|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[22],[function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(4),r=n.n(o);r.a.methodFactory=function(e,t,n){return function(...t){this.prefix&&t.unshift(this.prefix);return"error"===e||"warn"===e||"trace"===e||"info"===e?console[e](...t):console.log(...t)}};const i=r.a.getLogger("matrix");function a(e){e.withPrefix=function(e){return function(e){const t=r.a.getLogger("matrix-"+e);t.prefix!==e&&(a(t),t.prefix=e,t.setLevel(r.a.levels.DEBUG));return t}((this.prefix||"")+e)}}i.setLevel(r.a.levels.DEBUG),a(i)},function(e,t,n){"use strict";n.d(t,"f",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"v",(function(){return s})),n.d(t,"k",(function(){return c})),n.d(t,"u",(function(){return l})),n.d(t,"C",(function(){return d})),n.d(t,"m",(function(){return u})),n.d(t,"l",(function(){return h})),n.d(t,"z",(function(){return p})),n.d(t,"r",(function(){return m})),n.d(t,"q",(function(){return g})),n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return _})),n.d(t,"c",(function(){return b})),n.d(t,"j",(function(){return v})),n.d(t,"p",(function(){return y})),n.d(t,"w",(function(){return E})),n.d(t,"t",(function(){return S})),n.d(t,"A",(function(){return w})),n.d(t,"i",(function(){return T})),n.d(t,"o",(function(){return x})),n.d(t,"h",(function(){return O})),n.d(t,"B",(function(){return k})),n.d(t,"s",(function(){return R})),n.d(t,"e",(function(){return D})),n.d(t,"x",(function(){return I})),n.d(t,"y",(function(){return A})),n.d(t,"b",(function(){return N})),n.d(t,"n",(function(){return M}));var o=n(27),r=n.n(o);function i(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+="&"+encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.substring(1)}function a(e,t){for(const n in t)t.hasOwnProperty(n)&&(e=e.replace(n,encodeURIComponent(t[n])));return e}function s(e,t){const n=new Array(e.length);for(let o=0;o<e.length;o++)n[o]=t(e[o]);return n}function c(e,t){const n=[];for(let o=0;o<e.length;o++)t(e[o],o,e)&&n.push(e[o]);return n}function l(e){const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(n);return t}function d(e){const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function u(e,t){for(let n=0;n<e.length;n++)t(e[n],n)}function h(e,t,n){let o;if(n){for(o=e.length-1;o>=0;o--)if(t(e[o],o,e))return e[o]}else for(o=0;o<e.length;o++)if(t(e[o],o,e))return e[o]}function p(e,t,n){let o,r;if(n){for(o=e.length-1;o>=0;o--)if(t(e[o],o,e))return r=e[o],e.splice(o,1),r}else for(o=0;o<e.length;o++)if(t(e[o],o,e))return r=e[o],e.splice(o,1),r;return!1}function m(e){return"[object Function]"===Object.prototype.toString.call(e)}function g(e){return Array.isArray?Array.isArray(e):Boolean(e&&e.constructor===Array)}function f(e,t){for(let n=0;n<t.length;n++)if(!e.hasOwnProperty(t[n]))throw new Error("Missing required key: "+t[n])}function _(e){return JSON.parse(JSON.stringify(e))}function b(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("number"==typeof e&&isNaN(e)&&isNaN(t))return!0;if(null===e||null===t)return e===t;if(!(e instanceof Object))return!1;if(e.constructor!==t.constructor||e.prototype!==t.prototype)return!1;if(e instanceof RegExp||e instanceof Date)return e.toString()===t.toString();if(e instanceof Array){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!b(e[n],t[n]))return!1}else{let n;for(n in t)if(t.hasOwnProperty(n)!==e.hasOwnProperty(n))return!1;for(n in t){if(t.hasOwnProperty(n)!==e.hasOwnProperty(n))return!1;if(!b(e[n],t[n]))return!1}}return!0}function v(...e){const t=e[0]||{};for(let n=1;n<e.length;n++){const o=e[n];if(o)for(const e in o)t[e]=o[e]}return t}function y(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function E(e,t,...n){try{t.call(e,...n)}catch(o){const r=new t(...n);Object.assign(e,r)}}function S(e){return"number"==typeof e&&isFinite(e)}function w(e){return"string"==typeof e?r()(e.normalize("NFD").replace(C,"")):""}const C=/[\u2000-\u200F\u202A-\u202F\u0300-\u036f\uFEFF\s]/g;function T(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function x(e,t){t="boolean"!=typeof t||t;let n=T(e);return n=n.replace(/\\\*/g,".*"),n=n.replace(/\?/g,"."),t&&(n=n.replace(/\\\[(!|)(.*)\\]/g,(function(e,t,n,o,r){return"["+(t?"^":"")+n.replace(/\\-/,"-")+"]"}))),n}function O(e){return e&&e.endsWith("/")?e.substr(0,e.length-1):e}function k(e,t){return new Promise(n=>{setTimeout(n,e,t)})}function R(e){return null==e}function D(){let e,t;const n=new Promise((n,o)=>{e=n,t=o});return{resolve:e,reject:t,promise:n}}async function I(e,t){for(const n of await e)await t(await n)}function A(e){return new Promise(t=>t(e()))}async function N(e,t){const n=[];for(let o=0;o<e.length;o+=t)n.push(...await Promise.all(e.slice(o,o+t).map(e=>e())));return n}let F;function M(){return F}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(37);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})}));var r=n(38);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}));var i=n(39);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})}));var a=n(10);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}})}));var s=n(40);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})}));var c=n(41);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}})}));var l=n(42);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}})}));var d=n(43);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}})}));var u=n(18);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}})}));var h=n(44);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}})}));var p=n(45);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}})}));var m=n(46);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}})}));var g=n(11);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}})}));var f=n(8);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}})}));var _=n(9);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}})}));var b=n(20);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}})}));var v=n(47);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}})}));var y=n(48);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}})}));var E=n(49);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return E[e]}})}));var S=n(50);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}})}));var w=n(51);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}})}));var C=n(52);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}})}));var T=n(53);Object.keys(T).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return T[e]}})}));var x=n(12);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}})}));var O=n(54);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}})}));var k=n(55);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}})}));var R=n(56);Object.keys(R).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return R[e]}})}));var D=n(19);Object.keys(D).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return D[e]}})}));var I=n(57);Object.keys(I).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return I[e]}})}));var A=n(58);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}})}));var N=n(59);Object.keys(N).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return N[e]}})}));var F=n(60);Object.keys(F).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return F[e]}})}));var M=n(61);Object.keys(M).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return M[e]}})}));var P=n(13);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}})}));var L=n(22);Object.keys(L).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return L[e]}})}));var j=n(23);Object.keys(j).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return j[e]}})}));var U=n(24);Object.keys(U).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return U[e]}})}));var B=n(62);Object.keys(B).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return B[e]}})}));var q=n(63);Object.keys(q).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return q[e]}})}));var G=n(21);Object.keys(G).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return G[e]}})}));var V=n(64);Object.keys(V).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return V[e]}})}))},function(e,t,n){var o,r;!function(i,a){"use strict";void 0===(r="function"==typeof(o=function(){var e=function(){},t="undefined"!=typeof window&&void 0!==window.navigator&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function o(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function r(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function i(n){return"debug"===n&&(n="log"),"undefined"!=typeof console&&("trace"===n&&t?r:void 0!==console[n]?o(console,n):void 0!==console.log?o(console,"log"):e)}function a(t,o){for(var r=0;r<n.length;r++){var i=n[r];this[i]=r<t?e:this.methodFactory(i,t,o)}this.log=this.debug}function s(e,t,n){return function(){"undefined"!=typeof console&&(a.call(this,t,n),this[e].apply(this,arguments))}}function c(e,t,n){return i(e)||s.apply(this,arguments)}function l(e,t,o){var r,i=this,s="loglevel";function l(){var e;if("undefined"!=typeof window&&s){try{e=window.localStorage[s]}catch(e){}if(void 0===e)try{var t=window.document.cookie,n=t.indexOf(encodeURIComponent(s)+"=");-1!==n&&(e=/^([^;]+)/.exec(t.slice(n))[1])}catch(e){}return void 0===i.levels[e]&&(e=void 0),e}}"string"==typeof e?s+=":"+e:"symbol"==typeof e&&(s=void 0),i.name=e,i.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},i.methodFactory=o||c,i.getLevel=function(){return r},i.setLevel=function(t,o){if("string"==typeof t&&void 0!==i.levels[t.toUpperCase()]&&(t=i.levels[t.toUpperCase()]),!("number"==typeof t&&t>=0&&t<=i.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;if(r=t,!1!==o&&function(e){var t=(n[e]||"silent").toUpperCase();if("undefined"!=typeof window&&s){try{return void(window.localStorage[s]=t)}catch(e){}try{window.document.cookie=encodeURIComponent(s)+"="+t+";"}catch(e){}}}(t),a.call(i,t,e),"undefined"==typeof console&&t<i.levels.SILENT)return"No console available for logging"},i.setDefaultLevel=function(e){l()||i.setLevel(e,!1)},i.enableAll=function(e){i.setLevel(i.levels.TRACE,e)},i.disableAll=function(e){i.setLevel(i.levels.SILENT,e)};var d=l();null==d&&(d=null==t?"WARN":t),i.setLevel(d,!1)}var d=new l,u={};d.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=u[e];return t||(t=u[e]=new l(e,d.getLevel(),d.methodFactory)),t};var h="undefined"!=typeof window?window.log:void 0;return d.noConflict=function(){return"undefined"!=typeof window&&window.log===d&&(window.log=h),d},d.getLoggers=function(){return u},d.default=d,d})?o.call(t,n,t,e):o)||(e.exports=r)}()},function(e,t,n){"use strict";let o;n.d(t,"a",(function(){return o})),function(e){e.ClientReady="im.vector.ready",e.HangupCall="im.vector.hangup",e.StartLiveStream="im.vector.start_live_stream",e.OpenIntegrationManager="integration_manager_open",e.ViewRoom="io.element.view_room"}(o||(o={}))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var o,r="object"==typeof Reflect?Reflect:null,i=r&&"function"==typeof r.apply?r.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};o=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,o){function r(){void 0!==i&&e.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==t&&(i=function(n){e.removeListener(t,r),o(n)},e.once("error",i)),e.once(t,r)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function d(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function u(e,t,n,o){var r,i,a,s;if(l(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=o?[n,a]:[a,n]:o?a.unshift(n):a.push(n),(r=d(e))>0&&a.length>r&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var o={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},r=h.bind(o);return r.listener=n,o.wrapFn=r,r}function m(e,t,n){var o=e._events;if(void 0===o)return[];var r=o[t];return void 0===r?[]:"function"==typeof r?n?[r.listener||r]:[r]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(r):f(r,r.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(e,t){for(var n=new Array(t),o=0;o<t;++o)n[o]=e[o];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return d(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,r=this._events;if(void 0!==r)o=o&&void 0===r.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=r[e];if(void 0===c)return!1;if("function"==typeof c)i(c,this,t);else{var l=c.length,d=f(c,l);for(n=0;n<l;++n)i(d[n],this,t)}return!0},s.prototype.addListener=function(e,t){return u(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return u(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,o,r,i,a;if(l(t),void 0===(o=this._events))return this;if(void 0===(n=o[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(r=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,r=i;break}if(r<0)return this;0===r?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,r),1===n.length&&(o[e]=n[0]),void 0!==o.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,o;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var r,i=Object.keys(n);for(o=0;o<i.length;++o)"removeListener"!==(r=i[o])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(o=t.length-1;o>=0;o--)this.removeListener(e,t[o]);return this},s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.invertedDirection=function(e){if(e===o.ToWidget)return o.FromWidget;if(e===o.FromWidget)return o.ToWidget;throw new Error("Invalid direction")},t.WidgetApiDirection=void 0,t.WidgetApiDirection=o,function(e){e.ToWidget="toWidget",e.FromWidget="fromWidget"}(o||(t.WidgetApiDirection=o={}))},function(e,t,n){"use strict";var o,r;Object.defineProperty(t,"__esModule",{value:!0}),t.CurrentApiVersions=t.UnstableApiVersion=t.MatrixApiVersion=void 0,t.MatrixApiVersion=o,function(e){e.Prerelease1="0.0.1",e.Prerelease2="0.0.2"}(o||(t.MatrixApiVersion=o={})),t.UnstableApiVersion=r,function(e){e.MSC2762="org.matrix.msc2762",e.MSC2871="org.matrix.msc2871",e.MSC2931="org.matrix.msc2931",e.MSC2974="org.matrix.msc2974"}(r||(t.UnstableApiVersion=r={}));var i=[o.Prerelease1,o.Prerelease2,r.MSC2762,r.MSC2871,r.MSC2931,r.MSC2974];t.CurrentApiVersions=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostmessageTransport=void 0;var o=n(7),r=n(3);function i(e){return(i="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})(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var r=m(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?p(e):t}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(n,e);var t=u(n);function n(e,o,r,i){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(a=t.call(this)).sendDirection=e,a.initialWidgetId=o,a.transportWindow=r,a.inboundWindow=i,g(p(a),"strictOriginCheck",void 0),g(p(a),"targetOrigin",void 0),g(p(a),"timeoutSeconds",10),g(p(a),"_ready",!1),g(p(a),"_widgetId",null),g(p(a),"outboundRequests",new Map),g(p(a),"isStopped",!1),a._widgetId=o,a}return l(n,[{key:"ready",get:function(){return this._ready}},{key:"widgetId",get:function(){return this._widgetId||null}}]),l(n,[{key:"sendInternal",value:function(e){var t=this.targetOrigin||"*";console.log("[PostmessageTransport] Sending object to ".concat(t,": "),e),this.transportWindow.postMessage(e,t)}},{key:"reply",value:function(e,t){return this.sendInternal(s(s({},e),{},{response:t}))}},{key:"send",value:function(e,t){return this.sendComplete(e,t).then((function(e){return e.response}))}},{key:"sendComplete",value:function(e,t){var n=this;if(!this.ready||!this.widgetId)return Promise.reject(new Error("Not ready or unknown widget ID"));var o={api:this.sendDirection,widgetId:this.widgetId,requestId:this.nextRequestId,action:e,data:t};return e===r.WidgetApiToWidgetAction.UpdateVisibility&&(o.visible=t.visible),new Promise((function(e,t){var r=setTimeout((function(){var e=n.outboundRequests.get(o.requestId);e&&(n.outboundRequests.delete(o.requestId),e.reject(new Error("Request timed out")))}),1e3*(n.timeoutSeconds||1));n.outboundRequests.set(o.requestId,{request:o,resolve:function(t){return e(t)},reject:t,timerId:r}),n.sendInternal(o)}))}},{key:"start",value:function(){var e=this;this.inboundWindow.addEventListener("message",(function(t){e.handleMessage(t)})),this._ready=!0}},{key:"stop",value:function(){this._ready=!1,this.isStopped=!0}},{key:"handleMessage",value:function(e){if(!this.isStopped&&e.data&&(!this.strictOriginCheck||e.origin===window.origin)){var t=e.data;if(t.action&&t.requestId&&t.widgetId)if(t.response){if(t.api!==this.sendDirection)return;this.handleResponse(t)}else{var n=t;if(n.api!==(0,r.invertedDirection)(this.sendDirection))return;this.handleRequest(n)}}}},{key:"handleRequest",value:function(e){if(this.widgetId){if(this.widgetId!==e.widgetId)return}else this._widgetId=e.widgetId;this.emit("message",new CustomEvent("message",{detail:e}))}},{key:"handleResponse",value:function(e){if(e.widgetId===this.widgetId){var t=this.outboundRequests.get(e.requestId);if(t)if(this.outboundRequests.delete(e.requestId),clearTimeout(t.timerId),(0,r.isErrorResponse)(e.response)){var n=e.response;t.reject(new Error(n.error.message))}else t.resolve(e)}}},{key:"nextRequestId",get:function(){for(var e="widgetapi-".concat(Date.now()),t=0,n=e;this.outboundRequests.has(n);)n="".concat(e,"-").concat(t++);return this.outboundRequests.set(n,null),n}}]),n}(o.EventEmitter);t.PostmessageTransport=f},function(e,t,n){"use strict";var o,r;Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetApiFromWidgetAction=t.WidgetApiToWidgetAction=void 0,t.WidgetApiToWidgetAction=o,function(e){e.SupportedApiVersions="supported_api_versions",e.Capabilities="capabilities",e.NotifyCapabilities="notify_capabilities",e.TakeScreenshot="screenshot",e.UpdateVisibility="visibility",e.OpenIDCredentials="openid_credentials",e.WidgetConfig="widget_config",e.CloseModalWidget="close_modal",e.ButtonClicked="button_clicked",e.SendEvent="send_event"}(o||(t.WidgetApiToWidgetAction=o={})),t.WidgetApiFromWidgetAction=r,function(e){e.SupportedApiVersions="supported_api_versions",e.ContentLoaded="content_loaded",e.SendSticker="m.sticker",e.UpdateAlwaysOnScreen="set_always_on_screen",e.GetOpenIDCredentials="get_openid",e.CloseModalWidget="close_modal",e.OpenModalWidget="open_modal",e.SetModalButtonEnabled="set_button_enabled",e.SendEvent="send_event",e.MSC2931Navigate="org.matrix.msc2931.navigate",e.MSC2974RenegotiateCapabilities="org.matrix.msc2974.request_capabilities"}(r||(t.WidgetApiFromWidgetAction=r={}))},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.OpenIDRequestState=void 0,t.OpenIDRequestState=o,function(e){e.Allowed="allowed",e.Blocked="blocked",e.PendingUserConfirmation="request"}(o||(t.OpenIDRequestState=o={}))},function(e,t,n){"use strict";function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a;Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetEventCapability=t.EventDirection=void 0,t.EventDirection=a,function(e){e.Send="send",e.Receive="receive"}(a||(t.EventDirection=a={}));var s=function(){function e(t,n,o,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.direction=t,this.eventType=n,this.isState=o,this.keyStr=r,this.raw=i}var t,n,r;return t=e,r=[{key:"forStateEvent",value:function(t,n,o){n=n.replace(/#/g,"\\#"),o=null!=o?"#".concat(o):"";var r="org.matrix.msc2762.".concat(t,".state_event:").concat(n).concat(o);return e.findEventCapabilities([r])[0]}},{key:"forRoomEvent",value:function(t,n){var o="org.matrix.msc2762.".concat(t,".event:").concat(n);return e.findEventCapabilities([o])[0]}},{key:"forRoomMessageEvent",value:function(t,n){n=null==n?"":n;var o="org.matrix.msc2762.".concat(t,".event:m.room.message#").concat(n);return e.findEventCapabilities([o])[0]}},{key:"findEventCapabilities",value:function(t){var n,r=[],i=o(t);try{for(i.s();!(n=i.n()).done;){var s=n.value,c=null,l=void 0,d=!1;if(s.startsWith("org.matrix.msc2762.send.")?s.startsWith("org.matrix.msc2762.send.event:")?(c=a.Send,l=s.substring("org.matrix.msc2762.send.event:".length)):s.startsWith("org.matrix.msc2762.send.state_event:")&&(c=a.Send,d=!0,l=s.substring("org.matrix.msc2762.send.state_event:".length)):s.startsWith("org.matrix.msc2762.receive.")&&(s.startsWith("org.matrix.msc2762.receive.event:")?(c=a.Receive,l=s.substring("org.matrix.msc2762.receive.event:".length)):s.startsWith("org.matrix.msc2762.receive.state_event:")&&(c=a.Receive,d=!0,l=s.substring("org.matrix.msc2762.receive.state_event:".length))),null!==c){var u=l.startsWith("m.room.message#")||d,h=null;if(l.includes("#")&&u){var p=l.split("#"),m=p.findIndex((function(e){return!e.endsWith("\\")}));l=p.slice(0,m+1).map((function(e){return e.endsWith("\\")?e.substring(0,e.length-1):e})).join("#"),h=p.slice(m+1).join("#")}r.push(new e(c,l,d,h,s))}}}catch(e){i.e(e)}finally{i.f()}return r}}],(n=[{key:"matchesAsStateEvent",value:function(e,t){return!!this.isState&&this.eventType===e&&(null===this.keyStr||this.keyStr===t)}},{key:"matchesAsRoomEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return!this.isState&&this.eventType===e&&("m.room.message"!==this.eventType||null===this.keyStr||this.keyStr===t)}}])&&i(t.prototype,n),r&&i(t,r),e}();t.WidgetEventCapability=s},,,function(e,t,n){var o,r,i;r=[],void 0===(i="function"==typeof(o=function(){var e=XMLHttpRequest;if(!e)throw new Error("missing XMLHttpRequest");function t(i,a){if("function"!=typeof a)throw new Error("Bad callback given: "+a);if(!i)throw new Error("No options given");var s=i.onResponse;if((i="string"==typeof i?{uri:i}:JSON.parse(JSON.stringify(i))).onResponse=s,i.verbose&&(t.log=function(){var e,t,n={},i=["trace","debug","info","warn","error"];for(t=0;t<i.length;t++)n[e=i[t]]=o,"undefined"!=typeof console&&console&&console[e]&&(n[e]=r(console,e));return n}()),i.url&&(i.uri=i.url,delete i.url),!i.uri&&""!==i.uri)throw new Error("options.uri is a required argument");if("string"!=typeof i.uri)throw new Error("options.uri must be a string");for(var c=["proxy","_redirectsFollowed","maxRedirects","followRedirect"],l=0;l<c.length;l++)if(i[c[l]])throw new Error("options."+c[l]+" is not supported");if(i.callback=a,i.method=i.method||"GET",i.headers=i.headers||{},i.body=i.body||null,i.timeout=i.timeout||t.DEFAULT_TIMEOUT,i.headers.host)throw new Error("Options.headers.host is not supported");i.json&&(i.headers.accept=i.headers.accept||"application/json","GET"!==i.method&&(i.headers["content-type"]="application/json"),"boolean"!=typeof i.json?i.body=JSON.stringify(i.json):"string"!=typeof i.body&&(i.body=JSON.stringify(i.body)));var d=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")};if(i.qs){var u="string"==typeof i.qs?i.qs:d(i.qs);-1!==i.uri.indexOf("?")?i.uri=i.uri+"&"+u:i.uri=i.uri+"?"+u}if(i.form){if("string"==typeof i.form)throw"form name unsupported";if("POST"===i.method){var h=(i.encoding||"application/x-www-form-urlencoded").toLowerCase();switch(i.headers["content-type"]=h,h){case"application/x-www-form-urlencoded":i.body=d(i.form).replace(/%20/g,"+");break;case"multipart/form-data":var p=function(e){var t={};t.boundry="-------------------------------"+Math.floor(1e9*Math.random());var n=[];for(var o in e)e.hasOwnProperty(o)&&n.push("--"+t.boundry+'\nContent-Disposition: form-data; name="'+o+'"\n\n'+e[o]+"\n");return n.push("--"+t.boundry+"--"),t.body=n.join(""),t.length=t.body.length,t.type="multipart/form-data; boundary="+t.boundry,t}(i.form);i.body=p.body,i.headers["content-type"]=p.type;break;default:throw new Error("unsupported encoding:"+h)}}}return i.onResponse=i.onResponse||o,!0===i.onResponse&&(i.onResponse=a,i.callback=o),!i.headers.authorization&&i.auth&&(i.headers.authorization="Basic "+function(e){var t,n,o,r,i,a,s,c,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",d=0,u=0,h="",p=[];if(!e)return e;do{t=e.charCodeAt(d++),n=e.charCodeAt(d++),o=e.charCodeAt(d++),r=(c=t<<16|n<<8|o)>>18&63,i=c>>12&63,a=c>>6&63,s=63&c,p[u++]=l.charAt(r)+l.charAt(i)+l.charAt(a)+l.charAt(s)}while(d<e.length);switch(h=p.join(""),e.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"="}return h}(i.auth.username+":"+i.auth.password)),function(o){var r=new e,i=!1,a=function(e){var t,n=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/;try{t=location.href}catch(e){(t=document.createElement("a")).href="",t=t.href}var o=n.exec(t.toLowerCase())||[],r=n.exec(e.toLowerCase());return!(!r||r[1]==o[1]&&r[2]==o[2]&&(r[3]||("http:"===r[1]?80:443))==(o[3]||("http:"===o[1]?80:443)))}(o.uri),s="withCredentials"in r;if(n+=1,r.seq_id=n,r.id=n+": "+o.method+" "+o.uri,r._id=r.id,a&&!s){var c=new Error("Browser does not support cross-origin request: "+o.uri);return c.cors="unsupported",o.callback(c,r)}r.timeoutTimer=setTimeout((function(){i=!0;var e=new Error("ETIMEDOUT");return e.code="ETIMEDOUT",e.duration=o.timeout,t.log.error("Timeout",{id:r._id,milliseconds:o.timeout}),o.callback(e,r)}),o.timeout);var l={response:!1,loading:!1,end:!1};return r.onreadystatechange=function(n){if(i)return t.log.debug("Ignoring timed out state change",{state:r.readyState,id:r.id});if(t.log.debug("State change",{state:r.readyState,id:r.id,timed_out:i}),r.readyState===e.OPENED)for(var a in t.log.debug("Request started",{id:r.id}),o.headers)r.setRequestHeader(a,o.headers[a]);else r.readyState===e.HEADERS_RECEIVED?d():r.readyState===e.LOADING?(d(),u()):r.readyState===e.DONE&&(d(),u(),function(){if(l.end)return;if(l.end=!0,t.log.debug("Request done",{id:r.id}),r.body=r.responseText,o.json)try{r.body=JSON.parse(r.responseText)}catch(e){return o.callback(e,r)}o.callback(null,r,r.body)}())},r.open(o.method,o.uri,!0),a&&(r.withCredentials=!!o.withCredentials),r.send(o.body),r;function d(){if(!l.response){if(l.response=!0,t.log.debug("Got response",{id:r.id,status:r.status}),clearTimeout(r.timeoutTimer),r.statusCode=r.status,a&&0==r.statusCode){var e=new Error("CORS request rejected: "+o.uri);return e.cors="rejected",l.loading=!0,l.end=!0,o.callback(e,r)}o.onResponse(null,r)}}function u(){l.loading||(l.loading=!0,t.log.debug("Response body loading",{id:r.id}))}}(i)}t.log={trace:o,debug:o,info:o,warn:o,error:o};var n=0;function o(){}function r(e,t){return function(n,o){return"object"==typeof o&&(n+=" "+JSON.stringify(o)),e[t].call(e,n)}}return t.withCredentials=!1,t.DEFAULT_TIMEOUT=18e4,t.defaults=function(e,n){var o=function(t){return function(n,o){for(var r in n="string"==typeof n?{uri:n}:JSON.parse(JSON.stringify(n)),e)void 0===n[r]&&(n[r]=e[r]);return t(n,o)}},r=o(t);return r.get=o(t.get),r.post=o(t.post),r.put=o(t.put),r.head=o(t.head),r},["get","put","post","head"].forEach((function(e){var n=e.toUpperCase();t[e.toLowerCase()]=function(e){"string"==typeof e?e={method:n,uri:e}:(e=JSON.parse(JSON.stringify(e))).method=n;var o=[e].concat(Array.prototype.slice.apply(arguments,[1]));return t.apply(this,o)}})),t.couch=function(e,n){return"string"==typeof e&&(e={uri:e}),e.json=!0,e.body&&(e.json=e.body),delete e.body,n=n||o,t(e,(function(e,t,o){if(e)return n(e,t,o);if((t.statusCode<200||t.statusCode>299)&&o.error){for(var r in e=new Error("CouchDB error: "+(o.error.reason||o.error.error)),o)e[r]=o[r];return n(e,t,o)}return n(e,t,o)}))},t})?o.apply(t,r):o)||(e.exports=i)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(0),r=n(1);class i{constructor(e){(e=e||{}).maxTimelineEntries=e.maxTimelineEntries||50,this.opts=e,this.accountData={},this.inviteRooms={},this.joinRooms={},this.nextBatch=null,this.groups={invite:{},join:{},leave:{}}}accumulate(e,t){this._accumulateRooms(e,t),this._accumulateGroups(e),this._accumulateAccountData(e),this.nextBatch=e.next_batch}_accumulateAccountData(e){e.account_data&&e.account_data.events&&e.account_data.events.forEach(e=>{this.accountData[e.type]=e})}_accumulateRooms(e,t){e.rooms&&(e.rooms.invite&&Object.keys(e.rooms.invite).forEach(n=>{this._accumulateRoom(n,"invite",e.rooms.invite[n],t)}),e.rooms.join&&Object.keys(e.rooms.join).forEach(n=>{this._accumulateRoom(n,"join",e.rooms.join[n],t)}),e.rooms.leave&&Object.keys(e.rooms.leave).forEach(n=>{this._accumulateRoom(n,"leave",e.rooms.leave[n],t)}))}_accumulateRoom(e,t,n,r){switch(t){case"invite":this._accumulateInviteState(e,n);break;case"join":this.inviteRooms[e]&&delete this.inviteRooms[e],this._accumulateJoinState(e,n,r);break;case"leave":this.inviteRooms[e]?delete this.inviteRooms[e]:delete this.joinRooms[e];break;default:o.a.error("Unknown cateogory: ",t)}}_accumulateInviteState(e,t){if(!t.invite_state||!t.invite_state.events)return;if(!this.inviteRooms[e])return void(this.inviteRooms[e]={invite_state:t.invite_state});const n=this.inviteRooms[e];t.invite_state.events.forEach(e=>{let t=!1;for(let o=0;o<n.invite_state.events.length;o++){const r=n.invite_state.events[o];r.type===e.type&&r.state_key==e.state_key&&(n.invite_state.events[o]=e,t=!0)}t||n.invite_state.events.push(e)})}_accumulateJoinState(e,t,n){this.joinRooms[e]||(this.joinRooms[e]={_currentState:Object.create(null),_timeline:[],_accountData:Object.create(null),_unreadNotifications:{},_summary:{},_readReceipts:{}});const o=this.joinRooms[e];if(t.account_data&&t.account_data.events&&t.account_data.events.forEach(e=>{o._accountData[e.type]=e}),t.unread_notifications&&(o._unreadNotifications=t.unread_notifications),t.summary){const e="m.heroes",n="m.invited_member_count",r="m.joined_member_count",i=o._summary,a=t.summary;i[e]=a[e]||i[e],i[r]=a[r]||i[r],i[n]=a[n]||i[n]}if(t.ephemeral&&t.ephemeral.events&&t.ephemeral.events.forEach(e=>{"m.receipt"===e.type&&e.content&&Object.keys(e.content).forEach(t=>{e.content[t]["m.read"]&&Object.keys(e.content[t]["m.read"]).forEach(n=>{o._readReceipts[n]={data:e.content[t]["m.read"][n],eventId:t}})})}),t.timeline&&t.timeline.limited&&(o._timeline=[]),t.state&&t.state.events&&t.state.events.forEach(e=>{a(o._currentState,e)}),t.timeline&&t.timeline.events&&t.timeline.events.forEach((e,r)=>{let i;if(a(o._currentState,e),n)i=e;else{i=Object.assign({},e),void 0!==i.unsigned&&(i.unsigned=Object.assign({},i.unsigned));const t=e.unsigned?e.unsigned.age:e.age;void 0!==t&&(i._localTs=Date.now()-t)}o._timeline.push({event:i,token:0===r?t.timeline.prev_batch:null})}),o._timeline.length>this.opts.maxTimelineEntries){for(let e=o._timeline.length-this.opts.maxTimelineEntries;e<o._timeline.length;e++)if(o._timeline[e].token){o._timeline=o._timeline.slice(e,o._timeline.length);break}}}_accumulateGroups(e){e.groups&&(e.groups.invite&&Object.keys(e.groups.invite).forEach(t=>{this._accumulateGroup(t,"invite",e.groups.invite[t])}),e.groups.join&&Object.keys(e.groups.join).forEach(t=>{this._accumulateGroup(t,"join",e.groups.join[t])}),e.groups.leave&&Object.keys(e.groups.leave).forEach(t=>{this._accumulateGroup(t,"leave",e.groups.leave[t])}))}_accumulateGroup(e,t,n){for(const t of["invite","join","leave"])delete this.groups[t][e];this.groups[t][e]=n}getJSON(e){const t={join:{},invite:{},leave:{}};Object.keys(this.inviteRooms).forEach(e=>{t.invite[e]=this.inviteRooms[e]}),Object.keys(this.joinRooms).forEach(n=>{const o=this.joinRooms[n],i={ephemeral:{events:[]},account_data:{events:[]},state:{events:[]},timeline:{events:[],prev_batch:null},unread_notifications:o._unreadNotifications,summary:o._summary};Object.keys(o._accountData).forEach(e=>{i.account_data.events.push(o._accountData[e])});const s={type:"m.receipt",room_id:n,content:{}};Object.keys(o._readReceipts).forEach(e=>{const t=o._readReceipts[e];s.content[t.eventId]||(s.content[t.eventId]={"m.read":{}}),s.content[t.eventId]["m.read"][e]=t.data}),Object.keys(s.content).length>0&&i.ephemeral.events.push(s),o._timeline.forEach(t=>{if(!i.timeline.prev_batch){if(!t.token)return;i.timeline.prev_batch=t.token}let n;!e&&t.event._localTs?(n=Object.assign({},t.event),void 0!==n.unsigned&&(n.unsigned=Object.assign({},n.unsigned)),delete n._localTs,n.unsigned=n.unsigned||{},n.unsigned.age=Date.now()-t.event._localTs):n=t.event,i.timeline.events.push(n)});const c=Object.create(null);for(let e=i.timeline.events.length-1;e>=0;e--){const t=i.timeline.events[e];if(null===t.state_key||void 0===t.state_key)continue;const n=Object(r.d)(t);n.unsigned&&(n.unsigned.prev_content&&(n.content=n.unsigned.prev_content),n.unsigned.prev_sender&&(n.sender=n.unsigned.prev_sender)),a(c,n)}Object.keys(o._currentState).forEach(e=>{Object.keys(o._currentState[e]).forEach(t=>{let n=o._currentState[e][t];c[e]&&c[e][t]&&(n=c[e][t]),i.state.events.push(n)})}),t.join[n]=i});const n=[];return Object.keys(this.accountData).forEach(e=>{n.push(this.accountData[e])}),{nextBatch:this.nextBatch,roomsData:t,groupsData:this.groups,accountData:n}}getNextBatchToken(){return this.nextBatch}}function a(e,t){null!==t.state_key&&void 0!==t.state_key&&t.type&&(e[t.type]||(e[t.type]=Object.create(null)),e[t.type][t.state_key]=t)}},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.MatrixWidgetType=void 0,t.MatrixWidgetType=o,function(e){e.Custom="m.custom",e.JitsiMeet="m.jitsi",e.Stickerpicker="m.stickerpicker"}(o||(t.MatrixWidgetType=o={}))},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.BuiltInModalButtonID=void 0,t.BuiltInModalButtonID=o,function(e){e.Close="m.close"}(o||(t.BuiltInModalButtonID=o={}))},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoConferenceCapabilities=t.StickerpickerCapabilities=t.MatrixCapabilities=void 0,t.MatrixCapabilities=o,function(e){e.Screenshots="m.capability.screenshot",e.StickerSending="m.sticker",e.AlwaysOnScreen="m.always_on_screen",e.MSC2931Navigate="org.matrix.msc2931.navigate"}(o||(t.MatrixCapabilities=o={}));var r=[o.StickerSending];t.StickerpickerCapabilities=r;var i=[o.AlwaysOnScreen];t.VideoConferenceCapabilities=i},function(e,t,n){"use strict";function o(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,i=function(){};return{s:i,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleObservable=void 0;var a=function(){function e(t){var n,o,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=[],(o="listeners")in(n=this)?Object.defineProperty(n,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[o]=r,t&&this.listeners.push(t)}var t,n,r;return t=e,(n=[{key:"onUpdate",value:function(e){this.listeners.push(e)}},{key:"update",value:function(e){var t,n=o(this.listeners);try{for(n.s();!(t=n.n()).done;)(0,t.value)(e)}catch(e){n.e(e)}finally{n.f()}}},{key:"close",value:function(){this.listeners=[]}}])&&i(t.prototype,n),r&&i(t,r),e}();t.SimpleObservable=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidUrl=function(e){if(!e)return!1;try{var t=new URL(e);return"http"===t.protocol||"https"===t.protocol}catch(e){if(e instanceof TypeError)return!1;throw e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertPresent=function(e,t){if(!e[t])throw new Error("".concat(t," is required"))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Widget=void 0;var o=n(23),r=n(3);function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var a=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definition=t,!this.definition)throw new Error("Definition is required");(0,o.assertPresent)(t,"id"),(0,o.assertPresent)(t,"creatorUserId"),(0,o.assertPresent)(t,"type"),(0,o.assertPresent)(t,"url")}var t,n,a;return t=e,(n=[{key:"getCompleteUrl",value:function(e){return(0,r.runTemplate)(this.templateUrl,this.definition,e)}},{key:"creatorUserId",get:function(){return this.definition.creatorUserId}},{key:"type",get:function(){return this.definition.type}},{key:"id",get:function(){return this.definition.id}},{key:"name",get:function(){return this.definition.name||null}},{key:"title",get:function(){return this.rawData.title||null}},{key:"templateUrl",get:function(){return this.definition.url}},{key:"origin",get:function(){return new URL(this.templateUrl).origin}},{key:"waitForIframeLoad",get:function(){return!1!==this.definition.waitForIframeLoad&&(this.definition.waitForIframeLoad,!0)}},{key:"rawData",get:function(){return this.definition.data||{}}}])&&i(t.prototype,n),a&&i(t,a),e}();t.Widget=a},function(e,t,n){"use strict";function o(e,t){return new Promise((n,o)=>{let r=!0;const i=e.open(t);i.onupgradeneeded=()=>{r=!1},i.onblocked=()=>o(),i.onsuccess=()=>{i.result.close(),r||e.deleteDatabase(t),n(r)},i.onerror=e=>o(e.target.error)})}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(17),r=n(1),i=n(25),a=n(0);function s(e,t,n){const o=e.openCursor(t);return new Promise((e,t)=>{const r=[];o.onerror=e=>{t(new Error("Query failed: "+e.target.errorCode))},o.onsuccess=t=>{const o=t.target.result;o?(r.push(n(o)),o.continue()):e(r)}})}function c(e){return new Promise((t,n)=>{e.oncomplete=function(e){t(e)},e.onerror=function(e){n(e.target.error)}})}function l(e){return new Promise((t,n)=>{e.onsuccess=function(e){t(e)},e.onerror=function(e){n(e.target.error)}})}function d(e){return l(e).then(e=>e.target.result)}function u(e,t){this.indexedDB=e,this._dbName="matrix-js-sdk:"+(t||"default"),this.db=null,this._disconnected=!0,this._syncAccumulator=new o.a,this._isNewlyCreated=!1}u.exists=function(e,t){return t="matrix-js-sdk:"+(t||"default"),i.a(e,t)},u.prototype={connect:function(){if(!this._disconnected)return a.a.log("LocalIndexedDBStoreBackend.connect: already connected or connecting"),Promise.resolve();this._disconnected=!1,a.a.log("LocalIndexedDBStoreBackend.connect: connecting...");const e=this.indexedDB.open(this._dbName,3);return e.onupgradeneeded=e=>{const t=e.target.result,n=e.oldVersion;a.a.log("LocalIndexedDBStoreBackend.connect: upgrading from "+n),n<1&&(this._isNewlyCreated=!0,function(e){e.createObjectStore("users",{keyPath:["userId"]}),e.createObjectStore("accountData",{keyPath:["type"]}),e.createObjectStore("sync",{keyPath:["clobber"]})}(t)),n<2&&function(e){e.createObjectStore("oob_membership_events",{keyPath:["room_id","state_key"]}).createIndex("room","room_id")}(t),n<3&&function(e){e.createObjectStore("client_options",{keyPath:["clobber"]})}(t)},e.onblocked=()=>{a.a.log("can't yet open LocalIndexedDBStoreBackend because it is open elsewhere")},a.a.log("LocalIndexedDBStoreBackend.connect: awaiting connection..."),l(e).then(e=>(a.a.log("LocalIndexedDBStoreBackend.connect: connected"),this.db=e.target.result,this.db.onversionchange=()=>{this.db.close()},this._init()))},isNewlyCreated:function(){return Promise.resolve(this._isNewlyCreated)},_init:function(){return Promise.all([this._loadAccountData(),this._loadSyncData()]).then(([e,t])=>{a.a.log("LocalIndexedDBStoreBackend: loaded initial data"),this._syncAccumulator.accumulate({next_batch:t.nextBatch,rooms:t.roomsData,groups:t.groupsData,account_data:{events:e}},!0)})},getOutOfBandMembers:function(e){return new Promise((t,n)=>{const o=this.db.transaction(["oob_membership_events"],"readonly").objectStore("oob_membership_events").index("room"),r=IDBKeyRange.only(e),i=o.openCursor(r),a=[];let s=!1;i.onsuccess=e=>{const n=e.target.result;if(!n)return a.length||s?t(a):t(null);const o=n.value;o.oob_written?s=!0:a.push(o),n.continue()},i.onerror=e=>{n(e)}}).then(t=>(a.a.log("LL: got "+(t&&t.length)+` membershipEvents from storage for room ${e} ...`),t))},setOutOfBandMembers:async function(e,t){a.a.log("LL: backend about to store "+t.length+" members for "+e);const n=this.db.transaction(["oob_membership_events"],"readwrite"),o=n.objectStore("oob_membership_events");t.forEach(e=>{o.put(e)});const r={room_id:e,oob_written:!0,state_key:0};o.put(r),await c(n),a.a.log(`LL: backend done storing for ${e}!`)},clearOutOfBandMembers:async function(e){const t=this.db.transaction(["oob_membership_events"],"readonly").objectStore("oob_membership_events").index("room"),n=IDBKeyRange.only(e),o=d(t.openKeyCursor(n,"next")).then(e=>e&&e.primaryKey[1]),r=d(t.openKeyCursor(n,"prev")).then(e=>e&&e.primaryKey[1]),[i,s]=await Promise.all([o,r]),c=this.db.transaction(["oob_membership_events"],"readwrite").objectStore("oob_membership_events"),l=IDBKeyRange.bound([e,i],[e,s]);var u;a.a.log(`LL: Deleting all users + marker in storage for room ${e}, with key range:`,[e,i],[e,s]),await(u=c.delete(l),new Promise((e,t)=>{u.onsuccess=()=>e(u),u.onerror=e=>t(e)}))},clearDatabase:function(){return new Promise((e,t)=>{a.a.log("Removing indexeddb instance: "+this._dbName);const n=this.indexedDB.deleteDatabase(this._dbName);n.onblocked=()=>{a.a.log("can't yet delete indexeddb "+this._dbName+" because it is open elsewhere")},n.onerror=t=>{a.a.warn("unable to delete js-sdk store indexeddb: "+t.target.error),e()},n.onsuccess=()=>{a.a.log("Removed indexeddb instance: "+this._dbName),e()}})},getSavedSync:function(e){void 0===e&&(e=!0);const t=this._syncAccumulator.getJSON();return t.nextBatch?e?Promise.resolve(r.d(t)):Promise.resolve(t):Promise.resolve(null)},getNextBatchToken:function(){return Promise.resolve(this._syncAccumulator.getNextBatchToken())},setSyncData:function(e){return Promise.resolve().then(()=>{this._syncAccumulator.accumulate(e)})},syncToDatabase:function(e){const t=this._syncAccumulator.getJSON(!0);return Promise.all([this._persistUserPresenceEvents(e),this._persistAccountData(t.accountData),this._persistSyncData(t.nextBatch,t.roomsData,t.groupsData)])},_persistSyncData:function(e,t,n){return a.a.log("Persisting sync data up to",e),r.y(()=>{const o=this.db.transaction(["sync"],"readwrite");return o.objectStore("sync").put({clobber:"-",nextBatch:e,roomsData:t,groupsData:n}),c(o)})},_persistAccountData:function(e){return r.y(()=>{const t=this.db.transaction(["accountData"],"readwrite"),n=t.objectStore("accountData");for(let t=0;t<e.length;t++)n.put(e[t]);return c(t)})},_persistUserPresenceEvents:function(e){return r.y(()=>{const t=this.db.transaction(["users"],"readwrite"),n=t.objectStore("users");for(const t of e)n.put({userId:t[0],event:t[1]});return c(t)})},getUserPresenceEvents:function(){return r.y(()=>s(this.db.transaction(["users"],"readonly").objectStore("users"),void 0,e=>[e.value.userId,e.value.event]))},_loadAccountData:function(){return a.a.log("LocalIndexedDBStoreBackend: loading account data..."),r.y(()=>s(this.db.transaction(["accountData"],"readonly").objectStore("accountData"),void 0,e=>e.value).then(e=>(a.a.log("LocalIndexedDBStoreBackend: loaded account data"),e)))},_loadSyncData:function(){return a.a.log("LocalIndexedDBStoreBackend: loading sync data..."),r.y(()=>s(this.db.transaction(["sync"],"readonly").objectStore("sync"),void 0,e=>e.value).then(e=>(a.a.log("LocalIndexedDBStoreBackend: loaded sync data"),e.length>1&&a.a.warn("loadSyncData: More than 1 sync row found."),e.length>0?e[0]:{})))},getClientOptions:function(){return Promise.resolve().then(()=>s(this.db.transaction(["client_options"],"readonly").objectStore("client_options"),void 0,e=>{if(e.value&&e.value&&e.value.options)return e.value.options}).then(e=>e[0]))},storeClientOptions:async function(e){const t=this.db.transaction(["client_options"],"readwrite");t.objectStore("client_options").put({clobber:"-",options:e}),await c(t)}}},function(e,t,n){"use strict";var o=n(33);var r=RegExp(Object.keys(o).map((function(e){return e.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")})).join("|"),"g");function i(e){return o[e]}e.exports=function(e){return e.replace(r,i)}},,,,,function(e,t,n){"use strict";(function(e){var o=n(34),r=n(35),i=n(36);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return u(this,e)}return l(this,e,t,n)}function l(e,t,n,o){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,o){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(o||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,n):new Uint8Array(t,n,o);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=h(e,t);return e}(e,t,n,o):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var o=0|m(t,n),r=(e=s(e,o)).write(t,n);r!==o&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(o=t.length)!=o?s(e,0):h(e,t);if("Buffer"===t.type&&i(t.data))return h(e,t.data)}var o;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function u(e,t){if(d(t),e=s(e,t<0?0:0|p(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var o=0;o<n;o+=1)e[o]=255&t[o];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(o)return B(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,n){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return x(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return k(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function f(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function _(e,t,n,o,r){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=c.from(t,o)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,o,r);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,o,r);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,o,r){var i,a=1,s=e.length,c=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var d=-1;for(i=n;i<s;i++)if(l(e,i)===l(t,-1===d?0:i-d)){if(-1===d&&(d=i),i-d+1===c)return d*a}else-1!==d&&(i-=i-d),d=-1}else for(n+c>s&&(n=s-c),i=n;i>=0;i--){for(var u=!0,h=0;h<c;h++)if(l(e,i+h)!==l(t,h)){u=!1;break}if(u)return i}return-1}function v(e,t,n,o){n=Number(n)||0;var r=e.length-n;o?(o=Number(o))>r&&(o=r):o=r;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");o>i/2&&(o=i/2);for(var a=0;a<o;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function y(e,t,n,o){return G(B(t,e.length-n),e,n,o)}function E(e,t,n,o){return G(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,o)}function S(e,t,n,o){return E(e,t,n,o)}function w(e,t,n,o){return G(q(t),e,n,o)}function C(e,t,n,o){return G(function(e,t){for(var n,o,r,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),o=n>>8,r=n%256,i.push(r),i.push(o);return i}(t,e.length-n),e,n,o)}function T(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function x(e,t,n){n=Math.min(e.length,n);for(var o=[],r=t;r<n;){var i,a,s,c,l=e[r],d=null,u=l>239?4:l>223?3:l>191?2:1;if(r+u<=n)switch(u){case 1:l<128&&(d=l);break;case 2:128==(192&(i=e[r+1]))&&(c=(31&l)<<6|63&i)>127&&(d=c);break;case 3:i=e[r+1],a=e[r+2],128==(192&i)&&128==(192&a)&&(c=(15&l)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(d=c);break;case 4:i=e[r+1],a=e[r+2],s=e[r+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(d=c)}null===d?(d=65533,u=1):d>65535&&(d-=65536,o.push(d>>>10&1023|55296),d=56320|1023&d),o.push(d),r+=u}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",o=0;for(;o<t;)n+=String.fromCharCode.apply(String,e.slice(o,o+=4096));return n}(o)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,o){return d(t),t<=0?s(e,t):void 0!==n?"string"==typeof o?s(e,t).fill(n,o):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return u(null,e)},c.allocUnsafeSlow=function(e){return u(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,o=t.length,r=0,i=Math.min(n,o);r<i;++r)if(e[r]!==t[r]){n=e[r],o=t[r];break}return n<o?-1:o<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var o=c.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(o,r),r+=a.length}return o},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?x(this,0,e):g.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,o,r){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===r&&(r=this.length),t<0||n>e.length||o<0||r>this.length)throw new RangeError("out of range index");if(o>=r&&t>=n)return 0;if(o>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(r>>>=0)-(o>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),l=this.slice(o,r),d=e.slice(t,n),u=0;u<s;++u)if(l[u]!==d[u]){i=l[u],a=d[u];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return _(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return _(this,e,t,n,!1)},c.prototype.write=function(e,t,n,o){if(void 0===t)o="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)o=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===o&&(o="utf8")):(o=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var i=!1;;)switch(o){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(e,t,n){var o="";n=Math.min(e.length,n);for(var r=t;r<n;++r)o+=String.fromCharCode(127&e[r]);return o}function k(e,t,n){var o="";n=Math.min(e.length,n);for(var r=t;r<n;++r)o+=String.fromCharCode(e[r]);return o}function R(e,t,n){var o=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>o)&&(n=o);for(var r="",i=t;i<n;++i)r+=U(e[i]);return r}function D(e,t,n){for(var o=e.slice(t,n),r="",i=0;i<o.length;i+=2)r+=String.fromCharCode(o[i]+256*o[i+1]);return r}function I(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function A(e,t,n,o,r,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<i)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function N(e,t,n,o){t<0&&(t=65535+t+1);for(var r=0,i=Math.min(e.length-n,2);r<i;++r)e[n+r]=(t&255<<8*(o?r:1-r))>>>8*(o?r:1-r)}function F(e,t,n,o){t<0&&(t=4294967295+t+1);for(var r=0,i=Math.min(e.length-n,4);r<i;++r)e[n+r]=t>>>8*(o?r:3-r)&255}function M(e,t,n,o,r,i){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(e,t,n,o,i){return i||M(e,0,n,4),r.write(e,t,n,o,23,4),n+4}function L(e,t,n,o,i){return i||M(e,0,n,8),r.write(e,t,n,o,52,8),n+8}c.prototype.slice=function(e,t){var n,o=this.length;if((e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var r=t-e;n=new c(r,void 0);for(var i=0;i<r;++i)n[i]=this[i+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var o=this[e],r=1,i=0;++i<t&&(r*=256);)o+=this[e+i]*r;return o},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var o=this[e+--t],r=1;t>0&&(r*=256);)o+=this[e+--t]*r;return o},c.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var o=this[e],r=1,i=0;++i<t&&(r*=256);)o+=this[e+i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var o=t,r=1,i=this[e+--o];o>0&&(r*=256);)i+=this[e+--o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,o){(e=+e,t|=0,n|=0,o)||A(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,i=0;for(this[t]=255&e;++i<n&&(r*=256);)this[t+i]=e/r&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,o){(e=+e,t|=0,n|=0,o)||A(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,i=1;for(this[t+r]=255&e;--r>=0&&(i*=256);)this[t+r]=e/i&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):F(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);A(this,e,t,n,r-1,-r)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t|=0,!o){var r=Math.pow(2,8*n-1);A(this,e,t,n,r-1,-r)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):F(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return P(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return P(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);var r,i=o-n;if(this===e&&n<t&&t<o)for(r=i-1;r>=0;--r)e[r+t]=this[r+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<i;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},c.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!c.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=c.isBuffer(e)?e:B(new c(e,o).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var j=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var o=e.length,r=null,i=[],a=0;a<o;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&i.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&i.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function q(e){return o.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,n,o){for(var r=0;r<o&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(6))},function(e){e.exports=JSON.parse('{"0":"O","1":"l","֭":"֖","֮":"֘","֨":"֙","֤":"֚","᪴":"ۛ","⃛":"ۛ","ؙ":"̓","ࣳ":"̓","̓":"̓","̕":"̓","ُ":"̓","ٝ":"̔","֜":"́","֝":"́","ؘ":"́","݇":"́","́":"́","॔":"́","َ":"́","̀":"̀","॓":"̀","̌":"̆","꙼":"̆","٘":"̆","ٚ":"̆","ͮ":"̆","ۨ":"̆̇","̐":"̆̇","ँ":"̆̇","ঁ":"̆̇","ઁ":"̆̇","ଁ":"̆̇","ఀ":"̆̇","ಁ":"̆̇","ഁ":"̆̇","𑒿":"̆̇","᳐":"̂","̑":"̂","ٛ":"̂","߮":"̂","꛰":"̂","֯":"̊","۟":"̊","៓":"̊","゚":"̊","ْ":"̊","ஂ":"̊","ံ":"̊","ំ":"̊","𑌀":"̊","ํ":"̊","ໍ":"̊","ͦ":"̊","ⷪ":"̊","࣫":"̈","߳":"̈","ً":"̋","ࣰ":"̋","͂":"̃","ٓ":"̃","ׄ":"̇","۬":"̇","݀":"̇","࣪":"̇","݁":"̇","͘":"̇","ֹ":"̇","ֺ":"̇","ׂ":"̇","ׁ":"̇","߭":"̇","ं":"̇","ਂ":"̇","ં":"̇","்":"̇","̷":"̸","᪷":"̨","̢":"̨","ͅ":"̨","᳒":"̄","̅":"̄","ٙ":"̄","߫":"̄","꛱":"̄","᳚":"̎","ٗ":"̒","͗":"͐","ࣿ":"͐","ࣸ":"͐","ऀ":"͒","᳭":"̖","᳜":"̩","ٖ":"̩","᳕":"̫","͇":"̳","ࣹ":"͔","ࣺ":"͕","゛":"゙","゜":"゚","̶":"̵","〬":"̉","ׅ":"̣","࣭":"̣","᳝":"̣","ִ":"̣","ٜ":"̣","़":"̣","়":"̣","਼":"̣","઼":"̣","଼":"̣","𑇊":"̣","𑓃":"̣","𐨺":"̣","࣮":"̤","᳞":"̤","༷":"̥","〭":"̥","̧":"̦","̡":"̦","̹":"̦","᳙":"̭","᳘":"̮","॒":"̱","̠":"̱","ࣱ":"ٌ","ࣨ":"ٌ","ࣥ":"ٌ","ﱞ":"ﹲّ","ࣲ":"ٍ","ﱟ":"ﹴّ","ﳲ":"ﹷّ","ﱠ":"ﹶّ","ﳳ":"ﹹّ","ﱡ":"ﹸّ","ؚ":"ِ","̗":"ِ","ﳴ":"ﹻّ","ﱢ":"ﹺّ","ﱣ":"ﹼٰ","ٟ":"ٕ","̍":"ٰ","݂":"ܼ","ਃ":"ঃ","ః":"ঃ","ಃ":"ঃ","ഃ":"ঃ","ඃ":"ঃ","း":"ঃ","𑓁":"ঃ","់":"่","່":"่","້":"้","໊":"๊","໋":"๋","꙯":"⃩","\\u2028":" ","\\u2029":" "," ":" "," ":" "," ":" "," ":" "," ":" "," ":" "," ":" "," ":" "," ":" "," ":" "," ":" "," ":" "," ":" "," ":" "," ":" ","ߺ":"_","﹍":"_","﹎":"_","﹏":"_","‐":"-","‑":"-","‒":"-","–":"-","﹘":"-","۔":"-","⁃":"-","˗":"-","−":"-","➖":"-","Ⲻ":"-","⨩":"-̓","⸚":"-̈","﬩":"-̇","∸":"-̇","⨪":"-̣","꓾":"-.","~":"〜","؍":",","٫":",","‚":",","¸":",","ꓹ":",","⸲":"،","٬":"،",";":";","⸵":"؛","ः":":","ઃ":":",":":":","։":":","܃":":","܄":":","᛬":":","︰":":","᠃":":","᠉":":","⁚":":","׃":":","˸":":","꞉":":","∶":":","ː":":","ꓽ":":","⩴":"::=","⧴":":→","!":"!","ǃ":"!","ⵑ":"!","‼":"!!","⁉":"!?","ʔ":"?","Ɂ":"?","ॽ":"?","Ꭾ":"?","ꛫ":"?","⁈":"?!","⁇":"??","⸮":"؟","𝅭":".","․":".","܁":".","܂":".","꘎":".","𐩐":".","٠":".","۰":".","ꓸ":".","ꓻ":".,","‥":"..","ꓺ":"..","…":"...","꛴":"꛳꛳","・":"·","・":"·","᛫":"·","·":"·","⸱":"·","𐄁":"·","•":"·","‧":"·","∙":"·","⋅":"·","ꞏ":"·","ᐧ":"·","⋯":"···","ⵈ":"···","ᑄ":"·<","⋗":"·>","ᐷ":"·>","ᑀ":"·>","ᔯ":"·4","ᑾ":"·b","ᒀ":"·ḃ","ᑺ":"·d","ᒘ":"·J","ᒶ":"·L","ᑶ":"·P","ᑗ":"·U","ᐺ":"·V","ᐼ":"·Ʌ","ᒮ":"·Γ","ᐎ":"·Δ","ᑙ":"·Ո","ᐌ":"·ᐁ","ᐐ":"·ᐄ","ᐒ":"·ᐅ","ᐔ":"·ᐆ","ᐗ":"·ᐊ","ᐙ":"·ᐋ","ᐾ":"·ᐲ","ᑂ":"·ᐴ","ᑆ":"·ᐹ","ᑛ":"·ᑏ","ᑔ":"·ᑐ","ᑝ":"·ᑐ","ᑟ":"·ᑑ","ᑡ":"·ᑕ","ᑣ":"·ᑖ","ᑴ":"·ᑫ","ᑸ":"·ᑮ","ᑼ":"·ᑰ","ᒒ":"·ᒉ","ᒔ":"·ᒋ","ᒖ":"·ᒌ","ᒚ":"·ᒎ","ᒜ":"·ᒐ","ᒞ":"·ᒑ","ᒬ":"·ᒣ","ᒰ":"·ᒦ","ᒲ":"·ᒧ","ᒴ":"·ᒨ","ᒸ":"·ᒫ","ᓉ":"·ᓀ","ᣆ":"·ᓂ","ᣈ":"·ᓃ","ᣊ":"·ᓄ","ᣌ":"·ᓅ","ᓋ":"·ᓇ","ᓍ":"·ᓈ","ᓜ":"·ᓓ","ᓞ":"·ᓕ","ᓠ":"·ᓖ","ᓢ":"·ᓗ","ᓤ":"·ᓘ","ᓦ":"·ᓚ","ᓨ":"·ᓛ","ᓶ":"·ᓭ","ᓸ":"·ᓯ","ᓺ":"·ᓰ","ᓼ":"·ᓱ","ᓾ":"·ᓲ","ᔀ":"·ᓴ","ᔂ":"·ᓵ","ᔗ":"·ᔐ","ᔙ":"·ᔑ","ᔛ":"·ᔒ","ᔝ":"·ᔓ","ᔟ":"·ᔔ","ᔡ":"·ᔕ","ᔣ":"·ᔖ","ᔱ":"·ᔨ","ᔳ":"·ᔩ","ᔵ":"·ᔪ","ᔷ":"·ᔫ","ᔹ":"·ᔭ","ᔻ":"·ᔮ","ᣎ":"·ᕃ","ᣏ":"·ᕆ","ᣐ":"·ᕇ","ᣑ":"·ᕈ","ᣒ":"·ᕉ","ᣓ":"·ᕋ","ᕎ":"·ᕌ","ᕛ":"·ᕚ","ᕨ":"·ᕧ","ᢳ":"·ᢱ","ᢶ":"·ᢴ","ᢹ":"·ᢸ","ᣂ":"·ᣀ","꠰":"।","॥":"।।","᰼":"᰻᰻","။":"၊၊","᪩":"᪨᪨","᪫":"᪪᪨","᭟":"᭞᭞","𐩗":"𐩖𐩖","𑑌":"𑑋𑑋","𑙂":"𑙁𑙁","𑱂":"𑱁𑱁","᱿":"᱾᱾","՝":"\'","'":"\'","‘":"\'","’":"\'","‛":"\'","′":"\'","‵":"\'","՚":"\'","׳":"\'","`":"\'","`":"\'","`":"\'","´":"\'","΄":"\'","´":"\'","᾽":"\'","᾿":"\'","῾":"\'","ʹ":"\'","ʹ":"\'","ˈ":"\'","ˊ":"\'","ˋ":"\'","˴":"\'","ʻ":"\'","ʽ":"\'","ʼ":"\'","ʾ":"\'","ꞌ":"\'","י":"\'","ߴ":"\'","ߵ":"\'","ᑊ":"\'","ᛌ":"\'","𖽑":"\'","𖽒":"\'","᳓":"\'\'","\\"":"\'\'",""":"\'\'","“":"\'\'","”":"\'\'","‟":"\'\'","″":"\'\'","‶":"\'\'","〃":"\'\'","״":"\'\'","˝":"\'\'","ʺ":"\'\'","˶":"\'\'","ˮ":"\'\'","ײ":"\'\'","‴":"\'\'\'","‷":"\'\'\'","⁗":"\'\'\'\'","Ɓ":"\'B","Ɗ":"\'D","ʼn":"\'n","Ƥ":"\'P","Ƭ":"\'T","Ƴ":"\'Y","[":"(","❨":"(","❲":"(","〔":"(","﴾":"(","⸨":"((","㈠":"(ー)","⑵":"(2)","⒇":"(2O)","⑶":"(3)","⑷":"(4)","⑸":"(5)","⑹":"(6)","⑺":"(7)","⑻":"(8)","⑼":"(9)","⒜":"(a)","🄐":"(A)","⒝":"(b)","🄑":"(B)","⒞":"(c)","🄒":"(C)","⒟":"(d)","🄓":"(D)","⒠":"(e)","🄔":"(E)","⒡":"(f)","🄕":"(F)","⒢":"(g)","🄖":"(G)","⒣":"(h)","🄗":"(H)","⒤":"(i)","⒥":"(j)","🄙":"(J)","⒦":"(k)","🄚":"(K)","⑴":"(l)","🄘":"(l)","⒧":"(l)","🄛":"(L)","⑿":"(l2)","⒀":"(l3)","⒁":"(l4)","⒂":"(l5)","⒃":"(l6)","⒄":"(l7)","⒅":"(l8)","⒆":"(l9)","⑾":"(ll)","⑽":"(lO)","🄜":"(M)","⒩":"(n)","🄝":"(N)","⒪":"(o)","🄞":"(O)","⒫":"(p)","🄟":"(P)","⒬":"(q)","🄠":"(Q)","⒭":"(r)","🄡":"(R)","⒨":"(rn)","⒮":"(s)","🄢":"(S)","🄪":"(S)","⒯":"(t)","🄣":"(T)","⒰":"(u)","🄤":"(U)","⒱":"(v)","🄥":"(V)","⒲":"(w)","🄦":"(W)","⒳":"(x)","🄧":"(X)","⒴":"(y)","🄨":"(Y)","⒵":"(z)","🄩":"(Z)","㈀":"(ᄀ)","㈎":"(가)","㈁":"(ᄂ)","㈏":"(나)","㈂":"(ᄃ)","㈐":"(다)","㈃":"(ᄅ)","㈑":"(라)","㈄":"(ᄆ)","㈒":"(마)","㈅":"(ᄇ)","㈓":"(바)","㈆":"(ᄉ)","㈔":"(사)","㈇":"(ᄋ)","㈕":"(아)","㈝":"(오전)","㈞":"(오후)","㈈":"(ᄌ)","㈖":"(자)","㈜":"(주)","㈉":"(ᄎ)","㈗":"(차)","㈊":"(ᄏ)","㈘":"(카)","㈋":"(ᄐ)","㈙":"(타)","㈌":"(ᄑ)","㈚":"(파)","㈍":"(ᄒ)","㈛":"(하)","㈦":"(七)","㈢":"(三)","🉁":"(三)","㈨":"(九)","㈡":"(二)","🉂":"(二)","㈤":"(五)","㈹":"(代)","㈽":"(企)","㉁":"(休)","㈧":"(八)","㈥":"(六)","㈸":"(労)","🉇":"(勝)","㈩":"(十)","㈿":"(協)","㈴":"(名)","㈺":"(呼)","㈣":"(四)","㈯":"(土)","㈻":"(学)","🉃":"(安)","🉅":"(打)","🉈":"(敗)","㈰":"(日)","㈪":"(月)","㈲":"(有)","㈭":"(木)","🉀":"(本)","㈱":"(株)","㈬":"(水)","㈫":"(火)","🉄":"(点)","㈵":"(特)","🉆":"(盗)","㈼":"(監)","㈳":"(社)","㈷":"(祝)","㉀":"(祭)","㉂":"(自)","㉃":"(至)","㈶":"(財)","㈾":"(資)","㈮":"(金)","]":")","❩":")","❳":")","〕":")","﴿":")","⸩":"))","❴":"{","𝄔":"{","❵":"}","〚":"⟦","〛":"⟧","⟨":"❬","〈":"❬","〈":"❬","㇛":"❬","く":"❬","𡿨":"❬","⟩":"❭","〉":"❭","〉":"❭","^":"︿","⸿":"¶","⁎":"*","٭":"*","∗":"*","𐌟":"*","᜵":"/","⁁":"/","∕":"/","⁄":"/","╱":"/","⟋":"/","⧸":"/","𝈺":"/","㇓":"/","〳":"/","Ⳇ":"/","ノ":"/","丿":"/","⼃":"/","⧶":"/̄","⫽":"//","⫻":"///","\":"\\\\","﹨":"\\\\","∖":"\\\\","⟍":"\\\\","⧵":"\\\\","⧹":"\\\\","𝈏":"\\\\","𝈻":"\\\\","㇔":"\\\\","丶":"\\\\","⼂":"\\\\","⳹":"\\\\\\\\","⑊":"\\\\\\\\","⟈":"\\\\ᑕ","ꝸ":"&","૰":"॰","𑂻":"॰","𑇇":"॰","⚬":"॰","𑇛":"꣼","៙":"๏","៕":"๚","៚":"๛","༌":"་","༎":"།།","˄":"^","ˆ":"^","꙾":"ˇ","˘":"ˇ","‾":"ˉ","﹉":"ˉ","﹊":"ˉ","﹋":"ˉ","﹌":"ˉ","¯":"ˉ"," ̄":"ˉ","▔":"ˉ","ъ":"ˉb","ꙑ":"ˉbi","͵":"ˏ","˻":"˪","꜖":"˪","꜔":"˫","。":"˳","⸰":"°","˚":"°","∘":"°","○":"°","◦":"°","⍜":"°̲","⍤":"°̈","℃":"°C","℉":"°F","௵":"௳","༛":"༚༚","༟":"༚༝","࿎":"༝༚","༞":"༝༝","Ⓒ":"©","Ⓡ":"®","Ⓟ":"℗","𝈛":"⅄","⯬":"↞","⯭":"↟","⯮":"↠","⯯":"↡","↵":"↲","⥥":"⇃⇂","⥯":"⇃ᛚ","𝛛":"∂","𝜕":"∂","𝝏":"∂","𝞉":"∂","𝟃":"∂","𞣌":"∂","𞣍":"∂̵","ð":"∂̵","⌀":"∅","𝛁":"∇","𝛻":"∇","𝜵":"∇","𝝯":"∇","𝞩":"∇","𑢨":"∇","⍢":"∇̈","⍫":"∇̴","█":"∎","■":"∎","⨿":"∐","᛭":"+","➕":"+","𐊛":"+","⨣":"+̂","⨢":"+̊","⨤":"+̃","∔":"+̇","⨥":"+̣","⨦":"+̰","⨧":"+₂","➗":"÷","‹":"<","❮":"<","˂":"<","𝈶":"<","ᐸ":"<","ᚲ":"<","⋖":"<·","Ⲵ":"<·","ᑅ":"<·","≪":"<<","⋘":"<<<","᐀":"=","⹀":"=","゠":"=","꓿":"=","≚":"=̆","≙":"=̂","≗":"=̊","≐":"=̇","≑":"=̣̇","⩮":"=⃰","⩵":"==","⩶":"===","≞":"=ͫ","›":">","❯":">","˃":">","𝈷":">","ᐳ":">","𖼿":">","ᑁ":">·","⪥":"><","≫":">>","⨠":">>","⋙":">>>","⁓":"~","˜":"~","῀":"~","∼":"~","⍨":"~̈","⸞":"~̇","⩪":"~̇","⸟":"~̣","𞣈":"∠","⋀":"∧","∯":"∮∮","∰":"∮∮∮","⸫":"∴","⸪":"∵","⸬":"∷","𑇞":"≈","♎":"≏","🝞":"≏","≣":"≡","⨃":"⊍","⨄":"⊎","𝈸":"⊏","𝈹":"⊐","⨅":"⊓","⨆":"⊔","⨂":"⊗","⍟":"⊛","🝱":"⊠","🝕":"⊡","◁":"⊲","▷":"⊳","⍣":"⋆̈","︴":"⌇","◠":"⌒","⨽":"⌙","⌥":"⌤","⧇":"⌻","◎":"⌾","⦾":"⌾","⧅":"⍂","⦰":"⍉","⏃":"⍋","⏂":"⍎","⏁":"⍕","⏆":"⍭","☸":"⎈","︵":"⏜","︶":"⏝","︷":"⏞","︸":"⏟","︹":"⏠","︺":"⏡","▱":"⏥","⏼":"⏻","︱":"│","|":"│","┃":"│","┏":"┌","┣":"├","▐":"▌","▗":"▖","▝":"▘","☐":"□","■":"▪","▸":"▶","►":"▶","⳩":"☧","🜊":"☩","🌒":"☽","🌙":"☽","⏾":"☾","🌘":"☾","⧙":"⦚","🜺":"⧟","⨾":"⨟","𐆠":"⳨","♩":"𝅘𝅥","♪":"𝅘𝅥𝅮","⓪":"🄍","↺":"🄎","˙":"ॱ","ൎ":"ॱ","-":"ー","—":"ー","―":"ー","─":"ー","━":"ー","㇐":"ー","ꟷ":"ー","ᅳ":"ー","ㅡ":"ー","一":"ー","⼀":"ー","ᆖ":"ーー","ힹ":"ーᅡ","ힺ":"ーᅥ","ힻ":"ーᅥ丨","ힼ":"ーᅩ","ᆕ":"ーᅮ","ᅴ":"ー丨","ㅢ":"ー丨","ᆗ":"ー丨ᅮ","🄏":"$⃠","₤":"£","〒":"₸","〶":"₸","᭜":"᭐","꧆":"꧐","𑓑":"১","೧":"౧","ၥ":"၁","①":"➀","⑩":"➉","⏨":"₁₀","𝟐":"2","𝟚":"2","𝟤":"2","𝟮":"2","𝟸":"2","🯲":"2","Ꝛ":"2","Ƨ":"2","Ϩ":"2","Ꙅ":"2","ᒿ":"2","ꛯ":"2","ꧏ":"٢","۲":"٢","૨":"२","𑓒":"২","೨":"౨","②":"➁","ƻ":"2̵","🄃":"2,","⒉":"2.","㏵":"22日","㍮":"22点","㏶":"23日","㍯":"23点","㏷":"24日","㍰":"24点","㏸":"25日","㏹":"26日","㏺":"27日","㏻":"28日","㏼":"29日","㏴":"2l日","㍭":"2l点","⒛":"2O.","㏳":"2O日","㍬":"2O点","෩":"෨ා","෯":"෨ී","㏡":"2日","㋁":"2月","㍚":"2点","𝈆":"3","𝟑":"3","𝟛":"3","𝟥":"3","𝟯":"3","𝟹":"3","🯳":"3","Ɜ":"3","Ȝ":"3","Ʒ":"3","Ꝫ":"3","Ⳍ":"3","З":"3","Ӡ":"3","𖼻":"3","𑣊":"3","۳":"٣","𞣉":"٣","૩":"३","③":"➂","Ҙ":"3̦","🄄":"3,","⒊":"3.","㏾":"3l日","㏽":"3O日","㏢":"3日","㋂":"3月","㍛":"3点","𝟒":"4","𝟜":"4","𝟦":"4","𝟰":"4","𝟺":"4","🯴":"4","Ꮞ":"4","𑢯":"4","۴":"٤","૪":"४","④":"➃","🄅":"4,","⒋":"4.","ᔰ":"4·","㏣":"4日","㋃":"4月","㍜":"4点","𝟓":"5","𝟝":"5","𝟧":"5","𝟱":"5","𝟻":"5","🯵":"5","Ƽ":"5","𑢻":"5","⑤":"➄","🄆":"5,","⒌":"5.","㏤":"5日","㋄":"5月","㍝":"5点","𝟔":"6","𝟞":"6","𝟨":"6","𝟲":"6","𝟼":"6","🯶":"6","Ⳓ":"6","б":"6","Ꮾ":"6","𑣕":"6","۶":"٦","𑓖":"৬","⑥":"➅","🄇":"6,","⒍":"6.","㏥":"6日","㋅":"6月","㍞":"6点","𝈒":"7","𝟕":"7","𝟟":"7","𝟩":"7","𝟳":"7","𝟽":"7","🯷":"7","𐓒":"7","𑣆":"7","⑦":"➆","🄈":"7,","⒎":"7.","㏦":"7日","㋆":"7月","㍟":"7点","ଃ":"8","৪":"8","੪":"8","𞣋":"8","𝟖":"8","𝟠":"8","𝟪":"8","𝟴":"8","𝟾":"8","🯸":"8","ȣ":"8","Ȣ":"8","𐌚":"8","૮":"८","⑧":"➇","🄉":"8,","⒏":"8.","㏧":"8日","㋇":"8月","㍠":"8点","੧":"9","୨":"9","৭":"9","൭":"9","𝟗":"9","𝟡":"9","𝟫":"9","𝟵":"9","𝟿":"9","🯹":"9","Ꝯ":"9","Ⳋ":"9","𑣌":"9","𑢬":"9","𑣖":"9","१":"٩","𑣤":"٩","۹":"٩","೯":"౯","⑨":"➈","🄊":"9,","⒐":"9.","㏨":"9日","㋈":"9月","㍡":"9点","⍺":"a","a":"a","𝐚":"a","𝑎":"a","𝒂":"a","𝒶":"a","𝓪":"a","𝔞":"a","𝕒":"a","𝖆":"a","𝖺":"a","𝗮":"a","𝘢":"a","𝙖":"a","𝚊":"a","ɑ":"a","α":"a","𝛂":"a","𝛼":"a","𝜶":"a","𝝰":"a","𝞪":"a","а":"a","ⷶ":"ͣ","A":"A","𝐀":"A","𝐴":"A","𝑨":"A","𝒜":"A","𝓐":"A","𝔄":"A","𝔸":"A","𝕬":"A","𝖠":"A","𝗔":"A","𝘈":"A","𝘼":"A","𝙰":"A","Α":"A","𝚨":"A","𝛢":"A","𝜜":"A","𝝖":"A","𝞐":"A","А":"A","Ꭺ":"A","ᗅ":"A","ꓮ":"A","𖽀":"A","𐊠":"A","⍶":"a̲","ǎ":"ă","Ǎ":"Ă","ȧ":"å","Ȧ":"Å","ẚ":"ả","℀":"a/c","℁":"a/s","ꜳ":"aa","Ꜳ":"AA","æ":"ae","ӕ":"ae","Æ":"AE","Ӕ":"AE","ꜵ":"ao","Ꜵ":"AO","🜇":"AR","ꜷ":"au","Ꜷ":"AU","ꜹ":"av","ꜻ":"av","Ꜹ":"AV","Ꜻ":"AV","ꜽ":"ay","Ꜽ":"AY","ꭺ":"ᴀ","∀":"Ɐ","𝈗":"Ɐ","ᗄ":"Ɐ","ꓯ":"Ɐ","𐐟":"Ɒ","𝐛":"b","𝑏":"b","𝒃":"b","𝒷":"b","𝓫":"b","𝔟":"b","𝕓":"b","𝖇":"b","𝖻":"b","𝗯":"b","𝘣":"b","𝙗":"b","𝚋":"b","Ƅ":"b","Ь":"b","Ꮟ":"b","ᑲ":"b","ᖯ":"b","B":"B","ℬ":"B","𝐁":"B","𝐵":"B","𝑩":"B","𝓑":"B","𝔅":"B","𝔹":"B","𝕭":"B","𝖡":"B","𝗕":"B","𝘉":"B","𝘽":"B","𝙱":"B","Ꞵ":"B","Β":"B","𝚩":"B","𝛣":"B","𝜝":"B","𝝗":"B","𝞑":"B","В":"B","Ᏼ":"B","ᗷ":"B","ꓐ":"B","𐊂":"B","𐊡":"B","𐌁":"B","ɓ":"b̔","ᑳ":"ḃ","ƃ":"b̄","Ƃ":"b̄","Б":"b̄","ƀ":"b̵","ҍ":"b̵","Ҍ":"b̵","ѣ":"b̵","Ѣ":"b̵","ᑿ":"b·","ᒁ":"ḃ·","ᒈ":"b\'","Ы":"bl","в":"ʙ","ᏼ":"ʙ","c":"c","ⅽ":"c","𝐜":"c","𝑐":"c","𝒄":"c","𝒸":"c","𝓬":"c","𝔠":"c","𝕔":"c","𝖈":"c","𝖼":"c","𝗰":"c","𝘤":"c","𝙘":"c","𝚌":"c","ᴄ":"c","ϲ":"c","ⲥ":"c","с":"c","ꮯ":"c","𐐽":"c","ⷭ":"ͨ","🝌":"C","𑣲":"C","𑣩":"C","C":"C","Ⅽ":"C","ℂ":"C","ℭ":"C","𝐂":"C","𝐶":"C","𝑪":"C","𝒞":"C","𝓒":"C","𝕮":"C","𝖢":"C","𝗖":"C","𝘊":"C","𝘾":"C","𝙲":"C","Ϲ":"C","Ⲥ":"C","С":"C","Ꮯ":"C","ꓚ":"C","𐊢":"C","𐌂":"C","𐐕":"C","𐔜":"C","¢":"c̸","ȼ":"c̸","₡":"C⃫","🅮":"C⃠","ç":"c̦","ҫ":"c̦","Ç":"C̦","Ҫ":"C̦","Ƈ":"C\'","℅":"c/o","℆":"c/u","🅭":"㏄\\t⃝","⋴":"ꞓ","ɛ":"ꞓ","ε":"ꞓ","ϵ":"ꞓ","𝛆":"ꞓ","𝛜":"ꞓ","𝜀":"ꞓ","𝜖":"ꞓ","𝜺":"ꞓ","𝝐":"ꞓ","𝝴":"ꞓ","𝞊":"ꞓ","𝞮":"ꞓ","𝟄":"ꞓ","ⲉ":"ꞓ","є":"ꞓ","ԑ":"ꞓ","ꮛ":"ꞓ","𑣎":"ꞓ","𐐩":"ꞓ","€":"Ꞓ","Ⲉ":"Ꞓ","Є":"Ꞓ","⍷":"ꞓ̲","ͽ":"ꜿ","Ͽ":"Ꜿ","ⅾ":"d","ⅆ":"d","𝐝":"d","𝑑":"d","𝒅":"d","𝒹":"d","𝓭":"d","𝔡":"d","𝕕":"d","𝖉":"d","𝖽":"d","𝗱":"d","𝘥":"d","𝙙":"d","𝚍":"d","ԁ":"d","Ꮷ":"d","ᑯ":"d","ꓒ":"d","Ⅾ":"D","ⅅ":"D","𝐃":"D","𝐷":"D","𝑫":"D","𝒟":"D","𝓓":"D","𝔇":"D","𝔻":"D","𝕯":"D","𝖣":"D","𝗗":"D","𝘋":"D","𝘿":"D","𝙳":"D","Ꭰ":"D","ᗞ":"D","ᗪ":"D","ꓓ":"D","ɗ":"d̔","ɖ":"d̨","ƌ":"d̄","đ":"d̵","Đ":"D̵","Ð":"D̵","Ɖ":"D̵","₫":"ḏ̵","ꝺ":"Ꝺ","ᑻ":"d·","ᒇ":"d\'","ʤ":"dȝ","dz":"dz","ʣ":"dz","Dz":"Dz","DZ":"DZ","dž":"dž","Dž":"Dž","DŽ":"DŽ","ʥ":"dʑ","ꭰ":"ᴅ","⸹":"ẟ","δ":"ẟ","𝛅":"ẟ","𝛿":"ẟ","𝜹":"ẟ","𝝳":"ẟ","𝞭":"ẟ","ծ":"ẟ","ᕷ":"ẟ","℮":"e","e":"e","ℯ":"e","ⅇ":"e","𝐞":"e","𝑒":"e","𝒆":"e","𝓮":"e","𝔢":"e","𝕖":"e","𝖊":"e","𝖾":"e","𝗲":"e","𝘦":"e","𝙚":"e","𝚎":"e","ꬲ":"e","е":"e","ҽ":"e","ⷷ":"ͤ","⋿":"E","E":"E","ℰ":"E","𝐄":"E","𝐸":"E","𝑬":"E","𝓔":"E","𝔈":"E","𝔼":"E","𝕰":"E","𝖤":"E","𝗘":"E","𝘌":"E","𝙀":"E","𝙴":"E","Ε":"E","𝚬":"E","𝛦":"E","𝜠":"E","𝝚":"E","𝞔":"E","Е":"E","ⴹ":"E","Ꭼ":"E","ꓰ":"E","𑢦":"E","𑢮":"E","𐊆":"E","ě":"ĕ","Ě":"Ĕ","ɇ":"e̸","Ɇ":"E̸","ҿ":"ę","ꭼ":"ᴇ","ə":"ǝ","ә":"ǝ","∃":"Ǝ","ⴺ":"Ǝ","ꓱ":"Ǝ","ɚ":"ǝ˞","ᴔ":"ǝo","ꭁ":"ǝo̸","ꭂ":"ǝo̵","Ә":"Ə","𝈡":"Ɛ","ℇ":"Ɛ","Ԑ":"Ɛ","Ꮛ":"Ɛ","𖼭":"Ɛ","𐐁":"Ɛ","ᶟ":"ᵋ","ᴈ":"ɜ","з":"ɜ","ҙ":"ɜ̦","𐑂":"ɞ","ꞝ":"ʚ","𐐪":"ʚ","𝐟":"f","𝑓":"f","𝒇":"f","𝒻":"f","𝓯":"f","𝔣":"f","𝕗":"f","𝖋":"f","𝖿":"f","𝗳":"f","𝘧":"f","𝙛":"f","𝚏":"f","ꬵ":"f","ꞙ":"f","ſ":"f","ẝ":"f","ք":"f","𝈓":"F","ℱ":"F","𝐅":"F","𝐹":"F","𝑭":"F","𝓕":"F","𝔉":"F","𝔽":"F","𝕱":"F","𝖥":"F","𝗙":"F","𝘍":"F","𝙁":"F","𝙵":"F","Ꞙ":"F","Ϝ":"F","𝟊":"F","ᖴ":"F","ꓝ":"F","𑣂":"F","𑢢":"F","𐊇":"F","𐊥":"F","𐔥":"F","ƒ":"f̦","Ƒ":"F̦","ᵮ":"f̴","℻":"FAX","ff":"ff","ffi":"ffi","ffl":"ffl","fi":"fi","fl":"fl","ʩ":"fŋ","ᖵ":"Ⅎ","ꓞ":"Ⅎ","𝈰":"ꟻ","ᖷ":"ꟻ","g":"g","ℊ":"g","𝐠":"g","𝑔":"g","𝒈":"g","𝓰":"g","𝔤":"g","𝕘":"g","𝖌":"g","𝗀":"g","𝗴":"g","𝘨":"g","𝙜":"g","𝚐":"g","ɡ":"g","ᶃ":"g","ƍ":"g","ց":"g","𝐆":"G","𝐺":"G","𝑮":"G","𝒢":"G","𝓖":"G","𝔊":"G","𝔾":"G","𝕲":"G","𝖦":"G","𝗚":"G","𝘎":"G","𝙂":"G","𝙶":"G","Ԍ":"G","Ꮐ":"G","Ᏻ":"G","ꓖ":"G","ᶢ":"ᵍ","ɠ":"g̔","ǧ":"ğ","Ǧ":"Ğ","ǵ":"ģ","ǥ":"g̵","Ǥ":"G̵","Ɠ":"G\'","ԍ":"ɢ","ꮐ":"ɢ","ᏻ":"ɢ","h":"h","ℎ":"h","𝐡":"h","𝒉":"h","𝒽":"h","𝓱":"h","𝔥":"h","𝕙":"h","𝖍":"h","𝗁":"h","𝗵":"h","𝘩":"h","𝙝":"h","𝚑":"h","һ":"h","հ":"h","Ꮒ":"h","H":"H","ℋ":"H","ℌ":"H","ℍ":"H","𝐇":"H","𝐻":"H","𝑯":"H","𝓗":"H","𝕳":"H","𝖧":"H","𝗛":"H","𝘏":"H","𝙃":"H","𝙷":"H","Η":"H","𝚮":"H","𝛨":"H","𝜢":"H","𝝜":"H","𝞖":"H","Ⲏ":"H","Н":"H","Ꮋ":"H","ᕼ":"H","ꓧ":"H","𐋏":"H","ᵸ":"ᴴ","ɦ":"h̔","ꚕ":"h̔","Ᏺ":"h̔","Ⱨ":"H̩","Ң":"H̩","ħ":"h̵","ℏ":"h̵","ћ":"h̵","Ħ":"H̵","Ӊ":"H̦","Ӈ":"H̦","н":"ʜ","ꮋ":"ʜ","ң":"ʜ̩","ӊ":"ʜ̦","ӈ":"ʜ̦","Ԋ":"Ƕ","ꮀ":"ⱶ","Ͱ":"Ⱶ","Ꭸ":"Ⱶ","Ꮀ":"Ⱶ","ꚱ":"Ⱶ","ꞕ":"ꜧ","˛":"i","⍳":"i","i":"i","ⅰ":"i","ℹ":"i","ⅈ":"i","𝐢":"i","𝑖":"i","𝒊":"i","𝒾":"i","𝓲":"i","𝔦":"i","𝕚":"i","𝖎":"i","𝗂":"i","𝗶":"i","𝘪":"i","𝙞":"i","𝚒":"i","ı":"i","𝚤":"i","ɪ":"i","ɩ":"i","ι":"i","ι":"i","ͺ":"i","𝛊":"i","𝜄":"i","𝜾":"i","𝝸":"i","𝞲":"i","і":"i","ꙇ":"i","ӏ":"i","ꭵ":"i","Ꭵ":"i","𑣃":"i","ⓛ":"Ⓘ","⍸":"i̲","ǐ":"ĭ","Ǐ":"Ĭ","ɨ":"i̵","ᵻ":"i̵","ᵼ":"i̵","ⅱ":"ii","ⅲ":"iii","ij":"ij","ⅳ":"iv","ⅸ":"ix","j":"j","ⅉ":"j","𝐣":"j","𝑗":"j","𝒋":"j","𝒿":"j","𝓳":"j","𝔧":"j","𝕛":"j","𝖏":"j","𝗃":"j","𝗷":"j","𝘫":"j","𝙟":"j","𝚓":"j","ϳ":"j","ј":"j","J":"J","𝐉":"J","𝐽":"J","𝑱":"J","𝒥":"J","𝓙":"J","𝔍":"J","𝕁":"J","𝕵":"J","𝖩":"J","𝗝":"J","𝘑":"J","𝙅":"J","𝙹":"J","Ʝ":"J","Ϳ":"J","Ј":"J","Ꭻ":"J","ᒍ":"J","ꓙ":"J","ɉ":"j̵","Ɉ":"J̵","ᒙ":"J·","𝚥":"ȷ","յ":"ȷ","ꭻ":"ᴊ","𝐤":"k","𝑘":"k","𝒌":"k","𝓀":"k","𝓴":"k","𝔨":"k","𝕜":"k","𝖐":"k","𝗄":"k","𝗸":"k","𝘬":"k","𝙠":"k","𝚔":"k","K":"K","K":"K","𝐊":"K","𝐾":"K","𝑲":"K","𝒦":"K","𝓚":"K","𝔎":"K","𝕂":"K","𝕶":"K","𝖪":"K","𝗞":"K","𝘒":"K","𝙆":"K","𝙺":"K","Κ":"K","𝚱":"K","𝛫":"K","𝜥":"K","𝝟":"K","𝞙":"K","Ⲕ":"K","К":"K","Ꮶ":"K","ᛕ":"K","ꓗ":"K","𐔘":"K","ƙ":"k̔","Ⱪ":"K̩","Қ":"K̩","₭":"K̵","Ꝁ":"K̵","Ҟ":"K̵","Ƙ":"K\'","׀":"l","|":"l","∣":"l","⏽":"l","│":"l","١":"l","۱":"l","𐌠":"l","𞣇":"l","𝟏":"l","𝟙":"l","𝟣":"l","𝟭":"l","𝟷":"l","🯱":"l","I":"l","I":"l","Ⅰ":"l","ℐ":"l","ℑ":"l","𝐈":"l","𝐼":"l","𝑰":"l","𝓘":"l","𝕀":"l","𝕴":"l","𝖨":"l","𝗜":"l","𝘐":"l","𝙄":"l","𝙸":"l","Ɩ":"l","l":"l","ⅼ":"l","ℓ":"l","𝐥":"l","𝑙":"l","𝒍":"l","𝓁":"l","𝓵":"l","𝔩":"l","𝕝":"l","𝖑":"l","𝗅":"l","𝗹":"l","𝘭":"l","𝙡":"l","𝚕":"l","ǀ":"l","Ι":"l","𝚰":"l","𝛪":"l","𝜤":"l","𝝞":"l","𝞘":"l","Ⲓ":"l","І":"l","Ӏ":"l","ו":"l","ן":"l","ا":"l","𞸀":"l","𞺀":"l","ﺎ":"l","ﺍ":"l","ߊ":"l","ⵏ":"l","ᛁ":"l","ꓲ":"l","𖼨":"l","𐊊":"l","𐌉":"l","𝈪":"L","Ⅼ":"L","ℒ":"L","𝐋":"L","𝐿":"L","𝑳":"L","𝓛":"L","𝔏":"L","𝕃":"L","𝕷":"L","𝖫":"L","𝗟":"L","𝘓":"L","𝙇":"L","𝙻":"L","Ⳑ":"L","Ꮮ":"L","ᒪ":"L","ꓡ":"L","𖼖":"L","𑢣":"L","𑢲":"L","𐐛":"L","𐔦":"L","ﴼ":"l̋","ﴽ":"l̋","ł":"l̸","Ł":"L̸","ɭ":"l̨","Ɨ":"l̵","ƚ":"l̵","ɫ":"l̴","إ":"lٕ","ﺈ":"lٕ","ﺇ":"lٕ","ٳ":"lٕ","ŀ":"l·","Ŀ":"l·","ᒷ":"l·","🄂":"l,","⒈":"l.","ױ":"l\'","⒓":"l2.","㏫":"l2日","㋋":"l2月","㍤":"l2点","⒔":"l3.","㏬":"l3日","㍥":"l3点","⒕":"l4.","㏭":"l4日","㍦":"l4点","⒖":"l5.","㏮":"l5日","㍧":"l5点","⒗":"l6.","㏯":"l6日","㍨":"l6点","⒘":"l7.","㏰":"l7日","㍩":"l7点","⒙":"l8.","㏱":"l8日","㍪":"l8点","⒚":"l9.","㏲":"l9日","㍫":"l9点","lj":"lj","IJ":"lJ","Lj":"Lj","LJ":"LJ","‖":"ll","∥":"ll","Ⅱ":"ll","ǁ":"ll","װ":"ll","𐆙":"l̵l̵","⒒":"ll.","Ⅲ":"lll","𐆘":"l̵l̵S̵","㏪":"ll日","㋊":"ll月","㍣":"ll点","Ю":"lO","⒑":"lO.","㏩":"lO日","㋉":"lO月","㍢":"lO点","ʪ":"ls","₶":"lt","Ⅳ":"lV","Ⅸ":"lX","ɮ":"lȝ","ʫ":"lz","أ":"lٴ","ﺄ":"lٴ","ﺃ":"lٴ","ٲ":"lٴ","ٵ":"lٴ","ﷳ":"lكبر","ﷲ":"lللّٰo","㏠":"l日","㋀":"l月","㍙":"l点","ⳑ":"ʟ","ꮮ":"ʟ","𐑃":"ʟ","M":"M","Ⅿ":"M","ℳ":"M","𝐌":"M","𝑀":"M","𝑴":"M","𝓜":"M","𝔐":"M","𝕄":"M","𝕸":"M","𝖬":"M","𝗠":"M","𝘔":"M","𝙈":"M","𝙼":"M","Μ":"M","𝚳":"M","𝛭":"M","𝜧":"M","𝝡":"M","𝞛":"M","Ϻ":"M","Ⲙ":"M","М":"M","Ꮇ":"M","ᗰ":"M","ᛖ":"M","ꓟ":"M","𐊰":"M","𐌑":"M","Ӎ":"M̦","🝫":"MB","ⷨ":"ᷟ","𝐧":"n","𝑛":"n","𝒏":"n","𝓃":"n","𝓷":"n","𝔫":"n","𝕟":"n","𝖓":"n","𝗇":"n","𝗻":"n","𝘯":"n","𝙣":"n","𝚗":"n","ո":"n","ռ":"n","N":"N","ℕ":"N","𝐍":"N","𝑁":"N","𝑵":"N","𝒩":"N","𝓝":"N","𝔑":"N","𝕹":"N","𝖭":"N","𝗡":"N","𝘕":"N","𝙉":"N","𝙽":"N","Ν":"N","𝚴":"N","𝛮":"N","𝜨":"N","𝝢":"N","𝞜":"N","Ⲛ":"N","ꓠ":"N","𐔓":"N","𐆎":"N̊","ɳ":"n̨","ƞ":"n̩","η":"n̩","𝛈":"n̩","𝜂":"n̩","𝜼":"n̩","𝝶":"n̩","𝞰":"n̩","Ɲ":"N̦","ᵰ":"n̴","nj":"nj","Nj":"Nj","NJ":"NJ","№":"No","ͷ":"ᴎ","и":"ᴎ","𐑍":"ᴎ","ņ":"ɲ","ం":"o","ಂ":"o","ം":"o","ං":"o","०":"o","੦":"o","૦":"o","௦":"o","౦":"o","೦":"o","൦":"o","๐":"o","໐":"o","၀":"o","٥":"o","۵":"o","o":"o","ℴ":"o","𝐨":"o","𝑜":"o","𝒐":"o","𝓸":"o","𝔬":"o","𝕠":"o","𝖔":"o","𝗈":"o","𝗼":"o","𝘰":"o","𝙤":"o","𝚘":"o","ᴏ":"o","ᴑ":"o","ꬽ":"o","ο":"o","𝛐":"o","𝜊":"o","𝝄":"o","𝝾":"o","𝞸":"o","σ":"o","𝛔":"o","𝜎":"o","𝝈":"o","𝞂":"o","𝞼":"o","ⲟ":"o","о":"o","ჿ":"o","օ":"o","ס":"o","ه":"o","𞸤":"o","𞹤":"o","𞺄":"o","ﻫ":"o","ﻬ":"o","ﻪ":"o","ﻩ":"o","ھ":"o","ﮬ":"o","ﮭ":"o","ﮫ":"o","ﮪ":"o","ہ":"o","ﮨ":"o","ﮩ":"o","ﮧ":"o","ﮦ":"o","ە":"o","ഠ":"o","ဝ":"o","𐓪":"o","𑣈":"o","𑣗":"o","𐐬":"o","߀":"O","০":"O","୦":"O","〇":"O","𑓐":"O","𑣠":"O","𝟎":"O","𝟘":"O","𝟢":"O","𝟬":"O","𝟶":"O","🯰":"O","O":"O","𝐎":"O","𝑂":"O","𝑶":"O","𝒪":"O","𝓞":"O","𝔒":"O","𝕆":"O","𝕺":"O","𝖮":"O","𝗢":"O","𝘖":"O","𝙊":"O","𝙾":"O","Ο":"O","𝚶":"O","𝛰":"O","𝜪":"O","𝝤":"O","𝞞":"O","Ⲟ":"O","О":"O","Օ":"O","ⵔ":"O","ዐ":"O","ଠ":"O","𐓂":"O","ꓳ":"O","𑢵":"O","𐊒":"O","𐊫":"O","𐐄":"O","𐔖":"O","⁰":"º","ᵒ":"º","ǒ":"ŏ","Ǒ":"Ŏ","ۿ":"ô","Ő":"Ö","ø":"o̸","ꬾ":"o̸","Ø":"O̸","ⵁ":"O̸","Ǿ":"Ó̸","ɵ":"o̵","ꝋ":"o̵","ө":"o̵","ѳ":"o̵","ꮎ":"o̵","ꮻ":"o̵","⊖":"O̵","⊝":"O̵","⍬":"O̵","𝈚":"O̵","🜔":"O̵","Ɵ":"O̵","Ꝋ":"O̵","θ":"O̵","ϑ":"O̵","𝛉":"O̵","𝛝":"O̵","𝜃":"O̵","𝜗":"O̵","𝜽":"O̵","𝝑":"O̵","𝝷":"O̵","𝞋":"O̵","𝞱":"O̵","𝟅":"O̵","Θ":"O̵","ϴ":"O̵","𝚯":"O̵","𝚹":"O̵","𝛩":"O̵","𝛳":"O̵","𝜣":"O̵","𝜭":"O̵","𝝝":"O̵","𝝧":"O̵","𝞗":"O̵","𝞡":"O̵","Ө":"O̵","Ѳ":"O̵","ⴱ":"O̵","Ꮎ":"O̵","Ꮻ":"O̵","ꭴ":"ơ","ﳙ":"oٰ","🄁":"O,","🄀":"O.","ơ":"o\'","Ơ":"O\'","Ꭴ":"O\'","%":"º/₀","٪":"º/₀","⁒":"º/₀","‰":"º/₀₀","؉":"º/₀₀","‱":"º/₀₀₀","؊":"º/₀₀₀","œ":"oe","Œ":"OE","ɶ":"oᴇ","∞":"oo","ꝏ":"oo","ꚙ":"oo","Ꝏ":"OO","Ꚙ":"OO","ﳗ":"oج","ﱑ":"oج","ﳘ":"oم","ﱒ":"oم","ﶓ":"oمج","ﶔ":"oمم","ﱓ":"oى","ﱔ":"oى","ൟ":"oരo","တ":"oာ","㍘":"O点","ↄ":"ɔ","ᴐ":"ɔ","ͻ":"ɔ","𐑋":"ɔ","Ↄ":"Ɔ","Ͻ":"Ɔ","ꓛ":"Ɔ","𐐣":"Ɔ","ꬿ":"ɔ̸","ꭢ":"ɔe","𐐿":"ɷ","⍴":"p","p":"p","𝐩":"p","𝑝":"p","𝒑":"p","𝓅":"p","𝓹":"p","𝔭":"p","𝕡":"p","𝖕":"p","𝗉":"p","𝗽":"p","𝘱":"p","𝙥":"p","𝚙":"p","ρ":"p","ϱ":"p","𝛒":"p","𝛠":"p","𝜌":"p","𝜚":"p","𝝆":"p","𝝔":"p","𝞀":"p","𝞎":"p","𝞺":"p","𝟈":"p","ⲣ":"p","р":"p","P":"P","ℙ":"P","𝐏":"P","𝑃":"P","𝑷":"P","𝒫":"P","𝓟":"P","𝔓":"P","𝕻":"P","𝖯":"P","𝗣":"P","𝘗":"P","𝙋":"P","𝙿":"P","Ρ":"P","𝚸":"P","𝛲":"P","𝜬":"P","𝝦":"P","𝞠":"P","Ⲣ":"P","Р":"P","Ꮲ":"P","ᑭ":"P","ꓑ":"P","𐊕":"P","ƥ":"p̔","ᵽ":"p̵","ᑷ":"p·","ᒆ":"P\'","ᴩ":"ᴘ","ꮲ":"ᴘ","φ":"ɸ","ϕ":"ɸ","𝛗":"ɸ","𝛟":"ɸ","𝜑":"ɸ","𝜙":"ɸ","𝝋":"ɸ","𝝓":"ɸ","𝞅":"ɸ","𝞍":"ɸ","𝞿":"ɸ","𝟇":"ɸ","ⲫ":"ɸ","ф":"ɸ","𝐪":"q","𝑞":"q","𝒒":"q","𝓆":"q","𝓺":"q","𝔮":"q","𝕢":"q","𝖖":"q","𝗊":"q","𝗾":"q","𝘲":"q","𝙦":"q","𝚚":"q","ԛ":"q","գ":"q","զ":"q","ℚ":"Q","𝐐":"Q","𝑄":"Q","𝑸":"Q","𝒬":"Q","𝓠":"Q","𝔔":"Q","𝕼":"Q","𝖰":"Q","𝗤":"Q","𝘘":"Q","𝙌":"Q","𝚀":"Q","ⵕ":"Q","ʠ":"q̔","🜀":"QE","ᶐ":"ɋ","ᴋ":"ĸ","κ":"ĸ","ϰ":"ĸ","𝛋":"ĸ","𝛞":"ĸ","𝜅":"ĸ","𝜘":"ĸ","𝜿":"ĸ","𝝒":"ĸ","𝝹":"ĸ","𝞌":"ĸ","𝞳":"ĸ","𝟆":"ĸ","ⲕ":"ĸ","к":"ĸ","ꮶ":"ĸ","қ":"ĸ̩","ҟ":"ĸ̵","𝐫":"r","𝑟":"r","𝒓":"r","𝓇":"r","𝓻":"r","𝔯":"r","𝕣":"r","𝖗":"r","𝗋":"r","𝗿":"r","𝘳":"r","𝙧":"r","𝚛":"r","ꭇ":"r","ꭈ":"r","ᴦ":"r","ⲅ":"r","г":"r","ꮁ":"r","𝈖":"R","ℛ":"R","ℜ":"R","ℝ":"R","𝐑":"R","𝑅":"R","𝑹":"R","𝓡":"R","𝕽":"R","𝖱":"R","𝗥":"R","𝘙":"R","𝙍":"R","𝚁":"R","Ʀ":"R","Ꭱ":"R","Ꮢ":"R","𐒴":"R","ᖇ":"R","ꓣ":"R","𖼵":"R","ɽ":"r̨","ɼ":"r̩","ɍ":"r̵","ғ":"r̵","ᵲ":"r̴","ґ":"r\'","𑣣":"rn","m":"rn","ⅿ":"rn","𝐦":"rn","𝑚":"rn","𝒎":"rn","𝓂":"rn","𝓶":"rn","𝔪":"rn","𝕞":"rn","𝖒":"rn","𝗆":"rn","𝗺":"rn","𝘮":"rn","𝙢":"rn","𝚖":"rn","𑜀":"rn","₥":"rn̸","ɱ":"rn̦","ᵯ":"rn̴","₨":"Rs","ꭱ":"ʀ","ꮢ":"ʀ","я":"ᴙ","ᵳ":"ɾ̴","℩":"ɿ","s":"s","𝐬":"s","𝑠":"s","𝒔":"s","𝓈":"s","𝓼":"s","𝔰":"s","𝕤":"s","𝖘":"s","𝗌":"s","𝘀":"s","𝘴":"s","𝙨":"s","𝚜":"s","ꜱ":"s","ƽ":"s","ѕ":"s","ꮪ":"s","𑣁":"s","𐑈":"s","S":"S","𝐒":"S","𝑆":"S","𝑺":"S","𝒮":"S","𝓢":"S","𝔖":"S","𝕊":"S","𝕾":"S","𝖲":"S","𝗦":"S","𝘚":"S","𝙎":"S","𝚂":"S","Ѕ":"S","Տ":"S","Ꮥ":"S","Ꮪ":"S","ꓢ":"S","𖼺":"S","𐊖":"S","𐐠":"S","ʂ":"s̨","ᵴ":"s̴","ꞵ":"ß","β":"ß","ϐ":"ß","𝛃":"ß","𝛽":"ß","𝜷":"ß","𝝱":"ß","𝞫":"ß","Ᏸ":"ß","🝜":"sss","st":"st","∫":"ʃ","ꭍ":"ʃ","∑":"Ʃ","⅀":"Ʃ","Σ":"Ʃ","𝚺":"Ʃ","𝛴":"Ʃ","𝜮":"Ʃ","𝝨":"Ʃ","𝞢":"Ʃ","ⵉ":"Ʃ","∬":"ʃʃ","∭":"ʃʃʃ","⨌":"ʃʃʃʃ","𝐭":"t","𝑡":"t","𝒕":"t","𝓉":"t","𝓽":"t","𝔱":"t","𝕥":"t","𝖙":"t","𝗍":"t","𝘁":"t","𝘵":"t","𝙩":"t","𝚝":"t","⊤":"T","⟙":"T","🝨":"T","T":"T","𝐓":"T","𝑇":"T","𝑻":"T","𝒯":"T","𝓣":"T","𝔗":"T","𝕋":"T","𝕿":"T","𝖳":"T","𝗧":"T","𝘛":"T","𝙏":"T","𝚃":"T","Τ":"T","𝚻":"T","𝛵":"T","𝜯":"T","𝝩":"T","𝞣":"T","Ⲧ":"T","Т":"T","Ꭲ":"T","ꓔ":"T","𖼊":"T","𑢼":"T","𐊗":"T","𐊱":"T","𐌕":"T","ƭ":"t̔","⍡":"T̈","Ⱦ":"T̸","Ț":"Ţ","Ʈ":"T̨","Ҭ":"T̩","₮":"T⃫","ŧ":"t̵","Ŧ":"T̵","ᵵ":"t̴","Ⴀ":"Ꞇ","Ꜩ":"T3","ʨ":"tɕ","℡":"TEL","ꝷ":"tf","ʦ":"ts","ʧ":"tʃ","ꜩ":"tȝ","τ":"ᴛ","𝛕":"ᴛ","𝜏":"ᴛ","𝝉":"ᴛ","𝞃":"ᴛ","𝞽":"ᴛ","т":"ᴛ","ꭲ":"ᴛ","ҭ":"ᴛ̩","ţ":"ƫ","ț":"ƫ","Ꮏ":"ƫ","𝐮":"u","𝑢":"u","𝒖":"u","𝓊":"u","𝓾":"u","𝔲":"u","𝕦":"u","𝖚":"u","𝗎":"u","𝘂":"u","𝘶":"u","𝙪":"u","𝚞":"u","ꞟ":"u","ᴜ":"u","ꭎ":"u","ꭒ":"u","ʋ":"u","υ":"u","𝛖":"u","𝜐":"u","𝝊":"u","𝞄":"u","𝞾":"u","ս":"u","𐓶":"u","𑣘":"u","∪":"U","⋃":"U","𝐔":"U","𝑈":"U","𝑼":"U","𝒰":"U","𝓤":"U","𝔘":"U","𝕌":"U","𝖀":"U","𝖴":"U","𝗨":"U","𝘜":"U","𝙐":"U","𝚄":"U","Ս":"U","ሀ":"U","𐓎":"U","ᑌ":"U","ꓴ":"U","𖽂":"U","𑢸":"U","ǔ":"ŭ","Ǔ":"Ŭ","ᵾ":"u̵","ꮜ":"u̵","Ʉ":"U̵","Ꮜ":"U̵","ᑘ":"U·","ᑧ":"U\'","ᵫ":"ue","ꭣ":"uo","ṃ":"ꭑ","պ":"ɰ","ሣ":"ɰ","℧":"Ʊ","ᘮ":"Ʊ","ᘴ":"Ʊ","ᵿ":"ʊ̵","∨":"v","⋁":"v","v":"v","ⅴ":"v","𝐯":"v","𝑣":"v","𝒗":"v","𝓋":"v","𝓿":"v","𝔳":"v","𝕧":"v","𝖛":"v","𝗏":"v","𝘃":"v","𝘷":"v","𝙫":"v","𝚟":"v","ᴠ":"v","ν":"v","𝛎":"v","𝜈":"v","𝝂":"v","𝝼":"v","𝞶":"v","ѵ":"v","ט":"v","𑜆":"v","ꮩ":"v","𑣀":"v","𝈍":"V","٧":"V","۷":"V","Ⅴ":"V","𝐕":"V","𝑉":"V","𝑽":"V","𝒱":"V","𝓥":"V","𝔙":"V","𝕍":"V","𝖁":"V","𝖵":"V","𝗩":"V","𝘝":"V","𝙑":"V","𝚅":"V","Ѵ":"V","ⴸ":"V","Ꮩ":"V","ᐯ":"V","ꛟ":"V","ꓦ":"V","𖼈":"V","𑢠":"V","𐔝":"V","𐆗":"V̵","ᐻ":"V·","🝬":"VB","ⅵ":"vi","ⅶ":"vii","ⅷ":"viii","Ⅵ":"Vl","Ⅶ":"Vll","Ⅷ":"Vlll","🜈":"Vᷤ","ᴧ":"ʌ","𐓘":"ʌ","٨":"Ʌ","۸":"Ʌ","Λ":"Ʌ","𝚲":"Ʌ","𝛬":"Ʌ","𝜦":"Ʌ","𝝠":"Ʌ","𝞚":"Ʌ","Л":"Ʌ","ⴷ":"Ʌ","𐒰":"Ʌ","ᐱ":"Ʌ","ꛎ":"Ʌ","ꓥ":"Ʌ","𖼽":"Ʌ","𐊍":"Ʌ","Ӆ":"Ʌ̦","ᐽ":"Ʌ·","ɯ":"w","𝐰":"w","𝑤":"w","𝒘":"w","𝓌":"w","𝔀":"w","𝔴":"w","𝕨":"w","𝖜":"w","𝗐":"w","𝘄":"w","𝘸":"w","𝙬":"w","𝚠":"w","ᴡ":"w","ѡ":"w","ԝ":"w","ա":"w","𑜊":"w","𑜎":"w","𑜏":"w","ꮃ":"w","𑣯":"W","𑣦":"W","𝐖":"W","𝑊":"W","𝑾":"W","𝒲":"W","𝓦":"W","𝔚":"W","𝕎":"W","𝖂":"W","𝖶":"W","𝗪":"W","𝘞":"W","𝙒":"W","𝚆":"W","Ԝ":"W","Ꮃ":"W","Ꮤ":"W","ꓪ":"W","ѽ":"w҆҇","𑓅":"ẇ","₩":"W̵","ꝡ":"w̦","ᴍ":"ʍ","м":"ʍ","ꮇ":"ʍ","ӎ":"ʍ̦","᙮":"x","×":"x","⤫":"x","⤬":"x","⨯":"x","x":"x","ⅹ":"x","𝐱":"x","𝑥":"x","𝒙":"x","𝓍":"x","𝔁":"x","𝔵":"x","𝕩":"x","𝖝":"x","𝗑":"x","𝘅":"x","𝘹":"x","𝙭":"x","𝚡":"x","х":"x","ᕁ":"x","ᕽ":"x","ⷯ":"ͯ","᙭":"X","╳":"X","𐌢":"X","𑣬":"X","X":"X","Ⅹ":"X","𝐗":"X","𝑋":"X","𝑿":"X","𝒳":"X","𝓧":"X","𝔛":"X","𝕏":"X","𝖃":"X","𝖷":"X","𝗫":"X","𝘟":"X","𝙓":"X","𝚇":"X","Ꭓ":"X","Χ":"X","𝚾":"X","𝛸":"X","𝜲":"X","𝝬":"X","𝞦":"X","Ⲭ":"X","Х":"X","ⵝ":"X","ᚷ":"X","ꓫ":"X","𐊐":"X","𐊴":"X","𐌗":"X","𐔧":"X","⨰":"ẋ","Ҳ":"X̩","𐆖":"X̵","ⅺ":"xi","ⅻ":"xii","Ⅺ":"Xl","Ⅻ":"Xll","ɣ":"y","ᶌ":"y","y":"y","𝐲":"y","𝑦":"y","𝒚":"y","𝓎":"y","𝔂":"y","𝔶":"y","𝕪":"y","𝖞":"y","𝗒":"y","𝘆":"y","𝘺":"y","𝙮":"y","𝚢":"y","ʏ":"y","ỿ":"y","ꭚ":"y","γ":"y","ℽ":"y","𝛄":"y","𝛾":"y","𝜸":"y","𝝲":"y","𝞬":"y","у":"y","ү":"y","ყ":"y","𑣜":"y","Y":"Y","𝐘":"Y","𝑌":"Y","𝒀":"Y","𝒴":"Y","𝓨":"Y","𝔜":"Y","𝕐":"Y","𝖄":"Y","𝖸":"Y","𝗬":"Y","𝘠":"Y","𝙔":"Y","𝚈":"Y","Υ":"Y","ϒ":"Y","𝚼":"Y","𝛶":"Y","𝜰":"Y","𝝪":"Y","𝞤":"Y","Ⲩ":"Y","У":"Y","Ү":"Y","Ꭹ":"Y","Ꮍ":"Y","ꓬ":"Y","𖽃":"Y","𑢤":"Y","𐊲":"Y","ƴ":"y̔","ɏ":"y̵","ұ":"y̵","¥":"Y̵","Ɏ":"Y̵","Ұ":"Y̵","ʒ":"ȝ","ꝫ":"ȝ","ⳍ":"ȝ","ӡ":"ȝ","ჳ":"ȝ","𝐳":"z","𝑧":"z","𝒛":"z","𝓏":"z","𝔃":"z","𝔷":"z","𝕫":"z","𝖟":"z","𝗓":"z","𝘇":"z","𝘻":"z","𝙯":"z","𝚣":"z","ᴢ":"z","ꮓ":"z","𑣄":"z","𐋵":"Z","𑣥":"Z","Z":"Z","ℤ":"Z","ℨ":"Z","𝐙":"Z","𝑍":"Z","𝒁":"Z","𝒵":"Z","𝓩":"Z","𝖅":"Z","𝖹":"Z","𝗭":"Z","𝘡":"Z","𝙕":"Z","𝚉":"Z","Ζ":"Z","𝚭":"Z","𝛧":"Z","𝜡":"Z","𝝛":"Z","𝞕":"Z","Ꮓ":"Z","ꓜ":"Z","𑢩":"Z","ʐ":"z̨","ƶ":"z̵","Ƶ":"Z̵","ȥ":"z̦","Ȥ":"Z̦","ᵶ":"z̴","ƿ":"þ","ϸ":"þ","Ϸ":"Þ","𐓄":"Þ","⁹":"ꝰ","ᴤ":"ƨ","ϩ":"ƨ","ꙅ":"ƨ","ь":"ƅ","ꮟ":"ƅ","ы":"ƅi","ꭾ":"ɂ","ˤ":"ˁ","ꛍ":"ʡ","⊙":"ʘ","☉":"ʘ","⨀":"ʘ","Ꙩ":"ʘ","ⵙ":"ʘ","𐓃":"ʘ","ℾ":"Γ","𝚪":"Γ","𝛤":"Γ","𝜞":"Γ","𝝘":"Γ","𝞒":"Γ","Ⲅ":"Γ","Г":"Γ","Ꮁ":"Γ","ᒥ":"Γ","𖼇":"Γ","Ғ":"Γ̵","ᒯ":"Γ·","Ґ":"Γ\'","∆":"Δ","△":"Δ","🜂":"Δ","𝚫":"Δ","𝛥":"Δ","𝜟":"Δ","𝝙":"Δ","𝞓":"Δ","Ⲇ":"Δ","ⵠ":"Δ","ᐃ":"Δ","𖼚":"Δ","𐊅":"Δ","𐊣":"Δ","⍙":"Δ̲","ᐏ":"Δ·","ᐬ":"Δᐠ","𝟋":"ϝ","𝛇":"ζ","𝜁":"ζ","𝜻":"ζ","𝝵":"ζ","𝞯":"ζ","ⳤ":"ϗ","𝛌":"λ","𝜆":"λ","𝝀":"λ","𝝺":"λ","𝞴":"λ","Ⲗ":"λ","𐓛":"λ","µ":"μ","𝛍":"μ","𝜇":"μ","𝝁":"μ","𝝻":"μ","𝞵":"μ","𝛏":"ξ","𝜉":"ξ","𝝃":"ξ","𝝽":"ξ","𝞷":"ξ","𝚵":"Ξ","𝛯":"Ξ","𝜩":"Ξ","𝝣":"Ξ","𝞝":"Ξ","ϖ":"π","ℼ":"π","𝛑":"π","𝛡":"π","𝜋":"π","𝜛":"π","𝝅":"π","𝝕":"π","𝝿":"π","𝞏":"π","𝞹":"π","𝟉":"π","ᴨ":"π","п":"π","∏":"Π","ℿ":"Π","𝚷":"Π","𝛱":"Π","𝜫":"Π","𝝥":"Π","𝞟":"Π","Ⲡ":"Π","П":"Π","ꛛ":"Π","𐊭":"Ϙ","𐌒":"Ϙ","ϛ":"ς","𝛓":"ς","𝜍":"ς","𝝇":"ς","𝞁":"ς","𝞻":"ς","𝚽":"Φ","𝛷":"Φ","𝜱":"Φ","𝝫":"Φ","𝞥":"Φ","Ⲫ":"Φ","Ф":"Φ","Փ":"Φ","ቀ":"Φ","ᛰ":"Φ","𐊳":"Φ","ꭓ":"χ","ꭕ":"χ","𝛘":"χ","𝜒":"χ","𝝌":"χ","𝞆":"χ","𝟀":"χ","ⲭ":"χ","𝛙":"ψ","𝜓":"ψ","𝝍":"ψ","𝞇":"ψ","𝟁":"ψ","ѱ":"ψ","𐓹":"ψ","𝚿":"Ψ","𝛹":"Ψ","𝜳":"Ψ","𝝭":"Ψ","𝞧":"Ψ","Ⲯ":"Ψ","Ѱ":"Ψ","𐓑":"Ψ","ᛘ":"Ψ","𐊵":"Ψ","⍵":"ω","ꞷ":"ω","𝛚":"ω","𝜔":"ω","𝝎":"ω","𝞈":"ω","𝟂":"ω","ⲱ":"ω","ꙍ":"ω","Ω":"Ω","𝛀":"Ω","𝛺":"Ω","𝜴":"Ω","𝝮":"Ω","𝞨":"Ω","ᘯ":"Ω","ᘵ":"Ω","𐊶":"Ω","⍹":"ω̲","ώ":"ῴ","☰":"Ⲷ","Ⳝ":"Ϭ","җ":"ж̩","Җ":"Ж̩","𝈋":"И","Ͷ":"И","ꚡ":"И","𐐥":"И","Й":"Ѝ","Ҋ":"Ѝ̦","ѝ":"й","ҋ":"й̦","𐒼":"Ӄ","ᴫ":"л","ӆ":"л̦","ꭠ":"љ","𐓫":"ꙩ","ᷮ":"ⷬ","𐓍":"Ћ","𝈂":"Ӿ","𝈢":"Ѡ","Ꮗ":"Ѡ","ᗯ":"Ѡ","Ѽ":"Ѡ҆҇","ᣭ":"Ѡ·","Ꞷ":"Ꙍ","ӌ":"ҷ","Ӌ":"Ҷ","Ҿ":"Ҽ̨","ⲽ":"ш","Ⲽ":"Ш","Ꙑ":"Ъl","℈":"Э","🜁":"Ꙙ","𖼜":"Ꙙ","ꦒ":"ⰿ","և":"եւ","ኔ":"ձ","ﬔ":"մե","ﬕ":"մի","ﬗ":"մխ","ﬓ":"մն","∩":"Ո","⋂":"Ո","𝉅":"Ո","በ":"Ո","ᑎ":"Ո","ꓵ":"Ո","ᑚ":"Ո·","ᑨ":"Ո\'","ﬖ":"վն","₽":"Ք","˓":"ՙ","ʿ":"ՙ","ℵ":"א","ﬡ":"א","אָ":"אַ","אּ":"אַ","ﭏ":"אל","ℶ":"ב","ℷ":"ג","ℸ":"ד","ﬢ":"ד","ﬣ":"ה","יּ":"יִ","ﬤ":"כ","ﬥ":"ל","ﬦ":"ם","ﬠ":"ע","ﬧ":"ר","שׂ":"שׁ","שּ":"שׁ","שּׂ":"שּׁ","ﬨ":"ת","ﺀ":"ء","۽":"ء͈","ﺂ":"آ","ﺁ":"آ","ﭑ":"ٱ","ﭐ":"ٱ","𞸁":"ب","𞸡":"ب","𞹡":"ب","𞺁":"ب","𞺡":"ب","ﺑ":"ب","ﺒ":"ب","ﺐ":"ب","ﺏ":"ب","ݑ":"بۛ","ࢶ":"بۢ","ࢡ":"بٔ","ﲠ":"بo","ﳢ":"بo","ﲜ":"بج","ﰅ":"بج","ﲝ":"بح","ﰆ":"بح","ﷂ":"بحى","ﲞ":"بخ","ﰇ":"بخ","ﳒ":"بخ","ﱋ":"بخ","ﶞ":"بخى","ﱪ":"بر","ﱫ":"بز","ﲟ":"بم","ﳡ":"بم","ﱬ":"بم","ﰈ":"بم","ﱭ":"بن","ﱮ":"بى","ﰉ":"بى","ﱯ":"بى","ﰊ":"بى","ﭔ":"ٻ","ﭕ":"ٻ","ﭓ":"ٻ","ﭒ":"ٻ","ې":"ٻ","ﯦ":"ٻ","ﯧ":"ٻ","ﯥ":"ٻ","ﯤ":"ٻ","ﭜ":"ڀ","ﭝ":"ڀ","ﭛ":"ڀ","ﭚ":"ڀ","ࢩ":"ݔ","ݧ":"ݔ","⍥":"ة","ö":"ة","ﺔ":"ة","ﺓ":"ة","ۃ":"ة","𞸕":"ت","𞸵":"ت","𞹵":"ت","𞺕":"ت","𞺵":"ت","ﺗ":"ت","ﺘ":"ت","ﺖ":"ت","ﺕ":"ت","ﲥ":"تo","ﳤ":"تo","ﲡ":"تج","ﰋ":"تج","ﵐ":"تجم","ﶠ":"تجى","ﶟ":"تجى","ﲢ":"تح","ﰌ":"تح","ﵒ":"تحج","ﵑ":"تحج","ﵓ":"تحم","ﲣ":"تخ","ﰍ":"تخ","ﵔ":"تخم","ﶢ":"تخى","ﶡ":"تخى","ﱰ":"تر","ﱱ":"تز","ﲤ":"تم","ﳣ":"تم","ﱲ":"تم","ﰎ":"تم","ﵕ":"تمج","ﵖ":"تمح","ﵗ":"تمخ","ﶤ":"تمى","ﶣ":"تمى","ﱳ":"تن","ﱴ":"تى","ﰏ":"تى","ﱵ":"تى","ﰐ":"تى","ﭠ":"ٺ","ﭡ":"ٺ","ﭟ":"ٺ","ﭞ":"ٺ","ﭤ":"ٿ","ﭥ":"ٿ","ﭣ":"ٿ","ﭢ":"ٿ","𞸂":"ج","𞸢":"ج","𞹂":"ج","𞹢":"ج","𞺂":"ج","𞺢":"ج","ﺟ":"ج","ﺠ":"ج","ﺞ":"ج","ﺝ":"ج","ﲧ":"جح","ﰕ":"جح","ﶦ":"جحى","ﶾ":"جحى","ﷻ":"جل جلlلo","ﲨ":"جم","ﰖ":"جم","ﵙ":"جمح","ﵘ":"جمح","ﶧ":"جمى","ﶥ":"جمى","ﴝ":"جى","ﴁ":"جى","ﴞ":"جى","ﴂ":"جى","ﭸ":"ڃ","ﭹ":"ڃ","ﭷ":"ڃ","ﭶ":"ڃ","ﭴ":"ڄ","ﭵ":"ڄ","ﭳ":"ڄ","ﭲ":"ڄ","ﭼ":"چ","ﭽ":"چ","ﭻ":"چ","ﭺ":"چ","ﮀ":"ڇ","ﮁ":"ڇ","ﭿ":"ڇ","ﭾ":"ڇ","𞸇":"ح","𞸧":"ح","𞹇":"ح","𞹧":"ح","𞺇":"ح","𞺧":"ح","ﺣ":"ح","ﺤ":"ح","ﺢ":"ح","ﺡ":"ح","څ":"حۛ","ځ":"حٔ","ݲ":"حٔ","ﲩ":"حج","ﰗ":"حج","ﶿ":"حجى","ﲪ":"حم","ﰘ":"حم","ﵛ":"حمى","ﵚ":"حمى","ﴛ":"حى","ﳿ":"حى","ﴜ":"حى","ﴀ":"حى","𞸗":"خ","𞸷":"خ","𞹗":"خ","𞹷":"خ","𞺗":"خ","𞺷":"خ","ﺧ":"خ","ﺨ":"خ","ﺦ":"خ","ﺥ":"خ","ﲫ":"خج","ﰙ":"خج","ﰚ":"خح","ﲬ":"خم","ﰛ":"خم","ﴟ":"خى","ﴃ":"خى","ﴠ":"خى","ﴄ":"خى","𐋡":"د","𞸃":"د","𞺃":"د","𞺣":"د","ﺪ":"د","ﺩ":"د","ڈ":"دؕ","ﮉ":"دؕ","ﮈ":"دؕ","ڎ":"دۛ","ﮇ":"دۛ","ﮆ":"دۛ","ۮ":"د̂","ࢮ":"د̤̣","𞸘":"ذ","𞺘":"ذ","𞺸":"ذ","ﺬ":"ذ","ﺫ":"ذ","ﱛ":"ذٰ","ڋ":"ڊؕ","ﮅ":"ڌ","ﮄ":"ڌ","ﮃ":"ڍ","ﮂ":"ڍ","𞸓":"ر","𞺓":"ر","𞺳":"ر","ﺮ":"ر","ﺭ":"ر","ڑ":"رؕ","ﮍ":"رؕ","ﮌ":"رؕ","ژ":"رۛ","ﮋ":"رۛ","ﮊ":"رۛ","ڒ":"ر̆","ࢹ":"ر̆̇","ۯ":"ر̂","ݬ":"رٔ","ﱜ":"رٰ","ﷶ":"رسول","﷼":"رىlل","𞸆":"ز","𞺆":"ز","𞺦":"ز","ﺰ":"ز","ﺯ":"ز","ࢲ":"ز̂","ݱ":"ڗؕ","𞸎":"س","𞸮":"س","𞹎":"س","𞹮":"س","𞺎":"س","𞺮":"س","ﺳ":"س","ﺴ":"س","ﺲ":"س","ﺱ":"س","ش":"سۛ","𞸔":"سۛ","𞸴":"سۛ","𞹔":"سۛ","𞹴":"سۛ","𞺔":"سۛ","𞺴":"سۛ","ﺷ":"سۛ","ﺸ":"سۛ","ﺶ":"سۛ","ﺵ":"سۛ","ݾ":"س̂","ﴱ":"سo","ﳨ":"سo","ﴲ":"سۛo","ﳪ":"سۛo","ﲭ":"سج","ﴴ":"سج","ﰜ":"سج","ﴭ":"سۛج","ﴷ":"سۛج","ﴥ":"سۛج","ﴉ":"سۛج","ﵝ":"سجح","ﵞ":"سجى","ﵩ":"سۛجى","ﲮ":"سح","ﴵ":"سح","ﰝ":"سح","ﴮ":"سۛح","ﴸ":"سۛح","ﴦ":"سۛح","ﴊ":"سۛح","ﵜ":"سحج","ﵨ":"سۛحم","ﵧ":"سۛحم","ﶪ":"سۛحى","ﲯ":"سخ","ﴶ":"سخ","ﰞ":"سخ","ﴯ":"سۛخ","ﴹ":"سۛخ","ﴧ":"سۛخ","ﴋ":"سۛخ","ﶨ":"سخى","ﷆ":"سخى","ﴪ":"سر","ﴎ":"سر","ﴩ":"سۛر","ﴍ":"سۛر","ﲰ":"سم","ﳧ":"سم","ﰟ":"سم","ﴰ":"سۛم","ﳩ":"سۛم","ﴨ":"سۛم","ﴌ":"سۛم","ﵡ":"سمج","ﵠ":"سمح","ﵟ":"سمح","ﵫ":"سۛمخ","ﵪ":"سۛمخ","ﵣ":"سمم","ﵢ":"سمم","ﵭ":"سۛمم","ﵬ":"سۛمم","ﴗ":"سى","ﳻ":"سى","ﴘ":"سى","ﳼ":"سى","ﴙ":"سۛى","ﳽ":"سۛى","ﴚ":"سۛى","ﳾ":"سۛى","𐋲":"ص","𞸑":"ص","𞸱":"ص","𞹑":"ص","𞹱":"ص","𞺑":"ص","𞺱":"ص","ﺻ":"ص","ﺼ":"ص","ﺺ":"ص","ﺹ":"ص","ڞ":"صۛ","ࢯ":"ص̤̣","ﲱ":"صح","ﰠ":"صح","ﵥ":"صحح","ﵤ":"صحح","ﶩ":"صحى","ﲲ":"صخ","ﴫ":"صر","ﴏ":"صر","ﷵ":"صلعم","ﷹ":"صلى","ﷰ":"صلى","ﷺ":"صلى lللo علىo وسلم","ﲳ":"صم","ﰡ":"صم","ﷅ":"صمم","ﵦ":"صمم","ﴡ":"صى","ﴅ":"صى","ﴢ":"صى","ﴆ":"صى","𞸙":"ض","𞸹":"ض","𞹙":"ض","𞹹":"ض","𞺙":"ض","𞺹":"ض","ﺿ":"ض","ﻀ":"ض","ﺾ":"ض","ﺽ":"ض","ﲴ":"ضج","ﰢ":"ضج","ﲵ":"ضح","ﰣ":"ضح","ﵮ":"ضحى","ﶫ":"ضحى","ﲶ":"ضخ","ﰤ":"ضخ","ﵰ":"ضخم","ﵯ":"ضخم","ﴬ":"ضر","ﴐ":"ضر","ﲷ":"ضم","ﰥ":"ضم","ﴣ":"ضى","ﴇ":"ضى","ﴤ":"ضى","ﴈ":"ضى","𐋨":"ط","𞸈":"ط","𞹨":"ط","𞺈":"ط","𞺨":"ط","ﻃ":"ط","ﻄ":"ط","ﻂ":"ط","ﻁ":"ط","ڟ":"طۛ","ﲸ":"طح","ﰦ":"طح","ﴳ":"طم","ﴺ":"طم","ﰧ":"طم","ﵲ":"طمح","ﵱ":"طمح","ﵳ":"طمم","ﵴ":"طمى","ﴑ":"طى","ﳵ":"طى","ﴒ":"طى","ﳶ":"طى","𞸚":"ظ","𞹺":"ظ","𞺚":"ظ","𞺺":"ظ","ﻇ":"ظ","ﻈ":"ظ","ﻆ":"ظ","ﻅ":"ظ","ﲹ":"ظم","ﴻ":"ظم","ﰨ":"ظم","؏":"ع","𞸏":"ع","𞸯":"ع","𞹏":"ع","𞹯":"ع","𞺏":"ع","𞺯":"ع","ﻋ":"ع","ﻌ":"ع","ﻊ":"ع","ﻉ":"ع","ﲺ":"عج","ﰩ":"عج","ﷄ":"عجم","ﵵ":"عجم","ﷷ":"علىo","ﲻ":"عم","ﰪ":"عم","ﵷ":"عمم","ﵶ":"عمم","ﵸ":"عمى","ﶶ":"عمى","ﴓ":"عى","ﳷ":"عى","ﴔ":"عى","ﳸ":"عى","𞸛":"غ","𞸻":"غ","𞹛":"غ","𞹻":"غ","𞺛":"غ","𞺻":"غ","ﻏ":"غ","ﻐ":"غ","ﻎ":"غ","ﻍ":"غ","ﲼ":"غج","ﰫ":"غج","ﲽ":"غم","ﰬ":"غم","ﵹ":"غمم","ﵻ":"غمى","ﵺ":"غمى","ﴕ":"غى","ﳹ":"غى","ﴖ":"غى","ﳺ":"غى","𞸐":"ف","𞸰":"ف","𞹰":"ف","𞺐":"ف","𞺰":"ف","ﻓ":"ف","ﻔ":"ف","ﻒ":"ف","ﻑ":"ف","ڧ":"ف","ﲾ":"فج","ﰭ":"فج","ﲿ":"فح","ﰮ":"فح","ﳀ":"فخ","ﰯ":"فخ","ﵽ":"فخم","ﵼ":"فخم","ﳁ":"فم","ﰰ":"فم","ﷁ":"فمى","ﱼ":"فى","ﰱ":"فى","ﱽ":"فى","ﰲ":"فى","𞸞":"ڡ","𞹾":"ڡ","ࢻ":"ڡ","ٯ":"ڡ","𞸟":"ڡ","𞹟":"ڡ","ࢼ":"ڡ","ڤ":"ڡۛ","ﭬ":"ڡۛ","ﭭ":"ڡۛ","ﭫ":"ڡۛ","ﭪ":"ڡۛ","ڨ":"ڡۛ","ࢤ":"ڢۛ","ﭰ":"ڦ","ﭱ":"ڦ","ﭯ":"ڦ","ﭮ":"ڦ","𞸒":"ق","𞸲":"ق","𞹒":"ق","𞹲":"ق","𞺒":"ق","𞺲":"ق","ﻗ":"ق","ﻘ":"ق","ﻖ":"ق","ﻕ":"ق","ﳂ":"قح","ﰳ":"قح","ﷱ":"قلى","ﳃ":"قم","ﰴ":"قم","ﶴ":"قمح","ﵾ":"قمح","ﵿ":"قمم","ﶲ":"قمى","ﱾ":"قى","ﰵ":"قى","ﱿ":"قى","ﰶ":"قى","𞸊":"ك","𞸪":"ك","𞹪":"ك","ﻛ":"ك","ﻜ":"ك","ﻚ":"ك","ﻙ":"ك","ک":"ك","ﮐ":"ك","ﮑ":"ك","ﮏ":"ك","ﮎ":"ك","ڪ":"ك","ڭ":"كۛ","ﯕ":"كۛ","ﯖ":"كۛ","ﯔ":"كۛ","ﯓ":"كۛ","ݣ":"كۛ","ﲀ":"كl","ﰷ":"كl","ﳄ":"كج","ﰸ":"كج","ﳅ":"كح","ﰹ":"كح","ﳆ":"كخ","ﰺ":"كخ","ﳇ":"كل","ﳫ":"كل","ﲁ":"كل","ﰻ":"كل","ﳈ":"كم","ﳬ":"كم","ﲂ":"كم","ﰼ":"كم","ﷃ":"كمم","ﶻ":"كمم","ﶷ":"كمى","ﲃ":"كى","ﰽ":"كى","ﲄ":"كى","ﰾ":"كى","ݢ":"ڬ","ﮔ":"گ","ﮕ":"گ","ﮓ":"گ","ﮒ":"گ","ࢰ":"گ","ڴ":"گۛ","ﮜ":"ڱ","ﮝ":"ڱ","ﮛ":"ڱ","ﮚ":"ڱ","ﮘ":"ڳ","ﮙ":"ڳ","ﮗ":"ڳ","ﮖ":"ڳ","𞸋":"ل","𞸫":"ل","𞹋":"ل","𞺋":"ل","𞺫":"ل","ﻟ":"ل","ﻠ":"ل","ﻞ":"ل","ﻝ":"ل","ڷ":"لۛ","ڵ":"ل̆","ﻼ":"لl","ﻻ":"لl","ﻺ":"لlٕ","ﻹ":"لlٕ","ﻸ":"لlٴ","ﻷ":"لlٴ","ﳍ":"لo","ﻶ":"لآ","ﻵ":"لآ","ﳉ":"لج","ﰿ":"لج","ﶃ":"لجج","ﶄ":"لجج","ﶺ":"لجم","ﶼ":"لجم","ﶬ":"لجى","ﳊ":"لح","ﱀ":"لح","ﶵ":"لحم","ﶀ":"لحم","ﶂ":"لحى","ﶁ":"لحى","ﳋ":"لخ","ﱁ":"لخ","ﶆ":"لخم","ﶅ":"لخم","ﳌ":"لم","ﳭ":"لم","ﲅ":"لم","ﱂ":"لم","ﶈ":"لمح","ﶇ":"لمح","ﶭ":"لمى","ﲆ":"لى","ﱃ":"لى","ﲇ":"لى","ﱄ":"لى","𞸌":"م","𞸬":"م","𞹬":"م","𞺌":"م","𞺬":"م","ﻣ":"م","ﻤ":"م","ﻢ":"م","ﻡ":"م","ࢧ":"مۛ","۾":"م͈","ﲈ":"مl","ﳎ":"مج","ﱅ":"مج","ﶌ":"مجح","ﶒ":"مجخ","ﶍ":"مجم","ﷀ":"مجى","ﳏ":"مح","ﱆ":"مح","ﶉ":"محج","ﶊ":"محم","ﷴ":"محمد","ﶋ":"محى","ﳐ":"مخ","ﱇ":"مخ","ﶎ":"مخج","ﶏ":"مخم","ﶹ":"مخى","ﳑ":"مم","ﲉ":"مم","ﱈ":"مم","ﶱ":"ممى","ﱉ":"مى","ﱊ":"مى","𞸍":"ن","𞸭":"ن","𞹍":"ن","𞹭":"ن","𞺍":"ن","𞺭":"ن","ﻧ":"ن","ﻨ":"ن","ﻦ":"ن","ﻥ":"ن","ݨ":"نؕ","ݩ":"ن̆","ﳖ":"نo","ﳯ":"نo","ﶸ":"نجح","ﶽ":"نجح","ﶘ":"نجم","ﶗ":"نجم","ﶙ":"نجى","ﷇ":"نجى","ﳓ":"نح","ﱌ":"نح","ﶕ":"نحم","ﶖ":"نحى","ﶳ":"نحى","ﳔ":"نخ","ﱍ":"نخ","ﲊ":"نر","ﲋ":"نز","ﳕ":"نم","ﳮ":"نم","ﲌ":"نم","ﱎ":"نم","ﶛ":"نمى","ﶚ":"نمى","ﲍ":"نن","ﲎ":"نى","ﱏ":"نى","ﲏ":"نى","ﱐ":"نى","ۂ":"ۀ","ﮥ":"ۀ","ﮤ":"ۀ","𐋤":"و","𞸅":"و","𞺅":"و","𞺥":"و","ﻮ":"و","ﻭ":"و","ࢱ":"و","ۋ":"وۛ","ﯟ":"وۛ","ﯞ":"وۛ","ۇ":"و̓","ﯘ":"و̓","ﯗ":"و̓","ۆ":"و̆","ﯚ":"و̆","ﯙ":"و̆","ۉ":"و̂","ﯣ":"و̂","ﯢ":"و̂","ۈ":"وٰ","ﯜ":"وٰ","ﯛ":"وٰ","ؤ":"وٴ","ﺆ":"وٴ","ﺅ":"وٴ","ٶ":"وٴ","ٷ":"و̓ٴ","ﯝ":"و̓ٴ","ﷸ":"وسلم","ﯡ":"ۅ","ﯠ":"ۅ","ٮ":"ى","𞸜":"ى","𞹼":"ى","ں":"ى","𞸝":"ى","𞹝":"ى","ﮟ":"ى","ﮞ":"ى","ࢽ":"ى","ﯨ":"ى","ﯩ":"ى","ﻰ":"ى","ﻯ":"ى","ي":"ى","𞸉":"ى","𞸩":"ى","𞹉":"ى","𞹩":"ى","𞺉":"ى","𞺩":"ى","ﻳ":"ى","ﻴ":"ى","ﻲ":"ى","ﻱ":"ى","ی":"ى","ﯾ":"ى","ﯿ":"ى","ﯽ":"ى","ﯼ":"ى","ے":"ى","ﮯ":"ى","ﮮ":"ى","ٹ":"ىؕ","ﭨ":"ىؕ","ﭩ":"ىؕ","ﭧ":"ىؕ","ﭦ":"ىؕ","ڻ":"ىؕ","ﮢ":"ىؕ","ﮣ":"ىؕ","ﮡ":"ىؕ","ﮠ":"ىؕ","پ":"ىۛ","ﭘ":"ىۛ","ﭙ":"ىۛ","ﭗ":"ىۛ","ﭖ":"ىۛ","ث":"ىۛ","𞸖":"ىۛ","𞸶":"ىۛ","𞹶":"ىۛ","𞺖":"ىۛ","𞺶":"ىۛ","ﺛ":"ىۛ","ﺜ":"ىۛ","ﺚ":"ىۛ","ﺙ":"ىۛ","ڽ":"ىۛ","ۑ":"ىۛ","ؿ":"ىۛ","ࢷ":"ىۛۢ","ݖ":"ى̆","ێ":"ى̆","ࢺ":"ى̆̇","ؽ":"ى̂","ࢨ":"ىٔ","ﲐ":"ىٰ","ﱝ":"ىٰ","ﳞ":"ىo","ﳱ":"ىo","ﳦ":"ىۛo","ئ":"ىٴ","ﺋ":"ىٴ","ﺌ":"ىٴ","ﺊ":"ىٴ","ﺉ":"ىٴ","ٸ":"ىٴ","ﯫ":"ىٴl","ﯪ":"ىٴl","ﲛ":"ىٴo","ﳠ":"ىٴo","ﯭ":"ىٴo","ﯬ":"ىٴo","ﯸ":"ىٴٻ","ﯷ":"ىٴٻ","ﯶ":"ىٴٻ","ﲗ":"ىٴج","ﰀ":"ىٴج","ﲘ":"ىٴح","ﰁ":"ىٴح","ﲙ":"ىٴخ","ﱤ":"ىٴر","ﱥ":"ىٴز","ﲚ":"ىٴم","ﳟ":"ىٴم","ﱦ":"ىٴم","ﰂ":"ىٴم","ﱧ":"ىٴن","ﯯ":"ىٴو","ﯮ":"ىٴو","ﯱ":"ىٴو̓","ﯰ":"ىٴو̓","ﯳ":"ىٴو̆","ﯲ":"ىٴو̆","ﯵ":"ىٴوٰ","ﯴ":"ىٴوٰ","ﯻ":"ىٴى","ﯺ":"ىٴى","ﱨ":"ىٴى","ﯹ":"ىٴى","ﰃ":"ىٴى","ﱩ":"ىٴى","ﰄ":"ىٴى","ﳚ":"ىج","ﱕ":"ىج","ﰑ":"ىۛج","ﶯ":"ىجى","ﳛ":"ىح","ﱖ":"ىح","ﶮ":"ىحى","ﳜ":"ىخ","ﱗ":"ىخ","ﲑ":"ىر","ﱶ":"ىۛر","ﲒ":"ىز","ﱷ":"ىۛز","ﳝ":"ىم","ﳰ":"ىم","ﲓ":"ىم","ﱘ":"ىم","ﲦ":"ىۛم","ﳥ":"ىۛم","ﱸ":"ىۛم","ﰒ":"ىۛم","ﶝ":"ىمم","ﶜ":"ىمم","ﶰ":"ىمى","ﲔ":"ىن","ﱹ":"ىۛن","ﲕ":"ىى","ﱙ":"ىى","ﲖ":"ىى","ﱚ":"ىى","ﱺ":"ىۛى","ﰓ":"ىۛى","ﱻ":"ىۛى","ﰔ":"ىۛى","ﮱ":"ۓ","ﮰ":"ۓ","𐊸":"ⵀ","⁞":"ⵂ","⸽":"ⵂ","⦙":"ⵂ","︙":"ⵗ","⁝":"ⵗ","⋮":"ⵗ","Մ":"ሆ","Ռ":"ቡ","Ի":"ኮ","Պ":"ጣ","आ":"अा","ऒ":"अाॆ","ओ":"अाे","औ":"अाै","ऄ":"अॆ","ऑ":"अॉ","ऍ":"एॅ","ऎ":"एॆ","ऐ":"एे","ई":"र्इ","ઽ":"ऽ","𑇜":"ꣻ","𑇋":"ऺ","ુ":"ु","ૂ":"ू","ੋ":"ॆ","੍":"्","્":"्","আ":"অা","ৠ":"ঋৃ","ৡ":"ঋৃ","𑒒":"ঘ","𑒔":"চ","𑒖":"জ","𑒘":"ঞ","𑒙":"ট","𑒛":"ড","𑒪":"ণ","𑒞":"ত","𑒟":"থ","𑒠":"দ","𑒡":"ধ","𑒢":"ন","𑒣":"প","𑒩":"ব","𑒧":"ম","𑒨":"য","𑒫":"র","𑒝":"ল","𑒭":"ষ","𑒮":"স","𑓄":"ঽ","𑒰":"া","𑒱":"ি","𑒹":"ে","𑒼":"ো","𑒾":"ৌ","𑓂":"্","𑒽":"ৗ","ਉ":"ੳੁ","ਊ":"ੳੂ","ਆ":"ਅਾ","ਐ":"ਅੈ","ਔ":"ਅੌ","ਇ":"ੲਿ","ਈ":"ੲੀ","ਏ":"ੲੇ","આ":"અા","ઑ":"અાૅ","ઓ":"અાે","ઔ":"અાૈ","ઍ":"અૅ","એ":"અે","ઐ":"અૈ","ଆ":"ଅା","௮":"அ","ர":"ஈ","ா":"ஈ","௫":"ஈு","௨":"உ","ഉ":"உ","ஊ":"உள","ഊ":"உൗ","௭":"எ","௷":"எவ","ஜ":"ஐ","ജ":"ஐ","௧":"க","௪":"ச","௬":"சு","௲":"சூ","ഺ":"டி","ണ":"ண","௺":"நீ","௴":"மீ","௰":"ய","ഴ":"ழ","ௗ":"ள","ை":"ன","ശ":"ஶ","௸":"ஷ","ി":"ி","ീ":"ி","ொ":"ெஈ","ௌ":"ெள","ோ":"ேஈ","ಅ":"అ","ಆ":"ఆ","ಇ":"ఇ","ౠ":"ఋా","ౡ":"ఌా","ಒ":"ఒ","ఔ":"ఒౌ","ಔ":"ఒౌ","ఓ":"ఒౕ","ಓ":"ఒౕ","ಜ":"జ","ಞ":"ఞ","ఢ":"డ̣","ಣ":"ణ","థ":"ధּ","భ":"బ̣","ಯ":"య","ఠ":"రּ","ಱ":"ఱ","ಲ":"ల","ష":"వ̣","హ":"వా","మ":"వు","ూ":"ుా","ౄ":"ృా","ೡ":"ಌಾ","ഈ":"ഇൗ","ഐ":"എെ","ഓ":"ഒാ","ഔ":"ഒൗ","ൡ":"ഞ","൫":"ദ്ര","൹":"നു","ഌ":"നു","ങ":"നു","൯":"ന്","ൻ":"ന്","൬":"ന്ന","൚":"ന്മ","റ":"ര","൪":"ര്","ർ":"ര്","൮":"വ്ര","൶":"ഹ്മ","ൂ":"ു","ൃ":"ു","ൈ":"െെ","෪":"ජ","෫":"ද","𑐓":"𑐴𑑂𑐒","𑐙":"𑐴𑑂𑐘","𑐤":"𑐴𑑂𑐣","𑐪":"𑐴𑑂𑐩","𑐭":"𑐴𑑂𑐬","𑐯":"𑐴𑑂𑐮","𑗘":"𑖂","𑗙":"𑖂","𑗚":"𑖃","𑗛":"𑖄","𑗜":"𑖲","𑗝":"𑖳","ฃ":"ข","ด":"ค","ต":"ค","ม":"ฆ","ຈ":"จ","ซ":"ช","ฏ":"ฎ","ท":"ฑ","ບ":"บ","ປ":"ป","ຝ":"ฝ","ພ":"พ","ຟ":"ฟ","ฦ":"ภ","ຍ":"ย","។":"ฯ","ๅ":"า","ำ":"̊า","ិ":"ิ","ី":"ี","ឹ":"ึ","ឺ":"ื","ຸ":"ุ","ູ":"ู","แ":"เเ","ໜ":"ຫນ","ໝ":"ຫມ","ຳ":"̊າ","༂":"འུྂཿ","༃":"འུྂ༔","ཪ":"ར","ༀ":"ཨོཾ","ཷ":"ྲཱྀ","ཹ":"ླཱྀ","𑲲":"𑲪","ႁ":"ဂှ","က":"ဂာ","ၰ":"ဃှ","ၦ":"ပှ","ဟ":"ပာ","ၯ":"ပာှ","ၾ":"ၽှ","ဩ":"သြ","ဪ":"သြော်","႞":"ႃ̊","ឣ":"អ","᧐":"ᦞ","᧑":"ᦱ","᪀":"ᩅ","᪐":"ᩅ","꩓":"ꨁ","꩖":"ꨣ","᭒":"ᬍ","᭓":"ᬑ","᭘":"ᬨ","ꦣ":"ꦝ","ᢖ":"ᡜ","ᡕ":"ᠵ","ῶ":"Ꮿ","ᐍ":"ᐁ·","ᐫ":"ᐁᐠ","ᐑ":"ᐄ·","ᐓ":"ᐅ·","ᐭ":"ᐅᐠ","ᐕ":"ᐆ·","ᐘ":"ᐊ·","ᐮ":"ᐊᐠ","ᐚ":"ᐋ·","ᣝ":"ᐞᣟ","ᓑ":"ᐡ","ᕀ":"ᐩ","ᐿ":"ᐲ·","ᑃ":"ᐴ·","⍩":"ᐵ","ᑇ":"ᐹ·","ᑜ":"ᑏ·","⸧":"ᑐ","⊃":"ᑐ","ᑞ":"ᑐ·","ᑩ":"ᑐ\'","⟉":"ᑐ/","⫗":"ᑐᑕ","ᑠ":"ᑑ·","⸦":"ᑕ","⊂":"ᑕ","ᑢ":"ᑕ·","ᑪ":"ᑕ\'","ᑤ":"ᑖ·","ᑵ":"ᑫ·","ᒅ":"ᑫ\'","ᑹ":"ᑮ·","ᑽ":"ᑰ·","ᘃ":"ᒉ","ᒓ":"ᒉ·","ᒕ":"ᒋ·","ᒗ":"ᒌ·","ᒛ":"ᒎ·","ᘂ":"ᒐ","ᒝ":"ᒐ·","ᒟ":"ᒑ·","ᒭ":"ᒣ·","ᒱ":"ᒦ·","ᒳ":"ᒧ·","ᒵ":"ᒨ·","ᒹ":"ᒫ·","ᓊ":"ᓀ·","ᣇ":"ᓂ·","ᣉ":"ᓃ·","ᣋ":"ᓄ·","ᣍ":"ᓅ·","ᓌ":"ᓇ·","ᓎ":"ᓈ·","ᘄ":"ᓓ","ᓝ":"ᓓ·","ᓟ":"ᓕ·","ᓡ":"ᓖ·","ᓣ":"ᓗ·","ᓥ":"ᓘ·","ᘇ":"ᓚ","ᓧ":"ᓚ·","ᓩ":"ᓛ·","ᓷ":"ᓭ·","ᓹ":"ᓯ·","ᓻ":"ᓰ·","ᓽ":"ᓱ·","ᓿ":"ᓲ·","ᔁ":"ᓴ·","ᔃ":"ᓵ·","ᔌ":"ᔋ<","ᔎ":"ᔋb","ᔍ":"ᔋᑕ","ᔏ":"ᔋᒐ","ᔘ":"ᔐ·","ᔚ":"ᔑ·","ᔜ":"ᔒ·","ᔞ":"ᔓ·","ᔠ":"ᔔ·","ᔢ":"ᔕ·","ᔤ":"ᔖ·","ᔲ":"ᔨ·","ᔴ":"ᔩ·","ᔶ":"ᔪ·","ᔸ":"ᔫ·","ᔺ":"ᔭ·","ᔼ":"ᔮ·","ᘢ":"ᕃ","ᣠ":"ᕃ·","ᘣ":"ᕆ","ᘤ":"ᕊ","ᕏ":"ᕌ·","ᖃ":"ᕐb","ᖄ":"ᕐḃ","ᖁ":"ᕐd","ᕿ":"ᕐP","ᙯ":"ᕐᑫ","ᕾ":"ᕐᑬ","ᖀ":"ᕐᑮ","ᖂ":"ᕐᑰ","ᖅ":"ᕐᒃ","ᕜ":"ᕚ·","ᣣ":"ᕞ·","ᣤ":"ᕦ·","ᕩ":"ᕧ·","ᣥ":"ᕫ·","ᣨ":"ᖆ·","ᖑ":"ᖕJ","ᙰ":"ᖕᒉ","ᖎ":"ᖕᒊ","ᖏ":"ᖕᒋ","ᖐ":"ᖕᒌ","ᖒ":"ᖕᒎ","ᖓ":"ᖕᒐ","ᖔ":"ᖕᒑ","ᙳ":"ᖖJ","ᙱ":"ᖖᒋ","ᙲ":"ᖖᒌ","ᙴ":"ᖖᒎ","ᙵ":"ᖖᒐ","ᙶ":"ᖖᒑ","ᣪ":"ᖗ·","ᙷ":"ᖧ·","ᙸ":"ᖨ·","ᙹ":"ᖩ·","ᙺ":"ᖪ·","ᙻ":"ᖫ·","ᙼ":"ᖬ·","ᙽ":"ᖭ·","⪫":"ᗒ","⪪":"ᗕ","ꓷ":"ᗡ","ᣰ":"ᗴ·","ᣲ":"ᘛ·","ᶻ":"ᙆ","ꓭ":"ᙠ","ᶺ":"ᣔ","ᴾ":"ᣖ","ᣜ":"ᣟᐞ","ˡ":"ᣳ","ʳ":"ᣴ","ˢ":"ᣵ","ᣛ":"ᣵ","ꚰ":"ᚹ","ᛡ":"ᚼ","⍿":"ᚽ","ᛂ":"ᚽ","𝈿":"ᛋ","↑":"ᛏ","↿":"ᛐ","⥮":"ᛐ⇂","⥣":"ᛐᛚ","ⵣ":"ᛯ","↾":"ᛚ","⨡":"ᛚ","⋄":"ᛜ","◇":"ᛜ","◊":"ᛜ","♢":"ᛜ","🝔":"ᛜ","𑢷":"ᛜ","𐊔":"ᛜ","⍚":"ᛜ̲","⋈":"ᛞ","⨝":"ᛞ","𐓐":"ᛦ","↕":"ᛨ","𐳼":"𐲂","𐳺":"𐲥","ㄱ":"ᄀ","ᆨ":"ᄀ","ᄁ":"ᄀᄀ","ㄲ":"ᄀᄀ","ᆩ":"ᄀᄀ","ᇺ":"ᄀᄂ","ᅚ":"ᄀᄃ","ᇃ":"ᄀᄅ","ᇻ":"ᄀᄇ","ᆪ":"ᄀᄉ","ㄳ":"ᄀᄉ","ᇄ":"ᄀᄉᄀ","ᇼ":"ᄀᄎ","ᇽ":"ᄀᄏ","ᇾ":"ᄀᄒ","ㄴ":"ᄂ","ᆫ":"ᄂ","ᄓ":"ᄂᄀ","ᇅ":"ᄂᄀ","ᄔ":"ᄂᄂ","ㅥ":"ᄂᄂ","ᇿ":"ᄂᄂ","ᄕ":"ᄂᄃ","ㅦ":"ᄂᄃ","ᇆ":"ᄂᄃ","ퟋ":"ᄂᄅ","ᄖ":"ᄂᄇ","ᅛ":"ᄂᄉ","ᇇ":"ᄂᄉ","ㅧ":"ᄂᄉ","ᅜ":"ᄂᄌ","ᆬ":"ᄂᄌ","ㄵ":"ᄂᄌ","ퟌ":"ᄂᄎ","ᇉ":"ᄂᄐ","ᅝ":"ᄂᄒ","ᆭ":"ᄂᄒ","ㄶ":"ᄂᄒ","ᇈ":"ᄂᅀ","ㅨ":"ᄂᅀ","ㄷ":"ᄃ","ᆮ":"ᄃ","ᄗ":"ᄃᄀ","ᇊ":"ᄃᄀ","ᄄ":"ᄃᄃ","ㄸ":"ᄃᄃ","ퟍ":"ᄃᄃ","ퟎ":"ᄃᄃᄇ","ᅞ":"ᄃᄅ","ᇋ":"ᄃᄅ","ꥠ":"ᄃᄆ","ꥡ":"ᄃᄇ","ퟏ":"ᄃᄇ","ꥢ":"ᄃᄉ","ퟐ":"ᄃᄉ","ퟑ":"ᄃᄉᄀ","ꥣ":"ᄃᄌ","ퟒ":"ᄃᄌ","ퟓ":"ᄃᄎ","ퟔ":"ᄃᄐ","ㄹ":"ᄅ","ᆯ":"ᄅ","ꥤ":"ᄅᄀ","ᆰ":"ᄅᄀ","ㄺ":"ᄅᄀ","ꥥ":"ᄅᄀᄀ","ퟕ":"ᄅᄀᄀ","ᇌ":"ᄅᄀᄉ","ㅩ":"ᄅᄀᄉ","ퟖ":"ᄅᄀᄒ","ᄘ":"ᄅᄂ","ᇍ":"ᄅᄂ","ꥦ":"ᄅᄃ","ᇎ":"ᄅᄃ","ㅪ":"ᄅᄃ","ꥧ":"ᄅᄃᄃ","ᇏ":"ᄅᄃᄒ","ᄙ":"ᄅᄅ","ᇐ":"ᄅᄅ","ퟗ":"ᄅᄅᄏ","ꥨ":"ᄅᄆ","ᆱ":"ᄅᄆ","ㄻ":"ᄅᄆ","ᇑ":"ᄅᄆᄀ","ᇒ":"ᄅᄆᄉ","ퟘ":"ᄅᄆᄒ","ꥩ":"ᄅᄇ","ᆲ":"ᄅᄇ","ㄼ":"ᄅᄇ","ퟙ":"ᄅᄇᄃ","ꥪ":"ᄅᄇᄇ","ᇓ":"ᄅᄇᄉ","ㅫ":"ᄅᄇᄉ","ꥫ":"ᄅᄇᄋ","ᇕ":"ᄅᄇᄋ","ퟚ":"ᄅᄇᄑ","ᇔ":"ᄅᄇᄒ","ꥬ":"ᄅᄉ","ᆳ":"ᄅᄉ","ㄽ":"ᄅᄉ","ᇖ":"ᄅᄉᄉ","ᄛ":"ᄅᄋ","ퟝ":"ᄅᄋ","ꥭ":"ᄅᄌ","ꥮ":"ᄅᄏ","ᇘ":"ᄅᄏ","ᆴ":"ᄅᄐ","ㄾ":"ᄅᄐ","ᆵ":"ᄅᄑ","ㄿ":"ᄅᄑ","ᄚ":"ᄅᄒ","ㅀ":"ᄅᄒ","ᄻ":"ᄅᄒ","ᆶ":"ᄅᄒ","ퟲ":"ᄅᄒ","ᇗ":"ᄅᅀ","ㅬ":"ᄅᅀ","ퟛ":"ᄅᅌ","ᇙ":"ᄅᅙ","ㅭ":"ᄅᅙ","ퟜ":"ᄅᅙᄒ","ㅁ":"ᄆ","ᆷ":"ᄆ","ꥯ":"ᄆᄀ","ᇚ":"ᄆᄀ","ퟞ":"ᄆᄂ","ퟟ":"ᄆᄂᄂ","ꥰ":"ᄆᄃ","ᇛ":"ᄆᄅ","ퟠ":"ᄆᄆ","ᄜ":"ᄆᄇ","ㅮ":"ᄆᄇ","ᇜ":"ᄆᄇ","ퟡ":"ᄆᄇᄉ","ꥱ":"ᄆᄉ","ᇝ":"ᄆᄉ","ㅯ":"ᄆᄉ","ᇞ":"ᄆᄉᄉ","ᄝ":"ᄆᄋ","ㅱ":"ᄆᄋ","ᇢ":"ᄆᄋ","ퟢ":"ᄆᄌ","ᇠ":"ᄆᄎ","ᇡ":"ᄆᄒ","ᇟ":"ᄆᅀ","ㅰ":"ᄆᅀ","ㅂ":"ᄇ","ᆸ":"ᄇ","ᄞ":"ᄇᄀ","ㅲ":"ᄇᄀ","ᄟ":"ᄇᄂ","ᄠ":"ᄇᄃ","ㅳ":"ᄇᄃ","ퟣ":"ᄇᄃ","ᇣ":"ᄇᄅ","ퟤ":"ᄇᄅᄑ","ퟥ":"ᄇᄆ","ᄈ":"ᄇᄇ","ㅃ":"ᄇᄇ","ퟦ":"ᄇᄇ","ᄬ":"ᄇᄇᄋ","ㅹ":"ᄇᄇᄋ","ᄡ":"ᄇᄉ","ㅄ":"ᄇᄉ","ᆹ":"ᄇᄉ","ᄢ":"ᄇᄉᄀ","ㅴ":"ᄇᄉᄀ","ᄣ":"ᄇᄉᄃ","ㅵ":"ᄇᄉᄃ","ퟧ":"ᄇᄉᄃ","ᄤ":"ᄇᄉᄇ","ᄥ":"ᄇᄉᄉ","ᄦ":"ᄇᄉᄌ","ꥲ":"ᄇᄉᄐ","ᄫ":"ᄇᄋ","ㅸ":"ᄇᄋ","ᇦ":"ᄇᄋ","ᄧ":"ᄇᄌ","ㅶ":"ᄇᄌ","ퟨ":"ᄇᄌ","ᄨ":"ᄇᄎ","ퟩ":"ᄇᄎ","ꥳ":"ᄇᄏ","ᄩ":"ᄇᄐ","ㅷ":"ᄇᄐ","ᄪ":"ᄇᄑ","ᇤ":"ᄇᄑ","ꥴ":"ᄇᄒ","ᇥ":"ᄇᄒ","ㅅ":"ᄉ","ᆺ":"ᄉ","ᄭ":"ᄉᄀ","ㅺ":"ᄉᄀ","ᇧ":"ᄉᄀ","ᄮ":"ᄉᄂ","ㅻ":"ᄉᄂ","ᄯ":"ᄉᄃ","ㅼ":"ᄉᄃ","ᇨ":"ᄉᄃ","ᄰ":"ᄉᄅ","ᇩ":"ᄉᄅ","ᄱ":"ᄉᄆ","ퟪ":"ᄉᄆ","ᄲ":"ᄉᄇ","ㅽ":"ᄉᄇ","ᇪ":"ᄉᄇ","ᄳ":"ᄉᄇᄀ","ퟫ":"ᄉᄇᄋ","ᄊ":"ᄉᄉ","ㅆ":"ᄉᄉ","ᆻ":"ᄉᄉ","ퟬ":"ᄉᄉᄀ","ퟭ":"ᄉᄉᄃ","ꥵ":"ᄉᄉᄇ","ᄴ":"ᄉᄉᄉ","ᄵ":"ᄉᄋ","ᄶ":"ᄉᄌ","ㅾ":"ᄉᄌ","ퟯ":"ᄉᄌ","ᄷ":"ᄉᄎ","ퟰ":"ᄉᄎ","ᄸ":"ᄉᄏ","ᄹ":"ᄉᄐ","ퟱ":"ᄉᄐ","ᄺ":"ᄉᄑ","ퟮ":"ᄉᅀ","ㅇ":"ᄋ","ᆼ":"ᄋ","ᅁ":"ᄋᄀ","ᇬ":"ᄋᄀ","ᇭ":"ᄋᄀᄀ","ᅂ":"ᄋᄃ","ꥶ":"ᄋᄅ","ᅃ":"ᄋᄆ","ᅄ":"ᄋᄇ","ᅅ":"ᄋᄉ","ᇱ":"ᄋᄉ","ㆂ":"ᄋᄉ","ᅇ":"ᄋᄋ","ㆀ":"ᄋᄋ","ᇮ":"ᄋᄋ","ᅈ":"ᄋᄌ","ᅉ":"ᄋᄎ","ᇯ":"ᄋᄏ","ᅊ":"ᄋᄐ","ᅋ":"ᄋᄑ","ꥷ":"ᄋᄒ","ᅆ":"ᄋᅀ","ᇲ":"ᄋᅀ","ㆃ":"ᄋᅀ","ㅈ":"ᄌ","ᆽ":"ᄌ","ퟷ":"ᄌᄇ","ퟸ":"ᄌᄇᄇ","ᅍ":"ᄌᄋ","ᄍ":"ᄌᄌ","ㅉ":"ᄌᄌ","ퟹ":"ᄌᄌ","ꥸ":"ᄌᄌᄒ","ㅊ":"ᄎ","ᆾ":"ᄎ","ᅒ":"ᄎᄏ","ᅓ":"ᄎᄒ","ㅋ":"ᄏ","ᆿ":"ᄏ","ㅌ":"ᄐ","ᇀ":"ᄐ","ꥹ":"ᄐᄐ","ㅍ":"ᄑ","ᇁ":"ᄑ","ᅖ":"ᄑᄇ","ᇳ":"ᄑᄇ","ퟺ":"ᄑᄉ","ᅗ":"ᄑᄋ","ㆄ":"ᄑᄋ","ᇴ":"ᄑᄋ","ퟻ":"ᄑᄐ","ꥺ":"ᄑᄒ","ㅎ":"ᄒ","ᇂ":"ᄒ","ᇵ":"ᄒᄂ","ᇶ":"ᄒᄅ","ᇷ":"ᄒᄆ","ᇸ":"ᄒᄇ","ꥻ":"ᄒᄉ","ᅘ":"ᄒᄒ","ㆅ":"ᄒᄒ","ᄽ":"ᄼᄼ","ᄿ":"ᄾᄾ","ㅿ":"ᅀ","ᇫ":"ᅀ","ퟳ":"ᅀᄇ","ퟴ":"ᅀᄇᄋ","ㆁ":"ᅌ","ᇰ":"ᅌ","ퟵ":"ᅌᄆ","ퟶ":"ᅌᄒ","ᅏ":"ᅎᅎ","ᅑ":"ᅐᅐ","ㆆ":"ᅙ","ᇹ":"ᅙ","ꥼ":"ᅙᅙ","ㅤ":"ᅠ","ㅏ":"ᅡ","ᆣ":"ᅡー","ᅶ":"ᅡᅩ","ᅷ":"ᅡᅮ","ᅢ":"ᅡ丨","ㅐ":"ᅡ丨","ㅑ":"ᅣ","ᅸ":"ᅣᅩ","ᅹ":"ᅣᅭ","ᆤ":"ᅣᅮ","ᅤ":"ᅣ丨","ㅒ":"ᅣ丨","ㅓ":"ᅥ","ᅼ":"ᅥー","ᅺ":"ᅥᅩ","ᅻ":"ᅥᅮ","ᅦ":"ᅥ丨","ㅔ":"ᅥ丨","ㅕ":"ᅧ","ᆥ":"ᅧᅣ","ᅽ":"ᅧᅩ","ᅾ":"ᅧᅮ","ᅨ":"ᅧ丨","ㅖ":"ᅧ丨","ㅗ":"ᅩ","ᅪ":"ᅩᅡ","ㅘ":"ᅩᅡ","ᅫ":"ᅩᅡ丨","ㅙ":"ᅩᅡ丨","ᆦ":"ᅩᅣ","ᆧ":"ᅩᅣ丨","ᅿ":"ᅩᅥ","ᆀ":"ᅩᅥ丨","ힰ":"ᅩᅧ","ᆁ":"ᅩᅧ丨","ᆂ":"ᅩᅩ","ힱ":"ᅩᅩ丨","ᆃ":"ᅩᅮ","ᅬ":"ᅩ丨","ㅚ":"ᅩ丨","ㅛ":"ᅭ","ힲ":"ᅭᅡ","ힳ":"ᅭᅡ丨","ᆄ":"ᅭᅣ","ㆇ":"ᅭᅣ","ᆆ":"ᅭᅣ","ᆅ":"ᅭᅣ丨","ㆈ":"ᅭᅣ丨","ힴ":"ᅭᅥ","ᆇ":"ᅭᅩ","ᆈ":"ᅭ丨","ㆉ":"ᅭ丨","ㅜ":"ᅮ","ᆉ":"ᅮᅡ","ᆊ":"ᅮᅡ丨","ᅯ":"ᅮᅥ","ㅝ":"ᅮᅥ","ᆋ":"ᅮᅥー","ᅰ":"ᅮᅥ丨","ㅞ":"ᅮᅥ丨","ힵ":"ᅮᅧ","ᆌ":"ᅮᅧ丨","ᆍ":"ᅮᅮ","ᅱ":"ᅮ丨","ㅟ":"ᅮ丨","ힶ":"ᅮ丨丨","ㅠ":"ᅲ","ᆎ":"ᅲᅡ","ힷ":"ᅲᅡ丨","ᆏ":"ᅲᅥ","ᆐ":"ᅲᅥ丨","ᆑ":"ᅲᅧ","ㆊ":"ᅲᅧ","ᆒ":"ᅲᅧ丨","ㆋ":"ᅲᅧ丨","ힸ":"ᅲᅩ","ᆓ":"ᅲᅮ","ᆔ":"ᅲ丨","ㆌ":"ᅲ丨","ㆍ":"ᆞ","ퟅ":"ᆞᅡ","ᆟ":"ᆞᅥ","ퟆ":"ᆞᅥ丨","ᆠ":"ᆞᅮ","ᆢ":"ᆞᆞ","ᆡ":"ᆞ丨","ㆎ":"ᆞ丨","ヘ":"へ","⍁":"〼","⧄":"〼","꒞":"ꁊ","꒬":"ꁐ","꒜":"ꃀ","꒨":"ꄲ","꒿":"ꉙ","꒾":"ꊱ","꒔":"ꋍ","꓀":"ꎫ","꓂":"ꎵ","꒺":"ꎿ","꒰":"ꏂ","꒧":"ꑘ","⊥":"ꓕ","⟂":"ꓕ","𝈜":"ꓕ","Ʇ":"ꓕ","Ꞟ":"ꓤ","⅁":"ꓨ","⅂":"ꓶ","𝈕":"ꓶ","𝈫":"ꓶ","𖼦":"ꓶ","𐐑":"ꓶ","⅃":"𖼀","𑫦":"𑫥𑫯","𑫨":"𑫥𑫥","𑫩":"𑫥𑫥𑫯","𑫪":"𑫥𑫥𑫰","𑫧":"𑫥𑫰","𑫴":"𑫳𑫯","𑫶":"𑫳𑫳","𑫷":"𑫳𑫳𑫯","𑫸":"𑫳𑫳𑫰","𑫵":"𑫳𑫰","𑫬":"𑫫𑫯","𑫭":"𑫫𑫫","𑫮":"𑫫𑫫𑫯","⊕":"𐊨","⨁":"𐊨","🜨":"𐊨","Ꚛ":"𐊨","▽":"𐊼","𝈔":"𐊼","🜄":"𐊼","⧖":"𐋀","ꞛ":"𐐺","Ꞛ":"𐐒","𐒠":"𐒆","𐏑":"𐎂","𐏓":"𐎓","𒀸":"𐎚","☥":"𐦞","𓋹":"𐦞","〹":"卄","不":"不","丽":"丽","並":"並","⎜":"丨","⎟":"丨","⎢":"丨","⎥":"丨","⎪":"丨","⎮":"丨","㇑":"丨","ᅵ":"丨","ㅣ":"丨","⼁":"丨","ᆜ":"丨ー","ᆘ":"丨ᅡ","ᆙ":"丨ᅣ","ힽ":"丨ᅣᅩ","ힾ":"丨ᅣ丨","ힿ":"丨ᅧ","ퟀ":"丨ᅧ丨","ᆚ":"丨ᅩ","ퟁ":"丨ᅩ丨","ퟂ":"丨ᅭ","ᆛ":"丨ᅮ","ퟃ":"丨ᅲ","ᆝ":"丨ᆞ","ퟄ":"丨丨","串":"串","丸":"丸","丹":"丹","乁":"乁","㇠":"乙","⼄":"乙","㇟":"乚","⺃":"乚","㇖":"乛","⺂":"乛","⻲":"亀","亂":"亂","㇚":"亅","⼅":"亅","了":"了","ニ":"二","⼆":"二","𠄢":"𠄢","⼇":"亠","亮":"亮","⼈":"人","イ":"亻","⺅":"亻","什":"什","仌":"仌","令":"令","你":"你","倂":"併","倂":"併","侀":"侀","來":"來","例":"例","侮":"侮","侮":"侮","侻":"侻","便":"便","值":"値","倫":"倫","偺":"偺","備":"備","像":"像","僚":"僚","僧":"僧","僧":"僧","㒞":"㒞","⼉":"儿","兀":"兀","⺎":"兀","充":"充","免":"免","免":"免","兔":"兔","兤":"兤","⼊":"入","內":"內","全":"全","兩":"兩","ハ":"八","⼋":"八","六":"六","具":"具","𠔜":"𠔜","𠔥":"𠔥","冀":"冀","㒹":"㒹","⼌":"冂","再":"再","𠕋":"𠕋","冒":"冒","冕":"冕","㒻":"㒻","最":"最","⼍":"冖","冗":"冗","冤":"冤","⼎":"冫","冬":"冬","况":"况","况":"况","冷":"冷","凉":"凉","凌":"凌","凜":"凜","凞":"凞","⼏":"几","𠘺":"𠘺","凵":"凵","⼐":"凵","⼑":"刀","⺉":"刂","刃":"刃","切":"切","切":"切","列":"列","利":"利","㓟":"㓟","刺":"刺","刻":"刻","剆":"剆","割":"割","剷":"剷","劉":"劉","𠠄":"𠠄","カ":"力","力":"力","⼒":"力","劣":"劣","㔕":"㔕","劳":"劳","勇":"勇","勇":"勇","勉":"勉","勉":"勉","勒":"勒","勞":"勞","勤":"勤","勤":"勤","勵":"勵","⼓":"勹","勺":"勺","勺":"勺","包":"包","匆":"匆","𠣞":"𠣞","⼔":"匕","北":"北","北":"北","⼕":"匚","⼖":"匸","匿":"匿","⼗":"十","〸":"十","〺":"卅","卉":"卉","࿖":"卍","࿕":"卐","卑":"卑","卑":"卑","博":"博","ト":"卜","⼘":"卜","⼙":"卩","⺋":"㔾","即":"即","卵":"卵","卽":"卽","卿":"卿","卿":"卿","卿":"卿","⼚":"厂","𠨬":"𠨬","⼛":"厶","參":"參","⼜":"又","及":"及","叟":"叟","𠭣":"𠭣","ロ":"口","⼝":"口","囗":"口","⼞":"口","句":"句","叫":"叫","叱":"叱","吆":"吆","吏":"吏","吝":"吝","吸":"吸","呂":"呂","呈":"呈","周":"周","咞":"咞","咢":"咢","咽":"咽","䎛":"㖈","哶":"哶","唐":"唐","啓":"啓","啟":"啓","啕":"啕","啣":"啣","善":"善","善":"善","喇":"喇","喙":"喙","喙":"喙","喝":"喝","喝":"喝","喫":"喫","喳":"喳","嗀":"嗀","嗂":"嗂","嗢":"嗢","嘆":"嘆","嘆":"嘆","噑":"噑","噴":"噴","器":"器","囹":"囹","圖":"圖","圗":"圗","⼟":"土","士":"土","⼠":"土","型":"型","城":"城","㦳":"㘽","埴":"埴","堍":"堍","報":"報","堲":"堲","塀":"塀","塚":"塚","塚":"塚","塞":"塞","填":"塡","壿":"墫","墬":"墬","墳":"墳","壘":"壘","壟":"壟","𡓤":"𡓤","壮":"壮","売":"売","壷":"壷","⼡":"夂","夆":"夆","⼢":"夊","タ":"夕","⼣":"夕","多":"多","夢":"夢","⼤":"大","奄":"奄","奈":"奈","契":"契","奔":"奔","奢":"奢","女":"女","⼥":"女","𡚨":"𡚨","𡛪":"𡛪","姘":"姘","姬":"姬","娛":"娛","娧":"娧","婢":"婢","婦":"婦","嬀":"媯","㛮":"㛮","㛼":"㛼","媵":"媵","嬈":"嬈","嬨":"嬨","嬾":"嬾","嬾":"嬾","⼦":"子","⼧":"宀","宅":"宅","𡧈":"𡧈","寃":"寃","寘":"寘","寧":"寧","寧":"寧","寧":"寧","寮":"寮","寳":"寳","𡬘":"𡬘","⼨":"寸","寿":"寿","将":"将","⼩":"小","尢":"尢","⺐":"尢","⼪":"尢","⺏":"尣","㞁":"㞁","⼫":"尸","尿":"尿","屠":"屠","屢":"屢","層":"層","履":"履","屮":"屮","屮":"屮","⼬":"屮","𡴋":"𡴋","⼭":"山","峀":"峀","岍":"岍","𡷤":"𡷤","𡷦":"𡷦","崙":"崙","嵃":"嵃","嵐":"嵐","嵫":"嵫","嵮":"嵮","嵼":"嵼","嶲":"嶲","嶺":"嶺","⼮":"巛","巢":"巢","エ":"工","⼯":"工","⼰":"己","⺒":"巳","㠯":"㠯","巽":"巽","⼱":"巾","帲":"帡","帨":"帨","帽":"帽","幩":"幩","㡢":"㡢","𢆃":"𢆃","⼲":"干","年":"年","𢆟":"𢆟","⺓":"幺","⼳":"幺","⼴":"广","度":"度","㡼":"㡼","庰":"庰","庳":"庳","庶":"庶","廊":"廊","廊":"廊","廉":"廉","廒":"廒","廓":"廓","廙":"廙","廬":"廬","⼵":"廴","廾":"廾","⼶":"廾","𢌱":"𢌱","𢌱":"𢌱","弄":"弄","⼷":"弋","⼸":"弓","弢":"弢","弢":"弢","⼹":"彐","⺔":"彑","当":"当","㣇":"㣇","⼺":"彡","形":"形","彩":"彩","彫":"彫","⼻":"彳","律":"律","㣣":"㣣","徚":"徚","復":"復","徭":"徭","⼼":"心","⺖":"忄","⺗":"㣺","忍":"忍","志":"志","念":"念","忹":"忹","怒":"怒","怜":"怜","恵":"恵","㤜":"㤜","㤺":"㤺","悁":"悁","悔":"悔","悔":"悔","惇":"惇","惘":"惘","惡":"惡","𢛔":"𢛔","愈":"愈","慨":"慨","慄":"慄","慈":"慈","慌":"慌","慌":"慌","慎":"慎","慎":"慎","慠":"慠","慺":"慺","憎":"憎","憎":"憎","憎":"憎","憐":"憐","憤":"憤","憯":"憯","憲":"憲","𢡄":"𢡄","𢡊":"𢡊","懞":"懞","懲":"懲","懲":"懲","懲":"懲","懶":"懶","懶":"懶","戀":"戀","⼽":"戈","成":"成","戛":"戛","戮":"戮","戴":"戴","⼾":"戶","戸":"戶","⼿":"手","⺘":"扌","扝":"扝","抱":"抱","拉":"拉","拏":"拏","拓":"拓","拔":"拔","拼":"拼","拾":"拾","𢬌":"𢬌","挽":"挽","捐":"捐","捨":"捨","捻":"捻","掃":"掃","掠":"掠","掩":"掩","揄":"揄","揤":"揤","摒":"摒","𢯱":"𢯱","搜":"搜","搢":"搢","揅":"揅","摩":"摩","摷":"摷","摾":"摾","㨮":"㨮","搉":"㩁","撚":"撚","撝":"撝","擄":"擄","㩬":"㩬","⽀":"支","⽁":"攴","⺙":"攵","敏":"敏","敏":"敏","敖":"敖","敬":"敬","數":"數","𣀊":"𣀊","⽂":"文","⻫":"斉","⽃":"斗","料":"料","⽄":"斤","⽅":"方","旅":"旅","⽆":"无","⺛":"旡","既":"既","旣":"旣","⽇":"日","易":"易","曶":"㫚","㫤":"㫤","晉":"晉","晩":"晚","晴":"晴","晴":"晴","暑":"暑","暑":"暑","暈":"暈","㬈":"㬈","暜":"暜","暴":"暴","曆":"曆","㬙":"㬙","𣊸":"𣊸","⽈":"曰","更":"更","書":"書","⽉":"月","𣍟":"𣍟","肦":"朌","胐":"朏","胊":"朐","脁":"朓","胶":"㬵","朗":"朗","朗":"朗","朗":"朗","脧":"朘","望":"望","望":"望","幐":"㬺","䐠":"㬻","𣎓":"𣎓","膧":"朣","𣎜":"𣎜","⽊":"木","李":"李","杓":"杓","杖":"杖","杞":"杞","𣏃":"𣏃","柿":"杮","杻":"杻","枅":"枅","林":"林","㭉":"㭉","𣏕":"𣏕","柳":"柳","柺":"柺","栗":"栗","栟":"栟","桒":"桒","𣑭":"𣑭","梁":"梁","梅":"梅","梅":"梅","梎":"梎","梨":"梨","椔":"椔","楂":"楂","㮝":"㮝","㮝":"㮝","槩":"㮣","樧":"榝","榣":"榣","槪":"槪","樂":"樂","樂":"樂","樂":"樂","樓":"樓","𣚣":"𣚣","檨":"檨","櫓":"櫓","櫛":"櫛","欄":"欄","㰘":"㰘","⽋":"欠","次":"次","𣢧":"𣢧","歔":"歔","㱎":"㱎","⽌":"止","⻭":"歯","歲":"歲","歷":"歷","歹":"歹","⽍":"歹","⺞":"歺","殟":"殟","殮":"殮","⽎":"殳","殺":"殺","殺":"殺","殺":"殺","殻":"殻","𣪍":"𣪍","⽏":"毋","⺟":"母","𣫺":"𣫺","⽐":"比","⽑":"毛","⽒":"氏","⺠":"民","⽓":"气","⽔":"水","⺡":"氵","⺢":"氺","汎":"汎","汧":"汧","沈":"沈","沿":"沿","泌":"泌","泍":"泍","泥":"泥","𣲼":"𣲼","洛":"洛","洞":"洞","洴":"洴","派":"派","流":"流","流":"流","流":"流","洖":"洖","浩":"浩","浪":"浪","海":"海","海":"海","浸":"浸","涅":"涅","𣴞":"𣴞","淋":"淋","淚":"淚","淪":"淪","淹":"淹","渚":"渚","港":"港","湮":"湮","潙":"溈","滋":"滋","滋":"滋","溜":"溜","溺":"溺","滇":"滇","滑":"滑","滛":"滛","㴳":"㴳","漏":"漏","漢":"漢","漢":"漢","漣":"漣","𣻑":"𣻑","潮":"潮","𣽞":"𣽞","𣾎":"𣾎","濆":"濆","濫":"濫","濾":"濾","瀛":"瀛","瀞":"瀞","瀞":"瀞","瀹":"瀹","灊":"灊","㶖":"㶖","⽕":"火","⺣":"灬","灰":"灰","灷":"灷","災":"災","炙":"炙","炭":"炭","烈":"烈","烙":"烙","煮":"煮","煮":"煮","𤉣":"𤉣","煅":"煅","煉":"煉","𤋮":"𤋮","熜":"熜","燎":"燎","燐":"燐","𤎫":"𤎫","爐":"爐","爛":"爛","爨":"爨","⽖":"爪","爫":"爫","⺤":"爫","爵":"爵","爵":"爵","⽗":"父","⽘":"爻","⺦":"丬","⽙":"爿","⽚":"片","牐":"牐","⽛":"牙","𤘈":"𤘈","⽜":"牛","牢":"牢","犀":"犀","犕":"犕","⽝":"犬","⺨":"犭","犯":"犯","狀":"狀","𤜵":"𤜵","狼":"狼","猪":"猪","猪":"猪","𤠔":"𤠔","獵":"獵","獺":"獺","⽞":"玄","率":"率","率":"率","⽟":"玉","王":"王","㺬":"㺬","玥":"玥","玲":"玲","㺸":"㺸","㺸":"㺸","珞":"珞","琉":"琉","理":"理","琢":"琢","瑇":"瑇","瑜":"瑜","瑩":"瑩","瑱":"瑱","瑱":"瑱","璅":"璅","璉":"璉","璘":"璘","瓊":"瓊","⽠":"瓜","⽡":"瓦","㼛":"㼛","甆":"甆","⽢":"甘","⽣":"生","甤":"甤","⽤":"用","⽥":"田","画":"画","甾":"甾","𤰶":"𤰶","留":"留","略":"略","異":"異","異":"異","𤲒":"𤲒","⽦":"疋","⽧":"疒","痢":"痢","瘐":"瘐","瘟":"瘟","瘝":"瘝","療":"療","癩":"癩","⽨":"癶","⽩":"白","𤾡":"𤾡","𤾸":"𤾸","⽪":"皮","⽫":"皿","𥁄":"𥁄","㿼":"㿼","益":"益","益":"益","盛":"盛","盧":"盧","䀈":"䀈","⽬":"目","直":"直","直":"直","𥃲":"𥃲","𥃳":"𥃳","省":"省","䀘":"䀘","𥄙":"𥄙","眞":"眞","真":"真","真":"真","𥄳":"𥄳","着":"着","睊":"睊","睊":"睊","鿃":"䀹","䀹":"䀹","䀹":"䀹","晣":"䀿","䁆":"䁆","瞋":"瞋","𥉉":"𥉉","瞧":"瞧","⽭":"矛","⽮":"矢","⽯":"石","䂖":"䂖","𥐝":"𥐝","硏":"研","硎":"硎","硫":"硫","碌":"碌","碌":"碌","碑":"碑","磊":"磊","磌":"磌","磌":"磌","磻":"磻","䃣":"䃣","礪":"礪","⽰":"示","⺭":"礻","礼":"礼","社":"社","祈":"祈","祉":"祉","𥘦":"𥘦","祐":"祐","祖":"祖","祖":"祖","祝":"祝","神":"神","祥":"祥","視":"視","視":"視","祿":"祿","𥚚":"𥚚","禍":"禍","禎":"禎","福":"福","福":"福","𥛅":"𥛅","禮":"禮","⽱":"禸","⽲":"禾","秊":"秊","䄯":"䄯","秫":"秫","稜":"稜","穊":"穊","穀":"穀","穀":"穀","穏":"穏","⽳":"穴","突":"突","𥥼":"𥥼","窱":"窱","立":"立","⽴":"立","⻯":"竜","𥪧":"𥪧","𥪧":"𥪧","竮":"竮","⽵":"竹","笠":"笠","節":"節","節":"節","䈂":"䈂","𥮫":"𥮫","篆":"篆","䈧":"䈧","築":"築","𥲀":"𥲀","𥳐":"𥳐","簾":"簾","籠":"籠","⽶":"米","类":"类","粒":"粒","精":"精","糒":"糒","糖":"糖","糨":"糨","䊠":"䊠","糣":"糣","糧":"糧","⽷":"糸","⺯":"糹","𥾆":"𥾆","紀":"紀","紐":"紐","索":"索","累":"累","絶":"絕","絣":"絣","絛":"絛","綠":"綠","綾":"綾","緇":"緇","練":"練","練":"練","練":"練","縂":"縂","䌁":"䌁","縉":"縉","縷":"縷","繁":"繁","繅":"繅","𦇚":"𦇚","䌴":"䌴","⽸":"缶","𦈨":"𦈨","缾":"缾","𦉇":"𦉇","⽹":"网","⺫":"罒","⺲":"罒","⺱":"罓","䍙":"䍙","署":"署","𦋙":"𦋙","罹":"罹","罺":"罺","羅":"羅","𦌾":"𦌾","⽺":"羊","羕":"羕","羚":"羚","羽":"羽","⽻":"羽","翺":"翺","老":"老","⽼":"老","⺹":"耂","者":"者","者":"者","者":"者","⽽":"而","𦓚":"𦓚","⽾":"耒","𦔣":"𦔣","⽿":"耳","聆":"聆","聠":"聠","𦖨":"𦖨","聯":"聯","聰":"聰","聾":"聾","⾀":"聿","⺺":"肀","⾁":"肉","肋":"肋","肭":"肭","育":"育","䏕":"䏕","䏙":"䏙","腁":"胼","脃":"脃","脾":"脾","䐋":"䐋","朡":"朡","𦞧":"𦞧","𦞵":"𦞵","朦":"䑃","臘":"臘","⾂":"臣","臨":"臨","⾃":"自","臭":"臭","⾄":"至","⾅":"臼","舁":"舁","舁":"舁","舄":"舄","⾆":"舌","舘":"舘","⾇":"舛","⾈":"舟","䑫":"䑫","⾉":"艮","良":"良","⾊":"色","⾋":"艸","艹":"艹","艹":"艹","⺾":"艹","⺿":"艹","⻀":"艹","芋":"芋","芑":"芑","芝":"芝","花":"花","芳":"芳","芽":"芽","若":"若","若":"若","苦":"苦","𦬼":"𦬼","茶":"茶","荒":"荒","荣":"荣","茝":"茝","茣":"茣","莽":"莽","荓":"荓","菉":"菉","菊":"菊","菌":"菌","菜":"菜","菧":"菧","華":"華","菱":"菱","著":"著","著":"著","𦰶":"𦰶","莭":"莭","落":"落","葉":"葉","蔿":"蒍","𦳕":"𦳕","𦵫":"𦵫","蓮":"蓮","蓱":"蓱","蓳":"蓳","蓼":"蓼","蔖":"蔖","䔫":"䔫","蕤":"蕤","𦼬":"𦼬","藍":"藍","䕝":"䕝","𦾱":"𦾱","䕡":"䕡","藺":"藺","蘆":"蘆","䕫":"䕫","蘒":"蘒","蘭":"蘭","𧃒":"𧃒","虁":"蘷","蘿":"蘿","⾌":"虍","⻁":"虎","虐":"虐","虜":"虜","虜":"虜","虧":"虧","虩":"虩","⾍":"虫","蚩":"蚩","蚈":"蚈","蛢":"蛢","蜎":"蜎","蜨":"蜨","蝫":"蝫","蟡":"蟡","蝹":"蝹","蝹":"蝹","螆":"螆","䗗":"䗗","𧏊":"𧏊","螺":"螺","蠁":"蠁","䗹":"䗹","蠟":"蠟","⾎":"血","行":"行","⾏":"行","衠":"衠","衣":"衣","⾐":"衣","⻂":"衤","裂":"裂","𧙧":"𧙧","裏":"裏","裗":"裗","裞":"裞","裡":"裡","裸":"裸","裺":"裺","䘵":"䘵","褐":"褐","襁":"襁","襤":"襤","⾑":"襾","⻄":"西","⻃":"覀","覆":"覆","見":"見","⾒":"見","𧢮":"𧢮","⻅":"见","⾓":"角","⾔":"言","𧥦":"𧥦","詽":"訮","訞":"䚶","䚾":"䚾","䛇":"䛇","誠":"誠","說":"說","說":"說","調":"調","請":"請","諒":"諒","論":"論","諭":"諭","諭":"諭","諸":"諸","諸":"諸","諾":"諾","諾":"諾","謁":"謁","謁":"謁","謹":"謹","謹":"謹","識":"識","讀":"讀","讏":"讆","變":"變","變":"變","⻈":"讠","⾕":"谷","⾖":"豆","豈":"豈","豕":"豕","⾗":"豕","豣":"豜","⾘":"豸","𧲨":"𧲨","⾙":"貝","貫":"貫","賁":"賁","賂":"賂","賈":"賈","賓":"賓","贈":"贈","贈":"贈","贛":"贛","⻉":"贝","⾚":"赤","⾛":"走","起":"起","趆":"赿","𧻓":"𧻓","𧼯":"𧼯","⾜":"足","跋":"跋","趼":"趼","跺":"跥","路":"路","跰":"跰","躛":"躗","⾝":"身","車":"車","⾞":"車","軔":"軔","輧":"軿","輦":"輦","輪":"輪","輸":"輸","輸":"輸","輻":"輻","轢":"轢","⻋":"车","⾟":"辛","辞":"辞","辰":"辰","⾠":"辰","⾡":"辵","辶":"辶","⻌":"辶","⻍":"辶","巡":"巡","連":"連","逸":"逸","逸":"逸","遲":"遲","遼":"遼","𨗒":"𨗒","𨗭":"𨗭","邏":"邏","⾢":"邑","邔":"邔","郎":"郎","郞":"郎","郞":"郎","郱":"郱","都":"都","𨜮":"𨜮","鄑":"鄑","鄛":"鄛","⾣":"酉","酪":"酪","醙":"醙","醴":"醴","⾤":"釆","里":"里","⾥":"里","量":"量","金":"金","⾦":"金","鈴":"鈴","鈸":"鈸","鉶":"鉶","鋗":"鋗","鋘":"鋘","鉼":"鉼","錄":"錄","鍊":"鍊","鎮":"鎭","鏹":"鏹","鐕":"鐕","𨯺":"𨯺","⻐":"钅","⻑":"長","⾧":"長","⻒":"镸","⻓":"长","⾨":"門","開":"開","䦕":"䦕","閭":"閭","閷":"閷","𨵷":"𨵷","⻔":"门","⾩":"阜","⻏":"阝","⻖":"阝","阮":"阮","陋":"陋","降":"降","陵":"陵","陸":"陸","陼":"陼","隆":"隆","隣":"隣","䧦":"䧦","⾪":"隶","隷":"隷","隸":"隷","隸":"隷","⾫":"隹","雃":"雃","離":"離","難":"難","難":"難","⾬":"雨","零":"零","雷":"雷","霣":"霣","𩅅":"𩅅","露":"露","靈":"靈","⾭":"靑","⻘":"青","靖":"靖","靖":"靖","𩇟":"𩇟","⾮":"非","⾯":"面","𩈚":"𩈚","⾰":"革","䩮":"䩮","䩶":"䩶","⾱":"韋","韛":"韛","韠":"韠","⻙":"韦","⾲":"韭","𩐊":"𩐊","⾳":"音","響":"響","響":"響","⾴":"頁","䪲":"䪲","頋":"頋","頋":"頋","頋":"頋","領":"領","頩":"頩","𩒖":"𩒖","頻":"頻","頻":"頻","類":"類","⻚":"页","⾵":"風","𩖶":"𩖶","⻛":"风","⾶":"飛","⻜":"飞","⻝":"食","⾷":"食","⻟":"飠","飢":"飢","飯":"飯","飼":"飼","䬳":"䬳","館":"館","餩":"餩","⻠":"饣","⾸":"首","⾹":"香","馧":"馧","⾺":"馬","駂":"駂","駱":"駱","駾":"駾","驪":"驪","⻢":"马","⾻":"骨","䯎":"䯎","⾼":"高","⾽":"髟","𩬰":"𩬰","鬒":"鬒","鬒":"鬒","⾾":"鬥","⾿":"鬯","⿀":"鬲","⿁":"鬼","⻤":"鬼","⿂":"魚","魯":"魯","鱀":"鱀","鱗":"鱗","⻥":"鱼","⿃":"鳥","鳽":"鳽","䳎":"䳎","鵧":"鵧","䳭":"䳭","𪃎":"𪃎","鶴":"鶴","𪄅":"𪄅","䳸":"䳸","鷺":"鷺","𪈎":"𪈎","鸞":"鸞","鹃":"鹂","⿄":"鹵","鹿":"鹿","⿅":"鹿","𪊑":"𪊑","麗":"麗","麟":"麟","⿆":"麥","⻨":"麦","麻":"麻","⿇":"麻","𪎒":"𪎒","⿈":"黃","⻩":"黄","⿉":"黍","黎":"黎","䵖":"䵖","⿊":"黑","黒":"黑","墨":"墨","黹":"黹","⿋":"黹","⿌":"黽","鼅":"鼅","黾":"黾","⿍":"鼎","鼏":"鼏","⿎":"鼓","鼖":"鼖","⿏":"鼠","鼻":"鼻","⿐":"鼻","齃":"齃","⿑":"齊","⻬":"齐","⿒":"齒","𪘀":"𪘀","⻮":"齿","龍":"龍","⿓":"龍","龎":"龎","⻰":"龙","龜":"龜","龜":"龜","龜":"龜","⿔":"龜","⻳":"龟","⿕":"龠"}')},function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],o=t[1];return 3*(n+o)/4-o},t.toByteArray=function(e){var t,n,o=l(e),a=o[0],s=o[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),d=0,u=s>0?a-4:a;for(n=0;n<u;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[d++]=t>>16&255,c[d++]=t>>8&255,c[d++]=255&t;2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[d++]=255&t);1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[d++]=t>>8&255,c[d++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,i=[],a=0,s=n-r;a<s;a+=16383)i.push(d(e,a,a+16383>s?s:a+16383));1===r?(t=e[n-1],i.push(o[t>>2]+o[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(o[t>>10]+o[t>>4&63]+o[t<<2&63]+"="));return i.join("")};for(var o=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)o[s]=a[s],r[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function d(e,t,n){for(var r,i,a=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(o[(i=r)>>18&63]+o[i>>12&63]+o[i>>6&63]+o[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,o,r){var i,a,s=8*r-o-1,c=(1<<s)-1,l=c>>1,d=-7,u=n?r-1:0,h=n?-1:1,p=e[t+u];for(u+=h,i=p&(1<<-d)-1,p>>=-d,d+=s;d>0;i=256*i+e[t+u],u+=h,d-=8);for(a=i&(1<<-d)-1,i>>=-d,d+=o;d>0;a=256*a+e[t+u],u+=h,d-=8);if(0===i)i=1-l;else{if(i===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,o),i-=l}return(p?-1:1)*a*Math.pow(2,i-o)},t.write=function(e,t,n,o,r,i){var a,s,c,l=8*i-r-1,d=(1<<l)-1,u=d>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=o?0:i-1,m=o?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+u>=1?h/c:h*Math.pow(2,1-u))*c>=2&&(a++,c/=2),a+u>=d?(s=0,a=d):a+u>=1?(s=(t*c-1)*Math.pow(2,r),a+=u):(s=t*Math.pow(2,u-1)*Math.pow(2,r),a=0));r>=8;e[n+p]=255&s,p+=m,s/=256,r-=8);for(a=a<<r|s,l+=r;l>0;e[n+p]=255&a,p+=m,a/=256,l-=8);e[n+p-m]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetApi=void 0;var o=n(7),r=n(8),i=n(9),a=n(10),s=n(11),c=n(12),l=n(18),d=n(19),u=n(13);function h(e){return(h="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})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=v(e);if(t){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(_,e);var t,n,o,h=f(_);function _(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(p(this,_),(e=h.call(this)).clientOrigin=n,y(b(e),"transport",void 0),y(b(e),"capabilitiesFinished",!1),y(b(e),"supportsMSC2974Renegotiate",!1),y(b(e),"requestedCapabilities",[]),y(b(e),"approvedCapabilities",void 0),y(b(e),"cachedClientVersions",void 0),!window.parent)throw new Error("No parent window. This widget doesn't appear to be embedded properly.");return e.transport=new a.PostmessageTransport(r.WidgetApiDirection.FromWidget,t,window.parent,window),e.transport.targetOrigin=n,e.transport.on("message",e.handleMessage.bind(b(e))),e}return t=_,(n=[{key:"hasCapability",value:function(e){return Array.isArray(this.approvedCapabilities)?this.approvedCapabilities.includes(e):this.requestedCapabilities.includes(e)}},{key:"requestCapability",value:function(e){if(this.capabilitiesFinished&&!this.supportsMSC2974Renegotiate)throw new Error("Capabilities have already been negotiated");this.requestedCapabilities.push(e)}},{key:"requestCapabilities",value:function(e){var t=this;e.forEach((function(e){return t.requestCapability(e)}))}},{key:"requestCapabilityToSendState",value:function(e,t){this.requestCapability(u.WidgetEventCapability.forStateEvent(u.EventDirection.Send,e,t).raw)}},{key:"requestCapabilityToReceiveState",value:function(e,t){this.requestCapability(u.WidgetEventCapability.forStateEvent(u.EventDirection.Receive,e,t).raw)}},{key:"requestCapabilityToSendEvent",value:function(e){this.requestCapability(u.WidgetEventCapability.forRoomEvent(u.EventDirection.Send,e).raw)}},{key:"requestCapabilityToReceiveEvent",value:function(e){this.requestCapability(u.WidgetEventCapability.forRoomEvent(u.EventDirection.Receive,e).raw)}},{key:"requestCapabilityToSendMessage",value:function(e){this.requestCapability(u.WidgetEventCapability.forRoomMessageEvent(u.EventDirection.Send,e).raw)}},{key:"requestCapabilityToReceiveMessage",value:function(e){this.requestCapability(u.WidgetEventCapability.forRoomMessageEvent(u.EventDirection.Receive,e).raw)}},{key:"requestOpenIDConnectToken",value:function(){var e=this;return new Promise((function(t,n){e.transport.sendComplete(s.WidgetApiFromWidgetAction.GetOpenIDCredentials,{}).then((function(o){var r=o.response;r.state===c.OpenIDRequestState.Allowed?t(r):r.state===c.OpenIDRequestState.Blocked?n(new Error("User declined to verify their identity")):r.state===c.OpenIDRequestState.PendingUserConfirmation?e.on("action:".concat(s.WidgetApiToWidgetAction.OpenIDCredentials),(function i(a){a.preventDefault();var l=a.detail;l.data.original_request_id===o.requestId&&(l.data.state===c.OpenIDRequestState.Allowed?(t(l.data),e.transport.reply(l,{})):l.data.state===c.OpenIDRequestState.Blocked?(n(new Error("User declined to verify their identity")),e.transport.reply(l,{})):(n(new Error("Invalid state on reply: "+r.state)),e.transport.reply(l,{error:{message:"Invalid state"}})),e.off("action:".concat(s.WidgetApiToWidgetAction.OpenIDCredentials),i))})):n(new Error("Invalid state: "+r.state))})).catch(n)}))}},{key:"updateRequestedCapabilities",value:function(){return this.transport.send(s.WidgetApiFromWidgetAction.MSC2974RenegotiateCapabilities,{capabilities:this.requestedCapabilities}).then()}},{key:"sendContentLoaded",value:function(){return this.transport.send(s.WidgetApiFromWidgetAction.ContentLoaded,{}).then()}},{key:"sendSticker",value:function(e){return this.transport.send(s.WidgetApiFromWidgetAction.SendSticker,e).then()}},{key:"setAlwaysOnScreen",value:function(e){return this.transport.send(s.WidgetApiFromWidgetAction.UpdateAlwaysOnScreen,{value:e}).then((function(e){return e.success}))}},{key:"openModalWidget",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:l.MatrixWidgetType.Custom;return this.transport.send(s.WidgetApiFromWidgetAction.OpenModalWidget,{type:r,url:e,name:t,buttons:n,data:o}).then()}},{key:"closeModalWidget",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.transport.send(s.WidgetApiFromWidgetAction.CloseModalWidget,e).then()}},{key:"sendRoomEvent",value:function(e,t){return this.transport.send(s.WidgetApiFromWidgetAction.SendEvent,{type:e,content:t})}},{key:"sendStateEvent",value:function(e,t,n){return this.transport.send(s.WidgetApiFromWidgetAction.SendEvent,{type:e,content:n,state_key:t})}},{key:"setModalButtonEnabled",value:function(e,t){if(e===d.BuiltInModalButtonID.Close)throw new Error("The close button cannot be disabled");return this.transport.send(s.WidgetApiFromWidgetAction.SetModalButtonEnabled,{button:e,enabled:t}).then()}},{key:"navigateTo",value:function(e){if(!e||!e.startsWith("https://matrix.to/#"))throw new Error("Invalid matrix.to URI");return this.transport.send(s.WidgetApiFromWidgetAction.MSC2931Navigate,{uri:e}).then()}},{key:"start",value:function(){var e=this;this.transport.start(),this.getClientVersions().then((function(t){t.includes(i.UnstableApiVersion.MSC2974)&&(e.supportsMSC2974Renegotiate=!0)}))}},{key:"handleMessage",value:function(e){var t=new CustomEvent("action:".concat(e.detail.action),{detail:e.detail,cancelable:!0});if(this.emit("action:".concat(e.detail.action),t),!t.defaultPrevented)switch(e.detail.action){case s.WidgetApiToWidgetAction.SupportedApiVersions:return this.replyVersions(e.detail);case s.WidgetApiToWidgetAction.Capabilities:return this.handleCapabilities(e.detail);case s.WidgetApiToWidgetAction.UpdateVisibility:case s.WidgetApiToWidgetAction.NotifyCapabilities:return this.transport.reply(e.detail,{});default:return this.transport.reply(e.detail,{error:{message:"Unknown or unsupported action: "+e.detail.action}})}}},{key:"replyVersions",value:function(e){this.transport.reply(e,{supported_versions:i.CurrentApiVersions})}},{key:"getClientVersions",value:function(){var e=this;return Array.isArray(this.cachedClientVersions)?Promise.resolve(this.cachedClientVersions):this.transport.send(s.WidgetApiFromWidgetAction.SupportedApiVersions,{}).then((function(t){return e.cachedClientVersions=t.supported_versions,t.supported_versions})).catch((function(e){return console.warn("non-fatal error getting supported client versions: ",e),[]}))}},{key:"handleCapabilities",value:function(e){var t=this;return this.capabilitiesFinished?this.transport.reply(e,{error:{message:"Capability negotiation already completed"}}):this.getClientVersions().then((function(n){return n.includes(i.UnstableApiVersion.MSC2871)?t.once("action:".concat(s.WidgetApiToWidgetAction.NotifyCapabilities),(function(e){t.approvedCapabilities=e.detail.data.approved,t.emit("ready")})):t.emit("ready"),t.capabilitiesFinished=!0,t.transport.reply(e,{capabilities:t.requestedCapabilities})}))}}])&&m(t.prototype,n),o&&m(t,o),_}(o.EventEmitter);t.WidgetApi=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientWidgetApi=void 0;var o=n(7),r=n(10),i=n(8),a=n(11),s=n(20),c=n(9),l=n(13),d=n(12),u=n(21);function h(e){return(h="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})(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=y(e);if(t){var r=y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?v(e):t}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(p,e);var t,n,o,h=_(p);function p(e,t,n){var o,a;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(a=h.call(this)).widget=e,a.iframe=t,a.driver=n,E(v(a),"transport",void 0),E(v(a),"capabilitiesFinished",!1),E(v(a),"allowedCapabilities",new Set),E(v(a),"allowedEvents",[]),E(v(a),"isStopped",!1),!(null===(o=t)||void 0===o?void 0:o.contentWindow))throw new Error("No iframe supplied");if(!e)throw new Error("Invalid widget");if(!n)throw new Error("Invalid driver");return a.transport=new r.PostmessageTransport(i.WidgetApiDirection.ToWidget,e.id,t.contentWindow,window),a.transport.targetOrigin=e.origin,a.transport.on("message",a.handleMessage.bind(v(a))),e.waitForIframeLoad&&t.addEventListener("load",a.onIframeLoad.bind(v(a))),a.transport.start(),a}return t=p,(n=[{key:"hasCapability",value:function(e){return this.allowedCapabilities.has(e)}},{key:"canSendRoomEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.allowedEvents.some((function(n){return n.matchesAsRoomEvent(e,t)&&n.direction===l.EventDirection.Send}))}},{key:"canSendStateEvent",value:function(e,t){return this.allowedEvents.some((function(n){return n.matchesAsStateEvent(e,t)&&n.direction===l.EventDirection.Send}))}},{key:"canReceiveRoomEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.allowedEvents.some((function(n){return n.matchesAsRoomEvent(e,t)&&n.direction===l.EventDirection.Receive}))}},{key:"canReceiveStateEvent",value:function(e,t){return this.allowedEvents.some((function(n){return n.matchesAsStateEvent(e,t)&&n.direction===l.EventDirection.Receive}))}},{key:"stop",value:function(){this.isStopped=!0,this.transport.stop()}},{key:"onIframeLoad",value:function(e){this.beginCapabilities(),this.iframe.removeEventListener("onload",this.onIframeLoad.bind(this))}},{key:"beginCapabilities",value:function(){var e,t=this;if(this.capabilitiesFinished)throw new Error("Capabilities exchange already completed");this.emit("preparing"),this.transport.send(a.WidgetApiToWidgetAction.Capabilities,{}).then((function(n){return e=n.capabilities,t.driver.validateCapabilities(new Set(n.capabilities))})).then((function(n){console.log("Widget ".concat(t.widget.id," is allowed capabilities:"),Array.from(n)),t.allowedCapabilities=n,t.allowedEvents=l.WidgetEventCapability.findEventCapabilities(n),t.capabilitiesFinished=!0,t.notifyCapabilities(e),t.emit("ready")}))}},{key:"notifyCapabilities",value:function(e){this.transport.send(a.WidgetApiToWidgetAction.NotifyCapabilities,{requested:e,approved:Array.from(this.allowedCapabilities)}).catch((function(e){console.warn("non-fatal error notifying widget of approved capabilities:",e)}))}},{key:"handleContentLoadedAction",value:function(e){this.widget.waitForIframeLoad?this.transport.reply(e,{error:{message:"Improper sequence: not expecting load event"}}):(this.transport.reply(e,{}),this.beginCapabilities())}},{key:"replyVersions",value:function(e){this.transport.reply(e,{supported_versions:c.CurrentApiVersions})}},{key:"handleCapabilitiesRenegotiate",value:function(e){var t,n=this;this.transport.reply(e,{});var o=(null===(t=e.data)||void 0===t?void 0:t.capabilities)||[],r=new Set(o.filter((function(e){return!n.hasCapability(e)})));if(0===r.size)return this.notifyCapabilities([]);this.driver.validateCapabilities(r).then((function(e){return e.forEach((function(e){return n.allowedCapabilities.add(e)})),l.WidgetEventCapability.findEventCapabilities(e).forEach((function(e){return n.allowedEvents.push(e)})),n.notifyCapabilities(Array.from(r))}))}},{key:"handleNavigate",value:function(e){var t,n,o=this;if(!this.hasCapability(s.MatrixCapabilities.MSC2931Navigate))return this.transport.reply(e,{error:{message:"Missing capability"}});if(!(null===(t=e.data)||void 0===t?void 0:t.uri)||!(null===(n=e.data)||void 0===n?void 0:n.uri.toString().startsWith("https://matrix.to/#")))return this.transport.reply(e,{error:{message:"Invalid matrix.to URI"}});var r=function(t){return console.error("[ClientWidgetApi] Failed to handle navigation: ",t),o.transport.reply(e,{error:{message:"Error handling navigation"}})};try{this.driver.navigate(e.data.uri.toString()).catch((function(e){return r(e)})).then((function(){return o.transport.reply(e,{})}))}catch(e){return r(e)}}},{key:"handleOIDC",value:function(e){var t=this,n=1,o=function(o,r){return r=r||{},n>1?t.transport.send(a.WidgetApiToWidgetAction.OpenIDCredentials,m({state:o,original_request_id:e.requestId},r)):t.transport.reply(e,m({state:o},r))},r=function(r){return console.error("[ClientWidgetApi] Failed to handle OIDC: ",r),n>1?o(d.OpenIDRequestState.Blocked):t.transport.reply(e,{error:{message:r}})},i=new u.SimpleObservable((function(e){return e.state===d.OpenIDRequestState.PendingUserConfirmation&&n>1?(i.close(),r("client provided out-of-phase response to OIDC flow")):e.state===d.OpenIDRequestState.PendingUserConfirmation?(o(e.state),void n++):e.state!==d.OpenIDRequestState.Allowed||e.token?(e.state===d.OpenIDRequestState.Blocked&&(e.token=null),i.close(),o(e.state,e.token)):r("client provided invalid OIDC token for an allowed request")}));this.driver.askOpenID(i)}},{key:"handleSendEvent",value:function(e){var t,n=this;if(!e.data.type)return this.transport.reply(e,{error:{message:"Invalid request - missing event type"}});if(null!==e.data.state_key&&void 0!==e.data.state_key){if(!this.canSendStateEvent(e.data.type,e.data.state_key))return this.transport.reply(e,{error:{message:"Cannot send state events of this type"}});t=this.driver.sendEvent(e.data.type,e.data.content||{},e.data.state_key)}else{var o=e.data.content||{},r=o.msgtype;if(!this.canSendRoomEvent(e.data.type,r))return this.transport.reply(e,{error:{message:"Cannot send room events of this type"}});t=this.driver.sendEvent(e.data.type,o,null)}t.then((function(t){return n.transport.reply(e,{room_id:t.roomId,event_id:t.eventId})})).catch((function(t){return console.error("error sending event: ",t),n.transport.reply(e,{error:{message:"Error sending event"}})}))}},{key:"handleMessage",value:function(e){if(!this.isStopped){var t=new CustomEvent("action:".concat(e.detail.action),{detail:e.detail,cancelable:!0});if(this.emit("action:".concat(e.detail.action),t),!t.defaultPrevented)switch(e.detail.action){case a.WidgetApiFromWidgetAction.ContentLoaded:return this.handleContentLoadedAction(e.detail);case a.WidgetApiFromWidgetAction.SupportedApiVersions:return this.replyVersions(e.detail);case a.WidgetApiFromWidgetAction.SendEvent:return this.handleSendEvent(e.detail);case a.WidgetApiFromWidgetAction.GetOpenIDCredentials:return this.handleOIDC(e.detail);case a.WidgetApiFromWidgetAction.MSC2931Navigate:return this.handleNavigate(e.detail);case a.WidgetApiFromWidgetAction.MSC2974RenegotiateCapabilities:return this.handleCapabilitiesRenegotiate(e.detail);default:return this.transport.reply(e.detail,{error:{message:"Unknown or unsupported action: "+e.detail.action}})}}}},{key:"takeScreenshot",value:function(){return this.transport.send(a.WidgetApiToWidgetAction.TakeScreenshot,{})}},{key:"updateVisibility",value:function(e){return this.transport.send(a.WidgetApiToWidgetAction.UpdateVisibility,{visible:e})}},{key:"sendWidgetConfig",value:function(e){return this.transport.send(a.WidgetApiToWidgetAction.WidgetConfig,e).then()}},{key:"notifyModalWidgetButtonClicked",value:function(e){return this.transport.send(a.WidgetApiToWidgetAction.ButtonClicked,{id:e}).then()}},{key:"notifyModalWidgetClose",value:function(e){return this.transport.send(a.WidgetApiToWidgetAction.CloseModalWidget,e).then()}},{key:"feedEvent",value:function(e){if(void 0!==e.state_key&&null!==e.state_key){if(!this.canReceiveStateEvent(e.type,e.state_key))return Promise.resolve()}else if(!this.canReceiveRoomEvent(e.type,(e.content||{}).msgtype))return Promise.resolve();return this.transport.send(a.WidgetApiToWidgetAction.SendEvent,e).then()}}])&&g(t.prototype,n),o&&g(t,o),p}(o.EventEmitter);t.ClientWidgetApi=S},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isErrorResponse=function(e){if("error"in e){return!!e.error.message}return!1}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetKind=void 0,t.WidgetKind=o,function(e){e.Room="room",e.Account="account",e.Modal="modal"}(o||(t.WidgetKind=o={}))},function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),t.ModalButtonKind=void 0,t.ModalButtonKind=o,function(e){e.Primary="m.primary",e.Secondary="m.secondary",e.Warning="m.warning",e.Danger="m.danger",e.Link="m.link"}(o||(t.ModalButtonKind=o={}))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetParser=void 0;var o=n(24),r=n(22);function i(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,a;return t=e,a=[{key:"parseAccountData",value:function(t){if(!t)return[];for(var n=[],o=0,r=Object.keys(t);o<r.length;o++){var i=r[o],a=t[i];if(a&&("m.widget"===a.type||"im.vector.modular.widgets"===a.type)&&a.sender&&(a.state_key||a.id)===i){var s={content:a.content,sender:a.sender,type:"m.widget",state_key:i,event_id:"$example",room_id:"!example",origin_server_ts:1},c=e.parseRoomWidget(s);c&&n.push(c)}}return n}},{key:"parseWidgetsFromRoomState",value:function(t){if(!t)return[];var n,o=[],r=i(t);try{for(r.s();!(n=r.n()).done;){var a=n.value,s=e.parseRoomWidget(a);s&&o.push(s)}}catch(e){r.e(e)}finally{r.f()}return o}},{key:"parseRoomWidget",value:function(t){if(!t)return null;if("m.widget"!==t.type&&"im.vector.modular.widgets"!==t.type)return null;var n=t.content||{},o={id:t.state_key,creatorUserId:n.creatorUserId||t.sender,name:n.name,type:n.type,url:n.url,waitForIframeLoad:n.waitForIframeLoad,data:n.data};return e.processEstimatedWidget(o)}},{key:"processEstimatedWidget",value:function(e){return e.id&&e.creatorUserId&&e.type&&(0,r.isValidUrl)(e.url)?new o.Widget(e):null}}],(n=null)&&s(t.prototype,n),a&&s(t,a),e}();t.WidgetParser=c},function(e,t,n){"use strict";function o(e){return null==e?"".concat(e):e.toString()}Object.defineProperty(t,"__esModule",{value:!0}),t.runTemplate=function(e,t,n){for(var r=Object.assign({},t.data,{matrix_room_id:n.widgetRoomId||"",matrix_user_id:n.currentUserId,matrix_display_name:n.userDisplayName||n.currentUserId,matrix_avatar_url:n.userHttpAvatarUrl||"",matrix_widget_id:t.id}),i=e,a=0,s=Object.keys(r);a<s.length;a++){var c=s[a],l="$".concat(c).replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),d=new RegExp(l,"g");i=i.replace(d,encodeURIComponent(o(r[c])))}return i},t.toString=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetDriver=void 0;var o=n(3);function r(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"validateCapabilities",value:function(e){return Promise.resolve(new Set)}},{key:"sendEvent",value:function(e,t){return Promise.reject(new Error("Failed to override function"))}},{key:"askOpenID",value:function(e){e.update({state:o.OpenIDRequestState.Blocked})}},{key:"navigate",value:function(e){throw new Error("Navigation is not implemented")}}])&&r(t.prototype,n),i&&r(t,i),e}();t.WidgetDriver=i},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";e.exports=n(756)},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";n.d(t,"h",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return f})),n.d(t,"k",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"f",(function(){return y})),n.d(t,"e",(function(){return E})),n.d(t,"g",(function(){return S})),n.d(t,"i",(function(){return w})),n.d(t,"d",(function(){return C})),n.d(t,"j",(function(){return T}));var o=n(16),r=n.n(o),i=n(759),a=n.n(i),s=n(82),c=n.n(s),l=n(90),d=n(107),u=n(1370),h=n(98),p=n(125);function m(e){const t=new Error(e);return t.translatedMessage=f(e),t}function g(e){return e}function f(e,t,n){const o=function(e,t,n){let o=e;if(void 0!==t){const e={};for(const n in t)e[`%\\(${n}\\)s`]=t[n];o=_(o,e)}if(void 0!==n){const e={};for(const t in n)e[`(<${t}>(.*?)<\\/${t}>|<${t}>|<${t}\\s*\\/>)`]=n[t];o=_(o,e)}return o}(function(e,t){let n;t&&"object"==typeof t&&(n=t.count,Object.keys(t).forEach(e=>{void 0===t[e]&&(console.warn("safeCounterpartTranslate called with undefined interpolation name: "+e),t[e]="undefined"),null===t[e]&&(console.warn("safeCounterpartTranslate called with null interpolation name: "+e),t[e]="null")}));let o=a.a.translate(e,t);return void 0===o&&void 0!==n&&(o=a.a.translate(e,Object.assign({},t,{locale:"en"}))),o}(e,Object.assign({interpolate:!1},t)),t,n);return o}function _(e,t){const n=[e];let o=!1;for(const r in t){const i=new RegExp(r,"g");let a=!1;for(let e=0;e<n.length;e++){const s=n[e];if("string"!=typeof s)continue;let c=i.exec(s);if(!c)continue;a=!0;const l=s.substr(0,c.index),d=[];let u;for(;c;){u=c;const e=c.slice(2);let n,a;if(n=t[r]instanceof Function?t[r].apply(null,e):t[r],"object"==typeof n&&(o=!0),"string"==typeof n&&""===n||d.push(n),c=i.exec(s),c){const e=u.index+u[0].length;a=s.substr(e,c.index-e)}else a=s.substr(u.index+u[0].length);a&&d.push(a)}n.splice(e,1,...d),""!==l&&n.splice(e,0,l)}a||"%\\(count\\)s"!==r&&console.log(`Could not find ${i} in ${e}`)}return o?c.a.createElement("span",null,...n):n.join("")}function b(e){Array.isArray(e)||(e=[e]);const t=d.a.get();let n,o;return t&&t.setLanguage(e),x().then(t=>{o=t;for(let t=0;t<e.length;++t)if(o.hasOwnProperty(e[t])){n=e[t];break}return n||(n="en",console.error("Unable to find an appropriate language")),O("i18n/"+o[n].fileName)}).then(e=>{if(a.a.registerTranslations(n,e),a.a.setLocale(n),l.b.setValue("language",null,h.a.DEVICE,n),console.log("set language to "+n),"en"!==n)return O("i18n/"+o.en.fileName)}).then(e=>{e&&a.a.registerTranslations("en",e)})}function v(){return x().then(e=>{const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push({value:n,label:e[n].label});return t})}function y(){return navigator.languages&&navigator.languages.length?navigator.languages:navigator.language?[navigator.language]:[navigator.userLanguage||"en"]}function E(){return y()[0]}function S(e){const t=[],n=w(e),o=n.split("-");return 2===o.length&&o[0]===o[1]?t.push(o[0]):(t.push(n),2===o.length&&t.push(o[0])),t}function w(e){return e.toLowerCase().replace("_","-")}function C(){return a.a.getLocale()}function T(e){const t=C(),n=e.map(w);{const o=n.indexOf(t);if(o>-1)return e[o]}{const o=n.findIndex(e=>e.substr(0,2)===t.substr(0,2));if(o>-1)return e[o]}{const t=n.findIndex(e=>e.startsWith("en"));if(t>-1)return e[t]}return e[0]}function x(){return new Promise((e,t)=>{let n;n="string"==typeof u.a?u.a:"i18n/languages.json",r()({method:"GET",url:n},(n,o,r)=>{n||o.status<200||o.status>=300?t(n):e(JSON.parse(r))})})}async function O(e,t=3){return Object(p.c)(()=>function(e){return new Promise((t,n)=>{r()({method:"GET",url:e},(e,o,r)=>{e||o.status<200||o.status>=300?n(e):t(function(e){const t={};for(const n of Object.keys(e)){const o=n.split("|",2);if(2===o.length){let r=t[o[0]];void 0===r&&(r={},t[o[0]]=r),r[o[1]]=e[n]}else t[n]=e[n]}return t}(JSON.parse(r)))})})}(e),t,t=>(console.log("Failed to load i18n",e),console.error(t),!0))}a.a.setSeparator("|"),a.a.setFallbackLocale("en")},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(87);function r(e,t){return()=>o.getComponent(e)||t}},function(e,t,n){e.exports=n(776)()},function(e,t,n){"use strict";n.r(t),n.d(t,"loadSkin",(function(){return r})),n.d(t,"resetSkin",(function(){return i})),n.d(t,"getComponent",(function(){return a}));var o=n(770);n(1366);function r(e){o.a.load(e)}function i(){o.a.reset()}function a(e){return o.a.getComponent(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var o=n(83),r=n.n(o),i=n(265),a=n(1),s=n(152),c=n(361),l=n(87),d=n(652),u=n(90),h=n(89);function p(e,t,n){return{action:"MatrixActions.sync",state:t,prevState:n,matrixClient:e}}function m(e,t){return{action:"MatrixActions.accountData",event:t,event_type:t.getType(),event_content:t.getContent()}}function g(e,t,n){return{action:"MatrixActions.Room.accountData",event:t,event_type:t.getType(),event_content:t.getContent(),room:n}}function f(e,t){return{action:"MatrixActions.Room",room:t}}function _(e,t,n){return{action:"MatrixActions.Room.tags",room:n}}function b(e,t,n){return{action:"MatrixActions.Room.receipt",event:t,room:n,matrixClient:e}}function v(e,t,n,o,r,i){return{action:"MatrixActions.Room.timeline",event:t,isLiveEvent:i.liveEvent,isLiveUnfilteredRoomTimelineEvent:n&&i.timeline.getTimelineSet()===n.getUnfilteredTimelineSet()}}function y(e,t,n,o){return{action:"MatrixActions.Room.myMembership",room:t,membership:n,oldMembership:o}}function E(e,t){return{action:"MatrixActions.Event.decrypted",event:t}}var S={_matrixClientListenersStop:[],start(e){this._addMatrixClientListener(e,"sync",p),this._addMatrixClientListener(e,"accountData",m),this._addMatrixClientListener(e,"Room.accountData",g),this._addMatrixClientListener(e,"Room",f),this._addMatrixClientListener(e,"Room.tags",_),this._addMatrixClientListener(e,"Room.receipt",b),this._addMatrixClientListener(e,"Room.timeline",v),this._addMatrixClientListener(e,"Room.myMembership",y),this._addMatrixClientListener(e,"Event.decrypted",E)},_addMatrixClientListener(e,t,n){const o=(...t)=>{const o=n(e,...t);o&&h.a.dispatch(o,!0)};e.on(t,o),this._matrixClientListenersStop.push(()=>{e.removeListener(t,o)})},stop(){this._matrixClientListenersStop.forEach(e=>e())}},w=n(91),C=n(333),T=n(357),x=n(348),O=n(196),k=n(165),R=n(285),D=n(221);class I{constructor(){r()(this,"opts",{initialSyncLimit:20}),r()(this,"matrixClient",null),r()(this,"justRegisteredUserId",void 0),r()(this,"currentClientCreds",void 0)}setIndexedDbWorkerScript(e){d.a.indexedDbWorkerScript=e}get(){return this.matrixClient}unset(){this.matrixClient=null,S.stop()}setJustRegisteredUserId(e){this.justRegisteredUserId=e,e&&window.localStorage.setItem("mx_registration_time",String((new Date).getTime()))}currentUserIsJustRegistered(){return this.matrixClient&&this.matrixClient.credentials.userId===this.justRegisteredUserId}userRegisteredWithinLastHours(e){try{const t=new Date(window.localStorage.getItem("mx_registration_time"));return((new Date).getTime()-t.getTime())/36e5<=e}catch(e){return!1}}replaceUsingCreds(e){this.currentClientCreds=e,this.createClient(e)}async assign(){for(const e of["indexeddb","memory"])try{const e=this.matrixClient.store.startup();console.log("MatrixClientPeg: waiting for MatrixClient store to initialise"),await e;break}catch(t){if("indexeddb"!==e)throw console.error("Failed to start memory store!",t),t;console.error("Error starting matrixclient store - falling back to memory store",t),this.matrixClient.store=new i.a({localStorage:localStorage})}x.f(this.matrixClient);try{!u.b.getValue("lowBandwidth")&&this.matrixClient.initCrypto&&(await this.matrixClient.initCrypto(),this.matrixClient.setCryptoTrustCrossSignedDevices(!u.b.getValue("e2ee.manuallyVerifyAllSessions")),await Object(k.f)(this.matrixClient),x.e(!0))}catch(e){if(e&&"InvalidCryptoStoreError"===e.name){const e=l.getComponent("views.dialogs.CryptoStoreTooNewDialog");w.a.createDialog(e)}console.warn("Unable to initialise e2e",e)}const e=a.d(this.opts);return e.pendingEventOrdering="detached",e.lazyLoadMembers=!0,e.clientWellKnownPollPeriod=7200,S.start(this.matrixClient),T.a.matrixClient=this.matrixClient,e}async start(){const e=await this.assign();console.log("MatrixClientPeg: really starting MatrixClient"),await this.get().startClient(e),console.log("MatrixClientPeg: MatrixClient started")}getCredentials(){return{homeserverUrl:this.matrixClient.baseUrl,identityServerUrl:this.matrixClient.idBaseUrl,userId:this.matrixClient.credentials.userId,deviceId:this.matrixClient.getDeviceId(),accessToken:this.matrixClient.getAccessToken(),guest:this.matrixClient.isGuest()}}getHomeserverName(){const e=/^@[^:]+:(.+)$/.exec(this.matrixClient.credentials.userId);if(null===e||e.length<1)throw new Error("Failed to derive homeserver name from user ID!");return e[1]}createClient(e){const t={baseUrl:e.homeserverUrl,idBaseUrl:e.identityServerUrl,accessToken:e.accessToken,userId:e.userId,deviceId:e.deviceId,pickleKey:e.pickleKey,timelineSupport:!0,forceTURN:!u.b.getValue("webRtcAllowPeerToPeer"),fallbackICEServerAllowed:!!u.b.getValue("fallbackICEServerAllowed"),iceCandidatePoolSize:20,verificationMethods:[C.d.SAS,R.d,C.d.RECIPROCATE_QR_CODE],unstableClientRelationAggregation:!0,identityServer:new O.a,cryptoCallbacks:{}};Object.assign(t.cryptoCallbacks,k.c),D.a.getDehydrationKey&&(t.cryptoCallbacks.getDehydrationKey=D.a.getDehydrationKey),this.matrixClient=Object(d.a)(t),this.matrixClient.setMaxListeners(500),this.matrixClient.setGuest(Boolean(e.guest));const n=new c.a(null,{timelineSupport:!0});n.getLiveTimeline().setPaginationToken("",s.a.BACKWARDS),this.matrixClient.setNotifTimelineSet(n)}}window.mxMatrixClientPeg||(window.mxMatrixClientPeg=new I);const A=window.mxMatrixClientPeg},function(e,t,n){"use strict";(function(e){var o=n(774),r=n(367);class i extends o.Dispatcher{dispatch(e,t=!1){e instanceof r.a?e.fn(e=>{this.dispatch(e,t)}):t?super.dispatch(e):setTimeout(super.dispatch.bind(this,e),0)}fire(e,t=!1){this.dispatch({action:e},t)}}const a=new i,s=e;s.mxDispatcher||(s.mxDispatcher=a),t.a=a}).call(this,n(6))},function(e,t,n){"use strict";n.d(t,"a",(function(){return D})),n.d(t,"b",(function(){return I}));var o=n(83),r=n.n(o),i=n(228),a=n(88),s=n(98),c=n(162);class l extends i.a{constructor(e,t){super(),this.featureNames=e,this.watchers=t}getValue(e,t){if(this.featureNames.includes(e))return this.readFeature(e);if("notificationsEnabled"===e){const e=localStorage.getItem("notifications_enabled");return"string"==typeof e?"true"===e:null}if("notificationBodyEnabled"===e){const e=localStorage.getItem("notifications_body_enabled");return"string"==typeof e?"true"===e:null}if("audioNotificationsEnabled"===e){const e=localStorage.getItem("audio_notifications_enabled");return"string"==typeof e?"true"===e:null}if(["showRightPanelInRoom","showRightPanelInGroup","lastRightPanelPhaseForRoom","lastRightPanelPhaseForGroup"].includes(e)){return JSON.parse(localStorage.getItem("mx_"+e)||"{}").value}if("layout"===e){const t=this.getSettings()||{};return t.useIRCLayout?c.a.IRC:t[e]}return(this.getSettings()||{})[e]}setValue(e,t,n){if(this.featureNames.includes(e))return this.writeFeature(e,n),Promise.resolve();if("notificationsEnabled"===e)return localStorage.setItem("notifications_enabled",n),this.watchers.notifyUpdate(e,null,s.a.DEVICE,n),Promise.resolve();if("notificationBodyEnabled"===e)return localStorage.setItem("notifications_body_enabled",n),this.watchers.notifyUpdate(e,null,s.a.DEVICE,n),Promise.resolve();if("audioNotificationsEnabled"===e)return localStorage.setItem("audio_notifications_enabled",n),this.watchers.notifyUpdate(e,null,s.a.DEVICE,n),Promise.resolve();if(["showRightPanelInRoom","showRightPanelInGroup","lastRightPanelPhaseForRoom","lastRightPanelPhaseForGroup"].includes(e))return localStorage.setItem("mx_"+e,JSON.stringify({value:n})),this.watchers.notifyUpdate(e,null,s.a.DEVICE,n),Promise.resolve();if("layout"===e){const t=this.getSettings()||{};return delete t.useIRCLayout,t.layout=n,localStorage.setItem("mx_local_settings",JSON.stringify(t)),this.watchers.notifyUpdate(e,null,s.a.DEVICE,n),Promise.resolve()}const o=this.getSettings()||{};return o[e]=n,localStorage.setItem("mx_local_settings",JSON.stringify(o)),this.watchers.notifyUpdate(e,null,s.a.DEVICE,n),Promise.resolve()}canSetValue(e,t){return!0}isSupported(){return void 0!==localStorage&&null!==localStorage}watchSetting(e,t,n){this.watchers.watchSetting(e,t,n)}unwatchSetting(e){this.watchers.unwatchSetting(e)}getSettings(){const e=localStorage.getItem("mx_local_settings");return e?JSON.parse(e):null}readFeature(e){if(a.a.get()&&a.a.get().isGuest())return!1;const t=localStorage.getItem("mx_labs_feature_"+e);return"true"===t||"false"!==t&&null}writeFeature(e,t){localStorage.setItem("mx_labs_feature_"+e,""+t),this.watchers.notifyUpdate(e,null,s.a.DEVICE,t)}}class d extends i.a{constructor(e){super(),this.watchers=e}getValue(e,t){if("blacklistUnverifiedDevices"===e){const e=this.read("mx_local_settings");if(e&&e.blacklistUnverifiedDevicesPerRoom)return e.blacklistUnverifiedDevicesPerRoom[t]}const n=this.read(this.getKey(e,t));return n?n.value:null}setValue(e,t,n){if("blacklistUnverifiedDevices"===e){let o=this.read("mx_local_settings");return o||(o={}),o.blacklistUnverifiedDevicesPerRoom||(o.blacklistUnverifiedDevicesPerRoom={}),o.blacklistUnverifiedDevicesPerRoom[t]=n,localStorage.setItem("mx_local_settings",JSON.stringify(o)),this.watchers.notifyUpdate(e,t,s.a.ROOM_DEVICE,n),Promise.resolve()}return null===n?localStorage.removeItem(this.getKey(e,t)):(n=JSON.stringify({value:n}),localStorage.setItem(this.getKey(e,t),n)),this.watchers.notifyUpdate(e,t,s.a.ROOM_DEVICE,n),Promise.resolve()}canSetValue(e,t){return!0}isSupported(){return void 0!==localStorage&&null!==localStorage}read(e){const t=localStorage.getItem(e);return t?JSON.parse(t):null}getKey(e,t){return"mx_setting_"+e+"_"+t}}class u extends i.a{constructor(e,t){super(),this.defaults=e,this.invertedDefaults=t}getValue(e,t){let n=this.defaults[e];return void 0===n&&(n=this.invertedDefaults[e]),n}async setValue(e,t,n){throw new Error("Cannot set values on the default level handler")}canSetValue(e,t){return!1}isSupported(){return!0}}var h=n(357),p=n(128);class m extends h.a{constructor(e){super(),this.watchers=e,r()(this,"onAccountData",(e,t,n)=>{const o=t.roomId;if("org.matrix.room.preview_urls"===e.getType()){let t=e.getContent().disable;t="boolean"!=typeof t?null:!t,this.watchers.notifyUpdate("urlPreviewsEnabled",o,s.a.ROOM_ACCOUNT,t)}else if("org.matrix.room.color_scheme"===e.getType())this.watchers.notifyUpdate("roomColor",o,s.a.ROOM_ACCOUNT,e.getContent());else if("im.vector.web.settings"===e.getType()){const t=n?n.getContent():{},r=Object(p.e)(t,e.getContent());for(const t of r){const n=e.getContent()[t];this.watchers.notifyUpdate(t,o,s.a.ROOM_ACCOUNT,n)}}else"im.vector.setting.allowed_widgets"===e.getType()&&this.watchers.notifyUpdate("allowedWidgets",o,s.a.ROOM_ACCOUNT,e.getContent())})}initMatrixClient(e,t){e&&e.removeListener("Room.accountData",this.onAccountData),t.on("Room.accountData",this.onAccountData)}getValue(e,t){if("urlPreviewsEnabled"===e){const e=this.getSettings(t,"org.matrix.room.preview_urls")||{};return"boolean"!=typeof e.disable?null:!e.disable}if("roomColor"===e)return this.getSettings(t,"org.matrix.room.color_scheme");if("allowedWidgets"===e)return this.getSettings(t,"im.vector.setting.allowed_widgets");return(this.getSettings(t)||{})[e]}setValue(e,t,n){if("urlPreviewsEnabled"===e){const e=this.getSettings(t,"org.matrix.room.preview_urls")||{};return e.disable=!n,a.a.get().setRoomAccountData(t,"org.matrix.room.preview_urls",e)}if("roomColor"===e)return a.a.get().setRoomAccountData(t,"org.matrix.room.color_scheme",n);if("allowedWidgets"===e)return a.a.get().setRoomAccountData(t,"im.vector.setting.allowed_widgets",n);const o=this.getSettings(t)||{};return o[e]=n,a.a.get().setRoomAccountData(t,"im.vector.web.settings",o)}canSetValue(e,t){const n=a.a.get().getRoom(t);return null!=n}isSupported(){const e=a.a.get();return null!=e&&!e.isGuest()}getSettings(e,t="im.vector.web.settings"){const n=a.a.get().getRoom(e);if(!n)return null;const o=n.getAccountData(t);return o&&o.getContent()?Object(p.a)(o.getContent()):null}}const g=["im.vector.riot.breadcrumb_rooms","im.vector.setting.breadcrumbs"];class f extends h.a{constructor(e){super(),this.watchers=e,r()(this,"onAccountData",(e,t)=>{if("org.matrix.preview_urls"===e.getType()){let t=e.getContent().disable;t="boolean"!=typeof t?null:!t,this.watchers.notifyUpdate("urlPreviewsEnabled",null,s.a.ACCOUNT,t)}else if("im.vector.web.settings"===e.getType()){const n=t?t.getContent():{},o=Object(p.e)(n,e.getContent());for(const t of o){const n=e.getContent()[t];this.watchers.notifyUpdate(t,null,s.a.ACCOUNT,n)}}else if(g.includes(e.getType()))this.notifyBreadcrumbsUpdate(e);else if("im.vector.setting.integration_provisioning"===e.getType()){const t=e.getContent().enabled;this.watchers.notifyUpdate("integrationProvisioning",null,s.a.ACCOUNT,t)}else if("io.element.recent_emoji"===e.getType()){const t=e.getContent().enabled;this.watchers.notifyUpdate("recent_emoji",null,s.a.ACCOUNT,t)}})}initMatrixClient(e,t){e&&e.removeListener("accountData",this.onAccountData),t.on("accountData",this.onAccountData)}getValue(e,t){if("urlPreviewsEnabled"===e){const e=this.getSettings("org.matrix.preview_urls")||{};return"boolean"!=typeof e.disable?null:!e.disable}if("breadcrumb_rooms"===e){let e=this.getSettings("im.vector.setting.breadcrumbs");return e&&e.recent_rooms||(e=this.getSettings("im.vector.riot.breadcrumb_rooms"),e&&(e.recent_rooms=e.rooms)),e&&e.recent_rooms?e.recent_rooms:[]}if("recent_emoji"===e){const e=this.getSettings("io.element.recent_emoji");return e?e.recent_emoji:null}if("integrationProvisioning"===e){const e=this.getSettings("im.vector.setting.integration_provisioning");return e?e.enabled:null}const n=this.getSettings()||{};let o=n[e];return null==o&&("hideAvatarChanges"!==e&&"hideDisplaynameChanges"!==e||(o=n.hideAvatarDisplaynameChanges)),o}setValue(e,t,n){if("urlPreviewsEnabled"===e){const e=this.getSettings("org.matrix.preview_urls")||{};return e.disable=!n,a.a.get().setAccountData("org.matrix.preview_urls",e)}if("breadcrumb_rooms"===e){let e=this.getSettings("im.vector.setting.breadcrumbs");return e&&e.recent_rooms||(e=this.getSettings("im.vector.riot.breadcrumb_rooms")),e||(e={}),e.recent_rooms=n,a.a.get().setAccountData("im.vector.setting.breadcrumbs",e)}if("recent_emoji"===e){const e=this.getSettings("io.element.recent_emoji")||{};return e.recent_emoji=n,a.a.get().setAccountData("io.element.recent_emoji",e)}if("integrationProvisioning"===e){const e=this.getSettings("im.vector.setting.integration_provisioning")||{};return e.enabled=n,a.a.get().setAccountData("im.vector.setting.integration_provisioning",e)}const o=this.getSettings()||{};return o[e]=n,a.a.get().setAccountData("im.vector.web.settings",o)}canSetValue(e,t){return!0}isSupported(){const e=a.a.get();return null!=e&&!e.isGuest()}getSettings(e="im.vector.web.settings"){const t=a.a.get();if(!t)return null;const n=t.getAccountData(e);return n&&n.getContent()?Object(p.a)(n.getContent()):null}notifyBreadcrumbsUpdate(e){let t=[];if("im.vector.riot.breadcrumb_rooms"===e.getType()){const n=this.getSettings("im.vector.setting.breadcrumbs");t=n?n.recent_rooms:e.getContent().rooms}else{if("im.vector.setting.breadcrumbs"!==e.getType())return;t=e.getContent().recent_rooms}this.watchers.notifyUpdate("breadcrumb_rooms",null,s.a.ACCOUNT,t||[])}}class _ extends h.a{constructor(e){super(),this.watchers=e,r()(this,"onEvent",(e,t,n)=>{const o=e.getRoomId(),r=this.client.getRoom(o);if(r&&(!r||t===r.currentState))if("org.matrix.room.preview_urls"===e.getType()){let t=e.getContent().disable;t="boolean"!=typeof t?null:!t,this.watchers.notifyUpdate("urlPreviewsEnabled",o,s.a.ROOM,t)}else if("im.vector.web.settings"===e.getType()){const t=n?n.getContent():{},r=Object(p.e)(t,e.getContent());for(const t of r)this.watchers.notifyUpdate(t,o,s.a.ROOM,e.getContent()[t])}})}initMatrixClient(e,t){e&&e.removeListener("RoomState.events",this.onEvent),t.on("RoomState.events",this.onEvent)}getValue(e,t){if("urlPreviewsEnabled"===e){const e=this.getSettings(t,"org.matrix.room.preview_urls")||{};return"boolean"!=typeof e.disable?null:!e.disable}return(this.getSettings(t)||{})[e]}setValue(e,t,n){if("urlPreviewsEnabled"===e){const e=this.getSettings(t,"org.matrix.room.preview_urls")||{};return e.disable=!n,a.a.get().sendStateEvent(t,"org.matrix.room.preview_urls",e)}const o=this.getSettings(t)||{};return o[e]=n,a.a.get().sendStateEvent(t,"im.vector.web.settings",o,"")}canSetValue(e,t){const n=a.a.get(),o=n.getRoom(t);let r="im.vector.web.settings";return"urlPreviewsEnabled"===e&&(r="org.matrix.room.preview_urls"),!!o&&o.currentState.maySendStateEvent(r,n.getUserId())}isSupported(){const e=a.a.get();return null!=e}getSettings(e,t="im.vector.web.settings"){const n=a.a.get().getRoom(e);if(!n)return null;const o=n.currentState.getStateEvents(t,"");return o&&o.getContent()?Object(p.a)(o.getContent()):null}}var b=n(94),v=n(1);class y extends i.a{constructor(e){super(),this.featureNames=e}getValue(e,t){const n=b.a.get()||{};if(this.featureNames.includes(e)){const t=(n.features||{})[e];return Object(v.s)(t)?null:!0===t||!1===t?t:"enable"===t||"disable"!==t&&null}if("theme"===e)return n.default_theme;const o=n.settingDefaults;return!o||Object(v.s)(o[e])?null:o[e]}async setValue(e,t,n){throw new Error("Cannot change settings at the config level")}canSetValue(e,t){return!1}isSupported(){return!0}}var E=n(84),S=n(89),w=n(742);class C extends i.a{constructor(e){super(),this.handler=e,r()(this,"cache",{})}getValue(e,t){const n=t||"UNDEFINED",o=this.cache[e];return o&&o.hasOwnProperty(n)?o[n]:this.handler.getValue(e,t)}setValue(e,t,n){this.cache[e]||(this.cache[e]={});const o=this.cache[e],r=t||"UNDEFINED";o[r]=n;const i=this.handler.setValue(e,t,n);return Promise.resolve(i).finally(()=>{delete o[r]})}canSetValue(e,t){return this.handler.canSetValue(e,t)}isSupported(){return this.handler.isSupported()}}const T=new class{constructor(){r()(this,"watchers",{})}watchSetting(e,t,n){this.watchers[e]||(this.watchers[e]={}),this.watchers[e][t]||(this.watchers[e][t]=[]),this.watchers[e][t].push(n)}unwatchSetting(e){for(const t of Object.keys(this.watchers))for(const n of Object.keys(this.watchers[t])){let o;for(;-1!==(o=this.watchers[t][n].indexOf(e));)this.watchers[t][n].splice(o,1)}}notifyUpdate(e,t,n,o){if(!this.watchers[e])return;const r=this.watchers[e],i=[];null!==t&&r[t]&&i.push(...r[t]),t?r.null&&i.push(...r.null):i.push(...Object.values(r).flat(1));for(const e of i)e(t,n,o)}},x={},O={},k=[];for(const e of Object.keys(w.a))x[e]=w.a[e].default,w.a[e].isFeature&&k.push(e),w.a[e].invertedSettingName&&(O[w.a[e].invertedSettingName]=!w.a[e].default);const R={[s.a.DEVICE]:new l(k,T),[s.a.ROOM_DEVICE]:new d(T),[s.a.ROOM_ACCOUNT]:new m(T),[s.a.ACCOUNT]:new f(T),[s.a.ROOM]:new _(T),[s.a.CONFIG]:new y(k),[s.a.DEFAULT]:new u(x,O)};for(const e of Object.keys(R))R[e]=new C(R[e]);const D=[s.a.DEVICE,s.a.ROOM_DEVICE,s.a.ROOM_ACCOUNT,s.a.ACCOUNT,s.a.ROOM,s.a.CONFIG,s.a.DEFAULT];class I{static getFeatureSettingNames(){return Object.keys(w.a).filter(e=>I.isFeature(e))}static watchSetting(e,t,n){const o=w.a[e],r=e;if(!o)throw new Error(e+" is not a setting");o.invertedSettingName&&(e=o.invertedSettingName);const i=`${(new Date).getTime()}_${I.watcherCount++}_${e}_${t}`,a=(e,t,o)=>{const i=I.getValue(r);n(r,e,t,o,i)};return I.watchers[i]=a,T.watchSetting(e,t,a),i}static unwatchSetting(e){I.watchers[e]?(T.unwatchSetting(I.watchers[e]),delete I.watchers[e]):console.warn("Ending non-existent watcher ID "+e)}static monitorSetting(e,t){t=t||null,this.monitors[e]||(this.monitors[e]={});const n=()=>{this.monitors[e][t]=I.watchSetting(e,t,(e,t,n,o,r)=>{S.a.dispatch({action:"setting_updated",settingName:e,roomId:t,level:n,newValueAtLevel:o,newValue:r})})};if(Object.keys(this.monitors[e]).find(e=>e===t||null===e)){if(null===t){for(const t of Object.keys(this.monitors[e]))I.unwatchSetting(this.monitors[e][t]);this.monitors[e]={},n()}}else n()}static getDisplayName(e,t=s.a.DEFAULT){if(!w.a[e]||!w.a[e].displayName)return null;let n=w.a[e].displayName;return n instanceof Object&&(n=n[t]?n[t]:n.default),Object(E.a)(n)}static isFeature(e){return!!w.a[e]&&w.a[e].isFeature}static isEnabled(e){return!!w.a[e]&&(!w.a[e].controller||!w.a[e].controller.settingDisabled)}static getValue(e,t=null,n=!1){if(!w.a[e])throw new Error("Setting '"+e+"' does not appear to be a setting.");const o=w.a[e],r=o.supportedLevelsAreOrdered?o.supportedLevels:D;return I.getValueAt(r[0],e,t,!1,n)}static getValueAt(e,t,n=null,o=!1,r=!1){const i=w.a[t];if(!i)throw new Error("Setting '"+t+"' does not appear to be a setting.");const a=i.supportedLevelsAreOrdered?i.supportedLevels:D;a.includes(s.a.DEFAULT)||a.push(s.a.DEFAULT);const c=a.indexOf(e);if(-1===c)throw new Error("Level "+e+" is not prioritized");const l=I.getHandlers(t);if(i.invertedSettingName&&(t=i.invertedSettingName),o){const o=l[e];if(!o)return I.getFinalValue(i,e,n,null,null);const r=o.getValue(t,n);return I.getFinalValue(i,e,n,r,e)}for(let o=c;o<a.length;o++){const s=l[a[o]];if(!s)continue;if(r&&"default"===a[o])continue;const c=s.getValue(t,n);if(null!=c)return I.getFinalValue(i,e,n,c,a[o])}return I.getFinalValue(i,e,n,null,null)}static getDefaultValue(e){if(!w.a[e])throw new Error("Setting '"+e+"' does not appear to be a setting.");return w.a[e].default}static getFinalValue(e,t,n,o,r){let i=o;if(e.controller){const a=e.controller.getValueOverride(t,n,o,r);null!=a&&(i=a)}return e.invertedSettingName&&(i=!i),i}static async setValue(e,t,n,o){const r=w.a[e];if(!r)throw new Error("Setting '"+e+"' does not appear to be a setting.");const i=I.getHandler(e,n);if(!i)throw new Error("Setting "+e+" does not have a handler for "+n);if(r.invertedSettingName&&(e=r.invertedSettingName,o=!o),!i.canSetValue(e,t))throw new Error("User cannot set "+e+" at "+n+" in "+t);await i.setValue(e,t,o);const a=r.controller;a&&a.onChange(n,t,o)}static canSetValue(e,t,n){if(!w.a[e])throw new Error("Setting '"+e+"' does not appear to be a setting.");if(I.isFeature(e)){const n=I.getValueAt(s.a.CONFIG,e,t,!0,!0);if(!0===n||!1===n)return!1}const o=I.getHandler(e,n);return!!o&&o.canSetValue(e,t)}static isLevelSupported(e){return!!R[e]&&R[e].isSupported()}static firstSupportedLevel(e){const t=w.a[e];if(!t)throw new Error("Setting '"+e+"' does not appear to be a setting.");const n=t.supportedLevelsAreOrdered?t.supportedLevels:D;n.includes(s.a.DEFAULT)||n.push(s.a.DEFAULT);const o=I.getHandlers(e);for(const e of n){if(o[e])return e}return null}static debugSetting(e,t){console.log("--- DEBUG "+e);const n=w.a[e];console.log("--- definition: "+(n?JSON.stringify(n):"<NOT_FOUND>")),console.log("--- default level order: "+JSON.stringify(D)),console.log("--- registered handlers: "+JSON.stringify(Object.keys(R)));const o=e=>{for(const n of Object.keys(R)){const o=R[n];try{const r=o.getValue(e,t);console.log(`--- ${n}@${t||"<no_room>"} = ${JSON.stringify(r)}`)}catch(e){console.log(`--- ${o}@${t||"<no_room>"} THREW ERROR: ${e.message}`),console.error(e)}if(t)try{const t=o.getValue(e,null);console.log(`--- ${n}@<no_room> = ${JSON.stringify(t)}`)}catch(e){console.log(`--- ${o}@<no_room> THREW ERROR: ${e.message}`),console.error(e)}}console.log("--- calculating as returned by SettingsStore"),console.log("--- these might not match if the setting uses a controller - be warned!");try{const n=I.getValue(e,t);console.log(`--- SettingsStore#generic@${t||"<no_room>"} = ${JSON.stringify(n)}`)}catch(e){console.log(`--- SettingsStore#generic@${t||"<no_room>"} THREW ERROR: ${e.message}`),console.error(e)}if(t)try{const t=I.getValue(e,null);console.log("--- SettingsStore#generic@<no_room> = "+JSON.stringify(t))}catch(e){console.log("--- SettingsStore#generic@$<no_room> THREW ERROR: "+e.message),console.error(e)}for(const n of D){try{const o=I.getValueAt(n,e,t);console.log(`--- SettingsStore#${n}@${t||"<no_room>"} = ${JSON.stringify(o)}`)}catch(e){console.log(`--- SettingsStore#${n}@${t||"<no_room>"} THREW ERROR: ${e.message}`),console.error(e)}if(t)try{const t=I.getValueAt(n,e,null);console.log(`--- SettingsStore#${n}@<no_room> = ${JSON.stringify(t)}`)}catch(e){console.log(`--- SettingsStore#${n}@$<no_room> THREW ERROR: ${e.message}`),console.error(e)}}};o(e),n.invertedSettingName&&(console.log("--- TESTING INVERTED SETTING NAME"),console.log("--- inverted: "+n.invertedSettingName),o(n.invertedSettingName)),console.log("--- END DEBUG")}static getHandler(e,t){const n=I.getHandlers(e);return n[t]?n[t]:null}static getHandlers(e){if(!w.a[e])return{};const t={};for(const n of w.a[e].supportedLevels){if(!R[n])throw new Error("Unexpected level "+n);I.isLevelSupported(n)&&(t[n]=R[n])}return t.default||(t.default=R.default),t}}r()(I,"watchers",{}),r()(I,"monitors",{}),r()(I,"watcherCount",1),window.mxSettingsStore=I},function(e,t,n){"use strict";var o=n(95),r=n.n(o),i=n(83),a=n.n(i),s=n(82),c=n.n(s),l=n(148),d=n.n(l),u=n(92),h=n.n(u),p=n(120),m=n(89),g=n(125),f=n(87),_=n(86),b=n.n(_),v=n(84);class y extends c.a.Component{constructor(...e){super(...e),a()(this,"state",{component:null,error:null}),a()(this,"_onWrapperCancelClick",()=>{this.props.onFinished(!1)})}componentDidMount(){this._unmounted=!1,console.log("Starting load of AsyncWrapper for modal"),this.props.prom.then(e=>{if(this._unmounted)return;const t=e.default?e.default:e;this.setState({component:t})}).catch(e=>{console.warn("AsyncWrapper promise failed",e),this.setState({error:e})})}componentWillUnmount(){this._unmounted=!0}render(){if(this.state.component){const e=this.state.component;return c.a.createElement(e,this.props)}if(this.state.error){const e=f.getComponent("views.dialogs.BaseDialog"),t=f.getComponent("views.elements.DialogButtons");return c.a.createElement(e,{onFinished:this.props.onFinished,title:Object(v.a)("Error")},Object(v.a)("Unable to load! Check your network connectivity and try again."),c.a.createElement(t,{primaryButton:Object(v.a)("Dismiss"),onPrimaryButtonClick:this._onWrapperCancelClick,hasCancel:!1}))}{const e=f.getComponent("elements.Spinner");return c.a.createElement(e,null)}}}a()(y,"propTypes",{prom:b.a.object.isRequired});class E{constructor(){a()(this,"counter",0),a()(this,"priorityModal",null),a()(this,"staticModal",null),a()(this,"modals",[]),a()(this,"onBackgroundClick",()=>{const e=this.getCurrentModal();e&&(e.closeReason="backgroundClick",e.close(),e.closeReason=null)})}static getOrCreateContainer(){let e=document.getElementById("mx_Dialog_Container");return e||(e=document.createElement("div"),e.id="mx_Dialog_Container",document.body.appendChild(e)),e}static getOrCreateStaticContainer(){let e=document.getElementById("mx_Dialog_StaticContainer");return e||(e=document.createElement("div"),e.id="mx_Dialog_StaticContainer",document.body.appendChild(e)),e}toggleCurrentDialogVisibility(){const e=this.getCurrentModal();e&&(e.hidden=!e.hidden)}hasDialogs(){return this.priorityModal||this.staticModal||this.modals.length>0}createTrackedDialog(e,t,...n){return p.a.trackEvent("Modal",e,t),this.createDialog(...n)}appendTrackedDialog(e,t,...n){return p.a.trackEvent("Modal",e,t),this.appendDialog(...n)}createDialog(e,...t){return this.createDialogAsync(Promise.resolve(e),...t)}appendDialog(e,...t){return this.appendDialogAsync(Promise.resolve(e),...t)}createTrackedDialogAsync(e,t,...n){return p.a.trackEvent("Modal",e,t),this.createDialogAsync(...n)}appendTrackedDialogAsync(e,t,...n){return p.a.trackEvent("Modal",e,t),this.appendDialogAsync(...n)}closeCurrentModal(e){const t=this.getCurrentModal();t&&(t.closeReason=e,t.close())}buildModal(e,t,n,o){const i={onFinished:t?t.onFinished:null,onBeforeClose:o.onBeforeClose,beforeClosePromise:null,closeReason:null,className:n,elem:null,close:null},[a,s]=this.getCloseFn(i,t),l=this.counter++;return i.elem=c.a.createElement(y,r()({key:l,prom:e},t,{onFinished:a})),i.close=a,{modal:i,closeDialog:a,onFinishedProm:s}}getCloseFn(e,t){const n=Object(g.b)();return[async(...o)=>{if(e.beforeClosePromise)await e.beforeClosePromise;else if(e.onBeforeClose){e.beforeClosePromise=e.onBeforeClose(e.closeReason);const t=await e.beforeClosePromise;if(e.beforeClosePromise=null,!t)return}n.resolve(o),t&&t.onFinished&&t.onFinished.apply(null,o);const r=this.modals.indexOf(e);r>=0&&this.modals.splice(r,1),this.priorityModal===e&&(this.priorityModal=null,this.modals=[]),this.staticModal===e&&(this.staticModal=null,this.modals=[]),this.reRender()},n.promise]}createDialogAsync(e,t,n,o=!1,r=!1,i={}){const{modal:a,closeDialog:s,onFinishedProm:c}=this.buildModal(e,t,n,i);return o?this.priorityModal=a:r?this.staticModal=a:this.modals.unshift(a),this.reRender(),{close:s,finished:c}}appendDialogAsync(e,t,n){const{modal:o,closeDialog:r,onFinishedProm:i}=this.buildModal(e,t,n,{});return this.modals.push(o),this.reRender(),{close:r,finished:i}}getCurrentModal(){return this.priorityModal?this.priorityModal:this.modals[0]||this.staticModal}reRender(){if(0===this.modals.length&&!this.priorityModal&&!this.staticModal)return m.a.dispatch({action:"aria_unhide_main_app"}),d.a.unmountComponentAtNode(E.getOrCreateContainer()),void d.a.unmountComponentAtNode(E.getOrCreateStaticContainer());if(m.a.dispatch({action:"aria_hide_main_app"}),this.staticModal){const e=h()("mx_Dialog_wrapper mx_Dialog_staticWrapper",this.staticModal.className),t=c.a.createElement("div",{className:e},c.a.createElement("div",{className:"mx_Dialog"},this.staticModal.elem),c.a.createElement("div",{className:"mx_Dialog_background mx_Dialog_staticBackground",onClick:this.onBackgroundClick}));d.a.render(t,E.getOrCreateStaticContainer())}else d.a.unmountComponentAtNode(E.getOrCreateStaticContainer());const e=this.getCurrentModal();if(e===this.staticModal||e.hidden)d.a.unmountComponentAtNode(E.getOrCreateContainer());else{const t=h()("mx_Dialog_wrapper",e.className,{mx_Dialog_wrapperWithStaticUnder:this.staticModal}),n=c.a.createElement("div",{className:t},c.a.createElement("div",{className:"mx_Dialog"},e.elem),c.a.createElement("div",{className:"mx_Dialog_background",onClick:this.onBackgroundClick}));d.a.render(n,E.getOrCreateContainer())}}}window.singletonModalManager||(window.singletonModalManager=new E);t.a=window.singletonModalManager},function(e,t,n){var o;!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)&&o.length){var a=r.apply(null,o);a&&e.push(a)}else if("object"===i)for(var s in o)n.call(o,s)&&o[s]&&e.push(s)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(100),r=n.n(o),i=n(82),a=n.n(i),s=n(101),c=n(92),l=n.n(c);function d(e){let{element:t,onClick:n,children:o,kind:i,disabled:c,inputRef:d,className:u}=e,h=r()(e,["element","onClick","children","kind","disabled","inputRef","className"]);const p=h;return c||(p.onClick=n,p.onKeyDown=e=>{if(e.key===s.a.ENTER)return e.stopPropagation(),e.preventDefault(),n(e);e.key===s.a.SPACE&&(e.stopPropagation(),e.preventDefault())},p.onKeyUp=e=>{if(e.key===s.a.SPACE)return e.stopPropagation(),e.preventDefault(),n(e);e.key===s.a.ENTER&&(e.stopPropagation(),e.preventDefault())}),p.ref=d,p.className=l()("mx_AccessibleButton",u,{mx_AccessibleButton_hasKind:i,["mx_AccessibleButton_kind_"+i]:i,mx_AccessibleButton_disabled:c}),a.a.createElement(t,h,o)}d.defaultProps={element:"div",role:"button",tabIndex:0},d.displayName="AccessibleButton"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(83),r=n.n(o);const i={brand:"Element",integrations_ui_url:"https://scalar.vector.im/",integrations_rest_url:"https://scalar.vector.im/api",bug_report_endpoint_url:null,jitsi:{preferredDomain:"jitsi.riot.im"},desktopBuilds:{available:!0,logo:n(773),url:"https://element.io/get-started"}};class a{static setInstance(e){a.instance=e,window.mxReactSdkConfig=e}static get(){return a.instance||{}}static put(e){const t=Object.keys(i);for(let n=0;n<t.length;++n)void 0===e[t[n]]&&(e[t[n]]=i[t[n]]);a.setInstance(e)}static unset(){a.setInstance({})}static add(e){const t=a.get(),n=Object.assign({},t,e);a.put(n)}}r()(a,"instance",void 0)},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";let o;n.d(t,"a",(function(){return o})),function(e){e.ViewUser="view_user",e.ViewUserSettings="view_user_settings",e.ViewRoomDirectory="view_room_directory",e.RecheckTheme="recheck_theme",e.CheckUpdates="check_updates",e.FocusComposer="focus_composer",e.ToggleUserMenu="toggle_user_menu",e.UpdateFontSize="update_font_size",e.UpdateSystemFont="update_system_font",e.ViewRoomDelta="view_room_delta",e.SetRightPanelPhase="set_right_panel_phase",e.ToggleRightPanel="toggle_right_panel",e.AfterRightPanelPhaseChange="after_right_panel_phase_change",e.OpenDialPad="open_dial_pad",e.PstnSupportUpdated="pstn_support_updated",e.VirtualRoomSupportUpdated="virtual_room_support_updated",e.UploadStarted="upload_started",e.UploadProgress="upload_progress",e.UploadFinished="upload_finished",e.UploadFailed="upload_failed",e.UploadCanceled="upload_canceled"}(o||(o={}))},function(e,t,n){"use strict";var o=n(82);const r=Object(o.createContext)(void 0);r.displayName="MatrixClientContext",t.a=r},function(e,t,n){"use strict";let o;n.d(t,"a",(function(){return o})),function(e){e.DEVICE="device",e.ROOM_DEVICE="room-device",e.ROOM_ACCOUNT="room-account",e.ACCOUNT="account",e.ROOM="room",e.CONFIG="config",e.DEFAULT="default"}(o||(o={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var o=n(83),r=n.n(o),i=n(88);class a{constructor(e,t){if(this.prepared=e,r()(this,"client",void 0),this.client=null!=t?t:i.a.get(),!this.client)throw new Error("No possible MatrixClient for media resolution. Please provide one or log in.")}get isEncrypted(){return!!this.prepared.file}get srcMxc(){return this.prepared.mxc}get thumbnailMxc(){var e;return null===(e=this.prepared.thumbnail)||void 0===e?void 0:e.mxc}get hasThumbnail(){return!!this.thumbnailMxc}get srcHttp(){return this.client.mxcUrlToHttp(this.srcMxc)}get thumbnailHttp(){return this.hasThumbnail?this.client.mxcUrlToHttp(this.thumbnailMxc):null}getThumbnailHttp(e,t,n="scale"){return this.hasThumbnail?this.client.mxcUrlToHttp(this.thumbnailMxc,e,t,n):null}getThumbnailOfSourceHttp(e,t,n="scale"){return this.client.mxcUrlToHttp(this.srcMxc,e,t,n)}getSquareThumbnailHttp(e){return this.hasThumbnail?this.getThumbnailHttp(e,e,"crop"):this.getThumbnailOfSourceHttp(e,e,"crop")}downloadSource(){return fetch(this.srcHttp)}}function s(e,t){return new a(function(e){var t,n,o,r;let i=null;if(null!=e&&null!==(t=e.info)&&void 0!==t&&t.thumbnail_url?i={mxc:e.info.thumbnail_url,file:e.info.thumbnail_file}:null!=e&&null!==(n=e.info)&&void 0!==n&&null!==(o=n.thumbnail_file)&&void 0!==o&&o.url&&(i={mxc:e.info.thumbnail_file.url,file:e.info.thumbnail_file}),null!=e&&e.url)return{thumbnail:i,mxc:e.url,file:e.file};if(null!=e&&null!==(r=e.file)&&void 0!==r&&r.url)return{thumbnail:i,mxc:e.file.url,file:e.file};throw new Error("Invalid file provided: cannot determine MXC URI. Has it been redacted?")}(e),t)}function c(e,t){return s({url:e},t)}},function(e,t,n){var o=n(303);e.exports=function(e,t){if(null==e)return{};var n,r,i=o(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return a}));const o={HOME:"Home",END:"End",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",BACKSPACE:"Backspace",DELETE:"Delete",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",TAB:"Tab",ESCAPE:"Escape",ENTER:"Enter",ALT:"Alt",CONTROL:"Control",META:"Meta",SHIFT:"Shift",CONTEXT_MENU:"ContextMenu",COMMA:",",PERIOD:".",LESS_THAN:"<",GREATER_THAN:">",BACKTICK:"`",SPACE:" ",SLASH:"/",SQUARE_BRACKET_LEFT:"[",SQUARE_BRACKET_RIGHT:"]",A:"a",B:"b",C:"c",D:"d",E:"e",F:"f",G:"g",H:"h",I:"i",J:"j",K:"k",L:"l",M:"m",N:"n",O:"o",P:"p",Q:"q",R:"r",S:"s",T:"t",U:"u",V:"v",W:"w",X:"x",Y:"y",Z:"z"},r=navigator.platform.toUpperCase().indexOf("MAC")>=0;function i(e){return r?e.metaKey&&!e.altKey&&!e.ctrlKey&&!e.shiftKey:e.ctrlKey&&!e.altKey&&!e.metaKey&&!e.shiftKey}function a(e){return r?e.metaKey&&!e.altKey&&!e.ctrlKey:e.ctrlKey&&!e.altKey&&!e.metaKey}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return I})),n.d(t,"b",(function(){return A})),n.d(t,"p",(function(){return N})),n.d(t,"k",(function(){return F})),n.d(t,"l",(function(){return M})),n.d(t,"m",(function(){return P})),n.d(t,"q",(function(){return L})),n.d(t,"o",(function(){return j})),n.d(t,"n",(function(){return U}));var o=n(95),r=n.n(o),i=n(83),a=n.n(i),s=n(82),c=n.n(s),l=n(148),d=n.n(l),u=n(92),h=n.n(u),p=n(101),m=n(85),g=n(497);n.d(t,"c",(function(){return g.a}));var f=n(304);n.d(t,"d",(function(){return f.a}));var _=n(498);n.d(t,"e",(function(){return _.a}));var b=n(499);n.d(t,"f",(function(){return b.a}));var v=n(500);n.d(t,"g",(function(){return v.a}));var y=n(501);n.d(t,"h",(function(){return y.a}));var E=n(502);n.d(t,"i",(function(){return E.a}));var S,w,C,T,x=n(503);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n.d(t,"j",(function(){return x.a}));function R(){let e=document.getElementById("mx_ContextualMenu_Container");return e||(e=document.createElement("div"),e.id="mx_ContextualMenu_Container",document.body.appendChild(e)),e}const D=new Set(["menuitem","menuitemcheckbox","menuitemradio"]);let I;!function(e){e.Top="top",e.Bottom="bottom",e.Left="left",e.Right="right",e.None="none"}(I||(I={}));let A=Object(m.a)("structures.ContextMenu")((C=w=class extends c.a.PureComponent{constructor(t,n){super(t,n),a()(this,"initialFocus",void 0),a()(this,"collectContextMenuRect",e=>{if(!e)return;let t=e.querySelector('[role^="menuitem"]');t||(t=e.querySelector("[tab-index]")),t&&t.focus(),this.setState({contextMenuElem:e})}),a()(this,"onContextMenu",t=>{if(this.props.onFinished){this.props.onFinished(),t.preventDefault(),t.stopPropagation();const n=t.clientX,o=t.clientY;e(()=>{const e=document.createEvent("MouseEvents");e.initMouseEvent("contextmenu",!0,!0,window,0,0,0,n,o,!1,!1,!1,!1,0,null),document.elementFromPoint(n,o).dispatchEvent(e)})}}),a()(this,"onContextMenuPreventBubbling",e=>{e.stopPropagation()}),a()(this,"onFinished",e=>{e.stopPropagation(),e.preventDefault(),this.props.onFinished&&this.props.onFinished()}),a()(this,"onMoveFocus",(e,t)=>{let n=!1;do{const o=t?e.lastElementChild:e.firstElementChild,r=t?e.previousElementSibling:e.nextElementSibling;n?o?e=o:r?e=r:(n=!1,e=e.parentElement):r?(e=r,n=!0):e=e.parentElement,e&&e.classList.contains("mx_ContextualMenu")&&(e=t?e.lastElementChild:e.firstElementChild,n=!0)}while(e&&!D.has(e.getAttribute("role")));e&&e.focus()}),a()(this,"onMoveFocusHomeEnd",(e,t)=>{let n=e.querySelectorAll('[role^="menuitem"]');n||(n=e.querySelectorAll("[tab-index]")),n&&n.length&&(t?n[0].focus():n[n.length-1].focus())}),a()(this,"onKeyDown",e=>{if(!this.props.managed)return void(e.key===p.a.ESCAPE&&(this.props.onFinished(),e.stopPropagation(),e.preventDefault()));let t=!0;switch(e.key){case p.a.TAB:case p.a.ESCAPE:case p.a.ARROW_LEFT:case p.a.ARROW_RIGHT:this.props.onFinished();break;case p.a.ARROW_UP:this.onMoveFocus(e.target,!0);break;case p.a.ARROW_DOWN:this.onMoveFocus(e.target,!1);break;case p.a.HOME:this.onMoveFocusHomeEnd(this.state.contextMenuElem,!0);break;case p.a.END:this.onMoveFocusHomeEnd(this.state.contextMenuElem,!1);break;default:t=!1}t&&(e.stopPropagation(),e.preventDefault())}),this.state={contextMenuElem:null},this.initialFocus=document.activeElement}componentWillUnmount(){this.initialFocus.focus()}renderMenu(e=this.props.hasBackground){const t={},n=this.props;let o;n.top?t.top=n.top:t.bottom=n.bottom,n.left?(t.left=n.left,o=I.Left):(t.right=n.right,o=I.Right);const r=this.state.contextMenuElem?this.state.contextMenuElem.getBoundingClientRect():null,i={};n.chevronFace&&(o=n.chevronFace);const a=o&&o!==I.None;if(o===I.Top||o===I.Bottom)i.left=n.chevronOffset;else if(void 0!==t.top){const e=t.top;let o=e;if(r){const e=10;o=Math.min(t.top,document.body.clientHeight-r.height-e)}t.top=o,i.top=Math.max(n.chevronOffset,n.chevronOffset+e-o)}let s;a&&(s=c.a.createElement("div",{style:i,className:"mx_ContextualMenu_chevron_"+o}));const l=h()({mx_ContextualMenu:!0,mx_ContextualMenu_left:!a&&t.left,mx_ContextualMenu_right:!a&&t.right,mx_ContextualMenu_top:!a&&t.top,mx_ContextualMenu_bottom:!a&&t.bottom,mx_ContextualMenu_withChevron_left:o===I.Left,mx_ContextualMenu_withChevron_right:o===I.Right,mx_ContextualMenu_withChevron_top:o===I.Top,mx_ContextualMenu_withChevron_bottom:o===I.Bottom}),d={};n.menuWidth&&(d.width=n.menuWidth),n.menuHeight&&(d.height=n.menuHeight),isNaN(Number(n.menuPaddingTop))||(d.paddingTop=n.menuPaddingTop),isNaN(Number(n.menuPaddingLeft))||(d.paddingLeft=n.menuPaddingLeft),isNaN(Number(n.menuPaddingBottom))||(d.paddingBottom=n.menuPaddingBottom),isNaN(Number(n.menuPaddingRight))||(d.paddingRight=n.menuPaddingRight);const u={};let p;return isNaN(Number(n.zIndex))||(d.zIndex=n.zIndex+1,u.zIndex=n.zIndex),e&&(p=c.a.createElement("div",{className:"mx_ContextualMenu_background",style:u,onClick:this.onFinished,onContextMenu:this.onContextMenu})),c.a.createElement("div",{className:h()("mx_ContextualMenu_wrapper",this.props.wrapperClassName),style:k(k({},t),u),onKeyDown:this.onKeyDown,onContextMenu:this.onContextMenuPreventBubbling},c.a.createElement("div",{className:l,style:d,ref:this.collectContextMenuRect,role:this.props.managed?"menu":void 0},s,n.children),p)}render(){return d.a.createPortal(this.renderMenu(),R())}},a()(w,"defaultProps",{hasBackground:!0,managed:!0}),S=C))||S;const N=(e,t=12)=>{const n=e.right+window.pageXOffset+3;let o=e.top+e.height/2+window.pageYOffset;return o-=t+8,{left:n,top:o,chevronOffset:t}},F=(e,t=I.None,n=0)=>{const o={chevronFace:t},r=e.right+window.pageXOffset,i=e.bottom+window.pageYOffset,a=e.top+window.pageYOffset;return o.right=window.innerWidth-r,i<window.innerHeight/2?o.top=i+n:o.bottom=window.innerHeight-a+n,o},M=(e,t=I.None,n=0)=>{const o={chevronFace:t},r=e.right+window.pageXOffset,i=e.bottom+window.pageYOffset,a=e.top+window.pageYOffset;return o.right=window.innerWidth-r,i<window.innerHeight/2?o.top=i+n:o.bottom=window.innerHeight-a+n,o},P=(e,t=I.None,n=0)=>{const o={chevronFace:t},r=e.left+window.pageXOffset,i=e.top+window.pageYOffset;return o.left=r,o.bottom=window.innerHeight-i+n,o},L=()=>{const e=Object(s.useRef)(null),[t,n]=Object(s.useState)(!1);return[t,e,()=>{n(!0)},()=>{n(!1)},n]};let j=Object(m.a)("structures.LegacyContextMenu")(T=class extends A{render(){return this.renderMenu(!1)}})||T;function U(e,t){const n=function(...e){d.a.unmountComponentAtNode(R()),t&&t.onFinished&&t.onFinished.apply(null,e)},o=c.a.createElement(j,r()({},t,{onFinished:n,windowResize:n}),c.a.createElement(e,r()({},t,{onFinished:n})));return d.a.render(o,R()),{close:n}}}).call(this,n(160).setImmediate)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return l}));var o=n(7),r=n(1),i=n(0);const a={NOT_SENT:"not_sent",ENCRYPTING:"encrypting",SENDING:"sending",QUEUED:"queued",SENT:"sent",CANCELLED:"cancelled"},s={};function c(e){return s[e]||(s[e]=e),s[e]}const l=function(e){["state_key","type","sender","room_id","membership"].forEach(t=>{e[t]&&(e[t]=c(e[t]))}),["membership","avatar_url","displayname"].forEach(t=>{e.content&&e.content[t]&&(e.content[t]=c(e.content[t]))}),["rel_type"].forEach(t=>{e.content&&e.content["m.relates_to"]&&e.content["m.relates_to"][t]&&(e.content["m.relates_to"][t]=c(e.content["m.relates_to"][t]))}),this.event=e||{},this.sender=null,this.target=null,this.status=null,this.error=null,this.forwardLooking=!0,this._pushActions=null,this._replacingEvent=null,this._localRedactionEvent=null,this._isCancelled=!1,this._clearEvent={},this._senderCurve25519Key=null,this._claimedEd25519Key=null,this._forwardingCurve25519KeyChain=[],this._untrusted=null,this._decryptionPromise=null,this._retryDecryption=!1,this.verificationRequest=null,this._txnId=e.txn_id||null,this._localTimestamp=Date.now()-this.getAge()};r.p(l,o.EventEmitter),r.j(l.prototype,{getId:function(){return this.event.event_id},getSender:function(){return this.event.sender||this.event.user_id},getType:function(){return this._clearEvent.type||this.event.type},getWireType:function(){return this.event.type},getRoomId:function(){return this.event.room_id},getTs:function(){return this.event.origin_server_ts},getDate:function(){return this.event.origin_server_ts?new Date(this.event.origin_server_ts):null},getOriginalContent:function(){return this._localRedactionEvent?{}:this._clearEvent.content||this.event.content||{}},getContent:function(){return this._localRedactionEvent?{}:this._replacingEvent?this._replacingEvent.getContent()["m.new_content"]||{}:this.getOriginalContent()},getWireContent:function(){return this.event.content||{}},getPrevContent:function(){return this.getUnsigned().prev_content||this.event.prev_content||{}},getDirectionalContent:function(){return this.forwardLooking?this.getContent():this.getPrevContent()},getAge:function(){return this.getUnsigned().age||this.event.age},getLocalAge:function(){return Date.now()-this._localTimestamp},getStateKey:function(){return this.event.state_key},isState:function(){return void 0!==this.event.state_key},makeEncrypted:function(e,t,n,o){this._clearEvent={type:this.event.type,content:this.event.content},this.event.type=e,this.event.content=t,this._senderCurve25519Key=n,this._claimedEd25519Key=o},isBeingDecrypted:function(){return null!=this._decryptionPromise},isDecryptionFailure:function(){return this._clearEvent&&this._clearEvent.content&&"m.bad.encrypted"===this._clearEvent.content.msgtype},attemptDecryption:async function(e,t){if(!this.isEncrypted())throw new Error("Attempt to decrypt event which isn't encrypted");if(this._clearEvent&&this._clearEvent.content&&"m.bad.encrypted"!==this._clearEvent.content.msgtype)throw new Error("Attempt to decrypt event which has already been decrypted");return this._decryptionPromise?(i.a.log(`Event ${this.getId()} already being decrypted; queueing a retry`),this._retryDecryption=!0,this._decryptionPromise):(this._decryptionPromise=this._decryptionLoop(e,t),this._decryptionPromise)},cancelAndResendKeyRequest:function(e,t){const n=this.getWireContent();return e.requestRoomKey({algorithm:n.algorithm,room_id:this.getRoomId(),session_id:n.session_id,sender_key:n.sender_key},this.getKeyRequestRecipients(t),!0)},getKeyRequestRecipients:function(e){const t=this.getWireContent(),n=[{userId:e,deviceId:"*"}],o=this.getSender();return o!==e&&n.push({userId:o,deviceId:t.device_id}),n},_decryptionLoop:async function(e,t){for(await Promise.resolve();;){let n,o;this._retryDecryption=!1;try{e?(n=await e.decryptEvent(this),t&&i.a.info(`Decrypted event on retry (id=${this.getId()})`)):n=this._badEncryptedMessage("Encryption not enabled")}catch(e){if("DecryptionError"!==e.name){const n=t?"re":"";return i.a.error(`Error ${n}decrypting event (id=${this.getId()}): ${e.stack||e}`),this._decryptionPromise=null,void(this._retryDecryption=!1)}if(o=e,this._retryDecryption){i.a.log(`Got error decrypting event (id=${this.getId()}: `+e+"), but retrying");continue}i.a.warn(`Error decrypting event (id=${this.getId()}): ${e.detailedString}`),n=this._badEncryptedMessage(e.message)}return this._decryptionPromise=null,this._retryDecryption=!1,this._setClearData(n),this.setPushActions(null),void this.emit("Event.decrypted",this,o)}},_badEncryptedMessage:function(e){return{clearEvent:{type:"m.room.message",content:{msgtype:"m.bad.encrypted",body:"** Unable to decrypt: "+e+" **"}}}},_setClearData:function(e){this._clearEvent=e.clearEvent,this._senderCurve25519Key=e.senderCurve25519Key||null,this._claimedEd25519Key=e.claimedEd25519Key||null,this._forwardingCurve25519KeyChain=e.forwardingCurve25519KeyChain||[],this._untrusted=e.untrusted||!1},getClearContent:function(){const e=this._clearEvent;return e&&e.content?e.content:null},isEncrypted:function(){return!this.isState()&&"m.room.encrypted"===this.event.type},getSenderKey:function(){return this._senderCurve25519Key},getKeysClaimed:function(){return{ed25519:this._claimedEd25519Key}},getClaimedEd25519Key:function(){return this._claimedEd25519Key},getForwardingCurve25519KeyChain:function(){return this._forwardingCurve25519KeyChain},isKeySourceUntrusted:function(){return this._untrusted},getUnsigned:function(){return this.event.unsigned||{}},unmarkLocallyRedacted:function(){const e=this._localRedactionEvent;return this._localRedactionEvent=null,this.event.unsigned&&(this.event.unsigned.redacted_because=null),!!e},markLocallyRedacted:function(e){this._localRedactionEvent||(this.emit("Event.beforeRedaction",this,e),this._localRedactionEvent=e,this.event.unsigned||(this.event.unsigned={}),this.event.unsigned.redacted_because=e.event)},makeRedacted:function(e){if(!e.event)throw new Error("invalid redaction_event in makeRedacted");let t;for(t in this._localRedactionEvent=null,this.emit("Event.beforeRedaction",this,e),this._replacingEvent=null,this.event.unsigned||(this.event.unsigned={}),this.event.unsigned.redacted_because=e.event,this.event)this.event.hasOwnProperty(t)&&(d[t]||delete this.event[t]);const n=u[this.getType()]||{},o=this.getContent();for(t in o)o.hasOwnProperty(t)&&(n[t]||delete o[t])},isRedacted:function(){return Boolean(this.getUnsigned().redacted_because)},isRedaction:function(){return"m.room.redaction"===this.getType()},getRedactionEvent:function(){return this.isRedacted()?this._clearEvent.unsigned?this._clearEvent.unsigned.redacted_because:this.event.unsigned.redacted_because?this.event.unsigned.redacted_because:{}:null},getPushActions:function(){return this._pushActions},setPushActions:function(e){this._pushActions=e},handleRemoteEcho:function(e){const t=this.getUnsigned(),n=this.getId();this.event=e,t.redacted_because&&(this.event.unsigned||(this.event.unsigned={}),this.event.unsigned.redacted_because=t.redacted_because),this.setStatus(null),this.getId()!==n&&this.emit("Event.localEventIdReplaced",this)},isSending(){return!!this.status},setStatus(e){this.status=e,this.emit("Event.status",this,e)},replaceLocalEventId(e){this.event.event_id=e,this.emit("Event.localEventIdReplaced",this)},isRelation(e){const t=this.getWireContent(),n=t&&t["m.relates_to"];return n&&n.rel_type&&n.event_id&&(e&&n.rel_type===e||!e)},getRelation(){return this.isRelation()?this.getWireContent()["m.relates_to"]:null},makeReplaced(e){this.isRedacted()&&e||this._replacingEvent!==e&&(this._replacingEvent=e,this.emit("Event.replaced",this))},getAssociatedStatus(){return this._replacingEvent?this._replacingEvent.status:this._localRedactionEvent?this._localRedactionEvent.status:this.status},getServerAggregatedRelation(e){const t=this.getUnsigned()["m.relations"];if(t)return t[e]},replacingEventId(){const e=this.getServerAggregatedRelation("m.replace");return e?e.event_id:this._replacingEvent?this._replacingEvent.getId():void 0},replacingEvent(){return this._replacingEvent},replacingEventDate(){const e=this.getServerAggregatedRelation("m.replace");if(e){const t=e.origin_server_ts;if(Number.isFinite(t))return new Date(t)}else if(this._replacingEvent)return this._replacingEvent.getDate()},localRedactionEvent(){return this._localRedactionEvent},getAssociatedId(){const e=this.getRelation();return e?e.event_id:this.isRedaction()?this.event.redacts:void 0},hasAssocation(){return!!this.getAssociatedId()},updateAssociatedId(e){const t=this.getRelation();t?t.event_id=e:this.isRedaction()&&(this.event.redacts=e)},flagCancelled(e=!0){this._isCancelled=e},isCancelled(){return this._isCancelled},toJSON(){const e={type:this.getType(),sender:this.getSender(),content:this.getContent(),event_id:this.getId(),origin_server_ts:this.getTs(),unsigned:this.getUnsigned(),room_id:this.getRoomId()};return this.isRedaction()&&(e.redacts=this.event.redacts),this.isEncrypted()?{decrypted:e,encrypted:this.event}:e},setVerificationRequest:function(e){this.verificationRequest=e},setTxnId(e){this._txnId=e},getTxnId(){return this._txnId}});const d=["event_id","type","room_id","user_id","sender","state_key","prev_state","content","unsigned","origin_server_ts"].reduce((function(e,t){return e[t]=1,e}),{}),u={"m.room.member":{membership:1},"m.room.create":{creator:1},"m.room.join_rules":{join_rule:1},"m.room.power_levels":{ban:1,events:1,events_default:1,kick:1,redact:1,state_default:1,users:1,users_default:1},"m.room.aliases":{aliases:1}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(100),r=n.n(o),i=n(83),a=n.n(i),s=n(82),c=n.n(s),l=n(92),d=n.n(l),u=n(87),h=n(105);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}let g=1;class f extends c.a.PureComponent{constructor(e){super(e),a()(this,"id",void 0),a()(this,"input",void 0),a()(this,"validateOnChange",Object(h.debounce)(()=>{this.validate({focused:!0})},200)),a()(this,"onFocus",e=>{this.setState({focused:!0}),this.props.validateOnFocus&&this.validate({focused:!0}),this.props.onFocus&&this.props.onFocus(e)}),a()(this,"onChange",e=>{this.props.validateOnChange&&this.validateOnChange(),this.props.onChange&&this.props.onChange(e)}),a()(this,"onBlur",e=>{this.setState({focused:!1}),this.props.validateOnBlur&&this.validate({focused:!1}),this.props.onBlur&&this.props.onBlur(e)}),this.state={valid:void 0,feedback:void 0,feedbackVisible:!1,focused:!1},this.id=this.props.id||"mx_Field_"+g++}focus(){this.input.focus()}async validate({focused:e,allowEmpty:t=!0}){if(!this.props.onValidate)return;const n=this.input?this.input.value:null,{valid:o,feedback:r}=await this.props.onValidate({value:n,focused:e,allowEmpty:t});return this.state.focused&&r?this.setState({valid:o,feedback:r,feedbackVisible:!0}):this.setState({valid:o,feedbackVisible:!1}),o}render(){const e=this.props,{element:t,prefixComponent:n,postfixComponent:o,className:i,onValidate:a,children:s,tooltipContent:l,forceValidity:h,tooltipClassName:p,list:g,validateOnBlur:f,validateOnChange:_,validateOnFocus:b}=e,v=r()(e,["element","prefixComponent","postfixComponent","className","onValidate","children","tooltipContent","forceValidity","tooltipClassName","list","validateOnBlur","validateOnChange","validateOnFocus"]);v.placeholder=v.placeholder||v.label,v.id=this.id,v.onFocus=this.onFocus,v.onChange=this.onChange,v.onBlur=this.onBlur;const y=m(m({},v),{},{ref:e=>this.input=e,list:g}),E=c.a.createElement(this.props.element,y,s);let S=null;n&&(S=c.a.createElement("span",{className:"mx_Field_prefix"},n));let w=null;o&&(w=c.a.createElement("span",{className:"mx_Field_postfix"},o));const C=null!=h,T=d()("mx_Field","mx_Field_"+this.props.element,i,{mx_Field_labelAlwaysTopLeft:n,mx_Field_valid:C?h:a&&!0===this.state.valid,mx_Field_invalid:C?!h:a&&!1===this.state.valid}),x=u.getComponent("elements.Tooltip");let O;return(l||this.state.feedback)&&(O=c.a.createElement(x,{tooltipClassName:d()("mx_Field_tooltip",p),visible:this.state.focused&&this.props.forceTooltipVisible||this.state.feedbackVisible,label:l||this.state.feedback,alignment:x.Alignment.Right})),c.a.createElement("div",{className:T},S,E,c.a.createElement("label",{htmlFor:this.id},this.props.label),w,O)}}a()(f,"defaultProps",{element:"input",type:"text",validateOnFocus:!0,validateOnBlur:!0,validateOnChange:!0})},function(e,t,n){(function(e,o){var r;(function(){var i="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],c="[object Arguments]",l="[object Array]",d="[object Boolean]",u="[object Date]",h="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",f="[object Number]",_="[object Object]",b="[object RegExp]",v="[object Set]",y="[object String]",E="[object Symbol]",S="[object WeakMap]",w="[object ArrayBuffer]",C="[object DataView]",T="[object Float32Array]",x="[object Float64Array]",O="[object Int8Array]",k="[object Int16Array]",R="[object Int32Array]",D="[object Uint8Array]",I="[object Uint16Array]",A="[object Uint32Array]",N=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,P=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,j=RegExp(P.source),U=RegExp(L.source),B=/<%-([\s\S]+?)%>/g,q=/<%([\s\S]+?)%>/g,G=/<%=([\s\S]+?)%>/g,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K=/[\\^$.*+?()[\]{}|]/g,W=RegExp(K.source),Y=/^\s+|\s+$/g,$=/^\s+/,Q=/\s+$/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,oe=/\w*$/,re=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ce=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,de=/($^)/,ue=/['\n\r\u2028\u2029\\]/g,he="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",me="[\\ud800-\\udfff]",ge="["+pe+"]",fe="["+he+"]",_e="\\d+",be="[\\u2700-\\u27bf]",ve="[a-z\\xdf-\\xf6\\xf8-\\xff]",ye="[^\\ud800-\\udfff"+pe+_e+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Ee="\\ud83c[\\udffb-\\udfff]",Se="[^\\ud800-\\udfff]",we="(?:\\ud83c[\\udde6-\\uddff]){2}",Ce="[\\ud800-\\udbff][\\udc00-\\udfff]",Te="[A-Z\\xc0-\\xd6\\xd8-\\xde]",xe="(?:"+ve+"|"+ye+")",Oe="(?:"+Te+"|"+ye+")",ke="(?:"+fe+"|"+Ee+")"+"?",Re="[\\ufe0e\\ufe0f]?"+ke+("(?:\\u200d(?:"+[Se,we,Ce].join("|")+")[\\ufe0e\\ufe0f]?"+ke+")*"),De="(?:"+[be,we,Ce].join("|")+")"+Re,Ie="(?:"+[Se+fe+"?",fe,we,Ce,me].join("|")+")",Ae=RegExp("['’]","g"),Ne=RegExp(fe,"g"),Fe=RegExp(Ee+"(?="+Ee+")|"+Ie+Re,"g"),Me=RegExp([Te+"?"+ve+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ge,Te,"$"].join("|")+")",Oe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ge,Te+xe,"$"].join("|")+")",Te+"?"+xe+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Te+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_e,De].join("|"),"g"),Pe=RegExp("[\\u200d\\ud800-\\udfff"+he+"\\ufe0e\\ufe0f]"),Le=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,je=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ue=-1,Be={};Be[T]=Be[x]=Be[O]=Be[k]=Be[R]=Be[D]=Be["[object Uint8ClampedArray]"]=Be[I]=Be[A]=!0,Be[c]=Be[l]=Be[w]=Be[d]=Be[C]=Be[u]=Be[h]=Be[p]=Be[g]=Be[f]=Be[_]=Be[b]=Be[v]=Be[y]=Be[S]=!1;var qe={};qe[c]=qe[l]=qe[w]=qe[C]=qe[d]=qe[u]=qe[T]=qe[x]=qe[O]=qe[k]=qe[R]=qe[g]=qe[f]=qe[_]=qe[b]=qe[v]=qe[y]=qe[E]=qe[D]=qe["[object Uint8ClampedArray]"]=qe[I]=qe[A]=!0,qe[h]=qe[p]=qe[S]=!1;var Ge={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ve=parseFloat,He=parseInt,ze="object"==typeof e&&e&&e.Object===Object&&e,Ke="object"==typeof self&&self&&self.Object===Object&&self,We=ze||Ke||Function("return this")(),Ye=t&&!t.nodeType&&t,$e=Ye&&"object"==typeof o&&o&&!o.nodeType&&o,Qe=$e&&$e.exports===Ye,Je=Qe&&ze.process,Xe=function(){try{var e=$e&&$e.require&&$e.require("util").types;return e||Je&&Je.binding&&Je.binding("util")}catch(e){}}(),Ze=Xe&&Xe.isArrayBuffer,et=Xe&&Xe.isDate,tt=Xe&&Xe.isMap,nt=Xe&&Xe.isRegExp,ot=Xe&&Xe.isSet,rt=Xe&&Xe.isTypedArray;function it(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,o){for(var r=-1,i=null==e?0:e.length;++r<i;){var a=e[r];t(o,a,n(a),e)}return o}function st(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e}function ct(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(!t(e[n],n,e))return!1;return!0}function dt(e,t){for(var n=-1,o=null==e?0:e.length,r=0,i=[];++n<o;){var a=e[n];t(a,n,e)&&(i[r++]=a)}return i}function ut(e,t){return!!(null==e?0:e.length)&&Et(e,t,0)>-1}function ht(e,t,n){for(var o=-1,r=null==e?0:e.length;++o<r;)if(n(t,e[o]))return!0;return!1}function pt(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r}function mt(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e}function gt(e,t,n,o){var r=-1,i=null==e?0:e.length;for(o&&i&&(n=e[++r]);++r<i;)n=t(n,e[r],r,e);return n}function ft(e,t,n,o){var r=null==e?0:e.length;for(o&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function _t(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1}var bt=Tt("length");function vt(e,t,n){var o;return n(e,(function(e,n,r){if(t(e,n,r))return o=n,!1})),o}function yt(e,t,n,o){for(var r=e.length,i=n+(o?1:-1);o?i--:++i<r;)if(t(e[i],i,e))return i;return-1}function Et(e,t,n){return t==t?function(e,t,n){var o=n-1,r=e.length;for(;++o<r;)if(e[o]===t)return o;return-1}(e,t,n):yt(e,wt,n)}function St(e,t,n,o){for(var r=n-1,i=e.length;++r<i;)if(o(e[r],t))return r;return-1}function wt(e){return e!=e}function Ct(e,t){var n=null==e?0:e.length;return n?kt(e,t)/n:NaN}function Tt(e){return function(t){return null==t?void 0:t[e]}}function xt(e){return function(t){return null==e?void 0:e[t]}}function Ot(e,t,n,o,r){return r(e,(function(e,r,i){n=o?(o=!1,e):t(n,e,r,i)})),n}function kt(e,t){for(var n,o=-1,r=e.length;++o<r;){var i=t(e[o]);void 0!==i&&(n=void 0===n?i:n+i)}return n}function Rt(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o}function Dt(e){return function(t){return e(t)}}function It(e,t){return pt(t,(function(t){return e[t]}))}function At(e,t){return e.has(t)}function Nt(e,t){for(var n=-1,o=e.length;++n<o&&Et(t,e[n],0)>-1;);return n}function Ft(e,t){for(var n=e.length;n--&&Et(t,e[n],0)>-1;);return n}function Mt(e,t){for(var n=e.length,o=0;n--;)e[n]===t&&++o;return o}var Pt=xt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Lt=xt({"&":"&","<":"<",">":">",'"':""","'":"'"});function jt(e){return"\\"+Ge[e]}function Ut(e){return Pe.test(e)}function Bt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n}function qt(e,t){return function(n){return e(t(n))}}function Gt(e,t){for(var n=-1,o=e.length,r=0,i=[];++n<o;){var s=e[n];s!==t&&s!==a||(e[n]=a,i[r++]=n)}return i}function Vt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Ht(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function zt(e){return Ut(e)?function(e){var t=Fe.lastIndex=0;for(;Fe.test(e);)++t;return t}(e):bt(e)}function Kt(e){return Ut(e)?function(e){return e.match(Fe)||[]}(e):function(e){return e.split("")}(e)}var Wt=xt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Yt=function e(t){var n,o=(t=null==t?We:Yt.defaults(We.Object(),t,Yt.pick(We,je))).Array,r=t.Date,he=t.Error,pe=t.Function,me=t.Math,ge=t.Object,fe=t.RegExp,_e=t.String,be=t.TypeError,ve=o.prototype,ye=pe.prototype,Ee=ge.prototype,Se=t["__core-js_shared__"],we=ye.toString,Ce=Ee.hasOwnProperty,Te=0,xe=(n=/[^.]+$/.exec(Se&&Se.keys&&Se.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Oe=Ee.toString,ke=we.call(ge),Re=We._,De=fe("^"+we.call(Ce).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ie=Qe?t.Buffer:void 0,Fe=t.Symbol,Pe=t.Uint8Array,Ge=Ie?Ie.allocUnsafe:void 0,ze=qt(ge.getPrototypeOf,ge),Ke=ge.create,Ye=Ee.propertyIsEnumerable,$e=ve.splice,Je=Fe?Fe.isConcatSpreadable:void 0,Xe=Fe?Fe.iterator:void 0,bt=Fe?Fe.toStringTag:void 0,xt=function(){try{var e=ei(ge,"defineProperty");return e({},"",{}),e}catch(e){}}(),$t=t.clearTimeout!==We.clearTimeout&&t.clearTimeout,Qt=r&&r.now!==We.Date.now&&r.now,Jt=t.setTimeout!==We.setTimeout&&t.setTimeout,Xt=me.ceil,Zt=me.floor,en=ge.getOwnPropertySymbols,tn=Ie?Ie.isBuffer:void 0,nn=t.isFinite,on=ve.join,rn=qt(ge.keys,ge),an=me.max,sn=me.min,cn=r.now,ln=t.parseInt,dn=me.random,un=ve.reverse,hn=ei(t,"DataView"),pn=ei(t,"Map"),mn=ei(t,"Promise"),gn=ei(t,"Set"),fn=ei(t,"WeakMap"),_n=ei(ge,"create"),bn=fn&&new fn,vn={},yn=Oi(hn),En=Oi(pn),Sn=Oi(mn),wn=Oi(gn),Cn=Oi(fn),Tn=Fe?Fe.prototype:void 0,xn=Tn?Tn.valueOf:void 0,On=Tn?Tn.toString:void 0;function kn(e){if(Ha(e)&&!Na(e)&&!(e instanceof An)){if(e instanceof In)return e;if(Ce.call(e,"__wrapped__"))return ki(e)}return new In(e)}var Rn=function(){function e(){}return function(t){if(!Va(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Dn(){}function In(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function An(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Fn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Mn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Pn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Mn;++t<n;)this.add(e[t])}function Ln(e){var t=this.__data__=new Fn(e);this.size=t.size}function jn(e,t){var n=Na(e),o=!n&&Aa(e),r=!n&&!o&&La(e),i=!n&&!o&&!r&&Xa(e),a=n||o||r||i,s=a?Rt(e.length,_e):[],c=s.length;for(var l in e)!t&&!Ce.call(e,l)||a&&("length"==l||r&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||si(l,c))||s.push(l);return s}function Un(e){var t=e.length;return t?e[Lo(0,t-1)]:void 0}function Bn(e,t){return Ci(br(e),$n(t,0,e.length))}function qn(e){return Ci(br(e))}function Gn(e,t,n){(void 0!==n&&!Ra(e[t],n)||void 0===n&&!(t in e))&&Wn(e,t,n)}function Vn(e,t,n){var o=e[t];Ce.call(e,t)&&Ra(o,n)&&(void 0!==n||t in e)||Wn(e,t,n)}function Hn(e,t){for(var n=e.length;n--;)if(Ra(e[n][0],t))return n;return-1}function zn(e,t,n,o){return eo(e,(function(e,r,i){t(o,e,n(e),i)})),o}function Kn(e,t){return e&&vr(t,ys(t),e)}function Wn(e,t,n){"__proto__"==t&&xt?xt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Yn(e,t){for(var n=-1,r=t.length,i=o(r),a=null==e;++n<r;)i[n]=a?void 0:gs(e,t[n]);return i}function $n(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Qn(e,t,n,o,r,i){var a,s=1&t,l=2&t,h=4&t;if(n&&(a=r?n(e,o,r,i):n(e)),void 0!==a)return a;if(!Va(e))return e;var S=Na(e);if(S){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ce.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return br(e,a)}else{var N=oi(e),F=N==p||N==m;if(La(e))return hr(e,s);if(N==_||N==c||F&&!r){if(a=l||F?{}:ii(e),!s)return l?function(e,t){return vr(e,ni(e),t)}(e,function(e,t){return e&&vr(t,Es(t),e)}(a,e)):function(e,t){return vr(e,ti(e),t)}(e,Kn(a,e))}else{if(!qe[N])return r?e:{};a=function(e,t,n){var o=e.constructor;switch(t){case w:return pr(e);case d:case u:return new o(+e);case C:return function(e,t){var n=t?pr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case T:case x:case O:case k:case R:case D:case"[object Uint8ClampedArray]":case I:case A:return mr(e,n);case g:return new o;case f:case y:return new o(e);case b:return function(e){var t=new e.constructor(e.source,oe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case v:return new o;case E:return r=e,xn?ge(xn.call(r)):{}}var r}(e,N,s)}}i||(i=new Ln);var M=i.get(e);if(M)return M;i.set(e,a),$a(e)?e.forEach((function(o){a.add(Qn(o,t,n,o,e,i))})):za(e)&&e.forEach((function(o,r){a.set(r,Qn(o,t,n,r,e,i))}));var P=S?void 0:(h?l?Wr:Kr:l?Es:ys)(e);return st(P||e,(function(o,r){P&&(o=e[r=o]),Vn(a,r,Qn(o,t,n,r,e,i))})),a}function Jn(e,t,n){var o=n.length;if(null==e)return!o;for(e=ge(e);o--;){var r=n[o],i=t[r],a=e[r];if(void 0===a&&!(r in e)||!i(a))return!1}return!0}function Xn(e,t,n){if("function"!=typeof e)throw new be(i);return yi((function(){e.apply(void 0,n)}),t)}function Zn(e,t,n,o){var r=-1,i=ut,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=pt(t,Dt(n))),o?(i=ht,a=!1):t.length>=200&&(i=At,a=!1,t=new Pn(t));e:for(;++r<s;){var d=e[r],u=null==n?d:n(d);if(d=o||0!==d?d:0,a&&u==u){for(var h=l;h--;)if(t[h]===u)continue e;c.push(d)}else i(t,u,o)||c.push(d)}return c}kn.templateSettings={escape:B,evaluate:q,interpolate:G,variable:"",imports:{_:kn}},kn.prototype=Dn.prototype,kn.prototype.constructor=kn,In.prototype=Rn(Dn.prototype),In.prototype.constructor=In,An.prototype=Rn(Dn.prototype),An.prototype.constructor=An,Nn.prototype.clear=function(){this.__data__=_n?_n(null):{},this.size=0},Nn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Nn.prototype.get=function(e){var t=this.__data__;if(_n){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ce.call(t,e)?t[e]:void 0},Nn.prototype.has=function(e){var t=this.__data__;return _n?void 0!==t[e]:Ce.call(t,e)},Nn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=_n&&void 0===t?"__lodash_hash_undefined__":t,this},Fn.prototype.clear=function(){this.__data__=[],this.size=0},Fn.prototype.delete=function(e){var t=this.__data__,n=Hn(t,e);return!(n<0)&&(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,!0)},Fn.prototype.get=function(e){var t=this.__data__,n=Hn(t,e);return n<0?void 0:t[n][1]},Fn.prototype.has=function(e){return Hn(this.__data__,e)>-1},Fn.prototype.set=function(e,t){var n=this.__data__,o=Hn(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this},Mn.prototype.clear=function(){this.size=0,this.__data__={hash:new Nn,map:new(pn||Fn),string:new Nn}},Mn.prototype.delete=function(e){var t=Xr(this,e).delete(e);return this.size-=t?1:0,t},Mn.prototype.get=function(e){return Xr(this,e).get(e)},Mn.prototype.has=function(e){return Xr(this,e).has(e)},Mn.prototype.set=function(e,t){var n=Xr(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this},Pn.prototype.add=Pn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Pn.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.clear=function(){this.__data__=new Fn,this.size=0},Ln.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ln.prototype.get=function(e){return this.__data__.get(e)},Ln.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Fn){var o=n.__data__;if(!pn||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Mn(o)}return n.set(e,t),this.size=n.size,this};var eo=Sr(co),to=Sr(lo,!0);function no(e,t){var n=!0;return eo(e,(function(e,o,r){return n=!!t(e,o,r)})),n}function oo(e,t,n){for(var o=-1,r=e.length;++o<r;){var i=e[o],a=t(i);if(null!=a&&(void 0===s?a==a&&!Ja(a):n(a,s)))var s=a,c=i}return c}function ro(e,t){var n=[];return eo(e,(function(e,o,r){t(e,o,r)&&n.push(e)})),n}function io(e,t,n,o,r){var i=-1,a=e.length;for(n||(n=ai),r||(r=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?io(s,t-1,n,o,r):mt(r,s):o||(r[r.length]=s)}return r}var ao=wr(),so=wr(!0);function co(e,t){return e&&ao(e,t,ys)}function lo(e,t){return e&&so(e,t,ys)}function uo(e,t){return dt(t,(function(t){return Ba(e[t])}))}function ho(e,t){for(var n=0,o=(t=cr(t,e)).length;null!=e&&n<o;)e=e[xi(t[n++])];return n&&n==o?e:void 0}function po(e,t,n){var o=t(e);return Na(e)?o:mt(o,n(e))}function mo(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":bt&&bt in ge(e)?function(e){var t=Ce.call(e,bt),n=e[bt];try{e[bt]=void 0;var o=!0}catch(e){}var r=Oe.call(e);o&&(t?e[bt]=n:delete e[bt]);return r}(e):function(e){return Oe.call(e)}(e)}function go(e,t){return e>t}function fo(e,t){return null!=e&&Ce.call(e,t)}function _o(e,t){return null!=e&&t in ge(e)}function bo(e,t,n){for(var r=n?ht:ut,i=e[0].length,a=e.length,s=a,c=o(a),l=1/0,d=[];s--;){var u=e[s];s&&t&&(u=pt(u,Dt(t))),l=sn(u.length,l),c[s]=!n&&(t||i>=120&&u.length>=120)?new Pn(s&&u):void 0}u=e[0];var h=-1,p=c[0];e:for(;++h<i&&d.length<l;){var m=u[h],g=t?t(m):m;if(m=n||0!==m?m:0,!(p?At(p,g):r(d,g,n))){for(s=a;--s;){var f=c[s];if(!(f?At(f,g):r(e[s],g,n)))continue e}p&&p.push(g),d.push(m)}}return d}function vo(e,t,n){var o=null==(e=fi(e,t=cr(t,e)))?e:e[xi(Ui(t))];return null==o?void 0:it(o,e,n)}function yo(e){return Ha(e)&&mo(e)==c}function Eo(e,t,n,o,r){return e===t||(null==e||null==t||!Ha(e)&&!Ha(t)?e!=e&&t!=t:function(e,t,n,o,r,i){var a=Na(e),s=Na(t),p=a?l:oi(e),m=s?l:oi(t),S=(p=p==c?_:p)==_,T=(m=m==c?_:m)==_,x=p==m;if(x&&La(e)){if(!La(t))return!1;a=!0,S=!1}if(x&&!S)return i||(i=new Ln),a||Xa(e)?Hr(e,t,n,o,r,i):function(e,t,n,o,r,i,a){switch(n){case C:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!i(new Pe(e),new Pe(t)));case d:case u:case f:return Ra(+e,+t);case h:return e.name==t.name&&e.message==t.message;case b:case y:return e==t+"";case g:var s=Bt;case v:var c=1&o;if(s||(s=Vt),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;o|=2,a.set(e,t);var p=Hr(s(e),s(t),o,r,i,a);return a.delete(e),p;case E:if(xn)return xn.call(e)==xn.call(t)}return!1}(e,t,p,n,o,r,i);if(!(1&n)){var O=S&&Ce.call(e,"__wrapped__"),k=T&&Ce.call(t,"__wrapped__");if(O||k){var R=O?e.value():e,D=k?t.value():t;return i||(i=new Ln),r(R,D,n,o,i)}}if(!x)return!1;return i||(i=new Ln),function(e,t,n,o,r,i){var a=1&n,s=Kr(e),c=s.length,l=Kr(t).length;if(c!=l&&!a)return!1;var d=c;for(;d--;){var u=s[d];if(!(a?u in t:Ce.call(t,u)))return!1}var h=i.get(e),p=i.get(t);if(h&&p)return h==t&&p==e;var m=!0;i.set(e,t),i.set(t,e);var g=a;for(;++d<c;){u=s[d];var f=e[u],_=t[u];if(o)var b=a?o(_,f,u,t,e,i):o(f,_,u,e,t,i);if(!(void 0===b?f===_||r(f,_,n,o,i):b)){m=!1;break}g||(g="constructor"==u)}if(m&&!g){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(m=!1)}return i.delete(e),i.delete(t),m}(e,t,n,o,r,i)}(e,t,n,o,Eo,r))}function So(e,t,n,o){var r=n.length,i=r,a=!o;if(null==e)return!i;for(e=ge(e);r--;){var s=n[r];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++r<i;){var c=(s=n[r])[0],l=e[c],d=s[1];if(a&&s[2]){if(void 0===l&&!(c in e))return!1}else{var u=new Ln;if(o)var h=o(l,d,c,e,t,u);if(!(void 0===h?Eo(d,l,3,o,u):h))return!1}}return!0}function wo(e){return!(!Va(e)||(t=e,xe&&xe in t))&&(Ba(e)?De:ae).test(Oi(e));var t}function Co(e){return"function"==typeof e?e:null==e?Ks:"object"==typeof e?Na(e)?Do(e[0],e[1]):Ro(e):tc(e)}function To(e){if(!hi(e))return rn(e);var t=[];for(var n in ge(e))Ce.call(e,n)&&"constructor"!=n&&t.push(n);return t}function xo(e){if(!Va(e))return function(e){var t=[];if(null!=e)for(var n in ge(e))t.push(n);return t}(e);var t=hi(e),n=[];for(var o in e)("constructor"!=o||!t&&Ce.call(e,o))&&n.push(o);return n}function Oo(e,t){return e<t}function ko(e,t){var n=-1,r=Ma(e)?o(e.length):[];return eo(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function Ro(e){var t=Zr(e);return 1==t.length&&t[0][2]?mi(t[0][0],t[0][1]):function(n){return n===e||So(n,e,t)}}function Do(e,t){return li(e)&&pi(t)?mi(xi(e),t):function(n){var o=gs(n,e);return void 0===o&&o===t?fs(n,e):Eo(t,o,3)}}function Io(e,t,n,o,r){e!==t&&ao(t,(function(i,a){if(r||(r=new Ln),Va(i))!function(e,t,n,o,r,i,a){var s=bi(e,n),c=bi(t,n),l=a.get(c);if(l)return void Gn(e,n,l);var d=i?i(s,c,n+"",e,t,a):void 0,u=void 0===d;if(u){var h=Na(c),p=!h&&La(c),m=!h&&!p&&Xa(c);d=c,h||p||m?Na(s)?d=s:Pa(s)?d=br(s):p?(u=!1,d=hr(c,!0)):m?(u=!1,d=mr(c,!0)):d=[]:Wa(c)||Aa(c)?(d=s,Aa(s)?d=as(s):Va(s)&&!Ba(s)||(d=ii(c))):u=!1}u&&(a.set(c,d),r(d,c,o,i,a),a.delete(c));Gn(e,n,d)}(e,t,a,n,Io,o,r);else{var s=o?o(bi(e,a),i,a+"",e,t,r):void 0;void 0===s&&(s=i),Gn(e,a,s)}}),Es)}function Ao(e,t){var n=e.length;if(n)return si(t+=t<0?n:0,n)?e[t]:void 0}function No(e,t,n){t=t.length?pt(t,(function(e){return Na(e)?function(t){return ho(t,1===e.length?e[0]:e)}:e})):[Ks];var o=-1;return t=pt(t,Dt(Jr())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(ko(e,(function(e,n,r){return{criteria:pt(t,(function(t){return t(e)})),index:++o,value:e}})),(function(e,t){return function(e,t,n){var o=-1,r=e.criteria,i=t.criteria,a=r.length,s=n.length;for(;++o<a;){var c=gr(r[o],i[o]);if(c){if(o>=s)return c;var l=n[o];return c*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)}))}function Fo(e,t,n){for(var o=-1,r=t.length,i={};++o<r;){var a=t[o],s=ho(e,a);n(s,a)&&Go(i,cr(a,e),s)}return i}function Mo(e,t,n,o){var r=o?St:Et,i=-1,a=t.length,s=e;for(e===t&&(t=br(t)),n&&(s=pt(e,Dt(n)));++i<a;)for(var c=0,l=t[i],d=n?n(l):l;(c=r(s,d,c,o))>-1;)s!==e&&$e.call(s,c,1),$e.call(e,c,1);return e}function Po(e,t){for(var n=e?t.length:0,o=n-1;n--;){var r=t[n];if(n==o||r!==i){var i=r;si(r)?$e.call(e,r,1):er(e,r)}}return e}function Lo(e,t){return e+Zt(dn()*(t-e+1))}function jo(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Zt(t/2))&&(e+=e)}while(t);return n}function Uo(e,t){return Ei(gi(e,t,Ks),e+"")}function Bo(e){return Un(Rs(e))}function qo(e,t){var n=Rs(e);return Ci(n,$n(t,0,n.length))}function Go(e,t,n,o){if(!Va(e))return e;for(var r=-1,i=(t=cr(t,e)).length,a=i-1,s=e;null!=s&&++r<i;){var c=xi(t[r]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(r!=a){var d=s[c];void 0===(l=o?o(d,c,s):void 0)&&(l=Va(d)?d:si(t[r+1])?[]:{})}Vn(s,c,l),s=s[c]}return e}var Vo=bn?function(e,t){return bn.set(e,t),e}:Ks,Ho=xt?function(e,t){return xt(e,"toString",{configurable:!0,enumerable:!1,value:Vs(t),writable:!0})}:Ks;function zo(e){return Ci(Rs(e))}function Ko(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=o(i);++r<i;)a[r]=e[r+t];return a}function Wo(e,t){var n;return eo(e,(function(e,o,r){return!(n=t(e,o,r))})),!!n}function Yo(e,t,n){var o=0,r=null==e?o:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;o<r;){var i=o+r>>>1,a=e[i];null!==a&&!Ja(a)&&(n?a<=t:a<t)?o=i+1:r=i}return r}return $o(e,t,Ks,n)}function $o(e,t,n,o){var r=0,i=null==e?0:e.length;if(0===i)return 0;for(var a=(t=n(t))!=t,s=null===t,c=Ja(t),l=void 0===t;r<i;){var d=Zt((r+i)/2),u=n(e[d]),h=void 0!==u,p=null===u,m=u==u,g=Ja(u);if(a)var f=o||m;else f=l?m&&(o||h):s?m&&h&&(o||!p):c?m&&h&&!p&&(o||!g):!p&&!g&&(o?u<=t:u<t);f?r=d+1:i=d}return sn(i,4294967294)}function Qo(e,t){for(var n=-1,o=e.length,r=0,i=[];++n<o;){var a=e[n],s=t?t(a):a;if(!n||!Ra(s,c)){var c=s;i[r++]=0===a?0:a}}return i}function Jo(e){return"number"==typeof e?e:Ja(e)?NaN:+e}function Xo(e){if("string"==typeof e)return e;if(Na(e))return pt(e,Xo)+"";if(Ja(e))return On?On.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Zo(e,t,n){var o=-1,r=ut,i=e.length,a=!0,s=[],c=s;if(n)a=!1,r=ht;else if(i>=200){var l=t?null:jr(e);if(l)return Vt(l);a=!1,r=At,c=new Pn}else c=t?[]:s;e:for(;++o<i;){var d=e[o],u=t?t(d):d;if(d=n||0!==d?d:0,a&&u==u){for(var h=c.length;h--;)if(c[h]===u)continue e;t&&c.push(u),s.push(d)}else r(c,u,n)||(c!==s&&c.push(u),s.push(d))}return s}function er(e,t){return null==(e=fi(e,t=cr(t,e)))||delete e[xi(Ui(t))]}function tr(e,t,n,o){return Go(e,t,n(ho(e,t)),o)}function nr(e,t,n,o){for(var r=e.length,i=o?r:-1;(o?i--:++i<r)&&t(e[i],i,e););return n?Ko(e,o?0:i,o?i+1:r):Ko(e,o?i+1:0,o?r:i)}function or(e,t){var n=e;return n instanceof An&&(n=n.value()),gt(t,(function(e,t){return t.func.apply(t.thisArg,mt([e],t.args))}),n)}function rr(e,t,n){var r=e.length;if(r<2)return r?Zo(e[0]):[];for(var i=-1,a=o(r);++i<r;)for(var s=e[i],c=-1;++c<r;)c!=i&&(a[i]=Zn(a[i]||s,e[c],t,n));return Zo(io(a,1),t,n)}function ir(e,t,n){for(var o=-1,r=e.length,i=t.length,a={};++o<r;){var s=o<i?t[o]:void 0;n(a,e[o],s)}return a}function ar(e){return Pa(e)?e:[]}function sr(e){return"function"==typeof e?e:Ks}function cr(e,t){return Na(e)?e:li(e,t)?[e]:Ti(ss(e))}var lr=Uo;function dr(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:Ko(e,t,n)}var ur=$t||function(e){return We.clearTimeout(e)};function hr(e,t){if(t)return e.slice();var n=e.length,o=Ge?Ge(n):new e.constructor(n);return e.copy(o),o}function pr(e){var t=new e.constructor(e.byteLength);return new Pe(t).set(new Pe(e)),t}function mr(e,t){var n=t?pr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function gr(e,t){if(e!==t){var n=void 0!==e,o=null===e,r=e==e,i=Ja(e),a=void 0!==t,s=null===t,c=t==t,l=Ja(t);if(!s&&!l&&!i&&e>t||i&&a&&c&&!s&&!l||o&&a&&c||!n&&c||!r)return 1;if(!o&&!i&&!l&&e<t||l&&n&&r&&!o&&!i||s&&n&&r||!a&&r||!c)return-1}return 0}function fr(e,t,n,r){for(var i=-1,a=e.length,s=n.length,c=-1,l=t.length,d=an(a-s,0),u=o(l+d),h=!r;++c<l;)u[c]=t[c];for(;++i<s;)(h||i<a)&&(u[n[i]]=e[i]);for(;d--;)u[c++]=e[i++];return u}function _r(e,t,n,r){for(var i=-1,a=e.length,s=-1,c=n.length,l=-1,d=t.length,u=an(a-c,0),h=o(u+d),p=!r;++i<u;)h[i]=e[i];for(var m=i;++l<d;)h[m+l]=t[l];for(;++s<c;)(p||i<a)&&(h[m+n[s]]=e[i++]);return h}function br(e,t){var n=-1,r=e.length;for(t||(t=o(r));++n<r;)t[n]=e[n];return t}function vr(e,t,n,o){var r=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=o?o(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),r?Wn(n,s,c):Vn(n,s,c)}return n}function yr(e,t){return function(n,o){var r=Na(n)?at:zn,i=t?t():{};return r(n,e,Jr(o,2),i)}}function Er(e){return Uo((function(t,n){var o=-1,r=n.length,i=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(r--,i):void 0,a&&ci(n[0],n[1],a)&&(i=r<3?void 0:i,r=1),t=ge(t);++o<r;){var s=n[o];s&&e(t,s,o,i)}return t}))}function Sr(e,t){return function(n,o){if(null==n)return n;if(!Ma(n))return e(n,o);for(var r=n.length,i=t?r:-1,a=ge(n);(t?i--:++i<r)&&!1!==o(a[i],i,a););return n}}function wr(e){return function(t,n,o){for(var r=-1,i=ge(t),a=o(t),s=a.length;s--;){var c=a[e?s:++r];if(!1===n(i[c],c,i))break}return t}}function Cr(e){return function(t){var n=Ut(t=ss(t))?Kt(t):void 0,o=n?n[0]:t.charAt(0),r=n?dr(n,1).join(""):t.slice(1);return o[e]()+r}}function Tr(e){return function(t){return gt(Bs(As(t).replace(Ae,"")),e,"")}}function xr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Rn(e.prototype),o=e.apply(n,t);return Va(o)?o:n}}function Or(e){return function(t,n,o){var r=ge(t);if(!Ma(t)){var i=Jr(n,3);t=ys(t),n=function(e){return i(r[e],e,r)}}var a=e(t,n,o);return a>-1?r[i?t[a]:a]:void 0}}function kr(e){return zr((function(t){var n=t.length,o=n,r=In.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new be(i);if(r&&!s&&"wrapper"==$r(a))var s=new In([],!0)}for(o=s?o:n;++o<n;){var c=$r(a=t[o]),l="wrapper"==c?Yr(a):void 0;s=l&&di(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?s[$r(l[0])].apply(s,l[3]):1==a.length&&di(a)?s[c]():s.thru(a)}return function(){var e=arguments,o=e[0];if(s&&1==e.length&&Na(o))return s.plant(o).value();for(var r=0,i=n?t[r].apply(this,e):o;++r<n;)i=t[r].call(this,i);return i}}))}function Rr(e,t,n,r,i,a,s,c,l,d){var u=128&t,h=1&t,p=2&t,m=24&t,g=512&t,f=p?void 0:xr(e);return function _(){for(var b=arguments.length,v=o(b),y=b;y--;)v[y]=arguments[y];if(m)var E=Qr(_),S=Mt(v,E);if(r&&(v=fr(v,r,i,m)),a&&(v=_r(v,a,s,m)),b-=S,m&&b<d){var w=Gt(v,E);return Pr(e,t,Rr,_.placeholder,n,v,w,c,l,d-b)}var C=h?n:this,T=p?C[e]:e;return b=v.length,c?v=_i(v,c):g&&b>1&&v.reverse(),u&&l<b&&(v.length=l),this&&this!==We&&this instanceof _&&(T=f||xr(T)),T.apply(C,v)}}function Dr(e,t){return function(n,o){return function(e,t,n,o){return co(e,(function(e,r,i){t(o,n(e),r,i)})),o}(n,e,t(o),{})}}function Ir(e,t){return function(n,o){var r;if(void 0===n&&void 0===o)return t;if(void 0!==n&&(r=n),void 0!==o){if(void 0===r)return o;"string"==typeof n||"string"==typeof o?(n=Xo(n),o=Xo(o)):(n=Jo(n),o=Jo(o)),r=e(n,o)}return r}}function Ar(e){return zr((function(t){return t=pt(t,Dt(Jr())),Uo((function(n){var o=this;return e(t,(function(e){return it(e,o,n)}))}))}))}function Nr(e,t){var n=(t=void 0===t?" ":Xo(t)).length;if(n<2)return n?jo(t,e):t;var o=jo(t,Xt(e/zt(t)));return Ut(t)?dr(Kt(o),0,e).join(""):o.slice(0,e)}function Fr(e){return function(t,n,r){return r&&"number"!=typeof r&&ci(t,n,r)&&(n=r=void 0),t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n,r){for(var i=-1,a=an(Xt((t-e)/(n||1)),0),s=o(a);a--;)s[r?a:++i]=e,e+=n;return s}(t,n,r=void 0===r?t<n?1:-1:ns(r),e)}}function Mr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=is(t),n=is(n)),e(t,n)}}function Pr(e,t,n,o,r,i,a,s,c,l){var d=8&t;t|=d?32:64,4&(t&=~(d?64:32))||(t&=-4);var u=[e,t,r,d?i:void 0,d?a:void 0,d?void 0:i,d?void 0:a,s,c,l],h=n.apply(void 0,u);return di(e)&&vi(h,u),h.placeholder=o,Si(h,e,t)}function Lr(e){var t=me[e];return function(e,n){if(e=is(e),(n=null==n?0:sn(os(n),292))&&nn(e)){var o=(ss(e)+"e").split("e");return+((o=(ss(t(o[0]+"e"+(+o[1]+n)))+"e").split("e"))[0]+"e"+(+o[1]-n))}return t(e)}}var jr=gn&&1/Vt(new gn([,-0]))[1]==1/0?function(e){return new gn(e)}:Js;function Ur(e){return function(t){var n=oi(t);return n==g?Bt(t):n==v?Ht(t):function(e,t){return pt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Br(e,t,n,r,s,c,l,d){var u=2&t;if(!u&&"function"!=typeof e)throw new be(i);var h=r?r.length:0;if(h||(t&=-97,r=s=void 0),l=void 0===l?l:an(os(l),0),d=void 0===d?d:os(d),h-=s?s.length:0,64&t){var p=r,m=s;r=s=void 0}var g=u?void 0:Yr(e),f=[e,t,n,r,s,p,m,c,l,d];if(g&&function(e,t){var n=e[1],o=t[1],r=n|o,i=r<131,s=128==o&&8==n||128==o&&256==n&&e[7].length<=t[8]||384==o&&t[7].length<=t[8]&&8==n;if(!i&&!s)return e;1&o&&(e[2]=t[2],r|=1&n?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?fr(l,c,t[4]):c,e[4]=l?Gt(e[3],a):t[4]}(c=t[5])&&(l=e[5],e[5]=l?_r(l,c,t[6]):c,e[6]=l?Gt(e[5],a):t[6]);(c=t[7])&&(e[7]=c);128&o&&(e[8]=null==e[8]?t[8]:sn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(f,g),e=f[0],t=f[1],n=f[2],r=f[3],s=f[4],!(d=f[9]=void 0===f[9]?u?0:e.length:an(f[9]-h,0))&&24&t&&(t&=-25),t&&1!=t)_=8==t||16==t?function(e,t,n){var r=xr(e);return function i(){for(var a=arguments.length,s=o(a),c=a,l=Qr(i);c--;)s[c]=arguments[c];var d=a<3&&s[0]!==l&&s[a-1]!==l?[]:Gt(s,l);if((a-=d.length)<n)return Pr(e,t,Rr,i.placeholder,void 0,s,d,void 0,void 0,n-a);var u=this&&this!==We&&this instanceof i?r:e;return it(u,this,s)}}(e,t,d):32!=t&&33!=t||s.length?Rr.apply(void 0,f):function(e,t,n,r){var i=1&t,a=xr(e);return function t(){for(var s=-1,c=arguments.length,l=-1,d=r.length,u=o(d+c),h=this&&this!==We&&this instanceof t?a:e;++l<d;)u[l]=r[l];for(;c--;)u[l++]=arguments[++s];return it(h,i?n:this,u)}}(e,t,n,r);else var _=function(e,t,n){var o=1&t,r=xr(e);return function t(){var i=this&&this!==We&&this instanceof t?r:e;return i.apply(o?n:this,arguments)}}(e,t,n);return Si((g?Vo:vi)(_,f),e,t)}function qr(e,t,n,o){return void 0===e||Ra(e,Ee[n])&&!Ce.call(o,n)?t:e}function Gr(e,t,n,o,r,i){return Va(e)&&Va(t)&&(i.set(t,e),Io(e,t,void 0,Gr,i),i.delete(t)),e}function Vr(e){return Wa(e)?void 0:e}function Hr(e,t,n,o,r,i){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=i.get(e),d=i.get(t);if(l&&d)return l==t&&d==e;var u=-1,h=!0,p=2&n?new Pn:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var m=e[u],g=t[u];if(o)var f=a?o(g,m,u,t,e,i):o(m,g,u,e,t,i);if(void 0!==f){if(f)continue;h=!1;break}if(p){if(!_t(t,(function(e,t){if(!At(p,t)&&(m===e||r(m,e,n,o,i)))return p.push(t)}))){h=!1;break}}else if(m!==g&&!r(m,g,n,o,i)){h=!1;break}}return i.delete(e),i.delete(t),h}function zr(e){return Ei(gi(e,void 0,Fi),e+"")}function Kr(e){return po(e,ys,ti)}function Wr(e){return po(e,Es,ni)}var Yr=bn?function(e){return bn.get(e)}:Js;function $r(e){for(var t=e.name+"",n=vn[t],o=Ce.call(vn,t)?n.length:0;o--;){var r=n[o],i=r.func;if(null==i||i==e)return r.name}return t}function Qr(e){return(Ce.call(kn,"placeholder")?kn:e).placeholder}function Jr(){var e=kn.iteratee||Ws;return e=e===Ws?Co:e,arguments.length?e(arguments[0],arguments[1]):e}function Xr(e,t){var n,o,r=e.__data__;return("string"==(o=typeof(n=t))||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function Zr(e){for(var t=ys(e),n=t.length;n--;){var o=t[n],r=e[o];t[n]=[o,r,pi(r)]}return t}function ei(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return wo(n)?n:void 0}var ti=en?function(e){return null==e?[]:(e=ge(e),dt(en(e),(function(t){return Ye.call(e,t)})))}:rc,ni=en?function(e){for(var t=[];e;)mt(t,ti(e)),e=ze(e);return t}:rc,oi=mo;function ri(e,t,n){for(var o=-1,r=(t=cr(t,e)).length,i=!1;++o<r;){var a=xi(t[o]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++o!=r?i:!!(r=null==e?0:e.length)&&Ga(r)&&si(a,r)&&(Na(e)||Aa(e))}function ii(e){return"function"!=typeof e.constructor||hi(e)?{}:Rn(ze(e))}function ai(e){return Na(e)||Aa(e)||!!(Je&&e&&e[Je])}function si(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ce.test(e))&&e>-1&&e%1==0&&e<t}function ci(e,t,n){if(!Va(n))return!1;var o=typeof t;return!!("number"==o?Ma(n)&&si(t,n.length):"string"==o&&t in n)&&Ra(n[t],e)}function li(e,t){if(Na(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ja(e))||(H.test(e)||!V.test(e)||null!=t&&e in ge(t))}function di(e){var t=$r(e),n=kn[t];if("function"!=typeof n||!(t in An.prototype))return!1;if(e===n)return!0;var o=Yr(n);return!!o&&e===o[0]}(hn&&oi(new hn(new ArrayBuffer(1)))!=C||pn&&oi(new pn)!=g||mn&&"[object Promise]"!=oi(mn.resolve())||gn&&oi(new gn)!=v||fn&&oi(new fn)!=S)&&(oi=function(e){var t=mo(e),n=t==_?e.constructor:void 0,o=n?Oi(n):"";if(o)switch(o){case yn:return C;case En:return g;case Sn:return"[object Promise]";case wn:return v;case Cn:return S}return t});var ui=Se?Ba:ic;function hi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ee)}function pi(e){return e==e&&!Va(e)}function mi(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in ge(n)))}}function gi(e,t,n){return t=an(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=an(r.length-t,0),s=o(a);++i<a;)s[i]=r[t+i];i=-1;for(var c=o(t+1);++i<t;)c[i]=r[i];return c[t]=n(s),it(e,this,c)}}function fi(e,t){return t.length<2?e:ho(e,Ko(t,0,-1))}function _i(e,t){for(var n=e.length,o=sn(t.length,n),r=br(e);o--;){var i=t[o];e[o]=si(i,n)?r[i]:void 0}return e}function bi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var vi=wi(Vo),yi=Jt||function(e,t){return We.setTimeout(e,t)},Ei=wi(Ho);function Si(e,t,n){var o=t+"";return Ei(e,function(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(J,"{\n/* [wrapped with "+t+"] */\n")}(o,function(e,t){return st(s,(function(n){var o="_."+n[0];t&n[1]&&!ut(e,o)&&e.push(o)})),e.sort()}(function(e){var t=e.match(X);return t?t[1].split(Z):[]}(o),n)))}function wi(e){var t=0,n=0;return function(){var o=cn(),r=16-(o-n);if(n=o,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ci(e,t){var n=-1,o=e.length,r=o-1;for(t=void 0===t?o:t;++n<t;){var i=Lo(n,r),a=e[i];e[i]=e[n],e[n]=a}return e.length=t,e}var Ti=function(e){var t=wa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(z,(function(e,n,o,r){t.push(o?r.replace(te,"$1"):n||e)})),t}));function xi(e){if("string"==typeof e||Ja(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Oi(e){if(null!=e){try{return we.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ki(e){if(e instanceof An)return e.clone();var t=new In(e.__wrapped__,e.__chain__);return t.__actions__=br(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ri=Uo((function(e,t){return Pa(e)?Zn(e,io(t,1,Pa,!0)):[]})),Di=Uo((function(e,t){var n=Ui(t);return Pa(n)&&(n=void 0),Pa(e)?Zn(e,io(t,1,Pa,!0),Jr(n,2)):[]})),Ii=Uo((function(e,t){var n=Ui(t);return Pa(n)&&(n=void 0),Pa(e)?Zn(e,io(t,1,Pa,!0),void 0,n):[]}));function Ai(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=null==n?0:os(n);return r<0&&(r=an(o+r,0)),yt(e,Jr(t,3),r)}function Ni(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=o-1;return void 0!==n&&(r=os(n),r=n<0?an(o+r,0):sn(r,o-1)),yt(e,Jr(t,3),r,!0)}function Fi(e){return(null==e?0:e.length)?io(e,1):[]}function Mi(e){return e&&e.length?e[0]:void 0}var Pi=Uo((function(e){var t=pt(e,ar);return t.length&&t[0]===e[0]?bo(t):[]})),Li=Uo((function(e){var t=Ui(e),n=pt(e,ar);return t===Ui(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?bo(n,Jr(t,2)):[]})),ji=Uo((function(e){var t=Ui(e),n=pt(e,ar);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?bo(n,void 0,t):[]}));function Ui(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Bi=Uo(qi);function qi(e,t){return e&&e.length&&t&&t.length?Mo(e,t):e}var Gi=zr((function(e,t){var n=null==e?0:e.length,o=Yn(e,t);return Po(e,pt(t,(function(e){return si(e,n)?+e:e})).sort(gr)),o}));function Vi(e){return null==e?e:un.call(e)}var Hi=Uo((function(e){return Zo(io(e,1,Pa,!0))})),zi=Uo((function(e){var t=Ui(e);return Pa(t)&&(t=void 0),Zo(io(e,1,Pa,!0),Jr(t,2))})),Ki=Uo((function(e){var t=Ui(e);return t="function"==typeof t?t:void 0,Zo(io(e,1,Pa,!0),void 0,t)}));function Wi(e){if(!e||!e.length)return[];var t=0;return e=dt(e,(function(e){if(Pa(e))return t=an(e.length,t),!0})),Rt(t,(function(t){return pt(e,Tt(t))}))}function Yi(e,t){if(!e||!e.length)return[];var n=Wi(e);return null==t?n:pt(n,(function(e){return it(t,void 0,e)}))}var $i=Uo((function(e,t){return Pa(e)?Zn(e,t):[]})),Qi=Uo((function(e){return rr(dt(e,Pa))})),Ji=Uo((function(e){var t=Ui(e);return Pa(t)&&(t=void 0),rr(dt(e,Pa),Jr(t,2))})),Xi=Uo((function(e){var t=Ui(e);return t="function"==typeof t?t:void 0,rr(dt(e,Pa),void 0,t)})),Zi=Uo(Wi);var ea=Uo((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Yi(e,n)}));function ta(e){var t=kn(e);return t.__chain__=!0,t}function na(e,t){return t(e)}var oa=zr((function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,r=function(t){return Yn(t,e)};return!(t>1||this.__actions__.length)&&o instanceof An&&si(n)?((o=o.slice(n,+n+(t?1:0))).__actions__.push({func:na,args:[r],thisArg:void 0}),new In(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(r)}));var ra=yr((function(e,t,n){Ce.call(e,n)?++e[n]:Wn(e,n,1)}));var ia=Or(Ai),aa=Or(Ni);function sa(e,t){return(Na(e)?st:eo)(e,Jr(t,3))}function ca(e,t){return(Na(e)?ct:to)(e,Jr(t,3))}var la=yr((function(e,t,n){Ce.call(e,n)?e[n].push(t):Wn(e,n,[t])}));var da=Uo((function(e,t,n){var r=-1,i="function"==typeof t,a=Ma(e)?o(e.length):[];return eo(e,(function(e){a[++r]=i?it(t,e,n):vo(e,t,n)})),a})),ua=yr((function(e,t,n){Wn(e,n,t)}));function ha(e,t){return(Na(e)?pt:ko)(e,Jr(t,3))}var pa=yr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ma=Uo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ci(e,t[0],t[1])?t=[]:n>2&&ci(t[0],t[1],t[2])&&(t=[t[0]]),No(e,io(t,1),[])})),ga=Qt||function(){return We.Date.now()};function fa(e,t,n){return t=n?void 0:t,Br(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function _a(e,t){var n;if("function"!=typeof t)throw new be(i);return e=os(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ba=Uo((function(e,t,n){var o=1;if(n.length){var r=Gt(n,Qr(ba));o|=32}return Br(e,o,t,n,r)})),va=Uo((function(e,t,n){var o=3;if(n.length){var r=Gt(n,Qr(va));o|=32}return Br(t,o,e,n,r)}));function ya(e,t,n){var o,r,a,s,c,l,d=0,u=!1,h=!1,p=!0;if("function"!=typeof e)throw new be(i);function m(t){var n=o,i=r;return o=r=void 0,d=t,s=e.apply(i,n)}function g(e){return d=e,c=yi(_,t),u?m(e):s}function f(e){var n=e-l;return void 0===l||n>=t||n<0||h&&e-d>=a}function _(){var e=ga();if(f(e))return b(e);c=yi(_,function(e){var n=t-(e-l);return h?sn(n,a-(e-d)):n}(e))}function b(e){return c=void 0,p&&o?m(e):(o=r=void 0,s)}function v(){var e=ga(),n=f(e);if(o=arguments,r=this,l=e,n){if(void 0===c)return g(l);if(h)return ur(c),c=yi(_,t),m(l)}return void 0===c&&(c=yi(_,t)),s}return t=is(t)||0,Va(n)&&(u=!!n.leading,a=(h="maxWait"in n)?an(is(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==c&&ur(c),d=0,o=l=r=c=void 0},v.flush=function(){return void 0===c?s:b(ga())},v}var Ea=Uo((function(e,t){return Xn(e,1,t)})),Sa=Uo((function(e,t,n){return Xn(e,is(t)||0,n)}));function wa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new be(i);var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],i=n.cache;if(i.has(r))return i.get(r);var a=e.apply(this,o);return n.cache=i.set(r,a)||i,a};return n.cache=new(wa.Cache||Mn),n}function Ca(e){if("function"!=typeof e)throw new be(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}wa.Cache=Mn;var Ta=lr((function(e,t){var n=(t=1==t.length&&Na(t[0])?pt(t[0],Dt(Jr())):pt(io(t,1),Dt(Jr()))).length;return Uo((function(o){for(var r=-1,i=sn(o.length,n);++r<i;)o[r]=t[r].call(this,o[r]);return it(e,this,o)}))})),xa=Uo((function(e,t){return Br(e,32,void 0,t,Gt(t,Qr(xa)))})),Oa=Uo((function(e,t){return Br(e,64,void 0,t,Gt(t,Qr(Oa)))})),ka=zr((function(e,t){return Br(e,256,void 0,void 0,void 0,t)}));function Ra(e,t){return e===t||e!=e&&t!=t}var Da=Mr(go),Ia=Mr((function(e,t){return e>=t})),Aa=yo(function(){return arguments}())?yo:function(e){return Ha(e)&&Ce.call(e,"callee")&&!Ye.call(e,"callee")},Na=o.isArray,Fa=Ze?Dt(Ze):function(e){return Ha(e)&&mo(e)==w};function Ma(e){return null!=e&&Ga(e.length)&&!Ba(e)}function Pa(e){return Ha(e)&&Ma(e)}var La=tn||ic,ja=et?Dt(et):function(e){return Ha(e)&&mo(e)==u};function Ua(e){if(!Ha(e))return!1;var t=mo(e);return t==h||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Wa(e)}function Ba(e){if(!Va(e))return!1;var t=mo(e);return t==p||t==m||"[object AsyncFunction]"==t||"[object Proxy]"==t}function qa(e){return"number"==typeof e&&e==os(e)}function Ga(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Va(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ha(e){return null!=e&&"object"==typeof e}var za=tt?Dt(tt):function(e){return Ha(e)&&oi(e)==g};function Ka(e){return"number"==typeof e||Ha(e)&&mo(e)==f}function Wa(e){if(!Ha(e)||mo(e)!=_)return!1;var t=ze(e);if(null===t)return!0;var n=Ce.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&we.call(n)==ke}var Ya=nt?Dt(nt):function(e){return Ha(e)&&mo(e)==b};var $a=ot?Dt(ot):function(e){return Ha(e)&&oi(e)==v};function Qa(e){return"string"==typeof e||!Na(e)&&Ha(e)&&mo(e)==y}function Ja(e){return"symbol"==typeof e||Ha(e)&&mo(e)==E}var Xa=rt?Dt(rt):function(e){return Ha(e)&&Ga(e.length)&&!!Be[mo(e)]};var Za=Mr(Oo),es=Mr((function(e,t){return e<=t}));function ts(e){if(!e)return[];if(Ma(e))return Qa(e)?Kt(e):br(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=oi(e);return(t==g?Bt:t==v?Vt:Rs)(e)}function ns(e){return e?(e=is(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function os(e){var t=ns(e),n=t%1;return t==t?n?t-n:t:0}function rs(e){return e?$n(os(e),0,4294967295):0}function is(e){if("number"==typeof e)return e;if(Ja(e))return NaN;if(Va(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Va(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Y,"");var n=ie.test(e);return n||se.test(e)?He(e.slice(2),n?2:8):re.test(e)?NaN:+e}function as(e){return vr(e,Es(e))}function ss(e){return null==e?"":Xo(e)}var cs=Er((function(e,t){if(hi(t)||Ma(t))vr(t,ys(t),e);else for(var n in t)Ce.call(t,n)&&Vn(e,n,t[n])})),ls=Er((function(e,t){vr(t,Es(t),e)})),ds=Er((function(e,t,n,o){vr(t,Es(t),e,o)})),us=Er((function(e,t,n,o){vr(t,ys(t),e,o)})),hs=zr(Yn);var ps=Uo((function(e,t){e=ge(e);var n=-1,o=t.length,r=o>2?t[2]:void 0;for(r&&ci(t[0],t[1],r)&&(o=1);++n<o;)for(var i=t[n],a=Es(i),s=-1,c=a.length;++s<c;){var l=a[s],d=e[l];(void 0===d||Ra(d,Ee[l])&&!Ce.call(e,l))&&(e[l]=i[l])}return e})),ms=Uo((function(e){return e.push(void 0,Gr),it(ws,void 0,e)}));function gs(e,t,n){var o=null==e?void 0:ho(e,t);return void 0===o?n:o}function fs(e,t){return null!=e&&ri(e,t,_o)}var _s=Dr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Oe.call(t)),e[t]=n}),Vs(Ks)),bs=Dr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Oe.call(t)),Ce.call(e,t)?e[t].push(n):e[t]=[n]}),Jr),vs=Uo(vo);function ys(e){return Ma(e)?jn(e):To(e)}function Es(e){return Ma(e)?jn(e,!0):xo(e)}var Ss=Er((function(e,t,n){Io(e,t,n)})),ws=Er((function(e,t,n,o){Io(e,t,n,o)})),Cs=zr((function(e,t){var n={};if(null==e)return n;var o=!1;t=pt(t,(function(t){return t=cr(t,e),o||(o=t.length>1),t})),vr(e,Wr(e),n),o&&(n=Qn(n,7,Vr));for(var r=t.length;r--;)er(n,t[r]);return n}));var Ts=zr((function(e,t){return null==e?{}:function(e,t){return Fo(e,t,(function(t,n){return fs(e,n)}))}(e,t)}));function xs(e,t){if(null==e)return{};var n=pt(Wr(e),(function(e){return[e]}));return t=Jr(t),Fo(e,n,(function(e,n){return t(e,n[0])}))}var Os=Ur(ys),ks=Ur(Es);function Rs(e){return null==e?[]:It(e,ys(e))}var Ds=Tr((function(e,t,n){return t=t.toLowerCase(),e+(n?Is(t):t)}));function Is(e){return Us(ss(e).toLowerCase())}function As(e){return(e=ss(e))&&e.replace(le,Pt).replace(Ne,"")}var Ns=Tr((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Fs=Tr((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ms=Cr("toLowerCase");var Ps=Tr((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ls=Tr((function(e,t,n){return e+(n?" ":"")+Us(t)}));var js=Tr((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Us=Cr("toUpperCase");function Bs(e,t,n){return e=ss(e),void 0===(t=n?void 0:t)?function(e){return Le.test(e)}(e)?function(e){return e.match(Me)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var qs=Uo((function(e,t){try{return it(e,void 0,t)}catch(e){return Ua(e)?e:new he(e)}})),Gs=zr((function(e,t){return st(t,(function(t){t=xi(t),Wn(e,t,ba(e[t],e))})),e}));function Vs(e){return function(){return e}}var Hs=kr(),zs=kr(!0);function Ks(e){return e}function Ws(e){return Co("function"==typeof e?e:Qn(e,1))}var Ys=Uo((function(e,t){return function(n){return vo(n,e,t)}})),$s=Uo((function(e,t){return function(n){return vo(e,n,t)}}));function Qs(e,t,n){var o=ys(t),r=uo(t,o);null!=n||Va(t)&&(r.length||!o.length)||(n=t,t=e,e=this,r=uo(t,ys(t)));var i=!(Va(n)&&"chain"in n&&!n.chain),a=Ba(e);return st(r,(function(n){var o=t[n];e[n]=o,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),r=n.__actions__=br(this.__actions__);return r.push({func:o,args:arguments,thisArg:e}),n.__chain__=t,n}return o.apply(e,mt([this.value()],arguments))})})),e}function Js(){}var Xs=Ar(pt),Zs=Ar(lt),ec=Ar(_t);function tc(e){return li(e)?Tt(xi(e)):function(e){return function(t){return ho(t,e)}}(e)}var nc=Fr(),oc=Fr(!0);function rc(){return[]}function ic(){return!1}var ac=Ir((function(e,t){return e+t}),0),sc=Lr("ceil"),cc=Ir((function(e,t){return e/t}),1),lc=Lr("floor");var dc,uc=Ir((function(e,t){return e*t}),1),hc=Lr("round"),pc=Ir((function(e,t){return e-t}),0);return kn.after=function(e,t){if("function"!=typeof t)throw new be(i);return e=os(e),function(){if(--e<1)return t.apply(this,arguments)}},kn.ary=fa,kn.assign=cs,kn.assignIn=ls,kn.assignInWith=ds,kn.assignWith=us,kn.at=hs,kn.before=_a,kn.bind=ba,kn.bindAll=Gs,kn.bindKey=va,kn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Na(e)?e:[e]},kn.chain=ta,kn.chunk=function(e,t,n){t=(n?ci(e,t,n):void 0===t)?1:an(os(t),0);var r=null==e?0:e.length;if(!r||t<1)return[];for(var i=0,a=0,s=o(Xt(r/t));i<r;)s[a++]=Ko(e,i,i+=t);return s},kn.compact=function(e){for(var t=-1,n=null==e?0:e.length,o=0,r=[];++t<n;){var i=e[t];i&&(r[o++]=i)}return r},kn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=o(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return mt(Na(n)?br(n):[n],io(t,1))},kn.cond=function(e){var t=null==e?0:e.length,n=Jr();return e=t?pt(e,(function(e){if("function"!=typeof e[1])throw new be(i);return[n(e[0]),e[1]]})):[],Uo((function(n){for(var o=-1;++o<t;){var r=e[o];if(it(r[0],this,n))return it(r[1],this,n)}}))},kn.conforms=function(e){return function(e){var t=ys(e);return function(n){return Jn(n,e,t)}}(Qn(e,1))},kn.constant=Vs,kn.countBy=ra,kn.create=function(e,t){var n=Rn(e);return null==t?n:Kn(n,t)},kn.curry=function e(t,n,o){var r=Br(t,8,void 0,void 0,void 0,void 0,void 0,n=o?void 0:n);return r.placeholder=e.placeholder,r},kn.curryRight=function e(t,n,o){var r=Br(t,16,void 0,void 0,void 0,void 0,void 0,n=o?void 0:n);return r.placeholder=e.placeholder,r},kn.debounce=ya,kn.defaults=ps,kn.defaultsDeep=ms,kn.defer=Ea,kn.delay=Sa,kn.difference=Ri,kn.differenceBy=Di,kn.differenceWith=Ii,kn.drop=function(e,t,n){var o=null==e?0:e.length;return o?Ko(e,(t=n||void 0===t?1:os(t))<0?0:t,o):[]},kn.dropRight=function(e,t,n){var o=null==e?0:e.length;return o?Ko(e,0,(t=o-(t=n||void 0===t?1:os(t)))<0?0:t):[]},kn.dropRightWhile=function(e,t){return e&&e.length?nr(e,Jr(t,3),!0,!0):[]},kn.dropWhile=function(e,t){return e&&e.length?nr(e,Jr(t,3),!0):[]},kn.fill=function(e,t,n,o){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ci(e,t,n)&&(n=0,o=r),function(e,t,n,o){var r=e.length;for((n=os(n))<0&&(n=-n>r?0:r+n),(o=void 0===o||o>r?r:os(o))<0&&(o+=r),o=n>o?0:rs(o);n<o;)e[n++]=t;return e}(e,t,n,o)):[]},kn.filter=function(e,t){return(Na(e)?dt:ro)(e,Jr(t,3))},kn.flatMap=function(e,t){return io(ha(e,t),1)},kn.flatMapDeep=function(e,t){return io(ha(e,t),1/0)},kn.flatMapDepth=function(e,t,n){return n=void 0===n?1:os(n),io(ha(e,t),n)},kn.flatten=Fi,kn.flattenDeep=function(e){return(null==e?0:e.length)?io(e,1/0):[]},kn.flattenDepth=function(e,t){return(null==e?0:e.length)?io(e,t=void 0===t?1:os(t)):[]},kn.flip=function(e){return Br(e,512)},kn.flow=Hs,kn.flowRight=zs,kn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,o={};++t<n;){var r=e[t];o[r[0]]=r[1]}return o},kn.functions=function(e){return null==e?[]:uo(e,ys(e))},kn.functionsIn=function(e){return null==e?[]:uo(e,Es(e))},kn.groupBy=la,kn.initial=function(e){return(null==e?0:e.length)?Ko(e,0,-1):[]},kn.intersection=Pi,kn.intersectionBy=Li,kn.intersectionWith=ji,kn.invert=_s,kn.invertBy=bs,kn.invokeMap=da,kn.iteratee=Ws,kn.keyBy=ua,kn.keys=ys,kn.keysIn=Es,kn.map=ha,kn.mapKeys=function(e,t){var n={};return t=Jr(t,3),co(e,(function(e,o,r){Wn(n,t(e,o,r),e)})),n},kn.mapValues=function(e,t){var n={};return t=Jr(t,3),co(e,(function(e,o,r){Wn(n,o,t(e,o,r))})),n},kn.matches=function(e){return Ro(Qn(e,1))},kn.matchesProperty=function(e,t){return Do(e,Qn(t,1))},kn.memoize=wa,kn.merge=Ss,kn.mergeWith=ws,kn.method=Ys,kn.methodOf=$s,kn.mixin=Qs,kn.negate=Ca,kn.nthArg=function(e){return e=os(e),Uo((function(t){return Ao(t,e)}))},kn.omit=Cs,kn.omitBy=function(e,t){return xs(e,Ca(Jr(t)))},kn.once=function(e){return _a(2,e)},kn.orderBy=function(e,t,n,o){return null==e?[]:(Na(t)||(t=null==t?[]:[t]),Na(n=o?void 0:n)||(n=null==n?[]:[n]),No(e,t,n))},kn.over=Xs,kn.overArgs=Ta,kn.overEvery=Zs,kn.overSome=ec,kn.partial=xa,kn.partialRight=Oa,kn.partition=pa,kn.pick=Ts,kn.pickBy=xs,kn.property=tc,kn.propertyOf=function(e){return function(t){return null==e?void 0:ho(e,t)}},kn.pull=Bi,kn.pullAll=qi,kn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Mo(e,t,Jr(n,2)):e},kn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Mo(e,t,void 0,n):e},kn.pullAt=Gi,kn.range=nc,kn.rangeRight=oc,kn.rearg=ka,kn.reject=function(e,t){return(Na(e)?dt:ro)(e,Ca(Jr(t,3)))},kn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var o=-1,r=[],i=e.length;for(t=Jr(t,3);++o<i;){var a=e[o];t(a,o,e)&&(n.push(a),r.push(o))}return Po(e,r),n},kn.rest=function(e,t){if("function"!=typeof e)throw new be(i);return Uo(e,t=void 0===t?t:os(t))},kn.reverse=Vi,kn.sampleSize=function(e,t,n){return t=(n?ci(e,t,n):void 0===t)?1:os(t),(Na(e)?Bn:qo)(e,t)},kn.set=function(e,t,n){return null==e?e:Go(e,t,n)},kn.setWith=function(e,t,n,o){return o="function"==typeof o?o:void 0,null==e?e:Go(e,t,n,o)},kn.shuffle=function(e){return(Na(e)?qn:zo)(e)},kn.slice=function(e,t,n){var o=null==e?0:e.length;return o?(n&&"number"!=typeof n&&ci(e,t,n)?(t=0,n=o):(t=null==t?0:os(t),n=void 0===n?o:os(n)),Ko(e,t,n)):[]},kn.sortBy=ma,kn.sortedUniq=function(e){return e&&e.length?Qo(e):[]},kn.sortedUniqBy=function(e,t){return e&&e.length?Qo(e,Jr(t,2)):[]},kn.split=function(e,t,n){return n&&"number"!=typeof n&&ci(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=ss(e))&&("string"==typeof t||null!=t&&!Ya(t))&&!(t=Xo(t))&&Ut(e)?dr(Kt(e),0,n):e.split(t,n):[]},kn.spread=function(e,t){if("function"!=typeof e)throw new be(i);return t=null==t?0:an(os(t),0),Uo((function(n){var o=n[t],r=dr(n,0,t);return o&&mt(r,o),it(e,this,r)}))},kn.tail=function(e){var t=null==e?0:e.length;return t?Ko(e,1,t):[]},kn.take=function(e,t,n){return e&&e.length?Ko(e,0,(t=n||void 0===t?1:os(t))<0?0:t):[]},kn.takeRight=function(e,t,n){var o=null==e?0:e.length;return o?Ko(e,(t=o-(t=n||void 0===t?1:os(t)))<0?0:t,o):[]},kn.takeRightWhile=function(e,t){return e&&e.length?nr(e,Jr(t,3),!1,!0):[]},kn.takeWhile=function(e,t){return e&&e.length?nr(e,Jr(t,3)):[]},kn.tap=function(e,t){return t(e),e},kn.throttle=function(e,t,n){var o=!0,r=!0;if("function"!=typeof e)throw new be(i);return Va(n)&&(o="leading"in n?!!n.leading:o,r="trailing"in n?!!n.trailing:r),ya(e,t,{leading:o,maxWait:t,trailing:r})},kn.thru=na,kn.toArray=ts,kn.toPairs=Os,kn.toPairsIn=ks,kn.toPath=function(e){return Na(e)?pt(e,xi):Ja(e)?[e]:br(Ti(ss(e)))},kn.toPlainObject=as,kn.transform=function(e,t,n){var o=Na(e),r=o||La(e)||Xa(e);if(t=Jr(t,4),null==n){var i=e&&e.constructor;n=r?o?new i:[]:Va(e)&&Ba(i)?Rn(ze(e)):{}}return(r?st:co)(e,(function(e,o,r){return t(n,e,o,r)})),n},kn.unary=function(e){return fa(e,1)},kn.union=Hi,kn.unionBy=zi,kn.unionWith=Ki,kn.uniq=function(e){return e&&e.length?Zo(e):[]},kn.uniqBy=function(e,t){return e&&e.length?Zo(e,Jr(t,2)):[]},kn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Zo(e,void 0,t):[]},kn.unset=function(e,t){return null==e||er(e,t)},kn.unzip=Wi,kn.unzipWith=Yi,kn.update=function(e,t,n){return null==e?e:tr(e,t,sr(n))},kn.updateWith=function(e,t,n,o){return o="function"==typeof o?o:void 0,null==e?e:tr(e,t,sr(n),o)},kn.values=Rs,kn.valuesIn=function(e){return null==e?[]:It(e,Es(e))},kn.without=$i,kn.words=Bs,kn.wrap=function(e,t){return xa(sr(t),e)},kn.xor=Qi,kn.xorBy=Ji,kn.xorWith=Xi,kn.zip=Zi,kn.zipObject=function(e,t){return ir(e||[],t||[],Vn)},kn.zipObjectDeep=function(e,t){return ir(e||[],t||[],Go)},kn.zipWith=ea,kn.entries=Os,kn.entriesIn=ks,kn.extend=ls,kn.extendWith=ds,Qs(kn,kn),kn.add=ac,kn.attempt=qs,kn.camelCase=Ds,kn.capitalize=Is,kn.ceil=sc,kn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=is(n))==n?n:0),void 0!==t&&(t=(t=is(t))==t?t:0),$n(is(e),t,n)},kn.clone=function(e){return Qn(e,4)},kn.cloneDeep=function(e){return Qn(e,5)},kn.cloneDeepWith=function(e,t){return Qn(e,5,t="function"==typeof t?t:void 0)},kn.cloneWith=function(e,t){return Qn(e,4,t="function"==typeof t?t:void 0)},kn.conformsTo=function(e,t){return null==t||Jn(e,t,ys(t))},kn.deburr=As,kn.defaultTo=function(e,t){return null==e||e!=e?t:e},kn.divide=cc,kn.endsWith=function(e,t,n){e=ss(e),t=Xo(t);var o=e.length,r=n=void 0===n?o:$n(os(n),0,o);return(n-=t.length)>=0&&e.slice(n,r)==t},kn.eq=Ra,kn.escape=function(e){return(e=ss(e))&&U.test(e)?e.replace(L,Lt):e},kn.escapeRegExp=function(e){return(e=ss(e))&&W.test(e)?e.replace(K,"\\$&"):e},kn.every=function(e,t,n){var o=Na(e)?lt:no;return n&&ci(e,t,n)&&(t=void 0),o(e,Jr(t,3))},kn.find=ia,kn.findIndex=Ai,kn.findKey=function(e,t){return vt(e,Jr(t,3),co)},kn.findLast=aa,kn.findLastIndex=Ni,kn.findLastKey=function(e,t){return vt(e,Jr(t,3),lo)},kn.floor=lc,kn.forEach=sa,kn.forEachRight=ca,kn.forIn=function(e,t){return null==e?e:ao(e,Jr(t,3),Es)},kn.forInRight=function(e,t){return null==e?e:so(e,Jr(t,3),Es)},kn.forOwn=function(e,t){return e&&co(e,Jr(t,3))},kn.forOwnRight=function(e,t){return e&&lo(e,Jr(t,3))},kn.get=gs,kn.gt=Da,kn.gte=Ia,kn.has=function(e,t){return null!=e&&ri(e,t,fo)},kn.hasIn=fs,kn.head=Mi,kn.identity=Ks,kn.includes=function(e,t,n,o){e=Ma(e)?e:Rs(e),n=n&&!o?os(n):0;var r=e.length;return n<0&&(n=an(r+n,0)),Qa(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&Et(e,t,n)>-1},kn.indexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=null==n?0:os(n);return r<0&&(r=an(o+r,0)),Et(e,t,r)},kn.inRange=function(e,t,n){return t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n){return e>=sn(t,n)&&e<an(t,n)}(e=is(e),t,n)},kn.invoke=vs,kn.isArguments=Aa,kn.isArray=Na,kn.isArrayBuffer=Fa,kn.isArrayLike=Ma,kn.isArrayLikeObject=Pa,kn.isBoolean=function(e){return!0===e||!1===e||Ha(e)&&mo(e)==d},kn.isBuffer=La,kn.isDate=ja,kn.isElement=function(e){return Ha(e)&&1===e.nodeType&&!Wa(e)},kn.isEmpty=function(e){if(null==e)return!0;if(Ma(e)&&(Na(e)||"string"==typeof e||"function"==typeof e.splice||La(e)||Xa(e)||Aa(e)))return!e.length;var t=oi(e);if(t==g||t==v)return!e.size;if(hi(e))return!To(e).length;for(var n in e)if(Ce.call(e,n))return!1;return!0},kn.isEqual=function(e,t){return Eo(e,t)},kn.isEqualWith=function(e,t,n){var o=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===o?Eo(e,t,void 0,n):!!o},kn.isError=Ua,kn.isFinite=function(e){return"number"==typeof e&&nn(e)},kn.isFunction=Ba,kn.isInteger=qa,kn.isLength=Ga,kn.isMap=za,kn.isMatch=function(e,t){return e===t||So(e,t,Zr(t))},kn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,So(e,t,Zr(t),n)},kn.isNaN=function(e){return Ka(e)&&e!=+e},kn.isNative=function(e){if(ui(e))throw new he("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return wo(e)},kn.isNil=function(e){return null==e},kn.isNull=function(e){return null===e},kn.isNumber=Ka,kn.isObject=Va,kn.isObjectLike=Ha,kn.isPlainObject=Wa,kn.isRegExp=Ya,kn.isSafeInteger=function(e){return qa(e)&&e>=-9007199254740991&&e<=9007199254740991},kn.isSet=$a,kn.isString=Qa,kn.isSymbol=Ja,kn.isTypedArray=Xa,kn.isUndefined=function(e){return void 0===e},kn.isWeakMap=function(e){return Ha(e)&&oi(e)==S},kn.isWeakSet=function(e){return Ha(e)&&"[object WeakSet]"==mo(e)},kn.join=function(e,t){return null==e?"":on.call(e,t)},kn.kebabCase=Ns,kn.last=Ui,kn.lastIndexOf=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var r=o;return void 0!==n&&(r=(r=os(n))<0?an(o+r,0):sn(r,o-1)),t==t?function(e,t,n){for(var o=n+1;o--;)if(e[o]===t)return o;return o}(e,t,r):yt(e,wt,r,!0)},kn.lowerCase=Fs,kn.lowerFirst=Ms,kn.lt=Za,kn.lte=es,kn.max=function(e){return e&&e.length?oo(e,Ks,go):void 0},kn.maxBy=function(e,t){return e&&e.length?oo(e,Jr(t,2),go):void 0},kn.mean=function(e){return Ct(e,Ks)},kn.meanBy=function(e,t){return Ct(e,Jr(t,2))},kn.min=function(e){return e&&e.length?oo(e,Ks,Oo):void 0},kn.minBy=function(e,t){return e&&e.length?oo(e,Jr(t,2),Oo):void 0},kn.stubArray=rc,kn.stubFalse=ic,kn.stubObject=function(){return{}},kn.stubString=function(){return""},kn.stubTrue=function(){return!0},kn.multiply=uc,kn.nth=function(e,t){return e&&e.length?Ao(e,os(t)):void 0},kn.noConflict=function(){return We._===this&&(We._=Re),this},kn.noop=Js,kn.now=ga,kn.pad=function(e,t,n){e=ss(e);var o=(t=os(t))?zt(e):0;if(!t||o>=t)return e;var r=(t-o)/2;return Nr(Zt(r),n)+e+Nr(Xt(r),n)},kn.padEnd=function(e,t,n){e=ss(e);var o=(t=os(t))?zt(e):0;return t&&o<t?e+Nr(t-o,n):e},kn.padStart=function(e,t,n){e=ss(e);var o=(t=os(t))?zt(e):0;return t&&o<t?Nr(t-o,n)+e:e},kn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ln(ss(e).replace($,""),t||0)},kn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ci(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ns(e),void 0===t?(t=e,e=0):t=ns(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var r=dn();return sn(e+r*(t-e+Ve("1e-"+((r+"").length-1))),t)}return Lo(e,t)},kn.reduce=function(e,t,n){var o=Na(e)?gt:Ot,r=arguments.length<3;return o(e,Jr(t,4),n,r,eo)},kn.reduceRight=function(e,t,n){var o=Na(e)?ft:Ot,r=arguments.length<3;return o(e,Jr(t,4),n,r,to)},kn.repeat=function(e,t,n){return t=(n?ci(e,t,n):void 0===t)?1:os(t),jo(ss(e),t)},kn.replace=function(){var e=arguments,t=ss(e[0]);return e.length<3?t:t.replace(e[1],e[2])},kn.result=function(e,t,n){var o=-1,r=(t=cr(t,e)).length;for(r||(r=1,e=void 0);++o<r;){var i=null==e?void 0:e[xi(t[o])];void 0===i&&(o=r,i=n),e=Ba(i)?i.call(e):i}return e},kn.round=hc,kn.runInContext=e,kn.sample=function(e){return(Na(e)?Un:Bo)(e)},kn.size=function(e){if(null==e)return 0;if(Ma(e))return Qa(e)?zt(e):e.length;var t=oi(e);return t==g||t==v?e.size:To(e).length},kn.snakeCase=Ps,kn.some=function(e,t,n){var o=Na(e)?_t:Wo;return n&&ci(e,t,n)&&(t=void 0),o(e,Jr(t,3))},kn.sortedIndex=function(e,t){return Yo(e,t)},kn.sortedIndexBy=function(e,t,n){return $o(e,t,Jr(n,2))},kn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var o=Yo(e,t);if(o<n&&Ra(e[o],t))return o}return-1},kn.sortedLastIndex=function(e,t){return Yo(e,t,!0)},kn.sortedLastIndexBy=function(e,t,n){return $o(e,t,Jr(n,2),!0)},kn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Yo(e,t,!0)-1;if(Ra(e[n],t))return n}return-1},kn.startCase=Ls,kn.startsWith=function(e,t,n){return e=ss(e),n=null==n?0:$n(os(n),0,e.length),t=Xo(t),e.slice(n,n+t.length)==t},kn.subtract=pc,kn.sum=function(e){return e&&e.length?kt(e,Ks):0},kn.sumBy=function(e,t){return e&&e.length?kt(e,Jr(t,2)):0},kn.template=function(e,t,n){var o=kn.templateSettings;n&&ci(e,t,n)&&(t=void 0),e=ss(e),t=ds({},t,o,qr);var r,i,a=ds({},t.imports,o.imports,qr),s=ys(a),c=It(a,s),l=0,d=t.interpolate||de,u="__p += '",h=fe((t.escape||de).source+"|"+d.source+"|"+(d===G?ne:de).source+"|"+(t.evaluate||de).source+"|$","g"),p="//# sourceURL="+(Ce.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ue+"]")+"\n";e.replace(h,(function(t,n,o,a,s,c){return o||(o=a),u+=e.slice(l,c).replace(ue,jt),n&&(r=!0,u+="' +\n__e("+n+") +\n'"),s&&(i=!0,u+="';\n"+s+";\n__p += '"),o&&(u+="' +\n((__t = ("+o+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),u+="';\n";var m=Ce.call(t,"variable")&&t.variable;m||(u="with (obj) {\n"+u+"\n}\n"),u=(i?u.replace(N,""):u).replace(F,"$1").replace(M,"$1;"),u="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(r?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+u+"return __p\n}";var g=qs((function(){return pe(s,p+"return "+u).apply(void 0,c)}));if(g.source=u,Ua(g))throw g;return g},kn.times=function(e,t){if((e=os(e))<1||e>9007199254740991)return[];var n=4294967295,o=sn(e,4294967295);e-=4294967295;for(var r=Rt(o,t=Jr(t));++n<e;)t(n);return r},kn.toFinite=ns,kn.toInteger=os,kn.toLength=rs,kn.toLower=function(e){return ss(e).toLowerCase()},kn.toNumber=is,kn.toSafeInteger=function(e){return e?$n(os(e),-9007199254740991,9007199254740991):0===e?e:0},kn.toString=ss,kn.toUpper=function(e){return ss(e).toUpperCase()},kn.trim=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(Y,"");if(!e||!(t=Xo(t)))return e;var o=Kt(e),r=Kt(t);return dr(o,Nt(o,r),Ft(o,r)+1).join("")},kn.trimEnd=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(Q,"");if(!e||!(t=Xo(t)))return e;var o=Kt(e);return dr(o,0,Ft(o,Kt(t))+1).join("")},kn.trimStart=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace($,"");if(!e||!(t=Xo(t)))return e;var o=Kt(e);return dr(o,Nt(o,Kt(t))).join("")},kn.truncate=function(e,t){var n=30,o="...";if(Va(t)){var r="separator"in t?t.separator:r;n="length"in t?os(t.length):n,o="omission"in t?Xo(t.omission):o}var i=(e=ss(e)).length;if(Ut(e)){var a=Kt(e);i=a.length}if(n>=i)return e;var s=n-zt(o);if(s<1)return o;var c=a?dr(a,0,s).join(""):e.slice(0,s);if(void 0===r)return c+o;if(a&&(s+=c.length-s),Ya(r)){if(e.slice(s).search(r)){var l,d=c;for(r.global||(r=fe(r.source,ss(oe.exec(r))+"g")),r.lastIndex=0;l=r.exec(d);)var u=l.index;c=c.slice(0,void 0===u?s:u)}}else if(e.indexOf(Xo(r),s)!=s){var h=c.lastIndexOf(r);h>-1&&(c=c.slice(0,h))}return c+o},kn.unescape=function(e){return(e=ss(e))&&j.test(e)?e.replace(P,Wt):e},kn.uniqueId=function(e){var t=++Te;return ss(e)+t},kn.upperCase=js,kn.upperFirst=Us,kn.each=sa,kn.eachRight=ca,kn.first=Mi,Qs(kn,(dc={},co(kn,(function(e,t){Ce.call(kn.prototype,t)||(dc[t]=e)})),dc),{chain:!1}),kn.VERSION="4.17.20",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){kn[e].placeholder=kn})),st(["drop","take"],(function(e,t){An.prototype[e]=function(n){n=void 0===n?1:an(os(n),0);var o=this.__filtered__&&!t?new An(this):this.clone();return o.__filtered__?o.__takeCount__=sn(n,o.__takeCount__):o.__views__.push({size:sn(n,4294967295),type:e+(o.__dir__<0?"Right":"")}),o},An.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,o=1==n||3==n;An.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Jr(e,3),type:n}),t.__filtered__=t.__filtered__||o,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");An.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");An.prototype[e]=function(){return this.__filtered__?new An(this):this[n](1)}})),An.prototype.compact=function(){return this.filter(Ks)},An.prototype.find=function(e){return this.filter(e).head()},An.prototype.findLast=function(e){return this.reverse().find(e)},An.prototype.invokeMap=Uo((function(e,t){return"function"==typeof e?new An(this):this.map((function(n){return vo(n,e,t)}))})),An.prototype.reject=function(e){return this.filter(Ca(Jr(e)))},An.prototype.slice=function(e,t){e=os(e);var n=this;return n.__filtered__&&(e>0||t<0)?new An(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=os(t))<0?n.dropRight(-t):n.take(t-e)),n)},An.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},An.prototype.toArray=function(){return this.take(4294967295)},co(An.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),r=kn[o?"take"+("last"==t?"Right":""):t],i=o||/^find/.test(t);r&&(kn.prototype[t]=function(){var t=this.__wrapped__,a=o?[1]:arguments,s=t instanceof An,c=a[0],l=s||Na(t),d=function(e){var t=r.apply(kn,mt([e],a));return o&&u?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(s=l=!1);var u=this.__chain__,h=!!this.__actions__.length,p=i&&!u,m=s&&!h;if(!i&&l){t=m?t:new An(this);var g=e.apply(t,a);return g.__actions__.push({func:na,args:[d],thisArg:void 0}),new In(g,u)}return p&&m?e.apply(this,a):(g=this.thru(d),p?o?g.value()[0]:g.value():g)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ve[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);kn.prototype[e]=function(){var e=arguments;if(o&&!this.__chain__){var r=this.value();return t.apply(Na(r)?r:[],e)}return this[n]((function(n){return t.apply(Na(n)?n:[],e)}))}})),co(An.prototype,(function(e,t){var n=kn[t];if(n){var o=n.name+"";Ce.call(vn,o)||(vn[o]=[]),vn[o].push({name:t,func:n})}})),vn[Rr(void 0,2).name]=[{name:"wrapper",func:void 0}],An.prototype.clone=function(){var e=new An(this.__wrapped__);return e.__actions__=br(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=br(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=br(this.__views__),e},An.prototype.reverse=function(){if(this.__filtered__){var e=new An(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},An.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Na(e),o=t<0,r=n?e.length:0,i=function(e,t,n){var o=-1,r=n.length;for(;++o<r;){var i=n[o],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=sn(t,e+a);break;case"takeRight":e=an(e,t-a)}}return{start:e,end:t}}(0,r,this.__views__),a=i.start,s=i.end,c=s-a,l=o?s:a-1,d=this.__iteratees__,u=d.length,h=0,p=sn(c,this.__takeCount__);if(!n||!o&&r==c&&p==c)return or(e,this.__actions__);var m=[];e:for(;c--&&h<p;){for(var g=-1,f=e[l+=t];++g<u;){var _=d[g],b=_.iteratee,v=_.type,y=b(f);if(2==v)f=y;else if(!y){if(1==v)continue e;break e}}m[h++]=f}return m},kn.prototype.at=oa,kn.prototype.chain=function(){return ta(this)},kn.prototype.commit=function(){return new In(this.value(),this.__chain__)},kn.prototype.next=function(){void 0===this.__values__&&(this.__values__=ts(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},kn.prototype.plant=function(e){for(var t,n=this;n instanceof Dn;){var o=ki(n);o.__index__=0,o.__values__=void 0,t?r.__wrapped__=o:t=o;var r=o;n=n.__wrapped__}return r.__wrapped__=e,t},kn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof An){var t=e;return this.__actions__.length&&(t=new An(this)),(t=t.reverse()).__actions__.push({func:na,args:[Vi],thisArg:void 0}),new In(t,this.__chain__)}return this.thru(Vi)},kn.prototype.toJSON=kn.prototype.valueOf=kn.prototype.value=function(){return or(this.__wrapped__,this.__actions__)},kn.prototype.first=kn.prototype.head,Xe&&(kn.prototype[Xe]=function(){return this}),kn}();We._=Yt,void 0===(r=function(){return Yt}.call(t,n,t,o))||(o.exports=r)}).call(this)}).call(this,n(6),n(368)(e))},function(e,t,n){"use strict";let o;n.d(t,"a",(function(){return o})),function(e){e.AdvancedEncryption="UIFeature.advancedEncryption",e.URLPreviews="UIFeature.urlPreviews",e.Widgets="UIFeature.widgets",e.Voip="UIFeature.voip",e.Feedback="UIFeature.feedback",e.Registration="UIFeature.registration",e.PasswordReset="UIFeature.passwordReset",e.Deactivate="UIFeature.deactivate",e.ShareQRCode="UIFeature.shareQrCode",e.ShareSocial="UIFeature.shareSocial",e.IdentityServer="UIFeature.identityServer",e.ThirdPartyID="UIFeature.thirdPartyId",e.Flair="UIFeature.flair",e.Communities="UIFeature.communities",e.AdvancedSettings="UIFeature.advancedSettings",e.RoomHistorySettings="UIFeature.roomHistorySettings"}(o||(o={}))},function(e,t,n){"use strict";var o=n(83),r=n.n(o);class i{constructor(){r()(this,"platform",null)}get(){return this.platform}set(e){this.platform=e}}window.mxPlatformPeg||(window.mxPlatformPeg=new i),t.a=window.mxPlatformPeg},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var o=n(100),r=n.n(o),i=n(83),a=n.n(i),s=n(169),c=n(84),l=n(107),d=n(94),u=n(88),h=n(125),p=n(126),m=n(307);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}let _=window.TextEncoder;_||(_=m.TextEncoder);var b;!function(e){e.Landscape="landscape",e.Portrait="portrait"}(b||(b={}));const v=async e=>{const t=(new _).encode(e),n=await window.crypto.subtle.digest("sha-256",t);return[...new Uint8Array(n)].map(e=>e.toString(16).padStart(2,"0")).join("")},y=new Set(["register","login","forgot_password","soft_logout","new","settings","welcome","home","start","directory","start_sso","start_cas","groups","complete_security","post_registration","room","user","group"]);const E=e=>{var t,n;const o=u.a.get(),r=null==o?void 0:o.getRoom(e);return{num_users:null==r?void 0:r.getJoinedMemberCount(),is_encrypted:null==o?void 0:o.isRoomEncrypted(e),is_public:"public"===(null==r||null===(t=r.currentState.getStateEvents("m.room.join_rules",""))||void 0===t||null===(n=t.getContent())||void 0===n?void 0:n.join_rule)}};class S{constructor(){a()(this,"baseUrl",null),a()(this,"appKey",null),a()(this,"userKey",null),a()(this,"anonymous",void 0),a()(this,"appPlatform",void 0),a()(this,"appVersion","unknown"),a()(this,"initTime",S.getTimestamp()),a()(this,"firstPage",!0),a()(this,"heartbeatIntervalId",void 0),a()(this,"activityIntervalId",void 0),a()(this,"trackTime",!0),a()(this,"lastBeat",void 0),a()(this,"storedDuration",0),a()(this,"lastView",void 0),a()(this,"lastViewTime",0),a()(this,"lastViewStoredDuration",0),a()(this,"sessionStarted",!1),a()(this,"heartbeatEnabled",!1),a()(this,"inactivityCounter",0),a()(this,"pendingEvents",[]),a()(this,"lastMsTs",0),a()(this,"getOrientation",()=>window.innerWidth>window.innerHeight?b.Landscape:b.Portrait),a()(this,"reportOrientation",()=>{this.track("[CLY]_orientation",{mode:this.getOrientation()})}),a()(this,"endSession",()=>{this.sessionStarted&&(window.removeEventListener("resize",this.reportOrientation),this.reportViewDuration(),this.request({end_session:1,session_duration:S.getTimestamp()-this.lastBeat})),this.sessionStarted=!1}),a()(this,"onVisibilityChange",()=>{document.hidden?this.stopTime():this.startTime()}),a()(this,"onUserActivity",()=>{this.inactivityCounter>=20&&this.startTime(),this.inactivityCounter=0})}static get instance(){return S.internalInstance}get disabled(){return!this.baseUrl}canEnable(){var e,t;const n=d.a.get();return Boolean("1"!==navigator.doNotTrack&&(null==n||null===(e=n.countly)||void 0===e?void 0:e.url)&&(null==n||null===(t=n.countly)||void 0===t?void 0:t.appKey))}async changeUserKey(e,t=!1){const n=this.userKey;this.userKey=e,n&&t&&await this.request({old_device_id:n})}async enable(e=!0){if(!this.disabled&&this.anonymous===e)return;if(!this.canEnable())return;this.disabled||this.request();const t=d.a.get();this.baseUrl=new URL("/i",t.countly.url),this.appKey=t.countly.appKey,this.anonymous=e,e?await this.changeUserKey(Object(s.b)(64)):await this.changeUserKey(await v(u.a.get().getUserId()),!0);const n=l.a.get();this.appPlatform=n.getHumanReadableName();try{this.appVersion=await n.getAppVersion()}catch(e){console.warn("Failed to get app version, using 'unknown'")}this.heartbeatIntervalId=setInterval(this.heartbeat.bind(this),5e3),this.trackSessions(),this.trackErrors()}async disable(){this.disabled||(await this.track("Opt-Out"),this.endSession(),window.clearInterval(this.heartbeatIntervalId),window.clearTimeout(this.activityIntervalId),this.baseUrl=null,window.removeEventListener("beforeunload",this.endSession),window.removeEventListener("unload",this.endSession),window.removeEventListener("visibilitychange",this.onVisibilityChange),window.removeEventListener("mousemove",this.onUserActivity),window.removeEventListener("click",this.onUserActivity),window.removeEventListener("keydown",this.onUserActivity),window.removeEventListener("scroll",this.onUserActivity))}reportFeedback(e,t){this.track("[CLY]_star_rating",{rating:e,comment:t},null,{},!0)}trackPageChange(e){this.disabled||this.trackPageView()}async trackPageView(){this.reportViewDuration(),await Object(h.d)(0);const e=await async function(e=!0){const t=Object(s.b)(8),{origin:n,hash:o}=window.location;let{pathname:r}=window.location;n.startsWith("file://")&&(r=`/<redacted_${t}>/`);let[i,a,...c]=o.split("/");y.has(a)||(a=`<redacted_${t}>`);for(let n=0;n<c.length;n++)c[n]=e?`<redacted_${t}>`:await v(c[n]);const l=n+r+`${i}/${a}/${c.join("/")}`,d={};let u="$/"+o;switch(a){case"room":{u="view_room";const e=p.a.getRoomId();u+=" "+c[0],d.room_id=c[0],Object.assign(d,E(e));break}}return{name:u,url:l,meta:d}}(this.anonymous),t=e.name;this.lastView=t,this.lastViewTime=S.getTimestamp();const n=f(f({},e.meta),{},{name:t,visit:1,domain:window.location.hostname,view:e.url,segment:this.appPlatform,start:this.firstPage});this.firstPage&&(this.firstPage=!1),this.track("[CLY]_view",n)}static getTimestamp(){return Math.floor((new Date).getTime()/1e3)}getMsTimestamp(){const e=(new Date).getTime();return this.lastMsTs>=e?this.lastMsTs++:this.lastMsTs=e,this.lastMsTs}async recordError(e,t=!1){if(this.disabled||this.anonymous)return;let n="";"object"==typeof e?void 0!==e.stack?n=e.stack:(void 0!==e.name&&(n+=e.name+":"),void 0!==e.message&&(n+=e.message+"\n"),void 0!==e.fileName&&(n+="in "+e.fileName+"\n"),void 0!==e.lineNumber&&(n+="on "+e.lineNumber),void 0!==e.columnNumber&&(n+=":"+e.columnNumber)):n=e+"",n=await(async(e,t,n)=>{const o=[];e.replace(t,(...e)=>(o.push(n(...e)),""));const r=await Promise.all(o);return e.replace(t,()=>r.shift())})(n,/([!@+#]).+?:[\w:.]+/g,async(e,t)=>t+await v(e.substring(1)));const o=this.getMetrics(),r={_resolution:null==o?void 0:o._resolution,_error:n,_app_version:this.appVersion,_run:S.getTimestamp()-this.initTime,_nonfatal:!t,_view:this.lastView};void 0!==navigator.onLine&&(r._online=navigator.onLine),r._background=document.hasFocus(),this.request({crash:JSON.stringify(r)})}trackErrors(){window.onerror=(e,t,n,o,r)=>{if(void 0!==r)this.recordError(r,!1);else{let r="";void 0!==e&&(r+=e+"\n"),void 0!==t&&(r+="at "+t),void 0!==n&&(r+=":"+n),void 0!==o&&(r+=":"+o),r+="\n";try{const e=[];let t=arguments.callee.caller;for(;t;)e.push(t.name),t=t.caller;r+=e.join("\n")}catch(e){}this.recordError(r,!1)}},window.addEventListener("unhandledrejection",e=>{var t;this.recordError(new Error(`Unhandled rejection (reason: ${(null===(t=e.reason)||void 0===t?void 0:t.stack)||e.reason}).`),!0)})}heartbeat(){const e={};if(this.sessionStarted&&this.trackTime){const t=S.getTimestamp();t-this.lastBeat>=60&&(e.session_duration=t-this.lastBeat,this.lastBeat=t)}(this.pendingEvents.length>0||e.session_duration)&&this.request(e)}async request(e={}){const t=f(f({app_key:this.appKey,device_id:this.userKey},this.getTimeParams()),e);if(this.pendingEvents.length>0){const e=10,n=this.pendingEvents.splice(0,e);t.events=JSON.stringify(n)}const n=new URLSearchParams(t);try{await window.fetch(this.baseUrl.toString(),{method:"POST",mode:"no-cors",cache:"no-cache",redirect:"follow",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n})}catch(e){console.error("Analytics error: ",e)}}getTimeParams(){const e=new Date;return{timestamp:this.getMsTimestamp(),hour:e.getHours(),dow:e.getDay()}}queue(e){const{count:t=1}=e,n=r()(e,["count"]),o=f(f(f({},this.getTimeParams()),n),{},{count:t,platform:this.appPlatform,app_version:this.appVersion});this.pendingEvents.push(o),this.pendingEvents.length>1e3&&this.pendingEvents.shift()}startTime(){this.trackTime||(this.trackTime=!0,this.lastBeat=S.getTimestamp()-this.storedDuration,this.lastViewTime=S.getTimestamp()-this.lastViewStoredDuration,this.lastViewStoredDuration=0)}stopTime(){this.trackTime&&(this.trackTime=!1,this.storedDuration=S.getTimestamp()-this.lastBeat,this.lastViewStoredDuration=S.getTimestamp()-this.lastViewTime)}getMetrics(){if(this.anonymous)return;const e={};return e._app_version=this.appVersion,e._ua=navigator.userAgent,screen.width&&screen.height&&(e._resolution=`${screen.width}x${screen.height}`),window.devicePixelRatio&&(e._density=window.devicePixelRatio),e._locale=Object(c.d)(),e}async beginSession(e=!0){if(!this.sessionStarted){this.reportOrientation(),window.addEventListener("resize",this.reportOrientation),this.lastBeat=S.getTimestamp(),this.sessionStarted=!0,this.heartbeatEnabled=e;const t={custom:{home_server:u.a.get()&&u.a.getHomeserverName(),anonymous:this.anonymous}},n={begin_session:1,user_details:JSON.stringify(t)},o=this.getMetrics();o&&(n.metrics=JSON.stringify(o)),await this.request(n)}}reportViewDuration(){this.lastView&&(this.track("[CLY]_view",{name:this.lastView},null,{dur:this.trackTime?S.getTimestamp()-this.lastViewTime:this.lastViewStoredDuration}),this.lastView=null)}trackSessions(){this.beginSession(),this.startTime(),window.addEventListener("beforeunload",this.endSession),window.addEventListener("unload",this.endSession),window.addEventListener("visibilitychange",this.onVisibilityChange),window.addEventListener("mousemove",this.onUserActivity),window.addEventListener("click",this.onUserActivity),window.addEventListener("keydown",this.onUserActivity),window.addEventListener("scroll",this.onUserActivity),this.activityIntervalId=setInterval(()=>{this.inactivityCounter++,this.inactivityCounter>=20&&this.stopTime()},6e4)}trackBeginInvite(e){this.track("begin_invite",{},e)}trackSendInvite(e,t,n){this.track("send_invite",{},t,{dur:S.getTimestamp()-e,sum:n})}async trackRoomCreate(e,t){if(this.disabled)return;let n=S.getTimestamp();const o=u.a.get();o.getRoom(t)||(await new Promise(e=>{const n=r=>{r.roomId===t&&(o.off("Room",n),e())};o.on("Room",n)}),n=S.getTimestamp()),this.track("create_room",{},t,{dur:n-e})}trackRoomJoin(e,t,n){this.track("join_room",{type:n},t,{dur:S.getTimestamp()-e})}async trackSendMessage(e,t,n,o,r,i){if(this.disabled)return;const a=u.a.get().getRoom(n),s=(await t).event_id;let c=S.getTimestamp();a.findEventById(s)||(await new Promise(e=>{const t=n=>{n.getId()===s&&(a.off("Room.localEchoUpdated",t),e())};a.on("Room.localEchoUpdated",t)}),c=S.getTimestamp()),this.track("send_message",{is_edit:o,is_reply:r,msgtype:i.msgtype,format:i.format},n,{dur:c-e})}trackStartCall(e,t=!1,n=!1){this.track("start_call",{is_video:t,is_jitsi:n},e)}trackJoinCall(e,t=!1,n=!1){this.track("join_call",{is_video:t,is_jitsi:n},e)}trackRoomDirectoryBegin(){this.track("room_directory")}trackRoomDirectory(e){this.track("room_directory_done",{},null,{dur:S.getTimestamp()-e})}trackRoomDirectorySearch(e,t){this.track("room_directory_search",{query_length:t.length,query_num_words:t.split(" ").length},null,{sum:e})}async track(e,t,n,o,r=!1){if(this.disabled&&!r)return;let i=t||{};n&&(i=f(f({room_id:await v(n)},E(n)),t)),this.queue(f({key:e,count:1,segmentation:i},o)),this.disabled&&r&&await this.request({device_id:Object(s.b)(64)})}}a()(S,"internalInstance",new S),window.mxCountlyAnalytics=S},function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"e",(function(){return g})),n.d(t,"h",(function(){return f})),n.d(t,"g",(function(){return _})),n.d(t,"f",(function(){return b})),n.d(t,"d",(function(){return v})),n.d(t,"k",(function(){return y})),n.d(t,"l",(function(){return E})),n.d(t,"c",(function(){return S})),n.d(t,"j",(function(){return C})),n.d(t,"i",(function(){return T})),n.d(t,"b",(function(){return D}));var o=n(920),r=n.n(o),i=n(1),a=(n(168),n(88)),s=n(553),c=n(401),l=n(83),d=n.n(l);class u extends c.b{constructor(e){if(super(),d()(this,"_elementUrl",void 0),this._elementUrl=e,!this._elementUrl.startsWith("http:")&&!this._elementUrl.startsWith("https:"))throw new Error("Element prefix URL does not appear to be an HTTP(S) URL")}forEvent(e,t,n){return`${this._elementUrl}/#/room/${e}/${t}${this.encodeServerCandidates(n)}`}forRoom(e,t){return`${this._elementUrl}/#/room/${e}${this.encodeServerCandidates(t)}`}forUser(e){return`${this._elementUrl}/#/user/${e}`}forGroup(e){return`${this._elementUrl}/#/group/${e}`}forEntity(e){if("!"===e[0]||"#"===e[0])return this.forRoom(e);if("@"===e[0])return this.forUser(e);if("+"===e[0])return this.forGroup(e);throw new Error("Unrecognized entity")}isPermalinkHost(e){const t=new URL(this._elementUrl);return e===(t.host||t.hostname)}encodeServerCandidates(e){return e&&0!==e.length?"?via="+e.map(e=>encodeURIComponent(e)).join("&via="):""}parsePermalink(e){if(!e||!e.startsWith(this._elementUrl))throw new Error("Does not appear to be a permalink");const t=e.substring((this._elementUrl+"/#/").length);return u.parseAppRoute(t)}static parseAppRoute(e){const t=e.split("/");if(t.length<2)throw new Error("URL is missing parts");const[n]=t.splice(-1,1),[o,r=""]=n.split("?");t.push(o);const i=t[0],a=t[1];if("user"===i)return c.a.forUser(a);if("group"===i)return c.a.forGroup(a);if("room"===i){const e=t.length>2?t.slice(2).join("/"):"",n=r.split(/&?via=/).filter(e=>!!e);return c.a.forEvent(a,e,n)}throw new Error("Unknown entity type in permalink")}}var h=n(402),p=n(94);class m{constructor(e,t=null){if(this._room=e,this._roomId=e?e.roomId:t,this._highestPlUserId=null,this._populationMap=null,this._bannedHostsRegexps=null,this._allowedHostsRegexps=null,this._serverCandidates=null,this._started=!1,!this._roomId)throw new Error("Failed to resolve a roomId for the permalink creator to use");this.onMembership=this.onMembership.bind(this),this.onRoomState=this.onRoomState.bind(this)}load(){this._room&&this._room.currentState?(this._updateAllowedServers(),this._updateHighestPlUser(),this._updatePopulationMap(),this._updateServerCandidates()):console.warn("Tried to load a permalink creator with no room state")}start(){this.load(),this._room.on("RoomMember.membership",this.onMembership),this._room.on("RoomState.events",this.onRoomState),this._started=!0}stop(){this._room.removeListener("RoomMember.membership",this.onMembership),this._room.removeListener("RoomState.events",this.onRoomState),this._started=!1}get serverCandidates(){return this._serverCandidates}isStarted(){return this._started}forEvent(e){return w().forEvent(this._roomId,e,this._serverCandidates)}forShareableRoom(){if(this._room){const e=this._room.getCanonicalAlias();if(e)return w().forRoom(e,this._serverCandidates)}return w().forRoom(this._roomId,this._serverCandidates)}forRoom(){return w().forRoom(this._roomId,this._serverCandidates)}onRoomState(e){switch(e.getType()){case"m.room.server_acl":return this._updateAllowedServers(),this._updateHighestPlUser(),this._updatePopulationMap(),void this._updateServerCandidates();case"m.room.power_levels":return this._updateHighestPlUser(),void this._updateServerCandidates()}}onMembership(e,t,n){const o=t.userId,r=t.membership,i=x(o),a="join"!==n&&"join"===r;"join"===n&&"join"!==r?this._populationMap[i]--:a&&this._populationMap[i]++,this._updateHighestPlUser(),this._updateServerCandidates()}_updateHighestPlUser(){const e=this._room.currentState.getStateEvents("m.room.power_levels","");if(e){const t=e.getContent();if(t){const e=t.users;if(e){const t=Object.entries(e).filter(([e])=>{const t=this._room.getMember(e);if(!t||"join"!==t.membership)return!1;const n=x(e);return!R(n)&&!k(n,this._bannedHostsRegexps)&&k(n,this._allowedHostsRegexps)}).reduce((e,t)=>t[1]>e[1]?t:e,[null,0]),[n,o]=t;if(null!==n&&o>=50)return void(this._highestPlUserId=n)}}}this._highestPlUserId=null}_updateAllowedServers(){const e=[];let t=[new RegExp(".*")];if(this._room.currentState){const n=this._room.currentState.getStateEvents("m.room.server_acl","");if(n&&n.getContent()){const o=e=>new RegExp("^"+i.o(e,!1)+"$");(n.getContent().deny||[]).forEach(t=>e.push(o(t)));const r=n.getContent().allow||[];t=[],r.forEach(e=>t.push(o(e)))}}this._bannedHostsRegexps=e,this._allowedHostsRegexps=t}_updatePopulationMap(){const e={};for(const t of this._room.getJoinedMembers()){const n=x(t.userId);e[n]||(e[n]=0),e[n]++}this._populationMap=e}_updateServerCandidates(){let e=[];this._highestPlUserId&&e.push(x(this._highestPlUserId));const t=Object.keys(this._populationMap).sort((e,t)=>this._populationMap[t]-this._populationMap[e]).filter(t=>!e.includes(t)&&!R(t)&&!k(t,this._bannedHostsRegexps)&&k(t,this._allowedHostsRegexps)).slice(0,3-e.length);e=e.concat(t),this._serverCandidates=e}}function g(e){return w().forEntity(e)}function f(e){return w().forUser(e)}function _(e){if(!e)throw new Error("can't permalink a falsey roomId");if("!"!==e[0])return w().forRoom(e,[]);const t=a.a.get().getRoom(e);if(!t)return w().forRoom(e,[]);const n=new m(t);return n.load(),n.forRoom()}function b(e){return w().forGroup(e)}function v(e){return!!(new s.b).isPermalinkHost(e)||w().isPermalinkHost(e)}function y(e){return e?"#"===e[0]||"!"===e[0]?_(e):"@"===e[0]?f(e):"+"===e[0]?b(e):E(e):null}function E(e){if(!e.startsWith("http:")&&!e.startsWith("https:"))return e;const t=e.match(h.a.ELEMENT_URL_PATTERN);if(t)return t[1];try{const t=C(e);if(t)if(t.roomIdOrAlias){const n=t.eventId?"/"+t.eventId:"";e=`#/room/${t.roomIdOrAlias}${n}`,t.viaServers.length>0&&(e+=(new s.b).encodeServerCandidates(t.viaServers))}else t.groupId?e="#/group/"+t.groupId:t.userId&&(e="#/user/"+t.userId)}catch(e){}return e}function S(e){try{let t=C(e);if(!t){const n=e.match(h.a.ELEMENT_URL_PATTERN);if(n){const e=new u("http://localhost"),o=n[1].split("#").slice(1).join("#");t=e.parsePermalink("http://localhost/#"+o)}}if(!t)return null;if(t.userId)return t.userId;if(t.groupId)return t.groupId;if(t.roomIdOrAlias)return t.roomIdOrAlias}catch(e){}return null}function w(){const e=p.a.get().permalinkPrefix;return e&&e!==s.a?new u(e):new s.b}function C(e){const t=p.a.get().permalinkPrefix;return e.startsWith(s.a)?(new s.b).parsePermalink(e):t&&e.startsWith(t)?new u(t).parsePermalink(e):null}function T(e){try{const t=e.replace("#/","");return u.parseAppRoute(t)}catch(e){}return null}function x(e){return e.split(":").splice(1).join(":")}function O(e){return e?new URL("https://"+e).hostname:null}function k(e,t){if(!(e=O(e)))return!0;if(t.length>0&&!t[0].test)throw new Error(t[0]);return t.filter(t=>t.test(e)).length>0}function R(e){return!!(e=O(e))&&(e.startsWith("[")&&e.endsWith("]")&&(e=e.substring(1,e.length-1)),r()(e))}const D=e=>{const t=new m(e);return t.load(),t.serverCandidates}},function(e,t,n){"use strict";let o,r;n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a})),function(e){e.RoomCanonicalAlias="m.room.canonical_alias",e.RoomCreate="m.room.create",e.RoomJoinRules="m.room.join_rules",e.RoomMember="m.room.member",e.RoomThirdPartyInvite="m.room.third_party_invite",e.RoomPowerLevels="m.room.power_levels",e.RoomName="m.room.name",e.RoomTopic="m.room.topic",e.RoomAvatar="m.room.avatar",e.RoomPinnedEvents="m.room.pinned_events",e.RoomEncryption="m.room.encryption",e.RoomHistoryVisibility="m.room.history_visibility",e.RoomGuestAccess="m.room.guest_access",e.RoomServerAcl="m.room.server_acl",e.RoomTombstone="m.room.tombstone",e.RoomAliases="m.room.aliases",e.SpaceChild="org.matrix.msc1772.space.child",e.SpaceParent="org.matrix.msc1772.space.parent",e.RoomRedaction="m.room.redaction",e.RoomMessage="m.room.message",e.RoomMessageEncrypted="m.room.encrypted",e.Sticker="m.sticker",e.CallInvite="m.call.invite",e.CallCandidates="m.call.candidates",e.CallAnswer="m.call.answer",e.CallHangup="m.call.hangup",e.CallReject="m.call.reject",e.CallSelectAnswer="m.call.select_answer",e.CallNegotiate="m.call.negotiate",e.CallReplaces="m.call.replaces",e.KeyVerificationRequest="m.key.verification.request",e.KeyVerificationStart="m.key.verification.start",e.KeyVerificationCancel="m.key.verification.cancel",e.KeyVerificationMac="m.key.verification.mac",e.KeyVerificationDone="m.key.verification.done",e.RoomMessageFeedback="m.room.message.feedback",e.Typing="m.typing",e.Receipt="m.receipt",e.Presence="m.presence",e.FullyRead="m.fully_read",e.Tag="m.tag",e.PushRules="m.push_rules",e.Direct="m.direct",e.IgnoredUserList="m.ignored_user_list",e.RoomKey="m.room_key",e.RoomKeyRequest="m.room_key_request",e.ForwardedRoomKey="m.forwarded_room_key",e.Dummy="m.dummy"}(o||(o={})),function(e){e.Text="m.text",e.Emote="m.emote",e.Notice="m.notice",e.Image="m.image",e.File="m.file",e.Audio="m.audio",e.Location="m.location",e.Video="m.video"}(r||(r={}));const i="org.matrix.msc1772.type";let a;!function(e){e.Space="org.matrix.msc1772.space"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var o,r=n(95),i=n.n(r),a=n(100),s=n.n(a),c=n(83),l=n.n(c),d=n(82),u=n.n(d),h=n(92),p=n.n(h),m=n(93),g=n(204),f=n(85);let _=Object(f.a)("views.elements.AccessibleTooltipButton")(o=class extends u.a.PureComponent{constructor(e){super(e),l()(this,"onMouseOver",()=>{this.props.forceHide||this.setState({hover:!0})}),l()(this,"onMouseLeave",()=>{this.setState({hover:!1})}),this.state={hover:!1}}componentDidUpdate(e){!e.forceHide&&this.props.forceHide&&this.state.hover&&this.setState({hover:!1})}render(){const e=this.props,{title:t,tooltip:n,children:o,tooltipClassName:r,forceHide:a,yOffset:c}=e,l=s()(e,["title","tooltip","children","tooltipClassName","forceHide","yOffset"]),d=this.state.hover?u.a.createElement(g.b,{className:"mx_AccessibleTooltipButton_container",tooltipClassName:p()("mx_AccessibleTooltipButton_tooltip",r),label:n||t,yOffset:c}):u.a.createElement("div",null);return u.a.createElement(m.a,i()({},l,{onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave,"aria-label":t}),o,d)}})||o},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(82),r=n.n(o);class i extends r.a.Component{constructor(e){super(e),this._collectContainerRef=this._collectContainerRef.bind(this)}_collectContainerRef(e){e&&!this.containerRef&&(this.containerRef=e),this.props.wrappedRef&&this.props.wrappedRef(e)}getScrollTop(){return this.containerRef.scrollTop}render(){return r.a.createElement("div",{ref:this._collectContainerRef,style:this.props.style,className:["mx_AutoHideScrollbar",this.props.className].join(" "),onScroll:this.props.onScroll,onWheel:this.props.onWheel,tabIndex:this.props.tabIndex},this.props.children)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(83),r=n.n(o),i=n(88),a=n(105);class s{constructor(e){r()(this,"matrixClient",void 0),r()(this,"roomToUser",null),r()(this,"userToRooms",null),r()(this,"hasSentOutPatchDirectAccountDataPatch",void 0),r()(this,"mDirectEvent",void 0),r()(this,"onAccountData",e=>{"m.direct"==e.getType()&&(this.mDirectEvent=this.matrixClient.getAccountData("m.direct").getContent()||{},this.userToRooms=null,this.roomToUser=null)}),this.matrixClient=e,this.hasSentOutPatchDirectAccountDataPatch=!1;const t=e.getAccountData("m.direct");this.mDirectEvent=t?t.getContent():{}}static makeShared(){return s.sharedInstance=new s(i.a.get()),s.sharedInstance}static shared(){return s.sharedInstance}start(){this.populateRoomToUser(),this.matrixClient.on("accountData",this.onAccountData)}stop(){this.matrixClient.removeListener("accountData",this.onAccountData)}patchUpSelfDMs(e){const t=this.matrixClient.getUserId(),n=e[t];if(n){const o=n.map(e=>{const n=this.matrixClient.getRoom(e);if(n){const o=n.guessDMUserId();if(o&&o!==t)return{userId:o,roomId:e}}}).filter(e=>!!e);return!!o.length&&(e[t]=n.filter(e=>!o.some(t=>t.roomId===e)),o.forEach(({userId:t,roomId:n})=>{const o=e[t];o?(o.push(n),e[t]=Object(a.uniq)(o)):e[t]=[n]}),!0)}}getDMRoomsForUserId(e){return this.getUserToRooms()[e]||[]}getDMRoomForIdentifiers(e){let t=this.getDMRoomsForUserId(e[0]);for(let n=1;n<e.length;n++){const o=this.getDMRoomsForUserId(e[n]);t=t.filter(e=>o.includes(e))}return t.map(e=>i.a.get().getRoom(e)).filter(e=>e&&"join"===e.getMyMembership())[0]}getUserIdForRoomId(e){if(null==this.roomToUser&&this.populateRoomToUser(),void 0===this.roomToUser[e]){const t=this.matrixClient.getRoom(e);if(t)return t.getDMInviter()}return this.roomToUser[e]}getUniqueRoomsWithIndividuals(){return this.roomToUser?Object.keys(this.roomToUser).map(e=>({userId:this.getUserIdForRoomId(e),room:this.matrixClient.getRoom(e)})).filter(e=>e.userId&&e.room&&2===e.room.getInvitedAndJoinedMemberCount()).reduce((e,t)=>(e[t.userId]=t.room)&&e,{}):{}}getUserToRooms(){if(!this.userToRooms){const e=this.mDirectEvent,t=e[this.matrixClient.getUserId()];if(t&&t.length){const t=this.patchUpSelfDMs(e);console.warn("Invalid m.direct account data detected (self-chats that shouldn't be), patching it up."),t&&!this.hasSentOutPatchDirectAccountDataPatch&&(this.hasSentOutPatchDirectAccountDataPatch=!0,this.matrixClient.setAccountData("m.direct",e))}this.userToRooms=e}return this.userToRooms}populateRoomToUser(){this.roomToUser={};for(const e of Object.keys(this.getUserToRooms()))for(const t of this.userToRooms[e])this.roomToUser[t]=e}}r()(s,"sharedInstance",void 0)},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var o=n(83),r=n.n(o),i=n(7),a=n(504),s=n.n(a);const c="update";class l extends i.EventEmitter{constructor(e,t={}){super(),this.dispatcher=e,r()(this,"storeState",void 0),r()(this,"lock",new s.a),r()(this,"dispatcherRef",void 0),this.dispatcherRef=e.register(this.onDispatch.bind(this)),this.storeState=t}get state(){return this.storeState}stop(){this.dispatcherRef&&this.dispatcher.unregister(this.dispatcherRef)}async updateState(e){await this.lock.acquireAsync();try{this.storeState=Object.freeze(Object.assign({},this.storeState,e)),this.emit(c,this)}finally{await this.lock.release()}}async reset(e=null,t=!1){await this.lock.acquireAsync();try{this.storeState=Object.freeze(e||{}),t||this.emit(c,this)}finally{await this.lock.release()}}}},function(e,t,n){"use strict";var o=n(83),r=n.n(o),i=n(7),a=n.n(i),s=n(308),c=n(154),l=n(88),d=n(89);function u(e){return e.chunk.map(e=>Object(s.c)(e))}function h(e){return e.chunk.map(e=>Object(s.d)(e))}let p=0;const m=[];async function g(e){p>=3&&await new Promise((e,t)=>{m.push(e)}),p++;try{return await e()}catch(e){throw e}finally{p--,function(){const e=m.shift();"function"==typeof e&&e()}()}}class f extends a.a{constructor(){super(),r()(this,"STATE_KEY",{GroupMembers:"GroupMembers",GroupInvitedMembers:"GroupInvitedMembers",Summary:"Summary",GroupRooms:"GroupRooms"}),this._state={},this._state[this.STATE_KEY.Summary]={},this._state[this.STATE_KEY.GroupRooms]={},this._state[this.STATE_KEY.GroupMembers]={},this._state[this.STATE_KEY.GroupInvitedMembers]={},this._ready={},this._ready[this.STATE_KEY.Summary]={},this._ready[this.STATE_KEY.GroupRooms]={},this._ready[this.STATE_KEY.GroupMembers]={},this._ready[this.STATE_KEY.GroupInvitedMembers]={},this._fetchResourcePromise={[this.STATE_KEY.Summary]:{},[this.STATE_KEY.GroupRooms]:{},[this.STATE_KEY.GroupMembers]:{},[this.STATE_KEY.GroupInvitedMembers]:{}},this._resourceFetcher={[this.STATE_KEY.Summary]:e=>g(()=>l.a.get().getGroupSummary(e)),[this.STATE_KEY.GroupRooms]:e=>g(()=>l.a.get().getGroupRooms(e).then(h)),[this.STATE_KEY.GroupMembers]:e=>g(()=>l.a.get().getGroupUsers(e).then(u)),[this.STATE_KEY.GroupInvitedMembers]:e=>g(()=>l.a.get().getGroupInvitedUsers(e).then(u))}}_fetchResource(e,t){if(this._fetchResourcePromise[e][t])return;const n=this._resourceFetcher[e](t);return this._fetchResourcePromise[e][t]=n,n.then(n=>{this._state[e][t]=n,this._ready[e][t]=!0,this._notifyListeners()}).catch(n=>{e===this.STATE_KEY.GroupInvitedMembers&&403===n.httpStatus||(console.error(`Failed to get resource ${e} for ${t}`,n),this.emit("error",n,t,e))}).finally(()=>{delete this._fetchResourcePromise[e][t]}),n}_notifyListeners(){this.emit("update")}registerListener(e,t){return this.on("update",t),this.emit("update"),e&&(this._fetchResource(this.STATE_KEY.Summary,e),this._fetchResource(this.STATE_KEY.GroupRooms,e),this._fetchResource(this.STATE_KEY.GroupMembers,e),this._fetchResource(this.STATE_KEY.GroupInvitedMembers,e)),{unregister:()=>{this.unregisterListener(t)}}}unregisterListener(e){this.removeListener("update",e)}isStateReady(e,t){return this._ready[t][e]}getGroupIdsForRoomId(e){return Object.keys(this._state[this.STATE_KEY.GroupRooms]).filter(t=>(this._state[this.STATE_KEY.GroupRooms][t]||[]).some(t=>t.roomId===e))}getSummary(e){return this._state[this.STATE_KEY.Summary][e]||{}}getGroupRooms(e){return this._state[this.STATE_KEY.GroupRooms][e]||[]}getGroupMembers(e){return this._state[this.STATE_KEY.GroupMembers][e]||[]}getGroupInvitedMembers(e){return this._state[this.STATE_KEY.GroupInvitedMembers][e]||[]}getGroupPublicity(e){return(this._state[this.STATE_KEY.Summary][e]||{}).user?(this._state[this.STATE_KEY.Summary][e]||{}).user.is_publicised:null}isUserPrivileged(e){return(this._state[this.STATE_KEY.Summary][e]||{}).user?(this._state[this.STATE_KEY.Summary][e]||{}).user.is_privileged:null}refreshGroupRooms(e){return this._fetchResource(this.STATE_KEY.GroupRooms,e)}refreshGroupMembers(e){return this._fetchResource(this.STATE_KEY.GroupMembers,e)}addRoomToGroup(e,t,n){return l.a.get().addRoomToGroup(e,t,n).then(this._fetchResource.bind(this,this.STATE_KEY.GroupRooms,e))}updateGroupRoomVisibility(e,t,n){return l.a.get().updateGroupRoomVisibility(e,t,n).then(this._fetchResource.bind(this,this.STATE_KEY.GroupRooms,e))}removeRoomFromGroup(e,t){return l.a.get().removeRoomFromGroup(e,t).then(this._fetchResource.bind(this,this.STATE_KEY.Summary,e)).then(this._fetchResource.bind(this,this.STATE_KEY.GroupRooms,e))}inviteUserToGroup(e,t){return l.a.get().inviteUserToGroup(e,t).then(this._fetchResource.bind(this,this.STATE_KEY.GroupInvitedMembers,e))}acceptGroupInvite(e){return l.a.get().acceptGroupInvite(e).then(this._fetchResource.bind(this,this.STATE_KEY.Summary,e)).then(this._fetchResource.bind(this,this.STATE_KEY.GroupRooms,e)).then(this._fetchResource.bind(this,this.STATE_KEY.GroupMembers,e)).then(this._fetchResource.bind(this,this.STATE_KEY.GroupInvitedMembers,e))}joinGroup(e){return l.a.get().joinGroup(e).then(this._fetchResource.bind(this,this.STATE_KEY.Summary,e)).then(this._fetchResource.bind(this,this.STATE_KEY.GroupRooms,e)).then(this._fetchResource.bind(this,this.STATE_KEY.GroupMembers,e)).then(this._fetchResource.bind(this,this.STATE_KEY.GroupInvitedMembers,e))}leaveGroup(e){return d.a.dispatch({action:"deselect_tags",tag:e}),l.a.get().leaveGroup(e).then(this._fetchResource.bind(this,this.STATE_KEY.Summary,e)).then(this._fetchResource.bind(this,this.STATE_KEY.GroupRooms,e)).then(this._fetchResource.bind(this,this.STATE_KEY.GroupMembers,e))}addRoomToGroupSummary(e,t,n){return l.a.get().addRoomToGroupSummary(e,t,n).then(this._fetchResource.bind(this,this.STATE_KEY.Summary,e))}addUserToGroupSummary(e,t,n){return l.a.get().addUserToGroupSummary(e,t,n).then(this._fetchResource.bind(this,this.STATE_KEY.Summary,e))}removeRoomFromGroupSummary(e,t){return l.a.get().removeRoomFromGroupSummary(e,t).then(this._fetchResource.bind(this,this.STATE_KEY.Summary,e))}removeUserFromGroupSummary(e,t){return l.a.get().removeUserFromGroupSummary(e,t).then(this._fetchResource.bind(this,this.STATE_KEY.Summary,e))}setGroupPublicity(e,t){return l.a.get().setGroupPublicity(e,t).then(()=>{c.a.invalidatePublicisedGroups(l.a.get().credentials.userId)}).then(this._fetchResource.bind(this,this.STATE_KEY.Summary,e))}}let _=null;_||(_=new f),t.a=_},function(e,t,n){"use strict";function o(e,t){const n=Math.round(e.length/t),o=[];for(let t=0;t<e.length;t+=n)o.push(e[t]);for(;o.length<t;)o.push(e[e.length-1]);return o}function r(e,t){const n=[];for(let o=0;o<t;o++)n.push(e);return n}function i(e){return e.slice(0,e.length)}function a(e,t){if(e.length===t.length){for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}return!0}function s(e,t){return e.length!==t.length||(!!t.some(t=>!e.includes(t))||!!e.some(e=>!t.includes(e)))}function c(e,t){return{added:t.filter(t=>!e.includes(t)),removed:e.filter(e=>!t.includes(e))}}function l(e,t){return e.filter(e=>t.includes(e))}function d(...e){return Array.from(e.reduce((e,t)=>(t.forEach(t=>e.add(t)),e),new Set))}n.d(t,"c",(function(){return o})),n.d(t,"g",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"f",(function(){return d}))},function(e,t,n){"use strict";let o;n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),function(e){e.RoomMemberList="RoomMemberList",e.FilePanel="FilePanel",e.NotificationPanel="NotificationPanel",e.RoomMemberInfo="RoomMemberInfo",e.EncryptionPanel="EncryptionPanel",e.RoomSummary="RoomSummary",e.Widget="Widget",e.Room3pidMemberInfo="Room3pidMemberInfo",e.GroupMemberList="GroupMemberList",e.GroupRoomList="GroupRoomList",e.GroupRoomInfo="GroupRoomInfo",e.GroupMemberInfo="GroupMemberInfo",e.SpaceMemberList="SpaceMemberList",e.SpaceMemberInfo="SpaceMemberInfo",e.Space3pidMemberInfo="Space3pidMemberInfo"}(o||(o={}));const r=[o.RoomSummary,o.NotificationPanel,o.FilePanel,o.RoomMemberList,o.GroupMemberList,o.GroupRoomList],i=[o.SpaceMemberList,o.Space3pidMemberInfo,o.SpaceMemberInfo]},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(86),a=n.n(i),s=n(84),c=n(90);const l=({w:e=32,h:t=32,imgClassName:o,message:i})=>{let a;return a=c.b.getValue("feature_new_spinner")?n(641):n(642),r.a.createElement("div",{className:"mx_Spinner"},i&&r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"mx_Spinner_Msg"},i)," "),r.a.createElement("img",{src:a,width:e,height:t,className:o,"aria-label":Object(s.a)("Loading...")}))};l.propTypes={w:a.a.number,h:a.a.number,imgClassName:a.a.string,message:a.a.node},t.a=l},function(e,t,n){"use strict";var o=n(83),r=n.n(o),i=n(82),a=n.n(i),s=n(84),c=n(107),l=n(94),d=n(91),u=n(87);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const m=/#\/(groups?|room|user|settings|register|login|forgot_password|home|directory)/,g=/#\/(group|room|user)\/.*$/;function f(){const{origin:e,hash:t}=window.location;let{pathname:n}=window.location;return e.startsWith("file://")&&(n="/<redacted>/"),e+n+function(e){return m.exec(e)?g.test(e)?e.replace(g,"#/$1/<redacted>"):e.replace(m,"#/$1"):(console.warn(`Unexpected hash location "${e}"`),"#/<unexpected hash location>")}(t)}const _={"App Platform":{id:1,expl:Object(s.b)("The platform you're on"),example:"Electron Platform"},"App Version":{id:2,expl:Object(s.b)("The version of %(brand)s"),getTextVariables:()=>({brand:l.a.get().brand}),example:"15.0.0"},"User Type":{id:3,expl:Object(s.b)("Whether or not you're logged in (we don't record your username)"),example:"Logged In"},"Chosen Language":{id:4,expl:Object(s.b)("Your language of choice"),example:"en"},Instance:{id:5,expl:Object(s.b)("Which officially provided instance you are using, if any"),example:"app"},"RTE: Uses Richtext Mode":{id:6,expl:Object(s.b)("Whether or not you're using the Richtext mode of the Rich Text Editor"),example:"off"},"Homeserver URL":{id:7,expl:Object(s.b)("Your homeserver's URL"),example:"https://matrix.org"},"Touch Input":{id:8,expl:Object(s.b)("Whether you're using %(brand)s on a device where touch is the primary input mechanism"),getTextVariables:()=>({brand:l.a.get().brand}),example:"false"},Breadcrumbs:{id:9,expl:Object(s.b)("Whether or not you're using the 'breadcrumbs' feature (avatars above the room list)"),example:"disabled"},"Installed PWA":{id:10,expl:Object(s.b)("Whether you're using %(brand)s as an installed Progressive Web App"),getTextVariables:()=>({brand:l.a.get().brand}),example:"false"}};const b="mx_Riot_Analytics_uid";class v{constructor(){r()(this,"baseUrl",null),r()(this,"siteId",null),r()(this,"visitVariables",{}),r()(this,"firstPage",!0),r()(this,"heartbeatIntervalID",null),r()(this,"creationTs",void 0),r()(this,"lastVisitTs",void 0),r()(this,"visitCount",void 0),r()(this,"showDetailsModal",()=>{let e=[];e=this.disabled?Object.keys(_).map(e=>[e,Object(s.a)("e.g. %(exampleValue)s",{exampleValue:_[e].example})]):Object.values(this.visitVariables);const t=`${window.screen.width}x${window.screen.height}`,n=[{expl:Object(s.b)("Every page you use in the app"),value:Object(s.a)("e.g. <CurrentPageURL>",{},{CurrentPageURL:f})},{expl:Object(s.b)("Your user agent"),value:navigator.userAgent},{expl:Object(s.b)("Your device resolution"),value:t}],o=u.getComponent("dialogs.ErrorDialog");d.a.createTrackedDialog("Analytics Details","",o,{title:Object(s.a)("Analytics"),description:a.a.createElement("div",{className:"mx_AnalyticsModal"},a.a.createElement("div",null,Object(s.a)("The information being sent to us to help make %(brand)s better includes:",{brand:l.a.get().brand})),a.a.createElement("table",null,e.map(e=>a.a.createElement("tr",{key:e[0]},a.a.createElement("td",null,Object(s.a)(_[e[0]].expl,_[e[0]].getTextVariables?_[e[0]].getTextVariables():null)),void 0!==e[1]&&a.a.createElement("td",null,a.a.createElement("code",null,e[1])))),n.map((e,t)=>a.a.createElement("tr",{key:t},a.a.createElement("td",null,Object(s.a)(e.expl)),a.a.createElement("td",null,a.a.createElement("code",null,e.value))))),a.a.createElement("div",null,Object(s.a)("Where this page includes identifiable information, such as a room, user or group ID, that data is removed before being sent to the server.")))})}),this.creationTs=localStorage&&localStorage.getItem("mx_Riot_Analytics_cts"),!this.creationTs&&localStorage&&localStorage.setItem("mx_Riot_Analytics_cts",this.creationTs=String((new Date).getTime())),this.lastVisitTs=localStorage&&localStorage.getItem("mx_Riot_Analytics_lvts"),this.visitCount=localStorage&&localStorage.getItem("mx_Riot_Analytics_vc")||"0",this.visitCount=String(parseInt(this.visitCount,10)+1),localStorage&&localStorage.setItem("mx_Riot_Analytics_vc",this.visitCount)}get disabled(){return!this.baseUrl}canEnable(){const e=l.a.get();return"1"!==navigator.doNotTrack&&e&&e.piwik&&e.piwik.url&&e.piwik.siteId}async enable(){if(!this.disabled)return;if(!this.canEnable())return;const e=l.a.get();this.baseUrl=new URL("piwik.php",e.piwik.url),this.baseUrl.searchParams.set("rec","1"),this.baseUrl.searchParams.set("idsite",e.piwik.siteId),this.baseUrl.searchParams.set("apiv","1"),this.baseUrl.searchParams.set("send_image","0"),this.baseUrl.searchParams.set("_id",function(){try{let e=localStorage&&localStorage.getItem(b);return!e&&localStorage&&localStorage.setItem(b,e=[...Array(16)].map(()=>Math.random().toString(16)[2]).join("")),e}catch(e){return console.error("Analytics error: ",e),""}}()),this.baseUrl.searchParams.set("_idts",this.creationTs),this.baseUrl.searchParams.set("_idvc",this.visitCount),this.lastVisitTs&&this.baseUrl.searchParams.set("_viewts",this.lastVisitTs);const t=c.a.get();this.setVisitVariable("App Platform",t.getHumanReadableName());try{this.setVisitVariable("App Version",await t.getAppVersion())}catch(e){this.setVisitVariable("App Version","unknown")}this.setVisitVariable("Chosen Language",Object(s.d)());const n=window.location.hostname;"riot.im"===n?this.setVisitVariable("Instance",window.location.pathname):n.endsWith(".element.io")&&this.setVisitVariable("Instance",n.replace(".element.io",""));let o="unknown";try{o=String(window.matchMedia("(display-mode: standalone)").matches)}catch(e){}this.setVisitVariable("Installed PWA",o);let r="unknown";try{r=String(window.matchMedia("(pointer: coarse)").matches)}catch(e){}this.setVisitVariable("Touch Input",r),this.heartbeatIntervalID=window.setInterval(this.ping.bind(this),3e4)}disable(){this.disabled||(this.trackEvent("Analytics","opt-out"),window.clearInterval(this.heartbeatIntervalID),this.baseUrl=null,this.visitVariables={},localStorage.removeItem(b),localStorage.removeItem("mx_Riot_Analytics_cts"),localStorage.removeItem("mx_Riot_Analytics_vc"),localStorage.removeItem("mx_Riot_Analytics_lvts"))}async _track(e){if(this.disabled)return;const t=new Date,n=p(p({},e),{},{url:f(),_cvar:JSON.stringify(this.visitVariables),res:`${window.screen.width}x${window.screen.height}`,rand:String(Math.random()).slice(2,8),h:t.getHours(),m:t.getMinutes(),s:t.getSeconds()}),o=new URL(this.baseUrl.toString());for(const e in n)o.searchParams.set(e,n[e]);try{await window.fetch(o.toString(),{method:"GET",mode:"no-cors",cache:"no-cache",redirect:"follow"})}catch(e){console.error("Analytics error: ",e)}}ping(){this._track({ping:"1"}),localStorage.setItem("mx_Riot_Analytics_lvts",String((new Date).getTime()))}trackPageChange(e){this.disabled||(this.firstPage?this.firstPage=!1:("number"!=typeof e&&console.warn("Analytics.trackPageChange: expected generationTimeMs to be a number"),this._track({gt_ms:String(e)})))}trackEvent(e,t,n,o){this.disabled||this._track({e_c:e,e_a:t,e_n:n,e_v:o})}setVisitVariable(e,t){this.disabled||(this.visitVariables[_[e].id]=[e,t])}setLoggedIn(e,t){if(this.disabled)return;const n=l.a.get();if(!n.piwik)return;const o=n.piwik.whitelistedHSUrls||[];var r;this.setVisitVariable("User Type",e?"Guest":"Logged In"),this.setVisitVariable("Homeserver URL",(r=t,o.includes(r)?r:"<redacted>"))}setBreadcrumbs(e){this.disabled||this.setVisitVariable("Breadcrumbs",e?"enabled":"disabled")}}window.mxAnalytics||(window.mxAnalytics=new v),t.a=window.mxAnalytics},function(e,t,n){"use strict";var o=n(932),r=n(933);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=v,t.resolve=function(e,t){return v(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?v(e,!1,!0).resolveObject(t):t},t.format=function(e){r.isString(e)&&(e=v(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),d=["'"].concat(l),u=["%","/","?",";","#"].concat(d),h=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},f={javascript:!0,"javascript:":!0},_={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(2);function v(e,t,n){if(e&&r.isObject(e)&&e instanceof i)return e;var o=new i;return o.parse(e,t,n),o}i.prototype.parse=function(e,t,n){if(!r.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",l=e.split(s);l[0]=l[0].replace(/\\/g,"/");var v=e=l.join(s);if(v=v.trim(),!n&&1===e.split("#").length){var y=c.exec(v);if(y)return this.path=v,this.href=v,this.pathname=y[1],y[2]?(this.search=y[2],this.query=t?b.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var E=a.exec(v);if(E){var S=(E=E[0]).toLowerCase();this.protocol=S,v=v.substr(E.length)}if(n||E||v.match(/^\/\/[^@\/]+@[^@\/]+/)){var w="//"===v.substr(0,2);!w||E&&f[E]||(v=v.substr(2),this.slashes=!0)}if(!f[E]&&(w||E&&!_[E])){for(var C,T,x=-1,O=0;O<h.length;O++){-1!==(k=v.indexOf(h[O]))&&(-1===x||k<x)&&(x=k)}-1!==(T=-1===x?v.lastIndexOf("@"):v.lastIndexOf("@",x))&&(C=v.slice(0,T),v=v.slice(T+1),this.auth=decodeURIComponent(C)),x=-1;for(O=0;O<u.length;O++){var k;-1!==(k=v.indexOf(u[O]))&&(-1===x||k<x)&&(x=k)}-1===x&&(x=v.length),this.host=v.slice(0,x),v=v.slice(x),this.parseHost(),this.hostname=this.hostname||"";var R="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!R)for(var D=this.hostname.split(/\./),I=(O=0,D.length);O<I;O++){var A=D[O];if(A&&!A.match(p)){for(var N="",F=0,M=A.length;F<M;F++)A.charCodeAt(F)>127?N+="x":N+=A[F];if(!N.match(p)){var P=D.slice(0,O),L=D.slice(O+1),j=A.match(m);j&&(P.push(j[1]),L.unshift(j[2])),L.length&&(v="/"+L.join(".")+v),this.hostname=P.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=o.toASCII(this.hostname));var U=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+U,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!g[S])for(O=0,I=d.length;O<I;O++){var q=d[O];if(-1!==v.indexOf(q)){var G=encodeURIComponent(q);G===q&&(G=escape(q)),v=v.split(q).join(G)}}var V=v.indexOf("#");-1!==V&&(this.hash=v.substr(V),v=v.slice(0,V));var H=v.indexOf("?");if(-1!==H?(this.search=v.substr(H),this.query=v.substr(H+1),t&&(this.query=b.parse(this.query)),v=v.slice(0,H)):t&&(this.search="",this.query={}),v&&(this.pathname=v),_[S]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"";var z=this.search||"";this.path=U+z}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",o=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&r.isObject(this.query)&&Object.keys(this.query).length&&(a=b.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||_[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),o&&"#"!==o.charAt(0)&&(o="#"+o),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+o},i.prototype.resolve=function(e){return this.resolveObject(v(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(r.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,o=Object.keys(this),a=0;a<o.length;a++){var s=o[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),l=0;l<c.length;l++){var d=c[l];"protocol"!==d&&(n[d]=e[d])}return _[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!_[e.protocol]){for(var u=Object.keys(e),h=0;h<u.length;h++){var p=u[h];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||f[e.protocol])n.pathname=e.pathname;else{for(var m=(e.pathname||"").split("/");m.length&&!(e.host=m.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==m[0]&&m.unshift(""),m.length<2&&m.unshift(""),n.pathname=m.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var g=n.pathname||"",b=n.search||"";n.path=g+b}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var v=n.pathname&&"/"===n.pathname.charAt(0),y=e.host||e.pathname&&"/"===e.pathname.charAt(0),E=y||v||n.host&&e.pathname,S=E,w=n.pathname&&n.pathname.split("/")||[],C=(m=e.pathname&&e.pathname.split("/")||[],n.protocol&&!_[n.protocol]);if(C&&(n.hostname="",n.port=null,n.host&&(""===w[0]?w[0]=n.host:w.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===m[0]?m[0]=e.host:m.unshift(e.host)),e.host=null),E=E&&(""===m[0]||""===w[0])),y)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,w=m;else if(m.length)w||(w=[]),w.pop(),w=w.concat(m),n.search=e.search,n.query=e.query;else if(!r.isNullOrUndefined(e.search)){if(C)n.hostname=n.host=w.shift(),(R=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=R.shift(),n.host=n.hostname=R.shift());return n.search=e.search,n.query=e.query,r.isNull(n.pathname)&&r.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!w.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=w.slice(-1)[0],x=(n.host||e.host||w.length>1)&&("."===T||".."===T)||""===T,O=0,k=w.length;k>=0;k--)"."===(T=w[k])?w.splice(k,1):".."===T?(w.splice(k,1),O++):O&&(w.splice(k,1),O--);if(!E&&!S)for(;O--;O)w.unshift("..");!E||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),x&&"/"!==w.join("/").substr(-1)&&w.push("");var R,D=""===w[0]||w[0]&&"/"===w[0].charAt(0);C&&(n.hostname=n.host=D?"":w.length?w.shift():"",(R=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=R.shift(),n.host=n.hostname=R.shift()));return(E=E||n.host&&w.length)&&!D&&w.unshift(""),w.length?n.pathname=w.join("/"):(n.pathname=null,n.path=null),r.isNull(n.pathname)&&r.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(433),u=n.n(d),h=n(86),p=n.n(h),m=n(92),g=n.n(m),f=n(101),_=n(93),b=n(88),v=n(84),y=n(97),E=n(85);let S=Object(E.a)("views.dialogs.BaseDialog")((i=r=class extends l.a.Component{constructor(e){super(e),s()(this,"_onKeyDown",e=>{this.props.onKeyDown&&this.props.onKeyDown(e),this.props.hasCancel&&e.key===f.a.ESCAPE&&(e.stopPropagation(),e.preventDefault(),this.props.onFinished(!1))}),s()(this,"_onCancelClick",e=>{this.props.onFinished(!1)}),this._matrixClient=b.a.get()}render(){let e,t;return this.props.hasCancel&&(e=l.a.createElement(_.a,{onClick:this._onCancelClick,className:"mx_Dialog_cancelButton","aria-label":Object(v.a)("Close dialog")})),this.props.headerImage&&(t=l.a.createElement("img",{className:"mx_Dialog_titleImage",src:this.props.headerImage,alt:""})),l.a.createElement(y.a.Provider,{value:this._matrixClient},l.a.createElement(u.a,{returnFocus:!0,lockProps:{onKeyDown:this._onKeyDown,role:"dialog","aria-labelledby":"mx_BaseDialog_title","aria-describedby":this.props.contentId},className:g()({[this.props.className]:!0,mx_Dialog_fixedWidth:this.props.fixedWidth})},l.a.createElement("div",{className:g()("mx_Dialog_header",{mx_Dialog_headerWithButton:!!this.props.headerButton,mx_Dialog_headerWithCancel:!!e})},l.a.createElement("div",{className:g()("mx_Dialog_title",this.props.titleClass),id:"mx_BaseDialog_title"},t,this.props.title),this.props.headerButton,e),this.props.children))}},s()(r,"propTypes",{onFinished:p.a.func.isRequired,hasCancel:p.a.bool,onKeyDown:p.a.func,className:p.a.string,fixedWidth:p.a.bool,title:p.a.node.isRequired,headerImage:p.a.string,children:p.a.node,contentId:p.a.string,titleClass:p.a.oneOfType([p.a.string,p.a.object,p.a.arrayOf(p.a.string)])}),s()(r,"defaultProps",{hasCancel:!0,fixedWidth:!0}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var o,r,i,a=n(95),s=n.n(a),c=n(100),l=n.n(c),d=n(83),u=n.n(d),h=n(82),p=n.n(h),m=n(161),g=n(492),f=n(88),_=n(91),b=n(205),v=n(85),y=n(99);let E=Object(v.a)("views.avatars.RoomAvatar")((i=r=class e extends p.a.Component{constructor(t){super(t),u()(this,"onRoomStateEvents",t=>{this.props.room&&t.getRoomId()===this.props.room.roomId&&"m.room.avatar"===t.getType()&&this.setState({urls:e.getImageUrls(this.props)})}),u()(this,"onRoomAvatarClick",()=>{const e={src:b.b(this.props.room,null,null,null),name:this.props.room.name};_.a.createDialog(g.a,e,"mx_Dialog_lightbox",null,!0)}),this.state={urls:e.getImageUrls(this.props)}}componentDidMount(){f.a.get().on("RoomState.events",this.onRoomStateEvents)}componentWillUnmount(){const e=f.a.get();e&&e.removeListener("RoomState.events",this.onRoomStateEvents)}static getDerivedStateFromProps(t){return{urls:e.getImageUrls(t)}}static getImageUrls(t){let n=null;return t.oobData.avatarUrl&&(n=Object(y.b)(t.oobData.avatarUrl).getThumbnailOfSourceHttp(Math.floor(t.width*window.devicePixelRatio),Math.floor(t.height*window.devicePixelRatio),t.resizeMethod)),[n,e.getRoomAvatarUrl(t)].filter((function(e){return null!==e&&""!==e}))}static getRoomAvatarUrl(e){return e.room?b.b(e.room,Math.floor(e.width*window.devicePixelRatio),Math.floor(e.height*window.devicePixelRatio),e.resizeMethod):null}render(){const e=this.props,{room:t,oobData:n,viewAvatarOnClick:o,onClick:r}=e,i=l()(e,["room","oobData","viewAvatarOnClick","onClick"]),a=t?t.name:n.name;return p.a.createElement(m.a,s()({},i,{name:a,idName:t?t.roomId:null,urls:this.state.urls,onClick:o&&this.state.urls[0]?this.onRoomAvatarClick:r}))}},u()(r,"defaultProps",{width:36,height:36,resizeMethod:"crop",oobData:{}}),o=i))||o},function(e,t,n){"use strict";function o(e,t){return function(e){return Object.keys(e).filter(t=>["string","number"].includes(typeof e[t])).map(t=>e[t])}(e).includes(t)}let r;n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return s})),function(e){e.Invite="im.vector.fake.invite",e.Untagged="im.vector.fake.recent",e.Archived="im.vector.fake.archived",e.LowPriority="m.lowpriority",e.Favourite="m.favourite",e.DM="im.vector.fake.direct",e.ServerNotice="m.server_notice",e.Suggested="im.vector.fake.suggested"}(r||(r={}));const i=[r.Invite,r.Favourite,r.DM,r.Untagged,r.LowPriority,r.ServerNotice,r.Suggested,r.Archived];function a(e){return!o(r,e)}let s;!function(e){e.Timeline="TIMELINE",e.PossibleTagChange="POSSIBLE_TAG_CHANGE",e.ReadReceipt="READ_RECEIPT",e.NewRoom="NEW_ROOM",e.RoomRemoved="ROOM_REMOVED"}(s||(s={}))},function(e,t,n){"use strict";function o(e,t){return new Promise(n=>{setTimeout(n,e,t)})}async function r(e,t,n){const o=new Promise(o=>{const r=setTimeout(o,n,t);e.then(()=>{clearTimeout(r)})});return Promise.race([e,o])}function i(){let e,t;const n=new Promise((n,o)=>{e=n,t=o});return{resolve:e,reject:t,promise:n}}function a(e){return Promise.allSettled?Promise.allSettled(e):Promise.all(e.map(e=>e.then(e=>({status:"fulfilled",value:e})).catch(e=>({status:"rejected",reason:e}))))}async function s(e,t,n){let o;for(let r=0;r<t;r++)try{return await e()}catch(e){if(n&&!n(e))throw e;o=e}throw o}n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s}))},function(e,t,n){"use strict";var o=n(83),r=n.n(o),i=n(82),a=n.n(i),s=n(306),c=n(89),l=n(88),d=n(87),u=n(91),h=n(84),p=n(512),m=n(125),g=n(108);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}const _={joining:!1,joinError:null,roomId:null,initialEventId:null,initialEventPixelOffset:null,isInitialEventHighlighted:!1,roomAlias:null,roomLoading:!1,roomLoadError:null,forwardingEvent:null,quotingEvent:null,replyingToEvent:null,shouldPeek:!1};class b extends s.Store{constructor(){super(c.a),r()(this,"state",_)}setState(e){let t=!1;for(const n of Object.keys(e))if(this.state[n]!==e[n]){t=!0;break}t&&(this.state=Object.assign(this.state,e),this.__emitChange())}__onDispatch(e){switch(e.action){case"view_room":this.viewRoom(e);break;case"view_create_group":case"view_welcome_page":case"view_home_page":case"view_my_groups":case"view_group":this.setState({roomId:null,roomAlias:null});break;case"view_room_error":this.viewRoomError(e);break;case"will_join":this.setState({joining:!0});break;case"cancel_join":this.setState({joining:!1});break;case"join_room":this.joinRoom(e);break;case"join_room_error":this.joinRoomError(e);break;case"join_room_ready":this.setState({shouldPeek:!1});break;case"on_client_not_viable":case"on_logged_out":this.reset();break;case"forward_event":this.setState({forwardingEvent:e.event});break;case"reply_to_event":e.event&&e.event.getRoomId()!==this.state.roomId?c.a.dispatch({action:"view_room",room_id:e.event.getRoomId(),replyingToEvent:e.event}):this.setState({replyingToEvent:e.event});break;case"open_room_settings":{const t=d.getComponent("dialogs.RoomSettingsDialog");u.a.createTrackedDialog("Room settings","",t,{roomId:e.room_id||this.state.roomId},null,!1,!0);break}}}async viewRoom(e){if(e.room_id){const t={roomId:e.room_id,roomAlias:e.room_alias,initialEventId:e.event_id,isInitialEventHighlighted:e.highlighted,forwardingEvent:null,roomLoading:!1,roomLoadError:null,shouldPeek:void 0===e.should_peek||e.should_peek,joining:e.joining||!1,replyingToEvent:null,isEditingSettings:!1};e.replyingToEvent&&e.replyingToEvent.getRoomId()===e.room_id&&(t.replyingToEvent=e.replyingToEvent),this.state.forwardingEvent&&c.a.dispatch({action:"send_event",room_id:t.roomId,event:this.state.forwardingEvent}),this.setState(t),e.auto_join&&this.joinRoom(e)}else if(e.room_alias){let t=Object(p.a)(e.room_alias);if(!t){this.setState({roomId:null,initialEventId:null,initialEventPixelOffset:null,isInitialEventHighlighted:null,roomAlias:e.room_alias,roomLoading:!0,roomLoadError:null});try{const n=await l.a.get().getRoomIdForAlias(e.room_alias);Object(p.b)(e.room_alias,n.room_id),t=n.room_id}catch(t){return console.error("RVS failed to get room id for alias: ",t),void c.a.dispatch({action:"view_room_error",room_id:null,room_alias:e.room_alias,err:t})}}c.a.dispatch({action:"view_room",room_id:t,event_id:e.event_id,highlighted:e.highlighted,room_alias:e.room_alias,auto_join:e.auto_join,oob_data:e.oob_data})}}viewRoomError(e){this.setState({roomId:e.room_id,roomAlias:e.room_alias,roomLoading:!1,roomLoadError:e.err})}async joinRoom(e){const t=g.a.getTimestamp();this.setState({joining:!0});const n=l.a.get(),o=this.state.roomAlias||this.state.roomId;try{await Object(m.c)(()=>n.joinRoom(o,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({viaServers:e.via_servers},e.opts)),5,e=>504===e.httpStatus),g.a.instance.trackRoomJoin(t,this.state.roomId,e._type),c.a.dispatch({action:"join_room_ready"})}catch(e){c.a.dispatch({action:"join_room_error",err:e});let t=e.message?e.message:JSON.stringify(e);if(console.log("Failed to join room:",t),"ConnectionError"===e.name)t=Object(h.a)("There was an error joining the room");else if("M_INCOMPATIBLE_ROOM_VERSION"===e.errcode)t=a.a.createElement("div",null,Object(h.a)("Sorry, your homeserver is too old to participate in this room."),a.a.createElement("br",null),Object(h.a)("Please contact your homeserver administrator."));else if(404===e.httpStatus){const e=this.getInvitingUserId(this.state.roomId);e&&(t=e.endsWith(":"+l.a.get().getDomain())?Object(h.a)("The person who invited you already left the room."):Object(h.a)("The person who invited you already left the room, or their server is offline."))}const n=d.getComponent("dialogs.ErrorDialog");u.a.createTrackedDialog("Failed to join room","",n,{title:Object(h.a)("Failed to join room"),description:t})}}getInvitingUserId(e){const t=l.a.get(),n=t.getRoom(e);if(n&&"invite"===n.getMyMembership()){const e=n.getMember(t.getUserId()),o=e?e.events.member:null;return o&&o.getSender()}}joinRoomError(e){this.setState({joining:!1,joinError:e.err})}reset(){this.state=Object.assign({},_)}getRoomId(){return this.state.roomId}getInitialEventId(){return this.state.initialEventId}isInitialEventHighlighted(){return this.state.isInitialEventHighlighted}getRoomAlias(){return this.state.roomAlias}isRoomLoading(){return this.state.roomLoading}getRoomLoadError(){return this.state.roomLoadError}isJoining(){return this.state.joining}getJoinError(){return this.state.joinError}getForwardingEvent(){return this.state.forwardingEvent}getQuotingEvent(){return this.state.replyingToEvent}shouldPeek(){return this.state.shouldPeek}}let v=null;v||(v=new b),t.a=v},function(e,t,n){"use strict";n.d(t,"a",(function(){return U})),n.d(t,"j",(function(){return B})),n.d(t,"i",(function(){return q})),n.d(t,"g",(function(){return G})),n.d(t,"h",(function(){return V})),n.d(t,"d",(function(){return H})),n.d(t,"b",(function(){return $})),n.d(t,"f",(function(){return Q})),n.d(t,"e",(function(){return J})),n.d(t,"c",(function(){return X}));var o=n(83),r=n.n(o),i=n(82),a=n.n(i),s=n(325),c=n.n(s),l=n(923),d=n(402),u=n(928),h=n.n(u),p=n(930),m=n.n(p),g=n(92),f=n.n(g),_=n(579),b=n.n(_),v=n(121),y=n.n(v),E=n(934),S=n.n(E),w=n(405),C=n(90),T=n(556),x=n.n(T),O=n(109),k=n(277),R=n(241),D=n(99);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object(d.a)(l);const N=/([\ud800-\udbff])([\udc00-\udfff])/,F=/([\u2100-\u2bff])/,M=new RegExp("| ","g"),P=new RegExp("\\s","g"),L=new RegExp(`^(${b.a.source})+$`,"i"),j=/^#[0-9a-fA-F]{6}$/,U=["http","https","ftp","mailto","magnet"];function B(e){const t=Object(k.e)(e);return t&&t.shortcodes?`:${t.shortcodes[0]}:`:""}function q(e){e=e.slice(1,e.length-1);const t=k.d.get(e);return t?t.unicode:null}function G(e){const t=c()(e,K);return a.a.createElement("div",{dangerouslySetInnerHTML:{__html:t},dir:"auto"})}function V(e){const t=c()(e,K),n=document.createElement("div");return n.innerHTML=t,n.innerText}function H(e){try{const t=y.a.parse(e);return!!t.protocol&&U.includes(t.protocol.slice(0,-1))}catch(e){return!1}}const z={a:function(e,t){if(t.href){t.target="_blank";const e=Object(O.l)(t.href);(e!==t.href||t.href.match(d.a.ELEMENT_URL_PATTERN))&&(t.href=e,delete t.target)}return t.rel="noreferrer noopener",{tagName:e,attribs:t}},img:function(e,t){if(!t.src||!t.src.startsWith("mxc://")||!C.b.getValue("showImages"))return{tagName:e,attribs:{}};const n=Number(t.width)||800,o=Number(t.height)||600;return t.src=Object(D.b)(t.src).getThumbnailOfSourceHttp(n,o),{tagName:e,attribs:t}},code:function(e,t){if(void 0!==t.class){const e=t.class.split(/\s/).filter((function(e){return e.startsWith("language-")&&!e.startsWith("language-_")}));t.class=e.join(" ")}return{tagName:e,attribs:t}},"*":function(e,t){delete t.style;const n={"data-mx-color":"color","data-mx-bg-color":"background-color"};let o="";return Object.keys(n).forEach(e=>{const r=n[e],i=t[e];i&&"string"==typeof i&&j.test(i)&&(o+=r+":"+i+";",delete t[e])}),o&&(t.style=o),{tagName:e,attribs:t}}},K={allowedTags:["font","del","h1","h2","h3","h4","h5","h6","blockquote","p","a","ul","ol","sup","sub","nl","li","b","i","u","strong","em","strike","code","hr","br","div","table","thead","caption","tbody","tr","th","td","pre","span","img","details","summary"],allowedAttributes:{font:["color","data-mx-bg-color","data-mx-color","style"],span:["data-mx-maths","data-mx-bg-color","data-mx-color","data-mx-spoiler","style"],div:["data-mx-maths"],a:["href","name","target","rel"],img:["src","width","height","alt","title"],ol:["start"],code:["class"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:U,allowProtocolRelative:!1,transformTags:z,nestingLimit:50},W=A(A({},K),{},{transformTags:{code:z.code,"*":z["*"]}});class Y extends class{constructor(e,t){this.highlightClass=e,this.highlightLink=t}applyHighlights(e,t){let n,o=0,r=[];const i=t[0];for(;(n=e.toLowerCase().indexOf(i.toLowerCase(),o))>=0;){if(n>o){const i=e.substring(o,n);r=r.concat(this.applySubHighlights(i,t))}const a=n+i.length;r.push(this.processSnippet(e.substring(n,a),!0)),o=a}if(o!==e.length){const n=e.substring(o,void 0);r=r.concat(this.applySubHighlights(n,t))}return r}applySubHighlights(e,t){return t[1]?this.applyHighlights(e,t.slice(1)):[this.processSnippet(e,!1)]}}{processSnippet(e,t){if(!t)return e;let n=`<span class="${this.highlightClass}">${e}</span>`;return this.highlightLink&&(n=`<a href="${encodeURI(this.highlightLink)}">${n}</a>`),n}}function $(e,t,n={}){const o="org.matrix.custom.html"===e.format&&e.formatted_body;let r,i,s,l=!1,d=K;n.forComposerQuote&&(d=W);try{if(t&&t.length>0){const e=new Y("mx_EventTile_searchHighlight",n.highlightLink),o=t.map((function(e){return c()(e,d)}));d.textFilter=function(t){return e.applyHighlights(t,o).join("")}}let a="string"==typeof e.formatted_body?e.formatted_body:null;const h="string"==typeof e.body?e.body:"";if(n.stripReplyFallback&&a&&(a=R.a.stripHTMLReply(a)),r=n.stripReplyFallback?R.a.stripPlainReply(h):h,u=o?a:h,l=N.test(u)||F.test(u),o&&(s=!0,i=c()(a,d),C.b.getValue("feature_latex_maths"))){const e=x.a.load(i,{_useHtmlParser2:!0,decodeEntities:!1});e('div, span[data-mx-maths!=""]').replaceWith((function(t,n){return S.a.renderToString(w.AllHtmlEntities.decode(e(n).attr("data-mx-maths")),{throwOnError:!1,displayMode:"div"==n.name,output:"htmlAndMathml"})})),i=e.html()}}finally{delete d.textFilter}var u;const h=s?i:r;if(n.returnString)return h;let p=!1;if(!n.disableBigEmoji&&l){let t=void 0!==h?h.trim():"";t=t.replace(P,""),t=t.replace(M,"");const n=L.exec(t);p=n&&n[0]&&n[0].length===t.length&&(r===i||void 0===e.formatted_body||!e.formatted_body.includes("http:")&&!e.formatted_body.includes("https:"))}const m=f()({mx_EventTile_body:!0,mx_EventTile_bigEmoji:p,"markdown-body":o&&!p});return s?a.a.createElement("span",{key:"body",ref:n.ref,className:m,dangerouslySetInnerHTML:{__html:i},dir:"auto"}):a.a.createElement("span",{key:"body",ref:n.ref,className:m,dir:"auto"},r)}function Q(e,t=d.a.options){return h()(e,t)}function J(e,t=d.a.options){return c()(function(e,t=d.a.options){return m()(e,t)}(e,t),K)}function X(e){switch(e.nodeName){case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":case"PRE":case"BLOCKQUOTE":case"P":case"UL":case"OL":case"LI":case"HR":case"TABLE":case"THEAD":case"TBODY":case"TR":case"TH":case"TD":return!0;case"DIV":return!e.hasAttribute("data-mx-maths");default:return!1}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"g",(function(){return i})),n.d(t,"f",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"a",(function(){return d}));var o=n(117);function r(e,t){const n=new Map(Object.entries(e));for(const e of t)n.delete(e);return Array.from(n.entries()).reduce((e,[t,n])=>(e[t]=n,e),{})}function i(e,t){const n=Object.keys(e),i=Object(o.a)(n,t);return 0===i.removed.length?a(e):r(e,i.removed)}function a(e,t){const n={};for(const[o,r]of Object.entries(e))n[o]=r,t&&(n[o]=t(o,r));return n}function s(e,t){if(e===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!0;const i=Object(o.h)(n,r);return i.length!==n.length||i.some(n=>e[n]!==t[n])}function c(e,t){const n=Object.keys(e),r=Object.keys(t),i=Object(o.a)(n,r);return{changed:Object(o.h)(n,r).filter(n=>e[n]!==t[n]),added:i.added,removed:i.removed}}function l(e,t){const n=c(e,t);return Object(o.f)(n.removed,n.added,n.changed)}function d(e){return JSON.parse(JSON.stringify(e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(82);const r=(e,t,n)=>{const r=Object(o.useRef)(n);Object(o.useEffect)(()=>{r.current=n},[n]),Object(o.useEffect)(()=>{if(!e)return;const n=(...e)=>r.current(...e);return e.on(t,n),()=>{e.removeListener(t,n)}},[t,e])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(87),p=n(84),m=n(85);let g=Object(m.a)("views.dialogs.ErrorDialog")((i=r=class extends l.a.Component{constructor(...e){super(...e),s()(this,"onClick",()=>{this.props.onFinished(!0)})}render(){const e=h.getComponent("views.dialogs.BaseDialog");return l.a.createElement(e,{className:"mx_ErrorDialog",onFinished:this.props.onFinished,title:this.props.title||Object(p.a)("Error"),headerImage:this.props.headerImage,contentId:"mx_Dialog_content"},l.a.createElement("div",{className:"mx_Dialog_content",id:"mx_Dialog_content"},this.props.description||Object(p.a)("An error has occurred.")),l.a.createElement("div",{className:"mx_Dialog_buttons"},l.a.createElement("button",{className:"mx_Dialog_primary",onClick:this.onClick,autoFocus:this.props.focus},this.props.button||Object(p.a)("OK"))))}},s()(r,"propTypes",{title:u.a.string,description:u.a.oneOfType([u.a.element,u.a.string]),button:u.a.string,focus:u.a.bool,onFinished:u.a.func.isRequired,headerImage:u.a.string}),s()(r,"defaultProps",{focus:!0,title:null,description:null,button:null}),o=i))||o},function(e,t,n){"use strict";n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return u})),n.d(t,"a",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"c",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"h",(function(){return _})),n.d(t,"j",(function(){return x})),n.d(t,"i",(function(){return O})),n.d(t,"k",(function(){return k})),n.d(t,"g",(function(){return R}));var o=n(83),r=n.n(o),i=n(0),a=n(7),s=n(1),c=n(110),l=n(169);let d,u,h,p,m,g;var f;!function(e){e.Fledgling="fledgling",e.InviteSent="invite_sent",e.WaitLocalMedia="wait_local_media",e.CreateOffer="create_offer",e.CreateAnswer="create_answer",e.Connecting="connecting",e.Connected="connected",e.Ringing="ringing",e.Ended="ended"}(d||(d={})),function(e){e.Voice="voice",e.Video="video"}(u||(u={})),function(e){e.Inbound="inbound",e.Outbound="outbound"}(h||(h={})),function(e){e.Local="local",e.Remote="remote"}(p||(p={})),function(e){e.Hangup="hangup",e.State="state",e.Error="error",e.Replaced="replaced",e.LocalHoldUnhold="local_hold_unhold",e.RemoteHoldUnhold="remote_hold_unhold",e.HoldUnhold="hold_unhold"}(m||(m={})),function(e){e.UserHangup="user_hangup",e.LocalOfferFailed="local_offer_failed",e.NoUserMedia="no_user_media",e.UnknownDevices="unknown_devices",e.SendInvite="send_invite",e.CreateAnswer="create_answer",e.SendAnswer="send_answer",e.SetRemoteDescription="set_remote_description",e.SetLocalDescription="set_local_description",e.AnsweredElsewhere="answered_elsewhere",e.IceFailed="ice_failed",e.InviteTimeout="invite_timeout",e.Replaced="replaced",e.SignallingFailed="signalling_timeout"}(g||(g={})),function(e){e.Audio="audio",e.Video="video"}(f||(f={}));function _(){return window.electron.getDesktopCapturerSources({thumbnailSize:{height:176,width:312},types:["screen","window"]})}class b extends Error{constructor(e,t,n){super(t+": "+n),r()(this,"code",void 0),this.code=e}}function v(){return Date.now().toString()+Object(l.b)(16)}class y extends a.EventEmitter{constructor(e){super(),r()(this,"roomId",void 0),r()(this,"type",void 0),r()(this,"callId",void 0),r()(this,"state",void 0),r()(this,"hangupParty",void 0),r()(this,"hangupReason",void 0),r()(this,"direction",void 0),r()(this,"ourPartyId",void 0),r()(this,"client",void 0),r()(this,"forceTURN",void 0),r()(this,"turnServers",void 0),r()(this,"candidateSendQueue",void 0),r()(this,"candidateSendTries",void 0),r()(this,"sentEndOfCandidates",void 0),r()(this,"peerConn",void 0),r()(this,"localVideoElement",void 0),r()(this,"remoteVideoElement",void 0),r()(this,"remoteAudioElement",void 0),r()(this,"screenSharingStream",void 0),r()(this,"remoteStream",void 0),r()(this,"localAVStream",void 0),r()(this,"inviteOrAnswerSent",void 0),r()(this,"waitForLocalAVStream",void 0),r()(this,"config",void 0),r()(this,"successor",void 0),r()(this,"opponentMember",void 0),r()(this,"opponentVersion",void 0),r()(this,"opponentPartyId",void 0),r()(this,"opponentCaps",void 0),r()(this,"inviteTimeout",void 0),r()(this,"remoteOnHold",void 0),r()(this,"unholdingRemote",void 0),r()(this,"micMuted",void 0),r()(this,"vidMuted",void 0),r()(this,"callStatsAtEnd",void 0),r()(this,"makingOffer",void 0),r()(this,"ignoreOffer",void 0),r()(this,"remoteCandidateBuffer",new Map),r()(this,"gotUserMediaForInvite",async e=>{if(this.successor)return void this.successor.gotUserMediaForAnswer(e);if(this.callHasEnded())return void this.stopAllMedia();this.localAVStream=e,i.a.info("Got local AV stream with id "+this.localAVStream.id),this.setState(d.CreateOffer),i.a.debug("gotUserMediaForInvite -> "+this.type);const t=this.getLocalVideoElement();if(t&&this.type===u.Video){t.autoplay=!0,this.screenSharingStream?(i.a.debug("Setting screen sharing stream to the local video element"),t.srcObject=this.screenSharingStream):t.srcObject=e,t.muted=!0;try{await t.play()}catch(e){i.a.info("Failed to play local video element",e)}}E(e.getAudioTracks(),!0);for(const t of e.getAudioTracks())i.a.info("Adding audio track with id "+t.id),this.peerConn.addTrack(t,e);for(const t of(this.screenSharingStream||e).getVideoTracks())i.a.info("Adding video track with id "+t.id),this.peerConn.addTrack(t,e)}),r()(this,"gotUserMediaForAnswer",async e=>{if(this.callHasEnded())return;const t=this.getLocalVideoElement();if(t&&this.type===u.Video){t.autoplay=!0,t.srcObject=e,t.muted=!0;try{await t.play()}catch(e){i.a.info("Failed to play local video element",e)}}this.localAVStream=e,i.a.info("Got local AV stream with id "+this.localAVStream.id),E(e.getAudioTracks(),!0);for(const t of e.getTracks())this.peerConn.addTrack(t,e);let n;this.setState(d.CreateAnswer);try{n=await this.peerConn.createAnswer()}catch(e){return i.a.debug("Failed to create answer: ",e),void this.terminate(p.Local,g.CreateAnswer,!0)}try{await this.peerConn.setLocalDescription(n),this.setState(d.Connecting),await new Promise(e=>{setTimeout(e,200)}),this.sendAnswer()}catch(e){return i.a.debug("Error setting local description!",e),void this.terminate(p.Local,g.SetLocalDescription,!0)}}),r()(this,"gotLocalIceCandidate",e=>{if(e.candidate){if(i.a.debug("Call "+this.callId+" got local ICE "+e.candidate.sdpMid+" candidate: "+e.candidate.candidate),this.callHasEnded())return;""===e.candidate.candidate&&this.sentEndOfCandidates||(this.queueCandidate(e.candidate),""===e.candidate.candidate&&(this.sentEndOfCandidates=!0))}}),r()(this,"onIceGatheringStateChange",e=>{if(i.a.debug("ice gathering state changed to "+this.peerConn.iceGatheringState),"complete"===this.peerConn.iceGatheringState&&!this.sentEndOfCandidates){const e={candidate:""};this.queueCandidate(e),this.sentEndOfCandidates=!0}}),r()(this,"gotLocalOffer",async e=>{if(i.a.debug("Created offer: ",e),this.callHasEnded())return void i.a.debug("Ignoring newly created offer on call ID "+this.callId+" because the call has ended");try{await this.peerConn.setLocalDescription(e)}catch(e){return i.a.debug("Error setting local description!",e),void this.terminate(p.Local,g.SetLocalDescription,!0)}if("gathering"===this.peerConn.iceGatheringState&&await new Promise(e=>{setTimeout(e,200)}),this.callHasEnded())return;const t=this.state===d.CreateOffer?c.a.CallInvite:c.a.CallNegotiate,n={lifetime:6e4};this.state===d.CreateOffer?n.offer=this.peerConn.localDescription:n.description=this.peerConn.localDescription,this.client._supportsCallTransfer&&(n.capabilities={"m.call.transferee":!0}),i.a.info(`Discarding ${this.candidateSendQueue.length} candidates that will be sent in offer`),this.candidateSendQueue=[];try{await this.sendVoipEvent(t,n)}catch(e){i.a.error("Failed to send invite",e),e.event&&this.client.cancelPendingEvent(e.event);let t=g.SignallingFailed,n="Signalling failed";return this.state===d.CreateOffer&&(t=g.SendInvite,n="Failed to send invite"),"UnknownDeviceError"==e.name&&(t=g.UnknownDevices,n="Unknown devices present in the room"),this.emit(m.Error,new b(t,n,e)),void this.terminate(p.Local,t,!1)}this.sendCandidateQueue(),this.state===d.CreateOffer&&(this.inviteOrAnswerSent=!0,this.setState(d.InviteSent),this.inviteTimeout=setTimeout(()=>{this.inviteTimeout=null,this.state===d.InviteSent&&this.hangup(g.InviteTimeout,!1)},6e4))}),r()(this,"getLocalOfferFailed",e=>{i.a.error("Failed to get local offer",e),this.emit(m.Error,new b(g.LocalOfferFailed,"Failed to get local offer!",e)),this.terminate(p.Local,g.LocalOfferFailed,!1)}),r()(this,"getUserMediaFailed",e=>{this.successor?this.successor.getUserMediaFailed(e):(i.a.warn("Failed to get user media - ending call",e),this.emit(m.Error,new b(g.NoUserMedia,"Couldn't start capturing media! Is your microphone set up and does this app have permission?",e)),this.terminate(p.Local,g.NoUserMedia,!1))}),r()(this,"onIceConnectionStateChanged",()=>{this.callHasEnded()||(i.a.debug("Call ID "+this.callId+": ICE connection state changed to: "+this.peerConn.iceConnectionState),"connected"==this.peerConn.iceConnectionState?this.setState(d.Connected):"failed"==this.peerConn.iceConnectionState&&this.hangup(g.IceFailed,!1))}),r()(this,"onSignallingStateChanged",()=>{i.a.debug("call "+this.callId+": Signalling state changed to: "+this.peerConn.signalingState)}),r()(this,"onTrack",e=>{0!==e.streams.length?this.remoteStream&&e.streams[0].id!==this.remoteStream.id?i.a.warn(`Ignoring new stream ID ${e.streams[0].id}: we already have stream ID ${this.remoteStream.id}`):(this.remoteStream||i.a.info("Got remote stream with id "+e.streams[0].id),this.remoteStream=e.streams[0],i.a.debug(`Track id ${e.track.id} of kind ${e.track.kind} added`),"video"===e.track.kind?this.remoteVideoElement&&this.playRemoteVideo():this.remoteAudioElement&&this.playRemoteAudio()):i.a.warn(`Streamless ${e.track.kind} found: ignoring.`)}),r()(this,"onNegotiationNeeded",async()=>{if(i.a.info("Negotation is needed!"),this.state===d.CreateOffer||0!==this.opponentVersion){this.makingOffer=!0;try{const e=await this.peerConn.createOffer();await this.gotLocalOffer(e)}catch(e){return void this.getLocalOfferFailed(e)}finally{this.makingOffer=!1}}else i.a.info("Opponent does not support renegotiation: ignoring negotiationneeded event")}),r()(this,"onHangupReceived",e=>{i.a.debug("Hangup received for call ID "+this.callId),this.partyIdMatches(e)||this.state===d.Ringing?this.terminate(p.Remote,e.reason||g.UserHangup,!0):i.a.info(`Ignoring message from party ID ${e.party_id}: our partner is ${this.opponentPartyId}`)}),r()(this,"onRejectReceived",e=>{i.a.debug("Reject received for call ID "+this.callId);[d.InviteSent,d.Ringing].includes(this.state)||this.state===d.Fledgling&&this.direction===h.Inbound?this.terminate(p.Remote,g.UserHangup,!0):i.a.debug(`Call is in state: ${this.state}: ignoring reject`)}),r()(this,"onAnsweredElsewhere",e=>{i.a.debug("Call ID "+this.callId+" answered elsewhere"),this.terminate(p.Remote,g.AnsweredElsewhere,!0)}),this.roomId=e.roomId,this.client=e.client,this.type=null,this.forceTURN=e.forceTURN,this.ourPartyId=this.client.deviceId,this.turnServers=e.turnServers||[],0===this.turnServers.length&&this.client.isFallbackICEServerAllowed()&&this.turnServers.push({urls:["stun:turn.matrix.org"]});for(const e of this.turnServers)s.a(e,["urls"]);this.callId=v(),this.state=d.Fledgling,this.candidateSendQueue=[],this.candidateSendTries=0,this.sentEndOfCandidates=!1,this.inviteOrAnswerSent=!1,this.makingOffer=!1,this.remoteOnHold=!1,this.unholdingRemote=!1,this.micMuted=!1,this.vidMuted=!1}async placeVoiceCall(){i.a.debug("placeVoiceCall"),this.checkForErrorListener();const e=S(f.Audio);this.type=u.Voice,await this.placeCallWithConstraints(e)}async placeVideoCall(e,t){i.a.debug("placeVideoCall"),this.checkForErrorListener(),this.localVideoElement=t,this.remoteVideoElement=e;const n=S(f.Video);this.type=u.Video,await this.placeCallWithConstraints(n)}async placeScreenSharingCall(e,t,n){i.a.debug("placeScreenSharingCall"),this.checkForErrorListener(),this.localVideoElement=t,this.remoteVideoElement=e;try{var o;const e=await async function(e){var t;if(null!==(t=window.electron)&&void 0!==t&&t.getDesktopCapturerSources&&e){i.a.debug("Electron getDesktopCapturerSources() is available...");const t=await e();return t?{audio:!1,video:{mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t.id}}}:null}return i.a.debug("Electron desktopCapturer is not available..."),{audio:!1,video:!0}}(n);if(!e)return void this.terminate(p.Local,g.NoUserMedia,!1);null!==(o=window.electron)&&void 0!==o&&o.getDesktopCapturerSources?(i.a.debug("Getting screen stream using getUserMedia()..."),this.screenSharingStream=await navigator.mediaDevices.getUserMedia(e)):(i.a.debug("Getting screen stream using getDisplayMedia()..."),this.screenSharingStream=await navigator.mediaDevices.getDisplayMedia(e)),i.a.debug("Got screen stream, requesting audio stream...");const t=S(f.Audio);this.placeCallWithConstraints(t)}catch(e){this.emit(m.Error,new b(g.NoUserMedia,"Failed to get screen-sharing stream: ",e)),this.terminate(p.Local,g.NoUserMedia,!1)}this.type=u.Video}getOpponentMember(){return this.opponentMember}opponentCanBeTransferred(){return Boolean(this.opponentCaps&&this.opponentCaps["m.call.transferee"])}getLocalVideoElement(){return this.localVideoElement}getRemoteVideoElement(){return this.remoteVideoElement}getRemoteAudioElement(){return this.remoteAudioElement}async setLocalVideoElement(e){if(this.localVideoElement=e,e&&this.localAVStream&&this.type===u.Video){e.autoplay=!0,e.srcObject=this.localAVStream,e.muted=!0;try{await e.play()}catch(e){i.a.info("Failed to play local video element",e)}}}setRemoteVideoElement(e){e!==this.remoteVideoElement&&(e.autoplay=!0,this.remoteAudioElement&&(e.muted=!0),this.remoteVideoElement=e,this.remoteStream&&this.playRemoteVideo())}async setRemoteAudioElement(e){e!==this.remoteAudioElement&&(this.remoteAudioElement=e,this.remoteStream&&this.playRemoteAudio())}async getCurrentCallStats(){return this.callHasEnded()?this.callStatsAtEnd:this.collectCallStats()}async collectCallStats(){if(!this.peerConn)return;const e=await this.peerConn.getStats(),t=[];for(const n of e)t.push(n[1]);return t}async initWithInvite(e){const t=e.getContent();this.direction=h.Inbound;await this.client._checkTurnServers()||i.a.warn("Failed to get TURN credentials! Proceeding with call anyway..."),this.peerConn=this.createPeerConnection(),this.chooseOpponent(e);try{await this.peerConn.setRemoteDescription(t.offer),await this.addBufferedIceCandidates()}catch(e){return i.a.debug("Failed to set remote description",e),void this.terminate(p.Local,g.SetRemoteDescription,!1)}if(!this.remoteStream||0===this.remoteStream.getTracks().length)return i.a.error("No remote stream or no tracks after setting remote description!"),void this.terminate(p.Local,g.SetRemoteDescription,!1);this.type=this.remoteStream.getTracks().some(e=>"video"===e.kind)?u.Video:u.Voice,this.setState(d.Ringing),e.getLocalAge()&&setTimeout(()=>{this.state==d.Ringing&&(i.a.debug("Call invite has expired. Hanging up."),this.hangupParty=p.Remote,this.setState(d.Ended),this.stopAllMedia(),"closed"!=this.peerConn.signalingState&&this.peerConn.close(),this.emit(m.Hangup))},t.lifetime-e.getLocalAge())}initWithHangup(e){this.setState(d.Ended)}async answer(){if(!this.inviteOrAnswerSent)if(i.a.debug(`Answering call ${this.callId} of type ${this.type}`),this.localAVStream||this.waitForLocalAVStream)this.localAVStream?this.gotUserMediaForAnswer(this.localAVStream):this.waitForLocalAVStream&&this.setState(d.WaitLocalMedia);else{const e=S(this.type==u.Video?f.Video:f.Audio);i.a.log("Getting user media with constraints",e),this.setState(d.WaitLocalMedia),this.waitForLocalAVStream=!0;try{const t=await navigator.mediaDevices.getUserMedia(e);this.waitForLocalAVStream=!1,this.gotUserMediaForAnswer(t)}catch(e){return void this.getUserMediaFailed(e)}}}replacedBy(e){i.a.debug(this.callId+" being replaced by "+e.callId),this.state===d.WaitLocalMedia?(i.a.debug("Telling new call to wait for local media"),e.waitForLocalAVStream=!0):(this.state===d.CreateOffer||this.state===d.InviteSent)&&(i.a.debug("Handing local stream to new call"),e.gotUserMediaForAnswer(this.localAVStream),delete this.localAVStream),e.localVideoElement=this.localVideoElement,e.remoteVideoElement=this.remoteVideoElement,e.remoteAudioElement=this.remoteAudioElement,this.successor=e,this.emit(m.Replaced,e),this.hangup(g.Replaced,!0)}hangup(e,t){if(this.callHasEnded())return;if(i.a.debug("Ending call "+this.callId),this.terminate(p.Local,e,!t),this.state===d.WaitLocalMedia)return;g.UserHangup,this.sendVoipEvent(c.a.CallHangup,{})}reject(){if(this.state!==d.Ringing)throw Error("Call must be in 'ringing' state to reject!");if(this.opponentVersion<1)return i.a.info(`Opponent version is less than 1 (${this.opponentVersion}): sending hangup instead of reject`),void this.hangup(g.UserHangup,!0);i.a.debug("Rejecting call: "+this.callId),this.terminate(p.Local,g.UserHangup,!0),this.sendVoipEvent(c.a.CallReject,{})}setLocalVideoMuted(e){this.vidMuted=e,this.updateMuteStatus()}isLocalVideoMuted(){return this.vidMuted}setMicrophoneMuted(e){this.micMuted=e,this.updateMuteStatus()}isMicrophoneMuted(){return this.micMuted}isRemoteOnHold(){return this.remoteOnHold}setRemoteOnHold(e){if(this.isRemoteOnHold()!==e){this.remoteOnHold=e,e||(this.unholdingRemote=!0);for(const t of this.peerConn.getTransceivers())t.direction=e?"inactive":"sendrecv";this.updateMuteStatus(),e||this.playRemoteAudio(),this.emit(m.RemoteHoldUnhold,this.remoteOnHold)}}isLocalOnHold(){if(this.state!==d.Connected)return!1;if(this.unholdingRemote)return!1;let e=!0;for(const t of this.peerConn.getTransceivers()){["inactive","recvonly"].includes(t.currentDirection)||(e=!1)}return e}sendDtmfDigit(e){for(const t of this.peerConn.getSenders())if("audio"===t.track.kind&&t.dtmf)return void t.dtmf.insertDTMF(e);throw new Error("Unable to find a track to send DTMF on")}updateMuteStatus(){if(!this.localAVStream)return;const e=this.micMuted||this.remoteOnHold;E(this.localAVStream.getAudioTracks(),!e);const t=this.vidMuted||this.remoteOnHold;E(this.localAVStream.getVideoTracks(),!t),this.remoteOnHold?this.remoteAudioElement&&this.remoteAudioElement.srcObject===this.remoteStream?this.remoteAudioElement.muted=!0:this.remoteVideoElement&&this.remoteVideoElement.srcObject===this.remoteStream&&(this.remoteVideoElement.muted=!0):this.playRemoteAudio()}async sendAnswer(){const e={answer:{sdp:this.peerConn.localDescription.sdp,type:this.peerConn.localDescription.type}};this.client._supportsCallTransfer&&(e.capabilities={"m.call.transferee":!0}),i.a.info(`Discarding ${this.candidateSendQueue.length} candidates that will be sent in answer`),this.candidateSendQueue=[];try{await this.sendVoipEvent(c.a.CallAnswer,e),this.inviteOrAnswerSent=!0}catch(e){this.setState(d.Ringing),this.client.cancelPendingEvent(e.event);let t=g.SendAnswer,n="Failed to send answer";throw"UnknownDeviceError"==e.name&&(t=g.UnknownDevices,n="Unknown devices present in the room"),this.emit(m.Error,new b(t,n,e)),e}this.sendCandidateQueue()}async onRemoteIceCandidatesReceived(e){if(this.callHasEnded())return;const t=e.getContent().candidates;if(!t)return void i.a.info("Ignoring candidates event with no candidates!");const n=0===e.getContent().version?null:e.getContent().party_id||null;if(void 0===this.opponentPartyId){i.a.info(`Bufferring ${t.length} candidates until we pick an opponent`);const e=this.remoteCandidateBuffer.get(n)||[];return e.push(...t),void this.remoteCandidateBuffer.set(n,e)}this.partyIdMatches(e.getContent())?await this.addIceCandidates(t):i.a.info(`Ignoring candidates from party ID ${e.getContent().party_id}: we have chosen party ID `+this.opponentPartyId)}async onAnswerReceived(e){if(i.a.debug(`Got answer for call ID ${this.callId} from party ID ${e.getContent().party_id}`),this.callHasEnded())i.a.debug(`Ignoring answer because call ID ${this.callId} has ended`);else if(void 0===this.opponentPartyId){this.chooseOpponent(e),await this.addBufferedIceCandidates(),this.setState(d.Connecting);try{await this.peerConn.setRemoteDescription(e.getContent().answer)}catch(e){return i.a.debug("Failed to set remote description",e),void this.terminate(p.Local,g.SetRemoteDescription,!1)}if(null!==this.opponentPartyId)try{await this.sendVoipEvent(c.a.CallSelectAnswer,{selected_party_id:this.opponentPartyId})}catch(e){i.a.warn("Failed to send select_answer event",e)}}else i.a.info(`Ignoring answer from party ID ${e.getContent().party_id}: we already have an answer/reject from `+this.opponentPartyId)}async onSelectAnswerReceived(e){if(this.direction!==h.Inbound)return void i.a.warn("Got select_answer for an outbound call: ignoring");const t=e.getContent().selected_party_id;null!=t?t!==this.ourPartyId&&(i.a.info(`Got select_answer for party ID ${t}: we are party ID ${this.ourPartyId}.`),this.terminate(p.Remote,g.AnsweredElsewhere,!0)):i.a.warn("Got nonsensical select_answer with null/undefined selected_party_id: ignoring")}async onNegotiateReceived(e){const t=e.getContent().description;if(!t||!t.sdp||!t.type)return void i.a.info("Ignoring invalid m.call.negotiate event");const n=this.direction===h.Inbound,o="offer"===t.type&&(this.makingOffer||"stable"!=this.peerConn.signalingState);if(this.ignoreOffer=!n&&o,this.ignoreOffer)return void i.a.info("Ignoring colliding negotiate event because we're impolite");const r=this.isLocalOnHold();"answer"===t.type&&(this.unholdingRemote=!1);try{if(await this.peerConn.setRemoteDescription(t),"offer"===t.type){for(const e of this.peerConn.getTransceivers())e.direction=this.isRemoteOnHold()?"inactive":"sendrecv";const e=await this.peerConn.createAnswer();await this.peerConn.setLocalDescription(e);for(const e of this.peerConn.getTransceivers())e.direction=e.currentDirection;this.sendVoipEvent(c.a.CallNegotiate,{description:this.peerConn.localDescription})}}catch(e){i.a.warn("Failed to complete negotiation",e)}const a=this.isLocalOnHold();r!==a&&(this.emit(m.LocalHoldUnhold,a),this.emit(m.HoldUnhold,a))}callHasEnded(){return this.state===d.Ended}async playRemoteAudio(){this.remoteVideoElement&&(this.remoteVideoElement.muted=!0),this.remoteAudioElement.muted=!1,this.remoteAudioElement.srcObject=this.remoteStream;try{w&&(i.a.info("Setting audio sink to "+w+", was "+this.remoteAudioElement.sinkId),await this.remoteAudioElement.setSinkId(w))}catch(e){i.a.warn("Couldn't set requested audio output device: using default",e)}try{await this.remoteAudioElement.play()}catch(e){i.a.error("Failed to play remote audio element",e)}}async playRemoteVideo(){this.remoteVideoElement.srcObject=this.remoteStream,i.a.info("playing remote video. stream active? "+this.remoteStream.active);try{await this.remoteVideoElement.play()}catch(e){i.a.info("Failed to play remote video element",e)}}setState(e){const t=this.state;this.state=e,this.emit(m.State,e,t)}sendVoipEvent(e,t){return this.client.sendEvent(this.roomId,e,Object.assign({},t,{version:1,call_id:this.callId,party_id:this.ourPartyId}))}queueCandidate(e){if(this.candidateSendQueue.push(e),this.state===d.Ringing||!this.inviteOrAnswerSent)return;const t=this.direction===h.Inbound?500:2e3;0===this.candidateSendTries&&setTimeout(()=>{this.sendCandidateQueue()},t)}async transfer(e){const t=await this.client.getProfileInfo(e),n=v(),o={replacement_id:v(),target_user:{id:e,display_name:t.display_name,avatar_url:t.avatar_url},create_call:n};await this.sendVoipEvent(c.a.CallReplaces,o),await this.terminate(p.Local,g.Replaced,!0)}async transferToCall(e){const t=await this.client.getProfileInfo(e.getOpponentMember().userId),n=await this.client.getProfileInfo(this.getOpponentMember().userId),o=v(),r={replacement_id:v(),target_user:{id:this.getOpponentMember().userId,display_name:n.display_name,avatar_url:n.avatar_url},await_call:o};await e.sendVoipEvent(c.a.CallReplaces,r);const i={replacement_id:v(),target_user:{id:e.getOpponentMember().userId,display_name:t.display_name,avatar_url:t.avatar_url},create_call:o};await this.sendVoipEvent(c.a.CallReplaces,i),await this.terminate(p.Local,g.Replaced,!0),await e.terminate(p.Local,g.Replaced,!0)}async terminate(e,t,n){if(this.callHasEnded())return;this.callStatsAtEnd=await this.collectCallStats(),this.inviteTimeout&&(clearTimeout(this.inviteTimeout),this.inviteTimeout=null);const o=this.getRemoteVideoElement(),r=this.getRemoteAudioElement(),a=this.getLocalVideoElement();if(o&&(o.pause(),o.srcObject=null),r){r.pause(),r.srcObject=null;try{await this.remoteAudioElement.setSinkId("")}catch(e){i.a.warn("Failed to set sink ID back to default")}}a&&(a.pause(),a.srcObject=null),this.hangupParty=e,this.hangupReason=t,this.setState(d.Ended),this.stopAllMedia(),this.peerConn&&"closed"!==this.peerConn.signalingState&&this.peerConn.close(),n&&this.emit(m.Hangup,this)}stopAllMedia(){if(i.a.debug(`stopAllMedia (stream=${this.localAVStream})`),this.localAVStream)for(const e of this.localAVStream.getTracks())e.stop();if(this.screenSharingStream)for(const e of this.screenSharingStream.getTracks())e.stop();if(this.remoteStream)for(const e of this.remoteStream.getTracks())e.stop()}checkForErrorListener(){if(0===this.listeners("error").length)throw new Error("You MUST attach an error listener using call.on('error', function() {})")}async sendCandidateQueue(){if(0===this.candidateSendQueue.length)return;const e=this.candidateSendQueue;this.candidateSendQueue=[],++this.candidateSendTries;const t={candidates:e};i.a.debug("Attempting to send "+e.length+" candidates");try{await this.sendVoipEvent(c.a.CallCandidates,t)}catch(t){if(t.event&&this.client.cancelPendingEvent(t.event),this.candidateSendQueue.push(...e),this.candidateSendTries>5){i.a.debug("Failed to send candidates on attempt "+this.candidateSendTries+". Giving up on this call.",t);const e=g.SignallingFailed,n="Signalling failed";return this.emit(m.Error,new b(e,n,t)),void this.hangup(e,!1)}const n=500*Math.pow(2,this.candidateSendTries);++this.candidateSendTries,i.a.debug("Failed to send candidates. Retrying in "+n+"ms",t),setTimeout(()=>{this.sendCandidateQueue()},n)}}async placeCallWithConstraints(e){i.a.log("Getting user media with constraints",e),this.client._callEventHandler.calls.set(this.callId,this),this.setState(d.WaitLocalMedia),this.direction=h.Outbound,this.config=e;await this.client._checkTurnServers()||i.a.warn("Failed to get TURN credentials! Proceeding with call anyway..."),this.peerConn=this.createPeerConnection();try{const t=await navigator.mediaDevices.getUserMedia(e);this.gotUserMediaForInvite(t)}catch(e){return void this.getUserMediaFailed(e)}}createPeerConnection(){const e=new window.RTCPeerConnection({iceTransportPolicy:this.forceTURN?"relay":void 0,iceServers:this.turnServers,iceCandidatePoolSize:this.client._iceCandidatePoolSize});return e.addEventListener("iceconnectionstatechange",this.onIceConnectionStateChanged),e.addEventListener("signalingstatechange",this.onSignallingStateChanged),e.addEventListener("icecandidate",this.gotLocalIceCandidate),e.addEventListener("icegatheringstatechange",this.onIceGatheringStateChange),e.addEventListener("track",this.onTrack),e.addEventListener("negotiationneeded",this.onNegotiationNeeded),e}partyIdMatches(e){return(0===e.version?null:e.party_id||null)===this.opponentPartyId}chooseOpponent(e){const t=e.getContent();i.a.debug(`Choosing party ID ${t.party_id} for call ID ${this.callId}`),this.opponentVersion=t.version,0===this.opponentVersion?this.opponentPartyId=null:this.opponentPartyId=t.party_id||null,this.opponentCaps=t.capabilities||{},this.opponentMember=e.sender}async addBufferedIceCandidates(){const e=this.remoteCandidateBuffer.get(this.opponentPartyId);e&&(i.a.info(`Adding ${e.length} buffered candidates for opponent ${this.opponentPartyId}`),await this.addIceCandidates(e)),this.remoteCandidateBuffer=null}async addIceCandidates(e){for(const t of e)if(null!==t.sdpMid&&void 0!==t.sdpMid||null!==t.sdpMLineIndex&&void 0!==t.sdpMLineIndex){i.a.debug("Call "+this.callId+" got remote ICE "+t.sdpMid+" candidate: "+t.candidate);try{await this.peerConn.addIceCandidate(t)}catch(e){this.ignoreOffer||i.a.info("Failed to add remote ICE candidate",e)}}else i.a.debug("Ignoring remote ICE candidate with no sdpMid or sdpMLineIndex")}}function E(e,t){for(let n=0;n<e.length;n++)e[n].enabled=t}function S(e){const t=!!navigator.webkitGetUserMedia;switch(e){case f.Audio:return{audio:{deviceId:C?{ideal:C}:void 0},video:!1};case f.Video:return{audio:{deviceId:C?{ideal:C}:void 0},video:{deviceId:T?{ideal:T}:void 0,width:t?{exact:640}:{ideal:640},height:t?{exact:360}:{ideal:360}}}}}let w,C,T;function x(e){w=e}function O(e){C=e}function k(e){T=e}function R(e,t,n){if("undefined"==typeof window||"undefined"==typeof document)return null;try{if(!Boolean(window.RTCPeerConnection||window.RTCSessionDescription||window.RTCIceCandidate||navigator.mediaDevices))return i.a.error("WebRTC is not supported in this browser / environment"),null}catch(e){return i.a.error("Exception thrown when trying to access WebRTC",e),null}const o=!!n&&n.forceTURN,r={client:e,roomId:t,turnServers:e.getTurnServers(),forceTURN:e._forceTURN||o},a=new y(r);return e.reEmitter.reEmit(a,Object.values(m)),a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(121),r=n(88),i=n(94),a=n(89),s=n(249),c=n(90),l=n(167),d=n(138),u=n(128),h=n(84),p=n(3);class m{static canUserModifyWidgets(e){if(!e)return console.warn("No room ID specified"),!1;const t=r.a.get();if(!t)return console.warn("User must be be logged in"),!1;const n=t.getRoom(e);if(!n)return console.warn(`Room ID ${e} is not recognised`),!1;const o=t.credentials.userId;return o?"join"!==n.getMyMembership()?(console.warn(`User ${o} is not in room ${e}`),!1):n.currentState.maySendStateEvent("im.vector.modular.widgets",o):(console.warn("Failed to get user ID"),!1)}static isScalarUrl(e){if(!e)return console.error("Scalar URL check failed. No URL specified"),!1;const t=o.parse(e);let n=i.a.get().integrations_widgets_urls;if(!n||0===n.length){const e=l.a.sharedInstance().getPrimaryManager();n=e?[e.apiUrl]:[]}for(let e=0;e<n.length;e++){const r=o.parse(n[e]);if(t&&r&&t.protocol===r.protocol&&t.host===r.host&&t.pathname.startsWith(r.pathname))return!0}return!1}static waitForUserWidget(e,t){return new Promise((n,o)=>{function i(n){return!(!n||!n.getContent())&&(t?void 0!==n.getContent()[e]:void 0===n.getContent()[e])}if(i(r.a.get().getAccountData("m.widgets")))return void n();function a(e){i(r.a.get().getAccountData("m.widgets"))&&(r.a.get().removeListener("accountData",a),clearTimeout(s),n())}const s=setTimeout(()=>{r.a.get().removeListener("accountData",a),o(new Error("Timed out waiting for widget ID "+e+" to appear"))},2e4);r.a.get().on("accountData",a)})}static waitForRoomWidget(e,t,n){return new Promise((o,i)=>{function a(t){const o=t.some(t=>t.getContent()&&t.getContent().id===e);return n?o:!o}const s=r.a.get().getRoom(t);if(a(s.currentState.getStateEvents("im.vector.modular.widgets")))return void o();function c(e){if(e.getRoomId()!==t)return;a(s.currentState.getStateEvents("im.vector.modular.widgets"))&&(r.a.get().removeListener("RoomState.events",c),clearTimeout(l),o())}const l=setTimeout(()=>{r.a.get().removeListener("RoomState.events",c),i(new Error("Timed out waiting for widget ID "+e+" to appear"))},2e4);r.a.get().on("RoomState.events",c)})}static setUserWidget(e,t,n,o,i){const s={type:t.preferred,url:n,name:o,data:i},c=r.a.get(),l=Object(u.a)(m.getUserWidgets());try{delete l[e]}catch(e){console.error("$widgetId is non-configurable")}const d=Boolean(n);return d&&(l[e]={content:s,sender:c.getUserId(),state_key:e,type:"m.widget",id:e}),c.setAccountData("m.widgets",l).then(()=>m.waitForUserWidget(e,d)).then(()=>{a.a.dispatch({action:"user_widget_updated"})})}static setRoomWidget(e,t,n,o,r,i){let a;return a=Boolean(o)?{type:n.legacy,url:o,name:r,data:i}:{},m.setRoomWidgetContent(e,t,a)}static setRoomWidgetContent(e,t,n){const o=!!n.url;s.a.setRoomWidgetEcho(e,t,n);return r.a.get().sendStateEvent(e,"im.vector.modular.widgets",n,t).then(()=>m.waitForRoomWidget(t,e,o)).finally(()=>{s.a.removeRoomWidgetEcho(e,t)})}static getRoomWidgets(e){const t=e.currentState.getStateEvents("im.vector.modular.widgets");return t?t.filter(e=>e.getContent().type&&e.getContent().url):[]}static getUserWidgets(){const e=r.a.get();if(!e)throw new Error("User not logged in");const t=e.getAccountData("m.widgets");return t&&t.getContent()?t.getContent():{}}static getUserWidgetsArray(){return Object.values(m.getUserWidgets())}static getStickerpickerWidgets(){return m.getUserWidgetsArray().filter(e=>e.content&&"m.stickerpicker"===e.content.type)}static getIntegrationManagerWidgets(){return m.getUserWidgetsArray().filter(e=>e.content&&"m.integration_manager"===e.content.type)}static getRoomWidgetsOfType(e,t){return(m.getRoomWidgets(e)||[]).filter(e=>{const n=e.getContent();return n.url&&t.matches(n.type)})}static removeIntegrationManagerWidgets(){const e=r.a.get();if(!e)throw new Error("User not logged in");const t=e.getAccountData("m.widgets");if(!t)return;const n=t.getContent()||{};return Object.entries(n).forEach(([e,t])=>{t.content&&"m.integration_manager"===t.content.type&&delete n[e]}),e.setAccountData("m.widgets",n)}static addIntegrationManagerWidget(e,t,n){return m.setUserWidget("integration_manager_"+(new Date).getTime(),d.a.INTEGRATION_MANAGER,t,"Integration Manager: "+e,{api_url:n})}static removeStickerpickerWidgets(){const e=r.a.get();if(!e)throw new Error("User not logged in");const t=e.getAccountData("m.widgets");if(!t)return;const n=t.getContent()||{};return Object.entries(n).forEach(([e,t])=>{t.content&&"m.stickerpicker"===t.content.type&&delete n[e]}),e.setAccountData("m.widgets",n)}static makeAppConfig(e,t,n,o,r){if(!n)throw new Error("Widgets must be created by someone - provide a senderUserId");return t.creatorUserId=n,t.id=e,t.roomId=o,t.eventId=r,t.name=t.name||t.type,t}static getCapWhitelistForAppTypeInRoomId(e,t){const n=c.b.getValue("enableWidgetScreenshots",t)?[p.MatrixCapabilities.Screenshots]:[];return d.a.JITSI.matches(e)&&n.push(p.MatrixCapabilities.AlwaysOnScreen),n}static getLocalJitsiWrapperUrl(e={}){const t=["conferenceDomain=$domain","conferenceId=$conferenceId","isAudioOnly=$isAudioOnly","displayName=$matrix_display_name","avatarUrl=$matrix_avatar_url","userId=$matrix_user_id","roomId=$matrix_room_id","theme=$theme","roomName=$roomName"];e.auth&&t.push("auth="+e.auth);const n=t.join("&");let o=window.location.href;"https:"===window.location.protocol||e.forLocalRender||(o="https://app.element.io/");return new URL("jitsi.html#"+n,o).href}static getWidgetName(e){var t;return(null==e||null===(t=e.name)||void 0===t?void 0:t.trim())||Object(h.a)("Unknown App")}static getWidgetDataTitle(e){var t,n;return(null==e||null===(t=e.data)||void 0===t||null===(n=t.title)||void 0===n?void 0:n.trim())||""}static editWidget(e,t){c.b.getValue("feature_many_integration_managers")?l.a.sharedInstance().openAll(e,"type_"+t.type,t.id):l.a.sharedInstance().getPrimaryManager().open(e,"type_"+t.type,t.id)}static isManagedByManager(e){if(m.isScalarUrl(e.url)){const e=l.a.sharedInstance();if(e.hasManager()){const t=e.getPrimaryManager();return m.isScalarUrl(t.apiUrl)}}return!1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.closest=t.distance=t.patch=t.absolute=t.negate=t.isEqual=t.subtract=t.add=void 0;var o=i(n(314)),r=i(n(170));function i(e){return e&&e.__esModule?e:{default:e}}t.add=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},t.subtract=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},t.isEqual=function(e,t){return e.x===t.x&&e.y===t.y},t.negate=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},t.absolute=function(e){return{x:Math.abs(e.x),y:Math.abs(e.y)}},t.patch=function(e,t){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return n={},(0,r.default)(n,e,t),(0,r.default)(n,"x"===e?"y":"x",o),n};var a=t.distance=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))};t.closest=function(e,t){return Math.min.apply(Math,(0,o.default)(t.map((function(t){return a(e,t)}))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"f",(function(){return p}));var o=n(84);function r(){return[Object(o.a)("Sun"),Object(o.a)("Mon"),Object(o.a)("Tue"),Object(o.a)("Wed"),Object(o.a)("Thu"),Object(o.a)("Fri"),Object(o.a)("Sat")]}function i(){return[Object(o.a)("Jan"),Object(o.a)("Feb"),Object(o.a)("Mar"),Object(o.a)("Apr"),Object(o.a)("May"),Object(o.a)("Jun"),Object(o.a)("Jul"),Object(o.a)("Aug"),Object(o.a)("Sep"),Object(o.a)("Oct"),Object(o.a)("Nov"),Object(o.a)("Dec")]}function a(e){return(e<10?"0":"")+e}function s(e,t=!1){let n=e.getHours()%12;const r=a(e.getMinutes()),i=e.getHours()>=12?Object(o.a)("PM"):Object(o.a)("AM");if(n=n||12,t){return`${n}:${r}:${a(e.getSeconds())}${i}`}return`${n}:${r}${i}`}function c(e,t=!1){const n=new Date,a=r(),s=i();return e.toDateString()===n.toDateString()?h(e,t):n.getTime()-e.getTime()<5184e5?Object(o.a)("%(weekDayName)s %(time)s",{weekDayName:a[e.getDay()],time:h(e,t)}):n.getFullYear()===e.getFullYear()?Object(o.a)("%(weekDayName)s, %(monthName)s %(day)s %(time)s",{weekDayName:a[e.getDay()],monthName:s[e.getMonth()],day:e.getDate(),time:h(e,t)}):d(e,t)}function l(e){const t=r(),n=i();return Object(o.a)("%(weekDayName)s, %(monthName)s %(day)s %(fullYear)s",{weekDayName:t[e.getDay()],monthName:n[e.getMonth()],day:e.getDate(),fullYear:e.getFullYear()})}function d(e,t=!1,n=!0){const a=r(),s=i();return Object(o.a)("%(weekDayName)s, %(monthName)s %(day)s %(fullYear)s %(time)s",{weekDayName:a[e.getDay()],monthName:s[e.getMonth()],day:e.getDate(),fullYear:e.getFullYear(),time:n?u(e,t):h(e,t)})}function u(e,t=!1){return t?s(e,!0):a(e.getHours())+":"+a(e.getMinutes())+":"+a(e.getSeconds())}function h(e,t=!1){return t?s(e):a(e.getHours())+":"+a(e.getMinutes())}function p(e,t){return!(!t||!e)&&(Math.abs(e.getTime()-t.getTime())>864e5||e.getDay()!==t.getDay())}},function(e,t,n){"use strict";n.r(t),function(e,o){n.d(t,"OLM_ALGORITHM",(function(){return c})),n.d(t,"MEGOLM_ALGORITHM",(function(){return l})),n.d(t,"MEGOLM_BACKUP_ALGORITHM",(function(){return d})),n.d(t,"encryptMessageForDevice",(function(){return u})),n.d(t,"getExistingOlmSessions",(function(){return h})),n.d(t,"ensureOlmSessionsForDevices",(function(){return p})),n.d(t,"verifySignature",(function(){return g})),n.d(t,"pkSign",(function(){return f})),n.d(t,"pkVerify",(function(){return _})),n.d(t,"encodeBase64",(function(){return b})),n.d(t,"encodeUnpaddedBase64",(function(){return v})),n.d(t,"decodeBase64",(function(){return y}));var r=n(0),i=n(1),a=n(332),s=n.n(a);const c="m.olm.v1.curve25519-aes-sha2",l="m.megolm.v1.aes-sha2",d="m.megolm_backup.v1.curve25519-aes-sha2";async function u(e,t,n,o,a,s,c){const l=s.getIdentityKey(),d=await o.getSessionIdForDevice(l);if(null===d)return;r.a.log("Using sessionid "+d+" for device "+a+":"+s.deviceId);const u={sender:t,sender_device:n,keys:{ed25519:o.deviceEd25519Key},recipient:a,recipient_keys:{ed25519:s.getFingerprint()}};i.j(u,c),e[l]=await o.encryptMessage(l,d,JSON.stringify(u))}async function h(e,t,n){const o={},r={},i=[];for(const[t,a]of Object.entries(n))for(const n of a){const a=n.deviceId,s=n.getIdentityKey();i.push((async()=>{const i=await e.getSessionIdForDevice(s,!0);null===i?(o[t]=o[t]||[],o[t].push(n)):(r[t]=r[t]||{},r[t][a]={device:n,sessionId:i})})())}return await Promise.all(i),[o,r]}async function p(e,t,n,o,i,a,s){"number"==typeof o&&(s=a,a=i,i=o,o=!1),s||(s=r.a);const c=[],l={},d={};for(const[,t]of Object.entries(n))for(const n of t){const t=n.getIdentityKey();t!==e.deviceCurve25519Key&&(e._sessionsInProgress[t]||(e._sessionsInProgress[t]=new Promise(n=>{d[t]=(...o)=>{delete e._sessionsInProgress[t],n(...o)}})))}for(const[t,r]of Object.entries(n)){l[t]={};for(const n of r){const r=n.deviceId,i=n.getIdentityKey();if(i===e.deviceCurve25519Key){s.info("Attempted to start session with ourself! Ignoring"),l[t][r]={device:n,sessionId:null};continue}const a=`for ${i} (${t}:${r})`,u=await e.getSessionIdForDevice(i,d[i],s);null!==u&&d[i]&&d[i](),(null===u||o)&&(o?s.info("Forcing new Olm session "+a):s.info("Making new Olm session "+a),c.push([t,r])),l[t][r]={device:n,sessionId:u}}}if(0===c.length)return l;let u,h=`one-time keys for ${c.length} devices`;try{s.debug("Claiming "+h),u=await t.claimOneTimeKeys(c,"signed_curve25519",i),s.debug("Claimed "+h)}catch(e){for(const e of Object.values(d))e();throw s.log("Failed to claim "+h,e,c),e}a&&"failures"in u&&a.push(...Object.keys(u.failures));const p=u.one_time_keys||{},g=[];for(const[t,r]of Object.entries(n)){const n=p[t]||{};for(let i=0;i<r.length;i++){const a=r[i],c=a.deviceId,u=a.getIdentityKey();if(u===e.deviceCurve25519Key)continue;if(l[t][c].sessionId&&!o)continue;const h=n[c]||{};let p=null;for(const e in h)0===e.indexOf("signed_curve25519:")&&(p=h[e]);p?g.push(m(e,p,t,a).then(e=>{d[u]&&d[u](e),l[t][c].sessionId=e},e=>{throw d[u]&&d[u](),e})):(s.warn(`No one-time keys (alg=signed_curve25519) for device ${t}:${c}`),d[u]&&d[u]())}}return h=`Olm sessions for ${g.length} devices`,s.debug("Starting "+h),await Promise.all(g),s.debug("Started "+h),l}async function m(e,t,n,o){const i=o.deviceId;try{await g(e,t,n,i,o.getFingerprint())}catch(e){return r.a.error("Unable to verify signature on one-time key for device "+n+":"+i+":",e),null}let a;try{a=await e.createOutboundSession(o.getIdentityKey(),t.key)}catch(e){return r.a.error("Error starting olm session with device "+n+":"+i+": "+e),null}return r.a.log("Started new olm sessionid "+a+" for device "+n+":"+i),a}async function g(e,t,n,o,r){const i="ed25519:"+o,a=((t.signatures||{})[n]||{})[i];if(!a)throw Error("No signature");const c=Object.assign({},t);delete c.unsigned,delete c.signatures;const l=s.a.stringify(c);e.verifySignature(r,l,a)}function f(t,n,o,r){let i=!1;if(n instanceof Uint8Array){const t=new e.Olm.PkSigning;r=t.init_with_seed(n),n=t,i=!0}const a=t.signatures||{};delete t.signatures;const c=t.unsigned;t.unsigned&&delete t.unsigned;try{const e=a[o]||{};return a[o]=e,e["ed25519:"+r]=n.sign(s.a.stringify(t))}finally{t.signatures=a,c&&(t.unsigned=c),i&&n.free()}}function _(t,n,o){const r="ed25519:"+n;if(!(t.signatures&&t.signatures[o]&&t.signatures[o][r]))throw new Error("No signature");const i=t.signatures[o][r],a=new e.Olm.Utility,c=t.signatures;delete t.signatures;const l=t.unsigned;t.unsigned&&delete t.unsigned;try{a.ed25519_verify(n,s.a.stringify(t),i)}finally{t.signatures=c,l&&(t.unsigned=l),a.free()}}function b(e){return o.from(e).toString("base64")}function v(e){return b(e).replace(/=+$/g,"")}function y(e){return o.from(e,"base64")}}.call(this,n(6),n(32).Buffer)},function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"c",(function(){return E})),n.d(t,"f",(function(){return S})),n.d(t,"b",(function(){return w})),n.d(t,"e",(function(){return C})),n.d(t,"d",(function(){return T})),n.d(t,"g",(function(){return x}));var o,r=n(110),i=n(88),a=n(91),s=n(87),c=n(84),l=n(89),d=n(247),u=n(114),h=n(211),p=n(248),m=n(116),g=n(108),f=n(192),_=n(137),b=n(147),v=n(291);let y;function E(e){void 0===(e=e||{}).spinner&&(e.spinner=!0),void 0===e.guestAccess&&(e.guestAccess=!0),void 0===e.encryption&&(e.encryption=!1);const t=g.a.getTimestamp(),n=s.getComponent("dialogs.ErrorDialog"),u=s.getComponent("elements.Spinner"),p=i.a.get();if(p.isGuest())return l.a.dispatch({action:"require_registration"}),Promise.resolve(null);const f=e.dmUserId?y.TrustedPrivateChat:y.PrivateChat,_=e.createOpts||{};if(_.preset=_.preset||f,_.visibility=_.visibility||o.Private,e.dmUserId&&void 0===_.invite)switch(Object(h.c)(e.dmUserId)){case"mx-user-id":_.invite=[e.dmUserId];break;case"email":_.invite_3pid=[{id_server:i.a.get().getIdentityServerUrl(!0),medium:"email",address:e.dmUserId}]}let E,S;return e.dmUserId&&void 0===_.is_direct&&(_.is_direct=!0),void 0===e.andView&&(e.andView=!0),_.initial_state=_.initial_state||[],e.guestAccess&&_.initial_state.push({type:"m.room.guest_access",state_key:"",content:{guest_access:"can_join"}}),e.encryption&&_.initial_state.push({type:"m.room.encryption",state_key:"",content:{algorithm:"m.megolm.v1.aes-sha2"}}),e.parentSpace&&(e.createOpts.initial_state.push(Object(v.a)(e.parentSpace,!0)),e.createOpts.initial_state.push({type:r.a.RoomHistoryVisibility,content:{history_visibility:e.createOpts.preset===y.PublicChat?"world_readable":"invited"}})),e.spinner&&(E=a.a.createDialog(u,null,"mx_Dialog_spinner")),p.createRoom(_).finally((function(){E&&E.close()})).then((function(t){return S=t.room_id,e.dmUserId?d.c(S,e.dmUserId):Promise.resolve()})).then(()=>e.parentSpace?b.e.instance.addRoomToSpace(e.parentSpace,S,[p.getDomain()],!0):e.associatedWithCommunity?m.a.addRoomToGroup(e.associatedWithCommunity,S,!1):void 0).then((function(){return e.andView&&l.a.dispatch({action:"view_room",room_id:S,should_peek:!1,joining:!0,justCreatedOpts:e}),g.a.instance.trackRoomCreate(t,S),S}),(function(t){if(e.inlineErrors)throw t;l.a.dispatch({action:"join_room_error"}),console.error("Failed to create room "+S+" "+t);let o=Object(c.a)("Server may be unavailable, overloaded, or you hit a bug.");return"M_UNSUPPORTED_ROOM_VERSION"===t.errcode&&(o=Object(c.a)("The server does not support the room version specified.")),a.a.createTrackedDialog("Failure to create room","",n,{title:Object(c.a)("Failure to create room"),description:o}),null}))}function S(e,t){const n=u.a.shared().getDMRoomsForUserId(t).map(t=>e.getRoom(t)).filter(e=>{if(e&&"join"===e.getMyMembership()){const n=e.currentState.getMembers().filter(e=>Object(f.c)(e.membership));return n.find(e=>e.userId===t)&&2===n.length}return!1}).sort((e,t)=>t.getLastActiveTimestamp()-e.getLastActiveTimestamp());if(n.length)return n[0]}async function w(e,t){try{const n=await e.downloadKeys(t);return Object.values(n).every(e=>Object.keys(e).length>0)}catch(e){return console.error("Error determining if it's possible to encrypt to all users: ",e),!1}}async function C(e,t,n){const o=S(e,t);let r;return r=o?o.roomId:await E({dmUserId:t,spinner:!1,andView:!1,createOpts:{creation_content:{[_.b]:n}}}),r}async function T(e,t){const n=S(e,t);let o;if(n)o=n.roomId;else{let n=void 0;x()&&(n=await w(e,[t])),o=await E({encryption:n,dmUserId:t,spinner:!1,andView:!1}),await async function(e,t,n,o={timeout:1500}){const{timeout:r}=o;let i;return new Promise(o=>{i=function(e,r,i){i.userId===n&&i.roomId===t&&o(!0)},e.on("RoomState.newMember",i),setTimeout(o,r,!1)}).finally(()=>{e.removeListener("RoomState.newMember",i)})}(e,o,t)}return o}function x(){const e=Object(p.b)();if(e){return!(!1===e.default)}return!0}!function(e){e.Public="public",e.Private="private"}(o||(o={})),function(e){e.PrivateChat="private_chat",e.TrustedPrivateChat="trusted_private_chat",e.PublicChat="public_chat"}(y||(y={}))},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return F})),n.d(t,"a",(function(){return P})),n.d(t,"c",(function(){return L}));var o=n(83),r=n.n(o),i=n(82),a=n.n(i),s=n(88),c=n(107),l=n(91),d=n(84),u=n(131),h=n(89),p=n(132),m=n(249),g=n(90),f=n(432),_=n(138),b=n(98),v=n(605),y=n(149),E=n(130),S=n(214),w=n(250),C=n(5),T=n(120),x=n(108),O=n(106),k=n(0),R=n(606),D=n(96),I=n(616),A=n(1066),N=n(169);const F="im.vector.is_virtual_room";var M;let P;!function(e){e.Ring="ringAudio",e.Ringback="ringbackAudio",e.CallEnd="callendAudio",e.Busy="busyAudio"}(M||(M={})),function(e){e.Voice="voice",e.Video="video",e.ScreenSharing="screensharing"}(P||(P={}));class L{constructor(){r()(this,"calls",new Map),r()(this,"transferees",new Map),r()(this,"audioPromises",new Map),r()(this,"dispatcherRef",null),r()(this,"supportsPstnProtocol",null),r()(this,"pstnSupportPrefixed",null),r()(this,"supportsSipNativeVirtual",null),r()(this,"pstnSupportCheckTimer",void 0),r()(this,"invitedRoomsAreVirtual",new Map),r()(this,"invitedRoomCheckInProgress",!1),r()(this,"onCallIncoming",e=>{h.a.dispatch({action:"incoming_call",call:e},!0)}),r()(this,"onAction",e=>{switch(e.action){case"place_call":{if(Object(A.b)())return void Object(A.a)(e.room_id);if(!s.a.get().supportsVoip())return void l.a.createTrackedDialog("Call Handler","VoIP is unsupported",E.a,{title:Object(d.a)("VoIP is unsupported"),description:Object(d.a)("You cannot place VoIP calls in this browser.")});if(this.getAllActiveCalls().length>1)return void l.a.createTrackedDialog("Call Handler","Existing Call",E.a,{title:Object(d.a)("Too Many Calls"),description:Object(d.a)("You've reached the maximum number of simultaneous calls.")});const t=s.a.get().getRoom(e.room_id);if(!t)return void console.error(`Room ${e.room_id} does not exist.`);if(this.getCallForRoom(t.roomId))return void l.a.createTrackedDialog("Call Handler","Existing Call with user",E.a,{title:Object(d.a)("Already in call"),description:Object(d.a)("You're already in a call with this person.")});const n=t.getJoinedMembers();if(n.length<=1)return void l.a.createTrackedDialog("Call Handler","Cannot place call with self",E.a,{description:Object(d.a)("You cannot place a call with yourself.")});2===n.length?(console.info(`Place ${e.type} call in ${e.room_id}`),this.placeCall(e.room_id,e.type,e.local_element,e.remote_element,e.transferee)):h.a.dispatch({action:"place_conference_call",room_id:e.room_id,type:e.type,remote_element:e.remote_element,local_element:e.local_element})}break;case"place_conference_call":console.info("Place conference call in "+e.room_id),T.a.trackEvent("voip","placeConferenceCall"),x.a.instance.trackStartCall(e.room_id,e.type===P.Video,!0),this.startCallApp(e.room_id,e.type);break;case"end_conference":console.info("Terminating conference call in "+e.room_id),this.terminateCallApp(e.room_id);break;case"hangup_conference":console.info("Leaving conference call in "+e.room_id),this.hangupCallApp(e.room_id);break;case"incoming_call":{if(!s.a.get().supportsVoip())return;const t=e.call,n=L.roomIdForCall(t);if(this.getCallForRoom(n))return;T.a.trackEvent("voip","receiveCall","type",t.type),this.calls.set(n,t),this.setCallListeners(t);const o=s.a.get();o.prepareToEncrypt(o.getRoom(t.roomId))}break;case"hangup":case"reject":if(!this.calls.get(e.room_id))return;"reject"===e.action?this.calls.get(e.room_id).reject():this.calls.get(e.room_id).hangup(u.b.UserHangup,!1);break;case"hangup_all":for(const e of this.calls.values())e.hangup(u.b.UserHangup,!1);break;case"answer":{if(!this.calls.has(e.room_id))return;if(this.getAllActiveCalls().length>1)return void l.a.createTrackedDialog("Call Handler","Existing Call",E.a,{title:Object(d.a)("Too Many Calls"),description:Object(d.a)("You've reached the maximum number of simultaneous calls.")});const t=this.calls.get(e.room_id);t.answer(),this.setCallAudioElement(t),this.setActiveCallRoomId(e.room_id),x.a.instance.trackJoinCall(e.room_id,t.type===u.f.Video,!1),h.a.dispatch({action:"view_room",room_id:e.room_id});break}}})}static sharedInstance(){return window.mxCallHandler||(window.mxCallHandler=new L),window.mxCallHandler}static roomIdForCall(e){return e?I.a.sharedInstance().nativeRoomForVirtualRoom(e.roomId)||e.roomId:null}start(){this.dispatcherRef=h.a.register(this.onAction),navigator.mediaSession&&(navigator.mediaSession.setActionHandler("play",(function(){})),navigator.mediaSession.setActionHandler("pause",(function(){})),navigator.mediaSession.setActionHandler("seekbackward",(function(){})),navigator.mediaSession.setActionHandler("seekforward",(function(){})),navigator.mediaSession.setActionHandler("previoustrack",(function(){})),navigator.mediaSession.setActionHandler("nexttrack",(function(){}))),g.b.getValue(O.a.Voip)&&s.a.get().on("Call.incoming",this.onCallIncoming),this.checkProtocols(3)}stop(){const e=s.a.get();e&&e.removeListener("Call.incoming",this.onCallIncoming),null!==this.dispatcherRef&&(h.a.unregister(this.dispatcherRef),this.dispatcherRef=null)}async checkProtocols(e){try{const e=await s.a.get().getThirdpartyProtocols();void 0!==e["m.protocol.pstn"]?(this.supportsPstnProtocol=Boolean(e["m.protocol.pstn"]),this.supportsPstnProtocol&&(this.pstnSupportPrefixed=!1)):void 0!==e["im.vector.protocol.pstn"]?(this.supportsPstnProtocol=Boolean(e["im.vector.protocol.pstn"]),this.supportsPstnProtocol&&(this.pstnSupportPrefixed=!0)):this.supportsPstnProtocol=null,h.a.dispatch({action:D.a.PstnSupportUpdated}),void 0!==e["im.vector.protocol.sip_native"]&&void 0!==e["im.vector.protocol.sip_virtual"]&&(this.supportsSipNativeVirtual=Boolean(e["im.vector.protocol.sip_native"]&&e["im.vector.protocol.sip_virtual"])),h.a.dispatch({action:D.a.VirtualRoomSupportUpdated})}catch(t){1===e?console.log("Failed to check for protocol support and no retries remain: assuming no support",t):(console.log("Failed to check for protocol support: will retry",t),this.pstnSupportCheckTimer=setTimeout(()=>{this.checkProtocols(e-1)},1e4))}}getSupportsPstnProtocol(){return this.supportsPstnProtocol}getSupportsVirtualRooms(){return this.supportsPstnProtocol}pstnLookup(e){return s.a.get().getThirdpartyUser(this.pstnSupportPrefixed?"im.vector.protocol.pstn":"m.protocol.pstn",{"m.id.phone":e})}sipVirtualLookup(e){return s.a.get().getThirdpartyUser("im.vector.protocol.sip_virtual",{native_mxid:e})}sipNativeLookup(e){return s.a.get().getThirdpartyUser("im.vector.protocol.sip_native",{virtual_mxid:e})}getCallForRoom(e){return this.calls.get(e)||null}getAnyActiveCall(){for(const e of this.calls.values())if(e.state!==u.e.Ended)return e;return null}getAllActiveCalls(){const e=[];for(const t of this.calls.values())t.state!==u.e.Ended&&t.state!==u.e.Ringing&&e.push(t);return e}getAllActiveCallsNotInRoom(e){const t=[];for(const[n,o]of this.calls.entries())n!==e&&o.state!==u.e.Ended&&t.push(o);return t}getTransfereeForCallId(e){return this.transferees[e]}play(e){const t=document.getElementById(e);if(t){const n=async()=>{try{await t.play()}catch(e){console.log("Unable to play audio clip",e)}};this.audioPromises.has(e)?this.audioPromises.set(e,this.audioPromises.get(e).then(()=>(t.load(),n()))):this.audioPromises.set(e,n())}}pause(e){const t=document.getElementById(e);t&&(this.audioPromises.has(e)?this.audioPromises.set(e,this.audioPromises.get(e).then(()=>t.pause())):t.pause())}matchesCallForThisRoom(e){const t=L.roomIdForCall(e),n=this.getCallForRoom(t);return n&&e.callId===n.callId}setCallListeners(e){const t=L.roomIdForCall(e);e.on(u.c.Error,t=>{this.matchesCallForThisRoom(e)&&(T.a.trackEvent("voip","callError","error",t.toString()),console.error("Call error:",t),t.code!==u.b.NoUserMedia?0!==s.a.get().getTurnServers().length||null!==g.b.getValue("fallbackICEServerAllowed")?l.a.createTrackedDialog("Call Failed","",E.a,{title:Object(d.a)("Call Failed"),description:t.message}):this.showICEFallbackPrompt():this.showMediaCaptureError(e))}),e.on(u.c.Hangup,()=>{this.matchesCallForThisRoom(e)&&(T.a.trackEvent("voip","callHangup"),this.removeCallForRoom(t))}),e.on(u.c.State,(n,o)=>{if(this.matchesCallForThisRoom(e)){switch(this.setCallState(e,n),o){case u.e.Ringing:this.pause(M.Ring);break;case u.e.InviteSent:this.pause(M.Ringback)}switch(n){case u.e.Ringing:this.play(M.Ring);break;case u.e.InviteSent:this.play(M.Ringback);break;case u.e.Ended:if(T.a.trackEvent("voip","callEnded","hangupReason",e.hangupReason),this.removeCallForRoom(t),o===u.e.InviteSent&&(e.hangupParty===u.d.Remote||e.hangupParty===u.d.Local&&e.hangupReason===u.b.InviteTimeout)){let t,n;this.play(M.Busy),e.hangupReason===u.b.UserHangup?(t=Object(d.a)("Call Declined"),n=Object(d.a)("The other party declined the call.")):e.hangupReason===u.b.InviteTimeout?(t=Object(d.a)("Call Failed"),n=Object(d.a)("The remote side failed to pick up")+"."):(t=Object(d.a)("Call Failed"),n=Object(d.a)("The call could not be established")),l.a.createTrackedDialog("Call Handler","Call Failed",E.a,{title:t,description:n})}else e.hangupReason===u.b.AnsweredElsewhere&&o===u.e.Connecting?l.a.createTrackedDialog("Call Handler","Call Failed",E.a,{title:Object(d.a)("Answered Elsewhere"),description:Object(d.a)("The call was answered on another device.")}):o!==u.e.Fledgling&&o!==u.e.Ringing&&this.play(M.CallEnd);this.logCallStats(e,t)}}}),e.on(u.c.Replaced,n=>{this.matchesCallForThisRoom(e)&&(console.log(`Call ID ${e.callId} is being replaced by call ID ${n.callId}`),e.state===u.e.Ringing?this.pause(M.Ring):e.state===u.e.InviteSent&&this.pause(M.Ringback),this.calls.set(t,n),this.setCallListeners(n),this.setCallState(n,n.state))})}async logCallStats(e,t){const n=await e.getCurrentCallStats();if(k.a.debug(`Call completed. Call ID: ${e.callId}, virtual room ID: ${e.roomId}, user-facing room ID: ${t}, direction: ${e.direction}, our Party ID: ${e.ourPartyId}, hangup party: ${e.hangupParty}, hangup reason: `+e.hangupReason),n){k.a.debug("Local candidates:");for(const e of n.filter(e=>"local-candidate"===e.type)){const t=e.address||e.ip;k.a.debug(`${e.id} - type: ${e.candidateType}, address: ${t}, port: ${e.port}, protocol: ${e.protocol}, relay protocol: ${e.relayProtocol}, network type: ${e.networkType}`)}k.a.debug("Remote candidates:");for(const e of n.filter(e=>"remote-candidate"===e.type)){const t=e.address||e.ip;k.a.debug(`${e.id} - type: ${e.candidateType}, address: ${t}, port: ${e.port}, protocol: `+e.protocol)}k.a.debug("Candidate pairs:");for(const e of n.filter(e=>"candidate-pair"===e.type))k.a.debug(`${e.localCandidateId} / ${e.remoteCandidateId} - state: ${e.state}, nominated: ${e.nominated}, requests sent ${e.requestsSent}, requests received ${e.requestsReceived}, responses received: ${e.responsesReceived}, responses sent: ${e.responsesSent}, bytes received: ${e.bytesReceived}, bytes sent: ${e.bytesSent}, `)}else k.a.debug("Call statistics are undefined. The call has probably failed before a peerConn was established")}setCallAudioElement(e){const t=function(){const e=document.getElementById("remoteAudio");return e||(console.error("Failed to find remoteAudio element - cannot play audio!You need to add an <audio/> to the DOM."),null)}();t&&e.setRemoteAudioElement(t)}setCallState(e,t){const n=L.roomIdForCall(e);console.log(`Call state in ${n} changed to ${t}`),h.a.dispatch({action:"call_state",room_id:n,state:t})}removeCallForRoom(e){this.calls.delete(e)}showICEFallbackPrompt(){const e=s.a.get(),t=e=>a.a.createElement("code",null,e);l.a.createTrackedDialog("No TURN servers","",y.a,{title:Object(d.a)("Call failed due to misconfigured server"),description:a.a.createElement("div",null,a.a.createElement("p",null,Object(d.a)("Please ask the administrator of your homeserver (<code>%(homeserverDomain)s</code>) to configure a TURN server in order for calls to work reliably.",{homeserverDomain:e.getDomain()},{code:t})),a.a.createElement("p",null,Object(d.a)("Alternatively, you can try to use the public server at <code>turn.matrix.org</code>, but this will not be as reliable, and it will share your IP address with that server. You can also manage this in Settings.",null,{code:t}))),button:Object(d.a)("Try using turn.matrix.org"),cancelButton:Object(d.a)("OK"),onFinished:t=>{g.b.setValue("fallbackICEServerAllowed",null,b.a.DEVICE,t),e.setFallbackICEServerAllowed(t)}},null,!0)}showMediaCaptureError(e){let t,n;e.type===u.f.Voice?(t=Object(d.a)("Unable to access microphone"),n=a.a.createElement("div",null,Object(d.a)("Call failed because microphone could not be accessed. Check that a microphone is plugged in and set up correctly."))):e.type===u.f.Video&&(t=Object(d.a)("Unable to access webcam / microphone"),n=a.a.createElement("div",null,Object(d.a)("Call failed because webcam or microphone could not be accessed. Check that:"),a.a.createElement("ul",null,a.a.createElement("li",null,Object(d.a)("A microphone and webcam are plugged in and set up correctly")),a.a.createElement("li",null,Object(d.a)("Permission is granted to use the webcam")),a.a.createElement("li",null,Object(d.a)("No other application is using the webcam"))))),l.a.createTrackedDialog("Media capture failed","",E.a,{title:t,description:n},null,!0)}async placeCall(e,t,n,o,r){T.a.trackEvent("voip","placeCall","type",t),x.a.instance.trackStartCall(e,t===P.Video,!1);const i=await I.a.sharedInstance().getOrCreateVirtualRoomForRoom(e)||e;k.a.debug("Mapped real room "+e+" to room ID "+i);const a=s.a.get().getTurnServersExpiry()-Date.now();console.log("Current turn creds expire in "+a+" ms");const h=Object(u.g)(s.a.get(),i);if(this.calls.set(e,h),r&&(this.transferees[h.callId]=r),this.setCallListeners(h),this.setCallAudioElement(h),this.setActiveCallRoomId(e),t===P.Voice)h.placeVoiceCall();else if("video"===t)h.placeVideoCall(o,n);else if(t===P.ScreenSharing){const t=c.a.get().screenCaptureErrorString();if(t)return this.removeCallForRoom(e),console.log("Can't capture screen: "+t),void l.a.createTrackedDialog("Call Handler","Unable to capture screen",E.a,{title:Object(d.a)("Unable to capture screen"),description:t});h.placeScreenSharingCall(o,n,async()=>{const{finished:e}=l.a.createDialog(R.a),[t]=await e;return t})}else console.error("Unknown conf call type: "+t)}setActiveCallRoomId(e){k.a.info("Setting call in room "+e+" active");for(const[t,n]of this.calls.entries())n.state!==u.e.Ended&&(t===e?n.setRemoteOnHold(!1):(k.a.info("Holding call in room "+t+" because another call is being set active"),n.setRemoteOnHold(!0)))}hasAnyUnheldCall(){for(const e of this.calls.values())if(e.state!==u.e.Ended&&!e.isRemoteOnHold())return!0;return!1}async startCallApp(t,n){h.a.dispatch({action:"appsDrawer",show:!0});const o=s.a.get().getRoom(t),r=p.a.getRoomWidgetsOfType(o,_.a.JITSI);if(r.length>0||m.a.roomHasPendingWidgetsOfType(t,r,_.a.JITSI))return void l.a.createTrackedDialog("Call already in progress","",E.a,{title:Object(d.a)("Call in Progress"),description:Object(d.a)("A call is currently being placed!")});const i=f.a.getInstance().preferredDomain,a=await f.a.getInstance().getJitsiAuth();let c;if("openidtoken-jwt"===a)c=v.base32.stringify(e.from(t),{pad:!1});else{c="Jitsi"+(Object(N.c)(1)+Object(N.a)(23))}let u=p.a.getLocalJitsiWrapperUrl({auth:a});const g=new URL(u);g.search="",g.searchParams.set("confId",c),u=g.toString();const b={conferenceId:c,isAudioOnly:"voice"===n,domain:i,auth:a,roomName:o.name},y="jitsi_"+s.a.get().credentials.userId+"_"+Date.now();p.a.setRoomWidget(t,y,_.a.JITSI,u,"Jitsi",b).then(()=>{console.log("Jitsi widget added")}).catch(e=>{"M_FORBIDDEN"===e.errcode&&l.a.createTrackedDialog("Call Failed","",E.a,{title:Object(d.a)("Permission Required"),description:Object(d.a)("You do not have permission to start a conference call in this room")}),console.error(e)})}terminateCallApp(e){l.a.createTrackedDialog("Confirm Jitsi Terminate","",y.a,{hasCancelButton:!0,title:Object(d.a)("End conference"),description:Object(d.a)("This will end the conference for everyone. Continue?"),button:Object(d.a)("End conference"),onFinished:t=>{if(!t)return;S.a.instance.getRoom(e).widgets.filter(e=>_.a.JITSI.matches(e.type)).forEach(t=>{p.a.setRoomWidget(e,t.id)})}})}hangupCallApp(e){const t=S.a.instance.getRoom(e);if(!t)return;t.widgets.filter(e=>_.a.JITSI.matches(e.type)).forEach(e=>{const t=w.a.instance.getMessagingForId(e.id);t&&t.transport.send(C.a.HangupCall,{})})}}}).call(this,n(32).Buffer)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(83),r=n.n(o);class i{constructor(e,t){this.preferred=e,this.legacy=t}matches(e){return e===this.preferred||e===this.legacy}static fromString(e){const t=Object.values(i).filter(e=>e instanceof i).find(t=>t.matches(e));return t||new i(e,e)}}r()(i,"JITSI",new i("m.jitsi","jitsi")),r()(i,"STICKERPICKER",new i("m.stickerpicker","m.stickerpicker")),r()(i,"INTEGRATION_MANAGER",new i("m.integration_manager","m.integration_manager")),r()(i,"CUSTOM",new i("m.custom","m.custom"))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(83),r=n.n(o),i=n(7),a=n.n(i);class s extends a.a{constructor(...e){super(...e),r()(this,"toasts",[]),r()(this,"countSeen",0)}static sharedInstance(){return window.mxToastStore||(window.mxToastStore=new s),window.mxToastStore}reset(){this.toasts=[],this.countSeen=0}addOrReplaceToast(e){const t=this.toasts.findIndex(t=>t.key===e.key);if(-1===t){let t=this.toasts.length;for(;t>0&&this.toasts[t-1].priority<e.priority;)--t;this.toasts.splice(t,0,e)}else this.toasts[t]=e;this.emit("update")}dismissToast(e){this.toasts[0]&&this.toasts[0].key===e&&this.countSeen++;const t=this.toasts.length;this.toasts=this.toasts.filter(t=>t.key!==e),t!==this.toasts.length&&(0===this.toasts.length&&(this.countSeen=0),this.emit("update"))}getToasts(){return this.toasts}getCountSeen(){return this.countSeen}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o,r,i,a=n(95),s=n.n(a),c=n(100),l=n.n(c),d=n(83),u=n.n(d),h=n(82),p=n.n(h),m=n(169),g=n(85);let f=Object(g.a)("views.elements.StyledCheckbox")((i=r=class extends p.a.PureComponent{constructor(e){super(e),u()(this,"id",void 0),this.id="checkbox_"+Object(m.b)(10)}render(){const e=this.props,{children:t,className:o}=e,r=l()(e,["children","className"]);return p.a.createElement("span",{className:"mx_Checkbox "+o},p.a.createElement("input",s()({id:this.id},r,{type:"checkbox"})),p.a.createElement("label",{htmlFor:this.id},p.a.createElement("div",{className:"mx_Checkbox_background"},p.a.createElement("img",{src:n(772)})),p.a.createElement("div",null,this.props.children)))}},u()(r,"defaultProps",{className:""}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(83),r=n.n(o),i=n(115),a=n(505);class s extends i.a{constructor(e,t={}){super(e,t),r()(this,"readyStore",void 0);const n=this;this.readyStore=new class extends a.a{get mxClient(){return this.matrixClient}async onReady(){return n.onReady()}async onNotReady(){return n.onNotReady()}}(e)}get matrixClient(){return this.readyStore.mxClient}async onReady(){}async onNotReady(){}async onDispatch(e){await this.onAction(e)}}},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,n=void 0,r=[],i=void 0,a=!1,s=function(e,n){return t(e,r[n])},c=function(){for(var t=arguments.length,o=Array(t),c=0;c<t;c++)o[c]=arguments[c];return a&&n===this&&o.length===r.length&&o.every(s)?i:(a=!0,n=this,r=o,i=e.apply(this,o))};return c};var o=function(e,t){return e===t}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return T}));var o=n(83),r=n.n(o),i=n(90),a=n(124),s=n(240),c=n(89),l=n(551),d=n(273),u=n(1389),h=n(126),p=n(1385),m=n(192),g=n(1),f=n(751),_=n(1262),b=n(141),v=n(628),y=n(166),E=n(493),S=n(1263);const w="lists_update";class C extends b.a{constructor(){super(c.a),r()(this,"initialListsGenerated",!1),r()(this,"algorithm",new p.a),r()(this,"filterConditions",[]),r()(this,"prefilterConditions",[]),r()(this,"tagWatcher",void 0),r()(this,"spaceWatcher",void 0),r()(this,"updateFn",new _.a(()=>{for(const e of Object.keys(this.orderedLists))y.a.instance.getListState(e).setRooms(this.orderedLists[e]);this.emit(w)})),r()(this,"watchedSettings",["feature_custom_tags","advancedRoomListLogging"]),r()(this,"onAlgorithmListUpdated",()=>{i.b.getValue("advancedRoomListLogging")&&console.log("Underlying algorithm has triggered a list update - marking"),this.updateFn.mark()}),r()(this,"onAlgorithmFilterUpdated",()=>{this.updateFn.trigger()}),r()(this,"onPrefilterUpdated",async()=>{await this.recalculatePrefiltering(),this.updateFn.trigger()}),this.checkLoggingEnabled();for(const e of this.watchedSettings)i.b.monitorSetting(e,null);h.a.addListener(()=>this.handleRVSUpdate({})),this.algorithm.on(p.b,this.onAlgorithmListUpdated),this.algorithm.on(d.a,this.onAlgorithmFilterUpdated),this.setupWatchers()}setupWatchers(){i.b.getValue("feature_spaces")?this.spaceWatcher=new S.a(this):this.tagWatcher=new u.a(this)}get unfilteredLists(){return this.algorithm?this.algorithm.getUnfilteredRooms():{}}get orderedLists(){return this.algorithm?this.algorithm.getOrderedRooms():{}}async resetStore(){await this.reset(),this.filterConditions=[],this.prefilterConditions=[],this.initialListsGenerated=!1,this.setupWatchers(),this.algorithm.off(p.b,this.onAlgorithmListUpdated),this.algorithm.off(d.a,this.onAlgorithmListUpdated),this.algorithm=new p.a,this.algorithm.on(p.b,this.onAlgorithmListUpdated),this.algorithm.on(d.a,this.onAlgorithmListUpdated),await this.reset(null,!0)}async makeReady(e){e&&this.readyStore.useUnitTestClient(e),this.checkLoggingEnabled(),console.log("Regenerating room lists: Startup"),await this.readAndCacheSettingsFromStore(),await this.regenerateAllLists({trigger:!1}),await this.handleRVSUpdate({trigger:!1}),this.updateFn.mark(),this.updateFn.trigger()}checkLoggingEnabled(){i.b.getValue("advancedRoomListLogging")&&console.warn("Advanced room list logging is enabled")}async readAndCacheSettingsFromStore(){const e=i.b.getValue("feature_custom_tags");await this.updateState({tagsEnabled:e}),await this.updateAlgorithmInstances()}async handleRVSUpdate({trigger:e=!0}){if(!this.matrixClient)return;const t=h.a.getRoomId();if(!t&&this.algorithm.stickyRoom)await this.algorithm.setStickyRoom(null);else if(t){const e=this.matrixClient.getRoom(t);e?e!==this.algorithm.stickyRoom&&(i.b.getValue("advancedRoomListLogging")&&console.log("Changing sticky room to "+t),await this.algorithm.setStickyRoom(e)):(console.warn(t+" is current in RVS but missing from client - clearing sticky room"),await this.algorithm.setStickyRoom(null))}e&&this.updateFn.trigger()}async onReady(){await this.makeReady()}async onNotReady(){await this.resetStore()}async onAction(t){this.matrixClient&&this.initialListsGenerated&&(C.TEST_MODE?await this.onDispatchAsync(t):e(()=>this.onDispatchAsync(t)))}async onDispatchAsync(e){if(this.matrixClient&&this.initialListsGenerated){if("setting_updated"===e.action&&this.watchedSettings.includes(e.settingName)){if("advancedRoomListLogging"===e.settingName){const e=i.b.getValue("advancedRoomListLogging");return void console.warn("Advanced room list logging is enabled? "+e)}console.log("Regenerating room lists: Settings changed"),await this.readAndCacheSettingsFromStore(),await this.regenerateAllLists({trigger:!1}),this.updateFn.trigger()}if(!this.algorithm)throw new Error("Room list store has no algorithm to process dispatcher update with");if("MatrixActions.Room.receipt"===e.action){if(Object(l.a)(e.event,this.matrixClient)){const t=e.room;return t?(i.b.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Got own read receipt in "+t.roomId),await this.handleRoomUpdate(t,a.c.ReadReceipt),void this.updateFn.trigger()):void console.warn("Own read receipt was in unknown room "+t.roomId)}}else if("MatrixActions.Room.tags"===e.action){const t=e;i.b.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Got tag change in "+t.room.roomId),await this.handleRoomUpdate(t.room,a.c.PossibleTagChange),this.updateFn.trigger()}else if("MatrixActions.Room.timeline"===e.action){const t=e;if(!t.isLiveEvent||!e.isLiveUnfilteredRoomTimelineEvent)return;const n=t.event.getRoomId(),o=this.matrixClient.getRoom(n),r=async e=>{if(i.b.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Live timeline event "+t.event.getId()+" in "+e.roomId),"m.room.tombstone"===t.event.getType()&&""===t.event.getStateKey()){i.b.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Got tombstone event - trying to remove now-dead room");if(this.matrixClient.getRoom(t.event.getContent().replacement_room))return}await this.handleRoomUpdate(e,a.c.Timeline),this.updateFn.trigger()};if(!o)return console.warn(`Live timeline event ${t.event.getId()} received without associated room`),console.warn("Queuing failed room update for retry as a result."),void setTimeout(async()=>{const e=this.matrixClient.getRoom(n);await r(e)},100);await r(o)}else if("MatrixActions.Event.decrypted"===e.action){const t=e,n=t.event.getRoomId();if(!n)return;const o=this.matrixClient.getRoom(n);if(!o)return void console.warn(`Event ${t.event.getId()} was decrypted in an unknown room ${n}`);i.b.getValue("advancedRoomListLogging")&&console.log(`[RoomListDebug] Decrypted timeline event ${t.event.getId()} in ${n}`),await this.handleRoomUpdate(o,a.c.Timeline),this.updateFn.trigger()}else if("MatrixActions.accountData"===e.action&&"m.direct"===e.event_type){const t=e;i.b.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Received updated DM map");const n=t.event.getContent();for(const e of Object.keys(n)){const t=n[e];for(const e of t){const t=this.matrixClient.getRoom(e);t?await this.handleRoomUpdate(t,a.c.PossibleTagChange):console.warn(e+" was found in DMs but the room is not in the store")}}this.updateFn.trigger()}else if("MatrixActions.Room.myMembership"===e.action){const t=e,n=Object(m.b)(t.oldMembership),o=Object(m.b)(t.membership);if(n!==m.a.Join&&o===m.a.Join){i.b.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Handling new room "+t.room.roomId);const e=t.room.currentState.getStateEvents("m.room.create","");if(e&&e.getContent().predecessor){i.b.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Room has a predecessor");const t=this.matrixClient.getRoom(e.getContent().predecessor.room_id);if(t){this.algorithm.stickyRoom===t&&(i.b.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Clearing sticky room due to room upgrade"),await this.algorithm.setStickyRoom(null)),i.b.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Removing previous room from room list"),await this.algorithm.handleRoomUpdate(t,a.c.RoomRemoved)}}return i.b.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Adding new room to room list"),await this.handleRoomUpdate(t.room,a.c.NewRoom),void this.updateFn.trigger()}if(n!==m.a.Invite&&o===m.a.Invite)return i.b.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Handling invite to "+t.room.roomId),await this.handleRoomUpdate(t.room,a.c.NewRoom),void this.updateFn.trigger();if(n!==o)return i.b.getValue("advancedRoomListLogging")&&console.log("[RoomListDebug] Handling membership change in "+t.room.roomId),await this.handleRoomUpdate(t.room,a.c.PossibleTagChange),void this.updateFn.trigger()}}}async handleRoomUpdate(e,t){if(t===a.c.NewRoom&&"invite"===e.getMyMembership()&&await E.a.instance.onNewInvitedRoom(e),!E.a.instance.isRoomVisible(e))return;await this.algorithm.handleRoomUpdate(e,t)&&(i.b.getValue("advancedRoomListLogging")&&console.log(`[DEBUG] Room "${e.name}" (${e.roomId}) triggered by ${t} requires list update`),this.updateFn.mark())}async recalculatePrefiltering(){if(!this.algorithm)return;if(!this.algorithm.hasTagSortingMap)return;i.b.getValue("advancedRoomListLogging")&&console.log("Calculating new prefiltered room list"),this.algorithm.updatesInhibited=!0;const e=this.getPlausibleRooms(),t=this.algorithm.stickyRoom,n=t&&e.includes(t);await this.algorithm.setStickyRoom(null),await this.algorithm.setKnownRooms(e),n&&await this.algorithm.setStickyRoom(t),this.updateFn.mark(),this.algorithm.updatesInhibited=!1}async setTagSorting(e,t){await this.setAndPersistTagSorting(e,t),this.updateFn.trigger()}async setAndPersistTagSorting(e,t){await this.algorithm.setTagSorting(e,t),localStorage.setItem("mx_tagSort_"+e,t)}getTagSorting(e){return this.algorithm.getTagSorting(e)}getStoredTagSorting(e){return localStorage.getItem("mx_tagSort_"+e)}calculateTagSorting(e){const t=e===a.a.Invite||e===a.a.DM?s.b.Recent:s.b.Alphabetic,n=i.b.getValue("RoomList.orderAlphabetically",null,!0),o=this.getTagSorting(e),r=this.getStoredTagSorting(e);let c=t;return r?c=r:Object(g.s)(n)?o&&(c=o):c=n?s.b.Alphabetic:s.b.Recent,c}async setListOrder(e,t){await this.setAndPersistListOrder(e,t),this.updateFn.trigger()}async setAndPersistListOrder(e,t){await this.algorithm.setListOrdering(e,t),localStorage.setItem("mx_listOrder_"+e,t)}getListOrder(e){return this.algorithm.getListOrdering(e)}getStoredListOrder(e){return localStorage.getItem("mx_listOrder_"+e)}calculateListOrder(e){const t=s.a.Natural,n=i.b.getValue("RoomList.orderByImportance",null,!0),o=this.getListOrder(e),r=this.getStoredListOrder(e);let a=t;return r?a=r:Object(g.s)(n)?o&&(a=o):a=n?s.a.Importance:s.a.Natural,a}async updateAlgorithmInstances(){this.updateFn.mark();for(const e of Object.keys(this.orderedLists)){const t=this.getTagSorting(e),n=this.getListOrder(e),o=this.calculateTagSorting(e),r=this.calculateListOrder(e);o!==t&&await this.setAndPersistTagSorting(e,o),r!==n&&await this.setAndPersistListOrder(e,r)}}getPlausibleRooms(){if(!this.matrixClient)return[];let e=[...this.matrixClient.getVisibleRooms(),...this.matrixClient.getRooms().filter(e=>e.isSpaceRoom()&&"invite"===e.getMyMembership())].filter(e=>E.a.instance.isRoomVisible(e));return this.prefilterConditions.length>0&&(e=e.filter(e=>{for(const t of this.prefilterConditions)if(!t.isVisible(e))return!1;return!0})),e}async regenerateAllLists({trigger:e=!0}){console.warn("Regenerating all room lists");const t=this.getPlausibleRooms(),n=new Set;if(this.state.tagsEnabled)for(const e of t){if(!e.tags)continue;Object.keys(e.tags).filter(e=>Object(a.d)(e)).forEach(e=>n.add(e))}const o={},r={},i=[...a.b,...Array.from(n)];for(const e of i)o[e]=this.calculateTagSorting(e),r[e]=this.calculateListOrder(e),f.a.instance.ensureLayoutExists(e);await this.algorithm.populateTags(o,r),await this.algorithm.setKnownRooms(t),this.initialListsGenerated=!0,e&&this.updateFn.trigger()}addFilter(e){i.b.getValue("advancedRoomListLogging")&&console.log("Adding filter condition:",e);let t=Promise.resolve();e.kind===d.b.Prefilter?(e.on(d.a,this.onPrefilterUpdated),this.prefilterConditions.push(e),t=this.recalculatePrefiltering()):(this.filterConditions.push(e),this.algorithm&&this.algorithm.addFilterCondition(e)),t.then(()=>this.updateFn.trigger())}removeFilter(e){i.b.getValue("advancedRoomListLogging")&&console.log("Removing filter condition:",e);let t=Promise.resolve(),n=this.filterConditions.indexOf(e);n>=0&&(this.filterConditions.splice(n,1),this.algorithm&&this.algorithm.removeFilterCondition(e)),n=this.prefilterConditions.indexOf(e),n>=0&&(e.off(d.a,this.onPrefilterUpdated),this.prefilterConditions.splice(n,1),t=this.recalculatePrefiltering()),t.then(()=>this.updateFn.trigger())}getFirstNameFilterCondition(){for(const e of this.filterConditions)if(e instanceof v.a)return e;return null}getTagsForRoom(e){const t=this.algorithm.getTagsForRoom(e);return t||[a.a.Untagged]}async manualRoomUpdate(e,t){await this.handleRoomUpdate(e,t),this.updateFn.trigger()}}r()(C,"TEST_MODE",!1);class T{static get instance(){return T.internalInstance||(T.internalInstance=new C),T.internalInstance}}r()(T,"internalInstance",void 0),window.mxRoomListStore=T.instance}).call(this,n(160).setImmediate)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"h",(function(){return m})),n.d(t,"g",(function(){return g})),n.d(t,"f",(function(){return f})),n.d(t,"e",(function(){return _})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return v})),n.d(t,"d",(function(){return y}));var o=n(82),r=n.n(o),i=n(88),a=n(330),s=n(91),c=n(87),l=n(84),d=n(362),u=n(627),h=n(164);function p(e,t){const n=new a.a(e);return n.invite(t).then(e=>Promise.resolve({states:e,inviter:n}))}function m(e){const t=c.getComponent("dialogs.InviteDialog");s.a.createTrackedDialog("Start DM","",t,{kind:d.b,initialText:e},null,!1,!0)}function g(e,t=""){s.a.createTrackedDialog("Invite Users","",d.d,{kind:d.c,initialText:t,roomId:e},null,!1,!0)}function f(e,t){s.a.createTrackedDialog("Invite Users to Community","",u.a,{communityName:t,roomId:e},null,!1,!0)}function _(e){const t=h.a.instance.getGeneralChat(e);if(!t)throw new Error("Failed to locate appropriate room to start an invite in");{const n=h.a.instance.getCommunityName(e);f(t.roomId,n)}}function b(e){if(!e||"m.room.third_party_invite"!==e.getType())return!1;const t=["key_validity_url","public_key","display_name"];for(let n=0;n<t.length;++n)if(!e.getContent()[t[n]])return!1;return!0}function v(e,t){return p(e,t).then(t=>{const n=i.a.get().getRoom(e);y(t.states,n,t.inviter)}).catch(e=>{console.error(e.stack);const t=c.getComponent("dialogs.ErrorDialog");s.a.createTrackedDialog("Failed to invite","",t,{title:Object(l.a)("Failed to invite"),description:e&&e.message?e.message:Object(l.a)("Operation failed")})})}function y(e,t,n){const o=Object.keys(e).filter(t=>"error"===e[t]);if(1===o.length&&n.fatal){const e=c.getComponent("dialogs.ErrorDialog");return s.a.createTrackedDialog("Failed to invite users to the room","",e,{title:Object(l.a)("Failed to invite users to the room:",{roomName:t.name}),description:n.getErrorText(o[0])}),!1}{const i=[];for(const t of o)if("error"===e[t]){const e=n.getErrorText(t);i.push(t+": "+e)}if(i.length>0){const e=r.a.createElement("div",null,i.map(e=>r.a.createElement("div",{key:e},e))),n=c.getComponent("dialogs.ErrorDialog");return s.a.createTrackedDialog("Failed to invite the following users to the room","",n,{title:Object(l.a)("Failed to invite the following users to the %(roomName)s room:",{roomName:t.name}),description:e}),!1}}return!0}},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"request",(function(){return D})),n.d(t,"getRequest",(function(){return I})),n.d(t,"wrapRequest",(function(){return A})),n.d(t,"setCryptoStoreFactory",(function(){return F})),n.d(t,"createClient",(function(){return M}));var o=n(282),r=n(265),i=n(425),a=n(172);n.d(t,"CRYPTO_ENABLED",(function(){return a.a})),n.d(t,"MatrixClient",(function(){return a.b}));var s=n(283);n.d(t,"PREFIX_R0",(function(){return s.h})),n.d(t,"PREFIX_UNSTABLE",(function(){return s.i})),n.d(t,"PREFIX_IDENTITY_V1",(function(){return s.e})),n.d(t,"PREFIX_IDENTITY_V2",(function(){return s.f})),n.d(t,"PREFIX_MEDIA_R0",(function(){return s.g})),n.d(t,"MatrixHttpApi",(function(){return s.d})),n.d(t,"MatrixError",(function(){return s.c})),n.d(t,"ConnectionError",(function(){return s.b})),n.d(t,"AbortError",(function(){return s.a})),n.d(t,"retryNetworkOperation",(function(){return s.j}));var c=n(246);n.d(t,"AutoDiscovery",(function(){return c.a}));var l=n(17);n.d(t,"SyncAccumulator",(function(){return l.a}));var d=n(212);n.d(t,"InvalidStoreError",(function(){return d.b})),n.d(t,"InvalidCryptoStoreError",(function(){return d.a})),n.d(t,"KeySignatureUploadError",(function(){return d.c}));var u=n(103);n.d(t,"EventStatus",(function(){return u.a})),n.d(t,"MatrixEvent",(function(){return u.b}));var h=n(168);n.d(t,"Room",(function(){return h.a}));var p=n(245);n.d(t,"Group",(function(){return p.a}));var m=n(152);n.d(t,"EventTimeline",(function(){return m.a}));var g=n(361);n.d(t,"EventTimelineSet",(function(){return g.a}));var f=n(153);n.d(t,"RoomMember",(function(){return f.a}));var _=n(365);n.d(t,"RoomState",(function(){return _.a}));var b=n(203);n.d(t,"User",(function(){return b.a})),n.d(t,"MatrixScheduler",(function(){return i.a}));var v=n(302);n.d(t,"Filter",(function(){return v.a}));var y=n(429);n.d(t,"TimelineWindow",(function(){return y.b})),n.d(t,"TimelineIndex",(function(){return y.a}));var E=n(430);n.d(t,"InteractiveAuth",(function(){return E.a}));var S=n(195);n.d(t,"SERVICE_TYPES",(function(){return S.a})),n.d(t,"MemoryStore",(function(){return r.a}));var w=n(336);n.d(t,"IndexedDBStore",(function(){return w.a}));var C=n(431);n.d(t,"WebStorageSessionStore",(function(){return C.a})),n.d(t,"MemoryCryptoStore",(function(){return o.a}));var T=n(156);n.d(t,"IndexedDBCryptoStore",(function(){return T.a}));var x=n(266);n.d(t,"getHttpUriForMxc",(function(){return x.a}));var O=n(331);n.d(t,"ContentHelpers",(function(){return O}));var k=n(131);let R;function D(e){R=e}function I(){return R}function A(e){const t=R;R=function(n,o){return e(t,n,o)}}n.d(t,"createNewMatrixCall",(function(){return k.g})),n.d(t,"setMatrixCallAudioOutput",(function(){return k.j})),n.d(t,"setMatrixCallAudioInput",(function(){return k.i})),n.d(t,"setMatrixCallVideoInput",(function(){return k.k}));let N=()=>new o.a;function F(e){N=e}function M(t){return"string"==typeof t&&(t={baseUrl:t}),t.request=t.request||R,t.store=t.store||new r.a({localStorage:e.localStorage}),t.scheduler=t.scheduler||new i.a,t.cryptoStore=t.cryptoStore||N(),new a.b(t)}}.call(this,n(6))},function(e,t,n){"use strict";n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return w})),n.d(t,"d",(function(){return C})),n.d(t,"c",(function(){return T})),n.d(t,"e",(function(){return I}));var o=n(83),r=n.n(o),i=n(105),a=n(110),s=n(141),c=n(89),l=n(144),d=n(90),u=n(114),h=n(216),p=n(117),m=n(217);class g extends m.b{constructor(e,t){super(),this.spaceId=e,this.getRoomFn=t,r()(this,"rooms",[]),r()(this,"states",{}),r()(this,"onRoomNotificationStateUpdate",()=>{this.calculateTotalState()})}get symbol(){return null}setRooms(e){const t=this.rooms,n=Object(p.a)(t,e);this.rooms=e;for(const e of n.removed){const t=this.states[e.roomId];t&&(delete this.states[e.roomId],t.off(m.a,this.onRoomNotificationStateUpdate))}for(const e of n.added){const t=this.getRoomFn(e);t.on(m.a,this.onRoomNotificationStateUpdate),this.states[e.roomId]=t}this.calculateTotalState()}destroy(){super.destroy();for(const e of Object.values(this.states))e.off(m.a,this.onRoomNotificationStateUpdate);this.states={}}calculateTotalState(){const e=this.snapshot();this._count=0,this._color=h.a.None;for(const e of Object.values(this.states))this._count+=e.count,this._color=Math.max(this.color,e.color);this.emitIfUpdated(e)}}var f=n(166),_=n(124),b=n(337),v=n(399),y=n(128),E=n(126);const S=Symbol("home-space"),w=Symbol("suggested-rooms"),C=Symbol("top-level-spaces"),T=Symbol("selected-space"),x=e=>"mx_last_viewed_rooms_"+((null==e?void 0:e.roomId)||"home_space"),O=e=>e.reduce((e,t)=>(e[t.isSpaceRoom()?0:1].push(t),e),[[],[]]),k=e=>{const t=e.getContent();return"string"==typeof t.order&&Array.from(t.order).every(e=>{const t=e.charCodeAt(0);return t>=32&&t<=127})?t.order:null},R=e=>f.a.instance.getRoomState(e);class D extends s.a{constructor(){super(c.a,{}),r()(this,"rootSpaces",[]),r()(this,"orphanedRooms",new Set),r()(this,"parentMap",new b.a),r()(this,"notificationStateMap",new Map),r()(this,"spaceFilteredRooms",new Map),r()(this,"_activeSpace",null),r()(this,"_suggestedRooms",[]),r()(this,"fetchSuggestedRooms",async(e,t=20)=>{try{return await this.matrixClient.getSpaceSummary(e.roomId,0,!0,!1,t)}catch(e){console.error(e)}return{rooms:[],events:[]}}),r()(this,"getSpaces",()=>this.matrixClient.getRooms().filter(e=>e.isSpaceRoom()&&"join"===e.getMyMembership())),r()(this,"getSpaceFilteredRoomIds",e=>this.spaceFilteredRooms.get((null==e?void 0:e.roomId)||S)||new Set),r()(this,"rebuild",Object(i.throttle)(()=>{const e=this.matrixClient.getVisibleRooms().filter(e=>!e.isSpaceRoom()||"join"===e.getMyMembership()),t=new Set(e),n=new b.a,o=Object(i.sortBy)(e.filter(e=>e.isSpaceRoom()),e=>e.roomId);o.forEach(e=>{this.getChildren(e.roomId).forEach(o=>{t.delete(o),n.getOrCreate(o.roomId,new Set).add(e.roomId)})});const[r,a]=O(Array.from(t)),s=new Set(o),c=(e,t)=>{const n=[e];for(;n.length;){const e=n.pop();t.delete(e),this.getChildSpaces(e.roomId).forEach(e=>{t.has(e)&&n.push(e)})}};r.forEach(e=>{c(e,s)}),Array.from(s).forEach(e=>{s.has(e)&&(s.delete(e),r.push(e),c(e,s))}),this.orphanedRooms=new Set(a),this.rootSpaces=r,this.parentMap=n,this._activeSpace&&s.has(this._activeSpace)&&this.setActiveSpace(null),this.onRoomsUpdate(),this.emit(C,this.spacePanelSpaces)},100,{trailing:!0,leading:!0})),r()(this,"onSpaceUpdate",()=>{this.rebuild()}),r()(this,"showInHomeSpace",e=>{var t;return!(null!==(t=this.parentMap.get(e.roomId))&&void 0!==t&&t.size)||u.a.shared().getUserIdForRoomId(e.roomId)||l.b.instance.getTagsForRoom(e).includes(_.a.Favourite)}),r()(this,"onRoomUpdate",e=>{var t;if(this.showInHomeSpace(e))null===(t=this.spaceFilteredRooms.get(S))||void 0===t||t.add(e.roomId),this.emit(S);else if(!this.orphanedRooms.has(e.roomId)){var n;null===(n=this.spaceFilteredRooms.get(S))||void 0===n||n.delete(e.roomId),this.emit(S)}}),r()(this,"onSpaceMembersChange",e=>{u.a.shared().getDMRoomsForUserId(e.getStateKey()).length<1||this.onRoomsUpdate()}),r()(this,"onRoomsUpdate",Object(i.throttle)(()=>{const e=this.matrixClient.getVisibleRooms(),t=this.spaceFilteredRooms;this.spaceFilteredRooms=new Map;const n=this.matrixClient.getRooms().filter(e=>"invite"===e.getMyMembership());this.spaceFilteredRooms.set(S,new Set(n.map(e=>e.roomId))),e.forEach(e=>{this.showInHomeSpace(e)&&this.spaceFilteredRooms.get(S).add(e.roomId)}),this.rootSpaces.forEach(e=>{const t=(e,n)=>{var o;if(n.has(e))return;if(this.spaceFilteredRooms.has(e))return this.spaceFilteredRooms.get(e);const[r,i]=O(this.getChildren(e)),a=new Set(i.map(e=>e.roomId)),s=null===(o=this.matrixClient)||void 0===o?void 0:o.getRoom(e);null==s||s.getJoinedMembers().forEach(e=>{u.a.shared().getDMRoomsForUserId(e.userId).forEach(e=>{a.add(e)})});const c=new Set(n).add(e);return r.forEach(e=>{var n;null===(n=t(e.roomId,c))||void 0===n||n.forEach(e=>{a.add(e)})}),this.spaceFilteredRooms.set(e,a),a};t(e.roomId,new Set)});const o=Object(b.b)(t,this.spaceFilteredRooms),r=o.changed.filter(e=>Object(v.a)(t.get(e),this.spaceFilteredRooms.get(e)));[...o.added,...o.removed,...r].forEach(e=>{this.emit(e)}),this.spaceFilteredRooms.forEach((e,t)=>{var n;const o=this.matrixClient.getRooms().filter(t=>e.has(t.roomId));null===(n=this.getNotificationState(t))||void 0===n||n.setRooms(o)})},100,{trailing:!0,leading:!0})),r()(this,"onRoom",e=>{if(null!=e&&e.isSpaceRoom()?(this.onSpaceUpdate(),this.emit(e.roomId)):this.onRoomsUpdate(),"join"===e.getMyMembership())if(e.isSpaceRoom())e.roomId===E.a.getRoomId()&&this.setActiveSpace(e);else{const t=this._suggestedRooms.length;this._suggestedRooms=this._suggestedRooms.filter(t=>t.room_id!==e.roomId),t!==this._suggestedRooms.length&&this.emit(w,this._suggestedRooms)}}),r()(this,"onRoomState",e=>{const t=this.matrixClient.getRoom(e.getRoomId());if(t)switch(e.getType()){case a.a.SpaceChild:t.isSpaceRoom()&&(this.onSpaceUpdate(),this.emit(t.roomId));break;case a.a.SpaceParent:t.isSpaceRoom()?this.onSpaceUpdate():this.onRoomUpdate(t),this.emit(t.roomId);break;case a.a.RoomMember:t.isSpaceRoom()&&this.onSpaceMembersChange(e)}}),r()(this,"onRoomAccountData",(e,t,n)=>{if(e.getType()===a.a.Tag&&!t.isSpaceRoom()){var o,r;const i=(null==n||null===(o=n.getContent())||void 0===o?void 0:o.tags)||{},a=(null===(r=e.getContent())||void 0===r?void 0:r.tags)||{};!!i[_.a.Favourite]!=!!a[_.a.Favourite]&&this.onRoomUpdate(t)}}),r()(this,"onAccountData",(e,t)=>{if(e.getType()===a.a.Direct){const n=t.getContent(),o=e.getContent(),r=Object(y.b)(n,o),i=r.changed.filter(e=>Object(p.d)(n[e],o[e]));new Set([...r.added,...r.removed,...i]).forEach(e=>{var t;const n=null===(t=this.matrixClient)||void 0===t?void 0:t.getRoom(e);n&&this.onRoomUpdate(n)})}})}get spacePanelSpaces(){return this.rootSpaces}get activeSpace(){return this._activeSpace||null}get suggestedRooms(){return this._suggestedRooms}async setActiveSpace(e){var t,n;if(e===this.activeSpace)return;this._activeSpace=e,this.emit(T,this.activeSpace),this.emit(w,this._suggestedRooms=[]);const o=window.localStorage.getItem(x(this.activeSpace));if(o&&"join"===(null===(t=this.matrixClient)||void 0===t||null===(n=t.getRoom(o))||void 0===n?void 0:n.getMyMembership())?c.a.dispatch({action:"view_room",room_id:o,context_switch:!0}):e?c.a.dispatch({action:"view_room",room_id:e.roomId,context_switch:!0}):c.a.dispatch({action:"view_home_page"}),e?window.localStorage.setItem("mx_active_space",e.roomId):window.localStorage.removeItem("mx_active_space"),e){const t=await this.fetchSuggestedRooms(e);this._activeSpace===e&&(this._suggestedRooms=t.rooms.filter(e=>{var t;return e.room_type!==a.d.Space&&"join"!==(null===(t=this.matrixClient.getRoom(e.room_id))||void 0===t?void 0:t.getMyMembership())}),this.emit(w,this._suggestedRooms))}}addRoomToSpace(e,t,n,o=!1,r=!1){return this.matrixClient.sendStateEvent(e.roomId,a.a.SpaceChild,{via:n,suggested:o,auto_join:r},t)}getChildren(e){var t;const n=null===(t=this.matrixClient)||void 0===t?void 0:t.getRoom(e),o=null==n?void 0:n.currentState.getStateEvents(a.a.SpaceChild).filter(e=>{var t;return null===(t=e.getContent())||void 0===t?void 0:t.via});return Object(i.sortBy)(o,k).map(e=>this.matrixClient.getRoom(e.getStateKey())).filter(e=>"join"===(null==e?void 0:e.getMyMembership()))||[]}getChildRooms(e){return this.getChildren(e).filter(e=>!e.isSpaceRoom())}getChildSpaces(e){return this.getChildren(e).filter(e=>e.isSpaceRoom())}getParents(e,t=!1){var n;const o=null===(n=this.matrixClient)||void 0===n?void 0:n.getRoom(e);return(null==o?void 0:o.currentState.getStateEvents(a.a.SpaceParent).filter(e=>{const n=e.getContent();return!(null==n||!n.via)&&!(t&&(null==n||!n.canonical))}).map(e=>this.matrixClient.getRoom(e.getStateKey())).filter(Boolean))||[]}getCanonicalParent(e){var t;const n=this.getParents(e,!0);return(null===(t=Object(i.sortBy)(n,e=>e.roomId))||void 0===t?void 0:t[0])||null}async onNotReady(){d.b.getValue("feature_spaces")&&(this.matrixClient&&(this.matrixClient.removeListener("Room",this.onRoom),this.matrixClient.removeListener("Room.myMembership",this.onRoom),this.matrixClient.removeListener("RoomState.events",this.onRoomState),this.matrixClient.removeListener("Room.accountData",this.onRoomAccountData),this.matrixClient.removeListener("accountData",this.onAccountData)),await this.reset({}))}async onReady(){if(!d.b.getValue("feature_spaces"))return;this.matrixClient.on("Room",this.onRoom),this.matrixClient.on("Room.myMembership",this.onRoom),this.matrixClient.on("RoomState.events",this.onRoomState),this.matrixClient.on("Room.accountData",this.onRoomAccountData),this.matrixClient.on("accountData",this.onAccountData),await this.onSpaceUpdate();const e=window.localStorage.getItem("mx_active_space");if(e){const t=this.rootSpaces.find(t=>t.roomId===e);t&&this.setActiveSpace(t)}}async onAction(e){if(d.b.getValue("feature_spaces"))switch(e.action){case"view_room":{var t;const o=null===(t=this.matrixClient)||void 0===t?void 0:t.getRoom(e.room_id);if(e.context_switch)break;var n;if(o&&!o.isSpaceRoom()&&window.localStorage.setItem(x(this.activeSpace),e.room_id),"join"===(null==o?void 0:o.getMyMembership()))if(o.isSpaceRoom())this.setActiveSpace(o);else if(!this.spaceFilteredRooms.get((null===(n=this._activeSpace)||void 0===n?void 0:n.roomId)||S).has(o.roomId)){let e=this.rootSpaces.find(e=>{var t;return null===(t=this.spaceFilteredRooms.get(e.roomId))||void 0===t?void 0:t.has(o.roomId)});if(e||(e=this.getCanonicalParent(o.roomId)),!e){e=Array.from(this.parentMap.get(o.roomId)||[]).find(e=>this.matrixClient.getRoom(e))}e&&this.setActiveSpace(e)}break}case"after_leave_room":this._activeSpace&&e.room_id===this._activeSpace.roomId&&this.setActiveSpace(null)}}getNotificationState(e){if(this.notificationStateMap.has(e))return this.notificationStateMap.get(e);const t=new g(e,R);return this.notificationStateMap.set(e,t),t}traverseSpace(e,t,n=!1,o){if(o&&o.has(e))return;t(e);const r=new Set(o).add(e),[i,a]=O(this.getChildren(e));n&&a.forEach(e=>t(e.roomId)),i.forEach(e=>this.traverseSpace(e.roomId,t,n,r))}}class I{static get instance(){return I.internalInstance}}r()(I,"internalInstance",new D),window.mxSpaceStore=I.instance},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(755)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(83),r=n.n(o),i=n(82),a=n.n(i),s=n(86),c=n.n(s),l=n(92),d=n.n(l),u=n(87),h=n(84);class p extends a.a.Component{constructor(...e){super(...e),r()(this,"onOk",()=>{this.props.onFinished(!0)}),r()(this,"onCancel",()=>{this.props.onFinished(!1)})}render(){const e=u.getComponent("views.dialogs.BaseDialog"),t=u.getComponent("views.elements.DialogButtons");let n="";return this.props.danger&&(n="danger"),a.a.createElement(e,{className:d()("mx_QuestionDialog",this.props.className),onFinished:this.props.onFinished,title:this.props.title,contentId:"mx_Dialog_content",headerImage:this.props.headerImage,hasCancel:this.props.hasCancelButton,fixedWidth:this.props.fixedWidth},a.a.createElement("div",{className:"mx_Dialog_content",id:"mx_Dialog_content"},this.props.description),a.a.createElement(t,{primaryButton:this.props.button||Object(h.a)("OK"),primaryButtonClass:n,primaryDisabled:this.props.buttonDisabled,cancelButton:this.props.cancelButton,hasCancel:this.props.hasCancelButton&&!this.props.quitOnly,onPrimaryButtonClick:this.onOk,focus:this.props.focus,onCancel:this.onCancel},this.props.extraButtons))}}r()(p,"propTypes",{title:c.a.string,description:c.a.node,extraButtons:c.a.node,button:c.a.string,buttonDisabled:c.a.bool,danger:c.a.bool,focus:c.a.bool,onFinished:c.a.func.isRequired,headerImage:c.a.string,quitOnly:c.a.bool,fixedWidth:c.a.bool,className:c.a.string}),r()(p,"defaultProps",{title:"",description:"",extraButtons:null,focus:!0,hasCancelButton:!0,danger:!1,quitOnly:!1})},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));class o{getValueOverride(e,t,n,o){return null}onChange(e,t,n){}get settingDisabled(){return!1}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return f})),n.d(t,"e",(function(){return _})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return l.a})),n.d(t,"b",(function(){return d.a}));var o=n(83),r=n.n(o),i=n(82),a=n.n(i),s=n(101);const c=({children:e,inputRef:t})=>{const[n,o,r]=_(t);return e({onFocus:n,isActive:o,ref:r})};var l=n(447),d=n(448);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const p=Object(i.createContext)({state:{activeRef:null,refs:[]},dispatch:()=>{}});var m;p.displayName="RovingTabIndexContext",function(e){e.Register="REGISTER",e.Unregister="UNREGISTER",e.SetFocus="SET_FOCUS"}(m||(m={}));const g=(e,t)=>{switch(t.type){case m.Register:{if(0===e.refs.length)return h(h({},e),{},{activeRef:t.payload.ref,refs:[t.payload.ref]});if(e.refs.includes(t.payload.ref))return e;let n=e.refs.findIndex(e=>2&e.current.compareDocumentPosition(t.payload.ref.current));return n<0&&(n=e.refs.length),h(h({},e),{},{refs:[...e.refs.slice(0,n),t.payload.ref,...e.refs.slice(n)]})}case m.Unregister:{const n=e.refs.filter(e=>e!==t.payload.ref);if(n.length===e.refs.length)return e;if(e.activeRef===t.payload.ref){const o=e.refs.findIndex(e=>e===t.payload.ref);return h(h({},e),{},{activeRef:o>=n.length?n[n.length-1]:n[o],refs:n})}return h(h({},e),{},{refs:n})}case m.SetFocus:return h(h({},e),{},{activeRef:t.payload.ref});default:return e}},f=({children:e,handleHomeEnd:t,onKeyDown:n})=>{const[o,r]=Object(i.useReducer)(g,{activeRef:null,refs:[]}),c=Object(i.useMemo)(()=>({state:o,dispatch:r}),[o]),l=Object(i.useCallback)(e=>{let o=!1;if(t&&"INPUT"!==e.target.tagName)switch(e.key){case s.a.HOME:o=!0,c.state.refs.length>0&&c.state.refs[0].current.focus();break;case s.a.END:o=!0,c.state.refs.length>0&&c.state.refs[c.state.refs.length-1].current.focus()}if(o)e.preventDefault(),e.stopPropagation();else if(n)return n(e,c.state)},[c.state,n,t]);return a.a.createElement(p.Provider,{value:c},e({onKeyDownHandler:l}))},_=e=>{const t=Object(i.useContext)(p);let n=Object(i.useRef)(null);e&&(n=e),Object(i.useLayoutEffect)(()=>(t.dispatch({type:m.Register,payload:{ref:n}}),()=>{t.dispatch({type:m.Unregister,payload:{ref:n}})}),[]);return[Object(i.useCallback)(()=>{t.dispatch({type:m.SetFocus,payload:{ref:n}})},[n,t]),t.state.activeRef===n,n]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(365);function r(e){this._eventTimelineSet=e,this._roomId=e.room?e.room.roomId:null,this._events=[],this._baseIndex=0,this._startState=new o.a(this._roomId),this._startState.paginationToken=null,this._endState=new o.a(this._roomId),this._endState.paginationToken=null,this._prevTimeline=null,this._nextTimeline=null,this._paginationRequests={b:null,f:null},this._name=this._roomId+":"+(new Date).toISOString()}r.BACKWARDS="b",r.FORWARDS="f",r.prototype.initialiseState=function(e){if(this._events.length>0)throw new Error("Cannot initialise state after events are added");for(const t of e)Object.freeze(t);this._startState.setStateEvents(e),this._endState.setStateEvents(e)},r.prototype.forkLive=function(e){const t=this.getState(e),n=new r(this._eventTimelineSet);return n._startState=t.clone(),n._endState=t,this._endState=t.clone(),n},r.prototype.fork=function(e){const t=this.getState(e),n=new r(this._eventTimelineSet);return n._startState=t.clone(),n._endState=t.clone(),n},r.prototype.getRoomId=function(){return this._roomId},r.prototype.getFilter=function(){return this._eventTimelineSet.getFilter()},r.prototype.getTimelineSet=function(){return this._eventTimelineSet},r.prototype.getBaseIndex=function(){return this._baseIndex},r.prototype.getEvents=function(){return this._events},r.prototype.getState=function(e){if(e==r.BACKWARDS)return this._startState;if(e==r.FORWARDS)return this._endState;throw new Error("Invalid direction '"+e+"'")},r.prototype.getPaginationToken=function(e){return this.getState(e).paginationToken},r.prototype.setPaginationToken=function(e,t){this.getState(t).paginationToken=e},r.prototype.getNeighbouringTimeline=function(e){if(e==r.BACKWARDS)return this._prevTimeline;if(e==r.FORWARDS)return this._nextTimeline;throw new Error("Invalid direction '"+e+"'")},r.prototype.setNeighbouringTimeline=function(e,t){if(this.getNeighbouringTimeline(t))throw new Error("timeline already has a neighbouring timeline - cannot reset neighbour (direction: "+t+")");if(t==r.BACKWARDS)this._prevTimeline=e;else{if(t!=r.FORWARDS)throw new Error("Invalid direction '"+t+"'");this._nextTimeline=e}this.setPaginationToken(null,t)},r.prototype.addEvent=function(e,t){const n=t?this._startState:this._endState,o=this.getTimelineSet();let i;o.room&&o.room.getUnfilteredTimelineSet()===o&&(r.setEventMetadata(e,n,t),e.isState()&&(n.setStateEvents([e]),e.sender&&("m.room.member"!==e.getType()||t)||r.setEventMetadata(e,n,t))),i=t?0:this._events.length,this._events.splice(i,0,e),t&&this._baseIndex++},r.setEventMetadata=function(e,t,n){e.sender=t.getSentinelMember(e.getSender()),"m.room.member"===e.getType()&&(e.target=t.getSentinelMember(e.getStateKey())),e.isState()&&n&&(e.forwardLooking=!1)},r.prototype.removeEvent=function(e){for(let t=this._events.length-1;t>=0;t--){const n=this._events[t];if(n.getId()==e)return this._events.splice(t,1),t<this._baseIndex&&this._baseIndex--,n}return null},r.prototype.toString=function(){return this._name}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(7),r=n(266),i=n(1);function a(e,t){this.roomId=e,this.userId=t,this.typing=!1,this.name=t,this.rawDisplayName=t,this.powerLevel=0,this.powerLevelNorm=0,this.user=null,this.membership=null,this.events={member:null},this._isOutOfBand=!1,this._updateModifiedTime()}i.p(a,o.EventEmitter),a.prototype.markOutOfBand=function(){this._isOutOfBand=!0},a.prototype.isOutOfBand=function(){return this._isOutOfBand},a.prototype.setMembershipEvent=function(e,t){if("m.room.member"!==e.getType())return;this._isOutOfBand=!1,this.events.member=e;const n=this.membership;this.membership=e.getDirectionalContent().membership;const o=this.name;this.name=function(e,t,n){if(!t||t===e)return e;if(!i.A(t))return e;if(!n)return t;let o=s.test(t);o||(o=c.test(t));if(!o){const r=n.getUserIdsWithDisplayName(t);o=r.some(t=>t!==e)}if(o)return t+" ("+e+")";return t}(this.userId,e.getDirectionalContent().displayname,t),this.rawDisplayName=e.getDirectionalContent().displayname||this.userId,n!==this.membership&&(this._updateModifiedTime(),this.emit("RoomMember.membership",e,this,n)),o!==this.name&&(this._updateModifiedTime(),this.emit("RoomMember.name",e,this,o))},a.prototype.setPowerLevelEvent=function(e){if("m.room.power_levels"!==e.getType())return;const t=e.getDirectionalContent();let n=t.users_default||0;i.m(i.C(t.users),(function(e){n=Math.max(n,e)}));const o=this.powerLevel,r=this.powerLevelNorm;t.users&&void 0!==t.users[this.userId]?this.powerLevel=t.users[this.userId]:void 0!==t.users_default?this.powerLevel=t.users_default:this.powerLevel=0,this.powerLevelNorm=0,n>0&&(this.powerLevelNorm=100*this.powerLevel/n),o===this.powerLevel&&r===this.powerLevelNorm||(this._updateModifiedTime(),this.emit("RoomMember.powerLevel",e,this))},a.prototype.setTypingEvent=function(e){if("m.typing"!==e.getType())return;const t=this.typing;this.typing=!1;const n=e.getContent().user_ids;i.q(n)&&(-1!==n.indexOf(this.userId)&&(this.typing=!0),t!==this.typing&&(this._updateModifiedTime(),this.emit("RoomMember.typing",e,this)))},a.prototype._updateModifiedTime=function(){this._modified=Date.now()},a.prototype.getLastModifiedTime=function(){return this._modified},a.prototype.isKicked=function(){return"leave"===this.membership&&this.events.member.getSender()!==this.events.member.getStateKey()},a.prototype.getDMInviter=function(){if(this.events.member){const e=this.events.member;let t=e.getContent(),n=e.getSender();if("join"===t.membership&&(t=e.getPrevContent(),n=e.getUnsigned().prev_sender),"invite"===t.membership&&t.is_direct)return n}},a.prototype.getAvatarUrl=function(e,t,n,o,i,a){void 0===i&&(i=!0);const s=this.getMxcAvatarUrl();if(!s&&!i)return null;const c=Object(r.a)(e,s,t,n,o,a);return c||null},a.prototype.getMxcAvatarUrl=function(){return this.events.member?this.events.member.getDirectionalContent().avatar_url:this.user?this.user.avatarUrl:null};const s=/@.+:.+/,c=/[\u200E\u200F\u202A-\u202F]/},function(e,t,n){"use strict";(function(e){var o=n(7),r=n.n(o);let i=!0;class a extends r.a{constructor(e){super(),this._matrixClient=e,this._userGroups={},this._groupProfiles={},this._groupProfilesPromise={},this._usersPending={},this._usersInFlight={},this._debounceTimeoutID=null}groupSupport(){return i}invalidatePublicisedGroups(e){delete this._userGroups[e]}getPublicisedGroupsCached(e,t){return this._userGroups[t]?Promise.resolve(this._userGroups[t]):this._usersPending[t]?this._usersPending[t].prom:this._usersInFlight[t]?this._usersInFlight[t].prom:(this._usersPending[t]={},this._usersPending[t].prom=new Promise((e,n)=>{this._usersPending[t].resolve=e,this._usersPending[t].reject=n}).then(e=>(this._userGroups[t]=e,setTimeout(()=>{delete this._userGroups[t]},18e5),this._userGroups[t])).catch(e=>{if("M_UNRECOGNIZED"===e.errcode)return console.warn("Cannot display flair, server does not support groups"),void(i=!1);throw console.error("Could not get groups for user",t,e),e}).finally(()=>{delete this._usersInFlight[t]}),this._debounceTimeoutID&&clearTimeout(this._debounceTimeoutID),this._debounceTimeoutID=setTimeout(()=>{this._batchedGetPublicGroups(e)},200),this._usersPending[t].prom)}async _batchedGetPublicGroups(e){this._usersInFlight=this._usersPending,this._usersPending={};let t={users:[]};try{t=await e.getPublicisedGroups(Object.keys(this._usersInFlight))}catch(e){return void Object.keys(this._usersInFlight).forEach(t=>{this._usersInFlight[t]&&this._usersInFlight[t].reject(e)})}const n=t.users;Object.keys(this._usersInFlight).forEach(e=>{this._usersInFlight[e]&&this._usersInFlight[e].resolve(n[e]||[])})}getGroupProfileCachedFast(e,t){return e&&t?this._groupProfiles[t]?this._groupProfiles[t]:(this.getGroupProfileCached(e,t),null):null}async getGroupProfileCached(e,t){if(this._groupProfiles[t])return this._groupProfiles[t];if(this._groupProfilesPromise[t]){try{await this._groupProfilesPromise[t]}catch(e){return null}return this._groupProfiles[t]}let n;console.log("FlairStore: Request group profile of "+t),this._groupProfilesPromise[t]=e.getGroupProfile(t);try{n=await this._groupProfilesPromise[t]}catch(e){return console.log("FlairStore: Failed to get group profile for "+t,e),delete this._groupProfilesPromise[t],null}return this._groupProfiles[t]={groupId:t,avatarUrl:n.avatar_url,name:n.name,shortDescription:n.short_description},delete this._groupProfilesPromise[t],console.log("FlairStore: Emit updateGroupProfile for "+t),this.emit("updateGroupProfile"),setTimeout(()=>{this.refreshGroupProfile(e,t)},18e5),this._groupProfiles[t]}refreshGroupProfile(e,t){return delete this._groupProfiles[t],this.getGroupProfileCached(e,t)}}void 0===e.singletonFlairStore&&(e.singletonFlairStore=new a),t.a=e.singletonFlairStore}).call(this,n(6))},function(e,t,n){var o=n(538);function r(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return r=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var t=r();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var o=n(0),r=n(597),i=n(282),a=n(1013),s=n(212),c=n(25);class l{constructor(e,t){this._indexedDB=e,this._dbName=t,this._backendPromise=null,this._backend=null}static exists(e,t){return c.a(e,t)}startup(){return this._backendPromise||(this._backendPromise=new Promise((e,t)=>{if(!this._indexedDB)return void t(new Error("no indexeddb support available"));o.a.log("connecting to indexeddb "+this._dbName);const n=this._indexedDB.open(this._dbName,a.b);n.onupgradeneeded=e=>{const t=e.target.result,n=e.oldVersion;a.c(t,n)},n.onblocked=()=>{o.a.log("can't yet open IndexedDBCryptoStore because it is open elsewhere")},n.onerror=e=>{o.a.log("Error connecting to indexeddb",e),t(e.target.error)},n.onsuccess=t=>{const n=t.target.result;o.a.log("connected to indexeddb "+this._dbName),e(new a.a(n))}}).then(e=>e.doTxn("readonly",[l.STORE_INBOUND_GROUP_SESSIONS,l.STORE_INBOUND_GROUP_SESSIONS_WITHHELD],t=>{e.getEndToEndInboundGroupSession("","",t,()=>{})}).then(()=>e)).catch(t=>{if("VersionError"===t.name)throw o.a.warn("Crypto DB is too new for us to use!",t),new s.a(s.a.TOO_NEW);o.a.warn("unable to connect to indexeddb "+this._dbName+": falling back to localStorage store: "+t);try{return new r.a(e.localStorage)}catch(t){return o.a.warn("unable to open localStorage: falling back to in-memory store: "+t),new i.a}}).then(e=>{this._backend=e})),this._backendPromise}deleteAllData(){return new Promise((e,t)=>{if(!this._indexedDB)return void t(new Error("no indexeddb support available"));o.a.log("Removing indexeddb instance: "+this._dbName);const n=this._indexedDB.deleteDatabase(this._dbName);n.onblocked=()=>{o.a.log("can't yet delete IndexedDBCryptoStore because it is open elsewhere")},n.onerror=e=>{o.a.log("Error deleting data from indexeddb",e),t(e.target.error)},n.onsuccess=()=>{o.a.log("Removed indexeddb instance: "+this._dbName),e()}}).catch(e=>{o.a.warn("unable to delete IndexedDBCryptoStore: "+e)})}getOrAddOutgoingRoomKeyRequest(e){return this._backend.getOrAddOutgoingRoomKeyRequest(e)}getOutgoingRoomKeyRequest(e){return this._backend.getOutgoingRoomKeyRequest(e)}getOutgoingRoomKeyRequestByState(e){return this._backend.getOutgoingRoomKeyRequestByState(e)}getAllOutgoingRoomKeyRequestsByState(e){return this._backend.getAllOutgoingRoomKeyRequestsByState(e)}getOutgoingRoomKeyRequestsByTarget(e,t,n){return this._backend.getOutgoingRoomKeyRequestsByTarget(e,t,n)}updateOutgoingRoomKeyRequest(e,t,n){return this._backend.updateOutgoingRoomKeyRequest(e,t,n)}deleteOutgoingRoomKeyRequest(e,t){return this._backend.deleteOutgoingRoomKeyRequest(e,t)}getAccount(e,t){this._backend.getAccount(e,t)}storeAccount(e,t){this._backend.storeAccount(e,t)}getCrossSigningKeys(e,t){this._backend.getCrossSigningKeys(e,t)}getSecretStorePrivateKey(e,t,n){this._backend.getSecretStorePrivateKey(e,t,n)}storeCrossSigningKeys(e,t){this._backend.storeCrossSigningKeys(e,t)}storeSecretStorePrivateKey(e,t,n){this._backend.storeSecretStorePrivateKey(e,t,n)}countEndToEndSessions(e,t){this._backend.countEndToEndSessions(e,t)}getEndToEndSession(e,t,n,o){this._backend.getEndToEndSession(e,t,n,o)}getEndToEndSessions(e,t,n){this._backend.getEndToEndSessions(e,t,n)}getAllEndToEndSessions(e,t){this._backend.getAllEndToEndSessions(e,t)}storeEndToEndSession(e,t,n,o){this._backend.storeEndToEndSession(e,t,n,o)}storeEndToEndSessionProblem(e,t,n){return this._backend.storeEndToEndSessionProblem(e,t,n)}getEndToEndSessionProblem(e,t){return this._backend.getEndToEndSessionProblem(e,t)}filterOutNotifiedErrorDevices(e){return this._backend.filterOutNotifiedErrorDevices(e)}getEndToEndInboundGroupSession(e,t,n,o){this._backend.getEndToEndInboundGroupSession(e,t,n,o)}getAllEndToEndInboundGroupSessions(e,t){this._backend.getAllEndToEndInboundGroupSessions(e,t)}addEndToEndInboundGroupSession(e,t,n,o){this._backend.addEndToEndInboundGroupSession(e,t,n,o)}storeEndToEndInboundGroupSession(e,t,n,o){this._backend.storeEndToEndInboundGroupSession(e,t,n,o)}storeEndToEndInboundGroupSessionWithheld(e,t,n,o){this._backend.storeEndToEndInboundGroupSessionWithheld(e,t,n,o)}storeEndToEndDeviceData(e,t){this._backend.storeEndToEndDeviceData(e,t)}getEndToEndDeviceData(e,t){this._backend.getEndToEndDeviceData(e,t)}storeEndToEndRoom(e,t,n){this._backend.storeEndToEndRoom(e,t,n)}getEndToEndRooms(e,t){this._backend.getEndToEndRooms(e,t)}getSessionsNeedingBackup(e){return this._backend.getSessionsNeedingBackup(e)}countSessionsNeedingBackup(e){return this._backend.countSessionsNeedingBackup(e)}unmarkSessionsNeedingBackup(e,t){return this._backend.unmarkSessionsNeedingBackup(e,t)}markSessionsNeedingBackup(e,t){return this._backend.markSessionsNeedingBackup(e,t)}addSharedHistoryInboundGroupSession(e,t,n,o){this._backend.addSharedHistoryInboundGroupSession(e,t,n,o)}getSharedHistoryInboundGroupSessions(e,t){return this._backend.getSharedHistoryInboundGroupSessions(e,t)}doTxn(e,t,n,o){return this._backend.doTxn(e,t,n,o)}}l.STORE_ACCOUNT="account",l.STORE_SESSIONS="sessions",l.STORE_INBOUND_GROUP_SESSIONS="inbound_group_sessions",l.STORE_INBOUND_GROUP_SESSIONS_WITHHELD="inbound_group_sessions_withheld",l.STORE_SHARED_HISTORY_INBOUND_GROUP_SESSIONS="shared_history_inbound_group_sessions",l.STORE_DEVICE_DATA="device_data",l.STORE_ROOMS="rooms",l.STORE_BACKUP="sessions_needing_backup"}).call(this,n(6))},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(440);t.a=({description:e,detail:t,acceptLabel:n,rejectLabel:o,onAccept:a,onReject:s})=>{const c=t?r.a.createElement("div",{className:"mx_Toast_detail"},t):null;return r.a.createElement("div",null,r.a.createElement("div",{className:"mx_Toast_description"},e,c),r.a.createElement("div",{className:"mx_Toast_buttons","aria-live":"off"},s&&o&&r.a.createElement(i.a,{label:o,kind:"danger",onClick:s}),r.a.createElement(i.a,{label:n,onClick:a})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(82),r=n.n(o),i=n(92),a=n.n(i);function s({description:e,hideDescriptionIfValid:t,deriveData:n,rules:o}){return async function({value:i,focused:s,allowEmpty:c=!0}){if(!i&&c)return{valid:null,feedback:null};const l={value:i,allowEmpty:c},d=n?await n(l):void 0,u=[];let h,p,m,g=!0;if(o&&o.length)for(const e of o){if(!e.key||!e.test)continue;if(!g&&e.final)continue;if(e.skip&&e.skip.call(this,l,d))continue;const t=await e.test.call(this,l,d);if(g=g&&t,t&&e.valid){const t=e.valid.call(this,d);if(!t)continue;u.push({key:e.key,valid:!0,text:t})}else if(!t&&e.invalid){const t=e.invalid.call(this,d);if(!t)continue;u.push({key:e.key,valid:!1,text:t})}}if(!s)return{valid:g,feedback:null};if(u&&u.length&&(h=r.a.createElement("ul",{className:"mx_Validation_details"},u.map(e=>{const t=a()({mx_Validation_detail:!0,mx_Validation_valid:e.valid,mx_Validation_invalid:!e.valid});return r.a.createElement("li",{key:e.key,className:t},e.text)}))),e&&(h||!t)){const t=e.call(this,d);p=r.a.createElement("div",{className:"mx_Validation_description"},t)}return(p||h)&&(m=r.a.createElement("div",{className:"mx_Validation"},p,h)),{valid:g,feedback:m}}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"b",(function(){return l}));var o=n(84);function r(e){return e<1e3?e.toString():e<1e4?(e/1e3).toFixed(1)+"K":e<1e5?(e/1e3).toFixed(0)+"K":e<1e7?(e/1e6).toFixed(1)+"M":e<1e8?(e/1e6).toFixed(0)+"M":(e/1e9).toFixed(1)+"B"}function i(e){return(new Intl.NumberFormat).format(e)}function a(e,t=2){if(0===e)return"0 Bytes";const n=t<0?0:t,o=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,o)).toFixed(n))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][o]}function s(e){return e.match(/.{1,4}/g).join(" ")}function c(e){return"mx_Username_color"+(function(e){let t,n,o=0;if(0===e.length)return o;for(t=0;t<e.length;t++)n=e.charCodeAt(t),o=(o<<5)-o+n,o|=0;return Math.abs(o)}(e)%8+1)}function l(e,t){const n=void 0===t?0:Math.max(e.length-t,0);if(0===e.length)return"";if(1===e.length)return e[0];if(n>0)return e=e.slice(0,t),Object(o.a)("%(items)s and %(count)s others",{items:e.join(", "),count:n});{const t=e.pop();return Object(o.a)("%(items)s and %(lastItem)s",{items:e.join(", "),lastItem:t})}}},function(e,t,n){(function(e){var o=void 0!==e&&e||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(r.call(setTimeout,o,arguments),clearTimeout)},t.setInterval=function(){return new i(r.call(setInterval,o,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(o,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(771),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(6))},function(e,t,n){"use strict";var o=n(95),r=n.n(o),i=n(100),a=n.n(i),s=n(82),c=n.n(s),l=n(92),d=n.n(l),u=n(205),h=n(90),p=n(93),m=n(97),g=n(129),f=n(305),_=n(84);const b=(e,t)=>{let n=[];return h.b.getValue("lowBandwidth")||(n=t||[],e&&(n=[e,...n])),Array.from(new Set(n))};t.a=e=>{const{name:t,idName:n,title:o,url:i,urls:l,width:h=40,height:v=40,resizeMethod:y="crop",defaultToInitialLetter:E=!0,onClick:S,inputRef:w,className:C}=e,T=a()(e,["name","idName","title","url","urls","width","height","resizeMethod","defaultToInitialLetter","onClick","inputRef","className"]),[x,O]=(({url:e,urls:t})=>{const[n,o]=Object(s.useState)(b(e,t)),[r,i]=Object(s.useState)(0),a=Object(s.useCallback)(()=>{i(e=>e+1)},[]);Object(s.useEffect)(()=>{o(b(e,t)),i(0)},[e,JSON.stringify(t)]);const c=Object(s.useContext)(m.a),l=Object(s.useCallback)((e,t)=>{"ERROR"!==e&&t!==e&&i(0)},[]);Object(g.a)(c,"sync",l);return[n[r],a]})({url:i,urls:l});if(!x&&E){const e=u.e(t),i=c.a.createElement("span",{className:"mx_BaseAvatar_initial","aria-hidden":"true",style:{fontSize:Object(f.a)(.65*h),width:Object(f.a)(h),lineHeight:Object(f.a)(v)}},e),a=c.a.createElement("img",{className:"mx_BaseAvatar_image",src:u.d(n||t),alt:"",title:o,onError:O,style:{width:Object(f.a)(h),height:Object(f.a)(v)},"aria-hidden":"true"});return S?c.a.createElement(p.a,r()({"aria-label":Object(_.a)("Avatar")},T,{element:"span",className:d()("mx_BaseAvatar",C),onClick:S,inputRef:w}),i,a):c.a.createElement("span",r()({className:d()("mx_BaseAvatar",C),ref:w},T,{role:"presentation"}),i,a)}return S?c.a.createElement(p.a,r()({className:d()("mx_BaseAvatar mx_BaseAvatar_image",C),element:"img",src:x,onClick:S,onError:O,style:{width:Object(f.a)(h),height:Object(f.a)(v)},title:o,alt:"",inputRef:w},T)):c.a.createElement("img",r()({className:d()("mx_BaseAvatar mx_BaseAvatar_image",C),src:x,onError:O,style:{width:Object(f.a)(h),height:Object(f.a)(v)},title:o,alt:"",ref:w},T))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var o=n(86),r=n.n(o);let i;!function(e){e.IRC="irc",e.Group="group"}(i||(i={}));const a=r.a.oneOf(Object.values(i))},function(e,t,n){var o=n(375)("wks"),r=n(312),i=n(181).Symbol,a="function"==typeof i;(e.exports=function(e){return o[e]||(o[e]=a&&i[e]||(a?i:r)("Symbol."+e))}).store=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(83),r=n.n(o),i=n(141),a=n(89),s=n(192),c=n(90),l=n(1),d=n(115),u=n(154),h=n(179),p=n(116);class m extends i.a{constructor(){super(a.a,{})}static get instance(){return m.internalInstance}static getUpdateEventName(e){return`${d.b}:${e}`}getSelectedCommunityId(){return c.b.getValue("feature_communities_v2_prototypes")?h.a.getSelectedTags()[0]:null}getSelectedCommunityName(){return m.instance.getCommunityName(this.getSelectedCommunityId())}getSelectedCommunityGeneralChat(){const e=this.getSelectedCommunityId();if(e)return this.getGeneralChat(e)}getCommunityName(e){const t=u.a.getGroupProfileCachedFast(this.matrixClient,e);return(null==t?void 0:t.name)||e}getCommunityProfile(e){return u.a.getGroupProfileCachedFast(this.matrixClient,e)}getGeneralChat(e){const t=p.a.getGroupRooms(e).map(e=>this.matrixClient.getRoom(e.roomId)).filter(e=>!!e);let n=t.find(t=>{const n=t.currentState.getStateEvents("im.vector.general_chat","");return!(!n||n.getContent().groupId!==e)});return n||(n=t[0]),n}isAdminOf(e){const t=p.a.getGroupMembers(e).find(e=>e.userId===this.matrixClient.getUserId());return null==t?void 0:t.isPrivileged}canInviteTo(e){const t=this.getGeneralChat(e);if(!t)return this.isAdminOf(e);const n=t.getMember(this.matrixClient.getUserId());if(!n)return this.isAdminOf(e);const o=t.currentState.getStateEvents("m.room.power_levels","");if(!o)return this.isAdminOf(e);return(Object(l.s)(o.invite)?50:Number(o.invite))<=n.powerLevel}async onAction(e){if(this.matrixClient&&c.b.getValue("feature_communities_v2_prototypes"))if("MatrixActions.Room.myMembership"===e.action){const t=e.room,n=Object(s.b)(e.membership);if(n===Object(s.b)(e.oldMembership))return;if(n===s.a.Invite)try{const e=l.g("/rooms/$roomId/group_info",{$roomId:t.roomId}),n=await this.matrixClient._http.authedRequest(void 0,"GET",e,void 0,void 0,{prefix:"/_matrix/client/unstable/im.vector.custom"});await this.matrixClient.setAccountData("im.vector.group_info."+t.roomId,n)}catch(e){console.warn("Non-fatal error getting group information for invite:",e)}}else if("MatrixActions.accountData"===e.action){if(e.event_type.startsWith("im.vector.group_info.")){const t=e.event_type.substring("im.vector.group_info.".length);this.emit(m.getUpdateEventName(t),t)}}else if("select_tag"===e.action){const t=this.getGeneralChat(e.tag);t&&a.a.dispatch({action:"view_room",room_id:t.roomId})}}getInviteProfile(e){if(!this.matrixClient)return{displayName:null,avatarMxc:null};const t=this.matrixClient.getRoom(e);if(c.b.getValue("feature_communities_v2_prototypes")){const t=this.matrixClient.getAccountData("im.vector.group_info."+e);if(t&&t.getContent())return{displayName:t.getContent().name,avatarMxc:t.getContent().avatar_url}}return{displayName:t.name,avatarMxc:t.avatar_url}}async onReady(){for(const e of this.matrixClient.getRooms()){const t=e.currentState.getMembers().find(e=>e.userId===this.matrixClient.getUserId());t&&(Object(s.b)(t.membership)===s.a.Invite&&this.emit(m.getUpdateEventName(e.roomId),e.roomId))}}}r()(m,"internalInstance",new m)},function(e,t,n){"use strict";n.d(t,"d",(function(){return E})),n.d(t,"a",(function(){return S})),n.d(t,"c",(function(){return x})),n.d(t,"e",(function(){return O})),n.d(t,"b",(function(){return k})),n.d(t,"f",(function(){return R}));var o=n(91),r=n(87),i=n(88),a=n(427),s=n(428),c=n(84),l=n(135),d=n(248),u=n(655),h=n(256),p=n(90),m=n(221);let g={},f={},_=!1,b=!1,v={};function y(){return _}function E(){return _}class S extends Error{constructor(){super("Secret storage access canceled")}}async function w(){const e=r.getComponent("dialogs.QuestionDialog"),[t]=await o.a.createDialog(e,{title:Object(c.a)("Cancel entering passphrase?"),description:Object(c.a)("Are you sure you want to cancel entering passphrase?"),danger:!1,button:Object(c.a)("Go Back"),cancelButton:Object(c.a)("Cancel")}).finished;return!t}function C(e){return async({passphrase:t,recoveryKey:n})=>t?Object(a.a)(t,e.passphrase.salt,e.passphrase.iterations):Object(s.a)(n)}function T(e,t,n){y()&&(g[e]=n,f[e]=t)}const x={getSecretStorageKey:async function({keys:e},t){var n;const r=i.a.get();let a,s=await r.getDefaultSecretStorageKeyId();if(s&&(a=e[s],a||(s=void 0)),!s){const t=Object.entries(e);if(t.length>1)throw new Error("Multiple storage key requests not implemented");[s,a]=t[0]}if(y()&&g[s])return[s,g[s]];if(v.key&&await i.a.get().checkSecretStorageKey(v.key,a))return T(s,a,v.key),[s,v.key];const c=null===(n=m.a.getSecretStorageKey)||void 0===n?void 0:n.call(m.a);if(c)return console.log("Using key from security customisations (secret storage)"),T(s,a,c),[s,c];if(b)throw new Error("Could not unlock non-interactively");const l=C(a),{finished:d}=o.a.createTrackedDialog("Access Secret Storage dialog","",u.a,{keyInfo:a,checkPrivateKey:async e=>{const t=await l(e);return await i.a.get().checkSecretStorageKey(t,a)}},null,!1,!1,{onBeforeClose:async e=>"backgroundClick"!==e||w()}),[h]=await d;if(!h)throw new S;const p=await l(h);return T(s,a,p),[s,p]},cacheSecretStorageKey:T,onSecretRequested:async function(e,t,n,o,r){console.log("onSecretRequested",e,t,n,o,r);const a=i.a.get();if(e===a.getUserId())if(r&&r.isVerified()){if("m.cross_signing.master"===o||"m.cross_signing.self_signing"===o||"m.cross_signing.user_signing"===o){const e=a.getCrossSigningCacheCallbacks();if(!e.getCrossSigningKeyCache)return;const n=o.replace("m.cross_signing.",""),r=await e.getCrossSigningKeyCache(n);return r||console.log(`${n} requested by ${t}, but not found in cache`),r&&Object(l.encodeBase64)(r)}if("m.megolm_backup.v1"===o){const e=await a._crypto.getSessionBackupPrivateKey();return e||console.log(`session backup key requested by ${t}, but not found in cache`),e&&Object(l.encodeBase64)(e)}console.warn("onSecretRequested didn't recognise the secret named ",o)}else console.log("Ignoring secret request from untrusted device "+t)},getDehydrationKey:async function(e,t){var n;const r=null===(n=m.a.getSecretStorageKey)||void 0===n?void 0:n.call(m.a);if(r)return console.log("Using key from security customisations (dehydration)"),r;const i=C(e),{finished:a}=o.a.createTrackedDialog("Access Secret Storage dialog","",u.a,{keyInfo:e,checkPrivateKey:async e=>{const n=await i(e);try{return t(n),!0}catch(e){return!1}}},null,!1,!1,{onBeforeClose:async e=>"backgroundClick"!==e||w()}),[s]=await a;if(!s)throw new S;const c=await i(s);return v={key:new Uint8Array(c),keyInfo:e},c}};async function O(){let e;const{finished:t}=o.a.createTrackedDialog("Restore Backup","",h.a,{showSummary:!1,keyCallback:t=>e=t},null,!1,!0);if(!await t)throw new Error("Key backup prompt cancelled");return e}async function k(e=(async()=>{}),t=!1){const a=i.a.get();_=!0;try{if(!await a.hasSecretStorageKey()||t){const{finished:e}=o.a.createTrackedDialogAsync("Create Secret Storage dialog","",n.e(24).then(n.bind(null,1374)),{forceReset:t},null,!1,!0,{onBeforeClose:async e=>"backgroundClick"!==e||!Object(d.d)()}),[r]=await e;if(!r)throw new Error("Secret storage creation canceled")}else{const e=r.getComponent("dialogs.InteractiveAuthDialog");await a.bootstrapCrossSigning({authUploadDeviceSigningKeys:async t=>{const{finished:n}=o.a.createTrackedDialog("Cross-signing keys dialog","",e,{title:Object(c.a)("Setting up keys"),matrixClient:a,makeRequest:t}),[r]=await n;if(!r)throw new Error("Cross-signing key upload auth canceled")}}),await a.bootstrapSecretStorage({getKeyBackupPassphrase:O});const t=Object.keys(g)[0];if(t&&p.b.getValue("feature_dehydration")){let e={};f[t]&&f[t].passphrase&&(e={passphrase:f[t].passphrase}),console.log("Setting dehydration key"),await a.setDehydrationKey(g[t],e,"Backup device")}else t?console.log("Not setting dehydration key: feature disabled"):console.warn("Not setting dehydration key: no SSSS key found")}return await e()}catch(e){var s;throw null===(s=m.a.catchAccessSecretStorageError)||void 0===s||s.call(m.a,e),console.error(e),e}finally{_=!1,y()||(g={},f={})}}async function R(e){const t=v.key;let n=!1;if(t&&await e.isSecretStorageReady()){console.log("Trying to set up cross-signing using dehydration key"),_=!0,b=!0;try{await e.checkOwnCrossSigningTrust();let o={};v.keyInfo&&v.keyInfo.passphrase&&(o={passphrase:v.keyInfo.passphrase}),await e.setDehydrationKey(t,o,"Backup device");const r=await e.getKeyBackupVersion();r&&(n=!0,e.restoreKeyBackupWithSecretStorage(r).finally(()=>{_=!1,b=!1,y()||(g={},f={})}))}finally{v={},n||(_=!1,b=!1,y()||(g={},f={}))}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var o=n(83),r=n.n(o),i=n(141),a=n(89),s=n(124),c=n(216),l=n(117),d=n(217);class u extends d.b{constructor(e=!1,t,n){super(),this.byTileCount=e,this.tagId=t,this.getRoomFn=n,r()(this,"rooms",[]),r()(this,"states",{}),r()(this,"onRoomNotificationStateUpdate",()=>{this.calculateTotalState()})}get symbol(){return null}setRooms(e){if(this.byTileCount)return this.rooms=e,void this.calculateTotalState();const t=this.rooms,n=Object(l.a)(t,e);this.rooms=e;for(const e of n.removed){const t=this.states[e.roomId];t&&(delete this.states[e.roomId],t.off(d.a,this.onRoomNotificationStateUpdate))}for(const e of n.added){const t=this.getRoomFn(e);t.on(d.a,this.onRoomNotificationStateUpdate),this.states[e.roomId]=t}this.calculateTotalState()}getForRoom(e){const t=this.states[e.roomId];if(!t)throw new Error("Unknown room for notification state");return t}destroy(){super.destroy();for(const e of Object.values(this.states))e.off(d.a,this.onRoomNotificationStateUpdate);this.states={}}calculateTotalState(){const e=this.snapshot();if(this.byTileCount)this._color=c.a.Red,this._count=this.rooms.length;else{this._count=0,this._color=c.a.None;for(const e of Object.values(this.states))this._count+=e.count,this._color=Math.max(this.color,e.color)}this.emitIfUpdated(e)}}var h=n(88),p=n(192),m=n(551),g=n(309),f=n(552);class _ extends d.b{constructor(e){super(),this.room=e,r()(this,"handleReadReceipt",(e,t)=>{Object(m.a)(e,h.a.get())&&t.roomId===this.room.roomId&&this.updateNotificationState()}),r()(this,"handleMembershipUpdate",()=>{this.updateNotificationState()}),r()(this,"handleRoomEventUpdate",e=>{e.getRoomId()===this.room.roomId&&this.updateNotificationState()}),r()(this,"handleAccountDataUpdate",e=>{"m.push_rules"===e.getType()&&this.updateNotificationState()}),this.room.on("Room.receipt",this.handleReadReceipt),this.room.on("Room.timeline",this.handleRoomEventUpdate),this.room.on("Room.redaction",this.handleRoomEventUpdate),this.room.on("Room.myMembership",this.handleMembershipUpdate),h.a.get().on("Event.decrypted",this.handleRoomEventUpdate),h.a.get().on("accountData",this.handleAccountDataUpdate),this.updateNotificationState()}get roomIsInvite(){return Object(p.b)(this.room.getMyMembership())===p.a.Invite}destroy(){super.destroy(),this.room.removeListener("Room.receipt",this.handleReadReceipt),this.room.removeListener("Room.timeline",this.handleRoomEventUpdate),this.room.removeListener("Room.redaction",this.handleRoomEventUpdate),this.room.removeListener("Room.myMembership",this.handleMembershipUpdate),h.a.get()&&(h.a.get().removeListener("Event.decrypted",this.handleRoomEventUpdate),h.a.get().removeListener("accountData",this.handleAccountDataUpdate))}updateNotificationState(){const e=this.snapshot();if(g.f(this.room.roomId)===g.d)this._color=c.a.None,this._symbol=null,this._count=0;else if(this.roomIsInvite)this._color=c.a.Red,this._symbol="!",this._count=1;else{const e=g.g(this.room,"highlight"),t=g.g(this.room,"total"),n=t||(e||0);if(e>0)this._color=c.a.Red,this._count=n,this._symbol=null;else if(t>0)this._color=c.a.Grey,this._count=n,this._symbol=null;else{const e=f.a(this.room);this._color=e?c.a.Bold:c.a.None,this._count=0,this._symbol=null}}this.emitIfUpdated(e)}}class b extends d.b{constructor(){super(),r()(this,"totalStatesWithUnread",0),this._symbol=null,this._count=0,this._color=c.a.None}get numUnreadStates(){return this.totalStatesWithUnread}add(e,t=!1){e.symbol&&t&&(this._symbol=e.symbol),e.count&&(this._count+=e.count),e.color>this.color&&(this._color=e.color),e.hasUnreadCount&&this.totalStatesWithUnread++}}var v=n(493);class y extends i.a{constructor(){super(a.a,{}),r()(this,"roomMap",new Map),r()(this,"listMap",new Map)}get globalState(){if(!this.matrixClient)return new b;const e=new b;for(const t of this.matrixClient.getVisibleRooms())v.a.instance.isRoomVisible(t)&&e.add(this.getRoomState(t));return e}getListState(e){if(this.listMap.has(e))return this.listMap.get(e);const t=e===s.a.Invite,n=new u(t,e,e=>this.getRoomState(e));return this.listMap.set(e,n),n}getRoomState(e){return this.roomMap.has(e)||this.roomMap.set(e,new _(e)),this.roomMap.get(e)}static get instance(){return y.internalInstance}async onNotReady(){for(const e of this.roomMap.values())e.destroy()}async onAction(e){return Promise.resolve()}}r()(y,"internalInstance",new y)},function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var o=n(83),r=n.n(o),i=n(94),a=n(91),s=n(121),c=n.n(s),l=n(90),d=n(287),u=n(88),h=n(16),p=n.n(h),m=(n(138),n(195));class g{constructor(e,t){this.apiUrl=e,this.uiUrl=t,this.scalarToken=null,this.termsInteractionCallback=void 0;const n=i.a.get().integrations_rest_url,o=i.a.get().integrations_ui_url;this.isDefaultManager=e===n&&o===t}_writeTokenToStore(){window.localStorage.setItem("mx_scalar_token_at_"+this.apiUrl,this.scalarToken),this.isDefaultManager&&window.localStorage.removeItem("mx_scalar_token")}_readTokenFromStore(){let e=window.localStorage.getItem("mx_scalar_token_at_"+this.apiUrl);return!e&&this.isDefaultManager&&(e=window.localStorage.getItem("mx_scalar_token")),e}_readToken(){return this.scalarToken?this.scalarToken:this._readTokenFromStore()}setTermsInteractionCallback(e){this.termsInteractionCallback=e}connect(){return this.getScalarToken().then(e=>{this.scalarToken=e})}hasCredentials(){return null!=this.scalarToken}getScalarToken(){const e=this._readToken();return e?this._checkToken(e).catch(e=>{if(e instanceof d.b)throw e;return this.registerForToken()}):this.registerForToken()}_getAccountName(e){const t=this.apiUrl+"/account";return new Promise((function(n,o){p()({method:"GET",uri:t,qs:{scalar_token:e,v:"1.1"},json:!0},(e,t,r)=>{e?o(e):r&&"M_TERMS_NOT_SIGNED"===r.errcode?o(new d.b):t.statusCode/100!=2?o(r):r&&r.user_id?n(r.user_id):o(new Error("Missing user_id in response"))})}))}_checkToken(e){return this._getAccountName(e).then(t=>{const n=u.a.get().getUserId();if(t!==n)throw new Error("Scalar token is owned by someone else: "+n);return e}).catch(t=>{if(t instanceof d.b){console.log("Integration manager requires new terms to be agreed to");const t=c.a.parse(this.apiUrl);return t.path="",t.pathname="",Object(d.d)([new d.a(m.a.IM,t.format(),e)],this.termsInteractionCallback).then(()=>e)}throw t})}registerForToken(){return u.a.get().getOpenIdToken().then(e=>this.exchangeForScalarToken(e)).then(e=>this._checkToken(e)).then(e=>(this.scalarToken=e,this._writeTokenToStore(),e))}exchangeForScalarToken(e){const t=this.apiUrl;return new Promise((function(n,o){p()({method:"POST",uri:t+"/register",qs:{v:"1.1"},body:e,json:!0},(e,t,r)=>{e?o(e):t.statusCode/100!=2?o({statusCode:t.statusCode}):r&&r.scalar_token?n(r.scalar_token):o(new Error("Missing scalar_token in response"))})}))}getScalarPageTitle(e){let t=this.apiUrl+"/widgets/title_lookup";return t=this.getStarterLink(t),t+="&curl="+encodeURIComponent(e),new Promise((function(e,n){p()({method:"GET",uri:t,json:!0},(t,o,r)=>{if(t)n(t);else if(o.statusCode/100!=2)n({statusCode:o.statusCode});else if(r){let t="";r.page_title_cache_item&&r.page_title_cache_item.cached_title&&(t=r.page_title_cache_item.cached_title),e(t)}else n(new Error("Missing page title in response"))})}))}disableWidgetAssets(e,t){let n=this.apiUrl+"/widgets/set_assets_state";return n=this.getStarterLink(n),new Promise((o,r)=>{p()({method:"GET",uri:n,json:!0,qs:{widget_type:e.preferred,widget_id:t,state:"disable"}},(e,t,n)=>{e?r(e):t.statusCode/100!=2?r({statusCode:t.statusCode}):n?o():r(new Error("Failed to set widget assets state"))})})}getScalarInterfaceUrlForRoom(e,t,n){const o=e.roomId,r=e.name;let i=this.uiUrl;return i+="?scalar_token="+encodeURIComponent(this.scalarToken),i+="&room_id="+encodeURIComponent(o),i+="&room_name="+encodeURIComponent(r),i+="&theme="+encodeURIComponent(l.b.getValue("theme")),n&&(i+="&integ_id="+encodeURIComponent(n)),t&&(i+="&screen="+encodeURIComponent(t)),i}getStarterLink(e){return e+"?scalar_token="+encodeURIComponent(this.scalarToken)}}var f=n(600);let _;!function(e){e.Account="account",e.Config="config",e.Homeserver="homeserver"}(_||(_={}));class b{constructor(e,t,n=t,o){r()(this,"apiUrl",void 0),r()(this,"uiUrl",void 0),r()(this,"kind",void 0),r()(this,"id",void 0),this.kind=e,this.apiUrl=t,this.uiUrl=n,this.id=o}get name(){return c.a.parse(this.uiUrl).host}get trimmedApiUrl(){const e=c.a.parse(this.apiUrl);return e.pathname="",e.path="",c.a.format(e)}getScalarClient(){return new g(this.apiUrl,this.uiUrl)}async open(e=null,t=null,n=null){if(!l.b.getValue("integrationProvisioning"))return C.sharedInstance().showDisabledDialog();const o=a.a.createTrackedDialog("Integration Manager","",f.a,{loading:!0},"mx_IntegrationManager"),r=this.getScalarClient();r.setTermsInteractionCallback((e,t)=>Object(d.c)(e,t,"mx_TermsDialog_forIntegrationManager"));const i={};try{await r.connect(),r.hasCredentials()?i.url=r.getScalarInterfaceUrlForRoom(e,t,n):i.connected=!1}catch(e){if(e instanceof d.b)return void o.close();console.error(e),i.connected=!1}o.close(),a.a.createTrackedDialog("Integration Manager","",f.a,i,"mx_IntegrationManager")}}var v=n(601),y=n(602),E=n(604),S=n(132);const w=[_.Account,_.Homeserver,_.Config];class C{static sharedInstance(){return C.instance||(C.instance=new C),C.instance}constructor(){r()(this,"managers",[]),r()(this,"client",void 0),r()(this,"primaryManager",void 0),r()(this,"setupHomeserverManagers",async e=>{if(console.log("Updating homeserver-configured integration managers..."),e&&e["m.integrations"]){let t=e["m.integrations"].managers;Array.isArray(t)||(t=[]),console.log(`Homeserver has ${t.length} integration managers`),this.managers=this.managers.filter(e=>e.kind!==_.Homeserver);for(const e of t)e.api_url&&this.managers.push(new b(_.Homeserver,e.api_url,e.ui_url));this.primaryManager=null}else console.log("Homeserver has no integration managers")}),r()(this,"onAccountData",e=>{"m.widgets"===e.getType()&&this.compileManagers()}),this.compileManagers()}startWatching(){this.stopWatching(),this.client=u.a.get(),this.client.on("accountData",this.onAccountData),this.client.on("WellKnown.client",this.setupHomeserverManagers),this.compileManagers()}stopWatching(){this.client&&(this.client.removeListener("accountData",this.onAccountData),this.client.removeListener("WellKnown.client",this.setupHomeserverManagers))}compileManagers(){this.managers=[],this.setupConfiguredManager(),this.setupAccountManagers()}setupConfiguredManager(){const e=i.a.get().integrations_rest_url,t=i.a.get().integrations_ui_url;e&&t&&(this.managers.push(new b(_.Config,e,t)),this.primaryManager=null)}setupAccountManagers(){if(!this.client||!this.client.getUserId())return;S.a.getIntegrationManagerWidgets().forEach(e=>{const t=e.content.data;if(!t)return;const n=e.content.url,o=t.api_url;if(!o||!n)return;const r=new b(_.Account,o,n,e.id||e.state_key||"");this.managers.push(r)}),this.primaryManager=null}hasManager(){return this.managers.length>0}getOrderedManagers(){const e=[];for(const t of w){const n=this.managers.filter(e=>e.kind===t);n&&n.length&&(t===_.Account&&n.sort((e,t)=>e.id.localeCompare(t.id)),e.push(...n))}return e}getPrimaryManager(){return this.hasManager()?(this.primaryManager||(this.primaryManager=this.getOrderedManagers()[0]),this.primaryManager):null}openNoManagerDialog(){a.a.createTrackedDialog("Integrations impossible","",v.a)}openAll(e=null,t=null,n=null){return l.b.getValue("integrationProvisioning")?0===this.managers.length?this.openNoManagerDialog():void a.a.createTrackedDialog("Tabbed Integration Manager","",y.a,{room:e,screen:t,integrationId:n},"mx_TabbedIntegrationManagerDialog"):this.showDisabledDialog()}showDisabledDialog(){a.a.createTrackedDialog("Integrations disabled","",E.a)}async overwriteManagerOnAccount(e){await S.a.removeIntegrationManagerWidgets(),await S.a.addIntegrationManagerWidget(e.name,e.uiUrl,e.apiUrl)}async tryDiscoverManager(e){let t;console.log("Looking up integration manager via .well-known"),(e.startsWith("http:")||e.startsWith("https:"))&&(e=c.a.parse(e).host);try{const n=await fetch(`https://${e}/.well-known/matrix/integrations`);t=await n.json()}catch(e){return console.error(e),console.warn("Failed to locate integration manager"),null}if(!t||!t["m.integrations_widget"])return console.warn("Missing integrations widget on .well-known response"),null;const n=t["m.integrations_widget"];if(!n.url||!n.data||!n.data.api_url)return console.warn("Malformed .well-known response for integrations widget"),null;const o=new b(_.Account,n.data.api_url,n.url);return console.log("Got an integration manager (untested)"),o}}r()(C,"instance",void 0),window.mxIntegrationManagers=C},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var o=n(83),r=n.n(o),i=n(7),a=n(361),s=n(152),c=n(266),l=n(1),d=n(103),u=n(153);function h(e,t){this.roomId=e,this.info=t}var p=n(0),m=n(400),g=n(110);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const b=["1","2","3","4","5","6"];function v(e,t,n){const o={content:{},type:"m.receipt",room_id:t.getRoomId()};return o.content[t.getId()]={},o.content[t.getId()][n]={},o.content[t.getId()][n][e]={ts:t.getTs()},new d.b(o)}function y(e,t,n,o){if((o=o||{}).pendingEventOrdering=o.pendingEventOrdering||"chronological",this._client=t,this.setMaxListeners(100),this.reEmitter=new m.a(this),-1===["chronological","detached"].indexOf(o.pendingEventOrdering))throw new Error("opts.pendingEventOrdering MUST be either 'chronological' or 'detached'. Got: '"+o.pendingEventOrdering+"'");if(this.myUserId=n,this.roomId=e,this.name=e,this.tags={},this.accountData={},this.summary=null,this.storageToken=o.storageToken,this._opts=o,this._txnToEvent={},this._receipts={},this._receiptCacheByEventId={},this._realReceipts={},this._notificationCounts={},this._timelineSets=[new a.a(this,o)],this.reEmitter.reEmit(this.getUnfilteredTimelineSet(),["Room.timeline","Room.timelineReset"]),this._fixUpLegacyTimelineFields(),this._filteredTimelineSets={},"detached"==this._opts.pendingEventOrdering){this._pendingEventList=[];const e=t._sessionStore.store.getItem(E(this.roomId));e&&JSON.parse(e).forEach(async e=>{const t=new d.b(e);"m.room.encrypted"===t.getType()&&await t.attemptDecryption(this._client._crypto),t.setStatus(d.a.NOT_SENT),this.addPendingEvent(t,t.getTxnId())})}this._blacklistUnverifiedDevices=null,this._selfMembership=null,this._summaryHeroes=null,this._opts.lazyLoadMembers?this._membersPromise=null:this._membersPromise=Promise.resolve()}function E(e){return"mx_pending_events_"+e}l.p(y,i.EventEmitter),y.prototype.getVersion=function(){const e=this.currentState.getStateEvents("m.room.create","");if(!e)return p.a.warn("Room "+this.roomId+" does not have an m.room.create event"),"1";const t=e.getContent().room_version;return void 0===t?"1":t},y.prototype.shouldUpgradeToVersion=function(){return b.includes(this.getVersion())?null:"6"},y.prototype.getRecommendedVersion=async function(){let e=(await this._client.getCapabilities())["m.room_versions"];if(!e){e={default:"6",available:{}};for(const t of b)e.available[t]="stable"}let t=this._checkVersionAgainstCapability(e);if(t.urgent&&t.needsUpgrade){p.a.warn("Refreshing room version capability because the server looks to be supporting a newer room version we don't know about.");if(e=(await this._client.getCapabilities(!0))["m.room_versions"],!e)return p.a.warn("No room version capability - assuming upgrade required."),t;t=this._checkVersionAgainstCapability(e)}return t},y.prototype._checkVersionAgainstCapability=function(e){const t=this.getVersion();p.a.log(`[${this.roomId}] Current version: ${t}`),p.a.log(`[${this.roomId}] Version capability: `,e);const n={version:t,needsUpgrade:!1,urgent:!1};if(t===e.default)return n;return Object.keys(e.available).filter(t=>"stable"===e.available[t]).includes(t)||(n.version=e.default,n.needsUpgrade=!0,n.urgent=!!this.getVersion().match(/^[0-9]+[0-9.]*$/g),n.urgent?p.a.warn("URGENT upgrade required on "+this.roomId):p.a.warn("Non-urgent upgrade required on "+this.roomId)),n},y.prototype.userMayUpgradeRoom=function(e){return this.currentState.maySendStateEvent("m.room.tombstone",e)},y.prototype.getPendingEvents=function(){if("detached"!==this._opts.pendingEventOrdering)throw new Error("Cannot call getPendingEvents with pendingEventOrdering == "+this._opts.pendingEventOrdering);return this._pendingEventList},y.prototype.removePendingEvent=function(e){if("detached"!==this._opts.pendingEventOrdering)throw new Error("Cannot call removePendingEvent with pendingEventOrdering == "+this._opts.pendingEventOrdering);const t=l.z(this._pendingEventList,(function(t){return t.getId()==e}),!1);return this._savePendingEvents(),t},y.prototype.hasPendingEvent=function(e){return"detached"===this._opts.pendingEventOrdering&&this._pendingEventList.some(t=>t.getId()===e)},y.prototype.getPendingEvent=function(e){return"detached"!==this._opts.pendingEventOrdering?null:this._pendingEventList.find(t=>t.getId()===e)},y.prototype.getLiveTimeline=function(){return this.getUnfilteredTimelineSet().getLiveTimeline()},y.prototype.getLastActiveTimestamp=function(){const e=this.getLiveTimeline().getEvents();if(e.length){return e[e.length-1].getTs()}return Number.MIN_SAFE_INTEGER},y.prototype.getMyMembership=function(){return this._selfMembership},y.prototype.getDMInviter=function(){if(this.myUserId){const e=this.getMember(this.myUserId);if(e)return e.getDMInviter()}if("invite"===this._selfMembership){if(2==this.getInvitedAndJoinedMemberCount()&&this._summaryHeroes.length)return this._summaryHeroes[0]}},y.prototype.guessDMUserId=function(){const e=this.getMember(this.myUserId);if(e){const t=e.getDMInviter();if(t)return t}if(Array.isArray(this._summaryHeroes)&&this._summaryHeroes.length)return this._summaryHeroes[0];const t=this.currentState.getMembers().find(e=>e.userId!==this.myUserId);return t?t.userId:this.myUserId},y.prototype.getAvatarFallbackMember=function(){if(this.getInvitedAndJoinedMemberCount()>2)return;const e=Array.isArray(this._summaryHeroes)&&this._summaryHeroes.length;if(e){const e=this._summaryHeroes.map(e=>this.getMember(e)).find(e=>!!e);if(e)return e}const t=this.currentState.getMembers();if(t.length<=2){const e=t.find(e=>e.userId!==this.myUserId);if(e)return e}if(e){const e=this._summaryHeroes.map(e=>this._client.getUser(e)).find(e=>!!e);if(e){const t=new u.a(this.roomId,e.userId);return t.user=e,t}}},y.prototype.updateMyMembership=function(e){const t=this._selfMembership;this._selfMembership=e,t!==e&&("leave"===e&&this._cleanupAfterLeaving(),this.emit("Room.myMembership",this,e,t))},y.prototype._loadMembersFromServer=async function(){const e=this._client.store.getSyncToken(),t=l.f({not_membership:"leave",at:e}),n=l.g("/rooms/$roomId/members?"+t,{$roomId:this.roomId}),o=this._client._http;return(await o.authedRequest(void 0,"GET",n)).chunk},y.prototype._loadMembers=async function(){let e=!1,t=await this._client.store.getOutOfBandMembers(this.roomId);null===t&&(e=!0,t=await this._loadMembersFromServer(),p.a.log(`LL: got ${t.length} members from server for room `+this.roomId));return{memberEvents:t.map(this._client.getEventMapper()),fromServer:e}},y.prototype.loadMembersIfNeeded=function(){if(this._membersPromise)return this._membersPromise;this.currentState.markOutOfBandMembersStarted();const e=this._loadMembers().then(e=>(this.currentState.setOutOfBandMembers(e.memberEvents),this._client.isCryptoEnabled()&&this._client.isRoomEncrypted(this.roomId)&&this._client._crypto.trackRoomDevices(this.roomId),e.fromServer)).catch(e=>{throw this._membersPromise=null,this.currentState.markOutOfBandMembersFailed(),e});return e.then(e=>{if(e){const e=this.currentState.getMembers().filter(e=>e.isOutOfBand()).map(e=>e.events.member.event);p.a.log("LL: telling store to write "+e.length+" members for room "+this.roomId);return this._client.store.setOutOfBandMembers(this.roomId,e).catch(e=>{p.a.log("LL: storing OOB room members failed, oh well",e)})}}).catch(e=>{p.a.error(e)}),this._membersPromise=e,this._membersPromise},y.prototype.clearLoadedMembersIfNeeded=async function(){this._opts.lazyLoadMembers&&this._membersPromise&&(await this.loadMembersIfNeeded(),await this._client.store.clearOutOfBandMembers(this.roomId),this.currentState.clearOutOfBandMembers(),this._membersPromise=null)},y.prototype._cleanupAfterLeaving=function(){this.clearLoadedMembersIfNeeded().catch(e=>{p.a.error(`error after clearing loaded members from room ${this.roomId} after leaving`),p.a.log(e)})},y.prototype.resetLiveTimeline=function(e,t){for(let n=0;n<this._timelineSets.length;n++)this._timelineSets[n].resetLiveTimeline(e,t);this._fixUpLegacyTimelineFields()},y.prototype._fixUpLegacyTimelineFields=function(){this.timeline=this.getLiveTimeline().getEvents(),this.oldState=this.getLiveTimeline().getState(s.a.BACKWARDS),this.currentState=this.getLiveTimeline().getState(s.a.FORWARDS)},y.prototype.hasUnverifiedDevices=async function(){if(!this._client.isRoomEncrypted(this.roomId))return!1;const e=await this.getEncryptionTargetMembers();for(const t of e){if(this._client.getStoredDevicesForUser(t.userId).some(e=>e.isUnverified()))return!0}return!1},y.prototype.getTimelineSets=function(){return this._timelineSets},y.prototype.getUnfilteredTimelineSet=function(){return this._timelineSets[0]},y.prototype.getTimelineForEvent=function(e){return this.getUnfilteredTimelineSet().getTimelineForEvent(e)},y.prototype.addTimeline=function(){return this.getUnfilteredTimelineSet().addTimeline()},y.prototype.findEventById=function(e){return this.getUnfilteredTimelineSet().findEventById(e)},y.prototype.getUnreadNotificationCount=function(e){return e=e||"total",this._notificationCounts[e]},y.prototype.setUnreadNotificationCount=function(e,t){this._notificationCounts[e]=t},y.prototype.setSummary=function(e){const t=e["m.heroes"],n=e["m.joined_member_count"],o=e["m.invited_member_count"];Number.isInteger(n)&&this.currentState.setJoinedMemberCount(n),Number.isInteger(o)&&this.currentState.setInvitedMemberCount(o),Array.isArray(t)&&(this._summaryHeroes=t.filter(e=>e!==this.myUserId))},y.prototype.setBlacklistUnverifiedDevices=function(e){this._blacklistUnverifiedDevices=e},y.prototype.getBlacklistUnverifiedDevices=function(){return this._blacklistUnverifiedDevices},y.prototype.getAvatarUrl=function(e,t,n,o,r){const i=this.currentState.getStateEvents(g.a.RoomAvatar,"");if(void 0===r&&(r=!0),!i&&!r)return null;const a=i?i.getContent().url:null;return a?Object(c.a)(e,a,t,n,o):null},y.prototype.getMxcAvatarUrl=function(){const e=this.currentState.getStateEvents(g.a.RoomAvatar,"");return e?e.getContent().url:null},y.prototype.getAliases=function(){const e=[],t=this.currentState.getStateEvents("m.room.aliases");if(t)for(let n=0;n<t.length;++n){const o=t[n];if(l.q(o.getContent().aliases)){const t=o.getContent().aliases.filter(e=>"string"==typeof e&&("#"===e[0]&&!!e.endsWith(":"+o.getStateKey())));Array.prototype.push.apply(e,t)}}return e},y.prototype.getCanonicalAlias=function(){const e=this.currentState.getStateEvents("m.room.canonical_alias","");return e&&e.getContent().alias||null},y.prototype.getAltAliases=function(){const e=this.currentState.getStateEvents("m.room.canonical_alias","");return e&&e.getContent().alt_aliases||[]},y.prototype.addEventsToTimeline=function(e,t,n,o){n.getTimelineSet().addEventsToTimeline(e,t,n,o)},y.prototype.getMember=function(e){return this.currentState.getMember(e)},y.prototype.getJoinedMembers=function(){return this.getMembersWithMembership("join")},y.prototype.getJoinedMemberCount=function(){return this.currentState.getJoinedMemberCount()},y.prototype.getInvitedMemberCount=function(){return this.currentState.getInvitedMemberCount()},y.prototype.getInvitedAndJoinedMemberCount=function(){return this.getInvitedMemberCount()+this.getJoinedMemberCount()},y.prototype.getMembersWithMembership=function(e){return l.k(this.currentState.getMembers(),(function(t){return t.membership===e}))},y.prototype.getEncryptionTargetMembers=async function(){await this.loadMembersIfNeeded();let e=this.getMembersWithMembership("join");return this.shouldEncryptForInvitedMembers()&&(e=e.concat(this.getMembersWithMembership("invite"))),e},y.prototype.shouldEncryptForInvitedMembers=function(){const e=this.currentState.getStateEvents("m.room.history_visibility","");return e&&e.getContent()&&"joined"!==e.getContent().history_visibility},y.prototype.getDefaultRoomName=function(e){return w(this,e,!0)},y.prototype.hasMembershipState=function(e,t){const n=this.getMember(e);return!!n&&n.membership===t},y.prototype.getOrCreateFilteredTimelineSet=function(e){if(this._filteredTimelineSets[e.filterId])return this._filteredTimelineSets[e.filterId];const t=Object.assign({filter:e},this._opts),n=new a.a(this,t);this.reEmitter.reEmit(n,["Room.timeline","Room.timelineReset"]),this._filteredTimelineSets[e.filterId]=n,this._timelineSets.push(n);const o=this.getLiveTimeline();o.getEvents().forEach((function(e){n.addLiveEvent(e)}));let r=o;for(;r.getNeighbouringTimeline(s.a.BACKWARDS);)r=r.getNeighbouringTimeline(s.a.BACKWARDS);return n.getLiveTimeline().setPaginationToken(r.getPaginationToken(s.a.BACKWARDS),s.a.BACKWARDS),n},y.prototype.removeFilteredTimelineSet=function(e){const t=this._filteredTimelineSets[e.filterId];delete this._filteredTimelineSets[e.filterId];const n=this._timelineSets.indexOf(t);n>-1&&this._timelineSets.splice(n,1)},y.prototype._addLiveEvent=function(e,t,n){if(e.isRedaction()){const t=e.event.redacts,n=this.getUnfilteredTimelineSet().findEventById(t);if(n){if(n.makeRedacted(e),n.getStateKey()){this.currentState.getStateEvents(n.getType(),n.getStateKey()).getId()===n.getId()&&this.currentState.setStateEvents([n])}this.emit("Room.redaction",e,this)}}if(e.getUnsigned().transaction_id){const t=this._txnToEvent[e.getUnsigned().transaction_id];if(t)return void this._handleRemoteEcho(e,t)}for(let o=0;o<this._timelineSets.length;o++)this._timelineSets[o].addLiveEvent(e,t,n);e.sender&&"m.room.redaction"!==e.getType()&&this.addReceipt(v(e.sender.userId,e,"m.read"),!0)},y.prototype.addPendingEvent=function(e,t){if(e.status!==d.a.SENDING&&e.status!==d.a.NOT_SENT)throw new Error("addPendingEvent called on an event with status "+e.status);if(this._txnToEvent[t])throw new Error("addPendingEvent called on an event with known txnId "+t);if(s.a.setEventMetadata(e,this.getLiveTimeline().getState(s.a.FORWARDS),!1),this._txnToEvent[t]=e,"detached"==this._opts.pendingEventOrdering){if(this._pendingEventList.some(e=>e.status===d.a.NOT_SENT)&&(p.a.warn("Setting event as NOT_SENT due to messages in the same state"),e.setStatus(d.a.NOT_SENT)),this._pendingEventList.push(e),this._savePendingEvents(),e.isRelation()&&this._aggregateNonLiveRelation(e),e.isRedaction()){const t=e.event.redacts;let n=this._pendingEventList&&this._pendingEventList.find(e=>e.getId()===t);n||(n=this.getUnfilteredTimelineSet().findEventById(t)),n&&(n.markLocallyRedacted(e),this.emit("Room.redaction",e,this))}}else for(let t=0;t<this._timelineSets.length;t++){const n=this._timelineSets[t];n.getFilter()?n.getFilter().filterRoomTimeline([e]).length&&n.addEventToTimeline(e,n.getLiveTimeline(),!1):n.addEventToTimeline(e,n.getLiveTimeline(),!1)}this.emit("Room.localEchoUpdated",e,this,null,null)},y.prototype._savePendingEvents=function(){if(this._pendingEventList){const e=this._pendingEventList.map(e=>_(_({},e.event),{},{txn_id:e.getTxnId()})).filter(e=>{const t="m.room.encrypted"===e.type,n=this._client.isRoomEncrypted(this.roomId);return t||!n}),{store:t}=this._client._sessionStore;this._pendingEventList.length>0?t.setItem(E(this.roomId),JSON.stringify(e)):t.removeItem(E(this.roomId))}},y.prototype._aggregateNonLiveRelation=function(e){for(let t=0;t<this._timelineSets.length;t++){const n=this._timelineSets[t];n.getFilter()?n.getFilter().filterRoomTimeline([e]).length&&n.aggregateRelations(e):n.aggregateRelations(e)}},y.prototype._handleRemoteEcho=function(e,t){const n=t.getId(),o=e.getId(),r=t.status;p.a.debug(`Got remote echo for event ${n} -> ${o} old status `+r),delete this._txnToEvent[e.getUnsigned().transaction_id],this._pendingEventList&&this.removePendingEvent(n),t.handleRemoteEcho(e.event);for(let e=0;e<this._timelineSets.length;e++){this._timelineSets[e].handleRemoteEcho(t,n,o)}this.emit("Room.localEchoUpdated",t,this,n,r)};const S={};function w(e,t,n){if(!n){const t=e.currentState.getStateEvents("m.room.name","");if(t&&t.getContent()&&t.getContent().name)return t.getContent().name}let o=e.getCanonicalAlias();if(!o){const t=e.getAltAliases();t.length&&(o=t[0])}if(o)return o;const r=e.currentState.getJoinedMemberCount()+e.currentState.getInvitedMemberCount()-1;let i=null;if(e._summaryHeroes)i=e._summaryHeroes.map(t=>{const n=e.getMember(t);return n?n.name:t});else{let n=e.currentState.getMembers().filter(e=>e.userId!==t&&("invite"===e.membership||"join"===e.membership));n.sort((e,t)=>e.userId.localeCompare(t.userId)),n=n.slice(0,5),i=n.map(e=>e.name)}if(r)return C(i,r);if("join"==e.getMyMembership()){const t=e.currentState.getStateEvents("m.room.third_party_invite");if(t&&t.length){return"Inviting "+C(t.map(e=>e.getContent().display_name))}}let a=i;return a.length||(a=e.currentState.getMembers().filter(e=>e.userId!==t&&"invite"!==e.membership&&"join"!==e.membership).map(e=>e.name)),a.length?`Empty room (was ${C(a)})`:"Empty room"}function C(e,t=e.length+1){const n=t-1;if(e.length){if(1===e.length&&n<=1)return e[0];if(2===e.length&&n<=2)return`${e[0]} and ${e[1]}`;return n>1?`${e[0]} and ${n} others`:e[0]+" and 1 other"}return"Empty room"}S[d.a.ENCRYPTING]=[d.a.SENDING,d.a.NOT_SENT],S[d.a.SENDING]=[d.a.ENCRYPTING,d.a.QUEUED,d.a.NOT_SENT,d.a.SENT],S[d.a.QUEUED]=[d.a.SENDING,d.a.CANCELLED],S[d.a.SENT]=[],S[d.a.NOT_SENT]=[d.a.SENDING,d.a.QUEUED,d.a.CANCELLED],S[d.a.CANCELLED]=[],y.prototype.updatePendingEvent=function(e,t,n){if(p.a.log(`setting pendingEvent status to ${t} in ${e.getRoomId()} event ID ${e.getId()} -> ${n}`),t==d.a.SENT&&!n)throw new Error("updatePendingEvent called with status=SENT, but no new event id");if(t==d.a.SENT){if(this.getUnfilteredTimelineSet().eventIdToTimeline(n))return}const o=e.status,r=e.getId();if(!o)throw new Error("updatePendingEventStatus called on an event which is not a local echo.");const i=S[o];if(!i||i.indexOf(t)<0)throw new Error("Invalid EventStatus transition "+o+"->"+t);if(e.setStatus(t),t==d.a.SENT){e.replaceLocalEventId(n);for(let e=0;e<this._timelineSets.length;e++)this._timelineSets[e].replaceEventId(r,n)}else if(t==d.a.CANCELLED){if(this._pendingEventList){const e=this._pendingEventList.findIndex(e=>e.getId()===r);if(-1!==e){const[t]=this._pendingEventList.splice(e,1);t.isRedaction()&&this._revertRedactionLocalEcho(t)}}this.removeEvent(r)}this._savePendingEvents(),this.emit("Room.localEchoUpdated",e,this,r,o)},y.prototype._revertRedactionLocalEcho=function(e){const t=e.event.redacts;if(!t)return;const n=this.getUnfilteredTimelineSet().findEventById(t);n&&(n.unmarkLocallyRedacted(),this.emit("Room.redactionCancelled",e,this),n.isRelation()&&this._aggregateNonLiveRelation(n))},y.prototype.addLiveEvents=function(e,t,n){let o;if(t&&-1===["replace","ignore"].indexOf(t))throw new Error("duplicateStrategy MUST be either 'replace' or 'ignore'");for(o=0;o<this._timelineSets.length;o++){const e=this._timelineSets[o].getLiveTimeline();if(e.getPaginationToken(s.a.FORWARDS))throw new Error("live timeline "+o+" is no longer live - it has a pagination token ("+e.getPaginationToken(s.a.FORWARDS)+")");if(e.getNeighbouringTimeline(s.a.FORWARDS))throw new Error("live timeline "+o+" is no longer live - it has a neighbouring timeline")}for(o=0;o<e.length;o++)this._addLiveEvent(e[o],t,n)},y.prototype.addEphemeralEvents=function(e){for(const t of e)"m.typing"===t.getType()?this.currentState.setTypingEvent(t):"m.receipt"===t.getType()&&this.addReceipt(t)},y.prototype.removeEvents=function(e){for(let t=0;t<e.length;++t)this.removeEvent(e[t])},y.prototype.removeEvent=function(e){let t=!1;for(let n=0;n<this._timelineSets.length;n++){const o=this._timelineSets[n].removeEvent(e);o&&(o.isRedaction()&&this._revertRedactionLocalEcho(o),t=!0)}return t},y.prototype.recalculate=function(){const e=this,t=this.currentState.getStateEvents("m.room.member",this.myUserId);if(t&&"invite"===t.getContent().membership){const n=t.event.invite_room_state||[];l.m(n,(function(t){e.currentState.getStateEvents(t.type,t.state_key)||e.currentState.setStateEvents([new d.b({type:t.type,state_key:t.state_key,content:t.content,event_id:"$fake"+Date.now(),room_id:e.roomId,user_id:e.myUserId})])}))}const n=this.name;this.name=w(this,this.myUserId),this.summary=new h(this.roomId,{title:this.name}),n!==this.name&&this.emit("Room.name",this)},y.prototype.getUsersReadUpTo=function(e){return this.getReceiptsForEvent(e).filter((function(e){return"m.read"===e.type})).map((function(e){return e.userId}))},y.prototype.getEventReadUpTo=function(e,t){let n=this._receipts;return t&&(n=this._realReceipts),void 0===n["m.read"]||void 0===n["m.read"][e]?null:n["m.read"][e].eventId},y.prototype.hasUserReadEvent=function(e,t){const n=this.getEventReadUpTo(e,!1);if(n===t)return!0;if(this.timeline.length&&this.timeline[this.timeline.length-1].getSender()&&this.timeline[this.timeline.length-1].getSender()===e)return!0;for(let e=this.timeline.length-1;e>=0;--e){const o=this.timeline[e];if(o.getId()===t)return!1;if(o.getId()===n)return!0}return!1},y.prototype.getReceiptsForEvent=function(e){return this._receiptCacheByEventId[e.getId()]||[]},y.prototype.addReceipt=function(e,t){void 0===t&&(t=!1),t||this._addReceiptsToStructure(e,this._realReceipts),this._addReceiptsToStructure(e,this._receipts),this._receiptCacheByEventId=this._buildReceiptCache(this._receipts),this.emit("Room.receipt",e,this)},y.prototype._addReceiptsToStructure=function(e,t){const n=this;l.u(e.getContent()).forEach((function(o){l.u(e.getContent()[o]).forEach((function(r){l.u(e.getContent()[o][r]).forEach((function(i){const a=e.getContent()[o][r][i];t[r]||(t[r]={});const s=t[r][i];if(s){const e=n.getUnfilteredTimelineSet().compareEventOrdering(s.eventId,o);if(null!==e&&e>=0)return}else t[r][i]={};t[r][i]={eventId:o,data:a}}))}))}))},y.prototype._buildReceiptCache=function(e){const t={};return l.u(e).forEach((function(n){l.u(e[n]).forEach((function(o){const r=e[n][o];t[r.eventId]||(t[r.eventId]=[]),t[r.eventId].push({userId:o,type:n,data:r.data})}))})),t},y.prototype._addLocalEchoReceipt=function(e,t,n){this.addReceipt(v(e,t,n),!0)},y.prototype.addTags=function(e){this.tags=e.getContent().tags||{},this.emit("Room.tags",e,this)},y.prototype.addAccountData=function(e){for(let t=0;t<e.length;t++){const n=e[t];"m.tag"===n.getType()&&this.addTags(n);const o=this.accountData[n.getType()];this.accountData[n.getType()]=n,this.emit("Room.accountData",n,this,o)}},y.prototype.getAccountData=function(e){return this.accountData[e]},y.prototype.maySendMessage=function(){return"join"===this.getMyMembership()&&this.currentState.maySendEvent("m.room.message",this.myUserId)},y.prototype.canInvite=function(e){let t="join"===this.getMyMembership();const n=this.currentState.getStateEvents(g.a.RoomPowerLevels,""),o=n&&n.getContent(),r=this.getMember(e);return o&&r&&o.invite>r.powerLevel&&(t=!1),t},y.prototype.getJoinRule=function(){return this.currentState.getJoinRule()},y.prototype.getType=function(){const e=this.currentState.getStateEvents("m.room.create","");if(e)return e.getContent()[g.c];p.a.warn("Room "+this.roomId+" does not have an m.room.create event")},y.prototype.isSpaceRoom=function(){return this.getType()===g.d.Space}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i}));function o(e){return a(e,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function r(e){return a(e,"abcdefghijklmnopqrstuvwxyz")}function i(e){return a(e,"ABCDEFGHIJKLMNOPQRSTUVWXYZ")}function a(e,t){let n="";for(let o=0;o<e;++o)n+=t.charAt(Math.floor(Math.random()*t.length));return n}},function(e,t,n){"use strict";t.__esModule=!0;var o,r=n(513),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";class o{constructor(e){const t={},n=this._getOverriddenMethods(this,t);for(const o of Object.keys(n))"function"==typeof n[o]&&(t[o]=e[o],e[o]=n[o])}_getOverriddenMethods(){throw new Error("Not implemented")}}o.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let n=0;n<e.__mixins.length;n++)if(e.__mixins[n].constructor===t)return e.__mixins[n];const o=new t(e,n);return e.__mixins.push(o),o},e.exports=o},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return I})),n.d(t,"b",(function(){return F}));var o=n(121),r=n.n(o),i=n(7),a=n(1006),s=n(302),c=n(1009),l=n(103),d=n(152),u=n(1388),h=n(1010),p=n(131),m=n(1011),g=n(1),f=n(283),_=n(266),b=n(331),v=n(135),y=n(400),E=n(1012),S=n(0),w=n(333),C=n(428),T=n(427),x=n(169),O=n(230),k=n(203),R=n(246),D=n(599);const I=Object(w.c)();function A(e,t,n){const o=[];for(const[r,i]of Object.entries(e))try{const e=N(i,t);e.session_id=r,e.room_id=n,o.push(e)}catch(e){S.a.log("Failed to decrypt megolm session from backup",e)}return o}function N(e,t){return JSON.parse(t.decrypt(e.session_data.ephemeral,e.session_data.mac,e.session_data.ciphertext))}function F(e){e.baseUrl=g.h(e.baseUrl),e.idBaseUrl=g.h(e.idBaseUrl),a.a.call(this,e),this.olmVersion=null,this.reEmitter=new y.a(this),this.usingExternalCrypto=e.usingExternalCrypto,this.store=e.store||new h.a,this.deviceId=e.deviceId||null;const t=e.userId||null;if(this.credentials={userId:t},e.deviceToImport?this.deviceId?S.a.warn("not importing device because device ID is provided to constructor independently of exported data"):this.credentials.userId?S.a.warn("not importing device because user ID is provided to constructor independently of exported data"):e.deviceToImport.deviceId?(this.deviceId=e.deviceToImport.deviceId,this.credentials.userId=e.deviceToImport.userId,this._exportedOlmDeviceToImport=e.deviceToImport.olmDevice):S.a.warn("not importing device because no device ID in exported data"):e.pickleKey&&(this.pickleKey=e.pickleKey),this.scheduler=e.scheduler,this.scheduler){const e=this;this.scheduler.setProcessFunction((async function(t){const n=e.getRoom(t.getRoomId());t.status!==l.a.SENDING&&j(n,t,l.a.SENDING);const o=await U(e,t);return n&&n.updatePendingEvent(t,l.a.SENT,o.event_id),o}))}this.clientRunning=!1;const n=Object(p.g)(this);this._supportsVoip=!1,n?(this._callEventHandler=new m.a(this),this._supportsVoip=!0):this._callEventHandler=null,this._syncingRetry=null,this._syncApi=null,this._peekSync=null,this._isGuest=!1,this._ongoingScrollbacks={},this.timelineSupport=Boolean(e.timelineSupport),this.urlPreviewCache={},this._notifTimelineSet=null,this.unstableClientRelationAggregation=!!e.unstableClientRelationAggregation,this._crypto=null,this._cryptoStore=e.cryptoStore,this._sessionStore=e.sessionStore,this._verificationMethods=e.verificationMethods,this._cryptoCallbacks=e.cryptoCallbacks||{},this._forceTURN=e.forceTURN||!1,this._iceCandidatePoolSize=void 0===e.iceCandidatePoolSize?0:e.iceCandidatePoolSize,this._supportsCallTransfer=e.supportsCallTransfer||!1,this._fallbackICEServerAllowed=e.fallbackICEServerAllowed||!1,this._roomList=new E.a(this._cryptoStore),this._pushProcessor=new O.a(this),this._serverVersionsPromise=null,this._cachedCapabilities=null,this._clientWellKnown=void 0,this._clientWellKnownPromise=void 0,this._turnServers=[],this._turnServersExpiry=0,this._checkTurnServersIntervalID=null,this.on("Event.decrypted",e=>{const t=e.getPushActions(),n=this._pushProcessor.actionsForEvent(e);e.setPushActions(n);const o=this.getRoom(e.getRoomId());if(!o)return;const r=o.getUnreadNotificationCount("highlight"),i=!(!t||!t.tweaks)&&!!t.tweaks.highlight,a=!(!n||!n.tweaks)&&!!n.tweaks.highlight;if((i!==a||r>0)&&!o.hasUserReadEvent(this.getUserId(),e.getId())){let e=r;a&&!i&&e++,!a&&i&&e--,o.setUnreadNotificationCount("highlight",e);o.getUnreadNotificationCount("total")<e&&o.setUnreadNotificationCount("total",e)}}),this.on("Room.receipt",(e,t)=>{if(t&&this.isRoomEncrypted(t.roomId)){const n=e.getContent();if(!(Object.keys(n).filter(e=>Object.keys(n[e]["m.read"]).includes(this.getUserId())).length>0))return;const o=20,r=t.getLiveTimeline().getEvents();let i=0;for(let e=r.length-1;e>=0;e--){if(e===r.length-o)return;const n=r[e];if(t.hasUserReadEvent(this.getUserId(),n.getId()))break;const a=this.getPushActionsForEvent(n);i+=a.tweaks&&a.tweaks.highlight?1:0}t.setUnreadNotificationCount("highlight",i)}})}async function M(e,t,n,o,r,i){if(!e._crypto)throw new Error("End-to-End encryption disabled");await e._crypto.setDeviceVerification(t,n,o,r,i)}function P(e,t){for(const n of t)e.prototype[n]=function(...e){if(!this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto[n](...e)}}function L(e,t,n,o){return Promise.resolve().then((function(){const o=function(e,t,n){if(t.isEncrypted())return null;if(!e.isRoomEncrypted(t.getRoomId()))return null;if(!e._crypto&&e.usingExternalCrypto)return null;if("m.reaction"===t.getType())return null;if(!e._crypto)throw new Error("This room is configured to use encryption, but your client does not support encryption.");return e._crypto.encryptEvent(t,n)}(e,n,t);return o?(j(t,n,l.a.ENCRYPTING),o.then(()=>{j(t,n,l.a.SENDING)})):null})).then((function(){let o;return e.scheduler&&(o=e.scheduler.queueEvent(n),o&&e.scheduler.getQueueForEvent(n).length>1&&j(t,n,l.a.QUEUED)),o||(o=U(e,n),t&&(o=o.then(e=>(t.updatePendingEvent(n,l.a.SENT,e.event_id),e)))),o})).then((function(e){return o&&o(null,e),e}),(function(e){S.a.error("Error sending event",e.stack||e);try{n.error=e,j(t,n,l.a.NOT_SENT),e.event=n,o&&o(e)}catch(t){S.a.error("Exception in error handler!",t.stack||e)}throw e}))}function j(e,t,n){e?e.updatePendingEvent(t,n):t.setStatus(n)}function U(e,t){let n=t.getTxnId();n||(n=e.makeTxnId(),t.setTxnId(n));const o={$roomId:t.getRoomId(),$eventType:t.getWireType(),$stateKey:t.getStateKey(),$txnId:n};let r;if(t.isState()){let e="/rooms/$roomId/state/$eventType";t.getStateKey()&&t.getStateKey().length>0&&(e="/rooms/$roomId/state/$eventType/$stateKey"),r=g.g(e,o)}else if(t.isRedaction()){const e="/rooms/$roomId/redact/$redactsEventId/$txnId";r=g.g(e,Object.assign({$redactsEventId:t.event.redacts},o))}else r=g.g("/rooms/$roomId/send/$eventType/$txnId",o);return e._http.authedRequest(void 0,"PUT",r,void 0,t.getWireContent()).then(e=>(S.a.log(`Event sent to ${t.getRoomId()} with event id ${e.event_id}`),e))}function B(e,t,n,o,r,i){g.r(r)&&(i=r,r=void 0);const a=g.g("/rooms/$room_id/$membership",{$room_id:t,$membership:o});return e._http.authedRequest(i,"POST",a,void 0,{user_id:n,reason:r})}function q(e,t,n){e&&e(n),t(n)}function G(e,t,n){e&&e(null,n),t(n)}function V(e,t){const n=Boolean(t&&t.preventReEmit);return function(t){const o=new l.b(t);return o.isEncrypted()&&(n||e.reEmitter.reEmit(o,["Event.decrypted"]),o.attemptDecryption(e._crypto)),n||e.reEmitter.reEmit(o,["Event.replaced"]),o}}g.p(F,i.EventEmitter),g.j(F.prototype,a.a.prototype),F.prototype.rehydrateDevice=async function(){if(this._crypto)throw new Error("Cannot rehydrate device after crypto is initialized");if(!this._cryptoCallbacks.getDehydrationKey)return;const t=await this.getDehydratedDevice();if(!t)return;if(!t.device_data||!t.device_id)return void S.a.info("no dehydrated device found");const n=new e.Olm.Account;try{const e=t.device_data;if(e.algorithm!==D.a)return void S.a.warn("Wrong algorithm for dehydrated device");S.a.log("unpickling dehydrated device");const o=await this._cryptoCallbacks.getDehydrationKey(e,t=>{n.unpickle(new Uint8Array(t),e.account)});n.unpickle(o,e.account),S.a.log("unpickled device");if(!0===(await this._http.authedRequest(void 0,"POST","/dehydrated_device/claim",void 0,{device_id:t.device_id},{prefix:"/_matrix/client/unstable/org.matrix.msc2697.v2"})).success){this.deviceId=t.device_id,S.a.info("using dehydrated device");const e=this.pickleKey||"DEFAULT_KEY";return this._exportedOlmDeviceToImport={pickledAccount:n.pickle(e),sessions:[],pickleKey:e},n.free(),this.deviceId}return n.free(),void S.a.info("not using dehydrated device")}catch(e){n.free(),S.a.warn("could not unpickle",e)}},F.prototype.getDehydratedDevice=async function(){try{return await this._http.authedRequest(void 0,"GET","/dehydrated_device",void 0,void 0,{prefix:"/_matrix/client/unstable/org.matrix.msc2697.v2"})}catch(e){return void S.a.info("could not get dehydrated device",e.toString())}},F.prototype.setDehydrationKey=async function(e,t={},n){if(this._crypto)return await this._crypto._dehydrationManager.setKeyAndQueueDehydration(e,t,n);S.a.warn("not dehydrating device if crypto is not enabled")},F.prototype.createDehydratedDevice=async function(e,t={},n){if(this._crypto)return await this._crypto._dehydrationManager.setKey(e,t,n),await this._crypto._dehydrationManager.dehydrateDevice();S.a.warn("not dehydrating device if crypto is not enabled")},F.prototype.exportDevice=async function(){if(this._crypto)return{userId:this.credentials.userId,deviceId:this.deviceId,olmDevice:await this._crypto._olmDevice.export()};S.a.warn("not exporting device if crypto is not enabled")},F.prototype.clearStores=function(){if(this._clientRunning)throw new Error("Cannot clear stores while client is running");const e=[];return e.push(this.store.deleteAllData()),this._cryptoStore&&e.push(this._cryptoStore.deleteAllData()),Promise.all(e)},F.prototype.getUserId=function(){return this.credentials&&this.credentials.userId?this.credentials.userId:null},F.prototype.getDomain=function(){return this.credentials&&this.credentials.userId?this.credentials.userId.replace(/^.*?:/,""):null},F.prototype.getUserIdLocalpart=function(){return this.credentials&&this.credentials.userId?this.credentials.userId.split(":")[0].substring(1):null},F.prototype.getDeviceId=function(){return this.deviceId},F.prototype.supportsVoip=function(){return this._supportsVoip},F.prototype.setForceTURN=function(e){this._forceTURN=e},F.prototype.setSupportsCallTransfer=function(e){this._supportsCallTransfer=e},F.prototype.getSyncState=function(){return this._syncApi?this._syncApi.getSyncState():null},F.prototype.getSyncStateData=function(){return this._syncApi?this._syncApi.getSyncStateData():null},F.prototype.isInitialSyncComplete=function(){const e=this.getSyncState();return!!e&&("PREPARED"===e||"SYNCING"===e)},F.prototype.isGuest=function(){return this._isGuest},F.prototype.getScheduler=function(){return this.scheduler},F.prototype.setGuest=function(e){this._isGuest=e},F.prototype.retryImmediately=function(){return this._syncApi.retryImmediately()},F.prototype.getNotifTimelineSet=function(){return this._notifTimelineSet},F.prototype.setNotifTimelineSet=function(e){this._notifTimelineSet=e},F.prototype.getCapabilities=function(e=!1){const t=(new Date).getTime();return this._cachedCapabilities&&!e&&t<this._cachedCapabilities.expiration?(S.a.log("Returning cached capabilities"),Promise.resolve(this._cachedCapabilities.capabilities)):this._http.authedRequest(void 0,"GET","/capabilities").catch(e=>(S.a.error(e),null)).then(e=>{e||(e={});const n=e.capabilities||{},o=Object.keys(n).length?216e5:6e4+5e3*Math.random();return this._cachedCapabilities={capabilities:n,expiration:t+o},S.a.log("Caching capabilities: ",n),n})},F.prototype.initCrypto=async function(){if(!Object(w.c)())throw new Error("End-to-end encryption not supported in this js-sdk build: did you remember to load the olm library?");if(this._crypto)return void S.a.warn("Attempt to re-initialise e2e encryption on MatrixClient");if(!this._sessionStore)throw new Error("Cannot enable encryption: no sessionStore provided");if(!this._cryptoStore)throw new Error("Cannot enable encryption: no cryptoStore provided");S.a.log("Crypto: Starting up crypto store..."),await this._cryptoStore.startup(),S.a.log("Crypto: initialising roomlist..."),await this._roomList.init();const e=this.getUserId();if(null===e)throw new Error("Cannot enable encryption on MatrixClient with unknown userId: ensure userId is passed in createClient().");if(null===this.deviceId)throw new Error("Cannot enable encryption on MatrixClient with unknown deviceId: ensure deviceId is passed in createClient().");const t=new w.a(this,this._sessionStore,e,this.deviceId,this.store,this._cryptoStore,this._roomList,this._verificationMethods);this.reEmitter.reEmit(t,["crypto.keyBackupFailed","crypto.keyBackupSessionsRemaining","crypto.roomKeyRequest","crypto.roomKeyRequestCancellation","crypto.warning","crypto.devicesUpdated","crypto.willUpdateDevices","deviceVerificationChanged","userTrustStatusChanged","crossSigning.keysChanged"]),S.a.log("Crypto: initialising crypto object..."),await t.init({exportedOlmDevice:this._exportedOlmDeviceToImport,pickleKey:this.pickleKey}),delete this._exportedOlmDeviceToImport,this.olmVersion=w.a.getOlmVersion(),t.registerEventHandlers(this),this._crypto=t},F.prototype.isCryptoEnabled=function(){return null!==this._crypto},F.prototype.getDeviceEd25519Key=function(){return this._crypto?this._crypto.getDeviceEd25519Key():null},F.prototype.getDeviceCurve25519Key=function(){return this._crypto?this._crypto.getDeviceCurve25519Key():null},F.prototype.uploadKeys=function(){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.uploadDeviceKeys()},F.prototype.downloadKeys=function(e,t){return null===this._crypto?Promise.reject(new Error("End-to-end encryption disabled")):this._crypto.downloadKeys(e,t)},F.prototype.getStoredDevicesForUser=function(e){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.getStoredDevicesForUser(e)||[]},F.prototype.getStoredDevice=function(e,t){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.getStoredDevice(e,t)||null},F.prototype.setDeviceVerified=function(e,t,n){void 0===n&&(n=!0);const o=M(this,e,t,n,null);return e==this.credentials.userId&&this._crypto.checkKeyBackup(),o},F.prototype.setDeviceBlocked=function(e,t,n){return void 0===n&&(n=!0),M(this,e,t,null,n)},F.prototype.setDeviceKnown=function(e,t,n){return void 0===n&&(n=!0),M(this,e,t,null,null,n)},F.prototype.requestVerificationDM=function(e,t){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.requestVerificationDM(e,t)},F.prototype.findVerificationRequestDMInProgress=function(e){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.findVerificationRequestDMInProgress(e)},F.prototype.getVerificationRequestsToDeviceInProgress=function(e){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.getVerificationRequestsToDeviceInProgress(e)},F.prototype.requestVerification=function(e,t){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.requestVerification(e,t)},F.prototype.beginKeyVerification=function(e,t,n){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.beginKeyVerification(e,t,n)},F.prototype.setGlobalBlacklistUnverifiedDevices=function(e){if(null===this._crypto)throw new Error("End-to-end encryption disabled");this._crypto.setGlobalBlacklistUnverifiedDevices(e)},F.prototype.getGlobalBlacklistUnverifiedDevices=function(){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.getGlobalBlacklistUnverifiedDevices()},F.prototype.setGlobalErrorOnUnknownDevices=function(e){if(null===this._crypto)throw new Error("End-to-end encryption disabled");this._crypto.setGlobalErrorOnUnknownDevices(e)},F.prototype.getGlobalErrorOnUnknownDevices=function(){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.getGlobalErrorOnUnknownDevices()},P(F,["getCrossSigningId","getStoredCrossSigningForUser","checkUserTrust","checkDeviceTrust","checkOwnCrossSigningTrust","checkCrossSigningPrivateKey","legacyDeviceVerification","prepareToEncrypt","isCrossSigningReady","bootstrapCrossSigning","getCryptoTrustCrossSignedDevices","setCryptoTrustCrossSignedDevices","countSessionsNeedingBackup"]),P(F,["getEventEncryptionInfo","createRecoveryKeyFromPassphrase","isSecretStorageReady","bootstrapSecretStorage","addSecretStorageKey","hasSecretStorageKey","storeSecret","getSecret","isSecretStored","requestSecret","getDefaultSecretStorageKeyId","setDefaultSecretStorageKeyId","checkSecretStorageKey","checkSecretStoragePrivateKey"]),F.prototype.getEventSenderDeviceInfo=async function(e){return this._crypto?this._crypto.getEventSenderDeviceInfo(e):null},F.prototype.isEventSenderVerified=async function(e){const t=await this.getEventSenderDeviceInfo(e);return!!t&&t.isVerified()},F.prototype.cancelAndResendEventRoomKeyRequest=function(e){return e.cancelAndResendKeyRequest(this._crypto,this.getUserId())},F.prototype.setRoomEncryption=function(e,t){if(!this._crypto)throw new Error("End-to-End encryption disabled");return this._crypto.setRoomEncryption(e,t)},F.prototype.isRoomEncrypted=function(e){const t=this.getRoom(e);if(!t)return!1;return!!t.currentState.getStateEvents("m.room.encryption","")||this._roomList.isRoomEncrypted(e)},F.prototype.forceDiscardSession=function(e){if(!this._crypto)throw new Error("End-to-End encryption disabled");this._crypto.forceDiscardSession(e)},F.prototype.exportRoomKeys=function(){return this._crypto?this._crypto.exportRoomKeys():Promise.reject(new Error("End-to-end encryption disabled"))},F.prototype.importRoomKeys=function(e,t){if(!this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.importRoomKeys(e,t)},F.prototype.checkKeyBackup=function(){return this._crypto.checkKeyBackup()},F.prototype.getKeyBackupVersion=function(){return this._http.authedRequest(void 0,"GET","/room_keys/version",void 0,void 0,{prefix:f.i}).then(e=>{if(e.algorithm!==v.MEGOLM_BACKUP_ALGORITHM){const t="Unknown backup algorithm: "+e.algorithm;return Promise.reject(t)}if("object"==typeof e.auth_data&&e.auth_data.public_key)return e;{const e="Invalid backup data returned";return Promise.reject(e)}}).catch(e=>{if("M_NOT_FOUND"===e.errcode)return null;throw e})},F.prototype.isKeyBackupTrusted=function(e){return this._crypto.isKeyBackupTrusted(e)},F.prototype.getKeyBackupEnabled=function(){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto._checkedForBackup?Boolean(this._crypto.backupKey):null},F.prototype.enableKeyBackup=function(t){if(null===this._crypto)throw new Error("End-to-end encryption disabled");this._crypto.backupInfo=t,this._crypto.backupKey&&this._crypto.backupKey.free(),this._crypto.backupKey=new e.Olm.PkEncryption,this._crypto.backupKey.set_recipient_key(t.auth_data.public_key),this.emit("crypto.keyBackupStatus",!0),this._crypto.scheduleKeyBackupSend()},F.prototype.disableKeyBackup=function(){if(null===this._crypto)throw new Error("End-to-end encryption disabled");this._crypto.backupInfo=null,this._crypto.backupKey&&this._crypto.backupKey.free(),this._crypto.backupKey=null,this.emit("crypto.keyBackupStatus",!1)},F.prototype.prepareKeyBackupVersion=async function(e,{secureSecretStorage:t=!1}={}){if(null===this._crypto)throw new Error("End-to-end encryption disabled");const{keyInfo:n,encodedPrivateKey:o,privateKey:r}=await this.createRecoveryKeyFromPassphrase(e);t&&(await this.storeSecret("m.megolm_backup.v1",Object(v.encodeBase64)(r)),S.a.info("Key backup private key stored in secret storage"));const i={public_key:n.pubkey};return n.passphrase&&(i.private_key_salt=n.passphrase.salt,i.private_key_iterations=n.passphrase.iterations),{algorithm:v.MEGOLM_BACKUP_ALGORITHM,auth_data:i,recovery_key:o}},F.prototype.isKeyBackupKeyStored=async function(){return this.isSecretStored("m.megolm_backup.v1",!1)},F.prototype.createKeyBackupVersion=async function(e){if(null===this._crypto)throw new Error("End-to-end encryption disabled");const t={algorithm:e.algorithm,auth_data:e.auth_data};await this._crypto._signObject(t.auth_data),this._cryptoCallbacks.getCrossSigningKey&&this._crypto._crossSigningInfo.getId()&&await this._crypto._crossSigningInfo.signObject(t.auth_data,"master");const n=await this._http.authedRequest(void 0,"POST","/room_keys/version",void 0,t,{prefix:f.i});return await this.checkKeyBackup(),this.getKeyBackupEnabled()||S.a.error("Key backup not usable even though we just created it"),n},F.prototype.deleteKeyBackupVersion=function(e){if(null===this._crypto)throw new Error("End-to-end encryption disabled");this._crypto.backupInfo&&this._crypto.backupInfo.version===e&&this.disableKeyBackup();const t=g.g("/room_keys/version/$version",{$version:e});return this._http.authedRequest(void 0,"DELETE",t,void 0,void 0,{prefix:f.i})},F.prototype._makeKeyBackupPath=function(e,t,n){let o;o=void 0!==t?g.g("/room_keys/keys/$roomId/$sessionId",{$roomId:e,$sessionId:t}):void 0!==e?g.g("/room_keys/keys/$roomId",{$roomId:e}):"/room_keys/keys";return{path:o,queryData:void 0===n?void 0:{version:n}}},F.prototype.sendKeyBackup=function(e,t,n,o){if(null===this._crypto)throw new Error("End-to-end encryption disabled");const r=this._makeKeyBackupPath(e,t,n);return this._http.authedRequest(void 0,"PUT",r.path,r.queryData,o,{prefix:f.i})},F.prototype.scheduleAllGroupSessionsForBackup=async function(){if(null===this._crypto)throw new Error("End-to-end encryption disabled");await this._crypto.scheduleAllGroupSessionsForBackup()},F.prototype.flagAllGroupSessionsForBackup=function(){if(null===this._crypto)throw new Error("End-to-end encryption disabled");return this._crypto.flagAllGroupSessionsForBackup()},F.prototype.isValidRecoveryKey=function(e){try{return Object(C.a)(e),!0}catch(e){return!1}},F.prototype.keyBackupKeyFromPassword=function(e,t){return Object(T.b)(t.auth_data,e)},F.prototype.keyBackupKeyFromRecoveryKey=function(e){return Object(C.a)(e)},F.RESTORE_BACKUP_ERROR_BAD_KEY="RESTORE_BACKUP_ERROR_BAD_KEY",F.prototype.restoreKeyBackupWithPassword=async function(e,t,n,o,r){const i=await Object(T.b)(o.auth_data,e);return this._restoreKeyBackup(i,t,n,o,r)},F.prototype.restoreKeyBackupWithSecretStorage=async function(e,t,n,o){const r=await this.getSecret("m.megolm_backup.v1"),i=Object(w.b)(r);if(i){const[e]=await this._crypto.getSecretStorageKey();await this.storeSecret("m.megolm_backup.v1",i,[e])}const a=Object(v.decodeBase64)(i||r);return this._restoreKeyBackup(a,t,n,e,o)},F.prototype.restoreKeyBackupWithRecoveryKey=function(e,t,n,o,r){const i=Object(C.a)(e);return this._restoreKeyBackup(i,t,n,o,r)},F.prototype.restoreKeyBackupWithCache=async function(e,t,n,o){const r=await this._crypto.getSessionBackupPrivateKey();if(!r)throw new Error("Couldn't get key");return this._restoreKeyBackup(r,e,t,n,o)},F.prototype._restoreKeyBackup=function(t,n,o,r,{cacheCompleteCallback:i,progressCallback:a}={}){if(null===this._crypto)throw new Error("End-to-end encryption disabled");let s=0,c=[];const l=this._makeKeyBackupPath(n,o,r.version),d=new e.Olm.PkDecryption;let u;try{u=d.init_with_private_key(t)}catch(e){throw d.free(),e}return u!==r.auth_data.public_key?Promise.reject({errcode:F.RESTORE_BACKUP_ERROR_BAD_KEY}):(this._crypto.storeSessionBackupPrivateKey(t).catch(e=>{S.a.warn("Error caching session backup key:",e)}).then(i),a&&a({stage:"fetch"}),this._http.authedRequest(void 0,"GET",l.path,l.queryData,void 0,{prefix:f.i}).then(e=>{if(e.rooms)for(const[t,n]of Object.entries(e.rooms)){if(!n.sessions)continue;s+=Object.keys(n.sessions).length;const e=A(n.sessions,d,t);for(const n of e)n.room_id=t,c.push(n)}else if(e.sessions)s=Object.keys(e.sessions).length,c=A(e.sessions,d,n);else{s=1;try{const t=N(e,d);t.room_id=n,t.session_id=o,c.push(t)}catch(e){S.a.log("Failed to decrypt megolm session from backup",e)}}return this.importRoomKeys(c,{progressCallback:a,untrusted:!0,source:"backup"})}).then(()=>this._crypto.setTrustedBackupPubKey(u)).then(()=>({total:s,imported:c.length})).finally(()=>{d.free()}))},F.prototype.deleteKeysFromBackup=function(e,t,n){if(null===this._crypto)throw new Error("End-to-end encryption disabled");const o=this._makeKeyBackupPath(e,t,n);return this._http.authedRequest(void 0,"DELETE",o.path,o.queryData,void 0,{prefix:f.i})},F.prototype.sendSharedHistoryKeys=async function(e,t){if(null===this._crypto)throw new Error("End-to-end encryption disabled");const n=this._roomList.getRoomEncryption(e);if(!n)return void S.a.error("Unknown room. Not sharing decryption keys");const o=await this._crypto.downloadKeys(t),r={};for(const[e,t]of Object.entries(o))r[e]=Object.values(t);const i=this._crypto._getRoomDecryptor(e,n.algorithm);i.sendSharedHistoryInboundSessions?await i.sendSharedHistoryInboundSessions(r):S.a.warning("Algorithm does not support sharing previous keys",n.algorithm)},F.prototype.getGroup=function(e){return this.store.getGroup(e)},F.prototype.getGroups=function(){return this.store.getGroups()},F.prototype.getMediaConfig=function(e){return this._http.authedRequest(e,"GET","/config",void 0,void 0,{prefix:f.g})},F.prototype.getRoom=function(e){return this.store.getRoom(e)},F.prototype.getRooms=function(){return this.store.getRooms()},F.prototype.getVisibleRooms=function(){const e=this.store.getRooms(),t=new Set;for(const n of e){const e=n.currentState.getStateEvents("m.room.create","");if(e){const n=e.getContent().predecessor;n&&n.room_id&&t.add(n.room_id)}}return e.filter(e=>!e.currentState.getStateEvents("m.room.tombstone","")||!t.has(e.roomId))},F.prototype.getUser=function(e){return this.store.getUser(e)},F.prototype.getUsers=function(){return this.store.getUsers()},F.prototype.setAccountData=function(e,t,n){const o=g.g("/user/$userId/account_data/$type",{$userId:this.credentials.userId,$type:e}),r=Object(f.j)(5,()=>this._http.authedRequest(void 0,"PUT",o,void 0,t));return n&&r.then(e=>n(null,e),n),r},F.prototype.getAccountData=function(e){return this.store.getAccountData(e)},F.prototype.getAccountDataFromServer=async function(e){if(this.isInitialSyncComplete()){const t=this.store.getAccountData(e);return t?t.getContent():null}const t=g.g("/user/$userId/account_data/$type",{$userId:this.credentials.userId,$type:e});try{return await this._http.authedRequest(void 0,"GET",t,void 0)}catch(e){if(e.data&&"M_NOT_FOUND"===e.data.errcode)return null;throw e}},F.prototype.getIgnoredUsers=function(){const e=this.getAccountData("m.ignored_user_list");return e&&e.getContent()&&e.getContent().ignored_users?Object.keys(e.getContent().ignored_users):[]},F.prototype.setIgnoredUsers=function(e,t){const n={ignored_users:{}};return e.map(e=>n.ignored_users[e]={}),this.setAccountData("m.ignored_user_list",n,t)},F.prototype.isUserIgnored=function(e){return-1!==this.getIgnoredUsers().indexOf(e)},F.prototype.joinRoom=function(e,t,n){if(g.r(t))throw new Error("Expected 'opts' object, got function.");void 0===(t=t||{}).syncRoom&&(t.syncRoom=!0);const o=this.getRoom(e);if(o&&o.hasMembershipState(this.credentials.userId,"join"))return Promise.resolve(o);let r=Promise.resolve();t.inviteSignUrl&&(r=this._http.requestOtherUrl(void 0,"POST",t.inviteSignUrl,{mxid:this.credentials.userId}));const i={};t.viaServers&&(i.server_name=t.viaServers);const a={qsStringifyOptions:{arrayFormat:"repeat"}},s=this;return new Promise((o,l)=>{r.then((function(t){const n={};t&&(n.third_party_signed=t);const o=g.g("/join/$roomid",{$roomid:e});return s._http.authedRequest(void 0,"POST",o,i,n,a)})).then((function(e){const n=e.room_id,o=new c.a(s,s._clientOpts).createRoom(n);return t.syncRoom,Promise.resolve(o)})).then((function(e){G(n,o,e)}),(function(e){q(n,l,e)}))})},F.prototype.resendEvent=function(e,t){return j(t,e,l.a.SENDING),L(this,t,e)},F.prototype.cancelPendingEvent=function(e){if([l.a.QUEUED,l.a.NOT_SENT].indexOf(e.status)<0)throw new Error("cannot cancel an event with status "+e.status);this.scheduler&&this.scheduler.removeEventFromQueue(e);j(this.getRoom(e.getRoomId()),e,l.a.CANCELLED)},F.prototype.setRoomName=function(e,t,n){return this.sendStateEvent(e,"m.room.name",{name:t},void 0,n)},F.prototype.setRoomTopic=function(e,t,n){return this.sendStateEvent(e,"m.room.topic",{topic:t},void 0,n)},F.prototype.getRoomTags=function(e,t){const n=g.g("/user/$userId/rooms/$roomId/tags/",{$userId:this.credentials.userId,$roomId:e});return this._http.authedRequest(t,"GET",n,void 0)},F.prototype.setRoomTag=function(e,t,n,o){const r=g.g("/user/$userId/rooms/$roomId/tags/$tag",{$userId:this.credentials.userId,$roomId:e,$tag:t});return this._http.authedRequest(o,"PUT",r,void 0,n)},F.prototype.deleteRoomTag=function(e,t,n){const o=g.g("/user/$userId/rooms/$roomId/tags/$tag",{$userId:this.credentials.userId,$roomId:e,$tag:t});return this._http.authedRequest(n,"DELETE",o,void 0,void 0)},F.prototype.setRoomAccountData=function(e,t,n,o){const r=g.g("/user/$userId/rooms/$roomId/account_data/$type",{$userId:this.credentials.userId,$roomId:e,$type:t});return this._http.authedRequest(o,"PUT",r,void 0,n)},F.prototype.setPowerLevel=function(e,t,n,o,r){let i={users:{}};o&&"m.room.power_levels"===o.getType()&&(i=g.d(o.getContent())),i.users[t]=n;const a=g.g("/rooms/$roomId/state/m.room.power_levels",{$roomId:e});return this._http.authedRequest(r,"PUT",a,void 0,i)},F.prototype.sendEvent=function(e,t,n,o,r){return this._sendCompleteEvent(e,{type:t,content:n},o,r)},F.prototype._sendCompleteEvent=function(e,t,n,o){g.r(n)&&(o=n,n=void 0),n||(n=this.makeTxnId());const r=new l.b(Object.assign(t,{event_id:"~"+e+":"+n,user_id:this.credentials.userId,sender:this.credentials.userId,room_id:e,origin_server_ts:(new Date).getTime()})),i=this.getRoom(e),a=r.getAssociatedId();if(a&&a.startsWith("~")){const e=i.getPendingEvents().find(e=>e.getId()===a);e.once("Event.localEventIdReplaced",()=>{r.updateAssociatedId(e.getId())})}const s=r.getType();return S.a.log(`sendEvent of type ${s} in ${e} with txnId ${n}`),r.setTxnId(n),r.setStatus(l.a.SENDING),i&&i.addPendingEvent(r,n),r.status===l.a.NOT_SENT?Promise.reject(new Error("Event blocked by other events not yet sent")):L(this,i,r,o)},F.prototype.redactEvent=function(e,t,n,o){const r=("object"==typeof o?o:{}).reason,i="function"==typeof o?o:void 0;return this._sendCompleteEvent(e,{type:"m.room.redaction",content:{reason:r},redacts:t},n,i)},F.prototype.sendMessage=function(e,t,n,o){return g.r(n)&&(o=n,n=void 0),this.sendEvent(e,"m.room.message",t,n,o)},F.prototype.sendTextMessage=function(e,t,n,o){const r=b.makeTextMessage(t);return this.sendMessage(e,r,n,o)},F.prototype.sendNotice=function(e,t,n,o){const r=b.makeNotice(t);return this.sendMessage(e,r,n,o)},F.prototype.sendEmoteMessage=function(e,t,n,o){const r=b.makeEmoteMessage(t);return this.sendMessage(e,r,n,o)},F.prototype.sendImageMessage=function(e,t,n,o,r){g.r(o)&&(r=o,o=void 0),o||(o="Image");const i={msgtype:"m.image",url:t,info:n,body:o};return this.sendMessage(e,i,r)},F.prototype.sendStickerMessage=function(e,t,n,o,r){g.r(o)&&(r=o,o=void 0),o||(o="Sticker");const i={url:t,info:n,body:o};return this.sendEvent(e,"m.sticker",i,r,void 0)},F.prototype.sendHtmlMessage=function(e,t,n,o){const r=b.makeHtmlMessage(t,n);return this.sendMessage(e,r,o)},F.prototype.sendHtmlNotice=function(e,t,n,o){const r=b.makeHtmlNotice(t,n);return this.sendMessage(e,r,o)},F.prototype.sendHtmlEmote=function(e,t,n,o){const r=b.makeHtmlEmote(t,n);return this.sendMessage(e,r,o)},F.prototype.sendReceipt=function(e,t,n,o){if("function"==typeof n&&(o=n,n={}),this.isGuest())return Promise.resolve({});const r=g.g("/rooms/$roomId/receipt/$receiptType/$eventId",{$roomId:e.getRoomId(),$receiptType:t,$eventId:e.getId()}),i=this._http.authedRequest(o,"POST",r,void 0,n||{}),a=this.getRoom(e.getRoomId());return a&&a._addLocalEchoReceipt(this.credentials.userId,e,t),i},F.prototype.sendReadReceipt=async function(e,t,n){"function"==typeof t&&(n=t,t={}),t||(t={});const o=e.getId(),r=this.getRoom(e.getRoomId());if(r&&r.hasPendingEvent(o))throw new Error(`Cannot set read receipt to a pending event (${o})`);const i={"m.hidden":Boolean(t.hidden)};return this.sendReceipt(e,"m.read",i,n)},F.prototype.setRoomReadMarkers=async function(e,t,n,o){const r=this.getRoom(e);if(r&&r.hasPendingEvent(t))throw new Error(`Cannot set read marker to a pending event (${t})`);let i;if(n){if(i=n.getId(),r&&r.hasPendingEvent(i))throw new Error(`Cannot set read receipt to a pending event (${i})`);r&&r._addLocalEchoReceipt(this.credentials.userId,n,"m.read")}return this.setRoomReadMarkersHttpRequest(e,t,i,o)},F.prototype.getUrlPreview=function(e,t,n){const o=(t=6e4*Math.floor(t/6e4))+"_"+e,r=this.urlPreviewCache[o];if(r)return n&&r.then(n).catch(n),r;const i=this._http.authedRequest(n,"GET","/preview_url",{url:e,ts:t},void 0,{prefix:f.g});return this.urlPreviewCache[o]=i,i},F.prototype.sendTyping=function(e,t,n,o){if(this.isGuest())return Promise.resolve({});const r=g.g("/rooms/$roomId/typing/$userId",{$roomId:e,$userId:this.credentials.userId}),i={typing:t};return t&&(i.timeout=n||2e4),this._http.authedRequest(o,"PUT",r,void 0,i)},F.prototype.getRoomUpgradeHistory=function(e,t=!1){let n=this.getRoom(e);if(!n)return[];const o=[n];let r=n.currentState.getStateEvents("m.room.create","");for(;r;){S.a.log("Looking at "+r.getId());const e=r.getContent().predecessor;if(!e||!e.room_id)break;{S.a.log("Looking at predecessor "+e.room_id);const n=this.getRoom(e.room_id);if(!n)break;if(t){const e=n.currentState.getStateEvents("m.room.tombstone","");if(!e||e.getContent().replacement_room!==n.roomId)break}o.splice(0,0,n),r=n.currentState.getStateEvents("m.room.create","")}}let i=n.currentState.getStateEvents("m.room.tombstone","");for(;i;){const e=this.getRoom(i.getContent().replacement_room);if(!e)break;if(e.roomId===n.roomId)break;if(t){if(r=e.currentState.getStateEvents("m.room.create",""),!r||!r.getContent().predecessor)break;if(r.getContent().predecessor.room_id!==n.roomId)break}o.push(e);if(new Set(o.map(e=>e.roomId)).size<o.length)return o.slice(0,o.length-1);n=e,i=n.currentState.getStateEvents("m.room.tombstone","")}return o},F.prototype.invite=function(e,t,n,o){return B(this,e,t,"invite",o,n)},F.prototype.inviteByEmail=function(e,t,n){return this.inviteByThreePid(e,"email",t,n)},F.prototype.inviteByThreePid=async function(e,t,n,o){const r=g.g("/rooms/$roomId/invite",{$roomId:e}),i=this.getIdentityServerUrl(!0);if(!i)return Promise.reject(new f.c({error:"No supplied identity server URL",errcode:"ORG.MATRIX.JSSDK_MISSING_PARAM"}));const a={id_server:i,medium:t,address:n};if(this.identityServer&&this.identityServer.getAccessToken&&await this.doesServerAcceptIdentityAccessToken()){const e=await this.identityServer.getAccessToken();e&&(a.id_access_token=e)}return this._http.authedRequest(o,"POST",r,void 0,a)},F.prototype.leave=function(e,t){return B(this,e,void 0,"leave",void 0,t)},F.prototype.leaveRoomChain=function(e,t=!0){const n=this.getRoomUpgradeHistory(e);let o=n;if(!t){o=[];for(const t of n)if(o.push(t),t.roomId===e)break}const r={},i=[],a=e=>this.leave(e).then(()=>{r[e]=null}).catch(t=>(r[e]=t,null));for(const e of o)i.push(a(e.roomId));return Promise.all(i).then(()=>r)},F.prototype.ban=function(e,t,n,o){return B(this,e,t,"ban",n,o)},F.prototype.forget=function(e,t,n){void 0===t&&(t=!0);const o=B(this,e,void 0,"forget",void 0,n);if(!t)return o;const r=this;return o.then((function(t){return r.store.removeRoom(e),r.emit("deleteRoom",e),t}))},F.prototype.unban=function(e,t,n){const o=g.g("/rooms/$roomId/unban",{$roomId:e}),r={user_id:t};return this._http.authedRequest(n,"POST",o,void 0,r)},F.prototype.kick=function(e,t,n,o){return function(e,t,n,o,r,i){g.r(r)&&(i=r,r=void 0);const a=g.g("/rooms/$roomId/state/m.room.member/$userId",{$roomId:t,$userId:n});return e._http.authedRequest(i,"PUT",a,void 0,{membership:o,reason:r})}(this,e,t,"leave",n,o)},F.prototype.getPushActionsForEvent=function(e){return e.getPushActions()||e.setPushActions(this._pushProcessor.actionsForEvent(e)),e.getPushActions()},F.prototype.setProfileInfo=function(e,t,n){const o=g.g("/profile/$userId/$info",{$userId:this.credentials.userId,$info:e});return this._http.authedRequest(n,"PUT",o,void 0,t)},F.prototype.setDisplayName=async function(e,t){const n=await this.setProfileInfo("displayname",{displayname:e},t),o=this.getUser(this.getUserId());return o&&(o.displayName=e,o.emit("User.displayName",o.events.presence,o)),n},F.prototype.setAvatarUrl=async function(e,t){const n=await this.setProfileInfo("avatar_url",{avatar_url:e},t),o=this.getUser(this.getUserId());return o&&(o.avatarUrl=e,o.emit("User.avatarUrl",o.events.presence,o)),n},F.prototype.mxcUrlToHttp=function(e,t,n,o,r){return Object(_.a)(this.baseUrl,e,t,n,o,r)},F.prototype._unstable_setStatusMessage=function(e){const t="im.vector.user_status";return Promise.all(this.getRooms().map(n=>{const o="join"===n.getMyMembership(),r=2===n.getInvitedAndJoinedMemberCount();if(!o||!r)return Promise.resolve();return n.currentState.mayClientSendStateEvent(t,this)?this.sendStateEvent(n.roomId,t,{status:e},this.getUserId()):Promise.resolve()}))},F.prototype.setPresence=function(e,t){const n=g.g("/presence/$userId/status",{$userId:this.credentials.userId});"string"==typeof e&&(e={presence:e});if(-1==["offline","online","unavailable"].indexOf(e.presence))throw new Error("Bad presence value: "+e.presence);return this._http.authedRequest(t,"PUT",n,void 0,e)},F.prototype.getPresence=function(e,t){const n=g.g("/presence/$userId/status",{$userId:e});return this._http.authedRequest(t,"GET",n,void 0,void 0)},F.prototype.scrollback=function(e,t,n){g.r(t)&&(n=t,t=void 0),t=t||30;let o=0,r=this._ongoingScrollbacks[e.roomId]||{};if(r.promise)return r.promise;if(r.errorTs){const e=Date.now()-r.errorTs;o=Math.max(3e3-e,0)}if(null===e.oldState.paginationToken)return Promise.resolve(e);const i=this.store.scrollback(e,t).length;if(i===t)return Promise.resolve(e);t-=i;const a=this,s=new Promise((r,i)=>{Object(g.B)(o).then((function(){return a._createMessagesRequest(e.roomId,e.oldState.paginationToken,t,"b")})).then((function(t){const o=g.v(t.chunk,V(a));if(t.state){const n=g.v(t.state,V(a));e.currentState.setUnknownStateEvents(n)}e.addEventsToTimeline(o,!0,e.getLiveTimeline()),e.oldState.paginationToken=t.end,0===t.chunk.length&&(e.oldState.paginationToken=null),a.store.storeEvents(e,o,t.end,!0),a._ongoingScrollbacks[e.roomId]=null,G(n,r,e)}),(function(t){a._ongoingScrollbacks[e.roomId]={errorTs:Date.now()},q(n,i,t)}))});return r={promise:s,errorTs:null},this._ongoingScrollbacks[e.roomId]=r,s},F.prototype.getEventTimeline=function(e,t){if(!this.timelineSupport)throw new Error("timeline support is disabled. Set the 'timelineSupport' parameter to true when creating MatrixClient to enable it.");if(e.getTimelineForEvent(t))return Promise.resolve(e.getTimelineForEvent(t));const n=g.g("/rooms/$roomId/context/$eventId",{$roomId:e.room.roomId,$eventId:t});let o=void 0;this._clientOpts.lazyLoadMembers&&(o={filter:JSON.stringify(s.a.LAZY_LOADING_MESSAGES_FILTER)});const r=this;return r._http.authedRequest(void 0,"GET",n,o).then((function(n){if(!n.event)throw new Error("'event' not in '/context' result - homeserver too old?");if(e.getTimelineForEvent(t))return e.getTimelineForEvent(t);n.events_after.reverse();const o=n.events_after.concat([n.event]).concat(n.events_before),i=g.v(o,r.getEventMapper());let a=e.getTimelineForEvent(i[0].getId());if(a){const e=g.v(n.state,r.getEventMapper());a.getState(d.a.BACKWARDS).setUnknownStateEvents(e)}else a=e.addTimeline(),a.initialiseState(g.v(n.state,r.getEventMapper())),a.getState(d.a.FORWARDS).paginationToken=n.end;e.addEventsToTimeline(i,!0,a,n.start);return e.getTimelineForEvent(t)||a}))},F.prototype._createMessagesRequest=function(e,t,n,o,r){const i=g.g("/rooms/$roomId/messages",{$roomId:e});void 0===n&&(n=30);const a={from:t,limit:n,dir:o};let c=null;return this._clientOpts.lazyLoadMembers&&(c=Object.assign({},s.a.LAZY_LOADING_MESSAGES_FILTER)),r&&(c=c||{},Object.assign(c,r.getRoomTimelineFilterComponent())),c&&(a.filter=JSON.stringify(c)),this._http.authedRequest(void 0,"GET",i,a)},F.prototype.paginateEventTimeline=function(e,t){const n=e.getTimelineSet()===this._notifTimelineSet,o=(t=t||{}).backwards||!1;if(n&&!o)throw new Error("paginateNotifTimeline can only paginate backwards");const r=o?d.a.BACKWARDS:d.a.FORWARDS,i=e.getPaginationToken(r);if(!i)return Promise.resolve(!1);const a=e._paginationRequests[r];if(a)return a;let s,c,l;const u=this;if(n)s="/notifications",c={limit:"limit"in t?t.limit:30,only:"highlight"},i&&"end"!==i&&(c.from=i),l=this._http.authedRequest(void 0,"GET","/notifications",c,void 0).then((function(t){const n=t.next_token,i=[];for(let e=0;e<t.notifications.length;e++){const n=t.notifications[e],o=u.getEventMapper()(n.event);o.setPushActions(O.a.actionListToActionsObject(n.actions)),o.event.room_id=n.room_id,i[e]=o}return e.getTimelineSet().addEventsToTimeline(i,o,e,n),o&&!t.next_token&&e.setPaginationToken(null,r),!!t.next_token})).finally((function(){e._paginationRequests[r]=null})),e._paginationRequests[r]=l;else{if(!this.getRoom(e.getRoomId()))throw new Error("Unknown room "+e.getRoomId());l=this._createMessagesRequest(e.getRoomId(),i,t.limit,r,e.getFilter()),l.then((function(t){if(t.state){const n=e.getState(r),o=g.v(t.state,u.getEventMapper());n.setUnknownStateEvents(o)}const n=t.end,i=g.v(t.chunk,u.getEventMapper());return e.getTimelineSet().addEventsToTimeline(i,o,e,n),o&&t.end==t.start&&e.setPaginationToken(null,r),t.end!=t.start})).finally((function(){e._paginationRequests[r]=null})),e._paginationRequests[r]=l}return l},F.prototype.resetNotifTimelineSet=function(){this._notifTimelineSet&&this._notifTimelineSet.resetLiveTimeline("end",null)},F.prototype.peekInRoom=function(e){return this._peekSync&&this._peekSync.stopPeeking(),this._peekSync=new c.a(this,this._clientOpts),this._peekSync.peek(e)},F.prototype.stopPeeking=function(){this._peekSync&&(this._peekSync.stopPeeking(),this._peekSync=null)},F.prototype.setGuestAccess=function(e,t){const n=this.sendStateEvent(e,"m.room.guest_access",{guest_access:t.allowJoin?"can_join":"forbidden"});let o=Promise.resolve();return t.allowRead&&(o=this.sendStateEvent(e,"m.room.history_visibility",{history_visibility:"world_readable"})),Promise.all([o,n])},F.prototype.requestRegisterEmailToken=function(e,t,n,o){return this._requestTokenFromEndpoint("/register/email/requestToken",{email:e,client_secret:t,send_attempt:n,next_link:o})},F.prototype.requestRegisterMsisdnToken=function(e,t,n,o,r){return this._requestTokenFromEndpoint("/register/msisdn/requestToken",{country:e,phone_number:t,client_secret:n,send_attempt:o,next_link:r})},F.prototype.requestAdd3pidEmailToken=function(e,t,n,o){return this._requestTokenFromEndpoint("/account/3pid/email/requestToken",{email:e,client_secret:t,send_attempt:n,next_link:o})},F.prototype.requestAdd3pidMsisdnToken=function(e,t,n,o,r){return this._requestTokenFromEndpoint("/account/3pid/msisdn/requestToken",{country:e,phone_number:t,client_secret:n,send_attempt:o,next_link:r})},F.prototype.requestPasswordEmailToken=function(e,t,n,o){return this._requestTokenFromEndpoint("/account/password/email/requestToken",{email:e,client_secret:t,send_attempt:n,next_link:o})},F.prototype.requestPasswordMsisdnToken=function(e,t,n,o,r){return this._requestTokenFromEndpoint("/account/password/msisdn/requestToken",{country:e,phone_number:t,client_secret:n,send_attempt:o,next_link:r})},F.prototype._requestTokenFromEndpoint=async function(e,t){const n=Object.assign({},t);if(!await this.doesServerSupportSeparateAddAndBind()&&this.idBaseUrl){const e=r.a.parse(this.idBaseUrl);if(!e.host)throw new Error("Invalid ID server URL: "+this.idBaseUrl);if(n.id_server=e.host,this.identityServer&&this.identityServer.getAccessToken&&await this.doesServerAcceptIdentityAccessToken()){const e=await this.identityServer.getAccessToken();e&&(n.id_access_token=e)}}return this._http.request(void 0,"POST",e,void 0,n)},F.prototype.getRoomPushRule=function(e,t){if(!this.pushRules)throw new Error("SyncApi.sync() must be done before accessing to push rules.");for(let n=0;n<this.pushRules[e].room.length;n++){const o=this.pushRules[e].room[n];if(o.rule_id===t)return o}},F.prototype.setRoomMutePushRule=function(e,t,n){const o=this;let r,i;const a=this.getRoomPushRule(e,t);if(a&&0<=a.actions.indexOf("dont_notify")&&(i=!0),n?a?i||(r=g.e(),this.deletePushRule(e,"room",a.rule_id).then((function(){o.addPushRule(e,"room",t,{actions:["dont_notify"]}).then((function(){r.resolve()}),(function(e){r.reject(e)}))}),(function(e){r.reject(e)})),r=r.promise):r=this.addPushRule(e,"room",t,{actions:["dont_notify"]}):i&&(r=this.deletePushRule(e,"room",a.rule_id)),r)return new Promise((e,t)=>{r.then((function(){o.getPushRules().then((function(t){o.pushRules=t,e()}),(function(e){t(e)}))}),(function(e){o.getPushRules().then((function(n){o.pushRules=n,t(e)}),(function(n){t(e)}))}))})},F.prototype.searchMessageText=function(e,t){const n={search_term:e.query};return"keys"in e&&(n.keys=e.keys),this.search({body:{search_categories:{room_events:n}}},t)},F.prototype.searchRoomEvents=function(e){const t={search_categories:{room_events:{search_term:e.term,filter:e.filter,order_by:"recent",event_context:{before_limit:1,after_limit:1,include_profile:!0}}}},n={_query:t,results:[],highlights:[]};return this.search({body:t}).then(this._processRoomEventsSearch.bind(this,n))},F.prototype.backPaginateRoomEventsSearch=function(e){if(!e.next_batch)return Promise.reject(new Error("Cannot backpaginate event search any further"));if(e.pendingRequest)return e.pendingRequest;const t={body:e._query,next_batch:e.next_batch},n=this.search(t).then(this._processRoomEventsSearch.bind(this,e)).finally((function(){e.pendingRequest=null}));return e.pendingRequest=n,n},F.prototype._processRoomEventsSearch=function(e,t){const n=t.search_categories.room_events;e.count=n.count,e.next_batch=n.next_batch;const o={};n.highlights.forEach((function(e){o[e]=1})),e.highlights.forEach((function(e){o[e]=1})),e.highlights=Object.keys(o);for(let t=0;t<n.results.length;t++){const o=u.a.fromJson(n.results[t],this.getEventMapper());e.results.push(o)}return e},F.prototype.syncLeftRooms=function(){if(this._syncedLeftRooms)return Promise.resolve([]);if(this._syncLeftRoomsPromise)return this._syncLeftRoomsPromise;const e=this,t=new c.a(this,this._clientOpts);return this._syncLeftRoomsPromise=t.syncLeftRooms(),this._syncLeftRoomsPromise.then((function(t){S.a.log("Marking success of sync left room request"),e._syncedLeftRooms=!0})).finally((function(){e._syncLeftRoomsPromise=null})),this._syncLeftRoomsPromise},F.prototype.createFilter=function(e){const t=this,n=g.g("/user/$userId/filter",{$userId:this.credentials.userId});return this._http.authedRequest(void 0,"POST",n,void 0,e).then((function(n){const o=s.a.fromJson(t.credentials.userId,n.filter_id,e);return t.store.storeFilter(o),o}))},F.prototype.getFilter=function(e,t,n){if(n){const n=this.store.getFilter(e,t);if(n)return Promise.resolve(n)}const o=this,r=g.g("/user/$userId/filter/$filterId",{$userId:e,$filterId:t});return this._http.authedRequest(void 0,"GET",r,void 0,void 0).then((function(n){const r=s.a.fromJson(e,t,n);return o.store.storeFilter(r),r}))},F.prototype.getOrCreateFilter=async function(e,t){const n=this.store.getFilterIdByName(e);let o=void 0;if(n){try{const e=await this.getFilter(this.credentials.userId,n,!0);if(e){const r=e.getDefinition(),i=t.getDefinition();g.c(r,i)&&(o=n)}}catch(e){if("M_UNKNOWN"!==e.errcode&&"M_NOT_FOUND"!==e.errcode)throw e}o||this.store.setFilterIdByName(e,void 0)}if(o)return o;const r=await this.createFilter(t.getDefinition());return this.store.setFilterIdByName(e,r.filterId),r.filterId},F.prototype.getOpenIdToken=function(){const e=g.g("/user/$userId/openid/request_token",{$userId:this.credentials.userId});return this._http.authedRequest(void 0,"POST",e,void 0,{})},F.prototype.turnServer=function(e){return this._http.authedRequest(e,"GET","/voip/turnServer")},F.prototype.getTurnServers=function(){return this._turnServers||[]},F.prototype.getTurnServersExpiry=function(){return this._turnServersExpiry},F.prototype._checkTurnServers=async function(){if(!this._supportsVoip)return;let t=!1;const n=this._turnServersExpiry-Date.now();if(n>6e5)S.a.debug("TURN creds are valid for another "+n+" ms: not fetching new ones."),t=!0;else{S.a.debug("Fetching new TURN credentials");try{const e=await this.turnServer();if(e.uris){S.a.log("Got TURN URIs: "+e.uris+" refresh in "+e.ttl+" secs");const n={urls:e.uris,username:e.username,credential:e.password};this._turnServers=[n],this._turnServersExpiry=Date.now()+1e3*e.ttl,t=!0}}catch(t){S.a.error("Failed to get TURN URIs",t),403===t.httpStatus&&(S.a.info("TURN access unavailable for this account: stopping credentials checks"),null!==this._checkTurnServersIntervalID&&e.clearInterval(this._checkTurnServersIntervalID),this._checkTurnServersIntervalID=null)}}return t},F.prototype.setFallbackICEServerAllowed=function(e){this._fallbackICEServerAllowed=e},F.prototype.isFallbackICEServerAllowed=function(){return this._fallbackICEServerAllowed},F.prototype.isSynapseAdministrator=function(){const e=g.g("/_synapse/admin/v1/users/$userId/admin",{$userId:this.getUserId()});return this._http.authedRequest(void 0,"GET",e,void 0,void 0,{prefix:""}).then(e=>e.admin)},F.prototype.whoisSynapseUser=function(e){const t=g.g("/_synapse/admin/v1/whois/$userId",{$userId:e});return this._http.authedRequest(void 0,"GET",t,void 0,void 0,{prefix:""})},F.prototype.deactivateSynapseUser=function(e){const t=g.g("/_synapse/admin/v1/deactivate/$userId",{$userId:e});return this._http.authedRequest(void 0,"POST",t,void 0,void 0,{prefix:""})},F.prototype.startClient=async function(e){if(this.clientRunning)return;this.clientRunning=!0,"number"==typeof e&&(e={initialSyncLimit:e});const t=this.getUserId();t&&this.store.storeUser(new k.a(t)),this._crypto&&(this._crypto.uploadDeviceKeys(),this._crypto.start()),this._supportsVoip&&(this._checkTurnServersIntervalID=setInterval(()=>{this._checkTurnServers()},6e5),this._checkTurnServers()),this._syncApi&&(S.a.error("Still have sync object whilst not running: stopping old one"),this._syncApi.stop()),(e=Object.assign({},e)).crypto=this._crypto,e.canResetEntireTimeline=e=>!!this._canResetTimelineCallback&&this._canResetTimelineCallback(e),this._clientOpts=e,this._syncApi=new c.a(this,e),this._syncApi.sync(),void 0!==e.clientWellKnownPollPeriod&&(this._clientWellKnownIntervalID=setInterval(()=>{this._fetchClientWellKnown()},1e3*e.clientWellKnownPollPeriod),this._fetchClientWellKnown())},F.prototype._fetchClientWellKnown=async function(){this._clientWellKnownPromise=R.a.getRawClientConfig(this.getDomain()),this._clientWellKnown=await this._clientWellKnownPromise,this.emit("WellKnown.client",this._clientWellKnown)},F.prototype.getClientWellKnown=function(){return this._clientWellKnown},F.prototype.waitForClientWellKnown=function(){return this._clientWellKnownPromise},F.prototype._storeClientOptions=function(){const e=["boolean","string","number"],t=Object.entries(this._clientOpts).filter(([t,n])=>e.includes(typeof n)).reduce((e,[t,n])=>(e[t]=n,e),{});return this.store.storeClientOptions(t)},F.prototype._unstable_getSharedRooms=async function(e){if(!await this.doesServerSupportUnstableFeature("uk.half-shot.msc2666"))throw Error("Server does not support shared_rooms API");const t=g.g("/uk.half-shot.msc2666/user/shared_rooms/$userId",{$userId:e});return(await this._http.authedRequest(void 0,"GET",t,void 0,void 0,{prefix:f.i})).joined},F.prototype.stopClient=function(){S.a.log("stopping MatrixClient"),this.clientRunning=!1,this._syncApi&&(this._syncApi.stop(),this._syncApi=null),this._crypto&&this._crypto.stop(),this._peekSync&&this._peekSync.stopPeeking(),this._callEventHandler&&(this._callEventHandler.stop(),this._callEventHandler=null),e.clearInterval(this._checkTurnServersIntervalID),void 0!==this._clientWellKnownIntervalID&&e.clearInterval(this._clientWellKnownIntervalID)},F.prototype.getVersions=function(){return this._serverVersionsPromise||(this._serverVersionsPromise=this._http.request(void 0,"GET","/_matrix/client/versions",void 0,void 0,{prefix:""}).catch(e=>{throw this._serverVersionsPromise=null,e})),this._serverVersionsPromise},F.prototype.isVersionSupported=async function(e){const{versions:t}=await this.getVersions();return t&&t.includes(e)},F.prototype.doesServerSupportLazyLoading=async function(){const e=await this.getVersions();if(!e)return!1;const t=e.versions,n=e.unstable_features;return t&&t.includes("r0.5.0")||n&&n["m.lazy_load_members"]},F.prototype.doesServerRequireIdServerParam=async function(){const e=await this.getVersions();if(!e)return!0;const t=e.versions;if(t&&t.includes("r0.6.0"))return!1;const n=e.unstable_features;return!n||(void 0===n["m.require_identity_server"]||n["m.require_identity_server"])},F.prototype.doesServerAcceptIdentityAccessToken=async function(){const e=await this.getVersions();if(!e)return!1;const t=e.versions,n=e.unstable_features;return t&&t.includes("r0.6.0")||n&&n["m.id_access_token"]},F.prototype.doesServerSupportSeparateAddAndBind=async function(){const e=await this.getVersions();if(!e)return!1;const t=e.versions,n=e.unstable_features;return t&&t.includes("r0.6.0")||n&&n["m.separate_add_and_bind"]},F.prototype.doesServerSupportUnstableFeature=async function(e){const t=await this.getVersions();if(!t)return!1;const n=t.unstable_features;return n&&!!n[e]},F.prototype.doesServerForceEncryptionForPreset=async function(e){const t=await this.getVersions();if(!t)return!1;const n=t.unstable_features;return n&&!!n["io.element.e2ee_forced."+e]},F.prototype.hasLazyLoadMembersEnabled=function(){return!!this._clientOpts.lazyLoadMembers},F.prototype.setCanResetTimelineCallback=function(e){this._canResetTimelineCallback=e},F.prototype.getCanResetTimelineCallback=function(){return this._canResetTimelineCallback},F.prototype.relations=async function(e,t,n,o,r={}){const i=function(e,t,n){return"m.reaction"===n?n:e.isRoomEncrypted(t)?"m.room.encrypted":n}(this,e,o),a=await this.fetchRelations(e,t,n,i,r),s=this.getEventMapper();let c;a.original_event&&(c=s(a.original_event));let l=a.chunk.map(s);if("m.room.encrypted"===i){const e=c?l.concat(c):l;await Promise.all(e.map(e=>new Promise(t=>e.once("Event.decrypted",t)))),l=l.filter(e=>e.getType()===o)}return c&&"m.replace"===n&&(l=l.filter(e=>e.getSender()===c.getSender())),{originalEvent:c,events:l,nextBatch:a.next_batch}},F.prototype.getEventMapper=function(e){return V(this,e)},F.prototype.getCrossSigningCacheCallbacks=function(){return this._crypto&&this._crypto._crossSigningInfo.getCacheCallbacks()},F.prototype.generateClientSecret=function(){return Object(x.b)(32)}}).call(this,n(6))},function(e,t,n){"use strict";n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return b})),n.d(t,"d",(function(){return v}));var o=n(83),r=n.n(o),i=n(90),a=n(214),s=n(138),c=n(342),l=n(89),d=n(505),u=n(98),h=n(117),p=n(115);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const f="io.element.widgets.layout";let _;!function(e){e.Top="top",e.Right="right"}(_||(_={}));const b=3;class v extends d.a{constructor(){super(l.a),r()(this,"byRoom",{}),r()(this,"pinnedRef",void 0),r()(this,"layoutRef",void 0),r()(this,"updateAllRooms",()=>{this.byRoom={};for(const e of this.matrixClient.getVisibleRooms())this.recalculateRoom(e)}),r()(this,"updateFromWidgetStore",e=>{if(e){const t=this.matrixClient.getRoom(e);t&&this.recalculateRoom(t)}else this.updateAllRooms()}),r()(this,"updateRoomFromState",e=>{if(e.getType()!==f)return;const t=this.matrixClient.getRoom(e.getRoomId());t&&this.recalculateRoom(t)}),r()(this,"updateFromSettings",(e,t)=>{if(t){const e=this.matrixClient.getRoom(t);e&&this.recalculateRoom(e)}else this.updateAllRooms()})}static get instance(){return v.internalInstance||(v.internalInstance=new v),v.internalInstance}static emissionForRoom(e){return"update_"+e.roomId}emitFor(e){this.emit(v.emissionForRoom(e))}async onReady(){this.updateAllRooms(),this.matrixClient.on("RoomState.events",this.updateRoomFromState),this.pinnedRef=i.b.watchSetting("Widgets.pinned",null,this.updateFromSettings),this.layoutRef=i.b.watchSetting("Widgets.layout",null,this.updateFromSettings),a.a.instance.on(p.b,this.updateFromWidgetStore)}async onNotReady(){this.byRoom={},i.b.unwatchSetting(this.pinnedRef),i.b.unwatchSetting(this.layoutRef),a.a.instance.off(p.b,this.updateFromWidgetStore)}recalculateRoom(e){const t=a.a.instance.getApps(e.roomId);if(null==t||!t.length)return this.byRoom[e.roomId]={},void this.emitFor(e);const n=JSON.stringify(this.byRoom[e.roomId]),o=e.currentState.getStateEvents(f,""),r=i.b.getValue("Widgets.pinned",e.roomId);let l=i.b.getValue("Widgets.layout",e.roomId);o&&l&&l.overrides!==o.getId()&&(l=null);const d=o?o.getContent():null,u=[],h=[];for(const e of t){var p,m,g,v,y;const t=null==d||null===(p=d.widgets)||void 0===p||null===(m=p[e.id])||void 0===m?void 0:m.container,n=null===(g=l)||void 0===g||null===(v=g.widgets)||void 0===v||null===(y=v[e.id])||void 0===y?void 0:y.container,o=!(null==r||!r[e.id]),i=s.a.JITSI.matches(e.type)?_.Top:_.Right;n===_.Right?h.push(e):n===_.Top||t===_.Top||o&&!t?u.push(e):(i===_.Top?u:h).push(e)}const E=u.slice(b);h.push(...E),u.sort((e,t)=>{var n,o,r,i,a,u;const h=null==d||null===(n=d.widgets)||void 0===n?void 0:n[e.id],p=null==d||null===(o=d.widgets)||void 0===o?void 0:o[t.id],m=null===(r=l)||void 0===r||null===(i=r.widgets)||void 0===i?void 0:i[e.id],g=null===(a=l)||void 0===a||null===(u=a.widgets)||void 0===u?void 0:u[t.id],f=s.a.JITSI.matches(e.type)?Number.MIN_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,_=s.a.JITSI.matches(t.type)?Number.MIN_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,b=Object(c.b)(null==m?void 0:m.index,Object(c.b)(null==h?void 0:h.index,f)),v=Object(c.b)(null==g?void 0:g.index,Object(c.b)(null==p?void 0:p.index,_));return b===v?e.id.localeCompare(t.id):b-v});const S=[];let w=null,C=!0;for(let e=0;e<u.length;e++){var T,x,O;const t=u[e],n=null==d||null===(T=d.widgets)||void 0===T?void 0:T[t.id],o=null===(x=l)||void 0===x||null===(O=x.widgets)||void 0===O?void 0:O[t.id];if(Number.isFinite(null==o?void 0:o.width)||Number.isFinite(null==n?void 0:n.width)){const e=(null==o?void 0:o.width)||(null==n?void 0:n.width),t=Object(c.a)(e,10,100);S.push(t),C=!1}else S.push(100);if(null!=n&&n.height||null!=o&&o.height){const e=Object(c.b)(null==n?void 0:n.height,2),t=Object(c.b)(null==o?void 0:o.height,e);w=Math.max(w,Object(c.a)(t,2,100))}}if(C)for(let e=0;e<S.length;e++)S[e]=100/S.length;else{const e=Object(c.e)(...S)-100;if(e<0)for(let t=0;t<S.length;t++)S[t]+=Math.abs(e)/S.length;else if(e>0){for(let t=0;t<S.length;t++)S[t]=Object(c.a)(S[t]-e/S.length,10,100);const t=Object(c.e)(...S)-100;if(t>0){const e=S.map((e,t)=>[t,e]).filter(e=>e[1]>10).map(e=>e[0]);for(const n of e)S[n]-=t/e.length}}}this.byRoom[e.roomId]={},u.length&&(this.byRoom[e.roomId][_.Top]={ordered:u,distributions:S,height:w}),h.length&&(this.byRoom[e.roomId][_.Right]={ordered:h});JSON.stringify(this.byRoom[e.roomId])!==n&&this.emitFor(e)}getContainerWidgets(e,t){var n,o;return(null===(n=this.byRoom[e.roomId])||void 0===n||null===(o=n[t])||void 0===o?void 0:o.ordered)||[]}isInContainer(e,t,n){return this.getContainerWidgets(e,n).some(e=>e.id===t.id)}canAddToContainer(e,t){return this.getContainerWidgets(e,t).length<b}getResizerDistributions(e,t){var n,o;let r=null===(n=this.byRoom[e.roomId])||void 0===n||null===(o=n[t])||void 0===o?void 0:o.distributions;return!r||r.length<2?[]:(2===r.length&&(r=[r[0]]),3===r.length&&(r=[r[0],r[2]]),r.map(e=>e.toFixed(1)+"%"))}setResizerDistributions(e,t,n){if(t!==_.Top)return;const o=n.map(e=>Number(Number(e.substring(0,e.length-1)).toFixed(1))),r=this.getContainerWidgets(e,t),i=100-Object(c.e)(...o);2===o.length&&o.splice(1,0,i),1===o.length&&o.push(i);const a={};r.forEach((n,r)=>{var i,s;a[n.id]={container:t,width:o[r],index:r,height:(null===(i=this.byRoom[e.roomId])||void 0===i||null===(s=i[t])||void 0===s?void 0:s.height)||2}}),this.updateUserLayout(e,a)}getContainerHeight(e,t){var n,o;return null===(n=this.byRoom[e.roomId])||void 0===n||null===(o=n[t])||void 0===o?void 0:o.height}setContainerHeight(e,t,n){var o,r;const i=this.getContainerWidgets(e,t),a=null===(o=this.byRoom[e.roomId])||void 0===o||null===(r=o[t])||void 0===r?void 0:r.distributions,s={};i.forEach((e,o)=>{s[e.id]={container:t,width:a[o],index:o,height:n}}),this.updateUserLayout(e,s)}moveWithinContainer(e,t,n,o){var r,i,a,s;const l=Object(h.b)(this.getContainerWidgets(e,t)),d=l.findIndex(e=>e.id===n.id);if(d<0)return;l.splice(d,1);const u=Object(c.a)(d+o,0,l.length);l.splice(u,0,n);const p=null===(r=this.byRoom[e.roomId])||void 0===r||null===(i=r[t])||void 0===i?void 0:i.distributions,m=null===(a=this.byRoom[e.roomId])||void 0===a||null===(s=a[t])||void 0===s?void 0:s.height,g={};l.forEach((e,n)=>{g[e.id]={container:t,width:p[n],index:n,height:m}}),this.updateUserLayout(e,g)}moveToContainer(e,t,n){this.getAllWidgets(e).some(([e])=>e.id===t.id)&&this.updateUserLayout(e,{[t.id]:{container:n}})}canCopyLayoutToRoom(e){return!!this.matrixClient&&e.currentState.maySendStateEvent(f,this.matrixClient.getUserId())}copyLayoutToRoom(e){const t=this.getAllWidgets(e),n={widgets:{}};for(const[s,c]of t)if(n.widgets[s.id]={container:c},c===_.Top){var o,r,i,a;const t=this.getContainerWidgets(e,c).findIndex(e=>e.id===s.id),l=null===(o=this.byRoom[e.roomId])||void 0===o||null===(r=o[c])||void 0===r?void 0:r.distributions,d=null===(i=this.byRoom[e.roomId])||void 0===i||null===(a=i[c])||void 0===a?void 0:a.height;n.widgets[s.id]=g(g({},n.widgets[s.id]),{},{height:d?Math.round(d):null,width:l[t]?Math.round(l[t]):null,index:t})}this.matrixClient.sendStateEvent(e.roomId,f,n,"")}getAllWidgets(e){const t=this.byRoom[e.roomId];if(!t)return[];const n=[];for(const e of Object.keys(t)){const o=t[e].ordered;for(const t of o)n.push([t,e])}return n}updateUserLayout(e,t){const n=this.getAllWidgets(e);for(const[i,c]of n){var o,r;const n=this.getContainerWidgets(e,c).findIndex(e=>e.id===i.id),l=null===(o=this.byRoom[e.roomId])||void 0===o||null===(r=o[c])||void 0===r?void 0:r.distributions;var a,s;if(!t[i.id])t[i.id]={container:c,index:n,height:null===(a=this.byRoom[e.roomId])||void 0===a||null===(s=a[c])||void 0===s?void 0:s.height,width:null==l?void 0:l[n]}}const c=e.currentState.getStateEvents(f,"");i.b.setValue("Widgets.layout",e.roomId,u.a.ROOM_ACCOUNT,{overrides:null==c?void 0:c.getId(),widgets:t}).catch(()=>this.recalculateRoom(e)),this.recalculateRoom(e)}}r()(v,"internalInstance",void 0),window.mxWidgetLayoutStore=v.instance},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o,r,i,a=n(95),s=n.n(a),c=n(100),l=n.n(c),d=n(83),u=n.n(d),h=n(82),p=n.n(h),m=n(89),g=n(96),f=n(161),_=n(85),b=n(99);let v=Object(_.a)("views.avatars.MemberAvatar")((i=r=class e extends p.a.Component{constructor(t){super(t),this.state=e.getState(t)}static getDerivedStateFromProps(t){return e.getState(t)}static getState(e){var t;if(null!==(t=e.member)&&void 0!==t&&t.name){let t=null;return e.member.getMxcAvatarUrl()&&(t=Object(b.b)(e.member.getMxcAvatarUrl()).getThumbnailOfSourceHttp(Math.floor(e.width*window.devicePixelRatio),Math.floor(e.height*window.devicePixelRatio),e.resizeMethod)),{name:e.member.name,title:e.title||e.member.userId,imageUrl:t}}if(e.fallbackUserId)return{name:e.fallbackUserId,title:e.fallbackUserId};console.error("MemberAvatar called somehow with null member or fallbackUserId")}render(){let e=this.props,{member:t,fallbackUserId:n,onClick:o,viewUserOnClick:r}=e,i=l()(e,["member","fallbackUserId","onClick","viewUserOnClick"]);const a=t?t.userId:n;return r&&(o=()=>{m.a.dispatch({action:g.a.ViewUser,member:this.props.member})}),p.a.createElement(f.a,s()({},i,{name:this.state.name,title:this.state.title,idName:a,url:this.state.imageUrl,onClick:o}))}},u()(r,"defaultProps",{width:40,height:40,resizeMethod:"crop",viewUserOnClick:!1}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(292),p=n(85);let m=Object(p.a)("views.elements.LabelledToggleSwitch")((i=r=class extends l.a.Component{render(){let e=l.a.createElement("span",{className:"mx_SettingsFlag_label"},this.props.label),t=l.a.createElement(h.a,{checked:this.props.value,disabled:this.props.disabled,onChange:this.props.onChange,"aria-label":this.props.label});if(this.props.toggleInFront){const n=e;e=t,t=n}const n="mx_SettingsFlag "+(this.props.className||"");return l.a.createElement("div",{className:n},e,t)}},s()(r,"propTypes",{value:u.a.bool.isRequired,onChange:u.a.func.isRequired,label:u.a.string.isRequired,disabled:u.a.bool,toggleInFront:u.a.bool,className:u.a.string}),o=i))||o},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return h})),n.d(t,"f",(function(){return g}));var o=n(83),r=n.n(o),i=n(101),a=n(90);const s={getMessageComposerBindings:()=>{const e=[{action:c.SelectPrevSendHistory,keyCombo:{key:i.a.ARROW_UP,altKey:!0,ctrlKey:!0}},{action:c.SelectNextSendHistory,keyCombo:{key:i.a.ARROW_DOWN,altKey:!0,ctrlKey:!0}},{action:c.EditPrevMessage,keyCombo:{key:i.a.ARROW_UP}},{action:c.EditNextMessage,keyCombo:{key:i.a.ARROW_DOWN}},{action:c.CancelEditing,keyCombo:{key:i.a.ESCAPE}},{action:c.FormatBold,keyCombo:{key:i.a.B,ctrlOrCmd:!0}},{action:c.FormatItalics,keyCombo:{key:i.a.I,ctrlOrCmd:!0}},{action:c.FormatQuote,keyCombo:{key:i.a.GREATER_THAN,ctrlOrCmd:!0,shiftKey:!0}},{action:c.EditUndo,keyCombo:{key:i.a.Z,ctrlOrCmd:!0}},{action:c.MoveCursorToStart,keyCombo:{key:i.a.HOME,ctrlOrCmd:!0}},{action:c.MoveCursorToEnd,keyCombo:{key:i.a.END,ctrlOrCmd:!0}}];return i.b?e.push({action:c.EditRedo,keyCombo:{key:i.a.Z,ctrlOrCmd:!0,shiftKey:!0}}):e.push({action:c.EditRedo,keyCombo:{key:i.a.Y,ctrlOrCmd:!0}}),a.b.getValue("MessageComposerInput.ctrlEnterToSend")?(e.push({action:c.Send,keyCombo:{key:i.a.ENTER,ctrlOrCmd:!0}}),e.push({action:c.NewLine,keyCombo:{key:i.a.ENTER}})):(e.push({action:c.Send,keyCombo:{key:i.a.ENTER}}),e.push({action:c.NewLine,keyCombo:{key:i.a.ENTER,shiftKey:!0}}),i.b&&e.push({action:c.NewLine,keyCombo:{key:i.a.ENTER,altKey:!0}})),e},getAutocompleteBindings:()=>[{action:l.CompleteOrNextSelection,keyCombo:{key:i.a.TAB}},{action:l.CompleteOrNextSelection,keyCombo:{key:i.a.TAB,ctrlKey:!0}},{action:l.CompleteOrPrevSelection,keyCombo:{key:i.a.TAB,shiftKey:!0}},{action:l.CompleteOrPrevSelection,keyCombo:{key:i.a.TAB,ctrlKey:!0,shiftKey:!0}},{action:l.Cancel,keyCombo:{key:i.a.ESCAPE}},{action:l.PrevSelection,keyCombo:{key:i.a.ARROW_UP}},{action:l.NextSelection,keyCombo:{key:i.a.ARROW_DOWN}}],getRoomListBindings:()=>[{action:d.ClearSearch,keyCombo:{key:i.a.ESCAPE}},{action:d.PrevRoom,keyCombo:{key:i.a.ARROW_UP}},{action:d.NextRoom,keyCombo:{key:i.a.ARROW_DOWN}},{action:d.SelectRoom,keyCombo:{key:i.a.ENTER}},{action:d.CollapseSection,keyCombo:{key:i.a.ARROW_LEFT}},{action:d.ExpandSection,keyCombo:{key:i.a.ARROW_RIGHT}}],getRoomBindings:()=>{const e=[{action:u.ScrollUp,keyCombo:{key:i.a.PAGE_UP}},{action:u.RoomScrollDown,keyCombo:{key:i.a.PAGE_DOWN}},{action:u.DismissReadMarker,keyCombo:{key:i.a.ESCAPE}},{action:u.JumpToOldestUnread,keyCombo:{key:i.a.PAGE_UP,shiftKey:!0}},{action:u.UploadFile,keyCombo:{key:i.a.U,ctrlOrCmd:!0,shiftKey:!0}},{action:u.JumpToFirstMessage,keyCombo:{key:i.a.HOME,ctrlKey:!0}},{action:u.JumpToLatestMessage,keyCombo:{key:i.a.END,ctrlKey:!0}}];return a.b.getValue("ctrlFForSearch")&&e.push({action:u.FocusSearch,keyCombo:{key:i.a.F,ctrlOrCmd:!0}}),e},getNavigationBindings:()=>[{action:h.FocusRoomSearch,keyCombo:{key:i.a.K,ctrlOrCmd:!0}},{action:h.ToggleRoomSidePanel,keyCombo:{key:i.a.PERIOD,ctrlOrCmd:!0}},{action:h.ToggleUserMenu,keyCombo:{key:i.a.BACKTICK,ctrlOrCmd:!0}},{action:h.ToggleShortCutDialog,keyCombo:{key:i.a.SLASH,ctrlOrCmd:!0}},{action:h.ToggleShortCutDialog,keyCombo:{key:i.a.SLASH,ctrlOrCmd:!0,shiftKey:!0}},{action:h.GoToHome,keyCombo:{key:i.a.H,ctrlKey:!0,altKey:!i.b,shiftKey:i.b}},{action:h.SelectPrevRoom,keyCombo:{key:i.a.ARROW_UP,altKey:!0}},{action:h.SelectNextRoom,keyCombo:{key:i.a.ARROW_DOWN,altKey:!0}},{action:h.SelectPrevUnreadRoom,keyCombo:{key:i.a.ARROW_UP,altKey:!0,shiftKey:!0}},{action:h.SelectNextUnreadRoom,keyCombo:{key:i.a.ARROW_DOWN,altKey:!0,shiftKey:!0}}]};let c,l,d,u,h;function p(e,t,n){var o,r,i,a,s,c,l,d;if(void 0!==t.key)if(e.shiftKey){if(e.key.toLowerCase()!==t.key.toLowerCase())return!1}else if(e.key!==t.key)return!1;const u=null!==(o=t.ctrlKey)&&void 0!==o&&o,h=null!==(r=t.altKey)&&void 0!==r&&r,p=null!==(i=t.shiftKey)&&void 0!==i&&i,m=null!==(a=t.metaKey)&&void 0!==a&&a,g=null!==(s=e.ctrlKey)&&void 0!==s&&s,f=null!==(c=e.altKey)&&void 0!==c&&c,_=null!==(l=e.shiftKey)&&void 0!==l&&l,b=null!==(d=e.metaKey)&&void 0!==d&&d;if(t.ctrlOrCmd){if(n){if(!b||g!==u||f!==h||_!==p)return!1}else if(!g||b!==m||f!==h||_!==p)return!1;return!0}return b===m&&g===u&&f===h&&_===p}!function(e){e.Send="Send",e.SelectPrevSendHistory="SelectPrevSendHistory",e.SelectNextSendHistory="SelectNextSendHistory",e.EditPrevMessage="EditPrevMessage",e.EditNextMessage="EditNextMessage",e.CancelEditing="CancelEditing",e.FormatBold="FormatBold",e.FormatItalics="FormatItalics",e.FormatQuote="FormatQuote",e.EditUndo="EditUndo",e.EditRedo="EditRedo",e.NewLine="NewLine",e.MoveCursorToStart="MoveCursorToStart",e.MoveCursorToEnd="MoveCursorToEnd"}(c||(c={})),function(e){e.CompleteOrPrevSelection="ApplySelection",e.CompleteOrNextSelection="CompleteOrNextSelection",e.PrevSelection="PrevSelection",e.NextSelection="NextSelection",e.Cancel="Cancel"}(l||(l={})),function(e){e.ClearSearch="ClearSearch",e.PrevRoom="PrevRoom",e.NextRoom="NextRoom",e.SelectRoom="SelectRoom",e.CollapseSection="CollapseSection",e.ExpandSection="ExpandSection"}(d||(d={})),function(e){e.ScrollUp="ScrollUp",e.RoomScrollDown="RoomScrollDown",e.DismissReadMarker="DismissReadMarker",e.JumpToOldestUnread="JumpToOldestUnread",e.UploadFile="UploadFile",e.FocusSearch="FocusSearch",e.JumpToFirstMessage="JumpToFirstMessage",e.JumpToLatestMessage="JumpToLatestMessage"}(u||(u={})),function(e){e.FocusRoomSearch="FocusRoomSearch",e.ToggleRoomSidePanel="ToggleRoomSidePanel",e.ToggleUserMenu="ToggleUserMenu",e.ToggleShortCutDialog="ToggleShortCutDialog",e.GoToHome="GoToHome",e.SelectPrevRoom="SelectPrevRoom",e.SelectNextRoom="SelectNextRoom",e.SelectPrevUnreadRoom="SelectPrevUnreadRoom",e.SelectNextUnreadRoom="SelectNextUnreadRoom"}(h||(h={}));const m=new class{constructor(){r()(this,"bindingsProviders",[s])}getAction(e,t){for(const n of e){const e=n().find(e=>p(t,e.keyCombo,i.b));if(e)return e.action}}getMessageComposerAction(e){return this.getAction(this.bindingsProviders.map(e=>e.getMessageComposerBindings),e)}getAutocompleteAction(e){return this.getAction(this.bindingsProviders.map(e=>e.getAutocompleteBindings),e)}getRoomListAction(e){return this.getAction(this.bindingsProviders.map(e=>e.getRoomListBindings),e)}getRoomAction(e){return this.getAction(this.bindingsProviders.map(e=>e.getRoomBindings),e)}getNavigationAction(e){return this.getAction(this.bindingsProviders.map(e=>e.getNavigationBindings),e)}};function g(){return m}},function(e,t,n){"use strict";e.exports=function(e,t,n,o,r,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,r,i,a,s],d=0;c=new Error("Invariant Violation: "+t.replace(/%s/g,(function(){return l[d++]})))}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return g}));var o=n(95),r=n.n(o),i=n(100),a=n.n(i),s=n(82),c=n.n(s),l=n(92),d=n.n(l),u=n(102);const h=e=>{let{label:t,iconClassName:n,active:o,className:i}=e,s=a()(e,["label","iconClassName","active","className"]);return c.a.createElement(u.h,r()({},s,{className:d()(i,{mx_IconizedContextMenu_active:o}),active:o,label:t}),c.a.createElement("span",{className:d()("mx_IconizedContextMenu_icon",n)}),c.a.createElement("span",{className:"mx_IconizedContextMenu_label"},t),o&&c.a.createElement("span",{className:"mx_IconizedContextMenu_icon mx_IconizedContextMenu_checked"}))},p=e=>{let{label:t,iconClassName:n,active:o,className:i}=e,s=a()(e,["label","iconClassName","active","className"]);return c.a.createElement(u.g,r()({},s,{className:d()(i,{mx_IconizedContextMenu_active:o}),active:o,label:t}),c.a.createElement("span",{className:d()("mx_IconizedContextMenu_icon",n)}),c.a.createElement("span",{className:"mx_IconizedContextMenu_label"},t),o&&c.a.createElement("span",{className:"mx_IconizedContextMenu_icon mx_IconizedContextMenu_checked"}))},m=e=>{let{label:t,iconClassName:n}=e,o=a()(e,["label","iconClassName"]);return c.a.createElement(u.f,r()({},o,{label:t}),n&&c.a.createElement("span",{className:d()("mx_IconizedContextMenu_icon",n)}),c.a.createElement("span",{className:"mx_IconizedContextMenu_label"},t))},g=({first:e,red:t,className:n,children:o})=>{const r=d()("mx_IconizedContextMenu_optionList",n,{mx_IconizedContextMenu_optionList_notFirst:!e,mx_IconizedContextMenu_optionList_red:t});return c.a.createElement("div",{className:r},o)};t.e=e=>{let{className:t,children:n,compact:o}=e,i=a()(e,["className","children","compact"]);const s=d()("mx_IconizedContextMenu",t,{mx_IconizedContextMenu_compact:o});return c.a.createElement(u.b,r()({chevronFace:u.a.None},i),c.a.createElement("div",{className:s},n))}},function(e,t,n){"use strict";(function(e){var o=n(306),r=n(89),i=n(116),a=n(120),s=n(309),c=n(88),l=n(90);const d={orderedTags:null,orderedTagsAccountData:null,hasSynced:!1,joinedGroupIds:null,selectedTags:[],anchorTag:null};class u extends o.Store{constructor(){super(r.a),this._state=Object.assign({},d),l.b.monitorSetting("TagPanel.enableTagPanel",null)}_setState(e){this._state=Object.assign(this._state,e),this.__emitChange()}__onDispatch(e){switch(e.action){case"view_room":{const t=i.a.getGroupIdsForRoomId(e.room_id);this._updateBadges(t);break}case"MatrixActions.sync":{if("SYNCING"!==e.state&&"PREPARED"!==e.state||this._updateBadges(),"PREPARED"===e.prevState||"PREPARED"!==e.state)break;const t=e.matrixClient.getAccountData("im.vector.web.tag_ordering"),n=t?t.getContent():{};this._setState({orderedTagsAccountData:n.tags||null,removedTagsAccountData:n.removedTags||null,hasSynced:!0}),this._updateOrderedTags();break}case"MatrixActions.accountData":if("im.vector.web.tag_ordering"!==e.event_type)break;if(e.event_content._storeId===this.getStoreId())break;this._setState({orderedTagsAccountData:e.event_content?e.event_content.tags:null,removedTagsAccountData:e.event_content?e.event_content.removedTags:null}),this._updateOrderedTags();break;case"GroupActions.fetchJoinedGroups.success":this._setState({joinedGroupIds:e.result.groups.sort(),hasFetchedJoinedGroups:!0}),this._updateOrderedTags();break;case"TagOrderActions.moveTag.pending":this._setState({orderedTags:e.request.tags,removedTagsAccountData:e.request.removedTags});break;case"TagOrderActions.removeTag.pending":this._setState({removedTagsAccountData:e.request.removedTags}),this._updateOrderedTags();break;case"select_tag":{const t=!l.b.getValue("feature_communities_v2_prototypes");let n=[];if(e.shiftKey&&t){let t=this._state.orderedTags.indexOf(this._state.anchorTag),o=this._state.orderedTags.indexOf(e.tag);if(-1===t&&(t=o),t>o){const e=t;t=o,o=e}n=e.ctrlOrCmdKey?this._state.selectedTags:[],n=[...new Set(this._state.orderedTags.slice(t,o+1).concat(n))]}else n=e.ctrlOrCmdKey&&t?this._state.selectedTags.includes(e.tag)?this._state.selectedTags.filter(t=>t!==e.tag):[...this._state.selectedTags,e.tag]:1===this._state.selectedTags.length&&this._state.selectedTags.includes(e.tag)?[]:[e.tag],this._state.selectedTags.includes(e.tag)||this._setState({anchorTag:e.tag});this._setState({selectedTags:n}),a.a.trackEvent("FilterStore","select_tag")}break;case"deselect_tags":e.tag?this._setState({selectedTags:this._state.selectedTags.filter(t=>t!==e.tag)}):this._setState({selectedTags:[]}),a.a.trackEvent("FilterStore","deselect_tags");break;case"on_client_not_viable":case"on_logged_out":this._state=Object.assign({},d);break;case"setting_updated":"TagPanel.enableTagPanel"!==e.settingName||e.newValue||(this._setState({selectedTags:[]}),a.a.trackEvent("FilterStore","disable_tags"))}}_updateBadges(e=this._state.joinedGroupIds){if(e&&e.length){const t=c.a.get(),n={};e.forEach(e=>{const o=i.a.getGroupRooms(e).map(e=>t.getRoom(e.roomId)).filter(e=>null!=e),r=o&&s.e(o);n[e]=r&&0!==r.count?r:void 0});const o=Object.assign({},this._state.badges,n);this._setState({badges:o})}}_updateOrderedTags(){this._setState({orderedTags:this._state.hasSynced&&this._state.hasFetchedJoinedGroups?this._mergeGroupsAndTags():null})}_mergeGroupsAndTags(){const e=this._state.joinedGroupIds||[],t=this._state.orderedTagsAccountData||[],n=new Set(this._state.removedTagsAccountData||[]),o=t.filter(t=>("+"!==t[0]||e.includes(t))&&!n.has(t)),r=e.filter(e=>!t.includes(e)&&!n.has(e));return o.concat(r)}getGroupBadge(e){const t=this._state.badges;return t&&t[e]}getOrderedTags(){return this._state.orderedTags}getRemovedTagsAccountData(){return this._state.removedTagsAccountData}getStoreId(){return this._id||(this._id=Math.random().toString(16).slice(2,10)),this._id}getSelectedTags(){return this._state.selectedTags}}void 0===e.singletonGroupFilterOrderStore&&(e.singletonGroupFilterOrderStore=new u),t.a=e.singletonGroupFilterOrderStore}).call(this,n(6))},function(e,t,n){var o=n(181),r=n(142),i=n(371),a=n(231),s=n(207),c=function(e,t,n){var l,d,u,h=e&c.F,p=e&c.G,m=e&c.S,g=e&c.P,f=e&c.B,_=e&c.W,b=p?r:r[t]||(r[t]={}),v=b.prototype,y=p?o:m?o[t]:(o[t]||{}).prototype;for(l in p&&(n=t),n)(d=!h&&y&&void 0!==y[l])&&s(b,l)||(u=d?y[l]:n[l],b[l]=p&&"function"!=typeof y[l]?n[l]:f&&d?i(u,o):_&&y[l]==u?function(e){var t=function(t,n,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(u):g&&"function"==typeof u?i(Function.call,u):u,g&&((b.virtual||(b.virtual={}))[l]=u,e&c.R&&v&&!v[l]&&a(v,l,u)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var o=n(232),r=n(514),i=n(372),a=Object.defineProperty;t.f=n(183)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(234)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){e.exports={default:n(794),__esModule:!0}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var o,r=n(513),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),(0,i.default)(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}()},function(e,t,n){"use strict";t.__esModule=!0;var o,r=n(376),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";t.__esModule=!0;var o=a(n(818)),r=a(n(822)),i=a(n(376));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,i.default)(t)));e.prototype=(0,r.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(o.default?(0,o.default)(e,t):e.__proto__=t)}},function(e,t,n){e.exports={default:n(841),__esModule:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(237),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(){var e=window.pageYOffset,t=window.pageXOffset,n=t+window.innerWidth,o=e+window.innerHeight;return(0,i.default)({top:e,left:t,right:n,bottom:o})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return"private-react-beautiful-dnd-key-do-not-use-"+e};t.storeKey=o("store"),t.droppableIdKey=o("droppable-id"),t.dimensionMarshalKey=o("dimension-marshal"),t.styleContextKey=o("style-context"),t.canLiftContextKey=o("can-lift")},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return g}));var o=n(88),r=n(84),i=n(91),a=n(130),s=n(82),c=n.n(s),l=n(89),d=n(126);let u;function h(e){const t={[u.Invite]:[],[u.Join]:[],[u.Leave]:[]};for(const n of e)t[p(n.getMyMembership())].push(n);return t}function p(e){return"invite"===e?u.Invite:"join"===e?u.Join:u.Leave}function m(e){const t=p(e);return t===u.Join||t===u.Invite}async function g(e){let t=!0;const n=await o.a.get().getRoomUpgradeHistory(e);if(n&&n.length>0){n[n.length-1].roomId!==e&&(t=!1)}let s={};if(t)s=await o.a.get().leaveRoomChain(e);else try{await o.a.get().leave(e)}catch(t){if(t&&t.data&&t.data.errcode){const n=t.data.error||Object(r.a)("Unexpected server error trying to leave the room");s[e]=Object.assign(new Error(n),{errcode:t.data.errcode})}else s[e]=t||new Error("Failed to leave room for unknown causes")}const u=Object.entries(s).filter(e=>!!e[1]);if(u.length>0){const t=[];for(const n of u){const o=n[1];let l=Object(r.a)("Unexpected server error trying to leave the room");if(o.errcode&&o.message){if("M_CANNOT_LEAVE_SERVER_NOTICE_ROOM"===o.errcode)return void i.a.createTrackedDialog("Error Leaving Room","",a.a,{title:Object(r.a)("Can't leave Server Notices room"),description:Object(r.a)("This room is used for important messages from the Homeserver, so you cannot leave it.")});l=s[e].message}t.push(l,c.a.createElement("BR"))}i.a.createTrackedDialog("Error Leaving Room","",a.a,{title:Object(r.a)("Error leaving room"),description:t})}else d.a.getRoomId()===e&&l.a.dispatch({action:"view_home_page"})}!function(e){e.Join="JOIN",e.Invite="INVITE",e.Leave="LEAVE"}(u||(u={}))},function(e,t,n){"use strict";const o=t.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};t.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"},t.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const r=t.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};t.SPECIAL_ELEMENTS={[o.HTML]:{[r.ADDRESS]:!0,[r.APPLET]:!0,[r.AREA]:!0,[r.ARTICLE]:!0,[r.ASIDE]:!0,[r.BASE]:!0,[r.BASEFONT]:!0,[r.BGSOUND]:!0,[r.BLOCKQUOTE]:!0,[r.BODY]:!0,[r.BR]:!0,[r.BUTTON]:!0,[r.CAPTION]:!0,[r.CENTER]:!0,[r.COL]:!0,[r.COLGROUP]:!0,[r.DD]:!0,[r.DETAILS]:!0,[r.DIR]:!0,[r.DIV]:!0,[r.DL]:!0,[r.DT]:!0,[r.EMBED]:!0,[r.FIELDSET]:!0,[r.FIGCAPTION]:!0,[r.FIGURE]:!0,[r.FOOTER]:!0,[r.FORM]:!0,[r.FRAME]:!0,[r.FRAMESET]:!0,[r.H1]:!0,[r.H2]:!0,[r.H3]:!0,[r.H4]:!0,[r.H5]:!0,[r.H6]:!0,[r.HEAD]:!0,[r.HEADER]:!0,[r.HGROUP]:!0,[r.HR]:!0,[r.HTML]:!0,[r.IFRAME]:!0,[r.IMG]:!0,[r.INPUT]:!0,[r.LI]:!0,[r.LINK]:!0,[r.LISTING]:!0,[r.MAIN]:!0,[r.MARQUEE]:!0,[r.MENU]:!0,[r.META]:!0,[r.NAV]:!0,[r.NOEMBED]:!0,[r.NOFRAMES]:!0,[r.NOSCRIPT]:!0,[r.OBJECT]:!0,[r.OL]:!0,[r.P]:!0,[r.PARAM]:!0,[r.PLAINTEXT]:!0,[r.PRE]:!0,[r.SCRIPT]:!0,[r.SECTION]:!0,[r.SELECT]:!0,[r.SOURCE]:!0,[r.STYLE]:!0,[r.SUMMARY]:!0,[r.TABLE]:!0,[r.TBODY]:!0,[r.TD]:!0,[r.TEMPLATE]:!0,[r.TEXTAREA]:!0,[r.TFOOT]:!0,[r.TH]:!0,[r.THEAD]:!0,[r.TITLE]:!0,[r.TR]:!0,[r.TRACK]:!0,[r.UL]:!0,[r.WBR]:!0,[r.XMP]:!0},[o.MATHML]:{[r.MI]:!0,[r.MO]:!0,[r.MN]:!0,[r.MS]:!0,[r.MTEXT]:!0,[r.ANNOTATION_XML]:!0},[o.SVG]:{[r.TITLE]:!0,[r.FOREIGN_OBJECT]:!0,[r.DESC]:!0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const o=new RegExp("^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$","i");function r(e){return o.test(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));const o=Object.freeze({IS:"SERVICE_TYPE_IS",IM:"SERVICE_TYPE_IM"})},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(195),r=n(146),i=n(88),a=n(91),s=n(87),c=n(84),l=n(287),d=n(281),u=n(244);class h extends Error{}class p{constructor(e=null){this.accessToken=null,this.authEnabled=!0,this.tempClient=e?Object(r.createClient)({baseUrl:"",idBaseUrl:e}):null}get _matrixClient(){return this.tempClient?this.tempClient:i.a.get()}_writeToken(){this.tempClient||window.localStorage.setItem("mx_is_access_token",this.accessToken)}_readToken(){return this.tempClient?null:window.localStorage.getItem("mx_is_access_token")}hasCredentials(){return null!=this.accessToken}async getAccessToken({check:e=!0}={}){if(!this.authEnabled)return null;let t=this.accessToken;if(t||(t=this._readToken()),!t)return t=await this.registerForToken(e),t&&(this.accessToken=t,this._writeToken()),t;if(e)try{await this._checkToken(t)}catch(e){if(e instanceof l.b||e instanceof h)throw e;t=await this.registerForToken(),t&&(this.accessToken=t,this._writeToken())}return t}async _checkToken(e){const t=this._matrixClient.getIdentityServerUrl();try{await this._matrixClient.getIdentityAccount(e)}catch(n){if("M_TERMS_NOT_SIGNED"===n.errcode)return console.log("Identity Server requires new terms to be agreed to"),void await Object(l.d)([new l.a(o.a.IS,t,e)]);throw n}if(!this.tempClient&&!Object(d.a)()&&!await Object(d.b)(t)){const e=s.getComponent("dialogs.QuestionDialog"),{finished:n}=a.a.createTrackedDialog("Default identity server terms warning","",e,{title:Object(c.a)("Identity server has no terms of service"),description:React.createElement("div",null,React.createElement("p",null,Object(c.a)("This action requires accessing the default identity server <server /> to validate an email address or phone number, but the server does not have any terms of service.",{},{server:()=>React.createElement("b",null,Object(u.a)(t))})),React.createElement("p",null,Object(c.a)("Only continue if you trust the owner of the server."))),button:Object(c.a)("Trust")}),[o]=await n;if(!o)throw new h("User aborted identity server action without terms");Object(d.d)()}}async registerForToken(e=!0){const t=await i.a.get().getOpenIdToken(),{access_token:n,token:o}=await this._matrixClient.registerWithIdentityServer(t),r=o||n;return e&&await this._checkToken(r),r}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FOCUS_GROUP="data-focus-lock",t.FOCUS_DISABLED="data-focus-lock-disabled",t.FOCUS_ALLOW="data-no-focus-lock",t.FOCUS_AUTO="data-autofocus-inside"},function(e,t,n){"use strict";n.d(t,"a",(function(){return U})),n.d(t,"b",(function(){return B})),n.d(t,"c",(function(){return z})),n.d(t,"d",(function(){return Y}));var o,r,i,a,s,c,l,d,u,h,p,m,g,f,_,b,v,y,E,S,w,C=n(83),T=n.n(C),x=n(82),O=n.n(x),k=n(86),R=n.n(k),D=n(92),I=n.n(D),A=n(87),N=n(84),F=n(90),M=n(93),P=n(119),L=n(108),j=n(85);const U=0;let B=Object(j.a)("views.auth.PasswordAuthEntry")((i=r=class e extends O.a.Component{constructor(...t){super(...t),T()(this,"state",{password:""}),T()(this,"_onSubmit",t=>{t.preventDefault(),this.props.busy||this.props.submitAuthDict({type:e.LOGIN_TYPE,user:this.props.matrixClient.credentials.userId,identifier:{type:"m.id.user",user:this.props.matrixClient.credentials.userId},password:this.state.password})}),T()(this,"_onPasswordFieldChange",e=>{this.setState({password:e.target.value})})}componentDidMount(){this.props.onPhaseChange(U)}render(){const e=I()({error:this.props.errorText});let t,n;if(this.props.busy){const e=A.getComponent("elements.Spinner");t=O.a.createElement(e,null)}else t=O.a.createElement("input",{type:"submit",className:"mx_Dialog_primary",disabled:!this.state.password,value:Object(N.a)("Continue")});this.props.errorText&&(n=O.a.createElement("div",{className:"error",role:"alert"},this.props.errorText));const o=A.getComponent("elements.Field");return O.a.createElement("div",null,O.a.createElement("p",null,Object(N.a)("Confirm your identity by entering your account password below.")),O.a.createElement("form",{onSubmit:this._onSubmit,className:"mx_InteractiveAuthEntryComponents_passwordSection"},O.a.createElement(o,{className:e,type:"password",name:"passwordField",label:Object(N.a)("Password"),autoFocus:!0,value:this.state.password,onChange:this._onPasswordFieldChange}),O.a.createElement("div",{className:"mx_button_row"},t)),n)}},T()(r,"LOGIN_TYPE","m.login.password"),T()(r,"propTypes",{matrixClient:R.a.object.isRequired,submitAuthDict:R.a.func.isRequired,errorText:R.a.string,busy:R.a.bool,onPhaseChange:R.a.func.isRequired}),o=i))||o,q=Object(j.a)("views.auth.RecaptchaAuthEntry")((c=s=class e extends O.a.Component{constructor(...t){super(...t),T()(this,"_onCaptchaResponse",t=>{L.a.instance.track("onboarding_grecaptcha_submit"),this.props.submitAuthDict({type:e.LOGIN_TYPE,response:t})})}componentDidMount(){this.props.onPhaseChange(U)}render(){if(this.props.busy){const e=A.getComponent("elements.Spinner");return O.a.createElement(e,null)}let e=this.props.errorText;const t=A.getComponent("views.auth.CaptchaForm");let n,o;return this.props.stageParams&&this.props.stageParams.public_key?n=this.props.stageParams.public_key:e=Object(N.a)("Missing captcha public key in homeserver configuration. Please report this to your homeserver administrator."),e&&(o=O.a.createElement("div",{className:"error",role:"alert"},e)),O.a.createElement("div",null,O.a.createElement(t,{sitePublicKey:n,onCaptchaResponse:this._onCaptchaResponse}),o)}},T()(s,"LOGIN_TYPE","m.login.recaptcha"),T()(s,"propTypes",{submitAuthDict:R.a.func.isRequired,stageParams:R.a.object.isRequired,errorText:R.a.string,busy:R.a.bool,onPhaseChange:R.a.func.isRequired}),a=c))||a,G=Object(j.a)("views.auth.TermsAuthEntry")((u=d=class e extends O.a.Component{constructor(t){super(t),T()(this,"tryContinue",()=>{this._trySubmit()}),T()(this,"_trySubmit",()=>{let t=!0;for(const e of this.state.policies){const n=this.state.toggledPolicies[e.id];t=t&&n}t?(this.props.submitAuthDict({type:e.LOGIN_TYPE}),L.a.instance.track("onboarding_terms_complete")):this.setState({errorText:Object(N.a)("Please review and accept all of the homeserver's policies")})});const n=this.props.stageParams.policies||{},o=F.b.getValue("language"),r={},i=[];for(const e of Object.keys(n)){const t=n[e];let a=t[o];if(a||(a=t.en),!a){a=t[Object.keys(t).find(e=>"version"!==e)]}if(!a)throw new Error("Failed to find a policy to show the user");r[e]=!1,a.id=e,i.push(a)}this.state={toggledPolicies:r,policies:i},L.a.instance.track("onboarding_terms_begin")}componentDidMount(){this.props.onPhaseChange(U)}_togglePolicy(e){const t={};for(const n of this.state.policies){let o=this.state.toggledPolicies[n.id];n.id===e&&(o=!o),t[n.id]=o}this.setState({toggledPolicies:t})}render(){if(this.props.busy){const e=A.getComponent("elements.Spinner");return O.a.createElement(e,null)}const e=[];let t,n,o=!0;for(const t of this.state.policies){const n=this.state.toggledPolicies[t.id];o=o&&n,e.push(O.a.createElement("label",{key:"policy_checkbox_"+t.id,className:"mx_InteractiveAuthEntryComponents_termsPolicy"},O.a.createElement("input",{type:"checkbox",onChange:()=>this._togglePolicy(t.id),checked:n}),O.a.createElement("a",{href:t.url,target:"_blank",rel:"noreferrer noopener"},t.name)))}return(this.props.errorText||this.state.errorText)&&(t=O.a.createElement("div",{className:"error",role:"alert"},this.props.errorText||this.state.errorText)),!1!==this.props.showContinue&&(n=O.a.createElement("button",{className:"mx_InteractiveAuthEntryComponents_termsSubmit mx_GeneralButton",onClick:this._trySubmit,disabled:!o},Object(N.a)("Accept"))),O.a.createElement("div",null,O.a.createElement("p",null,Object(N.a)("Please review and accept the policies of this homeserver:")),e,t,n)}},T()(d,"LOGIN_TYPE","m.login.terms"),T()(d,"propTypes",{submitAuthDict:R.a.func.isRequired,stageParams:R.a.object.isRequired,errorText:R.a.string,busy:R.a.bool,showContinue:R.a.bool,onPhaseChange:R.a.func.isRequired}),l=u))||l,V=Object(j.a)("views.auth.EmailIdentityAuthEntry")((m=p=class extends O.a.Component{componentDidMount(){this.props.onPhaseChange(U)}render(){var e;return void 0===this.props.inputs.emailAddress||null!==(e=this.props.stageState)&&void 0!==e&&e.emailSid?O.a.createElement(P.a,null):O.a.createElement("div",{className:"mx_InteractiveAuthEntryComponents_emailWrapper"},O.a.createElement("p",null,Object(N.a)("A confirmation email has been sent to %(emailAddress)s",{emailAddress:e=>O.a.createElement("b",null,this.props.inputs.emailAddress)})),O.a.createElement("p",null,Object(N.a)("Open the link in the email to continue registration.")))}},T()(p,"LOGIN_TYPE","m.login.email.identity"),T()(p,"propTypes",{matrixClient:R.a.object.isRequired,submitAuthDict:R.a.func.isRequired,authSessionId:R.a.string.isRequired,clientSecret:R.a.string.isRequired,inputs:R.a.object.isRequired,stageState:R.a.object.isRequired,fail:R.a.func.isRequired,setEmailSid:R.a.func.isRequired,onPhaseChange:R.a.func.isRequired}),h=m))||h,H=Object(j.a)("views.auth.MsisdnAuthEntry")((_=f=class e extends O.a.Component{constructor(...t){super(...t),T()(this,"state",{token:"",requestingToken:!1}),T()(this,"_onTokenChange",e=>{this.setState({token:e.target.value})}),T()(this,"_onFormSubmit",async t=>{if(t.preventDefault(),""!=this.state.token){this.setState({errorText:null});try{let t;if(!this._submitUrl)throw new Error("The registration with MSISDN flow is misconfigured");if(t=await this.props.matrixClient.submitMsisdnTokenOtherUrl(this._submitUrl,this._sid,this.props.clientSecret,this.state.token),t.success){const t={sid:this._sid,client_secret:this.props.clientSecret};this.props.submitAuthDict({type:e.LOGIN_TYPE,threepid_creds:t,threepidCreds:t})}else this.setState({errorText:Object(N.a)("Token incorrect")})}catch(t){this.props.fail(t),console.log("Failed to submit msisdn token")}}})}componentDidMount(){this.props.onPhaseChange(U),this._submitUrl=null,this._sid=null,this._msisdn=null,this._tokenBox=null,this.setState({requestingToken:!0}),this._requestMsisdnToken().catch(e=>{this.props.fail(e)}).finally(()=>{this.setState({requestingToken:!1})})}_requestMsisdnToken(){return this.props.matrixClient.requestRegisterMsisdnToken(this.props.inputs.phoneCountry,this.props.inputs.phoneNumber,this.props.clientSecret,1).then(e=>{this._submitUrl=e.submit_url,this._sid=e.sid,this._msisdn=e.msisdn})}render(){if(this.state.requestingToken){const e=A.getComponent("elements.Spinner");return O.a.createElement(e,null)}{const e=Boolean(this.state.token),t=I()({mx_InteractiveAuthEntryComponents_msisdnSubmit:!0,mx_GeneralButton:!0});let n;return this.state.errorText&&(n=O.a.createElement("div",{className:"error",role:"alert"},this.state.errorText)),O.a.createElement("div",null,O.a.createElement("p",null,Object(N.a)("A text message has been sent to %(msisdn)s",{msisdn:O.a.createElement("i",null,this._msisdn)})),O.a.createElement("p",null,Object(N.a)("Please enter the code it contains:")),O.a.createElement("div",{className:"mx_InteractiveAuthEntryComponents_msisdnWrapper"},O.a.createElement("form",{onSubmit:this._onFormSubmit},O.a.createElement("input",{type:"text",className:"mx_InteractiveAuthEntryComponents_msisdnEntry",value:this.state.token,onChange:this._onTokenChange,"aria-label":Object(N.a)("Code")}),O.a.createElement("br",null),O.a.createElement("input",{type:"submit",value:Object(N.a)("Submit"),className:t,disabled:!e})),n))}}},T()(f,"LOGIN_TYPE","m.login.msisdn"),T()(f,"propTypes",{inputs:R.a.shape({phoneCountry:R.a.string,phoneNumber:R.a.string}),fail:R.a.func,clientSecret:R.a.func,submitAuthDict:R.a.func.isRequired,matrixClient:R.a.object,onPhaseChange:R.a.func.isRequired}),g=_))||g,z=Object(j.a)("views.auth.SSOAuthEntry")((y=v=class e extends O.a.Component{constructor(t){super(t),T()(this,"_ssoUrl",void 0),T()(this,"attemptFailed",()=>{this.setState({attemptFailed:!0})}),T()(this,"_onReceiveMessage",e=>{"authDone"===e.data&&e.origin===this.props.matrixClient.getHomeserverUrl()&&this._popupWindow&&(this._popupWindow.close(),this._popupWindow=null)}),T()(this,"onStartAuthClick",()=>{this._popupWindow=window.open(this._ssoUrl,"_blank"),this.setState({phase:e.PHASE_POSTAUTH}),this.props.onPhaseChange(e.PHASE_POSTAUTH)}),T()(this,"onConfirmClick",()=>{this.props.submitAuthDict({})}),this._ssoUrl=t.matrixClient.getFallbackAuthUrl(this.props.loginType,this.props.authSessionId),this._popupWindow=null,window.addEventListener("message",this._onReceiveMessage),this.state={phase:e.PHASE_PREAUTH,attemptFailed:!1}}componentDidMount(){this.props.onPhaseChange(e.PHASE_PREAUTH)}componentWillUnmount(){window.removeEventListener("message",this._onReceiveMessage),this._popupWindow&&(this._popupWindow.close(),this._popupWindow=null)}render(){let t=null;const n=O.a.createElement(M.a,{onClick:this.props.onCancel,kind:this.props.continueKind?this.props.continueKind+"_outline":"primary_outline"},Object(N.a)("Cancel"));let o;return t=this.state.phase===e.PHASE_PREAUTH?O.a.createElement(M.a,{onClick:this.onStartAuthClick,kind:this.props.continueKind||"primary"},this.props.continueText||Object(N.a)("Single Sign On")):O.a.createElement(M.a,{onClick:this.onConfirmClick,kind:this.props.continueKind||"primary"},this.props.continueText||Object(N.a)("Confirm")),this.props.errorText?o=O.a.createElement("div",{className:"error",role:"alert"},this.props.errorText):this.state.attemptFailed&&(o=O.a.createElement("div",{className:"error",role:"alert"},Object(N.a)("Something went wrong in confirming your identity. Cancel and try again."))),O.a.createElement(O.a.Fragment,null,o,O.a.createElement("div",{className:"mx_InteractiveAuthEntryComponents_sso_buttons"},n,t))}},T()(v,"propTypes",{matrixClient:R.a.object.isRequired,authSessionId:R.a.string.isRequired,loginType:R.a.string.isRequired,submitAuthDict:R.a.func.isRequired,errorText:R.a.string,onPhaseChange:R.a.func.isRequired,continueText:R.a.string,continueKind:R.a.string,onCancel:R.a.func}),T()(v,"LOGIN_TYPE","m.login.sso"),T()(v,"UNSTABLE_LOGIN_TYPE","org.matrix.login.sso"),T()(v,"PHASE_PREAUTH",1),T()(v,"PHASE_POSTAUTH",2),b=y))||b,K=Object(j.a)("views.auth.FallbackAuthEntry")((w=S=class extends O.a.Component{constructor(e){super(e),T()(this,"focus",()=>{this._fallbackButton.current&&this._fallbackButton.current.focus()}),T()(this,"_onShowFallbackClick",e=>{e.preventDefault(),e.stopPropagation();const t=this.props.matrixClient.getFallbackAuthUrl(this.props.loginType,this.props.authSessionId);this._popupWindow=window.open(t,"_blank")}),T()(this,"_onReceiveMessage",e=>{"authDone"===e.data&&e.origin===this.props.matrixClient.getHomeserverUrl()&&this.props.submitAuthDict({})}),this._popupWindow=null,window.addEventListener("message",this._onReceiveMessage),this._fallbackButton=Object(x.createRef)()}componentDidMount(){this.props.onPhaseChange(U)}componentWillUnmount(){window.removeEventListener("message",this._onReceiveMessage),this._popupWindow&&this._popupWindow.close()}render(){let e;return this.props.errorText&&(e=O.a.createElement("div",{className:"error",role:"alert"},this.props.errorText)),O.a.createElement("div",null,O.a.createElement("a",{href:"",ref:this._fallbackButton,onClick:this._onShowFallbackClick},Object(N.a)("Start authentication")),e)}},T()(S,"propTypes",{matrixClient:R.a.object.isRequired,authSessionId:R.a.string.isRequired,loginType:R.a.string.isRequired,submitAuthDict:R.a.func.isRequired,errorText:R.a.string,onPhaseChange:R.a.func.isRequired}),E=w))||E;const W=[B,q,V,H,G,z];function Y(e){for(const t of W)if(t.LOGIN_TYPE===e||t.UNSTABLE_LOGIN_TYPE===e)return t;return K}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o,r=n(82),i=n.n(r),a=n(84),s=n(90),c=n(85);let l=Object(c.a)("views.elements.InlineSpinner")(o=class extends i.a.Component{render(){const e=this.props.w||16,t=this.props.h||16,o=this.props.imgClassName||"";let r;return r=s.b.getValue("feature_new_spinner")?n(641):n(642),i.a.createElement("div",{className:"mx_InlineSpinner"},i.a.createElement("img",{src:r,width:e,height:t,className:o,"aria-label":Object(a.a)("Loading...")}))}})||o},function(e,t,n){"use strict";var o=n(82),r=n(129);t.a=({room:e,children:t})=>{const[n,i]=Object(o.useState)(null==e?void 0:e.name);return Object(r.a)(e,"Room.name",()=>{i(null==e?void 0:e.name)}),Object(o.useEffect)(()=>{i(null==e?void 0:e.name)},[e]),t?t(n):n||""}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(84),p=n(85);let m=Object(p.a)("views.elements.DialogButtons")((i=r=class extends l.a.Component{constructor(...e){super(...e),s()(this,"_onCancelClick",()=>{this.props.onCancel()})}render(){let e,t="mx_Dialog_primary";this.props.primaryButtonClass&&(t+=" "+this.props.primaryButtonClass),(this.props.cancelButton||this.props.hasCancel)&&(e=l.a.createElement("button",{type:"button",onClick:this._onCancelClick,className:this.props.cancelButtonClass,disabled:this.props.disabled},this.props.cancelButton||Object(h.a)("Cancel")));let n=null;return this.props.additive&&(n=l.a.createElement("div",{className:"mx_Dialog_buttons_additive"},this.props.additive)),l.a.createElement("div",{className:"mx_Dialog_buttons"},n,e,this.props.children,l.a.createElement("button",{type:this.props.primaryIsSubmit?"submit":"button",className:t,onClick:this.props.onPrimaryButtonClick,autoFocus:this.props.focus,disabled:this.props.disabled||this.props.primaryDisabled},this.props.primaryButton))}},s()(r,"propTypes",{primaryButton:u.a.node.isRequired,cancelButton:u.a.node,primaryIsSubmit:u.a.bool,onPrimaryButtonClick:u.a.func,hasCancel:u.a.bool,cancelButtonClass:u.a.node,onCancel:u.a.func,focus:u.a.bool,disabled:u.a.bool,primaryDisabled:u.a.bool,additive:u.a.element}),s()(r,"defaultProps",{hasCancel:!0,disabled:!1}),o=i))||o},function(e,t,n){"use strict";n.r(t),n.d(t,"CHAT_EFFECTS",(function(){return r}));var o=n(84);const r=[{emojis:["🎊","🎉"],msgType:"nic.custom.confetti",command:"confetti",description:()=>Object(o.b)("Sends the given message with confetti"),fallbackMessage:()=>Object(o.a)("sends confetti")+" 🎉",options:{maxCount:150,speed:3,frameInterval:15,alpha:1,gradient:!1}},{emojis:["🎆"],msgType:"nic.custom.fireworks",command:"fireworks",description:()=>Object(o.b)("Sends the given message with fireworks"),fallbackMessage:()=>Object(o.a)("sends fireworks")+" 🎆",options:{maxCount:500,gravity:.05}},{emojis:["❄","🌨"],msgType:"io.element.effect.snowfall",command:"snowfall",description:()=>Object(o.b)("Sends the given message with snowfall"),fallbackMessage:()=>Object(o.a)("sends snowfall")+" ❄",options:{maxCount:200,gravity:.05,maxDrift:5}}]},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(1),r=n(7);function i(e){this.userId=e,this.presence="offline",this.presenceStatusMsg=null,this._unstable_statusMessage="",this.displayName=e,this.rawDisplayName=e,this.avatarUrl=null,this.lastActiveAgo=0,this.lastPresenceTs=0,this.currentlyActive=!1,this.events={presence:null,profile:null},this._updateModifiedTime()}o.p(i,r.EventEmitter),i.prototype.setPresenceEvent=function(e){if("m.presence"!==e.getType())return;const t=null===this.events.presence;this.events.presence=e;const n=[];(e.getContent().presence!==this.presence||t)&&n.push("User.presence"),e.getContent().avatar_url&&e.getContent().avatar_url!==this.avatarUrl&&n.push("User.avatarUrl"),e.getContent().displayname&&e.getContent().displayname!==this.displayName&&n.push("User.displayName"),void 0!==e.getContent().currently_active&&e.getContent().currently_active!==this.currentlyActive&&n.push("User.currentlyActive"),this.presence=e.getContent().presence,n.push("User.lastPresenceTs"),e.getContent().status_msg&&(this.presenceStatusMsg=e.getContent().status_msg),e.getContent().displayname&&(this.displayName=e.getContent().displayname),e.getContent().avatar_url&&(this.avatarUrl=e.getContent().avatar_url),this.lastActiveAgo=e.getContent().last_active_ago,this.lastPresenceTs=Date.now(),this.currentlyActive=e.getContent().currently_active,this._updateModifiedTime();for(let t=0;t<n.length;t++)this.emit(n[t],e,this)},i.prototype.setDisplayName=function(e){const t=this.displayName;this.displayName="string"==typeof e?e:void 0,e!==t&&this._updateModifiedTime()},i.prototype.setRawDisplayName=function(e){this.rawDisplayName="string"==typeof e?e:void 0},i.prototype.setAvatarUrl=function(e){const t=this.avatarUrl;this.avatarUrl=e,e!==t&&this._updateModifiedTime()},i.prototype._updateModifiedTime=function(){this._modified=Date.now()},i.prototype.getLastModifiedTime=function(){return this._modified},i.prototype.getLastActiveTs=function(){return this.lastPresenceTs-this.lastActiveAgo},i.prototype._unstable_updateStatusMessage=function(e){e.getContent()?this._unstable_statusMessage=e.getContent().status:this._unstable_statusMessage="",this._updateModifiedTime(),this.emit("User._unstable_statusMessage",this)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return f}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(148),u=n.n(d),h=n(92),p=n.n(h),m=n(85);let g;!function(e){e[e.Natural=0]="Natural",e[e.Left=1]="Left",e[e.Right=2]="Right",e[e.Top=3]="Top",e[e.Bottom=4]="Bottom"}(g||(g={}));let f=Object(m.a)("views.elements.Tooltip")((i=r=class extends l.a.Component{constructor(...e){super(...e),s()(this,"tooltipContainer",void 0),s()(this,"tooltip",void 0),s()(this,"parent",void 0),s()(this,"renderTooltip",()=>{const e=this.updatePosition({});e.display=this.props.visible?"block":"none";const t=p()("mx_Tooltip",this.props.tooltipClassName,{mx_Tooltip_visible:this.props.visible,mx_Tooltip_invisible:!this.props.visible}),n=l.a.createElement("div",{className:t,style:e},l.a.createElement("div",{className:"mx_Tooltip_chevron"}),this.props.label);this.tooltip=u.a.render(n,this.tooltipContainer)})}componentDidMount(){this.tooltipContainer=document.createElement("div"),this.tooltipContainer.className="mx_Tooltip_wrapper",document.body.appendChild(this.tooltipContainer),window.addEventListener("scroll",this.renderTooltip,!0),this.parent=u.a.findDOMNode(this).parentNode,this.renderTooltip()}componentDidUpdate(){this.renderTooltip()}componentWillUnmount(){u.a.unmountComponentAtNode(this.tooltipContainer),document.body.removeChild(this.tooltipContainer),window.removeEventListener("scroll",this.renderTooltip,!0)}updatePosition(e){const t=this.parent.getBoundingClientRect();let n=0;n=t.height>25?Math.floor((t.height-25)/2):Math.floor(t.height-25);const o=t.top-2+this.props.yOffset+window.pageYOffset,r=o+n,i=window.innerWidth-t.right-window.pageXOffset-16,a=t.right+window.pageXOffset+6,s=t.right-window.pageXOffset-t.width/2;switch(this.props.alignment){case g.Natural:if(t.right>window.innerWidth/2){e.right=i,e.top=r;break}case g.Right:e.left=a,e.top=r;break;case g.Left:e.right=i,e.top=r;break;case g.Top:e.top=o-16,e.left=s;break;case g.Bottom:e.top=o+t.height,e.left=s}return e}render(){return l.a.createElement("div",{className:this.props.className})}},s()(r,"Alignment",g),s()(r,"defaultProps",{visible:!0,yOffset:0,alignment:g.Natural}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"b",(function(){return d}));var o=n(114),r=n(99);function i(e,t,n,o){let i;return null!=e&&e.getMxcAvatarUrl()&&(i=Object(r.b)(e.getMxcAvatarUrl()).getThumbnailOfSourceHttp(Math.floor(t*window.devicePixelRatio),Math.floor(n*window.devicePixelRatio),o)),i||(i=c(e?e.userId:"")),i}function a(e,t,n,o){return e.avatarUrl?Object(r.b)(e.avatarUrl).getThumbnailOfSourceHttp(Math.floor(t*window.devicePixelRatio),Math.floor(n*window.devicePixelRatio),o):null}const s=new Map;function c(e){if(!e)return"";const t=["#0DBD8B","#368bd6","#ac3ba8"];let n=0;for(let t=0;t<e.length;++t)n+=e.charCodeAt(t);const o=n%t.length,r="--avatar-background-colors_"+o,i=document.body.style.getPropertyValue(r)||t[o];let a=s.get(i);return a||(!function(e){return"string"==typeof e&&(7===e.length||9===e.length)&&"#"===e.charAt(0)&&!e.substr(1).split("").some(e=>isNaN(parseInt(e,16)))}(i)?a="":(a=function(e){const t=document.createElement("canvas");t.width=40,t.height=40;const n=t.getContext("2d");return n?(n.fillStyle=e,n.fillRect(0,0,40,40),t.toDataURL()):""}(i),s.set(i,a))),a}function l(e){if(!e)return void console.trace("`name` argument to `getInitialLetter` not supplied");if(e.length<1)return;let t=0;const n=e[0];"@"!==n&&"#"!==n&&"+"!==n||!e[1]||t++;let o=1;const r=e.charCodeAt(t);if(r>=55296&&r<=56319&&e[t+1]){const n=e.charCodeAt(t+1);n>=56320&&n<=57343&&o++}return e.substring(t,t+o).toUpperCase()}function d(e,t,n,i){var a;if(!e)return null;if(e.getMxcAvatarUrl())return Object(r.b)(e.getMxcAvatarUrl()).getThumbnailOfSourceHttp(t,n,i);if(e.isSpaceRoom())return null;let s=null;const c=o.a.shared().getUserIdForRoomId(e.roomId);return s=c?e.getMember(c):e.getAvatarFallbackMember(),null!==(a=s)&&void 0!==a&&a.getMxcAvatarUrl()?Object(r.b)(s.getMxcAvatarUrl()).getThumbnailOfSourceHttp(t,n,i):null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(83),r=n.n(o),i=n(141),a=n(89),s=n(105),c=n(88),l=n(84),d=n(99);class u extends i.a{constructor(){super(a.a,{displayName:window.localStorage.getItem("mx_profile_displayname"),avatarUrl:window.localStorage.getItem("mx_profile_avatar_url")}),r()(this,"monitoredUser",void 0),r()(this,"onProfileUpdate",async()=>{const e=await this.matrixClient.getProfileInfo(this.matrixClient.getUserId());e.displayname?window.localStorage.setItem("mx_profile_displayname",e.displayname):window.localStorage.removeItem("mx_profile_displayname"),e.avatar_url?window.localStorage.setItem("mx_profile_avatar_url",e.avatar_url):window.localStorage.removeItem("mx_profile_avatar_url"),await this.updateState({displayName:e.displayname,avatarUrl:e.avatar_url})}),r()(this,"onStateEvents",Object(s.throttle)(async e=>{const t=c.a.get().getUserId();"m.room.member"===e.getType()&&e.getSender()===t&&e.getStateKey()===t&&await this.onProfileUpdate()},200,{trailing:!0,leading:!0}))}static get instance(){return u.internalInstance}get displayName(){return this.matrixClient?this.matrixClient.isGuest()?Object(l.a)("Guest"):this.state.displayName?this.state.displayName:this.matrixClient.getUserId():this.state.displayName||null}get avatarMxc(){return this.state.avatarUrl||null}getHttpAvatarUrl(e=0){if(!this.avatarMxc)return null;const t=Object(d.b)(this.avatarMxc);return!e||e<=0?t.srcHttp:t.getSquareThumbnailHttp(e)}async onNotReady(){this.monitoredUser&&(this.monitoredUser.removeListener("User.displayName",this.onProfileUpdate),this.monitoredUser.removeListener("User.avatarUrl",this.onProfileUpdate)),this.matrixClient&&this.matrixClient.removeListener("RoomState.events",this.onStateEvents),await this.reset({})}async onReady(){const e=this.matrixClient.getUserId();this.monitoredUser=this.matrixClient.getUser(e),this.monitoredUser&&(this.monitoredUser.on("User.displayName",this.onProfileUpdate),this.monitoredUser.on("User.avatarUrl",this.onProfileUpdate)),this.matrixClient.on("RoomState.events",this.onStateEvents),await this.onProfileUpdate()}async onAction(e){}}r()(u,"internalInstance",new u)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";t.__esModule=!0;var o,r=n(843),i=(o=r)&&o.__esModule?o:{default:o};t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return q})),n.d(t,"b",(function(){return H}));var o,r,i,a=n(83),s=n.n(a),c=n(95),l=n.n(c),d=n(82),u=n.n(d),h=n(86),p=n.n(h),m=n(92),g=n.n(m),f=n(110),_=n(103),b=n(241),v=n(84),y=n(329),E=n(87),S=n(89),w=n(90),C=n(162),T=n(134),x=n(88),O=n(346),k=n(97),R=n(218),D=n(305),I=n(138),A=n(123),N=n(173),F=n(128),M=n(85),P=n(204);const L={[f.a.RoomMessage]:"messages.MessageEvent",[f.a.Sticker]:"messages.MessageEvent",[f.a.KeyVerificationCancel]:"messages.MKeyVerificationConclusion",[f.a.KeyVerificationDone]:"messages.MKeyVerificationConclusion",[f.a.CallInvite]:"messages.TextualEvent",[f.a.CallAnswer]:"messages.TextualEvent",[f.a.CallHangup]:"messages.TextualEvent",[f.a.CallReject]:"messages.TextualEvent"},j={[f.a.RoomEncryption]:"messages.EncryptionEvent",[f.a.RoomCanonicalAlias]:"messages.TextualEvent",[f.a.RoomCreate]:"messages.RoomCreate",[f.a.RoomMember]:"messages.TextualEvent",[f.a.RoomName]:"messages.TextualEvent",[f.a.RoomAvatar]:"messages.RoomAvatarEvent",[f.a.RoomThirdPartyInvite]:"messages.TextualEvent",[f.a.RoomHistoryVisibility]:"messages.TextualEvent",[f.a.RoomTopic]:"messages.TextualEvent",[f.a.RoomPowerLevels]:"messages.TextualEvent",[f.a.RoomPinnedEvents]:"messages.TextualEvent",[f.a.RoomServerAcl]:"messages.TextualEvent","im.vector.modular.widgets":"messages.TextualEvent",[N.c]:"messages.TextualEvent",[f.a.RoomTombstone]:"messages.TextualEvent",[f.a.RoomJoinRules]:"messages.TextualEvent",[f.a.RoomGuestAccess]:"messages.TextualEvent","m.room.related_groups":"messages.TextualEvent"},U=new Set([f.a.RoomEncryption,f.a.RoomCanonicalAlias,f.a.RoomCreate,f.a.RoomName,f.a.RoomAvatar,f.a.RoomHistoryVisibility,f.a.RoomTopic,f.a.RoomPowerLevels,f.a.RoomPinnedEvents,f.a.RoomServerAcl,N.c,f.a.RoomTombstone,f.a.RoomJoinRules,f.a.RoomGuestAccess,"m.room.related_groups"]);for(const e of O.a)j[e]="messages.TextualEvent";function B(e){const t=e.getType();if("m.room.message"===t){const t=e.getContent();if(t&&"m.key.verification.request"===t.msgtype){const n=x.a.get(),o=n&&n.getUserId();return e.getSender()!==o&&t.to!==o?void 0:"messages.MKeyVerificationRequest"}}if("m.key.verification.done"===t){const t=x.a.get(),n=t&&t.getUserId();if(e.getSender()!==n)return}if("m.key.verification.cancel"===t||"m.key.verification.done"===t){if(!E.getComponent("messages.MKeyVerificationConclusion").prototype._shouldRender.call(null,e,e.request))return}if("im.vector.modular.widgets"===t){let t=e.getContent().type;if(t||(t=e.getPrevContent().type),I.a.JITSI.matches(t))return"messages.MJitsiWidgetEvent"}if(e.isState()){if(U.has(t)&&""!==e.getStateKey())return;return j[t]}return L[t]}let q=Object(M.a)("views.rooms.EventTile")((i=r=class extends u.a.Component{constructor(e,t){super(e,t),s()(this,"_onRoomReceipt",(e,t)=>{t===x.a.get().getRoom(this.props.mxEvent.getRoomId())&&(this._shouldShowSentReceipt||this._shouldShowSendingReceipt||this._isListeningForReceipts)&&this.forceUpdate(()=>{this._shouldShowSentReceipt||this._shouldShowSendingReceipt||(this.context.removeListener("Room.receipt",this._onRoomReceipt),this._isListeningForReceipts=!1)})}),s()(this,"_onDecrypted",()=>{this._verifyEvent(this.props.mxEvent),this.forceUpdate()}),s()(this,"onDeviceVerificationChanged",(e,t)=>{e===this.props.mxEvent.getSender()&&this._verifyEvent(this.props.mxEvent)}),s()(this,"onUserVerificationChanged",(e,t)=>{e===this.props.mxEvent.getSender()&&this._verifyEvent(this.props.mxEvent)}),s()(this,"toggleAllReadAvatars",()=>{this.setState({allReadAvatars:!this.state.allReadAvatars})}),s()(this,"onSenderProfileClick",e=>{const t=this.props.mxEvent;S.a.dispatch({action:"insert_mention",user_id:t.getSender()})}),s()(this,"onRequestKeysClick",()=>{this.setState({previouslyRequestedKeys:!0}),this.context.cancelAndResendEventRoomKeyRequest(this.props.mxEvent)}),s()(this,"onPermalinkClicked",e=>{e.preventDefault(),S.a.dispatch({action:"view_room",event_id:this.props.mxEvent.getId(),highlighted:!0,room_id:this.props.mxEvent.getRoomId()})}),s()(this,"onActionBarFocusChange",e=>{this.setState({actionBarFocused:e})}),s()(this,"getTile",()=>this._tile.current),s()(this,"getReplyThread",()=>this._replyThread.current),s()(this,"getReactions",()=>{if(!this.props.showReactions||!this.props.getRelationsForEvent)return null;const e=this.props.mxEvent.getId();return e||(console.error("EventTile attempted to get relations for an event without an ID"),console.log(JSON.stringify(this.props.mxEvent,null,4)),console.trace("Stacktrace for https://github.com/vector-im/element-web/issues/11120")),this.props.getRelationsForEvent(e,"m.annotation","m.reaction")}),s()(this,"_onReactionsCreated",(e,t)=>{"m.annotation"===e&&"m.reaction"===t&&(this.props.mxEvent.removeListener("Event.relationsCreated",this._onReactionsCreated),this.setState({reactions:this.getReactions()}))}),this.state={actionBarFocused:!1,allReadAvatars:!1,verified:null,previouslyRequestedKeys:!1,reactions:this.getReactions()},this._suppressReadReceiptAnimation=!0,this._tile=Object(d.createRef)(),this._replyThread=Object(d.createRef)(),this._isListeningForReceipts=!1}get _isEligibleForSpecialReceipt(){if(this.props.readReceipts&&this.props.readReceipts.length>0)return!1;if(!this.props.mxEvent)return!1;if(!this.context.getRoom(this.props.mxEvent.getRoomId()))return!1;const e=x.a.get().getUserId();if(this.props.mxEvent.getSender()!==e)return!1;return!![f.a.Sticker,f.a.RoomMessage,f.a.RoomMessageEncrypted].includes(this.props.mxEvent.getType())}get _shouldShowSentReceipt(){if(!this._isEligibleForSpecialReceipt)return!1;if(!this.props.lastSuccessful)return!1;if(this.props.eventSendStatus&&"sent"!==this.props.eventSendStatus)return!1;const e=this.props.readReceipts||[],t=x.a.get().getUserId();return!e.some(e=>e.userId!==t)}get _shouldShowSendingReceipt(){return!!this._isEligibleForSpecialReceipt&&!(!this.props.eventSendStatus||"sent"===this.props.eventSendStatus)}UNSAFE_componentWillMount(){this._verifyEvent(this.props.mxEvent)}componentDidMount(){this._suppressReadReceiptAnimation=!1;const e=this.context;e.on("deviceVerificationChanged",this.onDeviceVerificationChanged),e.on("userTrustStatusChanged",this.onUserVerificationChanged),this.props.mxEvent.on("Event.decrypted",this._onDecrypted),this.props.showReactions&&this.props.mxEvent.on("Event.relationsCreated",this._onReactionsCreated),(this._shouldShowSentReceipt||this._shouldShowSendingReceipt)&&(e.on("Room.receipt",this._onRoomReceipt),this._isListeningForReceipts=!0)}UNSAFE_componentWillReceiveProps(e){e.eventSendStatus!==this.props.eventSendStatus&&this._verifyEvent(e.mxEvent)}shouldComponentUpdate(e,t){return!!Object(F.d)(this.state,t)||!this._propsEqual(this.props,e)}componentWillUnmount(){const e=this.context;e.removeListener("deviceVerificationChanged",this.onDeviceVerificationChanged),e.removeListener("userTrustStatusChanged",this.onUserVerificationChanged),e.removeListener("Room.receipt",this._onRoomReceipt),this._isListeningForReceipts=!1,this.props.mxEvent.removeListener("Event.decrypted",this._onDecrypted),this.props.showReactions&&this.props.mxEvent.removeListener("Event.relationsCreated",this._onReactionsCreated)}componentDidUpdate(e,t,n){this._isListeningForReceipts||!this._shouldShowSentReceipt&&!this._shouldShowSendingReceipt||(this.context.on("Room.receipt",this._onRoomReceipt),this._isListeningForReceipts=!0)}async _verifyEvent(e){if(!e.isEncrypted())return;const t=this.context.getEventEncryptionInfo(e),n=e.getSender(),o=this.context.checkUserTrust(n);if(t.mismatchedSender)return void this.setState({verified:R.a.WARNING},this.props.onHeightChanged);if(!o.isCrossSigningVerified())return void this.setState({verified:R.a.NORMAL},this.props.onHeightChanged);const r=t.sender&&this.context.checkDeviceTrust(n,t.sender.deviceId);r?r.isVerified()?t.authenticated?this.setState({verified:R.a.VERIFIED},this.props.onHeightChanged):this.setState({verified:R.a.UNAUTHENTICATED},this.props.onHeightChanged):this.setState({verified:R.a.WARNING},this.props.onHeightChanged):this.setState({verified:R.a.UNKNOWN},this.props.onHeightChanged)}_propsEqual(e,t){const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let o=0;o<n.length;o++){const r=n[o];if(!t.hasOwnProperty(r))return!1;if("readReceipts"===r){const n=e[r],o=t[r];if(n===o)continue;if(!n||!o)return!1;if(n.length!==o.length)return!1;for(let e=0;e<n.length;e++){if(n[e].userId!==o[e].userId)return!1;if(n[e].roomMember!==o[e].roomMember)return!1}}else if(e[r]!==t[r])return!1}return!0}shouldHighlight(){const e=this.context.getPushActionsForEvent(this.props.mxEvent.replacingEvent()||this.props.mxEvent);return!(!e||!e.tweaks)&&(this.props.mxEvent.getSender()!==this.context.credentials.userId&&e.tweaks.highlight)}getReadAvatars(){if(this._shouldShowSentReceipt||this._shouldShowSendingReceipt)return u.a.createElement(J,{messageState:this.props.mxEvent.getAssociatedStatus()});if(!this.props.readReceipts||0===this.props.readReceipts.length)return u.a.createElement("span",{className:"mx_EventTile_readAvatars"});const e=E.getComponent("rooms.ReadReceiptMarker"),t=[];let n=0;const o=this.props.readReceipts||[];for(let r=0;r<o.length;++r){const i=o[r];let a=!0;(r<5||this.state.allReadAvatars)&&(a=!1),n=-15*(a?4:r);const s=i.userId;let c;this.props.readReceiptMap&&(c=this.props.readReceiptMap[s],c||(c={},this.props.readReceiptMap[s]=c)),t.unshift(u.a.createElement(e,{key:s,member:i.roomMember,fallbackUserId:s,leftOffset:n,hidden:a,readReceiptInfo:c,checkUnmounting:this.props.checkUnmounting,suppressAnimation:this._suppressReadReceiptAnimation,onClick:this.toggleAllReadAvatars,timestamp:i.ts,showTwelveHour:this.props.isTwelveHour}))}let r;if(!this.state.allReadAvatars){const e=o.length-5;e>0&&(r=u.a.createElement("span",{className:"mx_EventTile_readAvatarRemainder",onClick:this.toggleAllReadAvatars,style:{right:"calc("+Object(D.b)(-n)+" + 15px)"}},e,"+"))}return u.a.createElement("span",{className:"mx_EventTile_readAvatars"},r,t)}_renderE2EPadlock(){const e=this.props.mxEvent;if("m.bad.encrypted"===e.getContent().msgtype)return u.a.createElement(z,null);if(e.isEncrypted())return this.state.verified===R.a.NORMAL||this.state.verified===R.a.VERIFIED?void 0:this.state.verified===R.a.UNAUTHENTICATED?u.a.createElement($,null):this.state.verified===R.a.UNKNOWN?u.a.createElement(Y,null):u.a.createElement(K,null);if(this.context.isRoomEncrypted(e.getRoomId())){if(e.status===_.a.ENCRYPTING)return;if(e.status===_.a.NOT_SENT)return;if(e.isState())return;return u.a.createElement(W,null)}return null}render(){const e=E.getComponent("messages.MessageTimestamp"),t=E.getComponent("messages.SenderProfile"),n=E.getComponent("avatars.MemberAvatar"),o=this.props.mxEvent.getContent().msgtype,r=this.props.mxEvent.getType();let i=B(this.props.mxEvent);const a=r.startsWith("m.key.verification")||r===f.a.RoomMessage&&o&&o.startsWith("m.key.verification")||r===f.a.RoomCreate||r===f.a.RoomEncryption||"messages.MJitsiWidgetEvent"===i;let s=!a&&r!==f.a.RoomMessage&&r!==f.a.Sticker&&r!==f.a.RoomCreate;if(w.b.getValue("showHiddenEventsInTimeline")&&!H(this.props.mxEvent)&&(i="messages.ViewSourceEvent",s=!0),!i){const{mxEvent:e}=this.props;return console.warn(`Event type not supported: type:${e.getType()} isState:${e.isState()}`),u.a.createElement("div",{className:"mx_EventTile mx_EventTile_info mx_MNoticeBody"},u.a.createElement("div",{className:"mx_EventTile_line"},Object(v.a)("This event could not be displayed")))}const c=E.getComponent(i),l=-1!==["sending","queued","encrypting"].indexOf(this.props.eventSendStatus),d=V(this.props.mxEvent)&&this.props.isRedacted,h=this.props.mxEvent.isDecryptionFailure(),p=!!this.props.editState,m=g()({mx_EventTile_bubbleContainer:a,mx_EventTile:!0,mx_EventTile_isEditing:p,mx_EventTile_info:s,mx_EventTile_12hr:this.props.isTwelveHour,mx_EventTile_sending:!p&&l,mx_EventTile_notSent:"not_sent"===this.props.eventSendStatus,mx_EventTile_highlight:"notif"!==this.props.tileShape&&this.shouldHighlight(),mx_EventTile_selected:this.props.isSelectedEvent,mx_EventTile_continuation:this.props.tileShape?"":this.props.continuation,mx_EventTile_last:this.props.last,mx_EventTile_lastInSection:this.props.lastInSection,mx_EventTile_contextual:this.props.contextual,mx_EventTile_actionBarFocused:this.state.actionBarFocused,mx_EventTile_verified:!a&&this.state.verified===R.a.VERIFIED,mx_EventTile_unverified:!a&&this.state.verified===R.a.WARNING,mx_EventTile_unknown:!a&&this.state.verified===R.a.UNKNOWN,mx_EventTile_bad:h,mx_EventTile_emote:"m.emote"===o}),_=null!==this.props.eventSendStatus?"off":void 0;let y,S,x,O,k="#";if(this.props.permalinkCreator&&(k=this.props.permalinkCreator.forEvent(this.props.mxEvent.getId())),"notif"===this.props.tileShape?(x=24,O=!0):"messages.RoomCreate"===i||a?(x=0,O=!1):s?(x=14,O=!1):this.props.layout==C.a.IRC?(x=14,O=!0):this.props.continuation&&"file_grid"!==this.props.tileShape?(x=0,O=!1):(x=30,O=!0),this.props.mxEvent.sender&&x){let e;e=this.props.mxEvent.getContent().third_party_invite?this.props.mxEvent.target:this.props.mxEvent.sender,y=u.a.createElement("div",{className:"mx_EventTile_avatar"},u.a.createElement(n,{member:e,width:x,height:x,viewUserOnClick:!0}))}O&&(S=this.props.tileShape&&"reply"!==this.props.tileShape&&"reply_preview"!==this.props.tileShape?u.a.createElement(t,{mxEvent:this.props.mxEvent,enableFlair:this.props.enableFlair}):u.a.createElement(t,{onClick:this.onSenderProfileClick,mxEvent:this.props.mxEvent,enableFlair:this.props.enableFlair}));const D=E.getComponent("messages.MessageActionBar"),I=p?void 0:u.a.createElement(D,{mxEvent:this.props.mxEvent,reactions:this.state.reactions,permalinkCreator:this.props.permalinkCreator,getTile:this.getTile,getReplyThread:this.getReplyThread,onFocusChange:this.onActionBarFocusChange}),N=this.props.mxEvent.getTs()?u.a.createElement(e,{showTwelveHour:this.props.isTwelveHour,ts:this.props.mxEvent.getTs()}):null,F=u.a.createElement("div",{className:"mx_EventTile_keyRequestInfo_tooltip_contents"},u.a.createElement("p",null,this.state.previouslyRequestedKeys?Object(v.a)("Your key share request has been sent - please check your other sessions for key share requests."):Object(v.a)("Key share requests are sent to your other sessions automatically. If you rejected or dismissed the key share request on your other sessions, click here to request the keys for this session again.")),u.a.createElement("p",null,Object(v.a)("If your other sessions do not have the key for this message you will not be able to decrypt them."))),M=this.state.previouslyRequestedKeys?Object(v.a)("Key request sent."):Object(v.a)("<requestLink>Re-request encryption keys</requestLink> from your other sessions.",{},{requestLink:e=>u.a.createElement("a",{onClick:this.onRequestKeysClick},e)}),P=E.getComponent("elements.TooltipButton"),L=h&&!d?u.a.createElement("div",{className:"mx_EventTile_keyRequestInfo"},u.a.createElement("span",{className:"mx_EventTile_keyRequestInfo_text"},M),u.a.createElement(P,{helpText:F})):null;let j;if(!d){const e=E.getComponent("messages.ReactionsRow");j=u.a.createElement(e,{mxEvent:this.props.mxEvent,reactions:this.state.reactions})}const U=u.a.createElement("a",{href:k,onClick:this.onPermalinkClicked,"aria-label":Object(T.e)(new Date(this.props.mxEvent.getTs()),this.props.isTwelveHour)},N),q=this.props.layout==C.a.IRC,G=q?null:U,z=q?U:null,K=!q&&!a&&this._renderE2EPadlock(),W=q&&!a&&this._renderE2EPadlock();let Y;if(this.props.showReadReceipts){const e=this.getReadAvatars();Y=u.a.createElement("div",{className:"mx_EventTile_msgOption"},e)}switch(this.props.tileShape){case"notif":{const e=this.context.getRoom(this.props.mxEvent.getRoomId());return u.a.createElement("div",{className:m,"aria-live":_,"aria-atomic":"true"},u.a.createElement("div",{className:"mx_EventTile_roomName"},u.a.createElement(A.a,{room:e,width:28,height:28}),u.a.createElement("a",{href:k,onClick:this.onPermalinkClicked},e?e.name:"")),u.a.createElement("div",{className:"mx_EventTile_senderDetails"},y,u.a.createElement("a",{href:k,onClick:this.onPermalinkClicked},S,N)),u.a.createElement("div",{className:"mx_EventTile_line"},u.a.createElement(c,{ref:this._tile,mxEvent:this.props.mxEvent,highlights:this.props.highlights,highlightLink:this.props.highlightLink,showUrlPreview:this.props.showUrlPreview,onHeightChanged:this.props.onHeightChanged})))}case"file_grid":return u.a.createElement("div",{className:m,"aria-live":_,"aria-atomic":"true"},u.a.createElement("div",{className:"mx_EventTile_line"},u.a.createElement(c,{ref:this._tile,mxEvent:this.props.mxEvent,highlights:this.props.highlights,highlightLink:this.props.highlightLink,showUrlPreview:this.props.showUrlPreview,tileShape:this.props.tileShape,onHeightChanged:this.props.onHeightChanged})),u.a.createElement("a",{className:"mx_EventTile_senderDetailsLink",href:k,onClick:this.onPermalinkClicked},u.a.createElement("div",{className:"mx_EventTile_senderDetails"},S,N)));case"reply":case"reply_preview":{let e;return"reply_preview"===this.props.tileShape&&(e=b.a.makeThread(this.props.mxEvent,this.props.onHeightChanged,this.props.permalinkCreator,this._replyThread)),u.a.createElement("div",{className:m,"aria-live":_,"aria-atomic":"true"},z,y,S,W,u.a.createElement("div",{className:"mx_EventTile_reply"},G,K,e,u.a.createElement(c,{ref:this._tile,mxEvent:this.props.mxEvent,highlights:this.props.highlights,highlightLink:this.props.highlightLink,onHeightChanged:this.props.onHeightChanged,replacingEventId:this.props.replacingEventId,showUrlPreview:!1})))}default:{const e=b.a.makeThread(this.props.mxEvent,this.props.onHeightChanged,this.props.permalinkCreator,this._replyThread,this.props.layout);return u.a.createElement("div",{className:m,tabIndex:-1,"aria-live":_,"aria-atomic":"true"},z,S,W,u.a.createElement("div",{className:"mx_EventTile_line"},G,K,e,u.a.createElement(c,{ref:this._tile,mxEvent:this.props.mxEvent,replacingEventId:this.props.replacingEventId,editState:this.props.editState,highlights:this.props.highlights,highlightLink:this.props.highlightLink,showUrlPreview:this.props.showUrlPreview,permalinkCreator:this.props.permalinkCreator,onHeightChanged:this.props.onHeightChanged}),L,j,I),Y,y)}}}},s()(r,"propTypes",{mxEvent:p.a.object.isRequired,isRedacted:p.a.bool,continuation:p.a.bool,last:p.a.bool,lastInSection:p.a.bool,isLastSuccessful:p.a.bool,contextual:p.a.bool,highlights:p.a.array,highlightLink:p.a.string,showUrlPreview:p.a.bool,isSelectedEvent:p.a.bool,onHeightChanged:p.a.func,readReceipts:p.a.arrayOf(p.a.object),readReceiptMap:p.a.object,checkUnmounting:p.a.func,eventSendStatus:p.a.string,tileShape:p.a.string,isTwelveHour:p.a.bool,getRelationsForEvent:p.a.func,showReactions:p.a.bool,layout:C.b,enableFlair:p.a.bool,showReadReceipts:p.a.bool}),s()(r,"defaultProps",{onHeightChanged:function(){}}),s()(r,"contextType",k.a),o=i))||o;const G=["m.room.message","m.sticker"];function V(e){return G.includes(e.getType())}function H(e){if(e.isRedacted()&&!V(e))return!1;if(e.isRelation("m.replace"))return!1;const t=B(e);return void 0!==t&&("messages.TextualEvent"===t?""!==y.a(e):"messages.RoomCreate"!==t||Boolean(e.getContent().predecessor))}function z(e){return u.a.createElement(Q,l()({title:Object(v.a)("This message cannot be decrypted"),icon:"undecryptable"},e))}function K(e){return u.a.createElement(Q,l()({title:Object(v.a)("Encrypted by an unverified session"),icon:"unverified"},e))}function W(e){return u.a.createElement(Q,l()({title:Object(v.a)("Unencrypted"),icon:"unencrypted"},e))}function Y(e){return u.a.createElement(Q,l()({title:Object(v.a)("Encrypted by a deleted session"),icon:"unknown"},e))}function $(e){return u.a.createElement(Q,l()({title:Object(v.a)("The authenticity of this encrypted message can't be guaranteed on this device."),icon:"unauthenticated"},e))}class Q extends u.a.Component{constructor(){super(),s()(this,"onHoverStart",()=>{this.setState({hover:!0})}),s()(this,"onHoverEnd",()=>{this.setState({hover:!1})}),this.state={hover:!1}}render(){let e=null;this.state.hover&&(e=u.a.createElement(P.b,{className:"mx_EventTile_e2eIcon_tooltip",label:this.props.title,dir:"auto"}));const t="mx_EventTile_e2eIcon mx_EventTile_e2eIcon_"+this.props.icon;return u.a.createElement("div",{className:t,onClick:this.onClick,onMouseEnter:this.onHoverStart,onMouseLeave:this.onHoverEnd},e)}}s()(Q,"propTypes",{icon:p.a.string.isRequired,title:p.a.string.isRequired});class J extends u.a.PureComponent{constructor(){super(),s()(this,"onHoverStart",()=>{this.setState({hover:!0})}),s()(this,"onHoverEnd",()=>{this.setState({hover:!1})}),this.state={hover:!1}}render(){const e=!this.props.messageState||"sent"===this.props.messageState,t=g()({mx_EventTile_receiptSent:e,mx_EventTile_receiptSending:!e});let n=null;if(this.state.hover){let t=Object(v.a)("Sending your message...");"encrypting"===this.props.messageState?t=Object(v.a)("Encrypting your message..."):e&&(t=Object(v.a)("Your message was sent")),n=u.a.createElement(P.b,{className:"mx_EventTile_readAvatars_receiptTooltip",label:t,yOffset:20})}return u.a.createElement("span",{className:"mx_EventTile_readAvatars"},u.a.createElement("span",{className:t,onMouseEnter:this.onHoverStart,onMouseLeave:this.onHoverEnd},n))}}},function(e,t){e.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return d}));var o=n(86),r=n.n(o);const i=/^\S+@\S+\.\S+$/,a=/^@\S+:\S+$/,s=/^!\S+:\S+$/,c=["mx-user-id","mx-room-id","email"],l=r.a.shape({addressType:r.a.oneOf(c).isRequired,address:r.a.string.isRequired,displayName:r.a.string,avatarMxc:r.a.string,isKnown:r.a.bool});function d(e){const t=i.test(e),n=a.test(e),o=s.test(e);return t?"email":n?"mx-user-id":o?"mx-room-id":null}},function(e,t,n){"use strict";function o(e,t){const n=`Store is invalid because ${e}, please stop the client, delete all data and start the client again`,o=Reflect.construct(Error,[n]);return Reflect.setPrototypeOf(o,Reflect.getPrototypeOf(this)),o.reason=e,o.value=t,o}function r(e){const t=`Crypto store is invalid because ${e}, please stop the client, delete all data and start the client again`,n=Reflect.construct(Error,[t]);return Reflect.setPrototypeOf(n,Reflect.getPrototypeOf(this)),n.reason=e,n.name="InvalidCryptoStoreError",n}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),o.TOGGLED_LAZY_LOADING="TOGGLED_LAZY_LOADING",o.prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),Reflect.setPrototypeOf(o,Error),r.TOO_NEW="TOO_NEW",r.prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),Reflect.setPrototypeOf(r,Error);class i extends Error{constructor(e,t){super(e),this.value=t}}},function(e,t,n){"use strict";n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return u})),n.d(t,"a",(function(){return h})),n.d(t,"h",(function(){return p})),n.d(t,"g",(function(){return m})),n.d(t,"e",(function(){return g})),n.d(t,"d",(function(){return f})),n.d(t,"f",(function(){return _})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"k",(function(){return y}));var o=n(83),r=n.n(o),i=n(0),a=n(7),s=n(286),c=n(285);const l="m.key.verification.",d=l+"request",u=l+"start",h=l+"cancel",p=l+"ready",m=1,g=2,f=3,_=4,b=5,v=6;class y extends a.EventEmitter{constructor(e,t,n){super(),r()(this,"_cancelOnTimeout",()=>{try{this.initiatedByMe?this.cancel({reason:"Other party didn't accept in time",code:"m.timeout"}):this.cancel({reason:"User didn't accept in time",code:"m.timeout"})}catch(e){i.a.error("Error while cancelling verification request",e)}}),this.channel=e,this.channel._request=this,this._verificationMethods=t,this._client=n,this._commonMethods=[],this._setPhase(m,!1),this._eventsByUs=new Map,this._eventsByThem=new Map,this._observeOnly=!1,this._timeoutTimer=null,this._accepting=!1,this._declining=!1,this._verifierHasFinished=!1,this._cancelled=!1,this._chosenMethod=null,this._qrCodeData=null,this._requestReceivedAt=null}static validateEvent(e,t,n){const o=t.getContent();return!(!e||!e.startsWith(l))&&(o?e!==d&&e!==p||Array.isArray(o.methods)?e!==d&&e!==p&&e!==u||"string"==typeof o.from_device&&0!==o.from_device.length||(i.a.log("VerificationRequest: validateEvent: fail because from_device"),!1):(i.a.log("VerificationRequest: validateEvent: fail because methods"),!1):(i.a.log("VerificationRequest: validateEvent: no content"),!1))}get invalid(){return this.phase===m}get requested(){return this.phase===g}get cancelled(){return this.phase===b}get ready(){return this.phase===f}get started(){return this.phase===_}get done(){return this.phase===v}get methods(){return this._commonMethods}get chosenMethod(){return this._chosenMethod}calculateEventTimeout(e){let t=this.channel.getTimestamp(e)+6e5;if(this._requestReceivedAt&&!this.initiatedByMe&&this.phase<=g){const e=this._requestReceivedAt+12e4;t=Math.min(t,e)}return Math.max(0,t-Date.now())}get timeout(){const e=this._getEventByEither(d);return e?this.calculateEventTimeout(e):0}get requestEvent(){return this._getEventByEither(d)}get phase(){return this._phase}get verifier(){return this._verifier}get canAccept(){return this.phase<f&&!this._accepting&&!this._declining}get accepting(){return this._accepting}get declining(){return this._declining}get pending(){return!this.observeOnly&&this._phase!==v&&this._phase!==b}get qrCodeData(){return this._qrCodeData}otherPartySupportsMethod(e,t=!1){if(!t&&!this.ready&&!this.started)return!1;const n=this._eventsByThem.get(d)||this._eventsByThem.get(p);if(!n){if(this.started&&this.initiatedByMe){const t=this._eventsByUs.get(u),n=t&&t.getContent();return e==(n&&n.method)}return!1}const o=n.getContent();if(!o)return!1;const{methods:r}=o;return!!Array.isArray(r)&&r.includes(e)}get initiatedByMe(){const e=this._eventsByUs.size+this._eventsByThem.size===0;if(this._phase===m&&e)return!0;const t=this._eventsByUs.has(d),n=this._eventsByThem.has(d);if(t&&!n)return!0;if(!t&&n)return!1;const o=this._eventsByUs.has(u),r=this._eventsByThem.has(u);return!(!o||r)}get requestingUserId(){return this.initiatedByMe?this._client.getUserId():this.otherUserId}get receivingUserId(){return this.initiatedByMe?this.otherUserId:this._client.getUserId()}get otherUserId(){return this.channel.userId}get isSelfVerification(){return this._client.getUserId()===this.otherUserId}get cancellingUserId(){const e=this._eventsByUs.get(h),t=this._eventsByThem.get(h);return e&&(!t||e.getId()<t.getId())?e.getSender():t?t.getSender():void 0}get cancellationCode(){const e=this._getEventByEither(h);return e?e.getContent().code:null}get observeOnly(){return this._observeOnly}get targetDevice(){const e=(this._eventsByThem.get(d)||this._eventsByThem.get(p)||this._eventsByThem.get(u)).getContent().from_device;return{userId:this.otherUserId,deviceId:e}}beginKeyVerification(e,t=null){if(!this.observeOnly&&!this._verifier){if(this.phase===g||this.phase===f||this.phase===m&&this.channel.constructor.canCreateRequest(u)){if(this._commonMethods.length&&!this._commonMethods.includes(e))throw Object(s.g)();if(this._verifier=this._createVerifier(e,null,t),!this._verifier)throw Object(s.g)();this._chosenMethod=e}}return this._verifier}async sendRequest(){if(!this.observeOnly&&this._phase===m){const e=[...this._verificationMethods.keys()];await this.channel.send(d,{methods:e})}}async cancel({reason:e="User declined",code:t="m.user"}={}){if(!this.observeOnly&&this._phase!==b){if(this._declining=!0,this.emit("change"),this._verifier)return this._verifier.cancel(Object(s.a)(t,e)());this._cancellingUserId=this._client.getUserId(),await this.channel.send(h,{code:t,reason:e})}}async accept(){if(!this.observeOnly&&this.phase===g&&!this.initiatedByMe){const e=[...this._verificationMethods.keys()];this._accepting=!0,this.emit("change"),await this.channel.send(p,{methods:e})}}waitFor(e){return new Promise((t,n)=>{const o=()=>{let r=!1;return e(this)?(t(this),r=!0):this.cancelled&&(n(new Error("cancelled")),r=!0),r&&this.off("change",o),r};o()||this.on("change",o)})}_setPhase(e,t=!0){this._phase=e,t&&this.emit("change")}_getEventByEither(e){return this._eventsByThem.get(e)||this._eventsByUs.get(e)}_getEventBy(e,t){return t?this._eventsByThem.get(e):this._eventsByUs.get(e)}_calculatePhaseTransitions(){const e=[{phase:m}],t=()=>e[e.length-1].phase,n=this._eventsByThem.has(d),o=this._getEventBy(d,n);o&&e.push({phase:g,event:o});const r=o&&this._getEventBy(p,!n);let i;if(r&&t()===g&&e.push({phase:f,event:r}),r||!o){const e=this._eventsByThem.get(u),t=this._eventsByUs.get(u);i=e&&t?e.getSender()<t.getSender()?e:t:e||t}else i=this._getEventBy(u,!n);if(i){const n=t()===g&&o.getSender()!==i.getSender(),r=t()===m&&this.channel.constructor.canCreateRequest(u);(n||t()===f||r)&&e.push({phase:_,event:i})}const a=this._eventsByUs.get("m.key.verification.done");(this._verifierHasFinished||a&&t()===_)&&e.push({phase:v});const s=this._getEventByEither(h);return(this._cancelled||s)&&t()!==v?(e.push({phase:b,event:s}),e):e}_transitionToPhase(e){const{phase:t,event:n}=e;if((t===g||t===f)&&!this._wasSentByOwnDevice(n)){const e=n.getContent();this._commonMethods=e.methods.filter(e=>this._verificationMethods.has(e))}if(this.observeOnly||t!==g&&t!==_&&t!==f||this.channel.receiveStartFromOtherDevices&&this._wasSentByOwnUser(n)&&!this._wasSentByOwnDevice(n)&&(this._observeOnly=!0),t===_){const{method:e}=n.getContent();this._verifier||this.observeOnly||(this._verifier=this._createVerifier(e,n),this._verifier?this._chosenMethod=e:this.cancel({code:"m.unknown_method",reason:"Unknown method: "+e}))}}_applyPhaseTransitions(){const e=this._calculatePhaseTransitions(),t=e.findIndex(e=>e.phase===this.phase),n=e.slice(t+1);for(const e of n)this._transitionToPhase(e);return n}_isWinningStartRace(e){if(e.getType()!==u)return!1;const t=this._verifier.startEvent;let n,o;if(this.isSelfVerification)if(t){const e=t.getContent();n=e&&e.from_device}else n=this._client.getDeviceId();else n=t?t.getSender():this._client.getUserId();if(this.isSelfVerification){const t=e.getContent();o=t&&t.from_device}else o=e.getSender();return o<n}hasEventId(e){for(const t of this._eventsByUs.values())if(t.getId()===e)return!0;for(const t of this._eventsByThem.values())if(t.getId()===e)return!0;return!1}async handleEvent(e,t,n,o,r){if(this.done||this.cancelled)return;const a=this._observeOnly;if(this._adjustObserveOnly(t,n),!this.observeOnly&&!o&&await this._cancelOnError(e,t))return;if(r?this._eventsByUs.has(e):this._eventsByThem.has(e))return;const s=this.phase;this._addEvent(e,t,r);const l=this._applyPhaseTransitions();try{if(this._verifier&&!this.observeOnly){const n=this._isWinningStartRace(t);this._verifier.canSwitchStartEvent(t)&&n?this._verifier.switchStartEvent(t):o||(e===h||this._verifier.events&&this._verifier.events.includes(e))&&this._verifier.handleEvent(t)}if(l.length){if(n&&l.some(e=>e.phase===f)){this.otherPartySupportsMethod(c.c,!0)&&(this._qrCodeData=await c.a.create(this,this._client))}const e=l[l.length-1],{phase:t}=e;this._setupTimeout(t),this._setPhase(t)}else this._observeOnly!==a&&this.emit("change")}finally{i.a.log(`Verification request ${this.channel.transactionId}: ${e} event with id:${t.getId()}, content:${JSON.stringify(t.getContent())} deviceId:${this.channel.deviceId}, sender:${t.getSender()}, isSentByUs:${r}, isLiveEvent:${n}, isRemoteEcho:${o}, phase:${s}=>${this.phase}, observeOnly:${a}=>${this._observeOnly}`)}}_setupTimeout(e){if(!this._timeoutTimer&&!this.observeOnly&&e===g&&(this._timeoutTimer=setTimeout(this._cancelOnTimeout,this.timeout)),this._timeoutTimer){(e===_||e===f||e===v||e===b)&&(clearTimeout(this._timeoutTimer),this._timeoutTimer=null)}}async _cancelOnError(e,t){if(e===u){const e=t.getContent().method;if(!this._verificationMethods.has(e))return await this.cancel(Object(s.b)(Object(s.g)())),!0}const n=e===d&&this.phase!==m,o=e===p&&this.phase!==g;if(this.phase!==m&&(n||o)){i.a.warn(`Cancelling, unexpected ${e} verification event from `+t.getSender());const n=`Unexpected ${e} event in phase ${this.phase}`;return await this.cancel(Object(s.b)(Object(s.f)({reason:n}))),!0}return!1}_adjustObserveOnly(e,t){t||(this._observeOnly=!0),this.calculateEventTimeout(e)<3e3&&(this._observeOnly=!0)}_addEvent(e,t,n){if(n?this._eventsByUs.set(e,t):this._eventsByThem.set(e,t),e===d){for(const[e,t]of this._eventsByThem.entries())t.getSender()!==this.otherUserId&&this._eventsByThem.delete(e);this._requestReceivedAt=Date.now()}}_createVerifier(e,t=null,n=null){n||(n=this.targetDevice);const{userId:o,deviceId:r}=n,a=this._verificationMethods.get(e);if(a)return new a(this.channel,this._client,o,r,t,this);i.a.warn("could not find verifier constructor for method",e)}_wasSentByOwnUser(e){return e.getSender()===this._client.getUserId()}_wasSentByOwnDevice(e){if(!this._wasSentByOwnUser(e))return!1;const t=e.getContent();return!(!t||t.from_device!==this._client.getDeviceId())}onVerifierCancelled(){this._cancelled=!0;const e=this._applyPhaseTransitions();e.length&&this._setPhase(e[e.length-1].phase)}onVerifierFinished(){this.channel.send("m.key.verification.done",{}),this._verifierHasFinished=!0;const e=this._applyPhaseTransitions();e.length&&this._setPhase(e[e.length-1].phase)}getEventFromOtherParty(e){return this._eventsByThem.get(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(83),r=n.n(o),i=n(141),a=n(89),s=n(249),c=n(288),l=n(132),d=n(138),u=n(115),h=n(88);function p(e){var t;return`${null!==(t=e.roomId)&&void 0!==t?t:h.a.get().getUserId()}::${e.id}`}class m extends i.a{constructor(){super(a.a,{}),r()(this,"widgetMap",new Map),r()(this,"roomMap",new Map),r()(this,"onWidgetEchoStoreUpdate",(e,t)=>{this.initRoom(e),this.loadRoomWidgets(this.matrixClient.getRoom(e)),this.emit(u.b,e)}),r()(this,"onRoom",e=>{this.initRoom(e.roomId),this.loadRoomWidgets(e),this.emit(u.b,e.roomId)}),r()(this,"onRoomStateEvents",e=>{if("im.vector.modular.widgets"!==e.getType())return;const t=e.getRoomId();this.initRoom(t),this.loadRoomWidgets(this.matrixClient.getRoom(t)),this.emit(u.b,t)}),r()(this,"getRoom",(e,t=!1)=>(t&&this.initRoom(e),this.roomMap.get(e))),s.a.on("update",this.onWidgetEchoStoreUpdate)}static get instance(){return m.internalInstance}initRoom(e){this.roomMap.has(e)||this.roomMap.set(e,{widgets:[]})}async onReady(){this.matrixClient.on("Room",this.onRoom),this.matrixClient.on("RoomState.events",this.onRoomStateEvents),this.matrixClient.getRooms().forEach(e=>{this.loadRoomWidgets(e)}),this.emit(u.b,null)}async onNotReady(){this.matrixClient.off("Room",this.onRoom),this.matrixClient.off("RoomState.events",this.onRoomStateEvents),this.widgetMap=new Map,this.roomMap=new Map,await this.reset({})}async onAction(e){}generateApps(e){return s.a.getEchoedRoomWidgets(e.roomId,l.a.getRoomWidgets(e)).map(e=>l.a.makeAppConfig(e.getStateKey(),e.getContent(),e.getSender(),e.getRoomId(),e.getId()))}loadRoomWidgets(e){if(!e)return;const t=this.roomMap.get(e.roomId)||{};t.widgets=[],Array.from(this.widgetMap.values()).forEach(t=>{t.roomId===e.roomId&&this.widgetMap.delete(p(t))});let n=!1;this.generateApps(e).forEach(e=>{const o=this.widgetMap.get(p(e));o&&console.warn(`Possible widget ID conflict for ${e.id} - wants to store in room ${e.roomId} but is currently stored as ${o.roomId} - letting the want win`),this.widgetMap.set(p(e),e),t.widgets.push(e),n=!0}),n&&!this.roomMap.has(e.roomId)&&this.roomMap.set(e.roomId,t),this.emit(e.roomId)}getApps(e){const t=this.getRoom(e);return(null==t?void 0:t.widgets)||[]}doesRoomHaveConference(e){const t=this.getRoom(e.roomId);if(!t)return!1;const n=t.widgets.filter(e=>d.a.JITSI.matches(e.type)),o=s.a.roomHasPendingWidgetsOfType(e.roomId,[],d.a.JITSI);return n.length>0||o}isJoinedToConferenceIn(e){const t=this.getRoom(e.roomId);if(!t)return!1;return t.widgets.filter(e=>d.a.JITSI.matches(e.type)).some(e=>c.a.getWidgetPersistence(e.id))}}r()(m,"internalInstance",new m),window.mxWidgetStore=m.instance},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},t.asArray=function(e){return Array.isArray(e)?e:[e]}},function(e,t,n){"use strict";let o;n.d(t,"a",(function(){return o})),function(e){e[e.None=0]="None",e[e.Bold=1]="Bold",e[e.Grey=2]="Grey",e[e.Red=3]="Red"}(o||(o={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var o=n(83),r=n.n(o),i=n(7),a=n(216);const s="update";class c extends i.EventEmitter{constructor(...e){super(...e),r()(this,"_symbol",void 0),r()(this,"_count",void 0),r()(this,"_color",void 0)}get symbol(){return this._symbol}get count(){return this._count}get color(){return this._color}get isIdle(){return this.color<=a.a.None}get isUnread(){return this.color>=a.a.Bold}get hasUnreadCount(){return this.color>=a.a.Grey&&(!!this.count||!!this.symbol)}get hasMentions(){return this.color>=a.a.Red}emitIfUpdated(e){e.isDifferentFrom(this)&&this.emit(s)}snapshot(){return new l(this)}destroy(){this.removeAllListeners(s)}}class l{constructor(e){r()(this,"symbol",void 0),r()(this,"count",void 0),r()(this,"color",void 0),this.symbol=e.symbol,this.count=e.count,this.color=e.color}isDifferentFrom(e){const t={count:this.count,symbol:this.symbol,color:this.color},n={count:e.count,symbol:e.symbol,color:e.color};return JSON.stringify(t)!==JSON.stringify(n)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(82),r=n.n(o),i=n(86),a=n.n(i),s=n(92),c=n.n(s),l=n(84),d=n(93),u=n(204);const h={VERIFIED:"verified",WARNING:"warning",UNKNOWN:"unknown",NORMAL:"normal",UNAUTHENTICATED:"unauthenticated"},p={[h.WARNING]:Object(l.b)("This user has not verified all of their sessions."),[h.NORMAL]:Object(l.b)("You have not verified this user."),[h.VERIFIED]:Object(l.b)("You have verified this user. This user has verified all of their sessions.")},m={[h.WARNING]:Object(l.b)("Someone is using an unknown session"),[h.NORMAL]:Object(l.b)("This room is end-to-end encrypted"),[h.VERIFIED]:Object(l.b)("Everyone in this room is verified")},g=({isUser:e,status:t,className:n,size:i,onClick:a,hideTooltip:s,bordered:g})=>{const[f,_]=Object(o.useState)(!1),b=c()({mx_E2EIcon:!0,mx_E2EIcon_bordered:g,mx_E2EIcon_warning:t===h.WARNING,mx_E2EIcon_normal:t===h.NORMAL,mx_E2EIcon_verified:t===h.VERIFIED},n);let v,y;v=e?p[t]:m[t],i&&(y={width:i+"px",height:i+"px"});const E=()=>_(!0),S=()=>_(!1);let w;return f&&!s&&(w=r.a.createElement(u.b,{label:v?Object(l.a)(v):""})),a?r.a.createElement(d.a,{onClick:a,onMouseOver:E,onMouseLeave:S,className:b,style:y},w):r.a.createElement("div",{onMouseOver:E,onMouseLeave:S,className:b,style:y},w)};g.propTypes={isUser:a.a.bool,status:a.a.oneOf(Object.values(h)),className:a.a.string,size:a.a.number,onClick:a.a.func},t.b=g},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o,r=n(95),i=n.n(r),a=n(100),s=n.n(a),c=n(83),l=n.n(c),d=n(82),u=n.n(d),h=n(92),p=n.n(h),m=n(159),g=n(90),f=n(93),_=n(217),b=n(85);let v=Object(b.a)("views.rooms.NotificationBadge")(o=class extends u.a.PureComponent{constructor(e){super(e),l()(this,"countWatcherRef",void 0),l()(this,"countPreferenceChanged",()=>{this.setState({showCounts:g.b.getValue("Notifications.alwaysShowBadgeCounts",this.roomId)})}),l()(this,"onNotificationUpdate",()=>{this.forceUpdate()}),this.props.notification.on(_.a,this.onNotificationUpdate),this.state={showCounts:g.b.getValue("Notifications.alwaysShowBadgeCounts",this.roomId)},this.countWatcherRef=g.b.watchSetting("Notifications.alwaysShowBadgeCounts",this.roomId,this.countPreferenceChanged)}get roomId(){return this.props.roomId||null}componentWillUnmount(){g.b.unwatchSetting(this.countWatcherRef),this.props.notification.off(_.a,this.onNotificationUpdate)}componentDidUpdate(e){e.notification&&e.notification.off(_.a,this.onNotificationUpdate),this.props.notification.on(_.a,this.onNotificationUpdate)}render(){const e=this.props,{notification:t,forceCount:n,roomId:o,onClick:r}=e,a=s()(e,["notification","forceCount","roomId","onClick"]);if(t.isIdle)return null;let c=!(t.symbol||t.count>0)||!t.hasUnreadCount;if(n&&(c=!1,!t.hasUnreadCount))return null;let l=t.symbol||Object(m.c)(t.count);c&&(l="");const d=p()({mx_NotificationBadge:!0,mx_NotificationBadge_visible:!!c||t.hasUnreadCount,mx_NotificationBadge_highlighted:t.hasMentions,mx_NotificationBadge_dot:c,mx_NotificationBadge_2char:l.length>0&&l.length<3,mx_NotificationBadge_3char:l.length>2});return r?u.a.createElement(f.a,i()({},a,{className:d,onClick:r}),u.a.createElement("span",{className:"mx_NotificationBadge_count"},l)):u.a.createElement("div",{className:d},u.a.createElement("span",{className:"mx_NotificationBadge_count"},l))}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o,r,i,a=n(95),s=n.n(a),c=n(100),l=n.n(c),d=n(83),u=n.n(d),h=n(82),p=n.n(h),m=n(86),g=n.n(m),f=n(87),_=n(85);let b=Object(_.a)("views.elements.TextWithTooltip")((i=r=class extends p.a.Component{constructor(){super(),u()(this,"onMouseOver",()=>{this.setState({hover:!0})}),u()(this,"onMouseLeave",()=>{this.setState({hover:!1})}),this.state={hover:!1}}render(){const e=f.getComponent("elements.Tooltip"),t=this.props,{class:n,children:o,tooltip:r,tooltipClass:i}=t,a=l()(t,["class","children","tooltip","tooltipClass"]);return p.a.createElement("span",s()({},a,{onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave,className:n}),o,this.state.hover&&p.a.createElement(e,{label:r,tooltipClassName:i,className:"mx_TextWithTooltip_tooltip"}))}},u()(r,"propTypes",{class:g.a.string,tooltipClass:g.a.string,tooltip:g.a.node.isRequired}),o=i))||o},function(e,t,n){"use strict";t.a={SHOW_ENCRYPTION_SETUP_UI:!0}},function(e,t,n){"use strict";(function(e){var o=n(107),r=n(1271),i=n(88),a=n(90),s=n(98);class c{constructor(){this.index=null,this._supportIsInstalled=!1,this.error=null}async init(){const e=o.a.get().getEventIndexingManager();return e?(this._supportIsInstalled=await e.supportsEventIndexing(),this.supportIsInstalled()?a.b.getValueAt(s.a.DEVICE,"enableEventIndexing")?this.initEventIndex():(console.log("EventIndex: Event indexing is disabled, not initializing"),!1):(console.log("EventIndex: Event indexing isn't installed for the platform, not initializing."),!1)):(console.log("EventIndex: Platform doesn't support event indexing, not initializing."),!1)}async initEventIndex(){const e=new r.a,t=o.a.get().getEventIndexingManager(),n=i.a.get(),a=n.getUserId(),s=n.getDeviceId();try{await t.initEventIndex(a,s);const n=await t.getUserVersion(),o=await t.isEventIndexEmpty();o?await t.setUserVersion(1):0!==n||o||(await t.closeEventIndex(),await this.deleteEventIndex(),await t.initEventIndex(a,s),await t.setUserVersion(1)),console.log("EventIndex: Successfully initialized the event index"),await e.init()}catch(e){return console.log("EventIndex: Error initializing the event index",e),this.error=e,!1}return this.index=e,!0}platformHasSupport(){return null!==o.a.get().getEventIndexingManager()}supportIsInstalled(){return this._supportIsInstalled}get(){return this.index}start(){null!==this.index&&this.index.startCrawler()}stop(){null!==this.index&&this.index.stopCrawler()}async unset(){null!==this.index&&(await this.index.close(),this.index=null)}async deleteEventIndex(){const e=o.a.get().getEventIndexingManager();null!==e&&(await this.unset(),console.log("EventIndex: Deleting event index."),await e.deleteEventIndex())}}e.mxEventIndexPeg||(e.mxEventIndexPeg=new c),t.a=e.mxEventIndexPeg}).call(this,n(6))},function(e,t,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(82),r=n.n(o),i=n(92),a=n.n(i),s=n(113),c=n(84),l=n(93),d=n(89),u=n(96);const h=({className:e,title:t,children:n})=>r.a.createElement("div",{className:a()("mx_BaseCard_Group",e)},r.a.createElement("h1",null,t),n);t.b=({closeLabel:e,onClose:t,className:n,header:o,footer:i,withoutScrollContainer:h,previousPhase:p,children:m,refireParams:g})=>{let f,_;if(p){const e=()=>{d.a.dispatch({action:u.a.SetRightPanelPhase,phase:p,refireParams:g})};f=r.a.createElement(l.a,{className:"mx_BaseCard_back",onClick:e,title:Object(c.a)("Back")})}return t&&(_=r.a.createElement(l.a,{className:"mx_BaseCard_close",onClick:t,title:e||Object(c.a)("Close")})),h||(m=r.a.createElement(s.a,null,m)),r.a.createElement("div",{className:a()("mx_BaseCard",n)},r.a.createElement("div",{className:"mx_BaseCard_header"},f,_,o),m,i&&r.a.createElement("div",{className:"mx_BaseCard_footer"},i))}},function(e,t){var n,o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return o[e]},t.getBCHDigit=function(e){for(var t=0;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},function(e,t,n){var o=n(707),r=n(708);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!o.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return r.testNumeric(e)?t.NUMERIC:r.testAlphanumeric(e)?t.ALPHANUMERIC:r.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},function(e,t){var n,o,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var c,l=[],d=!1,u=-1;function h(){d&&c&&(d=!1,c.length?l=c.concat(l):u=-1,l.length&&p())}function p(){if(!d){var e=s(h);d=!0;for(var t=l.length;t;){for(c=l,l=[];++u<t;)c&&c[u].run();u=-1,t=l.length}c=null,d=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new m(e,t)),1!==l.length||d||s(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=g,r.addListener=g,r.once=g,r.off=g,r.removeListener=g,r.removeAllListeners=g,r.emit=g,r.prependListener=g,r.prependOnceListener=g,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));class o{}},function(e,t,n){"use strict";var o=n(82),r=n(162);const i=Object(o.createContext)({roomLoading:!0,peekLoading:!1,shouldPeek:!0,membersLoaded:!1,numUnreadMessages:0,draggingFile:!1,searching:!1,guestsCanJoin:!1,canPeek:!1,showApps:!1,isPeeking:!1,showingPinned:!1,showReadReceipts:!0,showRightPanel:!0,joining:!1,atEndOfLiveTimeline:!0,atEndOfLiveTimelineInit:!1,showTopUnreadMessagesBar:!1,statusBarVisible:!1,canReact:!1,canReply:!1,layout:r.a.Group,matrixClientIsReady:!1,dragCounter:0});i.displayName="RoomContext",t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(1),r=n(0);const i=["override","content","room","sender","underride"],a=[{rule_id:".m.rule.tombstone",default:!0,enabled:!0,conditions:[{kind:"event_match",key:"type",pattern:"m.room.tombstone"},{kind:"event_match",key:"state_key",pattern:""}],actions:["notify",{set_tweak:"highlight",value:!0}]},{rule_id:".m.rule.reaction",default:!0,enabled:!0,conditions:[{kind:"event_match",key:"type",pattern:"m.reaction"}],actions:["dont_notify"]}];function s(e){const t={},n=(e,t)=>{for(let n=0;n<i.length;++n){const o=i[n],a=t[o];if(a)for(let t=0;t<a.length;++t){const n=a[t];if(!n.enabled)continue;const i=r(o,n);if(i&&this.ruleMatchesEvent(i,e))return n.kind=o,n}}return null},r=function(e,t){const n={rule_id:t.rule_id,actions:t.actions,conditions:[]};switch(e){case"underride":case"override":n.conditions=t.conditions;break;case"room":if(!t.rule_id)return null;n.conditions.push({kind:"event_match",key:"room_id",value:t.rule_id});break;case"sender":if(!t.rule_id)return null;n.conditions.push({kind:"event_match",key:"user_id",value:t.rule_id});break;case"content":if(!t.pattern)return null;n.conditions.push({kind:"event_match",key:"content.body",pattern:t.pattern})}return n},a=function(e,t){const n={event_match:u,contains_display_name:d,room_member_count:l,sender_notification_permission:c};return!!n[e.kind]&&n[e.kind](e,t)},c=function(t,n){const o=t.key;if(!o)return!1;const r=e.getRoom(n.getRoomId());return!(!r||!r.currentState)&&r.currentState.mayTriggerNotifOfType(o,n.getSender())},l=function(t,n){if(!t.is)return!1;const o=e.getRoom(n.getRoomId());if(!o||!o.currentState||!o.currentState.members)return!1;const r=o.currentState.getJoinedMemberCount(),i=t.is.match(/^([=<>]*)([0-9]*)$/);if(!i)return!1;const a=i[1],s=parseInt(i[2]);if(isNaN(s))return!1;switch(a){case"":case"==":return r==s;case"<":return r<s;case">":return r>s;case"<=":return r<=s;case">=":return r>=s;default:return!1}},d=function(t,n){let r=n.getContent();if(n.isEncrypted()&&n.getClearContent()&&(r=n.getClearContent()),!r||!r.body||"string"!=typeof r.body)return!1;const i=e.getRoom(n.getRoomId());if(!(i&&i.currentState&&i.currentState.members&&i.currentState.getMember(e.credentials.userId)))return!1;const a=i.currentState.getMember(e.credentials.userId).name,s=new RegExp("(^|\\W)"+Object(o.i)(a)+"(\\W|$)","i");return r.body.search(s)>-1},u=function(e,t){if(!e.key)return!1;const n=p(e.key,t);if("string"!=typeof n)return!1;if(e.value)return e.value===n;if("string"!=typeof e.pattern)return!1;let o;return o="content.body"==e.key?h("(^|\\W)",e.pattern,"(\\W|$)"):h("^",e.pattern,"$"),!!n.match(o)},h=function(e,n,r){return t[n]||(t[n]=new RegExp(e+Object(o.o)(n)+r,"i")),t[n]},p=function(e,t){const n=e.split(".");let r;const i=n[0];for("content"===i?(r=t.getContent(),n.shift()):"type"===i?(r=t.getType(),n.shift()):r=t.event;n.length>0;){const e=n.shift();if(Object(o.s)(r[e]))return null;r=r[e]}return r},m=function(t,o){const r=function(t,o){return o?t.getSender()===e.credentials.userId?null:n(t,o.global):null}(t,o);if(!r)return{};const i=s.actionListToActionsObject(r.actions);return void 0===i.tweaks.highlight&&(i.tweaks.highlight="content"==r.kind),i};this.ruleMatchesEvent=function(e,t){let n=!0;for(let o=0;o<e.conditions.length;++o){const r=e.conditions[o];n&=a(r,t)}return n},this.actionsForEvent=function(t){return m(t,e.pushRules)},this.getPushRuleById=function(t){for(const n of["global"])if(void 0!==e.pushRules[n])for(const o of i)if(void 0!==e.pushRules[n][o])for(const r of e.pushRules[n][o])if(r.rule_id===t)return r;return null}}s.actionListToActionsObject=function(e){const t={notify:!1,tweaks:{}};for(let n=0;n<e.length;++n){const o=e[n];"notify"===o?t.notify=!0:"object"==typeof o&&(void 0===o.value&&(o.value=!0),t.tweaks[o.set_tweak]=o.value)}return t},s.rewriteDefaultRules=function(e){let t=JSON.parse(JSON.stringify(e));t||(t={}),t.global||(t.global={}),t.global.override||(t.global.override=[]);const n=t.global.override;for(const e of a){const t=n.find(t=>t.rule_id===e.rule_id);if(t)t.default=e.default,t.conditions=e.conditions,t.actions=e.actions;else{const t=e.rule_id;r.a.warn("Adding default global override for "+t),n.push(e)}}return t}},function(e,t,n){var o=n(182),r=n(268);e.exports=n(183)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(233);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var o=n(373);e.exports=function(e){return Object(o(e))}},function(e,t,n){var o=n(522),r=n(373);e.exports=function(e){return o(r(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.top,n=e.right,o=e.bottom,r=e.left;return{top:t,right:n,bottom:o,left:r,width:n-r,height:o-t,center:{x:(n+r)/2,y:(o+t)/2}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(189)),r=i(n(143));function i(e){return e&&e.__esModule?e:{default:e}}t.default=(0,r.default)((function(e,t){return(0,o.default)(t).map((function(e){return t[e]})).filter((function(t){return e.descriptor.id===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}))}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(532)),r=i(n(386));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.draggable,n=e.destination,i=e.previousImpact,a=e.viewport,s=t.descriptor.id,c=(0,o.default)(i.movement.displaced),l=(0,r.default)({target:t.page.withMargin,destination:n,viewport:a}),d=function(){if(!l)return!1;var e=c[s];return!e||e.shouldAnimate}();return{draggableId:s,isVisible:l,shouldAnimate:d}}},function(e,t,n){"use strict";let o,r;n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),function(e){e.Manual="MANUAL",e.Alphabetic="ALPHABETIC",e.Recent="RECENT"}(o||(o={})),function(e){e.Importance="IMPORTANCE",e.Natural="NATURAL"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return R}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(87),u=n(84),h=n(86),p=n.n(h),m=n(89),g=n(134),f=n(103),_=n(109),b=n(90),v=n(162),y=n(922),E=n.n(y),S=n(97),w=n(96),C=n(325),T=n.n(C),x=n(106),O=n(127),k=n(85);let R=Object(k.a)("views.elements.ReplyThread")((i=r=class e extends l.a.Component{constructor(e,t){super(e,t),s()(this,"updateForEventId",e=>{this.state.events.some(t=>t.getId()===e)&&this.forceUpdate()}),s()(this,"onEventReplaced",e=>{this.unmounted||this.updateForEventId(e.getId())}),s()(this,"onRoomRedaction",e=>{if(this.unmounted)return;const t=e.getAssociatedId();t&&this.updateForEventId(t)}),this.state={events:[],loadedEv:null,loading:!0,err:!1},this.unmounted=!1,this.context.on("Event.replaced",this.onEventReplaced),this.room=this.context.getRoom(this.props.parentEv.getRoomId()),this.room.on("Room.redaction",this.onRoomRedaction),this.room.on("Room.redactionCancelled",this.onRoomRedaction),this.onQuoteClick=this.onQuoteClick.bind(this),this.canCollapse=this.canCollapse.bind(this),this.collapse=this.collapse.bind(this)}static getParentEventId(e){if(!e||e.isRedacted())return;const t=e.getWireContent()["m.relates_to"];if(t&&t["m.in_reply_to"]){const e=t["m.in_reply_to"];if(e&&e.event_id)return e.event_id}}static stripPlainReply(e){const t=e.split("\n");for(;t.length&&t[0].startsWith("> ");)t.shift();return""===t[0]&&t.shift(),t.join("\n")}static stripHTMLReply(e){return T()(e,{allowedTags:!1,allowedAttributes:!1,allowedSchemes:[...O.a,"mxc"],exclusiveFilter:e=>"mx-reply"===e.tag})}static getNestedReplyText(e,t){if(!e)return null;let{body:n,formatted_body:o}=e.getContent();this.getParentEventId(e)&&n&&(n=this.stripPlainReply(n)),n||(n=""),o=o?this.stripHTMLReply(o):E()(n).replace(/\n/g,"<br/>");const r=t.forEvent(e.getId()),i=Object(_.h)(e.getSender()),a=e.getSender();switch(e.getContent().msgtype){case"m.text":case"m.notice":{o=`<mx-reply><blockquote><a href="${r}">In reply to</a> <a href="${i}">${a}</a><br>${o}</blockquote></mx-reply>`;const e=n.trim().split("\n");e.length>0&&(e[0]=`<${a}> ${e[0]}`,n=e.map(e=>"> "+e).join("\n")+"\n\n");break}case"m.image":o=`<mx-reply><blockquote><a href="${r}">In reply to</a> <a href="${i}">${a}</a><br>sent an image.</blockquote></mx-reply>`,n=`> <${a}> sent an image.\n\n`;break;case"m.video":o=`<mx-reply><blockquote><a href="${r}">In reply to</a> <a href="${i}">${a}</a><br>sent a video.</blockquote></mx-reply>`,n=`> <${a}> sent a video.\n\n`;break;case"m.audio":o=`<mx-reply><blockquote><a href="${r}">In reply to</a> <a href="${i}">${a}</a><br>sent an audio file.</blockquote></mx-reply>`,n=`> <${a}> sent an audio file.\n\n`;break;case"m.file":o=`<mx-reply><blockquote><a href="${r}">In reply to</a> <a href="${i}">${a}</a><br>sent a file.</blockquote></mx-reply>`,n=`> <${a}> sent a file.\n\n`;break;case"m.emote":{o=`<mx-reply><blockquote><a href="${r}">In reply to</a> * <a href="${i}">${a}</a><br>${o}</blockquote></mx-reply>`;const e=n.trim().split("\n");e.length>0&&(e[0]=`* <${a}> ${e[0]}`,n=e.map(e=>"> "+e).join("\n")+"\n\n");break}default:return null}return{body:n,html:o}}static makeReplyMixIn(e){return e?{"m.relates_to":{"m.in_reply_to":{event_id:e.getId()}}}:{}}static makeThread(t,n,o,r,i){return e.getParentEventId(t)?l.a.createElement(e,{parentEv:t,onHeightChanged:n,ref:r,permalinkCreator:o,layout:i}):l.a.createElement("div",{className:"mx_ReplyThread_wrapper_empty"})}componentDidMount(){this.initialize()}componentDidUpdate(){this.props.onHeightChanged()}componentWillUnmount(){this.unmounted=!0,this.context.removeListener("Event.replaced",this.onEventReplaced),this.room&&(this.room.removeListener("Room.redaction",this.onRoomRedaction),this.room.removeListener("Room.redactionCancelled",this.onRoomRedaction))}async initialize(){const{parentEv:t}=this.props,n=await this.getEvent(e.getParentEventId(t));this.unmounted||(n?this.setState({events:[n]},this.loadNextEvent):this.setState({err:!0}))}async loadNextEvent(){if(this.unmounted)return;const t=this.state.events[0],n=e.getParentEventId(t);if(!n)return void this.setState({loading:!1});const o=await this.getEvent(n);this.unmounted||(o?this.setState({loadedEv:o}):this.setState({err:!0}))}async getEvent(e){const t=this.room.findEventById(e);if(t)return t;try{await this.context.getEventTimeline(this.room.getUnfilteredTimelineSet(),e)}catch(e){return null}return this.room.findEventById(e)}canCollapse(){return this.state.events.length>1}collapse(){this.initialize()}onQuoteClick(){const e=[this.state.loadedEv,...this.state.events];this.setState({loadedEv:null,events:e},this.loadNextEvent),m.a.fire(w.a.FocusComposer)}render(){let e=null;if(this.state.err)e=l.a.createElement("blockquote",{className:"mx_ReplyThread mx_ReplyThread_error"},Object(u.a)("Unable to load event that was replied to, it either does not exist or you do not have permission to view it."));else if(this.state.loadedEv){const t=this.state.loadedEv,n=d.getComponent("elements.Pill"),o=this.context.getRoom(t.getRoomId());e=l.a.createElement("blockquote",{className:"mx_ReplyThread"},Object(u.a)("<a>In reply to</a> <pill>",{},{a:e=>l.a.createElement("a",{onClick:this.onQuoteClick,className:"mx_ReplyThread_show"},e),pill:l.a.createElement(n,{type:n.TYPE_USER_MENTION,room:o,url:Object(_.h)(t.getSender()),shouldShowPillAvatar:b.b.getValue("Pill.shouldShowPillAvatar")})}))}else if(this.state.loading){const t=d.getComponent("elements.Spinner");e=l.a.createElement(t,{w:16,h:16})}const t=d.getComponent("views.rooms.EventTile"),n=d.getComponent("messages.DateSeparator"),o=this.state.events.map(e=>{let o=null;return Object(g.f)(this.props.parentEv.getDate(),e.getDate())&&(o=l.a.createElement("a",{href:this.props.url},l.a.createElement(n,{ts:e.getTs()}))),l.a.createElement("blockquote",{className:"mx_ReplyThread",key:e.getId()},o,l.a.createElement(t,{mxEvent:e,tileShape:"reply",onHeightChanged:this.props.onHeightChanged,permalinkCreator:this.props.permalinkCreator,isRedacted:e.isRedacted(),isTwelveHour:b.b.getValue("showTwelveHourTimestamps"),layout:this.props.layout,enableFlair:b.b.getValue(x.a.Flair),replacingEventId:e.replacingEventId()}))});return l.a.createElement("div",{className:"mx_ReplyThread_wrapper"},l.a.createElement("div",null,e),l.a.createElement("div",null,o))}},s()(r,"propTypes",{parentEv:p.a.instanceOf(f.b),onHeightChanged:p.a.func.isRequired,permalinkCreator:p.a.instanceOf(_.a).isRequired,layout:v.b}),s()(r,"contextType",S.a),o=i))||o},function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(943),t),r(n(944),t),r(n(945),t),r(n(566),t),r(n(946),t),r(n(947),t),r(n(243),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isComment=t.isText=t.isCDATA=t.isTag=void 0;var o=n(321);t.isTag=function(e){return o.isTag(e)},t.isCDATA=function(e){return"cdata"===e.type},t.isText=function(e){return"text"===e.type},t.isComment=function(e){return"comment"===e.type},t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var o=n(121),r=n.n(o);function i(e){if(!e)return"";const t=r.a.parse(e);return t&&"/"===t.path?t.host:e}function a(e){if(!e)return"";let t=e;e.startsWith("https://")||(t="https://"+e);return null===r.a.parse(t).hostname?e:t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(1),r=n(7);function i(e){this.groupId=e,this.name=null,this.avatarUrl=null,this.myMembership=null,this.inviter=null}o.p(i,r.EventEmitter),i.prototype.setProfile=function(e,t){this.name===e&&this.avatarUrl===t||(this.name=e||this.groupId,this.avatarUrl=t,this.emit("Group.profile",this))},i.prototype.setMyMembership=function(e){this.myMembership!==e&&(this.myMembership=e,this.emit("Group.myMembership",this))},i.prototype.setInviter=function(e){this.inviter=e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(0),r=n(121);class i{static get ERROR_INVALID(){return"Invalid homeserver discovery response"}static get ERROR_GENERIC_FAILURE(){return"Failed to get autodiscovery configuration from server"}static get ERROR_INVALID_HS_BASE_URL(){return"Invalid base_url for m.homeserver"}static get ERROR_INVALID_HOMESERVER(){return"Homeserver URL does not appear to be a valid Matrix homeserver"}static get ERROR_INVALID_IS_BASE_URL(){return"Invalid base_url for m.identity_server"}static get ERROR_INVALID_IDENTITY_SERVER(){return"Identity server URL does not appear to be a valid identity server"}static get ERROR_INVALID_IS(){return"Invalid identity server discovery response"}static get ERROR_MISSING_WELLKNOWN(){return"No .well-known JSON file found"}static get ERROR_INVALID_JSON(){return"Invalid JSON"}static get ALL_ERRORS(){return[i.ERROR_INVALID,i.ERROR_GENERIC_FAILURE,i.ERROR_INVALID_HS_BASE_URL,i.ERROR_INVALID_HOMESERVER,i.ERROR_INVALID_IS_BASE_URL,i.ERROR_INVALID_IDENTITY_SERVER,i.ERROR_INVALID_IS,i.ERROR_MISSING_WELLKNOWN,i.ERROR_INVALID_JSON]}static get FAIL_ERROR(){return"FAIL_ERROR"}static get FAIL_PROMPT(){return"FAIL_PROMPT"}static get PROMPT(){return"PROMPT"}static get SUCCESS(){return"SUCCESS"}static async fromDiscoveryConfig(e){const t={"m.homeserver":{state:i.FAIL_ERROR,error:i.ERROR_INVALID,base_url:null},"m.identity_server":{state:i.PROMPT,error:null,base_url:null}};if(!e||!e["m.homeserver"])return o.a.error("No m.homeserver key in config"),t["m.homeserver"].state=i.FAIL_PROMPT,t["m.homeserver"].error=i.ERROR_INVALID,Promise.resolve(t);if(!e["m.homeserver"].base_url)return o.a.error("No m.homeserver base_url in config"),t["m.homeserver"].state=i.FAIL_PROMPT,t["m.homeserver"].error=i.ERROR_INVALID_HS_BASE_URL,Promise.resolve(t);const n=this._sanitizeWellKnownUrl(e["m.homeserver"].base_url);if(!n)return o.a.error("Invalid base_url for m.homeserver"),t["m.homeserver"].error=i.ERROR_INVALID_HS_BASE_URL,Promise.resolve(t);const r=await this._fetchWellKnownObject(n+"/_matrix/client/versions");if(!r||!r.raw.versions)return o.a.error("Invalid /versions response"),t["m.homeserver"].error=i.ERROR_INVALID_HOMESERVER,t["m.homeserver"].base_url=n,Promise.resolve(t);t["m.homeserver"]={state:i.SUCCESS,error:null,base_url:n};let a="";if(e["m.identity_server"]){const n={"m.homeserver":t["m.homeserver"],"m.identity_server":{state:i.FAIL_PROMPT,error:i.ERROR_INVALID_IS,base_url:null}};if(a=this._sanitizeWellKnownUrl(e["m.identity_server"].base_url),!a)return o.a.error("Invalid base_url for m.identity_server"),n["m.identity_server"].error=i.ERROR_INVALID_IS_BASE_URL,Promise.resolve(n);const r=await this._fetchWellKnownObject(a+"/_matrix/identity/api/v1");if(!r||!r.raw||"SUCCESS"!==r.action)return o.a.error("Invalid /api/v1 response"),n["m.identity_server"].error=i.ERROR_INVALID_IDENTITY_SERVER,n["m.identity_server"].base_url=a,Promise.resolve(n)}return a&&a.length>0&&(t["m.identity_server"]={state:i.SUCCESS,error:null,base_url:a}),Object.keys(e).map(n=>{if("m.homeserver"===n||"m.identity_server"===n){const o=["error","state","base_url"];for(const r of Object.keys(e[n]))o.includes(r)||(t[n][r]=e[n][r])}else t[n]=e[n]}),Promise.resolve(t)}static async findClientConfig(e){if(!e||"string"!=typeof e||0===e.length)throw new Error("'domain' must be a string of non-zero length");const t={"m.homeserver":{state:i.FAIL_ERROR,error:i.ERROR_INVALID,base_url:null},"m.identity_server":{state:i.PROMPT,error:null,base_url:null}},n=await this._fetchWellKnownObject(`https://${e}/.well-known/matrix/client`);return n&&"SUCCESS"===n.action?i.fromDiscoveryConfig(n.raw):(o.a.error("No response or error when parsing .well-known"),n.reason&&o.a.error(n.reason),"IGNORE"===n.action?t["m.homeserver"]={state:i.PROMPT,error:null,base_url:null}:(t["m.homeserver"].state=i.FAIL_PROMPT,t["m.homeserver"].error=i.ERROR_INVALID),Promise.resolve(t))}static async getRawClientConfig(e){if(!e||"string"!=typeof e||0===e.length)throw new Error("'domain' must be a string of non-zero length");const t=await this._fetchWellKnownObject(`https://${e}/.well-known/matrix/client`);return t&&t.raw||{}}static _sanitizeWellKnownUrl(e){if(!e)return!1;try{let t=null;try{t=r.URL?new r.URL(e):new URL(e)}catch(n){t=new URL(e)}if(!t||!t.hostname)return!1;if("http:"!==t.protocol&&"https:"!==t.protocol)return!1;const n=t.port?":"+t.port:"",o=t.pathname?t.pathname:"";let i=`${t.protocol}//${t.hostname}${n}${o}`;return i.endsWith("/")&&(i=i.substring(0,i.length-1)),i}catch(e){return o.a.error(e),!1}}static async _fetchWellKnownObject(e){return new Promise((function(t,o){const r=n(146).getRequest();if(!r)throw new Error("No request library available");r({method:"GET",uri:e,timeout:5e3},(e,n,o)=>{if(e||n&&(n.statusCode<200||n.statusCode>=300)){let o="FAIL_PROMPT",r=(e?e.message:null)||"General failure";return n&&404===n.statusCode&&(o="IGNORE",r=i.ERROR_MISSING_WELLKNOWN),void t({raw:{},action:o,reason:r,error:e})}try{t({raw:JSON.parse(o),action:"SUCCESS"})}catch(e){let n=i.ERROR_INVALID;"SyntaxError"===e.name&&(n=i.ERROR_INVALID_JSON),t({raw:{},action:"FAIL_PROMPT",reason:n,error:e})}})}))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a}));var o=n(88);function r(e){return e.getCanonicalAlias()||e.getAltAliases()[0]}function i(e,t){let n;if(t){n=function(e,t){let n,o;for(const r of e.getJoinedMembers())r.userId!=t&&(void 0===n||r.events.member&&r.events.member.getTs()<n)&&(o=r,n=r.events.member.getTs());if(o)return o.userId;for(const r of e.currentState.getMembers())r.userId!=t&&(void 0===n||r.events.member&&r.events.member.getTs()<n)&&(o=r,n=r.events.member.getTs());return void 0===o?t:o.userId}(e,o.a.get().getUserId())}else n=null;return a(e.roomId,n)}function a(e,t){if(o.a.get().isGuest())return Promise.resolve();const n=o.a.get().getAccountData("m.direct");let r={};void 0!==n&&(r=n.getContent());for(const n of Object.keys(r)){const o=r[n];if(n!=t){const t=o.indexOf(e);t>-1&&o.splice(t,1)}}if(t){const n=r[t]||[];-1==n.indexOf(e)&&n.push(e),r[t]=n}return o.a.get().setAccountData("m.direct",r)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return c}));var o=n(88);function r(){const e=o.a.get().getClientWellKnown();return null==e?void 0:e["io.element.call_behaviour"]}function i(){const e=o.a.get().getClientWellKnown();return e&&e["io.element.e2ee"]?e["io.element.e2ee"]:e&&e["im.vector.riot.e2ee"]?e["im.vector.riot.e2ee"]:null}function a(){const e=i();return e&&!0===e.secure_backup_required}let s;function c(){const e=i();return e&&e.secure_backup_setup_methods&&e.secure_backup_setup_methods.length&&(e.secure_backup_setup_methods.includes(s.Key)||e.secure_backup_setup_methods.includes(s.Passphrase))?e.secure_backup_setup_methods:[s.Key,s.Passphrase]}!function(e){e.Key="key",e.Passphrase="passphrase"}(s||(s={}))},function(e,t,n){"use strict";var o=n(7),r=n.n(o);n(138);class i extends r.a{constructor(){super(),this._roomWidgetEcho={}}getEchoedRoomWidgets(e,t){const n=[],o=Object.assign({},this._roomWidgetEcho[e]);for(const e of t){const t=e.getStateKey();o[t]&&0===Object.keys(o[t]).length||n.push(e),delete o[t]}return n}roomHasPendingWidgetsOfType(e,t,n){const o=Object.assign({},this._roomWidgetEcho[e]);for(const e of t){delete o[e.getStateKey()]}return void 0===n?Object.keys(o).length>0:Object.values(o).some(e=>n.matches(e.type))}roomHasPendingWidgets(e,t){return this.roomHasPendingWidgetsOfType(e,t)}setRoomWidgetEcho(e,t,n){void 0===this._roomWidgetEcho[e]&&(this._roomWidgetEcho[e]={}),this._roomWidgetEcho[e][t]=n,this.emit("update",e,t)}removeRoomWidgetEcho(e,t){delete this._roomWidgetEcho[e][t],0===Object.keys(this._roomWidgetEcho[e]).length&&delete this._roomWidgetEcho[e],this.emit("update",e,t)}}let a=null;a||(a=new i),t.a=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(83),r=n.n(o),i=n(141),a=n(89),s=n(337);class c extends i.a{constructor(){super(a.a),r()(this,"widgetMap",new s.a)}static get instance(){return c.internalInstance}async onAction(e){}async onReady(){this.widgetMap.clear()}storeMessaging(e,t){this.stopMessaging(e),this.widgetMap.set(e.id,t)}stopMessaging(e){var t;null===(t=this.widgetMap.remove(e.id))||void 0===t||t.stop()}getMessaging(e){return this.widgetMap.get(e.id)}stopMessagingById(e){var t;null===(t=this.widgetMap.remove(e))||void 0===t||t.stop()}getMessagingForId(e){return this.widgetMap.get(e)}}r()(c,"internalInstance",new c)},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"Notifier",(function(){return E}));var o=n(88),r=n(94),i=n(107),a=n(329),s=n(120),c=n(205),l=n(89),d=n(87),u=n(84),h=n(91),p=n(90),m=n(439),g=n(98),f=n(619),_=n(126),b=n(441),v=n(99);const y={"m.key.verification.request":e=>{const t=(e.sender||{}).name;return Object(u.a)("%(name)s is requesting verification",{name:t})}},E={notifsByRoom:{},pendingEncryptedEventIds:[],notificationMessageForEvent:function(e){return y.hasOwnProperty(e.getContent().msgtype)?y[e.getContent().msgtype](e):a.a(e)},_displayPopupNotification:function(t,n){const o=i.a.get();if(!o)return;if(!o.supportsNotifications()||!o.maySendNotifications())return;if(e.document.hasFocus())return;let r,a=this.notificationMessageForEvent(t);if(!a)return;t.sender&&n.name!==t.sender.name?"m.room.member"===t.getType()?r=n.name:t.sender&&(r=t.sender.name+" ("+n.name+")",t.getContent().body&&!y.hasOwnProperty(t.getContent().msgtype)&&(a=t.getContent().body)):(r=n.name,t.getContent().body&&!y.hasOwnProperty(t.getContent().msgtype)&&(a=t.getContent().body)),this.isBodyEnabled()||(a="");let s=null;t.sender&&!p.b.getValue("lowBandwidth")&&(s=c.a(t.sender,40,40,"crop"));const l=o.displayNotification(r,a,s,n);l&&(void 0===this.notifsByRoom[t.getRoomId()]&&(this.notifsByRoom[t.getRoomId()]=[]),this.notifsByRoom[t.getRoomId()].push(l))},getSoundForRoom:function(e){const t=p.b.getValue("notificationSound",e);return t?t.url?t.url.startsWith("mxc://")?{url:Object(v.b)(t.url).srcHttp,name:t.name,type:t.type,size:t.size}:(console.warn(e+" has custom notification sound event, but url is not a mxc url"),null):(console.warn(e+" has custom notification sound event, but no url key"),null):null},_playAudioNotification:async function(e,t){const n=this.getSoundForRoom(t.roomId);console.log(`Got sound ${n&&n.name||"default"} for ${t.roomId}`);try{const e=document.querySelector(n?`audio[src='${n.url}']`:"#messageAudio");let t=e;if(!e){if(!n)return void console.error("No audio element or sound to play for notification");t=new Audio(n.url),n.type&&(t.type=n.type),document.body.appendChild(t)}await t.play()}catch(e){console.warn("Caught error when trying to fetch room notification sound:",e)}},start:function(){this.boundOnEvent=this.boundOnEvent||this.onEvent.bind(this),this.boundOnSyncStateChange=this.boundOnSyncStateChange||this.onSyncStateChange.bind(this),this.boundOnRoomReceipt=this.boundOnRoomReceipt||this.onRoomReceipt.bind(this),this.boundOnEventDecrypted=this.boundOnEventDecrypted||this.onEventDecrypted.bind(this),o.a.get().on("event",this.boundOnEvent),o.a.get().on("Room.receipt",this.boundOnRoomReceipt),o.a.get().on("Event.decrypted",this.boundOnEventDecrypted),o.a.get().on("sync",this.boundOnSyncStateChange),this.toolbarHidden=!1,this.isSyncing=!1},stop:function(){o.a.get()&&(o.a.get().removeListener("Event",this.boundOnEvent),o.a.get().removeListener("Room.receipt",this.boundOnRoomReceipt),o.a.get().removeListener("Event.decrypted",this.boundOnEventDecrypted),o.a.get().removeListener("sync",this.boundOnSyncStateChange)),this.isSyncing=!1},supportsDesktopNotifications:function(){const e=i.a.get();return e&&e.supportsNotifications()},setEnabled:function(e,t){const n=i.a.get();n&&(s.a.trackEvent("Notifier","Set Enabled",String(e)),p.b.isLevelSupported(g.a.DEVICE)&&p.b.setValue("audioNotificationsEnabled",null,g.a.DEVICE,this.isEnabled()),e?n.requestNotificationPermission().then(e=>{if("granted"===e)t&&t(),l.a.dispatch({action:"notifier_enabled",value:!0});else{const t=r.a.get().brand,n="denied"===e?Object(u.a)("%(brand)s does not have permission to send you notifications - please check your browser settings",{brand:t}):Object(u.a)("%(brand)s was not given permission to send notifications - please try again",{brand:t}),o=d.getComponent("dialogs.ErrorDialog");h.a.createTrackedDialog("Unable to enable Notifications",e,o,{title:Object(u.a)("Unable to enable Notifications"),description:n})}}):l.a.dispatch({action:"notifier_enabled",value:!1}),this.setPromptHidden(!0))},isEnabled:function(){return this.isPossible()&&p.b.getValue("notificationsEnabled")},isPossible:function(){const e=i.a.get();return!!e&&(!!e.supportsNotifications()&&!!e.maySendNotifications())},isBodyEnabled:function(){return this.isEnabled()&&p.b.getValue("notificationBodyEnabled")},isAudioEnabled:function(){return p.b.getValue("audioNotificationsEnabled")},setPromptHidden:function(t,n=!0){this.toolbarHidden=t,s.a.trackEvent("Notifier","Set Toolbar Hidden",String(t)),Object(m.a)(),n&&e.localStorage&&e.localStorage.setItem("notifications_hidden",String(t))},shouldShowPrompt:function(){const e=o.a.get();if(!e)return!1;return!e.isGuest()&&this.supportsDesktopNotifications()&&!Object(f.c)()&&!this.isEnabled()&&!this._isPromptHidden()},_isPromptHidden:function(){return e.localStorage?"true"===e.localStorage.getItem("notifications_hidden"):this.toolbarHidden},onSyncStateChange:function(e){"SYNCING"===e?this.isSyncing=!0:"STOPPED"!==e&&"ERROR"!==e||(this.isSyncing=!1)},onEvent:function(e){if(this.isSyncing&&(!e.sender||e.sender.userId!==o.a.get().credentials.userId))if(e.isBeingDecrypted()||e.isDecryptionFailure())for(this.pendingEncryptedEventIds.push(e.getId());this.pendingEncryptedEventIds.length>20;)this.pendingEncryptedEventIds.shift();else this._evaluateEvent(e)},onEventDecrypted:function(e){if(e.isDecryptionFailure())return;const t=this.pendingEncryptedEventIds.indexOf(e.getId());-1!==t&&(this.pendingEncryptedEventIds.splice(t,1),this._evaluateEvent(e))},onRoomReceipt:function(e,t){if(0===t.getUnreadNotificationCount()){const e=i.a.get();if(!e)return;if(void 0===this.notifsByRoom[t.roomId])return;for(const n of this.notifsByRoom[t.roomId])e.clearNotification(n);delete this.notifsByRoom[t.roomId]}},_evaluateEvent:function(e){const t=o.a.get().getRoom(e.getRoomId()),n=o.a.get().getPushActionsForEvent(e);if(n&&n.notify){if(_.a.getRoomId()===t.roomId&&b.a.sharedInstance().userActiveRecently())return;if(p.b.getValue("doNotDisturb"))return;this.isEnabled()&&this._displayPopupNotification(e,t),n.tweaks.sound&&this.isAudioEnabled()&&(i.a.get().loudNotification(e,t),this._playAudioNotification(e,t))}}};window.mxNotifier||(window.mxNotifier=E),t.default=window.mxNotifier}.call(this,n(6))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));class o{constructor(e){this._timeout=e,this._onTimeout=this._onTimeout.bind(this),this._setNotStarted()}_setNotStarted(){this._timerHandle=null,this._startTs=null,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}).finally(()=>{this._timerHandle=null})}_onTimeout(){const e=Date.now()-this._startTs;if(e>=this._timeout)this._resolve(),this._setNotStarted();else{const t=this._timeout-e;this._timerHandle=setTimeout(this._onTimeout,t)}}changeTimeout(e){if(e===this._timeout)return;const t=e<this._timeout;this._timeout=e,this.isRunning()&&t&&(clearTimeout(this._timerHandle),this._onTimeout())}start(){return this.isRunning()||(this._startTs=Date.now(),this._timerHandle=setTimeout(this._onTimeout,this._timeout)),this}restart(){return this.isRunning()?(this._startTs=Date.now(),this):this.start()}abort(){return this.isRunning()&&(clearTimeout(this._timerHandle),this._reject(new Error("Timer was aborted.")),this._setNotStarted()),this}finished(){return this._promise}isRunning(){return null!==this._timerHandle}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return h}));var o=n(84),r=n(343),i=n(90),a=n(344);const s="light";function c(){const e={light:Object(o.a)("Light"),dark:Object(o.a)("Dark")},t=i.b.getValue("custom_themes"),n={};for(const{name:e}of t)n["custom-"+e]=e;return Object.assign({},n,e)}const l=["font-display","font-family","font-stretch","font-style","font-weight","font-variant","font-feature-settings","font-variation-settings","src","unicode-range"];function d(e){const{style:t}=document.body;function n(e,n,o=!0){t.setProperty("--"+e,n),o&&(t.setProperty(`--${e}-0pct`,n+"00"),t.setProperty(`--${e}-15pct`,n+"26"),t.setProperty(`--${e}-50pct`,n+"7F"))}if(e.colors)for(const[t,o]of Object.entries(e.colors))if(Array.isArray(o))for(let e=0;e<o.length;e+=1)n(`${t}_${e}`,o[e],!1);else n(t,o);if(e.fonts){const{fonts:n}=e;if(n.faces){const e=n.faces.map(e=>{const t=e.src&&e.src.map(e=>{let t;return e.format&&(t=`format("${e.format}")`),e.url?`url("${e.url}") ${t}`:e.local?`local("${e.local}") ${t}`:""}).join(", ");return`@font-face {${Object.keys(e).filter(e=>l.includes(e)).map(n=>{let o;return o="src"===n?t:"font-family"===n?`"${e[n]}"`:e[n],`${n}: ${o}`}).join(";")}}`}).join("\n"),t=document.createElement("style");t.setAttribute("title","custom-theme-font-faces"),t.setAttribute("type","text/css"),t.appendChild(document.createTextNode(e)),document.head.appendChild(t)}n.general&&t.setProperty("--font-family",n.general),n.monospace&&t.setProperty("--font-family-monospace",n.monospace)}}function u(e){const t=i.b.getValue("custom_themes");if(!t)throw new Error(`No custom themes set, can't set custom theme "${e}"`);const n=t.find(t=>t.name===e);if(!n){const n=t.map(e=>e.name).join(", ");throw new Error(`Can't find custom theme "${e}", only know ${n}`)}return n}async function h(t){if(!t){const e=new a.a;t=e.getEffectiveTheme()}!function(){const e=Object.values(document.body.style);for(const t of e)t.startsWith("--")&&document.body.style.removeProperty(t);const t=document.querySelector("head > style[title='custom-theme-font-faces']");t&&t.remove()}();let n=t;if(t.startsWith("custom-")){const e=u(t.substr(7));n=e.is_dark?"dark-custom":"light-custom",d(e)}const o=Object.create(null);let i;for(let e=0;i=document.getElementsByTagName("link")[e];e++){const e=i.getAttribute("href"),t=e&&e.match(/^bundles\/.*\/theme-(.*)\.css$/);t&&(o[t[1]]=i)}if(!(n in o))throw new Error("Unknown theme "+n);return o[n].disabled=!1,new Promise(i=>{const a=function(){o[n].disabled=!1,Object.values(o).forEach(e=>{e!=o[n]&&(e.disabled=!0)});const a=e.getComputedStyle(document.body);a.backgroundColor&&(document.querySelector('meta[name="theme-color"]').content=a.backgroundColor),r.a.setTheme(t),i()};let s=!1;o[n].onload=()=>{a()};for(let e=0;e<document.styleSheets.length;e++){const t=document.styleSheets[e];if(t&&t.href===o[n].href){s=!0;break}}s&&(o[n].onload=void 0,a())})}}).call(this,n(6))},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var o=n(103),r=n(88),i=n(274);function a(e){const{status:t}=e;if((!t||t===o.a.SENT)&&!e.isRedacted())if("m.room.message"===e.getType()){const t=e.getContent();if(t.msgtype&&"m.bad.encrypted"!==t.msgtype&&t.hasOwnProperty("body"))return!0}else if("m.sticker"===e.getType())return!0;return!1}function s(e){if(e.status===o.a.CANCELLED||"m.room.message"!==e.getType()||e.isRedacted())return!1;const t=e.getOriginalContent(),{msgtype:n}=t;return("m.text"===n||"m.emote"===n)&&t.body&&"string"==typeof t.body&&e.getSender()===r.a.get().getUserId()}function c(e,t,n){const o=e.getLiveTimeline().getEvents().concat(e.getPendingEvents()),r=o.length-1,a=t?1:-1,c=t?0:r;let l=t?r:0;n||(l=Math.min(Math.max(0,c+100*a),r));let d=!n;for(let e=c;e!==l+a;e+=a){const t=o[e];if(d||t.getId()!==n){if(d&&!Object(i.a)(t)&&s(t))return t}else d=!0,l=Math.min(Math.max(0,e+100*a),r)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(83),r=n.n(o),i=n(82),a=n.n(i),s=n(86),c=n.n(s),l=n(87),d=n(84),u=n(92),h=n.n(u);class p extends a.a.Component{constructor(...e){super(...e),r()(this,"onFinished",()=>{this.props.onFinished()})}render(){const e=l.getComponent("views.dialogs.BaseDialog"),t=l.getComponent("views.elements.DialogButtons");return a.a.createElement(e,{className:"mx_InfoDialog",onFinished:this.props.onFinished,title:this.props.title,contentId:"mx_Dialog_content",hasCancel:this.props.hasCloseButton,onKeyDown:this.props.onKeyDown,fixedWidth:this.props.fixedWidth},a.a.createElement("div",{className:h()("mx_Dialog_content",this.props.className),id:"mx_Dialog_content"},this.props.description),!1!==this.props.button&&a.a.createElement(t,{primaryButton:this.props.button||Object(d.a)("OK"),onPrimaryButtonClick:this.onFinished,hasCancel:!1}))}}r()(p,"propTypes",{className:c.a.string,title:c.a.string,description:c.a.node,button:c.a.oneOfType([c.a.string,c.a.bool]),onFinished:c.a.func,hasCloseButton:c.a.bool,onKeyDown:c.a.func,fixedWidth:c.a.bool}),r()(p,"defaultProps",{title:"",description:"",hasCloseButton:!1})},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(83),r=n.n(o),i=n(82),a=n.n(i),s=n(86),c=n.n(s),l=n(87),d=n(88),u=n(172),h=n(84),p=n(165);class m extends a.a.PureComponent{constructor(e){super(e),r()(this,"_onCancel",()=>{this.props.onFinished(!1)}),r()(this,"_onDone",()=>{this.props.onFinished(!0)}),r()(this,"_onUseRecoveryKeyClick",()=>{this.setState({forceRecoveryKey:!0})}),r()(this,"_progressCallback",e=>{this.setState({progress:e})}),r()(this,"_onResetRecoveryClick",()=>{this.props.onFinished(!1),Object(p.b)(()=>{},!0)}),r()(this,"_onRecoveryKeyChange",e=>{this.setState({recoveryKey:e.target.value,recoveryKeyValid:d.a.get().isValidRecoveryKey(e.target.value)})}),r()(this,"_onPassPhraseNext",async()=>{this.setState({loading:!0,restoreError:null,restoreType:0});try{const e=await d.a.get().restoreKeyBackupWithPassword(this.state.passPhrase,void 0,void 0,this.state.backupInfo,{progressCallback:this._progressCallback});if(this.props.keyCallback){const e=await d.a.get().keyBackupKeyFromPassword(this.state.passPhrase,this.state.backupInfo);this.props.keyCallback(e)}if(!this.props.showSummary)return void this.props.onFinished(!0);this.setState({loading:!1,recoverInfo:e})}catch(e){console.log("Error restoring backup",e),this.setState({loading:!1,restoreError:e})}}),r()(this,"_onRecoveryKeyNext",async()=>{if(this.state.recoveryKeyValid){this.setState({loading:!0,restoreError:null,restoreType:1});try{const e=await d.a.get().restoreKeyBackupWithRecoveryKey(this.state.recoveryKey,void 0,void 0,this.state.backupInfo,{progressCallback:this._progressCallback});if(this.props.keyCallback){const e=d.a.get().keyBackupKeyFromRecoveryKey(this.state.recoveryKey);this.props.keyCallback(e)}if(!this.props.showSummary)return void this.props.onFinished(!0);this.setState({loading:!1,recoverInfo:e})}catch(e){console.log("Error restoring backup",e),this.setState({loading:!1,restoreError:e})}}}),r()(this,"_onPassPhraseChange",e=>{this.setState({passPhrase:e.target.value})}),this.state={backupInfo:null,backupKeyStored:null,loading:!1,loadError:null,restoreError:null,recoveryKey:"",recoverInfo:null,recoveryKeyValid:!1,forceRecoveryKey:!1,passPhrase:"",restoreType:null,progress:{stage:"prefetch"}}}componentDidMount(){this._loadBackupStatus()}async _restoreWithSecretStorage(){this.setState({loading:!0,restoreError:null,restoreType:2});try{const e=await Object(p.b)(async()=>d.a.get().restoreKeyBackupWithSecretStorage(this.state.backupInfo,void 0,void 0,{progressCallback:this._progressCallback}));this.setState({loading:!1,recoverInfo:e})}catch(e){console.log("Error restoring backup",e),this.setState({restoreError:e,loading:!1})}}async _restoreWithCachedKey(e){if(!e)return!1;try{const t=await d.a.get().restoreKeyBackupWithCache(void 0,void 0,e,{progressCallback:this._progressCallback});return this.setState({recoverInfo:t}),!0}catch(e){return console.log("restoreWithCachedKey failed:",e),!1}}async _loadBackupStatus(){this.setState({loading:!0,loadError:null});try{const e=d.a.get(),t=await e.getKeyBackupVersion(),n=await e.hasSecretStorageKey()&&await e.isKeyBackupKeyStored();this.setState({backupInfo:t,backupKeyStored:n});if(await this._restoreWithCachedKey(t))return console.log("RestoreKeyBackupDialog: found cached backup key"),void this.setState({loading:!1});if(n)return this._restoreWithSecretStorage();this.setState({loadError:null,loading:!1})}catch(e){console.log("Error loading backup status",e),this.setState({loadError:e,loading:!1})}}render(){const e=l.getComponent("views.dialogs.BaseDialog"),t=l.getComponent("elements.Spinner"),n=this.state.backupInfo&&this.state.backupInfo.auth_data&&this.state.backupInfo.auth_data.private_key_salt&&this.state.backupInfo.auth_data.private_key_iterations;let o,r;if(this.state.loading){let e;if(r=Object(h.a)("Restoring keys from backup"),"fetch"===this.state.progress.stage)e=Object(h.a)("Fetching keys from server...");else if("load_keys"===this.state.progress.stage){const{total:t,successes:n,failures:o}=this.state.progress;e=Object(h.a)("%(completed)s of %(total)s keys restored",{total:t,completed:n+o})}else"prefetch"===this.state.progress.stage&&(e=Object(h.a)("Fetching keys from server..."));o=a.a.createElement("div",null,a.a.createElement("div",null,e),a.a.createElement(t,null))}else if(this.state.loadError)r=Object(h.a)("Error"),o=Object(h.a)("Unable to load backup status");else if(this.state.restoreError)this.state.restoreError.errcode===u.b.RESTORE_BACKUP_ERROR_BAD_KEY?1===this.state.restoreType?(r=Object(h.a)("Security Key mismatch"),o=a.a.createElement("div",null,a.a.createElement("p",null,Object(h.a)("Backup could not be decrypted with this Security Key: please verify that you entered the correct Security Key.")))):(r=Object(h.a)("Incorrect Security Phrase"),o=a.a.createElement("div",null,a.a.createElement("p",null,Object(h.a)("Backup could not be decrypted with this Security Phrase: please verify that you entered the correct Security Phrase.")))):(r=Object(h.a)("Error"),o=Object(h.a)("Unable to restore backup"));else if(null===this.state.backupInfo)r=Object(h.a)("Error"),o=Object(h.a)("No backup found!");else if(this.state.recoverInfo){const e=l.getComponent("views.elements.DialogButtons");let t;r=Object(h.a)("Keys restored"),this.state.recoverInfo.total>this.state.recoverInfo.imported&&(t=a.a.createElement("p",null,Object(h.a)("Failed to decrypt %(failedCount)s sessions!",{failedCount:this.state.recoverInfo.total-this.state.recoverInfo.imported}))),o=a.a.createElement("div",null,a.a.createElement("p",null,Object(h.a)("Successfully restored %(sessionCount)s keys",{sessionCount:this.state.recoverInfo.imported})),t,a.a.createElement(e,{primaryButton:Object(h.a)("OK"),onPrimaryButtonClick:this._onDone,hasCancel:!1,focus:!0}))}else if(n&&!this.state.forceRecoveryKey){const e=l.getComponent("views.elements.DialogButtons"),t=l.getComponent("elements.AccessibleButton");r=Object(h.a)("Enter Security Phrase"),o=a.a.createElement("div",null,a.a.createElement("p",null,Object(h.a)("<b>Warning</b>: you should only set up key backup from a trusted computer.",{},{b:e=>a.a.createElement("b",null,e)})),a.a.createElement("p",null,Object(h.a)("Access your secure message history and set up secure messaging by entering your Security Phrase.")),a.a.createElement("form",{className:"mx_RestoreKeyBackupDialog_primaryContainer"},a.a.createElement("input",{type:"password",className:"mx_RestoreKeyBackupDialog_passPhraseInput",onChange:this._onPassPhraseChange,value:this.state.passPhrase,autoFocus:!0}),a.a.createElement(e,{primaryButton:Object(h.a)("Next"),onPrimaryButtonClick:this._onPassPhraseNext,primaryIsSubmit:!0,hasCancel:!0,onCancel:this._onCancel,focus:!1})),Object(h.a)("If you've forgotten your Security Phrase you can <button1>use your Security Key</button1> or <button2>set up new recovery options</button2>",{},{button1:e=>a.a.createElement(t,{className:"mx_linkButton",element:"span",onClick:this._onUseRecoveryKeyClick},e),button2:e=>a.a.createElement(t,{className:"mx_linkButton",element:"span",onClick:this._onResetRecoveryClick},e)}))}else{r=Object(h.a)("Enter Security Key");const e=l.getComponent("views.elements.DialogButtons"),t=l.getComponent("elements.AccessibleButton");let n;n=0===this.state.recoveryKey.length?a.a.createElement("div",{className:"mx_RestoreKeyBackupDialog_keyStatus"}):this.state.recoveryKeyValid?a.a.createElement("div",{className:"mx_RestoreKeyBackupDialog_keyStatus"},"👍 ",Object(h.a)("This looks like a valid Security Key!")):a.a.createElement("div",{className:"mx_RestoreKeyBackupDialog_keyStatus"},"👎 ",Object(h.a)("Not a valid Security Key")),o=a.a.createElement("div",null,a.a.createElement("p",null,Object(h.a)("<b>Warning</b>: You should only set up key backup from a trusted computer.",{},{b:e=>a.a.createElement("b",null,e)})),a.a.createElement("p",null,Object(h.a)("Access your secure message history and set up secure messaging by entering your Security Key.")),a.a.createElement("div",{className:"mx_RestoreKeyBackupDialog_primaryContainer"},a.a.createElement("input",{className:"mx_RestoreKeyBackupDialog_recoveryKeyInput",onChange:this._onRecoveryKeyChange,value:this.state.recoveryKey,autoFocus:!0}),n,a.a.createElement(e,{primaryButton:Object(h.a)("Next"),onPrimaryButtonClick:this._onRecoveryKeyNext,hasCancel:!0,onCancel:this._onCancel,focus:!1,primaryDisabled:!this.state.recoveryKeyValid})),Object(h.a)("If you've forgotten your Security Key you can <button>set up new recovery options</button>",{},{button:e=>a.a.createElement(t,{className:"mx_linkButton",element:"span",onClick:this._onResetRecoveryClick},e)}))}return a.a.createElement(e,{className:"mx_RestoreKeyBackupDialog",onFinished:this.props.onFinished,title:r},a.a.createElement("div",{className:"mx_RestoreKeyBackupDialog_content"},o))}}r()(m,"propTypes",{showSummary:c.a.bool,keyCallback:c.a.func}),r()(m,"defaultProps",{showSummary:!0})},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return g}));var o=n(83),r=n.n(o),i=n(135),a=n(89),s=n(96),c=n(459),l=n(88),d=n(348);const u="mx_sso_hs_url",h="mx_sso_is_url",p="mx_sso_idp_id";let m;!function(e){e.Checking="CHECKING",e.Error="ERROR",e.NotAvailable="NOTAVAILABLE",e.Downloading="DOWNLOADING",e.Ready="READY"}(m||(m={}));class g{constructor(){r()(this,"notificationCount",0),r()(this,"errorDidOccur",!1),r()(this,"onAction",e=>{switch(e.action){case"on_client_not_viable":case"on_logged_out":this.setNotificationCount(0)}}),a.a.register(this.onAction),this.startUpdateCheck=this.startUpdateCheck.bind(this)}setNotificationCount(e){this.notificationCount=e}setErrorStatus(e){this.errorDidOccur=e}async canSelfUpdate(){return!1}startUpdateCheck(){Object(c.a)(),localStorage.removeItem("mx_defer_update"),a.a.dispatch({action:s.a.CheckUpdates,status:m.Checking})}installUpdate(){}shouldShowUpdate(e){if(l.a.userRegisteredWithinLastHours(24))return!1;try{const[t,n]=JSON.parse(localStorage.getItem("mx_defer_update"));return e!==t||Date.now()>n}catch(e){return!0}}deferUpdate(e){const t=new Date(Date.now()+864e5);t.setHours(8,0,0,0),localStorage.setItem("mx_defer_update",JSON.stringify([e,t.getTime()])),Object(c.a)()}supportsMultiLanguageSpellCheck(){return!1}supportsNotifications(){return!1}maySendNotifications(){return!1}loudNotification(e,t){}clearNotification(e){e.close&&e.close()}screenCaptureErrorString(){return"Not implemented"}supportsAutoLaunch(){return!1}async getAutoLaunchEnabled(){return!1}async setAutoLaunchEnabled(e){throw new Error("Unimplemented")}supportsWarnBeforeExit(){return!1}async shouldWarnBeforeExit(){return!1}async setWarnBeforeExit(e){throw new Error("Unimplemented")}supportsAutoHideMenuBar(){return!1}async getAutoHideMenuBarEnabled(){return!1}async setAutoHideMenuBarEnabled(e){throw new Error("Unimplemented")}supportsMinimizeToTray(){return!1}async getMinimizeToTrayEnabled(){return!1}async setMinimizeToTrayEnabled(e){throw new Error("Unimplemented")}getEventIndexingManager(){return null}setLanguage(e){}setSpellCheckLanguages(e){}getSpellCheckLanguages(){return null}getAvailableSpellCheckLanguages(){return null}getSSOCallbackUrl(e){const t=new URL(window.location.href);return t.hash=e||"",t}startSingleSignOn(e,t,n,o){localStorage.setItem(u,e.getHomeserverUrl()),e.getIdentityServerUrl()&&localStorage.setItem(h,e.getIdentityServerUrl()),o&&localStorage.setItem(p,o);const r=this.getSSOCallbackUrl(n);window.location.href=e.getSsoLoginUrl(r.toString(),t,o)}onKeyDown(e){return!1}async getPickleKey(e,t){if(!window.crypto||!window.crypto.subtle)return null;let n;try{n=await Object(d.c)("pickleKey",[e,t])}catch(e){}if(!n)return null;if(!n.encrypted||!n.iv||!n.cryptoKey)return console.error("Badly formatted pickle key"),null;const o=new Uint8Array(e.length+t.length+1);for(let t=0;t<e.length;t++)o[t]=e.charCodeAt(t);o[e.length]=124;for(let n=0;n<t.length;n++)o[e.length+1+n]=t.charCodeAt(n);try{const e=await crypto.subtle.decrypt({name:"AES-GCM",iv:n.iv,additionalData:o},n.cryptoKey,n.encrypted);return Object(i.encodeUnpaddedBase64)(e)}catch(e){return console.error("Error decrypting pickle key"),null}}async createPickleKey(e,t){if(!window.crypto||!window.crypto.subtle)return null;const n=window.crypto,o=new Uint8Array(32);n.getRandomValues(o);const r=await n.subtle.generateKey({name:"AES-GCM",length:256},!1,["encrypt","decrypt"]),a=new Uint8Array(32);n.getRandomValues(a);const s=new Uint8Array(e.length+t.length+1);for(let t=0;t<e.length;t++)s[t]=e.charCodeAt(t);s[e.length]=124;for(let n=0;n<t.length;n++)s[e.length+1+n]=t.charCodeAt(n);const c=await n.subtle.encrypt({name:"AES-GCM",iv:a,additionalData:s},r,o);try{await Object(d.d)("pickleKey",[e,t],{encrypted:c,iv:a,cryptoKey:r})}catch(e){return null}return Object(i.encodeUnpaddedBase64)(o)}async destroyPickleKey(e,t){try{await Object(d.b)("pickleKey",[e,t])}catch(e){}}}},function(e,t){e.exports="img/warning.05cc423.svg"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(105);function r(e,t){const n=Object(o.throttle)(e,t,{leading:!0,trailing:!0}),r=n.bind;return n.bind=function(){const e=r.apply(n,arguments);return e.cancelPendingCall=n.cancelPendingCall,e},n.cancelPendingCall=function(){n.cancel()},n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(83),r=n.n(o),i=n(89),a=n(704),s=n(306),c=n(90),l=n(118),d=n(96),u=n(98);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}const p={showRoomPanel:c.b.getValue("showRightPanelInRoom"),showGroupPanel:c.b.getValue("showRightPanelInGroup"),lastRoomPhase:c.b.getValue("lastRightPanelPhaseForRoom"),lastGroupPhase:c.b.getValue("lastRightPanelPhaseForGroup"),lastRoomPhaseParams:{}},m=[l.c.GroupMemberList,l.c.GroupRoomList,l.c.GroupRoomInfo,l.c.GroupMemberInfo],g=[l.c.RoomMemberInfo,l.c.Room3pidMemberInfo,l.c.EncryptionPanel];class f extends s.Store{constructor(){super(i.a),r()(this,"state",void 0),this.state=p}get isOpenForRoom(){return this.state.showRoomPanel}get isOpenForGroup(){return this.state.showGroupPanel}get roomPanelPhase(){return this.state.lastRoomPhase}get groupPanelPhase(){return this.state.lastGroupPhase}get previousPhase(){return l.a.includes(this.state.previousPhase)?this.state.previousPhase:null}get visibleRoomPanelPhase(){return this.isOpenForRoom?this.roomPanelPhase:null}get visibleGroupPanelPhase(){return this.isOpenForGroup?this.groupPanelPhase:null}get roomPanelPhaseParams(){return this.state.lastRoomPhaseParams||{}}setState(e){this.state=Object.assign(this.state,e),c.b.setValue("showRightPanelInRoom",null,u.a.DEVICE,this.state.showRoomPanel),c.b.setValue("showRightPanelInGroup",null,u.a.DEVICE,this.state.showGroupPanel),l.a.includes(this.state.lastRoomPhase)&&c.b.setValue("lastRightPanelPhaseForRoom",null,u.a.DEVICE,this.state.lastRoomPhase),l.a.includes(this.state.lastGroupPhase)&&c.b.setValue("lastRightPanelPhaseForGroup",null,u.a.DEVICE,this.state.lastGroupPhase),this.__emitChange()}__onDispatch(e){switch(e.action){case"view_room":case"view_group":g.includes(this.state.lastRoomPhase)&&this.setState({lastRoomPhase:l.c.RoomMemberList,lastRoomPhaseParams:{}}),this.state.lastGroupPhase===l.c.GroupMemberInfo&&this.setState({lastGroupPhase:l.c.GroupMemberList});break;case d.a.SetRightPanelPhase:{let t=e.phase,n=e.refireParams;if(t===l.c.RoomMemberInfo&&e.refireParams){const{member:o}=e.refireParams,r=Object(a.b)(o);r&&(t=l.c.EncryptionPanel,n={verificationRequest:r,member:o})}if(!l.c[t])return void console.warn("Tried to switch right panel to unknown phase: "+t);m.includes(t)?t===this.state.lastGroupPhase?this.setState({showGroupPanel:!this.state.showGroupPanel,previousPhase:null}):this.setState({lastGroupPhase:t,showGroupPanel:!0,previousPhase:this.state.lastGroupPhase}):t!==this.state.lastRoomPhase||n?this.setState({lastRoomPhase:t,showRoomPanel:!0,lastRoomPhaseParams:n||{},previousPhase:this.state.lastRoomPhase}):this.setState({showRoomPanel:!this.state.showRoomPanel,previousPhase:null}),i.a.dispatch(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({action:d.a.AfterRightPanelPhaseChange,phase:t},n||{}));break}case d.a.ToggleRightPanel:"room"===e.type?this.setState({showRoomPanel:!this.state.showRoomPanel}):this.setState({showGroupPanel:!this.state.showGroupPanel})}}static getSharedInstance(){return f.instance||(f.instance=new f),f.instance}}r()(f,"instance",void 0),window.mxRightPanelStore=f.getSharedInstance()},function(e,t,n){"use strict";var o=n(476);i.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}();var r=i.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function i(e,t,n){return i.TYPED_ARRAY_SUPPORT||this instanceof i?"number"==typeof e?c(this,e):function(e,t,n,o){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');if("undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer)return function(e,t,n,o){if(n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(o||0))throw new RangeError("'length' is out of bounds");var r;r=void 0===n&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,n):new Uint8Array(t,n,o);i.TYPED_ARRAY_SUPPORT?r.__proto__=i.prototype:r=l(e,r);return r}(e,t,n,o);if("string"==typeof t)return function(e,t){var n=0|u(t),o=s(e,n),r=o.write(t);r!==n&&(o=o.slice(0,r));return o}(e,t);return function(e,t){if(i.isBuffer(t)){var n=0|a(t.length),o=s(e,n);return 0===o.length||t.copy(o,0,0,n),o}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):l(e,t);if("Buffer"===t.type&&Array.isArray(t.data))return l(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}(this,e,t,n):new i(e,t,n)}function a(e){if(e>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|e}function s(e,t){var n;return i.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t)).__proto__=i.prototype:(null===(n=e)&&(n=new i(t)),n.length=t),n}function c(e,t){var n=s(e,t<0?0:0|a(t));if(!i.TYPED_ARRAY_SUPPORT)for(var o=0;o<t;++o)n[o]=0;return n}function l(e,t){for(var n=t.length<0?0:0|a(t.length),o=s(e,n),r=0;r<n;r+=1)o[r]=255&t[r];return o}function d(e,t){var n;t=t||1/0;for(var o=e.length,r=null,i=[],a=0;a<o;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&i.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&i.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function u(e){return i.isBuffer(e)?e.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)?e.byteLength:("string"!=typeof e&&(e=""+e),0===e.length?0:d(e).length)}i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),i.prototype.write=function(e,t,n){void 0===t||void 0===n&&"string"==typeof t?(n=this.length,t=0):isFinite(t)&&(t|=0,isFinite(n)?n|=0:n=void 0);var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(e,t,n,o){return function(e,t,n,o){for(var r=0;r<o&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}(d(t,e.length-n),e,n,o)}(this,e,t,n)},i.prototype.slice=function(e,t){var n,o=this.length;if((e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t<e&&(t=e),i.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=i.prototype;else{var r=t-e;n=new i(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+e]}return n},i.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);var r,a=o-n;if(this===e&&n<t&&t<o)for(r=a-1;r>=0;--r)e[r+t]=this[r+n];else if(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},i.prototype.fill=function(e,t,n){if("string"==typeof e){if("string"==typeof t?(t=0,n=this.length):"string"==typeof n&&(n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var r;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(r=t;r<n;++r)this[r]=e;else{var a=i.isBuffer(e)?e:new i(e),s=a.length;for(r=0;r<n-t;++r)this[r+t]=a[r%s]}return this},i.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s(null,0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c(null,t),a=0;for(n=0;n<e.length;++n){var l=e[n];if(!i.isBuffer(l))throw new TypeError('"list" argument must be an Array of Buffers');l.copy(r,a),a+=l.length}return r},i.byteLength=u,i.prototype._isBuffer=!0,i.isBuffer=function(e){return!(null==e||!e._isBuffer)},e.exports.alloc=function(e){var t=new i(e);return t.fill(0),t},e.exports.from=function(e){return new i(e)}},function(e,t){e.exports="img/cancel.4b9715b.svg"},function(e,t,n){"use strict";var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(92),u=n.n(d),h=n(94),p=n(158),m=n(84),g=n(104),f=n(85);let _=Object(f.a)("views.auth.PassphraseField")((i=r=class extends c.PureComponent{constructor(...e){super(...e),s()(this,"validate",Object(p.a)({description:function(e){const t=e?e.score:0;return l.a.createElement("progress",{className:"mx_PassphraseField_progress",max:4,value:t})},deriveData:async({value:e})=>{if(!e)return null;const{scorePassword:t}=await n.e(23).then(n.bind(null,1377));return t(e)},rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(m.a)(this.props.labelEnterPassword)},{key:"complexity",test:async function({value:e},t){if(!e)return!1;const n=t.score>=this.props.minScore;return h.a.get().dangerously_allow_unsafe_and_insecure_passwords||n},valid:function(e){return e.score>=this.props.minScore?Object(m.a)(this.props.labelStrongPassword):Object(m.a)(this.props.labelAllowedButUnsafe)},invalid:function(e){if(!e)return null;const{feedback:t}=e;return t.warning||t.suggestions[0]||Object(m.a)("Keep going...")}}]})),s()(this,"onValidate",async e=>{const t=await this.validate(e);return this.props.onValidate(t),t})}render(){return l.a.createElement(g.a,{id:this.props.id,autoFocus:this.props.autoFocus,className:u()("mx_PassphraseField",this.props.className),ref:this.props.fieldRef,type:"password",autoComplete:"new-password",label:Object(m.a)(this.props.label),value:this.props.value,onChange:this.props.onChange,onValidate:this.onValidate})}},s()(r,"defaultProps",{label:Object(m.b)("Password"),labelEnterPassword:Object(m.b)("Enter password"),labelStrongPassword:Object(m.b)("Nice, strong password!"),labelAllowedButUnsafe:Object(m.b)("Password is allowed, but unsafe")}),o=i))||o;t.a=_},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return h}));var o=n(83),r=n.n(o),i=n(82),a=n.n(i),s=n(246),c=n(84);var l=n(94);const d=[s.a.ERROR_INVALID_HOMESERVER,s.a.ERROR_INVALID_IDENTITY_SERVER];class u{constructor(){r()(this,"hsUrl",void 0),r()(this,"hsName",void 0),r()(this,"hsNameIsDifferent",void 0),r()(this,"isUrl",void 0),r()(this,"isDefault",void 0),r()(this,"isNameResolvable",void 0),r()(this,"warning",void 0)}}class h{static isLivelinessError(e){return!!e&&!!d.find(t=>t===e||t===e.message)}static authComponentStateForError(e,t="login"){if(!e)return{serverIsAlive:!0,serverErrorIsFatal:!1,serverDeadError:null};let n=Object(c.a)("Cannot reach homeserver"),o=Object(c.a)("Ensure you have a stable internet connection, or get in touch with the server admin");if(!h.isLivelinessError(e)){const e=l.a.get().brand;n=Object(c.a)("Your %(brand)s is misconfigured",{brand:e}),o=Object(c.a)("Ask your %(brand)s admin to check <a>your config</a> for incorrect or duplicate entries.",{brand:e},{a:e=>a.a.createElement("a",{href:"https://github.com/vector-im/element-web/blob/master/docs/config.md",target:"_blank",rel:"noreferrer noopener"},e)})}let r=!0;return(e.message?e.message:e)===s.a.ERROR_INVALID_IDENTITY_SERVER&&(r=!1,n=Object(c.a)("Cannot reach identity server"),o="register"===t?Object(c.a)("You can register, but some features will be unavailable until the identity server is back online. If you keep seeing this warning, check your configuration or contact a server admin."):"reset_password"===t?Object(c.a)("You can reset your password, but some features will be unavailable until the identity server is back online. If you keep seeing this warning, check your configuration or contact a server admin."):Object(c.a)("You can log in, but some features will be unavailable until the identity server is back online. If you keep seeing this warning, check your configuration or contact a server admin.")),{serverIsAlive:!1,serverErrorIsFatal:r,serverDeadError:a.a.createElement("div",null,a.a.createElement("strong",null,n),a.a.createElement("div",null,o))}}static async validateServerConfigWithStaticUrls(e,t,n=!1){if(!e)throw Object(c.h)(Object(c.b)("No homeserver URL provided"));const o={"m.homeserver":{base_url:e}};t&&(o["m.identity_server"]={base_url:t});const r=await s.a.fromDiscoveryConfig(o),i=new URL(e).hostname;return h.buildValidatedConfigFromDiscovery(i,r,n,!0)}static async validateServerName(e){const t=await s.a.findClientConfig(e);return h.buildValidatedConfigFromDiscovery(e,t)}static buildValidatedConfigFromDiscovery(e,t,n=!1,o=!1){if(!t||!t["m.homeserver"])throw console.error("Ended up in a state of not knowing which homeserver to connect to."),Object(c.h)(Object(c.b)("Unexpected error resolving homeserver configuration"));const r=t["m.homeserver"],i=t["m.identity_server"],a=l.a.get().validated_server_config;let d=a&&a.isUrl;if(i&&i.state===s.a.SUCCESS)d=i.base_url;else if(i&&i.state!==s.a.PROMPT){if(console.error("Error determining preferred identity server URL:",i),i.state===s.a.FAIL_ERROR){if(-1!==s.a.ALL_ERRORS.indexOf(i.error))throw Object(c.h)(i.error);throw Object(c.h)(Object(c.b)("Unexpected error resolving identity server configuration"))}r.error=s.a.ERROR_INVALID_IDENTITY_SERVER,i.base_url&&(d=i.base_url)}if(r.state!==s.a.SUCCESS&&(console.error("Error processing homeserver config:",r),!n||!h.isLivelinessError(r.error))){if(-1!==s.a.ALL_ERRORS.indexOf(r.error))throw Object(c.h)(r.error);throw Object(c.h)(Object(c.b)("Unexpected error resolving homeserver configuration"))}const p=r.base_url;let m=e||r.server_name;const g=new URL(p);if(m||(m=g.hostname),!m)throw console.error("Failed to parse homeserver name from homeserver URL"),Object(c.h)(Object(c.b)("Unexpected error resolving homeserver configuration"));return function(e,t){const n=new e;return Object.assign(n,t),n}(u,{hsUrl:p,hsName:m,hsNameIsDifferent:g.hostname!==m,isUrl:d,isDefault:!1,warning:r.error,isNameResolvable:!o})}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(203),r=n(1);function i(e){return"string"==typeof e&&!!e&&"undefined"!==e&&"null"!==e||"number"==typeof e}function a(e){e=e||{},this.rooms={},this.groups={},this.users={},this.syncToken=null,this.filters={},this.accountData={},this.localStorage=e.localStorage,this._oobMembers={},this._clientOptions={}}a.prototype={getSyncToken:function(){return this.syncToken},isNewlyCreated:function(){return Promise.resolve(!0)},setSyncToken:function(e){this.syncToken=e},storeGroup:function(e){this.groups[e.groupId]=e},getGroup:function(e){return this.groups[e]||null},getGroups:function(){return r.C(this.groups)},storeRoom:function(e){this.rooms[e.roomId]=e,e.currentState.on("RoomState.members",this._onRoomMember.bind(this));const t=this;e.currentState.getMembers().forEach((function(n){t._onRoomMember(null,e.currentState,n)}))},_onRoomMember:function(e,t,n){if("invite"===n.membership)return;const r=this.users[n.userId]||new o.a(n.userId);n.name&&(r.setDisplayName(n.name),n.events.member&&r.setRawDisplayName(n.events.member.getDirectionalContent().displayname)),n.events.member&&n.events.member.getContent().avatar_url&&r.setAvatarUrl(n.events.member.getContent().avatar_url),this.users[r.userId]=r},getRoom:function(e){return this.rooms[e]||null},getRooms:function(){return r.C(this.rooms)},removeRoom:function(e){this.rooms[e]&&this.rooms[e].removeListener("RoomState.members",this._onRoomMember),delete this.rooms[e]},getRoomSummaries:function(){return r.v(r.C(this.rooms),(function(e){return e.summary}))},storeUser:function(e){this.users[e.userId]=e},getUser:function(e){return this.users[e]||null},getUsers:function(){return r.C(this.users)},scrollback:function(e,t){return[]},storeEvents:function(e,t,n,o){},storeFilter:function(e){e&&(this.filters[e.userId]||(this.filters[e.userId]={}),this.filters[e.userId][e.filterId]=e)},getFilter:function(e,t){return this.filters[e]&&this.filters[e][t]?this.filters[e][t]:null},getFilterIdByName:function(e){if(!this.localStorage)return null;const t="mxjssdk_memory_filter_"+e;try{const e=this.localStorage.getItem(t);if(i(e))return e}catch(e){}return null},setFilterIdByName:function(e,t){if(!this.localStorage)return;const n="mxjssdk_memory_filter_"+e;try{i(t)?this.localStorage.setItem(n,t):this.localStorage.removeItem(n)}catch(e){}},storeAccountDataEvents:function(e){const t=this;e.forEach((function(e){t.accountData[e.getType()]=e}))},getAccountData:function(e){return this.accountData[e]},setSyncData:function(e){return Promise.resolve()},wantsSave:function(){return!1},save:function(e){},startup:function(){return Promise.resolve()},getSavedSync:function(){return Promise.resolve(null)},getSavedSyncToken:function(){return Promise.resolve(null)},deleteAllData:function(){return this.rooms={},this.users={},this.syncToken=null,this.filters={},this.accountData={},Promise.resolve()},getOutOfBandMembers:function(e){return Promise.resolve(this._oobMembers[e]||null)},setOutOfBandMembers:function(e,t){return this._oobMembers[e]=t,Promise.resolve()},clearOutOfBandMembers:function(){return this._oobMembers={},Promise.resolve()},getClientOptions:function(){return Promise.resolve(this._clientOptions)},storeClientOptions:function(e){return this._clientOptions=Object.assign({},e),Promise.resolve()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(1);function r(e,t,n,r,i,a){if("string"!=typeof t||!t)return"";if(0!==t.indexOf("mxc://"))return a?t:"";let s=t.slice(6),c="/_matrix/media/r0/download/";const l={};n&&(l.width=Math.round(n)),r&&(l.height=Math.round(r)),i&&(l.method=i),o.u(l).length>0&&(c="/_matrix/media/r0/thumbnail/");const d=s.indexOf("#");let u="";return d>=0&&(u=s.substr(d),s=s.substr(0,d)),e+c+s+(0===o.u(l).length?"":"?"+o.f(l))+u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var o,r,i,a=n(95),s=n.n(a),c=n(100),l=n.n(c),d=n(83),u=n.n(d),h=n(82),p=n.n(h),m=n(92),g=n.n(m),f=n(85);let _=Object(f.a)("views.elements.StyledRadioButton")((i=r=class extends p.a.PureComponent{render(){const e=this.props,{children:t,className:n,disabled:o,outlined:r}=e,i=l()(e,["children","className","disabled","outlined"]),a=g()("mx_RadioButton",n,{mx_RadioButton_disabled:o,mx_RadioButton_enabled:!o,mx_RadioButton_checked:this.props.checked,mx_RadioButton_outlined:r});return p.a.createElement("label",{className:a},p.a.createElement("input",s()({type:"radio",disabled:o},i)),p.a.createElement("div",null,p.a.createElement("div",null)),p.a.createElement("div",{className:"mx_RadioButton_content"},t),p.a.createElement("div",{className:"mx_RadioButton_spacer"}))}},u()(r,"defaultProps",{className:""}),o=i))||o},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,t,n){var o=n(521),r=n(380);e.exports=Object.keys||function(e){return o(e,r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCorners=t.offset=t.isEqual=t.addPosition=t.add=void 0;var o,r=n(208),i=(o=r)&&o.__esModule?o:{default:o};t.add=function(e,t){return{top:e.top+t.top,left:e.left+t.left,right:e.right+t.right,bottom:e.bottom+t.bottom}},t.addPosition=function(e,t){return(0,i.default)({},e,{right:e.right+t.x,bottom:e.bottom+t.y})},t.isEqual=function(e,t){return e.top===t.top&&e.right===t.right&&e.bottom===t.bottom&&e.left===t.left},t.offset=function(e,t){return{top:e.top+t.y,right:e.right+t.x,bottom:e.bottom+t.y,left:e.left+t.x}},t.getCorners=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(133);t.default=function(e){var t=e.source,n=e.sourceEdge,r=e.destination,i=e.destinationEdge,a=e.destinationAxis,s=function(e){return(0,o.patch)(a.line,e[a[i]],e[a.crossAxisStart])},c=s(r),l=(0,o.absolute)((0,o.subtract)(t.center,s(t))),d=(0,o.patch)(a.line,("end"===n?-1:1)*l[a.line],l[a.crossLine]);return(0,o.add)(c,d)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}));const o="filter_changed";let r;!function(e){e[e.Prefilter=0]="Prefilter",e[e.Runtime=1]="Runtime"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(90);function r(e){const t=t=>o.b.getValue(t,e.getRoomId());if(e.isRedacted()&&!t("showRedactions"))return!0;if(e.isRelation("m.replace"))return!0;const n=function(e){const t={isMemberEvent:"m.room.member"===e.getType()};if(!t.isMemberEvent)return t;const n=e.getContent(),o=e.getPrevContent(),r=n.membership!==o.membership;t.isJoin=r&&"join"===n.membership,t.isPart=r&&"leave"===n.membership&&e.getStateKey()===e.getSender();const i=!r&&"join"===n.membership;return t.isDisplaynameChange=i&&n.displayname!==o.displayname,t.isAvatarChange=i&&n.avatar_url!==o.avatar_url,t}(e);if(n.isMemberEvent){if((n.isJoin||n.isPart)&&!t("showJoinLeaves"))return!0;if(n.isAvatarChange&&!t("showAvatarChanges"))return!0;if(n.isDisplaynameChange&&!t("showDisplaynameChanges"))return!0}return!1}},function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(576);r(n(576),t);var a=/\s+/g,s={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1},c=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){var e;this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null!==(e=this.parser)&&void 0!==e?e:null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=new i.Element(e,t);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace,n=this.lastNode;if(n&&"text"===n.type)t?n.data=(n.data+e).replace(a," "):n.data+=e;else{t&&(e=e.replace(a," "));var o=new i.Text(e);this.addNode(o),this.lastNode=o}},e.prototype.oncomment=function(e){if(this.lastNode&&"comment"===this.lastNode.type)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.NodeWithChildren("cdata",[e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e.prototype.addDataNode=function(e){this.addNode(e),this.lastNode=e},e}();t.DomHandler=c,t.default=c},function(e,t,n){var o=n(324),r=n(275);t.isTag=o.DomUtils.isTag,t.camelCase=function(e){return e.replace(/[_.-](\w|$)/g,(function(e,t){return t.toUpperCase()}))},t.cssCase=function(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()},t.domEach=function(e,t){for(var n=0,o=e.length;n<o&&!1!==t.call(e,n,e[n]);)++n;return e},t.cloneDom=function(e){var t="length"in e?Array.prototype.map.call(e,(function(e){return r.cloneNode(e,!0)})):[r.cloneNode(e,!0)],n=new r.Document(t);return t.forEach((function(e){e.parent=n})),t};var i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w-]*)$)/;t.isHtml=function(e){if("<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3)return!0;var t=i.exec(e);return!(!t||!t[1])}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u}));var o=n(980);const r=new Map,i=new Map,a=new Map,s=e=>r.get(d(e)),c=["people","people","control","nature","foods","places","activity","objects","symbols","flags"],l={people:[],nature:[],foods:[],places:[],activity:[],objects:[],symbols:[],flags:[]};function d(e){return e.replace(/[\uFE00-\uFE0F]$/,"")}o.forEach(e=>{const t=c[e.group];l.hasOwnProperty(t)&&l[t].push(e),e.filterString=(`${e.annotation}\n${e.shortcodes.join("\n")}}\n${e.emoticon||""}\n`+e.unicode.split("").join("\n")).toLowerCase(),r.set(d(e.unicode),e),e.emoticon&&i.set(e.emoticon,e),e.shortcodes&&e.shortcodes.forEach(t=>{a.set(t,e)})});const u=o},function(e,t){t.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,o=/^data:.+\,.+$/;function r(e){var t=e.match(n);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}function a(e){var n=e,o=r(e);if(o){if(!o.path)return e;n=o.path}for(var a,s=t.isAbsolute(n),c=n.split(/\/+/),l=0,d=c.length-1;d>=0;d--)"."===(a=c[d])?c.splice(d,1):".."===a?l++:l>0&&(""===a?(c.splice(d+1,l),l=0):(c.splice(d,2),l--));return""===(n=c.join("/"))&&(n=s?"/":"."),o?(o.path=n,i(o)):n}function s(e,t){""===e&&(e="."),""===t&&(t=".");var n=r(t),s=r(e);if(s&&(e=s.path||"/"),n&&!n.scheme)return s&&(n.scheme=s.scheme),i(n);if(n||t.match(o))return t;if(s&&!s.host&&!s.path)return s.host=t,i(s);var c="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return s?(s.path=c,i(s)):c}t.urlParse=r,t.urlGenerate=i,t.normalize=a,t.join=s,t.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var o=e.lastIndexOf("/");if(o<0)return t;if((e=e.slice(0,o)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function l(e){return e}function d(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function u(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}t.toSetString=c?l:function(e){return d(e)?"$"+e:e},t.fromSetString=c?l:function(e){return d(e)?e.slice(1):e},t.compareByOriginalPositions=function(e,t,n){var o=u(e.source,t.source);return 0!==o||0!==(o=e.originalLine-t.originalLine)||0!==(o=e.originalColumn-t.originalColumn)||n||0!==(o=e.generatedColumn-t.generatedColumn)||0!==(o=e.generatedLine-t.generatedLine)?o:u(e.name,t.name)},t.compareByGeneratedPositionsDeflated=function(e,t,n){var o=e.generatedLine-t.generatedLine;return 0!==o||0!==(o=e.generatedColumn-t.generatedColumn)||n||0!==(o=u(e.source,t.source))||0!==(o=e.originalLine-t.originalLine)||0!==(o=e.originalColumn-t.originalColumn)?o:u(e.name,t.name)},t.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=u(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:u(e.name,t.name)},t.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},t.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var o=r(n);if(!o)throw new Error("sourceMapURL could not be parsed");if(o.path){var c=o.path.lastIndexOf("/");c>=0&&(o.path=o.path.substring(0,c+1))}t=s(i(o),t)}return a(t)}},function(e,t,n){"use strict";let o,r,i,a=n(326),{isClean:s}=n(418),c=n(328),l=n(327);class d extends l{push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}each(e){if(!this.proxyOf.nodes)return;let t,n,o=this.getIterator();for(;this.indexes[o]<this.proxyOf.nodes.length&&(t=this.indexes[o],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[o]+=1;return delete this.indexes[o],n}walk(e){return this.each((t,n)=>{let o;try{o=e(t,n)}catch(e){throw t.addToError(e)}return!1!==o&&t.walk&&(o=t.walk(e)),o})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,o)=>{if("decl"===n.type&&e.test(n.prop))return t(n,o)}):this.walk((n,o)=>{if("decl"===n.type&&n.prop===e)return t(n,o)}):(t=e,this.walk((e,n)=>{if("decl"===e.type)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,o)=>{if("rule"===n.type&&e.test(n.selector))return t(n,o)}):this.walk((n,o)=>{if("rule"===n.type&&n.selector===e)return t(n,o)}):(t=e,this.walk((e,n)=>{if("rule"===e.type)return t(e,n)}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,o)=>{if("atrule"===n.type&&e.test(n.name))return t(n,o)}):this.walk((n,o)=>{if("atrule"===n.type&&n.name===e)return t(n,o)}):(t=e,this.walk((e,n)=>{if("atrule"===e.type)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if("comment"===t.type)return e(t,n)})}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}insertBefore(e,t){let n,o=0===(e=this.index(e))&&"prepend",r=this.normalize(t,this.proxyOf.nodes[e],o).reverse();for(let t of r)this.proxyOf.nodes.splice(e,0,t);for(let t in this.indexes)n=this.indexes[t],e<=n&&(this.indexes[t]=n+r.length);return this.markDirty(),this}insertAfter(e,t){e=this.index(e);let n,o=this.normalize(t,this.proxyOf.nodes[e]).reverse();for(let t of o)this.proxyOf.nodes.splice(e+1,0,t);for(let t in this.indexes)n=this.indexes[t],e<n&&(this.indexes[t]=n+o.length);return this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(o=>{t.props&&!t.props.includes(o.prop)||t.fast&&!o.value.includes(t.fast)||(o.value=o.value.replace(e,n))}),this.markDirty(),this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}normalize(e,t){if("string"==typeof e)e=function e(t){return t.map(t=>(t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t))}(o(e).nodes);else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new a(e)]}else if(e.selector)e=[new r(e)];else if(e.name)e=[new i(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new c(e)]}return e.map(e=>("function"!=typeof e.markDirty&&function e(t){"atrule"===t.type?Object.setPrototypeOf(t,i.prototype):"rule"===t.type?Object.setPrototypeOf(t,r.prototype):"decl"===t.type?Object.setPrototypeOf(t,a.prototype):"comment"===t.type&&Object.setPrototypeOf(t,c.prototype),t.nodes&&t.nodes.forEach(t=>{e(t)})}(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[s]&&function e(t){if(t[s]=!1,t.proxyOf.nodes)for(let n of t.proxyOf.nodes)e(n)}(e),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this,e))}getProxyProcessor(){return{set:(e,t,n)=>(e[t]===n||(e[t]=n,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...n)=>e[t](...n.map(e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e)):"every"===t||"some"===t?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t]}}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}}d.registerParse=e=>{o=e},d.registerRule=e=>{r=e},d.registerAtRule=e=>{i=e},e.exports=d,d.default=d},function(e,t,n){"use strict";let o,r,i=n(279);class a extends i{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}normalize(e,t,n){let o=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of o)e.raws.before=t.raws.before;return o}toResult(e={}){return new o(new r,this,e).stringify()}}a.registerLazyResult=e=>{o=e},a.registerProcessor=e=>{r=e},e.exports=a,a.default=a},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var o=n(195),r=n(94),i=n(88);function a(){return r.a.get().validated_server_config.isUrl}function s(){const e=a();i.a.get().setAccountData("m.identity_server",{base_url:e})}async function c(e){let t;try{t=await i.a.get().getTerms(o.a.IS,e)}catch(e){if(console.error(e),"rejected"!==e.cors&&404!==e.httpStatus)throw e;t=null}return t&&t.policies&&Object.keys(t.policies).length>0}function l(){const e=i.a.get().getAccountData("m.identity_server");return e&&e.getContent()&&e.getContent().base_url}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(83),r=n.n(o),i=n(0),a=n(1);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}class l{constructor(){this._outgoingRoomKeyRequests=[],this._account=null,this._crossSigningKeys=null,this._privateKeys={},this._backupKeys={},this._sessions={},this._sessionProblems={},this._notifiedErrorDevices={},this._inboundGroupSessions={},this._inboundGroupSessionsWithheld={},this._deviceData=null,this._rooms={},this._sessionsNeedingBackup={},this._sharedHistoryInboundGroupSessions={}}async startup(){return this}deleteAllData(){return Promise.resolve()}getOrAddOutgoingRoomKeyRequest(e){const t=e.requestBody;return a.y(()=>{const n=this._getOutgoingRoomKeyRequest(t);return n?(i.a.log(`already have key request outstanding for ${t.room_id} / ${t.session_id}: not sending another`),n):(i.a.log(`enqueueing key request for ${t.room_id} / `+t.session_id),this._outgoingRoomKeyRequests.push(e),e)})}getOutgoingRoomKeyRequest(e){return Promise.resolve(this._getOutgoingRoomKeyRequest(e))}_getOutgoingRoomKeyRequest(e){for(const t of this._outgoingRoomKeyRequests)if(a.c(t.requestBody,e))return t;return null}getOutgoingRoomKeyRequestByState(e){for(const t of this._outgoingRoomKeyRequests)for(const n of e)if(t.state===n)return Promise.resolve(t);return Promise.resolve(null)}getAllOutgoingRoomKeyRequestsByState(e){return Promise.resolve(this._outgoingRoomKeyRequests.filter(t=>t.state==e))}getOutgoingRoomKeyRequestsByTarget(e,t,n){const o=[];for(const r of this._outgoingRoomKeyRequests)for(const i of n)r.state===i&&r.recipients.includes({userId:e,deviceId:t})&&o.push(r);return Promise.resolve(o)}updateOutgoingRoomKeyRequest(e,t,n){for(const o of this._outgoingRoomKeyRequests)if(o.requestId===e)return o.state!=t?(i.a.warn(`Cannot update room key request from ${t} as it was already updated to `+o.state),Promise.resolve(null)):(Object.assign(o,n),Promise.resolve(o));return Promise.resolve(null)}deleteOutgoingRoomKeyRequest(e,t){for(let n=0;n<this._outgoingRoomKeyRequests.length;n++){const o=this._outgoingRoomKeyRequests[n];if(o.requestId===e)return o.state!=t?(i.a.warn(`Cannot delete room key request in state ${o.state} (expected ${t})`),Promise.resolve(null)):(this._outgoingRoomKeyRequests.splice(n,1),Promise.resolve(o))}return Promise.resolve(null)}getAccount(e,t){t(this._account)}storeAccount(e,t){this._account=t}getCrossSigningKeys(e,t){t(this._crossSigningKeys)}getSecretStorePrivateKey(e,t,n){return t(this._privateKeys[n]||null)}storeCrossSigningKeys(e,t){this._crossSigningKeys=t}storeSecretStorePrivateKey(e,t,n){this._privateKeys[t]=n}countEndToEndSessions(e,t){return Object.keys(this._sessions).length}getEndToEndSession(e,t,n,o){o((this._sessions[e]||{})[t]||null)}getEndToEndSessions(e,t,n){n(this._sessions[e]||{})}getAllEndToEndSessions(e,t){Object.entries(this._sessions).forEach(([e,n])=>{Object.entries(n).forEach(([n,o])=>{t(c(c({},o),{},{deviceKey:e,sessionId:n}))})})}storeEndToEndSession(e,t,n,o){let r=this._sessions[e];void 0===r&&(r={},this._sessions[e]=r),r[t]=n}async storeEndToEndSessionProblem(e,t,n){const o=this._sessionProblems[e]=this._sessionProblems[e]||[];o.push({type:t,fixed:n,time:Date.now()}),o.sort((e,t)=>e.time-t.time)}async getEndToEndSessionProblem(e,t){const n=this._sessionProblems[e]||[];if(!n.length)return null;const o=n[n.length-1];for(const e of n)if(e.time>t)return Object.assign({},e,{fixed:o.fixed});return o.fixed?null:o}async filterOutNotifiedErrorDevices(e){const t=this._notifiedErrorDevices,n=[];for(const o of e){const{userId:e,deviceInfo:r}=o;e in t?r.deviceId in t[e]||(n.push(o),t[e][r.deviceId]=!0):(n.push(o),t[e]={[r.deviceId]:!0})}return n}getEndToEndInboundGroupSession(e,t,n,o){const r=e+"/"+t;o(this._inboundGroupSessions[r]||null,this._inboundGroupSessionsWithheld[r]||null)}getAllEndToEndInboundGroupSessions(e,t){for(const e of Object.keys(this._inboundGroupSessions))t({senderKey:e.substr(0,43),sessionId:e.substr(44),sessionData:this._inboundGroupSessions[e]});t(null)}addEndToEndInboundGroupSession(e,t,n,o){const r=e+"/"+t;void 0===this._inboundGroupSessions[r]&&(this._inboundGroupSessions[r]=n)}storeEndToEndInboundGroupSession(e,t,n,o){this._inboundGroupSessions[e+"/"+t]=n}storeEndToEndInboundGroupSessionWithheld(e,t,n,o){const r=e+"/"+t;this._inboundGroupSessionsWithheld[r]=n}getEndToEndDeviceData(e,t){t(this._deviceData)}storeEndToEndDeviceData(e,t){this._deviceData=e}storeEndToEndRoom(e,t,n){this._rooms[e]=t}getEndToEndRooms(e,t){t(this._rooms)}getSessionsNeedingBackup(e){const t=[];for(const n in this._sessionsNeedingBackup)if(this._inboundGroupSessions[n]&&(t.push({senderKey:n.substr(0,43),sessionId:n.substr(44),sessionData:this._inboundGroupSessions[n]}),e&&n.length>=e))break;return Promise.resolve(t)}countSessionsNeedingBackup(){return Promise.resolve(Object.keys(this._sessionsNeedingBackup).length)}unmarkSessionsNeedingBackup(e){for(const t of e){const e=t.senderKey+"/"+t.sessionId;delete this._sessionsNeedingBackup[e]}return Promise.resolve()}markSessionsNeedingBackup(e){for(const t of e){const e=t.senderKey+"/"+t.sessionId;this._sessionsNeedingBackup[e]=!0}return Promise.resolve()}addSharedHistoryInboundGroupSession(e,t,n){const o=this._sharedHistoryInboundGroupSessions[e]||[];o.push([t,n]),this._sharedHistoryInboundGroupSessions[e]=o}getSharedHistoryInboundGroupSessions(e){return Promise.resolve(this._sharedHistoryInboundGroupSessions[e]||[])}doTxn(e,t,n){return Promise.resolve(n(null))}}},function(e,t,n){"use strict";(function(e){n.d(t,"h",(function(){return u})),n.d(t,"i",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return g})),n.d(t,"d",(function(){return f})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return y})),n.d(t,"j",(function(){return E}));var o=n(83),r=n.n(o),i=n(1007),a=n(1),s=n(0),c=n(1008);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const u="/_matrix/client/r0",h="/_matrix/client/unstable",p="/_matrix/identity/api/v1",m="/_matrix/identity/v2",g="/_matrix/media/r0";function f(e,t){a.a(t,["baseUrl","request","prefix"]),t.onlyData=t.onlyData||!1,this.event_emitter=e,this.opts=t,this.useAuthorizationHeader=Boolean(t.useAuthorizationHeader),this.uploads=[]}f.prototype={setIdBaseUrl:function(e){this.opts.idBaseUrl=e},getContentUri:function(){const e={access_token:this.opts.accessToken};return{base:this.opts.baseUrl,path:"/_matrix/media/r0/upload",params:e}},uploadContent:function(t,n){a.r(n)?n={callback:n}:void 0===n&&(n={});const o=!1!==n.includeFilename,r=n.type||t.type||"application/octet-stream",i=n.name||t.name;let l=t;l.stream&&"function"!=typeof l.stream&&(s.a.warn("Using `file.stream` as the content to upload. Future versions of the js-sdk will change this to expect `file` to be the content directly."),l=l.stream);let d=n.rawResponse;void 0===d&&(e.XMLHttpRequest?d=!1:(s.a.warn("Returning the raw JSON from uploadContent(). Future versions of the js-sdk will change this default, to return the parsed object. Set opts.rawResponse=false to change this behaviour now."),d=!0));let u=n.onlyContentUri;d||void 0!==u||(e.XMLHttpRequest?(s.a.warn("Returning only the content-uri from uploadContent(). Future versions of the js-sdk will change this default, to return the whole response object. Set opts.onlyContentUri=false to change this behaviour now."),u=!0):u=!1);const h={loaded:0,total:0};let p,m=null;if(d||(m=function(e){let t=JSON.parse(e);if(u&&(t=t.content_uri,void 0===t))throw Error("Bad response");return t}),e.XMLHttpRequest){const t=a.e(),s=new e.XMLHttpRequest;h.xhr=s;const d=_(t,n.callback,this.opts.onlyData),u=function(){s.abort(),d(new Error("Timeout"))};s.timeout_timer=c.b(u,3e4),s.onreadystatechange=function(){let t;switch(s.readyState){case e.XMLHttpRequest.DONE:c.a(s.timeout_timer);try{if(0===s.status)throw new y;if(!s.responseText)throw new Error("No response body.");t=s.responseText,m&&(t=m(t))}catch(e){return e.http_status=s.status,void d(e)}d(void 0,s,t)}},s.upload.addEventListener("progress",(function(e){c.a(s.timeout_timer),h.loaded=e.loaded,h.total=e.total,s.timeout_timer=c.b(u,3e4),n.progressHandler&&n.progressHandler({loaded:e.loaded,total:e.total})}));let g=this.opts.baseUrl+"/_matrix/media/r0/upload";const f=[];o&&i&&f.push("filename="+encodeURIComponent(i)),this.useAuthorizationHeader||f.push("access_token="+encodeURIComponent(this.opts.accessToken)),f.length>0&&(g+="?"+f.join("&")),s.open("POST",g),this.useAuthorizationHeader&&s.setRequestHeader("Authorization","Bearer "+this.opts.accessToken),s.setRequestHeader("Content-Type",r),s.send(l),p=t.promise,p.abort=s.abort.bind(s)}else{const e={};o&&i&&(e.filename=i),p=this.authedRequest(n.callback,"POST","/upload",e,l,{prefix:"/_matrix/media/r0",headers:{"Content-Type":r},json:!1,bodyParser:m})}const g=this,f=p.finally((function(){for(let e=0;e<g.uploads.length;++e)if(g.uploads[e]===h)return void g.uploads.splice(e,1)}));return f.abort=p.abort,h.promise=f,this.uploads.push(h),f},cancelUpload:function(e){return!!e.abort&&(e.abort(),!0)},getCurrentUploads:function(){return this.uploads},idServerRequest:function(e,t,n,o,r,i){if(!this.opts.idBaseUrl)throw new Error("No Identity Server base URL set");const s=this.opts.idBaseUrl+r+n;if(void 0!==e&&!a.r(e))throw Error("Expected callback to be a function but got "+typeof e);const c={uri:s,method:t,withCredentials:!1,json:!0,_matrix_opts:this.opts,headers:{}};"GET"===t?c.qs=o:"object"==typeof o&&(c.json=o),i&&(c.headers.Authorization="Bearer "+i);const l=a.e();return this.opts.request(c,_(l,e,this.opts.onlyData)),l.promise},authedRequest:function(e,t,n,o,r,i){o||(o={}),this.useAuthorizationHeader?(isFinite(i)&&(i={localTimeoutMs:i}),i||(i={}),i.headers||(i.headers={}),i.headers.Authorization||(i.headers.Authorization="Bearer "+this.opts.accessToken),o.access_token&&delete o.access_token):o.access_token||(o.access_token=this.opts.accessToken);const a=this.request(e,t,n,o,r,i),s=this;return a.catch((function(e){"M_UNKNOWN_TOKEN"==e.errcode?s.event_emitter.emit("Session.logged_out",e):"M_CONSENT_NOT_GIVEN"==e.errcode&&s.event_emitter.emit("no_consent",e.message,e.data.consent_uri)})),a},request:function(e,t,n,o,r,i){const a=void 0!==(i=i||{}).prefix?i.prefix:this.opts.prefix,s=this.opts.baseUrl+a+n;return this.requestOtherUrl(e,t,s,o,r,i)},requestOtherUrl:function(e,t,n,o,r,i){return null==i?i={}:isFinite(i)&&(i={localTimeoutMs:i}),this._request(e,t,n,o,r,i)},getUrl:function(e,t,n){let o="";return t&&(o="?"+a.f(t)),this.opts.baseUrl+n+e+o},_request:function(e,t,n,o,r,i){if(void 0!==e&&!a.r(e))throw Error("Expected callback to be a function but got "+typeof e);i=i||{};const s=this;this.opts.extraParams&&(o=d(d({},o),this.opts.extraParams));const l=a.j({},i.headers||{}),u=void 0===i.json||i.json;let h=i.bodyParser;u&&(r&&(r=JSON.stringify(r),l["content-type"]="application/json"),l.accept||(l.accept="application/json"),void 0===h&&(h=function(e){return JSON.parse(e)}));const p=a.e();let m,g,f=!1;const v=i.localTimeoutMs||this.opts.localTimeoutMs,y=()=>{v&&(m&&c.a(m),m=c.b((function(){f=!0,g&&g.abort&&g.abort(),p.reject(new b({error:"Locally timed out waiting for a response",errcode:"ORG.MATRIX.JSSDK_TIMEOUT",timeout:v}))}),v))};y();const E=p.promise;try{g=this.opts.request({uri:n,method:t,withCredentials:!1,qs:o,qsStringifyOptions:i.qsStringifyOptions,useQuerystring:!0,body:r,json:!1,timeout:v,headers:l||{},_matrix_opts:this.opts},(function(t,n,o){if(v&&(c.a(m),f))return;_(p,e,s.opts.onlyData,h)(t,n,o)})),g&&("onprogress"in g&&(g.onprogress=e=>{y()}),g.abort&&(E.abort=g.abort.bind(g)))}catch(t){p.reject(t),e&&e(t)}return E}};const _=function(e,t,n,o){return t=t||function(){},function(r,a,s){if(r){"AbortError"===r.name||"aborted"===r||r instanceof b||(r=new v("request failed",r))}if(!r)try{a.statusCode>=400?r=function(e,t){const n=e.statusCode,o=function(e){let t;e.getResponseHeader?t=e.getResponseHeader("Content-Type"):e.headers&&(t=e.headers["content-type"]||null);if(!t)return null;try{return Object(i.parse)(t)}catch(e){throw new Error(`Error parsing Content-Type '${t}': ${e}`)}}(e);let r;if(o)if("application/json"===o.type){const e="object"==typeof t?t:JSON.parse(t);r=new b(e)}else"text/plain"===o.type&&(r=new Error(`Server returned ${n} error: ${t}`));r||(r=new Error(`Server returned ${n} error`));return r.httpStatus=n,r}(a,s):o&&(s=o(s))}catch(e){r=new Error("Error parsing server response: "+e)}if(r)e.reject(r),t(r);else{const o={code:a.statusCode,headers:a.headers,data:s};e.resolve(n?s:o),t(null,n?s:o)}}};class b extends Error{constructor(e){super("MatrixError: "+(e=e||{}).errcode),this.errcode=e.errcode,this.name=e.errcode||"Unknown error code",this.message=e.error||"Unknown message",this.data=e}}class v extends Error{constructor(e,t){super(e+(t?": "+t.message:"")),this._cause=t}get name(){return"ConnectionError"}get cause(){return this._cause}}class y extends Error{constructor(){super("Operation aborted")}get name(){return"AbortError"}}async function E(e,t){let n=0,o=null;for(;n<e;)try{if(n>0){const e=1e3*Math.pow(2,n);s.a.log(`network operation failed ${n} times, retrying in ${e}ms...`),await new Promise(t=>setTimeout(t,e))}return await t()}catch(e){if(!(e instanceof v))throw e;n+=1,o=e}throw o}}).call(this,n(6))},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d}));var o=n(1),r=n(135);const i="undefined"!=typeof window&&window.crypto?window.crypto.subtle||window.crypto.webkitSubtle:null,a=new Uint8Array(8);function s(t,n){const r=Object(o.n)(),i=r.createHmac("sha256",a).update(t).digest(),s=e.alloc(1,1),c=r.createHmac("sha256",i).update(n,"utf-8").update(s).digest();s[0]=2;return[c,r.createHmac("sha256",i).update(c).update(n,"utf-8").update(s).digest()]}async function c(e,t){const n=await i.importKey("raw",e,{name:"HKDF"},!1,["deriveBits"]),o=await i.deriveBits({name:"HKDF",salt:a,info:(new TextEncoder).encode(t),hash:"SHA-256"},n,512),r=o.slice(0,32),s=o.slice(32),c=i.importKey("raw",r,{name:"AES-CTR"},!1,["encrypt","decrypt"]),l=i.importKey("raw",s,{name:"HMAC",hash:{name:"SHA-256"}},!1,["sign","verify"]);return await Promise.all([c,l])}function l(...e){return i?async function(e,t,n,o){let a;o?a=Object(r.decodeBase64)(o):(a=new Uint8Array(16),window.crypto.getRandomValues(a)),a[8]&=127;const[s,l]=await c(t,n),d=(new TextEncoder).encode(e),u=await i.encrypt({name:"AES-CTR",counter:a,length:64},s,d),h=await i.sign({name:"HMAC"},l,u);return{iv:Object(r.encodeBase64)(a),ciphertext:Object(r.encodeBase64)(u),mac:Object(r.encodeBase64)(h)}}(...e):async function(e,t,n,i){const a=Object(o.n)();if(!a)throw new Error("No usable crypto implementation");let c;c=i?Object(r.decodeBase64)(i):a.randomBytes(16),c[8]&=127;const[l,d]=s(t,n),u=a.createCipheriv("aes-256-ctr",l,c),h=u.update(e,"utf-8","base64")+u.final("base64"),p=a.createHmac("sha256",d).update(h,"base64").digest("base64");return{iv:Object(r.encodeBase64)(c),ciphertext:h,mac:p}}(...e)}function d(...e){return i?async function(e,t,n){const[o,a]=await c(t,n),s=Object(r.decodeBase64)(e.ciphertext);if(!await i.verify({name:"HMAC"},a,Object(r.decodeBase64)(e.mac),s))throw new Error(`Error decrypting secret ${n}: bad MAC`);const l=await i.decrypt({name:"AES-CTR",counter:Object(r.decodeBase64)(e.iv),length:64},o,s);return(new TextDecoder).decode(new Uint8Array(l))}(...e):async function(e,t,n){const i=Object(o.n)();if(!i)throw new Error("No usable crypto implementation");const[a,c]=s(t,n);if(i.createHmac("sha256",c).update(e.ciphertext,"base64").digest("base64").replace(/=+$/g,"")!==e.mac.replace(/=+$/g,""))throw new Error(`Error decrypting secret ${n}: bad MAC`);const l=i.createDecipheriv("aes-256-ctr",a,Object(r.decodeBase64)(e.iv));return l.update(e.ciphertext,"base64","utf-8")+l.final("utf-8")}(...e)}}).call(this,n(32).Buffer)},function(e,t,n){"use strict";(function(e,o){n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return m}));var r=n(426),i=n(286),a=n(135),s=n(0);const c="m.qr_code.show.v1",l="m.qr_code.scan.v1";class d extends r.b{static factory(...e){return new d(...e)}static get NAME(){return"m.reciprocate.v1"}async _doVerification(){if(!this.startEvent)throw new Error("It is not currently possible to start verificationwith this method yet.");const{qrCodeData:e}=this.request;if(this.startEvent.getContent().secret!==e.encodedSharedSecret)throw Object(i.d)();await new Promise((e,t)=>{this.reciprocateQREvent={confirm:e,cancel:()=>t(Object(i.h)())},this.emit("show_reciprocate_qr",this.reciprocateQREvent)});const t={};switch(e.mode){case u:{const n=e.otherUserMasterKey;t["ed25519:"+n]=n;break}case h:{const n=this.request.targetDevice.deviceId;t["ed25519:"+n]=e.otherDeviceKey;break}case p:{const n=e.myMasterKey;t["ed25519:"+n]=n;break}}await this._verifyKeys(this.userId,t,(e,n,o)=>{const r=t[e];if(!r)throw Object(i.d)();if(o!==r)throw s.a.error("key ID from key info does not match"),Object(i.d)();for(const e in n.keys){if(!e.startsWith("ed25519"))continue;const o=t[e];if(!o)throw Object(i.d)();if(n.keys[e]!==o)throw s.a.error("master key does not match"),Object(i.d)()}})}}const u=0,h=1,p=2;class m{constructor(e,t,n,o,r,i){this._sharedSecret=t,this._mode=e,this._otherUserMasterKey=n,this._otherDeviceKey=o,this._myMasterKey=r,this._buffer=i}static async create(e,t){const n=m._generateSharedSecret(),o=m._determineMode(e,t);let r=null,i=null,a=null;if(o===u){r=t.getStoredCrossSigningForUser(e.otherUserId).getId("master")}else if(o===h)i=await m._getOtherDeviceKey(e,t);else if(o===p){const e=t.getUserId();a=t.getStoredCrossSigningForUser(e).getId("master")}const s=m._generateQrData(e,t,o,n,r,i,a),c=m._generateBuffer(s);return new m(o,n,r,i,a,c)}get buffer(){return this._buffer}get mode(){return this._mode}get otherDeviceKey(){return this._otherDeviceKey}get otherUserMasterKey(){return this._otherUserMasterKey}get myMasterKey(){return this._myMasterKey}get encodedSharedSecret(){return this._sharedSecret}static _generateSharedSecret(){const t=new Uint8Array(11);return e.crypto.getRandomValues(t),Object(a.encodeUnpaddedBase64)(t)}static async _getOtherDeviceKey(e,t){const n=t.getUserId(),o=e.targetDevice,r=o?o.deviceId:null,i=t.getStoredDevice(n,r);if(!i)throw new Error("could not find device "+r);return i.getFingerprint()}static _determineMode(e,t){const n=t.getUserId(),o=e.otherUserId;let r=u;if(n===o){r=t.checkUserTrust(n).isCrossSigningVerified()?h:p}return r}static _generateQrData(e,t,n,o,r,i,a){const s=t.getUserId(),c={prefix:"MATRIX",version:2,mode:n,transactionId:e.channel.transactionId,firstKeyB64:"",secondKeyB64:"",secretB64:o},l=t.getStoredCrossSigningForUser(s);return n===u?(c.firstKeyB64=l.getId("master"),c.secondKeyB64=r):n===h?(c.firstKeyB64=l.getId("master"),c.secondKeyB64=i):n===p&&(c.firstKeyB64=t.getDeviceEd25519Key(),c.secondKeyB64=a),c}static _generateBuffer(e){let t=o.alloc(0);const n=e=>{const n=o.from([e]);t=o.concat([t,n])},r=(e,n,r=!0)=>{const i=o.from(e,n);r&&(e=>{const n=o.alloc(2);n.writeInt16BE(e,0),t=o.concat([t,n])})(i.byteLength),t=o.concat([t,i])},i=e=>{const n=Object(a.decodeBase64)(e),r=o.from(n);t=o.concat([t,r])};return r(e.prefix,"ascii",!1),n(e.version),n(e.mode),r(e.transactionId,"utf-8"),i(e.firstKeyB64),i(e.secondKeyB64),i(e.secretB64),t}}}).call(this,n(6),n(32).Buffer)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"h",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return u}));var o=n(103);function r(e,t){return function(n){return function(e,t,n){const r=Object.assign({},{code:e,reason:t},n);return new o.b({type:"m.key.verification.cancel",content:r})}(e,t,n)}}const i=r("m.user","Cancelled by user"),a=r("m.timeout","Timed out"),s=(r("m.unknown_transaction","Unknown transaction"),r("m.unknown_method","Unknown method")),c=r("m.unexpected_message","Unexpected message"),l=r("m.key_mismatch","Key mismatch"),d=(r("m.user_error","User mismatch"),r("m.invalid_message","Invalid message"));function u(e){const t=e.getContent();if(t){const{code:e,reason:n}=t;return{code:e,reason:n}}return{code:"Unknown error",reason:"m.unknown"}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return u}));var o=n(92),r=n.n(o),i=n(88),a=n(87),s=n(91);class c extends Error{}class l{constructor(e,t,n){this.serviceType=e,this.baseUrl=t,this.accessToken=n}}async function d(e,t=u){const n=e.map(e=>i.a.get().getTerms(e.serviceType,e.baseUrl)),o=(await Promise.all(n)).map((t,n)=>({service:e[n],policies:t.policies})),r=await i.a.get().getAccountData("m.accepted_terms");let a;a=r&&r.getContent()&&r.getContent().accepted?new Set(r.getContent().accepted):new Set;const s=[];for(const{service:e,policies:t}of o){const n={};for(const[e,o]of Object.entries(t)){let t=!1;for(const e of Object.keys(o))if("version"!==e&&a.has(o[e].url)){t=!0;break}t||(n[e]=o)}Object.keys(n).length>0&&s.push({service:e,policies:n})}const c=a.size;if(s.length>0){const e=await t(s,[...a]);console.log("User has agreed to URLs",e),e.forEach(e=>a.add(e))}else console.log("User has already agreed to all required policies");if(a.size!==c){const e={accepted:Array.from(a)};await i.a.get().setAccountData("m.accepted_terms",e)}const l=o.map(e=>{const t=Array.from(a).filter(t=>{for(const n of Object.values(e.policies))for(const e of Object.keys(n))if("version"!==e&&n[e].url===t)return!0;return!1});return 0===t.length?Promise.resolve():i.a.get().agreeToTerms(e.service.serviceType,e.service.baseUrl,e.service.accessToken,t)});return Promise.all(l)}function u(e,t,n){return new Promise((o,i)=>{console.log("Terms that need agreement",e);const l=a.getComponent("views.dialogs.TermsDialog");s.a.createTrackedDialog("Terms of Service","",l,{policiesAndServicePairs:e,agreedUrls:t,onFinished:(e,t)=>{e?o(t):i(new c)}},r()("mx_TermsDialog",n))})}},function(e,t,n){"use strict";(function(e){var o=n(7),r=n.n(o),i=n(88),a=n(250);class s extends r.a{constructor(){super(),this._persistentWidgetId=null,this._roomIdByWidgetId={},this.onRoomStateEvents=this.onRoomStateEvents.bind(this),this.dispatcherRef=null}start(){i.a.get().on("RoomState.events",this.onRoomStateEvents)}stop(){i.a.get()&&i.a.get().removeListener("RoomState.events",this.onRoomStateEvents),this._roomIdByWidgetId={}}onRoomStateEvents(e,t){"im.vector.modular.widgets"===e.getType()&&e.getStateKey()===this._persistentWidgetId&&this.destroyPersistentWidget(this._persistentWidgetId)}destroyPersistentWidget(e){if(e!==this._persistentWidgetId)return;const t=this._persistentWidgetId;a.a.instance.stopMessagingById(e),this.setWidgetPersistence(t,!1),this.delRoomId(t)}setWidgetPersistence(e,t){this._persistentWidgetId!==e||t?this._persistentWidgetId!==e&&t&&(this._persistentWidgetId=e):this._persistentWidgetId=null,this.emit("update")}getWidgetPersistence(e){return this._persistentWidgetId===e}getPersistentWidgetId(){return this._persistentWidgetId}getRoomId(e){return this._roomIdByWidgetId[e]}setRoomId(e,t){this._roomIdByWidgetId[e]=t,this.emit("update")}delRoomId(e){delete this._roomIdByWidgetId[e],this.emit("update")}}void 0===e.singletonActiveWidgetStore&&(e.singletonActiveWidgetStore=new s),t.a=e.singletonActiveWidgetStore}).call(this,n(6))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignRef=function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}},function(e,t,n){(function(n){var o,r,i,a,s,c,l,d,u,h,p,m,g,f,_,b,v,y,E,S,w,C,T,x;!function(O){var k="object"==typeof n?n:"object"==typeof self?self:"object"==typeof this?this:{};function R(e,t){return e!==k&&("function"==typeof Object.create?Object.defineProperty(e,"__esModule",{value:!0}):e.__esModule=!0),function(n,o){return e[n]=t?t(n,o):o}}void 0===(o=function(e){var t,n;t=R(k,R(e)),n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r=function(e,t){function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)},i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n},s=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},c=function(e,t){return function(n,o){t(n,o,e)}},l=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t,n,o){return new(n||(n=Promise))((function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function s(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((o=o.apply(e,t||[])).next())}))},u=function(e,t){var n,o,r,i,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((r=(r=a.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){a.label=i[1];break}if(6===i[0]&&a.label<r[1]){a.label=r[1],r=i;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(i);break}r[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},x=function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]},h=function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])},p=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,r,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return a},g=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e},f=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o},_=function(e){return this instanceof _?(this.v=e,this):new _(e)},b=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o;function a(e){r[e]&&(o[e]=function(t){return new Promise((function(n,o){i.push([e,t,n,o])>1||s(e,t)}))})}function s(e,t){try{(n=r[e](t)).value instanceof _?Promise.resolve(n.value.v).then(c,l):d(i[0][2],n)}catch(e){d(i[0][3],e)}var n}function c(e){s("next",e)}function l(e){s("throw",e)}function d(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}},v=function(e){var t,n;return t={},o("next"),o("throw",(function(e){throw e})),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,r){t[o]=e[o]?function(t){return(n=!n)?{value:_(e[o](t)),done:"return"===o}:r?r(t):t}:r}},y=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(n){t[n]=e[n]&&function(t){return new Promise((function(o,r){!function(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}(o,r,(t=e[n](t)).done,t.value)}))}}},E=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},S=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},w=function(e){return e&&e.__esModule?e:{default:e}},C=function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},T=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n},t("__extends",r),t("__assign",i),t("__rest",a),t("__decorate",s),t("__param",c),t("__metadata",l),t("__awaiter",d),t("__generator",u),t("__exportStar",h),t("__createBinding",x),t("__values",p),t("__read",m),t("__spread",g),t("__spreadArrays",f),t("__await",_),t("__asyncGenerator",b),t("__asyncDelegator",v),t("__asyncValues",y),t("__makeTemplateObject",E),t("__importStar",S),t("__importDefault",w),t("__classPrivateFieldGet",C),t("__classPrivateFieldSet",T)}.apply(t,[t]))||(e.exports=o)}()}).call(this,n(6))},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return _})),n.d(t,"f",(function(){return b})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return y})),n.d(t,"e",(function(){return E}));var o=n(82),r=n.n(o),i=n(110),a=n(109),s=n(91),c=n(617),l=n(621),d=n(625),u=n(136),h=n(84),p=n(446),m=n(255),g=n(145);const f=(e,t)=>{const n=e.getUserId();return"join"===t.getMyMembership()&&(t.currentState.maySendStateEvent(i.a.RoomAvatar,n)||t.currentState.maySendStateEvent(i.a.RoomName,n)||t.currentState.maySendStateEvent(i.a.RoomTopic,n)||t.currentState.maySendStateEvent(i.a.RoomJoinRules,n))},_=(e,t=!1)=>({type:i.a.SpaceParent,content:{via:Object(a.b)(e),canonical:t},state_key:e.roomId}),b=(e,t)=>{s.a.createTrackedDialog("Space Settings","",c.a,{matrixClient:e,space:t},null,!1,!0)},v=async(e,t)=>s.a.createTrackedDialog("Space Landing","Add Existing",l.a,{matrixClient:e,onCreateRoomClick:y,space:t},"mx_AddExistingToSpaceDialog_wrapper").finished,y=async(e,t)=>{const n=s.a.createTrackedDialog("Space Landing","Create Room",d.a,{defaultPublic:"public"===t.getJoinRule(),parentSpace:t}),[o,r]=await n.finished;o&&await Object(u.c)(r)},E=(e,t="")=>{if("public"===e.getJoinRule()){const t=s.a.createTrackedDialog("Space Invite","User Menu",m.a,{title:Object(h.a)("Invite to %(spaceName)s",{spaceName:e.name}),description:r.a.createElement(r.a.Fragment,null,r.a.createElement("span",null,Object(h.a)("Share your public space")),r.a.createElement(p.a,{space:e,onFinished:()=>t.close()})),fixedWidth:!1,button:!1,className:"mx_SpacePanel_sharePublicSpace",hasCloseButton:!0})}else Object(g.g)(e.roomId,t)}},function(e,t,n){"use strict";var o=n(95),r=n.n(o),i=n(100),a=n.n(i),s=n(82),c=n.n(s),l=n(92),d=n.n(l),u=n(87);t.a=e=>{let{checked:t,disabled:n=!1,onChange:o}=e,i=a()(e,["checked","disabled","onChange"]);const s=d()({mx_ToggleSwitch:!0,mx_ToggleSwitch_on:t,mx_ToggleSwitch_enabled:!n}),l=u.getComponent("elements.AccessibleButton");return c.a.createElement(l,r()({},i,{className:s,onClick:()=>{n||o(!t)},role:"switch","aria-checked":t,"aria-disabled":n}),c.a.createElement("div",{className:"mx_ToggleSwitch_ball"}))}},function(e,t,n){"use strict";async function o(e){try{if(navigator&&navigator.clipboard&&navigator.clipboard.writeText)return await navigator.clipboard.writeText(e),!0;{const t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t);const n=document.getSelection(),o=document.createRange();o.selectNode(t),n.removeAllRanges(),n.addRange(o);const r=document.execCommand("copy");return n.removeAllRanges(),document.body.removeChild(t),r}}catch(e){console.error("copyPlaintext failed",e)}return!1}function r(e){const t=document.createRange();t.selectNodeContents(e);const n=window.getSelection();n.removeAllRanges(),n.addRange(t)}function i(e){return r(e),document.execCommand("copy")}n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(82),i=(o=n(1266))&&"object"==typeof o&&"default"in o?o.default:o,a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function s(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var c=function(){return(c=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},l={top:{width:"100%",height:"10px",top:"-5px",left:"0px",cursor:"row-resize"},right:{width:"10px",height:"100%",top:"0px",right:"-5px",cursor:"col-resize"},bottom:{width:"100%",height:"10px",bottom:"-5px",left:"0px",cursor:"row-resize"},left:{width:"10px",height:"100%",top:"0px",left:"-5px",cursor:"col-resize"},topRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",top:"-10px",cursor:"ne-resize"},bottomRight:{width:"20px",height:"20px",position:"absolute",right:"-10px",bottom:"-10px",cursor:"se-resize"},bottomLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",bottom:"-10px",cursor:"sw-resize"},topLeft:{width:"20px",height:"20px",position:"absolute",left:"-10px",top:"-10px",cursor:"nw-resize"}},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onMouseDown=function(e){t.props.onResizeStart(e,t.props.direction)},t.onTouchStart=function(e){t.props.onResizeStart(e,t.props.direction)},t}return s(t,e),t.prototype.render=function(){return r.createElement("div",{className:this.props.className||"",style:c(c({position:"absolute",userSelect:"none"},l[this.props.direction]),this.props.replaceStyles||{}),onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart},this.props.children)},t}(r.PureComponent),u={width:"auto",height:"auto"},h=i((function(e,t,n){return Math.max(Math.min(e,n),t)})),p=i((function(e,t){return Math.round(e/t)*t})),m=i((function(e,t){return new RegExp(e,"i").test(t)})),g=function(e){return Boolean(e.touches&&e.touches.length)},f=i((function(e,t,n){void 0===n&&(n=0);var o=t.reduce((function(n,o,r){return Math.abs(o-e)<Math.abs(t[n]-e)?r:n}),0),r=Math.abs(t[o]-e);return 0===n||r<n?t[o]:e})),_=i((function(e,t){return e.substr(e.length-t.length,t.length)===t})),b=i((function(e){return"auto"===(e=e.toString())||_(e,"px")||_(e,"%")||_(e,"vh")||_(e,"vw")||_(e,"vmax")||_(e,"vmin")?e:e+"px"})),v=function(e,t,n,o){if(e&&"string"==typeof e){if(_(e,"px"))return Number(e.replace("px",""));if(_(e,"%"))return t*(Number(e.replace("%",""))/100);if(_(e,"vw"))return n*(Number(e.replace("vw",""))/100);if(_(e,"vh"))return o*(Number(e.replace("vh",""))/100)}return e},y=i((function(e,t,n,o,r,i,a){return o=v(o,e.width,t,n),r=v(r,e.height,t,n),i=v(i,e.width,t,n),a=v(a,e.height,t,n),{maxWidth:void 0===o?void 0:Number(o),maxHeight:void 0===r?void 0:Number(r),minWidth:void 0===i?void 0:Number(i),minHeight:void 0===a?void 0:Number(a)}})),E=["as","style","className","grid","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],S=function(e){function t(t){var n=e.call(this,t)||this;return n.ratio=1,n.resizable=null,n.parentLeft=0,n.parentTop=0,n.resizableLeft=0,n.resizableRight=0,n.resizableTop=0,n.resizableBottom=0,n.targetLeft=0,n.targetTop=0,n.appendBase=function(){if(!n.resizable||!n.window)return null;var e=n.parentNode;if(!e)return null;var t=n.window.document.createElement("div");return t.style.width="100%",t.style.height="100%",t.style.position="absolute",t.style.transform="scale(0, 0)",t.style.left="0",t.style.flex="0",t.classList?t.classList.add("__resizable_base__"):t.className+="__resizable_base__",e.appendChild(t),t},n.removeBase=function(e){var t=n.parentNode;t&&t.removeChild(e)},n.ref=function(e){e&&(n.resizable=e)},n.state={isResizing:!1,width:void 0===(n.propsSize&&n.propsSize.width)?"auto":n.propsSize&&n.propsSize.width,height:void 0===(n.propsSize&&n.propsSize.height)?"auto":n.propsSize&&n.propsSize.height,direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},n.onResizeStart=n.onResizeStart.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n}return s(t,e),Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||u},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var e=0,t=0;if(this.resizable&&this.window){var n=this.resizable.offsetWidth,o=this.resizable.offsetHeight,r=this.resizable.style.position;"relative"!==r&&(this.resizable.style.position="relative"),e="auto"!==this.resizable.style.width?this.resizable.offsetWidth:n,t="auto"!==this.resizable.style.height?this.resizable.offsetHeight:o,this.resizable.style.position=r}return{width:e,height:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var e=this,t=this.props.size,n=function(t){if(void 0===e.state[t]||"auto"===e.state[t])return"auto";if(e.propsSize&&e.propsSize[t]&&_(e.propsSize[t].toString(),"%")){if(_(e.state[t].toString(),"%"))return e.state[t].toString();var n=e.getParentSize();return Number(e.state[t].toString().replace("px",""))/n[t]*100+"%"}return b(e.state[t])};return{width:t&&void 0!==t.width&&!this.state.isResizing?b(t.width):n("width"),height:t&&void 0!==t.height&&!this.state.isResizing?b(t.height):n("height")}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var e=this.appendBase();if(!e)return{width:0,height:0};var t=!1,n=this.parentNode.style.flexWrap;"wrap"!==n&&(t=!0,this.parentNode.style.flexWrap="wrap"),e.style.position="relative",e.style.minWidth="100%";var o={width:e.offsetWidth,height:e.offsetHeight};return t&&(this.parentNode.style.flexWrap=n),this.removeBase(e),o},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(this.resizable&&this.window){var e=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==e.flexBasis?e.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(e,t){var n=this.propsSize&&this.propsSize[t];return"auto"!==this.state[t]||this.state.original[t]!==e||void 0!==n&&"auto"!==n?e:"auto"},t.prototype.calculateNewMaxFromBoundary=function(e,t){var n,o,r=this.props.boundsByDirection,i=this.state.direction,a=r&&m("left",i),s=r&&m("top",i);if("parent"===this.props.bounds){var c=this.parentNode;c&&(n=a?this.resizableRight-this.parentLeft:c.offsetWidth+(this.parentLeft-this.resizableLeft),o=s?this.resizableBottom-this.parentTop:c.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(n=a?this.resizableRight:this.window.innerWidth-this.resizableLeft,o=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(n=a?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),o=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return n&&Number.isFinite(n)&&(e=e&&e<n?e:n),o&&Number.isFinite(o)&&(t=t&&t<o?t:o),{maxWidth:e,maxHeight:t}},t.prototype.calculateNewSizeFromDirection=function(e,t){var n=this.props.scale||1,o=this.props.resizeRatio||1,r=this.state,i=r.direction,a=r.original,s=this.props,c=s.lockAspectRatio,l=s.lockAspectRatioExtraHeight,d=s.lockAspectRatioExtraWidth,u=a.width,h=a.height,p=l||0,g=d||0;return m("right",i)&&(u=a.width+(e-a.x)*o/n,c&&(h=(u-g)/this.ratio+p)),m("left",i)&&(u=a.width-(e-a.x)*o/n,c&&(h=(u-g)/this.ratio+p)),m("bottom",i)&&(h=a.height+(t-a.y)*o/n,c&&(u=(h-p)*this.ratio+g)),m("top",i)&&(h=a.height-(t-a.y)*o/n,c&&(u=(h-p)*this.ratio+g)),{newWidth:u,newHeight:h}},t.prototype.calculateNewSizeFromAspectRatio=function(e,t,n,o){var r=this.props,i=r.lockAspectRatio,a=r.lockAspectRatioExtraHeight,s=r.lockAspectRatioExtraWidth,c=void 0===o.width?10:o.width,l=void 0===n.width||n.width<0?e:n.width,d=void 0===o.height?10:o.height,u=void 0===n.height||n.height<0?t:n.height,p=a||0,m=s||0;if(i){var g=(d-p)*this.ratio+m,f=(u-p)*this.ratio+m,_=(c-m)/this.ratio+p,b=(l-m)/this.ratio+p,v=Math.max(c,g),y=Math.min(l,f),E=Math.max(d,_),S=Math.min(u,b);e=h(e,v,y),t=h(t,E,S)}else e=h(e,c,l),t=h(t,d,u);return{newWidth:e,newHeight:t}},t.prototype.setBoundingClientRect=function(){if("parent"===this.props.bounds){var e=this.parentNode;if(e){var t=e.getBoundingClientRect();this.parentLeft=t.left,this.parentTop=t.top}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left,this.targetTop=n.top}if(this.resizable){var o=this.resizable.getBoundingClientRect(),r=o.left,i=o.top,a=o.right,s=o.bottom;this.resizableLeft=r,this.resizableRight=a,this.resizableTop=i,this.resizableBottom=s}},t.prototype.onResizeStart=function(e,t){if(this.resizable&&this.window){var n,o=0,r=0;if(e.nativeEvent&&function(e){return Boolean((e.clientX||0===e.clientX)&&(e.clientY||0===e.clientY))}(e.nativeEvent)){if(o=e.nativeEvent.clientX,r=e.nativeEvent.clientY,3===e.nativeEvent.which)return}else e.nativeEvent&&g(e.nativeEvent)&&(o=e.nativeEvent.touches[0].clientX,r=e.nativeEvent.touches[0].clientY);if(this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(e,t,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var i=this.window.getComputedStyle(this.resizable);if("auto"!==i.flexBasis){var a=this.parentNode;if(a){var s=this.window.getComputedStyle(a).flexDirection;this.flexDir=s.startsWith("row")?"row":"column",n=i.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var l={original:{x:o,y:r,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:c(c({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(e.target).cursor||"auto"}),direction:t,flexBasis:n};this.setState(l)}},t.prototype.onMouseMove=function(e){if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&g(e))try{e.preventDefault(),e.stopPropagation()}catch(e){}var t=this.props,n=t.maxWidth,o=t.maxHeight,r=t.minWidth,i=t.minHeight,a=g(e)?e.touches[0].clientX:e.clientX,s=g(e)?e.touches[0].clientY:e.clientY,c=this.state,l=c.direction,d=c.original,u=c.width,h=c.height,m=this.getParentSize(),b=y(m,this.window.innerWidth,this.window.innerHeight,n,o,r,i);n=b.maxWidth,o=b.maxHeight,r=b.minWidth,i=b.minHeight;var v=this.calculateNewSizeFromDirection(a,s),E=v.newHeight,S=v.newWidth,w=this.calculateNewMaxFromBoundary(n,o),C=this.calculateNewSizeFromAspectRatio(S,E,{width:w.maxWidth,height:w.maxHeight},{width:r,height:i});if(S=C.newWidth,E=C.newHeight,this.props.grid){var T=p(S,this.props.grid[0]),x=p(E,this.props.grid[1]),O=this.props.snapGap||0;S=0===O||Math.abs(T-S)<=O?T:S,E=0===O||Math.abs(x-E)<=O?x:E}this.props.snap&&this.props.snap.x&&(S=f(S,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(E=f(E,this.props.snap.y,this.props.snapGap));var k={width:S-d.width,height:E-d.height};if(u&&"string"==typeof u)if(_(u,"%"))S=S/m.width*100+"%";else if(_(u,"vw")){S=S/this.window.innerWidth*100+"vw"}else if(_(u,"vh")){S=S/this.window.innerHeight*100+"vh"}if(h&&"string"==typeof h)if(_(h,"%"))E=E/m.height*100+"%";else if(_(h,"vw")){E=E/this.window.innerWidth*100+"vw"}else if(_(h,"vh")){E=E/this.window.innerHeight*100+"vh"}var R={width:this.createSizeForCssProperty(S,"width"),height:this.createSizeForCssProperty(E,"height")};"row"===this.flexDir?R.flexBasis=R.width:"column"===this.flexDir&&(R.flexBasis=R.height),this.setState(R),this.props.onResize&&this.props.onResize(e,l,this.resizable,k)}},t.prototype.onMouseUp=function(e){var t=this.state,n=t.isResizing,o=t.direction,r=t.original;if(n&&this.resizable){var i={width:this.size.width-r.width,height:this.size.height-r.height};this.props.onResizeStop&&this.props.onResizeStop(e,o,this.resizable,i),this.props.size&&this.setState(this.props.size),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:c(c({},this.state.backgroundStyle),{cursor:"auto"})})}},t.prototype.updateSize=function(e){this.setState({width:e.width,height:e.height})},t.prototype.renderResizer=function(){var e=this,t=this.props,n=t.enable,o=t.handleStyles,i=t.handleClasses,a=t.handleWrapperStyle,s=t.handleWrapperClass,c=t.handleComponent;if(!n)return null;var l=Object.keys(n).map((function(t){return!1!==n[t]?r.createElement(d,{key:t,direction:t,onResizeStart:e.onResizeStart,replaceStyles:o&&o[t],className:i&&i[t]},c&&c[t]?c[t]:null):null}));return r.createElement("div",{className:s,style:a},l)},t.prototype.render=function(){var e=this,t=Object.keys(this.props).reduce((function(t,n){return-1!==E.indexOf(n)||(t[n]=e.props[n]),t}),{}),n=c(c(c({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(n.flexBasis=this.state.flexBasis);var o=this.props.as||"div";return r.createElement(o,c({ref:this.ref,style:n,className:this.props.className},t),this.state.isResizing&&r.createElement("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer())},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t}(r.PureComponent);t.Resizable=S},function(e,t,n){"use strict";(function(e){n.d(t,"h",(function(){return P})),n.d(t,"b",(function(){return L})),n.d(t,"a",(function(){return j})),n.d(t,"d",(function(){return U})),n.d(t,"c",(function(){return B})),n.d(t,"k",(function(){return V})),n.d(t,"l",(function(){return H})),n.d(t,"e",(function(){return z})),n.d(t,"i",(function(){return Q})),n.d(t,"m",(function(){return J})),n.d(t,"g",(function(){return X})),n.d(t,"f",(function(){return Z})),n.d(t,"j",(function(){return te})),n.d(t,"n",(function(){return oe}));var o=n(146),r=n(212),i=n(284),a=n(88),s=n(221),c=n(222),l=n(652),d=n(120),u=n(251),h=n(441),p=n(1272),m=n(89),g=n(114),f=n(91),_=n(87),b=n(288),v=n(107),y=n(296),E=n(348),S=n(90),w=n(653),C=n(139),T=n(167),x=n(453),O=n(1387),k=n(432),R=n(257),D=n(661),I=n(108),A=n(137),N=n(1276),F=n(130),M=n(84);async function P(e={}){try{let t=e.enableGuest||!1;const n=e.guestHsUrl,r=e.guestIsUrl,i=e.fragmentQueryParams||{},a=e.defaultDeviceDisplayName;if(t&&!n&&(console.warn("Cannot enable guest access: can't determine HS URL to use"),t=!1),t&&i.guest_user_id&&i.guest_access_token)return console.log("Using guest access credentials"),K({userId:i.guest_user_id,accessToken:i.guest_access_token,homeserverUrl:n,identityServerUrl:r,guest:!0},!0).then(()=>!0);return!!await V({ignoreGuest:Boolean(e.ignoreGuest)})||!!t&&function(e,t,n){console.log("Doing guest login on "+e);return Object(o.createClient)({baseUrl:e}).registerGuest({body:{initial_device_display_name:n}}).then(n=>(console.log("Registered as guest: "+n.user_id),K({userId:n.user_id,deviceId:n.device_id,accessToken:n.access_token,homeserverUrl:e,identityServerUrl:t,guest:!0},!0).then(()=>!0)),e=>(console.error("Failed to register as guest",e),!1))}(n,r,a)}catch(e){return!(e instanceof W)&&async function(e){console.error("Unable to load session",e);const t=_.getComponent("views.dialogs.SessionRestoreErrorDialog"),n=f.a.createTrackedDialog("Session Restore Error","",t,{error:e.message}),[o]=await n.finished;if(o)return await ne(),!1;return P()}(e)}}async function L(){const{hsUrl:e,userId:t,hasAccessToken:n,isGuest:o}=await B();return e&&t&&n?[t,o]:[null,null]}function j(e,t,n){if(!e.loginToken)return Promise.resolve(!1);const r=localStorage.getItem(R.a),i=localStorage.getItem(R.c);return r?Object(y.c)(r,i,"m.login.token",{token:e.loginToken,initial_device_display_name:t}).then((function(e){return console.log("Logged in with token"),ne().then(async()=>(await Y(e),sessionStorage.setItem("mx_fresh_login",String(!0)),!0))})).catch(e=>(f.a.createTrackedDialog("SSO","Token Rejected",F.a,{title:Object(M.a)("We couldn't log you in"),description:"ConnectionError"===e.name?Object(M.a)("Your homeserver was unreachable and was not able to log you in. Please try again. If this continues, please contact your homeserver administrator."):Object(M.a)("Your homeserver rejected your log in attempt. This could be due to things just taking too long. Please try again. If this continues, please contact your homeserver administrator."),button:Object(M.a)("Try again"),onFinished:e=>{if(e){const e=Object(o.createClient)({baseUrl:r,idBaseUrl:i}),t=localStorage.getItem(R.b)||void 0;v.a.get().startSingleSignOn(e,"sso",n,t)}}}),console.error("Failed to log in with login token:"),console.error(e),!1)):(console.warn("Cannot log in with token: can't determine HS URL to use"),f.a.createTrackedDialog("SSO","Unknown HS",F.a,{title:Object(M.a)("We couldn't log you in"),description:Object(M.a)("We asked the browser to remember which homeserver you use to let you sign in, but unfortunately your browser has forgotten it. Go to the sign in page and try again."),button:Object(M.a)("Try again")}),Promise.resolve(!1))}function U(e){if(e.reason===r.b.TOGGLED_LAZY_LOADING)return Promise.resolve().then(()=>{if(e.value){const e=_.getComponent("views.dialogs.LazyLoadingResyncDialog");return new Promise(t=>{f.a.createDialog(e,{onFinished:t})})}{const e=_.getComponent("views.dialogs.LazyLoadingDisabledDialog");return new Promise(t=>{f.a.createDialog(e,{onFinished:t,host:window.location.host})})}}).then(()=>a.a.get().store.deleteAllData()).then(()=>{v.a.get().reload()})}async function B(){const e=localStorage.getItem("mx_hs_url"),t=localStorage.getItem("mx_is_url");let n;try{n=await E.c("account","mx_access_token")}catch(e){}if(!n&&(n=localStorage.getItem("mx_access_token"),n))try{await E.d("account","mx_access_token",n),localStorage.removeItem("mx_access_token")}catch(e){}const o="true"===localStorage.getItem("mx_has_access_token")||!!n,r=localStorage.getItem("mx_user_id"),i=localStorage.getItem("mx_device_id");let a;return a=null!==localStorage.getItem("mx_is_guest")?"true"===localStorage.getItem("mx_is_guest"):"true"===localStorage.getItem("matrix-is-guest"),{hsUrl:e,isUrl:t,hasAccessToken:o,accessToken:n,userId:r,deviceId:i,isGuest:a}}async function q(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);const n=await window.crypto.subtle.importKey("raw",t,"HKDF",!1,["deriveBits"]);return t.fill(0),new Uint8Array(await window.crypto.subtle.deriveBits({name:"HKDF",hash:"SHA-256",salt:new Uint8Array(32),info:new Uint8Array(0)},n,256))}async function G(){if(await function(){const e=_.getComponent("views.dialogs.StorageEvictedDialog");return new Promise(t=>{f.a.createTrackedDialog("Storage evicted","",e,{onFinished:t})})}())throw await ne(),new W("Aborting login in progress because of storage inconsistency")}async function V(e){const t=null==e?void 0:e.ignoreGuest;if(!localStorage)return!1;const{hsUrl:n,isUrl:o,hasAccessToken:r,accessToken:a,userId:s,deviceId:c,isGuest:l}=await B();if(r&&!a&&G(),a&&s&&n){if(t&&l)return console.log("Ignoring stored guest account: "+s),!1;let e=a;const r=await v.a.get().getPickleKey(s,c);if(r){if(console.log("Got pickle key"),"string"!=typeof a){const t=await q(r);e=await Object(i.a)(a,t,"access_token"),t.fill(0)}}else console.log("No pickle key available");const d="true"===sessionStorage.getItem("mx_fresh_login");return sessionStorage.removeItem("mx_fresh_login"),console.log("Restoring session for "+s),await K({userId:s,deviceId:c,accessToken:e,homeserverUrl:n,identityServerUrl:o,guest:l,pickleKey:r,freshLogin:d},!1),!0}return console.log("No previous session found."),!1}async function H(e){e.freshLogin=!0,oe();const t=e.userId&&e.deviceId?await v.a.get().createPickleKey(e.userId,e.deviceId):null;return t?console.log("Created pickle key"):console.log("Pickle key not created"),K(Object.assign({},e,{pickleKey:t}),!0)}function z(e){const t=a.a.get().getUserId(),n=a.a.get().getDeviceId();oe(),localStorage.removeItem("mx_soft_logout"),$=!1;const o=e.userId!==t||e.deviceId!==n;return o&&console.warn("Clearing all data: Old session belongs to a different user/session"),K(e,o)}async function K(e,t){e.guest=Boolean(e.guest);const n=X();console.log("setLoggedIn: mxid: "+e.userId+" deviceId: "+e.deviceId+" guest: "+e.guest+" hs: "+e.homeserverUrl+" softLogout: "+n," freshLogin: "+e.freshLogin),m.a.dispatch({action:"on_logging_in"},!0),t&&await ne();const o=await E.a();o.dataInLocalStorage&&o.cryptoInited&&!o.dataInCryptoStore&&await G(),d.a.setLoggedIn(e.guest,e.homeserverUrl),a.a.replaceUsingCreds(e);const r=a.a.get();if(e.freshLogin&&S.b.getValue("feature_dehydration")){const t=await r.rehydrateDevice();t&&(e.deviceId=t),delete e.freshLogin}if(localStorage)try{await Y(e),sessionStorage.removeItem("mx_fresh_login")}catch(e){console.warn("Error using local storage: can't persist session!",e)}else console.warn("No local storage available: can't persist session!");return m.a.dispatch({action:"on_logged_in"}),await ee(!n),r}class W extends Error{}async function Y(e){var t;if(localStorage.setItem("mx_hs_url",e.homeserverUrl),e.identityServerUrl&&localStorage.setItem("mx_is_url",e.identityServerUrl),localStorage.setItem("mx_user_id",e.userId),localStorage.setItem("mx_is_guest",JSON.stringify(e.guest)),e.accessToken?localStorage.setItem("mx_has_access_token","true"):localStorage.deleteItem("mx_has_access_token"),e.pickleKey){let t;try{const n=await q(e.pickleKey);t=await Object(i.b)(e.accessToken,n,"access_token"),n.fill(0)}catch(e){console.warn("Could not encrypt access token",e)}try{await E.d("account","mx_access_token",t||e.accessToken)}catch(t){localStorage.setItem("mx_access_token",e.accessToken)}localStorage.setItem("mx_has_pickle_key",String(!0))}else{try{await E.d("account","mx_access_token",e.accessToken)}catch(t){localStorage.setItem("mx_access_token",e.accessToken)}localStorage.getItem("mx_has_pickle_key")&&console.error("Expected a pickle key, but none provided. Encryption may not work.")}e.deviceId&&localStorage.setItem("mx_device_id",e.deviceId),null===(t=s.a.persistCredentials)||void 0===t||t.call(s.a,e),console.log("Session persisted for "+e.userId)}let $=!1;function Q(){if(!a.a.get())return;if(I.a.instance.disabled||I.a.instance.enable(!0),a.a.get().isGuest())return void e(()=>te());$=!0;const t=a.a.get();v.a.get().destroyPickleKey(t.getUserId(),t.getDeviceId()),t.logout().then(te,e=>{console.log("Failed to call logout API: token will not be invalidated"),te()})}function J(){a.a.get()&&(localStorage.setItem("mx_soft_logout","true"),console.log("Soft logout initiated"),$=!0,m.a.dispatch({action:"on_client_not_viable"}),oe(!1))}function X(){return"true"===localStorage.getItem("mx_soft_logout")}function Z(){return $}async function ee(e=!0){console.log("Lifecycle: Starting MatrixClient"),m.a.dispatch({action:"will_start_client"},!0),w.a.sharedInstance().reset(),C.a.sharedInstance().reset(),u.default.start(),h.a.sharedInstance().start(),g.a.makeShared().start(),T.a.sharedInstance().startWatching(),b.a.start(),A.c.sharedInstance().start(),x.a.sharedInstance().start(),e?(await c.a.init(),await a.a.start()):(console.warn("Caller requested only auxiliary services be started"),await a.a.assign()),O.a.sharedInstance().start(),S.b.getValue("lowBandwidth")||p.a.start(),await k.a.getInstance().start(),m.a.dispatch({action:"client_started"}),X()&&J()}async function te(){var e;$=!1,m.a.dispatch({action:"on_logged_out"},!0),oe(),await ne({deleteEverything:!0}),null===(e=N.a.onLoggedOutAndStorageCleared)||void 0===e||e.call(N.a)}async function ne(e){if(d.a.disable(),window.localStorage){const t=D.a.instance.getWireInvites();window.localStorage.clear();try{await E.b("account","mx_access_token")}catch(e){}null!=e&&e.deleteEverything||t.forEach(e=>{const t=e.roomId;delete e.roomId,D.a.instance.storeInvite(t,e)})}window.sessionStorage&&window.sessionStorage.clear();const t=Object(l.a)({baseUrl:""});await c.a.deleteEventIndex(),await t.clearStores()}function oe(e=!0){u.default.stop(),A.c.sharedInstance().stop(),h.a.sharedInstance().stop(),w.a.sharedInstance().reset(),p.a.stop(),b.a.stop(),T.a.sharedInstance().stopWatching(),x.a.sharedInstance().stop(),O.a.sharedInstance().stop(),g.a.shared()&&g.a.shared().stop(),c.a.stop();const t=a.a.get();t&&(t.stopClient(),t.removeAllListeners(),e&&(a.a.unset(),c.a.unset()))}}).call(this,n(160).setImmediate)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return l}));var o=n(83),r=n.n(o),i=n(146),a=n(221);let s;!function(e){e.Gitlab="org.matrix.gitlab",e.Github="org.matrix.github",e.Apple="org.matrix.apple",e.Google="org.matrix.google",e.Facebook="org.matrix.facebook",e.Twitter="org.matrix.twitter"}(s||(s={}));class c{constructor(e,t,n,o){r()(this,"hsUrl",void 0),r()(this,"isUrl",void 0),r()(this,"fallbackHsUrl",void 0),r()(this,"flows",void 0),r()(this,"defaultDeviceDisplayName",void 0),r()(this,"tempClient",void 0),this.hsUrl=e,this.isUrl=t,this.fallbackHsUrl=n,this.flows=[],this.defaultDeviceDisplayName=o.defaultDeviceDisplayName,this.tempClient=null}getHomeserverUrl(){return this.hsUrl}getIdentityServerUrl(){return this.isUrl}setHomeserverUrl(e){this.tempClient=null,this.hsUrl=e}setIdentityServerUrl(e){this.tempClient=null,this.isUrl=e}createTemporaryClient(){return this.tempClient?this.tempClient:this.tempClient=Object(i.createClient)({baseUrl:this.hsUrl,idBaseUrl:this.isUrl})}async getFlows(){const e=this.createTemporaryClient(),{flows:t}=await e.loginFlows();return this.flows=t,this.flows}loginViaPassword(e,t,n,o){const r=e.indexOf("@")>0;let i;i=t&&n?{type:"m.id.phone",country:t,phone:n,number:n}:r?{type:"m.id.thirdparty",medium:"email",address:e}:{type:"m.id.user",user:e};const a={password:o,identifier:i,initial_device_display_name:this.defaultDeviceDisplayName},s=e=>l(this.fallbackHsUrl,this.isUrl,"m.login.password",a).catch(t=>{throw console.log("fallback HS login failed",t),e});let c=null;return l(this.hsUrl,this.isUrl,"m.login.password",a).catch(e=>{if(c=e,403===e.httpStatus&&this.fallbackHsUrl)return s(c);throw c}).catch(e=>{throw console.log("Login failed",e),e})}}async function l(e,t,n,o){var r;const s=Object(i.createClient)({baseUrl:e,idBaseUrl:t}),c=await s.login(n,o),l=c.well_known;l&&(l["m.homeserver"]&&l["m.homeserver"].base_url&&(e=l["m.homeserver"].base_url,console.log(`Overrode homeserver setting with ${e} from login response`)),l["m.identity_server"]&&l["m.identity_server"].base_url&&(t=l["m.identity_server"].base_url,console.log(`Overrode IS setting with ${t} from login response`)));const d={homeserverUrl:e,identityServerUrl:t,userId:c.user_id,deviceId:c.device_id,accessToken:c.access_token};return null===(r=a.a.examineLoginResponse)||void 0===r||r.call(a.a,c,d),d}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a}));var o=n(84);function r(e,t,n,r){let i=n[e];void 0===i&&(i=n[""]);const a=e=>t?React.createElement("a",{href:t,target:"_blank",rel:"noreferrer noopener"},e):e;return i.includes("<a>")?Object(o.a)(i,{},Object.assign({a:a},r)):Object(o.a)(i,{},r)}function i(e){if("M_TOO_LARGE"===e.errcode)return Object(o.a)("The message you are trying to send is too large.")}function a(e){if("M_RESOURCE_LIMIT_EXCEEDED"===e.errcode){const t=r(e.data.limit_type,e.data.admin_contact,{monthly_active_user:Object(o.b)("This homeserver has hit its Monthly Active User limit."),hs_blocked:Object(o.b)("This homeserver has been blocked by its administrator."),"":Object(o.b)("This homeserver has exceeded one of its resource limits.")}),n=r(e.data.limit_type,e.data.admin_contact,{"":Object(o.b)("Please <a>contact your service administrator</a> to continue using the service.")});return React.createElement("div",null,React.createElement("div",null,t),React.createElement("div",null,n))}return React.createElement("div",null,Object(o.a)("Unable to connect to Homeserver. Retrying..."))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return F}));var o,r=n(95),i=n.n(r),a=n(83),s=n.n(a),c=n(121),l=n.n(c),d=n(82),u=n.n(d),h=n(86),p=n.n(h),m=n(88),g=n(93),f=n(84),_=n(692),b=n(693),v=n(119),y=n(89),E=n(288),S=n(92),w=n.n(S),C=n(90),T=n(102),x=n(351),O=n(138),k=n(752),R=n(5),D=n(3),I=n(364),A=n(468),N=n(85);let F=Object(N.a)("views.elements.AppTile")(o=class extends u.a.Component{constructor(e){super(e),s()(this,"hasPermissionToLoad",e=>{if(this._usingLocalWidget())return!0;if(!e.room)return!0;const t=C.b.getValue("allowedWidgets",e.room.roomId);return void 0===t[e.app.eventId]?e.userId===e.creatorUserId:!!t[e.app.eventId]}),s()(this,"onAllowedWidgetsChange",()=>{const e=this.hasPermissionToLoad(this.props);this.state.hasPermissionToLoad&&!e&&(E.a.destroyPersistentWidget(this.props.app.id),x.a.destroyElement(this._persistKey),this._sgWidget.stop()),this.setState({hasPermissionToLoad:e})}),s()(this,"_iframeRefChange",e=>{this.iframe=e,e?this._sgWidget.start(e):this._resetWidget(this.props)}),s()(this,"_onWidgetPrepared",()=>{this.setState({loading:!1})}),s()(this,"_onWidgetReady",()=>{O.a.JITSI.matches(this.props.app.type)&&this._sgWidget.widgetApi.transport.send(R.a.ClientReady,{})}),s()(this,"_onAction",e=>{if(e.widgetId===this.props.app.id)switch(e.action){case"m.sticker":this._sgWidget.widgetApi.hasCapability(D.MatrixCapabilities.StickerSending)?y.a.dispatch({action:"post_sticker_message",data:e.data}):console.warn("Ignoring sticker message. Invalid capability")}}),s()(this,"_grantWidgetPermission",()=>{const e=this.props.room.roomId;console.info("Granting permission for widget to load: "+this.props.app.eventId);const t=C.b.getValue("allowedWidgets",e);t[this.props.app.eventId]=!0;const n=C.b.firstSupportedLevel("allowedWidgets");C.b.setValue("allowedWidgets",e,n,t).then(()=>{this.setState({hasPermissionToLoad:!0}),this._startWidget()}).catch(e=>{console.error(e)})}),s()(this,"_onPopoutWidgetClick",()=>{O.a.JITSI.matches(this.props.app.type)&&this._endWidgetActions().then(()=>{this.iframe&&(this.iframe.src=this._sgWidget.embedUrl,this.setState({}))}),Object.assign(document.createElement("a"),{target:"_blank",href:this._sgWidget.popoutUrl,rel:"noreferrer noopener"}).click()}),s()(this,"_onContextMenuClick",()=>{this.setState({menuDisplayed:!0})}),s()(this,"_closeContextMenu",()=>{this.setState({menuDisplayed:!1})}),this._persistKey=Object(x.b)(this.props.app.id),this._sgWidget=new k.b(this.props),this._sgWidget.on("preparing",this._onWidgetPrepared),this._sgWidget.on("ready",this._onWidgetReady),this.iframe=null,this.state=this._getNewState(e),this._contextMenuButton=Object(d.createRef)(),this._allowedWidgetsWatchRef=C.b.watchSetting("allowedWidgets",null,this.onAllowedWidgetsChange)}_getNewState(e){return{initialising:!0,loading:this.props.waitForIframeLoad&&!x.a.isMounted(this._persistKey),hasPermissionToLoad:this.hasPermissionToLoad(e),error:null,widgetPageTitle:e.widgetPageTitle,menuDisplayed:!1}}isMixedContent(){const e=window.location.protocol,t=l.a.parse(this.props.app.url).protocol;return"https:"===e&&"https:"!==t&&(console.warn("Refusing to load mixed-content app:",e,t,window.location,this.props.app.url),!0)}componentDidMount(){this.state.hasPermissionToLoad&&this._startWidget(),this.dispatcherRef=y.a.register(this._onAction)}componentWillUnmount(){this.dispatcherRef&&y.a.unregister(this.dispatcherRef),E.a.getWidgetPersistence(this.props.app.id)||(E.a.destroyPersistentWidget(this.props.app.id),x.a.destroyElement(this._persistKey)),this._sgWidget&&this._sgWidget.stop(),C.b.unwatchSetting(this._allowedWidgetsWatchRef)}_resetWidget(e){this._sgWidget&&this._sgWidget.stop(),this._sgWidget=new k.b(e),this._sgWidget.on("preparing",this._onWidgetPrepared),this._sgWidget.on("ready",this._onWidgetReady),this._startWidget()}_startWidget(){this._sgWidget.prepare().then(()=>{this.setState({initialising:!1})})}UNSAFE_componentWillReceiveProps(e){e.app.url!==this.props.app.url&&(this._getNewState(e),this.state.hasPermissionToLoad&&this._resetWidget(e)),e.widgetPageTitle!==this.props.widgetPageTitle&&this.setState({widgetPageTitle:e.widgetPageTitle})}async _endWidgetActions(){this.iframe&&(this.iframe.src="about:blank"),O.a.JITSI.matches(this.props.app.type)&&y.a.dispatch({action:"hangup_conference"}),x.a.destroyElement(this._persistKey),this._sgWidget.stop({forceDestroy:!0})}formatAppTileName(){let e="No name";return this.props.app.name&&this.props.app.name.trim()&&(e=this.props.app.name.trim()),e}_usingLocalWidget(){return O.a.JITSI.matches(this.props.app.type)}_getTileTitle(){const e=this.formatAppTileName(),t=u.a.createElement("span",null," - ");let n="";return this.state.widgetPageTitle&&this.state.widgetPageTitle!==this.formatAppTileName()&&(n=this.state.widgetPageTitle),u.a.createElement("span",null,u.a.createElement(A.a,{app:this.props.app}),u.a.createElement("b",null,e),u.a.createElement("span",null,n?t:"",n))}render(){let e;const t="mx_AppTileBody"+(this.props.miniMode?"_mini ":" "),n={};this.props.pointerEvents&&(n["pointer-events"]=this.props.pointerEvents);const o=u.a.createElement("div",{className:"mx_AppLoading_spinner_fadeIn"},u.a.createElement(v.a,{message:Object(f.a)("Loading...")}));if(this.state.hasPermissionToLoad)this.state.initialising?e=u.a.createElement("div",{className:t+(this.state.loading?"mx_AppLoading":""),style:n},o):this.isMixedContent()?e=u.a.createElement("div",{className:t,style:n},u.a.createElement(b.a,{errorMsg:"Error - Mixed content"})):(e=u.a.createElement("div",{className:t+(this.state.loading?"mx_AppLoading":""),style:n},this.state.loading&&o,u.a.createElement("iframe",{allow:"microphone; camera; encrypted-media; autoplay; display-capture; clipboard-write;",ref:this._iframeRefChange,src:this._sgWidget.embedUrl,allowFullScreen:!0,sandbox:"allow-forms allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-presentation"})),this.props.userWidget||(e=u.a.createElement("div",{className:"mx_AppTile_persistedWrapper"},u.a.createElement(x.a,{persistKey:this._persistKey},e))));else{const o=m.a.get().isRoomEncrypted(this.props.room.roomId);e=u.a.createElement("div",{className:t,style:n},u.a.createElement(_.a,{roomId:this.props.room.roomId,creatorUserId:this.props.creatorUserId,url:this._sgWidget.embedUrl,isRoomEncrypted:o,onPermissionGranted:this._grantWidgetPermission}))}let r,a;return r=this.props.miniMode?{mx_AppTile_mini:!0}:this.props.fullWidth?{mx_AppTileFullWidth:!0}:{mx_AppTile:!0},r=w()(r),this.state.menuDisplayed&&(a=u.a.createElement(I.a,i()({},Object(T.k)(this._contextMenuButton.current.getBoundingClientRect(),null),{app:this.props.app,onFinished:this._closeContextMenu,showUnpin:!this.props.userWidget,userWidget:this.props.userWidget}))),u.a.createElement(u.a.Fragment,null,u.a.createElement("div",{className:r,id:this.props.app.id},this.props.showMenubar&&u.a.createElement("div",{className:"mx_AppTileMenuBar"},u.a.createElement("span",{className:"mx_AppTileMenuBarTitle",style:{pointerEvents:!!this.props.handleMinimisePointerEvents&&"all"}},this.props.showTitle&&this._getTileTitle()),u.a.createElement("span",{className:"mx_AppTileMenuBarWidgets"},this.props.showPopout&&u.a.createElement(g.a,{className:"mx_AppTileMenuBar_iconButton mx_AppTileMenuBar_iconButton_popout",title:Object(f.a)("Popout widget"),onClick:this._onPopoutWidgetClick}),u.a.createElement(T.c,{className:"mx_AppTileMenuBar_iconButton mx_AppTileMenuBar_iconButton_menu",label:Object(f.a)("Options"),isExpanded:this.state.menuDisplayed,inputRef:this._contextMenuButton,onClick:this._onContextMenuClick}))),e),a)}})||o;F.displayName="AppTile",F.propTypes={app:p.a.object.isRequired,room:p.a.object,fullWidth:p.a.bool,miniMode:p.a.bool,userId:p.a.string.isRequired,creatorUserId:p.a.string,waitForIframeLoad:p.a.bool,showMenubar:p.a.bool,onEditClick:p.a.func,onDeleteClick:p.a.func,onMinimiseClick:p.a.func,showTitle:p.a.bool,handleMinimisePointerEvents:p.a.bool,showPopout:p.a.bool,userWidget:p.a.bool,pointerEvents:p.a.string},F.defaultProps={waitForIframeLoad:!0,showMenubar:!0,showTitle:!0,showPopout:!0,handleMinimisePointerEvents:!1,userWidget:!1,miniMode:!1}},function(e,t,n){"use strict";n.r(t),n.d(t,"containsEmoji",(function(){return o}));const o=(e,t)=>t.some(t=>e.body&&e.body.includes(t))},function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var o=n(83),r=n.n(o),i=n(82),a=n.n(i),s=n(89),c=n(88),l=n(87),d=n(84),u=n(91),h=n(126),p=n(703),m=n.n(p),g=n(1307),f=n.n(g),_=n(119),b=(n(1309),n(96)),v=n(108);const y=[0,0,22,37,0,0,22,37,1];class E extends Error{}function S(e,t,n,o){return new Promise(r=>{let i=t,a=n;a>600&&(i=Math.floor(i*(600/a)),a=600),i>800&&(a=Math.floor(a*(800/i)),i=800);const s=document.createElement("canvas");s.width=i,s.height=a,s.getContext("2d").drawImage(e,0,0,i,a),s.toBlob((function(e){r({info:{thumbnail_info:{w:i,h:a,mimetype:e.type,size:e.size},w:t,h:n},thumbnail:e})}),o)})}function w(e,t,n){let o,r="image/png";return"image/jpeg"===n.type&&(r="image/jpeg"),async function(e){const t=document.createElement("img"),n=URL.createObjectURL(e),o=new Promise((e,o)=>{t.onload=function(){URL.revokeObjectURL(n),e(t)},t.onerror=function(e){o(e)}});let r;if(t.src=n,"image/png"===e.type){r=T(e).then(e=>{const t=new Uint8Array(e),n=f()(t);for(const e of n)if("pHYs"===e.name){if(e.data.byteLength!==y.length)return;return e.data.every((e,t)=>e===y[t])}return!1})}const[i]=await Promise.all([r,o]);return{width:i?t.width>>1:t.width,height:i?t.height>>1:t.height,img:t}}(n).then((function(e){return S(e.img,e.width,e.height,r)})).then((function(n){return o=n.info,x(e,t,n.thumbnail)})).then((function(e){return o.thumbnail_url=e.url,o.thumbnail_file=e.file,o}))}function C(e,t,n){let o;return function(e){return new Promise((t,n)=>{const o=document.createElement("video"),r=new FileReader;r.onload=function(e){o.src=e.target.result,o.onloadeddata=function(){t(o)},o.onerror=function(e){n(e)}},r.onerror=function(e){n(e)},r.readAsDataURL(e)})}(n).then((function(e){return S(e,e.videoWidth,e.videoHeight,"image/jpeg")})).then((function(n){return o=n.info,x(e,t,n.thumbnail)})).then((function(e){return o.thumbnail_url=e.url,o.thumbnail_file=e.file,o}))}function T(e){return new Promise((t,n)=>{const o=new FileReader;o.onload=function(e){t(e.target.result)},o.onerror=function(e){n(e)},o.readAsArrayBuffer(e)})}function x(e,t,n,o){let r=!1;if(e.isRoomEncrypted(t)){let t,i;const a=T(n).then((function(e){if(r)throw new E;return m.a.encryptAttachment(e)})).then((function(n){if(r)throw new E;i=n.info;const a=new Blob([n.data]);return t=e.uploadContent(a,{progressHandler:o,includeFilename:!1}),t})).then((function(e){if(r)throw new E;return i.url=e,n.type&&(i.mimetype=n.type),{file:i}}));return a.abort=()=>{r=!0,t&&c.a.get().cancelUpload(t)},a}{const t=e.uploadContent(n,{progressHandler:o}),i=t.then((function(e){if(r)throw new E;return{url:e}}));return i.abort=()=>{r=!0,c.a.get().cancelUpload(t)},i}}class O{constructor(){r()(this,"inprogress",[]),r()(this,"mediaConfig",null)}sendStickerContentToRoom(e,t,n,o,r){const i=v.a.getTimestamp(),a=c.a.get().sendStickerMessage(t,e,n,o).catch(n=>{throw console.warn(`Failed to send content with URL ${e} to room ${t}`,n),n});return v.a.instance.trackSendMessage(i,a,t,!1,!1,{msgtype:"m.sticker"}),a}getUploadLimit(){return null!==this.mediaConfig&&void 0!==this.mediaConfig["m.upload.size"]?this.mediaConfig["m.upload.size"]:null}async sendContentListToRoom(e,t,n){if(n.isGuest())return void s.a.dispatch({action:"require_registration"});if(Boolean(h.a.getQuotingEvent())){const e=l.getComponent("dialogs.QuestionDialog"),{finished:t}=u.a.createTrackedDialog("Upload Reply Warning","",e,{title:Object(d.a)("Replying With Files"),description:a.a.createElement("div",null,Object(d.a)("At this time it is not possible to reply with a file. Would you like to upload this file without replying?")),hasCancelButton:!0,button:Object(d.a)("Continue")}),[n]=await t;if(!n)return}if(!this.mediaConfig){const e=u.a.createDialog(_.a,null,"mx_Dialog_spinner");await this.ensureMediaConfigFetched(),e.close()}const o=[],r=[];for(let t=0;t<e.length;++t)this.isFileSizeAcceptable(e[t])?r.push(e[t]):o.push(e[t]);if(o.length>0){const t=l.getComponent("dialogs.UploadFailureDialog"),{finished:n}=u.a.createTrackedDialog("Upload Failure","",t,{badFiles:o,totalFiles:e.length,contentMessages:this}),[r]=await n;if(!r)return}const i=l.getComponent("dialogs.UploadConfirmDialog");let c=!1,p=Promise.resolve();for(let e=0;e<r.length;++e){const o=r[e];if(!c){const{finished:t}=u.a.createTrackedDialog("Upload Files confirmation","",i,{file:o,currentIndex:e,totalFiles:r.length}),[n,a]=await t;if(!n)break;a&&(c=!0)}p=this.sendContentToRoom(o,t,n,p)}}getCurrentUploads(){return this.inprogress.filter(e=>!e.canceled)}cancelUpload(e){let t;for(let n=0;n<this.inprogress.length;++n)if(this.inprogress[n].promise===e){t=this.inprogress[n];break}t&&(t.canceled=!0,c.a.get().cancelUpload(t.promise),s.a.dispatch({action:b.a.UploadCanceled,upload:t}))}sendContentToRoom(e,t,n,o){const r=v.a.getTimestamp(),i={body:e.name||"Attachment",info:{size:e.size},msgtype:""};e.type&&(i.info.mimetype=e.type);const a=new Promise(o=>{0===e.type.indexOf("image/")?(i.msgtype="m.image",w(n,t,e).then(e=>{Object.assign(i.info,e),o()},e=>{console.error(e),i.msgtype="m.file",o()})):0===e.type.indexOf("audio/")?(i.msgtype="m.audio",o()):0===e.type.indexOf("video/")?(i.msgtype="m.video",C(n,t,e).then(e=>{Object.assign(i.info,e),o()},e=>{i.msgtype="m.file",o()})):(i.msgtype="m.file",o())});a.abort=()=>{c.canceled=!0};const c={fileName:e.name||"Attachment",roomId:t,total:e.size,loaded:0,promise:a};function h(e){c.total=e.total,c.loaded=e.loaded,s.a.dispatch({action:b.a.UploadProgress,upload:c})}let p;return this.inprogress.push(c),s.a.dispatch({action:b.a.UploadStarted,upload:c}),s.a.fire(b.a.FocusComposer),a.then((function(){if(c.canceled)throw new E;return c.promise=x(n,t,e,h),c.promise.then((function(e){i.file=e.file,i.url=e.url}))})).then(()=>o).then((function(){if(c.canceled)throw new E;const e=n.sendMessage(t,i);return v.a.instance.trackSendMessage(r,e,t,!1,!1,i),e}),(function(e){if(p=e,!c.canceled){let t=Object(d.a)("The file '%(fileName)s' failed to upload.",{fileName:c.fileName});413===e.http_status&&(t=Object(d.a)("The file '%(fileName)s' exceeds this homeserver's size limit for uploads",{fileName:c.fileName}));const n=l.getComponent("dialogs.ErrorDialog");u.a.createTrackedDialog("Upload failed","",n,{title:Object(d.a)("Upload Failed"),description:t})}})).finally(()=>{for(let e=0;e<this.inprogress.length;++e)if(this.inprogress[e].promise===c.promise){this.inprogress.splice(e,1);break}p?(p&&413===p.http_status&&(this.mediaConfig=null),s.a.dispatch({action:b.a.UploadFailed,upload:c,error:p})):(s.a.dispatch({action:b.a.UploadFinished,upload:c}),s.a.dispatch({action:"message_sent"}))})}isFileSizeAcceptable(e){return!(null!==this.mediaConfig&&void 0!==this.mediaConfig["m.upload.size"]&&e.size>this.mediaConfig["m.upload.size"])}ensureMediaConfigFetched(){if(null===this.mediaConfig)return console.log("[Media Config] Fetching"),c.a.get().getMediaConfig().then(e=>(console.log("[Media Config] Fetched config:",e),e)).catch(()=>(console.log("[Media Config] Could not fetch config, so not limiting uploads."),{})).then(e=>{this.mediaConfig=e})}static sharedInstance(){return void 0===window.mxContentMessages&&(window.mxContentMessages=new O),window.mxContentMessages}}},,function(e,t,n){"use strict";function o(e){this.filter_json=e,this.types=e.types||null,this.not_types=e.not_types||[],this.rooms=e.rooms||null,this.not_rooms=e.not_rooms||[],this.senders=e.senders||null,this.not_senders=e.not_senders||[],this.contains_url=e.contains_url||null}function r(e,t,n){const o=t.split(".");let r=e;for(let e=0;e<o.length-1;e++)r[o[e]]||(r[o[e]]={}),r=r[o[e]];r[o[o.length-1]]=n}function i(e,t){this.userId=e,this.filterId=t,this.definition={}}n.d(t,"a",(function(){return i})),o.prototype.check=function(e){return this._checkFields(e.getRoomId(),e.getSender(),e.getType(),!!e.getContent()&&void 0!==e.getContent().url)},o.prototype._checkFields=function(e,t,n,o){const r={rooms:function(t){return e===t},senders:function(e){return t===e},types:function(e){return function(e,t){if(t.endsWith("*")){const n=t.slice(0,-1);return e.substr(0,n.length)===n}return e===t}(n,e)}},i=this;for(let e=0;e<Object.keys(r).length;e++){const t=Object.keys(r)[e],n=r[t];if(i["not_"+t].filter(n).length>0)return!1;const o=i[t];if(o&&o.length>0){if(!o.some(n))return!1}}const a=this.filter_json.contains_url;return void 0===a||a===o},o.prototype.filter=function(e){return e.filter(this.check,this)},o.prototype.limit=function(){return void 0!==this.filter_json.limit?this.filter_json.limit:10},i.LAZY_LOADING_MESSAGES_FILTER={lazy_load_members:!0},i.prototype.getFilterId=function(){return this.filterId},i.prototype.getDefinition=function(){return this.definition},i.prototype.setDefinition=function(e){this.definition=e;const t=e.room,n={};t&&(t.rooms&&(n.rooms=t.rooms),t.rooms&&(n.not_rooms=t.not_rooms),this._include_leave=t.include_leave||!1),this._room_filter=new o(n),this._room_timeline_filter=new o(t&&t.timeline||{})},i.prototype.getRoomTimelineFilterComponent=function(){return this._room_timeline_filter},i.prototype.filterRoomTimeline=function(e){return this._room_timeline_filter.filter(this._room_filter.filter(e))},i.prototype.setTimelineLimit=function(e){r(this.definition,"room.timeline.limit",e)},i.prototype.setLazyLoadMembers=function(e){r(this.definition,"room.state.lazy_load_members",!!e)},i.prototype.setIncludeLeaveRooms=function(e){r(this.definition,"room.include_leave",e)},i.fromJson=function(e,t,n){const o=new i(e,t);return o.setDefinition(n),o}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(95),r=n.n(o),i=n(100),a=n.n(i),s=n(82),c=n.n(s),l=n(111);const d=e=>{let{isExpanded:t,children:n,onClick:o,onContextMenu:i}=e,s=a()(e,["isExpanded","children","onClick","onContextMenu"]);return c.a.createElement(l.a,r()({},s,{onClick:o,onContextMenu:i||o,"aria-haspopup":!0,"aria-expanded":t}),n)}},function(e,t,n){"use strict";function o(e){return e/10+"rem"}function r(e){return e+"px"}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports.Container=n(778),e.exports.MapStore=n(780),e.exports.Mixin=n(788),e.exports.ReduceStore=n(508),e.exports.Store=n(509)},function(e,t,n){"use strict";function o(e,t,n){return t<=e&&e<=n}function r(e){if(void 0===e)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function i(e){this.tokens=[].slice.call(e)}i.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():-1},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};function a(e,t){if(e)throw TypeError("Decoder error");return t||65533}function s(e,t){if(!(this instanceof s))return new s(e,t);if("utf-8"!==(e=void 0!==e?String(e).toLowerCase():"utf-8"))throw new Error("Encoding not supported. Only utf-8 is supported");t=r(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(t.fatal),this._ignoreBOM=Boolean(t.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function c(e,t){if(!(this instanceof c))return new c(e,t);if("utf-8"!==(e=void 0!==e?String(e).toLowerCase():"utf-8"))throw new Error("Encoding not supported. Only utf-8 is supported");t=r(t),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(t.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function l(e){var t=e.fatal,n=0,r=0,i=0,s=128,c=191;this.handler=function(e,l){if(-1===l&&0!==i)return i=0,a(t);if(-1===l)return-1;if(0===i){if(o(l,0,127))return l;if(o(l,194,223))i=1,n=l-192;else if(o(l,224,239))224===l&&(s=160),237===l&&(c=159),i=2,n=l-224;else{if(!o(l,240,244))return a(t);240===l&&(s=144),244===l&&(c=143),i=3,n=l-240}return n<<=6*i,null}if(!o(l,s,c))return n=i=r=0,s=128,c=191,e.prepend(l),a(t);if(s=128,c=191,n+=l-128<<6*(i-(r+=1)),r!==i)return null;var d=n;return n=i=r=0,d}}function d(e){e.fatal;this.handler=function(e,t){if(-1===t)return-1;if(o(t,0,127))return t;var n,r;o(t,128,2047)?(n=1,r=192):o(t,2048,65535)?(n=2,r=224):o(t,65536,1114111)&&(n=3,r=240);for(var i=[(t>>6*n)+r];n>0;){var a=t>>6*(n-1);i.push(128|63&a),n-=1}return i}}s.prototype={decode:function(e,t){var n;n="object"==typeof e&&e instanceof ArrayBuffer?new Uint8Array(e):"object"==typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t=r(t),this._streaming||(this._decoder=new l({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(t.stream);for(var o,a=new i(n),s=[];!a.endOfStream()&&-1!==(o=this._decoder.handler(a,a.read()));)null!==o&&(Array.isArray(o)?s.push.apply(s,o):s.push(o));if(!this._streaming){do{if(-1===(o=this._decoder.handler(a,a.read())))break;null!==o&&(Array.isArray(o)?s.push.apply(s,o):s.push(o))}while(!a.endOfStream());this._decoder=null}return s.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===s[0]?(this._BOMseen=!0,s.shift()):this._BOMseen=!0)),function(e){for(var t="",n=0;n<e.length;++n){var o=e[n];o<=65535?t+=String.fromCharCode(o):(o-=65536,t+=String.fromCharCode(55296+(o>>10),56320+(1023&o)))}return t}(s)}},c.prototype={encode:function(e,t){e=e?String(e):"",t=r(t),this._streaming||(this._encoder=new d(this._options)),this._streaming=Boolean(t.stream);for(var n,o=[],a=new i(function(e){for(var t=String(e),n=t.length,o=0,r=[];o<n;){var i=t.charCodeAt(o);if(i<55296||i>57343)r.push(i);else if(56320<=i&&i<=57343)r.push(65533);else if(55296<=i&&i<=56319)if(o===n-1)r.push(65533);else{var a=e.charCodeAt(o+1);if(56320<=a&&a<=57343){var s=1023&i,c=1023&a;r.push(65536+(s<<10)+c),o+=1}else r.push(65533)}o+=1}return r}(e));!a.endOfStream()&&-1!==(n=this._encoder.handler(a,a.read()));)Array.isArray(n)?o.push.apply(o,n):o.push(n);if(!this._streaming){for(;-1!==(n=this._encoder.handler(a,a.read()));)Array.isArray(n)?o.push.apply(o,n):o.push(n);this._encoder=null}return new Uint8Array(o)}},t.TextEncoder=c,t.TextDecoder=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return l}));var o=n(86),r=n.n(o),i=n(84);const a=r.a.shape({userId:r.a.string.isRequired,displayname:r.a.string,avatarUrl:r.a.string}),s=r.a.shape({displayname:r.a.string,name:r.a.string,roomId:r.a.string.isRequired,canonicalAlias:r.a.string,avatarUrl:r.a.string});function c(e){return{userId:e.user_id,displayname:e.displayname,avatarUrl:e.avatar_url,isPrivileged:e.is_privileged}}function l(e){return{displayname:e.name||e.canonical_alias||Object(i.a)("Unnamed Room"),name:e.name,roomId:e.room_id,canonicalAlias:e.canonical_alias,avatarUrl:e.avatar_url,topic:e.topic,numJoinedMembers:e.num_joined_members,worldReadable:e.world_readable,guestCanJoin:e.guest_can_join,isPublic:!1!==e.is_public}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return m})),n.d(t,"h",(function(){return g})),n.d(t,"g",(function(){return f}));var o=n(88),r=n(230);const i="all_messages_loud",a="all_messages",s="mentions_only",c="mute",l=[a,i],d=[...l,s];function u(e){return l.includes(e)}function h(e){return d.includes(e)}function p(e){return e.reduce((e,t)=>{const n=m(t.roomId),o=t.getUnreadNotificationCount("highlight")>0,r=f(t),i=r>0&&u(n),a=o&&h(n);return(i||a)&&(e.count+=r,o&&(e.highlight=!0)),e},{count:0,highlight:!1})}function m(e){if(o.a.get().isGuest())return a;if(_(e))return c;let t=null;try{t=o.a.get().getRoomPushRule("global",e)}catch(e){return null}if(!t||!t.enabled)return a;if(v(t))return s;return r.a.actionListToActionsObject(t.actions).tweaks.sound?i:null}function g(e,t){return t===c?function(e){const t=o.a.get(),n=[],r=t.getRoomPushRule("global",e);r&&n.push(t.deletePushRule("global","room",r.rule_id));return n.push(t.addPushRule("global","override",e,{conditions:[{kind:"event_match",key:"room_id",pattern:e}],actions:["dont_notify"]})),Promise.all(n)}(e):function(e,t){const n=o.a.get(),r=[],i=_(e);i&&r.push(n.deletePushRule("global","override",i.rule_id));if("all_messages"===t){const t=n.getRoomPushRule("global",e);t&&r.push(n.deletePushRule("global","room",t.rule_id))}else"mentions_only"===t?(r.push(n.addPushRule("global","room",e,{actions:["dont_notify"]})),r.push(n.setPushRuleEnabled("global","room",e,!0))):(r.push(n.addPushRule("global","room",e,{actions:["notify",{set_tweak:"sound",value:"default"}]})),r.push(n.setPushRuleEnabled("global","room",e,!0)));return Promise.all(r)}(e,t)}function f(e,t=null){let n=e.getUnreadNotificationCount(t);const r=e.currentState.getStateEvents("m.room.create","");if(r&&r.getContent().predecessor){const e=r.getContent().predecessor.room_id,t=o.a.get().getRoom(e);t&&(n+=t.getUnreadNotificationCount("highlight"))}return n}function _(e){const t=o.a.get();if(!t.pushRules||!t.pushRules.global||!t.pushRules.global.override)return null;for(const n of t.pushRules.global.override)if(b(e,n)&&v(n)&&n.enabled)return n;return null}function b(e,t){if(1!==t.conditions.length)return!1;const n=t.conditions[0];return"event_match"===n.kind&&"room_id"===n.key&&n.pattern===e}function v(e){return 1===e.actions.length&&"dont_notify"===e.actions[0]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(789);Object.defineProperty(t,"DragDropContext",{enumerable:!0,get:function(){return a(o).default}});var r=n(877);Object.defineProperty(t,"Droppable",{enumerable:!0,get:function(){return a(r).default}});var i=n(898);function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Draggable",{enumerable:!0,get:function(){return a(i).default}})},function(e,t){e.exports=!0},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";t.__esModule=!0;var o,r=n(847),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,i.default)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={movement:t.noMovement={displaced:[],amount:{x:0,y:0},isBeyondStartPosition:!1},direction:null,destination:null};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDroppableDimension=t.scrollDroppable=t.clip=t.getDraggableDimension=t.noSpacing=void 0;var o=c(n(208)),r=n(859),i=c(n(237)),a=n(271),s=n(133);function c(e){return e&&e.__esModule?e:{default:e}}var l={x:0,y:0},d=t.noSpacing={top:0,right:0,bottom:0,left:0},u=function(e,t){var n=e.top,o=e.right,r=e.bottom,a=e.left;return(0,i.default)({top:n+t.y,left:a+t.x,bottom:r+t.y,right:o+t.x})},h=function(e,t){var n=e.top,o=e.right,r=e.bottom,a=e.left;return(0,i.default)({top:n-t.top,left:a-t.left,bottom:r+t.bottom,right:o+t.right})},p=(t.getDraggableDimension=function(e){var t=e.descriptor,n=e.client,o=e.margin,r=void 0===o?d:o,a=e.windowScroll,s=u(n,void 0===a?l:a);return{descriptor:t,placeholder:{margin:r,withoutMargin:{width:n.width,height:n.height}},client:{withoutMargin:(0,i.default)(n),withMargin:(0,i.default)(h(n,r))},page:{withoutMargin:(0,i.default)(s),withMargin:(0,i.default)(h(s,r))}}},t.clip=function(e,t){var n=(0,i.default)({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n});t.scrollDroppable=function(e,t){var n=e.viewport,r=(0,s.subtract)(t,n.frameScroll.initial),i=(0,s.negate)(r),c=(0,a.offset)(n.subject,i),l={frame:n.frame,subject:n.subject,frameScroll:{initial:n.frameScroll.initial,current:t,diff:{value:r,displacement:i}},clipped:p(n.frame,c)};return(0,o.default)({},e,{viewport:l})},t.getDroppableDimension=function(e){var t=e.descriptor,n=e.client,o=e.frameClient,s=e.frameScroll,c=void 0===s?l:s,m=e.direction,g=void 0===m?"vertical":m,f=e.margin,_=void 0===f?d:f,b=e.padding,v=void 0===b?d:b,y=e.windowScroll,E=void 0===y?l:y,S=e.isEnabled,w=void 0===S||S,C=h(n,_),T=u(n,E),x=h(T,_),O=o?u(o,E):x,k={frame:O,frameScroll:{initial:c,current:c,diff:{value:l,displacement:l}},subject:x,clipped:p(O,x)};return{descriptor:t,isEnabled:w,axis:"vertical"===g?r.vertical:r.horizontal,client:{withoutMargin:(0,i.default)(n),withMargin:(0,i.default)(C),withMarginAndPadding:(0,i.default)(h(C,v))},page:{withoutMargin:(0,i.default)(T),withMargin:x,withMarginAndPadding:(0,i.default)(h(T,(0,a.add)(_,v)))},viewport:k}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]="number"==typeof e[n]?e[n]:e[n].val);return t},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e.preventDefault(),e.stopPropagation()}},function(e,t,n){"use strict";t.__esModule=!0,t.inherits=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=Object.create(e.prototype);for(var r in n)o[r]=n[r];return o.constructor=t,t.prototype=o,t}},function(e,t,n){var o=n(557),r=n(558).default,i=n(322).default,a=n(322).flatten,s=n(563).select,c=n(412),l=n(416);function d(e,t,n){if(t)"string"==typeof t&&(t=s(t,e._root,n));else{if(!e._root||!e._root.children)return"";t=e._root.children}if(n.xmlMode||n._useHtmlParser2)return r(t,n);for(var i=("length"in t?t:[t]),a=0;a<i.length;a+=1)"root"===i[a].type&&i.splice.apply(i,[a,1].concat(i[a].children));return c.serialize({children:i},{treeAdapter:o})}function u(e){if(Array.isArray(e))return!0;if("object"!=typeof e||!Object.prototype.hasOwnProperty.call(e,"length")||"number"!=typeof e.length||e.length<0)return!1;for(var t=0;t<e.length;t++)if(!(t in e))return!1;return!0}t.load=function(e,o,r){if(null==e)throw new Error("cheerio.load() expects a string");var s=n(578);o=Object.assign({},i,a(o)),void 0===r&&(r=!0);var c=l(e,o,r),d=function(e,t,n,r){return this instanceof d?(r=Object.assign({},o,r),s.call(this,e,t,n||c,r)):new d(e,t,n,r)};return d.prototype=Object.create(s.prototype),d.prototype.constructor=d,d.fn=d.prototype,d.prototype._originalRoot=c,Object.assign(d,t),d._root=c,d._options=o,d},t.html=function(e,t){return"[object Object]"!==Object.prototype.toString.call(e)||t||"length"in e||"type"in e||(t=e,e=void 0),d(this,e,t=Object.assign({},i,this._options,a(t||{})))},t.xml=function(e){return d(this,e,Object.assign({},this._options,{xmlMode:!0}))},t.text=function(e){e||(e=this.root());for(var n,o="",r=e.length,i=0;i<r;i++)"text"===(n=e[i]).type?o+=n.data:n.children&&"comment"!==n.type&&"script"!==n.tagName&&"style"!==n.tagName&&(o+=t.text(n.children));return o},t.parseHTML=function(e,t,n){var o;return e&&"string"==typeof e?("boolean"==typeof t&&(n=t),o=this.load(e,i,!1),n||o("script").remove(),o.root()[0].children.slice()):null},t.root=function(){return this(this._root)},t.contains=function(e,t){if(t===e)return!1;for(;t&&t!==t.parent;)if((t=t.parent)===e)return!0;return!1},t.merge=function(e,t){if(u(e)&&u(t)){for(var n=e.length+t.length,o=0;o<t.length;o++)e[o+e.length]=t[o];return e.length=n,e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=void 0,t.isTag=function(e){return"tag"===e.type||"script"===e.type||"style"===e.type},t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"},function(e,t){t.default={xml:!1,decodeEntities:!0};var n={_useHtmlParser2:!0,xmlMode:!0};t.flatten=function(e){return e&&e.xml?"boolean"==typeof e.xml?n:Object.assign({},n,e.xml):e}},function(e,t,n){"use strict";const o=n(958),r=n(413),i=n(959),a=n(414),s=r.CODE_POINTS,c=r.CODE_POINT_SEQUENCES,l={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},d="DATA_STATE";function u(e){return e===s.SPACE||e===s.LINE_FEED||e===s.TABULATION||e===s.FORM_FEED}function h(e){return e>=s.DIGIT_0&&e<=s.DIGIT_9}function p(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_Z}function m(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_Z}function g(e){return m(e)||p(e)}function f(e){return g(e)||h(e)}function _(e){return e>=s.LATIN_CAPITAL_A&&e<=s.LATIN_CAPITAL_F}function b(e){return e>=s.LATIN_SMALL_A&&e<=s.LATIN_SMALL_F}function v(e){return e+32}function y(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|1023&e))}function E(e){return String.fromCharCode(v(e))}function S(e,t){const n=i[++e];let o=++e,r=o+n-1;for(;o<=r;){const e=o+r>>>1,a=i[e];if(a<t)o=e+1;else{if(!(a>t))return i[e+n];r=e-1}}return-1}class w{constructor(){this.preprocessor=new o,this.tokenQueue=[],this.allowCDATA=!1,this.state=d,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;const e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:w.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,n){let o=0,r=!0;const i=e.length;let a=0,c=t,l=void 0;for(;a<i;a++){if(a>0&&(c=this._consume(),o++),c===s.EOF){r=!1;break}if(l=e[a],c!==l&&(n||c!==v(l))){r=!1;break}}if(!r)for(;o--;)this._unconsume();return r}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==c.SCRIPT_STRING.length)return!1;for(let e=0;e<this.tempBuff.length;e++)if(this.tempBuff[e]!==c.SCRIPT_STRING[e])return!1;return!0}_createStartTagToken(){this.currentToken={type:w.START_TAG_TOKEN,tagName:"",selfClosing:!1,ackSelfClosing:!1,attrs:[]}}_createEndTagToken(){this.currentToken={type:w.END_TAG_TOKEN,tagName:"",selfClosing:!1,attrs:[]}}_createCommentToken(){this.currentToken={type:w.COMMENT_TOKEN,data:""}}_createDoctypeToken(e){this.currentToken={type:w.DOCTYPE_TOKEN,name:e,forceQuirks:!1,publicId:null,systemId:null}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t}}_createEOFToken(){this.currentToken={type:w.EOF_TOKEN}}_createAttr(e){this.currentAttr={name:e,value:""}}_leaveAttrName(e){null===w.getTokenAttr(this.currentToken,this.currentAttr.name)?this.currentToken.attrs.push(this.currentAttr):this._err(a.duplicateAttribute),this.state=e}_leaveAttrValue(e){this.state=e}_emitCurrentToken(){this._emitCurrentCharacterToken();const e=this.currentToken;this.currentToken=null,e.type===w.START_TAG_TOKEN?this.lastStartTagName=e.tagName:e.type===w.END_TAG_TOKEN&&(e.attrs.length>0&&this._err(a.endTagWithAttributes),e.selfClosing&&this._err(a.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=w.CHARACTER_TOKEN;u(e)?t=w.WHITESPACE_CHARACTER_TOKEN:e===s.NULL&&(t=w.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,y(e))}_emitSeveralCodePoints(e){for(let t=0;t<e.length;t++)this._emitCodePoint(e[t])}_emitChars(e){this._appendCharToCurrentCharacterToken(w.CHARACTER_TOKEN,e)}_matchNamedCharacterReference(e){let t=null,n=1,o=S(0,e);for(this.tempBuff.push(e);o>-1;){const e=i[o],r=e<7;r&&1&e&&(t=2&e?[i[++o],i[++o]]:[i[++o]],n=0);const a=this._consume();if(this.tempBuff.push(a),n++,a===s.EOF)break;o=r?4&e?S(o,a):-1:a===e?++o:-1}for(;n--;)this.tempBuff.pop(),this._unconsume();return t}_isCharacterReferenceInAttribute(){return"ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE"===this.returnState||"ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE"===this.returnState||"ATTRIBUTE_VALUE_UNQUOTED_STATE"===this.returnState}_isCharacterReferenceAttributeQuirk(e){if(!e&&this._isCharacterReferenceInAttribute()){const e=this._consume();return this._unconsume(),e===s.EQUALS_SIGN||f(e)}return!1}_flushCodePointsConsumedAsCharacterReference(){if(this._isCharacterReferenceInAttribute())for(let e=0;e<this.tempBuff.length;e++)this.currentAttr.value+=y(this.tempBuff[e]);else this._emitSeveralCodePoints(this.tempBuff);this.tempBuff=[]}[d](e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state="TAG_OPEN_STATE":e===s.AMPERSAND?(this.returnState=d,this.state="CHARACTER_REFERENCE_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitCodePoint(e)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}RCDATA_STATE(e){this.preprocessor.dropParsedChunk(),e===s.AMPERSAND?(this.returnState="RCDATA_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===s.LESS_THAN_SIGN?this.state="RCDATA_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}RAWTEXT_STATE(e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state="RAWTEXT_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}SCRIPT_DATA_STATE(e){this.preprocessor.dropParsedChunk(),e===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}PLAINTEXT_STATE(e){this.preprocessor.dropParsedChunk(),e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?this._emitEOFToken():this._emitCodePoint(e)}TAG_OPEN_STATE(e){e===s.EXCLAMATION_MARK?this.state="MARKUP_DECLARATION_OPEN_STATE":e===s.SOLIDUS?this.state="END_TAG_OPEN_STATE":g(e)?(this._createStartTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===s.QUESTION_MARK?(this._err(a.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE")):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._emitChars("<"),this._reconsumeInState(d))}END_TAG_OPEN_STATE(e){g(e)?(this._createEndTagToken(),this._reconsumeInState("TAG_NAME_STATE")):e===s.GREATER_THAN_SIGN?(this._err(a.missingEndTagName),this.state=d):e===s.EOF?(this._err(a.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken()):(this._err(a.invalidFirstCharacterOfTagName),this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE"))}TAG_NAME_STATE(e){u(e)?this.state="BEFORE_ATTRIBUTE_NAME_STATE":e===s.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===s.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):p(e)?this.currentToken.tagName+=E(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.tagName+=r.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentToken.tagName+=y(e)}RCDATA_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="RCDATA_END_TAG_OPEN_STATE"):(this._emitChars("<"),this._reconsumeInState("RCDATA_STATE"))}RCDATA_END_TAG_OPEN_STATE(e){g(e)?(this._createEndTagToken(),this._reconsumeInState("RCDATA_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("RCDATA_STATE"))}RCDATA_END_TAG_NAME_STATE(e){if(p(e))this.currentToken.tagName+=E(e),this.tempBuff.push(e);else if(m(e))this.currentToken.tagName+=y(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(u(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===s.GREATER_THAN_SIGN)return this.state=d,void this._emitCurrentToken()}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RCDATA_STATE")}}RAWTEXT_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="RAWTEXT_END_TAG_OPEN_STATE"):(this._emitChars("<"),this._reconsumeInState("RAWTEXT_STATE"))}RAWTEXT_END_TAG_OPEN_STATE(e){g(e)?(this._createEndTagToken(),this._reconsumeInState("RAWTEXT_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("RAWTEXT_STATE"))}RAWTEXT_END_TAG_NAME_STATE(e){if(p(e))this.currentToken.tagName+=E(e),this.tempBuff.push(e);else if(m(e))this.currentToken.tagName+=y(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(u(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=d)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RAWTEXT_STATE")}}SCRIPT_DATA_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_END_TAG_OPEN_STATE"):e===s.EXCLAMATION_MARK?(this.state="SCRIPT_DATA_ESCAPE_START_STATE",this._emitChars("<!")):(this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_STATE"))}SCRIPT_DATA_END_TAG_OPEN_STATE(e){g(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("SCRIPT_DATA_STATE"))}SCRIPT_DATA_END_TAG_NAME_STATE(e){if(p(e))this.currentToken.tagName+=E(e),this.tempBuff.push(e);else if(m(e))this.currentToken.tagName+=y(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(u(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=d)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_STATE")}}SCRIPT_DATA_ESCAPE_START_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPE_START_DASH_STATE",this._emitChars("-")):this._reconsumeInState("SCRIPT_DATA_STATE")}SCRIPT_DATA_ESCAPE_START_DASH_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChars("-")):this._reconsumeInState("SCRIPT_DATA_STATE")}SCRIPT_DATA_ESCAPED_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_STATE",this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}SCRIPT_DATA_ESCAPED_DASH_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChars("-")):e===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_ESCAPED_DASH_DASH_STATE(e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":e===s.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE"):g(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE")):(this._emitChars("<"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))}SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE(e){g(e)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE")):(this._emitChars("</"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))}SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE(e){if(p(e))this.currentToken.tagName+=E(e),this.tempBuff.push(e);else if(m(e))this.currentToken.tagName+=y(e),this.tempBuff.push(e);else{if(this.lastStartTagName===this.currentToken.tagName){if(u(e))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(e===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(e===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=d)}this._emitChars("</"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")}}SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE(e){u(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?"SCRIPT_DATA_DOUBLE_ESCAPED_STATE":"SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(e)):p(e)?(this.tempBuff.push(v(e)),this._emitCodePoint(e)):m(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")}SCRIPT_DATA_DOUBLE_ESCAPED_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):this._emitCodePoint(e)}SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE(e){e===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",this._emitChars("-")):e===s.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChars("<")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE(e){e===s.HYPHEN_MINUS?this._emitChars("-"):e===s.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChars("<")):e===s.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChars(">")):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChars(r.REPLACEMENT_CHARACTER)):e===s.EOF?(this._err(a.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e))}SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE(e){e===s.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",this._emitChars("/")):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")}SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE(e){u(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?"SCRIPT_DATA_ESCAPED_STATE":"SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(e)):p(e)?(this.tempBuff.push(v(e)),this._emitCodePoint(e)):m(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")}BEFORE_ATTRIBUTE_NAME_STATE(e){u(e)||(e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?this._reconsumeInState("AFTER_ATTRIBUTE_NAME_STATE"):e===s.EQUALS_SIGN?(this._err(a.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state="ATTRIBUTE_NAME_STATE"):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))}ATTRIBUTE_NAME_STATE(e){u(e)||e===s.SOLIDUS||e===s.GREATER_THAN_SIGN||e===s.EOF?(this._leaveAttrName("AFTER_ATTRIBUTE_NAME_STATE"),this._unconsume()):e===s.EQUALS_SIGN?this._leaveAttrName("BEFORE_ATTRIBUTE_VALUE_STATE"):p(e)?this.currentAttr.name+=E(e):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN?(this._err(a.unexpectedCharacterInAttributeName),this.currentAttr.name+=y(e)):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.name+=r.REPLACEMENT_CHARACTER):this.currentAttr.name+=y(e)}AFTER_ATTRIBUTE_NAME_STATE(e){u(e)||(e===s.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":e===s.EQUALS_SIGN?this.state="BEFORE_ATTRIBUTE_VALUE_STATE":e===s.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))}BEFORE_ATTRIBUTE_VALUE_STATE(e){u(e)||(e===s.QUOTATION_MARK?this.state="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE":e===s.APOSTROPHE?this.state="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE":e===s.GREATER_THAN_SIGN?(this._err(a.missingAttributeValue),this.state=d,this._emitCurrentToken()):this._reconsumeInState("ATTRIBUTE_VALUE_UNQUOTED_STATE"))}ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE(e){e===s.QUOTATION_MARK?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===s.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=r.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=y(e)}ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE(e){e===s.APOSTROPHE?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":e===s.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=r.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=y(e)}ATTRIBUTE_VALUE_UNQUOTED_STATE(e){u(e)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):e===s.AMPERSAND?(this.returnState="ATTRIBUTE_VALUE_UNQUOTED_STATE",this.state="CHARACTER_REFERENCE_STATE"):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(d),this._emitCurrentToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentAttr.value+=r.REPLACEMENT_CHARACTER):e===s.QUOTATION_MARK||e===s.APOSTROPHE||e===s.LESS_THAN_SIGN||e===s.EQUALS_SIGN||e===s.GRAVE_ACCENT?(this._err(a.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=y(e)):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):this.currentAttr.value+=y(e)}AFTER_ATTRIBUTE_VALUE_QUOTED_STATE(e){u(e)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):e===s.SOLIDUS?this._leaveAttrValue("SELF_CLOSING_START_TAG_STATE"):e===s.GREATER_THAN_SIGN?(this._leaveAttrValue(d),this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.missingWhitespaceBetweenAttributes),this._reconsumeInState("BEFORE_ATTRIBUTE_NAME_STATE"))}SELF_CLOSING_START_TAG_STATE(e){e===s.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=d,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInTag),this._emitEOFToken()):(this._err(a.unexpectedSolidusInTag),this._reconsumeInState("BEFORE_ATTRIBUTE_NAME_STATE"))}BOGUS_COMMENT_STATE(e){e===s.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):e===s.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=r.REPLACEMENT_CHARACTER):this.currentToken.data+=y(e)}MARKUP_DECLARATION_OPEN_STATE(e){this._consumeSequenceIfMatch(c.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state="COMMENT_START_STATE"):this._consumeSequenceIfMatch(c.DOCTYPE_STRING,e,!1)?this.state="DOCTYPE_STATE":this._consumeSequenceIfMatch(c.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state="CDATA_SECTION_STATE":(this._err(a.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state="BOGUS_COMMENT_STATE"):this._ensureHibernation()||(this._err(a.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState("BOGUS_COMMENT_STATE"))}COMMENT_START_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_START_DASH_STATE":e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=d,this._emitCurrentToken()):this._reconsumeInState("COMMENT_STATE")}COMMENT_START_DASH_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_END_STATE":e===s.GREATER_THAN_SIGN?(this._err(a.abruptClosingOfEmptyComment),this.state=d,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState("COMMENT_STATE"))}COMMENT_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_END_DASH_STATE":e===s.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state="COMMENT_LESS_THAN_SIGN_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.data+=r.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=y(e)}COMMENT_LESS_THAN_SIGN_STATE(e){e===s.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state="COMMENT_LESS_THAN_SIGN_BANG_STATE"):e===s.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState("COMMENT_STATE")}COMMENT_LESS_THAN_SIGN_BANG_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE":this._reconsumeInState("COMMENT_STATE")}COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE":this._reconsumeInState("COMMENT_END_DASH_STATE")}COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE(e){e!==s.GREATER_THAN_SIGN&&e!==s.EOF&&this._err(a.nestedComment),this._reconsumeInState("COMMENT_END_STATE")}COMMENT_END_DASH_STATE(e){e===s.HYPHEN_MINUS?this.state="COMMENT_END_STATE":e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState("COMMENT_STATE"))}COMMENT_END_STATE(e){e===s.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):e===s.EXCLAMATION_MARK?this.state="COMMENT_END_BANG_STATE":e===s.HYPHEN_MINUS?this.currentToken.data+="-":e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState("COMMENT_STATE"))}COMMENT_END_BANG_STATE(e){e===s.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state="COMMENT_END_DASH_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.incorrectlyClosedComment),this.state=d,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState("COMMENT_STATE"))}DOCTYPE_STATE(e){u(e)?this.state="BEFORE_DOCTYPE_NAME_STATE":e===s.GREATER_THAN_SIGN?this._reconsumeInState("BEFORE_DOCTYPE_NAME_STATE"):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingWhitespaceBeforeDoctypeName),this._reconsumeInState("BEFORE_DOCTYPE_NAME_STATE"))}BEFORE_DOCTYPE_NAME_STATE(e){u(e)||(p(e)?(this._createDoctypeToken(E(e)),this.state="DOCTYPE_NAME_STATE"):e===s.NULL?(this._err(a.unexpectedNullCharacter),this._createDoctypeToken(r.REPLACEMENT_CHARACTER),this.state="DOCTYPE_NAME_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=d):e===s.EOF?(this._err(a.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(y(e)),this.state="DOCTYPE_NAME_STATE"))}DOCTYPE_NAME_STATE(e){u(e)?this.state="AFTER_DOCTYPE_NAME_STATE":e===s.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):p(e)?this.currentToken.name+=E(e):e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.name+=r.REPLACEMENT_CHARACTER):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=y(e)}AFTER_DOCTYPE_NAME_STATE(e){u(e)||(e===s.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(c.PUBLIC_STRING,e,!1)?this.state="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE":this._consumeSequenceIfMatch(c.SYSTEM_STRING,e,!1)?this.state="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE":this._ensureHibernation()||(this._err(a.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE(e){u(e)?this.state="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE":e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=d,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE(e){u(e)||(e===s.QUOTATION_MARK?(this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this.currentToken.publicId="",this.state="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=d,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE(e){e===s.QUOTATION_MARK?this.state="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=r.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=d):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=y(e)}DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE(e){e===s.APOSTROPHE?this.state="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.publicId+=r.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=d):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=y(e)}AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE(e){u(e)?this.state="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE":e===s.GREATER_THAN_SIGN?(this.state=d,this._emitCurrentToken()):e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this._err(a.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE(e){u(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=d):e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE(e){u(e)?this.state="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE":e===s.QUOTATION_MARK?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this._err(a.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=d,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE"))}BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE(e){u(e)||(e===s.QUOTATION_MARK?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE"):e===s.APOSTROPHE?(this.currentToken.systemId="",this.state="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE"):e===s.GREATER_THAN_SIGN?(this._err(a.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=d,this._emitCurrentToken()):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE(e){e===s.QUOTATION_MARK?this.state="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=r.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=d):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=y(e)}DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE(e){e===s.APOSTROPHE?this.state="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE":e===s.NULL?(this._err(a.unexpectedNullCharacter),this.currentToken.systemId+=r.REPLACEMENT_CHARACTER):e===s.GREATER_THAN_SIGN?(this._err(a.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=d):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=y(e)}AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE(e){u(e)||(e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=d):e===s.EOF?(this._err(a.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(a.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState("BOGUS_DOCTYPE_STATE")))}BOGUS_DOCTYPE_STATE(e){e===s.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=d):e===s.NULL?this._err(a.unexpectedNullCharacter):e===s.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}CDATA_SECTION_STATE(e){e===s.RIGHT_SQUARE_BRACKET?this.state="CDATA_SECTION_BRACKET_STATE":e===s.EOF?(this._err(a.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}CDATA_SECTION_BRACKET_STATE(e){e===s.RIGHT_SQUARE_BRACKET?this.state="CDATA_SECTION_END_STATE":(this._emitChars("]"),this._reconsumeInState("CDATA_SECTION_STATE"))}CDATA_SECTION_END_STATE(e){e===s.GREATER_THAN_SIGN?this.state=d:e===s.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState("CDATA_SECTION_STATE"))}CHARACTER_REFERENCE_STATE(e){this.tempBuff=[s.AMPERSAND],e===s.NUMBER_SIGN?(this.tempBuff.push(e),this.state="NUMERIC_CHARACTER_REFERENCE_STATE"):f(e)?this._reconsumeInState("NAMED_CHARACTER_REFERENCE_STATE"):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}NAMED_CHARACTER_REFERENCE_STATE(e){const t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[s.AMPERSAND];else if(t){const e=this.tempBuff[this.tempBuff.length-1]===s.SEMICOLON;this._isCharacterReferenceAttributeQuirk(e)||(e||this._errOnNextCodePoint(a.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state="AMBIGUOS_AMPERSAND_STATE"}AMBIGUOS_AMPERSAND_STATE(e){f(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=y(e):this._emitCodePoint(e):(e===s.SEMICOLON&&this._err(a.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}NUMERIC_CHARACTER_REFERENCE_STATE(e){this.charRefCode=0,e===s.LATIN_SMALL_X||e===s.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE"):this._reconsumeInState("DECIMAL_CHARACTER_REFERENCE_START_STATE")}HEXADEMICAL_CHARACTER_REFERENCE_START_STATE(e){!function(e){return h(e)||_(e)||b(e)}(e)?(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState("HEXADEMICAL_CHARACTER_REFERENCE_STATE")}DECIMAL_CHARACTER_REFERENCE_START_STATE(e){h(e)?this._reconsumeInState("DECIMAL_CHARACTER_REFERENCE_STATE"):(this._err(a.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}HEXADEMICAL_CHARACTER_REFERENCE_STATE(e){_(e)?this.charRefCode=16*this.charRefCode+e-55:b(e)?this.charRefCode=16*this.charRefCode+e-87:h(e)?this.charRefCode=16*this.charRefCode+e-48:e===s.SEMICOLON?this.state="NUMERIC_CHARACTER_REFERENCE_END_STATE":(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState("NUMERIC_CHARACTER_REFERENCE_END_STATE"))}DECIMAL_CHARACTER_REFERENCE_STATE(e){h(e)?this.charRefCode=10*this.charRefCode+e-48:e===s.SEMICOLON?this.state="NUMERIC_CHARACTER_REFERENCE_END_STATE":(this._err(a.missingSemicolonAfterCharacterReference),this._reconsumeInState("NUMERIC_CHARACTER_REFERENCE_END_STATE"))}NUMERIC_CHARACTER_REFERENCE_END_STATE(){if(this.charRefCode===s.NULL)this._err(a.nullCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(a.characterReferenceOutsideUnicodeRange),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(r.isSurrogate(this.charRefCode))this._err(a.surrogateCharacterReference),this.charRefCode=s.REPLACEMENT_CHARACTER;else if(r.isUndefinedCodePoint(this.charRefCode))this._err(a.noncharacterCharacterReference);else if(r.isControlCodePoint(this.charRefCode)||this.charRefCode===s.CARRIAGE_RETURN){this._err(a.controlCharacterReference);const e=l[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}}w.CHARACTER_TOKEN="CHARACTER_TOKEN",w.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",w.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",w.START_TAG_TOKEN="START_TAG_TOKEN",w.END_TAG_TOKEN="END_TAG_TOKEN",w.COMMENT_TOKEN="COMMENT_TOKEN",w.DOCTYPE_TOKEN="DOCTYPE_TOKEN",w.EOF_TOKEN="EOF_TOKEN",w.HIBERNATION_TOKEN="HIBERNATION_TOKEN",w.MODE={DATA:d,RCDATA:"RCDATA_STATE",RAWTEXT:"RAWTEXT_STATE",SCRIPT_DATA:"SCRIPT_DATA_STATE",PLAINTEXT:"PLAINTEXT_STATE"},w.getTokenAttr=function(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null},e.exports=w},function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t},a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RssHandler=t.DefaultHandler=t.DomUtils=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DomHandler=t.Parser=void 0;var c=n(574);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return c.Parser}});var l=n(275);function d(e,t){var n=new l.DomHandler(void 0,t);return new c.Parser(n,t).end(e),n.root}Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return l.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return l.DomHandler}}),t.parseDocument=d,t.parseDOM=function(e,t){return d(e,t).children},t.createDomStream=function(e,t,n){var o=new l.DomHandler(e,t,n);return new c.Parser(o,t)};var u=n(575);Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return s(u).default}});var h=i(n(321));t.ElementType=h,a(n(577),t),t.DomUtils=i(n(242));var p=n(577);Object.defineProperty(t,"RssHandler",{enumerable:!0,get:function(){return p.FeedHandler}})},function(e,t,n){const o=n(981),r=n(985),{klona:i}=n(986),{isPlainObject:a}=n(987),s=n(988),c=n(989),{parse:l}=n(990),d=n(121),u=["img","audio","video","picture","svg","object","map","iframe","embed"],h=["script","style"];function p(e,t){e&&Object.keys(e).forEach((function(n){t(e[n],n)}))}function m(e,t){return{}.hasOwnProperty.call(e,t)}function g(e,t){const n=[];return p(e,(function(e){t(e)&&n.push(e)})),n}e.exports=_;const f=/^[^\0\t\n\f\r /<=>]+$/;function _(e,t,n){let v="",y="";function E(e,t){const n=this;this.tag=e,this.attribs=t||{},this.tagPosition=v.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){if(R.length){R[R.length-1].text+=n.text}},this.updateParentNodeMediaChildren=function(){if(R.length&&u.includes(this.tag)){R[R.length-1].mediaChildren.push(this.tag)}}}t?(t=Object.assign({},_.defaults,t)).parser?t.parser=Object.assign({},b,t.parser):t.parser=b:(t=_.defaults).parser=b,h.forEach((function(e){t.allowedTags&&t.allowedTags.includes(e)&&!t.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const S=t.nonTextTags||["script","style","textarea","option"];let w,C;t.allowedAttributes&&(w={},C={},p(t.allowedAttributes,(function(e,t){w[t]=[];const n=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(r(e).replace(/\\\*/g,".*")):w[t].push(e)})),C[t]=new RegExp("^("+n.join("|")+")$")})));const T={};p(t.allowedClasses,(function(e,t){w&&(m(w,t)||(w[t]=[]),w[t].push("class")),T[t]=e}));const x={};let O,k,R,D,I,A,N;p(t.transformTags,(function(e,t){let n;"function"==typeof e?n=e:"string"==typeof e&&(n=_.simpleTransform(e)),"*"===t?O=n:x[t]=n}));let F=!1;P();const M=new o.Parser({onopentag:function(e,n){if(t.enforceHtmlBoundary&&"html"===e&&P(),A)return void N++;const o=new E(e,n);R.push(o);let r=!1;const u=!!o.text;let h;if(m(x,e)&&(h=x[e](e,n),o.attribs=n=h.attribs,void 0!==h.text&&(o.innerText=h.text),e!==h.tagName&&(o.name=e=h.tagName,I[k]=h.tagName)),O&&(h=O(e,n),o.attribs=n=h.attribs,e!==h.tagName&&(o.name=e=h.tagName,I[k]=h.tagName)),(t.allowedTags&&-1===t.allowedTags.indexOf(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(m(e,t))return!1;return!0}(D)||null!=t.nestingLimit&&k>=t.nestingLimit)&&(r=!0,D[k]=!0,"discard"===t.disallowedTagsMode&&-1!==S.indexOf(e)&&(A=!0,N=1),D[k]=!0),k++,r){if("discard"===t.disallowedTagsMode)return;y=v,v=""}v+="<"+e,(!w||m(w,e)||w["*"])&&p(n,(function(n,r){if(!f.test(r))return void delete o.attribs[r];let u,h=!1;if(!w||m(w,e)&&-1!==w[e].indexOf(r)||w["*"]&&-1!==w["*"].indexOf(r)||m(C,e)&&C[e].test(r)||C["*"]&&C["*"].test(r))h=!0;else if(w&&w[e])for(const t of w[e])if(a(t)&&t.name&&t.name===r){h=!0;let e="";if(!0===t.multiple){const o=n.split(" ");for(const n of o)-1!==t.values.indexOf(n)&&(""===e?e=n:e+=" "+n)}else t.values.indexOf(n)>=0&&(e=n);n=e}if(h){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(r)&&j(e,n))return void delete o.attribs[r];if("iframe"===e&&"src"===r){let e=!0;try{u=d.parse(n,!1,!0);if(u&&null===u.host&&null===u.protocol)e=m(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const n=(t.allowedIframeHostnames||[]).find((function(e){return e===u.hostname})),o=(t.allowedIframeDomains||[]).find((function(e){return u.hostname===e||u.hostname.endsWith("."+e)}));e=n||o}}catch(t){e=!1}if(!e)return void delete o.attribs[r]}if("srcset"===r)try{if(u=c.parse(n),u.forEach((function(e){j("srcset",e.url)&&(e.evil=!0)})),u=g(u,(function(e){return!e.evil})),!u.length)return void delete o.attribs[r];n=c.stringify(g(u,(function(e){return!e.evil}))),o.attribs[r]=n}catch(e){return void delete o.attribs[r]}if("class"===r&&!(n=function(e,t){if(!t)return e;return(e=e.split(/\s+/)).filter((function(e){return-1!==t.indexOf(e)})).join(" ")}(n,T[e])).length)return void delete o.attribs[r];if("style"===r)try{const a=l(e+" {"+n+"}");if(0===(n=function(e){return e.nodes[0].nodes.reduce((function(e,t){return e.push(t.prop+":"+t.value),e}),[]).join(";")}(function(e,t){if(!t)return e;const n=i(e),o=e.nodes[0];let r;r=t[o.selector]&&t["*"]?s(t[o.selector],t["*"]):t[o.selector]||t["*"];r&&(n.nodes[0].nodes=o.nodes.reduce(function(e){return function(t,n){if(m(e,n.prop)){e[n.prop].some((function(e){return e.test(n.value)}))&&t.push(n)}return t}}(r),[]));return n}(a,t.allowedStyles))).length)return void delete o.attribs[r]}catch(e){return void delete o.attribs[r]}v+=" "+r,n&&n.length&&(v+='="'+L(n,!0)+'"')}else delete o.attribs[r]})),-1!==t.selfClosing.indexOf(e)?v+=" />":(v+=">",!o.innerText||u||t.textFilter||(v+=L(o.innerText),F=!0)),r&&(v=y+L(v),y="")},ontext:function(e){if(A)return;const n=R[R.length-1];let o;if(n&&(o=n.tag,e=void 0!==n.innerText?n.innerText:e),"discard"!==t.disallowedTagsMode||"script"!==o&&"style"!==o){const n=L(e,!1);t.textFilter&&!F?v+=t.textFilter(n,o):F||(v+=n)}else v+=e;if(R.length){R[R.length-1].text+=e}},onclosetag:function(e){if(A){if(N--,N)return;A=!1}const n=R.pop();if(!n)return;A=!!t.enforceHtmlBoundary&&"html"===e,k--;const o=D[k];if(o){if(delete D[k],"discard"===t.disallowedTagsMode)return void n.updateParentNodeText();y=v,v=""}I[k]&&(e=I[k],delete I[k]),t.exclusiveFilter&&t.exclusiveFilter(n)?v=v.substr(0,n.tagPosition):(n.updateParentNodeMediaChildren(),n.updateParentNodeText(),-1===t.selfClosing.indexOf(e)?(v+="</"+e+">",o&&(v=y+L(v),y="")):o&&(v=y,y=""))}},t.parser);return M.write(e),M.end(),v;function P(){v="",k=0,R=[],D={},I={},A=!1,N=0}function L(e,n){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,"""))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,""")),e}function j(e,n){const o=(n=(n=n.replace(/[\x00-\x20]+/g,"")).replace(/<!--.*?-->/g,"")).match(/^([a-zA-Z]+):/);if(!o)return!!n.match(/^[/\\]{2}/)&&!t.allowProtocolRelative;const r=o[1].toLowerCase();return m(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(r):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(r)}}const b={decodeEntities:!0};_.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1},_.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(o,r){let i;if(n)for(i in t)r[i]=t[i];else r=t;return{tagName:e,attribs:r}}}},function(e,t,n){"use strict";let o=n(327);class r extends o{constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}}e.exports=r,r.default=r},function(e,t,n){"use strict";let o=n(417),r=n(586),{isClean:i}=n(418),a=n(419);class s{constructor(e={}){this.raws={},this[i]=!1;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}else this[t]=e[t]}error(e,t={}){if(this.source){let n=this.positionBy(t);return this.source.input.error(e,n.line,n.column,t)}return new o(e)}warn(e,t,n){let o={node:this};for(let e in n)o[e]=n[e];return e.warn(t,o)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(e=a){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}clone(e={}){let t=function e(t,n){let o=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;if("proxyCache"===r)continue;let i=t[r],a=typeof i;"parent"===r&&"object"===a?n&&(o[r]=n):"source"===r?o[r]=i:Array.isArray(i)?o[r]=i.map(t=>e(t,o)):("object"===a&&null!==i&&(i=e(i)),o[r]=i)}return o}(this);for(let n in e)t[n]=e[n];return t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let o of e)o===this?n=!0:n?(this.parent.insertAfter(t,o),t=o):this.parent.insertBefore(t,o);n||this.remove()}return this}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}before(e){return this.parent.insertBefore(this,e),this}after(e){return this.parent.insertAfter(this,e),this}root(){let e=this;for(;e.parent;)e=e.parent;return e}raw(e,t){return(new r).raw(this,e,t)}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}toJSON(e,t){let n={},o=null==t;t=t||new Map;let r=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e)continue;let o=this[e];if(Array.isArray(o))n[e]=o.map(e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e);else if("object"==typeof o&&o.toJSON)n[e]=o.toJSON(null,t);else if("source"===e){let i=t.get(o.input);null==i&&(i=r,t.set(o.input,r),r++),n[e]={inputId:i,start:o.start,end:o.end}}else n[e]=o}return o&&(n.inputs=[...t.keys()].map(e=>e.toJSON())),n}positionInside(e){let t=this.toString(),n=this.source.start.column,o=this.source.start.line;for(let r=0;r<e;r++)"\n"===t[r]?(n=1,o+=1):n+=1;return{line:o,column:n}}positionBy(e){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n=this.toString().indexOf(e.word);-1!==n&&(t=this.positionInside(n))}return t}getProxyProcessor(){return{set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0),get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t]}}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}markDirty(){if(this[i]){this[i]=!1;let e=this;for(;e=e.parent;)e[i]=!1}}get proxyOf(){return this}}e.exports=s,s.default=s},function(e,t,n){"use strict";let o=n(327);class r extends o{constructor(e){super(e),this.type="comment"}}e.exports=r,r.default=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(88),r=n(84),i=n(424),a=n(145),s=n(90),c=n(346),l=n(173);function d(e){const t=e.getSender(),{entity:n}=e.getPrevContent(),{entity:o,recommendation:i,reason:a}=e.getContent();return o?i&&a?o===n?c.g.includes(e.getType())?Object(r.a)("%(senderName)s updated the rule banning users matching %(glob)s for %(reason)s",{senderName:t,glob:o,reason:a}):c.c.includes(e.getType())?Object(r.a)("%(senderName)s updated the rule banning rooms matching %(glob)s for %(reason)s",{senderName:t,glob:o,reason:a}):c.f.includes(e.getType())?Object(r.a)("%(senderName)s updated the rule banning servers matching %(glob)s for %(reason)s",{senderName:t,glob:o,reason:a}):Object(r.a)("%(senderName)s updated a ban rule matching %(glob)s for %(reason)s",{senderName:t,glob:o,reason:a}):n?c.g.includes(e.getType())?Object(r.a)("%(senderName)s changed a rule that was banning users matching %(oldGlob)s to matching %(newGlob)s for %(reason)s",{senderName:t,oldGlob:n,newGlob:o,reason:a}):c.c.includes(e.getType())?Object(r.a)("%(senderName)s changed a rule that was banning rooms matching %(oldGlob)s to matching %(newGlob)s for %(reason)s",{senderName:t,oldGlob:n,newGlob:o,reason:a}):c.f.includes(e.getType())?Object(r.a)("%(senderName)s changed a rule that was banning servers matching %(oldGlob)s to matching %(newGlob)s for %(reason)s",{senderName:t,oldGlob:n,newGlob:o,reason:a}):Object(r.a)("%(senderName)s updated a ban rule that was matching %(oldGlob)s to matching %(newGlob)s for %(reason)s",{senderName:t,oldGlob:n,newGlob:o,reason:a}):c.g.includes(e.getType())?Object(r.a)("%(senderName)s created a rule banning users matching %(glob)s for %(reason)s",{senderName:t,glob:o,reason:a}):c.c.includes(e.getType())?Object(r.a)("%(senderName)s created a rule banning rooms matching %(glob)s for %(reason)s",{senderName:t,glob:o,reason:a}):c.f.includes(e.getType())?Object(r.a)("%(senderName)s created a rule banning servers matching %(glob)s for %(reason)s",{senderName:t,glob:o,reason:a}):Object(r.a)("%(senderName)s created a ban rule matching %(glob)s for %(reason)s",{senderName:t,glob:o,reason:a}):Object(r.a)("%(senderName)s updated an invalid ban rule",{senderName:t}):c.g.includes(e.getType())?Object(r.a)("%(senderName)s removed the rule banning users matching %(glob)s",{senderName:t,glob:n}):c.c.includes(e.getType())?Object(r.a)("%(senderName)s removed the rule banning rooms matching %(glob)s",{senderName:t,glob:n}):c.f.includes(e.getType())?Object(r.a)("%(senderName)s removed the rule banning servers matching %(glob)s",{senderName:t,glob:n}):Object(r.a)("%(senderName)s removed a ban rule matching %(glob)s",{senderName:t,glob:n})}const u={"m.room.message":function(e){const t=e.sender&&e.sender.name?e.sender.name:e.getSender();let n=t+": "+e.getContent().body;return"m.emote"===e.getContent().msgtype?n="* "+t+" "+n:"m.image"===e.getContent().msgtype&&(n=Object(r.a)("%(senderDisplayName)s sent an image.",{senderDisplayName:t})),n},"m.call.invite":function(e){const t=e.sender?e.sender.name:Object(r.a)("Someone");let n=!0;e.getContent().offer&&e.getContent().offer.sdp&&-1!==e.getContent().offer.sdp.indexOf("m=video")&&(n=!1);const i=o.a.get().supportsVoip();return n&&i?Object(r.a)("%(senderName)s placed a voice call.",{senderName:t}):n&&!i?Object(r.a)("%(senderName)s placed a voice call. (not supported by this browser)",{senderName:t}):!n&&i?Object(r.a)("%(senderName)s placed a video call.",{senderName:t}):n||i?void 0:Object(r.a)("%(senderName)s placed a video call. (not supported by this browser)",{senderName:t})},"m.call.answer":function(e){const t=e.sender?e.sender.name:Object(r.a)("Someone"),n=o.a.get().supportsVoip()?"":Object(r.a)("(not supported by this browser)");return Object(r.a)("%(senderName)s answered the call.",{senderName:t})+" "+n},"m.call.hangup":function(e){const t=e.sender?e.sender.name:Object(r.a)("Someone"),n=e.getContent();let i="";return o.a.get().supportsVoip()?n.reason&&(i="ice_failed"===n.reason?Object(r.a)("(could not connect media)"):"ice_timeout"===n.reason?Object(r.a)("(connection failed)"):"user_media_failed"===n.reason?Object(r.a)("(their device couldn't start the camera / microphone)"):"unknown_error"===n.reason?Object(r.a)("(an error occurred)"):"invite_timeout"===n.reason?Object(r.a)("(no answer)"):"user hangup"===n.reason||"user_hangup"===n.reason?"":Object(r.a)("(unknown failure: %(reason)s)",{reason:n.reason})):i=Object(r.a)("(not supported by this browser)"),Object(r.a)("%(senderName)s ended the call.",{senderName:t})+" "+i},"m.call.reject":function(e){const t=e.sender?e.sender.name:Object(r.a)("Someone");return Object(r.a)("%(senderName)s declined the call.",{senderName:t})}},h={"m.room.canonical_alias":function(e){const t=e.sender&&e.sender.name?e.sender.name:e.getSender(),n=e.getPrevContent().alias,o=e.getPrevContent().alt_aliases||[],i=e.getContent().alias,a=e.getContent().alt_aliases||[],s=o.filter(e=>!a.includes(e)),c=a.filter(e=>!o.includes(e));if(s.length||c.length){if(i!==n)return Object(r.a)("%(senderName)s changed the main and alternative addresses for this room.",{senderName:t});if(c.length&&!s.length)return Object(r.a)("%(senderName)s added the alternative addresses %(addresses)s for this room.",{senderName:t,addresses:c.join(", "),count:c.length});if(s.length&&!c.length)return Object(r.a)("%(senderName)s removed the alternative addresses %(addresses)s for this room.",{senderName:t,addresses:s.join(", "),count:s.length});if(s.length&&c.length)return Object(r.a)("%(senderName)s changed the alternative addresses for this room.",{senderName:t})}else{if(i)return Object(r.a)("%(senderName)s set the main address for this room to %(address)s.",{senderName:t,address:e.getContent().alias});if(n)return Object(r.a)("%(senderName)s removed the main address for this room.",{senderName:t})}return Object(r.a)("%(senderName)s changed the addresses for this room.",{senderName:t})},"m.room.name":function(e){const t=e.sender&&e.sender.name?e.sender.name:e.getSender();return e.getContent().name&&0!==e.getContent().name.trim().length?e.getPrevContent().name?Object(r.a)("%(senderDisplayName)s changed the room name from %(oldRoomName)s to %(newRoomName)s.",{senderDisplayName:t,oldRoomName:e.getPrevContent().name,newRoomName:e.getContent().name}):Object(r.a)("%(senderDisplayName)s changed the room name to %(roomName)s.",{senderDisplayName:t,roomName:e.getContent().name}):Object(r.a)("%(senderDisplayName)s removed the room name.",{senderDisplayName:t})},"m.room.topic":function(e){const t=e.sender&&e.sender.name?e.sender.name:e.getSender();return Object(r.a)('%(senderDisplayName)s changed the topic to "%(topic)s".',{senderDisplayName:t,topic:e.getContent().topic})},"m.room.member":function(e){const t=e.sender?e.sender.name:e.getSender(),n=e.target?e.target.name:e.getStateKey(),o=e.getPrevContent(),i=e.getContent(),a=i.reason?Object(r.a)("Reason")+": "+i.reason:"";switch(i.membership){case"invite":{const e=i.third_party_invite;return e?e.display_name?Object(r.a)("%(targetName)s accepted the invitation for %(displayName)s.",{targetName:n,displayName:e.display_name}):Object(r.a)("%(targetName)s accepted an invitation.",{targetName:n}):Object(r.a)("%(senderName)s invited %(targetName)s.",{senderName:t,targetName:n})}case"ban":return Object(r.a)("%(senderName)s banned %(targetName)s.",{senderName:t,targetName:n})+" "+a;case"join":return o&&"join"===o.membership?o.displayname&&i.displayname&&o.displayname!==i.displayname?Object(r.a)("%(oldDisplayName)s changed their display name to %(displayName)s.",{oldDisplayName:o.displayname,displayName:i.displayname}):!o.displayname&&i.displayname?Object(r.a)("%(senderName)s set their display name to %(displayName)s.",{senderName:e.getSender(),displayName:i.displayname}):o.displayname&&!i.displayname?Object(r.a)("%(senderName)s removed their display name (%(oldDisplayName)s).",{senderName:t,oldDisplayName:o.displayname}):o.avatar_url&&!i.avatar_url?Object(r.a)("%(senderName)s removed their profile picture.",{senderName:t}):o.avatar_url&&i.avatar_url&&o.avatar_url!==i.avatar_url?Object(r.a)("%(senderName)s changed their profile picture.",{senderName:t}):!o.avatar_url&&i.avatar_url?Object(r.a)("%(senderName)s set a profile picture.",{senderName:t}):s.b.getValue("showHiddenEventsInTimeline")?Object(r.a)("%(senderName)s made no change.",{senderName:t}):"":(e.target||console.warn("Join message has no target! -- "+e.getContent().state_key),Object(r.a)("%(targetName)s joined the room.",{targetName:n}));case"leave":return e.getSender()===e.getStateKey()?"invite"===o.membership?Object(r.a)("%(targetName)s rejected the invitation.",{targetName:n}):Object(r.a)("%(targetName)s left the room.",{targetName:n}):"ban"===o.membership?Object(r.a)("%(senderName)s unbanned %(targetName)s.",{senderName:t,targetName:n}):"invite"===o.membership?Object(r.a)("%(senderName)s withdrew %(targetName)s's invitation.",{senderName:t,targetName:n})+" "+a:"join"===o.membership?Object(r.a)("%(senderName)s kicked %(targetName)s.",{senderName:t,targetName:n})+" "+a:""}},"m.room.third_party_invite":function(e){const t=e.sender?e.sender.name:e.getSender();if(!Object(a.c)(e)){const n=e.getPrevContent().display_name||Object(r.a)("Someone");return Object(r.a)("%(senderName)s revoked the invitation for %(targetDisplayName)s to join the room.",{senderName:t,targetDisplayName:n})}return Object(r.a)("%(senderName)s sent an invitation to %(targetDisplayName)s to join the room.",{senderName:t,targetDisplayName:e.getContent().display_name})},"m.room.history_visibility":function(e){const t=e.sender?e.sender.name:e.getSender();switch(e.getContent().history_visibility){case"invited":return Object(r.a)("%(senderName)s made future room history visible to all room members, from the point they are invited.",{senderName:t});case"joined":return Object(r.a)("%(senderName)s made future room history visible to all room members, from the point they joined.",{senderName:t});case"shared":return Object(r.a)("%(senderName)s made future room history visible to all room members.",{senderName:t});case"world_readable":return Object(r.a)("%(senderName)s made future room history visible to anyone.",{senderName:t});default:return Object(r.a)("%(senderName)s made future room history visible to unknown (%(visibility)s).",{senderName:t,visibility:e.getContent().history_visibility})}},"m.room.power_levels":function(e){const t=e.sender?e.sender.name:e.getSender();if(!(e.getPrevContent()&&e.getPrevContent().users&&e.getContent()&&e.getContent().users))return"";const n=e.getContent().users_default||0,o=[];Object.keys(e.getContent().users).forEach(e=>{-1===o.indexOf(e)&&o.push(e)}),Object.keys(e.getPrevContent().users).forEach(e=>{-1===o.indexOf(e)&&o.push(e)});const a=[];return o.forEach(t=>{const o=e.getPrevContent().users[t],s=e.getContent().users[t];s!==o&&a.push(Object(r.a)("%(userId)s from %(fromPowerLevel)s to %(toPowerLevel)s",{userId:t,fromPowerLevel:i.b(o,n),toPowerLevel:i.b(s,n)}))}),a.length?Object(r.a)("%(senderName)s changed the power level of %(powerLevelDiffText)s.",{senderName:t,powerLevelDiffText:a.join(", ")}):""},"m.room.pinned_events":function(e){const t=e.sender?e.sender.name:e.getSender();return Object(r.a)("%(senderName)s changed the pinned messages for the room.",{senderName:t})},"m.room.server_acl":function(e){const t=e.sender&&e.sender.name?e.sender.name:e.getSender(),n=e.getPrevContent(),o=e.getContent(),i=Array.isArray(n.deny)?n.deny:[],a=Array.isArray(n.allow)?n.allow:[];n.allow_ip_literals;let s="";return s=0===i.length&&0===a.length?Object(r.a)("%(senderDisplayName)s set the server ACLs for this room.",{senderDisplayName:t}):Object(r.a)("%(senderDisplayName)s changed the server ACLs for this room.",{senderDisplayName:t}),Array.isArray(o.allow)||(o.allow=[]),0===o.allow.length?s+" "+Object(r.a)("🎉 All servers are banned from participating! This room can no longer be used."):s},"m.room.tombstone":function(e){const t=e.sender&&e.sender.name?e.sender.name:e.getSender();return Object(r.a)("%(senderDisplayName)s upgraded this room.",{senderDisplayName:t})},"m.room.join_rules":function(e){const t=e.sender&&e.sender.name?e.sender.name:e.getSender();switch(e.getContent().join_rule){case"public":return Object(r.a)("%(senderDisplayName)s made the room public to whoever knows the link.",{senderDisplayName:t});case"invite":return Object(r.a)("%(senderDisplayName)s made the room invite only.",{senderDisplayName:t});default:return Object(r.a)("%(senderDisplayName)s changed the join rule to %(rule)s",{senderDisplayName:t,rule:e.getContent().join_rule})}},"m.room.guest_access":function(e){const t=e.sender&&e.sender.name?e.sender.name:e.getSender();switch(e.getContent().guest_access){case"can_join":return Object(r.a)("%(senderDisplayName)s has allowed guests to join the room.",{senderDisplayName:t});case"forbidden":return Object(r.a)("%(senderDisplayName)s has prevented guests from joining the room.",{senderDisplayName:t});default:return Object(r.a)("%(senderDisplayName)s changed guest access to %(rule)s",{senderDisplayName:t,rule:e.getContent().guest_access})}},"m.room.related_groups":function(e){const t=e.sender&&e.sender.name?e.sender.name:e.getSender(),n=e.getContent().groups||[],o=e.getPrevContent().groups||[],i=n.filter(e=>!o.includes(e)),a=o.filter(e=>!n.includes(e));return i.length&&!a.length?Object(r.a)("%(senderDisplayName)s enabled flair for %(groups)s in this room.",{senderDisplayName:t,groups:i.join(", ")}):!i.length&&a.length?Object(r.a)("%(senderDisplayName)s disabled flair for %(groups)s in this room.",{senderDisplayName:t,groups:a.join(", ")}):i.length&&a.length?Object(r.a)("%(senderDisplayName)s enabled flair for %(newGroups)s and disabled flair for %(oldGroups)s in this room.",{senderDisplayName:t,newGroups:i.join(", "),oldGroups:a.join(", ")}):""},"im.vector.modular.widgets":function(e){const t=e.getSender(),{name:n,type:o,url:i}=e.getPrevContent(),{name:a,type:s,url:c}=e.getContent()||{};let l=a||n||s||o||"";return l&&l.length>0&&(l=l[0].toUpperCase()+l.slice(1)),c?i?Object(r.a)("%(widgetName)s widget modified by %(senderName)s",{widgetName:l,senderName:t}):Object(r.a)("%(widgetName)s widget added by %(senderName)s",{widgetName:l,senderName:t}):Object(r.a)("%(widgetName)s widget removed by %(senderName)s",{widgetName:l,senderName:t})},[l.c]:function(e){var t;const n=(null===(t=e.sender)||void 0===t?void 0:t.name)||e.getSender();return Object(r.a)("%(senderName)s has updated the widget layout",{senderName:n})}};for(const e of c.a)h[e]=d;function p(e){const t=(e.isState()?h:u)[e.getType()];return t?t(e):""}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(88),r=n(211),i=n(116),a=n(84),s=n(87),c=n(91),l=n(90),d=n(125);class u{constructor(e){"+"===e[0]?(this.roomId=null,this.groupId=e):(this.roomId=e,this.groupId=null),this.canceled=!1,this.addrs=[],this.busy=!1,this.completionStates={},this.errors={},this.deferred=null}invite(e,t){if(this.addrs.length>0)throw new Error("Already inviting/invited");this.addrs.push(...e),this.reason=t;for(const e of this.addrs)null===Object(r.c)(e)&&(this.completionStates[e]="error",this.errors[e]={errcode:"M_INVALID",errorText:Object(a.a)("Unrecognised address")});return this.deferred=Object(d.b)(),this._inviteMore(0),this.deferred.promise}cancel(){this.busy&&(this._canceled=!0,this.deferred.reject(new Error("canceled")))}getCompletionState(e){return this.completionStates[e]}getErrorText(e){return this.errors[e]?this.errors[e].errorText:null}async _inviteToRoom(e,t,n){const i=Object(r.c)(t);if("email"===i)return o.a.get().inviteByEmail(e,t);if("mx-user-id"===i){const r=o.a.get().getRoom(e);if(!r)throw new Error("Room not found");const i=r.getMember(t);if(i&&["join","invite"].includes(i.membership))throw{errcode:"RIOT.ALREADY_IN_ROOM",error:"Member already invited"};if(!n&&l.b.getValue("promptBeforeInviteUnknownUsers",this.roomId)){if(!await o.a.get().getProfileInfo(t))throw new Error("User has no profile")}return o.a.get().invite(e,t,void 0,this.reason)}throw new Error("Unsupported address")}_doInvite(e,t){return new Promise((n,o)=>{let r;console.log("Inviting "+e),r=null!==this.groupId?i.a.inviteUserToGroup(this.groupId,e):this._inviteToRoom(this.roomId,e,t),r.then(()=>{this._canceled||(this.completionStates[e]="invited",delete this.errors[e],n())}).catch(r=>{if(this._canceled)return;let i;console.error(r);let s=!1;if("M_FORBIDDEN"===r.errcode)s=!0,i=Object(a.a)("You do not have permission to invite people to this room.");else if("RIOT.ALREADY_IN_ROOM"===r.errcode)i=Object(a.a)("User %(userId)s is already in the room",{userId:e});else{if("M_LIMIT_EXCEEDED"===r.errcode)return void setTimeout(()=>{this._doInvite(e,t).then(n,o)},5e3);["M_NOT_FOUND","M_USER_NOT_FOUND"].includes(r.errcode)?i=Object(a.a)("User %(user_id)s does not exist",{user_id:e}):"M_PROFILE_UNDISCLOSED"===r.errcode?i=Object(a.a)("User %(user_id)s may or may not exist",{user_id:e}):"M_PROFILE_NOT_FOUND"!==r.errcode||t?i="M_BAD_STATE"===r.errcode?Object(a.a)("The user must be unbanned before they can be invited."):"M_UNSUPPORTED_ROOM_VERSION"===r.errcode?Object(a.a)("The user's homeserver does not support the version of the room."):Object(a.a)("Unknown server error"):(console.warn(`User ${e} does not have a profile - inviting anyways automatically`),this._doInvite(e,!0).then(n,o))}this.completionStates[e]="error",this.errors[e]={errorText:i,errcode:r.errcode},this.busy=!s,this.fatal=s,s?o():n()})})}_inviteMore(e,t){if(this._canceled)return;if(e===this.addrs.length){if(this.busy=!1,Object.keys(this.errors).length>0&&!this.groupId){const e=["M_NOT_FOUND","M_USER_NOT_FOUND","M_PROFILE_UNDISCLOSED","M_PROFILE_NOT_FOUND"],t=Object.keys(this.errors).filter(t=>e.includes(this.errors[t].errcode));if(t.length>0){const e=()=>{const e=t.map(e=>this._doInvite(e,!0));Promise.all(e).then(()=>this.deferred.resolve(this.completionStates))};if(!l.b.getValue("promptBeforeInviteUnknownUsers",this.roomId))return void e();const n=s.getComponent("dialogs.AskInviteAnywayDialog");return console.log("Showing failed to invite dialog..."),void c.a.createTrackedDialog("Failed to invite","",n,{unknownProfileUsers:t.map(e=>({userId:e,errorText:this.errors[e].errorText})),onInviteAnyways:()=>e(),onGiveUp:()=>{for(const e of t)this.completionStates[e]="invited";this.deferred.resolve(this.completionStates)}})}}return void this.deferred.resolve(this.completionStates)}const n=this.addrs[e];null!==Object(r.c)(n)&&"invited"!==this.completionStates[n]?this._doInvite(n,t).then(()=>{this._inviteMore(e+1,t)}).catch(()=>this.deferred.resolve(this.completionStates)):this._inviteMore(e+1)}}},function(e,t,n){"use strict";function o(e,t){return{msgtype:"m.text",format:"org.matrix.custom.html",body:e,formatted_body:t}}function r(e,t){return{msgtype:"m.notice",format:"org.matrix.custom.html",body:e,formatted_body:t}}function i(e,t){return{msgtype:"m.emote",format:"org.matrix.custom.html",body:e,formatted_body:t}}function a(e){return{msgtype:"m.text",body:e}}function s(e){return{msgtype:"m.notice",body:e}}function c(e){return{msgtype:"m.emote",body:e}}n.r(t),n.d(t,"makeHtmlMessage",(function(){return o})),n.d(t,"makeHtmlNotice",(function(){return r})),n.d(t,"makeHtmlEmote",(function(){return i})),n.d(t,"makeTextMessage",(function(){return a})),n.d(t,"makeNotice",(function(){return s})),n.d(t,"makeEmoteMessage",(function(){return c}))},function(e,t,n){"use strict";for(var o=/[\\\"\x00-\x1F]/g,r={},i=0;i<32;++i)r[String.fromCharCode(i)]="\\U"+("0000"+i.toString(16)).slice(-4).toUpperCase();function a(e){return o.lastIndex=0,e.replace(o,(function(e){return r[e]}))}function s(e){switch(typeof e){case"string":return'"'+a(e)+'"';case"number":return isFinite(e)?e:"null";case"boolean":return e;case"object":return null===e?"null":Array.isArray(e)?function(e){for(var t="[",n="",o=0;o<e.length;++o)n+=t,t=",",n+=s(e[o]);return","!=t?"[]":n+"]"}(e):function(e){var t="{",n="",o=Object.keys(e);o.sort();for(var r=0;r<o.length;++r){var i=o[r];n+=t+'"'+a(i)+'":',t=",",n+=s(e[i])}return","!=t?"{}":n+"}"}(e);default:throw new Error("Cannot stringify: "+typeof e)}}r["\b"]="\\b",r["\t"]="\\t",r["\n"]="\\n",r["\f"]="\\f",r["\r"]="\\r",r['"']='\\"',r["\\"]="\\\\",e.exports={stringify:s}},function(e,t,n){"use strict";(function(e,o){n.d(t,"d",(function(){return F})),n.d(t,"c",(function(){return M})),n.d(t,"a",(function(){return P})),n.d(t,"b",(function(){return L}));var r=n(332),i=n.n(r),a=n(7),s=n(400),c=n(0),l=n(1),d=n(598),u=n(135),h=n(1014),p=n(334),m=n(744),g=n(335),f=n(1015),_=n(1016),b=n(1017),v=n(156),y=n(285),E=n(1018),S=n(427),w=n(428),C=n(213),T=n(1022),x=n(1023),O=n(1024),k=n(212),R=n(284),D=n(599),I=n(103);const A=p.a.DeviceVerification,N={[y.b.NAME]:y.b,[E.a.NAME]:E.a,[y.d]:O.a,[y.c]:O.a},F={RECIPROCATE_QR_CODE:y.b.NAME,SAS:E.a.NAME};function M(){return Boolean(e.Olm)}function P(e,t,n,o,r,i,a,u){if(this._onDeviceListUserCrossSigningUpdated=this._onDeviceListUserCrossSigningUpdated.bind(this),this._trustCrossSignedDevices=!0,this._reEmitter=new s.a(this),this._baseApis=e,this._sessionStore=t,this._userId=n,this._deviceId=o,this._clientStore=r,this._cryptoStore=i,this._roomList=a,u){this._verificationMethods=new Map;for(const e of u)"string"==typeof e?N[e]&&this._verificationMethods.set(e,N[e]):e.NAME?this._verificationMethods.set(e.NAME,e):c.a.warn("Excluding unknown verification method "+e)}else this._verificationMethods=N;this.backupInfo=null,this.backupKey=null,this._checkedForBackup=!1,this._sendingBackups=!1,this._olmDevice=new d.a(i),this._deviceList=new h.a(e,i,this._olmDevice),this._deviceList.on("userCrossSigningUpdated",this._onDeviceListUserCrossSigningUpdated),this._reEmitter.reEmit(this._deviceList,["crypto.devicesUpdated","crypto.willUpdateDevices"]),this._lastOneTimeKeyCheck=null,this._oneTimeKeyCheckInProgress=!1,this._roomEncryptors={},this._roomDecryptors={},this._supportedAlgorithms=l.u(m.a),this._deviceKeys={},this._globalBlacklistUnverifiedDevices=!1,this._globalErrorOnUnknownDevices=!0,this._outgoingRoomKeyRequestManager=new b.a(e,this._deviceId,this._cryptoStore),this._receivedRoomKeyRequests=[],this._receivedRoomKeyRequestCancellations=[],this._processingRoomKeyRequests=!1,this._lazyLoadMembers=!1,this._roomDeviceTrackingState={},this._lastNewSessionForced={},this._toDeviceVerificationRequests=new x.b,this._inRoomVerificationRequests=new T.b,this._sendKeyRequestsImmediately=!1;const p=this._baseApis._cryptoCallbacks||{},f=Object(g.d)(i,this._olmDevice);this._crossSigningInfo=new g.a(n,p,f),this._secretStorage=new _.b(e,p),this._dehydrationManager=new D.b(this),!p.getCrossSigningKey&&p.getSecretStorageKey&&(p.getCrossSigningKey=async e=>g.a.getFromSecretStorage(e,this._secretStorage))}function L(e){if("string"!=typeof e||e.indexOf(",")<0)return null;const t=Uint8Array.from(e.split(","),e=>parseInt(e));return u.encodeBase64(t)}function j(e){if(e._oneTimeKeyCheckInProgress)return;const t=Date.now();if(null!==e._lastOneTimeKeyCheck&&t-e._lastOneTimeKeyCheck<6e4)return;e._lastOneTimeKeyCheck=t;const n=e._olmDevice.maxNumberOfOneTimeKeys(),o=Math.floor(n/2);e._oneTimeKeyCheckInProgress=!0,Promise.resolve().then(()=>void 0!==e._oneTimeKeyCount?Promise.resolve(e._oneTimeKeyCount):e._baseApis.uploadKeysRequest({}).then(e=>e.one_time_key_counts.signed_curve25519||0)).then(t=>async function(t){for(;o>t||e.getNeedsNewFallback();){if(o>t){c.a.info("generating oneTimeKeys");const n=Math.min(o-t,5);await e._olmDevice.generateOneTimeKeys(n)}e.getNeedsNewFallback()&&(c.a.info("generating fallback key"),await e._olmDevice.generateFallbackKey()),c.a.info("calling _uploadOneTimeKeys");const n=await U(e);if(!n.one_time_key_counts||!n.one_time_key_counts.signed_curve25519)throw new Error("response for uploading keys does not contain one_time_key_counts.signed_curve25519");t=n.one_time_key_counts.signed_curve25519}}(t)).catch(e=>{c.a.error("Error uploading one-time keys",e.stack||e)}).finally(()=>{e._oneTimeKeyCount=void 0,e._oneTimeKeyCheckInProgress=!1})}async function U(e){const t=[],n={};if(e.getNeedsNewFallback()){const o=await e._olmDevice.getFallbackKey();for(const[r,i]of Object.entries(o.curve25519)){const o={key:i,fallback:!0};n["signed_curve25519:"+r]=o,t.push(e._signObject(o))}e.setNeedsNewFallback(!1)}const o=await e._olmDevice.getOneTimeKeys(),r={};for(const n in o.curve25519)if(o.curve25519.hasOwnProperty(n)){const i={key:o.curve25519[n]};r["signed_curve25519:"+n]=i,t.push(e._signObject(i))}await Promise.all(t);const i=await e._baseApis.uploadKeysRequest({one_time_keys:r,"org.matrix.msc2732.fallback_keys":n});return await e._olmDevice.markKeysAsPublished(),i}l.p(P,a.EventEmitter),P.prototype.init=async function(t){const{exportedOlmDevice:n,pickleKey:o}=t||{};c.a.log("Crypto: initialising Olm..."),await e.Olm.init(),c.a.log(n?"Crypto: initialising Olm device from exported device...":"Crypto: initialising Olm device..."),await this._olmDevice.init({fromExportedDevice:n,pickleKey:o}),c.a.log("Crypto: loading device list..."),await this._deviceList.load(),this._deviceKeys["ed25519:"+this._deviceId]=this._olmDevice.deviceEd25519Key,this._deviceKeys["curve25519:"+this._deviceId]=this._olmDevice.deviceCurve25519Key,c.a.log("Crypto: fetching own devices...");let r=this._deviceList.getRawStoredDevicesForUser(this._userId);if(r||(r={}),!r[this._deviceId]){c.a.log("Crypto: adding this device to the store...");const e={keys:this._deviceKeys,algorithms:this._supportedAlgorithms,verified:A.VERIFIED,known:!0};r[this._deviceId]=e,this._deviceList.storeDevicesForUser(this._userId,r),this._deviceList.saveIfDirty()}await this._cryptoStore.doTxn("readonly",[v.a.STORE_ACCOUNT],e=>{this._cryptoStore.getCrossSigningKeys(e,e=>{e&&0!==Object.keys(e).length&&(c.a.log("Loaded cross-signing public keys from crypto store"),this._crossSigningInfo.setKeys(e))})}),this._deviceList.startTrackingDeviceList(this._userId),c.a.log("Crypto: checking for key backup..."),this._checkAndStartKeyBackup()},P.prototype.getCryptoTrustCrossSignedDevices=function(){return this._trustCrossSignedDevices},P.prototype.setCryptoTrustCrossSignedDevices=function(e){this._trustCrossSignedDevices=e;for(const e of this._deviceList.getKnownUserIds()){const t=this._deviceList.getRawStoredDevicesForUser(e);for(const n of Object.keys(t)){const t=this.checkDeviceTrust(e,n);if(!t.isLocallyVerified()&&t.isCrossSigningVerified()){const t=this._deviceList.getStoredDevice(e,n);this.emit("deviceVerificationChanged",e,n,t)}}}},P.prototype.createRecoveryKeyFromPassphrase=async function(t){const n=new e.Olm.PkDecryption;try{const e={};if(t){const o=await Object(S.c)(t);e.passphrase={algorithm:"m.pbkdf2",iterations:o.iterations,salt:o.salt},e.pubkey=n.init_with_private_key(o.key)}else e.pubkey=n.generate_key();const o=n.get_private_key();return{keyInfo:e,encodedPrivateKey:Object(w.b)(o),privateKey:o}}finally{n&&n.free()}},P.prototype.isCrossSigningReady=async function(){const e=this._crossSigningInfo.getId(),t=await this._crossSigningInfo.isStoredInKeyCache()||await this._crossSigningInfo.isStoredInSecretStorage(this._secretStorage);return!(!e||!t)},P.prototype.isSecretStorageReady=async function(){const e=await this._secretStorage.hasKey(),t=await this._crossSigningInfo.isStoredInSecretStorage(this._secretStorage),n=!this._baseApis.getKeyBackupEnabled()||this._baseApis.isKeyBackupKeyStored();return!!(e&&t&&n)},P.prototype.bootstrapCrossSigning=async function({authUploadDeviceSigningKeys:e,setupNewCrossSigning:t}={}){c.a.log("Bootstrapping cross-signing");const n=this._baseApis._cryptoCallbacks,o=new f.a(this._baseApis.store.accountData,n),r=new g.a(this._userId,o.crossSigningCallbacks,o.crossSigningCallbacks),i=async()=>{r.resetKeys(),await this._signObject(r.keys.master),o.addCrossSigningKeys(e,r.keys);const t=this._deviceList.getStoredDevice(this._userId,this._deviceId),n=await r.signDevice(this._userId,t);o.addKeySignature(this._userId,this._deviceId,n),this.backupInfo&&(await r.signObject(this.backupInfo.auth_data,"master"),o.addSessionBackup(this.backupInfo))},a=this._crossSigningInfo.getId(),s=await this._crossSigningInfo.isStoredInKeyCache(),l=await this._crossSigningInfo.isStoredInSecretStorage(this._secretStorage),d=s||l;c.a.log({setupNewCrossSigning:t,publicKeysOnDevice:a,privateKeysInCache:s,privateKeysInStorage:l,privateKeysExistSomewhere:d}),!d||t?(c.a.log("Cross-signing private keys not found locally or in secret storage, creating new keys"),await i()):a&&s?c.a.log("Cross-signing public keys trusted and private keys found locally"):l&&(c.a.log("Cross-signing private keys not found locally, but they are available in secret storage, reading storage and caching locally"),await this.checkOwnCrossSigningTrust({allowPrivateKeyRequests:!0}));const u=o.crossSigningCallbacks.privateKeys;if(u.size&&!this._baseApis._cryptoCallbacks.saveCrossSigningKeys){const e=new _.b(o.accountDataClientAdapter,o.ssssCryptoCallbacks);await e.hasKey()&&(c.a.log("Storing new cross-signing private keys in secret storage"),await g.a.storeInSecretStorage(u,e))}const h=o.buildOperation();await h.apply(this),await o.persist(this),c.a.log("Cross-signing ready")},P.prototype.bootstrapSecretStorage=async function({createSecretStorageKey:e=(async()=>({})),keyBackupInfo:t,setupNewKeyBackup:n,setupNewSecretStorage:o,getKeyBackupPassphrase:r}={}){c.a.log("Bootstrapping Secure Secret Storage");const i=this._baseApis._cryptoCallbacks,a=new f.a(this._baseApis.store.accountData,i),s=new _.b(a.accountDataClientAdapter,a.ssssCryptoCallbacks);let l=null;const d=async(e,t)=>{e=e||{},t&&(e.key=t);const{keyId:n,keyInfo:o}=await s.addKey(_.a,e);return t&&a.ssssCryptoCallbacks.addPrivateKey(n,o,t),await s.setDefaultKeyId(n),n},h=async(e,t)=>{if(!t.mac){const n=await this._baseApis._cryptoCallbacks.getSecretStorageKey({keys:{[e]:t}},"");if(n){const o=n[1];a.ssssCryptoCallbacks.addPrivateKey(e,t,o);const{iv:r,mac:i}=await _.b._calculateKeyCheck(o);t.iv=r,t.mac=i,await a.setAccountData("m.secret_storage.key."+e,t)}}},p=async e=>{if(this._crossSigningInfo.getId()&&await this._crossSigningInfo.isStoredInKeyCache("master"))try{c.a.log("Adding cross-signing signature to key backup"),await this._crossSigningInfo.signObject(e,"master")}catch(e){c.a.error("Signing key backup with cross-signing keys failed",e)}else c.a.warn("Cross-signing keys not available, skipping signature on key backup")},m=await this.getSecretStorageKey(),[b,v]=m||[null,null],y=!o&&v&&v.algorithm===_.a;if(c.a.log({keyBackupInfo:t,setupNewKeyBackup:n,setupNewSecretStorage:o,storageExists:y,oldKeyInfo:v}),y||t)if(!y&&t){c.a.log("Secret storage does not exist, using key backup key");const e=await this.getSessionBackupPrivateKey()||await r(),n={};t.auth_data.private_key_salt&&t.auth_data.private_key_iterations&&(n.passphrase={algorithm:"m.pbkdf2",iterations:t.auth_data.private_key_iterations,salt:t.auth_data.private_key_salt,bits:256}),l=await d(n,e),await s.store("m.megolm_backup.v1",u.encodeBase64(e),[l]),await p(t.auth_data),a.addSessionBackup(t)}else c.a.log("Secret storage exists"),v&&v.algorithm===_.a&&await h(b,v);else{c.a.log("Secret storage does not exist, creating new storage key");const{keyInfo:t,privateKey:n}=await e();l=await d(t,n)}if(!this._baseApis._cryptoCallbacks.saveCrossSigningKeys&&await this.isCrossSigningReady()&&(l||!await this._crossSigningInfo.isStoredInSecretStorage(s))){c.a.log("Copying cross-signing private keys from cache to secret storage");const e=await this._crossSigningInfo.getCrossSigningKeysFromCache();await g.a.storeInSecretStorage(e,s)}if(n&&!t){c.a.log("Creating new message key backup version");const e=await this._baseApis.prepareKeyBackupVersion(null,{secureSecretStorage:!1}),t=Object(w.a)(e.recovery_key);await s.store("m.megolm_backup.v1",u.encodeBase64(t));const n={algorithm:e.algorithm,auth_data:e.auth_data};await p(n.auth_data),await this._signObject(n.auth_data),a.addSessionBackup(n)}const E=await s.get("m.megolm_backup.v1");if(E){c.a.info("Got session backup key from secret storage: caching");const e=L(E);e&&await s.store("m.megolm_backup.v1",e,[l||b]);const t=new Uint8Array(u.decodeBase64(e||E));await a.addSessionBackupPrivateKeyToCache(t)}const S=a.buildOperation();await S.apply(this),await a.persist(this),c.a.log("Secure Secret Storage ready")},P.prototype.addSecretStorageKey=function(e,t,n){return this._secretStorage.addKey(e,t,n)},P.prototype.hasSecretStorageKey=function(e){return this._secretStorage.hasKey(e)},P.prototype.getSecretStorageKey=function(e){return this._secretStorage.getKey(e)},P.prototype.storeSecret=function(e,t,n){return this._secretStorage.store(e,t,n)},P.prototype.getSecret=function(e){return this._secretStorage.get(e)},P.prototype.isSecretStored=function(e,t){return this._secretStorage.isStored(e,t)},P.prototype.requestSecret=function(e,t){return t||(t=Object.keys(this._deviceList.getRawStoredDevicesForUser(this._userId))),this._secretStorage.request(e,t)},P.prototype.getDefaultSecretStorageKeyId=function(){return this._secretStorage.getDefaultKeyId()},P.prototype.setDefaultSecretStorageKeyId=function(e){return this._secretStorage.setDefaultKeyId(e)},P.prototype.checkSecretStorageKey=function(e,t){return this._secretStorage.checkKey(e,t)},P.prototype.checkSecretStoragePrivateKey=function(t,n){let o=null;try{o=new e.Olm.PkDecryption;return o.init_with_private_key(t)===n}finally{o&&o.free()}},P.prototype.getSessionBackupPrivateKey=async function(){let e=await new Promise(e=>{this._cryptoStore.doTxn("readonly",[v.a.STORE_ACCOUNT],t=>{this._cryptoStore.getSecretStorePrivateKey(t,e,"m.megolm_backup.v1")})});if(e&&"string"==typeof e&&(e=new Uint8Array(u.decodeBase64(L(e)||e)),await this.storeSessionBackupPrivateKey(e)),e&&e.ciphertext){const t=o.from(this._olmDevice._pickleKey),n=await Object(R.a)(e,t,"m.megolm_backup.v1");e=u.decodeBase64(n)}return e},P.prototype.storeSessionBackupPrivateKey=async function(e){if(!(e instanceof Uint8Array))throw new Error("storeSessionBackupPrivateKey expects Uint8Array, got "+e);const t=o.from(this._olmDevice._pickleKey);return e=await Object(R.b)(u.encodeBase64(e),t,"m.megolm_backup.v1"),this._cryptoStore.doTxn("readwrite",[v.a.STORE_ACCOUNT],t=>{this._cryptoStore.storeSecretStorePrivateKey(t,"m.megolm_backup.v1",e)})},P.prototype.checkCrossSigningPrivateKey=function(t,n){let o=null;try{o=new e.Olm.PkSigning;return o.init_with_seed(t)===n}finally{o&&o.free()}},P.prototype._afterCrossSigningLocalKeyChange=async function(){c.a.info("Starting cross-signing key change post-processing");const e=this._deviceList.getStoredDevice(this._userId,this._deviceId),t=await this._crossSigningInfo.signDevice(this._userId,e);c.a.info("Starting background key sig upload for "+this._deviceId);const n=({shouldEmit:e})=>this._baseApis.uploadKeySignatures({[this._userId]:{[this._deviceId]:t}}).then(t=>{const{failures:o}=t||{};if(Object.keys(o||[]).length>0)throw e&&this._baseApis.emit("crypto.keySignatureUploadFailure",o,"_afterCrossSigningLocalKeyChange",n),new k.c("Key upload failed",{failures:o});c.a.info("Finished background key sig upload for "+this._deviceId)}).catch(e=>{c.a.error("Error during background key sig upload for "+this._deviceId,e)});n({shouldEmit:!0});const o=this._baseApis._cryptoCallbacks.shouldUpgradeDeviceVerifications;if(o){c.a.info("Starting device verification upgrade");const e={};for(const[t,n]of Object.entries(this._deviceList._crossSigningInfo)){const o=await this._checkForDeviceVerificationUpgrade(t,g.a.fromStorage(n,t));o&&(e[t]=o)}if(Object.keys(e).length>0){c.a.info(`Found ${Object.keys(e).length} verif users to upgrade`);try{const t=await o({users:e});if(t)for(const n of t)n in e&&await this._baseApis.setDeviceVerified(n,e[n].crossSigningInfo.getId())}catch(e){c.a.log("shouldUpgradeDeviceVerifications threw an error: not upgrading",e)}}c.a.info("Finished device verification upgrade")}c.a.info("Finished cross-signing key change post-processing")},P.prototype._checkForDeviceVerificationUpgrade=async function(e,t){const n=this._crossSigningInfo.checkUserTrust(t);if(t.firstUse&&!n.verified){const n=this._deviceList.getRawStoredDevicesForUser(e),o=await this._checkForValidDeviceSignature(e,t.keys.master,n);if(o.length)return{devices:o.map(e=>p.a.fromStorage(n[e],e)),crossSigningInfo:t}}},P.prototype._checkForValidDeviceSignature=async function(e,t,n){const o=[];if(n&&t.signatures&&t.signatures[e])for(const r of Object.keys(t.signatures[e])){const[,i]=r.split(":",2);if(i in n&&n[i].verified===A.VERIFIED)try{await u.verifySignature(this._olmDevice,t,e,i,n[i].keys[r]),o.push(i)}catch(e){}}return o},P.prototype.getCrossSigningId=function(e){return this._crossSigningInfo.getId(e)},P.prototype.getStoredCrossSigningForUser=function(e){return this._deviceList.getStoredCrossSigningForUser(e)},P.prototype.checkUserTrust=function(e){const t=this._deviceList.getStoredCrossSigningForUser(e);return t?this._crossSigningInfo.checkUserTrust(t):new g.c(!1,!1,!1)},P.prototype.checkDeviceTrust=function(e,t){const n=this._deviceList.getStoredDevice(e,t);return this._checkDeviceInfoTrust(e,n)},P.prototype._checkDeviceInfoTrust=function(e,t){const n=!(!t||!t.isVerified()),o=this._deviceList.getStoredCrossSigningForUser(e);if(t&&o){const r=this._trustCrossSignedDevices||e===this._userId;return this._crossSigningInfo.checkDeviceTrust(o,t,n,r)}return new g.b(!1,!1,n,!1)},P.prototype._onDeviceListUserCrossSigningUpdated=async function(e){if(e===this._userId){const t=this._deviceList.getStoredCrossSigningForUser(e),n=t?t.getId():null,o=this._crossSigningInfo.getId(),r=o!==n;o&&n&&!r?await this.checkOwnCrossSigningTrust():(this._storeTrustedSelfKeys(null),this.emit("crossSigning.keysChanged",{}),this.emit("userTrustStatusChanged",this._userId,this.checkUserTrust(e)))}else{await this._checkDeviceVerifications(e);const t=this._deviceList.getStoredCrossSigningForUser(e);t&&(t.updateCrossSigningVerifiedBefore(this.checkUserTrust(e).isCrossSigningVerified()),this._deviceList.setRawStoredCrossSigningForUser(e,t.toStorage())),this.emit("userTrustStatusChanged",e,this.checkUserTrust(e))}},P.prototype.checkOwnCrossSigningTrust=async function({allowPrivateKeyRequests:e=!1}={}){const t=this._userId;await this.downloadKeys([this._userId]);const n=await this._crossSigningInfo.getCrossSigningKeysFromCache(),o=this._deviceList.getStoredCrossSigningForUser(t);if(!o)return void c.a.error("Got cross-signing update event for user "+t+" but no new cross-signing information found!");const r=o.getId(),i=this._crossSigningInfo.getId()!==r,a=o.getId()&&!n.has("master");if(i&&c.a.info("Got new master public key",r),e&&(i||a)){c.a.info("Attempting to retrieve cross-signing master private key");let e=null;try{e=(await this._crossSigningInfo.getCrossSigningKey("master",r))[1],c.a.info("Got cross-signing master private key")}finally{e&&e.free()}}const s=this._crossSigningInfo.getId("self_signing"),l=this._crossSigningInfo.getId("user_signing");this._storeTrustedSelfKeys(o.keys);const d=s!==o.getId("self_signing"),u=l!==o.getId("user_signing"),h=o.getId("self_signing")&&!n.has("self_signing"),p=o.getId("user_signing")&&!n.has("user_signing"),m={};if(d&&c.a.info("Got new self-signing key",o.getId("self_signing")),e&&(d||h)){c.a.info("Attempting to retrieve cross-signing self-signing private key");let e=null;try{e=(await this._crossSigningInfo.getCrossSigningKey("self_signing",o.getId("self_signing")))[1],c.a.info("Got cross-signing self-signing private key")}finally{e&&e.free()}const t=this._deviceList.getStoredDevice(this._userId,this._deviceId),n=await this._crossSigningInfo.signDevice(this._userId,t);m[this._deviceId]=n}if(u&&c.a.info("Got new user-signing key",o.getId("user_signing")),e&&(u||p)){c.a.info("Attempting to retrieve cross-signing user-signing private key");let e=null;try{e=(await this._crossSigningInfo.getCrossSigningKey("user_signing",o.getId("user_signing")))[1],c.a.info("Got cross-signing user-signing private key")}finally{e&&e.free()}}if(i){const e=this._crossSigningInfo.keys.master;await this._signObject(e);const t=e.signatures[this._userId]["ed25519:"+this._deviceId];m[this._crossSigningInfo.getId()]=Object.assign({},e,{signatures:{[this._userId]:{["ed25519:"+this._deviceId]:t}}})}const g=Object.keys(m);if(g.length){const e=({shouldEmit:t})=>(c.a.info("Starting background key sig upload for "+g),this._baseApis.uploadKeySignatures({[this._userId]:m}).then(n=>{const{failures:o}=n||{};if(c.a.info("Finished background key sig upload for "+g),Object.keys(o||[]).length>0)throw t&&this._baseApis.emit("crypto.keySignatureUploadFailure",o,"checkOwnCrossSigningTrust",e),new k.c("Key upload failed",{failures:o})}).catch(e=>{c.a.error("Error during background key sig upload for "+g,e)}));e({shouldEmit:!0})}this.emit("userTrustStatusChanged",t,this.checkUserTrust(t)),i&&(this._baseApis.emit("crossSigning.keysChanged",{}),await this._afterCrossSigningLocalKeyChange()),await this.checkKeyBackup()},P.prototype._storeTrustedSelfKeys=async function(e){e?this._crossSigningInfo.setKeys(e):this._crossSigningInfo.clearKeys(),await this._cryptoStore.doTxn("readwrite",[v.a.STORE_ACCOUNT],e=>{this._cryptoStore.storeCrossSigningKeys(e,this._crossSigningInfo.keys)})},P.prototype._checkDeviceVerifications=async function(e){const t=this._baseApis._cryptoCallbacks.shouldUpgradeDeviceVerifications;if(t){if(c.a.info("Starting device verification upgrade for "+e),this._crossSigningInfo.keys.user_signing){const n=this._deviceList.getStoredCrossSigningForUser(e);if(n){const o=await this._checkForDeviceVerificationUpgrade(e,n);if(o){(await t({users:{[e]:o}})).includes(e)&&await this._baseApis.setDeviceVerified(e,n.getId())}}}c.a.info("Finished device verification upgrade for "+e)}},P.prototype._checkAndStartKeyBackup=async function(){if(c.a.log("Checking key backup status..."),this._baseApis.isGuest())return c.a.log("Skipping key backup check since user is guest"),this._checkedForBackup=!0,null;let e;try{e=await this._baseApis.getKeyBackupVersion()}catch(e){return c.a.log("Error checking for active key backup",e),404===e.httpStatus&&(this._checkedForBackup=!0),null}this._checkedForBackup=!0;const t=await this.isKeyBackupTrusted(e);return t.usable&&!this.backupInfo?(c.a.log("Found usable key backup v"+e.version+": enabling key backups"),this._baseApis.enableKeyBackup(e)):!t.usable&&this.backupInfo?(c.a.log("No usable key backup: disabling key backup"),this._baseApis.disableKeyBackup()):t.usable||this.backupInfo?t.usable&&this.backupInfo&&(e.version!==this.backupInfo.version?(c.a.log("On backup version "+this.backupInfo.version+" but found version "+e.version+": switching."),this._baseApis.disableKeyBackup(),this._baseApis.enableKeyBackup(e),await this.scheduleAllGroupSessionsForBackup()):c.a.log("Backup version "+e.version+" still current")):c.a.log("No usable key backup: not enabling key backup"),{backupInfo:e,trustInfo:t}},P.prototype.setTrustedBackupPubKey=async function(e){this._sessionStore.setLocalTrustedBackupPubKey(e),await this.checkKeyBackup()},P.prototype.checkKeyBackup=async function(){return this._checkedForBackup=!1,this._checkAndStartKeyBackup()},P.prototype.isKeyBackupTrusted=async function(e){const t={usable:!1,trusted_locally:!1,sigs:[]};if(!(e&&e.algorithm&&e.auth_data&&e.auth_data.public_key&&e.auth_data.signatures))return c.a.info("Key backup is absent or missing required data"),t;const n=this._sessionStore.getLocalTrustedBackupPubKey();e.auth_data.public_key===n&&(c.a.info("Backup public key "+n+" is trusted locally"),t.trusted_locally=!0);const o=e.auth_data.signatures[this._userId]||[];for(const n of Object.keys(o)){const o=n.split(":");if("ed25519"!==o[0]){c.a.log("Ignoring unknown signature type: "+o[0]);continue}const r={deviceId:o[1]},i=this._crossSigningInfo.getId();if(i===r.deviceId){r.crossSigningId=!0;try{await u.verifySignature(this._olmDevice,e.auth_data,this._userId,r.deviceId,i),r.valid=!0}catch(e){c.a.warning("Bad signature from cross signing key "+i,e),r.valid=!1}t.sigs.push(r);continue}const a=this._deviceList.getStoredDevice(this._userId,r.deviceId);if(a){r.device=a,r.deviceTrust=await this.checkDeviceTrust(this._userId,r.deviceId);try{await u.verifySignature(this._olmDevice,e.auth_data,this._userId,a.deviceId,a.getFingerprint()),r.valid=!0}catch(t){c.a.info("Bad signature from key ID "+n+" userID "+this._userId+" device ID "+a.deviceId+" fingerprint: "+a.getFingerprint(),e.auth_data,t),r.valid=!1}}else r.valid=null,c.a.info("Ignoring signature from unknown key "+n);t.sigs.push(r)}return t.usable=t.sigs.some(e=>e.valid&&(e.device&&e.deviceTrust.isVerified()||e.crossSigningId)),t.usable|=t.trusted_locally,t},P.prototype.enableLazyLoading=function(){this._lazyLoadMembers=!0},P.prototype.registerEventHandlers=function(e){const t=this;e.on("RoomMember.membership",(function(e,n,o){try{t._onRoomMembership(e,n,o)}catch(e){c.a.error("Error handling membership change:",e)}})),e.on("toDeviceEvent",t._onToDeviceEvent.bind(t));const n=t._onTimelineEvent.bind(t);e.on("Room.timeline",n),e.on("Event.decrypted",n)},P.prototype.start=function(){this._outgoingRoomKeyRequestManager.start()},P.prototype.stop=function(){this._outgoingRoomKeyRequestManager.stop(),this._deviceList.stop(),this._dehydrationManager.stop()},P.getOlmVersion=function(){return d.a.getOlmVersion()},P.prototype.getDeviceEd25519Key=function(){return this._olmDevice.deviceEd25519Key},P.prototype.getDeviceCurve25519Key=function(){return this._olmDevice.deviceCurve25519Key},P.prototype.setGlobalBlacklistUnverifiedDevices=function(e){this._globalBlacklistUnverifiedDevices=e},P.prototype.getGlobalBlacklistUnverifiedDevices=function(){return this._globalBlacklistUnverifiedDevices},P.prototype.setGlobalErrorOnUnknownDevices=function(e){this._globalErrorOnUnknownDevices=e},P.prototype.getGlobalErrorOnUnknownDevices=function(){return this._globalErrorOnUnknownDevices},P.prototype.uploadDeviceKeys=function(){const e=this,t=e._userId,n=e._deviceId,o={algorithms:e._supportedAlgorithms,device_id:n,keys:e._deviceKeys,user_id:t};return e._signObject(o).then(()=>e._baseApis.uploadKeysRequest({device_keys:o}))},P.prototype.updateOneTimeKeyCount=function(e){if(!isFinite(e))throw new TypeError("Parameter for updateOneTimeKeyCount has to be a number");this._oneTimeKeyCount=e},P.prototype.setNeedsNewFallback=function(e){this._needsNewFallback=!!e},P.prototype.getNeedsNewFallback=function(){return this._needsNewFallback},P.prototype.downloadKeys=function(e,t){return this._deviceList.downloadKeys(e,t)},P.prototype.getStoredDevicesForUser=function(e){return this._deviceList.getStoredDevicesForUser(e)},P.prototype.getStoredDevice=function(e,t){return this._deviceList.getStoredDevice(e,t)},P.prototype.saveDeviceList=function(e){return this._deviceList.saveIfDirty(e)},P.prototype.setDeviceVerification=async function(e,t,n,o,r){void 0===n&&(n=null),void 0===o&&(o=null),void 0===r&&(r=null);const i=this._deviceList.getStoredCrossSigningForUser(e);if(i&&i.getId()===t){if(null!==o||null!==r)throw new Error("Cannot set blocked or known for a cross-signing key");if(!n)throw new Error("Cannot set a cross-signing key as unverified");if(this._crossSigningInfo.getId()||e!==this._crossSigningInfo.userId||(this._storeTrustedSelfKeys(i.keys),this.emit("userTrustStatusChanged",this._userId,this.checkUserTrust(e))),e!==this._userId){c.a.info("Master key "+i.getId()+" for "+e+" marked verified. Signing...");const n=await this._crossSigningInfo.signUser(i);if(n){const o=async({shouldEmit:r})=>{c.a.info("Uploading signature for "+e+"...");const i=await this._baseApis.uploadKeySignatures({[e]:{[t]:n}}),{failures:a}=i||{};if(Object.keys(a||[]).length>0)throw r&&this._baseApis.emit("crypto.keySignatureUploadFailure",a,"setDeviceVerification",o),new k.c("Key upload failed",{failures:a})};await o({shouldEmit:!0})}return n}return i}const a=this._deviceList.getRawStoredDevicesForUser(e);if(!a||!a[t])throw new Error("Unknown device "+e+":"+t);const s=a[t];let l=s.verified;n?l=A.VERIFIED:null!==n&&l==A.VERIFIED&&(l=A.UNVERIFIED),o?l=A.BLOCKED:null!==o&&l==A.BLOCKED&&(l=A.UNVERIFIED);let d=s.known;if(null!==r&&(d=r),s.verified===l&&s.known===d||(s.verified=l,s.known=d,this._deviceList.storeDevicesForUser(e,a),this._deviceList.saveIfDirty()),n&&e===this._userId){let n;c.a.info("Own device "+t+" marked verified: signing");if(this.checkDeviceTrust(e,t).isCrossSigningVerified()?c.a.log(`Own device ${t} already cross-signing verified`):n=await this._crossSigningInfo.signDevice(e,p.a.fromStorage(s,t)),n){const o=async({shouldEmit:r})=>{c.a.info("Uploading signature for "+t);const i=await this._baseApis.uploadKeySignatures({[e]:{[t]:n}}),{failures:a}=i||{};if(Object.keys(a||[]).length>0)throw r&&this._baseApis.emit("crypto.keySignatureUploadFailure",a,"setDeviceVerification",o),new k.c("Key upload failed",{failures:a})};await o({shouldEmit:!0})}}const u=p.a.fromStorage(s,t);return this.emit("deviceVerificationChanged",e,t,u),u},P.prototype.findVerificationRequestDMInProgress=function(e){return this._inRoomVerificationRequests.findRequestInProgress(e)},P.prototype.getVerificationRequestsToDeviceInProgress=function(e){return this._toDeviceVerificationRequests.getRequestsInProgress(e)},P.prototype.requestVerificationDM=function(e,t){const n=this._inRoomVerificationRequests.findRequestInProgress(t);if(n)return Promise.resolve(n);const o=new T.a(this._baseApis,t,e);return this._requestVerificationWithChannel(e,o,this._inRoomVerificationRequests)},P.prototype.requestVerification=function(e,t){t||(t=Object.keys(this._deviceList.getRawStoredDevicesForUser(e)));const n=this._toDeviceVerificationRequests.findRequestInProgress(e,t);if(n)return Promise.resolve(n);const o=new x.a(this._baseApis,e,t,x.a.makeTransactionId());return this._requestVerificationWithChannel(e,o,this._toDeviceVerificationRequests)},P.prototype._requestVerificationWithChannel=async function(e,t,n){let o=new C.k(t,this._verificationMethods,this._baseApis);t.transactionId&&n.setRequestByChannel(t,o),await o.sendRequest();const r=n.getRequestByChannel(t);return r?o=r:(c.a.log(`Crypto: adding new request to requestsByTxnId with id ${t.transactionId} ${t.roomId}`),n.setRequestByChannel(t,o)),o},P.prototype.beginKeyVerification=function(e,t,n,o=null){let r;if(o){if(r=this._toDeviceVerificationRequests.getRequestBySenderAndTxnId(t,o),!r)throw new Error(`No request found for user ${t} with transactionId `+o)}else{o=x.a.makeTransactionId();const e=new x.a(this._baseApis,t,[n],o,n);r=new C.k(e,this._verificationMethods,this._baseApis),this._toDeviceVerificationRequests.setRequestBySenderAndTxnId(t,o,r)}return r.beginKeyVerification(e,{userId:t,deviceId:n})},P.prototype.legacyDeviceVerification=async function(e,t,n){const o=x.a.makeTransactionId(),r=new x.a(this._baseApis,e,[t],o,t),i=new C.k(r,this._verificationMethods,this._baseApis);this._toDeviceVerificationRequests.setRequestBySenderAndTxnId(e,o,i);const a=i.beginKeyVerification(n,{userId:e,deviceId:t});return await Promise.race([a.verify(),i.waitFor(e=>e.started)]),i},P.prototype.getOlmSessionsForUser=async function(e){const t=this.getStoredDevicesForUser(e)||[],n={};for(let e=0;e<t.length;++e){const o=t[e],r=o.getIdentityKey(),i=await this._olmDevice.getSessionInfoForDevice(r);n[o.deviceId]={deviceIdKey:r,sessions:i}}return n},P.prototype.getEventSenderDeviceInfo=function(e){const t=e.getSenderKey(),n=e.getWireContent().algorithm;if(!t||!n)return null;if(e.getForwardingCurve25519KeyChain().length>0)return null;if(e.isKeySourceUntrusted())return null;const o=this._deviceList.getDeviceByIdentityKey(n,t);if(null===o)return null;const r=e.getClaimedEd25519Key();return r?r!==o.getFingerprint()?(c.a.warn("Event "+e.getId()+" claims ed25519 key "+r+" but sender device has key "+o.getFingerprint()),null):o:(c.a.warn("Event "+e.getId()+" claims no ed25519 key: cannot verify sending device"),null)},P.prototype.getEventEncryptionInfo=function(e){const t={};if(t.senderKey=e.getSenderKey(),t.algorithm=e.getWireContent().algorithm,!t.senderKey||!t.algorithm)return t.encrypted=!1,t;t.encrypted=!0;e.getForwardingCurve25519KeyChain().length>0||e.isKeySourceUntrusted()?t.authenticated=!1:t.authenticated=!0,t.sender=this._deviceList.getDeviceByIdentityKey(t.algorithm,t.senderKey);const n=e.getClaimedEd25519Key();return n||(c.a.warn("Event "+e.getId()+" claims no ed25519 key: cannot verify sending device"),t.mismatchedSender=!0),t.sender&&n!==t.sender.getFingerprint()&&(c.a.warn("Event "+e.getId()+" claims ed25519 key "+n+"but sender device has key "+t.sender.getFingerprint()),t.mismatchedSender=!0),t},P.prototype.forceDiscardSession=function(e){const t=this._roomEncryptors[e];if(void 0===t)throw new Error("Room not encrypted");if(void 0===t.forceDiscardSession)throw new Error("Room encryption algorithm doesn't support session discarding");t.forceDiscardSession()},P.prototype.setRoomEncryption=async function(e,t,n){if(!t.algorithm)return void c.a.log("Ignoring setRoomEncryption with no algorithm");const o=this._roomList.getRoomEncryption(e);if(o&&JSON.stringify(o)!=JSON.stringify(t))return void c.a.error("Ignoring m.room.encryption event which requests a change of config in "+e);if(this._roomEncryptors[e])return;let r=null;o||(r=this._roomList.setRoomEncryption(e,t));const i=m.c[t.algorithm];if(!i)throw new Error("Unable to encrypt with "+t.algorithm);const a=new i({userId:this._userId,deviceId:this._deviceId,crypto:this,olmDevice:this._olmDevice,baseApis:this._baseApis,roomId:e,config:t});this._roomEncryptors[e]=a,r&&await r,this._lazyLoadMembers?c.a.log("Enabling encryption in "+e):(c.a.log("Enabling encryption in "+e+"; starting to track device lists for all users therein"),await this.trackRoomDevices(e),this.inhibitDeviceQuery||this._deviceList.refreshOutdatedDeviceLists())},P.prototype.trackRoomDevices=function(e){const t=async()=>{if(!this._roomEncryptors[e])return;const t=this._clientStore.getRoom(e);if(!t)throw new Error("Unable to start tracking devices in unknown room "+e);c.a.log(`Starting to track devices for room ${e} ...`);(await t.getEncryptionTargetMembers()).forEach(e=>{this._deviceList.startTrackingDeviceList(e.userId)})};let n=this._roomDeviceTrackingState[e];return n||(n=t(),this._roomDeviceTrackingState[e]=n.catch(t=>{throw this._roomDeviceTrackingState[e]=null,t})),n},P.prototype.ensureOlmSessionsForUsers=function(e){const t={};for(let n=0;n<e.length;++n){const o=e[n];t[o]=[];const r=this.getStoredDevicesForUser(o)||[];for(let e=0;e<r.length;++e){const n=r[e];n.getIdentityKey()!=this._olmDevice.deviceCurve25519Key&&(n.verified!=A.BLOCKED&&t[o].push(n))}}return u.ensureOlmSessionsForDevices(this._olmDevice,this._baseApis,t)},P.prototype.exportRoomKeys=async function(){const e=[];return await this._cryptoStore.doTxn("readonly",[v.a.STORE_INBOUND_GROUP_SESSIONS],t=>{this._cryptoStore.getAllEndToEndInboundGroupSessions(t,t=>{if(null===t)return;const n=this._olmDevice.exportInboundGroupSession(t.senderKey,t.sessionId,t.sessionData);delete n.first_known_index,n.algorithm=u.MEGOLM_ALGORITHM,e.push(n)})}),e},P.prototype.importRoomKeys=function(e,t={}){let n=0,o=0;const r=e.length;function i(){t.progressCallback({stage:"load_keys",successes:n,failures:o,total:r})}return Promise.all(e.map(e=>{if(!e.room_id||!e.algorithm)return c.a.warn("ignoring room key entry with missing fields",e),o++,t.progressCallback&&i(),null;return this._getRoomDecryptor(e.room_id,e.algorithm).importRoomKey(e,t).finally(e=>{n++,t.progressCallback&&i()})}))},P.prototype.scheduleKeyBackupSend=async function(e=1e4){if(!this._sendingBackups){this._sendingBackups=!0;try{const t=Math.random()*e;await Object(l.B)(t);let n=0;for(;;){if(!this.backupKey)return;try{if(0===await this._backupPendingKeys(200))return;n=0}catch(e){if(n++,c.a.log("Key backup request failed",e),e.data&&("M_NOT_FOUND"==e.data.errcode||"M_WRONG_ROOM_KEYS_VERSION"==e.data.errcode))throw await this.checkKeyBackup(),this.emit("crypto.keyBackupFailed",e.data.errcode),e}n&&await Object(l.B)(1e3*Math.pow(2,Math.min(n-1,4)))}}finally{this._sendingBackups=!1}}},P.prototype._backupPendingKeys=async function(e){const t=await this._cryptoStore.getSessionsNeedingBackup(e);if(!t.length)return 0;let n=await this._cryptoStore.countSessionsNeedingBackup();this.emit("crypto.keyBackupSessionsRemaining",n);const o={};for(const e of t){const t=e.sessionData.room_id;void 0===o[t]&&(o[t]={sessions:{}});const n=await this._olmDevice.exportInboundGroupSession(e.senderKey,e.sessionId,e.sessionData);n.algorithm=u.MEGOLM_ALGORITHM,delete n.session_id,delete n.room_id;const r=n.first_known_index;delete n.first_known_index;const i=this.backupKey.encrypt(JSON.stringify(n)),a=(n.forwarding_curve25519_key_chain||[]).length,s=this._deviceList.getUserByIdentityKey(u.MEGOLM_ALGORITHM,e.senderKey),c=this._deviceList.getDeviceByIdentityKey(u.MEGOLM_ALGORITHM,e.senderKey),l=this._checkDeviceInfoTrust(s,c).isVerified();o[t].sessions[e.sessionId]={first_message_index:r,forwarded_count:a,is_verified:l,session_data:i}}return await this._baseApis.sendKeyBackup(void 0,void 0,this.backupInfo.version,{rooms:o}),await this._cryptoStore.unmarkSessionsNeedingBackup(t),n=await this._cryptoStore.countSessionsNeedingBackup(),this.emit("crypto.keyBackupSessionsRemaining",n),t.length},P.prototype.backupGroupSession=async function(e,t,n,o,r,i,a){await this._cryptoStore.markSessionsNeedingBackup([{senderKey:t,sessionId:o}]),this.backupInfo&&this.scheduleKeyBackupSend()},P.prototype.scheduleAllGroupSessionsForBackup=async function(){await this.flagAllGroupSessionsForBackup(),this.scheduleKeyBackupSend(0)},P.prototype.flagAllGroupSessionsForBackup=async function(){await this._cryptoStore.doTxn("readwrite",[v.a.STORE_INBOUND_GROUP_SESSIONS,v.a.STORE_BACKUP],e=>{this._cryptoStore.getAllEndToEndInboundGroupSessions(e,t=>{null!==t&&this._cryptoStore.markSessionsNeedingBackup([t],e)})});const e=await this._cryptoStore.countSessionsNeedingBackup();return this.emit("crypto.keyBackupSessionsRemaining",e),e},P.prototype.countSessionsNeedingBackup=function(){return this._cryptoStore.countSessionsNeedingBackup()},P.prototype.prepareToEncrypt=function(e){const t=e.roomId,n=this._roomEncryptors[t];n&&n.prepareToEncrypt(e)},P.prototype.encryptEvent=async function(e,t){if(!t)throw new Error("Cannot send encrypted messages in unknown rooms");const n=e.getRoomId(),o=this._roomEncryptors[n];if(!o)throw new Error("Room was previously configured to use encryption, but is no longer. Perhaps the homeserver is hiding the configuration event.");this._roomDeviceTrackingState[n]||this.trackRoomDevices(n),await this._roomDeviceTrackingState[n];let r=e.getContent();const i=r["m.relates_to"];i&&(r=Object.assign({},r),delete r["m.relates_to"]);const a=await o.encryptMessage(t,e.getType(),r);i&&(a["m.relates_to"]=i),e.makeEncrypted("m.room.encrypted",a,this._olmDevice.deviceCurve25519Key,this._olmDevice.deviceEd25519Key)},P.prototype.decryptEvent=async function(e){if(e.isRedacted()){const t=new I.b(e.getUnsigned().redacted_because),n=await this.decryptEvent(t);return{clearEvent:{room_id:e.getRoomId(),type:"m.room.message",content:{},unsigned:{redacted_because:n.clearEvent}}}}{const t=e.getWireContent(),n=this._getRoomDecryptor(e.getRoomId(),t.algorithm);return await n.decryptEvent(e)}},P.prototype.handleDeviceListChanges=async function(e,t){e.oldSyncToken&&await this._evalDeviceListChanges(t)},P.prototype.requestRoomKey=function(e,t,n=!1){return this._outgoingRoomKeyRequestManager.queueRoomKeyRequest(e,t,n).then(()=>{this._sendKeyRequestsImmediately&&this._outgoingRoomKeyRequestManager.sendQueuedRequests()}).catch(e=>{c.a.error("Error requesting key for event",e)})},P.prototype.cancelRoomKeyRequest=function(e){this._outgoingRoomKeyRequestManager.cancelRoomKeyRequest(e).catch(e=>{c.a.warn("Error clearing pending room key requests",e)})},P.prototype.cancelAndResendAllOutgoingKeyRequests=function(){return this._outgoingRoomKeyRequestManager.cancelAndResendAllOutgoingRequests()},P.prototype.onCryptoEvent=async function(e){const t=e.getRoomId(),n=e.getContent();try{await this.setRoomEncryption(t,n,!0)}catch(e){c.a.error("Error configuring encryption in room "+t+":",e)}},P.prototype.onSyncWillProcess=async function(e){e.oldSyncToken||(c.a.log("Initial sync performed - resetting device tracking state"),this._deviceList.stopTrackingAllDeviceLists(),this._deviceList.startTrackingDeviceList(this._userId),this._roomDeviceTrackingState={}),this._sendKeyRequestsImmediately=!1},P.prototype.onSyncCompleted=async function(e){const t=e.nextSyncToken;this._deviceList.setSyncToken(e.nextSyncToken),this._deviceList.saveIfDirty(),this._deviceList.lastKnownSyncToken=t,this._deviceList.startTrackingDeviceList(this._userId),this._deviceList.refreshOutdatedDeviceLists(),e.catchingUp||(j(this),this._processReceivedRoomKeyRequests(),this._outgoingRoomKeyRequestManager.sendQueuedRequests(),this._sendKeyRequestsImmediately=!0)},P.prototype._evalDeviceListChanges=async function(e){if(e.changed&&Array.isArray(e.changed)&&e.changed.forEach(e=>{this._deviceList.invalidateUserDeviceList(e)}),e.left&&Array.isArray(e.left)&&e.left.length){const t=new Set(await this._getTrackedE2eUsers());e.left.forEach(e=>{t.has(e)||this._deviceList.stopTrackingDeviceList(e)})}},P.prototype._getTrackedE2eUsers=async function(){const e=[];for(const t of this._getTrackedE2eRooms()){const n=await t.getEncryptionTargetMembers();for(const t of n)e.push(t.userId)}return e},P.prototype._getTrackedE2eRooms=function(){return this._clientStore.getRooms().filter(e=>{if(!this._roomEncryptors[e.roomId])return!1;if(!this._roomDeviceTrackingState[e.roomId])return!1;const t=e.getMyMembership();return"join"===t||"invite"===t})},P.prototype._onToDeviceEvent=function(e){try{c.a.log(`received to_device ${e.getType()} from: ${e.getSender()} id: ${e.getId()}`),"m.room_key"==e.getType()||"m.forwarded_room_key"==e.getType()?this._onRoomKeyEvent(e):"m.room_key_request"==e.getType()?this._onRoomKeyRequestEvent(e):"m.secret.request"===e.getType()?this._secretStorage._onRequestReceived(e):"m.secret.send"===e.getType()?this._secretStorage._onSecretReceived(e):"org.matrix.room_key.withheld"===e.getType()?this._onRoomKeyWithheldEvent(e):e.getContent().transaction_id?this._onKeyVerificationMessage(e):"m.bad.encrypted"===e.getContent().msgtype?this._onToDeviceBadEncrypted(e):e.isBeingDecrypted()&&e.once("Event.decrypted",e=>{this._onToDeviceEvent(e)})}catch(e){c.a.error("Error handling toDeviceEvent:",e)}},P.prototype._onRoomKeyEvent=function(e){const t=e.getContent();if(!t.room_id||!t.algorithm)return void c.a.error("key event is missing fields");this._checkedForBackup||this._checkAndStartKeyBackup();this._getRoomDecryptor(t.room_id,t.algorithm).onRoomKeyEvent(e)},P.prototype._onRoomKeyWithheldEvent=function(e){const t=e.getContent();if(!(("m.no_olm"===t.code||t.room_id&&t.session_id)&&t.algorithm&&t.sender_key))return void c.a.error("key withheld event is missing fields");c.a.info(`Got room key withheld event from ${e.getSender()} (${t.sender_key}) for ${t.algorithm}/${t.room_id}/${t.session_id} with reason ${t.code} (${t.reason})`);const n=this._getRoomDecryptor(t.room_id,t.algorithm);if(n.onRoomKeyWithheldEvent&&n.onRoomKeyWithheldEvent(e),!t.room_id){const e=this._getRoomDecryptors(t.algorithm);for(const n of e)n.retryDecryptionFromSender(t.sender_key)}},P.prototype._onKeyVerificationMessage=function(e){if(!x.a.validateEvent(e,this._baseApis))return;this._handleVerificationEvent(e,this._toDeviceVerificationRequests,e=>{if(!x.a.canCreateRequest(x.a.getEventType(e)))return;const t=e.getContent(),n=t&&t.from_device;if(!n)return;const o=e.getSender(),r=new x.a(this._baseApis,o,[n]);return new C.k(r,this._verificationMethods,this._baseApis)})},P.prototype._onTimelineEvent=function(e,t,n,o,{liveEvent:r}={}){if(!T.a.validateEvent(e,this._baseApis))return;this._handleVerificationEvent(e,this._inRoomVerificationRequests,e=>{const t=new T.a(this._baseApis,e.getRoomId());return new C.k(t,this._verificationMethods,this._baseApis)},r)},P.prototype._handleVerificationEvent=async function(e,t,n,o=!0){let r=t.getRequest(e),i=!1;if(!r){if(r=n(e),!r)return void c.a.log("Crypto: could not find VerificationRequest for "+e.getType()+", and could not create one, so ignoring.");i=!0,t.setRequest(e,r)}e.setVerificationRequest(r);try{await r.channel.handleEvent(e,r,o)}catch(e){c.a.error("error while handling verification event: "+e.message)}i&&!r.initiatedByMe&&!r.invalid&&!r.observeOnly&&this._baseApis.emit("crypto.verification.request",r)},P.prototype._onToDeviceBadEncrypted=async function(e){const t=e.getWireContent(),n=e.getSender(),o=t.algorithm,r=t.sender_key,i=()=>{const e=this._getRoomDecryptors(u.MEGOLM_ALGORITHM);for(const t of e)t.retryDecryptionFromSender(r)};if(void 0===n||void 0===r||void 0===r)return;this._lastNewSessionForced[n]=this._lastNewSessionForced[n]||{};const a=this._lastNewSessionForced[n][r]||0;if(a+36e5>Date.now())return c.a.debug("New session already forced with device "+n+":"+r+" at "+a+": not forcing another"),await this._olmDevice.recordSessionProblem(r,"wedged",!0),void i();let s=this._deviceList.getDeviceByIdentityKey(o,r);if(!s&&(await this.downloadKeys([n],!1),s=this._deviceList.getDeviceByIdentityKey(o,r),!s))return c.a.info("Couldn't find device for identity key "+r+": not re-establishing session"),await this._olmDevice.recordSessionProblem(r,"wedged",!1),void i();const l={};l[n]=[s],await u.ensureOlmSessionsForDevices(this._olmDevice,this._baseApis,l,!0),this._lastNewSessionForced[n][r]=Date.now();const d={algorithm:u.OLM_ALGORITHM,sender_key:this._olmDevice.deviceCurve25519Key,ciphertext:{}};await u.encryptMessageForDevice(d.ciphertext,this._userId,this._deviceId,this._olmDevice,n,s,{type:"m.dummy"}),await this._olmDevice.recordSessionProblem(r,"wedged",!0),i(),await this._baseApis.sendToDevice("m.room.encrypted",{[n]:{[s.deviceId]:d}});const h=await this._outgoingRoomKeyRequestManager.getOutgoingSentRoomKeyRequest(n,s.deviceId);for(const e of h)this.requestRoomKey(e.requestBody,e.recipients,!0)},P.prototype._onRoomMembership=function(e,t,n){const o=t.roomId,r=this._roomEncryptors[o];r&&(this._roomDeviceTrackingState[o]&&("join"==t.membership?(c.a.log("Join event for "+t.userId+" in "+o),this._deviceList.startTrackingDeviceList(t.userId)):"invite"==t.membership&&this._clientStore.getRoom(o).shouldEncryptForInvitedMembers()&&(c.a.log("Invite event for "+t.userId+" in "+o),this._deviceList.startTrackingDeviceList(t.userId))),r.onRoomMembership(e,t,n))},P.prototype._onRoomKeyRequestEvent=function(e){const t=e.getContent();if("request"===t.action){const t=new B(e);this._receivedRoomKeyRequests.push(t)}else if("request_cancellation"===t.action){const t=new q(e);this._receivedRoomKeyRequestCancellations.push(t)}},P.prototype._processReceivedRoomKeyRequests=async function(){if(!this._processingRoomKeyRequests){this._processingRoomKeyRequests=!0;try{const e=this._receivedRoomKeyRequests;this._receivedRoomKeyRequests=[];const t=this._receivedRoomKeyRequestCancellations;this._receivedRoomKeyRequestCancellations=[],await Promise.all(e.map(e=>this._processReceivedRoomKeyRequest(e))),await Promise.all(t.map(e=>this._processReceivedRoomKeyRequestCancellation(e)))}catch(e){c.a.error("Error processing room key requsts: "+e)}finally{this._processingRoomKeyRequests=!1}}},P.prototype._processReceivedRoomKeyRequest=async function(e){const t=e.userId,n=e.deviceId,o=e.requestBody,r=o.room_id,i=o.algorithm;if(c.a.log(`m.room_key_request from ${t}:${n} for ${r} / ${o.session_id} (id ${e.requestId})`),t!==this._userId){if(!this._roomEncryptors[r])return void c.a.debug("room key request for unencrypted room "+r);const e=this._roomEncryptors[r],i=this._deviceList.getStoredDevice(t,n);if(!i)return void c.a.debug(`Ignoring keyshare for unknown device ${t}:${n}`);try{await e.reshareKeyWithDevice(o.sender_key,o.session_id,t,i)}catch(e){c.a.warn("Failed to re-share keys for session "+o.session_id+" with device "+t+":"+i.deviceId,e)}return}if(n===this._deviceId)return void c.a.log("Ignoring room key request from ourselves");if(!this._roomDecryptors[r])return void c.a.log("room key request for unencrypted room "+r);const a=this._roomDecryptors[r][i];if(a)if(await a.hasKeysForKeyRequest(e)){if(e.share=()=>{a.shareKeysWithDevice(e)},this.checkDeviceTrust(t,n).isVerified())return c.a.log("device is already verified: sharing keys"),void e.share();this.emit("crypto.roomKeyRequest",e)}else c.a.log(`room key request for unknown session ${r} / `+o.session_id);else c.a.log(`room key request for unknown alg ${i} in room ${r}`)},P.prototype._processReceivedRoomKeyRequestCancellation=async function(e){c.a.log(`m.room_key_request cancellation for ${e.userId}:${e.deviceId} (id ${e.requestId})`),this.emit("crypto.roomKeyRequestCancellation",e)},P.prototype._getRoomDecryptor=function(e,t){let n,o;if((e=e||null)&&(n=this._roomDecryptors[e],n||(this._roomDecryptors[e]=n={}),o=n[t],o))return o;const r=m.a[t];if(!r)throw new m.b("UNKNOWN_ENCRYPTION_ALGORITHM",'Unknown encryption algorithm "'+t+'".');return o=new r({userId:this._userId,crypto:this,olmDevice:this._olmDevice,baseApis:this._baseApis,roomId:e}),n&&(n[t]=o),o},P.prototype._getRoomDecryptors=function(e){const t=[];for(const n of Object.values(this._roomDecryptors))e in n&&t.push(n[e]);return t},P.prototype._signObject=async function(e){const t=e.signatures||{},n=e.unsigned;delete e.signatures,delete e.unsigned,t[this._userId]=t[this._userId]||{},t[this._userId]["ed25519:"+this._deviceId]=await this._olmDevice.sign(i.a.stringify(e)),e.signatures=t,void 0!==n&&(e.unsigned=n)};class B{constructor(e){const t=e.getContent();this.userId=e.getSender(),this.deviceId=t.requesting_device_id,this.requestId=t.request_id,this.requestBody=t.body||{},this.share=()=>{throw new Error("don't know how to share keys for this request yet")}}}class q{constructor(e){const t=e.getContent();this.userId=e.getSender(),this.deviceId=t.requesting_device_id,this.requestId=t.request_id}}}).call(this,n(6),n(32).Buffer)},function(e,t,n){"use strict";function o(e){Object.defineProperty(this,"deviceId",{enumerable:!0,value:e}),this.algorithms=[],this.keys={},this.verified=r.UNVERIFIED,this.known=!1,this.unsigned={},this.signatures={}}n.d(t,"a",(function(){return o})),o.fromStorage=function(e,t){const n=new o(t);for(const t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},o.prototype.toStorage=function(){return{algorithms:this.algorithms,keys:this.keys,verified:this.verified,known:this.known,unsigned:this.unsigned,signatures:this.signatures}},o.prototype.getFingerprint=function(){return this.keys["ed25519:"+this.deviceId]},o.prototype.getIdentityKey=function(){return this.keys["curve25519:"+this.deviceId]},o.prototype.getDisplayName=function(){return this.unsigned.device_display_name||null},o.prototype.isBlocked=function(){return this.verified==r.BLOCKED},o.prototype.isVerified=function(){return this.verified==r.VERIFIED},o.prototype.isUnverified=function(){return this.verified==r.UNVERIFIED},o.prototype.isKnown=function(){return 1==this.known},o.DeviceVerification={VERIFIED:1,UNVERIFIED:0,BLOCKED:-1};const r=o.DeviceVerification},function(e,t,n){"use strict";(function(e,o){n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return p})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return g}));var r=n(135),i=n(7),a=n(0),s=n(156),c=n(284);function l(e){return Object.values(e.keys)[0]}class d extends i.EventEmitter{constructor(e,t,n){super(),Object.defineProperty(this,"userId",{enumerable:!0,value:e}),this._callbacks=t||{},this._cacheCallbacks=n||{},this.keys={},this.firstUse=!0,this.crossSigningVerifiedBefore=!1}static fromStorage(e,t){const n=new d(t);for(const t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}toStorage(){return{keys:this.keys,firstUse:this.firstUse,crossSigningVerifiedBefore:this.crossSigningVerifiedBefore}}async getCrossSigningKey(t,n){const o=["master","self_signing","user_signing"].indexOf(t)>=0;if(!this._callbacks.getCrossSigningKey)throw new Error("No getCrossSigningKey callback supplied");function r(t){if(!t)return;const o=new e.Olm.PkSigning,r=o.init_with_seed(t);if(r===n)return[r,o];o.free()}let i;void 0===n&&(n=this.getId(t)),this._cacheCallbacks.getCrossSigningKeyCache&&o&&(i=await this._cacheCallbacks.getCrossSigningKeyCache(t,n));const a=r(i);if(a)return a;i=await this._callbacks.getCrossSigningKey(t,n);const s=r(i);if(s)return this._cacheCallbacks.storeCrossSigningKeyCache&&o&&await this._cacheCallbacks.storeCrossSigningKeyCache(t,i),s;if(!i)throw new Error("getCrossSigningKey callback for "+t+" returned falsey");throw new Error("Key type "+t+" from getCrossSigningKey callback did not match")}async isStoredInSecretStorage(e){const t=await e.isStored("m.cross_signing.master",!1)||{};function n(e){for(const n of Object.keys(t))e[n]||delete t[n]}for(const t of["self_signing","user_signing"])n(await e.isStored("m.cross_signing."+t,!1)||{});return Object.keys(t).length?t:null}static async storeInSecretStorage(e,t){for(const[n,o]of e){const e=Object(r.encodeBase64)(o);await t.store("m.cross_signing."+n,e)}}static async getFromSecretStorage(e,t){const n=await t.get("m.cross_signing."+e);return n?Object(r.decodeBase64)(n):null}async isStoredInKeyCache(e){const t=this._cacheCallbacks;if(!t)return!1;const n=e?[e]:["master","self_signing","user_signing"];for(const e of n)if(!await t.getCrossSigningKeyCache(e))return!1;return!0}async getCrossSigningKeysFromCache(){const e=new Map,t=this._cacheCallbacks;if(!t)return e;for(const n of["master","self_signing","user_signing"]){const o=await t.getCrossSigningKeyCache(n);o&&e.set(n,o)}return e}getId(e){if(e=e||"master",!this.keys[e])return null;return l(this.keys[e])}async resetKeys(t){if(!this._callbacks.saveCrossSigningKeys)throw new Error("No saveCrossSigningKeys callback supplied");if(void 0===t||t&u.MASTER||!this.keys.master)t=u.MASTER|u.USER_SIGNING|u.SELF_SIGNING;else if(0===t)return;const n={},o={};let i,a;try{if(t&u.MASTER?(i=new e.Olm.PkSigning,n.master=i.generate_seed(),a=i.init_with_seed(n.master),o.master={user_id:this.userId,usage:["master"],keys:{["ed25519:"+a]:a}}):[a,i]=await this.getCrossSigningKey("master"),t&u.SELF_SIGNING){const t=new e.Olm.PkSigning;try{n.self_signing=t.generate_seed();const e=t.init_with_seed(n.self_signing);o.self_signing={user_id:this.userId,usage:["self_signing"],keys:{["ed25519:"+e]:e}},Object(r.pkSign)(o.self_signing,i,this.userId,a)}finally{t.free()}}if(t&u.USER_SIGNING){const t=new e.Olm.PkSigning;try{n.user_signing=t.generate_seed();const e=t.init_with_seed(n.user_signing);o.user_signing={user_id:this.userId,usage:["user_signing"],keys:{["ed25519:"+e]:e}},Object(r.pkSign)(o.user_signing,i,this.userId,a)}finally{t.free()}}Object.assign(this.keys,o),this._callbacks.saveCrossSigningKeys(n)}finally{i&&i.free()}}clearKeys(){this.keys={}}setKeys(e){const t={};if(e.master){if(e.master.user_id!==this.userId){const t="Mismatched user ID "+e.master.user_id+" in master key from "+this.userId;throw a.a.error(t),new Error(t)}this.keys.master?l(e.master)!==this.getId()&&(this.firstUse=!1):this.firstUse=!0,t.master=e.master}else{if(!this.keys.master)throw new Error("Tried to set cross-signing keys without a master key");t.master=this.keys.master}const n=l(t.master);if(e.user_signing){if(e.user_signing.user_id!==this.userId){const t="Mismatched user ID "+e.master.user_id+" in user_signing key from "+this.userId;throw a.a.error(t),new Error(t)}try{Object(r.pkVerify)(e.user_signing,n,this.userId)}catch(e){throw a.a.error("invalid signature on user-signing key"),e}}if(e.self_signing){if(e.self_signing.user_id!==this.userId){const t="Mismatched user ID "+e.master.user_id+" in self_signing key from "+this.userId;throw a.a.error(t),new Error(t)}try{Object(r.pkVerify)(e.self_signing,n,this.userId)}catch(e){throw a.a.error("invalid signature on self-signing key"),e}}e.master&&(this.keys.master=e.master,this.keys.self_signing=null,this.keys.user_signing=null),e.self_signing&&(this.keys.self_signing=e.self_signing),e.user_signing&&(this.keys.user_signing=e.user_signing)}updateCrossSigningVerifiedBefore(e){!this.crossSigningVerifiedBefore&&e&&(this.crossSigningVerifiedBefore=!0)}async signObject(e,t){if(!this.keys[t])throw new Error("Attempted to sign with "+t+" key but no such key present");const[n,o]=await this.getCrossSigningKey(t);try{return Object(r.pkSign)(e,o,this.userId,n),e}finally{o.free()}}async signUser(e){if(this.keys.user_signing)return this.signObject(e.keys.master,"user_signing");a.a.info("No user signing key: not signing user")}async signDevice(e,t){if(e!==this.userId)throw new Error(`Trying to sign ${e}'s device; can only sign our own device`);if(this.keys.self_signing)return this.signObject({algorithms:t.algorithms,keys:t.keys,device_id:t.deviceId,user_id:e},"self_signing");a.a.info("No self signing key: not signing device")}checkUserTrust(e){if(this.userId===e.userId&&this.getId()&&this.getId()===e.getId()&&this.getId("self_signing")&&this.getId("self_signing")===e.getId("self_signing"))return new h(!0,!0,this.firstUse);if(!this.keys.user_signing)return new h(!1,!1,e.firstUse);let t;const n=e.keys.master,o=this.getId("user_signing");try{Object(r.pkVerify)(n,o,this.userId),t=!0}catch(e){t=!1}return new h(t,e.crossSigningVerifiedBefore,e.firstUse)}checkDeviceTrust(e,t,n,o){const i=this.checkUserTrust(e),a=e.keys.self_signing;if(!a)return new p(!1,!1,n,o);const s=function(e,t){return{algorithms:e.algorithms,keys:e.keys,device_id:e.deviceId,user_id:t,signatures:e.signatures}}(t,e.userId);try{return Object(r.pkVerify)(a,e.getId(),e.userId),Object(r.pkVerify)(s,l(a),e.userId),p.fromUserTrustLevel(i,n,o)}catch(e){return new p(!1,!1,n,o)}}getCacheCallbacks(){return this._cacheCallbacks}}const u={MASTER:4,USER_SIGNING:2,SELF_SIGNING:1};class h{constructor(e,t,n){this._crossSigningVerified=e,this._crossSigningVerifiedBefore=t,this._tofu=n}isVerified(){return this.isCrossSigningVerified()}isCrossSigningVerified(){return this._crossSigningVerified}wasCrossSigningVerified(){return this._crossSigningVerifiedBefore}isTofu(){return this._tofu}}class p{constructor(e,t,n,o){this._crossSigningVerified=e,this._tofu=t,this._localVerified=n,this._trustCrossSignedDevices=o}static fromUserTrustLevel(e,t,n){return new p(e._crossSigningVerified,e._tofu,t,n)}isVerified(){return Boolean(this.isLocallyVerified()||this._trustCrossSignedDevices&&this.isCrossSigningVerified())}isCrossSigningVerified(){return this._crossSigningVerified}isLocallyVerified(){return this._localVerified}isTofu(){return this._tofu}}function m(e,t){return{getCrossSigningKeyCache:async function(n,i){const a=await new Promise(t=>e.doTxn("readonly",[s.a.STORE_ACCOUNT],o=>{e.getSecretStorePrivateKey(o,t,n)}));if(a&&a.ciphertext){const e=o.from(t._pickleKey),i=await Object(c.a)(a,e,n);return Object(r.decodeBase64)(i)}return a},storeCrossSigningKeyCache:async function(n,i){if(!(i instanceof Uint8Array))throw new Error("storeCrossSigningKeyCache expects Uint8Array, got "+i);const a=o.from(t._pickleKey);return i=await Object(c.b)(Object(r.encodeBase64)(i),a,n),e.doTxn("readwrite",[s.a.STORE_ACCOUNT],t=>{e.storeSecretStorePrivateKey(t,n,i)})}}}async function g(e,t,n){if(e.getUserId()===t)return a.a.log("Cross-signing: Self-verification done; requesting keys"),new Promise((t,o)=>{const i=e,s=i._crypto._crossSigningInfo,c=new d(s.userId,{getCrossSigningKey:async e=>{a.a.debug("Cross-signing: requesting secret",e,n);const{promise:t}=i.requestSecret("m.cross_signing."+e,[n]),o=await t,s=Object(r.decodeBase64)(o);return Uint8Array.from(s)}},s._cacheCallbacks);c.keys=s.keys;const l=new Promise((e,t)=>{setTimeout(e,6e4,new Error("Timeout"))}),u=new Promise(async e=>{if(!await i._crypto.getSessionBackupPrivateKey()){a.a.info("No cached backup key found. Requesting...");const e=i.requestSecret("m.megolm_backup.v1",[n]),t=await e.promise;a.a.info("Got key backup key, decoding...");const o=Object(r.decodeBase64)(t);a.a.info("Decoded backup key, storing..."),i._crypto.storeSessionBackupPrivateKey(Uint8Array.from(o)),a.a.info("Backup key stored. Starting backup restore...");const s=await i.getKeyBackupVersion();i.restoreKeyBackupWithCache(void 0,void 0,s).then(()=>{a.a.info("Backup restored.")})}e()});return Promise.race([Promise.all([c.getCrossSigningKey("master"),c.getCrossSigningKey("self_signing"),c.getCrossSigningKey("user_signing"),u]),l]).then(t,o)}).catch(e=>{a.a.warn("Cross-signing: failure while requesting keys:",e)})}}).call(this,n(6),n(32).Buffer)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var o=n(265),r=n(1),i=n(7),a=n(26),s=n(1025),c=n(203),l=n(103),d=n(0);function u(t){if(o.a.call(this,t),!t.indexedDB)throw new Error("Missing required option: indexedDB");if(t.workerScript){let n=t.workerApi;n||(n=e.Worker),this.backend=new s.a(t.workerScript,t.dbName,n)}else this.backend=new a.a(t.indexedDB,t.dbName);this.startedUp=!1,this._syncTs=0,this._userModifiedMap={}}function h(e,t){return async function(...n){try{return await e.call(this,...n)}catch(e){d.a.error("IndexedDBStore failure, degrading to MemoryStore",e),this.emit("degraded",e);try{d.a.log("IndexedDBStore trying to delete degraded data"),await this.backend.clearDatabase(),d.a.log("IndexedDBStore delete after degrading succeeeded")}catch(e){d.a.warn("IndexedDBStore delete after degrading failed",e)}if(Object.setPrototypeOf(this,o.a.prototype),t)return await o.a.prototype[t].call(this,...n)}}}r.p(u,o.a),r.j(u.prototype,i.EventEmitter.prototype),u.exists=function(e,t){return a.a.exists(e,t)},u.prototype.startup=function(){return this.startedUp?(d.a.log("IndexedDBStore.startup: already started"),Promise.resolve()):(d.a.log("IndexedDBStore.startup: connecting to backend"),this.backend.connect().then(()=>(d.a.log("IndexedDBStore.startup: loading presence events"),this.backend.getUserPresenceEvents())).then(e=>{d.a.log("IndexedDBStore.startup: processing presence events"),e.forEach(([e,t])=>{const n=new c.a(e);t&&n.setPresenceEvent(new l.b(t)),this._userModifiedMap[n.userId]=n.getLastModifiedTime(),this.storeUser(n)})}))},u.prototype.getSavedSync=h((function(){return this.backend.getSavedSync()}),"getSavedSync"),u.prototype.isNewlyCreated=h((function(){return this.backend.isNewlyCreated()}),"isNewlyCreated"),u.prototype.getSavedSyncToken=h((function(){return this.backend.getNextBatchToken()}),"getSavedSyncToken"),u.prototype.deleteAllData=h((function(){return o.a.prototype.deleteAllData.call(this),this.backend.clearDatabase().then(()=>{d.a.log("Deleted indexeddb data.")},e=>{throw d.a.error("Failed to delete indexeddb data: "+e),e})})),u.prototype.wantsSave=function(){return Date.now()-this._syncTs>3e5},u.prototype.save=function(e){return e||this.wantsSave()?this._reallySave():Promise.resolve()},u.prototype._reallySave=h((function(){this._syncTs=Date.now();const e=[];for(const t of this.getUsers())this._userModifiedMap[t.userId]!==t.getLastModifiedTime()&&t.events.presence&&(e.push([t.userId,t.events.presence.event]),this._userModifiedMap[t.userId]=t.getLastModifiedTime());return this.backend.syncToDatabase(e)})),u.prototype.setSyncData=h((function(e){return this.backend.setSyncData(e)}),"setSyncData"),u.prototype.getOutOfBandMembers=h((function(e){return this.backend.getOutOfBandMembers(e)}),"getOutOfBandMembers"),u.prototype.setOutOfBandMembers=h((function(e,t){return o.a.prototype.setOutOfBandMembers.call(this,e,t),this.backend.setOutOfBandMembers(e,t)}),"setOutOfBandMembers"),u.prototype.clearOutOfBandMembers=h((function(e){return o.a.prototype.clearOutOfBandMembers.call(this),this.backend.clearOutOfBandMembers(e)}),"clearOutOfBandMembers"),u.prototype.getClientOptions=h((function(){return this.backend.getClientOptions()}),"getClientOptions"),u.prototype.storeClientOptions=h((function(e){return o.a.prototype.storeClientOptions.call(this,e),this.backend.storeClientOptions(e)}),"storeClientOptions")}).call(this,n(6))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var o=n(117);function r(e,t){const n=[...e.keys()],r=[...t.keys()],i=Object(o.a)(n,r);return{changed:Object(o.h)(n,r).filter(n=>e.get(n)!==t.get(n)),added:i.added,removed:i.removed}}class i extends Map{constructor(e){super(e)}getOrCreate(e,t){return this.has(e)?this.get(e):(this.set(e,t),t)}remove(e){const t=this.get(e);return this.delete(e),t}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(197),r=n(215),i=function(e){return e.parentNode?i(e.parentNode):e};t.getAllAffectedNodes=function(e){return r.asArray(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(o.FOCUS_GROUP);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,o=0;o<n;o+=1)for(var r=o+1;r<n;r+=1){var i=e[o].compareDocumentPosition(e[r]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(r),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(o)}return e.filter((function(e,n){return!t.has(n)}))}(r.toArray(i(t).querySelectorAll("["+o.FOCUS_GROUP+'="'+n+'"]:not(['+o.FOCUS_DISABLED+'="disabled"])'))):[t]),e}),[])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(215),r=n(340),i=n(1053),a=n(1054);t.filterFocusable=function(e){return o.toArray(e).filter((function(e){return r.isVisible(e)})).filter((function(e){return r.notHiddenInput(e)}))},t.getTabbableNodes=function(e,n){return i.orderByTabIndex(t.filterFocusable(a.getFocusables(e,n)),!0,n)},t.getAllTabbableNodes=function(e){return i.orderByTabIndex(t.filterFocusable(a.getFocusables(e)),!1)},t.parentAutofocusables=function(e){return t.filterFocusable(a.getParentAutofocusables(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isVisible=function(e){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!((n=window.getComputedStyle(e,null))&&n.getPropertyValue&&("none"===n.getPropertyValue("display")||"hidden"===n.getPropertyValue("visibility")))&&t.isVisible(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode);var n},t.notHiddenInput=function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))},t.isGuard=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)},t.isNotAGuard=function(e){return!t.isGuard(e)},t.isDefined=function(e){return Boolean(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deferAction=function(e){var t=window.setImmediate;void 0!==t?t(e):setTimeout(e,1)},t.inlineProp=void 0;t.inlineProp=function(e,t){var n={};return n[e]=t,n}},function(e,t,n){"use strict";function o(e,t){return Number.isFinite(e)?Number(e):t}function r(e,t,n){return Math.min(Math.max(e,t),n)}function i(...e){return[...e].reduce((e,t)=>t+e,0)}function a(e,t,n){return e*(n-t)+t}function s(e,t,n){return(e-t)/(n-t)}n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"e",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return s}))},function(e,t,n){"use strict";(function(e){class n{constructor(){this.keyRgb=["rgb(118, 207, 166)","rgb(234, 245, 240)","rgb(211, 239, 225)"],this.keyHex=["#76CFA6","#EAF5F0","#D3EFE1","#FFFFFF","#000000"],this.colors=[this.keyHex[0],this.keyHex[1],this.keyHex[2],this.keyHex[3],this.keyHex[4]],this.currentTint=[void 0,void 0,void 0,void 0,void 0],this.cssFixups=[],this.cssAttrs=["color","backgroundColor","borderColor","borderTopColor","borderBottomColor","borderLeftColor"],this.svgAttrs=["fill","stroke"],this.tintables=[],this.theme=void 0,this.forceTint=!1}registerTintable(e){this.tintables.push(e),e()}getKeyRgb(){return this.keyRgb}tint(e,t,n){}tintSvgWhite(e){this.currentTint[3]=e,e||(e=this.colors[3]),this.colors[3]!==e&&(this.colors[3]=e,this.tintables.forEach((function(e){e()})))}tintSvgBlack(e){this.currentTint[4]=e,e||(e=this.colors[4]),this.colors[4]!==e&&(this.colors[4]=e,this.tintables.forEach((function(e){e()})))}setTheme(e){this.theme=e,document.getElementById("mx_theme_accentColor")&&(this.keyRgb[0]=window.getComputedStyle(document.getElementById("mx_theme_accentColor")).color),document.getElementById("mx_theme_secondaryAccentColor")&&(this.keyRgb[1]=window.getComputedStyle(document.getElementById("mx_theme_secondaryAccentColor")).color),document.getElementById("mx_theme_tertiaryAccentColor")&&(this.keyRgb[2]=window.getComputedStyle(document.getElementById("mx_theme_tertiaryAccentColor")).color),this.calcCssFixups(),this.forceTint=!0,this.tint(this.currentTint[0],this.currentTint[1],this.currentTint[2]),"dark"===e?(this.tintSvgWhite("#2d2d2d"),this.tintSvgBlack("#dddddd")):(this.tintSvgWhite("#ffffff"),this.tintSvgBlack("#000000"))}calcCssFixups(){if(!this.cssFixups[this.theme]){0,this.cssFixups[this.theme]=[];for(let e=0;e<document.styleSheets.length;e++){const t=document.styleSheets[e];try{if(!t)continue;if(!t.href||!t.href.match(new RegExp("/theme-"+this.theme+".css$")))continue;if(t.disabled)continue;if(!t.cssRules)continue;0;for(let e=0;e<t.cssRules.length;e++){const n=t.cssRules[e];if(n.style&&(!n.selectorText||!n.selectorText.match(/#mx_theme/)))for(let e=0;e<this.cssAttrs.length;e++){const t=this.cssAttrs[e];for(let e=0;e<this.keyRgb.length;e++)n.style[t]===this.keyRgb[e]&&this.cssFixups[this.theme].push({style:n.style,attr:t,index:e})}}}catch(e){console.log("Failed to calculate CSS fixups for a stylesheet: "+t.href,e)}}0}}applyCssFixups(){for(let e=0;e<this.cssFixups[this.theme].length;e++){const t=this.cssFixups[this.theme][e];try{t.style[t.attr]=this.colors[t.index]}catch(e){console.error("Failed to apply cssFixup in Tinter! ",e.name)}}}calcSvgFixups(e){const t=[];for(let n=0;n<e.length;n++){let o;try{o=e[n].contentDocument}catch(t){let o="Failed to get svg.contentDocument of "+e[n].toString();t.message&&(o+=t.message),t.stack&&(o+=" | stack: "+t.stack),console.error(o)}if(!o)continue;const r=o.getElementsByTagName("*");for(let e=0;e<r.length;e++){const n=r[e];for(let e=0;e<this.svgAttrs.length;e++){const o=this.svgAttrs[e];for(let e=0;e<this.keyHex.length;e++)n.getAttribute(o)&&n.getAttribute(o).toUpperCase()===this.keyHex[e]&&t.push({node:n,attr:o,index:e})}}}return t}applySvgFixups(e){for(let t=0;t<e.length;t++){const n=e[t];n.node.setAttribute(n.attr,this.colors[n.index])}}}void 0===e.singletonTinter&&(e.singletonTinter=new n),t.a=e.singletonTinter}).call(this,n(6))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var o=n(83),r=n.n(o),i=n(90),a=n(89),s=n(96),c=n(442),l=n(253),d=n(98);class u{constructor(){r()(this,"themeWatchRef",void 0),r()(this,"systemThemeWatchRef",void 0),r()(this,"dispatcherRef",void 0),r()(this,"preferDark",void 0),r()(this,"preferLight",void 0),r()(this,"currentTheme",void 0),r()(this,"onChange",()=>{this.recheck()}),r()(this,"onAction",e=>{e.action===s.a.RecheckTheme&&this.recheck(e.forceTheme)}),this.themeWatchRef=null,this.systemThemeWatchRef=null,this.dispatcherRef=null,this.preferDark=e.matchMedia("(prefers-color-scheme: dark)"),this.preferLight=e.matchMedia("(prefers-color-scheme: light)"),this.currentTheme=this.getEffectiveTheme()}start(){this.themeWatchRef=i.b.watchSetting("theme",null,this.onChange),this.systemThemeWatchRef=i.b.watchSetting("use_system_theme",null,this.onChange),this.preferDark.addEventListener&&(this.preferDark.addEventListener("change",this.onChange),this.preferLight.addEventListener("change",this.onChange)),this.dispatcherRef=a.a.register(this.onAction)}stop(){this.preferDark.addEventListener&&(this.preferDark.removeEventListener("change",this.onChange),this.preferLight.removeEventListener("change",this.onChange)),i.b.unwatchSetting(this.systemThemeWatchRef),i.b.unwatchSetting(this.themeWatchRef),a.a.unregister(this.dispatcherRef)}recheck(e){const t=this.currentTheme;this.currentTheme=void 0===e?this.getEffectiveTheme():e,t!==this.currentTheme&&Object(l.d)(this.currentTheme)}getEffectiveTheme(){if(c.a.isLogin)return"light";if(i.b.getValueAt(d.a.DEVICE,"use_system_theme",null,!1,!0)){if(console.log("returning explicit system theme"),this.preferDark.matches)return"dark";if(this.preferLight.matches)return"light"}const e=i.b.getValueAt(d.a.DEVICE,"theme",null,!1,!0);if(e)return console.log("returning explicit theme: "+e),e;if(i.b.getValue("use_system_theme")){if(this.preferDark.matches)return"dark";if(this.preferLight.matches)return"light"}return console.log("returning theme value"),i.b.getValue("theme")}isSystemThemeSupported(){return this.preferDark.matches||this.preferLight.matches}}}).call(this,n(6))},function(e,t,n){"use strict";n.d(t,"b",(function(){return c}));var o=n(82),r=n.n(o),i=n(110),a=n(129),s=n(127);const c=e=>{var t,n,o;return null==e||null===(t=e.currentState)||void 0===t||null===(n=t.getStateEvents(i.a.RoomTopic,""))||void 0===n||null===(o=n.getContent())||void 0===o?void 0:o.topic};t.a=({room:e,children:t})=>{const[n,i]=Object(o.useState)(c(e));Object(a.a)(e.currentState,"RoomState.events",()=>{i(c(e))}),Object(o.useEffect)(()=>{i(c(e))},[e]);const l=e=>e&&Object(s.f)(e);return t?t(n,l):r.a.createElement("span",{ref:l},n)}},function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"g",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"f",(function(){return u})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return m}));var o=n(83),r=n.n(o),i=n(750),a=n(88);const s="m.room.rule.user",c="m.room.rule.server",l=[s,"org.matrix.mjolnir.rule.user"],d=["m.room.rule.room","org.matrix.mjolnir.rule.room"],u=[c,"org.matrix.mjolnir.rule.server"],h=[...l,...d,...u];function p(e,t=!0){return l.includes(e)?t?l[l.length-1]:s:d.includes(e)?t?d[d.length-1]:"m.room.rule.room":u.includes(e)?t?u[u.length-1]:c:null}class m{constructor(e){r()(this,"_rules",[]),r()(this,"_roomId",void 0),this._roomId=e,this.updateList()}get roomId(){return this._roomId}get serverRules(){return this._rules.filter(e=>e.kind===c)}get userRules(){return this._rules.filter(e=>e.kind===s)}get roomRules(){return this._rules.filter(e=>"m.room.rule.room"===e.kind)}async banEntity(e,t,n){await a.a.get().sendStateEvent(this._roomId,p(e,!0),{entity:t,reason:n,recommendation:Object(i.c)(i.b,!0)},"rule:"+t),this._rules.push(new i.a(t,i.b,n,p(e,!1)))}async unbanEntity(e,t){await a.a.get().sendStateEvent(this._roomId,p(e,!0),{},"rule:"+t),this._rules=this._rules.filter(n=>n.kind!==p(e,!1)||n.entity!==t)}updateList(){this._rules=[];const e=a.a.get().getRoom(this._roomId);if(e)for(const t of h){const n=e.currentState.getStateEvents(t,void 0);for(const e of n){if(!e.getStateKey())continue;const n=p(t,!1),o=e.getContent().entity,r=e.getContent().recommendation,a=e.getContent().reason;o&&r&&a&&this._rules.push(new i.a(o,r,a,n))}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return R})),n.d(t,"b",(function(){return D})),n.d(t,"c",(function(){return I}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(451),p=n(84),m=n(643),g=n(90),f=n(665),_=n(666),b=n(670),v=n(673),y=n(674),E=n(675),S=n(676),w=n(678),C=n(87),T=n(94),x=n(680),O=n(106),k=n(85);const R="USER_NOTIFICATIONS_TAB",D="USER_SECURITY_TAB";let I=Object(k.a)("views.dialogs.UserSettingsDialog")((i=r=class extends l.a.Component{constructor(){super(),this.state={mjolnirEnabled:g.b.getValue("feature_mjolnir")}}componentDidMount(){this._mjolnirWatcher=g.b.watchSetting("feature_mjolnir",null,this._mjolnirChanged.bind(this))}componentWillUnmount(){g.b.unwatchSetting(this._mjolnirWatcher)}_mjolnirChanged(e,t,n,o){this.setState({mjolnirEnabled:o})}_getTabs(){const e=[];return e.push(new h.a("USER_GENERAL_TAB",Object(p.b)("General"),"mx_UserSettingsDialog_settingsIcon",l.a.createElement(m.a,{closeSettingsFn:this.props.onFinished}))),e.push(new h.a("USER_APPEARANCE_TAB",Object(p.b)("Appearance"),"mx_UserSettingsDialog_appearanceIcon",l.a.createElement(_.a,null))),g.b.getValue(O.a.Flair)&&e.push(new h.a("USER_FLAIR_TAB",Object(p.b)("Flair"),"mx_UserSettingsDialog_flairIcon",l.a.createElement(w.a,null))),e.push(new h.a(R,Object(p.b)("Notifications"),"mx_UserSettingsDialog_bellIcon",l.a.createElement(v.a,null))),e.push(new h.a("USER_PREFERENCES_TAB",Object(p.b)("Preferences"),"mx_UserSettingsDialog_preferencesIcon",l.a.createElement(y.a,null))),g.b.getValue(O.a.Voip)&&e.push(new h.a("USER_VOICE_TAB",Object(p.b)("Voice & Video"),"mx_UserSettingsDialog_voiceIcon",l.a.createElement(E.a,null))),e.push(new h.a(D,Object(p.b)("Security & Privacy"),"mx_UserSettingsDialog_securityIcon",l.a.createElement(b.a,{closeSettingsFn:this.props.onFinished}))),T.a.get().showLabsSettings&&e.push(new h.a("USER_LABS_TAB",Object(p.b)("Labs"),"mx_UserSettingsDialog_labsIcon",l.a.createElement(f.a,null))),this.state.mjolnirEnabled&&e.push(new h.a("USER_MJOLNIR_TAB",Object(p.b)("Ignored users"),"mx_UserSettingsDialog_mjolnirIcon",l.a.createElement(x.a,null))),e.push(new h.a("USER_HELP_TAB",Object(p.b)("Help & About"),"mx_UserSettingsDialog_helpIcon",l.a.createElement(S.a,{closeSettingsFn:this.props.onFinished}))),e}render(){const e=C.getComponent("views.dialogs.BaseDialog");return l.a.createElement(e,{className:"mx_UserSettingsDialog",hasCancel:!0,onFinished:this.props.onFinished,title:Object(p.a)("Settings")},l.a.createElement("div",{className:"mx_SettingsDialog_content"},l.a.createElement(h.b,{tabs:this._getTabs(),initialTabId:this.props.initialTabId})))}},s()(r,"propTypes",{onFinished:u.a.func.isRequired,initialTabId:u.a.string}),o=i))||o},function(e,t,n){"use strict";n.d(t,"g",(function(){return h})),n.d(t,"a",(function(){return p})),n.d(t,"f",(function(){return m})),n.d(t,"e",(function(){return g})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return v})),n.d(t,"b",(function(){return y}));var o=n(597),r=n(120),i=n(336),a=n(156);const s=window.localStorage;let c;try{c=window.indexedDB}catch(e){}function l(e){console.log("StorageManager: "+e)}function d(e){console.error("StorageManager: "+e)}function u(e){r.a.trackEvent("StorageManager",e)}function h(){navigator.storage&&navigator.storage.persist?navigator.storage.persist().then(e=>{console.log("StorageManager: Persistent?",e)}):document.requestStorageAccess?document.requestStorageAccess().then(()=>console.log("StorageManager: Persistent?",!0),()=>console.log("StorageManager: Persistent?",!1)):console.log("StorageManager: Persistence unsupported")}async function p(){l("Checking storage consistency"),l("Local storage supported? "+!!s),l("IndexedDB supported? "+!!c);let e=!1,t=!1,n=!1,r=!0;if(s?(e=s.length>0,l("Local storage contains data? "+e),n=s.getItem("mx_crypto_initialised"),l("Crypto initialised? "+n)):(r=!1,d("Local storage cannot be used on this browser"),u("Local storage disabled")),c&&s){(await async function(){let e=!1;try{return e=await i.a.exists(c,"riot-web-sync"),l("Sync store using IndexedDB contains data? "+e),{exists:e,healthy:!0}}catch(e){d("Sync store using IndexedDB inaccessible"),u("Sync store using IndexedDB inaccessible")}return l("Sync store using memory only"),{exists:e,healthy:!1}}()).healthy||(r=!1)}else r=!1,d("Sync store cannot be used on this browser"),u("Sync store disabled");if(c){const e=await async function(){let e=!1;try{return e=await a.a.exists(c,"matrix-js-sdk:crypto"),l("Crypto store using IndexedDB contains data? "+e),{exists:e,healthy:!0}}catch(e){d("Crypto store using IndexedDB inaccessible"),u("Crypto store using IndexedDB inaccessible")}try{return e=await o.a.exists(s),l("Crypto store using local storage contains data? "+e),{exists:e,healthy:!0}}catch(e){d("Crypto store using local storage inaccessible"),u("Crypto store using local storage inaccessible")}return l("Crypto store using memory only"),{exists:e,healthy:!1}}();t=e.exists,e.healthy||(r=!1)}else r=!1,d("Crypto store cannot be used on this browser"),u("Crypto store disabled");return e&&n&&!t&&(r=!1,d("Data exists in local storage and crypto is marked as initialised but no data found in crypto store. IndexedDB storage has likely been evicted by the browser!"),u("Crypto store evicted")),r?(l("Storage consistency checks passed"),u("Consistency checks passed")):(d("Storage consistency checks failed"),u("Consistency checks failed")),{dataInLocalStorage:e,dataInCryptoStore:t,cryptoInited:n,healthy:r}}function m(e){e.store&&e.store.on&&e.store.on("degraded",()=>{u("Sync store using IndexedDB degraded to memory")})}function g(e){s.setItem("mx_crypto_initialised",e)}let f=null;async function _(){if(!c)throw new Error("IndexedDB not available");f=await new Promise((e,t)=>{const n=c.open("matrix-react-sdk",1);n.onerror=t,n.onsuccess=t=>{e(n.result)},n.onupgradeneeded=e=>{const t=n.result;t.createObjectStore("pickleKey"),t.createObjectStore("account")}})}async function b(e,t){return f||await _(),new Promise((n,o)=>{const r=f.transaction([e],"readonly");r.onerror=o;const i=r.objectStore(e).get(t);i.onerror=o,i.onsuccess=e=>{n(i.result)}})}async function v(e,t,n){return f||await _(),new Promise((o,r)=>{const i=f.transaction([e],"readwrite");i.onerror=r;const a=i.objectStore(e).put(n,t);a.onerror=r,a.onsuccess=e=>{o()}})}async function y(e,t){return f||await _(),new Promise((n,o)=>{const r=f.transaction([e],"readwrite");r.onerror=o;const i=r.objectStore(e).delete(t);i.onerror=o,i.onsuccess=e=>{n()}})}},function(e,t){e.exports="img/e2e/warning.78bb264.svg"},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(92),a=n.n(i),s=n(267);t.a=function({name:e,definitions:t,value:n,className:o,outlined:i,onChange:c}){const l=e=>{c(e.target.value)};return r.a.createElement(r.a.Fragment,null,t.map(t=>r.a.createElement(r.a.Fragment,{key:t.value},r.a.createElement(s.a,{className:a()(o,t.className),onChange:l,checked:void 0!==t.checked?t.checked:t.value===n,name:e,value:t.value,disabled:t.disabled,outlined:i},t.label),t.description)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return C}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(148),u=n.n(d),h=n(86),p=n.n(h),m=n(105),g=n(1297),f=n.n(g),_=n(89),b=n(97),v=n(88),y=n(1),E=n(85);function S(e){return document.getElementById(e)}let w=Object(E.a)("views.elements.PersistedElement")((i=r=class e extends l.a.Component{constructor(){super(),s()(this,"updateChildPosition",Object(m.throttle)((e,t)=>{if(!e||!t)return;const n=t.getBoundingClientRect();Object.assign(e.style,{zIndex:Object(y.s)(this.props.zIndex)?9:this.props.zIndex,position:"absolute",top:n.top+"px",left:n.left+"px",width:n.width+"px",height:n.height+"px"})},100,{trailing:!0,leading:!0})),this.collectChildContainer=this.collectChildContainer.bind(this),this.collectChild=this.collectChild.bind(this),this._repositionChild=this._repositionChild.bind(this),this._onAction=this._onAction.bind(this),this.resizeObserver=new f.a(this._repositionChild),window.addEventListener("resize",this._repositionChild),this._dispatcherRef=_.a.register(this._onAction)}static destroyElement(e){const t=S("mx_persistedElement_"+e);t&&t.remove()}static isMounted(e){return Boolean(S("mx_persistedElement_"+e))}collectChildContainer(e){this.childContainer&&this.resizeObserver.unobserve(this.childContainer),this.childContainer=e,e&&this.resizeObserver.observe(e)}collectChild(e){this.child=e,this.updateChild()}componentDidMount(){this.updateChild(),this.renderApp()}componentDidUpdate(){this.updateChild(),this.renderApp()}componentWillUnmount(){this.updateChildVisibility(this.child,!1),this.resizeObserver.disconnect(),window.removeEventListener("resize",this._repositionChild),_.a.unregister(this._dispatcherRef)}_onAction(t){"timeline_resize"===t.action?this._repositionChild():"logout"===t.action&&e.destroyElement(this.props.persistKey)}_repositionChild(){this.updateChildPosition(this.child,this.childContainer)}updateChild(){this.updateChildPosition(this.child,this.childContainer),this.updateChildVisibility(this.child,!0)}renderApp(){const e=l.a.createElement(b.a.Provider,{value:v.a.get()},l.a.createElement("div",{ref:this.collectChild,style:this.props.style},this.props.children));u.a.render(e,function(e){let t=S(e);return t||(t=document.createElement("div"),t.id=e,document.body.appendChild(t)),t}("mx_persistedElement_"+this.props.persistKey))}updateChildVisibility(e,t){e&&(e.style.display=t?"block":"none")}render(){return l.a.createElement("div",{ref:this.collectChildContainer})}},s()(r,"propTypes",{persistKey:p.a.string.isRequired,zIndex:p.a.number}),o=i))||o;const C=e=>"widget_"+e},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(83),r=n.n(o),i=n(698),a=n(699);class s{static createItem(e,t,n){return new i.a(e,t,n)}static createSizer(e,t,n){return new a.a(e,t,n)}constructor(e){this.item=e,r()(this,"beforeOffset",void 0),this.beforeOffset=e.offset()}get size(){return this.item.getSize()}set size(e){this.item.setRawSize(e)}resize(e){this.item.setSize(e)}resizeFromContainerOffset(e){this.resize(e-this.beforeOffset)}start(){this.item.start()}finish(){this.item.finish()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(294),l=n(85);let d=Object(l.a)("structures.MainSplit")(o=class extends s.a.Component{constructor(...e){super(...e),i()(this,"_onResizeStart",()=>{this.props.resizeNotifier.startResizing()}),i()(this,"_onResize",()=>{this.props.resizeNotifier.notifyRightHandleResized()}),i()(this,"_onResizeStop",(e,t,n,o)=>{this.props.resizeNotifier.stopResizing(),window.localStorage.setItem("mx_rhs_size",this._loadSidePanelSize().width+o.width)})}_loadSidePanelSize(){let e=parseInt(window.localStorage.getItem("mx_rhs_size"),10);return isNaN(e)&&(e=350),{height:"100%",width:e}}render(){const e=s.a.Children.only(this.props.children),t=this.props.panel;let n;return!this.props.collapsedRhs&&t&&(n=s.a.createElement(c.Resizable,{defaultSize:this._loadSidePanelSize(),minWidth:264,maxWidth:"50%",enable:{top:!1,right:!1,bottom:!1,left:!0,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:this._onResizeStart,onResize:this._onResize,onResizeStop:this._onResizeStop,className:"mx_RightPanel_ResizeWrapper",handleClasses:{left:"mx_RightPanel_ResizeHandle"}},t)),s.a.createElement("div",{className:"mx_MainSplit"},e,n)}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(168),p=n(87),m=n(89),g=n(259),f=n(355),_=n(116),b=n(118),v=n(260),y=n(97),E=n(96),S=n(473),w=n(710),C=n(85);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}let O=Object(C.a)("structures.RightPanel")((i=r=class extends l.a.Component{static get propTypes(){return{room:u.a.instanceOf(h.a),groupId:u.a.string,user:u.a.object}}constructor(e,t){super(e,t),s()(this,"onClose",()=>{this.props.user?m.a.dispatch({action:"view_home_page"}):this.state.phase===b.c.EncryptionPanel&&this.state.verificationRequest&&this.state.verificationRequest.pending?this.state.verificationRequest.cancel():m.a.dispatch({action:E.a.ToggleRightPanel,type:this.props.groupId?"group":"room"})}),this.state=x(x({},v.a.getSharedInstance().roomPanelPhaseParams),{},{phase:this._getPhaseFromProps(),isUserPrivilegedInGroup:null,member:this._getUserForPanel()}),this.onAction=this.onAction.bind(this),this.onRoomStateMember=this.onRoomStateMember.bind(this),this.onGroupStoreUpdated=this.onGroupStoreUpdated.bind(this),this.onInviteToGroupButtonClick=this.onInviteToGroupButtonClick.bind(this),this.onAddRoomToGroupButtonClick=this.onAddRoomToGroupButtonClick.bind(this),this._delayedUpdate=new g.a(()=>{this.forceUpdate()},500)}_getUserForPanel(){if(this.state&&this.state.member)return this.state.member;const e=v.a.getSharedInstance().roomPanelPhaseParams;return this.props.user||e.member}_getPhaseFromProps(){var e;const t=v.a.getSharedInstance(),n=this._getUserForPanel();return this.props.groupId?b.a.includes(t.groupPanelPhase)?t.groupPanelPhase:(m.a.dispatch({action:E.a.SetRightPanelPhase,phase:b.c.GroupMemberList}),b.c.GroupMemberList):null!==(e=this.props.room)&&void 0!==e&&e.isSpaceRoom()&&!b.b.includes(t.roomPanelPhase)?b.c.SpaceMemberList:n?t.roomPanelPhaseParams.member&&n.userId===t.roomPanelPhaseParams.member.userId&&t.roomPanelPhaseParams.verificationRequest?t.roomPanelPhase:b.c.RoomMemberInfo:t.roomPanelPhase}componentDidMount(){this.dispatcherRef=m.a.register(this.onAction);this.context.on("RoomState.members",this.onRoomStateMember),this._initGroupStore(this.props.groupId)}componentWillUnmount(){m.a.unregister(this.dispatcherRef),this.context&&this.context.removeListener("RoomState.members",this.onRoomStateMember),this._unregisterGroupStore(this.props.groupId)}UNSAFE_componentWillReceiveProps(e){e.groupId!==this.props.groupId&&(this._unregisterGroupStore(this.props.groupId),this._initGroupStore(e.groupId))}_initGroupStore(e){e&&_.a.registerListener(e,this.onGroupStoreUpdated)}_unregisterGroupStore(){_.a.unregisterListener(this.onGroupStoreUpdated)}onGroupStoreUpdated(){this.setState({isUserPrivilegedInGroup:_.a.isUserPrivileged(this.props.groupId)})}onInviteToGroupButtonClick(){Object(f.b)(this.props.groupId).then(()=>{this.setState({phase:b.c.GroupMemberList})})}onAddRoomToGroupButtonClick(){Object(f.a)(this.props.groupId).then(()=>{this.forceUpdate()})}onRoomStateMember(e,t,n){this.props.room&&n.roomId===this.props.room.roomId&&(this.state.phase===b.c.RoomMemberList&&n.roomId===this.props.room.roomId||this.state.phase===b.c.RoomMemberInfo&&n.roomId===this.props.room.roomId&&n.userId===this.state.member.userId)&&this._delayedUpdate()}onAction(e){e.action===E.a.AfterRightPanelPhaseChange&&this.setState({phase:e.phase,groupRoomId:e.groupRoomId,groupId:e.groupId,member:e.member,event:e.event,verificationRequest:e.verificationRequest,verificationRequestPromise:e.verificationRequestPromise,widgetId:e.widgetId,space:e.space})}render(){const e=p.getComponent("rooms.MemberList"),t=p.getComponent("right_panel.UserInfo"),n=p.getComponent("rooms.ThirdPartyMemberInfo"),o=p.getComponent("structures.NotificationPanel"),r=p.getComponent("structures.FilePanel"),i=p.getComponent("groups.GroupMemberList"),a=p.getComponent("groups.GroupRoomList"),s=p.getComponent("groups.GroupRoomInfo");let c=l.a.createElement("div",null);const d=this.props.room?this.props.room.roomId:void 0;switch(this.state.phase){case b.c.RoomMemberList:d&&(c=l.a.createElement(e,{roomId:d,key:d,onClose:this.onClose}));break;case b.c.SpaceMemberList:c=l.a.createElement(e,{roomId:this.state.space?this.state.space.roomId:d,key:this.state.space?this.state.space.roomId:d,onClose:this.onClose});break;case b.c.GroupMemberList:this.props.groupId&&(c=l.a.createElement(i,{groupId:this.props.groupId,key:this.props.groupId}));break;case b.c.GroupRoomList:c=l.a.createElement(a,{groupId:this.props.groupId,key:this.props.groupId});break;case b.c.RoomMemberInfo:case b.c.SpaceMemberInfo:case b.c.EncryptionPanel:c=l.a.createElement(t,{user:this.state.member,room:this.state.phase===b.c.SpaceMemberInfo?this.state.space:this.props.room,key:d||this.state.member.userId,onClose:this.onClose,phase:this.state.phase,verificationRequest:this.state.verificationRequest,verificationRequestPromise:this.state.verificationRequestPromise});break;case b.c.Room3pidMemberInfo:case b.c.Space3pidMemberInfo:c=l.a.createElement(n,{event:this.state.event,key:d});break;case b.c.GroupMemberInfo:c=l.a.createElement(t,{user:this.state.member,groupId:this.props.groupId,key:this.state.member.userId,onClose:this.onClose});break;case b.c.GroupRoomInfo:c=l.a.createElement(s,{groupRoomId:this.state.groupRoomId,groupId:this.props.groupId,key:this.state.groupRoomId});break;case b.c.NotificationPanel:c=l.a.createElement(o,{onClose:this.onClose});break;case b.c.FilePanel:c=l.a.createElement(r,{roomId:d,resizeNotifier:this.props.resizeNotifier,onClose:this.onClose});break;case b.c.RoomSummary:c=l.a.createElement(S.a,{room:this.props.room,onClose:this.onClose});break;case b.c.Widget:c=l.a.createElement(w.a,{room:this.props.room,widgetId:this.state.widgetId,onClose:this.onClose})}return l.a.createElement("aside",{className:"mx_RightPanel dark-panel",id:"mx_RightPanel"},c)}},s()(r,"contextType",y.a),o=i))||o},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return m}));var o=n(82),r=n.n(o),i=n(91),a=n(87),s=n(330),c=n(84),l=n(88),d=n(116),u=n(125),h=n(140);function p(e){return new Promise((t,n)=>{const o=r.a.createElement("div",null,r.a.createElement("div",null,Object(c.a)("Who would you like to add to this community?")),r.a.createElement("div",{className:"warning"},Object(c.a)("Warning: any person you add to a community will be publicly visible to anyone who knows the community ID"))),l=a.getComponent("dialogs.AddressPickerDialog");i.a.createTrackedDialog("Group Invite","",l,{title:Object(c.a)("Invite new community members"),description:o,placeholder:Object(c.a)("Name or Matrix ID"),button:Object(c.a)("Invite to Community"),validAddressTypes:["mx-user-id"],onFinished:(o,r)=>{o&&function(e,t){const n=new s.a(e),o=t.map(e=>e.address);return n.invite(o).then(n=>{const o=[];for(const e of Object.keys(n))"error"===t[e]&&o.push(e);if(o.length>0){const t=a.getComponent("dialogs.ErrorDialog");i.a.createTrackedDialog("Failed to invite the following users to the group","",t,{title:Object(c.a)("Failed to invite the following users to %(groupId)s:",{groupId:e}),description:o.join(", ")})}}).catch(t=>{const n=a.getComponent("dialogs.ErrorDialog");i.a.createTrackedDialog("Failed to invite users to group","",n,{title:Object(c.a)("Failed to invite users to community"),description:Object(c.a)("Failed to invite users to %(groupId)s",{groupId:e})})})}(e,r).then(t,n)}},null,!1,!0)})}function m(e){return new Promise((t,n)=>{let o=!1;const s=r.a.createElement("div",null,r.a.createElement("div",null,Object(c.a)("Which rooms would you like to add to this community?"))),p=r.a.createElement(h.a,{className:"mx_GroupAddressPicker_checkboxContainer",onChange:e=>{o=e.target.checked}},Object(c.a)("Show these rooms to non-members on the community page and room list?")),m=a.getComponent("dialogs.AddressPickerDialog");i.a.createTrackedDialog("Add Rooms to Group","",m,{title:Object(c.a)("Add rooms to the community"),description:s,extraNode:p,placeholder:Object(c.a)("Room name or address"),button:Object(c.a)("Add to community"),pickerType:"room",validAddressTypes:["mx-room-id"],onFinished:(r,s)=>{r&&function(e,t,n){const o=l.a.get(),r=[];return Object(u.a)(t.map(t=>d.a.addRoomToGroup(e,t.address,n).catch(()=>{r.push(t.address)}).then(()=>{const n=t.address,r=o.getRoom(n);if(!r||!r.currentState.mayClientSendStateEvent("m.room.related_groups",o))return;const i=r.currentState.getStateEvents("m.room.related_groups",""),a=i&&i.getContent().groups||[];return a.includes(e)?void 0:(a.push(e),l.a.get().sendStateEvent(n,"m.room.related_groups",{groups:a},""))}))).then(()=>{if(0===r.length)return;const t=a.getComponent("dialogs.ErrorDialog");i.a.createTrackedDialog("Failed to add the following room to the group","",t,{title:Object(c.a)("Failed to add the following rooms to %(groupId)s:",{groupId:e}),description:r.join(", ")})})}(e,s,o).then(t,n)}},null,!1,!0)})}},function(e,t,n){"use strict";(function(t){!function(t){var n=/^(b|B)$/,o={iec:{bits:["b","Kib","Mib","Gib","Tib","Pib","Eib","Zib","Yib"],bytes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},jedec:{bits:["b","Kb","Mb","Gb","Tb","Pb","Eb","Zb","Yb"],bytes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}},r={iec:["","kibi","mebi","gibi","tebi","pebi","exbi","zebi","yobi"],jedec:["","kilo","mega","giga","tera","peta","exa","zetta","yotta"]};function i(e){var t,i,a,s,c,l,d,u,h,p,m,g,f,_,b,v=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},y=[],E=0,S=void 0,w=void 0;if(isNaN(e))throw new TypeError("Invalid number");return i=!0===v.bits,m=!0===v.unix,t=v.base||2,p=void 0!==v.round?v.round:m?1:2,l=void 0!==v.locale?v.locale:"",d=v.localeOptions||{},g=void 0!==v.separator?v.separator:"",f=void 0!==v.spacer?v.spacer:m?"":" ",b=v.symbols||{},_=2===t&&v.standard||"jedec",h=v.output||"string",s=!0===v.fullform,c=v.fullforms instanceof Array?v.fullforms:[],S=void 0!==v.exponent?v.exponent:-1,a=2<t?1e3:1024,(u=(w=Number(e))<0)&&(w=-w),(-1===S||isNaN(S))&&(S=Math.floor(Math.log(w)/Math.log(a)))<0&&(S=0),8<S&&(S=8),"exponent"===h?S:(0===w?(y[0]=0,y[1]=m?"":o[_][i?"bits":"bytes"][S]):(E=w/(2===t?Math.pow(2,10*S):Math.pow(1e3,S)),i&&a<=(E*=8)&&S<8&&(E/=a,S++),y[0]=Number(E.toFixed(0<S?p:0)),y[0]===a&&S<8&&void 0===v.exponent&&(y[0]=1,S++),y[1]=10===t&&1===S?i?"kb":"kB":o[_][i?"bits":"bytes"][S],m&&(y[1]="jedec"===_?y[1].charAt(0):0<S?y[1].replace(/B$/,""):y[1],n.test(y[1])&&(y[0]=Math.floor(y[0]),y[1]=""))),u&&(y[0]=-y[0]),y[1]=b[y[1]]||y[1],!0===l?y[0]=y[0].toLocaleString():0<l.length?y[0]=y[0].toLocaleString(l,d):0<g.length&&(y[0]=y[0].toString().replace(".",g)),"array"===h?y:(s&&(y[1]=c[S]?c[S]:r[_][S]+(i?"bit":"byte")+(1===y[0]?"":"s")),"object"===h?{value:y[0],symbol:y[1],exponent:S}:y.join(f)))}i.partial=function(e){return function(t){return i(t,e)}},e.exports=i}("undefined"!=typeof window&&window)}).call(this,n(6))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(83),r=n.n(o),i=n(228);class a extends i.a{static set matrixClient(e){const t=a._matrixClient;a._matrixClient=e;for(const n of a.instances)n.initMatrixClient(t,e)}constructor(){super(),a.instances.push(this)}get client(){return a._matrixClient}initMatrixClient(e,t){console.warn("initMatrixClient not overridden")}}r()(a,"_matrixClient",void 0),r()(a,"instances",[])},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(7),r=n(152),i=n(103),a=n(1),s=n(0),c=n(83),l=n.n(c);class d extends o.EventEmitter{constructor(e,t,n){super(),l()(this,"_onEventStatus",(e,t)=>{e.isSending()?t===i.a.CANCELLED&&(e.removeListener("Event.status",this._onEventStatus),this._removeEvent(e)):e.removeListener("Event.status",this._onEventStatus)}),l()(this,"_onBeforeRedaction",e=>{this._relations.has(e)&&(this._relations.delete(e),"m.annotation"===this.relationType?this._removeAnnotationFromAggregation(e):"m.replace"===this.relationType&&this._targetEvent&&this._targetEvent.makeReplaced(this.getLastReplacement()),e.removeListener("Event.beforeRedaction",this._onBeforeRedaction),this.emit("Relations.redaction",e))}),this.relationType=e,this.eventType=t,this._relations=new Set,this._annotationsByKey={},this._annotationsBySender={},this._sortedAnnotationsByKey=[],this._targetEvent=null}addEvent(e){if(this._relations.has(e))return;const t=e.getRelation();if(!t)return void s.a.error("Event must have relation info");const n=t.rel_type,o=e.getType();this.relationType===n&&this.eventType===o?(e.isSending()&&e.on("Event.status",this._onEventStatus),this._relations.add(e),"m.annotation"===this.relationType?this._addAnnotationToAggregation(e):"m.replace"===this.relationType&&this._targetEvent&&this._targetEvent.makeReplaced(this.getLastReplacement()),e.on("Event.beforeRedaction",this._onBeforeRedaction),this.emit("Relations.add",e)):s.a.error("Event relation info doesn't match this container")}_removeEvent(e){if(!this._relations.has(e))return;const t=e.getRelation();if(!t)return void s.a.error("Event must have relation info");const n=t.rel_type,o=e.getType();this.relationType===n&&this.eventType===o?(this._relations.delete(e),"m.annotation"===this.relationType?this._removeAnnotationFromAggregation(e):"m.replace"===this.relationType&&this._targetEvent&&this._targetEvent.makeReplaced(this.getLastReplacement()),this.emit("Relations.remove",e)):s.a.error("Event relation info doesn't match this container")}getRelations(){return[...this._relations]}_addAnnotationToAggregation(e){const{key:t}=e.getRelation();if(!t)return;let n=this._annotationsByKey[t];n||(n=this._annotationsByKey[t]=new Set,this._sortedAnnotationsByKey.push([t,n])),n.add(e),this._sortedAnnotationsByKey.sort((e,t)=>{const n=e[1];return t[1].size-n.size});const o=e.getSender();let r=this._annotationsBySender[o];r||(r=this._annotationsBySender[o]=new Set),r.add(e)}_removeAnnotationFromAggregation(e){const{key:t}=e.getRelation();if(!t)return;const n=this._annotationsByKey[t];n&&(n.delete(e),this._sortedAnnotationsByKey.sort((e,t)=>{const n=e[1];return t[1].size-n.size}));const o=e.getSender(),r=this._annotationsBySender[o];r&&r.delete(e)}getSortedAnnotationsByKey(){return"m.annotation"!==this.relationType?null:this._sortedAnnotationsByKey}getAnnotationsBySender(){return"m.annotation"!==this.relationType?null:this._annotationsBySender}getLastReplacement(){if("m.replace"!==this.relationType)return null;if(!this._targetEvent)return null;const e=this._targetEvent.getServerAggregatedRelation("m.replace"),t=e&&e.origin_server_ts;return this.getRelations().reduce((e,n)=>n.getSender()!==this._targetEvent.getSender()||t&&t>n.getTs()||e&&e.getTs()>n.getTs()?e:n,null)}setTargetEvent(e){if(!this._targetEvent&&(this._targetEvent=e,"m.replace"===this.relationType)){const e=this.getLastReplacement();e&&this._targetEvent.makeReplaced(e)}}}let u;function h(e,t){this.room=e,this._timelineSupport=Boolean(t.timelineSupport),this._liveTimeline=new r.a(this),this._unstableClientRelationAggregation=!!t.unstableClientRelationAggregation,this._timelines=[this._liveTimeline],this._eventIdToTimeline={},this._filter=t.filter||null,this._unstableClientRelationAggregation&&(this._relations={})}u=s.a.log.bind(s.a),a.p(h,o.EventEmitter),h.prototype.getTimelines=function(){return this._timelines},h.prototype.getFilter=function(){return this._filter},h.prototype.setFilter=function(e){this._filter=e},h.prototype.getPendingEvents=function(){return this.room?this._filter?this._filter.filterRoomTimeline(this.room.getPendingEvents()):this.room.getPendingEvents():[]},h.prototype.getLiveTimeline=function(){return this._liveTimeline},h.prototype.eventIdToTimeline=function(e){return this._eventIdToTimeline[e]},h.prototype.replaceEventId=function(e,t){const n=this._eventIdToTimeline[e];n&&(delete this._eventIdToTimeline[e],this._eventIdToTimeline[t]=n)},h.prototype.resetLiveTimeline=function(e,t){const n=!this._timelineSupport||!t,o=this._liveTimeline,i=n?o.forkLive(r.a.FORWARDS):o.fork(r.a.FORWARDS);n?(this._timelines=[i],this._eventIdToTimeline={}):this._timelines.push(i),t&&o.setPaginationToken(t,r.a.FORWARDS),i.setPaginationToken(e,r.a.BACKWARDS),this._liveTimeline=i,this.emit("Room.timelineReset",this.room,this,n)},h.prototype.getTimelineForEvent=function(e){const t=this._eventIdToTimeline[e];return void 0===t?null:t},h.prototype.findEventById=function(e){const t=this.getTimelineForEvent(e);if(t)return a.l(t.getEvents(),(function(t){return t.getId()==e}))},h.prototype.addTimeline=function(){if(!this._timelineSupport)throw new Error("timeline support is disabled. Set the 'timelineSupport' parameter to true when creating MatrixClient to enable it.");const e=new r.a(this);return this._timelines.push(e),e},h.prototype.addEventsToTimeline=function(e,t,n,o){if(!n)throw new Error("'timeline' not specified for EventTimelineSet.addEventsToTimeline");if(!t&&n==this._liveTimeline)throw new Error("EventTimelineSet.addEventsToTimeline cannot be used for adding events to the live timeline - use Room.addLiveEvents instead");if(this._filter&&!(e=this._filter.filterRoomTimeline(e)).length)return;const i=t?r.a.BACKWARDS:r.a.FORWARDS,a=t?r.a.FORWARDS:r.a.BACKWARDS;let c=!1,l=!1;for(let o=0;o<e.length;o++){const d=e[o],h=d.getId(),p=this._eventIdToTimeline[h];if(!p){this.addEventToTimeline(d,n,t),l=!0,c=!0;continue}if(l=!1,p==n){u("Event "+h+" already in timeline "+n);continue}const m=n.getNeighbouringTimeline(i);if(m){u(p==m?"Event "+h+" in neighbouring timeline - switching to "+p:"Event "+h+" already in a different timeline "+p),n=p;continue}s.a.info("Already have timeline for "+h+" - joining timeline "+n+" to "+p);const g=p===this._liveTimeline,f=n===this._liveTimeline,_=i===r.a.BACKWARDS&&g,b=i===r.a.FORWARDS&&f;_||b?(_&&s.a.warn("Refusing to set a preceding existingTimeLine on our timeline as the existingTimeLine is live ("+p+")"),b&&s.a.warn("Refusing to set our preceding timeline on a existingTimeLine as our timeline is live ("+n+")")):(n.setNeighbouringTimeline(p,i),p.setNeighbouringTimeline(n,a),n=p,c=!0)}if(l||!c){if(i===r.a.FORWARDS&&n===this._liveTimeline)return s.a.warn({lastEventWasNew:l,didUpdate:c}),void s.a.warn(`Refusing to set forwards pagination token of live timeline ${n} to ${o}`);n.setPaginationToken(o,i)}},h.prototype.addLiveEvent=function(e,t,n){if(this._filter){if(!this._filter.filterRoomTimeline([e]).length)return}const o=this._eventIdToTimeline[e.getId()];if(o)if("replace"===t){u("EventTimelineSet.addLiveEvent: replacing duplicate event "+e.getId());const t=o.getEvents();for(let n=0;n<t.length;n++)if(t[n].getId()===e.getId()){r.a.setEventMetadata(e,o.getState(r.a.FORWARDS),!1),t[n].encryptedType||(t[n]=e);break}}else u("EventTimelineSet.addLiveEvent: ignoring duplicate event "+e.getId());else this.addEventToTimeline(e,this._liveTimeline,!1,n)},h.prototype.addEventToTimeline=function(e,t,n,o){const r=e.getId();t.addEvent(e,n),this._eventIdToTimeline[r]=t,this.setRelationsTarget(e),this.aggregateRelations(e);const i={timeline:t,liveEvent:!n&&t==this._liveTimeline&&!o};this.emit("Room.timeline",e,this.room,Boolean(n),!1,i)},h.prototype.handleRemoteEcho=function(e,t,n){const o=this._eventIdToTimeline[t];o?(delete this._eventIdToTimeline[t],this._eventIdToTimeline[n]=o):this._filter?this._filter.filterRoomTimeline([e]).length&&this.addEventToTimeline(e,this._liveTimeline,!1):this.addEventToTimeline(e,this._liveTimeline,!1)},h.prototype.removeEvent=function(e){const t=this._eventIdToTimeline[e];if(!t)return null;const n=t.removeEvent(e);if(n){delete this._eventIdToTimeline[e];const o={timeline:t};this.emit("Room.timeline",n,this.room,void 0,!0,o)}return n},h.prototype.compareEventOrdering=function(e,t){if(e==t)return 0;const n=this._eventIdToTimeline[e],o=this._eventIdToTimeline[t];if(void 0===n)return null;if(void 0===o)return null;if(n===o){let o,r;const i=n.getEvents();for(let n=0;n<i.length&&(void 0===o||void 0===r);n++){const a=i[n].getId();a==e&&(o=n),a==t&&(r=n)}return o-r}let i=n;for(;i;){if(i===o)return-1;i=i.getNeighbouringTimeline(r.a.FORWARDS)}for(i=n;i;){if(i===o)return 1;i=i.getNeighbouringTimeline(r.a.BACKWARDS)}return null},h.prototype.getRelationsForEvent=function(e,t,n){if(!this._unstableClientRelationAggregation)throw new Error("Client-side relation aggregation is disabled");if(!e||!t||!n)throw new Error("Invalid arguments for `getRelationsForEvent`");return((this._relations[e]||{})[t]||{})[n]},h.prototype.setRelationsTarget=function(e){if(!this._unstableClientRelationAggregation)return;const t=this._relations[e.getId()];if(!t)return;const n=t["m.replace"];if(!n)return;const o=n["m.room.message"];o&&o.setTargetEvent(e)},h.prototype.aggregateRelations=function(e){if(!this._unstableClientRelationAggregation)return;if(e.isRedacted()||e.status===i.a.CANCELLED)return;if(e.isBeingDecrypted())return void e.once("Event.decrypted",()=>{this.aggregateRelations(e)});const t=e.getRelation();if(!t)return;const n=t.event_id,o=t.rel_type,r=e.getType();let a=this._relations[n];a||(a=this._relations[n]={});let s=a[o];s||(s=a[o]={});let c,l=s[r],u=!1;l||(l=s[r]=new d(o,r,this.room),u=!0,c=this.findEventById(n)||this.room.getPendingEvent(n),c&&l.setTargetEvent(c)),l.addEvent(e),u&&c&&c.emit("Event.relationsCreated",o,r)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return M})),n.d(t,"c",(function(){return P})),n.d(t,"a",(function(){return L})),n.d(t,"d",(function(){return V}));var o=n(83),r=n.n(o),i=n(82),a=n.n(i),s=n(84),c=n(87),l=n(88),d=n(109),u=n(114),h=(n(153),n(94)),p=n(194),m=n(281),g=n(244),f=n(89),_=n(196),b=n(91);var v,y,E,S=n(136),w=n(145),C=n(101),T=n(96),x=n(124),O=n(144),k=n(164),R=n(90),D=n(106),I=n(108),A=n(85),N=n(99),F=n(211);const M="dm",P="invite",L="call_transfer";class j{get name(){throw new Error("Member class not implemented")}get userId(){throw new Error("Member class not implemented")}getMxcAvatarUrl(){throw new Error("Member class not implemented")}}class U extends j{constructor(e){super(),r()(this,"_userId",void 0),r()(this,"_displayName",void 0),r()(this,"_avatarUrl",void 0),this._userId=e.user_id,this._displayName=e.display_name,this._avatarUrl=e.avatar_url}get name(){return this._displayName||this._userId}get userId(){return this._userId}getMxcAvatarUrl(){return this._avatarUrl}}class B extends j{constructor(e){super(),r()(this,"_id",void 0),this._id=e}get isEmail(){return this._id.includes("@")}get name(){return this._id}get userId(){return this._id}getMxcAvatarUrl(){return null}}class q extends a.a.PureComponent{constructor(...e){super(...e),r()(this,"_onRemove",e=>{e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.member)})}render(){const e=c.getComponent("views.avatars.BaseAvatar"),t=c.getComponent("elements.AccessibleButton"),o=this.props.member.isEmail?a.a.createElement("img",{className:"mx_InviteDialog_userTile_avatar mx_InviteDialog_userTile_threepidAvatar",src:n(626),width:20,height:20}):a.a.createElement(e,{className:"mx_InviteDialog_userTile_avatar",url:this.props.member.getMxcAvatarUrl()?Object(N.b)(this.props.member.getMxcAvatarUrl()).getSquareThumbnailHttp(20):null,name:this.props.member.name,idName:this.props.member.userId,width:20,height:20});let r;return this.props.onRemove&&(r=a.a.createElement(t,{className:"mx_InviteDialog_userTile_remove",onClick:this._onRemove},a.a.createElement("img",{src:n(1259),alt:Object(s.a)("Remove"),width:8,height:8}))),a.a.createElement("span",{className:"mx_InviteDialog_userTile"},a.a.createElement("span",{className:"mx_InviteDialog_userTile_pill"},o,a.a.createElement("span",{className:"mx_InviteDialog_userTile_name"},this.props.member.name)),r)}}class G extends a.a.PureComponent{constructor(...e){super(...e),r()(this,"_onClick",e=>{e.preventDefault(),e.stopPropagation(),this.props.onToggle(this.props.member)})}_highlightName(e){if(!this.props.highlightWord)return e;const t=e.toLowerCase(),n=this.props.highlightWord.toLowerCase(),o=[];let r,i=0;for(;(r=t.indexOf(n,i))>=0;){r>i&&o.push(a.a.createElement("span",{key:i+"begin"},e.substring(i,r))),i=r;const t=e.substring(i,n.length+i);o.push(a.a.createElement("span",{className:"mx_InviteDialog_roomTile_highlight",key:i+"bold"},t)),i+=t.length}return i<e.length&&o.push(a.a.createElement("span",{key:i+"end"},e.substring(i))),o}render(){const e=c.getComponent("views.avatars.BaseAvatar");let t=null;if(this.props.lastActiveTs){const e=function(e){let t=(new Date).getTime()-e;const n=Math.abs(Math.ceil(t/6e4)),o=Math.ceil(n/60),r=Math.ceil(o/24);return t>=0?t<=15e3?Object(s.a)("a few seconds ago"):t<=75e3?Object(s.a)("about a minute ago"):n<=45?Object(s.a)("%(num)s minutes ago",{num:n}):n<=75?Object(s.a)("about an hour ago"):o<=23?Object(s.a)("%(num)s hours ago",{num:o}):o<=26?Object(s.a)("about a day ago"):Object(s.a)("%(num)s days ago",{num:r}):(t=Math.abs(t),t<=15e3?Object(s.a)("a few seconds from now"):t<=75e3?Object(s.a)("about a minute from now"):n<=45?Object(s.a)("%(num)s minutes from now",{num:n}):n<=75?Object(s.a)("about an hour from now"):o<=23?Object(s.a)("%(num)s hours from now",{num:o}):o<=26?Object(s.a)("about a day from now"):Object(s.a)("%(num)s days from now",{num:r}))}(this.props.lastActiveTs);t=a.a.createElement("span",{className:"mx_InviteDialog_roomTile_time"},e)}const o=this.props.member.isEmail?a.a.createElement("img",{src:n(626),width:36,height:36}):a.a.createElement(e,{url:this.props.member.getMxcAvatarUrl()?Object(N.b)(this.props.member.getMxcAvatarUrl()).getSquareThumbnailHttp(36):null,name:this.props.member.name,idName:this.props.member.userId,width:36,height:36});let r=null;this.props.isSelected&&(r=a.a.createElement("div",{className:"mx_InviteDialog_roomTile_selected"}));const i=a.a.createElement("span",{className:"mx_InviteDialog_roomTile_avatarStack"},o,r),l=this.props.member.isEmail?Object(s.a)("Invite by email"):this._highlightName(this.props.member.userId);return a.a.createElement("div",{className:"mx_InviteDialog_roomTile",onClick:this._onClick},i,a.a.createElement("span",{className:"mx_InviteDialog_roomTile_nameStack"},a.a.createElement("div",{className:"mx_InviteDialog_roomTile_name"},this._highlightName(this.props.member.name)),a.a.createElement("div",{className:"mx_InviteDialog_roomTile_userId"},l)),t)}}let V=Object(A.a)("views.dialogs.InviteDialog")((E=y=class e extends a.a.PureComponent{constructor(t){if(super(t),r()(this,"_debounceTimer",null),r()(this,"_editorRef",null),r()(this,"onConsultFirstChange",e=>{this.setState({consultFirst:e.target.checked})}),r()(this,"_startDm",async()=>{this.setState({busy:!0});const e=l.a.get(),t=this._convertFilter(),n=t.map(e=>e.userId);let o;if(o=1===n.length?Object(S.f)(e,n[0]):u.a.shared().getDMRoomForIdentifiers(n),o)return f.a.dispatch({action:"view_room",room_id:o.roomId,should_peek:!1,joining:!1}),void this.props.onFinished();const r={inlineErrors:!0};if(Object(S.g)()){if(!t.some(e=>e instanceof B)){await Object(S.b)(e,n)&&(r.encryption=!0)}}try{const t=1===n.length&&n[0]===e.getUserId();1!==n.length||t||(r.dmUserId=n[0]),n.length>1&&(r.createOpts=n.reduce((t,n)=>{const o=Object(F.c)(n);if("email"===o){const o={id_server:e.getIdentityServerUrl(!0),medium:"email",address:n};t.invite_3pid.push(o)}else"mx-user-id"===o&&t.invite.push(n);return t},{invite:[],invite_3pid:[]})),await Object(S.c)(r),this.props.onFinished()}catch(e){console.error(e),this.setState({busy:!1,errorText:Object(s.a)("We couldn't create your DM.")})}}),r()(this,"_inviteUsers",async()=>{const e=I.a.getTimestamp();this.setState({busy:!0}),this._convertFilter();const t=this._convertFilter().map(e=>e.userId),n=l.a.get(),o=n.getRoom(this.props.roomId);if(!o)return console.error("Failed to find the room to invite users to"),void this.setState({busy:!1,errorText:Object(s.a)("Something went wrong trying to invite the users.")});try{const r=await Object(w.a)(this.props.roomId,t);if(I.a.instance.trackSendInvite(e,this.props.roomId,t.length),this._shouldAbortAfterInviteError(r)||this.props.onFinished(),n.isRoomEncrypted(this.props.roomId)){const e=o.currentState.getStateEvents("m.room.history_visibility",""),t=e&&e.getContent()&&e.getContent().history_visibility;if("world_readable"==t||"shared"==t){const e=[];for(const[t,n]of Object.entries(r.states))"invited"===n&&"mx-user-id"===Object(F.c)(t)&&e.push(t);console.log("Sharing history with",e),n.sendSharedHistoryKeys(this.props.roomId,e)}}}catch(e){console.error(e),this.setState({busy:!1,errorText:Object(s.a)("We couldn't invite those users. Please check the users you want to invite and try again.")})}}),r()(this,"_transferCall",async()=>{this._convertFilter();const e=this._convertFilter().map(e=>e.userId);if(e.length>1&&this.setState({errorText:Object(s.a)("A call can only be transferred to a single user.")}),this.state.consultFirst){const t=await Object(S.d)(l.a.get(),e[0]);f.a.dispatch({action:"place_call",type:this.props.call.type,room_id:t,transferee:this.props.call}),f.a.dispatch({action:"view_room",room_id:t,should_peek:!1,joining:!1}),this.props.onFinished()}else{this.setState({busy:!0});try{await this.props.call.transfer(e[0]),this.setState({busy:!1}),this.props.onFinished()}catch(e){this.setState({busy:!1,errorText:Object(s.a)("Failed to transfer call")})}}}),r()(this,"_onKeyDown",e=>{if(this.state.busy)return;const t=e.target.value.trim(),n=e.ctrlKey||e.shiftKey||e.metaKey;!t&&this.state.targets.length>0&&e.key===C.a.BACKSPACE&&!n?(e.preventDefault(),this._removeMember(this.state.targets[this.state.targets.length-1])):(t&&e.key===C.a.ENTER&&!n||t&&e.key===C.a.SPACE&&!n&&t.includes("@")&&!t.includes(" "))&&(e.preventDefault(),this._convertFilter())}),r()(this,"_updateSuggestions",async e=>{if(l.a.get().searchUserDirectory({term:e}).then(async t=>{if(e===this.state.filterText){if(t.results||(t.results=[]),"@"===e[0]&&e.indexOf(":")>1)try{const n=await l.a.get().getProfileInfo(e);n&&t.results.splice(0,0,{user_id:e,display_name:n.displayname,avatar_url:n.avatar_url})}catch(n){console.warn("Non-fatal error trying to make an invite for a user ID"),console.warn(n),t.results.splice(0,0,{user_id:e,display_name:e,avatar_url:null})}this.setState({serverResultsMixin:t.results.map(e=>({userId:e.user_id,user:new U(e)}))})}}).catch(e=>{console.error("Error searching user directory:"),console.error(e),this.setState({serverResultsMixin:[]})}),this.state.canUseIdentityServer){if(e.indexOf("@")>0&&p.a(e)&&R.b.getValue(D.a.IdentityServer)){this.setState({threepidResultsMixin:[{user:new B(e),userId:e}]});try{const t=new _.a,n=await t.getAccessToken();if(e!==this.state.filterText)return;const o=await l.a.get().lookupThreePid("email",e,void 0,n);if(e!==this.state.filterText)return;if(!o||!o.mxid)return;const r=await l.a.get().getProfileInfo(o.mxid);if(e!==this.state.filterText||!r)return;this.setState({threepidResultsMixin:[...this.state.threepidResultsMixin,{user:new U({user_id:o.mxid,display_name:r.displayname,avatar_url:r.avatar_url}),userId:o.mxid}]})}catch(e){console.error("Error searching identity server:"),console.error(e),this.setState({threepidResultsMixin:[]})}}}else this.setState({tryingIdentityServer:!0})}),r()(this,"_updateFilter",e=>{const t=e.target.value;this.setState({filterText:t}),this._debounceTimer&&clearTimeout(this._debounceTimer),this._debounceTimer=setTimeout(()=>{this._updateSuggestions(t)},150)}),r()(this,"_showMoreRecents",()=>{this.setState({numRecentsShown:this.state.numRecentsShown+5})}),r()(this,"_showMoreSuggestions",()=>{this.setState({numSuggestionsShown:this.state.numSuggestionsShown+5})}),r()(this,"_toggleMember",e=>{if(!this.state.busy){let t=this.state.filterText;const n=this.state.targets.map(e=>e),o=n.indexOf(e);o>=0?n.splice(o,1):(n.push(e),t=""),this.setState({targets:n,filterText:t}),this._editorRef&&this._editorRef.current&&this._editorRef.current.focus()}}),r()(this,"_removeMember",e=>{const t=this.state.targets.map(e=>e),n=t.indexOf(e);n>=0&&(t.splice(n,1),this.setState({targets:t})),this._editorRef&&this._editorRef.current&&this._editorRef.current.focus()}),r()(this,"_onPaste",async e=>{if(this.state.filterText)return;e.preventDefault();const t=e.clipboardData.getData("text"),n=[...this.state.recents,...this.state.suggestions,...this.state.serverResultsMixin,...this.state.threepidResultsMixin],o=[],r=[],i=t.split(/[\s,]+/).map(e=>e.trim()).filter(e=>!!e);for(const t of i){const i=n.find(e=>e.userId===t);if(i)o.push(i.user);else if(t.indexOf("@")>0&&p.a(t))o.push(new B(t));else if("@"===t[0])try{const e=await l.a.get().getProfileInfo(t),n=e?e.displayname:null,r=e?e.avatar_url:null;o.push(new U({user_id:t,display_name:n,avatar_url:r}))}catch(e){console.error("Error looking up profile for "+t),console.error(e),r.push(t)}else r.push(t)}if(r.length>0){const e=c.getComponent("dialogs.QuestionDialog");b.a.createTrackedDialog("Invite Paste Fail","",e,{title:Object(s.a)("Failed to find the following users"),description:Object(s.a)("The following users might not exist or are invalid, and cannot be invited: %(csvNames)s",{csvNames:r.join(", ")}),button:Object(s.a)("OK")})}this.setState({targets:[...this.state.targets,...o]})}),r()(this,"_onClickInputArea",e=>{e.preventDefault(),e.stopPropagation(),this._editorRef&&this._editorRef.current&&this._editorRef.current.focus()}),r()(this,"_onUseDefaultIdentityServerClick",e=>{e.preventDefault(),Object(m.d)(),this.setState({canUseIdentityServer:!0,tryingIdentityServer:!1})}),r()(this,"_onManageSettingsClick",e=>{e.preventDefault(),f.a.fire(T.a.ViewUserSettings),this.props.onFinished()}),r()(this,"_onCommunityInviteClick",e=>{this.props.onFinished(),Object(w.e)(k.a.instance.getSelectedCommunityId())}),t.kind===P&&!t.roomId)throw new Error("When using KIND_INVITE a roomId is required for an InviteDialog");if(t.kind===L&&!t.call)throw new Error("When using KIND_CALL_TRANSFER a call is required for an InviteDialog");const n=new Set([l.a.get().getUserId(),h.a.get().welcomeUserId]);if(t.roomId){const e=l.a.get().getRoom(t.roomId);if(!e)throw new Error("Room ID given to InviteDialog does not look like a room");e.getMembersWithMembership("invite").forEach(e=>n.add(e.userId)),e.getMembersWithMembership("join").forEach(e=>n.add(e.userId)),e.getMembersWithMembership("ban").forEach(e=>n.add(e.userId)),I.a.instance.trackBeginInvite(t.roomId)}this.state={targets:[],filterText:this.props.initialText,recents:e.buildRecents(n),numRecentsShown:3,suggestions:this._buildSuggestions(n),numSuggestionsShown:3,serverResultsMixin:[],threepidResultsMixin:[],canUseIdentityServer:!!l.a.get().getIdentityServerUrl(),tryingIdentityServer:!1,consultFirst:!1,busy:!1,errorText:null},this._editorRef=Object(i.createRef)()}componentDidMount(){this.props.initialText&&this._updateSuggestions(this.props.initialText)}static buildRecents(e){const t=u.a.shared().getUniqueRoomsWithIndividuals(),n=O.b.instance.orderedLists[x.a.DM]||[],o=l.a.get().getUserId();for(const e of n){const n=e.getJoinedMembers().filter(e=>e.userId!==o);for(const o of n)t[o.userId]||(console.warn(`Adding DM room for ${o.userId} as ${e.roomId} from tag, not DM map`),t[o.userId]=e)}const r=[];for(const n in t){if(e.has(n)){console.warn(`[Invite:Recents] Excluding ${n} from recents`);continue}const o=t[n],i=o.getMember(n);if(!i){console.warn(`[Invite:Recents] ${n} is missing a member object in their own DM (${o.roomId})`);continue}const a=["m.room.message","m.room.encrypted","m.sticker"],s=20;let c=0;if(o.timeline&&o.timeline.length)for(let e=o.timeline.length-1;e>=0;e--){const t=o.timeline[e];if(a.includes(t.getType())){c=t.getTs();break}if(o.timeline.length-e>s)break}c?r.push({userId:n,user:i,lastActive:c}):console.warn(`[Invite:Recents] ${n} (${o.roomId}) has a weird last timestamp: ${c}`)}return r||console.warn("[Invite:Recents] No recents to suggest!"),r.sort((e,t)=>t.lastActive-e.lastActive),r}_buildSuggestions(e){const t=l.a.get().getRooms().filter(e=>"join"===e.getMyMembership()&&e.getJoinedMemberCount()<=200).reduce((t,n)=>{if(u.a.shared().getUserIdForRoomId(n.roomId))return t;const o=n.getJoinedMembers().filter(t=>!e.has(t.userId));for(const r of o)e.has(r.userId)||(t[r.userId]||(t[r.userId]={member:r,pickedMemberRoomSize:n.getJoinedMemberCount(),rooms:[]}),t[r.userId].rooms.push(n),n.getJoinedMemberCount()<t[r.userId].pickedMemberRoomSize&&(t[r.userId].member=r,t[r.userId].pickedMemberRoomSize=n.getJoinedMemberCount()));return t},{}),n=Object.values(t).reduce((e,t)=>{const n=t.rooms.reduce((e,t)=>e+t.getJoinedMemberCount(),0),o=200*t.rooms.length;return e[t.member.userId]={member:t.member,numRooms:t.rooms.length,score:Math.max(0,Math.pow(1-n/o,5))},e},{}),o=l.a.get().getRooms().filter(e=>"join"===e.getMyMembership()),r=(new Date).getTime(),i=r-36e5,a={},s={};for(const t of o){const n=u.a.shared().getUserIdForRoomId(t.roomId);if(Object.keys(t.tags).includes("m.lowpriority")||n)continue;const o=t.getLiveTimeline().getEvents();for(let n=o.length-1;n>=Math.max(0,o.length-50);n--){const r=o[n];if(!e.has(r.getSender())){if(r.getTs()<=i)break;(!a[r.getSender()]||a[r.getSender()]<r.getTs())&&(a[r.getSender()]=r.getTs(),s[r.getSender()]=t.getMember(r.getSender()))}}}for(const e in a){const t=a[e],o=s[e];if(!o)continue;const c=r-i-Math.abs(r-t),l=Math.max(1,c/9e5);let d=n[e];d||(d=n[e]={score:0}),d.member=o,d.score+=l}const c=Object.values(n);return c.sort((e,t)=>e.score===t.score?e.numRooms===t.numRooms?e.member.userId.localeCompare(t.member.userId):t.numRooms-e.numRooms:t.score-e.score),c.map(e=>({userId:e.member.userId,user:e.member}))}_shouldAbortAfterInviteError(e){const t=Object.keys(e.states).filter(t=>"error"===e.states[t]);return t.length>0&&(console.log("Failed to invite users: ",e),this.setState({busy:!1,errorText:Object(s.a)("Failed to invite the following users to chat: %(csvUsers)s",{csvUsers:t.join(", ")})}),!0)}_convertFilter(){if(!this.state.filterText||!this.state.filterText.includes("@"))return this.state.targets||[];let e;this.state.filterText.startsWith("@")?e=new U({user_id:this.state.filterText,display_name:null,avatar_url:null}):R.b.getValue(D.a.IdentityServer)&&(e=new B(this.state.filterText));const t=[...this.state.targets||[],e];return this.setState({targets:t,filterText:""}),t}_renderSection(e){let t="recents"===e?this.state.recents:this.state.suggestions,n="recents"===e?this.state.numRecentsShown:this.state.numSuggestionsShown;const o="recents"===e?this._showMoreRecents.bind(this):this._showMoreSuggestions.bind(this);let r="recents"===e?Object(s.a)("Recent Conversations"):Object(s.a)("Suggestions"),i=null;if("suggestions"===e&&k.a.instance.getSelectedCommunityId()){const e=k.a.instance.getSelectedCommunityName();i=Object(s.a)("May include members not in %(communityName)s",{communityName:e})}this.props.kind===P&&(r="recents"===e?Object(s.a)("Recently Direct Messaged"):Object(s.a)("Suggestions"));let l=[],d=[];const u=this.state.serverResultsMixin||this.state.threepidResultsMixin;if(this.state.filterText&&u&&"suggestions"===e){const e=e=>!t.some(t=>t.userId===e.userId)&&!l.some(t=>t.userId===e.userId)&&!d.some(t=>t.userId===e.userId);d=this.state.serverResultsMixin.filter(e),l=this.state.threepidResultsMixin.filter(e)}const h=l.length>0||d.length>0;if(0===t.length&&!h)return null;if(this.state.filterText){const e=this.state.filterText.toLowerCase();if(t=t.filter(t=>t.user.name.toLowerCase().includes(e)||t.userId.toLowerCase().includes(e)),0===t.length&&!h)return a.a.createElement("div",{className:"mx_InviteDialog_section"},a.a.createElement("h3",null,r),a.a.createElement("p",null,Object(s.a)("No results")))}t=[...l,...t,...d],n===t.length-1&&n++;const p=t.slice(0,n),m=p.length<t.length,g=c.getComponent("elements.AccessibleButton");let f=null;m&&(f=a.a.createElement(g,{onClick:o,kind:"link"},Object(s.a)("Show more")));const _=p.map(t=>{return a.a.createElement(G,{member:t.user,lastActiveTs:(n=t,"recents"===e?n.lastActive:null),key:t.userId,onToggle:this._toggleMember,highlightWord:this.state.filterText,isSelected:this.state.targets.some(e=>e.userId===t.userId)});var n});return a.a.createElement("div",{className:"mx_InviteDialog_section"},a.a.createElement("h3",null,r),i?a.a.createElement("p",{className:"mx_InviteDialog_subname"},i):null,_,f)}_renderEditor(){const e=this.state.targets.map(e=>a.a.createElement(q,{member:e,onRemove:!this.state.busy&&this._removeMember,key:e.userId})),t=a.a.createElement("input",{type:"text",onKeyDown:this._onKeyDown,onChange:this._updateFilter,value:this.state.filterText,ref:this._editorRef,onPaste:this._onPaste,autoFocus:!0,disabled:this.state.busy,autoComplete:"off"});return a.a.createElement("div",{className:"mx_InviteDialog_editor",onClick:this._onClickInputArea},e,t)}_renderIdentityServerWarning(){if(!this.state.tryingIdentityServer||this.state.canUseIdentityServer||!R.b.getValue(D.a.IdentityServer))return null;const e=Object(m.c)();return e?a.a.createElement("div",{className:"mx_AddressPickerDialog_identityServer"},Object(s.a)("Use an identity server to invite by email. <default>Use the default (%(defaultIdentityServerName)s)</default> or manage in <settings>Settings</settings>.",{defaultIdentityServerName:Object(g.a)(e)},{default:e=>a.a.createElement("a",{href:"#",onClick:this._onUseDefaultIdentityServerClick},e),settings:e=>a.a.createElement("a",{href:"#",onClick:this._onManageSettingsClick},e)})):a.a.createElement("div",{className:"mx_AddressPickerDialog_identityServer"},Object(s.a)("Use an identity server to invite by email. Manage in <settings>Settings</settings>.",{},{settings:e=>a.a.createElement("a",{href:"#",onClick:this._onManageSettingsClick},e)}))}render(){const e=c.getComponent("views.dialogs.BaseDialog"),t=c.getComponent("elements.AccessibleButton"),o=c.getComponent("elements.Spinner");let r,i,u,h,p,m=null;this.state.busy&&(m=a.a.createElement(o,{w:20,h:20}));let g=a.a.createElement("span",null);const f=R.b.getValue(D.a.IdentityServer),_=l.a.get(),b=_.getUserId();if(this.props.kind===M){if(r=Object(s.a)("Direct Messages"),i=f?Object(s.a)("Start a conversation with someone using their name, email address or username (like <userId/>).",{},{userId:()=>a.a.createElement("a",{href:Object(d.h)(b),rel:"noreferrer noopener",target:"_blank"},b)}):Object(s.a)("Start a conversation with someone using their name or username (like <userId/>).",{},{userId:()=>a.a.createElement("a",{href:Object(d.h)(b),rel:"noreferrer noopener",target:"_blank"},b)}),k.a.instance.getSelectedCommunityId()){const e=k.a.instance.getSelectedCommunityName(),n=Object(s.a)("This won't invite them to %(communityName)s. To invite someone to %(communityName)s, click <a>here</a>",{communityName:e},{userId:()=>a.a.createElement("a",{href:Object(d.h)(b),rel:"noreferrer noopener",target:"_blank"},b),a:e=>a.a.createElement(t,{kind:"link",onClick:this._onCommunityInviteClick},e)});i=a.a.createElement(a.a.Fragment,null,i," ",n)}u=Object(s.a)("Go"),h=this._startDm}else if(this.props.kind===P){var v;const e=null===(v=l.a.get())||void 0===v?void 0:v.getRoom(this.props.roomId),t=null==e?void 0:e.isSpaceRoom();let o;if(r=t?Object(s.a)("Invite to %(spaceName)s",{spaceName:e.name||Object(s.a)("Unnamed Space")}):Object(s.a)("Invite to %(roomName)s",{roomName:e.name||Object(s.a)("Unnamed Room")}),o=t?f?Object(s.b)("Invite someone using their name, email address, username (like <userId/>) or <a>share this space</a>."):Object(s.b)("Invite someone using their name, username (like <userId/>) or <a>share this space</a>."):f?Object(s.b)("Invite someone using their name, email address, username (like <userId/>) or <a>share this room</a>."):Object(s.b)("Invite someone using their name, username (like <userId/>) or <a>share this room</a>."),i=Object(s.a)(o,{},{userId:()=>a.a.createElement("a",{href:Object(d.h)(b),rel:"noreferrer noopener",target:"_blank"},b),a:e=>a.a.createElement("a",{href:Object(d.g)(this.props.roomId),rel:"noreferrer noopener",target:"_blank"},e)}),u=Object(s.a)("Invite"),h=this._inviteUsers,_.isRoomEncrypted(this.props.roomId)){const e=_.getRoom(this.props.roomId).currentState.getStateEvents("m.room.history_visibility",""),t=e&&e.getContent()&&e.getContent().history_visibility;"world_readable"!==t&&"shared"!==t||(g=a.a.createElement("p",{className:"mx_InviteDialog_helpText"},a.a.createElement("img",{src:n(1260),width:14,height:14})," "+Object(s.a)("Invited people will be able to read old messages.")))}}else this.props.kind===L?(r=Object(s.a)("Transfer"),u=Object(s.a)("Transfer"),h=this._transferCall,p=a.a.createElement("div",null,a.a.createElement("label",null,a.a.createElement("input",{type:"checkbox",checked:this.state.consultFirst,onChange:this.onConsultFirstChange}),Object(s.a)("Consult first")))):console.error("Unknown kind of InviteDialog: "+this.props.kind);const y=this.state.targets.length>0||this.state.filterText&&this.state.filterText.includes("@");return a.a.createElement(e,{className:"mx_InviteDialog",hasCancel:!0,onFinished:this.props.onFinished,title:r},a.a.createElement("div",{className:"mx_InviteDialog_content"},a.a.createElement("p",{className:"mx_InviteDialog_helpText"},i),a.a.createElement("div",{className:"mx_InviteDialog_addressBar"},this._renderEditor(),a.a.createElement("div",{className:"mx_InviteDialog_buttonAndSpinner"},a.a.createElement(t,{kind:"primary",onClick:h,className:"mx_InviteDialog_goButton",disabled:this.state.busy||!y},u),m)),g,this._renderIdentityServerWarning(),a.a.createElement("div",{className:"error"},this.state.errorText),a.a.createElement("div",{className:"mx_InviteDialog_userSections"},this._renderSection("recents"),this._renderSection("suggestions")),p))}},r()(y,"defaultProps",{kind:M,initialText:""}),v=E))||v},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var o=n(83),r=n.n(o),i=n(82),a=n.n(i),s=n(92),c=n.n(s),l=n(123),d=n(219),u=n(166),h=n(88),p=n(94);var m,g,f=n(84),_=n(220),b=n(114),v=n(85);function y(e){switch(e){case g.Globe:return Object(f.a)("This room is public");case g.PresenceOnline:return Object(f.a)("Online");case g.PresenceAway:return Object(f.a)("Away");case g.PresenceOffline:return Object(f.a)("Offline")}}!function(e){e.None="NONE",e.Globe="GLOBE",e.PresenceOnline="ONLINE",e.PresenceAway="AWAY",e.PresenceOffline="OFFLINE"}(g||(g={}));let E=Object(v.a)("views.avatars.DecoratedRoomAvatar")(m=class extends a.a.PureComponent{constructor(e){super(e),r()(this,"_dmUser",void 0),r()(this,"isUnmounted",!1),r()(this,"isWatchingTimeline",!1),r()(this,"onRoomTimeline",(e,t)=>{this.isUnmounted||t&&this.props.room.roomId===t.roomId&&("m.room.join_rules"!==e.getType()&&"m.room.member"!==e.getType()||this.setState({icon:this.calculateIcon()}))}),r()(this,"onPresenceUpdate",()=>{if(this.isUnmounted)return;const e=this.getPresenceIcon();e!==this.state.icon&&this.setState({icon:e})}),this.state={notificationState:u.a.instance.getRoomState(this.props.room),icon:this.calculateIcon()}}componentWillUnmount(){this.isUnmounted=!0,this.isWatchingTimeline&&this.props.room.off("Room.timeline",this.onRoomTimeline),this.dmUser=null}get isPublicRoom(){const e=this.props.room.currentState.getStateEvents("m.room.join_rules","");return"public"===(e&&e.getContent().join_rule)}get dmUser(){return this._dmUser}set dmUser(e){const t=this._dmUser;this._dmUser=e,t&&t!==this._dmUser&&(t.off("User.currentlyActive",this.onPresenceUpdate),t.off("User.presence",this.onPresenceUpdate)),this._dmUser&&t!==this._dmUser&&(this._dmUser.on("User.currentlyActive",this.onPresenceUpdate),this._dmUser.on("User.presence",this.onPresenceUpdate))}getPresenceIcon(){if(!this.dmUser)return g.None;let e=g.None;return this.dmUser.currentlyActive||"online"===this.dmUser.presence?e=g.PresenceOnline:"offline"===this.dmUser.presence?e=g.PresenceOffline:"unavailable"===this.dmUser.presence&&(e=g.PresenceAway),e}calculateIcon(){let e=g.None;const t=b.a.shared().getUserIdForRoomId(this.props.room.roomId);return t&&2===this.props.room.getJoinedMemberCount()?function(){const e=h.a.get().baseUrl,t=p.a.get().enable_presence_by_hs_url;return!t||!(!t[e]&&void 0!==t[e])}()&&t&&(this.dmUser=h.a.get().getUser(t),e=this.getPresenceIcon()):(e=this.isPublicRoom?g.Globe:g.None,this.isWatchingTimeline||(this.props.room.on("Room.timeline",this.onRoomTimeline),this.isWatchingTimeline=!0)),e}render(){let e,t;this.props.displayBadge&&(e=a.a.createElement(d.a,{notification:this.state.notificationState,forceCount:this.props.forceCount,roomId:this.props.room.roomId})),this.state.icon!==g.None&&(t=a.a.createElement(_.a,{tooltip:y(this.state.icon),class:"mx_DecoratedRoomAvatar_icon mx_DecoratedRoomAvatar_icon_"+this.state.icon.toLowerCase()}));const n=c()("mx_DecoratedRoomAvatar",{mx_DecoratedRoomAvatar_cutout:t});return a.a.createElement("div",{className:n},a.a.createElement(l.a,{room:this.props.room,width:this.props.avatarSize,height:this.props.avatarSize,oobData:this.props.oobData,viewAvatarOnClick:this.props.viewAvatarOnClick}),t,e)}})||m},function(e,t,n){"use strict";var o=n(95),r=n.n(o),i=n(100),a=n.n(i),s=n(82),c=n.n(s),l=n(3),d=n(178),u=n(102),h=n(84),p=n(132),m=n(250),g=n(229),f=n(89),_=n(90),b=n(91),v=n(149),y=n(130),E=n(138),S=n(97),w=n(173),C=n(88),T=n(94),x=n(5);function O(){return T.a.get().audioStreamUrl}async function k(e,t){const n=await async function(e){const t=await C.a.get().getOpenIdToken(),n=O()+"/createStream",o=await window.fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({room_id:e,openid_token:t})});return(await o.json()).stream_id}(t);await e.transport.send(x.a.StartLiveStream,{rtmpStreamKey:"rtmp://audiostream.dummy/"+n})}t.a=e=>{let{onFinished:t,app:n,userWidget:o,onDeleteClick:i,showUnpin:C}=e,T=a()(e,["onFinished","app","userWidget","onDeleteClick","showUnpin"]);const x=Object(s.useContext)(S.a),{room:R,roomId:D}=Object(s.useContext)(g.a),I=m.a.instance.getMessagingForId(n.id),A=o||p.a.canUserModifyWidgets(D);let N,F,M,P,L;if(O()&&E.a.JITSI.matches(n.type)){const e=async()=>{try{await k(I,D)}catch(e){console.error("Failed to start livestream",e);const t=e.message||Object(h.a)("Unable to start audio streaming.");b.a.createTrackedDialog("WidgetContext Menu","Livestream failed",y.a,{title:Object(h.a)("Failed to start livestream"),description:t})}t()};N=c.a.createElement(d.b,{onClick:e,label:Object(h.a)("Start audio stream")})}if(C){const e=()=>{w.d.instance.moveToContainer(R,n,w.a.Right),t()};F=c.a.createElement(d.b,{onClick:e,label:Object(h.a)("Unpin")})}if(A&&p.a.isManagedByManager(n)){const e=()=>{p.a.editWidget(R,n),t()};M=c.a.createElement(d.b,{onClick:e,label:Object(h.a)("Edit")})}if(null!=I&&I.hasCapability(l.MatrixCapabilities.Screenshots)){const e=()=>{null==I||I.takeScreenshot().then(e=>{f.a.dispatch({action:"picture_snapshot",file:e.screenshot})}).catch(e=>{console.error("Failed to take screenshot: ",e)}),t()};P=c.a.createElement(d.b,{onClick:e,label:Object(h.a)("Take a picture")})}if(i||A){const e=()=>{b.a.createTrackedDialog("Delete Widget","",v.a,{title:Object(h.a)("Delete Widget"),description:Object(h.a)("Deleting a widget removes it for all users in this room. Are you sure you want to delete this widget?"),button:Object(h.a)("Delete widget"),onFinished:e=>{e&&p.a.setRoomWidget(D,n.id)}}),t()};L=c.a.createElement(d.b,{onClick:i||e,label:o?Object(h.a)("Remove"):Object(h.a)("Remove for everyone")})}let j=_.b.getValue("allowedWidgets",D)[n.eventId];void 0===j&&(j=n.creatorUserId===x.getUserId());const U=E.a.JITSI.matches(n.type);let B;if(!o&&!U&&j){const e=()=>{console.info("Revoking permission for widget to load: "+n.eventId);const e=_.b.getValue("allowedWidgets",D);e[n.eventId]=!1;const o=_.b.firstSupportedLevel("allowedWidgets");_.b.setValue("allowedWidgets",D,o,e).catch(e=>{console.error(e)}),t()};B=c.a.createElement(d.b,{onClick:e,label:Object(h.a)("Revoke permissions")})}const q=w.d.instance.getContainerWidgets(R,w.a.Top),G=q.findIndex(e=>e.id===n.id);let V,H;if(C&&G>0){const e=()=>{w.d.instance.moveWithinContainer(R,w.a.Top,n,-1),t()};V=c.a.createElement(d.b,{onClick:e,label:Object(h.a)("Move left")})}if(C&&G<q.length-1){const e=()=>{w.d.instance.moveWithinContainer(R,w.a.Top,n,1),t()};H=c.a.createElement(d.b,{onClick:e,label:Object(h.a)("Move right")})}return c.a.createElement(d.e,r()({},T,{chevronFace:u.a.None,onFinished:t}),c.a.createElement(d.c,null,N,M,B,L,P,V,H,F))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(7),r=n(153),i=n(0),a=n(1),s=n(110);function c(e,t){this.roomId=e,this.members={},this.events=new Map,this.paginationToken=null,this._sentinels={},this._updateModifiedTime(),this._displayNameToUserIds={},this._userIdsToDisplayNames={},this._tokenToInvite={},this._joinedMemberCount=null,this._summaryJoinedMemberCount=null,this._invitedMemberCount=null,this._summaryInvitedMemberCount=null,t||(t={status:1}),this._oobMemberFlags=t}function l(e,t,n){const o=e._userIdsToDisplayNames[t];if(delete e._userIdsToDisplayNames[t],o){const n=a.A(o),r=e._displayNameToUserIds[n];if(r){const o=r.filter(e=>e!==t);e._displayNameToUserIds[n]=o}}e._userIdsToDisplayNames[t]=n;const r=n&&a.A(n);r&&(e._displayNameToUserIds[r]||(e._displayNameToUserIds[r]=[]),e._displayNameToUserIds[r].push(t))}a.p(c,o.EventEmitter),c.prototype.getJoinedMemberCount=function(){return null!==this._summaryJoinedMemberCount?this._summaryJoinedMemberCount:(null===this._joinedMemberCount&&(this._joinedMemberCount=this.getMembers().reduce((e,t)=>"join"===t.membership?e+1:e,0)),this._joinedMemberCount)},c.prototype.setJoinedMemberCount=function(e){this._summaryJoinedMemberCount=e},c.prototype.getInvitedMemberCount=function(){return null!==this._summaryInvitedMemberCount?this._summaryInvitedMemberCount:(null===this._invitedMemberCount&&(this._invitedMemberCount=this.getMembers().reduce((e,t)=>"invite"===t.membership?e+1:e,0)),this._invitedMemberCount)},c.prototype.setInvitedMemberCount=function(e){this._summaryInvitedMemberCount=e},c.prototype.getMembers=function(){return a.C(this.members)},c.prototype.getMembersExcept=function(e){return a.C(this.members).filter(t=>!e.includes(t.userId))},c.prototype.getMember=function(e){return this.members[e]||null},c.prototype.getSentinelMember=function(e){if(!e)return null;let t=this._sentinels[e];if(void 0===t){t=new r.a(this.roomId,e);const n=this.members[e];n&&t.setMembershipEvent(n.events.member,this),this._sentinels[e]=t}return t},c.prototype.getStateEvents=function(e,t){if(!this.events.has(e))return void 0===t?[]:null;if(void 0===t)return Array.from(this.events.get(e).values());const n=this.events.get(e).get(t);return n||null},c.prototype.clone=function(){const e=new c(this.roomId,this._oobMemberFlags),t=this._oobMemberFlags.status;return this._oobMemberFlags.status=1,Array.from(this.events.values()).forEach(t=>{e.setStateEvents(Array.from(t.values()))}),this._oobMemberFlags.status=t,null!==this._summaryInvitedMemberCount&&e.setInvitedMemberCount(this.getInvitedMemberCount()),null!==this._summaryJoinedMemberCount&&e.setJoinedMemberCount(this.getJoinedMemberCount()),3==this._oobMemberFlags.status&&this.getMembers().forEach(t=>{if(t.isOutOfBand()){e.getMember(t.userId).markOutOfBand()}}),e},c.prototype.setUnknownStateEvents=function(e){const t=e.filter(e=>!this.events.has(e.getType())||!this.events.get(e.getType()).has(e.getStateKey()));this.setStateEvents(t)},c.prototype.setStateEvents=function(e){const t=this;this._updateModifiedTime(),a.m(e,(function(e){if(e.getRoomId()!==t.roomId)return;if(!e.isState())return;const n=t._getStateEventMatching(e);t._setStateEvent(e),"m.room.member"===e.getType()&&(l(t,e.getStateKey(),e.getContent().displayname),function(e,t){if(!t.getContent().third_party_invite)return;const n=(t.getContent().third_party_invite.signed||{}).token;if(!n)return;if(!e.getStateEvents("m.room.third_party_invite",n))return;e._tokenToInvite[n]=t}(t,e)),t.emit("RoomState.events",e,t,n)})),a.m(e,(function(e){if(e.getRoomId()===t.roomId&&e.isState())if("m.room.member"===e.getType()){const n=e.getStateKey();"leave"!==e.getContent().membership&&"ban"!==e.getContent().membership||(e.getContent().avatar_url=e.getContent().avatar_url||e.getPrevContent().avatar_url,e.getContent().displayname=e.getContent().displayname||e.getPrevContent().displayname);const o=t._getOrCreateMember(n,e);o.setMembershipEvent(e,t),t._updateMember(o),t.emit("RoomState.members",e,t,o)}else if("m.room.power_levels"===e.getType()){const n=a.C(t.members);a.m(n,(function(n){const o=n.getLastModifiedTime();n.setPowerLevelEvent(e),o!==n.getLastModifiedTime()&&t.emit("RoomState.members",e,t,n)})),t._sentinels={}}}))},c.prototype._getOrCreateMember=function(e,t){let n=this.members[e];return n||(n=new r.a(this.roomId,e),this.members[e]=n,this.emit("RoomState.newMember",t,this,n)),n},c.prototype._setStateEvent=function(e){this.events.has(e.getType())||this.events.set(e.getType(),new Map),this.events.get(e.getType()).set(e.getStateKey(),e)},c.prototype._getStateEventMatching=function(e){return this.events.has(e.getType())?this.events.get(e.getType()).get(e.getStateKey()):null},c.prototype._updateMember=function(e){const t=this.getStateEvents("m.room.power_levels","");t&&e.setPowerLevelEvent(t),delete this._sentinels[e.userId],this.members[e.userId]=e,this._joinedMemberCount=null,this._invitedMemberCount=null},c.prototype.needsOutOfBandMembers=function(){return 1===this._oobMemberFlags.status},c.prototype.markOutOfBandMembersStarted=function(){1===this._oobMemberFlags.status&&(this._oobMemberFlags.status=2)},c.prototype.markOutOfBandMembersFailed=function(){2===this._oobMemberFlags.status&&(this._oobMemberFlags.status=1)},c.prototype.clearOutOfBandMembers=function(){let e=0;Object.keys(this.members).forEach(t=>{this.members[t].isOutOfBand()&&(++e,delete this.members[t])}),i.a.log(`LL: RoomState removed ${e} members...`),this._oobMemberFlags.status=1},c.prototype.setOutOfBandMembers=function(e){i.a.log(`LL: RoomState about to set ${e.length} OOB members ...`),2===this._oobMemberFlags.status&&(i.a.log("LL: RoomState put in OOB_STATUS_FINISHED state ..."),this._oobMemberFlags.status=3,e.forEach(e=>this._setOutOfBandMember(e)))},c.prototype._setOutOfBandMember=function(e){if("m.room.member"!==e.getType())return;const t=e.getStateKey(),n=this.getMember(t);if(n&&!n.isOutOfBand())return;const o=this._getOrCreateMember(t,e);o.setMembershipEvent(e,this),o.markOutOfBand(),l(this,o.userId,o.name),this._setStateEvent(e),this._updateMember(o),this.emit("RoomState.members",e,this,o)},c.prototype.setTypingEvent=function(e){a.m(a.C(this.members),(function(t){t.setTypingEvent(e)}))},c.prototype.getInviteForThreePidToken=function(e){return this._tokenToInvite[e]||null},c.prototype._updateModifiedTime=function(){this._modified=Date.now()},c.prototype.getLastModifiedTime=function(){return this._modified},c.prototype.getUserIdsWithDisplayName=function(e){return this._displayNameToUserIds[a.A(e)]||[]},c.prototype.maySendRedactionForEvent=function(e,t){const n=this.getMember(t);if(!n||"leave"===n.membership)return!1;if(e.status||e.isRedacted())return!1;const o=this.maySendEvent("m.room.redaction",t);return e.getSender()===t?o:this._hasSufficientPowerLevelFor("redact",n.powerLevel)},c.prototype._hasSufficientPowerLevelFor=function(e,t){const n=this.getStateEvents("m.room.power_levels","");let o={};n&&(o=n.getContent());let r=50;return a.t(o[e])&&(r=o[e]),t>=r},c.prototype.maySendMessage=function(e){return this._maySendEventOfType("m.room.message",e,!1)},c.prototype.maySendEvent=function(e,t){return this._maySendEventOfType(e,t,!1)},c.prototype.mayClientSendStateEvent=function(e,t){return!t.isGuest()&&this.maySendStateEvent(e,t.credentials.userId)},c.prototype.maySendStateEvent=function(e,t){return this._maySendEventOfType(e,t,!0)},c.prototype._maySendEventOfType=function(e,t,n){const o=this.getStateEvents("m.room.power_levels","");let r,i={},a=0,s=0,c=0;if(o){r=o.getContent(),i=r.events||{},a=Number.isFinite(r.state_default)?r.state_default:50;const e=r.users&&r.users[t];Number.isFinite(e)?c=e:Number.isFinite(r.users_default)&&(c=r.users_default),Number.isFinite(r.events_default)&&(s=r.events_default)}let l=n?a:s;return Number.isFinite(i[e])&&(l=i[e]),c>=l},c.prototype.mayTriggerNotifOfType=function(e,t){const n=this.getMember(t);if(!n)return!1;const o=this.getStateEvents("m.room.power_levels","");let r=50;return o&&o.getContent()&&o.getContent().notifications&&a.t(o.getContent().notifications[e])&&(r=o.getContent().notifications[e]),n.powerLevel>=r},c.prototype.getJoinRule=function(){const e=this.getStateEvents(s.a.RoomJoinRules,"");return(e?e.getContent():{}).join_rule||"invite"}},function(e,t,n){"use strict";function o(e){const t=e.embeddedPages;let n=null==t?void 0:t.homeUrl;return n||(n=e.welcomePageUrl),n}function r(e){const t=e.embeddedPages;return!0===(null==t?void 0:t.loginForWelcome)}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(83),r=n.n(o);class i{get action(){return"NOT_USED"}constructor(e){r()(this,"fn",void 0),this.fn=e}}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o=n(82),r=n.n(o),i=n(110),a=n(92),s=n.n(a),c=n(93),l=n(97),d=n(506),u=n(120),h=n(108),p=n(229);const m=52;t.b=({hasAvatar:e,hasAvatarLabel:t,noAvatarLabel:n,setAvatarUrl:a,children:m})=>{const g=Object(o.useContext)(l.a),[f,_]=Object(o.useState)(!1),[b,v]=Object(o.useState)(!1),[y,E]=Object(o.useState)(!1);Object(d.b)(()=>{E(!0)},3e3),Object(d.b)(()=>{E(!1)},13e3);const S=Object(o.useRef)(),w=e||f?t:n,{room:C}=Object(o.useContext)(p.a);if(!(null==C?void 0:C.currentState.maySendStateEvent(i.a.RoomAvatar,g.getUserId())))return r.a.createElement(r.a.Fragment,null,m);const T=!!w&&(b||y);return r.a.createElement(r.a.Fragment,null,r.a.createElement("input",{type:"file",ref:S,className:"mx_MiniAvatarUploader_input",onChange:async e=>{var t;if(null===(t=e.target.files)||void 0===t||!t.length)return;_(!0),u.a.trackEvent("mini_avatar","upload"),h.a.instance.track("mini_avatar_upload");const n=e.target.files[0],o=await g.uploadContent(n);await a(o),_(!1)},accept:"image/*"}),r.a.createElement(c.a,{className:s()("mx_MiniAvatarUploader",{mx_MiniAvatarUploader_busy:f,mx_MiniAvatarUploader_hasAvatar:e}),disabled:f,onClick:()=>{S.current.click()},onMouseOver:()=>v(!0),onMouseLeave:()=>v(!1)},m,r.a.createElement("div",{className:s()("mx_Tooltip",{mx_Tooltip_visible:T,mx_Tooltip_invisible:!T})},r.a.createElement("div",{className:"mx_Tooltip_chevron"}),w)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(367);function r(e,t,n){return new o.a(o=>{o({action:e+".pending",request:"function"==typeof n?n():void 0}),t().then(t=>{o({action:e+".success",result:t})}).catch(t=>{o({action:e+".failure",err:t})})})}},function(e,t,n){var o=n(793);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(233);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var o=n(375)("keys"),r=n(312);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(142),r=n(181),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:n(311)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){"use strict";t.__esModule=!0;var o=a(n(796)),r=a(n(808)),i="function"==typeof r.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof r.default&&"symbol"===i(o.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":void 0===e?"undefined":i(e)}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(232),r=n(800),i=n(380),a=n(374)("IE_PROTO"),s=function(){},c=function(){var e,t=n(515)("iframe"),o=i.length;for(t.style.display="none",n(803).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;o--;)delete c.prototype[i[o]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=o(e),n=new s,s.prototype=null,n[a]=e):n=c(),void 0===t?n:r(n,t)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var o=n(182).f,r=n(207),i=n(163)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){t.f=n(163)},function(e,t,n){var o=n(181),r=n(142),i=n(311),a=n(382),s=n(182).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){return n<=t&&n>=e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(533),i=(o=r)&&o.__esModule?o:{default:o},a=n(271);t.default=function(e){var t=e.target,n=e.destination,o=e.viewport,r=n.viewport.frameScroll.diff.displacement,s=(0,a.offset)(t,r);if(!n.viewport.clipped)return!1;var c=(0,i.default)(n.viewport.clipped)(s),l=(0,i.default)(o)(s);return c&&l}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}},function(e,t,n){"use strict";function o(e,t){return e===t}function r(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var o=t.length,r=0;r<o;r++)if(!e(t[r],n[r]))return!1;return!0}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,n=null,i=null;return function(){return r(t,n,arguments)||(i=e.apply(null,arguments)),n=arguments,i}}function a(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function s(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return function(){for(var t=arguments.length,o=Array(t),r=0;r<t;r++)o[r]=arguments[r];var s=0,c=o.pop(),l=a(o),d=e.apply(void 0,[function(){return s++,c.apply(null,arguments)}].concat(n)),u=i((function(){for(var e=[],t=l.length,n=0;n<t;n++)e.push(l[n].apply(null,arguments));return d.apply(null,e)}));return u.resultFunc=c,u.recomputations=function(){return s},u.resetRecomputations=function(){return s=0},u}}t.__esModule=!0,t.defaultMemoize=i,t.createSelectorCreator=s,t.createStructuredSelector=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.reduce((function(e,t,o){return e[n[o]]=t,e}),{})}))};var c=t.createSelector=s(i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return{x:window.pageXOffset,y:window.pageYOffset}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=0);return t},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n,r,i,a,s){var c=n+(-i*(t-r)+-a*n)*e,l=t+c*e;if(Math.abs(c)<s&&Math.abs(l-r)<s)return o[0]=r,o[1]=0,o;return o[0]=l,o[1]=c,o};var o=[0,0];e.exports=t.default},function(e,t,n){(function(t){(function(){var n,o,r;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(n()-r)/1e6},o=t.hrtime,r=(n=function(){var e;return 1e9*(e=o())[0]+e[1]})()):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)}).call(this,n(227))},function(e,t,n){(function(t){for(var o=n(907),r="undefined"==typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",s=r["request"+a],c=r["cancel"+a]||r["cancelRequest"+a],l=0;!s&&l<i.length;l++)s=r[i[l]+"Request"+a],c=r[i[l]+"Cancel"+a]||r[i[l]+"CancelRequest"+a];if(!s||!c){var d=0,u=0,h=[];s=function(e){if(0===h.length){var t=o(),n=Math.max(0,1e3/60-(t-d));d=n+t,setTimeout((function(){var e=h.slice(0);h.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(d)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return h.push({handle:++u,callback:e,cancelled:!1}),u},c=function(e){for(var t=0;t<h.length;t++)h[t].handle===e&&(h[t].cancelled=!0)}}e.exports=function(e){return s.call(r,e)},e.exports.cancel=function(){c.apply(r,arguments)},e.exports.polyfill=function(e){e||(e=r),e.requestAnimationFrame=s,e.cancelAnimationFrame=c}}).call(this,n(6))},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){if(0!==n[o])return!1;var r="number"==typeof t[o]?t[o]:t[o].val;if(e[o]!==r)return!1}return!0},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(143)),r=i(n(545));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n=function(e){t()&&e()},i=(0,o.default)((function(t,n){var o={x:t,y:n};e.onMove(o)}));return{move:(0,r.default)((function(e){n((function(){return i(e.x,e.y)}))})),moveForward:(0,r.default)((function(){n(e.onMoveForward)})),moveBackward:(0,r.default)((function(){n(e.onMoveBackward)})),crossAxisMoveForward:(0,r.default)((function(){n(e.onCrossAxisMoveForward)})),crossAxisMoveBackward:(0,r.default)((function(){n(e.onCrossAxisMoveBackward)})),windowScrollMove:(0,r.default)((function(){n(e.onWindowScroll)}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e?e.ownerDocument.defaultView:window}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.tab=9,t.enter=13,t.escape=27,t.space=32,t.arrowLeft=37,t.arrowUp=38,t.arrowRight=39,t.arrowDown=40},function(e,t,n){"use strict";function o(e,t){return e.size!==t.size||(!!Array.from(t).some(t=>!e.has(t))||!!Array.from(e).some(e=>!t.has(e)))}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(83),r=n.n(o);class i{constructor(e){r()(this,"target",void 0),this.target=e}reEmit(e,t){for(const n of t){const t=(...t)=>{"error"===n&&0===this.target.listenerCount("error")||this.target.emit(n,...t,e)};e.on(n,t)}}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var o=n(83),r=n.n(o);class i{forEvent(e,t,n){throw new Error("Not implemented")}forRoom(e,t){throw new Error("Not implemented")}forGroup(e){throw new Error("Not implemented")}forUser(e){throw new Error("Not implemented")}forEntity(e){throw new Error("Not implemented")}isPermalinkHost(e){throw new Error("Not implemented")}parsePermalink(e){throw new Error("Not implemented")}}class a{constructor(e,t,n,o,i){r()(this,"roomIdOrAlias",void 0),r()(this,"eventId",void 0),r()(this,"userId",void 0),r()(this,"groupId",void 0),r()(this,"viaServers",void 0),this.roomIdOrAlias=e,this.eventId=t,this.groupId=o,this.userId=n,this.viaServers=i}static forUser(e){return new a(null,null,e,null,null)}static forGroup(e){return new a(null,null,null,e,null)}static forRoom(e,t){return new a(e,null,null,null,t||[])}static forEvent(e,t,n){return new a(e,t,null,null,n||[])}get primaryEntityId(){return this.roomIdOrAlias||this.userId||this.groupId}get sigil(){return this.primaryEntityId[0]}}},function(e,t,n){"use strict";var o=n(553),r=n(109);function i(e){const t=e.scanner.TOKENS,n=e.parser.TOKENS.Base,o=e.parser.start;if(void 0===t.UNDERSCORE)throw new Error("linkify-matrix requires linkifyjs 2.1.1: this version is too old.");const r=function(e){n.call(this,e),this.type="roomalias",this.isLink=!0};r.prototype=new n;const i=o.jump(t.POUND),a=new e.parser.State,s=new e.parser.State,c=new e.parser.State(r),l=new e.parser.State,d=new e.parser.State(r),u=new e.parser.State,h=new e.parser.State(r),p=[t.DOT,t.PLUS,t.NUM,t.DOMAIN,t.TLD,t.UNDERSCORE,t.POUND,t.LOCALHOST];i.on(p,a),a.on(p,a),a.on(t.DOMAIN,a),a.on(t.COLON,s),s.on(t.DOMAIN,c),s.on(t.LOCALHOST,d),s.on(t.TLD,d),c.on(t.DOT,l),l.on(t.DOMAIN,c),l.on(t.TLD,d),d.on(t.DOT,l),d.on(t.COLON,u),u.on(t.NUM,h);const m=function(e){n.call(this,e),this.type="userid",this.isLink=!0};m.prototype=new n;const g=o.jump(t.AT),f=new e.parser.State,_=new e.parser.State,b=new e.parser.State(m),v=new e.parser.State,y=new e.parser.State(m),E=new e.parser.State,S=new e.parser.State(m),w=[t.DOT,t.UNDERSCORE,t.PLUS,t.NUM,t.DOMAIN,t.TLD,t.LOCALHOST];g.on(w,f),f.on(w,f),f.on(t.DOMAIN,f),f.on(t.COLON,_),_.on(t.DOMAIN,b),_.on(t.LOCALHOST,y),_.on(t.TLD,y),b.on(t.DOT,v),v.on(t.DOMAIN,b),v.on(t.TLD,y),y.on(t.DOT,v),y.on(t.COLON,E),E.on(t.NUM,S);const C=function(e){n.call(this,e),this.type="groupid",this.isLink=!0};C.prototype=new n;const T=o.jump(t.PLUS),x=new e.parser.State,O=new e.parser.State,k=new e.parser.State(C),R=new e.parser.State,D=new e.parser.State(C),I=new e.parser.State,A=new e.parser.State(C),N=[t.DOT,t.UNDERSCORE,t.PLUS,t.NUM,t.DOMAIN,t.TLD,t.LOCALHOST];T.on(N,x),x.on(N,x),x.on(t.DOMAIN,x),x.on(t.COLON,O),O.on(t.DOMAIN,k),O.on(t.LOCALHOST,D),O.on(t.TLD,D),k.on(t.DOT,R),R.on(t.DOMAIN,k),R.on(t.TLD,D),D.on(t.DOT,R),D.on(t.COLON,I),I.on(t.NUM,A)}i.onUserClick=function(e,t){e.preventDefault()},i.onAliasClick=function(e,t){e.preventDefault()},i.onGroupClick=function(e,t){e.preventDefault()};i.ELEMENT_URL_PATTERN="^(?:https?://)?(?:"+((window.location.host+window.location.pathname).replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"|(?:www\\.)?(?:riot|vector)\\.im/(?:app|beta|staging|develop)/|(?:app|beta|staging|develop)\\.element\\.io/)(#.*)"),i.MATRIXTO_URL_PATTERN="^(?:https?://)?(?:www\\.)?matrix\\.to/#/(([#@!+]).*)",i.MATRIXTO_MD_LINK_PATTERN="\\[([^\\]]*)\\]\\((?:https?://)?(?:www\\.)?matrix\\.to/#/([#@!+][^\\)]*)\\)",i.MATRIXTO_BASE_URL=o.a,i.options={events:function(e,t){switch(t){case"url":try{const t=Object(r.j)(e);if(t&&t.userId)return{click:function(e){i.onUserClick(e,t.userId)}}}catch(e){}break;case"userid":return{click:function(t){i.onUserClick(t,e)}};case"roomalias":return{click:function(t){i.onAliasClick(t,e)}};case"groupid":return{click:function(t){i.onGroupClick(t,e)}}}},formatHref:function(e,t){switch(t){case"roomalias":case"userid":case"groupid":default:return Object(r.k)(e)}},linkAttributes:{rel:"noreferrer noopener"},target:function(e,t){if("url"===t){return Object(r.l)(e)!==e||e.match(i.ELEMENT_URL_PATTERN)?null:"_blank"}return null}},t.a=i},function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var o=n(319),r=s(n(924)),i=s(n(925)),a=s(n(926));function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var c=function(e){return a.run(i.run(e))};t.find=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(e),o=[],r=0;r<n.length;r++){var i=n[r];!i.isLink||t&&i.type!==t||o.push(i.toObject())}return o},t.inherits=o.inherits,t.options=r,t.parser=a,t.scanner=i,t.test=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)},t.tokenize=c},function(e,t,n){"use strict";t.__esModule=!0,t.AMPERSAND=t.CLOSEPAREN=t.CLOSEANGLEBRACKET=t.CLOSEBRACKET=t.CLOSEBRACE=t.OPENPAREN=t.OPENANGLEBRACKET=t.OPENBRACKET=t.OPENBRACE=t.WS=t.TLD=t.SYM=t.UNDERSCORE=t.SLASH=t.MAILTO=t.PROTOCOL=t.QUERY=t.POUND=t.PLUS=t.NUM=t.NL=t.LOCALHOST=t.PUNCTUATION=t.DOT=t.COLON=t.AT=t.DOMAIN=t.Base=void 0;var o=n(555),r=n(319),i=(0,o.createTokenClass)();function a(e){var t=e?{v:e}:{};return(0,r.inherits)(i,(0,o.createTokenClass)(),t)}i.prototype={toString:function(){return this.v+""}};var s=a(),c=a("@"),l=a(":"),d=a("."),u=a(),h=a(),p=a("\n"),m=a(),g=a("+"),f=a("#"),_=a(),b=a("mailto:"),v=a("?"),y=a("/"),E=a("_"),S=a(),w=a(),C=a(),T=a("{"),x=a("["),O=a("<"),k=a("("),R=a("}"),D=a("]"),I=a(">"),A=a(")"),N=a("&");t.Base=i,t.DOMAIN=s,t.AT=c,t.COLON=l,t.DOT=d,t.PUNCTUATION=u,t.LOCALHOST=h,t.NL=p,t.NUM=m,t.PLUS=g,t.POUND=f,t.QUERY=v,t.PROTOCOL=_,t.MAILTO=b,t.SLASH=y,t.UNDERSCORE=E,t.SYM=S,t.TLD=w,t.WS=C,t.OPENBRACE=T,t.OPENBRACKET=x,t.OPENANGLEBRACKET=O,t.OPENPAREN=k,t.CLOSEBRACE=R,t.CLOSEBRACKET=D,t.CLOSEANGLEBRACKET=I,t.CLOSEPAREN=A,t.AMPERSAND=N},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(935);t.XmlEntities=o.XmlEntities;var r=n(936);t.Html4Entities=r.Html4Entities;var i=n(937);t.Html5Entities=i.Html5Entities,t.AllHtmlEntities=i.Html5Entities},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromCodePoint=String.fromCodePoint||function(e){return String.fromCharCode(Math.floor((e-65536)/1024)+55296,(e-65536)%1024+56320)},t.getCodePoint=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536},t.highSurrogateFrom=55296,t.highSurrogateTo=56319},function(e,t,n){"use strict";const{DOCUMENT_MODE:o}=n(193),r=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],i=r.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),a=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],s=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],c=s.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function l(e){const t=-1!==e.indexOf('"')?"'":'"';return t+e+t}function d(e,t){for(let n=0;n<t.length;n++)if(0===e.indexOf(t[n]))return!0;return!1}t.isConforming=function(e){return"html"===e.name&&null===e.publicId&&(null===e.systemId||"about:legacy-compat"===e.systemId)},t.getDocumentMode=function(e){if("html"!==e.name)return o.QUIRKS;const t=e.systemId;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return o.QUIRKS;let n=e.publicId;if(null!==n){if(n=n.toLowerCase(),a.indexOf(n)>-1)return o.QUIRKS;let e=null===t?i:r;if(d(n,e))return o.QUIRKS;if(e=null===t?s:c,d(n,e))return o.LIMITED_QUIRKS}return o.NO_QUIRKS},t.serializeContent=function(e,t,n){let o="!DOCTYPE ";return e&&(o+=e),t?o+=" PUBLIC "+l(t):n&&(o+=" SYSTEM"),null!==n&&(o+=" "+l(n)),o}},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"","InvisibleTimes":"","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"","NegativeThickSpace":"","NegativeThinSpace":"","NegativeVeryThinSpace":"","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":" ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"","zwnj":""}')},function(e){e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isTraversal=t.procedure=void 0,t.procedure={universal:50,tag:30,attribute:1,pseudo:0,"pseudo-element":0,descendant:-1,child:-1,parent:-1,sibling:-1,adjacent:-1,_flexibleDescendant:-1},t.isTraversal=function(e){return t.procedure[e.type]<0}},function(e,t,n){"use strict";var o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.subselects=t.getNextSiblings=t.ensureIsTag=t.PLACEHOLDER_ELEMENT=void 0;var r=n(210),i=n(410);function a(e){return e.some(i.isTraversal)}function s(e,t){return e===r.falseFunc?e:function(n){return t.isTag(n)&&e(n)}}function c(e,t){var n=t.getSiblings(e);if(n.length<=1)return[];var o=n.indexOf(e);return o<0||o===n.length-1?[]:n.slice(o+1).filter(t.isTag)}t.PLACEHOLDER_ELEMENT={},t.ensureIsTag=s,t.getNextSiblings=c,t.subselects={is:function(e,n,o,r,i){return t.subselects.matches(e,n,o,r,i)},matches:function(e,t,n,o,r){return r(t,{xmlMode:!!n.xmlMode,strict:!!n.strict,adapter:n.adapter,equals:n.equals,rootFunc:e},o)},not:function(e,t,n,o,i){var s={xmlMode:!!n.xmlMode,strict:!!n.strict,adapter:n.adapter,equals:n.equals};if(s.strict&&(t.length>1||t.some(a)))throw new Error("complex selectors in :not aren't allowed in strict mode");var c=i(t,s,o);return c===r.falseFunc?e:c===r.trueFunc?r.falseFunc:function(t){return!c(t)&&e(t)}},has:function(e,n,i,l,d){var u=i.adapter,h={xmlMode:!!i.xmlMode,strict:!!i.strict,adapter:u,equals:i.equals},p=n.some(a)?[t.PLACEHOLDER_ELEMENT]:void 0,m=d(n,h,p);if(m===r.falseFunc)return r.falseFunc;if(m===r.trueFunc)return function(t){return u.getChildren(t).some(u.isTag)&&e(t)};var g=s(m,u),f=m.shouldTestNextSiblings,_=void 0!==f&&f;return p?function(t){p[0]=t;var n=u.getChildren(t),r=_?o(n,c(t,u)):n;return e(t)&&u.existsOne(g,r)}:function(t){return e(t)&&u.existsOne(g,u.getChildren(t))}}}},function(e,t,n){"use strict";const o=n(957),r=n(968);t.parse=function(e,t){return new o(t).parse(e)},t.parseFragment=function(e,t,n){"string"==typeof e&&(n=t,t=e,e=null);return new o(n).parseFragment(t,e)},t.serialize=function(e,t){return new r(e,t).serialize()}},function(e,t,n){"use strict";const o=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];t.REPLACEMENT_CHARACTER="<22>",t.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533},t.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]},t.isSurrogate=function(e){return e>=55296&&e<=57343},t.isSurrogatePair=function(e){return e>=56320&&e<=57343},t.getSurrogatePairCodePoint=function(e,t){return 1024*(e-55296)+9216+t},t.isControlCodePoint=function(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159},t.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||o.indexOf(e)>-1}},function(e,t,n){"use strict";e.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}},function(e,t,n){"use strict";const o=n(171);e.exports=class extends o{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){const t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}}},function(e,t,n){(function(t){var o=n(324),r=n(412),i=n(557),a=n(275),s=o.DomUtils;(e.exports=function(e,n,s){var c;if(void 0!==t&&t.isBuffer(e)&&(e=e.toString()),"string"==typeof e)c=n.xmlMode||n._useHtmlParser2?o.parseDocument(e,n):function(e,t,n){return(n?r.parse:r.parseFragment)(e,{treeAdapter:i,sourceCodeLocationInfo:t.sourceCodeLocationInfo})}(e,n,s);else if("object"==typeof e&&null!=e&&"root"===e.type)c=e;else{var l=new a.Document(e);e.forEach((function(e){e.parent=l})),c=l}return c}).update=function(e,t){Array.isArray(e)||(e=[e]),t?t.children=e:t=null;for(var n=0;n<e.length;n++){var o=e[n];o.parent&&o.parent.children!==e&&s.removeElement(o),t?(o.prev=e[n-1]||null,o.next=e[n+1]||null):o.prev=o.next=null,o.parent=t}return t}}).call(this,n(32).Buffer)},function(e,t,n){"use strict";let{red:o,bold:r,gray:i,options:a}=n(991),s=n(585);class c extends Error{constructor(e,t,n,o,r,i){super(e),this.name="CssSyntaxError",this.reason=e,r&&(this.file=r),o&&(this.source=o),i&&(this.plugin=i),void 0!==t&&void 0!==n&&(this.line=t,this.column=n),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,c)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=a.enabled),s&&e&&(t=s(t));let n,c,l=t.split(/\r?\n/),d=Math.max(this.line-3,0),u=Math.min(this.line+2,l.length),h=String(u).length;return e?(n=e=>r(o(e)),c=e=>i(e)):n=c=e=>e,l.slice(d,u).map((e,t)=>{let o=d+1+t,r=" "+(" "+o).slice(-h)+" | ";if(o===this.line){let t=c(r.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+c(r)+e+"\n "+t+n("^")}return" "+c(r)+e}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=c,c.default=c},function(e,t,n){"use strict";e.exports.isClean=Symbol("isClean")},function(e,t,n){"use strict";let o=n(586);function r(e,t){new o(t).stringify(e)}e.exports=r,r.default=r},function(e,t,n){(function(e){function n(e,t){for(var n=0,o=e.length-1;o>=0;o--){var r=e[o];"."===r?e.splice(o,1):".."===r?(e.splice(o,1),n++):n&&(e.splice(o,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function o(e,t){if(e.filter)return e.filter(t);for(var n=[],o=0;o<e.length;o++)t(e[o],o,e)&&n.push(e[o]);return n}t.resolve=function(){for(var t="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return(r?"/":"")+(t=n(o(t.split("/"),(function(e){return!!e})),!r).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),a="/"===r(e,-1);return(e=n(o(e.split("/"),(function(e){return!!e})),!i).join("/"))||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function o(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var r=o(e.split("/")),i=o(n.split("/")),a=Math.min(r.length,i.length),s=a,c=0;c<a;c++)if(r[c]!==i[c]){s=c;break}var l=[];for(c=s;c<r.length;c++)l.push("..");return(l=l.concat(i.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,o=-1,r=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!r){o=i;break}}else r=!1;return-1===o?n?"/":".":n&&1===o?"/":e.slice(0,o)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,o=-1,r=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!r){n=t+1;break}}else-1===o&&(r=!1,o=t+1);return-1===o?"":e.slice(n,o)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,o=-1,r=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===o&&(r=!1,o=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!r){n=a+1;break}}return-1===t||-1===o||0===i||1===i&&t===o-1&&t===n+1?"":e.slice(t,o)};var r="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(227))},function(e,t,n){"use strict";let o=n(279);class r extends o{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}e.exports=r,r.default=r,o.registerAtRule(r)},function(e,t,n){"use strict";let o=n(279),r=n(595);class i extends o{constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return r.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}}e.exports=i,i.default=i,o.registerRule(i)},function(e,t,n){"use strict";let{fileURLToPath:o,pathToFileURL:r}=n(121),{resolve:i,isAbsolute:a}=n(420),{nanoid:s}=n(1002),c=n(585),l=n(417),d=n(596),u=Symbol("fromOffset cache");class h{constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(/^\w+:\/\//.test(t.from)||a(t.from)?this.file=t.from:this.file=i(t.from));let n=new d(this.css,t);if(n.text){this.map=n;let e=n.consumer().file;!this.file&&e&&(this.file=this.mapResolve(e))}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}fromOffset(e){let t,n;if(this[u])n=this[u];else{let e=this.css.split("\n");n=new Array(e.length);let t=0;for(let o=0,r=e.length;o<r;o++)n[o]=t,t+=e[o].length+1;this[u]=n}t=n[n.length-1];let o=0;if(e>=t)o=n.length-1;else{let t,r=n.length-2;for(;o<r;)if(t=o+(r-o>>1),e<n[t])r=t-1;else{if(!(e>=n[t+1])){o=t;break}o=t+1}}return{line:o+1,col:e-n[o]+1}}error(e,t,n,o={}){let i;if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let a=this.origin(t,n);return i=a?new l(e,a.line,a.column,a.source,a.file,o.plugin):new l(e,t,n,this.css,this.file,o.plugin),i.input={line:t,column:n,source:this.css},this.file&&(i.input.url=r(this.file).toString(),i.input.file=this.file),i}origin(e,t){if(!this.map)return!1;let n,i=this.map.consumer(),s=i.originalPositionFor({line:e,column:t});if(!s.source)return!1;n=a(s.source)?r(s.source):new URL(s.source,this.map.consumer().sourceRoot||r(this.map.mapFile));let c={url:n.toString(),line:s.line,column:s.column};"file:"===n.protocol&&(c.file=o(n));let l=i.sourceContentFor(s.source);return l&&(c.source=l),c}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||".",e)}get from(){return this.file||this.id}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}}e.exports=h,h.default=h,c&&c.registerInput&&c.registerInput(h)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var o=n(84);function r(e){return{undefined:Object(o.a)("Default"),0:Object(o.a)("Restricted"),[e]:Object(o.a)("Default"),50:Object(o.a)("Moderator"),100:Object(o.a)("Admin")}}function i(e,t){const n=r(t);return n[e]?n[e]:Object(o.a)("Custom (%(level)s)",{level:e})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(1);n(0);function r(e,t){this.retryAlgorithm=e||r.RETRY_BACKOFF_RATELIMIT,this.queueAlgorithm=t||r.QUEUE_MESSAGES,this._queues={},this._activeQueues=[],this._procFn=null}function i(e){e._procFn&&o.m(o.k(o.u(e._queues),(function(t){return-1===e._activeQueues.indexOf(t)&&e._queues[t].length>0})),(function(t){e._activeQueues.push(t),s("Spinning up queue: '%s'",t),function e(t,n){const r=function(e,t){const n=e._queues[t];if(!o.q(n))return null;return n[0]}(t,n);if(!r){const e=t._activeQueues.indexOf(n);return e>=0&&t._activeQueues.splice(e,1),void s("Stopping queue '%s' as it is now empty",n)}s("Queue '%s' has %s pending events",n,t._queues[n].length),Promise.resolve().then(()=>t._procFn(r.event)).then((function(o){a(t,n),s("Queue '%s' sent event %s",n,r.event.getId()),r.defer.resolve(o),e(t,n)}),(function(o){r.attempts+=1;const i=t.retryAlgorithm(r.event,r.attempts,o);s("retry(%s) err=%s event_id=%s waitTime=%s",r.attempts,o,r.event.getId(),i),-1===i?(s("Queue '%s' giving up on event %s",n,r.event.getId()),a(t,n),r.defer.reject(o),e(t,n)):setTimeout((function(){e(t,n)}),i)}))}(e,t)}))}function a(e,t){const n=e._queues[t];return o.q(n)?n.shift():null}function s(){0}r.prototype.getQueueForEvent=function(e){const t=this.queueAlgorithm(e);return t&&this._queues[t]?o.v(this._queues[t],(function(e){return e.event})):null},r.prototype.removeEventFromQueue=function(e){const t=this.queueAlgorithm(e);if(!t||!this._queues[t])return!1;let n=!1;return o.z(this._queues[t],(function(t){if(t.event.getId()===e.getId())return n=!0,!0})),n},r.prototype.setProcessFunction=function(e){this._procFn=e,i(this)},r.prototype.queueEvent=function(e){const t=this.queueAlgorithm(e);if(!t)return null;this._queues[t]||(this._queues[t]=[]);const n=o.e();return this._queues[t].push({event:e,defer:n,attempts:0}),s("Queue algorithm dumped event %s into queue '%s'",e.getId(),t),i(this),n.promise},r.RETRY_BACKOFF_RATELIMIT=function(e,t,n){if(400===n.httpStatus||403===n.httpStatus||401===n.httpStatus)return-1;if("rejected"===n.cors)return-1;if("M_TOO_LARGE"===n.name)return-1;if("M_LIMIT_EXCEEDED"===n.name){const e=n.data.retry_after_ms;if(e>0)return e}return t>4?-1:1e3*Math.pow(2,t)},r.QUEUE_MESSAGES=function(e){return"m.room.message"===e.getType()||e.hasAssocation()?"message":null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u}));var o=n(103),r=n(7),i=n(0),a=n(334),s=n(286),c=n(335);const l=new Error("Verification timed out");class d extends Error{constructor(e){super(),this.startEvent=e}}class u extends r.EventEmitter{constructor(e,t,n,o,r,i){super(),this._channel=e,this._baseApis=t,this.userId=n,this.deviceId=o,this.startEvent=r,this.request=i,this.cancelled=!1,this._done=!1,this._promise=null,this._transactionTimeoutTimer=null}get initiatedByMe(){if(!this.startEvent)return!0;const e=this.startEvent.getSender(),t=this.startEvent.getContent();return e===this._baseApis.getUserId()&&t.from_device===this._baseApis.getDeviceId()}_resetTimer(){i.a.info("Refreshing/starting the verification transaction timeout timer"),null!==this._transactionTimeoutTimer&&clearTimeout(this._transactionTimeoutTimer),this._transactionTimeoutTimer=setTimeout(()=>{this._done||this.cancelled||(i.a.info("Triggering verification timeout"),this.cancel(l))},6e5)}_endTimer(){null!==this._transactionTimeoutTimer&&(clearTimeout(this._transactionTimeoutTimer),this._transactionTimeoutTimer=null)}_send(e,t){return this._channel.send(e,t)}_waitForEvent(e){if(this._done)return Promise.reject(new Error("Verification is already done"));const t=this.request.getEventFromOtherParty(e);return t?Promise.resolve(t):(this._expectedEvent=e,new Promise((e,t)=>{this._resolveEvent=e,this._rejectEvent=t}))}canSwitchStartEvent(){return!1}switchStartEvent(e){if(this.canSwitchStartEvent(e))if(i.a.log("Verification Base: switching verification start event",{restartingFlow:!!this._rejectEvent}),this._rejectEvent){const t=this._rejectEvent;this._rejectEvent=void 0,t(new d(e))}else this.startEvent=e}handleEvent(e){if(!this._done)if(e.getType()===this._expectedEvent)"m.key.verification.done"!==this._expectedEvent&&(this._expectedEvent=void 0,this._rejectEvent=void 0,this._resetTimer(),this._resolveEvent(e));else if("m.key.verification.cancel"===e.getType()){const t=this._reject;if(this._reject=void 0,t){const n=e.getContent(),{reason:o,code:r}=n;t(new Error(`Other side cancelled verification because ${o} (${r})`))}}else if(this._expectedEvent){const t=new Error("Unexpected message: expecting "+this._expectedEvent+" but got "+e.getType());if(this._expectedEvent=void 0,this._rejectEvent){const e=this._rejectEvent;this._rejectEvent=void 0,e(t)}this.cancel(t)}}done(){if(this._endTimer(),!this._done)return this.request.onVerifierFinished(),this._resolve(),Object(c.e)(this._baseApis,this.userId,this.deviceId)}cancel(e){if(this._endTimer(),!this._done){if(this.cancelled=!0,this.request.onVerifierCancelled(),this.userId&&this.deviceId)if(e===l){const e=Object(s.e)();this._send(e.getType(),e.getContent())}else if(e instanceof o.b){if(e.getSender()!==this.userId){const t=e.getContent();"m.key.verification.cancel"===e.getType()?(t.code=t.code||"m.unknown",t.reason=t.reason||t.body||"Unknown reason",this._send("m.key.verification.cancel",t)):this._send("m.key.verification.cancel",{code:"m.unknown",reason:t.body||"Unknown reason"})}}else this._send("m.key.verification.cancel",{code:"m.unknown",reason:e.toString()});null!==this._promise?this._reject&&this._reject(e):this._promise=Promise.reject(e),this.emit("cancel",e)}}verify(){return this._promise||(this._promise=new Promise((e,t)=>{this._resolve=(...t)=>{this._done=!0,this._endTimer(),e(...t)},this._reject=(...e)=>{this._done=!0,this._endTimer(),t(...e)}}),this._doVerification&&!this._started&&(this._started=!0,this._resetTimer(),Promise.resolve(this._doVerification()).then(this.done.bind(this),this.cancel.bind(this)))),this._promise}async _verifyKeys(e,t,n){const o=[];for(const[r,s]of Object.entries(t)){const t=r.split(":",2)[1],c=this._baseApis.getStoredDevice(e,t);if(c)await n(r,c,s),o.push(t);else{const c=this._baseApis._crypto._deviceList.getStoredCrossSigningForUser(e);c&&c.getId()===t?(await n(r,a.a.fromStorage({keys:{[r]:t}},t),s),o.push(t)):i.a.warn(`verification: Could not find device ${t} to verify`)}}if(!o.length)throw new Error("No devices could be verified");i.a.info("Verification completed! Marking devices verified: ",o);for(const t of o)await this._baseApis.setDeviceVerified(e,t)}}},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var o=n(169);async function r(t,n){if(!e.Olm)throw new Error("Olm is not available");if(!t.private_key_salt||!t.private_key_iterations)throw new Error("Salt and/or iterations not found: this backup cannot be restored with a passphrase");return await a(n,t.private_key_salt,t.private_key_iterations,t.private_key_bits||256)}async function i(t){if(!e.Olm)throw new Error("Olm is not available");const n=Object(o.b)(32);return{key:await a(t,n,5e5,256),salt:n,iterations:5e5}}async function a(t,n,o,r=256){const i=e.crypto.subtle,a=e.TextEncoder;if(!i||!a)throw new Error("Password-based backup is not avaiable on this platform");const s=await i.importKey("raw",(new a).encode(t),{name:"PBKDF2"},!1,["deriveBits"]),c=await i.deriveBits({name:"PBKDF2",salt:(new a).encode(n),iterations:o,hash:"SHA-512"},s,r);return new Uint8Array(c)}}).call(this,n(6))},function(e,t,n){"use strict";(function(e,o){n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r=n(1019),i=n.n(r);const a=[139,1];function s(t){const n=new e(a.length+t.length+1);n.set(a,0),n.set(t,a.length);let o=0;for(let e=0;e<n.length-1;++e)o^=n[e];n[n.length-1]=o;return i.a.encode(n).match(/.{1,4}/g).join(" ")}function c(e){const t=i.a.decode(e.replace(/ /g,""));let n=0;for(const e of t)n^=e;if(0!==n)throw new Error("Incorrect parity");for(let e=0;e<a.length;++e)if(t[e]!==a[e])throw new Error("Incorrect prefix");if(t.length!==a.length+o.Olm.PRIVATE_KEY_LENGTH+1)throw new Error("Incorrect length");return Uint8Array.from(t.slice(a.length,a.length+o.Olm.PRIVATE_KEY_LENGTH))}}).call(this,n(32).Buffer,n(6))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var o=n(152);n(0);const r=function(){};function i(e,t,n){n=n||{},this._client=e,this._timelineSet=t,this._start=null,this._end=null,this._eventCount=0,this._windowLimit=n.windowLimit||1e3}function a(e,t){this.timeline=e,this.index=t}i.prototype.load=function(e,t){const n=this;t=t||20;const o=function(o){let r;const i=o.getEvents();if(e){for(let t=0;t<i.length;t++)if(i[t].getId()==e){r=t;break}if(void 0===r)throw new Error("getEventTimeline result didn't include requested event")}else r=i.length;const s=Math.min(i.length,r+Math.ceil(t/2)),c=Math.max(0,s-t);n._start=new a(o,c-o.getBaseIndex()),n._end=new a(o,s-o.getBaseIndex()),n._eventCount=s-c};if(e){const t=this._timelineSet.getTimelineForEvent(e);if(t)return o(t),Promise.resolve(t);return this._client.getEventTimeline(this._timelineSet,e).then(o)}return o(this._timelineSet.getLiveTimeline()),Promise.resolve()},i.prototype.getTimelineIndex=function(e){if(e==o.a.BACKWARDS)return this._start;if(e==o.a.FORWARDS)return this._end;throw new Error("Invalid direction '"+e+"'")},i.prototype.extend=function(e,t){const n=this.getTimelineIndex(e);if(!n)return r("TimelineWindow: no timeline yet"),!1;const i=e==o.a.BACKWARDS?n.retreat(t):n.advance(t);if(i){this._eventCount+=i,r("TimelineWindow: increased cap by "+i+" (now "+this._eventCount+")");const t=this._eventCount-this._windowLimit;return t>0&&this.unpaginate(t,e!=o.a.BACKWARDS),!0}return!1},i.prototype.canPaginate=function(e){const t=this.getTimelineIndex(e);if(!t)return r("TimelineWindow: no timeline yet"),!1;if(e==o.a.BACKWARDS){if(t.index>t.minIndex())return!0}else if(t.index<t.maxIndex())return!0;return Boolean(t.timeline.getNeighbouringTimeline(e)||t.timeline.getPaginationToken(e))},i.prototype.paginate=function(e,t,n,i){void 0===n&&(n=!0),void 0===i&&(i=5);const a=this.getTimelineIndex(e);if(!a)return r("TimelineWindow: no timeline yet"),Promise.resolve(!1);if(a.pendingPaginate)return a.pendingPaginate;if(this.extend(e,t))return Promise.resolve(!0);if(!n||0===i)return Promise.resolve(!1);if(!a.timeline.getPaginationToken(e))return r("TimelineWindow: no token"),Promise.resolve(!1);r("TimelineWindow: starting request");const s=this,c=this._client.paginateEventTimeline(a.timeline,{backwards:e==o.a.BACKWARDS,limit:t}).finally((function(){a.pendingPaginate=null})).then((function(n){return r("TimelineWindow: request completed with result "+n),!!n&&s.paginate(e,t,!0,i-1)}));return a.pendingPaginate=c,c},i.prototype.unpaginate=function(e,t){const n=t?this._start:this._end;if(e>this._eventCount||e<0)throw new Error("Attemting to unpaginate "+e+" events, but only have "+this._eventCount+" in the timeline");for(;e>0;){const o=t?n.advance(e):n.retreat(e);if(o<=0)throw new Error("Unable to unpaginate any further, but still have "+this._eventCount+" events");e-=o,this._eventCount-=o,r("TimelineWindow.unpaginate: dropped "+o+" (now "+this._eventCount+")")}},i.prototype.getEvents=function(){if(!this._start)return[];const e=[];let t=this._start.timeline;for(;;){const n=t.getEvents();let r=0,i=n.length;t===this._start.timeline&&(r=this._start.index+t.getBaseIndex()),t===this._end.timeline&&(i=this._end.index+t.getBaseIndex());for(let t=r;t<i;t++)e.push(n[t]);if(t===this._end.timeline)break;t=t.getNeighbouringTimeline(o.a.FORWARDS)}return e},a.prototype.minIndex=function(){return-1*this.timeline.getBaseIndex()},a.prototype.maxIndex=function(){return this.timeline.getEvents().length-this.timeline.getBaseIndex()},a.prototype.advance=function(e){if(!e)return 0;let t;if(e<0){if(t=Math.max(e,this.minIndex()-this.index),t<0)return this.index+=t,t}else if(t=Math.min(e,this.maxIndex()-this.index),t>0)return this.index+=t,t;const n=this.timeline.getNeighbouringTimeline(e<0?o.a.BACKWARDS:o.a.FORWARDS);return n?(this.timeline=n,this.index=e<0?this.maxIndex():this.minIndex(),r("paginate: switched to new neighbour"),this.advance(e)):0},a.prototype.retreat=function(e){return-1*this.advance(-1*e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(121),r=n.n(o),i=n(1),a=n(0);function s(e){this._matrixClient=e.matrixClient,this._data=e.authData||{},this._requestCallback=e.doRequest,this._busyChangedCallback=e.busyChanged,this._stateUpdatedCallback=e.stateUpdated||e.startAuthStage,this._resolveFunc=null,this._rejectFunc=null,this._inputs=e.inputs||{},this._requestEmailTokenCallback=e.requestEmailToken,e.sessionId&&(this._data.session=e.sessionId),this._clientSecret=e.clientSecret||this._matrixClient.generateClientSecret(),this._emailSid=e.emailSid,void 0===this._emailSid&&(this._emailSid=null),this._requestingEmailToken=!1,this._chosenFlow=null,this._currentStage=null,this._submitPromise=null}s.prototype={attemptAuth:function(){return new Promise((e,t)=>{this._resolveFunc=e,this._rejectFunc=t;if(this._data&&this._data.flows)this._startNextAuthStage();else{this._busyChangedCallback&&this._busyChangedCallback(!0);let e=null;this._data.session&&(e={session:this._data.session}),this._doRequest(e).finally(()=>{this._busyChangedCallback&&this._busyChangedCallback(!1)})}})},poll:async function(){if(!this._data.session)return;if(!this._resolveFunc)return;if(this._submitPromise)return;let e={};if("m.login.email.identity"==this._currentStage&&this._emailSid){const t={sid:this._emailSid,client_secret:this._clientSecret};if(await this._matrixClient.doesServerRequireIdServerParam()){const e=r.a.parse(this._matrixClient.getIdentityServerUrl());t.id_server=e.host}e={type:"m.login.email.identity",threepid_creds:t,threepidCreds:t}}this.submitAuthDict(e,!0)},getSessionId:function(){return this._data?this._data.session:void 0},getClientSecret:function(){return this._clientSecret},getStageParams:function(e){let t={};return this._data&&this._data.params&&(t=this._data.params),t[e]},getChosenFlow(){return this._chosenFlow},submitAuthDict:async function(e,t){if(!this._resolveFunc)throw new Error("submitAuthDict() called before attemptAuth()");for(!t&&this._busyChangedCallback&&this._busyChangedCallback(!0);this._submitPromise;)try{await this._submitPromise}catch(e){}let n;this._data.session?(n={session:this._data.session},i.j(n,e)):n=e;try{this._submitPromise=this._doRequest(n,t),await this._submitPromise}finally{this._submitPromise=null,!t&&this._busyChangedCallback&&this._busyChangedCallback(!1)}},getEmailSid:function(){return this._emailSid},setEmailSid:function(e){this._emailSid=e},_doRequest:async function(e,t){try{const n=await this._requestCallback(e,t);this._resolveFunc(n),this._resolveFunc=null,this._rejectFunc=null}catch(e){const n=e.data?e.data.flows:null,o=this._data.flows||Boolean(n);401===e.httpStatus&&e.data&&o||(t?a.a.log("Background poll request failed doing UI auth: ignoring",e):this._rejectFunc(e)),e.data.flows||e.data.completed||e.data.session||(e.data.flows=this._data.flows,e.data.completed=this._data.completed,e.data.session=this._data.session),this._data=e.data;try{this._startNextAuthStage()}catch(e){this._rejectFunc(e),this._resolveFunc=null,this._rejectFunc=null}if(!this._emailSid&&!this._requestingEmailToken&&this._chosenFlow.stages.includes("m.login.email.identity")){this._requestingEmailToken=!0;try{const e=await this._requestEmailTokenCallback(this._inputs.emailAddress,this._clientSecret,1,this._data.session);this._emailSid=e.sid}catch(e){this._rejectFunc(e),this._resolveFunc=null,this._rejectFunc=null}finally{this._requestingEmailToken=!1}}}},_startNextAuthStage:function(){const e=this._chooseStage();if(!e)throw new Error("No incomplete flows from the server");if(this._currentStage=e,"m.login.dummy"===e)return void this.submitAuthDict({type:"m.login.dummy"});if(this._data&&this._data.errcode||this._data.error)return void this._stateUpdatedCallback(e,{errcode:this._data.errcode||"",error:this._data.error||""});const t={};"m.login.email.identity"==e&&(t.emailSid=this._emailSid),this._stateUpdatedCallback(e,t)},_chooseStage:function(){null===this._chosenFlow&&(this._chosenFlow=this._chooseFlow()),a.a.log("Active flow => %s",JSON.stringify(this._chosenFlow));const e=this._firstUncompletedStage(this._chosenFlow);return a.a.log("Next stage: %s",e),e},_chooseFlow:function(){const e=this._data.flows||[],t=Boolean(this._inputs.emailAddress)||Boolean(this._emailSid),n=Boolean(this._inputs.phoneCountry)&&Boolean(this._inputs.phoneNumber);for(const o of e){let e=!1,r=!1;for(const t of o.stages)"m.login.email.identity"===t?e=!0:"m.login.msisdn"==t&&(r=!0);if(e==t&&r==n)return o}const o=new Error("No appropriate authentication flow found");throw o.name="NoAuthFlowFoundError",o.required_stages=[],t&&o.required_stages.push("m.login.email.identity"),n&&o.required_stages.push("m.login.msisdn"),o.available_flows=e,o},_firstUncompletedStage:function(e){const t=(this._data||{}).completed||[];for(let n=0;n<e.stages.length;++n){const o=e.stages[n];if(-1===t.indexOf(o))return o}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(1);n(0);const r="session.e2e.";function i(e){if(this.store=e,!(o.r(e.getItem)&&o.r(e.setItem)&&o.r(e.removeItem)&&o.r(e.key)&&"number"==typeof e.length))throw new Error("Supplied webStore does not meet the WebStorage API interface")}i.prototype={removeEndToEndAccount:function(){this.store.removeItem(a)},getEndToEndAccount:function(){return this.store.getItem(a)},getAllEndToEndDevices:function(){const e=d(""),t={};for(let n=0;n<this.store.length;++n){const o=this.store.key(n),r=o.substr(e.length);o.startsWith(e)&&(t[r]=p(this.store,o))}return t},getEndToEndDeviceTrackingStatus:function(){return p(this.store,c)},getEndToEndDeviceSyncToken:function(){return p(this.store,s)},removeEndToEndDeviceData:function(){g(this.store,d("")),g(this.store,c),g(this.store,s)},getEndToEndSessions:function(e){return p(this.store,u(e))},getAllEndToEndSessions:function(){const e=m(this.store,u("")),t={};for(const n of e){t[n.substr(u("").length)]=p(this.store,n)}return t},removeAllEndToEndSessions:function(){g(this.store,u(""))},getAllEndToEndInboundGroupSessionKeys:function(){const e=r+"inboundgroupsessions/",t=[];for(let n=0;n<this.store.length;n++){const o=this.store.key(n);o.startsWith(e)&&t.push({senderKey:o.substr(e.length,43),sessionId:o.substr(e.length+44)})}return t},getEndToEndInboundGroupSession:function(e,t){const n=function(e,t){return r+"inboundgroupsessions/"+e+"/"+t}(e,t);return this.store.getItem(n)},removeAllEndToEndInboundGroupSessions:function(){g(this.store,r+"inboundgroupsessions/")},getAllEndToEndRooms:function(){const e=m(this.store,h("")),t={};for(const n of e){t[n.substr(h("").length)]=p(this.store,n)}return t},removeAllEndToEndRooms:function(){g(this.store,h(""))},setLocalTrustedBackupPubKey:function(e){this.store.setItem(l,e)},getLocalTrustedBackupPubKey:function(){return this.store.getItem(l)}};const a=r+"account",s=r+"device_sync_token",c=r+"device_tracking",l=r+"trusted_backup_pubkey";function d(e){return r+"devices/"+e}function u(e){return r+"sessions/"+e}function h(e){return r+"rooms/"+e}function p(e,t){try{return JSON.parse(e.getItem(t))}catch(e){f("Failed to get key %s: %s",t,e),f(e.stack)}return null}function m(e,t){const n=[];for(let o=0;o<e.length;++o){const r=e.key(o);r.startsWith(t)&&n.push(r)}return n}function g(e,t){const n=[];for(let o=0;o<e.length;++o){const r=e.key(o);r.startsWith(t)&&n.push(r)}for(const t of n)e.removeItem(t)}function f(){0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(83),r=n.n(o),i=n(94),a=n(88);class s{constructor(){r()(this,"domain",void 0),r()(this,"update",async e=>{let t=(i.a.get().jitsi||{}).preferredDomain||"jitsi.riot.im";if(console.log("Attempting to get Jitsi conference information from homeserver"),e&&e["im.vector.riot.jitsi"]){const n=e["im.vector.riot.jitsi"].preferredDomain;n&&(t=n)}this.domain=t,console.log("Jitsi conference domain:",this.preferredDomain)})}get preferredDomain(){return this.domain||"jitsi.riot.im"}async getJitsiAuth(){if(!this.preferredDomain)return null;let e;try{const t=await fetch(`https://${this.preferredDomain}/.well-known/element/jitsi`);e=await t.json()}catch(e){return null}return e.auth?e.auth:null}start(){const e=a.a.get();e.on("WellKnown.client",this.update),this.update(e.getClientWellKnown())}parsePreferredConferenceUrl(e){const t=new URL(e);return t.hostname!==this.preferredDomain?null:{conferenceId:t.pathname,domain:t.hostname,isAudioOnly:!1}}static getInstance(){return s.instance||(s.instance=new s),s.instance}}r()(s,"instance",void 0)},function(e,t,n){"use strict";var o=n(112);Object.defineProperty(t,"__esModule",{value:!0});var r={};t.default=void 0;var i=o(n(1026)),a=n(1062);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var s=i.default;t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(82);t.useCallbackRef=function(e,t){var n=o.useState((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCallbackRef=function(e){var t=null;return{get current(){return t},set current(n){var o=t;o!==n&&(t=n,e(n,o))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mediumSidecar=t.mediumEffect=t.mediumBlur=t.mediumFocus=void 0;var o=n(1037),r=(0,o.createMedium)({},(function(e){return{target:e.target,currentTarget:e.currentTarget}}));t.mediumFocus=r;var i=(0,o.createMedium)();t.mediumBlur=i;var a=(0,o.createMedium)();t.mediumEffect=a;var s=(0,o.createSidecarMedium)({async:!0});t.mediumSidecar=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return B}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(87),p=n(438),m=n(84),g=n(104),f=n(97),_=n(129),b=n(213),v=n(214),y=n(115),E=n(742),S=n(90),w=n(91),C=n(130),T=n(85),x=n(168);n(103);class O extends l.a.PureComponent{constructor(e){super(e),this._onChange=this._onChange.bind(this),this.onBack=this.onBack.bind(this)}onBack(){this.state.message?this.setState({message:null}):this.props.onBack()}_onChange(e){this.setState({[e.target.id]:"checkbox"===e.target.type?e.target.checked:e.target.value})}_buttons(){return l.a.createElement("div",{className:"mx_Dialog_buttons"},l.a.createElement("button",{onClick:this.onBack},Object(m.a)("Back")),!this.state.message&&l.a.createElement("button",{onClick:this._send},Object(m.a)("Send")))}textInput(e,t){return l.a.createElement(g.a,{id:e,label:t,size:"42",autoFocus:!0,type:"text",autoComplete:"on",value:this.state[e],onChange:this._onChange})}}class k extends O{static getLabel(){return Object(m.a)("Send Custom Event")}constructor(e){super(e),this._send=this._send.bind(this);const{eventType:t,stateKey:n,evContent:o}=Object.assign({eventType:"",stateKey:"",evContent:"{\n\n}"},this.props.inputs);this.state={isStateEvent:Boolean(this.props.forceStateEvent),eventType:t,stateKey:n,evContent:o}}send(e){const t=this.context;return this.state.isStateEvent?t.sendStateEvent(this.props.room.roomId,this.state.eventType,e,this.state.stateKey):t.sendEvent(this.props.room.roomId,this.state.eventType,e)}async _send(){if(""===this.state.eventType)return void this.setState({message:Object(m.a)("You must specify an event type!")});let e;try{const t=JSON.parse(this.state.evContent);await this.send(t),e=Object(m.a)("Event sent!")}catch(t){e=Object(m.a)("Failed to send custom event.")+" ("+t.toString()+")"}this.setState({message:e})}render(){if(this.state.message)return l.a.createElement("div",null,l.a.createElement("div",{className:"mx_Dialog_content"},this.state.message),this._buttons());const e=!this.state.message&&!this.props.forceStateEvent&&!this.props.forceGeneralEvent;return l.a.createElement("div",null,l.a.createElement("div",{className:"mx_DevTools_content"},l.a.createElement("div",{className:"mx_DevTools_eventTypeStateKeyGroup"},this.textInput("eventType",Object(m.a)("Event Type")),this.state.isStateEvent&&this.textInput("stateKey",Object(m.a)("State Key"))),l.a.createElement("br",null),l.a.createElement(g.a,{id:"evContent",label:Object(m.a)("Event Content"),type:"text",className:"mx_DevTools_textarea",autoComplete:"off",value:this.state.evContent,onChange:this._onChange,element:"textarea"})),l.a.createElement("div",{className:"mx_Dialog_buttons"},l.a.createElement("button",{onClick:this.onBack},Object(m.a)("Back")),!this.state.message&&l.a.createElement("button",{onClick:this._send},Object(m.a)("Send")),e&&l.a.createElement("div",{style:{float:"right"}},l.a.createElement("input",{id:"isStateEvent",className:"mx_DevTools_tgl mx_DevTools_tgl-flip",type:"checkbox",onChange:this._onChange,checked:this.state.isStateEvent}),l.a.createElement("label",{className:"mx_DevTools_tgl-btn","data-tg-off":"Event","data-tg-on":"State Event",htmlFor:"isStateEvent"}))))}}s()(k,"propTypes",{onBack:u.a.func.isRequired,room:u.a.instanceOf(x.a).isRequired,forceStateEvent:u.a.bool,forceGeneralEvent:u.a.bool,inputs:u.a.object}),s()(k,"contextType",f.a);class R extends O{static getLabel(){return Object(m.a)("Send Account Data")}constructor(e){super(e),this._send=this._send.bind(this);const{eventType:t,evContent:n}=Object.assign({eventType:"",evContent:"{\n\n}"},this.props.inputs);this.state={isRoomAccountData:Boolean(this.props.isRoomAccountData),eventType:t,evContent:n}}send(e){const t=this.context;return this.state.isRoomAccountData?t.setRoomAccountData(this.props.room.roomId,this.state.eventType,e):t.setAccountData(this.state.eventType,e)}async _send(){if(""===this.state.eventType)return void this.setState({message:Object(m.a)("You must specify an event type!")});let e;try{const t=JSON.parse(this.state.evContent);await this.send(t),e=Object(m.a)("Event sent!")}catch(t){e=Object(m.a)("Failed to send custom event.")+" ("+t.toString()+")"}this.setState({message:e})}render(){return this.state.message?l.a.createElement("div",null,l.a.createElement("div",{className:"mx_Dialog_content"},this.state.message),this._buttons()):l.a.createElement("div",null,l.a.createElement("div",{className:"mx_DevTools_content"},this.textInput("eventType",Object(m.a)("Event Type")),l.a.createElement("br",null),l.a.createElement(g.a,{id:"evContent",label:Object(m.a)("Event Content"),type:"text",className:"mx_DevTools_textarea",autoComplete:"off",value:this.state.evContent,onChange:this._onChange,element:"textarea"})),l.a.createElement("div",{className:"mx_Dialog_buttons"},l.a.createElement("button",{onClick:this.onBack},Object(m.a)("Back")),!this.state.message&&l.a.createElement("button",{onClick:this._send},Object(m.a)("Send")),!this.state.message&&l.a.createElement("div",{style:{float:"right"}},l.a.createElement("input",{id:"isRoomAccountData",className:"mx_DevTools_tgl mx_DevTools_tgl-flip",type:"checkbox",onChange:this._onChange,checked:this.state.isRoomAccountData,disabled:this.props.forceMode}),l.a.createElement("label",{className:"mx_DevTools_tgl-btn","data-tg-off":"Account Data","data-tg-on":"Room Data",htmlFor:"isRoomAccountData"}))))}}s()(R,"propTypes",{room:u.a.instanceOf(x.a).isRequired,isRoomAccountData:u.a.bool,forceMode:u.a.bool,inputs:u.a.object}),s()(R,"contextType",f.a);class D extends l.a.PureComponent{static filterChildren(e,t){if(!t)return e;const n=t.toLowerCase();return e.filter(e=>e.key.toLowerCase().includes(n))}constructor(e){super(e),s()(this,"showAll",()=>{this.setState({truncateAt:this.state.truncateAt+50})}),s()(this,"createOverflowElement",(e,t)=>l.a.createElement("button",{className:"mx_DevTools_RoomStateExplorer_button",onClick:this.showAll},Object(m.a)("and %(count)s others...",{count:e}))),s()(this,"onQuery",e=>{this.props.onChange&&this.props.onChange(e.target.value)}),s()(this,"getChildren",(e,t)=>this.state.filteredChildren.slice(e,t)),s()(this,"getChildCount",()=>this.state.filteredChildren.length),this.state={filteredChildren:D.filterChildren(this.props.children,this.props.query),truncateAt:20}}UNSAFE_componentWillReceiveProps(e){this.props.children===e.children&&this.props.query===e.query||this.setState({filteredChildren:D.filterChildren(e.children,e.query),truncateAt:20})}render(){const e=h.getComponent("elements.TruncatedList");return l.a.createElement("div",null,l.a.createElement(g.a,{label:Object(m.a)("Filter results"),autoFocus:!0,size:64,type:"text",autoComplete:"off",value:this.props.query,onChange:this.onQuery,className:"mx_TextInputDialog_input mx_DevTools_RoomStateExplorer_query",key:this.props.children[0]?this.props.children[0].key:""}),l.a.createElement(e,{getChildren:this.getChildren,getChildCount:this.getChildCount,truncateAt:this.state.truncateAt,createOverflowElement:this.createOverflowElement}))}}s()(D,"propTypes",{children:u.a.any,query:u.a.string,onChange:u.a.func});class I extends l.a.PureComponent{static getLabel(){return Object(m.a)("Explore Room State")}constructor(e){super(e),s()(this,"roomStateEvents",void 0),this.roomStateEvents=this.props.room.currentState.events,this.onBack=this.onBack.bind(this),this.editEv=this.editEv.bind(this),this.onQueryEventType=this.onQueryEventType.bind(this),this.onQueryStateKey=this.onQueryStateKey.bind(this),this.state={eventType:null,event:null,editing:!1,queryEventType:"",queryStateKey:""}}browseEventType(e){return()=>{this.setState({eventType:e})}}onViewSourceClick(e){return()=>{this.setState({event:e})}}onBack(){this.state.editing?this.setState({editing:!1}):this.state.event?this.setState({event:null}):this.state.eventType?this.setState({eventType:null}):this.props.onBack()}editEv(){this.setState({editing:!0})}onQueryEventType(e){this.setState({queryEventType:e})}onQueryStateKey(e){this.setState({queryStateKey:e})}render(){if(this.state.event)return this.state.editing?l.a.createElement(k,{room:this.props.room,forceStateEvent:!0,onBack:this.onBack,inputs:{eventType:this.state.event.getType(),evContent:JSON.stringify(this.state.event.getContent(),null,"\t"),stateKey:this.state.event.getStateKey()}}):l.a.createElement("div",{className:"mx_ViewSource"},l.a.createElement("div",{className:"mx_Dialog_content"},l.a.createElement(p.a,{className:"json"},JSON.stringify(this.state.event.event,null,2))),l.a.createElement("div",{className:"mx_Dialog_buttons"},l.a.createElement("button",{onClick:this.onBack},Object(m.a)("Back")),l.a.createElement("button",{onClick:this.editEv},Object(m.a)("Edit"))));let e=null;const t="mx_DevTools_RoomStateExplorer_button";if(null===this.state.eventType)e=l.a.createElement(D,{query:this.state.queryEventType,onChange:this.onQueryEventType},Array.from(this.roomStateEvents.entries()).map(([e,n])=>{let o;return o=1===n.size&&n.has("")?this.onViewSourceClick(n.get("")):this.browseEventType(e),l.a.createElement("button",{className:t,key:e,onClick:o},e)}));else{const n=this.roomStateEvents.get(this.state.eventType);e=l.a.createElement(D,{query:this.state.queryStateKey,onChange:this.onQueryStateKey},Array.from(n.entries()).map(([e,n])=>l.a.createElement("button",{className:t,key:e,onClick:this.onViewSourceClick(n)},e)))}return l.a.createElement("div",null,l.a.createElement("div",{className:"mx_Dialog_content"},e),l.a.createElement("div",{className:"mx_Dialog_buttons"},l.a.createElement("button",{onClick:this.onBack},Object(m.a)("Back"))))}}s()(I,"propTypes",{onBack:u.a.func.isRequired,room:u.a.instanceOf(x.a).isRequired}),s()(I,"contextType",f.a);class A extends l.a.PureComponent{static getLabel(){return Object(m.a)("Explore Account Data")}constructor(e){super(e),this.onBack=this.onBack.bind(this),this.editEv=this.editEv.bind(this),this._onChange=this._onChange.bind(this),this.onQueryEventType=this.onQueryEventType.bind(this),this.state={isRoomAccountData:!1,event:null,editing:!1,queryEventType:""}}getData(){return this.state.isRoomAccountData?this.props.room.accountData:this.context.store.accountData}onViewSourceClick(e){return()=>{this.setState({event:e})}}onBack(){this.state.editing?this.setState({editing:!1}):this.state.event?this.setState({event:null}):this.props.onBack()}_onChange(e){this.setState({[e.target.id]:"checkbox"===e.target.type?e.target.checked:e.target.value})}editEv(){this.setState({editing:!0})}onQueryEventType(e){this.setState({queryEventType:e})}render(){if(this.state.event)return this.state.editing?l.a.createElement(R,{room:this.props.room,isRoomAccountData:this.state.isRoomAccountData,onBack:this.onBack,inputs:{eventType:this.state.event.getType(),evContent:JSON.stringify(this.state.event.getContent(),null,"\t")},forceMode:!0}):l.a.createElement("div",{className:"mx_ViewSource"},l.a.createElement("div",{className:"mx_DevTools_content"},l.a.createElement(p.a,{className:"json"},JSON.stringify(this.state.event.event,null,2))),l.a.createElement("div",{className:"mx_Dialog_buttons"},l.a.createElement("button",{onClick:this.onBack},Object(m.a)("Back")),l.a.createElement("button",{onClick:this.editEv},Object(m.a)("Edit"))));const e=[],t=this.getData();return Object.keys(t).forEach(n=>{const o=t[n];e.push(l.a.createElement("button",{className:"mx_DevTools_RoomStateExplorer_button",key:n,onClick:this.onViewSourceClick(o)},n))}),l.a.createElement("div",null,l.a.createElement("div",{className:"mx_Dialog_content"},l.a.createElement(D,{query:this.state.queryEventType,onChange:this.onQueryEventType},e)),l.a.createElement("div",{className:"mx_Dialog_buttons"},l.a.createElement("button",{onClick:this.onBack},Object(m.a)("Back")),!this.state.message&&l.a.createElement("div",{style:{float:"right"}},l.a.createElement("input",{id:"isRoomAccountData",className:"mx_DevTools_tgl mx_DevTools_tgl-flip",type:"checkbox",onChange:this._onChange,checked:this.state.isRoomAccountData}),l.a.createElement("label",{className:"mx_DevTools_tgl-btn","data-tg-off":"Account Data","data-tg-on":"Room Data",htmlFor:"isRoomAccountData"}))))}}s()(A,"propTypes",{onBack:u.a.func.isRequired,room:u.a.instanceOf(x.a).isRequired}),s()(A,"contextType",f.a);class N extends l.a.PureComponent{static getLabel(){return Object(m.a)("View Servers in Room")}constructor(e){super(e),s()(this,"onQuery",e=>{this.setState({query:e})});const t=this.props.room,n=new Set;t.currentState.getStateEvents("m.room.member").forEach(e=>n.add(e.getSender().split(":")[1])),this.servers=Array.from(n).map(e=>l.a.createElement("button",{key:e,className:"mx_DevTools_ServersInRoomList_button"},e)),this.state={query:""}}render(){return l.a.createElement("div",null,l.a.createElement("div",{className:"mx_Dialog_content"},l.a.createElement(D,{query:this.state.query,onChange:this.onQuery},this.servers)),l.a.createElement("div",{className:"mx_Dialog_buttons"},l.a.createElement("button",{onClick:this.props.onBack},Object(m.a)("Back"))))}}s()(N,"propTypes",{onBack:u.a.func.isRequired,room:u.a.instanceOf(x.a).isRequired}),s()(N,"contextType",f.a);const F={[b.g]:"unsent",[b.e]:"requested",[b.d]:"ready",[b.c]:"done",[b.f]:"started",[b.b]:"cancelled"};function M({txnId:e,request:t}){const[,n]=Object(c.useState)(),[o,r]=Object(c.useState)(t.timeout);return Object(_.a)(t,"change",n),Object(c.useEffect)(()=>{if(0==t.timeout)return;const e=setInterval(()=>{r(t.timeout)},500);return()=>{clearInterval(e)}},[t]),l.a.createElement("div",{className:"mx_DevTools_VerificationRequest"},l.a.createElement("dl",null,l.a.createElement("dt",null,"Transaction"),l.a.createElement("dd",null,e),l.a.createElement("dt",null,"Phase"),l.a.createElement("dd",null,F[t.phase]||t.phase),l.a.createElement("dt",null,"Timeout"),l.a.createElement("dd",null,Math.floor(o/1e3)),l.a.createElement("dt",null,"Methods"),l.a.createElement("dd",null,t.methods&&t.methods.join(", ")),l.a.createElement("dt",null,"requestingUserId"),l.a.createElement("dd",null,t.requestingUserId),l.a.createElement("dt",null,"observeOnly"),l.a.createElement("dd",null,JSON.stringify(t.observeOnly))))}class P extends l.a.Component{constructor(...e){super(...e),s()(this,"onNewRequest",()=>{this.forceUpdate()})}static getLabel(){return Object(m.a)("Verification Requests")}componentDidMount(){this.context.on("crypto.verification.request",this.onNewRequest)}componentWillUnmount(){this.context.off("crypto.verification.request",this.onNewRequest)}render(){const e=this.context,t=this.props.room,n=(e._crypto._inRoomVerificationRequests._requestsByRoomId||new Map).get(t.roomId)||new Map;return l.a.createElement("div",null,l.a.createElement("div",{className:"mx_Dialog_content"},Array.from(n.entries()).reverse().map(([e,t])=>l.a.createElement(M,{txnId:e,request:t,key:e}))),l.a.createElement("div",{className:"mx_Dialog_buttons"},l.a.createElement("button",{onClick:this.props.onBack},Object(m.a)("Back"))))}}s()(P,"contextType",f.a);class L extends l.a.Component{static getLabel(){return Object(m.a)("Active Widgets")}constructor(e){super(e),s()(this,"onWidgetStoreUpdate",()=>{this.forceUpdate()}),s()(this,"onQueryChange",e=>{this.setState({query:e})}),s()(this,"onEditWidget",e=>{this.setState({editWidget:e})}),s()(this,"onBack",()=>{const e=v.a.instance.getApps(this.props.room.roomId);this.state.editWidget&&e.includes(this.state.editWidget)?this.setState({editWidget:null}):this.props.onBack()}),this.state={query:"",editWidget:null}}componentDidMount(){v.a.instance.on(y.b,this.onWidgetStoreUpdate)}componentWillUnmount(){v.a.instance.off(y.b,this.onWidgetStoreUpdate)}render(){const e=this.props.room,t=this.state.editWidget,n=v.a.instance.getApps(e.roomId);if(t&&n.includes(t)){const n=Array.from(Array.from(e.currentState.events.values()).map(e=>e.values())).reduce((e,t)=>(e.push(...t),e),[]).find(e=>e.getId()===t.eventId);return n?l.a.createElement(k,{onBack:this.onBack,room:e,forceStateEvent:!0,inputs:{eventType:n.getType(),evContent:JSON.stringify(n.getContent(),null,"\t"),stateKey:n.getStateKey()}}):l.a.createElement("div",null,Object(m.a)("There was an error finding this widget."),l.a.createElement("div",{className:"mx_Dialog_buttons"},l.a.createElement("button",{onClick:this.onBack},Object(m.a)("Back"))))}return l.a.createElement("div",null,l.a.createElement("div",{className:"mx_Dialog_content"},l.a.createElement(D,{query:this.state.query,onChange:this.onQueryChange},n.map(e=>l.a.createElement("button",{className:"mx_DevTools_RoomStateExplorer_button",key:e.url+e.eventId,onClick:()=>this.onEditWidget(e)},e.url)))),l.a.createElement("div",{className:"mx_Dialog_buttons"},l.a.createElement("button",{onClick:this.onBack},Object(m.a)("Back"))))}}class j extends l.a.Component{static getLabel(){return Object(m.a)("Settings Explorer")}constructor(e){super(e),s()(this,"onQueryChange",e=>{this.setState({query:e.target.value})}),s()(this,"onExplValuesEdit",e=>{this.setState({explicitValues:e.target.value})}),s()(this,"onExplRoomValuesEdit",e=>{this.setState({explicitRoomValues:e.target.value})}),s()(this,"onBack",()=>{this.state.editSetting?this.setState({editSetting:null}):this.state.viewSetting?this.setState({viewSetting:null}):this.props.onBack()}),s()(this,"onViewClick",(e,t)=>{e.preventDefault(),this.setState({viewSetting:t})}),s()(this,"onEditClick",(e,t)=>{e.preventDefault(),this.setState({editSetting:t,explicitValues:this.renderExplicitSettingValues(t,null),explicitRoomValues:this.renderExplicitSettingValues(t,this.props.room.roomId)})}),s()(this,"onSaveClick",async()=>{try{const e=this.state.editSetting,t=JSON.parse(this.state.explicitValues),n=JSON.parse(this.state.explicitRoomValues);for(const n of Object.keys(t)){console.log(`[Devtools] Setting value of ${e} at ${n} from user input`);try{const o=t[n];await S.b.setValue(e,null,n,o)}catch(e){console.warn(e)}}const o=this.props.room.roomId;for(const r of Object.keys(t)){console.log(`[Devtools] Setting value of ${e} at ${r} in ${o} from user input`);try{const t=n[r];await S.b.setValue(e,o,r,t)}catch(e){console.warn(e)}}this.setState({viewSetting:e,editSetting:null})}catch(e){w.a.createTrackedDialog("Devtools - Failed to save settings","",C.a,{title:Object(m.a)("Failed to save settings"),description:e.message})}}),this.state={query:"",editSetting:null,viewSetting:null,explicitValues:null,explicitRoomValues:null}}renderSettingValue(e){return["boolean","number"].includes(typeof e)?e.toString():JSON.stringify(e)}renderExplicitSettingValues(e,t){const n={};for(const o of S.a)try{n[o]=S.b.getValueAt(o,e,t,!0,!0),void 0===n[o]&&(n[o]=null)}catch(e){console.warn(e)}return JSON.stringify(n,null,4)}renderCanEditLevel(e,t){const n=S.b.canSetValue(this.state.editSetting,e,t),o=n?"mx_DevTools_SettingsExplorer_mutable":"mx_DevTools_SettingsExplorer_immutable";return l.a.createElement("td",{className:o},l.a.createElement("code",null,n.toString()))}render(){const e=this.props.room;if(!this.state.viewSetting&&!this.state.editSetting){const t=Object.keys(E.a).filter(e=>!this.state.query||e.toLowerCase().includes(this.state.query.toLowerCase()));return l.a.createElement("div",null,l.a.createElement("div",{className:"mx_Dialog_content mx_DevTools_SettingsExplorer"},l.a.createElement(g.a,{label:Object(m.a)("Filter results"),autoFocus:!0,size:64,type:"text",autoComplete:"off",value:this.state.query,onChange:this.onQueryChange,className:"mx_TextInputDialog_input mx_DevTools_RoomStateExplorer_query"}),l.a.createElement("table",null,l.a.createElement("thead",null,l.a.createElement("tr",null,l.a.createElement("th",null,Object(m.a)("Setting ID")),l.a.createElement("th",null,Object(m.a)("Value")),l.a.createElement("th",null,Object(m.a)("Value in this room")))),l.a.createElement("tbody",null,t.map(t=>l.a.createElement("tr",{key:t},l.a.createElement("td",null,l.a.createElement("a",{href:"",onClick:e=>this.onViewClick(e,t)},l.a.createElement("code",null,t)),l.a.createElement("a",{href:"",onClick:e=>this.onEditClick(e,t),className:"mx_DevTools_SettingsExplorer_edit"},"✏")),l.a.createElement("td",null,l.a.createElement("code",null,this.renderSettingValue(S.b.getValue(t)))),l.a.createElement("td",null,l.a.createElement("code",null,this.renderSettingValue(S.b.getValue(t,e.roomId))))))))),l.a.createElement("div",{className:"mx_Dialog_buttons"},l.a.createElement("button",{onClick:this.onBack},Object(m.a)("Back"))))}return this.state.editSetting?l.a.createElement("div",null,l.a.createElement("div",{className:"mx_Dialog_content mx_DevTools_SettingsExplorer"},l.a.createElement("h3",null,Object(m.a)("Setting:")," ",l.a.createElement("code",null,this.state.editSetting)),l.a.createElement("div",{className:"mx_DevTools_SettingsExplorer_warning"},l.a.createElement("b",null,Object(m.a)("Caution:"))," ",Object(m.a)("This UI does NOT check the types of the values. Use at your own risk.")),l.a.createElement("div",null,Object(m.a)("Setting definition:"),l.a.createElement("pre",null,l.a.createElement("code",null,JSON.stringify(E.a[this.state.editSetting],null,4)))),l.a.createElement("div",null,l.a.createElement("table",null,l.a.createElement("thead",null,l.a.createElement("tr",null,l.a.createElement("th",null,Object(m.a)("Level")),l.a.createElement("th",null,Object(m.a)("Settable at global")),l.a.createElement("th",null,Object(m.a)("Settable at room")))),l.a.createElement("tbody",null,S.a.map(t=>l.a.createElement("tr",{key:t},l.a.createElement("td",null,l.a.createElement("code",null,t)),this.renderCanEditLevel(null,t),this.renderCanEditLevel(e.roomId,t)))))),l.a.createElement("div",null,l.a.createElement(g.a,{id:"valExpl",label:Object(m.a)("Values at explicit levels"),type:"text",className:"mx_DevTools_textarea",element:"textarea",autoComplete:"off",value:this.state.explicitValues,onChange:this.onExplValuesEdit})),l.a.createElement("div",null,l.a.createElement(g.a,{id:"valExpl",label:Object(m.a)("Values at explicit levels in this room"),type:"text",className:"mx_DevTools_textarea",element:"textarea",autoComplete:"off",value:this.state.explicitRoomValues,onChange:this.onExplRoomValuesEdit}))),l.a.createElement("div",{className:"mx_Dialog_buttons"},l.a.createElement("button",{onClick:this.onSaveClick},Object(m.a)("Save setting values")),l.a.createElement("button",{onClick:this.onBack},Object(m.a)("Back")))):this.state.viewSetting?l.a.createElement("div",null,l.a.createElement("div",{className:"mx_Dialog_content mx_DevTools_SettingsExplorer"},l.a.createElement("h3",null,Object(m.a)("Setting:")," ",l.a.createElement("code",null,this.state.viewSetting)),l.a.createElement("div",null,Object(m.a)("Setting definition:"),l.a.createElement("pre",null,l.a.createElement("code",null,JSON.stringify(E.a[this.state.viewSetting],null,4)))),l.a.createElement("div",null,Object(m.a)("Value:")," ",l.a.createElement("code",null,this.renderSettingValue(S.b.getValue(this.state.viewSetting)))),l.a.createElement("div",null,Object(m.a)("Value in this room:")," ",l.a.createElement("code",null,this.renderSettingValue(S.b.getValue(this.state.viewSetting,e.roomId)))),l.a.createElement("div",null,Object(m.a)("Values at explicit levels:"),l.a.createElement("pre",null,l.a.createElement("code",null,this.renderExplicitSettingValues(this.state.viewSetting,null)))),l.a.createElement("div",null,Object(m.a)("Values at explicit levels in this room:"),l.a.createElement("pre",null,l.a.createElement("code",null,this.renderExplicitSettingValues(this.state.viewSetting,e.roomId))))),l.a.createElement("div",{className:"mx_Dialog_buttons"},l.a.createElement("button",{onClick:e=>this.onEditClick(e,this.state.viewSetting)},Object(m.a)("Edit Values")),l.a.createElement("button",{onClick:this.onBack},Object(m.a)("Back")))):void 0}}const U=[k,I,R,A,N,P,L,j];let B=Object(T.a)("views.dialogs.DevtoolsDialog")((i=r=class extends l.a.PureComponent{constructor(e){super(e),this.onBack=this.onBack.bind(this),this.onCancel=this.onCancel.bind(this),this.state={mode:null}}componentWillUnmount(){this._unmounted=!0}_setMode(e){return()=>{this.setState({mode:e})}}onBack(){this.prevMode?(this.setState({mode:this.prevMode}),this.prevMode=null):this.setState({mode:null})}onCancel(){this.props.onFinished(!1)}render(){let e;if(this.state.mode)e=l.a.createElement(f.a.Consumer,null,e=>l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"mx_DevTools_label_left"},this.state.mode.getLabel()),l.a.createElement("div",{className:"mx_DevTools_label_right"},"Room ID: ",this.props.roomId),l.a.createElement("div",{className:"mx_DevTools_label_bottom"}),l.a.createElement(this.state.mode,{onBack:this.onBack,room:e.getRoom(this.props.roomId)})));else{const t="mx_DevTools_RoomStateExplorer_button";e=l.a.createElement(l.a.Fragment,null,l.a.createElement("div",null,l.a.createElement("div",{className:"mx_DevTools_label_left"},Object(m.a)("Toolbox")),l.a.createElement("div",{className:"mx_DevTools_label_right"},"Room ID: ",this.props.roomId),l.a.createElement("div",{className:"mx_DevTools_label_bottom"}),l.a.createElement("div",{className:"mx_Dialog_content"},U.map(e=>{const n=e.getLabel(),o=this._setMode(e);return l.a.createElement("button",{className:t,key:n,onClick:o},n)}))),l.a.createElement("div",{className:"mx_Dialog_buttons"},l.a.createElement("button",{onClick:this.onCancel},Object(m.a)("Cancel"))))}const t=h.getComponent("views.dialogs.BaseDialog");return l.a.createElement(t,{className:"mx_QuestionDialog",onFinished:this.props.onFinished,title:Object(m.a)("Developer Tools")},e)}},s()(r,"propTypes",{roomId:u.a.string.isRequired,onFinished:u.a.func.isRequired}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(618),p=n(85);let m=Object(p.a)("views.elements.SyntaxHighlight")((i=r=class extends l.a.Component{constructor(e){super(e),this._ref=this._ref.bind(this)}componentDidUpdate(){this._el&&Object(h.highlightBlock)(this._el)}_ref(e){this._el=e,this.componentDidUpdate()}render(){const{className:e,children:t}=this.props;return l.a.createElement("pre",{className:e+" mx_SyntaxHighlight",ref:this._ref},l.a.createElement("code",null,t))}},s()(r,"propTypes",{className:u.a.string,children:u.a.node}),o=i))||o},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return d}));var o=n(84),r=n(251),i=n(157),a=n(139);const s=()=>{r.default.setEnabled(!0)},c=()=>{r.default.setPromptHidden(!0)},l=e=>{a.a.sharedInstance().addOrReplaceToast({key:"desktopnotifications",title:e?Object(o.a)("Don't miss a reply"):Object(o.a)("Notifications"),props:{description:Object(o.a)("Enable desktop notifications"),acceptLabel:Object(o.a)("Enable"),onAccept:s,rejectLabel:Object(o.a)("Dismiss"),onReject:c},component:i.a,priority:30})},d=()=>{a.a.sharedInstance().dismissToast("desktopnotifications")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(100),r=n.n(o),i=n(82),a=n.n(i),s=n(93);function c(e){const{className:t,label:n,kind:o}=e,i=r()(e,["className","label","kind"]),c=(t||"")+" mx_FormButton",l=Object.assign({},i,{className:c,kind:o||"primary",children:[n]});return a.a.createElement(s.a,l)}c.propTypes=s.a.propTypes},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(83),r=n.n(o),i=n(89),a=n(252);class s{constructor(e,t){this.window=e,this.document=t,r()(this,"activeNowTimeout",void 0),r()(this,"activeRecentlyTimeout",void 0),r()(this,"attachedActiveNowTimers",[]),r()(this,"attachedActiveRecentlyTimers",[]),r()(this,"lastScreenX",0),r()(this,"lastScreenY",0),r()(this,"onPageVisibilityChanged",e=>{"hidden"===this.document.visibilityState?(this.activeNowTimeout.abort(),this.activeRecentlyTimeout.abort()):this.onUserActivity(e)}),r()(this,"onWindowBlurred",()=>{this.activeNowTimeout.abort(),this.activeRecentlyTimeout.abort()}),r()(this,"onUserActivity",e=>{if(this.document.hasFocus()){if(e.screenX&&"mousemove"===e.type){if(e.screenX===this.lastScreenX&&e.screenY===this.lastScreenY)return;this.lastScreenX=e.screenX,this.lastScreenY=e.screenY}i.a.dispatch({action:"user_activity"}),this.activeNowTimeout.isRunning()?this.activeNowTimeout.restart():(this.activeNowTimeout.start(),i.a.dispatch({action:"user_activity_start"}),s.runTimersUntilTimeout(this.attachedActiveNowTimers,this.activeNowTimeout)),this.activeRecentlyTimeout.isRunning()?this.activeRecentlyTimeout.restart():(this.activeRecentlyTimeout.start(),s.runTimersUntilTimeout(this.attachedActiveRecentlyTimers,this.activeRecentlyTimeout))}}),this.activeNowTimeout=new a.a(700),this.activeRecentlyTimeout=new a.a(12e4)}static sharedInstance(){return void 0===window.mxUserActivity&&(window.mxUserActivity=new s(window,document)),window.mxUserActivity}timeWhileActiveNow(e){this.timeWhile(e,this.attachedActiveNowTimers),this.userActiveNow()&&e.start()}timeWhileActiveRecently(e){this.timeWhile(e,this.attachedActiveRecentlyTimers),this.userActiveRecently()&&e.start()}timeWhile(e,t){-1===t.indexOf(e)&&(t.push(e),e.finished().finally(()=>{const n=t.indexOf(e);-1!==n&&t.splice(n,1)}).catch(e=>{}))}start(){this.document.addEventListener("mousedown",this.onUserActivity),this.document.addEventListener("mousemove",this.onUserActivity),this.document.addEventListener("keydown",this.onUserActivity),this.document.addEventListener("visibilitychange",this.onPageVisibilityChanged),this.window.addEventListener("blur",this.onWindowBlurred),this.window.addEventListener("focus",this.onUserActivity),this.window.addEventListener("wheel",this.onUserActivity,{passive:!0,capture:!0})}stop(){this.document.removeEventListener("mousedown",this.onUserActivity),this.document.removeEventListener("mousemove",this.onUserActivity),this.document.removeEventListener("keydown",this.onUserActivity),this.window.removeEventListener("wheel",this.onUserActivity,{capture:!0}),this.document.removeEventListener("visibilitychange",this.onPageVisibilityChanged),this.window.removeEventListener("blur",this.onWindowBlurred),this.window.removeEventListener("focus",this.onUserActivity)}userActiveNow(){return this.activeNowTimeout.isRunning()}userActiveRecently(){return this.activeRecentlyTimeout.isRunning()}static async runTimersUntilTimeout(e,t){e.forEach(e=>e.start());try{await t.finished()}catch(e){}e.forEach(e=>e.abort())}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(83),r=n.n(o),i=n(150),a=n(253);class s extends i.a{getValueOverride(e,t,n,o){if(!n)return null;if(s.isLogin)return"light";return Object(a.b)()[n]?null:a.a}}r()(s,"isLogin",!1)},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(84),a=n(93),s=n(104);t.a=({avatarUrl:e,avatarDisabled:t=!1,setAvatar:n,name:c="",nameDisabled:l=!1,setName:d,topic:u="",topicDisabled:h=!1,setTopic:p})=>{const m=Object(o.useRef)(),[g,f]=Object(o.useState)(e);let _;return _=t?g?r.a.createElement("img",{className:"mx_SpaceBasicSettings_avatar",src:g,alt:""}):r.a.createElement("div",{className:"mx_SpaceBasicSettings_avatar"}):g?r.a.createElement(r.a.Fragment,null,r.a.createElement(a.a,{className:"mx_SpaceBasicSettings_avatar",onClick:()=>{var e;return null===(e=m.current)||void 0===e?void 0:e.click()},element:"img",src:g,alt:""}),r.a.createElement(a.a,{onClick:()=>{m.current.value="",f(void 0),n(void 0)},kind:"link",className:"mx_SpaceBasicSettings_avatar_remove"},Object(i.a)("Delete"))):r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"mx_SpaceBasicSettings_avatar",onClick:()=>{var e;return null===(e=m.current)||void 0===e?void 0:e.click()}}),r.a.createElement(a.a,{onClick:()=>{var e;return null===(e=m.current)||void 0===e?void 0:e.click()},kind:"link"},Object(i.a)("Upload"))),r.a.createElement("div",{className:"mx_SpaceBasicSettings"},r.a.createElement("div",{className:"mx_SpaceBasicSettings_avatarContainer"},_,r.a.createElement("input",{type:"file",ref:m,onChange:e=>{var t;if(null===(t=e.target.files)||void 0===t||!t.length)return;const o=e.target.files[0];n(o);const r=new FileReader;r.onload=e=>{f(e.target.result)},r.readAsDataURL(o)},accept:"image/*"})),r.a.createElement(s.a,{name:"spaceName",label:Object(i.a)("Name"),autoFocus:!0,value:c,onChange:e=>d(e.target.value),disabled:l}),r.a.createElement(s.a,{name:"spaceTopic",element:"textarea",label:Object(i.a)("Description"),value:u,onChange:e=>p(e.target.value),rows:3,disabled:h}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(86),l=n.n(c),d=n(92),u=n.n(d),h=n(93),p=n(84),m=n(101),g=n(85);class f extends s.a.Component{constructor(e){super(e),this._onMouseEnter=this._onMouseEnter.bind(this),this._onClick=this._onClick.bind(this)}_onMouseEnter(){this.props.onMouseEnter(this.props.dropdownKey)}_onClick(e){e.preventDefault(),e.stopPropagation(),this.props.onClick(this.props.dropdownKey)}render(){const e=u()({mx_Dropdown_option:!0,mx_Dropdown_option_highlight:this.props.highlighted});return s.a.createElement("div",{id:this.props.id,className:e,onClick:this._onClick,onMouseEnter:this._onMouseEnter,role:"option","aria-selected":this.props.highlighted,ref:this.props.inputRef},this.props.children)}}i()(f,"defaultProps",{disabled:!1}),f.propTypes={children:l.a.oneOfType([l.a.arrayOf(l.a.node),l.a.node]),highlighted:l.a.bool,dropdownKey:l.a.string,onClick:l.a.func.isRequired,onMouseEnter:l.a.func.isRequired,inputRef:l.a.any};let _=Object(g.a)("views.elements.Dropdown")(o=class extends s.a.Component{constructor(e){super(e),i()(this,"_onInputKeyDown",e=>{let t=!0;switch(e.key){case m.a.ENTER:this.props.onOptionChange(this.state.highlightedOption);case m.a.ESCAPE:this._close();break;case m.a.ARROW_DOWN:this.setState({highlightedOption:this._nextOption(this.state.highlightedOption)});break;case m.a.ARROW_UP:this.setState({highlightedOption:this._prevOption(this.state.highlightedOption)});break;default:t=!1}t&&(e.preventDefault(),e.stopPropagation())}),this.dropdownRootElement=null,this.ignoreEvent=null,this._onInputClick=this._onInputClick.bind(this),this._onRootClick=this._onRootClick.bind(this),this._onDocumentClick=this._onDocumentClick.bind(this),this._onMenuOptionClick=this._onMenuOptionClick.bind(this),this._onInputChange=this._onInputChange.bind(this),this._collectRoot=this._collectRoot.bind(this),this._collectInputTextBox=this._collectInputTextBox.bind(this),this._setHighlightedOption=this._setHighlightedOption.bind(this),this.inputTextBox=null,this._reindexChildren(this.props.children);const t=s.a.Children.toArray(e.children)[0];this.state={expanded:!1,highlightedOption:t?t.key:null,searchQuery:""}}UNSAFE_componentWillMount(){this._button=Object(a.createRef)(),document.addEventListener("click",this._onDocumentClick,!1)}componentWillUnmount(){document.removeEventListener("click",this._onDocumentClick,!1)}UNSAFE_componentWillReceiveProps(e){if(!e.children||0===e.children.length)return;this._reindexChildren(e.children);const t=e.children[0];this.setState({highlightedOption:t?t.key:null})}_reindexChildren(e){this.childrenByKey={},s.a.Children.forEach(e,e=>{this.childrenByKey[e.key]=e})}_onDocumentClick(e){e!==this.ignoreEvent&&this.setState({expanded:!1})}_onRootClick(e){this.ignoreEvent=e}_onInputClick(e){this.props.disabled||this.state.expanded||(this.setState({expanded:!0}),e.preventDefault())}_close(){this.setState({expanded:!1}),this._button.current&&this._button.current.focus()}_onMenuOptionClick(e){this._close(),this.props.onOptionChange(e)}_onInputChange(e){this.setState({searchQuery:e.target.value}),this.props.onSearchChange&&this.props.onSearchChange(e.target.value)}_collectRoot(e){this.dropdownRootElement&&this.dropdownRootElement.removeEventListener("click",this._onRootClick,!1),e&&e.addEventListener("click",this._onRootClick,!1),this.dropdownRootElement=e}_collectInputTextBox(e){this.inputTextBox=e,e&&e.focus()}_setHighlightedOption(e){this.setState({highlightedOption:e})}_nextOption(e){const t=Object.keys(this.childrenByKey),n=t.indexOf(e);return t[(n+1)%t.length]}_prevOption(e){const t=Object.keys(this.childrenByKey),n=t.indexOf(e);return t[(n-1)%t.length]}_scrollIntoView(e){e&&e.scrollIntoView({block:"nearest",behavior:"auto"})}_getMenuOptions(){const e=s.a.Children.map(this.props.children,e=>{const t=this.state.highlightedOption===e.key;return s.a.createElement(f,{id:`${this.props.id}__${e.key}`,key:e.key,dropdownKey:e.key,highlighted:t,onMouseEnter:this._setHighlightedOption,onClick:this._onMenuOptionClick,inputRef:t?this._scrollIntoView:void 0},e)});return 0===e.length?[s.a.createElement("div",{key:"0",className:"mx_Dropdown_option",role:"option"},Object(p.a)("No results"))]:e}render(){let e;const t={};let n;if(this.props.menuWidth&&(t.width=this.props.menuWidth),this.state.expanded&&(this.props.searchEnabled&&(e=s.a.createElement("input",{type:"text",className:"mx_Dropdown_option",ref:this._collectInputTextBox,onKeyDown:this._onInputKeyDown,onChange:this._onInputChange,value:this.state.searchQuery,role:"combobox","aria-autocomplete":"list","aria-activedescendant":`${this.props.id}__${this.state.highlightedOption}`,"aria-owns":this.props.id+"_listbox","aria-disabled":this.props.disabled,"aria-label":this.props.label})),n=s.a.createElement("div",{className:"mx_Dropdown_menu",style:t,role:"listbox",id:this.props.id+"_listbox"},this._getMenuOptions())),!e){const t=this.props.getShortOption?this.props.getShortOption(this.props.value):this.childrenByKey[this.props.value];e=s.a.createElement("div",{className:"mx_Dropdown_option",id:this.props.id+"_value"},t)}const o={mx_Dropdown:!0,mx_Dropdown_disabled:this.props.disabled};return this.props.className&&(o[this.props.className]=!0),s.a.createElement("div",{className:u()(o),ref:this._collectRoot},s.a.createElement(h.a,{className:"mx_Dropdown_input mx_no_textinput",onClick:this._onInputClick,"aria-haspopup":"listbox","aria-expanded":this.state.expanded,disabled:this.props.disabled,inputRef:this._button,"aria-label":this.props.label,"aria-describedby":this.props.id+"_value"},e,s.a.createElement("span",{className:"mx_Dropdown_arrow"}),n))}})||o;_.propTypes={id:l.a.string.isRequired,menuWidth:l.a.number,onOptionChange:l.a.func.isRequired,onSearchChange:l.a.func,searchEnabled:l.a.bool,getShortOption:l.a.func,value:l.a.string,disabled:l.a.bool,label:l.a.string.isRequired}},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(101),p=n(89),m=n(105),g=n(93),f=n(92),_=n.n(f),b=n(85);let v=Object(b.a)("structures.SearchBox")((i=r=class extends l.a.Component{constructor(e){super(e),s()(this,"onAction",e=>{if(this.props.enableRoomSearchFocus)switch(e.action){case"view_room":this._search.current&&e.clear_search&&this._clearSearch();break;case"focus_room_filter":this._search.current&&this._search.current.focus()}}),s()(this,"onChange",()=>{this._search.current&&(this.setState({searchTerm:this._search.current.value}),this.onSearch())}),s()(this,"onSearch",Object(m.throttle)(()=>{this.props.onSearch(this._search.current.value)},200,{trailing:!0,leading:!0})),s()(this,"_onKeyDown",e=>{switch(e.key){case h.a.ESCAPE:this._clearSearch("keyboard")}this.props.onKeyDown&&this.props.onKeyDown(e)}),s()(this,"_onFocus",e=>{this.setState({blurred:!1}),e.target.select(),this.props.onFocus&&this.props.onFocus(e)}),s()(this,"_onBlur",e=>{this.setState({blurred:!0}),this.props.onBlur&&this.props.onBlur(e)}),this._search=Object(c.createRef)(),this.state={searchTerm:this.props.initialValue||"",blurred:!0}}componentDidMount(){this.dispatcherRef=p.a.register(this.onAction)}componentWillUnmount(){p.a.unregister(this.dispatcherRef)}_clearSearch(e){this._search.current.value="",this.onChange(),this.props.onCleared&&this.props.onCleared(e)}render(){if(this.props.collapsed)return null;const e=!this.state.blurred||this.state.searchTerm?l.a.createElement(g.a,{key:"button",tabIndex:-1,className:"mx_SearchBox_closeButton",onClick:()=>{this._clearSearch("button")}}):void 0,t=this.state.blurred&&this.props.blurredPlaceholder||this.props.placeholder,n=this.props.className||"";return l.a.createElement("div",{className:_()("mx_SearchBox","mx_textinput",{mx_SearchBox_blurred:this.state.blurred})},l.a.createElement("input",{key:"searchfield",type:"text",ref:this._search,className:"mx_textinput_icon mx_textinput_search "+n,value:this.state.searchTerm,onFocus:this._onFocus,onChange:this.onChange,onKeyDown:this._onKeyDown,onBlur:this._onBlur,placeholder:t,autoComplete:"off",autoFocus:this.props.autoFocus}),e)}},s()(r,"propTypes",{onSearch:u.a.func,onCleared:u.a.func,onKeyDown:u.a.func,className:u.a.string,placeholder:u.a.string.isRequired,autoFocus:u.a.bool,initialValue:u.a.string,enableRoomSearchFocus:u.a.bool}),s()(r,"defaultProps",{enableRoomSearchFocus:!1}),o=i))||o},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(84),a=n(93),s=n(293),c=n(125),l=n(109),d=n(145);t.a=({space:e,onFinished:t})=>{const[n,u]=Object(o.useState)(Object(i.a)("Click to copy"));return r.a.createElement("div",{className:"mx_SpacePublicShare"},r.a.createElement(a.a,{className:"mx_SpacePublicShare_shareButton",onClick:async()=>{const t=new l.a(e);t.load();const o=await Object(s.b)(t.forRoom())?Object(i.a)("Copied!"):Object(i.a)("Failed to copy");u(o),await Object(c.d)(5e3),n===o&&u(Object(i.a)("Click to copy"))}},r.a.createElement("h3",null,Object(i.a)("Share invite link")),r.a.createElement("span",null,n)),r.a.createElement(a.a,{className:"mx_SpacePublicShare_inviteButton",onClick:()=>{Object(d.g)(e.roomId),t&&t()}},r.a.createElement("h3",null,Object(i.a)("Invite people")),r.a.createElement("span",null,Object(i.a)("Invite with email or username"))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(95),r=n.n(o),i=n(100),a=n.n(i),s=n(82),c=n.n(s),l=n(93),d=n(151);const u=e=>{let{inputRef:t}=e,n=a()(e,["inputRef"]);const[o,i,s]=Object(d.e)(t);return c.a.createElement(l.a,r()({},n,{onFocus:o,inputRef:s,tabIndex:i?0:-1}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(95),r=n.n(o),i=n(100),a=n.n(i),s=n(82),c=n.n(s),l=n(111),d=n(151);const u=e=>{let{inputRef:t}=e,n=a()(e,["inputRef"]);const[o,i,s]=Object(d.e)(t);return c.a.createElement(l.a,r()({},n,{onFocus:o,inputRef:s,tabIndex:i?0:-1}))}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return D})),n.d(t,"b",(function(){return I}));var o,r=n(83),i=n.n(r),a=n(82),s=n(92),c=n.n(s),l=n(151),d=n(84),u=n(93),h=n(629),p=n(102),m=n(144),g=n(240),f=n(124),_=n(89),b=n(219),v=n(111),y=n(101),E=n(294),S=n(1267),w=n(166),C=n(751),T=n(117),x=n(128),O=n(178),k=n(176),R=n(85);const D=32;Object(S.a)();let I=Object(R.a)("views.rooms.RoomSublist")(o=class t extends a.Component{constructor(t){super(t),i()(this,"headerButton",Object(a.createRef)()),i()(this,"sublistRef",Object(a.createRef)()),i()(this,"dispatcherRef",void 0),i()(this,"layout",void 0),i()(this,"heightAtStart",void 0),i()(this,"isBeingFiltered",void 0),i()(this,"notificationState",void 0),i()(this,"onListsUpdated",()=>{const e={};if(this.props.extraTiles){const t=m.b.instance.getFirstNameFilterCondition();t?e.filteredExtraTiles=this.props.extraTiles.filter(e=>t.matches(e.props.displayName||"")):this.state.filteredExtraTiles&&(e.filteredExtraTiles=null)}const t=this.state.rooms,n=Object(T.b)(m.b.instance.orderedLists[this.props.tagId]||[]);Object(T.e)(t,n)&&(e.rooms=n);const o=!!m.b.instance.getFirstNameFilterCondition();o!==this.isBeingFiltered&&(this.isBeingFiltered=o,e.isExpanded=!!o||!this.layout.isCollapsed),Object.keys(e).length>0&&this.setState(e)}),i()(this,"onAction",t=>{"view_room"===t.action&&t.show_room_tile&&this.state.rooms&&e(()=>{const e=this.state.rooms.findIndex(e=>e.roomId===t.room_id);!this.state.isExpanded&&e>-1&&this.toggleCollapsed(),e>=this.numVisibleTiles&&(this.layout.visibleTiles=this.layout.tilesWithPadding(e+1,32),this.forceUpdate())})}),i()(this,"onAddRoom",e=>{e.stopPropagation(),this.props.onAddRoom&&this.props.onAddRoom()}),i()(this,"onResize",(e,t,n,o)=>{const r=this.heightAtStart+o.height;this.applyHeightChange(r),this.setState({height:r})}),i()(this,"onResizeStart",()=>{this.heightAtStart=this.state.height,this.setState({isResizing:!0})}),i()(this,"onResizeStop",(e,t,n,o)=>{const r=this.heightAtStart+o.height;this.applyHeightChange(r),this.setState({isResizing:!1,height:r})}),i()(this,"onShowAllClick",()=>{const e=this.numVisibleTiles,t=this.layout.tilesToPixelsWithPadding(this.numTiles,this.padding);this.applyHeightChange(t),this.setState({height:t},()=>{this.focusRoomTile(e)})}),i()(this,"onShowLessClick",()=>{const e=this.layout.tilesToPixelsWithPadding(this.layout.defaultVisibleTiles,this.padding);this.applyHeightChange(e),this.setState({height:e})}),i()(this,"focusRoomTile",e=>{if(!this.sublistRef.current)return;const t=this.sublistRef.current.querySelectorAll(".mx_RoomTile"),n=t&&t[e];n&&n.focus()}),i()(this,"onOpenMenuClick",e=>{e.preventDefault(),e.stopPropagation();const t=e.target;this.setState({contextMenuPosition:t.getBoundingClientRect()})}),i()(this,"onContextMenu",e=>{e.preventDefault(),e.stopPropagation(),this.setState({contextMenuPosition:{left:e.clientX,top:e.clientY,height:0}})}),i()(this,"onAddRoomContextMenu",e=>{e.preventDefault(),e.stopPropagation();const t=e.target;this.setState({addRoomContextMenuPosition:t.getBoundingClientRect()})}),i()(this,"onCloseMenu",()=>{this.setState({contextMenuPosition:null})}),i()(this,"onCloseAddRoomMenu",()=>{this.setState({addRoomContextMenuPosition:null})}),i()(this,"onUnreadFirstChanged",async()=>{const e=m.b.instance.getListOrder(this.props.tagId)===g.a.Importance?g.a.Natural:g.a.Importance;await m.b.instance.setListOrder(this.props.tagId,e),this.forceUpdate()}),i()(this,"onTagSortChanged",async e=>{await m.b.instance.setTagSorting(this.props.tagId,e)}),i()(this,"onMessagePreviewChanged",()=>{this.layout.showPreviews=!this.layout.showPreviews,this.forceUpdate()}),i()(this,"onBadgeClick",e=>{let t;e.preventDefault(),e.stopPropagation(),t=this.props.tagId===f.a.Invite?this.state.rooms&&this.state.rooms[0]:m.b.instance.unfilteredLists[this.props.tagId].find(e=>{const t=this.notificationState.getForRoom(e);return t.count>0&&t.color===this.notificationState.color}),t&&_.a.dispatch({action:"view_room",room_id:t.roomId,show_room_tile:!0})}),i()(this,"onHeaderClick",()=>{const t=this.headerButton.current.parentElement,n=t.parentElement.parentElement,o=n.parentElement.parentElement,r=o.scrollTop<=D,i=o.scrollTop>=o.scrollHeight-o.offsetHeight,a=t.classList.contains("mx_RoomSublist_headerContainer_stickyTop"),s=t.classList.contains("mx_RoomSublist_headerContainer_stickyBottom");if(s&&!i||a&&!r)n.scrollIntoView({behavior:"smooth"});else{const t=this.state.isExpanded;this.toggleCollapsed(),!t&&s&&e(()=>{n.scrollIntoView({behavior:"smooth"})})}}),i()(this,"toggleCollapsed",()=>{this.layout.isCollapsed=this.state.isExpanded,this.setState({isExpanded:!this.layout.isCollapsed}),e(()=>this.props.onResize())}),i()(this,"onHeaderKeyDown",e=>{switch(Object(k.f)().getRoomListAction(e)){case k.e.CollapseSection:e.stopPropagation(),this.state.isExpanded&&this.toggleCollapsed();break;case k.e.ExpandSection:if(e.stopPropagation(),this.state.isExpanded){if(this.sublistRef.current){const e=this.sublistRef.current.querySelector(".mx_RoomTile");e&&e.focus()}}else this.toggleCollapsed()}}),i()(this,"onKeyDown",e=>{switch(e.key){case y.a.ARROW_LEFT:e.stopPropagation(),this.headerButton.current.focus();break;case y.a.ARROW_RIGHT:e.stopPropagation()}}),this.layout=C.a.instance.getLayoutFor(this.props.tagId),this.heightAtStart=0,this.isBeingFiltered=!!m.b.instance.getFirstNameFilterCondition(),this.notificationState=w.a.instance.getListState(this.props.tagId),this.state={contextMenuPosition:null,addRoomContextMenuPosition:null,isResizing:!1,isExpanded:this.isBeingFiltered?this.isBeingFiltered:!this.layout.isCollapsed,height:0,rooms:Object(T.b)(m.b.instance.orderedLists[this.props.tagId]||[])},this.state=Object.assign(this.state,{height:this.calculateInitialHeight()})}calculateInitialHeight(){const e=Math.max(Math.floor(this.layout.visibleTiles),this.layout.minVisibleTiles),t=Math.min(this.numTiles,e);return this.layout.tilesToPixelsWithPadding(t,this.padding)}get padding(){let e=4;const t=this.numTiles>this.numVisibleTiles,n=this.numTiles>this.layout.defaultVisibleTiles;return(t||n)&&(e+=28),e}get extraTiles(){return this.state.filteredExtraTiles?this.state.filteredExtraTiles:this.props.extraTiles?this.props.extraTiles:null}get numTiles(){return t.calcNumTiles(this.state.rooms,this.extraTiles)}static calcNumTiles(e,t){return(e||[]).length+(t||[]).length}get numVisibleTiles(){const e=Math.ceil(this.layout.visibleTiles);return Math.min(e,this.numTiles)}componentDidUpdate(e,n){const o=n.filteredExtraTiles||e.extraTiles;t.calcNumTiles(n.rooms,o)!==this.numTiles&&this.setState({height:this.calculateInitialHeight()})}shouldComponentUpdate(e,n){if(Object(x.d)(this.props,e))return!0;const o=Object(x.c)(this.state,["rooms"]),r=Object(x.c)(n,["rooms"]);if(Object(x.d)(o,r))return!0;const i=this.props.extraTiles||[],a=n.filteredExtraTiles||e.extraTiles||[];if(i.length>0||a.length>0)return!0;if(t.calcNumTiles(n.rooms,a)!==this.numTiles)return!0;if(!n.isExpanded)return!1;if(this.state.rooms.length!==n.rooms.length)return!0;const s=this.state.rooms.slice(0,this.numVisibleTiles),c=n.rooms.slice(0,this.numVisibleTiles);return!!Object(T.e)(s,c)}componentDidMount(){this.dispatcherRef=_.a.register(this.onAction),m.b.instance.on(m.a,this.onListsUpdated)}componentWillUnmount(){_.a.unregister(this.dispatcherRef),m.b.instance.off(m.a,this.onListsUpdated)}applyHeightChange(e){const t=Math.ceil(this.layout.pixelsToTiles(e-this.padding));this.layout.visibleTiles=Math.min(this.numTiles,t)}renderVisibleTiles(){if(!this.state.isExpanded)return[];const e=[];if(this.state.rooms){const t=this.state.rooms.slice(0,this.numVisibleTiles);for(const n of t)e.push(a.createElement(h.a,{room:n,key:"room-"+n.roomId,showMessagePreview:this.layout.showPreviews,isMinimized:this.props.isMinimized,tag:this.props.tagId}))}return this.extraTiles&&e.push(...this.extraTiles),e.length>this.numVisibleTiles?e.slice(0,this.numVisibleTiles):e}renderMenu(){let e=null;if(this.state.contextMenuPosition){const t=m.b.instance.getTagSorting(this.props.tagId)===g.b.Alphabetic,n=m.b.instance.getListOrder(this.props.tagId)===g.a.Importance;let o=null;this.props.tagId!==f.a.Invite&&(o=a.createElement(a.Fragment,null,a.createElement("hr",null),a.createElement("div",null,a.createElement("div",{className:"mx_RoomSublist_contextMenu_title"},Object(d.a)("Appearance")),a.createElement(p.i,{onClose:this.onCloseMenu,onChange:this.onUnreadFirstChanged,checked:n},Object(d.a)("Show rooms with unread messages first")),a.createElement(p.i,{onClose:this.onCloseMenu,onChange:this.onMessagePreviewChanged,checked:this.layout.showPreviews},Object(d.a)("Show previews of messages"))))),e=a.createElement(p.b,{chevronFace:p.a.None,left:this.state.contextMenuPosition.left,top:this.state.contextMenuPosition.top+this.state.contextMenuPosition.height,onFinished:this.onCloseMenu},a.createElement("div",{className:"mx_RoomSublist_contextMenu"},a.createElement("div",null,a.createElement("div",{className:"mx_RoomSublist_contextMenu_title"},Object(d.a)("Sort by")),a.createElement(p.j,{onClose:this.onCloseMenu,onChange:()=>this.onTagSortChanged(g.b.Recent),checked:!t,name:`mx_${this.props.tagId}_sortBy`},Object(d.a)("Activity")),a.createElement(p.j,{onClose:this.onCloseMenu,onChange:()=>this.onTagSortChanged(g.b.Alphabetic),checked:t,name:`mx_${this.props.tagId}_sortBy`},Object(d.a)("A-Z"))),o))}else this.state.addRoomContextMenuPosition&&(e=a.createElement(O.e,{chevronFace:p.a.None,left:this.state.addRoomContextMenuPosition.left-7,top:this.state.addRoomContextMenuPosition.top+this.state.addRoomContextMenuPosition.height,onFinished:this.onCloseAddRoomMenu,compact:!0},this.props.addRoomContextMenu(this.onCloseAddRoomMenu)));return a.createElement(a.Fragment,null,a.createElement(p.d,{className:"mx_RoomSublist_menuButton",onClick:this.onOpenMenuClick,title:Object(d.a)("List options"),isExpanded:!!this.state.contextMenuPosition}),e)}renderHeader(){return a.createElement(l.d,{inputRef:this.headerButton},({onFocus:e,isActive:t,ref:n})=>{const o=t?0:-1;let r=Object(d.a)("Jump to first unread room.");this.props.tagId===f.a.Invite&&(r=Object(d.a)("Jump to first invite."));const i=a.createElement(b.a,{forceCount:!0,notification:this.notificationState,onClick:this.onBadgeClick,tabIndex:o,"aria-label":r});let s=null;this.props.onAddRoom?s=a.createElement(v.a,{tabIndex:o,onClick:this.onAddRoom,className:"mx_RoomSublist_auxButton",tooltipClassName:"mx_RoomSublist_addRoomTooltip","aria-label":this.props.addRoomLabel||Object(d.a)("Add room"),title:this.props.addRoomLabel}):this.props.addRoomContextMenu&&(s=a.createElement(p.d,{tabIndex:o,onClick:this.onAddRoomContextMenu,className:"mx_RoomSublist_auxButton",tooltipClassName:"mx_RoomSublist_addRoomTooltip","aria-label":this.props.addRoomLabel||Object(d.a)("Add room"),title:this.props.addRoomLabel,isExpanded:!!this.state.addRoomContextMenuPosition}));const l=c()({mx_RoomSublist_collapseBtn:!0,mx_RoomSublist_collapseBtn_collapsed:!this.state.isExpanded}),h=c()({mx_RoomSublist_headerContainer:!0,mx_RoomSublist_headerContainer_withAux:!!s}),m=a.createElement("div",{className:"mx_RoomSublist_badgeContainer"},i);let g=u.a;return this.props.isMinimized&&(g=v.a),a.createElement("div",{className:h,onKeyDown:this.onHeaderKeyDown,onFocus:e,"aria-label":this.props.label},a.createElement("div",{className:"mx_RoomSublist_stickable"},a.createElement(g,{onFocus:e,inputRef:n,tabIndex:o,className:"mx_RoomSublist_headerText",role:"treeitem","aria-expanded":this.state.isExpanded,"aria-level":1,onClick:this.onHeaderClick,onContextMenu:this.onContextMenu,title:this.props.isMinimized?this.props.label:void 0},a.createElement("span",{className:l}),a.createElement("span",null,this.props.label)),this.renderMenu(),this.props.isMinimized?null:m,this.props.isMinimized?null:s),this.props.isMinimized?m:null,this.props.isMinimized?s:null)})}onScrollPrevent(e){e.target.scrollTop=0}render(){const e=this.renderVisibleTiles(),t=c()({mx_RoomSublist:!0,mx_RoomSublist_hasMenuOpen:!!this.state.contextMenuPosition,mx_RoomSublist_minimized:this.props.isMinimized,mx_RoomSublist_hidden:!this.state.rooms.length&&!0!==this.props.alwaysVisible});let n=null;if(e.length>0){const t=this.layout,o=Math.min(t.minVisibleTiles,this.numTiles),r=4+(o<this.numTiles?28:0),i=t.tilesToPixelsWithPadding(o,r),s=t.tilesToPixelsWithPadding(this.numTiles,this.padding),u=c()({mx_RoomSublist_showNButton:!0});let h=null;if(s>this.state.height){const e=this.state.height-4-28,t=Math.floor(e/this.layout.tileHeight),n=this.numTiles-t,o=Object(d.a)("Show %(count)s more",{count:n});let r=a.createElement("span",{className:"mx_RoomSublist_showNButtonText"},o);this.props.isMinimized&&(r=null),h=a.createElement(l.a,{role:"treeitem",onClick:this.onShowAllClick,className:u,"aria-label":o},a.createElement("span",{className:"mx_RoomSublist_showMoreButtonChevron mx_RoomSublist_showNButtonChevron"}),r)}else if(this.numTiles>this.layout.defaultVisibleTiles){const e=Object(d.a)("Show less");let t=a.createElement("span",{className:"mx_RoomSublist_showNButtonText"},e);this.props.isMinimized&&(t=null),h=a.createElement(l.a,{role:"treeitem",onClick:this.onShowLessClick,className:u,"aria-label":e},a.createElement("span",{className:"mx_RoomSublist_showLessButtonChevron mx_RoomSublist_showNButtonChevron"}),t)}const p={bottom:!0,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1};t.visibleTiles>=this.numTiles&&this.numTiles<=t.minVisibleTiles&&(p.bottom=!1);const m=c()({mx_RoomSublist_resizerHandles:!0,mx_RoomSublist_resizerHandles_showNButton:!!h});n=a.createElement(a.Fragment,null,a.createElement(E.Resizable,{size:{height:this.state.height},minHeight:i,maxHeight:s,onResizeStart:this.onResizeStart,onResizeStop:this.onResizeStop,onResize:this.onResize,handleWrapperClass:m,handleClasses:{bottom:"mx_RoomSublist_resizerHandle"},className:"mx_RoomSublist_resizeBox",enable:p},a.createElement("div",{className:"mx_RoomSublist_tiles",onScroll:this.onScrollPrevent},e),h))}else this.props.showSkeleton&&this.state.isExpanded&&(n=a.createElement("div",{className:"mx_RoomSublist_skeletonUI"}));return a.createElement("div",{ref:this.sublistRef,className:t,role:"group","aria-label":this.props.label,onKeyDown:this.onKeyDown},this.renderHeader(),n)}})||o}).call(this,n(160).setImmediate)},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var o=n(83),r=n.n(o),i=n(635);let a;!function(e){e[e.Pending=0]="Pending",e[e.Success=1]="Success",e[e.Error=2]="Error"}(a||(a={}));class s extends i.a{constructor(e,t){super(),this.auditName=e,this.runFn=t,r()(this,"_status",a.Pending),r()(this,"didFail",!1),r()(this,"startTime",new Date)}get didPreviouslyFail(){return this.didFail}get status(){return this._status}run(){if(this.status===a.Success)throw new Error("Cannot re-run a successful echo transaction");this.setStatus(a.Pending),this.runFn().then(()=>this.setStatus(a.Success)).catch(()=>this.setStatus(a.Error))}cancel(){this.setStatus(a.Success)}setStatus(e){this._status=e,e===a.Error?this.didFail=!0:e===a.Success&&(this.didFail=!1),this.notifyCondition(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d}));var o,r=n(82),i=n(84),a=n(87),s=n(113),c=n(85);class l{constructor(e,t,n,o){this.id=e,this.label=t,this.icon=n,this.body=o}}let d=Object(c.a)("structures.TabbedView")(o=class extends r.Component{constructor(e){super(e);let t=0;if(e.initialTabId){const n=e.tabs.findIndex(t=>t.id===e.initialTabId);n>=0&&(t=n)}this.state={activeTabIndex:t}}_getActiveTabIndex(){return this.state&&this.state.activeTabIndex?this.state.activeTabIndex:0}_setActiveTab(e){const t=this.props.tabs.indexOf(e);-1!==t?this.setState({activeTabIndex:t}):console.error("Could not find tab "+e.label+" in tabs")}_renderTabLabel(e){const t=a.getComponent("elements.AccessibleButton");let n="mx_TabbedView_tabLabel ";this.props.tabs.indexOf(e)===this._getActiveTabIndex()&&(n+="mx_TabbedView_tabLabel_active");let o=null;e.icon&&(o=r.createElement("span",{className:"mx_TabbedView_maskedIcon "+e.icon}));const s=Object(i.a)(e.label);return r.createElement(t,{className:n,key:"tab_label_"+e.label,onClick:()=>this._setActiveTab(e)},o,r.createElement("span",{className:"mx_TabbedView_tabLabel_text"},s))}_renderTabPanel(e){return r.createElement("div",{className:"mx_TabbedView_tabPanel",key:"mx_tabpanel_"+e.label},r.createElement(s.a,{className:"mx_TabbedView_tabPanelContent"},e.body))}render(){const e=this.props.tabs.map(e=>this._renderTabLabel(e)),t=this._renderTabPanel(this.props.tabs[this._getActiveTabIndex()]);return r.createElement("div",{className:"mx_TabbedView"},r.createElement("div",{className:"mx_TabbedView_tabLabels"},e),t)}})||o},function(e,t,n){"use strict";var o=String.prototype.replace,r=/%20/g,i="RFC1738",a="RFC3986";e.exports={default:a,formatters:{RFC1738:function(e){return o.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(83),r=n.n(o),i=n(88),a=n(346),s=n(90),c=n(84),l=n(89),d=n(98);class u{constructor(){r()(this,"_lists",[]),r()(this,"_roomIds",[]),r()(this,"_mjolnirWatchRef",null),r()(this,"_dispatcherRef",null),r()(this,"_onAction",e=>{"setup_mjolnir"===e.action&&(console.log("Setting up Mjolnir: after sync"),this.setup())}),r()(this,"_onEvent",e=>{i.a.get()&&this._roomIds.includes(e.getRoomId())&&a.a.includes(e.getType())&&this._updateLists(this._roomIds)})}get roomIds(){return this._roomIds}get lists(){return this._lists}start(){this._mjolnirWatchRef=s.b.watchSetting("mjolnirRooms",null,this._onListsChanged.bind(this)),this._dispatcherRef=l.a.register(this._onAction),l.a.dispatch({action:"do_after_sync_prepared",deferred_action:{action:"setup_mjolnir"}})}setup(){i.a.get()&&(this._updateLists(s.b.getValue("mjolnirRooms")),i.a.get().on("RoomState.events",this._onEvent))}stop(){this._mjolnirWatchRef&&(s.b.unwatchSetting(this._mjolnirWatchRef),this._mjolnirWatchRef=null),this._dispatcherRef&&(l.a.unregister(this._dispatcherRef),this._dispatcherRef=null),i.a.get()&&i.a.get().removeListener("RoomState.events",this._onEvent)}async getOrCreatePersonalList(){let e=s.b.getValue("mjolnirPersonalRoom");if(!e){const t=await i.a.get().createRoom({name:Object(c.a)("My Ban List"),topic:Object(c.a)("This is your list of users/servers you have blocked - don't leave the room!"),preset:"private_chat"});e=t.room_id,await s.b.setValue("mjolnirPersonalRoom",null,d.a.ACCOUNT,e),await s.b.setValue("mjolnirRooms",null,d.a.ACCOUNT,[e,...this._roomIds])}if(!e)throw new Error("Error finding a room ID to use");let t=this._lists.find(t=>t.roomId===e);return t||(t=new a.b(e)),t}getPersonalList(){const e=s.b.getValue("mjolnirPersonalRoom");if(!e)return null;let t=this._lists.find(t=>t.roomId===e);return t||(t=new a.b(e)),t}async subscribeToList(e){const t=[...this._roomIds,e];await s.b.setValue("mjolnirRooms",null,d.a.ACCOUNT,t),this._lists.push(new a.b(e))}async unsubscribeFromList(e){const t=this._roomIds.filter(t=>t!==e);await s.b.setValue("mjolnirRooms",null,d.a.ACCOUNT,t),this._lists=this._lists.filter(t=>t.roomId!==e)}_onListsChanged(e,t,n,o){this._updateLists(o)}_updateLists(e){if(i.a.get()&&(console.log("Updating Mjolnir ban lists to: "+e),this._lists=[],this._roomIds=e||[],e))for(const t of e)this._lists.push(new a.b(t))}isServerBanned(e){for(const t of this._lists)for(const n of t.serverRules)if(n.isMatch(e))return!0;return!1}isUserBanned(e){for(const t of this._lists)for(const n of t.userRules)if(n.isMatch(e))return!0;return!1}static sharedInstance(){return u._instance||(u._instance=new u),u._instance}}r()(u,"_instance",null)},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(84),p=n(88),m=n(91),g=n(455),f=n(87),_=n(456),b=n(85);let v=Object(b.a)("structures.auth.SetupEncryptionBody")((i=r=class extends l.a.Component{constructor(){super(),s()(this,"_onStoreUpdate",()=>{const e=_.g.sharedInstance();e.phase!==_.d?this.setState({phase:e.phase,verificationRequest:e.verificationRequest,backupInfo:e.backupInfo}):this.props.onFinished()}),s()(this,"_onUsePassphraseClick",async()=>{_.g.sharedInstance().usePassPhrase()}),s()(this,"_onVerifyClick",()=>{const e=p.a.get(),t=e.getUserId(),n=e.requestVerification(t);this.props.onFinished(!0),m.a.createTrackedDialog("New Session Verification","Starting dialog",g.a,{verificationRequestPromise:n,member:e.getUser(t),onFinished:async()=>{(await n).cancel()}})}),s()(this,"onSkipClick",()=>{_.g.sharedInstance().skip()}),s()(this,"onSkipConfirmClick",()=>{_.g.sharedInstance().skipConfirm()}),s()(this,"onSkipBackClick",()=>{_.g.sharedInstance().returnAfterSkip()}),s()(this,"onDoneClick",()=>{_.g.sharedInstance().done()});const e=_.g.sharedInstance();e.on("update",this._onStoreUpdate),e.start(),this.state={phase:e.phase,verificationRequest:e.verificationRequest,backupInfo:e.backupInfo}}componentWillUnmount(){const e=_.g.sharedInstance();e.off("update",this._onStoreUpdate),e.stop()}render(){const e=f.getComponent("elements.AccessibleButton"),{phase:t}=this.state;if(this.state.verificationRequest){const e=f.getComponent("views.right_panel.EncryptionPanel");return l.a.createElement(e,{layout:"dialog",verificationRequest:this.state.verificationRequest,onClose:this.props.onFinished,member:p.a.get().getUser(this.state.verificationRequest.otherUserId)})}if(t===_.e){const t=_.g.sharedInstance();let o,r,i;return t.keyInfo&&((n=t.keyInfo).passphrase&&n.passphrase.salt&&n.passphrase.iterations)?o=Object(h.a)("Use Security Key or Phrase"):t.keyInfo&&(o=Object(h.a)("Use Security Key")),o&&(r=l.a.createElement(e,{kind:"link",onClick:this._onUsePassphraseClick},o)),t.hasDevicesToVerifyAgainst&&(i=l.a.createElement(e,{kind:"primary",onClick:this._onVerifyClick},Object(h.a)("Use another login"))),l.a.createElement("div",null,l.a.createElement("p",null,Object(h.a)("Verify your identity to access encrypted messages and prove your identity to others.")),l.a.createElement("div",{className:"mx_CompleteSecurity_actionRow"},i,r,l.a.createElement(e,{kind:"danger",onClick:this.onSkipClick},Object(h.a)("Skip"))))}if(t===_.c){let t;return t=this.state.backupInfo?l.a.createElement("p",null,Object(h.a)("Your new session is now verified. It has access to your encrypted messages, and other users will see it as trusted.")):l.a.createElement("p",null,Object(h.a)("Your new session is now verified. Other users will see it as trusted.")),l.a.createElement("div",null,l.a.createElement("div",{className:"mx_CompleteSecurity_heroIcon mx_E2EIcon_verified"}),t,l.a.createElement("div",{className:"mx_CompleteSecurity_actionRow"},l.a.createElement(e,{kind:"primary",onClick:this.onDoneClick},Object(h.a)("Done"))))}if(t===_.b)return l.a.createElement("div",null,l.a.createElement("p",null,Object(h.a)("Without verifying, you won’t have access to all your messages and may appear as untrusted to others.")),l.a.createElement("div",{className:"mx_CompleteSecurity_actionRow"},l.a.createElement(e,{className:"warning",kind:"secondary",onClick:this.onSkipConfirmClick},Object(h.a)("Skip")),l.a.createElement(e,{kind:"danger",onClick:this.onSkipBackClick},Object(h.a)("Go Back"))));if(t===_.a||t===_.f){const e=f.getComponent("views.elements.Spinner");return l.a.createElement(e,null)}var n;console.log("SetupEncryptionBody: Unknown phase "+t)}},s()(r,"propTypes",{onFinished:u.a.func.isRequired}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(88),p=n(87),m=n(84),g=n(85);let f=Object(g.a)("views.dialogs.VerificationRequestDialog")((i=r=class extends l.a.Component{constructor(...e){super(...e),this.state={},this.props.verificationRequest?this.state.verificationRequest=this.props.verificationRequest:this.props.verificationRequestPromise&&this.props.verificationRequestPromise.then(e=>{this.setState({verificationRequest:e})})}render(){const e=p.getComponent("views.dialogs.BaseDialog"),t=p.getComponent("views.right_panel.EncryptionPanel"),n=this.state.verificationRequest,o=n&&n.otherUserId,r=this.props.member||o&&h.a.get().getUser(o),i=n&&n.isSelfVerification?Object(m.a)("Verify other login"):Object(m.a)("Verification Request");return l.a.createElement(e,{className:"mx_InfoDialog",onFinished:this.props.onFinished,contentId:"mx_Dialog_content",title:i,hasCancel:!0},l.a.createElement(t,{layout:"dialog",verificationRequest:this.props.verificationRequest,verificationRequestPromise:this.props.verificationRequestPromise,onClose:this.props.onFinished,member:r}))}},s()(r,"propTypes",{verificationRequest:u.a.object,verificationRequestPromise:u.a.object,onFinished:u.a.func.isRequired,member:u.a.string}),o=i))||o},function(e,t,n){"use strict";(function(e){n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return g})),n.d(t,"g",(function(){return f}));var o=n(83),r=n.n(o),i=n(7),a=n.n(i),s=n(88),c=n(165),l=n(213);const d=0,u=1,h=2,p=3,m=4,g=5;class f extends a.a{constructor(...e){super(...e),r()(this,"_onUserTrustStatusChanged",e=>{if(e!==s.a.get().getUserId())return;s.a.get().getCrossSigningId()&&(this.phase=p,this.emit("update"))}),r()(this,"onVerificationRequest",e=>{this._setActiveVerificationRequest(e)}),r()(this,"onVerificationRequestChange",()=>{if(this.verificationRequest.cancelled)this.verificationRequest.off("change",this.onVerificationRequestChange),this.verificationRequest=null,this.emit("update");else if(this.verificationRequest.phase===l.c){this.verificationRequest.off("change",this.onVerificationRequestChange),this.verificationRequest=null;const e=s.a.get().getCrossSigningId();this.phase=e?p:h,this.emit("update")}})}static sharedInstance(){return e.mx_SetupEncryptionStore||(e.mx_SetupEncryptionStore=new f),e.mx_SetupEncryptionStore}start(){if(this._started)return;this._started=!0,this.phase=d,this.verificationRequest=null,this.backupInfo=null,this.keyId=null,this.keyInfo=null;const e=s.a.get();e.on("crypto.verification.request",this.onVerificationRequest),e.on("userTrustStatusChanged",this._onUserTrustStatusChanged);const t=e.getVerificationRequestsToDeviceInProgress(e.getUserId());t.length&&this._setActiveVerificationRequest(t[t.length-1]),this.fetchKeyInfo()}stop(){this._started&&(this._started=!1,this.verificationRequest&&this.verificationRequest.off("change",this.onVerificationRequestChange),s.a.get()&&(s.a.get().removeListener("crypto.verification.request",this.onVerificationRequest),s.a.get().removeListener("userTrustStatusChanged",this._onUserTrustStatusChanged)))}async fetchKeyInfo(){const e=s.a.get(),t=await e.isSecretStored("m.cross_signing.master",!1);null===t||0===Object.keys(t).length?(this.keyId=null,this.keyInfo=null):(this.keyId=Object.keys(t)[0],this.keyInfo=t[this.keyId]);const n=await e.getDehydratedDevice();this.hasDevicesToVerifyAgainst=e.getStoredDevicesForUser(e.getUserId()).some(e=>e.getIdentityKey()&&(!n||e.deviceId!=n.device_id)),this.hasDevicesToVerifyAgainst||this.keyInfo?this.phase=u:this.phase=g,this.emit("update")}async usePassPhrase(){this.phase=h,this.emit("update");const e=s.a.get();try{const t=await e.getKeyBackupVersion();this.backupInfo=t,this.emit("update"),await new Promise((n,o)=>{Object(c.b)(async()=>{await e.checkOwnCrossSigningTrust(),n(),t&&await e.restoreKeyBackupWithSecretStorage(t)}).catch(o)}),e.getCrossSigningId()&&(this.phase=p,this.emit("update"))}catch(e){e instanceof c.a||console.log(e),this.phase=u,this.emit("update")}}skip(){this.phase=m,this.emit("update")}skipConfirm(){this.phase=g,this.emit("update")}returnAfterSkip(){this.phase=u,this.emit("update")}done(){this.phase=g,this.emit("update"),s.a.get()._crypto.cancelAndResendAllOutgoingKeyRequests()}async _setActiveVerificationRequest(e){e.otherUserId===s.a.get().getUserId()&&(this.verificationRequest&&this.verificationRequest.off("change",this.onVerificationRequestChange),this.verificationRequest=e,await e.accept(),e.on("change",this.onVerificationRequestChange),this.emit("update"))}}}).call(this,n(6))},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(92),l=n.n(c),d=n(204),u=n(84),h=n(85);let p=Object(h.a)("views.elements.InfoTooltip")(o=class extends s.a.PureComponent{constructor(e){super(e),i()(this,"onMouseOver",()=>{this.setState({hover:!0})}),i()(this,"onMouseLeave",()=>{this.setState({hover:!1})}),this.state={hover:!1}}render(){const{tooltip:e,children:t,tooltipClassName:n}=this.props,o=Object(u.a)("Information"),r=this.state.hover?s.a.createElement(d.b,{className:"mx_InfoTooltip_container",tooltipClassName:l()("mx_InfoTooltip_tooltip",n),label:e||o,alignment:d.a.Right}):s.a.createElement("div",null);return s.a.createElement("div",{onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave,className:"mx_InfoTooltip"},s.a.createElement("span",{className:"mx_InfoTooltip_icon","aria-label":o}),t,r)}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o,r=n(83),i=n.n(r),a=n(82),s=n(93),c=n(85);const l=["1","2","3","4","5","6","7","8","9","*","0","#"];var d;!function(e){e[e.Digit=0]="Digit",e[e.Delete=1]="Delete",e[e.Dial=2]="Dial"}(d||(d={}));class u extends a.PureComponent{constructor(...e){super(...e),i()(this,"onClick",()=>{this.props.onButtonPress(this.props.digit)})}render(){switch(this.props.kind){case d.Digit:return a.createElement(s.a,{className:"mx_DialPad_button",onClick:this.onClick},this.props.digit);case d.Delete:return a.createElement(s.a,{className:"mx_DialPad_button mx_DialPad_deleteButton",onClick:this.onClick});case d.Dial:return a.createElement(s.a,{className:"mx_DialPad_button mx_DialPad_dialButton",onClick:this.onClick})}}}let h=Object(c.a)("views.voip.DialPad")(o=class extends a.PureComponent{render(){const e=[];for(const t of l)e.push(a.createElement(u,{key:t,kind:d.Digit,digit:t,onButtonPress:this.props.onDigitPress}));return this.props.hasDialAndDelete&&(e.push(a.createElement(u,{key:"del",kind:d.Delete,onButtonPress:this.props.onDeletePress})),e.push(a.createElement(u,{key:"dial",kind:d.Dial,onButtonPress:this.props.onDialPress}))),a.createElement("div",{className:"mx_DialPad"},e)}})||o},function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return f}));var o=n(82),r=n.n(o),i=n(84),a=n(94),s=n(157),c=n(139),l=n(149),d=n(663),u=n(107),h=n(91);function p(e){const t=e.split("-");return 5===t.length&&"react"===t[1]&&"js"===t[3]}function m(){u.a.get().installUpdate()}const g=(e,t,n)=>{let o,g=Object(i.a)("What's new?");n?o=()=>{h.a.createTrackedDialog("Display release notes","",l.a,{title:Object(i.a)("What's New"),description:r.a.createElement("pre",null,n),button:Object(i.a)("Update"),onFinished:e=>{e&&u.a.get()&&u.a.get().installUpdate()}})}:p(e)&&p(t)?o=()=>{h.a.createTrackedDialog("Display Changelog","",d.a,{version:e,newVersion:t,onFinished:e=>{e&&u.a.get()&&u.a.get().installUpdate()}})}:(o=m,g=Object(i.a)("Update"));const f=a.a.get().brand;c.a.sharedInstance().addOrReplaceToast({key:"update",title:Object(i.a)("Update %(brand)s",{brand:f}),props:{description:Object(i.a)("New version of %(brand)s is available",{brand:f}),acceptLabel:g,onAccept:o,rejectLabel:Object(i.a)("Dismiss"),onReject:function(){u.a.get().deferUpdate(t)}},component:s.a,priority:20})},f=()=>{c.a.sharedInstance().dismissToast("update")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return _}));var o,r,i,a=n(83),s=n.n(a),c=n(430),l=n(82),d=n.n(l),u=n(86),h=n.n(u),p=n(198),m=n(87),g=n(85);const f=new Error("User cancelled auth session");let _=Object(g.a)("structures.InteractiveAuthComponent")((i=r=class extends d.a.Component{constructor(e){super(e),s()(this,"_requestEmailToken",async(...e)=>{this.setState({busy:!0});try{return await this.props.requestEmailToken(...e)}finally{this.setState({busy:!1})}}),s()(this,"tryContinue",()=>{this._stageComponent.current&&this._stageComponent.current.tryContinue&&this._stageComponent.current.tryContinue()}),s()(this,"_authStateUpdated",(e,t)=>{const n=this.state.authStage;this.setState({busy:!1,authStage:e,stageState:t,errorText:t.error},()=>{n!==e?this._setFocus():!t.error&&this._stageComponent.current&&this._stageComponent.current.attemptFailed&&this._stageComponent.current.attemptFailed()})}),s()(this,"_requestCallback",e=>this.props.makeRequest(e)),s()(this,"_onBusyChanged",e=>{e&&this.setState({busy:!0,errorText:null,stageErrorText:null})}),s()(this,"_submitAuthDict",e=>{this._authLogic.submitAuthDict(e)}),s()(this,"_onPhaseChange",e=>{this.props.onStagePhaseChange&&this.props.onStagePhaseChange(this.state.authStage,e||0)}),s()(this,"_onStageCancel",()=>{this.props.onAuthFinished(!1,f)}),s()(this,"_onAuthStageFailed",e=>{this.props.onAuthFinished(!1,e)}),s()(this,"_setEmailSid",e=>{this._authLogic.setEmailSid(e)}),this.state={authStage:null,busy:!1,errorText:null,stageErrorText:null,submitButtonEnabled:!1},this._unmounted=!1,this._authLogic=new c.a({authData:this.props.authData,doRequest:this._requestCallback,busyChanged:this._onBusyChanged,inputs:this.props.inputs,stateUpdated:this._authStateUpdated,matrixClient:this.props.matrixClient,sessionId:this.props.sessionId,clientSecret:this.props.clientSecret,emailSid:this.props.emailSid,requestEmailToken:this._requestEmailToken}),this._intervalId=null,this.props.poll&&(this._intervalId=setInterval(()=>{this._authLogic.poll()},2e3)),this._stageComponent=Object(l.createRef)()}UNSAFE_componentWillMount(){this._authLogic.attemptAuth().then(e=>{const t={emailSid:this._authLogic.getEmailSid(),clientSecret:this._authLogic.getClientSecret()};this.props.onAuthFinished(!0,e,t)}).catch(e=>{if(this.props.onAuthFinished(!1,e),console.error("Error during user-interactive auth:",e),this._unmounted)return;const t=e.message||e.toString();this.setState({errorText:t})})}componentWillUnmount(){this._unmounted=!0,null!==this._intervalId&&clearInterval(this._intervalId)}_setFocus(){this._stageComponent.current&&this._stageComponent.current.focus&&this._stageComponent.current.focus()}_renderCurrentStage(){const e=this.state.authStage;if(!e){if(this.state.busy){const e=m.getComponent("elements.Spinner");return d.a.createElement(e,null)}return null}const t=Object(p.d)(e);return d.a.createElement(t,{ref:this._stageComponent,loginType:e,matrixClient:this.props.matrixClient,authSessionId:this._authLogic.getSessionId(),clientSecret:this._authLogic.getClientSecret(),stageParams:this._authLogic.getStageParams(e),submitAuthDict:this._submitAuthDict,errorText:this.state.stageErrorText,busy:this.state.busy,inputs:this.props.inputs,stageState:this.state.stageState,fail:this._onAuthStageFailed,setEmailSid:this._setEmailSid,showContinue:!this.props.continueIsManaged,onPhaseChange:this._onPhaseChange,continueText:this.props.continueText,continueKind:this.props.continueKind,onCancel:this._onStageCancel})}render(){let e=null;return this.state.errorText&&(e=d.a.createElement("div",{className:"error"},this.state.errorText)),d.a.createElement("div",null,d.a.createElement("div",null,this._renderCurrentStage(),e))}},s()(r,"propTypes",{matrixClient:h.a.object.isRequired,authData:h.a.shape({flows:h.a.array,params:h.a.object,session:h.a.string}),makeRequest:h.a.func.isRequired,onAuthFinished:h.a.func.isRequired,inputs:h.a.object,requestEmailToken:h.a.func,sessionId:h.a.string,clientSecret:h.a.string,emailSid:h.a.string,poll:h.a.bool,continueIsManaged:h.a.bool,onStagePhaseChange:h.a.func,continueText:h.a.string,continueKind:h.a.string}),o=i))||o},function(e,t){e.exports="img/feather-customised/warning-triangle.d050a38.svg"},function(e,t,n){"use strict";var o=n(90),r=n(98),i=n(146);t.a={hasAnyLabeledDevices:async function(){return(await navigator.mediaDevices.enumerateDevices()).some(e=>!!e.label)},getDevices:function(){return navigator.mediaDevices.enumerateDevices().then((function(e){const t=[],n=[],o=[];return e.forEach(e=>{switch(e.kind){case"audiooutput":t.push(e);break;case"audioinput":n.push(e);break;case"videoinput":o.push(e)}}),{audiooutput:t,audioinput:n,videoinput:o}}),e=>{console.log("Unable to refresh WebRTC Devices: ",e)})},loadDevices:function(){const e=o.b.getValue("webrtc_audiooutput"),t=o.b.getValue("webrtc_audioinput"),n=o.b.getValue("webrtc_videoinput");Object(i.setMatrixCallAudioOutput)(e),Object(i.setMatrixCallAudioInput)(t),Object(i.setMatrixCallVideoInput)(n)},setAudioOutput:function(e){o.b.setValue("webrtc_audiooutput",null,r.a.DEVICE,e),Object(i.setMatrixCallAudioOutput)(e)},setAudioInput:function(e){o.b.setValue("webrtc_audioinput",null,r.a.DEVICE,e),Object(i.setMatrixCallAudioInput)(e)},setVideoInput:function(e){o.b.setValue("webrtc_videoinput",null,r.a.DEVICE,e),Object(i.setMatrixCallVideoInput)(e)},getAudioOutput:function(){return o.b.getValueAt(r.a.DEVICE,"webrtc_audiooutput")},getAudioInput:function(){return o.b.getValueAt(r.a.DEVICE,"webrtc_audioinput")},getVideoInput:function(){return o.b.getValueAt(r.a.DEVICE,"webrtc_videoinput")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return y})),n.d(t,"c",(function(){return E}));var o=n(82),r=n(92),i=n.n(r),a=n(87),s=n(91),c=n(84),l=n(101);let d,u;Object(c.b)("Navigation"),Object(c.b)("Calls"),Object(c.b)("Composer"),Object(c.b)("Room List"),Object(c.b)("Autocomplete"),function(e){e.NAVIGATION="Navigation",e.CALLS="Calls",e.COMPOSER="Composer",e.ROOM_LIST="Room List",e.ROOM="Room",e.AUTOCOMPLETE="Autocomplete"}(d||(d={})),Object(c.b)("Alt"),Object(c.b)("Alt Gr"),Object(c.b)("Shift"),Object(c.b)("Super"),Object(c.b)("Ctrl"),function(e){e.ALT="Alt",e.ALT_GR="Alt Gr",e.SHIFT="Shift",e.SUPER="Super",e.COMMAND="Command",e.CONTROL="Ctrl"}(u||(u={}));const h=l.b?u.COMMAND:u.CONTROL,p={[d.COMPOSER]:[{keybinds:[{modifiers:[h],key:l.a.B}],description:Object(c.b)("Toggle Bold")},{keybinds:[{modifiers:[h],key:l.a.I}],description:Object(c.b)("Toggle Italics")},{keybinds:[{modifiers:[h],key:l.a.GREATER_THAN}],description:Object(c.b)("Toggle Quote")},{keybinds:[{modifiers:[u.SHIFT],key:l.a.ENTER}],description:Object(c.b)("New line")},{keybinds:[{key:l.a.ARROW_UP},{key:l.a.ARROW_DOWN}],description:Object(c.b)("Navigate recent messages to edit")},{keybinds:[{modifiers:[h],key:l.a.HOME},{modifiers:[h],key:l.a.END}],description:Object(c.b)("Jump to start/end of the composer")},{keybinds:[{modifiers:[u.CONTROL,u.ALT],key:l.a.ARROW_UP},{modifiers:[u.CONTROL,u.ALT],key:l.a.ARROW_DOWN}],description:Object(c.b)("Navigate composer history")},{keybinds:[{key:l.a.ESCAPE}],description:Object(c.b)("Cancel replying to a message")}],[d.CALLS]:[{keybinds:[{modifiers:[h],key:l.a.D}],description:Object(c.b)("Toggle microphone mute")},{keybinds:[{modifiers:[h],key:l.a.E}],description:Object(c.b)("Toggle video on/off")}],[d.ROOM]:[{keybinds:[{key:l.a.PAGE_UP},{key:l.a.PAGE_DOWN}],description:Object(c.b)("Scroll up/down in the timeline")},{keybinds:[{key:l.a.ESCAPE}],description:Object(c.b)("Dismiss read marker and jump to bottom")},{keybinds:[{modifiers:[u.SHIFT],key:l.a.PAGE_UP}],description:Object(c.b)("Jump to oldest unread message")},{keybinds:[{modifiers:[h,u.SHIFT],key:l.a.U}],description:Object(c.b)("Upload a file")},{keybinds:[{modifiers:[h],key:l.a.F}],description:Object(c.b)("Search (must be enabled)")}],[d.ROOM_LIST]:[{keybinds:[{modifiers:[h],key:l.a.K}],description:Object(c.b)("Jump to room search")},{keybinds:[{key:l.a.ARROW_UP},{key:l.a.ARROW_DOWN}],description:Object(c.b)("Navigate up/down in the room list")},{keybinds:[{key:l.a.ENTER}],description:Object(c.b)("Select room from the room list")},{keybinds:[{key:l.a.ARROW_LEFT}],description:Object(c.b)("Collapse room list section")},{keybinds:[{key:l.a.ARROW_RIGHT}],description:Object(c.b)("Expand room list section")},{keybinds:[{key:l.a.ESCAPE}],description:Object(c.b)("Clear room list filter field")}],[d.NAVIGATION]:[{keybinds:[{modifiers:[u.ALT,u.SHIFT],key:l.a.ARROW_UP},{modifiers:[u.ALT,u.SHIFT],key:l.a.ARROW_DOWN}],description:Object(c.b)("Previous/next unread room or DM")},{keybinds:[{modifiers:[u.ALT],key:l.a.ARROW_UP},{modifiers:[u.ALT],key:l.a.ARROW_DOWN}],description:Object(c.b)("Previous/next room or DM")},{keybinds:[{modifiers:[h],key:l.a.BACKTICK}],description:Object(c.b)("Toggle the top left menu")},{keybinds:[{key:l.a.ESCAPE}],description:Object(c.b)("Close dialog or context menu")},{keybinds:[{key:l.a.ENTER},{key:l.a.SPACE}],description:Object(c.b)("Activate selected button")},{keybinds:[{modifiers:[h],key:l.a.PERIOD}],description:Object(c.b)("Toggle right panel")},{keybinds:[{modifiers:[h],key:l.a.SLASH}],description:Object(c.b)("Toggle this dialog")},{keybinds:[{modifiers:[u.CONTROL,l.b?u.SHIFT:u.ALT],key:l.a.H}],description:Object(c.b)("Go to Home View")}],[d.AUTOCOMPLETE]:[{keybinds:[{key:l.a.ARROW_UP},{key:l.a.ARROW_DOWN}],description:Object(c.b)("Move autocomplete selection up/down")},{keybinds:[{key:l.a.ESCAPE}],description:Object(c.b)("Cancel autocomplete")}]},m=[d.COMPOSER,d.AUTOCOMPLETE,d.ROOM,d.ROOM_LIST,d.NAVIGATION,d.CALLS],g={[u.COMMAND]:"⌘"};l.b&&(g[u.ALT]="⌥");const f={[l.a.PAGE_UP]:Object(c.b)("Page Up"),[l.a.PAGE_DOWN]:Object(c.b)("Page Down"),[l.a.ESCAPE]:Object(c.b)("Esc"),[l.a.ENTER]:Object(c.b)("Enter"),[l.a.SPACE]:Object(c.b)("Space"),[l.a.HOME]:Object(c.b)("Home"),[l.a.END]:Object(c.b)("End")},_={[l.a.ARROW_UP]:"↑",[l.a.ARROW_DOWN]:"↓",[l.a.ARROW_LEFT]:"←",[l.a.ARROW_RIGHT]:"→"},b=({shortcut:e})=>{const t=i()({mx_KeyboardShortcutsDialog_inline:e.keybinds.every(e=>!e.modifiers||0===e.modifiers.length)});return o.createElement("div",{className:t},o.createElement("h5",null,Object(c.a)(e.description)),e.keybinds.map(e=>{let t=e.key;return f[e.key]?t=Object(c.a)(f[e.key]):_[e.key]&&(t=_[e.key]),o.createElement("div",{key:e.key},e.modifiers&&e.modifiers.map(e=>o.createElement(o.Fragment,{key:e},o.createElement("kbd",null,g[e]||Object(c.a)(e)),"+")),o.createElement("kbd",null,t))}))};let v=null;const y=()=>{if(v)return v.close(),void(v=null);const e=m.map(e=>{const t=p[e];return o.createElement("div",{className:"mx_KeyboardShortcutsDialog_category",key:e},o.createElement("h3",null,Object(c.a)(e)),o.createElement("div",null,t.map(e=>o.createElement(b,{key:e.description,shortcut:e}))))}),t=a.getComponent("dialogs.InfoDialog");v=s.a.createTrackedDialog("Keyboard Shortcuts","",t,{className:"mx_KeyboardShortcutsDialog",title:Object(c.a)("Keyboard Shortcuts"),description:e,hasCloseButton:!0,onKeyDown:e=>{!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey||e.key!==l.a.SLASH||(e.stopPropagation(),v.close())},onFinished:()=>{v=null}})},E=(e,t)=>{p[e].push(t)}},function(e,t,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t,n){"use strict";(function(e){n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return l}));class o{constructor(){this.logs=""}monkeyPatch(e){const t={log:"I",info:"I",warn:"W",error:"E"};Object.keys(t).forEach(n=>{const o=t[n],r=e[n].bind(e);e[n]=(...e)=>{this.log(o,...e),r(...e)}})}log(e,...t){let n=`${(new Date).toISOString()} ${e} ${(t=t.map(e=>{if(e instanceof Error)return e.message+(e.stack?"\n"+e.stack:"");if("object"!=typeof e)return e;try{return JSON.stringify(e)}catch(t){return JSON.stringify(e,(e,t)=>e&&"object"==typeof t?"<object>":t)}})).join(" ")}\n`;n=n.replace(/token=[a-zA-Z0-9-]+/gm,"token=xxxxx"),this.logs+=n}flush(e){if(e)return this.logs;const t=this.logs;return this.logs="",t}}class r{constructor(e,t){this.indexedDB=e,this.logger=t,this.id="instance-"+Math.random()+Date.now(),this.index=0,this.db=null,this.flushPromise=null,this.flushAgainPromise=null}connect(){const e=this.indexedDB.open("logs");return new Promise((t,n)=>{e.onsuccess=e=>{this.db=e.target.result,setInterval(this.flush.bind(this),3e4),t()},e.onerror=e=>{const t="Failed to open log database: "+e.target.error.name;console.error(t),n(new Error(t))},e.onupgradeneeded=e=>{const t=e.target.result,n=t.createObjectStore("logs",{keyPath:["id","index"]});n.createIndex("id","id",{unique:!1}),n.add(this._generateLogEntry(new Date+" ::: Log database was created."));t.createObjectStore("logslastmod",{keyPath:"id"}).add(this._generateLastModifiedTime())}})}flush(){return this.flushPromise?(this.flushAgainPromise||(this.flushAgainPromise=this.flushPromise.then(()=>this.flush()).then(()=>{this.flushAgainPromise=null})),this.flushAgainPromise):(this.flushPromise=new Promise((e,t)=>{if(!this.db)return void t(new Error("No connected database"));const n=this.logger.flush();if(0===n.length)return void e();const o=this.db.transaction(["logs","logslastmod"],"readwrite"),r=o.objectStore("logs");o.oncomplete=t=>{e()},o.onerror=e=>{console.error("Failed to flush logs : ",e),t(new Error("Failed to write logs: "+e.target.errorCode))},r.add(this._generateLogEntry(n));o.objectStore("logslastmod").put(this._generateLastModifiedTime())}).then(()=>{this.flushPromise=null}),this.flushPromise)}async consume(){const e=this.db;function t(t,n){const o=e.transaction("logs","readonly").objectStore("logs");return new Promise((e,r)=>{const i=o.index("id").openCursor(IDBKeyRange.only(t),"prev");let a="";i.onerror=e=>{r(new Error("Query failed: "+e.target.errorCode))},i.onsuccess=t=>{const o=t.target.result;o?(a=o.value.lines+a,a.length>=n?e(a):o.continue()):e(a)}})}const n=await function(e,t,n){const o=e.openCursor(t);return new Promise((e,t)=>{const r=[];o.onerror=e=>{t(new Error("Query failed: "+e.target.errorCode))},o.onsuccess=t=>{const o=t.target.result;o?(r.push(n(o)),o.continue()):e(r)}})}(e.transaction("logslastmod","readonly").objectStore("logslastmod"),void 0,e=>({id:e.value.id,ts:e.value.ts})).then(e=>e.sort((e,t)=>t.ts-e.ts).map(e=>e.id));let o=[];const r=[];let i=0;for(let e=0;e<n.length;e++){const a=await t(n[e],5242880-i);if(r.push({lines:a,id:n[e]}),i+=a.length,i>=5242880){o=n.slice(e+1);break}}return o.length>0&&(console.log("Removing logs: ",o),Promise.all(o.map(t=>function(t){return new Promise((n,o)=>{const r=e.transaction(["logs","logslastmod"],"readwrite"),i=r.objectStore("logs");i.index("id").openKeyCursor(IDBKeyRange.only(t)).onsuccess=e=>{const t=e.target.result;t&&(i.delete(t.primaryKey),t.continue())},r.oncomplete=()=>{n()},r.onerror=e=>{o(new Error(`Failed to delete logs for '${t}' : ${e.target.errorCode}`))};r.objectStore("logslastmod").delete(t)})}(t))).then(()=>{console.log(`Removed ${o.length} old logs.`)},e=>{console.error(e)})),r}_generateLogEntry(e){return{id:this.id,lines:e,index:this.index++}}_generateLastModifiedTime(){return{id:this.id,ts:Date.now()}}}function i(t=!0){return e.mx_rage_initPromise?e.mx_rage_initPromise:(e.mx_rage_logger=new o,e.mx_rage_logger.monkeyPatch(window.console),t?a():(e.mx_rage_initPromise=Promise.resolve(),e.mx_rage_initPromise))}function a(){if(e.mx_rage_initStoragePromise)return e.mx_rage_initStoragePromise;let t;console.log("Configuring rageshake persistence...");try{t=window.indexedDB}catch(e){}return t?(e.mx_rage_store=new r(t,e.mx_rage_logger),e.mx_rage_initStoragePromise=e.mx_rage_store.connect(),e.mx_rage_initStoragePromise):(e.mx_rage_initStoragePromise=Promise.resolve(),e.mx_rage_initStoragePromise)}function s(){e.mx_rage_store&&e.mx_rage_store.flush()}async function c(){e.mx_rage_store&&await e.mx_rage_store.consume()}async function l(){if(!e.mx_rage_logger)throw new Error("No console logger, did you forget to call init()?");return e.mx_rage_store?(await e.mx_rage_store.flush(),await e.mx_rage_store.consume()):[{lines:e.mx_rage_logger.flush(!0),id:"-"}]}}).call(this,n(6))},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;s(n(86));var o=s(n(82)),r=s(n(148)),i=s(n(689)),a=(n(690),s(n(467)));function s(e){return e&&e.__esModule?e:{default:e}}t.UNMOUNTED="unmounted";t.EXITED="exited";t.ENTERING="entering";t.ENTERED="entered";t.EXITING="exiting";var c=function(e){var t,n;function s(t,n){var o;o=e.call(this,t,n)||this;var r,i=n&&!n.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?i?(r="exited",o.appearStatus="entering"):r="entered":r=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",o.state={status:r},o.nextCallback=null,o}n=e,(t=s).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,s.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var c=s.prototype;return c.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},c.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},c.componentWillUnmount=function(){this.cancelNextCallback()},c.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},c.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},c.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,a=this.props.nodeRef?[o]:[r.default.findDOMNode(this),o],s=a[0],c=a[1],l=this.getTimeouts(),d=o?l.appear:l.enter;!e&&!n||i.default.disabled?this.safeSetState({status:"entered"},(function(){t.props.onEntered(s)})):(this.props.onEnter(s,c),this.safeSetState({status:"entering"},(function(){t.props.onEntering(s,c),t.onTransitionEnd(d,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(s,c)}))}))})))},c.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:r.default.findDOMNode(this);t&&!i.default.disabled?(this.props.onExit(o),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(o)}))},c.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},c.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},c.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},c.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:r.default.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],s=i[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},c.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.default.createElement(a.default.Provider,{value:null},"function"==typeof n?n(e,r):o.default.cloneElement(o.default.Children.only(n),r))},s}(o.default.Component);function l(){}c.contextType=a.default,c.propTypes={},c.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:l,onEntering:l,onEntered:l,onExit:l,onExiting:l,onExited:l},c.UNMOUNTED="unmounted",c.EXITED="exited",c.ENTERING="entering",c.ENTERED="entered",c.EXITING="exiting";var d=c;t.default=d},function(e,t,n){"use strict";var o;t.__esModule=!0,t.default=void 0;var r=((o=n(82))&&o.__esModule?o:{default:o}).default.createContext(null);t.default=r,e.exports=t.default},function(e,t,n){"use strict";var o=n(95),r=n.n(o),i=n(100),a=n.n(i),s=n(82),c=n.n(s),l=n(92),d=n.n(l),u=n(161),h=n(99);t.a=e=>{let{app:t,className:o,width:i=20,height:s=20}=e,l=a()(e,["app","className","width","height"]),p=[n(1299)];return t.type.includes("jitsi")?p=[n(1300)]:t.type.includes("meeting")||t.type.includes("calendar")?p=[n(1301)]:t.type.includes("pad")||t.type.includes("doc")||t.type.includes("calc")?p=[n(1302)]:t.type.includes("clock")&&(p=[n(1303)]),c.a.createElement(u.a,r()({},l,{name:t.id,className:d()("mx_WidgetAvatar",o),url:t.avatar_url?Object(h.b)(t.avatar_url).getSquareThumbnailHttp(20):void 0,urls:p,width:i,height:s}))}},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(86),a=n.n(i);const s=e=>{const t=["mx_ResizeHandle"];return e.vertical?t.push("mx_ResizeHandle_vertical"):t.push("mx_ResizeHandle_horizontal"),e.reverse&&t.push("mx_ResizeHandle_reverse"),r.a.createElement("div",{className:t.join(" "),"data-id":e.id},r.a.createElement("div",null))};s.propTypes={vertical:a.a.bool,reverse:a.a.bool,id:a.a.string},t.a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(699),r=n(352);class i extends o.a{start(e){this.vertical?e.style.minHeight=null:e.style.minWidth=null}finish(e){const t=e.offsetParent;if(t)if(this.vertical){const n=(e.offsetHeight/t.offsetHeight*100).toFixed(2)+"%";e.style.minHeight=n,e.style.height=n}else{const n=(e.offsetWidth/t.offsetWidth*100).toFixed(2)+"%";e.style.minWidth=n,e.style.width=n}}}class a extends r.a{static createSizer(e,t,n){return new i(e,t,n)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(83),r=n.n(o),i=n(105);class a{constructor(e,t,n){if(this.container=e,this.distributorCtor=t,this.config=n,r()(this,"classNames",void 0),r()(this,"onMouseDown",e=>{const t=e.target&&e.target.closest("."+this.classNames.handle);if(!t||t.parentElement!==this.container)return;e.preventDefault(),this.classNames.resizing&&this.container.classList.add(this.classNames.resizing),this.config.onResizeStart&&this.config.onResizeStart();const{sizer:n,distributor:o}=this.createSizerAndDistributor(t);o.start();const r=e=>{const t=n.offsetFromEvent(e);o.resizeFromContainerOffset(t)},i=document.body,a=()=>{this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),o.finish(),this.config.onResizeStop&&this.config.onResizeStop(),i.removeEventListener("mouseup",a,!1),document.removeEventListener("mouseleave",a,!1),i.removeEventListener("mousemove",r,!1)};i.addEventListener("mouseup",a,!1),document.addEventListener("mouseleave",a,!1),i.addEventListener("mousemove",r,!1)}),r()(this,"onResize",Object(i.throttle)(()=>{const e=this.getDistributors();e.forEach(e=>e.start()),e.forEach(e=>e.finish())},100,{trailing:!0,leading:!0})),r()(this,"getDistributors",()=>this.getResizeHandles().map(e=>{const{distributor:t}=this.createSizerAndDistributor(e);return t})),!e)throw new Error("Resizer requires a non-null `container` arg");this.classNames={handle:"resizer-handle",reverse:"resizer-reverse",vertical:"resizer-vertical",resizing:"resizer-resizing"}}setClassNames(e){this.classNames=e}attach(){this.container.addEventListener("mousedown",this.onMouseDown,!1),window.addEventListener("resize",this.onResize)}detach(){this.container.removeEventListener("mousedown",this.onMouseDown,!1),window.removeEventListener("resize",this.onResize)}forHandleAt(e){const t=this.getResizeHandles()[e];if(t){const{distributor:e}=this.createSizerAndDistributor(t);return e}}forHandleWithId(e){const t=this.getResizeHandles().find(t=>t.getAttribute("data-id")===e);if(t){const{distributor:e}=this.createSizerAndDistributor(t);return e}}isReverseResizeHandle(e){return e&&e.classList.contains(this.classNames.reverse)}isResizeHandle(e){return e&&e.classList.contains(this.classNames.handle)}createSizerAndDistributor(e){const t=e.classList.contains(this.classNames.vertical),n=this.isReverseResizeHandle(e),o=this.distributorCtor,r=o.createSizer(this.container,t,n),i=o.createItem(e,this,r);return{sizer:r,distributor:new o(i)}}getResizeHandles(){return this.container.children?Array.from(this.container.children).filter(e=>this.isResizeHandle(e)):[]}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var o,r=n(95),i=n.n(r),a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(89),u=n(137),h=n(88),p=n(84),m=n(700),g=n(123),f=n(131),_=n(92),b=n.n(_),v=n(93),y=n(101),E=n(102),S=n(701),w=n(205),C=n(702),T=n(85);function x(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement}function O(){const e=document.exitFullscreen||document.webkitExitFullscreen||document.msExitFullscreen;e&&e.call(document)}let k=Object(T.a)("views.voip.CallView")(o=class extends l.a.Component{constructor(e){super(e),s()(this,"dispatcherRef",void 0),s()(this,"contentRef",Object(c.createRef)()),s()(this,"controlsHideTimer",null),s()(this,"dialpadButton",Object(c.createRef)()),s()(this,"contextMenuButton",Object(c.createRef)()),s()(this,"onAction",e=>{switch(e.action){case"video_fullscreen":if(!this.contentRef.current)return;e.fullscreen?function(e){const t=e.requestFullscreen||e.webkitRequestFullScreen||e.msRequestFullscreen;t&&t.call(e)}(this.contentRef.current):x()&&O()}}),s()(this,"onCallState",e=>{this.setState({callState:e})}),s()(this,"onCallLocalHoldUnhold",()=>{this.setState({isLocalOnHold:this.props.call.isLocalOnHold()})}),s()(this,"onCallRemoteHoldUnhold",()=>{this.setState({isRemoteOnHold:this.props.call.isRemoteOnHold(),isLocalOnHold:this.props.call.isLocalOnHold()})}),s()(this,"onFullscreenClick",()=>{d.a.dispatch({action:"video_fullscreen",fullscreen:!0})}),s()(this,"onExpandClick",()=>{const e=u.c.roomIdForCall(this.props.call);d.a.dispatch({action:"view_room",room_id:e})}),s()(this,"onControlsHideTimer",()=>{this.controlsHideTimer=null,this.setState({controlsVisible:!1})}),s()(this,"onMouseMove",()=>{this.showControls()}),s()(this,"onDialpadClick",()=>{this.state.showDialpad?(null!==this.controlsHideTimer&&clearTimeout(this.controlsHideTimer),this.controlsHideTimer=window.setTimeout(this.onControlsHideTimer,1e3),this.setState({showDialpad:!1})):(this.controlsHideTimer&&(clearTimeout(this.controlsHideTimer),this.controlsHideTimer=null),this.setState({showDialpad:!0,controlsVisible:!0}))}),s()(this,"onMicMuteClick",()=>{const e=!this.state.micMuted;this.props.call.setMicrophoneMuted(e),this.setState({micMuted:e})}),s()(this,"onVidMuteClick",()=>{const e=!this.state.vidMuted;this.props.call.setLocalVideoMuted(e),this.setState({vidMuted:e})}),s()(this,"onMoreClick",()=>{this.controlsHideTimer&&(clearTimeout(this.controlsHideTimer),this.controlsHideTimer=null),this.setState({showMoreMenu:!0,controlsVisible:!0})}),s()(this,"closeDialpad",()=>{this.setState({showDialpad:!1}),this.controlsHideTimer=window.setTimeout(this.onControlsHideTimer,1e3)}),s()(this,"closeContextMenu",()=>{this.setState({showMoreMenu:!1}),this.controlsHideTimer=window.setTimeout(this.onControlsHideTimer,1e3)}),s()(this,"onNativeKeyDown",e=>{let t=!1;const n=Object(y.d)(e);switch(e.key){case y.a.D:n&&(this.onMicMuteClick(),this.showControls(),t=!0);break;case y.a.E:n&&(this.onVidMuteClick(),this.showControls(),t=!0)}t&&(e.stopPropagation(),e.preventDefault())}),s()(this,"onRoomAvatarClick",()=>{const e=u.c.roomIdForCall(this.props.call);d.a.dispatch({action:"view_room",room_id:e})}),s()(this,"onSecondaryRoomAvatarClick",()=>{const e=u.c.roomIdForCall(this.props.secondaryCall);d.a.dispatch({action:"view_room",room_id:e})}),s()(this,"onCallResumeClick",()=>{const e=u.c.roomIdForCall(this.props.call);u.c.sharedInstance().setActiveCallRoomId(e)}),s()(this,"onTransferClick",()=>{const e=u.c.sharedInstance().getTransfereeForCallId(this.props.call.callId);this.props.call.transferToCall(e)}),this.state={isLocalOnHold:this.props.call.isLocalOnHold(),isRemoteOnHold:this.props.call.isRemoteOnHold(),micMuted:this.props.call.isMicrophoneMuted(),vidMuted:this.props.call.isLocalVideoMuted(),callState:this.props.call.state,controlsVisible:!0,showMoreMenu:!1,showDialpad:!1},this.updateCallListeners(null,this.props.call)}componentDidMount(){this.dispatcherRef=d.a.register(this.onAction),document.addEventListener("keydown",this.onNativeKeyDown)}componentWillUnmount(){x()&&O(),document.removeEventListener("keydown",this.onNativeKeyDown),this.updateCallListeners(this.props.call,null),d.a.unregister(this.dispatcherRef)}componentDidUpdate(e){this.props.call!==e.call&&(this.setState({isLocalOnHold:this.props.call.isLocalOnHold(),isRemoteOnHold:this.props.call.isRemoteOnHold(),micMuted:this.props.call.isMicrophoneMuted(),vidMuted:this.props.call.isLocalVideoMuted(),callState:this.props.call.state}),this.updateCallListeners(null,this.props.call))}updateCallListeners(e,t){e!==t&&(e&&(e.removeListener(f.c.State,this.onCallState),e.removeListener(f.c.LocalHoldUnhold,this.onCallLocalHoldUnhold),e.removeListener(f.c.RemoteHoldUnhold,this.onCallRemoteHoldUnhold)),t&&(t.on(f.c.State,this.onCallState),t.on(f.c.LocalHoldUnhold,this.onCallLocalHoldUnhold),t.on(f.c.RemoteHoldUnhold,this.onCallRemoteHoldUnhold)))}showControls(){this.state.showMoreMenu||this.state.showDialpad||(this.state.controlsVisible||this.setState({controlsVisible:!0}),null!==this.controlsHideTimer&&clearTimeout(this.controlsHideTimer),this.controlsHideTimer=window.setTimeout(this.onControlsHideTimer,1e3))}render(){const e=h.a.get(),t=u.c.roomIdForCall(this.props.call),n=u.c.roomIdForCall(this.props.secondaryCall),o=e.getRoom(t),r=this.props.secondaryCall?e.getRoom(n):null;let a,s;this.state.showDialpad&&(a=l.a.createElement(C.a,i()({},Object(E.m)(this.dialpadButton.current.getBoundingClientRect(),E.a.None,8),{onFinished:this.closeDialpad,call:this.props.call}))),this.state.showMoreMenu&&(s=l.a.createElement(S.a,i()({},Object(E.l)(this.contextMenuButton.current.getBoundingClientRect(),E.a.None,8),{onFinished:this.closeContextMenu,call:this.props.call})));const c=b()({mx_CallView_callControls_button:!0,mx_CallView_callControls_button_micOn:!this.state.micMuted,mx_CallView_callControls_button_micOff:this.state.micMuted}),_=b()({mx_CallView_callControls_button:!0,mx_CallView_callControls_button_vidOn:!this.state.vidMuted,mx_CallView_callControls_button_vidOff:this.state.vidMuted}),y=b()({mx_CallView_callControls_button:!0,mx_CallView_callControls_button_micOn:this.state.micMuted,mx_CallView_callControls_button_micOff:!this.state.micMuted,mx_CallView_callControls_button_invisible:!0}),T=b()({mx_CallView_callControls_button:!0,mx_CallView_callControls_button_vidOn:this.state.micMuted,mx_CallView_callControls_button_vidOff:!this.state.micMuted,mx_CallView_callControls_button_invisible:!0}),x=b()({mx_CallView_callControls:!0,mx_CallView_callControls_hidden:!this.state.controlsVisible}),O=this.props.call.type===f.f.Video?l.a.createElement(v.a,{className:_,onClick:this.onVidMuteClick}):null,k=this.state.callState===f.e.Connected?l.a.createElement(E.c,{className:"mx_CallView_callControls_button mx_CallView_callControls_dialpad",inputRef:this.dialpadButton,onClick:this.onDialpadClick,isExpanded:this.state.showDialpad}):l.a.createElement("div",{className:"mx_CallView_callControls_button mx_CallView_callControls_button_dialpad_hidden"}),R=this.state.callState===f.e.Connected?l.a.createElement(E.c,{className:"mx_CallView_callControls_button mx_CallView_callControls_button_more",onClick:this.onMoreClick,inputRef:this.contextMenuButton,isExpanded:this.state.showMoreMenu}):l.a.createElement("div",{className:"mx_CallView_callControls_button mx_CallView_callControls_button_more_hidden"}),D=l.a.createElement("div",{className:x},k,l.a.createElement(v.a,{className:c,onClick:this.onMicMuteClick}),l.a.createElement(v.a,{className:"mx_CallView_callControls_button mx_CallView_callControls_button_hangup",onClick:()=>{d.a.dispatch({action:"hangup",room_id:t})}}),O,l.a.createElement("div",{className:y}),l.a.createElement("div",{className:T}),R);let I;const A=u.c.sharedInstance().getTransfereeForCallId(this.props.call.callId),N=this.state.isLocalOnHold||this.state.isRemoteOnHold;let F;if(A){const e=h.a.get().getRoom(u.c.roomIdForCall(this.props.call)),t=e?e.name:Object(p.a)("unknown person"),n=h.a.get().getRoom(u.c.roomIdForCall(A)),o=n?n.name:Object(p.a)("unknown person");F=l.a.createElement("div",{className:"mx_CallView_holdTransferContent"},Object(p.a)("Consulting with %(transferTarget)s. <a>Transfer to %(transferee)s</a>",{transferTarget:t,transferee:o},{a:e=>l.a.createElement(v.a,{kind:"link",onClick:this.onTransferClick},e)}))}else if(N){let e=null;if(this.state.isRemoteOnHold){const t=u.c.sharedInstance().hasAnyUnheldCall()?Object(p.b)("You held the call <a>Switch</a>"):Object(p.b)("You held the call <a>Resume</a>");e=Object(p.a)(t,{},{a:e=>l.a.createElement(v.a,{kind:"link",onClick:this.onCallResumeClick},e)})}else this.state.isLocalOnHold&&(e=Object(p.a)("%(peerName)s held the call",{peerName:this.props.call.getOpponentMember().name}));F=l.a.createElement("div",{className:"mx_CallView_holdTransferContent"},e)}if(this.props.call.type===f.f.Video){let e=null,t=null;const n={},o=b()({mx_CallView_video:!0,mx_CallView_video_hold:N});if(N){const e=Object(w.a)(this.props.call.getOpponentMember(),1024,1024,"crop");n.backgroundImage="url("+e+")",t=l.a.createElement("div",{className:"mx_CallView_video_holdBackground",style:n})}this.state.vidMuted||(e=l.a.createElement(m.b,{type:m.a.Local,call:this.props.call})),I=l.a.createElement("div",{className:o,ref:this.contentRef,onMouseMove:this.onMouseMove},t,l.a.createElement(m.b,{type:m.a.Remote,call:this.props.call,onResize:this.props.onResize}),e,F,D)}else{const e=this.props.pipMode?76:160,t=b()({mx_CallView_voice:!0,mx_CallView_voice_hold:N});I=l.a.createElement("div",{className:t,onMouseMove:this.onMouseMove},l.a.createElement("div",{className:"mx_CallView_voice_avatarsContainer"},l.a.createElement("div",{className:"mx_CallView_voice_avatarContainer",style:{width:e,height:e}},l.a.createElement(g.a,{room:o,height:e,width:e}))),F,D)}const M=this.props.call.type===f.f.Video?Object(p.a)("Video Call"):Object(p.a)("Voice Call");let P,L,j;this.props.call.type!==f.f.Video||this.props.pipMode||(L=l.a.createElement("div",{className:"mx_CallView_header_button mx_CallView_header_button_fullscreen",onClick:this.onFullscreenClick,title:Object(p.a)("Fill Screen")})),this.props.pipMode&&(j=l.a.createElement("div",{className:"mx_CallView_header_button mx_CallView_header_button_expand",onClick:this.onExpandClick,title:Object(p.a)("Return to call")}));const U=l.a.createElement("div",{className:"mx_CallView_header_controls"},L,j);let B;if(this.props.pipMode){let e;this.props.secondaryCall&&(e=l.a.createElement("span",{className:"mx_CallView_header_secondaryCallInfo"},l.a.createElement(v.a,{element:"span",onClick:this.onSecondaryRoomAvatarClick},l.a.createElement(g.a,{room:r,height:16,width:16}),l.a.createElement("span",{className:"mx_CallView_secondaryCall_roomName"},Object(p.a)("%(name)s on hold",{name:r.name}))))),B=l.a.createElement("div",{className:"mx_CallView_header"},l.a.createElement(v.a,{onClick:this.onRoomAvatarClick},l.a.createElement(g.a,{room:o,height:32,width:32})),l.a.createElement("div",{className:"mx_CallView_header_callInfo"},l.a.createElement("div",{className:"mx_CallView_header_roomName"},o.name),l.a.createElement("div",{className:"mx_CallView_header_callTypeSmall"},M,e)),U),P="mx_CallView_pip"}else B=l.a.createElement("div",{className:"mx_CallView_header"},l.a.createElement("div",{className:"mx_CallView_header_phoneIcon"}),l.a.createElement("span",{className:"mx_CallView_header_callType"},M),U),P="mx_CallView_large";return l.a.createElement("div",{className:"mx_CallView "+P},B,I,a,s)}})||o},function(e,t,n){"use strict";n.d(t,"b",(function(){return F}));var o=n(82),r=n.n(o),i=n(92),a=n.n(i),s=n(97),c=n(705),l=n(224),d=n(84),u=n(123),h=n(93),p=n(89),m=n(96),g=n(118),f=n(91),_=n(474),b=n(129),v=n(132),y=n(167),E=n(90),S=n(220),w=n(468),C=n(111),T=n(214),x=n(478),O=n(229),k=n(106),R=n(102),D=n(364),I=n(479),A=n(173);const N=({children:e,className:t,onClick:n})=>r.a.createElement(h.a,{className:a()("mx_BaseCard_Button mx_RoomSummaryCard_Button",t),onClick:n},e),F=e=>{const[t,n]=Object(o.useState)(T.a.instance.getApps(e.roomId)),r=Object(o.useCallback)(()=>{n([...T.a.instance.getApps(e.roomId)])},[e]);return Object(o.useEffect)(r,[e,r]),Object(b.a)(T.a.instance,e.roomId,r),Object(b.a)(A.d.instance,A.d.emissionForRoom(e),r),t},M=({app:e,room:t})=>{const n=v.a.getWidgetName(e),o=v.a.getWidgetDataTitle(e),i=o&&" - "+o,s=A.d.instance.isInContainer(t,e,A.a.Top),c=s?()=>{A.d.instance.moveToContainer(t,e,A.a.Right)}:()=>{A.d.instance.moveToContainer(t,e,A.a.Top)},[l,u,h,f]=Object(R.q)();let _;if(l){const t=u.current.getBoundingClientRect();_=r.a.createElement(D.a,{chevronFace:R.a.None,right:window.innerWidth-t.right,bottom:window.innerHeight-t.top,onFinished:f,app:e})}const b=!s&&!A.d.instance.canAddToContainer(t,A.a.Top);let y;y=b?Object(d.a)("You can only pin up to %(count)s widgets",{count:A.b}):s?Object(d.a)("Unpin"):Object(d.a)("Pin");const E=a()("mx_BaseCard_Button mx_RoomSummaryCard_Button",{mx_RoomSummaryCard_Button_pinned:s});return r.a.createElement("div",{className:E,ref:u},r.a.createElement(C.a,{className:"mx_RoomSummaryCard_icon_app",onClick:()=>{p.a.dispatch({action:m.a.SetRightPanelPhase,phase:g.c.Widget,refireParams:{widgetId:e.id}})},title:s?Object(d.a)("Unpin a widget to view it in this panel"):"",forceHide:!s,disabled:s,yOffset:-48},r.a.createElement(w.a,{app:e}),r.a.createElement("span",null,n),i),r.a.createElement(R.d,{className:"mx_RoomSummaryCard_app_options",isExpanded:l,onClick:h,title:Object(d.a)("Options"),yOffset:-24}),r.a.createElement(C.a,{className:"mx_RoomSummaryCard_app_pinToggle",onClick:c,title:y,disabled:b,yOffset:-24}),_)},P=({room:e})=>{const t=F(e);let n=null;return t.length>0&&A.d.instance.canCopyLayoutToRoom(e)&&(n=r.a.createElement(h.a,{kind:"link",onClick:()=>A.d.instance.copyLayoutToRoom(e)},Object(d.a)("Set my room layout for everyone"))),r.a.createElement(l.a,{className:"mx_RoomSummaryCard_appsGroup",title:Object(d.a)("Widgets")},t.map(t=>r.a.createElement(M,{key:t.id,app:t,room:e})),n,r.a.createElement(h.a,{kind:"link",onClick:()=>{const t=y.a.sharedInstance();t.hasManager()?E.b.getValue("feature_many_integration_managers")?t.openAll(e):t.getPrimaryManager().open(e):t.openNoManagerDialog()}},t.length>0?Object(d.a)("Edit widgets, bridges & bots"):Object(d.a)("Add widgets, bridges & bots")))},L=()=>{p.a.dispatch({action:m.a.SetRightPanelPhase,phase:g.c.RoomMemberList})},j=()=>{p.a.dispatch({action:m.a.SetRightPanelPhase,phase:g.c.FilePanel})},U=()=>{p.a.dispatch({action:"open_room_settings"})};t.a=({room:e,onClose:t})=>{const n=Object(o.useContext)(s.a),i=Object(c.a)(n,e),h=Object(o.useContext)(O.a).e2eStatus,p=e.getCanonicalAlias()||e.getAltAliases()[0]||"",m=r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"mx_RoomSummaryCard_avatar",role:"presentation"},r.a.createElement(u.a,{room:e,height:54,width:54,viewAvatarOnClick:!0}),r.a.createElement(S.a,{tooltip:i?Object(d.a)("Encrypted"):Object(d.a)("Not encrypted"),class:a()("mx_RoomSummaryCard_e2ee",{mx_RoomSummaryCard_e2ee_normal:i,mx_RoomSummaryCard_e2ee_warning:i&&h===x.a.Warning,mx_RoomSummaryCard_e2ee_verified:i&&h===x.a.Verified})})),r.a.createElement("h2",{title:e.name},e.name),r.a.createElement("div",{className:"mx_RoomSummaryCard_alias",title:p},p)),g=Object(I.a)(e);return r.a.createElement(l.b,{header:m,className:"mx_RoomSummaryCard",onClose:t},r.a.createElement(l.a,{title:Object(d.a)("About"),className:"mx_RoomSummaryCard_aboutGroup"},r.a.createElement(N,{className:"mx_RoomSummaryCard_icon_people",onClick:L},Object(d.a)("%(count)s people",{count:g})),r.a.createElement(N,{className:"mx_RoomSummaryCard_icon_files",onClick:j},Object(d.a)("Show files")),r.a.createElement(N,{className:"mx_RoomSummaryCard_icon_share",onClick:()=>{f.a.createTrackedDialog("share room dialog","",_.a,{target:e})}},Object(d.a)("Share room")),r.a.createElement(N,{className:"mx_RoomSummaryCard_icon_settings",onClick:U},Object(d.a)("Room settings"))),E.b.getValue(k.a.Widgets)&&r.a.createElement(P,{room:e}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return R}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n(86),d=n(168),u=n(203),h=n(245),p=n(153),m=n(103),g=n(87),f=n(84),_=n(475),b=n(109),v=n(102),y=n(293),E=n(140),S=n(111),w=n(90),C=n(106),T=n(85);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const k=[{name:"Facebook",img:n(1332),url:e=>"https://www.facebook.com/sharer/sharer.php?u="+e},{name:"Twitter",img:n(1333),url:e=>"https://twitter.com/home?status="+e},{name:"LinkedIn",img:n(1334),url:e=>"https://www.linkedin.com/shareArticle?mini=true&url="+e},{name:"Reddit",img:n(1335),url:e=>"http://www.reddit.com/submit?url="+e},{name:"email",img:n(1336),url:e=>"mailto:?body="+e}];let R=Object(T.a)("views.dialogs.ShareDialog")((i=r=class e extends c.PureComponent{constructor(e){super(e),s()(this,"closeCopiedTooltip",void 0),this.onCopyClick=this.onCopyClick.bind(this),this.onLinkSpecificEventCheckboxClick=this.onLinkSpecificEventCheckboxClick.bind(this);let t=null;e.target instanceof d.a&&(t=new b.a(e.target),t.load()),this.state={linkSpecificEvent:this.props.target instanceof m.b,permalinkCreator:t}}static onLinkClick(e){e.preventDefault(),Object(y.c)(e.target)}async onCopyClick(e){e.preventDefault();const t=e.target,n=await Object(y.b)(this.getUrl()),o=t.getBoundingClientRect(),r=g.getComponent("context_menus.GenericTextContextMenu"),{close:i}=v.n(r,O(O({},Object(v.p)(o,2)),{},{message:n?Object(f.a)("Copied!"):Object(f.a)("Failed to copy")}));this.closeCopiedTooltip=t.onmouseleave=i}onLinkSpecificEventCheckboxClick(){this.setState({linkSpecificEvent:!this.state.linkSpecificEvent})}componentWillUnmount(){this.closeCopiedTooltip&&this.closeCopiedTooltip()}getUrl(){let e;if(this.props.target instanceof d.a)if(this.state.linkSpecificEvent){const t=this.props.target.getLiveTimeline().getEvents();e=this.state.permalinkCreator.forEvent(t[t.length-1].getId())}else e=this.state.permalinkCreator.forShareableRoom();else this.props.target instanceof u.a||this.props.target instanceof p.a?e=Object(b.h)(this.props.target.userId):this.props.target instanceof h.a?e=Object(b.f)(this.props.target.groupId):this.props.target instanceof m.b&&(e=this.state.linkSpecificEvent?this.props.permalinkCreator.forEvent(this.props.target.getId()):this.props.permalinkCreator.forRoom());return e}render(){let t,n;if(this.props.target instanceof d.a){t=Object(f.a)("Share Room");this.props.target.getLiveTimeline().getEvents().length>0&&(n=c.createElement("div",null,c.createElement(E.a,{checked:this.state.linkSpecificEvent,onChange:this.onLinkSpecificEventCheckboxClick},Object(f.a)("Link to most recent message"))))}else this.props.target instanceof u.a||this.props.target instanceof p.a?t=Object(f.a)("Share User"):this.props.target instanceof h.a?t=Object(f.a)("Share Community"):this.props.target instanceof m.b&&(t=Object(f.a)("Share Room Message"),n=c.createElement("div",null,c.createElement(E.a,{checked:this.state.linkSpecificEvent,onClick:this.onLinkSpecificEventCheckboxClick},Object(f.a)("Link to selected message"))));const o=this.getUrl(),r=encodeURIComponent(o),i=w.b.getValue(C.a.ShareQRCode),a=w.b.getValue(C.a.ShareSocial);let s;(i||a)&&(s=c.createElement(c.Fragment,null,c.createElement("hr",null),c.createElement("div",{className:"mx_ShareDialog_split"},i&&c.createElement("div",{className:"mx_ShareDialog_qrcode_container"},c.createElement(_.a,{data:o,width:256})),a&&c.createElement("div",{className:"mx_ShareDialog_social_container"},k.map(e=>c.createElement("a",{rel:"noreferrer noopener",target:"_blank",key:e.name,title:e.name,href:e.url(r),className:"mx_ShareDialog_social_icon"},c.createElement("img",{src:e.img,alt:e.name,height:64,width:64})))))));const l=g.getComponent("views.dialogs.BaseDialog");return c.createElement(l,{title:t,className:"mx_ShareDialog",contentId:"mx_Dialog_content",onFinished:this.props.onFinished},c.createElement("div",{className:"mx_ShareDialog_content"},c.createElement("div",{className:"mx_ShareDialog_matrixto"},c.createElement("a",{href:o,onClick:e.onLinkClick,className:"mx_ShareDialog_matrixto_link"},o),c.createElement(S.a,{title:Object(f.a)("Copy"),onClick:this.onCopyClick,className:"mx_ShareDialog_matrixto_copy"})),n,s))}},s()(r,"propTypes",{onFinished:l.func.isRequired,target:l.oneOfType([l.instanceOf(d.a),l.instanceOf(u.a),l.instanceOf(h.a),l.instanceOf(p.a),l.instanceOf(m.b)]).isRequired}),o=i))||o},function(e,t,n){"use strict";var o=n(83),r=n.n(o),i=n(100),a=n.n(i),s=n(82),c=n(1311),l=n(92),d=n.n(l),u=n(84),h=n(119);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const g={errorCorrectionLevel:"L"};t.a=e=>{let{data:t,className:n}=e,o=a()(e,["data","className"]);const[r,i]=s.useState(null);return s.useEffect(()=>{let e=!1;return Object(c.toDataURL)(t,m(m({},g),o)).then(t=>{e||i(t)}),()=>{e=!0}},[JSON.stringify(t),o]),s.createElement("div",{className:d()("mx_QRCode",n)},r?s.createElement("img",{src:r,className:"mx_VerificationQRCode",alt:Object(u.a)("QR Code")}):s.createElement(h.a,null))}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var o=n(114);let r;async function i(e,t){const n=(await t.getEncryptionTargetMembers()).map(({userId:e})=>e),i=!!o.a.shared().getUserIdForRoomId(t.roomId),a=[],s=[];n.filter(t=>t!==e.getUserId()).forEach(t=>{(e.checkUserTrust(t).isCrossSigningVerified()?a:s).push(t)});for(const t of s)if(e.checkUserTrust(t).wasCrossSigningVerified())return r.Warning;const c=a.length>0&&!i&&2!==n.length||1===n.length?[...a,e.getUserId()]:a;for(const t of c){if(e.getStoredDevicesForUser(t).some(({deviceId:n})=>!e.checkDeviceTrust(t,n).isVerified()))return r.Warning}return 0===s.length?r.Verified:r.Normal}!function(e){e.Warning="warning",e.Verified="verified",e.Normal="normal"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var o=n(82),r=n(129),i=n(105);const a=(e,t=250)=>{const[n,a]=Object(o.useState)(e.getJoinedMembers());return Object(r.a)(e.currentState,"RoomState.members",Object(i.throttle)(()=>{a(e.getJoinedMembers())},t,{leading:!0,trailing:!0})),n},s=(e,t=250)=>{const[n,a]=Object(o.useState)(e.getJoinedMemberCount());return Object(r.a)(e.currentState,"RoomState.members",Object(i.throttle)(()=>{a(e.getJoinedMemberCount())},t,{leading:!0,trailing:!0})),n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(87),l=n(84),d=n(88),u=n(107),h=n(91),p=n(94),m=n(85);let g=Object(m.a)("views.elements.ErrorBoundary")(o=class extends s.a.PureComponent{constructor(e){super(e),i()(this,"_onClearCacheAndReload",()=>{u.a.get()&&(d.a.get().stopClient(),d.a.get().store.deleteAllData().then(()=>{u.a.get().reload()}))}),i()(this,"_onBugReport",()=>{const e=c.getComponent("dialogs.BugReportDialog");e&&h.a.createTrackedDialog("Bug Report Dialog","",e,{label:"react-soft-crash"})}),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,{componentStack:t}){console.error(e),console.error("The above error occured while React was rendering the following components:",t)}render(){if(this.state.error){const e=c.getComponent("elements.AccessibleButton"),t="https://github.com/vector-im/element-web/issues/new";let n;return p.a.get().bug_report_endpoint_url&&(n=s.a.createElement(s.a.Fragment,null,s.a.createElement("p",null,Object(l.a)("Please <newIssueLink>create a new issue</newIssueLink> on GitHub so that we can investigate this bug.",{},{newIssueLink:e=>s.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:t},e)})),s.a.createElement("p",null,Object(l.a)("If you've submitted a bug via GitHub, debug logs can help us track down the problem. Debug logs contain application usage data including your username, the IDs or aliases of the rooms or groups you have visited and the usernames of other users. They do not contain messages.")),s.a.createElement(e,{onClick:this._onBugReport,kind:"primary"},Object(l.a)("Submit debug logs")))),s.a.createElement("div",{className:"mx_ErrorBoundary"},s.a.createElement("div",{className:"mx_ErrorBoundary_body"},s.a.createElement("h1",null,Object(l.a)("Something went wrong!")),n,s.a.createElement(e,{onClick:this._onClearCacheAndReload,kind:"danger"},Object(l.a)("Clear cache and reload"))))}return this.props.children}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var o=n(222),r=n(84),i=n(94),a=n(82),s=n.n(a);let c;function l({isRoomEncrypted:e,kind:t}){if(!e)return null;if(o.a.get())return null;const{desktopBuilds:n,brand:a}=i.a.get();let l=null,d=null;if(n.available)switch(d=s.a.createElement("img",{src:n.logo}),t){case c.Files:l=Object(r.a)("Use the <a>Desktop app</a> to see all encrypted files",{},{a:e=>s.a.createElement("a",{href:n.url,target:"_blank",rel:"noreferrer noopener"},e)});break;case c.Search:l=Object(r.a)("Use the <a>Desktop app</a> to search encrypted messages",{},{a:e=>s.a.createElement("a",{href:n.url,target:"_blank",rel:"noreferrer noopener"},e)})}else switch(t){case c.Files:l=Object(r.a)("This version of %(brand)s does not support viewing some encrypted files",{brand:a});break;case c.Search:l=Object(r.a)("This version of %(brand)s does not support searching encrypted messages",{brand:a})}return l?s.a.createElement("div",{className:"mx_DesktopBuildsNotice"},d,s.a.createElement("span",null,l)):(console.warn("Unknown desktop builds warning kind: ",t),null)}!function(e){e[e.Files=0]="Files",e[e.Search=1]="Search"}(c||(c={}))},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(84),a=n(97),s=n(134),c=n(90);const l=r.a.forwardRef(({mxEvent:e},t)=>{const n=Object(o.useContext)(a.a);let l=Object(i.a)("Message deleted");const d=e.getUnsigned(),u=d&&d.redacted_because&&d.redacted_because.sender;if(u&&u!==e.getSender()){const t=n.getRoom(e.getRoomId()),o=t&&t.getMember(u);l=Object(i.a)("Message deleted by %(name)s",{name:o?o.name:u})}const h=c.b.getValue("showTwelveHourTimestamps"),p=Object(s.b)(new Date(d.redacted_because.origin_server_ts),h),m=Object(i.a)("Message deleted on %(date)s",{date:p});return r.a.createElement("span",{className:"mx_RedactedBody",ref:t,title:m},l)});t.a=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o,r=n(82),i=n.n(r),a=n(92),s=n.n(a),c=n(120),l=n(111),d=n(85);let u=Object(d.a)("views.right_panel.HeaderButton")(o=class extends i.a.Component{constructor(e){super(e),this.onClick=this.onClick.bind(this)}onClick(){c.a.trackEvent(...this.props.analytics),this.props.onClick()}render(){const e=s()({mx_RightPanel_headerButton:!0,mx_RightPanel_headerButton_highlight:this.props.isHighlighted,["mx_RightPanel_"+this.props.name]:!0});return i.a.createElement(l.a,{"aria-selected":this.props.isHighlighted,role:"tab",title:this.props.title,className:e,onClick:this.onClick})}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(89),l=n(260),d=n(96),u=n(85);let h;!function(e){e.Room="room",e.Group="group"}(h||(h={}));let p=Object(u.a)("views.right_panel.HeaderButtons")(o=class extends s.a.Component{constructor(e,t){super(e),i()(this,"storeToken",void 0),i()(this,"dispatcherRef",void 0);const n=l.a.getSharedInstance();this.state={headerKind:t,phase:t===h.Room?n.visibleRoomPanelPhase:n.visibleGroupPanelPhase}}componentDidMount(){this.storeToken=l.a.getSharedInstance().addListener(this.onRightPanelUpdate.bind(this)),this.dispatcherRef=c.a.register(this.onAction.bind(this))}componentWillUnmount(){this.storeToken&&this.storeToken.remove(),this.dispatcherRef&&c.a.unregister(this.dispatcherRef)}setPhase(e,t){c.a.dispatch({action:d.a.SetRightPanelPhase,phase:e,refireParams:t})}isPhase(e){return Array.isArray(e)?e.includes(this.state.phase):e===this.state.phase}onRightPanelUpdate(){const e=l.a.getSharedInstance();this.state.headerKind===h.Room?this.setState({phase:e.visibleRoomPanelPhase}):this.state.headerKind===h.Group&&this.setState({phase:e.visibleGroupPanelPhase})}render(){return s.a.createElement("div",{className:"mx_HeaderButtons"},this.renderButtons())}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(82);const r=e=>{const[t,n]=Object(o.useState)(e);return[t,()=>{n(!t)},n]}},function(e,t,n){"use strict";var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(87),u=n(89),h=n(92),p=n.n(h),m=n(168),g=n(153),f=n(86),_=n.n(f),b=n(88),v=n(154),y=n(109),E=n(97),S=n(96),w=n(99),C=n(204),T=n(85);let x=Object(T.a)("views.elements.Pill")((i=r=class e extends l.a.Component{constructor(...e){super(...e),s()(this,"state",{resourceId:null,pillType:null,member:null,group:null,room:null,hover:!1}),s()(this,"onMouseOver",()=>{this.setState({hover:!0})}),s()(this,"onMouseLeave",()=>{this.setState({hover:!1})}),s()(this,"onUserPillClicked",()=>{u.a.dispatch({action:S.a.ViewUser,member:this.state.member})})}static roomNotifPos(e){return e.indexOf("@room")}static roomNotifLen(){return"@room".length}async UNSAFE_componentWillReceiveProps(t){let n,o;if(t.url)if(t.inMessage){const e=Object(y.i)(t.url);n=e.primaryEntityId,o=e.sigil}else n=Object(y.c)(t.url),o=n?n[0]:void 0;const r=this.props.type||{"@":e.TYPE_USER_MENTION,"#":e.TYPE_ROOM_MENTION,"!":e.TYPE_ROOM_MENTION,"+":e.TYPE_GROUP_MENTION}[o];let i,a,s;switch(r){case e.TYPE_AT_ROOM_MENTION:s=t.room;break;case e.TYPE_USER_MENTION:{const e=t.room?t.room.getMember(n):void 0;i=e,e||(i=new g.a(null,n),this.doProfileLookup(n,i))}break;case e.TYPE_ROOM_MENTION:{const e="#"===n[0]?b.a.get().getRooms().find(e=>e.getCanonicalAlias()===n||e.getAltAliases().includes(n)):b.a.get().getRoom(n);s=e}break;case e.TYPE_GROUP_MENTION:{const e=b.a.get();try{a=await v.a.getGroupProfileCached(e,n)}catch(e){a={groupId:n,avatarUrl:null,name:null}}}}this.setState({resourceId:n,pillType:r,member:i,group:a,room:s})}componentDidMount(){this._unmounted=!1,this._matrixClient=b.a.get(),this.UNSAFE_componentWillReceiveProps(this.props)}componentWillUnmount(){this._unmounted=!0}doProfileLookup(e,t){b.a.get().getProfileInfo(e).then(e=>{this._unmounted||(t.name=e.displayname,t.rawDisplayName=e.displayname,t.events.member={getContent:()=>({avatar_url:e.avatar_url}),getDirectionalContent:function(){return this.getContent()}},this.setState({member:t}))}).catch(t=>{console.error("Could not retrieve profile data for "+e+":",t)})}render(){const t=d.getComponent("views.avatars.BaseAvatar"),n=d.getComponent("avatars.MemberAvatar"),o=d.getComponent("avatars.RoomAvatar"),r=this.state.resourceId;let i,a,s,c=null,u=r,h=this.props.url;switch(this.state.pillType){case e.TYPE_AT_ROOM_MENTION:{const e=this.props.room;e&&(u="@room",this.props.shouldShowPillAvatar&&(c=l.a.createElement(o,{room:e,width:16,height:16,"aria-hidden":"true"})),i="mx_AtRoomPill")}break;case e.TYPE_USER_MENTION:{const e=this.state.member;e&&(a=e.userId,e.rawDisplayName=e.rawDisplayName||"",u=e.rawDisplayName,this.props.shouldShowPillAvatar&&(c=l.a.createElement(n,{member:e,width:16,height:16,"aria-hidden":"true"})),i="mx_UserPill",h=null,s=this.onUserPillClicked)}break;case e.TYPE_ROOM_MENTION:{const e=this.state.room;e&&(u=e.name||r,this.props.shouldShowPillAvatar&&(c=l.a.createElement(o,{room:e,width:16,height:16,"aria-hidden":"true"}))),i="mx_RoomPill"}break;case e.TYPE_GROUP_MENTION:if(this.state.group){const{avatarUrl:e,groupId:n,name:o}=this.state.group;u=n,this.props.shouldShowPillAvatar&&(c=l.a.createElement(t,{name:o||n,width:16,height:16,"aria-hidden":"true",url:e?Object(w.b)(e).getSquareThumbnailHttp(16):null})),i="mx_GroupPill"}}const m=p()("mx_Pill",i,{mx_UserPill_me:a===b.a.get().getUserId(),mx_UserPill_selected:this.props.isSelected});if(this.state.pillType){const{yOffset:e}=this.props;let t;return this.state.hover&&r&&(t=l.a.createElement(C.b,{label:r,yOffset:e})),l.a.createElement(E.a.Provider,{value:this._matrixClient},this.props.inMessage?l.a.createElement("a",{className:m,href:h,onClick:s,"data-offset-key":this.props.offsetKey,onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave},c,u,t):l.a.createElement("span",{className:m,"data-offset-key":this.props.offsetKey,onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave},c,u,t))}return null}},s()(r,"TYPE_USER_MENTION","TYPE_USER_MENTION"),s()(r,"TYPE_ROOM_MENTION","TYPE_ROOM_MENTION"),s()(r,"TYPE_GROUP_MENTION","TYPE_GROUP_MENTION"),s()(r,"TYPE_AT_ROOM_MENTION","TYPE_AT_ROOM_MENTION"),s()(r,"propTypes",{type:_.a.string,url:_.a.string,inMessage:_.a.bool,room:_.a.instanceOf(m.a),shouldShowPillAvatar:_.a.bool,isSelected:_.a.bool}),o=i))||o;t.a=x},function(e,t){e.exports="img/ellipsis.c2118e5.svg"},function(e,t,n){"use strict";var o=String.prototype.replace,r=/%20/g,i="RFC1738",a="RFC3986";e.exports={default:a,formatters:{RFC1738:function(e){return o.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:i,RFC3986:a}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var o,r=n(95),i=n.n(r),a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(84),u=n(111),h=n(101),p=n(433),m=n.n(p),g=n(174),f=n(304),_=n(622),b=n(102),v=n(624),y=n(90),E=n(134),S=n(89),w=n(85);function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function T(e){let t,n,o;return 1===e.deltaMode?(t=18*e.deltaX,n=18*e.deltaY,o=18*e.deltaZ):(t=e.deltaX,n=e.deltaY,o=e.deltaZ),new WheelEvent("syntheticWheel",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({deltaMode:0,deltaY:n,deltaX:t,deltaZ:o},e))}let x=Object(w.a)("views.elements.ImageView")(o=class extends l.a.Component{constructor(e){super(e),s()(this,"contextMenuButton",Object(c.createRef)()),s()(this,"focusLock",Object(c.createRef)()),s()(this,"imageWrapper",Object(c.createRef)()),s()(this,"image",Object(c.createRef)()),s()(this,"initX",0),s()(this,"initY",0),s()(this,"lastX",0),s()(this,"lastY",0),s()(this,"previousX",0),s()(this,"previousY",0),s()(this,"calculateZoom",()=>{const e=this.image.current,t=this.imageWrapper.current,n=this.props.width||e.naturalWidth,o=this.props.height||e.naturalHeight,r=t.clientWidth/n,i=t.clientHeight/o;if(r>=1&&i>=1)return void this.setState({zoom:1,minZoom:1,maxZoom:1});const a=.95*Math.min(r,i);this.state.zoom<=this.state.minZoom&&this.setState({zoom:a}),this.setState({minZoom:a,maxZoom:1})}),s()(this,"onWheel",e=>{e.stopPropagation(),e.preventDefault();const{deltaY:t}=T(e);this.zoom(-.0025*t)}),s()(this,"onZoomInClick",()=>{this.zoom(.1)}),s()(this,"onZoomOutClick",()=>{this.zoom(-.1)}),s()(this,"onKeyDown",e=>{e.key===h.a.ESCAPE&&(e.stopPropagation(),e.preventDefault(),this.props.onFinished())}),s()(this,"onRotateCounterClockwiseClick",()=>{const e=this.state.rotation-90;this.setState({rotation:e})}),s()(this,"onRotateClockwiseClick",()=>{const e=this.state.rotation+90;this.setState({rotation:e})}),s()(this,"onDownloadClick",()=>{const e=document.createElement("a");e.href=this.props.src,e.download=this.props.name,e.target="_blank",e.click()}),s()(this,"onOpenContextMenu",()=>{this.setState({contextMenuDisplayed:!0})}),s()(this,"onCloseContextMenu",()=>{this.setState({contextMenuDisplayed:!1})}),s()(this,"onPermalinkClicked",e=>{e.preventDefault(),S.a.dispatch({action:"view_room",event_id:this.props.mxEvent.getId(),highlighted:!0,room_id:this.props.mxEvent.getRoomId()}),this.props.onFinished()}),s()(this,"onStartMoving",e=>{e.stopPropagation(),e.preventDefault(),0===e.button&&(this.state.zoom!==this.state.minZoom?(this.setState({moving:!0}),this.previousX=this.state.translationX,this.previousY=this.state.translationY,this.initX=e.pageX-this.lastX,this.initY=e.pageY-this.lastY):this.setState({zoom:this.state.maxZoom}))}),s()(this,"onMoving",e=>{e.stopPropagation(),e.preventDefault(),this.state.moving&&(this.lastX=e.pageX-this.initX,this.lastY=e.pageY-this.initY,this.setState({translationX:this.lastX,translationY:this.lastY}))}),s()(this,"onEndMoving",()=>{!0===this.state.moving&&Math.abs(this.state.translationX-this.previousX)<10&&Math.abs(this.state.translationY-this.previousY)<10&&this.setState({zoom:this.state.minZoom,translationX:0,translationY:0}),this.setState({moving:!1})}),this.state={zoom:0,minZoom:.95,maxZoom:.95,rotation:0,translationX:0,translationY:0,moving:!1,contextMenuDisplayed:!1}}componentDidMount(){this.focusLock.current.addEventListener("wheel",this.onWheel,{passive:!1}),window.addEventListener("resize",this.calculateZoom),this.image.current.addEventListener("load",this.calculateZoom),this.calculateZoom()}componentWillUnmount(){this.focusLock.current.removeEventListener("wheel",this.onWheel)}zoom(e){const t=this.state.zoom+e;t<=this.state.minZoom?this.setState({zoom:this.state.minZoom,translationX:0,translationY:0}):t>=this.state.maxZoom?this.setState({zoom:this.state.maxZoom}):this.setState({zoom:t})}renderContextMenu(){let e=null;return this.state.contextMenuDisplayed&&(e=l.a.createElement(b.b,i()({},Object(b.k)(this.contextMenuButton.current.getBoundingClientRect()),{onFinished:this.onCloseContextMenu}),l.a.createElement(_.a,{mxEvent:this.props.mxEvent,permalinkCreator:this.props.permalinkCreator,onFinished:this.onCloseContextMenu,onCloseDialog:this.props.onFinished}))),l.a.createElement(l.a.Fragment,null,e)}render(){const e=!!this.props.mxEvent,t=this.state.maxZoom===this.state.minZoom;let n;n=this.state.moving?"grabbing":t?"default":this.state.zoom===this.state.minZoom?"zoom-in":"zoom-out";const o=this.state.rotation+"deg",r=this.state.zoom,i=this.state.translationX+"px",a=this.state.translationY+"px",s={cursor:n,transition:this.state.moving?null:"transform 200ms ease 0s",transform:`translateX(${i})\n translateY(${a})\n scale(${r})\n rotate(${o})`};let c,h,p,_;if(e){const e=this.props.mxEvent,t=y.b.getValue("showTwelveHourTimestamps");let n="#";this.props.permalinkCreator&&(n=this.props.permalinkCreator.forEvent(this.props.mxEvent.getId()));const o=e.sender?e.sender.name:e.getSender(),r=l.a.createElement("div",{className:"mx_ImageView_info_sender"},o),i=l.a.createElement("a",{href:n,onClick:this.onPermalinkClicked,"aria-label":Object(E.b)(new Date(this.props.mxEvent.getTs()),t,!1)},l.a.createElement(v.a,{showFullDate:!0,showTwelveHour:t,ts:e.getTs(),showSeconds:!1})),a=l.a.createElement(g.a,{member:e.sender,width:32,height:32,viewUserOnClick:!0});c=l.a.createElement("div",{className:"mx_ImageView_info_wrapper"},a,l.a.createElement("div",{className:"mx_ImageView_info"},r,i))}else c=l.a.createElement("div",null);return this.props.mxEvent&&(h=l.a.createElement(f.a,{className:"mx_ImageView_button mx_ImageView_button_more",title:Object(d.a)("Options"),onClick:this.onOpenContextMenu,inputRef:this.contextMenuButton,isExpanded:this.state.contextMenuDisplayed})),t||(p=l.a.createElement(u.a,{className:"mx_ImageView_button mx_ImageView_button_zoomOut",title:Object(d.a)("Zoom out"),onClick:this.onZoomOutClick}),_=l.a.createElement(u.a,{className:"mx_ImageView_button mx_ImageView_button_zoomIn",title:Object(d.a)("Zoom in"),onClick:this.onZoomInClick})),l.a.createElement(m.a,{returnFocus:!0,lockProps:{onKeyDown:this.onKeyDown,role:"dialog"},className:"mx_ImageView",ref:this.focusLock},l.a.createElement("div",{className:"mx_ImageView_panel"},c,l.a.createElement("div",{className:"mx_ImageView_toolbar"},l.a.createElement(u.a,{className:"mx_ImageView_button mx_ImageView_button_rotateCW",title:Object(d.a)("Rotate Right"),onClick:this.onRotateClockwiseClick}),l.a.createElement(u.a,{className:"mx_ImageView_button mx_ImageView_button_rotateCCW",title:Object(d.a)("Rotate Left"),onClick:this.onRotateCounterClockwiseClick}),p,_,l.a.createElement(u.a,{className:"mx_ImageView_button mx_ImageView_button_download",title:Object(d.a)("Download"),onClick:this.onDownloadClick}),h,l.a.createElement(u.a,{className:"mx_ImageView_button mx_ImageView_button_close",title:Object(d.a)("Close"),onClick:this.props.onFinished}),this.renderContextMenu())),l.a.createElement("div",{className:"mx_ImageView_image_wrapper",ref:this.imageWrapper},l.a.createElement("img",{src:this.props.src,title:this.props.name,style:s,ref:this.image,className:"mx_ImageView_image",draggable:!0,onMouseDown:this.onStartMoving,onMouseMove:this.onMoving,onMouseUp:this.onEndMoving,onMouseLeave:this.onEndMoving})))}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(83),r=n.n(o),i=n(137);const a={};var s=n(616),c=n(90);class l{constructor(){}static get instance(){return l.internalInstance||(l.internalInstance=new l),l.internalInstance}async onNewInvitedRoom(e){await s.a.sharedInstance().onNewInvitedRoom(e)}isRoomVisible(e){if(i.c.sharedInstance().getSupportsVirtualRooms()&&s.a.sharedInstance().isVirtualRoom(e))return!1;if(e.isSpaceRoom()&&c.b.getValue("feature_spaces"))return!1;const t=a.isRoomVisible;return!t||t(e)}}r()(l,"internalInstance",void 0)},function(e,t,n){"use strict";var o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,c=a(e),l=1;l<arguments.length;l++){for(var d in n=Object(arguments[l]))r.call(n,d)&&(c[d]=n[d]);if(o){s=o(n);for(var u=0;u<s.length;u++)i.call(n,s[u])&&(c[s[u]]=n[s[u]])}}return c}},function(e,t,n){(function(e){var o=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},o=0;o<t.length;o++)n[t[o]]=Object.getOwnPropertyDescriptor(e,t[o]);return n},r=/%[sdj%]/g;t.format=function(e){if(!_(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var o=arguments,i=o.length,a=String(e).replace(r,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch(e){return"[Circular]"}default:return e}})),c=o[n];n<i;c=o[++n])g(c)||!y(c)?a+=" "+c:a+=" "+s(c);return a},t.deprecate=function(n,o){if(void 0!==e&&!0===e.noDeprecation)return n;if(void 0===e)return function(){return t.deprecate(n,o).apply(this,arguments)};var r=!1;return function(){if(!r){if(e.throwDeprecation)throw new Error(o);e.traceDeprecation?console.trace(o):console.error(o),r=!0}return n.apply(this,arguments)}};var i,a={};function s(e,n){var o={seen:[],stylize:l};return arguments.length>=3&&(o.depth=arguments[2]),arguments.length>=4&&(o.colors=arguments[3]),m(n)?o.showHidden=n:n&&t._extend(o,n),b(o.showHidden)&&(o.showHidden=!1),b(o.depth)&&(o.depth=2),b(o.colors)&&(o.colors=!1),b(o.customInspect)&&(o.customInspect=!0),o.colors&&(o.stylize=c),d(o,e,o.depth)}function c(e,t){var n=s.styles[t];return n?"["+s.colors[n][0]+"m"+e+"["+s.colors[n][1]+"m":e}function l(e,t){return e}function d(e,n,o){if(e.customInspect&&n&&w(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(o,e);return _(r)||(r=d(e,r,o)),r}var i=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(_(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(f(t))return e.stylize(""+t,"number");if(m(t))return e.stylize(""+t,"boolean");if(g(t))return e.stylize("null","null")}(e,n);if(i)return i;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),S(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return u(n);if(0===a.length){if(w(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(v(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(E(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return u(n)}var l,y="",C=!1,T=["{","}"];(p(n)&&(C=!0,T=["[","]"]),w(n))&&(y=" [Function"+(n.name?": "+n.name:"")+"]");return v(n)&&(y=" "+RegExp.prototype.toString.call(n)),E(n)&&(y=" "+Date.prototype.toUTCString.call(n)),S(n)&&(y=" "+u(n)),0!==a.length||C&&0!=n.length?o<0?v(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=C?function(e,t,n,o,r){for(var i=[],a=0,s=t.length;a<s;++a)k(t,String(a))?i.push(h(e,t,n,o,String(a),!0)):i.push("");return r.forEach((function(r){r.match(/^\d+$/)||i.push(h(e,t,n,o,r,!0))})),i}(e,n,o,s,a):a.map((function(t){return h(e,n,o,s,t,C)})),e.seen.pop(),function(e,t,n){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(l,y,T)):T[0]+y+T[1]}function u(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,o,r,i){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,r)||{value:t[r]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),k(o,r)||(a="["+r+"]"),s||(e.seen.indexOf(c.value)<0?(s=g(n)?d(e,c.value,null):d(e,c.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),b(a)){if(i&&r.match(/^\d+$/))return s;(a=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function m(e){return"boolean"==typeof e}function g(e){return null===e}function f(e){return"number"==typeof e}function _(e){return"string"==typeof e}function b(e){return void 0===e}function v(e){return y(e)&&"[object RegExp]"===C(e)}function y(e){return"object"==typeof e&&null!==e}function E(e){return y(e)&&"[object Date]"===C(e)}function S(e){return y(e)&&("[object Error]"===C(e)||e instanceof Error)}function w(e){return"function"==typeof e}function C(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(b(i)&&(i=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(i)){var o=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,o,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=m,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=f,t.isString=_,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=v,t.isObject=y,t.isDate=E,t.isError=S,t.isFunction=w,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(761);var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),x[e.getMonth()],t].join(" ")}function k(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",O(),t.format.apply(t,arguments))},t.inherits=n(762),t._extend=function(e,t){if(!t||!y(t))return e;for(var n=Object.keys(t),o=n.length;o--;)e[n[o]]=t[n[o]];return e};var R="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function D(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(R&&e[R]){var t;if("function"!=typeof(t=e[R]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,o=new Promise((function(e,o){t=e,n=o})),r=[],i=0;i<arguments.length;i++)r.push(arguments[i]);r.push((function(e,o){e?n(e):t(o)}));try{e.apply(this,r)}catch(e){n(e)}return o}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),R&&Object.defineProperty(t,R,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,o(e))},t.promisify.custom=R,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],o=0;o<arguments.length;o++)n.push(arguments[o]);var r=n.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var i=this,a=function(){return r.apply(i,arguments)};t.apply(this,n).then((function(t){e.nextTick(a,null,t)}),(function(t){e.nextTick(D,t,a)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Object.defineProperties(n,o(t)),n}}).call(this,n(227))},function(e,t,n){"use strict";e.exports={__locale:"en",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],abbreviated_days:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],abbreviated_months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],am:"AM",pm:"PM"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(95),r=n.n(o),i=n(100),a=n.n(i),s=n(82),c=n.n(s),l=n(93);const d=e=>{let{label:t,isExpanded:n,children:o,onClick:i,onContextMenu:s}=e,d=a()(e,["label","isExpanded","children","onClick","onContextMenu"]);return c.a.createElement(l.a,r()({},d,{onClick:i,onContextMenu:s||i,title:t,"aria-label":t,"aria-haspopup":!0,"aria-expanded":n}),o)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(95),r=n.n(o),i=n(100),a=n.n(i),s=n(82),c=n.n(s);const l=e=>{let{children:t,label:n}=e,o=a()(e,["children","label"]);return c.a.createElement("div",r()({},o,{role:"group","aria-label":n}),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(95),r=n.n(o),i=n(100),a=n.n(i),s=n(82),c=n.n(s),l=n(93),d=n(111);const u=e=>{let{children:t,label:n,tooltip:o}=e,i=a()(e,["children","label","tooltip"]);const s=i["aria-label"]||n;return o?c.a.createElement(d.a,r()({},i,{role:"menuitem",tabIndex:-1,"aria-label":s,title:o}),t):c.a.createElement(l.a,r()({},i,{role:"menuitem",tabIndex:-1,"aria-label":s}),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(95),r=n.n(o),i=n(100),a=n.n(i),s=n(82),c=n.n(s),l=n(93);const d=e=>{let{children:t,label:n,active:o,disabled:i}=e,s=a()(e,["children","label","active","disabled"]);return c.a.createElement(l.a,r()({},s,{role:"menuitemcheckbox","aria-checked":o,"aria-disabled":i,disabled:i,tabIndex:-1,"aria-label":n}),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(95),r=n.n(o),i=n(100),a=n.n(i),s=n(82),c=n.n(s),l=n(93);const d=e=>{let{children:t,label:n,active:o,disabled:i}=e,s=a()(e,["children","label","active","disabled"]);return c.a.createElement(l.a,r()({},s,{role:"menuitemradio","aria-checked":o,"aria-disabled":i,disabled:i,tabIndex:-1,"aria-label":n}),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(95),r=n.n(o),i=n(100),a=n.n(i),s=n(82),c=n.n(s),l=n(101),d=n(140);const u=e=>{let{children:t,label:n,onChange:o,onClose:i}=e,s=a()(e,["children","label","onChange","onClose"]);return c.a.createElement(d.a,r()({},s,{role:"menuitemcheckbox",tabIndex:-1,"aria-label":n,onChange:o,onKeyDown:e=>{e.key!==l.a.ENTER&&e.key!==l.a.SPACE||(e.stopPropagation(),e.preventDefault(),o(),e.key===l.a.ENTER&&i())},onKeyUp:e=>{e.key!==l.a.SPACE&&e.key!==l.a.ENTER||(e.stopPropagation(),e.preventDefault())}}),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(95),r=n.n(o),i=n(100),a=n.n(i),s=n(82),c=n.n(s),l=n(101),d=n(267);const u=e=>{let{children:t,label:n,onChange:o,onClose:i}=e,s=a()(e,["children","label","onChange","onClose"]);return c.a.createElement(d.a,r()({},s,{role:"menuitemradio",tabIndex:-1,"aria-label":n,onChange:o,onKeyDown:e=>{e.key!==l.a.ENTER&&e.key!==l.a.SPACE||(e.stopPropagation(),e.preventDefault(),o(),e.key===l.a.ENTER&&i())},onKeyUp:e=>{e.key!==l.a.SPACE&&e.key!==l.a.ENTER||(e.stopPropagation(),e.preventDefault())}}),t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(){this._acquired=!1,this._waitingResolvers=[]}get acquired(){return this._acquired}acquireAsync(){return this._acquired?new Promise(e=>{this._waitingResolvers.push(e)}):(this._acquired=!0,Promise.resolve())}tryAcquire(){return!this._acquired&&(this._acquired=!0,!0)}release(){if(!this._acquired)throw new Error("Cannot release an unacquired lock");if(this._waitingResolvers.length>0){this._waitingResolvers.shift()()}else this._acquired=!1}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(83),r=n.n(o),i=n(88),a=n(7);class s extends a.EventEmitter{constructor(e){super(),this.dispatcher=e,r()(this,"matrixClient",void 0),r()(this,"dispatcherRef",void 0),r()(this,"onAction",async e=>{if("MatrixActions.sync"===e.action){if("PREPARED"!==e.prevState||"PREPARED"===e.state)return;this.matrixClient!==e.matrixClient&&(this.matrixClient&&await this.onNotReady(),this.matrixClient=e.matrixClient,await this.onReady())}else"on_client_not_viable"!==e.action&&"on_logged_out"!==e.action||this.matrixClient&&(await this.onNotReady(),this.matrixClient=null)}),this.dispatcherRef=this.dispatcher.register(this.onAction),i.a.get()&&(this.matrixClient=i.a.get(),this.onReady())}get mxClient(){return this.matrixClient}useUnitTestClient(e){this.matrixClient=e}destroy(){this.dispatcher.unregister(this.dispatcherRef)}async onReady(){}async onNotReady(){}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var o=n(82);const r=(e,t)=>{const n=Object(o.useRef)();Object(o.useEffect)(()=>{n.current=e},[e]),Object(o.useEffect)(()=>{const e=setTimeout(()=>{n.current()},t);return()=>clearTimeout(e)},[t])},i=(e,t,n)=>{const[r,i]=Object(o.useState)(n);return((e,t)=>{const n=Object(o.useRef)();Object(o.useEffect)(()=>{n.current=e},[e]),Object(o.useEffect)(()=>{const e=setInterval(()=>{n.current()},t);return()=>clearInterval(e)},[t])})(()=>i(e=>e-1),t),0===r&&e(),r}},function(e,t,n){"use strict";var o=n(177),r=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._dispatcher=function(e){e&&e.length||o(!1),!1;return e[0].getDispatcher()}(t);var i=t.map((function(e){return e.getDispatchToken()}));this._dispatchToken=this._dispatcher.register((function(e){r._dispatcher.waitFor(i),n()}))}return e.prototype.release=function(){this._dispatcher.unregister(this._dispatchToken)},e}();e.exports=r},function(e,t,n){"use strict";var o=n(509),r=n(786),i=n(177),a=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,n),this._state=this.getInitialState()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getState=function(){return this._state},t.prototype.getInitialState=function(){return r("FluxReduceStore","getInitialState")},t.prototype.reduce=function(e,t){return r("FluxReduceStore","reduce")},t.prototype.areEqual=function(e,t){return e===t},t.prototype.__invokeOnDispatch=function(e){this.__changed=!1;var t=this._state,n=this.reduce(t,e);void 0===n&&i(!1),this.areEqual(t,n)||(this._state=n,this.__emitChange()),this.__changed&&this.__emitter.emit(this.__changeEvent)},t}(o);e.exports=a},function(e,t,n){"use strict";var o=n(781).EventEmitter,r=n(177),i=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__className=this.constructor.name,this.__changed=!1,this.__changeEvent="change",this.__dispatcher=t,this.__emitter=new o,this._dispatchToken=t.register((function(e){n.__invokeOnDispatch(e)}))}return e.prototype.addListener=function(e){return this.__emitter.addListener(this.__changeEvent,e)},e.prototype.getDispatcher=function(){return this.__dispatcher},e.prototype.getDispatchToken=function(){return this._dispatchToken},e.prototype.hasChanged=function(){return this.__dispatcher.isDispatching()||r(!1),this.__changed},e.prototype.__emitChange=function(){this.__dispatcher.isDispatching()||r(!1),this.__changed=!0},e.prototype.__invokeOnDispatch=function(e){this.__changed=!1,this.__onDispatch(e),this.__changed&&this.__emitter.emit(this.__changeEvent)},e.prototype.__onDispatch=function(e){r(!1)},e}();e.exports=i},function(e,t,n){"use strict";var o=function(e){function t(n,o,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,n),this.listener=o,this.context=r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n(783));e.exports=o},function(e,t,n){"use strict";e.exports=function(e,t,n,o,r,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,r,i,a,s],d=0;(c=new Error(t.replace(/%s/g,(function(){return l[d++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));const o=new Map;function r(e,t){o.set(e,t)}function i(e){return o.get(e)}},function(e,t,n){e.exports={default:n(791),__esModule:!0}},function(e,t,n){e.exports=!n(183)&&!n(234)((function(){return 7!=Object.defineProperty(n(515)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var o=n(233),r=n(181).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){var o=n(207),r=n(235),i=n(374)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(180),r=n(142),i=n(234);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],a={};a[e]=t(n),o(o.S+o.F*i((function(){n(1)})),"Object",a)}},function(e,t,n){"use strict";var o=n(798)(!0);n(519)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var o=n(311),r=n(180),i=n(520),a=n(231),s=n(269),c=n(799),l=n(381),d=n(516),u=n(163)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,m,g,f,_){c(n,t,m);var b,v,y,E=function(e){if(!h&&e in T)return T[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},S=t+" Iterator",w="values"==g,C=!1,T=e.prototype,x=T[u]||T["@@iterator"]||g&&T[g],O=x||E(g),k=g?w?E("entries"):O:void 0,R="Array"==t&&T.entries||x;if(R&&(y=d(R.call(new e)))!==Object.prototype&&y.next&&(l(y,S,!0),o||"function"==typeof y[u]||a(y,u,p)),w&&x&&"values"!==x.name&&(C=!0,O=function(){return x.call(this)}),o&&!_||!h&&!C&&T[u]||a(T,u,O),s[t]=O,s[S]=p,g)if(b={values:w?O:E("values"),keys:f?O:E("keys"),entries:k},_)for(v in b)v in T||i(T,v,b[v]);else r(r.P+r.F*(h||C),t,b);return b}},function(e,t,n){e.exports=n(231)},function(e,t,n){var o=n(207),r=n(236),i=n(801)(!1),a=n(374)("IE_PROTO");e.exports=function(e,t){var n,s=r(e),c=0,l=[];for(n in s)n!=a&&o(s,n)&&l.push(n);for(;t.length>c;)o(s,n=t[c++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){var o=n(379);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){var o=n(377),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){var o=n(521),r=n(380).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(313),r=n(268),i=n(236),a=n(372),s=n(207),c=n(514),l=Object.getOwnPropertyDescriptor;t.f=n(183)?l:function(e,t){if(e=i(e),t=a(t,!0),c)try{return l(e,t)}catch(e){}if(s(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t,n){"use strict";t.__esModule=!0,t.compose=t.applyMiddleware=t.bindActionCreators=t.combineReducers=t.createStore=void 0;var o=c(n(527)),r=c(n(836)),i=c(n(837)),a=c(n(838)),s=c(n(531));c(n(530));function c(e){return e&&e.__esModule?e:{default:e}}t.createStore=o.default,t.combineReducers=r.default,t.bindActionCreators=i.default,t.applyMiddleware=a.default,t.compose=s.default},function(e,t,n){"use strict";t.__esModule=!0,t.ActionTypes=void 0,t.default=function e(t,n,i){var s;"function"==typeof n&&void 0===i&&(i=n,n=void 0);if(void 0!==i){if("function"!=typeof i)throw new Error("Expected the enhancer to be a function.");return i(e)(t,n)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var c=t,l=n,d=[],u=d,h=!1;function p(){u===d&&(u=d.slice())}function m(){return l}function g(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return p(),u.push(e),function(){if(t){t=!1,p();var n=u.indexOf(e);u.splice(n,1)}}}function f(e){if(!(0,o.default)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(h)throw new Error("Reducers may not dispatch actions.");try{h=!0,l=c(l,e)}finally{h=!1}for(var t=d=u,n=0;n<t.length;n++){(0,t[n])()}return e}return f({type:a.INIT}),(s={dispatch:f,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");c=e,f({type:a.INIT})}})[r.default]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[r.default]=function(){return this},e},s};var o=i(n(528)),r=i(n(834));function i(e){return e&&e.__esModule?e:{default:e}}var a=t.ActionTypes={INIT:"@@redux/INIT"}},function(e,t,n){var o=n(826),r=n(831),i=n(833),a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,d=c.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=o(e))return!1;var t=r(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}},function(e,t,n){var o=n(827).Symbol;e.exports=o},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return function(e){return e};if(1===t.length)return t[0];return t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(143),i=(o=r)&&o.__esModule?o:{default:o};t.default=(0,i.default)((function(e){return e.reduce((function(e,t){return e[t.draggableId]=t,e}),{})}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(385),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(e){var t=(0,i.default)(e.top,e.bottom),n=(0,i.default)(e.left,e.right);return function(o){if(t(o.top)&&t(o.bottom)&&n(o.left)&&n(o.right))return!0;var r=t(o.top)||t(o.bottom),i=n(o.left)||n(o.right);if(r&&i)return!0;var a=o.top<e.top&&o.bottom>e.bottom,s=o.left<e.left&&o.right>e.right;return!(!a||!s)||(a&&i||s&&r)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(133),i=n(271),a=n(386),s=(o=a)&&o.__esModule?o:{default:o};t.default=function(e){var t=e.draggable,n=e.destination,o=e.newCenter,a=e.viewport,c=(0,r.subtract)(o,t.page.withMargin.center),l=(0,i.offset)(t.page.withMargin,c);return(0,s.default)({target:l,destination:n,viewport:a})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.css=t.physics=void 0;var o,r=n(208),i=(o=r)&&o.__esModule?o:{default:o};var a;t.physics=(a={stiffness:1e3,damping:60,precision:.99},{standard:(0,i.default)({},a),fast:(0,i.default)({},a,{stiffness:2*a.stiffness})}),t.css={outOfTheWay:"transform 0.2s cubic-bezier(0.2, 0, 0, 1)"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lift=t.dropAnimationFinished=t.cancel=t.drop=t.completeDrop=t.prepare=t.clean=t.crossAxisMoveBackward=t.crossAxisMoveForward=t.moveForward=t.moveBackward=t.moveByWindowScroll=t.move=t.updateDroppableDimensionIsEnabled=t.updateDroppableDimensionScroll=t.publishDroppableDimensions=t.publishDraggableDimensions=t.completeLift=t.requestDimensions=void 0;var o=a(n(315)),r=a(n(876)),i=n(133);function a(e){return e&&e.__esModule?e:{default:e}}var s={x:0,y:0},c=function(e){var t=e.initial,n=e.current,o=e.droppable,r=(0,i.subtract)(t.windowScroll,n.windowScroll),a=o?o.viewport.frameScroll.diff.displacement:s;return(0,i.add)(r,a)},l=t.requestDimensions=function(e){return{type:"REQUEST_DIMENSIONS",payload:e}},d=t.completeLift=function(e,t,n,o){return{type:"COMPLETE_LIFT",payload:{id:e,client:t,windowScroll:n,isScrollAllowed:o}}},u=(t.publishDraggableDimensions=function(e){return{type:"PUBLISH_DRAGGABLE_DIMENSIONS",payload:e}},t.publishDroppableDimensions=function(e){return{type:"PUBLISH_DROPPABLE_DIMENSIONS",payload:e}},t.updateDroppableDimensionScroll=function(e,t){return{type:"UPDATE_DROPPABLE_DIMENSION_SCROLL",payload:{id:e,offset:t}}},t.updateDroppableDimensionIsEnabled=function(e,t){return{type:"UPDATE_DROPPABLE_DIMENSION_IS_ENABLED",payload:{id:e,isEnabled:t}}},t.move=function(e,t,n){return{type:"MOVE",payload:{id:e,client:t,windowScroll:n}}},t.moveByWindowScroll=function(e,t){return{type:"MOVE_BY_WINDOW_SCROLL",payload:{id:e,windowScroll:t}}},t.moveBackward=function(e){return{type:"MOVE_BACKWARD",payload:e}},t.moveForward=function(e){return{type:"MOVE_FORWARD",payload:e}},t.crossAxisMoveForward=function(e){return{type:"CROSS_AXIS_MOVE_FORWARD",payload:e}},t.crossAxisMoveBackward=function(e){return{type:"CROSS_AXIS_MOVE_BACKWARD",payload:e}},t.clean=function(){return{type:"CLEAN",payload:null}}),h=t.prepare=function(){return{type:"PREPARE",payload:null}},p=function(e){return{type:"DROP_ANIMATE",payload:{trigger:e.trigger,newHomeOffset:e.newHomeOffset,impact:e.impact,result:e.result}}},m=t.completeDrop=function(e){return{type:"DROP_COMPLETE",payload:e}};t.drop=function(){return function(e,t){var n=t();if("PREPARING"!==n.phase&&"COLLECTING_INITIAL_DIMENSIONS"!==n.phase){if("DRAGGING"!==n.phase)return console.error("not able to drop in phase: '"+n.phase+"'"),void e(u());if(!n.drag)return console.error("not able to drop when there is invalid drag state",n),void e(u());var o=n.drag,a=o.impact,s=o.initial,l=o.current,d=s.descriptor,h=n.dimension.draggable[s.descriptor.id],g=n.dimension.droppable[h.descriptor.droppableId],f=a.destination?n.dimension.droppable[a.destination.droppableId]:null,_={droppableId:d.droppableId,index:d.index},b={draggableId:d.id,type:g.descriptor.type,source:_,destination:a.destination},v=(0,r.default)({movement:a.movement,draggable:h,draggables:n.dimension.draggable,destination:f}),y=(0,i.subtract)(v,h.client.withMargin.center),E=c({initial:s,current:l,droppable:f||g}),S=(0,i.add)(y,E);e(!(0,i.isEqual)(l.client.offset,S)?p({trigger:"DROP",newHomeOffset:S,impact:a,result:b}):m(b))}else e(u())}},t.cancel=function(){return function(e,t){var n=t();if("DRAGGING"===n.phase){if(!n.drag)return console.error("invalid drag state",n),void e(u());var r=n.drag,a=r.initial,l=r.current,d=a.descriptor,h=n.dimension.droppable[d.droppableId],g={index:d.index,droppableId:d.droppableId},f={draggableId:d.id,type:h.descriptor.type,source:g,destination:null};if(!(0,i.isEqual)(l.client.offset,s)){var _=c({initial:a,current:l,droppable:h});e(p({trigger:"CANCEL",newHomeOffset:_,impact:o.default,result:f}))}else e(m(f))}else e(u())}},t.dropAnimationFinished=function(){return function(e,t){var n=t();return"DROP_ANIMATING"!==n.phase?(console.error("cannot end drop that is no longer animating",n),void e(u())):n.drop&&n.drop.pending?void e(m(n.drop.pending.result)):(console.error("cannot end drop that has no pending state",n),void e(u()))}},t.lift=function(e,t,n,o){return function(r,i){var a=i();"DROP_ANIMATING"===a.phase&&(a.drop&&a.drop.pending?r(m(a.drop.pending.result)):(console.error("cannot flush drop animation if there is no pending"),r(u()))),r(h()),setTimeout((function(){"PREPARING"===i().phase&&(r(l(e)),setTimeout((function(){"COLLECTING_INITIAL_DIMENSIONS"===i().phase&&r(d(e,t,n,o))})))}))}}},function(e,t,n){"use strict";var o=n(112),r=n(155);t.__esModule=!0;var i=r(n(879));t.Provider=i.default,t.createProvider=i.createProvider;var a=o(n(540));t.connectAdvanced=a.default;var s=o(n(884));t.connect=s.default},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";var o=n(112);t.__esModule=!0,t.storeShape=t.subscriptionShape=void 0;var r=o(n(86)),i=r.default.shape({trySubscribe:r.default.func.isRequired,tryUnsubscribe:r.default.func.isRequired,notifyNestedSubs:r.default.func.isRequired,isSubscribed:r.default.func.isRequired});t.subscriptionShape=i;var a=r.default.shape({subscribe:r.default.func.isRequired,dispatch:r.default.func.isRequired,getState:r.default.func.isRequired});t.storeShape=a},function(e,t,n){"use strict";var o=n(155),r=n(112);t.__esModule=!0,t.default=function(e,t){var n,o;void 0===t&&(t={});var r=t,v=r.getDisplayName,y=void 0===v?function(e){return"ConnectAdvanced("+e+")"}:v,E=r.methodName,S=void 0===E?"connectAdvanced":E,w=r.renderCountProp,C=void 0===w?void 0:w,T=r.shouldHandleStateChanges,x=void 0===T||T,O=r.storeKey,k=void 0===O?"store":O,R=r.withRef,D=void 0!==R&&R,I=(0,c.default)(r,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),A=k+"Subscription",N=f++,F=((n={})[k]=m.storeShape,n[A]=m.subscriptionShape,n),M=((o={})[A]=m.subscriptionShape,o);return function(t){(0,d.default)((0,h.isValidElementType)(t),"You must pass a component to the function returned by "+S+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",o=y(n),r=(0,s.default)({},I,{getDisplayName:y,methodName:S,renderCountProp:C,shouldHandleStateChanges:x,storeKey:k,withRef:D,displayName:o,wrappedComponentName:n,WrappedComponent:t}),c=function(n){function c(e,t){var r;return(r=n.call(this,e,t)||this).version=N,r.state={},r.renderCount=0,r.store=e[k]||t[k],r.propsMode=Boolean(e[k]),r.setWrappedInstance=r.setWrappedInstance.bind((0,a.default)((0,a.default)(r))),(0,d.default)(r.store,'Could not find "'+k+'" in either the context or props of "'+o+'". Either wrap the root component in a <Provider>, or explicitly pass "'+k+'" as a prop to "'+o+'".'),r.initSelector(),r.initSubscription(),r}(0,i.default)(c,n);var l=c.prototype;return l.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[A]=t||this.context[A],e},l.componentDidMount=function(){x&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},l.componentWillReceiveProps=function(e){this.selector.run(e)},l.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},l.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=b,this.store=null,this.selector.run=b,this.selector.shouldComponentUpdate=!1},l.getWrappedInstance=function(){return(0,d.default)(D,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+S+"() call."),this.wrappedInstance},l.setWrappedInstance=function(e){this.wrappedInstance=e},l.initSelector=function(){var t=e(this.store.dispatch,r);this.selector=function(e,t){var n={run:function(o){try{var r=e(t.getState(),o);(r!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=r,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},l.initSubscription=function(){if(x){var e=(this.propsMode?this.props:this.context)[A];this.subscription=new p.default(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},l.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(_)):this.notifyNestedSubs()},l.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},l.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},l.addExtraProps=function(e){if(!(D||C||this.propsMode&&this.subscription))return e;var t=(0,s.default)({},e);return D&&(t.ref=this.setWrappedInstance),C&&(t[C]=this.renderCount++),this.propsMode&&this.subscription&&(t[A]=this.subscription),t},l.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return(0,u.createElement)(t,this.addExtraProps(e.props))},c}(u.Component);return g&&(c.prototype.UNSAFE_componentWillReceiveProps=c.prototype.componentWillReceiveProps,delete c.prototype.componentWillReceiveProps),c.WrappedComponent=t,c.displayName=o,c.childContextTypes=M,c.contextTypes=F,c.propTypes=F,(0,l.default)(c,t)}};var i=r(n(387)),a=r(n(880)),s=r(n(95)),c=r(n(303)),l=r(n(881)),d=r(n(542)),u=o(n(82)),h=n(541),p=r(n(883)),m=n(539),g=void 0!==u.default.forwardRef,f=0,_={};function b(){}},function(e,t,n){"use strict";e.exports=n(882)},function(e,t,n){"use strict";e.exports=function(e,t,n,o,r,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,r,i,a,s],d=0;(c=new Error(t.replace(/%s/g,(function(){return l[d++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";var o=n(112);t.__esModule=!0,t.wrapMapToPropsConstant=function(e){return function(t,n){var o=e(t,n);function r(){return o}return r.dependsOnOwnProps=!1,r}},t.getDependsOnOwnProps=r,t.wrapMapToPropsFunc=function(e,t){return function(t,n){n.displayName;var o=function(e,t){return o.dependsOnOwnProps?o.mapToProps(e,t):o.mapToProps(e)};return o.dependsOnOwnProps=!0,o.mapToProps=function(t,n){o.mapToProps=e,o.dependsOnOwnProps=r(e);var i=o(t,n);return"function"==typeof i&&(o.mapToProps=i,o.dependsOnOwnProps=r(i),i=o(t,n)),i},o}};o(n(544));function r(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}},function(e,t,n){"use strict";var o=n(112);t.__esModule=!0,t.default=function(e,t,n){(0,r.default)(e)||(0,i.default)(n+"() in "+t+" must return a plain object. Instead received "+e+".")};var r=o(n(887)),i=o(n(388))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=[],n=null,o=function(){for(var o=arguments.length,r=Array(o),i=0;i<o;i++)r[i]=arguments[i];return t=r,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return o.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(897);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=o,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(398)),i=n(318),a=(o=i)&&o.__esModule?o:{default:o};var s=[r.enter,r.tab];t.default=function(e){s.indexOf(e.keyCode)>=0&&(0,a.default)(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(237),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(e){return(0,i.default)(e.getBoundingClientRect()).center}},function(e,t,n){"use strict";(function(e){var o=n(83),r=n.n(o),i=n(89),a=n(7),s=n.n(a),c=n(105),l=n(90),d=n(144),u=n(166),h=n(124),p=n(128);function m(e,t){const n=Math.min(e.length,t.length);let o;for(let r=0;r<n;++r)if(e.charAt(r)!==t.charAt(r)){o=e.substr(0,r);break}void 0===o&&(o=e.substr(0,n));const r=o.indexOf(" ");return-1!==r&&(o=o.substr(0,r+1)),o.length>=2?o:""}class g extends s.a{constructor(){super(),r()(this,"_onListsUpdated",()=>{const e=this._getUpdatedTags();this._state.tags&&!Object(p.d)(this._state.tags,e)||this._setState({tags:e})}),this._state={tags:{}},this._getUpdatedTags=Object(c.throttle)(this._getUpdatedTags,500,{leading:!0,trailing:!0}),d.b.instance.on(d.a,this._onListsUpdated),i.a.register(e=>this._onDispatch(e))}getTags(){return this._state.tags}_setState(e){this._state=Object.assign(this._state,e),this.emit("change")}addListener(e){return this.on("change",e),{remove:()=>{this.removeListener("change",e)}}}getSortedTags(){const e=Object.keys(this._state.tags).sort(),t=e.map((t,n)=>{const o=0===n,r=n===e.length-1,i=o?"":m(t,e[n-1]),a=r?"":m(t,e[n+1]);return i.length>a.length?i:a});return e.map((e,n)=>{const o=u.a.instance.getListState(e);let r;o.hasUnreadCount&&(r=o);const i=e.substr(t[n].length,1);return{name:e,avatarLetter:i,badgeNotifState:r,selected:this._state.tags[e]}})}_onDispatch(e){switch(e.action){case"select_custom_room_tag":{const t=this._state.tags;if(t.hasOwnProperty(e.tag)){const n={};n[e.tag]=!t[e.tag];const o=Object.assign({},t,n);this._setState({tags:o})}}break;case"on_client_not_viable":case"on_logged_out":this._state={tags:{}},d.b.instance.off(d.a,this._onListsUpdated)}}_getUpdatedTags(){if(!l.b.getValue("feature_custom_tags"))return{};const e=Object.keys(d.b.instance.orderedLists).filter(e=>Object(h.d)(e)).sort(),t=this._state&&this._state.tags;return e.reduce((e,n)=>(e[n]=t&&t[n]||!1,e),{})}}void 0===e.singletonCustomRoomTagStore&&(e.singletonCustomRoomTagStore=new g),t.a=e.singletonCustomRoomTagStore}).call(this,n(6))},function(e,t,n){"use strict";function o(e,t){const n=t.getUserId();for(const t of Object.keys(e.getContent())){if(Object.keys(e.getContent()[t]["m.read"]||{}).includes(n))return!0}}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var o=n(88),r=n(274),i=n(209);function a(e){return(!e.sender||e.sender.userId!=o.a.get().credentials.userId)&&("m.room.member"!=e.getType()&&("m.room.third_party_invite"!=e.getType()&&("m.call.answer"!=e.getType()&&"m.call.hangup"!=e.getType()&&(("m.room.message"!=e.getType()||"m.notify"!=e.getContent().msgtype)&&("m.room.aliases"!=e.getType()&&"m.room.canonical_alias"!=e.getType()&&("m.room.server_acl"!=e.getType()&&Object(i.b)(e)))))))}function s(e){const t=o.a.get().credentials.userId,n=e.getEventReadUpTo(t);if(e.timeline.length&&e.timeline[e.timeline.length-1].sender&&e.timeline[e.timeline.length-1].sender.userId===t)return!1;for(let t=e.timeline.length-1;t>=0;--t){const o=e.timeline[t];if(o.getId()==n)return!1;if(!Object(r.a)(o)&&a(o))return!0}return!0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var o=n(401);const r="https://matrix.to";class i extends o.b{constructor(){super()}forEvent(e,t,n){return`${r}/#/${e}/${t}${this.encodeServerCandidates(n)}`}forRoom(e,t){return`${r}/#/${e}${this.encodeServerCandidates(t)}`}forUser(e){return`${r}/#/${e}`}forGroup(e){return`${r}/#/${e}`}forEntity(e){return`${r}/#/${e}`}isPermalinkHost(e){return"matrix.to"===e}encodeServerCandidates(e){return e&&0!==e.length?"?via="+e.map(e=>encodeURIComponent(e)).join("&via="):""}parsePermalink(e){if(!e||!e.startsWith(r))throw new Error("Does not appear to be a permalink");const t=e.substring((r+"/#/").length).split("/"),n=t[0];if("@"===n[0])return o.a.forUser(n);if("+"===n[0])return o.a.forGroup(n);if("#"===n[0]||"!"===n[0]){if(1===t.length){const[e,t=""]=n.split("?"),r=t.split(/&?via=/g).filter(e=>!!e);return o.a.forRoom(e,r)}const e=t.length>1?t.slice(1).join("/"):"",[r,i=""]=e.split("?"),a=i.split(/&?via=/g).filter(e=>!!e);return o.a.forEvent(n,r,a)}throw new Error("Unknown entity type in permalink")}}},function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var o=n(319);var r=function(e){this.j=[],this.T=e||null};r.prototype={defaultTransition:!1,on:function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)this.j.push([e[n],t]);return this}return this.j.push([e,t]),this},next:function(e){for(var t=0;t<this.j.length;t++){var n=this.j[t],o=n[0],r=n[1];if(this.test(e,o))return r}return this.defaultTransition},accepts:function(){return!!this.T},test:function(e,t){return e===t},emit:function(){return this.T}};var i=(0,o.inherits)(r,(function(e){this.j=[],this.T=e||null}),{test:function(e,t){return e===t||t instanceof RegExp&&t.test(e)}}),a=(0,o.inherits)(r,(function(e){this.j=[],this.T=e||null}),{jump:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new e(""));return n===this.defaultTransition?(n=new this.constructor(t),this.on(e,n)):t&&(n.T=t),n},test:function(e,t){return e instanceof t}});t.CharacterState=i,t.TokenState=a,t.stateify=function(e,t,n,o){for(var r=0,a=e.length,s=t,c=[],l=void 0;r<a&&(l=s.next(e[r]));)s=l,r++;if(r>=a)return[];for(;r<a-1;)l=new i(o),c.push(l),s.on(e[r],l),s=l,r++;return l=new i(n),c.push(l),s.on(e[a-1],l),c}},function(e,t,n){"use strict";t.__esModule=!0,t.createTokenClass=function(){return function(e){e&&(this.v=e)}}},function(e,t,n){var o=n(320);(t=e.exports=n(578)).version=n(979).version,t.load=o.load,t.html=o.html,t.text=o.text,t.xml=o.xml,t.contains=o.contains,t.merge=o.merge,t.parseHTML=o.parseHTML,t.root=o.root},function(e,t,n){"use strict";const o=n(407),{DOCUMENT_MODE:r}=n(193),i={element:1,text:3,cdata:4,comment:8},a={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"};class s{constructor(e){for(const t of Object.keys(e))this[t]=e[t]}get firstChild(){const e=this.children;return e&&e[0]||null}get lastChild(){const e=this.children;return e&&e[e.length-1]||null}get nodeType(){return i[this.type]||i.element}}Object.keys(a).forEach(e=>{const t=a[e];Object.defineProperty(s.prototype,e,{get:function(){return this[t]||null},set:function(e){return this[t]=e,e}})}),t.createDocument=function(){return new s({type:"root",name:"root",parent:null,prev:null,next:null,children:[],"x-mode":r.NO_QUIRKS})},t.createDocumentFragment=function(){return new s({type:"root",name:"root",parent:null,prev:null,next:null,children:[]})},t.createElement=function(e,t,n){const o=Object.create(null),r=Object.create(null),i=Object.create(null);for(let e=0;e<n.length;e++){const t=n[e].name;o[t]=n[e].value,r[t]=n[e].namespace,i[t]=n[e].prefix}return new s({type:"script"===e||"style"===e?e:"tag",name:e,namespace:t,attribs:o,"x-attribsNamespace":r,"x-attribsPrefix":i,children:[],parent:null,prev:null,next:null})},t.createCommentNode=function(e){return new s({type:"comment",data:e,parent:null,prev:null,next:null})};const c=function(e){return new s({type:"text",data:e,parent:null,prev:null,next:null})},l=t.appendChild=function(e,t){const n=e.children[e.children.length-1];n&&(n.next=t,t.prev=n),e.children.push(t),t.parent=e},d=t.insertBefore=function(e,t,n){const o=e.children.indexOf(n),r=n.prev;r&&(r.next=t,t.prev=r),n.prev=t,t.next=n,e.children.splice(o,0,t),t.parent=e};t.setTemplateContent=function(e,t){l(e,t)},t.getTemplateContent=function(e){return e.children[0]},t.setDocumentType=function(e,t,n,r){const i=o.serializeContent(t,n,r);let a=null;for(let t=0;t<e.children.length;t++)if("directive"===e.children[t].type&&"!doctype"===e.children[t].name){a=e.children[t];break}a?(a.data=i,a["x-name"]=t,a["x-publicId"]=n,a["x-systemId"]=r):l(e,new s({type:"directive",name:"!doctype",data:i,"x-name":t,"x-publicId":n,"x-systemId":r}))},t.setDocumentMode=function(e,t){e["x-mode"]=t},t.getDocumentMode=function(e){return e["x-mode"]},t.detachNode=function(e){if(e.parent){const t=e.parent.children.indexOf(e),n=e.prev,o=e.next;e.prev=null,e.next=null,n&&(n.next=o),o&&(o.prev=n),e.parent.children.splice(t,1),e.parent=null}},t.insertText=function(e,t){const n=e.children[e.children.length-1];n&&"text"===n.type?n.data+=t:l(e,c(t))},t.insertTextBefore=function(e,t,n){const o=e.children[e.children.indexOf(n)-1];o&&"text"===o.type?o.data+=t:d(e,c(t),n)},t.adoptAttributes=function(e,t){for(let n=0;n<t.length;n++){const o=t[n].name;void 0===e.attribs[o]&&(e.attribs[o]=t[n].value,e["x-attribsNamespace"][o]=t[n].namespace,e["x-attribsPrefix"][o]=t[n].prefix)}},t.getFirstChild=function(e){return e.children[0]},t.getChildNodes=function(e){return e.children},t.getParentNode=function(e){return e.parent},t.getAttrList=function(e){const t=[];for(const n in e.attribs)t.push({name:n,value:e.attribs[n],namespace:e["x-attribsNamespace"][n],prefix:e["x-attribsPrefix"][n]});return t},t.getTagName=function(e){return e.name},t.getNamespaceURI=function(e){return e.namespace},t.getTextNodeContent=function(e){return e.data},t.getCommentNodeContent=function(e){return e.data},t.getDocumentTypeNodeName=function(e){return e["x-name"]},t.getDocumentTypeNodePublicId=function(e){return e["x-publicId"]},t.getDocumentTypeNodeSystemId=function(e){return e["x-systemId"]},t.isTextNode=function(e){return"text"===e.type},t.isCommentNode=function(e){return"comment"===e.type},t.isDocumentTypeNode=function(e){return"directive"===e.type&&"!doctype"===e.name},t.isElementNode=function(e){return!!e.attribs},t.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t},t.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation},t.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)}},function(e,t,n){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(321)),c=n(938),l=n(940),d=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);var u=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function h(e,t){void 0===t&&(t={});for(var n=Array.isArray(e)||e.cheerio?e:[e],o="",r=0;r<n.length;r++)o+=p(n[r],t);return o}function p(e,t){switch(e.type){case s.Root:return h(e.children,t);case s.Directive:case s.Doctype:return"<"+e.data+">";case s.Comment:return function(e){return"\x3c!--"+e.data+"--\x3e"}(e);case s.CDATA:return function(e){return"<![CDATA["+e.children[0].data+"]]>"}(e);case s.Script:case s.Style:case s.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=l.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&m.has(e.parent.name)&&(t=o(o({},t),{xmlMode:!1})));!t.xmlMode&&g.has(e.name)&&(t=o(o({},t),{xmlMode:"foreign"}));var r="<"+e.name,i=function(e,t){if(e)return Object.keys(e).map((function(n){var o,r,i=null!==(o=e[n])&&void 0!==o?o:"";return"foreign"===t.xmlMode&&(n=null!==(r=l.attributeNames.get(n))&&void 0!==r?r:n),t.emptyAttrs||t.xmlMode||""!==i?n+'="'+(t.decodeEntities?c.encodeXML(i):i.replace(/"/g,"""))+'"':n})).join(" ")}(e.attribs,t);i&&(r+=" "+i);0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&u.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=h(e.children,t)),!t.xmlMode&&u.has(e.name)||(r+="</"+e.name+">"));return r}(e,t);case s.Text:return function(e,t){var n=e.data||"";!t.decodeEntities||e.parent&&d.has(e.parent.name)||(n=c.encodeXML(n));return n}(e,t)}}t.default=h;var m=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),g=new Set(["svg","math"])},function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeHTML=t.decodeHTMLStrict=t.decodeXML=void 0;var r=o(n(408)),i=o(n(560)),a=o(n(409)),s=o(n(561)),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function l(e){var t=u(e);return function(e){return String(e).replace(c,t)}}t.decodeXML=l(a.default),t.decodeHTMLStrict=l(r.default);var d=function(e,t){return e<t?1:-1};function u(e){return function(t){if("#"===t.charAt(1)){var n=t.charAt(2);return"X"===n||"x"===n?s.default(parseInt(t.substr(3),16)):s.default(parseInt(t.substr(2),10))}return e[t.slice(1,-1)]||t}}t.decodeHTML=function(){for(var e=Object.keys(i.default).sort(d),t=Object.keys(r.default).sort(d),n=0,o=0;n<t.length;n++)e[o]===t[n]?(t[n]+=";?",o++):t[n]+=";";var a=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=u(r.default);function c(e){return";"!==e.substr(-1)&&(e+=";"),s(e)}return function(e){return String(e).replace(a,c)}}()},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(939)),i=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};t.default=function(e){return e>=55296&&e<=57343||e>1114111?"<22>":(e in r.default&&(e=r.default[e]),i(e))}},function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=void 0;var r=d(o(n(409)).default),i=u(r);t.encodeXML=f(r);var a,s,c=d(o(n(408)).default),l=u(c);function d(e){return Object.keys(e).sort().reduce((function(t,n){return t[e[n]]="&"+n+";",t}),{})}function u(e){for(var t=[],n=[],o=0,r=Object.keys(e);o<r.length;o++){var i=r[o];1===i.length?t.push("\\"+i):n.push(i)}t.sort();for(var a=0;a<t.length-1;a++){for(var s=a;s<t.length-1&&t[s].charCodeAt(1)+1===t[s+1].charCodeAt(1);)s+=1;var c=1+s-a;c<3||t.splice(a,c,t[a]+"-"+t[s])}return n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}t.encodeHTML=(a=c,s=l,function(e){return e.replace(s,(function(e){return a[e]})).replace(h,m)}),t.encodeNonAsciiHTML=f(c);var h=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,p=null!=String.prototype.codePointAt?function(e){return e.codePointAt(0)}:function(e){return 1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536};function m(e){return"&#x"+(e.length>1?p(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}var g=new RegExp(i.source+"|"+h.source,"g");function f(e){return function(t){return t.replace(g,(function(t){return e[t]||m(t)}))}}t.escape=function(e){return e.replace(g,m)},t.escapeUTF8=function(e){return e.replace(i,m)}},function(e,t,n){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},r=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.select=t.filter=void 0;var c=n(564),l=n(942),d=a(n(242)),u=n(956),h=n(569),p={type:"pseudo",name:"scope",data:null},m=o({},p),g={type:"universal",namespace:null};function f(e,t,n){if(0===t.length)return[];var o=u.groupSelectors(e),r=o[0],i=o[1],a=[];r.length&&a.push(S(t,r,n));for(var l=0,d=i;l<d.length;l++){var h=d[l];if(h.some(c.isTraversal)){var p=u.getDocumentRoot(t[0]),g=s(h,[m]);a.push(y(p,g,n,!0,t))}else a.push(y(t,h,n,!1))}return 1===a.length?a[0]:a.reduce((function(e,t){return s(e,t)}),[])}t.filter=function(e,t,n){return void 0===n&&(n={}),d.uniqueSort(f(c.parse(e,n),t,n))},t.select=function(e,t,n){void 0===n&&(n={});var o=u.groupSelectors(c.parse(e,n)),r=o[0],i=o[1].map((function(e){return y(t,e,n,!0)}));return r.length&&i.push(E(t,r,n,1/0)),1===i.length?i[0]:d.uniqueSort(i.reduce((function(e,t){return s(e,t)})))};var _=new Set(["descendant","adjacent"]);function b(e){return e!==p&&"pseudo"===e.type&&("scope"===e.name||Array.isArray(e.data)&&e.data.some((function(e){return e.some(b)})))}function v(e,t,n){return n&&e.some(b)?o(o({},t),{context:n}):t}function y(e,t,n,o,r){var i=t.findIndex(h.isFilter),a=t.slice(0,i),s=t[i],l=h.getLimit(s.name,s.data);if(0===l)return[];var u=v(a,n,r),m=(0!==a.length||Array.isArray(e)?0===a.length||1===a.length&&a[0]===p?Array.isArray(e)?e:[e]:o||a.some(c.isTraversal)?E(e,[a],u,l):S(e,[a],u):d.getChildren(e).filter(d.isTag)).slice(0,l),b=function(e,t,n,o){var r="string"==typeof n?parseInt(n,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(r)&&Math.abs(r)<t.length?[r<0?t[t.length+r]:t[r]]:[];case"gt":return isFinite(r)?t.slice(r+1):[];case"even":return t.filter((function(e,t){return t%2==0}));case"odd":return t.filter((function(e,t){return t%2==1}));case"not":var i=new Set(f(n,t,o));return t.filter((function(e){return!i.has(e)}))}}(s.name,m,s.data,n);if(0===b.length||t.length===i+1)return b;var w=t.slice(i+1),C=w.some(c.isTraversal),T=v(w,n,r);return C&&(_.has(w[0].type)&&w.unshift(g),w.unshift(p)),w.some(h.isFilter)?y(b,w,n,!1,r):C?E(b,[w],T,1/0):S(b,[w],T)}function E(e,t,n,o){if(0===o)return[];var r=l._compileToken(t,n,e),i=l.prepareContext(e,d,r.shouldTestNextSiblings);return d.find((function(e){return d.isTag(e)&&r(e)}),i,!0,o)}function S(e,t,n){var o=l._compileToken(t,n);return e.filter(o)}},function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.parse=void 0,r(n(565),t);var a=n(565);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return i(a).default}});var s=n(941);Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i(s).default}})},function(e,t,n){"use strict";var o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o};Object.defineProperty(t,"__esModule",{value:!0}),t.isTraversal=void 0;var r=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,i=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,a=/^\s*(?:(\*|[-\w]*)\|)?((?:\\.|[\w\u00b0-\uFFFF-])+)\s*(?:(\S?)=\s*(?:(['"])((?:[^\\]|\\[^])*?)\4|(#?(?:\\.|[\w\u00b0-\uFFFF-])*)|)|)\s*([iI])?\]/,s={undefined:"exists","":"equals","~":"element","^":"start",$:"end","*":"any","!":"not","|":"hyphen"},c={">":"child","<":"parent","~":"sibling","+":"adjacent"},l={"#":["id","equals"],".":["class","element"]},d=new Set(["has","not","matches","is","host","host-context"]),u=new Set(o(["descendant"],Object.keys(c).map((function(e){return c[e]}))));function h(e){return u.has(e.type)}t.isTraversal=h;var p=new Set(["contains","icontains"]),m=new Set(['"',"'"]);function g(e,t,n){var o=parseInt(t,16)-65536;return o!=o||n?t:o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320)}function f(e){return e.replace(i,g)}function _(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function b(e,t){if(e.length>0&&0===t.length)throw new Error("Empty sub-selector");e.push(t)}t.default=function(e,t){var n=[],o=function e(t,n,o,i){var u,g;void 0===o&&(o={});var v=[],y=!1;function E(e){var t=n.slice(i+e).match(r);if(!t)throw new Error("Expected name, found "+n.slice(i));var o=t[0];return i+=e+o.length,f(o)}function S(e){for(;_(n.charAt(i+e));)e++;i+=e}function w(e){for(var t=0;"\\"===n.charAt(--e);)t++;return 1==(1&t)}function C(){if(v.length>0&&h(v[v.length-1]))throw new Error("Did not expect successive traversals.")}S(0);for(;""!==n;){var T=n.charAt(i);if(_(T))y=!0,S(1);else if(T in c)C(),v.push({type:c[T]}),y=!1,S(1);else if(","===T){if(0===v.length)throw new Error("Empty sub-selector");t.push(v),v=[],y=!1,S(1)}else if(y&&(C(),v.push({type:"descendant"}),y=!1),T in l){var x=l[T],O=x[0],k=x[1];v.push({type:"attribute",name:O,action:k,value:E(1),ignoreCase:!1,namespace:null})}else if("["===T){var R=n.slice(i+1).match(a);if(!R)throw new Error("Malformed attribute selector: "+n.slice(i));var D=R[0],I=R[1],A=void 0===I?null:I,N=R[2],F=R[3],M=R[5],P=void 0===M?"":M,L=R[6],j=void 0===L?P:L,U=R[7];i+=D.length+1;var B=f(N);(null!==(u=o.lowerCaseAttributeNames)&&void 0!==u?u:!o.xmlMode)&&(B=B.toLowerCase()),v.push({type:"attribute",name:B,action:s[F],value:f(j),namespace:A,ignoreCase:!!U})}else if(":"===T){if(":"===n.charAt(i+1)){v.push({type:"pseudo-element",name:E(2).toLowerCase()});continue}var q=E(1).toLowerCase(),G=null;if("("===n.charAt(i))if(d.has(q)){if(m.has(n.charAt(i+1)))throw new Error("Pseudo-selector "+q+" cannot be quoted");if(i=e(G=[],n,o,i+1),")"!==n.charAt(i))throw new Error("Missing closing parenthesis in :"+q+" ("+n+")");i+=1}else{for(var V=i+=1,H=1;H>0&&i<n.length;i++)"("!==n.charAt(i)||w(i)?")"!==n.charAt(i)||w(i)||H--:H++;if(H)throw new Error("Parenthesis not matched");if(G=n.slice(V,i-1),p.has(q)){var z=G.charAt(0);z===G.slice(-1)&&m.has(z)&&(G=G.slice(1,-1)),G=f(G)}}v.push({type:"pseudo",name:q,data:G})}else{A=null;var K=void 0;if("*"===T)i+=1,K="*";else{if(!r.test(n.slice(i)))return v.length&&"descendant"===v[v.length-1].type&&v.pop(),b(t,v),i;K=E(0)}"|"===n.charAt(i)&&(A=K,"*"===n.charAt(i+1)?(K="*",i+=2):K=E(1)),"*"===K?v.push({type:"universal",namespace:A}):((null!==(g=o.lowerCaseTags)&&void 0!==g?g:!o.xmlMode)&&(K=K.toLowerCase()),v.push({type:"tag",name:K,namespace:A}))}}return b(t,v),i}(n,""+e,t,0);if(o<e.length)throw new Error("Unmatched selector: "+e.slice(o));return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var o=n(243);function r(e,t,n,i){for(var a=[],s=0,c=t;s<c.length;s++){var l=c[s];if(e(l)&&(a.push(l),--i<=0))break;if(n&&o.hasChildren(l)&&l.children.length>0){var d=r(e,l.children,n,i);if(a.push.apply(a,d),(i-=d.length)<=0)break}}return a}t.filter=function(e,t,n,o){return void 0===n&&(n=!0),void 0===o&&(o=1/0),Array.isArray(t)||(t=[t]),r(e,t,n,o)},t.find=r,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,n,r){void 0===r&&(r=!0);for(var i=null,a=0;a<n.length&&!i;a++){var s=n[a];o.isTag(s)&&(t(s)?i=s:r&&s.children.length>0&&(i=e(t,s.children)))}return i},t.existsOne=function e(t,n){return n.some((function(n){return o.isTag(n)&&(t(n)||n.children.length>0&&e(t,n.children))}))},t.findAll=function(e,t){for(var n,r,i=[],a=t.filter(o.isTag);r=a.shift();){var s=null===(n=r.children)||void 0===n?void 0:n.filter(o.isTag);s&&s.length>0&&a.unshift.apply(a,s),e(r)&&i.push(r)}return i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeRules=void 0;var o=n(210),r=/[-[\]{}()*+?.,\\^$|#\s]/g;function i(e){return e.replace(r,"\\$&")}t.attributeRules={equals:function(e,t,n){var o=n.adapter,r=t.name,i=t.value;return t.ignoreCase?(i=i.toLowerCase(),function(t){var n;return(null===(n=o.getAttributeValue(t,r))||void 0===n?void 0:n.toLowerCase())===i&&e(t)}):function(t){return o.getAttributeValue(t,r)===i&&e(t)}},hyphen:function(e,t,n){var o=n.adapter,r=t.name,i=t.value,a=i.length;return t.ignoreCase?(i=i.toLowerCase(),function(t){var n=o.getAttributeValue(t,r);return null!=n&&(n.length===a||"-"===n.charAt(a))&&n.substr(0,a).toLowerCase()===i&&e(t)}):function(t){var n=o.getAttributeValue(t,r);return null!=n&&n.substr(0,a)===i&&(n.length===a||"-"===n.charAt(a))&&e(t)}},element:function(e,t,n){var r=t.name,a=t.value,s=t.ignoreCase,c=n.adapter;if(/\s/.test(a))return o.falseFunc;var l=new RegExp("(?:^|\\s)"+i(a)+"(?:$|\\s)",s?"i":"");return function(t){var n=c.getAttributeValue(t,r);return null!=n&&l.test(n)&&e(t)}},exists:function(e,t,n){var o=t.name,r=n.adapter;return function(t){return r.hasAttrib(t,o)&&e(t)}},start:function(e,t,n){var r=n.adapter,i=t.name,a=t.value,s=a.length;return 0===s?o.falseFunc:t.ignoreCase?(a=a.toLowerCase(),function(t){var n;return(null===(n=r.getAttributeValue(t,i))||void 0===n?void 0:n.substr(0,s).toLowerCase())===a&&e(t)}):function(t){var n;return!!(null===(n=r.getAttributeValue(t,i))||void 0===n?void 0:n.startsWith(a))&&e(t)}},end:function(e,t,n){var r=n.adapter,i=t.name,a=t.value,s=-a.length;return 0===s?o.falseFunc:t.ignoreCase?(a=a.toLowerCase(),function(t){var n;return(null===(n=r.getAttributeValue(t,i))||void 0===n?void 0:n.substr(s).toLowerCase())===a&&e(t)}):function(t){var n;return!!(null===(n=r.getAttributeValue(t,i))||void 0===n?void 0:n.endsWith(a))&&e(t)}},any:function(e,t,n){var r=n.adapter,a=t.name,s=t.value;if(""===s)return o.falseFunc;if(t.ignoreCase){var c=new RegExp(i(s),"i");return function(t){var n=r.getAttributeValue(t,a);return null!=n&&c.test(n)&&e(t)}}return function(t){var n;return!!(null===(n=r.getAttributeValue(t,a))||void 0===n?void 0:n.includes(s))&&e(t)}},not:function(e,t,n){var o=n.adapter,r=t.name,i=t.value;return""===i?function(t){return!!o.getAttributeValue(t,r)&&e(t)}:t.ignoreCase?(i=i.toLowerCase(),function(t){var n=o.getAttributeValue(t,r);return null!=n&&n.toLocaleLowerCase()!==i&&e(t)}):function(t){return o.getAttributeValue(t,r)!==i&&e(t)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compilePseudoSelector=t.pseudos=t.filters=void 0;var o=n(210),r=n(951);Object.defineProperty(t,"filters",{enumerable:!0,get:function(){return r.filters}});var i=n(955);Object.defineProperty(t,"pseudos",{enumerable:!0,get:function(){return i.pseudos}});var a=n(411),s=/^(?:(?:nth|last|first|only)-(?:child|of-type)|root|empty|(?:en|dis)abled|checked|not)$/;t.compilePseudoSelector=function(e,t,n,c,l){var d=t.name,u=t.data;if(n.strict&&!s.test(d))throw new Error(":"+d+" isn't part of CSS3");if(Array.isArray(u))return a.subselects[d](e,u,n,c,l);if(d in r.filters)return r.filters[d](e,u,n,c);if(d in i.pseudos){var h=i.pseudos[d];return i.verifyPseudoArgs(h,d,u),h===o.falseFunc?o.falseFunc:e===o.trueFunc?function(e){return h(e,n,u)}:function(t){return h(t,n,u)&&e(t)}}throw new Error("unmatched pseudo-class :"+d)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLimit=t.isFilter=t.filterNames=void 0,t.filterNames=new Set(["first","last","eq","gt","nth","lt","even","odd"]),t.isFilter=function e(n){return"pseudo"===n.type&&(!!t.filterNames.has(n.name)||!("not"!==n.name||!Array.isArray(n.data))&&n.data.some((function(t){return t.some(e)})))},t.getLimit=function(e,t){var n=null!=t?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(n)?n>=0?n+1:1/0:0;case"lt":return isFinite(n)?n>=0?n:1/0:0;case"gt":return isFinite(n)?1/0:0;default:return 1/0}}},function(e,t,n){"use strict";const o=n(171),r=n(323),i=n(571);e.exports=class extends o{constructor(e){super(e),this.tokenizer=e,this.posTracker=o.install(e.preprocessor,i),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;const e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){const n={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(n){t._createDoctypeToken.call(this,n),this.currentToken.location=e.ctLoc},_createCharacterToken(n,o){t._createCharacterToken.call(this,n,o),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(n){t._createAttr.call(this,n),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(n){t._leaveAttrName.call(this,n),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(n){t._leaveAttrValue.call(this,n),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){const n=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=n.startLine,this.currentCharacterToken.location.endCol=n.startCol,this.currentCharacterToken.location.endOffset=n.startOffset),this.currentToken.type===r.EOF_TOKEN?(n.endLine=n.startLine,n.endCol=n.startCol,n.endOffset=n.startOffset):(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col+1,n.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){const n=this.currentCharacterToken&&this.currentCharacterToken.location;n&&-1===n.endOffset&&(n.endLine=e.posTracker.line,n.endCol=e.posTracker.col,n.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(r.MODE).forEach(o=>{const i=r.MODE[o];n[i]=function(n){e.ctLoc=e._getCurrentLocation(),t[i].call(this,n)}}),n}}},function(e,t,n){"use strict";const o=n(171);e.exports=class extends o{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){const n=this.pos+1,o=this.html[n];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=n),("\n"===o||"\r"===o&&"\n"!==this.html[n+1])&&(e.isEol=!0),e.col=n-e.lineStartPos+1,e.offset=e.droppedBufferSize+n,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){const n=this.pos;t.dropParsedChunk.call(this);const o=n-this.pos;e.lineStartPos-=o,e.droppedBufferSize+=o,e.offset=e.droppedBufferSize+this.pos}}}}},function(e,t,n){"use strict";const{DOCUMENT_MODE:o}=n(193);t.createDocument=function(){return{nodeName:"#document",mode:o.NO_QUIRKS,childNodes:[]}},t.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},t.createElement=function(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},t.createCommentNode=function(e){return{nodeName:"#comment",data:e,parentNode:null}};const r=function(e){return{nodeName:"#text",value:e,parentNode:null}},i=t.appendChild=function(e,t){e.childNodes.push(t),t.parentNode=e},a=t.insertBefore=function(e,t,n){const o=e.childNodes.indexOf(n);e.childNodes.splice(o,0,t),t.parentNode=e};t.setTemplateContent=function(e,t){e.content=t},t.getTemplateContent=function(e){return e.content},t.setDocumentType=function(e,t,n,o){let r=null;for(let t=0;t<e.childNodes.length;t++)if("#documentType"===e.childNodes[t].nodeName){r=e.childNodes[t];break}r?(r.name=t,r.publicId=n,r.systemId=o):i(e,{nodeName:"#documentType",name:t,publicId:n,systemId:o})},t.setDocumentMode=function(e,t){e.mode=t},t.getDocumentMode=function(e){return e.mode},t.detachNode=function(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},t.insertText=function(e,t){if(e.childNodes.length){const n=e.childNodes[e.childNodes.length-1];if("#text"===n.nodeName)return void(n.value+=t)}i(e,r(t))},t.insertTextBefore=function(e,t,n){const o=e.childNodes[e.childNodes.indexOf(n)-1];o&&"#text"===o.nodeName?o.value+=t:a(e,r(t),n)},t.adoptAttributes=function(e,t){const n=[];for(let t=0;t<e.attrs.length;t++)n.push(e.attrs[t].name);for(let o=0;o<t.length;o++)-1===n.indexOf(t[o].name)&&e.attrs.push(t[o])},t.getFirstChild=function(e){return e.childNodes[0]},t.getChildNodes=function(e){return e.childNodes},t.getParentNode=function(e){return e.parentNode},t.getAttrList=function(e){return e.attrs},t.getTagName=function(e){return e.tagName},t.getNamespaceURI=function(e){return e.namespaceURI},t.getTextNodeContent=function(e){return e.value},t.getCommentNodeContent=function(e){return e.data},t.getDocumentTypeNodeName=function(e){return e.name},t.getDocumentTypeNodePublicId=function(e){return e.publicId},t.getDocumentTypeNodeSystemId=function(e){return e.systemId},t.isTextNode=function(e){return"#text"===e.nodeName},t.isCommentNode=function(e){return"#comment"===e.nodeName},t.isDocumentTypeNode=function(e){return"#documentType"===e.nodeName},t.isElementNode=function(e){return!!e.tagName},t.setNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=t},t.getNodeSourceCodeLocation=function(e){return e.sourceCodeLocation},t.updateNodeSourceCodeLocation=function(e,t){e.sourceCodeLocation=Object.assign(e.sourceCodeLocation,t)}},function(e,t,n){"use strict";e.exports=function(e,t){return[e,t=t||Object.create(null)].reduce((e,t)=>(Object.keys(t).forEach(n=>{e[n]=t[n]}),e),Object.create(null))}},function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var r=o(n(575)),i=new Set(["input","option","optgroup","select","button","datalist","textarea"]),a=new Set(["p"]),s={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:a,h1:a,h2:a,h3:a,h4:a,h5:a,h6:a,select:i,input:i,output:i,button:i,datalist:i,textarea:i,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:a,article:a,aside:a,blockquote:a,details:a,div:a,dl:a,fieldset:a,figcaption:a,figure:a,footer:a,form:a,header:a,hr:a,main:a,nav:a,ol:a,pre:a,section:a,table:a,ul:a,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},c=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),l=new Set(["math","svg"]),d=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),u=/\s|\//,h=function(){function e(e,t){var n,o,i,a,s;void 0===t&&(t={}),this.startIndex=0,this.endIndex=null,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.options=t,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!==(o=t.lowerCaseAttributeNames)&&void 0!==o?o:!t.xmlMode,this.tokenizer=new(null!==(i=t.Tokenizer)&&void 0!==i?i:r.default)(this.options,this),null===(s=(a=this.cbs).onparserinit)||void 0===s||s.call(a,this)}return e.prototype.updatePosition=function(e){null===this.endIndex?this.tokenizer.sectionStart<=e?this.startIndex=0:this.startIndex=this.tokenizer.sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this.tokenizer.getAbsoluteIndex()},e.prototype.ontext=function(e){var t,n;this.updatePosition(1),this.endIndex--,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,e)},e.prototype.onopentagname=function(e){var t,n;if(this.lowerCaseTagNames&&(e=e.toLowerCase()),this.tagname=e,!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(s,e))for(var o=void 0;this.stack.length>0&&s[e].has(o=this.stack[this.stack.length-1]);)this.onclosetag(o);!this.options.xmlMode&&c.has(e)||(this.stack.push(e),l.has(e)?this.foreignContext.push(!0):d.has(e)&&this.foreignContext.push(!1)),null===(n=(t=this.cbs).onopentagname)||void 0===n||n.call(t,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.onopentagend=function(){var e,t;this.updatePosition(1),this.attribs&&(null===(t=(e=this.cbs).onopentag)||void 0===t||t.call(e,this.tagname,this.attribs),this.attribs=null),!this.options.xmlMode&&this.cbs.onclosetag&&c.has(this.tagname)&&this.cbs.onclosetag(this.tagname),this.tagname=""},e.prototype.onclosetag=function(e){if(this.updatePosition(1),this.lowerCaseTagNames&&(e=e.toLowerCase()),(l.has(e)||d.has(e))&&this.foreignContext.pop(),!this.stack.length||!this.options.xmlMode&&c.has(e))this.options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this.closeCurrentTag());else{var t=this.stack.lastIndexOf(e);if(-1!==t)if(this.cbs.onclosetag)for(t=this.stack.length-t;t--;)this.cbs.onclosetag(this.stack.pop());else this.stack.length=t;else"p"!==e||this.options.xmlMode||(this.onopentagname(e),this.closeCurrentTag())}},e.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?this.closeCurrentTag():this.onopentagend()},e.prototype.closeCurrentTag=function(){var e,t,n=this.tagname;this.onopentagend(),this.stack[this.stack.length-1]===n&&(null===(t=(e=this.cbs).onclosetag)||void 0===t||t.call(e,n),this.stack.pop())},e.prototype.onattribname=function(e){this.lowerCaseAttributeNames&&(e=e.toLowerCase()),this.attribname=e},e.prototype.onattribdata=function(e){this.attribvalue+=e},e.prototype.onattribend=function(e){var t,n;null===(n=(t=this.cbs).onattribute)||void 0===n||n.call(t,this.attribname,this.attribvalue,e),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(u),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("!"+t,"!"+e)}},e.prototype.onprocessinginstruction=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("?"+t,"?"+e)}},e.prototype.oncomment=function(e){var t,n,o,r;this.updatePosition(4),null===(n=(t=this.cbs).oncomment)||void 0===n||n.call(t,e),null===(r=(o=this.cbs).oncommentend)||void 0===r||r.call(o)},e.prototype.oncdata=function(e){var t,n,o,r,i,a;this.updatePosition(1),this.options.xmlMode||this.options.recognizeCDATA?(null===(n=(t=this.cbs).oncdatastart)||void 0===n||n.call(t),null===(r=(o=this.cbs).ontext)||void 0===r||r.call(o,e),null===(a=(i=this.cbs).oncdataend)||void 0===a||a.call(i)):this.oncomment("[CDATA["+e+"]]")},e.prototype.onerror=function(e){var t,n;null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,e)},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag)for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n]));null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,n,o;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],null===(o=(n=this.cbs).onparserinit)||void 0===o||o.call(n,this)},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.write=function(e){this.tokenizer.write(e)},e.prototype.end=function(e){this.tokenizer.end(e)},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){this.tokenizer.resume()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();t.Parser=h},function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(969)),i=o(n(971)),a=o(n(972)),s=o(n(973));function c(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function l(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}function d(e,t,n){var o=e.toLowerCase();return e===o?function(e,r){r===o?e._state=t:(e._state=n,e._index--)}:function(r,i){i===o||i===e?r._state=t:(r._state=n,r._index--)}}function u(e,t){var n=e.toLowerCase();return function(o,r){r===n||r===e?o._state=t:(o._state=3,o._index--)}}var h=d("C",24,16),p=d("D",25,16),m=d("A",26,16),g=d("T",27,16),f=d("A",28,16),_=u("R",35),b=u("I",36),v=u("P",37),y=u("T",38),E=d("R",40,1),S=d("I",41,1),w=d("P",42,1),C=d("T",43,1),T=u("Y",45),x=u("L",46),O=u("E",47),k=d("Y",49,1),R=d("L",50,1),D=d("E",51,1),I=u("I",54),A=u("T",55),N=u("L",56),F=u("E",57),M=d("I",58,1),P=d("T",59,1),L=d("L",60,1),j=d("E",61,1),U=d("#",63,64),B=d("X",66,65),q=function(){function e(e,t){var n;this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1,this.cbs=t,this.xmlMode=!!(null==e?void 0:e.xmlMode),this.decodeEntities=null===(n=null==e?void 0:e.decodeEntities)||void 0===n||n}return e.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.special=1,this.running=!0,this.ended=!1},e.prototype.write=function(e){this.ended&&this.cbs.onerror(Error(".write() after done!")),this.buffer+=e,this.parse()},e.prototype.end=function(e){this.ended&&this.cbs.onerror(Error(".end() after done!")),e&&this.write(e),this.ended=!0,this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this._index<this.buffer.length&&this.parse(),this.ended&&this.finish()},e.prototype.getAbsoluteIndex=function(){return this.bufferOffset+this._index},e.prototype.stateText=function(e){"<"===e?(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):!this.decodeEntities||"&"!==e||1!==this.special&&4!==this.special||(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},e.prototype.stateBeforeTagName=function(e){"/"===e?this._state=5:"<"===e?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):">"===e||1!==this.special||c(e)?this._state=1:"!"===e?(this._state=15,this.sectionStart=this._index+1):"?"===e?(this._state=17,this.sectionStart=this._index+1):l(e)?(this._state=this.xmlMode||"s"!==e&&"S"!==e?this.xmlMode||"t"!==e&&"T"!==e?3:52:32,this.sectionStart=this._index):this._state=1},e.prototype.stateInTagName=function(e){("/"===e||">"===e||c(e))&&(this.emitToken("onopentagname"),this._state=8,this._index--)},e.prototype.stateBeforeClosingTagName=function(e){c(e)||(">"===e?this._state=1:1!==this.special?"s"===e||"S"===e?this._state=33:"t"===e||"T"===e?this._state=53:(this._state=1,this._index--):l(e)?(this._state=6,this.sectionStart=this._index):(this._state=20,this.sectionStart=this._index))},e.prototype.stateInClosingTagName=function(e){(">"===e||c(e))&&(this.emitToken("onclosetag"),this._state=7,this._index--)},e.prototype.stateAfterClosingTagName=function(e){">"===e&&(this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeAttributeName=function(e){">"===e?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):"/"===e?this._state=4:c(e)||(this._state=9,this.sectionStart=this._index)},e.prototype.stateInSelfClosingTag=function(e){">"===e?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):c(e)||(this._state=8,this._index--)},e.prototype.stateInAttributeName=function(e){("="===e||"/"===e||">"===e||c(e))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},e.prototype.stateAfterAttributeName=function(e){"="===e?this._state=11:"/"===e||">"===e?(this.cbs.onattribend(void 0),this._state=8,this._index--):c(e)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},e.prototype.stateBeforeAttributeValue=function(e){'"'===e?(this._state=12,this.sectionStart=this._index+1):"'"===e?(this._state=13,this.sectionStart=this._index+1):c(e)||(this._state=14,this.sectionStart=this._index,this._index--)},e.prototype.handleInAttributeValue=function(e,t){e===t?(this.emitToken("onattribdata"),this.cbs.onattribend(t),this._state=8):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,'"')},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,"'")},e.prototype.stateInAttributeValueNoQuotes=function(e){c(e)||">"===e?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&"&"===e&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},e.prototype.stateBeforeDeclaration=function(e){this._state="["===e?23:"-"===e?18:16},e.prototype.stateInDeclaration=function(e){">"===e&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateInProcessingInstruction=function(e){">"===e&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeComment=function(e){"-"===e?(this._state=19,this.sectionStart=this._index+1):this._state=16},e.prototype.stateInComment=function(e){"-"===e&&(this._state=21)},e.prototype.stateInSpecialComment=function(e){">"===e&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateAfterComment1=function(e){this._state="-"===e?22:19},e.prototype.stateAfterComment2=function(e){">"===e?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"-"!==e&&(this._state=19)},e.prototype.stateBeforeCdata6=function(e){"["===e?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},e.prototype.stateInCdata=function(e){"]"===e&&(this._state=30)},e.prototype.stateAfterCdata1=function(e){this._state="]"===e?31:29},e.prototype.stateAfterCdata2=function(e){">"===e?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"]"!==e&&(this._state=29)},e.prototype.stateBeforeSpecialS=function(e){"c"===e||"C"===e?this._state=34:"t"===e||"T"===e?this._state=44:(this._state=3,this._index--)},e.prototype.stateBeforeSpecialSEnd=function(e){2!==this.special||"c"!==e&&"C"!==e?3!==this.special||"t"!==e&&"T"!==e?this._state=1:this._state=48:this._state=39},e.prototype.stateBeforeSpecialLast=function(e,t){("/"===e||">"===e||c(e))&&(this.special=t),this._state=3,this._index--},e.prototype.stateAfterSpecialLast=function(e,t){">"===e||c(e)?(this.special=1,this._state=6,this.sectionStart=this._index-t,this._index--):this._state=1},e.prototype.parseFixedEntity=function(e){if(void 0===e&&(e=this.xmlMode?s.default:i.default),this.sectionStart+1<this._index){var t=this.buffer.substring(this.sectionStart+1,this._index);Object.prototype.hasOwnProperty.call(e,t)&&(this.emitPartial(e[t]),this.sectionStart=this._index+1)}},e.prototype.parseLegacyEntity=function(){for(var e=this.sectionStart+1,t=Math.min(this._index-e,6);t>=2;){var n=this.buffer.substr(e,t);if(Object.prototype.hasOwnProperty.call(a.default,n))return this.emitPartial(a.default[n]),void(this.sectionStart+=t+1);t--}},e.prototype.stateInNamedEntity=function(e){";"===e?(this.parseFixedEntity(),1===this.baseState&&this.sectionStart+1<this._index&&!this.xmlMode&&this.parseLegacyEntity(),this._state=this.baseState):(e<"0"||e>"9")&&!l(e)&&(this.xmlMode||this.sectionStart+1===this._index||(1!==this.baseState?"="!==e&&this.parseFixedEntity(a.default):this.parseLegacyEntity()),this._state=this.baseState,this._index--)},e.prototype.decodeNumericEntity=function(e,t,n){var o=this.sectionStart+e;if(o!==this._index){var i=this.buffer.substring(o,this._index),a=parseInt(i,t);this.emitPartial(r.default(a)),this.sectionStart=n?this._index+1:this._index}this._state=this.baseState},e.prototype.stateInNumericEntity=function(e){";"===e?this.decodeNumericEntity(2,10,!0):(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(2,10,!1),this._index--)},e.prototype.stateInHexEntity=function(e){";"===e?this.decodeNumericEntity(3,16,!0):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this.xmlMode?this._state=this.baseState:this.decodeNumericEntity(3,16,!1),this._index--)},e.prototype.cleanup=function(){this.sectionStart<0?(this.buffer="",this.bufferOffset+=this._index,this._index=0):this.running&&(1===this._state?(this.sectionStart!==this._index&&this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.buffer="",this.bufferOffset+=this._index,this._index=0):this.sectionStart===this._index?(this.buffer="",this.bufferOffset+=this._index,this._index=0):(this.buffer=this.buffer.substr(this.sectionStart),this._index-=this.sectionStart,this.bufferOffset+=this.sectionStart),this.sectionStart=0)},e.prototype.parse=function(){for(;this._index<this.buffer.length&&this.running;){var e=this.buffer.charAt(this._index);1===this._state?this.stateText(e):12===this._state?this.stateInAttributeValueDoubleQuotes(e):9===this._state?this.stateInAttributeName(e):19===this._state?this.stateInComment(e):20===this._state?this.stateInSpecialComment(e):8===this._state?this.stateBeforeAttributeName(e):3===this._state?this.stateInTagName(e):6===this._state?this.stateInClosingTagName(e):2===this._state?this.stateBeforeTagName(e):10===this._state?this.stateAfterAttributeName(e):13===this._state?this.stateInAttributeValueSingleQuotes(e):11===this._state?this.stateBeforeAttributeValue(e):5===this._state?this.stateBeforeClosingTagName(e):7===this._state?this.stateAfterClosingTagName(e):32===this._state?this.stateBeforeSpecialS(e):21===this._state?this.stateAfterComment1(e):14===this._state?this.stateInAttributeValueNoQuotes(e):4===this._state?this.stateInSelfClosingTag(e):16===this._state?this.stateInDeclaration(e):15===this._state?this.stateBeforeDeclaration(e):22===this._state?this.stateAfterComment2(e):18===this._state?this.stateBeforeComment(e):33===this._state?this.stateBeforeSpecialSEnd(e):53===this._state?M(this,e):39===this._state?E(this,e):40===this._state?S(this,e):41===this._state?w(this,e):34===this._state?_(this,e):35===this._state?b(this,e):36===this._state?v(this,e):37===this._state?y(this,e):38===this._state?this.stateBeforeSpecialLast(e,2):42===this._state?C(this,e):43===this._state?this.stateAfterSpecialLast(e,6):44===this._state?T(this,e):29===this._state?this.stateInCdata(e):45===this._state?x(this,e):46===this._state?O(this,e):47===this._state?this.stateBeforeSpecialLast(e,3):48===this._state?k(this,e):49===this._state?R(this,e):50===this._state?D(this,e):51===this._state?this.stateAfterSpecialLast(e,5):52===this._state?I(this,e):54===this._state?A(this,e):55===this._state?N(this,e):56===this._state?F(this,e):57===this._state?this.stateBeforeSpecialLast(e,4):58===this._state?P(this,e):59===this._state?L(this,e):60===this._state?j(this,e):61===this._state?this.stateAfterSpecialLast(e,5):17===this._state?this.stateInProcessingInstruction(e):64===this._state?this.stateInNamedEntity(e):23===this._state?h(this,e):62===this._state?U(this,e):24===this._state?p(this,e):25===this._state?m(this,e):30===this._state?this.stateAfterCdata1(e):31===this._state?this.stateAfterCdata2(e):26===this._state?g(this,e):27===this._state?f(this,e):28===this._state?this.stateBeforeCdata6(e):66===this._state?this.stateInHexEntity(e):65===this._state?this.stateInNumericEntity(e):63===this._state?B(this,e):this.cbs.onerror(Error("unknown _state"),this._state),this._index++}this.cleanup()},e.prototype.finish=function(){this.sectionStart<this._index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var e=this.buffer.substr(this.sectionStart);29===this._state||30===this._state||31===this._state?this.cbs.oncdata(e):19===this._state||21===this._state||22===this._state?this.cbs.oncomment(e):64!==this._state||this.xmlMode?65!==this._state||this.xmlMode?66!==this._state||this.xmlMode?3!==this._state&&8!==this._state&&11!==this._state&&10!==this._state&&9!==this._state&&13!==this._state&&12!==this._state&&14!==this._state&&6!==this._state&&this.cbs.ontext(e):(this.decodeNumericEntity(3,16,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.decodeNumericEntity(2,10,!1),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData())):(this.parseLegacyEntity(),this.sectionStart<this._index&&(this._state=this.baseState,this.handleTrailingData()))},e.prototype.getSection=function(){return this.buffer.substring(this.sectionStart,this._index)},e.prototype.emitToken=function(e){this.cbs[e](this.getSection()),this.sectionStart=-1},e.prototype.emitPartial=function(e){1!==this.baseState?this.cbs.onattribdata(e):this.cbs.ontext(e)},e}();t.default=q},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.Element=t.Document=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=new Map([["tag",1],["script",1],["style",1],["directive",1],["text",3],["cdata",4],["comment",8],["root",9]]),s=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=a.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),g(this,e)},e}();t.Node=s;var c=function(e){function t(t,n){var o=e.call(this,t)||this;return o.data=n,o}return r(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=c;var l=function(e){function t(t){return e.call(this,"text",t)||this}return r(t,e),t}(c);t.Text=l;var d=function(e){function t(t){return e.call(this,"comment",t)||this}return r(t,e),t}(c);t.Comment=d;var u=function(e){function t(t,n){var o=e.call(this,"directive",n)||this;return o.name=t,o}return r(t,e),t}(c);t.ProcessingInstruction=u;var h=function(e){function t(t,n){var o=e.call(this,t)||this;return o.children=n,o}return r(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=h;var p=function(e){function t(t){return e.call(this,"root",t)||this}return r(t,e),t}(h);t.Document=p;var m=function(e){function t(t,n,o){void 0===o&&(o=[]);var r=e.call(this,"script"===t?"script":"style"===t?"style":"tag",o)||this;return r.name=t,r.attribs=n,r.attribs=n,r}return r(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,o;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(o=e["x-attribsPrefix"])||void 0===o?void 0:o[t]}}))},enumerable:!1,configurable:!0}),t}(h);function g(e,t){var n;switch(void 0===t&&(t=!1),e.type){case"text":n=new l(e.data);break;case"directive":var o=e;n=new u(o.name,o.data),null!=o["x-name"]&&(n["x-name"]=o["x-name"],n["x-publicId"]=o["x-publicId"],n["x-systemId"]=o["x-systemId"]);break;case"comment":n=new d(e.data);break;case"tag":case"script":case"style":var r=e,a=t?f(r.children):[],s=new m(r.name,i({},r.attribs),a);a.forEach((function(e){return e.parent=s})),r["x-attribsNamespace"]&&(s["x-attribsNamespace"]=i({},r["x-attribsNamespace"])),r["x-attribsPrefix"]&&(s["x-attribsPrefix"]=i({},r["x-attribsPrefix"])),n=s;break;case"cdata":a=t?f(e.children):[];var c=new h(e.type,a);a.forEach((function(e){return e.parent=c})),n=c;break;case"root":var g=e,_=(a=t?f(g.children):[],new p(a));a.forEach((function(e){return e.parent=_})),g["x-mode"]&&(_["x-mode"]=g["x-mode"]),n=_;break;case"doctype":throw new Error("Not implemented yet: ElementType.Doctype case")}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,n}function f(e){for(var t=e.map((function(e){return g(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=m,t.cloneNode=g},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return a(t,e),t},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.parseFeed=t.FeedHandler=void 0;var l,d,u=c(n(275)),h=s(n(242)),p=n(574);!function(e){e[e.image=0]="image",e[e.audio=1]="audio",e[e.video=2]="video",e[e.document=3]="document",e[e.executable=4]="executable"}(l||(l={})),function(e){e[e.sample=0]="sample",e[e.full=1]="full",e[e.nonstop=2]="nonstop"}(d||(d={}));var m=function(e){function t(t,n){return"object"==typeof t&&(n=t=void 0),e.call(this,t,n)||this}return r(t,e),t.prototype.onend=function(){var e,t,n=_(E,this.dom);if(n){var o={};if("feed"===n.name){var r=n.children;o.type="atom",y(o,"id","id",r),y(o,"title","title",r);var i=v("href",_("link",r));i&&(o.link=i),y(o,"description","subtitle",r),(a=b("updated",r))&&(o.updated=new Date(a)),y(o,"author","email",r,!0),o.items=f("entry",r).map((function(e){var t={},n=e.children;y(t,"id","id",n),y(t,"title","title",n);var o=v("href",_("link",n));o&&(t.link=o);var r=b("summary",n)||b("content",n);r&&(t.description=r);var i=b("updated",n);return i&&(t.pubDate=new Date(i)),t.media=g(n),t}))}else{var a;r=null!==(t=null===(e=_("channel",n.children))||void 0===e?void 0:e.children)&&void 0!==t?t:[];o.type=n.name.substr(0,3),o.id="",y(o,"title","title",r),y(o,"link","link",r),y(o,"description","description",r),(a=b("lastBuildDate",r))&&(o.updated=new Date(a)),y(o,"author","managingEditor",r,!0),o.items=f("item",n.children).map((function(e){var t={},n=e.children;y(t,"id","guid",n),y(t,"title","title",n),y(t,"link","link",n),y(t,"description","description",n);var o=b("pubDate",n);return o&&(t.pubDate=new Date(o)),t.media=g(n),t}))}this.feed=o,this.handleCallback(null)}else this.handleCallback(new Error("couldn't find root of feed"))},t}(u.default);function g(e){return f("media:content",e).map((function(e){var t={medium:e.attribs.medium,isDefault:!!e.attribs.isDefault};return e.attribs.url&&(t.url=e.attribs.url),e.attribs.fileSize&&(t.fileSize=parseInt(e.attribs.fileSize,10)),e.attribs.type&&(t.type=e.attribs.type),e.attribs.expression&&(t.expression=e.attribs.expression),e.attribs.bitrate&&(t.bitrate=parseInt(e.attribs.bitrate,10)),e.attribs.framerate&&(t.framerate=parseInt(e.attribs.framerate,10)),e.attribs.samplingrate&&(t.samplingrate=parseInt(e.attribs.samplingrate,10)),e.attribs.channels&&(t.channels=parseInt(e.attribs.channels,10)),e.attribs.duration&&(t.duration=parseInt(e.attribs.duration,10)),e.attribs.height&&(t.height=parseInt(e.attribs.height,10)),e.attribs.width&&(t.width=parseInt(e.attribs.width,10)),e.attribs.lang&&(t.lang=e.attribs.lang),t}))}function f(e,t){return h.getElementsByTagName(e,t,!0)}function _(e,t){return h.getElementsByTagName(e,t,!0,1)[0]}function b(e,t,n){return void 0===n&&(n=!1),h.getText(h.getElementsByTagName(e,t,n,1)).trim()}function v(e,t){return t?t.attribs[e]:null}function y(e,t,n,o,r){void 0===r&&(r=!1);var i=b(n,o,r);i&&(e[t]=i)}function E(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}t.FeedHandler=m,t.parseFeed=function(e,t){void 0===t&&(t={xmlMode:!0});var n=new m(t);return new p.Parser(n,t).end(e),n.feed}},function(e,t,n){var o=n(416),r=n(322).default,i=n(322).flatten,a=n(276).isHtml,s=[n(974),n(975),n(976),n(977),n(978)],c=e.exports=function(e,t,n,s){return this instanceof c?(this.options=Object.assign({},r,this.options,i(s)),e?(n&&("string"==typeof n&&(n=o(n,this.options,!1)),this._root=c.call(this,n)),e.cheerio?e:(l(e)&&(e=[e]),Array.isArray(e)?(e.forEach((function(e,t){this[t]=e}),this),this.length=e.length,this):"string"==typeof e&&a(e)?c.call(this,o(e,this.options,!1).children):(t?"string"==typeof t?a(t)?(t=o(t,this.options,!1),t=c.call(this,t)):(e=[t,e].join(" "),t=this._root):t.cheerio||(t=c.call(this,t)):t=this._root,t?t.find(e):this))):this):new c(e,t,n,s)};c.prototype.cheerio="[cheerio object]",c.prototype.length=0,c.prototype.splice=Array.prototype.splice,c.prototype._make=function(e,t){var n=new this.constructor(e,t,this._root,this.options);return n.prevObject=this,n},c.prototype.toArray=function(){return this.get()},"undefined"!=typeof Symbol&&(c.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator]),s.forEach((function(e){Object.assign(c.prototype,e)}));var l=function(e){return e.name||"root"===e.type||"text"===e.type||"comment"===e.type}},function(e,t){e.exports=/\uD83D\uDC68\u200D\u2764\uFE0F\u200D\uD83D\uDC8B\u200D\uD83D\uDC68|\uD83D\uDC69\u200D\u2764\uFE0F\u200D\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|\uD83D\uDC68\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83D\uDC68\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83D\uDC68\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83D\uDC68\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83D\uDC68\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC69(?:\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])(?:\uD83C[\uDFFB-\uDFFE])|\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69])(?:\uD83C[\uDFFC-\uDFFF]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68\u200D(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC68\u200D\u2764\uFE0F\u200D\uD83D\uDC68|\uD83D\uDC69\u200D\u2764\uFE0F\u200D(?:\uD83D[\uDC68\uDC69])|\uD83E\uDDD1\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC68(?:\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|(?:\uD83D[\uDC67-\uDC69])\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2695\u2696\u2708]\uFE0F)|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83C\uDFF3\uFE0F\u200D\u26A7|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642])\uFE0F|(?:\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF]))\u200D[\u2695\u2696\u2708]\uFE0F|\uD83D\uDC69\u200D(?:\uD83D[\uDC67\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83D\uDC3B\u200D\u2744|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDF])\u200D[\u2640\u2642])\uFE0F|\uD83E\uDDD1\u200D[\u2695\u2696\u2708]\uFE0F|(?:\uD83D[\uDC68\uDC69])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D[\u2695\u2696\u2708]\uFE0F)|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC08\u200D\u2B1B|\uD83E\uDDD1\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDC66\uDC67\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC3\uDFC7]|\uD83D[\uDC43\uDC4A-\uDC4C\uDC4F\uDC50\uDC66-\uDC69\uDC6B-\uDC6E\uDC70-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDCAA\uDD7A\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD26\uDD30-\uDD39\uDD3D\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u26F9\u270C\u270D]|\uD83C[\uDFC2\uDFC4\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC46-\uDC49\uDC4D\uDC4E\uDD74\uDD75\uDD90])(?:[\uFE0E\uFE0F]|\uD83C[\uDFFB-\uDFFF])|(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9\u23EA\u23ED-\u23EF\u23F1-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7\u26F8\u26FA\u26FD\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2753\u2757\u2763\u2764\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE1A\uDE2F\uDE37\uDF0D-\uDF0F\uDF15\uDF1C\uDF21\uDF24-\uDF2C\uDF36\uDF78\uDF7D\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFA7\uDFAC-\uDFAE\uDFC6\uDFCD\uDFCE\uDFD4-\uDFE0\uDFED\uDFF3\uDFF5\uDFF7]|\uD83D[\uDC08\uDC15\uDC1F\uDC26\uDC3F\uDC41\uDC53\uDC6A\uDC7D\uDCA3\uDCB0\uDCB3\uDCBB\uDCBF\uDCCB\uDCDA\uDCDF\uDCE4-\uDCE6\uDCEA-\uDCED\uDCF7\uDCF9-\uDCFB\uDCFD\uDD08\uDD0D\uDD12\uDD13\uDD49\uDD4A\uDD50-\uDD67\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDE10\uDE87\uDE8D\uDE91\uDE94\uDE98\uDEAD\uDEB2\uDEB9\uDEBA\uDEBC\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])[\uFE0E\uFE0F]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]/},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(581)),s=n(7),c=new Set(["input","option","optgroup","select","button","datalist","textarea"]),l=new Set(["p"]),d={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:l,h1:l,h2:l,h3:l,h4:l,h5:l,h6:l,select:c,input:c,output:c,button:c,datalist:c,textarea:c,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:l,article:l,aside:l,blockquote:l,details:l,div:l,dl:l,fieldset:l,figcaption:l,figure:l,footer:l,form:l,header:l,hr:l,main:l,nav:l,ol:l,pre:l,section:l,table:l,ul:l,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])},u=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),h=new Set(["math","svg"]),p=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),m=/\s|\//,g=function(e){function t(n,o){var r=e.call(this)||this;return r._tagname="",r._attribname="",r._attribvalue="",r._attribs=null,r._stack=[],r._foreignContext=[],r.startIndex=0,r.endIndex=null,r.parseChunk=t.prototype.write,r.done=t.prototype.end,r._options=o||{},r._cbs=n||{},r._tagname="",r._attribname="",r._attribvalue="",r._attribs=null,r._stack=[],r._foreignContext=[],r.startIndex=0,r.endIndex=null,r._lowerCaseTagNames="lowerCaseTags"in r._options?!!r._options.lowerCaseTags:!r._options.xmlMode,r._lowerCaseAttributeNames="lowerCaseAttributeNames"in r._options?!!r._options.lowerCaseAttributeNames:!r._options.xmlMode,r._tokenizer=new(r._options.Tokenizer||a.default)(r._options,r),r._cbs.onparserinit&&r._cbs.onparserinit(r),r}return r(t,e),t.prototype._updatePosition=function(e){null===this.endIndex?this._tokenizer._sectionStart<=e?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-e:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},t.prototype.ontext=function(e){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(e)},t.prototype.onopentagname=function(e){if(this._lowerCaseTagNames&&(e=e.toLowerCase()),this._tagname=e,!this._options.xmlMode&&Object.prototype.hasOwnProperty.call(d,e))for(var t=void 0;d[e].has(t=this._stack[this._stack.length-1]);this.onclosetag(t));!this._options.xmlMode&&u.has(e)||(this._stack.push(e),h.has(e)?this._foreignContext.push(!0):p.has(e)&&this._foreignContext.push(!1)),this._cbs.onopentagname&&this._cbs.onopentagname(e),this._cbs.onopentag&&(this._attribs={})},t.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&u.has(this._tagname)&&this._cbs.onclosetag(this._tagname),this._tagname=""},t.prototype.onclosetag=function(e){if(this._updatePosition(1),this._lowerCaseTagNames&&(e=e.toLowerCase()),(h.has(e)||p.has(e))&&this._foreignContext.pop(),!this._stack.length||!this._options.xmlMode&&u.has(e))this._options.xmlMode||"br"!==e&&"p"!==e||(this.onopentagname(e),this._closeCurrentTag());else{var t=this._stack.lastIndexOf(e);if(-1!==t)if(this._cbs.onclosetag)for(t=this._stack.length-t;t--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=t;else"p"!==e||this._options.xmlMode||(this.onopentagname(e),this._closeCurrentTag())}},t.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing||this._foreignContext[this._foreignContext.length-1]?this._closeCurrentTag():this.onopentagend()},t.prototype._closeCurrentTag=function(){var e=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===e&&(this._cbs.onclosetag&&this._cbs.onclosetag(e),this._stack.pop())},t.prototype.onattribname=function(e){this._lowerCaseAttributeNames&&(e=e.toLowerCase()),this._attribname=e},t.prototype.onattribdata=function(e){this._attribvalue+=e},t.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},t.prototype._getInstructionName=function(e){var t=e.search(m),n=t<0?e:e.substr(0,t);return this._lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("!"+t,"!"+e)}},t.prototype.onprocessinginstruction=function(e){if(this._cbs.onprocessinginstruction){var t=this._getInstructionName(e);this._cbs.onprocessinginstruction("?"+t,"?"+e)}},t.prototype.oncomment=function(e){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(e),this._cbs.oncommentend&&this._cbs.oncommentend()},t.prototype.oncdata=function(e){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(e),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+e+"]]")},t.prototype.onerror=function(e){this._cbs.onerror&&this._cbs.onerror(e)},t.prototype.onend=function(){if(this._cbs.onclosetag)for(var e=this._stack.length;e>0;this._cbs.onclosetag(this._stack[--e]));this._cbs.onend&&this._cbs.onend()},t.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.write=function(e){this._tokenizer.write(e)},t.prototype.end=function(e){this._tokenizer.end(e)},t.prototype.pause=function(){this._tokenizer.pause()},t.prototype.resume=function(){this._tokenizer.resume()},t}(s.EventEmitter);t.Parser=g},function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(561)),i=o(n(408)),a=o(n(560)),s=o(n(409));function c(e){return" "===e||"\n"===e||"\t"===e||"\f"===e||"\r"===e}function l(e,t,n){var o=e.toLowerCase();return e===o?function(e,r){r===o?e._state=t:(e._state=n,e._index--)}:function(r,i){i===o||i===e?r._state=t:(r._state=n,r._index--)}}function d(e,t){var n=e.toLowerCase();return function(o,r){r===n||r===e?o._state=t:(o._state=3,o._index--)}}var u=l("C",23,16),h=l("D",24,16),p=l("A",25,16),m=l("T",26,16),g=l("A",27,16),f=d("R",34),_=d("I",35),b=d("P",36),v=d("T",37),y=l("R",39,1),E=l("I",40,1),S=l("P",41,1),w=l("T",42,1),C=d("Y",44),T=d("L",45),x=d("E",46),O=l("Y",48,1),k=l("L",49,1),R=l("E",50,1),D=l("#",52,53),I=l("X",55,54),A=function(){function e(e,t){this._state=1,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=1,this._special=1,this._running=!0,this._ended=!1,this._cbs=t,this._xmlMode=!(!e||!e.xmlMode),this._decodeEntities=!(!e||!e.decodeEntities)}return e.prototype.reset=function(){this._state=1,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=1,this._special=1,this._running=!0,this._ended=!1},e.prototype._stateText=function(e){"<"===e?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=2,this._sectionStart=this._index):this._decodeEntities&&1===this._special&&"&"===e&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=1,this._state=51,this._sectionStart=this._index)},e.prototype._stateBeforeTagName=function(e){"/"===e?this._state=5:"<"===e?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===e||1!==this._special||c(e)?this._state=1:"!"===e?(this._state=15,this._sectionStart=this._index+1):"?"===e?(this._state=17,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==e&&"S"!==e?3:31,this._sectionStart=this._index)},e.prototype._stateInTagName=function(e){("/"===e||">"===e||c(e))&&(this._emitToken("onopentagname"),this._state=8,this._index--)},e.prototype._stateBeforeClosingTagName=function(e){c(e)||(">"===e?this._state=1:1!==this._special?"s"===e||"S"===e?this._state=32:(this._state=1,this._index--):(this._state=6,this._sectionStart=this._index))},e.prototype._stateInClosingTagName=function(e){(">"===e||c(e))&&(this._emitToken("onclosetag"),this._state=7,this._index--)},e.prototype._stateAfterClosingTagName=function(e){">"===e&&(this._state=1,this._sectionStart=this._index+1)},e.prototype._stateBeforeAttributeName=function(e){">"===e?(this._cbs.onopentagend(),this._state=1,this._sectionStart=this._index+1):"/"===e?this._state=4:c(e)||(this._state=9,this._sectionStart=this._index)},e.prototype._stateInSelfClosingTag=function(e){">"===e?(this._cbs.onselfclosingtag(),this._state=1,this._sectionStart=this._index+1):c(e)||(this._state=8,this._index--)},e.prototype._stateInAttributeName=function(e){("="===e||"/"===e||">"===e||c(e))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=10,this._index--)},e.prototype._stateAfterAttributeName=function(e){"="===e?this._state=11:"/"===e||">"===e?(this._cbs.onattribend(),this._state=8,this._index--):c(e)||(this._cbs.onattribend(),this._state=9,this._sectionStart=this._index)},e.prototype._stateBeforeAttributeValue=function(e){'"'===e?(this._state=12,this._sectionStart=this._index+1):"'"===e?(this._state=13,this._sectionStart=this._index+1):c(e)||(this._state=14,this._sectionStart=this._index,this._index--)},e.prototype._stateInAttributeValueDoubleQuotes=function(e){'"'===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)},e.prototype._stateInAttributeValueSingleQuotes=function(e){"'"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)},e.prototype._stateInAttributeValueNoQuotes=function(e){c(e)||">"===e?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8,this._index--):this._decodeEntities&&"&"===e&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)},e.prototype._stateBeforeDeclaration=function(e){this._state="["===e?22:"-"===e?18:16},e.prototype._stateInDeclaration=function(e){">"===e&&(this._cbs.ondeclaration(this._getSection()),this._state=1,this._sectionStart=this._index+1)},e.prototype._stateInProcessingInstruction=function(e){">"===e&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=1,this._sectionStart=this._index+1)},e.prototype._stateBeforeComment=function(e){"-"===e?(this._state=19,this._sectionStart=this._index+1):this._state=16},e.prototype._stateInComment=function(e){"-"===e&&(this._state=20)},e.prototype._stateAfterComment1=function(e){this._state="-"===e?21:19},e.prototype._stateAfterComment2=function(e){">"===e?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=1,this._sectionStart=this._index+1):"-"!==e&&(this._state=19)},e.prototype._stateBeforeCdata6=function(e){"["===e?(this._state=28,this._sectionStart=this._index+1):(this._state=16,this._index--)},e.prototype._stateInCdata=function(e){"]"===e&&(this._state=29)},e.prototype._stateAfterCdata1=function(e){this._state="]"===e?30:28},e.prototype._stateAfterCdata2=function(e){">"===e?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=1,this._sectionStart=this._index+1):"]"!==e&&(this._state=28)},e.prototype._stateBeforeSpecial=function(e){"c"===e||"C"===e?this._state=33:"t"===e||"T"===e?this._state=43:(this._state=3,this._index--)},e.prototype._stateBeforeSpecialEnd=function(e){2!==this._special||"c"!==e&&"C"!==e?3!==this._special||"t"!==e&&"T"!==e?this._state=1:this._state=47:this._state=38},e.prototype._stateBeforeScript5=function(e){("/"===e||">"===e||c(e))&&(this._special=2),this._state=3,this._index--},e.prototype._stateAfterScript5=function(e){">"===e||c(e)?(this._special=1,this._state=6,this._sectionStart=this._index-6,this._index--):this._state=1},e.prototype._stateBeforeStyle4=function(e){("/"===e||">"===e||c(e))&&(this._special=3),this._state=3,this._index--},e.prototype._stateAfterStyle4=function(e){">"===e||c(e)?(this._special=1,this._state=6,this._sectionStart=this._index-5,this._index--):this._state=1},e.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+1<this._index){var e=this._buffer.substring(this._sectionStart+1,this._index),t=this._xmlMode?s.default:i.default;Object.prototype.hasOwnProperty.call(t,e)&&(this._emitPartial(t[e]),this._sectionStart=this._index+1)}},e.prototype._parseLegacyEntity=function(){var e=this._sectionStart+1,t=this._index-e;for(t>6&&(t=6);t>=2;){var n=this._buffer.substr(e,t);if(Object.prototype.hasOwnProperty.call(a.default,n))return this._emitPartial(a.default[n]),void(this._sectionStart+=t+1);t--}},e.prototype._stateInNamedEntity=function(e){";"===e?(this._parseNamedEntityStrict(),this._sectionStart+1<this._index&&!this._xmlMode&&this._parseLegacyEntity(),this._state=this._baseState):(e<"a"||e>"z")&&(e<"A"||e>"Z")&&(e<"0"||e>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(1!==this._baseState?"="!==e&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},e.prototype._decodeNumericEntity=function(e,t){var n=this._sectionStart+e;if(n!==this._index){var o=this._buffer.substring(n,this._index),i=parseInt(o,t);this._emitPartial(r.default(i)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},e.prototype._stateInNumericEntity=function(e){";"===e?(this._decodeNumericEntity(2,10),this._sectionStart++):(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},e.prototype._stateInHexEntity=function(e){";"===e?(this._decodeNumericEntity(3,16),this._sectionStart++):(e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},e.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(1===this._state?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},e.prototype.write=function(e){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=e,this._parse()},e.prototype._parse=function(){for(;this._index<this._buffer.length&&this._running;){var e=this._buffer.charAt(this._index);1===this._state?this._stateText(e):12===this._state?this._stateInAttributeValueDoubleQuotes(e):9===this._state?this._stateInAttributeName(e):19===this._state?this._stateInComment(e):8===this._state?this._stateBeforeAttributeName(e):3===this._state?this._stateInTagName(e):6===this._state?this._stateInClosingTagName(e):2===this._state?this._stateBeforeTagName(e):10===this._state?this._stateAfterAttributeName(e):13===this._state?this._stateInAttributeValueSingleQuotes(e):11===this._state?this._stateBeforeAttributeValue(e):5===this._state?this._stateBeforeClosingTagName(e):7===this._state?this._stateAfterClosingTagName(e):31===this._state?this._stateBeforeSpecial(e):20===this._state?this._stateAfterComment1(e):14===this._state?this._stateInAttributeValueNoQuotes(e):4===this._state?this._stateInSelfClosingTag(e):16===this._state?this._stateInDeclaration(e):15===this._state?this._stateBeforeDeclaration(e):21===this._state?this._stateAfterComment2(e):18===this._state?this._stateBeforeComment(e):32===this._state?this._stateBeforeSpecialEnd(e):38===this._state?y(this,e):39===this._state?E(this,e):40===this._state?S(this,e):33===this._state?f(this,e):34===this._state?_(this,e):35===this._state?b(this,e):36===this._state?v(this,e):37===this._state?this._stateBeforeScript5(e):41===this._state?w(this,e):42===this._state?this._stateAfterScript5(e):43===this._state?C(this,e):28===this._state?this._stateInCdata(e):44===this._state?T(this,e):45===this._state?x(this,e):46===this._state?this._stateBeforeStyle4(e):47===this._state?O(this,e):48===this._state?k(this,e):49===this._state?R(this,e):50===this._state?this._stateAfterStyle4(e):17===this._state?this._stateInProcessingInstruction(e):53===this._state?this._stateInNamedEntity(e):22===this._state?u(this,e):51===this._state?D(this,e):23===this._state?h(this,e):24===this._state?p(this,e):29===this._state?this._stateAfterCdata1(e):30===this._state?this._stateAfterCdata2(e):25===this._state?m(this,e):26===this._state?g(this,e):27===this._state?this._stateBeforeCdata6(e):55===this._state?this._stateInHexEntity(e):54===this._state?this._stateInNumericEntity(e):52===this._state?I(this,e):this._cbs.onerror(Error("unknown _state"),this._state),this._index++}this._cleanup()},e.prototype.pause=function(){this._running=!1},e.prototype.resume=function(){this._running=!0,this._index<this._buffer.length&&this._parse(),this._ended&&this._finish()},e.prototype.end=function(e){this._ended&&this._cbs.onerror(Error(".end() after done!")),e&&this.write(e),this._ended=!0,this._running&&this._finish()},e.prototype._finish=function(){this._sectionStart<this._index&&this._handleTrailingData(),this._cbs.onend()},e.prototype._handleTrailingData=function(){var e=this._buffer.substr(this._sectionStart);28===this._state||29===this._state||30===this._state?this._cbs.oncdata(e):19===this._state||20===this._state||21===this._state?this._cbs.oncomment(e):53!==this._state||this._xmlMode?54!==this._state||this._xmlMode?55!==this._state||this._xmlMode?3!==this._state&&8!==this._state&&11!==this._state&&10!==this._state&&9!==this._state&&13!==this._state&&12!==this._state&&14!==this._state&&6!==this._state&&this._cbs.ontext(e):(this._decodeNumericEntity(3,16),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._decodeNumericEntity(2,10),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._parseLegacyEntity(),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData()))},e.prototype.getAbsoluteIndex=function(){return this._bufferOffset+this._index},e.prototype._getSection=function(){return this._buffer.substring(this._sectionStart,this._index)},e.prototype._emitToken=function(e){this._cbs[e](this._getSection()),this._sectionStart=-1},e.prototype._emitPartial=function(e){1!==this._baseState?this._cbs.onattribdata(e):this._cbs.ontext(e)},e}();t.default=A},function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(583);r(n(583),t);var a=/\s+/g,s={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1},c=function(){function e(e,t,n){this.dom=[],this._done=!1,this._tagStack=[],this._lastNode=null,this._parser=null,"function"==typeof t&&(n=t,t=s),"object"==typeof e&&(t=e,e=void 0),this._callback=null!=e?e:null,this._options=null!=t?t:s,this._elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this._parser=e},e.prototype.onreset=function(){var e;this.dom=[],this._done=!1,this._tagStack=[],this._lastNode=null,this._parser=null!==(e=this._parser)&&void 0!==e?e:null},e.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this._lastNode=null;var e=this._tagStack.pop();e&&this._parser&&(this._options.withEndIndices&&(e.endIndex=this._parser.endIndex),this._elementCB&&this._elementCB(e))},e.prototype.onopentag=function(e,t){var n=new i.Element(e,t);this.addNode(n),this._tagStack.push(n)},e.prototype.ontext=function(e){var t=this._options.normalizeWhitespace,n=this._lastNode;if(n&&"text"===n.type)t?n.data=(n.data+e).replace(a," "):n.data+=e;else{t&&(e=e.replace(a," "));var o=new i.Text(e);this.addNode(o),this._lastNode=o}},e.prototype.oncomment=function(e){if(this._lastNode&&"comment"===this._lastNode.type)this._lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this._lastNode=t}},e.prototype.oncommentend=function(){this._lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.NodeWithChildren("cdata",[e]);this.addNode(t),e.parent=t,this._lastNode=e},e.prototype.oncdataend=function(){this._lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this._callback)this._callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this._tagStack[this._tagStack.length-1],n=t?t.children:this.dom,o=n[n.length-1];this._parser&&(this._options.withStartIndices&&(e.startIndex=this._parser.startIndex),this._options.withEndIndices&&(e.endIndex=this._parser.endIndex)),n.push(e),o&&(e.prev=o,o.next=e),t&&(e.parent=t),this._lastNode=null},e.prototype.addDataNode=function(e){this.addNode(e),this._lastNode=e},e}();t.DomHandler=c,t.default=c},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.Element=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=new Map([["tag",1],["script",1],["style",1],["directive",1],["text",3],["cdata",4],["comment",8]]),s=function(){function e(e){this.type=e,this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"nodeType",{get:function(){var e;return null!==(e=a.get(this.type))&&void 0!==e?e:1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),m(this,e)},e}();t.Node=s;var c=function(e){function t(t,n){var o=e.call(this,t)||this;return o.data=n,o}return r(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=c;var l=function(e){function t(t){return e.call(this,"text",t)||this}return r(t,e),t}(c);t.Text=l;var d=function(e){function t(t){return e.call(this,"comment",t)||this}return r(t,e),t}(c);t.Comment=d;var u=function(e){function t(t,n){var o=e.call(this,"directive",n)||this;return o.name=t,o}return r(t,e),t}(c);t.ProcessingInstruction=u;var h=function(e){function t(t,n){var o=e.call(this,t)||this;return o.children=n,o}return r(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=h;var p=function(e){function t(t,n,o){void 0===o&&(o=[]);var r=e.call(this,"script"===t?"script":"style"===t?"style":"tag",o)||this;return r.name=t,r.attribs=n,r.attribs=n,r}return r(t,e),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){return{name:t,value:e.attribs[t]}}))},enumerable:!1,configurable:!0}),t}(h);function m(e,t){switch(void 0===t&&(t=!1),e.type){case"text":return new l(e.data);case"directive":var n=e;return new u(n.name,n.data);case"comment":return new d(e.data);case"tag":case"script":case"style":var o=e,r=t?g(o.children):[],a=new p(o.name,i({},o.attribs),r);return r.forEach((function(e){return e.parent=a})),a;case"cdata":r=t?g(e.children):[];var s=new h("cdata",r);return r.forEach((function(e){return e.parent=s})),s;case"doctype":throw new Error("Not implemented yet: ElementType.Doctype case")}}function g(e){for(var t=e.map((function(e){return m(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=p,t.cloneNode=m},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s=i(n(582)),c=a(n(242)),l=n(580),d=function(e){function t(t,n){return"object"==typeof t&&null!==t&&(n=t=void 0),e.call(this,t,n)||this}return r(t,e),t.prototype.onend=function(){var e={},t=h(f,this.dom);if(t)if("feed"===t.name){var n=t.children;e.type="atom",g(e,"id","id",n),g(e,"title","title",n);var o=m("href",h("link",n));o&&(e.link=o),g(e,"description","subtitle",n),(r=p("updated",n))&&(e.updated=new Date(r)),g(e,"author","email",n,!0),e.items=u("entry",n).map((function(e){var t={},n=e.children;g(t,"id","id",n),g(t,"title","title",n);var o=m("href",h("link",n));o&&(t.link=o);var r=p("summary",n)||p("content",n);r&&(t.description=r);var i=p("updated",n);return i&&(t.pubDate=new Date(i)),t}))}else{var r;n=h("channel",t.children).children;e.type=t.name.substr(0,3),e.id="",g(e,"title","title",n),g(e,"link","link",n),g(e,"description","description",n),(r=p("lastBuildDate",n))&&(e.updated=new Date(r)),g(e,"author","managingEditor",n,!0),e.items=u("item",t.children).map((function(e){var t={},n=e.children;g(t,"id","guid",n),g(t,"title","title",n),g(t,"link","link",n),g(t,"description","description",n);var o=p("pubDate",n);return o&&(t.pubDate=new Date(o)),t}))}this.feed=e,this.handleCallback(t?null:Error("couldn't find root of feed"))},t}(s.default);function u(e,t){return c.getElementsByTagName(e,t,!0)}function h(e,t){return c.getElementsByTagName(e,t,!0,1)[0]}function p(e,t,n){return void 0===n&&(n=!1),c.getText(c.getElementsByTagName(e,t,n,1)).trim()}function m(e,t){return t?t.attribs[e]:null}function g(e,t,n,o,r){void 0===r&&(r=!1);var i=p(n,o,r);i&&(e[t]=i)}function f(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}t.FeedHandler=d;var _={xmlMode:!0};t.parseFeed=function(e,t){void 0===t&&(t=_);var n=new d(t);return new l.Parser(n,t).end(e),n.feed}},,function(e,t,n){"use strict";const o={colon:": ",indent:" ",beforeDecl:"\n",beforeRule:"\n",beforeOpen:" ",beforeClose:"\n",beforeComment:"\n",after:"\n",emptyBody:"",commentLeft:" ",commentRight:" ",semicolon:!1};e.exports=class{constructor(e){this.builder=e}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+n+"*/",e)}decl(e,t){let n=this.raw(e,"between","colon"),o=e.prop+n+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),t&&(o+=";"),this.builder(o,e)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}atrule(e,t){let n="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(void 0!==e.raws.afterName?n+=e.raws.afterName:o&&(n+=" "),e.nodes)this.block(e,n+o);else{let r=(e.raws.between||"")+(t?";":"");this.builder(n+o+r,e)}}body(e){let t=e.nodes.length-1;for(;t>0&&"comment"===e.nodes[t].type;)t-=1;let n=this.raw(e,"semicolon");for(let o=0;o<e.nodes.length;o++){let r=e.nodes[o],i=this.raw(r,"before");i&&this.builder(i),this.stringify(r,t!==o||n)}}block(e,t){let n,o=this.raw(e,"between","beforeOpen");this.builder(t+o+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}raw(e,t,n){let r;if(n||(n=t),t&&(r=e.raws[t],void 0!==r))return r;let i=e.parent;if("before"===n&&(!i||"root"===i.type&&i.first===e))return"";if(!i)return o[n];let a=e.root();if(a.rawCache||(a.rawCache={}),void 0!==a.rawCache[n])return a.rawCache[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let o="raw"+((s=n)[0].toUpperCase()+s.slice(1));this[o]?r=this[o](a,e):a.walk(e=>{if(r=e.raws[t],void 0!==r)return!1})}var s;return void 0===r&&(r=o[n]),a.rawCache[n]=r,r}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let o=n.parent;if(o&&o!==e&&o.parent&&o.parent===e&&void 0!==n.raws.before){let e=n.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1}),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}beforeAfter(e,t){let n;n="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let o=e.parent,r=0;for(;o&&"root"!==o.type;)r+=1,o=o.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<r;e++)n+=t}return n}rawValue(e,t){let n=e[t],o=e.raws[t];return o&&o.value===n?o.raw:n}}},function(e,t,n){"use strict";let o=n(992),{isClean:r}=n(418),i=n(419),a=(n(999),n(592)),s=n(594),c=n(280);const l={root:"Root",atrule:"AtRule",rule:"Rule",decl:"Declaration",comment:"Comment"},d={postcssPlugin:!0,prepare:!0,Once:!0,Root:!0,Declaration:!0,Rule:!0,AtRule:!0,Comment:!0,DeclarationExit:!0,RuleExit:!0,AtRuleExit:!0,CommentExit:!0,RootExit:!0,OnceExit:!0},u={postcssPlugin:!0,prepare:!0,Once:!0};function h(e){return"object"==typeof e&&"function"==typeof e.then}function p(e){let t=!1,n=l[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function m(e){let t;return t="root"===e.type?["Root",0,"RootExit"]:p(e),{node:e,events:t,eventIndex:0,visitors:[],visitorIndex:0,iterator:0}}function g(e){return e[r]=!1,e.nodes&&e.nodes.forEach(e=>g(e)),e}let f={};class _{constructor(e,t,n){let o;if(this.stringified=!1,this.processed=!1,"object"==typeof t&&null!==t&&"root"===t.type)o=g(t);else if(t instanceof _||t instanceof a)o=g(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=s;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{o=e(t,n)}catch(e){this.processed=!0,this.error=e}}this.result=new a(e,o,n),this.helpers={...f,result:this.result,postcss:f},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}get[Symbol.toStringTag](){return"LazyResult"}get processor(){return this.result.processor}get opts(){return this.result.opts}get css(){return this.stringify().css}get content(){return this.stringify().content}get map(){return this.stringify().map}get root(){return this.sync().root}get messages(){return this.sync().messages}warnings(){return this.sync().warnings()}toString(){return this.css}then(e,t){return this.async().then(e,t)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){if(h(this.runOnRoot(e)))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r];)e[r]=!0,this.walkSync(e);this.listeners.OnceExit&&this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=i;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new o(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[r]=!0;let t=p(e);for(let n of t)if(0===n)e.nodes&&e.each(e=>{e[r]||this.walkSync(e)});else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}visitSync(e,t){for(let[n,o]of e){let e;this.result.lastPlugin=n;try{e=o(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&!t.parent)return!0;if(h(e))throw this.getAsyncError()}}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once)return e.Once(this.result.root,this.helpers);if("function"==typeof e)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(h(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[r];){e[r]=!0;let t=[m(e)];for(;t.length>0;){let e=this.visitTick(t);if(h(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!d[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!u[n])if("object"==typeof t[n])for(let o in t[n])e(t,"*"===o?n:n+"-"+o.toLowerCase(),t[n][o]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}visitTick(e){let t=e[e.length-1],{node:n,visitors:o}=t;if("root"!==n.type&&!n.parent)return void e.pop();if(o.length>0&&t.visitorIndex<o.length){let[e,r]=o[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===o.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return r(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let o,i=t.iterator;for(;o=n.nodes[n.indexes[i]];)if(n.indexes[i]+=1,!o[r])return o[r]=!0,void e.push(m(o));t.iterator=0,delete n.indexes[i]}let i=t.events;for(;t.eventIndex<i.length;){let e=i[t.eventIndex];if(t.eventIndex+=1,0===e)return void(n.nodes&&n.nodes.length&&(n[r]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}}_.registerPostcss=e=>{f=e},e.exports=_,_.default=_,c.registerLazyResult(_)},function(e,t,n){t.SourceMapGenerator=n(589).SourceMapGenerator,t.SourceMapConsumer=n(995).SourceMapConsumer,t.SourceNode=n(998).SourceNode},function(e,t,n){var o=n(590),r=n(278),i=n(591).ArraySet,a=n(994).MappingList;function s(e){e||(e={}),this._file=r.getArg(e,"file",null),this._sourceRoot=r.getArg(e,"sourceRoot",null),this._skipValidation=r.getArg(e,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new a,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(e){var t=e.sourceRoot,n=new s({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var o={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(o.source=e.source,null!=t&&(o.source=r.relative(t,o.source)),o.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(o.name=e.name)),n.addMapping(o)})),e.sources.forEach((function(o){var i=o;null!==t&&(i=r.relative(t,o)),n._sources.has(i)||n._sources.add(i);var a=e.sourceContentFor(o);null!=a&&n.setSourceContent(o,a)})),n},s.prototype.addMapping=function(e){var t=r.getArg(e,"generated"),n=r.getArg(e,"original",null),o=r.getArg(e,"source",null),i=r.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,n,o,i),null!=o&&(o=String(o),this._sources.has(o)||this._sources.add(o)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:o,name:i})},s.prototype.setSourceContent=function(e,t){var n=e;null!=this._sourceRoot&&(n=r.relative(this._sourceRoot,n)),null!=t?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[r.toSetString(n)]=t):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(e,t,n){var o=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');o=e.file}var a=this._sourceRoot;null!=a&&(o=r.relative(a,o));var s=new i,c=new i;this._mappings.unsortedForEach((function(t){if(t.source===o&&null!=t.originalLine){var i=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=i.source&&(t.source=i.source,null!=n&&(t.source=r.join(n,t.source)),null!=a&&(t.source=r.relative(a,t.source)),t.originalLine=i.line,t.originalColumn=i.column,null!=i.name&&(t.name=i.name))}var l=t.source;null==l||s.has(l)||s.add(l);var d=t.name;null==d||c.has(d)||c.add(d)}),this),this._sources=s,this._names=c,e.sources.forEach((function(t){var o=e.sourceContentFor(t);null!=o&&(null!=n&&(t=r.join(n,t)),null!=a&&(t=r.relative(a,t)),this.setSourceContent(t,o))}),this)},s.prototype._validateMapping=function(e,t,n,o){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||n||o)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:o}))},s.prototype._serializeMappings=function(){for(var e,t,n,i,a=0,s=1,c=0,l=0,d=0,u=0,h="",p=this._mappings.toArray(),m=0,g=p.length;m<g;m++){if(e="",(t=p[m]).generatedLine!==s)for(a=0;t.generatedLine!==s;)e+=";",s++;else if(m>0){if(!r.compareByGeneratedPositionsInflated(t,p[m-1]))continue;e+=","}e+=o.encode(t.generatedColumn-a),a=t.generatedColumn,null!=t.source&&(i=this._sources.indexOf(t.source),e+=o.encode(i-u),u=i,e+=o.encode(t.originalLine-1-l),l=t.originalLine-1,e+=o.encode(t.originalColumn-c),c=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=o.encode(n-d),d=n)),h+=e}return h},s.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=r.relative(t,e));var n=r.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},s.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=s},function(e,t,n){var o=n(993);t.encode=function(e){var t,n="",r=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{t=31&r,(r>>>=5)>0&&(t|=32),n+=o.encode(t)}while(r>0);return n},t.decode=function(e,t,n){var r,i,a,s,c=e.length,l=0,d=0;do{if(t>=c)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=o.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));r=!!(32&i),l+=(i&=31)<<d,d+=5}while(r);n.value=(s=(a=l)>>1,1==(1&a)?-s:s),n.rest=t}},function(e,t,n){var o=n(278),r=Object.prototype.hasOwnProperty,i="undefined"!=typeof Map;function a(){this._array=[],this._set=i?new Map:Object.create(null)}a.fromArray=function(e,t){for(var n=new a,o=0,r=e.length;o<r;o++)n.add(e[o],t);return n},a.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},a.prototype.add=function(e,t){var n=i?e:o.toSetString(e),a=i?this.has(e):r.call(this._set,n),s=this._array.length;a&&!t||this._array.push(e),a||(i?this._set.set(e,s):this._set[n]=s)},a.prototype.has=function(e){if(i)return this._set.has(e);var t=o.toSetString(e);return r.call(this._set,t)},a.prototype.indexOf=function(e){if(i){var t=this._set.get(e);if(t>=0)return t}else{var n=o.toSetString(e);if(r.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},a.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)},a.prototype.toArray=function(){return this._array.slice()},t.ArraySet=a},function(e,t,n){"use strict";let o=n(593);class r{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new o(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>"warning"===e.type)}get content(){return this.css}}e.exports=r,r.default=r},function(e,t,n){"use strict";class o{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let e=t.node.positionBy(t);this.line=e.line,this.column=e.column}for(let e in t)this[e]=t[e]}toString(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}e.exports=o,o.default=o},function(e,t,n){"use strict";let o=n(279),r=n(1e3),i=n(423);function a(e,t){let n=new i(e,t),o=new r(n);try{o.parse()}catch(e){throw e}return o.root}e.exports=a,a.default=a,o.registerParse(a)},function(e,t,n){"use strict";let o={split(e,t,n){let o=[],r="",i=!1,a=0,s=!1,c=!1;for(let n of e)s?c?c=!1:"\\"===n?c=!0:n===s&&(s=!1):'"'===n||"'"===n?s=n:"("===n?a+=1:")"===n?a>0&&(a-=1):0===a&&t.includes(n)&&(i=!0),i?(""!==r&&o.push(r.trim()),r="",i=!1):r+=n;return(n||""!==r)&&o.push(r.trim()),o},space:e=>o.split(e,[" ","\n","\t"]),comma:e=>o.split(e,[","],!0)};e.exports=o,o.default=o},function(e,t,n){"use strict";(function(t){let{existsSync:o,readFileSync:r}=n(1003),{dirname:i,join:a}=n(420),s=n(588);class c{constructor(e,t){if(!1===t.map)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,o=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=i(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new s.SourceMapConsumer(this.text)),this.consumerCache}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}startWith(e,t){return!!e&&e.substr(0,t.length)===t}getAnnotationURL(e){return e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//)[1].trim()}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=.*\s*\*\//gm);if(t&&t.length>0){let e=t[t.length-1];e&&(this.annotation=this.getAnnotationURL(e))}}decodeInline(e){if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(/^data:application\/json;charset=utf-?8;base64,/.test(e)||/^data:application\/json;base64,/.test(e))return n=e.substr(RegExp.lastMatch.length),t?t.from(n,"base64").toString():window.atob(n);var n;let o=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+o)}loadFile(e){if(this.root=i(e),o(e))return this.mapFile=e,r(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof s.SourceMapConsumer)return s.SourceMapGenerator.fromSourceMap(t).toString();if(t instanceof s.SourceMapGenerator)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let e=this.loadFile(n);if(!e)throw new Error("Unable to load previous source map: "+n.toString());return e}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;return e&&(t=a(i(e),t)),this.loadFile(t)}}}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}}e.exports=c,c.default=c}).call(this,n(32).Buffer)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(0),r=n(282);function i(e){return"crypto.sessions/"+e}function a(e){return"crypto.session.problems/"+e}function s(e,t){return"crypto.inboundgroupsessions/"+e+"/"+t}function c(e,t){return"crypto.inboundgroupsessions.withheld/"+e+"/"+t}function l(e){return"crypto.rooms/"+e}class d extends r.a{constructor(e){super(),this.store=e}static exists(e){const t=e.length;for(let n=0;n<t;n++)if(e.key(n).startsWith("crypto."))return!0;return!1}countEndToEndSessions(e,t){let n=0;for(let e=0;e<this.store.length;++e)this.store.key(e).startsWith(i(""))&&++n;t(n)}_getEndToEndSessions(e,t,n){const o=u(this.store,i(e)),r={};for(const[e,t]of Object.entries(o||{}))r[e]="string"==typeof t?{session:t}:t;return r}getEndToEndSession(e,t,n,o){o(this._getEndToEndSessions(e)[t]||{})}getEndToEndSessions(e,t,n){n(this._getEndToEndSessions(e)||{})}getAllEndToEndSessions(e,t){for(let e=0;e<this.store.length;++e)if(this.store.key(e).startsWith(i(""))){const n=this.store.key(e).split("/")[1];for(const e of Object.values(this._getEndToEndSessions(n)))t(e)}}storeEndToEndSession(e,t,n,o){const r=this._getEndToEndSessions(e)||{};r[t]=n,h(this.store,i(e),r)}async storeEndToEndSessionProblem(e,t,n){const o=a(e),r=u(this.store,o)||[];r.push({type:t,fixed:n,time:Date.now()}),r.sort((e,t)=>e.time-t.time),h(this.store,o,r)}async getEndToEndSessionProblem(e,t){const n=a(e),o=u(this.store,n)||[];if(!o.length)return null;const r=o[o.length-1];for(const e of o)if(e.time>t)return Object.assign({},e,{fixed:r.fixed});return r.fixed?null:r}async filterOutNotifiedErrorDevices(e){const t=u(this.store,"crypto.notified_error_devices")||{},n=[];for(const o of e){const{userId:e,deviceInfo:r}=o;e in t?r.deviceId in t[e]||(n.push(o),t[e][r.deviceId]=!0):(n.push(o),t[e]={[r.deviceId]:!0})}return h(this.store,"crypto.notified_error_devices",t),n}getEndToEndInboundGroupSession(e,t,n,o){o(u(this.store,s(e,t)),u(this.store,c(e,t)))}getAllEndToEndInboundGroupSessions(e,t){for(let e=0;e<this.store.length;++e){const n=this.store.key(e);n.startsWith("crypto.inboundgroupsessions/")&&t({senderKey:n.substr("crypto.inboundgroupsessions/".length,43),sessionId:n.substr("crypto.inboundgroupsessions/".length+44),sessionData:u(this.store,n)})}t(null)}addEndToEndInboundGroupSession(e,t,n,o){u(this.store,s(e,t))||this.storeEndToEndInboundGroupSession(e,t,n,o)}storeEndToEndInboundGroupSession(e,t,n,o){h(this.store,s(e,t),n)}storeEndToEndInboundGroupSessionWithheld(e,t,n,o){h(this.store,c(e,t),n)}getEndToEndDeviceData(e,t){t(u(this.store,"crypto.device_data"))}storeEndToEndDeviceData(e,t){h(this.store,"crypto.device_data",e)}storeEndToEndRoom(e,t,n){h(this.store,l(e),t)}getEndToEndRooms(e,t){const n={},o=l("");for(let e=0;e<this.store.length;++e){const t=this.store.key(e);if(t.startsWith(o)){n[t.substr(o.length)]=u(this.store,t)}}t(n)}getSessionsNeedingBackup(e){const t=u(this.store,"crypto.sessionsneedingbackup")||{},n=[];for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)){const t=o.substr(0,43),r=o.substr(44);if(this.getEndToEndInboundGroupSession(t,r,null,e=>{n.push({senderKey:t,sessionId:r,sessionData:e})}),e&&o.length>=e)break}return Promise.resolve(n)}countSessionsNeedingBackup(){const e=u(this.store,"crypto.sessionsneedingbackup")||{};return Promise.resolve(Object.keys(e).length)}unmarkSessionsNeedingBackup(e){const t=u(this.store,"crypto.sessionsneedingbackup")||{};for(const n of e)delete t[n.senderKey+"/"+n.sessionId];return h(this.store,"crypto.sessionsneedingbackup",t),Promise.resolve()}markSessionsNeedingBackup(e){const t=u(this.store,"crypto.sessionsneedingbackup")||{};for(const n of e)t[n.senderKey+"/"+n.sessionId]=!0;return h(this.store,"crypto.sessionsneedingbackup",t),Promise.resolve()}deleteAllData(){return this.store.removeItem("crypto.account"),Promise.resolve()}getAccount(e,t){t(u(this.store,"crypto.account"))}storeAccount(e,t){h(this.store,"crypto.account",t)}getCrossSigningKeys(e,t){t(u(this.store,"crypto.cross_signing_keys"))}getSecretStorePrivateKey(e,t,n){t(u(this.store,"crypto.ssss_cache."+n))}storeCrossSigningKeys(e,t){h(this.store,"crypto.cross_signing_keys",t)}storeSecretStorePrivateKey(e,t,n){h(this.store,"crypto.ssss_cache."+t,n)}doTxn(e,t,n){return Promise.resolve(n(null))}}function u(e,t){try{return JSON.parse(e.getItem(t))}catch(e){o.a.log("Error: Failed to get key %s: %s",t,e.stack||e),o.a.log(e.stack)}return null}function h(e,t,n){e.setItem(t,JSON.stringify(n))}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var o=n(0),r=n(156),i=n(744);function a(e){if(void 0===e)throw new Error("payloadString undefined");if(e.length>49152){const t=new Error("Message too long ("+e.length+" bytes). The maximum for an encrypted message is 49152 bytes.");throw t.data={errcode:"M_TOO_LARGE",error:"Payload too large for encrypted message"},t}}function s(e){this._cryptoStore=e,this._pickleKey="DEFAULT_KEY",this.deviceCurve25519Key=null,this.deviceEd25519Key=null,this._maxOneTimeKeys=null,this._outboundGroupSessionStore={},this._inboundGroupSessionMessageIndexes={},this._sessionsInProgress={},this._olmPrekeyPromise=Promise.resolve()}s.prototype.init=async function(t={}){let n;const i=new e.Olm.Account,{pickleKey:a,fromExportedDevice:s}=t;try{s?(a&&o.a.warn("ignoring opts.pickleKey because opts.fromExportedDevice is present."),this._pickleKey=s.pickleKey,await async function(e,t,n,o){await t.doTxn("readwrite",[r.a.STORE_ACCOUNT,r.a.STORE_SESSIONS],n=>{t.storeAccount(n,e.pickledAccount),e.sessions.forEach(e=>{const{deviceKey:o,sessionId:r}=e,i={session:e.session,lastReceivedMessageTs:e.lastReceivedMessageTs};t.storeEndToEndSession(o,r,i,n)})}),o.unpickle(n,e.pickledAccount)}(s,this._cryptoStore,this._pickleKey,i)):(a&&(this._pickleKey=a),await async function(e,t,n){await e.doTxn("readwrite",[r.a.STORE_ACCOUNT],o=>{e.getAccount(o,r=>{null!==r?n.unpickle(t,r):(n.create(),r=n.pickle(t),e.storeAccount(o,r))})})}(this._cryptoStore,this._pickleKey,i)),n=JSON.parse(i.identity_keys()),this._maxOneTimeKeys=i.max_number_of_one_time_keys()}finally{i.free()}this.deviceCurve25519Key=n.curve25519,this.deviceEd25519Key=n.ed25519},s.getOlmVersion=function(){return e.Olm.get_library_version()},s.prototype._getAccount=function(t,n){this._cryptoStore.getAccount(t,t=>{const o=new e.Olm.Account;try{o.unpickle(this._pickleKey,t),n(o)}finally{o.free()}})},s.prototype._storeAccount=function(e,t){this._cryptoStore.storeAccount(e,t.pickle(this._pickleKey))},s.prototype.export=async function(){const e={pickleKey:this._pickleKey};return await this._cryptoStore.doTxn("readonly",[r.a.STORE_ACCOUNT,r.a.STORE_SESSIONS],t=>{this._cryptoStore.getAccount(t,t=>{e.pickledAccount=t}),e.sessions=[],this._cryptoStore.getAllEndToEndSessions(t,t=>{e.sessions.push(t)})}),e},s.prototype._getSession=function(e,t,n,o){this._cryptoStore.getEndToEndSession(e,t,n,e=>{this._unpickleSession(e,o)})},s.prototype._unpickleSession=function(t,n){const o=new e.Olm.Session;try{o.unpickle(this._pickleKey,t.session);n(Object.assign({},t,{session:o}))}finally{o.free()}},s.prototype._saveSession=function(e,t,n){const o=t.session.session_id(),r=Object.assign(t,{session:t.session.pickle(this._pickleKey)});this._cryptoStore.storeEndToEndSession(e,o,r,n)},s.prototype._getUtility=function(t){const n=new e.Olm.Utility;try{return t(n)}finally{n.free()}},s.prototype.sign=async function(e){let t;return await this._cryptoStore.doTxn("readonly",[r.a.STORE_ACCOUNT],n=>{this._getAccount(n,n=>{t=n.sign(e)})}),t},s.prototype.getOneTimeKeys=async function(){let e;return await this._cryptoStore.doTxn("readonly",[r.a.STORE_ACCOUNT],t=>{this._getAccount(t,t=>{e=JSON.parse(t.one_time_keys())})}),e},s.prototype.maxNumberOfOneTimeKeys=function(){return this._maxOneTimeKeys},s.prototype.markKeysAsPublished=async function(){await this._cryptoStore.doTxn("readwrite",[r.a.STORE_ACCOUNT],e=>{this._getAccount(e,t=>{t.mark_keys_as_published(),this._storeAccount(e,t)})})},s.prototype.generateOneTimeKeys=function(e){return this._cryptoStore.doTxn("readwrite",[r.a.STORE_ACCOUNT],t=>{this._getAccount(t,n=>{n.generate_one_time_keys(e),this._storeAccount(t,n)})})},s.prototype.generateFallbackKey=async function(){await this._cryptoStore.doTxn("readwrite",[r.a.STORE_ACCOUNT],e=>{this._getAccount(e,t=>{t.generate_fallback_key(),this._storeAccount(e,t)})})},s.prototype.getFallbackKey=async function(){let e;return await this._cryptoStore.doTxn("readonly",[r.a.STORE_ACCOUNT],t=>{this._getAccount(t,t=>{e=JSON.parse(t.fallback_key())})}),e},s.prototype.createOutboundSession=async function(t,n){let i;return await this._cryptoStore.doTxn("readwrite",[r.a.STORE_ACCOUNT,r.a.STORE_SESSIONS],o=>{this._getAccount(o,r=>{const a=new e.Olm.Session;try{a.create_outbound(r,t,n),i=a.session_id(),this._storeAccount(o,r);const e={session:a,lastReceivedMessageTs:Date.now()};this._saveSession(t,e,o)}finally{a.free()}})},o.a.withPrefix("[createOutboundSession]")),i},s.prototype.createInboundSession=async function(t,n,i){if(0!==n)throw new Error("Need messageType == 0 to create inbound session");let a;return await this._cryptoStore.doTxn("readwrite",[r.a.STORE_ACCOUNT,r.a.STORE_SESSIONS],o=>{this._getAccount(o,r=>{const s=new e.Olm.Session;try{s.create_inbound_from(r,t,i),r.remove_one_time_keys(s),this._storeAccount(o,r);const e=s.decrypt(n,i),c={session:s,lastReceivedMessageTs:Date.now()};this._saveSession(t,c,o),a={payload:e,session_id:s.session_id()}}finally{s.free()}})},o.a.withPrefix("[createInboundSession]")),a},s.prototype.getSessionIdsForDevice=async function(e){const t=o.a.withPrefix("[getSessionIdsForDevice]");if(this._sessionsInProgress[e]){t.debug(`Waiting for Olm session for ${e} to be created`);try{await this._sessionsInProgress[e]}catch(e){}}let n;return await this._cryptoStore.doTxn("readonly",[r.a.STORE_SESSIONS],t=>{this._cryptoStore.getEndToEndSessions(e,t,e=>{n=Object.keys(e)})},t),n},s.prototype.getSessionIdForDevice=async function(e,t,n){const o=await this.getSessionInfoForDevice(e,t,n);if(0===o.length)return null;let r=0;for(let e=1;e<o.length;e++){const t=o[e],n=void 0===t.lastReceivedMessageTs?0:t.lastReceivedMessageTs,i=o[r],a=void 0===i.lastReceivedMessageTs?0:i.lastReceivedMessageTs;(n>a||n===a&&t.sessionId<i.sessionId)&&(r=e)}return o[r].sessionId},s.prototype.getSessionInfoForDevice=async function(e,t,n=o.a){if(n=n.withPrefix("[getSessionInfoForDevice]"),this._sessionsInProgress[e]&&!t){n.debug(`Waiting for Olm session for ${e} to be created`);try{await this._sessionsInProgress[e]}catch(e){}}const i=[];return await this._cryptoStore.doTxn("readonly",[r.a.STORE_SESSIONS],t=>{this._cryptoStore.getEndToEndSessions(e,t,e=>{const t=Object.keys(e).sort();for(const n of t)this._unpickleSession(e[n],e=>{i.push({lastReceivedMessageTs:e.lastReceivedMessageTs,hasReceivedMessage:e.session.has_received_message(),sessionId:n})})})},n),i},s.prototype.encryptMessage=async function(e,t,n){let i;return a(n),await this._cryptoStore.doTxn("readwrite",[r.a.STORE_SESSIONS],r=>{this._getSession(e,t,r,a=>{const s=a.session.describe();o.a.log("encryptMessage: Olm Session ID "+t+" to "+e+": "+s),i=a.session.encrypt(n),this._saveSession(e,a,r)})},o.a.withPrefix("[encryptMessage]")),i},s.prototype.decryptMessage=async function(e,t,n,i){let a;return await this._cryptoStore.doTxn("readwrite",[r.a.STORE_SESSIONS],r=>{this._getSession(e,t,r,s=>{const c=s.session.describe();o.a.log("decryptMessage: Olm Session ID "+t+" from "+e+": "+c),a=s.session.decrypt(n,i),s.lastReceivedMessageTs=Date.now(),this._saveSession(e,s,r)})},o.a.withPrefix("[decryptMessage]")),a},s.prototype.matchesSession=async function(e,t,n,i){if(0!==n)return!1;let a;return await this._cryptoStore.doTxn("readonly",[r.a.STORE_SESSIONS],n=>{this._getSession(e,t,n,e=>{a=e.session.matches_inbound(i)})},o.a.withPrefix("[matchesSession]")),a},s.prototype.recordSessionProblem=async function(e,t,n){await this._cryptoStore.storeEndToEndSessionProblem(e,t,n)},s.prototype.sessionMayHaveProblems=async function(e,t){return await this._cryptoStore.getEndToEndSessionProblem(e,t)},s.prototype.filterOutNotifiedErrorDevices=async function(e){return await this._cryptoStore.filterOutNotifiedErrorDevices(e)},s.prototype._saveOutboundGroupSession=function(e){const t=e.pickle(this._pickleKey);this._outboundGroupSessionStore[e.session_id()]=t},s.prototype._getOutboundGroupSession=function(t,n){const o=this._outboundGroupSessionStore[t];if(void 0===o)throw new Error("Unknown outbound group session "+t);const r=new e.Olm.OutboundGroupSession;try{return r.unpickle(this._pickleKey,o),n(r)}finally{r.free()}},s.prototype.createOutboundGroupSession=function(){const t=new e.Olm.OutboundGroupSession;try{return t.create(),this._saveOutboundGroupSession(t),t.session_id()}finally{t.free()}},s.prototype.encryptGroupMessage=function(e,t){const n=this;return o.a.log("encrypting msg with megolm session "+e),a(t),this._getOutboundGroupSession(e,(function(e){const o=e.encrypt(t);return n._saveOutboundGroupSession(e),o}))},s.prototype.getOutboundGroupSessionKey=function(e){return this._getOutboundGroupSession(e,(function(e){return{chain_index:e.message_index(),key:e.session_key()}}))},s.prototype._unpickleInboundGroupSession=function(t,n){const o=new e.Olm.InboundGroupSession;try{return o.unpickle(this._pickleKey,t.session),n(o)}finally{o.free()}},s.prototype._getInboundGroupSession=function(e,t,n,o,r){this._cryptoStore.getEndToEndInboundGroupSession(t,n,o,(t,n)=>{if(null!==t){if(null!==e&&e!==t.room_id)throw new Error("Mismatched room_id for inbound group session (expected "+t.room_id+", was "+e+")");this._unpickleInboundGroupSession(t,e=>{r(e,t,n)})}else r(null,null,n)})},s.prototype.addInboundGroupSession=async function(t,n,i,a,s,c,l,d={}){await this._cryptoStore.doTxn("readwrite",[r.a.STORE_INBOUND_GROUP_SESSIONS,r.a.STORE_INBOUND_GROUP_SESSIONS_WITHHELD,r.a.STORE_SHARED_HISTORY_INBOUND_GROUP_SESSIONS],r=>{this._getInboundGroupSession(t,n,a,r,(u,h)=>{const p=new e.Olm.InboundGroupSession;try{if(l?p.import_session(s):p.create(s),a!=p.session_id())throw new Error("Mismatched group session ID from senderKey: "+n);if(u&&(o.a.log("Update for megolm session "+n+"/"+a),u.first_known_index()<=p.first_known_index()&&(u.first_known_index()!=p.first_known_index()||d.untrusted||!h.untrusted)))return void o.a.log("Keeping existing megolm session "+a);o.a.info("Storing megolm session "+n+"/"+a+" with first index "+p.first_known_index());const e=Object.assign({},d,{room_id:t,session:p.pickle(this._pickleKey),keysClaimed:c,forwardingCurve25519KeyChain:i});this._cryptoStore.storeEndToEndInboundGroupSession(n,a,e,r),!u&&d.sharedHistory&&this._cryptoStore.addSharedHistoryInboundGroupSession(t,n,a,r)}finally{p.free()}})},o.a.withPrefix("[addInboundGroupSession]"))},s.prototype.addInboundGroupSessionWithheld=async function(e,t,n,o,i){await this._cryptoStore.doTxn("readwrite",[r.a.STORE_INBOUND_GROUP_SESSIONS_WITHHELD],r=>{this._cryptoStore.storeEndToEndInboundGroupSessionWithheld(t,n,{room_id:e,code:o,reason:i},r)})};const c={"m.unverified":"The sender has disabled encrypting to unverified devices.","m.blacklisted":"The sender has blocked you.","m.unauthorised":"You are not authorised to read the message.","m.no_olm":"Unable to establish a secure channel."};function l(e){return e.code&&e.code in c?c[e.code]:e.reason?e.reason:"decryption key withheld"}s.prototype.decryptGroupMessage=async function(e,t,n,a,s,c){let d,u;if(await this._cryptoStore.doTxn("readwrite",[r.a.STORE_INBOUND_GROUP_SESSIONS,r.a.STORE_INBOUND_GROUP_SESSIONS_WITHHELD],o=>{this._getInboundGroupSession(e,t,n,o,(e,r,h)=>{if(null===e)return h&&(u=new i.b("MEGOLM_UNKNOWN_INBOUND_SESSION_ID",l(h),{session:t+"|"+n})),void(d=null);let p;try{p=e.decrypt(a)}catch(e){return void(u=e&&"OLM.UNKNOWN_MESSAGE_INDEX"===e.message&&h?new i.b("MEGOLM_UNKNOWN_INBOUND_SESSION_ID",l(h),{session:t+"|"+n}):e)}let m=p.plaintext;if(void 0===m)m=p;else{const e=t+"|"+n+"|"+p.message_index;if(e in this._inboundGroupSessionMessageIndexes){const t=this._inboundGroupSessionMessageIndexes[e];if(t.id!==s||t.timestamp!==c)return void(u=new Error("Duplicate message index, possible replay attack: "+e))}this._inboundGroupSessionMessageIndexes[e]={id:s,timestamp:c}}r.session=e.pickle(this._pickleKey),this._cryptoStore.storeEndToEndInboundGroupSession(t,n,r,o),d={result:m,keysClaimed:r.keysClaimed||{},senderKey:t,forwardingCurve25519KeyChain:r.forwardingCurve25519KeyChain||[],untrusted:r.untrusted}})},o.a.withPrefix("[decryptGroupMessage]")),u)throw u;return d},s.prototype.hasInboundSessionKeys=async function(e,t,n){let i;return await this._cryptoStore.doTxn("readonly",[r.a.STORE_INBOUND_GROUP_SESSIONS,r.a.STORE_INBOUND_GROUP_SESSIONS_WITHHELD],r=>{this._cryptoStore.getEndToEndInboundGroupSession(t,n,r,r=>{null!==r?e!==r.room_id?(o.a.warn(`requested keys for inbound group session ${t}|`+n+", with incorrect room_id "+`(expected ${r.room_id}, `+`was ${e})`),i=!1):i=!0:i=!1})},o.a.withPrefix("[hasInboundSessionKeys]")),i},s.prototype.getInboundGroupSessionKey=async function(e,t,n,i){let a;return await this._cryptoStore.doTxn("readonly",[r.a.STORE_INBOUND_GROUP_SESSIONS,r.a.STORE_INBOUND_GROUP_SESSIONS_WITHHELD],o=>{this._getInboundGroupSession(e,t,n,o,(e,t)=>{if(null===e)return void(a=null);void 0===i&&(i=e.first_known_index());const n=e.export_session(i),o=(t.keysClaimed||{}).ed25519||null;a={chain_index:i,key:n,forwarding_curve25519_key_chain:t.forwardingCurve25519KeyChain||[],sender_claimed_ed25519_key:o,shared_history:t.sharedHistory||!1}})},o.a.withPrefix("[getInboundGroupSessionKey]")),a},s.prototype.exportInboundGroupSession=function(e,t,n){return this._unpickleInboundGroupSession(n,o=>{const r=o.first_known_index();return{sender_key:e,sender_claimed_keys:n.keysClaimed,room_id:n.room_id,session_id:t,session_key:o.export_session(r),forwarding_curve25519_key_chain:o.forwardingCurve25519KeyChain||[],first_known_index:o.first_known_index(),"org.matrix.msc3061.shared_history":n.sharedHistory||!1}})},s.prototype.getSharedHistoryInboundGroupSessions=async function(e){let t;return await this._cryptoStore.doTxn("readonly",[r.a.STORE_SHARED_HISTORY_INBOUND_GROUP_SESSIONS],n=>{t=this._cryptoStore.getSharedHistoryInboundGroupSessions(e,n)},o.a.withPrefix("[getSharedHistoryInboundGroupSessionsForRoom]")),t},s.prototype.verifySignature=function(e,t,n){this._getUtility((function(o){o.ed25519_verify(e,t,n)}))}}).call(this,n(6))},function(e,t,n){"use strict";(function(e,o){n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var r=n(83),i=n.n(r),a=n(135),s=n(156),c=n(284),l=n(332),d=n.n(l),u=n(0);const h="org.matrix.msc2697.v1.olm.libolm_pickle";class p{constructor(e){this.crypto=e,i()(this,"inProgress",!1),i()(this,"timeoutId",void 0),i()(this,"key",void 0),i()(this,"keyInfo",void 0),i()(this,"deviceDisplayName",void 0),this.getDehydrationKeyFromCache()}async getDehydrationKeyFromCache(){return await this.crypto._cryptoStore.doTxn("readonly",[s.a.STORE_ACCOUNT],t=>{this.crypto._cryptoStore.getSecretStorePrivateKey(t,async t=>{if(t){const{key:n,keyInfo:r,deviceDisplayName:i,time:s}=t,l=e.from(this.crypto._olmDevice._pickleKey),d=await Object(c.a)(n,l,h);this.key=Object(a.decodeBase64)(d),this.keyInfo=r,this.deviceDisplayName=i;const u=Date.now(),p=Math.max(1,s+6048e5-u);this.timeoutId=o.setTimeout(this.dehydrateDevice.bind(this),p)}},"dehydration")})}async setKeyAndQueueDehydration(e,t={},n){await this.setKey(e,t,n)||this.dehydrateDevice()}async setKey(e,t={},n){if(!e)return this.timeoutId&&(o.clearTimeout(this.timeoutId),this.timeoutId=void 0),await this.crypto._cryptoStore.doTxn("readwrite",[s.a.STORE_ACCOUNT],e=>{this.crypto._cryptoStore.storeSecretStorePrivateKey(e,"dehydration",null)}),this.key=void 0,void(this.keyInfo=void 0);let r=this.key&&e.length==this.key.length;for(let t=0;r&&t<e.length;t++)e[t]!=this.key[t]&&(r=!1);return r||(this.key=e,this.keyInfo=t,this.deviceDisplayName=n),r}async dehydrateDevice(){if(this.inProgress)u.a.log("Dehydration already in progress -- not starting new dehydration");else{this.inProgress=!0,this.timeoutId&&(o.clearTimeout(this.timeoutId),this.timeoutId=void 0);try{const t=e.from(this.crypto._olmDevice._pickleKey),n=await Object(c.b)(Object(a.encodeBase64)(this.key),t,h);await this.crypto._cryptoStore.doTxn("readwrite",[s.a.STORE_ACCOUNT],e=>{this.crypto._cryptoStore.storeSecretStorePrivateKey(e,"dehydration",{keyInfo:this.keyInfo,key:n,deviceDisplayName:this.deviceDisplayName,time:Date.now()})}),u.a.log("Attempting to dehydrate device"),u.a.log("Creating account");const r=new o.Olm.Account;r.create();const i=JSON.parse(r.identity_keys()),l=r.max_number_of_one_time_keys();r.generate_one_time_keys(l/2),r.generate_fallback_key();const p=JSON.parse(r.one_time_keys()),m=JSON.parse(r.fallback_key());r.mark_keys_as_published();const g=r.pickle(new Uint8Array(this.key)),f={algorithm:h,account:g};this.keyInfo.passphrase&&(f.passphrase=this.keyInfo.passphrase),u.a.log("Uploading account to server");const _=(await this.crypto._baseApis._http.authedRequest(void 0,"PUT","/dehydrated_device",void 0,{device_data:f,initial_device_display_name:this.deviceDisplayName},{prefix:"/_matrix/client/unstable/org.matrix.msc2697.v2"})).device_id;u.a.log("Preparing device keys",_);const b={algorithms:this.crypto._supportedAlgorithms,device_id:_,user_id:this.crypto._userId,keys:{["ed25519:"+_]:i.ed25519,["curve25519:"+_]:i.curve25519}},v=r.sign(d.a.stringify(b));b.signatures={[this.crypto._userId]:{["ed25519:"+_]:v}},this.crypto._crossSigningInfo.getId("self_signing")&&await this.crypto._crossSigningInfo.signObject(b,"self_signing"),u.a.log("Preparing one-time keys");const y={};for(const[e,t]of Object.entries(p.curve25519)){const n={key:t},o=r.sign(d.a.stringify(n));n.signatures={[this.crypto._userId]:{["ed25519:"+_]:o}},y["signed_curve25519:"+e]=n}u.a.log("Preparing fallback keys");const E={};for(const[e,t]of Object.entries(m.curve25519)){const n={key:t,fallback:!0},o=r.sign(d.a.stringify(n));n.signatures={[this.crypto._userId]:{["ed25519:"+_]:o}},E["signed_curve25519:"+e]=n}return u.a.log("Uploading keys to server"),await this.crypto._baseApis._http.authedRequest(void 0,"POST","/keys/upload/"+encodeURI(_),void 0,{device_keys:b,one_time_keys:y,"org.matrix.msc2732.fallback_keys":E}),u.a.log("Done dehydrating"),this.timeoutId=o.setTimeout(this.dehydrateDevice.bind(this),6048e5),_}finally{this.inProgress=!1}}}stop(){this.timeoutId&&(o.clearTimeout(this.timeoutId),this.timeoutId=void 0)}}}).call(this,n(32).Buffer,n(6))},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(87),p=n(84),m=n(89),g=n(101),f=n(85);let _=Object(f.a)("views.settings.IntegrationManager")((i=r=class extends l.a.Component{constructor(e){super(e),s()(this,"onKeyDown",e=>{e.key===g.a.ESCAPE&&(e.stopPropagation(),e.preventDefault(),this.props.onFinished())}),s()(this,"onAction",e=>{"close_scalar"===e.action&&this.props.onFinished()}),s()(this,"onError",()=>{this.setState({errored:!0})}),this.state={errored:!1}}componentDidMount(){this.dispatcherRef=m.a.register(this.onAction),document.addEventListener("keydown",this.onKeyDown)}componentWillUnmount(){m.a.unregister(this.dispatcherRef),document.removeEventListener("keydown",this.onKeyDown)}render(){if(this.props.loading){const e=h.getComponent("elements.Spinner");return l.a.createElement("div",{className:"mx_IntegrationManager_loading"},l.a.createElement("h3",null,Object(p.a)("Connecting to integration manager...")),l.a.createElement(e,null))}return!this.props.connected||this.state.errored?l.a.createElement("div",{className:"mx_IntegrationManager_error"},l.a.createElement("h3",null,Object(p.a)("Cannot connect to integration manager")),l.a.createElement("p",null,Object(p.a)("The integration manager is offline or it cannot reach your homeserver."))):l.a.createElement("iframe",{src:this.props.url,onError:this.onError})}},s()(r,"propTypes",{connected:u.a.bool.isRequired,loading:u.a.bool.isRequired,url:u.a.string,onFinished:u.a.func.isRequired}),s()(r,"defaultProps",{connected:!0,loading:!1}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(84),p=n(94),m=n(87),g=n(85);let f=Object(g.a)("views.dialogs.IntegrationsImpossibleDialog")((i=r=class extends l.a.Component{constructor(...e){super(...e),s()(this,"_onAcknowledgeClick",()=>{this.props.onFinished()})}render(){const e=p.a.get().brand,t=m.getComponent("views.dialogs.BaseDialog"),n=m.getComponent("views.elements.DialogButtons");return l.a.createElement(t,{className:"mx_IntegrationsImpossibleDialog",hasCancel:!1,onFinished:this.props.onFinished,title:Object(h.a)("Integrations not allowed")},l.a.createElement("div",{className:"mx_IntegrationsImpossibleDialog_content"},l.a.createElement("p",null,Object(h.a)("Your %(brand)s doesn't allow you to use an Integration Manager to do this. Please contact an admin.",{brand:e}))),l.a.createElement(n,{primaryButton:Object(h.a)("OK"),onPrimaryButtonClick:this._onAcknowledgeClick,hasCancel:!1}))}},s()(r,"propTypes",{onFinished:u.a.func.isRequired}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(167),p=n(168),m=n(87),g=n(287),f=n(92),_=n.n(f),b=n(603),v=n(85);let y=Object(v.a)("views.dialogs.TabbedIntegrationManagerDialog")((i=r=class extends l.a.Component{constructor(e){super(e),s()(this,"openManager",async(e,t=!1)=>{if(e===this.state.currentIndex&&!t)return;const n=this.state.managers[e],o=n.getScalarClient();this.setState({busy:!0,currentIndex:e,currentLoading:!0,currentConnected:!1,currentScalarClient:o}),b.a(n.uiUrl),o.setTermsInteractionCallback((e,t)=>Object(g.c)(e,t,"mx_TermsDialog_forIntegrationManager"));try{await o.connect(),o.hasCredentials()?this.setState({busy:!1,currentLoading:!1,currentConnected:!0}):this.setState({busy:!1,currentLoading:!1,currentConnected:!1})}catch(e){if(e instanceof g.b)return;console.error(e),this.setState({busy:!1,currentLoading:!1,currentConnected:!1})}}),this.state={managers:h.a.sharedInstance().getOrderedManagers(),busy:!0,currentIndex:0,currentConnected:!1,currentLoading:!0,currentScalarClient:null}}componentDidMount(){this.openManager(0,!0)}_renderTabs(){const e=m.getComponent("views.elements.AccessibleButton");return this.state.managers.map((t,n)=>{const o=_()({mx_TabbedIntegrationManagerDialog_tab:!0,mx_TabbedIntegrationManagerDialog_currentTab:this.state.currentIndex===n});return l.a.createElement(e,{className:o,onClick:()=>this.openManager(n),key:"tab_"+n,disabled:this.state.busy},t.name)})}_renderTab(){const e=m.getComponent("views.settings.IntegrationManager");let t=null;return this.state.currentScalarClient&&(t=this.state.currentScalarClient.getScalarInterfaceUrlForRoom(this.props.room,this.props.screen,this.props.integrationId)),l.a.createElement(e,{configured:!0,loading:this.state.currentLoading,connected:this.state.currentConnected,url:t,onFinished:()=>{}})}render(){return l.a.createElement("div",{className:"mx_TabbedIntegrationManagerDialog_container"},l.a.createElement("div",{className:"mx_TabbedIntegrationManagerDialog_tabs"},this._renderTabs()),l.a.createElement("div",{className:"mx_TabbedIntegrationManagerDialog_currentManager"},this._renderTab()))}},s()(r,"propTypes",{onFinished:u.a.func.isRequired,room:u.a.instanceOf(p.a),screen:u.a.string,integrationId:u.a.string}),o=i))||o},function(e,t,n){"use strict";n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return E})),n.d(t,"a",(function(){return S}));var o=n(88),r=n(103),i=n(89),a=n(132),s=n(126),c=n(84),l=n(167),d=n(138),u=n(128);function h(e,t){const n=Object(u.a)(e.data);n.response=t,e.source.postMessage(n,e.origin)}function p(e,t,n){console.error("Action:"+e.data.action+" failed with message: "+t);const o=Object(u.a)(e.data);o.response={error:{message:t}},n&&(o.response.error._error=n),e.source.postMessage(o,e.origin)}function m(e,t){const n=e.data.widget_id;let o=e.data.type;const r=e.data.url,s=e.data.name,l=e.data.data,u=e.data.userWidget;if(n&&void 0!==r){if(null!==r){if(void 0!==s&&"string"!=typeof s)return void p(e,Object(c.a)("Unable to create widget."),new Error("Optional field 'name' must be a string."));if(void 0!==l&&!(l instanceof Object))return void p(e,Object(c.a)("Unable to create widget."),new Error("Optional field 'data' must be an Object."));if("string"!=typeof o)return void p(e,Object(c.a)("Unable to create widget."),new Error("Field 'type' must be a string."));if("string"!=typeof r)return void p(e,Object(c.a)("Unable to create widget."),new Error("Field 'url' must be a string or null."))}o=d.a.fromString(o),u?a.a.setUserWidget(n,o,r,s,l).then(()=>{h(e,{success:!0}),i.a.dispatch({action:"user_widget_updated"})}).catch(t=>{p(e,Object(c.a)("Unable to create widget."),t)}):(t||p(e,Object(c.a)("Missing roomId."),null),a.a.setRoomWidget(t,n,o,r,s,l).then(()=>{h(e,{success:!0})},t=>{p(e,Object(c.a)("Failed to send request."),t)}))}else p(e,Object(c.a)("Unable to create widget."),new Error("Missing required widget fields."))}function g(e,t){const n=o.a.get();if(!n)return void p(e,Object(c.a)("You need to be logged in."));let r=[];if(t){const o=n.getRoom(t);if(!o)return void p(e,Object(c.a)("This room is not recognised."));r=a.a.getRoomWidgets(o).map(e=>e.event)}const i=a.a.getUserWidgetsArray();r=r.concat(i),h(e,r)}function f(e,t,n,r){const i=o.a.get();if(!i)return void p(e,Object(c.a)("You need to be logged in."));const a=i.getRoom(t);if(!a)return void p(e,Object(c.a)("This room is not recognised."));const s=a.currentState.getStateEvents(n,r);h(e,s?s.getContent():null)}const _=function(e){let t,n;e.origin||(e.origin=e.originalEvent.origin);try{v||(v=l.a.sharedInstance().getPrimaryManager().uiUrl),t=new URL(v)}catch(e){return}try{n=new URL(e.origin)}catch(e){return}if(t.origin!==n.origin||!e.data.action||e.data.api)return;if("close_scalar"===e.data.action)return i.a.dispatch({action:"close_scalar"}),void h(e,null);const a=e.data.room_id,d=e.data.user_id;if(!a)return"get_widgets"===e.data.action?void g(e,null):"set_widget"===e.data.action?void m(e,null):void p(e,Object(c.a)("Missing room_id in request"));if(a===s.a.getRoomId())if("get_widgets"!==e.data.action)if("set_widget"!==e.data.action)if("join_rules_state"!==e.data.action)if("set_plumbing_state"!==e.data.action)if("get_membership_count"!==e.data.action)if("get_room_enc_state"!==e.data.action)if("can_send_event"!==e.data.action)if(d)switch(e.data.action){case"membership_state":!function(e,t,n){console.log(`membership_state of ${n} in room ${t} requested.`),f(e,t,"m.room.member",n)}(e,a,d);break;case"invite":!function(e,t,n){console.log(`Received request to invite ${n} into room ${t}`);const r=o.a.get();if(!r)return void p(e,Object(c.a)("You need to be logged in."));const i=r.getRoom(t);if(i){const t=i.getMember(n);if(t&&"invite"===t.membership)return void h(e,{success:!0})}r.invite(t,n).then((function(){h(e,{success:!0})}),(function(t){p(e,Object(c.a)("You need to be able to invite users to do that."),t)}))}(e,a,d);break;case"bot_options":!function(e,t,n){console.log(`bot_options of ${n} in room ${t} requested.`),f(e,t,"m.room.bot.options","_"+n)}(e,a,d);break;case"set_bot_options":!function(e,t,n){console.log(`Received request to set options for bot ${n} in room ${t}`);const r=o.a.get();r?r.sendStateEvent(t,"m.room.bot.options",e.data.content,"_"+n).then(()=>{h(e,{success:!0})},t=>{p(e,t.message?t.message:Object(c.a)("Failed to send request."),t)}):p(e,Object(c.a)("You need to be logged in."))}(e,a,d);break;case"set_bot_power":!function(e,t,n,i){if(!(Number.isInteger(i)&&i>=0))return void p(e,Object(c.a)("Power level must be positive integer."));console.log(`Received request to set power level to ${i} for bot ${n} in room ${t}.`);const a=o.a.get();a?a.getStateEvent(t,"m.room.power_levels","").then(o=>{const s=new r.b({type:"m.room.power_levels",content:o});a.setPowerLevel(t,n,i,s).then(()=>{h(e,{success:!0})},t=>{p(e,t.message?t.message:Object(c.a)("Failed to send request."),t)})}):p(e,Object(c.a)("You need to be logged in."))}(e,a,d,e.data.level);break;default:console.warn("Unhandled postMessage event with action '"+e.data.action+"'")}else p(e,Object(c.a)("Missing user_id in request"));else!function(e,t){const n=""+e.data.event_type,r=Boolean(e.data.is_state),i=o.a.get();if(!i)return void p(e,Object(c.a)("You need to be logged in."));const a=i.getRoom(t);if(!a)return void p(e,Object(c.a)("This room is not recognised."));if("join"!==a.getMyMembership())return void p(e,Object(c.a)("You are not in this room."));const s=i.credentials.userId;let l=!1;l=r?a.currentState.maySendStateEvent(n,s):a.currentState.maySendEvent(n,s),l?h(e,!0):p(e,Object(c.a)("You do not have permission to do that in this room."))}(e,a);else!function(e,t){const n=o.a.get();if(!n)return void p(e,Object(c.a)("You need to be logged in."));if(!n.getRoom(t))return void p(e,Object(c.a)("This room is not recognised."));h(e,o.a.get().isRoomEncrypted(t))}(e,a);else!function(e,t){const n=o.a.get();if(!n)return void p(e,Object(c.a)("You need to be logged in."));const r=n.getRoom(t);if(!r)return void p(e,Object(c.a)("This room is not recognised."));h(e,r.getJoinedMemberCount())}(e,a);else!function(e,t,n){if("string"!=typeof n)throw new Error("Plumbing state status should be a string");console.log(`Received request to set plumbing state to status "${n}" in room ${t}`);const r=o.a.get();r?r.sendStateEvent(t,"m.room.plumbing",{status:n}).then(()=>{h(e,{success:!0})},t=>{p(e,t.message?t.message:Object(c.a)("Failed to send request."),t)}):p(e,Object(c.a)("You need to be logged in."))}(e,a,e.data.status);else!function(e,t){console.log(`join_rules of ${t} requested.`),f(e,t,"m.room.join_rules","")}(e,a);else m(e,a);else g(e,a);else p(e,Object(c.a)("Room %(roomId)s not visible",{roomId:a}))};let b=0,v=null;function y(){0===b&&window.addEventListener("message",_,!1),b+=1}function E(){if(b-=1,0===b&&window.removeEventListener("message",_),b<0){const e=new Error("ScalarMessaging: mismatched startListening / stopListening detected. Negative count");console.error(e)}}function S(e){v=e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(84),p=n(87),m=n(89),g=n(96),f=n(85);let _=Object(f.a)("views.dialogs.IntegrationsDisabledDialog")((i=r=class extends l.a.Component{constructor(...e){super(...e),s()(this,"_onAcknowledgeClick",()=>{this.props.onFinished()}),s()(this,"_onOpenSettingsClick",()=>{this.props.onFinished(),m.a.fire(g.a.ViewUserSettings)})}render(){const e=p.getComponent("views.dialogs.BaseDialog"),t=p.getComponent("views.elements.DialogButtons");return l.a.createElement(e,{className:"mx_IntegrationsDisabledDialog",hasCancel:!0,onFinished:this.props.onFinished,title:Object(h.a)("Integrations are disabled")},l.a.createElement("div",{className:"mx_IntegrationsDisabledDialog_content"},l.a.createElement("p",null,Object(h.a)("Enable 'Manage Integrations' in Settings to do this."))),l.a.createElement(t,{primaryButton:Object(h.a)("Settings"),onPrimaryButtonClick:this._onOpenSettingsClick,cancelButton:Object(h.a)("OK"),onCancel:this._onAcknowledgeClick}))}},s()(r,"propTypes",{onFinished:u.a.func.isRequired}),o=i))||o},function(e,t,n){"use strict";function o(e,t,n){if(void 0===n&&(n={}),!t.codes){t.codes={};for(var o=0;o<t.chars.length;++o)t.codes[t.chars[o]]=o}if(!n.loose&&e.length*t.bits&7)throw new SyntaxError("Invalid padding");for(var r=e.length;"="===e[r-1];)if(--r,!(n.loose||(e.length-r)*t.bits&7))throw new SyntaxError("Invalid padding");for(var i=new(n.out||Uint8Array)(r*t.bits/8|0),a=0,s=0,c=0,l=0;l<r;++l){var d=t.codes[e[l]];if(void 0===d)throw new SyntaxError("Invalid character "+e[l]);s=s<<t.bits|d,(a+=t.bits)>=8&&(a-=8,i[c++]=255&s>>a)}if(a>=t.bits||255&s<<8-a)throw new SyntaxError("Unexpected end of data");return i}function r(e,t,n){void 0===n&&(n={});for(var o=n.pad,r=void 0===o||o,i=(1<<t.bits)-1,a="",s=0,c=0,l=0;l<e.length;++l)for(c=c<<8|255&e[l],s+=8;s>t.bits;)s-=t.bits,a+=t.chars[i&c>>s];if(s&&(a+=t.chars[i&c<<t.bits-s]),r)for(;a.length*t.bits&7;)a+="=";return a}Object.defineProperty(t,"__esModule",{value:!0});var i={chars:"0123456789ABCDEF",bits:4},a={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bits:5},s={chars:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bits:5},c={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bits:6},l={chars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bits:6},d={parse:function(e,t){return o(e.toUpperCase(),i,t)},stringify:function(e,t){return r(e,i,t)}},u={parse:function(e,t){return void 0===t&&(t={}),o(t.loose?e.toUpperCase().replace(/0/g,"O").replace(/1/g,"L").replace(/8/g,"B"):e,a,t)},stringify:function(e,t){return r(e,a,t)}},h={parse:function(e,t){return o(e,s,t)},stringify:function(e,t){return r(e,s,t)}},p={parse:function(e,t){return o(e,c,t)},stringify:function(e,t){return r(e,c,t)}},m={parse:function(e,t){return o(e,l,t)},stringify:function(e,t){return r(e,l,t)}},g={parse:o,stringify:r};t.base16=d,t.base32=u,t.base32hex=h,t.base64=p,t.base64url=m,t.codec=g},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(84),l=n(122),d=n(93),u=n(131),h=n(85);let p;!function(e){e.Screens="screens",e.Windows="windows"}(p||(p={}));class m extends s.a.Component{constructor(e){super(e),i()(this,"onClick",e=>{this.props.onSelect(this.props.source)})}render(){return s.a.createElement(d.a,{className:"mx_desktopCapturerSourcePicker_stream_button",title:this.props.source.name,onClick:this.onClick},s.a.createElement("img",{className:"mx_desktopCapturerSourcePicker_stream_thumbnail",src:this.props.source.thumbnailURL}),s.a.createElement("span",{className:"mx_desktopCapturerSourcePicker_stream_name"},this.props.source.name))}}let g=Object(h.a)("views.elements.DesktopCapturerSourcePicker")(o=class extends s.a.Component{constructor(e){super(e),i()(this,"interval",void 0),i()(this,"onSelect",e=>{this.props.onFinished(e)}),i()(this,"onScreensClick",e=>{this.setState({selectedTab:p.Screens})}),i()(this,"onWindowsClick",e=>{this.setState({selectedTab:p.Windows})}),i()(this,"onCloseClick",e=>{this.props.onFinished(null)}),this.state={selectedTab:p.Screens,sources:[]}}async componentDidMount(){this.setState({sources:await Object(u.h)()}),this.interval=setInterval(async()=>{this.setState({sources:await Object(u.h)()})},500)}componentWillUnmount(){clearInterval(this.interval)}render(){let e;e=this.state.selectedTab===p.Screens?this.state.sources.filter(e=>e.id.startsWith("screen")).map(e=>s.a.createElement(m,{source:e,onSelect:this.onSelect,key:e.id})):this.state.sources.filter(e=>e.id.startsWith("window")).map(e=>s.a.createElement(m,{source:e,onSelect:this.onSelect,key:e.id}));const t="mx_desktopCapturerSourcePicker_tabLabel",n=t+(this.state.selectedTab===p.Screens?"_selected":""),o=t+(this.state.selectedTab===p.Windows?"_selected":"");return s.a.createElement(l.a,{className:"mx_desktopCapturerSourcePicker",onFinished:this.onCloseClick,title:Object(c.a)("Share your screen")},s.a.createElement("div",{className:"mx_desktopCapturerSourcePicker_tabLabels"},s.a.createElement(d.a,{className:n,onClick:this.onScreensClick},Object(c.a)("Screens")),s.a.createElement(d.a,{className:o,onClick:this.onWindowsClick},Object(c.a)("Windows"))),s.a.createElement("div",{className:"mx_desktopCapturerSourcePicker_panel"},e))}})||o},function(e,t,n){"use strict";var o=n(155),r=n(112);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(95)),a=r(n(83)),s=r(n(538)),c=r(n(1027)),l=o(n(82)),d=(n(86),o(n(197))),u=n(1031),h=n(610),p=n(436);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var g=[],f=l.forwardRef((function(e,t){var n,o=l.useState(),r=(0,c.default)(o,2),f=r[0],_=r[1],b=l.useRef(),v=l.useRef(!1),y=l.useRef(null),E=e.children,S=e.disabled,w=e.noFocusGuards,C=e.persistentFocus,T=e.crossFrame,x=e.autoFocus,O=(e.allowTextSelection,e.group),k=e.className,R=e.whiteList,D=e.shards,I=void 0===D?g:D,A=e.as,N=void 0===A?"div":A,F=e.lockProps,M=void 0===F?{}:F,P=e.sideCar,L=e.returnFocus,j=e.onActivation,U=e.onDeactivation,B=l.useState({}),q=(0,c.default)(B,1)[0],G=l.useCallback((function(){y.current=y.current||document&&document.activeElement,b.current&&j&&j(b.current),v.current=!0}),[j]),V=l.useCallback((function(){v.current=!1,U&&U(b.current)}),[U]),H=l.useCallback((function(e){var t=y.current;if(Boolean(L)&&t&&t.focus){var n="object"===(0,s.default)(L)?L:void 0;y.current=null,e?Promise.resolve().then((function(){return t.focus(n)})):t.focus(n)}}),[L]),z=l.useCallback((function(e){v.current&&p.mediumFocus.useMedium(e)}),[]),K=p.mediumBlur.useMedium,W=l.useCallback((function(e){b.current!==e&&(b.current=e,_(e))}),[]);var Y=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}((n={},(0,a.default)(n,d.FOCUS_DISABLED,S&&"disabled"),(0,a.default)(n,d.FOCUS_GROUP,O),n),M),$=!0!==w,Q=$&&"tail"!==w,J=(0,u.useMergeRefs)([t,W]);return l.createElement(l.Fragment,null,$&&[l.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:S?-1:0,style:h.hiddenGuard}),l.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:S?-1:1,style:h.hiddenGuard})],!S&&l.createElement(P,{id:q,sideCar:p.mediumSidecar,observed:f,disabled:S,persistentFocus:C,crossFrame:T,autoFocus:x,whiteList:R,shards:I,onActivation:G,onDeactivation:V,returnFocus:H}),l.createElement(N,(0,i.default)({ref:J},Y,{className:k,onBlur:K,onFocus:z}),E),Q&&l.createElement("div",{"data-focus-guard":!0,tabIndex:S?-1:0,style:h.hiddenGuard}))}));f.propTypes={},f.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var _=f;t.default=_},function(e,t,n){var o=n(609);e.exports=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}},function(e,t,n){"use strict";var o=n(112),r=n(155);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.hiddenGuard=void 0;var i=r(n(82)),a=(o(n(86)),{width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"});t.hiddenGuard=a;var s=function(e){var t=e.children;return i.createElement(i.Fragment,null,i.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:a}),t,t&&i.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:a}))};s.propTypes={},s.defaultProps={children:null};var c=s;t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(82),r=n(1039),i=new WeakMap;t.useSidecar=function(e,t){var n=t&&t.options||{};if(r.env.isNode&&!n.ssr)return[null,null];var a=r.env.forceCache||r.env.isNode&&!!n.ssr||!n.async,s=o.useState(a?function(){return i.get(e)}:void 0),c=s[0],l=s[1],d=o.useState(null),u=d[0],h=d[1];return o.useEffect((function(){c||e().then((function(n){var o,r=t?t.read():n.default||n;if(!r)throw console.error("Sidecar error: with importer",e),t?(console.error("Sidecar error: with medium",t),o=new Error("Sidecar medium was not found")):o=new Error("Sidecar was not found in exports"),h((function(){return o})),o;i.set(e,r),l((function(){return r}))}),(function(e){return h((function(){return e}))}))}),[]),[c,u]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(215),r=n(339),i=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&i(e.parentNode,t),t};t.getCommonParent=function(e,t){for(var n=i(e),o=i(t),r=0;r<n.length;r+=1){var a=n[r];if(o.indexOf(a)>=0)return a}return!1},t.getTopCommonParent=function(e,n,r){var i=o.asArray(e),a=o.asArray(n),s=i[0],c=!1;return a.filter(Boolean).forEach((function(e){c=t.getCommonParent(c||e,e)||c,r.filter(Boolean).forEach((function(e){var n=t.getCommonParent(s,e);n&&(c=!c||n.contains(c)?n:t.getCommonParent(n,c))}))})),c},t.allParentAutofocusables=function(e){return e.reduce((function(e,t){return e.concat(r.parentAutofocusables(t))}),[])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1058),r=n(338),i=n(339),a=n(615),s=n(340),c=n(612);t.getFocusMerge=function(e,t){var n=document&&document.activeElement,l=r.getAllAffectedNodes(e).filter(s.isNotAGuard),d=c.getTopCommonParent(n||e,e,l),u=i.getAllTabbableNodes(l),h=i.getTabbableNodes(l).filter((function(e){var t=e.node;return s.isNotAGuard(t)}));if(h[0]||(h=u)[0]){var p,m,g,f,_=i.getAllTabbableNodes([d]).map((function(e){return e.node})),b=(p=_,m=h,g=new Map,m.forEach((function(e){return g.set(e.node,e)})),p.map((function(e){return g.get(e)})).filter(s.isDefined)),v=b.map((function(e){return e.node})),y=o.newFocus(v,_,n,t);if(y===o.NEW_FOCUS){var E=u.map((function(e){return e.node})).filter((f=c.allParentAutofocusables(l),function(e){return e.autofocus||e.dataset&&!!e.dataset.autofocus||f.indexOf(e)>=0}));return{node:E&&E.length?a.pickFirstFocus(E):a.pickFirstFocus(v)}}return void 0===y?y:b[y]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return"INPUT"===e.tagName&&"radio"===e.type};t.correctNode=function(e,t){return o(e)&&e.name?function(e,t){return t.filter(o).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},t.correctNodes=function(e){var n=new Set;return e.forEach((function(o){return n.add(t.correctNode(o,e))})),e.filter((function(e){return n.has(e)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(614);t.pickFirstFocus=function(e){return e[0]&&e.length>1?o.correctNode(e[0],e):e[0]},t.pickFocusable=function(e,t){return e.length>1?e.indexOf(o.correctNode(e[t],e)):t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(83),r=n.n(o),i=n(136),a=n(88),s=n(114),c=n(137);class l{constructor(){r()(this,"virtualRoomIdCache",new Set)}static sharedInstance(){return void 0===window.mxVoipUserMapper&&(window.mxVoipUserMapper=new l),window.mxVoipUserMapper}async userToVirtualUser(e){const t=await c.c.sharedInstance().sipVirtualLookup(e);return 0===t.length?null:t[0].userid}async getOrCreateVirtualRoomForRoom(e){const t=s.a.shared().getUserIdForRoomId(e);if(!t)return null;const n=await this.userToVirtualUser(t);if(!n)return null;const o=await Object(i.e)(a.a.get(),n,e);return a.a.get().setRoomAccountData(o,c.b,{native_room:e}),o}nativeRoomForVirtualRoom(e){const t=a.a.get().getRoom(e);if(!t)return null;const n=t.getAccountData(c.b);return n&&n.getContent()&&n.getContent().native_room||null}isVirtualRoom(e){if(this.nativeRoomForVirtualRoom(e.roomId))return!0;if(this.virtualRoomIdCache.has(e.roomId))return!0;const t=e.currentState.getStateEvents("m.room.create","");if(!t||!t.getContent())return!1;if(t.getSender()!==a.a.get().getUserId())return!1;const n=t.getContent()[c.b];return Boolean(n)}async onNewInvitedRoom(e){if(!c.c.sharedInstance().getSupportsVirtualRooms())return;const t=e.getDMInviter();console.log(`Checking virtual-ness of room ID ${e.roomId}, invited by ${t}`);const n=await c.c.sharedInstance().sipNativeLookup(t);if(0===n.length)return!0;if(n[0].fields.is_virtual){const t=n[0].userid,o=Object(i.f)(a.a.get(),t);o&&(a.a.get().setRoomAccountData(e.roomId,c.b,{native_room:o.roomId}),a.a.get().joinRoom(e.roomId)),this.virtualRoomIdCache.add(e.roomId)}}}},function(e,t,n){"use strict";var o=n(100),r=n.n(o),i=n(82),a=n.n(i),s=n(110),c=n(84),l=n(122),d=n(437),u=n(443),h=n(345),p=n(205),m=n(292),g=n(93),f=n(91),_=n(89),b=n(125),v=n(620);t.a=({matrixClient:e,space:t,onFinished:n})=>{Object(v.a)(_.a,e=>{let{action:o}=e,i=r()(e,["action"]);"after_leave_room"===o&&i.room_id===t.roomId&&n(!1)});const[o,y]=Object(i.useState)(!1),[E,S]=Object(i.useState)(""),w=e.getUserId(),[C,T]=Object(i.useState)(null),x=t.currentState.maySendStateEvent(s.a.RoomAvatar,w),O=null!==C,[k,R]=Object(i.useState)(t.name),D=t.currentState.maySendStateEvent(s.a.RoomName,w),I=k!==t.name,A=Object(h.b)(t),[N,F]=Object(i.useState)(A),M=t.currentState.maySendStateEvent(s.a.RoomTopic,w),P=N!==A,L=t.getJoinRule(),[j,U]=Object(i.useState)(L),B=t.currentState.maySendStateEvent(s.a.RoomJoinRules,w),q=j!==L;return a.a.createElement(l.a,{title:Object(c.a)("Space settings"),className:"mx_SpaceSettingsDialog",contentId:"mx_SpaceSettingsDialog",onFinished:n,fixedWidth:!1},a.a.createElement("div",{className:"mx_SpaceSettingsDialog_content",id:"mx_SpaceSettingsDialog"},a.a.createElement("div",null,Object(c.a)("Edit settings relating to your space.")),E&&a.a.createElement("div",{className:"mx_SpaceRoomView_errorText"},E),a.a.createElement(u.a,{avatarUrl:Object(p.b)(t,80,80,"crop"),avatarDisabled:!x,setAvatar:T,name:k,nameDisabled:!D,setName:R,topic:N,topicDisabled:!M,setTopic:F}),a.a.createElement("div",null,Object(c.a)("Make this space private"),a.a.createElement(m.a,{checked:"public"!==j,onChange:e=>U(e?"invite":"public"),disabled:!B,"aria-label":Object(c.a)("Make this space private")})),a.a.createElement(g.a,{kind:"danger",onClick:()=>{_.a.dispatch({action:"leave_room",room_id:t.roomId})}},Object(c.a)("Leave Space")),a.a.createElement("div",{className:"mx_SpaceSettingsDialog_buttons"},a.a.createElement(g.a,{onClick:()=>f.a.createDialog(d.b,{roomId:t.roomId})},Object(c.a)("View dev tools")),a.a.createElement(g.a,{onClick:n,disabled:o,kind:"link"},Object(c.a)("Cancel")),a.a.createElement(g.a,{onClick:async()=>{y(!0);const n=[];O&&n.push(e.sendStateEvent(t.roomId,s.a.RoomAvatar,{url:await e.uploadContent(C)},"")),I&&n.push(e.setRoomName(t.roomId,k)),P&&n.push(e.setRoomTopic(t.roomId,N)),q&&n.push(e.sendStateEvent(t.roomId,s.a.RoomJoinRules,{join_rule:j},""));const o=await Object(b.a)(n);y(!1);const r=o.filter(e=>"rejected"===e.status);r.length>0&&(console.error("Failed to save space settings: ",r),S(Object(c.a)("Failed to save space settings.")))},disabled:o,kind:"primary"},o?Object(c.a)("Saving..."):Object(c.a)("Save Changes")))))}},function(e,t,n){var o=n(1067);o.registerLanguage("1c",n(1068)),o.registerLanguage("abnf",n(1069)),o.registerLanguage("accesslog",n(1070)),o.registerLanguage("actionscript",n(1071)),o.registerLanguage("ada",n(1072)),o.registerLanguage("angelscript",n(1073)),o.registerLanguage("apache",n(1074)),o.registerLanguage("applescript",n(1075)),o.registerLanguage("arcade",n(1076)),o.registerLanguage("arduino",n(1077)),o.registerLanguage("armasm",n(1078)),o.registerLanguage("xml",n(1079)),o.registerLanguage("asciidoc",n(1080)),o.registerLanguage("aspectj",n(1081)),o.registerLanguage("autohotkey",n(1082)),o.registerLanguage("autoit",n(1083)),o.registerLanguage("avrasm",n(1084)),o.registerLanguage("awk",n(1085)),o.registerLanguage("axapta",n(1086)),o.registerLanguage("bash",n(1087)),o.registerLanguage("basic",n(1088)),o.registerLanguage("bnf",n(1089)),o.registerLanguage("brainfuck",n(1090)),o.registerLanguage("c-like",n(1091)),o.registerLanguage("c",n(1092)),o.registerLanguage("cal",n(1093)),o.registerLanguage("capnproto",n(1094)),o.registerLanguage("ceylon",n(1095)),o.registerLanguage("clean",n(1096)),o.registerLanguage("clojure",n(1097)),o.registerLanguage("clojure-repl",n(1098)),o.registerLanguage("cmake",n(1099)),o.registerLanguage("coffeescript",n(1100)),o.registerLanguage("coq",n(1101)),o.registerLanguage("cos",n(1102)),o.registerLanguage("cpp",n(1103)),o.registerLanguage("crmsh",n(1104)),o.registerLanguage("crystal",n(1105)),o.registerLanguage("csharp",n(1106)),o.registerLanguage("csp",n(1107)),o.registerLanguage("css",n(1108)),o.registerLanguage("d",n(1109)),o.registerLanguage("markdown",n(1110)),o.registerLanguage("dart",n(1111)),o.registerLanguage("delphi",n(1112)),o.registerLanguage("diff",n(1113)),o.registerLanguage("django",n(1114)),o.registerLanguage("dns",n(1115)),o.registerLanguage("dockerfile",n(1116)),o.registerLanguage("dos",n(1117)),o.registerLanguage("dsconfig",n(1118)),o.registerLanguage("dts",n(1119)),o.registerLanguage("dust",n(1120)),o.registerLanguage("ebnf",n(1121)),o.registerLanguage("elixir",n(1122)),o.registerLanguage("elm",n(1123)),o.registerLanguage("ruby",n(1124)),o.registerLanguage("erb",n(1125)),o.registerLanguage("erlang-repl",n(1126)),o.registerLanguage("erlang",n(1127)),o.registerLanguage("excel",n(1128)),o.registerLanguage("fix",n(1129)),o.registerLanguage("flix",n(1130)),o.registerLanguage("fortran",n(1131)),o.registerLanguage("fsharp",n(1132)),o.registerLanguage("gams",n(1133)),o.registerLanguage("gauss",n(1134)),o.registerLanguage("gcode",n(1135)),o.registerLanguage("gherkin",n(1136)),o.registerLanguage("glsl",n(1137)),o.registerLanguage("gml",n(1138)),o.registerLanguage("go",n(1139)),o.registerLanguage("golo",n(1140)),o.registerLanguage("gradle",n(1141)),o.registerLanguage("groovy",n(1142)),o.registerLanguage("haml",n(1143)),o.registerLanguage("handlebars",n(1144)),o.registerLanguage("haskell",n(1145)),o.registerLanguage("haxe",n(1146)),o.registerLanguage("hsp",n(1147)),o.registerLanguage("htmlbars",n(1148)),o.registerLanguage("http",n(1149)),o.registerLanguage("hy",n(1150)),o.registerLanguage("inform7",n(1151)),o.registerLanguage("ini",n(1152)),o.registerLanguage("irpf90",n(1153)),o.registerLanguage("isbl",n(1154)),o.registerLanguage("java",n(1155)),o.registerLanguage("javascript",n(1156)),o.registerLanguage("jboss-cli",n(1157)),o.registerLanguage("json",n(1158)),o.registerLanguage("julia",n(1159)),o.registerLanguage("julia-repl",n(1160)),o.registerLanguage("kotlin",n(1161)),o.registerLanguage("lasso",n(1162)),o.registerLanguage("latex",n(1163)),o.registerLanguage("ldif",n(1164)),o.registerLanguage("leaf",n(1165)),o.registerLanguage("less",n(1166)),o.registerLanguage("lisp",n(1167)),o.registerLanguage("livecodeserver",n(1168)),o.registerLanguage("livescript",n(1169)),o.registerLanguage("llvm",n(1170)),o.registerLanguage("lsl",n(1171)),o.registerLanguage("lua",n(1172)),o.registerLanguage("makefile",n(1173)),o.registerLanguage("mathematica",n(1174)),o.registerLanguage("matlab",n(1175)),o.registerLanguage("maxima",n(1176)),o.registerLanguage("mel",n(1177)),o.registerLanguage("mercury",n(1178)),o.registerLanguage("mipsasm",n(1179)),o.registerLanguage("mizar",n(1180)),o.registerLanguage("perl",n(1181)),o.registerLanguage("mojolicious",n(1182)),o.registerLanguage("monkey",n(1183)),o.registerLanguage("moonscript",n(1184)),o.registerLanguage("n1ql",n(1185)),o.registerLanguage("nginx",n(1186)),o.registerLanguage("nim",n(1187)),o.registerLanguage("nix",n(1188)),o.registerLanguage("node-repl",n(1189)),o.registerLanguage("nsis",n(1190)),o.registerLanguage("objectivec",n(1191)),o.registerLanguage("ocaml",n(1192)),o.registerLanguage("openscad",n(1193)),o.registerLanguage("oxygene",n(1194)),o.registerLanguage("parser3",n(1195)),o.registerLanguage("pf",n(1196)),o.registerLanguage("pgsql",n(1197)),o.registerLanguage("php",n(1198)),o.registerLanguage("php-template",n(1199)),o.registerLanguage("plaintext",n(1200)),o.registerLanguage("pony",n(1201)),o.registerLanguage("powershell",n(1202)),o.registerLanguage("processing",n(1203)),o.registerLanguage("profile",n(1204)),o.registerLanguage("prolog",n(1205)),o.registerLanguage("properties",n(1206)),o.registerLanguage("protobuf",n(1207)),o.registerLanguage("puppet",n(1208)),o.registerLanguage("purebasic",n(1209)),o.registerLanguage("python",n(1210)),o.registerLanguage("python-repl",n(1211)),o.registerLanguage("q",n(1212)),o.registerLanguage("qml",n(1213)),o.registerLanguage("r",n(1214)),o.registerLanguage("reasonml",n(1215)),o.registerLanguage("rib",n(1216)),o.registerLanguage("roboconf",n(1217)),o.registerLanguage("routeros",n(1218)),o.registerLanguage("rsl",n(1219)),o.registerLanguage("ruleslanguage",n(1220)),o.registerLanguage("rust",n(1221)),o.registerLanguage("sas",n(1222)),o.registerLanguage("scala",n(1223)),o.registerLanguage("scheme",n(1224)),o.registerLanguage("scilab",n(1225)),o.registerLanguage("scss",n(1226)),o.registerLanguage("shell",n(1227)),o.registerLanguage("smali",n(1228)),o.registerLanguage("smalltalk",n(1229)),o.registerLanguage("sml",n(1230)),o.registerLanguage("sqf",n(1231)),o.registerLanguage("sql_more",n(1232)),o.registerLanguage("sql",n(1233)),o.registerLanguage("stan",n(1234)),o.registerLanguage("stata",n(1235)),o.registerLanguage("step21",n(1236)),o.registerLanguage("stylus",n(1237)),o.registerLanguage("subunit",n(1238)),o.registerLanguage("swift",n(1239)),o.registerLanguage("taggerscript",n(1240)),o.registerLanguage("yaml",n(1241)),o.registerLanguage("tap",n(1242)),o.registerLanguage("tcl",n(1243)),o.registerLanguage("thrift",n(1244)),o.registerLanguage("tp",n(1245)),o.registerLanguage("twig",n(1246)),o.registerLanguage("typescript",n(1247)),o.registerLanguage("vala",n(1248)),o.registerLanguage("vbnet",n(1249)),o.registerLanguage("vbscript",n(1250)),o.registerLanguage("vbscript-html",n(1251)),o.registerLanguage("verilog",n(1252)),o.registerLanguage("vhdl",n(1253)),o.registerLanguage("vim",n(1254)),o.registerLanguage("x86asm",n(1255)),o.registerLanguage("xl",n(1256)),o.registerLanguage("xquery",n(1257)),o.registerLanguage("zephir",n(1258)),e.exports=o},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var o=n(150),r=n(88),i=n(230);function a(){const e=new i.a(r.a.get()).getPushRuleById(".m.rule.master");return e?e.enabled&&!e.actions.includes("notify"):(console.warn("No master push rule! Notifications are disabled for this user."),!0)}function s(){let e=n(251);return e.default&&(e=e.default),e}class c extends o.a{getValueOverride(e,t,n,o){return!!s().isPossible()&&(null===n||"default"===o?!a():n)}onChange(e,t,n){s().supportsDesktopNotifications()&&s().setEnabled(n)}}class l extends o.a{getValueOverride(e,t,n){return!!s().isPossible()&&(null===n?!a():n)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(82);const r=(e,t)=>{const n=Object(o.useRef)(e=>{});Object(o.useEffect)(()=>{n.current=t},[t]),Object(o.useEffect)(()=>{const t=e.register(e=>n.current(e));return()=>{e.unregister(t)}},[e])}},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(92),a=n.n(i),s=n(84),c=n(122),l=n(444),d=n(445),u=n(147),h=n(123),p=n(247),m=n(93),g=n(113),f=n(125),_=n(114),b=n(109),v=n(140);const y=({room:e,checked:t,onChange:n})=>r.a.createElement("div",{className:"mx_AddExistingToSpaceDialog_entry"},r.a.createElement(h.a,{room:e,height:32,width:32}),r.a.createElement("span",{className:"mx_AddExistingToSpaceDialog_entry_name"},e.name),r.a.createElement(v.a,{onChange:e=>n(e.target.checked),checked:t}));t.a=({matrixClient:e,space:t,onCreateRoomClick:n,onFinished:i})=>{const[v,E]=Object(o.useState)(""),S=v.toLowerCase(),[w,C]=Object(o.useState)(t),[T,x]=Object(o.useState)(new Set),O=u.e.instance.getChildSpaces(t.roomId),k=new Set(O),R=new Set(u.e.instance.getChildRooms(t.roomId)),D=w.getJoinRule(),[I,A,N]=e.getVisibleRooms().reduce((e,n)=>"join"!==n.getMyMembership()?e:n.name.toLowerCase().includes(S)?(n.isSpaceRoom()?n===t||n===w||k.has(n)||e[0].push(n):R.has(n)||"public"===D||e[_.a.shared().getUserIdForRoomId(n.roomId)?2:1].push(n),e):e,[[],[],[]]),[F,M]=Object(o.useState)(!1),[P,L]=Object(o.useState)("");let j;if(k.size>0){const e=[t,...O].map(e=>{const t=a()("mx_AddExistingToSpaceDialog_dropdownOption",{mx_AddExistingToSpaceDialog_dropdownOptionActive:e===w});return r.a.createElement("div",{key:e.roomId,className:t},r.a.createElement(h.a,{room:e,width:24,height:24}),e.name||Object(p.a)(e)||e.roomId)});j=r.a.createElement(l.a,{id:"mx_SpaceSelectDropdown",onOptionChange:e=>{C(O.find(t=>t.roomId===e)||t)},value:w.roomId,label:Object(s.a)("Space selection")},e)}else j=r.a.createElement("div",{className:"mx_AddExistingToSpaceDialog_onlySpace"},t.name||Object(p.a)(t)||t.roomId);const U=r.a.createElement(r.a.Fragment,null,r.a.createElement(h.a,{room:w,height:40,width:40}),r.a.createElement("div",null,r.a.createElement("h1",null,Object(s.a)("Add existing rooms")),j));return r.a.createElement(c.a,{title:U,className:"mx_AddExistingToSpaceDialog",contentId:"mx_AddExistingToSpaceDialog",onFinished:i,fixedWidth:!1},P&&r.a.createElement("div",{className:"mx_AddExistingToSpaceDialog_errorText"},P),r.a.createElement(d.a,{className:"mx_textinput_icon mx_textinput_search",placeholder:Object(s.a)("Filter your rooms and spaces"),onSearch:E,autoComplete:!0}),r.a.createElement(g.a,{className:"mx_AddExistingToSpaceDialog_content",id:"mx_AddExistingToSpaceDialog"},A.length>0?r.a.createElement("div",{className:"mx_AddExistingToSpaceDialog_section"},r.a.createElement("h3",null,Object(s.a)("Rooms")),A.map(e=>r.a.createElement(y,{key:e.roomId,room:e,checked:T.has(e),onChange:t=>{t?T.add(e):T.delete(e),x(new Set(T))}}))):void 0,I.length>0?r.a.createElement("div",{className:"mx_AddExistingToSpaceDialog_section mx_AddExistingToSpaceDialog_section_spaces"},r.a.createElement("h3",null,Object(s.a)("Spaces")),I.map(e=>r.a.createElement(y,{key:e.roomId,room:e,checked:T.has(e),onChange:t=>{t?T.add(e):T.delete(e),x(new Set(T))}}))):null,N.length>0?r.a.createElement("div",{className:"mx_AddExistingToSpaceDialog_section"},r.a.createElement("h3",null,Object(s.a)("Direct Messages")),N.map(e=>r.a.createElement(y,{key:e.roomId,room:e,checked:T.has(e),onChange:t=>{t?T.add(e):T.delete(e),x(new Set(T))}}))):null,I.length+A.length+N.length<1?r.a.createElement("span",{className:"mx_AddExistingToSpaceDialog_noResults"},Object(s.a)("No results")):void 0),r.a.createElement("div",{className:"mx_AddExistingToSpaceDialog_footer"},r.a.createElement("span",null,r.a.createElement("div",null,Object(s.a)("Don't want to add an existing room?")),r.a.createElement(m.a,{onClick:()=>n(e,t),kind:"link"},Object(s.a)("Create a new room"))),r.a.createElement(m.a,{kind:"primary",disabled:F||T.size<1,onClick:async()=>{M(!0);try{await Object(f.a)(Array.from(T).map(e=>u.e.instance.addRoomToSpace(t,e.roomId,Object(b.b)(e)))),i(!0)}catch(e){console.error("Failed to add rooms to space",e),L(Object(s.a)("Failed to add rooms to space"))}M(!1)}},F?Object(s.a)("Adding..."):Object(s.a)("Add"))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(103),p=n(88),m=n(89),g=n(87),f=n(84),_=n(91),b=n(623),v=n(90),y=n(127),E=n(254),S=n(102),w=n(110),C=n(85);function T(e){return e===h.a.QUEUED||e===h.a.NOT_SENT}let x=Object(C.a)("views.context_menus.MessageContextMenu")((i=r=class extends l.a.Component{constructor(...e){super(...e),s()(this,"state",{canRedact:!1,canPin:!1}),s()(this,"_checkPermissions",()=>{const e=p.a.get(),t=e.getRoom(this.props.mxEvent.getRoomId()),n=t.currentState.maySendRedactionForEvent(this.props.mxEvent,e.credentials.userId)&&this.props.mxEvent.getType()!==w.a.RoomServerAcl;let o=t.currentState.mayClientSendStateEvent("m.room.pinned_events",e);v.b.getValue("feature_pinning")||(o=!1),this.setState({canRedact:n,canPin:o})}),s()(this,"onResendClick",()=>{b.a.resend(this.props.mxEvent),this.closeMenu()}),s()(this,"onResendEditClick",()=>{b.a.resend(this.props.mxEvent.replacingEvent()),this.closeMenu()}),s()(this,"onResendRedactionClick",()=>{b.a.resend(this.props.mxEvent.localRedactionEvent()),this.closeMenu()}),s()(this,"onResendReactionsClick",()=>{for(const e of this._getUnsentReactions())b.a.resend(e);this.closeMenu()}),s()(this,"onReportEventClick",()=>{const e=g.getComponent("dialogs.ReportEventDialog");_.a.createTrackedDialog("Report Event","",e,{mxEvent:this.props.mxEvent},"mx_Dialog_reportEvent"),this.closeMenu()}),s()(this,"onViewSourceClick",()=>{const e=g.getComponent("structures.ViewSource");_.a.createTrackedDialog("View Event Source","",e,{mxEvent:this.props.mxEvent},"mx_Dialog_viewsource"),this.closeMenu()}),s()(this,"onRedactClick",()=>{const e=g.getComponent("dialogs.ConfirmRedactDialog");_.a.createTrackedDialog("Confirm Redact Dialog","",e,{onFinished:async(e,t)=>{if(!e)return;const n=p.a.get();try{this.props.onCloseDialog&&this.props.onCloseDialog(),await n.redactEvent(this.props.mxEvent.getRoomId(),this.props.mxEvent.getId(),void 0,t?{reason:t}:{})}catch(e){const t=e.errcode||e.statusCode;if(void 0!==t){const e=g.getComponent("dialogs.ErrorDialog");_.a.createTrackedDialog("You cannot delete this message","",e,{title:Object(f.a)("Error"),description:Object(f.a)("You cannot delete this message. (%(code)s)",{code:t})})}}}},"mx_Dialog_confirmredact"),this.closeMenu()}),s()(this,"onCancelSendClick",()=>{const e=this.props.mxEvent,t=e.replacingEvent(),n=e.localRedactionEvent(),o=this._getPendingReactions();if(t&&T(t.status)&&b.a.removeFromQueue(t),n&&T(n.status)&&b.a.removeFromQueue(n),o.length)for(const e of o)b.a.removeFromQueue(e);T(e.status)&&b.a.removeFromQueue(this.props.mxEvent),this.closeMenu()}),s()(this,"onForwardClick",()=>{this.props.onCloseDialog&&this.props.onCloseDialog(),m.a.dispatch({action:"forward_event",event:this.props.mxEvent}),this.closeMenu()}),s()(this,"onPinClick",()=>{p.a.get().getStateEvent(this.props.mxEvent.getRoomId(),"m.room.pinned_events","").catch(e=>{if("M_NOT_FOUND"===e.errcode)return null;throw e}).then(e=>{const t=(e?e.pinned:[])||[];t.includes(this.props.mxEvent.getId())?t.splice(t.indexOf(this.props.mxEvent.getId()),1):t.push(this.props.mxEvent.getId());p.a.get().sendStateEvent(this.props.mxEvent.getRoomId(),"m.room.pinned_events",{pinned:t},"")}),this.closeMenu()}),s()(this,"closeMenu",()=>{this.props.onFinished&&this.props.onFinished()}),s()(this,"onUnhidePreviewClick",()=>{this.props.eventTileOps&&this.props.eventTileOps.unhideWidget(),this.closeMenu()}),s()(this,"onQuoteClick",()=>{m.a.dispatch({action:"quote",event:this.props.mxEvent}),this.closeMenu()}),s()(this,"onPermalinkClick",e=>{e.preventDefault();const t=g.getComponent("dialogs.ShareDialog");_.a.createTrackedDialog("share room message dialog","",t,{target:this.props.mxEvent,permalinkCreator:this.props.permalinkCreator}),this.closeMenu()}),s()(this,"onCollapseReplyThreadClick",()=>{this.props.collapseReplyThread(),this.closeMenu()})}componentDidMount(){p.a.get().on("RoomMember.powerLevel",this._checkPermissions),this._checkPermissions()}componentWillUnmount(){const e=p.a.get();e&&e.removeListener("RoomMember.powerLevel",this._checkPermissions)}_isPinned(){const e=p.a.get().getRoom(this.props.mxEvent.getRoomId()).currentState.getStateEvents("m.room.pinned_events","");if(!e)return!1;const t=e.getContent();return t.pinned&&Array.isArray(t.pinned)&&t.pinned.includes(this.props.mxEvent.getId())}_getReactions(e){const t=p.a.get().getRoom(this.props.mxEvent.getRoomId()),n=this.props.mxEvent.getId();return t.getPendingEvents().filter(t=>{const o=t.getRelation();return o&&"m.annotation"===o.rel_type&&o.event_id===n&&e(t)})}_getPendingReactions(){return this._getReactions(e=>T(e.status))}_getUnsentReactions(){return this._getReactions(e=>e.status===h.a.NOT_SENT)}render(){const e=p.a.get().getUserId(),t=this.props.mxEvent,n=t.status,o=t.replacingEvent()&&t.replacingEvent().status,r=t.localRedactionEvent()&&t.localRedactionEvent().status,i=this._getUnsentReactions().length,a=this._getPendingReactions().length,s=T(t.status)||T(o)||T(r)||0!==a;let c,d,u,m,g,_,b,v,w,C,x,O;const k=!n||n===h.a.SENT;t.isRedacted()||(n===h.a.NOT_SENT&&(c=l.a.createElement(S.f,{className:"mx_MessageContextMenu_field",onClick:this.onResendClick},Object(f.a)("Resend"))),o===h.a.NOT_SENT&&(d=l.a.createElement(S.f,{className:"mx_MessageContextMenu_field",onClick:this.onResendEditClick},Object(f.a)("Resend edit"))),0!==i&&(u=l.a.createElement(S.f,{className:"mx_MessageContextMenu_field",onClick:this.onResendReactionsClick},Object(f.a)("Resend %(unsentCount)s reaction(s)",{unsentCount:i})))),r===h.a.NOT_SENT&&(m=l.a.createElement(S.f,{className:"mx_MessageContextMenu_field",onClick:this.onResendRedactionClick},Object(f.a)("Resend removal"))),k&&this.state.canRedact&&(g=l.a.createElement(S.f,{className:"mx_MessageContextMenu_field",onClick:this.onRedactClick},Object(f.a)("Remove"))),s&&(_=l.a.createElement(S.f,{className:"mx_MessageContextMenu_field",onClick:this.onCancelSendClick},Object(f.a)("Cancel Sending"))),Object(E.c)(t)&&(b=l.a.createElement(S.f,{className:"mx_MessageContextMenu_field",onClick:this.onForwardClick},Object(f.a)("Forward Message")),this.state.canPin&&(v=l.a.createElement(S.f,{className:"mx_MessageContextMenu_field",onClick:this.onPinClick},this._isPinned()?Object(f.a)("Unpin Message"):Object(f.a)("Pin Message"))));const R=l.a.createElement(S.f,{className:"mx_MessageContextMenu_field",onClick:this.onViewSourceClick},Object(f.a)("View Source"));let D;this.props.eventTileOps&&this.props.eventTileOps.isWidgetHidden()&&(w=l.a.createElement(S.f,{className:"mx_MessageContextMenu_field",onClick:this.onUnhidePreviewClick},Object(f.a)("Unhide Preview"))),this.props.permalinkCreator&&(D=this.props.permalinkCreator.forEvent(this.props.mxEvent.getId()));const I=l.a.createElement(S.f,{element:"a",className:"mx_MessageContextMenu_field",onClick:this.onPermalinkClick,href:D,target:"_blank",rel:"noreferrer noopener"},t.isRedacted()||"m.room.message"!==t.getType()?Object(f.a)("Share Permalink"):Object(f.a)("Share Message"));let A;return this.props.eventTileOps&&(x=l.a.createElement(S.f,{className:"mx_MessageContextMenu_field",onClick:this.onQuoteClick},Object(f.a)("Quote"))),"string"==typeof t.event.content.external_url&&Object(y.d)(t.event.content.external_url)&&(C=l.a.createElement(S.f,{element:"a",className:"mx_MessageContextMenu_field",target:"_blank",rel:"noreferrer noopener",onClick:this.closeMenu,href:t.event.content.external_url},Object(f.a)("Source URL"))),this.props.collapseReplyThread&&(O=l.a.createElement(S.f,{className:"mx_MessageContextMenu_field",onClick:this.onCollapseReplyThreadClick},Object(f.a)("Collapse Reply Thread"))),t.getSender()!==e&&(A=l.a.createElement(S.f,{className:"mx_MessageContextMenu_field",onClick:this.onReportEventClick},Object(f.a)("Report Content"))),l.a.createElement("div",{className:"mx_MessageContextMenu"},c,d,u,m,g,_,b,v,R,w,I,x,C,O,A)}},s()(r,"propTypes",{mxEvent:u.a.object.isRequired,eventTileOps:u.a.object,collapseReplyThread:u.a.func,onFinished:u.a.func,onCloseDialog:u.a.func}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(88),r=n(89),i=n(103);class a{static resendUnsentEvents(e){e.getPendingEvents().filter((function(e){return e.status===i.a.NOT_SENT})).forEach((function(e){a.resend(e)}))}static cancelUnsentEvents(e){e.getPendingEvents().filter((function(e){return e.status===i.a.NOT_SENT})).forEach((function(e){a.removeFromQueue(e)}))}static resend(e){const t=o.a.get().getRoom(e.getRoomId());o.a.get().resendEvent(e,t).then((function(t){r.a.dispatch({action:"message_sent",event:e})}),(function(t){console.log("Resend got send failure: "+t.name+"("+t+")"),r.a.dispatch({action:"message_send_failed",event:e})}))}static removeFromQueue(e){o.a.get().cancelPendingEvent(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(134),p=n(85);let m=Object(p.a)("views.messages.MessageTimestamp")((i=r=class extends l.a.Component{render(){const e=new Date(this.props.ts);let t;return t=this.props.showFullDate?Object(h.b)(e,this.props.showTwelveHour,this.props.showSeconds):this.props.showSeconds?Object(h.d)(e,this.props.showTwelveHour):Object(h.e)(e,this.props.showTwelveHour),l.a.createElement("span",{className:"mx_MessageTimestamp",title:Object(h.b)(e,this.props.showTwelveHour),"aria-hidden":!0},t)}},s()(r,"propTypes",{ts:u.a.number.isRequired,showTwelveHour:u.a.bool,showFullDate:u.a.bool,showSeconds:u.a.bool}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(168),p=n(87),m=n(94),g=n(158),f=n(84),_=n(88),b=n(101),v=n(136),y=n(164),E=n(85);let S=Object(E.a)("views.dialogs.CreateRoomDialog")((i=r=class e extends l.a.Component{constructor(t){super(t),s()(this,"_onKeyDown",e=>{e.key===b.a.ENTER&&(this.onOk(),e.preventDefault(),e.stopPropagation())}),s()(this,"onOk",async()=>{const e=document.activeElement;if(e&&e.blur(),await this._nameFieldRef.validate({allowEmpty:!1}),this._aliasFieldRef&&await this._aliasFieldRef.validate({allowEmpty:!1}),await new Promise(e=>this.setState({},e)),!this.state.nameIsValid||this._aliasFieldRef&&!this._aliasFieldRef.isValid){let e;this.state.nameIsValid?this._aliasFieldRef&&!this._aliasFieldRef.isValid&&(e=this._aliasFieldRef):e=this._nameFieldRef,e&&(e.focus(),e.validate({allowEmpty:!1,focused:!0}))}else this.props.onFinished(!0,this._roomCreateOptions())}),s()(this,"onCancel",()=>{this.props.onFinished(!1)}),s()(this,"onNameChange",e=>{this.setState({name:e.target.value})}),s()(this,"onTopicChange",e=>{this.setState({topic:e.target.value})}),s()(this,"onPublicChange",e=>{this.setState({isPublic:e})}),s()(this,"onEncryptedChange",e=>{this.setState({isEncrypted:e})}),s()(this,"onAliasChange",e=>{this.setState({alias:e})}),s()(this,"onDetailsToggled",e=>{this.setState({detailsOpen:e.target.open})}),s()(this,"onNoFederateChange",e=>{this.setState({noFederate:e})}),s()(this,"collectDetailsRef",e=>{this._detailsRef=e}),s()(this,"onNameValidate",async t=>{const n=await e._validateRoomName(t);return this.setState({nameIsValid:n.valid}),n});const n=m.a.get();this.state={isPublic:this.props.defaultPublic||!1,isEncrypted:Object(v.g)(),name:"",topic:"",alias:"",detailsOpen:!1,noFederate:!1===n.default_federate,nameIsValid:!1,canChangeEncryption:!0},_.a.get().doesServerForceEncryptionForPreset("private").then(e=>this.setState({canChangeEncryption:!e}))}_roomCreateOptions(){const e={},t=e.createOpts={};if(t.name=this.state.name,this.state.isPublic){t.visibility="public",t.preset="public_chat",e.guestAccess=!1;const{alias:n}=this.state,o=n.substr(1,n.indexOf(":")-1);t.room_alias_name=o}return this.state.topic&&(t.topic=this.state.topic),this.state.noFederate&&(t.creation_content={"m.federate":!1}),this.state.isPublic||(this.state.canChangeEncryption?e.encryption=this.state.isEncrypted:e.encryption=!0),y.a.instance.getSelectedCommunityId()&&(e.associatedWithCommunity=y.a.instance.getSelectedCommunityId()),this.props.parentSpace&&(e.parentSpace=this.props.parentSpace),e}componentDidMount(){this._detailsRef.addEventListener("toggle",this.onDetailsToggled),this._nameFieldRef.focus()}componentWillUnmount(){this._detailsRef.removeEventListener("toggle",this.onDetailsToggled)}render(){const e=p.getComponent("views.dialogs.BaseDialog"),t=p.getComponent("views.elements.DialogButtons"),n=p.getComponent("views.elements.Field"),o=p.getComponent("views.elements.LabelledToggleSwitch"),r=p.getComponent("views.elements.RoomAliasField");let i;if(this.state.isPublic){const e=_.a.get().getDomain();i=l.a.createElement("div",{className:"mx_CreateRoomDialog_aliasContainer"},l.a.createElement(r,{ref:e=>this._aliasFieldRef=e,onChange:this.onAliasChange,domain:e,value:this.state.alias}))}let a,s=l.a.createElement("p",null,Object(f.a)("Private rooms can be found and joined by invitation only. Public rooms can be found and joined by anyone."));if(y.a.instance.getSelectedCommunityId()&&(s=l.a.createElement("p",null,Object(f.a)("Private rooms can be found and joined by invitation only. Public rooms can be found and joined by anyone in this community."))),!this.state.isPublic){let e;e=Object(v.g)()?this.state.canChangeEncryption?Object(f.a)("You can’t disable this later. Bridges & most bots won’t work yet."):Object(f.a)("Your server requires encryption to be enabled in private rooms."):Object(f.a)("Your server admin has disabled end-to-end encryption by default in private rooms & Direct Messages."),a=l.a.createElement(l.a.Fragment,null,l.a.createElement(o,{label:Object(f.a)("Enable end-to-end encryption"),onChange:this.onEncryptedChange,value:this.state.isEncrypted,className:"mx_CreateRoomDialog_e2eSwitch",disabled:!this.state.canChangeEncryption}),l.a.createElement("p",null,e))}let c=Object(f.a)("You might enable this if the room will only be used for collaborating with internal teams on your homeserver. This cannot be changed later.");!1===m.a.get().default_federate&&(c=Object(f.a)("You might disable this if the room will be used for collaborating with external teams who have their own homeserver. This cannot be changed later."));let d=this.state.isPublic?Object(f.a)("Create a public room"):Object(f.a)("Create a private room");if(y.a.instance.getSelectedCommunityId()){const e=y.a.instance.getSelectedCommunityName();d=Object(f.a)("Create a room in %(communityName)s",{communityName:e})}return l.a.createElement(e,{className:"mx_CreateRoomDialog",onFinished:this.props.onFinished,title:d},l.a.createElement("form",{onSubmit:this.onOk,onKeyDown:this._onKeyDown},l.a.createElement("div",{className:"mx_Dialog_content"},l.a.createElement(n,{ref:e=>this._nameFieldRef=e,label:Object(f.a)("Name"),onChange:this.onNameChange,onValidate:this.onNameValidate,value:this.state.name,className:"mx_CreateRoomDialog_name"}),l.a.createElement(n,{label:Object(f.a)("Topic (optional)"),onChange:this.onTopicChange,value:this.state.topic,className:"mx_CreateRoomDialog_topic"}),l.a.createElement(o,{label:Object(f.a)("Make this room public"),onChange:this.onPublicChange,value:this.state.isPublic}),s,a,i,l.a.createElement("details",{ref:this.collectDetailsRef,className:"mx_CreateRoomDialog_details"},l.a.createElement("summary",{className:"mx_CreateRoomDialog_details_summary"},this.state.detailsOpen?Object(f.a)("Hide advanced"):Object(f.a)("Show advanced")),l.a.createElement(o,{label:Object(f.a)("Block anyone not part of %(serverName)s from ever joining this room.",{serverName:_.a.getHomeserverName()}),onChange:this.onNoFederateChange,value:this.state.noFederate}),l.a.createElement("p",null,c)))),l.a.createElement(t,{primaryButton:Object(f.a)("Create Room"),onPrimaryButtonClick:this.onOk,onCancel:this.onCancel}))}},s()(r,"propTypes",{onFinished:u.a.func.isRequired,defaultPublic:u.a.bool,parentSpace:u.a.instanceOf(h.a)}),s()(r,"_validateRoomName",Object(g.a)({rules:[{key:"required",test:async({value:e})=>!!e,invalid:()=>Object(f.a)("Please enter a name for the room")}]})),o=i))||o},function(e,t){e.exports="img/icon-email-pill-avatar.575ff20.svg"},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(122),l=n(84),d=n(104),u=n(93),h=n(88),p=n(117),m=n(94),g=n(362),f=n(161),_=n(145),b=n(140),v=n(91),y=n(130),E=n(85),S=n(99);let w=Object(E.a)("views.dialogs.CommunityPrototypeInviteDialog")(o=class extends s.a.PureComponent{constructor(e){super(e),i()(this,"onSubmit",async e=>{e.preventDefault(),e.stopPropagation(),this.setState({busy:!0});try{const e=[...this.state.emailTargets,...this.state.userTargets],t=await Object(_.a)(this.props.roomId,e),n=h.a.get().getRoom(this.props.roomId);Object(_.d)(t.states,n,t.inviter)?this.props.onFinished(!0):this.setState({busy:!1})}catch(e){this.setState({busy:!1}),console.error(e),v.a.createTrackedDialog("Failed to invite","",y.a,{title:Object(l.a)("Failed to invite"),description:e&&e.message?e.message:Object(l.a)("Operation failed")})}}),i()(this,"onAddressChange",(e,t)=>{const n=Object(p.b)(this.state.emailTargets);t>=n.length?n.push(e.target.value):n[t]=e.target.value,this.setState({emailTargets:n})}),i()(this,"onAddressBlur",e=>{const t=Object(p.b)(this.state.emailTargets);e>=t.length||""===t[e].trim()&&(t.splice(e,1),this.setState({emailTargets:t}))}),i()(this,"onShowPeopleClick",()=>{this.setState({showPeople:!this.state.showPeople})}),i()(this,"setPersonToggle",(e,t)=>{const n=Object(p.b)(this.state.userTargets);t&&!n.includes(e.userId)?n.push(e.userId):!t&&n.includes(e.userId)&&n.splice(n.indexOf(e.userId),1),this.setState({userTargets:n})}),i()(this,"onShowMorePeople",()=>{this.setState({numPeople:this.state.numPeople+5})}),this.state={emailTargets:[],userTargets:[],showPeople:!1,people:this.buildSuggestions(),numPeople:5,busy:!1}}buildSuggestions(){const e=new Set([h.a.get().getUserId(),m.a.get().welcomeUserId]);if(this.props.roomId){const t=h.a.get().getRoom(this.props.roomId);if(!t)throw new Error("Room ID given to InviteDialog does not look like a room");t.getMembersWithMembership("invite").forEach(t=>e.add(t.userId)),t.getMembersWithMembership("join").forEach(t=>e.add(t.userId)),t.getMembersWithMembership("ban").forEach(t=>e.add(t.userId))}return g.d.buildRecents(e)}renderPerson(e,t){let n=null;return e.user.getMxcAvatarUrl()&&(n=Object(S.b)(e.user.getMxcAvatarUrl()).getSquareThumbnailHttp(36)),s.a.createElement("div",{className:"mx_CommunityPrototypeInviteDialog_person",key:t},s.a.createElement(f.a,{url:n,name:e.user.name,idName:e.user.userId,width:36,height:36}),s.a.createElement("div",{className:"mx_CommunityPrototypeInviteDialog_personIdentifiers"},s.a.createElement("span",{className:"mx_CommunityPrototypeInviteDialog_personName"},e.user.name),s.a.createElement("span",{className:"mx_CommunityPrototypeInviteDialog_personId"},e.userId)),s.a.createElement(b.a,{onChange:t=>this.setPersonToggle(e,t.target.checked)}))}render(){const e=[];this.state.emailTargets.forEach((t,n)=>{e.push(s.a.createElement(d.a,{key:n,value:t,onChange:e=>this.onAddressChange(e,n),label:Object(l.a)("Email address"),placeholder:Object(l.a)("Email address"),onBlur:()=>this.onAddressBlur(n)}))}),e.push(s.a.createElement(d.a,{key:e.length,value:"",onChange:t=>this.onAddressChange(t,e.length),label:e.length>0?Object(l.a)("Add another email"):Object(l.a)("Email address"),placeholder:e.length>0?Object(l.a)("Add another email"):Object(l.a)("Email address")}));let t=null;const n=[];if(this.state.showPeople){const e=this.state.people.slice(0,this.state.numPeople);e.forEach((e,t)=>{n.push(this.renderPerson(e,t))}),e.length<this.state.people.length&&n.push(s.a.createElement(u.a,{onClick:this.onShowMorePeople,kind:"link",key:"more",className:"mx_CommunityPrototypeInviteDialog_morePeople"},Object(l.a)("Show more")))}this.state.people.length>0&&(t=s.a.createElement("div",{className:"mx_CommunityPrototypeInviteDialog_people"},s.a.createElement("span",null,Object(l.a)("People you know on %(brand)s",{brand:m.a.get().brand})),s.a.createElement(u.a,{onClick:this.onShowPeopleClick},this.state.showPeople?Object(l.a)("Hide"):Object(l.a)("Show"))));let o=Object(l.a)("Skip");const r=this.state.userTargets.length+this.state.emailTargets.length;return r>0&&(o=Object(l.a)("Send %(count)s invites",{count:r})),s.a.createElement(c.a,{className:"mx_CommunityPrototypeInviteDialog",onFinished:this.props.onFinished,title:Object(l.a)("Invite people to join %(communityName)s",{communityName:this.props.communityName})},s.a.createElement("form",{onSubmit:this.onSubmit},s.a.createElement("div",{className:"mx_Dialog_content"},e,t,n,s.a.createElement(u.a,{kind:"primary",onClick:this.onSubmit,disabled:this.state.busy,className:"mx_CommunityPrototypeInviteDialog_primaryButton"},o))))}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(83),r=n.n(o),i=n(273),a=n(7),s=n(1),c=n(105);class l extends a.EventEmitter{constructor(){super(),r()(this,"_search",""),r()(this,"callUpdate",Object(c.throttle)(()=>{this.emit(i.a)},200,{trailing:!0,leading:!0}))}get kind(){return i.b.Runtime}get search(){return this._search}set search(e){this._search=e,this.callUpdate()}isVisible(e){const t=this.search.toLowerCase();if("#"===this.search[0]){if(e.getCanonicalAlias()&&e.getCanonicalAlias().toLowerCase().startsWith(t))return!0;if(e.getAltAliases().some(e=>e.toLowerCase().startsWith(t)))return!0}return!!e.name&&this.matches(e.name)}normalize(e){return Object(s.A)(e.toLowerCase()).replace(/[\\'!"#$%&()*+,\-./:;<=>?@[\]^_`{|}~\u2000-\u206f\u2e00-\u2e7f]/g,"").toLowerCase()}matches(e){return this.normalize(e).includes(this.normalize(this.search))}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return j}));var o,r=n(95),i=n.n(r),a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(92),u=n.n(d),h=n(151),p=n(93),m=n(89),g=n(101),f=n(630),_=n(84),b=n(102),v=n(124),y=n(1386),E=n(363),S=n(309),w=n(88),C=n(219),T=n(144),x=n(631),O=n(166),k=n(217),R=n(111),D=n(1265),I=n(633),A=n(634),N=n(178),F=n(164),M=n(85);const P=e=>"mx_RoomTile_messagePreview_"+e,L=e=>({left:e.left+window.pageXOffset-9,top:e.bottom+window.pageYOffset+17,chevronFace:b.a.None});let j=Object(M.a)("views.rooms.RoomTile")(o=class extends l.a.PureComponent{constructor(t){super(t),s()(this,"dispatcherRef",void 0),s()(this,"roomTileRef",Object(c.createRef)()),s()(this,"notificationState",void 0),s()(this,"roomProps",void 0),s()(this,"onRoomNameUpdate",e=>{this.forceUpdate()}),s()(this,"onNotificationUpdate",()=>{this.forceUpdate()}),s()(this,"onRoomPropertyUpdate",e=>{e===I.a.NotificationVolume&&this.onNotificationUpdate()}),s()(this,"onAction",t=>{"view_room"===t.action&&t.room_id===this.props.room.roomId&&t.show_room_tile&&e(()=>{this.scrollIntoView()})}),s()(this,"onCommunityUpdate",e=>{e===this.props.room.roomId&&this.forceUpdate()}),s()(this,"onRoomPreviewChanged",e=>{this.props.room&&e.roomId===this.props.room.roomId&&this.setState({messagePreview:this.generatePreview()})}),s()(this,"scrollIntoView",()=>{this.roomTileRef.current&&this.roomTileRef.current.scrollIntoView({block:"nearest",behavior:"auto"})}),s()(this,"onTileClick",e=>{e.preventDefault(),e.stopPropagation(),m.a.dispatch({action:"view_room",show_room_tile:!0,room_id:this.props.room.roomId,clear_search:e&&(e.key===g.a.ENTER||e.key===g.a.SPACE)})}),s()(this,"onActiveRoomUpdate",e=>{this.setState({selected:e})}),s()(this,"onNotificationsMenuOpenClick",e=>{e.preventDefault(),e.stopPropagation();const t=e.target;this.setState({notificationsMenuPosition:t.getBoundingClientRect()})}),s()(this,"onCloseNotificationsMenu",()=>{this.setState({notificationsMenuPosition:null})}),s()(this,"onGeneralMenuOpenClick",e=>{e.preventDefault(),e.stopPropagation();const t=e.target;this.setState({generalMenuPosition:t.getBoundingClientRect()})}),s()(this,"onContextMenu",e=>{this.showContextMenu&&(e.preventDefault(),e.stopPropagation(),this.setState({generalMenuPosition:{left:e.clientX,bottom:e.clientY}}))}),s()(this,"onCloseGeneralMenu",()=>{this.setState({generalMenuPosition:null})}),s()(this,"onTagRoom",(e,t)=>{if(e.preventDefault(),e.stopPropagation(),t===v.a.Favourite||t===v.a.LowPriority){const e=t===v.a.Favourite?v.a.LowPriority:v.a.Favourite,n=T.b.instance.getTagsForRoom(this.props.room).includes(t),o=n?t:e,r=n?null:t;m.a.dispatch(x.a.tagRoom(w.a.get(),this.props.room,o,r,void 0,0))}else console.warn(`Unexpected tag ${t} applied to ${this.props.room.room_id}`);e.key===g.a.ENTER&&this.setState({generalMenuPosition:null})}),s()(this,"onLeaveRoomClick",e=>{e.preventDefault(),e.stopPropagation(),m.a.dispatch({action:"leave_room",room_id:this.props.room.roomId}),this.setState({generalMenuPosition:null})}),s()(this,"onForgetRoomClick",e=>{e.preventDefault(),e.stopPropagation(),m.a.dispatch({action:"forget_room",room_id:this.props.room.roomId}),this.setState({generalMenuPosition:null})}),s()(this,"onOpenRoomSettings",e=>{e.preventDefault(),e.stopPropagation(),m.a.dispatch({action:"open_room_settings",room_id:this.props.room.roomId}),this.setState({generalMenuPosition:null})}),s()(this,"onInviteClick",e=>{e.preventDefault(),e.stopPropagation(),m.a.dispatch({action:"view_invite",roomId:this.props.room.roomId}),this.setState({generalMenuPosition:null})}),s()(this,"onClickAllNotifs",e=>this.saveNotifState(e,S.a)),s()(this,"onClickAlertMe",e=>this.saveNotifState(e,S.b)),s()(this,"onClickMentions",e=>this.saveNotifState(e,S.c)),s()(this,"onClickMute",e=>this.saveNotifState(e,S.d)),this.state={selected:f.a.activeRoomId===this.props.room.roomId,notificationsMenuPosition:null,generalMenuPosition:null,messagePreview:this.generatePreview()},this.notificationState=O.a.instance.getRoomState(this.props.room),this.roomProps=D.a.forRoom(this.props.room)}get showContextMenu(){return this.props.tag!==v.a.Invite}get showMessagePreview(){return!this.props.isMinimized&&this.props.showMessagePreview}componentDidUpdate(e,t){var n,o,r,i,a,s;(e.showMessagePreview!==this.props.showMessagePreview&&this.showMessagePreview&&this.setState({messagePreview:this.generatePreview()}),(null===(n=e.room)||void 0===n?void 0:n.roomId)!==(null===(o=this.props.room)||void 0===o?void 0:o.roomId))&&(y.a.instance.off(y.a.getPreviewChangedEventName(e.room),this.onRoomPreviewChanged),y.a.instance.on(y.a.getPreviewChangedEventName(this.props.room),this.onRoomPreviewChanged),F.a.instance.off(F.a.getUpdateEventName(null===(r=e.room)||void 0===r?void 0:r.roomId),this.onCommunityUpdate),F.a.instance.on(F.a.getUpdateEventName(null===(i=this.props.room)||void 0===i?void 0:i.roomId),this.onCommunityUpdate),null===(a=e.room)||void 0===a||a.off("Room.name",this.onRoomNameUpdate),null===(s=this.props.room)||void 0===s||s.on("Room.name",this.onRoomNameUpdate))}componentDidMount(){this.state.selected&&this.scrollIntoView(),f.a.addListener(this.props.room.roomId,this.onActiveRoomUpdate),this.dispatcherRef=m.a.register(this.onAction),y.a.instance.on(y.a.getPreviewChangedEventName(this.props.room),this.onRoomPreviewChanged),this.notificationState.on(k.a,this.onNotificationUpdate),this.roomProps.on(A.b,this.onRoomPropertyUpdate),this.roomProps.on("Room.name",this.onRoomNameUpdate),F.a.instance.on(F.a.getUpdateEventName(this.props.room.roomId),this.onCommunityUpdate)}componentWillUnmount(){this.props.room&&(f.a.removeListener(this.props.room.roomId,this.onActiveRoomUpdate),y.a.instance.off(y.a.getPreviewChangedEventName(this.props.room),this.onRoomPreviewChanged),F.a.instance.off(F.a.getUpdateEventName(this.props.room.roomId),this.onCommunityUpdate),this.props.room.off("Room.name",this.onRoomNameUpdate)),f.a.removeListener(this.props.room.roomId,this.onActiveRoomUpdate),m.a.unregister(this.dispatcherRef),this.notificationState.off(k.a,this.onNotificationUpdate),this.roomProps.off(A.b,this.onRoomPropertyUpdate),this.roomProps.off("Room.name",this.onRoomNameUpdate),F.a.instance.off(F.a.getUpdateEventName(this.props.room.roomId),this.onCommunityUpdate)}generatePreview(){return this.showMessagePreview?y.a.instance.getPreviewForRoom(this.props.room,this.props.tag):null}async saveNotifState(e,t){if(e.preventDefault(),e.stopPropagation(),w.a.get().isGuest())return;this.roomProps.notificationVolume=t;e.key===g.a.ENTER&&this.setState({notificationsMenuPosition:null})}renderNotificationsMenu(e){if(w.a.get().isGuest()||this.props.tag===v.a.Archived||!this.showContextMenu||this.props.isMinimized)return null;const t=this.roomProps.notificationVolume;let n=null;this.state.notificationsMenuPosition&&(n=l.a.createElement(N.e,i()({},L(this.state.notificationsMenuPosition),{onFinished:this.onCloseNotificationsMenu,className:"mx_RoomTile_contextMenu",compact:!0}),l.a.createElement(N.c,{first:!0},l.a.createElement(N.d,{label:Object(_.a)("Use default"),active:t===S.a,iconClassName:"mx_RoomTile_iconBell",onClick:this.onClickAllNotifs}),l.a.createElement(N.d,{label:Object(_.a)("All messages"),active:t===S.b,iconClassName:"mx_RoomTile_iconBellDot",onClick:this.onClickAlertMe}),l.a.createElement(N.d,{label:Object(_.a)("Mentions & Keywords"),active:t===S.c,iconClassName:"mx_RoomTile_iconBellMentions",onClick:this.onClickMentions}),l.a.createElement(N.d,{label:Object(_.a)("None"),active:t===S.d,iconClassName:"mx_RoomTile_iconBellCrossed",onClick:this.onClickMute}))));const o=u()("mx_RoomTile_notificationsButton",{mx_RoomTile_iconBell:t===S.a,mx_RoomTile_iconBellDot:t===S.b,mx_RoomTile_iconBellMentions:t===S.c,mx_RoomTile_iconBellCrossed:t===S.d,mx_RoomTile_notificationsButton_show:t===S.d});return l.a.createElement(l.a.Fragment,null,l.a.createElement(b.d,{className:o,onClick:this.onNotificationsMenuOpenClick,title:Object(_.a)("Notification options"),isExpanded:!!this.state.notificationsMenuPosition,tabIndex:e?0:-1}),n)}renderGeneralMenu(){if(!this.showContextMenu)return null;let e=null;if(this.state.generalMenuPosition&&this.props.tag===v.a.Archived)e=l.a.createElement(N.e,i()({},L(this.state.generalMenuPosition),{onFinished:this.onCloseGeneralMenu,className:"mx_RoomTile_contextMenu",compact:!0}),l.a.createElement(N.c,{red:!0},l.a.createElement(N.b,{iconClassName:"mx_RoomTile_iconSignOut",label:Object(_.a)("Forget Room"),onClick:this.onForgetRoomClick})));else if(this.state.generalMenuPosition){const t=T.b.instance.getTagsForRoom(this.props.room),n=t.includes(v.a.Favourite),o=n?Object(_.a)("Favourited"):Object(_.a)("Favourite"),r=t.includes(v.a.LowPriority),a=Object(_.a)("Low Priority"),s=w.a.get().getUserId(),c=this.props.room.canInvite(s);e=l.a.createElement(N.e,i()({},L(this.state.generalMenuPosition),{onFinished:this.onCloseGeneralMenu,className:"mx_RoomTile_contextMenu",compact:!0}),l.a.createElement(N.c,null,l.a.createElement(N.a,{onClick:e=>this.onTagRoom(e,v.a.Favourite),active:n,label:o,iconClassName:"mx_RoomTile_iconStar"}),l.a.createElement(N.a,{onClick:e=>this.onTagRoom(e,v.a.LowPriority),active:r,label:a,iconClassName:"mx_RoomTile_iconArrowDown"}),c?l.a.createElement(N.b,{onClick:this.onInviteClick,label:Object(_.a)("Invite People"),iconClassName:"mx_RoomTile_iconInvite"}):null,l.a.createElement(N.b,{onClick:this.onOpenRoomSettings,label:Object(_.a)("Settings"),iconClassName:"mx_RoomTile_iconSettings"})),l.a.createElement(N.c,{red:!0},l.a.createElement(N.b,{onClick:this.onLeaveRoomClick,label:Object(_.a)("Leave Room"),iconClassName:"mx_RoomTile_iconSignOut"})))}return l.a.createElement(l.a.Fragment,null,l.a.createElement(b.d,{className:"mx_RoomTile_menuButton",onClick:this.onGeneralMenuOpenClick,title:Object(_.a)("Room options"),isExpanded:!!this.state.generalMenuPosition}),e)}render(){const e=u()({mx_RoomTile:!0,mx_RoomTile_selected:this.state.selected,mx_RoomTile_hasMenuOpen:!(!this.state.generalMenuPosition&&!this.state.notificationsMenuPosition),mx_RoomTile_minimized:this.props.isMinimized});let t={displayName:null,avatarMxc:null};this.props.tag===v.a.Invite&&(t=F.a.instance.getInviteProfile(this.props.room.roomId));let n=t.displayName||this.props.room.name;"string"!=typeof n&&(n=""),n=n.replace(":",":");const o=l.a.createElement(E.a,{room:this.props.room,avatarSize:32,tag:this.props.tag,displayBadge:this.props.isMinimized,oobData:{avatarUrl:t.avatarMxc}});let r;!this.props.isMinimized&&this.notificationState&&(r=l.a.createElement("div",{className:"mx_RoomTile_badgeContainer","aria-hidden":"true"},l.a.createElement(C.a,{notification:this.notificationState,forceCount:!1,roomId:this.props.room.roomId})));let a=null;this.showMessagePreview&&this.state.messagePreview&&(a=l.a.createElement("div",{className:"mx_RoomTile_messagePreview",id:P(this.props.room.roomId),title:this.state.messagePreview},this.state.messagePreview));const s=u()({mx_RoomTile_name:!0,mx_RoomTile_nameWithPreview:!!a,mx_RoomTile_nameHasUnreadEvents:this.notificationState.isUnread});let c=l.a.createElement("div",{className:"mx_RoomTile_nameContainer"},l.a.createElement("div",{title:n,className:s,tabIndex:-1,dir:"auto"},n),a);this.props.isMinimized&&(c=null);let d,m=n;this.props.tag===v.a.Invite||(this.notificationState.hasMentions?m+=" "+Object(_.a)("%(count)s unread messages including mentions.",{count:this.notificationState.count}):this.notificationState.hasUnreadCount?m+=" "+Object(_.a)("%(count)s unread messages.",{count:this.notificationState.count}):this.notificationState.isUnread&&(m+=" "+Object(_.a)("Unread messages."))),this.showMessagePreview&&(d=P(this.props.room.roomId));const g={};let f=p.a;return this.props.isMinimized&&(f=R.a,g.title=n,g.forceHide=!!this.state.generalMenuPosition),l.a.createElement(l.a.Fragment,null,l.a.createElement(h.d,{inputRef:this.roomTileRef},({onFocus:t,isActive:n,ref:a})=>l.a.createElement(f,i()({},g,{onFocus:t,tabIndex:n?0:-1,inputRef:a,className:e,onClick:this.onTileClick,onContextMenu:this.onContextMenu,role:"treeitem","aria-label":m,"aria-selected":this.state.selected,"aria-describedby":d}),o,c,r,this.renderGeneralMenu(),this.renderNotificationsMenu(n))))}})||o}).call(this,n(160).setImmediate)},function(e,t,n){"use strict";var o=n(83),r=n.n(o),i=n(126);class a{constructor(){r()(this,"listeners",{}),r()(this,"_activeRoomId",i.a.getRoomId()),r()(this,"roomStoreToken",void 0),r()(this,"onRoomViewStoreUpdate",()=>{this._activeRoomId&&this.emit(this._activeRoomId,!1),this._activeRoomId=i.a.getRoomId(),this._activeRoomId&&this.emit(this._activeRoomId,!0)}),this.roomStoreToken=i.a.addListener(this.onRoomViewStoreUpdate)}get activeRoomId(){return this._activeRoomId}addListener(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)}removeListener(e,t){if(this.listeners[e]){const n=this.listeners[e].indexOf(t);n>-1&&this.listeners[e].splice(n,1)}else console.warn("Unregistering unrecognised listener (roomId="+e+")")}emit(e,t){if(this.listeners[e])for(const n of this.listeners[e])n.call(null,t)}}void 0===window.mxActiveRoomObserver&&(window.mxActiveRoomObserver=new a),t.a=window.mxActiveRoomObserver},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(370),r=n(91),i=n(247),a=n(84),s=n(87),c=n(144),l=n(240),d=n(124);class u{static tagRoom(e,t,n,u,h,p){let m=null;const g=c.b.instance;if(u&&g.getTagSorting(u)===l.b.Manual){const e=[...g.orderedLists[u]];e.sort((e,t)=>e.tags[u].order-t.tags[u].order);const t=u===n&&h<p?1:0,o=t+p-1,r=t+p,i=o<=0?0:e[o].tags[u].order,a=r>=e.length?1:e[r].tags[u].order;m={order:(i+a)/2}}return Object(o.a)("RoomListActions.tagRoom",()=>{const o=[],c=t.roomId;if(void 0===n&&u===d.a.DM||n===d.a.DM&&void 0===u)return i.b(t,u===d.a.DM).catch(e=>{const t=s.getComponent("dialogs.ErrorDialog");console.error("Failed to set direct chat tag "+e),r.a.createTrackedDialog("Failed to set direct chat tag","",t,{title:Object(a.a)("Failed to set direct chat tag"),description:e&&e.message?e.message:Object(a.a)("Operation failed")})});const l=n!==u;if(n&&n!==d.a.DM&&l){const t=e.deleteRoomTag(c,n).catch((function(e){const t=s.getComponent("dialogs.ErrorDialog");console.error("Failed to remove tag "+n+" from room: "+e),r.a.createTrackedDialog("Failed to remove tag from room","",t,{title:Object(a.a)("Failed to remove tag %(tagName)s from room",{tagName:n}),description:e&&e.message?e.message:Object(a.a)("Operation failed")})}));o.push(t)}if(u&&u!==d.a.DM&&(l||m)){m=m||{};const t=e.setRoomTag(c,u,m).catch((function(e){const t=s.getComponent("dialogs.ErrorDialog");throw console.error("Failed to add tag "+u+" to room: "+e),r.a.createTrackedDialog("Failed to add tag to room","",t,{title:Object(a.a)("Failed to add tag %(tagName)s to room",{tagName:u}),description:e&&e.message?e.message:Object(a.a)("Operation failed")}),e}));o.push(t)}return Promise.all(o)},()=>({room:t,oldTag:n,newTag:u,metaData:m}))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(83),r=n.n(o),i=n(633),a=n(636),s=n(141),c=n(89),l=n(637),d=n(638),u=n(639);const h=e=>"room-"+e.roomId;class p extends s.a{constructor(){super(c.a),r()(this,"caches",new Map)}static get instance(){return p._instance||(p._instance=new p),p._instance}get contexts(){return Array.from(this.caches.values()).map(e=>e.context)}getOrCreateChamberForRoom(e){if(this.caches.has(h(e)))return this.caches.get(h(e));const t=new a.a(e);t.whenAnything(()=>this.checkContexts());const n=new i.b(t);return n.setClient(this.matrixClient),this.caches.set(h(e),n),n}async checkContexts(){let e=!1;for(const t of this.caches.values())if(e=t.context.state===l.a.PendingErrors,e)break;if(e&&!this.state.toastRef){const e=d.a.instance.addToast(u.a);await this.updateState({toastRef:e})}else!e&&this.state.toastRef&&(d.a.instance.removeToast(this.state.toastRef),await this.updateState({toastRef:null}))}async onReady(){if(this.caches)for(const e of this.caches.values())e.setClient(this.matrixClient)}async onNotReady(){for(const e of this.caches.values())e.setClient(null)}async onAction(e){return Promise.resolve()}}r()(p,"_instance",void 0)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var o=n(83),r=n.n(o),i=n(634),a=n(309),s=n(84);let c;!function(e){e[e.NotificationVolume=0]="NotificationVolume"}(c||(c={}));class l extends i.a{constructor(e){super(e,e=>this.properties.get(e)),r()(this,"properties",new Map),r()(this,"onAccountData",e=>{if("m.push_rules"===e.getType()){this.properties.get(c.NotificationVolume)!==Object(a.f)(this.context.room.roomId)&&this.updateNotificationVolume()}})}onClientChanged(e,t){this.properties.clear(),e&&e.removeListener("accountData",this.onAccountData),t&&(t.on("accountData",this.onAccountData),this.updateNotificationVolume())}updateNotificationVolume(){this.properties.set(c.NotificationVolume,Object(a.f)(this.context.room.roomId)),this.markEchoReceived(c.NotificationVolume),this.emit(i.b,c.NotificationVolume)}get notificationVolume(){return this.getValue(c.NotificationVolume)}set notificationVolume(e){this.setValue(Object(s.a)("Change notification settings"),c.NotificationVolume,e,async()=>Object(a.h)(this.context.room.roomId,e),i.c)}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var o=n(83),r=n.n(o),i=n(450),a=n(7);async function s(){}const c="property_updated";class l extends a.EventEmitter{constructor(e,t){super(),this.context=e,this.lookupFn=t,r()(this,"cache",new Map),r()(this,"matrixClient",void 0)}setClient(e){const t=this.matrixClient;this.matrixClient=e,this.onClientChanged(t,e)}getValue(e){return this.cache.has(e)?this.cache.get(e).val:this.lookupFn(e)}cacheVal(e,t,n){this.cache.set(e,{txn:n,val:t}),this.emit(c,e)}decacheKey(e){this.cache.has(e)&&(this.context.disownTransaction(this.cache.get(e).txn),this.cache.delete(e),this.emit(c,e))}markEchoReceived(e){if(this.cache.has(e)){const t=this.cache.get(e).txn;this.context.disownTransaction(t),t.cancel()}this.decacheKey(e)}setValue(e,t,n,o,r){this.cache.has(t)&&this.cache.get(t).txn.cancel();const a=this.context.beginTransaction(e,o);this.cacheVal(t,n,a),a.when(i.b.Pending,()=>this.cacheVal(t,n,a)).when(i.b.Error,()=>r()),a.run()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o=n(83),r=n.n(o),i=n(117);class a{constructor(){r()(this,"listeners",[])}when(e,t){return this.listeners.push({condition:e,fn:t}),this}whenAnyOf(e,t){for(const n of e)this.when(n,t);return this}whenAnything(e){return this.listeners.push({condition:null,fn:e}),this}notifyCondition(e){const t=Object(i.b)(this.listeners);for(const n of t)if(null===n.condition||n.condition===e)try{n.fn(this)}catch(t){console.error(`Error calling whenable listener for ${e}:`,t)}}destroy(){this.listeners=[]}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(637);class r extends o.b{constructor(e){super(),this.room=e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var o=n(83),r=n.n(o),i=n(450),a=n(117),s=n(635);let c;!function(e){e[e.NotStarted=0]="NotStarted",e[e.PendingErrors=1]="PendingErrors",e[e.AllSuccessful=2]="AllSuccessful"}(c||(c={}));class l extends s.a{constructor(...e){super(...e),r()(this,"_transactions",[]),r()(this,"_state",c.NotStarted),r()(this,"checkTransactions",()=>{let e=c.AllSuccessful;for(const t of this.transactions){if(t.status===i.b.Error||t.didPreviouslyFail){e=c.PendingErrors;break}t.status===i.b.Pending&&(e=c.NotStarted)}this._state=e,this.notifyCondition(e)})}get transactions(){return Object(a.b)(this._transactions)}get state(){return this._state}get firstFailedTime(){const e=this.transactions.find(e=>e.didPreviouslyFail||e.status===i.b.Error);return e?e.startTime:null}disownTransaction(e){const t=this._transactions.indexOf(e);t>=0&&this._transactions.splice(t,1),e.destroy(),this.checkTransactions()}beginTransaction(e,t){const n=new i.a(e,t);return this._transactions.push(n),n.whenAnything(this.checkTransactions),n.when(i.b.Success,()=>n.destroy()),n}destroy(){for(const e of this.transactions)e.destroy();this._transactions=[],super.destroy()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(83),r=n.n(o),i=n(7),a=n.n(i),s=n(115);class c extends a.a{constructor(...e){super(...e),r()(this,"toasts",new Map)}static get instance(){return c._instance||(c._instance=new c),c._instance}get components(){return Array.from(this.toasts.values())}addToast(e){const t=Symbol();return this.toasts.set(t,e),this.emit(s.b),t}removeToast(e){this.toasts.delete(e),this.emit(s.b)}}r()(c,"_instance",void 0)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(84),l=n(93),d=n(91),u=n(640),h=n(85);let p=Object(h.a)("views.toasts.NonUrgentEchoFailureToast")(o=class extends s.a.PureComponent{constructor(...e){super(...e),i()(this,"openDialog",()=>{d.a.createTrackedDialog("Local Echo Server Error","",u.a,{})})}render(){return s.a.createElement("div",{className:"mx_NonUrgentEchoFailureToast"},s.a.createElement("span",{className:"mx_NonUrgentEchoFailureToast_icon"}),Object(c.a)("Your server isn't responding to some <a>requests</a>.",{},{a:e=>s.a.createElement(l.a,{kind:"link",onClick:this.openDialog},e)}))}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var o,r=n(83),i=n.n(r),a=n(82),s=n(122),c=n(84),l=n(632),d=n(134),u=n(90),h=n(636),p=n(123),m=n(450),g=n(119),f=n(93),_=n(115),b=n(88),v=n(85);let y=Object(v.a)("views.dialogs.ServerOfflineDialog")(o=class extends a.PureComponent{constructor(...e){super(...e),i()(this,"onEchosUpdated",()=>{this.forceUpdate()})}componentDidMount(){l.a.instance.on(_.b,this.onEchosUpdated)}componentWillUnmount(){l.a.instance.off(_.b,this.onEchosUpdated)}renderTimeline(){return l.a.instance.contexts.map((e,t)=>{if(!e.firstFailedTime)return null;if(!(e instanceof h.a))throw new Error("Cannot render unknown context: "+e);const n=a.createElement("div",{className:"mx_ServerOfflineDialog_content_context_timeline_header"},a.createElement(p.a,{width:24,height:24,room:e.room}),a.createElement("span",null,e.room.name)),o=e.transactions.filter(e=>e.status===m.b.Error||e.didPreviouslyFail).map((e,t)=>{let n=a.createElement(g.a,{w:19,h:19});return e.status===m.b.Error&&(n=a.createElement(f.a,{kind:"link",onClick:()=>e.run()},Object(c.a)("Resend"))),a.createElement("div",{className:"mx_ServerOfflineDialog_content_context_txn",key:"txn-"+t},a.createElement("span",{className:"mx_ServerOfflineDialog_content_context_txn_desc"},e.auditName),n)});return a.createElement("div",{className:"mx_ServerOfflineDialog_content_context",key:"context-"+t},a.createElement("div",{className:"mx_ServerOfflineDialog_content_context_timestamp"},Object(d.e)(e.firstFailedTime,u.b.getValue("showTwelveHourTimestamps"))),a.createElement("div",{className:"mx_ServerOfflineDialog_content_context_timeline"},n,o))})}render(){let e=this.renderTimeline().filter(e=>!!e);0===e.length&&(e=[a.createElement("div",{key:1},Object(c.a)("You're all caught up."))]);const t=b.a.getHomeserverName();return a.createElement(s.a,{title:Object(c.a)("Server isn't responding"),className:"mx_ServerOfflineDialog",contentId:"mx_Dialog_content",onFinished:this.props.onFinished,hasCancel:!0},a.createElement("div",{className:"mx_ServerOfflineDialog_content"},a.createElement("p",null,Object(c.a)("Your server isn't responding to some of your requests. Below are some of the most likely reasons.")),a.createElement("ul",null,a.createElement("li",null,Object(c.a)("The server (%(serverName)s) took too long to respond.",{serverName:t})),a.createElement("li",null,Object(c.a)("Your firewall or anti-virus is blocking the request.")),a.createElement("li",null,Object(c.a)("A browser extension is preventing the request.")),a.createElement("li",null,Object(c.a)("The server is offline.")),a.createElement("li",null,Object(c.a)("The server has denied your request.")),a.createElement("li",null,Object(c.a)("Your area is experiencing difficulties connecting to the internet.")),a.createElement("li",null,Object(c.a)("A connection error occurred while trying to contact the server.")),a.createElement("li",null,Object(c.a)("The server is not configured to indicate what the problem is (CORS)."))),a.createElement("hr",null),a.createElement("h2",null,Object(c.a)("Recent changes that have not yet been received")),e))}})||o},function(e,t){e.exports="img/spinner.a5c5b3b.svg"},function(e,t){e.exports="img/spinner.0b29ec9.gif"},function(e,t,n){"use strict";n.d(t,"a",(function(){return N}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(84),u=n(644),h=n(90),p=n(648),m=n(649),g=n(93),f=n(651),_=n(86),b=n.n(_),v=n(107),y=n(88),E=n(87),S=n(91),w=n(89),C=n(287),T=n(195),x=n(196),O=n(244),k=n(664),R=n(119),D=n(98),I=n(106),A=n(85);let N=Object(A.a)("views.settings.tabs.user.GeneralUserSettingsTab")((i=r=class extends l.a.Component{constructor(){super(),s()(this,"_onAction",e=>{"id_server_changed"===e.action&&(this.setState({haveIdServer:Boolean(y.a.get().getIdentityServerUrl())}),this._getThreepidState())}),s()(this,"_onEmailsChange",e=>{this.setState({emails:e})}),s()(this,"_onMsisdnsChange",e=>{this.setState({msisdns:e})}),s()(this,"_onLanguageChange",e=>{this.state.language!==e&&(h.b.setValue("language",null,D.a.DEVICE,e),this.setState({language:e}),v.a.get().reload())}),s()(this,"_onSpellCheckLanguagesChange",e=>{this.setState({spellCheckLanguages:e});const t=v.a.get();t&&t.setSpellCheckLanguages(e)}),s()(this,"_onPasswordChangeError",e=>{let t=e.error||e.message||"";403===e.httpStatus?t=Object(d.a)("Failed to change password. Is your password correct?"):t||(t+=` (HTTP status ${e.httpStatus})`);const n=E.getComponent("dialogs.ErrorDialog");console.error("Failed to change password: "+t),S.a.createTrackedDialog("Failed to change password","",n,{title:Object(d.a)("Error"),description:t})}),s()(this,"_onPasswordChanged",()=>{const e=E.getComponent("dialogs.ErrorDialog");S.a.createTrackedDialog("Password changed","",e,{title:Object(d.a)("Success"),description:Object(d.a)("Your password was successfully changed. You will not receive push notifications on other sessions until you log back in to them")+"."})}),s()(this,"_onDeactivateClicked",()=>{S.a.createTrackedDialog("Deactivate Account","",f.a,{onFinished:e=>{e&&this.props.closeSettingsFn()}})}),this.state={language:d.d(),spellCheckLanguages:[],haveIdServer:Boolean(y.a.get().getIdentityServerUrl()),serverSupportsSeparateAddAndBind:null,idServerHasUnsignedTerms:!1,requiredPolicyInfo:{hasTerms:!1},emails:[],msisdns:[],loading3pids:!0},this.dispatcherRef=w.a.register(this._onAction)}async UNSAFE_componentWillMount(){const e=y.a.get(),t=await e.doesServerSupportSeparateAddAndBind(),n=(await e.getCapabilities())["m.change_password"],o=!n||!1!==n.enabled;this.setState({serverSupportsSeparateAddAndBind:t,canChangePassword:o}),this._getThreepidState()}async componentDidMount(){const e=v.a.get();e&&this.setState({spellCheckLanguages:await e.getSpellCheckLanguages()})}componentWillUnmount(){w.a.unregister(this.dispatcherRef)}async _getThreepidState(){const e=y.a.get();this._checkTerms();let t=[];try{t=await Object(k.a)(e)}catch(e){const t=y.a.get().getIdentityServerUrl();console.warn(`Unable to reach identity server at ${t} to check for 3PIDs bindings in Settings`),console.warn(e)}this.setState({emails:t.filter(e=>"email"===e.medium),msisdns:t.filter(e=>"msisdn"===e.medium),loading3pids:!1})}async _checkTerms(){if(!this.state.haveIdServer)return void this.setState({idServerHasUnsignedTerms:!1});const e=y.a.get().getIdentityServerUrl(),t=new x.a;try{const n=await t.getAccessToken({check:!1});await Object(C.d)([new C.a(T.a.IS,e,n)],(t,n,o)=>new Promise((o,r)=>{this.setState({idServerName:Object(O.a)(e),requiredPolicyInfo:{hasTerms:!0,policiesAndServices:t,agreedUrls:n,resolve:o}})})),this.setState({requiredPolicyInfo:{hasTerms:!1}})}catch(t){console.warn(`Unable to reach identity server at ${e} to check for terms in Settings`),console.warn(t)}}_renderProfileSection(){return l.a.createElement("div",{className:"mx_SettingsTab_section"},l.a.createElement(u.a,null))}_renderAccountSection(){const e=E.getComponent("views.settings.ChangePassword"),t=E.getComponent("views.settings.account.EmailAddresses"),n=E.getComponent("views.settings.account.PhoneNumbers");let o=l.a.createElement(e,{className:"mx_GeneralUserSettingsTab_changePassword",rowClassName:"",buttonKind:"primary",onError:this._onPasswordChangeError,onFinished:this._onPasswordChanged}),r=null;if(h.b.getValue(I.a.ThirdPartyID)&&(this.state.haveIdServer||!0===this.state.serverSupportsSeparateAddAndBind)){const e=this.state.loading3pids?l.a.createElement(R.a,null):l.a.createElement(t,{emails:this.state.emails,onEmailsChange:this._onEmailsChange}),o=this.state.loading3pids?l.a.createElement(R.a,null):l.a.createElement(n,{msisdns:this.state.msisdns,onMsisdnsChange:this._onMsisdnsChange});r=l.a.createElement("div",null,l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(d.a)("Email addresses")),e,l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(d.a)("Phone numbers")),o)}else null===this.state.serverSupportsSeparateAddAndBind&&(r=l.a.createElement(R.a,null));let i=Object(d.a)("Set a new account password...");return this.state.canChangePassword||(i=null,o=null),l.a.createElement("div",{className:"mx_SettingsTab_section mx_GeneralUserSettingsTab_accountSection"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(d.a)("Account")),l.a.createElement("p",{className:"mx_SettingsTab_subsectionText"},i),o,r)}_renderLanguageSection(){return l.a.createElement("div",{className:"mx_SettingsTab_section"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(d.a)("Language and region")),l.a.createElement(p.a,{className:"mx_GeneralUserSettingsTab_languageInput",onOptionChange:this._onLanguageChange,value:this.state.language}))}_renderSpellCheckSection(){return l.a.createElement("div",{className:"mx_SettingsTab_section"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(d.a)("Spell check dictionaries")),l.a.createElement(m.a,{languages:this.state.spellCheckLanguages,onLanguagesChange:this._onSpellCheckLanguagesChange}))}_renderDiscoverySection(){const e=E.getComponent("views.settings.SetIdServer");if(this.state.requiredPolicyInfo.hasTerms){const t=E.getComponent("views.terms.InlineTermsAgreement"),n=l.a.createElement("span",{className:"mx_SettingsTab_subsectionText"},Object(d.a)("Agree to the identity server (%(serverName)s) Terms of Service to allow yourself to be discoverable by email address or phone number.",{serverName:this.state.idServerName}));return l.a.createElement("div",null,l.a.createElement(t,{policiesAndServicePairs:this.state.requiredPolicyInfo.policiesAndServices,agreedUrls:this.state.requiredPolicyInfo.agreedUrls,onFinished:this.state.requiredPolicyInfo.resolve,introElement:n}),l.a.createElement(e,{missingTerms:!0}))}const t=E.getComponent("views.settings.discovery.EmailAddresses"),n=E.getComponent("views.settings.discovery.PhoneNumbers"),o=this.state.loading3pids?l.a.createElement(R.a,null):l.a.createElement(t,{emails:this.state.emails}),r=this.state.loading3pids?l.a.createElement(R.a,null):l.a.createElement(n,{msisdns:this.state.msisdns}),i=this.state.haveIdServer?l.a.createElement("div",{className:"mx_GeneralUserSettingsTab_discovery"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(d.a)("Email addresses")),o,l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(d.a)("Phone numbers")),r):null;return l.a.createElement("div",{className:"mx_SettingsTab_section"},i,l.a.createElement(e,null))}_renderManagementSection(){return l.a.createElement("div",{className:"mx_SettingsTab_section"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(d.a)("Account management")),l.a.createElement("span",{className:"mx_SettingsTab_subsectionText"},Object(d.a)("Deactivating your account is a permanent action - be careful!")),l.a.createElement(g.a,{onClick:this._onDeactivateClicked,kind:"danger"},Object(d.a)("Deactivate Account")))}_renderIntegrationManagerSection(){if(!h.b.getValue(I.a.Widgets))return null;const e=E.getComponent("views.settings.SetIntegrationManager");return l.a.createElement("div",{className:"mx_SettingsTab_section"},l.a.createElement(e,null))}render(){const e=v.a.get().supportsMultiLanguageSpellCheck(),t=this.state.requiredPolicyInfo.hasTerms?l.a.createElement("img",{className:"mx_GeneralUserSettingsTab_warningIcon",src:n(461),width:"18",height:"18",alt:Object(d.a)("Warning")}):null;let o,r;return h.b.getValue(I.a.Deactivate)&&(o=l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(d.a)("Deactivate account")),this._renderManagementSection())),h.b.getValue(I.a.IdentityServer)&&(r=l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"mx_SettingsTab_heading"},t," ",Object(d.a)("Discovery")),this._renderDiscoverySection())),l.a.createElement("div",{className:"mx_SettingsTab"},l.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(d.a)("General")),this._renderProfileSection(),this._renderAccountSection(),this._renderLanguageSection(),e?this._renderSpellCheckSection():null,r,this._renderIntegrationManagerSection(),o)}},s()(r,"propTypes",{closeSettingsFn:b.a.func.isRequired}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(84),l=n(88),d=n(104),u=n(645),h=n(87),p=n(206),m=n(91),g=n(130),f=n(85),_=n(99);let b=Object(f.a)("views.settings.ProfileSettings")(o=class extends s.a.Component{constructor(){super(),i()(this,"_uploadAvatar",()=>{this._avatarUpload.current.click()}),i()(this,"_removeAvatar",()=>{this._avatarUpload.current.value="",this.setState({avatarUrl:null,avatarFile:null,enableProfileSave:!0})}),i()(this,"_cancelProfileChanges",async e=>{e.stopPropagation(),e.preventDefault(),this.state.enableProfileSave&&this.setState({enableProfileSave:!1,displayName:this.state.originalDisplayName,avatarUrl:this.state.originalAvatarUrl,avatarFile:null})}),i()(this,"_saveProfile",async e=>{if(e.stopPropagation(),e.preventDefault(),!this.state.enableProfileSave)return;this.setState({enableProfileSave:!1});const t=l.a.get(),n={},o=this.state.displayName.trim();try{if(this.state.originalDisplayName!==this.state.displayName&&(await t.setDisplayName(o),n.originalDisplayName=o,n.displayName=o),this.state.avatarFile){console.log(`Uploading new avatar, ${this.state.avatarFile.name} of type ${this.state.avatarFile.type}, (${this.state.avatarFile.size}) bytes`);const e=await t.uploadContent(this.state.avatarFile);await t.setAvatarUrl(e),n.avatarUrl=Object(_.b)(e).getSquareThumbnailHttp(96),n.originalAvatarUrl=n.avatarUrl,n.avatarFile=null}else this.state.originalAvatarUrl!==this.state.avatarUrl&&await t.setAvatarUrl("")}catch(e){console.log("Failed to save profile",e),m.a.createTrackedDialog("Failed to save profile","",g.a,{title:Object(c.a)("Failed to save your profile"),description:e&&e.message?e.message:Object(c.a)("The operation could not be completed")})}this.setState(n)}),i()(this,"_onDisplayNameChanged",e=>{this.setState({displayName:e.target.value,enableProfileSave:!0})}),i()(this,"_onAvatarChanged",e=>{if(!e.target.files||!e.target.files.length)return void this.setState({avatarUrl:this.state.originalAvatarUrl,avatarFile:null,enableProfileSave:!1});const t=e.target.files[0],n=new FileReader;n.onload=e=>{this.setState({avatarUrl:e.target.result,avatarFile:t,enableProfileSave:!0})},n.readAsDataURL(t)});const e=l.a.get();let t=p.a.instance.avatarMxc;t&&(t=Object(_.b)(t).getSquareThumbnailHttp(96)),this.state={userId:e.getUserId(),originalDisplayName:p.a.instance.displayName,displayName:p.a.instance.displayName,originalAvatarUrl:t,avatarUrl:t,avatarFile:null,enableProfileSave:!1},this._avatarUpload=Object(a.createRef)()}render(){const e=Object(u.a)("user-settings");let t=null;e&&(t=s.a.createElement("span",{className:"mx_ProfileSettings_hostingSignup"},Object(c.a)("<a>Upgrade</a> to your own domain",{},{a:t=>s.a.createElement("a",{href:e,target:"_blank",rel:"noreferrer noopener"},t)}),s.a.createElement("a",{href:e,target:"_blank",rel:"noreferrer noopener"},s.a.createElement("img",{src:n(647),width:"11",height:"10",alt:""}))));const o=h.getComponent("elements.AccessibleButton"),r=h.getComponent("settings.AvatarSetting");return s.a.createElement("form",{onSubmit:this._saveProfile,autoComplete:"off",noValidate:!0,className:"mx_ProfileSettings_profileForm"},s.a.createElement("input",{type:"file",ref:this._avatarUpload,className:"mx_ProfileSettings_avatarUpload",onChange:this._onAvatarChanged,accept:"image/*"}),s.a.createElement("div",{className:"mx_ProfileSettings_profile"},s.a.createElement("div",{className:"mx_ProfileSettings_controls"},s.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Profile")),s.a.createElement(d.a,{label:Object(c.a)("Display Name"),type:"text",value:this.state.displayName,autoComplete:"off",onChange:this._onDisplayNameChanged}),s.a.createElement("p",null,this.state.userId,t)),s.a.createElement(r,{avatarUrl:this.state.avatarUrl,avatarName:this.state.displayName||this.state.userId,avatarAltText:Object(c.a)("Profile picture"),uploadAvatar:this._uploadAvatar,removeAvatar:this._removeAvatar})),s.a.createElement("div",{className:"mx_ProfileSettings_buttons"},s.a.createElement(o,{onClick:this._cancelProfileChanges,kind:"link",disabled:!this.state.enableProfileSave},Object(c.a)("Cancel")),s.a.createElement(o,{onClick:this._saveProfile,kind:"primary",disabled:!this.state.enableProfileSave},Object(c.a)("Save"))))}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(121),r=n.n(o),i=n(1268),a=n.n(i),s=n(94),c=n(88);function l(e){const t=s.a.get().hosting_signup_link;if(!t)return null;if(!e)return t;if("matrix.org"!==c.a.get().getDomain())return null;try{const n=r.a.parse(t),o=a.a.parse(n.query);return o.utm_campaign=e,n.search=void 0,n.query=o,n.format()}catch(e){return t}}},function(e,t,n){"use strict";var o=n(452),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var r=t[o],a=r.obj[r.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],d=a[l];"object"==typeof d&&null!==d&&-1===n.indexOf(d)&&(t.push({obj:a,prop:l}),n.push(d))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var o=[],r=0;r<n.length;++r)void 0!==n[r]&&o.push(n[r]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,n){var o=e.replace(/\+/g," ");if("iso-8859-1"===n)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,n,r,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",l=0;l<s.length;++l){var d=s.charCodeAt(l);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===o.RFC1738&&(40===d||41===d)?c+=s.charAt(l):d<128?c+=a[d]:d<2048?c+=a[192|d>>6]+a[128|63&d]:d<55296||d>=57344?c+=a[224|d>>12]+a[128|d>>6&63]+a[128|63&d]:(l+=1,d=65536+((1023&d)<<10|1023&s.charCodeAt(l)),c+=a[240|d>>18]+a[128|d>>12&63]+a[128|d>>6&63]+a[128|63&d])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return r.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t}),a)}}},function(e,t){e.exports="img/external-link.a8d3e9b.svg"},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o,r=n(82),i=n.n(r),a=n(86),s=n.n(a),c=n(87),l=n(84),d=n(90),u=n(85);let h=Object(u.a)("views.elements.LanguageDropdown")(o=class extends i.a.Component{constructor(e){super(e),this._onSearchChange=this._onSearchChange.bind(this),this.state={searchQuery:"",langs:null}}componentDidMount(){if(l.c().then(e=>{e.sort((function(e,t){return e.label<t.label?-1:e.label>t.label?1:0})),this.setState({langs:e})}).catch(()=>{this.setState({langs:["en"]})}),!this.props.value){const e=d.b.getValue("language",null,!0);if(e)this.props.onOptionChange(e);else{const e=l.i(l.e());this.props.onOptionChange(e)}}}_onSearchChange(e){this.setState({searchQuery:e})}render(){if(null===this.state.langs){const e=c.getComponent("elements.Spinner");return i.a.createElement(e,null)}const e=c.getComponent("elements.Dropdown");let t;t=this.state.searchQuery?this.state.langs.filter(e=>function(e,t){return!!t.label.toUpperCase().includes(e.toUpperCase())||t.value.toUpperCase()===e.toUpperCase()}(this.state.searchQuery,e)):this.state.langs;const n=t.map(e=>i.a.createElement("div",{key:e.value},e.label));let o=d.b.getValue("language",null,!0),r=null;return o||(o=navigator.language||navigator.userLanguage),r=this.props.value||o,i.a.createElement(e,{id:"mx_LanguageDropdown",className:this.props.className,onOptionChange:this.props.onOptionChange,onSearchChange:this._onSearchChange,searchEnabled:!0,value:r,label:Object(l.a)("Language Dropdown"),disabled:this.props.disabled},n)}})||o;h.propTypes={className:s.a.string,onOptionChange:s.a.func.isRequired,value:s.a.string}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(650),l=n(93),d=n(84),u=n(85);class h extends s.a.Component{constructor(...e){super(...e),i()(this,"_onRemove",e=>(e.stopPropagation(),e.preventDefault(),this.props.onRemoved(this.props.language)))}render(){return s.a.createElement("div",{className:"mx_ExistingSpellCheckLanguage"},s.a.createElement("span",{className:"mx_ExistingSpellCheckLanguage_language"},this.props.language),s.a.createElement(l.a,{onClick:this._onRemove,kind:"danger_sm"},Object(d.a)("Remove")))}}let p=Object(u.a)("views.settings.SpellCheckLanguages")(o=class extends s.a.Component{constructor(e){super(e),i()(this,"_onRemoved",e=>{const t=this.props.languages.filter(t=>t!==e);this.props.onLanguagesChange(t)}),i()(this,"_onAddClick",e=>{e.stopPropagation(),e.preventDefault();const t=this.state.newLanguage;t&&(this.props.languages.includes(t)||(this.props.languages.push(t),this.props.onLanguagesChange(this.props.languages)))}),i()(this,"_onNewLanguageChange",e=>{this.state.newLanguage!==e&&this.setState({newLanguage:e})}),this.state={newLanguage:""}}render(){const e=this.props.languages.map(e=>s.a.createElement(h,{language:e,onRemoved:this._onRemoved,key:e})),t=s.a.createElement(l.a,{onClick:this._onAddClick,kind:"primary"},Object(d.a)("Add"));return s.a.createElement("div",{className:"mx_SpellCheckLanguages"},e,s.a.createElement("form",{onSubmit:this._onAddClick,noValidate:!0},s.a.createElement(c.a,{className:"mx_GeneralUserSettingsTab_spellCheckLanguageInput",value:this.state.newLanguage,onOptionChange:this._onNewLanguageChange}),t))}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o,r=n(82),i=n.n(r),a=n(444),s=n(87),c=n(107),l=n(90),d=n(84),u=n(85);let h=Object(u.a)("views.elements.SpellCheckLanguagesDropdown")(o=class extends i.a.Component{constructor(e){super(e),this._onSearchChange=this._onSearchChange.bind(this),this.state={searchQuery:"",languages:null}}componentDidMount(){const e=c.a.get();e&&e.getAvailableSpellCheckLanguages().then(e=>{e.sort((function(e,t){return e<t?-1:e>t?1:0}));const t=[];e.forEach(e=>{t.push({label:e,value:e})}),this.setState({languages:t})}).catch(e=>{this.setState({languages:["en"]})})}_onSearchChange(e){this.setState({searchQuery:e})}render(){if(null===this.state.languages){const e=s.getComponent("elements.Spinner");return i.a.createElement(e,null)}let e;e=this.state.searchQuery?this.state.languages.filter(e=>function(e,t){return!!t.label.toUpperCase().includes(e.toUpperCase())||t.value.toUpperCase()===e.toUpperCase()}(this.state.searchQuery,e)):this.state.languages;const t=e.map(e=>i.a.createElement("div",{key:e.value},e.label));let n=l.b.getValue("language",null,!0),o=null;return n||(n=navigator.language||navigator.userLanguage),o=this.props.value||n,i.a.createElement(a.a,{id:"mx_LanguageDropdown",className:this.props.className,onOptionChange:this.props.onOptionChange,onSearchChange:this._onSearchChange,searchEnabled:!0,value:o,label:Object(d.a)("Language Dropdown")},t)}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(86),l=n.n(c),d=n(87),u=n(120),h=n(88),p=n(295),m=n(84),g=n(460),f=n(198),_=n(140),b=n(85);let v=Object(b.a)("views.dialogs.DeactivateAccountDialog")(o=class extends s.a.Component{constructor(e){super(e),i()(this,"_onStagePhaseChange",(e,t)=>{const n={[f.c.PHASE_PREAUTH]:{body:Object(m.a)("Confirm your account deactivation by using Single Sign On to prove your identity."),continueText:Object(m.a)("Single Sign On"),continueKind:"danger"},[f.c.PHASE_POSTAUTH]:{body:Object(m.a)("Are you sure you want to deactivate your account? This is irreversible."),continueText:Object(m.a)("Confirm account deactivation"),continueKind:"danger"}},o={[f.c.LOGIN_TYPE]:n,[f.c.UNSTABLE_LOGIN_TYPE]:n,[f.b.LOGIN_TYPE]:{[f.a]:{body:Object(m.a)("To continue, please enter your password:")}}}[e];let r=null,i=null,a=null;if(o){const e=o[t];e&&e.body&&(r=e.body),e&&e.continueText&&(i=e.continueText),e&&e.continueKind&&(a=e.continueKind)}this.setState({bodyText:r,continueText:i,continueKind:a})}),i()(this,"_onUIAuthFinished",(e,t,n)=>{e||(t!==g.a?(console.error("Error during UI Auth:",{result:t,extra:n}),this.setState({errStr:Object(m.a)("There was a problem communicating with the server. Please try again.")})):this._onCancel())}),i()(this,"_onUIAuthComplete",e=>{h.a.get().deactivateAccount(e,this.state.shouldErase).then(e=>{u.a.trackEvent("Account","Deactivate Account"),p.j(),this.props.onFinished(!0)}).catch(e=>{console.error(e),this.setState({errStr:Object(m.a)("There was a problem communicating with the server. Please try again.")})})}),i()(this,"_onEraseFieldChange",e=>{this.setState({shouldErase:e.target.checked,authEnabled:!1}),this._initAuth(e.target.checked)}),this.state={shouldErase:!1,errStr:null,authData:null,authEnabled:!0,bodyText:null,continueText:null,continueKind:null},this._initAuth(!1)}_onCancel(){this.props.onFinished(!1)}_initAuth(e){h.a.get().deactivateAccount(null,e).then(e=>{console.warn("User's account got deactivated without confirmation: Server had no auth"),this.setState({errStr:Object(m.a)("Server did not require any authentication")})}).catch(e=>{e&&401===e.httpStatus&&e.data?this.setState({authData:e.data,authEnabled:!0}):this.setState({errStr:Object(m.a)("Server did not return valid authentication information.")})})}render(){const e=d.getComponent("views.dialogs.BaseDialog");let t=null;this.state.errStr&&(t=s.a.createElement("div",{className:"error"},this.state.errStr));let n=s.a.createElement("div",null,Object(m.a)("Loading..."));return this.state.authData&&this.state.authEnabled&&(n=s.a.createElement("div",null,this.state.bodyText,s.a.createElement(g.b,{matrixClient:h.a.get(),authData:this.state.authData,makeRequest:this._onUIAuthComplete,onAuthFinished:this._onUIAuthFinished,onStagePhaseChange:this._onStagePhaseChange,continueText:this.state.continueText,continueKind:this.state.continueKind}))),s.a.createElement(e,{className:"mx_DeactivateAccountDialog",onFinished:this.props.onFinished,titleClass:"danger",title:Object(m.a)("Deactivate Account")},s.a.createElement("div",{className:"mx_Dialog_content"},s.a.createElement("p",null,Object(m.a)("This will make your account permanently unusable. You will not be able to log in, and no one will be able to re-register the same user ID. This will cause your account to leave all rooms it is participating in, and it will remove your account details from your identity server. <b>This action is irreversible.</b>",{},{b:e=>s.a.createElement("b",null," ",e," ")})),s.a.createElement("p",null,Object(m.a)("Deactivating your account <b>does not by default cause us to forget messages you have sent.</b> If you would like us to forget your messages, please tick the box below.",{},{b:e=>s.a.createElement("b",null," ",e," ")})),s.a.createElement("p",null,Object(m.a)("Message visibility in Matrix is similar to email. Our forgetting your messages means that messages you have sent will not be shared with any new or unregistered users, but registered users who already have access to these messages will still have access to their copy.")),s.a.createElement("div",{className:"mx_DeactivateAccountDialog_input_section"},s.a.createElement("p",null,s.a.createElement(_.a,{checked:this.state.shouldErase,onChange:this._onEraseFieldChange},Object(m.a)("Please forget all messages I have sent when my account is deactivated (<b>Warning:</b> this will cause future users to see an incomplete view of conversations)",{},{b:e=>s.a.createElement("b",null,e)}))),t,n)))}})||o;v.propTypes={onFinished:l.a.func.isRequired}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(146),r=n(156),i=n(431),a=n(336);const s=window.localStorage;let c;try{c=window.indexedDB}catch(e){}function l(e){const t={useAuthorizationHeader:!0};return c&&s&&(t.store=new a.a({indexedDB:c,dbName:"riot-web-sync",localStorage:s,workerScript:l.indexedDbWorkerScript})),s&&(t.sessionStore=new i.a(s)),c&&(t.cryptoStore=new r.a(c,"matrix-js-sdk:crypto")),e=Object.assign(t,e),Object(o.createClient)(e)}l.indexedDbWorkerScript=null},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var o=n(88),r=n(90),i=n(252);class a{constructor(){this.reset()}static sharedInstance(){return void 0===e.mxTypingStore&&(e.mxTypingStore=new a),e.mxTypingStore}reset(){this._typingStates={}}setSelfTyping(e,t){if(!r.b.getValue("sendTypingNotifications"))return;if(r.b.getValue("lowBandwidth"))return;let n=this._typingStates[e];!t&&!n||n&&n.isTyping===t||(n||(n=this._typingStates[e]={isTyping:t,serverTimer:new i.a(3e4),userTimer:new i.a(1e4)}),n.isTyping=t,t&&(n.serverTimer.isRunning()?n.serverTimer.restart():n.serverTimer.restart().finished().then(()=>{const t=this._typingStates[e];t&&(t.isTyping=!1)}),n.userTimer.isRunning()?n.userTimer.restart():n.userTimer.restart().finished().then(()=>{this.setSelfTyping(e,!1)})),o.a.get().sendTyping(e,t,3e4))}}}).call(this,n(6))},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(454),p=n(122),m=n(84),g=n(456),f=n(85);function _(e){return e===g.c?n(1273):n(349)}let b=Object(f.a)("views.dialogs.security.SetupEncryptionDialog")((i=r=class extends l.a.Component{constructor(){super(),s()(this,"_onStoreUpdate",()=>{this.setState({icon:_(this.store.phase)})}),this.store=g.g.sharedInstance(),this.state={icon:_(this.store.phase)}}componentDidMount(){this.store.on("update",this._onStoreUpdate)}componentWillUnmount(){this.store.removeListener("update",this._onStoreUpdate)}render(){return l.a.createElement(p.a,{headerImage:this.state.icon,onFinished:this.props.onFinished,title:Object(m.a)("Verify this session")},l.a.createElement(h.a,{onFinished:this.props.onFinished}))}},s()(r,"propTypes",{onFinished:u.a.func.isRequired}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var o=n(83),r=n.n(o),i=n(105),a=n(92),s=n.n(a),c=n(82),l=n.n(c),d=n(87),u=n(88),h=n(104),p=n(93),m=n(84),g=n(165),f=n(91);class _ extends l.a.PureComponent{constructor(e){super(e),r()(this,"fileUpload",l.a.createRef()),r()(this,"onCancel",()=>{this.state.resetting&&this.setState({resetting:!1}),this.props.onFinished(!1)}),r()(this,"onUseRecoveryKeyClick",()=>{this.setState({forceRecoveryKey:!0})}),r()(this,"validateRecoveryKeyOnChange",Object(i.debounce)(async()=>{await this.validateRecoveryKey()},200)),r()(this,"onRecoveryKeyChange",e=>{this.setState({recoveryKey:e.target.value,recoveryKeyFileError:null}),this.fileUpload.current&&(this.fileUpload.current.value=null),this.validateRecoveryKeyOnChange()}),r()(this,"onRecoveryKeyFileChange",async e=>{if(0===e.target.files.length)return;const t=e.target.files[0];if(t.size>128)this.setState({recoveryKeyFileError:!0,recoveryKeyCorrect:!1,recoveryKeyValid:!1});else{const e=await t.text();/^[123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\s]+$/.test(e)?(this.setState({recoveryKeyFileError:null,recoveryKey:e.trim()}),await this.validateRecoveryKey()):this.setState({recoveryKeyFileError:!0,recoveryKeyCorrect:!1,recoveryKeyValid:!1,recoveryKey:""})}}),r()(this,"onRecoveryKeyFileUploadClick",()=>{this.fileUpload.current.click()}),r()(this,"onPassPhraseNext",async e=>{if(e.preventDefault(),this.state.passPhrase.length<=0)return;this.setState({keyMatches:null});const t={passphrase:this.state.passPhrase},n=await this.props.checkPrivateKey(t);n?this.props.onFinished(t):this.setState({keyMatches:n})}),r()(this,"onRecoveryKeyNext",async e=>{if(e.preventDefault(),!this.state.recoveryKeyValid)return;this.setState({keyMatches:null});const t={recoveryKey:this.state.recoveryKey},n=await this.props.checkPrivateKey(t);n?this.props.onFinished(t):this.setState({keyMatches:n})}),r()(this,"onPassPhraseChange",e=>{this.setState({passPhrase:e.target.value,keyMatches:null})}),r()(this,"onResetAllClick",e=>{e.preventDefault(),this.setState({resetting:!0})}),r()(this,"onConfirmResetAllClick",async()=>{f.a.toggleCurrentDialogVisibility();try{await Object(g.b)(async()=>{const e=u.a.get();await e.bootstrapCrossSigning({authUploadDeviceSigningKeys:async t=>{const n=d.getComponent("views.dialogs.InteractiveAuthDialog"),{finished:o}=f.a.createTrackedDialog("Cross-signing keys dialog","",n,{title:Object(m.a)("Setting up keys"),matrixClient:e,makeRequest:t}),[r]=await o;if(!r)throw new Error("Cross-signing key upload auth canceled")},setupNewCrossSigning:!0}),this.props.onFinished(!0)},!0)}catch(e){console.error(e),this.props.onFinished(!1)}}),this.state={recoveryKey:"",recoveryKeyValid:null,recoveryKeyCorrect:null,recoveryKeyFileError:null,forceRecoveryKey:!1,passPhrase:"",keyMatches:null,resetting:!1}}async validateRecoveryKey(){if(""!==this.state.recoveryKey)try{const e=u.a.get(),t=e.keyBackupKeyFromRecoveryKey(this.state.recoveryKey),n=await e.checkSecretStorageKey(t,this.props.keyInfo);this.setState({recoveryKeyValid:!0,recoveryKeyCorrect:n})}catch(e){this.setState({recoveryKeyValid:!1,recoveryKeyCorrect:!1})}else this.setState({recoveryKeyValid:null,recoveryKeyCorrect:null})}getKeyValidationText(){return this.state.recoveryKeyFileError?Object(m.a)("Wrong file type"):this.state.recoveryKeyCorrect?Object(m.a)("Looks good!"):this.state.recoveryKeyValid?Object(m.a)("Wrong Security Key"):null===this.state.recoveryKeyValid?"":Object(m.a)("Invalid Security Key")}render(){const e=d.getComponent("views.dialogs.BaseDialog"),t=d.getComponent("views.elements.DialogButtons"),n=this.props.keyInfo&&this.props.keyInfo.passphrase&&this.props.keyInfo.passphrase.salt&&this.props.keyInfo.passphrase.iterations,o=l.a.createElement("div",{className:"mx_AccessSecretStorageDialog_reset"},Object(m.a)("Forgotten or lost all recovery methods? <a>Reset all</a>",null,{a:e=>l.a.createElement("a",{href:"",onClick:this.onResetAllClick,className:"mx_AccessSecretStorageDialog_reset_link"},e)}));let r,i,a;if(this.state.resetting)i=Object(m.a)("Reset everything"),a=["mx_AccessSecretStorageDialog_titleWithIcon mx_AccessSecretStorageDialog_resetBadge"],r=l.a.createElement("div",null,l.a.createElement("p",null,Object(m.a)("Only do this if you have no other device to complete verification with.")),l.a.createElement("p",null,Object(m.a)("If you reset everything, you will restart with no trusted sessions, no trusted users, and might not be able to see past messages.")),l.a.createElement(t,{primaryButton:Object(m.a)("Reset"),onPrimaryButtonClick:this.onConfirmResetAllClick,hasCancel:!0,onCancel:this.onCancel,focus:!1,primaryButtonClass:"danger"}));else if(n&&!this.state.forceRecoveryKey){const e=d.getComponent("elements.AccessibleButton");let n;i=Object(m.a)("Security Phrase"),a=["mx_AccessSecretStorageDialog_titleWithIcon mx_AccessSecretStorageDialog_securePhraseTitle"],n=!1===this.state.keyMatches?l.a.createElement("div",{className:"mx_AccessSecretStorageDialog_keyStatus"},"👎 ",Object(m.a)("Unable to access secret storage. Please verify that you entered the correct Security Phrase.")):l.a.createElement("div",{className:"mx_AccessSecretStorageDialog_keyStatus"}),r=l.a.createElement("div",null,l.a.createElement("p",null,Object(m.a)("Enter your Security Phrase or <button>Use your Security Key</button> to continue.",{},{button:t=>l.a.createElement(e,{className:"mx_linkButton",element:"span",onClick:this.onUseRecoveryKeyClick},t)})),l.a.createElement("form",{className:"mx_AccessSecretStorageDialog_primaryContainer",onSubmit:this.onPassPhraseNext},l.a.createElement("input",{type:"password",className:"mx_AccessSecretStorageDialog_passPhraseInput",onChange:this.onPassPhraseChange,value:this.state.passPhrase,autoFocus:!0,autoComplete:"new-password",placeholder:Object(m.a)("Security Phrase")}),n,l.a.createElement(t,{primaryButton:Object(m.a)("Continue"),onPrimaryButtonClick:this.onPassPhraseNext,hasCancel:!0,onCancel:this.onCancel,focus:!1,primaryDisabled:0===this.state.passPhrase.length,additive:o})))}else{i=Object(m.a)("Security Key"),a=["mx_AccessSecretStorageDialog_titleWithIcon mx_AccessSecretStorageDialog_secureBackupTitle"];const e=s()({mx_AccessSecretStorageDialog_recoveryKeyFeedback:!0,mx_AccessSecretStorageDialog_recoveryKeyFeedback_valid:!0===this.state.recoveryKeyCorrect,mx_AccessSecretStorageDialog_recoveryKeyFeedback_invalid:!1===this.state.recoveryKeyCorrect}),n=l.a.createElement("div",{className:e},this.getKeyValidationText());r=l.a.createElement("div",null,l.a.createElement("p",null,Object(m.a)("Use your Security Key to continue.")),l.a.createElement("form",{className:"mx_AccessSecretStorageDialog_primaryContainer",onSubmit:this.onRecoveryKeyNext,spellCheck:!1,autoComplete:"off"},l.a.createElement("div",{className:"mx_AccessSecretStorageDialog_recoveryKeyEntry"},l.a.createElement("div",{className:"mx_AccessSecretStorageDialog_recoveryKeyEntry_textInput"},l.a.createElement(h.a,{type:"password",label:Object(m.a)("Security Key"),value:this.state.recoveryKey,onChange:this.onRecoveryKeyChange,forceValidity:this.state.recoveryKeyCorrect,autoComplete:"off"})),l.a.createElement("span",{className:"mx_AccessSecretStorageDialog_recoveryKeyEntry_entryControlSeparatorText"},Object(m.a)("or")),l.a.createElement("div",null,l.a.createElement("input",{type:"file",className:"mx_AccessSecretStorageDialog_recoveryKeyEntry_fileInput",ref:this.fileUpload,onChange:this.onRecoveryKeyFileChange}),l.a.createElement(p.a,{kind:"primary",onClick:this.onRecoveryKeyFileUploadClick},Object(m.a)("Upload")))),n,l.a.createElement(t,{primaryButton:Object(m.a)("Continue"),onPrimaryButtonClick:this.onRecoveryKeyNext,hasCancel:!0,cancelButton:Object(m.a)("Go Back"),cancelButtonClass:"danger",onCancel:this.onCancel,focus:!1,primaryDisabled:!this.state.recoveryKeyValid,additive:o})))}return l.a.createElement(e,{className:"mx_AccessSecretStorageDialog",onFinished:this.props.onFinished,title:i,titleClass:a},l.a.createElement("div",null,r))}}},function(e,t,n){"use strict";t.a={HomePage:"home_page",RoomView:"room_view",RoomDirectory:"room_directory",UserView:"user_view",GroupView:"group_view",MyGroups:"my_groups"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var o=n(89),r=n(87),i=n(91),a=n(84);const s=/^[a-z0-9=_\-./]+$/;async function c(e){void 0===e&&(e={});const t=r.getComponent("dialogs.QuestionDialog"),n=i.a.createTrackedDialog("Registration required","",t,{hasCancelButton:!0,quitOnly:!0,title:Object(a.a)("Sign In or Create Account"),description:Object(a.a)("Use your account or create a new one to continue."),button:Object(a.a)("Create Account"),extraButtons:[React.createElement("button",{key:"start_login",onClick:()=>{n.close(),o.a.dispatch({action:"start_login",screenAfterLogin:e.screen_after})}},Object(a.a)("Sign In"))],onFinished:t=>{t?o.a.dispatch({action:"start_registration",screenAfterLogin:e.screen_after}):e.go_home_on_cancel?o.a.dispatch({action:"view_home_page"}):e.go_welcome_on_cancel&&o.a.dispatch({action:"view_welcome_page"})}})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(7),r=n(105);class i extends o.EventEmitter{constructor(){super(),this._throttledMiddlePanel=Object(r.throttle)(()=>this.emit("middlePanelResized"),200),this._isResizing=!1}get isResizing(){return this._isResizing}startResizing(){this._isResizing=!0,this.emit("isResizing",!0)}stopResizing(){this._isResizing=!1,this.emit("isResizing",!1)}_noisyMiddlePanel(){this.emit("middlePanelResizedNoisy")}_updateMiddlePanel(){this._throttledMiddlePanel(),this._noisyMiddlePanel()}notifyLeftHandleResized(){this._updateMiddlePanel()}notifyRightHandleResized(){this._updateMiddlePanel()}notifyTimelineHeightChanged(){this._updateMiddlePanel()}notifyWindowResized(){this.emit("leftPanelResized"),this._updateMiddlePanel()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(83),r=n.n(o),i=n(89),a=n(90),s=n(305),c=n(96),l=n(98);class d{constructor(){r()(this,"dispatcherRef",void 0),r()(this,"onAction",e=>{e.action===c.a.UpdateFontSize?this.setRootFontSize(e.size):e.action===c.a.UpdateSystemFont&&this.setSystemFont(e)}),r()(this,"setRootFontSize",e=>{const t=Math.max(Math.min(d.MAX_SIZE,e),d.MIN_SIZE);t!==e&&a.b.setValue("baseFontSize",null,l.a.DEVICE,t),document.querySelector(":root").style.fontSize=Object(s.a)(t)}),r()(this,"setSystemFont",({useSystemFont:e,font:t})=>{document.body.style.fontFamily=e?t:""}),this.dispatcherRef=null}start(){this.setRootFontSize(a.b.getValue("baseFontSize")),this.setSystemFont({useSystemFont:a.b.getValue("useSystemFont"),font:a.b.getValue("systemFont")}),this.dispatcherRef=i.a.register(this.onAction)}stop(){i.a.unregister(this.dispatcherRef)}}r()(d,"MIN_SIZE",8),r()(d,"MAX_SIZE",15),r()(d,"SIZE_DIFF",5)},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(122),l=n(84),d=n(104),u=n(93),h=n(88),p=n(457),m=n(89),g=n(145),f=n(116),_=n(85);let b=Object(_.a)("views.dialogs.CreateCommunityPrototypeDialog")(o=class extends s.a.PureComponent{constructor(e){super(e),i()(this,"avatarUploadRef",s.a.createRef()),i()(this,"onNameChange",e=>{const t=(e.target.value||"").toLowerCase().replace(/[^a-z0-9.\-_]/g,"-");this.setState({name:e.target.value,localpart:t})}),i()(this,"onSubmit",async e=>{if(e.preventDefault(),e.stopPropagation(),!this.state.busy){this.setState({busy:!0});try{let e="";this.state.avatarFile&&(e=await h.a.get().uploadContent(this.state.avatarFile));const t=await h.a.get().createGroup({localpart:this.state.localpart,profile:{name:this.state.name,avatar_url:e}});m.a.dispatch({action:"deselect_tags"},!0),m.a.dispatch({action:"select_tag",tag:t.group_id}),this.props.onFinished(!0),t.room_id?(await f.a.refreshGroupRooms(t.group_id),m.a.dispatch({action:"view_room",room_id:t.room_id}),Object(g.f)(t.room_id,this.state.name)):m.a.dispatch({action:"view_group",group_id:t.group_id,group_is_new:!0})}catch(e){console.error(e),this.setState({busy:!1,error:Object(l.a)("There was an error creating your community. The name may be taken or the server is unable to process your request.")})}}}),i()(this,"onAvatarChanged",e=>{if(e.target.files&&e.target.files.length){this.setState({busy:!0});const t=e.target.files[0],n=new FileReader;n.onload=e=>{this.setState({avatarFile:t,busy:!1,avatarPreview:e.target.result})},n.readAsDataURL(t)}else this.setState({avatarFile:null})}),i()(this,"onChangeAvatar",()=>{this.avatarUploadRef.current&&this.avatarUploadRef.current.click()}),this.state={name:"",localpart:"",error:null,busy:!1,avatarFile:null,avatarPreview:null}}render(){let e=null;this.state.localpart&&(e=s.a.createElement("span",{className:"mx_CreateCommunityPrototypeDialog_communityId"},Object(l.a)("Community ID: +<localpart />:%(domain)s",{domain:h.a.getHomeserverName()},{localpart:()=>s.a.createElement("u",null,this.state.localpart)}),s.a.createElement(p.a,{tooltip:Object(l.a)("Use this when referencing your community to others. The community ID cannot be changed.")})));let t=s.a.createElement("span",{className:"mx_CreateCommunityPrototypeDialog_subtext"},Object(l.a)("You can change this later if needed."));if(this.state.error){const e="mx_CreateCommunityPrototypeDialog_subtext mx_CreateCommunityPrototypeDialog_subtext_error";t=s.a.createElement("span",{className:e},this.state.error)}let n=s.a.createElement("img",{src:this.state.avatarPreview,className:"mx_CreateCommunityPrototypeDialog_avatar"});return this.state.avatarPreview||(n=s.a.createElement("div",{className:"mx_CreateCommunityPrototypeDialog_placeholderAvatar"})),s.a.createElement(c.a,{className:"mx_CreateCommunityPrototypeDialog",onFinished:this.props.onFinished,title:Object(l.a)("What's the name of your community or team?")},s.a.createElement("form",{onSubmit:this.onSubmit},s.a.createElement("div",{className:"mx_Dialog_content"},s.a.createElement("div",{className:"mx_CreateCommunityPrototypeDialog_colName"},s.a.createElement(d.a,{value:this.state.name,onChange:this.onNameChange,placeholder:Object(l.a)("Enter name"),label:Object(l.a)("Enter name")}),t,s.a.createElement("span",{className:"mx_CreateCommunityPrototypeDialog_subtext"}," ",e),s.a.createElement(u.a,{kind:"primary",onClick:this.onSubmit,disabled:this.state.busy},Object(l.a)("Create"))),s.a.createElement("div",{className:"mx_CreateCommunityPrototypeDialog_colAvatar"},s.a.createElement("input",{type:"file",style:{display:"none"},ref:this.avatarUploadRef,accept:"image/*",onChange:this.onAvatarChanged}),s.a.createElement(u.a,{onClick:this.onChangeAvatar,className:"mx_CreateCommunityPrototypeDialog_avatarContainer"},n),s.a.createElement("div",{className:"mx_CreateCommunityPrototypeDialog_tip"},s.a.createElement("b",null,Object(l.a)("Add image (optional)")),s.a.createElement("span",null,Object(l.a)("An image will help people identify your community.")))))))}})||o},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var o=n(83),r=n.n(o),i=n(7),a=n.n(i),s=n(605);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}class l extends a.a{static get instance(){return l._instance||(l._instance=new l),l._instance}storeInvite(e,t){const n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({roomId:e},t),o=this.generateIdOf(n);return localStorage.setItem("mx_threepid_invite_"+o,JSON.stringify(n)),this.translateInvite(n)}getWireInvites(){const e=[];for(let t=0;t<localStorage.length;t++){const n=localStorage.key(t);n.startsWith("mx_threepid_invite_")&&e.push(JSON.parse(localStorage.getItem(n)))}return e}getInvites(){return this.getWireInvites().map(e=>this.translateInvite(e))}pickBestInvite(){return this.getInvites()[0]}resolveInvite(e){localStorage.removeItem("mx_threepid_invite_"+e.id)}generateIdOf(t){return s.base32.stringify(e.from(JSON.stringify(t)))}translateInvite(e){return{id:this.generateIdOf(e),roomId:e.roomId,toEmail:e.email,signUrl:e.signurl,roomName:e.room_name,roomAvatarUrl:e.room_avatar_url,inviterName:e.inviter_name}}translateToWireFormat(e){return{email:e.toEmail,signurl:e.signUrl,room_name:e.roomName,room_avatar_url:e.roomAvatarUrl,inviter_name:e.inviterName}}}r()(l,"_instance",void 0)}).call(this,n(32).Buffer)},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o,r=n(83),i=n.n(r),a=n(82),s=n(136),c=n(84),l=n(88),d=n(93),u=n(104),h=n(458),p=n(89),m=n(91),g=n(130),f=n(137),_=n(85);let b=Object(_.a)("views.voip.DialPadModal")(o=class extends a.PureComponent{constructor(e){super(e),i()(this,"onCancelClick",()=>{this.props.onFinished(!1)}),i()(this,"onChange",e=>{this.setState({value:e.target.value})}),i()(this,"onFormSubmit",e=>{e.preventDefault(),this.onDialPress()}),i()(this,"onDigitPress",e=>{this.setState({value:this.state.value+e})}),i()(this,"onDeletePress",()=>{0!==this.state.value.length&&this.setState({value:this.state.value.slice(0,-1)})}),i()(this,"onDialPress",async()=>{const e=await f.c.sharedInstance().pstnLookup(this.state.value);e&&0!==e.length&&e[0].userid||m.a.createTrackedDialog("","",g.a,{title:Object(c.a)("Unable to look up phone number"),description:Object(c.a)("There was an error looking up the phone number")});const t=e[0].userid,n=await Object(s.d)(l.a.get(),t);p.a.dispatch({action:"view_room",room_id:n}),this.props.onFinished(!0)}),this.state={value:""}}render(){return a.createElement("div",{className:"mx_DialPadModal"},a.createElement("div",{className:"mx_DialPadModal_header"},a.createElement("div",null,a.createElement("span",{className:"mx_DialPadModal_title"},Object(c.a)("Dial pad")),a.createElement(d.a,{className:"mx_DialPadModal_cancel",onClick:this.onCancelClick})),a.createElement("form",{onSubmit:this.onFormSubmit},a.createElement(u.a,{className:"mx_DialPadModal_field",id:"dialpad_number",value:this.state.value,autoFocus:!0,onChange:this.onChange}))),a.createElement("div",{className:"mx_DialPadModal_horizSep"}),a.createElement("div",{className:"mx_DialPadModal_dialPad"},a.createElement(h.a,{hasDialAndDelete:!0,onDigitPress:this.onDigitPress,onDeletePress:this.onDeletePress,onDialPress:this.onDialPress})))}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o=n(82),r=n.n(o),i=n(86),a=n.n(i),s=n(87),c=n(16),l=n.n(c),d=n(84);const u=["vector-im/element-web","matrix-org/matrix-react-sdk","matrix-org/matrix-js-sdk"];class h extends r.a.Component{constructor(e){super(e),this.state={}}componentDidMount(){const e=this.props.newVersion.split("-"),t=this.props.version.split("-");if(null!=e&&null!=t)for(let n=0;n<u.length;n++){const o=t[2*n],r=e[2*n],i=`https://riot.im/github/repos/${u[n]}/compare/${o}...${r}`;l()(i,(e,t,o)=>{t.statusCode<200||t.statusCode>=300?this.setState({[u[n]]:t.statusText}):this.setState({[u[n]]:JSON.parse(o).commits})})}}_elementsForCommit(e){return r.a.createElement("li",{key:e.sha,className:"mx_ChangelogDialog_li"},r.a.createElement("a",{href:e.html_url,target:"_blank",rel:"noreferrer noopener"},e.commit.message.split("\n")[0]))}render(){const e=s.getComponent("views.elements.Spinner"),t=s.getComponent("dialogs.QuestionDialog"),n=u.map(t=>{let n;return n=null==this.state[t]?r.a.createElement(e,{key:t}):"string"==typeof this.state[t]?Object(d.a)("Unable to load commit detail: %(msg)s",{msg:this.state[t]}):this.state[t].map(this._elementsForCommit),r.a.createElement("div",{key:t},r.a.createElement("h2",null,t),r.a.createElement("ul",null,n))}),o=r.a.createElement("div",{className:"mx_ChangelogDialog_content"},null==this.props.version||null==this.props.newVersion?r.a.createElement("h2",null,Object(d.a)("Unavailable")):n);return r.a.createElement(t,{title:Object(d.a)("Changelog"),description:o,button:Object(d.a)("Update"),onFinished:this.props.onFinished})}}h.propTypes={version:a.a.string.isRequired,newVersion:a.a.string.isRequired,onFinished:a.a.func.isRequired}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(196);async function r(e,t){const n=e.getUserId();let{threepids:r}=await e.getThreePids();if(t&&(r=r.filter(e=>e.medium===t)),r.length>0&&e.getIdentityServerUrl())try{const i=new o.a,a=await i.getAccessToken({check:!1}),s=r.map(({medium:e,address:t})=>[e,t]),c=await e.bulkLookupThreePids(s,a);for(const[e,o,i]of c.threepids){if(i!==n)continue;if(t&&e!==t)continue;const a=r.find(t=>t.medium===e&&t.address===o);a&&(a.bound=!0)}}catch(e){if("M_TERMS_NOT_SIGNED"!==e.errcode)throw e}return r}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(84),l=n(86),d=n.n(l),u=n(90),h=n(175),p=n(87),m=n(98),g=n(85);class f extends s.a.Component{constructor(...e){super(...e),i()(this,"_onChange",async e=>{await u.b.setValue(this.props.featureId,null,m.a.DEVICE,e),this.forceUpdate()})}render(){const e=u.b.getDisplayName(this.props.featureId),t=u.b.getValue(this.props.featureId),n=u.b.canSetValue(this.props.featureId,null,m.a.DEVICE);return s.a.createElement(h.a,{value:t,label:e,onChange:this._onChange,disabled:!n})}}i()(f,"propTypes",{featureId:d.a.string.isRequired});let _=Object(g.a)("views.settings.tabs.user.LabsUserSettingsTab")(o=class extends s.a.Component{constructor(){super()}render(){const e=p.getComponent("views.elements.SettingsFlag"),t=u.b.getFeatureSettingNames().map(e=>s.a.createElement(f,{featureId:e,key:e}));return s.a.createElement("div",{className:"mx_SettingsTab"},s.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Labs")),s.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("Customise your experience with experimental labs features. <a>Learn more</a>.",{},{a:e=>s.a.createElement("a",{href:"https://github.com/vector-im/element-web/blob/develop/docs/labs.md",rel:"noreferrer noopener",target:"_blank"},e)})),s.a.createElement("div",{className:"mx_SettingsTab_section"},t,s.a.createElement(e,{name:"enableWidgetScreenshots",level:m.a.ACCOUNT}),s.a.createElement(e,{name:"showHiddenEventsInTimeline",level:m.a.DEVICE}),s.a.createElement(e,{name:"lowBandwidth",level:m.a.DEVICE}),s.a.createElement(e,{name:"advancedRoomListLogging",level:m.a.DEVICE})))}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return D}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(84),l=n(94),d=n(88),u=n(90),h=n(253),p=n(344),m=n(667),g=n(93),f=n(89),_=n(659),b=n(96),v=n(140),y=n(668),E=n(104),S=n(669),w=n(350),C=n(98),T=n(106),x=n(162),O=n(85);function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}let D=Object(O.a)("views.settings.tabs.user.AppearanceUserSettingsTab")(o=class extends s.a.Component{constructor(e){super(e),i()(this,"MESSAGE_PREVIEW_TEXT",Object(c.a)("Hey you. You're the best!")),i()(this,"themeTimer",void 0),i()(this,"onThemeChange",e=>{if(this.state.theme===e)return;const t=u.b.getValue("theme");u.b.setValue("theme",null,C.a.DEVICE,e).catch(()=>{f.a.dispatch({action:b.a.RecheckTheme}),this.setState({theme:t})}),this.setState({theme:e}),f.a.dispatch({action:b.a.RecheckTheme,forceTheme:e})}),i()(this,"onUseSystemThemeChanged",e=>{this.setState({useSystemTheme:e}),u.b.setValue("use_system_theme",null,C.a.DEVICE,e),f.a.dispatch({action:b.a.RecheckTheme})}),i()(this,"onFontSizeChanged",e=>{this.setState({fontSize:e.toString()}),u.b.setValue("baseFontSize",null,C.a.DEVICE,e-_.a.SIZE_DIFF)}),i()(this,"onValidateFontSize",async({value:e})=>{const t=parseFloat(e),n=_.a.MIN_SIZE+_.a.SIZE_DIFF,o=_.a.MAX_SIZE+_.a.SIZE_DIFF;return isNaN(t)?{valid:!1,feedback:Object(c.a)("Size must be a number")}:n<=t&&t<=o?(u.b.setValue("baseFontSize",null,C.a.DEVICE,parseInt(e,10)-_.a.SIZE_DIFF),{valid:!0,feedback:Object(c.a)("Use between %(min)s pt and %(max)s pt",{min:n,max:o})}):{valid:!1,feedback:Object(c.a)("Custom font size can only be between %(min)s pt and %(max)s pt",{min:n,max:o})}}),i()(this,"onAddCustomTheme",async()=>{let e=u.b.getValue("custom_themes");e||(e=[]),e=e.map(e=>e),this.themeTimer&&clearTimeout(this.themeTimer);try{const t=await fetch(this.state.customThemeUrl),n=await t.json();if(!n||"string"!=typeof n.name||"object"!=typeof n.colors)return void this.setState({customThemeMessage:{text:Object(c.a)("Invalid theme schema."),isError:!0}});e.push(n)}catch(e){return console.error(e),void this.setState({customThemeMessage:{text:Object(c.a)("Error downloading theme information."),isError:!0}})}await u.b.setValue("custom_themes",null,C.a.ACCOUNT,e),this.setState({customThemeUrl:"",customThemeMessage:{text:Object(c.a)("Theme added!"),isError:!1}}),this.themeTimer=setTimeout(()=>{this.setState({customThemeMessage:{text:"",isError:!1}})},3e3)}),i()(this,"onCustomThemeChange",e=>{this.setState({customThemeUrl:e.target.value})}),i()(this,"onIRCLayoutChange",e=>{e?(this.setState({layout:x.a.IRC}),u.b.setValue("layout",null,C.a.DEVICE,x.a.IRC)):(this.setState({layout:x.a.Group}),u.b.setValue("layout",null,C.a.DEVICE,x.a.Group))}),this.state=R(R({fontSize:(u.b.getValue("baseFontSize",null)+_.a.SIZE_DIFF).toString()},this.calculateThemeState()),{},{customThemeUrl:"",customThemeMessage:{isError:!1,text:""},useCustomFontSize:u.b.getValue("useCustomFontSize"),useSystemFont:u.b.getValue("useSystemFont"),systemFont:u.b.getValue("systemFont"),showAdvanced:!1,layout:u.b.getValue("layout"),userId:"@erim:fink.fink",displayName:"Erimayas Fink",avatarUrl:null})}async componentDidMount(){const e=d.a.get(),t=e.getUserId(),n=await e.getProfileInfo(t);this.setState({userId:t,displayName:n.displayname,avatarUrl:n.avatar_url})}calculateThemeState(){const e=u.b.getValue("theme"),t=u.b.getValueAt(C.a.DEVICE,"use_system_theme",null,!1,!0),n=u.b.getValueAt(C.a.DEVICE,"theme",null,!1,!0);return t?{theme:e,useSystemTheme:!0}:n?{theme:e,useSystemTheme:!1}:{theme:e,useSystemTheme:u.b.getValueAt(C.a.DEVICE,"use_system_theme")}}renderThemeSection(){let e,t;if((new p.a).isSystemThemeSupported()&&(e=s.a.createElement("div",null,s.a.createElement(v.a,{checked:this.state.useSystemTheme,onChange:e=>this.onUseSystemThemeChanged(e.target.checked)},u.b.getDisplayName("use_system_theme")))),u.b.getValue("feature_custom_themes")){let e=null;this.state.customThemeMessage.text&&(e=this.state.customThemeMessage.isError?s.a.createElement("div",{className:"text-error"},this.state.customThemeMessage.text):s.a.createElement("div",{className:"text-success"},this.state.customThemeMessage.text)),t=s.a.createElement("div",{className:"mx_SettingsTab_section"},s.a.createElement("form",{onSubmit:this.onAddCustomTheme},s.a.createElement(E.a,{label:Object(c.a)("Custom theme URL"),type:"text",id:"mx_GeneralUserSettingsTab_customThemeInput",autoComplete:"off",onChange:this.onCustomThemeChange,value:this.state.customThemeUrl}),s.a.createElement(g.a,{onClick:this.onAddCustomTheme,type:"submit",kind:"primary_sm",disabled:!this.state.customThemeUrl.trim()},Object(c.a)("Add theme")),e))}const n=Object.entries(Object(h.b)()).map(e=>({id:e[0],name:e[1]})),o=n.filter(e=>!e.id.startsWith("custom-")),r=n.filter(e=>!o.includes(e)).sort((e,t)=>e.name.localeCompare(t.name)),i=[...o,...r];return s.a.createElement("div",{className:"mx_SettingsTab_section mx_AppearanceUserSettingsTab_themeSection"},s.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Theme")),e,s.a.createElement("div",{className:"mx_ThemeSelectors"},s.a.createElement(w.a,{name:"theme",definitions:i.map(e=>({value:e.id,label:e.name,disabled:this.state.useSystemTheme,className:"mx_ThemeSelector_"+e.id})),onChange:this.onThemeChange,value:this.state.useSystemTheme?void 0:this.state.theme,outlined:!0})),t)}renderFontSection(){return s.a.createElement("div",{className:"mx_SettingsTab_section mx_AppearanceUserSettingsTab_fontScaling"},s.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Font size")),s.a.createElement(S.a,{className:"mx_AppearanceUserSettingsTab_fontSlider_preview",message:this.MESSAGE_PREVIEW_TEXT,layout:this.state.layout,userId:this.state.userId,displayName:this.state.displayName,avatarUrl:this.state.avatarUrl}),s.a.createElement("div",{className:"mx_AppearanceUserSettingsTab_fontSlider"},s.a.createElement("div",{className:"mx_AppearanceUserSettingsTab_fontSlider_smallText"},"Aa"),s.a.createElement(m.a,{values:[13,14,15,16,18],value:parseInt(this.state.fontSize,10),onSelectionChange:this.onFontSizeChanged,displayFunc:e=>"",disabled:this.state.useCustomFontSize}),s.a.createElement("div",{className:"mx_AppearanceUserSettingsTab_fontSlider_largeText"},"Aa")),s.a.createElement(y.a,{name:"useCustomFontSize",level:C.a.ACCOUNT,onChange:e=>this.setState({useCustomFontSize:e}),useCheckbox:!0}),s.a.createElement(E.a,{type:"number",label:Object(c.a)("Font size"),autoComplete:"off",placeholder:this.state.fontSize.toString(),value:this.state.fontSize.toString(),id:"font_size_field",onValidate:this.onValidateFontSize,onChange:e=>this.setState({fontSize:e.target.value}),disabled:!this.state.useCustomFontSize,className:"mx_SettingsTab_customFontSizeField"}))}renderAdvancedSection(){if(!u.b.getValue(T.a.AdvancedSettings))return null;const e=l.a.get().brand,t=s.a.createElement("div",{className:"mx_AppearanceUserSettingsTab_AdvancedToggle",onClick:()=>this.setState({showAdvanced:!this.state.showAdvanced})},this.state.showAdvanced?Object(c.a)("Hide advanced"):Object(c.a)("Show advanced"));let n;if(this.state.showAdvanced){const t=Object(c.a)("Set the name of a font installed on your system & %(brand)s will attempt to use it.",{brand:e});n=s.a.createElement(s.a.Fragment,null,s.a.createElement(y.a,{name:"useCompactLayout",level:C.a.DEVICE,useCheckbox:!0,disabled:this.state.layout==x.a.IRC}),s.a.createElement(v.a,{checked:this.state.layout==x.a.IRC,onChange:e=>this.onIRCLayoutChange(e.target.checked)},Object(c.a)("Enable experimental, compact IRC style layout")),s.a.createElement(y.a,{name:"useSystemFont",level:C.a.DEVICE,useCheckbox:!0,onChange:e=>this.setState({useSystemFont:e})}),s.a.createElement(E.a,{className:"mx_AppearanceUserSettingsTab_systemFont",label:u.b.getDisplayName("systemFont"),onChange:e=>{this.setState({systemFont:e.target.value}),u.b.setValue("systemFont",null,C.a.DEVICE,e.target.value)},tooltipContent:t,forceTooltipVisible:!0,disabled:!this.state.useSystemFont,value:this.state.systemFont}))}return s.a.createElement("div",{className:"mx_SettingsTab_section mx_AppearanceUserSettingsTab_Advanced"},t,n)}render(){const e=l.a.get().brand;return s.a.createElement("div",{className:"mx_SettingsTab mx_AppearanceUserSettingsTab"},s.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Customise your appearance")),s.a.createElement("div",{className:"mx_SettingsTab_SubHeading"},Object(c.a)("Appearance Settings only affect this %(brand)s session.",{brand:e})),this.renderThemeSection(),this.renderFontSection(),this.renderAdvancedSection())}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var o,r=n(82),i=n(85);let a=Object(i.a)("views.elements.Slider")(o=class extends r.Component{offset(e,t){const n=e.reduce((e,n)=>t>n?e+1:e,0);if(0===n)return 0;if(n===e.length)return 100;const o=e[n-1],r=e[n],i=1/(e.length-1);return 100*(n-1+(t-o)/(r-o))*i}render(){const e=this.props.values.map(e=>r.createElement(s,{active:e<=this.props.value,label:this.props.displayFunc(e),onClick:this.props.disabled?()=>{}:()=>this.props.onSelectionChange(e),key:e,disabled:this.props.disabled}));let t=null;if(!this.props.disabled){const e=this.offset(this.props.values,this.props.value);t=r.createElement("div",{className:"mx_Slider_selection"},r.createElement("div",{className:"mx_Slider_selectionDot",style:{left:"calc(-0.55em + "+e+"%)"}}),r.createElement("hr",{style:{width:e+"%"}}))}return r.createElement("div",{className:"mx_Slider"},r.createElement("div",null,r.createElement("div",{className:"mx_Slider_bar"},r.createElement("hr",{onClick:this.props.disabled?()=>{}:this.onClick.bind(this)}),t),r.createElement("div",{className:"mx_Slider_dotContainer"},e)))}onClick(e){const t=e.target.clientWidth,n=e.nativeEvent.offsetX/t,o=this.props.values[Math.round(n*(this.props.values.length-1))];this.props.onSelectionChange(o)}})||o;class s extends r.PureComponent{render(){let e="mx_Slider_dot";return!this.props.disabled&&this.props.active&&(e+=" mx_Slider_dotActive"),r.createElement("span",{onClick:this.props.onClick,className:"mx_Slider_dotValue"},r.createElement("div",{className:e}),r.createElement("div",{className:"mx_Slider_labelContainer"},r.createElement("div",{className:"mx_Slider_label"},this.props.label)))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(90),l=n(84),d=n(292),u=n(140),h=n(85);let p=Object(h.a)("views.elements.SettingsFlag")(o=class extends s.a.Component{constructor(e){super(e),i()(this,"onChange",async e=>{await this.save(e),this.setState({value:e}),this.props.onChange&&this.props.onChange(e)}),i()(this,"checkBoxOnChange",e=>{this.onChange(e.target.checked)}),i()(this,"save",async e=>{await c.b.setValue(this.props.name,this.props.roomId,this.props.level,void 0!==e?e:this.state.value)}),this.state={value:c.b.getValueAt(this.props.level,this.props.name,this.props.roomId,this.props.isExplicit)}}render(){const e=c.b.canSetValue(this.props.name,this.props.roomId,this.props.level);let t=this.props.label;return t=t?Object(l.a)(t):c.b.getDisplayName(this.props.name,this.props.level),this.props.useCheckbox?s.a.createElement(u.a,{checked:this.state.value,onChange:this.checkBoxOnChange,disabled:this.props.disabled||!e},t):s.a.createElement("div",{className:"mx_SettingsFlag"},s.a.createElement("span",{className:"mx_SettingsFlag_label"},t),s.a.createElement(d.a,{checked:this.state.value,onChange:this.onChange,disabled:this.props.disabled||!e,"aria-label":t}))}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var o,r=n(82),i=n.n(r),a=n(92),s=n.n(a),c=n(103),l=n(205),d=n(209),u=n(90),h=n(162),p=n(106),m=n(85);let g=Object(m.a)("views.elements.EventTilePreview")(o=class extends i.a.Component{constructor(e){super(e),this.state={message:e.message}}fakeEvent({message:e}){const t={type:"m.room.message",sender:this.props.userId,content:{"m.new_content":{msgtype:"m.text",body:e,displayname:this.props.displayName,avatar_url:this.props.avatarUrl},msgtype:"m.text",body:e,displayname:this.props.displayName,avatar_url:this.props.avatarUrl},unsigned:{age:97},event_id:"$9999999999999999999999999999999999999999999",room_id:"!999999999999999999:example.org"},n=new c.b(t);return n.sender={name:this.props.displayName,userId:this.props.userId,getAvatarUrl:(...e)=>l.c({avatarUrl:this.props.avatarUrl},32,32,"crop"),getMxcAvatarUrl:()=>this.props.avatarUrl},n}render(){const e=this.fakeEvent(this.state),t=s()(this.props.className,{mx_IRCLayout:this.props.layout==h.a.IRC,mx_GroupLayout:this.props.layout==h.a.Group});return i.a.createElement("div",{className:t},i.a.createElement(d.a,{mxEvent:e,layout:this.props.layout,enableFlair:u.b.getValue(p.a.Flair)}))}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return I}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(84),p=n(94),m=n(88),g=n(159),f=n(93),_=n(120),b=n(91),v=n(87),y=n(125),E=n(89),S=n(136),w=n(98),C=n(671),T=n(90),x=n(106),O=n(672),k=n(108),R=n(85);class D extends l.a.Component{constructor(...e){super(...e),s()(this,"_onUnignoreClicked",e=>{this.props.onUnignored(this.props.userId)})}render(){const e="mx_SecurityUserSettingsTab_ignoredUser_"+this.props.userId;return l.a.createElement("div",{className:"mx_SecurityUserSettingsTab_ignoredUser"},l.a.createElement(f.a,{onClick:this._onUnignoreClicked,kind:"primary_sm","aria-describedby":e,disabled:this.props.inProgress},Object(h.a)("Unignore")),l.a.createElement("span",{id:e},this.props.userId))}}s()(D,"propTypes",{userId:u.a.string.isRequired,onUnignored:u.a.func.isRequired,inProgress:u.a.bool.isRequired});let I=Object(R.a)("views.settings.tabs.user.SecurityUserSettingsTab")((i=r=class extends l.a.Component{constructor(){super(),s()(this,"_updateBlacklistDevicesFlag",e=>{m.a.get().setGlobalBlacklistUnverifiedDevices(e)}),s()(this,"_updateAnalytics",e=>{e?_.a.enable():_.a.disable(),k.a.instance.enable(!e)}),s()(this,"_onExportE2eKeysClicked",()=>{b.a.createTrackedDialogAsync("Export E2E Keys","",n.e(3).then(n.bind(null,1375)),{matrixClient:m.a.get()})}),s()(this,"_onImportE2eKeysClicked",()=>{b.a.createTrackedDialogAsync("Import E2E Keys","",n.e(25).then(n.bind(null,1376)),{matrixClient:m.a.get()})}),s()(this,"_onGoToUserProfileClick",()=>{E.a.dispatch({action:"view_user_info",userId:m.a.get().getUserId()}),this.props.closeSettingsFn()}),s()(this,"_onUserUnignored",async e=>{const{ignoredUserIds:t,waitingUnignored:n}=this.state,o=t.filter(e=>!n.includes(e)),r=o.indexOf(e);-1!==r&&(o.splice(r,1),this.setState(({waitingUnignored:t})=>({waitingUnignored:[...t,e]})),m.a.get().setIgnoredUsers(o))}),s()(this,"_getInvitedRooms",()=>m.a.get().getRooms().filter(e=>e.hasMembershipState(m.a.get().getUserId(),"invite"))),s()(this,"_manageInvites",async e=>{this.setState({managingInvites:!0});const t=this._getInvitedRooms().map(e=>e.roomId),n=this,o=m.a.get(),r=e?o.joinRoom.bind(o):o.leave.bind(o);for(let e=0;e<t.length;e++){const o=t[e];await r(o).then(()=>{this.setState({invitedRoomAmt:n.state.invitedRoomAmt-1})},async t=>{"M_LIMIT_EXCEEDED"===t.errcode?(await Object(y.d)(t.retry_after_ms||2500),e--):console.warn(t)})}this.setState({managingInvites:!1})}),s()(this,"_onAcceptAllInvitesClicked",e=>{this._manageInvites(!0)}),s()(this,"_onRejectAllInvitesClicked",e=>{this._manageInvites(!1)});const e=this._getInvitedRooms();this.state={ignoredUserIds:m.a.get().getIgnoredUsers(),waitingUnignored:[],managingInvites:!1,invitedRoomAmt:e.length},this._onAction=this._onAction.bind(this)}_onAction({action:e}){if("ignore_state_changed"===e){const e=m.a.get().getIgnoredUsers(),t=this.state.waitingUnignored.filter(t=>e.includes(t));this.setState({ignoredUserIds:e,waitingUnignored:t})}}componentDidMount(){this.dispatcherRef=E.a.register(this._onAction)}componentWillUnmount(){E.a.unregister(this.dispatcherRef)}_renderCurrentDeviceInfo(){const e=v.getComponent("views.elements.SettingsFlag"),t=m.a.get(),n=t.deviceId;let o=t.getDeviceEd25519Key();o=o?g.e(o):Object(h.a)("<not supported>");let r,i=null;return t.isCryptoEnabled()&&(i=l.a.createElement("div",{className:"mx_SecurityUserSettingsTab_importExportButtons"},l.a.createElement(f.a,{kind:"primary",onClick:this._onExportE2eKeysClicked},Object(h.a)("Export E2E room keys")),l.a.createElement(f.a,{kind:"primary",onClick:this._onImportE2eKeysClicked},Object(h.a)("Import E2E room keys")))),T.b.isEnabled("blacklistUnverifiedDevices")&&(r=l.a.createElement(e,{name:"blacklistUnverifiedDevices",level:w.a.DEVICE,onChange:this._updateBlacklistDevicesFlag})),l.a.createElement("div",{className:"mx_SettingsTab_section"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(h.a)("Cryptography")),l.a.createElement("ul",{className:"mx_SettingsTab_subsectionText mx_SecurityUserSettingsTab_deviceInfo"},l.a.createElement("li",null,l.a.createElement("label",null,Object(h.a)("Session ID:")),l.a.createElement("span",null,l.a.createElement("code",null,n))),l.a.createElement("li",null,l.a.createElement("label",null,Object(h.a)("Session key:")),l.a.createElement("span",null,l.a.createElement("code",null,l.a.createElement("b",null,o))))),i,r)}_renderIgnoredUsers(){const{waitingUnignored:e,ignoredUserIds:t}=this.state;if(!t||0===t.length)return null;const n=t.map(t=>l.a.createElement(D,{userId:t,onUnignored:this._onUserUnignored,key:t,inProgress:e.includes(t)}));return l.a.createElement("div",{className:"mx_SettingsTab_section"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(h.a)("Ignored users")),l.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},n))}_renderManageInvites(){if(0===this.state.invitedRoomAmt)return null;const e=this._getInvitedRooms(),t=v.getComponent("elements.InlineSpinner"),n=this._onAcceptAllInvitesClicked.bind(this,e),o=this._onRejectAllInvitesClicked.bind(this,e);return l.a.createElement("div",{className:"mx_SettingsTab_section mx_SecurityUserSettingsTab_bulkOptions"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(h.a)("Bulk options")),l.a.createElement(f.a,{onClick:n,kind:"primary",disabled:this.state.managingInvites},Object(h.a)("Accept all %(invitedRooms)s invites",{invitedRooms:this.state.invitedRoomAmt})),l.a.createElement(f.a,{onClick:o,kind:"danger",disabled:this.state.managingInvites},Object(h.a)("Reject all %(invitedRooms)s invites",{invitedRooms:this.state.invitedRoomAmt})),this.state.managingInvites?l.a.createElement(t,null):l.a.createElement("div",null))}render(){const e=p.a.get().brand,t=v.getComponent("views.settings.DevicesPanel"),n=v.getComponent("views.elements.SettingsFlag"),o=v.getComponent("views.settings.EventIndexPanel"),r=l.a.createElement("div",{className:"mx_SettingsTab_section"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(h.a)("Secure Backup")),l.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},l.a.createElement(C.a,null))),i=l.a.createElement("div",{className:"mx_SettingsTab_section"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(h.a)("Message search")),l.a.createElement(o,null)),a=v.getComponent("views.settings.CrossSigningPanel"),s=l.a.createElement("div",{className:"mx_SettingsTab_section"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(h.a)("Cross-signing")),l.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},l.a.createElement(a,null)));let c,d;Object(S.g)()||(c=l.a.createElement("div",{className:"mx_SecurityUserSettingsTab_warning"},Object(h.a)("Your server admin has disabled end-to-end encryption by default in private rooms & Direct Messages."))),(_.a.canEnable()||k.a.instance.canEnable())&&(d=l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(h.a)("Privacy")),l.a.createElement("div",{className:"mx_SettingsTab_section"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(h.a)("Analytics")),l.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(h.a)("%(brand)s collects anonymous analytics to allow us to improve the application.",{brand:e})," ",Object(h.a)("Privacy is important to us, so we don't collect any personal or identifiable data for our analytics."),l.a.createElement(f.a,{className:"mx_SettingsTab_linkBtn",onClick:_.a.showDetailsModal},Object(h.a)("Learn more about how we use analytics."))),l.a.createElement(n,{name:"analyticsOptIn",level:w.a.DEVICE,onChange:this._updateAnalytics}))));const u=v.getComponent("views.settings.E2eAdvancedPanel");let m;if(T.b.getValue(x.a.AdvancedSettings)){const e=this._renderIgnoredUsers(),t=this._renderManageInvites(),n=Object(O.b)()?l.a.createElement(u,null):null;(e||t||n)&&(m=l.a.createElement(l.a.Fragment,null,l.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(h.a)("Advanced")),l.a.createElement("div",{className:"mx_SettingsTab_section"},e,t,n)))}return l.a.createElement("div",{className:"mx_SettingsTab mx_SecurityUserSettingsTab"},c,l.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(h.a)("Where you’re logged in")),l.a.createElement("div",{className:"mx_SettingsTab_section"},l.a.createElement("span",null,Object(h.a)("Manage the names of and sign out of your sessions below or <a>verify them in your User Profile</a>.",{},{a:e=>l.a.createElement(f.a,{kind:"link",onClick:this._onGoToUserProfileClick},e)})),l.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(h.a)("A session's public name is visible to people you communicate with"),l.a.createElement(t,null))),l.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(h.a)("Encryption")),l.a.createElement("div",{className:"mx_SettingsTab_section"},r,i,s,this._renderCurrentDeviceInfo()),d,m)}},s()(r,"propTypes",{closeSettingsFn:u.a.func.isRequired}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(88),l=n(84),d=n(91),u=n(248),h=n(119),p=n(93),m=n(149),g=n(256),f=n(165),_=n(85);let b=Object(_.a)("views.settings.SecureBackupPanel")(o=class extends s.a.PureComponent{constructor(e){super(e),i()(this,"_onKeyBackupSessionsRemaining",e=>{this.setState({sessionsRemaining:e})}),i()(this,"_onKeyBackupStatus",()=>{this._loadBackupStatus()}),i()(this,"_startNewBackup",()=>{d.a.createTrackedDialogAsync("Key Backup","Key Backup",n.e(4).then(n.bind(null,739)),{onFinished:()=>{this._loadBackupStatus()}},null,!1,!0)}),i()(this,"_deleteBackup",()=>{d.a.createTrackedDialog("Delete Backup","",m.a,{title:Object(l.a)("Delete Backup"),description:Object(l.a)("Are you sure? You will lose your encrypted messages if your keys are not backed up properly."),button:Object(l.a)("Delete Backup"),danger:!0,onFinished:e=>{e&&(this.setState({loading:!0}),c.a.get().deleteKeyBackupVersion(this.state.backupInfo.version).then(()=>{this._loadBackupStatus()}))}})}),i()(this,"_restoreBackup",async()=>{d.a.createTrackedDialog("Restore Backup","",g.a,null,null,!1,!0)}),i()(this,"_resetSecretStorage",async()=>{this.setState({error:null});try{await Object(f.b)(()=>{},!0)}catch(e){if(console.error("Error resetting secret storage",e),this._unmounted)return;this.setState({error:e})}this._unmounted||this._loadBackupStatus()}),this._unmounted=!1,this.state={loading:!0,error:null,backupKeyStored:null,backupKeyCached:null,backupKeyWellFormed:null,secretStorageKeyInAccount:null,secretStorageReady:null,backupInfo:null,backupSigStatus:null,sessionsRemaining:0}}componentDidMount(){this._checkKeyBackupStatus(),c.a.get().on("crypto.keyBackupStatus",this._onKeyBackupStatus),c.a.get().on("crypto.keyBackupSessionsRemaining",this._onKeyBackupSessionsRemaining)}componentWillUnmount(){this._unmounted=!0,c.a.get()&&(c.a.get().removeListener("crypto.keyBackupStatus",this._onKeyBackupStatus),c.a.get().removeListener("crypto.keyBackupSessionsRemaining",this._onKeyBackupSessionsRemaining))}async _checkKeyBackupStatus(){this._getUpdatedDiagnostics();try{const{backupInfo:e,trustInfo:t}=await c.a.get().checkKeyBackup();this.setState({loading:!1,error:null,backupInfo:e,backupSigStatus:t})}catch(e){if(console.log("Unable to fetch check backup status",e),this._unmounted)return;this.setState({loading:!1,error:e,backupInfo:null,backupSigStatus:null})}}async _loadBackupStatus(){this.setState({loading:!0}),this._getUpdatedDiagnostics();try{const e=await c.a.get().getKeyBackupVersion(),t=await c.a.get().isKeyBackupTrusted(e);if(this._unmounted)return;this.setState({loading:!1,error:null,backupInfo:e,backupSigStatus:t})}catch(e){if(console.log("Unable to fetch key backup status",e),this._unmounted)return;this.setState({loading:!1,error:e,backupInfo:null,backupSigStatus:null})}}async _getUpdatedDiagnostics(){const e=c.a.get(),t=e._crypto._secretStorage,n=!!await e.isKeyBackupKeyStored(),o=await e._crypto.getSessionBackupPrivateKey(),r=!!o,i=o instanceof Uint8Array,a=await t.hasKey(),s=await e.isSecretStorageReady();this._unmounted||this.setState({backupKeyStored:n,backupKeyCached:r,backupKeyWellFormed:i,secretStorageKeyInAccount:a,secretStorageReady:s})}render(){const{loading:e,error:t,backupKeyStored:n,backupKeyCached:o,backupKeyWellFormed:r,secretStorageKeyInAccount:i,secretStorageReady:a,backupInfo:d,backupSigStatus:m,sessionsRemaining:g}=this.state;let f,_,b;const v=[];if(t)f=s.a.createElement("div",{className:"error"},Object(l.a)("Unable to load key backup status"));else if(e)f=s.a.createElement(h.a,null);else if(d){let e,t=Object(l.a)("Restore from Backup");c.a.get().getKeyBackupEnabled()?f=s.a.createElement("p",null,"✅ ",Object(l.a)("This session is backing up your keys. ")):(f=s.a.createElement(s.a.Fragment,null,s.a.createElement("p",null,Object(l.a)("This session is <b>not backing up your keys</b>, but you do have an existing backup you can restore from and add to going forward.",{},{b:e=>s.a.createElement("b",null,e)})),s.a.createElement("p",null,Object(l.a)("Connect this session to key backup before signing out to avoid losing any keys that may only be on this session."))),t=Object(l.a)("Connect this session to Key Backup")),e=c.a.get().getKeyBackupEnabled()?g>0?s.a.createElement("div",null,Object(l.a)("Backing up %(sessionsRemaining)s keys...",{sessionsRemaining:g})," ",s.a.createElement("br",null)):s.a.createElement("div",null,Object(l.a)("All keys backed up")," ",s.a.createElement("br",null)):"";let n,o=m.sigs.map((e,t)=>{const n=e.device?e.device.getDisplayName()||e.device.deviceId:null,o=t=>s.a.createElement("span",{className:e.valid?"mx_SecureBackupPanel_sigValid":"mx_SecureBackupPanel_sigInvalid"},t),r=t=>s.a.createElement("span",{className:e.device&&e.deviceTrust.isVerified()?"mx_SecureBackupPanel_deviceVerified":"mx_SecureBackupPanel_deviceNotVerified"},t),i=e=>s.a.createElement("span",{className:"mx_SecureBackupPanel_deviceName"},n),a=e.device&&e.device.getFingerprint()===c.a.get().getDeviceEd25519Key(),d=e.crossSigningId&&e.deviceId===c.a.get().getCrossSigningId();let u;return e.valid&&d?u=Object(l.a)("Backup has a <validity>valid</validity> signature from this user",{},{validity:o}):!e.valid&&d?u=Object(l.a)("Backup has a <validity>invalid</validity> signature from this user",{},{validity:o}):e.crossSigningId?u=Object(l.a)("Backup has a signature from <verify>unknown</verify> user with ID %(deviceId)s",{deviceId:e.deviceId},{verify:r}):e.device?e.valid&&a?u=Object(l.a)("Backup has a <validity>valid</validity> signature from this session",{},{validity:o}):!e.valid&&a?u=Object(l.a)("Backup has an <validity>invalid</validity> signature from this session",{},{validity:o}):e.valid&&e.deviceTrust.isVerified()?u=Object(l.a)("Backup has a <validity>valid</validity> signature from <verify>verified</verify> session <device></device>",{},{validity:o,verify:r,device:i}):e.valid&&!e.deviceTrust.isVerified()?u=Object(l.a)("Backup has a <validity>valid</validity> signature from <verify>unverified</verify> session <device></device>",{},{validity:o,verify:r,device:i}):!e.valid&&e.deviceTrust.isVerified()?u=Object(l.a)("Backup has an <validity>invalid</validity> signature from <verify>verified</verify> session <device></device>",{},{validity:o,verify:r,device:i}):e.valid||e.deviceTrust.isVerified()||(u=Object(l.a)("Backup has an <validity>invalid</validity> signature from <verify>unverified</verify> session <device></device>",{},{validity:o,verify:r,device:i})):u=Object(l.a)("Backup has a signature from <verify>unknown</verify> session with ID %(deviceId)s",{deviceId:e.deviceId},{verify:r}),s.a.createElement("div",{key:t},u)});0===m.sigs.length&&(o=Object(l.a)("Backup is not signed by any of your sessions")),m.trusted_locally&&(n=Object(l.a)("This backup is trusted because it has been restored on this session")),_=s.a.createElement(s.a.Fragment,null,s.a.createElement("tr",null,s.a.createElement("td",null,Object(l.a)("Backup version:")),s.a.createElement("td",null,d.version)),s.a.createElement("tr",null,s.a.createElement("td",null,Object(l.a)("Algorithm:")),s.a.createElement("td",null,d.algorithm))),b=s.a.createElement(s.a.Fragment,null,e,s.a.createElement("div",null,o),s.a.createElement("div",null,n)),v.push(s.a.createElement(p.a,{key:"restore",kind:"primary",onClick:this._restoreBackup},t)),Object(u.d)()||v.push(s.a.createElement(p.a,{key:"delete",kind:"danger",onClick:this._deleteBackup},Object(l.a)("Delete Backup")))}else f=s.a.createElement(s.a.Fragment,null,s.a.createElement("p",null,Object(l.a)("Your keys are <b>not being backed up from this session</b>.",{},{b:e=>s.a.createElement("b",null,e)})),s.a.createElement("p",null,Object(l.a)("Back up your keys before signing out to avoid losing them."))),v.push(s.a.createElement(p.a,{key:"setup",kind:"primary",onClick:this._startNewBackup},Object(l.a)("Set up")));i&&v.push(s.a.createElement(p.a,{key:"reset",kind:"danger",onClick:this._resetSecretStorage},Object(l.a)("Reset")));let y,E="";return o&&(E=", ",E+=r?Object(l.a)("well formed"):Object(l.a)("unexpected type")),v.length&&(y=s.a.createElement("div",{className:"mx_SecureBackupPanel_buttonRow"},v)),s.a.createElement("div",null,s.a.createElement("p",null,Object(l.a)("Back up your encryption keys with your account data in case you lose access to your sessions. Your keys will be secured with a unique Security Key.")),f,s.a.createElement("details",null,s.a.createElement("summary",null,Object(l.a)("Advanced")),s.a.createElement("table",{className:"mx_SecureBackupPanel_statusList"},s.a.createElement("tbody",null,s.a.createElement("tr",null,s.a.createElement("td",null,Object(l.a)("Backup key stored:")),s.a.createElement("td",null,!0===n?Object(l.a)("in secret storage"):Object(l.a)("not stored"))),s.a.createElement("tr",null,s.a.createElement("td",null,Object(l.a)("Backup key cached:")),s.a.createElement("td",null,o?Object(l.a)("cached locally"):Object(l.a)("not found locally"),E)),s.a.createElement("tr",null,s.a.createElement("td",null,Object(l.a)("Secret storage public key:")),s.a.createElement("td",null,i?Object(l.a)("in account data"):Object(l.a)("not found"))),s.a.createElement("tr",null,s.a.createElement("td",null,Object(l.a)("Secret storage:")),s.a.createElement("td",null,a?Object(l.a)("ready"):Object(l.a)("not ready"))),_)),b),y)}})||o},function(e,t,n){"use strict";n.d(t,"b",(function(){return l}));var o=n(82),r=n.n(o),i=n(87),a=n(84),s=n(98),c=n(90);function l(){return c.b.isEnabled("e2ee.manuallyVerifyAllSessions")}t.a=e=>{const t=i.getComponent("views.elements.SettingsFlag");return r.a.createElement("div",{className:"mx_SettingsTab_section"},r.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(a.a)("Encryption")),r.a.createElement(t,{name:"e2ee.manuallyVerifyAllSessions",level:s.a.DEVICE}),r.a.createElement("div",{className:"mx_E2eAdvancedPanel_settingLongDescription"},Object(a.a)("Individually verify each session used by a user to mark it as trusted, not trusting cross-signed devices.")))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o,r=n(82),i=n.n(r),a=n(84),s=n(87),c=n(85);let l=Object(c.a)("views.settings.tabs.user.NotificationUserSettingsTab")(o=class extends i.a.Component{constructor(){super()}render(){const e=s.getComponent("views.settings.Notifications");return i.a.createElement("div",{className:"mx_SettingsTab mx_NotificationUserSettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(a.a)("Notifications")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement(e,null)))}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(84),u=n(175),h=n(90),p=n(104),m=n(87),g=n(107),f=n(98),_=n(85);let b=Object(_.a)("views.settings.tabs.user.PreferencesUserSettingsTab")((i=r=class e extends l.a.Component{constructor(){super(),s()(this,"_onAutoLaunchChange",e=>{g.a.get().setAutoLaunchEnabled(e).then(()=>this.setState({autoLaunch:e}))}),s()(this,"_onWarnBeforeExitChange",e=>{g.a.get().setWarnBeforeExit(e).then(()=>this.setState({warnBeforeExit:e}))}),s()(this,"_onAlwaysShowMenuBarChange",e=>{g.a.get().setAutoHideMenuBarEnabled(!e).then(()=>this.setState({alwaysShowMenuBar:e}))}),s()(this,"_onMinimizeToTrayChange",e=>{g.a.get().setMinimizeToTrayEnabled(e).then(()=>this.setState({minimizeToTray:e}))}),s()(this,"_onAutocompleteDelayChange",e=>{this.setState({autocompleteDelay:e.target.value}),h.b.setValue("autocompleteDelay",null,f.a.DEVICE,e.target.value)}),s()(this,"_onReadMarkerInViewThresholdMs",e=>{this.setState({readMarkerInViewThresholdMs:e.target.value}),h.b.setValue("readMarkerInViewThresholdMs",null,f.a.DEVICE,e.target.value)}),s()(this,"_onReadMarkerOutOfViewThresholdMs",e=>{this.setState({readMarkerOutOfViewThresholdMs:e.target.value}),h.b.setValue("readMarkerOutOfViewThresholdMs",null,f.a.DEVICE,e.target.value)}),this.state={autoLaunch:!1,autoLaunchSupported:!1,warnBeforeExit:!0,warnBeforeExitSupported:!1,alwaysShowMenuBar:!0,alwaysShowMenuBarSupported:!1,minimizeToTray:!0,minimizeToTraySupported:!1,autocompleteDelay:h.b.getValueAt(f.a.DEVICE,"autocompleteDelay").toString(10),readMarkerInViewThresholdMs:h.b.getValueAt(f.a.DEVICE,"readMarkerInViewThresholdMs").toString(10),readMarkerOutOfViewThresholdMs:h.b.getValueAt(f.a.DEVICE,"readMarkerOutOfViewThresholdMs").toString(10)}}async componentDidMount(){const e=g.a.get(),t=await e.supportsAutoLaunch();let n=!1;t&&(n=await e.getAutoLaunchEnabled());const o=await e.supportsWarnBeforeExit();let r=!1;o&&(r=await e.shouldWarnBeforeExit());const i=await e.supportsAutoHideMenuBar();let a=!0;i&&(a=!await e.getAutoHideMenuBarEnabled());const s=await e.supportsMinimizeToTray();let c=!0;s&&(c=await e.getMinimizeToTrayEnabled()),this.setState({autoLaunch:n,autoLaunchSupported:t,warnBeforeExit:r,warnBeforeExitSupported:o,alwaysShowMenuBarSupported:i,alwaysShowMenuBar:a,minimizeToTraySupported:s,minimizeToTray:c})}_renderGroup(e){const t=m.getComponent("views.elements.SettingsFlag");return e.filter(h.b.isEnabled).map(e=>l.a.createElement(t,{key:e,name:e,level:f.a.ACCOUNT}))}render(){let t=null;this.state.autoLaunchSupported&&(t=l.a.createElement(u.a,{value:this.state.autoLaunch,onChange:this._onAutoLaunchChange,label:Object(d.a)("Start automatically after system login")}));let n=null;this.state.warnBeforeExitSupported&&(n=l.a.createElement(u.a,{value:this.state.warnBeforeExit,onChange:this._onWarnBeforeExitChange,label:Object(d.a)("Warn before quitting")}));let o=null;this.state.alwaysShowMenuBarSupported&&(o=l.a.createElement(u.a,{value:this.state.alwaysShowMenuBar,onChange:this._onAlwaysShowMenuBarChange,label:Object(d.a)("Always show the window menu bar")}));let r=null;return this.state.minimizeToTraySupported&&(r=l.a.createElement(u.a,{value:this.state.minimizeToTray,onChange:this._onMinimizeToTrayChange,label:Object(d.a)("Show tray icon and minimize window to it on close")})),l.a.createElement("div",{className:"mx_SettingsTab mx_PreferencesUserSettingsTab"},l.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(d.a)("Preferences")),l.a.createElement("div",{className:"mx_SettingsTab_section"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(d.a)("Room list")),this._renderGroup(e.ROOM_LIST_SETTINGS)),l.a.createElement("div",{className:"mx_SettingsTab_section"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(d.a)("Composer")),this._renderGroup(e.COMPOSER_SETTINGS)),l.a.createElement("div",{className:"mx_SettingsTab_section"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(d.a)("Timeline")),this._renderGroup(e.TIMELINE_SETTINGS)),l.a.createElement("div",{className:"mx_SettingsTab_section"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(d.a)("General")),this._renderGroup(e.GENERAL_SETTINGS),r,o,t,n,l.a.createElement(p.a,{label:Object(d.a)("Autocomplete delay (ms)"),type:"number",value:this.state.autocompleteDelay,onChange:this._onAutocompleteDelayChange}),l.a.createElement(p.a,{label:Object(d.a)("Read Marker lifetime (ms)"),type:"number",value:this.state.readMarkerInViewThresholdMs,onChange:this._onReadMarkerInViewThresholdMs}),l.a.createElement(p.a,{label:Object(d.a)("Read Marker off-screen lifetime (ms)"),type:"number",value:this.state.readMarkerOutOfViewThresholdMs,onChange:this._onReadMarkerOutOfViewThresholdMs})))}},s()(r,"ROOM_LIST_SETTINGS",["breadcrumbs"]),s()(r,"COMPOSER_SETTINGS",["MessageComposerInput.autoReplaceEmoji","MessageComposerInput.suggestEmoji","sendTypingNotifications","MessageComposerInput.ctrlEnterToSend","MessageComposerInput.showStickersButton"]),s()(r,"TIMELINE_SETTINGS",["showTypingNotifications","autoplayGifsAndVideos","urlPreviewsEnabled","TextualBody.enableBigEmoji","showReadReceipts","showTwelveHourTimestamps","alwaysShowTimestamps","showRedactions","enableSyntaxHighlightLanguageDetection","expandCodeByDefault","scrollToBottomOnMessageSent","showCodeLineNumbers","showJoinLeaves","showAvatarChanges","showDisplaynameChanges","showImages","showChatEffects","Pill.shouldShowPillAvatar","ctrlFForSearch"]),s()(r,"GENERAL_SETTINGS",["TagPanel.enableTagPanel","promptBeforeInviteUnknownUsers"]),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(84),l=n(94),d=n(462),u=n(104),h=n(93),p=n(88),m=n(87),g=n(91),f=n(98),_=n(85);let b=Object(_.a)("views.settings.tabs.user.VoiceUserSettingsTab")(o=class extends s.a.Component{constructor(){super(),i()(this,"_refreshMediaDevices",async e=>{this.setState({mediaDevices:await d.a.getDevices(),activeAudioOutput:d.a.getAudioOutput(),activeAudioInput:d.a.getAudioInput(),activeVideoInput:d.a.getVideoInput()}),e&&e.getTracks().forEach(e=>e.stop())}),i()(this,"_requestMediaPermissions",async()=>{let e,t,n;try{e={video:!0,audio:!0},t=await navigator.mediaDevices.getUserMedia(e)}catch(o){if("NotFoundError"===o.name){e={audio:!0};try{t=await navigator.mediaDevices.getUserMedia(e)}catch(e){n=e}}else n=o}if(n){console.log("Failed to list userMedia devices",n);const e=l.a.get().brand,t=m.getComponent("dialogs.ErrorDialog");g.a.createTrackedDialog("No media permissions","",t,{title:Object(c.a)("No media permissions"),description:Object(c.a)("You may need to manually permit %(brand)s to access your microphone/webcam",{brand:e})})}else this._refreshMediaDevices(t)}),i()(this,"_setAudioOutput",e=>{d.a.setAudioOutput(e.target.value),this.setState({activeAudioOutput:e.target.value})}),i()(this,"_setAudioInput",e=>{d.a.setAudioInput(e.target.value),this.setState({activeAudioInput:e.target.value})}),i()(this,"_setVideoInput",e=>{d.a.setVideoInput(e.target.value),this.setState({activeVideoInput:e.target.value})}),i()(this,"_changeWebRtcMethod",e=>{p.a.get().setForceTURN(!e)}),i()(this,"_changeFallbackICEServerAllowed",e=>{p.a.get().setFallbackICEServerAllowed(e)}),this.state={mediaDevices:!1,activeAudioOutput:null,activeAudioInput:null,activeVideoInput:null}}async componentDidMount(){await d.a.hasAnyLabeledDevices()&&this._refreshMediaDevices()}_renderDeviceOptions(e,t){return e.map(e=>s.a.createElement("option",{key:`${t}-${e.deviceId}`,value:e.deviceId},e.label))}render(){const e=m.getComponent("views.elements.SettingsFlag");let t=null,n=null,o=null,r=null;if(!1===this.state.mediaDevices)t=s.a.createElement("div",{className:"mx_VoiceUserSettingsTab_missingMediaPermissions"},s.a.createElement("p",null,Object(c.a)("Missing media permissions, click the button below to request.")),s.a.createElement(h.a,{onClick:this._requestMediaPermissions,kind:"primary"},Object(c.a)("Request media permissions")));else if(this.state.mediaDevices){n=s.a.createElement("p",null,Object(c.a)("No Audio Outputs detected")),o=s.a.createElement("p",null,Object(c.a)("No Microphones detected")),r=s.a.createElement("p",null,Object(c.a)("No Webcams detected"));const e={deviceId:"",label:Object(c.a)("Default Device")},t=t=>t.some(e=>"default"===e.deviceId)?"default":(t.unshift(e),""),i=this.state.mediaDevices.audiooutput.slice(0);if(i.length>0){const e=t(i);n=s.a.createElement(u.a,{element:"select",label:Object(c.a)("Audio Output"),value:this.state.activeAudioOutput||e,onChange:this._setAudioOutput},this._renderDeviceOptions(i,"audioOutput"))}const a=this.state.mediaDevices.audioinput.slice(0);if(a.length>0){const e=t(a);o=s.a.createElement(u.a,{element:"select",label:Object(c.a)("Microphone"),value:this.state.activeAudioInput||e,onChange:this._setAudioInput},this._renderDeviceOptions(a,"audioInput"))}const l=this.state.mediaDevices.videoinput.slice(0);if(l.length>0){const e=t(l);r=s.a.createElement(u.a,{element:"select",label:Object(c.a)("Camera"),value:this.state.activeVideoInput||e,onChange:this._setVideoInput},this._renderDeviceOptions(l,"videoInput"))}}return s.a.createElement("div",{className:"mx_SettingsTab mx_VoiceUserSettingsTab"},s.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Voice & Video")),s.a.createElement("div",{className:"mx_SettingsTab_section"},t,n,o,r,s.a.createElement(e,{name:"VideoView.flipVideoHorizontally",level:f.a.ACCOUNT}),s.a.createElement(e,{name:"webRtcAllowPeerToPeer",level:f.a.DEVICE,onChange:this._changeWebRtcMethod}),s.a.createElement(e,{name:"fallbackICEServerAllowed",level:f.a.DEVICE,onChange:this._changeFallbackICEServerAllowed})))}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(84),p=n(88),m=n(93),g=n(94),f=n(136),_=n(91),b=n(87),v=n(107),y=n(463),E=n(677),S=n(85);let w=Object(S.a)("views.settings.tabs.user.HelpUserSettingsTab")((i=r=class extends l.a.Component{constructor(){super(),s()(this,"_onClearCacheAndReload",e=>{v.a.get()&&(console.log("Clear cache & reload clicked"),p.a.get().stopClient(),p.a.get().store.deleteAllData().then(()=>{v.a.get().reload()}))}),s()(this,"_onBugReport",e=>{const t=b.getComponent("dialogs.BugReportDialog");t&&_.a.createTrackedDialog("Bug Report Dialog","",t,{})}),s()(this,"_onStartBotChat",e=>{this.props.closeSettingsFn(),Object(f.c)({dmUserId:g.a.get().welcomeUserId,andView:!0})}),s()(this,"_showSpoiler",e=>{const t=e.target;t.innerHTML=t.getAttribute("data-spoiler");const n=document.createRange();n.selectNodeContents(t);const o=window.getSelection();o.removeAllRanges(),o.addRange(n)}),this.state={appVersion:null,canUpdate:!1}}componentDidMount(){v.a.get().getAppVersion().then(e=>this.setState({appVersion:e})).catch(e=>{console.error("Error getting vector version: ",e)}),v.a.get().canSelfUpdate().then(e=>this.setState({canUpdate:e})).catch(e=>{console.error("Error getting self updatability: ",e)})}_renderLegal(){if(!g.a.get().terms_and_conditions_links)return null;const e=[];for(const t of g.a.get().terms_and_conditions_links)e.push(l.a.createElement("div",{key:t.url},l.a.createElement("a",{href:t.url,rel:"noreferrer noopener",target:"_blank"},t.text)));return l.a.createElement("div",{className:"mx_SettingsTab_section mx_HelpUserSettingsTab_versions"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(h.a)("Legal")),l.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},e))}_renderCredits(){return l.a.createElement("div",{className:"mx_SettingsTab_section"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(h.a)("Credits")),l.a.createElement("ul",null,l.a.createElement("li",null,"The ",l.a.createElement("a",{href:"themes/element/img/backgrounds/lake.jpg",rel:"noreferrer noopener",target:"_blank"},"default cover photo")," is © ",l.a.createElement("a",{href:"https://www.flickr.com/golan",rel:"noreferrer noopener",target:"_blank"},"Jesús Roncero")," ","used under the terms of ",l.a.createElement("a",{href:"https://creativecommons.org/licenses/by-sa/4.0/",rel:"noreferrer noopener",target:"_blank"},"CC-BY-SA 4.0"),"."),l.a.createElement("li",null,"The ",l.a.createElement("a",{href:"https://github.com/matrix-org/twemoji-colr",rel:"noreferrer noopener",target:"_blank"}," twemoji-colr")," font is © ",l.a.createElement("a",{href:"https://mozilla.org",rel:"noreferrer noopener",target:"_blank"},"Mozilla Foundation")," ","used under the terms of ",l.a.createElement("a",{href:"http://www.apache.org/licenses/LICENSE-2.0",rel:"noreferrer noopener",target:"_blank"},"Apache 2.0"),"."),l.a.createElement("li",null,"The ",l.a.createElement("a",{href:"https://twemoji.twitter.com/",rel:"noreferrer noopener",target:"_blank"},"Twemoji")," emoji art is © ",l.a.createElement("a",{href:"https://twemoji.twitter.com/",rel:"noreferrer noopener",target:"_blank"},"Twitter, Inc and other contributors")," used under the terms of ",l.a.createElement("a",{href:"https://creativecommons.org/licenses/by/4.0/",rel:"noreferrer noopener",target:"_blank"},"CC-BY 4.0"),".")))}render(){const e=g.a.get().brand;let t=Object(h.a)("For help with using %(brand)s, click <a>here</a>.",{brand:e},{a:e=>l.a.createElement("a",{href:"https://element.io/help",rel:"noreferrer noopener",target:"_blank"},e)});g.a.get().welcomeUserId&&Object(h.d)().startsWith("en")&&(t=l.a.createElement("div",null,Object(h.a)("For help with using %(brand)s, click <a>here</a> or start a chat with our bot using the button below.",{brand:e},{a:e=>l.a.createElement("a",{href:"https://element.io/help",rel:"noreferrer noopener",target:"_blank"},e)}),l.a.createElement("div",null,l.a.createElement(m.a,{onClick:this._onStartBotChat,kind:"primary"},Object(h.a)("Chat with %(brand)s Bot",{brand:e})))));const n=this.state.appVersion||"unknown";let o=p.a.get().olmVersion;o=o?`${o[0]}.${o[1]}.${o[2]}`:"<not-enabled>";let r,i=null;return this.state.canUpdate&&(i=l.a.createElement(E.a,null)),g.a.get().bug_report_endpoint_url&&(r=l.a.createElement("div",{className:"mx_SettingsTab_section"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(h.a)("Bug reporting")),l.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(h.a)("If you've submitted a bug via GitHub, debug logs can help us track down the problem. Debug logs contain application usage data including your username, the IDs or aliases of the rooms or groups you have visited and the usernames of other users. They do not contain messages."),l.a.createElement("div",{className:"mx_HelpUserSettingsTab_debugButton"},l.a.createElement(m.a,{onClick:this._onBugReport,kind:"primary"},Object(h.a)("Submit debug logs"))),Object(h.a)("To report a Matrix-related security issue, please read the Matrix.org <a>Security Disclosure Policy</a>.",{},{a:e=>l.a.createElement("a",{href:"https://matrix.org/security-disclosure-policy/",rel:"noreferrer noopener",target:"_blank"},e)})))),l.a.createElement("div",{className:"mx_SettingsTab mx_HelpUserSettingsTab"},l.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(h.a)("Help & About")),r,l.a.createElement("div",{className:"mx_SettingsTab_section"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(h.a)("FAQ")),l.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},t),l.a.createElement(m.a,{kind:"primary",onClick:y.d},Object(h.a)("Keyboard Shortcuts"))),l.a.createElement("div",{className:"mx_SettingsTab_section mx_HelpUserSettingsTab_versions"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(h.a)("Versions")),l.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(h.a)("%(brand)s version:",{brand:e})," ",n,l.a.createElement("br",null),Object(h.a)("olm version:")," ",o,l.a.createElement("br",null),i)),this._renderLegal(),this._renderCredits(),l.a.createElement("div",{className:"mx_SettingsTab_section mx_HelpUserSettingsTab_versions"},l.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(h.a)("Advanced")),l.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(h.a)("Homeserver is")," ",l.a.createElement("code",null,p.a.get().getHomeserverUrl()),l.a.createElement("br",null),Object(h.a)("Identity Server is")," ",l.a.createElement("code",null,p.a.get().getIdentityServerUrl()),l.a.createElement("br",null),Object(h.a)("Access Token:")+" ",l.a.createElement(m.a,{element:"span",onClick:this._showSpoiler,"data-spoiler":p.a.get().getAccessToken()},"<",Object(h.a)("click to reveal"),">"),l.a.createElement("div",{className:"mx_HelpUserSettingsTab_debugButton"},l.a.createElement(m.a,{onClick:this._onClearCacheAndReload,kind:"danger"},Object(h.a)("Clear cache and reload"))))))}},s()(r,"propTypes",{closeSettingsFn:u.a.func.isRequired}),o=i))||o},function(e,t,n){"use strict";var o=n(100),r=n.n(o),i=n(82),a=n.n(i),s=n(257),c=n(107),l=n(620),d=n(89),u=n(96),h=n(84),p=n(199),m=n(93);function g(){c.a.get().installUpdate()}const f=[s.d.Ready,s.d.Error,s.d.NotAvailable];t.a=()=>{const[e,t]=Object(i.useState)(null);Object(l.a)(d.a,e=>{let{action:n}=e,o=r()(e,["action"]);n===u.a.CheckUpdates&&t(o)});const n=e&&!f.includes(e.status);let o;return e&&(o=a.a.createElement("span",{className:"mx_UpdateCheckButton_summary"},function(e,t){switch(e){case s.d.Error:return Object(h.a)("Error encountered (%(errorDetail)s).",{errorDetail:t});case s.d.Checking:return Object(h.a)("Checking for an update...");case s.d.NotAvailable:return Object(h.a)("No update available.");case s.d.Downloading:return Object(h.a)("Downloading update...");case s.d.Ready:return Object(h.a)("New version available. <a>Update now.</a>",{},{a:e=>a.a.createElement(m.a,{kind:"link",onClick:g},e)})}}(e.status,e.detail),n&&a.a.createElement(p.a,null))),a.a.createElement(a.a.Fragment,null,a.a.createElement(m.a,{onClick:()=>{t(null),c.a.get().startUpdateCheck()},kind:"primary",disabled:n},Object(h.a)("Check for update")),o)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o,r=n(82),i=n.n(r),a=n(84),s=n(679),c=n(85);let l=Object(c.a)("views.settings.tabs.user.FlairUserSettingsTab")(o=class extends i.a.Component{render(){return i.a.createElement("div",{className:"mx_SettingsTab"},i.a.createElement("span",{className:"mx_SettingsTab_heading"},Object(a.a)("Flair")),i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement(s.a,null)))}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(87),u=n(84),h=n(97),p=n(85);let m=Object(p.a)("views.groups.GroupUserSettings")((i=r=class extends l.a.Component{constructor(...e){super(...e),s()(this,"state",{error:null,groups:null})}componentDidMount(){this.context.getJoinedGroups().then(e=>{this.setState({groups:e.groups||[],error:null})},e=>{console.error(e),this.setState({groups:null,error:e})})}render(){let e="",t=null;const n=this.state.groups;if(this.state.error)e=Object(u.a)("Something went wrong when trying to get your communities.");else if(null===n)e=Object(u.a)("Loading...");else if(n.length>0){const o=d.getComponent("groups.GroupPublicityToggle");t=n.map((e,t)=>l.a.createElement(o,{key:t,groupId:e})),e=Object(u.a)("Display your community flair in rooms configured to show it.")}else e=Object(u.a)("You're not currently a member of any communities.");return l.a.createElement("div",null,l.a.createElement("p",{className:"mx_SettingsTab_subsectionText"},e),l.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},t))}},s()(r,"contextType",h.a),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(84),l=n(94),d=n(453),u=(n(750),n(346)),h=n(91),p=n(88),m=n(87),g=n(85);let f=Object(g.a)("views.settings.tabs.user.MjolnirUserSettingsTab")(o=class extends s.a.Component{constructor(){super(),i()(this,"_onPersonalRuleChanged",e=>{this.setState({newPersonalRule:e.target.value})}),i()(this,"_onNewListChanged",e=>{this.setState({newList:e.target.value})}),i()(this,"_onAddPersonalRule",async e=>{e.preventDefault(),e.stopPropagation();let t=u.d;this.state.newPersonalRule.startsWith("@")&&(t=u.e),this.setState({busy:!0});try{const e=await d.a.sharedInstance().getOrCreatePersonalList();await e.banEntity(t,this.state.newPersonalRule,Object(c.a)("Ignored/Blocked")),this.setState({newPersonalRule:""})}catch(e){console.error(e);const t=m.getComponent("dialogs.ErrorDialog");h.a.createTrackedDialog("Failed to add Mjolnir rule","",t,{title:Object(c.a)("Error adding ignored user/server"),description:Object(c.a)("Something went wrong. Please try again or view your console for hints.")})}finally{this.setState({busy:!1})}}),i()(this,"_onSubscribeList",async e=>{e.preventDefault(),e.stopPropagation(),this.setState({busy:!0});try{const e=await p.a.get().joinRoom(this.state.newList);await d.a.sharedInstance().subscribeToList(e.roomId),this.setState({newList:""})}catch(e){console.error(e);const t=m.getComponent("dialogs.ErrorDialog");h.a.createTrackedDialog("Failed to subscribe to Mjolnir list","",t,{title:Object(c.a)("Error subscribing to list"),description:Object(c.a)("Please verify the room ID or address and try again.")})}finally{this.setState({busy:!1})}}),this.state={busy:!1,newPersonalRule:"",newList:""}}async _removePersonalRule(e){this.setState({busy:!0});try{const t=d.a.sharedInstance().getPersonalList();await t.unbanEntity(e.kind,e.entity)}catch(e){console.error(e);const t=m.getComponent("dialogs.ErrorDialog");h.a.createTrackedDialog("Failed to remove Mjolnir rule","",t,{title:Object(c.a)("Error removing ignored user/server"),description:Object(c.a)("Something went wrong. Please try again or view your console for hints.")})}finally{this.setState({busy:!1})}}async _unsubscribeFromList(e){this.setState({busy:!0});try{await d.a.sharedInstance().unsubscribeFromList(e.roomId),await p.a.get().leave(e.roomId)}catch(e){console.error(e);const t=m.getComponent("dialogs.ErrorDialog");h.a.createTrackedDialog("Failed to unsubscribe from Mjolnir list","",t,{title:Object(c.a)("Error unsubscribing from list"),description:Object(c.a)("Please try again or view your console for hints.")})}finally{this.setState({busy:!1})}}_viewListRules(e){const t=m.getComponent("dialogs.QuestionDialog"),n=p.a.get().getRoom(e.roomId),o=n?n.name:e.roomId,r=e=>{if(0===e.length)return s.a.createElement("i",null,Object(c.a)("None"));const t=[];for(const n of e)t.push(s.a.createElement("li",{key:n.kind+n.entity},s.a.createElement("code",null,n.entity)));return s.a.createElement("ul",null,t)};h.a.createTrackedDialog("View Mjolnir list rules","",t,{title:Object(c.a)("Ban list rules - %(roomName)s",{roomName:o}),description:s.a.createElement("div",null,s.a.createElement("h3",null,Object(c.a)("Server rules")),r(e.serverRules),s.a.createElement("h3",null,Object(c.a)("User rules")),r(e.userRules)),button:Object(c.a)("Close"),hasCancelButton:!1})}_renderPersonalBanListRules(){const e=m.getComponent("elements.AccessibleButton"),t=d.a.sharedInstance().getPersonalList(),n=t?[...t.userRules,...t.serverRules]:[];if(!t||n.length<=0)return s.a.createElement("i",null,Object(c.a)("You have not ignored anyone."));const o=[];for(const t of n)o.push(s.a.createElement("li",{key:t.entity,className:"mx_MjolnirUserSettingsTab_listItem"},s.a.createElement(e,{kind:"danger_sm",onClick:()=>this._removePersonalRule(t),disabled:this.state.busy},Object(c.a)("Remove"))," ",s.a.createElement("code",null,t.entity)));return s.a.createElement("div",null,s.a.createElement("p",null,Object(c.a)("You are currently ignoring:")),s.a.createElement("ul",null,o))}_renderSubscribedBanLists(){const e=m.getComponent("elements.AccessibleButton"),t=d.a.sharedInstance().getPersonalList(),n=d.a.sharedInstance().lists.filter(e=>!t||t.roomId!==e.roomId);if(!n||n.length<=0)return s.a.createElement("i",null,Object(c.a)("You are not subscribed to any lists"));const o=[];for(const t of n){const n=p.a.get().getRoom(t.roomId),r=n?s.a.createElement("span",null,n.name," (",s.a.createElement("code",null,t.roomId),")"):s.a.createElement("code",null,"list.roomId");o.push(s.a.createElement("li",{key:t.roomId,className:"mx_MjolnirUserSettingsTab_listItem"},s.a.createElement(e,{kind:"danger_sm",onClick:()=>this._unsubscribeFromList(t),disabled:this.state.busy},Object(c.a)("Unsubscribe"))," ",s.a.createElement(e,{kind:"primary_sm",onClick:()=>this._viewListRules(t),disabled:this.state.busy},Object(c.a)("View rules"))," ",r))}return s.a.createElement("div",null,s.a.createElement("p",null,Object(c.a)("You are currently subscribed to:")),s.a.createElement("ul",null,o))}render(){const e=m.getComponent("elements.Field"),t=m.getComponent("elements.AccessibleButton"),n=l.a.get().brand;return s.a.createElement("div",{className:"mx_SettingsTab mx_MjolnirUserSettingsTab"},s.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Ignored users")),s.a.createElement("div",{className:"mx_SettingsTab_section"},s.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},s.a.createElement("span",{className:"warning"},Object(c.a)("⚠ These settings are meant for advanced users.")),s.a.createElement("br",null),s.a.createElement("br",null),Object(c.a)("Add users and servers you want to ignore here. Use asterisks to have %(brand)s match any characters. For example, <code>@bot:*</code> would ignore all users that have the name 'bot' on any server.",{brand:n},{code:e=>s.a.createElement("code",null,e)}),s.a.createElement("br",null),s.a.createElement("br",null),Object(c.a)("Ignoring people is done through ban lists which contain rules for who to ban. Subscribing to a ban list means the users/servers blocked by that list will be hidden from you."))),s.a.createElement("div",{className:"mx_SettingsTab_section"},s.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Personal ban list")),s.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("Your personal ban list holds all the users/servers you personally don't want to see messages from. After ignoring your first user/server, a new room will show up in your room list named 'My Ban List' - stay in this room to keep the ban list in effect.")),s.a.createElement("div",null,this._renderPersonalBanListRules()),s.a.createElement("div",null,s.a.createElement("form",{onSubmit:this._onAddPersonalRule,autoComplete:"off"},s.a.createElement(e,{type:"text",label:Object(c.a)("Server or user ID to ignore"),placeholder:Object(c.a)("eg: @bot:* or example.org"),value:this.state.newPersonalRule,onChange:this._onPersonalRuleChanged}),s.a.createElement(t,{type:"submit",kind:"primary",onClick:this._onAddPersonalRule,disabled:this.state.busy},Object(c.a)("Ignore"))))),s.a.createElement("div",{className:"mx_SettingsTab_section"},s.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Subscribed lists")),s.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},s.a.createElement("span",{className:"warning"},Object(c.a)("Subscribing to a ban list will cause you to join it!"))," ",s.a.createElement("span",null,Object(c.a)("If this isn't what you want, please use a different tool to ignore users."))),s.a.createElement("div",null,this._renderSubscribedBanLists()),s.a.createElement("div",null,s.a.createElement("form",{onSubmit:this._onSubscribeList,autoComplete:"off"},s.a.createElement(e,{type:"text",label:Object(c.a)("Room ID or address of ban list"),value:this.state.newList,onChange:this._onNewListChanged}),s.a.createElement(t,{type:"submit",kind:"primary",onClick:this._onSubscribeList,disabled:this.state.busy},Object(c.a)("Subscribe"))))))}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return f}));var o=n(1277),r=n.n(o),i=n(88),a=n(107),s=n(84),c=n(1286),l=n.n(c),d=n(465),u=n(307),h=n(90);let p=window.TextEncoder;async function m(e={},t=!0){const n=e.progressCallback||(()=>{});n(Object(s.a)("Collecting app version information"));let o="UNKNOWN";try{o=await a.a.get().getAppVersion()}catch(e){}let c="UNKNOWN";window.navigator&&window.navigator.userAgent&&(c=window.navigator.userAgent);let l="UNKNOWN";try{l=String(window.matchMedia("(display-mode: standalone)").matches)}catch(e){}let u="UNKNOWN";try{u=String(window.matchMedia("(pointer: coarse)").matches)}catch(e){}const m=i.a.get();console.log("Sending bug report.");const g=new FormData;if(g.append("text",e.userText||"User did not supply any additional text."),g.append("app","element-web"),g.append("version",o),g.append("user_agent",c),g.append("installed_pwa",l),g.append("touch_input",u),m&&(g.append("user_id",m.credentials.userId),g.append("device_id",m.deviceId),m.isCryptoEnabled())){const e=["ed25519:"+m.getDeviceEd25519Key()];m.getDeviceCurve25519Key&&e.push("curve25519:"+m.getDeviceCurve25519Key()),g.append("device_keys",e.join(", ")),g.append("cross_signing_key",m.getCrossSigningId());const t=m._crypto._crossSigningInfo,n=m._crypto._secretStorage;g.append("cross_signing_ready",String(await m.isCrossSigningReady())),g.append("cross_signing_supported_by_hs",String(await m.doesServerSupportUnstableFeature("org.matrix.e2e_cross_signing"))),g.append("cross_signing_key",t.getId()),g.append("cross_signing_pk_in_secret_storage",String(!!await t.isStoredInSecretStorage(n)));const o=m.getCrossSigningCacheCallbacks();g.append("cross_signing_master_pk_cached",String(!(!o||!await o.getCrossSigningKeyCache("master")))),g.append("cross_signing_self_signing_pk_cached",String(!(!o||!await o.getCrossSigningKeyCache("self_signing")))),g.append("cross_signing_user_signing_pk_cached",String(!(!o||!await o.getCrossSigningKeyCache("user_signing")))),g.append("secret_storage_ready",String(await m.isSecretStorageReady())),g.append("secret_storage_key_in_account",String(!!await n.hasKey())),g.append("session_backup_key_in_secret_storage",String(!!await m.isKeyBackupKeyStored()));const r=await m._crypto.getSessionBackupPrivateKey();g.append("session_backup_key_cached",String(!!r)),g.append("session_backup_key_well_formed",String(r instanceof Uint8Array))}e.label&&g.append("label",e.label);const f=h.b.getFeatureSettingNames().filter(e=>h.b.getValue(e));if(f.length&&g.append("enabled_labs",f.join(", ")),h.b.getValue("lowBandwidth")&&g.append("lowBandwidth","enabled"),navigator.storage&&navigator.storage.persisted)try{g.append("storageManager_persisted",String(await navigator.storage.persisted()))}catch(e){}else if(document.hasStorageAccess)try{g.append("storageManager_persisted",String(await document.hasStorageAccess()))}catch(e){}if(navigator.storage&&navigator.storage.estimate)try{const e=await navigator.storage.estimate();g.append("storageManager_quota",String(e.quota)),g.append("storageManager_usage",String(e.usage)),e.usageDetails&&Object.keys(e.usageDetails).forEach(t=>{g.append("storageManager_usage_"+t,String(e.usageDetails[t]))})}catch(e){}if(window.Modernizr){const e=Object.keys(window.Modernizr).filter(e=>!1===window.Modernizr[e]);e.length>0&&g.append("modernizr_missing_features",e.join(", "))}if(g.append("mx_local_settings",localStorage.getItem("mx_local_settings")),e.sendLogs){n(Object(s.a)("Collecting logs"));const e=await d.c();for(const n of e){let e=(new p).encode(n.lines);t&&(e=r.a.gzip(e)),g.append("compressed-log",new Blob([e]),n.id)}}return g}async function g(e,t={}){if(!e)throw new Error("No bug report endpoint has been set.");const n=t.progressCallback||(()=>{}),o=await m(t);n(Object(s.a)("Uploading logs")),await function(e,t,n){return new Promise((o,r)=>{const i=new XMLHttpRequest;i.open("POST",e),i.timeout=3e5,i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.LOADING)n(Object(s.a)("Waiting for response from server"));else if(i.readyState===XMLHttpRequest.DONE){if(i.status<200||i.status>=400)return void r(new Error("HTTP "+i.status));o()}},i.send(t)})}(e,o,n)}async function f(e={}){const t=e.progressCallback||(()=>{}),n=await m(e,!1);t(Object(s.a)("Downloading logs"));let o="";const r=new l.a;let i=0;for(const[e,t]of n.entries())"compressed-log"===e?await new Promise(e=>{const n=new FileReader;n.addEventListener("loadend",t=>{r.append(`log-${i++}.log`,(new TextDecoder).decode(t.target.result)),e()}),n.readAsArrayBuffer(t)}):o+=`${e} = ${t}\n`;r.append("issue.txt",o);const a=document.createElement("a");a.href="data:application/octet-stream;base64,"+btoa(function(e){let t="";for(let n=0;n<e.length;n+=1)t+=String.fromCharCode(e[n]);return t}(r.out)),a.download="rageshake.tar",document.body.appendChild(a),a.click(),document.body.removeChild(a)}p||(p=u.TextEncoder)},function(e,t,n){"use strict";e.exports=(e,t,n,o)=>{let r=65535&e|0,i=e>>>16&65535|0,a=0;for(;0!==n;){a=n>2e3?2e3:n,n-=a;do{r=r+t[o++]|0,i=i+r|0}while(--a);r%=65521,i%=65521}return r|i<<16|0}},function(e,t,n){"use strict";const o=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var o=0;o<8;o++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t})());e.exports=(e,t,n,r)=>{const i=o,a=r+n;e^=-1;for(let n=r;n<a;n++)e=e>>>8^i[255&(e^t[n])];return-1^e}},function(e,t,n){"use strict";const o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);e.exports.assign=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(const t in n)o(n,t)&&(e[t]=n[t])}}return e},e.exports.flattenChunks=e=>{let t=0;for(let n=0,o=e.length;n<o;n++)t+=e[n].length;const n=new Uint8Array(t);for(let t=0,o=0,r=e.length;t<r;t++){let r=e[t];n.set(r,o),o+=r.length}return n}},function(e,t,n){"use strict";let o=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}const r=new Uint8Array(256);for(let e=0;e<256;e++)r[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;r[254]=r[254]=1,e.exports.string2buf=e=>{let t,n,o,r,i,a=e.length,s=0;for(r=0;r<a;r++)n=e.charCodeAt(r),55296==(64512&n)&&r+1<a&&(o=e.charCodeAt(r+1),56320==(64512&o)&&(n=65536+(n-55296<<10)+(o-56320),r++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),i=0,r=0;i<s;r++)n=e.charCodeAt(r),55296==(64512&n)&&r+1<a&&(o=e.charCodeAt(r+1),56320==(64512&o)&&(n=65536+(n-55296<<10)+(o-56320),r++)),n<128?t[i++]=n:n<2048?(t[i++]=192|n>>>6,t[i++]=128|63&n):n<65536?(t[i++]=224|n>>>12,t[i++]=128|n>>>6&63,t[i++]=128|63&n):(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63,t[i++]=128|n>>>6&63,t[i++]=128|63&n);return t};e.exports.buf2string=(e,t)=>{let n,i;const a=t||e.length,s=new Array(2*a);for(i=0,n=0;n<a;){let t=e[n++];if(t<128){s[i++]=t;continue}let o=r[t];if(o>4)s[i++]=65533,n+=o-1;else{for(t&=2===o?31:3===o?15:7;o>1&&n<a;)t=t<<6|63&e[n++],o--;o>1?s[i++]=65533:t<65536?s[i++]=t:(t-=65536,s[i++]=55296|t>>10&1023,s[i++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&o)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n})(s,i)},e.exports.utf8border=(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let n=t-1;for(;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+r[e[n]]>t?n:t}},function(e,t,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(e,t){!function(){"use strict";var t=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"];function n(e){var t,n=new Uint8Array(e);for(t=0;t<e;t+=1)n[t]=0;return n}e.exports.clean=n,e.exports.pad=function(e,t,n){return e=e.toString(n||8),"000000000000".substr(e.length+12-t)+e},e.exports.extend=function(e,t,o,r){var i=n((parseInt((t+o)/r)+1)*r);return i.set(e),i},e.exports.stringToUint8=function(e,t,o){var r,i;for(t=t||n(e.length),o=o||0,r=0,i=e.length;r<i;r+=1)t[o]=e.charCodeAt(r),o+=1;return t},e.exports.uint8ToBase64=function(e){var n,o,r,i,a=e.length%3,s="";for(n=0,r=e.length-a;n<r;n+=3)o=(e[n]<<16)+(e[n+1]<<8)+e[n+2],s+=t[(i=o)>>18&63]+t[i>>12&63]+t[i>>6&63]+t[63&i];switch(s.length%4){case 1:s+="=";break;case 2:s+="=="}return s},e.exports.base64ToUint8=function(e){for(var o,r=e.match(/^([^=]+)/)[1],i=e.match(/(=*)$/)[1].length,a=0,s=r.length,c=0,l=n(.75*r.length+i);a<s;)o=0,o|=t.indexOf(r.charAt(a)||"A")<<18,a+=1,o|=t.indexOf(r.charAt(a)||"A")<<12,a+=1,o|=t.indexOf(r.charAt(a)||"A")<<6,a+=1,o|=t.indexOf(r.charAt(a)||"A"),a+=1,l[c]=o>>16&255,l[c+=1]=o>>8&255,l[c+=1]=255&o,c+=1;return l}}()},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return b}));var o,r=n(83),i=n.n(r),a=n(82),s=n(92),c=n.n(s),l=n(89),d=n(84),u=n(93),h=n(96),p=n(144),m=n(628),g=n(176),f=n(85),_=n(147);let b=Object(f.a)("structures.RoomSearch")(o=class extends a.PureComponent{constructor(t){super(t),i()(this,"dispatcherRef",void 0),i()(this,"inputRef",Object(a.createRef)()),i()(this,"searchFilter",new m.a),i()(this,"onAction",e=>{"view_room"===e.action&&e.clear_search?this.clearInput():"focus_room_filter"===e.action&&this.inputRef.current&&this.inputRef.current.focus()}),i()(this,"clearInput",()=>{this.inputRef.current&&(this.inputRef.current.value="",this.onChange())}),i()(this,"openSearch",()=>{l.a.dispatch({action:"show_left_panel"}),l.a.dispatch({action:"focus_room_filter"})}),i()(this,"onChange",()=>{this.inputRef.current&&this.setState({query:this.inputRef.current.value})}),i()(this,"onFocus",e=>{this.setState({focused:!0}),e.target.select()}),i()(this,"onBlur",e=>{this.setState({focused:!1})}),i()(this,"onKeyDown",t=>{switch(Object(g.f)().getRoomListAction(t)){case g.e.ClearSearch:this.clearInput(),l.a.fire(h.a.FocusComposer);break;case g.e.NextRoom:case g.e.PrevRoom:this.props.onKeyDown(t);break;case g.e.SelectRoom:this.props.onSelectRoom()&&e(()=>{this.clearInput()});break}}),this.state={query:"",focused:!1},this.dispatcherRef=l.a.register(this.onAction),_.e.instance.on(_.c,this.clearInput)}componentDidUpdate(e,t){if(t.query!==this.state.query){const e=!!this.searchFilter.search.trim(),t=!!this.state.query.trim();this.searchFilter.search=this.state.query,!e&&t?p.b.instance.addFilter(this.searchFilter):e&&!t&&p.b.instance.removeFilter(this.searchFilter)}}componentWillUnmount(){l.a.unregister(this.dispatcherRef),_.e.instance.off(_.c,this.clearInput)}render(){const e=c()({mx_RoomSearch:!0,mx_RoomSearch_hasQuery:this.state.query,mx_RoomSearch_focused:this.state.focused,mx_RoomSearch_minimized:this.props.isMinimized}),t=c()({mx_RoomSearch_input:!0,mx_RoomSearch_inputExpanded:this.state.query||this.state.focused});let n=a.createElement("div",{className:"mx_RoomSearch_icon"}),o=a.createElement("input",{type:"text",ref:this.inputRef,className:t,value:this.state.query,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,onKeyDown:this.onKeyDown,placeholder:Object(d.a)("Filter"),autoComplete:"off"}),r=a.createElement(u.a,{tabIndex:-1,title:Object(d.a)("Clear filter"),className:"mx_RoomSearch_clearButton",onClick:this.clearInput});return this.props.isMinimized&&(n=a.createElement(u.a,{title:Object(d.a)("Filter rooms and people"),className:"mx_RoomSearch_icon mx_RoomSearch_minimizedHandle",onClick:this.openSearch}),o=null,r=null),a.createElement("div",{className:e},n,o,r)}})||o}).call(this,n(160).setImmediate)},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;t.default={disabled:!1},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var o;(o=n(86))&&o.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;a(n(86));var o=a(n(82)),r=a(n(467)),i=n(1295);function a(e){return e&&e.__esModule?e:{default:e}}function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var c=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},l=function(e){var t,n;function a(t,n){var o,r=(o=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(o));return o.state={contextValue:{isMounting:!0},handleExited:r,firstRender:!0},o}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=a.prototype;return l.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},l.componentWillUnmount=function(){this.mounted=!1},a.getDerivedStateFromProps=function(e,t){var n=t.children,o=t.handleExited;return{children:t.firstRender?(0,i.getInitialChildMapping)(e,o):(0,i.getNextChildMapping)(e,n,o),firstRender:!1}},l.handleExited=function(e,t){var n=(0,i.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=s({},t.children);return delete n[e.key],{children:n}})))},l.render=function(){var e=this.props,t=e.component,n=e.childFactory,i=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,["component","childFactory"]),a=this.state.contextValue,s=c(this.state.children).map(n);return delete i.appear,delete i.enter,delete i.exit,null===t?o.default.createElement(r.default.Provider,{value:a},s):o.default.createElement(r.default.Provider,{value:a},o.default.createElement(t,i,s))},a}(o.default.Component);l.propTypes={},l.defaultProps={component:"div",childFactory:function(e){return e}};var d=l;t.default=d,e.exports=t.default},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(121),p=n.n(h),m=n(87),g=n(84),f=n(94),_=n(132),b=n(88),v=n(85);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}let S=Object(v.a)("views.elements.AppPermission")((i=r=class extends l.a.Component{constructor(e){super(e);const t=this.parseWidgetUrl(),n=b.a.get().getRoom(this.props.roomId);let o;n&&(o=n.getMember(this.props.creatorUserId)),this.state=E(E({},t),{},{roomMember:o})}parseWidgetUrl(){const e=p.a.parse(this.props.url),t=new URLSearchParams(e.search);if(_.a.isScalarUrl(e)&&t&&t.get("url")){const e=p.a.parse(t.get("url"));return{widgetDomain:e.host||e.hostname,isWrapped:!0}}return{widgetDomain:e.host||e.hostname,isWrapped:!1}}render(){const e=f.a.get().brand,t=m.getComponent("views.elements.AccessibleButton"),n=m.getComponent("views.avatars.MemberAvatar"),o=m.getComponent("views.avatars.BaseAvatar"),r=m.getComponent("views.elements.TextWithTooltip"),i=this.state.roomMember?this.state.roomMember.name:this.props.creatorUserId,a=i===this.props.creatorUserId?null:this.props.creatorUserId,s=this.state.roomMember?l.a.createElement(n,{member:this.state.roomMember,width:38,height:38}):l.a.createElement(o,{name:this.props.creatorUserId,width:38,height:38}),c=l.a.createElement("div",null,Object(g.a)("Any of the following data may be shared:"),l.a.createElement("ul",null,l.a.createElement("li",null,Object(g.a)("Your display name")),l.a.createElement("li",null,Object(g.a)("Your avatar URL")),l.a.createElement("li",null,Object(g.a)("Your user ID")),l.a.createElement("li",null,Object(g.a)("Your theme")),l.a.createElement("li",null,Object(g.a)("%(brand)s URL",{brand:e})),l.a.createElement("li",null,Object(g.a)("Room ID")),l.a.createElement("li",null,Object(g.a)("Widget ID")))),d=l.a.createElement(r,{tooltip:c,tooltipClass:"mx_AppPermissionWarning_tooltip mx_Tooltip_dark"},l.a.createElement("span",{className:"mx_AppPermissionWarning_helpIcon"})),u=this.state.isWrapped?Object(g.a)("Using this widget may share data <helpIcon /> with %(widgetDomain)s & your Integration Manager.",{widgetDomain:this.state.widgetDomain},{helpIcon:()=>d}):Object(g.a)("Using this widget may share data <helpIcon /> with %(widgetDomain)s.",{widgetDomain:this.state.widgetDomain},{helpIcon:()=>d}),h=this.props.isRoomEncrypted?Object(g.a)("Widgets do not use message encryption."):null;return l.a.createElement("div",{className:"mx_AppPermissionWarning"},l.a.createElement("div",{className:"mx_AppPermissionWarning_row mx_AppPermissionWarning_bolder mx_AppPermissionWarning_smallText"},Object(g.a)("Widget added by")),l.a.createElement("div",{className:"mx_AppPermissionWarning_row"},s,l.a.createElement("h4",{className:"mx_AppPermissionWarning_bolder"},i),l.a.createElement("div",{className:"mx_AppPermissionWarning_smallText"},a)),l.a.createElement("div",{className:"mx_AppPermissionWarning_row mx_AppPermissionWarning_smallText"},u),l.a.createElement("div",{className:"mx_AppPermissionWarning_row mx_AppPermissionWarning_smallText"},Object(g.a)("This widget may use cookies.")," ",h),l.a.createElement("div",{className:"mx_AppPermissionWarning_row"},l.a.createElement(t,{kind:"primary_sm",onClick:this.props.onPermissionGranted},Object(g.a)("Continue"))))}},s()(r,"propTypes",{url:u.a.string.isRequired,creatorUserId:u.a.string.isRequired,roomId:u.a.string.isRequired,onPermissionGranted:u.a.func.isRequired,isRoomEncrypted:u.a.bool}),s()(r,"defaultProps",{onPermissionGranted:()=>{}}),o=i))||o},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(86);const a=e=>r.a.createElement("div",{className:"mx_AppPermissionWarning"},r.a.createElement("div",{className:"mx_AppPermissionWarningImage"},r.a.createElement("img",{src:n(258),alt:""})),r.a.createElement("div",{className:"mx_AppPermissionWarningText"},r.a.createElement("span",{className:"mx_AppPermissionWarningTextLabel"},e.errorMsg)));a.propTypes={errorMsg:n.n(i).a.string},a.defaultProps={errorMsg:"Error"},t.a=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(84),p=n(87),m=n(175),g=n(3),f=n(695),_=n(85);let b=Object(_.a)("views.dialogs.WidgetOpenIDPermissionsDialog")((i=r=class extends l.a.Component{constructor(){super(),s()(this,"_onAllow",()=>{this._onPermissionSelection(!0)}),s()(this,"_onDeny",()=>{this._onPermissionSelection(!1)}),s()(this,"_onRememberSelectionChange",e=>{this.setState({rememberSelection:e})}),this.state={rememberSelection:!1}}_onPermissionSelection(e){this.state.rememberSelection&&(console.log(`Remembering ${this.props.widgetId} as allowed=${e} for OpenID`),f.b.instance.setOIDCState(this.props.widget,this.props.widgetKind,this.props.inRoomId,e?f.a.Allowed:f.a.Denied)),this.props.onFinished(e)}render(){const e=p.getComponent("views.dialogs.BaseDialog"),t=p.getComponent("views.elements.DialogButtons");return l.a.createElement(e,{className:"mx_WidgetOpenIDPermissionsDialog",hasCancel:!0,onFinished:this.props.onFinished,title:Object(h.a)("Allow this widget to verify your identity")},l.a.createElement("div",{className:"mx_WidgetOpenIDPermissionsDialog_content"},l.a.createElement("p",null,Object(h.a)("The widget will verify your user ID, but won't be able to perform actions for you:")),l.a.createElement("p",{className:"text-muted"},this.props.widget.templateUrl.split("?")[0].split("#")[0])),l.a.createElement(t,{primaryButton:Object(h.a)("Continue"),onPrimaryButtonClick:this._onAllow,onCancel:this._onDeny,additive:l.a.createElement(m.a,{value:this.state.rememberSelection,toggleInFront:!0,onChange:this._onRememberSelectionChange,label:Object(h.a)("Remember this")})}))}},s()(r,"propTypes",{onFinished:u.a.func.isRequired,widget:u.a.objectOf(g.Widget).isRequired,widgetKind:u.a.string.isRequired,inRoomId:u.a.string}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d}));var o=n(83),r=n.n(o),i=n(90),a=n(3),s=n(88),c=n(98);let l;!function(e){e[e.Allowed=0]="Allowed",e[e.Denied=1]="Denied",e[e.Unknown=2]="Unknown"}(l||(l={}));class d{constructor(){}static get instance(){return d.internalInstance||(d.internalInstance=new d),d.internalInstance}packSettingKey(e,t,n){let o=n;if(t!==a.WidgetKind.Room&&(o=s.a.get().getUserId()),t===a.WidgetKind.Modal&&(o="*MODAL*-"+o),!o)throw new Error("Failed to determine a location to check the widget's OIDC state with");return encodeURIComponent(`${o}::${e.templateUrl}`)}getOIDCState(e,t,n){var o,r;const a=this.packSettingKey(e,t,n),s=i.b.getValue("widgetOpenIDPermissions");return null!=s&&null!==(o=s.deny)&&void 0!==o&&o.includes(a)?l.Denied:null!=s&&null!==(r=s.allow)&&void 0!==r&&r.includes(a)?l.Allowed:l.Unknown}setOIDCState(e,t,n,o){const r=this.packSettingKey(e,t,n),a=i.b.getValue("widgetOpenIDPermissions");a.allow||(a.allow=[]),a.deny||(a.deny=[]),o===l.Allowed?a.allow.push(r):o===l.Denied?a.deny.push(r):(a.allow=a.allow.filter(e=>e!==r),a.deny=a.deny.filter(e=>e!==r)),i.b.setValue("widgetOpenIDPermissions",null,c.a.DEVICE,a)}}r()(d,"internalInstance",void 0)},function(e,t,n){"use strict";let o;n.d(t,"a",(function(){return o})),function(e){e.CanChangeViewedRoom="io.element.view_room"}(o||(o={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o,r=n(83),i=n.n(r),a=n(82),s=n(122),c=n(84),l=n(93),d=n(3),u=n(745),h=n(88),p=n(206),m=n(117),g=n(752),f=n(85);function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}let v=Object(f.a)("views.dialogs.ModalWidgetDialog")(o=class extends a.PureComponent{constructor(e){super(e),i()(this,"widget",void 0),i()(this,"possibleButtons",void 0),i()(this,"appFrame",a.createRef()),i()(this,"state",{disabledButtonIds:[]}),i()(this,"onReady",()=>{this.state.messaging.sendWidgetConfig(this.props.widgetDefinition)}),i()(this,"onLoad",()=>{this.state.messaging.once("ready",this.onReady),this.state.messaging.on("action:"+d.WidgetApiFromWidgetAction.CloseModalWidget,this.onWidgetClose),this.state.messaging.on("action:"+d.WidgetApiFromWidgetAction.SetModalButtonEnabled,this.onButtonEnableToggle)}),i()(this,"onWidgetClose",e=>{this.props.onFinished(!0,e.detail.data)}),i()(this,"onButtonEnableToggle",e=>{e.preventDefault();if(e.detail.data.button===d.BuiltInModalButtonID.Close||!this.possibleButtons.includes(e.detail.data.button))return this.state.messaging.transport.reply(e.detail,{error:{message:"Invalid button"}});let t;if(e.detail.data.enabled)t=Object(m.b)(this.state.disabledButtonIds).filter(t=>t!==e.detail.data.button);else{const n=new Set(this.state.disabledButtonIds);n.add(e.detail.data.button),t=Array.from(n)}this.setState({disabledButtonIds:t}),this.state.messaging.transport.reply(e.detail,{})}),this.widget=new g.a(b(b({},this.props.widgetDefinition),{},{creatorUserId:h.a.get().getUserId(),id:"modal_"+this.props.sourceWidgetId})),this.possibleButtons=(this.props.widgetDefinition.buttons||[]).map(e=>e.id)}componentDidMount(){const e=new u.a([],this.widget,d.WidgetKind.Modal),t=new d.ClientWidgetApi(this.widget,this.appFrame.current,e);this.setState({messaging:t})}componentWillUnmount(){this.state.messaging.off("ready",this.onReady),this.state.messaging.off("action:"+d.WidgetApiFromWidgetAction.CloseModalWidget,this.onWidgetClose),this.state.messaging.stop()}render(){const e=this.widget.getCompleteUrl({widgetRoomId:this.props.widgetRoomId,currentUserId:h.a.get().getUserId(),userDisplayName:p.a.instance.displayName,userHttpAvatarUrl:p.a.instance.getHttpAvatarUrl()}),t=new URL(e);t.searchParams.set("widgetId",this.widget.id),t.searchParams.set("parentUrl",window.location.href.split("#",2)[0]);const o=t.toString().replace(/%24/g,"$");let r;return this.props.widgetDefinition.buttons&&(r=this.props.widgetDefinition.buttons.slice(0,3).reverse().map(e=>{let t="secondary";switch(e.kind){case d.ModalButtonKind.Primary:t="primary";break;case d.ModalButtonKind.Secondary:t="primary_outline";break;case d.ModalButtonKind.Danger:t="danger"}const n=this.state.disabledButtonIds.includes(e.id);return a.createElement(l.a,{key:e.id,kind:t,onClick:()=>{this.state.messaging.notifyModalWidgetButtonClicked(e.id)},disabled:n},e.label)})),a.createElement(s.a,{title:this.props.widgetDefinition.name||Object(c.a)("Modal Widget"),className:"mx_ModalWidgetDialog",contentId:"mx_Dialog_content",onFinished:this.props.onFinished},a.createElement("div",{className:"mx_ModalWidgetDialog_warning"},a.createElement("img",{src:n(1298),height:"16",width:"16",alt:""}),Object(c.a)("Data on this screen is shared with %(widgetDomain)s",{widgetDomain:t.hostname})),a.createElement("div",null,a.createElement("iframe",{ref:this.appFrame,sandbox:"allow-forms allow-scripts allow-same-origin",src:o,onLoad:this.onLoad})),a.createElement("div",{className:"mx_ModalWidgetDialog_buttons"},r))}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(83),r=n.n(o);class i{constructor(e,t,n){this.resizer=t,this.sizer=n,r()(this,"domNode",void 0),r()(this,"id",void 0),r()(this,"reverse",void 0),this.reverse=t.isReverseResizeHandle(e),this.domNode=this.reverse?e.nextElementSibling:e.previousElementSibling,this.id=e.getAttribute("data-id")}copyWith(e,t,n){return new(0,this.constructor)(e,t,n)}advance(e){let t=this.reverse?this.domNode.previousElementSibling:this.domNode.nextElementSibling;const n=e!==this.reverse;do{t=n?t.nextElementSibling:t.previousElementSibling}while(t&&!this.resizer.isResizeHandle(t));if(t){const e=this.copyWith(t,this.resizer,this.sizer);return e.reverse=this.reverse,e}}next(){return this.advance(!0)}previous(){return this.advance(!1)}size(){return this.sizer.getItemSize(this.domNode)}offset(){return this.sizer.getItemOffset(this.domNode)}start(){this.sizer.start(this.domNode)}finish(){this.sizer.finish(this.domNode)}getSize(){return this.sizer.getDesiredItemSize(this.domNode)}setRawSize(e){this.sizer.setItemSize(this.domNode,e)}setSize(e){this.setRawSize(Math.round(e)+"px");const t=this.resizer.config.onResized;t&&t(e,this.id,this.domNode)}clearSize(){this.sizer.clearItemSize(this.domNode);const e=this.resizer.config.onResized;e&&e(null,this.id,this.domNode)}first(){const e=Array.from(this.domNode.parentElement.children).find(e=>this.resizer.isResizeHandle(e));if(e)return this.copyWith(e,this.resizer,this.sizer)}last(){const e=Array.from(this.domNode.parentElement.children).reverse().find(e=>this.resizer.isResizeHandle(e));if(e)return this.copyWith(e,this.resizer,this.sizer)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));class o{constructor(e,t,n){this.container=e,this.vertical=t,this.reverse=n}getItemOffset(e){const t=(this.vertical?e.offsetTop:e.offsetLeft)-this.getOffset();return this.reverse?this.getTotalSize()-(t+this.getItemSize(e)):t}getItemSize(e){return this.vertical?e.offsetHeight:e.offsetWidth}getTotalSize(){return this.vertical?this.container.offsetHeight:this.container.offsetWidth}getOffset(){return this.vertical?this.container.offsetTop:this.container.offsetLeft}getPageOffset(){let e=this.container,t=0;for(;e;){t+=this.vertical?e.offsetTop:e.offsetLeft,e=e.offsetParent}return t}getDesiredItemSize(e){return this.vertical?e.style.height:e.style.width}setItemSize(e,t){this.vertical?e.style.height=t:e.style.width=t}clearItemSize(e){this.vertical?e.style.height=null:e.style.width=null}start(e){}finish(e){}offsetFromEvent(e){const t=this.vertical?e.pageY:e.pageX;return this.reverse?this.getPageOffset()+this.getTotalSize()-t:t-this.getPageOffset()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var o,r=n(83),i=n.n(r),a=n(92),s=n.n(a),c=n(82),l=n.n(c),d=n(90),u=n(85);let h;!function(e){e[e.Local=0]="Local",e[e.Remote=1]="Remote"}(h||(h={}));let p=Object(u.a)("views.voip.VideoFeed")(o=class extends l.a.Component{constructor(...e){super(...e),i()(this,"vid",Object(c.createRef)()),i()(this,"onResize",e=>{this.props.onResize&&this.props.onResize(e)})}componentDidMount(){this.vid.current.addEventListener("resize",this.onResize),this.setVideoElement()}componentDidUpdate(e){this.props.call!==e.call&&this.setVideoElement()}componentWillUnmount(){this.vid.current.removeEventListener("resize",this.onResize)}setVideoElement(){this.props.type===h.Local?this.props.call.setLocalVideoElement(this.vid.current):this.props.call.setRemoteVideoElement(this.vid.current)}render(){const e={mx_VideoFeed:!0,mx_VideoFeed_local:this.props.type===h.Local,mx_VideoFeed_remote:this.props.type===h.Remote,mx_VideoFeed_mirror:this.props.type===h.Local&&d.b.getValue("VideoView.flipVideoHorizontally")};return l.a.createElement("video",{className:s()(e),ref:this.vid})}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(84),p=n(102),m=n(137),g=n(362),f=n(91),_=n(85);let b=Object(_.a)("views.context_menus.CallContextMenu")((i=r=class extends l.a.Component{constructor(e){super(e),s()(this,"onHoldClick",()=>{this.props.call.setRemoteOnHold(!0),this.props.onFinished()}),s()(this,"onUnholdClick",()=>{m.c.sharedInstance().setActiveCallRoomId(this.props.call.roomId),this.props.onFinished()}),s()(this,"onTransferClick",()=>{f.a.createTrackedDialog("Transfer Call","",g.d,{kind:g.a,call:this.props.call},null,!1,!0),this.props.onFinished()})}render(){const e=this.props.call.isRemoteOnHold()?Object(h.a)("Resume"):Object(h.a)("Hold"),t=this.props.call.isRemoteOnHold()?this.onUnholdClick:this.onHoldClick;let n;return this.props.call.opponentCanBeTransferred()&&(n=l.a.createElement(p.f,{className:"mx_CallContextMenu_item",onClick:this.onTransferClick},Object(h.a)("Transfer"))),l.a.createElement(p.b,this.props,l.a.createElement(p.f,{className:"mx_CallContextMenu_item",onClick:t},e),n)}},s()(r,"propTypes",{user:u.a.object}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(84),l=n(102),d=n(458),u=n(85);let h=Object(u.a)("views.context_menus.DialpadContextMenu")(o=class extends s.a.Component{constructor(e){super(e),i()(this,"onDigitPress",e=>{this.props.call.sendDtmfDigit(e),this.setState({value:this.state.value+e})}),this.state={value:""}}render(){return s.a.createElement(l.b,this.props,s.a.createElement("div",{className:"mx_DialPadContextMenu_header"},s.a.createElement("div",null,s.a.createElement("span",{className:"mx_DialPadContextMenu_title"},Object(c.a)("Dial pad"))),s.a.createElement("div",{className:"mx_DialPadContextMenu_dialled"},this.state.value)),s.a.createElement("div",{className:"mx_DialPadContextMenu_horizSep"}),s.a.createElement("div",{className:"mx_DialPadContextMenu_dialPad"},s.a.createElement(d.a,{onDigitPress:this.onDigitPress,hasDialAndDelete:!1})))}})||o},function(e,t){function n(e){var t=String.fromCharCode.apply(null,e),n=window.btoa(t),o=e.length,r=4*Math.floor((o+2)/3)+(o+2)%3-2;return n.slice(0,r)}try{t.encryptAttachment=function(e){var t,o,r,i,a;return a=new Uint8Array(16),window.crypto.getRandomValues(a.subarray(0,8)),window.crypto.subtle.generateKey({name:"AES-CTR",length:256},!0,["encrypt","decrypt"]).then((function(e){return t=e,window.crypto.subtle.exportKey("jwk",t)})).then((function(n){return o=n,window.crypto.subtle.encrypt({name:"AES-CTR",counter:a,length:64},t,e)})).then((function(e){return r=e,window.crypto.subtle.digest("SHA-256",r)})).then((function(e){return i=e,{data:r,info:{v:"v2",key:o,iv:n(a),hashes:{sha256:n(new Uint8Array(i))}}}}))},t.decryptAttachment=function(e,t){if(void 0===t||void 0===t.key||void 0===t.iv||void 0===t.hashes||void 0===t.hashes.sha256)throw new Error("Invalid info. Missing info.key, info.iv or info.hashes.sha256 key");var o,r=function(e){for(var t=e+"===".slice(0,(4-e.length%4)%4),n=window.atob(t),o=new Uint8Array(n.length),r=0;r<n.length;r++)o[r]=n.charCodeAt(r);return o}(t.iv),i=t.hashes.sha256;return window.crypto.subtle.importKey("jwk",t.key,{name:"AES-CTR"},!1,["encrypt","decrypt"]).then((function(t){return o=t,window.crypto.subtle.digest("SHA-256",e)})).then((function(a){if(n(new Uint8Array(a))!=i)throw new Error("Mismatched SHA-256 digest");var s;return s="v1"==t.v||"v2"==t.v?64:128,window.crypto.subtle.decrypt({name:"AES-CTR",counter:r,length:s},o,e)}))}}catch(e){}},function(e,t,n){"use strict";n.d(t,"c",(function(){return g})),n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return _})),n.d(t,"b",(function(){return b}));var o=n(88),r=n(89),i=n(91),a=n(87),s=n(84),c=n(118),l=n(136),d=n(165),u=n(333),h=n(96);async function p(){const e=o.a.get();if(!e.isCryptoEnabled())return!1;return!!e.getCrossSigningId("user_signing")||(await Object(d.b)(),!1)}function m(e){const{device:t,user:r,onFinished:i}=e,c=a.getComponent("dialogs.BaseDialog"),l=a.getComponent("elements.AccessibleButton");let d,u;return o.a.get().getUserId()===r.userId?(u=Object(s.a)("You signed in to a new session without verifying it:"),d=Object(s.a)("Verify your other session using one of the options below.")):(u=Object(s.a)("%(name)s (%(userId)s) signed in to a new session without verifying it:",{name:r.displayName,userId:r.userId}),d=Object(s.a)("Ask this user to verify their session, or manually verify it below.")),React.createElement(c,{onFinished:i,headerImage:n(349),title:Object(s.a)("Not Trusted")},React.createElement("div",{className:"mx_Dialog_content",id:"mx_Dialog_content"},React.createElement("p",null,u),React.createElement("p",null,t.getDisplayName()," (",t.deviceId,")"),React.createElement("p",null,d)),React.createElement("div",{className:"mx_Dialog_buttons"},React.createElement(l,{element:"button",kind:"secondary",onClick:()=>i("legacy")},Object(s.a)("Manually Verify by Text")),React.createElement(l,{element:"button",kind:"secondary",onClick:()=>i("sas")},Object(s.a)("Interactively verify by Emoji")),React.createElement(l,{kind:"primary",onClick:()=>i()},Object(s.a)("Done"))))}async function g(e,t){const n=o.a.get();n.isGuest()?r.a.dispatch({action:"require_registration"}):n.getCryptoTrustCrossSignedDevices()&&!await p()||i.a.createTrackedDialog("Verification warning","unverified session",m,{user:e,device:t,onFinished:async o=>{if("sas"===o){const o=n.legacyDeviceVerification(e.userId,t.deviceId,u.d.SAS);r.a.dispatch({action:h.a.SetRightPanelPhase,phase:c.c.EncryptionPanel,refireParams:{member:e,verificationRequestPromise:o}})}else if("legacy"===o){const n=a.getComponent("dialogs.ManualDeviceKeyVerificationDialog");i.a.createTrackedDialog("Legacy verify session","legacy verify session",n,{userId:e.userId,device:t})}}})}async function f(e){const t=o.a.get();if(t.isGuest())return void r.a.dispatch({action:"require_registration"});if(t.getCryptoTrustCrossSignedDevices()&&!await p())return;const n=t.requestVerification(e.userId);r.a.dispatch({action:h.a.SetRightPanelPhase,phase:c.c.EncryptionPanel,refireParams:{member:e,verificationRequestPromise:n}})}async function _(e){if(o.a.get().isGuest())return void r.a.dispatch({action:"require_registration"});if(!await p())return;const t=b(e);r.a.dispatch({action:h.a.SetRightPanelPhase,phase:c.c.EncryptionPanel,refireParams:{member:e,verificationRequest:t}})}function b(e){const t=o.a.get(),n=Object(l.f)(t,e.userId);if(n)return t.findVerificationRequestDMInProgress(n.roomId)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(82),r=n(129);function i(e,t){const[n,i]=Object(o.useState)(t?e.isRoomEncrypted(t.roomId):void 0),a=Object(o.useCallback)(n=>{t&&"m.room.encryption"===n.getType()&&i(e.isRoomEncrypted(t.roomId))},[e,t]);return Object(r.a)(t?t.currentState:void 0,"RoomState.events",a),n}},function(e,t,n){var o=n(477),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case o.L:return r[4*(e-1)+0];case o.M:return r[4*(e-1)+1];case o.Q:return r[4*(e-1)+2];case o.H:return r[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case o.L:return i[4*(e-1)+0];case o.M:return i[4*(e-1)+1];case o.Q:return i[4*(e-1)+2];case o.H:return i[4*(e-1)+3];default:return}}},function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},function(e,t){var n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",o="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=new RegExp(n,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(o,"g"),t.NUMERIC=new RegExp("[0-9]+","g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var r=new RegExp("^"+n+"$"),i=new RegExp("^[0-9]+$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return r.test(e)},t.testNumeric=function(e){return i.test(e)},t.testAlphanumeric=function(e){return a.test(e)}},function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,o=e.width&&e.width>=21?e.width:void 0,r=e.scale||4;return{width:o,scale:o?4:r,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){var o=t.getScale(e,n);return Math.floor((e+2*n.margin)*o)},t.qrToImageData=function(e,n,o){for(var r=n.modules.size,i=n.modules.data,a=t.getScale(r,o),s=Math.floor((r+2*o.margin)*a),c=o.margin*a,l=[o.color.light,o.color.dark],d=0;d<s;d++)for(var u=0;u<s;u++){var h=4*(d*s+u),p=o.color.light;if(d>=c&&u>=c&&d<s-c&&u<s-c)p=l[i[Math.floor((d-c)/a)*r+Math.floor((u-c)/a)]?1:0];e[h++]=p.r,e[h++]=p.g,e[h++]=p.b,e[h]=p.a}}},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(97),a=n(224),s=n(132),c=n(298),l=n(84),d=n(473),u=n(118),h=n(89),p=n(96),m=n(102),g=n(364),f=n(173);t.a=({room:e,widgetId:t,onClose:n})=>{const _=Object(o.useContext)(i.a),b=Object(d.b)(e).find(e=>e.id===t),v=b&&f.d.instance.isInContainer(e,b,f.a.Top),[y,E,S,w]=Object(m.q)();if(Object(o.useEffect)(()=>{b&&!v||h.a.dispatch({action:p.a.SetRightPanelPhase,phase:u.c.RoomSummary})},[b,v]),!b||v)return null;let C;if(y){const e=E.current.getBoundingClientRect();C=r.a.createElement(g.a,{chevronFace:m.a.None,right:window.innerWidth-e.right-12,top:e.bottom+12,onFinished:w,app:b})}const T=r.a.createElement(r.a.Fragment,null,r.a.createElement("h2",null,s.a.getWidgetName(b)),r.a.createElement(m.c,{kind:"secondary",className:"mx_WidgetCard_optionsButton",inputRef:E,onClick:S,isExpanded:y,label:Object(l.a)("Options")}),C);return r.a.createElement(a.b,{header:T,className:"mx_WidgetCard",onClose:n,previousPhase:u.c.RoomSummary,withoutScrollContainer:!0},r.a.createElement(c.a,{app:b,fullWidth:!0,show:!0,showMenubar:!1,room:e,userId:_.getUserId(),creatorUserId:b.creatorUserId,widgetPageTitle:s.a.getWidgetDataTitle(b),waitForIframeLoad:b.waitForIframeLoad}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(252),p=n(113),m=n(85),g=n(176);let f;f=function(){};let _=Object(m.a)("structures.ScrollPanel")((i=r=class extends l.a.Component{constructor(e){super(e),s()(this,"onScroll",e=>{this.props.resizeNotifier&&this.props.resizeNotifier.isResizing||(f("onScroll",this._getScrollNode().scrollTop),this._scrollTimeout.restart(),this._saveScrollState(),this.updatePreventShrinking(),this.props.onScroll(e),this.checkFillState())}),s()(this,"onResize",()=>{f("onResize"),this.checkScroll(),this.preventShrinkingState&&this.preventShrinking()}),s()(this,"checkScroll",()=>{this.unmounted||(this._restoreSavedScrollState(),this.checkFillState())}),s()(this,"isAtBottom",()=>{const e=this._getScrollNode();return Math.abs(e.scrollHeight-(e.scrollTop+e.clientHeight))<=1}),s()(this,"checkFillState",async(e=0)=>{if(this.unmounted)return;const t=0===e,n=this._getScrollNode();if(t){if(this._isFilling)return f("_isFilling: not entering while request is ongoing, marking for a subsequent request"),void(this._fillRequestWhileRunning=!0);f("_isFilling: setting"),this._isFilling=!0}const o=this._itemlist.current,r=o&&o.firstElementChild,i=r&&r.offsetTop,a=[];if((!r||n.scrollTop-i<n.clientHeight)&&a.push(this._maybeFill(e,!0)),n.scrollHeight-n.scrollTop<2*n.clientHeight&&a.push(this._maybeFill(e,!1)),a.length)try{await Promise.all(a)}catch(e){console.error(e)}t&&(f("_isFilling: clearing"),this._isFilling=!1),this._fillRequestWhileRunning&&(this._fillRequestWhileRunning=!1,this.checkFillState())}),s()(this,"getScrollState",()=>this.scrollState),s()(this,"resetScrollState",()=>{this.scrollState={stuckAtBottom:this.props.startAtBottom},this._bottomGrowth=0,this._pages=0,this._scrollTimeout=new h.a(100),this._heightUpdateInProgress=!1}),s()(this,"scrollToTop",()=>{this._getScrollNode().scrollTop=0,this._saveScrollState()}),s()(this,"scrollToBottom",()=>{const e=this._getScrollNode();e.scrollTop=e.scrollHeight,this._saveScrollState()}),s()(this,"scrollRelative",e=>{const t=this._getScrollNode(),n=e*t.clientHeight*.5;t.scrollBy(0,n),this._saveScrollState()}),s()(this,"handleScrollKey",e=>{switch(Object(g.f)().getRoomAction(e)){case g.d.ScrollUp:this.scrollRelative(-1);break;case g.d.RoomScrollDown:this.scrollRelative(1);break;case g.d.JumpToFirstMessage:this.scrollToTop();break;case g.d.JumpToLatestMessage:this.scrollToBottom()}}),s()(this,"scrollToToken",(e,t,n)=>{t=t||0,n=n||0,this.scrollState={stuckAtBottom:!1,trackedScrollToken:e};const o=this._getTrackedNode(),r=this._getScrollNode();o&&(f("scrollToken: setting scrollTop",{offsetBase:n,pixelOffset:t,offsetTop:o.offsetTop}),r.scrollTop=o.offsetTop-r.clientHeight*n+t,this._saveScrollState())}),s()(this,"_collectScroll",e=>{this._divScroll=e}),s()(this,"preventShrinking",()=>{const e=this._itemlist.current,t=e&&e.children;if(!e)return;let n;for(let e=t.length-1;e>=0;e--){const o=t[e];if(o.dataset.scrollTokens){n=o;break}}if(!n)return;this.clearPreventShrinking();const o=e.clientHeight-(n.offsetTop+n.clientHeight);this.preventShrinkingState={offsetFromBottom:o,offsetNode:n},f("prevent shrinking, last tile ",o,"px from bottom")}),s()(this,"clearPreventShrinking",()=>{const e=this._itemlist.current,t=e&&e.parentElement;t&&(t.style.paddingBottom=null),this.preventShrinkingState=null,f("prevent shrinking cleared")}),s()(this,"updatePreventShrinking",()=>{if(this.preventShrinkingState){const e=this._getScrollNode(),t=this.scrollState,n=this._itemlist.current,{offsetNode:o,offsetFromBottom:r}=this.preventShrinkingState,i=n.parentElement;let a=!o.parentElement;if(!a&&!t.stuckAtBottom){a=e.scrollHeight-(e.scrollTop+e.clientHeight)>=200}if(!a){const e=r-(n.clientHeight-(o.offsetTop+o.clientHeight));e>0?(i.style.paddingBottom=e+"px",f("update prevent shrinking ",e,"px from bottom")):e<0&&(a=!0)}a&&this.clearPreventShrinking()}}),this._pendingFillRequests={b:null,f:null},this.props.resizeNotifier&&this.props.resizeNotifier.on("middlePanelResizedNoisy",this.onResize),this.resetScrollState(),this._itemlist=Object(c.createRef)()}componentDidMount(){this.checkScroll()}componentDidUpdate(){this.checkScroll(),this.updatePreventShrinking()}componentWillUnmount(){this.unmounted=!0,this.props.resizeNotifier&&this.props.resizeNotifier.removeListener("middlePanelResizedNoisy",this.onResize)}_getExcessHeight(e){const t=this._getScrollNode(),n=this._getMessagesHeight(),o=n-this._getListHeight(),r=t.scrollTop+o;return e?r-t.clientHeight-6e3:n-(r+2*t.clientHeight)-6e3}_checkUnfillState(e){let t=this._getExcessHeight(e);if(t<=0)return;const n=t,o=this._itemlist.current.children;let r,i=null;for(let n=0;n<o.length&&(r=o[e?n:o.length-1-n],t-=r.clientHeight,!(r.clientHeight>t));n++)r.dataset.scrollTokens&&(i=r.dataset.scrollTokens.split(",")[0]);i&&(this._unfillDebouncer&&clearTimeout(this._unfillDebouncer),this._unfillDebouncer=setTimeout(()=>{this._unfillDebouncer=null,f("unfilling now",e,n),this.props.onUnfillRequest(e,i)},200))}_maybeFill(e,t){const n=t?"b":"f";if(!this._pendingFillRequests[n])return f("starting "+n+" fill"),this._pendingFillRequests[n]=!0,new Promise(e=>setTimeout(e,1)).then(()=>this.props.onFillRequest(t)).finally(()=>{this._pendingFillRequests[n]=!1}).then(o=>{if(!this.unmounted)return this._checkUnfillState(!t),f(n+" fill complete; hasMoreResults:"+o),o?this.checkFillState(e+1):void 0});f("Already a "+n+" fill in progress - not starting another")}_saveScrollState(){if(this.props.stickyBottom&&this.isAtBottom())return this.scrollState={stuckAtBottom:!0},void f("saved stuckAtBottom state");const e=this._getScrollNode(),t=e.scrollHeight-(e.scrollTop+e.clientHeight),n=this._itemlist.current.children;let o=null;for(let e=n.length-1;e>=0&&!(n[e].dataset.scrollTokens&&(o=n[e],this._topFromBottom(o)>t));--e);if(!o)return void f("unable to save scroll state: found no children in the viewport");const r=o.dataset.scrollTokens.split(",")[0];f("saving anchored scroll state to message",o&&o.innerText,r);const i=this._topFromBottom(o);this.scrollState={stuckAtBottom:!1,trackedNode:o,trackedScrollToken:r,bottomOffset:i,pixelOffset:i-t}}async _restoreSavedScrollState(){const e=this.scrollState;if(e.stuckAtBottom){const e=this._getScrollNode();e.scrollTop!==e.scrollHeight&&(e.scrollTop=e.scrollHeight)}else if(e.trackedScrollToken){const t=this._itemlist.current,n=this._getTrackedNode();if(n){const o=this._topFromBottom(n),r=o-e.bottomOffset;this._bottomGrowth+=r,e.bottomOffset=o;const i=this._getListHeight()+"px";t.style.height!==i&&(t.style.height=i),f("balancing height because messages below viewport grew by",r)}}if(this._heightUpdateInProgress)f("not updating height because request already in progress");else{this._heightUpdateInProgress=!0;try{await this._updateHeight()}finally{this._heightUpdateInProgress=!1}}}async _updateHeight(){if(this._scrollTimeout.isRunning()?(f("updateHeight waiting for scrolling to end ... "),await this._scrollTimeout.finished()):f("updateHeight getting straight to business, no scrolling going on."),this.unmounted)return;const e=this._getScrollNode(),t=this._itemlist.current,n=this._getMessagesHeight(),o=e.clientHeight,r=Math.max(o,n);this._pages=Math.ceil(r/400),this._bottomGrowth=0;const i=this._getListHeight()+"px",a=this.scrollState;if(a.stuckAtBottom)t.style.height!==i&&(t.style.height=i),e.scrollTop!==e.scrollHeight&&(e.scrollTop=e.scrollHeight),f("updateHeight to",i);else if(a.trackedScrollToken){const n=this._getTrackedNode();if(n){const o=n.offsetTop;t.style.height!==i&&(t.style.height=i);const r=n.offsetTop-o;e.scrollBy(0,r),f("updateHeight to",{newHeight:i,topDiff:r})}}}_getTrackedNode(){const e=this.scrollState,t=e.trackedNode;if(!t||!t.parentElement){let t;const n=this._itemlist.current.children,o=e.trackedScrollToken;for(let e=n.length-1;e>=0;--e){const r=n[e];if(r.dataset.scrollTokens&&-1!==r.dataset.scrollTokens.split(",").indexOf(o)){t=r;break}}t&&f("had to find tracked node again for "+e.trackedScrollToken),e.trackedNode=t}if(e.trackedNode)return e.trackedNode;f("No node with ; '"+e.trackedScrollToken+"'")}_getListHeight(){return this._bottomGrowth+400*this._pages}_getMessagesHeight(){const e=this._itemlist.current,t=e.lastElementChild;return(t?t.offsetTop+t.clientHeight:0)-(e.firstElementChild?e.firstElementChild.offsetTop:0)+36}_topFromBottom(e){return this._itemlist.current.clientHeight-e.offsetTop}_getScrollNode(){if(this.unmounted)throw new Error("ScrollPanel._getScrollNode called when unmounted");if(!this._divScroll)throw new Error("ScrollPanel._getScrollNode called before AutoHideScrollbar ref collected");return this._divScroll}render(){return l.a.createElement(p.a,{wrappedRef:this._collectScroll,onScroll:this.onScroll,className:"mx_ScrollPanel "+this.props.className,style:this.props.style},this.props.fixedChildren,l.a.createElement("div",{className:"mx_RoomView_messageListWrapper"},l.a.createElement("ol",{ref:this._itemlist,className:"mx_RoomView_MessageList","aria-live":"polite",role:"list"},this.props.children)))}},s()(r,"propTypes",{stickyBottom:u.a.bool,startAtBottom:u.a.bool,onFillRequest:u.a.func,onUnfillRequest:u.a.func,onScroll:u.a.func,className:u.a.string,style:u.a.object,resizeNotifier:u.a.object,fixedChildren:u.a.node}),s()(r,"defaultProps",{stickyBottom:!0,startAtBottom:!0,onFillRequest:function(e){return Promise.resolve(!1)},onUnfillRequest:function(e,t){},onScroll:function(){}}),o=i))||o},function(e,t,n){"use strict";var o,r,i,a=n(83),s=n.n(a),c=n(90),l=n(162),d=n(82),u=n.n(d),h=n(148),p=n.n(h),m=n(86),g=n.n(m),f=n(152),_=n(429),b=n(84),v=n(88),y=n(441),E=n(91),S=n(89),w=n(87),C=n(101),T=n(252),x=n(274),O=n(713),k=n(209),R=n(106),D=n(128),I=n(85);let A=function(){};let N=Object(I.a)("structures.TimelinePanel")((i=r=class e extends u.a.Component{constructor(t){super(t),s()(this,"onMessageListUnfillRequest",(e,t)=>{const n=e?f.a.BACKWARDS:f.a.FORWARDS;A("TimelinePanel: unpaginating events in direction",n);const o=t,r=this.state.events.findIndex(e=>e.getId()===o),i=e?r+1:this.state.events.length-r;if(i>0){A("TimelinePanel: Unpaginating",i,"in direction",n),this._timelineWindow.unpaginate(i,e);const t=e?"canBackPaginate":"canForwardPaginate",{events:o,liveEvents:r,firstVisibleEventIndex:a}=this._getEvents();this.setState({[t]:!0,events:o,liveEvents:r,firstVisibleEventIndex:a})}}),s()(this,"onPaginationRequest",(e,t,n)=>this.props.onPaginationRequest?this.props.onPaginationRequest(e,t,n):e.paginate(t,n)),s()(this,"onMessageListFillRequest",e=>{if(!this._shouldPaginate())return Promise.resolve(!1);const t=e?f.a.BACKWARDS:f.a.FORWARDS,n=e?"canBackPaginate":"canForwardPaginate",o=e?"backPaginating":"forwardPaginating";return this.state[n]?this._timelineWindow.canPaginate(t)?e&&0!==this.state.firstVisibleEventIndex?(A("TimelinePanel: won't",t,"paginate past first visible event"),Promise.resolve(!1)):(A("TimelinePanel: Initiating paginate; backwards:"+e),this.setState({[o]:!0}),this.onPaginationRequest(this._timelineWindow,t,20).then(t=>{if(this.unmounted)return;A("TimelinePanel: paginate complete backwards:"+e+"; success:"+t);const{events:r,liveEvents:i,firstVisibleEventIndex:a}=this._getEvents(),s={[o]:!1,[n]:t,events:r,liveEvents:i,firstVisibleEventIndex:a},c=e?f.a.FORWARDS:f.a.BACKWARDS,l=e?"canForwardPaginate":"canBackPaginate";return!this.state[l]&&this._timelineWindow.canPaginate(c)&&(A("TimelinePanel: can now",c,"paginate again"),s[l]=!0),new Promise(n=>{this.setState(s,()=>{n(t&&(!e||0===a))})})})):(A("TimelinePanel: can't",t,"paginate any further"),this.setState({[n]:!1}),Promise.resolve(!1)):(A("TimelinePanel: have given up",t,"paginating this timeline"),Promise.resolve(!1))}),s()(this,"onMessageListScroll",e=>{if(this.props.onScroll&&this.props.onScroll(e),this.props.manageReadMarkers){const e=this.getReadMarkerPosition();e<0&&this.setState({readMarkerVisible:!0});const t=this._readMarkerTimeout(e);this._readMarkerActivityTimer.changeTimeout(t)}}),s()(this,"onAction",e=>{if("ignore_state_changed"===e.action&&this.forceUpdate(),"edit_event"===e.action){const t=e.event?new O.a(e.event):null;this.setState({editState:t},()=>{e.event&&this._messagePanel.current&&this._messagePanel.current.scrollToEventIfNeeded(e.event.getId())})}"scroll_to_bottom"===e.action&&this.jumpToLiveTimeline()}),s()(this,"onRoomTimeline",(e,t,n,o,r)=>{r.timeline.getTimelineSet()===this.props.timelineSet&&!n&&r&&r.liveEvent&&this._messagePanel.current&&(this._messagePanel.current.getScrollState().stuckAtBottom?this._timelineWindow.paginate(f.a.FORWARDS,1,!1).then(()=>{if(this.unmounted)return;const{events:t,liveEvents:n,firstVisibleEventIndex:o}=this._getEvents(),r=n[n.length-1],i={events:t,liveEvents:n,firstVisibleEventIndex:o};let a;if(this.props.manageReadMarkers){const t=v.a.get().credentials.userId,n=e.sender?e.sender.userId:null;a=!1,n==t||y.a.sharedInstance().userActiveRecently()?r&&0===this.getReadMarkerPosition()&&(this._setReadMarker(r.getId(),r.getTs(),!0),i.readMarkerVisible=!1,i.readMarkerEventId=r.getId(),a=!0):i.readMarkerVisible=!0}this.setState(i,()=>{this._messagePanel.current.updateTimelineMinHeight(),a&&this.props.onReadMarkerUpdated()})}):this.setState({canForwardPaginate:!0}))}),s()(this,"onRoomTimelineReset",(e,t)=>{t===this.props.timelineSet&&this._messagePanel.current&&this._messagePanel.current.isAtBottom()&&this._loadTimeline()}),s()(this,"canResetTimeline",()=>this._messagePanel.current&&this._messagePanel.current.isAtBottom()),s()(this,"onRoomRedaction",(e,t)=>{this.unmounted||t===this.props.timelineSet.room&&this.forceUpdate()}),s()(this,"onEventReplaced",(e,t)=>{this.unmounted||t===this.props.timelineSet.room&&this.forceUpdate()}),s()(this,"onRoomReceipt",(e,t)=>{this.unmounted||t===this.props.timelineSet.room&&this.forceUpdate()}),s()(this,"onLocalEchoUpdated",(e,t,n)=>{this.unmounted||t===this.props.timelineSet.room&&this._reloadEvents()}),s()(this,"onAccountData",(e,t)=>{this.unmounted||t===this.props.timelineSet.room&&"m.fully_read"===e.getType()&&this.setState({readMarkerEventId:e.getContent().event_id},this.props.onReadMarkerUpdated)}),s()(this,"onEventDecrypted",e=>{this.props.timelineSet.room&&e.getRoomId()===this.props.timelineSet.room.roomId&&this.forceUpdate()}),s()(this,"onSync",(e,t,n)=>{this.setState({clientSyncState:e})}),s()(this,"sendReadReceipt",()=>{if(c.b.getValue("lowBandwidth"))return;if(!this._messagePanel.current)return;if(!this.props.manageReadReceipts)return;const e=v.a.get();if(!e||e.isGuest())return;let t=!0;const n=this._getCurrentReadReceipt(!0),o=this._indexForEventId(n);n&&null===o&&this._timelineWindow.canPaginate(f.a.FORWARDS)&&(t=!1);const r=this._getLastDisplayedEventIndex({ignoreOwn:!0});null===r&&(t=!1);let i=this.state.events[r];t=t&&r>o&&this.lastRRSentEventId!=i.getId();const a=this.lastRMSentEventId!=this.state.readMarkerEventId;(t||a)&&(t?this.lastRRSentEventId=i.getId():i=null,this.lastRMSentEventId=this.state.readMarkerEventId,A("TimelinePanel: Sending Read Markers for ",this.props.timelineSet.room.roomId,"rm",this.state.readMarkerEventId,i?"rr "+i.getId():""),v.a.get().setRoomReadMarkers(this.props.timelineSet.room.roomId,this.state.readMarkerEventId,i,{}).catch(e=>{if("M_UNRECOGNIZED"===e.errcode&&i)return v.a.get().sendReadReceipt(i,{}).catch(e=>{console.error(e),this.lastRRSentEventId=void 0});console.error(e),this.lastRRSentEventId=void 0,this.lastRMSentEventId=void 0}),this.isAtEndOfLiveTimeline()&&(this.props.timelineSet.room.setUnreadNotificationCount("total",0),this.props.timelineSet.room.setUnreadNotificationCount("highlight",0),S.a.dispatch({action:"on_room_read",roomId:this.props.timelineSet.room.roomId})))}),s()(this,"updateReadMarker",()=>{if(!this.props.manageReadMarkers)return;if(1===this.getReadMarkerPosition())return;const e=this._getLastDisplayedEventIndex({allowPartial:!0});if(null===e)return;const t=this.state.events[e];this._setReadMarker(t.getId(),t.getTs()),this.state.readMarkerVisible&&this.setState({readMarkerVisible:!1}),this.sendReadReceipt()}),s()(this,"jumpToLiveTimeline",()=>{this._timelineWindow.canPaginate(f.a.FORWARDS)?this._loadTimeline():this._messagePanel.current&&this._messagePanel.current.scrollToBottom()}),s()(this,"jumpToReadMarker",()=>{if(!this.props.manageReadMarkers)return;if(!this._messagePanel.current)return;if(!this.state.readMarkerEventId)return;null===this._messagePanel.current.getReadMarkerPosition()?this._loadTimeline(this.state.readMarkerEventId,0,1/3):this._messagePanel.current.scrollToEvent(this.state.readMarkerEventId,0,1/3)}),s()(this,"forgetReadMarker",()=>{if(!this.props.manageReadMarkers)return;const e=this._getCurrentReadReceipt(),t=this.props.timelineSet.getTimelineForEvent(e);let n;if(t){const o=t.getEvents().find(t=>t.getId()==e);o&&(n=o.getTs())}this._setReadMarker(e,n)}),s()(this,"isAtEndOfLiveTimeline",()=>this._messagePanel.current&&this._messagePanel.current.isAtBottom()&&this._timelineWindow&&!this._timelineWindow.canPaginate(f.a.FORWARDS)),s()(this,"getScrollState",()=>this._messagePanel.current?this._messagePanel.current.getScrollState():null),s()(this,"getReadMarkerPosition",()=>{if(!this.props.manageReadMarkers)return null;if(!this._messagePanel.current)return null;const t=this._messagePanel.current.getReadMarkerPosition();if(null!==t)return t;const n=e.roomReadMarkerTsMap[this.props.timelineSet.room.roomId];return n&&this.state.events.length>0?n<this.state.events[0].getTs()?-1:1:null}),s()(this,"canJumpToReadMarker",()=>{const e=this.getReadMarkerPosition();return null!==this.state.readMarkerEventId&&(e<0||null===e)}),s()(this,"handleScrollKey",e=>{this._messagePanel.current&&(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey||e.key!==C.a.END?this._messagePanel.current.handleScrollKey(e):this.jumpToLiveTimeline())}),s()(this,"getRelationsForEvent",(...e)=>this.props.timelineSet.getRelationsForEvent(...e)),A("TimelinePanel: mounting"),this.lastRRSentEventId=void 0,this.lastRMSentEventId=void 0,this._messagePanel=Object(d.createRef)();let n=null;if(this.props.manageReadMarkers){const e=this.props.timelineSet.room.getAccountData("m.fully_read");n=e?e.getContent().event_id:this._getCurrentReadReceipt()}this.state={events:[],liveEvents:[],timelineLoading:!0,firstVisibleEventIndex:0,canBackPaginate:!1,canForwardPaginate:!1,readMarkerVisible:!0,readMarkerEventId:n,backPaginating:!1,forwardPaginating:!1,clientSyncState:v.a.get().getSyncState(),isTwelveHour:c.b.getValue("showTwelveHourTimestamps"),alwaysShowTimestamps:c.b.getValue("alwaysShowTimestamps"),readMarkerInViewThresholdMs:c.b.getValue("readMarkerInViewThresholdMs"),readMarkerOutOfViewThresholdMs:c.b.getValue("readMarkerOutOfViewThresholdMs")},this.dispatcherRef=S.a.register(this.onAction),v.a.get().on("Room.timeline",this.onRoomTimeline),v.a.get().on("Room.timelineReset",this.onRoomTimelineReset),v.a.get().on("Room.redaction",this.onRoomRedaction),v.a.get().on("Room.redactionCancelled",this.onRoomRedaction),v.a.get().on("Room.receipt",this.onRoomReceipt),v.a.get().on("Room.localEchoUpdated",this.onLocalEchoUpdated),v.a.get().on("Room.accountData",this.onAccountData),v.a.get().on("Event.decrypted",this.onEventDecrypted),v.a.get().on("Event.replaced",this.onEventReplaced),v.a.get().on("sync",this.onSync)}UNSAFE_componentWillMount(){this.props.manageReadReceipts&&this.updateReadReceiptOnUserActivity(),this.props.manageReadMarkers&&this.updateReadMarkerOnUserActivity(),this._initTimeline(this.props)}UNSAFE_componentWillReceiveProps(e){if(e.timelineSet!==this.props.timelineSet&&console.warn("Replacing timelineSet on a TimelinePanel - confusion may ensue"),e.eventId!=this.props.eventId)return console.log("TimelinePanel switching to eventId "+e.eventId+" (was "+this.props.eventId+")"),this._initTimeline(e)}shouldComponentUpdate(e,t){return!!Object(D.d)(this.props,e)||!!Object(D.d)(this.state,t)}componentWillUnmount(){this.unmounted=!0,this._readReceiptActivityTimer&&(this._readReceiptActivityTimer.abort(),this._readReceiptActivityTimer=null),this._readMarkerActivityTimer&&(this._readMarkerActivityTimer.abort(),this._readMarkerActivityTimer=null),S.a.unregister(this.dispatcherRef);const e=v.a.get();e&&(e.removeListener("Room.timeline",this.onRoomTimeline),e.removeListener("Room.timelineReset",this.onRoomTimelineReset),e.removeListener("Room.redaction",this.onRoomRedaction),e.removeListener("Room.redactionCancelled",this.onRoomRedaction),e.removeListener("Room.receipt",this.onRoomReceipt),e.removeListener("Room.localEchoUpdated",this.onLocalEchoUpdated),e.removeListener("Room.accountData",this.onAccountData),e.removeListener("Event.decrypted",this.onEventDecrypted),e.removeListener("Event.replaced",this.onEventReplaced),e.removeListener("sync",this.onSync))}_readMarkerTimeout(e){return 0===e?this.state.readMarkerInViewThresholdMs:this.state.readMarkerOutOfViewThresholdMs}async updateReadMarkerOnUserActivity(){const e=this._readMarkerTimeout(this.getReadMarkerPosition());for(this._readMarkerActivityTimer=new T.a(e);this._readMarkerActivityTimer;){y.a.sharedInstance().timeWhileActiveRecently(this._readMarkerActivityTimer);try{await this._readMarkerActivityTimer.finished()}catch(e){continue}this.updateReadMarker()}}async updateReadReceiptOnUserActivity(){for(this._readReceiptActivityTimer=new T.a(500);this._readReceiptActivityTimer;){y.a.sharedInstance().timeWhileActiveNow(this._readReceiptActivityTimer);try{await this._readReceiptActivityTimer.finished()}catch(e){continue}this.sendReadReceipt()}}_advanceReadMarkerPastMyEvents(){if(!this.props.manageReadMarkers)return;const e=this._timelineWindow.getEvents();let t;for(t=0;t<e.length&&e[t].getId()!=this.state.readMarkerEventId;t++);if(t>=e.length)return;const n=v.a.get().credentials.userId;for(t++;t<e.length;t++){const o=e[t];if(!o.sender||o.sender.userId!=n)break}t--;const o=e[t];this._setReadMarker(o.getId(),o.getTs())}_initTimeline(e){const t=e.eventId,n=e.eventPixelOffset;let o=1;return null==n&&(o=.5),this._loadTimeline(t,n,o)}_loadTimeline(e,t,n){this._timelineWindow=new _.b(v.a.get(),this.props.timelineSet,{windowLimit:this.props.timelineCap});const o=()=>{this._messagePanel.current&&this._messagePanel.current.onTimelineReset(),this._reloadEvents(),this._advanceReadMarkerPastMyEvents(),this.setState({canBackPaginate:this._timelineWindow.canPaginate(f.a.BACKWARDS),canForwardPaginate:this._timelineWindow.canPaginate(f.a.FORWARDS),timelineLoading:!1},()=>{this._messagePanel.current?(e?this._messagePanel.current.scrollToEvent(e,t,n):this._messagePanel.current.scrollToBottom(),this.sendReadReceipt()):console.log("can't initialise scroll state because messagePanel didn't load")})},r=t=>{this.setState({timelineLoading:!1}),console.error(`Error loading timeline panel at ${e}: ${t}`);const n=w.getComponent("dialogs.ErrorDialog");let o,r;e&&(o=()=>{S.a.dispatch({action:"view_room",room_id:this.props.timelineSet.room.roomId})}),r="M_FORBIDDEN"==t.errcode?Object(b.a)("Tried to load a specific point in this room's timeline, but you do not have permission to view the message in question."):Object(b.a)("Tried to load a specific point in this room's timeline, but was unable to find it."),E.a.createTrackedDialog("Failed to load timeline position","",n,{title:Object(b.a)("Failed to load timeline position"),description:r,onFinished:o})};if(this.props.timelineSet.getTimelineForEvent(e))this._timelineWindow.load(e,20),o();else{const t=this._timelineWindow.load(e,20);this.setState({events:[],liveEvents:[],canBackPaginate:!1,canForwardPaginate:!1,timelineLoading:!0}),t.then(o,r)}}_reloadEvents(){this.unmounted||this.setState(this._getEvents())}_getEvents(){const e=this._timelineWindow.getEvents(),t=this._checkForPreJoinUISI(e),n=[...e];return this._timelineWindow.canPaginate(f.a.FORWARDS)||e.push(...this.props.timelineSet.getPendingEvents()),{events:e,liveEvents:n,firstVisibleEventIndex:t}}_checkForPreJoinUISI(e){const t=this.props.timelineSet.room;if(0===e.length||!t||!v.a.get().isRoomEncrypted(t.roomId))return 0;const n=v.a.get().credentials.userId;let o,r="leave";for(o=e.length-1;o>=0;o--){const i=t.getTimelineForEvent(e[o].getId());if(!i){console.warn(`Event ${e[o].getId()} in room ${t.roomId} is live, but it does not have a timeline`);continue}const a=i.getState(f.a.FORWARDS).getMember(n);r=a?a.membership:"leave";const s=i.getEvents();for(let t=s.length-1;t>=0;t--){const i=s[t];if(i.getId()===e[o].getId())break;if(i.getStateKey()===n&&"m.room.member"===i.getType()){r=i.getPrevContent().membership||"leave"}}break}for(;o>=0;o--){const t=e[o];if(t.getStateKey()===n&&"m.room.member"===t.getType()){r=t.getPrevContent().membership||"leave"}else if("leave"===r&&(t.isDecryptionFailure()||t.isBeingDecrypted()))return o+1}return 0}_indexForEventId(e){for(let t=0;t<this.state.events.length;++t)if(e==this.state.events[t].getId())return t;return null}_getLastDisplayedEventIndex(e){const t=(e=e||{}).ignoreOwn||!1,n=e.allowPartial||!1,o=this._messagePanel.current;if(!o)return null;const r=p.a.findDOMNode(o);if(!r)return null;const i=r.getBoundingClientRect(),a=v.a.get().credentials.userId,s=e=>{if(e){const t=e.getBoundingClientRect();if(n&&t.top<i.bottom||!n&&t.bottom<i.bottom)return!0}return!1};let c=0;for(let e=this.state.liveEvents.length-1;e>=0;--e){const n=this.state.liveEvents[e],r=o.getNodeForEventId(n.getId()),i=s(r);if(i&&0!==c)return e+c;r&&!i&&(c=0);const l=!!n.status||t&&n.sender&&n.sender.userId==a;if(!(!Object(k.b)(n)||Object(x.a)(n))&&r){if(!l&&i)return e}else(!l||l&&0!==c)&&++c}return null}_getCurrentReadReceipt(e){const t=v.a.get();if(null==t)return null;const n=t.credentials.userId;return this.props.timelineSet.room.getEventReadUpTo(n,e)}_setReadMarker(t,n,o){const r=this.props.timelineSet.room.roomId;t!==this.state.readMarkerEventId&&(e.roomReadMarkerTsMap[r]=n,o||this.setState({readMarkerEventId:t},this.props.onReadMarkerUpdated))}_shouldPaginate(){return!this.state.events.some(e=>e.isBeingDecrypted())}render(){const e=w.getComponent("structures.MessagePanel"),t=w.getComponent("elements.Spinner");if(this.state.timelineLoading)return u.a.createElement("div",{className:"mx_RoomView_messagePanelSpinner"},u.a.createElement(t,null));if(0==this.state.events.length&&!this.state.canBackPaginate&&this.props.empty)return u.a.createElement("div",{className:this.props.className+" mx_RoomView_messageListWrapper"},u.a.createElement("div",{className:"mx_RoomView_empty"},this.props.empty));const n=!this._timelineWindow.canPaginate(f.a.FORWARDS),o=this.state.forwardPaginating||["PREPARED","CATCHUP"].includes(this.state.clientSyncState),r=this.state.firstVisibleEventIndex?this.state.events.slice(this.state.firstVisibleEventIndex):this.state.events;return u.a.createElement(e,{ref:this._messagePanel,room:this.props.timelineSet.room,permalinkCreator:this.props.permalinkCreator,hidden:this.props.hidden,backPaginating:this.state.backPaginating,forwardPaginating:o,events:r,highlightedEventId:this.props.highlightedEventId,readMarkerEventId:this.state.readMarkerEventId,readMarkerVisible:this.state.readMarkerVisible,suppressFirstDateSeparator:this.state.canBackPaginate,showUrlPreview:this.props.showUrlPreview,showReadReceipts:this.props.showReadReceipts,ourUserId:v.a.get().credentials.userId,stickyBottom:n,onScroll:this.onMessageListScroll,onFillRequest:this.onMessageListFillRequest,onUnfillRequest:this.onMessageListUnfillRequest,isTwelveHour:this.state.isTwelveHour,alwaysShowTimestamps:this.state.alwaysShowTimestamps,className:this.props.className,tileShape:this.props.tileShape,resizeNotifier:this.props.resizeNotifier,getRelationsForEvent:this.getRelationsForEvent,editState:this.state.editState,showReactions:this.props.showReactions,layout:this.props.layout,enableFlair:c.b.getValue(R.a.Flair)})}},s()(r,"propTypes",{timelineSet:g.a.object.isRequired,showReadReceipts:g.a.bool,manageReadReceipts:g.a.bool,manageReadMarkers:g.a.bool,hidden:g.a.bool,highlightedEventId:g.a.string,eventId:g.a.string,eventPixelOffset:g.a.number,showUrlPreview:g.a.bool,onScroll:g.a.func,onReadMarkerUpdated:g.a.func,onPaginationRequest:g.a.func,timelineCap:g.a.number,className:g.a.string,tileShape:g.a.string,empty:g.a.node,showReactions:g.a.bool,layout:l.b}),s()(r,"roomReadMarkerTsMap",{}),s()(r,"defaultProps",{timelineCap:Number.MAX_VALUE,className:"mx_RoomView_messagePanel"}),o=i))||o;t.a=N},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));class o{constructor(e){this._event=e,this._serializedParts=null,this.caret=null}setEditorState(e,t){this._caret=e,this._serializedParts=t}hasEditorState(){return!!this._serializedParts}getSerializedParts(){return this._serializedParts}getCaret(){return this._caret}getEvent(){return this._event}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(87),p=n(88),m=n(89),g=n(92),f=n.n(g),_=n(84),b=n(94),v=n(196),y=n(164),E=n(115),S=n(85),w=n(715);const C=Object.freeze({NotLoggedIn:"NotLoggedIn",Joining:"Joining",Loading:"Loading",Rejecting:"Rejecting",Kicked:"Kicked",Banned:"Banned",OtherThreePIDError:"OtherThreePIDError",InvitedEmailNotFoundInAccount:"InvitedEmailNotFoundInAccount",InvitedEmailNoIdentityServer:"InvitedEmailNoIdentityServer",InvitedEmailMismatch:"InvitedEmailMismatch",Invite:"Invite",ViewingRoom:"ViewingRoom",RoomNotFound:"RoomNotFound",OtherError:"OtherError"});let T=Object(S.a)("views.rooms.RoomPreviewBar")((i=r=class extends l.a.Component{constructor(...e){super(...e),s()(this,"state",{busy:!1}),s()(this,"_onCommunityUpdate",e=>{this.props.room&&this.props.room.roomId!==e||this.forceUpdate()}),s()(this,"onLoginClick",()=>{m.a.dispatch({action:"start_login",screenAfterLogin:this._makeScreenAfterLogin()})}),s()(this,"onRegisterClick",()=>{m.a.dispatch({action:"start_registration",screenAfterLogin:this._makeScreenAfterLogin()})})}componentDidMount(){this._checkInvitedEmail(),y.a.instance.on(E.b,this._onCommunityUpdate)}componentDidUpdate(e,t){this.props.invitedEmail===e.invitedEmail&&this.props.inviterName===e.inviterName||this._checkInvitedEmail()}componentWillUnmount(){y.a.instance.off(E.b,this._onCommunityUpdate)}async _checkInvitedEmail(){if(this.props.inviterName&&this.props.invitedEmail){this.setState({busy:!0});try{const e=await p.a.get().getThreePids();if(this.setState({accountEmails:e.threepids.filter(e=>"email"===e.medium).map(e=>e.address)}),!p.a.get().getIdentityServerUrl())return void this.setState({busy:!1});const t=new v.a,n=await t.getAccessToken(),o=await p.a.get().lookupThreePid("email",this.props.invitedEmail,void 0,n);this.setState({invitedEmailMxid:o.mxid})}catch(e){this.setState({threePidFetchError:e})}this.setState({busy:!1})}}_getMessageCase(){if(p.a.get().isGuest())return C.NotLoggedIn;const e=this._getMyMember();if(e){if(e.isKicked())return C.Kicked;if("ban"===e.membership)return C.Banned}if(this.props.joining)return C.Joining;if(this.props.rejecting)return C.Rejecting;if(this.props.loading||this.state.busy)return C.Loading;if(this.props.inviterName){if(this.props.invitedEmail){if(this.state.threePidFetchError)return C.OtherThreePIDError;if(this.state.accountEmails&&!this.state.accountEmails.includes(this.props.invitedEmail))return C.InvitedEmailNotFoundInAccount;if(!p.a.get().getIdentityServerUrl())return C.InvitedEmailNoIdentityServer;if(this.state.invitedEmailMxid!=p.a.get().getUserId())return C.InvitedEmailMismatch}return C.Invite}return this.props.error?"M_NOT_FOUND"==this.props.error.errcode?C.RoomNotFound:C.OtherError:C.ViewingRoom}_getKickOrBanInfo(){const e=this._getMyMember();if(!e)return{};const t=this.props.room.currentState.getMember(e.events.member.getSender());return{memberName:t?t.name:e.events.member.getSender(),reason:e.events.member.getContent().reason}}_joinRule(){const e=this.props.room;if(e){const t=e.currentState.getStateEvents("m.room.join_rules","");if(t)return t.getContent().join_rule}}_communityProfile(){return this.props.room?y.a.instance.getInviteProfile(this.props.room.roomId):{displayName:null,avatarMxc:null}}_roomName(e=!1){let t=this.props.room?this.props.room.name:this.props.roomAlias;const n=this._communityProfile();return n.displayName&&(t=n.displayName),t||(e?Object(_.a)("This room"):Object(_.a)("this room"))}_getMyMember(){return this.props.room&&this.props.room.getMember(p.a.get().getUserId())}_getInviteMember(){const{room:e}=this.props;if(!e)return;const t=p.a.get().getUserId(),n=e.currentState.getMember(t);if(!n)return;const o=n.events.member.getSender();return e.currentState.getMember(o)}_isDMInvite(){const e=this._getMyMember();if(!e)return!1;const t=e.events.member.getContent();return"invite"===t.membership&&t.is_direct}_makeScreenAfterLogin(){return{screen:"room",params:{email:this.props.invitedEmail,signurl:this.props.signUrl,room_name:this.props.oobData?this.props.oobData.room_name:null,room_avatar_url:this.props.oobData?this.props.oobData.avatarUrl:null,inviter_name:this.props.oobData?this.props.oobData.inviterName:null}}}render(){const e=b.a.get().brand,t=h.getComponent("elements.Spinner"),n=h.getComponent("elements.AccessibleButton");let o,r,i,a,s,c,d,u,m=!1;const g=[],v=this._getMessageCase();switch(v){case C.Joining:o=Object(_.a)("Joining room …"),m=!0;break;case C.Loading:o=Object(_.a)("Loading …"),m=!0;break;case C.Rejecting:o=Object(_.a)("Rejecting invite …"),m=!0;break;case C.NotLoggedIn:o=Object(_.a)("Join the conversation with an account"),s=Object(_.a)("Sign Up"),a=this.onRegisterClick,d=Object(_.a)("Sign In"),c=this.onLoginClick,this.props.previewLoading&&(u=l.a.createElement("div",null,l.a.createElement(t,{w:20,h:20}),Object(_.a)("Loading room preview")));break;case C.Kicked:{const{memberName:e,reason:t}=this._getKickOrBanInfo();o=Object(_.a)("You were kicked from %(roomName)s by %(memberName)s",{memberName:e,roomName:this._roomName()}),r=t?Object(_.a)("Reason: %(reason)s",{reason:t}):null,"invite"===this._joinRule()?(s=Object(_.a)("Forget this room"),a=this.props.onForgetClick):(s=Object(_.a)("Re-join"),a=this.props.onJoinClick,d=Object(_.a)("Forget this room"),c=this.props.onForgetClick);break}case C.Banned:{const{memberName:e,reason:t}=this._getKickOrBanInfo();o=Object(_.a)("You were banned from %(roomName)s by %(memberName)s",{memberName:e,roomName:this._roomName()}),r=t?Object(_.a)("Reason: %(reason)s",{reason:t}):null,s=Object(_.a)("Forget this room"),a=this.props.onForgetClick;break}case C.OtherThreePIDError:{o=Object(_.a)("Something went wrong with your invite to %(roomName)s",{roomName:this._roomName()});const e=this._joinRule(),t=Object(_.a)("An error (%(errcode)s) was returned while trying to validate your invite. You could try to pass this information on to a room admin.",{errcode:this.state.threePidFetchError.errcode||Object(_.a)("unknown error code")});switch(e){case"invite":r=[Object(_.a)("You can only join it with a working invite."),t],s=Object(_.a)("Try to join anyway"),a=this.props.onJoinClick;break;case"public":r=Object(_.a)("You can still join it because this is a public room."),s=Object(_.a)("Join the discussion"),a=this.props.onJoinClick;break;default:r=t,s=Object(_.a)("Try to join anyway"),a=this.props.onJoinClick}break}case C.InvitedEmailNotFoundInAccount:o=Object(_.a)("This invite to %(roomName)s was sent to %(email)s which is not associated with your account",{roomName:this._roomName(),email:this.props.invitedEmail}),r=Object(_.a)("Link this email with your account in Settings to receive invites directly in %(brand)s.",{brand:e}),s=Object(_.a)("Join the discussion"),a=this.props.onJoinClick;break;case C.InvitedEmailNoIdentityServer:o=Object(_.a)("This invite to %(roomName)s was sent to %(email)s",{roomName:this._roomName(),email:this.props.invitedEmail}),r=Object(_.a)("Use an identity server in Settings to receive invites directly in %(brand)s.",{brand:e}),s=Object(_.a)("Join the discussion"),a=this.props.onJoinClick;break;case C.InvitedEmailMismatch:o=Object(_.a)("This invite to %(roomName)s was sent to %(email)s",{roomName:this._roomName(),email:this.props.invitedEmail}),r=Object(_.a)("Share this email in Settings to receive invites directly in %(brand)s.",{brand:e}),s=Object(_.a)("Join the discussion"),a=this.props.onJoinClick;break;case C.Invite:{const e=h.getComponent("views.avatars.RoomAvatar"),t=Object.assign({},this.props.oobData,{avatarUrl:this._communityProfile().avatarMxc}),u=l.a.createElement(e,{room:this.props.room,oobData:t}),m=this._getInviteMember();let f;f=m?l.a.createElement("span",null,l.a.createElement("span",{className:"mx_RoomPreviewBar_inviter"},m.rawDisplayName)," (",m.userId,")"):l.a.createElement("span",{className:"mx_RoomPreviewBar_inviter"},this.props.inviterName);this._isDMInvite()?(o=Object(_.a)("Do you want to chat with %(user)s?",{user:m.name}),r=[u,Object(_.a)("<userName/> wants to chat",{},{userName:()=>f})],s=Object(_.a)("Start chatting")):(o=Object(_.a)("Do you want to join %(roomName)s?",{roomName:this._roomName()}),r=[u,Object(_.a)("<userName/> invited you",{},{userName:()=>f})],s=Object(_.a)("Accept"));const b=p.a.get().getUserId(),v=this.props.room.currentState.getMember(b).events.member.event.content.reason;v&&(i=l.a.createElement(w.a,{reason:v})),a=this.props.onJoinClick,d=Object(_.a)("Reject"),c=this.props.onRejectClick,this.props.onRejectAndIgnoreClick&&g.push(l.a.createElement(n,{kind:"secondary",onClick:this.props.onRejectAndIgnoreClick,key:"ignore"},Object(_.a)("Reject & Ignore user")));break}case C.ViewingRoom:o=this.props.canPreview?Object(_.a)("You're previewing %(roomName)s. Want to join it?",{roomName:this._roomName()}):Object(_.a)("%(roomName)s can't be previewed. Do you want to join it?",{roomName:this._roomName(!0)}),s=Object(_.a)("Join the discussion"),a=this.props.onJoinClick;break;case C.RoomNotFound:o=Object(_.a)("%(roomName)s does not exist.",{roomName:this._roomName(!0)}),r=Object(_.a)("This room doesn't exist. Are you sure you're at the right place?");break;case C.OtherError:o=Object(_.a)("%(roomName)s is not accessible at this time.",{roomName:this._roomName(!0)}),r=[Object(_.a)("Try again later, or ask a room admin to check if you have access."),Object(_.a)("%(errcode)s was returned while trying to access the room. If you think you're seeing this message in error, please <issueLink>submit a bug report</issueLink>.",{errcode:this.props.error.errcode},{issueLink:e=>l.a.createElement("a",{href:"https://github.com/vector-im/element-web/issues/new/choose",target:"_blank",rel:"noreferrer noopener"},e)})]}let y,E,S,T;r&&(Array.isArray(r)||(r=[r]),y=r.map((e,t)=>l.a.createElement("p",{key:"subTitle"+t},e))),E=m?l.a.createElement("h3",{className:"mx_RoomPreviewBar_spinnerTitle"},l.a.createElement(t,null),o):l.a.createElement("h3",null,o),a&&(S=l.a.createElement(n,{kind:"primary",onClick:a},s)),c&&(T=l.a.createElement(n,{kind:"secondary",onClick:c},d));const x=f()("mx_RoomPreviewBar","dark-panel","mx_RoomPreviewBar_"+v,{mx_RoomPreviewBar_panel:this.props.canPreview,mx_RoomPreviewBar_dialog:!this.props.canPreview});return l.a.createElement("div",{className:x},l.a.createElement("div",{className:"mx_RoomPreviewBar_message"},E,y),i,l.a.createElement("div",{className:"mx_RoomPreviewBar_actions"},T,g,S),l.a.createElement("div",{className:"mx_RoomPreviewBar_footer"},u))}},s()(r,"propTypes",{onJoinClick:u.a.func,onRejectClick:u.a.func,onRejectAndIgnoreClick:u.a.func,onForgetClick:u.a.func,inviterName:u.a.string,invitedEmail:u.a.string,oobData:u.a.object,signUrl:u.a.string,error:u.a.object,canPreview:u.a.bool,previewLoading:u.a.bool,room:u.a.object,spinner:u.a.bool,spinnerState:u.a.oneOf(["joining"]),loading:u.a.bool,joining:u.a.bool,rejecting:u.a.bool,roomAlias:u.a.string}),s()(r,"defaultProps",{onJoinClick(){}}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var o,r=n(83),i=n.n(r),a=n(92),s=n.n(a),c=n(82),l=n.n(c),d=n(84),u=n(85);let h=Object(u.a)("views.elements.InviteReason")(o=class extends l.a.PureComponent{constructor(e){super(e),i()(this,"onViewClick",()=>{this.setState({hidden:!1})}),this.state={hidden:!0}}render(){const e=s()({mx_InviteReason:!0,mx_InviteReason_hidden:this.state.hidden});return l.a.createElement("div",{className:e},l.a.createElement("div",{className:"mx_InviteReason_reason"},this.props.reason),l.a.createElement("div",{className:"mx_InviteReason_view",onClick:this.onViewClick},Object(d.a)("View message")))}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(84),p=n(101),m=n(85);let g=Object(m.a)("views.rooms.ForwardMessage")((i=r=class extends l.a.Component{constructor(...e){super(...e),s()(this,"_onKeyDown",e=>{switch(e.key){case p.a.ESCAPE:this.props.onCancelClick()}})}componentDidMount(){document.addEventListener("keydown",this._onKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this._onKeyDown)}render(){return l.a.createElement("div",{className:"mx_ForwardMessage"},l.a.createElement("h1",null,Object(h.a)("Please select the destination room for this message")))}},s()(r,"propTypes",{onCancelClick:u.a.func.isRequired}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(93),l=n(92),d=n.n(l),u=n(84),h=n(101),p=n(481),m=n(85);let g=Object(m.a)("views.rooms.SearchBar")(o=class extends s.a.Component{constructor(e){super(e),i()(this,"onThisRoomClick",()=>{this.setState({scope:"Room"},()=>this._searchIfQuery())}),i()(this,"onAllRoomsClick",()=>{this.setState({scope:"All"},()=>this._searchIfQuery())}),i()(this,"onSearchChange",e=>{switch(e.key){case h.a.ENTER:this.onSearch();break;case h.a.ESCAPE:this.props.onCancelClick()}}),i()(this,"onSearch",()=>{this.props.onSearch(this._search_term.current.value,this.state.scope)}),this._search_term=Object(a.createRef)(),this.state={scope:"Room"}}_searchIfQuery(){this._search_term.current.value&&this.onSearch()}render(){const e=d()("mx_SearchBar_searchButton",{mx_SearchBar_searching:this.props.searchInProgress}),t=d()("mx_SearchBar_button",{mx_SearchBar_unselected:"Room"!==this.state.scope}),n=d()("mx_SearchBar_button",{mx_SearchBar_unselected:"All"!==this.state.scope});return s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"mx_SearchBar"},s.a.createElement("div",{className:"mx_SearchBar_buttons",role:"radiogroup"},s.a.createElement(c.a,{className:t,onClick:this.onThisRoomClick,"aria-checked":"Room"===this.state.scope,role:"radio"},Object(u.a)("This Room")),s.a.createElement(c.a,{className:n,onClick:this.onAllRoomsClick,"aria-checked":"All"===this.state.scope,role:"radio"},Object(u.a)("All Rooms"))),s.a.createElement("div",{className:"mx_SearchBar_input mx_textinput"},s.a.createElement("input",{ref:this._search_term,type:"text",autoFocus:!0,placeholder:Object(u.a)("Search…"),onKeyDown:this.onSearchChange}),s.a.createElement(c.a,{className:e,onClick:this.onSearch})),s.a.createElement(c.a,{className:"mx_SearchBar_cancel",onClick:this.props.onCancelClick})),s.a.createElement(p.b,{isRoomEncrypted:this.props.isRoomEncrypted,kind:p.a.Search}))}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(87),p=n(91),m=n(84),g=n(88),f=n(85);let _=Object(f.a)("views.rooms.RoomUpgradeWarningBar")((i=r=class extends l.a.Component{constructor(e){super(e),s()(this,"_onStateEvents",(e,t)=>{if(!this.props.room||e.getRoomId()!==this.props.room.roomId)return;if("m.room.tombstone"!==e.getType())return;const n=this.props.room.currentState.getStateEvents("m.room.tombstone","");this.setState({upgraded:n&&n.getContent().replacement_room})}),s()(this,"onUpgradeClick",()=>{const e=h.getComponent("dialogs.RoomUpgradeDialog");p.a.createTrackedDialog("Upgrade Room Version","",e,{room:this.props.room})}),this.state={}}componentDidMount(){const e=this.props.room.currentState.getStateEvents("m.room.tombstone","");this.setState({upgraded:e&&e.getContent().replacement_room}),g.a.get().on("RoomState.events",this._onStateEvents)}componentWillUnmount(){const e=g.a.get();e&&e.removeListener("RoomState.events",this._onStateEvents)}render(){const e=h.getComponent("elements.AccessibleButton");let t=l.a.createElement("div",null,l.a.createElement("div",{className:"mx_RoomUpgradeWarningBar_body"},l.a.createElement("p",null,Object(m.a)("Upgrading this room will shut down the current instance of the room and create an upgraded room with the same name.")),l.a.createElement("p",null,Object(m.a)("<b>Warning</b>: Upgrading a room will <i>not automatically migrate room members to the new version of the room.</i> We'll post a link to the new room in the old version of the room - room members will have to click this link to join the new room.",{},{b:e=>l.a.createElement("b",null,e),i:e=>l.a.createElement("i",null,e)}))),l.a.createElement("p",{className:"mx_RoomUpgradeWarningBar_upgradelink"},l.a.createElement(e,{onClick:this.onUpgradeClick},Object(m.a)("Upgrade this room to the recommended room version"))));return this.state.upgraded&&(t=l.a.createElement("div",{className:"mx_RoomUpgradeWarningBar_body"},l.a.createElement("p",null,Object(m.a)("This room has already been upgraded.")))),l.a.createElement("div",{className:"mx_RoomUpgradeWarningBar"},l.a.createElement("div",{className:"mx_RoomUpgradeWarningBar_wrapped"},l.a.createElement("div",{className:"mx_RoomUpgradeWarningBar_header"},Object(m.a)("This room is running room version <roomVersion />, which this homeserver has marked as <i>unstable</i>.",{},{roomVersion:()=>l.a.createElement("code",null,this.props.room.getVersion()),i:e=>l.a.createElement("i",null,e)})),t,l.a.createElement("div",{className:"mx_RoomUpgradeWarningBar_small"},Object(m.a)("Only room administrators will see this warning"))))}},s()(r,"propTypes",{room:u.a.object.isRequired,recommendation:u.a.object.isRequired}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(88),p=n(89),m=n(93),g=n(720),f=n(174),_=n(84),b=n(134),v=n(85);let y=Object(v.a)("views.rooms.PinnedEventTile")((i=r=class extends l.a.Component{constructor(...e){super(...e),s()(this,"onTileClicked",()=>{p.a.dispatch({action:"view_room",event_id:this.props.mxEvent.getId(),highlighted:!0,room_id:this.props.mxEvent.getRoomId()})}),s()(this,"onUnpinClicked",()=>{const e=this.props.mxRoom.currentState.getStateEvents("m.room.pinned_events","");if(e&&e.getContent().pinned){const t=e.getContent().pinned,n=t.indexOf(this.props.mxEvent.getId());-1!==n?(t.splice(n,1),h.a.get().sendStateEvent(this.props.mxRoom.roomId,"m.room.pinned_events",{pinned:t},"").then(()=>{this.props.onUnpinned&&this.props.onUnpinned()})):this.props.onUnpinned&&this.props.onUnpinned()}else this.props.onUnpinned&&this.props.onUnpinned()})}_canUnpin(){return this.props.mxRoom.currentState.mayClientSendStateEvent("m.room.pinned_events",h.a.get())}render(){const e=this.props.mxEvent.getSender(),t=this.props.mxRoom.getMember(e);let o=null;return this._canUnpin()&&(o=l.a.createElement(m.a,{onClick:this.onUnpinClicked,className:"mx_PinnedEventTile_unpinButton"},l.a.createElement("img",{src:n(1338),width:"8",height:"8",alt:Object(_.a)("Unpin Message"),title:Object(_.a)("Unpin Message")}))),l.a.createElement("div",{className:"mx_PinnedEventTile"},l.a.createElement("div",{className:"mx_PinnedEventTile_actions"},l.a.createElement(m.a,{className:"mx_PinnedEventTile_gotoButton mx_textButton",onClick:this.onTileClicked},Object(_.a)("Jump to message")),o),l.a.createElement("span",{className:"mx_PinnedEventTile_senderAvatar"},l.a.createElement(f.a,{member:t,width:40,height:40,fallbackUserId:e})),l.a.createElement("span",{className:"mx_PinnedEventTile_sender"},t?t.name:e),l.a.createElement("span",{className:"mx_PinnedEventTile_timestamp"},Object(b.b)(new Date(this.props.mxEvent.getTs()))),l.a.createElement("div",{className:"mx_PinnedEventTile_message"},l.a.createElement(g.a,{mxEvent:this.props.mxEvent,className:"mx_PinnedEventTile_body",maxImageHeight:150,onHeightChanged:()=>{}})))}},s()(r,"propTypes",{mxRoom:u.a.object.isRequired,mxEvent:u.a.object.isRequired,onUnpinned:u.a.func}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(87),p=n(90),m=n(453),g=n(482),f=n(721),_=n(85);let b=Object(_.a)("views.messages.MessageEvent")((i=r=class extends l.a.Component{constructor(e){super(e),s()(this,"getEventTileOps",()=>this._body.current&&this._body.current.getEventTileOps?this._body.current.getEventTileOps():null),s()(this,"onTileUpdate",()=>{this.forceUpdate()}),this._body=Object(c.createRef)()}render(){const e={"m.text":h.getComponent("messages.TextualBody"),"m.notice":h.getComponent("messages.TextualBody"),"m.emote":h.getComponent("messages.TextualBody"),"m.image":h.getComponent("messages.MImageBody"),"m.file":h.getComponent("messages.MFileBody"),"m.audio":h.getComponent("messages.MAudioBody"),"m.video":h.getComponent("messages.MVideoBody"),"org.matrix.msc2516.voice":h.getComponent("messages.MAudioBody")},t={"m.sticker":h.getComponent("messages.MStickerBody")},n=this.props.mxEvent.getContent(),o=this.props.mxEvent.getType(),r=n.msgtype;let i=g.a;if(this.props.mxEvent.isRedacted()||(i=o&&t[o]?t[o]:r&&e[r]?e[r]:n.url?e["m.file"]:f.a),p.b.getValue("feature_mjolnir")){const e=`mx_mjolnir_render_${this.props.mxEvent.getRoomId()}__${this.props.mxEvent.getId()}`;if(!("true"===localStorage.getItem(e))){const e=this.props.mxEvent.getSender().split(":").slice(1).join(":"),t=m.a.sharedInstance().isUserBanned(this.props.mxEvent.getSender()),n=m.a.sharedInstance().isServerBanned(e);(t||n)&&(i=h.getComponent("messages.MjolnirBody"))}}return l.a.createElement(i,{ref:this._body,mxEvent:this.props.mxEvent,highlights:this.props.highlights,highlightLink:this.props.highlightLink,showUrlPreview:this.props.showUrlPreview,tileShape:this.props.tileShape,maxImageHeight:this.props.maxImageHeight,replacingEventId:this.props.replacingEventId,editState:this.props.editState,onHeightChanged:this.props.onHeightChanged,onMessageAllowed:this.onTileUpdate,permalinkCreator:this.props.permalinkCreator})}},s()(r,"propTypes",{mxEvent:u.a.object.isRequired,highlights:u.a.array,highlightLink:u.a.string,showUrlPreview:u.a.bool,onHeightChanged:u.a.func,tileShape:u.a.string,maxImageHeight:u.a.number,permalinkCreator:u.a.object}),o=i))||o},function(e,t,n){"use strict";var o=n(82),r=n.n(o);t.a=Object(o.forwardRef)(({mxEvent:e},t)=>{const n=e.getContent().body;return r.a.createElement("span",{className:"mx_UnknownBody",ref:t},n)})},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(88),u=n(89),h=n(748),p=n(92),m=n.n(p),g=n(259),f=n(90),_=n(113),b=n(106),v=n(723),y=n(128),E=n(85);let S=Object(E.a)("views.rooms.AuxPanel")((i=r=class extends l.a.Component{constructor(e){super(e),s()(this,"onConferenceNotificationClick",(e,t)=>{u.a.dispatch({action:"place_call",type:t,room_id:this.props.room.roomId}),e.stopPropagation(),e.preventDefault()}),s()(this,"_rateLimitedUpdate",new g.a(()=>{f.b.getValue("feature_state_counters")&&this.setState({counters:this._computeCounters()})},500)),this.state={counters:this._computeCounters()}}componentDidMount(){d.a.get().on("RoomState.events",this._rateLimitedUpdate)}componentWillUnmount(){const e=d.a.get();e&&e.removeListener("RoomState.events",this._rateLimitedUpdate)}shouldComponentUpdate(e,t){return Object(y.d)(this.props,e)||Object(y.d)(this.state,t)}componentDidUpdate(e,t){this.props.onResize&&this.props.onResize()}_computeCounters(){const e=[];if(this.props.room&&f.b.getValue("feature_state_counters")){const t=this.props.room.currentState.getStateEvents("re.jki.counter");t.sort((e,t)=>e.getStateKey()<t.getStateKey());for(const n of t){const t=n.getContent().title,o=n.getContent().value,r=n.getContent().link,i=n.getContent().severity||"normal",a=n.getStateKey();t&&void 0!==o&&e.push({title:t,value:o,link:r,severity:i,stateKey:a})}}return e}render(){const e=l.a.createElement(v.a,{roomId:this.props.room.roomId,maxVideoHeight:this.props.maxHeight,resizeNotifier:this.props.resizeNotifier});let t;f.b.getValue(b.a.Widgets)&&(t=l.a.createElement(h.a,{room:this.props.room,userId:this.props.userId,maxHeight:this.props.maxHeight,showApps:this.props.showApps,resizeNotifier:this.props.resizeNotifier}));let n=null;if(this.state.counters&&f.b.getValue("feature_state_counters")){const e=[];this.state.counters.forEach((t,n)=>{const o=t.title,r=t.value,i=t.link,a=t.severity,s=t.stateKey;let c=l.a.createElement("span",null,o,": ",r);i&&(c=l.a.createElement("a",{href:i,target:"_blank",rel:"noreferrer noopener"},c)),c=l.a.createElement("span",{className:"m_RoomView_auxPanel_stateViews_span","data-severity":a,key:"x-"+s},c),e.push(c),e.push(l.a.createElement("span",{className:"m_RoomView_auxPanel_stateViews_delim",key:"delim"+n}," ─ "))}),e.length>0&&(e.pop(),n=l.a.createElement("div",{className:"m_RoomView_auxPanel_stateViews"},e))}const o=m()({mx_RoomView_auxPanel:!0,mx_RoomView_auxPanel_fullHeight:this.props.fullHeight}),r={};return this.props.fullHeight||(r.maxHeight=this.props.maxHeight),l.a.createElement(_.a,{className:o,style:r},n,t,e,this.props.children)}},s()(r,"defaultProps",{showApps:!0}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var o,r=n(83),i=n.n(r),a=n(131),s=n(82),c=n.n(s),l=n(137),d=n(472),u=n(89),h=n(294),p=n(85);let m=Object(p.a)("views.voip.CallViewForRoom")(o=class extends c.a.Component{constructor(e){super(e),i()(this,"dispatcherRef",void 0),i()(this,"onAction",e=>{switch(e.action){case"call_state":{const e=this.getCall();e!==this.state.call&&this.setState({call:e});break}}}),i()(this,"onResizeStart",()=>{this.props.resizeNotifier.startResizing()}),i()(this,"onResize",()=>{this.props.resizeNotifier.notifyTimelineHeightChanged()}),i()(this,"onResizeStop",()=>{this.props.resizeNotifier.stopResizing()}),this.state={call:this.getCall()}}componentDidMount(){this.dispatcherRef=u.a.register(this.onAction)}componentWillUnmount(){u.a.unregister(this.dispatcherRef)}getCall(){const e=l.c.sharedInstance().getCallForRoom(this.props.roomId);return e&&[a.e.Ended,a.e.Ringing].includes(e.state)?null:e}render(){if(!this.state.call)return null;const e=this.props.maxVideoHeight-8;return c.a.createElement("div",{className:"mx_CallViewForRoom"},c.a.createElement(h.Resizable,{minHeight:380,maxHeight:e,enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,className:"mx_CallViewForRoom_ResizeWrapper",handleClasses:{bottom:"mx_CallViewForRoom_ResizeHandle"}},c.a.createElement(d.a,{call:this.state.call,pipMode:!1})))}})||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(92),p=n.n(h),m=n(84),g=n(88),f=n(259),_=n(725),b=n(90),v=n(726),y=n(218),E=n(363),S=n(124),w=n(111),C=n(345),T=n(200),x=n(137),O=n(85);let k=Object(O.a)("views.rooms.RoomHeader")((i=r=class extends l.a.Component{constructor(...e){super(...e),s()(this,"_onRoomStateEvents",(e,t)=>{this.props.room&&e.getRoomId()===this.props.room.roomId&&this._rateLimitedUpdate()}),s()(this,"_onRoomAccountData",(e,t)=>{this.props.room&&t.roomId===this.props.room.roomId&&"im.vector.room.read_pins"===e.getType()&&this._rateLimitedUpdate()}),s()(this,"_rateLimitedUpdate",new f.a((function(){this.forceUpdate()}),500))}componentDidMount(){const e=g.a.get();e.on("RoomState.events",this._onRoomStateEvents),e.on("Room.accountData",this._onRoomAccountData)}componentWillUnmount(){const e=g.a.get();e&&(e.removeListener("RoomState.events",this._onRoomStateEvents),e.removeListener("Room.accountData",this._onRoomAccountData))}_hasUnreadPins(){const e=this.props.room.currentState.getStateEvents("m.room.pinned_events","");if(!e)return!1;if(e.getContent().pinned&&e.getContent().pinned.length<=0)return!1;const t=this.props.room.getAccountData("im.vector.room.read_pins");if(t&&t.getContent()){const n=t.getContent().event_ids||[];if(n)return!n.includes(e.getId())}return!0}_hasPins(){const e=this.props.room.currentState.getStateEvents("m.room.pinned_events","");return!!e&&!(e.getContent().pinned&&e.getContent().pinned.length<=0)}render(){let e=null,t=null,n=null;this.props.onCancelClick&&(t=l.a.createElement(_.a,{onClick:this.props.onCancelClick})),this.props.searchInfo&&void 0!==this.props.searchInfo.searchCount&&null!==this.props.searchInfo.searchCount&&(e=l.a.createElement("div",{className:"mx_RoomHeader_searchStatus"}," ",Object(m.a)("(~%(count)s results)",{count:this.props.searchInfo.searchCount})));let o=!1;const r=this.props.room?this.props.room.getJoinedMembers():void 0;if(r&&1===r.length&&r[0].userId===g.a.get().credentials.userId){const e=this.props.room.currentState.getStateEvents("m.room.name","");e&&e.getContent().name||(o=!0)}let i=Object(m.a)("Join Room");this.props.oobData&&this.props.oobData.name&&(i=this.props.oobData.name);const a=p()("mx_RoomHeader_nametext",{mx_RoomHeader_settingsHint:o}),s=l.a.createElement("div",{className:"mx_RoomHeader_name",onClick:this.props.onSettingsClick},l.a.createElement(T.a,{room:this.props.room},e=>{const t=e||i;return l.a.createElement("div",{dir:"auto",className:a,title:t},t)}),e),c=l.a.createElement(C.a,{room:this.props.room},(e,t)=>l.a.createElement("div",{className:"mx_RoomHeader_topic",ref:t,title:e,dir:"auto"},e));let d,u,h,f,O,k;if(this.props.room&&(d=l.a.createElement(E.a,{room:this.props.room,avatarSize:32,tag:S.a.Untagged,oobData:this.props.oobData,viewAvatarOnClick:!0})),this.props.onPinnedClick&&b.b.getValue("feature_pinning")){let e=null;this._hasUnreadPins()?e=l.a.createElement("div",{className:"mx_RoomHeader_pinsIndicator mx_RoomHeader_pinsIndicatorUnread"}):this._hasPins()&&(e=l.a.createElement("div",{className:"mx_RoomHeader_pinsIndicator"})),n=l.a.createElement(w.a,{className:"mx_RoomHeader_button mx_RoomHeader_pinnedButton",onClick:this.props.onPinnedClick,title:Object(m.a)("Pinned Messages")},e)}this.props.onForgetClick&&(u=l.a.createElement(w.a,{className:"mx_RoomHeader_button mx_RoomHeader_forgetButton",onClick:this.props.onForgetClick,title:Object(m.a)("Forget room")})),this.props.onAppsClick&&(h=l.a.createElement(w.a,{className:p()("mx_RoomHeader_button mx_RoomHeader_appsButton",{mx_RoomHeader_appsButton_highlight:this.props.appsShown}),onClick:this.props.onAppsClick,title:this.props.appsShown?Object(m.a)("Hide Widgets"):Object(m.a)("Show Widgets")})),this.props.onSearchClick&&this.props.inRoom&&(f=l.a.createElement(w.a,{className:"mx_RoomHeader_button mx_RoomHeader_searchButton",onClick:this.props.onSearchClick,title:Object(m.a)("Search")})),this.props.inRoom&&b.b.getValue("showCallButtonsInComposer")&&(O=l.a.createElement(w.a,{className:"mx_RoomHeader_button mx_RoomHeader_voiceCallButton",onClick:()=>this.props.onCallPlaced(x.a.Voice),title:Object(m.a)("Voice call")}),k=l.a.createElement(w.a,{className:"mx_RoomHeader_button mx_RoomHeader_videoCallButton",onClick:e=>this.props.onCallPlaced(e.shiftKey?x.a.ScreenSharing:x.a.Video),title:Object(m.a)("Video call")}));const R=l.a.createElement("div",{className:"mx_RoomHeader_buttons"},k,O,n,u,h,f),D=this.props.e2eStatus?l.a.createElement(y.b,{status:this.props.e2eStatus}):void 0;return l.a.createElement("div",{className:"mx_RoomHeader light-panel"},l.a.createElement("div",{className:"mx_RoomHeader_wrapper","aria-owns":"mx_RightPanel"},l.a.createElement("div",{className:"mx_RoomHeader_avatar"},d),l.a.createElement("div",{className:"mx_RoomHeader_e2eIcon"},D),s,c,t,R,l.a.createElement(v.a,null)))}},s()(r,"propTypes",{room:u.a.object,oobData:u.a.object,inRoom:u.a.bool,onSettingsClick:u.a.func,onPinnedClick:u.a.func,onSearchClick:u.a.func,onLeaveClick:u.a.func,onCancelClick:u.a.func,e2eStatus:u.a.string,onAppsClick:u.a.func,appsShown:u.a.bool,onCallPlaced:u.a.func}),s()(r,"defaultProps",{editing:!1,inRoom:!1,onCancelClick:null}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return _}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(93),p=n(87),m=n(84),g=n(85);function f(e){const{onClick:t}=e;return l.a.createElement(h.a,{className:"mx_RoomHeader_cancelButton",onClick:t},l.a.createElement("img",{src:n(262),className:"mx_filterFlipColor",width:"18",height:"18",alt:Object(m.a)("Cancel")}))}let _=Object(g.a)("views.rooms.SimpleRoomHeader")((i=r=class extends l.a.Component{render(){let e,t;if(this.props.onCancelClick&&(e=l.a.createElement(f,{onClick:this.props.onCancelClick})),this.props.icon){const e=p.getComponent("elements.TintableSvg");t=l.a.createElement(e,{className:"mx_RoomHeader_icon",src:this.props.icon,width:"25",height:"25"})}return l.a.createElement("div",{className:"mx_RoomHeader"},l.a.createElement("div",{className:"mx_RoomHeader_wrapper"},l.a.createElement("div",{className:"mx_RoomHeader_simpleHeader"},t,this.props.title,e)))}},s()(r,"propTypes",{title:u.a.string,onCancelClick:u.a.func,icon:u.a.string}),o=i))||o},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o,r=n(83),i=n.n(r),a=n(82),s=n.n(a),c=n(84),l=n(483),d=n(484),u=n(118),h=n(96),p=n(260),m=n(85);const g=[u.c.RoomSummary,u.c.Widget,u.c.FilePanel,u.c.RoomMemberList,u.c.RoomMemberInfo,u.c.EncryptionPanel,u.c.Room3pidMemberInfo];let f=Object(m.a)("views.right_panel.RoomHeaderButtons")(o=class extends d.b{constructor(e){super(e,d.a.Room),i()(this,"onRoomSummaryClicked",()=>{const e=p.a.getSharedInstance().roomPanelPhase;g.includes(e)?this.state.phase===e?this.setPhase(e):this.setPhase(e,p.a.getSharedInstance().roomPanelPhaseParams):this.setPhase(u.c.RoomSummary)}),i()(this,"onNotificationsClicked",()=>{this.setPhase(u.c.NotificationPanel)})}onAction(e){e.action===h.a.ViewUser?e.member?this.setPhase(u.c.RoomMemberInfo,{member:e.member}):this.setPhase(u.c.RoomMemberList):"view_3pid_invite"===e.action&&(e.event?this.setPhase(u.c.Room3pidMemberInfo,{event:e.event}):this.setPhase(u.c.RoomMemberList))}renderButtons(){return[s.a.createElement(l.a,{key:"notifsButton",name:"notifsButton",title:Object(c.a)("Notifications"),isHighlighted:this.isPhase(u.c.NotificationPanel),onClick:this.onNotificationsClicked,analytics:["Right Panel","Notification List Button","click"]}),s.a.createElement(l.a,{key:"roomSummaryButton",name:"roomSummaryButton",title:Object(c.a)("Room Info"),isHighlighted:this.isPhase(g),onClick:this.onRoomSummaryClicked,analytics:["Right Panel","Room Summary Button","click"]})]}})||o},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(89),a=n(202);t.a=({roomWidth:e})=>{const t=Object(o.useRef)(null),s=Object(o.useRef)(new Map);return Object(o.useEffect)(()=>{const e=()=>{t.current&&(t.current.height=window.innerHeight)},o=i.a.register(e=>{if(0===e.action.indexOf("effects.")){(async e=>{if(!e)return null;let t=s.current[e]||null;if(null===t){var o;const r=null===(o=a.CHAT_EFFECTS.find(t=>t.command===e))||void 0===o?void 0:o.options;try{const{default:o}=await n(1339)("./"+e);t=new o(r),s.current[e]=t}catch(e){console.warn("Unable to load effect module at '../../../effects/${name}'.",e)}}return t})(e.action.substr("effects.".length)).then(e=>null==e?void 0:e.start(t.current))}});return t.current.height=window.innerHeight,window.addEventListener("resize",e,!0),()=>{i.a.unregister(o),window.removeEventListener("resize",e);const t=s.current;for(const e in t){const n=t[e];n&&n.isRunning&&n.stop()}}},[]),r.a.createElement("canvas",{ref:t,width:e,style:{display:"block",zIndex:999999,pointerEvents:"none",position:"fixed",top:0,right:0}})}},function(e,t,n){"use strict";n.d(t,"c",(function(){return A})),n.d(t,"a",(function(){return F}));var o=n(83),r=n.n(o),i=n(82),a=n.n(i),s=n(110),c=n(92),l=n.n(c),d=n(105),u=n(88),h=n(89),p=n(84),m=n(93),g=n(122),f=n(119),_=n(445),b=n(123),v=n(200),y=n(729),E=n(337),S=n(140),w=n(113),C=n(161),T=n(99),x=n(457),O=n(220),k=n(485);function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const I=({room:e,suggested:t,selected:n,hasPermissions:o,onToggleClick:r,onViewRoomClick:i,numChildRooms:c,children:d})=>{var h;const g=e.name||e.canonical_alias||(null===(h=e.aliases)||void 0===h?void 0:h[0])||(e.room_type===s.d.Space?Object(p.a)("Unnamed Space"):Object(p.a)("Unnamed Room")),[f,_]=Object(k.a)(!0),b=u.a.get().getRoom(e.room_id),v=()=>i(!1),y=()=>i(!0);let E,w,R;"join"===(null==b?void 0:b.getMyMembership())?E=a.a.createElement(m.a,{onClick:v,kind:"primary_outline"},Object(p.a)("View")):y&&(E=a.a.createElement(m.a,{onClick:y,kind:"primary"},Object(p.a)("Join"))),r&&(w=o?a.a.createElement(S.a,{checked:!!n,onChange:r}):a.a.createElement(O.a,{tooltip:Object(p.a)("You don't have permission"),onClick:e=>{e.stopPropagation()}},a.a.createElement(S.a,{disabled:!0}))),e.avatar_url&&(R=Object(T.b)(e.avatar_url).getSquareThumbnailHttp(Math.floor(20*window.devicePixelRatio)));let D,I=Object(p.a)("%(count)s members",{count:e.num_joined_members});c&&(I+=" · "+Object(p.a)("%(count)s rooms",{count:c})),e.topic&&(I+=" · "+e.topic),t&&(D=a.a.createElement(x.a,{tooltip:Object(p.a)("This room is suggested as a good one to join")},Object(p.a)("Suggested")));const A=a.a.createElement(a.a.Fragment,null,a.a.createElement(C.a,{name:g,idName:e.room_id,url:R,width:20,height:20}),a.a.createElement("div",{className:"mx_SpaceRoomDirectory_roomTile_name"},g,D),a.a.createElement("div",{className:"mx_SpaceRoomDirectory_roomTile_info"},I),a.a.createElement("div",{className:"mx_SpaceRoomDirectory_actions"},E,w));let N,F;return d&&(N=a.a.createElement("div",{className:l()("mx_SpaceRoomDirectory_subspace_toggle",{mx_SpaceRoomDirectory_subspace_toggle_shown:f}),onClick:e=>{e.stopPropagation(),_()}}),f&&(F=a.a.createElement("div",{className:"mx_SpaceRoomDirectory_subspace_children"},d))),a.a.createElement(a.a.Fragment,null,a.a.createElement(m.a,{className:l()("mx_SpaceRoomDirectory_roomTile",{mx_SpaceRoomDirectory_subspace:e.room_type===s.d.Space}),onClick:o&&r?r:v},A,N),F)},A=(e,t,n=!1)=>{if(u.a.get().isGuest()&&!e.world_readable&&!e.guest_can_join)return void h.a.dispatch({action:"require_registration"});const o=function(e){return e.canonical_alias||(e.aliases?e.aliases[0]:"")}(e)||void 0;h.a.dispatch({action:"view_room",auto_join:n,should_peek:!0,_type:"room_directory",room_alias:o,room_id:e.room_id,via_servers:t,oob_data:{avatarUrl:e.avatar_url,name:e.name||o||Object(p.a)("Unnamed room")}})},N=({spaceId:e,rooms:t,relations:n,parents:o,selectedMap:r,onViewRoomClick:i,onToggleClick:c})=>{var l;const h=u.a.get(),p=h.getRoom(e),m=null==p?void 0:p.currentState.maySendStateEvent(s.a.SpaceChild,h.getUserId()),g=Object(d.sortBy)([...(null===(l=n.get(e))||void 0===l?void 0:l.values())||[]],e=>e.content.order||null),[f,_]=g.reduce((e,n)=>{const o=n.state_key;return t.has(o)?(e[t.get(o).room_type===s.d.Space?0:1].push(o),e):e},[[],[]])||[[],[]],b=new Set(o).add(e);return a.a.createElement(a.a.Fragment,null,_.map(o=>{var s,l,d;return a.a.createElement(I,{key:o,room:t.get(o),suggested:null===(s=n.get(e))||void 0===s||null===(l=s.get(o))||void 0===l?void 0:l.content.suggested,selected:null==r||null===(d=r.get(e))||void 0===d?void 0:d.has(o),onViewRoomClick:e=>{i(o,e)},hasPermissions:m,onToggleClick:c?()=>c(e,o):void 0})}),f.filter(e=>!b.has(e)).map(o=>{var l,d,u,h;return a.a.createElement(I,{key:o,room:t.get(o),numChildRooms:Array.from((null===(l=n.get(o))||void 0===l?void 0:l.values())||[]).filter(e=>{var n;return(null===(n=t.get(e.state_key))||void 0===n?void 0:n.room_type)!==s.d.Space}).length,suggested:null===(d=n.get(e))||void 0===d||null===(u=d.get(o))||void 0===u?void 0:u.content.suggested,selected:null==r||null===(h=r.get(e))||void 0===h?void 0:h.has(o),onViewRoomClick:e=>{i(o,e)},hasPermissions:m,onToggleClick:c?()=>c(e,o):void 0},a.a.createElement(N,{spaceId:o,rooms:t,relations:n,parents:b,selectedMap:r,onViewRoomClick:i,onToggleClick:c}))}))},F=({space:e,initialText:t="",showRoom:n,refreshToken:o,children:r})=>{const c=u.a.get(),l=c.getUserId(),[d,h]=Object(i.useState)(t),[g,b]=Object(i.useState)(new Map),[v,S,C,T]=((e,t,n)=>Object(y.a)(async()=>{try{const n=await e.getSpaceSummary(t.roomId),o=new E.a,r=new E.a,i=new E.a;return n.events.map(e=>{if(e.type===s.a.SpaceChild&&(o.getOrCreate(e.room_id,new Map).set(e.state_key,e),r.getOrCreate(e.state_key,new Set).add(e.room_id)),Array.isArray(e.content.via)){const t=i.getOrCreate(e.state_key,new Set);e.content.via.forEach(e=>t.add(e))}}),[n.rooms,o,i,r]}catch(e){console.error(e)}return[]},[t,n],[]))(c,e,o),x=Object(i.useMemo)(()=>{if(!v)return null;const e=d.toLowerCase().trim(),t=new Map(v.map(e=>[e.room_id,e]));if(!e)return t;const n=v.filter(t=>{var n,o;return(null===(n=t.name)||void 0===n?void 0:n.toLowerCase().includes(e))||(null===(o=t.topic)||void 0===o?void 0:o.toLowerCase().includes(e))}),o=new Set,r=[...n.map(e=>e.room_id)];for(;r.length;){var i;const e=r.pop();o.add(e),null===(i=T.get(e))||void 0===i||i.forEach(e=>{o.has(e)||r.push(e)})}return Array.from(t.keys()).forEach(e=>{o.has(e)||t.delete(e)}),t},[v,T,d]),[O,k]=Object(i.useState)(""),[R,I]=Object(i.useState)(!1),[A,F]=Object(i.useState)(!1);let M;if(x){const t=Array.from(x.values()).filter(e=>e.room_type!==s.d.Space).length,o=x.size-t-1;let i,d,u;if(i=o>1?Object(p.a)("%(count)s rooms and %(numSpaces)s spaces",{count:t,numSpaces:o}):o>0?Object(p.a)("%(count)s rooms and 1 space",{count:t,numSpaces:o}):Object(p.a)("%(count)s rooms",{count:t,numSpaces:o}),"join"===e.getMyMembership()&&e.currentState.maySendStateEvent(s.a.SpaceChild,l)){const e=Array.from(g.keys()).flatMap(e=>[...g.get(e).values()].map(t=>[e,t]));let t;if(e.length){const n=e.every(([e,t])=>{var n,o;return null===(n=S.get(e))||void 0===n||null===(o=n.get(t))||void 0===o?void 0:o.content.suggested}),o=R||A;t=a.a.createElement(a.a.Fragment,null,a.a.createElement(m.a,{onClick:async()=>{I(!0);try{for(const[t,n]of e)await c.sendStateEvent(t,s.a.SpaceChild,{},n),S.get(t).get(n).content={},S.set(t,new Map(S.get(t)))}catch(e){k(Object(p.a)("Failed to remove some rooms. Try again later"))}I(!1)},kind:"danger_outline",disabled:o},R?Object(p.a)("Removing..."):Object(p.a)("Remove")),a.a.createElement(m.a,{onClick:async()=>{F(!0);try{for(const[r,i]of e){var t,o;const e=!n,a=null===(t=S.get(r))||void 0===t||null===(o=t.get(i))||void 0===o?void 0:o.content;if(!a||a.suggested===e)continue;const l=D(D({},a),{},{suggested:!n});await c.sendStateEvent(r,s.a.SpaceChild,l,i),S.get(r).get(i).content=l,S.set(r,new Map(S.get(r)))}}catch(e){k("Failed to update some suggestions. Try again later")}F(!1)},kind:"primary_outline",disabled:o},A?Object(p.a)("Saving..."):n?Object(p.a)("Mark as not suggested"):Object(p.a)("Mark as suggested")))}d=a.a.createElement("span",null,t)}if(x.size){const t=null==e?void 0:e.currentState.maySendStateEvent(s.a.SpaceChild,c.getUserId());u=a.a.createElement(a.a.Fragment,null,a.a.createElement(N,{spaceId:e.roomId,rooms:x,relations:S,parents:new Set,selectedMap:g,onToggleClick:t?(e,t)=>{if(k(""),!g.has(e))return void b(new Map(g.set(e,new Set([t]))));const n=g.get(e);n.has(t)?(n.delete(t),b(new Map(g.set(e,new Set(n))))):b(new Map(g.set(e,new Set([...n,t]))))}:void 0,onViewRoomClick:(e,t)=>{n(x.get(e),Array.from(C.get(e)||[]),t)}}),r&&a.a.createElement("hr",null))}else u=a.a.createElement("div",{className:"mx_SpaceRoomDirectory_noResults"},a.a.createElement("h3",null,Object(p.a)("No results found")),a.a.createElement("div",null,Object(p.a)("You may want to try a different search or check for typos.")));M=a.a.createElement(a.a.Fragment,null,a.a.createElement("div",{className:"mx_SpaceRoomDirectory_listHeader"},i,d),O&&a.a.createElement("div",{className:"mx_SpaceRoomDirectory_error"},O),a.a.createElement(w.a,{className:"mx_SpaceRoomDirectory_list"},u,r))}else M=v?a.a.createElement("p",null,Object(p.a)("Your server does not support showing space hierarchies.")):a.a.createElement(f.a,null);return a.a.createElement(a.a.Fragment,null,a.a.createElement(_.a,{className:"mx_textinput_icon mx_textinput_search",placeholder:Object(p.a)("Search names and description"),onSearch:h,autoFocus:!0,initialValue:t}),M)};t.b=({space:e,onFinished:t,initialText:n})=>{const o=()=>{h.a.dispatch({action:"view_create_room",public:!0}),t()},r=a.a.createElement(a.a.Fragment,null,a.a.createElement(b.a,{room:e,height:32,width:32}),a.a.createElement("div",null,a.a.createElement("h1",null,Object(p.a)("Explore rooms")),a.a.createElement("div",null,a.a.createElement(v.a,{room:e}))));return a.a.createElement(g.a,{className:"mx_SpaceRoomDirectory",hasCancel:!0,onFinished:t,title:r},a.a.createElement("div",{className:"mx_Dialog_content"},Object(p.a)("If you can't find the room you're looking for, ask for an invite or <a>create a new room</a>.",null,{a:e=>a.a.createElement(m.a,{kind:"link",onClick:o},e)}),a.a.createElement(F,{space:e,showRoom:(e,n,o=!1)=>{A(e,n,o),t()},initialText:n},a.a.createElement(m.a,{onClick:o,kind:"primary",className:"mx_SpaceRoomDirectory_createRoom"},Object(p.a)("Create room")))))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(82);const r=(e,t,n)=>{const[r,i]=Object(o.useState)(n);return Object(o.useEffect)(()=>{e().then(i)},t),r}},function(e,t,n){"use strict";var o=n(95),r=n.n(o),i=n(100),a=n.n(i),s=n(82),c=n.n(s),l=n(105),d=n(174),u=n(84),h=n(114),p=n(220),m=n(479);const g=5,f=e=>{var t;return!(null===(t=h.a.shared().getDMRoomsForUserId(e.userId))||void 0===t||!t.length)};t.a=e=>{let{room:t,onlyKnownUsers:n=!0,numShown:o=g}=e,i=a()(e,["room","onlyKnownUsers","numShown"]),s=Object(m.b)(t);const h=[e=>!!e.getMxcAvatarUrl()];if(n?s=s.filter(f):h.unshift(e=>f(e)),s.length<1)return null;const _=Object(l.sortBy)(s,h).slice(0,o);return c.a.createElement("div",r()({},i,{className:"mx_FacePile"}),c.a.createElement("div",{className:"mx_FacePile_faces"},_.map(e=>c.a.createElement(p.a,{key:e.userId,tooltip:e.name},c.a.createElement(d.a,{member:e,width:28,height:28})))),n&&c.a.createElement("span",null,Object(u.a)("%(count)s people you know have already joined",{count:s.length})))}},function(e,t){e.exports=/[:=](?:\'(?:\-[\(\)DO\[\]o\{\}]|[\(\)DO\[\]o\{\}])|\{>|\-[#\$&\(-\*\/3<>-@B-EJLOPSXZ-\]cjlopsxz-\}]|[#\$&\(-\*\/3<>-@B-EJLOPSXZ-\]cjlopsxz\|\}])|[Oo][:=](?:\-[\)\]\}]|[\)\]\}])|>(?:[:=](?:\-[\(\)\/\[-\]\{\}]|[\(\)\/\[-\]\{\}])|0(?:\-[\)\]\}]|[\)\]\}]))|%(?:\-[\(\[\{]|[\(\[\{])|\\[Mm]\/|D(?:\-[:=Xx]|[:=Xx])|8(?:\-[#\)D\]\}]|[#\)D\]\}])|;(?:\-[\)P\]p\}]|[\)P\]p\}])|x(?:\-[\(D\[op\{]|[\(D\[op\{])|X(?:\-[\(DOP\[\{]|[\(DOP\[\{])|<\/?3|[:=]\{/},function(e,t,n){"use strict";(function(e){var o=n(82),r=n.n(o),i=n(110),a=n(97),s=n(229),c=n(114),l=n(84),d=n(93),u=n(369),h=n(123),p=n(89),m=n(96),g=n(147),f=n(291);t.a=()=>{const t=Object(o.useContext)(a.a),{room:n,roomId:_}=Object(o.useContext)(s.a),b=c.a.shared().getUserIdForRoomId(_);let v;if(b){let e;n.getJoinedMemberCount()+n.getInvitedMemberCount()===2&&(e=Object(l.a)("Only the two of you are in this conversation, unless either of you invites anyone to join."));const t=null==n?void 0:n.getMember(b),o=(null==t?void 0:t.rawDisplayName)||b;v=r.a.createElement(r.a.Fragment,null,r.a.createElement(h.a,{room:n,width:u.a,height:u.a,onClick:()=>{p.a.dispatch({action:m.a.ViewUser,member:t||{userId:b}})}}),r.a.createElement("h2",null,n.name),r.a.createElement("p",null,Object(l.a)("This is the beginning of your direct message history with <displayName/>.",{},{displayName:()=>r.a.createElement("b",null,o)})),e&&r.a.createElement("p",null,e))}else{var y,E,S,w,C,T,x;const o=n&&"join"===n.getMyMembership(),a=null===(y=n.currentState.getStateEvents(i.a.RoomTopic,""))||void 0===y||null===(E=y.getContent())||void 0===E?void 0:E.topic,s=o&&n.currentState.maySendStateEvent(i.a.RoomTopic,t.getUserId()),c=()=>{p.a.dispatch({action:"open_room_settings",room_id:_},!0),e(()=>{window.document.getElementById("profileTopic").focus()})};let m;s&&a?m=Object(l.a)("Topic: %(topic)s (<a>edit</a>)",{topic:a},{a:e=>r.a.createElement(d.a,{kind:"link",onClick:c},e)}):a?m=Object(l.a)("Topic: %(topic)s ",{topic:a}):s&&(m=Object(l.a)("<a>Add a topic</a> to help people know what it is about.",{},{a:e=>r.a.createElement(d.a,{kind:"link",onClick:c},e)}));const b=null===(S=n.currentState.getStateEvents(i.a.RoomCreate,""))||void 0===S?void 0:S.getSender(),O=(null==n||null===(w=n.getMember(b))||void 0===w?void 0:w.rawDisplayName)||b;let k,R,D;k=b===t.getUserId()?Object(l.a)("You created this room."):Object(l.a)("%(displayName)s created this room.",{displayName:O}),null!==(C=g.e.instance.activeSpace)&&void 0!==C&&C.canInvite(t.getUserId())&&g.e.instance.getSpaceFilteredRoomIds(g.e.instance.activeSpace).has(n.roomId)&&(R=g.e.instance.activeSpace),R?D=r.a.createElement("div",{className:"mx_NewRoomIntro_buttons"},r.a.createElement(d.a,{className:"mx_NewRoomIntro_inviteButton",kind:"primary",onClick:()=>{Object(f.e)(R)}},Object(l.a)("Invite to %(spaceName)s",{spaceName:R.name})),n.canInvite(t.getUserId())&&r.a.createElement(d.a,{className:"mx_NewRoomIntro_inviteButton",kind:"primary_outline",onClick:()=>{p.a.dispatch({action:"view_invite",roomId:_})}},Object(l.a)("Invite to just this room"))):n.canInvite(t.getUserId())&&(D=r.a.createElement("div",{className:"mx_NewRoomIntro_buttons"},r.a.createElement(d.a,{className:"mx_NewRoomIntro_inviteButton",kind:"primary",onClick:()=>{p.a.dispatch({action:"view_invite",roomId:_})}},Object(l.a)("Invite to this room"))));const I=null===(T=n.currentState.getStateEvents(i.a.RoomAvatar,""))||void 0===T||null===(x=T.getContent())||void 0===x?void 0:x.url;v=r.a.createElement(r.a.Fragment,null,r.a.createElement(u.b,{hasAvatar:!!I,noAvatarLabel:Object(l.a)("Add a photo, so people can easily spot your room."),setAvatarUrl:e=>t.sendStateEvent(_,i.a.RoomAvatar,{url:e},"")},r.a.createElement(h.a,{room:n,width:u.a,height:u.a})),r.a.createElement("h2",null,n.name),r.a.createElement("p",null,k," ",Object(l.a)("This is the start of <roomName/>.",{},{roomName:()=>r.a.createElement("b",null,n.name)})),r.a.createElement("p",null,m),D)}return r.a.createElement("div",{className:"mx_NewRoomIntro"},v)}}).call(this,n(160).setImmediate)},function(e,t,n){"use strict";var o=n(82),r=n.n(o),i=n(139),a=n(157),s=n(506);t.a=({description:e,acceptLabel:t,dismissLabel:n,onAccept:o,onDismiss:c,toastKey:l,numSeconds:d})=>{const u=()=>{c&&c(),i.a.sharedInstance().dismissToast(l)},h=Object(s.a)(u,1e3,d);let p=n;return h>0&&(p+=` (${h})`),r.a.createElement(a.a,{description:e,acceptLabel:t,onAccept:o,rejectLabel:p,onReject:u})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var o=n(83),r=n.n(o),i=n(82),a=n.n(i),s=n(86),c=n.n(s),l=n(16),d=n.n(l),u=n(84),h=n(325),p=n.n(h),m=n(89),g=n(88),f=n(92),_=n.n(f),b=n(97),v=n(113);class y extends a.a.PureComponent{constructor(e,t){super(e,t),r()(this,"onAction",e=>{"client_started"===e.action&&this.forceUpdate()}),this._dispatcherRef=null,this.state={page:""}}translate(e){return p()(Object(u.a)(e))}componentDidMount(){this._unmounted=!1,this.props.url&&(d()({method:"GET",url:this.props.url},(e,t,n)=>{if(!this._unmounted){if(e||t.status<200||t.status>=300)return console.warn("Error loading page: "+e),void this.setState({page:Object(u.a)("Couldn't load page")});n=n.replace(/_t\(['"]([\s\S]*?)['"]\)/gm,(e,t)=>this.translate(t)),this.props.replaceMap&&Object.keys(this.props.replaceMap).forEach(e=>{n=n.split(e).join(this.props.replaceMap[e])}),this.setState({page:n})}}),this._dispatcherRef=m.a.register(this.onAction))}componentWillUnmount(){this._unmounted=!0,null!==this._dispatcherRef&&m.a.unregister(this._dispatcherRef)}render(){const e=this.context||g.a.get(),t=!e||e.isGuest(),n=this.props.className,o=_()({[n]:!0,[n+"_guest"]:t,[n+"_loggedIn"]:!!e}),r=a.a.createElement("div",{className:n+"_body",dangerouslySetInnerHTML:{__html:this.state.page}});return this.props.scrollbar?a.a.createElement(v.a,{className:o},r):a.a.createElement("div",{className:o},r)}}r()(y,"propTypes",{url:c.a.string,className:c.a.string,scrollbar:c.a.bool,replaceMap:c.a.object}),r()(y,"contextType",b.a)},function(e,t){e.exports="img/icons-create-room.817ede2.svg"},function(e,t){e.exports="img/cancel-small.495f44c.svg"},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return p}));var o=n(82),r=n.n(o),i=n(148),a=n.n(i),s=n(88),c=n(90),l=n(230),d=n(486),u=n(109);function h(e,t,n){const o=s.a.get().getRoom(t.getRoomId()),i=c.b.getValue("Pill.shouldShowPillAvatar");let p=e[0];for(;p;){let e=!1;if("A"===p.tagName&&p.getAttribute("href")){const t=p.getAttribute("href"),s=Object(u.i)(t);if(s&&!s.eventId){const s=document.createElement("span"),c=r.a.createElement(d.a,{url:t,inMessage:!0,room:o,shouldShowPillAvatar:i});a.a.render(c,s),p.parentNode.replaceChild(s,p),n.push(s),e=!0,p=s}}else if(p.nodeType===Node.TEXT_NODE&&!p.parentElement.classList.contains("mx_AtRoomPill")){let e=p;const c=[];for(;null!==e;){const t=d.a.roomNotifPos(e.textContent);let n=null;if(t>-1){let o=e;t>0&&(o=o.splitText(t)),o.textContent.length>d.a.roomNotifLen()&&(n=o.splitText(d.a.roomNotifLen())),c.push(o)}e=n}if(c.length>0){const e=new l.a(s.a.get()),u=e.getPushRuleById(".m.rule.roomnotif");if(u&&e.ruleMatchesEvent(u,t)){for(const e of c){p=e.nextSibling;const t=document.createElement("span"),s=r.a.createElement(d.a,{type:d.a.TYPE_AT_ROOM_MENTION,inMessage:!0,room:o,shouldShowPillAvatar:i});a.a.render(s,t),e.parentNode.replaceChild(t,e),n.push(t)}continue}}}p.childNodes&&p.childNodes.length&&!e&&h(p.childNodes,t,n),p=p.nextSibling}}function p(e){for(const t of e)a.a.unmountComponentAtNode(t)}},function(e,t,n){"use strict";var o=n(488),r=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},o=0;o<e.length;++o)void 0!==e[o]&&(n[o]=e[o]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var r=t[o],a=r.obj[r.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],d=a[l];"object"==typeof d&&null!==d&&-1===n.indexOf(d)&&(t.push({obj:a,prop:l}),n.push(d))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var o=[],r=0;r<n.length;++r)void 0!==n[r]&&o.push(n[r]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,n){var o=e.replace(/\+/g," ");if("iso-8859-1"===n)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(e){return o}},encode:function(e,t,n,r,i){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",l=0;l<s.length;++l){var d=s.charCodeAt(l);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===o.RFC1738&&(40===d||41===d)?c+=s.charAt(l):d<128?c+=a[d]:d<2048?c+=a[192|d>>6]+a[128|63&d]:d<55296||d>=57344?c+=a[224|d>>12]+a[128|d>>6&63]+a[128|63&d]:(l+=1,d=65536+((1023&d)<<10|1023&s.charCodeAt(l)),c+=a[240|d>>18]+a[128|d>>12&63]+a[128|d>>6&63]+a[128|63&d])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var n=[],o=0;o<e.length;o+=1)n.push(t(e[o]));return n}return t(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var a=t[i];a&&"object"==typeof a&&n&&"object"==typeof n?t[i]=e(a,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var a=n[i];return r.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t}),a)}}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return P}));var o=n(172),r=n(84),i=n(619),a=n(150),s=n(89);class c extends a.a{onChange(e,t,n){s.a.dispatch({action:"feature_custom_status_changed"})}}var l=n(442),d=n(88);class u extends a.a{constructor(e,t){super(),this.setter=e,this.inverse=t}onChange(e,t,n){this.setter.call(d.a.get(),this.inverse?!n:n)}}var h=n(107);class p extends a.a{onChange(e,t,n){h.a.get().reload()}}var m=n(96);class g extends a.a{constructor(){super()}onChange(e,t,n){s.a.dispatch({action:m.a.UpdateFontSize,size:n})}}var f=n(90);class _ extends a.a{constructor(){super()}onChange(e,t,n){s.a.dispatch({action:m.a.UpdateSystemFont,useSystemFont:f.b.getValue("useSystemFont"),font:n})}}class b extends a.a{constructor(){super()}onChange(e,t,n){s.a.dispatch({action:m.a.UpdateSystemFont,useSystemFont:n,font:f.b.getValue("systemFont")})}}var v=n(98),y=n(118),E=n(101);class S extends a.a{constructor(e,t=!1){super(),this.uiFeatureName=e,this.forcedValue=t}getValueOverride(e,t,n,o){return this.settingDisabled?this.forcedValue:null}get settingDisabled(){return!f.b.getValue(this.uiFeatureName)}}var w=n(106);class C extends a.a{constructor(e){super(),this.controllers=e}getValueOverride(e,t,n,o){for(const r of this.controllers){const i=r.getValueOverride(e,t,n,o);if(null!=i)return i}return null}onChange(e,t,n){for(const o of this.controllers)o.onChange(e,t,n)}get settingDisabled(){for(const e of this.controllers)if(e.settingDisabled)return!0;return!1}}var T=n(162);class x extends a.a{getValueOverride(e,t,n,o){return!this.prefersReducedMotion()&&null}get settingDisabled(){return this.prefersReducedMotion()}prefersReducedMotion(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}}class O extends a.a{constructor(e,t=!1){super(),this.settingName=e,this.forcedValue=t}getValueOverride(e,t,n,o){return this.incompatibleSettingEnabled?this.forcedValue:null}get incompatibleSettingEnabled(){return f.b.getValue(this.settingName)}}const k=[v.a.DEVICE,v.a.ROOM_DEVICE,v.a.ROOM_ACCOUNT,v.a.ACCOUNT,v.a.CONFIG],R=[v.a.ROOM_ACCOUNT,v.a.ACCOUNT],D=[v.a.DEVICE,v.a.ROOM_DEVICE,v.a.ROOM_ACCOUNT,v.a.ACCOUNT,v.a.CONFIG,v.a.ROOM],I=[v.a.DEVICE,v.a.ACCOUNT,v.a.CONFIG],A=[v.a.DEVICE,v.a.CONFIG],N=[v.a.DEVICE],F=[v.a.DEVICE,v.a.CONFIG],M=[v.a.CONFIG],P={feature_spaces:{isFeature:!0,displayName:Object(r.b)("Spaces prototype. Incompatible with Communities, Communities v2 and Custom Tags. Requires compatible homeserver for some features."),supportedLevels:A,default:!1,controller:new p},feature_dnd:{isFeature:!0,displayName:Object(r.b)("Show options to enable 'Do not disturb' mode"),supportedLevels:A,default:!1},feature_voice_messages:{isFeature:!0,displayName:Object(r.b)("Send and receive voice messages (in development)"),supportedLevels:A,default:!1},feature_latex_maths:{isFeature:!0,displayName:Object(r.b)("Render LaTeX maths in messages"),supportedLevels:A,default:!1},feature_communities_v2_prototypes:{isFeature:!0,displayName:Object(r.b)("Communities v2 prototypes. Requires compatible homeserver. Highly experimental - use with caution."),supportedLevels:A,default:!1,controller:new O("feature_spaces")},feature_new_spinner:{isFeature:!0,displayName:Object(r.b)("New spinner design"),supportedLevels:A,default:!1},feature_pinning:{isFeature:!0,displayName:Object(r.b)("Message Pinning"),supportedLevels:A,default:!1},feature_custom_status:{isFeature:!0,displayName:Object(r.b)("Custom user status messages"),supportedLevels:A,default:!1,controller:new c},feature_custom_tags:{isFeature:!0,displayName:Object(r.b)("Group & filter rooms by custom tags (refresh to apply changes)"),supportedLevels:A,default:!1,controller:new O("feature_spaces")},feature_state_counters:{isFeature:!0,displayName:Object(r.b)("Render simple counters in room header"),supportedLevels:A,default:!1},feature_many_integration_managers:{isFeature:!0,displayName:Object(r.b)("Multiple integration managers"),supportedLevels:A,default:!1},feature_mjolnir:{isFeature:!0,displayName:Object(r.b)("Try out new ways to ignore people (experimental)"),supportedLevels:A,default:!1},feature_custom_themes:{isFeature:!0,displayName:Object(r.b)("Support adding custom themes"),supportedLevels:A,default:!1},feature_roomlist_preview_reactions_dms:{isFeature:!0,displayName:Object(r.b)("Show message previews for reactions in DMs"),supportedLevels:A,default:!1,controller:new O("feature_roomlist_preview_reactions_all")},feature_roomlist_preview_reactions_all:{isFeature:!0,displayName:Object(r.b)("Show message previews for reactions in all rooms"),supportedLevels:A,default:!1},feature_dehydration:{isFeature:!0,displayName:Object(r.b)("Offline encrypted messaging using dehydrated devices"),supportedLevels:A,default:!1},advancedRoomListLogging:{displayName:Object(r.b)("Enable advanced debugging for the room list"),supportedLevels:N,default:!1},doNotDisturb:{supportedLevels:[v.a.DEVICE],default:!1},mjolnirRooms:{supportedLevels:[v.a.ACCOUNT],default:[]},mjolnirPersonalRoom:{supportedLevels:[v.a.ACCOUNT],default:null},feature_bridge_state:{isFeature:!0,supportedLevels:A,displayName:Object(r.b)("Show info about bridges in room settings"),default:!1},"RoomList.backgroundImage":{supportedLevels:I,default:null},baseFontSize:{displayName:Object(r.b)("Font size"),supportedLevels:I,default:10,controller:new g},useCustomFontSize:{displayName:Object(r.b)("Use custom size"),supportedLevels:I,default:!1},"MessageComposerInput.suggestEmoji":{supportedLevels:I,displayName:Object(r.b)("Enable Emoji suggestions while typing"),default:!0,invertedSettingName:"MessageComposerInput.dontSuggestEmoji"},"MessageComposerInput.showStickersButton":{supportedLevels:I,displayName:Object(r.b)("Show stickers button"),default:!0},"Notifications.alwaysShowBadgeCounts":{supportedLevels:R,default:!1},useCompactLayout:{supportedLevels:N,displayName:Object(r.b)("Use a more compact ‘Modern’ layout"),default:!1},showRedactions:{supportedLevels:D,displayName:Object(r.b)("Show a placeholder for removed messages"),default:!0,invertedSettingName:"hideRedactions"},showJoinLeaves:{supportedLevels:D,displayName:Object(r.b)("Show join/leave messages (invites/kicks/bans unaffected)"),default:!0,invertedSettingName:"hideJoinLeaves"},showAvatarChanges:{supportedLevels:D,displayName:Object(r.b)("Show avatar changes"),default:!0,invertedSettingName:"hideAvatarChanges"},showDisplaynameChanges:{supportedLevels:D,displayName:Object(r.b)("Show display name changes"),default:!0,invertedSettingName:"hideDisplaynameChanges"},showReadReceipts:{supportedLevels:k,displayName:Object(r.b)("Show read receipts sent by other users"),default:!0,invertedSettingName:"hideReadReceipts"},showTwelveHourTimestamps:{supportedLevels:I,displayName:Object(r.b)("Show timestamps in 12 hour format (e.g. 2:30pm)"),default:!1},alwaysShowTimestamps:{supportedLevels:I,displayName:Object(r.b)("Always show message timestamps"),default:!1},autoplayGifsAndVideos:{supportedLevels:I,displayName:Object(r.b)("Autoplay GIFs and videos"),default:!1},enableSyntaxHighlightLanguageDetection:{supportedLevels:I,displayName:Object(r.b)("Enable automatic language detection for syntax highlighting"),default:!1},expandCodeByDefault:{supportedLevels:I,displayName:Object(r.b)("Expand code blocks by default"),default:!1},showCodeLineNumbers:{supportedLevels:I,displayName:Object(r.b)("Show line numbers in code blocks"),default:!0},scrollToBottomOnMessageSent:{supportedLevels:I,displayName:Object(r.b)("Jump to the bottom of the timeline when you send a message"),default:!0},"Pill.shouldShowPillAvatar":{supportedLevels:I,displayName:Object(r.b)("Show avatars in user and room mentions"),default:!0,invertedSettingName:"Pill.shouldHidePillAvatar"},"TextualBody.enableBigEmoji":{supportedLevels:I,displayName:Object(r.b)("Enable big emoji in chat"),default:!0,invertedSettingName:"TextualBody.disableBigEmoji"},"MessageComposerInput.isRichTextEnabled":{supportedLevels:I,default:!1},"MessageComposer.showFormatting":{supportedLevels:I,default:!1},sendTypingNotifications:{supportedLevels:I,displayName:Object(r.b)("Send typing notifications"),default:!0,invertedSettingName:"dontSendTypingNotifications"},showTypingNotifications:{supportedLevels:I,displayName:Object(r.b)("Show typing notifications"),default:!0},ctrlFForSearch:{supportedLevels:I,displayName:E.b?Object(r.b)("Use Command + F to search"):Object(r.b)("Use Ctrl + F to search"),default:!1},"MessageComposerInput.ctrlEnterToSend":{supportedLevels:I,displayName:E.b?Object(r.b)("Use Command + Enter to send a message"):Object(r.b)("Use Ctrl + Enter to send a message"),default:!1},"MessageComposerInput.autoReplaceEmoji":{supportedLevels:I,displayName:Object(r.b)("Automatically replace plain text Emoji"),default:!1},"VideoView.flipVideoHorizontally":{supportedLevels:I,displayName:Object(r.b)("Mirror local video feed"),default:!1},"TagPanel.enableTagPanel":{supportedLevels:I,displayName:Object(r.b)("Enable Community Filter Panel"),default:!0,invertedSettingName:"TagPanel.disableTagPanel",controller:new S(w.a.Communities,!0)},theme:{supportedLevels:I,default:"light",controller:new l.a},custom_themes:{supportedLevels:I,default:[]},use_system_theme:{supportedLevels:N,default:!0,displayName:Object(r.b)("Match system theme")},useSystemFont:{supportedLevels:N,default:!1,displayName:Object(r.b)("Use a system font"),controller:new b},systemFont:{supportedLevels:N,default:"",displayName:Object(r.b)("System font name"),controller:new _},webRtcAllowPeerToPeer:{supportedLevels:F,displayName:Object(r.b)("Allow Peer-to-Peer for 1:1 calls"),default:!0,invertedSettingName:"webRtcForceTURN"},webrtc_audiooutput:{supportedLevels:N,default:null},webrtc_audioinput:{supportedLevels:N,default:null},webrtc_videoinput:{supportedLevels:N,default:null},language:{supportedLevels:F,default:"en"},breadcrumb_rooms:{supportedLevels:[v.a.ACCOUNT],default:[]},recent_emoji:{supportedLevels:[v.a.ACCOUNT],default:[]},room_directory_servers:{supportedLevels:[v.a.ACCOUNT],default:[]},integrationProvisioning:{supportedLevels:[v.a.ACCOUNT],default:!0},allowedWidgets:{supportedLevels:[v.a.ROOM_ACCOUNT,v.a.ROOM_DEVICE],supportedLevelsAreOrdered:!0,default:{}},analyticsOptIn:{supportedLevels:F,displayName:Object(r.b)("Send analytics data"),default:!1},showCookieBar:{supportedLevels:F,default:!0},autocompleteDelay:{supportedLevels:F,default:200},readMarkerInViewThresholdMs:{supportedLevels:F,default:3e3},readMarkerOutOfViewThresholdMs:{supportedLevels:F,default:3e4},blacklistUnverifiedDevices:{supportedLevels:[v.a.ROOM_DEVICE,v.a.DEVICE],supportedLevelsAreOrdered:!0,displayName:{default:Object(r.b)("Never send encrypted messages to unverified sessions from this session"),"room-device":Object(r.b)("Never send encrypted messages to unverified sessions in this room from this session")},default:!1,controller:new S(w.a.AdvancedEncryption)},urlPreviewsEnabled:{supportedLevels:D,displayName:{default:Object(r.b)("Enable inline URL previews by default"),"room-account":Object(r.b)("Enable URL previews for this room (only affects you)"),room:Object(r.b)("Enable URL previews by default for participants in this room")},default:!0,controller:new S(w.a.URLPreviews)},urlPreviewsEnabled_e2ee:{supportedLevels:[v.a.ROOM_DEVICE,v.a.ROOM_ACCOUNT],displayName:{"room-account":Object(r.b)("Enable URL previews for this room (only affects you)")},default:!1,controller:new S(w.a.URLPreviews)},roomColor:{supportedLevels:D,displayName:Object(r.b)("Room Colour"),default:{primary_color:null,secondary_color:null}},notificationsEnabled:{supportedLevels:N,default:!1,controller:new i.b},notificationSound:{supportedLevels:R,default:!1},notificationBodyEnabled:{supportedLevels:N,default:!0,controller:new i.a},audioNotificationsEnabled:{supportedLevels:N,default:!0},enableWidgetScreenshots:{supportedLevels:I,displayName:Object(r.b)("Enable widget screenshots on supported widgets"),default:!1},"PinnedEvents.isOpen":{supportedLevels:[v.a.ROOM_DEVICE],default:!1},promptBeforeInviteUnknownUsers:{supportedLevels:I,displayName:Object(r.b)("Prompt before sending invites to potentially invalid matrix IDs"),default:!0},showDeveloperTools:{supportedLevels:I,displayName:Object(r.b)("Show developer tools"),default:!1},widgetOpenIDPermissions:{supportedLevels:N,default:{allow:[],deny:[]}},"RoomList.orderAlphabetically":{supportedLevels:I,displayName:Object(r.b)("Order rooms by name"),default:!1},"RoomList.orderByImportance":{supportedLevels:I,displayName:Object(r.b)("Show rooms with unread notifications first"),default:!0},breadcrumbs:{supportedLevels:I,displayName:Object(r.b)("Show shortcuts to recently viewed rooms above the room list"),default:!0},showHiddenEventsInTimeline:{displayName:Object(r.b)("Show hidden events in timeline"),supportedLevels:N,default:!1},lowBandwidth:{supportedLevels:F,displayName:Object(r.b)("Low bandwidth mode"),default:!1,controller:new p},fallbackICEServerAllowed:{supportedLevels:N,displayName:Object(r.b)("Allow fallback call assist server turn.matrix.org when your homeserver does not offer one (your IP address would be shared during a call)"),default:null},showImages:{supportedLevels:I,displayName:Object(r.b)("Show previews/thumbnails for images"),default:!0},showRightPanelInRoom:{supportedLevels:N,default:!1},showRightPanelInGroup:{supportedLevels:N,default:!1},lastRightPanelPhaseForRoom:{supportedLevels:N,default:y.c.RoomSummary},lastRightPanelPhaseForGroup:{supportedLevels:N,default:y.c.GroupMemberList},enableEventIndexing:{supportedLevels:N,displayName:Object(r.b)("Enable message search in encrypted rooms"),default:!0},crawlerSleepTime:{supportedLevels:N,displayName:Object(r.b)("How fast should messages be downloaded."),default:3e3},showCallButtonsInComposer:{supportedLevels:F,default:!0,controller:new S(w.a.Voip)},"e2ee.manuallyVerifyAllSessions":{supportedLevels:N,displayName:Object(r.b)("Manually verify all remote sessions"),default:!1,controller:new C([new S(w.a.AdvancedEncryption),new u(o.b.prototype.setCryptoTrustCrossSignedDevices,!0)])},ircDisplayNameWidth:{supportedLevels:[v.a.ROOM_DEVICE,v.a.DEVICE],supportedLevelsAreOrdered:!0,displayName:Object(r.b)("IRC display name width"),default:80},layout:{supportedLevels:I,default:T.a.Group},showChatEffects:{supportedLevels:I,displayName:Object(r.b)("Show chat effects (animations when receiving e.g. confetti)"),default:!0,controller:new x},"Widgets.pinned":{supportedLevels:R,default:{}},"Widgets.layout":{supportedLevels:R,default:{}},"Widgets.leftPanel":{supportedLevels:I,default:null},[w.a.RoomHistorySettings]:{supportedLevels:M,default:!0},[w.a.AdvancedEncryption]:{supportedLevels:M,default:!0},[w.a.URLPreviews]:{supportedLevels:M,default:!0},[w.a.Widgets]:{supportedLevels:M,default:!0},[w.a.Voip]:{supportedLevels:M,default:!0},[w.a.Feedback]:{supportedLevels:M,default:!0},[w.a.Registration]:{supportedLevels:M,default:!0},[w.a.PasswordReset]:{supportedLevels:M,default:!0},[w.a.Deactivate]:{supportedLevels:M,default:!0},[w.a.ShareQRCode]:{supportedLevels:M,default:!0},[w.a.ShareSocial]:{supportedLevels:M,default:!0},[w.a.IdentityServer]:{supportedLevels:M,default:!0,controller:new S(w.a.ThirdPartyID)},[w.a.ThirdPartyID]:{supportedLevels:M,default:!0},[w.a.Flair]:{supportedLevels:M,default:!0,controller:new S(w.a.Communities)},[w.a.Communities]:{supportedLevels:M,default:!0,controller:new O("feature_spaces")},[w.a.AdvancedSettings]:{supportedLevels:M,default:!0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return Re})),n.d(t,"b",(function(){return De}));var o=n(95),r=n.n(o),i=n(83),a=n.n(i),s=n(82),c=n.n(s),l=n(146),d=n(212),u=n(153),h=(n(1274),n(1275),n(120)),p=n(108);function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}class f{constructor(e,t){this.failedEventId=e,this.errorCode=t,this.ts=Date.now()}}class _{constructor(e,t){if(a()(this,"failures",[]),a()(this,"failureCounts",{}),a()(this,"trackedEventHashMap",{}),a()(this,"checkInterval",null),a()(this,"trackInterval",null),!e||"function"!=typeof e)throw new Error("DecryptionFailureTracker requires tracking function");if(t&&"function"!=typeof t)throw new Error("DecryptionFailureTracker second constructor argument should be a function");this._trackDecryptionFailure=e,this._mapErrorCode=t}eventDecrypted(e,t){t?this.addDecryptionFailure(new f(e.getId(),t.code)):this.removeDecryptionFailuresForEvent(e)}addDecryptionFailure(e){this.failures.push(e)}removeDecryptionFailuresForEvent(e){this.failures=this.failures.filter(t=>t.failedEventId!==e.getId())}start(){this.checkInterval=setInterval(()=>this.checkFailures(Date.now()),_.CHECK_INTERVAL_MS),this.trackInterval=setInterval(()=>this.trackFailures(),_.TRACK_INTERVAL_MS)}stop(){clearInterval(this.checkInterval),clearInterval(this.trackInterval),this.failures=[],this.failureCounts={}}checkFailures(e){const t=[],n=[];for(;this.failures.length>0;){const o=this.failures.shift();e>o.ts+_.GRACE_PERIOD_MS?t.push(o):n.push(o)}this.failures=n;const o=t.reduce((e,t)=>this.trackedEventHashMap[t.failedEventId]?e:e.set(t.failedEventId,t),new Map),r=[...o.keys()];this.trackedEventHashMap=r.reduce((e,t)=>g(g({},e),{},{[t]:!0}),this.trackedEventHashMap);const i=o.values();this._aggregateFailures(i)}_aggregateFailures(e){for(const t of e){const e=t.errorCode;this.failureCounts[e]=(this.failureCounts[e]||0)+1}}trackFailures(){for(const e of Object.keys(this.failureCounts))if(this.failureCounts[e]>0){const t=this._mapErrorCode?this._mapErrorCode(e):e;this._trackDecryptionFailure(this.failureCounts[e],t),this.failureCounts[e]=0}}}a()(_,"TRACK_INTERVAL_MS",6e4),a()(_,"CHECK_INTERVAL_MS",5e3),a()(_,"GRACE_PERIOD_MS",6e4);var b=n(88),v=n(107),y=n(94),E=n(89),S=n(251),w=n(91),C=n(343),T=n(87),x=n(145),O=n(247),k=n(402),R=n(295),D=n(306);const I={deferred_action:null};class A extends D.Store{constructor(){super(E.a),this._state=I}_setState(e){this._state=Object.assign(this._state,e),this.__emitChange()}__onDispatch(e){switch(e.action){case"do_after_sync_prepared":this._setState({deferred_action:e.deferred_action});break;case"cancel_after_sync_prepared":this._setState({deferred_action:null});break;case"sync_state":{if("PREPARED"!==e.state)break;if(!this._state.deferred_action)break;const t=Object.assign({},this._state.deferred_action);this._setState({deferred_action:null}),E.a.dispatch(t);break}case"on_client_not_viable":case"on_logged_out":this.reset()}}reset(){this._state=Object.assign({},I)}}let N=null;N||(N=new A);var F=n(656),M=n(136),P=n(84),L=n(90),j=n(442),U=n(657),B=n(297),q=n(658),G=n(264),V=n(114),H=n(344),z=n(659),K=n(512),W=n(125),Y=n(139),$=n(348),Q=n(96),J=n(93),X=n(157);const Z=()=>{E.a.dispatch({action:"accept_cookies"})},ee=()=>{E.a.dispatch({action:"reject_cookies"})},te=()=>{h.a.showDetailsModal()},ne=()=>{Y.a.sharedInstance().dismissToast("analytics")};var oe=n(439),re=n(130),ie=n(166),ae=n(98),se=n(192),ce=n(660),le=n(661),de=n(106),ue=n(164),he=n(662);const pe=()=>{window.location.href="mobile_guide/"},me=()=>{document.cookie="element_mobile_redirect_to_guide=false;path=/;max-age=14400",ge()},ge=()=>{Y.a.sharedInstance().dismissToast("mobileguide")};var fe,_e,be,ve=n(366),ye=n(147),Ee=n(85),Se=n(144),we=n(124),Ce=n(221);function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}let xe;!function(e){e[e.LOADING=0]="LOADING",e[e.WELCOME=1]="WELCOME",e[e.LOGIN=2]="LOGIN",e[e.REGISTER=3]="REGISTER",e[e.FORGOT_PASSWORD=4]="FORGOT_PASSWORD",e[e.COMPLETE_SECURITY=5]="COMPLETE_SECURITY",e[e.E2E_SETUP=6]="E2E_SETUP",e[e.LOGGED_IN=7]="LOGGED_IN",e[e.SOFT_LOGOUT=8]="SOFT_LOGOUT"}(xe||(xe={}));const Oe=["register","login","forgot_password","start_sso","start_cas"],ke=[Q.a.ViewUserSettings,"view_create_chat","view_create_room","view_create_group"];let Re=Object(Ee.a)("structures.MatrixChat")((be=_e=class extends c.a.PureComponent{constructor(e,t){if(super(e,t),a()(this,"firstSyncComplete",void 0),a()(this,"firstSyncPromise",void 0),a()(this,"screenAfterLogin",void 0),a()(this,"windowWidth",void 0),a()(this,"pageChanging",void 0),a()(this,"tokenLogin",void 0),a()(this,"accountPassword",void 0),a()(this,"accountPasswordTimer",void 0),a()(this,"focusComposer",void 0),a()(this,"subTitleStatus",void 0),a()(this,"loggedInView",void 0),a()(this,"dispatcherRef",void 0),a()(this,"themeWatcher",void 0),a()(this,"fontWatcher",void 0),a()(this,"onAction",e=>{const t=T.getComponent("dialogs.QuestionDialog");if(b.a.get()&&b.a.get().isGuest()&&ke.includes(e.action))return E.a.dispatch({action:"do_after_sync_prepared",deferred_action:e}),void E.a.dispatch({action:"require_registration"});switch(e.action){case"MatrixActions.accountData":if("m.identity_server"===e.event_type){const t=e.event_content?e.event_content.base_url:null;t?(b.a.get().setIdentityServerUrl(t),localStorage.removeItem("mx_is_access_token"),localStorage.setItem("mx_is_url",t)):(b.a.get().setIdentityServerUrl(null),localStorage.removeItem("mx_is_access_token"),localStorage.removeItem("mx_is_url")),E.a.dispatch({action:"id_server_changed"})}break;case"logout":E.a.dispatch({action:"hangup_all"}),R.i();break;case"require_registration":Object(U.b)(e);break;case"start_registration":if(R.g()){this.onSoftLogout();break}e.screenAfterLogin&&(this.screenAfterLogin=e.screenAfterLogin),this.startRegistration(e.params||{});break;case"start_login":if(R.g()){this.onSoftLogout();break}e.screenAfterLogin&&(this.screenAfterLogin=e.screenAfterLogin),this.viewLogin();break;case"start_password_recovery":this.setStateForNewView({view:xe.FORGOT_PASSWORD}),this.notifyNewScreen("forgot_password");break;case"start_chat":Object(M.c)({dmUserId:e.user_id});break;case"leave_room":this.leaveRoom(e.room_id);break;case"forget_room":this.forgetRoom(e.room_id);break;case"reject_invite":w.a.createTrackedDialog("Reject invitation","",t,{title:Object(P.a)("Reject invitation"),description:Object(P.a)("Are you sure you want to reject the invitation?"),onFinished:t=>{if(t){const t=T.getComponent("elements.Spinner"),n=w.a.createDialog(t,null,"mx_Dialog_spinner");b.a.get().leave(e.room_id).then(()=>{n.close(),this.state.currentRoomId===e.room_id&&E.a.dispatch({action:"view_home_page"})},e=>{n.close(),w.a.createTrackedDialog("Failed to reject invitation","",re.a,{title:Object(P.a)("Failed to reject invitation"),description:e.toString()})})}}});break;case"view_user_info":this.viewUser(e.userId,e.subAction);break;case"view_room":{const t=this.viewRoom(e);e.deferred_action&&t.then(()=>{E.a.dispatch(e.deferred_action)});break}case Q.a.ViewUserSettings:{const t=e,n=T.getComponent("dialogs.UserSettingsDialog");w.a.createTrackedDialog("User settings","",n,{initialTabId:t.initialTabId},null,!1,!0),this.viewSomethingBehindModal();break}case"view_create_room":this.createRoom(e.public);break;case"view_create_group":{let e=T.getComponent("dialogs.CreateGroupDialog");L.b.getValue("feature_communities_v2_prototypes")&&(e=ce.a),w.a.createTrackedDialog("Create Community","",e);break}case Q.a.ViewRoomDirectory:if(ye.e.instance.activeSpace)E.a.dispatch({action:"view_room",room_id:ye.e.instance.activeSpace.roomId});else{const t=T.getComponent("structures.RoomDirectory");w.a.createTrackedDialog("Room directory","",t,{initialText:e.initialText},"mx_RoomDirectory_dialogWrapper",!1,!0)}this.viewSomethingBehindModal();break;case"view_my_groups":this.setPage(F.a.MyGroups),this.notifyNewScreen("groups");break;case"view_group":this.viewGroup(e);break;case"view_welcome_page":this.viewWelcome();break;case"view_home_page":this.viewHome(e.justRegistered);break;case"view_start_chat_or_reuse":this.chatCreateOrReuse(e.user_id);break;case"view_create_chat":Object(x.h)(e.initialText||"");break;case"view_invite":Object(x.g)(e.roomId);break;case"view_last_screen":this.showScreenAfterLogin();break;case"toggle_my_groups":this.state.page_type===F.a.MyGroups?E.a.dispatch({action:"view_last_screen"}):E.a.dispatch({action:"view_my_groups"});break;case"hide_left_panel":this.setState({collapseLhs:!0},()=>{this.state.resizeNotifier.notifyLeftHandleResized()});break;case"focus_room_filter":case"show_left_panel":this.setState({collapseLhs:!1},()=>{this.state.resizeNotifier.notifyLeftHandleResized()});break;case Q.a.OpenDialPad:w.a.createTrackedDialog("Dial pad","",he.a,{},"mx_Dialog_dialPadWrapper");break;case"on_logged_in":this.tokenLogin||R.g()||this.state.view===xe.LOGIN||this.state.view===xe.REGISTER||this.state.view===xe.COMPLETE_SECURITY||this.state.view===xe.E2E_SETUP||this.onLoggedIn();break;case"on_client_not_viable":this.onSoftLogout();break;case"on_logged_out":this.onLoggedOut();break;case"will_start_client":this.setState({ready:!1},()=>{this.onWillStartClient()});break;case"client_started":this.onClientStarted();break;case"send_event":this.onSendEvent(e.room_id,e.event);break;case"aria_hide_main_app":this.setState({hideToSRUsers:!0});break;case"aria_unhide_main_app":this.setState({hideToSRUsers:!1});break;case"accept_cookies":L.b.setValue("analyticsOptIn",null,ae.a.DEVICE,!0),L.b.setValue("showCookieBar",null,ae.a.DEVICE,!1),ne(),h.a.canEnable()&&h.a.enable(),p.a.instance.canEnable()&&p.a.instance.enable(!1);break;case"reject_cookies":L.b.setValue("analyticsOptIn",null,ae.a.DEVICE,!1),L.b.setValue("showCookieBar",null,ae.a.DEVICE,!1),ne()}}),a()(this,"handleResize",()=>{this.windowWidth>1e3&&window.innerWidth<=1e3&&E.a.dispatch({action:"hide_left_panel"}),this.windowWidth<=1e3&&window.innerWidth>1e3&&E.a.dispatch({action:"show_left_panel"}),this.state.resizeNotifier.notifyWindowResized(),this.windowWidth=window.innerWidth}),a()(this,"onRegisterClick",()=>{this.showScreen("register")}),a()(this,"onLoginClick",()=>{this.showScreen("login")}),a()(this,"onForgotPasswordClick",()=>{this.showScreen("forgot_password")}),a()(this,"onRegisterFlowComplete",(e,t)=>this.onUserCompletedLoginFlow(e,t)),a()(this,"onServerConfigChange",e=>{this.setState({serverConfig:e})}),a()(this,"makeRegistrationUrl",e=>(this.props.startingFragmentQueryParams.referrer&&(e.referrer=this.props.startingFragmentQueryParams.referrer),this.props.makeRegistrationUrl(e))),a()(this,"onUserCompletedLoginFlow",async(e,t)=>{this.accountPassword=t,null!==this.accountPasswordTimer&&clearTimeout(this.accountPasswordTimer),this.accountPasswordTimer=setTimeout(()=>{this.accountPassword=null,this.accountPasswordTimer=null},3e5),await R.l(e),await this.postLoginSetup()}),a()(this,"onCompleteSecurityE2eSetupFinished",()=>{this.onLoggedIn()}),this.state={view:xe.LOADING,collapseLhs:!1,hideToSRUsers:!1,syncError:null,resizeNotifier:new q.a,ready:!1},this.loggedInView=Object(s.createRef)(),y.a.put(this.props.config),this.firstSyncComplete=!1,this.firstSyncPromise=Object(W.b)(),this.props.config.sync_timeline_limit&&(b.a.opts.initialSyncLimit=this.props.config.sync_timeline_limit),this.screenAfterLogin=this.props.initialScreenAfterLogin,this.screenAfterLogin){const e=this.screenAfterLogin.params||{};if(this.screenAfterLogin.screen.startsWith("room/")&&e.signurl&&e.email){const t=this.screenAfterLogin.screen.substring("room/".length);le.a.instance.storeInvite(t,e)}}this.windowWidth=1e4,this.handleResize(),window.addEventListener("resize",this.handleResize),this.pageChanging=!1,C.a.tint(),this.state.resizeNotifier.on("middlePanelResized",this.dispatchTimelineResize),R.g()&&R.h(),this.accountPassword=null,this.accountPasswordTimer=null,this.dispatcherRef=E.a.register(this.onAction),this.themeWatcher=new H.a,this.fontWatcher=new z.a,this.themeWatcher.start(),this.fontWatcher.start(),this.focusComposer=!1,this.subTitleStatus="",this.onAliasClick&&(k.a.onAliasClick=this.onAliasClick),this.onUserClick&&(k.a.onUserClick=this.onUserClick),this.onGroupClick&&(k.a.onGroupClick=this.onGroupClick),R.g()||R.a(this.props.realQueryParams,this.props.defaultDeviceDisplayName,this.getFragmentAfterLogin()).then(async e=>{var t;if(null!==(t=this.props.realQueryParams)&&void 0!==t&&t.loginToken&&this.props.onTokenLoginCompleted(),e)return this.tokenLogin=!0,await R.k({ignoreGuest:!0}),this.postLoginSetup();const n=this.screenAfterLogin?this.screenAfterLogin.screen:null;if("login"!==n&&"register"!==n&&"forgot_password"!==n)return this.loadSession();this.showScreenAfterLogin()}),L.b.getValue("analyticsOptIn")&&h.a.enable(),p.a.instance.enable(!0)}async postLoginSetup(){const e=b.a.get(),t=e.isCryptoEnabled();t||this.onLoggedIn();const n=[this.firstSyncPromise.promise];if(t&&n.push(e.downloadKeys([e.getUserId()])),this.setState({pendingInitialSync:!0}),await Promise.all(n),!t)return void this.setState({pendingInitialSync:!1});e.getStoredCrossSigningForUser(e.getUserId())?!1===Ce.a.SHOW_ENCRYPTION_SETUP_UI?this.onLoggedIn():this.setStateForNewView({view:xe.COMPLETE_SECURITY}):await e.doesServerSupportUnstableFeature("org.matrix.e2e_cross_signing")?this.setStateForNewView({view:xe.E2E_SETUP}):this.onLoggedIn(),this.setState({pendingInitialSync:!1})}UNSAFE_componentWillUpdate(e,t){this.shouldTrackPageChange(this.state,t)&&this.startPageChangeTimer()}componentDidUpdate(e,t){if(this.shouldTrackPageChange(t,this.state)){const e=this.stopPageChangeTimer();h.a.trackPageChange(e),p.a.instance.trackPageChange(e)}this.focusComposer&&(E.a.fire(Q.a.FocusComposer),this.focusComposer=!1)}componentWillUnmount(){R.n(),E.a.unregister(this.dispatcherRef),this.themeWatcher.stop(),this.fontWatcher.stop(),window.removeEventListener("resize",this.handleResize),this.state.resizeNotifier.removeListener("middlePanelResized",this.dispatchTimelineResize),null!==this.accountPasswordTimer&&clearTimeout(this.accountPasswordTimer)}getFallbackHsUrl(){return this.props.serverConfig&&this.props.serverConfig.isDefault?this.props.config.fallback_hs_url:null}getServerProperties(){let e=this.state.serverConfig;return e||(e=this.props.serverConfig),e||(e=y.a.get().validated_server_config),{serverConfig:e}}loadSession(){return Promise.resolve().then(()=>R.h({fragmentQueryParams:this.props.startingFragmentQueryParams,enableGuest:this.props.enableGuest,guestHsUrl:this.getServerProperties().serverConfig.hsUrl,guestIsUrl:this.getServerProperties().serverConfig.isUrl,defaultDeviceDisplayName:this.props.defaultDeviceDisplayName})).then(e=>{e?L.b.getValue("analyticsOptIn")&&p.a.instance.enable(!1):le.a.instance.pickBestInvite()?E.a.dispatch({action:"start_registration"}):E.a.dispatch({action:"view_welcome_page"})})}startPageChangeTimer(){if(!performance||!performance.mark)return null;this.pageChanging?console.warn("MatrixChat.startPageChangeTimer: timer already started"):(this.pageChanging=!0,performance.mark("element_MatrixChat_page_change_start"))}stopPageChangeTimer(){if(!performance||!performance.mark)return null;if(!this.pageChanging)return void console.warn("MatrixChat.stopPageChangeTimer: timer not started");this.pageChanging=!1,performance.mark("element_MatrixChat_page_change_stop"),performance.measure("element_MatrixChat_page_change_delta","element_MatrixChat_page_change_start","element_MatrixChat_page_change_stop"),performance.clearMarks("element_MatrixChat_page_change_start"),performance.clearMarks("element_MatrixChat_page_change_stop");const e=performance.getEntriesByName("element_MatrixChat_page_change_delta").pop();return e?e.duration:null}shouldTrackPageChange(e,t){return e.currentRoomId!==t.currentRoomId||e.view!==t.view||e.page_type!==t.page_type}setStateForNewView(e){if(void 0===e.view)throw new Error("setStateForNewView with no view!");const t={currentUserId:null,justRegistered:!1};Object.assign(t,e),this.setState(t)}setPage(e){this.setState({page_type:e})}async startRegistration(e){const t={view:xe.REGISTER};e.client_secret&&e.session_id&&e.hs_url&&e.is_url&&e.sid&&(t.serverConfig=await G.b.validateServerConfigWithStaticUrls(e.hs_url,e.is_url),t.register_client_secret=e.client_secret,t.register_session_id=e.session_id,t.register_id_sid=e.sid),this.setStateForNewView(t),j.a.isLogin=!0,this.themeWatcher.recheck(),this.notifyNewScreen("register")}viewRoom(e){this.focusComposer=!0,e.room_alias?console.log(`Switching to room alias ${e.room_alias} at event `+e.event_id):console.log(`Switching to room id ${e.room_id} at event `+e.event_id);let t=Promise.resolve(null);if(!this.firstSyncComplete){if(!this.firstSyncPromise)return void console.warn("Cannot view a room before first sync. room_id:",e.room_id);t=this.firstSyncPromise.promise}return t.then(()=>{let t=e.room_alias||e.room_id;const n=b.a.get().getRoom(e.room_id);if(n){const e=O.a(n);e&&(t=e,Object(K.b)(e,n.roomId)),localStorage&&localStorage.setItem("mx_last_room_id",n.roomId)}const o="#"===t[0]&&e.room_id===this.state.currentRoomId;e.event_id&&e.highlighted&&(t+="/"+e.event_id),this.setState({view:xe.LOGGED_IN,currentRoomId:e.room_id||null,page_type:F.a.RoomView,threepidInvite:e.threepid_invite,roomOobData:e.oob_data,ready:!0,roomJustCreatedOpts:e.justCreatedOpts},()=>{this.notifyNewScreen("room/"+t,o)})})}async viewGroup(e){const t=e.group_id;if(!this.firstSyncComplete){if(!this.firstSyncPromise)return void console.warn("Cannot view a group before first sync. group_id:",t);await this.firstSyncPromise.promise}this.setState({view:xe.LOGGED_IN,currentGroupId:t,currentGroupIsNew:e.group_is_new}),this.setPage(F.a.GroupView),this.notifyNewScreen("group/"+t)}viewSomethingBehindModal(){this.state.view===xe.LOGGED_IN?this.state.currentGroupId||this.state.currentRoomId||this.viewHome():this.viewWelcome()}viewWelcome(){if(Object(ve.b)(y.a.get()))return this.viewLogin();this.setStateForNewView({view:xe.WELCOME}),this.notifyNewScreen("welcome"),j.a.isLogin=!0,this.themeWatcher.recheck()}viewLogin(e){this.setStateForNewView(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({view:xe.LOGIN},e)),this.notifyNewScreen("login"),j.a.isLogin=!0,this.themeWatcher.recheck()}viewHome(e=!1){this.setStateForNewView({view:xe.LOGGED_IN,justRegistered:e}),this.setPage(F.a.HomePage),this.notifyNewScreen("home"),j.a.isLogin=!1,this.themeWatcher.recheck()}viewUser(e,t){(this.firstSyncPromise?this.firstSyncPromise.promise:Promise.resolve()).then(()=>{"chat"!==t?(this.notifyNewScreen("user/"+e),this.setState({currentUserId:e}),this.setPage(F.a.UserView)):this.chatCreateOrReuse(e)})}async createRoom(e=!1){const t=ue.a.instance.getSelectedCommunityId();if(t&&!ue.a.instance.isAdminOf(t))return void w.a.createTrackedDialog("Pre-failure to create room","",re.a,{title:Object(P.a)("Cannot create rooms in this community"),description:Object(P.a)("You do not have permission to create rooms in this community.")});const n=T.getComponent("dialogs.CreateRoomDialog"),o=w.a.createTrackedDialog("Create Room","",n,{defaultPublic:e}),[r,i]=await o.finished;r&&Object(M.c)(i)}chatCreateOrReuse(e){if(b.a.get().isGuest())return e!==this.props.config.welcomeUserId&&E.a.dispatch({action:"do_after_sync_prepared",deferred_action:{action:"view_start_chat_or_reuse",user_id:e}}),void E.a.dispatch({action:"require_registration",go_welcome_on_cancel:!0,screen_after:{screen:"user/"+this.props.config.welcomeUserId,params:{action:"chat"}}});const t=b.a.get(),n=new V.a(t).getDMRoomsForUserId(e);n.length>0?E.a.dispatch({action:"view_room",room_id:n[0]}):E.a.dispatch({action:"start_chat",user_id:e})}leaveRoomWarnings(e){const t=b.a.get().getRoom(e),n=null==t?void 0:t.isSpaceRoom(),o=[];if(1===t.currentState.getJoinedMemberCount())return o.push(c.a.createElement("span",{className:"warning",key:"only_member_warning"}," ",Object(P.a)("You are the only person here. If you leave, no one will be able to join in the future, including you."))),o;const r=t.currentState.getStateEvents("m.room.join_rules","");if(r){"public"!==r.getContent().join_rule&&o.push(c.a.createElement("span",{className:"warning",key:"non_public_warning"}," ",n?Object(P.a)("This space is not public. You will not be able to rejoin without an invite."):Object(P.a)("This room is not public. You will not be able to rejoin without an invite.")))}return o}leaveRoom(e){const t=T.getComponent("dialogs.QuestionDialog"),n=b.a.get().getRoom(e),o=this.leaveRoomWarnings(e),r=null==n?void 0:n.isSpaceRoom();w.a.createTrackedDialog(r?"Leave space":"Leave room","",t,{title:r?Object(P.a)("Leave space"):Object(P.a)("Leave room"),description:c.a.createElement("span",null,r?Object(P.a)("Are you sure you want to leave the space '%(spaceName)s'?",{spaceName:n.name}):Object(P.a)("Are you sure you want to leave the room '%(roomName)s'?",{roomName:n.name}),o),button:Object(P.a)("Leave"),onFinished:t=>{if(t){const t=Object(se.d)(e),n=T.getComponent("elements.Spinner"),o=w.a.createDialog(n,null,"mx_Dialog_spinner");t.finally(()=>o.close()),E.a.dispatch({action:"after_leave_room",room_id:e})}}})}forgetRoom(e){const t=b.a.get().getRoom(e);b.a.get().forget(e).then(()=>{this.state.currentRoomId===e&&E.a.dispatch({action:"view_home_page"}),Se.b.instance.manualRoomUpdate(t,we.c.RoomRemoved)}).catch(e=>{const t=e.errcode||Object(P.b)("unknown error code");w.a.createTrackedDialog("Failed to forget room","",re.a,{title:Object(P.a)("Failed to forget room %(errCode)s",{errCode:t}),description:e&&e.message?e.message:Object(P.a)("Operation failed")})})}async startWelcomeUserChat(){let e;e=this.firstSyncComplete?Promise.resolve():this.firstSyncPromise.promise,await e;if(0===V.a.shared().getDMRoomsForUserId(this.props.config.welcomeUserId).length){const e=await Object(M.c)({dmUserId:this.props.config.welcomeUserId,andView:!this.state.currentRoomId,spinner:!1}),t=e=>{"m.direct"===e.getType()&&e.getContent()&&e.getContent()[this.props.config.welcomeUserId]&&(b.a.get().store.save(!0),b.a.get().removeListener("accountData",t))};return b.a.get().on("accountData",t),e}return null}async onLoggedIn(){if(j.a.isLogin=!1,this.themeWatcher.recheck(),this.setStateForNewView({view:xe.LOGGED_IN}),this.screenAfterLogin&&this.screenAfterLogin.screen)this.showScreen(this.screenAfterLogin.screen,this.screenAfterLogin.params),this.screenAfterLogin=null;else if(b.a.currentUserIsJustRegistered())if(b.a.setJustRegisteredUserId(null),this.props.config.welcomeUserId&&Object(P.d)().startsWith("en")){null===await this.startWelcomeUserChat()&&E.a.dispatch({action:"view_home_page",justRegistered:!0})}else if(le.a.instance.pickBestInvite()){const e=le.a.instance.pickBestInvite(),t=le.a.instance.translateToWireFormat(e);this.showScreen("room/"+e.roomId,t)}else E.a.dispatch({action:"view_home_page",justRegistered:!0});else this.showScreenAfterLogin();var e;($.g(),await Object(W.d)(30),L.b.getValue("showCookieBar")&&(h.a.canEnable()||p.a.instance.canEnable()))&&(e=>{const t=y.a.get().brand;Y.a.sharedInstance().addOrReplaceToast({key:"analytics",title:Object(P.a)("Help us improve %(brand)s",{brand:t}),props:{description:Object(P.a)("Send <UsageDataLink>anonymous usage data</UsageDataLink> which helps us improve %(brand)s. This will use a <PolicyLink>cookie</PolicyLink>.",{brand:t},{UsageDataLink:e=>c.a.createElement(J.a,{kind:"link",onClick:te},e),PolicyLink:t=>e?c.a.createElement("a",{target:"_blank",href:e},t):t}),acceptLabel:Object(P.a)("Yes"),onAccept:Z,rejectLabel:Object(P.a)("No"),onReject:ee},component:X.a,className:"mx_AnalyticsToast",priority:10})})(null===(e=this.props.config.piwik)||void 0===e?void 0:e.policyUrl);y.a.get().mobileGuideToast&&(()=>{const e=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,t=/Android/.test(navigator.userAgent);(e||t)&&(document.cookie.includes("element_mobile_redirect_to_guide=false")||Y.a.sharedInstance().addOrReplaceToast({key:"mobileguide",title:Object(P.a)("Use app for a better experience"),props:{description:Object(P.a)("Element Web is experimental on mobile. For a better experience and the latest features, use our free native app."),acceptLabel:Object(P.a)("Use app"),onAccept:pe,rejectLabel:Object(P.a)("Dismiss"),onReject:me},component:X.a,priority:99}))})()}showScreenAfterLogin(){this.screenAfterLogin&&this.screenAfterLogin.screen?(this.showScreen(this.screenAfterLogin.screen,this.screenAfterLogin.params),this.screenAfterLogin=null):localStorage&&localStorage.getItem("mx_last_room_id")?this.viewLastRoom():b.a.get().isGuest()?E.a.dispatch({action:"view_welcome_page"}):E.a.dispatch({action:"view_home_page"})}viewLastRoom(){E.a.dispatch({action:"view_room",room_id:localStorage.getItem("mx_last_room_id")})}onLoggedOut(){this.viewLogin({ready:!1,collapseLhs:!1,currentRoomId:null}),this.subTitleStatus="",this.setPageSubtitle()}onSoftLogout(){this.notifyNewScreen("soft_logout"),this.setStateForNewView({view:xe.SOFT_LOGOUT,ready:!1,collapseLhs:!1,currentRoomId:null}),this.subTitleStatus="",this.setPageSubtitle()}onWillStartClient(){this.firstSyncComplete=!1,this.firstSyncPromise=Object(W.b)();const e=b.a.get();e.setCanResetTimelineCallback(e=>(console.log("Request to reset timeline in room ",e," viewing:",this.state.currentRoomId),e!==this.state.currentRoomId||(!this.loggedInView.current||this.loggedInView.current.canResetTimelineInRoom(e)))),e.on("sync",(e,t,n)=>{E.a.dispatch({action:"sync_state",prevState:t,state:e}),"ERROR"===e||"RECONNECTING"===e?(n.error instanceof d.b&&R.d(n.error),this.setState({syncError:n.error||!0})):this.state.syncError&&this.setState({syncError:null}),this.updateStatusIndicator(e,t),"SYNCING"===e&&"SYNCING"===t||(console.info("MatrixClient sync state => %s",e),"PREPARED"===e&&(this.firstSyncComplete=!0,this.firstSyncPromise.resolve(),S.default.shouldShowPrompt()&&!b.a.userRegisteredWithinLastHours(24)&&Object(oe.b)(!1),E.a.fire(Q.a.FocusComposer),this.setState({ready:!0})))}),e.on("Session.logged_out",(function(e){if(!R.f()){if(w.a.closeCurrentModal("Session.logged_out"),401===e.httpStatus&&e.data&&e.data.soft_logout)return console.warn("Soft logout issued by server - avoiding data deletion"),void R.m();w.a.createTrackedDialog("Signed out","",re.a,{title:Object(P.a)("Signed Out"),description:Object(P.a)("For security, this session has been signed out. Please sign in again.")}),E.a.dispatch({action:"logout"})}})),e.on("no_consent",(function(t,n){const o=T.getComponent("dialogs.QuestionDialog");w.a.createTrackedDialog("No Consent Dialog","",o,{title:Object(P.a)("Terms and Conditions"),description:c.a.createElement("div",null,c.a.createElement("p",null," ",Object(P.a)("To continue using the %(homeserverDomain)s homeserver you must review and agree to our terms and conditions.",{homeserverDomain:e.getDomain()}))),button:Object(P.a)("Review terms and conditions"),cancelButton:Object(P.a)("Dismiss"),onFinished:e=>{if(e){window.open(n,"_blank").opener=null}}},null,!0)}));const t=new _((e,t)=>{h.a.trackEvent("E2E","Decryption failure",t,e),p.a.instance.track("decryption_failure",{errorCode:t},null,{sum:e})},e=>{switch(e){case"MEGOLM_UNKNOWN_INBOUND_SESSION_ID":return"olm_keys_not_sent_error";case"OLM_UNKNOWN_MESSAGE_INDEX":return"olm_index_error";case void 0:return"unexpected_error";default:return"unspecified_error"}});t.start(),e.on("Session.logged_out",()=>t.stop()),e.on("Event.decrypted",(e,n)=>t.eventDecrypted(e,n)),e.on("Room",e=>{if(b.a.get().isCryptoEnabled()){const t=L.b.getValueAt(ae.a.ROOM_DEVICE,"blacklistUnverifiedDevices",e.roomId,!0);e.setBlacklistUnverifiedDevices(t)}}),e.on("crypto.warning",e=>{switch(e){case"CRYPTO_WARNING_OLD_VERSION_DETECTED":w.a.createTrackedDialog("Crypto migrated","",re.a,{title:Object(P.a)("Old cryptography data detected"),description:Object(P.a)("Data from an older version of %(brand)s has been detected. This will have caused end-to-end cryptography to malfunction in the older version. End-to-end encrypted messages exchanged recently whilst using the older version may not be decryptable in this version. This may also cause messages exchanged with this version to fail. If you experience problems, log out and back in again. To retain message history, export and re-import your keys.",{brand:y.a.get().brand})})}}),e.on("crypto.keyBackupFailed",async e=>{let t,o;if(b.a.get().getKeyBackupEnabled())t=!0;else try{o=await b.a.get().getKeyBackupVersion(),null!==o&&(t=!0)}catch(e){return void console.error("Saw key backup error but failed to check backup version!",e)}t?w.a.createTrackedDialogAsync("New Recovery Method","New Recovery Method",n.e(28).then(n.bind(null,1393)),{newVersionInfo:o}):w.a.createTrackedDialogAsync("Recovery Method Removed","Recovery Method Removed",n.e(29).then(n.bind(null,1394)))}),e.on("crypto.keySignatureUploadFailure",(e,t,n)=>{const o=T.getComponent("views.dialogs.KeySignatureUploadFailedDialog");w.a.createTrackedDialog("Failed to upload key signatures","Failed to upload key signatures",o,{failures:e,source:t,continuation:n})}),e.on("crypto.verification.request",e=>{if(e.verifier){const t=T.getComponent("views.dialogs.IncomingSasDialog");w.a.createTrackedDialog("Incoming Verification","",t,{verifier:e.verifier},null,!1,!0)}else e.pending&&Y.a.sharedInstance().addOrReplaceToast({key:"verifreq_"+e.channel.transactionId,title:Object(P.a)("Verification requested"),icon:"verification",props:{request:e},component:T.getComponent("toasts.VerificationRequestToast"),priority:90})});const o=L.b.getValue("roomColor");C.a.tint(o.primary_color,o.secondary_color)}onClientStarted(){const e=b.a.get();if(e.isCryptoEnabled()){const t=L.b.getValueAt(ae.a.DEVICE,"blacklistUnverifiedDevices");e.setGlobalBlacklistUnverifiedDevices(t),e.setGlobalErrorOnUnknownDevices(!1)}}showScreen(e,t){const n=b.a.get();if(!n||n.isGuest()||!Oe.includes(e))if("register"===e)E.a.dispatch({action:"start_registration",params:t});else if("login"===e)E.a.dispatch({action:"start_login",params:t});else if("forgot_password"===e)E.a.dispatch({action:"start_password_recovery",params:t});else if("soft_logout"===e)n.getUserId()&&!R.g()?this.viewLastRoom():E.a.dispatch({action:"start_login",params:t});else if("new"===e)E.a.dispatch({action:"view_create_room"});else if("settings"===e)E.a.fire(Q.a.ViewUserSettings);else if("welcome"===e)E.a.dispatch({action:"view_welcome_page"});else if("home"===e)E.a.dispatch({action:"view_home_page"});else if("start"===e)this.showScreen("home"),E.a.dispatch({action:"require_registration"});else if("directory"===e)this.state.view===xe.WELCOME&&p.a.instance.track("onboarding_room_directory"),E.a.fire(Q.a.ViewRoomDirectory);else if("start_sso"===e||"start_cas"===e){let t=b.a.get();if(!t){const{hsUrl:e,isUrl:n}=this.props.serverConfig;t=Object(l.createClient)({baseUrl:e,idBaseUrl:n})}const n="start_sso"===e?"sso":"cas";v.a.get().startSingleSignOn(t,n,this.getFragmentAfterLogin())}else if("groups"===e)E.a.dispatch({action:"view_my_groups"});else if(0===e.indexOf("room/")){var o,r,i;const n=e.substring(5),a=n.indexOf(":")+1;let s=n.length;n.substring(a).indexOf("/")>-1&&(s=a+n.substring(a).indexOf("/"));const c=n.substring(0,s);let l,d=n.substring(s+1);if(d||(d=void 0),t.signurl&&t.email&&(l=le.a.instance.storeInvite(c,t)),!l){l=le.a.instance.getInvites().find(e=>e.roomId===c)}let u=[];t.via&&(u="string"==typeof t.via?[t.via]:t.via);const h={action:"view_room",event_id:d,via_servers:u,highlighted:Boolean(d),threepid_invite:l,oob_data:{name:null===(o=l)||void 0===o?void 0:o.roomName,avatarUrl:null===(r=l)||void 0===r?void 0:r.roomAvatarUrl,inviterName:null===(i=l)||void 0===i?void 0:i.inviterName},room_alias:void 0,room_id:void 0};"#"===c[0]?h.room_alias=c:h.room_id=c,E.a.dispatch(h)}else if(0===e.indexOf("user/")){const n=e.substring(5);E.a.dispatch({action:"view_user_info",userId:n,subAction:t.action})}else if(0===e.indexOf("group/")){const t=e.substring(6);E.a.dispatch({action:"view_group",group_id:t})}else console.info("Ignoring showScreen for '%s'",e);else E.a.dispatch({action:"view_home_page"})}notifyNewScreen(e,t=!1){this.props.onNewScreen&&this.props.onNewScreen(e,t),this.setPageSubtitle()}onAliasClick(e,t){e.preventDefault(),E.a.dispatch({action:"view_room",room_alias:t})}onUserClick(e,t){e.preventDefault();const n=new u.a(null,t);n&&E.a.dispatch({action:Q.a.ViewUser,member:n})}onGroupClick(e,t){e.preventDefault(),E.a.dispatch({action:"view_group",group_id:t})}onLogoutClick(e){E.a.dispatch({action:"logout"}),e.stopPropagation(),e.preventDefault()}dispatchTimelineResize(){E.a.dispatch({action:"timeline_resize"})}onRoomCreated(e){E.a.dispatch({action:"view_room",room_id:e})}onRegistered(e){return R.l(e)}onSendEvent(e,t){const n=b.a.get();n?n.sendEvent(e,t.getType(),t.getContent()).then(()=>{E.a.dispatch({action:"message_sent"})},e=>{E.a.dispatch({action:"message_send_failed"})}):E.a.dispatch({action:"message_send_failed"})}setPageSubtitle(e=""){if(this.state.currentRoomId){const t=b.a.get(),n=t&&t.getRoom(this.state.currentRoomId);n&&(e=`${this.subTitleStatus} | ${n.name} ${e}`)}else e=`${this.subTitleStatus} ${e}`;const t=`${y.a.get().brand} ${e}`;document.title!==t&&(document.title=t)}updateStatusIndicator(e,t){const n=ie.a.instance.globalState.numUnreadStates;v.a.get()&&(v.a.get().setErrorStatus("ERROR"===e),v.a.get().setNotificationCount(n)),this.subTitleStatus="","ERROR"===e&&(this.subTitleStatus+=`[${Object(P.a)("Offline")}] `),n>0&&(this.subTitleStatus+=`[${n}]`),this.setPageSubtitle()}onCloseAllSettings(){E.a.dispatch({action:"close_settings"})}getFragmentAfterLogin(){let e="";const t=this.props.initialScreenAfterLogin;return t&&!["welcome","login","register","start_sso","start_cas"].includes(t.screen)&&(e="/"+t.screen),e}render(){const e=this.getFragmentAfterLogin();let t=null;if(this.state.view===xe.LOADING){const e=T.getComponent("elements.Spinner");t=c.a.createElement("div",{className:"mx_MatrixChat_splash"},c.a.createElement(e,null))}else if(this.state.view===xe.COMPLETE_SECURITY){const e=T.getComponent("structures.auth.CompleteSecurity");t=c.a.createElement(e,{onFinished:this.onCompleteSecurityE2eSetupFinished})}else if(this.state.view===xe.E2E_SETUP){const e=T.getComponent("structures.auth.E2eSetup");t=c.a.createElement(e,{onFinished:this.onCompleteSecurityE2eSetupFinished,accountPassword:this.accountPassword,tokenLogin:!!this.tokenLogin})}else if(this.state.view===xe.LOGGED_IN){const e=this.state.syncError&&this.state.syncError instanceof d.b;if(this.state.ready&&this.state.page_type&&!e){const e=T.getComponent("structures.LoggedInView");t=c.a.createElement(e,r()({},this.props,this.state,{ref:this.loggedInView,matrixClient:b.a.get(),onRoomCreated:this.onRoomCreated,onCloseAllSettings:this.onCloseAllSettings,onRegistered:this.onRegistered,currentRoomId:this.state.currentRoomId}))}else{const n=T.getComponent("elements.Spinner");let o;this.state.syncError&&!e&&(o=c.a.createElement("div",{className:"mx_MatrixChat_syncError"},Object(B.c)(this.state.syncError))),t=c.a.createElement("div",{className:"mx_MatrixChat_splash"},o,c.a.createElement(n,null),c.a.createElement("a",{href:"#",className:"mx_MatrixChat_splashButtons",onClick:this.onLogoutClick},Object(P.a)("Logout")))}}else if(this.state.view===xe.WELCOME){const e=T.getComponent("auth.Welcome");t=c.a.createElement(e,null)}else if(this.state.view===xe.REGISTER&&L.b.getValue(de.a.Registration)){var n;const o=T.getComponent("structures.auth.Registration"),i=null===(n=le.a.instance.pickBestInvite())||void 0===n?void 0:n.toEmail;t=c.a.createElement(o,r()({clientSecret:this.state.register_client_secret,sessionId:this.state.register_session_id,idSid:this.state.register_id_sid,email:i,brand:this.props.config.brand,makeRegistrationUrl:this.makeRegistrationUrl,onLoggedIn:this.onRegisterFlowComplete,onLoginClick:this.onLoginClick,onServerConfigChange:this.onServerConfigChange,defaultDeviceDisplayName:this.props.defaultDeviceDisplayName,fragmentAfterLogin:e},this.getServerProperties()))}else if(this.state.view===xe.FORGOT_PASSWORD&&L.b.getValue(de.a.PasswordReset)){const e=T.getComponent("structures.auth.ForgotPassword");t=c.a.createElement(e,r()({onComplete:this.onLoginClick,onLoginClick:this.onLoginClick,onServerConfigChange:this.onServerConfigChange},this.getServerProperties()))}else if(this.state.view===xe.LOGIN){const n=L.b.getValue(de.a.PasswordReset),o=T.getComponent("structures.auth.Login");t=c.a.createElement(o,r()({isSyncing:this.state.pendingInitialSync,onLoggedIn:this.onUserCompletedLoginFlow,onRegisterClick:this.onRegisterClick,fallbackHsUrl:this.getFallbackHsUrl(),defaultDeviceDisplayName:this.props.defaultDeviceDisplayName,onForgotPasswordClick:n?this.onForgotPasswordClick:void 0,onServerConfigChange:this.onServerConfigChange,fragmentAfterLogin:e},this.getServerProperties()))}else if(this.state.view===xe.SOFT_LOGOUT){const n=T.getComponent("structures.auth.SoftLogout");t=c.a.createElement(n,{realQueryParams:this.props.realQueryParams,onTokenLoginCompleted:this.props.onTokenLoginCompleted,fragmentAfterLogin:e})}else console.error("Unknown view "+this.state.view);const o=T.getComponent("elements.ErrorBoundary");return c.a.createElement(o,null,t)}},a()(_e,"displayName","MatrixChat"),a()(_e,"defaultProps",{realQueryParams:{},startingFragmentQueryParams:{},config:{},onTokenLoginCompleted:()=>{}}),fe=be))||fe;function De(){const e=window.matrixChat;return e&&e.state.view===xe.LOGGED_IN}},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return u}));var o=n(0),r=n(1),i=n(135),a=n(334);const s={},c={};class l{constructor(e){this._userId=e.userId,this._deviceId=e.deviceId,this._crypto=e.crypto,this._olmDevice=e.olmDevice,this._baseApis=e.baseApis,this._roomId=e.roomId}prepareToEncrypt(e){}onRoomMembership(e,t,n){}}class d{constructor(e){this._userId=e.userId,this._crypto=e.crypto,this._olmDevice=e.olmDevice,this._baseApis=e.baseApis,this._roomId=e.roomId}onRoomKeyEvent(e){}importRoomKey(e){}hasKeysForKeyRequest(e){return Promise.resolve(!1)}shareKeysWithDevice(e){throw new Error("shareKeysWithDevice not supported for this DecryptionAlgorithm")}async retryDecryptionFromSender(e){}}class u extends Error{constructor(e,t,n){super(t),this.code=e,this.name="DecryptionError",this.detailedString=function(e,t){let n=e.name+"[msg: "+e.message;t&&(n+=", "+Object.keys(t).map(e=>e+": "+t[e]).join(", "));return n+="]",n}(this,n)}}class h extends Error{constructor(e,t){super(e),this.name="UnknownDeviceError",this.devices=t}}function p(e,t,n){s[e]=t,c[e]=n}const m=a.a.DeviceVerification;function g(e){Object(r.w)(this,l,e),this._sessionPrepared=!1,this._prepPromise=null}function f(e){Object(r.w)(this,d,e)}r.p(g,l),g.prototype._ensureSession=function(e){if(this._prepPromise)return this._prepPromise;if(this._sessionPrepared)return Promise.resolve();const t=this;return this._prepPromise=t._crypto.downloadKeys(e).then((function(n){return t._crypto.ensureOlmSessionsForUsers(e)})).then((function(){t._sessionPrepared=!0})).finally((function(){t._prepPromise=null})),this._prepPromise},g.prototype.encryptMessage=async function(e,t,n){const o=await e.getEncryptionTargetMembers(),a=r.v(o,(function(e){return e.userId})),s=this;await this._ensureSession(a);const c={room_id:e.roomId,type:t,content:n},l={algorithm:i.OLM_ALGORITHM,sender_key:s._olmDevice.deviceCurve25519Key,ciphertext:{}},d=[];for(let e=0;e<a.length;++e){const t=a[e],n=s._crypto.getStoredDevicesForUser(t);for(let e=0;e<n.length;++e){const o=n[e];o.getIdentityKey()!=s._olmDevice.deviceCurve25519Key&&(o.verified!=m.BLOCKED&&d.push(i.encryptMessageForDevice(l.ciphertext,s._userId,s._deviceId,s._olmDevice,t,o,c)))}}return await Promise.all(d).then(()=>l)},r.p(f,d),f.prototype.decryptEvent=async function(e){const t=e.getWireContent(),n=t.sender_key,o=t.ciphertext;if(!o)throw new u("OLM_MISSING_CIPHERTEXT","Missing ciphertext");if(!(this._olmDevice.deviceCurve25519Key in o))throw new u("OLM_NOT_INCLUDED_IN_RECIPIENTS","Not included in recipients");const r=o[this._olmDevice.deviceCurve25519Key];let i;try{i=await this._decryptMessage(n,r)}catch(e){throw new u("OLM_BAD_ENCRYPTED_MESSAGE","Bad Encrypted Message",{sender:n,err:e})}const a=JSON.parse(i);if(a.recipient!=this._userId)throw new u("OLM_BAD_RECIPIENT","Message was intented for "+a.recipient);if(a.recipient_keys.ed25519!=this._olmDevice.deviceEd25519Key)throw new u("OLM_BAD_RECIPIENT_KEY","Message not intended for this device",{intended:a.recipient_keys.ed25519,our_key:this._olmDevice.deviceEd25519Key});if(a.sender!=e.getSender())throw new u("OLM_FORWARDED_MESSAGE","Message forwarded from "+a.sender,{reported_sender:e.getSender()});if(a.room_id!==e.getRoomId())throw new u("OLM_BAD_ROOM","Message intended for room "+a.room_id,{reported_room:e.room_id});return{clearEvent:a,senderCurve25519Key:n,claimedEd25519Key:(a.keys||{}).ed25519||null}},f.prototype._decryptMessage=async function(e,t){if(0!==t.type)return this._reallyDecryptMessage(e,t);{const n=this._olmDevice._olmPrekeyPromise.then(()=>this._reallyDecryptMessage(e,t));return this._olmDevice._olmPrekeyPromise=n.catch(()=>{}),await n}},f.prototype._reallyDecryptMessage=async function(e,t){const n=await this._olmDevice.getSessionIdsForDevice(e),r={};for(let i=0;i<n.length;i++){const a=n[i];try{const n=await this._olmDevice.decryptMessage(e,a,t.type,t.body);return o.a.log("Decrypted Olm message from "+e+" with session "+a),n}catch(n){if(await this._olmDevice.matchesSession(e,a,t.type,t.body))throw new Error("Error decrypting prekey message with existing session id "+a+": "+n.message);r[a]=n.message}}if(0!==t.type){if(0===n.length)throw new Error("No existing sessions");throw new Error("Error decrypting non-prekey message with existing sessions: "+JSON.stringify(r))}let i;try{i=await this._olmDevice.createInboundSession(e,t.type,t.body)}catch(e){throw r["(new)"]=e.message,new Error("Error decrypting prekey message: "+JSON.stringify(r))}return o.a.log("created new inbound Olm session ID "+i.session_id+" with "+e),i.payload},p(i.OLM_ALGORITHM,g,f);var _=n(598);function b(e,t=!1){this.sessionId=e,this.useCount=0,this.creationTime=(new Date).getTime(),this.sharedWithDevices={},this.blockedDevicesNotified={},this.sharedHistory=t}function v(e){Object(r.w)(this,l,e),this._setupPromise=Promise.resolve(),this._outboundSessions={},this._sessionRotationPeriodMsgs=100,this._sessionRotationPeriodMs=6048e5,void 0!==e.config.rotation_period_ms&&(this._sessionRotationPeriodMs=e.config.rotation_period_ms),void 0!==e.config.rotation_period_msgs&&(this._sessionRotationPeriodMsgs=e.config.rotation_period_msgs)}function y(e){Object(r.w)(this,d,e),this._pendingEvents={},this.olmlib=i}b.prototype.needsRotation=function(e,t){const n=(new Date).getTime()-this.creationTime;return(this.useCount>=e||n>=t)&&(o.a.log("Rotating megolm session after "+this.useCount+" messages, "+n+"ms"),!0)},b.prototype.markSharedWithDevice=function(e,t,n){this.sharedWithDevices[e]||(this.sharedWithDevices[e]={}),this.sharedWithDevices[e][t]=n},b.prototype.markNotifiedBlockedDevice=function(e,t){this.blockedDevicesNotified[e]||(this.blockedDevicesNotified[e]={}),this.blockedDevicesNotified[e][t]=!0},b.prototype.sharedWithTooManyDevices=function(e){for(const t in this.sharedWithDevices)if(this.sharedWithDevices.hasOwnProperty(t)){if(!e.hasOwnProperty(t))return o.a.log("Starting new megolm session because we shared with "+t),!0;for(const n in this.sharedWithDevices[t])if(this.sharedWithDevices[t].hasOwnProperty(n)&&!e[t].hasOwnProperty(n))return o.a.log("Starting new megolm session because we shared with "+t+":"+n),!0}},r.p(v,l),v.prototype._ensureOutboundSession=async function(e,t,n,r){let a;function s(){return a}const c=this._setupPromise.then(async s=>{a=s;const c=function(e){const t=e.currentState&&e.currentState.getStateEvents("m.room.history_visibility",""),n=t&&t.getContent()&&t.getContent().history_visibility;return["world_readable","shared"].includes(n)}(e);a&&c!==a.sharedHistory&&(a=null),a&&a.needsRotation(this._sessionRotationPeriodMsgs,this._sessionRotationPeriodMs)&&(o.a.log("Starting new megolm session because we need to rotate."),a=null),a&&a.sharedWithTooManyDevices(t)&&(a=null),a||(o.a.log("Starting new megolm session for room "+this._roomId),a=await this._prepareNewSession(c),o.a.log(`Started new megolm session ${a.sessionId} for room `+this._roomId),this._outboundSessions[a.sessionId]=a);const l={};for(const[e,n]of Object.entries(t))for(const[t,o]of Object.entries(n)){o.getIdentityKey()!=this._olmDevice.deviceCurve25519Key&&(a.sharedWithDevices[e]&&void 0!==a.sharedWithDevices[e][t]||(l[e]=l[e]||[],l[e].push(o)))}const d=this._olmDevice.getOutboundGroupSessionKey(a.sessionId),u={type:"m.room_key",content:{algorithm:i.MEGOLM_ALGORITHM,room_id:this._roomId,session_id:a.sessionId,session_key:d.key,chain_index:d.chain_index,"org.matrix.msc3061.shared_history":c}},[h,p]=await i.getExistingOlmSessions(this._olmDevice,this._baseApis,l);await Promise.all([(async()=>{o.a.debug("Sharing keys with existing Olm sessions in "+this._roomId),await this._shareKeyWithOlmSessions(a,d,u,p),o.a.debug("Shared keys with existing Olm sessions in "+this._roomId)})(),(async()=>{o.a.debug("Sharing keys (start phase 1) with new Olm sessions in "+this._roomId);const e=[],t=Date.now(),n=[];await this._shareKeyWithDevices(a,d,u,h,e,r?1e4:2e3,n),o.a.debug("Shared keys (end phase 1) with new Olm sessions in "+this._roomId),!r&&Date.now()-t<1e4?(async()=>{const t={},r=new Set;for(const e of n)r.add(e);const i=[];for(const{userId:n,deviceInfo:o}of e){const e=n.slice(n.indexOf(":")+1);r.has(e)?(t[n]=t[n]||[],t[n].push(o)):i.push({userId:n,deviceInfo:o})}o.a.debug("Sharing keys (start phase 2) with new Olm sessions in "+this._roomId),await this._shareKeyWithDevices(a,d,u,t,i,3e4),o.a.debug("Shared keys (end phase 2) with new Olm sessions in "+this._roomId),await this._notifyFailedOlmDevices(a,d,i)})():await this._notifyFailedOlmDevices(a,d,e),o.a.debug("Shared keys (all phases done) with new Olm sessions in "+this._roomId)})(),(async()=>{o.a.debug("Notifying blocked devices in "+this._roomId);const e={};let t=0;for(const[o,r]of Object.entries(n))for(const[n,i]of Object.entries(r))a.blockedDevicesNotified[o]&&void 0!==a.blockedDevicesNotified[o][n]||(e[o]=e[o]||{},e[o][n]={device:i},t++);await this._notifyBlockedDevices(a,e),o.a.debug(`Notified ${t} blocked devices in ${this._roomId}`)})()])});return c.catch(e=>{o.a.error("Failed to ensure outbound session in "+this._roomId,e)}),this._setupPromise=c.then(s,s),c.then(s)},v.prototype._prepareNewSession=async function(e){const t=this._olmDevice.createOutboundGroupSession(),n=this._olmDevice.getOutboundGroupSessionKey(t);return await this._olmDevice.addInboundGroupSession(this._roomId,this._olmDevice.deviceCurve25519Key,[],t,n.key,{ed25519:this._olmDevice.deviceEd25519Key},!1,{sharedHistory:e}),this._crypto.backupGroupSession(this._roomId,this._olmDevice.deviceCurve25519Key,[],t,n.key),new b(t,e)},v.prototype._getDevicesWithoutSessions=function(e,t,n){n=n||[];for(const[o,r]of Object.entries(t)){const t=e[o];for(const e of r){const r=e.deviceId;t[r].sessionId||(n.push({userId:o,deviceInfo:e}),delete t[r])}}return n},v.prototype._splitDevices=function(e){let t=[];const n=[t];for(const[o,r]of Object.entries(e)){for(const e of Object.values(r))t.push({userId:o,deviceInfo:e.device});t.length>20&&(t=[],n.push(t))}return 0===t.length&&n.pop(),n},v.prototype._encryptAndSendKeysToDevices=function(e,t,n,r){const a={},s=[];for(let e=0;e<n.length;e++){const t={algorithm:i.OLM_ALGORITHM,sender_key:this._olmDevice.deviceCurve25519Key,ciphertext:{}},o=n[e],c=o.userId,l=o.deviceInfo,d=l.deviceId;a[c]||(a[c]={}),a[c][d]=t,s.push(i.encryptMessageForDevice(t.ciphertext,this._userId,this._deviceId,this._olmDevice,c,l,r))}return Promise.all(s).then(()=>{for(const e of Object.keys(a)){for(const t of Object.keys(a[e]))0===Object.keys(a[e][t].ciphertext).length&&(o.a.log("No ciphertext for device "+e+":"+t+": pruning"),delete a[e][t]);0===Object.keys(a[e]).length&&(o.a.log("Pruned all devices for user "+e),delete a[e])}if(0!==Object.keys(a).length)return this._baseApis.sendToDevice("m.room.encrypted",a).then(()=>{for(const n of Object.keys(a))for(const o of Object.keys(a[n]))e.markSharedWithDevice(n,o,t)});o.a.log("No users left to send to: aborting")})},v.prototype._sendBlockedNotificationsToDevices=async function(e,t,n){const o={};for(const e of t){const t=e.userId,r=e.deviceInfo,i=r.deviceInfo.deviceId,a=Object.assign({},n);a.code=r.code,a.reason=r.reason,"m.no_olm"===a.code&&(delete a.room_id,delete a.session_id),o[t]||(o[t]={}),o[t][i]=a}await this._baseApis.sendToDevice("org.matrix.room_key.withheld",o);for(const t of Object.keys(o))for(const n of Object.keys(o[t]))e.markNotifiedBlockedDevice(t,n)},v.prototype.reshareKeyWithDevice=async function(e,t,n,r){const a=this._outboundSessions[t];if(!a)return void o.a.debug(`megolm session ${t} not found: not re-sharing keys`);if(void 0===a.sharedWithDevices[n])return void o.a.debug(`megolm session ${t} never shared with user ${n}`);const s=a.sharedWithDevices[n][r.deviceId];if(void 0===s)return void o.a.debug("megolm session ID "+t+" never shared with device "+n+":"+r.deviceId);const c=await this._olmDevice.getInboundGroupSessionKey(this._roomId,e,t,s);if(!c)return void o.a.warn(`No inbound session key found for megolm ${t}: not re-sharing keys`);await i.ensureOlmSessionsForDevices(this._olmDevice,this._baseApis,{[n]:[r]});const l={type:"m.forwarded_room_key",content:{algorithm:i.MEGOLM_ALGORITHM,room_id:this._roomId,session_id:t,session_key:c.key,chain_index:c.chain_index,sender_key:e,sender_claimed_ed25519_key:c.sender_claimed_ed25519_key,forwarding_curve25519_key_chain:c.forwarding_curve25519_key_chain,"org.matrix.msc3061.shared_history":c.shared_history||!1}},d={algorithm:i.OLM_ALGORITHM,sender_key:this._olmDevice.deviceCurve25519Key,ciphertext:{}};await i.encryptMessageForDevice(d.ciphertext,this._userId,this._deviceId,this._olmDevice,n,r,l),await this._baseApis.sendToDevice("m.room.encrypted",{[n]:{[r.deviceId]:d}}),o.a.debug(`Re-shared key for megolm session ${t} with ${n}:${r.deviceId}`)},v.prototype._shareKeyWithDevices=async function(e,t,n,r,a,s,c){o.a.debug("Ensuring Olm sessions for devices in "+this._roomId);const l=await i.ensureOlmSessionsForDevices(this._olmDevice,this._baseApis,r,s,c,o.a.withPrefix(`[${this._roomId}]`));o.a.debug("Ensured Olm sessions for devices in "+this._roomId),this._getDevicesWithoutSessions(l,r,a),o.a.debug("Sharing keys with Olm sessions in "+this._roomId),await this._shareKeyWithOlmSessions(e,t,n,l),o.a.debug("Shared keys with Olm sessions in "+this._roomId)},v.prototype._shareKeyWithOlmSessions=async function(e,t,n,r){const i=this._splitDevices(r);for(let r=0;r<i.length;r++){const a=`megolm keys for ${e.sessionId} in ${this._roomId} (slice ${r+1}/${i.length})`;try{o.a.debug("Sharing "+a),await this._encryptAndSendKeysToDevices(e,t.chain_index,i[r],n),o.a.debug("Shared "+a)}catch(e){throw o.a.error("Failed to share "+a),e}}},v.prototype._notifyFailedOlmDevices=async function(e,t,n){o.a.debug(`Notifying ${n.length} devices we failed to create Olm sessions in `+this._roomId);for(const{userId:o,deviceInfo:r}of n){const n=r.deviceId;e.markSharedWithDevice(o,n,t.chain_index)}const r=await this._olmDevice.filterOutNotifiedErrorDevices(n);o.a.debug(`Filtered down to ${r.length} error devices in `+this._roomId);const i={};for(const{userId:e,deviceInfo:t}of r)i[e]=i[e]||{},i[e][t.deviceId]={device:{code:"m.no_olm",reason:_.b["m.no_olm"],deviceInfo:t}};await this._notifyBlockedDevices(e,i),o.a.debug(`Notified ${r.length} devices we failed to create Olm sessions in `+this._roomId)},v.prototype._notifyBlockedDevices=async function(e,t){const n={room_id:this._roomId,session_id:e.sessionId,algorithm:i.MEGOLM_ALGORITHM,sender_key:this._olmDevice.deviceCurve25519Key},r=this._splitDevices(t);for(let t=0;t<r.length;t++)try{await this._sendBlockedNotificationsToDevices(e,r[t],n),o.a.log(`Completed blacklist notification for ${e.sessionId} in ${this._roomId} (slice ${t+1}/${r.length})`)}catch(n){throw o.a.log(`blacklist notification for ${e.sessionId} in ${this._roomId} (slice ${t+1}/${r.length}) failed`),n}},v.prototype.prepareToEncrypt=function(e){if(this.encryptionPreparation){const e=Date.now()-this.encryptionPreparationMetadata.startTime;o.a.debug(`Already started preparing to encrypt for ${this._roomId} `+e+" ms ago, skipping")}else o.a.debug("Preparing to encrypt events for "+this._roomId),this.encryptionPreparationMetadata={startTime:Date.now()},this.encryptionPreparation=(async()=>{try{o.a.debug("Getting devices in "+this._roomId);const[t,n]=await this._getDevicesInRoom(e);this._crypto.getGlobalErrorOnUnknownDevices()&&this._removeUnknownDevices(t),o.a.debug("Ensuring outbound session in "+this._roomId),await this._ensureOutboundSession(e,t,n,!0),o.a.debug("Ready to encrypt events for "+this._roomId)}catch(e){o.a.error("Failed to prepare to encrypt events for "+this._roomId,e)}finally{delete this.encryptionPreparationMetadata,delete this.encryptionPreparation}})()},v.prototype.encryptMessage=async function(e,t,n){if(o.a.log("Starting to encrypt event for "+this._roomId),this.encryptionPreparation)try{await this.encryptionPreparation}catch(e){}const[r,a]=await this._getDevicesInRoom(e);this._crypto.getGlobalErrorOnUnknownDevices()&&this._checkForUnknownDevices(r);const s=await this._ensureOutboundSession(e,r,a),c={room_id:this._roomId,type:t,content:n},l=this._olmDevice.encryptGroupMessage(s.sessionId,JSON.stringify(c)),d={algorithm:i.MEGOLM_ALGORITHM,sender_key:this._olmDevice.deviceCurve25519Key,ciphertext:l,session_id:s.sessionId,device_id:this._deviceId};return s.useCount++,d},v.prototype.forceDiscardSession=function(){this._setupPromise=this._setupPromise.then(()=>null)},v.prototype._checkForUnknownDevices=function(e){const t={};if(Object.keys(e).forEach(n=>{Object.keys(e[n]).forEach(o=>{const r=e[n][o];r.isUnverified()&&!r.isKnown()&&(t[n]||(t[n]={}),t[n][o]=r)})}),Object.keys(t).length)throw new h("This room contains unknown devices which have not been verified. We strongly recommend you verify them before continuing.",t)},v.prototype._removeUnknownDevices=function(e){for(const[t,n]of Object.entries(e)){for(const[e,t]of Object.entries(n))t.isUnverified()&&!t.isKnown()&&delete n[e];0===Object.keys(n).length&&delete e[t]}},v.prototype._getDevicesInRoom=async function(e){const t=await e.getEncryptionTargetMembers(),n=r.v(t,(function(e){return e.userId}));let o=this._crypto.getGlobalBlacklistUnverifiedDevices();"boolean"==typeof e.getBlacklistUnverifiedDevices()&&(o=e.getBlacklistUnverifiedDevices());const i=await this._crypto.downloadKeys(n,!1),a={};for(const e in i){if(!i.hasOwnProperty(e))continue;const t=i[e];for(const n in t){if(!t.hasOwnProperty(n))continue;const r=this._crypto.checkDeviceTrust(e,n);if(t[n].isBlocked()||!r.isVerified()&&o){a[e]||(a[e]={});const o=t[n].isBlocked()?{code:"m.blacklisted",reason:_.b["m.blacklisted"]}:{code:"m.unverified",reason:_.b["m.unverified"]};o.deviceInfo=t[n],a[e][n]=o,delete t[n]}}}return[i,a]},r.p(y,d);const E={no_olm:"The sender was unable to establish a secure channel.",unknown:"The secure channel with the sender was corrupted."};y.prototype.decryptEvent=async function(e){const t=e.getWireContent();if(!t.sender_key||!t.session_id||!t.ciphertext)throw new u("MEGOLM_MISSING_FIELDS","Missing fields in input");let n;this._addEventToPendingList(e);try{n=await this._olmDevice.decryptGroupMessage(e.getRoomId(),t.sender_key,t.session_id,t.ciphertext,e.getId(),e.getTs())}catch(n){if("DecryptionError"===n.name)throw n;let o="OLM_DECRYPT_GROUP_MESSAGE_ERROR";throw n&&"OLM.UNKNOWN_MESSAGE_INDEX"===n.message&&(this._requestKeysForEvent(e),o="OLM_UNKNOWN_MESSAGE_INDEX"),new u(o,n?n.toString():"Unknown Error: Error is undefined",{session:t.sender_key+"|"+t.session_id})}if(null===n){this._requestKeysForEvent(e);const n=await this._olmDevice.sessionMayHaveProblems(t.sender_key,e.getTs()-12e4);if(n){let e=E[n.type]||E.unknown;throw n.fixed&&(e+=" Trying to create a new secure channel and re-requesting the keys."),new u("MEGOLM_UNKNOWN_INBOUND_SESSION_ID",e,{session:t.sender_key+"|"+t.session_id})}throw new u("MEGOLM_UNKNOWN_INBOUND_SESSION_ID","The sender's device has not sent us the keys for this message.",{session:t.sender_key+"|"+t.session_id})}this._removeEventFromPendingList(e);const o=JSON.parse(n.result);if(o.room_id!==e.getRoomId())throw new u("MEGOLM_BAD_ROOM","Message intended for room "+o.room_id);return{clearEvent:o,senderCurve25519Key:n.senderKey,claimedEd25519Key:n.keysClaimed.ed25519,forwardingCurve25519KeyChain:n.forwardingCurve25519KeyChain,untrusted:n.untrusted}},y.prototype._requestKeysForEvent=function(e){const t=e.getWireContent(),n=e.getKeyRequestRecipients(this._userId);this._crypto.requestRoomKey({room_id:e.getRoomId(),algorithm:t.algorithm,sender_key:t.sender_key,session_id:t.session_id},n)},y.prototype._addEventToPendingList=function(e){const t=e.getWireContent(),n=t.sender_key,o=t.session_id;this._pendingEvents[n]||(this._pendingEvents[n]=new Map);const r=this._pendingEvents[n];r.has(o)||r.set(o,new Set),r.get(o).add(e)},y.prototype._removeEventFromPendingList=function(e){const t=e.getWireContent(),n=t.sender_key,o=t.session_id,r=this._pendingEvents[n],i=r&&r.get(o);i&&(i.delete(e),0===i.size&&r.delete(n),0===r.size&&delete this._pendingEvents[n])},y.prototype.onRoomKeyEvent=function(e){const t=e.getContent(),n=t.session_id;let i,a=e.getSenderKey(),s=[],c=!1;if(!t.room_id||!n||!t.session_key)return void o.a.error("key event is missing fields");if(!a)return void o.a.error("key event has no sender key (not encrypted?)");if("m.forwarded_room_key"==e.getType()){if(c=!0,s=t.forwarding_curve25519_key_chain,r.q(s)||(s=[]),s=s.slice(),s.push(a),a=t.sender_key,!a)return void o.a.error("forwarded_room_key event is missing sender_key field");const e=t.sender_claimed_ed25519_key;if(!e)return void o.a.error("forwarded_room_key_event is missing sender_claimed_ed25519_key field");i={ed25519:e}}else i=e.getKeysClaimed();const l={};return t["org.matrix.msc3061.shared_history"]&&(l.sharedHistory=!0),this._olmDevice.addInboundGroupSession(t.room_id,a,s,n,t.session_key,i,c,l).then(()=>{this._retryDecryption(a,n).then(e=>{e&&this._crypto.cancelRoomKeyRequest({algorithm:t.algorithm,room_id:t.room_id,session_id:t.session_id,sender_key:a})})}).then(()=>{this._crypto.backupGroupSession(t.room_id,a,s,t.session_id,t.session_key,i,c)}).catch(e=>{o.a.error("Error handling m.room_key_event: "+e)})},y.prototype.onRoomKeyWithheldEvent=async function(e){const t=e.getContent(),n=t.sender_key;if("m.no_olm"===t.code){const r=e.getSender();if(o.a.warn(`${r}:${n} was unable to establish an olm session with us`),await this._olmDevice.getSessionIdForDevice(n))return o.a.debug("New session already created. Not creating a new one."),await this._olmDevice.recordSessionProblem(n,"no_olm",!0),void this.retryDecryptionFromSender(n);let a=this._crypto._deviceList.getDeviceByIdentityKey(t.algorithm,n);if(!a&&(await this._crypto.downloadKeys([r],!1),a=this._crypto._deviceList.getDeviceByIdentityKey(t.algorithm,n),!a))return o.a.info("Couldn't find device for identity key "+n+": not establishing session"),await this._olmDevice.recordSessionProblem(n,"no_olm",!1),void this.retryDecryptionFromSender(n);await i.ensureOlmSessionsForDevices(this._olmDevice,this._baseApis,{[r]:[a]},!1);const s={algorithm:i.OLM_ALGORITHM,sender_key:this._olmDevice.deviceCurve25519Key,ciphertext:{}};await i.encryptMessageForDevice(s.ciphertext,this._userId,this._deviceId,this._olmDevice,r,a,{type:"m.dummy"}),await this._olmDevice.recordSessionProblem(n,"no_olm",!0),this.retryDecryptionFromSender(n),await this._baseApis.sendToDevice("m.room.encrypted",{[r]:{[a.deviceId]:s}})}else await this._olmDevice.addInboundGroupSessionWithheld(t.room_id,n,t.session_id,t.code,t.reason)},y.prototype.hasKeysForKeyRequest=function(e){const t=e.requestBody;return this._olmDevice.hasInboundSessionKeys(t.room_id,t.sender_key,t.session_id)},y.prototype.shareKeysWithDevice=function(e){const t=e.userId,n=e.deviceId,r=this._crypto.getStoredDevice(t,n),a=e.requestBody;this.olmlib.ensureOlmSessionsForDevices(this._olmDevice,this._baseApis,{[t]:[r]}).then(e=>e[t][n].sessionId?(o.a.log("sharing keys for session "+a.sender_key+"|"+a.session_id+" with device "+t+":"+n),this._buildKeyForwardingMessage(a.room_id,a.sender_key,a.session_id)):null).then(e=>{const o={algorithm:i.OLM_ALGORITHM,sender_key:this._olmDevice.deviceCurve25519Key,ciphertext:{}};return this.olmlib.encryptMessageForDevice(o.ciphertext,this._userId,this._deviceId,this._olmDevice,t,r,e).then(()=>{const e={[t]:{[n]:o}};return this._baseApis.sendToDevice("m.room.encrypted",e)})})},y.prototype._buildKeyForwardingMessage=async function(e,t,n){const o=await this._olmDevice.getInboundGroupSessionKey(e,t,n);return{type:"m.forwarded_room_key",content:{algorithm:i.MEGOLM_ALGORITHM,room_id:e,sender_key:t,sender_claimed_ed25519_key:o.sender_claimed_ed25519_key,session_id:n,session_key:o.key,chain_index:o.chain_index,forwarding_curve25519_key_chain:o.forwarding_curve25519_key_chain,"org.matrix.msc3061.shared_history":o.shared_history||!1}}},y.prototype.importRoomKey=function(e,t={}){const n={};return t.untrusted&&(n.untrusted=!0),e["org.matrix.msc3061.shared_history"]&&(n.sharedHistory=!0),this._olmDevice.addInboundGroupSession(e.room_id,e.sender_key,e.forwarding_curve25519_key_chain,e.session_id,e.session_key,e.sender_claimed_keys,!0,n).then(()=>{"backup"!==t.source&&this._crypto.backupGroupSession(e.room_id,e.sender_key,e.forwarding_curve25519_key_chain,e.session_id,e.session_key,e.sender_claimed_keys,!0).catch(e=>{o.a.log("Failed to back up megolm session",e)}),this._retryDecryption(e.sender_key,e.session_id)})},y.prototype._retryDecryption=async function(e,t){const n=this._pendingEvents[e];if(!n)return!0;const r=n.get(t);return!r||(o.a.debug("Retrying decryption on events",[...r]),await Promise.all([...r].map(async e=>{try{await e.attemptDecryption(this._crypto,!0)}catch(e){}})),!(this._pendingEvents[e]||{})[t])},y.prototype.retryDecryptionFromSender=async function(e){const t=this._pendingEvents[e];return!t||(delete this._pendingEvents[e],await Promise.all([...t].map(async([e,t])=>{await Promise.all([...t].map(async e=>{try{await e.attemptDecryption(this._crypto)}catch(e){}}))})),!this._pendingEvents[e])},y.prototype.sendSharedHistoryInboundSessions=async function(e){await i.ensureOlmSessionsForDevices(this._olmDevice,this._baseApis,e),o.a.log("sendSharedHistoryInboundSessions to users",Object.keys(e));const t=await this._olmDevice.getSharedHistoryInboundGroupSessions(this._roomId);o.a.log("shared-history sessions",t);for(const[n,r]of t){const t=await this._buildKeyForwardingMessage(this._roomId,n,r),a=[],s={};for(const[n,o]of Object.entries(e)){s[n]={};for(const e of o){const o={algorithm:i.OLM_ALGORITHM,sender_key:this._olmDevice.deviceCurve25519Key,ciphertext:{}};s[n][e.deviceId]=o,a.push(i.encryptMessageForDevice(o.ciphertext,this._userId,this._deviceId,this._olmDevice,n,e,t))}}await Promise.all(a);for(const e of Object.keys(s)){for(const t of Object.keys(s[e]))0===Object.keys(s[e][t].ciphertext).length&&(o.a.log("No ciphertext for device "+e+":"+t+": pruning"),delete s[e][t]);0===Object.keys(s[e]).length&&(o.a.log("Pruned all devices for user "+e),delete s[e])}if(0===Object.keys(s).length)return void o.a.log("No users left to send to: aborting");await this._baseApis.sendToDevice("m.room.encrypted",s)}},p(i.MEGOLM_ALGORITHM,v,y)},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var o=n(83),r=n.n(o),i=n(3),a=n(117);var s=n(88),c=n(630),l=n(91),d=n(694),u=n(746);const h={};var p=n(695),m=n(138),g=n(110),f=n(202),_=n(299),b=n(89),v=n(109);class y extends i.WidgetDriver{constructor(e,t,n,o){if(super(),this.forWidget=t,this.forWidgetKind=n,this.inRoomId=o,r()(this,"allowedCapabilities",void 0),this.allowedCapabilities=new Set([...e,i.MatrixCapabilities.Screenshots]),m.a.JITSI.matches(this.forWidget.type)&&n===i.WidgetKind.Room)this.allowedCapabilities.add(i.MatrixCapabilities.AlwaysOnScreen);else if(m.a.STICKERPICKER.matches(this.forWidget.type)&&n===i.WidgetKind.Account){const e=i.WidgetEventCapability.forRoomEvent(i.EventDirection.Send,g.a.Sticker).raw;this.allowedCapabilities.add(i.MatrixCapabilities.StickerSending),this.allowedCapabilities.add(e),this.allowedCapabilities.add("visibility")}}async validateCapabilities(e){const t=(n=e,o=this.allowedCapabilities,Object(a.a)(Array.from(n),Array.from(o)));var n,o;const r=new Set(t.removed),i=new Set(this.allowedCapabilities);if(Object(u.b)(this.forWidget).forEach(e=>{i.add(e),r.delete(e)}),h.preapproveCapabilities){const t=await h.preapproveCapabilities(this.forWidget,e);t&&t.forEach(e=>{i.add(e),r.delete(e)})}if(r.size>0)try{const[e]=await l.a.createTrackedDialog("Approve Widget Caps","",u.a,{requestedCapabilities:r,widget:this.forWidget,widgetKind:this.forWidgetKind}).finished;(e.approved||[]).forEach(e=>i.add(e))}catch(e){console.error("Non-fatal error getting capabilities: ",e)}return new Set(function(e,t){return Object(a.h)(Array.from(e),Array.from(t))}(i,e))}async sendEvent(e,t,n=null){const o=s.a.get(),r=c.a.activeRoomId;if(!o||!r)throw new Error("Not in a room or not attached to a client");let i=null;return null!==n?i=await o.sendStateEvent(r,e,t,n):(i=await o.sendEvent(r,e,t),e===g.a.RoomMessage&&f.CHAT_EFFECTS.forEach(e=>{Object(_.containsEmoji)(t,e.emojis)&&b.a.dispatch({action:"effects."+e.command})})),{roomId:r,eventId:i.event_id}}async askOpenID(e){const t=p.b.instance.getOIDCState(this.forWidget,this.forWidgetKind,this.inRoomId),n=()=>s.a.get().getOpenIdToken();return t===p.a.Denied?e.update({state:i.OpenIDRequestState.Blocked}):t===p.a.Allowed?e.update({state:i.OpenIDRequestState.Allowed,token:await n()}):(e.update({state:i.OpenIDRequestState.PendingUserConfirmation}),void l.a.createTrackedDialog("OpenID widget permissions","",d.a,{widget:this.forWidget,widgetKind:this.forWidgetKind,inRoomId:this.inRoomId,onFinished:async t=>t?e.update({state:i.OpenIDRequestState.Allowed,token:await n()}):e.update({state:i.OpenIDRequestState.Blocked})}))}async navigate(e){const t=Object(v.l)(e);if(!t||t===e)throw new Error("Failed to transform URI");window.location.hash=t}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return y}));var o=n(83),r=n.n(o),i=n(82),a=n.n(i),s=n(122),c=n(84),l=n(3),d=n(128),u=n(140),h=n(201),p=n(175),m=n(110),g=n(696);class f{static bylineFor(e){return e.isState?e.keyStr?Object(c.a)("with state key %(stateKey)s",{stateKey:e.keyStr}):Object(c.a)("with an empty state key"):null}static for(e,t){if(f.simpleCaps[e]){const n=f.simpleCaps[e];if(n[t])return{primary:Object(c.a)(n[t])};if(n.generic)return{primary:Object(c.a)(n.generic)}}const[n]=l.WidgetEventCapability.findEventCapabilities([e]);if(n){if(!n.isState&&n.eventType===m.a.RoomMessage)return f.forRoomMessageCap(n,t);const e=n.isState?f.stateSendRecvCaps:f.nonStateSendRecvCaps;if(e[n.eventType]){const o=e[n.eventType],r=o[t]||o.generic;if(r&&r[n.direction])return{primary:Object(c.a)(r[n.direction])}}return t===l.WidgetKind.Room?n.direction===l.EventDirection.Send?{primary:Object(c.a)("Send <b>%(eventType)s</b> events as you in this room",{eventType:n.eventType},{b:e=>a.a.createElement("b",null,e)}),byline:f.bylineFor(n)}:{primary:Object(c.a)("See <b>%(eventType)s</b> events posted to this room",{eventType:n.eventType},{b:e=>a.a.createElement("b",null,e)}),byline:f.bylineFor(n)}:n.direction===l.EventDirection.Send?{primary:Object(c.a)("Send <b>%(eventType)s</b> events as you in your active room",{eventType:n.eventType},{b:e=>a.a.createElement("b",null,e)}),byline:f.bylineFor(n)}:{primary:Object(c.a)("See <b>%(eventType)s</b> events posted to your active room",{eventType:n.eventType},{b:e=>a.a.createElement("b",null,e)}),byline:f.bylineFor(n)}}return{primary:Object(c.a)("The <b>%(capability)s</b> capability",{capability:e},{b:e=>a.a.createElement("b",null,e)})}}static forRoomMessageCap(e,t){if(!e.keyStr)return e.direction===l.EventDirection.Send?{primary:t===l.WidgetKind.Room?Object(c.a)("Send messages as you in this room"):Object(c.a)("Send messages as you in your active room")}:{primary:t===l.WidgetKind.Room?Object(c.a)("See messages posted to this room"):Object(c.a)("See messages posted to your active room")};switch(e.keyStr){case m.b.Text:return e.direction===l.EventDirection.Send?{primary:t===l.WidgetKind.Room?Object(c.a)("Send text messages as you in this room"):Object(c.a)("Send text messages as you in your active room")}:{primary:t===l.WidgetKind.Room?Object(c.a)("See text messages posted to this room"):Object(c.a)("See text messages posted to your active room")};case m.b.Emote:return e.direction===l.EventDirection.Send?{primary:t===l.WidgetKind.Room?Object(c.a)("Send emotes as you in this room"):Object(c.a)("Send emotes as you in your active room")}:{primary:t===l.WidgetKind.Room?Object(c.a)("See emotes posted to this room"):Object(c.a)("See emotes posted to your active room")};case m.b.Image:return e.direction===l.EventDirection.Send?{primary:t===l.WidgetKind.Room?Object(c.a)("Send images as you in this room"):Object(c.a)("Send images as you in your active room")}:{primary:t===l.WidgetKind.Room?Object(c.a)("See images posted to this room"):Object(c.a)("See images posted to your active room")};case m.b.Video:return e.direction===l.EventDirection.Send?{primary:t===l.WidgetKind.Room?Object(c.a)("Send videos as you in this room"):Object(c.a)("Send videos as you in your active room")}:{primary:t===l.WidgetKind.Room?Object(c.a)("See videos posted to this room"):Object(c.a)("See videos posted to your active room")};case m.b.File:return e.direction===l.EventDirection.Send?{primary:t===l.WidgetKind.Room?Object(c.a)("Send general files as you in this room"):Object(c.a)("Send general files as you in your active room")}:{primary:t===l.WidgetKind.Room?Object(c.a)("See general files posted to this room"):Object(c.a)("See general files posted to your active room")};default:{let n;return n=e.direction===l.EventDirection.Send?t===l.WidgetKind.Room?Object(c.a)("Send <b>%(msgtype)s</b> messages as you in this room",{msgtype:e.keyStr},{b:e=>a.a.createElement("b",null,e)}):Object(c.a)("Send <b>%(msgtype)s</b> messages as you in your active room",{msgtype:e.keyStr},{b:e=>a.a.createElement("b",null,e)}):t===l.WidgetKind.Room?Object(c.a)("See <b>%(msgtype)s</b> messages posted to this room",{msgtype:e.keyStr},{b:e=>a.a.createElement("b",null,e)}):Object(c.a)("See <b>%(msgtype)s</b> messages posted to your active room",{msgtype:e.keyStr},{b:e=>a.a.createElement("b",null,e)}),{primary:n}}}}}r()(f,"simpleCaps",{[l.MatrixCapabilities.AlwaysOnScreen]:{[l.WidgetKind.Room]:Object(c.b)("Remain on your screen when viewing another room, when running"),generic:Object(c.b)("Remain on your screen while running")},[l.MatrixCapabilities.StickerSending]:{[l.WidgetKind.Room]:Object(c.b)("Send stickers into this room"),generic:Object(c.b)("Send stickers into your active room")},[g.a.CanChangeViewedRoom]:{generic:Object(c.b)("Change which room you're viewing")},[l.MatrixCapabilities.MSC2931Navigate]:{generic:Object(c.b)("Change which room, message, or user you're viewing")}}),r()(f,"stateSendRecvCaps",{[m.a.RoomTopic]:{[l.WidgetKind.Room]:{[l.EventDirection.Send]:Object(c.b)("Change the topic of this room"),[l.EventDirection.Receive]:Object(c.b)("See when the topic changes in this room")},generic:{[l.EventDirection.Send]:Object(c.b)("Change the topic of your active room"),[l.EventDirection.Receive]:Object(c.b)("See when the topic changes in your active room")}},[m.a.RoomName]:{[l.WidgetKind.Room]:{[l.EventDirection.Send]:Object(c.b)("Change the name of this room"),[l.EventDirection.Receive]:Object(c.b)("See when the name changes in this room")},generic:{[l.EventDirection.Send]:Object(c.b)("Change the name of your active room"),[l.EventDirection.Receive]:Object(c.b)("See when the name changes in your active room")}},[m.a.RoomAvatar]:{[l.WidgetKind.Room]:{[l.EventDirection.Send]:Object(c.b)("Change the avatar of this room"),[l.EventDirection.Receive]:Object(c.b)("See when the avatar changes in this room")},generic:{[l.EventDirection.Send]:Object(c.b)("Change the avatar of your active room"),[l.EventDirection.Receive]:Object(c.b)("See when the avatar changes in your active room")}}}),r()(f,"nonStateSendRecvCaps",{[m.a.Sticker]:{[l.WidgetKind.Room]:{[l.EventDirection.Send]:Object(c.b)("Send stickers to this room as you"),[l.EventDirection.Receive]:Object(c.b)("See when a sticker is posted in this room")},generic:{[l.EventDirection.Send]:Object(c.b)("Send stickers to your active room as you"),[l.EventDirection.Receive]:Object(c.b)("See when anyone posts a sticker to your active room")}}});var _,b=n(85);function v(e){return JSON.parse(localStorage.getItem(`widget_${e.id}_approved_caps`)||"[]")}let y=Object(b.a)("views.dialogs.WidgetCapabilitiesPromptDialog")(_=class extends a.a.PureComponent{constructor(e){super(e),r()(this,"eventPermissionsMap",new Map),r()(this,"onToggle",e=>{const t=Object(d.f)(this.state.booleanStates);t[e]=!t[e],this.setState({booleanStates:t})}),r()(this,"onRememberSelectionChange",e=>{this.setState({rememberSelection:e})}),r()(this,"onSubmit",async e=>{this.closeAndTryRemember(Object.entries(this.state.booleanStates).filter(([e,t])=>t).map(([e])=>e))}),r()(this,"onReject",async e=>{this.closeAndTryRemember([])});l.WidgetEventCapability.findEventCapabilities(this.props.requestedCapabilities).forEach(e=>this.eventPermissionsMap.set(e.raw,e));const t={};this.props.requestedCapabilities.forEach(e=>t[e]=!0),this.state={booleanStates:t,rememberSelection:!0}}closeAndTryRemember(e){var t,n;this.state.rememberSelection&&(t=this.props.widget,n=e,localStorage.setItem(`widget_${t.id}_approved_caps`,JSON.stringify(n))),this.props.onFinished({approved:e})}render(){const e=Object.entries(this.state.booleanStates).map(([e,t],n)=>{const o=f.for(e,this.props.widgetKind),r=o.byline?a.a.createElement("span",{className:"mx_WidgetCapabilitiesPromptDialog_byline"},o.byline):null;return a.a.createElement("div",{className:"mx_WidgetCapabilitiesPromptDialog_cap",key:e+n},a.a.createElement(u.a,{checked:t,onChange:()=>this.onToggle(e)},o.primary),r)});return a.a.createElement(s.a,{className:"mx_WidgetCapabilitiesPromptDialog",onFinished:this.props.onFinished,title:Object(c.a)("Approve widget permissions")},a.a.createElement("form",{onSubmit:this.onSubmit},a.a.createElement("div",{className:"mx_Dialog_content"},a.a.createElement("div",{className:"text-muted"},Object(c.a)("This widget would like to:")),e,a.a.createElement(h.a,{primaryButton:Object(c.a)("Approve"),cancelButton:Object(c.a)("Decline All"),onPrimaryButtonClick:this.onSubmit,onCancel:this.onReject,additive:a.a.createElement(p.a,{value:this.state.rememberSelection,toggleInFront:!0,onChange:this.onRememberSelectionChange,label:Object(c.a)("Remember my selection for this widget")})}))))}})||_},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var o=n(83),r=n.n(o),i=n(82),a=n.n(i),s=n(86),c=n.n(s),l=n(88),d=n(93),u=n(719),h=n(84);var p,m,g,f=n(85);let _=Object(f.a)("views.rooms.PinnedEventsPanel")((g=m=class extends a.a.Component{constructor(...e){super(...e),r()(this,"state",{loading:!0}),r()(this,"_onStateEvent",e=>{e.getRoomId()===this.props.room.roomId&&"m.room.pinned_events"===e.getType()&&this._updatePinnedMessages()}),r()(this,"_updatePinnedMessages",()=>{const e=this.props.room.currentState.getStateEvents("m.room.pinned_events","");if(e&&e.getContent().pinned){const t=[],n=l.a.get();e.getContent().pinned.map(e=>{t.push(n.getEventTimeline(this.props.room.getUnfilteredTimelineSet(),e,0).then(t=>{const n=t.getEvents().find(t=>t.getId()===e);return{eventId:e,timeline:t,event:n}}).catch(t=>(console.error("Error looking up pinned event "+e+" in room "+this.props.room.roomId),console.error(t),null)))}),Promise.all(t).then(e=>{const t=e.filter(e=>class{static isPinnable(e){return!!e&&("m.room.message"===e.getType()&&!e.isRedacted())}}.isPinnable(e.event));this.setState({loading:!1,pinned:t})})}else this.setState({loading:!1,pinned:[]});this._updateReadState()})}componentDidMount(){this._updatePinnedMessages(),l.a.get().on("RoomState.events",this._onStateEvent)}componentWillUnmount(){l.a.get()&&l.a.get().removeListener("RoomState.events",this._onStateEvent)}_updateReadState(){const e=this.props.room.currentState.getStateEvents("m.room.pinned_events","");if(!e)return;let t=[];const n=this.props.room.getAccountData("im.vector.room.read_pins");n&&n.getContent()&&(t=n.getContent().event_ids||[]),t.includes(e.getId())||(t.push(e.getId()),t=t.reverse().splice(0,10).reverse(),l.a.get().setRoomAccountData(this.props.room.roomId,"im.vector.room.read_pins",{event_ids:t}))}_getPinnedTiles(){return 0===this.state.pinned.length?a.a.createElement("div",null,Object(h.a)("No pinned messages.")):this.state.pinned.map(e=>a.a.createElement(u.a,{key:e.event.getId(),mxRoom:this.props.room,mxEvent:e.event,onUnpinned:this._updatePinnedMessages}))}render(){let e=a.a.createElement("div",null,Object(h.a)("Loading..."));return this.state&&!this.state.loading&&(e=this._getPinnedTiles()),a.a.createElement("div",{className:"mx_PinnedEventsPanel"},a.a.createElement("div",{className:"mx_PinnedEventsPanel_body"},a.a.createElement(d.a,{className:"mx_PinnedEventsPanel_cancel",onClick:this.props.onCancelClick},a.a.createElement("img",{className:"mx_filterFlipColor",src:n(262),width:"18",height:"18"})),a.a.createElement("h3",{className:"mx_PinnedEventsPanel_header"},Object(h.a)("Pinned Messages")),e))}},r()(m,"propTypes",{room:c.a.object.isRequired,onCancelClick:c.a.func}),p=g))||p},function(e,t,n){"use strict";n.d(t,"a",(function(){return D}));var o=n(83),r=n.n(o),i=n(82),a=n.n(i),s=n(86),c=n.n(s),l=n(92),d=n.n(l),u=n(294),h=n(298),p=n(89),m=n(87),g=n(603),f=n(132),_=n(249),b=n(167),v=n(90),y=n(658),E=n(469),S=n(471),w=n(470),C=n(173),T=n(342);var x,O,k,R=n(85);let D=Object(R.a)("views.rooms.AppsDrawer")((k=O=class extends a.a.Component{constructor(e){super(e),r()(this,"onIsResizing",e=>{this.setState({resizingVertical:e}),e||this._relaxResizer()}),r()(this,"_collectResizer",e=>{this._resizeContainer&&this.resizer.detach(),e&&(this.resizer.container=e,this.resizer.attach()),this._resizeContainer=e,this._loadResizerPreferences()}),r()(this,"_getAppsHash",e=>e.map(e=>e.id).join("~")),r()(this,"_relaxResizer",()=>{const e=this.resizer.getDistributors();e.forEach(e=>e.start()),e.forEach(e=>e.finish())}),r()(this,"_loadResizerPreferences",()=>{const e=C.d.instance.getResizerDistributions(this.props.room,C.a.Top);if(this.state.apps&&this.state.apps.length-1===e.length)e.forEach((e,t)=>{const n=this.resizer.forHandleAt(t);n&&(n.size=e,n.finish())});else if(this.state.apps){const e=this.resizer.getDistributors();e.forEach(e=>e.item.clearSize()),e.forEach(e=>e.start()),e.forEach(e=>e.finish())}}),r()(this,"onAction",e=>{const t=this.props.room.roomId+"_hide_widget_drawer";switch(e.action){case"appsDrawer":e.show?localStorage.setItem(t,"false"):localStorage.setItem(t,"true")}}),r()(this,"_getApps",()=>C.d.instance.getContainerWidgets(this.props.room,C.a.Top)),r()(this,"_updateApps",()=>{this.setState({apps:this._getApps()})}),this.state={apps:this._getApps(),resizingVertical:!1,resizingHorizontal:!1},this._resizeContainer=null,this.resizer=this._createResizer(),this.props.resizeNotifier.on("isResizing",this.onIsResizing)}componentDidMount(){g.b(),C.d.instance.on(C.d.emissionForRoom(this.props.room),this._updateApps),this.dispatcherRef=p.a.register(this.onAction)}componentWillUnmount(){g.c(),C.d.instance.off(C.d.emissionForRoom(this.props.room),this._updateApps),this.dispatcherRef&&p.a.unregister(this.dispatcherRef),this._resizeContainer&&this.resizer.detach(),this.props.resizeNotifier.off("isResizing",this.onIsResizing)}UNSAFE_componentWillReceiveProps(e){this._updateApps()}_createResizer(){const e={onResizeStart:()=>{this._resizeContainer.classList.add("mx_AppsDrawer_resizing"),this.setState({resizingHorizontal:!0})},onResizeStop:()=>{this._resizeContainer.classList.remove("mx_AppsDrawer_resizing"),C.d.instance.setResizerDistributions(this.props.room,C.a.Top,this.state.apps.slice(1).map((e,t)=>this.resizer.forHandleAt(t).size)),this.setState({resizingHorizontal:!1})}},t=new S.a({},w.a,e);return t.setClassNames({handle:"mx_ResizeHandle",vertical:"mx_ResizeHandle_vertical",reverse:"mx_ResizeHandle_reverse"}),t}componentDidUpdate(e,t){this._getAppsHash(this.state.apps)!==this._getAppsHash(t.apps)&&this._loadResizerPreferences()}isResizing(){return this.state.resizingVertical||this.state.resizingHorizontal}_launchManageIntegrations(){v.b.getValue("feature_many_integration_managers")?b.a.sharedInstance().openAll():b.a.sharedInstance().getPrimaryManager().open(this.props.room,"add_integ")}render(){if(!this.props.showApps)return a.a.createElement("div",null);const e=this.state.apps.map((e,t,n)=>a.a.createElement(h.a,{key:e.id,app:e,fullWidth:n.length<2,room:this.props.room,userId:this.props.userId,creatorUserId:e.creatorUserId,widgetPageTitle:f.a.getWidgetDataTitle(e),waitForIframeLoad:e.waitForIframeLoad,pointerEvents:this.isResizing()?"none":void 0}));if(0===e.length)return a.a.createElement("div",null);let t;if(0===e.length&&_.a.roomHasPendingWidgets(this.props.room.roomId,f.a.getRoomWidgets(this.props.room))){const e=m.getComponent("elements.Spinner");t=a.a.createElement(e,null)}const n=d()({mx_AppsDrawer:!0,mx_AppsDrawer_fullWidth:e.length<2,mx_AppsDrawer_resizing:this.state.resizing,mx_AppsDrawer_2apps:2===e.length,mx_AppsDrawer_3apps:3===e.length});return a.a.createElement("div",{className:n},a.a.createElement(I,{room:this.props.room,minHeight:100,maxHeight:this.props.maxHeight?this.props.maxHeight-50:void 0,handleClass:"mx_AppsContainer_resizerHandle",handleWrapperClass:"mx_AppsContainer_resizerHandleContainer",className:"mx_AppsContainer_resizer",resizeNotifier:this.props.resizeNotifier},a.a.createElement("div",{className:"mx_AppsContainer",ref:this._collectResizer},e.map((t,n)=>n<1?t:a.a.createElement(a.a.Fragment,{key:t.key},a.a.createElement(E.a,{reverse:n>e.length/2}),t)))),t)}},r()(O,"propTypes",{userId:c.a.string.isRequired,room:c.a.object.isRequired,resizeNotifier:c.a.instanceOf(y.a).isRequired,showApps:c.a.bool}),r()(O,"defaultProps",{showApps:!0}),x=k))||x;const I=({room:e,minHeight:t,maxHeight:n,className:o,handleWrapperClass:r,handleClass:s,resizeNotifier:c,children:l})=>{let d=C.d.instance.getContainerHeight(e,C.a.Top);t||(t=100),n||(n=window.innerHeight/4*3),d?(d=Object(T.a)(d,0,100),d=Object(T.d)(d/100,t,n)):d=280;const[h,p]=((e,t)=>{const[n,o]=Object(i.useState)(e);return[n,e=>{o(e),t(e)}]})(d,o=>{o=100*Object(T.c)(o,t,n),C.d.instance.setContainerHeight(e,C.a.Top,o)});return a.a.createElement(u.Resizable,{size:{height:Math.min(h,n)},minHeight:t,maxHeight:n,onResizeStart:()=>{c.startResizing()},onResize:()=>{c.notifyTimelineHeightChanged()},onResizeStop:(e,t,n,o)=>{p(h+o.height),c.stopResizing()},handleWrapperClass:r,handleClasses:{bottom:s},className:o,enable:{bottom:!0}},l)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return Y}));var o=n(83),r=n.n(o),i=n(82),a=n.n(i),s=n(110),c=n(97),l=n(123),d=n(84),u=n(93),h=n(200),p=n(345),m=n(199),g=n(145),f=n(479),_=n(136),b=n(104),v=n(129),y=n(158),E=n(194),S=n(89),w=n(96),C=n(353),T=n(480),x=n(354),O=n(260),k=n(118);const R=(e,t)=>{const[n,o]=Object(i.useState)(()=>Array.isArray(t)?t:new Array(e).fill(t));return[n,(e,t)=>o(n=>{const o=[...n];return o[e]=t,o})]};var D,I=n(446),A=n(291),N=n(728),F=n(174),M=n(485),P=n(147),L=n(730);!function(e){e[e.Landing=0]="Landing",e[e.PublicCreateRooms=1]="PublicCreateRooms",e[e.PublicShare=2]="PublicShare",e[e.PrivateScope=3]="PrivateScope",e[e.PrivateInvite=4]="PrivateInvite",e[e.PrivateCreateRooms=5]="PrivateCreateRooms",e[e.PrivateExistingRooms=6]="PrivateExistingRooms"}(D||(D={}));const j=({room:e,children:t})=>{const n=Object(f.b)(e).length;return t?t(n):n},U=e=>{const[t,n]=Object(i.useState)(e.getMyMembership());return Object(v.a)(e,"Room.myMembership",()=>{n(e.getMyMembership())}),t},B=({space:e})=>{const t=e.getJoinRule();let n;return n="public"===t?a.a.createElement("span",{className:"mx_SpaceRoomView_info_public"},Object(d.a)("Public space")):a.a.createElement("span",{className:"mx_SpaceRoomView_info_private"},Object(d.a)("Private space")),a.a.createElement("div",{className:"mx_SpaceRoomView_info"},n,"public"===t&&a.a.createElement(j,{room:e},t=>t>0?a.a.createElement(u.a,{kind:"link",onClick:()=>{S.a.dispatch({action:w.a.SetRightPanelPhase,phase:k.c.RoomMemberList,refireParams:{space:e}})}},Object(d.a)("%(count)s members",{count:t})):null))},q=({space:e,onJoinButtonClicked:t,onRejectButtonClicked:n})=>{const o=Object(i.useContext)(c.a),r=U(e),[s,g]=Object(i.useState)(!1);let f,_;if("invite"===r){var b,v;const r=null===(b=e.getMember(o.getUserId()))||void 0===b||null===(v=b.events.member)||void 0===v?void 0:v.getSender(),i=r&&e.getMember(r);r&&(f=a.a.createElement("div",{className:"mx_SpaceRoomView_preview_inviter"},a.a.createElement(F.a,{member:i,width:32,height:32}),a.a.createElement("div",null,a.a.createElement("div",{className:"mx_SpaceRoomView_preview_inviter_name"},Object(d.a)("<inviter/> invites you",{},{inviter:()=>a.a.createElement("b",null,i.name||r)})),i?a.a.createElement("div",{className:"mx_SpaceRoomView_preview_inviter_mxid"},r):null))),_=a.a.createElement(a.a.Fragment,null,a.a.createElement(u.a,{kind:"secondary",onClick:()=>{g(!0),n()}},Object(d.a)("Reject")),a.a.createElement(u.a,{kind:"primary",onClick:()=>{g(!0),t()}},Object(d.a)("Accept")))}else _=a.a.createElement(u.a,{kind:"primary",onClick:()=>{g(!0),t()}},Object(d.a)("Join"));return s&&(_=a.a.createElement(m.a,null)),a.a.createElement("div",{className:"mx_SpaceRoomView_preview"},f,a.a.createElement(l.a,{room:e,height:80,width:80,viewAvatarOnClick:!0}),a.a.createElement("h1",{className:"mx_SpaceRoomView_preview_name"},a.a.createElement(h.a,{room:e})),a.a.createElement(B,{space:e}),a.a.createElement(p.a,{room:e},(e,t)=>a.a.createElement("div",{className:"mx_SpaceRoomView_preview_topic",ref:t},e)),"public"===e.getJoinRule()&&a.a.createElement(L.a,{room:e}),a.a.createElement("div",{className:"mx_SpaceRoomView_preview_joinButtons"},_))},G=({space:e})=>{const t=Object(i.useContext)(c.a),n=U(e),o=t.getUserId();let r;"join"===n&&e.canInvite(o)&&(r=a.a.createElement(u.a,{kind:"primary",className:"mx_SpaceRoomView_landing_inviteButton",onClick:()=>{Object(g.g)(e.roomId)}},Object(d.a)("Invite")));const m="join"===n&&e.currentState.maySendStateEvent(s.a.SpaceChild,o),[f,_]=Object(M.a)(!1);let b,v;m&&(b=a.a.createElement(a.a.Fragment,null,a.a.createElement(u.a,{className:"mx_SpaceRoomView_landing_addButton",onClick:async()=>{const[n]=await Object(A.c)(t,e);n&&_()}},Object(d.a)("Add existing rooms & spaces")),a.a.createElement(u.a,{className:"mx_SpaceRoomView_landing_createButton",onClick:()=>{Object(A.d)(t,e)}},Object(d.a)("Create a new room")))),Object(A.b)(t,e)&&(v=a.a.createElement(u.a,{className:"mx_SpaceRoomView_landing_settingsButton",onClick:()=>{Object(A.f)(t,e)}},Object(d.a)("Settings")));return a.a.createElement("div",{className:"mx_SpaceRoomView_landing"},a.a.createElement(l.a,{room:e,height:80,width:80,viewAvatarOnClick:!0}),a.a.createElement("div",{className:"mx_SpaceRoomView_landing_name"},a.a.createElement(h.a,{room:e},e=>{const t={name:()=>a.a.createElement("div",{className:"mx_SpaceRoomView_landing_nameRow"},a.a.createElement("h1",null,e))};return Object(d.a)("Welcome to <name/>",{},t)})),a.a.createElement("div",{className:"mx_SpaceRoomView_landing_info"},a.a.createElement(B,{space:e}),a.a.createElement(L.a,{room:e,onlyKnownUsers:!1,numShown:7,onClick:()=>{S.a.dispatch({action:w.a.SetRightPanelPhase,phase:k.c.RoomMemberList,refireParams:{space:e}})}}),r),a.a.createElement("div",{className:"mx_SpaceRoomView_landing_topic"},a.a.createElement(p.a,{room:e})),a.a.createElement("hr",null),a.a.createElement("div",{className:"mx_SpaceRoomView_landing_adminButtons"},b,v),a.a.createElement(N.a,{space:e,showRoom:N.c,refreshToken:f}))},V=({space:e,title:t,description:n,onFinished:o})=>{const[r,s]=Object(i.useState)(!1),[c,l]=Object(i.useState)(""),h=[Object(d.a)("General"),Object(d.a)("Random"),Object(d.a)("Support")],[p,m]=R(3,[Object(d.a)("General"),Object(d.a)("Random"),""]),g=new Array(3).fill(0).map((e,t)=>{const n="roomName"+t;return a.a.createElement(b.a,{key:n,name:n,type:"text",label:Object(d.a)("Room name"),placeholder:h[t],value:p[t],onChange:e=>m(t,e.target.value),autoFocus:2===t})}),f=async()=>{l(""),s(!0);try{await Promise.all(p.map(e=>e.trim()).filter(Boolean).map(t=>Object(_.c)({createOpts:{preset:"public"===e.getJoinRule()?_.a.PublicChat:_.a.PrivateChat,name:t},spinner:!1,encryption:!1,andView:!1,inlineErrors:!0,parentSpace:e}))),o()}catch(e){console.error("Failed to create initial space rooms",e),l(Object(d.a)("Failed to create initial space rooms"))}s(!1)};let v=o,y=Object(d.a)("Skip for now");return p.some(e=>e.trim())&&(v=f,y=r?Object(d.a)("Creating rooms..."):Object(d.a)("Continue")),a.a.createElement("div",null,a.a.createElement("h1",null,t),a.a.createElement("div",{className:"mx_SpaceRoomView_description"},n),c&&a.a.createElement("div",{className:"mx_SpaceRoomView_errorText"},c),g,a.a.createElement("div",{className:"mx_SpaceRoomView_buttons"},a.a.createElement(u.a,{kind:"primary",disabled:r,onClick:v},y)))},H=({space:e,onFinished:t})=>a.a.createElement("div",{className:"mx_SpaceRoomView_publicShare"},a.a.createElement("h1",null,Object(d.a)("Share %(name)s",{name:e.name})),a.a.createElement("div",{className:"mx_SpaceRoomView_description"},Object(d.a)("It's just you at the moment, it will be even better with others.")),a.a.createElement(I.a,{space:e}),a.a.createElement("div",{className:"mx_SpaceRoomView_buttons"},a.a.createElement(u.a,{kind:"primary",onClick:t},Object(d.a)("Go to my first room")))),z=({space:e,onFinished:t})=>a.a.createElement("div",{className:"mx_SpaceRoomView_privateScope"},a.a.createElement("h1",null,Object(d.a)("Who are you working with?")),a.a.createElement("div",{className:"mx_SpaceRoomView_description"},Object(d.a)("Make sure the right people have access to %(name)s",{name:e.name})),a.a.createElement(u.a,{className:"mx_SpaceRoomView_privateScope_justMeButton",onClick:()=>{t(!1)}},a.a.createElement("h3",null,Object(d.a)("Just me")),a.a.createElement("div",null,Object(d.a)("A private space to organise your rooms"))),a.a.createElement(u.a,{className:"mx_SpaceRoomView_privateScope_meAndMyTeammatesButton",onClick:()=>{t(!0)}},a.a.createElement("h3",null,Object(d.a)("Me and my teammates")),a.a.createElement("div",null,Object(d.a)("A private space for you and your teammates")))),K=Object(y.a)({rules:[{key:"email",test:({value:e})=>!e||E.a(e),invalid:()=>Object(d.a)("Doesn't look like a valid email address")}]}),W=({space:e,onFinished:t})=>{const[n,o]=Object(i.useState)(!1),[r,s]=Object(i.useState)(""),c=[Object(i.useRef)(),Object(i.useRef)(),Object(i.useRef)()],[l,h]=R(3,""),p=new Array(3).fill(0).map((e,t)=>{const n="emailAddress"+t;return a.a.createElement(b.a,{key:n,name:n,type:"text",label:Object(d.a)("Email address"),placeholder:Object(d.a)("Email"),value:l[t],onChange:e=>h(t,e.target.value),ref:c[t],onValidate:K,autoFocus:0===t})}),m=async()=>{s("");for(let e=0;e<c.length;e++){const t=c[e];if(!1===await t.current.validate({allowEmpty:!0}))return t.current.focus(),void t.current.validate({allowEmpty:!0,focused:!0})}o(!0);const n=l.map(e=>e.trim()).filter(Boolean);try{const o=await Object(g.a)(e.roomId,n),r=Object.keys(o.states).filter(e=>"error"===o.states[e]);r.length>0?(console.log("Failed to invite users to space: ",o),s(Object(d.a)("Failed to invite the following users to your space: %(csvUsers)s",{csvUsers:r.join(", ")}))):t()}catch(e){console.error("Failed to invite users to space: ",e),s(Object(d.a)("We couldn't invite those users. Please check the users you want to invite and try again."))}o(!1)};let f=t,_=Object(d.a)("Skip for now");return l.some(e=>e.trim())&&(f=m,_=n?Object(d.a)("Inviting..."):Object(d.a)("Continue")),a.a.createElement("div",{className:"mx_SpaceRoomView_inviteTeammates"},a.a.createElement("h1",null,Object(d.a)("Invite your teammates")),a.a.createElement("div",{className:"mx_SpaceRoomView_description"},Object(d.a)("Make sure the right people have access. You can invite more later.")),r&&a.a.createElement("div",{className:"mx_SpaceRoomView_errorText"},r),p,a.a.createElement("div",{className:"mx_SpaceRoomView_inviteTeammates_buttons"},a.a.createElement(u.a,{className:"mx_SpaceRoomView_inviteTeammates_inviteDialogButton",onClick:()=>Object(g.g)(e.roomId)},Object(d.a)("Invite by username"))),a.a.createElement("div",{className:"mx_SpaceRoomView_buttons"},a.a.createElement(u.a,{kind:"primary",disabled:n,onClick:f},_)))};class Y extends a.a.PureComponent{constructor(e,t){var n;super(e,t),r()(this,"creator",void 0),r()(this,"dispatcherRef",void 0),r()(this,"rightPanelStoreToken",void 0),r()(this,"onMyMembership",(e,t)=>{e.roomId===this.props.space.roomId&&this.setState({myMembership:t})}),r()(this,"onRightPanelStoreUpdate",()=>{this.setState({showRightPanel:O.a.getSharedInstance().isOpenForRoom})}),r()(this,"onAction",e=>{e.action!==w.a.ViewUser&&"view_3pid_invite"!==e.action||(e.action===w.a.ViewUser&&e.member?S.a.dispatch({action:w.a.SetRightPanelPhase,phase:k.c.SpaceMemberInfo,refireParams:{space:this.props.space,member:e.member}}):"view_3pid_invite"===e.action&&e.event?S.a.dispatch({action:w.a.SetRightPanelPhase,phase:k.c.Space3pidMemberInfo,refireParams:{space:this.props.space,event:e.event}}):S.a.dispatch({action:w.a.SetRightPanelPhase,phase:k.c.SpaceMemberList,refireParams:{space:this.props.space}}))}),r()(this,"goToFirstRoom",async()=>{const e=P.e.instance.getChildRooms(this.props.space.roomId);if(e.length){const t=e[0];return void S.a.dispatch({action:"view_room",room_id:t.roomId})}let t=P.e.instance.suggestedRooms;if(P.e.instance.activeSpace!==this.props.space&&(t=(await P.e.instance.fetchSuggestedRooms(this.props.space,1)).rooms),t.length){const e=t[0];S.a.dispatch({action:"view_room",room_id:e.room_id,oobData:{avatarUrl:e.avatar_url,name:e.name||e.canonical_alias||e.aliases.pop()||Object(d.a)("Empty room")}})}else this.setState({phase:D.Landing})});let o=D.Landing;this.creator=null===(n=this.props.space.currentState.getStateEvents(s.a.RoomCreate,""))||void 0===n?void 0:n.getSender();this.props.justCreatedOpts&&this.context.getUserId()===this.creator&&(o=this.props.justCreatedOpts.createOpts.preset===_.a.PublicChat?D.PublicCreateRooms:D.PrivateScope),this.state={phase:o,showRightPanel:O.a.getSharedInstance().isOpenForRoom,myMembership:this.props.space.getMyMembership()},this.dispatcherRef=S.a.register(this.onAction),this.rightPanelStoreToken=O.a.getSharedInstance().addListener(this.onRightPanelStoreUpdate),this.context.on("Room.myMembership",this.onMyMembership)}componentWillUnmount(){S.a.unregister(this.dispatcherRef),this.rightPanelStoreToken.remove(),this.context.off("Room.myMembership",this.onMyMembership)}renderBody(){switch(this.state.phase){case D.Landing:return"join"===this.state.myMembership?a.a.createElement(G,{space:this.props.space}):a.a.createElement(q,{space:this.props.space,onJoinButtonClicked:this.props.onJoinButtonClicked,onRejectButtonClicked:this.props.onRejectButtonClicked});case D.PublicCreateRooms:return a.a.createElement(V,{space:this.props.space,title:Object(d.a)("What are some things you want to discuss in %(spaceName)s?",{spaceName:this.props.space.name}),description:Object(d.a)("Let's create a room for each of them.")+"\n"+Object(d.a)("You can add more later too, including already existing ones."),onFinished:()=>this.setState({phase:D.PublicShare})});case D.PublicShare:return a.a.createElement(H,{space:this.props.space,onFinished:this.goToFirstRoom});case D.PrivateScope:return a.a.createElement(z,{space:this.props.space,onFinished:e=>{this.setState({phase:e?D.PrivateInvite:D.PrivateCreateRooms})}});case D.PrivateInvite:return a.a.createElement(W,{space:this.props.space,onFinished:()=>this.setState({phase:D.PrivateCreateRooms})});case D.PrivateCreateRooms:return a.a.createElement(V,{space:this.props.space,title:Object(d.a)("What projects are you working on?"),description:Object(d.a)("We'll create rooms for each of them. You can add more later too, including already existing ones."),onFinished:()=>this.setState({phase:D.Landing})})}}render(){const e=this.state.showRightPanel&&this.state.phase===D.Landing?a.a.createElement(x.a,{room:this.props.space,resizeNotifier:this.props.resizeNotifier}):null;return a.a.createElement("main",{className:"mx_SpaceRoomView"},a.a.createElement(T.a,null,a.a.createElement(C.a,{panel:e,resizeNotifier:this.props.resizeNotifier},this.renderBody())))}}r()(Y,"contextType",c.a)},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return u}));var o=n(83),r=n.n(o),i=n(1261),a=n.n(i);class s{constructor(e){r()(this,"_regex",void 0);const t=a()(e,{extended:!1,globstar:!1}).toString().replace(/\\\?/g,".");this._regex=new RegExp(t.substring(1,t.length-1))}test(e){return this._regex.test(e)}}const c="m.ban",l=[c,"org.matrix.mjolnir.ban"];function d(e,t=!0){return l.includes(e)?t?l[l.length-1]:c:null}class u{constructor(e,t,n,o){r()(this,"_glob",void 0),r()(this,"_entity",void 0),r()(this,"_action",void 0),r()(this,"_reason",void 0),r()(this,"_kind",void 0),this._glob=new s(e),this._entity=e,this._action=d(t,!1),this._reason=n,this._kind=o}get entity(){return this._entity}get reason(){return this._reason}get kind(){return this._kind}get recommendation(){return this._action}isMatch(e){return this._glob.test(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(83),r=n.n(o);class i{constructor(e){this.tagId=e,r()(this,"_n",0),r()(this,"_previews",!1),r()(this,"_collapsed",!1);const t=localStorage.getItem(this.key);if(t){const e=JSON.parse(t);this._n=e.numTiles,this._previews=e.showPreviews,this._collapsed=e.collapsed}}get isCollapsed(){return this._collapsed}set isCollapsed(e){this._collapsed=e,this.save()}get showPreviews(){return this._previews}set showPreviews(e){this._previews=e,this.save()}get tileHeight(){return 44}get key(){return`mx_sublist_layout_${this.tagId}_boxed`}get visibleTiles(){return 0===this._n?this.defaultVisibleTiles:Math.max(this._n,this.minVisibleTiles)}set visibleTiles(e){this._n=e,this.save()}get minVisibleTiles(){return 1}get defaultVisibleTiles(){return 8}tilesWithPadding(e,t){return this.pixelsToTiles(this.tilesToPixelsWithPadding(e,t))}tilesToPixelsWithPadding(e,t){return this.tilesToPixels(e)+t}tilesToPixels(e){return e*this.tileHeight}pixelsToTiles(e){return e/this.tileHeight}reset(){localStorage.removeItem(this.key)}save(){localStorage.setItem(this.key,JSON.stringify(this.serialize()))}serialize(){return{numTiles:this.visibleTiles,showPreviews:this.showPreviews,collapsed:this.isCollapsed}}}var a=n(141),s=n(89);class c extends a.a{constructor(){super(s.a),r()(this,"layoutMap",new Map)}static get instance(){return c.internalInstance||(c.internalInstance=new c),c.internalInstance}ensureLayoutExists(e){this.layoutMap.has(e)||this.layoutMap.set(e,new i(e))}getLayoutFor(e){return this.layoutMap.has(e)||this.layoutMap.set(e,new i(e)),this.layoutMap.get(e)}async resetLayouts(){console.warn("Resetting layouts for room list");for(const e of this.layoutMap.values())e.reset()}async onNotReady(){this.layoutMap.clear()}async onAction(e){return Promise.resolve()}}r()(c,"internalInstance",void 0),window.mxRoomListLayoutStore=c.instance},function(e,t,n){"use strict";n.d(t,"a",(function(){return A})),n.d(t,"b",(function(){return N}));var o=n(83),r=n.n(o),i=n(3),a=n(745),s=n(7),c=n(250),l=n(126),d=n(88),u=n(206),h=n(132),p=n(167),m=n(90),g=n(138),f=n(288),_=n(128),b=n(89),v=n(5),y=n(141),E=n(91),S=n(697);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}class T extends y.a{constructor(){super(b.a,{}),r()(this,"modalInstance",null),r()(this,"openSourceWidgetId",null),r()(this,"canOpenModalWidget",()=>!this.modalInstance),r()(this,"openModalWidget",(e,t,n)=>{this.modalInstance||(this.openSourceWidgetId=t.id,this.modalInstance=E.a.createTrackedDialog("Modal Widget","",S.a,{widgetDefinition:C({},e),widgetRoomId:n,sourceWidgetId:t.id,onFinished:(e,n)=>{e?this.closeModalWidget(t,n):this.closeModalWidget(t,{"m.exited":!0}),this.openSourceWidgetId=null,this.modalInstance=null}},null,!1,!0))}),r()(this,"closeModalWidget",(e,t)=>{if(this.modalInstance&&this.openSourceWidgetId===e.id){this.openSourceWidgetId=null,this.modalInstance.close(),this.modalInstance=null;const n=c.a.instance.getMessaging(e);if(!n)return void console.error("No source widget messaging for modal widget");n.notifyModalWidgetClose(t)}})}static get instance(){return T.internalInstance}async onAction(e){}}r()(T,"internalInstance",new T),window.mxModalWidgetStore=T.instance;var x=n(344),O=n(253),k=n(108),R=n(696);function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){r()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}class A extends i.Widget{constructor(e){super(e),this.rawDefinition=e}get templateUrl(){var e;return g.a.JITSI.matches(this.type)?h.a.getLocalJitsiWrapperUrl({forLocalRender:!0,auth:null===(e=super.rawData)||void 0===e?void 0:e.auth}):super.templateUrl}get popoutTemplateUrl(){var e;return g.a.JITSI.matches(this.type)?h.a.getLocalJitsiWrapperUrl({forLocalRender:!1,auth:null===(e=super.rawData)||void 0===e?void 0:e.auth}):this.templateUrl}get rawData(){let e=super.rawData.conferenceId;if(void 0===e){e=new URL(super.templateUrl).searchParams.get("confId")}let t=super.rawData.domain;void 0===t&&(t="jitsi.riot.im");let n=(new x.a).getEffectiveTheme();if(n.startsWith("custom-")){const e=Object(O.c)(n.substr(7));n=e.is_dark?"dark":"light"}return n=n.includes("light")?"light":"dark",I(I({},super.rawData),{},{theme:n,conferenceId:e,domain:t})}getCompleteUrl(e,t=!1){return Object(i.runTemplate)(t?this.popoutTemplateUrl:this.templateUrl,I(I({},this.rawDefinition),{},{data:this.rawData}),e)}}class N extends s.EventEmitter{constructor(e){var t;super(),this.appTileProps=e,r()(this,"messaging",void 0),r()(this,"mockWidget",void 0),r()(this,"scalarToken",void 0),r()(this,"roomId",void 0),r()(this,"kind",void 0),r()(this,"onOpenModal",async e=>{e.preventDefault(),T.instance.canOpenModalWidget()?(T.instance.openModalWidget(e.detail.data,this.mockWidget),this.messaging.transport.reply(e.detail,{})):this.messaging.transport.reply(e.detail,{error:{message:"Unable to open modal at this time"}})}),r()(this,"onEvent",e=>{e.isBeingDecrypted()||e.isDecryptionFailure()||e.getRoomId()===this.eventListenerRoomId&&this.feedEvent(e)}),r()(this,"onEventDecrypted",e=>{e.isDecryptionFailure()||e.getRoomId()===this.eventListenerRoomId&&this.feedEvent(e)});let n=e.app;n.creatorUserId||(n=Object(_.f)(n),n.creatorUserId=d.a.get().getUserId()),this.mockWidget=new A(n),this.roomId=null===(t=e.room)||void 0===t?void 0:t.roomId,this.kind=e.userWidget?i.WidgetKind.Account:i.WidgetKind.Room}get eventListenerRoomId(){return this.roomId?this.roomId:l.a.getRoomId()}get widgetApi(){return this.messaging}get embedUrl(){return this.runUrlTemplate({asPopout:!1})}get popoutUrl(){return this.runUrlTemplate({asPopout:!0})}runUrlTemplate(e={asPopout:!1}){const t=this.mockWidget.getCompleteUrl({widgetRoomId:this.roomId,currentUserId:d.a.get().getUserId(),userDisplayName:u.a.instance.displayName,userHttpAvatarUrl:u.a.instance.getHttpAvatarUrl()},null==e?void 0:e.asPopout),n=new URL(t);return null!=e&&e.asPopout||(n.searchParams.set("widgetId",this.mockWidget.id),n.searchParams.set("parentUrl",window.location.href.split("#",2)[0]),this.scalarToken&&n.searchParams.set("scalar_token",this.scalarToken)),n.toString().replace(/%24/g,"$")}get isManagedByManager(){return!!this.scalarToken}get started(){return!!this.messaging}get widgetId(){return this.messaging.widget.id}start(e){if(this.started)return;const t=this.appTileProps.whitelistCapabilities||[],n=new a.a(t,this.mockWidget,this.kind,this.roomId);this.messaging=new i.ClientWidgetApi(this.mockWidget,e,n),this.messaging.on("preparing",()=>this.emit("preparing")),this.messaging.on("ready",()=>this.emit("ready")),this.messaging.on("action:"+i.WidgetApiFromWidgetAction.OpenModalWidget,this.onOpenModal),c.a.instance.storeMessaging(this.mockWidget,this.messaging),!this.appTileProps.userWidget&&this.appTileProps.room&&f.a.setRoomId(this.mockWidget.id,this.appTileProps.room.roomId),this.messaging.on("action:"+v.a.ViewRoom,e=>{e.preventDefault();const t=(e.detail.data||{}).room_id;return t?this.messaging.hasCapability(R.a.CanChangeViewedRoom)?(b.a.dispatch({action:"view_room",room_id:t}),void this.messaging.transport.reply(e.detail,{})):this.messaging.transport.reply(e.detail,{error:{message:"This widget does not have permission for this action (denied)."}}):this.messaging.transport.reply(e.detail,{error:{message:"Room ID not supplied."}})}),d.a.get().on("event",this.onEvent),d.a.get().on("Event.decrypted",this.onEventDecrypted),this.messaging.on("action:"+i.WidgetApiFromWidgetAction.UpdateAlwaysOnScreen,e=>{this.messaging.hasCapability(i.MatrixCapabilities.AlwaysOnScreen)&&(g.a.JITSI.matches(this.mockWidget.type)&&k.a.instance.trackJoinCall(this.appTileProps.room.roomId,!0,!0),f.a.setWidgetPersistence(this.mockWidget.id,e.detail.data.value),e.preventDefault(),this.messaging.transport.reply(e.detail,{}))}),this.messaging.on("action:"+i.WidgetApiFromWidgetAction.SendSticker,e=>{this.messaging.hasCapability(i.MatrixCapabilities.StickerSending)&&(e.preventDefault(),this.messaging.transport.reply(e.detail,{}),b.a.dispatch({action:"m.sticker",data:e.detail.data,widgetId:this.mockWidget.id}))}),g.a.STICKERPICKER.matches(this.mockWidget.type)&&this.messaging.on("action:"+v.a.OpenIntegrationManager,e=>{e.preventDefault(),this.messaging.transport.reply(e.detail,{}),b.a.dispatch({action:"stickerpicker_close"});const t=e.detail.data,n=null==t?void 0:t.integType,o=null==t?void 0:t.integId;m.b.getValue("feature_many_integration_managers")?p.a.sharedInstance().openAll(d.a.get().getRoom(l.a.getRoomId()),"type_"+n,o):p.a.sharedInstance().getPrimaryManager().open(d.a.get().getRoom(l.a.getRoomId()),"type_"+n,o)})}async prepare(){if(this.scalarToken)return;const e=c.a.instance.getMessaging(this.mockWidget);e&&(this.messaging=e);try{if(h.a.isScalarUrl(this.mockWidget.templateUrl)){const e=p.a.sharedInstance();if(e.hasManager()){const t=e.getPrimaryManager();if(h.a.isScalarUrl(t.apiUrl)){const e=t.getScalarClient();this.scalarToken=await e.getScalarToken()}}}}catch(e){console.error("Error preparing widget communications: ",e)}}stop(e={forceDestroy:!1}){null!=e&&e.forceDestroy||f.a.getPersistentWidgetId()!==this.mockWidget.id?this.started&&(c.a.instance.stopMessaging(this.mockWidget),f.a.delRoomId(this.mockWidget.id),d.a.get()&&(d.a.get().off("event",this.onEvent),d.a.get().off("Event.decrypted",this.onEventDecrypted))):console.log("Skipping destroy - persistent widget")}feedEvent(e){if(!this.messaging)return;const t=e.event;this.messaging.feedEvent(t).catch(e=>{console.error("Error sending event to widget: ",e)})}}},function(e,t,n){"use strict";t.a=n.p+"olm.9ddeb6b.wasm"},function(e,t){var n,o,r,i,a,s,c=(a={},r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(r=r||__filename),s=function(t){var i,s,c;if(t=t||{},i||(i=void 0!==t?t:{}),i.ready=new Promise((function(e){s=e})),"undefined"!=typeof window)c=function(e){window.crypto.getRandomValues(e)};else{if(!e.exports)throw Error("Cannot find global to attach library to");var l=require("crypto");c=function(e){var t=l.randomBytes(e.length);e.set(t)},process=global.process}if("undefined"!=typeof OLM_OPTIONS)for(var d in OLM_OPTIONS)OLM_OPTIONS.hasOwnProperty(d)&&(i[d]=OLM_OPTIONS[d]);i.onRuntimeInitialized=function(){Oe=i._olm_error(),a.PRIVATE_KEY_LENGTH=i._olm_pk_private_key_length(),n&&n()},i.onAbort=function(e){o&&o(e)};var u,h,p,m,g,f={};for(u in i)i.hasOwnProperty(u)&&(f[u]=i[u]);h="object"==typeof window,p="function"==typeof importScripts,m="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,g=!h&&!m&&!p;var _,b,v,y,E="";m?(E=p?require("path").dirname(E)+"/":__dirname+"/",_=function(e,t){return v||(v=require("fs")),y||(y=require("path")),e=y.normalize(e),v.readFileSync(e,t?null:"utf8")},b=function(e){return(e=_(e,!0)).buffer||(e=new Uint8Array(e)),e.buffer||te("Assertion failed: undefined"),e},1<process.argv.length&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),process.on("uncaughtException",(function(e){throw e})),process.on("unhandledRejection",te),i.inspect=function(){return"[Emscripten Module object]"}):g?("undefined"!=typeof read&&(_=function(e){return read(e)}),b=function(e){return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):("object"==typeof(e=read(e,"binary"))||te("Assertion failed: undefined"),e)},"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(h||p)&&(p?E=self.location.href:document.currentScript&&(E=document.currentScript.src),r&&(E=r),E=0!==E.indexOf("blob:")?E.substr(0,E.lastIndexOf("/")+1):"",_=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(b=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}));var S,w=i.print||console.log.bind(console),C=i.printErr||console.warn.bind(console);for(u in f)f.hasOwnProperty(u)&&(i[u]=f[u]);function T(e){var t="i8";switch("*"===t.charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":P[e>>0]=0;break;case"i16":j[e>>1]=0;break;case"i32":U[e>>2]=0;break;case"i64":re=[0,1<=+Q(0)?~~+J(0)>>>0:0],U[e>>2]=re[0],U[e+4>>2]=re[1];break;case"float":B[e>>2]=0;break;case"double":q[e>>3]=0;break;default:te("invalid type for setValue: "+t)}}function x(e,t){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return P[e>>0];case"i16":return j[e>>1];case"i32":case"i64":return U[e>>2];case"float":return B[e>>2];case"double":return q[e>>3];default:te("invalid type for getValue: "+t)}return null}f=null,i.wasmBinary&&(S=i.wasmBinary),i.noExitRuntime&&i.noExitRuntime,"object"!=typeof WebAssembly&&te("no native wasm support detected");var O,k=new WebAssembly.Table({initial:9,maximum:9,element:"anyfunc"}),R=!1,D="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function I(e,t){if(e){var n=L,o=e+t;for(t=e;n[t]&&!(t>=o);)++t;if(16<t-e&&n.subarray&&D)e=D.decode(n.subarray(e,t));else{for(o="";e<t;){var r=n[e++];if(128&r){var i=63&n[e++];if(192==(224&r))o+=String.fromCharCode((31&r)<<6|i);else{var a=63&n[e++];65536>(r=224==(240&r)?(15&r)<<12|i<<6|a:(7&r)<<18|i<<12|a<<6|63&n[e++])?o+=String.fromCharCode(r):(r-=65536,o+=String.fromCharCode(55296|r>>10,56320|1023&r))}}else o+=String.fromCharCode(r)}e=o}}else e="";return e}function A(e,t,n,o){if(!(0<o))return 0;var r=n;o=n+o-1;for(var i=0;i<e.length;++i){var a=e.charCodeAt(i);if(55296<=a&&57343>=a&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i)),127>=a){if(n>=o)break;t[n++]=a}else{if(2047>=a){if(n+1>=o)break;t[n++]=192|a>>6}else{if(65535>=a){if(n+2>=o)break;t[n++]=224|a>>12}else{if(n+3>=o)break;t[n++]=240|a>>18,t[n++]=128|a>>12&63}t[n++]=128|a>>6&63}t[n++]=128|63&a}}return t[n]=0,n-r}function N(e){for(var t=0,n=0;n<e.length;++n){var o=e.charCodeAt(n);55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++n)),127>=o?++t:t=2047>=o?t+2:65535>=o?t+3:t+4}return t}function F(e,t){for(var n=0;n<e.length;++n)P[t++>>0]=e.charCodeAt(n)}var M,P,L,j,U,B,q,G=i.INITIAL_MEMORY||262144;(O=i.wasmMemory?i.wasmMemory:new WebAssembly.Memory({initial:G/65536,maximum:G/65536}))&&(M=O.buffer),G=M.byteLength;var V=M;function H(e){for(;0<e.length;){var t=e.shift();if("function"==typeof t)t(i);else{var n=t.Nb;"number"==typeof n?void 0===t.Mb?i.dynCall_v(n):i.dynCall_vi(n,t.Mb):n(void 0===t.Mb?null:t.Mb)}}}M=V,i.HEAP8=P=new Int8Array(V),i.HEAP16=j=new Int16Array(V),i.HEAP32=U=new Int32Array(V),i.HEAPU8=L=new Uint8Array(V),i.HEAPU16=new Uint16Array(V),i.HEAPU32=new Uint32Array(V),i.HEAPF32=B=new Float32Array(V),i.HEAPF64=q=new Float64Array(V),U[9584]=104032;var z=[],K=[],W=[],Y=[];function $(){var e=i.preRun.shift();z.unshift(e)}var Q=Math.abs,J=Math.ceil,X=(Math.floor,Math.min,0),Z=null,ee=null;function te(e){throw i.onAbort&&i.onAbort(e),w(e),C(e),R=!0,new WebAssembly.RuntimeError("abort("+e+"). Build with -s ASSERTIONS=1 for more info.")}function ne(e){var t=ie;return String.prototype.startsWith?t.startsWith(e):0===t.indexOf(e)}function oe(){return ne("data:application/octet-stream;base64,")}i.preloadedImages={},i.preloadedAudios={};var re,ie="olm.wasm";if(!oe()){var ae=ie;ie=i.locateFile?i.locateFile(ae,E):E+ae}function se(){try{if(S)return new Uint8Array(S);if(b)return b(ie);throw"both async and sync fetching of the wasm failed"}catch(e){te(e)}}K.push({Nb:function(){le()}});var ce={a:function(e,t,n){L.copyWithin(e,t,t+n)},b:function(){te("OOM")},memory:O,table:k};!function(){function e(e){i.asm=e.exports,X--,i.monitorRunDependencies&&i.monitorRunDependencies(X),0==X&&(null!==Z&&(clearInterval(Z),Z=null),ee&&(e=ee,ee=null,e()))}function t(t){e(t.instance)}function n(e){return(S||!h&&!p||"function"!=typeof fetch||ne("file://")?new Promise((function(e){e(se())})):fetch(ie,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ie+"'";return e.arrayBuffer()})).catch((function(){return se()}))).then((function(e){return WebAssembly.instantiate(e,o)})).then(e,(function(e){C("failed to asynchronously prepare wasm: "+e),te(e)}))}var o={a:ce};if(X++,i.monitorRunDependencies&&i.monitorRunDependencies(X),i.instantiateWasm)try{return i.instantiateWasm(o,e)}catch(e){return C("Module.instantiateWasm callback failed with error: "+e),!1}!function(){if(S||"function"!=typeof WebAssembly.instantiateStreaming||oe()||ne("file://")||"function"!=typeof fetch)return n(t);fetch(ie,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,o).then(t,(function(e){return C("wasm streaming compile failed: "+e),C("falling back to ArrayBuffer instantiation"),n(t)}))}))}()}();var le=i.___wasm_call_ctors=function(){return(le=i.___wasm_call_ctors=i.asm.c).apply(null,arguments)};i._olm_pk_encryption_last_error=function(){return(i._olm_pk_encryption_last_error=i.asm.d).apply(null,arguments)},i._olm_pk_encryption_size=function(){return(i._olm_pk_encryption_size=i.asm.e).apply(null,arguments)},i._olm_pk_encryption=function(){return(i._olm_pk_encryption=i.asm.f).apply(null,arguments)},i._olm_clear_pk_encryption=function(){return(i._olm_clear_pk_encryption=i.asm.g).apply(null,arguments)},i._olm_pk_encryption_set_recipient_key=function(){return(i._olm_pk_encryption_set_recipient_key=i.asm.h).apply(null,arguments)},i._olm_pk_key_length=function(){return(i._olm_pk_key_length=i.asm.i).apply(null,arguments)},i._olm_pk_ciphertext_length=function(){return(i._olm_pk_ciphertext_length=i.asm.j).apply(null,arguments)},i._olm_pk_mac_length=function(){return(i._olm_pk_mac_length=i.asm.k).apply(null,arguments)},i._olm_pk_encrypt_random_length=function(){return(i._olm_pk_encrypt_random_length=i.asm.l).apply(null,arguments)},i._olm_pk_encrypt=function(){return(i._olm_pk_encrypt=i.asm.m).apply(null,arguments)},i._olm_pk_decryption_last_error=function(){return(i._olm_pk_decryption_last_error=i.asm.n).apply(null,arguments)},i._olm_pk_decryption_size=function(){return(i._olm_pk_decryption_size=i.asm.o).apply(null,arguments)},i._olm_pk_decryption=function(){return(i._olm_pk_decryption=i.asm.p).apply(null,arguments)},i._olm_clear_pk_decryption=function(){return(i._olm_clear_pk_decryption=i.asm.q).apply(null,arguments)},i._olm_pk_private_key_length=function(){return(i._olm_pk_private_key_length=i.asm.r).apply(null,arguments)},i._olm_pk_generate_key_random_length=function(){return(i._olm_pk_generate_key_random_length=i.asm.s).apply(null,arguments)},i._olm_pk_key_from_private=function(){return(i._olm_pk_key_from_private=i.asm.t).apply(null,arguments)},i._olm_pk_generate_key=function(){return(i._olm_pk_generate_key=i.asm.u).apply(null,arguments)},i._olm_pickle_pk_decryption_length=function(){return(i._olm_pickle_pk_decryption_length=i.asm.v).apply(null,arguments)},i._olm_pickle_pk_decryption=function(){return(i._olm_pickle_pk_decryption=i.asm.w).apply(null,arguments)},i._olm_unpickle_pk_decryption=function(){return(i._olm_unpickle_pk_decryption=i.asm.x).apply(null,arguments)},i._olm_pk_max_plaintext_length=function(){return(i._olm_pk_max_plaintext_length=i.asm.y).apply(null,arguments)},i._olm_pk_decrypt=function(){return(i._olm_pk_decrypt=i.asm.z).apply(null,arguments)},i._olm_pk_get_private_key=function(){return(i._olm_pk_get_private_key=i.asm.A).apply(null,arguments)},i._olm_pk_signing_size=function(){return(i._olm_pk_signing_size=i.asm.B).apply(null,arguments)},i._olm_pk_signing=function(){return(i._olm_pk_signing=i.asm.C).apply(null,arguments)},i._olm_pk_signing_last_error=function(){return(i._olm_pk_signing_last_error=i.asm.D).apply(null,arguments)},i._olm_clear_pk_signing=function(){return(i._olm_clear_pk_signing=i.asm.E).apply(null,arguments)},i._olm_pk_signing_seed_length=function(){return(i._olm_pk_signing_seed_length=i.asm.F).apply(null,arguments)},i._olm_pk_signing_public_key_length=function(){return(i._olm_pk_signing_public_key_length=i.asm.G).apply(null,arguments)},i._olm_pk_signing_key_from_seed=function(){return(i._olm_pk_signing_key_from_seed=i.asm.H).apply(null,arguments)},i._olm_pk_signature_length=function(){return(i._olm_pk_signature_length=i.asm.I).apply(null,arguments)},i._olm_pk_sign=function(){return(i._olm_pk_sign=i.asm.J).apply(null,arguments)},i._olm_get_library_version=function(){return(i._olm_get_library_version=i.asm.K).apply(null,arguments)},i._olm_error=function(){return(i._olm_error=i.asm.L).apply(null,arguments)},i._olm_account_last_error=function(){return(i._olm_account_last_error=i.asm.M).apply(null,arguments)},i._olm_session_last_error=function(){return(i._olm_session_last_error=i.asm.N).apply(null,arguments)},i._olm_utility_last_error=function(){return(i._olm_utility_last_error=i.asm.O).apply(null,arguments)},i._olm_account_size=function(){return(i._olm_account_size=i.asm.P).apply(null,arguments)},i._olm_session_size=function(){return(i._olm_session_size=i.asm.Q).apply(null,arguments)},i._olm_utility_size=function(){return(i._olm_utility_size=i.asm.R).apply(null,arguments)},i._olm_account=function(){return(i._olm_account=i.asm.S).apply(null,arguments)},i._olm_session=function(){return(i._olm_session=i.asm.T).apply(null,arguments)},i._olm_utility=function(){return(i._olm_utility=i.asm.U).apply(null,arguments)},i._olm_clear_account=function(){return(i._olm_clear_account=i.asm.V).apply(null,arguments)},i._olm_clear_session=function(){return(i._olm_clear_session=i.asm.W).apply(null,arguments)},i._olm_clear_utility=function(){return(i._olm_clear_utility=i.asm.X).apply(null,arguments)},i._olm_pickle_account_length=function(){return(i._olm_pickle_account_length=i.asm.Y).apply(null,arguments)},i._olm_pickle_session_length=function(){return(i._olm_pickle_session_length=i.asm.Z).apply(null,arguments)},i._olm_pickle_account=function(){return(i._olm_pickle_account=i.asm._).apply(null,arguments)},i._olm_pickle_session=function(){return(i._olm_pickle_session=i.asm.$).apply(null,arguments)},i._olm_unpickle_account=function(){return(i._olm_unpickle_account=i.asm.aa).apply(null,arguments)},i._olm_unpickle_session=function(){return(i._olm_unpickle_session=i.asm.ba).apply(null,arguments)},i._olm_create_account_random_length=function(){return(i._olm_create_account_random_length=i.asm.ca).apply(null,arguments)},i._olm_create_account=function(){return(i._olm_create_account=i.asm.da).apply(null,arguments)},i._olm_account_identity_keys_length=function(){return(i._olm_account_identity_keys_length=i.asm.ea).apply(null,arguments)},i._olm_account_identity_keys=function(){return(i._olm_account_identity_keys=i.asm.fa).apply(null,arguments)},i._olm_account_signature_length=function(){return(i._olm_account_signature_length=i.asm.ga).apply(null,arguments)},i._olm_account_sign=function(){return(i._olm_account_sign=i.asm.ha).apply(null,arguments)},i._olm_account_one_time_keys_length=function(){return(i._olm_account_one_time_keys_length=i.asm.ia).apply(null,arguments)},i._olm_account_one_time_keys=function(){return(i._olm_account_one_time_keys=i.asm.ja).apply(null,arguments)},i._olm_account_mark_keys_as_published=function(){return(i._olm_account_mark_keys_as_published=i.asm.ka).apply(null,arguments)},i._olm_account_max_number_of_one_time_keys=function(){return(i._olm_account_max_number_of_one_time_keys=i.asm.la).apply(null,arguments)},i._olm_account_generate_one_time_keys_random_length=function(){return(i._olm_account_generate_one_time_keys_random_length=i.asm.ma).apply(null,arguments)},i._olm_account_generate_one_time_keys=function(){return(i._olm_account_generate_one_time_keys=i.asm.na).apply(null,arguments)},i._olm_account_generate_fallback_key_random_length=function(){return(i._olm_account_generate_fallback_key_random_length=i.asm.oa).apply(null,arguments)},i._olm_account_generate_fallback_key=function(){return(i._olm_account_generate_fallback_key=i.asm.pa).apply(null,arguments)},i._olm_account_fallback_key_length=function(){return(i._olm_account_fallback_key_length=i.asm.qa).apply(null,arguments)},i._olm_account_fallback_key=function(){return(i._olm_account_fallback_key=i.asm.ra).apply(null,arguments)},i._olm_create_outbound_session_random_length=function(){return(i._olm_create_outbound_session_random_length=i.asm.sa).apply(null,arguments)},i._olm_create_outbound_session=function(){return(i._olm_create_outbound_session=i.asm.ta).apply(null,arguments)},i._olm_create_inbound_session=function(){return(i._olm_create_inbound_session=i.asm.ua).apply(null,arguments)},i._olm_create_inbound_session_from=function(){return(i._olm_create_inbound_session_from=i.asm.va).apply(null,arguments)},i._olm_session_id_length=function(){return(i._olm_session_id_length=i.asm.wa).apply(null,arguments)},i._olm_session_id=function(){return(i._olm_session_id=i.asm.xa).apply(null,arguments)},i._olm_session_has_received_message=function(){return(i._olm_session_has_received_message=i.asm.ya).apply(null,arguments)},i._olm_session_describe=function(){return(i._olm_session_describe=i.asm.za).apply(null,arguments)},i._olm_matches_inbound_session=function(){return(i._olm_matches_inbound_session=i.asm.Aa).apply(null,arguments)},i._olm_matches_inbound_session_from=function(){return(i._olm_matches_inbound_session_from=i.asm.Ba).apply(null,arguments)},i._olm_remove_one_time_keys=function(){return(i._olm_remove_one_time_keys=i.asm.Ca).apply(null,arguments)},i._olm_encrypt_message_type=function(){return(i._olm_encrypt_message_type=i.asm.Da).apply(null,arguments)},i._olm_encrypt_random_length=function(){return(i._olm_encrypt_random_length=i.asm.Ea).apply(null,arguments)},i._olm_encrypt_message_length=function(){return(i._olm_encrypt_message_length=i.asm.Fa).apply(null,arguments)},i._olm_encrypt=function(){return(i._olm_encrypt=i.asm.Ga).apply(null,arguments)},i._olm_decrypt_max_plaintext_length=function(){return(i._olm_decrypt_max_plaintext_length=i.asm.Ha).apply(null,arguments)},i._olm_decrypt=function(){return(i._olm_decrypt=i.asm.Ia).apply(null,arguments)},i._olm_sha256_length=function(){return(i._olm_sha256_length=i.asm.Ja).apply(null,arguments)},i._olm_sha256=function(){return(i._olm_sha256=i.asm.Ka).apply(null,arguments)},i._olm_ed25519_verify=function(){return(i._olm_ed25519_verify=i.asm.La).apply(null,arguments)},i._olm_inbound_group_session_size=function(){return(i._olm_inbound_group_session_size=i.asm.Ma).apply(null,arguments)},i._olm_inbound_group_session=function(){return(i._olm_inbound_group_session=i.asm.Na).apply(null,arguments)},i._olm_clear_inbound_group_session=function(){return(i._olm_clear_inbound_group_session=i.asm.Oa).apply(null,arguments)},i._olm_inbound_group_session_last_error=function(){return(i._olm_inbound_group_session_last_error=i.asm.Pa).apply(null,arguments)},i._olm_init_inbound_group_session=function(){return(i._olm_init_inbound_group_session=i.asm.Qa).apply(null,arguments)},i._olm_import_inbound_group_session=function(){return(i._olm_import_inbound_group_session=i.asm.Ra).apply(null,arguments)},i._olm_pickle_inbound_group_session_length=function(){return(i._olm_pickle_inbound_group_session_length=i.asm.Sa).apply(null,arguments)},i._olm_pickle_inbound_group_session=function(){return(i._olm_pickle_inbound_group_session=i.asm.Ta).apply(null,arguments)},i._olm_unpickle_inbound_group_session=function(){return(i._olm_unpickle_inbound_group_session=i.asm.Ua).apply(null,arguments)},i._olm_group_decrypt_max_plaintext_length=function(){return(i._olm_group_decrypt_max_plaintext_length=i.asm.Va).apply(null,arguments)},i._olm_group_decrypt=function(){return(i._olm_group_decrypt=i.asm.Wa).apply(null,arguments)},i._olm_inbound_group_session_id_length=function(){return(i._olm_inbound_group_session_id_length=i.asm.Xa).apply(null,arguments)},i._olm_inbound_group_session_id=function(){return(i._olm_inbound_group_session_id=i.asm.Ya).apply(null,arguments)},i._olm_inbound_group_session_first_known_index=function(){return(i._olm_inbound_group_session_first_known_index=i.asm.Za).apply(null,arguments)},i._olm_inbound_group_session_is_verified=function(){return(i._olm_inbound_group_session_is_verified=i.asm._a).apply(null,arguments)},i._olm_export_inbound_group_session_length=function(){return(i._olm_export_inbound_group_session_length=i.asm.$a).apply(null,arguments)},i._olm_export_inbound_group_session=function(){return(i._olm_export_inbound_group_session=i.asm.ab).apply(null,arguments)},i._olm_sas_last_error=function(){return(i._olm_sas_last_error=i.asm.bb).apply(null,arguments)},i._olm_sas_size=function(){return(i._olm_sas_size=i.asm.cb).apply(null,arguments)},i._olm_sas=function(){return(i._olm_sas=i.asm.db).apply(null,arguments)},i._olm_clear_sas=function(){return(i._olm_clear_sas=i.asm.eb).apply(null,arguments)},i._olm_create_sas_random_length=function(){return(i._olm_create_sas_random_length=i.asm.fb).apply(null,arguments)},i._olm_create_sas=function(){return(i._olm_create_sas=i.asm.gb).apply(null,arguments)},i._olm_sas_pubkey_length=function(){return(i._olm_sas_pubkey_length=i.asm.hb).apply(null,arguments)},i._olm_sas_get_pubkey=function(){return(i._olm_sas_get_pubkey=i.asm.ib).apply(null,arguments)},i._olm_sas_set_their_key=function(){return(i._olm_sas_set_their_key=i.asm.jb).apply(null,arguments)},i._olm_sas_is_their_key_set=function(){return(i._olm_sas_is_their_key_set=i.asm.kb).apply(null,arguments)},i._olm_sas_generate_bytes=function(){return(i._olm_sas_generate_bytes=i.asm.lb).apply(null,arguments)},i._olm_sas_mac_length=function(){return(i._olm_sas_mac_length=i.asm.mb).apply(null,arguments)},i._olm_sas_calculate_mac=function(){return(i._olm_sas_calculate_mac=i.asm.nb).apply(null,arguments)},i._olm_sas_calculate_mac_long_kdf=function(){return(i._olm_sas_calculate_mac_long_kdf=i.asm.ob).apply(null,arguments)},i._olm_outbound_group_session_size=function(){return(i._olm_outbound_group_session_size=i.asm.pb).apply(null,arguments)},i._olm_outbound_group_session=function(){return(i._olm_outbound_group_session=i.asm.qb).apply(null,arguments)},i._olm_clear_outbound_group_session=function(){return(i._olm_clear_outbound_group_session=i.asm.rb).apply(null,arguments)},i._olm_outbound_group_session_last_error=function(){return(i._olm_outbound_group_session_last_error=i.asm.sb).apply(null,arguments)},i._olm_pickle_outbound_group_session_length=function(){return(i._olm_pickle_outbound_group_session_length=i.asm.tb).apply(null,arguments)},i._olm_pickle_outbound_group_session=function(){return(i._olm_pickle_outbound_group_session=i.asm.ub).apply(null,arguments)},i._olm_unpickle_outbound_group_session=function(){return(i._olm_unpickle_outbound_group_session=i.asm.vb).apply(null,arguments)},i._olm_init_outbound_group_session_random_length=function(){return(i._olm_init_outbound_group_session_random_length=i.asm.wb).apply(null,arguments)},i._olm_init_outbound_group_session=function(){return(i._olm_init_outbound_group_session=i.asm.xb).apply(null,arguments)},i._olm_group_encrypt_message_length=function(){return(i._olm_group_encrypt_message_length=i.asm.yb).apply(null,arguments)},i._olm_group_encrypt=function(){return(i._olm_group_encrypt=i.asm.zb).apply(null,arguments)},i._olm_outbound_group_session_id_length=function(){return(i._olm_outbound_group_session_id_length=i.asm.Ab).apply(null,arguments)},i._olm_outbound_group_session_id=function(){return(i._olm_outbound_group_session_id=i.asm.Bb).apply(null,arguments)},i._olm_outbound_group_session_message_index=function(){return(i._olm_outbound_group_session_message_index=i.asm.Cb).apply(null,arguments)},i._olm_outbound_group_session_key_length=function(){return(i._olm_outbound_group_session_key_length=i.asm.Db).apply(null,arguments)},i._olm_outbound_group_session_key=function(){return(i._olm_outbound_group_session_key=i.asm.Eb).apply(null,arguments)},i._malloc=function(){return(i._malloc=i.asm.Fb).apply(null,arguments)},i._free=function(){return(i._free=i.asm.Gb).apply(null,arguments)};var de,ue=i.stackSave=function(){return(ue=i.stackSave=i.asm.Hb).apply(null,arguments)},he=i.stackRestore=function(){return(he=i.stackRestore=i.asm.Ib).apply(null,arguments)},pe=i.stackAlloc=function(){return(pe=i.stackAlloc=i.asm.Jb).apply(null,arguments)};function me(){function e(){if(!de&&(de=!0,i.calledRun=!0,!R)){if(H(K),H(W),s(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;){var e=i.postRun.shift();Y.unshift(e)}H(Y)}}if(!(0<X)){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)$();H(z),0<X||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),e()}),1)):e())}}if(i.ALLOC_STACK=1,ee=function e(){de||me(),de||(ee=e)},i.run=me,i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);0<i.preInit.length;)i.preInit.pop()();function ge(){var e=i._olm_outbound_group_session_size();this.Lb=ke(e),this.Kb=i._olm_outbound_group_session(this.Lb)}function fe(e){return function(){var t=e.apply(this,arguments);if(t===Oe)throw t=I(i._olm_outbound_group_session_last_error(arguments[0])),Error("OLM."+t);return t}}function _e(){var e=i._olm_inbound_group_session_size();this.Lb=ke(e),this.Kb=i._olm_inbound_group_session(this.Lb)}function be(e){return function(){var t=e.apply(this,arguments);if(t===Oe)throw t=I(i._olm_inbound_group_session_last_error(arguments[0])),Error("OLM."+t);return t}}function ve(){var e=i._olm_pk_encryption_size();this.Lb=ke(e),this.Kb=i._olm_pk_encryption(this.Lb)}function ye(e){return function(){var t=e.apply(this,arguments);if(t===Oe)throw t=I(i._olm_pk_encryption_last_error(arguments[0])),Error("OLM."+t);return t}}function Ee(){var e=i._olm_pk_decryption_size();this.Lb=ke(e),this.Kb=i._olm_pk_decryption(this.Lb)}function Se(e){return function(){var t=e.apply(this,arguments);if(t===Oe)throw t=I(i._olm_pk_decryption_last_error(arguments[0])),Error("OLM."+t);return t}}function we(){var e=i._olm_pk_signing_size();this.Lb=ke(e),this.Kb=i._olm_pk_signing(this.Lb)}function Ce(e){return function(){var t=e.apply(this,arguments);if(t===Oe)throw t=I(i._olm_pk_signing_last_error(arguments[0])),Error("OLM."+t);return t}}function Te(){var e=i._olm_sas_size(),t=i._olm_create_sas_random_length(),n=De(t,c);this.Lb=ke(e),this.Kb=i._olm_sas(this.Lb),i._olm_create_sas(this.Kb,n,t),Fe(n,t)}function xe(e){return function(){var t=e.apply(this,arguments);if(t===Oe)throw t=I(i._olm_sas_last_error(arguments[0])),Error("OLM."+t);return t}}me(),ge.prototype.free=function(){i._olm_clear_outbound_group_session(this.Kb),Re(this.Kb)},ge.prototype.pickle=Ne((function(e){e=Ae(e);var t=fe(i._olm_pickle_outbound_group_session_length)(this.Kb),n=Ie(e),o=Ie(t+1);try{fe(i._olm_pickle_outbound_group_session)(this.Kb,n,e.length,o,t)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}return I(o,t)})),ge.prototype.unpickle=Ne((function(e,t){var n=Ie(e=Ae(e)),o=Ie(t=Ae(t));try{fe(i._olm_unpickle_outbound_group_session)(this.Kb,n,e.length,o,t.length)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}})),ge.prototype.create=Ne((function(){var e=fe(i._olm_init_outbound_group_session_random_length)(this.Kb),t=De(e,c);fe(i._olm_init_outbound_group_session)(this.Kb,t,e)})),ge.prototype.encrypt=function(e){try{var t=N(e),n=fe(i._olm_group_encrypt_message_length)(this.Kb,t),o=ke(t+1);A(e,L,o,t+1);var r=ke(n+1);return fe(i._olm_group_encrypt)(this.Kb,o,t,r,n),T(r+n),I(r,n)}finally{void 0!==o&&(Fe(o,t+1),Re(o)),void 0!==r&&Re(r)}},ge.prototype.session_id=Ne((function(){var e=fe(i._olm_outbound_group_session_id_length)(this.Kb),t=Ie(e+1);return fe(i._olm_outbound_group_session_id)(this.Kb,t,e),I(t,e)})),ge.prototype.session_key=Ne((function(){var e=fe(i._olm_outbound_group_session_key_length)(this.Kb),t=Ie(e+1);fe(i._olm_outbound_group_session_key)(this.Kb,t,e);var n=I(t,e);return Fe(t,e),n})),ge.prototype.message_index=function(){return fe(i._olm_outbound_group_session_message_index)(this.Kb)},a.OutboundGroupSession=ge,_e.prototype.free=function(){i._olm_clear_inbound_group_session(this.Kb),Re(this.Kb)},_e.prototype.pickle=Ne((function(e){e=Ae(e);var t=be(i._olm_pickle_inbound_group_session_length)(this.Kb),n=Ie(e),o=Ie(t+1);try{be(i._olm_pickle_inbound_group_session)(this.Kb,n,e.length,o,t)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}return I(o,t)})),_e.prototype.unpickle=Ne((function(e,t){var n=Ie(e=Ae(e)),o=Ie(t=Ae(t));try{be(i._olm_unpickle_inbound_group_session)(this.Kb,n,e.length,o,t.length)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}})),_e.prototype.create=Ne((function(e){var t=Ie(e=Ae(e));try{be(i._olm_init_inbound_group_session)(this.Kb,t,e.length)}finally{for(Fe(t,e.length),t=0;t<e.length;t++)e[t]=0}})),_e.prototype.import_session=Ne((function(e){var t=Ie(e=Ae(e));try{be(i._olm_import_inbound_group_session)(this.Kb,t,e.length)}finally{for(Fe(t,e.length),t=0;t<e.length;t++)e[t]=0}})),_e.prototype.decrypt=Ne((function(e){try{var t=ke(e.length);F(e,t);var n=be(i._olm_group_decrypt_max_plaintext_length)(this.Kb,t,e.length);F(e,t);var o=ke(n+1),r=Ie(4),a=be(i._olm_group_decrypt)(this.Kb,t,e.length,o,n,r);return T(o+a),{plaintext:I(o,a),message_index:x(r,"i32")}}finally{void 0!==t&&Re(t),void 0!==o&&(Fe(o,a),Re(o))}})),_e.prototype.session_id=Ne((function(){var e=be(i._olm_inbound_group_session_id_length)(this.Kb),t=Ie(e+1);return be(i._olm_inbound_group_session_id)(this.Kb,t,e),I(t,e)})),_e.prototype.first_known_index=Ne((function(){return be(i._olm_inbound_group_session_first_known_index)(this.Kb)})),_e.prototype.export_session=Ne((function(e){var t=be(i._olm_export_inbound_group_session_length)(this.Kb),n=Ie(t+1);return fe(i._olm_export_inbound_group_session)(this.Kb,n,t,e),e=I(n,t),Fe(n,t),e})),a.InboundGroupSession=_e,ve.prototype.free=function(){i._olm_clear_pk_encryption(this.Kb),Re(this.Kb)},ve.prototype.set_recipient_key=Ne((function(e){var t=Ie(e=Ae(e));ye(i._olm_pk_encryption_set_recipient_key)(this.Kb,t,e.length)})),ve.prototype.encrypt=Ne((function(e){try{var t=N(e),n=ke(t+1);A(e,L,n,t+1);var o=ye(i._olm_pk_encrypt_random_length)(),r=De(o,c),a=ye(i._olm_pk_ciphertext_length)(this.Kb,t),s=ke(a+1),l=ye(i._olm_pk_mac_length)(this.Kb),d=Ie(l+1);T(d+l);var u=ye(i._olm_pk_key_length)(),h=Ie(u+1);return T(h+u),ye(i._olm_pk_encrypt)(this.Kb,n,t,s,a,d,l,h,u,r,o),T(s+a),{ciphertext:I(s,a),mac:I(d,l),ephemeral:I(h,u)}}finally{void 0!==r&&Fe(r,o),void 0!==n&&(Fe(n,t+1),Re(n)),void 0!==s&&Re(s)}})),Ee.prototype.free=function(){i._olm_clear_pk_decryption(this.Kb),Re(this.Kb)},Ee.prototype.init_with_private_key=Ne((function(e){var t=Ie(e.length);i.HEAPU8.set(e,t);var n=Se(i._olm_pk_key_length)(),o=Ie(n+1);try{Se(i._olm_pk_key_from_private)(this.Kb,o,n,t,e.length)}finally{Fe(t,e.length)}return I(o,n)})),Ee.prototype.generate_key=Ne((function(){var e=Se(i._olm_pk_private_key_length)(),t=De(e,c),n=Se(i._olm_pk_key_length)(),o=Ie(n+1);try{Se(i._olm_pk_key_from_private)(this.Kb,o,n,t,e)}finally{Fe(t,e)}return I(o,n)})),Ee.prototype.get_private_key=Ne((function(){var e=ye(i._olm_pk_private_key_length)(),t=Ie(e);Se(i._olm_pk_get_private_key)(this.Kb,t,e);var n=new Uint8Array(new Uint8Array(i.HEAPU8.buffer,t,e));return Fe(t,e),n})),Ee.prototype.pickle=Ne((function(e){e=Ae(e);var t=Se(i._olm_pickle_pk_decryption_length)(this.Kb),n=Ie(e),o=Ie(t+1);try{Se(i._olm_pickle_pk_decryption)(this.Kb,n,e.length,o,t)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}return I(o,t)})),Ee.prototype.unpickle=Ne((function(e,t){var n=Ie(e=Ae(e)),o=Ae(t),r=Ie(o),a=Ie((t=Se(i._olm_pk_key_length)())+1);try{Se(i._olm_unpickle_pk_decryption)(this.Kb,n,e.length,r,o.length,a,t)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}return I(a,t)})),Ee.prototype.decrypt=Ne((function(e,t,n){try{var o=N(n),r=ke(o+1);A(n,L,r,o+1);var a=Ae(e),s=Ie(a),c=Ae(t),l=Ie(c),d=Se(i._olm_pk_max_plaintext_length)(this.Kb,o),u=ke(d+1),h=Se(i._olm_pk_decrypt)(this.Kb,s,a.length,l,c.length,r,o,u,d);return T(u+h),I(u,h)}finally{void 0!==u&&(Fe(u,h+1),Re(u)),void 0!==r&&Re(r)}})),we.prototype.free=function(){i._olm_clear_pk_signing(this.Kb),Re(this.Kb)},we.prototype.init_with_seed=Ne((function(e){var t=Ie(e.length);i.HEAPU8.set(e,t);var n=Ce(i._olm_pk_signing_public_key_length)(),o=Ie(n+1);try{Ce(i._olm_pk_signing_key_from_seed)(this.Kb,o,n,t,e.length)}finally{Fe(t,e.length)}return I(o,n)})),we.prototype.generate_seed=Ne((function(){var e=Ce(i._olm_pk_signing_seed_length)(),t=De(e,c),n=new Uint8Array(new Uint8Array(i.HEAPU8.buffer,t,e));return Fe(t,e),n})),we.prototype.sign=Ne((function(e){try{var t=N(e),n=ke(t+1);A(e,L,n,t+1);var o=Ce(i._olm_pk_signature_length)(),r=Ie(o+1);return Ce(i._olm_pk_sign)(this.Kb,n,t,r,o),I(r,o)}finally{void 0!==n&&(Fe(n,t+1),Re(n))}})),Te.prototype.free=function(){i._olm_clear_sas(this.Kb),Re(this.Kb)},Te.prototype.get_pubkey=Ne((function(){var e=xe(i._olm_sas_pubkey_length)(this.Kb),t=Ie(e+1);return xe(i._olm_sas_get_pubkey)(this.Kb,t,e),I(t,e)})),Te.prototype.set_their_key=Ne((function(e){var t=Ie(e=Ae(e));xe(i._olm_sas_set_their_key)(this.Kb,t,e.length)})),Te.prototype.is_their_key_set=Ne((function(){return!!xe(i._olm_sas_is_their_key_set)(this.Kb)})),Te.prototype.generate_bytes=Ne((function(e,t){var n=Ie(e=Ae(e)),o=Ie(t);return xe(i._olm_sas_generate_bytes)(this.Kb,n,e.length,o,t),new Uint8Array(new Uint8Array(i.HEAPU8.buffer,o,t))})),Te.prototype.calculate_mac=Ne((function(e,t){var n=Ie(e=Ae(e)),o=Ie(t=Ae(t)),r=xe(i._olm_sas_mac_length)(this.Kb),a=Ie(r+1);return xe(i._olm_sas_calculate_mac)(this.Kb,n,e.length,o,t.length,a,r),I(a,r)})),Te.prototype.calculate_mac_long_kdf=Ne((function(e,t){var n=Ie(e=Ae(e)),o=Ie(t=Ae(t)),r=xe(i._olm_sas_mac_length)(this.Kb),a=Ie(r+1);return xe(i._olm_sas_calculate_mac_long_kdf)(this.Kb,n,e.length,o,t.length,a,r),I(a,r)}));var Oe,ke=i._malloc,Re=i._free;function De(e,t){var n=pe(e);return t(new Uint8Array(i.HEAPU8.buffer,n,e)),n}function Ie(e){return"number"==typeof e?De(e,(function(e){e.fill(0)})):De(e.length,(function(t){t.set(e)}))}function Ae(e){if(e instanceof Uint8Array)var t=e;else e=A(e,t=Array(N(e)+1),0,t.length),t.length=e;return t}function Ne(e){return function(){var t=ue();try{return e.apply(this,arguments)}finally{he(t)}}}function Fe(e,t){for(;0<t--;)i.HEAP8[e++]=0}function Me(){var e=i._olm_account_size();this.Lb=ke(e),this.Kb=i._olm_account(this.Lb)}function Pe(e){return function(){var t=e.apply(this,arguments);if(t===Oe)throw t=I(i._olm_account_last_error(arguments[0])),Error("OLM."+t);return t}}function Le(){var e=i._olm_session_size();this.Lb=ke(e),this.Kb=i._olm_session(this.Lb)}function je(e){return function(){var t=e.apply(this,arguments);if(t===Oe)throw t=I(i._olm_session_last_error(arguments[0])),Error("OLM."+t);return t}}function Ue(){var e=i._olm_utility_size();this.Lb=ke(e),this.Kb=i._olm_utility(this.Lb)}function Be(e){return function(){var t=e.apply(this,arguments);if(t===Oe)throw t=I(i._olm_utility_last_error(arguments[0])),Error("OLM."+t);return t}}return Me.prototype.free=function(){i._olm_clear_account(this.Kb),Re(this.Kb)},Me.prototype.create=Ne((function(){var e=Pe(i._olm_create_account_random_length)(this.Kb),t=De(e,c);Pe(i._olm_create_account)(this.Kb,t,e)})),Me.prototype.identity_keys=Ne((function(){var e=Pe(i._olm_account_identity_keys_length)(this.Kb),t=Ie(e+1);return Pe(i._olm_account_identity_keys)(this.Kb,t,e),I(t,e)})),Me.prototype.sign=Ne((function(e){var t=Pe(i._olm_account_signature_length)(this.Kb),n=Ie(e=Ae(e)),o=Ie(t+1);try{Pe(i._olm_account_sign)(this.Kb,n,e.length,o,t)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}return I(o,t)})),Me.prototype.one_time_keys=Ne((function(){var e=Pe(i._olm_account_one_time_keys_length)(this.Kb),t=Ie(e+1);return Pe(i._olm_account_one_time_keys)(this.Kb,t,e),I(t,e)})),Me.prototype.mark_keys_as_published=Ne((function(){Pe(i._olm_account_mark_keys_as_published)(this.Kb)})),Me.prototype.max_number_of_one_time_keys=Ne((function(){return Pe(i._olm_account_max_number_of_one_time_keys)(this.Kb)})),Me.prototype.generate_one_time_keys=Ne((function(e){var t=Pe(i._olm_account_generate_one_time_keys_random_length)(this.Kb,e),n=De(t,c);Pe(i._olm_account_generate_one_time_keys)(this.Kb,e,n,t)})),Me.prototype.remove_one_time_keys=Ne((function(e){Pe(i._olm_remove_one_time_keys)(this.Kb,e.Kb)})),Me.prototype.generate_fallback_key=Ne((function(){var e=Pe(i._olm_account_generate_fallback_key_random_length)(this.Kb),t=De(e,c);Pe(i._olm_account_generate_fallback_key)(this.Kb,t,e)})),Me.prototype.fallback_key=Ne((function(){var e=Pe(i._olm_account_fallback_key_length)(this.Kb),t=Ie(e+1);return Pe(i._olm_account_fallback_key)(this.Kb,t,e),I(t,e)})),Me.prototype.pickle=Ne((function(e){e=Ae(e);var t=Pe(i._olm_pickle_account_length)(this.Kb),n=Ie(e),o=Ie(t+1);try{Pe(i._olm_pickle_account)(this.Kb,n,e.length,o,t)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}return I(o,t)})),Me.prototype.unpickle=Ne((function(e,t){var n=Ie(e=Ae(e)),o=Ie(t=Ae(t));try{Pe(i._olm_unpickle_account)(this.Kb,n,e.length,o,t.length)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}})),Le.prototype.free=function(){i._olm_clear_session(this.Kb),Re(this.Kb)},Le.prototype.pickle=Ne((function(e){e=Ae(e);var t=je(i._olm_pickle_session_length)(this.Kb),n=Ie(e),o=Ie(t+1);try{je(i._olm_pickle_session)(this.Kb,n,e.length,o,t)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}return I(o,t)})),Le.prototype.unpickle=Ne((function(e,t){var n=Ie(e=Ae(e)),o=Ie(t=Ae(t));try{je(i._olm_unpickle_session)(this.Kb,n,e.length,o,t.length)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}})),Le.prototype.create_outbound=Ne((function(e,t,n){var o=je(i._olm_create_outbound_session_random_length)(this.Kb),r=De(o,c);t=Ae(t),n=Ae(n);var a=Ie(t),s=Ie(n);try{je(i._olm_create_outbound_session)(this.Kb,e.Kb,a,t.length,s,n.length,r,o)}finally{Fe(r,o)}})),Le.prototype.create_inbound=Ne((function(e,t){var n=Ie(t=Ae(t));try{je(i._olm_create_inbound_session)(this.Kb,e.Kb,n,t.length)}finally{for(Fe(n,t.length),e=0;e<t.length;e++)t[e]=0}})),Le.prototype.create_inbound_from=Ne((function(e,t,n){var o=Ie(t=Ae(t)),r=Ie(n=Ae(n));try{je(i._olm_create_inbound_session_from)(this.Kb,e.Kb,o,t.length,r,n.length)}finally{for(Fe(r,n.length),e=0;e<n.length;e++)n[e]=0}})),Le.prototype.session_id=Ne((function(){var e=je(i._olm_session_id_length)(this.Kb),t=Ie(e+1);return je(i._olm_session_id)(this.Kb,t,e),I(t,e)})),Le.prototype.has_received_message=function(){return!!je(i._olm_session_has_received_message)(this.Kb)},Le.prototype.matches_inbound=Ne((function(e){var t=Ie(e=Ae(e));return!!je(i._olm_matches_inbound_session)(this.Kb,t,e.length)})),Le.prototype.matches_inbound_from=Ne((function(e,t){var n=Ie(e=Ae(e)),o=Ie(t=Ae(t));return!!je(i._olm_matches_inbound_session_from)(this.Kb,n,e.length,o,t.length)})),Le.prototype.encrypt=Ne((function(e){try{var t=je(i._olm_encrypt_random_length)(this.Kb),n=je(i._olm_encrypt_message_type)(this.Kb),o=N(e),r=je(i._olm_encrypt_message_length)(this.Kb,o),a=De(t,c),s=ke(o+1);A(e,L,s,o+1);var l=ke(r+1);return je(i._olm_encrypt)(this.Kb,s,o,a,t,l,r),T(l+r),{type:n,body:I(l,r)}}finally{void 0!==a&&Fe(a,t),void 0!==s&&(Fe(s,o+1),Re(s)),void 0!==l&&Re(l)}})),Le.prototype.decrypt=Ne((function(e,t){try{var n=ke(t.length);F(t,n);var o=je(i._olm_decrypt_max_plaintext_length)(this.Kb,e,n,t.length);F(t,n);var r=ke(o+1),a=je(i._olm_decrypt)(this.Kb,e,n,t.length,r,o);return T(r+a),I(r,a)}finally{void 0!==n&&Re(n),void 0!==r&&(Fe(r,o),Re(r))}})),Le.prototype.describe=Ne((function(){try{var e=ke(256);return je(i._olm_session_describe)(this.Kb,e,256),I(e)}finally{void 0!==e&&Re(e)}})),Ue.prototype.free=function(){i._olm_clear_utility(this.Kb),Re(this.Kb)},Ue.prototype.sha256=Ne((function(e){var t=Be(i._olm_sha256_length)(this.Kb),n=Ie(e=Ae(e)),o=Ie(t+1);try{Be(i._olm_sha256)(this.Kb,n,e.length,o,t)}finally{for(Fe(n,e.length),n=0;n<e.length;n++)e[n]=0}return I(o,t)})),Ue.prototype.ed25519_verify=Ne((function(e,t,n){var o=Ie(e=Ae(e)),r=Ie(t=Ae(t)),a=Ie(n=Ae(n));try{Be(i._olm_ed25519_verify)(this.Kb,o,e.length,r,t.length,a,n.length)}finally{for(Fe(r,t.length),e=0;e<t.length;e++)t[e]=0}})),a.Account=Me,a.Session=Le,a.Utility=Ue,a.PkEncryption=ve,a.PkDecryption=Ee,a.PkSigning=we,a.SAS=Te,a.get_library_version=Ne((function(){var e=Ie(3);return i._olm_get_library_version(e,e+1,e+2),[x(e,"i8"),x(e+1,"i8"),x(e+2,"i8")]})),t.ready},"object"==typeof t&&"object"==typeof e?e.exports=s:"function"==typeof define&&define.amd?define([],(function(){return s})):"object"==typeof t&&(t.Module=s),a.init=function(e){return i||(e&&(OLM_OPTIONS=e),i=new Promise((function(e,t){n=function(){e()},o=function(e){t(e)},s()})))},a);"undefined"!=typeof window&&(window.Olm=c),"object"==typeof e&&(e.exports=c)},function(e,t,n){"use strict";var o=n(82),r=n(494),i=n(757);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!o)throw Error(a(227));function s(e,t,n,o,r,i,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var c=!1,l=null,d=!1,u=null,h={onError:function(e){c=!0,l=e}};function p(e,t,n,o,r,i,a,d,u){c=!1,l=null,s.apply(h,arguments)}var m=null,g=null,f=null;function _(e,t,n){var o=e.type||"unknown-event";e.currentTarget=f(n),function(e,t,n,o,r,i,s,h,m){if(p.apply(this,arguments),c){if(!c)throw Error(a(198));var g=l;c=!1,l=null,d||(d=!0,u=g)}}(o,t,void 0,e),e.currentTarget=null}var b=null,v={};function y(){if(b)for(var e in v){var t=v[e],n=b.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!S[n]){if(!t.extractEvents)throw Error(a(97,e));for(var o in S[n]=t,n=t.eventTypes){var r=void 0,i=n[o],s=t,c=o;if(w.hasOwnProperty(c))throw Error(a(99,c));w[c]=i;var l=i.phasedRegistrationNames;if(l){for(r in l)l.hasOwnProperty(r)&&E(l[r],s,c);r=!0}else i.registrationName?(E(i.registrationName,s,c),r=!0):r=!1;if(!r)throw Error(a(98,o,e))}}}}function E(e,t,n){if(C[e])throw Error(a(100,e));C[e]=t,T[e]=t.eventTypes[n].dependencies}var S=[],w={},C={},T={};function x(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var o=e[t];if(!v.hasOwnProperty(t)||v[t]!==o){if(v[t])throw Error(a(102,t));v[t]=o,n=!0}}n&&y()}var O=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),k=null,R=null,D=null;function I(e){if(e=g(e)){if("function"!=typeof k)throw Error(a(280));var t=e.stateNode;t&&(t=m(t),k(e.stateNode,e.type,t))}}function A(e){R?D?D.push(e):D=[e]:R=e}function N(){if(R){var e=R,t=D;if(D=R=null,I(e),t)for(e=0;e<t.length;e++)I(t[e])}}function F(e,t){return e(t)}function M(e,t,n,o,r){return e(t,n,o,r)}function P(){}var L=F,j=!1,U=!1;function B(){null===R&&null===D||(P(),N())}function q(e,t,n){if(U)return e(t,n);U=!0;try{return L(e,t,n)}finally{U=!1,B()}}var G=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,V=Object.prototype.hasOwnProperty,H={},z={};function K(e,t,n,o,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var W={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){W[e]=new K(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];W[t]=new K(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){W[e]=new K(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){W[e]=new K(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){W[e]=new K(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){W[e]=new K(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){W[e]=new K(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){W[e]=new K(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){W[e]=new K(e,5,!1,e.toLowerCase(),null,!1)}));var Y=/[\-:]([a-z])/g;function $(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Y,$);W[t]=new K(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Y,$);W[t]=new K(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Y,$);W[t]=new K(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){W[e]=new K(e,1,!1,e.toLowerCase(),null,!1)})),W.xlinkHref=new K("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){W[e]=new K(e,1,!1,e.toLowerCase(),null,!0)}));var Q=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function J(e,t,n,o){var r=W.hasOwnProperty(t)?W[t]:null;(null!==r?0===r.type:!o&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,r,o)&&(n=null),o||null===r?function(e){return!!V.call(z,e)||!V.call(H,e)&&(G.test(e)?z[e]=!0:(H[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):r.mustUseProperty?e[r.propertyName]=null===n?3!==r.type&&"":n:(t=r.attributeName,o=r.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(r=r.type)||4===r&&!0===n?"":""+n,o?e.setAttributeNS(o,t,n):e.setAttribute(t,n))))}Q.hasOwnProperty("ReactCurrentDispatcher")||(Q.ReactCurrentDispatcher={current:null}),Q.hasOwnProperty("ReactCurrentBatchConfig")||(Q.ReactCurrentBatchConfig={suspense:null});var X=/^(.*)[\\\/]/,Z="function"==typeof Symbol&&Symbol.for,ee=Z?Symbol.for("react.element"):60103,te=Z?Symbol.for("react.portal"):60106,ne=Z?Symbol.for("react.fragment"):60107,oe=Z?Symbol.for("react.strict_mode"):60108,re=Z?Symbol.for("react.profiler"):60114,ie=Z?Symbol.for("react.provider"):60109,ae=Z?Symbol.for("react.context"):60110,se=Z?Symbol.for("react.concurrent_mode"):60111,ce=Z?Symbol.for("react.forward_ref"):60112,le=Z?Symbol.for("react.suspense"):60113,de=Z?Symbol.for("react.suspense_list"):60120,ue=Z?Symbol.for("react.memo"):60115,he=Z?Symbol.for("react.lazy"):60116,pe=Z?Symbol.for("react.block"):60121,me="function"==typeof Symbol&&Symbol.iterator;function ge(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=me&&e[me]||e["@@iterator"])?e:null}function fe(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case re:return"Profiler";case oe:return"StrictMode";case le:return"Suspense";case de:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case ce:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case ue:return fe(e.type);case pe:return fe(e.render);case he:if(e=1===e._status?e._result:null)return fe(e)}return null}function _e(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var o=e._debugOwner,r=e._debugSource,i=fe(e.type);n=null,o&&(n=fe(o.type)),o=i,i="",r?i=" (at "+r.fileName.replace(X,"")+":"+r.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(o||"Unknown")+i}t+=n,e=e.return}while(e);return t}function be(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ve(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ye(e){e._valueTracker||(e._valueTracker=function(e){var t=ve(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){o=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(e){o=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Ee(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=ve(e)?e.checked?"true":"false":e.value),(e=o)!==n&&(t.setValue(e),!0)}function Se(e,t){var n=t.checked;return r({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function we(e,t){var n=null==t.defaultValue?"":t.defaultValue,o=null!=t.checked?t.checked:t.defaultChecked;n=be(null!=t.value?t.value:n),e._wrapperState={initialChecked:o,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ce(e,t){null!=(t=t.checked)&&J(e,"checked",t,!1)}function Te(e,t){Ce(e,t);var n=be(t.value),o=t.type;if(null!=n)"number"===o?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===o||"reset"===o)return void e.removeAttribute("value");t.hasOwnProperty("value")?Oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&Oe(e,t.type,be(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function xe(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var o=t.type;if(!("submit"!==o&&"reset"!==o||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Oe(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ke(e,t){return e=r({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Re(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&o&&(e[n].defaultSelected=!0)}else{for(n=""+be(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(o&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function De(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return r({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:be(n)}}function Ae(e,t){var n=be(t.value),o=be(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=o&&(e.defaultValue=""+o)}function Ne(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Fe="http://www.w3.org/1999/xhtml",Me="http://www.w3.org/2000/svg";function Pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var je,Ue=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,o,r){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Me||"innerHTML"in e)e.innerHTML=t;else{for((je=je||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=je.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function qe(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ge={animationend:qe("Animation","AnimationEnd"),animationiteration:qe("Animation","AnimationIteration"),animationstart:qe("Animation","AnimationStart"),transitionend:qe("Transition","TransitionEnd")},Ve={},He={};function ze(e){if(Ve[e])return Ve[e];if(!Ge[e])return e;var t,n=Ge[e];for(t in n)if(n.hasOwnProperty(t)&&t in He)return Ve[e]=n[t];return e}O&&(He=document.createElement("div").style,"AnimationEvent"in window||(delete Ge.animationend.animation,delete Ge.animationiteration.animation,delete Ge.animationstart.animation),"TransitionEvent"in window||delete Ge.transitionend.transition);var Ke=ze("animationend"),We=ze("animationiteration"),Ye=ze("animationstart"),$e=ze("transitionend"),Qe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Je=new("function"==typeof WeakMap?WeakMap:Map);function Xe(e){var t=Je.get(e);return void 0===t&&(t=new Map,Je.set(e,t)),t}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Ze(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,o=t;;){var r=n.return;if(null===r)break;var i=r.alternate;if(null===i){if(null!==(o=r.return)){n=o;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return tt(r),e;if(i===o)return tt(r),t;i=i.sibling}throw Error(a(188))}if(n.return!==o.return)n=r,o=i;else{for(var s=!1,c=r.child;c;){if(c===n){s=!0,n=r,o=i;break}if(c===o){s=!0,o=r,n=i;break}c=c.sibling}if(!s){for(c=i.child;c;){if(c===n){s=!0,n=i,o=r;break}if(c===o){s=!0,o=i,n=r;break}c=c.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==o)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function ot(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function rt(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var it=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var o=0;o<t.length&&!e.isPropagationStopped();o++)_(e,t[o],n[o]);else t&&_(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function st(e){if(null!==e&&(it=ot(it,e)),e=it,it=null,e){if(rt(e,at),it)throw Error(a(95));if(d)throw e=u,d=!1,u=null,e}}function ct(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function lt(e){if(!O)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var dt=[];function ut(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>dt.length&&dt.push(e)}function ht(e,t,n,o){if(dt.length){var r=dt.pop();return r.topLevelType=e,r.eventSystemFlags=o,r.nativeEvent=t,r.targetInst=n,r}return{topLevelType:e,eventSystemFlags:o,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var o=n;if(3===o.tag)o=o.stateNode.containerInfo;else{for(;o.return;)o=o.return;o=3!==o.tag?null:o.stateNode.containerInfo}if(!o)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=On(o)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var r=ct(e.nativeEvent);o=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,c=0;c<S.length;c++){var l=S[c];l&&(l=l.extractEvents(o,t,i,r,a))&&(s=ot(s,l))}st(s)}}function mt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Yt(t,"scroll",!0);break;case"focus":case"blur":Yt(t,"focus",!0),Yt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":lt(e)&&Yt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Qe.indexOf(e)&&Wt(e,t)}n.set(e,null)}}var gt,ft,_t,bt=!1,vt=[],yt=null,Et=null,St=null,wt=new Map,Ct=new Map,Tt=[],xt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ot="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function kt(e,t,n,o,r){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:r,container:o}}function Rt(e,t){switch(e){case"focus":case"blur":yt=null;break;case"dragenter":case"dragleave":Et=null;break;case"mouseover":case"mouseout":St=null;break;case"pointerover":case"pointerout":wt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ct.delete(t.pointerId)}}function Dt(e,t,n,o,r,i){return null===e||e.nativeEvent!==i?(e=kt(t,n,o,r,i),null!==t&&(null!==(t=kn(t))&&ft(t)),e):(e.eventSystemFlags|=o,e)}function It(e){var t=On(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){_t(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function At(e){if(null!==e.blockedOn)return!1;var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=kn(t);return null!==n&&ft(n),e.blockedOn=t,!1}return!0}function Nt(e,t,n){At(e)&&n.delete(t)}function Ft(){for(bt=!1;0<vt.length;){var e=vt[0];if(null!==e.blockedOn){null!==(e=kn(e.blockedOn))&>(e);break}var t=Xt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:vt.shift()}null!==yt&&At(yt)&&(yt=null),null!==Et&&At(Et)&&(Et=null),null!==St&&At(St)&&(St=null),wt.forEach(Nt),Ct.forEach(Nt)}function Mt(e,t){e.blockedOn===t&&(e.blockedOn=null,bt||(bt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ft)))}function Pt(e){function t(t){return Mt(t,e)}if(0<vt.length){Mt(vt[0],e);for(var n=1;n<vt.length;n++){var o=vt[n];o.blockedOn===e&&(o.blockedOn=null)}}for(null!==yt&&Mt(yt,e),null!==Et&&Mt(Et,e),null!==St&&Mt(St,e),wt.forEach(t),Ct.forEach(t),n=0;n<Tt.length;n++)(o=Tt[n]).blockedOn===e&&(o.blockedOn=null);for(;0<Tt.length&&null===(n=Tt[0]).blockedOn;)It(n),null===n.blockedOn&&Tt.shift()}var Lt={},jt=new Map,Ut=new Map,Bt=["abort","abort",Ke,"animationEnd",We,"animationIteration",Ye,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",$e,"transitionEnd","waiting","waiting"];function qt(e,t){for(var n=0;n<e.length;n+=2){var o=e[n],r=e[n+1],i="on"+(r[0].toUpperCase()+r.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[o],eventPriority:t},Ut.set(o,t),jt.set(o,i),Lt[r]=i}}qt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),qt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),qt(Bt,2);for(var Gt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Vt=0;Vt<Gt.length;Vt++)Ut.set(Gt[Vt],0);var Ht=i.unstable_UserBlockingPriority,zt=i.unstable_runWithPriority,Kt=!0;function Wt(e,t){Yt(t,e,!1)}function Yt(e,t,n){var o=Ut.get(t);switch(void 0===o?2:o){case 0:o=$t.bind(null,t,1,e);break;case 1:o=Qt.bind(null,t,1,e);break;default:o=Jt.bind(null,t,1,e)}n?e.addEventListener(t,o,!0):e.addEventListener(t,o,!1)}function $t(e,t,n,o){j||P();var r=Jt,i=j;j=!0;try{M(r,e,t,n,o)}finally{(j=i)||B()}}function Qt(e,t,n,o){zt(Ht,Jt.bind(null,e,t,n,o))}function Jt(e,t,n,o){if(Kt)if(0<vt.length&&-1<xt.indexOf(e))e=kt(null,e,t,n,o),vt.push(e);else{var r=Xt(e,t,n,o);if(null===r)Rt(e,o);else if(-1<xt.indexOf(e))e=kt(r,e,t,n,o),vt.push(e);else if(!function(e,t,n,o,r){switch(t){case"focus":return yt=Dt(yt,e,t,n,o,r),!0;case"dragenter":return Et=Dt(Et,e,t,n,o,r),!0;case"mouseover":return St=Dt(St,e,t,n,o,r),!0;case"pointerover":var i=r.pointerId;return wt.set(i,Dt(wt.get(i)||null,e,t,n,o,r)),!0;case"gotpointercapture":return i=r.pointerId,Ct.set(i,Dt(Ct.get(i)||null,e,t,n,o,r)),!0}return!1}(r,e,t,n,o)){Rt(e,o),e=ht(e,o,null,t);try{q(pt,e)}finally{ut(e)}}}}function Xt(e,t,n,o){if(null!==(n=On(n=ct(o)))){var r=Ze(n);if(null===r)n=null;else{var i=r.tag;if(13===i){if(null!==(n=et(r)))return n;n=null}else if(3===i){if(r.stateNode.hydrate)return 3===r.tag?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}e=ht(e,o,n,t);try{q(pt,e)}finally{ut(e)}return null}var Zt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Zt.hasOwnProperty(e)&&Zt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var o=0===n.indexOf("--"),r=tn(n,t[n],o);"float"===n&&(n="cssFloat"),o?e.setProperty(n,r):e[n]=r}}Object.keys(Zt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[e]}))}));var on=r({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function rn(e,t){if(t){if(on[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function an(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sn=Fe;function cn(e,t){var n=Xe(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=T[t];for(var o=0;o<t.length;o++)mt(t[o],e,n)}function ln(){}function dn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function un(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hn(e,t){var n,o=un(e);for(e=0;o;){if(3===o.nodeType){if(n=e+o.textContent.length,e<=t&&n>=t)return{node:o,offset:t-e};e=n}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=un(o)}}function pn(){for(var e=window,t=dn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=dn((e=t.contentWindow).document)}return t}function mn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gn=null,fn=null;function _n(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function bn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var vn="function"==typeof setTimeout?setTimeout:void 0,yn="function"==typeof clearTimeout?clearTimeout:void 0;function En(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Sn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var wn=Math.random().toString(36).slice(2),Cn="__reactInternalInstance$"+wn,Tn="__reactEventHandlers$"+wn,xn="__reactContainere$"+wn;function On(e){var t=e[Cn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[xn]||n[Cn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Sn(e);null!==e;){if(n=e[Cn])return n;e=Sn(e)}return t}n=(e=n).parentNode}return null}function kn(e){return!(e=e[Cn]||e[xn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Rn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Dn(e){return e[Tn]||null}function In(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function An(e,t){var n=e.stateNode;if(!n)return null;var o=m(n);if(!o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function Nn(e,t,n){(t=An(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function Fn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=In(t);for(t=n.length;0<t--;)Nn(n[t],"captured",e);for(t=0;t<n.length;t++)Nn(n[t],"bubbled",e)}}function Mn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=An(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=ot(n._dispatchListeners,t),n._dispatchInstances=ot(n._dispatchInstances,e))}function Pn(e){e&&e.dispatchConfig.registrationName&&Mn(e._targetInst,null,e)}function Ln(e){rt(e,Fn)}var jn=null,Un=null,Bn=null;function qn(){if(Bn)return Bn;var e,t,n=Un,o=n.length,r="value"in jn?jn.value:jn.textContent,i=r.length;for(e=0;e<o&&n[e]===r[e];e++);var a=o-e;for(t=1;t<=a&&n[o-t]===r[i-t];t++);return Bn=r.slice(e,1<t?1-t:void 0)}function Gn(){return!0}function Vn(){return!1}function Hn(e,t,n,o){for(var r in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(r)&&((t=e[r])?this[r]=t(n):"target"===r?this.target=o:this[r]=n[r]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Gn:Vn,this.isPropagationStopped=Vn,this}function zn(e,t,n,o){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,e,t,n,o),r}return new this(e,t,n,o)}function Kn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Wn(e){e.eventPool=[],e.getPooled=zn,e.release=Kn}r(Hn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Gn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Gn)},persist:function(){this.isPersistent=Gn},isPersistent:Vn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Vn,this._dispatchInstances=this._dispatchListeners=null}}),Hn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Hn.extend=function(e){function t(){}function n(){return o.apply(this,arguments)}var o=this;t.prototype=o.prototype;var i=new t;return r(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=r({},o.Interface,e),n.extend=o.extend,Wn(n),n},Wn(Hn);var Yn=Hn.extend({data:null}),$n=Hn.extend({data:null}),Qn=[9,13,27,32],Jn=O&&"CompositionEvent"in window,Xn=null;O&&"documentMode"in document&&(Xn=document.documentMode);var Zn=O&&"TextEvent"in window&&!Xn,eo=O&&(!Jn||Xn&&8<Xn&&11>=Xn),to=String.fromCharCode(32),no={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},oo=!1;function ro(e,t){switch(e){case"keyup":return-1!==Qn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function io(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ao=!1;var so={eventTypes:no,extractEvents:function(e,t,n,o){var r;if(Jn)e:{switch(e){case"compositionstart":var i=no.compositionStart;break e;case"compositionend":i=no.compositionEnd;break e;case"compositionupdate":i=no.compositionUpdate;break e}i=void 0}else ao?ro(e,n)&&(i=no.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=no.compositionStart);return i?(eo&&"ko"!==n.locale&&(ao||i!==no.compositionStart?i===no.compositionEnd&&ao&&(r=qn()):(Un="value"in(jn=o)?jn.value:jn.textContent,ao=!0)),i=Yn.getPooled(i,t,n,o),r?i.data=r:null!==(r=io(n))&&(i.data=r),Ln(i),r=i):r=null,(e=Zn?function(e,t){switch(e){case"compositionend":return io(t);case"keypress":return 32!==t.which?null:(oo=!0,to);case"textInput":return(e=t.data)===to&&oo?null:e;default:return null}}(e,n):function(e,t){if(ao)return"compositionend"===e||!Jn&&ro(e,t)?(e=qn(),Bn=Un=jn=null,ao=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return eo&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=$n.getPooled(no.beforeInput,t,n,o)).data=e,Ln(t)):t=null,null===r?t:null===t?r:[r,t]}},co={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function lo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!co[e.type]:"textarea"===t}var uo={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function ho(e,t,n){return(e=Hn.getPooled(uo.change,e,t,n)).type="change",A(n),Ln(e),e}var po=null,mo=null;function go(e){st(e)}function fo(e){if(Ee(Rn(e)))return e}function _o(e,t){if("change"===e)return t}var bo=!1;function vo(){po&&(po.detachEvent("onpropertychange",yo),mo=po=null)}function yo(e){if("value"===e.propertyName&&fo(mo))if(e=ho(mo,e,ct(e)),j)st(e);else{j=!0;try{F(go,e)}finally{j=!1,B()}}}function Eo(e,t,n){"focus"===e?(vo(),mo=n,(po=t).attachEvent("onpropertychange",yo)):"blur"===e&&vo()}function So(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return fo(mo)}function wo(e,t){if("click"===e)return fo(t)}function Co(e,t){if("input"===e||"change"===e)return fo(t)}O&&(bo=lt("input")&&(!document.documentMode||9<document.documentMode));var To={eventTypes:uo,_isInputEventSupported:bo,extractEvents:function(e,t,n,o){var r=t?Rn(t):window,i=r.nodeName&&r.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===r.type)var a=_o;else if(lo(r))if(bo)a=Co;else{a=So;var s=Eo}else(i=r.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===r.type||"radio"===r.type)&&(a=wo);if(a&&(a=a(e,t)))return ho(a,n,o);s&&s(e,r,t),"blur"===e&&(e=r._wrapperState)&&e.controlled&&"number"===r.type&&Oe(r,"number",r.value)}},xo=Hn.extend({view:null,detail:null}),Oo={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ko(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Oo[e])&&!!t[e]}function Ro(){return ko}var Do=0,Io=0,Ao=!1,No=!1,Fo=xo.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ro,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Do;return Do=e.screenX,Ao?"mousemove"===e.type?e.screenX-t:0:(Ao=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Io;return Io=e.screenY,No?"mousemove"===e.type?e.screenY-t:0:(No=!0,0)}}),Mo=Fo.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Po={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Lo={eventTypes:Po,extractEvents:function(e,t,n,o,r){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0==(32&r)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;(i=o.window===o?o:(i=o.ownerDocument)?i.defaultView||i.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?On(t):null)&&(t!==Ze(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=Fo,c=Po.mouseLeave,l=Po.mouseEnter,d="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Mo,c=Po.pointerLeave,l=Po.pointerEnter,d="pointer");if(e=null==a?i:Rn(a),i=null==t?i:Rn(t),(c=s.getPooled(c,a,n,o)).type=d+"leave",c.target=e,c.relatedTarget=i,(n=s.getPooled(l,t,n,o)).type=d+"enter",n.target=i,n.relatedTarget=e,d=t,(o=a)&&d)e:{for(l=d,a=0,e=s=o;e;e=In(e))a++;for(e=0,t=l;t;t=In(t))e++;for(;0<a-e;)s=In(s),a--;for(;0<e-a;)l=In(l),e--;for(;a--;){if(s===l||s===l.alternate)break e;s=In(s),l=In(l)}s=null}else s=null;for(l=s,s=[];o&&o!==l&&(null===(a=o.alternate)||a!==l);)s.push(o),o=In(o);for(o=[];d&&d!==l&&(null===(a=d.alternate)||a!==l);)o.push(d),d=In(d);for(d=0;d<s.length;d++)Mn(s[d],"bubbled",c);for(d=o.length;0<d--;)Mn(o[d],"captured",n);return 0==(64&r)?[c]:[c,n]}};var jo="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Uo=Object.prototype.hasOwnProperty;function Bo(e,t){if(jo(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!Uo.call(t,n[o])||!jo(e[n[o]],t[n[o]]))return!1;return!0}var qo=O&&"documentMode"in document&&11>=document.documentMode,Go={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Vo=null,Ho=null,zo=null,Ko=!1;function Wo(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Ko||null==Vo||Vo!==dn(n)?null:("selectionStart"in(n=Vo)&&mn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},zo&&Bo(zo,n)?null:(zo=n,(e=Hn.getPooled(Go.select,Ho,e,t)).type="select",e.target=Vo,Ln(e),e))}var Yo={eventTypes:Go,extractEvents:function(e,t,n,o,r,i){if(!(i=!(r=i||(o.window===o?o.document:9===o.nodeType?o:o.ownerDocument)))){e:{r=Xe(r),i=T.onSelect;for(var a=0;a<i.length;a++)if(!r.has(i[a])){r=!1;break e}r=!0}i=!r}if(i)return null;switch(r=t?Rn(t):window,e){case"focus":(lo(r)||"true"===r.contentEditable)&&(Vo=r,Ho=t,zo=null);break;case"blur":zo=Ho=Vo=null;break;case"mousedown":Ko=!0;break;case"contextmenu":case"mouseup":case"dragend":return Ko=!1,Wo(n,o);case"selectionchange":if(qo)break;case"keydown":case"keyup":return Wo(n,o)}return null}},$o=Hn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Qo=Hn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Jo=xo.extend({relatedTarget:null});function Xo(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Zo={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},er={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},tr=xo.extend({key:function(e){if(e.key){var t=Zo[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Xo(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?er[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ro,charCode:function(e){return"keypress"===e.type?Xo(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Xo(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),nr=Fo.extend({dataTransfer:null}),or=xo.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ro}),rr=Hn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ir=Fo.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),ar={eventTypes:Lt,extractEvents:function(e,t,n,o){var r=jt.get(e);if(!r)return null;switch(e){case"keypress":if(0===Xo(n))return null;case"keydown":case"keyup":e=tr;break;case"blur":case"focus":e=Jo;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Fo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=nr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=or;break;case Ke:case We:case Ye:e=$o;break;case $e:e=rr;break;case"scroll":e=xo;break;case"wheel":e=ir;break;case"copy":case"cut":case"paste":e=Qo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Mo;break;default:e=Hn}return Ln(t=e.getPooled(r,t,n,o)),t}};if(b)throw Error(a(101));b=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),y(),m=Dn,g=kn,f=Rn,x({SimpleEventPlugin:ar,EnterLeaveEventPlugin:Lo,ChangeEventPlugin:To,SelectEventPlugin:Yo,BeforeInputEventPlugin:so});var sr=[],cr=-1;function lr(e){0>cr||(e.current=sr[cr],sr[cr]=null,cr--)}function dr(e,t){cr++,sr[cr]=e.current,e.current=t}var ur={},hr={current:ur},pr={current:!1},mr=ur;function gr(e,t){var n=e.type.contextTypes;if(!n)return ur;var o=e.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===t)return o.__reactInternalMemoizedMaskedChildContext;var r,i={};for(r in n)i[r]=t[r];return o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function fr(e){return null!=(e=e.childContextTypes)}function _r(){lr(pr),lr(hr)}function br(e,t,n){if(hr.current!==ur)throw Error(a(168));dr(hr,t),dr(pr,n)}function vr(e,t,n){var o=e.stateNode;if(e=t.childContextTypes,"function"!=typeof o.getChildContext)return n;for(var i in o=o.getChildContext())if(!(i in e))throw Error(a(108,fe(t)||"Unknown",i));return r({},n,{},o)}function yr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ur,mr=hr.current,dr(hr,e),dr(pr,pr.current),!0}function Er(e,t,n){var o=e.stateNode;if(!o)throw Error(a(169));n?(e=vr(e,t,mr),o.__reactInternalMemoizedMergedChildContext=e,lr(pr),lr(hr),dr(hr,e)):lr(pr),dr(pr,n)}var Sr=i.unstable_runWithPriority,wr=i.unstable_scheduleCallback,Cr=i.unstable_cancelCallback,Tr=i.unstable_requestPaint,xr=i.unstable_now,Or=i.unstable_getCurrentPriorityLevel,kr=i.unstable_ImmediatePriority,Rr=i.unstable_UserBlockingPriority,Dr=i.unstable_NormalPriority,Ir=i.unstable_LowPriority,Ar=i.unstable_IdlePriority,Nr={},Fr=i.unstable_shouldYield,Mr=void 0!==Tr?Tr:function(){},Pr=null,Lr=null,jr=!1,Ur=xr(),Br=1e4>Ur?xr:function(){return xr()-Ur};function qr(){switch(Or()){case kr:return 99;case Rr:return 98;case Dr:return 97;case Ir:return 96;case Ar:return 95;default:throw Error(a(332))}}function Gr(e){switch(e){case 99:return kr;case 98:return Rr;case 97:return Dr;case 96:return Ir;case 95:return Ar;default:throw Error(a(332))}}function Vr(e,t){return e=Gr(e),Sr(e,t)}function Hr(e,t,n){return e=Gr(e),wr(e,t,n)}function zr(e){return null===Pr?(Pr=[e],Lr=wr(kr,Wr)):Pr.push(e),Nr}function Kr(){if(null!==Lr){var e=Lr;Lr=null,Cr(e)}Wr()}function Wr(){if(!jr&&null!==Pr){jr=!0;var e=0;try{var t=Pr;Vr(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Pr=null}catch(t){throw null!==Pr&&(Pr=Pr.slice(e+1)),wr(kr,Kr),t}finally{jr=!1}}}function Yr(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function $r(e,t){if(e&&e.defaultProps)for(var n in t=r({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Qr={current:null},Jr=null,Xr=null,Zr=null;function ei(){Zr=Xr=Jr=null}function ti(e){var t=Qr.current;lr(Qr),e.type._context._currentValue=t}function ni(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function oi(e,t){Jr=e,Zr=Xr=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Da=!0),e.firstContext=null)}function ri(e,t){if(Zr!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Zr=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xr){if(null===Jr)throw Error(a(308));Xr=t,Jr.dependencies={expirationTime:0,firstContext:t,responders:null}}else Xr=Xr.next=t;return e._currentValue}var ii=!1;function ai(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function si(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function ci(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function li(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function di(e,t){var n=e.alternate;null!==n&&si(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function ui(e,t,n,o){var i=e.updateQueue;ii=!1;var a=i.baseQueue,s=i.shared.pending;if(null!==s){if(null!==a){var c=a.next;a.next=s.next,s.next=c}a=s,i.shared.pending=null,null!==(c=e.alternate)&&(null!==(c=c.updateQueue)&&(c.baseQueue=s))}if(null!==a){c=a.next;var l=i.baseState,d=0,u=null,h=null,p=null;if(null!==c)for(var m=c;;){if((s=m.expirationTime)<o){var g={expirationTime:m.expirationTime,suspenseConfig:m.suspenseConfig,tag:m.tag,payload:m.payload,callback:m.callback,next:null};null===p?(h=p=g,u=l):p=p.next=g,s>d&&(d=s)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:m.suspenseConfig,tag:m.tag,payload:m.payload,callback:m.callback,next:null}),ic(s,m.suspenseConfig);e:{var f=e,_=m;switch(s=t,g=n,_.tag){case 1:if("function"==typeof(f=_.payload)){l=f.call(g,l,s);break e}l=f;break e;case 3:f.effectTag=-4097&f.effectTag|64;case 0:if(null==(s="function"==typeof(f=_.payload)?f.call(g,l,s):f))break e;l=r({},l,s);break e;case 2:ii=!0}}null!==m.callback&&(e.effectTag|=32,null===(s=i.effects)?i.effects=[m]:s.push(m))}if(null===(m=m.next)||m===c){if(null===(s=i.shared.pending))break;m=a.next=s.next,s.next=c,i.baseQueue=a=s,i.shared.pending=null}}null===p?u=l:p.next=h,i.baseState=u,i.baseQueue=p,ac(d),e.expirationTime=d,e.memoizedState=l}}function hi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],r=o.callback;if(null!==r){if(o.callback=null,o=r,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var pi=Q.ReactCurrentBatchConfig,mi=(new o.Component).refs;function gi(e,t,n,o){n=null==(n=n(o,t=e.memoizedState))?t:r({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var fi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var o=Ks(),r=pi.suspense;(r=ci(o=Ws(o,e,r),r)).payload=t,null!=n&&(r.callback=n),li(e,r),Ys(e,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var o=Ks(),r=pi.suspense;(r=ci(o=Ws(o,e,r),r)).tag=1,r.payload=t,null!=n&&(r.callback=n),li(e,r),Ys(e,o)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ks(),o=pi.suspense;(o=ci(n=Ws(n,e,o),o)).tag=2,null!=t&&(o.callback=t),li(e,o),Ys(e,n)}};function _i(e,t,n,o,r,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(o,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Bo(n,o)||!Bo(r,i))}function bi(e,t,n){var o=!1,r=ur,i=t.contextType;return"object"==typeof i&&null!==i?i=ri(i):(r=fr(t)?mr:hr.current,i=(o=null!=(o=t.contextTypes))?gr(e,r):ur),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=fi,e.stateNode=t,t._reactInternalFiber=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=i),t}function vi(e,t,n,o){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,o),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&fi.enqueueReplaceState(t,t.state,null)}function yi(e,t,n,o){var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs=mi,ai(e);var i=t.contextType;"object"==typeof i&&null!==i?r.context=ri(i):(i=fr(t)?mr:hr.current,r.context=gr(e,i)),ui(e,n,r,o),r.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(gi(e,t,i,n),r.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(t=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),t!==r.state&&fi.enqueueReplaceState(r,r.state,null),ui(e,n,r,o),r.state=e.memoizedState),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}var Ei=Array.isArray;function Si(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var o=n.stateNode}if(!o)throw Error(a(147,e));var r=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:((t=function(e){var t=o.refs;t===mi&&(t=o.refs={}),null===e?delete t[r]:t[r]=e})._stringRef=r,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function wi(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Ci(e){function t(t,n){if(e){var o=t.lastEffect;null!==o?(o.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,o){if(!e)return null;for(;null!==o;)t(n,o),o=o.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function r(e,t){return(e=xc(e,t)).index=0,e.sibling=null,e}function i(t,n,o){return t.index=o,e?null!==(o=t.alternate)?(o=o.index)<n?(t.effectTag=2,n):o:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,n,o){return null===t||6!==t.tag?((t=Rc(n,e.mode,o)).return=e,t):((t=r(t,n)).return=e,t)}function l(e,t,n,o){return null!==t&&t.elementType===n.type?((o=r(t,n.props)).ref=Si(e,t,n),o.return=e,o):((o=Oc(n.type,n.key,n.props,null,e.mode,o)).ref=Si(e,t,n),o.return=e,o)}function d(e,t,n,o){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Dc(n,e.mode,o)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function u(e,t,n,o,i){return null===t||7!==t.tag?((t=kc(n,e.mode,o,i)).return=e,t):((t=r(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Rc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Oc(t.type,t.key,t.props,null,e.mode,n)).ref=Si(e,null,t),n.return=e,n;case te:return(t=Dc(t,e.mode,n)).return=e,t}if(Ei(t)||ge(t))return(t=kc(t,e.mode,n,null)).return=e,t;wi(e,t)}return null}function p(e,t,n,o){var r=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==r?null:c(e,t,""+n,o);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===r?n.type===ne?u(e,t,n.props.children,o,r):l(e,t,n,o):null;case te:return n.key===r?d(e,t,n,o):null}if(Ei(n)||ge(n))return null!==r?null:u(e,t,n,o,null);wi(e,n)}return null}function m(e,t,n,o,r){if("string"==typeof o||"number"==typeof o)return c(t,e=e.get(n)||null,""+o,r);if("object"==typeof o&&null!==o){switch(o.$$typeof){case ee:return e=e.get(null===o.key?n:o.key)||null,o.type===ne?u(t,e,o.props.children,r,o.key):l(t,e,o,r);case te:return d(t,e=e.get(null===o.key?n:o.key)||null,o,r)}if(Ei(o)||ge(o))return u(t,e=e.get(n)||null,o,r,null);wi(t,o)}return null}function g(r,a,s,c){for(var l=null,d=null,u=a,g=a=0,f=null;null!==u&&g<s.length;g++){u.index>g?(f=u,u=null):f=u.sibling;var _=p(r,u,s[g],c);if(null===_){null===u&&(u=f);break}e&&u&&null===_.alternate&&t(r,u),a=i(_,a,g),null===d?l=_:d.sibling=_,d=_,u=f}if(g===s.length)return n(r,u),l;if(null===u){for(;g<s.length;g++)null!==(u=h(r,s[g],c))&&(a=i(u,a,g),null===d?l=u:d.sibling=u,d=u);return l}for(u=o(r,u);g<s.length;g++)null!==(f=m(u,r,g,s[g],c))&&(e&&null!==f.alternate&&u.delete(null===f.key?g:f.key),a=i(f,a,g),null===d?l=f:d.sibling=f,d=f);return e&&u.forEach((function(e){return t(r,e)})),l}function f(r,s,c,l){var d=ge(c);if("function"!=typeof d)throw Error(a(150));if(null==(c=d.call(c)))throw Error(a(151));for(var u=d=null,g=s,f=s=0,_=null,b=c.next();null!==g&&!b.done;f++,b=c.next()){g.index>f?(_=g,g=null):_=g.sibling;var v=p(r,g,b.value,l);if(null===v){null===g&&(g=_);break}e&&g&&null===v.alternate&&t(r,g),s=i(v,s,f),null===u?d=v:u.sibling=v,u=v,g=_}if(b.done)return n(r,g),d;if(null===g){for(;!b.done;f++,b=c.next())null!==(b=h(r,b.value,l))&&(s=i(b,s,f),null===u?d=b:u.sibling=b,u=b);return d}for(g=o(r,g);!b.done;f++,b=c.next())null!==(b=m(g,r,f,b.value,l))&&(e&&null!==b.alternate&&g.delete(null===b.key?f:b.key),s=i(b,s,f),null===u?d=b:u.sibling=b,u=b);return e&&g.forEach((function(e){return t(r,e)})),d}return function(e,o,i,c){var l="object"==typeof i&&null!==i&&i.type===ne&&null===i.key;l&&(i=i.props.children);var d="object"==typeof i&&null!==i;if(d)switch(i.$$typeof){case ee:e:{for(d=i.key,l=o;null!==l;){if(l.key===d){switch(l.tag){case 7:if(i.type===ne){n(e,l.sibling),(o=r(l,i.props.children)).return=e,e=o;break e}break;default:if(l.elementType===i.type){n(e,l.sibling),(o=r(l,i.props)).ref=Si(e,l,i),o.return=e,e=o;break e}}n(e,l);break}t(e,l),l=l.sibling}i.type===ne?((o=kc(i.props.children,e.mode,c,i.key)).return=e,e=o):((c=Oc(i.type,i.key,i.props,null,e.mode,c)).ref=Si(e,o,i),c.return=e,e=c)}return s(e);case te:e:{for(l=i.key;null!==o;){if(o.key===l){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(e,o.sibling),(o=r(o,i.children||[])).return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}(o=Dc(i,e.mode,c)).return=e,e=o}return s(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==o&&6===o.tag?(n(e,o.sibling),(o=r(o,i)).return=e,e=o):(n(e,o),(o=Rc(i,e.mode,c)).return=e,e=o),s(e);if(Ei(i))return g(e,o,i,c);if(ge(i))return f(e,o,i,c);if(d&&wi(e,i),void 0===i&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,o)}}var Ti=Ci(!0),xi=Ci(!1),Oi={},ki={current:Oi},Ri={current:Oi},Di={current:Oi};function Ii(e){if(e===Oi)throw Error(a(174));return e}function Ai(e,t){switch(dr(Di,t),dr(Ri,e),dr(ki,Oi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Le(null,"");break;default:t=Le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}lr(ki),dr(ki,t)}function Ni(){lr(ki),lr(Ri),lr(Di)}function Fi(e){Ii(Di.current);var t=Ii(ki.current),n=Le(t,e.type);t!==n&&(dr(Ri,e),dr(ki,n))}function Mi(e){Ri.current===e&&(lr(ki),lr(Ri))}var Pi={current:0};function Li(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ji(e,t){return{responder:e,props:t}}var Ui=Q.ReactCurrentDispatcher,Bi=Q.ReactCurrentBatchConfig,qi=0,Gi=null,Vi=null,Hi=null,zi=!1;function Ki(){throw Error(a(321))}function Wi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jo(e[n],t[n]))return!1;return!0}function Yi(e,t,n,o,r,i){if(qi=i,Gi=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Ui.current=null===e||null===e.memoizedState?_a:ba,e=n(o,r),t.expirationTime===qi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,Hi=Vi=null,t.updateQueue=null,Ui.current=va,e=n(o,r)}while(t.expirationTime===qi)}if(Ui.current=fa,t=null!==Vi&&null!==Vi.next,qi=0,Hi=Vi=Gi=null,zi=!1,t)throw Error(a(300));return e}function $i(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Hi?Gi.memoizedState=Hi=e:Hi=Hi.next=e,Hi}function Qi(){if(null===Vi){var e=Gi.alternate;e=null!==e?e.memoizedState:null}else e=Vi.next;var t=null===Hi?Gi.memoizedState:Hi.next;if(null!==t)Hi=t,Vi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Vi=e).memoizedState,baseState:Vi.baseState,baseQueue:Vi.baseQueue,queue:Vi.queue,next:null},null===Hi?Gi.memoizedState=Hi=e:Hi=Hi.next=e}return Hi}function Ji(e,t){return"function"==typeof t?t(e):t}function Xi(e){var t=Qi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var o=Vi,r=o.baseQueue,i=n.pending;if(null!==i){if(null!==r){var s=r.next;r.next=i.next,i.next=s}o.baseQueue=r=i,n.pending=null}if(null!==r){r=r.next,o=o.baseState;var c=s=i=null,l=r;do{var d=l.expirationTime;if(d<qi){var u={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===c?(s=c=u,i=o):c=c.next=u,d>Gi.expirationTime&&(Gi.expirationTime=d,ac(d))}else null!==c&&(c=c.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),ic(d,l.suspenseConfig),o=l.eagerReducer===e?l.eagerState:e(o,l.action);l=l.next}while(null!==l&&l!==r);null===c?i=o:c.next=s,jo(o,t.memoizedState)||(Da=!0),t.memoizedState=o,t.baseState=i,t.baseQueue=c,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function Zi(e){var t=Qi(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var o=n.dispatch,r=n.pending,i=t.memoizedState;if(null!==r){n.pending=null;var s=r=r.next;do{i=e(i,s.action),s=s.next}while(s!==r);jo(i,t.memoizedState)||(Da=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,o]}function ea(e){var t=$i();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Ji,lastRenderedState:e}).dispatch=ga.bind(null,Gi,e),[t.memoizedState,e]}function ta(e,t,n,o){return e={tag:e,create:t,destroy:n,deps:o,next:null},null===(t=Gi.updateQueue)?(t={lastEffect:null},Gi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e),e}function na(){return Qi().memoizedState}function oa(e,t,n,o){var r=$i();Gi.effectTag|=e,r.memoizedState=ta(1|t,n,void 0,void 0===o?null:o)}function ra(e,t,n,o){var r=Qi();o=void 0===o?null:o;var i=void 0;if(null!==Vi){var a=Vi.memoizedState;if(i=a.destroy,null!==o&&Wi(o,a.deps))return void ta(t,n,i,o)}Gi.effectTag|=e,r.memoizedState=ta(1|t,n,i,o)}function ia(e,t){return oa(516,4,e,t)}function aa(e,t){return ra(516,4,e,t)}function sa(e,t){return ra(4,2,e,t)}function ca(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function la(e,t,n){return n=null!=n?n.concat([e]):null,ra(4,2,ca.bind(null,t,e),n)}function da(){}function ua(e,t){return $i().memoizedState=[e,void 0===t?null:t],e}function ha(e,t){var n=Qi();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Wi(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function pa(e,t){var n=Qi();t=void 0===t?null:t;var o=n.memoizedState;return null!==o&&null!==t&&Wi(t,o[1])?o[0]:(e=e(),n.memoizedState=[e,t],e)}function ma(e,t,n){var o=qr();Vr(98>o?98:o,(function(){e(!0)})),Vr(97<o?97:o,(function(){var o=Bi.suspense;Bi.suspense=void 0===t?null:t;try{e(!1),n()}finally{Bi.suspense=o}}))}function ga(e,t,n){var o=Ks(),r=pi.suspense;r={expirationTime:o=Ws(o,e,r),suspenseConfig:r,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?r.next=r:(r.next=i.next,i.next=r),t.pending=r,i=e.alternate,e===Gi||null!==i&&i===Gi)zi=!0,r.expirationTime=qi,Gi.expirationTime=qi;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(r.eagerReducer=i,r.eagerState=s,jo(s,a))return}catch(e){}Ys(e,o)}}var fa={readContext:ri,useCallback:Ki,useContext:Ki,useEffect:Ki,useImperativeHandle:Ki,useLayoutEffect:Ki,useMemo:Ki,useReducer:Ki,useRef:Ki,useState:Ki,useDebugValue:Ki,useResponder:Ki,useDeferredValue:Ki,useTransition:Ki},_a={readContext:ri,useCallback:ua,useContext:ri,useEffect:ia,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,oa(4,2,ca.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oa(4,2,e,t)},useMemo:function(e,t){var n=$i();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var o=$i();return t=void 0!==n?n(t):t,o.memoizedState=o.baseState=t,e=(e=o.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ga.bind(null,Gi,e),[o.memoizedState,e]},useRef:function(e){return e={current:e},$i().memoizedState=e},useState:ea,useDebugValue:da,useResponder:ji,useDeferredValue:function(e,t){var n=ea(e),o=n[0],r=n[1];return ia((function(){var n=Bi.suspense;Bi.suspense=void 0===t?null:t;try{r(e)}finally{Bi.suspense=n}}),[e,t]),o},useTransition:function(e){var t=ea(!1),n=t[0];return t=t[1],[ua(ma.bind(null,t,e),[t,e]),n]}},ba={readContext:ri,useCallback:ha,useContext:ri,useEffect:aa,useImperativeHandle:la,useLayoutEffect:sa,useMemo:pa,useReducer:Xi,useRef:na,useState:function(){return Xi(Ji)},useDebugValue:da,useResponder:ji,useDeferredValue:function(e,t){var n=Xi(Ji),o=n[0],r=n[1];return aa((function(){var n=Bi.suspense;Bi.suspense=void 0===t?null:t;try{r(e)}finally{Bi.suspense=n}}),[e,t]),o},useTransition:function(e){var t=Xi(Ji),n=t[0];return t=t[1],[ha(ma.bind(null,t,e),[t,e]),n]}},va={readContext:ri,useCallback:ha,useContext:ri,useEffect:aa,useImperativeHandle:la,useLayoutEffect:sa,useMemo:pa,useReducer:Zi,useRef:na,useState:function(){return Zi(Ji)},useDebugValue:da,useResponder:ji,useDeferredValue:function(e,t){var n=Zi(Ji),o=n[0],r=n[1];return aa((function(){var n=Bi.suspense;Bi.suspense=void 0===t?null:t;try{r(e)}finally{Bi.suspense=n}}),[e,t]),o},useTransition:function(e){var t=Zi(Ji),n=t[0];return t=t[1],[ha(ma.bind(null,t,e),[t,e]),n]}},ya=null,Ea=null,Sa=!1;function wa(e,t){var n=Cc(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ca(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Ta(e){if(Sa){var t=Ea;if(t){var n=t;if(!Ca(e,t)){if(!(t=En(n.nextSibling))||!Ca(e,t))return e.effectTag=-1025&e.effectTag|2,Sa=!1,void(ya=e);wa(ya,n)}ya=e,Ea=En(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Sa=!1,ya=e}}function xa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ya=e}function Oa(e){if(e!==ya)return!1;if(!Sa)return xa(e),Sa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!bn(t,e.memoizedProps))for(t=Ea;t;)wa(e,t),t=En(t.nextSibling);if(xa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ea=En(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ea=null}}else Ea=ya?En(e.stateNode.nextSibling):null;return!0}function ka(){Ea=ya=null,Sa=!1}var Ra=Q.ReactCurrentOwner,Da=!1;function Ia(e,t,n,o){t.child=null===e?xi(t,null,n,o):Ti(t,e.child,n,o)}function Aa(e,t,n,o,r){n=n.render;var i=t.ref;return oi(t,r),o=Yi(e,t,n,o,i,r),null===e||Da?(t.effectTag|=1,Ia(e,t,o,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Ya(e,t,r))}function Na(e,t,n,o,r,i){if(null===e){var a=n.type;return"function"!=typeof a||Tc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Oc(n.type,null,o,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Fa(e,t,a,o,r,i))}return a=e.child,r<i&&(r=a.memoizedProps,(n=null!==(n=n.compare)?n:Bo)(r,o)&&e.ref===t.ref)?Ya(e,t,i):(t.effectTag|=1,(e=xc(a,o)).ref=t.ref,e.return=t,t.child=e)}function Fa(e,t,n,o,r,i){return null!==e&&Bo(e.memoizedProps,o)&&e.ref===t.ref&&(Da=!1,r<i)?(t.expirationTime=e.expirationTime,Ya(e,t,i)):Pa(e,t,n,o,i)}function Ma(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Pa(e,t,n,o,r){var i=fr(n)?mr:hr.current;return i=gr(t,i),oi(t,r),n=Yi(e,t,n,o,i,r),null===e||Da?(t.effectTag|=1,Ia(e,t,n,r),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=r&&(e.expirationTime=0),Ya(e,t,r))}function La(e,t,n,o,r){if(fr(n)){var i=!0;yr(t)}else i=!1;if(oi(t,r),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),bi(t,n,o),yi(t,n,o,r),o=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,l=n.contextType;"object"==typeof l&&null!==l?l=ri(l):l=gr(t,l=fr(n)?mr:hr.current);var d=n.getDerivedStateFromProps,u="function"==typeof d||"function"==typeof a.getSnapshotBeforeUpdate;u||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==o||c!==l)&&vi(t,a,o,l),ii=!1;var h=t.memoizedState;a.state=h,ui(t,o,a,r),c=t.memoizedState,s!==o||h!==c||pr.current||ii?("function"==typeof d&&(gi(t,n,d,o),c=t.memoizedState),(s=ii||_i(t,n,s,o,h,c,l))?(u||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=o,t.memoizedState=c),a.props=o,a.state=c,a.context=l,o=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),o=!1)}else a=t.stateNode,si(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:$r(t.type,s),c=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=ri(l):l=gr(t,l=fr(n)?mr:hr.current),(u="function"==typeof(d=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==o||c!==l)&&vi(t,a,o,l),ii=!1,c=t.memoizedState,a.state=c,ui(t,o,a,r),h=t.memoizedState,s!==o||c!==h||pr.current||ii?("function"==typeof d&&(gi(t,n,d,o),h=t.memoizedState),(d=ii||_i(t,n,s,o,c,h,l))?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(o,h,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(o,h,l)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=o,t.memoizedState=h),a.props=o,a.state=h,a.context=l,o=d):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),o=!1);return ja(e,t,n,o,i,r)}function ja(e,t,n,o,r,i){Ma(e,t);var a=0!=(64&t.effectTag);if(!o&&!a)return r&&Er(t,n,!1),Ya(e,t,i);o=t.stateNode,Ra.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:o.render();return t.effectTag|=1,null!==e&&a?(t.child=Ti(t,e.child,null,i),t.child=Ti(t,null,s,i)):Ia(e,t,s,i),t.memoizedState=o.state,r&&Er(t,n,!0),t.child}function Ua(e){var t=e.stateNode;t.pendingContext?br(0,t.pendingContext,t.pendingContext!==t.context):t.context&&br(0,t.context,!1),Ai(e,t.containerInfo)}var Ba,qa,Ga,Va={dehydrated:null,retryTime:0};function Ha(e,t,n){var o,r=t.mode,i=t.pendingProps,a=Pi.current,s=!1;if((o=0!=(64&t.effectTag))||(o=0!=(2&a)&&(null===e||null!==e.memoizedState)),o?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),dr(Pi,1&a),null===e){if(void 0!==i.fallback&&Ta(t),s){if(s=i.fallback,(i=kc(null,r,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=kc(s,r,n,null)).return=t,i.sibling=n,t.memoizedState=Va,t.child=i,n}return r=i.children,t.memoizedState=null,t.child=xi(t,null,r,n)}if(null!==e.memoizedState){if(r=(e=e.child).sibling,s){if(i=i.fallback,(n=xc(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(r=xc(r,i)).return=t,n.sibling=r,n.childExpirationTime=0,t.memoizedState=Va,t.child=n,r}return n=Ti(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=i.fallback,(i=kc(null,r,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=kc(s,r,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Va,t.child=i,n}return t.memoizedState=null,t.child=Ti(t,e,i.children,n)}function za(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ni(e.return,t)}function Ka(e,t,n,o,r,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailExpiration:0,tailMode:r,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=o,a.tail=n,a.tailExpiration=0,a.tailMode=r,a.lastEffect=i)}function Wa(e,t,n){var o=t.pendingProps,r=o.revealOrder,i=o.tail;if(Ia(e,t,o.children,n),0!=(2&(o=Pi.current)))o=1&o|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&za(e,n);else if(19===e.tag)za(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}if(dr(Pi,o),0==(2&t.mode))t.memoizedState=null;else switch(r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===Li(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),Ka(t,!1,r,n,i,t.lastEffect);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===Li(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}Ka(t,!0,n,null,i,t.lastEffect);break;case"together":Ka(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ya(e,t,n){null!==e&&(t.dependencies=e.dependencies);var o=t.expirationTime;if(0!==o&&ac(o),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=xc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=xc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function $a(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;null!==n;)null!==n.alternate&&(o=n),n=n.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Qa(e,t,n){var o=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return fr(t.type)&&_r(),null;case 3:return Ni(),lr(pr),lr(hr),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Oa(t)||(t.effectTag|=4),null;case 5:Mi(t),n=Ii(Di.current);var i=t.type;if(null!==e&&null!=t.stateNode)qa(e,t,i,o,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!o){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ii(ki.current),Oa(t)){o=t.stateNode,i=t.type;var s=t.memoizedProps;switch(o[Cn]=t,o[Tn]=s,i){case"iframe":case"object":case"embed":Wt("load",o);break;case"video":case"audio":for(e=0;e<Qe.length;e++)Wt(Qe[e],o);break;case"source":Wt("error",o);break;case"img":case"image":case"link":Wt("error",o),Wt("load",o);break;case"form":Wt("reset",o),Wt("submit",o);break;case"details":Wt("toggle",o);break;case"input":we(o,s),Wt("invalid",o),cn(n,"onChange");break;case"select":o._wrapperState={wasMultiple:!!s.multiple},Wt("invalid",o),cn(n,"onChange");break;case"textarea":Ie(o,s),Wt("invalid",o),cn(n,"onChange")}for(var c in rn(i,s),e=null,s)if(s.hasOwnProperty(c)){var l=s[c];"children"===c?"string"==typeof l?o.textContent!==l&&(e=["children",l]):"number"==typeof l&&o.textContent!==""+l&&(e=["children",""+l]):C.hasOwnProperty(c)&&null!=l&&cn(n,c)}switch(i){case"input":ye(o),xe(o,s,!0);break;case"textarea":ye(o),Ne(o);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(o.onclick=ln)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(c=9===n.nodeType?n:n.ownerDocument,e===sn&&(e=Pe(i)),e===sn?"script"===i?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=c.createElement(i,{is:o.is}):(e=c.createElement(i),"select"===i&&(c=e,o.multiple?c.multiple=!0:o.size&&(c.size=o.size))):e=c.createElementNS(e,i),e[Cn]=t,e[Tn]=o,Ba(e,t),t.stateNode=e,c=an(i,o),i){case"iframe":case"object":case"embed":Wt("load",e),l=o;break;case"video":case"audio":for(l=0;l<Qe.length;l++)Wt(Qe[l],e);l=o;break;case"source":Wt("error",e),l=o;break;case"img":case"image":case"link":Wt("error",e),Wt("load",e),l=o;break;case"form":Wt("reset",e),Wt("submit",e),l=o;break;case"details":Wt("toggle",e),l=o;break;case"input":we(e,o),l=Se(e,o),Wt("invalid",e),cn(n,"onChange");break;case"option":l=ke(e,o);break;case"select":e._wrapperState={wasMultiple:!!o.multiple},l=r({},o,{value:void 0}),Wt("invalid",e),cn(n,"onChange");break;case"textarea":Ie(e,o),l=De(e,o),Wt("invalid",e),cn(n,"onChange");break;default:l=o}rn(i,l);var d=l;for(s in d)if(d.hasOwnProperty(s)){var u=d[s];"style"===s?nn(e,u):"dangerouslySetInnerHTML"===s?null!=(u=u?u.__html:void 0)&&Ue(e,u):"children"===s?"string"==typeof u?("textarea"!==i||""!==u)&&Be(e,u):"number"==typeof u&&Be(e,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(C.hasOwnProperty(s)?null!=u&&cn(n,s):null!=u&&J(e,s,u,c))}switch(i){case"input":ye(e),xe(e,o,!1);break;case"textarea":ye(e),Ne(e);break;case"option":null!=o.value&&e.setAttribute("value",""+be(o.value));break;case"select":e.multiple=!!o.multiple,null!=(n=o.value)?Re(e,!!o.multiple,n,!1):null!=o.defaultValue&&Re(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof l.onClick&&(e.onclick=ln)}_n(i,o)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ga(0,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(a(166));n=Ii(Di.current),Ii(ki.current),Oa(t)?(n=t.stateNode,o=t.memoizedProps,n[Cn]=t,n.nodeValue!==o&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[Cn]=t,t.stateNode=n)}return null;case 13:return lr(Pi),o=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==o,o=!1,null===e?void 0!==t.memoizedProps.fallback&&Oa(t):(o=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=i,i.nextEffect=s):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!o&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Pi.current)?Os===ys&&(Os=Es):(Os!==ys&&Os!==Es||(Os=Ss),0!==As&&null!==Cs&&(Nc(Cs,xs),Fc(Cs,As)))),(n||o)&&(t.effectTag|=4),null);case 4:return Ni(),null;case 10:return ti(t),null;case 17:return fr(t.type)&&_r(),null;case 19:if(lr(Pi),null===(o=t.memoizedState))return null;if(i=0!=(64&t.effectTag),null===(s=o.rendering)){if(i)$a(o,!1);else if(Os!==ys||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Li(s))){for(t.effectTag|=64,$a(o,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===o.lastEffect&&(t.firstEffect=null),t.lastEffect=o.lastEffect,o=t.child;null!==o;)s=n,(i=o).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=s,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,s=e.dependencies,i.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),o=o.sibling;return dr(Pi,1&Pi.current|2),t.child}s=s.sibling}}else{if(!i)if(null!==(e=Li(s))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),$a(o,!0),null===o.tail&&"hidden"===o.tailMode&&!s.alternate)return null!==(t=t.lastEffect=o.lastEffect)&&(t.nextEffect=null),null}else 2*Br()-o.renderingStartTime>o.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,$a(o,!1),t.expirationTime=t.childExpirationTime=n-1);o.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=o.last)?n.sibling=s:t.child=s,o.last=s)}return null!==o.tail?(0===o.tailExpiration&&(o.tailExpiration=Br()+500),n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=t.lastEffect,o.renderingStartTime=Br(),n.sibling=null,t=Pi.current,dr(Pi,i?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function Ja(e){switch(e.tag){case 1:fr(e.type)&&_r();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ni(),lr(pr),lr(hr),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Mi(e),null;case 13:return lr(Pi),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return lr(Pi),null;case 4:return Ni(),null;case 10:return ti(e),null;default:return null}}function Xa(e,t){return{value:e,source:t,stack:_e(t)}}Ba=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},qa=function(e,t,n,o,i){var a=e.memoizedProps;if(a!==o){var s,c,l=t.stateNode;switch(Ii(ki.current),e=null,n){case"input":a=Se(l,a),o=Se(l,o),e=[];break;case"option":a=ke(l,a),o=ke(l,o),e=[];break;case"select":a=r({},a,{value:void 0}),o=r({},o,{value:void 0}),e=[];break;case"textarea":a=De(l,a),o=De(l,o),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof o.onClick&&(l.onclick=ln)}for(s in rn(n,o),n=null,a)if(!o.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(c in l=a[s])l.hasOwnProperty(c)&&(n||(n={}),n[c]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(C.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in o){var d=o[s];if(l=null!=a?a[s]:void 0,o.hasOwnProperty(s)&&d!==l&&(null!=d||null!=l))if("style"===s)if(l){for(c in l)!l.hasOwnProperty(c)||d&&d.hasOwnProperty(c)||(n||(n={}),n[c]="");for(c in d)d.hasOwnProperty(c)&&l[c]!==d[c]&&(n||(n={}),n[c]=d[c])}else n||(e||(e=[]),e.push(s,n)),n=d;else"dangerouslySetInnerHTML"===s?(d=d?d.__html:void 0,l=l?l.__html:void 0,null!=d&&l!==d&&(e=e||[]).push(s,d)):"children"===s?l===d||"string"!=typeof d&&"number"!=typeof d||(e=e||[]).push(s,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(C.hasOwnProperty(s)?(null!=d&&cn(i,s),e||l===d||(e=[])):(e=e||[]).push(s,d))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Ga=function(e,t,n,o){n!==o&&(t.effectTag|=4)};var Za="function"==typeof WeakSet?WeakSet:Set;function es(e,t){var n=t.source,o=t.stack;null===o&&null!==n&&(o=_e(n)),null!==n&&fe(n.type),t=t.value,null!==e&&1===e.tag&&fe(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ts(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){bc(e,t)}else t.current=null}function ns(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,o=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$r(t.type,n),o),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function os(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var o=n.destroy;n.destroy=void 0,void 0!==o&&o()}n=n.next}while(n!==t)}}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var o=n.create;n.destroy=o()}n=n.next}while(n!==t)}}function is(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void rs(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var o=n.elementType===n.type?t.memoizedProps:$r(n.type,t.memoizedProps);e.componentDidUpdate(o,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&hi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}hi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&_n(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Pt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function as(e,t,n){switch("function"==typeof Sc&&Sc(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var o=e.next;Vr(97<n?97:n,(function(){var e=o;do{var n=e.destroy;if(void 0!==n){var r=t;try{n()}catch(e){bc(r,e)}}e=e.next}while(e!==o)}))}break;case 1:ts(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){bc(e,t)}}(t,n);break;case 5:ts(t);break;case 4:ds(e,t,n)}}function ss(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ss(t)}function cs(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:{for(var t=e.return;null!==t;){if(cs(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var o=!1;break;case 3:case 4:t=t.containerInfo,o=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Be(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||cs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}o?function e(t,n,o){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,n?8===o.nodeType?o.parentNode.insertBefore(t,n):o.insertBefore(t,n):(8===o.nodeType?(n=o.parentNode).insertBefore(t,o):(n=o).appendChild(t),null!==(o=o._reactRootContainer)&&void 0!==o||null!==n.onclick||(n.onclick=ln));else if(4!==r&&null!==(t=t.child))for(e(t,n,o),t=t.sibling;null!==t;)e(t,n,o),t=t.sibling}(e,n,t):function e(t,n,o){var r=t.tag,i=5===r||6===r;if(i)t=i?t.stateNode:t.stateNode.instance,n?o.insertBefore(t,n):o.appendChild(t);else if(4!==r&&null!==(t=t.child))for(e(t,n,o),t=t.sibling;null!==t;)e(t,n,o),t=t.sibling}(e,n,t)}function ds(e,t,n){for(var o,r,i=t,s=!1;;){if(!s){s=i.return;e:for(;;){if(null===s)throw Error(a(160));switch(o=s.stateNode,s.tag){case 5:r=!1;break e;case 3:case 4:o=o.containerInfo,r=!0;break e}s=s.return}s=!0}if(5===i.tag||6===i.tag){e:for(var c=e,l=i,d=n,u=l;;)if(as(c,u,d),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===l)break e;for(;null===u.sibling;){if(null===u.return||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(c=o,l=i.stateNode,8===c.nodeType?c.parentNode.removeChild(l):c.removeChild(l)):o.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){o=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(as(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(s=!1)}i.sibling.return=i.return,i=i.sibling}}function us(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void os(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var o=t.memoizedProps,r=null!==e?e.memoizedProps:o;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Tn]=o,"input"===e&&"radio"===o.type&&null!=o.name&&Ce(n,o),an(e,r),t=an(e,o),r=0;r<i.length;r+=2){var s=i[r],c=i[r+1];"style"===s?nn(n,c):"dangerouslySetInnerHTML"===s?Ue(n,c):"children"===s?Be(n,c):J(n,s,c,t)}switch(e){case"input":Te(n,o);break;case"textarea":Ae(n,o);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,null!=(e=o.value)?Re(n,!!o.multiple,e,!1):t!==!!o.multiple&&(null!=o.defaultValue?Re(n,!!o.multiple,o.defaultValue,!0):Re(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Pt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?o=!1:(o=!0,n=t.child,Fs=Br()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,o?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,r=null!=(r=e.memoizedProps.style)&&r.hasOwnProperty("display")?r.display:null,i.style.display=tn("display",r));else if(6===e.tag)e.stateNode.nodeValue=o?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void hs(t);case 19:return void hs(t);case 17:return}throw Error(a(163))}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Za),t.forEach((function(t){var o=yc.bind(null,e,t);n.has(t)||(n.add(t),t.then(o,o))}))}}var ps="function"==typeof WeakMap?WeakMap:Map;function ms(e,t,n){(n=ci(n,null)).tag=3,n.payload={element:null};var o=t.value;return n.callback=function(){Ps||(Ps=!0,Ls=o),es(e,t)},n}function gs(e,t,n){(n=ci(n,null)).tag=3;var o=e.type.getDerivedStateFromError;if("function"==typeof o){var r=t.value;n.payload=function(){return es(e,t),o(r)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof o&&(null===js?js=new Set([this]):js.add(this),es(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var fs,_s=Math.ceil,bs=Q.ReactCurrentDispatcher,vs=Q.ReactCurrentOwner,ys=0,Es=3,Ss=4,ws=0,Cs=null,Ts=null,xs=0,Os=ys,ks=null,Rs=1073741823,Ds=1073741823,Is=null,As=0,Ns=!1,Fs=0,Ms=null,Ps=!1,Ls=null,js=null,Us=!1,Bs=null,qs=90,Gs=null,Vs=0,Hs=null,zs=0;function Ks(){return 0!=(48&ws)?1073741821-(Br()/10|0):0!==zs?zs:zs=1073741821-(Br()/10|0)}function Ws(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var o=qr();if(0==(4&t))return 99===o?1073741823:1073741822;if(0!=(16&ws))return xs;if(null!==n)e=Yr(e,0|n.timeoutMs||5e3,250);else switch(o){case 99:e=1073741823;break;case 98:e=Yr(e,150,100);break;case 97:case 96:e=Yr(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Cs&&e===xs&&--e,e}function Ys(e,t){if(50<Vs)throw Vs=0,Hs=null,Error(a(185));if(null!==(e=$s(e,t))){var n=qr();1073741823===t?0!=(8&ws)&&0==(48&ws)?Zs(e):(Js(e),0===ws&&Kr()):Js(e),0==(4&ws)||98!==n&&99!==n||(null===Gs?Gs=new Map([[e,t]]):(void 0===(n=Gs.get(e))||n>t)&&Gs.set(e,t))}}function $s(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var o=e.return,r=null;if(null===o&&3===e.tag)r=e.stateNode;else for(;null!==o;){if(n=o.alternate,o.childExpirationTime<t&&(o.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===o.return&&3===o.tag){r=o.stateNode;break}o=o.return}return null!==r&&(Cs===r&&(ac(t),Os===Ss&&Nc(r,xs)),Fc(r,t)),r}function Qs(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Ac(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Js(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=zr(Zs.bind(null,e));else{var t=Qs(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var o=Ks();if(1073741823===t?o=99:1===t||2===t?o=95:o=0>=(o=10*(1073741821-t)-10*(1073741821-o))?99:250>=o?98:5250>=o?97:95,null!==n){var r=e.callbackPriority;if(e.callbackExpirationTime===t&&r>=o)return;n!==Nr&&Cr(n)}e.callbackExpirationTime=t,e.callbackPriority=o,t=1073741823===t?zr(Zs.bind(null,e)):Hr(o,Xs.bind(null,e),{timeout:10*(1073741821-t)-Br()}),e.callbackNode=t}}}function Xs(e,t){if(zs=0,t)return Mc(e,t=Ks()),Js(e),null;var n=Qs(e);if(0!==n){if(t=e.callbackNode,0!=(48&ws))throw Error(a(327));if(gc(),e===Cs&&n===xs||nc(e,n),null!==Ts){var o=ws;ws|=16;for(var r=rc();;)try{cc();break}catch(t){oc(e,t)}if(ei(),ws=o,bs.current=r,1===Os)throw t=ks,nc(e,n),Nc(e,n),Js(e),t;if(null===Ts)switch(r=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,o=Os,Cs=null,o){case ys:case 1:throw Error(a(345));case 2:Mc(e,2<n?2:n);break;case Es:if(Nc(e,n),n===(o=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=uc(r)),1073741823===Rs&&10<(r=Fs+500-Br())){if(Ns){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,nc(e,n);break}}if(0!==(i=Qs(e))&&i!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}e.timeoutHandle=vn(hc.bind(null,e),r);break}hc(e);break;case Ss:if(Nc(e,n),n===(o=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=uc(r)),Ns&&(0===(r=e.lastPingedTime)||r>=n)){e.lastPingedTime=n,nc(e,n);break}if(0!==(r=Qs(e))&&r!==n)break;if(0!==o&&o!==n){e.lastPingedTime=o;break}if(1073741823!==Ds?o=10*(1073741821-Ds)-Br():1073741823===Rs?o=0:(o=10*(1073741821-Rs)-5e3,0>(o=(r=Br())-o)&&(o=0),(n=10*(1073741821-n)-r)<(o=(120>o?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*_s(o/1960))-o)&&(o=n)),10<o){e.timeoutHandle=vn(hc.bind(null,e),o);break}hc(e);break;case 5:if(1073741823!==Rs&&null!==Is){i=Rs;var s=Is;if(0>=(o=0|s.busyMinDurationMs)?o=0:(r=0|s.busyDelayMs,o=(i=Br()-(10*(1073741821-i)-(0|s.timeoutMs||5e3)))<=r?0:r+o-i),10<o){Nc(e,n),e.timeoutHandle=vn(hc.bind(null,e),o);break}}hc(e);break;default:throw Error(a(329))}if(Js(e),e.callbackNode===t)return Xs.bind(null,e)}}return null}function Zs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&ws))throw Error(a(327));if(gc(),e===Cs&&t===xs||nc(e,t),null!==Ts){var n=ws;ws|=16;for(var o=rc();;)try{sc();break}catch(t){oc(e,t)}if(ei(),ws=n,bs.current=o,1===Os)throw n=ks,nc(e,t),Nc(e,t),Js(e),n;if(null!==Ts)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Cs=null,hc(e),Js(e)}return null}function ec(e,t){var n=ws;ws|=1;try{return e(t)}finally{0===(ws=n)&&Kr()}}function tc(e,t){var n=ws;ws&=-2,ws|=8;try{return e(t)}finally{0===(ws=n)&&Kr()}}function nc(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,yn(n)),null!==Ts)for(n=Ts.return;null!==n;){var o=n;switch(o.tag){case 1:null!=(o=o.type.childContextTypes)&&_r();break;case 3:Ni(),lr(pr),lr(hr);break;case 5:Mi(o);break;case 4:Ni();break;case 13:case 19:lr(Pi);break;case 10:ti(o)}n=n.return}Cs=e,Ts=xc(e.current,null),xs=t,Os=ys,ks=null,Ds=Rs=1073741823,Is=null,As=0,Ns=!1}function oc(e,t){for(;;){try{if(ei(),Ui.current=fa,zi)for(var n=Gi.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}if(qi=0,Hi=Vi=Gi=null,zi=!1,null===Ts||null===Ts.return)return Os=1,ks=t,Ts=null;e:{var r=e,i=Ts.return,a=Ts,s=t;if(t=xs,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s;if(0==(2&a.mode)){var l=a.alternate;l?(a.updateQueue=l.updateQueue,a.memoizedState=l.memoizedState,a.expirationTime=l.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var d=0!=(1&Pi.current),u=i;do{var h;if(h=13===u.tag){var p=u.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var m=u.memoizedProps;h=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(h){var g=u.updateQueue;if(null===g){var f=new Set;f.add(c),u.updateQueue=f}else g.add(c);if(0==(2&u.mode)){if(u.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var _=ci(1073741823,null);_.tag=2,li(a,_)}a.expirationTime=1073741823;break e}s=void 0,a=t;var b=r.pingCache;if(null===b?(b=r.pingCache=new ps,s=new Set,b.set(c,s)):void 0===(s=b.get(c))&&(s=new Set,b.set(c,s)),!s.has(a)){s.add(a);var v=vc.bind(null,r,c,a);c.then(v,v)}u.effectTag|=4096,u.expirationTime=t;break e}u=u.return}while(null!==u);s=Error((fe(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+_e(a))}5!==Os&&(Os=2),s=Xa(s,a),u=i;do{switch(u.tag){case 3:c=s,u.effectTag|=4096,u.expirationTime=t,di(u,ms(u,c,t));break e;case 1:c=s;var y=u.type,E=u.stateNode;if(0==(64&u.effectTag)&&("function"==typeof y.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===js||!js.has(E)))){u.effectTag|=4096,u.expirationTime=t,di(u,gs(u,c,t));break e}}u=u.return}while(null!==u)}Ts=dc(Ts)}catch(e){t=e;continue}break}}function rc(){var e=bs.current;return bs.current=fa,null===e?fa:e}function ic(e,t){e<Rs&&2<e&&(Rs=e),null!==t&&e<Ds&&2<e&&(Ds=e,Is=t)}function ac(e){e>As&&(As=e)}function sc(){for(;null!==Ts;)Ts=lc(Ts)}function cc(){for(;null!==Ts&&!Fr();)Ts=lc(Ts)}function lc(e){var t=fs(e.alternate,e,xs);return e.memoizedProps=e.pendingProps,null===t&&(t=dc(e)),vs.current=null,t}function dc(e){Ts=e;do{var t=Ts.alternate;if(e=Ts.return,0==(2048&Ts.effectTag)){if(t=Qa(t,Ts,xs),1===xs||1!==Ts.childExpirationTime){for(var n=0,o=Ts.child;null!==o;){var r=o.expirationTime,i=o.childExpirationTime;r>n&&(n=r),i>n&&(n=i),o=o.sibling}Ts.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ts.firstEffect),null!==Ts.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ts.firstEffect),e.lastEffect=Ts.lastEffect),1<Ts.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ts:e.firstEffect=Ts,e.lastEffect=Ts))}else{if(null!==(t=Ja(Ts)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Ts.sibling))return t;Ts=e}while(null!==Ts);return Os===ys&&(Os=5),null}function uc(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function hc(e){var t=qr();return Vr(99,pc.bind(null,e,t)),null}function pc(e,t){do{gc()}while(null!==Bs);if(0!=(48&ws))throw Error(a(327));var n=e.finishedWork,o=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var r=uc(n);if(e.firstPendingTime=r,o<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:o<=e.firstSuspendedTime&&(e.firstSuspendedTime=o-1),o<=e.lastPingedTime&&(e.lastPingedTime=0),o<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Cs&&(Ts=Cs=null,xs=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){var i=ws;ws|=32,vs.current=null,gn=Kt;var s=pn();if(mn(s)){if("selectionStart"in s)var c={start:s.selectionStart,end:s.selectionEnd};else e:{var l=(c=(c=s.ownerDocument)&&c.defaultView||window).getSelection&&c.getSelection();if(l&&0!==l.rangeCount){c=l.anchorNode;var d=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{c.nodeType,u.nodeType}catch(e){c=null;break e}var h=0,p=-1,m=-1,g=0,f=0,_=s,b=null;t:for(;;){for(var v;_!==c||0!==d&&3!==_.nodeType||(p=h+d),_!==u||0!==l&&3!==_.nodeType||(m=h+l),3===_.nodeType&&(h+=_.nodeValue.length),null!==(v=_.firstChild);)b=_,_=v;for(;;){if(_===s)break t;if(b===c&&++g===d&&(p=h),b===u&&++f===l&&(m=h),null!==(v=_.nextSibling))break;b=(_=b).parentNode}_=v}c=-1===p||-1===m?null:{start:p,end:m}}else c=null}c=c||{start:0,end:0}}else c=null;fn={activeElementDetached:null,focusedElem:s,selectionRange:c},Kt=!1,Ms=r;do{try{mc()}catch(e){if(null===Ms)throw Error(a(330));bc(Ms,e),Ms=Ms.nextEffect}}while(null!==Ms);Ms=r;do{try{for(s=e,c=t;null!==Ms;){var y=Ms.effectTag;if(16&y&&Be(Ms.stateNode,""),128&y){var E=Ms.alternate;if(null!==E){var S=E.ref;null!==S&&("function"==typeof S?S(null):S.current=null)}}switch(1038&y){case 2:ls(Ms),Ms.effectTag&=-3;break;case 6:ls(Ms),Ms.effectTag&=-3,us(Ms.alternate,Ms);break;case 1024:Ms.effectTag&=-1025;break;case 1028:Ms.effectTag&=-1025,us(Ms.alternate,Ms);break;case 4:us(Ms.alternate,Ms);break;case 8:ds(s,d=Ms,c),ss(d)}Ms=Ms.nextEffect}}catch(e){if(null===Ms)throw Error(a(330));bc(Ms,e),Ms=Ms.nextEffect}}while(null!==Ms);if(S=fn,E=pn(),y=S.focusedElem,c=S.selectionRange,E!==y&&y&&y.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(y.ownerDocument.documentElement,y)){null!==c&&mn(y)&&(E=c.start,void 0===(S=c.end)&&(S=E),"selectionStart"in y?(y.selectionStart=E,y.selectionEnd=Math.min(S,y.value.length)):(S=(E=y.ownerDocument||document)&&E.defaultView||window).getSelection&&(S=S.getSelection(),d=y.textContent.length,s=Math.min(c.start,d),c=void 0===c.end?s:Math.min(c.end,d),!S.extend&&s>c&&(d=c,c=s,s=d),d=hn(y,s),u=hn(y,c),d&&u&&(1!==S.rangeCount||S.anchorNode!==d.node||S.anchorOffset!==d.offset||S.focusNode!==u.node||S.focusOffset!==u.offset)&&((E=E.createRange()).setStart(d.node,d.offset),S.removeAllRanges(),s>c?(S.addRange(E),S.extend(u.node,u.offset)):(E.setEnd(u.node,u.offset),S.addRange(E))))),E=[];for(S=y;S=S.parentNode;)1===S.nodeType&&E.push({element:S,left:S.scrollLeft,top:S.scrollTop});for("function"==typeof y.focus&&y.focus(),y=0;y<E.length;y++)(S=E[y]).element.scrollLeft=S.left,S.element.scrollTop=S.top}Kt=!!gn,fn=gn=null,e.current=n,Ms=r;do{try{for(y=e;null!==Ms;){var w=Ms.effectTag;if(36&w&&is(y,Ms.alternate,Ms),128&w){E=void 0;var C=Ms.ref;if(null!==C){var T=Ms.stateNode;switch(Ms.tag){case 5:E=T;break;default:E=T}"function"==typeof C?C(E):C.current=E}}Ms=Ms.nextEffect}}catch(e){if(null===Ms)throw Error(a(330));bc(Ms,e),Ms=Ms.nextEffect}}while(null!==Ms);Ms=null,Mr(),ws=i}else e.current=n;if(Us)Us=!1,Bs=e,qs=t;else for(Ms=r;null!==Ms;)t=Ms.nextEffect,Ms.nextEffect=null,Ms=t;if(0===(t=e.firstPendingTime)&&(js=null),1073741823===t?e===Hs?Vs++:(Vs=0,Hs=e):Vs=0,"function"==typeof Ec&&Ec(n.stateNode,o),Js(e),Ps)throw Ps=!1,e=Ls,Ls=null,e;return 0!=(8&ws)||Kr(),null}function mc(){for(;null!==Ms;){var e=Ms.effectTag;0!=(256&e)&&ns(Ms.alternate,Ms),0==(512&e)||Us||(Us=!0,Hr(97,(function(){return gc(),null}))),Ms=Ms.nextEffect}}function gc(){if(90!==qs){var e=97<qs?97:qs;return qs=90,Vr(e,fc)}}function fc(){if(null===Bs)return!1;var e=Bs;if(Bs=null,0!=(48&ws))throw Error(a(331));var t=ws;for(ws|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:os(5,n),rs(5,n)}}catch(t){if(null===e)throw Error(a(330));bc(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return ws=t,Kr(),!0}function _c(e,t,n){li(e,t=ms(e,t=Xa(n,t),1073741823)),null!==(e=$s(e,1073741823))&&Js(e)}function bc(e,t){if(3===e.tag)_c(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){_c(n,e,t);break}if(1===n.tag){var o=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof o.componentDidCatch&&(null===js||!js.has(o))){li(n,e=gs(n,e=Xa(t,e),1073741823)),null!==(n=$s(n,1073741823))&&Js(n);break}}n=n.return}}function vc(e,t,n){var o=e.pingCache;null!==o&&o.delete(t),Cs===e&&xs===n?Os===Ss||Os===Es&&1073741823===Rs&&Br()-Fs<500?nc(e,xs):Ns=!0:Ac(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Js(e)))}function yc(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Ws(t=Ks(),e,null)),null!==(e=$s(e,t))&&Js(e)}fs=function(e,t,n){var o=t.expirationTime;if(null!==e){var r=t.pendingProps;if(e.memoizedProps!==r||pr.current)Da=!0;else{if(o<n){switch(Da=!1,t.tag){case 3:Ua(t),ka();break;case 5:if(Fi(t),4&t.mode&&1!==n&&r.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:fr(t.type)&&yr(t);break;case 4:Ai(t,t.stateNode.containerInfo);break;case 10:o=t.memoizedProps.value,r=t.type._context,dr(Qr,r._currentValue),r._currentValue=o;break;case 13:if(null!==t.memoizedState)return 0!==(o=t.child.childExpirationTime)&&o>=n?Ha(e,t,n):(dr(Pi,1&Pi.current),null!==(t=Ya(e,t,n))?t.sibling:null);dr(Pi,1&Pi.current);break;case 19:if(o=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(o)return Wa(e,t,n);t.effectTag|=64}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null),dr(Pi,Pi.current),!o)return null}return Ya(e,t,n)}Da=!1}}else Da=!1;switch(t.expirationTime=0,t.tag){case 2:if(o=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,r=gr(t,hr.current),oi(t,n),r=Yi(null,t,o,e,r,n),t.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,fr(o)){var i=!0;yr(t)}else i=!1;t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,ai(t);var s=o.getDerivedStateFromProps;"function"==typeof s&&gi(t,o,s,e),r.updater=fi,t.stateNode=r,r._reactInternalFiber=t,yi(t,o,e,n),t=ja(null,t,o,!0,i,n)}else t.tag=0,Ia(null,t,r,n),t=t.child;return t;case 16:e:{if(r=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(r),1!==r._status)throw r._result;switch(r=r._result,t.type=r,i=t.tag=function(e){if("function"==typeof e)return Tc(e)?1:0;if(null!=e){if((e=e.$$typeof)===ce)return 11;if(e===ue)return 14}return 2}(r),e=$r(r,e),i){case 0:t=Pa(null,t,r,e,n);break e;case 1:t=La(null,t,r,e,n);break e;case 11:t=Aa(null,t,r,e,n);break e;case 14:t=Na(null,t,r,$r(r.type,e),o,n);break e}throw Error(a(306,r,""))}return t;case 0:return o=t.type,r=t.pendingProps,Pa(e,t,o,r=t.elementType===o?r:$r(o,r),n);case 1:return o=t.type,r=t.pendingProps,La(e,t,o,r=t.elementType===o?r:$r(o,r),n);case 3:if(Ua(t),o=t.updateQueue,null===e||null===o)throw Error(a(282));if(o=t.pendingProps,r=null!==(r=t.memoizedState)?r.element:null,si(e,t),ui(t,o,null,n),(o=t.memoizedState.element)===r)ka(),t=Ya(e,t,n);else{if((r=t.stateNode.hydrate)&&(Ea=En(t.stateNode.containerInfo.firstChild),ya=t,r=Sa=!0),r)for(n=xi(t,null,o,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ia(e,t,o,n),ka();t=t.child}return t;case 5:return Fi(t),null===e&&Ta(t),o=t.type,r=t.pendingProps,i=null!==e?e.memoizedProps:null,s=r.children,bn(o,r)?s=null:null!==i&&bn(o,i)&&(t.effectTag|=16),Ma(e,t),4&t.mode&&1!==n&&r.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ia(e,t,s,n),t=t.child),t;case 6:return null===e&&Ta(t),null;case 13:return Ha(e,t,n);case 4:return Ai(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Ti(t,null,o,n):Ia(e,t,o,n),t.child;case 11:return o=t.type,r=t.pendingProps,Aa(e,t,o,r=t.elementType===o?r:$r(o,r),n);case 7:return Ia(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ia(e,t,t.pendingProps.children,n),t.child;case 10:e:{o=t.type._context,r=t.pendingProps,s=t.memoizedProps,i=r.value;var c=t.type._context;if(dr(Qr,c._currentValue),c._currentValue=i,null!==s)if(c=s.value,0===(i=jo(c,i)?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(c,i):1073741823))){if(s.children===r.children&&!pr.current){t=Ya(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var l=c.dependencies;if(null!==l){s=c.child;for(var d=l.firstContext;null!==d;){if(d.context===o&&0!=(d.observedBits&i)){1===c.tag&&((d=ci(n,null)).tag=2,li(c,d)),c.expirationTime<n&&(c.expirationTime=n),null!==(d=c.alternate)&&d.expirationTime<n&&(d.expirationTime=n),ni(c.return,n),l.expirationTime<n&&(l.expirationTime=n);break}d=d.next}}else s=10===c.tag&&c.type===t.type?null:c.child;if(null!==s)s.return=c;else for(s=c;null!==s;){if(s===t){s=null;break}if(null!==(c=s.sibling)){c.return=s.return,s=c;break}s=s.return}c=s}Ia(e,t,r.children,n),t=t.child}return t;case 9:return r=t.type,o=(i=t.pendingProps).children,oi(t,n),o=o(r=ri(r,i.unstable_observedBits)),t.effectTag|=1,Ia(e,t,o,n),t.child;case 14:return i=$r(r=t.type,t.pendingProps),Na(e,t,r,i=$r(r.type,i),o,n);case 15:return Fa(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,r=t.pendingProps,r=t.elementType===o?r:$r(o,r),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,fr(o)?(e=!0,yr(t)):e=!1,oi(t,n),bi(t,o,r),yi(t,o,r,n),ja(null,t,o,!0,e,n);case 19:return Wa(e,t,n)}throw Error(a(156,t.tag))};var Ec=null,Sc=null;function wc(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Cc(e,t,n,o){return new wc(e,t,n,o)}function Tc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function xc(e,t){var n=e.alternate;return null===n?((n=Cc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Oc(e,t,n,o,r,i){var s=2;if(o=e,"function"==typeof e)Tc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ne:return kc(n.children,r,i,t);case se:s=8,r|=7;break;case oe:s=8,r|=1;break;case re:return(e=Cc(12,n,t,8|r)).elementType=re,e.type=re,e.expirationTime=i,e;case le:return(e=Cc(13,n,t,r)).type=le,e.elementType=le,e.expirationTime=i,e;case de:return(e=Cc(19,n,t,r)).elementType=de,e.expirationTime=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case ie:s=10;break e;case ae:s=9;break e;case ce:s=11;break e;case ue:s=14;break e;case he:s=16,o=null;break e;case pe:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Cc(s,n,t,r)).elementType=e,t.type=o,t.expirationTime=i,t}function kc(e,t,n,o){return(e=Cc(7,e,o,t)).expirationTime=n,e}function Rc(e,t,n){return(e=Cc(6,e,null,t)).expirationTime=n,e}function Dc(e,t,n){return(t=Cc(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ic(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Ac(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Nc(e,t){var n=e.firstSuspendedTime,o=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(o>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Fc(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Mc(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Pc(e,t,n,o){var r=t.current,i=Ks(),s=pi.suspense;i=Ws(i,r,s);e:if(n){t:{if(Ze(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(fr(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(a(171))}if(1===n.tag){var l=n.type;if(fr(l)){n=vr(n,l,c);break e}}n=c}else n=ur;return null===t.context?t.context=n:t.pendingContext=n,(t=ci(i,s)).payload={element:e},null!==(o=void 0===o?null:o)&&(t.callback=o),li(r,t),Ys(r,i),i}function Lc(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function jc(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Uc(e,t){jc(e,t),(e=e.alternate)&&jc(e,t)}function Bc(e,t,n){var o=new Ic(e,t,n=null!=n&&!0===n.hydrate),r=Cc(3,null,null,2===t?7:1===t?3:0);o.current=r,r.stateNode=o,ai(r),e[xn]=o.current,n&&0!==t&&function(e,t){var n=Xe(t);xt.forEach((function(e){mt(e,t,n)})),Ot.forEach((function(e){mt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=o}function qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Gc(e,t,n,o,r){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof r){var s=r;r=function(){var e=Lc(a);s.call(e)}}Pc(t,a,e,r)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Bc(e,0,t?{hydrate:!0}:void 0)}(n,o),a=i._internalRoot,"function"==typeof r){var c=r;r=function(){var e=Lc(a);c.call(e)}}tc((function(){Pc(t,a,e,r)}))}return Lc(a)}function Vc(e,t,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==o?null:""+o,children:e,containerInfo:t,implementation:n}}function Hc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!qc(t))throw Error(a(200));return Vc(e,t,null,n)}Bc.prototype.render=function(e){Pc(e,this._internalRoot,null,null)},Bc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Pc(null,e,null,(function(){t[xn]=null}))},gt=function(e){if(13===e.tag){var t=Yr(Ks(),150,100);Ys(e,t),Uc(e,t)}},ft=function(e){13===e.tag&&(Ys(e,3),Uc(e,3))},_t=function(e){if(13===e.tag){var t=Ks();Ys(e,t=Ws(t,e,null)),Uc(e,t)}},k=function(e,t,n){switch(t){case"input":if(Te(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var r=Dn(o);if(!r)throw Error(a(90));Ee(o),Te(o,r)}}}break;case"textarea":Ae(e,n);break;case"select":null!=(t=n.value)&&Re(e,!!n.multiple,t,!1)}},F=ec,M=function(e,t,n,o,r){var i=ws;ws|=4;try{return Vr(98,e.bind(null,t,n,o,r))}finally{0===(ws=i)&&Kr()}},P=function(){0==(49&ws)&&(function(){if(null!==Gs){var e=Gs;Gs=null,e.forEach((function(e,t){Mc(t,e),Js(t)})),Kr()}}(),gc())},L=function(e,t){var n=ws;ws|=2;try{return e(t)}finally{0===(ws=n)&&Kr()}};var zc,Kc,Wc={Events:[kn,Rn,Dn,x,w,Ln,function(e){rt(e,Pn)},A,N,Jt,st,gc,{current:!1}]};Kc=(zc={findFiberByHostInstance:On,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Ec=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Sc=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(r({},zc,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Kc?Kc(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wc,t.createPortal=Hc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&ws))throw Error(a(187));var n=ws;ws|=1;try{return Vr(99,e.bind(null,t))}finally{ws=n,Kr()}},t.hydrate=function(e,t,n){if(!qc(t))throw Error(a(200));return Gc(null,e,t,!0,n)},t.render=function(e,t,n){if(!qc(t))throw Error(a(200));return Gc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!qc(e))throw Error(a(40));return!!e._reactRootContainer&&(tc((function(){Gc(null,null,e,!1,(function(){e._reactRootContainer=null,e[xn]=null}))})),!0)},t.unstable_batchedUpdates=ec,t.unstable_createPortal=function(e,t){return Hc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,o){if(!qc(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Gc(e,t,n,!1,o)},t.version="16.14.0"},function(e,t,n){"use strict";var o=n(494),r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,d=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,f="function"==typeof Symbol&&Symbol.iterator;function _(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||b}function E(){}function S(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||b}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(_(85));this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=y.prototype;var w=S.prototype=new E;w.constructor=S,o(w,y.prototype),w.isPureReactComponent=!0;var C={current:null},T=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,n){var o,r={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)T.call(t,o)&&!x.hasOwnProperty(o)&&(r[o]=t[o]);var c=arguments.length-2;if(1===c)r.children=n;else if(1<c){for(var l=Array(c),d=0;d<c;d++)l[d]=arguments[d+2];r.children=l}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===r[o]&&(r[o]=c[o]);return{$$typeof:i,type:e,key:a,ref:s,props:r,_owner:C.current}}function k(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var R=/\/+/g,D=[];function I(e,t,n,o){if(D.length){var r=D.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=o,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:o,count:0}}function A(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>D.length&&D.push(e)}function N(e,t,n){return null==e?0:function e(t,n,o,r){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var c=!1;if(null===t)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case i:case a:c=!0}}if(c)return o(r,t,""===n?"."+F(t,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l<t.length;l++){var d=n+F(s=t[l],l);c+=e(s,d,o,r)}else if(null===t||"object"!=typeof t?d=null:d="function"==typeof(d=f&&t[f]||t["@@iterator"])?d:null,"function"==typeof d)for(t=d.call(t),l=0;!(s=t.next()).done;)c+=e(s=s.value,d=n+F(s,l++),o,r);else if("object"===s)throw o=""+t,Error(_(31,"[object Object]"===o?"object with keys {"+Object.keys(t).join(", ")+"}":o,""));return c}(e,"",t,n)}function F(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function M(e,t){e.func.call(e.context,t,e.count++)}function P(e,t,n){var o=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?L(e,o,n,(function(e){return e})):null!=e&&(k(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,r+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(R,"$&/")+"/")+n)),o.push(e))}function L(e,t,n,o,r){var i="";null!=n&&(i=(""+n).replace(R,"$&/")+"/"),N(e,P,t=I(t,i,o,r)),A(t)}var j={current:null};function U(){var e=j.current;if(null===e)throw Error(_(321));return e}var B={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:C,IsSomeRendererActing:{current:!1},assign:o};t.Children={map:function(e,t,n){if(null==e)return e;var o=[];return L(e,o,null,t,n),o},forEach:function(e,t,n){if(null==e)return e;N(e,M,t=I(null,null,t,n)),A(t)},count:function(e){return N(e,(function(){return null}),null)},toArray:function(e){var t=[];return L(e,t,null,(function(e){return e})),t},only:function(e){if(!k(e))throw Error(_(143));return e}},t.Component=y,t.Fragment=s,t.Profiler=l,t.PureComponent=S,t.StrictMode=c,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,t.cloneElement=function(e,t,n){if(null==e)throw Error(_(267,e));var r=o({},e.props),a=e.key,s=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,c=C.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(d in t)T.call(t,d)&&!x.hasOwnProperty(d)&&(r[d]=void 0===t[d]&&void 0!==l?l[d]:t[d])}var d=arguments.length-2;if(1===d)r.children=n;else if(1<d){l=Array(d);for(var u=0;u<d;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:i,type:e.type,key:a,ref:s,props:r,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:d,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:h,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:g,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return U().useCallback(e,t)},t.useContext=function(e,t){return U().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return U().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return U().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return U().useLayoutEffect(e,t)},t.useMemo=function(e,t){return U().useMemo(e,t)},t.useReducer=function(e,t,n){return U().useReducer(e,t,n)},t.useRef=function(e){return U().useRef(e)},t.useState=function(e){return U().useState(e)},t.version="16.14.0"},function(e,t,n){"use strict";e.exports=n(758)},function(e,t,n){"use strict";var o,r,i,a,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,l=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(d,0),e}},u=Date.now();t.unstable_now=function(){return Date.now()-u},o=function(e){null!==c?setTimeout(o,0,e):(c=e,setTimeout(d,0))},r=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var h=window.performance,p=window.Date,m=window.setTimeout,g=window.clearTimeout;if("undefined"!=typeof console){var f=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof f&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof h&&"function"==typeof h.now)t.unstable_now=function(){return h.now()};else{var _=p.now();t.unstable_now=function(){return p.now()-_}}var b=!1,v=null,y=-1,E=5,S=0;a=function(){return t.unstable_now()>=S},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):E=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,C=w.port2;w.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();S=e+E;try{v(!0,e)?C.postMessage(null):(b=!1,v=null)}catch(e){throw C.postMessage(null),e}}else b=!1},o=function(e){v=e,b||(b=!0,C.postMessage(null))},r=function(e,n){y=m((function(){e(t.unstable_now())}),n)},i=function(){g(y),y=-1}}function T(e,t){var n=e.length;e.push(t);e:for(;;){var o=n-1>>>1,r=e[o];if(!(void 0!==r&&0<k(r,t)))break e;e[o]=t,e[n]=r,n=o}}function x(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var o=0,r=e.length;o<r;){var i=2*(o+1)-1,a=e[i],s=i+1,c=e[s];if(void 0!==a&&0>k(a,n))void 0!==c&&0>k(c,a)?(e[o]=c,e[s]=n,o=s):(e[o]=a,e[i]=n,o=i);else{if(!(void 0!==c&&0>k(c,n)))break e;e[o]=c,e[s]=n,o=s}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var R=[],D=[],I=1,A=null,N=3,F=!1,M=!1,P=!1;function L(e){for(var t=x(D);null!==t;){if(null===t.callback)O(D);else{if(!(t.startTime<=e))break;O(D),t.sortIndex=t.expirationTime,T(R,t)}t=x(D)}}function j(e){if(P=!1,L(e),!M)if(null!==x(R))M=!0,o(U);else{var t=x(D);null!==t&&r(j,t.startTime-e)}}function U(e,n){M=!1,P&&(P=!1,i()),F=!0;var o=N;try{for(L(n),A=x(R);null!==A&&(!(A.expirationTime>n)||e&&!a());){var s=A.callback;if(null!==s){A.callback=null,N=A.priorityLevel;var c=s(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof c?A.callback=c:A===x(R)&&O(R),L(n)}else O(R);A=x(R)}if(null!==A)var l=!0;else{var d=x(D);null!==d&&r(j,d.startTime-n),l=!1}return l}finally{A=null,N=o,F=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var q=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){M||F||(M=!0,o(U))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return x(R)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=q,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var c=a.delay;c="number"==typeof c&&0<c?s+c:s,a="number"==typeof a.timeout?a.timeout:B(e)}else a=B(e),c=s;return e={id:I++,callback:n,priorityLevel:e,startTime:c,expirationTime:a=c+a,sortIndex:-1},c>s?(e.sortIndex=c,T(D,e),null===x(R)&&e===x(D)&&(P?i():P=!0,r(j,c-s))):(e.sortIndex=a,T(R,e),M||F||(M=!0,o(U))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();L(e);var n=x(R);return n!==A&&null!==A&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<A.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}},function(e,t,n){"use strict";var o=n(760),r=n(495).isArray,i=n(495).isDate,a=n(763).sprintf,s=n(7),c=n(764),l=n(766);function d(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)}function u(e){return d(e)&&":"===e[0]}function h(e,t){return t.reduce((function(e,t){return null!==(n=e)&&"[object Object]"===Object.prototype.toString.call(n)&&function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:null;var n}),e)}function p(){s.EventEmitter.apply(this),this._registry={locale:"en",interpolate:!0,fallbackLocales:[],scope:null,translations:{},interpolations:{},normalizedKeys:{},separator:".",keepTrailingDot:!1,keyTransformer:function(e){return e},generateMissingEntry:function(e){return"missing translation: "+e}},this.registerTranslations("en",n(768)),this.setMaxListeners(0)}p.prototype=s.EventEmitter.prototype,p.prototype.constructor=s.EventEmitter,p.prototype.getLocale=function(){return this._registry.locale},p.prototype.setLocale=function(e){var t=this._registry.locale;return t!=e&&(this._registry.locale=e,this.emit("localechange",e,t)),t},p.prototype.getFallbackLocale=function(){return this._registry.fallbackLocales},p.prototype.setFallbackLocale=function(e){var t=this._registry.fallbackLocales;return this._registry.fallbackLocales=[].concat(e||[]),t},p.prototype.getAvailableLocales=function(){return this._registry.availableLocales||Object.keys(this._registry.translations)},p.prototype.setAvailableLocales=function(e){var t=this.getAvailableLocales();return this._registry.availableLocales=e,t},p.prototype.getSeparator=function(){return this._registry.separator},p.prototype.setSeparator=function(e){var t=this._registry.separator;return this._registry.separator=e,t},p.prototype.setInterpolate=function(e){var t=this._registry.interpolate;return this._registry.interpolate=e,t},p.prototype.getInterpolate=function(){return this._registry.interpolate},p.prototype.setKeyTransformer=function(e){var t=this._registry.keyTransformer;return this._registry.keyTransformer=e,t},p.prototype.getKeyTransformer=function(){return this._registry.keyTransformer},p.prototype.setMissingEntryGenerator=function(e){var t=this._registry.generateMissingEntry;return this._registry.generateMissingEntry=e,t},p.prototype.getMissingEntryGenerator=function(){return this._registry.generateMissingEntry},p.prototype.registerTranslations=function(e,t){var n={};return n[e]=t,o(!0,this._registry.translations,n),n},p.prototype.registerInterpolations=function(e){return o(!0,this._registry.interpolations,e)},p.prototype.onLocaleChange=p.prototype.addLocaleChangeListener=function(e){this.addListener("localechange",e)},p.prototype.offLocaleChange=p.prototype.removeLocaleChangeListener=function(e){this.removeListener("localechange",e)},p.prototype.onTranslationNotFound=p.prototype.addTranslationNotFoundListener=function(e){this.addListener("translationnotfound",e)},p.prototype.offTranslationNotFound=p.prototype.removeTranslationNotFoundListener=function(e){this.removeListener("translationnotfound",e)},p.prototype.onError=p.prototype.addErrorListener=function(e){this.addListener("error",e)},p.prototype.offError=p.prototype.removeErrorListener=function(e){this.removeListener("error",e)},p.prototype.translate=function(e,t){if(!r(e)&&!d(e)||!e.length)throw new Error("invalid argument: key");u(e)&&(e=e.substr(1)),e=this._registry.keyTransformer(e,t);var n=(t=o(!0,{},t)).locale||this._registry.locale;delete t.locale;var i=t.scope||this._registry.scope;delete t.scope;var a=t.separator||this._registry.separator;delete t.separator;var s=[].concat(t.fallbackLocale||this._registry.fallbackLocales);delete t.fallbackLocale;var c=this._normalizeKeys(n,i,e,a),l=h(this._registry.translations,c);if(null===l&&(this.emit("translationnotfound",n,e,t.fallback,i),t.fallback&&(l=this._fallback(n,i,e,t.fallback,t))),null===l&&s.length>0&&-1===s.indexOf(n))for(var p=0,m=s.length;p<m;p++){var g=s[p],f=this._normalizeKeys(g,i,e,a);if(l=h(this._registry.translations,f)){n=g;break}}return null===l&&(l=this._registry.generateMissingEntry(c.join(a))),l=this._pluralize(n,l,t.count),!1!==this._registry.interpolate&&!1!==t.interpolate&&(l=this._interpolate(l,t)),l},p.prototype.localize=function(e,t){if(!i(e))throw new Error("invalid argument: object must be a date");var n=(t=o(!0,{},t)).locale||this._registry.locale,r=t.scope||"counterpart",a=t.type||"datetime",s=t.format||"default";return t={locale:n,scope:r,interpolate:!1},s=this.translate(["formats",a,s],o(!0,{},t)),l(e,s,this.translate("names",t))},p.prototype._pluralize=function(e,t,n){if("object"!=typeof t||null===t||"number"!=typeof n)return t;var o=this.translate("pluralize",{locale:e,scope:"counterpart"});return"[object Function]"!==Object.prototype.toString.call(o)?o:o(t,n)},p.prototype.withLocale=function(e,t,n){var o=this._registry.locale;this._registry.locale=e;var r=t.call(n);return this._registry.locale=o,r},p.prototype.withScope=function(e,t,n){var o=this._registry.scope;this._registry.scope=e;var r=t.call(n);return this._registry.scope=o,r},p.prototype.withSeparator=function(e,t,n){var o=this.setSeparator(e),r=t.call(n);return this.setSeparator(o),r},p.prototype._normalizeKeys=function(e,t,n,o){var r=[];return r=(r=(r=r.concat(this._normalizeKey(e,o))).concat(this._normalizeKey(t,o))).concat(this._normalizeKey(n,o))},p.prototype._normalizeKey=function(e,t){return this._registry.normalizedKeys[t]=this._registry.normalizedKeys[t]||{},this._registry.normalizedKeys[t][e]=this._registry.normalizedKeys[t][e]||function(e){if(r(e)){var n=e.map(function(e){return this._normalizeKey(e,t)}.bind(this));return[].concat.apply([],n)}if(null==e)return[];for(var o=e.split(t),i=o.length-1;i>=0;i--)""===o[i]&&(o.splice(i,1),!0===this._registry.keepTrailingDot&&i==o.length&&(o[o.length-1]+=""+t));return o}.bind(this)(e),this._registry.normalizedKeys[t][e]},p.prototype._interpolate=function(e,t){if("string"!=typeof e)return e;try{return a(e,o({},this._registry.interpolations,t))}catch(n){if(!(this.listenerCount("error")>0))throw n;return this.emit("error",n,e,t),null}},p.prototype._resolve=function(e,t,n,r,i){if(!1===(i=i||{}).resolve)return r;var a,s;if(u(r))a=this.translate(r,o({},i,{locale:e,scope:t}));else if("function"==typeof(s=r)||"[object Function]"===Object.prototype.toString.call(s)){var c;i.object?(c=i.object,delete i.object):c=n,a=this._resolve(e,t,n,r(c,i))}else a=r;return/^missing translation:/.test(a)?null:a},p.prototype._fallback=function(e,t,n,o,i){if(i=c(i,"fallback"),r(o)){for(var a=0,s=o.length;a<s;a++){var l=this._resolve(e,t,n,o[a],i);if(l)return l}return null}return this._resolve(e,t,n,o,i)};var m=new p;function g(){return m.translate.apply(m,arguments)}o(g,m,{Instance:p,Translator:p}),e.exports=g},function(e,t,n){"use strict";var o=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},c=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var t,n=o.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&o.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return void 0===t||o.call(e,t)},l=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},d=function(e,t){if("__proto__"===t){if(!o.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,n,o,r,i,a,u=arguments[0],h=1,p=arguments.length,m=!1;for("boolean"==typeof u&&(m=u,u=arguments[1]||{},h=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});h<p;++h)if(null!=(t=arguments[h]))for(n in t)o=d(u,n),u!==(r=d(t,n))&&(m&&r&&(c(r)||(i=s(r)))?(i?(i=!1,a=o&&s(o)?o:[]):a=o&&c(o)?o:{},l(u,{name:n,newValue:e(m,a,r)})):void 0!==r&&l(u,{name:n,newValue:r}));return u}},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){var o;!function(){"use strict";var r={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function i(e){return s(l(e),arguments)}function a(e,t){return i.apply(null,[e].concat(t||[]))}function s(e,t){var n,o,a,s,c,l,d,u,h,p=1,m=e.length,g="";for(o=0;o<m;o++)if("string"==typeof e[o])g+=e[o];else if("object"==typeof e[o]){if((s=e[o]).keys)for(n=t[p],a=0;a<s.keys.length;a++){if(null==n)throw new Error(i('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[a],s.keys[a-1]));n=n[s.keys[a]]}else n=s.param_no?t[s.param_no]:t[p++];if(r.not_type.test(s.type)&&r.not_primitive.test(s.type)&&n instanceof Function&&(n=n()),r.numeric_arg.test(s.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(i("[sprintf] expecting number but found %T",n));switch(r.number.test(s.type)&&(u=n>=0),s.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,s.width?parseInt(s.width):0);break;case"e":n=s.precision?parseFloat(n).toExponential(s.precision):parseFloat(n).toExponential();break;case"f":n=s.precision?parseFloat(n).toFixed(s.precision):parseFloat(n);break;case"g":n=s.precision?String(Number(n.toPrecision(s.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=s.precision?n.substring(0,s.precision):n;break;case"t":n=String(!!n),n=s.precision?n.substring(0,s.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=s.precision?n.substring(0,s.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=s.precision?n.substring(0,s.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}r.json.test(s.type)?g+=n:(!r.number.test(s.type)||u&&!s.sign?h="":(h=u?"+":"-",n=n.toString().replace(r.sign,"")),l=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",d=s.width-(h+n).length,c=s.width&&d>0?l.repeat(d):"",g+=s.align?h+n+c:"0"===l?h+c+n:c+h+n)}return g}var c=Object.create(null);function l(e){if(c[e])return c[e];for(var t,n=e,o=[],i=0;n;){if(null!==(t=r.text.exec(n)))o.push(t[0]);else if(null!==(t=r.modulo.exec(n)))o.push("%");else{if(null===(t=r.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var a=[],s=t[2],l=[];if(null===(l=r.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(l[1]);""!==(s=s.substring(l[0].length));)if(null!==(l=r.key_access.exec(s)))a.push(l[1]);else{if(null===(l=r.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(l[1])}t[2]=a}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");o.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return c[e]=o}t.sprintf=i,t.vsprintf=a,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=a,void 0===(o=function(){return{sprintf:i,vsprintf:a}}.call(t,n,t,e))||(e.exports=o))}()},function(e,t,n){"use strict";var o=Array.prototype,r=o.concat,i=o.slice,a=n(765);e.exports=function(e){var t={},n=r.apply(o,i.call(arguments,1));for(var s in e)-1===a(n,s)&&(t[s]=e[s]);return t}},function(e,t){var n=[].indexOf;e.exports=function(e,t){if(n)return e.indexOf(t);for(var o=0;o<e.length;++o)if(e[o]===t)return o;return-1}},function(e,t,n){"use strict";var o=n(767);function r(e,t,n){"number"==typeof t&&(n=t,t="0"),null===t&&(t="0"),n=n||2;var o=String(e);if(t)for(;o.length<n;)o=t+o;return o}function i(e){var t=e.getHours();return 0===t?t=12:t>12&&(t-=12),t}function a(e,t){t=t||"sunday";var n=e.getDay();"monday"==t&&(0===n?n=6:n--);var o=new Date(e.getFullYear(),0,1),r=((e-o)/864e5+7-n)/7;return Math.floor(r)}e.exports=function e(t,n,s){var c=t.getTime();return s=s||o,n.replace(/%([-_0]?.)/g,(function(n,o){var l=null;if(2==o.length){switch(o[0]){case"-":l="";break;case"_":l=" ";break;case"0":l="0";break;default:return n}o=o[1]}switch(o){case"A":return s.days[t.getDay()];case"a":return s.abbreviated_days[t.getDay()];case"B":return s.months[t.getMonth()];case"b":return s.abbreviated_months[t.getMonth()];case"C":return r(Math.floor(t.getFullYear()/100),l);case"D":return e(t,"%m/%d/%y");case"d":return r(t.getDate(),l);case"e":return t.getDate();case"F":return e(t,"%Y-%m-%d");case"H":return r(t.getHours(),l);case"h":return s.abbreviated_months[t.getMonth()];case"I":return r(i(t),l);case"j":return r(Math.ceil((t.getTime()-new Date(t.getFullYear(),0,1).getTime())/864e5),3);case"k":return r(t.getHours(),null===l?" ":l);case"L":return r(Math.floor(c%1e3),3);case"l":return r(i(t),null===l?" ":l);case"M":return r(t.getMinutes(),l);case"m":return r(t.getMonth()+1,l);case"n":return"\n";case"o":return String(t.getDate())+function(e){var t=e%10,n=e%100;if(n>=11&&n<=13||0===t||t>=4)return"th";switch(t){case 1:return"st";case 2:return"nd";case 3:return"rd"}}(t.getDate());case"P":return t.getHours()<12?s.am.toLowerCase():s.pm.toLowerCase();case"p":return t.getHours()<12?s.am.toUpperCase():s.pm.toUpperCase();case"R":return e(t,"%H:%M");case"r":return e(t,"%I:%M:%S %p");case"S":return r(t.getSeconds(),l);case"s":return Math.floor(c/1e3);case"T":return e(t,"%H:%M:%S");case"t":return"\t";case"U":return r(a(t,"sunday"),l);case"u":return 0===t.getDay()?7:t.getDay();case"v":return e(t,"%e-%b-%Y");case"W":return r(a(t,"monday"),l);case"w":return t.getDay();case"Y":return t.getFullYear();case"y":var d=String(t.getFullYear());return d.slice(d.length-2);case"Z":var u=t.toString().match(/\((\w+)\)/);return u&&u[1]||"";case"z":var h=t.getTimezoneOffset();return(h>0?"-":"+")+r(Math.round(Math.abs(h/60)),2)+":"+r(h%60,2);default:return o}}))}},function(e,t,n){"use strict";e.exports=n(496)},function(e,t,n){"use strict";e.exports={counterpart:{names:n(496),pluralize:n(769),formats:{date:{default:"%a, %e %b %Y",long:"%A, %B %o, %Y",short:"%b %e"},time:{default:"%H:%M",long:"%H:%M:%S %z",short:"%H:%M"},datetime:{default:"%a, %e %b %Y %H:%M",long:"%A, %B %o, %Y %H:%M:%S %z",short:"%e %b %H:%M"}}}}},function(e,t,n){"use strict";e.exports=function(e,t){var n;return 0===t&&"zero"in e&&(n="zero"),e[n=n||(1===t?"one":"other")]}},function(e,t,n){"use strict";(function(e){class o{constructor(){this.components=null}getComponent(e){if(!e)throw new Error("Invalid component name: "+e);if(null===this.components)throw new Error(`Attempted to get a component (${e}) before a skin has been loaded. This is probably because either: a) Your app has not called sdk.loadSkin(), or b) A component has called getComponent at the root level`);const t=(t=>{if(!t)return null;let n=t[e];return n||(n=t["views."+e]),n})(this.components);if(!t)return null;if(!("function"==typeof t||t.render))throw new Error(`Not a valid component: ${e} (type = ${typeof t}).`);return t}load(e){if(null!==this.components)throw new Error("Attempted to load a skin while a skin is already loadedIf you want to change the active skin, call resetSkin first");this.components={};const t=Object.keys(e.components);for(let n=0;n<t.length;++n){const o=e.components[t[n]];this.addComponent(t[n],o)}const o=n(1384);if(!o||!o.components)throw new Error("Invalid react-sdk component index");for(const e in o.components)this.components[e]||(this.components[e]=o.components[e])}addComponent(e,t){let n=e;void 0!==t.replaces&&(n=t.replaces.indexOf(".")>-1?t.replaces:e.substr(0,e.lastIndexOf(".")+1)+t.replaces.split(".").pop()),this.components[n]=t}reset(){this.components=null}}void 0===e.mxSkinner&&(e.mxSkinner=new o),t.a=e.mxSkinner}).call(this,n(6))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var o,r,i,a,s,c=1,l={},d=!1,u=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?o=function(e){t.nextTick((function(){m(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){m(e.data)},o=function(e){i.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,o=function(e){var t=u.createElement("script");t.onreadystatechange=function(){m(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):o=function(e){setTimeout(m,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&m(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),o=function(t){e.postMessage(a+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return l[c]=r,o(c),c++},h.clearImmediate=p}function p(e){delete l[e]}function m(e){if(d)setTimeout(m,0,e);else{var t=l[e];if(t){d=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{p(e),d=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(6),n(227))},function(e,t){e.exports="img/feather-customised/check.5745b4e.svg"},function(e,t){e.exports="img/element-desktop-logo.93fc5eb.svg"},function(e,t,n){e.exports.Dispatcher=n(775)},function(e,t,n){"use strict";t.__esModule=!0;var o=n(177),r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}return e.prototype.register=function(e){var t="ID_"+this._lastID++;return this._callbacks[t]=e,t},e.prototype.unregister=function(e){this._callbacks[e]||o(!1),delete this._callbacks[e]},e.prototype.waitFor=function(e){this._isDispatching||o(!1);for(var t=0;t<e.length;t++){var n=e[t];this._isPending[n]?this._isHandled[n]||o(!1):(this._callbacks[n]||o(!1),this._invokeCallback(n))}},e.prototype.dispatch=function(e){this._isDispatching&&o(!1),this._startDispatching(e);try{for(var t in this._callbacks)this._isPending[t]||this._invokeCallback(t)}finally{this._stopDispatching()}},e.prototype.isDispatching=function(){return this._isDispatching},e.prototype._invokeCallback=function(e){this._isPending[e]=!0,this._callbacks[e](this._pendingPayload),this._isHandled[e]=!0},e.prototype._startDispatching=function(e){for(var t in this._callbacks)this._isPending[t]=!1,this._isHandled[t]=!1;this._pendingPayload=e,this._isDispatching=!0},e.prototype._stopDispatching=function(){delete this._pendingPayload,this._isDispatching=!1},e}();e.exports=r},function(e,t,n){"use strict";var o=n(777);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(507),s=n(177),c=n(779),l={pure:!0,withProps:!1};e.exports={create:function(e,t){var n;(n=e).getStores||s(!1),n.calculateState||s(!1);var d=o({},l,t||{}),u=function(t){function n(o){r(this,n),t.call(this,o),this.state=d.withProps?e.calculateState(null,o):e.calculateState(null,void 0)}return i(n,t),n.prototype.componentDidMount=function(){var n=this;t.prototype.componentDidMount&&t.prototype.componentDidMount.call(this);var o=e.getStores(),r=!1,i=function(){r=!0};this._fluxContainerSubscriptions=o.map((function(e){return e.addListener(i)}));this._fluxContainerStoreGroup=new a(o,(function(){r&&n.setState((function(t){return d.withProps?e.calculateState(t,n.props):e.calculateState(t,void 0)})),r=!1}))},n.prototype.componentWillReceiveProps=function(n,o){t.prototype.componentWillReceiveProps&&t.prototype.componentWillReceiveProps.call(this,n,o),d.withProps&&(d.pure&&c(this.props,n)||this.setState((function(t){return e.calculateState(t,n)})))},n.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount&&t.prototype.componentWillUnmount.call(this),this._fluxContainerStoreGroup.release();var e=this._fluxContainerSubscriptions,n=Array.isArray(e),o=0;for(e=n?e:e[Symbol.iterator]();;){var r;if(n){if(o>=e.length)break;r=e[o++]}else{if((o=e.next()).done)break;r=o.value}r.remove()}this._fluxContainerSubscriptions=[]},n}(e),h=d.pure?function(e){function t(){r(this,t),e.apply(this,arguments)}return i(t,e),t.prototype.shouldComponentUpdate=function(e,t){return!c(this.props,e)||!c(this.state,t)},t}(u):u,p=e.displayName||e.name;return h.displayName="FluxContainer("+p+")",h}}},function(e,t,n){"use strict";var o=Object.prototype.hasOwnProperty;e.exports=function(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=o.bind(t),a=0;a<n.length;a++)if(!i(n[a])||e[n[a]]!==t[n[a]])return!1;return!0}},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=n(508),i=n(787),a=n(177),s=function(e){function t(){o(this,t),e.apply(this,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getInitialState=function(){return i.Map()},t.prototype.at=function(e){return this.has(e)||a(!1),this.get(e)},t.prototype.has=function(e){return this.getState().has(e)},t.prototype.get=function(e){return this.getState().get(e)},t.prototype.getAll=function(e,t){var n=this,o=i.Set(e),r=t||i.Map();return r.withMutations((function(e){var t=r,i=Array.isArray(t),a=0;for(t=i?t:t[Symbol.iterator]();;){var s;if(i){if(a>=t.length)break;s=t[a++]}else{if((a=t.next()).done)break;s=a.value}var c=s[0];o.has(c)&&n.has(c)||e.delete(c)}var l=o,d=Array.isArray(l),u=0;for(l=d?l:l[Symbol.iterator]();;){var h;if(d){if(u>=l.length)break;h=l[u++]}else{if((u=l.next()).done)break;h=u.value}var p=h;n.has(p)&&e.set(p,n.at(p))}}))},t}(r);e.exports=s},function(e,t,n){var o={EventEmitter:n(782),EmitterSubscription:n(510)};e.exports=o},function(e,t,n){"use strict";var o=n(510),r=n(784),i=n(785),a=n(511),s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._subscriber=new r,this._currentSubscription=null}return e.prototype.addListener=function(e,t,n){return this._subscriber.addSubscription(e,new o(this._subscriber,t,n))},e.prototype.once=function(e,t,n){var o=this;return this.addListener(e,(function(){o.removeCurrentListener(),t.apply(n,arguments)}))},e.prototype.removeAllListeners=function(e){this._subscriber.removeAllSubscriptions(e)},e.prototype.removeCurrentListener=function(){this._currentSubscription||a(!1),this._subscriber.removeSubscription(this._currentSubscription)},e.prototype.listeners=function(e){var t=this._subscriber.getSubscriptionsForType(e);return t?t.filter(i.thatReturnsTrue).map((function(e){return e.listener})):[]},e.prototype.emit=function(e){var t=this._subscriber.getSubscriptionsForType(e);if(t){for(var n=Object.keys(t),o=0;o<n.length;o++){var r=n[o],i=t[r];i&&(this._currentSubscription=i,this.__emitToSubscription.apply(this,[i].concat(Array.prototype.slice.call(arguments))))}this._currentSubscription=null}},e.prototype.__emitToSubscription=function(e,t){var n=Array.prototype.slice.call(arguments,2);e.listener.apply(e.context,n)},e}();e.exports=s},function(e,t,n){"use strict";var o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.subscriber=t}return e.prototype.remove=function(){this.subscriber&&(this.subscriber.removeSubscription(this),this.subscriber=null)},e}();e.exports=o},function(e,t,n){"use strict";var o=n(511),r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._subscriptionsForType={},this._currentSubscription=null}return e.prototype.addSubscription=function(e,t){t.subscriber!==this&&o(!1),this._subscriptionsForType[e]||(this._subscriptionsForType[e]=[]);var n=this._subscriptionsForType[e].length;return this._subscriptionsForType[e].push(t),t.eventType=e,t.key=n,t},e.prototype.removeAllSubscriptions=function(e){void 0===e?this._subscriptionsForType={}:delete this._subscriptionsForType[e]},e.prototype.removeSubscription=function(e){var t=e.eventType,n=e.key,o=this._subscriptionsForType[t];o&&delete o[n]},e.prototype.getSubscriptionsForType=function(e){return this._subscriptionsForType[e]},e}();e.exports=r},function(e,t,n){"use strict";function o(e){return function(){return e}}var r=function(){};r.thatReturns=o,r.thatReturnsFalse=o(!1),r.thatReturnsTrue=o(!0),r.thatReturnsNull=o(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var o=n(177);e.exports=function(e,t){o(!1)}},function(e,t,n){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:G(e)}function o(e){return s(e)?e:V(e)}function r(e){return c(e)?e:H(e)}function i(e){return a(e)&&!l(e)?e:z(e)}function a(e){return!(!e||!e[u])}function s(e){return!(!e||!e[h])}function c(e){return!(!e||!e[p])}function l(e){return s(e)||c(e)}function d(e){return!(!e||!e[m])}t(o,n),t(r,n),t(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=c,n.isAssociative=l,n.isOrdered=d,n.Keyed=o,n.Indexed=r,n.Set=i;var u="@@__IMMUTABLE_ITERABLE__@@",h="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",m="@@__IMMUTABLE_ORDERED__@@",g={},f={value:!1},_={value:!1};function b(e){return e.value=!1,e}function v(e){e&&(e.value=!0)}function y(){}function E(e,t){t=t||0;for(var n=Math.max(0,e.length-t),o=new Array(n),r=0;r<n;r++)o[r]=e[r+t];return o}function S(e){return void 0===e.size&&(e.size=e.__iterate(C)),e.size}function w(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?S(e)+t:t}function C(){return!0}function T(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function x(e,t){return k(e,t,0)}function O(e,t){return k(e,t,t)}function k(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var R,D,I,A="function"==typeof Symbol&&Symbol.iterator,N=A||"@@iterator";function F(e){this.next=e}function M(e,t,n,o){var r=0===e?t:1===e?n:[t,n];return o?o.value=r:o={value:r,done:!1},o}function P(){return{value:void 0,done:!0}}function L(e){return!!B(e)}function j(e){return e&&"function"==typeof e.next}function U(e){var t=B(e);return t&&t.call(e)}function B(e){var t=e&&(A&&e[A]||e["@@iterator"]);if("function"==typeof t)return t}function q(e){return e&&"number"==typeof e.length}function G(e){return null==e?J():a(e)?e.toSeq():function(e){var t=ee(e)||"object"==typeof e&&new W(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function V(e){return null==e?J().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():X(e)}function H(e){return null==e?J():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():Z(e)}function z(e){return(null==e?J():a(e)?s(e)?e.entrySeq():e:Z(e)).toSetSeq()}function K(e){this._array=e,this.size=e.length}function W(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function Y(e){this._iterable=e,this.size=e.length||e.size}function $(e){this._iterator=e,this._iteratorCache=[]}function Q(e){return!(!e||!e["@@__IMMUTABLE_SEQ__@@"])}function J(){return R||(R=new K([]))}function X(e){var t=Array.isArray(e)?new K(e).fromEntrySeq():j(e)?new $(e).fromEntrySeq():L(e)?new Y(e).fromEntrySeq():"object"==typeof e?new W(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function Z(e){var t=ee(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ee(e){return q(e)?new K(e):j(e)?new $(e):L(e)?new Y(e):void 0}function te(e,t,n,o){var r=e._cache;if(r){for(var i=r.length-1,a=0;a<=i;a++){var s=r[n?i-a:a];if(!1===t(s[1],o?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function ne(e,t,n,o){var r=e._cache;if(r){var i=r.length-1,a=0;return new F((function(){var e=r[n?i-a:a];return a++>i?{value:void 0,done:!0}:M(t,o?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function oe(e,t){return t?function e(t,n,o,r){return Array.isArray(n)?t.call(r,o,H(n).map((function(o,r){return e(t,o,r,n)}))):ie(n)?t.call(r,o,V(n).map((function(o,r){return e(t,o,r,n)}))):n}(t,e,"",{"":e}):re(e)}function re(e){return Array.isArray(e)?H(e).map(re).toList():ie(e)?V(e).map(re).toMap():e}function ie(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ae(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function se(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||c(e)!==c(t)||d(e)!==d(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(d(e)){var o=e.entries();return t.every((function(e,t){var r=o.next().value;return r&&ae(r[1],e)&&(n||ae(r[0],t))}))&&o.next().done}var r=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{r=!0;var i=e;e=t,t=i}var u=!0,h=t.__iterate((function(t,o){if(n?!e.has(t):r?!ae(t,e.get(o,g)):!ae(e.get(o,g),t))return u=!1,!1}));return u&&e.size===h}function ce(e,t){if(!(this instanceof ce))return new ce(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(D)return D;D=this}}function le(e,t){if(!e)throw new Error(t)}function de(e,t,n){if(!(this instanceof de))return new de(e,t,n);if(le(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(I)return I;I=this}}function ue(){throw TypeError("Abstract")}function he(){}function pe(){}function me(){}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=0,F.VALUES=1,F.ENTRIES=2,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[N]=function(){return this},t(G,n),G.of=function(){return G(arguments)},G.prototype.toSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq {","}")},G.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},G.prototype.__iterate=function(e,t){return te(this,e,t,!0)},G.prototype.__iterator=function(e,t){return ne(this,e,t,!0)},t(V,G),V.prototype.toKeyedSeq=function(){return this},t(H,G),H.of=function(){return H(arguments)},H.prototype.toIndexedSeq=function(){return this},H.prototype.toString=function(){return this.__toString("Seq [","]")},H.prototype.__iterate=function(e,t){return te(this,e,t,!1)},H.prototype.__iterator=function(e,t){return ne(this,e,t,!1)},t(z,G),z.of=function(){return z(arguments)},z.prototype.toSetSeq=function(){return this},G.isSeq=Q,G.Keyed=V,G.Set=z,G.Indexed=H,G.prototype["@@__IMMUTABLE_SEQ__@@"]=!0,t(K,H),K.prototype.get=function(e,t){return this.has(e)?this._array[w(this,e)]:t},K.prototype.__iterate=function(e,t){for(var n=this._array,o=n.length-1,r=0;r<=o;r++)if(!1===e(n[t?o-r:r],r,this))return r+1;return r},K.prototype.__iterator=function(e,t){var n=this._array,o=n.length-1,r=0;return new F((function(){return r>o?{value:void 0,done:!0}:M(e,r,n[t?o-r++:r++])}))},t(W,V),W.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},W.prototype.has=function(e){return this._object.hasOwnProperty(e)},W.prototype.__iterate=function(e,t){for(var n=this._object,o=this._keys,r=o.length-1,i=0;i<=r;i++){var a=o[t?r-i:i];if(!1===e(n[a],a,this))return i+1}return i},W.prototype.__iterator=function(e,t){var n=this._object,o=this._keys,r=o.length-1,i=0;return new F((function(){var a=o[t?r-i:i];return i++>r?{value:void 0,done:!0}:M(e,a,n[a])}))},W.prototype[m]=!0,t(Y,H),Y.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=U(this._iterable),o=0;if(j(n))for(var r;!(r=n.next()).done&&!1!==e(r.value,o++,this););return o},Y.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=U(this._iterable);if(!j(n))return new F(P);var o=0;return new F((function(){var t=n.next();return t.done?t:M(e,o++,t.value)}))},t($,H),$.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,o=this._iterator,r=this._iteratorCache,i=0;i<r.length;)if(!1===e(r[i],i++,this))return i;for(;!(n=o.next()).done;){var a=n.value;if(r[i]=a,!1===e(a,i++,this))break}return i},$.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,o=this._iteratorCache,r=0;return new F((function(){if(r>=o.length){var t=n.next();if(t.done)return t;o[r]=t.value}return M(e,r,o[r++])}))},t(ce,H),ce.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ce.prototype.get=function(e,t){return this.has(e)?this._value:t},ce.prototype.includes=function(e){return ae(this._value,e)},ce.prototype.slice=function(e,t){var n=this.size;return T(e,t,n)?this:new ce(this._value,O(t,n)-x(e,n))},ce.prototype.reverse=function(){return this},ce.prototype.indexOf=function(e){return ae(this._value,e)?0:-1},ce.prototype.lastIndexOf=function(e){return ae(this._value,e)?this.size:-1},ce.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},ce.prototype.__iterator=function(e,t){var n=this,o=0;return new F((function(){return o<n.size?M(e,o++,n._value):{value:void 0,done:!0}}))},ce.prototype.equals=function(e){return e instanceof ce?ae(this._value,e._value):se(e)},t(de,H),de.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},de.prototype.get=function(e,t){return this.has(e)?this._start+w(this,e)*this._step:t},de.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},de.prototype.slice=function(e,t){return T(e,t,this.size)?this:(e=x(e,this.size),(t=O(t,this.size))<=e?new de(0,0):new de(this.get(e,this._end),this.get(t,this._end),this._step))},de.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},de.prototype.lastIndexOf=function(e){return this.indexOf(e)},de.prototype.__iterate=function(e,t){for(var n=this.size-1,o=this._step,r=t?this._start+n*o:this._start,i=0;i<=n;i++){if(!1===e(r,i,this))return i+1;r+=t?-o:o}return i},de.prototype.__iterator=function(e,t){var n=this.size-1,o=this._step,r=t?this._start+n*o:this._start,i=0;return new F((function(){var a=r;return r+=t?-o:o,i>n?{value:void 0,done:!0}:M(e,i++,a)}))},de.prototype.equals=function(e){return e instanceof de?this._start===e._start&&this._end===e._end&&this._step===e._step:se(this,e)},t(ue,n),t(he,ue),t(pe,ue),t(me,ue),ue.Keyed=he,ue.Indexed=pe,ue.Set=me;var ge="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),o=65535&(t|=0);return n*o+((e>>>16)*o+n*(t>>>16)<<16>>>0)|0};function fe(e){return e>>>1&1073741824|3221225471&e}function _e(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return fe(n)}if("string"===t)return e.length>Te?function(e){var t=ke[e];return void 0===t&&(t=be(e),Oe===xe&&(Oe=0,ke={}),Oe++,ke[e]=t),t}(e):be(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Se&&void 0!==(t=ve.get(e)))return t;if(void 0!==(t=e[Ce]))return t;if(!Ee){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ce]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++we,1073741824&we&&(we=0),Se)ve.set(e,t);else{if(void 0!==ye&&!1===ye(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ee)Object.defineProperty(e,Ce,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ce]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ce]=t}}return t}(e);if("function"==typeof e.toString)return be(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function be(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return fe(t)}var ve,ye=Object.isExtensible,Ee=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),Se="function"==typeof WeakMap;Se&&(ve=new WeakMap);var we=0,Ce="__immutablehash__";"function"==typeof Symbol&&(Ce=Symbol(Ce));var Te=16,xe=255,Oe=0,ke={};function Re(e){le(e!==1/0,"Cannot perform this action with an infinite size.")}function De(e){return null==e?He():Ie(e)&&!d(e)?e:He().withMutations((function(t){var n=o(e);Re(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ie(e){return!(!e||!e[Ne])}t(De,he),De.of=function(){var t=e.call(arguments,0);return He().withMutations((function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},De.prototype.toString=function(){return this.__toString("Map {","}")},De.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},De.prototype.set=function(e,t){return ze(this,e,t)},De.prototype.setIn=function(e,t){return this.updateIn(e,g,(function(){return t}))},De.prototype.remove=function(e){return ze(this,e,g)},De.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return g}))},De.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},De.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var o=function e(t,n,o,r){var i=t===g,a=n.next();if(a.done){var s=i?o:t,c=r(s);return c===s?t:c}le(i||t&&t.set,"invalid keyPath");var l=a.value,d=i?g:t.get(l,g),u=e(d,n,o,r);return u===d?t:u===g?t.remove(l):(i?He():t).set(l,u)}(this,$t(e),t,n);return o===g?void 0:o},De.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):He()},De.prototype.merge=function(){return $e(this,void 0,arguments)},De.prototype.mergeWith=function(t){var n=e.call(arguments,1);return $e(this,t,n)},De.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,He(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},De.prototype.mergeDeep=function(){return $e(this,Qe,arguments)},De.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return $e(this,Je(t),n)},De.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,He(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},De.prototype.sort=function(e){return Et(jt(this,e))},De.prototype.sortBy=function(e,t){return Et(jt(this,t,e))},De.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},De.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new y)},De.prototype.asImmutable=function(){return this.__ensureOwner()},De.prototype.wasAltered=function(){return this.__altered},De.prototype.__iterator=function(e,t){return new Be(this,e,t)},De.prototype.__iterate=function(e,t){var n=this,o=0;return this._root&&this._root.iterate((function(t){return o++,e(t[1],t[0],n)}),t),o},De.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ve(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},De.isMap=Ie;var Ae,Ne="@@__IMMUTABLE_MAP__@@",Fe=De.prototype;function Me(e,t){this.ownerID=e,this.entries=t}function Pe(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Le(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Ue(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Be(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Ge(e._root)}function qe(e,t){return M(e,t[0],t[1])}function Ge(e,t){return{node:e,index:0,__prev:t}}function Ve(e,t,n,o){var r=Object.create(Fe);return r.size=e,r._root=t,r.__ownerID=n,r.__hash=o,r.__altered=!1,r}function He(){return Ae||(Ae=Ve(0))}function ze(e,t,n){var o,r;if(e._root){var i=b(f),a=b(_);if(o=Ke(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;r=e.size+(i.value?n===g?-1:1:0)}else{if(n===g)return e;r=1,o=new Me(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=r,e._root=o,e.__hash=void 0,e.__altered=!0,e):o?Ve(r,o):He()}function Ke(e,t,n,o,r,i,a,s){return e?e.update(t,n,o,r,i,a,s):i===g?e:(v(s),v(a),new Ue(t,o,[r,i]))}function We(e){return e.constructor===Ue||e.constructor===je}function Ye(e,t,n,o,r){if(e.keyHash===o)return new je(t,o,[e.entry,r]);var i,a=31&(0===n?e.keyHash:e.keyHash>>>n),s=31&(0===n?o:o>>>n);return new Pe(t,1<<a|1<<s,a===s?[Ye(e,t,n+5,o,r)]:(i=new Ue(t,o,r),a<s?[e,i]:[i,e]))}function $e(e,t,n){for(var r=[],i=0;i<n.length;i++){var s=n[i],c=o(s);a(s)||(c=c.map((function(e){return oe(e)}))),r.push(c)}return Xe(e,t,r)}function Qe(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ae(e,t)?e:t}function Je(e){return function(t,n,o){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var r=e(t,n,o);return ae(t,r)?t:r}}function Xe(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var o=t?function(n,o){e.update(o,g,(function(e){return e===g?n:t(e,n,o)}))}:function(t,n){e.set(n,t)},r=0;r<n.length;r++)n[r].forEach(o)})):e.constructor(n[0])}function Ze(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function et(e,t,n,o){var r=o?e:E(e);return r[t]=n,r}Fe[Ne]=!0,Fe.delete=Fe.remove,Fe.removeIn=Fe.deleteIn,Me.prototype.get=function(e,t,n,o){for(var r=this.entries,i=0,a=r.length;i<a;i++)if(ae(n,r[i][0]))return r[i][1];return o},Me.prototype.update=function(e,t,n,o,r,i,a){for(var s=r===g,c=this.entries,l=0,d=c.length;l<d&&!ae(o,c[l][0]);l++);var u=l<d;if(u?c[l][1]===r:s)return this;if(v(a),(s||!u)&&v(i),!s||1!==c.length){if(!u&&!s&&c.length>=tt)return function(e,t,n,o){e||(e=new y);for(var r=new Ue(e,_e(n),[n,o]),i=0;i<t.length;i++){var a=t[i];r=r.update(e,0,void 0,a[0],a[1])}return r}(e,c,o,r);var h=e&&e===this.ownerID,p=h?c:E(c);return u?s?l===d-1?p.pop():p[l]=p.pop():p[l]=[o,r]:p.push([o,r]),h?(this.entries=p,this):new Me(e,p)}},Pe.prototype.get=function(e,t,n,o){void 0===t&&(t=_e(n));var r=1<<(31&(0===e?t:t>>>e)),i=this.bitmap;return 0==(i&r)?o:this.nodes[Ze(i&r-1)].get(e+5,t,n,o)},Pe.prototype.update=function(e,t,n,o,r,i,a){void 0===n&&(n=_e(o));var s=31&(0===t?n:n>>>t),c=1<<s,l=this.bitmap,d=0!=(l&c);if(!d&&r===g)return this;var u=Ze(l&c-1),h=this.nodes,p=d?h[u]:void 0,m=Ke(p,e,t+5,n,o,r,i,a);if(m===p)return this;if(!d&&m&&h.length>=nt)return function(e,t,n,o,r){for(var i=0,a=new Array(32),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[o]=r,new Le(e,i+1,a)}(e,h,l,s,m);if(d&&!m&&2===h.length&&We(h[1^u]))return h[1^u];if(d&&m&&1===h.length&&We(m))return m;var f=e&&e===this.ownerID,_=d?m?l:l^c:l|c,b=d?m?et(h,u,m,f):function(e,t,n){var o=e.length-1;if(n&&t===o)return e.pop(),e;for(var r=new Array(o),i=0,a=0;a<o;a++)a===t&&(i=1),r[a]=e[a+i];return r}(h,u,f):function(e,t,n,o){var r=e.length+1;if(o&&t+1===r)return e[t]=n,e;for(var i=new Array(r),a=0,s=0;s<r;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}(h,u,m,f);return f?(this.bitmap=_,this.nodes=b,this):new Pe(e,_,b)},Le.prototype.get=function(e,t,n,o){void 0===t&&(t=_e(n));var r=31&(0===e?t:t>>>e),i=this.nodes[r];return i?i.get(e+5,t,n,o):o},Le.prototype.update=function(e,t,n,o,r,i,a){void 0===n&&(n=_e(o));var s=31&(0===t?n:n>>>t),c=r===g,l=this.nodes,d=l[s];if(c&&!d)return this;var u=Ke(d,e,t+5,n,o,r,i,a);if(u===d)return this;var h=this.count;if(d){if(!u&&--h<ot)return function(e,t,n,o){for(var r=0,i=0,a=new Array(n),s=0,c=1,l=t.length;s<l;s++,c<<=1){var d=t[s];void 0!==d&&s!==o&&(r|=c,a[i++]=d)}return new Pe(e,r,a)}(e,l,h,s)}else h++;var p=e&&e===this.ownerID,m=et(l,s,u,p);return p?(this.count=h,this.nodes=m,this):new Le(e,h,m)},je.prototype.get=function(e,t,n,o){for(var r=this.entries,i=0,a=r.length;i<a;i++)if(ae(n,r[i][0]))return r[i][1];return o},je.prototype.update=function(e,t,n,o,r,i,a){void 0===n&&(n=_e(o));var s=r===g;if(n!==this.keyHash)return s?this:(v(a),v(i),Ye(this,e,t,n,[o,r]));for(var c=this.entries,l=0,d=c.length;l<d&&!ae(o,c[l][0]);l++);var u=l<d;if(u?c[l][1]===r:s)return this;if(v(a),(s||!u)&&v(i),s&&2===d)return new Ue(e,this.keyHash,c[1^l]);var h=e&&e===this.ownerID,p=h?c:E(c);return u?s?l===d-1?p.pop():p[l]=p.pop():p[l]=[o,r]:p.push([o,r]),h?(this.entries=p,this):new je(e,this.keyHash,p)},Ue.prototype.get=function(e,t,n,o){return ae(n,this.entry[0])?this.entry[1]:o},Ue.prototype.update=function(e,t,n,o,r,i,a){var s=r===g,c=ae(o,this.entry[0]);return(c?r===this.entry[1]:s)?this:(v(a),s?void v(i):c?e&&e===this.ownerID?(this.entry[1]=r,this):new Ue(e,this.keyHash,[o,r]):(v(i),Ye(this,e,t,_e(o),[o,r])))},Me.prototype.iterate=je.prototype.iterate=function(e,t){for(var n=this.entries,o=0,r=n.length-1;o<=r;o++)if(!1===e(n[t?r-o:o]))return!1},Pe.prototype.iterate=Le.prototype.iterate=function(e,t){for(var n=this.nodes,o=0,r=n.length-1;o<=r;o++){var i=n[t?r-o:o];if(i&&!1===i.iterate(e,t))return!1}},Ue.prototype.iterate=function(e,t){return e(this.entry)},t(Be,F),Be.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,o=t.node,r=t.index++;if(o.entry){if(0===r)return qe(e,o.entry)}else if(o.entries){if(r<=(n=o.entries.length-1))return qe(e,o.entries[this._reverse?n-r:r])}else if(r<=(n=o.nodes.length-1)){var i=o.nodes[this._reverse?n-r:r];if(i){if(i.entry)return qe(e,i.entry);t=this._stack=Ge(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var tt=8,nt=16,ot=8;function rt(e){var t=mt();if(null==e)return t;if(it(e))return e;var n=r(e),o=n.size;return 0===o?t:(Re(o),o>0&&o<32?pt(0,o,5,null,new ct(n.toArray())):t.withMutations((function(e){e.setSize(o),n.forEach((function(t,n){return e.set(n,t)}))})))}function it(e){return!(!e||!e[at])}t(rt,pe),rt.of=function(){return this(arguments)},rt.prototype.toString=function(){return this.__toString("List [","]")},rt.prototype.get=function(e,t){if((e=w(this,e))>=0&&e<this.size){var n=_t(this,e+=this._origin);return n&&n.array[31&e]}return t},rt.prototype.set=function(e,t){return function(e,t,n){if((t=w(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?bt(e,t).set(0,n):bt(e,0,t+1).set(t,n)}));t+=e._origin;var o=e._tail,r=e._root,i=b(_);return t>=yt(e._capacity)?o=gt(o,e.__ownerID,0,t,n,i):r=gt(r,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=r,e._tail=o,e.__hash=void 0,e.__altered=!0,e):pt(e._origin,e._capacity,e._level,r,o):e}(this,e,t)},rt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},rt.prototype.insert=function(e,t){return this.splice(e,0,t)},rt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):mt()},rt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){bt(n,0,t+e.length);for(var o=0;o<e.length;o++)n.set(t+o,e[o])}))},rt.prototype.pop=function(){return bt(this,0,-1)},rt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){bt(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},rt.prototype.shift=function(){return bt(this,1)},rt.prototype.merge=function(){return vt(this,void 0,arguments)},rt.prototype.mergeWith=function(t){var n=e.call(arguments,1);return vt(this,t,n)},rt.prototype.mergeDeep=function(){return vt(this,Qe,arguments)},rt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return vt(this,Je(t),n)},rt.prototype.setSize=function(e){return bt(this,0,e)},rt.prototype.slice=function(e,t){var n=this.size;return T(e,t,n)?this:bt(this,x(e,n),O(t,n))},rt.prototype.__iterator=function(e,t){var n=0,o=ht(this,t);return new F((function(){var t=o();return t===ut?{value:void 0,done:!0}:M(e,n++,t)}))},rt.prototype.__iterate=function(e,t){for(var n,o=0,r=ht(this,t);(n=r())!==ut&&!1!==e(n,o++,this););return o},rt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?pt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},rt.isList=it;var at="@@__IMMUTABLE_LIST__@@",st=rt.prototype;function ct(e,t){this.array=e,this.ownerID=t}st[at]=!0,st.delete=st.remove,st.setIn=Fe.setIn,st.deleteIn=st.removeIn=Fe.removeIn,st.update=Fe.update,st.updateIn=Fe.updateIn,st.mergeIn=Fe.mergeIn,st.mergeDeepIn=Fe.mergeDeepIn,st.withMutations=Fe.withMutations,st.asMutable=Fe.asMutable,st.asImmutable=Fe.asImmutable,st.wasAltered=Fe.wasAltered,ct.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var o=n>>>t&31;if(o>=this.array.length)return new ct([],e);var r,i=0===o;if(t>0){var a=this.array[o];if((r=a&&a.removeBefore(e,t-5,n))===a&&i)return this}if(i&&!r)return this;var s=ft(this,e);if(!i)for(var c=0;c<o;c++)s.array[c]=void 0;return r&&(s.array[o]=r),s},ct.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var o,r=n-1>>>t&31;if(r>=this.array.length)return this;if(t>0){var i=this.array[r];if((o=i&&i.removeAfter(e,t-5,n))===i&&r===this.array.length-1)return this}var a=ft(this,e);return a.array.splice(r+1),o&&(a.array[r]=o),a};var lt,dt,ut={};function ht(e,t){var n=e._origin,o=e._capacity,r=yt(o),i=e._tail;return a(e._root,e._level,0);function a(e,s,c){return 0===s?function(e,a){var s=a===r?i&&i.array:e&&e.array,c=a>n?0:n-a,l=o-a;return l>32&&(l=32),function(){if(c===l)return ut;var e=t?--l:c++;return s&&s[e]}}(e,c):function(e,r,i){var s,c=e&&e.array,l=i>n?0:n-i>>r,d=1+(o-i>>r);return d>32&&(d=32),function(){for(;;){if(s){var e=s();if(e!==ut)return e;s=null}if(l===d)return ut;var n=t?--d:l++;s=a(c&&c[n],r-5,i+(n<<r))}}}(e,s,c)}}function pt(e,t,n,o,r,i,a){var s=Object.create(st);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=o,s._tail=r,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function mt(){return lt||(lt=pt(0,0,5))}function gt(e,t,n,o,r,i){var a,s=o>>>n&31,c=e&&s<e.array.length;if(!c&&void 0===r)return e;if(n>0){var l=e&&e.array[s],d=gt(l,t,n-5,o,r,i);return d===l?e:((a=ft(e,t)).array[s]=d,a)}return c&&e.array[s]===r?e:(v(i),a=ft(e,t),void 0===r&&s===a.array.length-1?a.array.pop():a.array[s]=r,a)}function ft(e,t){return t&&e&&t===e.ownerID?e:new ct(e?e.array.slice():[],t)}function _t(e,t){if(t>=yt(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,o=e._level;n&&o>0;)n=n.array[t>>>o&31],o-=5;return n}}function bt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var o=e.__ownerID||new y,r=e._origin,i=e._capacity,a=r+t,s=void 0===n?i:n<0?i+n:r+n;if(a===r&&s===i)return e;if(a>=s)return e.clear();for(var c=e._level,l=e._root,d=0;a+d<0;)l=new ct(l&&l.array.length?[void 0,l]:[],o),d+=1<<(c+=5);d&&(a+=d,r+=d,s+=d,i+=d);for(var u=yt(i),h=yt(s);h>=1<<c+5;)l=new ct(l&&l.array.length?[l]:[],o),c+=5;var p=e._tail,m=h<u?_t(e,s-1):h>u?new ct([],o):p;if(p&&h>u&&a<i&&p.array.length){for(var g=l=ft(l,o),f=c;f>5;f-=5){var _=u>>>f&31;g=g.array[_]=ft(g.array[_],o)}g.array[u>>>5&31]=p}if(s<i&&(m=m&&m.removeAfter(o,0,s)),a>=h)a-=h,s-=h,c=5,l=null,m=m&&m.removeBefore(o,0,a);else if(a>r||h<u){for(d=0;l;){var b=a>>>c&31;if(b!==h>>>c&31)break;b&&(d+=(1<<c)*b),c-=5,l=l.array[b]}l&&a>r&&(l=l.removeBefore(o,c,a-d)),l&&h<u&&(l=l.removeAfter(o,c,h-d)),d&&(a-=d,s-=d)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=l,e._tail=m,e.__hash=void 0,e.__altered=!0,e):pt(a,s,c,l,m)}function vt(e,t,n){for(var o=[],i=0,s=0;s<n.length;s++){var c=n[s],l=r(c);l.size>i&&(i=l.size),a(c)||(l=l.map((function(e){return oe(e)}))),o.push(l)}return i>e.size&&(e=e.setSize(i)),Xe(e,t,o)}function yt(e){return e<32?0:e-1>>>5<<5}function Et(e){return null==e?Ct():St(e)?e:Ct().withMutations((function(t){var n=o(e);Re(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function St(e){return Ie(e)&&d(e)}function wt(e,t,n,o){var r=Object.create(Et.prototype);return r.size=e?e.size:0,r._map=e,r._list=t,r.__ownerID=n,r.__hash=o,r}function Ct(){return dt||(dt=wt(He(),mt()))}function Tt(e,t,n){var o,r,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===g){if(!c)return e;a.size>=32&&a.size>=2*i.size?(o=(r=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(o.__ownerID=r.__ownerID=e.__ownerID)):(o=i.remove(t),r=s===a.size-1?a.pop():a.set(s,void 0))}else if(c){if(n===a.get(s)[1])return e;o=i,r=a.set(s,[t,n])}else o=i.set(t,a.size),r=a.set(a.size,[t,n]);return e.__ownerID?(e.size=o.size,e._map=o,e._list=r,e.__hash=void 0,e):wt(o,r)}function xt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Ot(e){this._iter=e,this.size=e.size}function kt(e){this._iter=e,this.size=e.size}function Rt(e){this._iter=e,this.size=e.size}function Dt(e){var t=Kt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Wt,t.__iterateUncached=function(t,n){var o=this;return e.__iterate((function(e,n){return!1!==t(n,e,o)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var o=e.__iterator(t,n);return new F((function(){var e=o.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function It(e,t,n){var o=Kt(e);return o.size=e.size,o.has=function(t){return e.has(t)},o.get=function(o,r){var i=e.get(o,g);return i===g?r:t.call(n,i,o,e)},o.__iterateUncached=function(o,r){var i=this;return e.__iterate((function(e,r,a){return!1!==o(t.call(n,e,r,a),r,i)}),r)},o.__iteratorUncached=function(o,r){var i=e.__iterator(2,r);return new F((function(){var r=i.next();if(r.done)return r;var a=r.value,s=a[0];return M(o,s,t.call(n,a[1],s,e),r)}))},o}function At(e,t){var n=Kt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Dt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,o){return e.get(t?n:-1-n,o)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Wt,n.__iterate=function(t,n){var o=this;return e.__iterate((function(e,n){return t(e,n,o)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Nt(e,t,n,o){var r=Kt(e);return o&&(r.has=function(o){var r=e.get(o,g);return r!==g&&!!t.call(n,r,o,e)},r.get=function(o,r){var i=e.get(o,g);return i!==g&&t.call(n,i,o,e)?i:r}),r.__iterateUncached=function(r,i){var a=this,s=0;return e.__iterate((function(e,i,c){if(t.call(n,e,i,c))return s++,r(e,o?i:s-1,a)}),i),s},r.__iteratorUncached=function(r,i){var a=e.__iterator(2,i),s=0;return new F((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,l=c[0],d=c[1];if(t.call(n,d,l,e))return M(r,o?l:s++,d,i)}}))},r}function Ft(e,t,n,o){var r=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=r:n|=0),T(t,n,r))return e;var i=x(t,r),a=O(n,r);if(i!=i||a!=a)return Ft(e.toSeq().cacheResult(),t,n,o);var s,c=a-i;c==c&&(s=c<0?0:c);var l=Kt(e);return l.size=0===s?s:e.size&&s||void 0,!o&&Q(e)&&s>=0&&(l.get=function(t,n){return(t=w(this,t))>=0&&t<s?e.get(t+i,n):n}),l.__iterateUncached=function(t,n){var r=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,c=!0,l=0;return e.__iterate((function(e,n){if(!c||!(c=a++<i))return l++,!1!==t(e,o?n:l-1,r)&&l!==s})),l},l.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var r=0!==s&&e.__iterator(t,n),a=0,c=0;return new F((function(){for(;a++<i;)r.next();if(++c>s)return{value:void 0,done:!0};var e=r.next();return o||1===t?e:M(t,c-1,0===t?void 0:e.value[1],e)}))},l}function Mt(e,t,n,o){var r=Kt(e);return r.__iterateUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterate(r,i);var s=!0,c=0;return e.__iterate((function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return c++,r(e,o?i:c-1,a)})),c},r.__iteratorUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterator(r,i);var s=e.__iterator(2,i),c=!0,l=0;return new F((function(){var e,i,d;do{if((e=s.next()).done)return o||1===r?e:M(r,l++,0===r?void 0:e.value[1],e);var u=e.value;i=u[0],d=u[1],c&&(c=t.call(n,d,i,a))}while(c);return 2===r?e:M(r,i,d,e)}))},r}function Pt(e,t){var n=s(e),r=[e].concat(t).map((function(e){return a(e)?n&&(e=o(e)):e=n?X(e):Z(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var i=r[0];if(i===e||n&&s(i)||c(e)&&c(i))return i}var l=new K(r);return n?l=l.toKeyedSeq():c(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),l}function Lt(e,t,n){var o=Kt(e);return o.__iterateUncached=function(o,r){var i=0,s=!1;return function e(c,l){var d=this;c.__iterate((function(r,c){return(!t||l<t)&&a(r)?e(r,l+1):!1===o(r,n?c:i++,d)&&(s=!0),!s}),r)}(e,0),i},o.__iteratorUncached=function(o,r){var i=e.__iterator(o,r),s=[],c=0;return new F((function(){for(;i;){var e=i.next();if(!1===e.done){var l=e.value;if(2===o&&(l=l[1]),t&&!(s.length<t)||!a(l))return n?e:M(o,c++,l,e);s.push(i),i=l.__iterator(o,r)}else i=s.pop()}return{value:void 0,done:!0}}))},o}function jt(e,t,n){t||(t=Yt);var o=s(e),r=0,i=e.toSeq().map((function(t,o){return[o,t,r++,n?n(t,o,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(o?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),o?V(i):c(e)?H(i):z(i)}function Ut(e,t,n){if(t||(t=Yt),n){var o=e.toSeq().map((function(t,o){return[t,n(t,o,e)]})).reduce((function(e,n){return Bt(t,e[1],n[1])?n:e}));return o&&o[0]}return e.reduce((function(e,n){return Bt(t,e,n)?n:e}))}function Bt(e,t,n){var o=e(n,t);return 0===o&&n!==t&&(null==n||n!=n)||o>0}function qt(e,t,o){var r=Kt(e);return r.size=new K(o).map((function(e){return e.size})).min(),r.__iterate=function(e,t){for(var n,o=this.__iterator(1,t),r=0;!(n=o.next()).done&&!1!==e(n.value,r++,this););return r},r.__iteratorUncached=function(e,r){var i=o.map((function(e){return e=n(e),U(r?e.reverse():e)})),a=0,s=!1;return new F((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:M(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},r}function Gt(e,t){return Q(e)?t:e.constructor(t)}function Vt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ht(e){return Re(e.size),S(e)}function zt(e){return s(e)?o:c(e)?r:i}function Kt(e){return Object.create((s(e)?V:c(e)?H:z).prototype)}function Wt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):G.prototype.cacheResult.call(this)}function Yt(e,t){return e>t?1:e<t?-1:0}function $t(e){var t=U(e);if(!t){if(!q(e))throw new TypeError("Expected iterable or array-like: "+e);t=U(n(e))}return t}function Qt(e,t){var n,o=function(i){if(i instanceof o)return i;if(!(this instanceof o))return new o(i);if(!n){n=!0;var a=Object.keys(e);!function(e,t){try{t.forEach(en.bind(void 0,e))}catch(e){}}(r,a),r.size=a.length,r._name=t,r._keys=a,r._defaultValues=e}this._map=De(i)},r=o.prototype=Object.create(Jt);return r.constructor=o,o}t(Et,De),Et.of=function(){return this(arguments)},Et.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Et.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Et.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Ct()},Et.prototype.set=function(e,t){return Tt(this,e,t)},Et.prototype.remove=function(e){return Tt(this,e,g)},Et.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Et.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Et.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Et.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?wt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Et.isOrderedMap=St,Et.prototype[m]=!0,Et.prototype.delete=Et.prototype.remove,t(xt,V),xt.prototype.get=function(e,t){return this._iter.get(e,t)},xt.prototype.has=function(e){return this._iter.has(e)},xt.prototype.valueSeq=function(){return this._iter.valueSeq()},xt.prototype.reverse=function(){var e=this,t=At(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},xt.prototype.map=function(e,t){var n=this,o=It(this,e,t);return this._useKeys||(o.valueSeq=function(){return n._iter.toSeq().map(e,t)}),o},xt.prototype.__iterate=function(e,t){var n,o=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,o)}:(n=t?Ht(this):0,function(r){return e(r,t?--n:n++,o)}),t)},xt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(1,t),o=t?Ht(this):0;return new F((function(){var r=n.next();return r.done?r:M(e,t?--o:o++,r.value,r)}))},xt.prototype[m]=!0,t(Ot,H),Ot.prototype.includes=function(e){return this._iter.includes(e)},Ot.prototype.__iterate=function(e,t){var n=this,o=0;return this._iter.__iterate((function(t){return e(t,o++,n)}),t)},Ot.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t),o=0;return new F((function(){var t=n.next();return t.done?t:M(e,o++,t.value,t)}))},t(kt,z),kt.prototype.has=function(e){return this._iter.includes(e)},kt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},kt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new F((function(){var t=n.next();return t.done?t:M(e,t.value,t.value,t)}))},t(Rt,V),Rt.prototype.entrySeq=function(){return this._iter.toSeq()},Rt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Vt(t);var o=a(t);return e(o?t.get(1):t[1],o?t.get(0):t[0],n)}}),t)},Rt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var o=t.value;if(o){Vt(o);var r=a(o);return M(e,r?o.get(0):o[0],r?o.get(1):o[1],t)}}}))},Ot.prototype.cacheResult=xt.prototype.cacheResult=kt.prototype.cacheResult=Rt.prototype.cacheResult=Wt,t(Qt,he),Qt.prototype.toString=function(){return this.__toString(Zt(this)+" {","}")},Qt.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Qt.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Qt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Xt(this,He()))},Qt.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Zt(this));if(this._map&&!this._map.has(e)&&t===this._defaultValues[e])return this;var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Xt(this,n)},Qt.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Xt(this,t)},Qt.prototype.wasAltered=function(){return this._map.wasAltered()},Qt.prototype.__iterator=function(e,t){var n=this;return o(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Qt.prototype.__iterate=function(e,t){var n=this;return o(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Qt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Xt(this,t,e):(this.__ownerID=e,this._map=t,this)};var Jt=Qt.prototype;function Xt(e,t,n){var o=Object.create(Object.getPrototypeOf(e));return o._map=t,o.__ownerID=n,o}function Zt(e){return e._name||e.constructor.name||"Record"}function en(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){le(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function tn(e){return null==e?ln():nn(e)&&!d(e)?e:ln().withMutations((function(t){var n=i(e);Re(n.size),n.forEach((function(e){return t.add(e)}))}))}function nn(e){return!(!e||!e[rn])}Jt.delete=Jt.remove,Jt.deleteIn=Jt.removeIn=Fe.removeIn,Jt.merge=Fe.merge,Jt.mergeWith=Fe.mergeWith,Jt.mergeIn=Fe.mergeIn,Jt.mergeDeep=Fe.mergeDeep,Jt.mergeDeepWith=Fe.mergeDeepWith,Jt.mergeDeepIn=Fe.mergeDeepIn,Jt.setIn=Fe.setIn,Jt.update=Fe.update,Jt.updateIn=Fe.updateIn,Jt.withMutations=Fe.withMutations,Jt.asMutable=Fe.asMutable,Jt.asImmutable=Fe.asImmutable,t(tn,me),tn.of=function(){return this(arguments)},tn.fromKeys=function(e){return this(o(e).keySeq())},tn.prototype.toString=function(){return this.__toString("Set {","}")},tn.prototype.has=function(e){return this._map.has(e)},tn.prototype.add=function(e){return sn(this,this._map.set(e,!0))},tn.prototype.remove=function(e){return sn(this,this._map.remove(e))},tn.prototype.clear=function(){return sn(this,this._map.clear())},tn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},tn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},tn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},tn.prototype.merge=function(){return this.union.apply(this,arguments)},tn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},tn.prototype.sort=function(e){return dn(jt(this,e))},tn.prototype.sortBy=function(e,t){return dn(jt(this,t,e))},tn.prototype.wasAltered=function(){return this._map.wasAltered()},tn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,o){return e(o,o,n)}),t)},tn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},tn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},tn.isSet=nn;var on,rn="@@__IMMUTABLE_SET__@@",an=tn.prototype;function sn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function cn(e,t){var n=Object.create(an);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function ln(){return on||(on=cn(He()))}function dn(e){return null==e?gn():un(e)?e:gn().withMutations((function(t){var n=i(e);Re(n.size),n.forEach((function(e){return t.add(e)}))}))}function un(e){return nn(e)&&d(e)}an[rn]=!0,an.delete=an.remove,an.mergeDeep=an.merge,an.mergeDeepWith=an.mergeWith,an.withMutations=Fe.withMutations,an.asMutable=Fe.asMutable,an.asImmutable=Fe.asImmutable,an.__empty=ln,an.__make=cn,t(dn,tn),dn.of=function(){return this(arguments)},dn.fromKeys=function(e){return this(o(e).keySeq())},dn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},dn.isOrderedSet=un;var hn,pn=dn.prototype;function mn(e,t){var n=Object.create(pn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function gn(){return hn||(hn=mn(Ct()))}function fn(e){return null==e?Sn():_n(e)?e:Sn().unshiftAll(e)}function _n(e){return!(!e||!e[vn])}pn[m]=!0,pn.__empty=gn,pn.__make=mn,t(fn,pe),fn.of=function(){return this(arguments)},fn.prototype.toString=function(){return this.__toString("Stack [","]")},fn.prototype.get=function(e,t){var n=this._head;for(e=w(this,e);n&&e--;)n=n.next;return n?n.value:t},fn.prototype.peek=function(){return this._head&&this._head.value},fn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):En(e,t)},fn.prototype.pushAll=function(e){if(0===(e=r(e)).size)return this;Re(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):En(t,n)},fn.prototype.pop=function(){return this.slice(1)},fn.prototype.unshift=function(){return this.push.apply(this,arguments)},fn.prototype.unshiftAll=function(e){return this.pushAll(e)},fn.prototype.shift=function(){return this.pop.apply(this,arguments)},fn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Sn()},fn.prototype.slice=function(e,t){if(T(e,t,this.size))return this;var n=x(e,this.size);if(O(t,this.size)!==this.size)return pe.prototype.slice.call(this,e,t);for(var o=this.size-n,r=this._head;n--;)r=r.next;return this.__ownerID?(this.size=o,this._head=r,this.__hash=void 0,this.__altered=!0,this):En(o,r)},fn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?En(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},fn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,o=this._head;o&&!1!==e(o.value,n++,this);)o=o.next;return n},fn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,o=this._head;return new F((function(){if(o){var t=o.value;return o=o.next,M(e,n++,t)}return{value:void 0,done:!0}}))},fn.isStack=_n;var bn,vn="@@__IMMUTABLE_STACK__@@",yn=fn.prototype;function En(e,t,n,o){var r=Object.create(yn);return r.size=e,r._head=t,r.__ownerID=n,r.__hash=o,r.__altered=!1,r}function Sn(){return bn||(bn=En(0))}function wn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}yn[vn]=!0,yn.withMutations=Fe.withMutations,yn.asMutable=Fe.asMutable,yn.asImmutable=Fe.asImmutable,yn.wasAltered=Fe.wasAltered,n.Iterator=F,wn(n,{toArray:function(){Re(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Ot(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new xt(this,!0)},toMap:function(){return De(this.toKeyedSeq())},toObject:function(){Re(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Et(this.toKeyedSeq())},toOrderedSet:function(){return dn(s(this)?this.valueSeq():this)},toSet:function(){return tn(s(this)?this.valueSeq():this)},toSetSeq:function(){return new kt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return fn(s(this)?this.valueSeq():this)},toList:function(){return rt(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return Gt(this,Pt(this,t))},includes:function(e){return this.some((function(t){return ae(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Re(this.size);var n=!0;return this.__iterate((function(o,r,i){if(!e.call(t,o,r,i))return n=!1,!1})),n},filter:function(e,t){return Gt(this,Nt(this,e,t,!0))},find:function(e,t,n){var o=this.findEntry(e,t);return o?o[1]:n},forEach:function(e,t){return Re(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Re(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(o){n?n=!1:t+=e,t+=null!=o?o.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Gt(this,It(this,e,t))},reduce:function(e,t,n){var o,r;return Re(this.size),arguments.length<2?r=!0:o=t,this.__iterate((function(t,i,a){r?(r=!1,o=t):o=e.call(n,o,t,i,a)})),o},reduceRight:function(e,t,n){var o=this.toKeyedSeq().reverse();return o.reduce.apply(o,arguments)},reverse:function(){return Gt(this,At(this,!0))},slice:function(e,t){return Gt(this,Ft(this,e,t,!0))},some:function(e,t){return!this.every(kn(e),t)},sort:function(e){return Gt(this,jt(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return S(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var o=De().asMutable();return e.__iterate((function(r,i){o.update(t.call(n,r,i,e),0,(function(e){return e+1}))})),o.asImmutable()}(this,e,t)},equals:function(e){return se(this,e)},entrySeq:function(){var e=this;if(e._cache)return new K(e._cache);var t=e.toSeq().map(On).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(kn(e),t)},findEntry:function(e,t,n){var o=n;return this.__iterate((function(n,r,i){if(e.call(t,n,r,i))return o=[r,n],!1})),o},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(C)},flatMap:function(e,t){return Gt(this,function(e,t,n){var o=zt(e);return e.toSeq().map((function(r,i){return o(t.call(n,r,i,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Gt(this,Lt(this,e,!0))},fromEntrySeq:function(){return new Rt(this)},get:function(e,t){return this.find((function(t,n){return ae(n,e)}),void 0,t)},getIn:function(e,t){for(var n,o=this,r=$t(e);!(n=r.next()).done;){var i=n.value;if((o=o&&o.get?o.get(i,g):g)===g)return t}return o},groupBy:function(e,t){return function(e,t,n){var o=s(e),r=(d(e)?Et():De()).asMutable();e.__iterate((function(i,a){r.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(o?[a,i]:i),e}))}));var i=zt(e);return r.map((function(t){return Gt(e,i(t))}))}(this,e,t)},has:function(e){return this.get(e,g)!==g},hasIn:function(e){return this.getIn(e,g)!==g},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return ae(t,e)}))},keySeq:function(){return this.toSeq().map(xn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Ut(this,e)},maxBy:function(e,t){return Ut(this,t,e)},min:function(e){return Ut(this,e?Rn(e):An)},minBy:function(e,t){return Ut(this,t?Rn(t):An,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Gt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Gt(this,Mt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(kn(e),t)},sortBy:function(e,t){return Gt(this,jt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Gt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Gt(this,function(e,t,n){var o=Kt(e);return o.__iterateUncached=function(o,r){var i=this;if(r)return this.cacheResult().__iterate(o,r);var a=0;return e.__iterate((function(e,r,s){return t.call(n,e,r,s)&&++a&&o(e,r,i)})),a},o.__iteratorUncached=function(o,r){var i=this;if(r)return this.cacheResult().__iterator(o,r);var a=e.__iterator(2,r),s=!0;return new F((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var r=e.value,c=r[0],l=r[1];return t.call(n,l,c,i)?2===o?e:M(o,c,l,e):(s=!1,{value:void 0,done:!0})}))},o}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(kn(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=d(e),n=s(e),o=t?1:0;return function(e,t){return t=ge(t,3432918353),t=ge(t<<15|t>>>-15,461845907),t=ge(t<<13|t>>>-13,5),t=ge((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=fe((t=ge(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){o=31*o+Nn(_e(e),_e(t))|0}:function(e,t){o=o+Nn(_e(e),_e(t))|0}:t?function(e){o=31*o+_e(e)|0}:function(e){o=o+_e(e)|0}),o)}(this))}});var Cn=n.prototype;Cn[u]=!0,Cn[N]=Cn.values,Cn.__toJS=Cn.toArray,Cn.__toStringMapper=Dn,Cn.inspect=Cn.toSource=function(){return this.toString()},Cn.chain=Cn.flatMap,Cn.contains=Cn.includes,wn(o,{flip:function(){return Gt(this,Dt(this))},mapEntries:function(e,t){var n=this,o=0;return Gt(this,this.toSeq().map((function(r,i){return e.call(t,[i,r],o++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Gt(this,this.toSeq().flip().map((function(o,r){return e.call(t,o,r,n)})).flip())}});var Tn=o.prototype;function xn(e,t){return t}function On(e,t){return[t,e]}function kn(e){return function(){return!e.apply(this,arguments)}}function Rn(e){return function(){return-e.apply(this,arguments)}}function Dn(e){return"string"==typeof e?JSON.stringify(e):String(e)}function In(){return E(arguments)}function An(e,t){return e<t?1:e>t?-1:0}function Nn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Tn[h]=!0,Tn[N]=Cn.entries,Tn.__toJS=Cn.toObject,Tn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Dn(e)},wn(r,{toKeyedSeq:function(){return new xt(this,!1)},filter:function(e,t){return Gt(this,Nt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Gt(this,At(this,!1))},slice:function(e,t){return Gt(this,Ft(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=x(e,e<0?this.count():this.size);var o=this.slice(0,e);return Gt(this,1===n?o:o.concat(E(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return Gt(this,Lt(this,e,!1))},get:function(e,t){return(e=w(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=w(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Gt(this,function(e,t){var n=Kt(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,o){var r=this,i=0;return e.__iterate((function(e,o){return(!i||!1!==n(t,i++,r))&&!1!==n(e,i++,r)}),o),i},n.__iteratorUncached=function(n,o){var r,i=e.__iterator(1,o),a=0;return new F((function(){return(!r||a%2)&&(r=i.next()).done?r:a%2?M(n,a++,t):M(n,a++,r.value,r)}))},n}(this,e))},interleave:function(){var e=[this].concat(E(arguments)),t=qt(this.toSeq(),H.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Gt(this,n)},keySeq:function(){return de(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(e,t){return Gt(this,Mt(this,e,t,!1))},zip:function(){var e=[this].concat(E(arguments));return Gt(this,qt(this,In,e))},zipWith:function(e){var t=E(arguments);return t[0]=this,Gt(this,qt(this,e,t))}}),r.prototype[p]=!0,r.prototype[m]=!0,wn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Cn.includes,i.prototype.contains=i.prototype.includes,wn(V,o.prototype),wn(H,r.prototype),wn(z,i.prototype),wn(he,o.prototype),wn(pe,r.prototype),wn(me,i.prototype),{Iterable:n,Seq:G,Collection:ue,Map:De,OrderedMap:Et,List:rt,Stack:fn,Set:tn,OrderedSet:dn,Record:Qt,Range:de,Repeat:ce,is:ae,fromJS:oe}}()},function(e,t,n){"use strict";var o=n(507),r=n(177);e.exports=function(e){return{getInitialState:function(){return this.constructor.calculateState||r(!1),this.constructor.calculateState(null)},componentDidMount:function(){var t=this,n=!1,r=function(){n=!0};this._fluxMixinSubscriptions=e.map((function(e){return e.addListener(r)}));this._fluxMixinStoreGroup=new o(e,(function(){n&&t.setState((function(e){return t.constructor.calculateState(t.state)})),n=!1}))},componentWillUnmount:function(){this._fluxMixinStoreGroup.release();var e=this._fluxMixinSubscriptions,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var o;if(t){if(n>=e.length)break;o=e[n++]}else{if((n=e.next()).done)break;o=n.value}o.remove()}this._fluxMixinSubscriptions=[]}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(790);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=o,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=v(n(170)),i=v(n(184)),a=v(n(185)),s=v(n(186)),c=v(n(187)),l=v(n(188)),d=v(n(82)),u=v(n(86)),h=v(n(825)),p=v(n(871)),m=v(n(872)),g=v(n(873)),f=v(n(875)),_=n(191),b=n(536);function v(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function t(){var e,n,o,r;(0,a.default)(this,t);for(var s=arguments.length,l=Array(s),d=0;d<s;d++)l[d]=arguments[d];return n=o=(0,c.default)(this,(e=t.__proto__||(0,i.default)(t)).call.apply(e,[this].concat(l))),o.canLift=function(e){return(0,f.default)(o.store.getState(),e)},r=n,(0,c.default)(o,r)}return(0,l.default)(t,e),(0,s.default)(t,[{key:"getChildContext",value:function(){var e;return e={},(0,r.default)(e,_.storeKey,this.store),(0,r.default)(e,_.dimensionMarshalKey,this.dimensionMarshal),(0,r.default)(e,_.styleContextKey,this.styleMarshal.styleContext),(0,r.default)(e,_.canLiftContextKey,this.canLift),e}},{key:"componentWillMount",value:function(){var e=this;this.store=(0,h.default)(),this.styleMarshal=(0,g.default)();var t={cancel:function(){e.store.dispatch((0,b.clean)())},publishDraggables:function(t){e.store.dispatch((0,b.publishDraggableDimensions)(t))},publishDroppables:function(t){e.store.dispatch((0,b.publishDroppableDimensions)(t))},updateDroppableScroll:function(t,n){e.store.dispatch((0,b.updateDroppableDimensionScroll)(t,n))},updateDroppableIsEnabled:function(t,n){e.store.dispatch((0,b.updateDroppableDimensionIsEnabled)(t,n))}};this.dimensionMarshal=(0,m.default)(t);var n=this.store.getState();this.unsubscribe=this.store.subscribe((function(){var t=n,o=e.store.getState();if(n=o,o.phase!==t.phase){var r={onDragStart:e.props.onDragStart,onDragEnd:e.props.onDragEnd};(0,p.default)(r,t,o),e.styleMarshal.onPhaseChange(o),e.dimensionMarshal.onPhaseChange(o)}}))}},{key:"componentDidMount",value:function(){this.styleMarshal.mount()}},{key:"componentWillUnmount",value:function(){this.unsubscribe(),this.styleMarshal.unmount()}},{key:"render",value:function(){return this.props.children}}]),t}(d.default.Component);y.childContextTypes=(o={},(0,r.default)(o,_.storeKey,u.default.shape({dispatch:u.default.func.isRequired,subscribe:u.default.func.isRequired,getState:u.default.func.isRequired}).isRequired),(0,r.default)(o,_.dimensionMarshalKey,u.default.object.isRequired),(0,r.default)(o,_.styleContextKey,u.default.string.isRequired),(0,r.default)(o,_.canLiftContextKey,u.default.func.isRequired),o),t.default=y},function(e,t,n){n(792);var o=n(142).Object;e.exports=function(e,t,n){return o.defineProperty(e,t,n)}},function(e,t,n){var o=n(180);o(o.S+o.F*!n(183),"Object",{defineProperty:n(182).f})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){n(795),e.exports=n(142).Object.getPrototypeOf},function(e,t,n){var o=n(235),r=n(516);n(517)("getPrototypeOf",(function(){return function(e){return r(o(e))}}))},function(e,t,n){e.exports={default:n(797),__esModule:!0}},function(e,t,n){n(518),n(804),e.exports=n(382).f("iterator")},function(e,t,n){var o=n(377),r=n(373);e.exports=function(e){return function(t,n){var i,a,s=String(r(t)),c=o(n),l=s.length;return c<0||c>=l?e?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):i:e?s.slice(c,c+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){"use strict";var o=n(378),r=n(268),i=n(381),a={};n(231)(a,n(163)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var o=n(182),r=n(232),i=n(270);e.exports=n(183)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),s=a.length,c=0;s>c;)o.f(e,n=a[c++],t[n]);return e}},function(e,t,n){var o=n(236),r=n(523),i=n(802);e.exports=function(e){return function(t,n,a){var s,c=o(t),l=r(c.length),d=i(a,l);if(e&&n!=n){for(;l>d;)if((s=c[d++])!=s)return!0}else for(;l>d;d++)if((e||d in c)&&c[d]===n)return e||d||0;return!e&&-1}}},function(e,t,n){var o=n(377),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=o(e))<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(181).document;e.exports=o&&o.documentElement},function(e,t,n){n(805);for(var o=n(181),r=n(231),i=n(269),a=n(163)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var l=s[c],d=o[l],u=d&&d.prototype;u&&!u[a]&&r(u,a,l),i[l]=i.Array}},function(e,t,n){"use strict";var o=n(806),r=n(807),i=n(269),a=n(236);e.exports=n(519)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(809),__esModule:!0}},function(e,t,n){n(810),n(815),n(816),n(817),e.exports=n(142).Symbol},function(e,t,n){"use strict";var o=n(181),r=n(207),i=n(183),a=n(180),s=n(520),c=n(811).KEY,l=n(234),d=n(375),u=n(381),h=n(312),p=n(163),m=n(382),g=n(383),f=n(812),_=n(813),b=n(232),v=n(233),y=n(235),E=n(236),S=n(372),w=n(268),C=n(378),T=n(814),x=n(525),O=n(384),k=n(182),R=n(270),D=x.f,I=k.f,A=T.f,N=o.Symbol,F=o.JSON,M=F&&F.stringify,P=p("_hidden"),L=p("toPrimitive"),j={}.propertyIsEnumerable,U=d("symbol-registry"),B=d("symbols"),q=d("op-symbols"),G=Object.prototype,V="function"==typeof N&&!!O.f,H=o.QObject,z=!H||!H.prototype||!H.prototype.findChild,K=i&&l((function(){return 7!=C(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(e,t,n){var o=D(G,t);o&&delete G[t],I(e,t,n),o&&e!==G&&I(G,t,o)}:I,W=function(e){var t=B[e]=C(N.prototype);return t._k=e,t},Y=V&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},$=function(e,t,n){return e===G&&$(q,t,n),b(e),t=S(t,!0),b(n),r(B,t)?(n.enumerable?(r(e,P)&&e[P][t]&&(e[P][t]=!1),n=C(n,{enumerable:w(0,!1)})):(r(e,P)||I(e,P,w(1,{})),e[P][t]=!0),K(e,t,n)):I(e,t,n)},Q=function(e,t){b(e);for(var n,o=f(t=E(t)),r=0,i=o.length;i>r;)$(e,n=o[r++],t[n]);return e},J=function(e){var t=j.call(this,e=S(e,!0));return!(this===G&&r(B,e)&&!r(q,e))&&(!(t||!r(this,e)||!r(B,e)||r(this,P)&&this[P][e])||t)},X=function(e,t){if(e=E(e),t=S(t,!0),e!==G||!r(B,t)||r(q,t)){var n=D(e,t);return!n||!r(B,t)||r(e,P)&&e[P][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=A(E(e)),o=[],i=0;n.length>i;)r(B,t=n[i++])||t==P||t==c||o.push(t);return o},ee=function(e){for(var t,n=e===G,o=A(n?q:E(e)),i=[],a=0;o.length>a;)!r(B,t=o[a++])||n&&!r(G,t)||i.push(B[t]);return i};V||(s((N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===G&&t.call(q,n),r(this,P)&&r(this[P],e)&&(this[P][e]=!1),K(this,e,w(1,n))};return i&&z&&K(G,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",(function(){return this._k})),x.f=X,k.f=$,n(524).f=T.f=Z,n(313).f=J,O.f=ee,i&&!n(311)&&s(G,"propertyIsEnumerable",J,!0),m.f=function(e){return W(p(e))}),a(a.G+a.W+a.F*!V,{Symbol:N});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)p(te[ne++]);for(var oe=R(p.store),re=0;oe.length>re;)g(oe[re++]);a(a.S+a.F*!V,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=N(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in U)if(U[t]===e)return t},useSetter:function(){z=!0},useSimple:function(){z=!1}}),a(a.S+a.F*!V,"Object",{create:function(e,t){return void 0===t?C(e):Q(C(e),t)},defineProperty:$,defineProperties:Q,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var ie=l((function(){O.f(1)}));a(a.S+a.F*ie,"Object",{getOwnPropertySymbols:function(e){return O.f(y(e))}}),F&&a(a.S+a.F*(!V||l((function(){var e=N();return"[null]"!=M([e])||"{}"!=M({a:e})||"{}"!=M(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=t=o[1],(v(t)||void 0!==e)&&!Y(e))return _(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),o[1]=t,M.apply(F,o)}}),N.prototype[L]||n(231)(N.prototype,L,N.prototype.valueOf),u(N,"Symbol"),u(Math,"Math",!0),u(o.JSON,"JSON",!0)},function(e,t,n){var o=n(312)("meta"),r=n(233),i=n(207),a=n(182).f,s=0,c=Object.isExtensible||function(){return!0},l=!n(234)((function(){return c(Object.preventExtensions({}))})),d=function(e){a(e,o,{value:{i:"O"+ ++s,w:{}}})},u=e.exports={KEY:o,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!c(e))return"F";if(!t)return"E";d(e)}return e[o].i},getWeak:function(e,t){if(!i(e,o)){if(!c(e))return!0;if(!t)return!1;d(e)}return e[o].w},onFreeze:function(e){return l&&u.NEED&&c(e)&&!i(e,o)&&d(e),e}}},function(e,t,n){var o=n(270),r=n(384),i=n(313);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,s=n(e),c=i.f,l=0;s.length>l;)c.call(e,a=s[l++])&&t.push(a);return t}},function(e,t,n){var o=n(379);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){var o=n(236),r=n(524).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return r(e)}catch(e){return a.slice()}}(e):r(o(e))}},function(e,t){},function(e,t,n){n(383)("asyncIterator")},function(e,t,n){n(383)("observable")},function(e,t,n){e.exports={default:n(819),__esModule:!0}},function(e,t,n){n(820),e.exports=n(142).Object.setPrototypeOf},function(e,t,n){var o=n(180);o(o.S,"Object",{setPrototypeOf:n(821).set})},function(e,t,n){var o=n(233),r=n(232),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{(o=n(371)(Function.call,n(525).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){e.exports={default:n(823),__esModule:!0}},function(e,t,n){n(824);var o=n(142).Object;e.exports=function(e,t){return o.create(e,t)}},function(e,t,n){var o=n(180);o(o.S,"Object",{create:n(378)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=s(n(376)),r=n(526),i=s(n(839)),a=s(n(840));function s(e){return e&&e.__esModule?e:{default:e}}var c="object"===("undefined"==typeof window?"undefined":(0,o.default)(window))&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:r.compose;t.default=function(){return(0,r.createStore)(a.default,c((0,r.applyMiddleware)(i.default)))}},function(e,t,n){var o=n(529),r=n(829),i=n(830),a=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?r(e):i(e)}},function(e,t,n){var o=n(828),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();e.exports=i},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(6))},function(e,t,n){var o=n(529),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,s=o?o.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var o=!0}catch(e){}var r=a.call(e);return o&&(t?e[s]=n:delete e[s]),r}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var o=n(832)(Object.getPrototypeOf,Object);e.exports=o},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";(function(e,o){Object.defineProperty(t,"__esModule",{value:!0});var r,i,a=n(835),s=(r=a)&&r.__esModule?r:{default:r};i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:o;var c=(0,s.default)(i);t.default=c}).call(this,n(6),n(368)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n=e.Symbol;"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable";return t}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var a=t[r];0,"function"==typeof e[a]&&(n[a]=e[a])}var s=Object.keys(n);0;var c=void 0;try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:o.ActionTypes.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+o.ActionTypes.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){c=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(c)throw c;for(var o=!1,r={},a=0;a<s.length;a++){var l=s[a],d=n[l],u=e[l],h=d(u,t);if(void 0===h){var p=i(l,t);throw new Error(p)}r[l]=h,o=o||h!==u}return o?r:e}};var o=n(527);r(n(528)),r(n(530));function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}},function(e,t,n){"use strict";function o(e,t){return function(){return t(e.apply(void 0,arguments))}}t.__esModule=!0,t.default=function(e,t){if("function"==typeof e)return o(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),r={},i=0;i<n.length;i++){var a=n[i],s=e[a];"function"==typeof s&&(r[a]=o(s,t))}return r}},function(e,t,n){"use strict";t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,i){var s,c=e(n,r,i),l=c.dispatch,d={getState:c.getState,dispatch:function(e){return l(e)}};return s=t.map((function(e){return e(d)})),l=a.default.apply(void 0,s)(c.dispatch),o({},c,{dispatch:l})}}};var r,i=n(531),a=(r=i)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";function o(e){return function(t){var n=t.dispatch,o=t.getState;return function(t){return function(r){return"function"==typeof r?r(n,o,e):t(r)}}}}t.__esModule=!0;var r=o();r.withExtraArgument=o,t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=p(n(189)),r=p(n(170)),i=p(n(208)),a=p(n(143)),s=n(133),c=n(315),l=p(n(856)),d=p(n(862)),u=p(n(865)),h=n(316);function p(e){return e&&e.__esModule?e:{default:e}}var m={request:null,draggable:{},droppable:{}},g={x:0,y:0},f=(0,a.default)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"IDLE";return{phase:e,drag:null,drop:null,dimension:m}})),_=function(e){return-1===["IDLE","DROP_ANIMATING","DROP_COMPLETE"].indexOf(e)},b=function(e){var t=e.state,n=e.clientSelection,o=e.shouldAnimate,r=e.windowScroll,a=e.impact;if("DRAGGING"!==t.phase)return console.error("cannot move while not dragging"),f();var c=t.drag;if(null==c)return console.error("cannot move if there is no drag information"),f();var d,u=c.current,h=c.initial,p=r||u.windowScroll,m={offset:d=(0,s.subtract)(n,h.client.selection),selection:n,center:(0,s.add)(d,h.client.center)},g={selection:(0,s.add)(m.selection,p),offset:(0,s.add)(m.offset,p),center:(0,s.add)(m.center,p)},_={client:m,page:g,shouldAnimate:o,windowScroll:p},b=a||(0,l.default)({pageCenter:g.center,draggable:t.dimension.draggable[h.descriptor.id],draggables:t.dimension.draggable,droppables:t.dimension.droppable,previousImpact:c.impact}),v={initial:h,impact:b,current:_};return(0,i.default)({},t,{drag:v})},v=function(e){return"COLLECTING_INITIAL_DIMENSIONS"===e.phase||"DRAGGING"!==e.phase?e:e.drag?b({state:e,clientSelection:e.drag.current.client.selection,shouldAnimate:e.drag.current.shouldAnimate}):(console.error("cannot update a draggable dimension in an existing drag as there is invalid drag state"),f())};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f("IDLE"),t=arguments[1];if("CLEAN"===t.type)return f();if("PREPARE"===t.type)return f("PREPARING");if("REQUEST_DIMENSIONS"===t.type){if("PREPARING"!==e.phase)return console.error("trying to start a lift while not preparing for a lift"),f();var n=t.payload;return{phase:"COLLECTING_INITIAL_DIMENSIONS",drag:null,drop:null,dimension:{request:n,draggable:{},droppable:{}}}}if("PUBLISH_DRAGGABLE_DIMENSIONS"===t.type){var a=t.payload;if(!_(e.phase))return console.warn("dimensions rejected as no longer allowing dimension capture in phase",e.phase),e;var l=a.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{}),p=(0,i.default)({},e,{dimension:{request:e.dimension.request,droppable:e.dimension.droppable,draggable:(0,i.default)({},e.dimension.draggable,l)}});return v(p)}if("PUBLISH_DROPPABLE_DIMENSIONS"===t.type){var y=t.payload;if(!_(e.phase))return console.warn("dimensions rejected as no longer allowing dimension capture in phase",e.phase),e;var E=y.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{}),S=(0,i.default)({},e,{dimension:{request:e.dimension.request,draggable:e.dimension.draggable,droppable:(0,i.default)({},e.dimension.droppable,E)}});return v(S)}if("COMPLETE_LIFT"===t.type){if("COLLECTING_INITIAL_DIMENSIONS"!==e.phase)return console.error("trying complete lift without collecting dimensions"),e;var w=t.payload,C=w.id,T=w.client,x=w.windowScroll,O=w.isScrollAllowed,k={selection:(0,s.add)(T.selection,x),center:(0,s.add)(T.center,x)},R=e.dimension.draggable[C];if(!R)return console.error("could not find draggable in store after lift"),f();var D=R.descriptor,I={descriptor:D,isScrollAllowed:O,client:T,page:k,windowScroll:x},A={client:{selection:T.selection,center:T.center,offset:g},page:{selection:k.selection,center:k.center,offset:g},windowScroll:x,shouldAnimate:!1},N=e.dimension.droppable[D.droppableId];if(!N)return console.error("Cannot find home dimension for initial lift"),f();var F={index:D.index,droppableId:D.droppableId},M={movement:c.noMovement,direction:N.axis.direction,destination:F};return(0,i.default)({},e,{phase:"DRAGGING",drag:{initial:I,current:A,impact:M}})}if("UPDATE_DROPPABLE_DIMENSION_SCROLL"===t.type){if("DRAGGING"!==e.phase)return console.error("cannot update a droppable dimensions scroll when not dragging"),f();if(null==e.drag)return console.error("invalid store state"),f();if(!e.drag.initial.isScrollAllowed)return f();var P=t.payload,L=P.id,j=P.offset,U=e.dimension.droppable[L];if(!U)return console.warn("cannot update scroll for droppable as it has not yet been collected"),e;var B=(0,h.scrollDroppable)(U,j),q=(0,i.default)({},e,{dimension:{request:e.dimension.request,draggable:e.dimension.draggable,droppable:(0,i.default)({},e.dimension.droppable,(0,r.default)({},L,B))}});return v(q)}if("UPDATE_DROPPABLE_DIMENSION_IS_ENABLED"===t.type){if(!(0,o.default)(e.dimension.droppable).length)return e;var G=t.payload,V=G.id,H=G.isEnabled,z=e.dimension.droppable[V];if(!z)return console.warn("cannot update enabled state for droppable as it has not yet been collected"),e;if(z.isEnabled===H)return console.warn("trying to set droppable isEnabled to "+String(H)+" but it is already "+String(H)),e;var K=(0,i.default)({},z,{isEnabled:H}),W=(0,i.default)({},e,{dimension:(0,i.default)({},e.dimension,{droppable:(0,i.default)({},e.dimension.droppable,(0,r.default)({},V,K))})});return v(W)}if("MOVE"===t.type){var Y=t.payload,$=Y.client,Q=Y.windowScroll;return b({state:e,clientSelection:$,windowScroll:Q,shouldAnimate:!1})}if("MOVE_BY_WINDOW_SCROLL"===t.type){var J=t.payload.windowScroll;return e.drag?b({state:e,clientSelection:e.drag.current.client.selection,windowScroll:J,shouldAnimate:!1}):(console.error("cannot move with window scrolling if no current drag"),f())}if("MOVE_FORWARD"===t.type||"MOVE_BACKWARD"===t.type){if("DRAGGING"!==e.phase)return console.error("cannot move while not dragging",t),f();if(!e.drag)return console.error("cannot move if there is no drag information"),f();var X=e.drag,Z="MOVE_FORWARD"===t.type;if(!X.impact.destination)return console.error("cannot move if there is no previous destination"),f();var ee=e.dimension.droppable[X.impact.destination.droppableId],te=(0,d.default)({isMovingForward:Z,draggableId:X.initial.descriptor.id,droppable:ee,draggables:e.dimension.draggable,previousImpact:X.impact});if(!te)return e;var ne=te.impact,oe=te.pageCenter,re=(0,s.subtract)(oe,X.current.windowScroll);return b({state:e,impact:ne,clientSelection:re,shouldAnimate:!0})}if("CROSS_AXIS_MOVE_FORWARD"===t.type||"CROSS_AXIS_MOVE_BACKWARD"===t.type){if("DRAGGING"!==e.phase)return console.error("cannot move cross axis when not dragging"),f();if(!e.drag)return console.error("cannot move cross axis if there is no drag information"),f();if(!e.drag.impact.destination)return console.error("cannot move cross axis if not in a droppable"),f();var ie=e.drag.current,ae=e.drag.initial.descriptor,se=ae.id,ce=ie.page.center,le=e.drag.impact.destination.droppableId,de={index:ae.index,droppableId:ae.droppableId},ue=(0,u.default)({isMovingForward:"CROSS_AXIS_MOVE_FORWARD"===t.type,pageCenter:ce,draggableId:se,droppableId:le,home:de,draggables:e.dimension.draggable,droppables:e.dimension.droppable,previousImpact:e.drag.impact});if(!ue)return e;var he=ue.pageCenter,pe=(0,s.subtract)(he,ie.windowScroll);return b({state:e,clientSelection:pe,impact:ue.impact,shouldAnimate:!0})}if("DROP_ANIMATE"===t.type){var me=t.payload,ge=me.trigger,fe=me.newHomeOffset,_e=me.impact,be=me.result;if("DRAGGING"!==e.phase)return console.error("cannot animate drop while not dragging",t),e;if(!e.drag)return console.error("cannot animate drop - invalid drag state"),f();var ve={trigger:ge,newHomeOffset:fe,result:be,impact:_e};return{phase:"DROP_ANIMATING",drag:null,drop:{pending:ve,result:null},dimension:e.dimension}}if("DROP_COMPLETE"===t.type){var ye=t.payload;return{phase:"DROP_COMPLETE",drag:null,drop:{pending:null,result:ye},dimension:m}}return e}},function(e,t,n){n(842),e.exports=n(142).Object.keys},function(e,t,n){var o=n(235),r=n(270);n(517)("keys",(function(){return function(e){return r(o(e))}}))},function(e,t,n){e.exports={default:n(844),__esModule:!0}},function(e,t,n){n(845),e.exports=n(142).Object.assign},function(e,t,n){var o=n(180);o(o.S+o.F,"Object",{assign:n(846)})},function(e,t,n){"use strict";var o=n(183),r=n(270),i=n(384),a=n(313),s=n(235),c=n(522),l=Object.assign;e.exports=!l||n(234)((function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=o}))?function(e,t){for(var n=s(e),l=arguments.length,d=1,u=i.f,h=a.f;l>d;)for(var p,m=c(arguments[d++]),g=u?r(m).concat(u(m)):r(m),f=g.length,_=0;f>_;)p=g[_++],o&&!h.call(m,p)||(n[p]=m[p]);return n}:l},function(e,t,n){e.exports={default:n(848),__esModule:!0}},function(e,t,n){n(518),n(849),e.exports=n(142).Array.from},function(e,t,n){"use strict";var o=n(371),r=n(180),i=n(235),a=n(850),s=n(851),c=n(523),l=n(852),d=n(853);r(r.S+r.F*!n(855)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,r,u,h=i(e),p="function"==typeof this?this:Array,m=arguments.length,g=m>1?arguments[1]:void 0,f=void 0!==g,_=0,b=d(h);if(f&&(g=o(g,m>2?arguments[2]:void 0,2)),null==b||p==Array&&s(b))for(n=new p(t=c(h.length));t>_;_++)l(n,_,f?g(h[_],_):h[_]);else for(u=b.call(h),n=new p;!(r=u.next()).done;_++)l(n,_,f?a(u,g,[r.value,_],!0):r.value);return n.length=_,n}})},function(e,t,n){var o=n(232);e.exports=function(e,t,n,r){try{return r?t(o(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&o(i.call(e)),t}}},function(e,t,n){var o=n(269),r=n(163)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||i[r]===e)}},function(e,t,n){"use strict";var o=n(182),r=n(268);e.exports=function(e,t,n){t in e?o.f(e,t,r(0,n)):e[t]=n}},function(e,t,n){var o=n(854),r=n(163)("iterator"),i=n(269);e.exports=n(142).getIteratorMethod=function(e){if(null!=e)return e[r]||e["@@iterator"]||i[o(e)]}},function(e,t,n){var o=n(379),r=n(163)("toStringTag"),i="Arguments"==o(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?n:i?o(t):"Object"==(a=o(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var o=n(163)("iterator"),r=!1;try{var i=[7][o]();i.return=function(){r=!0},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i=[7],a=i[o]();a.next=function(){return{done:n=!0}},i[o]=function(){return a},e(i)}catch(e){}return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=c(n(857)),r=c(n(238)),i=c(n(315)),a=c(n(860)),s=c(n(861));function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.pageCenter,n=e.draggable,c=e.draggables,l=e.droppables,d=e.previousImpact,u=d.destination&&d.destination.droppableId,h=(0,o.default)({target:t,draggable:n,draggables:c,droppables:l,previousDroppableOverId:u});if(!h)return i.default;var p=l[h];if(!p.isEnabled)return i.default;var m=l[n.descriptor.droppableId],g=m.descriptor.id===h,f=(0,r.default)(p,c);return g?(0,a.default)({pageCenter:t,draggable:n,home:m,insideHome:f,previousImpact:d||i.default}):(0,s.default)({pageCenter:t,draggable:n,destination:p,insideDestination:f,previousImpact:d||i.default})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=u(n(189)),r=u(n(143)),i=u(n(237)),a=u(n(238)),s=u(n(858)),c=n(133),l=n(271),d=n(316);function u(e){return e&&e.__esModule?e:{default:e}}var h=(0,r.default)((function(e,t,n){var o=function(t){var o=e.page.withMargin[n.axis.size];return o<=t?null:(0,c.patch)(n.axis.line,o-t)},r=(0,a.default)(n,t);if(!r.length)return o(n.page.withMargin[n.axis.size]);var i=r[r.length-1].page.withMargin[n.axis.end];return o(n.page.withMargin[n.axis.end]-i)})),p=(0,r.default)((function(e,t){return(0,i.default)((0,l.addPosition)(e,t))}));t.default=function(e){var t=e.target,n=e.draggable,r=e.draggables,i=e.droppables,a=e.previousDroppableOverId,c=(0,o.default)(i).map((function(e){return i[e]})).filter((function(e){return e.isEnabled})).find((function(e){var o=function(e){var t=e.draggable,n=e.draggables,o=e.droppable,r=e.previousDroppableOverId,i=t.descriptor.droppableId===o.descriptor.id,a=Boolean(r&&r===o.descriptor.id),s=o.viewport.subject,c=o.viewport.frame,l=o.viewport.clipped;if(!l)return l;if(i||!a)return l;var u=h(t,n,o);if(!u)return l;var m=s[o.axis.size]!==c[o.axis.size],g=p(l,u);return m?(0,d.clip)(c,g):g}({draggable:n,draggables:r,droppable:e,previousDroppableOverId:a});return!!o&&(0,s.default)(o)(t)}));return c?c.descriptor.id:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(385),i=(o=r)&&o.__esModule?o:{default:o};t.default=function(e){var t=(0,i.default)(e.top,e.bottom),n=(0,i.default)(e.left,e.right);return function(e){return t(e.y)&&t(e.y)&&n(e.x)&&n(e.x)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.vertical={direction:"vertical",line:"y",crossLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},t.horizontal={direction:"horizontal",line:"x",crossLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(133),r=a(n(239)),i=a(n(190));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t,n,a=e.pageCenter,s=e.draggable,c=e.home,l=e.insideHome,d=e.previousImpact,u=(0,i.default)(),h=c.axis,p=s.page.withoutMargin.center,m=c.viewport.frameScroll.diff.value,g=(0,o.add)(a,m),f=g[h.line]-p[h.line]>0,_=(0,o.patch)(h.line,s.client.withMargin[h.size]),b=l.filter((function(e){if(e===s)return!1;var t=e.page.withoutMargin;return f?!(t.center[h.line]<p[h.line])&&g[h.line]>t[h.start]:!(p[h.line]<t.center[h.line])&&g[h.line]<t[h.end]})).map((function(e){return(0,r.default)({draggable:e,destination:c,previousImpact:d,viewport:u})})),v=f?b.reverse():b,y=(t=l.indexOf(s),(n=v.length)?f?t+n:t-n:t);return{movement:{amount:_,displaced:v,isBeyondStartPosition:f},direction:h.direction,destination:{droppableId:c.descriptor.id,index:y}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(133),r=a(n(239)),i=a(n(190));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.pageCenter,n=e.draggable,a=e.destination,s=e.insideDestination,c=e.previousImpact,l=a.axis,d=(0,i.default)(),u=a.viewport.frameScroll.diff.value,h=(0,o.add)(t,u),p=s.filter((function(e){return e.page.withoutMargin[l.end]>h[l.line]})).map((function(e){return(0,r.default)({draggable:e,destination:a,previousImpact:c,viewport:d})})),m=s.length-p.length;return{movement:{amount:(0,o.patch)(l.line,n.page.withMargin[l.size]),displaced:p,isBeyondStartPosition:!1},direction:l.direction,destination:{droppableId:a.descriptor.id,index:m}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(863)),r=i(n(864));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.draggableId,n=e.draggables,i=e.droppable,a=n[t].descriptor.droppableId===i.descriptor.id;return i.isEnabled?a?(0,o.default)(e):(0,r.default)(e):null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=u(n(314)),r=u(n(143)),i=u(n(238)),a=n(133),s=u(n(534)),c=u(n(190)),l=u(n(272)),d=u(n(239));function u(e){return e&&e.__esModule?e:{default:e}}var h=(0,r.default)((function(e,t){return e.indexOf(t)}));t.default=function(e){var t=e.isMovingForward,n=e.draggableId,r=e.previousImpact,u=e.droppable,p=e.draggables,m=r.destination;if(!m)return console.error("cannot move to next index when there is not previous destination"),null;var g=p[n],f=u.axis,_=(0,i.default)(u,p),b=h(_,g),v=m.index,y=t?v+1:v-1;if(-1===b)return console.error("could not find draggable inside current droppable"),null;if(y>_.length-1)return null;if(y<0)return null;var E=_[y],S=t&&y<=b||!t&&y>=b,w=S?t?"start":"end":t?"end":"start",C=(0,l.default)({source:g.page.withoutMargin,sourceEdge:w,destination:E.page.withoutMargin,destinationEdge:w,destinationAxis:u.axis}),T=(0,c.default)();if(!(0,s.default)({draggable:g,destination:u,newCenter:C,viewport:T}))return null;var x={draggableId:E.descriptor.id,isVisible:!0,shouldAnimate:!0};return{pageCenter:C,impact:{movement:{displaced:(S?r.movement.displaced.slice(1,r.movement.displaced.length):[x].concat((0,o.default)(r.movement.displaced))).map((function(e){var t=p[e.draggableId];return(0,d.default)({draggable:t,destination:u,previousImpact:r,viewport:T})})),amount:(0,a.patch)(f.line,g.page.withMargin[f.size]),isBeyondStartPosition:y>b},destination:{droppableId:u.descriptor.id,index:y},direction:u.axis.direction}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=d(n(314)),r=d(n(238)),i=n(133),a=d(n(272)),s=d(n(239)),c=d(n(190)),l=d(n(534));function d(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.isMovingForward,n=e.draggableId,d=e.previousImpact,u=e.droppable,h=e.draggables;if(!d.destination)return console.error("cannot move to next index when there is not previous destination"),null;var p=d.destination,m=h[n],g=u.axis,f=(0,r.default)(u,h),_=p.index,b=t?_+1:_-1,v=f.length-1;if(b>f.length)return null;if(b<0)return null;var y=f[Math.min(b,v)],E=b>v,S=E?"end":"start",w=(0,c.default)(),C=(0,a.default)({source:m.page.withoutMargin,sourceEdge:"start",destination:y.page.withMargin,destinationEdge:S,destinationAxis:u.axis});if(!(!!E||(0,l.default)({draggable:m,destination:u,newCenter:C,viewport:w})))return null;var T={draggableId:y.descriptor.id,isVisible:!0,shouldAnimate:!0},x={movement:{displaced:(t?d.movement.displaced.slice(1,d.movement.displaced.length):[T].concat((0,o.default)(d.movement.displaced))).map((function(e){if(e===T)return e;var t=h[e.draggableId];return(0,s.default)({draggable:t,destination:u,viewport:w,previousImpact:d})})),amount:(0,i.patch)(g.line,m.page.withMargin[g.size]),isBeyondStartPosition:!1},destination:{droppableId:u.descriptor.id,index:b},direction:u.axis.direction};return{pageCenter:C,impact:x}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=c(n(866)),r=c(n(867)),i=c(n(868)),a=c(n(315)),s=c(n(238));function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.isMovingForward,n=e.pageCenter,c=e.draggableId,l=e.droppableId,d=e.home,u=e.draggables,h=e.droppables,p=e.previousImpact,m=u[c],g=h[l],f=(0,o.default)({isMovingForward:t,pageCenter:n,source:g,droppables:h});if(!f)return null;var _=(0,s.default)(f,u),b=(0,r.default)({axis:f.axis,pageCenter:n,destination:f,insideDestination:_});return _.length&&!b?null:(0,i.default)({pageCenter:n,destination:f,draggable:m,target:b,insideDestination:_,home:d,previousImpact:p||a.default})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=l(n(189)),r=n(133),i=l(n(385)),a=n(271),s=l(n(190)),c=l(n(533));function l(e){return e&&e.__esModule?e:{default:e}}var d=function(e){var t=e.viewport.clipped;if(!t)throw new Error("cannot get clipped area from droppable");return t};t.default=function(e){var t=e.isMovingForward,n=e.pageCenter,l=e.source,u=e.droppables,h=l.viewport.clipped;if(!h)return null;var p=l.axis,m=(0,i.default)(h[p.start],h[p.end]),g=(0,s.default)(),f=(0,o.default)(u).map((function(e){return u[e]})).filter((function(e){return e!==l})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.viewport.clipped)})).filter((function(e){return(0,c.default)(g)(e.viewport.frame)})).filter((function(e){var n=d(e);return t?h[p.crossAxisEnd]<=n[p.crossAxisStart]:n[p.crossAxisEnd]<=h[p.crossAxisStart]})).filter((function(e){var t=d(e),n=(0,i.default)(t[p.start],t[p.end]);return m(t[p.start])||m(t[p.end])||n(h[p.start])||n(h[p.end])})).sort((function(e,n){var o=d(e)[p.crossAxisStart],r=d(n)[p.crossAxisStart];return t?o-r:r-o})).filter((function(e,t,n){return d(e)[p.crossAxisStart]===d(n[0])[p.crossAxisStart]}));if(!f.length)return null;if(1===f.length)return f[0];var _=f.filter((function(e){return(0,i.default)(d(e)[p.start],d(e)[p.end])(n[p.line])}));return 1===_.length?_[0]:_.length>1?_.sort((function(e,t){return d(e)[p.start]-d(t)[p.start]}))[0]:f.sort((function(e,t){var o=(0,r.closest)(n,(0,a.getCorners)(d(e))),i=(0,r.closest)(n,(0,a.getCorners)(d(t)));return o!==i?o-i:d(e)[p.start]-d(t)[p.start]}))[0]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(133),r=a(n(190)),i=a(n(386));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.axis,n=e.pageCenter,a=e.destination,s=e.insideDestination;if(!s.length)return null;var c=(0,r.default)(),l=s.filter((function(e){return(0,i.default)({target:e.page.withMargin,destination:a,viewport:c})})).sort((function(e,r){var i=(0,o.distance)(n,e.page.withMargin.center),a=(0,o.distance)(n,r.page.withMargin.center);return i<a?-1:a<i?1:e.page.withMargin[t.start]-r.page.withMargin[t.start]}));return l.length?l[0]:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a(n(869)),r=a(n(870)),i=n(133);function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.pageCenter,n=e.destination,a=e.draggable,s=e.target,c=e.home,l=e.insideDestination,d=e.previousImpact,u=(0,i.patch)(n.axis.line,a.client.withMargin[n.axis.size]);return n.descriptor.id===a.descriptor.droppableId?(0,o.default)({amount:u,originalIndex:c.index,target:s,insideDroppable:l,draggable:a,droppable:n,previousImpact:d}):(0,r.default)({amount:u,pageCenter:t,target:s,insideDroppable:l,draggable:a,droppable:n,previousImpact:d})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a(n(272)),r=a(n(190)),i=a(n(239));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.amount,n=e.originalIndex,a=e.target,s=e.insideDroppable,c=e.draggable,l=e.droppable,d=e.previousImpact;if(!a)return console.error("there will always be a target in the original list"),null;var u=l.axis,h=s.indexOf(a);if(-1===h)return console.error("unable to find target in destination droppable"),null;if(h===n)return{pageCenter:c.page.withoutMargin.center,impact:{movement:{displaced:[],amount:t,isBeyondStartPosition:!1},direction:l.axis.direction,destination:{droppableId:l.descriptor.id,index:n}}};var p=h>n,m=p?"end":"start",g=(0,o.default)({source:c.page.withoutMargin,sourceEdge:m,destination:p?a.page.withoutMargin:a.page.withMargin,destinationEdge:m,destinationAxis:u}),f=function(){if(!p)return s.slice(h,n);var e=n+1,t=h+1;return s.slice(e,t).reverse()}(),_=(0,r.default)();return{pageCenter:g,impact:{movement:{displaced:f.map((function(e){return(0,i.default)({draggable:e,destination:l,previousImpact:d,viewport:_})})),amount:t,isBeyondStartPosition:p},direction:u.direction,destination:{droppableId:l.descriptor.id,index:h}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a(n(272)),r=a(n(239)),i=a(n(190));function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.amount,n=e.pageCenter,a=e.target,s=e.insideDroppable,c=e.draggable,l=e.droppable,d=e.previousImpact,u=l.axis,h=Boolean(a&&n[l.axis.line]<a.page.withMargin.center[l.axis.line]);if(!a)return{pageCenter:(0,o.default)({source:c.page.withoutMargin,sourceEdge:"start",destination:l.page.withMarginAndPadding,destinationEdge:"start",destinationAxis:u}),impact:{movement:{displaced:[],amount:t,isBeyondStartPosition:!1},direction:u.direction,destination:{droppableId:l.descriptor.id,index:0}}};var p=s.indexOf(a),m=h?p:p+1;if(-1===p)return console.error("could not find target inside destination"),null;var g=(0,o.default)({source:c.page.withoutMargin,sourceEdge:"start",destination:a.page.withMargin,destinationEdge:h?"start":"end",destinationAxis:u}),f=(0,i.default)();return{pageCenter:g,impact:{movement:{displaced:s.slice(m,s.length).map((function(e){return(0,r.default)({draggable:e,destination:l,viewport:f,previousImpact:d})})),amount:t,isBeyondStartPosition:!1},direction:u.direction,destination:{droppableId:l.descriptor.id,index:m}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var o=e.onDragStart,r=e.onDragEnd,i=n.phase,a=t.phase;if(i!==a)if("DRAGGING"!==i||"DRAGGING"===a){if("DROP_COMPLETE"===i&&"DROP_COMPLETE"!==a){if(!n.drop||!n.drop.result)return void console.error("cannot fire onDragEnd hook without drag state",{current:n,previous:t});var s=n.drop.result,c=s.source,l=s.destination,d=s.draggableId,u=s.type;return l?c.droppableId!==l.droppableId||c.index!==l.index?void r(n.drop.result):void r({draggableId:d,type:u,source:c,destination:null}):void r(n.drop.result)}if("IDLE"!==i||"DRAGGING"!==a){if("IDLE"===i&&"DROP_ANIMATING"===a){if(!t.drop||!t.drop.pending)return void console.error("cannot fire onDragEnd for cancel because cannot find previous pending drop");r({draggableId:t.drop.pending.result.draggableId,type:t.drop.pending.result.type,source:t.drop.pending.result.source,destination:null})}}else{if(!t.drag)return void console.error("cannot fire onDragEnd for cancel because cannot find previous drag");var h=t.drag.initial.descriptor,p=t.dimension.droppable[h.droppableId];if(!p)return void console.error("cannot find dimension for home droppable");var m={index:h.index,droppableId:h.droppableId};r({draggableId:h.id,type:p.descriptor.type,source:m,destination:null})}}else{if(!o)return;if(!n.drag)return void console.error("cannot fire onDragStart hook without drag state",{current:n,previous:t});var g=n.drag.initial.descriptor,f=n.dimension.droppable[g.droppableId];if(!f)return void console.error("cannot find dimension for home droppable");var _={index:g.index,droppableId:g.droppableId};o({draggableId:g.id,type:f.descriptor.type,source:_})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=s(n(314)),r=s(n(189)),i=s(n(170)),a=s(n(208));function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t={droppables:{},draggables:{},isCollecting:!1,request:null,frameId:null},n=function(e){var n=(0,a.default)({},t,e);t=n},s=function(){var n;(n=console).error.apply(n,arguments),t.isCollecting&&(d(),e.cancel())},c=function(e){n({frameId:e})},l=function(){if(t.isCollecting){var n=function(){var e=t.draggables,n=t.droppables,i=t.request;if(!i)return console.error("cannot find request in state"),[];var a=e[i].descriptor,s=n[a.droppableId].descriptor,c=(0,r.default)(e).map((function(t){return e[t].descriptor})).filter((function(e){return e.id!==a.id})).filter((function(e){var t=n[e.droppableId];return t?t.descriptor.type===s.type:(console.warn("Orphan Draggable found "+e.id+" which says it belongs to unknown Droppable "+e.droppableId),!1)})),l=(0,r.default)(n).map((function(e){return n[e].descriptor})).filter((function(e){return e.id!==s.id})).filter((function(e){return n[e.id].descriptor.type===s.type}));return[].concat((0,o.default)(l),(0,o.default)(c))}(),i=requestAnimationFrame((function(){var o=n.map((function(e){return e.type?t.droppables[e.id].callbacks.getDimension():t.draggables[e.id].getDimension()})),r=requestAnimationFrame((function(){var n=o.reduce((function(e,t){return t.placeholder?e.draggables.push(t):e.droppables.push(t),e}),{draggables:[],droppables:[]});n.droppables.length&&e.publishDroppables(n.droppables),n.draggables.length&&e.publishDraggables(n.draggables),n.droppables.forEach((function(e){t.droppables[e.descriptor.id].callbacks.watchScroll()})),c(null)}));c(r)}));c(i)}else s("Cannot collect secondary dimensions when collection is not occurring")},d=function(){(0,r.default)(t.droppables).forEach((function(e){return t.droppables[e].callbacks.unwatchScroll()})),t.frameId&&cancelAnimationFrame(t.frameId),n({isCollecting:!1,request:null,frameId:null})};return{registerDraggable:function(e,o){var r=e.id;if(t.droppables[e.droppableId]){var c={descriptor:e,getDimension:o},l=(0,a.default)({},t.draggables,(0,i.default)({},r,c));n({draggables:l}),t.isCollecting&&console.warn("Adding a draggable during a drag is currently not supported")}else s("Cannot register Draggable "+r+" as there is no entry for the Droppable "+e.droppableId)},unregisterDraggable:function(e){var o=t.draggables[e.id];if(o){if(o.descriptor===e){var r=(0,a.default)({},t.draggables);delete r[e.id],n({draggables:r}),t.isCollecting&&console.warn("currently not supporting unmounting a Draggable during a drag")}}else s("Cannot unregister Draggable with id "+e.id+" as it is not registered")},registerDroppable:function(e,o){var r=e.id,s={descriptor:e,callbacks:o},c=(0,a.default)({},t.droppables,(0,i.default)({},r,s));n({droppables:c}),t.isCollecting&&console.warn("Currently not supporting updating Droppables during a drag")},unregisterDroppable:function(e){var o=t.droppables[e.id];if(o){if(o.descriptor===e){var r=(0,a.default)({},t.droppables);delete r[e.id],n({droppables:r}),t.isCollecting&&console.warn("currently not supporting unmounting a Droppable during a drag")}}else s("Cannot unregister Droppable with id "+e.id+" as as it is not registered")},updateDroppableIsEnabled:function(n,o){t.droppables[n]?t.isCollecting&&e.updateDroppableIsEnabled(n,o):s("Cannot update the scroll on Droppable "+n+" as it is not registered")},updateDroppableScroll:function(n,o){t.droppables[n]?t.isCollecting&&e.updateDroppableScroll(n,o):s("Cannot update the scroll on Droppable "+n+" as it is not registered")},onPhaseChange:function(o){var r=o.phase;if("COLLECTING_INITIAL_DIMENSIONS"!==r)return"DRAGGING"===r?o.dimension.request!==t.request?void s("Request in local state does not match that of the store"):void l():void("DROP_ANIMATING"!==r&&"DROP_COMPLETE"!==r?"IDLE"===r&&t.isCollecting&&d():t.isCollecting&&d());!function(o){if(t.isCollecting)s("Cannot start capturing dimensions for a drag it is already dragging");else if(o){n({isCollecting:!0,request:o});var r=t.draggables,i=t.droppables,a=r[o];if(a){var c=i[a.descriptor.droppableId];if(c){var l=c.callbacks.getDimension(),d=a.getDimension();e.publishDroppables([l]),e.publishDraggables([d]),c.callbacks.watchScroll()}else s("Cannot find home Droppable [id:"+a.descriptor.droppableId+"] for Draggable [id:"+o+"]")}else s("Cannot find Draggable with id "+o+" to start collecting dimensions")}else s("Cannot start capturing dimensions with an invalid request",o)}(o.dimension.request)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(143)),r=i(n(874));function i(e){return e&&e.__esModule?e:{default:e}}var a=0;t.default=function(){var e=""+a++,t=(0,r.default)(e),n={el:null},i=function(e){n=e},s=(0,o.default)((function(e){n.el?n.el.innerHTML=e:console.error("cannot set style of style tag if not mounted")}));return{onPhaseChange:function(e){if(n.el){var o=e.phase;if("DRAGGING"!==o){if("DROP_ANIMATING"===o)return e.drop&&e.drop.pending?"DROP"===e.drop.pending.trigger?void s(t.dropAnimating):void s(t.userCancel):void console.error("Invalid state found in style-marshal");s(t.resting)}else s(t.dragging)}else console.error("cannot update styles until style marshal is mounted")},styleContext:e,mount:function(){if(n.el)console.error("Style marshal already mounted");else{var o=document.createElement("style");o.type="text/css",o.setAttribute("data-react-beautiful-dnd",e);var r=document.querySelector("head");if(!r)throw new Error("Cannot find the head to append a style to");r.appendChild(o),i({el:o}),s(t.resting)}},unmount:function(){if(n.el){var e=n.el;i({el:null}),e.parentNode?e.parentNode.removeChild(e):console.error("Cannot unmount style marshal as cannot find parent")}else console.error("Cannot unmount style marshal as it is already unmounted")}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(535),r="data-react-beautiful-dnd";t.default=function(e){var t="["+r+'-drag-handle="'+e+'"]',n={base:"\n "+t+" {\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n }\n ",grabCursor:"\n "+t+" {\n cursor: -webkit-grab;\n cursor: grab;\n }\n ",blockPointerEvents:"\n "+t+" {\n pointer-events: none;\n }\n "},i={animateMovement:"\n "+("["+r+'-draggable="'+e+'"]')+" {\n transition: "+o.css.outOfTheWay+";\n }\n "};return{resting:[n.base,n.grabCursor].join(""),dragging:[n.base,n.blockPointerEvents,i.animateMovement,"\n body {\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n }\n "].join(""),dropAnimating:[n.base,n.grabCursor,i.animateMovement].join(""),userCancel:[n.base,i.animateMovement].join("")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.phase;return"IDLE"===n||"DROP_COMPLETE"===n||"PREPARING"!==n&&"COLLECTING_INITIAL_DIMENSIONS"!==n&&"DRAGGING"!==n&&("DROP_ANIMATING"===n?e.drop&&e.drop.pending?e.drop.pending.result.draggableId!==t&&"DROP"===e.drop.pending.trigger:(console.error("Invalid state shape for drop animating"),!1):(console.warn("unhandled phase "+n+" in canLift check"),!1))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(272)),r=i(n(238));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.movement,n=e.draggable,i=e.draggables,a=e.destination,s=n.client.withMargin.center;if(null==a)return s;var c=t.displaced,l=t.isBeyondStartPosition,d=a.axis,u=a.descriptor.id===n.descriptor.droppableId;if(u&&!c.length)return s;var h=(0,r.default)(a,i),p=u||c.length?i[c[0].draggableId].client.withMargin:h.length?h[h.length-1].client.withMargin:a.client.withMarginAndPadding,m=u?l?{sourceEdge:"end",destinationEdge:"end"}:{sourceEdge:"start",destinationEdge:"start"}:!c.length&&h.length?{sourceEdge:"start",destinationEdge:"end"}:{sourceEdge:"start",destinationEdge:"start"},g=m.sourceEdge,f=m.destinationEdge,_=n.client.withMargin;return(0,o.default)({source:_,sourceEdge:g,destination:p,destinationEdge:f,destinationAxis:d})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(878);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=o,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeSelector=void 0;var o=n(537),r=n(389),i=l(n(143)),a=n(191),s=n(892),c=l(n(893));function l(e){return e&&e.__esModule?e:{default:e}}var d=t.makeSelector=function(){var e=(0,i.default)((function(e,t){return!!t&&t.droppableId===e})),t=(0,i.default)((function(e,t,n){return n&&t?e===n.descriptor.droppableId||e!==t.droppableId?null:n.placeholder:null})),n=(0,i.default)((function(e,t){return{isDraggingOver:e,placeholder:t}}));return(0,r.createSelector)([s.phaseSelector,s.dragSelector,s.draggingDraggableSelector,s.pendingDropSelector,function(e,t){return t.droppableId},function(e,t){return t.isDropDisabled||!1}],(function(o,r,i,a,s,c){if(c)return n(!1,null);if("DRAGGING"===o){if(!r)return console.error("cannot determine dragging over as there is not drag"),n(!1,null);var l=e(s,r.impact.destination),d=t(s,r.impact.destination,i);return n(l,d)}if("DROP_ANIMATING"===o){if(!a)return console.error("cannot determine dragging over as there is no pending result"),n(!1,null);var u=e(s,a.impact.destination),h=t(s,a.result.destination,i);return n(u,h)}return n(!1,null)}))};t.default=(0,o.connect)((function(){var e=d();return function(t,n){return e(t,n)}}),null,null,{storeKey:a.storeKey})(c.default)},function(e,t,n){"use strict";var o=n(155),r=n(112);t.__esModule=!0,t.createProvider=l,t.default=void 0;var i=r(n(387)),a=o(n(82)),s=r(n(86)),c=n(539);r(n(388)),a.default.forwardRef;function l(e){var t;void 0===e&&(e="store");var n=e+"Subscription",o=function(t){(0,i.default)(r,t);var o=r.prototype;function r(n,o){var r;return(r=t.call(this,n,o)||this)[e]=n.store,r}return o.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},o.render=function(){return a.Children.only(this.props.children)},r}(a.Component);return o.propTypes={store:c.storeShape.isRequired,children:s.default.element.isRequired},o.childContextTypes=((t={})[e]=c.storeShape.isRequired,t[n]=c.subscriptionShape,t),o}var d=l();t.default=d},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){"use strict";var o=n(541),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return o.isMemo(e)?a:s[e.$$typeof]||r}s[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[o.Memo]=a;var l=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(m){var r=p(n);r&&r!==m&&e(t,r,o)}var a=d(n);u&&(a=a.concat(u(n)));for(var s=c(t),g=c(n),f=0;f<a.length;++f){var _=a[f];if(!(i[_]||o&&o[_]||g&&g[_]||s&&s[_])){var b=h(n,_);try{l(t,_,b)}catch(e){}}}}return t}},function(e,t,n){"use strict";var o="function"==typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,i=o?Symbol.for("react.portal"):60106,a=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,c=o?Symbol.for("react.profiler"):60114,l=o?Symbol.for("react.provider"):60109,d=o?Symbol.for("react.context"):60110,u=o?Symbol.for("react.async_mode"):60111,h=o?Symbol.for("react.concurrent_mode"):60111,p=o?Symbol.for("react.forward_ref"):60112,m=o?Symbol.for("react.suspense"):60113,g=o?Symbol.for("react.suspense_list"):60120,f=o?Symbol.for("react.memo"):60115,_=o?Symbol.for("react.lazy"):60116,b=o?Symbol.for("react.block"):60121,v=o?Symbol.for("react.fundamental"):60117,y=o?Symbol.for("react.responder"):60118,E=o?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case h:case a:case c:case s:case m:return e;default:switch(e=e&&e.$$typeof){case d:case p:case _:case f:case l:return e;default:return t}}case i:return t}}}function w(e){return S(e)===h}t.AsyncMode=u,t.ConcurrentMode=h,t.ContextConsumer=d,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=_,t.Memo=f,t.Portal=i,t.Profiler=c,t.StrictMode=s,t.Suspense=m,t.isAsyncMode=function(e){return w(e)||S(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return S(e)===d},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===a},t.isLazy=function(e){return S(e)===_},t.isMemo=function(e){return S(e)===f},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===c},t.isStrictMode=function(e){return S(e)===s},t.isSuspense=function(e){return S(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===h||e===c||e===s||e===m||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===_||e.$$typeof===f||e.$$typeof===l||e.$$typeof===d||e.$$typeof===p||e.$$typeof===v||e.$$typeof===y||e.$$typeof===E||e.$$typeof===b)},t.typeOf=S},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var o={notify:function(){}};var r=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=o}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=null,e=null},notify:function(){for(var n=e=t,o=0;o<n.length;o++)n[o]()},get:function(){return t},subscribe:function(n){var o=!0;return t===e&&(t=e.slice()),t.push(n),function(){o&&null!==e&&(o=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=o)},e}();t.default=r},function(e,t,n){"use strict";var o=n(112);t.__esModule=!0,t.createConnect=m,t.default=void 0;var r=o(n(95)),i=o(n(303)),a=o(n(540)),s=o(n(885)),c=o(n(886)),l=o(n(888)),d=o(n(889)),u=o(n(890));function h(e,t,n){for(var o=t.length-1;o>=0;o--){var r=t[o](e);if(r)return r}return function(t,o){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+o.wrappedComponentName+".")}}function p(e,t){return e===t}function m(e){var t=void 0===e?{}:e,n=t.connectHOC,o=void 0===n?a.default:n,m=t.mapStateToPropsFactories,g=void 0===m?l.default:m,f=t.mapDispatchToPropsFactories,_=void 0===f?c.default:f,b=t.mergePropsFactories,v=void 0===b?d.default:b,y=t.selectorFactory,E=void 0===y?u.default:y;return function(e,t,n,a){void 0===a&&(a={});var c=a,l=c.pure,d=void 0===l||l,u=c.areStatesEqual,m=void 0===u?p:u,f=c.areOwnPropsEqual,b=void 0===f?s.default:f,y=c.areStatePropsEqual,S=void 0===y?s.default:y,w=c.areMergedPropsEqual,C=void 0===w?s.default:w,T=(0,i.default)(c,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),x=h(e,g,"mapStateToProps"),O=h(t,_,"mapDispatchToProps"),k=h(n,v,"mergeProps");return o(E,(0,r.default)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:x,initMapDispatchToProps:O,initMergeProps:k,pure:d,areStatesEqual:m,areOwnPropsEqual:b,areStatePropsEqual:S,areMergedPropsEqual:C},T))}}var g=m();t.default=g},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(var a=0;a<n.length;a++)if(!o.call(t,n[a])||!r(e[n[a]],t[n[a]]))return!1;return!0};var o=Object.prototype.hasOwnProperty;function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";t.__esModule=!0,t.whenMapDispatchToPropsIsFunction=i,t.whenMapDispatchToPropsIsMissing=a,t.whenMapDispatchToPropsIsObject=s,t.default=void 0;var o=n(526),r=n(543);function i(e){return"function"==typeof e?(0,r.wrapMapToPropsFunc)(e,"mapDispatchToProps"):void 0}function a(e){return e?void 0:(0,r.wrapMapToPropsConstant)((function(e){return{dispatch:e}}))}function s(e){return e&&"object"==typeof e?(0,r.wrapMapToPropsConstant)((function(t){return(0,o.bindActionCreators)(e,t)})):void 0}var c=[i,a,s];t.default=c},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){if("object"!=typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=t;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}},function(e,t,n){"use strict";t.__esModule=!0,t.whenMapStateToPropsIsFunction=r,t.whenMapStateToPropsIsMissing=i,t.default=void 0;var o=n(543);function r(e){return"function"==typeof e?(0,o.wrapMapToPropsFunc)(e,"mapStateToProps"):void 0}function i(e){return e?void 0:(0,o.wrapMapToPropsConstant)((function(){return{}}))}var a=[r,i];t.default=a},function(e,t,n){"use strict";var o=n(112);t.__esModule=!0,t.defaultMergeProps=i,t.wrapMergePropsFunc=a,t.whenMergePropsIsFunction=s,t.whenMergePropsIsOmitted=c,t.default=void 0;var r=o(n(95));o(n(544));function i(e,t,n){return(0,r.default)({},n,e,t)}function a(e){return function(t,n){n.displayName;var o,r=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,s){var c=e(t,n,s);return a?r&&i(c,o)||(o=c):(a=!0,o=c),o}}}function s(e){return"function"==typeof e?a(e):void 0}function c(e){return e?void 0:function(){return i}}var l=[s,c];t.default=l},function(e,t,n){"use strict";var o=n(112);t.__esModule=!0,t.impureFinalPropsSelectorFactory=i,t.pureFinalPropsSelectorFactory=a,t.default=function(e,t){var n=t.initMapStateToProps,o=t.initMapDispatchToProps,s=t.initMergeProps,c=(0,r.default)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),l=n(e,c),d=o(e,c),u=s(e,c);0;return(c.pure?a:i)(l,d,u,e,c)};var r=o(n(303));o(n(891));function i(e,t,n,o){return function(r,i){return n(e(r,i),t(o,i),i)}}function a(e,t,n,o,r){var i,a,s,c,l,d=r.areStatesEqual,u=r.areOwnPropsEqual,h=r.areStatePropsEqual,p=!1;function m(r,p){var m,g,f=!u(p,a),_=!d(r,i);return i=r,a=p,f&&_?(s=e(i,a),t.dependsOnOwnProps&&(c=t(o,a)),l=n(s,c,a)):f?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(c=t(o,a)),l=n(s,c,a)):_?(m=e(i,a),g=!h(m,s),s=m,g&&(l=n(s,c,a)),l):l}return function(r,d){return p?m(r,d):(s=e(i=r,a=d),c=t(o,a),l=n(s,c,a),p=!0,l)}}},function(e,t,n){"use strict";var o=n(112);t.__esModule=!0,t.default=function(e,t,n,o){i(e,"mapStateToProps",o),i(t,"mapDispatchToProps",o),i(n,"mergeProps",o)};var r=o(n(388));function i(e,t,n){if(!e)throw new Error("Unexpected value for "+t+" in "+n+".");"mapStateToProps"!==t&&"mapDispatchToProps"!==t||e.hasOwnProperty("dependsOnOwnProps")||(0,r.default)("The selector for "+t+" of "+n+" did not specify a value for dependsOnOwnProps.")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.draggingDraggableSelector=t.dragSelector=t.pendingDropSelector=t.phaseSelector=void 0;var o=n(389),r=t.phaseSelector=function(e){return e.phase},i=t.pendingDropSelector=function(e){return e.drop&&e.drop.pending?e.drop.pending:null},a=t.dragSelector=function(e){return e.drag};t.draggingDraggableSelector=(0,o.createSelector)([r,a,i,function(e){return e.dimension.draggable}],(function(e,t,n,o){return"DRAGGING"===e?t?o[t.initial.descriptor.id]:(console.error("cannot get placeholder dimensions as there is an invalid drag state"),null):"DROP_ANIMATING"===e?n?n.result.destination?o[n.result.draggableId]:null:(console.error("cannot get placeholder dimensions as there is an invalid drag state"),null):null}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=g(n(170)),r=g(n(184)),i=g(n(185)),a=g(n(186)),s=g(n(187)),c=g(n(188)),l=n(82),d=g(l),u=g(n(86)),h=g(n(894)),p=g(n(546)),m=n(191);function g(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){var e,n,o,a;(0,i.default)(this,t);for(var c=arguments.length,l=Array(c),d=0;d<c;d++)l[d]=arguments[d];return n=o=(0,s.default)(this,(e=t.__proto__||(0,r.default)(t)).call.apply(e,[this].concat(l))),o.state={ref:null},o.setRef=function(e){null!==e&&e!==o.state.ref&&o.setState({ref:e})},a=n,(0,s.default)(o,a)}return(0,c.default)(t,e),(0,a.default)(t,[{key:"getChildContext",value:function(){return(0,o.default)({},m.droppableIdKey,this.props.droppableId)}},{key:"getPlaceholder",value:function(){return this.props.placeholder?d.default.createElement(p.default,{placeholder:this.props.placeholder}):null}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.direction,o=e.droppableId,r=e.ignoreContainerClipping,i=e.isDraggingOver,a=e.isDropDisabled,s=e.type,c={innerRef:this.setRef,placeholder:this.getPlaceholder()},l={isDraggingOver:i};return d.default.createElement(h.default,{droppableId:o,type:s,direction:n,ignoreContainerClipping:r,isDropDisabled:a,targetRef:this.state.ref},t(c,l))}}]),t}(l.Component);f.defaultProps={type:"DEFAULT",isDropDisabled:!1,direction:"vertical",ignoreContainerClipping:!1},f.childContextTypes=(0,o.default)({},m.droppableIdKey,u.default.string.isRequired),t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(895);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=o,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=b(n(170)),r=b(n(184)),i=b(n(185)),a=b(n(186)),s=b(n(187)),c=b(n(188)),l=n(82),d=b(n(86)),u=b(n(143)),h=b(n(545)),p=b(n(390)),m=b(n(237)),g=n(316),f=b(n(896)),_=n(191);function b(e){return e&&e.__esModule?e:{default:e}}var v={x:0,y:0},y=function(e){function t(e,n){(0,i.default)(this,t);var o=(0,s.default)(this,(t.__proto__||(0,r.default)(t)).call(this,e,n));o.closestScrollable=null,o.isWatchingScroll=!1,o.publishedDescriptor=null,o.getScrollOffset=function(){return o.closestScrollable?{x:o.closestScrollable.scrollLeft,y:o.closestScrollable.scrollTop}:v},o.memoizedUpdateScroll=(0,u.default)((function(e,t){if(o.publishedDescriptor){var n={x:e,y:t};o.context[_.dimensionMarshalKey].updateDroppableScroll(o.publishedDescriptor.id,n)}else console.error("Cannot update scroll on unpublished droppable")})),o.scheduleScrollUpdate=(0,h.default)((function(e){o.isWatchingScroll&&o.memoizedUpdateScroll(e.x,e.y)})),o.onClosestScroll=function(){o.scheduleScrollUpdate(o.getScrollOffset())},o.watchScroll=function(){o.props.targetRef?null!=o.closestScrollable&&(o.isWatchingScroll||(o.isWatchingScroll=!0,o.closestScrollable.addEventListener("scroll",o.onClosestScroll,{passive:!0}))):console.error("cannot watch droppable scroll if not in the dom")},o.unwatchScroll=function(){o.isWatchingScroll&&(o.isWatchingScroll=!1,o.closestScrollable?o.closestScrollable.removeEventListener("scroll",o.onClosestScroll):console.error("cannot unbind event listener if element is null"))},o.getMemoizedDescriptor=(0,u.default)((function(e,t){return{id:e,type:t}})),o.unpublish=function(){o.publishedDescriptor?(o.context[_.dimensionMarshalKey].unregisterDroppable(o.publishedDescriptor),o.publishedDescriptor=null):console.error("cannot unpublish descriptor when none is published")},o.publish=function(e){e!==o.publishedDescriptor&&(o.publishedDescriptor&&o.unpublish(),o.context[_.dimensionMarshalKey].registerDroppable(e,o.callbacks),o.publishedDescriptor=e)},o.getDimension=function(){var e=o.props,t=e.direction,n=e.ignoreContainerClipping,r=e.isDropDisabled,i=e.targetRef;if(!i)throw new Error("DimensionPublisher cannot calculate a dimension when not attached to the DOM");if(o.isWatchingScroll)throw new Error("Attempting to recapture Droppable dimension while already watching scroll on previous capture");var a=o.publishedDescriptor;if(!a)throw new Error("Cannot get dimension for unpublished droppable");o.closestScrollable=(0,f.default)(i);var s=o.getScrollOffset(),c=window.getComputedStyle(i),l={top:parseInt(c.marginTop,10),right:parseInt(c.marginRight,10),bottom:parseInt(c.marginBottom,10),left:parseInt(c.marginLeft,10)},d={top:parseInt(c.paddingTop,10),right:parseInt(c.paddingRight,10),bottom:parseInt(c.paddingBottom,10),left:parseInt(c.paddingLeft,10)},u=(0,m.default)(i.getBoundingClientRect()),h=n?null:o.closestScrollable?o.closestScrollable===i?null:(0,m.default)(o.closestScrollable.getBoundingClientRect()):null;return(0,g.getDroppableDimension)({descriptor:a,direction:t,client:u,frameClient:h,frameScroll:s,margin:l,padding:d,windowScroll:(0,p.default)(),isEnabled:!r})};var a={getDimension:o.getDimension,watchScroll:o.watchScroll,unwatchScroll:o.unwatchScroll};return o.callbacks=a,o}return(0,c.default)(t,e),(0,a.default)(t,[{key:"componentWillReceiveProps",value:function(e){if(e.targetRef){var t=e.droppableId,n=e.type,o=this.getMemoizedDescriptor(t,n);if(this.publish(o),this.props.isDropDisabled!==e.isDropDisabled)this.context[_.dimensionMarshalKey].updateDroppableIsEnabled(e.droppableId,!e.isDropDisabled)}else console.error("Cannot update droppable dimension publisher without a target ref")}},{key:"componentWillUnmount",value:function(){this.isWatchingScroll&&(console.warn("unmounting droppable while it was watching scroll"),this.unwatchScroll()),this.unpublish()}},{key:"render",value:function(){return this.props.children}}]),t}(l.Component);y.contextTypes=(0,o.default)({},_.dimensionMarshalKey,d.default.object.isRequired),t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){var t=window.getComputedStyle(e);return function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return"auto"===e||"scroll"===e}))}(t.overflow,t.overflowY,t.overflowX)};t.default=function e(t){return null==t?null:o(t)?t:e(t.parentElement)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=d(n(184)),r=d(n(185)),i=d(n(186)),a=d(n(187)),s=d(n(188)),c=n(82),l=d(c);function d(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return(0,r.default)(this,t),(0,a.default)(this,(t.__proto__||(0,o.default)(t)).apply(this,arguments))}return(0,s.default)(t,e),(0,i.default)(t,[{key:"render",value:function(){var e=this.props.placeholder,t=e.margin,n=t.top,o=t.left,r=t.bottom,i=t.right,a=e.withoutMargin,s={width:a.width,height:a.height,marginTop:n,marginLeft:o,marginBottom:r,marginRight:i,pointerEvents:"none",boxSizing:"border-box"};return l.default.createElement("div",{style:s})}}]),t}(c.PureComponent);t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(899);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=o,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeSelector=void 0;var o=u(n(143)),r=n(537),i=n(389),a=u(n(900)),s=n(191),c=n(133),l=u(n(532)),d=n(536);function u(e){return e&&e.__esModule?e:{default:e}}var h={isDropAnimating:!1,isDragging:!1,offset:{x:0,y:0},shouldAnimateDragMovement:!1,shouldAnimateDisplacement:!0,dimension:null,direction:null},p=t.makeSelector=function(){var e=(0,o.default)((function(e,t){return{x:e,y:t}})),t=(0,o.default)((function(e,t){return{isDropAnimating:!1,isDragging:!1,offset:e,shouldAnimateDisplacement:t,shouldAnimateDragMovement:!1,dimension:null,direction:null}})),n=(0,o.default)((function(e,t,n,o){return{isDragging:!0,isDropAnimating:!1,shouldAnimateDisplacement:!1,offset:e,shouldAnimateDragMovement:t,dimension:n,direction:o}})),r=function(n,o){var r=(0,l.default)(o.displaced)[n];if(!r)return null;if(!r.isVisible)return null;var i=o.isBeyondStartPosition?(0,c.negate)(o.amount):o.amount;return t(e(i.x,i.y),r.shouldAnimate)};return(0,i.createSelector)([function(t,o){if("DRAGGING"!==t.phase&&"DROP_ANIMATING"!==t.phase)return null;if("DRAGGING"===t.phase){if(!t.drag)return console.error("invalid drag state found in selector"),null;if(t.drag.initial.descriptor.id!==o.draggableId)return null;var r=t.drag.current.client.offset,i=t.dimension.draggable[o.draggableId],a=t.drag.impact.direction,s=t.drag.current.shouldAnimate;return n(e(r.x,r.y),s,i,a)}return t.drop&&t.drop.pending?t.drop.pending.result.draggableId!==o.draggableId?null:{isDragging:!1,isDropAnimating:!0,offset:t.drop.pending.newHomeOffset,dimension:t.dimension.draggable[o.draggableId],direction:null,shouldAnimateDragMovement:!1,shouldAnimateDisplacement:!1}:(console.error("cannot provide props for dropping item when there is invalid state"),null)},function(e,t){return"DRAGGING"!==e.phase&&"DROP_ANIMATING"!==e.phase?null:"DRAGGING"===e.phase?e.drag?e.drag.initial.descriptor.id===t.draggableId?null:r(t.draggableId,e.drag.impact.movement):(console.error("cannot correctly move item out of the way when there is invalid state"),null):e.drop&&e.drop.pending?e.drop.pending.result.draggableId===t.draggableId?null:r(t.draggableId,e.drop.pending.impact.movement):(console.error("cannot provide props for dropping item when there is invalid state"),null)}],(function(e,t){return e||(t||h)}))},m={lift:d.lift,move:d.move,moveForward:d.moveForward,moveBackward:d.moveBackward,crossAxisMoveForward:d.crossAxisMoveForward,crossAxisMoveBackward:d.crossAxisMoveBackward,moveByWindowScroll:d.moveByWindowScroll,drop:d.drop,dropAnimationFinished:d.dropAnimationFinished,cancel:d.cancel};t.default=(0,r.connect)((function(){var e=p();return function(t,n){return e(t,n)}}),m,null,{storeKey:s.storeKey})(a.default)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zIndexOptions=void 0;var o,r=S(n(170)),i=S(n(184)),a=S(n(185)),s=S(n(186)),c=S(n(187)),l=S(n(188)),d=n(82),u=S(d),h=S(n(86)),p=S(n(143)),m=S(n(542)),g=S(n(901)),f=S(n(903)),_=S(n(913)),b=S(n(390)),v=S(n(549)),y=S(n(546)),E=n(191);function S(e){return e&&e.__esModule?e:{default:e}}var w=t.zIndexOptions={dragging:5e3,dropAnimating:4500},C=function(e){function t(e,n){(0,a.default)(this,t);var o=(0,c.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e,n));o.state={ref:null},o.onMoveEnd=function(){o.props.isDropAnimating&&o.props.dropAnimationFinished()},o.onLift=function(e){o.throwIfCannotDrag();var t=e.client,n=e.isScrollAllowed,r=o.props,i=r.lift,a=r.draggableId,s=o.state.ref;if(!s)throw new Error("cannot lift at this time");i(a,{selection:t,center:(0,v.default)(s)},(0,b.default)(),n)},o.onMove=function(e){o.throwIfCannotDrag();var t=o.props,n=t.draggableId,r=t.dimension,i=t.move;r&&i(n,e,(0,b.default)())},o.onMoveForward=function(){o.throwIfCannotDrag(),o.props.moveForward(o.props.draggableId)},o.onMoveBackward=function(){o.throwIfCannotDrag(),o.props.moveBackward(o.props.draggableId)},o.onCrossAxisMoveForward=function(){o.throwIfCannotDrag(),o.props.crossAxisMoveForward(o.props.draggableId)},o.onCrossAxisMoveBackward=function(){o.throwIfCannotDrag(),o.props.crossAxisMoveBackward(o.props.draggableId)},o.onWindowScroll=function(){o.throwIfCannotDrag();var e=(0,b.default)();o.props.moveByWindowScroll(o.props.draggableId,e)},o.onDrop=function(){o.throwIfCannotDrag(),o.props.drop()},o.onCancel=function(){o.props.cancel()},o.setRef=function(e){null!==e&&e!==o.state.ref&&o.setState({ref:e})},o.getDraggableRef=function(){return o.state.ref},o.getDraggingStyle=(0,p.default)((function(e,t,n){var o=e.client.withoutMargin,r=o.width,i=o.height,a=o.top,s=o.left;return{position:"fixed",boxSizing:"border-box",zIndex:t?w.dropAnimating:w.dragging,width:r,height:i,top:a,left:s,margin:0,pointerEvents:"none",transition:"none",transform:n.transform?""+n.transform:null}})),o.getNotDraggingStyle=(0,p.default)((function(e,t){return{transform:e.transform,transition:t?null:"none"}})),o.getProvided=(0,p.default)((function(e,t,n,r,i,a){var s=e||t,c=s?((0,m.default)(r,"draggable dimension required for dragging"),o.getDraggingStyle(r,t,a)):o.getNotDraggingStyle(a,n);return{innerRef:o.setRef,draggableProps:{"data-react-beautiful-dnd-draggable":o.styleContext,style:c},dragHandleProps:i,placeholder:s?o.getPlaceholder():null}})),o.getSnapshot=(0,p.default)((function(e,t){return{isDragging:e||t}})),o.getSpeed=(0,p.default)((function(e,t,n){return n?"STANDARD":e&&t?"FAST":"INSTANT"}));var r={onLift:o.onLift,onMove:o.onMove,onDrop:o.onDrop,onCancel:o.onCancel,onMoveBackward:o.onMoveBackward,onMoveForward:o.onMoveForward,onCrossAxisMoveForward:o.onCrossAxisMoveForward,onCrossAxisMoveBackward:o.onCrossAxisMoveBackward,onWindowScroll:o.onWindowScroll};return o.callbacks=r,o.styleContext=n[E.styleContextKey],o}return(0,l.default)(t,e),(0,s.default)(t,[{key:"throwIfCannotDrag",value:function(){(0,m.default)(this.state.ref,"Draggable: cannot drag as no DOM node has been provided"),(0,m.default)(!this.props.isDragDisabled,"Draggable: cannot drag as dragging is not enabled")}},{key:"getPlaceholder",value:function(){var e=this.props.dimension;return(0,m.default)(e,"cannot get a drag placeholder when not dragging"),u.default.createElement(y.default,{placeholder:e.placeholder})}},{key:"render",value:function(){var e=this,t=this.props,n=t.draggableId,o=t.index,r=t.offset,i=t.isDragging,a=t.isDropAnimating,s=t.isDragDisabled,c=t.dimension,l=t.children,d=t.direction,h=t.shouldAnimateDragMovement,p=t.shouldAnimateDisplacement,m=t.disableInteractiveElementBlocking,b=this.context[E.droppableIdKey],v=this.getSpeed(i,h,a);return u.default.createElement(g.default,{draggableId:n,droppableId:b,index:o,targetRef:this.state.ref},u.default.createElement(f.default,{speed:v,destination:r,onMoveEnd:this.onMoveEnd},(function(t){return u.default.createElement(_.default,{draggableId:n,isDragging:i,direction:d,isEnabled:!s,callbacks:e.callbacks,getDraggableRef:e.getDraggableRef,canDragInteractiveElements:m},(function(n){return l(e.getProvided(i,a,p,c,n,t),e.getSnapshot(i,a))}))})))}}]),t}(d.Component);C.defaultProps={isDragDisabled:!1,disableInteractiveElementBlocking:!1},C.contextTypes=(o={},(0,r.default)(o,E.droppableIdKey,h.default.string.isRequired),(0,r.default)(o,E.styleContextKey,h.default.string.isRequired),o),t.default=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(902);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=o,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=f(n(170)),r=f(n(184)),i=f(n(185)),a=f(n(186)),s=f(n(187)),c=f(n(188)),l=n(82),d=f(n(86)),u=f(n(143)),h=f(n(390)),p=n(316),m=n(191),g=f(n(237));function f(e){return e&&e.__esModule?e:{default:e}}var _=function(e){function t(){var e,n,o,a;(0,i.default)(this,t);for(var c=arguments.length,l=Array(c),d=0;d<c;d++)l[d]=arguments[d];return n=o=(0,s.default)(this,(e=t.__proto__||(0,r.default)(t)).call.apply(e,[this].concat(l))),o.publishedDescriptor=null,o.getMemoizedDescriptor=(0,u.default)((function(e,t,n){return{id:e,droppableId:t,index:n}})),o.unpublish=function(){o.publishedDescriptor?(o.context[m.dimensionMarshalKey].unregisterDraggable(o.publishedDescriptor),o.publishedDescriptor=null):console.error("cannot unpublish descriptor when none is published")},o.publish=function(e){e!==o.publishedDescriptor&&(o.publishedDescriptor&&o.unpublish(),o.context[m.dimensionMarshalKey].registerDraggable(e,o.getDimension),o.publishedDescriptor=e)},o.getDimension=function(){var e=o.props.targetRef;if(!e)throw new Error("DraggableDimensionPublisher cannot calculate a dimension when not attached to the DOM");var t=o.publishedDescriptor;if(!t)throw new Error("Cannot get dimension for unpublished draggable");var n=window.getComputedStyle(e),r={top:parseInt(n.marginTop,10),right:parseInt(n.marginRight,10),bottom:parseInt(n.marginBottom,10),left:parseInt(n.marginLeft,10)},i=(0,g.default)(e.getBoundingClientRect());return(0,p.getDraggableDimension)({descriptor:t,client:i,margin:r,windowScroll:(0,h.default)()})},a=n,(0,s.default)(o,a)}return(0,c.default)(t,e),(0,a.default)(t,[{key:"componentWillReceiveProps",value:function(e){var t=e.draggableId,n=e.droppableId,o=e.index;if(e.targetRef){var r=this.getMemoizedDescriptor(t,n,o);this.publish(r)}else console.error("Updating draggable dimension handler without a targetRef")}},{key:"componentWillUnmount",value:function(){this.unpublish()}},{key:"render",value:function(){return this.props.children}}]),t}(l.Component);_.contextTypes=(0,o.default)({},m.dimensionMarshalKey,d.default.object.isRequired),t.default=_},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(904);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=o,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=h(n(184)),r=h(n(185)),i=h(n(186)),a=h(n(187)),s=h(n(188)),c=n(82),l=h(c),d=n(905),u=n(535);function h(e){return e&&e.__esModule?e:{default:e}}var p={x:0,y:0},m={transform:null},g=function(e){return e.x===p.x&&e.y===p.y},f=function(e){function t(){var e,n,i,s;(0,r.default)(this,t);for(var c=arguments.length,l=Array(c),h=0;h<c;h++)l[h]=arguments[h];return n=i=(0,a.default)(this,(e=t.__proto__||(0,o.default)(t)).call.apply(e,[this].concat(l))),i.onRest=function(){var e=i.props.onMoveEnd;e&&setTimeout((function(){return e()}))},i.getFinal=function(){var e=i.props.destination,t=i.props.speed;if("INSTANT"===t)return e;var n="FAST"===t?u.physics.fast:u.physics.standard;return{x:(0,d.spring)(e.x,n),y:(0,d.spring)(e.y,n)}},s=n,(0,a.default)(i,s)}return(0,s.default)(t,e),(0,i.default)(t,[{key:"render",value:function(){var e=this,t=this.getFinal(),n=g(t);return l.default.createElement(d.Motion,{defaultStyle:p,style:t,onRest:this.onRest},(function(t){return e.props.children(function(e,t,n){if(e)return m;var o={x:t,y:n};return g(o)?m:{transform:"translate("+o.x+"px, "+o.y+"px)"}}(n,t.x,t.y))}))}}]),t}(c.Component);f.defaultProps={destination:p},t.default=f},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var r=n(906);t.Motion=o(r);var i=n(908);t.StaggeredMotion=o(i);var a=n(909);t.TransitionMotion=o(a);var s=n(911);t.spring=o(s);var c=n(547);t.presets=o(c);var l=n(317);t.stripStyle=o(l);var d=n(912);t.reorderKeys=o(d)},function(e,t,n){"use strict";t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(n(391)),s=i(n(317)),c=i(n(392)),l=i(n(393)),d=i(n(394)),u=i(n(395)),h=i(n(82)),p=i(n(86)),m=function(e){function t(n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,n),this.wasAnimating=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyle=null,this.clearUnreadPropStyle=function(e){var t=!1,n=r.state,i=n.currentStyle,a=n.currentVelocity,s=n.lastIdealStyle,c=n.lastIdealVelocity;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var d=e[l];"number"==typeof d&&(t||(t=!0,i=o({},i),a=o({},a),s=o({},s),c=o({},c)),i[l]=d,a[l]=0,s[l]=d,c[l]=0)}t&&r.setState({currentStyle:i,currentVelocity:a,lastIdealStyle:s,lastIdealVelocity:c})},this.startAnimationIfNecessary=function(){r.animationID=d.default((function(e){var t=r.props.style;if(u.default(r.state.currentStyle,t,r.state.currentVelocity))return r.wasAnimating&&r.props.onRest&&r.props.onRest(),r.animationID=null,r.wasAnimating=!1,void(r.accumulatedTime=0);r.wasAnimating=!0;var n=e||l.default(),o=n-r.prevTime;if(r.prevTime=n,r.accumulatedTime=r.accumulatedTime+o,r.accumulatedTime>1e3/60*10&&(r.accumulatedTime=0),0===r.accumulatedTime)return r.animationID=null,void r.startAnimationIfNecessary();var i=(r.accumulatedTime-Math.floor(r.accumulatedTime/(1e3/60))*(1e3/60))/(1e3/60),a=Math.floor(r.accumulatedTime/(1e3/60)),s={},d={},h={},p={};for(var m in t)if(Object.prototype.hasOwnProperty.call(t,m)){var g=t[m];if("number"==typeof g)h[m]=g,p[m]=0,s[m]=g,d[m]=0;else{for(var f=r.state.lastIdealStyle[m],_=r.state.lastIdealVelocity[m],b=0;b<a;b++){var v=c.default(1e3/60/1e3,f,_,g.val,g.stiffness,g.damping,g.precision);f=v[0],_=v[1]}var y=c.default(1e3/60/1e3,f,_,g.val,g.stiffness,g.damping,g.precision),E=y[0],S=y[1];h[m]=f+(E-f)*i,p[m]=_+(S-_)*i,s[m]=f,d[m]=_}}r.animationID=null,r.accumulatedTime-=a*(1e3/60),r.setState({currentStyle:h,currentVelocity:p,lastIdealStyle:s,lastIdealVelocity:d}),r.unreadPropStyle=null,r.startAnimationIfNecessary()}))},this.state=this.defaultState()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"propTypes",value:{defaultStyle:p.default.objectOf(p.default.number),style:p.default.objectOf(p.default.oneOfType([p.default.number,p.default.object])).isRequired,children:p.default.func.isRequired,onRest:p.default.func},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyle,n=e.style,o=t||s.default(n),r=a.default(o);return{currentStyle:o,currentVelocity:r,lastIdealStyle:o,lastIdealVelocity:r}},t.prototype.componentDidMount=function(){this.prevTime=l.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyle&&this.clearUnreadPropStyle(this.unreadPropStyle),this.unreadPropStyle=e.style,null==this.animationID&&(this.prevTime=l.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(d.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyle);return e&&h.default.Children.only(e)},t}(h.default.Component);t.default=m,e.exports=t.default},function(e,t,n){(function(t){(function(){var n,o,r,i,a,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},o=t.hrtime,i=(n=function(){var e;return 1e9*(e=o())[0]+e[1]})(),s=1e9*t.uptime(),a=i-s):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)}).call(this,n(227))},function(e,t,n){"use strict";t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(n(391)),s=i(n(317)),c=i(n(392)),l=i(n(393)),d=i(n(394)),u=i(n(395)),h=i(n(82)),p=i(n(86));var m=function(e){function t(n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,n),this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=r.state,n=t.currentStyles,i=t.currentVelocities,a=t.lastIdealStyles,s=t.lastIdealVelocities,c=!1,l=0;l<e.length;l++){var d=e[l],u=!1;for(var h in d)if(Object.prototype.hasOwnProperty.call(d,h)){var p=d[h];"number"==typeof p&&(u||(u=!0,c=!0,n[l]=o({},n[l]),i[l]=o({},i[l]),a[l]=o({},a[l]),s[l]=o({},s[l])),n[l][h]=p,i[l][h]=0,a[l][h]=p,s[l][h]=0)}}c&&r.setState({currentStyles:n,currentVelocities:i,lastIdealStyles:a,lastIdealVelocities:s})},this.startAnimationIfNecessary=function(){r.animationID=d.default((function(e){var t=r.props.styles(r.state.lastIdealStyles);if(function(e,t,n){for(var o=0;o<e.length;o++)if(!u.default(e[o],t[o],n[o]))return!1;return!0}(r.state.currentStyles,t,r.state.currentVelocities))return r.animationID=null,void(r.accumulatedTime=0);var n=e||l.default(),o=n-r.prevTime;if(r.prevTime=n,r.accumulatedTime=r.accumulatedTime+o,r.accumulatedTime>1e3/60*10&&(r.accumulatedTime=0),0===r.accumulatedTime)return r.animationID=null,void r.startAnimationIfNecessary();for(var i=(r.accumulatedTime-Math.floor(r.accumulatedTime/(1e3/60))*(1e3/60))/(1e3/60),a=Math.floor(r.accumulatedTime/(1e3/60)),s=[],d=[],h=[],p=[],m=0;m<t.length;m++){var g=t[m],f={},_={},b={},v={};for(var y in g)if(Object.prototype.hasOwnProperty.call(g,y)){var E=g[y];if("number"==typeof E)f[y]=E,_[y]=0,b[y]=E,v[y]=0;else{for(var S=r.state.lastIdealStyles[m][y],w=r.state.lastIdealVelocities[m][y],C=0;C<a;C++){var T=c.default(1e3/60/1e3,S,w,E.val,E.stiffness,E.damping,E.precision);S=T[0],w=T[1]}var x=c.default(1e3/60/1e3,S,w,E.val,E.stiffness,E.damping,E.precision),O=x[0],k=x[1];f[y]=S+(O-S)*i,_[y]=w+(k-w)*i,b[y]=S,v[y]=w}}h[m]=f,p[m]=_,s[m]=b,d[m]=v}r.animationID=null,r.accumulatedTime-=a*(1e3/60),r.setState({currentStyles:h,currentVelocities:p,lastIdealStyles:s,lastIdealVelocities:d}),r.unreadPropStyles=null,r.startAnimationIfNecessary()}))},this.state=this.defaultState()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"propTypes",value:{defaultStyles:p.default.arrayOf(p.default.objectOf(p.default.number)),styles:p.default.func.isRequired,children:p.default.func.isRequired},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,n=e.styles,o=t||n().map(s.default),r=o.map((function(e){return a.default(e)}));return{currentStyles:o,currentVelocities:r,lastIdealStyles:o,lastIdealVelocities:r}},t.prototype.componentDidMount=function(){this.prevTime=l.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles),this.unreadPropStyles=e.styles(this.state.lastIdealStyles),null==this.animationID&&(this.prevTime=l.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(d.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyles);return e&&h.default.Children.only(e)},t}(h.default.Component);t.default=m,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(n(391)),s=i(n(317)),c=i(n(392)),l=i(n(910)),d=i(n(393)),u=i(n(394)),h=i(n(395)),p=i(n(82)),m=i(n(86));function g(e,t,n){var o=t;return null==o?e.map((function(e,t){return{key:e.key,data:e.data,style:n[t]}})):e.map((function(e,t){for(var r=0;r<o.length;r++)if(o[r].key===e.key)return{key:o[r].key,data:o[r].data,style:n[t]};return{key:e.key,data:e.data,style:n[t]}}))}function f(e,t,n,o,r,i,s,c,d){for(var u=l.default(o,r,(function(e,o){var r=t(o);return null==r||h.default(i[e],r,s[e])?(n({key:o.key,data:o.data}),null):{key:o.key,data:o.data,style:r}})),p=[],m=[],g=[],f=[],_=0;_<u.length;_++){for(var b=u[_],v=null,y=0;y<o.length;y++)if(o[y].key===b.key){v=y;break}if(null==v){var E=e(b);p[_]=E,g[_]=E;var S=a.default(b.style);m[_]=S,f[_]=S}else p[_]=i[v],g[_]=c[v],m[_]=s[v],f[_]=d[v]}return[u,p,m,g,f]}var _=function(e){function t(n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,n),this.unmounting=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=f(r.props.willEnter,r.props.willLeave,r.props.didLeave,r.state.mergedPropsStyles,e,r.state.currentStyles,r.state.currentVelocities,r.state.lastIdealStyles,r.state.lastIdealVelocities),n=t[0],i=t[1],a=t[2],s=t[3],c=t[4],l=0;l<e.length;l++){var d=e[l].style,u=!1;for(var h in d)if(Object.prototype.hasOwnProperty.call(d,h)){var p=d[h];"number"==typeof p&&(u||(u=!0,i[l]=o({},i[l]),a[l]=o({},a[l]),s[l]=o({},s[l]),c[l]=o({},c[l]),n[l]={key:n[l].key,data:n[l].data,style:o({},n[l].style)}),i[l][h]=p,a[l][h]=0,s[l][h]=p,c[l][h]=0,n[l].style[h]=p)}}r.setState({currentStyles:i,currentVelocities:a,mergedPropsStyles:n,lastIdealStyles:s,lastIdealVelocities:c})},this.startAnimationIfNecessary=function(){r.unmounting||(r.animationID=u.default((function(e){if(!r.unmounting){var t=r.props.styles,n="function"==typeof t?t(g(r.state.mergedPropsStyles,r.unreadPropStyles,r.state.lastIdealStyles)):t;if(function(e,t,n,o){if(o.length!==t.length)return!1;for(var r=0;r<o.length;r++)if(o[r].key!==t[r].key)return!1;for(r=0;r<o.length;r++)if(!h.default(e[r],t[r].style,n[r]))return!1;return!0}(r.state.currentStyles,n,r.state.currentVelocities,r.state.mergedPropsStyles))return r.animationID=null,void(r.accumulatedTime=0);var o=e||d.default(),i=o-r.prevTime;if(r.prevTime=o,r.accumulatedTime=r.accumulatedTime+i,r.accumulatedTime>1e3/60*10&&(r.accumulatedTime=0),0===r.accumulatedTime)return r.animationID=null,void r.startAnimationIfNecessary();for(var a=(r.accumulatedTime-Math.floor(r.accumulatedTime/(1e3/60))*(1e3/60))/(1e3/60),s=Math.floor(r.accumulatedTime/(1e3/60)),l=f(r.props.willEnter,r.props.willLeave,r.props.didLeave,r.state.mergedPropsStyles,n,r.state.currentStyles,r.state.currentVelocities,r.state.lastIdealStyles,r.state.lastIdealVelocities),u=l[0],p=l[1],m=l[2],_=l[3],b=l[4],v=0;v<u.length;v++){var y=u[v].style,E={},S={},w={},C={};for(var T in y)if(Object.prototype.hasOwnProperty.call(y,T)){var x=y[T];if("number"==typeof x)E[T]=x,S[T]=0,w[T]=x,C[T]=0;else{for(var O=_[v][T],k=b[v][T],R=0;R<s;R++){var D=c.default(1e3/60/1e3,O,k,x.val,x.stiffness,x.damping,x.precision);O=D[0],k=D[1]}var I=c.default(1e3/60/1e3,O,k,x.val,x.stiffness,x.damping,x.precision),A=I[0],N=I[1];E[T]=O+(A-O)*a,S[T]=k+(N-k)*a,w[T]=O,C[T]=k}}_[v]=w,b[v]=C,p[v]=E,m[v]=S}r.animationID=null,r.accumulatedTime-=s*(1e3/60),r.setState({currentStyles:p,currentVelocities:m,lastIdealStyles:_,lastIdealVelocities:b,mergedPropsStyles:u}),r.unreadPropStyles=null,r.startAnimationIfNecessary()}})))},this.state=this.defaultState()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"propTypes",value:{defaultStyles:m.default.arrayOf(m.default.shape({key:m.default.string.isRequired,data:m.default.any,style:m.default.objectOf(m.default.number).isRequired})),styles:m.default.oneOfType([m.default.func,m.default.arrayOf(m.default.shape({key:m.default.string.isRequired,data:m.default.any,style:m.default.objectOf(m.default.oneOfType([m.default.number,m.default.object])).isRequired}))]).isRequired,children:m.default.func.isRequired,willEnter:m.default.func,willLeave:m.default.func,didLeave:m.default.func},enumerable:!0},{key:"defaultProps",value:{willEnter:function(e){return s.default(e.style)},willLeave:function(){return null},didLeave:function(){}},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,n=e.styles,o=e.willEnter,r=e.willLeave,i=e.didLeave,c="function"==typeof n?n(t):n,l=void 0;l=null==t?c:t.map((function(e){for(var t=0;t<c.length;t++)if(c[t].key===e.key)return c[t];return e}));var d=null==t?c.map((function(e){return s.default(e.style)})):t.map((function(e){return s.default(e.style)})),u=null==t?c.map((function(e){return a.default(e.style)})):t.map((function(e){return a.default(e.style)})),h=f(o,r,i,l,c,d,u,d,u),p=h[0];return{currentStyles:h[1],currentVelocities:h[2],lastIdealStyles:h[3],lastIdealVelocities:h[4],mergedPropsStyles:p}},t.prototype.componentDidMount=function(){this.prevTime=d.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles);var t=e.styles;this.unreadPropStyles="function"==typeof t?t(g(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles)):t,null==this.animationID&&(this.prevTime=d.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){this.unmounting=!0,null!=this.animationID&&(u.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=g(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles),t=this.props.children(e);return t&&p.default.Children.only(t)},t}(p.default.Component);t.default=_,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t,n){for(var o={},r=0;r<e.length;r++)o[e[r].key]=r;var i={};for(r=0;r<t.length;r++)i[t[r].key]=r;var a=[];for(r=0;r<t.length;r++)a[r]=t[r];for(r=0;r<e.length;r++)if(!Object.prototype.hasOwnProperty.call(i,e[r].key)){var s=n(r,e[r]);null!=s&&a.push(s)}return a.sort((function(e,n){var r=i[e.key],a=i[n.key],s=o[e.key],c=o[n.key];if(null!=r&&null!=a)return i[e.key]-i[n.key];if(null!=s&&null!=c)return o[e.key]-o[n.key];if(null!=r){for(var l=0;l<t.length;l++){var d=t[l].key;if(Object.prototype.hasOwnProperty.call(o,d)){if(r<i[d]&&c>o[d])return-1;if(r>i[d]&&c<o[d])return 1}}return 1}for(l=0;l<t.length;l++){d=t[l].key;if(Object.prototype.hasOwnProperty.call(o,d)){if(a<i[d]&&s>o[d])return 1;if(a>i[d]&&s<o[d])return-1}}return-1}))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};t.default=function(e,t){return o({},s,t,{val:e})};var r,i=n(547),a=(r=i)&&r.__esModule?r:{default:r},s=o({},a.default.noWobble,{precision:.01});e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(){0};e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(914);Object.defineProperty(t,"default",{enumerable:!0,get:function(){return(e=o,e&&e.__esModule?e:{default:e}).default;var e}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=b(n(170)),i=b(n(184)),a=b(n(185)),s=b(n(186)),c=b(n(187)),l=b(n(188)),d=n(82),u=b(n(86)),h=b(n(143)),p=n(191),m=b(n(915)),g=b(n(916)),f=b(n(918)),_=b(n(919));function b(e){return e&&e.__esModule?e:{default:e}}var v=function(){return!1},y=function(e){function t(e,n){(0,a.default)(this,t);var o=(0,c.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e,n));o.onKeyDown=function(e){o.mouseSensor.isCapturing()||o.keyboardSensor.onKeyDown(e,o.props)},o.onMouseDown=function(e){o.keyboardSensor.isCapturing()||o.mouseSensor.isCapturing()||o.mouseSensor.onMouseDown(e)},o.onTouchStart=function(e){o.mouseSensor.isCapturing()||o.keyboardSensor.isCapturing()?console.error("mouse or keyboard already listening when attempting to touch drag"):o.touchSensor.onTouchStart(e)},o.onTouchMove=function(e){o.touchSensor.onTouchMove(e)},o.onClick=function(e){o.mouseSensor.onClick(e),o.touchSensor.onClick(e)},o.canStartCapturing=function(e){return!o.isAnySensorCapturing()&&(!!o.canLift(o.props.draggableId)&&(0,m.default)(e,o.props))},o.isAnySensorDragging=function(){return o.sensors.some((function(e){return e.isDragging()}))},o.isAnySensorCapturing=function(){return o.sensors.some((function(e){return e.isCapturing()}))},o.getProvided=(0,h.default)((function(e,t){return e?{onMouseDown:o.onMouseDown,onKeyDown:o.onKeyDown,onTouchStart:o.onTouchStart,onTouchMove:o.onTouchMove,onClick:o.onClick,tabIndex:0,"aria-grabbed":t,"data-react-beautiful-dnd-drag-handle":o.styleContext,draggable:!1,onDragStart:v,onDrop:v}:null}));var r={callbacks:o.props.callbacks,getDraggableRef:o.props.getDraggableRef,canStartCapturing:o.canStartCapturing};return o.mouseSensor=(0,g.default)(r),o.keyboardSensor=(0,f.default)(r),o.touchSensor=(0,_.default)(r),o.sensors=[o.mouseSensor,o.keyboardSensor,o.touchSensor],o.styleContext=n[p.styleContextKey],o.canLift=n[p.canLiftContextKey],o}return(0,l.default)(t,e),(0,s.default)(t,[{key:"componentWillUnmount",value:function(){var e=this;this.sensors.forEach((function(t){var n=t.isCapturing(),o=t.isDragging();n&&t.kill(),o&&e.props.callbacks.onCancel()}))}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.isAnySensorCapturing()&&(this.props.isDragging&&!e.isDragging?this.sensors.forEach((function(e){e.isCapturing()&&e.kill()})):e.isEnabled||this.sensors.forEach((function(e){if(e.isCapturing()){var n=e.isDragging();e.kill(),n&&t.props.callbacks.onCancel()}})))}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled;return t(this.getProvided(n,this.isAnySensorDragging()))}}]),t}(d.Component);y.contextTypes=(o={},(0,r.default)(o,p.styleContextKey,u.default.string.isRequired),(0,r.default)(o,p.canLiftContextKey,u.default.func.isRequired),o),t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=t.interactiveTagNames=["input","button","textarea","select","option","optgroup","video","audio"];t.default=function(e,t){if(t.canDragInteractiveElements)return!0;var n=e.target,r=e.currentTarget;return!(n instanceof HTMLElement&&r instanceof HTMLElement)||!(-1!==o.indexOf(n.tagName.toLowerCase()))&&!function e(t,n){if(null==n)return!1;var o=n.getAttribute("contenteditable");return"true"===o||""===o||n!==t&&e(t,n.parentElement)}(r,n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=u(n(189)),r=u(n(208)),i=u(n(318)),a=u(n(396)),s=u(n(917)),c=u(n(397)),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(398)),d=u(n(548));function u(e){return e&&e.__esModule?e:{default:e}}var h=function(){};t.default=function(e){var t=e.callbacks,n=e.getDraggableRef,u=e.canStartCapturing,p={isDragging:!1,pending:null,preventClick:!1},m=function(e){var t=(0,r.default)({},p,e);p=t},g=function(){return p.isDragging},f=function(){return Boolean(p.pending||p.isDragging)},_=(0,a.default)(t,g),b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;T(),m({isDragging:!1,pending:null}),e()},v=function(){m({preventClick:!1}),b()},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;p.pending?v():b(e)},E=function(){y(t.onCancel)},S={mousemove:function(e){var n=e.button,o=e.clientX,r=e.clientY;if(0===n){var i={x:o,y:r};p.isDragging?_.move(i):p.pending?(0,s.default)(p.pending,i)&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h;m({pending:null,isDragging:!0,preventClick:!0}),e()}((function(){return t.onLift({client:i,isScrollAllowed:!0})})):console.error("invalid state")}},mouseup:function(){p.pending?v():b(t.onDrop)},mousedown:function(){b(t.onCancel)},keydown:function(e){if(e.keyCode===l.escape)return(0,i.default)(e),void E();(0,d.default)(e)},resize:E,scroll:function(){p.pending?v():_.windowScrollMove()},webkitmouseforcechanged:function(e){if(null!=e.webkitForce&&null!=MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN){var t=MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN;e.webkitForce>=t&&E()}else console.error("handling a mouse force changed event when it is not supported")}},w=(0,o.default)(S),C=function(){var e=(0,c.default)(n());w.forEach((function(t){"scroll"!==t?e.addEventListener(t,S[t]):e.addEventListener(t,S.scroll,{passive:!0})}))},T=function(){var e=(0,c.default)(n());w.forEach((function(t){return e.removeEventListener(t,S[t])}))};return{onMouseDown:function(e){if(u(e)){if(f())return console.error("should not be able to perform a mouse down while a drag or pending drag is occurring"),void E();var t=e.button,n=e.clientX,o=e.clientY;if(0===t)(0,i.default)(e),function(e){m({pending:e,isDragging:!1}),C()}({x:n,y:o})}},onClick:function(e){p.preventClick&&(m({preventClick:!1}),(0,i.default)(e))},kill:y,isCapturing:f,isDragging:g}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=t.sloppyClickThreshold=5;t.default=function(e,t){return Math.abs(t.x-e.x)>=o||Math.abs(t.y-e.y)>=o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=d(n(189)),r=d(n(318)),i=d(n(396)),a=d(n(548)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(398)),c=d(n(397)),l=d(n(549));function d(e){return e&&e.__esModule?e:{default:e}}var u=function(){};t.default=function(e){var t=e.callbacks,n=e.getDraggableRef,d=e.canStartCapturing,h={isDragging:!1},p=function(e){h=e},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;E(),p({isDragging:!1}),e()},g=function(){m(t.onCancel)},f=function(){return h.isDragging},_=(0,i.default)(t,f),b={mousedown:g,resize:g,scroll:g},v=(0,o.default)(b),y=function(){var e=(0,c.default)(n());v.forEach((function(t){e.addEventListener(t,b[t])}))},E=function(){var e=(0,c.default)(n());v.forEach((function(t){e.removeEventListener(t,b[t])}))};return{onKeyDown:function(e,o){var i=o.direction;if(f()){if(e.keyCode===s.escape)return(0,r.default)(e),void g();if(e.keyCode===s.space)return(0,r.default)(e),void m(t.onDrop);if(!i)return console.error("Cannot handle keyboard movement event if direction is not provided"),(0,r.default)(e),void g();var c=function(e){"vertical"!==i?e.horizontal():e.vertical()};if(e.keyCode===s.arrowDown)return(0,r.default)(e),void c({vertical:_.moveForward,horizontal:_.crossAxisMoveForward});if(e.keyCode===s.arrowUp)return(0,r.default)(e),void c({vertical:_.moveBackward,horizontal:_.crossAxisMoveBackward});if(e.keyCode===s.arrowRight)return(0,r.default)(e),void c({vertical:_.crossAxisMoveForward,horizontal:_.moveForward});e.keyCode===s.arrowLeft&&((0,r.default)(e),c({vertical:_.crossAxisMoveBackward,horizontal:_.moveBackward})),(0,a.default)(e)}else{if(!d(e))return;if(e.keyCode!==s.space)return;(0,r.default)(e);var h=n();if(!h)return void console.error("cannot start a keyboard drag without a draggable ref");var b=(0,l.default)(h);!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;p({isDragging:!0}),y(),e()}((function(){return t.onLift({client:b,isScrollAllowed:!1})}))}},kill:function(){return m()},isDragging:f,isCapturing:f}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forcePressThreshold=t.timeForLongPress=void 0;var o=c(n(189)),r=c(n(208)),i=c(n(318)),a=c(n(396)),s=c(n(397));function c(e){return e&&e.__esModule?e:{default:e}}var l=t.timeForLongPress=150,d=t.forcePressThreshold=.15,u=function(){},h={isDragging:!1,pending:null,hasMoved:!1,preventClick:!1,longPressTimerId:null};t.default=function(e){var t=e.callbacks,n=e.getDraggableRef,c=e.canStartCapturing,p=h,m=function(e){p=(0,r.default)({},p,e)},g=function(){return p.isDragging},f=function(){return Boolean(p.pending||p.isDragging||p.longPressTimerId)},_=(0,a.default)(t,g),b=function(){var e=p.pending;if(!e)return console.error("cannot start a touch drag without a pending position"),void E();m({isDragging:!0,hasMoved:!1,pending:null,longPressTimerId:null}),t.onLift({client:e,isScrollAllowed:!1})},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;x(),m((0,r.default)({},h,{preventClick:!0})),e()},y=function(){clearTimeout(p.longPressTimerId),x(),m(h)},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;p.pending?y():v(e)},S=function(){E(t.onCancel)},w={touchmove:function(e){if(p.pending)y();else{p.hasMoved||m({hasMoved:!0}),(0,i.default)(e);var t=e.touches[0],n={x:t.clientX,y:t.clientY};_.move(n)}},touchend:function(e){p.pending?y():(v(t.onDrop),(0,i.default)(e))},touchcancel:S,touchstart:function(){g()&&(console.error("touch start fired while already dragging"),S())},orientationchange:S,resize:S,scroll:S,contextmenu:i.default,keydown:S,touchforcechange:function(e){p.hasMoved||e.touches[0].force>=d&&S()}},C=(0,o.default)(w),T=function(){var e=(0,s.default)(n());C.forEach((function(t){var n=w[t];"touchmove"!==t?e.addEventListener(t,n):e.addEventListener(t,n,{passive:!1})}))},x=function(){var e=(0,s.default)(n());C.forEach((function(t){return e.removeEventListener(t,w[t])}))};return{onTouchStart:function(e){if(c(e)){if(f())return console.error("should not be able to perform a touch start while a drag or pending drag is occurring"),void S();e.stopPropagation(),function(e){var t=e.touches[0],n={x:t.clientX,y:t.clientY},o=setTimeout(b,l);m({longPressTimerId:o,pending:n,isDragging:!1,hasMoved:!1}),T()}(e)}},onTouchMove:function(){p.pending&&y()},onClick:function(e){p.preventClick&&((0,i.default)(e),m(h))},kill:E,isCapturing:f,isDragging:g}}},function(e,t,n){"use strict";const o=n(921),r=e=>o({exact:!0}).test(e);r.v4=e=>o.v4({exact:!0}).test(e),r.v6=e=>o.v6({exact:!0}).test(e),r.version=e=>r(e)?r.v4(e)?4:6:void 0,e.exports=r},function(e,t,n){"use strict";const o=e=>e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=[a-fA-F\\d:])|(?<=[a-fA-F\\d:])(?=\\s|$))":"",r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",i="[a-fA-F\\d]{1,4}",a=`\n(?:\n(?:${i}:){7}(?:${i}|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:${i}:){6}(?:${r}|:${i}|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:${i}:){5}(?::${r}|(?::${i}){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:${i}:){4}(?:(?::${i}){0,1}:${r}|(?::${i}){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:${i}:){3}(?:(?::${i}){0,2}:${r}|(?::${i}){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:${i}:){2}(?:(?::${i}){0,3}:${r}|(?::${i}){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:${i}:){1}(?:(?::${i}){0,4}:${r}|(?::${i}){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::${i}){0,5}:${r}|(?::${i}){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n`.replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),s=new RegExp(`(?:^${r}$)|(?:^${a}$)`),c=new RegExp(`^${r}$`),l=new RegExp(`^${a}$`),d=e=>e&&e.exact?s:new RegExp(`(?:${o(e)}${r}${o(e)})|(?:${o(e)}${a}${o(e)})`,"g");d.v4=e=>e&&e.exact?c:new RegExp(`${o(e)}${r}${o(e)}`,"g"),d.v6=e=>e&&e.exact?l:new RegExp(`${o(e)}${a}${o(e)}`,"g"),e.exports=d},function(e,t,n){"use strict";var o=/["'&<>]/;e.exports=function(e){var t,n=""+e,r=o.exec(n);if(!r)return n;var i="",a=0,s=0;for(a=r.index;a<n.length;a++){switch(n.charCodeAt(a)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}s!==a&&(i+=n.substring(s,a)),s=a+1,i+=t}return s!==a?i+n.substring(s,a):i}},function(e,t,n){e.exports=n(403)},function(e,t,n){"use strict";t.__esModule=!0;var o="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},r={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(e,t){return"url"===t?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function i(e){e=e||{},this.defaultProtocol=e.hasOwnProperty("defaultProtocol")?e.defaultProtocol:r.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:r.events,this.format=e.hasOwnProperty("format")?e.format:r.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:r.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:r.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:r.tagName,this.target=e.hasOwnProperty("target")?e.target:r.target,this.validate=e.hasOwnProperty("validate")?e.validate:r.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||r.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||r.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:r.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function a(e){return e}t.defaults=r,t.Options=i,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},i.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var i=void 0,a=this[e];if(!a)return a;switch(void 0===a?"undefined":o(a)){case"function":return a(t,n.type);case"object":return"function"==typeof(i=a.hasOwnProperty(n.type)?a[n.type]:r[e])?i(t,n.type):i}return a},getObject:function(e,t,n){var o=this[e];return"function"==typeof o?o(t,n.type):o}}},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var o=n(554),r=n(404),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r);var a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),s="0123456789".split(""),c="0123456789abcdefghijklmnopqrstuvwxyz".split(""),l=[" ","\f","\r","\t","\v"," "," ",""],d=[],u=function(e){return new o.CharacterState(e)},h=u(),p=u(r.NUM),m=u(r.DOMAIN),g=u(),f=u(r.WS);h.on("@",u(r.AT)).on(".",u(r.DOT)).on("+",u(r.PLUS)).on("#",u(r.POUND)).on("?",u(r.QUERY)).on("/",u(r.SLASH)).on("_",u(r.UNDERSCORE)).on(":",u(r.COLON)).on("{",u(r.OPENBRACE)).on("[",u(r.OPENBRACKET)).on("<",u(r.OPENANGLEBRACKET)).on("(",u(r.OPENPAREN)).on("}",u(r.CLOSEBRACE)).on("]",u(r.CLOSEBRACKET)).on(">",u(r.CLOSEANGLEBRACKET)).on(")",u(r.CLOSEPAREN)).on("&",u(r.AMPERSAND)).on([",",";","!",'"',"'"],u(r.PUNCTUATION)),h.on("\n",u(r.NL)).on(l,f),f.on(l,f);for(var _=0;_<a.length;_++){var b=(0,o.stateify)(a[_],h,r.TLD,r.DOMAIN);d.push.apply(d,b)}var v=(0,o.stateify)("file",h,r.DOMAIN,r.DOMAIN),y=(0,o.stateify)("ftp",h,r.DOMAIN,r.DOMAIN),E=(0,o.stateify)("http",h,r.DOMAIN,r.DOMAIN),S=(0,o.stateify)("mailto",h,r.DOMAIN,r.DOMAIN);d.push.apply(d,v),d.push.apply(d,y),d.push.apply(d,E),d.push.apply(d,S);var w=v.pop(),C=y.pop(),T=E.pop(),x=S.pop(),O=u(r.DOMAIN),k=u(r.PROTOCOL),R=u(r.MAILTO);C.on("s",O).on(":",k),T.on("s",O).on(":",k),d.push(O),w.on(":",k),O.on(":",k),x.on(":",R);var D=(0,o.stateify)("localhost",h,r.LOCALHOST,r.DOMAIN);d.push.apply(d,D),h.on(s,p),p.on("-",g).on(s,p).on(c,m),m.on("-",g).on(c,m);for(var I=0;I<d.length;I++)d[I].on("-",g).on(c,m);g.on("-",g).on(s,m).on(c,m),h.defaultTransition=u(r.SYM);var A=h;t.State=o.CharacterState,t.TOKENS=i,t.run=function(e){for(var t=e.replace(/[A-Z]/g,(function(e){return e.toLowerCase()})),n=e.length,o=[],r=0;r<n;){for(var i=h,a=null,s=0,c=null,l=-1;r<n&&(a=i.next(t[r]));)(i=a).accepts()?(l=0,c=i):l>=0&&l++,s++,r++;if(!(l<0)){r-=l,s-=l;var d=c.emit();o.push(new d(e.substr(r-s,s)))}}return o},t.start=A},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var o=n(554),r=n(927),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(r),a=n(404);var s=function(e){return new o.TokenState(e)},c=s(),l=s(),d=s(),u=s(),h=s(),p=s(),m=s(),g=s(r.URL),f=s(),_=s(r.URL),b=s(r.URL),v=s(),y=s(),E=s(),S=s(),w=s(),C=s(r.URL),T=s(r.URL),x=s(r.URL),O=s(r.URL),k=s(),R=s(),D=s(),I=s(),A=s(),N=s(),F=s(r.EMAIL),M=s(),P=s(r.EMAIL),L=s(r.MAILTOEMAIL),j=s(),U=s(),B=s(),q=s(),G=s(r.NL);c.on(a.NL,G).on(a.PROTOCOL,l).on(a.MAILTO,d).on(a.SLASH,u),l.on(a.SLASH,u),u.on(a.SLASH,h),c.on(a.TLD,p).on(a.DOMAIN,p).on(a.LOCALHOST,g).on(a.NUM,p),h.on(a.TLD,b).on(a.DOMAIN,b).on(a.NUM,b).on(a.LOCALHOST,b),p.on(a.DOT,m),A.on(a.DOT,N),m.on(a.TLD,g).on(a.DOMAIN,p).on(a.NUM,p).on(a.LOCALHOST,p),N.on(a.TLD,F).on(a.DOMAIN,A).on(a.NUM,A).on(a.LOCALHOST,A),g.on(a.DOT,m),F.on(a.DOT,N),g.on(a.COLON,f).on(a.SLASH,b),f.on(a.NUM,_),_.on(a.SLASH,b),F.on(a.COLON,M),M.on(a.NUM,P);var V=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],H=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];b.on(a.OPENBRACE,y).on(a.OPENBRACKET,E).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,w),v.on(a.OPENBRACE,y).on(a.OPENBRACKET,E).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,w),y.on(a.CLOSEBRACE,b),E.on(a.CLOSEBRACKET,b),S.on(a.CLOSEANGLEBRACKET,b),w.on(a.CLOSEPAREN,b),C.on(a.CLOSEBRACE,b),T.on(a.CLOSEBRACKET,b),x.on(a.CLOSEANGLEBRACKET,b),O.on(a.CLOSEPAREN,b),k.on(a.CLOSEBRACE,b),R.on(a.CLOSEBRACKET,b),D.on(a.CLOSEANGLEBRACKET,b),I.on(a.CLOSEPAREN,b),y.on(V,C),E.on(V,T),S.on(V,x),w.on(V,O),y.on(H,k),E.on(H,R),S.on(H,D),w.on(H,I),C.on(V,C),T.on(V,T),x.on(V,x),O.on(V,O),C.on(H,C),T.on(H,T),x.on(H,x),O.on(H,O),k.on(V,C),R.on(V,T),D.on(V,x),I.on(V,O),k.on(H,k),R.on(H,R),D.on(H,D),I.on(H,I),b.on(V,b),v.on(V,b),b.on(H,v),v.on(H,v),d.on(a.TLD,L).on(a.DOMAIN,L).on(a.NUM,L).on(a.LOCALHOST,L),L.on(V,L).on(H,j),j.on(V,L).on(H,j);var z=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];p.on(z,U).on(a.AT,B),g.on(z,U).on(a.AT,B),m.on(z,U),U.on(z,U).on(a.AT,B).on(a.DOT,q),q.on(z,U),B.on(a.TLD,A).on(a.DOMAIN,A).on(a.LOCALHOST,F);t.State=o.TokenState,t.TOKENS=i,t.run=function(e){for(var t=e.length,n=0,o=[],i=[];n<t;){for(var a=c,s=null,l=null,d=0,u=null,h=-1;n<t&&!(s=a.next(e[n]));)i.push(e[n++]);for(;n<t&&(l=s||a.next(e[n]));)s=null,(a=l).accepts()?(h=0,u=a):h>=0&&h++,n++,d++;if(h<0)for(var p=n-d;p<n;p++)i.push(e[p]);else{i.length>0&&(o.push(new r.TEXT(i)),i=[]),n-=h,d-=h;var m=u.emit();o.push(new m(e.slice(n-d,n)))}}return i.length>0&&o.push(new r.TEXT(i)),o},t.start=c},function(e,t,n){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var o=n(555),r=n(319),i=n(404);function a(e){return e instanceof i.DOMAIN||e instanceof i.TLD}var s=(0,o.createTokenClass)();s.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t<this.v.length;t++)e.push(this.v[t].toString());return e.join("")},toHref:function(){return this.toString()},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var c=(0,r.inherits)(s,(0,o.createTokenClass)(),{type:"email",isLink:!0}),l=(0,r.inherits)(s,(0,o.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),d=(0,r.inherits)(s,(0,o.createTokenClass)(),{type:"text"}),u=(0,r.inherits)(s,(0,o.createTokenClass)(),{type:"nl"}),h=(0,r.inherits)(s,(0,o.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",t=!1,n=!1,o=this.v,r=[],s=0;o[s]instanceof i.PROTOCOL;)t=!0,r.push(o[s].toString().toLowerCase()),s++;for(;o[s]instanceof i.SLASH;)n=!0,r.push(o[s].toString()),s++;for(;a(o[s]);)r.push(o[s].toString().toLowerCase()),s++;for(;s<o.length;s++)r.push(o[s].toString());return r=r.join(""),t||n||(r=e+"://"+r),r},hasProtocol:function(){return this.v[0]instanceof i.PROTOCOL}});t.Base=s,t.MAILTOEMAIL=c,t.EMAIL=l,t.NL=u,t.TEXT=d,t.URL=h},function(e,t,n){e.exports=n(929).default},function(e,t,n){"use strict";(function(e){t.__esModule=!0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(403));var r=o.tokenize,i=o.options,a=i.Options,s=o.parser.TOKENS.TEXT;function c(e,t,n){var o=n[n.length-1];e.replaceChild(o,t);for(var r=n.length-2;r>=0;r--)e.insertBefore(n[r],o),o=n[r]}function l(e,t,n){var o=[],r=e,i=Array.isArray(r),a=0;for(r=i?r:r[Symbol.iterator]();;){var s;if(i){if(a>=r.length)break;s=r[a++]}else{if((a=r.next()).done)break;s=a.value}var c=s;if("nl"===c.type&&t.nl2br)o.push(n.createElement("br"));else if(c.isLink&&t.check(c)){var l=t.resolve(c),d=l.formatted,u=l.formattedHref,h=l.tagName,p=l.className,m=l.target,g=l.events,f=l.attributes,_=n.createElement(h);if(_.setAttribute("href",u),p&&_.setAttribute("class",p),m&&_.setAttribute("target",m),f)for(var b in f)_.setAttribute(b,f[b]);if(g)for(var v in g)_.addEventListener?_.addEventListener(v,g[v]):_.attachEvent&&_.attachEvent("on"+v,g[v]);_.appendChild(n.createTextNode(d)),o.push(_)}else o.push(n.createTextNode(c.toString()))}return o}function d(e,t,n){if(!e||1!==e.nodeType)throw new Error("Cannot linkify "+e+" - Invalid DOM Node type");var o=t.ignoreTags;if("A"===e.tagName||i.contains(o,e.tagName))return e;for(var a=e.firstChild;a;){var u=void 0,h=void 0,p=void 0;switch(a.nodeType){case 1:d(a,t,n);break;case 3:if(u=a.nodeValue,0===(h=r(u)).length||1===h.length&&h[0]instanceof s)break;c(e,a,p=l(h,t,n)),a=p[p.length-1]}a=a.nextSibling}return e}function u(t,n){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{o=o||document||window&&window.document||e&&e.document}catch(e){}if(!o)throw new Error("Cannot find document implementation. If you are in a non-browser environment like Node.js, pass the document implementation as the third argument to linkifyElement.");return d(t,n=new a(n),o)}u.helper=d,u.normalize=function(e){return new a(e)},t.default=u}).call(this,n(6))},function(e,t,n){e.exports=n(931).default},function(e,t,n){"use strict";t.__esModule=!0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(403));var r=o.tokenize,i=o.options.Options;function a(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function s(e){return e.replace(/"/g,""")}function c(e){if(!e)return"";var t=[];for(var n in e){var o=e[n]+"";t.push(n+'="'+s(o)+'"')}return t.join(" ")}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=new i(t);for(var n=r(e),o=[],l=0;l<n.length;l++){var d=n[l];if("nl"===d.type&&t.nl2br)o.push("<br>\n");else if(d.isLink&&t.check(d)){var u=t.resolve(d),h=u.formatted,p=u.formattedHref,m=u.tagName,g=u.className,f=u.target,_=u.attributes,b="<"+m+' href="'+s(p)+'"';g&&(b+=' class="'+s(g)+'"'),f&&(b+=' target="'+s(f)+'"'),_&&(b+=" "+c(_)),b+=">"+a(h)+"</"+m+">",o.push(b)}else o.push(a(d.toString()))}return o.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(e){return l(this,e)}}})}catch(e){String.prototype.linkify||(String.prototype.linkify=function(e){return l(this,e)})}t.default=l},function(e,t,n){(function(e,o){var r;!function(i){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof o&&o;a.global!==a&&a.window!==a&&a.self;var s,c=2147483647,l=/^xn--/,d=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,m=String.fromCharCode;function g(e){throw new RangeError(h[e])}function f(e,t){for(var n=e.length,o=[];n--;)o[n]=t(e[n]);return o}function _(e,t){var n=e.split("@"),o="";return n.length>1&&(o=n[0]+"@",e=n[1]),o+f((e=e.replace(u,".")).split("."),t).join(".")}function b(e){for(var t,n,o=[],r=0,i=e.length;r<i;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<i?56320==(64512&(n=e.charCodeAt(r++)))?o.push(((1023&t)<<10)+(1023&n)+65536):(o.push(t),r--):o.push(t);return o}function v(e){return f(e,(function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=m(e)})).join("")}function y(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function E(e,t,n){var o=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;o+=36)e=p(e/35);return p(o+36*e/(e+38))}function S(e){var t,n,o,r,i,a,s,l,d,u,h,m=[],f=e.length,_=0,b=128,y=72;for((n=e.lastIndexOf("-"))<0&&(n=0),o=0;o<n;++o)e.charCodeAt(o)>=128&&g("not-basic"),m.push(e.charCodeAt(o));for(r=n>0?n+1:0;r<f;){for(i=_,a=1,s=36;r>=f&&g("invalid-input"),((l=(h=e.charCodeAt(r++))-48<10?h-22:h-65<26?h-65:h-97<26?h-97:36)>=36||l>p((c-_)/a))&&g("overflow"),_+=l*a,!(l<(d=s<=y?1:s>=y+26?26:s-y));s+=36)a>p(c/(u=36-d))&&g("overflow"),a*=u;y=E(_-i,t=m.length+1,0==i),p(_/t)>c-b&&g("overflow"),b+=p(_/t),_%=t,m.splice(_++,0,b)}return v(m)}function w(e){var t,n,o,r,i,a,s,l,d,u,h,f,_,v,S,w=[];for(f=(e=b(e)).length,t=128,n=0,i=72,a=0;a<f;++a)(h=e[a])<128&&w.push(m(h));for(o=r=w.length,r&&w.push("-");o<f;){for(s=c,a=0;a<f;++a)(h=e[a])>=t&&h<s&&(s=h);for(s-t>p((c-n)/(_=o+1))&&g("overflow"),n+=(s-t)*_,t=s,a=0;a<f;++a)if((h=e[a])<t&&++n>c&&g("overflow"),h==t){for(l=n,d=36;!(l<(u=d<=i?1:d>=i+26?26:d-i));d+=36)S=l-u,v=36-u,w.push(m(y(u+S%v,0))),l=p(S/v);w.push(m(y(l,0))),i=E(n,_,o==r),n=0,++o}++n,++t}return w.join("")}s={version:"1.4.1",ucs2:{decode:b,encode:v},decode:S,encode:w,toASCII:function(e){return _(e,(function(e){return d.test(e)?"xn--"+w(e):e}))},toUnicode:function(e){return _(e,(function(e){return l.test(e)?S(e.slice(4).toLowerCase()):e}))}},void 0===(r=function(){return s}.call(t,n,t,e))||(e.exports=r)}()}).call(this,n(368)(e),n(6))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){var o;"undefined"!=typeof self&&self,o=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){},function(e,t,n){"use strict";n.r(t),n(0);var o=function(){function e(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}return e.range=function(t,n){return n?t&&t.loc&&n.loc&&t.loc.lexer===n.loc.lexer?new e(t.loc.lexer,t.loc.start,n.loc.end):null:t&&t.loc},e}(),r=function(){function e(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}return e.prototype.range=function(t,n){return new e(n,o.range(this,t))},e}(),i=function e(t,n){this.position=void 0;var o,r="KaTeX parse error: "+t,i=n&&n.loc;if(i&&i.start<=i.end){var a=i.lexer.input;o=i.start;var s=i.end;o===a.length?r+=" at end of input: ":r+=" at position "+(o+1)+": ";var c=a.slice(o,s).replace(/[^]/g,"$&̲");r+=(o>15?"…"+a.slice(o-15,o):a.slice(0,o))+c+(s+15<a.length?a.slice(s,s+15)+"…":a.slice(s))}var l=new Error(r);return l.name="ParseError",l.__proto__=e.prototype,l.position=o,l};i.prototype.__proto__=Error.prototype;var a=i,s=/([A-Z])/g,c={"&":"&",">":">","<":"<",'"':""","'":"'"},l=/[&><"']/g,d=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},u={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(l,(function(e){return c[e]}))},hyphenate:function(e){return e.replace(s,"-$1").toLowerCase()},getBaseElem:d,isCharacterBox:function(e){var t=d(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return null!=t?t[1]:"_relative"}},h=function(){function e(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},this.displayMode=u.deflt(e.displayMode,!1),this.output=u.deflt(e.output,"htmlAndMathml"),this.leqno=u.deflt(e.leqno,!1),this.fleqn=u.deflt(e.fleqn,!1),this.throwOnError=u.deflt(e.throwOnError,!0),this.errorColor=u.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.minRuleThickness=Math.max(0,u.deflt(e.minRuleThickness,0)),this.colorIsTextColor=u.deflt(e.colorIsTextColor,!1),this.strict=u.deflt(e.strict,"warn"),this.trust=u.deflt(e.trust,!1),this.maxSize=Math.max(0,u.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,u.deflt(e.maxExpand,1e3)),this.globalGroup=u.deflt(e.globalGroup,!1)}var t=e.prototype;return t.reportNonstrict=function(e,t,n){var o=this.strict;if("function"==typeof o&&(o=o(e,t,n)),o&&"ignore"!==o){if(!0===o||"error"===o)throw new a("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n);"warn"===o?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+o+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,n){var o=this.strict;if("function"==typeof o)try{o=o(e,t,n)}catch(e){o="error"}return!(!o||"ignore"===o||!0!==o&&"error"!==o&&("warn"===o?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+o+"': "+t+" ["+e+"]"),1)))},t.isTrusted=function(e){e.url&&!e.protocol&&(e.protocol=u.protocolFromUrl(e.url));var t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),p=function(){function e(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}var t=e.prototype;return t.sup=function(){return m[g[this.id]]},t.sub=function(){return m[f[this.id]]},t.fracNum=function(){return m[_[this.id]]},t.fracDen=function(){return m[b[this.id]]},t.cramp=function(){return m[v[this.id]]},t.text=function(){return m[y[this.id]]},t.isTight=function(){return this.size>=2},e}(),m=[new p(0,0,!1),new p(1,0,!0),new p(2,1,!1),new p(3,1,!0),new p(4,2,!1),new p(5,2,!0),new p(6,3,!1),new p(7,3,!0)],g=[4,5,4,5,6,7,6,7],f=[5,5,5,5,7,7,7,7],_=[2,3,4,5,6,7,6,7],b=[3,3,5,5,7,7,7,7],v=[1,1,3,3,5,5,7,7],y=[0,1,2,3,2,3,2,3],E={DISPLAY:m[0],TEXT:m[2],SCRIPT:m[4],SCRIPTSCRIPT:m[6]},S=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],w=[];function C(e){for(var t=0;t<w.length;t+=2)if(e>=w[t]&&e<=w[t+1])return!0;return!1}S.forEach((function(e){return e.blocks.forEach((function(e){return w.push.apply(w,e)}))}));var T={leftParenInner:"M291 0 H417 V300 H291 z",rightParenInner:"M457 0 H583 V300 H457 z",doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},x=function(){function e(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=e.prototype;return t.hasClass=function(e){return u.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e},t.toMarkup=function(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e},t.toText=function(){var e=function(e){return e.toText()};return this.children.map(e).join("")},e}(),O=function(e){return e.filter((function(e){return e})).join(" ")},k=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var o=t.getColor();o&&(this.style.color=o)}},R=function(e){var t=document.createElement(e);for(var n in t.className=O(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var o in this.attributes)this.attributes.hasOwnProperty(o)&&t.setAttribute(o,this.attributes[o]);for(var r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t},D=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+u.escape(O(this.classes))+'"');var n="";for(var o in this.style)this.style.hasOwnProperty(o)&&(n+=u.hyphenate(o)+":"+this.style[o]+";");for(var r in n&&(t+=' style="'+u.escape(n)+'"'),this.attributes)this.attributes.hasOwnProperty(r)&&(t+=" "+r+'="'+u.escape(this.attributes[r])+'"');t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+e+">"},I=function(){function e(e,t,n,o){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,k.call(this,e,n,o),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return u.contains(this.classes,e)},t.toNode=function(){return R.call(this,"span")},t.toMarkup=function(){return D.call(this,"span")},e}(),A=function(){function e(e,t,n,o){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,k.call(this,t,o),this.children=n||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return u.contains(this.classes,e)},t.toNode=function(){return R.call(this,"a")},t.toMarkup=function(){return D.call(this,"a")},e}(),N=function(){function e(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}var t=e.prototype;return t.hasClass=function(e){return u.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e},t.toMarkup=function(){var e="<img src='"+this.src+" 'alt='"+this.alt+"' ",t="";for(var n in this.style)this.style.hasOwnProperty(n)&&(t+=u.hyphenate(n)+":"+this.style[n]+";");return t&&(e+=' style="'+u.escape(t)+'"'),e+="'/>"},e}(),F={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"},M=function(){function e(e,t,n,o,r,i,a,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=o||0,this.skew=r||0,this.width=i||0,this.classes=a||[],this.style=s||{},this.maxFontSize=0;var c=function(e){for(var t=0;t<S.length;t++)for(var n=S[t],o=0;o<n.blocks.length;o++){var r=n.blocks[o];if(e>=r[0]&&e<=r[1])return n.name}return null}(this.text.charCodeAt(0));c&&this.classes.push(c+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=F[this.text])}var t=e.prototype;return t.hasClass=function(e){return u.contains(this.classes,e)},t.toNode=function(){var e=document.createTextNode(this.text),t=null;for(var n in this.italic>0&&((t=document.createElement("span")).style.marginRight=this.italic+"em"),this.classes.length>0&&((t=t||document.createElement("span")).className=O(this.classes)),this.style)this.style.hasOwnProperty(n)&&((t=t||document.createElement("span")).style[n]=this.style[n]);return t?(t.appendChild(e),t):e},t.toMarkup=function(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=u.escape(O(this.classes)),t+='"');var n="";for(var o in this.italic>0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(o)&&(n+=u.hyphenate(o)+":"+this.style[o]+";");n&&(e=!0,t+=' style="'+u.escape(n)+'"');var r=u.escape(this.text);return e?(t+=">",t+=r,t+="</span>"):r},e}(),P=function(){function e(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e},t.toMarkup=function(){var e="<svg";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>"},e}(),L=function(){function e(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",T[this.pathName]),e},t.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+T[this.pathName]+"'/>"},e}(),j=function(){function e(e){this.attributes=void 0,this.attributes=e||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e},t.toMarkup=function(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");return e+="/>"},e}();function U(e){if(e instanceof M)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var B={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.67,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.744,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.744,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},q={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},G={"Å":"A","Ç":"C","Ð":"D","Þ":"o","å":"a","ç":"c","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function V(e,t,n){if(!B[t])throw new Error("Font metrics not found for font: "+t+".");var o=e.charCodeAt(0),r=B[t][o];if(!r&&e[0]in G&&(o=G[e[0]].charCodeAt(0),r=B[t][o]),r||"text"!==n||C(o)&&(r=B[t][77]),r)return{depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]}}var H={},z={bin:1,close:1,inner:1,open:1,punct:1,rel:1},K={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},W={math:{},text:{}},Y=W;function $(e,t,n,o,r,i){W[e][r]={font:t,group:n,replace:o},i&&o&&(W[e][o]=W[e][r])}var Q="main",J="ams",X="bin",Z="mathord",ee="op-token",te="rel";$("math",Q,te,"≡","\\equiv",!0),$("math",Q,te,"≺","\\prec",!0),$("math",Q,te,"≻","\\succ",!0),$("math",Q,te,"∼","\\sim",!0),$("math",Q,te,"⊥","\\perp"),$("math",Q,te,"⪯","\\preceq",!0),$("math",Q,te,"⪰","\\succeq",!0),$("math",Q,te,"≃","\\simeq",!0),$("math",Q,te,"∣","\\mid",!0),$("math",Q,te,"≪","\\ll",!0),$("math",Q,te,"≫","\\gg",!0),$("math",Q,te,"≍","\\asymp",!0),$("math",Q,te,"∥","\\parallel"),$("math",Q,te,"⋈","\\bowtie",!0),$("math",Q,te,"⌣","\\smile",!0),$("math",Q,te,"⊑","\\sqsubseteq",!0),$("math",Q,te,"⊒","\\sqsupseteq",!0),$("math",Q,te,"≐","\\doteq",!0),$("math",Q,te,"⌢","\\frown",!0),$("math",Q,te,"∋","\\ni",!0),$("math",Q,te,"∝","\\propto",!0),$("math",Q,te,"⊢","\\vdash",!0),$("math",Q,te,"⊣","\\dashv",!0),$("math",Q,te,"∋","\\owns"),$("math",Q,"punct",".","\\ldotp"),$("math",Q,"punct","⋅","\\cdotp"),$("math",Q,"textord","#","\\#"),$("text",Q,"textord","#","\\#"),$("math",Q,"textord","&","\\&"),$("text",Q,"textord","&","\\&"),$("math",Q,"textord","ℵ","\\aleph",!0),$("math",Q,"textord","∀","\\forall",!0),$("math",Q,"textord","ℏ","\\hbar",!0),$("math",Q,"textord","∃","\\exists",!0),$("math",Q,"textord","∇","\\nabla",!0),$("math",Q,"textord","♭","\\flat",!0),$("math",Q,"textord","ℓ","\\ell",!0),$("math",Q,"textord","♮","\\natural",!0),$("math",Q,"textord","♣","\\clubsuit",!0),$("math",Q,"textord","℘","\\wp",!0),$("math",Q,"textord","♯","\\sharp",!0),$("math",Q,"textord","♢","\\diamondsuit",!0),$("math",Q,"textord","ℜ","\\Re",!0),$("math",Q,"textord","♡","\\heartsuit",!0),$("math",Q,"textord","ℑ","\\Im",!0),$("math",Q,"textord","♠","\\spadesuit",!0),$("text",Q,"textord","§","\\S",!0),$("text",Q,"textord","¶","\\P",!0),$("math",Q,"textord","†","\\dag"),$("text",Q,"textord","†","\\dag"),$("text",Q,"textord","†","\\textdagger"),$("math",Q,"textord","‡","\\ddag"),$("text",Q,"textord","‡","\\ddag"),$("text",Q,"textord","‡","\\textdaggerdbl"),$("math",Q,"close","⎱","\\rmoustache",!0),$("math",Q,"open","⎰","\\lmoustache",!0),$("math",Q,"close","⟯","\\rgroup",!0),$("math",Q,"open","⟮","\\lgroup",!0),$("math",Q,X,"∓","\\mp",!0),$("math",Q,X,"⊖","\\ominus",!0),$("math",Q,X,"⊎","\\uplus",!0),$("math",Q,X,"⊓","\\sqcap",!0),$("math",Q,X,"∗","\\ast"),$("math",Q,X,"⊔","\\sqcup",!0),$("math",Q,X,"◯","\\bigcirc"),$("math",Q,X,"∙","\\bullet"),$("math",Q,X,"‡","\\ddagger"),$("math",Q,X,"≀","\\wr",!0),$("math",Q,X,"⨿","\\amalg"),$("math",Q,X,"&","\\And"),$("math",Q,te,"⟵","\\longleftarrow",!0),$("math",Q,te,"⇐","\\Leftarrow",!0),$("math",Q,te,"⟸","\\Longleftarrow",!0),$("math",Q,te,"⟶","\\longrightarrow",!0),$("math",Q,te,"⇒","\\Rightarrow",!0),$("math",Q,te,"⟹","\\Longrightarrow",!0),$("math",Q,te,"↔","\\leftrightarrow",!0),$("math",Q,te,"⟷","\\longleftrightarrow",!0),$("math",Q,te,"⇔","\\Leftrightarrow",!0),$("math",Q,te,"⟺","\\Longleftrightarrow",!0),$("math",Q,te,"↦","\\mapsto",!0),$("math",Q,te,"⟼","\\longmapsto",!0),$("math",Q,te,"↗","\\nearrow",!0),$("math",Q,te,"↩","\\hookleftarrow",!0),$("math",Q,te,"↪","\\hookrightarrow",!0),$("math",Q,te,"↘","\\searrow",!0),$("math",Q,te,"↼","\\leftharpoonup",!0),$("math",Q,te,"⇀","\\rightharpoonup",!0),$("math",Q,te,"↙","\\swarrow",!0),$("math",Q,te,"↽","\\leftharpoondown",!0),$("math",Q,te,"⇁","\\rightharpoondown",!0),$("math",Q,te,"↖","\\nwarrow",!0),$("math",Q,te,"⇌","\\rightleftharpoons",!0),$("math",J,te,"≮","\\nless",!0),$("math",J,te,"","\\@nleqslant"),$("math",J,te,"","\\@nleqq"),$("math",J,te,"⪇","\\lneq",!0),$("math",J,te,"≨","\\lneqq",!0),$("math",J,te,"","\\@lvertneqq"),$("math",J,te,"⋦","\\lnsim",!0),$("math",J,te,"⪉","\\lnapprox",!0),$("math",J,te,"⊀","\\nprec",!0),$("math",J,te,"⋠","\\npreceq",!0),$("math",J,te,"⋨","\\precnsim",!0),$("math",J,te,"⪹","\\precnapprox",!0),$("math",J,te,"≁","\\nsim",!0),$("math",J,te,"","\\@nshortmid"),$("math",J,te,"∤","\\nmid",!0),$("math",J,te,"⊬","\\nvdash",!0),$("math",J,te,"⊭","\\nvDash",!0),$("math",J,te,"⋪","\\ntriangleleft"),$("math",J,te,"⋬","\\ntrianglelefteq",!0),$("math",J,te,"⊊","\\subsetneq",!0),$("math",J,te,"","\\@varsubsetneq"),$("math",J,te,"⫋","\\subsetneqq",!0),$("math",J,te,"","\\@varsubsetneqq"),$("math",J,te,"≯","\\ngtr",!0),$("math",J,te,"","\\@ngeqslant"),$("math",J,te,"","\\@ngeqq"),$("math",J,te,"⪈","\\gneq",!0),$("math",J,te,"≩","\\gneqq",!0),$("math",J,te,"","\\@gvertneqq"),$("math",J,te,"⋧","\\gnsim",!0),$("math",J,te,"⪊","\\gnapprox",!0),$("math",J,te,"⊁","\\nsucc",!0),$("math",J,te,"⋡","\\nsucceq",!0),$("math",J,te,"⋩","\\succnsim",!0),$("math",J,te,"⪺","\\succnapprox",!0),$("math",J,te,"≆","\\ncong",!0),$("math",J,te,"","\\@nshortparallel"),$("math",J,te,"∦","\\nparallel",!0),$("math",J,te,"⊯","\\nVDash",!0),$("math",J,te,"⋫","\\ntriangleright"),$("math",J,te,"⋭","\\ntrianglerighteq",!0),$("math",J,te,"","\\@nsupseteqq"),$("math",J,te,"⊋","\\supsetneq",!0),$("math",J,te,"","\\@varsupsetneq"),$("math",J,te,"⫌","\\supsetneqq",!0),$("math",J,te,"","\\@varsupsetneqq"),$("math",J,te,"⊮","\\nVdash",!0),$("math",J,te,"⪵","\\precneqq",!0),$("math",J,te,"⪶","\\succneqq",!0),$("math",J,te,"","\\@nsubseteqq"),$("math",J,X,"⊴","\\unlhd"),$("math",J,X,"⊵","\\unrhd"),$("math",J,te,"↚","\\nleftarrow",!0),$("math",J,te,"↛","\\nrightarrow",!0),$("math",J,te,"⇍","\\nLeftarrow",!0),$("math",J,te,"⇏","\\nRightarrow",!0),$("math",J,te,"↮","\\nleftrightarrow",!0),$("math",J,te,"⇎","\\nLeftrightarrow",!0),$("math",J,te,"△","\\vartriangle"),$("math",J,"textord","ℏ","\\hslash"),$("math",J,"textord","▽","\\triangledown"),$("math",J,"textord","◊","\\lozenge"),$("math",J,"textord","Ⓢ","\\circledS"),$("math",J,"textord","®","\\circledR"),$("text",J,"textord","®","\\circledR"),$("math",J,"textord","∡","\\measuredangle",!0),$("math",J,"textord","∄","\\nexists"),$("math",J,"textord","℧","\\mho"),$("math",J,"textord","Ⅎ","\\Finv",!0),$("math",J,"textord","⅁","\\Game",!0),$("math",J,"textord","‵","\\backprime"),$("math",J,"textord","▲","\\blacktriangle"),$("math",J,"textord","▼","\\blacktriangledown"),$("math",J,"textord","■","\\blacksquare"),$("math",J,"textord","⧫","\\blacklozenge"),$("math",J,"textord","★","\\bigstar"),$("math",J,"textord","∢","\\sphericalangle",!0),$("math",J,"textord","∁","\\complement",!0),$("math",J,"textord","ð","\\eth",!0),$("text",Q,"textord","ð","ð"),$("math",J,"textord","╱","\\diagup"),$("math",J,"textord","╲","\\diagdown"),$("math",J,"textord","□","\\square"),$("math",J,"textord","□","\\Box"),$("math",J,"textord","◊","\\Diamond"),$("math",J,"textord","¥","\\yen",!0),$("text",J,"textord","¥","\\yen",!0),$("math",J,"textord","✓","\\checkmark",!0),$("text",J,"textord","✓","\\checkmark"),$("math",J,"textord","ℶ","\\beth",!0),$("math",J,"textord","ℸ","\\daleth",!0),$("math",J,"textord","ℷ","\\gimel",!0),$("math",J,"textord","ϝ","\\digamma",!0),$("math",J,"textord","ϰ","\\varkappa"),$("math",J,"open","┌","\\@ulcorner",!0),$("math",J,"close","┐","\\@urcorner",!0),$("math",J,"open","└","\\@llcorner",!0),$("math",J,"close","┘","\\@lrcorner",!0),$("math",J,te,"≦","\\leqq",!0),$("math",J,te,"⩽","\\leqslant",!0),$("math",J,te,"⪕","\\eqslantless",!0),$("math",J,te,"≲","\\lesssim",!0),$("math",J,te,"⪅","\\lessapprox",!0),$("math",J,te,"≊","\\approxeq",!0),$("math",J,X,"⋖","\\lessdot"),$("math",J,te,"⋘","\\lll",!0),$("math",J,te,"≶","\\lessgtr",!0),$("math",J,te,"⋚","\\lesseqgtr",!0),$("math",J,te,"⪋","\\lesseqqgtr",!0),$("math",J,te,"≑","\\doteqdot"),$("math",J,te,"≓","\\risingdotseq",!0),$("math",J,te,"≒","\\fallingdotseq",!0),$("math",J,te,"∽","\\backsim",!0),$("math",J,te,"⋍","\\backsimeq",!0),$("math",J,te,"⫅","\\subseteqq",!0),$("math",J,te,"⋐","\\Subset",!0),$("math",J,te,"⊏","\\sqsubset",!0),$("math",J,te,"≼","\\preccurlyeq",!0),$("math",J,te,"⋞","\\curlyeqprec",!0),$("math",J,te,"≾","\\precsim",!0),$("math",J,te,"⪷","\\precapprox",!0),$("math",J,te,"⊲","\\vartriangleleft"),$("math",J,te,"⊴","\\trianglelefteq"),$("math",J,te,"⊨","\\vDash",!0),$("math",J,te,"⊪","\\Vvdash",!0),$("math",J,te,"⌣","\\smallsmile"),$("math",J,te,"⌢","\\smallfrown"),$("math",J,te,"≏","\\bumpeq",!0),$("math",J,te,"≎","\\Bumpeq",!0),$("math",J,te,"≧","\\geqq",!0),$("math",J,te,"⩾","\\geqslant",!0),$("math",J,te,"⪖","\\eqslantgtr",!0),$("math",J,te,"≳","\\gtrsim",!0),$("math",J,te,"⪆","\\gtrapprox",!0),$("math",J,X,"⋗","\\gtrdot"),$("math",J,te,"⋙","\\ggg",!0),$("math",J,te,"≷","\\gtrless",!0),$("math",J,te,"⋛","\\gtreqless",!0),$("math",J,te,"⪌","\\gtreqqless",!0),$("math",J,te,"≖","\\eqcirc",!0),$("math",J,te,"≗","\\circeq",!0),$("math",J,te,"≜","\\triangleq",!0),$("math",J,te,"∼","\\thicksim"),$("math",J,te,"≈","\\thickapprox"),$("math",J,te,"⫆","\\supseteqq",!0),$("math",J,te,"⋑","\\Supset",!0),$("math",J,te,"⊐","\\sqsupset",!0),$("math",J,te,"≽","\\succcurlyeq",!0),$("math",J,te,"⋟","\\curlyeqsucc",!0),$("math",J,te,"≿","\\succsim",!0),$("math",J,te,"⪸","\\succapprox",!0),$("math",J,te,"⊳","\\vartriangleright"),$("math",J,te,"⊵","\\trianglerighteq"),$("math",J,te,"⊩","\\Vdash",!0),$("math",J,te,"∣","\\shortmid"),$("math",J,te,"∥","\\shortparallel"),$("math",J,te,"≬","\\between",!0),$("math",J,te,"⋔","\\pitchfork",!0),$("math",J,te,"∝","\\varpropto"),$("math",J,te,"◀","\\blacktriangleleft"),$("math",J,te,"∴","\\therefore",!0),$("math",J,te,"∍","\\backepsilon"),$("math",J,te,"▶","\\blacktriangleright"),$("math",J,te,"∵","\\because",!0),$("math",J,te,"⋘","\\llless"),$("math",J,te,"⋙","\\gggtr"),$("math",J,X,"⊲","\\lhd"),$("math",J,X,"⊳","\\rhd"),$("math",J,te,"≂","\\eqsim",!0),$("math",Q,te,"⋈","\\Join"),$("math",J,te,"≑","\\Doteq",!0),$("math",J,X,"∔","\\dotplus",!0),$("math",J,X,"∖","\\smallsetminus"),$("math",J,X,"⋒","\\Cap",!0),$("math",J,X,"⋓","\\Cup",!0),$("math",J,X,"⩞","\\doublebarwedge",!0),$("math",J,X,"⊟","\\boxminus",!0),$("math",J,X,"⊞","\\boxplus",!0),$("math",J,X,"⋇","\\divideontimes",!0),$("math",J,X,"⋉","\\ltimes",!0),$("math",J,X,"⋊","\\rtimes",!0),$("math",J,X,"⋋","\\leftthreetimes",!0),$("math",J,X,"⋌","\\rightthreetimes",!0),$("math",J,X,"⋏","\\curlywedge",!0),$("math",J,X,"⋎","\\curlyvee",!0),$("math",J,X,"⊝","\\circleddash",!0),$("math",J,X,"⊛","\\circledast",!0),$("math",J,X,"⋅","\\centerdot"),$("math",J,X,"⊺","\\intercal",!0),$("math",J,X,"⋒","\\doublecap"),$("math",J,X,"⋓","\\doublecup"),$("math",J,X,"⊠","\\boxtimes",!0),$("math",J,te,"⇢","\\dashrightarrow",!0),$("math",J,te,"⇠","\\dashleftarrow",!0),$("math",J,te,"⇇","\\leftleftarrows",!0),$("math",J,te,"⇆","\\leftrightarrows",!0),$("math",J,te,"⇚","\\Lleftarrow",!0),$("math",J,te,"↞","\\twoheadleftarrow",!0),$("math",J,te,"↢","\\leftarrowtail",!0),$("math",J,te,"↫","\\looparrowleft",!0),$("math",J,te,"⇋","\\leftrightharpoons",!0),$("math",J,te,"↶","\\curvearrowleft",!0),$("math",J,te,"↺","\\circlearrowleft",!0),$("math",J,te,"↰","\\Lsh",!0),$("math",J,te,"⇈","\\upuparrows",!0),$("math",J,te,"↿","\\upharpoonleft",!0),$("math",J,te,"⇃","\\downharpoonleft",!0),$("math",J,te,"⊸","\\multimap",!0),$("math",J,te,"↭","\\leftrightsquigarrow",!0),$("math",J,te,"⇉","\\rightrightarrows",!0),$("math",J,te,"⇄","\\rightleftarrows",!0),$("math",J,te,"↠","\\twoheadrightarrow",!0),$("math",J,te,"↣","\\rightarrowtail",!0),$("math",J,te,"↬","\\looparrowright",!0),$("math",J,te,"↷","\\curvearrowright",!0),$("math",J,te,"↻","\\circlearrowright",!0),$("math",J,te,"↱","\\Rsh",!0),$("math",J,te,"⇊","\\downdownarrows",!0),$("math",J,te,"↾","\\upharpoonright",!0),$("math",J,te,"⇂","\\downharpoonright",!0),$("math",J,te,"⇝","\\rightsquigarrow",!0),$("math",J,te,"⇝","\\leadsto"),$("math",J,te,"⇛","\\Rrightarrow",!0),$("math",J,te,"↾","\\restriction"),$("math",Q,"textord","‘","`"),$("math",Q,"textord","$","\\$"),$("text",Q,"textord","$","\\$"),$("text",Q,"textord","$","\\textdollar"),$("math",Q,"textord","%","\\%"),$("text",Q,"textord","%","\\%"),$("math",Q,"textord","_","\\_"),$("text",Q,"textord","_","\\_"),$("text",Q,"textord","_","\\textunderscore"),$("math",Q,"textord","∠","\\angle",!0),$("math",Q,"textord","∞","\\infty",!0),$("math",Q,"textord","′","\\prime"),$("math",Q,"textord","△","\\triangle"),$("math",Q,"textord","Γ","\\Gamma",!0),$("math",Q,"textord","Δ","\\Delta",!0),$("math",Q,"textord","Θ","\\Theta",!0),$("math",Q,"textord","Λ","\\Lambda",!0),$("math",Q,"textord","Ξ","\\Xi",!0),$("math",Q,"textord","Π","\\Pi",!0),$("math",Q,"textord","Σ","\\Sigma",!0),$("math",Q,"textord","Υ","\\Upsilon",!0),$("math",Q,"textord","Φ","\\Phi",!0),$("math",Q,"textord","Ψ","\\Psi",!0),$("math",Q,"textord","Ω","\\Omega",!0),$("math",Q,"textord","A","Α"),$("math",Q,"textord","B","Β"),$("math",Q,"textord","E","Ε"),$("math",Q,"textord","Z","Ζ"),$("math",Q,"textord","H","Η"),$("math",Q,"textord","I","Ι"),$("math",Q,"textord","K","Κ"),$("math",Q,"textord","M","Μ"),$("math",Q,"textord","N","Ν"),$("math",Q,"textord","O","Ο"),$("math",Q,"textord","P","Ρ"),$("math",Q,"textord","T","Τ"),$("math",Q,"textord","X","Χ"),$("math",Q,"textord","¬","\\neg",!0),$("math",Q,"textord","¬","\\lnot"),$("math",Q,"textord","⊤","\\top"),$("math",Q,"textord","⊥","\\bot"),$("math",Q,"textord","∅","\\emptyset"),$("math",J,"textord","∅","\\varnothing"),$("math",Q,Z,"α","\\alpha",!0),$("math",Q,Z,"β","\\beta",!0),$("math",Q,Z,"γ","\\gamma",!0),$("math",Q,Z,"δ","\\delta",!0),$("math",Q,Z,"ϵ","\\epsilon",!0),$("math",Q,Z,"ζ","\\zeta",!0),$("math",Q,Z,"η","\\eta",!0),$("math",Q,Z,"θ","\\theta",!0),$("math",Q,Z,"ι","\\iota",!0),$("math",Q,Z,"κ","\\kappa",!0),$("math",Q,Z,"λ","\\lambda",!0),$("math",Q,Z,"μ","\\mu",!0),$("math",Q,Z,"ν","\\nu",!0),$("math",Q,Z,"ξ","\\xi",!0),$("math",Q,Z,"ο","\\omicron",!0),$("math",Q,Z,"π","\\pi",!0),$("math",Q,Z,"ρ","\\rho",!0),$("math",Q,Z,"σ","\\sigma",!0),$("math",Q,Z,"τ","\\tau",!0),$("math",Q,Z,"υ","\\upsilon",!0),$("math",Q,Z,"ϕ","\\phi",!0),$("math",Q,Z,"χ","\\chi",!0),$("math",Q,Z,"ψ","\\psi",!0),$("math",Q,Z,"ω","\\omega",!0),$("math",Q,Z,"ε","\\varepsilon",!0),$("math",Q,Z,"ϑ","\\vartheta",!0),$("math",Q,Z,"ϖ","\\varpi",!0),$("math",Q,Z,"ϱ","\\varrho",!0),$("math",Q,Z,"ς","\\varsigma",!0),$("math",Q,Z,"φ","\\varphi",!0),$("math",Q,X,"∗","*"),$("math",Q,X,"+","+"),$("math",Q,X,"−","-"),$("math",Q,X,"⋅","\\cdot",!0),$("math",Q,X,"∘","\\circ"),$("math",Q,X,"÷","\\div",!0),$("math",Q,X,"±","\\pm",!0),$("math",Q,X,"×","\\times",!0),$("math",Q,X,"∩","\\cap",!0),$("math",Q,X,"∪","\\cup",!0),$("math",Q,X,"∖","\\setminus"),$("math",Q,X,"∧","\\land"),$("math",Q,X,"∨","\\lor"),$("math",Q,X,"∧","\\wedge",!0),$("math",Q,X,"∨","\\vee",!0),$("math",Q,"textord","√","\\surd"),$("math",Q,"open","⟨","\\langle",!0),$("math",Q,"open","∣","\\lvert"),$("math",Q,"open","∥","\\lVert"),$("math",Q,"close","?","?"),$("math",Q,"close","!","!"),$("math",Q,"close","⟩","\\rangle",!0),$("math",Q,"close","∣","\\rvert"),$("math",Q,"close","∥","\\rVert"),$("math",Q,te,"=","="),$("math",Q,te,":",":"),$("math",Q,te,"≈","\\approx",!0),$("math",Q,te,"≅","\\cong",!0),$("math",Q,te,"≥","\\ge"),$("math",Q,te,"≥","\\geq",!0),$("math",Q,te,"←","\\gets"),$("math",Q,te,">","\\gt",!0),$("math",Q,te,"∈","\\in",!0),$("math",Q,te,"","\\@not"),$("math",Q,te,"⊂","\\subset",!0),$("math",Q,te,"⊃","\\supset",!0),$("math",Q,te,"⊆","\\subseteq",!0),$("math",Q,te,"⊇","\\supseteq",!0),$("math",J,te,"⊈","\\nsubseteq",!0),$("math",J,te,"⊉","\\nsupseteq",!0),$("math",Q,te,"⊨","\\models"),$("math",Q,te,"←","\\leftarrow",!0),$("math",Q,te,"≤","\\le"),$("math",Q,te,"≤","\\leq",!0),$("math",Q,te,"<","\\lt",!0),$("math",Q,te,"→","\\rightarrow",!0),$("math",Q,te,"→","\\to"),$("math",J,te,"≱","\\ngeq",!0),$("math",J,te,"≰","\\nleq",!0),$("math",Q,"spacing"," ","\\ "),$("math",Q,"spacing"," ","~"),$("math",Q,"spacing"," ","\\space"),$("math",Q,"spacing"," ","\\nobreakspace"),$("text",Q,"spacing"," ","\\ "),$("text",Q,"spacing"," "," "),$("text",Q,"spacing"," ","~"),$("text",Q,"spacing"," ","\\space"),$("text",Q,"spacing"," ","\\nobreakspace"),$("math",Q,"spacing",null,"\\nobreak"),$("math",Q,"spacing",null,"\\allowbreak"),$("math",Q,"punct",",",","),$("math",Q,"punct",";",";"),$("math",J,X,"⊼","\\barwedge",!0),$("math",J,X,"⊻","\\veebar",!0),$("math",Q,X,"⊙","\\odot",!0),$("math",Q,X,"⊕","\\oplus",!0),$("math",Q,X,"⊗","\\otimes",!0),$("math",Q,"textord","∂","\\partial",!0),$("math",Q,X,"⊘","\\oslash",!0),$("math",J,X,"⊚","\\circledcirc",!0),$("math",J,X,"⊡","\\boxdot",!0),$("math",Q,X,"△","\\bigtriangleup"),$("math",Q,X,"▽","\\bigtriangledown"),$("math",Q,X,"†","\\dagger"),$("math",Q,X,"⋄","\\diamond"),$("math",Q,X,"⋆","\\star"),$("math",Q,X,"◃","\\triangleleft"),$("math",Q,X,"▹","\\triangleright"),$("math",Q,"open","{","\\{"),$("text",Q,"textord","{","\\{"),$("text",Q,"textord","{","\\textbraceleft"),$("math",Q,"close","}","\\}"),$("text",Q,"textord","}","\\}"),$("text",Q,"textord","}","\\textbraceright"),$("math",Q,"open","{","\\lbrace"),$("math",Q,"close","}","\\rbrace"),$("math",Q,"open","[","\\lbrack",!0),$("text",Q,"textord","[","\\lbrack",!0),$("math",Q,"close","]","\\rbrack",!0),$("text",Q,"textord","]","\\rbrack",!0),$("math",Q,"open","(","\\lparen",!0),$("math",Q,"close",")","\\rparen",!0),$("text",Q,"textord","<","\\textless",!0),$("text",Q,"textord",">","\\textgreater",!0),$("math",Q,"open","⌊","\\lfloor",!0),$("math",Q,"close","⌋","\\rfloor",!0),$("math",Q,"open","⌈","\\lceil",!0),$("math",Q,"close","⌉","\\rceil",!0),$("math",Q,"textord","\\","\\backslash"),$("math",Q,"textord","∣","|"),$("math",Q,"textord","∣","\\vert"),$("text",Q,"textord","|","\\textbar",!0),$("math",Q,"textord","∥","\\|"),$("math",Q,"textord","∥","\\Vert"),$("text",Q,"textord","∥","\\textbardbl"),$("text",Q,"textord","~","\\textasciitilde"),$("text",Q,"textord","\\","\\textbackslash"),$("text",Q,"textord","^","\\textasciicircum"),$("math",Q,te,"↑","\\uparrow",!0),$("math",Q,te,"⇑","\\Uparrow",!0),$("math",Q,te,"↓","\\downarrow",!0),$("math",Q,te,"⇓","\\Downarrow",!0),$("math",Q,te,"↕","\\updownarrow",!0),$("math",Q,te,"⇕","\\Updownarrow",!0),$("math",Q,ee,"∐","\\coprod"),$("math",Q,ee,"⋁","\\bigvee"),$("math",Q,ee,"⋀","\\bigwedge"),$("math",Q,ee,"⨄","\\biguplus"),$("math",Q,ee,"⋂","\\bigcap"),$("math",Q,ee,"⋃","\\bigcup"),$("math",Q,ee,"∫","\\int"),$("math",Q,ee,"∫","\\intop"),$("math",Q,ee,"∬","\\iint"),$("math",Q,ee,"∭","\\iiint"),$("math",Q,ee,"∏","\\prod"),$("math",Q,ee,"∑","\\sum"),$("math",Q,ee,"⨂","\\bigotimes"),$("math",Q,ee,"⨁","\\bigoplus"),$("math",Q,ee,"⨀","\\bigodot"),$("math",Q,ee,"∮","\\oint"),$("math",Q,ee,"⨆","\\bigsqcup"),$("math",Q,ee,"∫","\\smallint"),$("text",Q,"inner","…","\\textellipsis"),$("math",Q,"inner","…","\\mathellipsis"),$("text",Q,"inner","…","\\ldots",!0),$("math",Q,"inner","…","\\ldots",!0),$("math",Q,"inner","⋯","\\@cdots",!0),$("math",Q,"inner","⋱","\\ddots",!0),$("math",Q,"textord","⋮","\\varvdots"),$("math",Q,"accent-token","ˊ","\\acute"),$("math",Q,"accent-token","ˋ","\\grave"),$("math",Q,"accent-token","¨","\\ddot"),$("math",Q,"accent-token","~","\\tilde"),$("math",Q,"accent-token","ˉ","\\bar"),$("math",Q,"accent-token","˘","\\breve"),$("math",Q,"accent-token","ˇ","\\check"),$("math",Q,"accent-token","^","\\hat"),$("math",Q,"accent-token","⃗","\\vec"),$("math",Q,"accent-token","˙","\\dot"),$("math",Q,"accent-token","˚","\\mathring"),$("math",Q,Z,"","\\@imath"),$("math",Q,Z,"","\\@jmath"),$("math",Q,"textord","ı","ı"),$("math",Q,"textord","ȷ","ȷ"),$("text",Q,"textord","ı","\\i",!0),$("text",Q,"textord","ȷ","\\j",!0),$("text",Q,"textord","ß","\\ss",!0),$("text",Q,"textord","æ","\\ae",!0),$("text",Q,"textord","œ","\\oe",!0),$("text",Q,"textord","ø","\\o",!0),$("text",Q,"textord","Æ","\\AE",!0),$("text",Q,"textord","Œ","\\OE",!0),$("text",Q,"textord","Ø","\\O",!0),$("text",Q,"accent-token","ˊ","\\'"),$("text",Q,"accent-token","ˋ","\\`"),$("text",Q,"accent-token","ˆ","\\^"),$("text",Q,"accent-token","˜","\\~"),$("text",Q,"accent-token","ˉ","\\="),$("text",Q,"accent-token","˘","\\u"),$("text",Q,"accent-token","˙","\\."),$("text",Q,"accent-token","˚","\\r"),$("text",Q,"accent-token","ˇ","\\v"),$("text",Q,"accent-token","¨",'\\"'),$("text",Q,"accent-token","˝","\\H"),$("text",Q,"accent-token","◯","\\textcircled");var ne={"--":!0,"---":!0,"``":!0,"''":!0};$("text",Q,"textord","–","--",!0),$("text",Q,"textord","–","\\textendash"),$("text",Q,"textord","—","---",!0),$("text",Q,"textord","—","\\textemdash"),$("text",Q,"textord","‘","`",!0),$("text",Q,"textord","‘","\\textquoteleft"),$("text",Q,"textord","’","'",!0),$("text",Q,"textord","’","\\textquoteright"),$("text",Q,"textord","“","``",!0),$("text",Q,"textord","“","\\textquotedblleft"),$("text",Q,"textord","”","''",!0),$("text",Q,"textord","”","\\textquotedblright"),$("math",Q,"textord","°","\\degree",!0),$("text",Q,"textord","°","\\degree"),$("text",Q,"textord","°","\\textdegree",!0),$("math",Q,"textord","£","\\pounds"),$("math",Q,"textord","£","\\mathsterling",!0),$("text",Q,"textord","£","\\pounds"),$("text",Q,"textord","£","\\textsterling",!0),$("math",J,"textord","✠","\\maltese"),$("text",J,"textord","✠","\\maltese");for(var oe=0;oe<'0123456789/@."'.length;oe++){var re='0123456789/@."'.charAt(oe);$("math",Q,"textord",re,re)}for(var ie=0;ie<'0123456789!@*()-=+";:?/.,'.length;ie++){var ae='0123456789!@*()-=+";:?/.,'.charAt(ie);$("text",Q,"textord",ae,ae)}for(var se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ce=0;ce<se.length;ce++){var le=se.charAt(ce);$("math",Q,Z,le,le),$("text",Q,"textord",le,le)}$("math",J,"textord","C","ℂ"),$("text",J,"textord","C","ℂ"),$("math",J,"textord","H","ℍ"),$("text",J,"textord","H","ℍ"),$("math",J,"textord","N","ℕ"),$("text",J,"textord","N","ℕ"),$("math",J,"textord","P","ℙ"),$("text",J,"textord","P","ℙ"),$("math",J,"textord","Q","ℚ"),$("text",J,"textord","Q","ℚ"),$("math",J,"textord","R","ℝ"),$("text",J,"textord","R","ℝ"),$("math",J,"textord","Z","ℤ"),$("text",J,"textord","Z","ℤ"),$("math",Q,Z,"h","ℎ"),$("text",Q,Z,"h","ℎ");for(var de="",ue=0;ue<se.length;ue++){var he=se.charAt(ue);$("math",Q,Z,he,de=String.fromCharCode(55349,56320+ue)),$("text",Q,"textord",he,de),$("math",Q,Z,he,de=String.fromCharCode(55349,56372+ue)),$("text",Q,"textord",he,de),$("math",Q,Z,he,de=String.fromCharCode(55349,56424+ue)),$("text",Q,"textord",he,de),$("math",Q,Z,he,de=String.fromCharCode(55349,56580+ue)),$("text",Q,"textord",he,de),$("math",Q,Z,he,de=String.fromCharCode(55349,56736+ue)),$("text",Q,"textord",he,de),$("math",Q,Z,he,de=String.fromCharCode(55349,56788+ue)),$("text",Q,"textord",he,de),$("math",Q,Z,he,de=String.fromCharCode(55349,56840+ue)),$("text",Q,"textord",he,de),$("math",Q,Z,he,de=String.fromCharCode(55349,56944+ue)),$("text",Q,"textord",he,de),ue<26&&($("math",Q,Z,he,de=String.fromCharCode(55349,56632+ue)),$("text",Q,"textord",he,de),$("math",Q,Z,he,de=String.fromCharCode(55349,56476+ue)),$("text",Q,"textord",he,de))}$("math",Q,Z,"k",de=String.fromCharCode(55349,56668)),$("text",Q,"textord","k",de);for(var pe=0;pe<10;pe++){var me=pe.toString();$("math",Q,Z,me,de=String.fromCharCode(55349,57294+pe)),$("text",Q,"textord",me,de),$("math",Q,Z,me,de=String.fromCharCode(55349,57314+pe)),$("text",Q,"textord",me,de),$("math",Q,Z,me,de=String.fromCharCode(55349,57324+pe)),$("text",Q,"textord",me,de),$("math",Q,Z,me,de=String.fromCharCode(55349,57334+pe)),$("text",Q,"textord",me,de)}for(var ge=0;ge<"ÇÐÞçþ".length;ge++){var fe="ÇÐÞçþ".charAt(ge);$("math",Q,Z,fe,fe),$("text",Q,"textord",fe,fe)}var _e=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],be=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],ve=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],ye=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ee=function(e,t){return t.size<2?e:ve[e-1][t.size-1]},Se=function(){function e(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=ye[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}var t=e.prototype;return t.extend=function(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);return new e(n)},t.havingStyle=function(e){return this.style===e?this:this.extend({style:e,size:Ee(this.textSize,e)})},t.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},t.havingSize=function(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:ye[e-1]})},t.havingBaseStyle=function(t){t=t||this.style.text();var n=Ee(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})},t.havingBaseSizing=function(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})},t.withColor=function(e){return this.extend({color:e})},t.withPhantom=function(){return this.extend({phantom:!0})},t.withFont=function(e){return this.extend({font:e})},t.withTextFontFamily=function(e){return this.extend({fontFamily:e,font:""})},t.withTextFontWeight=function(e){return this.extend({fontWeight:e,font:""})},t.withTextFontShape=function(e){return this.extend({fontShape:e,font:""})},t.sizingClasses=function(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]},t.baseSizingClasses=function(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]},t.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!H[t=e>=5?0:e>=3?1:2]){var n=H[t]={cssEmPerMu:q.quad[t]/18};for(var o in q)q.hasOwnProperty(o)&&(n[o]=q[o][t])}return H[t]}(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();Se.BASESIZE=6;var we=Se,Ce={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Te={ex:!0,em:!0,mu:!0},xe=function(e){return"string"!=typeof e&&(e=e.unit),e in Ce||e in Te||"ex"===e},Oe=function(e,t){var n;if(e.unit in Ce)n=Ce[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var o;if(o=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=o.fontMetrics().xHeight;else{if("em"!==e.unit)throw new a("Invalid unit: '"+e.unit+"'");n=o.fontMetrics().quad}o!==t&&(n*=o.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},ke=function(e,t,n){return Y[n][e]&&Y[n][e].replace&&(e=Y[n][e].replace),{value:e,metrics:V(e,t,n)}},Re=function(e,t,n,o,r){var i,a=ke(e,t,n),s=a.metrics;if(e=a.value,s){var c=s.italic;("text"===n||o&&"mathit"===o.font)&&(c=0),i=new M(e,s.height,s.depth,c,s.skew,s.width,r)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+n+"'"),i=new M(e,0,0,0,0,0,r);if(o){i.maxFontSize=o.sizeMultiplier,o.style.isTight()&&i.classes.push("mtight");var l=o.getColor();l&&(i.style.color=l)}return i},De=function(e,t){if(O(e.classes)!==O(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;for(var o in t.style)if(t.style.hasOwnProperty(o)&&e.style[o]!==t.style[o])return!1;return!0},Ie=function(e){for(var t=0,n=0,o=0,r=0;r<e.children.length;r++){var i=e.children[r];i.height>t&&(t=i.height),i.depth>n&&(n=i.depth),i.maxFontSize>o&&(o=i.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=o},Ae=function(e,t,n,o){var r=new I(e,t,n,o);return Ie(r),r},Ne=function(e,t,n,o){return new I(e,t,n,o)},Fe=function(e){var t=new x(e);return Ie(t),t},Me=function(e,t,n){var o="";switch(e){case"amsrm":o="AMS";break;case"textrm":o="Main";break;case"textsf":o="SansSerif";break;case"texttt":o="Typewriter";break;default:o=e}return o+"-"+("textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},Pe={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Le={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659],leftParenInner:["leftParenInner",.875,.3],rightParenInner:["rightParenInner",.875,.3]},je={fontMap:Pe,makeSymbol:Re,mathsym:function(e,t,n,o){return void 0===o&&(o=[]),"boldsymbol"===n.font&&ke(e,"Main-Bold",t).metrics?Re(e,"Main-Bold",t,n,o.concat(["mathbf"])):"\\"===e||"main"===Y[t][e].font?Re(e,"Main-Regular",t,n,o):Re(e,"AMS-Regular",t,n,o.concat(["amsrm"]))},makeSpan:Ae,makeSvgSpan:Ne,makeLineSpan:function(e,t,n){var o=Ae([e],[],t);return o.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),o.style.borderBottomWidth=o.height+"em",o.maxFontSize=1,o},makeAnchor:function(e,t,n,o){var r=new A(e,t,n,o);return Ie(r),r},makeFragment:Fe,wrapFragment:function(e,t){return e instanceof x?Ae([],[e],t):e},makeVList:function(e,t){for(var n=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],o=-t[0].shift-t[0].elem.depth,r=o,i=1;i<t.length;i++){var a=-t[i].shift-r-t[i].elem.depth,s=a-(t[i-1].elem.height+t[i-1].elem.depth);r+=a,n.push({type:"kern",size:s}),n.push(t[i])}return{children:n,depth:o}}var c;if("top"===e.positionType){for(var l=e.positionData,d=0;d<e.children.length;d++){var u=e.children[d];l-="kern"===u.type?u.size:u.elem.height+u.elem.depth}c=l}else if("bottom"===e.positionType)c=-e.positionData;else{var h=e.children[0];if("elem"!==h.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)c=-h.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");c=-h.elem.depth}}return{children:e.children,depth:c}}(e),o=n.children,r=n.depth,i=0,a=0;a<o.length;a++){var s=o[a];if("elem"===s.type){var c=s.elem;i=Math.max(i,c.maxFontSize,c.height)}}i+=2;var l=Ae(["pstrut"],[]);l.style.height=i+"em";for(var d=[],u=r,h=r,p=r,m=0;m<o.length;m++){var g=o[m];if("kern"===g.type)p+=g.size;else{var f=g.elem,_=g.wrapperClasses||[],b=g.wrapperStyle||{},v=Ae(_,[l,f],void 0,b);v.style.top=-i-p-f.depth+"em",g.marginLeft&&(v.style.marginLeft=g.marginLeft),g.marginRight&&(v.style.marginRight=g.marginRight),d.push(v),p+=f.height+f.depth}u=Math.min(u,p),h=Math.max(h,p)}var y,E=Ae(["vlist"],d);if(E.style.height=h+"em",u<0){var S=Ae([],[]),w=Ae(["vlist"],[S]);w.style.height=-u+"em";var C=Ae(["vlist-s"],[new M("")]);y=[Ae(["vlist-r"],[E,C]),Ae(["vlist-r"],[w])]}else y=[Ae(["vlist-r"],[E])];var T=Ae(["vlist-t"],y);return 2===y.length&&T.classes.push("vlist-t2"),T.height=h,T.depth=-u,T},makeOrd:function(e,t,n){var o=e.mode,r=e.text,i=["mord"],s="math"===o||"text"===o&&t.font,c=s?t.font:t.fontFamily;if(55349===r.charCodeAt(0)){var l=function(e,t){var n=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,o="math"===t?0:1;if(119808<=n&&n<120484){var r=Math.floor((n-119808)/26);return[_e[r][2],_e[r][o]]}if(120782<=n&&n<=120831){var i=Math.floor((n-120782)/10);return[be[i][2],be[i][o]]}if(120485===n||120486===n)return[_e[0][2],_e[0][o]];if(120486<n&&n<120782)return["",""];throw new a("Unsupported character: "+e)}(r,o),d=l[0],u=l[1];return Re(r,d,o,t,i.concat(u))}if(c){var h,p;if("boldsymbol"===c){var m=function(e,t,n,o,r){return"textord"!==r&&ke(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(r,o,0,0,n);h=m.fontName,p=[m.fontClass]}else s?(h=Pe[c].fontName,p=[c]):(h=Me(c,t.fontWeight,t.fontShape),p=[c,t.fontWeight,t.fontShape]);if(ke(r,h,o).metrics)return Re(r,h,o,t,i.concat(p));if(ne.hasOwnProperty(r)&&"Typewriter"===h.substr(0,10)){for(var g=[],f=0;f<r.length;f++)g.push(Re(r[f],h,o,t,i.concat(p)));return Fe(g)}}if("mathord"===n)return Re(r,"Math-Italic",o,t,i.concat(["mathnormal"]));if("textord"===n){var _=Y[o][r]&&Y[o][r].font;if("ams"===_){var b=Me("amsrm",t.fontWeight,t.fontShape);return Re(r,b,o,t,i.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==_&&_){var v=Me(_,t.fontWeight,t.fontShape);return Re(r,v,o,t,i.concat(v,t.fontWeight,t.fontShape))}var y=Me("textrm",t.fontWeight,t.fontShape);return Re(r,y,o,t,i.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+n+" in makeOrd")},makeGlue:function(e,t){var n=Ae(["mspace"],[],t),o=Oe(e,t);return n.style.marginRight=o+"em",n},staticSvg:function(e,t){var n=Le[e],o=n[0],r=n[1],i=n[2],a=new L(o),s=new P([a],{width:r+"em",height:i+"em",style:"width:"+r+"em",viewBox:"0 0 "+1e3*r+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),c=Ne(["overlay"],[s],t);return c.height=i,c.style.height=i+"em",c.style.width=r+"em",c},svgData:Le,tryCombineChars:function(e){for(var t=0;t<e.length-1;t++){var n=e[t],o=e[t+1];n instanceof M&&o instanceof M&&De(n,o)&&(n.text+=o.text,n.height=Math.max(n.height,o.height),n.depth=Math.max(n.depth,o.depth),n.italic=o.italic,e.splice(t+1,1),t--)}return e}},Ue={number:3,unit:"mu"},Be={number:4,unit:"mu"},qe={number:5,unit:"mu"},Ge={mord:{mop:Ue,mbin:Be,mrel:qe,minner:Ue},mop:{mord:Ue,mop:Ue,mrel:qe,minner:Ue},mbin:{mord:Be,mop:Be,mopen:Be,minner:Be},mrel:{mord:qe,mop:qe,mopen:qe,minner:qe},mopen:{},mclose:{mop:Ue,mbin:Be,mrel:qe,minner:Ue},mpunct:{mord:Ue,mop:Ue,mrel:qe,mopen:Ue,mclose:Ue,mpunct:Ue,minner:Ue},minner:{mord:Ue,mop:Ue,mbin:Be,mrel:qe,mopen:Ue,mpunct:Ue,minner:Ue}},Ve={mord:{mop:Ue},mop:{mord:Ue,mop:Ue},mbin:{},mrel:{},mopen:{},mclose:{mop:Ue},mpunct:{},minner:{mop:Ue}},He={},ze={},Ke={};function We(e){for(var t=e.type,n=e.names,o=e.props,r=e.handler,i=e.htmlBuilder,a=e.mathmlBuilder,s={type:t,numArgs:o.numArgs,argTypes:o.argTypes,greediness:void 0===o.greediness?1:o.greediness,allowedInText:!!o.allowedInText,allowedInMath:void 0===o.allowedInMath||o.allowedInMath,numOptionalArgs:o.numOptionalArgs||0,infix:!!o.infix,handler:r},c=0;c<n.length;++c)He[n[c]]=s;t&&(i&&(ze[t]=i),a&&(Ke[t]=a))}function Ye(e){We({type:e.type,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:e.htmlBuilder,mathmlBuilder:e.mathmlBuilder})}var $e=function(e){return"ordgroup"===e.type?e.body:[e]},Qe=je.makeSpan,Je=["leftmost","mbin","mopen","mrel","mop","mpunct"],Xe=["rightmost","mrel","mclose","mpunct"],Ze={display:E.DISPLAY,text:E.TEXT,script:E.SCRIPT,scriptscript:E.SCRIPTSCRIPT},et={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},tt=function(e,t,n,o){void 0===o&&(o=[null,null]);for(var r=[],i=0;i<e.length;i++){var a=at(e[i],t);if(a instanceof x){var s=a.children;r.push.apply(r,s)}else r.push(a)}if(!n)return r;var c=t;if(1===e.length){var l=e[0];"sizing"===l.type?c=t.havingSize(l.size):"styling"===l.type&&(c=t.havingStyle(Ze[l.style]))}var d=Qe([o[0]||"leftmost"],[],t),h=Qe([o[1]||"rightmost"],[],t),p="root"===n;return nt(r,(function(e,t){var n=t.classes[0],o=e.classes[0];"mbin"===n&&u.contains(Xe,o)?t.classes[0]="mord":"mbin"===o&&u.contains(Je,n)&&(e.classes[0]="mord")}),{node:d},h,p),nt(r,(function(e,t){var n=rt(t),o=rt(e),r=n&&o?e.hasClass("mtight")?Ve[n][o]:Ge[n][o]:null;if(r)return je.makeGlue(r,c)}),{node:d},h,p),r},nt=function e(t,n,o,r,i){r&&t.push(r);for(var a=0;a<t.length;a++){var s=t[a],c=ot(s);if(c)e(c.children,n,o,null,i);else{var l=!s.hasClass("mspace");if(l){var d=n(s,o.node);d&&(o.insertAfter?o.insertAfter(d):(t.unshift(d),a++))}l?o.node=s:i&&s.hasClass("newline")&&(o.node=Qe(["leftmost"])),o.insertAfter=function(e){return function(n){t.splice(e+1,0,n),a++}}(a)}}r&&t.pop()},ot=function(e){return e instanceof x||e instanceof A||e instanceof I&&e.hasClass("enclosing")?e:null},rt=function(e,t){return e?(t&&(e=function e(t,n){var o=ot(t);if(o){var r=o.children;if(r.length){if("right"===n)return e(r[r.length-1],"right");if("left"===n)return e(r[0],"left")}}return t}(e,t)),et[e.classes[0]]||null):null},it=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return Qe(t.concat(n))},at=function(e,t,n){if(!e)return Qe();if(ze[e.type]){var o=ze[e.type](e,t);if(n&&t.size!==n.size){o=Qe(t.sizingClasses(n),[o],t);var r=t.sizeMultiplier/n.sizeMultiplier;o.height*=r,o.depth*=r}return o}throw new a("Got group of unknown type: '"+e.type+"'")};function st(e,t){var n=Qe(["base"],e,t),o=Qe(["strut"]);return o.style.height=n.height+n.depth+"em",o.style.verticalAlign=-n.depth+"em",n.children.unshift(o),n}function ct(e,t){var n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);for(var o,r=tt(e,t,"root"),i=[],a=[],s=0;s<r.length;s++)if(a.push(r[s]),r[s].hasClass("mbin")||r[s].hasClass("mrel")||r[s].hasClass("allowbreak")){for(var c=!1;s<r.length-1&&r[s+1].hasClass("mspace")&&!r[s+1].hasClass("newline");)s++,a.push(r[s]),r[s].hasClass("nobreak")&&(c=!0);c||(i.push(st(a,t)),a=[])}else r[s].hasClass("newline")&&(a.pop(),a.length>0&&(i.push(st(a,t)),a=[]),i.push(r[s]));a.length>0&&i.push(st(a,t)),n&&((o=st(tt(n,t,!0))).classes=["tag"],i.push(o));var l=Qe(["katex-html"],i);if(l.setAttribute("aria-hidden","true"),o){var d=o.children[0];d.style.height=l.height+l.depth+"em",d.style.verticalAlign=-l.depth+"em"}return l}function lt(e){return new x(e)}var dt=function(){function e(e,t){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=e,this.attributes={},this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.getAttribute=function(e){return this.attributes[e]},t.toNode=function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e},t.toMarkup=function(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=u.escape(this.attributes[t]),e+='"');e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</"+this.type+">"},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),ut=function(){function e(e){this.text=void 0,this.text=e}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.text)},t.toMarkup=function(){return u.escape(this.toText())},t.toText=function(){return this.text},e}(),ht={MathNode:dt,TextNode:ut,SpaceNode:function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?" ":e>=-.05556&&e<=-.05555?" ":e>=-.1667&&e<=-.1666?" ":e>=-.2223&&e<=-.2222?" ":e>=-.2778&&e<=-.2777?" ":null}var t=e.prototype;return t.toNode=function(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",this.width+"em"),e},t.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},t.toText=function(){return this.character?this.character:" "},e}(),newDocumentFragment:lt},pt=function(e,t,n){return!Y[t][e]||!Y[t][e].replace||55349===e.charCodeAt(0)||ne.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.substr(4,2)||n.font&&"tt"===n.font.substr(4,2))||(e=Y[t][e].replace),new ht.TextNode(e)},mt=function(e){return 1===e.length?e[0]:new ht.MathNode("mrow",e)},gt=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var o=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var r=e.text;return u.contains(["\\imath","\\jmath"],r)?null:(Y[o][r]&&Y[o][r].replace&&(r=Y[o][r].replace),V(r,je.fontMap[n].fontName,o)?je.fontMap[n].variant:null)},ft=function(e,t,n){if(1===e.length){var o=bt(e[0],t);return n&&o instanceof dt&&"mo"===o.type&&(o.setAttribute("lspace","0em"),o.setAttribute("rspace","0em")),[o]}for(var r,i=[],a=0;a<e.length;a++){var s=bt(e[a],t);if(s instanceof dt&&r instanceof dt){if("mtext"===s.type&&"mtext"===r.type&&s.getAttribute("mathvariant")===r.getAttribute("mathvariant")){var c;(c=r.children).push.apply(c,s.children);continue}if("mn"===s.type&&"mn"===r.type){var l;(l=r.children).push.apply(l,s.children);continue}if("mi"===s.type&&1===s.children.length&&"mn"===r.type){var d=s.children[0];if(d instanceof ut&&"."===d.text){var u;(u=r.children).push.apply(u,s.children);continue}}else if("mi"===r.type&&1===r.children.length){var h=r.children[0];if(h instanceof ut&&"̸"===h.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var p=s.children[0];p instanceof ut&&p.text.length>0&&(p.text=p.text.slice(0,1)+"̸"+p.text.slice(1),i.pop())}}}i.push(s),r=s}return i},_t=function(e,t,n){return mt(ft(e,t,n))},bt=function(e,t){if(!e)return new ht.MathNode("mrow");if(Ke[e.type])return Ke[e.type](e,t);throw new a("Got group of unknown type: '"+e.type+"'")};function vt(e,t,n,o,r){var i,a=ft(e,n);i=1===a.length&&a[0]instanceof dt&&u.contains(["mrow","mtable"],a[0].type)?a[0]:new ht.MathNode("mrow",a);var s=new ht.MathNode("annotation",[new ht.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var c=new ht.MathNode("semantics",[i,s]),l=new ht.MathNode("math",[c]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),o&&l.setAttribute("display","block");var d=r?"katex":"katex-mathml";return je.makeSpan([d],[l])}var yt=function(e){return new we({style:e.displayMode?E.DISPLAY:E.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},Et=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=je.makeSpan(n,[e])}return e},St=function(e,t,n){var o,r=yt(n);if("mathml"===n.output)return vt(e,t,r,n.displayMode,!0);if("html"===n.output){var i=ct(e,r);o=je.makeSpan(["katex"],[i])}else{var a=vt(e,t,r,n.displayMode,!1),s=ct(e,r);o=je.makeSpan(["katex"],[a,s])}return Et(o,n)},wt={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋"},Ct={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Tt=function(e,t,n,o){var r,i=e.height+e.depth+2*n;if(/fbox|color/.test(t)){if(r=je.makeSpan(["stretchy",t],[],o),"fbox"===t){var a=o.color&&o.getColor();a&&(r.style.borderColor=a)}}else{var s=[];/^[bx]cancel$/.test(t)&&s.push(new j({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&s.push(new j({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new P(s,{width:"100%",height:i+"em"});r=je.makeSvgSpan([],[c],o)}return r.height=i,r.style.height=i+"em",r},xt=function(e){var t=new ht.MathNode("mo",[new ht.TextNode(wt[e.substr(1)])]);return t.setAttribute("stretchy","true"),t},Ot=function(e,t){var n=function(){var n=4e5,o=e.label.substr(1);if(u.contains(["widehat","widecheck","widetilde","utilde"],o)){var r,i,a,s="ordgroup"===(m=e.base).type?m.body.length:1;if(s>5)"widehat"===o||"widecheck"===o?(r=420,n=2364,a=.42,i=o+"4"):(r=312,n=2340,a=.34,i="tilde4");else{var c=[1,1,2,2,3,3][s];"widehat"===o||"widecheck"===o?(n=[0,1062,2364,2364,2364][c],r=[0,239,300,360,420][c],a=[0,.24,.3,.3,.36,.42][c],i=o+c):(n=[0,600,1033,2339,2340][c],r=[0,260,286,306,312][c],a=[0,.26,.286,.3,.306,.34][c],i="tilde"+c)}var l=new L(i),d=new P([l],{width:"100%",height:a+"em",viewBox:"0 0 "+n+" "+r,preserveAspectRatio:"none"});return{span:je.makeSvgSpan([],[d],t),minWidth:0,height:a}}var h,p,m,g=[],f=Ct[o],_=f[0],b=f[1],v=f[2],y=v/1e3,E=_.length;if(1===E)h=["hide-tail"],p=[f[3]];else if(2===E)h=["halfarrow-left","halfarrow-right"],p=["xMinYMin","xMaxYMin"];else{if(3!==E)throw new Error("Correct katexImagesData or update code here to support\n "+E+" children.");h=["brace-left","brace-center","brace-right"],p=["xMinYMin","xMidYMin","xMaxYMin"]}for(var S=0;S<E;S++){var w=new L(_[S]),C=new P([w],{width:"400em",height:y+"em",viewBox:"0 0 "+n+" "+v,preserveAspectRatio:p[S]+" slice"}),T=je.makeSvgSpan([h[S]],[C],t);if(1===E)return{span:T,minWidth:b,height:y};T.style.height=y+"em",g.push(T)}return{span:je.makeSpan(["stretchy"],g,t),minWidth:b,height:y}}(),o=n.span,r=n.minWidth,i=n.height;return o.height=i,o.style.height=i+"em",r>0&&(o.style.minWidth=r+"em"),o};function kt(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Rt(e){var t=Dt(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Dt(e){return e&&("atom"===e.type||K.hasOwnProperty(e.type))?e:null}var It=function(e,t){var n,o,r;e&&"supsub"===e.type?(n=(o=kt(e.base,"accent")).base,e.base=n,r=function(e){if(e instanceof I)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(at(e,t)),e.base=o):n=(o=kt(e,"accent")).base;var i=at(n,t.havingCrampedStyle()),a=0;if(o.isShifty&&u.isCharacterBox(n)){var s=u.getBaseElem(n);a=U(at(s,t.havingCrampedStyle())).skew}var c,l=Math.min(i.height,t.fontMetrics().xHeight);if(o.isStretchy)c=Ot(o,t),c=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+2*a+"em)",marginLeft:2*a+"em"}:void 0}]},t);else{var d,h;"\\vec"===o.label?(d=je.staticSvg("vec",t),h=je.svgData.vec[1]):((d=U(d=je.makeOrd({mode:o.mode,text:o.label},t,"textord"))).italic=0,h=d.width),c=je.makeSpan(["accent-body"],[d]);var p="\\textcircled"===o.label;p&&(c.classes.push("accent-full"),l=i.height);var m=a;p||(m-=h/2),c.style.left=m+"em","\\textcircled"===o.label&&(c.style.top=".2em"),c=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-l},{type:"elem",elem:c}]},t)}var g=je.makeSpan(["mord","accent"],[c],t);return r?(r.children[0]=g,r.height=Math.max(g.height,r.height),r.classes[0]="mord",r):g},At=function(e,t){var n=e.isStretchy?xt(e.label):new ht.MathNode("mo",[pt(e.label,e.mode)]),o=new ht.MathNode("mover",[bt(e.base,t),n]);return o.setAttribute("accent","true"),o},Nt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(e){return"\\"+e})).join("|"));We({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var n=t[0],o=!Nt.test(e.funcName),r=!o||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:o,isShifty:r,base:n}},htmlBuilder:It,mathmlBuilder:At}),We({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=t[0];return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:It,mathmlBuilder:At}),We({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var n=e.parser,o=e.funcName,r=t[0];return{type:"accentUnder",mode:n.mode,label:o,base:r}},htmlBuilder:function(e,t){var n=at(e.base,t),o=Ot(e,t),r="\\utilde"===e.label?.12:0,i=je.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:o,wrapperClasses:["svg-align"]},{type:"kern",size:r},{type:"elem",elem:n}]},t);return je.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:function(e,t){var n=xt(e.label),o=new ht.MathNode("munder",[bt(e.base,t),n]);return o.setAttribute("accentunder","true"),o}});var Ft=function(e){var t=new ht.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};We({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var o=e.parser,r=e.funcName;return{type:"xArrow",mode:o.mode,label:r,body:t[0],below:n[0]}},htmlBuilder:function(e,t){var n,o=t.style,r=t.havingStyle(o.sup()),i=je.wrapFragment(at(e.body,r,t),t);i.classes.push("x-arrow-pad"),e.below&&(r=t.havingStyle(o.sub()),(n=je.wrapFragment(at(e.below,r,t),t)).classes.push("x-arrow-pad"));var a,s=Ot(e,t),c=-t.fontMetrics().axisHeight+.5*s.height,l=-t.fontMetrics().axisHeight-.5*s.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(l-=i.depth),n){var d=-t.fontMetrics().axisHeight+n.height+.5*s.height+.111;a=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:s,shift:c},{type:"elem",elem:n,shift:d}]},t)}else a=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:s,shift:c}]},t);return a.children[0].children[0].children[1].classes.push("svg-align"),je.makeSpan(["mrel","x-arrow"],[a],t)},mathmlBuilder:function(e,t){var n,o=xt(e.label);if(e.body){var r=Ft(bt(e.body,t));if(e.below){var i=Ft(bt(e.below,t));n=new ht.MathNode("munderover",[o,i,r])}else n=new ht.MathNode("mover",[o,r])}else if(e.below){var a=Ft(bt(e.below,t));n=new ht.MathNode("munder",[o,a])}else n=Ft(),n=new ht.MathNode("mover",[o,n]);return n}}),We({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var n=e.parser,o=kt(t[0],"ordgroup").body,r="",i=0;i<o.length;i++)r+=kt(o[i],"textord").text;var s=parseInt(r);if(isNaN(s))throw new a("\\@char has non-numeric argument "+r);return{type:"textord",mode:n.mode,text:String.fromCharCode(s)}}});var Mt=function(e,t){var n=tt(e.body,t.withColor(e.color),!1);return je.makeFragment(n)},Pt=function(e,t){var n=ft(e.body,t.withColor(e.color)),o=new ht.MathNode("mstyle",n);return o.setAttribute("mathcolor",e.color),o};We({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(e,t){var n=e.parser,o=kt(t[0],"color-token").color,r=t[1];return{type:"color",mode:n.mode,color:o,body:$e(r)}},htmlBuilder:Mt,mathmlBuilder:Pt}),We({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(e,t){var n=e.parser,o=e.breakOnTokenText,r=kt(t[0],"color-token").color;n.gullet.macros.set("\\current@color",r);var i=n.parseExpression(!0,o);return{type:"color",mode:n.mode,color:r,body:i}},htmlBuilder:Mt,mathmlBuilder:Pt}),We({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t,n){var o=e.parser,r=e.funcName,i=n[0],a="\\cr"===r,s=!1;return a||(s=!o.settings.displayMode||!o.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")),{type:"cr",mode:o.mode,newLine:s,newRow:a,size:i&&kt(i,"size").value}},htmlBuilder:function(e,t){if(e.newRow)throw new a("\\cr valid only within a tabular/array environment");var n=je.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Oe(e.size,t)+"em")),n},mathmlBuilder:function(e,t){var n=new ht.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Oe(e.size,t)+"em")),n}});var Lt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},jt=function(e){var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new a("Expected a control sequence",e);return t},Ut=function(e,t,n,o){var r=e.gullet.macros.get(n.text);null==r&&(n.noexpand=!0,r={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,r,o)};We({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var o=t.fetch();if(Lt[o.text])return"\\global"!==n&&"\\\\globallong"!==n||(o.text=Lt[o.text]),kt(t.parseFunction(),"internal");throw new a("Invalid token after macro prefix",o)}}),We({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName,o=t.gullet.consumeArgs(1)[0];if(1!==o.length)throw new a("\\gdef's first argument must be a macro name");var r=o[0].text,i=0;for(o=t.gullet.consumeArgs(1)[0];1===o.length&&"#"===o[0].text;){if(1!==(o=t.gullet.consumeArgs(1)[0]).length)throw new a('Invalid argument number length "'+o.length+'"');if(!/^[1-9]$/.test(o[0].text))throw new a('Invalid argument number "'+o[0].text+'"');if(i++,parseInt(o[0].text)!==i)throw new a('Argument number "'+o[0].text+'" out of order');o=t.gullet.consumeArgs(1)[0]}return"\\edef"!==n&&"\\xdef"!==n||(o=t.gullet.expandTokens(o)).reverse(),t.gullet.macros.set(r,{tokens:o,numArgs:i},n===Lt[n]),{type:"internal",mode:t.mode}}}),We({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName,o=jt(t.gullet.popToken());t.gullet.consumeSpaces();var r=function(e){var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t}(t);return Ut(t,o,r,"\\\\globallet"===n),{type:"internal",mode:t.mode}}}),We({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName,o=jt(t.gullet.popToken()),r=t.gullet.popToken(),i=t.gullet.popToken();return Ut(t,o,i,"\\\\globalfuture"===n),t.gullet.pushToken(i),t.gullet.pushToken(r),{type:"internal",mode:t.mode}}});var Bt=function(e,t,n){var o=V(Y.math[e]&&Y.math[e].replace||e,t,n);if(!o)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return o},qt=function(e,t,n,o){var r=n.havingBaseStyle(t),i=je.makeSpan(o.concat(r.sizingClasses(n)),[e],n),a=r.sizeMultiplier/n.sizeMultiplier;return i.height*=a,i.depth*=a,i.maxFontSize=r.sizeMultiplier,i},Gt=function(e,t,n){var o=t.havingBaseStyle(n),r=(1-t.sizeMultiplier/o.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=r+"em",e.height-=r,e.depth+=r},Vt=function(e,t,n,o,r,i){var a=function(e,t,n,o){return je.makeSymbol(e,"Size"+t+"-Regular",n,o)}(e,t,r,o),s=qt(je.makeSpan(["delimsizing","size"+t],[a],o),E.TEXT,o,i);return n&&Gt(s,o,E.TEXT),s},Ht=function(e,t,n){var o;return o="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:je.makeSpan(["delimsizinginner",o],[je.makeSpan([],[je.makeSymbol(e,t,n)])])}},zt={type:"kern",size:-.005},Kt=function(e,t,n,o,r,i){var a,s,c,l;a=c=l=e,s=null;var d="Size1-Regular";"\\uparrow"===e?c=l="⏐":"\\Uparrow"===e?c=l="‖":"\\downarrow"===e?a=c="⏐":"\\Downarrow"===e?a=c="‖":"\\updownarrow"===e?(a="\\uparrow",c="⏐",l="\\downarrow"):"\\Updownarrow"===e?(a="\\Uparrow",c="‖",l="\\Downarrow"):"["===e||"\\lbrack"===e?(a="⎡",c="⎢",l="⎣",d="Size4-Regular"):"]"===e||"\\rbrack"===e?(a="⎤",c="⎥",l="⎦",d="Size4-Regular"):"\\lfloor"===e||"⌊"===e?(c=a="⎢",l="⎣",d="Size4-Regular"):"\\lceil"===e||"⌈"===e?(a="⎡",c=l="⎢",d="Size4-Regular"):"\\rfloor"===e||"⌋"===e?(c=a="⎥",l="⎦",d="Size4-Regular"):"\\rceil"===e||"⌉"===e?(a="⎤",c=l="⎥",d="Size4-Regular"):"("===e||"\\lparen"===e?(a="⎛",c="⎜",l="⎝",d="Size4-Regular"):")"===e||"\\rparen"===e?(a="⎞",c="⎟",l="⎠",d="Size4-Regular"):"\\{"===e||"\\lbrace"===e?(a="⎧",s="⎨",l="⎩",c="⎪",d="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(a="⎫",s="⎬",l="⎭",c="⎪",d="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(a="⎧",l="⎩",c="⎪",d="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(a="⎫",l="⎭",c="⎪",d="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(a="⎧",l="⎭",c="⎪",d="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(a="⎫",l="⎩",c="⎪",d="Size4-Regular");var u=Bt(a,d,r),h=u.height+u.depth,p=Bt(c,d,r),m=p.height+p.depth,g=Bt(l,d,r),f=g.height+g.depth,_=0,b=1;if(null!==s){var v=Bt(s,d,r);_=v.height+v.depth,b=2}var y=h+f+_,S=Math.max(0,Math.ceil((t-y)/(b*m))),w=y+S*b*m,C=o.fontMetrics().axisHeight;n&&(C*=o.sizeMultiplier);var T=w/2-C,x=.005*(S+1)-m,O=[];if(O.push(Ht(l,d,r)),null===s)for(var k=0;k<S;k++)O.push(zt),O.push(Ht(c,d,r));else{for(var R=0;R<S;R++)O.push(zt),O.push(Ht(c,d,r));O.push({type:"kern",size:x}),O.push(Ht(c,d,r)),O.push(zt),O.push(Ht(s,d,r));for(var D=0;D<S;D++)O.push(zt),O.push(Ht(c,d,r))}if("⎜"!==c&&"⎟"!==c||0!==S)O.push({type:"kern",size:x}),O.push(Ht(c,d,r)),O.push(zt);else{var I=je.svgData.leftParenInner[2]/2;O.push({type:"kern",size:-I});var A="⎜"===c?"leftParenInner":"rightParenInner",N=je.staticSvg(A,o);O.push({type:"elem",elem:N}),O.push({type:"kern",size:-I})}O.push(Ht(a,d,r));var F=o.havingBaseStyle(E.TEXT),M=je.makeVList({positionType:"bottom",positionData:T,children:O},F);return qt(je.makeSpan(["delimsizing","mult"],[M],F),E.TEXT,o,i)},Wt=function(e,t,n,o,r){var i=function(e,t,n){t*=1e3;var o="";switch(e){case"sqrtMain":o=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,80);break;case"sqrtSize1":o=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,80);break;case"sqrtSize2":o=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,80);break;case"sqrtSize3":o=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,80);break;case"sqrtSize4":o=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,80);break;case"sqrtTall":o=function(e,t,n){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(n-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,80,n)}return o}(e,o,n),a=new L(e,i),s=new P([a],{width:"400em",height:t+"em",viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return je.makeSvgSpan(["hide-tail"],[s],r)},Yt=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],$t=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Qt=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Jt=[0,1.2,1.8,2.4,3],Xt=[{type:"small",style:E.SCRIPTSCRIPT},{type:"small",style:E.SCRIPT},{type:"small",style:E.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Zt=[{type:"small",style:E.SCRIPTSCRIPT},{type:"small",style:E.SCRIPT},{type:"small",style:E.TEXT},{type:"stack"}],en=[{type:"small",style:E.SCRIPTSCRIPT},{type:"small",style:E.SCRIPT},{type:"small",style:E.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],tn=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},nn=function(e,t,n,o){for(var r=Math.min(2,3-o.style.size);r<n.length&&"stack"!==n[r].type;r++){var i=Bt(e,tn(n[r]),"math"),a=i.height+i.depth;if("small"===n[r].type&&(a*=o.havingBaseStyle(n[r].style).sizeMultiplier),a>t)return n[r]}return n[n.length-1]},on=function(e,t,n,o,r,i){var a;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),a=u.contains(Qt,e)?Xt:u.contains(Yt,e)?en:Zt;var s=nn(e,t,a,o);return"small"===s.type?function(e,t,n,o,r,i){var a=je.makeSymbol(e,"Main-Regular",r,o),s=qt(a,t,o,i);return n&&Gt(s,o,t),s}(e,s.style,n,o,r,i):"large"===s.type?Vt(e,s.size,n,o,r,i):Kt(e,t,n,o,r,i)},rn=function(e,t){var n,o,r=t.havingBaseSizing(),i=nn("\\surd",e*r.sizeMultiplier,en,r),a=r.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),c=0,l=0,d=0;return"small"===i.type?(e<1?a=1:e<1.4&&(a=.7),l=(1+s)/a,(n=Wt("sqrtMain",c=(1+s+.08)/a,d=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",o=.833/a):"large"===i.type?(d=1080*Jt[i.size],l=(Jt[i.size]+s)/a,c=(Jt[i.size]+s+.08)/a,(n=Wt("sqrtSize"+i.size,c,d,s,t)).style.minWidth="1.02em",o=1/a):(c=e+s+.08,l=e+s,d=Math.floor(1e3*e+s)+80,(n=Wt("sqrtTall",c,d,s,t)).style.minWidth="0.742em",o=1.056),n.height=l,n.style.height=c+"em",{span:n,advanceWidth:o,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*a}},an=function(e,t,n,o,r){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),u.contains(Yt,e)||u.contains(Qt,e))return Vt(e,t,!1,n,o,r);if(u.contains($t,e))return Kt(e,Jt[t],!1,n,o,r);throw new a("Illegal delimiter: '"+e+"'")},sn=on,cn=function(e,t,n,o,r,i){var a=o.fontMetrics().axisHeight*o.sizeMultiplier,s=5/o.fontMetrics().ptPerEm,c=Math.max(t-a,n+a),l=Math.max(c/500*901,2*c-s);return on(e,l,!0,o,r,i)},ln={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},dn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function un(e,t){var n=Dt(e);if(n&&u.contains(dn,n.text))return n;throw new a(n?"Invalid delimiter '"+n.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function hn(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}We({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(e,t){var n=un(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:ln[e.funcName].size,mclass:ln[e.funcName].mclass,delim:n.text}},htmlBuilder:function(e,t){return"."===e.delim?je.makeSpan([e.mclass]):an(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(pt(e.delim,e.mode));var n=new ht.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n}}),We({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(e,t){var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new a("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:un(t[0],e).text,color:n}}}),We({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(e,t){var n=un(t[0],e),o=e.parser;++o.leftrightDepth;var r=o.parseExpression(!1);--o.leftrightDepth,o.expect("\\right",!1);var i=kt(o.parseFunction(),"leftright-right");return{type:"leftright",mode:o.mode,body:r,left:n.text,right:i.delim,rightColor:i.color}},htmlBuilder:function(e,t){hn(e);for(var n,o,r=tt(e.body,t,!0,["mopen","mclose"]),i=0,a=0,s=!1,c=0;c<r.length;c++)r[c].isMiddle?s=!0:(i=Math.max(r[c].height,i),a=Math.max(r[c].depth,a));if(i*=t.sizeMultiplier,a*=t.sizeMultiplier,n="."===e.left?it(t,["mopen"]):cn(e.left,i,a,t,e.mode,["mopen"]),r.unshift(n),s)for(var l=1;l<r.length;l++){var d=r[l].isMiddle;d&&(r[l]=cn(d.delim,i,a,d.options,e.mode,[]))}if("."===e.right)o=it(t,["mclose"]);else{var u=e.rightColor?t.withColor(e.rightColor):t;o=cn(e.right,i,a,u,e.mode,["mclose"])}return r.push(o),je.makeSpan(["minner"],r,t)},mathmlBuilder:function(e,t){hn(e);var n=ft(e.body,t);if("."!==e.left){var o=new ht.MathNode("mo",[pt(e.left,e.mode)]);o.setAttribute("fence","true"),n.unshift(o)}if("."!==e.right){var r=new ht.MathNode("mo",[pt(e.right,e.mode)]);r.setAttribute("fence","true"),e.rightColor&&r.setAttribute("mathcolor",e.rightColor),n.push(r)}return mt(n)}}),We({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(e,t){var n=un(t[0],e);if(!e.parser.leftrightDepth)throw new a("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:function(e,t){var n;if("."===e.delim)n=it(t,[]);else{n=an(e.delim,1,t,e.mode,[]);var o={delim:e.delim,options:t};n.isMiddle=o}return n},mathmlBuilder:function(e,t){var n="\\vert"===e.delim||"|"===e.delim?pt("|","text"):pt(e.delim,e.mode),o=new ht.MathNode("mo",[n]);return o.setAttribute("fence","true"),o.setAttribute("lspace","0.05em"),o.setAttribute("rspace","0.05em"),o}});var pn=function(e,t){var n,o,r=je.wrapFragment(at(e.body,t),t),i=e.label.substr(1),a=t.sizeMultiplier,s=0,c=u.isCharacterBox(e.body);if("sout"===i)(n=je.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/a,s=-.5*t.fontMetrics().xHeight;else{/cancel/.test(i)?c||r.classes.push("cancel-pad"):r.classes.push("boxpad");var l=0,d=0;/box/.test(i)?(d=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),l=t.fontMetrics().fboxsep+("colorbox"===i?0:d)):l=c?.2:0,n=Tt(r,i,l,t),/fbox|boxed|fcolorbox/.test(i)&&(n.style.borderStyle="solid",n.style.borderWidth=d+"em"),s=r.depth+l,e.backgroundColor&&(n.style.backgroundColor=e.backgroundColor,e.borderColor&&(n.style.borderColor=e.borderColor))}return o=e.backgroundColor?je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:s},{type:"elem",elem:r,shift:0}]},t):je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:n,shift:s,wrapperClasses:/cancel/.test(i)?["svg-align"]:[]}]},t),/cancel/.test(i)&&(o.height=r.height,o.depth=r.depth),/cancel/.test(i)&&!c?je.makeSpan(["mord","cancel-lap"],[o],t):je.makeSpan(["mord"],[o],t)},mn=function(e,t){var n=0,o=new ht.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[bt(e.body,t)]);switch(e.label){case"\\cancel":o.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":o.setAttribute("notation","downdiagonalstrike");break;case"\\sout":o.setAttribute("notation","horizontalstrike");break;case"\\fbox":o.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,o.setAttribute("width","+"+2*n+"pt"),o.setAttribute("height","+"+2*n+"pt"),o.setAttribute("lspace",n+"pt"),o.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var r=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);o.setAttribute("style","border: "+r+"em solid "+String(e.borderColor))}break;case"\\xcancel":o.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&o.setAttribute("mathbackground",e.backgroundColor),o};We({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(e,t,n){var o=e.parser,r=e.funcName,i=kt(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:o.mode,label:r,backgroundColor:i,body:a}},htmlBuilder:pn,mathmlBuilder:mn}),We({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(e,t,n){var o=e.parser,r=e.funcName,i=kt(t[0],"color-token").color,a=kt(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:o.mode,label:r,backgroundColor:a,borderColor:i,body:s}},htmlBuilder:pn,mathmlBuilder:mn}),We({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\fbox",body:t[0]}}}),We({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(e,t,n){var o=e.parser,r=e.funcName,i=t[0];return{type:"enclose",mode:o.mode,label:r,body:i}},htmlBuilder:pn,mathmlBuilder:mn});var gn={};function fn(e){for(var t=e.type,n=e.names,o=e.props,r=e.handler,i=e.htmlBuilder,a=e.mathmlBuilder,s={type:t,numArgs:o.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:r},c=0;c<n.length;++c)gn[n[c]]=s;i&&(ze[t]=i),a&&(Ke[t]=a)}function _n(e){var t=[];e.consumeSpaces();for(var n=e.fetch().text;"\\hline"===n||"\\hdashline"===n;)e.consume(),t.push("\\hdashline"===n),e.consumeSpaces(),n=e.fetch().text;return t}function bn(e,t,n){var o=t.hskipBeforeAndAfter,r=t.addJot,i=t.cols,s=t.arraystretch,c=t.colSeparationType;if(e.gullet.beginGroup(),e.gullet.macros.set("\\\\","\\cr"),!s){var l=e.gullet.expandMacroAsText("\\arraystretch");if(null==l)s=1;else if(!(s=parseFloat(l))||s<0)throw new a("Invalid \\arraystretch: "+l)}e.gullet.beginGroup();var d=[],u=[d],h=[],p=[];for(p.push(_n(e));;){var m=e.parseExpression(!1,"\\cr");e.gullet.endGroup(),e.gullet.beginGroup(),m={type:"ordgroup",mode:e.mode,body:m},n&&(m={type:"styling",mode:e.mode,style:n,body:[m]}),d.push(m);var g=e.fetch().text;if("&"===g)e.consume();else{if("\\end"===g){1===d.length&&"styling"===m.type&&0===m.body[0].body.length&&u.pop(),p.length<u.length+1&&p.push([]);break}if("\\cr"!==g)throw new a("Expected & or \\\\ or \\cr or \\end",e.nextToken);var f=kt(e.parseFunction(),"cr");h.push(f.size),p.push(_n(e)),d=[],u.push(d)}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:r,arraystretch:s,body:u,cols:i,rowGaps:h,hskipBeforeAndAfter:o,hLinesBeforeRow:p,colSeparationType:c}}function vn(e){return"d"===e.substr(0,1)?"display":"text"}var yn=function(e,t){var n,o,r=e.body.length,i=e.hLinesBeforeRow,s=0,c=new Array(r),l=[],d=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),h=1/t.fontMetrics().ptPerEm,p=5*h;e.colSeparationType&&"small"===e.colSeparationType&&(p=t.havingStyle(E.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var m=12*h,g=3*h,f=e.arraystretch*m,_=.7*f,b=.3*f,v=0;function y(e){for(var t=0;t<e.length;++t)t>0&&(v+=.25),l.push({pos:v,isDashed:e[t]})}for(y(i[0]),n=0;n<e.body.length;++n){var S=e.body[n],w=_,C=b;s<S.length&&(s=S.length);var T=new Array(S.length);for(o=0;o<S.length;++o){var x=at(S[o],t);C<x.depth&&(C=x.depth),w<x.height&&(w=x.height),T[o]=x}var O=e.rowGaps[n],k=0;O&&(k=Oe(O,t))>0&&(C<(k+=b)&&(C=k),k=0),e.addJot&&(C+=g),T.height=w,T.depth=C,v+=w,T.pos=v,v+=C+k,c[n]=T,y(i[n+1])}var R,D,I=v/2+t.fontMetrics().axisHeight,A=e.cols||[],N=[];for(o=0,D=0;o<s||D<A.length;++o,++D){for(var F=A[D]||{},M=!0;"separator"===F.type;){if(M||((R=je.makeSpan(["arraycolsep"],[])).style.width=t.fontMetrics().doubleRuleSep+"em",N.push(R)),"|"!==F.separator&&":"!==F.separator)throw new a("Invalid separator type: "+F.separator);var P="|"===F.separator?"solid":"dashed",L=je.makeSpan(["vertical-separator"],[],t);L.style.height=v+"em",L.style.borderRightWidth=d+"em",L.style.borderRightStyle=P,L.style.margin="0 -"+d/2+"em",L.style.verticalAlign=-(v-I)+"em",N.push(L),F=A[++D]||{},M=!1}if(!(o>=s)){var j=void 0;(o>0||e.hskipBeforeAndAfter)&&0!==(j=u.deflt(F.pregap,p))&&((R=je.makeSpan(["arraycolsep"],[])).style.width=j+"em",N.push(R));var U=[];for(n=0;n<r;++n){var B=c[n],q=B[o];if(q){var G=B.pos-I;q.depth=B.depth,q.height=B.height,U.push({type:"elem",elem:q,shift:G})}}U=je.makeVList({positionType:"individualShift",children:U},t),U=je.makeSpan(["col-align-"+(F.align||"c")],[U]),N.push(U),(o<s-1||e.hskipBeforeAndAfter)&&0!==(j=u.deflt(F.postgap,p))&&((R=je.makeSpan(["arraycolsep"],[])).style.width=j+"em",N.push(R))}}if(c=je.makeSpan(["mtable"],N),l.length>0){for(var V=je.makeLineSpan("hline",t,d),H=je.makeLineSpan("hdashline",t,d),z=[{type:"elem",elem:c,shift:0}];l.length>0;){var K=l.pop(),W=K.pos-I;K.isDashed?z.push({type:"elem",elem:H,shift:W}):z.push({type:"elem",elem:V,shift:W})}c=je.makeVList({positionType:"individualShift",children:z},t)}return je.makeSpan(["mord"],[c],t)},En={c:"center ",l:"left ",r:"right "},Sn=function(e,t){var n=new ht.MathNode("mtable",e.body.map((function(e){return new ht.MathNode("mtr",e.map((function(e){return new ht.MathNode("mtd",[bt(e,t)])})))}))),o=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);n.setAttribute("rowspacing",o+"em");var r="",i="";if(e.cols&&e.cols.length>0){var a=e.cols,s="",c=!1,l=0,d=a.length;"separator"===a[0].type&&(r+="top ",l=1),"separator"===a[a.length-1].type&&(r+="bottom ",d-=1);for(var u=l;u<d;u++)"align"===a[u].type?(i+=En[a[u].align],c&&(s+="none "),c=!0):"separator"===a[u].type&&c&&(s+="|"===a[u].separator?"solid ":"dashed ",c=!1);n.setAttribute("columnalign",i.trim()),/[sd]/.test(s)&&n.setAttribute("columnlines",s.trim())}if("align"===e.colSeparationType){for(var h=e.cols||[],p="",m=1;m<h.length;m++)p+=m%2?"0em ":"1em ";n.setAttribute("columnspacing",p.trim())}else"alignat"===e.colSeparationType?n.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?n.setAttribute("columnspacing","0.2778em"):n.setAttribute("columnspacing","1em");var g="",f=e.hLinesBeforeRow;r+=f[0].length>0?"left ":"",r+=f[f.length-1].length>0?"right ":"";for(var _=1;_<f.length-1;_++)g+=0===f[_].length?"none ":f[_][0]?"dashed ":"solid ";return/[sd]/.test(g)&&n.setAttribute("rowlines",g.trim()),""!==r&&(n=new ht.MathNode("menclose",[n])).setAttribute("notation",r.trim()),e.arraystretch&&e.arraystretch<1&&(n=new ht.MathNode("mstyle",[n])).setAttribute("scriptlevel","1"),n},wn=function(e,t){var n,o=[],r=bn(e.parser,{cols:o,addJot:!0},"display"),i=0,s={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var c="",l=0;l<t[0].body.length;l++)c+=kt(t[0].body[l],"textord").text;n=Number(c),i=2*n}var d=!i;r.body.forEach((function(e){for(var t=1;t<e.length;t+=2){var o=kt(e[t],"styling");kt(o.body[0],"ordgroup").body.unshift(s)}if(d)i<e.length&&(i=e.length);else{var r=e.length/2;if(n<r)throw new a("Too many math in a row: expected "+n+", but got "+r,e[0])}}));for(var u=0;u<i;++u){var h="r",p=0;u%2==1?h="l":u>0&&d&&(p=1),o[u]={type:"align",align:h,pregap:p,postgap:0}}return r.colSeparationType=d?"align":"alignat",r};fn({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var n={cols:(Dt(t[0])?[t[0]]:kt(t[0],"ordgroup").body).map((function(e){var t=Rt(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new a("Unknown column alignment: "+t,e)})),hskipBeforeAndAfter:!0};return bn(e.parser,n,vn(e.envName))},htmlBuilder:yn,mathmlBuilder:Sn}),fn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName],n=bn(e.parser,{hskipBeforeAndAfter:!1},vn(e.envName));return t?{type:"leftright",mode:e.mode,body:[n],left:t[0],right:t[1],rightColor:void 0}:n},htmlBuilder:yn,mathmlBuilder:Sn}),fn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t=bn(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:yn,mathmlBuilder:Sn}),fn({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var n=(Dt(t[0])?[t[0]]:kt(t[0],"ordgroup").body).map((function(e){var t=Rt(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new a("Unknown column alignment: "+t,e)}));if(n.length>1)throw new a("{subarray} can contain only one column");var o={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if((o=bn(e.parser,o,"script")).body.length>0&&o.body[0].length>1)throw new a("{subarray} can contain only one column");return o},htmlBuilder:yn,mathmlBuilder:Sn}),fn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(e){var t=bn(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},vn(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:yn,mathmlBuilder:Sn}),fn({type:"array",names:["aligned"],props:{numArgs:0},handler:wn,htmlBuilder:yn,mathmlBuilder:Sn}),fn({type:"array",names:["gathered"],props:{numArgs:0},handler:function(e){return bn(e.parser,{cols:[{type:"align",align:"c"}],addJot:!0},"display")},htmlBuilder:yn,mathmlBuilder:Sn}),fn({type:"array",names:["alignedat"],props:{numArgs:1},handler:wn,htmlBuilder:yn,mathmlBuilder:Sn}),We({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e,t){throw new a(e.funcName+" valid only within array environment")}});var Cn=gn;We({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var n=e.parser,o=e.funcName,r=t[0];if("ordgroup"!==r.type)throw new a("Invalid environment name",r);for(var i="",s=0;s<r.body.length;++s)i+=kt(r.body[s],"textord").text;if("\\begin"===o){if(!Cn.hasOwnProperty(i))throw new a("No such environment: "+i,r);var c=Cn[i],l=n.parseArguments("\\begin{"+i+"}",c),d=l.args,u=l.optArgs,h={mode:n.mode,envName:i,parser:n},p=c.handler(h,d,u);n.expect("\\end",!1);var m=n.nextToken,g=kt(n.parseFunction(),"environment");if(g.name!==i)throw new a("Mismatch: \\begin{"+i+"} matched by \\end{"+g.name+"}",m);return p}return{type:"environment",mode:n.mode,name:i,nameGroup:r}}});var Tn=je.makeSpan;function xn(e,t){var n=tt(e.body,t,!0);return Tn([e.mclass],n,t)}function On(e,t){var n,o=ft(e.body,t);return"minner"===e.mclass?ht.newDocumentFragment(o):("mord"===e.mclass?e.isCharacterBox?(n=o[0]).type="mi":n=new ht.MathNode("mi",o):(e.isCharacterBox?(n=o[0]).type="mo":n=new ht.MathNode("mo",o),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"!==e.mclass&&"mclose"!==e.mclass||(n.attributes.lspace="0em",n.attributes.rspace="0em")),n)}We({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(e,t){var n=e.parser,o=e.funcName,r=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+o.substr(5),body:$e(r),isCharacterBox:u.isCharacterBox(r)}},htmlBuilder:xn,mathmlBuilder:On});var kn=function(e){var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};We({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(e,t){return{type:"mclass",mode:e.parser.mode,mclass:kn(t[0]),body:[t[1]],isCharacterBox:u.isCharacterBox(t[1])}}}),We({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(e,t){var n,o=e.parser,r=e.funcName,i=t[1],a=t[0];n="\\stackrel"!==r?kn(i):"mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==r,body:$e(i)},c={type:"supsub",mode:a.mode,base:s,sup:"\\underset"===r?null:a,sub:"\\underset"===r?a:null};return{type:"mclass",mode:o.mode,mclass:n,body:[c],isCharacterBox:u.isCharacterBox(c)}},htmlBuilder:xn,mathmlBuilder:On});var Rn=function(e,t){var n=e.font,o=t.withFont(n);return at(e.body,o)},Dn=function(e,t){var n=e.font,o=t.withFont(n);return bt(e.body,o)},In={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};We({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(e,t){var n=e.parser,o=e.funcName,r=t[0],i=o;return i in In&&(i=In[i]),{type:"font",mode:n.mode,font:i.slice(1),body:r}},htmlBuilder:Rn,mathmlBuilder:Dn}),We({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(e,t){var n=e.parser,o=t[0],r=u.isCharacterBox(o);return{type:"mclass",mode:n.mode,mclass:kn(o),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:o}],isCharacterBox:r}}}),We({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.parser,o=e.funcName,r=e.breakOnTokenText,i=n.mode,a=n.parseExpression(!0,r);return{type:"font",mode:i,font:"math"+o.slice(1),body:{type:"ordgroup",mode:n.mode,body:a}}},htmlBuilder:Rn,mathmlBuilder:Dn});var An=function(e,t){var n=t;return"display"===e?n=n.id>=E.SCRIPT.id?n.text():E.DISPLAY:"text"===e&&n.size===E.DISPLAY.size?n=E.TEXT:"script"===e?n=E.SCRIPT:"scriptscript"===e&&(n=E.SCRIPTSCRIPT),n},Nn=function(e,t){var n,o=An(e.size,t.style),r=o.fracNum(),i=o.fracDen();n=t.havingStyle(r);var a=at(e.numer,n,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,c=3.5/t.fontMetrics().ptPerEm;a.height=a.height<s?s:a.height,a.depth=a.depth<c?c:a.depth}n=t.havingStyle(i);var l,d,u,h,p,m,g,f,_,b,v=at(e.denom,n,t);if(e.hasBarLine?(e.barSize?(d=Oe(e.barSize,t),l=je.makeLineSpan("frac-line",t,d)):l=je.makeLineSpan("frac-line",t),d=l.height,u=l.height):(l=null,d=0,u=t.fontMetrics().defaultRuleThickness),o.size===E.DISPLAY.size||"display"===e.size?(h=t.fontMetrics().num1,p=d>0?3*u:7*u,m=t.fontMetrics().denom1):(d>0?(h=t.fontMetrics().num2,p=u):(h=t.fontMetrics().num3,p=3*u),m=t.fontMetrics().denom2),l){var y=t.fontMetrics().axisHeight;h-a.depth-(y+.5*d)<p&&(h+=p-(h-a.depth-(y+.5*d))),y-.5*d-(v.height-m)<p&&(m+=p-(y-.5*d-(v.height-m)));var S=-(y-.5*d);g=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:v,shift:m},{type:"elem",elem:l,shift:S},{type:"elem",elem:a,shift:-h}]},t)}else{var w=h-a.depth-(v.height-m);w<p&&(h+=.5*(p-w),m+=.5*(p-w)),g=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:v,shift:m},{type:"elem",elem:a,shift:-h}]},t)}return n=t.havingStyle(o),g.height*=n.sizeMultiplier/t.sizeMultiplier,g.depth*=n.sizeMultiplier/t.sizeMultiplier,f=o.size===E.DISPLAY.size?t.fontMetrics().delim1:t.fontMetrics().delim2,_=null==e.leftDelim?it(t,["mopen"]):sn(e.leftDelim,f,!0,t.havingStyle(o),e.mode,["mopen"]),b=e.continued?je.makeSpan([]):null==e.rightDelim?it(t,["mclose"]):sn(e.rightDelim,f,!0,t.havingStyle(o),e.mode,["mclose"]),je.makeSpan(["mord"].concat(n.sizingClasses(t)),[_,je.makeSpan(["mfrac"],[g]),b],t)},Fn=function(e,t){var n=new ht.MathNode("mfrac",[bt(e.numer,t),bt(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var o=Oe(e.barSize,t);n.setAttribute("linethickness",o+"em")}}else n.setAttribute("linethickness","0px");var r=An(e.size,t.style);if(r.size!==t.style.size){n=new ht.MathNode("mstyle",[n]);var i=r.size===E.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",i),n.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var a=[];if(null!=e.leftDelim){var s=new ht.MathNode("mo",[new ht.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}if(a.push(n),null!=e.rightDelim){var c=new ht.MathNode("mo",[new ht.TextNode(e.rightDelim.replace("\\",""))]);c.setAttribute("fence","true"),a.push(c)}return mt(a)}return n};We({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(e,t){var n,o=e.parser,r=e.funcName,i=t[0],a=t[1],s=null,c=null,l="auto";switch(r){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,s="(",c=")";break;case"\\\\bracefrac":n=!1,s="\\{",c="\\}";break;case"\\\\brackfrac":n=!1,s="[",c="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\cfrac":case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text"}return{type:"genfrac",mode:o.mode,continued:"\\cfrac"===r,numer:i,denom:a,hasBarLine:n,leftDelim:s,rightDelim:c,size:l,barSize:null}},htmlBuilder:Nn,mathmlBuilder:Fn}),We({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(e){var t,n=e.parser,o=e.funcName,r=e.token;switch(o){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:t,token:r}}});var Mn=["display","text","script","scriptscript"],Pn=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};We({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var n,o=e.parser,r=t[4],i=t[5],a="atom"===t[0].type&&"open"===t[0].family?Pn(t[0].text):null,s="atom"===t[1].type&&"close"===t[1].family?Pn(t[1].text):null,c=kt(t[2],"size"),l=null;n=!!c.isBlank||(l=c.value).number>0;var d="auto",u=t[3];if("ordgroup"===u.type){if(u.body.length>0){var h=kt(u.body[0],"textord");d=Mn[Number(h.text)]}}else u=kt(u,"textord"),d=Mn[Number(u.text)];return{type:"genfrac",mode:o.mode,numer:r,denom:i,continued:!1,hasBarLine:n,barSize:l,leftDelim:a,rightDelim:s,size:d}},htmlBuilder:Nn,mathmlBuilder:Fn}),We({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var n=e.parser,o=(e.funcName,e.token);return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:kt(t[0],"size").value,token:o}}}),We({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var n=e.parser,o=(e.funcName,t[0]),r=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(kt(t[1],"infix").size),i=t[2],a=r.number>0;return{type:"genfrac",mode:n.mode,numer:o,denom:i,continued:!1,hasBarLine:a,barSize:r,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Nn,mathmlBuilder:Fn});var Ln=function(e,t){var n,o,r=t.style;"supsub"===e.type?(n=e.sup?at(e.sup,t.havingStyle(r.sup()),t):at(e.sub,t.havingStyle(r.sub()),t),o=kt(e.base,"horizBrace")):o=kt(e,"horizBrace");var i,a=at(o.base,t.havingBaseStyle(E.DISPLAY)),s=Ot(o,t);if(o.isOver?(i=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(i=je.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var c=je.makeSpan(["mord",o.isOver?"mover":"munder"],[i],t);i=o.isOver?je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:c},{type:"kern",size:.2},{type:"elem",elem:n}]},t):je.makeVList({positionType:"bottom",positionData:c.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:c}]},t)}return je.makeSpan(["mord",o.isOver?"mover":"munder"],[i],t)};We({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var n=e.parser,o=e.funcName;return{type:"horizBrace",mode:n.mode,label:o,isOver:/^\\over/.test(o),base:t[0]}},htmlBuilder:Ln,mathmlBuilder:function(e,t){var n=xt(e.label);return new ht.MathNode(e.isOver?"mover":"munder",[bt(e.base,t),n])}}),We({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var n=e.parser,o=t[1],r=kt(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:r})?{type:"href",mode:n.mode,href:r,body:$e(o)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var n=tt(e.body,t,!1);return je.makeAnchor(e.href,[],n,t)},mathmlBuilder:function(e,t){var n=_t(e.body,t);return n instanceof dt||(n=new dt("mrow",[n])),n.setAttribute("href",e.href),n}}),We({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var n=e.parser,o=kt(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:o}))return n.formatUnsupportedCmd("\\url");for(var r=[],i=0;i<o.length;i++){var a=o[i];"~"===a&&(a="\\textasciitilde"),r.push({type:"textord",mode:"text",text:a})}var s={type:"text",mode:n.mode,font:"\\texttt",body:r};return{type:"href",mode:n.mode,href:o,body:$e(s)}}}),We({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:function(e,t){var n,o=e.parser,r=e.funcName,i=(e.token,kt(t[0],"raw").string),s=t[1];o.settings.strict&&o.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var c={};switch(r){case"\\htmlClass":c.class=i,n={command:"\\htmlClass",class:i};break;case"\\htmlId":c.id=i,n={command:"\\htmlId",id:i};break;case"\\htmlStyle":c.style=i,n={command:"\\htmlStyle",style:i};break;case"\\htmlData":for(var l=i.split(","),d=0;d<l.length;d++){var u=l[d].split("=");if(2!==u.length)throw new a("Error parsing key-value for \\htmlData");c["data-"+u[0].trim()]=u[1].trim()}n={command:"\\htmlData",attributes:c};break;default:throw new Error("Unrecognized html command")}return o.settings.isTrusted(n)?{type:"html",mode:o.mode,attributes:c,body:$e(s)}:o.formatUnsupportedCmd(r)},htmlBuilder:function(e,t){var n=tt(e.body,t,!1),o=["enclosing"];e.attributes.class&&o.push.apply(o,e.attributes.class.trim().split(/\s+/));var r=je.makeSpan(o,n,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&r.setAttribute(i,e.attributes[i]);return r},mathmlBuilder:function(e,t){return _t(e.body,t)}}),We({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(e,t){return{type:"htmlmathml",mode:e.parser.mode,html:$e(t[0]),mathml:$e(t[1])}},htmlBuilder:function(e,t){var n=tt(e.html,t,!1);return je.makeFragment(n)},mathmlBuilder:function(e,t){return _t(e.mathml,t)}});var jn=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new a("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!xe(n))throw new a("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};We({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(e,t,n){var o=e.parser,r={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},c="";if(n[0])for(var l=kt(n[0],"raw").string.split(","),d=0;d<l.length;d++){var u=l[d].split("=");if(2===u.length){var h=u[1].trim();switch(u[0].trim()){case"alt":c=h;break;case"width":r=jn(h);break;case"height":i=jn(h);break;case"totalheight":s=jn(h);break;default:throw new a("Invalid key: '"+u[0]+"' in \\includegraphics.")}}}var p=kt(t[0],"url").url;return""===c&&(c=(c=(c=p).replace(/^.*[\\/]/,"")).substring(0,c.lastIndexOf("."))),o.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:o.mode,alt:c,width:r,height:i,totalheight:s,src:p}:o.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(e,t){var n=Oe(e.height,t),o=0;e.totalheight.number>0&&(o=Oe(e.totalheight,t)-n,o=Number(o.toFixed(2)));var r=0;e.width.number>0&&(r=Oe(e.width,t));var i={height:n+o+"em"};r>0&&(i.width=r+"em"),o>0&&(i.verticalAlign=-o+"em");var a=new N(e.src,e.alt,i);return a.height=n,a.depth=o,a},mathmlBuilder:function(e,t){var n=new ht.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var o=Oe(e.height,t),r=0;if(e.totalheight.number>0&&(r=(r=Oe(e.totalheight,t)-o).toFixed(2),n.setAttribute("valign","-"+r+"em")),n.setAttribute("height",o+r+"em"),e.width.number>0){var i=Oe(e.width,t);n.setAttribute("width",i+"em")}return n.setAttribute("src",e.src),n}}),We({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t){var n=e.parser,o=e.funcName,r=kt(t[0],"size");if(n.settings.strict){var i="m"===o[1],a="mu"===r.value.unit;i?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+o+" supports only mu units, not "+r.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+o+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+o+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:r.value}},htmlBuilder:function(e,t){return je.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var n=Oe(e.dimension,t);return new ht.SpaceNode(n)}}),We({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,o=e.funcName,r=t[0];return{type:"lap",mode:n.mode,alignment:o.slice(5),body:r}},htmlBuilder:function(e,t){var n;"clap"===e.alignment?(n=je.makeSpan([],[at(e.body,t)]),n=je.makeSpan(["inner"],[n],t)):n=je.makeSpan(["inner"],[at(e.body,t)]);var o=je.makeSpan(["fix"],[]),r=je.makeSpan([e.alignment],[n,o],t),i=je.makeSpan(["strut"]);return i.style.height=r.height+r.depth+"em",i.style.verticalAlign=-r.depth+"em",r.children.unshift(i),r=je.makeSpan(["thinbox"],[r],t),je.makeSpan(["mord","vbox"],[r],t)},mathmlBuilder:function(e,t){var n=new ht.MathNode("mpadded",[bt(e.body,t)]);if("rlap"!==e.alignment){var o="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",o+"width")}return n.setAttribute("width","0px"),n}}),We({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=e.funcName,o=e.parser,r=o.mode;o.switchMode("math");var i="\\("===n?"\\)":"$",a=o.parseExpression(!1,i);return o.expect(i),o.switchMode(r),{type:"styling",mode:o.mode,style:"text",body:a}}}),We({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new a("Mismatched "+e.funcName)}});var Un=function(e,t){switch(t.style.size){case E.DISPLAY.size:return e.display;case E.TEXT.size:return e.text;case E.SCRIPT.size:return e.script;case E.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};We({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(e,t){return{type:"mathchoice",mode:e.parser.mode,display:$e(t[0]),text:$e(t[1]),script:$e(t[2]),scriptscript:$e(t[3])}},htmlBuilder:function(e,t){var n=Un(e,t),o=tt(n,t,!1);return je.makeFragment(o)},mathmlBuilder:function(e,t){var n=Un(e,t);return _t(n,t)}});var Bn=function(e,t,n,o,r,i,a){var s,c,l;if(e=je.makeSpan([],[e]),t){var d=at(t,o.havingStyle(r.sup()),o);c={elem:d,kern:Math.max(o.fontMetrics().bigOpSpacing1,o.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var u=at(n,o.havingStyle(r.sub()),o);s={elem:u,kern:Math.max(o.fontMetrics().bigOpSpacing2,o.fontMetrics().bigOpSpacing4-u.height)}}if(c&&s){var h=o.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+a;l=je.makeVList({positionType:"bottom",positionData:h,children:[{type:"kern",size:o.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-i+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:i+"em"},{type:"kern",size:o.fontMetrics().bigOpSpacing5}]},o)}else if(s){var p=e.height-a;l=je.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:o.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-i+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e}]},o)}else{if(!c)return e;var m=e.depth+a;l=je.makeVList({positionType:"bottom",positionData:m,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:i+"em"},{type:"kern",size:o.fontMetrics().bigOpSpacing5}]},o)}return je.makeSpan(["mop","op-limits"],[l],o)},qn=["\\smallint"],Gn=function(e,t){var n,o,r,i=!1;"supsub"===e.type?(n=e.sup,o=e.sub,r=kt(e.base,"op"),i=!0):r=kt(e,"op");var a,s=t.style,c=!1;if(s.size===E.DISPLAY.size&&r.symbol&&!u.contains(qn,r.name)&&(c=!0),r.symbol){var l=c?"Size2-Regular":"Size1-Regular",d="";if("\\oiint"!==r.name&&"\\oiiint"!==r.name||(d=r.name.substr(1),r.name="oiint"===d?"\\iint":"\\iiint"),a=je.makeSymbol(r.name,l,"math",t,["mop","op-symbol",c?"large-op":"small-op"]),d.length>0){var h=a.italic,p=je.staticSvg(d+"Size"+(c?"2":"1"),t);a=je.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:p,shift:c?.08:0}]},t),r.name="\\"+d,a.classes.unshift("mop"),a.italic=h}}else if(r.body){var m=tt(r.body,t,!0);1===m.length&&m[0]instanceof M?(a=m[0]).classes[0]="mop":a=je.makeSpan(["mop"],je.tryCombineChars(m),t)}else{for(var g=[],f=1;f<r.name.length;f++)g.push(je.mathsym(r.name[f],r.mode,t));a=je.makeSpan(["mop"],g,t)}var _=0,b=0;return(a instanceof M||"\\oiint"===r.name||"\\oiiint"===r.name)&&!r.suppressBaseShift&&(_=(a.height-a.depth)/2-t.fontMetrics().axisHeight,b=a.italic),i?Bn(a,n,o,t,s,b,_):(_&&(a.style.position="relative",a.style.top=_+"em"),a)},Vn=function(e,t){var n;if(e.symbol)n=new dt("mo",[pt(e.name,e.mode)]),u.contains(qn,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new dt("mo",ft(e.body,t));else{n=new dt("mi",[new ut(e.name.slice(1))]);var o=new dt("mo",[pt("","text")]);n=e.parentIsSupSub?new dt("mo",[n,o]):lt([n,o])}return n},Hn={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};We({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:function(e,t){var n=e.parser,o=e.funcName;return 1===o.length&&(o=Hn[o]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:Gn,mathmlBuilder:Vn}),We({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(e,t){var n=e.parser,o=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:$e(o)}},htmlBuilder:Gn,mathmlBuilder:Vn});var zn={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};We({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Gn,mathmlBuilder:Vn}),We({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Gn,mathmlBuilder:Vn}),We({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return 1===n.length&&(n=zn[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Gn,mathmlBuilder:Vn});var Kn=function(e,t){var n,o,r,i,a=!1;if("supsub"===e.type?(n=e.sup,o=e.sub,r=kt(e.base,"operatorname"),a=!0):r=kt(e,"operatorname"),r.body.length>0){for(var s=r.body.map((function(e){var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),c=tt(s,t.withFont("mathrm"),!0),l=0;l<c.length;l++){var d=c[l];d instanceof M&&(d.text=d.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=je.makeSpan(["mop"],c,t)}else i=je.makeSpan(["mop"],[],t);return a?Bn(i,n,o,t,t.style,0,0):i};function Wn(e,t,n){for(var o=tt(e,t,!1),r=t.sizeMultiplier/n.sizeMultiplier,i=0;i<o.length;i++){var a=o[i].classes.indexOf("sizing");a<0?Array.prototype.push.apply(o[i].classes,t.sizingClasses(n)):o[i].classes[a+1]==="reset-size"+t.size&&(o[i].classes[a+1]="reset-size"+n.size),o[i].height*=r,o[i].depth*=r}return je.makeFragment(o)}We({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(e,t){var n=e.parser,o=e.funcName,r=t[0];return{type:"operatorname",mode:n.mode,body:$e(r),alwaysHandleSupSub:"\\operatorname*"===o,limits:!1,parentIsSupSub:!1}},htmlBuilder:Kn,mathmlBuilder:function(e,t){for(var n=ft(e.body,t.withFont("mathrm")),o=!0,r=0;r<n.length;r++){var i=n[r];if(i instanceof ht.SpaceNode);else if(i instanceof ht.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var a=i.children[0];1===i.children.length&&a instanceof ht.TextNode?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):o=!1;break;default:o=!1}else o=!1}if(o){var s=n.map((function(e){return e.toText()})).join("");n=[new ht.TextNode(s)]}var c=new ht.MathNode("mi",n);c.setAttribute("mathvariant","normal");var l=new ht.MathNode("mo",[pt("","text")]);return e.parentIsSupSub?new ht.MathNode("mo",[c,l]):ht.newDocumentFragment([c,l])}}),Ye({type:"ordgroup",htmlBuilder:function(e,t){return e.semisimple?je.makeFragment(tt(e.body,t,!1)):je.makeSpan(["mord"],tt(e.body,t,!0),t)},mathmlBuilder:function(e,t){return _t(e.body,t,!0)}}),We({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(e,t){var n=e.parser,o=t[0];return{type:"overline",mode:n.mode,body:o}},htmlBuilder:function(e,t){var n=at(e.body,t.havingCrampedStyle()),o=je.makeLineSpan("overline-line",t),r=t.fontMetrics().defaultRuleThickness,i=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*r},{type:"elem",elem:o},{type:"kern",size:r}]},t);return je.makeSpan(["mord","overline"],[i],t)},mathmlBuilder:function(e,t){var n=new ht.MathNode("mo",[new ht.TextNode("‾")]);n.setAttribute("stretchy","true");var o=new ht.MathNode("mover",[bt(e.body,t),n]);return o.setAttribute("accent","true"),o}}),We({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,o=t[0];return{type:"phantom",mode:n.mode,body:$e(o)}},htmlBuilder:function(e,t){var n=tt(e.body,t.withPhantom(),!1);return je.makeFragment(n)},mathmlBuilder:function(e,t){var n=ft(e.body,t);return new ht.MathNode("mphantom",n)}}),We({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,o=t[0];return{type:"hphantom",mode:n.mode,body:o}},htmlBuilder:function(e,t){var n=je.makeSpan([],[at(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var o=0;o<n.children.length;o++)n.children[o].height=0,n.children[o].depth=0;return n=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),je.makeSpan(["mord"],[n],t)},mathmlBuilder:function(e,t){var n=ft($e(e.body),t),o=new ht.MathNode("mphantom",n),r=new ht.MathNode("mpadded",[o]);return r.setAttribute("height","0px"),r.setAttribute("depth","0px"),r}}),We({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,o=t[0];return{type:"vphantom",mode:n.mode,body:o}},htmlBuilder:function(e,t){var n=je.makeSpan(["inner"],[at(e.body,t.withPhantom())]),o=je.makeSpan(["fix"],[]);return je.makeSpan(["mord","rlap"],[n,o],t)},mathmlBuilder:function(e,t){var n=ft($e(e.body),t),o=new ht.MathNode("mphantom",n),r=new ht.MathNode("mpadded",[o]);return r.setAttribute("width","0px"),r}}),We({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(e,t){var n=e.parser,o=kt(t[0],"size").value,r=t[1];return{type:"raisebox",mode:n.mode,dy:o,body:r}},htmlBuilder:function(e,t){var n=at(e.body,t),o=Oe(e.dy,t);return je.makeVList({positionType:"shift",positionData:-o,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:function(e,t){var n=new ht.MathNode("mpadded",[bt(e.body,t)]),o=e.dy.number+e.dy.unit;return n.setAttribute("voffset",o),n}}),We({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(e,t,n){var o=e.parser,r=n[0],i=kt(t[0],"size"),a=kt(t[1],"size");return{type:"rule",mode:o.mode,shift:r&&kt(r,"size").value,width:i.value,height:a.value}},htmlBuilder:function(e,t){var n=je.makeSpan(["mord","rule"],[],t),o=Oe(e.width,t),r=Oe(e.height,t),i=e.shift?Oe(e.shift,t):0;return n.style.borderRightWidth=o+"em",n.style.borderTopWidth=r+"em",n.style.bottom=i+"em",n.width=o,n.height=r+i,n.depth=-i,n.maxFontSize=1.125*r*t.sizeMultiplier,n},mathmlBuilder:function(e,t){var n=Oe(e.width,t),o=Oe(e.height,t),r=e.shift?Oe(e.shift,t):0,i=t.color&&t.getColor()||"black",a=new ht.MathNode("mspace");a.setAttribute("mathbackground",i),a.setAttribute("width",n+"em"),a.setAttribute("height",o+"em");var s=new ht.MathNode("mpadded",[a]);return r>=0?s.setAttribute("height","+"+r+"em"):(s.setAttribute("height",r+"em"),s.setAttribute("depth","+"+-r+"em")),s.setAttribute("voffset",r+"em"),s}});var Yn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];We({type:"sizing",names:Yn,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,o=e.funcName,r=e.parser,i=r.parseExpression(!1,n);return{type:"sizing",mode:r.mode,size:Yn.indexOf(o)+1,body:i}},htmlBuilder:function(e,t){var n=t.havingSize(e.size);return Wn(e.body,n,t)},mathmlBuilder:function(e,t){var n=t.havingSize(e.size),o=ft(e.body,n),r=new ht.MathNode("mstyle",o);return r.setAttribute("mathsize",n.sizeMultiplier+"em"),r}}),We({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,n){var o=e.parser,r=!1,i=!1,a=n[0]&&kt(n[0],"ordgroup");if(a)for(var s="",c=0;c<a.body.length;++c)if("t"===(s=a.body[c].text))r=!0;else{if("b"!==s){r=!1,i=!1;break}i=!0}else r=!0,i=!0;var l=t[0];return{type:"smash",mode:o.mode,body:l,smashHeight:r,smashDepth:i}},htmlBuilder:function(e,t){var n=je.makeSpan([],[at(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var o=0;o<n.children.length;o++)n.children[o].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].depth=0;var i=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return je.makeSpan(["mord"],[i],t)},mathmlBuilder:function(e,t){var n=new ht.MathNode("mpadded",[bt(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),We({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var o=e.parser,r=n[0],i=t[0];return{type:"sqrt",mode:o.mode,body:i,index:r}},htmlBuilder:function(e,t){var n=at(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=je.wrapFragment(n,t);var o=t.fontMetrics().defaultRuleThickness,r=o;t.style.id<E.TEXT.id&&(r=t.fontMetrics().xHeight);var i=o+r/4,a=n.height+n.depth+i+o,s=rn(a,t),c=s.span,l=s.ruleWidth,d=s.advanceWidth,u=c.height-l;u>n.height+n.depth+i&&(i=(i+u-n.height-n.depth)/2);var h=c.height-n.height-i-l;n.style.paddingLeft=d+"em";var p=je.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+h)},{type:"elem",elem:c},{type:"kern",size:l}]},t);if(e.index){var m=t.havingStyle(E.SCRIPTSCRIPT),g=at(e.index,m,t),f=.6*(p.height-p.depth),_=je.makeVList({positionType:"shift",positionData:-f,children:[{type:"elem",elem:g}]},t),b=je.makeSpan(["root"],[_]);return je.makeSpan(["mord","sqrt"],[b,p],t)}return je.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder:function(e,t){var n=e.body,o=e.index;return o?new ht.MathNode("mroot",[bt(n,t),bt(o,t)]):new ht.MathNode("msqrt",[bt(n,t)])}});var $n={display:E.DISPLAY,text:E.TEXT,script:E.SCRIPT,scriptscript:E.SCRIPTSCRIPT};We({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,o=e.funcName,r=e.parser,i=r.parseExpression(!0,n),a=o.slice(1,o.length-5);return{type:"styling",mode:r.mode,style:a,body:i}},htmlBuilder:function(e,t){var n=$n[e.style],o=t.havingStyle(n).withFont("");return Wn(e.body,o,t)},mathmlBuilder:function(e,t){var n=$n[e.style],o=t.havingStyle(n),r=ft(e.body,o),i=new ht.MathNode("mstyle",r),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",a[0]),i.setAttribute("displaystyle",a[1]),i}}),Ye({type:"supsub",htmlBuilder:function(e,t){var n=function(e,t){var n=e.base;return n?"op"===n.type?n.limits&&(t.style.size===E.DISPLAY.size||n.alwaysHandleSupSub)?Gn:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===E.DISPLAY.size||n.limits)?Kn:null:"accent"===n.type?u.isCharacterBox(n.base)?It:null:"horizBrace"===n.type&&!e.sub===n.isOver?Ln:null:null}(e,t);if(n)return n(e,t);var o,r,i,a=e.base,s=e.sup,c=e.sub,l=at(a,t),d=t.fontMetrics(),h=0,p=0,m=a&&u.isCharacterBox(a);if(s){var g=t.havingStyle(t.style.sup());o=at(s,g,t),m||(h=l.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(c){var f=t.havingStyle(t.style.sub());r=at(c,f,t),m||(p=l.depth+f.fontMetrics().subDrop*f.sizeMultiplier/t.sizeMultiplier)}i=t.style===E.DISPLAY?d.sup1:t.style.cramped?d.sup3:d.sup2;var _,b=t.sizeMultiplier,v=.5/d.ptPerEm/b+"em",y=null;if(r){var S=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(l instanceof M||S)&&(y=-l.italic+"em")}if(o&&r){h=Math.max(h,i,o.depth+.25*d.xHeight),p=Math.max(p,d.sub2);var w=4*d.defaultRuleThickness;if(h-o.depth-(r.height-p)<w){p=w-(h-o.depth)+r.height;var C=.8*d.xHeight-(h-o.depth);C>0&&(h+=C,p-=C)}var T=[{type:"elem",elem:r,shift:p,marginRight:v,marginLeft:y},{type:"elem",elem:o,shift:-h,marginRight:v}];_=je.makeVList({positionType:"individualShift",children:T},t)}else if(r){p=Math.max(p,d.sub1,r.height-.8*d.xHeight);var x=[{type:"elem",elem:r,marginLeft:y,marginRight:v}];_=je.makeVList({positionType:"shift",positionData:p,children:x},t)}else{if(!o)throw new Error("supsub must have either sup or sub.");h=Math.max(h,i,o.depth+.25*d.xHeight),_=je.makeVList({positionType:"shift",positionData:-h,children:[{type:"elem",elem:o,marginRight:v}]},t)}var O=rt(l,"right")||"mord";return je.makeSpan([O],[l,je.makeSpan(["msupsub"],[_])],t)},mathmlBuilder:function(e,t){var n,o=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(o=!0,n=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var r,i=[bt(e.base,t)];if(e.sub&&i.push(bt(e.sub,t)),e.sup&&i.push(bt(e.sup,t)),o)r=n?"mover":"munder";else if(e.sub)if(e.sup){var a=e.base;r=a&&"op"===a.type&&a.limits&&t.style===E.DISPLAY||a&&"operatorname"===a.type&&a.alwaysHandleSupSub&&(t.style===E.DISPLAY||a.limits)?"munderover":"msubsup"}else{var s=e.base;r=s&&"op"===s.type&&s.limits&&(t.style===E.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===E.DISPLAY)?"munder":"msub"}else{var c=e.base;r=c&&"op"===c.type&&c.limits&&(t.style===E.DISPLAY||c.alwaysHandleSupSub)||c&&"operatorname"===c.type&&c.alwaysHandleSupSub&&(c.limits||t.style===E.DISPLAY)?"mover":"msup"}return new ht.MathNode(r,i)}}),Ye({type:"atom",htmlBuilder:function(e,t){return je.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var n=new ht.MathNode("mo",[pt(e.text,e.mode)]);if("bin"===e.family){var o=gt(e,t);"bold-italic"===o&&n.setAttribute("mathvariant",o)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var Qn={mi:"italic",mn:"normal",mtext:"normal"};Ye({type:"mathord",htmlBuilder:function(e,t){return je.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var n=new ht.MathNode("mi",[pt(e.text,e.mode,t)]),o=gt(e,t)||"italic";return o!==Qn[n.type]&&n.setAttribute("mathvariant",o),n}}),Ye({type:"textord",htmlBuilder:function(e,t){return je.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var n,o=pt(e.text,e.mode,t),r=gt(e,t)||"normal";return n="text"===e.mode?new ht.MathNode("mtext",[o]):/[0-9]/.test(e.text)?new ht.MathNode("mn",[o]):"\\prime"===e.text?new ht.MathNode("mo",[o]):new ht.MathNode("mi",[o]),r!==Qn[n.type]&&n.setAttribute("mathvariant",r),n}});var Jn={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Xn={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Ye({type:"spacing",htmlBuilder:function(e,t){if(Xn.hasOwnProperty(e.text)){var n=Xn[e.text].className||"";if("text"===e.mode){var o=je.makeOrd(e,t,"textord");return o.classes.push(n),o}return je.makeSpan(["mspace",n],[je.mathsym(e.text,e.mode,t)],t)}if(Jn.hasOwnProperty(e.text))return je.makeSpan(["mspace",Jn[e.text]],[],t);throw new a('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){if(!Xn.hasOwnProperty(e.text)){if(Jn.hasOwnProperty(e.text))return new ht.MathNode("mspace");throw new a('Unknown type of space "'+e.text+'"')}return new ht.MathNode("mtext",[new ht.TextNode(" ")])}});var Zn=function(){var e=new ht.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Ye({type:"tag",mathmlBuilder:function(e,t){var n=new ht.MathNode("mtable",[new ht.MathNode("mtr",[Zn(),new ht.MathNode("mtd",[_t(e.body,t)]),Zn(),new ht.MathNode("mtd",[_t(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var eo={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},to={"\\textbf":"textbf","\\textmd":"textmd"},no={"\\textit":"textit","\\textup":"textup"},oo=function(e,t){var n=e.font;return n?eo[n]?t.withTextFontFamily(eo[n]):to[n]?t.withTextFontWeight(to[n]):t.withTextFontShape(no[n]):t};We({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(e,t){var n=e.parser,o=e.funcName,r=t[0];return{type:"text",mode:n.mode,body:$e(r),font:o}},htmlBuilder:function(e,t){var n=oo(e,t),o=tt(e.body,n,!0);return je.makeSpan(["mord","text"],je.tryCombineChars(o),n)},mathmlBuilder:function(e,t){var n=oo(e,t);return _t(e.body,n)}}),We({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){return{type:"underline",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var n=at(e.body,t),o=je.makeLineSpan("underline-line",t),r=t.fontMetrics().defaultRuleThickness,i=je.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:r},{type:"elem",elem:o},{type:"kern",size:3*r},{type:"elem",elem:n}]},t);return je.makeSpan(["mord","underline"],[i],t)},mathmlBuilder:function(e,t){var n=new ht.MathNode("mo",[new ht.TextNode("‾")]);n.setAttribute("stretchy","true");var o=new ht.MathNode("munder",[bt(e.body,t),n]);return o.setAttribute("accentunder","true"),o}}),We({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,n){throw new a("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var n=ro(e),o=[],r=t.havingStyle(t.style.text()),i=0;i<n.length;i++){var a=n[i];"~"===a&&(a="\\textasciitilde"),o.push(je.makeSymbol(a,"Typewriter-Regular",e.mode,r,["mord","texttt"]))}return je.makeSpan(["mord","text"].concat(r.sizingClasses(t)),je.tryCombineChars(o),r)},mathmlBuilder:function(e,t){var n=new ht.TextNode(ro(e)),o=new ht.MathNode("mtext",[n]);return o.setAttribute("mathvariant","monospace"),o}});var ro=function(e){return e.body.replace(/ /g,e.star?"␣":" ")},io=He,ao=new RegExp("^(\\\\[a-zA-Z@]+)[ \r\n\t]*$"),so=new RegExp("[̀-ͯ]+$"),co=function(){function e(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp("([ \r\n\t]+)|([!-\\[\\]-‧-豈-][̀-ͯ]*|[\ud800-\udbff][\udc00-\udfff][̀-ͯ]*|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*|\\\\[a-zA-Z@]+[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14}}var t=e.prototype;return t.setCatcode=function(e,t){this.catcodes[e]=t},t.lex=function(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new r("EOF",new o(this,t,t));var n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new a("Unexpected character: '"+e[t]+"'",new r(e[t],new o(this,t,t+1)));var i=n[2]||" ";if(14===this.catcodes[i]){var s=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===s?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}var c=i.match(ao);return c&&(i=c[1]),new r(i,new o(this,t,this.tokenRegex.lastIndex))},e}(),lo=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}var t=e.prototype;return t.beginGroup=function(){this.undefStack.push({})},t.endGroup=function(){if(0===this.undefStack.length)throw new a("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(void 0===e[t]?delete this.current[t]:this.current[t]=e[t])},t.has=function(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)},t.get=function(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]},t.set=function(e,t,n){if(void 0===n&&(n=!1),n){for(var o=0;o<this.undefStack.length;o++)delete this.undefStack[o][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var r=this.undefStack[this.undefStack.length-1];r&&!r.hasOwnProperty(e)&&(r[e]=this.current[e])}this.current[e]=t},e}(),uo={},ho=uo;function po(e,t){uo[e]=t}po("\\noexpand",(function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),po("\\expandafter",(function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),po("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),po("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),po("\\@ifnextchar",(function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),po("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),po("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var mo={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};po("\\char",(function(e){var t,n=e.popToken(),o="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])o=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new a("\\char` missing argument");o=n.text.charCodeAt(0)}else t=10;if(t){if(null==(o=mo[n.text])||o>=t)throw new a("Invalid base-"+t+" digit "+n.text);for(var r;null!=(r=mo[e.future().text])&&r<t;)o*=t,o+=r,e.popToken()}return"\\@char{"+o+"}"}));var go=function(e,t,n){var o=e.consumeArgs(1)[0];if(1!==o.length)throw new a("\\newcommand's first argument must be a macro name");var r=o[0].text,i=e.isDefined(r);if(i&&!t)throw new a("\\newcommand{"+r+"} attempting to redefine "+r+"; use \\renewcommand");if(!i&&!n)throw new a("\\renewcommand{"+r+"} when command "+r+" does not yet exist; use \\newcommand");var s=0;if(1===(o=e.consumeArgs(1)[0]).length&&"["===o[0].text){for(var c="",l=e.expandNextToken();"]"!==l.text&&"EOF"!==l.text;)c+=l.text,l=e.expandNextToken();if(!c.match(/^\s*[0-9]+\s*$/))throw new a("Invalid number of arguments: "+c);s=parseInt(c),o=e.consumeArgs(1)[0]}return e.macros.set(r,{tokens:o,numArgs:s}),""};po("\\newcommand",(function(e){return go(e,!1,!0)})),po("\\renewcommand",(function(e){return go(e,!0,!1)})),po("\\providecommand",(function(e){return go(e,!0,!0)})),po("\\message",(function(e){var t=e.consumeArgs(1)[0];return console.log(t.reverse().map((function(e){return e.text})).join("")),""})),po("\\errmessage",(function(e){var t=e.consumeArgs(1)[0];return console.error(t.reverse().map((function(e){return e.text})).join("")),""})),po("\\show",(function(e){var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),io[n],Y.math[n],Y.text[n]),""})),po("\\bgroup","{"),po("\\egroup","}"),po("\\lq","`"),po("\\rq","'"),po("\\aa","\\r a"),po("\\AA","\\r A"),po("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),po("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),po("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),po("ℬ","\\mathscr{B}"),po("ℰ","\\mathscr{E}"),po("ℱ","\\mathscr{F}"),po("ℋ","\\mathscr{H}"),po("ℐ","\\mathscr{I}"),po("ℒ","\\mathscr{L}"),po("ℳ","\\mathscr{M}"),po("ℛ","\\mathscr{R}"),po("ℭ","\\mathfrak{C}"),po("ℌ","\\mathfrak{H}"),po("ℨ","\\mathfrak{Z}"),po("\\Bbbk","\\Bbb{k}"),po("·","\\cdotp"),po("\\llap","\\mathllap{\\textrm{#1}}"),po("\\rlap","\\mathrlap{\\textrm{#1}}"),po("\\clap","\\mathclap{\\textrm{#1}}"),po("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),po("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),po("\\ne","\\neq"),po("≠","\\neq"),po("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),po("∉","\\notin"),po("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),po("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),po("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),po("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),po("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),po("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),po("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),po("⟂","\\perp"),po("‼","\\mathclose{!\\mkern-0.8mu!}"),po("∌","\\notni"),po("⌜","\\ulcorner"),po("⌝","\\urcorner"),po("⌞","\\llcorner"),po("⌟","\\lrcorner"),po("©","\\copyright"),po("®","\\textregistered"),po("️","\\textregistered"),po("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),po("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),po("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),po("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),po("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),po("⋮","\\vdots"),po("\\varGamma","\\mathit{\\Gamma}"),po("\\varDelta","\\mathit{\\Delta}"),po("\\varTheta","\\mathit{\\Theta}"),po("\\varLambda","\\mathit{\\Lambda}"),po("\\varXi","\\mathit{\\Xi}"),po("\\varPi","\\mathit{\\Pi}"),po("\\varSigma","\\mathit{\\Sigma}"),po("\\varUpsilon","\\mathit{\\Upsilon}"),po("\\varPhi","\\mathit{\\Phi}"),po("\\varPsi","\\mathit{\\Psi}"),po("\\varOmega","\\mathit{\\Omega}"),po("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),po("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),po("\\boxed","\\fbox{$\\displaystyle{#1}$}"),po("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),po("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),po("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var fo={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};po("\\dots",(function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in fo?t=fo[n]:("\\not"===n.substr(0,4)||n in Y.math&&u.contains(["bin","rel"],Y.math[n].group))&&(t="\\dotsb"),t}));var _o={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};po("\\dotso",(function(e){return e.future().text in _o?"\\ldots\\,":"\\ldots"})),po("\\dotsc",(function(e){var t=e.future().text;return t in _o&&","!==t?"\\ldots\\,":"\\ldots"})),po("\\cdots",(function(e){return e.future().text in _o?"\\@cdots\\,":"\\@cdots"})),po("\\dotsb","\\cdots"),po("\\dotsm","\\cdots"),po("\\dotsi","\\!\\cdots"),po("\\dotsx","\\ldots\\,"),po("\\DOTSI","\\relax"),po("\\DOTSB","\\relax"),po("\\DOTSX","\\relax"),po("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),po("\\,","\\tmspace+{3mu}{.1667em}"),po("\\thinspace","\\,"),po("\\>","\\mskip{4mu}"),po("\\:","\\tmspace+{4mu}{.2222em}"),po("\\medspace","\\:"),po("\\;","\\tmspace+{5mu}{.2777em}"),po("\\thickspace","\\;"),po("\\!","\\tmspace-{3mu}{.1667em}"),po("\\negthinspace","\\!"),po("\\negmedspace","\\tmspace-{4mu}{.2222em}"),po("\\negthickspace","\\tmspace-{5mu}{.277em}"),po("\\enspace","\\kern.5em "),po("\\enskip","\\hskip.5em\\relax"),po("\\quad","\\hskip1em\\relax"),po("\\qquad","\\hskip2em\\relax"),po("\\tag","\\@ifstar\\tag@literal\\tag@paren"),po("\\tag@paren","\\tag@literal{({#1})}"),po("\\tag@literal",(function(e){if(e.macros.get("\\df@tag"))throw new a("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),po("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),po("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),po("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),po("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),po("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),po("\\\\","\\newline"),po("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var bo=B["Main-Regular"]["T".charCodeAt(0)][1]-.7*B["Main-Regular"]["A".charCodeAt(0)][1]+"em";po("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+bo+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),po("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+bo+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),po("\\hspace","\\@ifstar\\@hspacer\\@hspace"),po("\\@hspace","\\hskip #1\\relax"),po("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),po("\\ordinarycolon",":"),po("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),po("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),po("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),po("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),po("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),po("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),po("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),po("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),po("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),po("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),po("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),po("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),po("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),po("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),po("∷","\\dblcolon"),po("∹","\\eqcolon"),po("≔","\\coloneqq"),po("≕","\\eqqcolon"),po("⩴","\\Coloneqq"),po("\\ratio","\\vcentcolon"),po("\\coloncolon","\\dblcolon"),po("\\colonequals","\\coloneqq"),po("\\coloncolonequals","\\Coloneqq"),po("\\equalscolon","\\eqqcolon"),po("\\equalscoloncolon","\\Eqqcolon"),po("\\colonminus","\\coloneq"),po("\\coloncolonminus","\\Coloneq"),po("\\minuscolon","\\eqcolon"),po("\\minuscoloncolon","\\Eqcolon"),po("\\coloncolonapprox","\\Colonapprox"),po("\\coloncolonsim","\\Colonsim"),po("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),po("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),po("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),po("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),po("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),po("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),po("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),po("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),po("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),po("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),po("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),po("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),po("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),po("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),po("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),po("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),po("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),po("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),po("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),po("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),po("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),po("\\imath","\\html@mathml{\\@imath}{ı}"),po("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),po("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),po("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),po("⟦","\\llbracket"),po("⟧","\\rrbracket"),po("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),po("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),po("⦃","\\lBrace"),po("⦄","\\rBrace"),po("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),po("⦵","\\minuso"),po("\\darr","\\downarrow"),po("\\dArr","\\Downarrow"),po("\\Darr","\\Downarrow"),po("\\lang","\\langle"),po("\\rang","\\rangle"),po("\\uarr","\\uparrow"),po("\\uArr","\\Uparrow"),po("\\Uarr","\\Uparrow"),po("\\N","\\mathbb{N}"),po("\\R","\\mathbb{R}"),po("\\Z","\\mathbb{Z}"),po("\\alef","\\aleph"),po("\\alefsym","\\aleph"),po("\\Alpha","\\mathrm{A}"),po("\\Beta","\\mathrm{B}"),po("\\bull","\\bullet"),po("\\Chi","\\mathrm{X}"),po("\\clubs","\\clubsuit"),po("\\cnums","\\mathbb{C}"),po("\\Complex","\\mathbb{C}"),po("\\Dagger","\\ddagger"),po("\\diamonds","\\diamondsuit"),po("\\empty","\\emptyset"),po("\\Epsilon","\\mathrm{E}"),po("\\Eta","\\mathrm{H}"),po("\\exist","\\exists"),po("\\harr","\\leftrightarrow"),po("\\hArr","\\Leftrightarrow"),po("\\Harr","\\Leftrightarrow"),po("\\hearts","\\heartsuit"),po("\\image","\\Im"),po("\\infin","\\infty"),po("\\Iota","\\mathrm{I}"),po("\\isin","\\in"),po("\\Kappa","\\mathrm{K}"),po("\\larr","\\leftarrow"),po("\\lArr","\\Leftarrow"),po("\\Larr","\\Leftarrow"),po("\\lrarr","\\leftrightarrow"),po("\\lrArr","\\Leftrightarrow"),po("\\Lrarr","\\Leftrightarrow"),po("\\Mu","\\mathrm{M}"),po("\\natnums","\\mathbb{N}"),po("\\Nu","\\mathrm{N}"),po("\\Omicron","\\mathrm{O}"),po("\\plusmn","\\pm"),po("\\rarr","\\rightarrow"),po("\\rArr","\\Rightarrow"),po("\\Rarr","\\Rightarrow"),po("\\real","\\Re"),po("\\reals","\\mathbb{R}"),po("\\Reals","\\mathbb{R}"),po("\\Rho","\\mathrm{P}"),po("\\sdot","\\cdot"),po("\\sect","\\S"),po("\\spades","\\spadesuit"),po("\\sub","\\subset"),po("\\sube","\\subseteq"),po("\\supe","\\supseteq"),po("\\Tau","\\mathrm{T}"),po("\\thetasym","\\vartheta"),po("\\weierp","\\wp"),po("\\Zeta","\\mathrm{Z}"),po("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),po("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),po("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),po("\\bra","\\mathinner{\\langle{#1}|}"),po("\\ket","\\mathinner{|{#1}\\rangle}"),po("\\braket","\\mathinner{\\langle{#1}\\rangle}"),po("\\Bra","\\left\\langle#1\\right|"),po("\\Ket","\\left|#1\\right\\rangle"),po("\\blue","\\textcolor{##6495ed}{#1}"),po("\\orange","\\textcolor{##ffa500}{#1}"),po("\\pink","\\textcolor{##ff00af}{#1}"),po("\\red","\\textcolor{##df0030}{#1}"),po("\\green","\\textcolor{##28ae7b}{#1}"),po("\\gray","\\textcolor{gray}{#1}"),po("\\purple","\\textcolor{##9d38bd}{#1}"),po("\\blueA","\\textcolor{##ccfaff}{#1}"),po("\\blueB","\\textcolor{##80f6ff}{#1}"),po("\\blueC","\\textcolor{##63d9ea}{#1}"),po("\\blueD","\\textcolor{##11accd}{#1}"),po("\\blueE","\\textcolor{##0c7f99}{#1}"),po("\\tealA","\\textcolor{##94fff5}{#1}"),po("\\tealB","\\textcolor{##26edd5}{#1}"),po("\\tealC","\\textcolor{##01d1c1}{#1}"),po("\\tealD","\\textcolor{##01a995}{#1}"),po("\\tealE","\\textcolor{##208170}{#1}"),po("\\greenA","\\textcolor{##b6ffb0}{#1}"),po("\\greenB","\\textcolor{##8af281}{#1}"),po("\\greenC","\\textcolor{##74cf70}{#1}"),po("\\greenD","\\textcolor{##1fab54}{#1}"),po("\\greenE","\\textcolor{##0d923f}{#1}"),po("\\goldA","\\textcolor{##ffd0a9}{#1}"),po("\\goldB","\\textcolor{##ffbb71}{#1}"),po("\\goldC","\\textcolor{##ff9c39}{#1}"),po("\\goldD","\\textcolor{##e07d10}{#1}"),po("\\goldE","\\textcolor{##a75a05}{#1}"),po("\\redA","\\textcolor{##fca9a9}{#1}"),po("\\redB","\\textcolor{##ff8482}{#1}"),po("\\redC","\\textcolor{##f9685d}{#1}"),po("\\redD","\\textcolor{##e84d39}{#1}"),po("\\redE","\\textcolor{##bc2612}{#1}"),po("\\maroonA","\\textcolor{##ffbde0}{#1}"),po("\\maroonB","\\textcolor{##ff92c6}{#1}"),po("\\maroonC","\\textcolor{##ed5fa6}{#1}"),po("\\maroonD","\\textcolor{##ca337c}{#1}"),po("\\maroonE","\\textcolor{##9e034e}{#1}"),po("\\purpleA","\\textcolor{##ddd7ff}{#1}"),po("\\purpleB","\\textcolor{##c6b9fc}{#1}"),po("\\purpleC","\\textcolor{##aa87ff}{#1}"),po("\\purpleD","\\textcolor{##7854ab}{#1}"),po("\\purpleE","\\textcolor{##543b78}{#1}"),po("\\mintA","\\textcolor{##f5f9e8}{#1}"),po("\\mintB","\\textcolor{##edf2df}{#1}"),po("\\mintC","\\textcolor{##e0e5cc}{#1}"),po("\\grayA","\\textcolor{##f6f7f7}{#1}"),po("\\grayB","\\textcolor{##f0f1f2}{#1}"),po("\\grayC","\\textcolor{##e3e5e6}{#1}"),po("\\grayD","\\textcolor{##d6d8da}{#1}"),po("\\grayE","\\textcolor{##babec2}{#1}"),po("\\grayF","\\textcolor{##888d93}{#1}"),po("\\grayG","\\textcolor{##626569}{#1}"),po("\\grayH","\\textcolor{##3b3e40}{#1}"),po("\\grayI","\\textcolor{##21242c}{#1}"),po("\\kaBlue","\\textcolor{##314453}{#1}"),po("\\kaGreen","\\textcolor{##71B307}{#1}");var vo={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},yo=function(){function e(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new lo(ho,t.macros),this.mode=n,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new co(e,this.settings)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.popToken=function(){return this.future(),this.stack.pop()},t.pushToken=function(e){this.stack.push(e)},t.pushTokens=function(e){var t;(t=this.stack).push.apply(t,e)},t.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},t.consumeArgs=function(e){for(var t=[],n=0;n<e;++n){this.consumeSpaces();var o=this.popToken();if("{"===o.text){for(var r=[],i=1;0!==i;){var s=this.popToken();if(r.push(s),"{"===s.text)++i;else if("}"===s.text)--i;else if("EOF"===s.text)throw new a("End of input in macro argument",o)}r.pop(),r.reverse(),t[n]=r}else{if("EOF"===o.text)throw new a("End of input expecting macro argument");t[n]=[o]}}return t},t.expandOnce=function(e){var t=this.popToken(),n=t.text,o=t.noexpand?null:this._getExpansion(n);if(null==o||e&&o.unexpandable){if(e&&null==o&&"\\"===n[0]&&!this.isDefined(n))throw new a("Undefined control sequence: "+n);return this.pushToken(t),t}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new a("Too many expansions: infinite loop or need to increase maxExpand setting");var r=o.tokens;if(o.numArgs)for(var i=this.consumeArgs(o.numArgs),s=(r=r.slice()).length-1;s>=0;--s){var c=r[s];if("#"===c.text){if(0===s)throw new a("Incomplete placeholder at end of macro body",c);if("#"===(c=r[--s]).text)r.splice(s+1,1);else{if(!/^[1-9]$/.test(c.text))throw new a("Not a valid argument number",c);var l;(l=r).splice.apply(l,[s,2].concat(i[+c.text-1]))}}}return this.pushTokens(r),r},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof r){if("\\relax"!==e.text&&!e.treatAsRelax)return this.stack.pop();this.stack.pop()}}throw new Error},t.expandMacro=function(e){return this.macros.has(e)?this.expandTokens([new r(e)]):void 0},t.expandTokens=function(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;){var o=this.expandOnce(!0);o instanceof r&&(o.treatAsRelax&&(o.noexpand=!1,o.treatAsRelax=!1),t.push(this.stack.pop()))}return t},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map((function(e){return e.text})).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;var n="function"==typeof t?t(this):t;if("string"==typeof n){var o=0;if(-1!==n.indexOf("#"))for(var r=n.replace(/##/g,"");-1!==r.indexOf("#"+(o+1));)++o;for(var i=new co(n,this.settings),a=[],s=i.lex();"EOF"!==s.text;)a.push(s),s=i.lex();return a.reverse(),{tokens:a,numArgs:o}}return n},t.isDefined=function(e){return this.macros.has(e)||io.hasOwnProperty(e)||Y.math.hasOwnProperty(e)||Y.text.hasOwnProperty(e)||vo.hasOwnProperty(e)},t.isExpandable=function(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:io.hasOwnProperty(e)},e}(),Eo={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"}},So={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","č":"č","ĉ":"ĉ","ċ":"ċ","ď":"ď","ḋ":"ḋ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ĺ":"ĺ","ľ":"ľ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ď":"Ď","Ḋ":"Ḋ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ĺ":"Ĺ","Ľ":"Ľ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ť":"Ť","Ṫ":"Ṫ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"},wo=function(){function e(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new yo(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new a("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()},t.consume=function(){this.nextToken=null},t.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},t.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},t.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e},t.parseExpression=function(t,n){for(var o=[];;){"math"===this.mode&&this.consumeSpaces();var r=this.fetch();if(-1!==e.endOfExpression.indexOf(r.text))break;if(n&&r.text===n)break;if(t&&io[r.text]&&io[r.text].infix)break;var i=this.parseAtom(n);if(!i)break;"internal"!==i.type&&o.push(i)}return"text"===this.mode&&this.formLigatures(o),this.handleInfixNodes(o)},t.handleInfixNodes=function(e){for(var t,n=-1,o=0;o<e.length;o++)if("infix"===e[o].type){if(-1!==n)throw new a("only one infix operator per group",e[o].token);n=o,t=e[o].replaceWith}if(-1!==n&&t){var r,i,s=e.slice(0,n),c=e.slice(n+1);return r=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},i=1===c.length&&"ordgroup"===c[0].type?c[0]:{type:"ordgroup",mode:this.mode,body:c},["\\\\abovefrac"===t?this.callFunction(t,[r,e[n],i],[]):this.callFunction(t,[r,i],[])]}return e},t.handleSupSubscript=function(t){var n=this.fetch(),o=n.text;this.consume();var r=this.parseGroup(t,!1,e.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!r)throw new a("Expected group after '"+o+"'",n);return r},t.formatUnsupportedCmd=function(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var o={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[o]}},t.parseAtom=function(e){var t,n,o=this.parseGroup("atom",!1,null,e);if("text"===this.mode)return o;for(;;){this.consumeSpaces();var r=this.fetch();if("\\limits"===r.text||"\\nolimits"===r.text){if(o&&"op"===o.type){var i="\\limits"===r.text;o.limits=i,o.alwaysHandleSupSub=!0}else{if(!o||"operatorname"!==o.type||!o.alwaysHandleSupSub)throw new a("Limit controls must follow a math operator",r);var s="\\limits"===r.text;o.limits=s}this.consume()}else if("^"===r.text){if(t)throw new a("Double superscript",r);t=this.handleSupSubscript("superscript")}else if("_"===r.text){if(n)throw new a("Double subscript",r);n=this.handleSupSubscript("subscript")}else{if("'"!==r.text)break;if(t)throw new a("Double superscript",r);var c={type:"textord",mode:this.mode,text:"\\prime"},l=[c];for(this.consume();"'"===this.fetch().text;)l.push(c),this.consume();"^"===this.fetch().text&&l.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:l}}}return t||n?{type:"supsub",mode:this.mode,base:o,sup:t,sub:n}:o},t.parseFunction=function(e,t,n){var o=this.fetch(),r=o.text,i=io[r];if(!i)return null;if(this.consume(),null!=n&&i.greediness<=n)throw new a("Got function '"+r+"' with no arguments"+(t?" as "+t:""),o);if("text"===this.mode&&!i.allowedInText)throw new a("Can't use function '"+r+"' in text mode",o);if("math"===this.mode&&!1===i.allowedInMath)throw new a("Can't use function '"+r+"' in math mode",o);var s=this.parseArguments(r,i),c=s.args,l=s.optArgs;return this.callFunction(r,c,l,o,e)},t.callFunction=function(e,t,n,o,r){var i={funcName:e,parser:this,token:o,breakOnTokenText:r},s=io[e];if(s&&s.handler)return s.handler(i,t,n);throw new a("No function handler for "+e)},t.parseArguments=function(e,t){var n=t.numArgs+t.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};for(var o=t.greediness,r=[],i=[],s=0;s<n;s++){var c=t.argTypes&&t.argTypes[s],l=s<t.numOptionalArgs,d=s>0&&!l||0===s&&!l&&"math"===this.mode,u=this.parseGroupOfType("argument to '"+e+"'",c,l,o,d);if(!u){if(l){i.push(null);continue}throw new a("Expected group after '"+e+"'",this.fetch())}(l?i:r).push(u)}return{args:r,optArgs:i}},t.parseGroupOfType=function(e,t,n,o,r){switch(t){case"color":return r&&this.consumeSpaces(),this.parseColorGroup(n);case"size":return r&&this.consumeSpaces(),this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n,r);case"math":case"text":return this.parseGroup(e,n,o,void 0,t,r);case"hbox":var i=this.parseGroup(e,n,o,void 0,"text",r);return i?{type:"styling",mode:i.mode,body:[i],style:"text"}:i;case"raw":if(r&&this.consumeSpaces(),n&&"{"===this.fetch().text)return null;var s=this.parseStringGroup("raw",n,!0);if(s)return{type:"raw",mode:"text",string:s.text};throw new a("Expected raw group",this.fetch());case"original":case null:case void 0:return this.parseGroup(e,n,o,void 0,void 0,r);default:throw new a("Unknown group type as "+e,this.fetch())}},t.consumeSpaces=function(){for(;" "===this.fetch().text;)this.consume()},t.parseStringGroup=function(e,t,n){var o=t?"[":"{",r=t?"]":"}",i=this.fetch();if(i.text!==o){if(t)return null;if(n&&"EOF"!==i.text&&/[^{}[\]]/.test(i.text))return this.consume(),i}var s=this.mode;this.mode="text",this.expect(o);for(var c,l="",d=this.fetch(),u=0,h=d;(c=this.fetch()).text!==r||n&&u>0;){switch(c.text){case"EOF":throw new a("Unexpected end of input in "+e,d.range(h,l));case o:u++;break;case r:u--}l+=(h=c).text,this.consume()}return this.expect(r),this.mode=s,d.range(h,l)},t.parseRegexGroup=function(e,t){var n=this.mode;this.mode="text";for(var o,r=this.fetch(),i=r,s="";"EOF"!==(o=this.fetch()).text&&e.test(s+o.text);)s+=(i=o).text,this.consume();if(""===s)throw new a("Invalid "+t+": '"+r.text+"'",r);return this.mode=n,r.range(i,s)},t.parseColorGroup=function(e){var t=this.parseStringGroup("color",e);if(!t)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new a("Invalid color: '"+t.text+"'",t);var o=n[0];return/^[0-9a-f]{6}$/i.test(o)&&(o="#"+o),{type:"color-token",mode:this.mode,color:o}},t.parseSizeGroup=function(e){var t,n=!1;if(!(t=e||"{"===this.fetch().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",n=!0);var o=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!o)throw new a("Invalid size: '"+t.text+"'",t);var r={number:+(o[1]+o[2]),unit:o[3]};if(!xe(r))throw new a("Invalid unit: '"+r.unit+"'",t);return{type:"size",mode:this.mode,value:r,isBlank:n}},t.parseUrlGroup=function(e,t){this.gullet.lexer.setCatcode("%",13);var n=this.parseStringGroup("url",e,!0);if(this.gullet.lexer.setCatcode("%",14),!n)return null;var o=n.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:o}},t.parseGroup=function(t,n,r,i,s,c){var l=this.mode;s&&this.switchMode(s),c&&this.consumeSpaces();var d,u=this.fetch(),h=u.text;if(n?"["===h:"{"===h||"\\begingroup"===h){this.consume();var p=e.endOfGroup[h];this.gullet.beginGroup();var m=this.parseExpression(!1,p),g=this.fetch();this.expect(p),this.gullet.endGroup(),d={type:"ordgroup",mode:this.mode,loc:o.range(u,g),body:m,semisimple:"\\begingroup"===h||void 0}}else if(n)d=null;else if(null==(d=this.parseFunction(i,t,r)||this.parseSymbol())&&"\\"===h[0]&&!vo.hasOwnProperty(h)){if(this.settings.throwOnError)throw new a("Undefined control sequence: "+h,u);d=this.formatUnsupportedCmd(h),this.consume()}return s&&this.switchMode(l),d},t.formLigatures=function(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n],i=r.text;"-"===i&&"-"===e[n+1].text&&(n+1<t&&"-"===e[n+2].text?(e.splice(n,3,{type:"textord",mode:"text",loc:o.range(r,e[n+2]),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:o.range(r,e[n+1]),text:"--"}),t-=1)),"'"!==i&&"`"!==i||e[n+1].text!==i||(e.splice(n,2,{type:"textord",mode:"text",loc:o.range(r,e[n+1]),text:i+i}),t-=1)}},t.parseSymbol=function(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r="*"===n.charAt(0);if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new a("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:r}}So.hasOwnProperty(t[0])&&!Y[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=So[t[0]]+t.substr(1));var i,s=so.exec(t);if(s&&("i"===(t=t.substring(0,s.index))?t="ı":"j"===t&&(t="ȷ")),Y[this.mode][t]){this.settings.strict&&"math"===this.mode&&"ÇÐÞçþ".indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var c,l=Y[this.mode][t].group,d=o.range(e);if(z.hasOwnProperty(l)){var u=l;c={type:"atom",mode:this.mode,family:u,loc:d,text:t}}else c={type:l,mode:this.mode,loc:d,text:t};i=c}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(C(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),i={type:"textord",mode:"text",loc:o.range(e),text:t}}if(this.consume(),s)for(var h=0;h<s[0].length;h++){var p=s[0][h];if(!Eo[p])throw new a("Unknown accent ' "+p+"'",e);var m=Eo[p][this.mode];if(!m)throw new a("Accent "+p+" unsupported in "+this.mode+" mode",e);i={type:"accent",mode:this.mode,loc:o.range(e),label:m,isStretchy:!1,isShifty:!0,base:i}}return i},e}();wo.endOfExpression=["}","\\endgroup","\\end","\\right","&"],wo.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},wo.SUPSUB_GREEDINESS=1;var Co=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new wo(e,t);delete n.gullet.macros.current["\\df@tag"];var o=n.parse();if(n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new a("\\tag works only in display equations");n.gullet.feed("\\df@tag"),o=[{type:"tag",mode:"text",body:o,tag:n.parse()}]}return o},To=function(e,t,n){t.textContent="";var o=Oo(e,n).toNode();t.appendChild(o)};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),To=function(){throw new a("KaTeX doesn't work in quirks mode.")});var xo=function(e,t,n){if(n.throwOnError||!(e instanceof a))throw e;var o=je.makeSpan(["katex-error"],[new M(t)]);return o.setAttribute("title",e.toString()),o.setAttribute("style","color:"+n.errorColor),o},Oo=function(e,t){var n=new h(t);try{var o=Co(e,n);return St(o,e,n)}catch(t){return xo(t,e,n)}},ko={version:"0.12.0",render:To,renderToString:function(e,t){return Oo(e,t).toMarkup()},ParseError:a,__parse:function(e,t){var n=new h(t);return Co(e,n)},__renderToDomTree:Oo,__renderToHTMLTree:function(e,t){var n=new h(t);try{return function(e,t,n){var o=ct(e,yt(n)),r=je.makeSpan(["katex"],[o]);return Et(r,n)}(Co(e,n),0,n)}catch(t){return xo(t,e,n)}},__setFontMetrics:function(e,t){B[e]=t},__defineSymbol:$,__defineMacro:po,__domTree:{Span:I,Anchor:A,SymbolNode:M,SvgNode:P,PathNode:L,LineNode:j}};t.default=ko}]).default},e.exports=o()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(406),r={"<":"<",">":">",""":'"',"&apos":"'","&":"&","<":"<",">":">",""":'"',"'":"'","&":"&"},i={60:"lt",62:"gt",34:"quot",39:"apos",38:"amp"},a={"<":"<",">":">",'"':""","'":"'","&":"&"},s=function(){function e(){}return e.prototype.encode=function(e){return e&&e.length?e.replace(/[<>"'&]/g,(function(e){return a[e]})):""},e.encode=function(t){return(new e).encode(t)},e.prototype.decode=function(e){return e&&e.length?e.replace(/&#?[0-9a-zA-Z]+;?/g,(function(e){if("#"===e.charAt(1)){var t="x"===e.charAt(2).toLowerCase()?parseInt(e.substr(3),16):parseInt(e.substr(2));return!isNaN(t)||t>=-32768?t<=65535?String.fromCharCode(t):o.fromCodePoint(t):""}return r[e]||e})):""},e.decode=function(t){return(new e).decode(t)},e.prototype.encodeNonUTF=function(e){if(!e||!e.length)return"";for(var t=e.length,n="",r=0;r<t;){var a=e.charCodeAt(r),s=i[a];s?(n+="&"+s+";",r++):(a<32||a>126?a>=o.highSurrogateFrom&&a<=o.highSurrogateTo?(n+="&#"+o.getCodePoint(e,r)+";",r++):n+="&#"+a+";":n+=e.charAt(r),r++)}return n},e.encodeNonUTF=function(t){return(new e).encodeNonUTF(t)},e.prototype.encodeNonASCII=function(e){if(!e||!e.length)return"";for(var t=e.length,n="",r=0;r<t;){var i=e.charCodeAt(r);i<=255?n+=e[r++]:(i>=o.highSurrogateFrom&&i<=o.highSurrogateTo?(n+="&#"+o.getCodePoint(e,r)+";",r++):n+="&#"+i+";",r++)}return n},e.encodeNonASCII=function(t){return(new e).encodeNonASCII(t)},e}();t.XmlEntities=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(406),r=["apos","nbsp","iexcl","cent","pound","curren","yen","brvbar","sect","uml","copy","ordf","laquo","not","shy","reg","macr","deg","plusmn","sup2","sup3","acute","micro","para","middot","cedil","sup1","ordm","raquo","frac14","frac12","frac34","iquest","Agrave","Aacute","Acirc","Atilde","Auml","Aring","AElig","Ccedil","Egrave","Eacute","Ecirc","Euml","Igrave","Iacute","Icirc","Iuml","ETH","Ntilde","Ograve","Oacute","Ocirc","Otilde","Ouml","times","Oslash","Ugrave","Uacute","Ucirc","Uuml","Yacute","THORN","szlig","agrave","aacute","acirc","atilde","auml","aring","aelig","ccedil","egrave","eacute","ecirc","euml","igrave","iacute","icirc","iuml","eth","ntilde","ograve","oacute","ocirc","otilde","ouml","divide","oslash","ugrave","uacute","ucirc","uuml","yacute","thorn","yuml","quot","amp","lt","gt","OElig","oelig","Scaron","scaron","Yuml","circ","tilde","ensp","emsp","thinsp","zwnj","zwj","lrm","rlm","ndash","mdash","lsquo","rsquo","sbquo","ldquo","rdquo","bdquo","dagger","Dagger","permil","lsaquo","rsaquo","euro","fnof","Alpha","Beta","Gamma","Delta","Epsilon","Zeta","Eta","Theta","Iota","Kappa","Lambda","Mu","Nu","Xi","Omicron","Pi","Rho","Sigma","Tau","Upsilon","Phi","Chi","Psi","Omega","alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","mu","nu","xi","omicron","pi","rho","sigmaf","sigma","tau","upsilon","phi","chi","psi","omega","thetasym","upsih","piv","bull","hellip","prime","Prime","oline","frasl","weierp","image","real","trade","alefsym","larr","uarr","rarr","darr","harr","crarr","lArr","uArr","rArr","dArr","hArr","forall","part","exist","empty","nabla","isin","notin","ni","prod","sum","minus","lowast","radic","prop","infin","ang","and","or","cap","cup","int","there4","sim","cong","asymp","ne","equiv","le","ge","sub","sup","nsub","sube","supe","oplus","otimes","perp","sdot","lceil","rceil","lfloor","rfloor","lang","rang","loz","spades","clubs","hearts","diams"],i=[39,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,34,38,60,62,338,339,352,353,376,710,732,8194,8195,8201,8204,8205,8206,8207,8211,8212,8216,8217,8218,8220,8221,8222,8224,8225,8240,8249,8250,8364,402,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,977,978,982,8226,8230,8242,8243,8254,8260,8472,8465,8476,8482,8501,8592,8593,8594,8595,8596,8629,8656,8657,8658,8659,8660,8704,8706,8707,8709,8711,8712,8713,8715,8719,8721,8722,8727,8730,8733,8734,8736,8743,8744,8745,8746,8747,8756,8764,8773,8776,8800,8801,8804,8805,8834,8835,8836,8838,8839,8853,8855,8869,8901,8968,8969,8970,8971,9001,9002,9674,9824,9827,9829,9830],a={},s={};!function(){for(var e=0,t=r.length;e<t;){var n=r[e],o=i[e];a[n]=String.fromCharCode(o),s[o]=n,e++}}();var c=function(){function e(){}return e.prototype.decode=function(e){return e&&e.length?e.replace(/&(#?[\w\d]+);?/g,(function(e,t){var n;if("#"===t.charAt(0)){var r="x"===t.charAt(1).toLowerCase()?parseInt(t.substr(2),16):parseInt(t.substr(1));(!isNaN(r)||r>=-32768)&&(n=r<=65535?String.fromCharCode(r):o.fromCodePoint(r))}else n=a[t];return n||e})):""},e.decode=function(t){return(new e).decode(t)},e.prototype.encode=function(e){if(!e||!e.length)return"";for(var t=e.length,n="",o=0;o<t;){var r=s[e.charCodeAt(o)];n+=r?"&"+r+";":e.charAt(o),o++}return n},e.encode=function(t){return(new e).encode(t)},e.prototype.encodeNonUTF=function(e){if(!e||!e.length)return"";for(var t=e.length,n="",r=0;r<t;){var i=e.charCodeAt(r),a=s[i];a?n+="&"+a+";":i<32||i>126?i>=o.highSurrogateFrom&&i<=o.highSurrogateTo?(n+="&#"+o.getCodePoint(e,r)+";",r++):n+="&#"+i+";":n+=e.charAt(r),r++}return n},e.encodeNonUTF=function(t){return(new e).encodeNonUTF(t)},e.prototype.encodeNonASCII=function(e){if(!e||!e.length)return"";for(var t=e.length,n="",r=0;r<t;){var i=e.charCodeAt(r);i<=255?n+=e[r++]:(i>=o.highSurrogateFrom&&i<=o.highSurrogateTo?(n+="&#"+o.getCodePoint(e,r)+";",r++):n+="&#"+i+";",r++)}return n},e.encodeNonASCII=function(t){return(new e).encodeNonASCII(t)},e}();t.Html4Entities=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(406),r=[["Aacute",[193]],["aacute",[225]],["Abreve",[258]],["abreve",[259]],["ac",[8766]],["acd",[8767]],["acE",[8766,819]],["Acirc",[194]],["acirc",[226]],["acute",[180]],["Acy",[1040]],["acy",[1072]],["AElig",[198]],["aelig",[230]],["af",[8289]],["Afr",[120068]],["afr",[120094]],["Agrave",[192]],["agrave",[224]],["alefsym",[8501]],["aleph",[8501]],["Alpha",[913]],["alpha",[945]],["Amacr",[256]],["amacr",[257]],["amalg",[10815]],["amp",[38]],["AMP",[38]],["andand",[10837]],["And",[10835]],["and",[8743]],["andd",[10844]],["andslope",[10840]],["andv",[10842]],["ang",[8736]],["ange",[10660]],["angle",[8736]],["angmsdaa",[10664]],["angmsdab",[10665]],["angmsdac",[10666]],["angmsdad",[10667]],["angmsdae",[10668]],["angmsdaf",[10669]],["angmsdag",[10670]],["angmsdah",[10671]],["angmsd",[8737]],["angrt",[8735]],["angrtvb",[8894]],["angrtvbd",[10653]],["angsph",[8738]],["angst",[197]],["angzarr",[9084]],["Aogon",[260]],["aogon",[261]],["Aopf",[120120]],["aopf",[120146]],["apacir",[10863]],["ap",[8776]],["apE",[10864]],["ape",[8778]],["apid",[8779]],["apos",[39]],["ApplyFunction",[8289]],["approx",[8776]],["approxeq",[8778]],["Aring",[197]],["aring",[229]],["Ascr",[119964]],["ascr",[119990]],["Assign",[8788]],["ast",[42]],["asymp",[8776]],["asympeq",[8781]],["Atilde",[195]],["atilde",[227]],["Auml",[196]],["auml",[228]],["awconint",[8755]],["awint",[10769]],["backcong",[8780]],["backepsilon",[1014]],["backprime",[8245]],["backsim",[8765]],["backsimeq",[8909]],["Backslash",[8726]],["Barv",[10983]],["barvee",[8893]],["barwed",[8965]],["Barwed",[8966]],["barwedge",[8965]],["bbrk",[9141]],["bbrktbrk",[9142]],["bcong",[8780]],["Bcy",[1041]],["bcy",[1073]],["bdquo",[8222]],["becaus",[8757]],["because",[8757]],["Because",[8757]],["bemptyv",[10672]],["bepsi",[1014]],["bernou",[8492]],["Bernoullis",[8492]],["Beta",[914]],["beta",[946]],["beth",[8502]],["between",[8812]],["Bfr",[120069]],["bfr",[120095]],["bigcap",[8898]],["bigcirc",[9711]],["bigcup",[8899]],["bigodot",[10752]],["bigoplus",[10753]],["bigotimes",[10754]],["bigsqcup",[10758]],["bigstar",[9733]],["bigtriangledown",[9661]],["bigtriangleup",[9651]],["biguplus",[10756]],["bigvee",[8897]],["bigwedge",[8896]],["bkarow",[10509]],["blacklozenge",[10731]],["blacksquare",[9642]],["blacktriangle",[9652]],["blacktriangledown",[9662]],["blacktriangleleft",[9666]],["blacktriangleright",[9656]],["blank",[9251]],["blk12",[9618]],["blk14",[9617]],["blk34",[9619]],["block",[9608]],["bne",[61,8421]],["bnequiv",[8801,8421]],["bNot",[10989]],["bnot",[8976]],["Bopf",[120121]],["bopf",[120147]],["bot",[8869]],["bottom",[8869]],["bowtie",[8904]],["boxbox",[10697]],["boxdl",[9488]],["boxdL",[9557]],["boxDl",[9558]],["boxDL",[9559]],["boxdr",[9484]],["boxdR",[9554]],["boxDr",[9555]],["boxDR",[9556]],["boxh",[9472]],["boxH",[9552]],["boxhd",[9516]],["boxHd",[9572]],["boxhD",[9573]],["boxHD",[9574]],["boxhu",[9524]],["boxHu",[9575]],["boxhU",[9576]],["boxHU",[9577]],["boxminus",[8863]],["boxplus",[8862]],["boxtimes",[8864]],["boxul",[9496]],["boxuL",[9563]],["boxUl",[9564]],["boxUL",[9565]],["boxur",[9492]],["boxuR",[9560]],["boxUr",[9561]],["boxUR",[9562]],["boxv",[9474]],["boxV",[9553]],["boxvh",[9532]],["boxvH",[9578]],["boxVh",[9579]],["boxVH",[9580]],["boxvl",[9508]],["boxvL",[9569]],["boxVl",[9570]],["boxVL",[9571]],["boxvr",[9500]],["boxvR",[9566]],["boxVr",[9567]],["boxVR",[9568]],["bprime",[8245]],["breve",[728]],["Breve",[728]],["brvbar",[166]],["bscr",[119991]],["Bscr",[8492]],["bsemi",[8271]],["bsim",[8765]],["bsime",[8909]],["bsolb",[10693]],["bsol",[92]],["bsolhsub",[10184]],["bull",[8226]],["bullet",[8226]],["bump",[8782]],["bumpE",[10926]],["bumpe",[8783]],["Bumpeq",[8782]],["bumpeq",[8783]],["Cacute",[262]],["cacute",[263]],["capand",[10820]],["capbrcup",[10825]],["capcap",[10827]],["cap",[8745]],["Cap",[8914]],["capcup",[10823]],["capdot",[10816]],["CapitalDifferentialD",[8517]],["caps",[8745,65024]],["caret",[8257]],["caron",[711]],["Cayleys",[8493]],["ccaps",[10829]],["Ccaron",[268]],["ccaron",[269]],["Ccedil",[199]],["ccedil",[231]],["Ccirc",[264]],["ccirc",[265]],["Cconint",[8752]],["ccups",[10828]],["ccupssm",[10832]],["Cdot",[266]],["cdot",[267]],["cedil",[184]],["Cedilla",[184]],["cemptyv",[10674]],["cent",[162]],["centerdot",[183]],["CenterDot",[183]],["cfr",[120096]],["Cfr",[8493]],["CHcy",[1063]],["chcy",[1095]],["check",[10003]],["checkmark",[10003]],["Chi",[935]],["chi",[967]],["circ",[710]],["circeq",[8791]],["circlearrowleft",[8634]],["circlearrowright",[8635]],["circledast",[8859]],["circledcirc",[8858]],["circleddash",[8861]],["CircleDot",[8857]],["circledR",[174]],["circledS",[9416]],["CircleMinus",[8854]],["CirclePlus",[8853]],["CircleTimes",[8855]],["cir",[9675]],["cirE",[10691]],["cire",[8791]],["cirfnint",[10768]],["cirmid",[10991]],["cirscir",[10690]],["ClockwiseContourIntegral",[8754]],["clubs",[9827]],["clubsuit",[9827]],["colon",[58]],["Colon",[8759]],["Colone",[10868]],["colone",[8788]],["coloneq",[8788]],["comma",[44]],["commat",[64]],["comp",[8705]],["compfn",[8728]],["complement",[8705]],["complexes",[8450]],["cong",[8773]],["congdot",[10861]],["Congruent",[8801]],["conint",[8750]],["Conint",[8751]],["ContourIntegral",[8750]],["copf",[120148]],["Copf",[8450]],["coprod",[8720]],["Coproduct",[8720]],["copy",[169]],["COPY",[169]],["copysr",[8471]],["CounterClockwiseContourIntegral",[8755]],["crarr",[8629]],["cross",[10007]],["Cross",[10799]],["Cscr",[119966]],["cscr",[119992]],["csub",[10959]],["csube",[10961]],["csup",[10960]],["csupe",[10962]],["ctdot",[8943]],["cudarrl",[10552]],["cudarrr",[10549]],["cuepr",[8926]],["cuesc",[8927]],["cularr",[8630]],["cularrp",[10557]],["cupbrcap",[10824]],["cupcap",[10822]],["CupCap",[8781]],["cup",[8746]],["Cup",[8915]],["cupcup",[10826]],["cupdot",[8845]],["cupor",[10821]],["cups",[8746,65024]],["curarr",[8631]],["curarrm",[10556]],["curlyeqprec",[8926]],["curlyeqsucc",[8927]],["curlyvee",[8910]],["curlywedge",[8911]],["curren",[164]],["curvearrowleft",[8630]],["curvearrowright",[8631]],["cuvee",[8910]],["cuwed",[8911]],["cwconint",[8754]],["cwint",[8753]],["cylcty",[9005]],["dagger",[8224]],["Dagger",[8225]],["daleth",[8504]],["darr",[8595]],["Darr",[8609]],["dArr",[8659]],["dash",[8208]],["Dashv",[10980]],["dashv",[8867]],["dbkarow",[10511]],["dblac",[733]],["Dcaron",[270]],["dcaron",[271]],["Dcy",[1044]],["dcy",[1076]],["ddagger",[8225]],["ddarr",[8650]],["DD",[8517]],["dd",[8518]],["DDotrahd",[10513]],["ddotseq",[10871]],["deg",[176]],["Del",[8711]],["Delta",[916]],["delta",[948]],["demptyv",[10673]],["dfisht",[10623]],["Dfr",[120071]],["dfr",[120097]],["dHar",[10597]],["dharl",[8643]],["dharr",[8642]],["DiacriticalAcute",[180]],["DiacriticalDot",[729]],["DiacriticalDoubleAcute",[733]],["DiacriticalGrave",[96]],["DiacriticalTilde",[732]],["diam",[8900]],["diamond",[8900]],["Diamond",[8900]],["diamondsuit",[9830]],["diams",[9830]],["die",[168]],["DifferentialD",[8518]],["digamma",[989]],["disin",[8946]],["div",[247]],["divide",[247]],["divideontimes",[8903]],["divonx",[8903]],["DJcy",[1026]],["djcy",[1106]],["dlcorn",[8990]],["dlcrop",[8973]],["dollar",[36]],["Dopf",[120123]],["dopf",[120149]],["Dot",[168]],["dot",[729]],["DotDot",[8412]],["doteq",[8784]],["doteqdot",[8785]],["DotEqual",[8784]],["dotminus",[8760]],["dotplus",[8724]],["dotsquare",[8865]],["doublebarwedge",[8966]],["DoubleContourIntegral",[8751]],["DoubleDot",[168]],["DoubleDownArrow",[8659]],["DoubleLeftArrow",[8656]],["DoubleLeftRightArrow",[8660]],["DoubleLeftTee",[10980]],["DoubleLongLeftArrow",[10232]],["DoubleLongLeftRightArrow",[10234]],["DoubleLongRightArrow",[10233]],["DoubleRightArrow",[8658]],["DoubleRightTee",[8872]],["DoubleUpArrow",[8657]],["DoubleUpDownArrow",[8661]],["DoubleVerticalBar",[8741]],["DownArrowBar",[10515]],["downarrow",[8595]],["DownArrow",[8595]],["Downarrow",[8659]],["DownArrowUpArrow",[8693]],["DownBreve",[785]],["downdownarrows",[8650]],["downharpoonleft",[8643]],["downharpoonright",[8642]],["DownLeftRightVector",[10576]],["DownLeftTeeVector",[10590]],["DownLeftVectorBar",[10582]],["DownLeftVector",[8637]],["DownRightTeeVector",[10591]],["DownRightVectorBar",[10583]],["DownRightVector",[8641]],["DownTeeArrow",[8615]],["DownTee",[8868]],["drbkarow",[10512]],["drcorn",[8991]],["drcrop",[8972]],["Dscr",[119967]],["dscr",[119993]],["DScy",[1029]],["dscy",[1109]],["dsol",[10742]],["Dstrok",[272]],["dstrok",[273]],["dtdot",[8945]],["dtri",[9663]],["dtrif",[9662]],["duarr",[8693]],["duhar",[10607]],["dwangle",[10662]],["DZcy",[1039]],["dzcy",[1119]],["dzigrarr",[10239]],["Eacute",[201]],["eacute",[233]],["easter",[10862]],["Ecaron",[282]],["ecaron",[283]],["Ecirc",[202]],["ecirc",[234]],["ecir",[8790]],["ecolon",[8789]],["Ecy",[1069]],["ecy",[1101]],["eDDot",[10871]],["Edot",[278]],["edot",[279]],["eDot",[8785]],["ee",[8519]],["efDot",[8786]],["Efr",[120072]],["efr",[120098]],["eg",[10906]],["Egrave",[200]],["egrave",[232]],["egs",[10902]],["egsdot",[10904]],["el",[10905]],["Element",[8712]],["elinters",[9191]],["ell",[8467]],["els",[10901]],["elsdot",[10903]],["Emacr",[274]],["emacr",[275]],["empty",[8709]],["emptyset",[8709]],["EmptySmallSquare",[9723]],["emptyv",[8709]],["EmptyVerySmallSquare",[9643]],["emsp13",[8196]],["emsp14",[8197]],["emsp",[8195]],["ENG",[330]],["eng",[331]],["ensp",[8194]],["Eogon",[280]],["eogon",[281]],["Eopf",[120124]],["eopf",[120150]],["epar",[8917]],["eparsl",[10723]],["eplus",[10865]],["epsi",[949]],["Epsilon",[917]],["epsilon",[949]],["epsiv",[1013]],["eqcirc",[8790]],["eqcolon",[8789]],["eqsim",[8770]],["eqslantgtr",[10902]],["eqslantless",[10901]],["Equal",[10869]],["equals",[61]],["EqualTilde",[8770]],["equest",[8799]],["Equilibrium",[8652]],["equiv",[8801]],["equivDD",[10872]],["eqvparsl",[10725]],["erarr",[10609]],["erDot",[8787]],["escr",[8495]],["Escr",[8496]],["esdot",[8784]],["Esim",[10867]],["esim",[8770]],["Eta",[919]],["eta",[951]],["ETH",[208]],["eth",[240]],["Euml",[203]],["euml",[235]],["euro",[8364]],["excl",[33]],["exist",[8707]],["Exists",[8707]],["expectation",[8496]],["exponentiale",[8519]],["ExponentialE",[8519]],["fallingdotseq",[8786]],["Fcy",[1060]],["fcy",[1092]],["female",[9792]],["ffilig",[64259]],["fflig",[64256]],["ffllig",[64260]],["Ffr",[120073]],["ffr",[120099]],["filig",[64257]],["FilledSmallSquare",[9724]],["FilledVerySmallSquare",[9642]],["fjlig",[102,106]],["flat",[9837]],["fllig",[64258]],["fltns",[9649]],["fnof",[402]],["Fopf",[120125]],["fopf",[120151]],["forall",[8704]],["ForAll",[8704]],["fork",[8916]],["forkv",[10969]],["Fouriertrf",[8497]],["fpartint",[10765]],["frac12",[189]],["frac13",[8531]],["frac14",[188]],["frac15",[8533]],["frac16",[8537]],["frac18",[8539]],["frac23",[8532]],["frac25",[8534]],["frac34",[190]],["frac35",[8535]],["frac38",[8540]],["frac45",[8536]],["frac56",[8538]],["frac58",[8541]],["frac78",[8542]],["frasl",[8260]],["frown",[8994]],["fscr",[119995]],["Fscr",[8497]],["gacute",[501]],["Gamma",[915]],["gamma",[947]],["Gammad",[988]],["gammad",[989]],["gap",[10886]],["Gbreve",[286]],["gbreve",[287]],["Gcedil",[290]],["Gcirc",[284]],["gcirc",[285]],["Gcy",[1043]],["gcy",[1075]],["Gdot",[288]],["gdot",[289]],["ge",[8805]],["gE",[8807]],["gEl",[10892]],["gel",[8923]],["geq",[8805]],["geqq",[8807]],["geqslant",[10878]],["gescc",[10921]],["ges",[10878]],["gesdot",[10880]],["gesdoto",[10882]],["gesdotol",[10884]],["gesl",[8923,65024]],["gesles",[10900]],["Gfr",[120074]],["gfr",[120100]],["gg",[8811]],["Gg",[8921]],["ggg",[8921]],["gimel",[8503]],["GJcy",[1027]],["gjcy",[1107]],["gla",[10917]],["gl",[8823]],["glE",[10898]],["glj",[10916]],["gnap",[10890]],["gnapprox",[10890]],["gne",[10888]],["gnE",[8809]],["gneq",[10888]],["gneqq",[8809]],["gnsim",[8935]],["Gopf",[120126]],["gopf",[120152]],["grave",[96]],["GreaterEqual",[8805]],["GreaterEqualLess",[8923]],["GreaterFullEqual",[8807]],["GreaterGreater",[10914]],["GreaterLess",[8823]],["GreaterSlantEqual",[10878]],["GreaterTilde",[8819]],["Gscr",[119970]],["gscr",[8458]],["gsim",[8819]],["gsime",[10894]],["gsiml",[10896]],["gtcc",[10919]],["gtcir",[10874]],["gt",[62]],["GT",[62]],["Gt",[8811]],["gtdot",[8919]],["gtlPar",[10645]],["gtquest",[10876]],["gtrapprox",[10886]],["gtrarr",[10616]],["gtrdot",[8919]],["gtreqless",[8923]],["gtreqqless",[10892]],["gtrless",[8823]],["gtrsim",[8819]],["gvertneqq",[8809,65024]],["gvnE",[8809,65024]],["Hacek",[711]],["hairsp",[8202]],["half",[189]],["hamilt",[8459]],["HARDcy",[1066]],["hardcy",[1098]],["harrcir",[10568]],["harr",[8596]],["hArr",[8660]],["harrw",[8621]],["Hat",[94]],["hbar",[8463]],["Hcirc",[292]],["hcirc",[293]],["hearts",[9829]],["heartsuit",[9829]],["hellip",[8230]],["hercon",[8889]],["hfr",[120101]],["Hfr",[8460]],["HilbertSpace",[8459]],["hksearow",[10533]],["hkswarow",[10534]],["hoarr",[8703]],["homtht",[8763]],["hookleftarrow",[8617]],["hookrightarrow",[8618]],["hopf",[120153]],["Hopf",[8461]],["horbar",[8213]],["HorizontalLine",[9472]],["hscr",[119997]],["Hscr",[8459]],["hslash",[8463]],["Hstrok",[294]],["hstrok",[295]],["HumpDownHump",[8782]],["HumpEqual",[8783]],["hybull",[8259]],["hyphen",[8208]],["Iacute",[205]],["iacute",[237]],["ic",[8291]],["Icirc",[206]],["icirc",[238]],["Icy",[1048]],["icy",[1080]],["Idot",[304]],["IEcy",[1045]],["iecy",[1077]],["iexcl",[161]],["iff",[8660]],["ifr",[120102]],["Ifr",[8465]],["Igrave",[204]],["igrave",[236]],["ii",[8520]],["iiiint",[10764]],["iiint",[8749]],["iinfin",[10716]],["iiota",[8489]],["IJlig",[306]],["ijlig",[307]],["Imacr",[298]],["imacr",[299]],["image",[8465]],["ImaginaryI",[8520]],["imagline",[8464]],["imagpart",[8465]],["imath",[305]],["Im",[8465]],["imof",[8887]],["imped",[437]],["Implies",[8658]],["incare",[8453]],["in",[8712]],["infin",[8734]],["infintie",[10717]],["inodot",[305]],["intcal",[8890]],["int",[8747]],["Int",[8748]],["integers",[8484]],["Integral",[8747]],["intercal",[8890]],["Intersection",[8898]],["intlarhk",[10775]],["intprod",[10812]],["InvisibleComma",[8291]],["InvisibleTimes",[8290]],["IOcy",[1025]],["iocy",[1105]],["Iogon",[302]],["iogon",[303]],["Iopf",[120128]],["iopf",[120154]],["Iota",[921]],["iota",[953]],["iprod",[10812]],["iquest",[191]],["iscr",[119998]],["Iscr",[8464]],["isin",[8712]],["isindot",[8949]],["isinE",[8953]],["isins",[8948]],["isinsv",[8947]],["isinv",[8712]],["it",[8290]],["Itilde",[296]],["itilde",[297]],["Iukcy",[1030]],["iukcy",[1110]],["Iuml",[207]],["iuml",[239]],["Jcirc",[308]],["jcirc",[309]],["Jcy",[1049]],["jcy",[1081]],["Jfr",[120077]],["jfr",[120103]],["jmath",[567]],["Jopf",[120129]],["jopf",[120155]],["Jscr",[119973]],["jscr",[119999]],["Jsercy",[1032]],["jsercy",[1112]],["Jukcy",[1028]],["jukcy",[1108]],["Kappa",[922]],["kappa",[954]],["kappav",[1008]],["Kcedil",[310]],["kcedil",[311]],["Kcy",[1050]],["kcy",[1082]],["Kfr",[120078]],["kfr",[120104]],["kgreen",[312]],["KHcy",[1061]],["khcy",[1093]],["KJcy",[1036]],["kjcy",[1116]],["Kopf",[120130]],["kopf",[120156]],["Kscr",[119974]],["kscr",[12e4]],["lAarr",[8666]],["Lacute",[313]],["lacute",[314]],["laemptyv",[10676]],["lagran",[8466]],["Lambda",[923]],["lambda",[955]],["lang",[10216]],["Lang",[10218]],["langd",[10641]],["langle",[10216]],["lap",[10885]],["Laplacetrf",[8466]],["laquo",[171]],["larrb",[8676]],["larrbfs",[10527]],["larr",[8592]],["Larr",[8606]],["lArr",[8656]],["larrfs",[10525]],["larrhk",[8617]],["larrlp",[8619]],["larrpl",[10553]],["larrsim",[10611]],["larrtl",[8610]],["latail",[10521]],["lAtail",[10523]],["lat",[10923]],["late",[10925]],["lates",[10925,65024]],["lbarr",[10508]],["lBarr",[10510]],["lbbrk",[10098]],["lbrace",[123]],["lbrack",[91]],["lbrke",[10635]],["lbrksld",[10639]],["lbrkslu",[10637]],["Lcaron",[317]],["lcaron",[318]],["Lcedil",[315]],["lcedil",[316]],["lceil",[8968]],["lcub",[123]],["Lcy",[1051]],["lcy",[1083]],["ldca",[10550]],["ldquo",[8220]],["ldquor",[8222]],["ldrdhar",[10599]],["ldrushar",[10571]],["ldsh",[8626]],["le",[8804]],["lE",[8806]],["LeftAngleBracket",[10216]],["LeftArrowBar",[8676]],["leftarrow",[8592]],["LeftArrow",[8592]],["Leftarrow",[8656]],["LeftArrowRightArrow",[8646]],["leftarrowtail",[8610]],["LeftCeiling",[8968]],["LeftDoubleBracket",[10214]],["LeftDownTeeVector",[10593]],["LeftDownVectorBar",[10585]],["LeftDownVector",[8643]],["LeftFloor",[8970]],["leftharpoondown",[8637]],["leftharpoonup",[8636]],["leftleftarrows",[8647]],["leftrightarrow",[8596]],["LeftRightArrow",[8596]],["Leftrightarrow",[8660]],["leftrightarrows",[8646]],["leftrightharpoons",[8651]],["leftrightsquigarrow",[8621]],["LeftRightVector",[10574]],["LeftTeeArrow",[8612]],["LeftTee",[8867]],["LeftTeeVector",[10586]],["leftthreetimes",[8907]],["LeftTriangleBar",[10703]],["LeftTriangle",[8882]],["LeftTriangleEqual",[8884]],["LeftUpDownVector",[10577]],["LeftUpTeeVector",[10592]],["LeftUpVectorBar",[10584]],["LeftUpVector",[8639]],["LeftVectorBar",[10578]],["LeftVector",[8636]],["lEg",[10891]],["leg",[8922]],["leq",[8804]],["leqq",[8806]],["leqslant",[10877]],["lescc",[10920]],["les",[10877]],["lesdot",[10879]],["lesdoto",[10881]],["lesdotor",[10883]],["lesg",[8922,65024]],["lesges",[10899]],["lessapprox",[10885]],["lessdot",[8918]],["lesseqgtr",[8922]],["lesseqqgtr",[10891]],["LessEqualGreater",[8922]],["LessFullEqual",[8806]],["LessGreater",[8822]],["lessgtr",[8822]],["LessLess",[10913]],["lesssim",[8818]],["LessSlantEqual",[10877]],["LessTilde",[8818]],["lfisht",[10620]],["lfloor",[8970]],["Lfr",[120079]],["lfr",[120105]],["lg",[8822]],["lgE",[10897]],["lHar",[10594]],["lhard",[8637]],["lharu",[8636]],["lharul",[10602]],["lhblk",[9604]],["LJcy",[1033]],["ljcy",[1113]],["llarr",[8647]],["ll",[8810]],["Ll",[8920]],["llcorner",[8990]],["Lleftarrow",[8666]],["llhard",[10603]],["lltri",[9722]],["Lmidot",[319]],["lmidot",[320]],["lmoustache",[9136]],["lmoust",[9136]],["lnap",[10889]],["lnapprox",[10889]],["lne",[10887]],["lnE",[8808]],["lneq",[10887]],["lneqq",[8808]],["lnsim",[8934]],["loang",[10220]],["loarr",[8701]],["lobrk",[10214]],["longleftarrow",[10229]],["LongLeftArrow",[10229]],["Longleftarrow",[10232]],["longleftrightarrow",[10231]],["LongLeftRightArrow",[10231]],["Longleftrightarrow",[10234]],["longmapsto",[10236]],["longrightarrow",[10230]],["LongRightArrow",[10230]],["Longrightarrow",[10233]],["looparrowleft",[8619]],["looparrowright",[8620]],["lopar",[10629]],["Lopf",[120131]],["lopf",[120157]],["loplus",[10797]],["lotimes",[10804]],["lowast",[8727]],["lowbar",[95]],["LowerLeftArrow",[8601]],["LowerRightArrow",[8600]],["loz",[9674]],["lozenge",[9674]],["lozf",[10731]],["lpar",[40]],["lparlt",[10643]],["lrarr",[8646]],["lrcorner",[8991]],["lrhar",[8651]],["lrhard",[10605]],["lrm",[8206]],["lrtri",[8895]],["lsaquo",[8249]],["lscr",[120001]],["Lscr",[8466]],["lsh",[8624]],["Lsh",[8624]],["lsim",[8818]],["lsime",[10893]],["lsimg",[10895]],["lsqb",[91]],["lsquo",[8216]],["lsquor",[8218]],["Lstrok",[321]],["lstrok",[322]],["ltcc",[10918]],["ltcir",[10873]],["lt",[60]],["LT",[60]],["Lt",[8810]],["ltdot",[8918]],["lthree",[8907]],["ltimes",[8905]],["ltlarr",[10614]],["ltquest",[10875]],["ltri",[9667]],["ltrie",[8884]],["ltrif",[9666]],["ltrPar",[10646]],["lurdshar",[10570]],["luruhar",[10598]],["lvertneqq",[8808,65024]],["lvnE",[8808,65024]],["macr",[175]],["male",[9794]],["malt",[10016]],["maltese",[10016]],["Map",[10501]],["map",[8614]],["mapsto",[8614]],["mapstodown",[8615]],["mapstoleft",[8612]],["mapstoup",[8613]],["marker",[9646]],["mcomma",[10793]],["Mcy",[1052]],["mcy",[1084]],["mdash",[8212]],["mDDot",[8762]],["measuredangle",[8737]],["MediumSpace",[8287]],["Mellintrf",[8499]],["Mfr",[120080]],["mfr",[120106]],["mho",[8487]],["micro",[181]],["midast",[42]],["midcir",[10992]],["mid",[8739]],["middot",[183]],["minusb",[8863]],["minus",[8722]],["minusd",[8760]],["minusdu",[10794]],["MinusPlus",[8723]],["mlcp",[10971]],["mldr",[8230]],["mnplus",[8723]],["models",[8871]],["Mopf",[120132]],["mopf",[120158]],["mp",[8723]],["mscr",[120002]],["Mscr",[8499]],["mstpos",[8766]],["Mu",[924]],["mu",[956]],["multimap",[8888]],["mumap",[8888]],["nabla",[8711]],["Nacute",[323]],["nacute",[324]],["nang",[8736,8402]],["nap",[8777]],["napE",[10864,824]],["napid",[8779,824]],["napos",[329]],["napprox",[8777]],["natural",[9838]],["naturals",[8469]],["natur",[9838]],["nbsp",[160]],["nbump",[8782,824]],["nbumpe",[8783,824]],["ncap",[10819]],["Ncaron",[327]],["ncaron",[328]],["Ncedil",[325]],["ncedil",[326]],["ncong",[8775]],["ncongdot",[10861,824]],["ncup",[10818]],["Ncy",[1053]],["ncy",[1085]],["ndash",[8211]],["nearhk",[10532]],["nearr",[8599]],["neArr",[8663]],["nearrow",[8599]],["ne",[8800]],["nedot",[8784,824]],["NegativeMediumSpace",[8203]],["NegativeThickSpace",[8203]],["NegativeThinSpace",[8203]],["NegativeVeryThinSpace",[8203]],["nequiv",[8802]],["nesear",[10536]],["nesim",[8770,824]],["NestedGreaterGreater",[8811]],["NestedLessLess",[8810]],["nexist",[8708]],["nexists",[8708]],["Nfr",[120081]],["nfr",[120107]],["ngE",[8807,824]],["nge",[8817]],["ngeq",[8817]],["ngeqq",[8807,824]],["ngeqslant",[10878,824]],["nges",[10878,824]],["nGg",[8921,824]],["ngsim",[8821]],["nGt",[8811,8402]],["ngt",[8815]],["ngtr",[8815]],["nGtv",[8811,824]],["nharr",[8622]],["nhArr",[8654]],["nhpar",[10994]],["ni",[8715]],["nis",[8956]],["nisd",[8954]],["niv",[8715]],["NJcy",[1034]],["njcy",[1114]],["nlarr",[8602]],["nlArr",[8653]],["nldr",[8229]],["nlE",[8806,824]],["nle",[8816]],["nleftarrow",[8602]],["nLeftarrow",[8653]],["nleftrightarrow",[8622]],["nLeftrightarrow",[8654]],["nleq",[8816]],["nleqq",[8806,824]],["nleqslant",[10877,824]],["nles",[10877,824]],["nless",[8814]],["nLl",[8920,824]],["nlsim",[8820]],["nLt",[8810,8402]],["nlt",[8814]],["nltri",[8938]],["nltrie",[8940]],["nLtv",[8810,824]],["nmid",[8740]],["NoBreak",[8288]],["NonBreakingSpace",[160]],["nopf",[120159]],["Nopf",[8469]],["Not",[10988]],["not",[172]],["NotCongruent",[8802]],["NotCupCap",[8813]],["NotDoubleVerticalBar",[8742]],["NotElement",[8713]],["NotEqual",[8800]],["NotEqualTilde",[8770,824]],["NotExists",[8708]],["NotGreater",[8815]],["NotGreaterEqual",[8817]],["NotGreaterFullEqual",[8807,824]],["NotGreaterGreater",[8811,824]],["NotGreaterLess",[8825]],["NotGreaterSlantEqual",[10878,824]],["NotGreaterTilde",[8821]],["NotHumpDownHump",[8782,824]],["NotHumpEqual",[8783,824]],["notin",[8713]],["notindot",[8949,824]],["notinE",[8953,824]],["notinva",[8713]],["notinvb",[8951]],["notinvc",[8950]],["NotLeftTriangleBar",[10703,824]],["NotLeftTriangle",[8938]],["NotLeftTriangleEqual",[8940]],["NotLess",[8814]],["NotLessEqual",[8816]],["NotLessGreater",[8824]],["NotLessLess",[8810,824]],["NotLessSlantEqual",[10877,824]],["NotLessTilde",[8820]],["NotNestedGreaterGreater",[10914,824]],["NotNestedLessLess",[10913,824]],["notni",[8716]],["notniva",[8716]],["notnivb",[8958]],["notnivc",[8957]],["NotPrecedes",[8832]],["NotPrecedesEqual",[10927,824]],["NotPrecedesSlantEqual",[8928]],["NotReverseElement",[8716]],["NotRightTriangleBar",[10704,824]],["NotRightTriangle",[8939]],["NotRightTriangleEqual",[8941]],["NotSquareSubset",[8847,824]],["NotSquareSubsetEqual",[8930]],["NotSquareSuperset",[8848,824]],["NotSquareSupersetEqual",[8931]],["NotSubset",[8834,8402]],["NotSubsetEqual",[8840]],["NotSucceeds",[8833]],["NotSucceedsEqual",[10928,824]],["NotSucceedsSlantEqual",[8929]],["NotSucceedsTilde",[8831,824]],["NotSuperset",[8835,8402]],["NotSupersetEqual",[8841]],["NotTilde",[8769]],["NotTildeEqual",[8772]],["NotTildeFullEqual",[8775]],["NotTildeTilde",[8777]],["NotVerticalBar",[8740]],["nparallel",[8742]],["npar",[8742]],["nparsl",[11005,8421]],["npart",[8706,824]],["npolint",[10772]],["npr",[8832]],["nprcue",[8928]],["nprec",[8832]],["npreceq",[10927,824]],["npre",[10927,824]],["nrarrc",[10547,824]],["nrarr",[8603]],["nrArr",[8655]],["nrarrw",[8605,824]],["nrightarrow",[8603]],["nRightarrow",[8655]],["nrtri",[8939]],["nrtrie",[8941]],["nsc",[8833]],["nsccue",[8929]],["nsce",[10928,824]],["Nscr",[119977]],["nscr",[120003]],["nshortmid",[8740]],["nshortparallel",[8742]],["nsim",[8769]],["nsime",[8772]],["nsimeq",[8772]],["nsmid",[8740]],["nspar",[8742]],["nsqsube",[8930]],["nsqsupe",[8931]],["nsub",[8836]],["nsubE",[10949,824]],["nsube",[8840]],["nsubset",[8834,8402]],["nsubseteq",[8840]],["nsubseteqq",[10949,824]],["nsucc",[8833]],["nsucceq",[10928,824]],["nsup",[8837]],["nsupE",[10950,824]],["nsupe",[8841]],["nsupset",[8835,8402]],["nsupseteq",[8841]],["nsupseteqq",[10950,824]],["ntgl",[8825]],["Ntilde",[209]],["ntilde",[241]],["ntlg",[8824]],["ntriangleleft",[8938]],["ntrianglelefteq",[8940]],["ntriangleright",[8939]],["ntrianglerighteq",[8941]],["Nu",[925]],["nu",[957]],["num",[35]],["numero",[8470]],["numsp",[8199]],["nvap",[8781,8402]],["nvdash",[8876]],["nvDash",[8877]],["nVdash",[8878]],["nVDash",[8879]],["nvge",[8805,8402]],["nvgt",[62,8402]],["nvHarr",[10500]],["nvinfin",[10718]],["nvlArr",[10498]],["nvle",[8804,8402]],["nvlt",[60,8402]],["nvltrie",[8884,8402]],["nvrArr",[10499]],["nvrtrie",[8885,8402]],["nvsim",[8764,8402]],["nwarhk",[10531]],["nwarr",[8598]],["nwArr",[8662]],["nwarrow",[8598]],["nwnear",[10535]],["Oacute",[211]],["oacute",[243]],["oast",[8859]],["Ocirc",[212]],["ocirc",[244]],["ocir",[8858]],["Ocy",[1054]],["ocy",[1086]],["odash",[8861]],["Odblac",[336]],["odblac",[337]],["odiv",[10808]],["odot",[8857]],["odsold",[10684]],["OElig",[338]],["oelig",[339]],["ofcir",[10687]],["Ofr",[120082]],["ofr",[120108]],["ogon",[731]],["Ograve",[210]],["ograve",[242]],["ogt",[10689]],["ohbar",[10677]],["ohm",[937]],["oint",[8750]],["olarr",[8634]],["olcir",[10686]],["olcross",[10683]],["oline",[8254]],["olt",[10688]],["Omacr",[332]],["omacr",[333]],["Omega",[937]],["omega",[969]],["Omicron",[927]],["omicron",[959]],["omid",[10678]],["ominus",[8854]],["Oopf",[120134]],["oopf",[120160]],["opar",[10679]],["OpenCurlyDoubleQuote",[8220]],["OpenCurlyQuote",[8216]],["operp",[10681]],["oplus",[8853]],["orarr",[8635]],["Or",[10836]],["or",[8744]],["ord",[10845]],["order",[8500]],["orderof",[8500]],["ordf",[170]],["ordm",[186]],["origof",[8886]],["oror",[10838]],["orslope",[10839]],["orv",[10843]],["oS",[9416]],["Oscr",[119978]],["oscr",[8500]],["Oslash",[216]],["oslash",[248]],["osol",[8856]],["Otilde",[213]],["otilde",[245]],["otimesas",[10806]],["Otimes",[10807]],["otimes",[8855]],["Ouml",[214]],["ouml",[246]],["ovbar",[9021]],["OverBar",[8254]],["OverBrace",[9182]],["OverBracket",[9140]],["OverParenthesis",[9180]],["para",[182]],["parallel",[8741]],["par",[8741]],["parsim",[10995]],["parsl",[11005]],["part",[8706]],["PartialD",[8706]],["Pcy",[1055]],["pcy",[1087]],["percnt",[37]],["period",[46]],["permil",[8240]],["perp",[8869]],["pertenk",[8241]],["Pfr",[120083]],["pfr",[120109]],["Phi",[934]],["phi",[966]],["phiv",[981]],["phmmat",[8499]],["phone",[9742]],["Pi",[928]],["pi",[960]],["pitchfork",[8916]],["piv",[982]],["planck",[8463]],["planckh",[8462]],["plankv",[8463]],["plusacir",[10787]],["plusb",[8862]],["pluscir",[10786]],["plus",[43]],["plusdo",[8724]],["plusdu",[10789]],["pluse",[10866]],["PlusMinus",[177]],["plusmn",[177]],["plussim",[10790]],["plustwo",[10791]],["pm",[177]],["Poincareplane",[8460]],["pointint",[10773]],["popf",[120161]],["Popf",[8473]],["pound",[163]],["prap",[10935]],["Pr",[10939]],["pr",[8826]],["prcue",[8828]],["precapprox",[10935]],["prec",[8826]],["preccurlyeq",[8828]],["Precedes",[8826]],["PrecedesEqual",[10927]],["PrecedesSlantEqual",[8828]],["PrecedesTilde",[8830]],["preceq",[10927]],["precnapprox",[10937]],["precneqq",[10933]],["precnsim",[8936]],["pre",[10927]],["prE",[10931]],["precsim",[8830]],["prime",[8242]],["Prime",[8243]],["primes",[8473]],["prnap",[10937]],["prnE",[10933]],["prnsim",[8936]],["prod",[8719]],["Product",[8719]],["profalar",[9006]],["profline",[8978]],["profsurf",[8979]],["prop",[8733]],["Proportional",[8733]],["Proportion",[8759]],["propto",[8733]],["prsim",[8830]],["prurel",[8880]],["Pscr",[119979]],["pscr",[120005]],["Psi",[936]],["psi",[968]],["puncsp",[8200]],["Qfr",[120084]],["qfr",[120110]],["qint",[10764]],["qopf",[120162]],["Qopf",[8474]],["qprime",[8279]],["Qscr",[119980]],["qscr",[120006]],["quaternions",[8461]],["quatint",[10774]],["quest",[63]],["questeq",[8799]],["quot",[34]],["QUOT",[34]],["rAarr",[8667]],["race",[8765,817]],["Racute",[340]],["racute",[341]],["radic",[8730]],["raemptyv",[10675]],["rang",[10217]],["Rang",[10219]],["rangd",[10642]],["range",[10661]],["rangle",[10217]],["raquo",[187]],["rarrap",[10613]],["rarrb",[8677]],["rarrbfs",[10528]],["rarrc",[10547]],["rarr",[8594]],["Rarr",[8608]],["rArr",[8658]],["rarrfs",[10526]],["rarrhk",[8618]],["rarrlp",[8620]],["rarrpl",[10565]],["rarrsim",[10612]],["Rarrtl",[10518]],["rarrtl",[8611]],["rarrw",[8605]],["ratail",[10522]],["rAtail",[10524]],["ratio",[8758]],["rationals",[8474]],["rbarr",[10509]],["rBarr",[10511]],["RBarr",[10512]],["rbbrk",[10099]],["rbrace",[125]],["rbrack",[93]],["rbrke",[10636]],["rbrksld",[10638]],["rbrkslu",[10640]],["Rcaron",[344]],["rcaron",[345]],["Rcedil",[342]],["rcedil",[343]],["rceil",[8969]],["rcub",[125]],["Rcy",[1056]],["rcy",[1088]],["rdca",[10551]],["rdldhar",[10601]],["rdquo",[8221]],["rdquor",[8221]],["CloseCurlyDoubleQuote",[8221]],["rdsh",[8627]],["real",[8476]],["realine",[8475]],["realpart",[8476]],["reals",[8477]],["Re",[8476]],["rect",[9645]],["reg",[174]],["REG",[174]],["ReverseElement",[8715]],["ReverseEquilibrium",[8651]],["ReverseUpEquilibrium",[10607]],["rfisht",[10621]],["rfloor",[8971]],["rfr",[120111]],["Rfr",[8476]],["rHar",[10596]],["rhard",[8641]],["rharu",[8640]],["rharul",[10604]],["Rho",[929]],["rho",[961]],["rhov",[1009]],["RightAngleBracket",[10217]],["RightArrowBar",[8677]],["rightarrow",[8594]],["RightArrow",[8594]],["Rightarrow",[8658]],["RightArrowLeftArrow",[8644]],["rightarrowtail",[8611]],["RightCeiling",[8969]],["RightDoubleBracket",[10215]],["RightDownTeeVector",[10589]],["RightDownVectorBar",[10581]],["RightDownVector",[8642]],["RightFloor",[8971]],["rightharpoondown",[8641]],["rightharpoonup",[8640]],["rightleftarrows",[8644]],["rightleftharpoons",[8652]],["rightrightarrows",[8649]],["rightsquigarrow",[8605]],["RightTeeArrow",[8614]],["RightTee",[8866]],["RightTeeVector",[10587]],["rightthreetimes",[8908]],["RightTriangleBar",[10704]],["RightTriangle",[8883]],["RightTriangleEqual",[8885]],["RightUpDownVector",[10575]],["RightUpTeeVector",[10588]],["RightUpVectorBar",[10580]],["RightUpVector",[8638]],["RightVectorBar",[10579]],["RightVector",[8640]],["ring",[730]],["risingdotseq",[8787]],["rlarr",[8644]],["rlhar",[8652]],["rlm",[8207]],["rmoustache",[9137]],["rmoust",[9137]],["rnmid",[10990]],["roang",[10221]],["roarr",[8702]],["robrk",[10215]],["ropar",[10630]],["ropf",[120163]],["Ropf",[8477]],["roplus",[10798]],["rotimes",[10805]],["RoundImplies",[10608]],["rpar",[41]],["rpargt",[10644]],["rppolint",[10770]],["rrarr",[8649]],["Rrightarrow",[8667]],["rsaquo",[8250]],["rscr",[120007]],["Rscr",[8475]],["rsh",[8625]],["Rsh",[8625]],["rsqb",[93]],["rsquo",[8217]],["rsquor",[8217]],["CloseCurlyQuote",[8217]],["rthree",[8908]],["rtimes",[8906]],["rtri",[9657]],["rtrie",[8885]],["rtrif",[9656]],["rtriltri",[10702]],["RuleDelayed",[10740]],["ruluhar",[10600]],["rx",[8478]],["Sacute",[346]],["sacute",[347]],["sbquo",[8218]],["scap",[10936]],["Scaron",[352]],["scaron",[353]],["Sc",[10940]],["sc",[8827]],["sccue",[8829]],["sce",[10928]],["scE",[10932]],["Scedil",[350]],["scedil",[351]],["Scirc",[348]],["scirc",[349]],["scnap",[10938]],["scnE",[10934]],["scnsim",[8937]],["scpolint",[10771]],["scsim",[8831]],["Scy",[1057]],["scy",[1089]],["sdotb",[8865]],["sdot",[8901]],["sdote",[10854]],["searhk",[10533]],["searr",[8600]],["seArr",[8664]],["searrow",[8600]],["sect",[167]],["semi",[59]],["seswar",[10537]],["setminus",[8726]],["setmn",[8726]],["sext",[10038]],["Sfr",[120086]],["sfr",[120112]],["sfrown",[8994]],["sharp",[9839]],["SHCHcy",[1065]],["shchcy",[1097]],["SHcy",[1064]],["shcy",[1096]],["ShortDownArrow",[8595]],["ShortLeftArrow",[8592]],["shortmid",[8739]],["shortparallel",[8741]],["ShortRightArrow",[8594]],["ShortUpArrow",[8593]],["shy",[173]],["Sigma",[931]],["sigma",[963]],["sigmaf",[962]],["sigmav",[962]],["sim",[8764]],["simdot",[10858]],["sime",[8771]],["simeq",[8771]],["simg",[10910]],["simgE",[10912]],["siml",[10909]],["simlE",[10911]],["simne",[8774]],["simplus",[10788]],["simrarr",[10610]],["slarr",[8592]],["SmallCircle",[8728]],["smallsetminus",[8726]],["smashp",[10803]],["smeparsl",[10724]],["smid",[8739]],["smile",[8995]],["smt",[10922]],["smte",[10924]],["smtes",[10924,65024]],["SOFTcy",[1068]],["softcy",[1100]],["solbar",[9023]],["solb",[10692]],["sol",[47]],["Sopf",[120138]],["sopf",[120164]],["spades",[9824]],["spadesuit",[9824]],["spar",[8741]],["sqcap",[8851]],["sqcaps",[8851,65024]],["sqcup",[8852]],["sqcups",[8852,65024]],["Sqrt",[8730]],["sqsub",[8847]],["sqsube",[8849]],["sqsubset",[8847]],["sqsubseteq",[8849]],["sqsup",[8848]],["sqsupe",[8850]],["sqsupset",[8848]],["sqsupseteq",[8850]],["square",[9633]],["Square",[9633]],["SquareIntersection",[8851]],["SquareSubset",[8847]],["SquareSubsetEqual",[8849]],["SquareSuperset",[8848]],["SquareSupersetEqual",[8850]],["SquareUnion",[8852]],["squarf",[9642]],["squ",[9633]],["squf",[9642]],["srarr",[8594]],["Sscr",[119982]],["sscr",[120008]],["ssetmn",[8726]],["ssmile",[8995]],["sstarf",[8902]],["Star",[8902]],["star",[9734]],["starf",[9733]],["straightepsilon",[1013]],["straightphi",[981]],["strns",[175]],["sub",[8834]],["Sub",[8912]],["subdot",[10941]],["subE",[10949]],["sube",[8838]],["subedot",[10947]],["submult",[10945]],["subnE",[10955]],["subne",[8842]],["subplus",[10943]],["subrarr",[10617]],["subset",[8834]],["Subset",[8912]],["subseteq",[8838]],["subseteqq",[10949]],["SubsetEqual",[8838]],["subsetneq",[8842]],["subsetneqq",[10955]],["subsim",[10951]],["subsub",[10965]],["subsup",[10963]],["succapprox",[10936]],["succ",[8827]],["succcurlyeq",[8829]],["Succeeds",[8827]],["SucceedsEqual",[10928]],["SucceedsSlantEqual",[8829]],["SucceedsTilde",[8831]],["succeq",[10928]],["succnapprox",[10938]],["succneqq",[10934]],["succnsim",[8937]],["succsim",[8831]],["SuchThat",[8715]],["sum",[8721]],["Sum",[8721]],["sung",[9834]],["sup1",[185]],["sup2",[178]],["sup3",[179]],["sup",[8835]],["Sup",[8913]],["supdot",[10942]],["supdsub",[10968]],["supE",[10950]],["supe",[8839]],["supedot",[10948]],["Superset",[8835]],["SupersetEqual",[8839]],["suphsol",[10185]],["suphsub",[10967]],["suplarr",[10619]],["supmult",[10946]],["supnE",[10956]],["supne",[8843]],["supplus",[10944]],["supset",[8835]],["Supset",[8913]],["supseteq",[8839]],["supseteqq",[10950]],["supsetneq",[8843]],["supsetneqq",[10956]],["supsim",[10952]],["supsub",[10964]],["supsup",[10966]],["swarhk",[10534]],["swarr",[8601]],["swArr",[8665]],["swarrow",[8601]],["swnwar",[10538]],["szlig",[223]],["Tab",[9]],["target",[8982]],["Tau",[932]],["tau",[964]],["tbrk",[9140]],["Tcaron",[356]],["tcaron",[357]],["Tcedil",[354]],["tcedil",[355]],["Tcy",[1058]],["tcy",[1090]],["tdot",[8411]],["telrec",[8981]],["Tfr",[120087]],["tfr",[120113]],["there4",[8756]],["therefore",[8756]],["Therefore",[8756]],["Theta",[920]],["theta",[952]],["thetasym",[977]],["thetav",[977]],["thickapprox",[8776]],["thicksim",[8764]],["ThickSpace",[8287,8202]],["ThinSpace",[8201]],["thinsp",[8201]],["thkap",[8776]],["thksim",[8764]],["THORN",[222]],["thorn",[254]],["tilde",[732]],["Tilde",[8764]],["TildeEqual",[8771]],["TildeFullEqual",[8773]],["TildeTilde",[8776]],["timesbar",[10801]],["timesb",[8864]],["times",[215]],["timesd",[10800]],["tint",[8749]],["toea",[10536]],["topbot",[9014]],["topcir",[10993]],["top",[8868]],["Topf",[120139]],["topf",[120165]],["topfork",[10970]],["tosa",[10537]],["tprime",[8244]],["trade",[8482]],["TRADE",[8482]],["triangle",[9653]],["triangledown",[9663]],["triangleleft",[9667]],["trianglelefteq",[8884]],["triangleq",[8796]],["triangleright",[9657]],["trianglerighteq",[8885]],["tridot",[9708]],["trie",[8796]],["triminus",[10810]],["TripleDot",[8411]],["triplus",[10809]],["trisb",[10701]],["tritime",[10811]],["trpezium",[9186]],["Tscr",[119983]],["tscr",[120009]],["TScy",[1062]],["tscy",[1094]],["TSHcy",[1035]],["tshcy",[1115]],["Tstrok",[358]],["tstrok",[359]],["twixt",[8812]],["twoheadleftarrow",[8606]],["twoheadrightarrow",[8608]],["Uacute",[218]],["uacute",[250]],["uarr",[8593]],["Uarr",[8607]],["uArr",[8657]],["Uarrocir",[10569]],["Ubrcy",[1038]],["ubrcy",[1118]],["Ubreve",[364]],["ubreve",[365]],["Ucirc",[219]],["ucirc",[251]],["Ucy",[1059]],["ucy",[1091]],["udarr",[8645]],["Udblac",[368]],["udblac",[369]],["udhar",[10606]],["ufisht",[10622]],["Ufr",[120088]],["ufr",[120114]],["Ugrave",[217]],["ugrave",[249]],["uHar",[10595]],["uharl",[8639]],["uharr",[8638]],["uhblk",[9600]],["ulcorn",[8988]],["ulcorner",[8988]],["ulcrop",[8975]],["ultri",[9720]],["Umacr",[362]],["umacr",[363]],["uml",[168]],["UnderBar",[95]],["UnderBrace",[9183]],["UnderBracket",[9141]],["UnderParenthesis",[9181]],["Union",[8899]],["UnionPlus",[8846]],["Uogon",[370]],["uogon",[371]],["Uopf",[120140]],["uopf",[120166]],["UpArrowBar",[10514]],["uparrow",[8593]],["UpArrow",[8593]],["Uparrow",[8657]],["UpArrowDownArrow",[8645]],["updownarrow",[8597]],["UpDownArrow",[8597]],["Updownarrow",[8661]],["UpEquilibrium",[10606]],["upharpoonleft",[8639]],["upharpoonright",[8638]],["uplus",[8846]],["UpperLeftArrow",[8598]],["UpperRightArrow",[8599]],["upsi",[965]],["Upsi",[978]],["upsih",[978]],["Upsilon",[933]],["upsilon",[965]],["UpTeeArrow",[8613]],["UpTee",[8869]],["upuparrows",[8648]],["urcorn",[8989]],["urcorner",[8989]],["urcrop",[8974]],["Uring",[366]],["uring",[367]],["urtri",[9721]],["Uscr",[119984]],["uscr",[120010]],["utdot",[8944]],["Utilde",[360]],["utilde",[361]],["utri",[9653]],["utrif",[9652]],["uuarr",[8648]],["Uuml",[220]],["uuml",[252]],["uwangle",[10663]],["vangrt",[10652]],["varepsilon",[1013]],["varkappa",[1008]],["varnothing",[8709]],["varphi",[981]],["varpi",[982]],["varpropto",[8733]],["varr",[8597]],["vArr",[8661]],["varrho",[1009]],["varsigma",[962]],["varsubsetneq",[8842,65024]],["varsubsetneqq",[10955,65024]],["varsupsetneq",[8843,65024]],["varsupsetneqq",[10956,65024]],["vartheta",[977]],["vartriangleleft",[8882]],["vartriangleright",[8883]],["vBar",[10984]],["Vbar",[10987]],["vBarv",[10985]],["Vcy",[1042]],["vcy",[1074]],["vdash",[8866]],["vDash",[8872]],["Vdash",[8873]],["VDash",[8875]],["Vdashl",[10982]],["veebar",[8891]],["vee",[8744]],["Vee",[8897]],["veeeq",[8794]],["vellip",[8942]],["verbar",[124]],["Verbar",[8214]],["vert",[124]],["Vert",[8214]],["VerticalBar",[8739]],["VerticalLine",[124]],["VerticalSeparator",[10072]],["VerticalTilde",[8768]],["VeryThinSpace",[8202]],["Vfr",[120089]],["vfr",[120115]],["vltri",[8882]],["vnsub",[8834,8402]],["vnsup",[8835,8402]],["Vopf",[120141]],["vopf",[120167]],["vprop",[8733]],["vrtri",[8883]],["Vscr",[119985]],["vscr",[120011]],["vsubnE",[10955,65024]],["vsubne",[8842,65024]],["vsupnE",[10956,65024]],["vsupne",[8843,65024]],["Vvdash",[8874]],["vzigzag",[10650]],["Wcirc",[372]],["wcirc",[373]],["wedbar",[10847]],["wedge",[8743]],["Wedge",[8896]],["wedgeq",[8793]],["weierp",[8472]],["Wfr",[120090]],["wfr",[120116]],["Wopf",[120142]],["wopf",[120168]],["wp",[8472]],["wr",[8768]],["wreath",[8768]],["Wscr",[119986]],["wscr",[120012]],["xcap",[8898]],["xcirc",[9711]],["xcup",[8899]],["xdtri",[9661]],["Xfr",[120091]],["xfr",[120117]],["xharr",[10231]],["xhArr",[10234]],["Xi",[926]],["xi",[958]],["xlarr",[10229]],["xlArr",[10232]],["xmap",[10236]],["xnis",[8955]],["xodot",[10752]],["Xopf",[120143]],["xopf",[120169]],["xoplus",[10753]],["xotime",[10754]],["xrarr",[10230]],["xrArr",[10233]],["Xscr",[119987]],["xscr",[120013]],["xsqcup",[10758]],["xuplus",[10756]],["xutri",[9651]],["xvee",[8897]],["xwedge",[8896]],["Yacute",[221]],["yacute",[253]],["YAcy",[1071]],["yacy",[1103]],["Ycirc",[374]],["ycirc",[375]],["Ycy",[1067]],["ycy",[1099]],["yen",[165]],["Yfr",[120092]],["yfr",[120118]],["YIcy",[1031]],["yicy",[1111]],["Yopf",[120144]],["yopf",[120170]],["Yscr",[119988]],["yscr",[120014]],["YUcy",[1070]],["yucy",[1102]],["yuml",[255]],["Yuml",[376]],["Zacute",[377]],["zacute",[378]],["Zcaron",[381]],["zcaron",[382]],["Zcy",[1047]],["zcy",[1079]],["Zdot",[379]],["zdot",[380]],["zeetrf",[8488]],["ZeroWidthSpace",[8203]],["Zeta",[918]],["zeta",[950]],["zfr",[120119]],["Zfr",[8488]],["ZHcy",[1046]],["zhcy",[1078]],["zigrarr",[8669]],["zopf",[120171]],["Zopf",[8484]],["Zscr",[119989]],["zscr",[120015]],["zwj",[8205]],["zwnj",[8204]]],i=[["NewLine",[10]]],a={},s={};!function(e,t){var n=r.length;for(;n--;){var o=r[n],a=o[0],s=o[1],c=s[0],l=s[1],d=c<32||c>126||62===c||60===c||38===c||34===c||39===c,u=void 0;d&&(u=t[c]=t[c]||{}),l?(e[a]=String.fromCharCode(c)+String.fromCharCode(l),d&&(u[l]=a)):(e[a]=String.fromCharCode(c),d&&(u[""]=a))}n=i.length;for(;n--;){var h=i[n],p=(a=h[0],h[1]);c=p[0],l=p[1];e[a]=String.fromCharCode(c)+(l?String.fromCharCode(l):"")}}(a,s);var c=function(){function e(){}return e.prototype.decode=function(e){return e&&e.length?e.replace(/&(#?[\w\d]+);?/g,(function(e,t){var n;if("#"===t.charAt(0)){var r="x"===t.charAt(1)?parseInt(t.substr(2).toLowerCase(),16):parseInt(t.substr(1));(!isNaN(r)||r>=-32768)&&(n=r<=65535?String.fromCharCode(r):o.fromCodePoint(r))}else n=a[t];return n||e})):""},e.decode=function(t){return(new e).decode(t)},e.prototype.encode=function(e){if(!e||!e.length)return"";for(var t=e.length,n="",o=0;o<t;){var r=s[e.charCodeAt(o)];if(r){var i=r[e.charCodeAt(o+1)];if(i?o++:i=r[""],i){n+="&"+i+";",o++;continue}}n+=e.charAt(o),o++}return n},e.encode=function(t){return(new e).encode(t)},e.prototype.encodeNonUTF=function(e){if(!e||!e.length)return"";for(var t=e.length,n="",r=0;r<t;){var i=e.charCodeAt(r),a=s[i];if(a){var c=a[e.charCodeAt(r+1)];if(c?r++:c=a[""],c){n+="&"+c+";",r++;continue}}i<32||i>126?i>=o.highSurrogateFrom&&i<=o.highSurrogateTo?(n+="&#"+o.getCodePoint(e,r)+";",r++):n+="&#"+i+";":n+=e.charAt(r),r++}return n},e.encodeNonUTF=function(t){return(new e).encodeNonUTF(t)},e.prototype.encodeNonASCII=function(e){if(!e||!e.length)return"";for(var t=e.length,n="",r=0;r<t;){var i=e.charCodeAt(r);i<=255?n+=e[r++]:i>=o.highSurrogateFrom&&i<=o.highSurrogateTo?(n+="&#"+o.getCodePoint(e,r)+";",r+=2):(n+="&#"+i+";",r++)}return n},e.encodeNonASCII=function(t){return(new e).encodeNonASCII(t)},e}();t.Html5Entities=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var o=n(559),r=n(562);t.decode=function(e,t){return(!t||t<=0?o.decodeXML:o.decodeHTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?o.decodeXML:o.decodeHTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?r.encodeXML:r.encodeHTML)(e)};var i=n(562);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return i.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return i.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return i.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return i.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return i.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return i.encodeHTML}});var a=n(559);Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return a.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return a.decodeXML}})},function(e){e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),t.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},function(e,t,n){"use strict";var o=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,r++)o[r]=i[a];return o};Object.defineProperty(t,"__esModule",{value:!0});var r={equals:"",element:"~",start:"^",end:"$",any:"*",not:"!",hyphen:"|"},i=new Set(o(Object.keys(r).map((function(e){return r[e]})).filter(Boolean),[":","[","]"," ","\\","(",")"]));function a(e){return e.map(s).join(", ")}function s(e){return e.map(c).join("")}function c(e){switch(e.type){case"child":return" > ";case"parent":return" < ";case"sibling":return" ~ ";case"adjacent":return" + ";case"descendant":return" ";case"universal":return d(e.namespace)+"*";case"tag":return l(e);case"pseudo-element":return"::"+u(e.name);case"pseudo":return null===e.data?":"+u(e.name):"string"==typeof e.data?":"+u(e.name)+"("+u(e.data)+")":":"+u(e.name)+"("+a(e.data)+")";case"attribute":if("id"===e.name&&"equals"===e.action&&!e.ignoreCase&&!e.namespace)return"#"+u(e.value);if("class"===e.name&&"element"===e.action&&!e.ignoreCase&&!e.namespace)return"."+u(e.value);var t=l(e);return"exists"===e.action?"["+t+"]":"["+t+r[e.action]+"='"+u(e.value)+"'"+(e.ignoreCase?"i":"")+"]"}}function l(e){return""+d(e.namespace)+u(e.name)}function d(e){return e?("*"===e?"*":u(e))+"|":""}function u(e){return e.split("").map((function(e){return i.has(e)?"\\"+e:e})).join("")}t.default=a},function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.pseudos=t.filters=t.is=t.selectOne=t.selectAll=t.prepareContext=t._compileToken=t._compileUnsafe=t.compile=void 0;var a=i(n(242)),s=n(210),c=n(948),l=n(411),d=function(e,t){return e===t},u={adapter:a,equals:d};function h(e){var t,n,o,r,i=null!=e?e:u;return null!==(t=i.adapter)&&void 0!==t||(i.adapter=a),null!==(n=i.equals)&&void 0!==n||(i.equals=null!==(r=null===(o=i.adapter)||void 0===o?void 0:o.equals)&&void 0!==r?r:d),i}function p(e){return function(t,n,o){var r=h(n);return e(t,r,o)}}function m(e){return function(t,n,o){var r=h(o);"function"!=typeof t&&(t=c.compileUnsafe(t,r,n));var i=g(n,r.adapter,t.shouldTestNextSiblings);return e(t,i,r)}}function g(e,t,n){return void 0===n&&(n=!1),n&&(e=function(e,t){for(var n=Array.isArray(e)?e.slice(0):[e],o=0;o<n.length;o++){var r=l.getNextSiblings(n[o],t);n.push.apply(n,r)}return n}(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}t.compile=p(c.compile),t._compileUnsafe=p(c.compileUnsafe),t._compileToken=p(c.compileToken),t.prepareContext=g,t.selectAll=m((function(e,t,n){return e!==s.falseFunc&&t&&0!==t.length?n.adapter.findAll(e,t):[]})),t.selectOne=m((function(e,t,n){return e!==s.falseFunc&&t&&0!==t.length?n.adapter.findOne(e,t):null})),t.is=function(e,t,n){var o=h(n);return("function"==typeof t?t:c.compile(t,o))(e)},t.default=t.selectAll;var f=n(568);Object.defineProperty(t,"filters",{enumerable:!0,get:function(){return f.filters}}),Object.defineProperty(t,"pseudos",{enumerable:!0,get:function(){return f.pseudos}})},function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var r=n(243),i=o(n(558));function a(e,t){return i.default(e,t)}t.getOuterHTML=a,t.getInnerHTML=function(e,t){return r.hasChildren(e)?e.children.map((function(e){return a(e,t)})).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):r.isTag(t)?"br"===t.name?"\n":e(t.children):r.isCDATA(t)?e(t.children):r.isText(t)?t.data:""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var o=n(243),r=[];function i(e){var t;return null!==(t=e.children)&&void 0!==t?t:r}function a(e){return e.parent||null}t.getChildren=i,t.getParent=a,t.getSiblings=function(e){var t=a(e);if(null!=t)return i(t);for(var n=[e],o=e.prev,r=e.next;null!=o;)n.unshift(o),o=o.prev;for(;null!=r;)n.push(r),r=r.next;return n},t.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!o.isTag(t);)t=t.next;return t}},function(e,t,n){"use strict";function o(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=o,t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var o=t.next=e.next;o&&(o.prev=t);var r=t.parent=e.parent;if(r){var i=r.children;i[i.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(o(t),t.next=null,t.parent=e,e.children.push(t)>1){var n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null},t.append=function(e,t){o(t);var n=e.parent,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){var i=n.children;i.splice(i.lastIndexOf(r),0,t)}}else n&&n.children.push(t)},t.prependChild=function(e,t){if(o(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var n=e.children[1];n.prev=t,t.next=n}else t.next=null},t.prepend=function(e,t){o(t);var n=e.parent;if(n){var r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var o=n(566),r=n(243),i={tag_name:function(e){return"function"==typeof e?function(t){return r.isTag(t)&&e(t.name)}:"*"===e?r.isTag:function(t){return r.isTag(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return r.isText(t)&&e(t.data)}:function(t){return r.isText(t)&&t.data===e}}};function a(e,t){return"function"==typeof t?function(n){return r.isTag(n)&&t(n.attribs[e])}:function(n){return r.isTag(n)&&n.attribs[e]===t}}function s(e,t){return function(n){return e(n)||t(n)}}function c(e){var t=Object.keys(e).map((function(t){var n=e[t];return t in i?i[t](n):a(t,n)}));return 0===t.length?null:t.reduce(s)}t.testElement=function(e,t){var n=c(e);return!n||n(t)},t.getElements=function(e,t,n,r){void 0===r&&(r=1/0);var i=c(e);return i?o.filter(i,t,n,r):[]},t.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),o.findOne(a("id",e),t,n)},t.getElementsByTagName=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),o.filter(i.tag_name(e),t,n,r)},t.getElementsByTagType=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),o.filter(i.tag_type(e),t,n,r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.removeSubsets=void 0;var o=n(243);function r(e,t){var n=[],r=[];if(e===t)return 0;for(var i=o.hasChildren(e)?e:e.parent;i;)n.unshift(i),i=i.parent;for(i=o.hasChildren(t)?t:t.parent;i;)r.unshift(i),i=i.parent;for(var a=Math.min(n.length,r.length),s=0;s<a&&n[s]===r[s];)s++;if(0===s)return 1;var c=n[s-1],l=c.children,d=n[s],u=r[s];return l.indexOf(d)>l.indexOf(u)?c===t?20:4:c===e?10:2}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(var o=n.parent;o;o=o.parent)if(e.includes(o)){e.splice(t,1);break}}return e},t.compareDocumentPosition=r,t.uniqueSort=function(e){return(e=e.filter((function(e,t,n){return!n.includes(e,t+1)}))).sort((function(e,t){var n=r(e,t);return 2&n?-1:4&n?1:0})),e}},function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.compileToken=t.compileUnsafe=t.compile=void 0;var r=n(564),i=n(210),a=o(n(949)),s=n(410),c=n(950),l=n(411);function d(e,t,n){return g(r.parse(e,t),t,n)}function u(e){return"pseudo"===e.type&&("scope"===e.name||Array.isArray(e.data)&&e.data.some((function(e){return e.some(u)})))}t.compile=function(e,t,n){var o=d(e,t,n);return l.ensureIsTag(o,t.adapter)},t.compileUnsafe=d;var h={type:"descendant"},p={type:"_flexibleDescendant"},m={type:"pseudo",name:"scope",data:null};function g(e,t,n){var o;(e=e.filter((function(e){return e.length>0}))).forEach(a.default),n=null!==(o=t.context)&&void 0!==o?o:n;var r=Array.isArray(n),d=n&&(Array.isArray(n)?n:[n]);!function(e,t,n){for(var o=t.adapter,r=!!(null==n?void 0:n.every((function(e){var t=o.getParent(e);return e===l.PLACEHOLDER_ELEMENT||!(!t||!o.isTag(t))}))),i=0,a=e;i<a.length;i++){var c=a[i];if(c.length>0&&s.isTraversal(c[0])&&"descendant"!==c[0].type);else{if(!r||c.some(u))continue;c.unshift(h)}c.unshift(m)}}(e,t,d);var _=!1,b=e.map((function(e){if(e.length>=2){var n=e[0],o=e[1];"pseudo"!==n.type||"scope"!==n.name||(r&&"descendant"===o.type?e[1]=p:"adjacent"!==o.type&&"sibling"!==o.type||(_=!0))}return function(e,t,n){var o;return e.reduce((function(e,o){return e===i.falseFunc?i.falseFunc:c.compileGeneralSelector(e,o,t,n,g)}),null!==(o=t.rootFunc)&&void 0!==o?o:i.trueFunc)}(e,t,d)})).reduce(f,i.falseFunc);return b.shouldTestNextSiblings=_,b}function f(e,t){return t===i.falseFunc||e===i.trueFunc?e:e===i.falseFunc||t===i.trueFunc?t:function(n){return e(n)||t(n)}}t.compileToken=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(410),r={exists:10,equals:8,not:7,start:6,end:6,any:5,hyphen:4,element:4};function i(e){var t=o.procedure[e.type];if("attribute"===e.type)(t=r[e.action])===r.equals&&"id"===e.name&&(t=9),e.ignoreCase&&(t>>=1);else if("pseudo"===e.type)if(e.data)if("has"===e.name||"contains"===e.name)t=0;else if(Array.isArray(e.data)){t=0;for(var n=0;n<e.data.length;n++)if(1===e.data[n].length){var a=i(e.data[n][0]);if(0===a){t=0;break}a>t&&(t=a)}e.data.length>1&&t>0&&(t-=1)}else t=1;else t=3;return t}t.default=function(e){for(var t=e.map(i),n=1;n<e.length;n++){var o=t[n];if(!(o<0))for(var r=n-1;r>=0&&o<t[r];r--){var a=e[r+1];e[r+1]=e[r],e[r]=a,t[r+1]=t[r],t[r]=o}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compileGeneralSelector=void 0;var o=n(567),r=n(568);t.compileGeneralSelector=function(e,t,n,i,a){var s=n.adapter,c=n.equals;switch(t.type){case"pseudo-element":throw new Error("Pseudo-elements are not supported by css-select");case"attribute":if(n.strict&&(t.ignoreCase||"not"===t.action))throw new Error("Unsupported attribute selector");return o.attributeRules[t.action](e,t,n);case"pseudo":return r.compilePseudoSelector(e,t,n,i,a);case"tag":return function(n){return s.getName(n)===t.name&&e(n)};case"descendant":if(!1===n.cacheResults||"undefined"==typeof WeakSet)return function(t){for(var n=t;n=s.getParent(n);)if(s.isTag(n)&&e(n))return!0;return!1};var l=new WeakSet;return function(t){for(var n=t;n=s.getParent(n);)if(!l.has(n)){if(s.isTag(n)&&e(n))return!0;l.add(n)}return!1};case"_flexibleDescendant":return function(t){var n=t;do{if(s.isTag(n)&&e(n))return!0}while(n=s.getParent(n));return!1};case"parent":if(n.strict)throw new Error("Parent selector isn't part of CSS3");return function(t){return s.getChildren(t).some((function(t){return s.isTag(t)&&e(t)}))};case"child":return function(t){var n=s.getParent(t);return!!n&&s.isTag(n)&&e(n)};case"sibling":return function(t){for(var n=s.getSiblings(t),o=0;o<n.length;o++){var r=n[o];if(c(t,r))break;if(s.isTag(r)&&e(r))return!0}return!1};case"adjacent":return function(t){for(var n,o=s.getSiblings(t),r=0;r<o.length;r++){var i=o[r];if(c(t,i))break;s.isTag(i)&&(n=i)}return!!n&&e(n)};case"universal":return e}}},function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.filters=void 0;var r=o(n(952)),i=n(210),a=n(567).attributeRules.equals;function s(e,t){var n={type:"attribute",action:"equals",ignoreCase:!1,namespace:null,name:e,value:t};return function(e,t,o){return a(e,n,o)}}function c(e,t){return function(n){var o=t.getParent(n);return!!o&&t.isTag(o)&&e(n)}}t.filters={contains:function(e,t,n){var o=n.adapter;return function(n){return e(n)&&o.getText(n).includes(t)}},icontains:function(e,t,n){var o=n.adapter,r=t.toLowerCase();return function(t){return e(t)&&o.getText(t).toLowerCase().includes(r)}},"nth-child":function(e,t,n){var o=n.adapter,a=n.equals,s=r.default(t);return s===i.falseFunc?i.falseFunc:s===i.trueFunc?c(e,o):function(t){for(var n=o.getSiblings(t),r=0,i=0;i<n.length&&!a(t,n[i]);i++)o.isTag(n[i])&&r++;return s(r)&&e(t)}},"nth-last-child":function(e,t,n){var o=n.adapter,a=n.equals,s=r.default(t);return s===i.falseFunc?i.falseFunc:s===i.trueFunc?c(e,o):function(t){for(var n=o.getSiblings(t),r=0,i=n.length-1;i>=0&&!a(t,n[i]);i--)o.isTag(n[i])&&r++;return s(r)&&e(t)}},"nth-of-type":function(e,t,n){var o=n.adapter,a=n.equals,s=r.default(t);return s===i.falseFunc?i.falseFunc:s===i.trueFunc?c(e,o):function(t){for(var n=o.getSiblings(t),r=0,i=0;i<n.length;i++){var c=n[i];if(a(t,c))break;o.isTag(c)&&o.getName(c)===o.getName(t)&&r++}return s(r)&&e(t)}},"nth-last-of-type":function(e,t,n){var o=n.adapter,a=n.equals,s=r.default(t);return s===i.falseFunc?i.falseFunc:s===i.trueFunc?c(e,o):function(t){for(var n=o.getSiblings(t),r=0,i=n.length-1;i>=0;i--){var c=n[i];if(a(t,c))break;o.isTag(c)&&o.getName(c)===o.getName(t)&&r++}return s(r)&&e(t)}},root:function(e,t,n){var o=n.adapter;return function(t){var n=o.getParent(t);return(null==n||!o.isTag(n))&&e(t)}},scope:function(e,n,o,r){var i=o.equals;return r&&0!==r.length?1===r.length?function(t){return i(r[0],t)&&e(t)}:function(t){return r.includes(t)&&e(t)}:t.filters.root(e,n,o)},checkbox:s("type","checkbox"),file:s("type","file"),password:s("type","password"),radio:s("type","radio"),reset:s("type","reset"),image:s("type","image"),submit:s("type","submit"),hover:function(e,t,n){var o=n.adapter.isHovered;return"function"!=typeof o?i.falseFunc:function(t){return o(t)&&e(t)}},visited:function(e,t,n){var o=n.adapter.isVisited;return"function"!=typeof o?i.falseFunc:function(t){return o(t)&&e(t)}},active:function(e,t,n){var o=n.adapter.isActive;return"function"!=typeof o?i.falseFunc:function(t){return o(t)&&e(t)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compile=t.parse=void 0;var o=n(953);Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return o.parse}});var r=n(954);Object.defineProperty(t,"compile",{enumerable:!0,get:function(){return r.compile}}),t.default=function(e){return r.compile(o.parse(e))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=void 0;var o=/^([+-]?\d*n)?\s*(?:([+-]?)\s*(\d+))?$/;t.parse=function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];var t,n=e.match(o);if(!n)throw new Error("n-th rule couldn't be parsed ('"+e+"')");return n[1]?(t=parseInt(n[1],10),isNaN(t)&&(t=n[1].startsWith("-")?-1:1)):t=0,[t,("-"===n[2]?-1:1)*(n[3]?parseInt(n[3],10):0)]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compile=void 0;var o=n(210);t.compile=function(e){var t=e[0],n=e[1]-1;if(n<0&&t<=0)return o.falseFunc;if(-1===t)return function(e){return e<=n};if(0===t)return function(e){return e===n};if(1===t)return n<0?o.trueFunc:function(e){return e>=n};var r=Math.abs(t),i=(n%r+r)%r;return t>1?function(e){return e>=n&&e%r===i}:function(e){return e<=n&&e%r===i}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyPseudoArgs=t.pseudos=void 0;var o=r(["a","area","link"]);function r(e){if("undefined"!=typeof Set){var t=new Set(e);return function(e,n){var o=n.adapter;return t.has(o.getName(e))}}return function(t,n){var o=n.adapter;return e.includes(o.getName(t))}}t.pseudos={empty:function(e,t){var n=t.adapter;return!n.getChildren(e).some((function(e){return n.isTag(e)||""!==n.getText(e)}))},"first-child":function(e,t){var n=t.adapter,o=t.equals,r=n.getSiblings(e).find((function(e){return n.isTag(e)}));return null!=r&&o(e,r)},"last-child":function(e,t){for(var n=t.adapter,o=t.equals,r=n.getSiblings(e),i=r.length-1;i>=0;i--){if(o(e,r[i]))return!0;if(n.isTag(r[i]))break}return!1},"first-of-type":function(e,t){for(var n=t.adapter,o=t.equals,r=n.getSiblings(e),i=n.getName(e),a=0;a<r.length;a++){var s=r[a];if(o(e,s))return!0;if(n.isTag(s)&&n.getName(s)===i)break}return!1},"last-of-type":function(e,t){for(var n=t.adapter,o=t.equals,r=n.getSiblings(e),i=n.getName(e),a=r.length-1;a>=0;a--){var s=r[a];if(o(e,s))return!0;if(n.isTag(s)&&n.getName(s)===i)break}return!1},"only-of-type":function(e,t){var n=t.adapter,o=t.equals,r=n.getName(e);return n.getSiblings(e).every((function(t){return o(e,t)||!n.isTag(t)||n.getName(t)!==r}))},"only-child":function(e,t){var n=t.adapter,o=t.equals;return n.getSiblings(e).every((function(t){return o(e,t)||!n.isTag(t)}))},"any-link":function(e,t){return o(e,t)&&t.adapter.hasAttrib(e,"href")},link:function(e,n){var o,r;return!0!==(null===(r=(o=n.adapter).isVisited)||void 0===r?void 0:r.call(o,e))&&t.pseudos["any-link"](e,n)},selected:function(e,t){var n=t.adapter,o=t.equals;if(n.hasAttrib(e,"selected"))return!0;if("option"!==n.getName(e))return!1;var r=n.getParent(e);if(!r||!n.isTag(r)||"select"!==n.getName(r)||n.hasAttrib(r,"multiple"))return!1;for(var i=n.getChildren(r),a=!1,s=0;s<i.length;s++){var c=i[s];if(n.isTag(c))if(o(e,c))a=!0;else{if(!a)return!1;if(n.hasAttrib(c,"selected"))return!1}}return a},disabled:function(e,t){return t.adapter.hasAttrib(e,"disabled")},enabled:function(e,t){return!t.adapter.hasAttrib(e,"disabled")},checked:function(e,n){return n.adapter.hasAttrib(e,"checked")||t.pseudos.selected(e,n)},required:function(e,t){return t.adapter.hasAttrib(e,"required")},optional:function(e,t){return!t.adapter.hasAttrib(e,"required")},parent:function(e,n){return!t.pseudos.empty(e,n)},header:r(["h1","h2","h3","h4","h5","h6"]),button:function(e,t){var n=t.adapter,o=n.getName(e);return"button"===o||"input"===o&&"button"===n.getAttributeValue(e,"type")},input:r(["input","textarea","select","button"]),text:function(e,t){var n=t.adapter,o=n.getAttributeValue(e,"type");return"input"===n.getName(e)&&(!o||"text"===o.toLowerCase())}},t.verifyPseudoArgs=function(e,t,n){if(null===n){if(e.length>2&&"scope"!==t)throw new Error("pseudo-selector :"+t+" requires an argument")}else if(2===e.length)throw new Error("pseudo-selector :"+t+" doesn't have any arguments")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupSelectors=t.getDocumentRoot=void 0;var o=n(569);t.getDocumentRoot=function(e){for(;e.parent;)e=e.parent;return e},t.groupSelectors=function(e){for(var t=[],n=[],r=0,i=e;r<i.length;r++){var a=i[r];a.some(o.isFilter)?t.push(a):n.push(a)}return[n,t]}},function(e,t,n){"use strict";const o=n(323),r=n(960),i=n(961),a=n(962),s=n(964),c=n(171),l=n(572),d=n(573),u=n(407),h=n(967),p=n(414),m=n(413),g=n(193),f=g.TAG_NAMES,_=g.NAMESPACES,b=g.ATTRS,v={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:l},y="IN_TABLE_MODE",E={[f.TR]:"IN_ROW_MODE",[f.TBODY]:"IN_TABLE_BODY_MODE",[f.THEAD]:"IN_TABLE_BODY_MODE",[f.TFOOT]:"IN_TABLE_BODY_MODE",[f.CAPTION]:"IN_CAPTION_MODE",[f.COLGROUP]:"IN_COLUMN_GROUP_MODE",[f.TABLE]:y,[f.BODY]:"IN_BODY_MODE",[f.FRAMESET]:"IN_FRAMESET_MODE"},S={[f.CAPTION]:y,[f.COLGROUP]:y,[f.TBODY]:y,[f.TFOOT]:y,[f.THEAD]:y,[f.COL]:"IN_COLUMN_GROUP_MODE",[f.TR]:"IN_TABLE_BODY_MODE",[f.TD]:"IN_ROW_MODE",[f.TH]:"IN_ROW_MODE"},w={INITIAL_MODE:{[o.CHARACTER_TOKEN]:L,[o.NULL_CHARACTER_TOKEN]:L,[o.WHITESPACE_CHARACTER_TOKEN]:I,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:function(e,t){e._setDocumentType(t);const n=t.forceQuirks?g.DOCUMENT_MODE.QUIRKS:u.getDocumentMode(t);u.isConforming(t)||e._err(p.nonConformingDoctype);e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode="BEFORE_HTML_MODE"},[o.START_TAG_TOKEN]:L,[o.END_TAG_TOKEN]:L,[o.EOF_TOKEN]:L},BEFORE_HTML_MODE:{[o.CHARACTER_TOKEN]:j,[o.NULL_CHARACTER_TOKEN]:j,[o.WHITESPACE_CHARACTER_TOKEN]:I,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){t.tagName===f.HTML?(e._insertElement(t,_.HTML),e.insertionMode="BEFORE_HEAD_MODE"):j(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n!==f.HTML&&n!==f.HEAD&&n!==f.BODY&&n!==f.BR||j(e,t)},[o.EOF_TOKEN]:j},BEFORE_HEAD_MODE:{[o.CHARACTER_TOKEN]:U,[o.NULL_CHARACTER_TOKEN]:U,[o.WHITESPACE_CHARACTER_TOKEN]:I,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:A,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.HTML?oe(e,t):n===f.HEAD?(e._insertElement(t,_.HTML),e.headElement=e.openElements.current,e.insertionMode="IN_HEAD_MODE"):U(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.HEAD||n===f.BODY||n===f.HTML||n===f.BR?U(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[o.EOF_TOKEN]:U},IN_HEAD_MODE:{[o.CHARACTER_TOKEN]:G,[o.NULL_CHARACTER_TOKEN]:G,[o.WHITESPACE_CHARACTER_TOKEN]:M,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:A,[o.START_TAG_TOKEN]:B,[o.END_TAG_TOKEN]:q,[o.EOF_TOKEN]:G},IN_HEAD_NO_SCRIPT_MODE:{[o.CHARACTER_TOKEN]:V,[o.NULL_CHARACTER_TOKEN]:V,[o.WHITESPACE_CHARACTER_TOKEN]:M,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:A,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.HTML?oe(e,t):n===f.BASEFONT||n===f.BGSOUND||n===f.HEAD||n===f.LINK||n===f.META||n===f.NOFRAMES||n===f.STYLE?B(e,t):n===f.NOSCRIPT?e._err(p.nestedNoscriptInHead):V(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.NOSCRIPT?(e.openElements.pop(),e.insertionMode="IN_HEAD_MODE"):n===f.BR?V(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[o.EOF_TOKEN]:V},AFTER_HEAD_MODE:{[o.CHARACTER_TOKEN]:H,[o.NULL_CHARACTER_TOKEN]:H,[o.WHITESPACE_CHARACTER_TOKEN]:M,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:A,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.HTML?oe(e,t):n===f.BODY?(e._insertElement(t,_.HTML),e.framesetOk=!1,e.insertionMode="IN_BODY_MODE"):n===f.FRAMESET?(e._insertElement(t,_.HTML),e.insertionMode="IN_FRAMESET_MODE"):n===f.BASE||n===f.BASEFONT||n===f.BGSOUND||n===f.LINK||n===f.META||n===f.NOFRAMES||n===f.SCRIPT||n===f.STYLE||n===f.TEMPLATE||n===f.TITLE?(e._err(p.abandonedHeadElementChild),e.openElements.push(e.headElement),B(e,t),e.openElements.remove(e.headElement)):n===f.HEAD?e._err(p.misplacedStartTagForHeadElement):H(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.BODY||n===f.HTML||n===f.BR?H(e,t):n===f.TEMPLATE?q(e,t):e._err(p.endTagWithoutMatchingOpenElement)},[o.EOF_TOKEN]:H},IN_BODY_MODE:{[o.CHARACTER_TOKEN]:K,[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:z,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:oe,[o.END_TAG_TOKEN]:se,[o.EOF_TOKEN]:ce},TEXT_MODE:{[o.CHARACTER_TOKEN]:M,[o.NULL_CHARACTER_TOKEN]:M,[o.WHITESPACE_CHARACTER_TOKEN]:M,[o.COMMENT_TOKEN]:I,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:I,[o.END_TAG_TOKEN]:function(e,t){t.tagName===f.SCRIPT&&(e.pendingScript=e.openElements.current);e.openElements.pop(),e.insertionMode=e.originalInsertionMode},[o.EOF_TOKEN]:function(e,t){e._err(p.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}},[y]:{[o.CHARACTER_TOKEN]:le,[o.NULL_CHARACTER_TOKEN]:le,[o.WHITESPACE_CHARACTER_TOKEN]:le,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:de,[o.END_TAG_TOKEN]:ue,[o.EOF_TOKEN]:ce},IN_TABLE_TEXT_MODE:{[o.CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0},[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:function(e,t){e.pendingCharacterTokens.push(t)},[o.COMMENT_TOKEN]:pe,[o.DOCTYPE_TOKEN]:pe,[o.START_TAG_TOKEN]:pe,[o.END_TAG_TOKEN]:pe,[o.EOF_TOKEN]:pe},IN_CAPTION_MODE:{[o.CHARACTER_TOKEN]:K,[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:z,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.CAPTION||n===f.COL||n===f.COLGROUP||n===f.TBODY||n===f.TD||n===f.TFOOT||n===f.TH||n===f.THEAD||n===f.TR?e.openElements.hasInTableScope(f.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=y,e._processToken(t)):oe(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.CAPTION||n===f.TABLE?e.openElements.hasInTableScope(f.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=y,n===f.TABLE&&e._processToken(t)):n!==f.BODY&&n!==f.COL&&n!==f.COLGROUP&&n!==f.HTML&&n!==f.TBODY&&n!==f.TD&&n!==f.TFOOT&&n!==f.TH&&n!==f.THEAD&&n!==f.TR&&se(e,t)},[o.EOF_TOKEN]:ce},IN_COLUMN_GROUP_MODE:{[o.CHARACTER_TOKEN]:me,[o.NULL_CHARACTER_TOKEN]:me,[o.WHITESPACE_CHARACTER_TOKEN]:M,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.HTML?oe(e,t):n===f.COL?(e._appendElement(t,_.HTML),t.ackSelfClosing=!0):n===f.TEMPLATE?B(e,t):me(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.COLGROUP?e.openElements.currentTagName===f.COLGROUP&&(e.openElements.pop(),e.insertionMode=y):n===f.TEMPLATE?q(e,t):n!==f.COL&&me(e,t)},[o.EOF_TOKEN]:ce},IN_TABLE_BODY_MODE:{[o.CHARACTER_TOKEN]:le,[o.NULL_CHARACTER_TOKEN]:le,[o.WHITESPACE_CHARACTER_TOKEN]:le,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.TR?(e.openElements.clearBackToTableBodyContext(),e._insertElement(t,_.HTML),e.insertionMode="IN_ROW_MODE"):n===f.TH||n===f.TD?(e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(f.TR),e.insertionMode="IN_ROW_MODE",e._processToken(t)):n===f.CAPTION||n===f.COL||n===f.COLGROUP||n===f.TBODY||n===f.TFOOT||n===f.THEAD?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=y,e._processToken(t)):de(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.TBODY||n===f.TFOOT||n===f.THEAD?e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=y):n===f.TABLE?e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=y,e._processToken(t)):(n!==f.BODY&&n!==f.CAPTION&&n!==f.COL&&n!==f.COLGROUP||n!==f.HTML&&n!==f.TD&&n!==f.TH&&n!==f.TR)&&ue(e,t)},[o.EOF_TOKEN]:ce},IN_ROW_MODE:{[o.CHARACTER_TOKEN]:le,[o.NULL_CHARACTER_TOKEN]:le,[o.WHITESPACE_CHARACTER_TOKEN]:le,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.TH||n===f.TD?(e.openElements.clearBackToTableRowContext(),e._insertElement(t,_.HTML),e.insertionMode="IN_CELL_MODE",e.activeFormattingElements.insertMarker()):n===f.CAPTION||n===f.COL||n===f.COLGROUP||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR?e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)):de(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.TR?e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE"):n===f.TABLE?e.openElements.hasInTableScope(f.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)):n===f.TBODY||n===f.TFOOT||n===f.THEAD?(e.openElements.hasInTableScope(n)||e.openElements.hasInTableScope(f.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)):(n!==f.BODY&&n!==f.CAPTION&&n!==f.COL&&n!==f.COLGROUP||n!==f.HTML&&n!==f.TD&&n!==f.TH)&&ue(e,t)},[o.EOF_TOKEN]:ce},IN_CELL_MODE:{[o.CHARACTER_TOKEN]:K,[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:z,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.CAPTION||n===f.COL||n===f.COLGROUP||n===f.TBODY||n===f.TD||n===f.TFOOT||n===f.TH||n===f.THEAD||n===f.TR?(e.openElements.hasInTableScope(f.TD)||e.openElements.hasInTableScope(f.TH))&&(e._closeTableCell(),e._processToken(t)):oe(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.TD||n===f.TH?e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode="IN_ROW_MODE"):n===f.TABLE||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR?e.openElements.hasInTableScope(n)&&(e._closeTableCell(),e._processToken(t)):n!==f.BODY&&n!==f.CAPTION&&n!==f.COL&&n!==f.COLGROUP&&n!==f.HTML&&se(e,t)},[o.EOF_TOKEN]:ce},IN_SELECT_MODE:{[o.CHARACTER_TOKEN]:M,[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:M,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:ge,[o.END_TAG_TOKEN]:fe,[o.EOF_TOKEN]:ce},IN_SELECT_IN_TABLE_MODE:{[o.CHARACTER_TOKEN]:M,[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:M,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.CAPTION||n===f.TABLE||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR||n===f.TD||n===f.TH?(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e._processToken(t)):ge(e,t)},[o.END_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.CAPTION||n===f.TABLE||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR||n===f.TD||n===f.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),e._processToken(t)):fe(e,t)},[o.EOF_TOKEN]:ce},IN_TEMPLATE_MODE:{[o.CHARACTER_TOKEN]:K,[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:z,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;if(n===f.BASE||n===f.BASEFONT||n===f.BGSOUND||n===f.LINK||n===f.META||n===f.NOFRAMES||n===f.SCRIPT||n===f.STYLE||n===f.TEMPLATE||n===f.TITLE)B(e,t);else{const o=S[n]||"IN_BODY_MODE";e._popTmplInsertionMode(),e._pushTmplInsertionMode(o),e.insertionMode=o,e._processToken(t)}},[o.END_TAG_TOKEN]:function(e,t){t.tagName===f.TEMPLATE&&q(e,t)},[o.EOF_TOKEN]:_e},AFTER_BODY_MODE:{[o.CHARACTER_TOKEN]:be,[o.NULL_CHARACTER_TOKEN]:be,[o.WHITESPACE_CHARACTER_TOKEN]:z,[o.COMMENT_TOKEN]:function(e,t){e._appendCommentNode(t,e.openElements.items[0])},[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){t.tagName===f.HTML?oe(e,t):be(e,t)},[o.END_TAG_TOKEN]:function(e,t){t.tagName===f.HTML?e.fragmentContext||(e.insertionMode="AFTER_AFTER_BODY_MODE"):be(e,t)},[o.EOF_TOKEN]:P},IN_FRAMESET_MODE:{[o.CHARACTER_TOKEN]:I,[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:M,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.HTML?oe(e,t):n===f.FRAMESET?e._insertElement(t,_.HTML):n===f.FRAME?(e._appendElement(t,_.HTML),t.ackSelfClosing=!0):n===f.NOFRAMES&&B(e,t)},[o.END_TAG_TOKEN]:function(e,t){t.tagName!==f.FRAMESET||e.openElements.isRootHtmlElementCurrent()||(e.openElements.pop(),e.fragmentContext||e.openElements.currentTagName===f.FRAMESET||(e.insertionMode="AFTER_FRAMESET_MODE"))},[o.EOF_TOKEN]:P},AFTER_FRAMESET_MODE:{[o.CHARACTER_TOKEN]:I,[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:M,[o.COMMENT_TOKEN]:N,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.HTML?oe(e,t):n===f.NOFRAMES&&B(e,t)},[o.END_TAG_TOKEN]:function(e,t){t.tagName===f.HTML&&(e.insertionMode="AFTER_AFTER_FRAMESET_MODE")},[o.EOF_TOKEN]:P},AFTER_AFTER_BODY_MODE:{[o.CHARACTER_TOKEN]:ve,[o.NULL_CHARACTER_TOKEN]:ve,[o.WHITESPACE_CHARACTER_TOKEN]:z,[o.COMMENT_TOKEN]:F,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){t.tagName===f.HTML?oe(e,t):ve(e,t)},[o.END_TAG_TOKEN]:ve,[o.EOF_TOKEN]:P},AFTER_AFTER_FRAMESET_MODE:{[o.CHARACTER_TOKEN]:I,[o.NULL_CHARACTER_TOKEN]:I,[o.WHITESPACE_CHARACTER_TOKEN]:z,[o.COMMENT_TOKEN]:F,[o.DOCTYPE_TOKEN]:I,[o.START_TAG_TOKEN]:function(e,t){const n=t.tagName;n===f.HTML?oe(e,t):n===f.NOFRAMES&&B(e,t)},[o.END_TAG_TOKEN]:I,[o.EOF_TOKEN]:P}};function C(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):ae(e,t),n}function T(e,t){let n=null;for(let o=e.openElements.stackTop;o>=0;o--){const r=e.openElements.items[o];if(r===t.element)break;e._isSpecialElement(r)&&(n=r)}return n||(e.openElements.popUntilElementPopped(t.element),e.activeFormattingElements.removeEntry(t)),n}function x(e,t,n){let o=t,r=e.openElements.getCommonAncestor(t);for(let i=0,a=r;a!==n;i++,a=r){r=e.openElements.getCommonAncestor(a);const n=e.activeFormattingElements.getElementEntry(a),s=n&&i>=3;!n||s?(s&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(a)):(a=O(e,n),o===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(o),e.treeAdapter.appendChild(a,o),o=a)}return o}function O(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),o=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,o),t.element=o,o}function k(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const o=e.treeAdapter.getTagName(t),r=e.treeAdapter.getNamespaceURI(t);o===f.TEMPLATE&&r===_.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function R(e,t,n){const o=e.treeAdapter.getNamespaceURI(n.element),r=n.token,i=e.treeAdapter.createElement(r.tagName,o,r.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i)}function D(e,t){let n;for(let o=0;o<8&&(n=C(e,t),n);o++){const t=T(e,n);if(!t)break;e.activeFormattingElements.bookmark=n;const o=x(e,t,n.element),r=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(o),k(e,r,o),R(e,t,n)}}function I(){}function A(e){e._err(p.misplacedDoctype)}function N(e,t){e._appendCommentNode(t,e.openElements.currentTmplContent||e.openElements.current)}function F(e,t){e._appendCommentNode(t,e.document)}function M(e,t){e._insertCharacters(t)}function P(e){e.stopped=!0}function L(e,t){e._err(p.missingDoctype,{beforeToken:!0}),e.treeAdapter.setDocumentMode(e.document,g.DOCUMENT_MODE.QUIRKS),e.insertionMode="BEFORE_HTML_MODE",e._processToken(t)}function j(e,t){e._insertFakeRootElement(),e.insertionMode="BEFORE_HEAD_MODE",e._processToken(t)}function U(e,t){e._insertFakeElement(f.HEAD),e.headElement=e.openElements.current,e.insertionMode="IN_HEAD_MODE",e._processToken(t)}function B(e,t){const n=t.tagName;n===f.HTML?oe(e,t):n===f.BASE||n===f.BASEFONT||n===f.BGSOUND||n===f.LINK||n===f.META?(e._appendElement(t,_.HTML),t.ackSelfClosing=!0):n===f.TITLE?e._switchToTextParsing(t,o.MODE.RCDATA):n===f.NOSCRIPT?e.options.scriptingEnabled?e._switchToTextParsing(t,o.MODE.RAWTEXT):(e._insertElement(t,_.HTML),e.insertionMode="IN_HEAD_NO_SCRIPT_MODE"):n===f.NOFRAMES||n===f.STYLE?e._switchToTextParsing(t,o.MODE.RAWTEXT):n===f.SCRIPT?e._switchToTextParsing(t,o.MODE.SCRIPT_DATA):n===f.TEMPLATE?(e._insertTemplate(t,_.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode="IN_TEMPLATE_MODE",e._pushTmplInsertionMode("IN_TEMPLATE_MODE")):n===f.HEAD?e._err(p.misplacedStartTagForHeadElement):G(e,t)}function q(e,t){const n=t.tagName;n===f.HEAD?(e.openElements.pop(),e.insertionMode="AFTER_HEAD_MODE"):n===f.BODY||n===f.BR||n===f.HTML?G(e,t):n===f.TEMPLATE&&e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==f.TEMPLATE&&e._err(p.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(p.endTagWithoutMatchingOpenElement)}function G(e,t){e.openElements.pop(),e.insertionMode="AFTER_HEAD_MODE",e._processToken(t)}function V(e,t){const n=t.type===o.EOF_TOKEN?p.openElementsLeftAfterEof:p.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode="IN_HEAD_MODE",e._processToken(t)}function H(e,t){e._insertFakeElement(f.BODY),e.insertionMode="IN_BODY_MODE",e._processToken(t)}function z(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function K(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function W(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML)}function Y(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function $(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Q(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function J(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,_.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function X(e,t){e._appendElement(t,_.HTML),t.ackSelfClosing=!0}function Z(e,t){e._switchToTextParsing(t,o.MODE.RAWTEXT)}function ee(e,t){e.openElements.currentTagName===f.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML)}function te(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,_.HTML)}function ne(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML)}function oe(e,t){const n=t.tagName;switch(n.length){case 1:n===f.I||n===f.S||n===f.B||n===f.U?$(e,t):n===f.P?W(e,t):n===f.A?function(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(f.A);n&&(D(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):ne(e,t);break;case 2:n===f.DL||n===f.OL||n===f.UL?W(e,t):n===f.H1||n===f.H2||n===f.H3||n===f.H4||n===f.H5||n===f.H6?function(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement();const n=e.openElements.currentTagName;n!==f.H1&&n!==f.H2&&n!==f.H3&&n!==f.H4&&n!==f.H5&&n!==f.H6||e.openElements.pop(),e._insertElement(t,_.HTML)}(e,t):n===f.LI||n===f.DD||n===f.DT?function(e,t){e.framesetOk=!1;const n=t.tagName;for(let t=e.openElements.stackTop;t>=0;t--){const o=e.openElements.items[t],r=e.treeAdapter.getTagName(o);let i=null;if(n===f.LI&&r===f.LI?i=f.LI:n!==f.DD&&n!==f.DT||r!==f.DD&&r!==f.DT||(i=r),i){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(r!==f.ADDRESS&&r!==f.DIV&&r!==f.P&&e._isSpecialElement(o))break}e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML)}(e,t):n===f.EM||n===f.TT?$(e,t):n===f.BR?J(e,t):n===f.HR?function(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._appendElement(t,_.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}(e,t):n===f.RB?te(e,t):n===f.RT||n===f.RP?function(e,t){e.openElements.hasInScope(f.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(f.RTC),e._insertElement(t,_.HTML)}(e,t):n!==f.TH&&n!==f.TD&&n!==f.TR&&ne(e,t);break;case 3:n===f.DIV||n===f.DIR||n===f.NAV?W(e,t):n===f.PRE?Y(e,t):n===f.BIG?$(e,t):n===f.IMG||n===f.WBR?J(e,t):n===f.XMP?function(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,o.MODE.RAWTEXT)}(e,t):n===f.SVG?function(e,t){e._reconstructActiveFormattingElements(),h.adjustTokenSVGAttrs(t),h.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,_.SVG):e._insertElement(t,_.SVG),t.ackSelfClosing=!0}(e,t):n===f.RTC?te(e,t):n!==f.COL&&ne(e,t);break;case 4:n===f.HTML?function(e,t){0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}(e,t):n===f.BASE||n===f.LINK||n===f.META?B(e,t):n===f.BODY?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t):n===f.MAIN||n===f.MENU?W(e,t):n===f.FORM?function(e,t){const n=e.openElements.tmplCount>0;e.formElement&&!n||(e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML),n||(e.formElement=e.openElements.current))}(e,t):n===f.CODE||n===f.FONT?$(e,t):n===f.NOBR?function(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(f.NOBR)&&(D(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,_.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t):n===f.AREA?J(e,t):n===f.MATH?function(e,t){e._reconstructActiveFormattingElements(),h.adjustTokenMathMLAttrs(t),h.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,_.MATHML):e._insertElement(t,_.MATHML),t.ackSelfClosing=!0}(e,t):n===f.MENU?function(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML)}(e,t):n!==f.HEAD&&ne(e,t);break;case 5:n===f.STYLE||n===f.TITLE?B(e,t):n===f.ASIDE?W(e,t):n===f.SMALL?$(e,t):n===f.TABLE?function(e,t){e.treeAdapter.getDocumentMode(e.document)!==g.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML),e.framesetOk=!1,e.insertionMode=y}(e,t):n===f.EMBED?J(e,t):n===f.INPUT?function(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,_.HTML);const n=o.getTokenAttr(t,b.TYPE);n&&"hidden"===n.toLowerCase()||(e.framesetOk=!1),t.ackSelfClosing=!0}(e,t):n===f.PARAM||n===f.TRACK?X(e,t):n===f.IMAGE?function(e,t){t.tagName=f.IMG,J(e,t)}(e,t):n!==f.FRAME&&n!==f.TBODY&&n!==f.TFOOT&&n!==f.THEAD&&ne(e,t);break;case 6:n===f.SCRIPT?B(e,t):n===f.CENTER||n===f.FIGURE||n===f.FOOTER||n===f.HEADER||n===f.HGROUP||n===f.DIALOG?W(e,t):n===f.BUTTON?function(e,t){e.openElements.hasInScope(f.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(f.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.framesetOk=!1}(e,t):n===f.STRIKE||n===f.STRONG?$(e,t):n===f.APPLET||n===f.OBJECT?Q(e,t):n===f.KEYGEN?J(e,t):n===f.SOURCE?X(e,t):n===f.IFRAME?function(e,t){e.framesetOk=!1,e._switchToTextParsing(t,o.MODE.RAWTEXT)}(e,t):n===f.SELECT?function(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,_.HTML),e.framesetOk=!1,e.insertionMode===y||"IN_CAPTION_MODE"===e.insertionMode||"IN_TABLE_BODY_MODE"===e.insertionMode||"IN_ROW_MODE"===e.insertionMode||"IN_CELL_MODE"===e.insertionMode?e.insertionMode="IN_SELECT_IN_TABLE_MODE":e.insertionMode="IN_SELECT_MODE"}(e,t):n===f.OPTION?ee(e,t):ne(e,t);break;case 7:n===f.BGSOUND?B(e,t):n===f.DETAILS||n===f.ADDRESS||n===f.ARTICLE||n===f.SECTION||n===f.SUMMARY?W(e,t):n===f.LISTING?Y(e,t):n===f.MARQUEE?Q(e,t):n===f.NOEMBED?Z(e,t):n!==f.CAPTION&&ne(e,t);break;case 8:n===f.BASEFONT?B(e,t):n===f.FRAMESET?function(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,_.HTML),e.insertionMode="IN_FRAMESET_MODE")}(e,t):n===f.FIELDSET?W(e,t):n===f.TEXTAREA?function(e,t){e._insertElement(t,_.HTML),e.skipNextNewLine=!0,e.tokenizer.state=o.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode="TEXT_MODE"}(e,t):n===f.TEMPLATE?B(e,t):n===f.NOSCRIPT?e.options.scriptingEnabled?Z(e,t):ne(e,t):n===f.OPTGROUP?ee(e,t):n!==f.COLGROUP&&ne(e,t);break;case 9:n===f.PLAINTEXT?function(e,t){e.openElements.hasInButtonScope(f.P)&&e._closePElement(),e._insertElement(t,_.HTML),e.tokenizer.state=o.MODE.PLAINTEXT}(e,t):ne(e,t);break;case 10:n===f.BLOCKQUOTE||n===f.FIGCAPTION?W(e,t):ne(e,t);break;default:ne(e,t)}}function re(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function ie(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ae(e,t){const n=t.tagName;for(let t=e.openElements.stackTop;t>0;t--){const o=e.openElements.items[t];if(e.treeAdapter.getTagName(o)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(o);break}if(e._isSpecialElement(o))break}}function se(e,t){const n=t.tagName;switch(n.length){case 1:n===f.A||n===f.B||n===f.I||n===f.S||n===f.U?D(e,t):n===f.P?function(e){e.openElements.hasInButtonScope(f.P)||e._insertFakeElement(f.P),e._closePElement()}(e):ae(e,t);break;case 2:n===f.DL||n===f.UL||n===f.OL?re(e,t):n===f.LI?function(e){e.openElements.hasInListItemScope(f.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(f.LI),e.openElements.popUntilTagNamePopped(f.LI))}(e):n===f.DD||n===f.DT?function(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t):n===f.H1||n===f.H2||n===f.H3||n===f.H4||n===f.H5||n===f.H6?function(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}(e):n===f.BR?function(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(f.BR),e.openElements.pop(),e.framesetOk=!1}(e):n===f.EM||n===f.TT?D(e,t):ae(e,t);break;case 3:n===f.BIG?D(e,t):n===f.DIR||n===f.DIV||n===f.NAV||n===f.PRE?re(e,t):ae(e,t);break;case 4:n===f.BODY?function(e){e.openElements.hasInScope(f.BODY)&&(e.insertionMode="AFTER_BODY_MODE")}(e):n===f.HTML?function(e,t){e.openElements.hasInScope(f.BODY)&&(e.insertionMode="AFTER_BODY_MODE",e._processToken(t))}(e,t):n===f.FORM?function(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(f.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(f.FORM):e.openElements.remove(n))}(e):n===f.CODE||n===f.FONT||n===f.NOBR?D(e,t):n===f.MAIN||n===f.MENU?re(e,t):ae(e,t);break;case 5:n===f.ASIDE?re(e,t):n===f.SMALL?D(e,t):ae(e,t);break;case 6:n===f.CENTER||n===f.FIGURE||n===f.FOOTER||n===f.HEADER||n===f.HGROUP||n===f.DIALOG?re(e,t):n===f.APPLET||n===f.OBJECT?ie(e,t):n===f.STRIKE||n===f.STRONG?D(e,t):ae(e,t);break;case 7:n===f.ADDRESS||n===f.ARTICLE||n===f.DETAILS||n===f.SECTION||n===f.SUMMARY||n===f.LISTING?re(e,t):n===f.MARQUEE?ie(e,t):ae(e,t);break;case 8:n===f.FIELDSET?re(e,t):n===f.TEMPLATE?q(e,t):ae(e,t);break;case 10:n===f.BLOCKQUOTE||n===f.FIGCAPTION?re(e,t):ae(e,t);break;default:ae(e,t)}}function ce(e,t){e.tmplInsertionModeStackTop>-1?_e(e,t):e.stopped=!0}function le(e,t){const n=e.openElements.currentTagName;n===f.TABLE||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode="IN_TABLE_TEXT_MODE",e._processToken(t)):he(e,t)}function de(e,t){const n=t.tagName;switch(n.length){case 2:n===f.TD||n===f.TH||n===f.TR?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(f.TBODY),e.insertionMode="IN_TABLE_BODY_MODE",e._processToken(t)}(e,t):he(e,t);break;case 3:n===f.COL?function(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(f.COLGROUP),e.insertionMode="IN_COLUMN_GROUP_MODE",e._processToken(t)}(e,t):he(e,t);break;case 4:n===f.FORM?function(e,t){e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,_.HTML),e.formElement=e.openElements.current,e.openElements.pop())}(e,t):he(e,t);break;case 5:n===f.TABLE?function(e,t){e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode(),e._processToken(t))}(e,t):n===f.STYLE?B(e,t):n===f.TBODY||n===f.TFOOT||n===f.THEAD?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,_.HTML),e.insertionMode="IN_TABLE_BODY_MODE"}(e,t):n===f.INPUT?function(e,t){const n=o.getTokenAttr(t,b.TYPE);n&&"hidden"===n.toLowerCase()?e._appendElement(t,_.HTML):he(e,t),t.ackSelfClosing=!0}(e,t):he(e,t);break;case 6:n===f.SCRIPT?B(e,t):he(e,t);break;case 7:n===f.CAPTION?function(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,_.HTML),e.insertionMode="IN_CAPTION_MODE"}(e,t):he(e,t);break;case 8:n===f.COLGROUP?function(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,_.HTML),e.insertionMode="IN_COLUMN_GROUP_MODE"}(e,t):n===f.TEMPLATE?B(e,t):he(e,t);break;default:he(e,t)}}function ue(e,t){const n=t.tagName;n===f.TABLE?e.openElements.hasInTableScope(f.TABLE)&&(e.openElements.popUntilTagNamePopped(f.TABLE),e._resetInsertionMode()):n===f.TEMPLATE?q(e,t):n!==f.BODY&&n!==f.CAPTION&&n!==f.COL&&n!==f.COLGROUP&&n!==f.HTML&&n!==f.TBODY&&n!==f.TD&&n!==f.TFOOT&&n!==f.TH&&n!==f.THEAD&&n!==f.TR&&he(e,t)}function he(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function pe(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)he(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}function me(e,t){e.openElements.currentTagName===f.COLGROUP&&(e.openElements.pop(),e.insertionMode=y,e._processToken(t))}function ge(e,t){const n=t.tagName;n===f.HTML?oe(e,t):n===f.OPTION?(e.openElements.currentTagName===f.OPTION&&e.openElements.pop(),e._insertElement(t,_.HTML)):n===f.OPTGROUP?(e.openElements.currentTagName===f.OPTION&&e.openElements.pop(),e.openElements.currentTagName===f.OPTGROUP&&e.openElements.pop(),e._insertElement(t,_.HTML)):n===f.INPUT||n===f.KEYGEN||n===f.TEXTAREA||n===f.SELECT?e.openElements.hasInSelectScope(f.SELECT)&&(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode(),n!==f.SELECT&&e._processToken(t)):n!==f.SCRIPT&&n!==f.TEMPLATE||B(e,t)}function fe(e,t){const n=t.tagName;if(n===f.OPTGROUP){const t=e.openElements.items[e.openElements.stackTop-1],n=t&&e.treeAdapter.getTagName(t);e.openElements.currentTagName===f.OPTION&&n===f.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagName===f.OPTGROUP&&e.openElements.pop()}else n===f.OPTION?e.openElements.currentTagName===f.OPTION&&e.openElements.pop():n===f.SELECT&&e.openElements.hasInSelectScope(f.SELECT)?(e.openElements.popUntilTagNamePopped(f.SELECT),e._resetInsertionMode()):n===f.TEMPLATE&&q(e,t)}function _e(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(f.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function be(e,t){e.insertionMode="IN_BODY_MODE",e._processToken(t)}function ve(e,t){e.insertionMode="IN_BODY_MODE",e._processToken(t)}e.exports=class{constructor(e){this.options=d(v,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&c.install(this,a),this.options.onParseError&&c.install(this,s,{onParseError:this.options.onParseError})}parse(e){const t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(f.TEMPLATE,_.HTML,[]));const n=this.treeAdapter.createElement("documentmock",_.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===f.TEMPLATE&&this._pushTmplInsertionMode("IN_TEMPLATE_MODE"),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);const o=this.treeAdapter.getFirstChild(n),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(o,r),r}_bootstrap(e,t){this.tokenizer=new o(this.options),this.stopped=!1,this.insertionMode="INITIAL_MODE",this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new r(this.document,this.treeAdapter),this.activeFormattingElements=new i(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();const t=this.tokenizer.getNextToken();if(t.type===o.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===o.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){const e=this.pendingScript;return this.pendingScript=null,void t(e)}e&&e()}_setupTokenizerCDATAMode(){const e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==_.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,_.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode="TEXT_MODE"}switchToPlaintextParsing(){this.insertionMode="TEXT_MODE",this.originalInsertionMode="IN_BODY_MODE",this.tokenizer.state=o.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===f.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===_.HTML){const e=this.treeAdapter.getTagName(this.fragmentContext);e===f.TITLE||e===f.TEXTAREA?this.tokenizer.state=o.MODE.RCDATA:e===f.STYLE||e===f.XMP||e===f.IFRAME||e===f.NOEMBED||e===f.NOFRAMES||e===f.NOSCRIPT?this.tokenizer.state=o.MODE.RAWTEXT:e===f.SCRIPT?this.tokenizer.state=o.MODE.SCRIPT_DATA:e===f.PLAINTEXT&&(this.tokenizer.state=o.MODE.PLAINTEXT)}}_setDocumentType(e){const t=e.name||"",n=e.publicId||"",o=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,o)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)}_insertElement(e,t){const n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)}_insertFakeElement(e){const t=this.treeAdapter.createElement(e,_.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){const t=this.treeAdapter.createElement(e.tagName,_.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){const e=this.treeAdapter.createElement(f.HTML,_.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){const n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{const t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_shouldProcessTokenInForeignContent(e){const t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;const n=this.treeAdapter.getNamespaceURI(t);if(n===_.HTML)return!1;if(this.treeAdapter.getTagName(t)===f.ANNOTATION_XML&&n===_.MATHML&&e.type===o.START_TAG_TOKEN&&e.tagName===f.SVG)return!1;const r=e.type===o.CHARACTER_TOKEN||e.type===o.NULL_CHARACTER_TOKEN||e.type===o.WHITESPACE_CHARACTER_TOKEN;return(!(e.type===o.START_TAG_TOKEN&&e.tagName!==f.MGLYPH&&e.tagName!==f.MALIGNMARK)&&!r||!this._isIntegrationPoint(t,_.MATHML))&&((e.type!==o.START_TAG_TOKEN&&!r||!this._isIntegrationPoint(t,_.HTML))&&e.type!==o.EOF_TOKEN)}_processToken(e){w[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){w.IN_BODY_MODE[e.type](this,e)}_processTokenInForeignContent(e){e.type===o.CHARACTER_TOKEN?function(e,t){e._insertCharacters(t),e.framesetOk=!1}(this,e):e.type===o.NULL_CHARACTER_TOKEN?function(e,t){t.chars=m.REPLACEMENT_CHARACTER,e._insertCharacters(t)}(this,e):e.type===o.WHITESPACE_CHARACTER_TOKEN?M(this,e):e.type===o.COMMENT_TOKEN?N(this,e):e.type===o.START_TAG_TOKEN?function(e,t){if(h.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==_.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),o=e.treeAdapter.getNamespaceURI(n);o===_.MATHML?h.adjustTokenMathMLAttrs(t):o===_.SVG&&(h.adjustTokenSVGTagName(t),h.adjustTokenSVGAttrs(t)),h.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,o):e._insertElement(t,o),t.ackSelfClosing=!0}}(this,e):e.type===o.END_TAG_TOKEN&&function(e,t){for(let n=e.openElements.stackTop;n>0;n--){const o=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(o)===_.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(o).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(o);break}}}(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===o.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(p.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){const n=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e),r=this.treeAdapter.getAttrList(e);return h.isIntegrationPoint(n,o,r,t)}_reconstructActiveFormattingElements(){const e=this.activeFormattingElements.length;if(e){let t=e,n=null;do{if(t--,n=this.activeFormattingElements.entries[t],n.type===i.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}}while(t>0);for(let o=t;o<e;o++)n=this.activeFormattingElements.entries[o],this._insertElement(n.token,this.treeAdapter.getNamespaceURI(n.element)),n.element=this.openElements.current}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode="IN_ROW_MODE"}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(f.P),this.openElements.popUntilTagNamePopped(f.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop,t=!1;e>=0;e--){let n=this.openElements.items[e];0===e&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));const o=this.treeAdapter.getTagName(n),r=E[o];if(r){this.insertionMode=r;break}if(!(t||o!==f.TD&&o!==f.TH)){this.insertionMode="IN_CELL_MODE";break}if(!t&&o===f.HEAD){this.insertionMode="IN_HEAD_MODE";break}if(o===f.SELECT){this._resetInsertionModeForSelect(e);break}if(o===f.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(o===f.HTML){this.insertionMode=this.headElement?"AFTER_HEAD_MODE":"BEFORE_HEAD_MODE";break}if(t){this.insertionMode="IN_BODY_MODE";break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){const e=this.openElements.items[t],n=this.treeAdapter.getTagName(e);if(n===f.TEMPLATE)break;if(n===f.TABLE)return void(this.insertionMode="IN_SELECT_IN_TABLE_MODE")}this.insertionMode="IN_SELECT_MODE"}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){const t=this.treeAdapter.getTagName(e);return t===f.TABLE||t===f.TBODY||t===f.TFOOT||t===f.THEAD||t===f.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t],o=this.treeAdapter.getTagName(n),r=this.treeAdapter.getNamespaceURI(n);if(o===f.TEMPLATE&&r===_.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}if(o===f.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){const t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){const t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return g.SPECIAL_ELEMENTS[n][t]}}},function(e,t,n){"use strict";const o=n(413),r=n(414),i=o.CODE_POINTS;e.exports=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){const t=this.html.charCodeAt(this.pos+1);if(o.isSurrogatePair(t))return this.pos++,this._addGap(),o.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,i.EOF;return this._err(r.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,i.EOF;let e=this.html.charCodeAt(this.pos);if(this.skipNextNewLine&&e===i.LINE_FEED)return this.skipNextNewLine=!1,this._addGap(),this.advance();if(e===i.CARRIAGE_RETURN)return this.skipNextNewLine=!0,i.LINE_FEED;this.skipNextNewLine=!1,o.isSurrogate(e)&&(e=this._processSurrogate(e));return e>31&&e<127||e===i.LINE_FEED||e===i.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e}_checkForProblematicCharacters(e){o.isControlCodePoint(e)?this._err(r.controlCharacterInInputStream):o.isUndefinedCodePoint(e)&&this._err(r.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}}},function(e,t,n){"use strict";e.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])},function(e,t,n){"use strict";const o=n(193),r=o.TAG_NAMES,i=o.NAMESPACES;function a(e){switch(e.length){case 1:return e===r.P;case 2:return e===r.RB||e===r.RP||e===r.RT||e===r.DD||e===r.DT||e===r.LI;case 3:return e===r.RTC;case 6:return e===r.OPTION;case 8:return e===r.OPTGROUP}return!1}function s(e){switch(e.length){case 1:return e===r.P;case 2:return e===r.RB||e===r.RP||e===r.RT||e===r.DD||e===r.DT||e===r.LI||e===r.TD||e===r.TH||e===r.TR;case 3:return e===r.RTC;case 5:return e===r.TBODY||e===r.TFOOT||e===r.THEAD;case 6:return e===r.OPTION;case 7:return e===r.CAPTION;case 8:return e===r.OPTGROUP||e===r.COLGROUP}return!1}function c(e,t){switch(e.length){case 2:if(e===r.TD||e===r.TH)return t===i.HTML;if(e===r.MI||e===r.MO||e===r.MN||e===r.MS)return t===i.MATHML;break;case 4:if(e===r.HTML)return t===i.HTML;if(e===r.DESC)return t===i.SVG;break;case 5:if(e===r.TABLE)return t===i.HTML;if(e===r.MTEXT)return t===i.MATHML;if(e===r.TITLE)return t===i.SVG;break;case 6:return(e===r.APPLET||e===r.OBJECT)&&t===i.HTML;case 7:return(e===r.CAPTION||e===r.MARQUEE)&&t===i.HTML;case 8:return e===r.TEMPLATE&&t===i.HTML;case 13:return e===r.FOREIGN_OBJECT&&t===i.SVG;case 14:return e===r.ANNOTATION_XML&&t===i.MATHML}return!1}e.exports=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t}_isInTemplate(){return this.currentTagName===r.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===i.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){const n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){const n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===i.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){const t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===r.H1||e===r.H2||e===r.H3||e===r.H4||e===r.H5||e===r.H6&&t===i.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===r.TD||e===r.TH&&t===i.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==r.TABLE&&this.currentTagName!==r.TEMPLATE&&this.currentTagName!==r.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==r.TBODY&&this.currentTagName!==r.TFOOT&&this.currentTagName!==r.THEAD&&this.currentTagName!==r.TEMPLATE&&this.currentTagName!==r.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==r.TR&&this.currentTagName!==r.TEMPLATE&&this.currentTagName!==r.HTML||this.treeAdapter.getNamespaceURI(this.current)!==i.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const e=this.items[1];return e&&this.treeAdapter.getTagName(e)===r.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.currentTagName===r.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),o=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&o===i.HTML)return!0;if(c(n,o))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===r.H1||t===r.H2||t===r.H3||t===r.H4||t===r.H5||t===r.H6)&&n===i.HTML)return!0;if(c(t,n))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),o=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&o===i.HTML)return!0;if((n===r.UL||n===r.OL)&&o===i.HTML||c(n,o))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]),o=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&o===i.HTML)return!0;if(n===r.BUTTON&&o===i.HTML||c(n,o))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===i.HTML){if(n===e)return!0;if(n===r.TABLE||n===r.TEMPLATE||n===r.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){const t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===i.HTML){if(t===r.TBODY||t===r.THEAD||t===r.TFOOT)return!0;if(t===r.TABLE||t===r.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===i.HTML){if(n===e)return!0;if(n!==r.OPTION&&n!==r.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;a(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;s(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;a(this.currentTagName)&&this.currentTagName!==e;)this.pop()}}},function(e,t,n){"use strict";class o{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){const t=[];if(this.length>=3){const n=this.treeAdapter.getAttrList(e).length,r=this.treeAdapter.getTagName(e),i=this.treeAdapter.getNamespaceURI(e);for(let e=this.length-1;e>=0;e--){const a=this.entries[e];if(a.type===o.MARKER_ENTRY)break;const s=a.element,c=this.treeAdapter.getAttrList(s);this.treeAdapter.getTagName(s)===r&&this.treeAdapter.getNamespaceURI(s)===i&&c.length===n&&t.push({idx:e,attrs:c})}}return t.length<3?[]:t}_ensureNoahArkCondition(e){const t=this._getNoahArkConditionCandidates(e);let n=t.length;if(n){const o=this.treeAdapter.getAttrList(e),r=o.length,i=Object.create(null);for(let e=0;e<r;e++){const t=o[e];i[t.name]=t.value}for(let e=0;e<r;e++)for(let o=0;o<n;o++){const r=t[o].attrs[e];if(i[r.name]!==r.value&&(t.splice(o,1),n--),t.length<3)return}for(let e=n-1;e>=2;e--)this.entries.splice(t[e].idx,1),this.length--}}insertMarker(){this.entries.push({type:o.MARKER_ENTRY}),this.length++}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:o.ELEMENT_ENTRY,element:e,token:t}),this.length++}insertElementAfterBookmark(e,t){let n=this.length-1;for(;n>=0&&this.entries[n]!==this.bookmark;n--);this.entries.splice(n+1,0,{type:o.ELEMENT_ENTRY,element:e,token:t}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const e=this.entries.pop();if(this.length--,e.type===o.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let t=this.length-1;t>=0;t--){const n=this.entries[t];if(n.type===o.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(n.element)===e)return n}return null}getElementEntry(e){for(let t=this.length-1;t>=0;t--){const n=this.entries[t];if(n.type===o.ELEMENT_ENTRY&&n.element===e)return n}return null}}o.MARKER_ENTRY="MARKER_ENTRY",o.ELEMENT_ENTRY="ELEMENT_ENTRY",e.exports=o},function(e,t,n){"use strict";const o=n(171),r=n(323),i=n(570),a=n(963),s=n(193).TAG_NAMES;e.exports=class extends o{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){const n=t.location,o=this.treeAdapter.getTagName(e),i={};t.type===r.END_TAG_TOKEN&&o===t.tagName?(i.endTag=Object.assign({},n),i.endLine=n.endLine,i.endCol=n.endCol,i.endOffset=n.endOffset):(i.endLine=n.startLine,i.endCol=n.startCol,i.endOffset=n.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,i)}}_getOverriddenMethods(e,t){return{_bootstrap(n,r){t._bootstrap.call(this,n,r),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;const s=o.install(this.tokenizer,i);e.posTracker=s.posTracker,o.install(this.openElements,a,{onItemPop:function(t){e._setEndLocation(t,e.currentToken)}})},_runParsingLoop(n){t._runParsingLoop.call(this,n);for(let t=this.openElements.stackTop;t>=0;t--)e._setEndLocation(this.openElements.items[t],e.currentToken)},_processTokenInForeignContent(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken(n){e.currentToken=n,t._processToken.call(this,n);if(n.type===r.END_TAG_TOKEN&&(n.tagName===s.HTML||n.tagName===s.BODY&&this.openElements.hasInScope(s.BODY)))for(let t=this.openElements.stackTop;t>=0;t--){const o=this.openElements.items[t];if(this.treeAdapter.getTagName(o)===n.tagName){e._setEndLocation(o,n);break}}},_setDocumentType(e){t._setDocumentType.call(this,e);const n=this.treeAdapter.getChildNodes(this.document),o=n.length;for(let t=0;t<o;t++){const o=n[t];if(this.treeAdapter.isDocumentTypeNode(o)){this.treeAdapter.setNodeSourceCodeLocation(o,e.location);break}}},_attachElementToTree(n){e._setStartLocation(n),e.lastStartTagToken=null,t._attachElementToTree.call(this,n)},_appendElement(n,o){e.lastStartTagToken=n,t._appendElement.call(this,n,o)},_insertElement(n,o){e.lastStartTagToken=n,t._insertElement.call(this,n,o)},_insertTemplate(n){e.lastStartTagToken=n,t._insertTemplate.call(this,n);const o=this.treeAdapter.getTemplateContent(this.openElements.current);this.treeAdapter.setNodeSourceCodeLocation(o,null)},_insertFakeRootElement(){t._insertFakeRootElement.call(this),this.treeAdapter.setNodeSourceCodeLocation(this.openElements.current,null)},_appendCommentNode(e,n){t._appendCommentNode.call(this,e,n);const o=this.treeAdapter.getChildNodes(n),r=o[o.length-1];this.treeAdapter.setNodeSourceCodeLocation(r,e.location)},_findFosterParentingLocation(){return e.lastFosterParentingLocation=t._findFosterParentingLocation.call(this),e.lastFosterParentingLocation},_insertCharacters(n){t._insertCharacters.call(this,n);const o=this._shouldFosterParentOnInsertion(),r=o&&e.lastFosterParentingLocation.parent||this.openElements.currentTmplContent||this.openElements.current,i=this.treeAdapter.getChildNodes(r),a=o&&e.lastFosterParentingLocation.beforeElement?i.indexOf(e.lastFosterParentingLocation.beforeElement)-1:i.length-1,s=i[a];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:e,endCol:t,endOffset:o}=n.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:e,endCol:t,endOffset:o})}else this.treeAdapter.setNodeSourceCodeLocation(s,n.location)}}}}},function(e,t,n){"use strict";const o=n(171);e.exports=class extends o{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let t=this.stackTop;t>0;t--)e.onItemPop(this.items[t]);t.popAllUpToHtmlElement.call(this)},remove(n){e.onItemPop(this.current),t.remove.call(this,n)}}}}},function(e,t,n){"use strict";const o=n(415),r=n(965),i=n(570),a=n(171);e.exports=class extends o{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(n,o){t._bootstrap.call(this,n,o),a.install(this.tokenizer,r,e.opts),a.install(this.tokenizer,i)},_processInputToken(n){e.ctLoc=n.location,t._processInputToken.call(this,n)},_err(t,n){e.locBeforeToken=n&&n.beforeToken,e._reportError(t)}}}}},function(e,t,n){"use strict";const o=n(415),r=n(966),i=n(171);e.exports=class extends o{constructor(e,t){super(e,t);const n=i.install(e.preprocessor,r,t);this.posTracker=n.posTracker}}},function(e,t,n){"use strict";const o=n(415),r=n(571),i=n(171);e.exports=class extends o{constructor(e,t){super(e,t),this.posTracker=i.install(e,r),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}}},function(e,t,n){"use strict";const o=n(323),r=n(193),i=r.TAG_NAMES,a=r.NAMESPACES,s=r.ATTRS,c="text/html",l="application/xhtml+xml",d={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},u={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:a.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:a.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:a.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:a.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:a.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:a.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:a.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:a.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:a.XML},"xml:space":{prefix:"xml",name:"space",namespace:a.XML},xmlns:{prefix:"",name:"xmlns",namespace:a.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:a.XMLNS}},h=t.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},p={[i.B]:!0,[i.BIG]:!0,[i.BLOCKQUOTE]:!0,[i.BODY]:!0,[i.BR]:!0,[i.CENTER]:!0,[i.CODE]:!0,[i.DD]:!0,[i.DIV]:!0,[i.DL]:!0,[i.DT]:!0,[i.EM]:!0,[i.EMBED]:!0,[i.H1]:!0,[i.H2]:!0,[i.H3]:!0,[i.H4]:!0,[i.H5]:!0,[i.H6]:!0,[i.HEAD]:!0,[i.HR]:!0,[i.I]:!0,[i.IMG]:!0,[i.LI]:!0,[i.LISTING]:!0,[i.MENU]:!0,[i.META]:!0,[i.NOBR]:!0,[i.OL]:!0,[i.P]:!0,[i.PRE]:!0,[i.RUBY]:!0,[i.S]:!0,[i.SMALL]:!0,[i.SPAN]:!0,[i.STRONG]:!0,[i.STRIKE]:!0,[i.SUB]:!0,[i.SUP]:!0,[i.TABLE]:!0,[i.TT]:!0,[i.U]:!0,[i.UL]:!0,[i.VAR]:!0};t.causesExit=function(e){const t=e.tagName;return!!(t===i.FONT&&(null!==o.getTokenAttr(e,s.COLOR)||null!==o.getTokenAttr(e,s.SIZE)||null!==o.getTokenAttr(e,s.FACE)))||p[t]},t.adjustTokenMathMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}},t.adjustTokenSVGAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=d[e.attrs[t].name];n&&(e.attrs[t].name=n)}},t.adjustTokenXMLAttrs=function(e){for(let t=0;t<e.attrs.length;t++){const n=u[e.attrs[t].name];n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}},t.adjustTokenSVGTagName=function(e){const t=h[e.tagName];t&&(e.tagName=t)},t.isIntegrationPoint=function(e,t,n,o){return!(o&&o!==a.HTML||!function(e,t,n){if(t===a.MATHML&&e===i.ANNOTATION_XML)for(let e=0;e<n.length;e++)if(n[e].name===s.ENCODING){const t=n[e].value.toLowerCase();return t===c||t===l}return t===a.SVG&&(e===i.FOREIGN_OBJECT||e===i.DESC||e===i.TITLE)}(e,t,n))||!(o&&o!==a.MATHML||!function(e,t){return t===a.MATHML&&(e===i.MI||e===i.MO||e===i.MN||e===i.MS||e===i.MTEXT)}(e,t))}},function(e,t,n){"use strict";const o=n(572),r=n(573),i=n(407),a=n(193),s=a.TAG_NAMES,c=a.NAMESPACES,l={treeAdapter:o},d=/&/g,u=/\u00a0/g,h=/"/g,p=/</g,m=/>/g;class g{constructor(e,t){this.options=r(l,t),this.treeAdapter=this.options.treeAdapter,this.html="",this.startNode=e}serialize(){return this._serializeChildNodes(this.startNode),this.html}_serializeChildNodes(e){const t=this.treeAdapter.getChildNodes(e);if(t)for(let e=0,n=t.length;e<n;e++){const n=t[e];this.treeAdapter.isElementNode(n)?this._serializeElement(n):this.treeAdapter.isTextNode(n)?this._serializeTextNode(n):this.treeAdapter.isCommentNode(n)?this._serializeCommentNode(n):this.treeAdapter.isDocumentTypeNode(n)&&this._serializeDocumentTypeNode(n)}}_serializeElement(e){const t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);if(this.html+="<"+t,this._serializeAttributes(e),this.html+=">",t!==s.AREA&&t!==s.BASE&&t!==s.BASEFONT&&t!==s.BGSOUND&&t!==s.BR&&t!==s.COL&&t!==s.EMBED&&t!==s.FRAME&&t!==s.HR&&t!==s.IMG&&t!==s.INPUT&&t!==s.KEYGEN&&t!==s.LINK&&t!==s.META&&t!==s.PARAM&&t!==s.SOURCE&&t!==s.TRACK&&t!==s.WBR){const o=t===s.TEMPLATE&&n===c.HTML?this.treeAdapter.getTemplateContent(e):e;this._serializeChildNodes(o),this.html+="</"+t+">"}}_serializeAttributes(e){const t=this.treeAdapter.getAttrList(e);for(let e=0,n=t.length;e<n;e++){const n=t[e],o=g.escapeString(n.value,!0);this.html+=" ",n.namespace?n.namespace===c.XML?this.html+="xml:"+n.name:n.namespace===c.XMLNS?("xmlns"!==n.name&&(this.html+="xmlns:"),this.html+=n.name):n.namespace===c.XLINK?this.html+="xlink:"+n.name:this.html+=n.prefix+":"+n.name:this.html+=n.name,this.html+='="'+o+'"'}}_serializeTextNode(e){const t=this.treeAdapter.getTextNodeContent(e),n=this.treeAdapter.getParentNode(e);let o=void 0;n&&this.treeAdapter.isElementNode(n)&&(o=this.treeAdapter.getTagName(n)),o===s.STYLE||o===s.SCRIPT||o===s.XMP||o===s.IFRAME||o===s.NOEMBED||o===s.NOFRAMES||o===s.PLAINTEXT||o===s.NOSCRIPT?this.html+=t:this.html+=g.escapeString(t,!1)}_serializeCommentNode(e){this.html+="\x3c!--"+this.treeAdapter.getCommentNodeContent(e)+"--\x3e"}_serializeDocumentTypeNode(e){const t=this.treeAdapter.getDocumentTypeNodeName(e);this.html+="<"+i.serializeContent(t,null,null)+">"}}g.escapeString=function(e,t){return e=e.replace(d,"&").replace(u," "),e=t?e.replace(h,"""):e.replace(p,"<").replace(m,">")},e.exports=g},function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(970)),i=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};t.default=function(e){return e>=55296&&e<=57343||e>1114111?"<22>":(e in r.default&&(e=r.default[e]),i(e))}},function(e){e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"","InvisibleTimes":"","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"","NegativeThickSpace":"","NegativeThinSpace":"","NegativeVeryThinSpace":"","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":" ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"","zwnj":""}')},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},function(e){e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},function(e,t,n){var o=n(320).text,r=n(276),i=r.isTag,a=r.domEach,s=Object.prototype.hasOwnProperty,c=r.camelCase,l=r.cssCase,d=/\s+/,u={null:null,true:!0,false:!1},h=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,p=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,m=function(e,t){if(e&&i(e))return e.attribs||(e.attribs={}),t?s.call(e.attribs,t)?h.test(t)?t:e.attribs[t]:"option"===e.name&&"value"===t?o(e.children):"input"!==e.name||"radio"!==e.attribs.type&&"checkbox"!==e.attribs.type||"value"!==t?void 0:"on":e.attribs},g=function(e,t,n){null===n?v(e,t):e.attribs[t]=n+""};t.attr=function(e,t){return"object"==typeof e||void 0!==t?a(this,"function"==typeof t?function(n,o){g(o,e,t.call(o,n,o.attribs[e]))}:function(n,o){i(o)&&("object"==typeof e?Object.keys(e).forEach((function(t){var n=e[t];g(o,t,n)})):g(o,e,t))}):m(this[0],e)};var f=function(e,t){if(e&&i(e))return t in e?e[t]:h.test(t)?void 0!==m(e,t):m(e,t)},_=function(e,t,n){e[t]=h.test(t)?!!n:n};t.prop=function(e,t){var n,o=0;if("string"==typeof e&&void 0===t){switch(e){case"style":n=this.css(),Object.keys(n).forEach((function(e){n[o++]=e})),n.length=o;break;case"tagName":case"nodeName":n=this[0].name.toUpperCase();break;case"outerHTML":n=this.clone().wrap("<container />").parent().html();break;default:n=f(this[0],e)}return n}if("object"==typeof e||void 0!==t)return a(this,"function"==typeof t?function(n,o){_(o,e,t.call(o,n,f(o,e)))}:function(n,o){i(o)&&("object"==typeof e?Object.keys(e).forEach((function(t){var n=e[t];_(o,t,n)})):_(o,e,t))})};var b=function(e,t){var n,o,r,i,a,d,h,m=1===arguments.length;for(m?r=(n=Object.keys(e.attribs).filter((function(e){return"data-"===e.slice(0,"data-".length)}))).map((function(e){return c(e.slice("data-".length))})):(n=["data-"+l(t)],r=[t]),d=0,h=n.length;d<h;++d)if(o=n[d],i=r[d],s.call(e.attribs,o)&&!s.call(e.data,i)){if(a=e.attribs[o],s.call(u,a))a=u[a];else if(a===String(Number(a)))a=Number(a);else if(p.test(a))try{a=JSON.parse(a)}catch(e){}e.data[i]=a}return m?e.data:a};t.data=function(e,t){var n=this[0];if(n&&i(n))return n.data||(n.data={}),e?"object"==typeof e||void 0!==t?(a(this,(function(n,o){!function(e,t,n){if(e.data||(e.data={}),"object"==typeof t)return Object.assign(e.data,t);"string"==typeof t&&void 0!==n&&(e.data[t]=n)}(o,e,t)})),this):s.call(n.data,e)?n.data[e]:b(n,e):b(n)},t.val=function(e){var t=0===arguments.length,n=this[0];if(n)switch(n.name){case"textarea":return this.text(e);case"input":return"radio"===this.attr("type")?t?this.attr("value"):(this.attr("value",e),this):this.attr("value",e);case"select":var o,r=this.find("option:selected");if(void 0===r)return;if(!t){if(!s.call(this.attr(),"multiple")&&"object"==typeof e)return this;"object"!=typeof e&&(e=[e]),this.find("option").removeAttr("selected");for(var i=0;i<e.length;i++)this.find('option[value="'+e[i]+'"]').attr("selected","");return this}return o=r.attr("value"),s.call(this.attr(),"multiple")&&(o=[],a(r,(function(e,t){o.push(m(t,"value"))}))),o;case"option":return t?this.attr("value"):(this.attr("value",e),this)}};var v=function(e,t){e.attribs&&s.call(e.attribs,t)&&delete e.attribs[t]},y=function(e){return e?e.trim().split(d):[]};t.removeAttr=function(e){for(var t=y(e),n=0;n<t.length;n++)a(this,(function(e,o){v(o,t[n])}));return this},t.hasClass=function(e){return this.toArray().some((function(t){var n,o=t.attribs,r=o&&o.class,i=-1;if(r&&e.length)for(;(i=r.indexOf(e,i+1))>-1;)if(n=i+e.length,(0===i||d.test(r[i-1]))&&(n===r.length||d.test(r[n])))return!0}))},t.addClass=function(e){if("function"==typeof e)return a(this,(function(n,o){var r=o.attribs.class||"";t.addClass.call([o],e.call(o,n,r))}));if(!e||"string"!=typeof e)return this;for(var n=e.split(d),o=this.length,r=0;r<o;r++)if(i(this[r])){var s,c,l=m(this[r],"class");if(l){c=" "+l+" ",s=n.length;for(var u=0;u<s;u++){var h=n[u]+" ";c.indexOf(" "+h)<0&&(c+=h)}g(this[r],"class",c.trim())}else g(this[r],"class",n.join(" ").trim())}return this},t.removeClass=function(e){var n,o,r;return"function"==typeof e?a(this,(function(n,o){t.removeClass.call([o],e.call(o,n,o.attribs.class||""))})):(n=y(e),o=n.length,r=0===arguments.length,a(this,(function(e,t){if(i(t))if(r)t.attribs.class="";else{for(var a,s,c=y(t.attribs.class),l=0;l<o;l++)(a=c.indexOf(n[l]))>=0&&(c.splice(a,1),s=!0,l--);s&&(t.attribs.class=c.join(" "))}})))},t.toggleClass=function(e,n){if("function"==typeof e)return a(this,(function(o,r){t.toggleClass.call([r],e.call(r,o,r.attribs.class||"",n),n)}));if(!e||"string"!=typeof e)return this;for(var o,r,s=e.split(d),c=s.length,l="boolean"==typeof n?n?1:-1:0,u=this.length,h=0;h<u;h++)if(i(this[h])){o=y(this[h].attribs.class);for(var p=0;p<c;p++)r=o.indexOf(s[p]),l>=0&&r<0?o.push(s[p]):l<=0&&r>=0&&o.splice(r,1);this[h].attribs.class=o.join(" ")}return this},t.is=function(e){return!!e&&this.filter(e).length>0}},function(e,t,n){var o=n(563),r=n(276),i=r.domEach,a=n(324).DomUtils.uniqueSort,s=r.isTag;function c(e){return"function"==typeof e?function(t,n){return e.call(t,n,t)}:e.cheerio?e.is.bind(e):function(t){return e===t}}function l(e,n,o,r){for(var i=[];n&&i.length<r&&"root"!==n.type;)o&&!t.filter.call([n],o,e).length||i.push(n),n=n.parent;return i}t.find=function(e){var t,n=this.toArray().reduce((function(e,t){return e.concat(t.children.filter(s))}),[]),r=this.constructor.contains;if(e&&"string"!=typeof e)return t=e.cheerio?e.get():[e],this._make(t.filter((function(e){var t,n;for(t=0,n=this.length;t<n;++t)if(r(this[t],e))return!0}),this));var i={__proto__:this.options,context:this.toArray()};return this._make(o.select(e||"",n,i))},t.parent=function(e){var n=[];return i(this,(function(e,t){var o=t.parent;o&&"root"!==o.type&&n.indexOf(o)<0&&n.push(o)})),arguments.length&&(n=t.filter.call(n,e,this)),this._make(n)},t.parents=function(e){var t=[];return this.get().reverse().forEach((function(n){l(this,n.parent,e,1/0).forEach((function(e){-1===t.indexOf(e)&&t.push(e)}))}),this),this._make(t)},t.parentsUntil=function(e,t){var n,r,i=[];return"string"==typeof e?n=o.select(e,this.parents().toArray(),this.options)[0]:e&&e.cheerio?r=e.toArray():e&&(n=e),this.toArray().reverse().forEach((function(e){for(;(e=e.parent)&&(n&&e!==n||r&&-1===r.indexOf(e)||!n&&!r);)s(e)&&-1===i.indexOf(e)&&i.push(e)}),this),this._make(t?o.select(t,i,this.options):i)},t.closest=function(e){var t=[];return e?(i(this,(function(n,o){var r=l(this,o,e,1)[0];r&&t.indexOf(r)<0&&t.push(r)})),this._make(t)):this._make(t)},t.next=function(e){if(!this[0])return this;var n=[];return this.toArray().forEach((function(e){for(;e=e.next;)if(s(e))return void n.push(e)})),e?t.filter.call(n,e,this):this._make(n)},t.nextAll=function(e){if(!this[0])return this;var n=[];return this.toArray().forEach((function(e){for(;e=e.next;)s(e)&&-1===n.indexOf(e)&&n.push(e)})),e?t.filter.call(n,e,this):this._make(n)},t.nextUntil=function(e,n){if(!this[0])return this;var r,i,a=[];return"string"==typeof e?r=o.select(e,this.nextAll().get(),this.options)[0]:e&&e.cheerio?i=e.get():e&&(r=e),this.toArray().forEach((function(e){for(;(e=e.next)&&(r&&e!==r||i&&-1===i.indexOf(e)||!r&&!i);)s(e)&&-1===a.indexOf(e)&&a.push(e)})),n?t.filter.call(a,n,this):this._make(a)},t.prev=function(e){if(!this[0])return this;var n=[];return this.toArray().forEach((function(e){for(;e=e.prev;)if(s(e))return void n.push(e)})),e?t.filter.call(n,e,this):this._make(n)},t.prevAll=function(e){if(!this[0])return this;var n=[];return this.toArray().forEach((function(e){for(;e=e.prev;)s(e)&&-1===n.indexOf(e)&&n.push(e)})),e?t.filter.call(n,e,this):this._make(n)},t.prevUntil=function(e,n){if(!this[0])return this;var r,i,a=[];return"string"==typeof e?r=o.select(e,this.prevAll().get(),this.options)[0]:e&&e.cheerio?i=e.get():e&&(r=e),this.toArray().forEach((function(e){for(;(e=e.prev)&&(r&&e!==r||i&&-1===i.indexOf(e)||!r&&!i);)s(e)&&-1===a.indexOf(e)&&a.push(e)})),n?t.filter.call(a,n,this):this._make(a)},t.siblings=function(e){var n=this.parent(),o=(n?n.children():this.siblingsAndMe()).toArray().filter((function(e){return s(e)&&!this.is(e)}),this);return void 0!==e?t.filter.call(o,e,this):this._make(o)},t.children=function(e){var n=this.toArray().reduce((function(e,t){return e.concat(t.children.filter(s))}),[]);return void 0===e?this._make(n):t.filter.call(n,e,this)},t.contents=function(){var e=this.toArray().reduce((function(e,t){return e.concat(t.children)}),[]);return this._make(e)},t.each=function(e){for(var t=0,n=this.length;t<n&&!1!==e.call(this[t],t,this[t]);)++t;return this},t.map=function(e){for(var t=[],n=0;n<this.length;n++){var o=this[n],r=e.call(o,n,o);null!=r&&(t=t.concat(r))}return this._make(t)},t.filter=function(e,t){t=t||this;var n=this.toArray?this.toArray():this;return n="string"==typeof e?o.filter(e,n,t.options):n.filter(c(e)),t._make(n)},t.not=function(e,t){var n,r,i=(t=t||this).toArray?t.toArray():t;return"string"==typeof e?(n=new Set(o.filter(e,i,this.options)),i=i.filter((function(e){return!n.has(e)}))):(r=c(e),i=i.filter((function(e,t){return!r(e,t)}))),t._make(i)},t.has=function(e){var n=this;return t.filter.call(this,(function(){return n._make(this).find(e).length>0}))},t.first=function(){return this.length>1?this._make(this[0]):this},t.last=function(){return this.length>1?this._make(this[this.length-1]):this},t.eq=function(e){return 0===(e=+e)&&this.length<=1?this:(e<0&&(e=this.length+e),this[e]?this._make(this[e]):this._make([]))},t.get=function(e){return null==e?Array.prototype.slice.call(this):this[e<0?this.length+e:e]},t.index=function(e){var t,n;return 0===arguments.length?(t=this.parent().children(),n=this[0]):"string"==typeof e?(t=this._make(e),n=this[0]):(t=this,n=e.cheerio?e[0]:e),t.get().indexOf(n)},t.slice=function(){return this._make([].slice.apply(this,arguments))},t.end=function(){return this.prevObject||this._make([])},t.add=function(e,t){for(var n=this._make(e,t),o=a(n.get().concat(this.get())),r=0;r<o.length;++r)n[r]=o[r];return n.length=o.length,n},t.addBack=function(e){return this.add(arguments.length?this.prevObject.filter(e):this.prevObject)}},function(e,t,n){var o=n(416),r=n(320).html,i=n(320).text,a=o.update,s=n(276),c=s.domEach,l=s.cloneDom,d=s.isHtml,u=Array.prototype.slice,h=n(275),p=n(324).DomUtils;t._makeDomArray=function(e,t){return null==e?[]:e.cheerio?t?l(e.get(),e.options):e.get():Array.isArray(e)?e.reduce(function(e,n){return e.concat(this._makeDomArray(n,t))}.bind(this),[]):"string"==typeof e?o(e,this.options,!1).children:t?l([e]):[e]};var m=function(e){return function(){var t=u.call(arguments),n=this.length-1;return c(this,(function(o,i){var a,s;s="function"==typeof t[0]?t[0].call(i,o,r(i.children)):t,a=this._makeDomArray(s,o<n),e(a,i.children,i)}))}},g=function(e,t,n,o,r){var i,a,s,c,l,d=[t,n].concat(o),u=e[t-1]||null,h=e[t+n]||null;for(i=0,a=o.length;i<a;++i)s=(l=(c=o[i]).parent)&&l.children.indexOf(o[i]),l&&s>-1&&(l.children.splice(s,1),r===l&&t>s&&d[0]--),c.parent=r,c.prev&&(c.prev.next=c.next||null),c.next&&(c.next.prev=c.prev||null),c.prev=o[i-1]||u,c.next=o[i+1]||h;return u&&(u.next=o[0]),h&&(h.prev=o[o.length-1]),e.splice.apply(e,d)};function f(e){return function(t){for(var n="function"==typeof t&&t,o=this.length-1,r=this.parents().last(),i=0;i<this.length;i++){var a,s,c,l=this[i];for(n&&(t=n.call(l,i)),"string"!=typeof t||d(t)||(t=r.find(t).clone()),s=(a=this._makeDomArray(t,i<o).slice(0,1))[0],c=0;s&&s.children&&!(c>=s.children.length);)"tag"===s.children[c].type?(s=s.children[c],c=0):c++;e(l,s,a)}return this}}t.appendTo=function(e){return e.cheerio||(e=this.constructor.call(this.constructor,e,null,this._originalRoot)),e.append(this),this},t.prependTo=function(e){return e.cheerio||(e=this.constructor.call(this.constructor,e,null,this._originalRoot)),e.prepend(this),this},t.append=m((function(e,t,n){g(t,t.length,0,e,n)})),t.prepend=m((function(e,t,n){g(t,0,0,e,n)})),t.wrap=f((function(e,t,n){var o=e.parent,r=o.children,i=r.indexOf(e);a([e],t),g(r,i,0,n,o)})),t.wrapInner=f((function(e,t,n){a(e.children,t),a(n,e)})),t.after=function(){var e=u.call(arguments),t=this.length-1;return c(this,(function(n,o){var i=o.parent;if(i){var a,s,c=i.children,l=c.indexOf(o);l<0||(a="function"==typeof e[0]?e[0].call(o,n,r(o.children)):e,s=this._makeDomArray(a,n<t),g(c,l+1,0,s,i))}})),this},t.insertAfter=function(e){var t=[],n=this;return"string"==typeof e&&(e=this.constructor.call(this.constructor,e,null,this._originalRoot)),e=this._makeDomArray(e),n.remove(),c(e,(function(e,o){var r=n._makeDomArray(n.clone()),i=o.parent;if(i){var a=i.children,s=a.indexOf(o);s<0||(g(a,s+1,0,r,i),t.push(r))}})),this.constructor.call(this.constructor,this._makeDomArray(t))},t.before=function(){var e=u.call(arguments),t=this.length-1;return c(this,(function(n,o){var i=o.parent;if(i){var a,s,c=i.children,l=c.indexOf(o);l<0||(a="function"==typeof e[0]?e[0].call(o,n,r(o.children)):e,s=this._makeDomArray(a,n<t),g(c,l,0,s,i))}})),this},t.insertBefore=function(e){var t=[],n=this;return"string"==typeof e&&(e=this.constructor.call(this.constructor,e,null,this._originalRoot)),e=this._makeDomArray(e),n.remove(),c(e,(function(e,o){var r=n._makeDomArray(n.clone()),i=o.parent;if(i){var a=i.children,s=a.indexOf(o);s<0||(g(a,s,0,r,i),t.push(r))}})),this.constructor.call(this.constructor,this._makeDomArray(t))},t.remove=function(e){var t=this;return e&&(t=t.filter(e)),c(t,(function(e,t){p.removeElement(t),t.prev=t.next=t.parent=null})),this},t.replaceWith=function(e){var t=this;return c(this,(function(n,o){var r=o.parent;if(r){var i,s=r.children,c=t._makeDomArray("function"==typeof e?e.call(o,n,o):e);a(c,null),i=s.indexOf(o),g(s,i,1,c,r),o.parent=o.prev=o.next=null}})),this},t.empty=function(){return c(this,(function(e,t){t.children.forEach((function(e){e.next=e.prev=e.parent=null})),t.children.length=0})),this},t.html=function(e){if(void 0===e)return this[0]&&this[0].children?r(this[0].children,this.options):null;var t=this.options;return c(this,(function(n,r){r.children.forEach((function(e){e.next=e.prev=e.parent=null}));var i=e.cheerio?e.clone().get():o(""+e,t,!1).children;a(i,r)})),this},t.toString=function(){return r(this,this.options)},t.text=function(e){if(void 0===e)return i(this);if("function"==typeof e){var n=this;return c(this,(function(o,r){return t.text.call(n._make(r),e.call(r,o,i([r])))}))}return c(this,(function(t,n){n.children.forEach((function(e){e.next=e.prev=e.parent=null}));var o=new h.Text(e);a(o,n)})),this},t.clone=function(){return this._make(l(this.get(),this.options))}},function(e,t,n){var o=n(276).domEach,r=Object.prototype.toString;function i(e,t,n,o){if("string"==typeof t){var r=a(e);"function"==typeof n&&(n=n.call(e,o,r[t])),""===n?delete r[t]:null!=n&&(r[t]=n),e.attribs.style=(s=r,Object.keys(s||{}).reduce((function(e,t){return e+(e?" ":"")+t+": "+s[t]+";"}),""))}else"object"==typeof t&&Object.keys(t).forEach((function(n){i(e,n,t[n])}));var s}function a(e,t){if(e&&e.attribs){var n=function(e){return(e=(e||"").trim())?e.split(";").reduce((function(e,t){var n=t.indexOf(":");return n<1||n===t.length-1||(e[t.slice(0,n).trim()]=t.slice(n+1).trim()),e}),{}):{}}(e.attribs.style);if("string"==typeof t)return n[t];if(Array.isArray(t)){var o={};return t.forEach((function(e){null!=n[e]&&(o[e]=n[e])})),o}return n}}t.css=function(e,t){return 2===arguments.length||"[object Object]"===r.call(e)?o(this,(function(n,o){i(o,e,t,n)})):a(this[0],e)}},function(e,t){var n=/%20/g,o=/\r?\n/g;t.serialize=function(){return this.serializeArray().map((function(e){return encodeURIComponent(e.name)+"="+encodeURIComponent(e.value)})).join("&").replace(n,"+")},t.serializeArray=function(){var e=this.constructor;return this.map((function(){var t=e(this);return"form"===this.name?t.find("input,select,textarea,keygen").toArray():t.filter("input,select,textarea,keygen").toArray()})).filter('[name!=""]:not(:disabled):not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((function(t,n){var r=e(n),i=r.attr("name"),a=r.val();return null==a&&(a=""),Array.isArray(a)?a.map((function(e){return{name:i,value:e.replace(o,"\r\n")}})):{name:i,value:a.replace(o,"\r\n")}})).get()}},function(e){e.exports=JSON.parse('{"name":"cheerio","version":"1.0.0-rc.5","description":"Tiny, fast, and elegant implementation of core jQuery designed specifically for the server","author":"Matt Mueller <mattmuelle@gmail.com> (mat.io)","license":"MIT","keywords":["htmlparser","jquery","selector","scraper","parser","html"],"repository":{"type":"git","url":"git://github.com/cheeriojs/cheerio.git"},"main":"./index.js","types":"types/index.d.ts","files":["index.js","types/index.d.ts","lib"],"engines":{"node":">= 0.12"},"dependencies":{"cheerio-select-tmp":"^0.1.0","dom-serializer":"~1.2.0","domhandler":"^4.0.0","entities":"~2.1.0","htmlparser2":"^6.0.0","parse5":"^6.0.0","parse5-htmlparser2-tree-adapter":"^6.0.0"},"devDependencies":{"@types/node":"^14.14.10","benchmark":"^2.1.4","coveralls":"^3.0.2","eslint":"^7.10.0","eslint-config-prettier":"^7.0.0","eslint-plugin-jsdoc":"^30.6.2","expect.js":"~0.3.1","husky":"^4.2.5","jquery":"^3.0.0","jsdoc":"^3.6.6","jsdom":"^16.2.2","lint-staged":"^10.2.2","mocha":"^8.1.1","nyc":"^15.0.1","prettier":"^2.1.1","tsd":"^0.14.0","xyz":"~4.0.0"},"scripts":{"test":"npm run lint && npm run test:mocha && npm run test:types","test:mocha":"mocha --recursive --reporter dot --parallel","test:types":"tsd","lint":"npm run lint:es && npm run lint:prettier","lint:es":"eslint --ignore-path .prettierignore .","lint:prettier":"npm run format:prettier:raw -- --check","format":"npm run format:es && npm run format:prettier","format:es":"npm run lint:es -- --fix","format:prettier":"npm run format:prettier:raw -- --write","format:prettier:raw":"prettier \'**/*.{js,ts,md,json,yml}\' --ignore-path .prettierignore","build:docs":"jsdoc --configure jsdoc-config.json","pre-commit":"lint-staged"},"prettier":{"singleQuote":true,"tabWidth":2},"lint-staged":{"*.js":["prettier --write","npm run test:lint -- --fix"],"*.{json,md,ts,yml}":["prettier --write"]}}')},function(e){e.exports=JSON.parse('[{"annotation":"grinning face","group":0,"hexcode":"1F600","order":1,"shortcodes":["gleeful"],"tags":["face","grin"],"unicode":"😀","emoticon":":D"},{"annotation":"grinning face with big eyes","group":0,"hexcode":"1F603","order":2,"shortcodes":["glad","smile"],"tags":["face","mouth","open","smile"],"unicode":"😃"},{"annotation":"grinning face with smiling eyes","group":0,"hexcode":"1F604","order":3,"shortcodes":["happy"],"tags":["eye","face","mouth","open","smile"],"unicode":"😄"},{"annotation":"beaming face with smiling eyes","group":0,"hexcode":"1F601","order":4,"shortcodes":["blissful","grin"],"tags":["eye","face","grin","smile"],"unicode":"😁"},{"annotation":"grinning squinting face","group":0,"hexcode":"1F606","order":5,"shortcodes":["amused","laugh","lol"],"tags":["face","laugh","mouth","satisfied","smile"],"unicode":"😆","emoticon":"xD"},{"annotation":"grinning face with sweat","group":0,"hexcode":"1F605","order":6,"shortcodes":["embarassed","sweat_smile"],"tags":["cold","face","open","smile","sweat"],"unicode":"😅"},{"annotation":"rolling on the floor laughing","group":0,"hexcode":"1F923","order":7,"shortcodes":["entertained","rofl"],"tags":["face","floor","laugh","rolling"],"unicode":"🤣","emoticon":":\'D"},{"annotation":"face with tears of joy","group":0,"hexcode":"1F602","order":8,"shortcodes":["joyful","haha"],"tags":["face","joy","laugh","tear"],"unicode":"😂","emoticon":":\')"},{"annotation":"slightly smiling face","group":0,"hexcode":"1F642","order":9,"shortcodes":["pleased","slight_smile"],"tags":["face","smile"],"unicode":"🙂","emoticon":":)"},{"annotation":"upside-down face","group":0,"hexcode":"1F643","order":10,"shortcodes":["ecstatic","upside_down"],"tags":["face","upside-down"],"unicode":"🙃"},{"annotation":"winking face","group":0,"hexcode":"1F609","order":11,"shortcodes":["coy","wink"],"tags":["face","wink"],"unicode":"😉","emoticon":";)"},{"annotation":"smiling face with smiling eyes","group":0,"hexcode":"1F60A","order":12,"shortcodes":["blush"],"tags":["blush","eye","face","smile"],"unicode":"😊","emoticon":":>"},{"annotation":"smiling face with halo","group":0,"hexcode":"1F607","order":13,"shortcodes":["innocent","halo"],"tags":["angel","face","fantasy","halo","innocent"],"unicode":"😇","emoticon":"o:)"},{"annotation":"smiling face with hearts","group":0,"hexcode":"1F970","order":14,"shortcodes":["love"],"tags":["adore","crush","hearts","in love"],"unicode":"🥰"},{"annotation":"smiling face with heart-eyes","group":0,"hexcode":"1F60D","order":15,"shortcodes":["lovestruck"],"tags":["eye","face","love","smile"],"unicode":"😍"},{"annotation":"star-struck","group":0,"hexcode":"1F929","order":16,"shortcodes":["starstruck"],"tags":["eyes","face","grinning","star"],"unicode":"🤩"},{"annotation":"face blowing a kiss","group":0,"hexcode":"1F618","order":17,"shortcodes":["flirty"],"tags":["face","kiss"],"unicode":"😘","emoticon":":x"},{"annotation":"kissing face","group":0,"hexcode":"1F617","order":18,"shortcodes":["kiss"],"tags":["face","kiss"],"unicode":"😗"},{"annotation":"smiling face","group":0,"hexcode":"263A","order":20,"shortcodes":["relaxed"],"tags":["face","outlined","relaxed","smile"],"unicode":"☺️"},{"annotation":"kissing face with closed eyes","group":0,"hexcode":"1F61A","order":21,"shortcodes":["loving_kiss"],"tags":["closed","eye","face","kiss"],"unicode":"😚","emoticon":":*"},{"annotation":"kissing face with smiling eyes","group":0,"hexcode":"1F619","order":22,"shortcodes":["happy_kiss"],"tags":["eye","face","kiss","smile"],"unicode":"😙"},{"annotation":"smiling face with tear","group":0,"hexcode":"1F972","order":23,"shortcodes":["tear_smile"],"tags":["grateful","proud","relieved","smiling","tear","touched"],"unicode":"🥲"},{"annotation":"face savoring food","group":0,"hexcode":"1F60B","order":24,"shortcodes":["yum","savour"],"tags":["delicious","face","savouring","smile","yum"],"unicode":"😋"},{"annotation":"face with tongue","group":0,"hexcode":"1F61B","order":25,"shortcodes":["playful","tongue_out"],"tags":["face","tongue"],"unicode":"😛","emoticon":":p"},{"annotation":"winking face with tongue","group":0,"hexcode":"1F61C","order":26,"shortcodes":["mischievous"],"tags":["eye","face","joke","tongue","wink"],"unicode":"😜","emoticon":";p"},{"annotation":"zany face","group":0,"hexcode":"1F92A","order":27,"shortcodes":["crazy"],"tags":["eye","goofy","large","small"],"unicode":"🤪"},{"annotation":"squinting face with tongue","group":0,"hexcode":"1F61D","order":28,"shortcodes":["facetious","lmao"],"tags":["eye","face","horrible","taste","tongue"],"unicode":"😝","emoticon":"xp"},{"annotation":"money-mouth face","group":0,"hexcode":"1F911","order":29,"shortcodes":["pretentious","money_mouth"],"tags":["face","money","mouth"],"unicode":"🤑"},{"annotation":"hugging face","group":0,"hexcode":"1F917","order":30,"shortcodes":["hugging"],"tags":["face","hug","hugging"],"unicode":"🤗"},{"annotation":"face with hand over mouth","group":0,"hexcode":"1F92D","order":31,"shortcodes":["gasp"],"tags":["whoops"],"unicode":"🤭"},{"annotation":"shushing face","group":0,"hexcode":"1F92B","order":32,"shortcodes":["shushing"],"tags":["quiet","shush"],"unicode":"🤫"},{"annotation":"thinking face","group":0,"hexcode":"1F914","order":33,"shortcodes":["curious","thinking"],"tags":["face","thinking"],"unicode":"🤔","emoticon":":l"},{"annotation":"zipper-mouth face","group":0,"hexcode":"1F910","order":34,"shortcodes":["silenced","zipper_mouth"],"tags":["face","mouth","zipper"],"unicode":"🤐","emoticon":":z"},{"annotation":"face with raised eyebrow","group":0,"hexcode":"1F928","order":35,"shortcodes":["contempt"],"tags":["distrust","skeptic"],"unicode":"🤨"},{"annotation":"neutral face","group":0,"hexcode":"1F610","order":36,"shortcodes":["indifferent","neutral"],"tags":["deadpan","face","meh","neutral"],"unicode":"😐️","emoticon":":|"},{"annotation":"expressionless face","group":0,"hexcode":"1F611","order":37,"shortcodes":["apathetic","expressionless"],"tags":["expressionless","face","inexpressive","meh","unexpressive"],"unicode":"😑"},{"annotation":"face without mouth","group":0,"hexcode":"1F636","order":38,"shortcodes":["vacant","no_mouth"],"tags":["face","mouth","quiet","silent"],"unicode":"😶","emoticon":":#"},{"annotation":"smirking face","group":0,"hexcode":"1F60F","order":39,"shortcodes":["cocky","smirk"],"tags":["face","smirk"],"unicode":"😏","emoticon":":j"},{"annotation":"unamused face","group":0,"hexcode":"1F612","order":40,"shortcodes":["unamused"],"tags":["face","unamused","unhappy"],"unicode":"😒","emoticon":":?"},{"annotation":"face with rolling eyes","group":0,"hexcode":"1F644","order":41,"shortcodes":["disbelief"],"tags":["eyeroll","eyes","face","rolling"],"unicode":"🙄"},{"annotation":"grimacing face","group":0,"hexcode":"1F62C","order":42,"shortcodes":["grimaced"],"tags":["face","grimace"],"unicode":"😬","emoticon":"8D"},{"annotation":"lying face","group":0,"hexcode":"1F925","order":43,"shortcodes":["lying"],"tags":["face","lie","pinocchio"],"unicode":"🤥"},{"annotation":"relieved face","group":0,"hexcode":"1F60C","order":44,"shortcodes":["relieved"],"tags":["face","relieved"],"unicode":"😌"},{"annotation":"pensive face","group":0,"hexcode":"1F614","order":45,"shortcodes":["pensive"],"tags":["dejected","face","pensive"],"unicode":"😔"},{"annotation":"sleepy face","group":0,"hexcode":"1F62A","order":46,"shortcodes":["sleepy"],"tags":["face","sleep"],"unicode":"😪"},{"annotation":"drooling face","group":0,"hexcode":"1F924","order":47,"shortcodes":["drooling"],"tags":["drooling","face"],"unicode":"🤤"},{"annotation":"sleeping face","group":0,"hexcode":"1F634","order":48,"shortcodes":["exhausted","sleeping"],"tags":["face","sleep","zzz"],"unicode":"😴"},{"annotation":"face with medical mask","group":0,"hexcode":"1F637","order":49,"shortcodes":["ill","mask"],"tags":["cold","doctor","face","mask","sick"],"unicode":"😷"},{"annotation":"face with thermometer","group":0,"hexcode":"1F912","order":50,"shortcodes":["sick"],"tags":["face","ill","sick","thermometer"],"unicode":"🤒"},{"annotation":"face with head-bandage","group":0,"hexcode":"1F915","order":51,"shortcodes":["injured"],"tags":["bandage","face","hurt","injury"],"unicode":"🤕"},{"annotation":"nauseated face","group":0,"hexcode":"1F922","order":52,"shortcodes":["nauseated"],"tags":["face","nauseated","vomit"],"unicode":"🤢","emoticon":"%("},{"annotation":"face vomiting","group":0,"hexcode":"1F92E","order":53,"shortcodes":["vomiting"],"tags":["sick","vomit"],"unicode":"🤮"},{"annotation":"sneezing face","group":0,"hexcode":"1F927","order":54,"shortcodes":["sneezing"],"tags":["face","gesundheit","sneeze"],"unicode":"🤧"},{"annotation":"hot face","group":0,"hexcode":"1F975","order":55,"shortcodes":["overheating"],"tags":["feverish","heat stroke","hot","red-faced","sweating"],"unicode":"🥵"},{"annotation":"cold face","group":0,"hexcode":"1F976","order":56,"shortcodes":["freezing"],"tags":["blue-faced","cold","freezing","frostbite","icicles"],"unicode":"🥶"},{"annotation":"woozy face","group":0,"hexcode":"1F974","order":57,"shortcodes":["woozy"],"tags":["dizzy","intoxicated","tipsy","uneven eyes","wavy mouth"],"unicode":"🥴","emoticon":":&"},{"annotation":"dizzy face","group":0,"hexcode":"1F635","order":58,"shortcodes":["dizzy"],"tags":["dizzy","face"],"unicode":"😵","emoticon":"xo"},{"annotation":"exploding head","group":0,"hexcode":"1F92F","order":59,"shortcodes":["shocked","exploding_head"],"tags":["mind blown","shocked"],"unicode":"🤯"},{"annotation":"cowboy hat face","group":0,"hexcode":"1F920","order":60,"shortcodes":["cowboy"],"tags":["cowboy","cowgirl","face","hat"],"unicode":"🤠"},{"annotation":"partying face","group":0,"hexcode":"1F973","order":61,"shortcodes":["partying","celebrating"],"tags":["celebration","hat","horn","party"],"unicode":"🥳"},{"annotation":"disguised face","group":0,"hexcode":"1F978","order":62,"shortcodes":["disguised_face"],"tags":["disguise","face","glasses","incognito","nose"],"unicode":"🥸"},{"annotation":"smiling face with sunglasses","group":0,"hexcode":"1F60E","order":63,"shortcodes":["confident"],"tags":["bright","cool","face","sun","sunglasses"],"unicode":"😎","emoticon":"8)"},{"annotation":"nerd face","group":0,"hexcode":"1F913","order":64,"shortcodes":["nerd"],"tags":["face","geek","nerd"],"unicode":"🤓","emoticon":":B"},{"annotation":"face with monocle","group":0,"hexcode":"1F9D0","order":65,"shortcodes":["monocle"],"tags":["stuffy"],"unicode":"🧐"},{"annotation":"confused face","group":0,"hexcode":"1F615","order":66,"shortcodes":["confused"],"tags":["confused","face","meh"],"unicode":"😕","emoticon":":/"},{"annotation":"worried face","group":0,"hexcode":"1F61F","order":67,"shortcodes":["worried"],"tags":["face","worried"],"unicode":"😟"},{"annotation":"slightly frowning face","group":0,"hexcode":"1F641","order":68,"shortcodes":["cheerless","slight_frown"],"tags":["face","frown"],"unicode":"🙁"},{"annotation":"frowning face","group":0,"hexcode":"2639","order":70,"shortcodes":["sad","frowning"],"tags":["face","frown"],"unicode":"☹️","emoticon":":("},{"annotation":"face with open mouth","group":0,"hexcode":"1F62E","order":71,"shortcodes":["surprised"],"tags":["face","mouth","open","sympathy"],"unicode":"😮"},{"annotation":"hushed face","group":0,"hexcode":"1F62F","order":72,"shortcodes":["hushed"],"tags":["face","hushed","stunned","surprised"],"unicode":"😯"},{"annotation":"astonished face","group":0,"hexcode":"1F632","order":73,"shortcodes":["astonished"],"tags":["astonished","face","shocked","totally"],"unicode":"😲","emoticon":":o"},{"annotation":"flushed face","group":0,"hexcode":"1F633","order":74,"shortcodes":["flushed"],"tags":["dazed","face","flushed"],"unicode":"😳","emoticon":":$"},{"annotation":"pleading face","group":0,"hexcode":"1F97A","order":75,"shortcodes":["pleading"],"tags":["begging","mercy","puppy eyes"],"unicode":"🥺"},{"annotation":"frowning face with open mouth","group":0,"hexcode":"1F626","order":76,"shortcodes":["bored"],"tags":["face","frown","mouth","open"],"unicode":"😦"},{"annotation":"anguished face","group":0,"hexcode":"1F627","order":77,"shortcodes":["anguished","wtf"],"tags":["anguished","face"],"unicode":"😧","emoticon":":s"},{"annotation":"fearful face","group":0,"hexcode":"1F628","order":78,"shortcodes":["fearful"],"tags":["face","fear","fearful","scared"],"unicode":"😨"},{"annotation":"anxious face with sweat","group":0,"hexcode":"1F630","order":79,"shortcodes":["cold_sweat","anxious","frustrated"],"tags":["blue","cold","face","rushed","sweat"],"unicode":"😰"},{"annotation":"sad but relieved face","group":0,"hexcode":"1F625","order":80,"shortcodes":["hopeful"],"tags":["disappointed","face","relieved","whew"],"unicode":"😥"},{"annotation":"crying face","group":0,"hexcode":"1F622","order":81,"shortcodes":["upset","cry"],"tags":["cry","face","sad","tear"],"unicode":"😢","emoticon":":\'("},{"annotation":"loudly crying face","group":0,"hexcode":"1F62D","order":82,"shortcodes":["distressed","sob"],"tags":["cry","face","sad","sob","tear"],"unicode":"😭","emoticon":":\'o"},{"annotation":"face screaming in fear","group":0,"hexcode":"1F631","order":83,"shortcodes":["frightened","scream"],"tags":["face","fear","munch","scared","scream"],"unicode":"😱","emoticon":"Dx"},{"annotation":"confounded face","group":0,"hexcode":"1F616","order":84,"shortcodes":["confounded"],"tags":["confounded","face"],"unicode":"😖","emoticon":"x("},{"annotation":"persevering face","group":0,"hexcode":"1F623","order":85,"shortcodes":["persevered"],"tags":["face","persevere"],"unicode":"😣"},{"annotation":"disappointed face","group":0,"hexcode":"1F61E","order":86,"shortcodes":["disappointed"],"tags":["disappointed","face"],"unicode":"😞"},{"annotation":"downcast face with sweat","group":0,"hexcode":"1F613","order":87,"shortcodes":["shamed"],"tags":["cold","face","sweat"],"unicode":"😓","emoticon":":<"},{"annotation":"weary face","group":0,"hexcode":"1F629","order":88,"shortcodes":["weary"],"tags":["face","tired","weary"],"unicode":"😩","emoticon":"D:"},{"annotation":"tired face","group":0,"hexcode":"1F62B","order":89,"shortcodes":["tired"],"tags":["face","tired"],"unicode":"😫","emoticon":":c"},{"annotation":"yawning face","group":0,"hexcode":"1F971","order":90,"shortcodes":["yawn"],"tags":["bored","tired","yawn"],"unicode":"🥱"},{"annotation":"face with steam from nose","group":0,"hexcode":"1F624","order":91,"shortcodes":["annoyed","hrmph"],"tags":["face","triumph","won"],"unicode":"😤"},{"annotation":"pouting face","group":0,"hexcode":"1F621","order":92,"shortcodes":["enraged","pout"],"tags":["angry","face","mad","pouting","rage","red"],"unicode":"😡","emoticon":">:/"},{"annotation":"angry face","group":0,"hexcode":"1F620","order":93,"shortcodes":["angry"],"tags":["angry","face","mad"],"unicode":"😠"},{"annotation":"face with symbols on mouth","group":0,"hexcode":"1F92C","order":94,"shortcodes":["censored"],"tags":["swearing"],"unicode":"🤬","emoticon":":@"},{"annotation":"smiling face with horns","group":0,"hexcode":"1F608","order":95,"shortcodes":["imp"],"tags":["face","fairy tale","fantasy","horns","smile"],"unicode":"😈","emoticon":">:)"},{"annotation":"angry face with horns","group":0,"hexcode":"1F47F","order":96,"shortcodes":["angry_imp"],"tags":["demon","devil","face","fantasy","imp"],"unicode":"👿","emoticon":">:("},{"annotation":"skull","group":0,"hexcode":"1F480","order":97,"shortcodes":["skull"],"tags":["death","face","fairy tale","monster"],"unicode":"💀"},{"annotation":"skull and crossbones","group":0,"hexcode":"2620","order":99,"shortcodes":["crossbones"],"tags":["crossbones","death","face","monster","skull"],"unicode":"☠️"},{"annotation":"pile of poo","group":0,"hexcode":"1F4A9","order":100,"shortcodes":["poop"],"tags":["dung","face","monster","poo","poop"],"unicode":"💩"},{"annotation":"clown face","group":0,"hexcode":"1F921","order":101,"shortcodes":["clown"],"tags":["clown","face"],"unicode":"🤡"},{"annotation":"ogre","group":0,"hexcode":"1F479","order":102,"shortcodes":["ogre"],"tags":["creature","face","fairy tale","fantasy","monster"],"unicode":"👹","emoticon":">0)"},{"annotation":"goblin","group":0,"hexcode":"1F47A","order":103,"shortcodes":["goblin"],"tags":["creature","face","fairy tale","fantasy","monster"],"unicode":"👺"},{"annotation":"ghost","group":0,"hexcode":"1F47B","order":104,"shortcodes":["ghost"],"tags":["creature","face","fairy tale","fantasy","monster"],"unicode":"👻"},{"annotation":"alien","group":0,"hexcode":"1F47D","order":105,"shortcodes":["alien"],"tags":["creature","extraterrestrial","face","fantasy","ufo"],"unicode":"👽️"},{"annotation":"alien monster","group":0,"hexcode":"1F47E","order":106,"shortcodes":["alien_monster","space_invader"],"tags":["alien","creature","extraterrestrial","face","monster","ufo"],"unicode":"👾"},{"annotation":"robot","group":0,"hexcode":"1F916","order":107,"shortcodes":["robot"],"tags":["face","monster"],"unicode":"🤖"},{"annotation":"grinning cat","group":0,"hexcode":"1F63A","order":108,"shortcodes":["smiling_cat"],"tags":["cat","face","grinning","mouth","open","smile"],"unicode":"😺"},{"annotation":"grinning cat with smiling eyes","group":0,"hexcode":"1F638","order":109,"shortcodes":["grinning_cat"],"tags":["cat","eye","face","grin","smile"],"unicode":"😸"},{"annotation":"cat with tears of joy","group":0,"hexcode":"1F639","order":110,"shortcodes":["joyful_cat"],"tags":["cat","face","joy","tear"],"unicode":"😹"},{"annotation":"smiling cat with heart-eyes","group":0,"hexcode":"1F63B","order":111,"shortcodes":["lovestruck_cat"],"tags":["cat","eye","face","heart","love","smile"],"unicode":"😻"},{"annotation":"cat with wry smile","group":0,"hexcode":"1F63C","order":112,"shortcodes":["smirking_cat"],"tags":["cat","face","ironic","smile","wry"],"unicode":"😼"},{"annotation":"kissing cat","group":0,"hexcode":"1F63D","order":113,"shortcodes":["kissing_cat"],"tags":["cat","eye","face","kiss"],"unicode":"😽","emoticon":":3"},{"annotation":"weary cat","group":0,"hexcode":"1F640","order":114,"shortcodes":["weary_cat"],"tags":["cat","face","oh","surprised","weary"],"unicode":"🙀"},{"annotation":"crying cat","group":0,"hexcode":"1F63F","order":115,"shortcodes":["crying_cat"],"tags":["cat","cry","face","sad","tear"],"unicode":"😿"},{"annotation":"pouting cat","group":0,"hexcode":"1F63E","order":116,"shortcodes":["pouting_cat"],"tags":["cat","face","pouting"],"unicode":"😾"},{"annotation":"see-no-evil monkey","group":0,"hexcode":"1F648","order":117,"shortcodes":["see_no_evil"],"tags":["evil","face","forbidden","monkey","see"],"unicode":"🙈"},{"annotation":"hear-no-evil monkey","group":0,"hexcode":"1F649","order":118,"shortcodes":["hear_no_evil"],"tags":["evil","face","forbidden","hear","monkey"],"unicode":"🙉"},{"annotation":"speak-no-evil monkey","group":0,"hexcode":"1F64A","order":119,"shortcodes":["speak_no_evil"],"tags":["evil","face","forbidden","monkey","speak"],"unicode":"🙊"},{"annotation":"kiss mark","group":0,"hexcode":"1F48B","order":120,"shortcodes":["kiss_lips"],"tags":["kiss","lips"],"unicode":"💋"},{"annotation":"love letter","group":0,"hexcode":"1F48C","order":121,"shortcodes":["love_letter"],"tags":["heart","letter","love","mail"],"unicode":"💌"},{"annotation":"heart with arrow","group":0,"hexcode":"1F498","order":122,"shortcodes":["cupid"],"tags":["arrow","cupid"],"unicode":"💘"},{"annotation":"heart with ribbon","group":0,"hexcode":"1F49D","order":123,"shortcodes":["heart_ribbon"],"tags":["ribbon","valentine"],"unicode":"💝"},{"annotation":"sparkling heart","group":0,"hexcode":"1F496","order":124,"shortcodes":["sparkling_heart"],"tags":["excited","sparkle"],"unicode":"💖"},{"annotation":"growing heart","group":0,"hexcode":"1F497","order":125,"shortcodes":["heartpulse"],"tags":["excited","growing","nervous","pulse"],"unicode":"💗"},{"annotation":"beating heart","group":0,"hexcode":"1F493","order":126,"shortcodes":["heartbeat"],"tags":["beating","heartbeat","pulsating"],"unicode":"💓"},{"annotation":"revolving hearts","group":0,"hexcode":"1F49E","order":127,"shortcodes":["revolving_hearts"],"tags":["revolving"],"unicode":"💞"},{"annotation":"two hearts","group":0,"hexcode":"1F495","order":128,"shortcodes":["two_hearts"],"tags":["love"],"unicode":"💕"},{"annotation":"heart decoration","group":0,"hexcode":"1F49F","order":129,"shortcodes":["heart_decoration"],"tags":["heart"],"unicode":"💟"},{"annotation":"heart exclamation","group":0,"hexcode":"2763","order":131,"shortcodes":["heart_exclamation"],"tags":["exclamation","mark","punctuation"],"unicode":"❣️"},{"annotation":"broken heart","group":0,"hexcode":"1F494","order":132,"shortcodes":["broken_heart"],"tags":["break","broken"],"unicode":"💔","emoticon":"</3"},{"annotation":"red heart","group":0,"hexcode":"2764","order":134,"shortcodes":["heart"],"tags":["heart"],"unicode":"❤️","emoticon":"<3"},{"annotation":"orange heart","group":0,"hexcode":"1F9E1","order":135,"shortcodes":["orange_heart"],"tags":["orange"],"unicode":"🧡"},{"annotation":"yellow heart","group":0,"hexcode":"1F49B","order":136,"shortcodes":["yellow_heart"],"tags":["yellow"],"unicode":"💛"},{"annotation":"green heart","group":0,"hexcode":"1F49A","order":137,"shortcodes":["green_heart"],"tags":["green"],"unicode":"💚"},{"annotation":"blue heart","group":0,"hexcode":"1F499","order":138,"shortcodes":["blue_heart"],"tags":["blue"],"unicode":"💙"},{"annotation":"purple heart","group":0,"hexcode":"1F49C","order":139,"shortcodes":["purple_heart"],"tags":["purple"],"unicode":"💜"},{"annotation":"brown heart","group":0,"hexcode":"1F90E","order":140,"shortcodes":["brown_heart"],"tags":["brown","heart"],"unicode":"🤎"},{"annotation":"black heart","group":0,"hexcode":"1F5A4","order":141,"shortcodes":["black_heart"],"tags":["black","evil","wicked"],"unicode":"🖤"},{"annotation":"white heart","group":0,"hexcode":"1F90D","order":142,"shortcodes":["white_heart"],"tags":["heart","white"],"unicode":"🤍"},{"annotation":"hundred points","group":0,"hexcode":"1F4AF","order":143,"shortcodes":["100"],"tags":["100","full","hundred","score"],"unicode":"💯"},{"annotation":"anger symbol","group":0,"hexcode":"1F4A2","order":144,"shortcodes":["anger"],"tags":["angry","comic","mad"],"unicode":"💢"},{"annotation":"collision","group":0,"hexcode":"1F4A5","order":145,"shortcodes":["boom","collision"],"tags":["boom","comic"],"unicode":"💥"},{"annotation":"dizzy","group":0,"hexcode":"1F4AB","order":146,"shortcodes":["dizzy_star"],"tags":["comic","star"],"unicode":"💫"},{"annotation":"sweat droplets","group":0,"hexcode":"1F4A6","order":147,"shortcodes":["sweat_drops"],"tags":["comic","splashing","sweat"],"unicode":"💦"},{"annotation":"dashing away","group":0,"hexcode":"1F4A8","order":148,"shortcodes":["dash"],"tags":["comic","dash","running"],"unicode":"💨"},{"annotation":"hole","group":0,"hexcode":"1F573","order":150,"shortcodes":["hole"],"tags":["hole"],"unicode":"🕳️"},{"annotation":"bomb","group":0,"hexcode":"1F4A3","order":151,"shortcodes":["bomb"],"tags":["comic"],"unicode":"💣️"},{"annotation":"speech balloon","group":0,"hexcode":"1F4AC","order":152,"shortcodes":["speech"],"tags":["balloon","bubble","comic","dialog","speech"],"unicode":"💬"},{"annotation":"eye in speech bubble","group":0,"hexcode":"1F441-FE0F-200D-1F5E8-FE0F","order":153,"shortcodes":["eye_bubble"],"tags":["eye","speech bubble","witness"],"unicode":"👁️🗨️"},{"annotation":"left speech bubble","group":0,"hexcode":"1F5E8","order":158,"shortcodes":["left_speech"],"tags":["dialog","speech"],"unicode":"🗨️"},{"annotation":"right anger bubble","group":0,"hexcode":"1F5EF","order":160,"shortcodes":["right_anger_speech"],"tags":["angry","balloon","bubble","mad"],"unicode":"🗯️"},{"annotation":"thought balloon","group":0,"hexcode":"1F4AD","order":161,"shortcodes":["thought"],"tags":["balloon","bubble","comic","thought"],"unicode":"💭"},{"annotation":"zzz","group":0,"hexcode":"1F4A4","order":162,"shortcodes":["zzz"],"tags":["comic","sleep"],"unicode":"💤"},{"annotation":"waving hand","group":1,"hexcode":"1F44B","order":163,"shortcodes":["wave"],"tags":["hand","wave","waving"],"unicode":"👋","skins":[{"annotation":"waving hand: light skin tone","group":1,"hexcode":"1F44B-1F3FB","order":164,"shortcodes":["wave_tone1"],"unicode":"👋🏻"},{"annotation":"waving hand: medium-light skin tone","group":1,"hexcode":"1F44B-1F3FC","order":165,"shortcodes":["wave_tone2"],"unicode":"👋🏼"},{"annotation":"waving hand: medium skin tone","group":1,"hexcode":"1F44B-1F3FD","order":166,"shortcodes":["wave_tone3"],"unicode":"👋🏽"},{"annotation":"waving hand: medium-dark skin tone","group":1,"hexcode":"1F44B-1F3FE","order":167,"shortcodes":["wave_tone4"],"unicode":"👋🏾"},{"annotation":"waving hand: dark skin tone","group":1,"hexcode":"1F44B-1F3FF","order":168,"shortcodes":["wave_tone5"],"unicode":"👋🏿"}]},{"annotation":"raised back of hand","group":1,"hexcode":"1F91A","order":169,"shortcodes":["raised_backhand"],"tags":["backhand","raised"],"unicode":"🤚","skins":[{"annotation":"raised back of hand: light skin tone","group":1,"hexcode":"1F91A-1F3FB","order":170,"shortcodes":["raised_backhand_tone1"],"unicode":"🤚🏻"},{"annotation":"raised back of hand: medium-light skin tone","group":1,"hexcode":"1F91A-1F3FC","order":171,"shortcodes":["raised_backhand_tone2"],"unicode":"🤚🏼"},{"annotation":"raised back of hand: medium skin tone","group":1,"hexcode":"1F91A-1F3FD","order":172,"shortcodes":["raised_backhand_tone3"],"unicode":"🤚🏽"},{"annotation":"raised back of hand: medium-dark skin tone","group":1,"hexcode":"1F91A-1F3FE","order":173,"shortcodes":["raised_backhand_tone4"],"unicode":"🤚🏾"},{"annotation":"raised back of hand: dark skin tone","group":1,"hexcode":"1F91A-1F3FF","order":174,"shortcodes":["raised_backhand_tone5"],"unicode":"🤚🏿"}]},{"annotation":"hand with fingers splayed","group":1,"hexcode":"1F590","order":176,"shortcodes":["splayed_hand"],"tags":["finger","hand","splayed"],"unicode":"🖐️","skins":[{"annotation":"hand with fingers splayed: light skin tone","group":1,"hexcode":"1F590-1F3FB","order":177,"shortcodes":["splayed_hand_tone1"],"unicode":"🖐🏻"},{"annotation":"hand with fingers splayed: medium-light skin tone","group":1,"hexcode":"1F590-1F3FC","order":178,"shortcodes":["splayed_hand_tone2"],"unicode":"🖐🏼"},{"annotation":"hand with fingers splayed: medium skin tone","group":1,"hexcode":"1F590-1F3FD","order":179,"shortcodes":["splayed_hand_tone3"],"unicode":"🖐🏽"},{"annotation":"hand with fingers splayed: medium-dark skin tone","group":1,"hexcode":"1F590-1F3FE","order":180,"shortcodes":["splayed_hand_tone4"],"unicode":"🖐🏾"},{"annotation":"hand with fingers splayed: dark skin tone","group":1,"hexcode":"1F590-1F3FF","order":181,"shortcodes":["splayed_hand_tone5"],"unicode":"🖐🏿"}]},{"annotation":"raised hand","group":1,"hexcode":"270B","order":182,"shortcodes":["raised_hand"],"tags":["hand"],"unicode":"✋","skins":[{"annotation":"raised hand: light skin tone","group":1,"hexcode":"270B-1F3FB","order":183,"shortcodes":["raised_hand_tone1"],"unicode":"✋🏻"},{"annotation":"raised hand: medium-light skin tone","group":1,"hexcode":"270B-1F3FC","order":184,"shortcodes":["raised_hand_tone2"],"unicode":"✋🏼"},{"annotation":"raised hand: medium skin tone","group":1,"hexcode":"270B-1F3FD","order":185,"shortcodes":["raised_hand_tone3"],"unicode":"✋🏽"},{"annotation":"raised hand: medium-dark skin tone","group":1,"hexcode":"270B-1F3FE","order":186,"shortcodes":["raised_hand_tone4"],"unicode":"✋🏾"},{"annotation":"raised hand: dark skin tone","group":1,"hexcode":"270B-1F3FF","order":187,"shortcodes":["raised_hand_tone5"],"unicode":"✋🏿"}]},{"annotation":"vulcan salute","group":1,"hexcode":"1F596","order":188,"shortcodes":["vulcan"],"tags":["finger","hand","spock","vulcan"],"unicode":"🖖","skins":[{"annotation":"vulcan salute: light skin tone","group":1,"hexcode":"1F596-1F3FB","order":189,"shortcodes":["vulcan_tone1"],"unicode":"🖖🏻"},{"annotation":"vulcan salute: medium-light skin tone","group":1,"hexcode":"1F596-1F3FC","order":190,"shortcodes":["vulcan_tone2"],"unicode":"🖖🏼"},{"annotation":"vulcan salute: medium skin tone","group":1,"hexcode":"1F596-1F3FD","order":191,"shortcodes":["vulcan_tone3"],"unicode":"🖖🏽"},{"annotation":"vulcan salute: medium-dark skin tone","group":1,"hexcode":"1F596-1F3FE","order":192,"shortcodes":["vulcan_tone4"],"unicode":"🖖🏾"},{"annotation":"vulcan salute: dark skin tone","group":1,"hexcode":"1F596-1F3FF","order":193,"shortcodes":["vulcan_tone5"],"unicode":"🖖🏿"}]},{"annotation":"OK hand","group":1,"hexcode":"1F44C","order":194,"shortcodes":["ok_hand"],"tags":["hand","ok"],"unicode":"👌","skins":[{"annotation":"OK hand: light skin tone","group":1,"hexcode":"1F44C-1F3FB","order":195,"shortcodes":["ok_hand_tone1"],"unicode":"👌🏻"},{"annotation":"OK hand: medium-light skin tone","group":1,"hexcode":"1F44C-1F3FC","order":196,"shortcodes":["ok_hand_tone2"],"unicode":"👌🏼"},{"annotation":"OK hand: medium skin tone","group":1,"hexcode":"1F44C-1F3FD","order":197,"shortcodes":["ok_hand_tone3"],"unicode":"👌🏽"},{"annotation":"OK hand: medium-dark skin tone","group":1,"hexcode":"1F44C-1F3FE","order":198,"shortcodes":["ok_hand_tone4"],"unicode":"👌🏾"},{"annotation":"OK hand: dark skin tone","group":1,"hexcode":"1F44C-1F3FF","order":199,"shortcodes":["ok_hand_tone5"],"unicode":"👌🏿"}]},{"annotation":"pinched fingers","group":1,"hexcode":"1F90C","order":200,"shortcodes":["pinched_fingers"],"tags":["fingers","hand gesture","interrogation","pinched","sarcastic"],"unicode":"🤌","skins":[{"annotation":"pinched fingers: light skin tone","group":1,"hexcode":"1F90C-1F3FB","order":201,"shortcodes":["pinched_fingers_tone1"],"unicode":"🤌🏻"},{"annotation":"pinched fingers: medium-light skin tone","group":1,"hexcode":"1F90C-1F3FC","order":202,"shortcodes":["pinched_fingers_tone2"],"unicode":"🤌🏼"},{"annotation":"pinched fingers: medium skin tone","group":1,"hexcode":"1F90C-1F3FD","order":203,"shortcodes":["pinched_fingers_tone3"],"unicode":"🤌🏽"},{"annotation":"pinched fingers: medium-dark skin tone","group":1,"hexcode":"1F90C-1F3FE","order":204,"shortcodes":["pinched_fingers_tone4"],"unicode":"🤌🏾"},{"annotation":"pinched fingers: dark skin tone","group":1,"hexcode":"1F90C-1F3FF","order":205,"shortcodes":["pinched_fingers_tone5"],"unicode":"🤌🏿"}]},{"annotation":"pinching hand","group":1,"hexcode":"1F90F","order":206,"shortcodes":["pinch"],"tags":["small amount"],"unicode":"🤏","skins":[{"annotation":"pinching hand: light skin tone","group":1,"hexcode":"1F90F-1F3FB","order":207,"shortcodes":["pinch_tone1"],"unicode":"🤏🏻"},{"annotation":"pinching hand: medium-light skin tone","group":1,"hexcode":"1F90F-1F3FC","order":208,"shortcodes":["pinch_tone2"],"unicode":"🤏🏼"},{"annotation":"pinching hand: medium skin tone","group":1,"hexcode":"1F90F-1F3FD","order":209,"shortcodes":["pinch_tone3"],"unicode":"🤏🏽"},{"annotation":"pinching hand: medium-dark skin tone","group":1,"hexcode":"1F90F-1F3FE","order":210,"shortcodes":["pinch_tone4"],"unicode":"🤏🏾"},{"annotation":"pinching hand: dark skin tone","group":1,"hexcode":"1F90F-1F3FF","order":211,"shortcodes":["pinch_tone5"],"unicode":"🤏🏿"}]},{"annotation":"victory hand","group":1,"hexcode":"270C","order":213,"shortcodes":["victory"],"tags":["hand","v","victory"],"unicode":"✌️","skins":[{"annotation":"victory hand: light skin tone","group":1,"hexcode":"270C-1F3FB","order":214,"shortcodes":["victory_tone1"],"unicode":"✌🏻"},{"annotation":"victory hand: medium-light skin tone","group":1,"hexcode":"270C-1F3FC","order":215,"shortcodes":["victory_tone2"],"unicode":"✌🏼"},{"annotation":"victory hand: medium skin tone","group":1,"hexcode":"270C-1F3FD","order":216,"shortcodes":["victory_tone3"],"unicode":"✌🏽"},{"annotation":"victory hand: medium-dark skin tone","group":1,"hexcode":"270C-1F3FE","order":217,"shortcodes":["victory_tone4"],"unicode":"✌🏾"},{"annotation":"victory hand: dark skin tone","group":1,"hexcode":"270C-1F3FF","order":218,"shortcodes":["victory_tone5"],"unicode":"✌🏿"}]},{"annotation":"crossed fingers","group":1,"hexcode":"1F91E","order":219,"shortcodes":["fingers_crossed"],"tags":["cross","finger","hand","luck"],"unicode":"🤞","skins":[{"annotation":"crossed fingers: light skin tone","group":1,"hexcode":"1F91E-1F3FB","order":220,"shortcodes":["fingers_crossed_tone1"],"unicode":"🤞🏻"},{"annotation":"crossed fingers: medium-light skin tone","group":1,"hexcode":"1F91E-1F3FC","order":221,"shortcodes":["fingers_crossed_tone2"],"unicode":"🤞🏼"},{"annotation":"crossed fingers: medium skin tone","group":1,"hexcode":"1F91E-1F3FD","order":222,"shortcodes":["fingers_crossed_tone3"],"unicode":"🤞🏽"},{"annotation":"crossed fingers: medium-dark skin tone","group":1,"hexcode":"1F91E-1F3FE","order":223,"shortcodes":["fingers_crossed_tone4"],"unicode":"🤞🏾"},{"annotation":"crossed fingers: dark skin tone","group":1,"hexcode":"1F91E-1F3FF","order":224,"shortcodes":["fingers_crossed_tone5"],"unicode":"🤞🏿"}]},{"annotation":"love-you gesture","group":1,"hexcode":"1F91F","order":225,"shortcodes":["love_you_gesture"],"tags":["hand","ily"],"unicode":"🤟","skins":[{"annotation":"love-you gesture: light skin tone","group":1,"hexcode":"1F91F-1F3FB","order":226,"shortcodes":["love_you_gesture_tone1"],"unicode":"🤟🏻"},{"annotation":"love-you gesture: medium-light skin tone","group":1,"hexcode":"1F91F-1F3FC","order":227,"shortcodes":["love_you_gesture_tone2"],"unicode":"🤟🏼"},{"annotation":"love-you gesture: medium skin tone","group":1,"hexcode":"1F91F-1F3FD","order":228,"shortcodes":["love_you_gesture_tone3"],"unicode":"🤟🏽"},{"annotation":"love-you gesture: medium-dark skin tone","group":1,"hexcode":"1F91F-1F3FE","order":229,"shortcodes":["love_you_gesture_tone4"],"unicode":"🤟🏾"},{"annotation":"love-you gesture: dark skin tone","group":1,"hexcode":"1F91F-1F3FF","order":230,"shortcodes":["love_you_gesture_tone5"],"unicode":"🤟🏿"}]},{"annotation":"sign of the horns","group":1,"hexcode":"1F918","order":231,"shortcodes":["metal"],"tags":["finger","hand","horns","rock-on"],"unicode":"🤘","emoticon":"\\\\m/","skins":[{"annotation":"sign of the horns: light skin tone","group":1,"hexcode":"1F918-1F3FB","order":232,"shortcodes":["metal_tone1"],"unicode":"🤘🏻"},{"annotation":"sign of the horns: medium-light skin tone","group":1,"hexcode":"1F918-1F3FC","order":233,"shortcodes":["metal_tone2"],"unicode":"🤘🏼"},{"annotation":"sign of the horns: medium skin tone","group":1,"hexcode":"1F918-1F3FD","order":234,"shortcodes":["metal_tone3"],"unicode":"🤘🏽"},{"annotation":"sign of the horns: medium-dark skin tone","group":1,"hexcode":"1F918-1F3FE","order":235,"shortcodes":["metal_tone4"],"unicode":"🤘🏾"},{"annotation":"sign of the horns: dark skin tone","group":1,"hexcode":"1F918-1F3FF","order":236,"shortcodes":["metal_tone5"],"unicode":"🤘🏿"}]},{"annotation":"call me hand","group":1,"hexcode":"1F919","order":237,"shortcodes":["call_me"],"tags":["call","hand"],"unicode":"🤙","skins":[{"annotation":"call me hand: light skin tone","group":1,"hexcode":"1F919-1F3FB","order":238,"shortcodes":["call_me_tone1"],"unicode":"🤙🏻"},{"annotation":"call me hand: medium-light skin tone","group":1,"hexcode":"1F919-1F3FC","order":239,"shortcodes":["call_me_tone2"],"unicode":"🤙🏼"},{"annotation":"call me hand: medium skin tone","group":1,"hexcode":"1F919-1F3FD","order":240,"shortcodes":["call_me_tone3"],"unicode":"🤙🏽"},{"annotation":"call me hand: medium-dark skin tone","group":1,"hexcode":"1F919-1F3FE","order":241,"shortcodes":["call_me_tone4"],"unicode":"🤙🏾"},{"annotation":"call me hand: dark skin tone","group":1,"hexcode":"1F919-1F3FF","order":242,"shortcodes":["call_me_tone5"],"unicode":"🤙🏿"}]},{"annotation":"backhand index pointing left","group":1,"hexcode":"1F448","order":243,"shortcodes":["point_left"],"tags":["backhand","finger","hand","index","point"],"unicode":"👈️","skins":[{"annotation":"backhand index pointing left: light skin tone","group":1,"hexcode":"1F448-1F3FB","order":244,"shortcodes":["point_left_tone1"],"unicode":"👈🏻"},{"annotation":"backhand index pointing left: medium-light skin tone","group":1,"hexcode":"1F448-1F3FC","order":245,"shortcodes":["point_left_tone2"],"unicode":"👈🏼"},{"annotation":"backhand index pointing left: medium skin tone","group":1,"hexcode":"1F448-1F3FD","order":246,"shortcodes":["point_left_tone3"],"unicode":"👈🏽"},{"annotation":"backhand index pointing left: medium-dark skin tone","group":1,"hexcode":"1F448-1F3FE","order":247,"shortcodes":["point_left_tone4"],"unicode":"👈🏾"},{"annotation":"backhand index pointing left: dark skin tone","group":1,"hexcode":"1F448-1F3FF","order":248,"shortcodes":["point_left_tone5"],"unicode":"👈🏿"}]},{"annotation":"backhand index pointing right","group":1,"hexcode":"1F449","order":249,"shortcodes":["point_right"],"tags":["backhand","finger","hand","index","point"],"unicode":"👉️","skins":[{"annotation":"backhand index pointing right: light skin tone","group":1,"hexcode":"1F449-1F3FB","order":250,"shortcodes":["point_right_tone1"],"unicode":"👉🏻"},{"annotation":"backhand index pointing right: medium-light skin tone","group":1,"hexcode":"1F449-1F3FC","order":251,"shortcodes":["point_right_tone2"],"unicode":"👉🏼"},{"annotation":"backhand index pointing right: medium skin tone","group":1,"hexcode":"1F449-1F3FD","order":252,"shortcodes":["point_right_tone3"],"unicode":"👉🏽"},{"annotation":"backhand index pointing right: medium-dark skin tone","group":1,"hexcode":"1F449-1F3FE","order":253,"shortcodes":["point_right_tone4"],"unicode":"👉🏾"},{"annotation":"backhand index pointing right: dark skin tone","group":1,"hexcode":"1F449-1F3FF","order":254,"shortcodes":["point_right_tone5"],"unicode":"👉🏿"}]},{"annotation":"backhand index pointing up","group":1,"hexcode":"1F446","order":255,"shortcodes":["backhand_point_up"],"tags":["backhand","finger","hand","point","up"],"unicode":"👆️","skins":[{"annotation":"backhand index pointing up: light skin tone","group":1,"hexcode":"1F446-1F3FB","order":256,"shortcodes":["backhand_point_up_tone1"],"unicode":"👆🏻"},{"annotation":"backhand index pointing up: medium-light skin tone","group":1,"hexcode":"1F446-1F3FC","order":257,"shortcodes":["backhand_point_up_tone2"],"unicode":"👆🏼"},{"annotation":"backhand index pointing up: medium skin tone","group":1,"hexcode":"1F446-1F3FD","order":258,"shortcodes":["backhand_point_up_tone3"],"unicode":"👆🏽"},{"annotation":"backhand index pointing up: medium-dark skin tone","group":1,"hexcode":"1F446-1F3FE","order":259,"shortcodes":["backhand_point_up_tone4"],"unicode":"👆🏾"},{"annotation":"backhand index pointing up: dark skin tone","group":1,"hexcode":"1F446-1F3FF","order":260,"shortcodes":["backhand_point_up_tone5"],"unicode":"👆🏿"}]},{"annotation":"middle finger","group":1,"hexcode":"1F595","order":261,"shortcodes":["middle_finger"],"tags":["finger","hand"],"unicode":"🖕","skins":[{"annotation":"middle finger: light skin tone","group":1,"hexcode":"1F595-1F3FB","order":262,"shortcodes":["middle_finger_tone1"],"unicode":"🖕🏻"},{"annotation":"middle finger: medium-light skin tone","group":1,"hexcode":"1F595-1F3FC","order":263,"shortcodes":["middle_finger_tone2"],"unicode":"🖕🏼"},{"annotation":"middle finger: medium skin tone","group":1,"hexcode":"1F595-1F3FD","order":264,"shortcodes":["middle_finger_tone3"],"unicode":"🖕🏽"},{"annotation":"middle finger: medium-dark skin tone","group":1,"hexcode":"1F595-1F3FE","order":265,"shortcodes":["middle_finger_tone4"],"unicode":"🖕🏾"},{"annotation":"middle finger: dark skin tone","group":1,"hexcode":"1F595-1F3FF","order":266,"shortcodes":["middle_finger_tone5"],"unicode":"🖕🏿"}]},{"annotation":"backhand index pointing down","group":1,"hexcode":"1F447","order":267,"shortcodes":["point_down"],"tags":["backhand","down","finger","hand","point"],"unicode":"👇️","skins":[{"annotation":"backhand index pointing down: light skin tone","group":1,"hexcode":"1F447-1F3FB","order":268,"shortcodes":["point_down_tone1"],"unicode":"👇🏻"},{"annotation":"backhand index pointing down: medium-light skin tone","group":1,"hexcode":"1F447-1F3FC","order":269,"shortcodes":["point_down_tone2"],"unicode":"👇🏼"},{"annotation":"backhand index pointing down: medium skin tone","group":1,"hexcode":"1F447-1F3FD","order":270,"shortcodes":["point_down_tone3"],"unicode":"👇🏽"},{"annotation":"backhand index pointing down: medium-dark skin tone","group":1,"hexcode":"1F447-1F3FE","order":271,"shortcodes":["point_down_tone4"],"unicode":"👇🏾"},{"annotation":"backhand index pointing down: dark skin tone","group":1,"hexcode":"1F447-1F3FF","order":272,"shortcodes":["point_down_tone5"],"unicode":"👇🏿"}]},{"annotation":"index pointing up","group":1,"hexcode":"261D","order":274,"shortcodes":["point_up"],"tags":["finger","hand","index","point","up"],"unicode":"☝️","skins":[{"annotation":"index pointing up: light skin tone","group":1,"hexcode":"261D-1F3FB","order":275,"shortcodes":["point_up_tone1"],"unicode":"☝🏻"},{"annotation":"index pointing up: medium-light skin tone","group":1,"hexcode":"261D-1F3FC","order":276,"shortcodes":["point_up_tone2"],"unicode":"☝🏼"},{"annotation":"index pointing up: medium skin tone","group":1,"hexcode":"261D-1F3FD","order":277,"shortcodes":["point_up_tone3"],"unicode":"☝🏽"},{"annotation":"index pointing up: medium-dark skin tone","group":1,"hexcode":"261D-1F3FE","order":278,"shortcodes":["point_up_tone4"],"unicode":"☝🏾"},{"annotation":"index pointing up: dark skin tone","group":1,"hexcode":"261D-1F3FF","order":279,"shortcodes":["point_up_tone5"],"unicode":"☝🏿"}]},{"annotation":"thumbs up","group":1,"hexcode":"1F44D","order":280,"shortcodes":["thumbsup","+1","yes"],"tags":["+1","hand","thumb","up"],"unicode":"👍️","skins":[{"annotation":"thumbs up: light skin tone","group":1,"hexcode":"1F44D-1F3FB","order":281,"shortcodes":["thumbsup_tone1","+1_tone1","yes_tone1"],"unicode":"👍🏻"},{"annotation":"thumbs up: medium-light skin tone","group":1,"hexcode":"1F44D-1F3FC","order":282,"shortcodes":["thumbsup_tone2","+1_tone2","yes_tone2"],"unicode":"👍🏼"},{"annotation":"thumbs up: medium skin tone","group":1,"hexcode":"1F44D-1F3FD","order":283,"shortcodes":["thumbsup_tone3","+1_tone3","yes_tone3"],"unicode":"👍🏽"},{"annotation":"thumbs up: medium-dark skin tone","group":1,"hexcode":"1F44D-1F3FE","order":284,"shortcodes":["thumbsup_tone4","+1_tone4","yes_tone4"],"unicode":"👍🏾"},{"annotation":"thumbs up: dark skin tone","group":1,"hexcode":"1F44D-1F3FF","order":285,"shortcodes":["thumbsup_tone5","+1_tone5","yes_tone5"],"unicode":"👍🏿"}]},{"annotation":"thumbs down","group":1,"hexcode":"1F44E","order":286,"shortcodes":["thumbsdown","-1","no"],"tags":["-1","down","hand","thumb"],"unicode":"👎️","skins":[{"annotation":"thumbs down: light skin tone","group":1,"hexcode":"1F44E-1F3FB","order":287,"shortcodes":["thumbsdown_tone1","-1_tone1","no_tone1"],"unicode":"👎🏻"},{"annotation":"thumbs down: medium-light skin tone","group":1,"hexcode":"1F44E-1F3FC","order":288,"shortcodes":["thumbsdown_tone2","-1_tone2","no_tone2"],"unicode":"👎🏼"},{"annotation":"thumbs down: medium skin tone","group":1,"hexcode":"1F44E-1F3FD","order":289,"shortcodes":["thumbsdown_tone3","-1_tone3","no_tone3"],"unicode":"👎🏽"},{"annotation":"thumbs down: medium-dark skin tone","group":1,"hexcode":"1F44E-1F3FE","order":290,"shortcodes":["thumbsdown_tone4","-1_tone4","no_tone4"],"unicode":"👎🏾"},{"annotation":"thumbs down: dark skin tone","group":1,"hexcode":"1F44E-1F3FF","order":291,"shortcodes":["thumbsdown_tone5","-1_tone5","no_tone5"],"unicode":"👎🏿"}]},{"annotation":"raised fist","group":1,"hexcode":"270A","order":292,"shortcodes":["fist"],"tags":["clenched","fist","hand","punch"],"unicode":"✊","skins":[{"annotation":"raised fist: light skin tone","group":1,"hexcode":"270A-1F3FB","order":293,"shortcodes":["fist_tone1"],"unicode":"✊🏻"},{"annotation":"raised fist: medium-light skin tone","group":1,"hexcode":"270A-1F3FC","order":294,"shortcodes":["fist_tone2"],"unicode":"✊🏼"},{"annotation":"raised fist: medium skin tone","group":1,"hexcode":"270A-1F3FD","order":295,"shortcodes":["fist_tone3"],"unicode":"✊🏽"},{"annotation":"raised fist: medium-dark skin tone","group":1,"hexcode":"270A-1F3FE","order":296,"shortcodes":["fist_tone4"],"unicode":"✊🏾"},{"annotation":"raised fist: dark skin tone","group":1,"hexcode":"270A-1F3FF","order":297,"shortcodes":["fist_tone5"],"unicode":"✊🏿"}]},{"annotation":"oncoming fist","group":1,"hexcode":"1F44A","order":298,"shortcodes":["punch"],"tags":["clenched","fist","hand","punch"],"unicode":"👊","skins":[{"annotation":"oncoming fist: light skin tone","group":1,"hexcode":"1F44A-1F3FB","order":299,"shortcodes":["punch_tone1"],"unicode":"👊🏻"},{"annotation":"oncoming fist: medium-light skin tone","group":1,"hexcode":"1F44A-1F3FC","order":300,"shortcodes":["punch_tone2"],"unicode":"👊🏼"},{"annotation":"oncoming fist: medium skin tone","group":1,"hexcode":"1F44A-1F3FD","order":301,"shortcodes":["punch_tone3"],"unicode":"👊🏽"},{"annotation":"oncoming fist: medium-dark skin tone","group":1,"hexcode":"1F44A-1F3FE","order":302,"shortcodes":["punch_tone4"],"unicode":"👊🏾"},{"annotation":"oncoming fist: dark skin tone","group":1,"hexcode":"1F44A-1F3FF","order":303,"shortcodes":["punch_tone5"],"unicode":"👊🏿"}]},{"annotation":"left-facing fist","group":1,"hexcode":"1F91B","order":304,"shortcodes":["left_facing_fist"],"tags":["fist","leftwards"],"unicode":"🤛","skins":[{"annotation":"left-facing fist: light skin tone","group":1,"hexcode":"1F91B-1F3FB","order":305,"shortcodes":["left_facing_fist_tone1"],"unicode":"🤛🏻"},{"annotation":"left-facing fist: medium-light skin tone","group":1,"hexcode":"1F91B-1F3FC","order":306,"shortcodes":["left_facing_fist_tone2"],"unicode":"🤛🏼"},{"annotation":"left-facing fist: medium skin tone","group":1,"hexcode":"1F91B-1F3FD","order":307,"shortcodes":["left_facing_fist_tone3"],"unicode":"🤛🏽"},{"annotation":"left-facing fist: medium-dark skin tone","group":1,"hexcode":"1F91B-1F3FE","order":308,"shortcodes":["left_facing_fist_tone4"],"unicode":"🤛🏾"},{"annotation":"left-facing fist: dark skin tone","group":1,"hexcode":"1F91B-1F3FF","order":309,"shortcodes":["left_facing_fist_tone5"],"unicode":"🤛🏿"}]},{"annotation":"right-facing fist","group":1,"hexcode":"1F91C","order":310,"shortcodes":["right_facing_fist"],"tags":["fist","rightwards"],"unicode":"🤜","skins":[{"annotation":"right-facing fist: light skin tone","group":1,"hexcode":"1F91C-1F3FB","order":311,"shortcodes":["right_facing_fist_tone1"],"unicode":"🤜🏻"},{"annotation":"right-facing fist: medium-light skin tone","group":1,"hexcode":"1F91C-1F3FC","order":312,"shortcodes":["right_facing_fist_tone2"],"unicode":"🤜🏼"},{"annotation":"right-facing fist: medium skin tone","group":1,"hexcode":"1F91C-1F3FD","order":313,"shortcodes":["right_facing_fist_tone3"],"unicode":"🤜🏽"},{"annotation":"right-facing fist: medium-dark skin tone","group":1,"hexcode":"1F91C-1F3FE","order":314,"shortcodes":["right_facing_fist_tone4"],"unicode":"🤜🏾"},{"annotation":"right-facing fist: dark skin tone","group":1,"hexcode":"1F91C-1F3FF","order":315,"shortcodes":["right_facing_fist_tone5"],"unicode":"🤜🏿"}]},{"annotation":"clapping hands","group":1,"hexcode":"1F44F","order":316,"shortcodes":["clap"],"tags":["clap","hand"],"unicode":"👏","skins":[{"annotation":"clapping hands: light skin tone","group":1,"hexcode":"1F44F-1F3FB","order":317,"shortcodes":["clap_tone1"],"unicode":"👏🏻"},{"annotation":"clapping hands: medium-light skin tone","group":1,"hexcode":"1F44F-1F3FC","order":318,"shortcodes":["clap_tone2"],"unicode":"👏🏼"},{"annotation":"clapping hands: medium skin tone","group":1,"hexcode":"1F44F-1F3FD","order":319,"shortcodes":["clap_tone3"],"unicode":"👏🏽"},{"annotation":"clapping hands: medium-dark skin tone","group":1,"hexcode":"1F44F-1F3FE","order":320,"shortcodes":["clap_tone4"],"unicode":"👏🏾"},{"annotation":"clapping hands: dark skin tone","group":1,"hexcode":"1F44F-1F3FF","order":321,"shortcodes":["clap_tone5"],"unicode":"👏🏿"}]},{"annotation":"raising hands","group":1,"hexcode":"1F64C","order":322,"shortcodes":["raised_hands"],"tags":["celebration","gesture","hand","hooray","raised"],"unicode":"🙌","skins":[{"annotation":"raising hands: light skin tone","group":1,"hexcode":"1F64C-1F3FB","order":323,"shortcodes":["raised_hands_tone1"],"unicode":"🙌🏻"},{"annotation":"raising hands: medium-light skin tone","group":1,"hexcode":"1F64C-1F3FC","order":324,"shortcodes":["raised_hands_tone2"],"unicode":"🙌🏼"},{"annotation":"raising hands: medium skin tone","group":1,"hexcode":"1F64C-1F3FD","order":325,"shortcodes":["raised_hands_tone3"],"unicode":"🙌🏽"},{"annotation":"raising hands: medium-dark skin tone","group":1,"hexcode":"1F64C-1F3FE","order":326,"shortcodes":["raised_hands_tone4"],"unicode":"🙌🏾"},{"annotation":"raising hands: dark skin tone","group":1,"hexcode":"1F64C-1F3FF","order":327,"shortcodes":["raised_hands_tone5"],"unicode":"🙌🏿"}]},{"annotation":"open hands","group":1,"hexcode":"1F450","order":328,"shortcodes":["open_hands"],"tags":["hand","open"],"unicode":"👐","skins":[{"annotation":"open hands: light skin tone","group":1,"hexcode":"1F450-1F3FB","order":329,"shortcodes":["open_hands_tone1"],"unicode":"👐🏻"},{"annotation":"open hands: medium-light skin tone","group":1,"hexcode":"1F450-1F3FC","order":330,"shortcodes":["open_hands_tone2"],"unicode":"👐🏼"},{"annotation":"open hands: medium skin tone","group":1,"hexcode":"1F450-1F3FD","order":331,"shortcodes":["open_hands_tone3"],"unicode":"👐🏽"},{"annotation":"open hands: medium-dark skin tone","group":1,"hexcode":"1F450-1F3FE","order":332,"shortcodes":["open_hands_tone4"],"unicode":"👐🏾"},{"annotation":"open hands: dark skin tone","group":1,"hexcode":"1F450-1F3FF","order":333,"shortcodes":["open_hands_tone5"],"unicode":"👐🏿"}]},{"annotation":"palms up together","group":1,"hexcode":"1F932","order":334,"shortcodes":["palms_up"],"tags":["prayer"],"unicode":"🤲","skins":[{"annotation":"palms up together: light skin tone","group":1,"hexcode":"1F932-1F3FB","order":335,"shortcodes":["palms_up_tone1"],"unicode":"🤲🏻"},{"annotation":"palms up together: medium-light skin tone","group":1,"hexcode":"1F932-1F3FC","order":336,"shortcodes":["palms_up_tone2"],"unicode":"🤲🏼"},{"annotation":"palms up together: medium skin tone","group":1,"hexcode":"1F932-1F3FD","order":337,"shortcodes":["palms_up_tone3"],"unicode":"🤲🏽"},{"annotation":"palms up together: medium-dark skin tone","group":1,"hexcode":"1F932-1F3FE","order":338,"shortcodes":["palms_up_tone4"],"unicode":"🤲🏾"},{"annotation":"palms up together: dark skin tone","group":1,"hexcode":"1F932-1F3FF","order":339,"shortcodes":["palms_up_tone5"],"unicode":"🤲🏿"}]},{"annotation":"handshake","group":1,"hexcode":"1F91D","order":340,"shortcodes":["handshake"],"tags":["agreement","hand","meeting","shake"],"unicode":"🤝"},{"annotation":"folded hands","group":1,"hexcode":"1F64F","order":341,"shortcodes":["pray"],"tags":["ask","hand","please","pray","thanks"],"unicode":"🙏","skins":[{"annotation":"folded hands: light skin tone","group":1,"hexcode":"1F64F-1F3FB","order":342,"shortcodes":["pray_tone1"],"unicode":"🙏🏻"},{"annotation":"folded hands: medium-light skin tone","group":1,"hexcode":"1F64F-1F3FC","order":343,"shortcodes":["pray_tone2"],"unicode":"🙏🏼"},{"annotation":"folded hands: medium skin tone","group":1,"hexcode":"1F64F-1F3FD","order":344,"shortcodes":["pray_tone3"],"unicode":"🙏🏽"},{"annotation":"folded hands: medium-dark skin tone","group":1,"hexcode":"1F64F-1F3FE","order":345,"shortcodes":["pray_tone4"],"unicode":"🙏🏾"},{"annotation":"folded hands: dark skin tone","group":1,"hexcode":"1F64F-1F3FF","order":346,"shortcodes":["pray_tone5"],"unicode":"🙏🏿"}]},{"annotation":"writing hand","group":1,"hexcode":"270D","order":348,"shortcodes":["writing_hand"],"tags":["hand","write"],"unicode":"✍️","skins":[{"annotation":"writing hand: light skin tone","group":1,"hexcode":"270D-1F3FB","order":349,"shortcodes":["writing_hand_tone1"],"unicode":"✍🏻"},{"annotation":"writing hand: medium-light skin tone","group":1,"hexcode":"270D-1F3FC","order":350,"shortcodes":["writing_hand_tone2"],"unicode":"✍🏼"},{"annotation":"writing hand: medium skin tone","group":1,"hexcode":"270D-1F3FD","order":351,"shortcodes":["writing_hand_tone3"],"unicode":"✍🏽"},{"annotation":"writing hand: medium-dark skin tone","group":1,"hexcode":"270D-1F3FE","order":352,"shortcodes":["writing_hand_tone4"],"unicode":"✍🏾"},{"annotation":"writing hand: dark skin tone","group":1,"hexcode":"270D-1F3FF","order":353,"shortcodes":["writing_hand_tone5"],"unicode":"✍🏿"}]},{"annotation":"nail polish","group":1,"hexcode":"1F485","order":354,"shortcodes":["nail_care"],"tags":["care","cosmetics","manicure","nail","polish"],"unicode":"💅","skins":[{"annotation":"nail polish: light skin tone","group":1,"hexcode":"1F485-1F3FB","order":355,"shortcodes":["nail_care_tone1"],"unicode":"💅🏻"},{"annotation":"nail polish: medium-light skin tone","group":1,"hexcode":"1F485-1F3FC","order":356,"shortcodes":["nail_care_tone2"],"unicode":"💅🏼"},{"annotation":"nail polish: medium skin tone","group":1,"hexcode":"1F485-1F3FD","order":357,"shortcodes":["nail_care_tone3"],"unicode":"💅🏽"},{"annotation":"nail polish: medium-dark skin tone","group":1,"hexcode":"1F485-1F3FE","order":358,"shortcodes":["nail_care_tone4"],"unicode":"💅🏾"},{"annotation":"nail polish: dark skin tone","group":1,"hexcode":"1F485-1F3FF","order":359,"shortcodes":["nail_care_tone5"],"unicode":"💅🏿"}]},{"annotation":"selfie","group":1,"hexcode":"1F933","order":360,"shortcodes":["selfie"],"tags":["camera","phone"],"unicode":"🤳","skins":[{"annotation":"selfie: light skin tone","group":1,"hexcode":"1F933-1F3FB","order":361,"shortcodes":["selfie_tone1"],"unicode":"🤳🏻"},{"annotation":"selfie: medium-light skin tone","group":1,"hexcode":"1F933-1F3FC","order":362,"shortcodes":["selfie_tone2"],"unicode":"🤳🏼"},{"annotation":"selfie: medium skin tone","group":1,"hexcode":"1F933-1F3FD","order":363,"shortcodes":["selfie_tone3"],"unicode":"🤳🏽"},{"annotation":"selfie: medium-dark skin tone","group":1,"hexcode":"1F933-1F3FE","order":364,"shortcodes":["selfie_tone4"],"unicode":"🤳🏾"},{"annotation":"selfie: dark skin tone","group":1,"hexcode":"1F933-1F3FF","order":365,"shortcodes":["selfie_tone5"],"unicode":"🤳🏿"}]},{"annotation":"flexed biceps","group":1,"hexcode":"1F4AA","order":366,"shortcodes":["muscle","right_bicep"],"tags":["biceps","comic","flex","muscle"],"unicode":"💪","skins":[{"annotation":"flexed biceps: light skin tone","group":1,"hexcode":"1F4AA-1F3FB","order":367,"shortcodes":["muscle_tone1","right_bicep_tone1"],"unicode":"💪🏻"},{"annotation":"flexed biceps: medium-light skin tone","group":1,"hexcode":"1F4AA-1F3FC","order":368,"shortcodes":["muscle_tone2","right_bicep_tone2"],"unicode":"💪🏼"},{"annotation":"flexed biceps: medium skin tone","group":1,"hexcode":"1F4AA-1F3FD","order":369,"shortcodes":["muscle_tone3","right_bicep_tone3"],"unicode":"💪🏽"},{"annotation":"flexed biceps: medium-dark skin tone","group":1,"hexcode":"1F4AA-1F3FE","order":370,"shortcodes":["muscle_tone4","right_bicep_tone4"],"unicode":"💪🏾"},{"annotation":"flexed biceps: dark skin tone","group":1,"hexcode":"1F4AA-1F3FF","order":371,"shortcodes":["muscle_tone5","right_bicep_tone5"],"unicode":"💪🏿"}]},{"annotation":"mechanical arm","group":1,"hexcode":"1F9BE","order":372,"shortcodes":["mech_arm"],"tags":["accessibility","prosthetic"],"unicode":"🦾"},{"annotation":"mechanical leg","group":1,"hexcode":"1F9BF","order":373,"shortcodes":["mech_leg"],"tags":["accessibility","prosthetic"],"unicode":"🦿"},{"annotation":"leg","group":1,"hexcode":"1F9B5","order":374,"shortcodes":["leg"],"tags":["kick","limb"],"unicode":"🦵","skins":[{"annotation":"leg: light skin tone","group":1,"hexcode":"1F9B5-1F3FB","order":375,"shortcodes":["leg_tone1"],"unicode":"🦵🏻"},{"annotation":"leg: medium-light skin tone","group":1,"hexcode":"1F9B5-1F3FC","order":376,"shortcodes":["leg_tone2"],"unicode":"🦵🏼"},{"annotation":"leg: medium skin tone","group":1,"hexcode":"1F9B5-1F3FD","order":377,"shortcodes":["leg_tone3"],"unicode":"🦵🏽"},{"annotation":"leg: medium-dark skin tone","group":1,"hexcode":"1F9B5-1F3FE","order":378,"shortcodes":["leg_tone4"],"unicode":"🦵🏾"},{"annotation":"leg: dark skin tone","group":1,"hexcode":"1F9B5-1F3FF","order":379,"shortcodes":["leg_tone5"],"unicode":"🦵🏿"}]},{"annotation":"foot","group":1,"hexcode":"1F9B6","order":380,"shortcodes":["foot"],"tags":["kick","stomp"],"unicode":"🦶","skins":[{"annotation":"foot: light skin tone","group":1,"hexcode":"1F9B6-1F3FB","order":381,"shortcodes":["foot_tone1"],"unicode":"🦶🏻"},{"annotation":"foot: medium-light skin tone","group":1,"hexcode":"1F9B6-1F3FC","order":382,"shortcodes":["foot_tone2"],"unicode":"🦶🏼"},{"annotation":"foot: medium skin tone","group":1,"hexcode":"1F9B6-1F3FD","order":383,"shortcodes":["foot_tone3"],"unicode":"🦶🏽"},{"annotation":"foot: medium-dark skin tone","group":1,"hexcode":"1F9B6-1F3FE","order":384,"shortcodes":["foot_tone4"],"unicode":"🦶🏾"},{"annotation":"foot: dark skin tone","group":1,"hexcode":"1F9B6-1F3FF","order":385,"shortcodes":["foot_tone5"],"unicode":"🦶🏿"}]},{"annotation":"ear","group":1,"hexcode":"1F442","order":386,"shortcodes":["ear"],"tags":["body"],"unicode":"👂️","skins":[{"annotation":"ear: light skin tone","group":1,"hexcode":"1F442-1F3FB","order":387,"shortcodes":["ear_tone1"],"unicode":"👂🏻"},{"annotation":"ear: medium-light skin tone","group":1,"hexcode":"1F442-1F3FC","order":388,"shortcodes":["ear_tone2"],"unicode":"👂🏼"},{"annotation":"ear: medium skin tone","group":1,"hexcode":"1F442-1F3FD","order":389,"shortcodes":["ear_tone3"],"unicode":"👂🏽"},{"annotation":"ear: medium-dark skin tone","group":1,"hexcode":"1F442-1F3FE","order":390,"shortcodes":["ear_tone4"],"unicode":"👂🏾"},{"annotation":"ear: dark skin tone","group":1,"hexcode":"1F442-1F3FF","order":391,"shortcodes":["ear_tone5"],"unicode":"👂🏿"}]},{"annotation":"ear with hearing aid","group":1,"hexcode":"1F9BB","order":392,"shortcodes":["hearing_aid"],"tags":["accessibility","hard of hearing"],"unicode":"🦻","skins":[{"annotation":"ear with hearing aid: light skin tone","group":1,"hexcode":"1F9BB-1F3FB","order":393,"shortcodes":["hearing_aid_tone1"],"unicode":"🦻🏻"},{"annotation":"ear with hearing aid: medium-light skin tone","group":1,"hexcode":"1F9BB-1F3FC","order":394,"shortcodes":["hearing_aid_tone2"],"unicode":"🦻🏼"},{"annotation":"ear with hearing aid: medium skin tone","group":1,"hexcode":"1F9BB-1F3FD","order":395,"shortcodes":["hearing_aid_tone3"],"unicode":"🦻🏽"},{"annotation":"ear with hearing aid: medium-dark skin tone","group":1,"hexcode":"1F9BB-1F3FE","order":396,"shortcodes":["hearing_aid_tone4"],"unicode":"🦻🏾"},{"annotation":"ear with hearing aid: dark skin tone","group":1,"hexcode":"1F9BB-1F3FF","order":397,"shortcodes":["hearing_aid_tone5"],"unicode":"🦻🏿"}]},{"annotation":"nose","group":1,"hexcode":"1F443","order":398,"shortcodes":["nose"],"tags":["body"],"unicode":"👃","skins":[{"annotation":"nose: light skin tone","group":1,"hexcode":"1F443-1F3FB","order":399,"shortcodes":["nose_tone1"],"unicode":"👃🏻"},{"annotation":"nose: medium-light skin tone","group":1,"hexcode":"1F443-1F3FC","order":400,"shortcodes":["nose_tone2"],"unicode":"👃🏼"},{"annotation":"nose: medium skin tone","group":1,"hexcode":"1F443-1F3FD","order":401,"shortcodes":["nose_tone3"],"unicode":"👃🏽"},{"annotation":"nose: medium-dark skin tone","group":1,"hexcode":"1F443-1F3FE","order":402,"shortcodes":["nose_tone4"],"unicode":"👃🏾"},{"annotation":"nose: dark skin tone","group":1,"hexcode":"1F443-1F3FF","order":403,"shortcodes":["nose_tone5"],"unicode":"👃🏿"}]},{"annotation":"brain","group":1,"hexcode":"1F9E0","order":404,"shortcodes":["brain"],"tags":["intelligent"],"unicode":"🧠"},{"annotation":"anatomical heart","group":1,"hexcode":"1FAC0","order":405,"shortcodes":["anatomical_heart"],"tags":["anatomical","cardiology","heart","organ","pulse"],"unicode":"🫀"},{"annotation":"lungs","group":1,"hexcode":"1FAC1","order":406,"shortcodes":["lungs"],"tags":["breath","exhalation","inhalation","organ","respiration"],"unicode":"🫁"},{"annotation":"tooth","group":1,"hexcode":"1F9B7","order":407,"shortcodes":["tooth"],"tags":["dentist"],"unicode":"🦷"},{"annotation":"bone","group":1,"hexcode":"1F9B4","order":408,"shortcodes":["bone"],"tags":["skeleton"],"unicode":"🦴"},{"annotation":"eyes","group":1,"hexcode":"1F440","order":409,"shortcodes":["eyes"],"tags":["eye","face"],"unicode":"👀"},{"annotation":"eye","group":1,"hexcode":"1F441","order":411,"shortcodes":["eye"],"tags":["body"],"unicode":"👁️"},{"annotation":"tongue","group":1,"hexcode":"1F445","order":412,"shortcodes":["tongue"],"tags":["body"],"unicode":"👅"},{"annotation":"mouth","group":1,"hexcode":"1F444","order":413,"shortcodes":["lips"],"tags":["lips"],"unicode":"👄"},{"annotation":"baby","group":1,"hexcode":"1F476","order":414,"shortcodes":["baby"],"tags":["young"],"unicode":"👶","skins":[{"annotation":"baby: light skin tone","group":1,"hexcode":"1F476-1F3FB","order":415,"shortcodes":["baby_tone1"],"unicode":"👶🏻"},{"annotation":"baby: medium-light skin tone","group":1,"hexcode":"1F476-1F3FC","order":416,"shortcodes":["baby_tone2"],"unicode":"👶🏼"},{"annotation":"baby: medium skin tone","group":1,"hexcode":"1F476-1F3FD","order":417,"shortcodes":["baby_tone3"],"unicode":"👶🏽"},{"annotation":"baby: medium-dark skin tone","group":1,"hexcode":"1F476-1F3FE","order":418,"shortcodes":["baby_tone4"],"unicode":"👶🏾"},{"annotation":"baby: dark skin tone","group":1,"hexcode":"1F476-1F3FF","order":419,"shortcodes":["baby_tone5"],"unicode":"👶🏿"}]},{"annotation":"child","group":1,"hexcode":"1F9D2","order":420,"shortcodes":["child"],"tags":["gender-neutral","unspecified gender","young"],"unicode":"🧒","skins":[{"annotation":"child: light skin tone","group":1,"hexcode":"1F9D2-1F3FB","order":421,"shortcodes":["child_tone1"],"unicode":"🧒🏻"},{"annotation":"child: medium-light skin tone","group":1,"hexcode":"1F9D2-1F3FC","order":422,"shortcodes":["child_tone2"],"unicode":"🧒🏼"},{"annotation":"child: medium skin tone","group":1,"hexcode":"1F9D2-1F3FD","order":423,"shortcodes":["child_tone3"],"unicode":"🧒🏽"},{"annotation":"child: medium-dark skin tone","group":1,"hexcode":"1F9D2-1F3FE","order":424,"shortcodes":["child_tone4"],"unicode":"🧒🏾"},{"annotation":"child: dark skin tone","group":1,"hexcode":"1F9D2-1F3FF","order":425,"shortcodes":["child_tone5"],"unicode":"🧒🏿"}]},{"annotation":"boy","group":1,"hexcode":"1F466","order":426,"shortcodes":["boy"],"tags":["young"],"unicode":"👦","skins":[{"annotation":"boy: light skin tone","group":1,"hexcode":"1F466-1F3FB","order":427,"shortcodes":["boy_tone1"],"unicode":"👦🏻"},{"annotation":"boy: medium-light skin tone","group":1,"hexcode":"1F466-1F3FC","order":428,"shortcodes":["boy_tone2"],"unicode":"👦🏼"},{"annotation":"boy: medium skin tone","group":1,"hexcode":"1F466-1F3FD","order":429,"shortcodes":["boy_tone3"],"unicode":"👦🏽"},{"annotation":"boy: medium-dark skin tone","group":1,"hexcode":"1F466-1F3FE","order":430,"shortcodes":["boy_tone4"],"unicode":"👦🏾"},{"annotation":"boy: dark skin tone","group":1,"hexcode":"1F466-1F3FF","order":431,"shortcodes":["boy_tone5"],"unicode":"👦🏿"}]},{"annotation":"girl","group":1,"hexcode":"1F467","order":432,"shortcodes":["girl"],"tags":["virgo","young","zodiac"],"unicode":"👧","skins":[{"annotation":"girl: light skin tone","group":1,"hexcode":"1F467-1F3FB","order":433,"shortcodes":["girl_tone1"],"unicode":"👧🏻"},{"annotation":"girl: medium-light skin tone","group":1,"hexcode":"1F467-1F3FC","order":434,"shortcodes":["girl_tone2"],"unicode":"👧🏼"},{"annotation":"girl: medium skin tone","group":1,"hexcode":"1F467-1F3FD","order":435,"shortcodes":["girl_tone3"],"unicode":"👧🏽"},{"annotation":"girl: medium-dark skin tone","group":1,"hexcode":"1F467-1F3FE","order":436,"shortcodes":["girl_tone4"],"unicode":"👧🏾"},{"annotation":"girl: dark skin tone","group":1,"hexcode":"1F467-1F3FF","order":437,"shortcodes":["girl_tone5"],"unicode":"👧🏿"}]},{"annotation":"person","group":1,"hexcode":"1F9D1","order":438,"shortcodes":["adult"],"tags":["adult","gender-neutral","unspecified gender"],"unicode":"🧑","skins":[{"annotation":"person: light skin tone","group":1,"hexcode":"1F9D1-1F3FB","order":439,"shortcodes":["adult_tone1"],"unicode":"🧑🏻"},{"annotation":"person: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC","order":440,"shortcodes":["adult_tone2"],"unicode":"🧑🏼"},{"annotation":"person: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD","order":441,"shortcodes":["adult_tone3"],"unicode":"🧑🏽"},{"annotation":"person: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE","order":442,"shortcodes":["adult_tone4"],"unicode":"🧑🏾"},{"annotation":"person: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF","order":443,"shortcodes":["adult_tone5"],"unicode":"🧑🏿"}]},{"annotation":"person: blond hair","group":1,"hexcode":"1F471","order":444,"shortcodes":["blond_person"],"tags":["blond","blond-haired person","hair"],"unicode":"👱","skins":[{"annotation":"person: light skin tone, blond hair","group":1,"hexcode":"1F471-1F3FB","order":445,"shortcodes":["blond_person_tone1"],"unicode":"👱🏻"},{"annotation":"person: medium-light skin tone, blond hair","group":1,"hexcode":"1F471-1F3FC","order":446,"shortcodes":["blond_person_tone2"],"unicode":"👱🏼"},{"annotation":"person: medium skin tone, blond hair","group":1,"hexcode":"1F471-1F3FD","order":447,"shortcodes":["blond_person_tone3"],"unicode":"👱🏽"},{"annotation":"person: medium-dark skin tone, blond hair","group":1,"hexcode":"1F471-1F3FE","order":448,"shortcodes":["blond_person_tone4"],"unicode":"👱🏾"},{"annotation":"person: dark skin tone, blond hair","group":1,"hexcode":"1F471-1F3FF","order":449,"shortcodes":["blond_person_tone5"],"unicode":"👱🏿"}]},{"annotation":"man","group":1,"hexcode":"1F468","order":450,"shortcodes":["man"],"tags":["adult"],"unicode":"👨","skins":[{"annotation":"man: light skin tone","group":1,"hexcode":"1F468-1F3FB","order":451,"shortcodes":["man_tone1"],"unicode":"👨🏻"},{"annotation":"man: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC","order":452,"shortcodes":["man_tone2"],"unicode":"👨🏼"},{"annotation":"man: medium skin tone","group":1,"hexcode":"1F468-1F3FD","order":453,"shortcodes":["man_tone3"],"unicode":"👨🏽"},{"annotation":"man: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE","order":454,"shortcodes":["man_tone4"],"unicode":"👨🏾"},{"annotation":"man: dark skin tone","group":1,"hexcode":"1F468-1F3FF","order":455,"shortcodes":["man_tone5"],"unicode":"👨🏿"}]},{"annotation":"man: beard","group":1,"hexcode":"1F9D4","order":456,"shortcodes":["bearded_person"],"tags":["beard","man","person"],"unicode":"🧔","skins":[{"annotation":"man: light skin tone, beard","group":1,"hexcode":"1F9D4-1F3FB","order":457,"shortcodes":["bearded_person_tone1"],"unicode":"🧔🏻"},{"annotation":"man: medium-light skin tone, beard","group":1,"hexcode":"1F9D4-1F3FC","order":458,"shortcodes":["bearded_person_tone2"],"unicode":"🧔🏼"},{"annotation":"man: medium skin tone, beard","group":1,"hexcode":"1F9D4-1F3FD","order":459,"shortcodes":["bearded_person_tone3"],"unicode":"🧔🏽"},{"annotation":"man: medium-dark skin tone, beard","group":1,"hexcode":"1F9D4-1F3FE","order":460,"shortcodes":["bearded_person_tone4"],"unicode":"🧔🏾"},{"annotation":"man: dark skin tone, beard","group":1,"hexcode":"1F9D4-1F3FF","order":461,"shortcodes":["bearded_person_tone5"],"unicode":"🧔🏿"}]},{"annotation":"man: red hair","group":1,"hexcode":"1F468-200D-1F9B0","order":462,"shortcodes":["red_haired_man"],"tags":["adult","man","red hair"],"unicode":"👨🦰","skins":[{"annotation":"man: light skin tone, red hair","group":1,"hexcode":"1F468-1F3FB-200D-1F9B0","order":463,"shortcodes":["red_haired_man_tone1"],"unicode":"👨🏻🦰"},{"annotation":"man: medium-light skin tone, red hair","group":1,"hexcode":"1F468-1F3FC-200D-1F9B0","order":464,"shortcodes":["red_haired_man_tone2"],"unicode":"👨🏼🦰"},{"annotation":"man: medium skin tone, red hair","group":1,"hexcode":"1F468-1F3FD-200D-1F9B0","order":465,"shortcodes":["red_haired_man_tone3"],"unicode":"👨🏽🦰"},{"annotation":"man: medium-dark skin tone, red hair","group":1,"hexcode":"1F468-1F3FE-200D-1F9B0","order":466,"shortcodes":["red_haired_man_tone4"],"unicode":"👨🏾🦰"},{"annotation":"man: dark skin tone, red hair","group":1,"hexcode":"1F468-1F3FF-200D-1F9B0","order":467,"shortcodes":["red_haired_man_tone5"],"unicode":"👨🏿🦰"}]},{"annotation":"man: curly hair","group":1,"hexcode":"1F468-200D-1F9B1","order":468,"shortcodes":["curly_haired_man"],"tags":["adult","curly hair","man"],"unicode":"👨🦱","skins":[{"annotation":"man: light skin tone, curly hair","group":1,"hexcode":"1F468-1F3FB-200D-1F9B1","order":469,"shortcodes":["curly_haired_man_tone1"],"unicode":"👨🏻🦱"},{"annotation":"man: medium-light skin tone, curly hair","group":1,"hexcode":"1F468-1F3FC-200D-1F9B1","order":470,"shortcodes":["curly_haired_man_tone2"],"unicode":"👨🏼🦱"},{"annotation":"man: medium skin tone, curly hair","group":1,"hexcode":"1F468-1F3FD-200D-1F9B1","order":471,"shortcodes":["curly_haired_man_tone3"],"unicode":"👨🏽🦱"},{"annotation":"man: medium-dark skin tone, curly hair","group":1,"hexcode":"1F468-1F3FE-200D-1F9B1","order":472,"shortcodes":["curly_haired_man_tone4"],"unicode":"👨🏾🦱"},{"annotation":"man: dark skin tone, curly hair","group":1,"hexcode":"1F468-1F3FF-200D-1F9B1","order":473,"shortcodes":["curly_haired_man_tone5"],"unicode":"👨🏿🦱"}]},{"annotation":"man: white hair","group":1,"hexcode":"1F468-200D-1F9B3","order":474,"shortcodes":["white_haired_man"],"tags":["adult","man","white hair"],"unicode":"👨🦳","skins":[{"annotation":"man: light skin tone, white hair","group":1,"hexcode":"1F468-1F3FB-200D-1F9B3","order":475,"shortcodes":["white_haired_man_tone1"],"unicode":"👨🏻🦳"},{"annotation":"man: medium-light skin tone, white hair","group":1,"hexcode":"1F468-1F3FC-200D-1F9B3","order":476,"shortcodes":["white_haired_man_tone2"],"unicode":"👨🏼🦳"},{"annotation":"man: medium skin tone, white hair","group":1,"hexcode":"1F468-1F3FD-200D-1F9B3","order":477,"shortcodes":["white_haired_man_tone3"],"unicode":"👨🏽🦳"},{"annotation":"man: medium-dark skin tone, white hair","group":1,"hexcode":"1F468-1F3FE-200D-1F9B3","order":478,"shortcodes":["white_haired_man_tone4"],"unicode":"👨🏾🦳"},{"annotation":"man: dark skin tone, white hair","group":1,"hexcode":"1F468-1F3FF-200D-1F9B3","order":479,"shortcodes":["white_haired_man_tone5"],"unicode":"👨🏿🦳"}]},{"annotation":"man: bald","group":1,"hexcode":"1F468-200D-1F9B2","order":480,"shortcodes":["bald_man"],"tags":["adult","bald","man"],"unicode":"👨🦲","skins":[{"annotation":"man: light skin tone, bald","group":1,"hexcode":"1F468-1F3FB-200D-1F9B2","order":481,"shortcodes":["bald_man_tone1"],"unicode":"👨🏻🦲"},{"annotation":"man: medium-light skin tone, bald","group":1,"hexcode":"1F468-1F3FC-200D-1F9B2","order":482,"shortcodes":["bald_man_tone2"],"unicode":"👨🏼🦲"},{"annotation":"man: medium skin tone, bald","group":1,"hexcode":"1F468-1F3FD-200D-1F9B2","order":483,"shortcodes":["bald_man_tone3"],"unicode":"👨🏽🦲"},{"annotation":"man: medium-dark skin tone, bald","group":1,"hexcode":"1F468-1F3FE-200D-1F9B2","order":484,"shortcodes":["bald_man_tone4"],"unicode":"👨🏾🦲"},{"annotation":"man: dark skin tone, bald","group":1,"hexcode":"1F468-1F3FF-200D-1F9B2","order":485,"shortcodes":["bald_man_tone5"],"unicode":"👨🏿🦲"}]},{"annotation":"woman","group":1,"hexcode":"1F469","order":486,"shortcodes":["woman"],"tags":["adult"],"unicode":"👩","skins":[{"annotation":"woman: light skin tone","group":1,"hexcode":"1F469-1F3FB","order":487,"shortcodes":["woman_tone1"],"unicode":"👩🏻"},{"annotation":"woman: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC","order":488,"shortcodes":["woman_tone2"],"unicode":"👩🏼"},{"annotation":"woman: medium skin tone","group":1,"hexcode":"1F469-1F3FD","order":489,"shortcodes":["woman_tone3"],"unicode":"👩🏽"},{"annotation":"woman: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE","order":490,"shortcodes":["woman_tone4"],"unicode":"👩🏾"},{"annotation":"woman: dark skin tone","group":1,"hexcode":"1F469-1F3FF","order":491,"shortcodes":["woman_tone5"],"unicode":"👩🏿"}]},{"annotation":"woman: red hair","group":1,"hexcode":"1F469-200D-1F9B0","order":492,"shortcodes":["red_haired_woman"],"tags":["adult","red hair","woman"],"unicode":"👩🦰","skins":[{"annotation":"woman: light skin tone, red hair","group":1,"hexcode":"1F469-1F3FB-200D-1F9B0","order":493,"shortcodes":["red_haired_woman_tone1"],"unicode":"👩🏻🦰"},{"annotation":"woman: medium-light skin tone, red hair","group":1,"hexcode":"1F469-1F3FC-200D-1F9B0","order":494,"shortcodes":["red_haired_woman_tone2"],"unicode":"👩🏼🦰"},{"annotation":"woman: medium skin tone, red hair","group":1,"hexcode":"1F469-1F3FD-200D-1F9B0","order":495,"shortcodes":["red_haired_woman_tone3"],"unicode":"👩🏽🦰"},{"annotation":"woman: medium-dark skin tone, red hair","group":1,"hexcode":"1F469-1F3FE-200D-1F9B0","order":496,"shortcodes":["red_haired_woman_tone4"],"unicode":"👩🏾🦰"},{"annotation":"woman: dark skin tone, red hair","group":1,"hexcode":"1F469-1F3FF-200D-1F9B0","order":497,"shortcodes":["red_haired_woman_tone5"],"unicode":"👩🏿🦰"}]},{"annotation":"person: red hair","group":1,"hexcode":"1F9D1-200D-1F9B0","order":498,"shortcodes":["red_haired_person"],"tags":["adult","gender-neutral","person","red hair","unspecified gender"],"unicode":"🧑🦰","skins":[{"annotation":"person: light skin tone, red hair","group":1,"hexcode":"1F9D1-1F3FB-200D-1F9B0","order":499,"shortcodes":["red_haired_person_tone1"],"unicode":"🧑🏻🦰"},{"annotation":"person: medium-light skin tone, red hair","group":1,"hexcode":"1F9D1-1F3FC-200D-1F9B0","order":500,"shortcodes":["red_haired_person_tone2"],"unicode":"🧑🏼🦰"},{"annotation":"person: medium skin tone, red hair","group":1,"hexcode":"1F9D1-1F3FD-200D-1F9B0","order":501,"shortcodes":["red_haired_person_tone3"],"unicode":"🧑🏽🦰"},{"annotation":"person: medium-dark skin tone, red hair","group":1,"hexcode":"1F9D1-1F3FE-200D-1F9B0","order":502,"shortcodes":["red_haired_person_tone4"],"unicode":"🧑🏾🦰"},{"annotation":"person: dark skin tone, red hair","group":1,"hexcode":"1F9D1-1F3FF-200D-1F9B0","order":503,"shortcodes":["red_haired_person_tone5"],"unicode":"🧑🏿🦰"}]},{"annotation":"woman: curly hair","group":1,"hexcode":"1F469-200D-1F9B1","order":504,"shortcodes":["curly_haired_woman"],"tags":["adult","curly hair","woman"],"unicode":"👩🦱","skins":[{"annotation":"woman: light skin tone, curly hair","group":1,"hexcode":"1F469-1F3FB-200D-1F9B1","order":505,"shortcodes":["curly_haired_woman_tone1"],"unicode":"👩🏻🦱"},{"annotation":"woman: medium-light skin tone, curly hair","group":1,"hexcode":"1F469-1F3FC-200D-1F9B1","order":506,"shortcodes":["curly_haired_woman_tone2"],"unicode":"👩🏼🦱"},{"annotation":"woman: medium skin tone, curly hair","group":1,"hexcode":"1F469-1F3FD-200D-1F9B1","order":507,"shortcodes":["curly_haired_woman_tone3"],"unicode":"👩🏽🦱"},{"annotation":"woman: medium-dark skin tone, curly hair","group":1,"hexcode":"1F469-1F3FE-200D-1F9B1","order":508,"shortcodes":["curly_haired_woman_tone4"],"unicode":"👩🏾🦱"},{"annotation":"woman: dark skin tone, curly hair","group":1,"hexcode":"1F469-1F3FF-200D-1F9B1","order":509,"shortcodes":["curly_haired_woman_tone5"],"unicode":"👩🏿🦱"}]},{"annotation":"person: curly hair","group":1,"hexcode":"1F9D1-200D-1F9B1","order":510,"shortcodes":["curly_haired_person"],"tags":["adult","curly hair","gender-neutral","person","unspecified gender"],"unicode":"🧑🦱","skins":[{"annotation":"person: light skin tone, curly hair","group":1,"hexcode":"1F9D1-1F3FB-200D-1F9B1","order":511,"shortcodes":["curly_haired_person_tone1"],"unicode":"🧑🏻🦱"},{"annotation":"person: medium-light skin tone, curly hair","group":1,"hexcode":"1F9D1-1F3FC-200D-1F9B1","order":512,"shortcodes":["curly_haired_person_tone2"],"unicode":"🧑🏼🦱"},{"annotation":"person: medium skin tone, curly hair","group":1,"hexcode":"1F9D1-1F3FD-200D-1F9B1","order":513,"shortcodes":["curly_haired_person_tone3"],"unicode":"🧑🏽🦱"},{"annotation":"person: medium-dark skin tone, curly hair","group":1,"hexcode":"1F9D1-1F3FE-200D-1F9B1","order":514,"shortcodes":["curly_haired_person_tone4"],"unicode":"🧑🏾🦱"},{"annotation":"person: dark skin tone, curly hair","group":1,"hexcode":"1F9D1-1F3FF-200D-1F9B1","order":515,"shortcodes":["curly_haired_person_tone5"],"unicode":"🧑🏿🦱"}]},{"annotation":"woman: white hair","group":1,"hexcode":"1F469-200D-1F9B3","order":516,"shortcodes":["white_haired_woman"],"tags":["adult","white hair","woman"],"unicode":"👩🦳","skins":[{"annotation":"woman: light skin tone, white hair","group":1,"hexcode":"1F469-1F3FB-200D-1F9B3","order":517,"shortcodes":["white_haired_woman_tone1"],"unicode":"👩🏻🦳"},{"annotation":"woman: medium-light skin tone, white hair","group":1,"hexcode":"1F469-1F3FC-200D-1F9B3","order":518,"shortcodes":["white_haired_woman_tone2"],"unicode":"👩🏼🦳"},{"annotation":"woman: medium skin tone, white hair","group":1,"hexcode":"1F469-1F3FD-200D-1F9B3","order":519,"shortcodes":["white_haired_woman_tone3"],"unicode":"👩🏽🦳"},{"annotation":"woman: medium-dark skin tone, white hair","group":1,"hexcode":"1F469-1F3FE-200D-1F9B3","order":520,"shortcodes":["white_haired_woman_tone4"],"unicode":"👩🏾🦳"},{"annotation":"woman: dark skin tone, white hair","group":1,"hexcode":"1F469-1F3FF-200D-1F9B3","order":521,"shortcodes":["white_haired_woman_tone5"],"unicode":"👩🏿🦳"}]},{"annotation":"person: white hair","group":1,"hexcode":"1F9D1-200D-1F9B3","order":522,"shortcodes":["white_haired_person"],"tags":["adult","gender-neutral","person","unspecified gender","white hair"],"unicode":"🧑🦳","skins":[{"annotation":"person: light skin tone, white hair","group":1,"hexcode":"1F9D1-1F3FB-200D-1F9B3","order":523,"shortcodes":["white_haired_person_tone1"],"unicode":"🧑🏻🦳"},{"annotation":"person: medium-light skin tone, white hair","group":1,"hexcode":"1F9D1-1F3FC-200D-1F9B3","order":524,"shortcodes":["white_haired_person_tone2"],"unicode":"🧑🏼🦳"},{"annotation":"person: medium skin tone, white hair","group":1,"hexcode":"1F9D1-1F3FD-200D-1F9B3","order":525,"shortcodes":["white_haired_person_tone3"],"unicode":"🧑🏽🦳"},{"annotation":"person: medium-dark skin tone, white hair","group":1,"hexcode":"1F9D1-1F3FE-200D-1F9B3","order":526,"shortcodes":["white_haired_person_tone4"],"unicode":"🧑🏾🦳"},{"annotation":"person: dark skin tone, white hair","group":1,"hexcode":"1F9D1-1F3FF-200D-1F9B3","order":527,"shortcodes":["white_haired_person_tone5"],"unicode":"🧑🏿🦳"}]},{"annotation":"woman: bald","group":1,"hexcode":"1F469-200D-1F9B2","order":528,"shortcodes":["bald_woman"],"tags":["adult","bald","woman"],"unicode":"👩🦲","skins":[{"annotation":"woman: light skin tone, bald","group":1,"hexcode":"1F469-1F3FB-200D-1F9B2","order":529,"shortcodes":["bald_woman_tone1"],"unicode":"👩🏻🦲"},{"annotation":"woman: medium-light skin tone, bald","group":1,"hexcode":"1F469-1F3FC-200D-1F9B2","order":530,"shortcodes":["bald_woman_tone2"],"unicode":"👩🏼🦲"},{"annotation":"woman: medium skin tone, bald","group":1,"hexcode":"1F469-1F3FD-200D-1F9B2","order":531,"shortcodes":["bald_woman_tone3"],"unicode":"👩🏽🦲"},{"annotation":"woman: medium-dark skin tone, bald","group":1,"hexcode":"1F469-1F3FE-200D-1F9B2","order":532,"shortcodes":["bald_woman_tone4"],"unicode":"👩🏾🦲"},{"annotation":"woman: dark skin tone, bald","group":1,"hexcode":"1F469-1F3FF-200D-1F9B2","order":533,"shortcodes":["bald_woman_tone5"],"unicode":"👩🏿🦲"}]},{"annotation":"person: bald","group":1,"hexcode":"1F9D1-200D-1F9B2","order":534,"shortcodes":["bald_person"],"tags":["adult","bald","gender-neutral","person","unspecified gender"],"unicode":"🧑🦲","skins":[{"annotation":"person: light skin tone, bald","group":1,"hexcode":"1F9D1-1F3FB-200D-1F9B2","order":535,"shortcodes":["bald_person_tone1"],"unicode":"🧑🏻🦲"},{"annotation":"person: medium-light skin tone, bald","group":1,"hexcode":"1F9D1-1F3FC-200D-1F9B2","order":536,"shortcodes":["bald_person_tone2"],"unicode":"🧑🏼🦲"},{"annotation":"person: medium skin tone, bald","group":1,"hexcode":"1F9D1-1F3FD-200D-1F9B2","order":537,"shortcodes":["bald_person_tone3"],"unicode":"🧑🏽🦲"},{"annotation":"person: medium-dark skin tone, bald","group":1,"hexcode":"1F9D1-1F3FE-200D-1F9B2","order":538,"shortcodes":["bald_person_tone4"],"unicode":"🧑🏾🦲"},{"annotation":"person: dark skin tone, bald","group":1,"hexcode":"1F9D1-1F3FF-200D-1F9B2","order":539,"shortcodes":["bald_person_tone5"],"unicode":"🧑🏿🦲"}]},{"annotation":"woman: blond hair","group":1,"hexcode":"1F471-200D-2640-FE0F","order":540,"shortcodes":["blond_woman"],"tags":["blond-haired woman","blonde","hair","woman"],"unicode":"👱♀️","skins":[{"annotation":"woman: light skin tone, blond hair","group":1,"hexcode":"1F471-1F3FB-200D-2640-FE0F","order":542,"shortcodes":["blond_woman_tone1"],"unicode":"👱🏻♀️"},{"annotation":"woman: medium-light skin tone, blond hair","group":1,"hexcode":"1F471-1F3FC-200D-2640-FE0F","order":544,"shortcodes":["blond_woman_tone2"],"unicode":"👱🏼♀️"},{"annotation":"woman: medium skin tone, blond hair","group":1,"hexcode":"1F471-1F3FD-200D-2640-FE0F","order":546,"shortcodes":["blond_woman_tone3"],"unicode":"👱🏽♀️"},{"annotation":"woman: medium-dark skin tone, blond hair","group":1,"hexcode":"1F471-1F3FE-200D-2640-FE0F","order":548,"shortcodes":["blond_woman_tone4"],"unicode":"👱🏾♀️"},{"annotation":"woman: dark skin tone, blond hair","group":1,"hexcode":"1F471-1F3FF-200D-2640-FE0F","order":550,"shortcodes":["blond_woman_tone5"],"unicode":"👱🏿♀️"}]},{"annotation":"man: blond hair","group":1,"hexcode":"1F471-200D-2642-FE0F","order":552,"shortcodes":["blond_man"],"tags":["blond","blond-haired man","hair","man"],"unicode":"👱♂️","skins":[{"annotation":"man: light skin tone, blond hair","group":1,"hexcode":"1F471-1F3FB-200D-2642-FE0F","order":554,"shortcodes":["blond_man_tone1"],"unicode":"👱🏻♂️"},{"annotation":"man: medium-light skin tone, blond hair","group":1,"hexcode":"1F471-1F3FC-200D-2642-FE0F","order":556,"shortcodes":["blond_man_tone2"],"unicode":"👱🏼♂️"},{"annotation":"man: medium skin tone, blond hair","group":1,"hexcode":"1F471-1F3FD-200D-2642-FE0F","order":558,"shortcodes":["blond_man_tone3"],"unicode":"👱🏽♂️"},{"annotation":"man: medium-dark skin tone, blond hair","group":1,"hexcode":"1F471-1F3FE-200D-2642-FE0F","order":560,"shortcodes":["blond_man_tone4"],"unicode":"👱🏾♂️"},{"annotation":"man: dark skin tone, blond hair","group":1,"hexcode":"1F471-1F3FF-200D-2642-FE0F","order":562,"shortcodes":["blond_man_tone5"],"unicode":"👱🏿♂️"}]},{"annotation":"older person","group":1,"hexcode":"1F9D3","order":564,"shortcodes":["older_adult"],"tags":["adult","gender-neutral","old","unspecified gender"],"unicode":"🧓","skins":[{"annotation":"older person: light skin tone","group":1,"hexcode":"1F9D3-1F3FB","order":565,"shortcodes":["older_adult_tone1"],"unicode":"🧓🏻"},{"annotation":"older person: medium-light skin tone","group":1,"hexcode":"1F9D3-1F3FC","order":566,"shortcodes":["older_adult_tone2"],"unicode":"🧓🏼"},{"annotation":"older person: medium skin tone","group":1,"hexcode":"1F9D3-1F3FD","order":567,"shortcodes":["older_adult_tone3"],"unicode":"🧓🏽"},{"annotation":"older person: medium-dark skin tone","group":1,"hexcode":"1F9D3-1F3FE","order":568,"shortcodes":["older_adult_tone4"],"unicode":"🧓🏾"},{"annotation":"older person: dark skin tone","group":1,"hexcode":"1F9D3-1F3FF","order":569,"shortcodes":["older_adult_tone5"],"unicode":"🧓🏿"}]},{"annotation":"old man","group":1,"hexcode":"1F474","order":570,"shortcodes":["older_man"],"tags":["adult","man","old"],"unicode":"👴","skins":[{"annotation":"old man: light skin tone","group":1,"hexcode":"1F474-1F3FB","order":571,"shortcodes":["older_man_tone1"],"unicode":"👴🏻"},{"annotation":"old man: medium-light skin tone","group":1,"hexcode":"1F474-1F3FC","order":572,"shortcodes":["older_man_tone2"],"unicode":"👴🏼"},{"annotation":"old man: medium skin tone","group":1,"hexcode":"1F474-1F3FD","order":573,"shortcodes":["older_man_tone3"],"unicode":"👴🏽"},{"annotation":"old man: medium-dark skin tone","group":1,"hexcode":"1F474-1F3FE","order":574,"shortcodes":["older_man_tone4"],"unicode":"👴🏾"},{"annotation":"old man: dark skin tone","group":1,"hexcode":"1F474-1F3FF","order":575,"shortcodes":["older_man_tone5"],"unicode":"👴🏿"}]},{"annotation":"old woman","group":1,"hexcode":"1F475","order":576,"shortcodes":["older_woman"],"tags":["adult","old","woman"],"unicode":"👵","skins":[{"annotation":"old woman: light skin tone","group":1,"hexcode":"1F475-1F3FB","order":577,"shortcodes":["older_woman_tone1"],"unicode":"👵🏻"},{"annotation":"old woman: medium-light skin tone","group":1,"hexcode":"1F475-1F3FC","order":578,"shortcodes":["older_woman_tone2"],"unicode":"👵🏼"},{"annotation":"old woman: medium skin tone","group":1,"hexcode":"1F475-1F3FD","order":579,"shortcodes":["older_woman_tone3"],"unicode":"👵🏽"},{"annotation":"old woman: medium-dark skin tone","group":1,"hexcode":"1F475-1F3FE","order":580,"shortcodes":["older_woman_tone4"],"unicode":"👵🏾"},{"annotation":"old woman: dark skin tone","group":1,"hexcode":"1F475-1F3FF","order":581,"shortcodes":["older_woman_tone5"],"unicode":"👵🏿"}]},{"annotation":"person frowning","group":1,"hexcode":"1F64D","order":582,"shortcodes":["person_frowning"],"tags":["frown","gesture"],"unicode":"🙍","skins":[{"annotation":"person frowning: light skin tone","group":1,"hexcode":"1F64D-1F3FB","order":583,"shortcodes":["person_frowning_tone1"],"unicode":"🙍🏻"},{"annotation":"person frowning: medium-light skin tone","group":1,"hexcode":"1F64D-1F3FC","order":584,"shortcodes":["person_frowning_tone2"],"unicode":"🙍🏼"},{"annotation":"person frowning: medium skin tone","group":1,"hexcode":"1F64D-1F3FD","order":585,"shortcodes":["person_frowning_tone3"],"unicode":"🙍🏽"},{"annotation":"person frowning: medium-dark skin tone","group":1,"hexcode":"1F64D-1F3FE","order":586,"shortcodes":["person_frowning_tone4"],"unicode":"🙍🏾"},{"annotation":"person frowning: dark skin tone","group":1,"hexcode":"1F64D-1F3FF","order":587,"shortcodes":["person_frowning_tone5"],"unicode":"🙍🏿"}]},{"annotation":"man frowning","group":1,"hexcode":"1F64D-200D-2642-FE0F","order":588,"shortcodes":["man_frowning"],"tags":["frowning","gesture","man"],"unicode":"🙍♂️","skins":[{"annotation":"man frowning: light skin tone","group":1,"hexcode":"1F64D-1F3FB-200D-2642-FE0F","order":590,"shortcodes":["man_frowning_tone1"],"unicode":"🙍🏻♂️"},{"annotation":"man frowning: medium-light skin tone","group":1,"hexcode":"1F64D-1F3FC-200D-2642-FE0F","order":592,"shortcodes":["man_frowning_tone2"],"unicode":"🙍🏼♂️"},{"annotation":"man frowning: medium skin tone","group":1,"hexcode":"1F64D-1F3FD-200D-2642-FE0F","order":594,"shortcodes":["man_frowning_tone3"],"unicode":"🙍🏽♂️"},{"annotation":"man frowning: medium-dark skin tone","group":1,"hexcode":"1F64D-1F3FE-200D-2642-FE0F","order":596,"shortcodes":["man_frowning_tone4"],"unicode":"🙍🏾♂️"},{"annotation":"man frowning: dark skin tone","group":1,"hexcode":"1F64D-1F3FF-200D-2642-FE0F","order":598,"shortcodes":["man_frowning_tone5"],"unicode":"🙍🏿♂️"}]},{"annotation":"woman frowning","group":1,"hexcode":"1F64D-200D-2640-FE0F","order":600,"shortcodes":["woman_frowning"],"tags":["frowning","gesture","woman"],"unicode":"🙍♀️","skins":[{"annotation":"woman frowning: light skin tone","group":1,"hexcode":"1F64D-1F3FB-200D-2640-FE0F","order":602,"shortcodes":["woman_frowning_tone1"],"unicode":"🙍🏻♀️"},{"annotation":"woman frowning: medium-light skin tone","group":1,"hexcode":"1F64D-1F3FC-200D-2640-FE0F","order":604,"shortcodes":["woman_frowning_tone2"],"unicode":"🙍🏼♀️"},{"annotation":"woman frowning: medium skin tone","group":1,"hexcode":"1F64D-1F3FD-200D-2640-FE0F","order":606,"shortcodes":["woman_frowning_tone3"],"unicode":"🙍🏽♀️"},{"annotation":"woman frowning: medium-dark skin tone","group":1,"hexcode":"1F64D-1F3FE-200D-2640-FE0F","order":608,"shortcodes":["woman_frowning_tone4"],"unicode":"🙍🏾♀️"},{"annotation":"woman frowning: dark skin tone","group":1,"hexcode":"1F64D-1F3FF-200D-2640-FE0F","order":610,"shortcodes":["woman_frowning_tone5"],"unicode":"🙍🏿♀️"}]},{"annotation":"person pouting","group":1,"hexcode":"1F64E","order":612,"shortcodes":["person_pouting"],"tags":["gesture","pouting"],"unicode":"🙎","skins":[{"annotation":"person pouting: light skin tone","group":1,"hexcode":"1F64E-1F3FB","order":613,"shortcodes":["person_pouting_tone1"],"unicode":"🙎🏻"},{"annotation":"person pouting: medium-light skin tone","group":1,"hexcode":"1F64E-1F3FC","order":614,"shortcodes":["person_pouting_tone2"],"unicode":"🙎🏼"},{"annotation":"person pouting: medium skin tone","group":1,"hexcode":"1F64E-1F3FD","order":615,"shortcodes":["person_pouting_tone3"],"unicode":"🙎🏽"},{"annotation":"person pouting: medium-dark skin tone","group":1,"hexcode":"1F64E-1F3FE","order":616,"shortcodes":["person_pouting_tone4"],"unicode":"🙎🏾"},{"annotation":"person pouting: dark skin tone","group":1,"hexcode":"1F64E-1F3FF","order":617,"shortcodes":["person_pouting_tone5"],"unicode":"🙎🏿"}]},{"annotation":"man pouting","group":1,"hexcode":"1F64E-200D-2642-FE0F","order":618,"shortcodes":["man_pouting"],"tags":["gesture","man","pouting"],"unicode":"🙎♂️","skins":[{"annotation":"man pouting: light skin tone","group":1,"hexcode":"1F64E-1F3FB-200D-2642-FE0F","order":620,"shortcodes":["man_pouting_tone1"],"unicode":"🙎🏻♂️"},{"annotation":"man pouting: medium-light skin tone","group":1,"hexcode":"1F64E-1F3FC-200D-2642-FE0F","order":622,"shortcodes":["man_pouting_tone2"],"unicode":"🙎🏼♂️"},{"annotation":"man pouting: medium skin tone","group":1,"hexcode":"1F64E-1F3FD-200D-2642-FE0F","order":624,"shortcodes":["man_pouting_tone3"],"unicode":"🙎🏽♂️"},{"annotation":"man pouting: medium-dark skin tone","group":1,"hexcode":"1F64E-1F3FE-200D-2642-FE0F","order":626,"shortcodes":["man_pouting_tone4"],"unicode":"🙎🏾♂️"},{"annotation":"man pouting: dark skin tone","group":1,"hexcode":"1F64E-1F3FF-200D-2642-FE0F","order":628,"shortcodes":["man_pouting_tone5"],"unicode":"🙎🏿♂️"}]},{"annotation":"woman pouting","group":1,"hexcode":"1F64E-200D-2640-FE0F","order":630,"shortcodes":["woman_pouting"],"tags":["gesture","pouting","woman"],"unicode":"🙎♀️","skins":[{"annotation":"woman pouting: light skin tone","group":1,"hexcode":"1F64E-1F3FB-200D-2640-FE0F","order":632,"shortcodes":["woman_pouting_tone1"],"unicode":"🙎🏻♀️"},{"annotation":"woman pouting: medium-light skin tone","group":1,"hexcode":"1F64E-1F3FC-200D-2640-FE0F","order":634,"shortcodes":["woman_pouting_tone2"],"unicode":"🙎🏼♀️"},{"annotation":"woman pouting: medium skin tone","group":1,"hexcode":"1F64E-1F3FD-200D-2640-FE0F","order":636,"shortcodes":["woman_pouting_tone3"],"unicode":"🙎🏽♀️"},{"annotation":"woman pouting: medium-dark skin tone","group":1,"hexcode":"1F64E-1F3FE-200D-2640-FE0F","order":638,"shortcodes":["woman_pouting_tone4"],"unicode":"🙎🏾♀️"},{"annotation":"woman pouting: dark skin tone","group":1,"hexcode":"1F64E-1F3FF-200D-2640-FE0F","order":640,"shortcodes":["woman_pouting_tone5"],"unicode":"🙎🏿♀️"}]},{"annotation":"person gesturing NO","group":1,"hexcode":"1F645","order":642,"shortcodes":["person_gesturing_no"],"tags":["forbidden","gesture","hand","person gesturing no","prohibited"],"unicode":"🙅","skins":[{"annotation":"person gesturing NO: light skin tone","group":1,"hexcode":"1F645-1F3FB","order":643,"shortcodes":["person_gesturing_no_tone1"],"unicode":"🙅🏻"},{"annotation":"person gesturing NO: medium-light skin tone","group":1,"hexcode":"1F645-1F3FC","order":644,"shortcodes":["person_gesturing_no_tone2"],"unicode":"🙅🏼"},{"annotation":"person gesturing NO: medium skin tone","group":1,"hexcode":"1F645-1F3FD","order":645,"shortcodes":["person_gesturing_no_tone3"],"unicode":"🙅🏽"},{"annotation":"person gesturing NO: medium-dark skin tone","group":1,"hexcode":"1F645-1F3FE","order":646,"shortcodes":["person_gesturing_no_tone4"],"unicode":"🙅🏾"},{"annotation":"person gesturing NO: dark skin tone","group":1,"hexcode":"1F645-1F3FF","order":647,"shortcodes":["person_gesturing_no_tone5"],"unicode":"🙅🏿"}]},{"annotation":"man gesturing NO","group":1,"hexcode":"1F645-200D-2642-FE0F","order":648,"shortcodes":["man_gesturing_no"],"tags":["forbidden","gesture","hand","man","man gesturing no","prohibited"],"unicode":"🙅♂️","skins":[{"annotation":"man gesturing NO: light skin tone","group":1,"hexcode":"1F645-1F3FB-200D-2642-FE0F","order":650,"shortcodes":["man_gesturing_no_tone1"],"unicode":"🙅🏻♂️"},{"annotation":"man gesturing NO: medium-light skin tone","group":1,"hexcode":"1F645-1F3FC-200D-2642-FE0F","order":652,"shortcodes":["man_gesturing_no_tone2"],"unicode":"🙅🏼♂️"},{"annotation":"man gesturing NO: medium skin tone","group":1,"hexcode":"1F645-1F3FD-200D-2642-FE0F","order":654,"shortcodes":["man_gesturing_no_tone3"],"unicode":"🙅🏽♂️"},{"annotation":"man gesturing NO: medium-dark skin tone","group":1,"hexcode":"1F645-1F3FE-200D-2642-FE0F","order":656,"shortcodes":["man_gesturing_no_tone4"],"unicode":"🙅🏾♂️"},{"annotation":"man gesturing NO: dark skin tone","group":1,"hexcode":"1F645-1F3FF-200D-2642-FE0F","order":658,"shortcodes":["man_gesturing_no_tone5"],"unicode":"🙅🏿♂️"}]},{"annotation":"woman gesturing NO","group":1,"hexcode":"1F645-200D-2640-FE0F","order":660,"shortcodes":["woman_gesturing_no"],"tags":["forbidden","gesture","hand","prohibited","woman","woman gesturing no"],"unicode":"🙅♀️","skins":[{"annotation":"woman gesturing NO: light skin tone","group":1,"hexcode":"1F645-1F3FB-200D-2640-FE0F","order":662,"shortcodes":["woman_gesturing_no_tone1"],"unicode":"🙅🏻♀️"},{"annotation":"woman gesturing NO: medium-light skin tone","group":1,"hexcode":"1F645-1F3FC-200D-2640-FE0F","order":664,"shortcodes":["woman_gesturing_no_tone2"],"unicode":"🙅🏼♀️"},{"annotation":"woman gesturing NO: medium skin tone","group":1,"hexcode":"1F645-1F3FD-200D-2640-FE0F","order":666,"shortcodes":["woman_gesturing_no_tone3"],"unicode":"🙅🏽♀️"},{"annotation":"woman gesturing NO: medium-dark skin tone","group":1,"hexcode":"1F645-1F3FE-200D-2640-FE0F","order":668,"shortcodes":["woman_gesturing_no_tone4"],"unicode":"🙅🏾♀️"},{"annotation":"woman gesturing NO: dark skin tone","group":1,"hexcode":"1F645-1F3FF-200D-2640-FE0F","order":670,"shortcodes":["woman_gesturing_no_tone5"],"unicode":"🙅🏿♀️"}]},{"annotation":"person gesturing OK","group":1,"hexcode":"1F646","order":672,"shortcodes":["person_gesturing_ok"],"tags":["gesture","hand","ok","person gesturing ok"],"unicode":"🙆","skins":[{"annotation":"person gesturing OK: light skin tone","group":1,"hexcode":"1F646-1F3FB","order":673,"shortcodes":["person_gesturing_ok_tone1"],"unicode":"🙆🏻"},{"annotation":"person gesturing OK: medium-light skin tone","group":1,"hexcode":"1F646-1F3FC","order":674,"shortcodes":["person_gesturing_ok_tone2"],"unicode":"🙆🏼"},{"annotation":"person gesturing OK: medium skin tone","group":1,"hexcode":"1F646-1F3FD","order":675,"shortcodes":["person_gesturing_ok_tone3"],"unicode":"🙆🏽"},{"annotation":"person gesturing OK: medium-dark skin tone","group":1,"hexcode":"1F646-1F3FE","order":676,"shortcodes":["person_gesturing_ok_tone4"],"unicode":"🙆🏾"},{"annotation":"person gesturing OK: dark skin tone","group":1,"hexcode":"1F646-1F3FF","order":677,"shortcodes":["person_gesturing_ok_tone5"],"unicode":"🙆🏿"}]},{"annotation":"man gesturing OK","group":1,"hexcode":"1F646-200D-2642-FE0F","order":678,"shortcodes":["man_gesturing_ok"],"tags":["gesture","hand","man","man gesturing ok","ok"],"unicode":"🙆♂️","skins":[{"annotation":"man gesturing OK: light skin tone","group":1,"hexcode":"1F646-1F3FB-200D-2642-FE0F","order":680,"shortcodes":["man_gesturing_ok_tone1"],"unicode":"🙆🏻♂️"},{"annotation":"man gesturing OK: medium-light skin tone","group":1,"hexcode":"1F646-1F3FC-200D-2642-FE0F","order":682,"shortcodes":["man_gesturing_ok_tone2"],"unicode":"🙆🏼♂️"},{"annotation":"man gesturing OK: medium skin tone","group":1,"hexcode":"1F646-1F3FD-200D-2642-FE0F","order":684,"shortcodes":["man_gesturing_ok_tone3"],"unicode":"🙆🏽♂️"},{"annotation":"man gesturing OK: medium-dark skin tone","group":1,"hexcode":"1F646-1F3FE-200D-2642-FE0F","order":686,"shortcodes":["man_gesturing_ok_tone4"],"unicode":"🙆🏾♂️"},{"annotation":"man gesturing OK: dark skin tone","group":1,"hexcode":"1F646-1F3FF-200D-2642-FE0F","order":688,"shortcodes":["man_gesturing_ok_tone5"],"unicode":"🙆🏿♂️"}]},{"annotation":"woman gesturing OK","group":1,"hexcode":"1F646-200D-2640-FE0F","order":690,"shortcodes":["woman_gesturing_ok"],"tags":["gesture","hand","ok","woman","woman gesturing ok"],"unicode":"🙆♀️","skins":[{"annotation":"woman gesturing OK: light skin tone","group":1,"hexcode":"1F646-1F3FB-200D-2640-FE0F","order":692,"shortcodes":["woman_gesturing_ok_tone1"],"unicode":"🙆🏻♀️"},{"annotation":"woman gesturing OK: medium-light skin tone","group":1,"hexcode":"1F646-1F3FC-200D-2640-FE0F","order":694,"shortcodes":["woman_gesturing_ok_tone2"],"unicode":"🙆🏼♀️"},{"annotation":"woman gesturing OK: medium skin tone","group":1,"hexcode":"1F646-1F3FD-200D-2640-FE0F","order":696,"shortcodes":["woman_gesturing_ok_tone3"],"unicode":"🙆🏽♀️"},{"annotation":"woman gesturing OK: medium-dark skin tone","group":1,"hexcode":"1F646-1F3FE-200D-2640-FE0F","order":698,"shortcodes":["woman_gesturing_ok_tone4"],"unicode":"🙆🏾♀️"},{"annotation":"woman gesturing OK: dark skin tone","group":1,"hexcode":"1F646-1F3FF-200D-2640-FE0F","order":700,"shortcodes":["woman_gesturing_ok_tone5"],"unicode":"🙆🏿♀️"}]},{"annotation":"person tipping hand","group":1,"hexcode":"1F481","order":702,"shortcodes":["person_tipping_hand"],"tags":["hand","help","information","sassy","tipping"],"unicode":"💁","skins":[{"annotation":"person tipping hand: light skin tone","group":1,"hexcode":"1F481-1F3FB","order":703,"shortcodes":["person_tipping_hand_tone1"],"unicode":"💁🏻"},{"annotation":"person tipping hand: medium-light skin tone","group":1,"hexcode":"1F481-1F3FC","order":704,"shortcodes":["person_tipping_hand_tone2"],"unicode":"💁🏼"},{"annotation":"person tipping hand: medium skin tone","group":1,"hexcode":"1F481-1F3FD","order":705,"shortcodes":["person_tipping_hand_tone3"],"unicode":"💁🏽"},{"annotation":"person tipping hand: medium-dark skin tone","group":1,"hexcode":"1F481-1F3FE","order":706,"shortcodes":["person_tipping_hand_tone4"],"unicode":"💁🏾"},{"annotation":"person tipping hand: dark skin tone","group":1,"hexcode":"1F481-1F3FF","order":707,"shortcodes":["person_tipping_hand_tone5"],"unicode":"💁🏿"}]},{"annotation":"man tipping hand","group":1,"hexcode":"1F481-200D-2642-FE0F","order":708,"shortcodes":["man_tipping_hand"],"tags":["man","sassy","tipping hand"],"unicode":"💁♂️","skins":[{"annotation":"man tipping hand: light skin tone","group":1,"hexcode":"1F481-1F3FB-200D-2642-FE0F","order":710,"shortcodes":["man_tipping_hand_tone1"],"unicode":"💁🏻♂️"},{"annotation":"man tipping hand: medium-light skin tone","group":1,"hexcode":"1F481-1F3FC-200D-2642-FE0F","order":712,"shortcodes":["man_tipping_hand_tone2"],"unicode":"💁🏼♂️"},{"annotation":"man tipping hand: medium skin tone","group":1,"hexcode":"1F481-1F3FD-200D-2642-FE0F","order":714,"shortcodes":["man_tipping_hand_tone3"],"unicode":"💁🏽♂️"},{"annotation":"man tipping hand: medium-dark skin tone","group":1,"hexcode":"1F481-1F3FE-200D-2642-FE0F","order":716,"shortcodes":["man_tipping_hand_tone4"],"unicode":"💁🏾♂️"},{"annotation":"man tipping hand: dark skin tone","group":1,"hexcode":"1F481-1F3FF-200D-2642-FE0F","order":718,"shortcodes":["man_tipping_hand_tone5"],"unicode":"💁🏿♂️"}]},{"annotation":"woman tipping hand","group":1,"hexcode":"1F481-200D-2640-FE0F","order":720,"shortcodes":["woman_tipping_hand"],"tags":["sassy","tipping hand","woman"],"unicode":"💁♀️","skins":[{"annotation":"woman tipping hand: light skin tone","group":1,"hexcode":"1F481-1F3FB-200D-2640-FE0F","order":722,"shortcodes":["woman_tipping_hand_tone1"],"unicode":"💁🏻♀️"},{"annotation":"woman tipping hand: medium-light skin tone","group":1,"hexcode":"1F481-1F3FC-200D-2640-FE0F","order":724,"shortcodes":["woman_tipping_hand_tone2"],"unicode":"💁🏼♀️"},{"annotation":"woman tipping hand: medium skin tone","group":1,"hexcode":"1F481-1F3FD-200D-2640-FE0F","order":726,"shortcodes":["woman_tipping_hand_tone3"],"unicode":"💁🏽♀️"},{"annotation":"woman tipping hand: medium-dark skin tone","group":1,"hexcode":"1F481-1F3FE-200D-2640-FE0F","order":728,"shortcodes":["woman_tipping_hand_tone4"],"unicode":"💁🏾♀️"},{"annotation":"woman tipping hand: dark skin tone","group":1,"hexcode":"1F481-1F3FF-200D-2640-FE0F","order":730,"shortcodes":["woman_tipping_hand_tone5"],"unicode":"💁🏿♀️"}]},{"annotation":"person raising hand","group":1,"hexcode":"1F64B","order":732,"shortcodes":["person_raising_hand"],"tags":["gesture","hand","happy","raised"],"unicode":"🙋","skins":[{"annotation":"person raising hand: light skin tone","group":1,"hexcode":"1F64B-1F3FB","order":733,"shortcodes":["person_raising_hand_tone1"],"unicode":"🙋🏻"},{"annotation":"person raising hand: medium-light skin tone","group":1,"hexcode":"1F64B-1F3FC","order":734,"shortcodes":["person_raising_hand_tone2"],"unicode":"🙋🏼"},{"annotation":"person raising hand: medium skin tone","group":1,"hexcode":"1F64B-1F3FD","order":735,"shortcodes":["person_raising_hand_tone3"],"unicode":"🙋🏽"},{"annotation":"person raising hand: medium-dark skin tone","group":1,"hexcode":"1F64B-1F3FE","order":736,"shortcodes":["person_raising_hand_tone4"],"unicode":"🙋🏾"},{"annotation":"person raising hand: dark skin tone","group":1,"hexcode":"1F64B-1F3FF","order":737,"shortcodes":["person_raising_hand_tone5"],"unicode":"🙋🏿"}]},{"annotation":"man raising hand","group":1,"hexcode":"1F64B-200D-2642-FE0F","order":738,"shortcodes":["man_raising_hand"],"tags":["gesture","man","raising hand"],"unicode":"🙋♂️","skins":[{"annotation":"man raising hand: light skin tone","group":1,"hexcode":"1F64B-1F3FB-200D-2642-FE0F","order":740,"shortcodes":["man_raising_hand_tone1"],"unicode":"🙋🏻♂️"},{"annotation":"man raising hand: medium-light skin tone","group":1,"hexcode":"1F64B-1F3FC-200D-2642-FE0F","order":742,"shortcodes":["man_raising_hand_tone2"],"unicode":"🙋🏼♂️"},{"annotation":"man raising hand: medium skin tone","group":1,"hexcode":"1F64B-1F3FD-200D-2642-FE0F","order":744,"shortcodes":["man_raising_hand_tone3"],"unicode":"🙋🏽♂️"},{"annotation":"man raising hand: medium-dark skin tone","group":1,"hexcode":"1F64B-1F3FE-200D-2642-FE0F","order":746,"shortcodes":["man_raising_hand_tone4"],"unicode":"🙋🏾♂️"},{"annotation":"man raising hand: dark skin tone","group":1,"hexcode":"1F64B-1F3FF-200D-2642-FE0F","order":748,"shortcodes":["man_raising_hand_tone5"],"unicode":"🙋🏿♂️"}]},{"annotation":"woman raising hand","group":1,"hexcode":"1F64B-200D-2640-FE0F","order":750,"shortcodes":["woman_raising_hand"],"tags":["gesture","raising hand","woman"],"unicode":"🙋♀️","skins":[{"annotation":"woman raising hand: light skin tone","group":1,"hexcode":"1F64B-1F3FB-200D-2640-FE0F","order":752,"shortcodes":["woman_raising_hand_tone1"],"unicode":"🙋🏻♀️"},{"annotation":"woman raising hand: medium-light skin tone","group":1,"hexcode":"1F64B-1F3FC-200D-2640-FE0F","order":754,"shortcodes":["woman_raising_hand_tone2"],"unicode":"🙋🏼♀️"},{"annotation":"woman raising hand: medium skin tone","group":1,"hexcode":"1F64B-1F3FD-200D-2640-FE0F","order":756,"shortcodes":["woman_raising_hand_tone3"],"unicode":"🙋🏽♀️"},{"annotation":"woman raising hand: medium-dark skin tone","group":1,"hexcode":"1F64B-1F3FE-200D-2640-FE0F","order":758,"shortcodes":["woman_raising_hand_tone4"],"unicode":"🙋🏾♀️"},{"annotation":"woman raising hand: dark skin tone","group":1,"hexcode":"1F64B-1F3FF-200D-2640-FE0F","order":760,"shortcodes":["woman_raising_hand_tone5"],"unicode":"🙋🏿♀️"}]},{"annotation":"deaf person","group":1,"hexcode":"1F9CF","order":762,"shortcodes":["person_deaf"],"tags":["accessibility","deaf","ear","hear"],"unicode":"🧏","skins":[{"annotation":"deaf person: light skin tone","group":1,"hexcode":"1F9CF-1F3FB","order":763,"shortcodes":["person_deaf_tone1"],"unicode":"🧏🏻"},{"annotation":"deaf person: medium-light skin tone","group":1,"hexcode":"1F9CF-1F3FC","order":764,"shortcodes":["person_deaf_tone2"],"unicode":"🧏🏼"},{"annotation":"deaf person: medium skin tone","group":1,"hexcode":"1F9CF-1F3FD","order":765,"shortcodes":["person_deaf_tone3"],"unicode":"🧏🏽"},{"annotation":"deaf person: medium-dark skin tone","group":1,"hexcode":"1F9CF-1F3FE","order":766,"shortcodes":["person_deaf_tone4"],"unicode":"🧏🏾"},{"annotation":"deaf person: dark skin tone","group":1,"hexcode":"1F9CF-1F3FF","order":767,"shortcodes":["person_deaf_tone5"],"unicode":"🧏🏿"}]},{"annotation":"deaf man","group":1,"hexcode":"1F9CF-200D-2642-FE0F","order":768,"shortcodes":["man_deaf"],"tags":["deaf","man"],"unicode":"🧏♂️","skins":[{"annotation":"deaf man: light skin tone","group":1,"hexcode":"1F9CF-1F3FB-200D-2642-FE0F","order":770,"shortcodes":["man_deaf_tone1"],"unicode":"🧏🏻♂️"},{"annotation":"deaf man: medium-light skin tone","group":1,"hexcode":"1F9CF-1F3FC-200D-2642-FE0F","order":772,"shortcodes":["man_deaf_tone2"],"unicode":"🧏🏼♂️"},{"annotation":"deaf man: medium skin tone","group":1,"hexcode":"1F9CF-1F3FD-200D-2642-FE0F","order":774,"shortcodes":["man_deaf_tone3"],"unicode":"🧏🏽♂️"},{"annotation":"deaf man: medium-dark skin tone","group":1,"hexcode":"1F9CF-1F3FE-200D-2642-FE0F","order":776,"shortcodes":["man_deaf_tone4"],"unicode":"🧏🏾♂️"},{"annotation":"deaf man: dark skin tone","group":1,"hexcode":"1F9CF-1F3FF-200D-2642-FE0F","order":778,"shortcodes":["man_deaf_tone5"],"unicode":"🧏🏿♂️"}]},{"annotation":"deaf woman","group":1,"hexcode":"1F9CF-200D-2640-FE0F","order":780,"shortcodes":["woman_deaf"],"tags":["deaf","woman"],"unicode":"🧏♀️","skins":[{"annotation":"deaf woman: light skin tone","group":1,"hexcode":"1F9CF-1F3FB-200D-2640-FE0F","order":782,"shortcodes":["woman_deaf_tone1"],"unicode":"🧏🏻♀️"},{"annotation":"deaf woman: medium-light skin tone","group":1,"hexcode":"1F9CF-1F3FC-200D-2640-FE0F","order":784,"shortcodes":["woman_deaf_tone2"],"unicode":"🧏🏼♀️"},{"annotation":"deaf woman: medium skin tone","group":1,"hexcode":"1F9CF-1F3FD-200D-2640-FE0F","order":786,"shortcodes":["woman_deaf_tone3"],"unicode":"🧏🏽♀️"},{"annotation":"deaf woman: medium-dark skin tone","group":1,"hexcode":"1F9CF-1F3FE-200D-2640-FE0F","order":788,"shortcodes":["woman_deaf_tone4"],"unicode":"🧏🏾♀️"},{"annotation":"deaf woman: dark skin tone","group":1,"hexcode":"1F9CF-1F3FF-200D-2640-FE0F","order":790,"shortcodes":["woman_deaf_tone5"],"unicode":"🧏🏿♀️"}]},{"annotation":"person bowing","group":1,"hexcode":"1F647","order":792,"shortcodes":["person_bowing"],"tags":["apology","bow","gesture","sorry"],"unicode":"🙇","skins":[{"annotation":"person bowing: light skin tone","group":1,"hexcode":"1F647-1F3FB","order":793,"shortcodes":["person_bowing_tone1"],"unicode":"🙇🏻"},{"annotation":"person bowing: medium-light skin tone","group":1,"hexcode":"1F647-1F3FC","order":794,"shortcodes":["person_bowing_tone2"],"unicode":"🙇🏼"},{"annotation":"person bowing: medium skin tone","group":1,"hexcode":"1F647-1F3FD","order":795,"shortcodes":["person_bowing_tone3"],"unicode":"🙇🏽"},{"annotation":"person bowing: medium-dark skin tone","group":1,"hexcode":"1F647-1F3FE","order":796,"shortcodes":["person_bowing_tone4"],"unicode":"🙇🏾"},{"annotation":"person bowing: dark skin tone","group":1,"hexcode":"1F647-1F3FF","order":797,"shortcodes":["person_bowing_tone5"],"unicode":"🙇🏿"}]},{"annotation":"man bowing","group":1,"hexcode":"1F647-200D-2642-FE0F","order":798,"shortcodes":["man_bowing"],"tags":["apology","bowing","favor","gesture","man","sorry"],"unicode":"🙇♂️","skins":[{"annotation":"man bowing: light skin tone","group":1,"hexcode":"1F647-1F3FB-200D-2642-FE0F","order":800,"shortcodes":["man_bowing_tone1"],"unicode":"🙇🏻♂️"},{"annotation":"man bowing: medium-light skin tone","group":1,"hexcode":"1F647-1F3FC-200D-2642-FE0F","order":802,"shortcodes":["man_bowing_tone2"],"unicode":"🙇🏼♂️"},{"annotation":"man bowing: medium skin tone","group":1,"hexcode":"1F647-1F3FD-200D-2642-FE0F","order":804,"shortcodes":["man_bowing_tone3"],"unicode":"🙇🏽♂️"},{"annotation":"man bowing: medium-dark skin tone","group":1,"hexcode":"1F647-1F3FE-200D-2642-FE0F","order":806,"shortcodes":["man_bowing_tone4"],"unicode":"🙇🏾♂️"},{"annotation":"man bowing: dark skin tone","group":1,"hexcode":"1F647-1F3FF-200D-2642-FE0F","order":808,"shortcodes":["man_bowing_tone5"],"unicode":"🙇🏿♂️"}]},{"annotation":"woman bowing","group":1,"hexcode":"1F647-200D-2640-FE0F","order":810,"shortcodes":["woman_bowing"],"tags":["apology","bowing","favor","gesture","sorry","woman"],"unicode":"🙇♀️","skins":[{"annotation":"woman bowing: light skin tone","group":1,"hexcode":"1F647-1F3FB-200D-2640-FE0F","order":812,"shortcodes":["woman_bowing_tone1"],"unicode":"🙇🏻♀️"},{"annotation":"woman bowing: medium-light skin tone","group":1,"hexcode":"1F647-1F3FC-200D-2640-FE0F","order":814,"shortcodes":["woman_bowing_tone2"],"unicode":"🙇🏼♀️"},{"annotation":"woman bowing: medium skin tone","group":1,"hexcode":"1F647-1F3FD-200D-2640-FE0F","order":816,"shortcodes":["woman_bowing_tone3"],"unicode":"🙇🏽♀️"},{"annotation":"woman bowing: medium-dark skin tone","group":1,"hexcode":"1F647-1F3FE-200D-2640-FE0F","order":818,"shortcodes":["woman_bowing_tone4"],"unicode":"🙇🏾♀️"},{"annotation":"woman bowing: dark skin tone","group":1,"hexcode":"1F647-1F3FF-200D-2640-FE0F","order":820,"shortcodes":["woman_bowing_tone5"],"unicode":"🙇🏿♀️"}]},{"annotation":"person facepalming","group":1,"hexcode":"1F926","order":822,"shortcodes":["person_facepalming"],"tags":["disbelief","exasperation","face","palm"],"unicode":"🤦","skins":[{"annotation":"person facepalming: light skin tone","group":1,"hexcode":"1F926-1F3FB","order":823,"shortcodes":["person_facepalming_tone1"],"unicode":"🤦🏻"},{"annotation":"person facepalming: medium-light skin tone","group":1,"hexcode":"1F926-1F3FC","order":824,"shortcodes":["person_facepalming_tone2"],"unicode":"🤦🏼"},{"annotation":"person facepalming: medium skin tone","group":1,"hexcode":"1F926-1F3FD","order":825,"shortcodes":["person_facepalming_tone3"],"unicode":"🤦🏽"},{"annotation":"person facepalming: medium-dark skin tone","group":1,"hexcode":"1F926-1F3FE","order":826,"shortcodes":["person_facepalming_tone4"],"unicode":"🤦🏾"},{"annotation":"person facepalming: dark skin tone","group":1,"hexcode":"1F926-1F3FF","order":827,"shortcodes":["person_facepalming_tone5"],"unicode":"🤦🏿"}]},{"annotation":"man facepalming","group":1,"hexcode":"1F926-200D-2642-FE0F","order":828,"shortcodes":["man_facepalming"],"tags":["disbelief","exasperation","facepalm","man"],"unicode":"🤦♂️","skins":[{"annotation":"man facepalming: light skin tone","group":1,"hexcode":"1F926-1F3FB-200D-2642-FE0F","order":830,"shortcodes":["man_facepalming_tone1"],"unicode":"🤦🏻♂️"},{"annotation":"man facepalming: medium-light skin tone","group":1,"hexcode":"1F926-1F3FC-200D-2642-FE0F","order":832,"shortcodes":["man_facepalming_tone2"],"unicode":"🤦🏼♂️"},{"annotation":"man facepalming: medium skin tone","group":1,"hexcode":"1F926-1F3FD-200D-2642-FE0F","order":834,"shortcodes":["man_facepalming_tone3"],"unicode":"🤦🏽♂️"},{"annotation":"man facepalming: medium-dark skin tone","group":1,"hexcode":"1F926-1F3FE-200D-2642-FE0F","order":836,"shortcodes":["man_facepalming_tone4"],"unicode":"🤦🏾♂️"},{"annotation":"man facepalming: dark skin tone","group":1,"hexcode":"1F926-1F3FF-200D-2642-FE0F","order":838,"shortcodes":["man_facepalming_tone5"],"unicode":"🤦🏿♂️"}]},{"annotation":"woman facepalming","group":1,"hexcode":"1F926-200D-2640-FE0F","order":840,"shortcodes":["woman_facepalming"],"tags":["disbelief","exasperation","facepalm","woman"],"unicode":"🤦♀️","skins":[{"annotation":"woman facepalming: light skin tone","group":1,"hexcode":"1F926-1F3FB-200D-2640-FE0F","order":842,"shortcodes":["woman_facepalming_tone1"],"unicode":"🤦🏻♀️"},{"annotation":"woman facepalming: medium-light skin tone","group":1,"hexcode":"1F926-1F3FC-200D-2640-FE0F","order":844,"shortcodes":["woman_facepalming_tone2"],"unicode":"🤦🏼♀️"},{"annotation":"woman facepalming: medium skin tone","group":1,"hexcode":"1F926-1F3FD-200D-2640-FE0F","order":846,"shortcodes":["woman_facepalming_tone3"],"unicode":"🤦🏽♀️"},{"annotation":"woman facepalming: medium-dark skin tone","group":1,"hexcode":"1F926-1F3FE-200D-2640-FE0F","order":848,"shortcodes":["woman_facepalming_tone4"],"unicode":"🤦🏾♀️"},{"annotation":"woman facepalming: dark skin tone","group":1,"hexcode":"1F926-1F3FF-200D-2640-FE0F","order":850,"shortcodes":["woman_facepalming_tone5"],"unicode":"🤦🏿♀️"}]},{"annotation":"person shrugging","group":1,"hexcode":"1F937","order":852,"shortcodes":["person_shrugging"],"tags":["doubt","ignorance","indifference","shrug"],"unicode":"🤷","skins":[{"annotation":"person shrugging: light skin tone","group":1,"hexcode":"1F937-1F3FB","order":853,"shortcodes":["person_shrugging_tone1"],"unicode":"🤷🏻"},{"annotation":"person shrugging: medium-light skin tone","group":1,"hexcode":"1F937-1F3FC","order":854,"shortcodes":["person_shrugging_tone2"],"unicode":"🤷🏼"},{"annotation":"person shrugging: medium skin tone","group":1,"hexcode":"1F937-1F3FD","order":855,"shortcodes":["person_shrugging_tone3"],"unicode":"🤷🏽"},{"annotation":"person shrugging: medium-dark skin tone","group":1,"hexcode":"1F937-1F3FE","order":856,"shortcodes":["person_shrugging_tone4"],"unicode":"🤷🏾"},{"annotation":"person shrugging: dark skin tone","group":1,"hexcode":"1F937-1F3FF","order":857,"shortcodes":["person_shrugging_tone5"],"unicode":"🤷🏿"}]},{"annotation":"man shrugging","group":1,"hexcode":"1F937-200D-2642-FE0F","order":858,"shortcodes":["man_shrugging"],"tags":["doubt","ignorance","indifference","man","shrug"],"unicode":"🤷♂️","skins":[{"annotation":"man shrugging: light skin tone","group":1,"hexcode":"1F937-1F3FB-200D-2642-FE0F","order":860,"shortcodes":["man_shrugging_tone1"],"unicode":"🤷🏻♂️"},{"annotation":"man shrugging: medium-light skin tone","group":1,"hexcode":"1F937-1F3FC-200D-2642-FE0F","order":862,"shortcodes":["man_shrugging_tone2"],"unicode":"🤷🏼♂️"},{"annotation":"man shrugging: medium skin tone","group":1,"hexcode":"1F937-1F3FD-200D-2642-FE0F","order":864,"shortcodes":["man_shrugging_tone3"],"unicode":"🤷🏽♂️"},{"annotation":"man shrugging: medium-dark skin tone","group":1,"hexcode":"1F937-1F3FE-200D-2642-FE0F","order":866,"shortcodes":["man_shrugging_tone4"],"unicode":"🤷🏾♂️"},{"annotation":"man shrugging: dark skin tone","group":1,"hexcode":"1F937-1F3FF-200D-2642-FE0F","order":868,"shortcodes":["man_shrugging_tone5"],"unicode":"🤷🏿♂️"}]},{"annotation":"woman shrugging","group":1,"hexcode":"1F937-200D-2640-FE0F","order":870,"shortcodes":["woman_shrugging"],"tags":["doubt","ignorance","indifference","shrug","woman"],"unicode":"🤷♀️","skins":[{"annotation":"woman shrugging: light skin tone","group":1,"hexcode":"1F937-1F3FB-200D-2640-FE0F","order":872,"shortcodes":["woman_shrugging_tone1"],"unicode":"🤷🏻♀️"},{"annotation":"woman shrugging: medium-light skin tone","group":1,"hexcode":"1F937-1F3FC-200D-2640-FE0F","order":874,"shortcodes":["woman_shrugging_tone2"],"unicode":"🤷🏼♀️"},{"annotation":"woman shrugging: medium skin tone","group":1,"hexcode":"1F937-1F3FD-200D-2640-FE0F","order":876,"shortcodes":["woman_shrugging_tone3"],"unicode":"🤷🏽♀️"},{"annotation":"woman shrugging: medium-dark skin tone","group":1,"hexcode":"1F937-1F3FE-200D-2640-FE0F","order":878,"shortcodes":["woman_shrugging_tone4"],"unicode":"🤷🏾♀️"},{"annotation":"woman shrugging: dark skin tone","group":1,"hexcode":"1F937-1F3FF-200D-2640-FE0F","order":880,"shortcodes":["woman_shrugging_tone5"],"unicode":"🤷🏿♀️"}]},{"annotation":"health worker","group":1,"hexcode":"1F9D1-200D-2695-FE0F","order":882,"shortcodes":["person_health_worker"],"tags":["doctor","healthcare","nurse","therapist"],"unicode":"🧑⚕️","skins":[{"annotation":"health worker: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-2695-FE0F","order":884,"shortcodes":["person_health_worker_tone1"],"unicode":"🧑🏻⚕️"},{"annotation":"health worker: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-2695-FE0F","order":886,"shortcodes":["person_health_worker_tone2"],"unicode":"🧑🏼⚕️"},{"annotation":"health worker: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-2695-FE0F","order":888,"shortcodes":["person_health_worker_tone3"],"unicode":"🧑🏽⚕️"},{"annotation":"health worker: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-2695-FE0F","order":890,"shortcodes":["person_health_worker_tone4"],"unicode":"🧑🏾⚕️"},{"annotation":"health worker: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-2695-FE0F","order":892,"shortcodes":["person_health_worker_tone5"],"unicode":"🧑🏿⚕️"}]},{"annotation":"man health worker","group":1,"hexcode":"1F468-200D-2695-FE0F","order":894,"shortcodes":["man_health_worker"],"tags":["doctor","healthcare","man","nurse","therapist"],"unicode":"👨⚕️","skins":[{"annotation":"man health worker: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-2695-FE0F","order":896,"shortcodes":["man_health_worker_tone1"],"unicode":"👨🏻⚕️"},{"annotation":"man health worker: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-2695-FE0F","order":898,"shortcodes":["man_health_worker_tone2"],"unicode":"👨🏼⚕️"},{"annotation":"man health worker: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-2695-FE0F","order":900,"shortcodes":["man_health_worker_tone3"],"unicode":"👨🏽⚕️"},{"annotation":"man health worker: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-2695-FE0F","order":902,"shortcodes":["man_health_worker_tone4"],"unicode":"👨🏾⚕️"},{"annotation":"man health worker: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-2695-FE0F","order":904,"shortcodes":["man_health_worker_tone5"],"unicode":"👨🏿⚕️"}]},{"annotation":"woman health worker","group":1,"hexcode":"1F469-200D-2695-FE0F","order":906,"shortcodes":["woman_health_worker"],"tags":["doctor","healthcare","nurse","therapist","woman"],"unicode":"👩⚕️","skins":[{"annotation":"woman health worker: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-2695-FE0F","order":908,"shortcodes":["woman_health_worker_tone1"],"unicode":"👩🏻⚕️"},{"annotation":"woman health worker: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-2695-FE0F","order":910,"shortcodes":["woman_health_worker_tone2"],"unicode":"👩🏼⚕️"},{"annotation":"woman health worker: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-2695-FE0F","order":912,"shortcodes":["woman_health_worker_tone3"],"unicode":"👩🏽⚕️"},{"annotation":"woman health worker: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-2695-FE0F","order":914,"shortcodes":["woman_health_worker_tone4"],"unicode":"👩🏾⚕️"},{"annotation":"woman health worker: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-2695-FE0F","order":916,"shortcodes":["woman_health_worker_tone5"],"unicode":"👩🏿⚕️"}]},{"annotation":"student","group":1,"hexcode":"1F9D1-200D-1F393","order":918,"shortcodes":["person_student"],"tags":["graduate"],"unicode":"🧑🎓","skins":[{"annotation":"student: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F393","order":919,"shortcodes":["person_student_tone1"],"unicode":"🧑🏻🎓"},{"annotation":"student: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F393","order":920,"shortcodes":["person_student_tone2"],"unicode":"🧑🏼🎓"},{"annotation":"student: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F393","order":921,"shortcodes":["person_student_tone3"],"unicode":"🧑🏽🎓"},{"annotation":"student: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F393","order":922,"shortcodes":["person_student_tone4"],"unicode":"🧑🏾🎓"},{"annotation":"student: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F393","order":923,"shortcodes":["person_student_tone5"],"unicode":"🧑🏿🎓"}]},{"annotation":"man student","group":1,"hexcode":"1F468-200D-1F393","order":924,"shortcodes":["man_student"],"tags":["graduate","man","student"],"unicode":"👨🎓","skins":[{"annotation":"man student: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F393","order":925,"shortcodes":["man_student_tone1"],"unicode":"👨🏻🎓"},{"annotation":"man student: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F393","order":926,"shortcodes":["man_student_tone2"],"unicode":"👨🏼🎓"},{"annotation":"man student: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F393","order":927,"shortcodes":["man_student_tone3"],"unicode":"👨🏽🎓"},{"annotation":"man student: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F393","order":928,"shortcodes":["man_student_tone4"],"unicode":"👨🏾🎓"},{"annotation":"man student: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F393","order":929,"shortcodes":["man_student_tone5"],"unicode":"👨🏿🎓"}]},{"annotation":"woman student","group":1,"hexcode":"1F469-200D-1F393","order":930,"shortcodes":["woman_student"],"tags":["graduate","student","woman"],"unicode":"👩🎓","skins":[{"annotation":"woman student: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F393","order":931,"shortcodes":["woman_student_tone1"],"unicode":"👩🏻🎓"},{"annotation":"woman student: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F393","order":932,"shortcodes":["woman_student_tone2"],"unicode":"👩🏼🎓"},{"annotation":"woman student: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F393","order":933,"shortcodes":["woman_student_tone3"],"unicode":"👩🏽🎓"},{"annotation":"woman student: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F393","order":934,"shortcodes":["woman_student_tone4"],"unicode":"👩🏾🎓"},{"annotation":"woman student: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F393","order":935,"shortcodes":["woman_student_tone5"],"unicode":"👩🏿🎓"}]},{"annotation":"teacher","group":1,"hexcode":"1F9D1-200D-1F3EB","order":936,"shortcodes":["person_teacher"],"tags":["instructor","professor"],"unicode":"🧑🏫","skins":[{"annotation":"teacher: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F3EB","order":937,"shortcodes":["person_teacher_tone1"],"unicode":"🧑🏻🏫"},{"annotation":"teacher: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F3EB","order":938,"shortcodes":["person_teacher_tone2"],"unicode":"🧑🏼🏫"},{"annotation":"teacher: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F3EB","order":939,"shortcodes":["person_teacher_tone3"],"unicode":"🧑🏽🏫"},{"annotation":"teacher: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F3EB","order":940,"shortcodes":["person_teacher_tone4"],"unicode":"🧑🏾🏫"},{"annotation":"teacher: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F3EB","order":941,"shortcodes":["person_teacher_tone5"],"unicode":"🧑🏿🏫"}]},{"annotation":"man teacher","group":1,"hexcode":"1F468-200D-1F3EB","order":942,"shortcodes":["man_teacher"],"tags":["instructor","man","professor","teacher"],"unicode":"👨🏫","skins":[{"annotation":"man teacher: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F3EB","order":943,"shortcodes":["man_teacher_tone1"],"unicode":"👨🏻🏫"},{"annotation":"man teacher: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F3EB","order":944,"shortcodes":["man_teacher_tone2"],"unicode":"👨🏼🏫"},{"annotation":"man teacher: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F3EB","order":945,"shortcodes":["man_teacher_tone3"],"unicode":"👨🏽🏫"},{"annotation":"man teacher: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F3EB","order":946,"shortcodes":["man_teacher_tone4"],"unicode":"👨🏾🏫"},{"annotation":"man teacher: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F3EB","order":947,"shortcodes":["man_teacher_tone5"],"unicode":"👨🏿🏫"}]},{"annotation":"woman teacher","group":1,"hexcode":"1F469-200D-1F3EB","order":948,"shortcodes":["woman_teacher"],"tags":["instructor","professor","teacher","woman"],"unicode":"👩🏫","skins":[{"annotation":"woman teacher: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F3EB","order":949,"shortcodes":["woman_teacher_tone1"],"unicode":"👩🏻🏫"},{"annotation":"woman teacher: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F3EB","order":950,"shortcodes":["woman_teacher_tone2"],"unicode":"👩🏼🏫"},{"annotation":"woman teacher: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F3EB","order":951,"shortcodes":["woman_teacher_tone3"],"unicode":"👩🏽🏫"},{"annotation":"woman teacher: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F3EB","order":952,"shortcodes":["woman_teacher_tone4"],"unicode":"👩🏾🏫"},{"annotation":"woman teacher: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F3EB","order":953,"shortcodes":["woman_teacher_tone5"],"unicode":"👩🏿🏫"}]},{"annotation":"judge","group":1,"hexcode":"1F9D1-200D-2696-FE0F","order":954,"shortcodes":["person_judge"],"tags":["scales"],"unicode":"🧑⚖️","skins":[{"annotation":"judge: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-2696-FE0F","order":956,"shortcodes":["person_judge_tone1"],"unicode":"🧑🏻⚖️"},{"annotation":"judge: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-2696-FE0F","order":958,"shortcodes":["person_judge_tone2"],"unicode":"🧑🏼⚖️"},{"annotation":"judge: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-2696-FE0F","order":960,"shortcodes":["person_judge_tone3"],"unicode":"🧑🏽⚖️"},{"annotation":"judge: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-2696-FE0F","order":962,"shortcodes":["person_judge_tone4"],"unicode":"🧑🏾⚖️"},{"annotation":"judge: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-2696-FE0F","order":964,"shortcodes":["person_judge_tone5"],"unicode":"🧑🏿⚖️"}]},{"annotation":"man judge","group":1,"hexcode":"1F468-200D-2696-FE0F","order":966,"shortcodes":["man_judge"],"tags":["justice","man","scales"],"unicode":"👨⚖️","skins":[{"annotation":"man judge: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-2696-FE0F","order":968,"shortcodes":["man_judge_tone1"],"unicode":"👨🏻⚖️"},{"annotation":"man judge: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-2696-FE0F","order":970,"shortcodes":["man_judge_tone2"],"unicode":"👨🏼⚖️"},{"annotation":"man judge: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-2696-FE0F","order":972,"shortcodes":["man_judge_tone3"],"unicode":"👨🏽⚖️"},{"annotation":"man judge: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-2696-FE0F","order":974,"shortcodes":["man_judge_tone4"],"unicode":"👨🏾⚖️"},{"annotation":"man judge: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-2696-FE0F","order":976,"shortcodes":["man_judge_tone5"],"unicode":"👨🏿⚖️"}]},{"annotation":"woman judge","group":1,"hexcode":"1F469-200D-2696-FE0F","order":978,"shortcodes":["woman_judge"],"tags":["judge","scales","woman"],"unicode":"👩⚖️","skins":[{"annotation":"woman judge: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-2696-FE0F","order":980,"shortcodes":["woman_judge_tone1"],"unicode":"👩🏻⚖️"},{"annotation":"woman judge: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-2696-FE0F","order":982,"shortcodes":["woman_judge_tone2"],"unicode":"👩🏼⚖️"},{"annotation":"woman judge: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-2696-FE0F","order":984,"shortcodes":["woman_judge_tone3"],"unicode":"👩🏽⚖️"},{"annotation":"woman judge: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-2696-FE0F","order":986,"shortcodes":["woman_judge_tone4"],"unicode":"👩🏾⚖️"},{"annotation":"woman judge: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-2696-FE0F","order":988,"shortcodes":["woman_judge_tone5"],"unicode":"👩🏿⚖️"}]},{"annotation":"farmer","group":1,"hexcode":"1F9D1-200D-1F33E","order":990,"shortcodes":["person_farmer"],"tags":["gardener","rancher"],"unicode":"🧑🌾","skins":[{"annotation":"farmer: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F33E","order":991,"shortcodes":["person_farmer_tone1"],"unicode":"🧑🏻🌾"},{"annotation":"farmer: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F33E","order":992,"shortcodes":["person_farmer_tone2"],"unicode":"🧑🏼🌾"},{"annotation":"farmer: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F33E","order":993,"shortcodes":["person_farmer_tone3"],"unicode":"🧑🏽🌾"},{"annotation":"farmer: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F33E","order":994,"shortcodes":["person_farmer_tone4"],"unicode":"🧑🏾🌾"},{"annotation":"farmer: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F33E","order":995,"shortcodes":["person_farmer_tone5"],"unicode":"🧑🏿🌾"}]},{"annotation":"man farmer","group":1,"hexcode":"1F468-200D-1F33E","order":996,"shortcodes":["man_farmer"],"tags":["farmer","gardener","man","rancher"],"unicode":"👨🌾","skins":[{"annotation":"man farmer: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F33E","order":997,"shortcodes":["man_farmer_tone1"],"unicode":"👨🏻🌾"},{"annotation":"man farmer: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F33E","order":998,"shortcodes":["man_farmer_tone2"],"unicode":"👨🏼🌾"},{"annotation":"man farmer: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F33E","order":999,"shortcodes":["man_farmer_tone3"],"unicode":"👨🏽🌾"},{"annotation":"man farmer: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F33E","order":1000,"shortcodes":["man_farmer_tone4"],"unicode":"👨🏾🌾"},{"annotation":"man farmer: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F33E","order":1001,"shortcodes":["man_farmer_tone5"],"unicode":"👨🏿🌾"}]},{"annotation":"woman farmer","group":1,"hexcode":"1F469-200D-1F33E","order":1002,"shortcodes":["woman_farmer"],"tags":["farmer","gardener","rancher","woman"],"unicode":"👩🌾","skins":[{"annotation":"woman farmer: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F33E","order":1003,"shortcodes":["woman_farmer_tone1"],"unicode":"👩🏻🌾"},{"annotation":"woman farmer: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F33E","order":1004,"shortcodes":["woman_farmer_tone2"],"unicode":"👩🏼🌾"},{"annotation":"woman farmer: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F33E","order":1005,"shortcodes":["woman_farmer_tone3"],"unicode":"👩🏽🌾"},{"annotation":"woman farmer: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F33E","order":1006,"shortcodes":["woman_farmer_tone4"],"unicode":"👩🏾🌾"},{"annotation":"woman farmer: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F33E","order":1007,"shortcodes":["woman_farmer_tone5"],"unicode":"👩🏿🌾"}]},{"annotation":"cook","group":1,"hexcode":"1F9D1-200D-1F373","order":1008,"shortcodes":["person_cook"],"tags":["chef"],"unicode":"🧑🍳","skins":[{"annotation":"cook: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F373","order":1009,"shortcodes":["person_cook_tone1"],"unicode":"🧑🏻🍳"},{"annotation":"cook: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F373","order":1010,"shortcodes":["person_cook_tone2"],"unicode":"🧑🏼🍳"},{"annotation":"cook: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F373","order":1011,"shortcodes":["person_cook_tone3"],"unicode":"🧑🏽🍳"},{"annotation":"cook: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F373","order":1012,"shortcodes":["person_cook_tone4"],"unicode":"🧑🏾🍳"},{"annotation":"cook: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F373","order":1013,"shortcodes":["person_cook_tone5"],"unicode":"🧑🏿🍳"}]},{"annotation":"man cook","group":1,"hexcode":"1F468-200D-1F373","order":1014,"shortcodes":["man_cook"],"tags":["chef","cook","man"],"unicode":"👨🍳","skins":[{"annotation":"man cook: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F373","order":1015,"shortcodes":["man_cook_tone1"],"unicode":"👨🏻🍳"},{"annotation":"man cook: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F373","order":1016,"shortcodes":["man_cook_tone2"],"unicode":"👨🏼🍳"},{"annotation":"man cook: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F373","order":1017,"shortcodes":["man_cook_tone3"],"unicode":"👨🏽🍳"},{"annotation":"man cook: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F373","order":1018,"shortcodes":["man_cook_tone4"],"unicode":"👨🏾🍳"},{"annotation":"man cook: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F373","order":1019,"shortcodes":["man_cook_tone5"],"unicode":"👨🏿🍳"}]},{"annotation":"woman cook","group":1,"hexcode":"1F469-200D-1F373","order":1020,"shortcodes":["woman_cook"],"tags":["chef","cook","woman"],"unicode":"👩🍳","skins":[{"annotation":"woman cook: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F373","order":1021,"shortcodes":["woman_cook_tone1"],"unicode":"👩🏻🍳"},{"annotation":"woman cook: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F373","order":1022,"shortcodes":["woman_cook_tone2"],"unicode":"👩🏼🍳"},{"annotation":"woman cook: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F373","order":1023,"shortcodes":["woman_cook_tone3"],"unicode":"👩🏽🍳"},{"annotation":"woman cook: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F373","order":1024,"shortcodes":["woman_cook_tone4"],"unicode":"👩🏾🍳"},{"annotation":"woman cook: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F373","order":1025,"shortcodes":["woman_cook_tone5"],"unicode":"👩🏿🍳"}]},{"annotation":"mechanic","group":1,"hexcode":"1F9D1-200D-1F527","order":1026,"shortcodes":["person_mechanic"],"tags":["electrician","plumber","tradesperson"],"unicode":"🧑🔧","skins":[{"annotation":"mechanic: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F527","order":1027,"shortcodes":["person_mechanic_tone1"],"unicode":"🧑🏻🔧"},{"annotation":"mechanic: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F527","order":1028,"shortcodes":["person_mechanic_tone2"],"unicode":"🧑🏼🔧"},{"annotation":"mechanic: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F527","order":1029,"shortcodes":["person_mechanic_tone3"],"unicode":"🧑🏽🔧"},{"annotation":"mechanic: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F527","order":1030,"shortcodes":["person_mechanic_tone4"],"unicode":"🧑🏾🔧"},{"annotation":"mechanic: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F527","order":1031,"shortcodes":["person_mechanic_tone5"],"unicode":"🧑🏿🔧"}]},{"annotation":"man mechanic","group":1,"hexcode":"1F468-200D-1F527","order":1032,"shortcodes":["man_mechanic"],"tags":["electrician","man","mechanic","plumber","tradesperson"],"unicode":"👨🔧","skins":[{"annotation":"man mechanic: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F527","order":1033,"shortcodes":["man_mechanic_tone1"],"unicode":"👨🏻🔧"},{"annotation":"man mechanic: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F527","order":1034,"shortcodes":["man_mechanic_tone2"],"unicode":"👨🏼🔧"},{"annotation":"man mechanic: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F527","order":1035,"shortcodes":["man_mechanic_tone3"],"unicode":"👨🏽🔧"},{"annotation":"man mechanic: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F527","order":1036,"shortcodes":["man_mechanic_tone4"],"unicode":"👨🏾🔧"},{"annotation":"man mechanic: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F527","order":1037,"shortcodes":["man_mechanic_tone5"],"unicode":"👨🏿🔧"}]},{"annotation":"woman mechanic","group":1,"hexcode":"1F469-200D-1F527","order":1038,"shortcodes":["woman_mechanic"],"tags":["electrician","mechanic","plumber","tradesperson","woman"],"unicode":"👩🔧","skins":[{"annotation":"woman mechanic: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F527","order":1039,"shortcodes":["woman_mechanic_tone1"],"unicode":"👩🏻🔧"},{"annotation":"woman mechanic: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F527","order":1040,"shortcodes":["woman_mechanic_tone2"],"unicode":"👩🏼🔧"},{"annotation":"woman mechanic: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F527","order":1041,"shortcodes":["woman_mechanic_tone3"],"unicode":"👩🏽🔧"},{"annotation":"woman mechanic: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F527","order":1042,"shortcodes":["woman_mechanic_tone4"],"unicode":"👩🏾🔧"},{"annotation":"woman mechanic: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F527","order":1043,"shortcodes":["woman_mechanic_tone5"],"unicode":"👩🏿🔧"}]},{"annotation":"factory worker","group":1,"hexcode":"1F9D1-200D-1F3ED","order":1044,"shortcodes":["person_factory_worker"],"tags":["assembly","factory","industrial","worker"],"unicode":"🧑🏭","skins":[{"annotation":"factory worker: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F3ED","order":1045,"shortcodes":["person_factory_worker_tone1"],"unicode":"🧑🏻🏭"},{"annotation":"factory worker: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F3ED","order":1046,"shortcodes":["person_factory_worker_tone2"],"unicode":"🧑🏼🏭"},{"annotation":"factory worker: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F3ED","order":1047,"shortcodes":["person_factory_worker_tone3"],"unicode":"🧑🏽🏭"},{"annotation":"factory worker: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F3ED","order":1048,"shortcodes":["person_factory_worker_tone4"],"unicode":"🧑🏾🏭"},{"annotation":"factory worker: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F3ED","order":1049,"shortcodes":["person_factory_worker_tone5"],"unicode":"🧑🏿🏭"}]},{"annotation":"man factory worker","group":1,"hexcode":"1F468-200D-1F3ED","order":1050,"shortcodes":["man_factory_worker"],"tags":["assembly","factory","industrial","man","worker"],"unicode":"👨🏭","skins":[{"annotation":"man factory worker: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F3ED","order":1051,"shortcodes":["man_factory_worker_tone1"],"unicode":"👨🏻🏭"},{"annotation":"man factory worker: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F3ED","order":1052,"shortcodes":["man_factory_worker_tone2"],"unicode":"👨🏼🏭"},{"annotation":"man factory worker: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F3ED","order":1053,"shortcodes":["man_factory_worker_tone3"],"unicode":"👨🏽🏭"},{"annotation":"man factory worker: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F3ED","order":1054,"shortcodes":["man_factory_worker_tone4"],"unicode":"👨🏾🏭"},{"annotation":"man factory worker: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F3ED","order":1055,"shortcodes":["man_factory_worker_tone5"],"unicode":"👨🏿🏭"}]},{"annotation":"woman factory worker","group":1,"hexcode":"1F469-200D-1F3ED","order":1056,"shortcodes":["woman_factory_worker"],"tags":["assembly","factory","industrial","woman","worker"],"unicode":"👩🏭","skins":[{"annotation":"woman factory worker: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F3ED","order":1057,"shortcodes":["woman_factory_worker_tone1"],"unicode":"👩🏻🏭"},{"annotation":"woman factory worker: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F3ED","order":1058,"shortcodes":["woman_factory_worker_tone2"],"unicode":"👩🏼🏭"},{"annotation":"woman factory worker: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F3ED","order":1059,"shortcodes":["woman_factory_worker_tone3"],"unicode":"👩🏽🏭"},{"annotation":"woman factory worker: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F3ED","order":1060,"shortcodes":["woman_factory_worker_tone4"],"unicode":"👩🏾🏭"},{"annotation":"woman factory worker: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F3ED","order":1061,"shortcodes":["woman_factory_worker_tone5"],"unicode":"👩🏿🏭"}]},{"annotation":"office worker","group":1,"hexcode":"1F9D1-200D-1F4BC","order":1062,"shortcodes":["person_office_worker"],"tags":["architect","business","manager","white-collar"],"unicode":"🧑💼","skins":[{"annotation":"office worker: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F4BC","order":1063,"shortcodes":["person_office_worker_tone1"],"unicode":"🧑🏻💼"},{"annotation":"office worker: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F4BC","order":1064,"shortcodes":["person_office_worker_tone2"],"unicode":"🧑🏼💼"},{"annotation":"office worker: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F4BC","order":1065,"shortcodes":["person_office_worker_tone3"],"unicode":"🧑🏽💼"},{"annotation":"office worker: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F4BC","order":1066,"shortcodes":["person_office_worker_tone4"],"unicode":"🧑🏾💼"},{"annotation":"office worker: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F4BC","order":1067,"shortcodes":["person_office_worker_tone5"],"unicode":"🧑🏿💼"}]},{"annotation":"man office worker","group":1,"hexcode":"1F468-200D-1F4BC","order":1068,"shortcodes":["man_office_worker"],"tags":["architect","business","man","manager","white-collar"],"unicode":"👨💼","skins":[{"annotation":"man office worker: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F4BC","order":1069,"shortcodes":["man_office_worker_tone1"],"unicode":"👨🏻💼"},{"annotation":"man office worker: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F4BC","order":1070,"shortcodes":["man_office_worker_tone2"],"unicode":"👨🏼💼"},{"annotation":"man office worker: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F4BC","order":1071,"shortcodes":["man_office_worker_tone3"],"unicode":"👨🏽💼"},{"annotation":"man office worker: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F4BC","order":1072,"shortcodes":["man_office_worker_tone4"],"unicode":"👨🏾💼"},{"annotation":"man office worker: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F4BC","order":1073,"shortcodes":["man_office_worker_tone5"],"unicode":"👨🏿💼"}]},{"annotation":"woman office worker","group":1,"hexcode":"1F469-200D-1F4BC","order":1074,"shortcodes":["woman_office_worker"],"tags":["architect","business","manager","white-collar","woman"],"unicode":"👩💼","skins":[{"annotation":"woman office worker: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F4BC","order":1075,"shortcodes":["woman_office_worker_tone1"],"unicode":"👩🏻💼"},{"annotation":"woman office worker: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F4BC","order":1076,"shortcodes":["woman_office_worker_tone2"],"unicode":"👩🏼💼"},{"annotation":"woman office worker: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F4BC","order":1077,"shortcodes":["woman_office_worker_tone3"],"unicode":"👩🏽💼"},{"annotation":"woman office worker: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F4BC","order":1078,"shortcodes":["woman_office_worker_tone4"],"unicode":"👩🏾💼"},{"annotation":"woman office worker: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F4BC","order":1079,"shortcodes":["woman_office_worker_tone5"],"unicode":"👩🏿💼"}]},{"annotation":"scientist","group":1,"hexcode":"1F9D1-200D-1F52C","order":1080,"shortcodes":["person_scientist"],"tags":["biologist","chemist","engineer","physicist"],"unicode":"🧑🔬","skins":[{"annotation":"scientist: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F52C","order":1081,"shortcodes":["person_scientist_tone1"],"unicode":"🧑🏻🔬"},{"annotation":"scientist: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F52C","order":1082,"shortcodes":["person_scientist_tone2"],"unicode":"🧑🏼🔬"},{"annotation":"scientist: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F52C","order":1083,"shortcodes":["person_scientist_tone3"],"unicode":"🧑🏽🔬"},{"annotation":"scientist: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F52C","order":1084,"shortcodes":["person_scientist_tone4"],"unicode":"🧑🏾🔬"},{"annotation":"scientist: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F52C","order":1085,"shortcodes":["person_scientist_tone5"],"unicode":"🧑🏿🔬"}]},{"annotation":"man scientist","group":1,"hexcode":"1F468-200D-1F52C","order":1086,"shortcodes":["man_scientist"],"tags":["biologist","chemist","engineer","man","physicist","scientist"],"unicode":"👨🔬","skins":[{"annotation":"man scientist: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F52C","order":1087,"shortcodes":["man_scientist_tone1"],"unicode":"👨🏻🔬"},{"annotation":"man scientist: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F52C","order":1088,"shortcodes":["man_scientist_tone2"],"unicode":"👨🏼🔬"},{"annotation":"man scientist: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F52C","order":1089,"shortcodes":["man_scientist_tone3"],"unicode":"👨🏽🔬"},{"annotation":"man scientist: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F52C","order":1090,"shortcodes":["man_scientist_tone4"],"unicode":"👨🏾🔬"},{"annotation":"man scientist: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F52C","order":1091,"shortcodes":["man_scientist_tone5"],"unicode":"👨🏿🔬"}]},{"annotation":"woman scientist","group":1,"hexcode":"1F469-200D-1F52C","order":1092,"shortcodes":["woman_scientist"],"tags":["biologist","chemist","engineer","physicist","scientist","woman"],"unicode":"👩🔬","skins":[{"annotation":"woman scientist: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F52C","order":1093,"shortcodes":["woman_scientist_tone1"],"unicode":"👩🏻🔬"},{"annotation":"woman scientist: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F52C","order":1094,"shortcodes":["woman_scientist_tone2"],"unicode":"👩🏼🔬"},{"annotation":"woman scientist: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F52C","order":1095,"shortcodes":["woman_scientist_tone3"],"unicode":"👩🏽🔬"},{"annotation":"woman scientist: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F52C","order":1096,"shortcodes":["woman_scientist_tone4"],"unicode":"👩🏾🔬"},{"annotation":"woman scientist: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F52C","order":1097,"shortcodes":["woman_scientist_tone5"],"unicode":"👩🏿🔬"}]},{"annotation":"technologist","group":1,"hexcode":"1F9D1-200D-1F4BB","order":1098,"shortcodes":["person_technologist"],"tags":["coder","developer","inventor","software"],"unicode":"🧑💻","skins":[{"annotation":"technologist: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F4BB","order":1099,"shortcodes":["person_technologist_tone1"],"unicode":"🧑🏻💻"},{"annotation":"technologist: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F4BB","order":1100,"shortcodes":["person_technologist_tone2"],"unicode":"🧑🏼💻"},{"annotation":"technologist: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F4BB","order":1101,"shortcodes":["person_technologist_tone3"],"unicode":"🧑🏽💻"},{"annotation":"technologist: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F4BB","order":1102,"shortcodes":["person_technologist_tone4"],"unicode":"🧑🏾💻"},{"annotation":"technologist: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F4BB","order":1103,"shortcodes":["person_technologist_tone5"],"unicode":"🧑🏿💻"}]},{"annotation":"man technologist","group":1,"hexcode":"1F468-200D-1F4BB","order":1104,"shortcodes":["man_technologist"],"tags":["coder","developer","inventor","man","software","technologist"],"unicode":"👨💻","skins":[{"annotation":"man technologist: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F4BB","order":1105,"shortcodes":["man_technologist_tone1"],"unicode":"👨🏻💻"},{"annotation":"man technologist: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F4BB","order":1106,"shortcodes":["man_technologist_tone2"],"unicode":"👨🏼💻"},{"annotation":"man technologist: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F4BB","order":1107,"shortcodes":["man_technologist_tone3"],"unicode":"👨🏽💻"},{"annotation":"man technologist: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F4BB","order":1108,"shortcodes":["man_technologist_tone4"],"unicode":"👨🏾💻"},{"annotation":"man technologist: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F4BB","order":1109,"shortcodes":["man_technologist_tone5"],"unicode":"👨🏿💻"}]},{"annotation":"woman technologist","group":1,"hexcode":"1F469-200D-1F4BB","order":1110,"shortcodes":["woman_technologist"],"tags":["coder","developer","inventor","software","technologist","woman"],"unicode":"👩💻","skins":[{"annotation":"woman technologist: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F4BB","order":1111,"shortcodes":["woman_technologist_tone1"],"unicode":"👩🏻💻"},{"annotation":"woman technologist: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F4BB","order":1112,"shortcodes":["woman_technologist_tone2"],"unicode":"👩🏼💻"},{"annotation":"woman technologist: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F4BB","order":1113,"shortcodes":["woman_technologist_tone3"],"unicode":"👩🏽💻"},{"annotation":"woman technologist: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F4BB","order":1114,"shortcodes":["woman_technologist_tone4"],"unicode":"👩🏾💻"},{"annotation":"woman technologist: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F4BB","order":1115,"shortcodes":["woman_technologist_tone5"],"unicode":"👩🏿💻"}]},{"annotation":"singer","group":1,"hexcode":"1F9D1-200D-1F3A4","order":1116,"shortcodes":["person_singer"],"tags":["actor","entertainer","rock","star"],"unicode":"🧑🎤","skins":[{"annotation":"singer: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F3A4","order":1117,"shortcodes":["person_singer_tone1"],"unicode":"🧑🏻🎤"},{"annotation":"singer: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F3A4","order":1118,"shortcodes":["person_singer_tone2"],"unicode":"🧑🏼🎤"},{"annotation":"singer: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F3A4","order":1119,"shortcodes":["person_singer_tone3"],"unicode":"🧑🏽🎤"},{"annotation":"singer: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F3A4","order":1120,"shortcodes":["person_singer_tone4"],"unicode":"🧑🏾🎤"},{"annotation":"singer: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F3A4","order":1121,"shortcodes":["person_singer_tone5"],"unicode":"🧑🏿🎤"}]},{"annotation":"man singer","group":1,"hexcode":"1F468-200D-1F3A4","order":1122,"shortcodes":["man_singer"],"tags":["actor","entertainer","man","rock","singer","star"],"unicode":"👨🎤","skins":[{"annotation":"man singer: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F3A4","order":1123,"shortcodes":["man_singer_tone1"],"unicode":"👨🏻🎤"},{"annotation":"man singer: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F3A4","order":1124,"shortcodes":["man_singer_tone2"],"unicode":"👨🏼🎤"},{"annotation":"man singer: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F3A4","order":1125,"shortcodes":["man_singer_tone3"],"unicode":"👨🏽🎤"},{"annotation":"man singer: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F3A4","order":1126,"shortcodes":["man_singer_tone4"],"unicode":"👨🏾🎤"},{"annotation":"man singer: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F3A4","order":1127,"shortcodes":["man_singer_tone5"],"unicode":"👨🏿🎤"}]},{"annotation":"woman singer","group":1,"hexcode":"1F469-200D-1F3A4","order":1128,"shortcodes":["woman_singer"],"tags":["actor","entertainer","rock","singer","star","woman"],"unicode":"👩🎤","skins":[{"annotation":"woman singer: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F3A4","order":1129,"shortcodes":["woman_singer_tone1"],"unicode":"👩🏻🎤"},{"annotation":"woman singer: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F3A4","order":1130,"shortcodes":["woman_singer_tone2"],"unicode":"👩🏼🎤"},{"annotation":"woman singer: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F3A4","order":1131,"shortcodes":["woman_singer_tone3"],"unicode":"👩🏽🎤"},{"annotation":"woman singer: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F3A4","order":1132,"shortcodes":["woman_singer_tone4"],"unicode":"👩🏾🎤"},{"annotation":"woman singer: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F3A4","order":1133,"shortcodes":["woman_singer_tone5"],"unicode":"👩🏿🎤"}]},{"annotation":"artist","group":1,"hexcode":"1F9D1-200D-1F3A8","order":1134,"shortcodes":["person_artist"],"tags":["palette"],"unicode":"🧑🎨","skins":[{"annotation":"artist: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F3A8","order":1135,"shortcodes":["person_artist_tone1"],"unicode":"🧑🏻🎨"},{"annotation":"artist: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F3A8","order":1136,"shortcodes":["person_artist_tone2"],"unicode":"🧑🏼🎨"},{"annotation":"artist: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F3A8","order":1137,"shortcodes":["person_artist_tone3"],"unicode":"🧑🏽🎨"},{"annotation":"artist: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F3A8","order":1138,"shortcodes":["person_artist_tone4"],"unicode":"🧑🏾🎨"},{"annotation":"artist: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F3A8","order":1139,"shortcodes":["person_artist_tone5"],"unicode":"🧑🏿🎨"}]},{"annotation":"man artist","group":1,"hexcode":"1F468-200D-1F3A8","order":1140,"shortcodes":["man_artist"],"tags":["artist","man","palette"],"unicode":"👨🎨","skins":[{"annotation":"man artist: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F3A8","order":1141,"shortcodes":["man_artist_tone1"],"unicode":"👨🏻🎨"},{"annotation":"man artist: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F3A8","order":1142,"shortcodes":["man_artist_tone2"],"unicode":"👨🏼🎨"},{"annotation":"man artist: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F3A8","order":1143,"shortcodes":["man_artist_tone3"],"unicode":"👨🏽🎨"},{"annotation":"man artist: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F3A8","order":1144,"shortcodes":["man_artist_tone4"],"unicode":"👨🏾🎨"},{"annotation":"man artist: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F3A8","order":1145,"shortcodes":["man_artist_tone5"],"unicode":"👨🏿🎨"}]},{"annotation":"woman artist","group":1,"hexcode":"1F469-200D-1F3A8","order":1146,"shortcodes":["woman_artist"],"tags":["artist","palette","woman"],"unicode":"👩🎨","skins":[{"annotation":"woman artist: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F3A8","order":1147,"shortcodes":["woman_artist_tone1"],"unicode":"👩🏻🎨"},{"annotation":"woman artist: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F3A8","order":1148,"shortcodes":["woman_artist_tone2"],"unicode":"👩🏼🎨"},{"annotation":"woman artist: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F3A8","order":1149,"shortcodes":["woman_artist_tone3"],"unicode":"👩🏽🎨"},{"annotation":"woman artist: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F3A8","order":1150,"shortcodes":["woman_artist_tone4"],"unicode":"👩🏾🎨"},{"annotation":"woman artist: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F3A8","order":1151,"shortcodes":["woman_artist_tone5"],"unicode":"👩🏿🎨"}]},{"annotation":"pilot","group":1,"hexcode":"1F9D1-200D-2708-FE0F","order":1152,"shortcodes":["person_pilot"],"tags":["plane"],"unicode":"🧑✈️","skins":[{"annotation":"pilot: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-2708-FE0F","order":1154,"shortcodes":["person_pilot_tone1"],"unicode":"🧑🏻✈️"},{"annotation":"pilot: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-2708-FE0F","order":1156,"shortcodes":["person_pilot_tone2"],"unicode":"🧑🏼✈️"},{"annotation":"pilot: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-2708-FE0F","order":1158,"shortcodes":["person_pilot_tone3"],"unicode":"🧑🏽✈️"},{"annotation":"pilot: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-2708-FE0F","order":1160,"shortcodes":["person_pilot_tone4"],"unicode":"🧑🏾✈️"},{"annotation":"pilot: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-2708-FE0F","order":1162,"shortcodes":["person_pilot_tone5"],"unicode":"🧑🏿✈️"}]},{"annotation":"man pilot","group":1,"hexcode":"1F468-200D-2708-FE0F","order":1164,"shortcodes":["man_pilot"],"tags":["man","pilot","plane"],"unicode":"👨✈️","skins":[{"annotation":"man pilot: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-2708-FE0F","order":1166,"shortcodes":["man_pilot_tone1"],"unicode":"👨🏻✈️"},{"annotation":"man pilot: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-2708-FE0F","order":1168,"shortcodes":["man_pilot_tone2"],"unicode":"👨🏼✈️"},{"annotation":"man pilot: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-2708-FE0F","order":1170,"shortcodes":["man_pilot_tone3"],"unicode":"👨🏽✈️"},{"annotation":"man pilot: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-2708-FE0F","order":1172,"shortcodes":["man_pilot_tone4"],"unicode":"👨🏾✈️"},{"annotation":"man pilot: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-2708-FE0F","order":1174,"shortcodes":["man_pilot_tone5"],"unicode":"👨🏿✈️"}]},{"annotation":"woman pilot","group":1,"hexcode":"1F469-200D-2708-FE0F","order":1176,"shortcodes":["woman_pilot"],"tags":["pilot","plane","woman"],"unicode":"👩✈️","skins":[{"annotation":"woman pilot: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-2708-FE0F","order":1178,"shortcodes":["woman_pilot_tone1"],"unicode":"👩🏻✈️"},{"annotation":"woman pilot: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-2708-FE0F","order":1180,"shortcodes":["woman_pilot_tone2"],"unicode":"👩🏼✈️"},{"annotation":"woman pilot: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-2708-FE0F","order":1182,"shortcodes":["woman_pilot_tone3"],"unicode":"👩🏽✈️"},{"annotation":"woman pilot: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-2708-FE0F","order":1184,"shortcodes":["woman_pilot_tone4"],"unicode":"👩🏾✈️"},{"annotation":"woman pilot: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-2708-FE0F","order":1186,"shortcodes":["woman_pilot_tone5"],"unicode":"👩🏿✈️"}]},{"annotation":"astronaut","group":1,"hexcode":"1F9D1-200D-1F680","order":1188,"shortcodes":["person_astronaut"],"tags":["rocket"],"unicode":"🧑🚀","skins":[{"annotation":"astronaut: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F680","order":1189,"shortcodes":["person_astronaut_tone1"],"unicode":"🧑🏻🚀"},{"annotation":"astronaut: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F680","order":1190,"shortcodes":["person_astronaut_tone2"],"unicode":"🧑🏼🚀"},{"annotation":"astronaut: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F680","order":1191,"shortcodes":["person_astronaut_tone3"],"unicode":"🧑🏽🚀"},{"annotation":"astronaut: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F680","order":1192,"shortcodes":["person_astronaut_tone4"],"unicode":"🧑🏾🚀"},{"annotation":"astronaut: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F680","order":1193,"shortcodes":["person_astronaut_tone5"],"unicode":"🧑🏿🚀"}]},{"annotation":"man astronaut","group":1,"hexcode":"1F468-200D-1F680","order":1194,"shortcodes":["man_astronaut"],"tags":["astronaut","man","rocket"],"unicode":"👨🚀","skins":[{"annotation":"man astronaut: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F680","order":1195,"shortcodes":["man_astronaut_tone1"],"unicode":"👨🏻🚀"},{"annotation":"man astronaut: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F680","order":1196,"shortcodes":["man_astronaut_tone2"],"unicode":"👨🏼🚀"},{"annotation":"man astronaut: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F680","order":1197,"shortcodes":["man_astronaut_tone3"],"unicode":"👨🏽🚀"},{"annotation":"man astronaut: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F680","order":1198,"shortcodes":["man_astronaut_tone4"],"unicode":"👨🏾🚀"},{"annotation":"man astronaut: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F680","order":1199,"shortcodes":["man_astronaut_tone5"],"unicode":"👨🏿🚀"}]},{"annotation":"woman astronaut","group":1,"hexcode":"1F469-200D-1F680","order":1200,"shortcodes":["woman_astronaut"],"tags":["astronaut","rocket","woman"],"unicode":"👩🚀","skins":[{"annotation":"woman astronaut: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F680","order":1201,"shortcodes":["woman_astronaut_tone1"],"unicode":"👩🏻🚀"},{"annotation":"woman astronaut: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F680","order":1202,"shortcodes":["woman_astronaut_tone2"],"unicode":"👩🏼🚀"},{"annotation":"woman astronaut: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F680","order":1203,"shortcodes":["woman_astronaut_tone3"],"unicode":"👩🏽🚀"},{"annotation":"woman astronaut: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F680","order":1204,"shortcodes":["woman_astronaut_tone4"],"unicode":"👩🏾🚀"},{"annotation":"woman astronaut: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F680","order":1205,"shortcodes":["woman_astronaut_tone5"],"unicode":"👩🏿🚀"}]},{"annotation":"firefighter","group":1,"hexcode":"1F9D1-200D-1F692","order":1206,"shortcodes":["person_firefighter"],"tags":["firetruck"],"unicode":"🧑🚒","skins":[{"annotation":"firefighter: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F692","order":1207,"shortcodes":["person_firefighter_tone1"],"unicode":"🧑🏻🚒"},{"annotation":"firefighter: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F692","order":1208,"shortcodes":["person_firefighter_tone2"],"unicode":"🧑🏼🚒"},{"annotation":"firefighter: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F692","order":1209,"shortcodes":["person_firefighter_tone3"],"unicode":"🧑🏽🚒"},{"annotation":"firefighter: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F692","order":1210,"shortcodes":["person_firefighter_tone4"],"unicode":"🧑🏾🚒"},{"annotation":"firefighter: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F692","order":1211,"shortcodes":["person_firefighter_tone5"],"unicode":"🧑🏿🚒"}]},{"annotation":"man firefighter","group":1,"hexcode":"1F468-200D-1F692","order":1212,"shortcodes":["man_firefighter"],"tags":["firefighter","firetruck","man"],"unicode":"👨🚒","skins":[{"annotation":"man firefighter: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F692","order":1213,"shortcodes":["man_firefighter_tone1"],"unicode":"👨🏻🚒"},{"annotation":"man firefighter: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F692","order":1214,"shortcodes":["man_firefighter_tone2"],"unicode":"👨🏼🚒"},{"annotation":"man firefighter: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F692","order":1215,"shortcodes":["man_firefighter_tone3"],"unicode":"👨🏽🚒"},{"annotation":"man firefighter: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F692","order":1216,"shortcodes":["man_firefighter_tone4"],"unicode":"👨🏾🚒"},{"annotation":"man firefighter: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F692","order":1217,"shortcodes":["man_firefighter_tone5"],"unicode":"👨🏿🚒"}]},{"annotation":"woman firefighter","group":1,"hexcode":"1F469-200D-1F692","order":1218,"shortcodes":["woman_firefighter"],"tags":["firefighter","firetruck","woman"],"unicode":"👩🚒","skins":[{"annotation":"woman firefighter: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F692","order":1219,"shortcodes":["woman_firefighter_tone1"],"unicode":"👩🏻🚒"},{"annotation":"woman firefighter: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F692","order":1220,"shortcodes":["woman_firefighter_tone2"],"unicode":"👩🏼🚒"},{"annotation":"woman firefighter: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F692","order":1221,"shortcodes":["woman_firefighter_tone3"],"unicode":"👩🏽🚒"},{"annotation":"woman firefighter: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F692","order":1222,"shortcodes":["woman_firefighter_tone4"],"unicode":"👩🏾🚒"},{"annotation":"woman firefighter: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F692","order":1223,"shortcodes":["woman_firefighter_tone5"],"unicode":"👩🏿🚒"}]},{"annotation":"police officer","group":1,"hexcode":"1F46E","order":1224,"shortcodes":["police_officer"],"tags":["cop","officer","police"],"unicode":"👮","skins":[{"annotation":"police officer: light skin tone","group":1,"hexcode":"1F46E-1F3FB","order":1225,"shortcodes":["police_officer_tone1"],"unicode":"👮🏻"},{"annotation":"police officer: medium-light skin tone","group":1,"hexcode":"1F46E-1F3FC","order":1226,"shortcodes":["police_officer_tone2"],"unicode":"👮🏼"},{"annotation":"police officer: medium skin tone","group":1,"hexcode":"1F46E-1F3FD","order":1227,"shortcodes":["police_officer_tone3"],"unicode":"👮🏽"},{"annotation":"police officer: medium-dark skin tone","group":1,"hexcode":"1F46E-1F3FE","order":1228,"shortcodes":["police_officer_tone4"],"unicode":"👮🏾"},{"annotation":"police officer: dark skin tone","group":1,"hexcode":"1F46E-1F3FF","order":1229,"shortcodes":["police_officer_tone5"],"unicode":"👮🏿"}]},{"annotation":"man police officer","group":1,"hexcode":"1F46E-200D-2642-FE0F","order":1230,"shortcodes":["man_police_officer"],"tags":["cop","man","officer","police"],"unicode":"👮♂️","skins":[{"annotation":"man police officer: light skin tone","group":1,"hexcode":"1F46E-1F3FB-200D-2642-FE0F","order":1232,"shortcodes":["man_police_officer_tone1"],"unicode":"👮🏻♂️"},{"annotation":"man police officer: medium-light skin tone","group":1,"hexcode":"1F46E-1F3FC-200D-2642-FE0F","order":1234,"shortcodes":["man_police_officer_tone2"],"unicode":"👮🏼♂️"},{"annotation":"man police officer: medium skin tone","group":1,"hexcode":"1F46E-1F3FD-200D-2642-FE0F","order":1236,"shortcodes":["man_police_officer_tone3"],"unicode":"👮🏽♂️"},{"annotation":"man police officer: medium-dark skin tone","group":1,"hexcode":"1F46E-1F3FE-200D-2642-FE0F","order":1238,"shortcodes":["man_police_officer_tone4"],"unicode":"👮🏾♂️"},{"annotation":"man police officer: dark skin tone","group":1,"hexcode":"1F46E-1F3FF-200D-2642-FE0F","order":1240,"shortcodes":["man_police_officer_tone5"],"unicode":"👮🏿♂️"}]},{"annotation":"woman police officer","group":1,"hexcode":"1F46E-200D-2640-FE0F","order":1242,"shortcodes":["woman_police_officer"],"tags":["cop","officer","police","woman"],"unicode":"👮♀️","skins":[{"annotation":"woman police officer: light skin tone","group":1,"hexcode":"1F46E-1F3FB-200D-2640-FE0F","order":1244,"shortcodes":["woman_police_officer_tone1"],"unicode":"👮🏻♀️"},{"annotation":"woman police officer: medium-light skin tone","group":1,"hexcode":"1F46E-1F3FC-200D-2640-FE0F","order":1246,"shortcodes":["woman_police_officer_tone2"],"unicode":"👮🏼♀️"},{"annotation":"woman police officer: medium skin tone","group":1,"hexcode":"1F46E-1F3FD-200D-2640-FE0F","order":1248,"shortcodes":["woman_police_officer_tone3"],"unicode":"👮🏽♀️"},{"annotation":"woman police officer: medium-dark skin tone","group":1,"hexcode":"1F46E-1F3FE-200D-2640-FE0F","order":1250,"shortcodes":["woman_police_officer_tone4"],"unicode":"👮🏾♀️"},{"annotation":"woman police officer: dark skin tone","group":1,"hexcode":"1F46E-1F3FF-200D-2640-FE0F","order":1252,"shortcodes":["woman_police_officer_tone5"],"unicode":"👮🏿♀️"}]},{"annotation":"detective","group":1,"hexcode":"1F575","order":1255,"shortcodes":["detective"],"tags":["sleuth","spy"],"unicode":"🕵️","skins":[{"annotation":"detective: light skin tone","group":1,"hexcode":"1F575-1F3FB","order":1256,"shortcodes":["detective_tone1"],"unicode":"🕵🏻"},{"annotation":"detective: medium-light skin tone","group":1,"hexcode":"1F575-1F3FC","order":1257,"shortcodes":["detective_tone2"],"unicode":"🕵🏼"},{"annotation":"detective: medium skin tone","group":1,"hexcode":"1F575-1F3FD","order":1258,"shortcodes":["detective_tone3"],"unicode":"🕵🏽"},{"annotation":"detective: medium-dark skin tone","group":1,"hexcode":"1F575-1F3FE","order":1259,"shortcodes":["detective_tone4"],"unicode":"🕵🏾"},{"annotation":"detective: dark skin tone","group":1,"hexcode":"1F575-1F3FF","order":1260,"shortcodes":["detective_tone5"],"unicode":"🕵🏿"}]},{"annotation":"man detective","group":1,"hexcode":"1F575-FE0F-200D-2642-FE0F","order":1261,"shortcodes":["man_detective"],"tags":["detective","man","sleuth","spy"],"unicode":"🕵️♂️","skins":[{"annotation":"man detective: light skin tone","group":1,"hexcode":"1F575-1F3FB-200D-2642-FE0F","order":1265,"shortcodes":["man_detective_tone1"],"unicode":"🕵🏻♂️"},{"annotation":"man detective: medium-light skin tone","group":1,"hexcode":"1F575-1F3FC-200D-2642-FE0F","order":1267,"shortcodes":["man_detective_tone2"],"unicode":"🕵🏼♂️"},{"annotation":"man detective: medium skin tone","group":1,"hexcode":"1F575-1F3FD-200D-2642-FE0F","order":1269,"shortcodes":["man_detective_tone3"],"unicode":"🕵🏽♂️"},{"annotation":"man detective: medium-dark skin tone","group":1,"hexcode":"1F575-1F3FE-200D-2642-FE0F","order":1271,"shortcodes":["man_detective_tone4"],"unicode":"🕵🏾♂️"},{"annotation":"man detective: dark skin tone","group":1,"hexcode":"1F575-1F3FF-200D-2642-FE0F","order":1273,"shortcodes":["man_detective_tone5"],"unicode":"🕵🏿♂️"}]},{"annotation":"woman detective","group":1,"hexcode":"1F575-FE0F-200D-2640-FE0F","order":1275,"shortcodes":["woman_detective"],"tags":["detective","sleuth","spy","woman"],"unicode":"🕵️♀️","skins":[{"annotation":"woman detective: light skin tone","group":1,"hexcode":"1F575-1F3FB-200D-2640-FE0F","order":1279,"shortcodes":["woman_detective_tone1"],"unicode":"🕵🏻♀️"},{"annotation":"woman detective: medium-light skin tone","group":1,"hexcode":"1F575-1F3FC-200D-2640-FE0F","order":1281,"shortcodes":["woman_detective_tone2"],"unicode":"🕵🏼♀️"},{"annotation":"woman detective: medium skin tone","group":1,"hexcode":"1F575-1F3FD-200D-2640-FE0F","order":1283,"shortcodes":["woman_detective_tone3"],"unicode":"🕵🏽♀️"},{"annotation":"woman detective: medium-dark skin tone","group":1,"hexcode":"1F575-1F3FE-200D-2640-FE0F","order":1285,"shortcodes":["woman_detective_tone4"],"unicode":"🕵🏾♀️"},{"annotation":"woman detective: dark skin tone","group":1,"hexcode":"1F575-1F3FF-200D-2640-FE0F","order":1287,"shortcodes":["woman_detective_tone5"],"unicode":"🕵🏿♀️"}]},{"annotation":"guard","group":1,"hexcode":"1F482","order":1289,"shortcodes":["guard"],"tags":["guard"],"unicode":"💂","skins":[{"annotation":"guard: light skin tone","group":1,"hexcode":"1F482-1F3FB","order":1290,"shortcodes":["guard_tone1"],"unicode":"💂🏻"},{"annotation":"guard: medium-light skin tone","group":1,"hexcode":"1F482-1F3FC","order":1291,"shortcodes":["guard_tone2"],"unicode":"💂🏼"},{"annotation":"guard: medium skin tone","group":1,"hexcode":"1F482-1F3FD","order":1292,"shortcodes":["guard_tone3"],"unicode":"💂🏽"},{"annotation":"guard: medium-dark skin tone","group":1,"hexcode":"1F482-1F3FE","order":1293,"shortcodes":["guard_tone4"],"unicode":"💂🏾"},{"annotation":"guard: dark skin tone","group":1,"hexcode":"1F482-1F3FF","order":1294,"shortcodes":["guard_tone5"],"unicode":"💂🏿"}]},{"annotation":"man guard","group":1,"hexcode":"1F482-200D-2642-FE0F","order":1295,"shortcodes":["man_guard"],"tags":["guard","man"],"unicode":"💂♂️","skins":[{"annotation":"man guard: light skin tone","group":1,"hexcode":"1F482-1F3FB-200D-2642-FE0F","order":1297,"shortcodes":["man_guard_tone1"],"unicode":"💂🏻♂️"},{"annotation":"man guard: medium-light skin tone","group":1,"hexcode":"1F482-1F3FC-200D-2642-FE0F","order":1299,"shortcodes":["man_guard_tone2"],"unicode":"💂🏼♂️"},{"annotation":"man guard: medium skin tone","group":1,"hexcode":"1F482-1F3FD-200D-2642-FE0F","order":1301,"shortcodes":["man_guard_tone3"],"unicode":"💂🏽♂️"},{"annotation":"man guard: medium-dark skin tone","group":1,"hexcode":"1F482-1F3FE-200D-2642-FE0F","order":1303,"shortcodes":["man_guard_tone4"],"unicode":"💂🏾♂️"},{"annotation":"man guard: dark skin tone","group":1,"hexcode":"1F482-1F3FF-200D-2642-FE0F","order":1305,"shortcodes":["man_guard_tone5"],"unicode":"💂🏿♂️"}]},{"annotation":"woman guard","group":1,"hexcode":"1F482-200D-2640-FE0F","order":1307,"shortcodes":["woman_guard"],"tags":["guard","woman"],"unicode":"💂♀️","skins":[{"annotation":"woman guard: light skin tone","group":1,"hexcode":"1F482-1F3FB-200D-2640-FE0F","order":1309,"shortcodes":["woman_guard_tone1"],"unicode":"💂🏻♀️"},{"annotation":"woman guard: medium-light skin tone","group":1,"hexcode":"1F482-1F3FC-200D-2640-FE0F","order":1311,"shortcodes":["woman_guard_tone2"],"unicode":"💂🏼♀️"},{"annotation":"woman guard: medium skin tone","group":1,"hexcode":"1F482-1F3FD-200D-2640-FE0F","order":1313,"shortcodes":["woman_guard_tone3"],"unicode":"💂🏽♀️"},{"annotation":"woman guard: medium-dark skin tone","group":1,"hexcode":"1F482-1F3FE-200D-2640-FE0F","order":1315,"shortcodes":["woman_guard_tone4"],"unicode":"💂🏾♀️"},{"annotation":"woman guard: dark skin tone","group":1,"hexcode":"1F482-1F3FF-200D-2640-FE0F","order":1317,"shortcodes":["woman_guard_tone5"],"unicode":"💂🏿♀️"}]},{"annotation":"ninja","group":1,"hexcode":"1F977","order":1319,"shortcodes":["ninja"],"tags":["fighter","hidden","stealth"],"unicode":"🥷","skins":[{"annotation":"ninja: light skin tone","group":1,"hexcode":"1F977-1F3FB","order":1320,"shortcodes":["ninja_tone1"],"unicode":"🥷🏻"},{"annotation":"ninja: medium-light skin tone","group":1,"hexcode":"1F977-1F3FC","order":1321,"shortcodes":["ninja_tone2"],"unicode":"🥷🏼"},{"annotation":"ninja: medium skin tone","group":1,"hexcode":"1F977-1F3FD","order":1322,"shortcodes":["ninja_tone3"],"unicode":"🥷🏽"},{"annotation":"ninja: medium-dark skin tone","group":1,"hexcode":"1F977-1F3FE","order":1323,"shortcodes":["ninja_tone4"],"unicode":"🥷🏾"},{"annotation":"ninja: dark skin tone","group":1,"hexcode":"1F977-1F3FF","order":1324,"shortcodes":["ninja_tone5"],"unicode":"🥷🏿"}]},{"annotation":"construction worker","group":1,"hexcode":"1F477","order":1325,"shortcodes":["construction_worker"],"tags":["construction","hat","worker"],"unicode":"👷","skins":[{"annotation":"construction worker: light skin tone","group":1,"hexcode":"1F477-1F3FB","order":1326,"shortcodes":["construction_worker_tone1"],"unicode":"👷🏻"},{"annotation":"construction worker: medium-light skin tone","group":1,"hexcode":"1F477-1F3FC","order":1327,"shortcodes":["construction_worker_tone2"],"unicode":"👷🏼"},{"annotation":"construction worker: medium skin tone","group":1,"hexcode":"1F477-1F3FD","order":1328,"shortcodes":["construction_worker_tone3"],"unicode":"👷🏽"},{"annotation":"construction worker: medium-dark skin tone","group":1,"hexcode":"1F477-1F3FE","order":1329,"shortcodes":["construction_worker_tone4"],"unicode":"👷🏾"},{"annotation":"construction worker: dark skin tone","group":1,"hexcode":"1F477-1F3FF","order":1330,"shortcodes":["construction_worker_tone5"],"unicode":"👷🏿"}]},{"annotation":"man construction worker","group":1,"hexcode":"1F477-200D-2642-FE0F","order":1331,"shortcodes":["man_construction_worker"],"tags":["construction","man","worker"],"unicode":"👷♂️","skins":[{"annotation":"man construction worker: light skin tone","group":1,"hexcode":"1F477-1F3FB-200D-2642-FE0F","order":1333,"shortcodes":["man_construction_worker_tone1"],"unicode":"👷🏻♂️"},{"annotation":"man construction worker: medium-light skin tone","group":1,"hexcode":"1F477-1F3FC-200D-2642-FE0F","order":1335,"shortcodes":["man_construction_worker_tone2"],"unicode":"👷🏼♂️"},{"annotation":"man construction worker: medium skin tone","group":1,"hexcode":"1F477-1F3FD-200D-2642-FE0F","order":1337,"shortcodes":["man_construction_worker_tone3"],"unicode":"👷🏽♂️"},{"annotation":"man construction worker: medium-dark skin tone","group":1,"hexcode":"1F477-1F3FE-200D-2642-FE0F","order":1339,"shortcodes":["man_construction_worker_tone4"],"unicode":"👷🏾♂️"},{"annotation":"man construction worker: dark skin tone","group":1,"hexcode":"1F477-1F3FF-200D-2642-FE0F","order":1341,"shortcodes":["man_construction_worker_tone5"],"unicode":"👷🏿♂️"}]},{"annotation":"woman construction worker","group":1,"hexcode":"1F477-200D-2640-FE0F","order":1343,"shortcodes":["woman_construction_worker"],"tags":["construction","woman","worker"],"unicode":"👷♀️","skins":[{"annotation":"woman construction worker: light skin tone","group":1,"hexcode":"1F477-1F3FB-200D-2640-FE0F","order":1345,"shortcodes":["woman_construction_worker_tone1"],"unicode":"👷🏻♀️"},{"annotation":"woman construction worker: medium-light skin tone","group":1,"hexcode":"1F477-1F3FC-200D-2640-FE0F","order":1347,"shortcodes":["woman_construction_worker_tone2"],"unicode":"👷🏼♀️"},{"annotation":"woman construction worker: medium skin tone","group":1,"hexcode":"1F477-1F3FD-200D-2640-FE0F","order":1349,"shortcodes":["woman_construction_worker_tone3"],"unicode":"👷🏽♀️"},{"annotation":"woman construction worker: medium-dark skin tone","group":1,"hexcode":"1F477-1F3FE-200D-2640-FE0F","order":1351,"shortcodes":["woman_construction_worker_tone4"],"unicode":"👷🏾♀️"},{"annotation":"woman construction worker: dark skin tone","group":1,"hexcode":"1F477-1F3FF-200D-2640-FE0F","order":1353,"shortcodes":["woman_construction_worker_tone5"],"unicode":"👷🏿♀️"}]},{"annotation":"prince","group":1,"hexcode":"1F934","order":1355,"shortcodes":["prince"],"tags":["prince"],"unicode":"🤴","skins":[{"annotation":"prince: light skin tone","group":1,"hexcode":"1F934-1F3FB","order":1356,"shortcodes":["prince_tone1"],"unicode":"🤴🏻"},{"annotation":"prince: medium-light skin tone","group":1,"hexcode":"1F934-1F3FC","order":1357,"shortcodes":["prince_tone2"],"unicode":"🤴🏼"},{"annotation":"prince: medium skin tone","group":1,"hexcode":"1F934-1F3FD","order":1358,"shortcodes":["prince_tone3"],"unicode":"🤴🏽"},{"annotation":"prince: medium-dark skin tone","group":1,"hexcode":"1F934-1F3FE","order":1359,"shortcodes":["prince_tone4"],"unicode":"🤴🏾"},{"annotation":"prince: dark skin tone","group":1,"hexcode":"1F934-1F3FF","order":1360,"shortcodes":["prince_tone5"],"unicode":"🤴🏿"}]},{"annotation":"princess","group":1,"hexcode":"1F478","order":1361,"shortcodes":["princess"],"tags":["fairy tale","fantasy"],"unicode":"👸","skins":[{"annotation":"princess: light skin tone","group":1,"hexcode":"1F478-1F3FB","order":1362,"shortcodes":["princess_tone1"],"unicode":"👸🏻"},{"annotation":"princess: medium-light skin tone","group":1,"hexcode":"1F478-1F3FC","order":1363,"shortcodes":["princess_tone2"],"unicode":"👸🏼"},{"annotation":"princess: medium skin tone","group":1,"hexcode":"1F478-1F3FD","order":1364,"shortcodes":["princess_tone3"],"unicode":"👸🏽"},{"annotation":"princess: medium-dark skin tone","group":1,"hexcode":"1F478-1F3FE","order":1365,"shortcodes":["princess_tone4"],"unicode":"👸🏾"},{"annotation":"princess: dark skin tone","group":1,"hexcode":"1F478-1F3FF","order":1366,"shortcodes":["princess_tone5"],"unicode":"👸🏿"}]},{"annotation":"person wearing turban","group":1,"hexcode":"1F473","order":1367,"shortcodes":["person_turban"],"tags":["turban"],"unicode":"👳","skins":[{"annotation":"person wearing turban: light skin tone","group":1,"hexcode":"1F473-1F3FB","order":1368,"shortcodes":["person_turban_tone1"],"unicode":"👳🏻"},{"annotation":"person wearing turban: medium-light skin tone","group":1,"hexcode":"1F473-1F3FC","order":1369,"shortcodes":["person_turban_tone2"],"unicode":"👳🏼"},{"annotation":"person wearing turban: medium skin tone","group":1,"hexcode":"1F473-1F3FD","order":1370,"shortcodes":["person_turban_tone3"],"unicode":"👳🏽"},{"annotation":"person wearing turban: medium-dark skin tone","group":1,"hexcode":"1F473-1F3FE","order":1371,"shortcodes":["person_turban_tone4"],"unicode":"👳🏾"},{"annotation":"person wearing turban: dark skin tone","group":1,"hexcode":"1F473-1F3FF","order":1372,"shortcodes":["person_turban_tone5"],"unicode":"👳🏿"}]},{"annotation":"man wearing turban","group":1,"hexcode":"1F473-200D-2642-FE0F","order":1373,"shortcodes":["man_turban"],"tags":["man","turban"],"unicode":"👳♂️","skins":[{"annotation":"man wearing turban: light skin tone","group":1,"hexcode":"1F473-1F3FB-200D-2642-FE0F","order":1375,"shortcodes":["man_turban_tone1"],"unicode":"👳🏻♂️"},{"annotation":"man wearing turban: medium-light skin tone","group":1,"hexcode":"1F473-1F3FC-200D-2642-FE0F","order":1377,"shortcodes":["man_turban_tone2"],"unicode":"👳🏼♂️"},{"annotation":"man wearing turban: medium skin tone","group":1,"hexcode":"1F473-1F3FD-200D-2642-FE0F","order":1379,"shortcodes":["man_turban_tone3"],"unicode":"👳🏽♂️"},{"annotation":"man wearing turban: medium-dark skin tone","group":1,"hexcode":"1F473-1F3FE-200D-2642-FE0F","order":1381,"shortcodes":["man_turban_tone4"],"unicode":"👳🏾♂️"},{"annotation":"man wearing turban: dark skin tone","group":1,"hexcode":"1F473-1F3FF-200D-2642-FE0F","order":1383,"shortcodes":["man_turban_tone5"],"unicode":"👳🏿♂️"}]},{"annotation":"woman wearing turban","group":1,"hexcode":"1F473-200D-2640-FE0F","order":1385,"shortcodes":["woman_turban"],"tags":["turban","woman"],"unicode":"👳♀️","skins":[{"annotation":"woman wearing turban: light skin tone","group":1,"hexcode":"1F473-1F3FB-200D-2640-FE0F","order":1387,"shortcodes":["woman_turban_tone1"],"unicode":"👳🏻♀️"},{"annotation":"woman wearing turban: medium-light skin tone","group":1,"hexcode":"1F473-1F3FC-200D-2640-FE0F","order":1389,"shortcodes":["woman_turban_tone2"],"unicode":"👳🏼♀️"},{"annotation":"woman wearing turban: medium skin tone","group":1,"hexcode":"1F473-1F3FD-200D-2640-FE0F","order":1391,"shortcodes":["woman_turban_tone3"],"unicode":"👳🏽♀️"},{"annotation":"woman wearing turban: medium-dark skin tone","group":1,"hexcode":"1F473-1F3FE-200D-2640-FE0F","order":1393,"shortcodes":["woman_turban_tone4"],"unicode":"👳🏾♀️"},{"annotation":"woman wearing turban: dark skin tone","group":1,"hexcode":"1F473-1F3FF-200D-2640-FE0F","order":1395,"shortcodes":["woman_turban_tone5"],"unicode":"👳🏿♀️"}]},{"annotation":"person with skullcap","group":1,"hexcode":"1F472","order":1397,"shortcodes":["man_chinese_cap"],"tags":["cap","gua pi mao","hat","person","skullcap"],"unicode":"👲","skins":[{"annotation":"person with skullcap: light skin tone","group":1,"hexcode":"1F472-1F3FB","order":1398,"shortcodes":["man_chinese_cap_tone1"],"unicode":"👲🏻"},{"annotation":"person with skullcap: medium-light skin tone","group":1,"hexcode":"1F472-1F3FC","order":1399,"shortcodes":["man_chinese_cap_tone2"],"unicode":"👲🏼"},{"annotation":"person with skullcap: medium skin tone","group":1,"hexcode":"1F472-1F3FD","order":1400,"shortcodes":["man_chinese_cap_tone3"],"unicode":"👲🏽"},{"annotation":"person with skullcap: medium-dark skin tone","group":1,"hexcode":"1F472-1F3FE","order":1401,"shortcodes":["man_chinese_cap_tone4"],"unicode":"👲🏾"},{"annotation":"person with skullcap: dark skin tone","group":1,"hexcode":"1F472-1F3FF","order":1402,"shortcodes":["man_chinese_cap_tone5"],"unicode":"👲🏿"}]},{"annotation":"woman with headscarf","group":1,"hexcode":"1F9D5","order":1403,"shortcodes":["woman_headscarf"],"tags":["headscarf","hijab","mantilla","tichel"],"unicode":"🧕","skins":[{"annotation":"woman with headscarf: light skin tone","group":1,"hexcode":"1F9D5-1F3FB","order":1404,"shortcodes":["woman_headscarf_tone1"],"unicode":"🧕🏻"},{"annotation":"woman with headscarf: medium-light skin tone","group":1,"hexcode":"1F9D5-1F3FC","order":1405,"shortcodes":["woman_headscarf_tone2"],"unicode":"🧕🏼"},{"annotation":"woman with headscarf: medium skin tone","group":1,"hexcode":"1F9D5-1F3FD","order":1406,"shortcodes":["woman_headscarf_tone3"],"unicode":"🧕🏽"},{"annotation":"woman with headscarf: medium-dark skin tone","group":1,"hexcode":"1F9D5-1F3FE","order":1407,"shortcodes":["woman_headscarf_tone4"],"unicode":"🧕🏾"},{"annotation":"woman with headscarf: dark skin tone","group":1,"hexcode":"1F9D5-1F3FF","order":1408,"shortcodes":["woman_headscarf_tone5"],"unicode":"🧕🏿"}]},{"annotation":"person in tuxedo","group":1,"hexcode":"1F935","order":1409,"shortcodes":["man_tuxedo"],"tags":["groom","person","tuxedo"],"unicode":"🤵","skins":[{"annotation":"person in tuxedo: light skin tone","group":1,"hexcode":"1F935-1F3FB","order":1410,"shortcodes":["man_tuxedo_tone1"],"unicode":"🤵🏻"},{"annotation":"person in tuxedo: medium-light skin tone","group":1,"hexcode":"1F935-1F3FC","order":1411,"shortcodes":["man_tuxedo_tone2"],"unicode":"🤵🏼"},{"annotation":"person in tuxedo: medium skin tone","group":1,"hexcode":"1F935-1F3FD","order":1412,"shortcodes":["man_tuxedo_tone3"],"unicode":"🤵🏽"},{"annotation":"person in tuxedo: medium-dark skin tone","group":1,"hexcode":"1F935-1F3FE","order":1413,"shortcodes":["man_tuxedo_tone4"],"unicode":"🤵🏾"},{"annotation":"person in tuxedo: dark skin tone","group":1,"hexcode":"1F935-1F3FF","order":1414,"shortcodes":["man_tuxedo_tone5"],"unicode":"🤵🏿"}]},{"annotation":"man in tuxedo","group":1,"hexcode":"1F935-200D-2642-FE0F","order":1415,"shortcodes":["man_in_tuxedo"],"tags":["man","tuxedo"],"unicode":"🤵♂️","skins":[{"annotation":"man in tuxedo: light skin tone","group":1,"hexcode":"1F935-1F3FB-200D-2642-FE0F","order":1417,"shortcodes":["man_in_tuxedo_tone1"],"unicode":"🤵🏻♂️"},{"annotation":"man in tuxedo: medium-light skin tone","group":1,"hexcode":"1F935-1F3FC-200D-2642-FE0F","order":1419,"shortcodes":["man_in_tuxedo_tone2"],"unicode":"🤵🏼♂️"},{"annotation":"man in tuxedo: medium skin tone","group":1,"hexcode":"1F935-1F3FD-200D-2642-FE0F","order":1421,"shortcodes":["man_in_tuxedo_tone3"],"unicode":"🤵🏽♂️"},{"annotation":"man in tuxedo: medium-dark skin tone","group":1,"hexcode":"1F935-1F3FE-200D-2642-FE0F","order":1423,"shortcodes":["man_in_tuxedo_tone4"],"unicode":"🤵🏾♂️"},{"annotation":"man in tuxedo: dark skin tone","group":1,"hexcode":"1F935-1F3FF-200D-2642-FE0F","order":1425,"shortcodes":["man_in_tuxedo_tone5"],"unicode":"🤵🏿♂️"}]},{"annotation":"woman in tuxedo","group":1,"hexcode":"1F935-200D-2640-FE0F","order":1427,"shortcodes":["woman_in_tuxedo"],"tags":["tuxedo","woman"],"unicode":"🤵♀️","skins":[{"annotation":"woman in tuxedo: light skin tone","group":1,"hexcode":"1F935-1F3FB-200D-2640-FE0F","order":1429,"shortcodes":["woman_in_tuxedo_tone1"],"unicode":"🤵🏻♀️"},{"annotation":"woman in tuxedo: medium-light skin tone","group":1,"hexcode":"1F935-1F3FC-200D-2640-FE0F","order":1431,"shortcodes":["woman_in_tuxedo_tone2"],"unicode":"🤵🏼♀️"},{"annotation":"woman in tuxedo: medium skin tone","group":1,"hexcode":"1F935-1F3FD-200D-2640-FE0F","order":1433,"shortcodes":["woman_in_tuxedo_tone3"],"unicode":"🤵🏽♀️"},{"annotation":"woman in tuxedo: medium-dark skin tone","group":1,"hexcode":"1F935-1F3FE-200D-2640-FE0F","order":1435,"shortcodes":["woman_in_tuxedo_tone4"],"unicode":"🤵🏾♀️"},{"annotation":"woman in tuxedo: dark skin tone","group":1,"hexcode":"1F935-1F3FF-200D-2640-FE0F","order":1437,"shortcodes":["woman_in_tuxedo_tone5"],"unicode":"🤵🏿♀️"}]},{"annotation":"person with veil","group":1,"hexcode":"1F470","order":1439,"shortcodes":["person_veiled_bride","bride_veil"],"tags":["bride","person","veil","wedding"],"unicode":"👰","skins":[{"annotation":"person with veil: light skin tone","group":1,"hexcode":"1F470-1F3FB","order":1440,"shortcodes":["person_veiled_bride_tone1","bride_veil_tone1"],"unicode":"👰🏻"},{"annotation":"person with veil: medium-light skin tone","group":1,"hexcode":"1F470-1F3FC","order":1441,"shortcodes":["person_veiled_bride_tone2","bride_veil_tone2"],"unicode":"👰🏼"},{"annotation":"person with veil: medium skin tone","group":1,"hexcode":"1F470-1F3FD","order":1442,"shortcodes":["person_veiled_bride_tone3","bride_veil_tone3"],"unicode":"👰🏽"},{"annotation":"person with veil: medium-dark skin tone","group":1,"hexcode":"1F470-1F3FE","order":1443,"shortcodes":["person_veiled_bride_tone4","bride_veil_tone4"],"unicode":"👰🏾"},{"annotation":"person with veil: dark skin tone","group":1,"hexcode":"1F470-1F3FF","order":1444,"shortcodes":["person_veiled_bride_tone5","bride_veil_tone5"],"unicode":"👰🏿"}]},{"annotation":"man with veil","group":1,"hexcode":"1F470-200D-2642-FE0F","order":1445,"shortcodes":["man_veiled_bride"],"tags":["man","veil"],"unicode":"👰♂️","skins":[{"annotation":"man with veil: light skin tone","group":1,"hexcode":"1F470-1F3FB-200D-2642-FE0F","order":1447,"shortcodes":["man_veiled_bride_tone1"],"unicode":"👰🏻♂️"},{"annotation":"man with veil: medium-light skin tone","group":1,"hexcode":"1F470-1F3FC-200D-2642-FE0F","order":1449,"shortcodes":["man_veiled_bride_tone2"],"unicode":"👰🏼♂️"},{"annotation":"man with veil: medium skin tone","group":1,"hexcode":"1F470-1F3FD-200D-2642-FE0F","order":1451,"shortcodes":["man_veiled_bride_tone3"],"unicode":"👰🏽♂️"},{"annotation":"man with veil: medium-dark skin tone","group":1,"hexcode":"1F470-1F3FE-200D-2642-FE0F","order":1453,"shortcodes":["man_veiled_bride_tone4"],"unicode":"👰🏾♂️"},{"annotation":"man with veil: dark skin tone","group":1,"hexcode":"1F470-1F3FF-200D-2642-FE0F","order":1455,"shortcodes":["man_veiled_bride_tone5"],"unicode":"👰🏿♂️"}]},{"annotation":"woman with veil","group":1,"hexcode":"1F470-200D-2640-FE0F","order":1457,"shortcodes":["woman_veiled_bride"],"tags":["veil","woman"],"unicode":"👰♀️","skins":[{"annotation":"woman with veil: light skin tone","group":1,"hexcode":"1F470-1F3FB-200D-2640-FE0F","order":1459,"shortcodes":["woman_veiled_bride_tone1"],"unicode":"👰🏻♀️"},{"annotation":"woman with veil: medium-light skin tone","group":1,"hexcode":"1F470-1F3FC-200D-2640-FE0F","order":1461,"shortcodes":["woman_veiled_bride_tone2"],"unicode":"👰🏼♀️"},{"annotation":"woman with veil: medium skin tone","group":1,"hexcode":"1F470-1F3FD-200D-2640-FE0F","order":1463,"shortcodes":["woman_veiled_bride_tone3"],"unicode":"👰🏽♀️"},{"annotation":"woman with veil: medium-dark skin tone","group":1,"hexcode":"1F470-1F3FE-200D-2640-FE0F","order":1465,"shortcodes":["woman_veiled_bride_tone4"],"unicode":"👰🏾♀️"},{"annotation":"woman with veil: dark skin tone","group":1,"hexcode":"1F470-1F3FF-200D-2640-FE0F","order":1467,"shortcodes":["woman_veiled_bride_tone5"],"unicode":"👰🏿♀️"}]},{"annotation":"pregnant woman","group":1,"hexcode":"1F930","order":1469,"shortcodes":["pregnant_woman"],"tags":["pregnant","woman"],"unicode":"🤰","skins":[{"annotation":"pregnant woman: light skin tone","group":1,"hexcode":"1F930-1F3FB","order":1470,"shortcodes":["pregnant_woman_tone1"],"unicode":"🤰🏻"},{"annotation":"pregnant woman: medium-light skin tone","group":1,"hexcode":"1F930-1F3FC","order":1471,"shortcodes":["pregnant_woman_tone2"],"unicode":"🤰🏼"},{"annotation":"pregnant woman: medium skin tone","group":1,"hexcode":"1F930-1F3FD","order":1472,"shortcodes":["pregnant_woman_tone3"],"unicode":"🤰🏽"},{"annotation":"pregnant woman: medium-dark skin tone","group":1,"hexcode":"1F930-1F3FE","order":1473,"shortcodes":["pregnant_woman_tone4"],"unicode":"🤰🏾"},{"annotation":"pregnant woman: dark skin tone","group":1,"hexcode":"1F930-1F3FF","order":1474,"shortcodes":["pregnant_woman_tone5"],"unicode":"🤰🏿"}]},{"annotation":"breast-feeding","group":1,"hexcode":"1F931","order":1475,"shortcodes":["breast_feeding"],"tags":["baby","breast","nursing"],"unicode":"🤱","skins":[{"annotation":"breast-feeding: light skin tone","group":1,"hexcode":"1F931-1F3FB","order":1476,"shortcodes":["breast_feeding_tone1"],"unicode":"🤱🏻"},{"annotation":"breast-feeding: medium-light skin tone","group":1,"hexcode":"1F931-1F3FC","order":1477,"shortcodes":["breast_feeding_tone2"],"unicode":"🤱🏼"},{"annotation":"breast-feeding: medium skin tone","group":1,"hexcode":"1F931-1F3FD","order":1478,"shortcodes":["breast_feeding_tone3"],"unicode":"🤱🏽"},{"annotation":"breast-feeding: medium-dark skin tone","group":1,"hexcode":"1F931-1F3FE","order":1479,"shortcodes":["breast_feeding_tone4"],"unicode":"🤱🏾"},{"annotation":"breast-feeding: dark skin tone","group":1,"hexcode":"1F931-1F3FF","order":1480,"shortcodes":["breast_feeding_tone5"],"unicode":"🤱🏿"}]},{"annotation":"woman feeding baby","group":1,"hexcode":"1F469-200D-1F37C","order":1481,"shortcodes":["woman_feeding_baby"],"tags":["baby","feeding","nursing","woman"],"unicode":"👩🍼","skins":[{"annotation":"woman feeding baby: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F37C","order":1482,"shortcodes":["woman_feeding_baby_tone1"],"unicode":"👩🏻🍼"},{"annotation":"woman feeding baby: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F37C","order":1483,"shortcodes":["woman_feeding_baby_tone2"],"unicode":"👩🏼🍼"},{"annotation":"woman feeding baby: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F37C","order":1484,"shortcodes":["woman_feeding_baby_tone3"],"unicode":"👩🏽🍼"},{"annotation":"woman feeding baby: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F37C","order":1485,"shortcodes":["woman_feeding_baby_tone4"],"unicode":"👩🏾🍼"},{"annotation":"woman feeding baby: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F37C","order":1486,"shortcodes":["woman_feeding_baby_tone5"],"unicode":"👩🏿🍼"}]},{"annotation":"man feeding baby","group":1,"hexcode":"1F468-200D-1F37C","order":1487,"shortcodes":["man_feeding_baby"],"tags":["baby","feeding","man","nursing"],"unicode":"👨🍼","skins":[{"annotation":"man feeding baby: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F37C","order":1488,"shortcodes":["man_feeding_baby_tone1"],"unicode":"👨🏻🍼"},{"annotation":"man feeding baby: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F37C","order":1489,"shortcodes":["man_feeding_baby_tone2"],"unicode":"👨🏼🍼"},{"annotation":"man feeding baby: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F37C","order":1490,"shortcodes":["man_feeding_baby_tone3"],"unicode":"👨🏽🍼"},{"annotation":"man feeding baby: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F37C","order":1491,"shortcodes":["man_feeding_baby_tone4"],"unicode":"👨🏾🍼"},{"annotation":"man feeding baby: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F37C","order":1492,"shortcodes":["man_feeding_baby_tone5"],"unicode":"👨🏿🍼"}]},{"annotation":"person feeding baby","group":1,"hexcode":"1F9D1-200D-1F37C","order":1493,"shortcodes":["person_feeding_baby"],"tags":["baby","feeding","nursing","person"],"unicode":"🧑🍼","skins":[{"annotation":"person feeding baby: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F37C","order":1494,"shortcodes":["person_feeding_baby_tone1"],"unicode":"🧑🏻🍼"},{"annotation":"person feeding baby: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F37C","order":1495,"shortcodes":["person_feeding_baby_tone2"],"unicode":"🧑🏼🍼"},{"annotation":"person feeding baby: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F37C","order":1496,"shortcodes":["person_feeding_baby_tone3"],"unicode":"🧑🏽🍼"},{"annotation":"person feeding baby: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F37C","order":1497,"shortcodes":["person_feeding_baby_tone4"],"unicode":"🧑🏾🍼"},{"annotation":"person feeding baby: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F37C","order":1498,"shortcodes":["person_feeding_baby_tone5"],"unicode":"🧑🏿🍼"}]},{"annotation":"baby angel","group":1,"hexcode":"1F47C","order":1499,"shortcodes":["baby_angel"],"tags":["angel","baby","face","fairy tale","fantasy"],"unicode":"👼","skins":[{"annotation":"baby angel: light skin tone","group":1,"hexcode":"1F47C-1F3FB","order":1500,"shortcodes":["baby_angel_tone1"],"unicode":"👼🏻"},{"annotation":"baby angel: medium-light skin tone","group":1,"hexcode":"1F47C-1F3FC","order":1501,"shortcodes":["baby_angel_tone2"],"unicode":"👼🏼"},{"annotation":"baby angel: medium skin tone","group":1,"hexcode":"1F47C-1F3FD","order":1502,"shortcodes":["baby_angel_tone3"],"unicode":"👼🏽"},{"annotation":"baby angel: medium-dark skin tone","group":1,"hexcode":"1F47C-1F3FE","order":1503,"shortcodes":["baby_angel_tone4"],"unicode":"👼🏾"},{"annotation":"baby angel: dark skin tone","group":1,"hexcode":"1F47C-1F3FF","order":1504,"shortcodes":["baby_angel_tone5"],"unicode":"👼🏿"}]},{"annotation":"Santa Claus","group":1,"hexcode":"1F385","order":1505,"shortcodes":["santa"],"tags":["celebration","christmas","claus","father","santa","santa claus"],"unicode":"🎅","skins":[{"annotation":"Santa Claus: light skin tone","group":1,"hexcode":"1F385-1F3FB","order":1506,"shortcodes":["santa_tone1"],"unicode":"🎅🏻"},{"annotation":"Santa Claus: medium-light skin tone","group":1,"hexcode":"1F385-1F3FC","order":1507,"shortcodes":["santa_tone2"],"unicode":"🎅🏼"},{"annotation":"Santa Claus: medium skin tone","group":1,"hexcode":"1F385-1F3FD","order":1508,"shortcodes":["santa_tone3"],"unicode":"🎅🏽"},{"annotation":"Santa Claus: medium-dark skin tone","group":1,"hexcode":"1F385-1F3FE","order":1509,"shortcodes":["santa_tone4"],"unicode":"🎅🏾"},{"annotation":"Santa Claus: dark skin tone","group":1,"hexcode":"1F385-1F3FF","order":1510,"shortcodes":["santa_tone5"],"unicode":"🎅🏿"}]},{"annotation":"Mrs. Claus","group":1,"hexcode":"1F936","order":1511,"shortcodes":["mrs_claus"],"tags":["celebration","christmas","claus","mother","mrs.","mrs. claus"],"unicode":"🤶","skins":[{"annotation":"Mrs. Claus: light skin tone","group":1,"hexcode":"1F936-1F3FB","order":1512,"shortcodes":["mrs_claus_tone1"],"unicode":"🤶🏻"},{"annotation":"Mrs. Claus: medium-light skin tone","group":1,"hexcode":"1F936-1F3FC","order":1513,"shortcodes":["mrs_claus_tone2"],"unicode":"🤶🏼"},{"annotation":"Mrs. Claus: medium skin tone","group":1,"hexcode":"1F936-1F3FD","order":1514,"shortcodes":["mrs_claus_tone3"],"unicode":"🤶🏽"},{"annotation":"Mrs. Claus: medium-dark skin tone","group":1,"hexcode":"1F936-1F3FE","order":1515,"shortcodes":["mrs_claus_tone4"],"unicode":"🤶🏾"},{"annotation":"Mrs. Claus: dark skin tone","group":1,"hexcode":"1F936-1F3FF","order":1516,"shortcodes":["mrs_claus_tone5"],"unicode":"🤶🏿"}]},{"annotation":"mx claus","group":1,"hexcode":"1F9D1-200D-1F384","order":1517,"shortcodes":["mx_claus"],"tags":["claus, christmas"],"unicode":"🧑🎄","skins":[{"annotation":"mx claus: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F384","order":1518,"shortcodes":["mx_claus_tone1"],"unicode":"🧑🏻🎄"},{"annotation":"mx claus: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F384","order":1519,"shortcodes":["mx_claus_tone2"],"unicode":"🧑🏼🎄"},{"annotation":"mx claus: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F384","order":1520,"shortcodes":["mx_claus_tone3"],"unicode":"🧑🏽🎄"},{"annotation":"mx claus: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F384","order":1521,"shortcodes":["mx_claus_tone4"],"unicode":"🧑🏾🎄"},{"annotation":"mx claus: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F384","order":1522,"shortcodes":["mx_claus_tone5"],"unicode":"🧑🏿🎄"}]},{"annotation":"superhero","group":1,"hexcode":"1F9B8","order":1523,"shortcodes":["hero","superhero"],"tags":["good","hero","heroine","superpower"],"unicode":"🦸","skins":[{"annotation":"superhero: light skin tone","group":1,"hexcode":"1F9B8-1F3FB","order":1524,"shortcodes":["hero_tone1","superhero_tone1"],"unicode":"🦸🏻"},{"annotation":"superhero: medium-light skin tone","group":1,"hexcode":"1F9B8-1F3FC","order":1525,"shortcodes":["hero_tone2","superhero_tone2"],"unicode":"🦸🏼"},{"annotation":"superhero: medium skin tone","group":1,"hexcode":"1F9B8-1F3FD","order":1526,"shortcodes":["hero_tone3","superhero_tone3"],"unicode":"🦸🏽"},{"annotation":"superhero: medium-dark skin tone","group":1,"hexcode":"1F9B8-1F3FE","order":1527,"shortcodes":["hero_tone4","superhero_tone4"],"unicode":"🦸🏾"},{"annotation":"superhero: dark skin tone","group":1,"hexcode":"1F9B8-1F3FF","order":1528,"shortcodes":["hero_tone5","superhero_tone5"],"unicode":"🦸🏿"}]},{"annotation":"man superhero","group":1,"hexcode":"1F9B8-200D-2642-FE0F","order":1529,"shortcodes":["man_hero"],"tags":["good","hero","man","superpower"],"unicode":"🦸♂️","skins":[{"annotation":"man superhero: light skin tone","group":1,"hexcode":"1F9B8-1F3FB-200D-2642-FE0F","order":1531,"shortcodes":["man_hero_tone1"],"unicode":"🦸🏻♂️"},{"annotation":"man superhero: medium-light skin tone","group":1,"hexcode":"1F9B8-1F3FC-200D-2642-FE0F","order":1533,"shortcodes":["man_hero_tone2"],"unicode":"🦸🏼♂️"},{"annotation":"man superhero: medium skin tone","group":1,"hexcode":"1F9B8-1F3FD-200D-2642-FE0F","order":1535,"shortcodes":["man_hero_tone3"],"unicode":"🦸🏽♂️"},{"annotation":"man superhero: medium-dark skin tone","group":1,"hexcode":"1F9B8-1F3FE-200D-2642-FE0F","order":1537,"shortcodes":["man_hero_tone4"],"unicode":"🦸🏾♂️"},{"annotation":"man superhero: dark skin tone","group":1,"hexcode":"1F9B8-1F3FF-200D-2642-FE0F","order":1539,"shortcodes":["man_hero_tone5"],"unicode":"🦸🏿♂️"}]},{"annotation":"woman superhero","group":1,"hexcode":"1F9B8-200D-2640-FE0F","order":1541,"shortcodes":["woman_hero"],"tags":["good","hero","heroine","superpower","woman"],"unicode":"🦸♀️","skins":[{"annotation":"woman superhero: light skin tone","group":1,"hexcode":"1F9B8-1F3FB-200D-2640-FE0F","order":1543,"shortcodes":["woman_hero_tone1"],"unicode":"🦸🏻♀️"},{"annotation":"woman superhero: medium-light skin tone","group":1,"hexcode":"1F9B8-1F3FC-200D-2640-FE0F","order":1545,"shortcodes":["woman_hero_tone2"],"unicode":"🦸🏼♀️"},{"annotation":"woman superhero: medium skin tone","group":1,"hexcode":"1F9B8-1F3FD-200D-2640-FE0F","order":1547,"shortcodes":["woman_hero_tone3"],"unicode":"🦸🏽♀️"},{"annotation":"woman superhero: medium-dark skin tone","group":1,"hexcode":"1F9B8-1F3FE-200D-2640-FE0F","order":1549,"shortcodes":["woman_hero_tone4"],"unicode":"🦸🏾♀️"},{"annotation":"woman superhero: dark skin tone","group":1,"hexcode":"1F9B8-1F3FF-200D-2640-FE0F","order":1551,"shortcodes":["woman_hero_tone5"],"unicode":"🦸🏿♀️"}]},{"annotation":"supervillain","group":1,"hexcode":"1F9B9","order":1553,"shortcodes":["villain","supervillain"],"tags":["criminal","evil","superpower","villain"],"unicode":"🦹","skins":[{"annotation":"supervillain: light skin tone","group":1,"hexcode":"1F9B9-1F3FB","order":1554,"shortcodes":["villain_tone1","supervillain_tone1"],"unicode":"🦹🏻"},{"annotation":"supervillain: medium-light skin tone","group":1,"hexcode":"1F9B9-1F3FC","order":1555,"shortcodes":["villain_tone2","supervillain_tone2"],"unicode":"🦹🏼"},{"annotation":"supervillain: medium skin tone","group":1,"hexcode":"1F9B9-1F3FD","order":1556,"shortcodes":["villain_tone3","supervillain_tone3"],"unicode":"🦹🏽"},{"annotation":"supervillain: medium-dark skin tone","group":1,"hexcode":"1F9B9-1F3FE","order":1557,"shortcodes":["villain_tone4","supervillain_tone4"],"unicode":"🦹🏾"},{"annotation":"supervillain: dark skin tone","group":1,"hexcode":"1F9B9-1F3FF","order":1558,"shortcodes":["villain_tone5","supervillain_tone5"],"unicode":"🦹🏿"}]},{"annotation":"man supervillain","group":1,"hexcode":"1F9B9-200D-2642-FE0F","order":1559,"shortcodes":["man_villain"],"tags":["criminal","evil","man","superpower","villain"],"unicode":"🦹♂️","skins":[{"annotation":"man supervillain: light skin tone","group":1,"hexcode":"1F9B9-1F3FB-200D-2642-FE0F","order":1561,"shortcodes":["man_villain_tone1"],"unicode":"🦹🏻♂️"},{"annotation":"man supervillain: medium-light skin tone","group":1,"hexcode":"1F9B9-1F3FC-200D-2642-FE0F","order":1563,"shortcodes":["man_villain_tone2"],"unicode":"🦹🏼♂️"},{"annotation":"man supervillain: medium skin tone","group":1,"hexcode":"1F9B9-1F3FD-200D-2642-FE0F","order":1565,"shortcodes":["man_villain_tone3"],"unicode":"🦹🏽♂️"},{"annotation":"man supervillain: medium-dark skin tone","group":1,"hexcode":"1F9B9-1F3FE-200D-2642-FE0F","order":1567,"shortcodes":["man_villain_tone4"],"unicode":"🦹🏾♂️"},{"annotation":"man supervillain: dark skin tone","group":1,"hexcode":"1F9B9-1F3FF-200D-2642-FE0F","order":1569,"shortcodes":["man_villain_tone5"],"unicode":"🦹🏿♂️"}]},{"annotation":"woman supervillain","group":1,"hexcode":"1F9B9-200D-2640-FE0F","order":1571,"shortcodes":["woman_villain"],"tags":["criminal","evil","superpower","villain","woman"],"unicode":"🦹♀️","skins":[{"annotation":"woman supervillain: light skin tone","group":1,"hexcode":"1F9B9-1F3FB-200D-2640-FE0F","order":1573,"shortcodes":["woman_villain_tone1"],"unicode":"🦹🏻♀️"},{"annotation":"woman supervillain: medium-light skin tone","group":1,"hexcode":"1F9B9-1F3FC-200D-2640-FE0F","order":1575,"shortcodes":["woman_villain_tone2"],"unicode":"🦹🏼♀️"},{"annotation":"woman supervillain: medium skin tone","group":1,"hexcode":"1F9B9-1F3FD-200D-2640-FE0F","order":1577,"shortcodes":["woman_villain_tone3"],"unicode":"🦹🏽♀️"},{"annotation":"woman supervillain: medium-dark skin tone","group":1,"hexcode":"1F9B9-1F3FE-200D-2640-FE0F","order":1579,"shortcodes":["woman_villain_tone4"],"unicode":"🦹🏾♀️"},{"annotation":"woman supervillain: dark skin tone","group":1,"hexcode":"1F9B9-1F3FF-200D-2640-FE0F","order":1581,"shortcodes":["woman_villain_tone5"],"unicode":"🦹🏿♀️"}]},{"annotation":"mage","group":1,"hexcode":"1F9D9","order":1583,"shortcodes":["mage"],"tags":["sorcerer","sorceress","witch","wizard"],"unicode":"🧙","skins":[{"annotation":"mage: light skin tone","group":1,"hexcode":"1F9D9-1F3FB","order":1584,"shortcodes":["mage_tone1"],"unicode":"🧙🏻"},{"annotation":"mage: medium-light skin tone","group":1,"hexcode":"1F9D9-1F3FC","order":1585,"shortcodes":["mage_tone2"],"unicode":"🧙🏼"},{"annotation":"mage: medium skin tone","group":1,"hexcode":"1F9D9-1F3FD","order":1586,"shortcodes":["mage_tone3"],"unicode":"🧙🏽"},{"annotation":"mage: medium-dark skin tone","group":1,"hexcode":"1F9D9-1F3FE","order":1587,"shortcodes":["mage_tone4"],"unicode":"🧙🏾"},{"annotation":"mage: dark skin tone","group":1,"hexcode":"1F9D9-1F3FF","order":1588,"shortcodes":["mage_tone5"],"unicode":"🧙🏿"}]},{"annotation":"man mage","group":1,"hexcode":"1F9D9-200D-2642-FE0F","order":1589,"shortcodes":["man_mage"],"tags":["sorcerer","wizard"],"unicode":"🧙♂️","emoticon":":{>","skins":[{"annotation":"man mage: light skin tone","group":1,"hexcode":"1F9D9-1F3FB-200D-2642-FE0F","order":1591,"shortcodes":["man_mage_tone1"],"unicode":"🧙🏻♂️"},{"annotation":"man mage: medium-light skin tone","group":1,"hexcode":"1F9D9-1F3FC-200D-2642-FE0F","order":1593,"shortcodes":["man_mage_tone2"],"unicode":"🧙🏼♂️"},{"annotation":"man mage: medium skin tone","group":1,"hexcode":"1F9D9-1F3FD-200D-2642-FE0F","order":1595,"shortcodes":["man_mage_tone3"],"unicode":"🧙🏽♂️"},{"annotation":"man mage: medium-dark skin tone","group":1,"hexcode":"1F9D9-1F3FE-200D-2642-FE0F","order":1597,"shortcodes":["man_mage_tone4"],"unicode":"🧙🏾♂️"},{"annotation":"man mage: dark skin tone","group":1,"hexcode":"1F9D9-1F3FF-200D-2642-FE0F","order":1599,"shortcodes":["man_mage_tone5"],"unicode":"🧙🏿♂️"}]},{"annotation":"woman mage","group":1,"hexcode":"1F9D9-200D-2640-FE0F","order":1601,"shortcodes":["woman_mage"],"tags":["sorceress","witch"],"unicode":"🧙♀️","skins":[{"annotation":"woman mage: light skin tone","group":1,"hexcode":"1F9D9-1F3FB-200D-2640-FE0F","order":1603,"shortcodes":["woman_mage_tone1"],"unicode":"🧙🏻♀️"},{"annotation":"woman mage: medium-light skin tone","group":1,"hexcode":"1F9D9-1F3FC-200D-2640-FE0F","order":1605,"shortcodes":["woman_mage_tone2"],"unicode":"🧙🏼♀️"},{"annotation":"woman mage: medium skin tone","group":1,"hexcode":"1F9D9-1F3FD-200D-2640-FE0F","order":1607,"shortcodes":["woman_mage_tone3"],"unicode":"🧙🏽♀️"},{"annotation":"woman mage: medium-dark skin tone","group":1,"hexcode":"1F9D9-1F3FE-200D-2640-FE0F","order":1609,"shortcodes":["woman_mage_tone4"],"unicode":"🧙🏾♀️"},{"annotation":"woman mage: dark skin tone","group":1,"hexcode":"1F9D9-1F3FF-200D-2640-FE0F","order":1611,"shortcodes":["woman_mage_tone5"],"unicode":"🧙🏿♀️"}]},{"annotation":"fairy","group":1,"hexcode":"1F9DA","order":1613,"shortcodes":["fairy"],"tags":["oberon","puck","titania"],"unicode":"🧚","skins":[{"annotation":"fairy: light skin tone","group":1,"hexcode":"1F9DA-1F3FB","order":1614,"shortcodes":["fairy_tone1"],"unicode":"🧚🏻"},{"annotation":"fairy: medium-light skin tone","group":1,"hexcode":"1F9DA-1F3FC","order":1615,"shortcodes":["fairy_tone2"],"unicode":"🧚🏼"},{"annotation":"fairy: medium skin tone","group":1,"hexcode":"1F9DA-1F3FD","order":1616,"shortcodes":["fairy_tone3"],"unicode":"🧚🏽"},{"annotation":"fairy: medium-dark skin tone","group":1,"hexcode":"1F9DA-1F3FE","order":1617,"shortcodes":["fairy_tone4"],"unicode":"🧚🏾"},{"annotation":"fairy: dark skin tone","group":1,"hexcode":"1F9DA-1F3FF","order":1618,"shortcodes":["fairy_tone5"],"unicode":"🧚🏿"}]},{"annotation":"man fairy","group":1,"hexcode":"1F9DA-200D-2642-FE0F","order":1619,"shortcodes":["man_fairy"],"tags":["oberon","puck"],"unicode":"🧚♂️","skins":[{"annotation":"man fairy: light skin tone","group":1,"hexcode":"1F9DA-1F3FB-200D-2642-FE0F","order":1621,"shortcodes":["man_fairy_tone1"],"unicode":"🧚🏻♂️"},{"annotation":"man fairy: medium-light skin tone","group":1,"hexcode":"1F9DA-1F3FC-200D-2642-FE0F","order":1623,"shortcodes":["man_fairy_tone2"],"unicode":"🧚🏼♂️"},{"annotation":"man fairy: medium skin tone","group":1,"hexcode":"1F9DA-1F3FD-200D-2642-FE0F","order":1625,"shortcodes":["man_fairy_tone3"],"unicode":"🧚🏽♂️"},{"annotation":"man fairy: medium-dark skin tone","group":1,"hexcode":"1F9DA-1F3FE-200D-2642-FE0F","order":1627,"shortcodes":["man_fairy_tone4"],"unicode":"🧚🏾♂️"},{"annotation":"man fairy: dark skin tone","group":1,"hexcode":"1F9DA-1F3FF-200D-2642-FE0F","order":1629,"shortcodes":["man_fairy_tone5"],"unicode":"🧚🏿♂️"}]},{"annotation":"woman fairy","group":1,"hexcode":"1F9DA-200D-2640-FE0F","order":1631,"shortcodes":["woman_fairy"],"tags":["titania"],"unicode":"🧚♀️","skins":[{"annotation":"woman fairy: light skin tone","group":1,"hexcode":"1F9DA-1F3FB-200D-2640-FE0F","order":1633,"shortcodes":["woman_fairy_tone1"],"unicode":"🧚🏻♀️"},{"annotation":"woman fairy: medium-light skin tone","group":1,"hexcode":"1F9DA-1F3FC-200D-2640-FE0F","order":1635,"shortcodes":["woman_fairy_tone2"],"unicode":"🧚🏼♀️"},{"annotation":"woman fairy: medium skin tone","group":1,"hexcode":"1F9DA-1F3FD-200D-2640-FE0F","order":1637,"shortcodes":["woman_fairy_tone3"],"unicode":"🧚🏽♀️"},{"annotation":"woman fairy: medium-dark skin tone","group":1,"hexcode":"1F9DA-1F3FE-200D-2640-FE0F","order":1639,"shortcodes":["woman_fairy_tone4"],"unicode":"🧚🏾♀️"},{"annotation":"woman fairy: dark skin tone","group":1,"hexcode":"1F9DA-1F3FF-200D-2640-FE0F","order":1641,"shortcodes":["woman_fairy_tone5"],"unicode":"🧚🏿♀️"}]},{"annotation":"vampire","group":1,"hexcode":"1F9DB","order":1643,"shortcodes":["vampire"],"tags":["dracula","undead"],"unicode":"🧛","emoticon":":E","skins":[{"annotation":"vampire: light skin tone","group":1,"hexcode":"1F9DB-1F3FB","order":1644,"shortcodes":["vampire_tone1"],"unicode":"🧛🏻"},{"annotation":"vampire: medium-light skin tone","group":1,"hexcode":"1F9DB-1F3FC","order":1645,"shortcodes":["vampire_tone2"],"unicode":"🧛🏼"},{"annotation":"vampire: medium skin tone","group":1,"hexcode":"1F9DB-1F3FD","order":1646,"shortcodes":["vampire_tone3"],"unicode":"🧛🏽"},{"annotation":"vampire: medium-dark skin tone","group":1,"hexcode":"1F9DB-1F3FE","order":1647,"shortcodes":["vampire_tone4"],"unicode":"🧛🏾"},{"annotation":"vampire: dark skin tone","group":1,"hexcode":"1F9DB-1F3FF","order":1648,"shortcodes":["vampire_tone5"],"unicode":"🧛🏿"}]},{"annotation":"man vampire","group":1,"hexcode":"1F9DB-200D-2642-FE0F","order":1649,"shortcodes":["man_vampire"],"tags":["dracula","undead"],"unicode":"🧛♂️","skins":[{"annotation":"man vampire: light skin tone","group":1,"hexcode":"1F9DB-1F3FB-200D-2642-FE0F","order":1651,"shortcodes":["man_vampire_tone1"],"unicode":"🧛🏻♂️"},{"annotation":"man vampire: medium-light skin tone","group":1,"hexcode":"1F9DB-1F3FC-200D-2642-FE0F","order":1653,"shortcodes":["man_vampire_tone2"],"unicode":"🧛🏼♂️"},{"annotation":"man vampire: medium skin tone","group":1,"hexcode":"1F9DB-1F3FD-200D-2642-FE0F","order":1655,"shortcodes":["man_vampire_tone3"],"unicode":"🧛🏽♂️"},{"annotation":"man vampire: medium-dark skin tone","group":1,"hexcode":"1F9DB-1F3FE-200D-2642-FE0F","order":1657,"shortcodes":["man_vampire_tone4"],"unicode":"🧛🏾♂️"},{"annotation":"man vampire: dark skin tone","group":1,"hexcode":"1F9DB-1F3FF-200D-2642-FE0F","order":1659,"shortcodes":["man_vampire_tone5"],"unicode":"🧛🏿♂️"}]},{"annotation":"woman vampire","group":1,"hexcode":"1F9DB-200D-2640-FE0F","order":1661,"shortcodes":["woman_vampire"],"tags":["undead"],"unicode":"🧛♀️","skins":[{"annotation":"woman vampire: light skin tone","group":1,"hexcode":"1F9DB-1F3FB-200D-2640-FE0F","order":1663,"shortcodes":["woman_vampire_tone1"],"unicode":"🧛🏻♀️"},{"annotation":"woman vampire: medium-light skin tone","group":1,"hexcode":"1F9DB-1F3FC-200D-2640-FE0F","order":1665,"shortcodes":["woman_vampire_tone2"],"unicode":"🧛🏼♀️"},{"annotation":"woman vampire: medium skin tone","group":1,"hexcode":"1F9DB-1F3FD-200D-2640-FE0F","order":1667,"shortcodes":["woman_vampire_tone3"],"unicode":"🧛🏽♀️"},{"annotation":"woman vampire: medium-dark skin tone","group":1,"hexcode":"1F9DB-1F3FE-200D-2640-FE0F","order":1669,"shortcodes":["woman_vampire_tone4"],"unicode":"🧛🏾♀️"},{"annotation":"woman vampire: dark skin tone","group":1,"hexcode":"1F9DB-1F3FF-200D-2640-FE0F","order":1671,"shortcodes":["woman_vampire_tone5"],"unicode":"🧛🏿♀️"}]},{"annotation":"merperson","group":1,"hexcode":"1F9DC","order":1673,"shortcodes":["merperson"],"tags":["mermaid","merman","merwoman"],"unicode":"🧜","skins":[{"annotation":"merperson: light skin tone","group":1,"hexcode":"1F9DC-1F3FB","order":1674,"shortcodes":["merperson_tone1"],"unicode":"🧜🏻"},{"annotation":"merperson: medium-light skin tone","group":1,"hexcode":"1F9DC-1F3FC","order":1675,"shortcodes":["merperson_tone2"],"unicode":"🧜🏼"},{"annotation":"merperson: medium skin tone","group":1,"hexcode":"1F9DC-1F3FD","order":1676,"shortcodes":["merperson_tone3"],"unicode":"🧜🏽"},{"annotation":"merperson: medium-dark skin tone","group":1,"hexcode":"1F9DC-1F3FE","order":1677,"shortcodes":["merperson_tone4"],"unicode":"🧜🏾"},{"annotation":"merperson: dark skin tone","group":1,"hexcode":"1F9DC-1F3FF","order":1678,"shortcodes":["merperson_tone5"],"unicode":"🧜🏿"}]},{"annotation":"merman","group":1,"hexcode":"1F9DC-200D-2642-FE0F","order":1679,"shortcodes":["merman"],"tags":["triton"],"unicode":"🧜♂️","skins":[{"annotation":"merman: light skin tone","group":1,"hexcode":"1F9DC-1F3FB-200D-2642-FE0F","order":1681,"shortcodes":["merman_tone1"],"unicode":"🧜🏻♂️"},{"annotation":"merman: medium-light skin tone","group":1,"hexcode":"1F9DC-1F3FC-200D-2642-FE0F","order":1683,"shortcodes":["merman_tone2"],"unicode":"🧜🏼♂️"},{"annotation":"merman: medium skin tone","group":1,"hexcode":"1F9DC-1F3FD-200D-2642-FE0F","order":1685,"shortcodes":["merman_tone3"],"unicode":"🧜🏽♂️"},{"annotation":"merman: medium-dark skin tone","group":1,"hexcode":"1F9DC-1F3FE-200D-2642-FE0F","order":1687,"shortcodes":["merman_tone4"],"unicode":"🧜🏾♂️"},{"annotation":"merman: dark skin tone","group":1,"hexcode":"1F9DC-1F3FF-200D-2642-FE0F","order":1689,"shortcodes":["merman_tone5"],"unicode":"🧜🏿♂️"}]},{"annotation":"mermaid","group":1,"hexcode":"1F9DC-200D-2640-FE0F","order":1691,"shortcodes":["mermaid"],"tags":["merwoman"],"unicode":"🧜♀️","skins":[{"annotation":"mermaid: light skin tone","group":1,"hexcode":"1F9DC-1F3FB-200D-2640-FE0F","order":1693,"shortcodes":["mermaid_tone1"],"unicode":"🧜🏻♀️"},{"annotation":"mermaid: medium-light skin tone","group":1,"hexcode":"1F9DC-1F3FC-200D-2640-FE0F","order":1695,"shortcodes":["mermaid_tone2"],"unicode":"🧜🏼♀️"},{"annotation":"mermaid: medium skin tone","group":1,"hexcode":"1F9DC-1F3FD-200D-2640-FE0F","order":1697,"shortcodes":["mermaid_tone3"],"unicode":"🧜🏽♀️"},{"annotation":"mermaid: medium-dark skin tone","group":1,"hexcode":"1F9DC-1F3FE-200D-2640-FE0F","order":1699,"shortcodes":["mermaid_tone4"],"unicode":"🧜🏾♀️"},{"annotation":"mermaid: dark skin tone","group":1,"hexcode":"1F9DC-1F3FF-200D-2640-FE0F","order":1701,"shortcodes":["mermaid_tone5"],"unicode":"🧜🏿♀️"}]},{"annotation":"elf","group":1,"hexcode":"1F9DD","order":1703,"shortcodes":["elf"],"tags":["magical"],"unicode":"🧝","skins":[{"annotation":"elf: light skin tone","group":1,"hexcode":"1F9DD-1F3FB","order":1704,"shortcodes":["elf_tone1"],"unicode":"🧝🏻"},{"annotation":"elf: medium-light skin tone","group":1,"hexcode":"1F9DD-1F3FC","order":1705,"shortcodes":["elf_tone2"],"unicode":"🧝🏼"},{"annotation":"elf: medium skin tone","group":1,"hexcode":"1F9DD-1F3FD","order":1706,"shortcodes":["elf_tone3"],"unicode":"🧝🏽"},{"annotation":"elf: medium-dark skin tone","group":1,"hexcode":"1F9DD-1F3FE","order":1707,"shortcodes":["elf_tone4"],"unicode":"🧝🏾"},{"annotation":"elf: dark skin tone","group":1,"hexcode":"1F9DD-1F3FF","order":1708,"shortcodes":["elf_tone5"],"unicode":"🧝🏿"}]},{"annotation":"man elf","group":1,"hexcode":"1F9DD-200D-2642-FE0F","order":1709,"shortcodes":["man_elf"],"tags":["magical"],"unicode":"🧝♂️","skins":[{"annotation":"man elf: light skin tone","group":1,"hexcode":"1F9DD-1F3FB-200D-2642-FE0F","order":1711,"shortcodes":["man_elf_tone1"],"unicode":"🧝🏻♂️"},{"annotation":"man elf: medium-light skin tone","group":1,"hexcode":"1F9DD-1F3FC-200D-2642-FE0F","order":1713,"shortcodes":["man_elf_tone2"],"unicode":"🧝🏼♂️"},{"annotation":"man elf: medium skin tone","group":1,"hexcode":"1F9DD-1F3FD-200D-2642-FE0F","order":1715,"shortcodes":["man_elf_tone3"],"unicode":"🧝🏽♂️"},{"annotation":"man elf: medium-dark skin tone","group":1,"hexcode":"1F9DD-1F3FE-200D-2642-FE0F","order":1717,"shortcodes":["man_elf_tone4"],"unicode":"🧝🏾♂️"},{"annotation":"man elf: dark skin tone","group":1,"hexcode":"1F9DD-1F3FF-200D-2642-FE0F","order":1719,"shortcodes":["man_elf_tone5"],"unicode":"🧝🏿♂️"}]},{"annotation":"woman elf","group":1,"hexcode":"1F9DD-200D-2640-FE0F","order":1721,"shortcodes":["woman_elf"],"tags":["magical"],"unicode":"🧝♀️","skins":[{"annotation":"woman elf: light skin tone","group":1,"hexcode":"1F9DD-1F3FB-200D-2640-FE0F","order":1723,"shortcodes":["woman_elf_tone1"],"unicode":"🧝🏻♀️"},{"annotation":"woman elf: medium-light skin tone","group":1,"hexcode":"1F9DD-1F3FC-200D-2640-FE0F","order":1725,"shortcodes":["woman_elf_tone2"],"unicode":"🧝🏼♀️"},{"annotation":"woman elf: medium skin tone","group":1,"hexcode":"1F9DD-1F3FD-200D-2640-FE0F","order":1727,"shortcodes":["woman_elf_tone3"],"unicode":"🧝🏽♀️"},{"annotation":"woman elf: medium-dark skin tone","group":1,"hexcode":"1F9DD-1F3FE-200D-2640-FE0F","order":1729,"shortcodes":["woman_elf_tone4"],"unicode":"🧝🏾♀️"},{"annotation":"woman elf: dark skin tone","group":1,"hexcode":"1F9DD-1F3FF-200D-2640-FE0F","order":1731,"shortcodes":["woman_elf_tone5"],"unicode":"🧝🏿♀️"}]},{"annotation":"genie","group":1,"hexcode":"1F9DE","order":1733,"shortcodes":["genie"],"tags":["djinn"],"unicode":"🧞"},{"annotation":"man genie","group":1,"hexcode":"1F9DE-200D-2642-FE0F","order":1734,"shortcodes":["man_genie"],"tags":["djinn"],"unicode":"🧞♂️"},{"annotation":"woman genie","group":1,"hexcode":"1F9DE-200D-2640-FE0F","order":1736,"shortcodes":["woman_genie"],"tags":["djinn"],"unicode":"🧞♀️"},{"annotation":"zombie","group":1,"hexcode":"1F9DF","order":1738,"shortcodes":["zombie"],"tags":["undead","walking dead"],"unicode":"🧟","emoticon":"8#"},{"annotation":"man zombie","group":1,"hexcode":"1F9DF-200D-2642-FE0F","order":1739,"shortcodes":["man_zombie"],"tags":["undead","walking dead"],"unicode":"🧟♂️"},{"annotation":"woman zombie","group":1,"hexcode":"1F9DF-200D-2640-FE0F","order":1741,"shortcodes":["woman_zombie"],"tags":["undead","walking dead"],"unicode":"🧟♀️"},{"annotation":"person getting massage","group":1,"hexcode":"1F486","order":1743,"shortcodes":["person_getting_massage"],"tags":["face","massage","salon"],"unicode":"💆","skins":[{"annotation":"person getting massage: light skin tone","group":1,"hexcode":"1F486-1F3FB","order":1744,"shortcodes":["person_getting_massage_tone1"],"unicode":"💆🏻"},{"annotation":"person getting massage: medium-light skin tone","group":1,"hexcode":"1F486-1F3FC","order":1745,"shortcodes":["person_getting_massage_tone2"],"unicode":"💆🏼"},{"annotation":"person getting massage: medium skin tone","group":1,"hexcode":"1F486-1F3FD","order":1746,"shortcodes":["person_getting_massage_tone3"],"unicode":"💆🏽"},{"annotation":"person getting massage: medium-dark skin tone","group":1,"hexcode":"1F486-1F3FE","order":1747,"shortcodes":["person_getting_massage_tone4"],"unicode":"💆🏾"},{"annotation":"person getting massage: dark skin tone","group":1,"hexcode":"1F486-1F3FF","order":1748,"shortcodes":["person_getting_massage_tone5"],"unicode":"💆🏿"}]},{"annotation":"man getting massage","group":1,"hexcode":"1F486-200D-2642-FE0F","order":1749,"shortcodes":["man_getting_face_massage"],"tags":["face","man","massage"],"unicode":"💆♂️","skins":[{"annotation":"man getting massage: light skin tone","group":1,"hexcode":"1F486-1F3FB-200D-2642-FE0F","order":1751,"shortcodes":["man_getting_face_massage_tone1"],"unicode":"💆🏻♂️"},{"annotation":"man getting massage: medium-light skin tone","group":1,"hexcode":"1F486-1F3FC-200D-2642-FE0F","order":1753,"shortcodes":["man_getting_face_massage_tone2"],"unicode":"💆🏼♂️"},{"annotation":"man getting massage: medium skin tone","group":1,"hexcode":"1F486-1F3FD-200D-2642-FE0F","order":1755,"shortcodes":["man_getting_face_massage_tone3"],"unicode":"💆🏽♂️"},{"annotation":"man getting massage: medium-dark skin tone","group":1,"hexcode":"1F486-1F3FE-200D-2642-FE0F","order":1757,"shortcodes":["man_getting_face_massage_tone4"],"unicode":"💆🏾♂️"},{"annotation":"man getting massage: dark skin tone","group":1,"hexcode":"1F486-1F3FF-200D-2642-FE0F","order":1759,"shortcodes":["man_getting_face_massage_tone5"],"unicode":"💆🏿♂️"}]},{"annotation":"woman getting massage","group":1,"hexcode":"1F486-200D-2640-FE0F","order":1761,"shortcodes":["woman_getting_face_massage"],"tags":["face","massage","woman"],"unicode":"💆♀️","skins":[{"annotation":"woman getting massage: light skin tone","group":1,"hexcode":"1F486-1F3FB-200D-2640-FE0F","order":1763,"shortcodes":["woman_getting_face_massage_tone1"],"unicode":"💆🏻♀️"},{"annotation":"woman getting massage: medium-light skin tone","group":1,"hexcode":"1F486-1F3FC-200D-2640-FE0F","order":1765,"shortcodes":["woman_getting_face_massage_tone2"],"unicode":"💆🏼♀️"},{"annotation":"woman getting massage: medium skin tone","group":1,"hexcode":"1F486-1F3FD-200D-2640-FE0F","order":1767,"shortcodes":["woman_getting_face_massage_tone3"],"unicode":"💆🏽♀️"},{"annotation":"woman getting massage: medium-dark skin tone","group":1,"hexcode":"1F486-1F3FE-200D-2640-FE0F","order":1769,"shortcodes":["woman_getting_face_massage_tone4"],"unicode":"💆🏾♀️"},{"annotation":"woman getting massage: dark skin tone","group":1,"hexcode":"1F486-1F3FF-200D-2640-FE0F","order":1771,"shortcodes":["woman_getting_face_massage_tone5"],"unicode":"💆🏿♀️"}]},{"annotation":"person getting haircut","group":1,"hexcode":"1F487","order":1773,"shortcodes":["person_getting_haircut"],"tags":["barber","beauty","haircut","parlor"],"unicode":"💇","skins":[{"annotation":"person getting haircut: light skin tone","group":1,"hexcode":"1F487-1F3FB","order":1774,"shortcodes":["person_getting_haircut_tone1"],"unicode":"💇🏻"},{"annotation":"person getting haircut: medium-light skin tone","group":1,"hexcode":"1F487-1F3FC","order":1775,"shortcodes":["person_getting_haircut_tone2"],"unicode":"💇🏼"},{"annotation":"person getting haircut: medium skin tone","group":1,"hexcode":"1F487-1F3FD","order":1776,"shortcodes":["person_getting_haircut_tone3"],"unicode":"💇🏽"},{"annotation":"person getting haircut: medium-dark skin tone","group":1,"hexcode":"1F487-1F3FE","order":1777,"shortcodes":["person_getting_haircut_tone4"],"unicode":"💇🏾"},{"annotation":"person getting haircut: dark skin tone","group":1,"hexcode":"1F487-1F3FF","order":1778,"shortcodes":["person_getting_haircut_tone5"],"unicode":"💇🏿"}]},{"annotation":"man getting haircut","group":1,"hexcode":"1F487-200D-2642-FE0F","order":1779,"shortcodes":["man_getting_haircut"],"tags":["haircut","man"],"unicode":"💇♂️","skins":[{"annotation":"man getting haircut: light skin tone","group":1,"hexcode":"1F487-1F3FB-200D-2642-FE0F","order":1781,"shortcodes":["man_getting_haircut_tone1"],"unicode":"💇🏻♂️"},{"annotation":"man getting haircut: medium-light skin tone","group":1,"hexcode":"1F487-1F3FC-200D-2642-FE0F","order":1783,"shortcodes":["man_getting_haircut_tone2"],"unicode":"💇🏼♂️"},{"annotation":"man getting haircut: medium skin tone","group":1,"hexcode":"1F487-1F3FD-200D-2642-FE0F","order":1785,"shortcodes":["man_getting_haircut_tone3"],"unicode":"💇🏽♂️"},{"annotation":"man getting haircut: medium-dark skin tone","group":1,"hexcode":"1F487-1F3FE-200D-2642-FE0F","order":1787,"shortcodes":["man_getting_haircut_tone4"],"unicode":"💇🏾♂️"},{"annotation":"man getting haircut: dark skin tone","group":1,"hexcode":"1F487-1F3FF-200D-2642-FE0F","order":1789,"shortcodes":["man_getting_haircut_tone5"],"unicode":"💇🏿♂️"}]},{"annotation":"woman getting haircut","group":1,"hexcode":"1F487-200D-2640-FE0F","order":1791,"shortcodes":["woman_getting_haircut"],"tags":["haircut","woman"],"unicode":"💇♀️","skins":[{"annotation":"woman getting haircut: light skin tone","group":1,"hexcode":"1F487-1F3FB-200D-2640-FE0F","order":1793,"shortcodes":["woman_getting_haircut_tone1"],"unicode":"💇🏻♀️"},{"annotation":"woman getting haircut: medium-light skin tone","group":1,"hexcode":"1F487-1F3FC-200D-2640-FE0F","order":1795,"shortcodes":["woman_getting_haircut_tone2"],"unicode":"💇🏼♀️"},{"annotation":"woman getting haircut: medium skin tone","group":1,"hexcode":"1F487-1F3FD-200D-2640-FE0F","order":1797,"shortcodes":["woman_getting_haircut_tone3"],"unicode":"💇🏽♀️"},{"annotation":"woman getting haircut: medium-dark skin tone","group":1,"hexcode":"1F487-1F3FE-200D-2640-FE0F","order":1799,"shortcodes":["woman_getting_haircut_tone4"],"unicode":"💇🏾♀️"},{"annotation":"woman getting haircut: dark skin tone","group":1,"hexcode":"1F487-1F3FF-200D-2640-FE0F","order":1801,"shortcodes":["woman_getting_haircut_tone5"],"unicode":"💇🏿♀️"}]},{"annotation":"person walking","group":1,"hexcode":"1F6B6","order":1803,"shortcodes":["person_walking"],"tags":["hike","walk","walking"],"unicode":"🚶","skins":[{"annotation":"person walking: light skin tone","group":1,"hexcode":"1F6B6-1F3FB","order":1804,"shortcodes":["person_walking_tone1"],"unicode":"🚶🏻"},{"annotation":"person walking: medium-light skin tone","group":1,"hexcode":"1F6B6-1F3FC","order":1805,"shortcodes":["person_walking_tone2"],"unicode":"🚶🏼"},{"annotation":"person walking: medium skin tone","group":1,"hexcode":"1F6B6-1F3FD","order":1806,"shortcodes":["person_walking_tone3"],"unicode":"🚶🏽"},{"annotation":"person walking: medium-dark skin tone","group":1,"hexcode":"1F6B6-1F3FE","order":1807,"shortcodes":["person_walking_tone4"],"unicode":"🚶🏾"},{"annotation":"person walking: dark skin tone","group":1,"hexcode":"1F6B6-1F3FF","order":1808,"shortcodes":["person_walking_tone5"],"unicode":"🚶🏿"}]},{"annotation":"man walking","group":1,"hexcode":"1F6B6-200D-2642-FE0F","order":1809,"shortcodes":["man_walking"],"tags":["hike","man","walk"],"unicode":"🚶♂️","skins":[{"annotation":"man walking: light skin tone","group":1,"hexcode":"1F6B6-1F3FB-200D-2642-FE0F","order":1811,"shortcodes":["man_walking_tone1"],"unicode":"🚶🏻♂️"},{"annotation":"man walking: medium-light skin tone","group":1,"hexcode":"1F6B6-1F3FC-200D-2642-FE0F","order":1813,"shortcodes":["man_walking_tone2"],"unicode":"🚶🏼♂️"},{"annotation":"man walking: medium skin tone","group":1,"hexcode":"1F6B6-1F3FD-200D-2642-FE0F","order":1815,"shortcodes":["man_walking_tone3"],"unicode":"🚶🏽♂️"},{"annotation":"man walking: medium-dark skin tone","group":1,"hexcode":"1F6B6-1F3FE-200D-2642-FE0F","order":1817,"shortcodes":["man_walking_tone4"],"unicode":"🚶🏾♂️"},{"annotation":"man walking: dark skin tone","group":1,"hexcode":"1F6B6-1F3FF-200D-2642-FE0F","order":1819,"shortcodes":["man_walking_tone5"],"unicode":"🚶🏿♂️"}]},{"annotation":"woman walking","group":1,"hexcode":"1F6B6-200D-2640-FE0F","order":1821,"shortcodes":["woman_walking"],"tags":["hike","walk","woman"],"unicode":"🚶♀️","skins":[{"annotation":"woman walking: light skin tone","group":1,"hexcode":"1F6B6-1F3FB-200D-2640-FE0F","order":1823,"shortcodes":["woman_walking_tone1"],"unicode":"🚶🏻♀️"},{"annotation":"woman walking: medium-light skin tone","group":1,"hexcode":"1F6B6-1F3FC-200D-2640-FE0F","order":1825,"shortcodes":["woman_walking_tone2"],"unicode":"🚶🏼♀️"},{"annotation":"woman walking: medium skin tone","group":1,"hexcode":"1F6B6-1F3FD-200D-2640-FE0F","order":1827,"shortcodes":["woman_walking_tone3"],"unicode":"🚶🏽♀️"},{"annotation":"woman walking: medium-dark skin tone","group":1,"hexcode":"1F6B6-1F3FE-200D-2640-FE0F","order":1829,"shortcodes":["woman_walking_tone4"],"unicode":"🚶🏾♀️"},{"annotation":"woman walking: dark skin tone","group":1,"hexcode":"1F6B6-1F3FF-200D-2640-FE0F","order":1831,"shortcodes":["woman_walking_tone5"],"unicode":"🚶🏿♀️"}]},{"annotation":"person standing","group":1,"hexcode":"1F9CD","order":1833,"shortcodes":["person_standing"],"tags":["stand","standing"],"unicode":"🧍","skins":[{"annotation":"person standing: light skin tone","group":1,"hexcode":"1F9CD-1F3FB","order":1834,"shortcodes":["person_standing_tone1"],"unicode":"🧍🏻"},{"annotation":"person standing: medium-light skin tone","group":1,"hexcode":"1F9CD-1F3FC","order":1835,"shortcodes":["person_standing_tone2"],"unicode":"🧍🏼"},{"annotation":"person standing: medium skin tone","group":1,"hexcode":"1F9CD-1F3FD","order":1836,"shortcodes":["person_standing_tone3"],"unicode":"🧍🏽"},{"annotation":"person standing: medium-dark skin tone","group":1,"hexcode":"1F9CD-1F3FE","order":1837,"shortcodes":["person_standing_tone4"],"unicode":"🧍🏾"},{"annotation":"person standing: dark skin tone","group":1,"hexcode":"1F9CD-1F3FF","order":1838,"shortcodes":["person_standing_tone5"],"unicode":"🧍🏿"}]},{"annotation":"man standing","group":1,"hexcode":"1F9CD-200D-2642-FE0F","order":1839,"shortcodes":["man_standing"],"tags":["man","standing"],"unicode":"🧍♂️","skins":[{"annotation":"man standing: light skin tone","group":1,"hexcode":"1F9CD-1F3FB-200D-2642-FE0F","order":1841,"shortcodes":["man_standing_tone1"],"unicode":"🧍🏻♂️"},{"annotation":"man standing: medium-light skin tone","group":1,"hexcode":"1F9CD-1F3FC-200D-2642-FE0F","order":1843,"shortcodes":["man_standing_tone2"],"unicode":"🧍🏼♂️"},{"annotation":"man standing: medium skin tone","group":1,"hexcode":"1F9CD-1F3FD-200D-2642-FE0F","order":1845,"shortcodes":["man_standing_tone3"],"unicode":"🧍🏽♂️"},{"annotation":"man standing: medium-dark skin tone","group":1,"hexcode":"1F9CD-1F3FE-200D-2642-FE0F","order":1847,"shortcodes":["man_standing_tone4"],"unicode":"🧍🏾♂️"},{"annotation":"man standing: dark skin tone","group":1,"hexcode":"1F9CD-1F3FF-200D-2642-FE0F","order":1849,"shortcodes":["man_standing_tone5"],"unicode":"🧍🏿♂️"}]},{"annotation":"woman standing","group":1,"hexcode":"1F9CD-200D-2640-FE0F","order":1851,"shortcodes":["woman_standing"],"tags":["standing","woman"],"unicode":"🧍♀️","skins":[{"annotation":"woman standing: light skin tone","group":1,"hexcode":"1F9CD-1F3FB-200D-2640-FE0F","order":1853,"shortcodes":["woman_standing_tone1"],"unicode":"🧍🏻♀️"},{"annotation":"woman standing: medium-light skin tone","group":1,"hexcode":"1F9CD-1F3FC-200D-2640-FE0F","order":1855,"shortcodes":["woman_standing_tone2"],"unicode":"🧍🏼♀️"},{"annotation":"woman standing: medium skin tone","group":1,"hexcode":"1F9CD-1F3FD-200D-2640-FE0F","order":1857,"shortcodes":["woman_standing_tone3"],"unicode":"🧍🏽♀️"},{"annotation":"woman standing: medium-dark skin tone","group":1,"hexcode":"1F9CD-1F3FE-200D-2640-FE0F","order":1859,"shortcodes":["woman_standing_tone4"],"unicode":"🧍🏾♀️"},{"annotation":"woman standing: dark skin tone","group":1,"hexcode":"1F9CD-1F3FF-200D-2640-FE0F","order":1861,"shortcodes":["woman_standing_tone5"],"unicode":"🧍🏿♀️"}]},{"annotation":"person kneeling","group":1,"hexcode":"1F9CE","order":1863,"shortcodes":["person_kneeling"],"tags":["kneel","kneeling"],"unicode":"🧎","skins":[{"annotation":"person kneeling: light skin tone","group":1,"hexcode":"1F9CE-1F3FB","order":1864,"shortcodes":["person_kneeling_tone1"],"unicode":"🧎🏻"},{"annotation":"person kneeling: medium-light skin tone","group":1,"hexcode":"1F9CE-1F3FC","order":1865,"shortcodes":["person_kneeling_tone2"],"unicode":"🧎🏼"},{"annotation":"person kneeling: medium skin tone","group":1,"hexcode":"1F9CE-1F3FD","order":1866,"shortcodes":["person_kneeling_tone3"],"unicode":"🧎🏽"},{"annotation":"person kneeling: medium-dark skin tone","group":1,"hexcode":"1F9CE-1F3FE","order":1867,"shortcodes":["person_kneeling_tone4"],"unicode":"🧎🏾"},{"annotation":"person kneeling: dark skin tone","group":1,"hexcode":"1F9CE-1F3FF","order":1868,"shortcodes":["person_kneeling_tone5"],"unicode":"🧎🏿"}]},{"annotation":"man kneeling","group":1,"hexcode":"1F9CE-200D-2642-FE0F","order":1869,"shortcodes":["man_kneeling"],"tags":["kneeling","man"],"unicode":"🧎♂️","skins":[{"annotation":"man kneeling: light skin tone","group":1,"hexcode":"1F9CE-1F3FB-200D-2642-FE0F","order":1871,"shortcodes":["man_kneeling_tone1"],"unicode":"🧎🏻♂️"},{"annotation":"man kneeling: medium-light skin tone","group":1,"hexcode":"1F9CE-1F3FC-200D-2642-FE0F","order":1873,"shortcodes":["man_kneeling_tone2"],"unicode":"🧎🏼♂️"},{"annotation":"man kneeling: medium skin tone","group":1,"hexcode":"1F9CE-1F3FD-200D-2642-FE0F","order":1875,"shortcodes":["man_kneeling_tone3"],"unicode":"🧎🏽♂️"},{"annotation":"man kneeling: medium-dark skin tone","group":1,"hexcode":"1F9CE-1F3FE-200D-2642-FE0F","order":1877,"shortcodes":["man_kneeling_tone4"],"unicode":"🧎🏾♂️"},{"annotation":"man kneeling: dark skin tone","group":1,"hexcode":"1F9CE-1F3FF-200D-2642-FE0F","order":1879,"shortcodes":["man_kneeling_tone5"],"unicode":"🧎🏿♂️"}]},{"annotation":"woman kneeling","group":1,"hexcode":"1F9CE-200D-2640-FE0F","order":1881,"shortcodes":["woman_kneeling"],"tags":["kneeling","woman"],"unicode":"🧎♀️","skins":[{"annotation":"woman kneeling: light skin tone","group":1,"hexcode":"1F9CE-1F3FB-200D-2640-FE0F","order":1883,"shortcodes":["woman_kneeling_tone1"],"unicode":"🧎🏻♀️"},{"annotation":"woman kneeling: medium-light skin tone","group":1,"hexcode":"1F9CE-1F3FC-200D-2640-FE0F","order":1885,"shortcodes":["woman_kneeling_tone2"],"unicode":"🧎🏼♀️"},{"annotation":"woman kneeling: medium skin tone","group":1,"hexcode":"1F9CE-1F3FD-200D-2640-FE0F","order":1887,"shortcodes":["woman_kneeling_tone3"],"unicode":"🧎🏽♀️"},{"annotation":"woman kneeling: medium-dark skin tone","group":1,"hexcode":"1F9CE-1F3FE-200D-2640-FE0F","order":1889,"shortcodes":["woman_kneeling_tone4"],"unicode":"🧎🏾♀️"},{"annotation":"woman kneeling: dark skin tone","group":1,"hexcode":"1F9CE-1F3FF-200D-2640-FE0F","order":1891,"shortcodes":["woman_kneeling_tone5"],"unicode":"🧎🏿♀️"}]},{"annotation":"person with white cane","group":1,"hexcode":"1F9D1-200D-1F9AF","order":1893,"shortcodes":["person_probing_cane"],"tags":["accessibility","blind"],"unicode":"🧑🦯","skins":[{"annotation":"person with white cane: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F9AF","order":1894,"shortcodes":["person_probing_cane_tone1"],"unicode":"🧑🏻🦯"},{"annotation":"person with white cane: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F9AF","order":1895,"shortcodes":["person_probing_cane_tone2"],"unicode":"🧑🏼🦯"},{"annotation":"person with white cane: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F9AF","order":1896,"shortcodes":["person_probing_cane_tone3"],"unicode":"🧑🏽🦯"},{"annotation":"person with white cane: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F9AF","order":1897,"shortcodes":["person_probing_cane_tone4"],"unicode":"🧑🏾🦯"},{"annotation":"person with white cane: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F9AF","order":1898,"shortcodes":["person_probing_cane_tone5"],"unicode":"🧑🏿🦯"}]},{"annotation":"man with white cane","group":1,"hexcode":"1F468-200D-1F9AF","order":1899,"shortcodes":["man_probing_cane"],"tags":["accessibility","blind","man"],"unicode":"👨🦯","skins":[{"annotation":"man with white cane: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F9AF","order":1900,"shortcodes":["man_probing_cane_tone1"],"unicode":"👨🏻🦯"},{"annotation":"man with white cane: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F9AF","order":1901,"shortcodes":["man_probing_cane_tone2"],"unicode":"👨🏼🦯"},{"annotation":"man with white cane: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F9AF","order":1902,"shortcodes":["man_probing_cane_tone3"],"unicode":"👨🏽🦯"},{"annotation":"man with white cane: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F9AF","order":1903,"shortcodes":["man_probing_cane_tone4"],"unicode":"👨🏾🦯"},{"annotation":"man with white cane: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F9AF","order":1904,"shortcodes":["man_probing_cane_tone5"],"unicode":"👨🏿🦯"}]},{"annotation":"woman with white cane","group":1,"hexcode":"1F469-200D-1F9AF","order":1905,"shortcodes":["woman_probing_cane"],"tags":["accessibility","blind","woman"],"unicode":"👩🦯","skins":[{"annotation":"woman with white cane: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F9AF","order":1906,"shortcodes":["woman_probing_cane_tone1"],"unicode":"👩🏻🦯"},{"annotation":"woman with white cane: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F9AF","order":1907,"shortcodes":["woman_probing_cane_tone2"],"unicode":"👩🏼🦯"},{"annotation":"woman with white cane: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F9AF","order":1908,"shortcodes":["woman_probing_cane_tone3"],"unicode":"👩🏽🦯"},{"annotation":"woman with white cane: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F9AF","order":1909,"shortcodes":["woman_probing_cane_tone4"],"unicode":"👩🏾🦯"},{"annotation":"woman with white cane: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F9AF","order":1910,"shortcodes":["woman_probing_cane_tone5"],"unicode":"👩🏿🦯"}]},{"annotation":"person in motorized wheelchair","group":1,"hexcode":"1F9D1-200D-1F9BC","order":1911,"shortcodes":["person_motor_wheelchair"],"tags":["accessibility","wheelchair"],"unicode":"🧑🦼","skins":[{"annotation":"person in motorized wheelchair: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F9BC","order":1912,"shortcodes":["person_motor_wheelchair_tone1"],"unicode":"🧑🏻🦼"},{"annotation":"person in motorized wheelchair: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F9BC","order":1913,"shortcodes":["person_motor_wheelchair_tone2"],"unicode":"🧑🏼🦼"},{"annotation":"person in motorized wheelchair: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F9BC","order":1914,"shortcodes":["person_motor_wheelchair_tone3"],"unicode":"🧑🏽🦼"},{"annotation":"person in motorized wheelchair: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F9BC","order":1915,"shortcodes":["person_motor_wheelchair_tone4"],"unicode":"🧑🏾🦼"},{"annotation":"person in motorized wheelchair: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F9BC","order":1916,"shortcodes":["person_motor_wheelchair_tone5"],"unicode":"🧑🏿🦼"}]},{"annotation":"man in motorized wheelchair","group":1,"hexcode":"1F468-200D-1F9BC","order":1917,"shortcodes":["man_motor_wheelchair"],"tags":["accessibility","man","wheelchair"],"unicode":"👨🦼","skins":[{"annotation":"man in motorized wheelchair: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F9BC","order":1918,"shortcodes":["man_motor_wheelchair_tone1"],"unicode":"👨🏻🦼"},{"annotation":"man in motorized wheelchair: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F9BC","order":1919,"shortcodes":["man_motor_wheelchair_tone2"],"unicode":"👨🏼🦼"},{"annotation":"man in motorized wheelchair: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F9BC","order":1920,"shortcodes":["man_motor_wheelchair_tone3"],"unicode":"👨🏽🦼"},{"annotation":"man in motorized wheelchair: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F9BC","order":1921,"shortcodes":["man_motor_wheelchair_tone4"],"unicode":"👨🏾🦼"},{"annotation":"man in motorized wheelchair: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F9BC","order":1922,"shortcodes":["man_motor_wheelchair_tone5"],"unicode":"👨🏿🦼"}]},{"annotation":"woman in motorized wheelchair","group":1,"hexcode":"1F469-200D-1F9BC","order":1923,"shortcodes":["woman_motor_wheelchair"],"tags":["accessibility","wheelchair","woman"],"unicode":"👩🦼","skins":[{"annotation":"woman in motorized wheelchair: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F9BC","order":1924,"shortcodes":["woman_motor_wheelchair_tone1"],"unicode":"👩🏻🦼"},{"annotation":"woman in motorized wheelchair: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F9BC","order":1925,"shortcodes":["woman_motor_wheelchair_tone2"],"unicode":"👩🏼🦼"},{"annotation":"woman in motorized wheelchair: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F9BC","order":1926,"shortcodes":["woman_motor_wheelchair_tone3"],"unicode":"👩🏽🦼"},{"annotation":"woman in motorized wheelchair: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F9BC","order":1927,"shortcodes":["woman_motor_wheelchair_tone4"],"unicode":"👩🏾🦼"},{"annotation":"woman in motorized wheelchair: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F9BC","order":1928,"shortcodes":["woman_motor_wheelchair_tone5"],"unicode":"👩🏿🦼"}]},{"annotation":"person in manual wheelchair","group":1,"hexcode":"1F9D1-200D-1F9BD","order":1929,"shortcodes":["person_wheelchair"],"tags":["accessibility","wheelchair"],"unicode":"🧑🦽","skins":[{"annotation":"person in manual wheelchair: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F9BD","order":1930,"shortcodes":["person_wheelchair_tone1"],"unicode":"🧑🏻🦽"},{"annotation":"person in manual wheelchair: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F9BD","order":1931,"shortcodes":["person_wheelchair_tone2"],"unicode":"🧑🏼🦽"},{"annotation":"person in manual wheelchair: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F9BD","order":1932,"shortcodes":["person_wheelchair_tone3"],"unicode":"🧑🏽🦽"},{"annotation":"person in manual wheelchair: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F9BD","order":1933,"shortcodes":["person_wheelchair_tone4"],"unicode":"🧑🏾🦽"},{"annotation":"person in manual wheelchair: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F9BD","order":1934,"shortcodes":["person_wheelchair_tone5"],"unicode":"🧑🏿🦽"}]},{"annotation":"man in manual wheelchair","group":1,"hexcode":"1F468-200D-1F9BD","order":1935,"shortcodes":["man_wheelchair"],"tags":["accessibility","man","wheelchair"],"unicode":"👨🦽","skins":[{"annotation":"man in manual wheelchair: light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F9BD","order":1936,"shortcodes":["man_wheelchair_tone1"],"unicode":"👨🏻🦽"},{"annotation":"man in manual wheelchair: medium-light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F9BD","order":1937,"shortcodes":["man_wheelchair_tone2"],"unicode":"👨🏼🦽"},{"annotation":"man in manual wheelchair: medium skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F9BD","order":1938,"shortcodes":["man_wheelchair_tone3"],"unicode":"👨🏽🦽"},{"annotation":"man in manual wheelchair: medium-dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F9BD","order":1939,"shortcodes":["man_wheelchair_tone4"],"unicode":"👨🏾🦽"},{"annotation":"man in manual wheelchair: dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F9BD","order":1940,"shortcodes":["man_wheelchair_tone5"],"unicode":"👨🏿🦽"}]},{"annotation":"woman in manual wheelchair","group":1,"hexcode":"1F469-200D-1F9BD","order":1941,"shortcodes":["woman_wheelchair"],"tags":["accessibility","wheelchair","woman"],"unicode":"👩🦽","skins":[{"annotation":"woman in manual wheelchair: light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F9BD","order":1942,"shortcodes":["woman_wheelchair_tone1"],"unicode":"👩🏻🦽"},{"annotation":"woman in manual wheelchair: medium-light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F9BD","order":1943,"shortcodes":["woman_wheelchair_tone2"],"unicode":"👩🏼🦽"},{"annotation":"woman in manual wheelchair: medium skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F9BD","order":1944,"shortcodes":["woman_wheelchair_tone3"],"unicode":"👩🏽🦽"},{"annotation":"woman in manual wheelchair: medium-dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F9BD","order":1945,"shortcodes":["woman_wheelchair_tone4"],"unicode":"👩🏾🦽"},{"annotation":"woman in manual wheelchair: dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F9BD","order":1946,"shortcodes":["woman_wheelchair_tone5"],"unicode":"👩🏿🦽"}]},{"annotation":"person running","group":1,"hexcode":"1F3C3","order":1947,"shortcodes":["person_running"],"tags":["marathon","running"],"unicode":"🏃","skins":[{"annotation":"person running: light skin tone","group":1,"hexcode":"1F3C3-1F3FB","order":1948,"shortcodes":["person_running_tone1"],"unicode":"🏃🏻"},{"annotation":"person running: medium-light skin tone","group":1,"hexcode":"1F3C3-1F3FC","order":1949,"shortcodes":["person_running_tone2"],"unicode":"🏃🏼"},{"annotation":"person running: medium skin tone","group":1,"hexcode":"1F3C3-1F3FD","order":1950,"shortcodes":["person_running_tone3"],"unicode":"🏃🏽"},{"annotation":"person running: medium-dark skin tone","group":1,"hexcode":"1F3C3-1F3FE","order":1951,"shortcodes":["person_running_tone4"],"unicode":"🏃🏾"},{"annotation":"person running: dark skin tone","group":1,"hexcode":"1F3C3-1F3FF","order":1952,"shortcodes":["person_running_tone5"],"unicode":"🏃🏿"}]},{"annotation":"man running","group":1,"hexcode":"1F3C3-200D-2642-FE0F","order":1953,"shortcodes":["man_running"],"tags":["man","marathon","racing","running"],"unicode":"🏃♂️","skins":[{"annotation":"man running: light skin tone","group":1,"hexcode":"1F3C3-1F3FB-200D-2642-FE0F","order":1955,"shortcodes":["man_running_tone1"],"unicode":"🏃🏻♂️"},{"annotation":"man running: medium-light skin tone","group":1,"hexcode":"1F3C3-1F3FC-200D-2642-FE0F","order":1957,"shortcodes":["man_running_tone2"],"unicode":"🏃🏼♂️"},{"annotation":"man running: medium skin tone","group":1,"hexcode":"1F3C3-1F3FD-200D-2642-FE0F","order":1959,"shortcodes":["man_running_tone3"],"unicode":"🏃🏽♂️"},{"annotation":"man running: medium-dark skin tone","group":1,"hexcode":"1F3C3-1F3FE-200D-2642-FE0F","order":1961,"shortcodes":["man_running_tone4"],"unicode":"🏃🏾♂️"},{"annotation":"man running: dark skin tone","group":1,"hexcode":"1F3C3-1F3FF-200D-2642-FE0F","order":1963,"shortcodes":["man_running_tone5"],"unicode":"🏃🏿♂️"}]},{"annotation":"woman running","group":1,"hexcode":"1F3C3-200D-2640-FE0F","order":1965,"shortcodes":["woman_running"],"tags":["marathon","racing","running","woman"],"unicode":"🏃♀️","skins":[{"annotation":"woman running: light skin tone","group":1,"hexcode":"1F3C3-1F3FB-200D-2640-FE0F","order":1967,"shortcodes":["woman_running_tone1"],"unicode":"🏃🏻♀️"},{"annotation":"woman running: medium-light skin tone","group":1,"hexcode":"1F3C3-1F3FC-200D-2640-FE0F","order":1969,"shortcodes":["woman_running_tone2"],"unicode":"🏃🏼♀️"},{"annotation":"woman running: medium skin tone","group":1,"hexcode":"1F3C3-1F3FD-200D-2640-FE0F","order":1971,"shortcodes":["woman_running_tone3"],"unicode":"🏃🏽♀️"},{"annotation":"woman running: medium-dark skin tone","group":1,"hexcode":"1F3C3-1F3FE-200D-2640-FE0F","order":1973,"shortcodes":["woman_running_tone4"],"unicode":"🏃🏾♀️"},{"annotation":"woman running: dark skin tone","group":1,"hexcode":"1F3C3-1F3FF-200D-2640-FE0F","order":1975,"shortcodes":["woman_running_tone5"],"unicode":"🏃🏿♀️"}]},{"annotation":"woman dancing","group":1,"hexcode":"1F483","order":1977,"shortcodes":["dancer","woman_dancing"],"tags":["dancing","woman"],"unicode":"💃","skins":[{"annotation":"woman dancing: light skin tone","group":1,"hexcode":"1F483-1F3FB","order":1978,"shortcodes":["dancer_tone1","woman_dancing_tone1"],"unicode":"💃🏻"},{"annotation":"woman dancing: medium-light skin tone","group":1,"hexcode":"1F483-1F3FC","order":1979,"shortcodes":["dancer_tone2","woman_dancing_tone2"],"unicode":"💃🏼"},{"annotation":"woman dancing: medium skin tone","group":1,"hexcode":"1F483-1F3FD","order":1980,"shortcodes":["dancer_tone3","woman_dancing_tone3"],"unicode":"💃🏽"},{"annotation":"woman dancing: medium-dark skin tone","group":1,"hexcode":"1F483-1F3FE","order":1981,"shortcodes":["dancer_tone4","woman_dancing_tone4"],"unicode":"💃🏾"},{"annotation":"woman dancing: dark skin tone","group":1,"hexcode":"1F483-1F3FF","order":1982,"shortcodes":["dancer_tone5","woman_dancing_tone5"],"unicode":"💃🏿"}]},{"annotation":"man dancing","group":1,"hexcode":"1F57A","order":1983,"shortcodes":["man_dancing"],"tags":["dance","man"],"unicode":"🕺","skins":[{"annotation":"man dancing: light skin tone","group":1,"hexcode":"1F57A-1F3FB","order":1984,"shortcodes":["man_dancing_tone1"],"unicode":"🕺🏻"},{"annotation":"man dancing: medium-light skin tone","group":1,"hexcode":"1F57A-1F3FC","order":1985,"shortcodes":["man_dancing_tone2"],"unicode":"🕺🏼"},{"annotation":"man dancing: medium skin tone","group":1,"hexcode":"1F57A-1F3FD","order":1986,"shortcodes":["man_dancing_tone3"],"unicode":"🕺🏽"},{"annotation":"man dancing: medium-dark skin tone","group":1,"hexcode":"1F57A-1F3FE","order":1987,"shortcodes":["man_dancing_tone4"],"unicode":"🕺🏾"},{"annotation":"man dancing: dark skin tone","group":1,"hexcode":"1F57A-1F3FF","order":1988,"shortcodes":["man_dancing_tone5"],"unicode":"🕺🏿"}]},{"annotation":"person in suit levitating","group":1,"hexcode":"1F574","order":1990,"shortcodes":["levitate"],"tags":["business","person","suit"],"unicode":"🕴️","skins":[{"annotation":"person in suit levitating: light skin tone","group":1,"hexcode":"1F574-1F3FB","order":1991,"shortcodes":["levitate_tone1"],"unicode":"🕴🏻"},{"annotation":"person in suit levitating: medium-light skin tone","group":1,"hexcode":"1F574-1F3FC","order":1992,"shortcodes":["levitate_tone2"],"unicode":"🕴🏼"},{"annotation":"person in suit levitating: medium skin tone","group":1,"hexcode":"1F574-1F3FD","order":1993,"shortcodes":["levitate_tone3"],"unicode":"🕴🏽"},{"annotation":"person in suit levitating: medium-dark skin tone","group":1,"hexcode":"1F574-1F3FE","order":1994,"shortcodes":["levitate_tone4"],"unicode":"🕴🏾"},{"annotation":"person in suit levitating: dark skin tone","group":1,"hexcode":"1F574-1F3FF","order":1995,"shortcodes":["levitate_tone5"],"unicode":"🕴🏿"}]},{"annotation":"people with bunny ears","group":1,"hexcode":"1F46F","order":1996,"shortcodes":["people_bunny_ears_partying"],"tags":["bunny ear","dancer","partying"],"unicode":"👯"},{"annotation":"men with bunny ears","group":1,"hexcode":"1F46F-200D-2642-FE0F","order":1997,"shortcodes":["men_bunny_ears_partying"],"tags":["bunny ear","dancer","men","partying"],"unicode":"👯♂️"},{"annotation":"women with bunny ears","group":1,"hexcode":"1F46F-200D-2640-FE0F","order":1999,"shortcodes":["women_bunny_ears_partying"],"tags":["bunny ear","dancer","partying","women"],"unicode":"👯♀️"},{"annotation":"person in steamy room","group":1,"hexcode":"1F9D6","order":2001,"shortcodes":["person_steamy_room"],"tags":["sauna","steam room"],"unicode":"🧖","skins":[{"annotation":"person in steamy room: light skin tone","group":1,"hexcode":"1F9D6-1F3FB","order":2002,"shortcodes":["person_steamy_room_tone1"],"unicode":"🧖🏻"},{"annotation":"person in steamy room: medium-light skin tone","group":1,"hexcode":"1F9D6-1F3FC","order":2003,"shortcodes":["person_steamy_room_tone2"],"unicode":"🧖🏼"},{"annotation":"person in steamy room: medium skin tone","group":1,"hexcode":"1F9D6-1F3FD","order":2004,"shortcodes":["person_steamy_room_tone3"],"unicode":"🧖🏽"},{"annotation":"person in steamy room: medium-dark skin tone","group":1,"hexcode":"1F9D6-1F3FE","order":2005,"shortcodes":["person_steamy_room_tone4"],"unicode":"🧖🏾"},{"annotation":"person in steamy room: dark skin tone","group":1,"hexcode":"1F9D6-1F3FF","order":2006,"shortcodes":["person_steamy_room_tone5"],"unicode":"🧖🏿"}]},{"annotation":"man in steamy room","group":1,"hexcode":"1F9D6-200D-2642-FE0F","order":2007,"shortcodes":["man_steamy_room"],"tags":["sauna","steam room"],"unicode":"🧖♂️","skins":[{"annotation":"man in steamy room: light skin tone","group":1,"hexcode":"1F9D6-1F3FB-200D-2642-FE0F","order":2009,"shortcodes":["man_steamy_room_tone1"],"unicode":"🧖🏻♂️"},{"annotation":"man in steamy room: medium-light skin tone","group":1,"hexcode":"1F9D6-1F3FC-200D-2642-FE0F","order":2011,"shortcodes":["man_steamy_room_tone2"],"unicode":"🧖🏼♂️"},{"annotation":"man in steamy room: medium skin tone","group":1,"hexcode":"1F9D6-1F3FD-200D-2642-FE0F","order":2013,"shortcodes":["man_steamy_room_tone3"],"unicode":"🧖🏽♂️"},{"annotation":"man in steamy room: medium-dark skin tone","group":1,"hexcode":"1F9D6-1F3FE-200D-2642-FE0F","order":2015,"shortcodes":["man_steamy_room_tone4"],"unicode":"🧖🏾♂️"},{"annotation":"man in steamy room: dark skin tone","group":1,"hexcode":"1F9D6-1F3FF-200D-2642-FE0F","order":2017,"shortcodes":["man_steamy_room_tone5"],"unicode":"🧖🏿♂️"}]},{"annotation":"woman in steamy room","group":1,"hexcode":"1F9D6-200D-2640-FE0F","order":2019,"shortcodes":["woman_steamy_room"],"tags":["sauna","steam room"],"unicode":"🧖♀️","skins":[{"annotation":"woman in steamy room: light skin tone","group":1,"hexcode":"1F9D6-1F3FB-200D-2640-FE0F","order":2021,"shortcodes":["woman_steamy_room_tone1"],"unicode":"🧖🏻♀️"},{"annotation":"woman in steamy room: medium-light skin tone","group":1,"hexcode":"1F9D6-1F3FC-200D-2640-FE0F","order":2023,"shortcodes":["woman_steamy_room_tone2"],"unicode":"🧖🏼♀️"},{"annotation":"woman in steamy room: medium skin tone","group":1,"hexcode":"1F9D6-1F3FD-200D-2640-FE0F","order":2025,"shortcodes":["woman_steamy_room_tone3"],"unicode":"🧖🏽♀️"},{"annotation":"woman in steamy room: medium-dark skin tone","group":1,"hexcode":"1F9D6-1F3FE-200D-2640-FE0F","order":2027,"shortcodes":["woman_steamy_room_tone4"],"unicode":"🧖🏾♀️"},{"annotation":"woman in steamy room: dark skin tone","group":1,"hexcode":"1F9D6-1F3FF-200D-2640-FE0F","order":2029,"shortcodes":["woman_steamy_room_tone5"],"unicode":"🧖🏿♀️"}]},{"annotation":"person climbing","group":1,"hexcode":"1F9D7","order":2031,"shortcodes":["person_climbing"],"tags":["climber"],"unicode":"🧗","skins":[{"annotation":"person climbing: light skin tone","group":1,"hexcode":"1F9D7-1F3FB","order":2032,"shortcodes":["person_climbing_tone1"],"unicode":"🧗🏻"},{"annotation":"person climbing: medium-light skin tone","group":1,"hexcode":"1F9D7-1F3FC","order":2033,"shortcodes":["person_climbing_tone2"],"unicode":"🧗🏼"},{"annotation":"person climbing: medium skin tone","group":1,"hexcode":"1F9D7-1F3FD","order":2034,"shortcodes":["person_climbing_tone3"],"unicode":"🧗🏽"},{"annotation":"person climbing: medium-dark skin tone","group":1,"hexcode":"1F9D7-1F3FE","order":2035,"shortcodes":["person_climbing_tone4"],"unicode":"🧗🏾"},{"annotation":"person climbing: dark skin tone","group":1,"hexcode":"1F9D7-1F3FF","order":2036,"shortcodes":["person_climbing_tone5"],"unicode":"🧗🏿"}]},{"annotation":"man climbing","group":1,"hexcode":"1F9D7-200D-2642-FE0F","order":2037,"shortcodes":["man_climbing"],"tags":["climber"],"unicode":"🧗♂️","skins":[{"annotation":"man climbing: light skin tone","group":1,"hexcode":"1F9D7-1F3FB-200D-2642-FE0F","order":2039,"shortcodes":["man_climbing_tone1"],"unicode":"🧗🏻♂️"},{"annotation":"man climbing: medium-light skin tone","group":1,"hexcode":"1F9D7-1F3FC-200D-2642-FE0F","order":2041,"shortcodes":["man_climbing_tone2"],"unicode":"🧗🏼♂️"},{"annotation":"man climbing: medium skin tone","group":1,"hexcode":"1F9D7-1F3FD-200D-2642-FE0F","order":2043,"shortcodes":["man_climbing_tone3"],"unicode":"🧗🏽♂️"},{"annotation":"man climbing: medium-dark skin tone","group":1,"hexcode":"1F9D7-1F3FE-200D-2642-FE0F","order":2045,"shortcodes":["man_climbing_tone4"],"unicode":"🧗🏾♂️"},{"annotation":"man climbing: dark skin tone","group":1,"hexcode":"1F9D7-1F3FF-200D-2642-FE0F","order":2047,"shortcodes":["man_climbing_tone5"],"unicode":"🧗🏿♂️"}]},{"annotation":"woman climbing","group":1,"hexcode":"1F9D7-200D-2640-FE0F","order":2049,"shortcodes":["woman_climbing"],"tags":["climber"],"unicode":"🧗♀️","skins":[{"annotation":"woman climbing: light skin tone","group":1,"hexcode":"1F9D7-1F3FB-200D-2640-FE0F","order":2051,"shortcodes":["woman_climbing_tone1"],"unicode":"🧗🏻♀️"},{"annotation":"woman climbing: medium-light skin tone","group":1,"hexcode":"1F9D7-1F3FC-200D-2640-FE0F","order":2053,"shortcodes":["woman_climbing_tone2"],"unicode":"🧗🏼♀️"},{"annotation":"woman climbing: medium skin tone","group":1,"hexcode":"1F9D7-1F3FD-200D-2640-FE0F","order":2055,"shortcodes":["woman_climbing_tone3"],"unicode":"🧗🏽♀️"},{"annotation":"woman climbing: medium-dark skin tone","group":1,"hexcode":"1F9D7-1F3FE-200D-2640-FE0F","order":2057,"shortcodes":["woman_climbing_tone4"],"unicode":"🧗🏾♀️"},{"annotation":"woman climbing: dark skin tone","group":1,"hexcode":"1F9D7-1F3FF-200D-2640-FE0F","order":2059,"shortcodes":["woman_climbing_tone5"],"unicode":"🧗🏿♀️"}]},{"annotation":"person fencing","group":1,"hexcode":"1F93A","order":2061,"shortcodes":["person_fencing"],"tags":["fencer","fencing","sword"],"unicode":"🤺"},{"annotation":"horse racing","group":1,"hexcode":"1F3C7","order":2062,"shortcodes":["horse_racing"],"tags":["horse","jockey","racehorse","racing"],"unicode":"🏇","skins":[{"annotation":"horse racing: light skin tone","group":1,"hexcode":"1F3C7-1F3FB","order":2063,"shortcodes":["horse_racing_tone1"],"unicode":"🏇🏻"},{"annotation":"horse racing: medium-light skin tone","group":1,"hexcode":"1F3C7-1F3FC","order":2064,"shortcodes":["horse_racing_tone2"],"unicode":"🏇🏼"},{"annotation":"horse racing: medium skin tone","group":1,"hexcode":"1F3C7-1F3FD","order":2065,"shortcodes":["horse_racing_tone3"],"unicode":"🏇🏽"},{"annotation":"horse racing: medium-dark skin tone","group":1,"hexcode":"1F3C7-1F3FE","order":2066,"shortcodes":["horse_racing_tone4"],"unicode":"🏇🏾"},{"annotation":"horse racing: dark skin tone","group":1,"hexcode":"1F3C7-1F3FF","order":2067,"shortcodes":["horse_racing_tone5"],"unicode":"🏇🏿"}]},{"annotation":"skier","group":1,"hexcode":"26F7","order":2069,"shortcodes":["skier"],"tags":["ski","snow"],"unicode":"⛷️"},{"annotation":"snowboarder","group":1,"hexcode":"1F3C2","order":2070,"shortcodes":["snowboarder"],"tags":["ski","snow","snowboard"],"unicode":"🏂️","skins":[{"annotation":"snowboarder: light skin tone","group":1,"hexcode":"1F3C2-1F3FB","order":2071,"shortcodes":["snowboarder_tone1"],"unicode":"🏂🏻"},{"annotation":"snowboarder: medium-light skin tone","group":1,"hexcode":"1F3C2-1F3FC","order":2072,"shortcodes":["snowboarder_tone2"],"unicode":"🏂🏼"},{"annotation":"snowboarder: medium skin tone","group":1,"hexcode":"1F3C2-1F3FD","order":2073,"shortcodes":["snowboarder_tone3"],"unicode":"🏂🏽"},{"annotation":"snowboarder: medium-dark skin tone","group":1,"hexcode":"1F3C2-1F3FE","order":2074,"shortcodes":["snowboarder_tone4"],"unicode":"🏂🏾"},{"annotation":"snowboarder: dark skin tone","group":1,"hexcode":"1F3C2-1F3FF","order":2075,"shortcodes":["snowboarder_tone5"],"unicode":"🏂🏿"}]},{"annotation":"person golfing","group":1,"hexcode":"1F3CC","order":2077,"shortcodes":["person_golfing"],"tags":["ball","golf"],"unicode":"🏌️","skins":[{"annotation":"person golfing: light skin tone","group":1,"hexcode":"1F3CC-1F3FB","order":2078,"shortcodes":["person_golfing_tone1"],"unicode":"🏌🏻"},{"annotation":"person golfing: medium-light skin tone","group":1,"hexcode":"1F3CC-1F3FC","order":2079,"shortcodes":["person_golfing_tone2"],"unicode":"🏌🏼"},{"annotation":"person golfing: medium skin tone","group":1,"hexcode":"1F3CC-1F3FD","order":2080,"shortcodes":["person_golfing_tone3"],"unicode":"🏌🏽"},{"annotation":"person golfing: medium-dark skin tone","group":1,"hexcode":"1F3CC-1F3FE","order":2081,"shortcodes":["person_golfing_tone4"],"unicode":"🏌🏾"},{"annotation":"person golfing: dark skin tone","group":1,"hexcode":"1F3CC-1F3FF","order":2082,"shortcodes":["person_golfing_tone5"],"unicode":"🏌🏿"}]},{"annotation":"man golfing","group":1,"hexcode":"1F3CC-FE0F-200D-2642-FE0F","order":2083,"shortcodes":["man_golfing"],"tags":["golf","man"],"unicode":"🏌️♂️","skins":[{"annotation":"man golfing: light skin tone","group":1,"hexcode":"1F3CC-1F3FB-200D-2642-FE0F","order":2087,"shortcodes":["man_golfing_tone1"],"unicode":"🏌🏻♂️"},{"annotation":"man golfing: medium-light skin tone","group":1,"hexcode":"1F3CC-1F3FC-200D-2642-FE0F","order":2089,"shortcodes":["man_golfing_tone2"],"unicode":"🏌🏼♂️"},{"annotation":"man golfing: medium skin tone","group":1,"hexcode":"1F3CC-1F3FD-200D-2642-FE0F","order":2091,"shortcodes":["man_golfing_tone3"],"unicode":"🏌🏽♂️"},{"annotation":"man golfing: medium-dark skin tone","group":1,"hexcode":"1F3CC-1F3FE-200D-2642-FE0F","order":2093,"shortcodes":["man_golfing_tone4"],"unicode":"🏌🏾♂️"},{"annotation":"man golfing: dark skin tone","group":1,"hexcode":"1F3CC-1F3FF-200D-2642-FE0F","order":2095,"shortcodes":["man_golfing_tone5"],"unicode":"🏌🏿♂️"}]},{"annotation":"woman golfing","group":1,"hexcode":"1F3CC-FE0F-200D-2640-FE0F","order":2097,"shortcodes":["woman_golfing"],"tags":["golf","woman"],"unicode":"🏌️♀️","skins":[{"annotation":"woman golfing: light skin tone","group":1,"hexcode":"1F3CC-1F3FB-200D-2640-FE0F","order":2101,"shortcodes":["woman_golfing_tone1"],"unicode":"🏌🏻♀️"},{"annotation":"woman golfing: medium-light skin tone","group":1,"hexcode":"1F3CC-1F3FC-200D-2640-FE0F","order":2103,"shortcodes":["woman_golfing_tone2"],"unicode":"🏌🏼♀️"},{"annotation":"woman golfing: medium skin tone","group":1,"hexcode":"1F3CC-1F3FD-200D-2640-FE0F","order":2105,"shortcodes":["woman_golfing_tone3"],"unicode":"🏌🏽♀️"},{"annotation":"woman golfing: medium-dark skin tone","group":1,"hexcode":"1F3CC-1F3FE-200D-2640-FE0F","order":2107,"shortcodes":["woman_golfing_tone4"],"unicode":"🏌🏾♀️"},{"annotation":"woman golfing: dark skin tone","group":1,"hexcode":"1F3CC-1F3FF-200D-2640-FE0F","order":2109,"shortcodes":["woman_golfing_tone5"],"unicode":"🏌🏿♀️"}]},{"annotation":"person surfing","group":1,"hexcode":"1F3C4","order":2111,"shortcodes":["person_surfing"],"tags":["surfing"],"unicode":"🏄️","skins":[{"annotation":"person surfing: light skin tone","group":1,"hexcode":"1F3C4-1F3FB","order":2112,"shortcodes":["person_surfing_tone1"],"unicode":"🏄🏻"},{"annotation":"person surfing: medium-light skin tone","group":1,"hexcode":"1F3C4-1F3FC","order":2113,"shortcodes":["person_surfing_tone2"],"unicode":"🏄🏼"},{"annotation":"person surfing: medium skin tone","group":1,"hexcode":"1F3C4-1F3FD","order":2114,"shortcodes":["person_surfing_tone3"],"unicode":"🏄🏽"},{"annotation":"person surfing: medium-dark skin tone","group":1,"hexcode":"1F3C4-1F3FE","order":2115,"shortcodes":["person_surfing_tone4"],"unicode":"🏄🏾"},{"annotation":"person surfing: dark skin tone","group":1,"hexcode":"1F3C4-1F3FF","order":2116,"shortcodes":["person_surfing_tone5"],"unicode":"🏄🏿"}]},{"annotation":"man surfing","group":1,"hexcode":"1F3C4-200D-2642-FE0F","order":2117,"shortcodes":["man_surfing"],"tags":["man","surfing"],"unicode":"🏄♂️","skins":[{"annotation":"man surfing: light skin tone","group":1,"hexcode":"1F3C4-1F3FB-200D-2642-FE0F","order":2119,"shortcodes":["man_surfing_tone1"],"unicode":"🏄🏻♂️"},{"annotation":"man surfing: medium-light skin tone","group":1,"hexcode":"1F3C4-1F3FC-200D-2642-FE0F","order":2121,"shortcodes":["man_surfing_tone2"],"unicode":"🏄🏼♂️"},{"annotation":"man surfing: medium skin tone","group":1,"hexcode":"1F3C4-1F3FD-200D-2642-FE0F","order":2123,"shortcodes":["man_surfing_tone3"],"unicode":"🏄🏽♂️"},{"annotation":"man surfing: medium-dark skin tone","group":1,"hexcode":"1F3C4-1F3FE-200D-2642-FE0F","order":2125,"shortcodes":["man_surfing_tone4"],"unicode":"🏄🏾♂️"},{"annotation":"man surfing: dark skin tone","group":1,"hexcode":"1F3C4-1F3FF-200D-2642-FE0F","order":2127,"shortcodes":["man_surfing_tone5"],"unicode":"🏄🏿♂️"}]},{"annotation":"woman surfing","group":1,"hexcode":"1F3C4-200D-2640-FE0F","order":2129,"shortcodes":["woman_surfing"],"tags":["surfing","woman"],"unicode":"🏄♀️","skins":[{"annotation":"woman surfing: light skin tone","group":1,"hexcode":"1F3C4-1F3FB-200D-2640-FE0F","order":2131,"shortcodes":["woman_surfing_tone1"],"unicode":"🏄🏻♀️"},{"annotation":"woman surfing: medium-light skin tone","group":1,"hexcode":"1F3C4-1F3FC-200D-2640-FE0F","order":2133,"shortcodes":["woman_surfing_tone2"],"unicode":"🏄🏼♀️"},{"annotation":"woman surfing: medium skin tone","group":1,"hexcode":"1F3C4-1F3FD-200D-2640-FE0F","order":2135,"shortcodes":["woman_surfing_tone3"],"unicode":"🏄🏽♀️"},{"annotation":"woman surfing: medium-dark skin tone","group":1,"hexcode":"1F3C4-1F3FE-200D-2640-FE0F","order":2137,"shortcodes":["woman_surfing_tone4"],"unicode":"🏄🏾♀️"},{"annotation":"woman surfing: dark skin tone","group":1,"hexcode":"1F3C4-1F3FF-200D-2640-FE0F","order":2139,"shortcodes":["woman_surfing_tone5"],"unicode":"🏄🏿♀️"}]},{"annotation":"person rowing boat","group":1,"hexcode":"1F6A3","order":2141,"shortcodes":["person_rowing_boat"],"tags":["boat","rowboat"],"unicode":"🚣","skins":[{"annotation":"person rowing boat: light skin tone","group":1,"hexcode":"1F6A3-1F3FB","order":2142,"shortcodes":["person_rowing_boat_tone1"],"unicode":"🚣🏻"},{"annotation":"person rowing boat: medium-light skin tone","group":1,"hexcode":"1F6A3-1F3FC","order":2143,"shortcodes":["person_rowing_boat_tone2"],"unicode":"🚣🏼"},{"annotation":"person rowing boat: medium skin tone","group":1,"hexcode":"1F6A3-1F3FD","order":2144,"shortcodes":["person_rowing_boat_tone3"],"unicode":"🚣🏽"},{"annotation":"person rowing boat: medium-dark skin tone","group":1,"hexcode":"1F6A3-1F3FE","order":2145,"shortcodes":["person_rowing_boat_tone4"],"unicode":"🚣🏾"},{"annotation":"person rowing boat: dark skin tone","group":1,"hexcode":"1F6A3-1F3FF","order":2146,"shortcodes":["person_rowing_boat_tone5"],"unicode":"🚣🏿"}]},{"annotation":"man rowing boat","group":1,"hexcode":"1F6A3-200D-2642-FE0F","order":2147,"shortcodes":["man_rowing_boat"],"tags":["boat","man","rowboat"],"unicode":"🚣♂️","skins":[{"annotation":"man rowing boat: light skin tone","group":1,"hexcode":"1F6A3-1F3FB-200D-2642-FE0F","order":2149,"shortcodes":["man_rowing_boat_tone1"],"unicode":"🚣🏻♂️"},{"annotation":"man rowing boat: medium-light skin tone","group":1,"hexcode":"1F6A3-1F3FC-200D-2642-FE0F","order":2151,"shortcodes":["man_rowing_boat_tone2"],"unicode":"🚣🏼♂️"},{"annotation":"man rowing boat: medium skin tone","group":1,"hexcode":"1F6A3-1F3FD-200D-2642-FE0F","order":2153,"shortcodes":["man_rowing_boat_tone3"],"unicode":"🚣🏽♂️"},{"annotation":"man rowing boat: medium-dark skin tone","group":1,"hexcode":"1F6A3-1F3FE-200D-2642-FE0F","order":2155,"shortcodes":["man_rowing_boat_tone4"],"unicode":"🚣🏾♂️"},{"annotation":"man rowing boat: dark skin tone","group":1,"hexcode":"1F6A3-1F3FF-200D-2642-FE0F","order":2157,"shortcodes":["man_rowing_boat_tone5"],"unicode":"🚣🏿♂️"}]},{"annotation":"woman rowing boat","group":1,"hexcode":"1F6A3-200D-2640-FE0F","order":2159,"shortcodes":["woman_rowing_boat"],"tags":["boat","rowboat","woman"],"unicode":"🚣♀️","skins":[{"annotation":"woman rowing boat: light skin tone","group":1,"hexcode":"1F6A3-1F3FB-200D-2640-FE0F","order":2161,"shortcodes":["woman_rowing_boat_tone1"],"unicode":"🚣🏻♀️"},{"annotation":"woman rowing boat: medium-light skin tone","group":1,"hexcode":"1F6A3-1F3FC-200D-2640-FE0F","order":2163,"shortcodes":["woman_rowing_boat_tone2"],"unicode":"🚣🏼♀️"},{"annotation":"woman rowing boat: medium skin tone","group":1,"hexcode":"1F6A3-1F3FD-200D-2640-FE0F","order":2165,"shortcodes":["woman_rowing_boat_tone3"],"unicode":"🚣🏽♀️"},{"annotation":"woman rowing boat: medium-dark skin tone","group":1,"hexcode":"1F6A3-1F3FE-200D-2640-FE0F","order":2167,"shortcodes":["woman_rowing_boat_tone4"],"unicode":"🚣🏾♀️"},{"annotation":"woman rowing boat: dark skin tone","group":1,"hexcode":"1F6A3-1F3FF-200D-2640-FE0F","order":2169,"shortcodes":["woman_rowing_boat_tone5"],"unicode":"🚣🏿♀️"}]},{"annotation":"person swimming","group":1,"hexcode":"1F3CA","order":2171,"shortcodes":["person_swimming"],"tags":["swim"],"unicode":"🏊️","skins":[{"annotation":"person swimming: light skin tone","group":1,"hexcode":"1F3CA-1F3FB","order":2172,"shortcodes":["person_swimming_tone1"],"unicode":"🏊🏻"},{"annotation":"person swimming: medium-light skin tone","group":1,"hexcode":"1F3CA-1F3FC","order":2173,"shortcodes":["person_swimming_tone2"],"unicode":"🏊🏼"},{"annotation":"person swimming: medium skin tone","group":1,"hexcode":"1F3CA-1F3FD","order":2174,"shortcodes":["person_swimming_tone3"],"unicode":"🏊🏽"},{"annotation":"person swimming: medium-dark skin tone","group":1,"hexcode":"1F3CA-1F3FE","order":2175,"shortcodes":["person_swimming_tone4"],"unicode":"🏊🏾"},{"annotation":"person swimming: dark skin tone","group":1,"hexcode":"1F3CA-1F3FF","order":2176,"shortcodes":["person_swimming_tone5"],"unicode":"🏊🏿"}]},{"annotation":"man swimming","group":1,"hexcode":"1F3CA-200D-2642-FE0F","order":2177,"shortcodes":["man_swimming"],"tags":["man","swim"],"unicode":"🏊♂️","skins":[{"annotation":"man swimming: light skin tone","group":1,"hexcode":"1F3CA-1F3FB-200D-2642-FE0F","order":2179,"shortcodes":["man_swimming_tone1"],"unicode":"🏊🏻♂️"},{"annotation":"man swimming: medium-light skin tone","group":1,"hexcode":"1F3CA-1F3FC-200D-2642-FE0F","order":2181,"shortcodes":["man_swimming_tone2"],"unicode":"🏊🏼♂️"},{"annotation":"man swimming: medium skin tone","group":1,"hexcode":"1F3CA-1F3FD-200D-2642-FE0F","order":2183,"shortcodes":["man_swimming_tone3"],"unicode":"🏊🏽♂️"},{"annotation":"man swimming: medium-dark skin tone","group":1,"hexcode":"1F3CA-1F3FE-200D-2642-FE0F","order":2185,"shortcodes":["man_swimming_tone4"],"unicode":"🏊🏾♂️"},{"annotation":"man swimming: dark skin tone","group":1,"hexcode":"1F3CA-1F3FF-200D-2642-FE0F","order":2187,"shortcodes":["man_swimming_tone5"],"unicode":"🏊🏿♂️"}]},{"annotation":"woman swimming","group":1,"hexcode":"1F3CA-200D-2640-FE0F","order":2189,"shortcodes":["woman_swimming"],"tags":["swim","woman"],"unicode":"🏊♀️","skins":[{"annotation":"woman swimming: light skin tone","group":1,"hexcode":"1F3CA-1F3FB-200D-2640-FE0F","order":2191,"shortcodes":["woman_swimming_tone1"],"unicode":"🏊🏻♀️"},{"annotation":"woman swimming: medium-light skin tone","group":1,"hexcode":"1F3CA-1F3FC-200D-2640-FE0F","order":2193,"shortcodes":["woman_swimming_tone2"],"unicode":"🏊🏼♀️"},{"annotation":"woman swimming: medium skin tone","group":1,"hexcode":"1F3CA-1F3FD-200D-2640-FE0F","order":2195,"shortcodes":["woman_swimming_tone3"],"unicode":"🏊🏽♀️"},{"annotation":"woman swimming: medium-dark skin tone","group":1,"hexcode":"1F3CA-1F3FE-200D-2640-FE0F","order":2197,"shortcodes":["woman_swimming_tone4"],"unicode":"🏊🏾♀️"},{"annotation":"woman swimming: dark skin tone","group":1,"hexcode":"1F3CA-1F3FF-200D-2640-FE0F","order":2199,"shortcodes":["woman_swimming_tone5"],"unicode":"🏊🏿♀️"}]},{"annotation":"person bouncing ball","group":1,"hexcode":"26F9","order":2202,"shortcodes":["person_bouncing_ball"],"tags":["ball"],"unicode":"⛹️","skins":[{"annotation":"person bouncing ball: light skin tone","group":1,"hexcode":"26F9-1F3FB","order":2203,"shortcodes":["person_bouncing_ball_tone1"],"unicode":"⛹🏻"},{"annotation":"person bouncing ball: medium-light skin tone","group":1,"hexcode":"26F9-1F3FC","order":2204,"shortcodes":["person_bouncing_ball_tone2"],"unicode":"⛹🏼"},{"annotation":"person bouncing ball: medium skin tone","group":1,"hexcode":"26F9-1F3FD","order":2205,"shortcodes":["person_bouncing_ball_tone3"],"unicode":"⛹🏽"},{"annotation":"person bouncing ball: medium-dark skin tone","group":1,"hexcode":"26F9-1F3FE","order":2206,"shortcodes":["person_bouncing_ball_tone4"],"unicode":"⛹🏾"},{"annotation":"person bouncing ball: dark skin tone","group":1,"hexcode":"26F9-1F3FF","order":2207,"shortcodes":["person_bouncing_ball_tone5"],"unicode":"⛹🏿"}]},{"annotation":"man bouncing ball","group":1,"hexcode":"26F9-FE0F-200D-2642-FE0F","order":2208,"shortcodes":["man_bouncing_ball"],"tags":["ball","man"],"unicode":"⛹️♂️","skins":[{"annotation":"man bouncing ball: light skin tone","group":1,"hexcode":"26F9-1F3FB-200D-2642-FE0F","order":2212,"shortcodes":["man_bouncing_ball_tone1"],"unicode":"⛹🏻♂️"},{"annotation":"man bouncing ball: medium-light skin tone","group":1,"hexcode":"26F9-1F3FC-200D-2642-FE0F","order":2214,"shortcodes":["man_bouncing_ball_tone2"],"unicode":"⛹🏼♂️"},{"annotation":"man bouncing ball: medium skin tone","group":1,"hexcode":"26F9-1F3FD-200D-2642-FE0F","order":2216,"shortcodes":["man_bouncing_ball_tone3"],"unicode":"⛹🏽♂️"},{"annotation":"man bouncing ball: medium-dark skin tone","group":1,"hexcode":"26F9-1F3FE-200D-2642-FE0F","order":2218,"shortcodes":["man_bouncing_ball_tone4"],"unicode":"⛹🏾♂️"},{"annotation":"man bouncing ball: dark skin tone","group":1,"hexcode":"26F9-1F3FF-200D-2642-FE0F","order":2220,"shortcodes":["man_bouncing_ball_tone5"],"unicode":"⛹🏿♂️"}]},{"annotation":"woman bouncing ball","group":1,"hexcode":"26F9-FE0F-200D-2640-FE0F","order":2222,"shortcodes":["woman_bouncing_ball"],"tags":["ball","woman"],"unicode":"⛹️♀️","skins":[{"annotation":"woman bouncing ball: light skin tone","group":1,"hexcode":"26F9-1F3FB-200D-2640-FE0F","order":2226,"shortcodes":["woman_bouncing_ball_tone1"],"unicode":"⛹🏻♀️"},{"annotation":"woman bouncing ball: medium-light skin tone","group":1,"hexcode":"26F9-1F3FC-200D-2640-FE0F","order":2228,"shortcodes":["woman_bouncing_ball_tone2"],"unicode":"⛹🏼♀️"},{"annotation":"woman bouncing ball: medium skin tone","group":1,"hexcode":"26F9-1F3FD-200D-2640-FE0F","order":2230,"shortcodes":["woman_bouncing_ball_tone3"],"unicode":"⛹🏽♀️"},{"annotation":"woman bouncing ball: medium-dark skin tone","group":1,"hexcode":"26F9-1F3FE-200D-2640-FE0F","order":2232,"shortcodes":["woman_bouncing_ball_tone4"],"unicode":"⛹🏾♀️"},{"annotation":"woman bouncing ball: dark skin tone","group":1,"hexcode":"26F9-1F3FF-200D-2640-FE0F","order":2234,"shortcodes":["woman_bouncing_ball_tone5"],"unicode":"⛹🏿♀️"}]},{"annotation":"person lifting weights","group":1,"hexcode":"1F3CB","order":2237,"shortcodes":["person_lifting_weights"],"tags":["lifter","weight"],"unicode":"🏋️","skins":[{"annotation":"person lifting weights: light skin tone","group":1,"hexcode":"1F3CB-1F3FB","order":2238,"shortcodes":["person_lifting_weights_tone1"],"unicode":"🏋🏻"},{"annotation":"person lifting weights: medium-light skin tone","group":1,"hexcode":"1F3CB-1F3FC","order":2239,"shortcodes":["person_lifting_weights_tone2"],"unicode":"🏋🏼"},{"annotation":"person lifting weights: medium skin tone","group":1,"hexcode":"1F3CB-1F3FD","order":2240,"shortcodes":["person_lifting_weights_tone3"],"unicode":"🏋🏽"},{"annotation":"person lifting weights: medium-dark skin tone","group":1,"hexcode":"1F3CB-1F3FE","order":2241,"shortcodes":["person_lifting_weights_tone4"],"unicode":"🏋🏾"},{"annotation":"person lifting weights: dark skin tone","group":1,"hexcode":"1F3CB-1F3FF","order":2242,"shortcodes":["person_lifting_weights_tone5"],"unicode":"🏋🏿"}]},{"annotation":"man lifting weights","group":1,"hexcode":"1F3CB-FE0F-200D-2642-FE0F","order":2243,"shortcodes":["man_lifting_weights"],"tags":["man","weight lifter"],"unicode":"🏋️♂️","skins":[{"annotation":"man lifting weights: light skin tone","group":1,"hexcode":"1F3CB-1F3FB-200D-2642-FE0F","order":2247,"shortcodes":["man_lifting_weights_tone1"],"unicode":"🏋🏻♂️"},{"annotation":"man lifting weights: medium-light skin tone","group":1,"hexcode":"1F3CB-1F3FC-200D-2642-FE0F","order":2249,"shortcodes":["man_lifting_weights_tone2"],"unicode":"🏋🏼♂️"},{"annotation":"man lifting weights: medium skin tone","group":1,"hexcode":"1F3CB-1F3FD-200D-2642-FE0F","order":2251,"shortcodes":["man_lifting_weights_tone3"],"unicode":"🏋🏽♂️"},{"annotation":"man lifting weights: medium-dark skin tone","group":1,"hexcode":"1F3CB-1F3FE-200D-2642-FE0F","order":2253,"shortcodes":["man_lifting_weights_tone4"],"unicode":"🏋🏾♂️"},{"annotation":"man lifting weights: dark skin tone","group":1,"hexcode":"1F3CB-1F3FF-200D-2642-FE0F","order":2255,"shortcodes":["man_lifting_weights_tone5"],"unicode":"🏋🏿♂️"}]},{"annotation":"woman lifting weights","group":1,"hexcode":"1F3CB-FE0F-200D-2640-FE0F","order":2257,"shortcodes":["woman_lifting_weights"],"tags":["weight lifter","woman"],"unicode":"🏋️♀️","skins":[{"annotation":"woman lifting weights: light skin tone","group":1,"hexcode":"1F3CB-1F3FB-200D-2640-FE0F","order":2261,"shortcodes":["woman_lifting_weights_tone1"],"unicode":"🏋🏻♀️"},{"annotation":"woman lifting weights: medium-light skin tone","group":1,"hexcode":"1F3CB-1F3FC-200D-2640-FE0F","order":2263,"shortcodes":["woman_lifting_weights_tone2"],"unicode":"🏋🏼♀️"},{"annotation":"woman lifting weights: medium skin tone","group":1,"hexcode":"1F3CB-1F3FD-200D-2640-FE0F","order":2265,"shortcodes":["woman_lifting_weights_tone3"],"unicode":"🏋🏽♀️"},{"annotation":"woman lifting weights: medium-dark skin tone","group":1,"hexcode":"1F3CB-1F3FE-200D-2640-FE0F","order":2267,"shortcodes":["woman_lifting_weights_tone4"],"unicode":"🏋🏾♀️"},{"annotation":"woman lifting weights: dark skin tone","group":1,"hexcode":"1F3CB-1F3FF-200D-2640-FE0F","order":2269,"shortcodes":["woman_lifting_weights_tone5"],"unicode":"🏋🏿♀️"}]},{"annotation":"person biking","group":1,"hexcode":"1F6B4","order":2271,"shortcodes":["person_biking"],"tags":["bicycle","biking","cyclist"],"unicode":"🚴","skins":[{"annotation":"person biking: light skin tone","group":1,"hexcode":"1F6B4-1F3FB","order":2272,"shortcodes":["person_biking_tone1"],"unicode":"🚴🏻"},{"annotation":"person biking: medium-light skin tone","group":1,"hexcode":"1F6B4-1F3FC","order":2273,"shortcodes":["person_biking_tone2"],"unicode":"🚴🏼"},{"annotation":"person biking: medium skin tone","group":1,"hexcode":"1F6B4-1F3FD","order":2274,"shortcodes":["person_biking_tone3"],"unicode":"🚴🏽"},{"annotation":"person biking: medium-dark skin tone","group":1,"hexcode":"1F6B4-1F3FE","order":2275,"shortcodes":["person_biking_tone4"],"unicode":"🚴🏾"},{"annotation":"person biking: dark skin tone","group":1,"hexcode":"1F6B4-1F3FF","order":2276,"shortcodes":["person_biking_tone5"],"unicode":"🚴🏿"}]},{"annotation":"man biking","group":1,"hexcode":"1F6B4-200D-2642-FE0F","order":2277,"shortcodes":["man_biking"],"tags":["bicycle","biking","cyclist","man"],"unicode":"🚴♂️","skins":[{"annotation":"man biking: light skin tone","group":1,"hexcode":"1F6B4-1F3FB-200D-2642-FE0F","order":2279,"shortcodes":["man_biking_tone1"],"unicode":"🚴🏻♂️"},{"annotation":"man biking: medium-light skin tone","group":1,"hexcode":"1F6B4-1F3FC-200D-2642-FE0F","order":2281,"shortcodes":["man_biking_tone2"],"unicode":"🚴🏼♂️"},{"annotation":"man biking: medium skin tone","group":1,"hexcode":"1F6B4-1F3FD-200D-2642-FE0F","order":2283,"shortcodes":["man_biking_tone3"],"unicode":"🚴🏽♂️"},{"annotation":"man biking: medium-dark skin tone","group":1,"hexcode":"1F6B4-1F3FE-200D-2642-FE0F","order":2285,"shortcodes":["man_biking_tone4"],"unicode":"🚴🏾♂️"},{"annotation":"man biking: dark skin tone","group":1,"hexcode":"1F6B4-1F3FF-200D-2642-FE0F","order":2287,"shortcodes":["man_biking_tone5"],"unicode":"🚴🏿♂️"}]},{"annotation":"woman biking","group":1,"hexcode":"1F6B4-200D-2640-FE0F","order":2289,"shortcodes":["woman_biking"],"tags":["bicycle","biking","cyclist","woman"],"unicode":"🚴♀️","skins":[{"annotation":"woman biking: light skin tone","group":1,"hexcode":"1F6B4-1F3FB-200D-2640-FE0F","order":2291,"shortcodes":["woman_biking_tone1"],"unicode":"🚴🏻♀️"},{"annotation":"woman biking: medium-light skin tone","group":1,"hexcode":"1F6B4-1F3FC-200D-2640-FE0F","order":2293,"shortcodes":["woman_biking_tone2"],"unicode":"🚴🏼♀️"},{"annotation":"woman biking: medium skin tone","group":1,"hexcode":"1F6B4-1F3FD-200D-2640-FE0F","order":2295,"shortcodes":["woman_biking_tone3"],"unicode":"🚴🏽♀️"},{"annotation":"woman biking: medium-dark skin tone","group":1,"hexcode":"1F6B4-1F3FE-200D-2640-FE0F","order":2297,"shortcodes":["woman_biking_tone4"],"unicode":"🚴🏾♀️"},{"annotation":"woman biking: dark skin tone","group":1,"hexcode":"1F6B4-1F3FF-200D-2640-FE0F","order":2299,"shortcodes":["woman_biking_tone5"],"unicode":"🚴🏿♀️"}]},{"annotation":"person mountain biking","group":1,"hexcode":"1F6B5","order":2301,"shortcodes":["person_mountain_biking"],"tags":["bicycle","bicyclist","bike","cyclist","mountain"],"unicode":"🚵","skins":[{"annotation":"person mountain biking: light skin tone","group":1,"hexcode":"1F6B5-1F3FB","order":2302,"shortcodes":["person_mountain_biking_tone1"],"unicode":"🚵🏻"},{"annotation":"person mountain biking: medium-light skin tone","group":1,"hexcode":"1F6B5-1F3FC","order":2303,"shortcodes":["person_mountain_biking_tone2"],"unicode":"🚵🏼"},{"annotation":"person mountain biking: medium skin tone","group":1,"hexcode":"1F6B5-1F3FD","order":2304,"shortcodes":["person_mountain_biking_tone3"],"unicode":"🚵🏽"},{"annotation":"person mountain biking: medium-dark skin tone","group":1,"hexcode":"1F6B5-1F3FE","order":2305,"shortcodes":["person_mountain_biking_tone4"],"unicode":"🚵🏾"},{"annotation":"person mountain biking: dark skin tone","group":1,"hexcode":"1F6B5-1F3FF","order":2306,"shortcodes":["person_mountain_biking_tone5"],"unicode":"🚵🏿"}]},{"annotation":"man mountain biking","group":1,"hexcode":"1F6B5-200D-2642-FE0F","order":2307,"shortcodes":["man_mountain_biking"],"tags":["bicycle","bike","cyclist","man","mountain"],"unicode":"🚵♂️","skins":[{"annotation":"man mountain biking: light skin tone","group":1,"hexcode":"1F6B5-1F3FB-200D-2642-FE0F","order":2309,"shortcodes":["man_mountain_biking_tone1"],"unicode":"🚵🏻♂️"},{"annotation":"man mountain biking: medium-light skin tone","group":1,"hexcode":"1F6B5-1F3FC-200D-2642-FE0F","order":2311,"shortcodes":["man_mountain_biking_tone2"],"unicode":"🚵🏼♂️"},{"annotation":"man mountain biking: medium skin tone","group":1,"hexcode":"1F6B5-1F3FD-200D-2642-FE0F","order":2313,"shortcodes":["man_mountain_biking_tone3"],"unicode":"🚵🏽♂️"},{"annotation":"man mountain biking: medium-dark skin tone","group":1,"hexcode":"1F6B5-1F3FE-200D-2642-FE0F","order":2315,"shortcodes":["man_mountain_biking_tone4"],"unicode":"🚵🏾♂️"},{"annotation":"man mountain biking: dark skin tone","group":1,"hexcode":"1F6B5-1F3FF-200D-2642-FE0F","order":2317,"shortcodes":["man_mountain_biking_tone5"],"unicode":"🚵🏿♂️"}]},{"annotation":"woman mountain biking","group":1,"hexcode":"1F6B5-200D-2640-FE0F","order":2319,"shortcodes":["woman_mountain_biking"],"tags":["bicycle","bike","biking","cyclist","mountain","woman"],"unicode":"🚵♀️","skins":[{"annotation":"woman mountain biking: light skin tone","group":1,"hexcode":"1F6B5-1F3FB-200D-2640-FE0F","order":2321,"shortcodes":["woman_mountain_biking_tone1"],"unicode":"🚵🏻♀️"},{"annotation":"woman mountain biking: medium-light skin tone","group":1,"hexcode":"1F6B5-1F3FC-200D-2640-FE0F","order":2323,"shortcodes":["woman_mountain_biking_tone2"],"unicode":"🚵🏼♀️"},{"annotation":"woman mountain biking: medium skin tone","group":1,"hexcode":"1F6B5-1F3FD-200D-2640-FE0F","order":2325,"shortcodes":["woman_mountain_biking_tone3"],"unicode":"🚵🏽♀️"},{"annotation":"woman mountain biking: medium-dark skin tone","group":1,"hexcode":"1F6B5-1F3FE-200D-2640-FE0F","order":2327,"shortcodes":["woman_mountain_biking_tone4"],"unicode":"🚵🏾♀️"},{"annotation":"woman mountain biking: dark skin tone","group":1,"hexcode":"1F6B5-1F3FF-200D-2640-FE0F","order":2329,"shortcodes":["woman_mountain_biking_tone5"],"unicode":"🚵🏿♀️"}]},{"annotation":"person cartwheeling","group":1,"hexcode":"1F938","order":2331,"shortcodes":["person_cartwheel"],"tags":["cartwheel","gymnastics"],"unicode":"🤸","skins":[{"annotation":"person cartwheeling: light skin tone","group":1,"hexcode":"1F938-1F3FB","order":2332,"shortcodes":["person_cartwheel_tone1"],"unicode":"🤸🏻"},{"annotation":"person cartwheeling: medium-light skin tone","group":1,"hexcode":"1F938-1F3FC","order":2333,"shortcodes":["person_cartwheel_tone2"],"unicode":"🤸🏼"},{"annotation":"person cartwheeling: medium skin tone","group":1,"hexcode":"1F938-1F3FD","order":2334,"shortcodes":["person_cartwheel_tone3"],"unicode":"🤸🏽"},{"annotation":"person cartwheeling: medium-dark skin tone","group":1,"hexcode":"1F938-1F3FE","order":2335,"shortcodes":["person_cartwheel_tone4"],"unicode":"🤸🏾"},{"annotation":"person cartwheeling: dark skin tone","group":1,"hexcode":"1F938-1F3FF","order":2336,"shortcodes":["person_cartwheel_tone5"],"unicode":"🤸🏿"}]},{"annotation":"man cartwheeling","group":1,"hexcode":"1F938-200D-2642-FE0F","order":2337,"shortcodes":["man_cartwheeling"],"tags":["cartwheel","gymnastics","man"],"unicode":"🤸♂️","skins":[{"annotation":"man cartwheeling: light skin tone","group":1,"hexcode":"1F938-1F3FB-200D-2642-FE0F","order":2339,"shortcodes":["man_cartwheeling_tone1"],"unicode":"🤸🏻♂️"},{"annotation":"man cartwheeling: medium-light skin tone","group":1,"hexcode":"1F938-1F3FC-200D-2642-FE0F","order":2341,"shortcodes":["man_cartwheeling_tone2"],"unicode":"🤸🏼♂️"},{"annotation":"man cartwheeling: medium skin tone","group":1,"hexcode":"1F938-1F3FD-200D-2642-FE0F","order":2343,"shortcodes":["man_cartwheeling_tone3"],"unicode":"🤸🏽♂️"},{"annotation":"man cartwheeling: medium-dark skin tone","group":1,"hexcode":"1F938-1F3FE-200D-2642-FE0F","order":2345,"shortcodes":["man_cartwheeling_tone4"],"unicode":"🤸🏾♂️"},{"annotation":"man cartwheeling: dark skin tone","group":1,"hexcode":"1F938-1F3FF-200D-2642-FE0F","order":2347,"shortcodes":["man_cartwheeling_tone5"],"unicode":"🤸🏿♂️"}]},{"annotation":"woman cartwheeling","group":1,"hexcode":"1F938-200D-2640-FE0F","order":2349,"shortcodes":["woman_cartwheeling"],"tags":["cartwheel","gymnastics","woman"],"unicode":"🤸♀️","skins":[{"annotation":"woman cartwheeling: light skin tone","group":1,"hexcode":"1F938-1F3FB-200D-2640-FE0F","order":2351,"shortcodes":["woman_cartwheeling_tone1"],"unicode":"🤸🏻♀️"},{"annotation":"woman cartwheeling: medium-light skin tone","group":1,"hexcode":"1F938-1F3FC-200D-2640-FE0F","order":2353,"shortcodes":["woman_cartwheeling_tone2"],"unicode":"🤸🏼♀️"},{"annotation":"woman cartwheeling: medium skin tone","group":1,"hexcode":"1F938-1F3FD-200D-2640-FE0F","order":2355,"shortcodes":["woman_cartwheeling_tone3"],"unicode":"🤸🏽♀️"},{"annotation":"woman cartwheeling: medium-dark skin tone","group":1,"hexcode":"1F938-1F3FE-200D-2640-FE0F","order":2357,"shortcodes":["woman_cartwheeling_tone4"],"unicode":"🤸🏾♀️"},{"annotation":"woman cartwheeling: dark skin tone","group":1,"hexcode":"1F938-1F3FF-200D-2640-FE0F","order":2359,"shortcodes":["woman_cartwheeling_tone5"],"unicode":"🤸🏿♀️"}]},{"annotation":"people wrestling","group":1,"hexcode":"1F93C","order":2361,"shortcodes":["people_wrestling"],"tags":["wrestle","wrestler"],"unicode":"🤼"},{"annotation":"men wrestling","group":1,"hexcode":"1F93C-200D-2642-FE0F","order":2362,"shortcodes":["men_wrestling"],"tags":["men","wrestle"],"unicode":"🤼♂️"},{"annotation":"women wrestling","group":1,"hexcode":"1F93C-200D-2640-FE0F","order":2364,"shortcodes":["women_wrestling"],"tags":["women","wrestle"],"unicode":"🤼♀️"},{"annotation":"person playing water polo","group":1,"hexcode":"1F93D","order":2366,"shortcodes":["person_water_polo"],"tags":["polo","water"],"unicode":"🤽","skins":[{"annotation":"person playing water polo: light skin tone","group":1,"hexcode":"1F93D-1F3FB","order":2367,"shortcodes":["person_water_polo_tone1"],"unicode":"🤽🏻"},{"annotation":"person playing water polo: medium-light skin tone","group":1,"hexcode":"1F93D-1F3FC","order":2368,"shortcodes":["person_water_polo_tone2"],"unicode":"🤽🏼"},{"annotation":"person playing water polo: medium skin tone","group":1,"hexcode":"1F93D-1F3FD","order":2369,"shortcodes":["person_water_polo_tone3"],"unicode":"🤽🏽"},{"annotation":"person playing water polo: medium-dark skin tone","group":1,"hexcode":"1F93D-1F3FE","order":2370,"shortcodes":["person_water_polo_tone4"],"unicode":"🤽🏾"},{"annotation":"person playing water polo: dark skin tone","group":1,"hexcode":"1F93D-1F3FF","order":2371,"shortcodes":["person_water_polo_tone5"],"unicode":"🤽🏿"}]},{"annotation":"man playing water polo","group":1,"hexcode":"1F93D-200D-2642-FE0F","order":2372,"shortcodes":["man_water_polo"],"tags":["man","water polo"],"unicode":"🤽♂️","skins":[{"annotation":"man playing water polo: light skin tone","group":1,"hexcode":"1F93D-1F3FB-200D-2642-FE0F","order":2374,"shortcodes":["man_water_polo_tone1"],"unicode":"🤽🏻♂️"},{"annotation":"man playing water polo: medium-light skin tone","group":1,"hexcode":"1F93D-1F3FC-200D-2642-FE0F","order":2376,"shortcodes":["man_water_polo_tone2"],"unicode":"🤽🏼♂️"},{"annotation":"man playing water polo: medium skin tone","group":1,"hexcode":"1F93D-1F3FD-200D-2642-FE0F","order":2378,"shortcodes":["man_water_polo_tone3"],"unicode":"🤽🏽♂️"},{"annotation":"man playing water polo: medium-dark skin tone","group":1,"hexcode":"1F93D-1F3FE-200D-2642-FE0F","order":2380,"shortcodes":["man_water_polo_tone4"],"unicode":"🤽🏾♂️"},{"annotation":"man playing water polo: dark skin tone","group":1,"hexcode":"1F93D-1F3FF-200D-2642-FE0F","order":2382,"shortcodes":["man_water_polo_tone5"],"unicode":"🤽🏿♂️"}]},{"annotation":"woman playing water polo","group":1,"hexcode":"1F93D-200D-2640-FE0F","order":2384,"shortcodes":["woman_water_polo"],"tags":["water polo","woman"],"unicode":"🤽♀️","skins":[{"annotation":"woman playing water polo: light skin tone","group":1,"hexcode":"1F93D-1F3FB-200D-2640-FE0F","order":2386,"shortcodes":["woman_water_polo_tone1"],"unicode":"🤽🏻♀️"},{"annotation":"woman playing water polo: medium-light skin tone","group":1,"hexcode":"1F93D-1F3FC-200D-2640-FE0F","order":2388,"shortcodes":["woman_water_polo_tone2"],"unicode":"🤽🏼♀️"},{"annotation":"woman playing water polo: medium skin tone","group":1,"hexcode":"1F93D-1F3FD-200D-2640-FE0F","order":2390,"shortcodes":["woman_water_polo_tone3"],"unicode":"🤽🏽♀️"},{"annotation":"woman playing water polo: medium-dark skin tone","group":1,"hexcode":"1F93D-1F3FE-200D-2640-FE0F","order":2392,"shortcodes":["woman_water_polo_tone4"],"unicode":"🤽🏾♀️"},{"annotation":"woman playing water polo: dark skin tone","group":1,"hexcode":"1F93D-1F3FF-200D-2640-FE0F","order":2394,"shortcodes":["woman_water_polo_tone5"],"unicode":"🤽🏿♀️"}]},{"annotation":"person playing handball","group":1,"hexcode":"1F93E","order":2396,"shortcodes":["person_handball"],"tags":["ball","handball"],"unicode":"🤾","skins":[{"annotation":"person playing handball: light skin tone","group":1,"hexcode":"1F93E-1F3FB","order":2397,"shortcodes":["person_handball_tone1"],"unicode":"🤾🏻"},{"annotation":"person playing handball: medium-light skin tone","group":1,"hexcode":"1F93E-1F3FC","order":2398,"shortcodes":["person_handball_tone2"],"unicode":"🤾🏼"},{"annotation":"person playing handball: medium skin tone","group":1,"hexcode":"1F93E-1F3FD","order":2399,"shortcodes":["person_handball_tone3"],"unicode":"🤾🏽"},{"annotation":"person playing handball: medium-dark skin tone","group":1,"hexcode":"1F93E-1F3FE","order":2400,"shortcodes":["person_handball_tone4"],"unicode":"🤾🏾"},{"annotation":"person playing handball: dark skin tone","group":1,"hexcode":"1F93E-1F3FF","order":2401,"shortcodes":["person_handball_tone5"],"unicode":"🤾🏿"}]},{"annotation":"man playing handball","group":1,"hexcode":"1F93E-200D-2642-FE0F","order":2402,"shortcodes":["man_handball"],"tags":["handball","man"],"unicode":"🤾♂️","skins":[{"annotation":"man playing handball: light skin tone","group":1,"hexcode":"1F93E-1F3FB-200D-2642-FE0F","order":2404,"shortcodes":["man_handball_tone1"],"unicode":"🤾🏻♂️"},{"annotation":"man playing handball: medium-light skin tone","group":1,"hexcode":"1F93E-1F3FC-200D-2642-FE0F","order":2406,"shortcodes":["man_handball_tone2"],"unicode":"🤾🏼♂️"},{"annotation":"man playing handball: medium skin tone","group":1,"hexcode":"1F93E-1F3FD-200D-2642-FE0F","order":2408,"shortcodes":["man_handball_tone3"],"unicode":"🤾🏽♂️"},{"annotation":"man playing handball: medium-dark skin tone","group":1,"hexcode":"1F93E-1F3FE-200D-2642-FE0F","order":2410,"shortcodes":["man_handball_tone4"],"unicode":"🤾🏾♂️"},{"annotation":"man playing handball: dark skin tone","group":1,"hexcode":"1F93E-1F3FF-200D-2642-FE0F","order":2412,"shortcodes":["man_handball_tone5"],"unicode":"🤾🏿♂️"}]},{"annotation":"woman playing handball","group":1,"hexcode":"1F93E-200D-2640-FE0F","order":2414,"shortcodes":["woman_handball"],"tags":["handball","woman"],"unicode":"🤾♀️","skins":[{"annotation":"woman playing handball: light skin tone","group":1,"hexcode":"1F93E-1F3FB-200D-2640-FE0F","order":2416,"shortcodes":["woman_handball_tone1"],"unicode":"🤾🏻♀️"},{"annotation":"woman playing handball: medium-light skin tone","group":1,"hexcode":"1F93E-1F3FC-200D-2640-FE0F","order":2418,"shortcodes":["woman_handball_tone2"],"unicode":"🤾🏼♀️"},{"annotation":"woman playing handball: medium skin tone","group":1,"hexcode":"1F93E-1F3FD-200D-2640-FE0F","order":2420,"shortcodes":["woman_handball_tone3"],"unicode":"🤾🏽♀️"},{"annotation":"woman playing handball: medium-dark skin tone","group":1,"hexcode":"1F93E-1F3FE-200D-2640-FE0F","order":2422,"shortcodes":["woman_handball_tone4"],"unicode":"🤾🏾♀️"},{"annotation":"woman playing handball: dark skin tone","group":1,"hexcode":"1F93E-1F3FF-200D-2640-FE0F","order":2424,"shortcodes":["woman_handball_tone5"],"unicode":"🤾🏿♀️"}]},{"annotation":"person juggling","group":1,"hexcode":"1F939","order":2426,"shortcodes":["person_juggling"],"tags":["balance","juggle","multitask","skill"],"unicode":"🤹","skins":[{"annotation":"person juggling: light skin tone","group":1,"hexcode":"1F939-1F3FB","order":2427,"shortcodes":["person_juggling_tone1"],"unicode":"🤹🏻"},{"annotation":"person juggling: medium-light skin tone","group":1,"hexcode":"1F939-1F3FC","order":2428,"shortcodes":["person_juggling_tone2"],"unicode":"🤹🏼"},{"annotation":"person juggling: medium skin tone","group":1,"hexcode":"1F939-1F3FD","order":2429,"shortcodes":["person_juggling_tone3"],"unicode":"🤹🏽"},{"annotation":"person juggling: medium-dark skin tone","group":1,"hexcode":"1F939-1F3FE","order":2430,"shortcodes":["person_juggling_tone4"],"unicode":"🤹🏾"},{"annotation":"person juggling: dark skin tone","group":1,"hexcode":"1F939-1F3FF","order":2431,"shortcodes":["person_juggling_tone5"],"unicode":"🤹🏿"}]},{"annotation":"man juggling","group":1,"hexcode":"1F939-200D-2642-FE0F","order":2432,"shortcodes":["man_juggling"],"tags":["juggling","man","multitask"],"unicode":"🤹♂️","skins":[{"annotation":"man juggling: light skin tone","group":1,"hexcode":"1F939-1F3FB-200D-2642-FE0F","order":2434,"shortcodes":["man_juggling_tone1"],"unicode":"🤹🏻♂️"},{"annotation":"man juggling: medium-light skin tone","group":1,"hexcode":"1F939-1F3FC-200D-2642-FE0F","order":2436,"shortcodes":["man_juggling_tone2"],"unicode":"🤹🏼♂️"},{"annotation":"man juggling: medium skin tone","group":1,"hexcode":"1F939-1F3FD-200D-2642-FE0F","order":2438,"shortcodes":["man_juggling_tone3"],"unicode":"🤹🏽♂️"},{"annotation":"man juggling: medium-dark skin tone","group":1,"hexcode":"1F939-1F3FE-200D-2642-FE0F","order":2440,"shortcodes":["man_juggling_tone4"],"unicode":"🤹🏾♂️"},{"annotation":"man juggling: dark skin tone","group":1,"hexcode":"1F939-1F3FF-200D-2642-FE0F","order":2442,"shortcodes":["man_juggling_tone5"],"unicode":"🤹🏿♂️"}]},{"annotation":"woman juggling","group":1,"hexcode":"1F939-200D-2640-FE0F","order":2444,"shortcodes":["woman_juggling"],"tags":["juggling","multitask","woman"],"unicode":"🤹♀️","skins":[{"annotation":"woman juggling: light skin tone","group":1,"hexcode":"1F939-1F3FB-200D-2640-FE0F","order":2446,"shortcodes":["woman_juggling_tone1"],"unicode":"🤹🏻♀️"},{"annotation":"woman juggling: medium-light skin tone","group":1,"hexcode":"1F939-1F3FC-200D-2640-FE0F","order":2448,"shortcodes":["woman_juggling_tone2"],"unicode":"🤹🏼♀️"},{"annotation":"woman juggling: medium skin tone","group":1,"hexcode":"1F939-1F3FD-200D-2640-FE0F","order":2450,"shortcodes":["woman_juggling_tone3"],"unicode":"🤹🏽♀️"},{"annotation":"woman juggling: medium-dark skin tone","group":1,"hexcode":"1F939-1F3FE-200D-2640-FE0F","order":2452,"shortcodes":["woman_juggling_tone4"],"unicode":"🤹🏾♀️"},{"annotation":"woman juggling: dark skin tone","group":1,"hexcode":"1F939-1F3FF-200D-2640-FE0F","order":2454,"shortcodes":["woman_juggling_tone5"],"unicode":"🤹🏿♀️"}]},{"annotation":"person in lotus position","group":1,"hexcode":"1F9D8","order":2456,"shortcodes":["person_lotus_position"],"tags":["meditation","yoga"],"unicode":"🧘","skins":[{"annotation":"person in lotus position: light skin tone","group":1,"hexcode":"1F9D8-1F3FB","order":2457,"shortcodes":["person_lotus_position_tone1"],"unicode":"🧘🏻"},{"annotation":"person in lotus position: medium-light skin tone","group":1,"hexcode":"1F9D8-1F3FC","order":2458,"shortcodes":["person_lotus_position_tone2"],"unicode":"🧘🏼"},{"annotation":"person in lotus position: medium skin tone","group":1,"hexcode":"1F9D8-1F3FD","order":2459,"shortcodes":["person_lotus_position_tone3"],"unicode":"🧘🏽"},{"annotation":"person in lotus position: medium-dark skin tone","group":1,"hexcode":"1F9D8-1F3FE","order":2460,"shortcodes":["person_lotus_position_tone4"],"unicode":"🧘🏾"},{"annotation":"person in lotus position: dark skin tone","group":1,"hexcode":"1F9D8-1F3FF","order":2461,"shortcodes":["person_lotus_position_tone5"],"unicode":"🧘🏿"}]},{"annotation":"man in lotus position","group":1,"hexcode":"1F9D8-200D-2642-FE0F","order":2462,"shortcodes":["man_lotus_position"],"tags":["meditation","yoga"],"unicode":"🧘♂️","skins":[{"annotation":"man in lotus position: light skin tone","group":1,"hexcode":"1F9D8-1F3FB-200D-2642-FE0F","order":2464,"shortcodes":["man_lotus_position_tone1"],"unicode":"🧘🏻♂️"},{"annotation":"man in lotus position: medium-light skin tone","group":1,"hexcode":"1F9D8-1F3FC-200D-2642-FE0F","order":2466,"shortcodes":["man_lotus_position_tone2"],"unicode":"🧘🏼♂️"},{"annotation":"man in lotus position: medium skin tone","group":1,"hexcode":"1F9D8-1F3FD-200D-2642-FE0F","order":2468,"shortcodes":["man_lotus_position_tone3"],"unicode":"🧘🏽♂️"},{"annotation":"man in lotus position: medium-dark skin tone","group":1,"hexcode":"1F9D8-1F3FE-200D-2642-FE0F","order":2470,"shortcodes":["man_lotus_position_tone4"],"unicode":"🧘🏾♂️"},{"annotation":"man in lotus position: dark skin tone","group":1,"hexcode":"1F9D8-1F3FF-200D-2642-FE0F","order":2472,"shortcodes":["man_lotus_position_tone5"],"unicode":"🧘🏿♂️"}]},{"annotation":"woman in lotus position","group":1,"hexcode":"1F9D8-200D-2640-FE0F","order":2474,"shortcodes":["woman_lotus_position"],"tags":["meditation","yoga"],"unicode":"🧘♀️","skins":[{"annotation":"woman in lotus position: light skin tone","group":1,"hexcode":"1F9D8-1F3FB-200D-2640-FE0F","order":2476,"shortcodes":["woman_lotus_position_tone1"],"unicode":"🧘🏻♀️"},{"annotation":"woman in lotus position: medium-light skin tone","group":1,"hexcode":"1F9D8-1F3FC-200D-2640-FE0F","order":2478,"shortcodes":["woman_lotus_position_tone2"],"unicode":"🧘🏼♀️"},{"annotation":"woman in lotus position: medium skin tone","group":1,"hexcode":"1F9D8-1F3FD-200D-2640-FE0F","order":2480,"shortcodes":["woman_lotus_position_tone3"],"unicode":"🧘🏽♀️"},{"annotation":"woman in lotus position: medium-dark skin tone","group":1,"hexcode":"1F9D8-1F3FE-200D-2640-FE0F","order":2482,"shortcodes":["woman_lotus_position_tone4"],"unicode":"🧘🏾♀️"},{"annotation":"woman in lotus position: dark skin tone","group":1,"hexcode":"1F9D8-1F3FF-200D-2640-FE0F","order":2484,"shortcodes":["woman_lotus_position_tone5"],"unicode":"🧘🏿♀️"}]},{"annotation":"person taking bath","group":1,"hexcode":"1F6C0","order":2486,"shortcodes":["bath"],"tags":["bath","bathtub"],"unicode":"🛀","skins":[{"annotation":"person taking bath: light skin tone","group":1,"hexcode":"1F6C0-1F3FB","order":2487,"shortcodes":["bath_tone1"],"unicode":"🛀🏻"},{"annotation":"person taking bath: medium-light skin tone","group":1,"hexcode":"1F6C0-1F3FC","order":2488,"shortcodes":["bath_tone2"],"unicode":"🛀🏼"},{"annotation":"person taking bath: medium skin tone","group":1,"hexcode":"1F6C0-1F3FD","order":2489,"shortcodes":["bath_tone3"],"unicode":"🛀🏽"},{"annotation":"person taking bath: medium-dark skin tone","group":1,"hexcode":"1F6C0-1F3FE","order":2490,"shortcodes":["bath_tone4"],"unicode":"🛀🏾"},{"annotation":"person taking bath: dark skin tone","group":1,"hexcode":"1F6C0-1F3FF","order":2491,"shortcodes":["bath_tone5"],"unicode":"🛀🏿"}]},{"annotation":"person in bed","group":1,"hexcode":"1F6CC","order":2492,"shortcodes":["in_bed"],"tags":["hotel","sleep"],"unicode":"🛌","skins":[{"annotation":"person in bed: light skin tone","group":1,"hexcode":"1F6CC-1F3FB","order":2493,"shortcodes":["in_bed_tone1"],"unicode":"🛌🏻"},{"annotation":"person in bed: medium-light skin tone","group":1,"hexcode":"1F6CC-1F3FC","order":2494,"shortcodes":["in_bed_tone2"],"unicode":"🛌🏼"},{"annotation":"person in bed: medium skin tone","group":1,"hexcode":"1F6CC-1F3FD","order":2495,"shortcodes":["in_bed_tone3"],"unicode":"🛌🏽"},{"annotation":"person in bed: medium-dark skin tone","group":1,"hexcode":"1F6CC-1F3FE","order":2496,"shortcodes":["in_bed_tone4"],"unicode":"🛌🏾"},{"annotation":"person in bed: dark skin tone","group":1,"hexcode":"1F6CC-1F3FF","order":2497,"shortcodes":["in_bed_tone5"],"unicode":"🛌🏿"}]},{"annotation":"people holding hands","group":1,"hexcode":"1F9D1-200D-1F91D-200D-1F9D1","order":2498,"shortcodes":["holding_hands_people"],"tags":["couple","hand","hold","holding hands","person"],"unicode":"🧑🤝🧑","skins":[{"annotation":"people holding hands: light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FB","order":2499,"shortcodes":["holding_hands_people_tone1"],"unicode":"🧑🏻🤝🧑🏻"},{"annotation":"people holding hands: light skin tone, medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FC","order":2500,"shortcodes":["holding_hands_people_tone1-2"],"unicode":"🧑🏻🤝🧑🏼"},{"annotation":"people holding hands: light skin tone, medium skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FD","order":2501,"shortcodes":["holding_hands_people_tone1-3"],"unicode":"🧑🏻🤝🧑🏽"},{"annotation":"people holding hands: light skin tone, medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FE","order":2502,"shortcodes":["holding_hands_people_tone1-4"],"unicode":"🧑🏻🤝🧑🏾"},{"annotation":"people holding hands: light skin tone, dark skin tone","group":1,"hexcode":"1F9D1-1F3FB-200D-1F91D-200D-1F9D1-1F3FF","order":2503,"shortcodes":["holding_hands_people_tone1-5"],"unicode":"🧑🏻🤝🧑🏿"},{"annotation":"people holding hands: medium-light skin tone, light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FB","order":2504,"shortcodes":["holding_hands_people_tone2-1"],"unicode":"🧑🏼🤝🧑🏻"},{"annotation":"people holding hands: medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FC","order":2505,"shortcodes":["holding_hands_people_tone2"],"unicode":"🧑🏼🤝🧑🏼"},{"annotation":"people holding hands: medium-light skin tone, medium skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FD","order":2506,"shortcodes":["holding_hands_people_tone2-3"],"unicode":"🧑🏼🤝🧑🏽"},{"annotation":"people holding hands: medium-light skin tone, medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FE","order":2507,"shortcodes":["holding_hands_people_tone2-4"],"unicode":"🧑🏼🤝🧑🏾"},{"annotation":"people holding hands: medium-light skin tone, dark skin tone","group":1,"hexcode":"1F9D1-1F3FC-200D-1F91D-200D-1F9D1-1F3FF","order":2508,"shortcodes":["holding_hands_people_tone2-5"],"unicode":"🧑🏼🤝🧑🏿"},{"annotation":"people holding hands: medium skin tone, light skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FB","order":2509,"shortcodes":["holding_hands_people_tone3-1"],"unicode":"🧑🏽🤝🧑🏻"},{"annotation":"people holding hands: medium skin tone, medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FC","order":2510,"shortcodes":["holding_hands_people_tone3-2"],"unicode":"🧑🏽🤝🧑🏼"},{"annotation":"people holding hands: medium skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FD","order":2511,"shortcodes":["holding_hands_people_tone3"],"unicode":"🧑🏽🤝🧑🏽"},{"annotation":"people holding hands: medium skin tone, medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FE","order":2512,"shortcodes":["holding_hands_people_tone3-4"],"unicode":"🧑🏽🤝🧑🏾"},{"annotation":"people holding hands: medium skin tone, dark skin tone","group":1,"hexcode":"1F9D1-1F3FD-200D-1F91D-200D-1F9D1-1F3FF","order":2513,"shortcodes":["holding_hands_people_tone3-5"],"unicode":"🧑🏽🤝🧑🏿"},{"annotation":"people holding hands: medium-dark skin tone, light skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FB","order":2514,"shortcodes":["holding_hands_people_tone4-1"],"unicode":"🧑🏾🤝🧑🏻"},{"annotation":"people holding hands: medium-dark skin tone, medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FC","order":2515,"shortcodes":["holding_hands_people_tone4-2"],"unicode":"🧑🏾🤝🧑🏼"},{"annotation":"people holding hands: medium-dark skin tone, medium skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FD","order":2516,"shortcodes":["holding_hands_people_tone4-3"],"unicode":"🧑🏾🤝🧑🏽"},{"annotation":"people holding hands: medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FE","order":2517,"shortcodes":["holding_hands_people_tone4"],"unicode":"🧑🏾🤝🧑🏾"},{"annotation":"people holding hands: medium-dark skin tone, dark skin tone","group":1,"hexcode":"1F9D1-1F3FE-200D-1F91D-200D-1F9D1-1F3FF","order":2518,"shortcodes":["holding_hands_people_tone4-5"],"unicode":"🧑🏾🤝🧑🏿"},{"annotation":"people holding hands: dark skin tone, light skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FB","order":2519,"shortcodes":["holding_hands_people_tone5-1"],"unicode":"🧑🏿🤝🧑🏻"},{"annotation":"people holding hands: dark skin tone, medium-light skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FC","order":2520,"shortcodes":["holding_hands_people_tone5-2"],"unicode":"🧑🏿🤝🧑🏼"},{"annotation":"people holding hands: dark skin tone, medium skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FD","order":2521,"shortcodes":["holding_hands_people_tone5-3"],"unicode":"🧑🏿🤝🧑🏽"},{"annotation":"people holding hands: dark skin tone, medium-dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FE","order":2522,"shortcodes":["holding_hands_people_tone5-4"],"unicode":"🧑🏿🤝🧑🏾"},{"annotation":"people holding hands: dark skin tone","group":1,"hexcode":"1F9D1-1F3FF-200D-1F91D-200D-1F9D1-1F3FF","order":2523,"shortcodes":["holding_hands_people_tone5"],"unicode":"🧑🏿🤝🧑🏿"}]},{"annotation":"women holding hands","group":1,"hexcode":"1F46D","order":2524,"shortcodes":["holding_hands_ww"],"tags":["couple","hand","holding hands","women"],"unicode":"👭","skins":[{"annotation":"women holding hands: light skin tone","group":1,"hexcode":"1F46D-1F3FB","order":2525,"shortcodes":["holding_hands_ww_tone1"],"unicode":"👭🏻"},{"annotation":"women holding hands: medium-light skin tone","group":1,"hexcode":"1F46D-1F3FC","order":2531,"shortcodes":["holding_hands_ww_tone2"],"unicode":"👭🏼"},{"annotation":"women holding hands: medium skin tone","group":1,"hexcode":"1F46D-1F3FD","order":2537,"shortcodes":["holding_hands_ww_tone3"],"unicode":"👭🏽"},{"annotation":"women holding hands: medium-dark skin tone","group":1,"hexcode":"1F46D-1F3FE","order":2543,"shortcodes":["holding_hands_ww_tone4"],"unicode":"👭🏾"},{"annotation":"women holding hands: dark skin tone","group":1,"hexcode":"1F46D-1F3FF","order":2549,"shortcodes":["holding_hands_ww_tone5"],"unicode":"👭🏿"},{"annotation":"women holding hands: light skin tone, medium-light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FC","order":2526,"shortcodes":["holding_hands_ww_tone1-2"],"unicode":"👩🏻🤝👩🏼"},{"annotation":"women holding hands: light skin tone, medium skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FD","order":2527,"shortcodes":["holding_hands_ww_tone1-3"],"unicode":"👩🏻🤝👩🏽"},{"annotation":"women holding hands: light skin tone, medium-dark skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FE","order":2528,"shortcodes":["holding_hands_ww_tone1-4"],"unicode":"👩🏻🤝👩🏾"},{"annotation":"women holding hands: light skin tone, dark skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F91D-200D-1F469-1F3FF","order":2529,"shortcodes":["holding_hands_ww_tone1-5"],"unicode":"👩🏻🤝👩🏿"},{"annotation":"women holding hands: medium-light skin tone, light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FB","order":2530,"shortcodes":["holding_hands_ww_tone2-1"],"unicode":"👩🏼🤝👩🏻"},{"annotation":"women holding hands: medium-light skin tone, medium skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FD","order":2532,"shortcodes":["holding_hands_ww_tone2-3"],"unicode":"👩🏼🤝👩🏽"},{"annotation":"women holding hands: medium-light skin tone, medium-dark skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FE","order":2533,"shortcodes":["holding_hands_ww_tone2-4"],"unicode":"👩🏼🤝👩🏾"},{"annotation":"women holding hands: medium-light skin tone, dark skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F91D-200D-1F469-1F3FF","order":2534,"shortcodes":["holding_hands_ww_tone2-5"],"unicode":"👩🏼🤝👩🏿"},{"annotation":"women holding hands: medium skin tone, light skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FB","order":2535,"shortcodes":["holding_hands_ww_tone3-1"],"unicode":"👩🏽🤝👩🏻"},{"annotation":"women holding hands: medium skin tone, medium-light skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FC","order":2536,"shortcodes":["holding_hands_ww_tone3-2"],"unicode":"👩🏽🤝👩🏼"},{"annotation":"women holding hands: medium skin tone, medium-dark skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FE","order":2538,"shortcodes":["holding_hands_ww_tone3-4"],"unicode":"👩🏽🤝👩🏾"},{"annotation":"women holding hands: medium skin tone, dark skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F91D-200D-1F469-1F3FF","order":2539,"shortcodes":["holding_hands_ww_tone3-5"],"unicode":"👩🏽🤝👩🏿"},{"annotation":"women holding hands: medium-dark skin tone, light skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FB","order":2540,"shortcodes":["holding_hands_ww_tone4-1"],"unicode":"👩🏾🤝👩🏻"},{"annotation":"women holding hands: medium-dark skin tone, medium-light skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FC","order":2541,"shortcodes":["holding_hands_ww_tone4-2"],"unicode":"👩🏾🤝👩🏼"},{"annotation":"women holding hands: medium-dark skin tone, medium skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FD","order":2542,"shortcodes":["holding_hands_ww_tone4-3"],"unicode":"👩🏾🤝👩🏽"},{"annotation":"women holding hands: medium-dark skin tone, dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F91D-200D-1F469-1F3FF","order":2544,"shortcodes":["holding_hands_ww_tone4-5"],"unicode":"👩🏾🤝👩🏿"},{"annotation":"women holding hands: dark skin tone, light skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FB","order":2545,"shortcodes":["holding_hands_ww_tone5-1"],"unicode":"👩🏿🤝👩🏻"},{"annotation":"women holding hands: dark skin tone, medium-light skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FC","order":2546,"shortcodes":["holding_hands_ww_tone5-2"],"unicode":"👩🏿🤝👩🏼"},{"annotation":"women holding hands: dark skin tone, medium skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FD","order":2547,"shortcodes":["holding_hands_ww_tone5-3"],"unicode":"👩🏿🤝👩🏽"},{"annotation":"women holding hands: dark skin tone, medium-dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F91D-200D-1F469-1F3FE","order":2548,"shortcodes":["holding_hands_ww_tone5-4"],"unicode":"👩🏿🤝👩🏾"}]},{"annotation":"woman and man holding hands","group":1,"hexcode":"1F46B","order":2550,"shortcodes":["holding_hands_mw","holding_hands_wm"],"tags":["couple","hand","hold","holding hands","man","woman"],"unicode":"👫","skins":[{"annotation":"woman and man holding hands: light skin tone","group":1,"hexcode":"1F46B-1F3FB","order":2551,"shortcodes":["holding_hands_mw_tone1","holding_hands_wm_tone1"],"unicode":"👫🏻"},{"annotation":"woman and man holding hands: medium-light skin tone","group":1,"hexcode":"1F46B-1F3FC","order":2557,"shortcodes":["holding_hands_mw_tone2","holding_hands_wm_tone2"],"unicode":"👫🏼"},{"annotation":"woman and man holding hands: medium skin tone","group":1,"hexcode":"1F46B-1F3FD","order":2563,"shortcodes":["holding_hands_mw_tone3","holding_hands_wm_tone3"],"unicode":"👫🏽"},{"annotation":"woman and man holding hands: medium-dark skin tone","group":1,"hexcode":"1F46B-1F3FE","order":2569,"shortcodes":["holding_hands_mw_tone4","holding_hands_wm_tone4"],"unicode":"👫🏾"},{"annotation":"woman and man holding hands: dark skin tone","group":1,"hexcode":"1F46B-1F3FF","order":2575,"shortcodes":["holding_hands_mw_tone5","holding_hands_wm_tone5"],"unicode":"👫🏿"},{"annotation":"woman and man holding hands: light skin tone, medium-light skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FC","order":2552,"shortcodes":["holding_hands_mw_tone1-2","holding_hands_wm_tone1-2"],"unicode":"👩🏻🤝👨🏼"},{"annotation":"woman and man holding hands: light skin tone, medium skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FD","order":2553,"shortcodes":["holding_hands_mw_tone1-3","holding_hands_wm_tone1-3"],"unicode":"👩🏻🤝👨🏽"},{"annotation":"woman and man holding hands: light skin tone, medium-dark skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FE","order":2554,"shortcodes":["holding_hands_mw_tone1-4","holding_hands_wm_tone1-4"],"unicode":"👩🏻🤝👨🏾"},{"annotation":"woman and man holding hands: light skin tone, dark skin tone","group":1,"hexcode":"1F469-1F3FB-200D-1F91D-200D-1F468-1F3FF","order":2555,"shortcodes":["holding_hands_mw_tone1-5","holding_hands_wm_tone1-5"],"unicode":"👩🏻🤝👨🏿"},{"annotation":"woman and man holding hands: medium-light skin tone, light skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FB","order":2556,"shortcodes":["holding_hands_mw_tone2-1","holding_hands_wm_tone2-1"],"unicode":"👩🏼🤝👨🏻"},{"annotation":"woman and man holding hands: medium-light skin tone, medium skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FD","order":2558,"shortcodes":["holding_hands_mw_tone2-3","holding_hands_wm_tone2-3"],"unicode":"👩🏼🤝👨🏽"},{"annotation":"woman and man holding hands: medium-light skin tone, medium-dark skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FE","order":2559,"shortcodes":["holding_hands_mw_tone2-4","holding_hands_wm_tone2-4"],"unicode":"👩🏼🤝👨🏾"},{"annotation":"woman and man holding hands: medium-light skin tone, dark skin tone","group":1,"hexcode":"1F469-1F3FC-200D-1F91D-200D-1F468-1F3FF","order":2560,"shortcodes":["holding_hands_mw_tone2-5","holding_hands_wm_tone2-5"],"unicode":"👩🏼🤝👨🏿"},{"annotation":"woman and man holding hands: medium skin tone, light skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FB","order":2561,"shortcodes":["holding_hands_mw_tone3-1","holding_hands_wm_tone3-1"],"unicode":"👩🏽🤝👨🏻"},{"annotation":"woman and man holding hands: medium skin tone, medium-light skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FC","order":2562,"shortcodes":["holding_hands_mw_tone3-2","holding_hands_wm_tone3-2"],"unicode":"👩🏽🤝👨🏼"},{"annotation":"woman and man holding hands: medium skin tone, medium-dark skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FE","order":2564,"shortcodes":["holding_hands_mw_tone3-4","holding_hands_wm_tone3-4"],"unicode":"👩🏽🤝👨🏾"},{"annotation":"woman and man holding hands: medium skin tone, dark skin tone","group":1,"hexcode":"1F469-1F3FD-200D-1F91D-200D-1F468-1F3FF","order":2565,"shortcodes":["holding_hands_mw_tone3-5","holding_hands_wm_tone3-5"],"unicode":"👩🏽🤝👨🏿"},{"annotation":"woman and man holding hands: medium-dark skin tone, light skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FB","order":2566,"shortcodes":["holding_hands_mw_tone4-1","holding_hands_wm_tone4-1"],"unicode":"👩🏾🤝👨🏻"},{"annotation":"woman and man holding hands: medium-dark skin tone, medium-light skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FC","order":2567,"shortcodes":["holding_hands_mw_tone4-2","holding_hands_wm_tone4-2"],"unicode":"👩🏾🤝👨🏼"},{"annotation":"woman and man holding hands: medium-dark skin tone, medium skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FD","order":2568,"shortcodes":["holding_hands_mw_tone4-3","holding_hands_wm_tone4-3"],"unicode":"👩🏾🤝👨🏽"},{"annotation":"woman and man holding hands: medium-dark skin tone, dark skin tone","group":1,"hexcode":"1F469-1F3FE-200D-1F91D-200D-1F468-1F3FF","order":2570,"shortcodes":["holding_hands_mw_tone4-5","holding_hands_wm_tone4-5"],"unicode":"👩🏾🤝👨🏿"},{"annotation":"woman and man holding hands: dark skin tone, light skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FB","order":2571,"shortcodes":["holding_hands_mw_tone5-1","holding_hands_wm_tone5-1"],"unicode":"👩🏿🤝👨🏻"},{"annotation":"woman and man holding hands: dark skin tone, medium-light skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FC","order":2572,"shortcodes":["holding_hands_mw_tone5-2","holding_hands_wm_tone5-2"],"unicode":"👩🏿🤝👨🏼"},{"annotation":"woman and man holding hands: dark skin tone, medium skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FD","order":2573,"shortcodes":["holding_hands_mw_tone5-3","holding_hands_wm_tone5-3"],"unicode":"👩🏿🤝👨🏽"},{"annotation":"woman and man holding hands: dark skin tone, medium-dark skin tone","group":1,"hexcode":"1F469-1F3FF-200D-1F91D-200D-1F468-1F3FE","order":2574,"shortcodes":["holding_hands_mw_tone5-4","holding_hands_wm_tone5-4"],"unicode":"👩🏿🤝👨🏾"}]},{"annotation":"men holding hands","group":1,"hexcode":"1F46C","order":2576,"shortcodes":["holding_hands_mm"],"tags":["couple","gemini","holding hands","man","men","twins","zodiac"],"unicode":"👬","skins":[{"annotation":"men holding hands: light skin tone","group":1,"hexcode":"1F46C-1F3FB","order":2577,"shortcodes":["holding_hands_mm_tone1"],"unicode":"👬🏻"},{"annotation":"men holding hands: medium-light skin tone","group":1,"hexcode":"1F46C-1F3FC","order":2583,"shortcodes":["holding_hands_mm_tone2"],"unicode":"👬🏼"},{"annotation":"men holding hands: medium skin tone","group":1,"hexcode":"1F46C-1F3FD","order":2589,"shortcodes":["holding_hands_mm_tone3"],"unicode":"👬🏽"},{"annotation":"men holding hands: medium-dark skin tone","group":1,"hexcode":"1F46C-1F3FE","order":2595,"shortcodes":["holding_hands_mm_tone4"],"unicode":"👬🏾"},{"annotation":"men holding hands: dark skin tone","group":1,"hexcode":"1F46C-1F3FF","order":2601,"shortcodes":["holding_hands_mm_tone5"],"unicode":"👬🏿"},{"annotation":"men holding hands: light skin tone, medium-light skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FC","order":2578,"shortcodes":["holding_hands_mm_tone1-2"],"unicode":"👨🏻🤝👨🏼"},{"annotation":"men holding hands: light skin tone, medium skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FD","order":2579,"shortcodes":["holding_hands_mm_tone1-3"],"unicode":"👨🏻🤝👨🏽"},{"annotation":"men holding hands: light skin tone, medium-dark skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FE","order":2580,"shortcodes":["holding_hands_mm_tone1-4"],"unicode":"👨🏻🤝👨🏾"},{"annotation":"men holding hands: light skin tone, dark skin tone","group":1,"hexcode":"1F468-1F3FB-200D-1F91D-200D-1F468-1F3FF","order":2581,"shortcodes":["holding_hands_mm_tone1-5"],"unicode":"👨🏻🤝👨🏿"},{"annotation":"men holding hands: medium-light skin tone, light skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FB","order":2582,"shortcodes":["holding_hands_mm_tone2-1"],"unicode":"👨🏼🤝👨🏻"},{"annotation":"men holding hands: medium-light skin tone, medium skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FD","order":2584,"shortcodes":["holding_hands_mm_tone2-3"],"unicode":"👨🏼🤝👨🏽"},{"annotation":"men holding hands: medium-light skin tone, medium-dark skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FE","order":2585,"shortcodes":["holding_hands_mm_tone2-4"],"unicode":"👨🏼🤝👨🏾"},{"annotation":"men holding hands: medium-light skin tone, dark skin tone","group":1,"hexcode":"1F468-1F3FC-200D-1F91D-200D-1F468-1F3FF","order":2586,"shortcodes":["holding_hands_mm_tone2-5"],"unicode":"👨🏼🤝👨🏿"},{"annotation":"men holding hands: medium skin tone, light skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FB","order":2587,"shortcodes":["holding_hands_mm_tone3-1"],"unicode":"👨🏽🤝👨🏻"},{"annotation":"men holding hands: medium skin tone, medium-light skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FC","order":2588,"shortcodes":["holding_hands_mm_tone3-2"],"unicode":"👨🏽🤝👨🏼"},{"annotation":"men holding hands: medium skin tone, medium-dark skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FE","order":2590,"shortcodes":["holding_hands_mm_tone3-4"],"unicode":"👨🏽🤝👨🏾"},{"annotation":"men holding hands: medium skin tone, dark skin tone","group":1,"hexcode":"1F468-1F3FD-200D-1F91D-200D-1F468-1F3FF","order":2591,"shortcodes":["holding_hands_mm_tone3-5"],"unicode":"👨🏽🤝👨🏿"},{"annotation":"men holding hands: medium-dark skin tone, light skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FB","order":2592,"shortcodes":["holding_hands_mm_tone4-1"],"unicode":"👨🏾🤝👨🏻"},{"annotation":"men holding hands: medium-dark skin tone, medium-light skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FC","order":2593,"shortcodes":["holding_hands_mm_tone4-2"],"unicode":"👨🏾🤝👨🏼"},{"annotation":"men holding hands: medium-dark skin tone, medium skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FD","order":2594,"shortcodes":["holding_hands_mm_tone4-3"],"unicode":"👨🏾🤝👨🏽"},{"annotation":"men holding hands: medium-dark skin tone, dark skin tone","group":1,"hexcode":"1F468-1F3FE-200D-1F91D-200D-1F468-1F3FF","order":2596,"shortcodes":["holding_hands_mm_tone4-5"],"unicode":"👨🏾🤝👨🏿"},{"annotation":"men holding hands: dark skin tone, light skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FB","order":2597,"shortcodes":["holding_hands_mm_tone5-1"],"unicode":"👨🏿🤝👨🏻"},{"annotation":"men holding hands: dark skin tone, medium-light skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FC","order":2598,"shortcodes":["holding_hands_mm_tone5-2"],"unicode":"👨🏿🤝👨🏼"},{"annotation":"men holding hands: dark skin tone, medium skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FD","order":2599,"shortcodes":["holding_hands_mm_tone5-3"],"unicode":"👨🏿🤝👨🏽"},{"annotation":"men holding hands: dark skin tone, medium-dark skin tone","group":1,"hexcode":"1F468-1F3FF-200D-1F91D-200D-1F468-1F3FE","order":2600,"shortcodes":["holding_hands_mm_tone5-4"],"unicode":"👨🏿🤝👨🏾"}]},{"annotation":"kiss","group":1,"hexcode":"1F48F","order":2602,"shortcodes":["couple"],"tags":["couple"],"unicode":"💏"},{"annotation":"kiss: woman, man","group":1,"hexcode":"1F469-200D-2764-FE0F-200D-1F48B-200D-1F468","order":2603,"shortcodes":["kiss_mw","kiss_wm"],"tags":["couple","kiss","man","woman"],"unicode":"👩❤️💋👨"},{"annotation":"kiss: man, man","group":1,"hexcode":"1F468-200D-2764-FE0F-200D-1F48B-200D-1F468","order":2605,"shortcodes":["kiss_mm"],"tags":["couple","kiss","man"],"unicode":"👨❤️💋👨"},{"annotation":"kiss: woman, woman","group":1,"hexcode":"1F469-200D-2764-FE0F-200D-1F48B-200D-1F469","order":2607,"shortcodes":["kiss_ww"],"tags":["couple","kiss","woman"],"unicode":"👩❤️💋👩"},{"annotation":"couple with heart","group":1,"hexcode":"1F491","order":2609,"shortcodes":["couple_heart"],"tags":["couple","love"],"unicode":"💑"},{"annotation":"couple with heart: woman, man","group":1,"hexcode":"1F469-200D-2764-FE0F-200D-1F468","order":2610,"shortcodes":["couple_mw","couple_wm"],"tags":["couple","couple with heart","love","man","woman"],"unicode":"👩❤️👨"},{"annotation":"couple with heart: man, man","group":1,"hexcode":"1F468-200D-2764-FE0F-200D-1F468","order":2612,"shortcodes":["couple_mm"],"tags":["couple","couple with heart","love","man"],"unicode":"👨❤️👨"},{"annotation":"couple with heart: woman, woman","group":1,"hexcode":"1F469-200D-2764-FE0F-200D-1F469","order":2614,"shortcodes":["couple_ww"],"tags":["couple","couple with heart","love","woman"],"unicode":"👩❤️👩"},{"annotation":"family","group":1,"hexcode":"1F46A","order":2616,"shortcodes":["family"],"tags":["family"],"unicode":"👪️"},{"annotation":"family: man, woman, boy","group":1,"hexcode":"1F468-200D-1F469-200D-1F466","order":2617,"shortcodes":["family_mwb"],"tags":["boy","family","man","woman"],"unicode":"👨👩👦"},{"annotation":"family: man, woman, girl","group":1,"hexcode":"1F468-200D-1F469-200D-1F467","order":2618,"shortcodes":["family_mwg"],"tags":["family","girl","man","woman"],"unicode":"👨👩👧"},{"annotation":"family: man, woman, girl, boy","group":1,"hexcode":"1F468-200D-1F469-200D-1F467-200D-1F466","order":2619,"shortcodes":["family_mwgb"],"tags":["boy","family","girl","man","woman"],"unicode":"👨👩👧👦"},{"annotation":"family: man, woman, boy, boy","group":1,"hexcode":"1F468-200D-1F469-200D-1F466-200D-1F466","order":2620,"shortcodes":["family_mwbb"],"tags":["boy","family","man","woman"],"unicode":"👨👩👦👦"},{"annotation":"family: man, woman, girl, girl","group":1,"hexcode":"1F468-200D-1F469-200D-1F467-200D-1F467","order":2621,"shortcodes":["family_mwgg"],"tags":["family","girl","man","woman"],"unicode":"👨👩👧👧"},{"annotation":"family: man, man, boy","group":1,"hexcode":"1F468-200D-1F468-200D-1F466","order":2622,"shortcodes":["family_mmb"],"tags":["boy","family","man"],"unicode":"👨👨👦"},{"annotation":"family: man, man, girl","group":1,"hexcode":"1F468-200D-1F468-200D-1F467","order":2623,"shortcodes":["family_mmg"],"tags":["family","girl","man"],"unicode":"👨👨👧"},{"annotation":"family: man, man, girl, boy","group":1,"hexcode":"1F468-200D-1F468-200D-1F467-200D-1F466","order":2624,"shortcodes":["family_mmgb"],"tags":["boy","family","girl","man"],"unicode":"👨👨👧👦"},{"annotation":"family: man, man, boy, boy","group":1,"hexcode":"1F468-200D-1F468-200D-1F466-200D-1F466","order":2625,"shortcodes":["family_mmbb"],"tags":["boy","family","man"],"unicode":"👨👨👦👦"},{"annotation":"family: man, man, girl, girl","group":1,"hexcode":"1F468-200D-1F468-200D-1F467-200D-1F467","order":2626,"shortcodes":["family_mmgg"],"tags":["family","girl","man"],"unicode":"👨👨👧👧"},{"annotation":"family: woman, woman, boy","group":1,"hexcode":"1F469-200D-1F469-200D-1F466","order":2627,"shortcodes":["family_wwb"],"tags":["boy","family","woman"],"unicode":"👩👩👦"},{"annotation":"family: woman, woman, girl","group":1,"hexcode":"1F469-200D-1F469-200D-1F467","order":2628,"shortcodes":["family_wwg"],"tags":["family","girl","woman"],"unicode":"👩👩👧"},{"annotation":"family: woman, woman, girl, boy","group":1,"hexcode":"1F469-200D-1F469-200D-1F467-200D-1F466","order":2629,"shortcodes":["family_wwgb"],"tags":["boy","family","girl","woman"],"unicode":"👩👩👧👦"},{"annotation":"family: woman, woman, boy, boy","group":1,"hexcode":"1F469-200D-1F469-200D-1F466-200D-1F466","order":2630,"shortcodes":["family_wwbb"],"tags":["boy","family","woman"],"unicode":"👩👩👦👦"},{"annotation":"family: woman, woman, girl, girl","group":1,"hexcode":"1F469-200D-1F469-200D-1F467-200D-1F467","order":2631,"shortcodes":["family_wwgg"],"tags":["family","girl","woman"],"unicode":"👩👩👧👧"},{"annotation":"family: man, boy","group":1,"hexcode":"1F468-200D-1F466","order":2632,"shortcodes":["family_mb"],"tags":["boy","family","man"],"unicode":"👨👦"},{"annotation":"family: man, boy, boy","group":1,"hexcode":"1F468-200D-1F466-200D-1F466","order":2633,"shortcodes":["family_mbb"],"tags":["boy","family","man"],"unicode":"👨👦👦"},{"annotation":"family: man, girl","group":1,"hexcode":"1F468-200D-1F467","order":2634,"shortcodes":["family_mg"],"tags":["family","girl","man"],"unicode":"👨👧"},{"annotation":"family: man, girl, boy","group":1,"hexcode":"1F468-200D-1F467-200D-1F466","order":2635,"shortcodes":["family_mgb"],"tags":["boy","family","girl","man"],"unicode":"👨👧👦"},{"annotation":"family: man, girl, girl","group":1,"hexcode":"1F468-200D-1F467-200D-1F467","order":2636,"shortcodes":["family_mgg"],"tags":["family","girl","man"],"unicode":"👨👧👧"},{"annotation":"family: woman, boy","group":1,"hexcode":"1F469-200D-1F466","order":2637,"shortcodes":["family_wb"],"tags":["boy","family","woman"],"unicode":"👩👦"},{"annotation":"family: woman, boy, boy","group":1,"hexcode":"1F469-200D-1F466-200D-1F466","order":2638,"shortcodes":["family_wbb"],"tags":["boy","family","woman"],"unicode":"👩👦👦"},{"annotation":"family: woman, girl","group":1,"hexcode":"1F469-200D-1F467","order":2639,"shortcodes":["family_wg"],"tags":["family","girl","woman"],"unicode":"👩👧"},{"annotation":"family: woman, girl, boy","group":1,"hexcode":"1F469-200D-1F467-200D-1F466","order":2640,"shortcodes":["family_wgb"],"tags":["boy","family","girl","woman"],"unicode":"👩👧👦"},{"annotation":"family: woman, girl, girl","group":1,"hexcode":"1F469-200D-1F467-200D-1F467","order":2641,"shortcodes":["family_wgg"],"tags":["family","girl","woman"],"unicode":"👩👧👧"},{"annotation":"speaking head","group":1,"hexcode":"1F5E3","order":2643,"shortcodes":["speaking_head"],"tags":["face","head","silhouette","speak","speaking"],"unicode":"🗣️"},{"annotation":"bust in silhouette","group":1,"hexcode":"1F464","order":2644,"shortcodes":["bust_silhouette"],"tags":["bust","silhouette"],"unicode":"👤"},{"annotation":"busts in silhouette","group":1,"hexcode":"1F465","order":2645,"shortcodes":["busts_silhouette"],"tags":["bust","silhouette"],"unicode":"👥"},{"annotation":"people hugging","group":1,"hexcode":"1FAC2","order":2646,"shortcodes":["people_hugging"],"tags":["goodbye","hello","hug","thanks"],"unicode":"🫂"},{"annotation":"footprints","group":1,"hexcode":"1F463","order":2647,"shortcodes":["footprints"],"tags":["clothing","footprint","print"],"unicode":"👣"},{"annotation":"light skin tone","group":2,"hexcode":"1F3FB","order":2648,"shortcodes":["tone_light","tone1"],"tags":["skin tone","type 1–2"],"unicode":"🏻"},{"annotation":"medium-light skin tone","group":2,"hexcode":"1F3FC","order":2649,"shortcodes":["tone_medium_light","tone2"],"tags":["skin tone","type 3"],"unicode":"🏼"},{"annotation":"medium skin tone","group":2,"hexcode":"1F3FD","order":2650,"shortcodes":["tone_medium","tone3"],"tags":["skin tone","type 4"],"unicode":"🏽"},{"annotation":"medium-dark skin tone","group":2,"hexcode":"1F3FE","order":2651,"shortcodes":["tone_medium_dark","tone4"],"tags":["skin tone","type 5"],"unicode":"🏾"},{"annotation":"dark skin tone","group":2,"hexcode":"1F3FF","order":2652,"shortcodes":["tone_dark","tone5"],"tags":["skin tone","type 6"],"unicode":"🏿"},{"annotation":"red hair","group":2,"hexcode":"1F9B0","order":2653,"shortcodes":["red_hair"],"tags":["ginger","redhead"],"unicode":"🦰"},{"annotation":"curly hair","group":2,"hexcode":"1F9B1","order":2654,"shortcodes":["curly_hair"],"tags":["afro","curly","ringlets"],"unicode":"🦱"},{"annotation":"white hair","group":2,"hexcode":"1F9B3","order":2655,"shortcodes":["white_hair"],"tags":["gray","hair","old","white"],"unicode":"🦳"},{"annotation":"bald","group":2,"hexcode":"1F9B2","order":2656,"shortcodes":["bald"],"tags":["chemotherapy","hairless","no hair","shaven"],"unicode":"🦲"},{"annotation":"monkey face","group":3,"hexcode":"1F435","order":2657,"shortcodes":["monkey_face"],"tags":["face","monkey"],"unicode":"🐵"},{"annotation":"monkey","group":3,"hexcode":"1F412","order":2658,"shortcodes":["monkey"],"tags":["monkey"],"unicode":"🐒"},{"annotation":"gorilla","group":3,"hexcode":"1F98D","order":2659,"shortcodes":["gorilla"],"tags":["gorilla"],"unicode":"🦍"},{"annotation":"orangutan","group":3,"hexcode":"1F9A7","order":2660,"shortcodes":["orangutan"],"tags":["ape"],"unicode":"🦧"},{"annotation":"dog face","group":3,"hexcode":"1F436","order":2661,"shortcodes":["dog_face"],"tags":["dog","face","pet"],"unicode":"🐶"},{"annotation":"dog","group":3,"hexcode":"1F415","order":2662,"shortcodes":["dog"],"tags":["pet"],"unicode":"🐕️"},{"annotation":"guide dog","group":3,"hexcode":"1F9AE","order":2663,"shortcodes":["guide_dog"],"tags":["accessibility","blind","guide"],"unicode":"🦮"},{"annotation":"service dog","group":3,"hexcode":"1F415-200D-1F9BA","order":2664,"shortcodes":["service_dog"],"tags":["accessibility","assistance","dog","service"],"unicode":"🐕🦺"},{"annotation":"poodle","group":3,"hexcode":"1F429","order":2665,"shortcodes":["poodle"],"tags":["dog"],"unicode":"🐩"},{"annotation":"wolf","group":3,"hexcode":"1F43A","order":2666,"shortcodes":["wolf_face"],"tags":["face"],"unicode":"🐺"},{"annotation":"fox","group":3,"hexcode":"1F98A","order":2667,"shortcodes":["fox_face"],"tags":["face"],"unicode":"🦊"},{"annotation":"raccoon","group":3,"hexcode":"1F99D","order":2668,"shortcodes":["raccoon"],"tags":["curious","sly"],"unicode":"🦝"},{"annotation":"cat face","group":3,"hexcode":"1F431","order":2669,"shortcodes":["cat_face"],"tags":["cat","face","pet"],"unicode":"🐱"},{"annotation":"cat","group":3,"hexcode":"1F408","order":2670,"shortcodes":["cat"],"tags":["pet"],"unicode":"🐈️"},{"annotation":"black cat","group":3,"hexcode":"1F408-200D-2B1B","order":2671,"shortcodes":["black_cat"],"tags":["black","cat","unlucky"],"unicode":"🐈⬛"},{"annotation":"lion","group":3,"hexcode":"1F981","order":2672,"shortcodes":["lion_face"],"tags":["face","leo","zodiac"],"unicode":"🦁"},{"annotation":"tiger face","group":3,"hexcode":"1F42F","order":2673,"shortcodes":["tiger_face"],"tags":["face","tiger"],"unicode":"🐯"},{"annotation":"tiger","group":3,"hexcode":"1F405","order":2674,"shortcodes":["tiger"],"tags":["tiger"],"unicode":"🐅"},{"annotation":"leopard","group":3,"hexcode":"1F406","order":2675,"shortcodes":["leopard"],"tags":["leopard"],"unicode":"🐆"},{"annotation":"horse face","group":3,"hexcode":"1F434","order":2676,"shortcodes":["horse_face"],"tags":["face","horse"],"unicode":"🐴"},{"annotation":"horse","group":3,"hexcode":"1F40E","order":2677,"shortcodes":["horse"],"tags":["equestrian","racehorse","racing"],"unicode":"🐎"},{"annotation":"unicorn","group":3,"hexcode":"1F984","order":2678,"shortcodes":["unicorn_face"],"tags":["face"],"unicode":"🦄"},{"annotation":"zebra","group":3,"hexcode":"1F993","order":2679,"shortcodes":["zebra"],"tags":["stripe"],"unicode":"🦓"},{"annotation":"deer","group":3,"hexcode":"1F98C","order":2680,"shortcodes":["deer"],"tags":["deer"],"unicode":"🦌"},{"annotation":"bison","group":3,"hexcode":"1F9AC","order":2681,"shortcodes":["bison"],"tags":["buffalo","herd","wisent"],"unicode":"🦬"},{"annotation":"cow face","group":3,"hexcode":"1F42E","order":2682,"shortcodes":["cow_face"],"tags":["cow","face"],"unicode":"🐮"},{"annotation":"ox","group":3,"hexcode":"1F402","order":2683,"shortcodes":["ox"],"tags":["bull","taurus","zodiac"],"unicode":"🐂"},{"annotation":"water buffalo","group":3,"hexcode":"1F403","order":2684,"shortcodes":["water_buffalo"],"tags":["buffalo","water"],"unicode":"🐃"},{"annotation":"cow","group":3,"hexcode":"1F404","order":2685,"shortcodes":["cow"],"tags":["cow"],"unicode":"🐄"},{"annotation":"pig face","group":3,"hexcode":"1F437","order":2686,"shortcodes":["pig_face"],"tags":["face","pig"],"unicode":"🐷"},{"annotation":"pig","group":3,"hexcode":"1F416","order":2687,"shortcodes":["pig"],"tags":["sow"],"unicode":"🐖"},{"annotation":"boar","group":3,"hexcode":"1F417","order":2688,"shortcodes":["boar"],"tags":["pig"],"unicode":"🐗"},{"annotation":"pig nose","group":3,"hexcode":"1F43D","order":2689,"shortcodes":["pig_nose"],"tags":["face","nose","pig"],"unicode":"🐽"},{"annotation":"ram","group":3,"hexcode":"1F40F","order":2690,"shortcodes":["ram"],"tags":["aries","male","sheep","zodiac"],"unicode":"🐏"},{"annotation":"ewe","group":3,"hexcode":"1F411","order":2691,"shortcodes":["sheep"],"tags":["female","sheep"],"unicode":"🐑"},{"annotation":"goat","group":3,"hexcode":"1F410","order":2692,"shortcodes":["goat"],"tags":["capricorn","zodiac"],"unicode":"🐐"},{"annotation":"camel","group":3,"hexcode":"1F42A","order":2693,"shortcodes":["camel"],"tags":["dromedary","hump"],"unicode":"🐪"},{"annotation":"two-hump camel","group":3,"hexcode":"1F42B","order":2694,"shortcodes":["two_hump_camel"],"tags":["bactrian","camel","hump"],"unicode":"🐫"},{"annotation":"llama","group":3,"hexcode":"1F999","order":2695,"shortcodes":["llama"],"tags":["alpaca","guanaco","vicuña","wool"],"unicode":"🦙"},{"annotation":"giraffe","group":3,"hexcode":"1F992","order":2696,"shortcodes":["giraffe"],"tags":["spots"],"unicode":"🦒"},{"annotation":"elephant","group":3,"hexcode":"1F418","order":2697,"shortcodes":["elephant"],"tags":["elephant"],"unicode":"🐘"},{"annotation":"mammoth","group":3,"hexcode":"1F9A3","order":2698,"shortcodes":["mammoth"],"tags":["extinction","large","tusk","woolly"],"unicode":"🦣"},{"annotation":"rhinoceros","group":3,"hexcode":"1F98F","order":2699,"shortcodes":["rhino"],"tags":["rhinoceros"],"unicode":"🦏"},{"annotation":"hippopotamus","group":3,"hexcode":"1F99B","order":2700,"shortcodes":["hippo"],"tags":["hippo"],"unicode":"🦛"},{"annotation":"mouse face","group":3,"hexcode":"1F42D","order":2701,"shortcodes":["mouse_face"],"tags":["face","mouse"],"unicode":"🐭"},{"annotation":"mouse","group":3,"hexcode":"1F401","order":2702,"shortcodes":["mouse"],"tags":["mouse"],"unicode":"🐁"},{"annotation":"rat","group":3,"hexcode":"1F400","order":2703,"shortcodes":["rat"],"tags":["rat"],"unicode":"🐀"},{"annotation":"hamster","group":3,"hexcode":"1F439","order":2704,"shortcodes":["hamster_face"],"tags":["face","pet"],"unicode":"🐹"},{"annotation":"rabbit face","group":3,"hexcode":"1F430","order":2705,"shortcodes":["rabbit_face"],"tags":["bunny","face","pet","rabbit"],"unicode":"🐰"},{"annotation":"rabbit","group":3,"hexcode":"1F407","order":2706,"shortcodes":["rabbit"],"tags":["bunny","pet"],"unicode":"🐇"},{"annotation":"chipmunk","group":3,"hexcode":"1F43F","order":2708,"shortcodes":["chipmunk"],"tags":["squirrel"],"unicode":"🐿️"},{"annotation":"beaver","group":3,"hexcode":"1F9AB","order":2709,"shortcodes":["beaver"],"tags":["dam"],"unicode":"🦫"},{"annotation":"hedgehog","group":3,"hexcode":"1F994","order":2710,"shortcodes":["hedgehog"],"tags":["spiny"],"unicode":"🦔"},{"annotation":"bat","group":3,"hexcode":"1F987","order":2711,"shortcodes":["bat"],"tags":["vampire"],"unicode":"🦇"},{"annotation":"bear","group":3,"hexcode":"1F43B","order":2712,"shortcodes":["bear_face"],"tags":["face"],"unicode":"🐻"},{"annotation":"polar bear","group":3,"hexcode":"1F43B-200D-2744-FE0F","order":2713,"shortcodes":["polar_bear_face"],"tags":["arctic","bear","white"],"unicode":"🐻❄️"},{"annotation":"koala","group":3,"hexcode":"1F428","order":2715,"shortcodes":["koala_face"],"tags":["bear"],"unicode":"🐨"},{"annotation":"panda","group":3,"hexcode":"1F43C","order":2716,"shortcodes":["panda_face"],"tags":["face"],"unicode":"🐼"},{"annotation":"sloth","group":3,"hexcode":"1F9A5","order":2717,"shortcodes":["sloth"],"tags":["lazy","slow"],"unicode":"🦥"},{"annotation":"otter","group":3,"hexcode":"1F9A6","order":2718,"shortcodes":["otter"],"tags":["fishing","playful"],"unicode":"🦦"},{"annotation":"skunk","group":3,"hexcode":"1F9A8","order":2719,"shortcodes":["skunk"],"tags":["stink"],"unicode":"🦨"},{"annotation":"kangaroo","group":3,"hexcode":"1F998","order":2720,"shortcodes":["kangaroo"],"tags":["australia","joey","jump","marsupial"],"unicode":"🦘"},{"annotation":"badger","group":3,"hexcode":"1F9A1","order":2721,"shortcodes":["badger"],"tags":["honey badger","pester"],"unicode":"🦡"},{"annotation":"paw prints","group":3,"hexcode":"1F43E","order":2722,"shortcodes":["feet"],"tags":["feet","paw","print"],"unicode":"🐾"},{"annotation":"turkey","group":3,"hexcode":"1F983","order":2723,"shortcodes":["turkey"],"tags":["bird"],"unicode":"🦃"},{"annotation":"chicken","group":3,"hexcode":"1F414","order":2724,"shortcodes":["chicken"],"tags":["bird"],"unicode":"🐔"},{"annotation":"rooster","group":3,"hexcode":"1F413","order":2725,"shortcodes":["rooster"],"tags":["bird"],"unicode":"🐓"},{"annotation":"hatching chick","group":3,"hexcode":"1F423","order":2726,"shortcodes":["hatching_chick"],"tags":["baby","bird","chick","hatching"],"unicode":"🐣"},{"annotation":"baby chick","group":3,"hexcode":"1F424","order":2727,"shortcodes":["baby_chick"],"tags":["baby","bird","chick"],"unicode":"🐤"},{"annotation":"front-facing baby chick","group":3,"hexcode":"1F425","order":2728,"shortcodes":["hatched_chick"],"tags":["baby","bird","chick"],"unicode":"🐥"},{"annotation":"bird","group":3,"hexcode":"1F426","order":2729,"shortcodes":["bird"],"tags":["bird"],"unicode":"🐦️"},{"annotation":"penguin","group":3,"hexcode":"1F427","order":2730,"shortcodes":["penguin"],"tags":["bird"],"unicode":"🐧"},{"annotation":"dove","group":3,"hexcode":"1F54A","order":2732,"shortcodes":["dove"],"tags":["bird","fly","peace"],"unicode":"🕊️"},{"annotation":"eagle","group":3,"hexcode":"1F985","order":2733,"shortcodes":["eagle"],"tags":["bird"],"unicode":"🦅"},{"annotation":"duck","group":3,"hexcode":"1F986","order":2734,"shortcodes":["duck"],"tags":["bird"],"unicode":"🦆"},{"annotation":"swan","group":3,"hexcode":"1F9A2","order":2735,"shortcodes":["swan"],"tags":["bird","cygnet","ugly duckling"],"unicode":"🦢"},{"annotation":"owl","group":3,"hexcode":"1F989","order":2736,"shortcodes":["owl"],"tags":["bird","wise"],"unicode":"🦉"},{"annotation":"dodo","group":3,"hexcode":"1F9A4","order":2737,"shortcodes":["dodo"],"tags":["extinction","large","mauritius"],"unicode":"🦤"},{"annotation":"feather","group":3,"hexcode":"1FAB6","order":2738,"shortcodes":["feather"],"tags":["bird","flight","light","plumage"],"unicode":"🪶"},{"annotation":"flamingo","group":3,"hexcode":"1F9A9","order":2739,"shortcodes":["flamingo"],"tags":["flamboyant","tropical"],"unicode":"🦩"},{"annotation":"peacock","group":3,"hexcode":"1F99A","order":2740,"shortcodes":["peacock"],"tags":["bird","ostentatious","peahen","proud"],"unicode":"🦚"},{"annotation":"parrot","group":3,"hexcode":"1F99C","order":2741,"shortcodes":["parrot"],"tags":["bird","pirate","talk"],"unicode":"🦜"},{"annotation":"frog","group":3,"hexcode":"1F438","order":2742,"shortcodes":["frog_face"],"tags":["face"],"unicode":"🐸"},{"annotation":"crocodile","group":3,"hexcode":"1F40A","order":2743,"shortcodes":["crocodile"],"tags":["crocodile"],"unicode":"🐊"},{"annotation":"turtle","group":3,"hexcode":"1F422","order":2744,"shortcodes":["turtle"],"tags":["terrapin","tortoise"],"unicode":"🐢"},{"annotation":"lizard","group":3,"hexcode":"1F98E","order":2745,"shortcodes":["lizard"],"tags":["reptile"],"unicode":"🦎"},{"annotation":"snake","group":3,"hexcode":"1F40D","order":2746,"shortcodes":["snake"],"tags":["bearer","ophiuchus","serpent","zodiac"],"unicode":"🐍"},{"annotation":"dragon face","group":3,"hexcode":"1F432","order":2747,"shortcodes":["dragon_face"],"tags":["dragon","face","fairy tale"],"unicode":"🐲"},{"annotation":"dragon","group":3,"hexcode":"1F409","order":2748,"shortcodes":["dragon"],"tags":["fairy tale"],"unicode":"🐉"},{"annotation":"sauropod","group":3,"hexcode":"1F995","order":2749,"shortcodes":["sauropod"],"tags":["brachiosaurus","brontosaurus","diplodocus"],"unicode":"🦕"},{"annotation":"T-Rex","group":3,"hexcode":"1F996","order":2750,"shortcodes":["trex"],"tags":["t-rex","tyrannosaurus rex"],"unicode":"🦖"},{"annotation":"spouting whale","group":3,"hexcode":"1F433","order":2751,"shortcodes":["spouting_whale"],"tags":["face","spouting","whale"],"unicode":"🐳"},{"annotation":"whale","group":3,"hexcode":"1F40B","order":2752,"shortcodes":["whale"],"tags":["whale"],"unicode":"🐋"},{"annotation":"dolphin","group":3,"hexcode":"1F42C","order":2753,"shortcodes":["dolphin"],"tags":["flipper"],"unicode":"🐬"},{"annotation":"seal","group":3,"hexcode":"1F9AD","order":2754,"shortcodes":["seal"],"tags":["sea lion"],"unicode":"🦭"},{"annotation":"fish","group":3,"hexcode":"1F41F","order":2755,"shortcodes":["fish"],"tags":["pisces","zodiac"],"unicode":"🐟️"},{"annotation":"tropical fish","group":3,"hexcode":"1F420","order":2756,"shortcodes":["tropical_fish"],"tags":["fish","tropical"],"unicode":"🐠"},{"annotation":"blowfish","group":3,"hexcode":"1F421","order":2757,"shortcodes":["blowfish"],"tags":["fish"],"unicode":"🐡"},{"annotation":"shark","group":3,"hexcode":"1F988","order":2758,"shortcodes":["shark"],"tags":["fish"],"unicode":"🦈"},{"annotation":"octopus","group":3,"hexcode":"1F419","order":2759,"shortcodes":["octopus"],"tags":["octopus"],"unicode":"🐙"},{"annotation":"spiral shell","group":3,"hexcode":"1F41A","order":2760,"shortcodes":["shell"],"tags":["shell","spiral"],"unicode":"🐚"},{"annotation":"snail","group":3,"hexcode":"1F40C","order":2761,"shortcodes":["snail"],"tags":["snail"],"unicode":"🐌"},{"annotation":"butterfly","group":3,"hexcode":"1F98B","order":2762,"shortcodes":["butterfly"],"tags":["insect","pretty"],"unicode":"🦋"},{"annotation":"bug","group":3,"hexcode":"1F41B","order":2763,"shortcodes":["bug"],"tags":["insect"],"unicode":"🐛"},{"annotation":"ant","group":3,"hexcode":"1F41C","order":2764,"shortcodes":["ant"],"tags":["insect"],"unicode":"🐜"},{"annotation":"honeybee","group":3,"hexcode":"1F41D","order":2765,"shortcodes":["bee"],"tags":["bee","insect"],"unicode":"🐝"},{"annotation":"beetle","group":3,"hexcode":"1FAB2","order":2766,"shortcodes":["beetle"],"tags":["bug","insect"],"unicode":"🪲"},{"annotation":"lady beetle","group":3,"hexcode":"1F41E","order":2767,"shortcodes":["lady_bug"],"tags":["beetle","insect","ladybird","ladybug"],"unicode":"🐞"},{"annotation":"cricket","group":3,"hexcode":"1F997","order":2768,"shortcodes":["cricket"],"tags":["grasshopper"],"unicode":"🦗"},{"annotation":"cockroach","group":3,"hexcode":"1FAB3","order":2769,"shortcodes":["cockroach"],"tags":["insect","pest","roach"],"unicode":"🪳"},{"annotation":"spider","group":3,"hexcode":"1F577","order":2771,"shortcodes":["spider"],"tags":["insect"],"unicode":"🕷️"},{"annotation":"spider web","group":3,"hexcode":"1F578","order":2773,"shortcodes":["spider_web"],"tags":["spider","web"],"unicode":"🕸️"},{"annotation":"scorpion","group":3,"hexcode":"1F982","order":2774,"shortcodes":["scorpion"],"tags":["scorpio","zodiac"],"unicode":"🦂"},{"annotation":"mosquito","group":3,"hexcode":"1F99F","order":2775,"shortcodes":["mosquito"],"tags":["disease","fever","malaria","pest","virus"],"unicode":"🦟"},{"annotation":"fly","group":3,"hexcode":"1FAB0","order":2776,"shortcodes":["fly"],"tags":["disease","maggot","pest","rotting"],"unicode":"🪰"},{"annotation":"worm","group":3,"hexcode":"1FAB1","order":2777,"shortcodes":["worm"],"tags":["annelid","earthworm","parasite"],"unicode":"🪱"},{"annotation":"microbe","group":3,"hexcode":"1F9A0","order":2778,"shortcodes":["microbe","germ"],"tags":["amoeba","bacteria","virus"],"unicode":"🦠"},{"annotation":"bouquet","group":3,"hexcode":"1F490","order":2779,"shortcodes":["bouquet"],"tags":["flower"],"unicode":"💐"},{"annotation":"cherry blossom","group":3,"hexcode":"1F338","order":2780,"shortcodes":["cherry_blossom"],"tags":["blossom","cherry","flower"],"unicode":"🌸"},{"annotation":"white flower","group":3,"hexcode":"1F4AE","order":2781,"shortcodes":["white_flower"],"tags":["flower"],"unicode":"💮"},{"annotation":"rosette","group":3,"hexcode":"1F3F5","order":2783,"shortcodes":["rosette"],"tags":["plant"],"unicode":"🏵️"},{"annotation":"rose","group":3,"hexcode":"1F339","order":2784,"shortcodes":["rose"],"tags":["flower"],"unicode":"🌹"},{"annotation":"wilted flower","group":3,"hexcode":"1F940","order":2785,"shortcodes":["wilted_rose"],"tags":["flower","wilted"],"unicode":"🥀"},{"annotation":"hibiscus","group":3,"hexcode":"1F33A","order":2786,"shortcodes":["hibiscus"],"tags":["flower"],"unicode":"🌺"},{"annotation":"sunflower","group":3,"hexcode":"1F33B","order":2787,"shortcodes":["sunflower"],"tags":["flower","sun"],"unicode":"🌻"},{"annotation":"blossom","group":3,"hexcode":"1F33C","order":2788,"shortcodes":["blossom"],"tags":["flower"],"unicode":"🌼"},{"annotation":"tulip","group":3,"hexcode":"1F337","order":2789,"shortcodes":["tulip"],"tags":["flower"],"unicode":"🌷"},{"annotation":"seedling","group":3,"hexcode":"1F331","order":2790,"shortcodes":["seedling"],"tags":["young"],"unicode":"🌱"},{"annotation":"potted plant","group":3,"hexcode":"1FAB4","order":2791,"shortcodes":["potted_plant"],"tags":["boring","grow","house","nurturing","plant","useless"],"unicode":"🪴"},{"annotation":"evergreen tree","group":3,"hexcode":"1F332","order":2792,"shortcodes":["evergreen_tree"],"tags":["tree"],"unicode":"🌲"},{"annotation":"deciduous tree","group":3,"hexcode":"1F333","order":2793,"shortcodes":["deciduous_tree"],"tags":["deciduous","shedding","tree"],"unicode":"🌳"},{"annotation":"palm tree","group":3,"hexcode":"1F334","order":2794,"shortcodes":["palm_tree"],"tags":["palm","tree"],"unicode":"🌴"},{"annotation":"cactus","group":3,"hexcode":"1F335","order":2795,"shortcodes":["cactus"],"tags":["plant"],"unicode":"🌵"},{"annotation":"sheaf of rice","group":3,"hexcode":"1F33E","order":2796,"shortcodes":["ear_of_rice"],"tags":["ear","grain","rice"],"unicode":"🌾"},{"annotation":"herb","group":3,"hexcode":"1F33F","order":2797,"shortcodes":["herb"],"tags":["leaf"],"unicode":"🌿"},{"annotation":"shamrock","group":3,"hexcode":"2618","order":2799,"shortcodes":["shamrock"],"tags":["plant"],"unicode":"☘️"},{"annotation":"four leaf clover","group":3,"hexcode":"1F340","order":2800,"shortcodes":["four_leaf_clover"],"tags":["4","clover","four","four-leaf clover","leaf"],"unicode":"🍀"},{"annotation":"maple leaf","group":3,"hexcode":"1F341","order":2801,"shortcodes":["maple_leaf"],"tags":["falling","leaf","maple"],"unicode":"🍁"},{"annotation":"fallen leaf","group":3,"hexcode":"1F342","order":2802,"shortcodes":["fallen_leaf"],"tags":["falling","leaf"],"unicode":"🍂"},{"annotation":"leaf fluttering in wind","group":3,"hexcode":"1F343","order":2803,"shortcodes":["leaves"],"tags":["blow","flutter","leaf","wind"],"unicode":"🍃"},{"annotation":"grapes","group":4,"hexcode":"1F347","order":2804,"shortcodes":["grapes"],"tags":["fruit","grape"],"unicode":"🍇"},{"annotation":"melon","group":4,"hexcode":"1F348","order":2805,"shortcodes":["melon"],"tags":["fruit"],"unicode":"🍈"},{"annotation":"watermelon","group":4,"hexcode":"1F349","order":2806,"shortcodes":["watermelon"],"tags":["fruit"],"unicode":"🍉"},{"annotation":"tangerine","group":4,"hexcode":"1F34A","order":2807,"shortcodes":["tangerine"],"tags":["fruit","orange"],"unicode":"🍊"},{"annotation":"lemon","group":4,"hexcode":"1F34B","order":2808,"shortcodes":["lemon"],"tags":["citrus","fruit"],"unicode":"🍋"},{"annotation":"banana","group":4,"hexcode":"1F34C","order":2809,"shortcodes":["banana"],"tags":["fruit"],"unicode":"🍌"},{"annotation":"pineapple","group":4,"hexcode":"1F34D","order":2810,"shortcodes":["pineapple"],"tags":["fruit"],"unicode":"🍍"},{"annotation":"mango","group":4,"hexcode":"1F96D","order":2811,"shortcodes":["mango"],"tags":["fruit","tropical"],"unicode":"🥭"},{"annotation":"red apple","group":4,"hexcode":"1F34E","order":2812,"shortcodes":["apple"],"tags":["apple","fruit","red"],"unicode":"🍎"},{"annotation":"green apple","group":4,"hexcode":"1F34F","order":2813,"shortcodes":["green_apple"],"tags":["apple","fruit","green"],"unicode":"🍏"},{"annotation":"pear","group":4,"hexcode":"1F350","order":2814,"shortcodes":["pear"],"tags":["fruit"],"unicode":"🍐"},{"annotation":"peach","group":4,"hexcode":"1F351","order":2815,"shortcodes":["peach"],"tags":["fruit"],"unicode":"🍑"},{"annotation":"cherries","group":4,"hexcode":"1F352","order":2816,"shortcodes":["cherries"],"tags":["berries","cherry","fruit","red"],"unicode":"🍒"},{"annotation":"strawberry","group":4,"hexcode":"1F353","order":2817,"shortcodes":["strawberry"],"tags":["berry","fruit"],"unicode":"🍓"},{"annotation":"blueberries","group":4,"hexcode":"1FAD0","order":2818,"shortcodes":["blueberry"],"tags":["berry","bilberry","blue","blueberry"],"unicode":"🫐"},{"annotation":"kiwi fruit","group":4,"hexcode":"1F95D","order":2819,"shortcodes":["kiwi"],"tags":["food","fruit","kiwi"],"unicode":"🥝"},{"annotation":"tomato","group":4,"hexcode":"1F345","order":2820,"shortcodes":["tomato"],"tags":["fruit","vegetable"],"unicode":"🍅"},{"annotation":"olive","group":4,"hexcode":"1FAD2","order":2821,"shortcodes":["olive"],"tags":["food"],"unicode":"🫒"},{"annotation":"coconut","group":4,"hexcode":"1F965","order":2822,"shortcodes":["coconut"],"tags":["palm","piña colada"],"unicode":"🥥"},{"annotation":"avocado","group":4,"hexcode":"1F951","order":2823,"shortcodes":["avocado"],"tags":["food","fruit"],"unicode":"🥑"},{"annotation":"eggplant","group":4,"hexcode":"1F346","order":2824,"shortcodes":["eggplant"],"tags":["aubergine","vegetable"],"unicode":"🍆"},{"annotation":"potato","group":4,"hexcode":"1F954","order":2825,"shortcodes":["potato"],"tags":["food","vegetable"],"unicode":"🥔"},{"annotation":"carrot","group":4,"hexcode":"1F955","order":2826,"shortcodes":["carrot"],"tags":["food","vegetable"],"unicode":"🥕"},{"annotation":"ear of corn","group":4,"hexcode":"1F33D","order":2827,"shortcodes":["corn"],"tags":["corn","ear","maize","maze"],"unicode":"🌽"},{"annotation":"hot pepper","group":4,"hexcode":"1F336","order":2829,"shortcodes":["hot_pepper"],"tags":["hot","pepper"],"unicode":"🌶️"},{"annotation":"bell pepper","group":4,"hexcode":"1FAD1","order":2830,"shortcodes":["bell_pepper"],"tags":["capsicum","pepper","vegetable"],"unicode":"🫑"},{"annotation":"cucumber","group":4,"hexcode":"1F952","order":2831,"shortcodes":["cucumber"],"tags":["food","pickle","vegetable"],"unicode":"🥒"},{"annotation":"leafy green","group":4,"hexcode":"1F96C","order":2832,"shortcodes":["leafy_green"],"tags":["bok choy","cabbage","kale","lettuce"],"unicode":"🥬"},{"annotation":"broccoli","group":4,"hexcode":"1F966","order":2833,"shortcodes":["broccoli"],"tags":["wild cabbage"],"unicode":"🥦"},{"annotation":"garlic","group":4,"hexcode":"1F9C4","order":2834,"shortcodes":["garlic"],"tags":["flavoring"],"unicode":"🧄"},{"annotation":"onion","group":4,"hexcode":"1F9C5","order":2835,"shortcodes":["onion"],"tags":["flavoring"],"unicode":"🧅"},{"annotation":"mushroom","group":4,"hexcode":"1F344","order":2836,"shortcodes":["mushroom"],"tags":["toadstool"],"unicode":"🍄"},{"annotation":"peanuts","group":4,"hexcode":"1F95C","order":2837,"shortcodes":["peanuts"],"tags":["food","nut","peanut","vegetable"],"unicode":"🥜"},{"annotation":"chestnut","group":4,"hexcode":"1F330","order":2838,"shortcodes":["chestnut"],"tags":["plant"],"unicode":"🌰"},{"annotation":"bread","group":4,"hexcode":"1F35E","order":2839,"shortcodes":["bread"],"tags":["loaf"],"unicode":"🍞"},{"annotation":"croissant","group":4,"hexcode":"1F950","order":2840,"shortcodes":["croissant"],"tags":["bread","breakfast","food","french","roll"],"unicode":"🥐"},{"annotation":"baguette bread","group":4,"hexcode":"1F956","order":2841,"shortcodes":["french_bread"],"tags":["baguette","bread","food","french"],"unicode":"🥖"},{"annotation":"flatbread","group":4,"hexcode":"1FAD3","order":2842,"shortcodes":["flatbread"],"tags":["arepa","lavash","naan","pita"],"unicode":"🫓"},{"annotation":"pretzel","group":4,"hexcode":"1F968","order":2843,"shortcodes":["pretzel"],"tags":["twisted"],"unicode":"🥨"},{"annotation":"bagel","group":4,"hexcode":"1F96F","order":2844,"shortcodes":["bagel"],"tags":["bakery","breakfast","schmear"],"unicode":"🥯"},{"annotation":"pancakes","group":4,"hexcode":"1F95E","order":2845,"shortcodes":["pancakes"],"tags":["breakfast","crêpe","food","hotcake","pancake"],"unicode":"🥞"},{"annotation":"waffle","group":4,"hexcode":"1F9C7","order":2846,"shortcodes":["waffle"],"tags":["breakfast","indecisive","iron"],"unicode":"🧇"},{"annotation":"cheese wedge","group":4,"hexcode":"1F9C0","order":2847,"shortcodes":["cheese"],"tags":["cheese"],"unicode":"🧀"},{"annotation":"meat on bone","group":4,"hexcode":"1F356","order":2848,"shortcodes":["meat_on_bone"],"tags":["bone","meat"],"unicode":"🍖"},{"annotation":"poultry leg","group":4,"hexcode":"1F357","order":2849,"shortcodes":["poultry_leg"],"tags":["bone","chicken","drumstick","leg","poultry"],"unicode":"🍗"},{"annotation":"cut of meat","group":4,"hexcode":"1F969","order":2850,"shortcodes":["cut_of_meat"],"tags":["chop","lambchop","porkchop","steak"],"unicode":"🥩"},{"annotation":"bacon","group":4,"hexcode":"1F953","order":2851,"shortcodes":["bacon"],"tags":["breakfast","food","meat"],"unicode":"🥓"},{"annotation":"hamburger","group":4,"hexcode":"1F354","order":2852,"shortcodes":["hamburger"],"tags":["burger"],"unicode":"🍔"},{"annotation":"french fries","group":4,"hexcode":"1F35F","order":2853,"shortcodes":["fries"],"tags":["french","fries"],"unicode":"🍟"},{"annotation":"pizza","group":4,"hexcode":"1F355","order":2854,"shortcodes":["pizza"],"tags":["cheese","slice"],"unicode":"🍕"},{"annotation":"hot dog","group":4,"hexcode":"1F32D","order":2855,"shortcodes":["hotdog"],"tags":["frankfurter","hotdog","sausage"],"unicode":"🌭"},{"annotation":"sandwich","group":4,"hexcode":"1F96A","order":2856,"shortcodes":["sandwich"],"tags":["bread"],"unicode":"🥪"},{"annotation":"taco","group":4,"hexcode":"1F32E","order":2857,"shortcodes":["taco"],"tags":["mexican"],"unicode":"🌮"},{"annotation":"burrito","group":4,"hexcode":"1F32F","order":2858,"shortcodes":["burrito"],"tags":["mexican","wrap"],"unicode":"🌯"},{"annotation":"tamale","group":4,"hexcode":"1FAD4","order":2859,"shortcodes":["tamale"],"tags":["mexican","wrapped"],"unicode":"🫔"},{"annotation":"stuffed flatbread","group":4,"hexcode":"1F959","order":2860,"shortcodes":["stuffed_flatbread"],"tags":["falafel","flatbread","food","gyro","kebab","stuffed"],"unicode":"🥙"},{"annotation":"falafel","group":4,"hexcode":"1F9C6","order":2861,"shortcodes":["falafel"],"tags":["chickpea","meatball"],"unicode":"🧆"},{"annotation":"egg","group":4,"hexcode":"1F95A","order":2862,"shortcodes":["egg"],"tags":["breakfast","food"],"unicode":"🥚"},{"annotation":"cooking","group":4,"hexcode":"1F373","order":2863,"shortcodes":["cooking"],"tags":["breakfast","egg","frying","pan"],"unicode":"🍳"},{"annotation":"shallow pan of food","group":4,"hexcode":"1F958","order":2864,"shortcodes":["shallow_pan_of_food"],"tags":["casserole","food","paella","pan","shallow"],"unicode":"🥘"},{"annotation":"pot of food","group":4,"hexcode":"1F372","order":2865,"shortcodes":["stew"],"tags":["pot","stew"],"unicode":"🍲"},{"annotation":"fondue","group":4,"hexcode":"1FAD5","order":2866,"shortcodes":["fondue"],"tags":["cheese","chocolate","melted","pot","swiss"],"unicode":"🫕"},{"annotation":"bowl with spoon","group":4,"hexcode":"1F963","order":2867,"shortcodes":["bowl_spoon"],"tags":["breakfast","cereal","congee"],"unicode":"🥣"},{"annotation":"green salad","group":4,"hexcode":"1F957","order":2868,"shortcodes":["salad"],"tags":["food","green","salad"],"unicode":"🥗"},{"annotation":"popcorn","group":4,"hexcode":"1F37F","order":2869,"shortcodes":["popcorn"],"tags":["popcorn"],"unicode":"🍿"},{"annotation":"butter","group":4,"hexcode":"1F9C8","order":2870,"shortcodes":["butter"],"tags":["dairy"],"unicode":"🧈"},{"annotation":"salt","group":4,"hexcode":"1F9C2","order":2871,"shortcodes":["salt"],"tags":["condiment","shaker"],"unicode":"🧂"},{"annotation":"canned food","group":4,"hexcode":"1F96B","order":2872,"shortcodes":["canned_food"],"tags":["can"],"unicode":"🥫"},{"annotation":"bento box","group":4,"hexcode":"1F371","order":2873,"shortcodes":["bento"],"tags":["bento","box"],"unicode":"🍱"},{"annotation":"rice cracker","group":4,"hexcode":"1F358","order":2874,"shortcodes":["rice_cracker"],"tags":["cracker","rice"],"unicode":"🍘"},{"annotation":"rice ball","group":4,"hexcode":"1F359","order":2875,"shortcodes":["rice_ball"],"tags":["ball","japanese","rice"],"unicode":"🍙"},{"annotation":"cooked rice","group":4,"hexcode":"1F35A","order":2876,"shortcodes":["rice"],"tags":["cooked","rice"],"unicode":"🍚"},{"annotation":"curry rice","group":4,"hexcode":"1F35B","order":2877,"shortcodes":["curry"],"tags":["curry","rice"],"unicode":"🍛"},{"annotation":"steaming bowl","group":4,"hexcode":"1F35C","order":2878,"shortcodes":["ramen"],"tags":["bowl","noodle","ramen","steaming"],"unicode":"🍜"},{"annotation":"spaghetti","group":4,"hexcode":"1F35D","order":2879,"shortcodes":["spaghetti"],"tags":["pasta"],"unicode":"🍝"},{"annotation":"roasted sweet potato","group":4,"hexcode":"1F360","order":2880,"shortcodes":["sweet_potato"],"tags":["potato","roasted","sweet"],"unicode":"🍠"},{"annotation":"oden","group":4,"hexcode":"1F362","order":2881,"shortcodes":["oden"],"tags":["kebab","seafood","skewer","stick"],"unicode":"🍢"},{"annotation":"sushi","group":4,"hexcode":"1F363","order":2882,"shortcodes":["sushi"],"tags":["sushi"],"unicode":"🍣"},{"annotation":"fried shrimp","group":4,"hexcode":"1F364","order":2883,"shortcodes":["fried_shrimp"],"tags":["fried","prawn","shrimp","tempura"],"unicode":"🍤"},{"annotation":"fish cake with swirl","group":4,"hexcode":"1F365","order":2884,"shortcodes":["fish_cake"],"tags":["cake","fish","pastry","swirl"],"unicode":"🍥"},{"annotation":"moon cake","group":4,"hexcode":"1F96E","order":2885,"shortcodes":["moon_cake"],"tags":["autumn","festival","yuèbǐng"],"unicode":"🥮"},{"annotation":"dango","group":4,"hexcode":"1F361","order":2886,"shortcodes":["dango"],"tags":["dessert","japanese","skewer","stick","sweet"],"unicode":"🍡"},{"annotation":"dumpling","group":4,"hexcode":"1F95F","order":2887,"shortcodes":["dumpling"],"tags":["empanada","gyōza","jiaozi","pierogi","potsticker"],"unicode":"🥟"},{"annotation":"fortune cookie","group":4,"hexcode":"1F960","order":2888,"shortcodes":["fortune_cookie"],"tags":["prophecy"],"unicode":"🥠"},{"annotation":"takeout box","group":4,"hexcode":"1F961","order":2889,"shortcodes":["takeout_box"],"tags":["oyster pail"],"unicode":"🥡"},{"annotation":"crab","group":4,"hexcode":"1F980","order":2890,"shortcodes":["crab"],"tags":["cancer","zodiac"],"unicode":"🦀"},{"annotation":"lobster","group":4,"hexcode":"1F99E","order":2891,"shortcodes":["lobster"],"tags":["bisque","claws","seafood"],"unicode":"🦞"},{"annotation":"shrimp","group":4,"hexcode":"1F990","order":2892,"shortcodes":["shrimp"],"tags":["food","shellfish","small"],"unicode":"🦐"},{"annotation":"squid","group":4,"hexcode":"1F991","order":2893,"shortcodes":["squid"],"tags":["food","molusc"],"unicode":"🦑"},{"annotation":"oyster","group":4,"hexcode":"1F9AA","order":2894,"shortcodes":["oyster"],"tags":["diving","pearl"],"unicode":"🦪"},{"annotation":"soft ice cream","group":4,"hexcode":"1F366","order":2895,"shortcodes":["icecream"],"tags":["cream","dessert","ice","icecream","soft","sweet"],"unicode":"🍦"},{"annotation":"shaved ice","group":4,"hexcode":"1F367","order":2896,"shortcodes":["shaved_ice"],"tags":["dessert","ice","shaved","sweet"],"unicode":"🍧"},{"annotation":"ice cream","group":4,"hexcode":"1F368","order":2897,"shortcodes":["ice_cream"],"tags":["cream","dessert","ice","sweet"],"unicode":"🍨"},{"annotation":"doughnut","group":4,"hexcode":"1F369","order":2898,"shortcodes":["doughnut"],"tags":["breakfast","dessert","donut","sweet"],"unicode":"🍩"},{"annotation":"cookie","group":4,"hexcode":"1F36A","order":2899,"shortcodes":["cookie"],"tags":["dessert","sweet"],"unicode":"🍪"},{"annotation":"birthday cake","group":4,"hexcode":"1F382","order":2900,"shortcodes":["birthday"],"tags":["birthday","cake","celebration","dessert","pastry","sweet"],"unicode":"🎂"},{"annotation":"shortcake","group":4,"hexcode":"1F370","order":2901,"shortcodes":["cake"],"tags":["cake","dessert","pastry","slice","sweet"],"unicode":"🍰"},{"annotation":"cupcake","group":4,"hexcode":"1F9C1","order":2902,"shortcodes":["cupcake"],"tags":["bakery","sweet"],"unicode":"🧁"},{"annotation":"pie","group":4,"hexcode":"1F967","order":2903,"shortcodes":["pie"],"tags":["filling","pastry"],"unicode":"🥧"},{"annotation":"chocolate bar","group":4,"hexcode":"1F36B","order":2904,"shortcodes":["chocolate_bar"],"tags":["bar","chocolate","dessert","sweet"],"unicode":"🍫"},{"annotation":"candy","group":4,"hexcode":"1F36C","order":2905,"shortcodes":["candy"],"tags":["dessert","sweet"],"unicode":"🍬"},{"annotation":"lollipop","group":4,"hexcode":"1F36D","order":2906,"shortcodes":["lollipop"],"tags":["candy","dessert","sweet"],"unicode":"🍭"},{"annotation":"custard","group":4,"hexcode":"1F36E","order":2907,"shortcodes":["custard"],"tags":["dessert","pudding","sweet"],"unicode":"🍮"},{"annotation":"honey pot","group":4,"hexcode":"1F36F","order":2908,"shortcodes":["honey_pot"],"tags":["honey","honeypot","pot","sweet"],"unicode":"🍯"},{"annotation":"baby bottle","group":4,"hexcode":"1F37C","order":2909,"shortcodes":["baby_bottle"],"tags":["baby","bottle","drink","milk"],"unicode":"🍼"},{"annotation":"glass of milk","group":4,"hexcode":"1F95B","order":2910,"shortcodes":["milk"],"tags":["drink","glass","milk"],"unicode":"🥛"},{"annotation":"hot beverage","group":4,"hexcode":"2615","order":2911,"shortcodes":["coffee"],"tags":["beverage","coffee","drink","hot","steaming","tea"],"unicode":"☕️"},{"annotation":"teapot","group":4,"hexcode":"1FAD6","order":2912,"shortcodes":["teapot"],"tags":["drink","pot","tea"],"unicode":"🫖"},{"annotation":"teacup without handle","group":4,"hexcode":"1F375","order":2913,"shortcodes":["tea"],"tags":["beverage","cup","drink","tea","teacup"],"unicode":"🍵"},{"annotation":"sake","group":4,"hexcode":"1F376","order":2914,"shortcodes":["sake"],"tags":["bar","beverage","bottle","cup","drink"],"unicode":"🍶"},{"annotation":"bottle with popping cork","group":4,"hexcode":"1F37E","order":2915,"shortcodes":["champagne"],"tags":["bar","bottle","cork","drink","popping"],"unicode":"🍾"},{"annotation":"wine glass","group":4,"hexcode":"1F377","order":2916,"shortcodes":["wine_glass"],"tags":["bar","beverage","drink","glass","wine"],"unicode":"🍷"},{"annotation":"cocktail glass","group":4,"hexcode":"1F378","order":2917,"shortcodes":["cocktail"],"tags":["bar","cocktail","drink","glass"],"unicode":"🍸️"},{"annotation":"tropical drink","group":4,"hexcode":"1F379","order":2918,"shortcodes":["tropical_drink"],"tags":["bar","drink","tropical"],"unicode":"🍹"},{"annotation":"beer mug","group":4,"hexcode":"1F37A","order":2919,"shortcodes":["beer"],"tags":["bar","beer","drink","mug"],"unicode":"🍺"},{"annotation":"clinking beer mugs","group":4,"hexcode":"1F37B","order":2920,"shortcodes":["beers"],"tags":["bar","beer","clink","drink","mug"],"unicode":"🍻"},{"annotation":"clinking glasses","group":4,"hexcode":"1F942","order":2921,"shortcodes":["champagne_glass"],"tags":["celebrate","clink","drink","glass"],"unicode":"🥂"},{"annotation":"tumbler glass","group":4,"hexcode":"1F943","order":2922,"shortcodes":["tumbler_glass"],"tags":["glass","liquor","shot","tumbler","whisky"],"unicode":"🥃"},{"annotation":"cup with straw","group":4,"hexcode":"1F964","order":2923,"shortcodes":["cup_straw"],"tags":["juice","soda"],"unicode":"🥤"},{"annotation":"bubble tea","group":4,"hexcode":"1F9CB","order":2924,"shortcodes":["bubble_tea","boba_drink"],"tags":["bubble","milk","pearl","tea"],"unicode":"🧋"},{"annotation":"beverage box","group":4,"hexcode":"1F9C3","order":2925,"shortcodes":["beverage_box","juice_box"],"tags":["beverage","box","juice","straw","sweet"],"unicode":"🧃"},{"annotation":"mate","group":4,"hexcode":"1F9C9","order":2926,"shortcodes":["mate","yerba_mate"],"tags":["drink"],"unicode":"🧉"},{"annotation":"ice","group":4,"hexcode":"1F9CA","order":2927,"shortcodes":["ice"],"tags":["cold","ice cube","iceberg"],"unicode":"🧊"},{"annotation":"chopsticks","group":4,"hexcode":"1F962","order":2928,"shortcodes":["chopsticks"],"tags":["hashi"],"unicode":"🥢"},{"annotation":"fork and knife with plate","group":4,"hexcode":"1F37D","order":2930,"shortcodes":["fork_knife_plate"],"tags":["cooking","fork","knife","plate"],"unicode":"🍽️"},{"annotation":"fork and knife","group":4,"hexcode":"1F374","order":2931,"shortcodes":["utensils"],"tags":["cooking","cutlery","fork","knife"],"unicode":"🍴"},{"annotation":"spoon","group":4,"hexcode":"1F944","order":2932,"shortcodes":["spoon"],"tags":["tableware"],"unicode":"🥄"},{"annotation":"kitchen knife","group":4,"hexcode":"1F52A","order":2933,"shortcodes":["knife"],"tags":["cooking","hocho","knife","tool","weapon"],"unicode":"🔪"},{"annotation":"amphora","group":4,"hexcode":"1F3FA","order":2934,"shortcodes":["amphora"],"tags":["aquarius","cooking","drink","jug","zodiac"],"unicode":"🏺"},{"annotation":"globe showing Europe-Africa","group":5,"hexcode":"1F30D","order":2935,"shortcodes":["earth_africa"],"tags":["africa","earth","europe","globe","globe showing europe-africa","world"],"unicode":"🌍️"},{"annotation":"globe showing Americas","group":5,"hexcode":"1F30E","order":2936,"shortcodes":["earth_americas"],"tags":["americas","earth","globe","globe showing americas","world"],"unicode":"🌎️"},{"annotation":"globe showing Asia-Australia","group":5,"hexcode":"1F30F","order":2937,"shortcodes":["earth_asia"],"tags":["asia","australia","earth","globe","globe showing asia-australia","world"],"unicode":"🌏️"},{"annotation":"globe with meridians","group":5,"hexcode":"1F310","order":2938,"shortcodes":["globe"],"tags":["earth","globe","meridians","world"],"unicode":"🌐"},{"annotation":"world map","group":5,"hexcode":"1F5FA","order":2940,"shortcodes":["map"],"tags":["map","world"],"unicode":"🗺️"},{"annotation":"map of Japan","group":5,"hexcode":"1F5FE","order":2941,"shortcodes":["japan"],"tags":["japan","map","map of japan"],"unicode":"🗾"},{"annotation":"compass","group":5,"hexcode":"1F9ED","order":2942,"shortcodes":["compass"],"tags":["magnetic","navigation","orienteering"],"unicode":"🧭"},{"annotation":"snow-capped mountain","group":5,"hexcode":"1F3D4","order":2944,"shortcodes":["snowy_mountain"],"tags":["cold","mountain","snow"],"unicode":"🏔️"},{"annotation":"mountain","group":5,"hexcode":"26F0","order":2946,"shortcodes":["mountain"],"tags":["mountain"],"unicode":"⛰️"},{"annotation":"volcano","group":5,"hexcode":"1F30B","order":2947,"shortcodes":["volcano"],"tags":["eruption","mountain"],"unicode":"🌋"},{"annotation":"mount fuji","group":5,"hexcode":"1F5FB","order":2948,"shortcodes":["mount_fuji"],"tags":["fuji","mountain"],"unicode":"🗻"},{"annotation":"camping","group":5,"hexcode":"1F3D5","order":2950,"shortcodes":["camping"],"tags":["camping"],"unicode":"🏕️"},{"annotation":"beach with umbrella","group":5,"hexcode":"1F3D6","order":2952,"shortcodes":["beach"],"tags":["beach","umbrella"],"unicode":"🏖️"},{"annotation":"desert","group":5,"hexcode":"1F3DC","order":2954,"shortcodes":["desert"],"tags":["desert"],"unicode":"🏜️"},{"annotation":"desert island","group":5,"hexcode":"1F3DD","order":2956,"shortcodes":["island"],"tags":["desert","island"],"unicode":"🏝️"},{"annotation":"national park","group":5,"hexcode":"1F3DE","order":2958,"shortcodes":["park"],"tags":["park"],"unicode":"🏞️"},{"annotation":"stadium","group":5,"hexcode":"1F3DF","order":2960,"shortcodes":["stadium"],"tags":["stadium"],"unicode":"🏟️"},{"annotation":"classical building","group":5,"hexcode":"1F3DB","order":2962,"shortcodes":["classical_building"],"tags":["classical"],"unicode":"🏛️"},{"annotation":"building construction","group":5,"hexcode":"1F3D7","order":2964,"shortcodes":["construction_site"],"tags":["construction"],"unicode":"🏗️"},{"annotation":"brick","group":5,"hexcode":"1F9F1","order":2965,"shortcodes":["brick"],"tags":["bricks","clay","mortar","wall"],"unicode":"🧱"},{"annotation":"rock","group":5,"hexcode":"1FAA8","order":2966,"shortcodes":["rock"],"tags":["boulder","heavy","solid","stone"],"unicode":"🪨"},{"annotation":"wood","group":5,"hexcode":"1FAB5","order":2967,"shortcodes":["wood"],"tags":["log","lumber","timber"],"unicode":"🪵"},{"annotation":"hut","group":5,"hexcode":"1F6D6","order":2968,"shortcodes":["hut"],"tags":["house","roundhouse","yurt"],"unicode":"🛖"},{"annotation":"houses","group":5,"hexcode":"1F3D8","order":2970,"shortcodes":["homes"],"tags":["houses"],"unicode":"🏘️"},{"annotation":"derelict house","group":5,"hexcode":"1F3DA","order":2972,"shortcodes":["house_abandoned"],"tags":["derelict","house"],"unicode":"🏚️"},{"annotation":"house","group":5,"hexcode":"1F3E0","order":2973,"shortcodes":["house"],"tags":["home"],"unicode":"🏠️"},{"annotation":"house with garden","group":5,"hexcode":"1F3E1","order":2974,"shortcodes":["house_garden"],"tags":["garden","home","house"],"unicode":"🏡"},{"annotation":"office building","group":5,"hexcode":"1F3E2","order":2975,"shortcodes":["office"],"tags":["building"],"unicode":"🏢"},{"annotation":"Japanese post office","group":5,"hexcode":"1F3E3","order":2976,"shortcodes":["ja_post_office"],"tags":["japanese","japanese post office","post"],"unicode":"🏣"},{"annotation":"post office","group":5,"hexcode":"1F3E4","order":2977,"shortcodes":["post_office"],"tags":["european","post"],"unicode":"🏤"},{"annotation":"hospital","group":5,"hexcode":"1F3E5","order":2978,"shortcodes":["hospital"],"tags":["doctor","medicine"],"unicode":"🏥"},{"annotation":"bank","group":5,"hexcode":"1F3E6","order":2979,"shortcodes":["bank"],"tags":["building"],"unicode":"🏦"},{"annotation":"hotel","group":5,"hexcode":"1F3E8","order":2980,"shortcodes":["hotel"],"tags":["building"],"unicode":"🏨"},{"annotation":"love hotel","group":5,"hexcode":"1F3E9","order":2981,"shortcodes":["love_hotel"],"tags":["hotel","love"],"unicode":"🏩"},{"annotation":"convenience store","group":5,"hexcode":"1F3EA","order":2982,"shortcodes":["convenience_store"],"tags":["convenience","store"],"unicode":"🏪"},{"annotation":"school","group":5,"hexcode":"1F3EB","order":2983,"shortcodes":["school"],"tags":["building"],"unicode":"🏫"},{"annotation":"department store","group":5,"hexcode":"1F3EC","order":2984,"shortcodes":["department_store"],"tags":["department","store"],"unicode":"🏬"},{"annotation":"factory","group":5,"hexcode":"1F3ED","order":2985,"shortcodes":["factory"],"tags":["building"],"unicode":"🏭️"},{"annotation":"Japanese castle","group":5,"hexcode":"1F3EF","order":2986,"shortcodes":["japanese_castle"],"tags":["castle","japanese"],"unicode":"🏯"},{"annotation":"castle","group":5,"hexcode":"1F3F0","order":2987,"shortcodes":["castle","european_castle"],"tags":["european"],"unicode":"🏰"},{"annotation":"wedding","group":5,"hexcode":"1F492","order":2988,"shortcodes":["wedding"],"tags":["chapel","romance"],"unicode":"💒"},{"annotation":"Tokyo tower","group":5,"hexcode":"1F5FC","order":2989,"shortcodes":["tokyo_tower"],"tags":["tokyo","tower"],"unicode":"🗼"},{"annotation":"Statue of Liberty","group":5,"hexcode":"1F5FD","order":2990,"shortcodes":["statue_of_liberty"],"tags":["liberty","statue","statue of liberty"],"unicode":"🗽"},{"annotation":"church","group":5,"hexcode":"26EA","order":2991,"shortcodes":["church"],"tags":["christian","cross","religion"],"unicode":"⛪️"},{"annotation":"mosque","group":5,"hexcode":"1F54C","order":2992,"shortcodes":["mosque"],"tags":["islam","muslim","religion"],"unicode":"🕌"},{"annotation":"hindu temple","group":5,"hexcode":"1F6D5","order":2993,"shortcodes":["hindu_temple"],"tags":["hindu","temple"],"unicode":"🛕"},{"annotation":"synagogue","group":5,"hexcode":"1F54D","order":2994,"shortcodes":["synagogue"],"tags":["jew","jewish","religion","temple"],"unicode":"🕍"},{"annotation":"shinto shrine","group":5,"hexcode":"26E9","order":2996,"shortcodes":["shinto_shrine"],"tags":["religion","shinto","shrine"],"unicode":"⛩️"},{"annotation":"kaaba","group":5,"hexcode":"1F54B","order":2997,"shortcodes":["kaaba"],"tags":["islam","muslim","religion"],"unicode":"🕋"},{"annotation":"fountain","group":5,"hexcode":"26F2","order":2998,"shortcodes":["fountain"],"tags":["fountain"],"unicode":"⛲️"},{"annotation":"tent","group":5,"hexcode":"26FA","order":2999,"shortcodes":["tent"],"tags":["camping"],"unicode":"⛺️"},{"annotation":"foggy","group":5,"hexcode":"1F301","order":3000,"shortcodes":["foggy"],"tags":["fog"],"unicode":"🌁"},{"annotation":"night with stars","group":5,"hexcode":"1F303","order":3001,"shortcodes":["night_stars"],"tags":["night","star"],"unicode":"🌃"},{"annotation":"cityscape","group":5,"hexcode":"1F3D9","order":3003,"shortcodes":["cityscape"],"tags":["city"],"unicode":"🏙️"},{"annotation":"sunrise over mountains","group":5,"hexcode":"1F304","order":3004,"shortcodes":["sunrise_over_mountains"],"tags":["morning","mountain","sun","sunrise"],"unicode":"🌄"},{"annotation":"sunrise","group":5,"hexcode":"1F305","order":3005,"shortcodes":["sunrise"],"tags":["morning","sun"],"unicode":"🌅"},{"annotation":"cityscape at dusk","group":5,"hexcode":"1F306","order":3006,"shortcodes":["dusk"],"tags":["city","dusk","evening","landscape","sunset"],"unicode":"🌆"},{"annotation":"sunset","group":5,"hexcode":"1F307","order":3007,"shortcodes":["sunset"],"tags":["dusk","sun"],"unicode":"🌇"},{"annotation":"bridge at night","group":5,"hexcode":"1F309","order":3008,"shortcodes":["bridge_at_night"],"tags":["bridge","night"],"unicode":"🌉"},{"annotation":"hot springs","group":5,"hexcode":"2668","order":3010,"shortcodes":["hotsprings"],"tags":["hot","hotsprings","springs","steaming"],"unicode":"♨️"},{"annotation":"carousel horse","group":5,"hexcode":"1F3A0","order":3011,"shortcodes":["carousel_horse"],"tags":["carousel","horse"],"unicode":"🎠"},{"annotation":"ferris wheel","group":5,"hexcode":"1F3A1","order":3012,"shortcodes":["ferris_wheel"],"tags":["amusement park","ferris","wheel"],"unicode":"🎡"},{"annotation":"roller coaster","group":5,"hexcode":"1F3A2","order":3013,"shortcodes":["roller_coaster"],"tags":["amusement park","coaster","roller"],"unicode":"🎢"},{"annotation":"barber pole","group":5,"hexcode":"1F488","order":3014,"shortcodes":["barber"],"tags":["barber","haircut","pole"],"unicode":"💈"},{"annotation":"circus tent","group":5,"hexcode":"1F3AA","order":3015,"shortcodes":["circus_tent"],"tags":["circus","tent"],"unicode":"🎪"},{"annotation":"locomotive","group":5,"hexcode":"1F682","order":3016,"shortcodes":["steam_locomotive"],"tags":["engine","railway","steam","train"],"unicode":"🚂"},{"annotation":"railway car","group":5,"hexcode":"1F683","order":3017,"shortcodes":["railway_car"],"tags":["car","electric","railway","train","tram","trolleybus"],"unicode":"🚃"},{"annotation":"high-speed train","group":5,"hexcode":"1F684","order":3018,"shortcodes":["bullettrain_side"],"tags":["railway","shinkansen","speed","train"],"unicode":"🚄"},{"annotation":"bullet train","group":5,"hexcode":"1F685","order":3019,"shortcodes":["bullettrain"],"tags":["bullet","railway","shinkansen","speed","train"],"unicode":"🚅"},{"annotation":"train","group":5,"hexcode":"1F686","order":3020,"shortcodes":["train"],"tags":["railway"],"unicode":"🚆"},{"annotation":"metro","group":5,"hexcode":"1F687","order":3021,"shortcodes":["metro"],"tags":["subway"],"unicode":"🚇️"},{"annotation":"light rail","group":5,"hexcode":"1F688","order":3022,"shortcodes":["light_rail"],"tags":["railway"],"unicode":"🚈"},{"annotation":"station","group":5,"hexcode":"1F689","order":3023,"shortcodes":["station"],"tags":["railway","train"],"unicode":"🚉"},{"annotation":"tram","group":5,"hexcode":"1F68A","order":3024,"shortcodes":["tram"],"tags":["trolleybus"],"unicode":"🚊"},{"annotation":"monorail","group":5,"hexcode":"1F69D","order":3025,"shortcodes":["monorail"],"tags":["vehicle"],"unicode":"🚝"},{"annotation":"mountain railway","group":5,"hexcode":"1F69E","order":3026,"shortcodes":["mountain_railway"],"tags":["car","mountain","railway"],"unicode":"🚞"},{"annotation":"tram car","group":5,"hexcode":"1F68B","order":3027,"shortcodes":["tram_car"],"tags":["car","tram","trolleybus"],"unicode":"🚋"},{"annotation":"bus","group":5,"hexcode":"1F68C","order":3028,"shortcodes":["bus"],"tags":["vehicle"],"unicode":"🚌"},{"annotation":"oncoming bus","group":5,"hexcode":"1F68D","order":3029,"shortcodes":["oncoming_bus"],"tags":["bus","oncoming"],"unicode":"🚍️"},{"annotation":"trolleybus","group":5,"hexcode":"1F68E","order":3030,"shortcodes":["trolleybus"],"tags":["bus","tram","trolley"],"unicode":"🚎"},{"annotation":"minibus","group":5,"hexcode":"1F690","order":3031,"shortcodes":["minibus"],"tags":["bus"],"unicode":"🚐"},{"annotation":"ambulance","group":5,"hexcode":"1F691","order":3032,"shortcodes":["ambulance"],"tags":["vehicle"],"unicode":"🚑️"},{"annotation":"fire engine","group":5,"hexcode":"1F692","order":3033,"shortcodes":["fire_engine"],"tags":["engine","fire","truck"],"unicode":"🚒"},{"annotation":"police car","group":5,"hexcode":"1F693","order":3034,"shortcodes":["police_car"],"tags":["car","patrol","police"],"unicode":"🚓"},{"annotation":"oncoming police car","group":5,"hexcode":"1F694","order":3035,"shortcodes":["oncoming_police_car"],"tags":["car","oncoming","police"],"unicode":"🚔️"},{"annotation":"taxi","group":5,"hexcode":"1F695","order":3036,"shortcodes":["taxi"],"tags":["vehicle"],"unicode":"🚕"},{"annotation":"oncoming taxi","group":5,"hexcode":"1F696","order":3037,"shortcodes":["oncoming_taxi"],"tags":["oncoming","taxi"],"unicode":"🚖"},{"annotation":"automobile","group":5,"hexcode":"1F697","order":3038,"shortcodes":["red_car"],"tags":["car"],"unicode":"🚗"},{"annotation":"oncoming automobile","group":5,"hexcode":"1F698","order":3039,"shortcodes":["oncoming_automobile"],"tags":["automobile","car","oncoming"],"unicode":"🚘️"},{"annotation":"sport utility vehicle","group":5,"hexcode":"1F699","order":3040,"shortcodes":["blue_car"],"tags":["recreational","sport utility"],"unicode":"🚙"},{"annotation":"pickup truck","group":5,"hexcode":"1F6FB","order":3041,"shortcodes":["pickup_truck"],"tags":["pick-up","pickup","truck"],"unicode":"🛻"},{"annotation":"delivery truck","group":5,"hexcode":"1F69A","order":3042,"shortcodes":["truck"],"tags":["delivery","truck"],"unicode":"🚚"},{"annotation":"articulated lorry","group":5,"hexcode":"1F69B","order":3043,"shortcodes":["lorry"],"tags":["lorry","semi","truck"],"unicode":"🚛"},{"annotation":"tractor","group":5,"hexcode":"1F69C","order":3044,"shortcodes":["tractor"],"tags":["vehicle"],"unicode":"🚜"},{"annotation":"racing car","group":5,"hexcode":"1F3CE","order":3046,"shortcodes":["race_car"],"tags":["car","racing"],"unicode":"🏎️"},{"annotation":"motorcycle","group":5,"hexcode":"1F3CD","order":3048,"shortcodes":["motorcycle"],"tags":["racing"],"unicode":"🏍️"},{"annotation":"motor scooter","group":5,"hexcode":"1F6F5","order":3049,"shortcodes":["motor_scooter"],"tags":["motor","scooter"],"unicode":"🛵"},{"annotation":"manual wheelchair","group":5,"hexcode":"1F9BD","order":3050,"shortcodes":["wheelchair"],"tags":["accessibility"],"unicode":"🦽"},{"annotation":"motorized wheelchair","group":5,"hexcode":"1F9BC","order":3051,"shortcodes":["motor_wheelchair"],"tags":["accessibility"],"unicode":"🦼"},{"annotation":"auto rickshaw","group":5,"hexcode":"1F6FA","order":3052,"shortcodes":["auto_rickshaw"],"tags":["tuk tuk"],"unicode":"🛺"},{"annotation":"bicycle","group":5,"hexcode":"1F6B2","order":3053,"shortcodes":["bike"],"tags":["bike"],"unicode":"🚲️"},{"annotation":"kick scooter","group":5,"hexcode":"1F6F4","order":3054,"shortcodes":["scooter"],"tags":["kick","scooter"],"unicode":"🛴"},{"annotation":"skateboard","group":5,"hexcode":"1F6F9","order":3055,"shortcodes":["skateboard"],"tags":["board"],"unicode":"🛹"},{"annotation":"roller skate","group":5,"hexcode":"1F6FC","order":3056,"shortcodes":["roller_skate"],"tags":["roller","skate"],"unicode":"🛼"},{"annotation":"bus stop","group":5,"hexcode":"1F68F","order":3057,"shortcodes":["bus_stop"],"tags":["bus","busstop","stop"],"unicode":"🚏"},{"annotation":"motorway","group":5,"hexcode":"1F6E3","order":3059,"shortcodes":["motorway"],"tags":["highway","road"],"unicode":"🛣️"},{"annotation":"railway track","group":5,"hexcode":"1F6E4","order":3061,"shortcodes":["railway_track"],"tags":["railway","train"],"unicode":"🛤️"},{"annotation":"oil drum","group":5,"hexcode":"1F6E2","order":3063,"shortcodes":["oil_drum"],"tags":["drum","oil"],"unicode":"🛢️"},{"annotation":"fuel pump","group":5,"hexcode":"26FD","order":3064,"shortcodes":["fuel_pump"],"tags":["diesel","fuel","fuelpump","gas","pump","station"],"unicode":"⛽️"},{"annotation":"police car light","group":5,"hexcode":"1F6A8","order":3065,"shortcodes":["rotating_light","police_light"],"tags":["beacon","car","light","police","revolving"],"unicode":"🚨"},{"annotation":"horizontal traffic light","group":5,"hexcode":"1F6A5","order":3066,"shortcodes":["traffic_light"],"tags":["light","signal","traffic"],"unicode":"🚥"},{"annotation":"vertical traffic light","group":5,"hexcode":"1F6A6","order":3067,"shortcodes":["vertical_traffic_light"],"tags":["light","signal","traffic"],"unicode":"🚦"},{"annotation":"stop sign","group":5,"hexcode":"1F6D1","order":3068,"shortcodes":["stop_sign","octagonal_sign"],"tags":["octagonal","sign","stop"],"unicode":"🛑"},{"annotation":"construction","group":5,"hexcode":"1F6A7","order":3069,"shortcodes":["construction"],"tags":["barrier"],"unicode":"🚧"},{"annotation":"anchor","group":5,"hexcode":"2693","order":3070,"shortcodes":["anchor"],"tags":["ship","tool"],"unicode":"⚓️"},{"annotation":"sailboat","group":5,"hexcode":"26F5","order":3071,"shortcodes":["sailboat"],"tags":["boat","resort","sea","yacht"],"unicode":"⛵️"},{"annotation":"canoe","group":5,"hexcode":"1F6F6","order":3072,"shortcodes":["canoe"],"tags":["boat"],"unicode":"🛶"},{"annotation":"speedboat","group":5,"hexcode":"1F6A4","order":3073,"shortcodes":["speedboat"],"tags":["boat"],"unicode":"🚤"},{"annotation":"passenger ship","group":5,"hexcode":"1F6F3","order":3075,"shortcodes":["cruise_ship"],"tags":["passenger","ship"],"unicode":"🛳️"},{"annotation":"ferry","group":5,"hexcode":"26F4","order":3077,"shortcodes":["ferry"],"tags":["boat","passenger"],"unicode":"⛴️"},{"annotation":"motor boat","group":5,"hexcode":"1F6E5","order":3079,"shortcodes":["motorboat"],"tags":["boat","motorboat"],"unicode":"🛥️"},{"annotation":"ship","group":5,"hexcode":"1F6A2","order":3080,"shortcodes":["ship"],"tags":["boat","passenger"],"unicode":"🚢"},{"annotation":"airplane","group":5,"hexcode":"2708","order":3082,"shortcodes":["airplane"],"tags":["aeroplane"],"unicode":"✈️"},{"annotation":"small airplane","group":5,"hexcode":"1F6E9","order":3084,"shortcodes":["small_airplane"],"tags":["aeroplane","airplane"],"unicode":"🛩️"},{"annotation":"airplane departure","group":5,"hexcode":"1F6EB","order":3085,"shortcodes":["airplane_departure"],"tags":["aeroplane","airplane","check-in","departure","departures"],"unicode":"🛫"},{"annotation":"airplane arrival","group":5,"hexcode":"1F6EC","order":3086,"shortcodes":["airplane_arriving"],"tags":["aeroplane","airplane","arrivals","arriving","landing"],"unicode":"🛬"},{"annotation":"parachute","group":5,"hexcode":"1FA82","order":3087,"shortcodes":["parachute"],"tags":["hang-glide","parasail","skydive"],"unicode":"🪂"},{"annotation":"seat","group":5,"hexcode":"1F4BA","order":3088,"shortcodes":["seat"],"tags":["chair"],"unicode":"💺"},{"annotation":"helicopter","group":5,"hexcode":"1F681","order":3089,"shortcodes":["helicopter"],"tags":["vehicle"],"unicode":"🚁"},{"annotation":"suspension railway","group":5,"hexcode":"1F69F","order":3090,"shortcodes":["suspension_railway"],"tags":["railway","suspension"],"unicode":"🚟"},{"annotation":"mountain cableway","group":5,"hexcode":"1F6A0","order":3091,"shortcodes":["mountain_cableway"],"tags":["cable","gondola","mountain"],"unicode":"🚠"},{"annotation":"aerial tramway","group":5,"hexcode":"1F6A1","order":3092,"shortcodes":["aerial_tramway"],"tags":["aerial","cable","car","gondola","tramway"],"unicode":"🚡"},{"annotation":"satellite","group":5,"hexcode":"1F6F0","order":3094,"shortcodes":["satellite"],"tags":["space"],"unicode":"🛰️"},{"annotation":"rocket","group":5,"hexcode":"1F680","order":3095,"shortcodes":["rocket"],"tags":["space"],"unicode":"🚀"},{"annotation":"flying saucer","group":5,"hexcode":"1F6F8","order":3096,"shortcodes":["flying_saucer"],"tags":["ufo"],"unicode":"🛸"},{"annotation":"bellhop bell","group":5,"hexcode":"1F6CE","order":3098,"shortcodes":["bellhop"],"tags":["bell","bellhop","hotel"],"unicode":"🛎️"},{"annotation":"luggage","group":5,"hexcode":"1F9F3","order":3099,"shortcodes":["luggage"],"tags":["packing","travel"],"unicode":"🧳"},{"annotation":"hourglass done","group":5,"hexcode":"231B","order":3100,"shortcodes":["hourglass"],"tags":["sand","timer"],"unicode":"⌛️"},{"annotation":"hourglass not done","group":5,"hexcode":"23F3","order":3101,"shortcodes":["hourglass_flowing"],"tags":["hourglass","sand","timer"],"unicode":"⏳️"},{"annotation":"watch","group":5,"hexcode":"231A","order":3102,"shortcodes":["watch"],"tags":["clock"],"unicode":"⌚️"},{"annotation":"alarm clock","group":5,"hexcode":"23F0","order":3103,"shortcodes":["alarm_clock"],"tags":["alarm","clock"],"unicode":"⏰"},{"annotation":"stopwatch","group":5,"hexcode":"23F1","order":3105,"shortcodes":["stopwatch"],"tags":["clock"],"unicode":"⏱️"},{"annotation":"timer clock","group":5,"hexcode":"23F2","order":3107,"shortcodes":["timer"],"tags":["clock","timer"],"unicode":"⏲️"},{"annotation":"mantelpiece clock","group":5,"hexcode":"1F570","order":3109,"shortcodes":["clock"],"tags":["clock"],"unicode":"🕰️"},{"annotation":"twelve o’clock","group":5,"hexcode":"1F55B","order":3110,"shortcodes":["clock12"],"tags":["00","12","12:00","clock","o’clock","twelve"],"unicode":"🕛️"},{"annotation":"twelve-thirty","group":5,"hexcode":"1F567","order":3111,"shortcodes":["clock1230"],"tags":["12","12:30","clock","thirty","twelve"],"unicode":"🕧️"},{"annotation":"one o’clock","group":5,"hexcode":"1F550","order":3112,"shortcodes":["clock1"],"tags":["00","1","1:00","clock","one","o’clock"],"unicode":"🕐️"},{"annotation":"one-thirty","group":5,"hexcode":"1F55C","order":3113,"shortcodes":["clock130"],"tags":["1","1:30","clock","one","thirty"],"unicode":"🕜️"},{"annotation":"two o’clock","group":5,"hexcode":"1F551","order":3114,"shortcodes":["clock2"],"tags":["00","2","2:00","clock","o’clock","two"],"unicode":"🕑️"},{"annotation":"two-thirty","group":5,"hexcode":"1F55D","order":3115,"shortcodes":["clock230"],"tags":["2","2:30","clock","thirty","two"],"unicode":"🕝️"},{"annotation":"three o’clock","group":5,"hexcode":"1F552","order":3116,"shortcodes":["clock3"],"tags":["00","3","3:00","clock","o’clock","three"],"unicode":"🕒️"},{"annotation":"three-thirty","group":5,"hexcode":"1F55E","order":3117,"shortcodes":["clock330"],"tags":["3","3:30","clock","thirty","three"],"unicode":"🕞️"},{"annotation":"four o’clock","group":5,"hexcode":"1F553","order":3118,"shortcodes":["clock4"],"tags":["00","4","4:00","clock","four","o’clock"],"unicode":"🕓️"},{"annotation":"four-thirty","group":5,"hexcode":"1F55F","order":3119,"shortcodes":["clock430"],"tags":["4","4:30","clock","four","thirty"],"unicode":"🕟️"},{"annotation":"five o’clock","group":5,"hexcode":"1F554","order":3120,"shortcodes":["clock5"],"tags":["00","5","5:00","clock","five","o’clock"],"unicode":"🕔️"},{"annotation":"five-thirty","group":5,"hexcode":"1F560","order":3121,"shortcodes":["clock530"],"tags":["5","5:30","clock","five","thirty"],"unicode":"🕠️"},{"annotation":"six o’clock","group":5,"hexcode":"1F555","order":3122,"shortcodes":["clock6"],"tags":["00","6","6:00","clock","o’clock","six"],"unicode":"🕕️"},{"annotation":"six-thirty","group":5,"hexcode":"1F561","order":3123,"shortcodes":["clock630"],"tags":["6","6:30","clock","six","thirty"],"unicode":"🕡️"},{"annotation":"seven o’clock","group":5,"hexcode":"1F556","order":3124,"shortcodes":["clock7"],"tags":["00","7","7:00","clock","o’clock","seven"],"unicode":"🕖️"},{"annotation":"seven-thirty","group":5,"hexcode":"1F562","order":3125,"shortcodes":["clock730"],"tags":["7","7:30","clock","seven","thirty"],"unicode":"🕢️"},{"annotation":"eight o’clock","group":5,"hexcode":"1F557","order":3126,"shortcodes":["clock8"],"tags":["00","8","8:00","clock","eight","o’clock"],"unicode":"🕗️"},{"annotation":"eight-thirty","group":5,"hexcode":"1F563","order":3127,"shortcodes":["clock830"],"tags":["8","8:30","clock","eight","thirty"],"unicode":"🕣️"},{"annotation":"nine o’clock","group":5,"hexcode":"1F558","order":3128,"shortcodes":["clock9"],"tags":["00","9","9:00","clock","nine","o’clock"],"unicode":"🕘️"},{"annotation":"nine-thirty","group":5,"hexcode":"1F564","order":3129,"shortcodes":["clock930"],"tags":["9","9:30","clock","nine","thirty"],"unicode":"🕤️"},{"annotation":"ten o’clock","group":5,"hexcode":"1F559","order":3130,"shortcodes":["clock10"],"tags":["00","10","10:00","clock","o’clock","ten"],"unicode":"🕙️"},{"annotation":"ten-thirty","group":5,"hexcode":"1F565","order":3131,"shortcodes":["clock1030"],"tags":["10","10:30","clock","ten","thirty"],"unicode":"🕥️"},{"annotation":"eleven o’clock","group":5,"hexcode":"1F55A","order":3132,"shortcodes":["clock11"],"tags":["00","11","11:00","clock","eleven","o’clock"],"unicode":"🕚️"},{"annotation":"eleven-thirty","group":5,"hexcode":"1F566","order":3133,"shortcodes":["clock1130"],"tags":["11","11:30","clock","eleven","thirty"],"unicode":"🕦️"},{"annotation":"new moon","group":5,"hexcode":"1F311","order":3134,"shortcodes":["new_moon"],"tags":["dark","moon"],"unicode":"🌑"},{"annotation":"waxing crescent moon","group":5,"hexcode":"1F312","order":3135,"shortcodes":["waxing_crescent_moon"],"tags":["crescent","moon","waxing"],"unicode":"🌒"},{"annotation":"first quarter moon","group":5,"hexcode":"1F313","order":3136,"shortcodes":["first_quarter_moon"],"tags":["moon","quarter"],"unicode":"🌓"},{"annotation":"waxing gibbous moon","group":5,"hexcode":"1F314","order":3137,"shortcodes":["waxing_gibbous_moon"],"tags":["gibbous","moon","waxing"],"unicode":"🌔"},{"annotation":"full moon","group":5,"hexcode":"1F315","order":3138,"shortcodes":["full_moon"],"tags":["full","moon"],"unicode":"🌕️"},{"annotation":"waning gibbous moon","group":5,"hexcode":"1F316","order":3139,"shortcodes":["waning_gibbous_moon"],"tags":["gibbous","moon","waning"],"unicode":"🌖"},{"annotation":"last quarter moon","group":5,"hexcode":"1F317","order":3140,"shortcodes":["last_quarter_moon"],"tags":["moon","quarter"],"unicode":"🌗"},{"annotation":"waning crescent moon","group":5,"hexcode":"1F318","order":3141,"shortcodes":["waning_crescent_moon"],"tags":["crescent","moon","waning"],"unicode":"🌘"},{"annotation":"crescent moon","group":5,"hexcode":"1F319","order":3142,"shortcodes":["crescent_moon"],"tags":["crescent","moon"],"unicode":"🌙"},{"annotation":"new moon face","group":5,"hexcode":"1F31A","order":3143,"shortcodes":["new_moon_face"],"tags":["face","moon"],"unicode":"🌚"},{"annotation":"first quarter moon face","group":5,"hexcode":"1F31B","order":3144,"shortcodes":["first_quarter_moon_face"],"tags":["face","moon","quarter"],"unicode":"🌛"},{"annotation":"last quarter moon face","group":5,"hexcode":"1F31C","order":3145,"shortcodes":["last_quarter_moon_face"],"tags":["face","moon","quarter"],"unicode":"🌜️"},{"annotation":"thermometer","group":5,"hexcode":"1F321","order":3147,"shortcodes":["thermometer"],"tags":["weather"],"unicode":"🌡️"},{"annotation":"sun","group":5,"hexcode":"2600","order":3149,"shortcodes":["sun"],"tags":["bright","rays","sunny"],"unicode":"☀️"},{"annotation":"full moon face","group":5,"hexcode":"1F31D","order":3150,"shortcodes":["full_moon_face"],"tags":["bright","face","full","moon"],"unicode":"🌝"},{"annotation":"sun with face","group":5,"hexcode":"1F31E","order":3151,"shortcodes":["sun_face"],"tags":["bright","face","sun"],"unicode":"🌞"},{"annotation":"ringed planet","group":5,"hexcode":"1FA90","order":3152,"shortcodes":["ringed_planet","saturn"],"tags":["saturn","saturnine"],"unicode":"🪐"},{"annotation":"star","group":5,"hexcode":"2B50","order":3153,"shortcodes":["star"],"tags":["star"],"unicode":"⭐️"},{"annotation":"glowing star","group":5,"hexcode":"1F31F","order":3154,"shortcodes":["star2","glowing_star"],"tags":["glittery","glow","shining","sparkle","star"],"unicode":"🌟"},{"annotation":"shooting star","group":5,"hexcode":"1F320","order":3155,"shortcodes":["star3","shooting_star"],"tags":["falling","shooting","star"],"unicode":"🌠"},{"annotation":"milky way","group":5,"hexcode":"1F30C","order":3156,"shortcodes":["milky_way"],"tags":["space"],"unicode":"🌌"},{"annotation":"cloud","group":5,"hexcode":"2601","order":3158,"shortcodes":["cloud"],"tags":["weather"],"unicode":"☁️"},{"annotation":"sun behind cloud","group":5,"hexcode":"26C5","order":3159,"shortcodes":["partly_sunny"],"tags":["cloud","sun"],"unicode":"⛅️"},{"annotation":"cloud with lightning and rain","group":5,"hexcode":"26C8","order":3161,"shortcodes":["storm"],"tags":["cloud","rain","thunder"],"unicode":"⛈️"},{"annotation":"sun behind small cloud","group":5,"hexcode":"1F324","order":3163,"shortcodes":["overcast"],"tags":["cloud","sun"],"unicode":"🌤️"},{"annotation":"sun behind large cloud","group":5,"hexcode":"1F325","order":3165,"shortcodes":["cloudy"],"tags":["cloud","sun"],"unicode":"🌥️"},{"annotation":"sun behind rain cloud","group":5,"hexcode":"1F326","order":3167,"shortcodes":["sunshower"],"tags":["cloud","rain","sun"],"unicode":"🌦️"},{"annotation":"cloud with rain","group":5,"hexcode":"1F327","order":3169,"shortcodes":["rain"],"tags":["cloud","rain"],"unicode":"🌧️"},{"annotation":"cloud with snow","group":5,"hexcode":"1F328","order":3171,"shortcodes":["snow"],"tags":["cloud","cold","snow"],"unicode":"🌨️"},{"annotation":"cloud with lightning","group":5,"hexcode":"1F329","order":3173,"shortcodes":["lightning"],"tags":["cloud","lightning"],"unicode":"🌩️"},{"annotation":"tornado","group":5,"hexcode":"1F32A","order":3175,"shortcodes":["tornado"],"tags":["cloud","whirlwind"],"unicode":"🌪️"},{"annotation":"fog","group":5,"hexcode":"1F32B","order":3177,"shortcodes":["fog"],"tags":["cloud"],"unicode":"🌫️"},{"annotation":"wind face","group":5,"hexcode":"1F32C","order":3179,"shortcodes":["wind_face"],"tags":["blow","cloud","face","wind"],"unicode":"🌬️"},{"annotation":"cyclone","group":5,"hexcode":"1F300","order":3180,"shortcodes":["cyclone"],"tags":["dizzy","hurricane","twister","typhoon"],"unicode":"🌀"},{"annotation":"rainbow","group":5,"hexcode":"1F308","order":3181,"shortcodes":["rainbow"],"tags":["rain"],"unicode":"🌈"},{"annotation":"closed umbrella","group":5,"hexcode":"1F302","order":3182,"shortcodes":["closed_umbrella"],"tags":["clothing","rain","umbrella"],"unicode":"🌂"},{"annotation":"umbrella","group":5,"hexcode":"2602","order":3184,"shortcodes":["umbrella"],"tags":["clothing","rain"],"unicode":"☂️"},{"annotation":"umbrella with rain drops","group":5,"hexcode":"2614","order":3185,"shortcodes":["umbrella_rain"],"tags":["clothing","drop","rain","umbrella"],"unicode":"☔️"},{"annotation":"umbrella on ground","group":5,"hexcode":"26F1","order":3187,"shortcodes":["beach_umbrella"],"tags":["rain","sun","umbrella"],"unicode":"⛱️"},{"annotation":"high voltage","group":5,"hexcode":"26A1","order":3188,"shortcodes":["zap","high_voltage"],"tags":["danger","electric","lightning","voltage","zap"],"unicode":"⚡️"},{"annotation":"snowflake","group":5,"hexcode":"2744","order":3190,"shortcodes":["snowflake"],"tags":["cold","snow"],"unicode":"❄️"},{"annotation":"snowman","group":5,"hexcode":"2603","order":3192,"shortcodes":["snowy_snowman"],"tags":["cold","snow"],"unicode":"☃️"},{"annotation":"snowman without snow","group":5,"hexcode":"26C4","order":3193,"shortcodes":["snowman"],"tags":["cold","snow","snowman"],"unicode":"⛄️"},{"annotation":"comet","group":5,"hexcode":"2604","order":3195,"shortcodes":["comet"],"tags":["space"],"unicode":"☄️"},{"annotation":"fire","group":5,"hexcode":"1F525","order":3196,"shortcodes":["fire"],"tags":["flame","tool"],"unicode":"🔥"},{"annotation":"droplet","group":5,"hexcode":"1F4A7","order":3197,"shortcodes":["droplet"],"tags":["cold","comic","drop","sweat"],"unicode":"💧"},{"annotation":"water wave","group":5,"hexcode":"1F30A","order":3198,"shortcodes":["ocean"],"tags":["ocean","water","wave"],"unicode":"🌊"},{"annotation":"jack-o-lantern","group":6,"hexcode":"1F383","order":3199,"shortcodes":["jack_o_lantern"],"tags":["celebration","halloween","jack","lantern"],"unicode":"🎃"},{"annotation":"Christmas tree","group":6,"hexcode":"1F384","order":3200,"shortcodes":["christmas_tree","xmas_tree"],"tags":["celebration","christmas","tree"],"unicode":"🎄"},{"annotation":"fireworks","group":6,"hexcode":"1F386","order":3201,"shortcodes":["fireworks"],"tags":["celebration"],"unicode":"🎆"},{"annotation":"sparkler","group":6,"hexcode":"1F387","order":3202,"shortcodes":["sparkler"],"tags":["celebration","fireworks","sparkle"],"unicode":"🎇"},{"annotation":"firecracker","group":6,"hexcode":"1F9E8","order":3203,"shortcodes":["firecracker"],"tags":["dynamite","explosive","fireworks"],"unicode":"🧨"},{"annotation":"sparkles","group":6,"hexcode":"2728","order":3204,"shortcodes":["sparkles"],"tags":["*","sparkle","star"],"unicode":"✨"},{"annotation":"balloon","group":6,"hexcode":"1F388","order":3205,"shortcodes":["balloon"],"tags":["celebration"],"unicode":"🎈"},{"annotation":"party popper","group":6,"hexcode":"1F389","order":3206,"shortcodes":["tada","party"],"tags":["celebration","party","popper","tada"],"unicode":"🎉"},{"annotation":"confetti ball","group":6,"hexcode":"1F38A","order":3207,"shortcodes":["confetti_ball"],"tags":["ball","celebration","confetti"],"unicode":"🎊"},{"annotation":"tanabata tree","group":6,"hexcode":"1F38B","order":3208,"shortcodes":["tanabata_tree"],"tags":["banner","celebration","japanese","tree"],"unicode":"🎋"},{"annotation":"pine decoration","group":6,"hexcode":"1F38D","order":3209,"shortcodes":["bamboo","pine_decor"],"tags":["bamboo","celebration","japanese","pine"],"unicode":"🎍"},{"annotation":"Japanese dolls","group":6,"hexcode":"1F38E","order":3210,"shortcodes":["dolls"],"tags":["celebration","doll","festival","japanese","japanese dolls"],"unicode":"🎎"},{"annotation":"carp streamer","group":6,"hexcode":"1F38F","order":3211,"shortcodes":["carp_streamer"],"tags":["carp","celebration","streamer"],"unicode":"🎏"},{"annotation":"wind chime","group":6,"hexcode":"1F390","order":3212,"shortcodes":["wind_chime"],"tags":["bell","celebration","chime","wind"],"unicode":"🎐"},{"annotation":"moon viewing ceremony","group":6,"hexcode":"1F391","order":3213,"shortcodes":["moon_ceremony","rice_scene"],"tags":["celebration","ceremony","moon"],"unicode":"🎑"},{"annotation":"red envelope","group":6,"hexcode":"1F9E7","order":3214,"shortcodes":["red_envelope"],"tags":["gift","good luck","hóngbāo","lai see","money"],"unicode":"🧧"},{"annotation":"ribbon","group":6,"hexcode":"1F380","order":3215,"shortcodes":["ribbon"],"tags":["celebration"],"unicode":"🎀"},{"annotation":"wrapped gift","group":6,"hexcode":"1F381","order":3216,"shortcodes":["gift"],"tags":["box","celebration","gift","present","wrapped"],"unicode":"🎁"},{"annotation":"reminder ribbon","group":6,"hexcode":"1F397","order":3218,"shortcodes":["reminder_ribbon"],"tags":["celebration","reminder","ribbon"],"unicode":"🎗️"},{"annotation":"admission tickets","group":6,"hexcode":"1F39F","order":3220,"shortcodes":["tickets","admission"],"tags":["admission","ticket"],"unicode":"🎟️"},{"annotation":"ticket","group":6,"hexcode":"1F3AB","order":3221,"shortcodes":["ticket"],"tags":["admission"],"unicode":"🎫"},{"annotation":"military medal","group":6,"hexcode":"1F396","order":3223,"shortcodes":["military_medal"],"tags":["celebration","medal","military"],"unicode":"🎖️"},{"annotation":"trophy","group":6,"hexcode":"1F3C6","order":3224,"shortcodes":["trophy"],"tags":["prize"],"unicode":"🏆️"},{"annotation":"sports medal","group":6,"hexcode":"1F3C5","order":3225,"shortcodes":["medal"],"tags":["medal"],"unicode":"🏅"},{"annotation":"1st place medal","group":6,"hexcode":"1F947","order":3226,"shortcodes":["first_place"],"tags":["first","gold","medal"],"unicode":"🥇"},{"annotation":"2nd place medal","group":6,"hexcode":"1F948","order":3227,"shortcodes":["second_place"],"tags":["medal","second","silver"],"unicode":"🥈"},{"annotation":"3rd place medal","group":6,"hexcode":"1F949","order":3228,"shortcodes":["third_place"],"tags":["bronze","medal","third"],"unicode":"🥉"},{"annotation":"soccer ball","group":6,"hexcode":"26BD","order":3229,"shortcodes":["soccer"],"tags":["ball","football","soccer"],"unicode":"⚽️"},{"annotation":"baseball","group":6,"hexcode":"26BE","order":3230,"shortcodes":["baseball"],"tags":["ball"],"unicode":"⚾️"},{"annotation":"softball","group":6,"hexcode":"1F94E","order":3231,"shortcodes":["softball"],"tags":["ball","glove","underarm"],"unicode":"🥎"},{"annotation":"basketball","group":6,"hexcode":"1F3C0","order":3232,"shortcodes":["basketball"],"tags":["ball","hoop"],"unicode":"🏀"},{"annotation":"volleyball","group":6,"hexcode":"1F3D0","order":3233,"shortcodes":["volleyball"],"tags":["ball","game"],"unicode":"🏐"},{"annotation":"american football","group":6,"hexcode":"1F3C8","order":3234,"shortcodes":["football"],"tags":["american","ball","football"],"unicode":"🏈"},{"annotation":"rugby football","group":6,"hexcode":"1F3C9","order":3235,"shortcodes":["rugby"],"tags":["ball","football","rugby"],"unicode":"🏉"},{"annotation":"tennis","group":6,"hexcode":"1F3BE","order":3236,"shortcodes":["tennis"],"tags":["ball","racquet"],"unicode":"🎾"},{"annotation":"flying disc","group":6,"hexcode":"1F94F","order":3237,"shortcodes":["flying_disc"],"tags":["ultimate"],"unicode":"🥏"},{"annotation":"bowling","group":6,"hexcode":"1F3B3","order":3238,"shortcodes":["bowling"],"tags":["ball","game"],"unicode":"🎳"},{"annotation":"cricket game","group":6,"hexcode":"1F3CF","order":3239,"shortcodes":["cricket_game"],"tags":["ball","bat","game"],"unicode":"🏏"},{"annotation":"field hockey","group":6,"hexcode":"1F3D1","order":3240,"shortcodes":["field_hockey"],"tags":["ball","field","game","hockey","stick"],"unicode":"🏑"},{"annotation":"ice hockey","group":6,"hexcode":"1F3D2","order":3241,"shortcodes":["hockey"],"tags":["game","hockey","ice","puck","stick"],"unicode":"🏒"},{"annotation":"lacrosse","group":6,"hexcode":"1F94D","order":3242,"shortcodes":["lacrosse"],"tags":["ball","goal","stick"],"unicode":"🥍"},{"annotation":"ping pong","group":6,"hexcode":"1F3D3","order":3243,"shortcodes":["ping_pong"],"tags":["ball","bat","game","paddle","table tennis"],"unicode":"🏓"},{"annotation":"badminton","group":6,"hexcode":"1F3F8","order":3244,"shortcodes":["badminton"],"tags":["birdie","game","racquet","shuttlecock"],"unicode":"🏸"},{"annotation":"boxing glove","group":6,"hexcode":"1F94A","order":3245,"shortcodes":["boxing_glove"],"tags":["boxing","glove"],"unicode":"🥊"},{"annotation":"martial arts uniform","group":6,"hexcode":"1F94B","order":3246,"shortcodes":["gi","martial_arts_uniform"],"tags":["judo","karate","martial arts","taekwondo","uniform"],"unicode":"🥋"},{"annotation":"goal net","group":6,"hexcode":"1F945","order":3247,"shortcodes":["goal"],"tags":["goal","net"],"unicode":"🥅"},{"annotation":"flag in hole","group":6,"hexcode":"26F3","order":3248,"shortcodes":["golf"],"tags":["golf","hole"],"unicode":"⛳️"},{"annotation":"ice skate","group":6,"hexcode":"26F8","order":3250,"shortcodes":["ice_skate"],"tags":["ice","skate"],"unicode":"⛸️"},{"annotation":"fishing pole","group":6,"hexcode":"1F3A3","order":3251,"shortcodes":["fishing_pole"],"tags":["fish","pole"],"unicode":"🎣"},{"annotation":"diving mask","group":6,"hexcode":"1F93F","order":3252,"shortcodes":["diving_mask","scuba_mask"],"tags":["diving","scuba","snorkeling"],"unicode":"🤿"},{"annotation":"running shirt","group":6,"hexcode":"1F3BD","order":3253,"shortcodes":["running_shirt"],"tags":["athletics","running","sash","shirt"],"unicode":"🎽"},{"annotation":"skis","group":6,"hexcode":"1F3BF","order":3254,"shortcodes":["ski"],"tags":["ski","snow"],"unicode":"🎿"},{"annotation":"sled","group":6,"hexcode":"1F6F7","order":3255,"shortcodes":["sled"],"tags":["sledge","sleigh"],"unicode":"🛷"},{"annotation":"curling stone","group":6,"hexcode":"1F94C","order":3256,"shortcodes":["curling_stone"],"tags":["game","rock"],"unicode":"🥌"},{"annotation":"direct hit","group":6,"hexcode":"1F3AF","order":3257,"shortcodes":["dart"],"tags":["bullseye","dart","game","hit","target"],"unicode":"🎯"},{"annotation":"yo-yo","group":6,"hexcode":"1FA80","order":3258,"shortcodes":["yoyo"],"tags":["fluctuate","toy"],"unicode":"🪀"},{"annotation":"kite","group":6,"hexcode":"1FA81","order":3259,"shortcodes":["kite"],"tags":["fly","soar"],"unicode":"🪁"},{"annotation":"pool 8 ball","group":6,"hexcode":"1F3B1","order":3260,"shortcodes":["8ball"],"tags":["8","ball","billiard","eight","game"],"unicode":"🎱"},{"annotation":"crystal ball","group":6,"hexcode":"1F52E","order":3261,"shortcodes":["crystal_ball"],"tags":["ball","crystal","fairy tale","fantasy","fortune","tool"],"unicode":"🔮"},{"annotation":"magic wand","group":6,"hexcode":"1FA84","order":3262,"shortcodes":["wand"],"tags":["magic","witch","wizard"],"unicode":"🪄"},{"annotation":"nazar amulet","group":6,"hexcode":"1F9FF","order":3263,"shortcodes":["nazar_amulet"],"tags":["bead","charm","evil-eye","nazar","talisman"],"unicode":"🧿"},{"annotation":"video game","group":6,"hexcode":"1F3AE","order":3264,"shortcodes":["video_game"],"tags":["controller","game"],"unicode":"🎮️"},{"annotation":"joystick","group":6,"hexcode":"1F579","order":3266,"shortcodes":["joystick"],"tags":["game","video game"],"unicode":"🕹️"},{"annotation":"slot machine","group":6,"hexcode":"1F3B0","order":3267,"shortcodes":["slot_machine"],"tags":["game","slot"],"unicode":"🎰"},{"annotation":"game die","group":6,"hexcode":"1F3B2","order":3268,"shortcodes":["game_die"],"tags":["dice","die","game"],"unicode":"🎲"},{"annotation":"puzzle piece","group":6,"hexcode":"1F9E9","order":3269,"shortcodes":["jigsaw","puzzle_piece"],"tags":["clue","interlocking","jigsaw","piece","puzzle"],"unicode":"🧩"},{"annotation":"teddy bear","group":6,"hexcode":"1F9F8","order":3270,"shortcodes":["teddy_bear"],"tags":["plaything","plush","stuffed","toy"],"unicode":"🧸"},{"annotation":"piñata","group":6,"hexcode":"1FA85","order":3271,"shortcodes":["pinata"],"tags":["celebration","party"],"unicode":"🪅"},{"annotation":"nesting dolls","group":6,"hexcode":"1FA86","order":3272,"shortcodes":["nesting_dolls"],"tags":["doll","nesting","russia"],"unicode":"🪆"},{"annotation":"spade suit","group":6,"hexcode":"2660","order":3274,"shortcodes":["spades"],"tags":["card","game"],"unicode":"♠️"},{"annotation":"heart suit","group":6,"hexcode":"2665","order":3276,"shortcodes":["hearts"],"tags":["card","game"],"unicode":"♥️"},{"annotation":"diamond suit","group":6,"hexcode":"2666","order":3278,"shortcodes":["diamonds"],"tags":["card","game"],"unicode":"♦️"},{"annotation":"club suit","group":6,"hexcode":"2663","order":3280,"shortcodes":["clubs"],"tags":["card","game"],"unicode":"♣️"},{"annotation":"chess pawn","group":6,"hexcode":"265F","order":3282,"shortcodes":["chess_pawn"],"tags":["chess","dupe","expendable"],"unicode":"♟️"},{"annotation":"joker","group":6,"hexcode":"1F0CF","order":3283,"shortcodes":["black_joker"],"tags":["card","game","wildcard"],"unicode":"🃏"},{"annotation":"mahjong red dragon","group":6,"hexcode":"1F004","order":3284,"shortcodes":["mahjong"],"tags":["game","mahjong","red"],"unicode":"🀄️"},{"annotation":"flower playing cards","group":6,"hexcode":"1F3B4","order":3285,"shortcodes":["flower_cards"],"tags":["card","flower","game","japanese","playing"],"unicode":"🎴"},{"annotation":"performing arts","group":6,"hexcode":"1F3AD","order":3286,"shortcodes":["performing_arts"],"tags":["art","mask","performing","theater","theatre"],"unicode":"🎭️"},{"annotation":"framed picture","group":6,"hexcode":"1F5BC","order":3288,"shortcodes":["frame_photo"],"tags":["art","frame","museum","painting","picture"],"unicode":"🖼️"},{"annotation":"artist palette","group":6,"hexcode":"1F3A8","order":3289,"shortcodes":["art","palette"],"tags":["art","museum","painting","palette"],"unicode":"🎨"},{"annotation":"thread","group":6,"hexcode":"1F9F5","order":3290,"shortcodes":["spool"],"tags":["needle","sewing","spool","string"],"unicode":"🧵"},{"annotation":"sewing needle","group":6,"hexcode":"1FAA1","order":3291,"shortcodes":["sewing_needle"],"tags":["embroidery","needle","sewing","stitches","sutures","tailoring"],"unicode":"🪡"},{"annotation":"yarn","group":6,"hexcode":"1F9F6","order":3292,"shortcodes":["yarn"],"tags":["ball","crochet","knit"],"unicode":"🧶"},{"annotation":"knot","group":6,"hexcode":"1FAA2","order":3293,"shortcodes":["knot"],"tags":["rope","tangled","tie","twine","twist"],"unicode":"🪢"},{"annotation":"glasses","group":7,"hexcode":"1F453","order":3294,"shortcodes":["glasses"],"tags":["clothing","eye","eyeglasses","eyewear"],"unicode":"👓️"},{"annotation":"sunglasses","group":7,"hexcode":"1F576","order":3296,"shortcodes":["sunglasses"],"tags":["dark","eye","eyewear","glasses"],"unicode":"🕶️"},{"annotation":"goggles","group":7,"hexcode":"1F97D","order":3297,"shortcodes":["goggles"],"tags":["eye protection","swimming","welding"],"unicode":"🥽"},{"annotation":"lab coat","group":7,"hexcode":"1F97C","order":3298,"shortcodes":["lab_coat"],"tags":["doctor","experiment","scientist"],"unicode":"🥼"},{"annotation":"safety vest","group":7,"hexcode":"1F9BA","order":3299,"shortcodes":["safety_vest"],"tags":["emergency","safety","vest"],"unicode":"🦺"},{"annotation":"necktie","group":7,"hexcode":"1F454","order":3300,"shortcodes":["necktie","tie"],"tags":["clothing","tie"],"unicode":"👔"},{"annotation":"t-shirt","group":7,"hexcode":"1F455","order":3301,"shortcodes":["shirt"],"tags":["clothing","shirt","tshirt"],"unicode":"👕"},{"annotation":"jeans","group":7,"hexcode":"1F456","order":3302,"shortcodes":["jeans"],"tags":["clothing","pants","trousers"],"unicode":"👖"},{"annotation":"scarf","group":7,"hexcode":"1F9E3","order":3303,"shortcodes":["scarf"],"tags":["neck"],"unicode":"🧣"},{"annotation":"gloves","group":7,"hexcode":"1F9E4","order":3304,"shortcodes":["gloves"],"tags":["hand"],"unicode":"🧤"},{"annotation":"coat","group":7,"hexcode":"1F9E5","order":3305,"shortcodes":["coat"],"tags":["jacket"],"unicode":"🧥"},{"annotation":"socks","group":7,"hexcode":"1F9E6","order":3306,"shortcodes":["socks"],"tags":["stocking"],"unicode":"🧦"},{"annotation":"dress","group":7,"hexcode":"1F457","order":3307,"shortcodes":["dress"],"tags":["clothing"],"unicode":"👗"},{"annotation":"kimono","group":7,"hexcode":"1F458","order":3308,"shortcodes":["kimono"],"tags":["clothing"],"unicode":"👘"},{"annotation":"sari","group":7,"hexcode":"1F97B","order":3309,"shortcodes":["sari"],"tags":["clothing","dress"],"unicode":"🥻"},{"annotation":"one-piece swimsuit","group":7,"hexcode":"1FA71","order":3310,"shortcodes":["one_piece_swimsuit"],"tags":["bathing suit"],"unicode":"🩱"},{"annotation":"briefs","group":7,"hexcode":"1FA72","order":3311,"shortcodes":["briefs"],"tags":["bathing suit","one-piece","swimsuit","underwear"],"unicode":"🩲"},{"annotation":"shorts","group":7,"hexcode":"1FA73","order":3312,"shortcodes":["shorts"],"tags":["bathing suit","pants","underwear"],"unicode":"🩳"},{"annotation":"bikini","group":7,"hexcode":"1F459","order":3313,"shortcodes":["bikini"],"tags":["clothing","swim"],"unicode":"👙"},{"annotation":"woman’s clothes","group":7,"hexcode":"1F45A","order":3314,"shortcodes":["blouse","womans_clothes"],"tags":["clothing","woman"],"unicode":"👚"},{"annotation":"purse","group":7,"hexcode":"1F45B","order":3315,"shortcodes":["purse"],"tags":["clothing","coin"],"unicode":"👛"},{"annotation":"handbag","group":7,"hexcode":"1F45C","order":3316,"shortcodes":["handbag"],"tags":["bag","clothing","purse"],"unicode":"👜"},{"annotation":"clutch bag","group":7,"hexcode":"1F45D","order":3317,"shortcodes":["pouch","clutch_bag"],"tags":["bag","clothing","pouch"],"unicode":"👝"},{"annotation":"shopping bags","group":7,"hexcode":"1F6CD","order":3319,"shortcodes":["shopping_bags"],"tags":["bag","hotel","shopping"],"unicode":"🛍️"},{"annotation":"backpack","group":7,"hexcode":"1F392","order":3320,"shortcodes":["backpack"],"tags":["bag","rucksack","satchel","school"],"unicode":"🎒"},{"annotation":"thong sandal","group":7,"hexcode":"1FA74","order":3321,"shortcodes":["sandal"],"tags":["beach sandals","sandals","thong sandals","thongs","zōri"],"unicode":"🩴"},{"annotation":"man’s shoe","group":7,"hexcode":"1F45E","order":3322,"shortcodes":["dress_shoe","mans_shoe"],"tags":["clothing","man","shoe"],"unicode":"👞"},{"annotation":"running shoe","group":7,"hexcode":"1F45F","order":3323,"shortcodes":["sneaker","athletic_shoe"],"tags":["athletic","clothing","shoe","sneaker"],"unicode":"👟"},{"annotation":"hiking boot","group":7,"hexcode":"1F97E","order":3324,"shortcodes":["hiking_boot"],"tags":["backpacking","boot","camping","hiking"],"unicode":"🥾"},{"annotation":"flat shoe","group":7,"hexcode":"1F97F","order":3325,"shortcodes":["flat_shoe"],"tags":["ballet flat","slip-on","slipper"],"unicode":"🥿"},{"annotation":"high-heeled shoe","group":7,"hexcode":"1F460","order":3326,"shortcodes":["high_heel"],"tags":["clothing","heel","shoe","woman"],"unicode":"👠"},{"annotation":"woman’s sandal","group":7,"hexcode":"1F461","order":3327,"shortcodes":["womans_sandal"],"tags":["clothing","sandal","shoe","woman"],"unicode":"👡"},{"annotation":"ballet shoes","group":7,"hexcode":"1FA70","order":3328,"shortcodes":["ballet_shoes"],"tags":["ballet","dance"],"unicode":"🩰"},{"annotation":"woman’s boot","group":7,"hexcode":"1F462","order":3329,"shortcodes":["womans_boot"],"tags":["boot","clothing","shoe","woman"],"unicode":"👢"},{"annotation":"crown","group":7,"hexcode":"1F451","order":3330,"shortcodes":["crown"],"tags":["clothing","king","queen"],"unicode":"👑"},{"annotation":"woman’s hat","group":7,"hexcode":"1F452","order":3331,"shortcodes":["womans_hat"],"tags":["clothing","hat","woman"],"unicode":"👒"},{"annotation":"top hat","group":7,"hexcode":"1F3A9","order":3332,"shortcodes":["top_hat"],"tags":["clothing","hat","top","tophat"],"unicode":"🎩"},{"annotation":"graduation cap","group":7,"hexcode":"1F393","order":3333,"shortcodes":["graduation_cap"],"tags":["cap","celebration","clothing","graduation","hat"],"unicode":"🎓️"},{"annotation":"billed cap","group":7,"hexcode":"1F9E2","order":3334,"shortcodes":["billed_cap"],"tags":["baseball cap"],"unicode":"🧢"},{"annotation":"military helmet","group":7,"hexcode":"1FA96","order":3335,"shortcodes":["military_helmet"],"tags":["army","helmet","military","soldier","warrior"],"unicode":"🪖"},{"annotation":"rescue worker’s helmet","group":7,"hexcode":"26D1","order":3337,"shortcodes":["helmet_cross"],"tags":["aid","cross","face","hat","helmet"],"unicode":"⛑️"},{"annotation":"prayer beads","group":7,"hexcode":"1F4FF","order":3338,"shortcodes":["prayer_beads"],"tags":["beads","clothing","necklace","prayer","religion"],"unicode":"📿"},{"annotation":"lipstick","group":7,"hexcode":"1F484","order":3339,"shortcodes":["lipstick"],"tags":["cosmetics","makeup"],"unicode":"💄"},{"annotation":"ring","group":7,"hexcode":"1F48D","order":3340,"shortcodes":["ring"],"tags":["diamond"],"unicode":"💍"},{"annotation":"gem stone","group":7,"hexcode":"1F48E","order":3341,"shortcodes":["gem"],"tags":["diamond","gem","jewel"],"unicode":"💎"},{"annotation":"muted speaker","group":7,"hexcode":"1F507","order":3342,"shortcodes":["mute","no_sound"],"tags":["mute","quiet","silent","speaker"],"unicode":"🔇"},{"annotation":"speaker low volume","group":7,"hexcode":"1F508","order":3343,"shortcodes":["speaker","low_sound"],"tags":["soft"],"unicode":"🔈️"},{"annotation":"speaker medium volume","group":7,"hexcode":"1F509","order":3344,"shortcodes":["sound"],"tags":["medium"],"unicode":"🔉"},{"annotation":"speaker high volume","group":7,"hexcode":"1F50A","order":3345,"shortcodes":["loud_sound"],"tags":["loud"],"unicode":"🔊"},{"annotation":"loudspeaker","group":7,"hexcode":"1F4E2","order":3346,"shortcodes":["loudspeaker"],"tags":["loud","public address"],"unicode":"📢"},{"annotation":"megaphone","group":7,"hexcode":"1F4E3","order":3347,"shortcodes":["megaphone"],"tags":["cheering"],"unicode":"📣"},{"annotation":"postal horn","group":7,"hexcode":"1F4EF","order":3348,"shortcodes":["postal_horn"],"tags":["horn","post","postal"],"unicode":"📯"},{"annotation":"bell","group":7,"hexcode":"1F514","order":3349,"shortcodes":["bell"],"tags":["bell"],"unicode":"🔔"},{"annotation":"bell with slash","group":7,"hexcode":"1F515","order":3350,"shortcodes":["no_bell"],"tags":["bell","forbidden","mute","quiet","silent"],"unicode":"🔕"},{"annotation":"musical score","group":7,"hexcode":"1F3BC","order":3351,"shortcodes":["musical_score"],"tags":["music","score"],"unicode":"🎼"},{"annotation":"musical note","group":7,"hexcode":"1F3B5","order":3352,"shortcodes":["musical_note"],"tags":["music","note"],"unicode":"🎵"},{"annotation":"musical notes","group":7,"hexcode":"1F3B6","order":3353,"shortcodes":["musical_notes"],"tags":["music","note","notes"],"unicode":"🎶"},{"annotation":"studio microphone","group":7,"hexcode":"1F399","order":3355,"shortcodes":["studio_microphone"],"tags":["mic","microphone","music","studio"],"unicode":"🎙️"},{"annotation":"level slider","group":7,"hexcode":"1F39A","order":3357,"shortcodes":["level_slider"],"tags":["level","music","slider"],"unicode":"🎚️"},{"annotation":"control knobs","group":7,"hexcode":"1F39B","order":3359,"shortcodes":["control_knobs"],"tags":["control","knobs","music"],"unicode":"🎛️"},{"annotation":"microphone","group":7,"hexcode":"1F3A4","order":3360,"shortcodes":["microphone"],"tags":["karaoke","mic"],"unicode":"🎤"},{"annotation":"headphone","group":7,"hexcode":"1F3A7","order":3361,"shortcodes":["headphones"],"tags":["earbud"],"unicode":"🎧️"},{"annotation":"radio","group":7,"hexcode":"1F4FB","order":3362,"shortcodes":["radio"],"tags":["video"],"unicode":"📻️"},{"annotation":"saxophone","group":7,"hexcode":"1F3B7","order":3363,"shortcodes":["saxophone"],"tags":["instrument","music","sax"],"unicode":"🎷"},{"annotation":"accordion","group":7,"hexcode":"1FA97","order":3364,"shortcodes":["accordion"],"tags":["accordian","concertina","squeeze box"],"unicode":"🪗"},{"annotation":"guitar","group":7,"hexcode":"1F3B8","order":3365,"shortcodes":["guitar"],"tags":["instrument","music"],"unicode":"🎸"},{"annotation":"musical keyboard","group":7,"hexcode":"1F3B9","order":3366,"shortcodes":["musical_keyboard"],"tags":["instrument","keyboard","music","piano"],"unicode":"🎹"},{"annotation":"trumpet","group":7,"hexcode":"1F3BA","order":3367,"shortcodes":["trumpet"],"tags":["instrument","music"],"unicode":"🎺"},{"annotation":"violin","group":7,"hexcode":"1F3BB","order":3368,"shortcodes":["violin"],"tags":["instrument","music"],"unicode":"🎻"},{"annotation":"banjo","group":7,"hexcode":"1FA95","order":3369,"shortcodes":["banjo"],"tags":["music","stringed"],"unicode":"🪕"},{"annotation":"drum","group":7,"hexcode":"1F941","order":3370,"shortcodes":["drum"],"tags":["drumsticks","music"],"unicode":"🥁"},{"annotation":"long drum","group":7,"hexcode":"1FA98","order":3371,"shortcodes":["long_drum"],"tags":["beat","conga","drum","rhythm"],"unicode":"🪘"},{"annotation":"mobile phone","group":7,"hexcode":"1F4F1","order":3372,"shortcodes":["mobile","iphone","android"],"tags":["cell","mobile","phone","telephone"],"unicode":"📱"},{"annotation":"mobile phone with arrow","group":7,"hexcode":"1F4F2","order":3373,"shortcodes":["mobile_calling"],"tags":["arrow","cell","mobile","phone","receive"],"unicode":"📲"},{"annotation":"telephone","group":7,"hexcode":"260E","order":3375,"shortcodes":["telephone"],"tags":["phone"],"unicode":"☎️"},{"annotation":"telephone receiver","group":7,"hexcode":"1F4DE","order":3376,"shortcodes":["telephone_receiver"],"tags":["phone","receiver","telephone"],"unicode":"📞"},{"annotation":"pager","group":7,"hexcode":"1F4DF","order":3377,"shortcodes":["pager"],"tags":["pager"],"unicode":"📟️"},{"annotation":"fax machine","group":7,"hexcode":"1F4E0","order":3378,"shortcodes":["fax"],"tags":["fax"],"unicode":"📠"},{"annotation":"battery","group":7,"hexcode":"1F50B","order":3379,"shortcodes":["battery"],"tags":["battery"],"unicode":"🔋"},{"annotation":"electric plug","group":7,"hexcode":"1F50C","order":3380,"shortcodes":["electric_plug"],"tags":["electric","electricity","plug"],"unicode":"🔌"},{"annotation":"laptop","group":7,"hexcode":"1F4BB","order":3381,"shortcodes":["laptop"],"tags":["computer","pc","personal"],"unicode":"💻️"},{"annotation":"desktop computer","group":7,"hexcode":"1F5A5","order":3383,"shortcodes":["desktop","computer"],"tags":["computer","desktop"],"unicode":"🖥️"},{"annotation":"printer","group":7,"hexcode":"1F5A8","order":3385,"shortcodes":["printer"],"tags":["computer"],"unicode":"🖨️"},{"annotation":"keyboard","group":7,"hexcode":"2328","order":3387,"shortcodes":["keyboard"],"tags":["computer"],"unicode":"⌨️"},{"annotation":"computer mouse","group":7,"hexcode":"1F5B1","order":3389,"shortcodes":["computer_mouse"],"tags":["computer"],"unicode":"🖱️"},{"annotation":"trackball","group":7,"hexcode":"1F5B2","order":3391,"shortcodes":["trackball"],"tags":["computer"],"unicode":"🖲️"},{"annotation":"computer disk","group":7,"hexcode":"1F4BD","order":3392,"shortcodes":["minidisc"],"tags":["computer","disk","minidisk","optical"],"unicode":"💽"},{"annotation":"floppy disk","group":7,"hexcode":"1F4BE","order":3393,"shortcodes":["floppy_disk"],"tags":["computer","disk","floppy"],"unicode":"💾"},{"annotation":"optical disk","group":7,"hexcode":"1F4BF","order":3394,"shortcodes":["cd","disk"],"tags":["cd","computer","disk","optical"],"unicode":"💿️"},{"annotation":"dvd","group":7,"hexcode":"1F4C0","order":3395,"shortcodes":["dvd"],"tags":["blu-ray","computer","disk","optical"],"unicode":"📀"},{"annotation":"abacus","group":7,"hexcode":"1F9EE","order":3396,"shortcodes":["abacus"],"tags":["calculation"],"unicode":"🧮"},{"annotation":"movie camera","group":7,"hexcode":"1F3A5","order":3397,"shortcodes":["movie_camera"],"tags":["camera","cinema","movie"],"unicode":"🎥"},{"annotation":"film frames","group":7,"hexcode":"1F39E","order":3399,"shortcodes":["film_frames"],"tags":["cinema","film","frames","movie"],"unicode":"🎞️"},{"annotation":"film projector","group":7,"hexcode":"1F4FD","order":3401,"shortcodes":["projector"],"tags":["cinema","film","movie","projector","video"],"unicode":"📽️"},{"annotation":"clapper board","group":7,"hexcode":"1F3AC","order":3402,"shortcodes":["clapper"],"tags":["clapper","movie"],"unicode":"🎬️"},{"annotation":"television","group":7,"hexcode":"1F4FA","order":3403,"shortcodes":["tv"],"tags":["tv","video"],"unicode":"📺️"},{"annotation":"camera","group":7,"hexcode":"1F4F7","order":3404,"shortcodes":["camera"],"tags":["video"],"unicode":"📷️"},{"annotation":"camera with flash","group":7,"hexcode":"1F4F8","order":3405,"shortcodes":["camera_flash"],"tags":["camera","flash","video"],"unicode":"📸"},{"annotation":"video camera","group":7,"hexcode":"1F4F9","order":3406,"shortcodes":["video_camera"],"tags":["camera","video"],"unicode":"📹️"},{"annotation":"videocassette","group":7,"hexcode":"1F4FC","order":3407,"shortcodes":["vhs"],"tags":["tape","vhs","video"],"unicode":"📼"},{"annotation":"magnifying glass tilted left","group":7,"hexcode":"1F50D","order":3408,"shortcodes":["mag"],"tags":["glass","magnifying","search","tool"],"unicode":"🔍️"},{"annotation":"magnifying glass tilted right","group":7,"hexcode":"1F50E","order":3409,"shortcodes":["mag_right"],"tags":["glass","magnifying","search","tool"],"unicode":"🔎"},{"annotation":"candle","group":7,"hexcode":"1F56F","order":3411,"shortcodes":["candle"],"tags":["light"],"unicode":"🕯️"},{"annotation":"light bulb","group":7,"hexcode":"1F4A1","order":3412,"shortcodes":["bulb","light_bulb"],"tags":["bulb","comic","electric","idea","light"],"unicode":"💡"},{"annotation":"flashlight","group":7,"hexcode":"1F526","order":3413,"shortcodes":["flashlight"],"tags":["electric","light","tool","torch"],"unicode":"🔦"},{"annotation":"red paper lantern","group":7,"hexcode":"1F3EE","order":3414,"shortcodes":["red_lantern"],"tags":["bar","lantern","light","red"],"unicode":"🏮"},{"annotation":"diya lamp","group":7,"hexcode":"1FA94","order":3415,"shortcodes":["diya_lamp"],"tags":["diya","lamp","oil"],"unicode":"🪔"},{"annotation":"notebook with decorative cover","group":7,"hexcode":"1F4D4","order":3416,"shortcodes":["decorative_notebook"],"tags":["book","cover","decorated","notebook"],"unicode":"📔"},{"annotation":"closed book","group":7,"hexcode":"1F4D5","order":3417,"shortcodes":["closed_book"],"tags":["book","closed"],"unicode":"📕"},{"annotation":"open book","group":7,"hexcode":"1F4D6","order":3418,"shortcodes":["book"],"tags":["book","open"],"unicode":"📖"},{"annotation":"green book","group":7,"hexcode":"1F4D7","order":3419,"shortcodes":["green_book"],"tags":["book","green"],"unicode":"📗"},{"annotation":"blue book","group":7,"hexcode":"1F4D8","order":3420,"shortcodes":["blue_book"],"tags":["blue","book"],"unicode":"📘"},{"annotation":"orange book","group":7,"hexcode":"1F4D9","order":3421,"shortcodes":["orange_book"],"tags":["book","orange"],"unicode":"📙"},{"annotation":"books","group":7,"hexcode":"1F4DA","order":3422,"shortcodes":["books"],"tags":["book"],"unicode":"📚️"},{"annotation":"notebook","group":7,"hexcode":"1F4D3","order":3423,"shortcodes":["notebook"],"tags":["notebook"],"unicode":"📓"},{"annotation":"ledger","group":7,"hexcode":"1F4D2","order":3424,"shortcodes":["ledger"],"tags":["notebook"],"unicode":"📒"},{"annotation":"page with curl","group":7,"hexcode":"1F4C3","order":3425,"shortcodes":["page_curl"],"tags":["curl","document","page"],"unicode":"📃"},{"annotation":"scroll","group":7,"hexcode":"1F4DC","order":3426,"shortcodes":["scroll"],"tags":["paper"],"unicode":"📜"},{"annotation":"page facing up","group":7,"hexcode":"1F4C4","order":3427,"shortcodes":["page_facing_up"],"tags":["document","page"],"unicode":"📄"},{"annotation":"newspaper","group":7,"hexcode":"1F4F0","order":3428,"shortcodes":["newspaper"],"tags":["news","paper"],"unicode":"📰"},{"annotation":"rolled-up newspaper","group":7,"hexcode":"1F5DE","order":3430,"shortcodes":["rolled_newspaper"],"tags":["news","newspaper","paper","rolled"],"unicode":"🗞️"},{"annotation":"bookmark tabs","group":7,"hexcode":"1F4D1","order":3431,"shortcodes":["bookmark_tabs"],"tags":["bookmark","mark","marker","tabs"],"unicode":"📑"},{"annotation":"bookmark","group":7,"hexcode":"1F516","order":3432,"shortcodes":["bookmark"],"tags":["mark"],"unicode":"🔖"},{"annotation":"label","group":7,"hexcode":"1F3F7","order":3434,"shortcodes":["label"],"tags":["label"],"unicode":"🏷️"},{"annotation":"money bag","group":7,"hexcode":"1F4B0","order":3435,"shortcodes":["moneybag"],"tags":["bag","dollar","money","moneybag"],"unicode":"💰️"},{"annotation":"coin","group":7,"hexcode":"1FA99","order":3436,"shortcodes":["coin"],"tags":["gold","metal","money","silver","treasure"],"unicode":"🪙"},{"annotation":"yen banknote","group":7,"hexcode":"1F4B4","order":3437,"shortcodes":["yen"],"tags":["banknote","bill","currency","money","note","yen"],"unicode":"💴"},{"annotation":"dollar banknote","group":7,"hexcode":"1F4B5","order":3438,"shortcodes":["dollar"],"tags":["banknote","bill","currency","dollar","money","note"],"unicode":"💵"},{"annotation":"euro banknote","group":7,"hexcode":"1F4B6","order":3439,"shortcodes":["euro"],"tags":["banknote","bill","currency","euro","money","note"],"unicode":"💶"},{"annotation":"pound banknote","group":7,"hexcode":"1F4B7","order":3440,"shortcodes":["pound"],"tags":["banknote","bill","currency","money","note","pound"],"unicode":"💷"},{"annotation":"money with wings","group":7,"hexcode":"1F4B8","order":3441,"shortcodes":["money_wings"],"tags":["banknote","bill","fly","money","wings"],"unicode":"💸"},{"annotation":"credit card","group":7,"hexcode":"1F4B3","order":3442,"shortcodes":["credit_card"],"tags":["card","credit","money"],"unicode":"💳️"},{"annotation":"receipt","group":7,"hexcode":"1F9FE","order":3443,"shortcodes":["receipt"],"tags":["accounting","bookkeeping","evidence","proof"],"unicode":"🧾"},{"annotation":"chart increasing with yen","group":7,"hexcode":"1F4B9","order":3444,"shortcodes":["ja_chart"],"tags":["chart","graph","growth","money","yen"],"unicode":"💹"},{"annotation":"envelope","group":7,"hexcode":"2709","order":3446,"shortcodes":["envelope"],"tags":["email","letter"],"unicode":"✉️"},{"annotation":"e-mail","group":7,"hexcode":"1F4E7","order":3447,"shortcodes":["email"],"tags":["email","letter","mail"],"unicode":"📧"},{"annotation":"incoming envelope","group":7,"hexcode":"1F4E8","order":3448,"shortcodes":["incoming_envelope"],"tags":["e-mail","email","envelope","incoming","letter","receive"],"unicode":"📨"},{"annotation":"envelope with arrow","group":7,"hexcode":"1F4E9","order":3449,"shortcodes":["envelope_arrow"],"tags":["arrow","e-mail","email","envelope","outgoing"],"unicode":"📩"},{"annotation":"outbox tray","group":7,"hexcode":"1F4E4","order":3450,"shortcodes":["outbox_tray"],"tags":["box","letter","mail","outbox","sent","tray"],"unicode":"📤️"},{"annotation":"inbox tray","group":7,"hexcode":"1F4E5","order":3451,"shortcodes":["inbox_tray"],"tags":["box","inbox","letter","mail","receive","tray"],"unicode":"📥️"},{"annotation":"package","group":7,"hexcode":"1F4E6","order":3452,"shortcodes":["package"],"tags":["box","parcel"],"unicode":"📦️"},{"annotation":"closed mailbox with raised flag","group":7,"hexcode":"1F4EB","order":3453,"shortcodes":["mailbox"],"tags":["closed","mail","mailbox","postbox"],"unicode":"📫️"},{"annotation":"closed mailbox with lowered flag","group":7,"hexcode":"1F4EA","order":3454,"shortcodes":["mailbox_closed"],"tags":["closed","lowered","mail","mailbox","postbox"],"unicode":"📪️"},{"annotation":"open mailbox with raised flag","group":7,"hexcode":"1F4EC","order":3455,"shortcodes":["mailbox_mail"],"tags":["mail","mailbox","open","postbox"],"unicode":"📬️"},{"annotation":"open mailbox with lowered flag","group":7,"hexcode":"1F4ED","order":3456,"shortcodes":["mailbox_no_mail"],"tags":["lowered","mail","mailbox","open","postbox"],"unicode":"📭️"},{"annotation":"postbox","group":7,"hexcode":"1F4EE","order":3457,"shortcodes":["postbox"],"tags":["mail","mailbox"],"unicode":"📮"},{"annotation":"ballot box with ballot","group":7,"hexcode":"1F5F3","order":3459,"shortcodes":["ballot_box"],"tags":["ballot","box"],"unicode":"🗳️"},{"annotation":"pencil","group":7,"hexcode":"270F","order":3461,"shortcodes":["pencil"],"tags":["pencil"],"unicode":"✏️"},{"annotation":"black nib","group":7,"hexcode":"2712","order":3463,"shortcodes":["black_nib"],"tags":["nib","pen"],"unicode":"✒️"},{"annotation":"fountain pen","group":7,"hexcode":"1F58B","order":3465,"shortcodes":["fountain_pen"],"tags":["fountain","pen"],"unicode":"🖋️"},{"annotation":"pen","group":7,"hexcode":"1F58A","order":3467,"shortcodes":["pen"],"tags":["ballpoint"],"unicode":"🖊️"},{"annotation":"paintbrush","group":7,"hexcode":"1F58C","order":3469,"shortcodes":["paintbrush"],"tags":["painting"],"unicode":"🖌️"},{"annotation":"crayon","group":7,"hexcode":"1F58D","order":3471,"shortcodes":["crayon"],"tags":["crayon"],"unicode":"🖍️"},{"annotation":"memo","group":7,"hexcode":"1F4DD","order":3472,"shortcodes":["memo"],"tags":["pencil"],"unicode":"📝"},{"annotation":"briefcase","group":7,"hexcode":"1F4BC","order":3473,"shortcodes":["briefcase"],"tags":["briefcase"],"unicode":"💼"},{"annotation":"file folder","group":7,"hexcode":"1F4C1","order":3474,"shortcodes":["file_folder"],"tags":["file","folder"],"unicode":"📁"},{"annotation":"open file folder","group":7,"hexcode":"1F4C2","order":3475,"shortcodes":["open_file_folder"],"tags":["file","folder","open"],"unicode":"📂"},{"annotation":"card index dividers","group":7,"hexcode":"1F5C2","order":3477,"shortcodes":["dividers"],"tags":["card","dividers","index"],"unicode":"🗂️"},{"annotation":"calendar","group":7,"hexcode":"1F4C5","order":3478,"shortcodes":["date","calendar"],"tags":["date"],"unicode":"📅"},{"annotation":"tear-off calendar","group":7,"hexcode":"1F4C6","order":3479,"shortcodes":["torn_calendar"],"tags":["calendar"],"unicode":"📆"},{"annotation":"spiral notepad","group":7,"hexcode":"1F5D2","order":3481,"shortcodes":["notepad_spiral"],"tags":["note","pad","spiral"],"unicode":"🗒️"},{"annotation":"spiral calendar","group":7,"hexcode":"1F5D3","order":3483,"shortcodes":["calendar_spiral"],"tags":["calendar","pad","spiral"],"unicode":"🗓️"},{"annotation":"card index","group":7,"hexcode":"1F4C7","order":3484,"shortcodes":["card_index"],"tags":["card","index","rolodex"],"unicode":"📇"},{"annotation":"chart increasing","group":7,"hexcode":"1F4C8","order":3485,"shortcodes":["chart_up"],"tags":["chart","graph","growth","trend","upward"],"unicode":"📈"},{"annotation":"chart decreasing","group":7,"hexcode":"1F4C9","order":3486,"shortcodes":["chart_down"],"tags":["chart","down","graph","trend"],"unicode":"📉"},{"annotation":"bar chart","group":7,"hexcode":"1F4CA","order":3487,"shortcodes":["bar_chart"],"tags":["bar","chart","graph"],"unicode":"📊"},{"annotation":"clipboard","group":7,"hexcode":"1F4CB","order":3488,"shortcodes":["clipboard"],"tags":["clipboard"],"unicode":"📋️"},{"annotation":"pushpin","group":7,"hexcode":"1F4CC","order":3489,"shortcodes":["pushpin"],"tags":["pin"],"unicode":"📌"},{"annotation":"round pushpin","group":7,"hexcode":"1F4CD","order":3490,"shortcodes":["round_pushpin"],"tags":["pin","pushpin"],"unicode":"📍"},{"annotation":"paperclip","group":7,"hexcode":"1F4CE","order":3491,"shortcodes":["paperclip"],"tags":["paperclip"],"unicode":"📎"},{"annotation":"linked paperclips","group":7,"hexcode":"1F587","order":3493,"shortcodes":["paperclips"],"tags":["link","paperclip"],"unicode":"🖇️"},{"annotation":"straight ruler","group":7,"hexcode":"1F4CF","order":3494,"shortcodes":["straight_ruler"],"tags":["ruler","straight edge"],"unicode":"📏"},{"annotation":"triangular ruler","group":7,"hexcode":"1F4D0","order":3495,"shortcodes":["triangular_ruler"],"tags":["ruler","set","triangle"],"unicode":"📐"},{"annotation":"scissors","group":7,"hexcode":"2702","order":3497,"shortcodes":["scissors"],"tags":["cutting","tool"],"unicode":"✂️"},{"annotation":"card file box","group":7,"hexcode":"1F5C3","order":3499,"shortcodes":["card_box"],"tags":["box","card","file"],"unicode":"🗃️"},{"annotation":"file cabinet","group":7,"hexcode":"1F5C4","order":3501,"shortcodes":["file_cabinet"],"tags":["cabinet","file","filing"],"unicode":"🗄️"},{"annotation":"wastebasket","group":7,"hexcode":"1F5D1","order":3503,"shortcodes":["trashcan","wastebasket"],"tags":["wastebasket"],"unicode":"🗑️"},{"annotation":"locked","group":7,"hexcode":"1F512","order":3504,"shortcodes":["lock"],"tags":["closed"],"unicode":"🔒️"},{"annotation":"unlocked","group":7,"hexcode":"1F513","order":3505,"shortcodes":["unlock"],"tags":["lock","open","unlock"],"unicode":"🔓️"},{"annotation":"locked with pen","group":7,"hexcode":"1F50F","order":3506,"shortcodes":["locked_pen"],"tags":["ink","lock","nib","pen","privacy"],"unicode":"🔏"},{"annotation":"locked with key","group":7,"hexcode":"1F510","order":3507,"shortcodes":["locked_key"],"tags":["closed","key","lock","secure"],"unicode":"🔐"},{"annotation":"key","group":7,"hexcode":"1F511","order":3508,"shortcodes":["key"],"tags":["lock","password"],"unicode":"🔑"},{"annotation":"old key","group":7,"hexcode":"1F5DD","order":3510,"shortcodes":["old_key"],"tags":["clue","key","lock","old"],"unicode":"🗝️"},{"annotation":"hammer","group":7,"hexcode":"1F528","order":3511,"shortcodes":["hammer"],"tags":["tool"],"unicode":"🔨"},{"annotation":"axe","group":7,"hexcode":"1FA93","order":3512,"shortcodes":["axe"],"tags":["chop","hatchet","split","wood"],"unicode":"🪓"},{"annotation":"pick","group":7,"hexcode":"26CF","order":3514,"shortcodes":["pick"],"tags":["mining","tool"],"unicode":"⛏️"},{"annotation":"hammer and pick","group":7,"hexcode":"2692","order":3516,"shortcodes":["hammer_pick"],"tags":["hammer","pick","tool"],"unicode":"⚒️"},{"annotation":"hammer and wrench","group":7,"hexcode":"1F6E0","order":3518,"shortcodes":["tools","hammer_wrench"],"tags":["hammer","spanner","tool","wrench"],"unicode":"🛠️"},{"annotation":"dagger","group":7,"hexcode":"1F5E1","order":3520,"shortcodes":["dagger"],"tags":["knife","weapon"],"unicode":"🗡️"},{"annotation":"crossed swords","group":7,"hexcode":"2694","order":3522,"shortcodes":["crossed_swords"],"tags":["crossed","swords","weapon"],"unicode":"⚔️"},{"annotation":"pistol","group":7,"hexcode":"1F52B","order":3523,"shortcodes":["gun","pistol"],"tags":["gun","handgun","revolver","tool","weapon"],"unicode":"🔫"},{"annotation":"boomerang","group":7,"hexcode":"1FA83","order":3524,"shortcodes":["boomerang"],"tags":["australia","rebound","repercussion"],"unicode":"🪃"},{"annotation":"bow and arrow","group":7,"hexcode":"1F3F9","order":3525,"shortcodes":["bow"],"tags":["archer","arrow","bow","sagittarius","zodiac"],"unicode":"🏹"},{"annotation":"shield","group":7,"hexcode":"1F6E1","order":3527,"shortcodes":["shield"],"tags":["weapon"],"unicode":"🛡️"},{"annotation":"carpentry saw","group":7,"hexcode":"1FA9A","order":3528,"shortcodes":["saw"],"tags":["carpenter","lumber","saw","tool"],"unicode":"🪚"},{"annotation":"wrench","group":7,"hexcode":"1F527","order":3529,"shortcodes":["wrench"],"tags":["spanner","tool"],"unicode":"🔧"},{"annotation":"screwdriver","group":7,"hexcode":"1FA9B","order":3530,"shortcodes":["screwdriver"],"tags":["screw","tool"],"unicode":"🪛"},{"annotation":"nut and bolt","group":7,"hexcode":"1F529","order":3531,"shortcodes":["nut_and_bolt"],"tags":["bolt","nut","tool"],"unicode":"🔩"},{"annotation":"gear","group":7,"hexcode":"2699","order":3533,"shortcodes":["gear"],"tags":["cog","cogwheel","tool"],"unicode":"⚙️"},{"annotation":"clamp","group":7,"hexcode":"1F5DC","order":3535,"shortcodes":["clamp","compression"],"tags":["compress","tool","vice"],"unicode":"🗜️"},{"annotation":"balance scale","group":7,"hexcode":"2696","order":3537,"shortcodes":["scales"],"tags":["balance","justice","libra","scale","zodiac"],"unicode":"⚖️"},{"annotation":"white cane","group":7,"hexcode":"1F9AF","order":3538,"shortcodes":["probing_cane"],"tags":["accessibility","blind"],"unicode":"🦯"},{"annotation":"link","group":7,"hexcode":"1F517","order":3539,"shortcodes":["link"],"tags":["link"],"unicode":"🔗"},{"annotation":"chains","group":7,"hexcode":"26D3","order":3541,"shortcodes":["chains"],"tags":["chain"],"unicode":"⛓️"},{"annotation":"hook","group":7,"hexcode":"1FA9D","order":3542,"shortcodes":["hook"],"tags":["catch","crook","curve","ensnare","selling point"],"unicode":"🪝"},{"annotation":"toolbox","group":7,"hexcode":"1F9F0","order":3543,"shortcodes":["toolbox"],"tags":["chest","mechanic","tool"],"unicode":"🧰"},{"annotation":"magnet","group":7,"hexcode":"1F9F2","order":3544,"shortcodes":["magnet"],"tags":["attraction","horseshoe","magnetic"],"unicode":"🧲"},{"annotation":"ladder","group":7,"hexcode":"1FA9C","order":3545,"shortcodes":["ladder"],"tags":["climb","rung","step"],"unicode":"🪜"},{"annotation":"alembic","group":7,"hexcode":"2697","order":3547,"shortcodes":["alembic"],"tags":["chemistry","tool"],"unicode":"⚗️"},{"annotation":"test tube","group":7,"hexcode":"1F9EA","order":3548,"shortcodes":["test_tube"],"tags":["chemist","chemistry","experiment","lab","science"],"unicode":"🧪"},{"annotation":"petri dish","group":7,"hexcode":"1F9EB","order":3549,"shortcodes":["petri_dish"],"tags":["bacteria","biologist","biology","culture","lab"],"unicode":"🧫"},{"annotation":"dna","group":7,"hexcode":"1F9EC","order":3550,"shortcodes":["dna","double_helix"],"tags":["biologist","evolution","gene","genetics","life"],"unicode":"🧬"},{"annotation":"microscope","group":7,"hexcode":"1F52C","order":3551,"shortcodes":["microscope"],"tags":["science","tool"],"unicode":"🔬"},{"annotation":"telescope","group":7,"hexcode":"1F52D","order":3552,"shortcodes":["telescope"],"tags":["science","tool"],"unicode":"🔭"},{"annotation":"satellite antenna","group":7,"hexcode":"1F4E1","order":3553,"shortcodes":["satellite_antenna"],"tags":["antenna","dish","satellite"],"unicode":"📡"},{"annotation":"syringe","group":7,"hexcode":"1F489","order":3554,"shortcodes":["syringe"],"tags":["medicine","needle","shot","sick"],"unicode":"💉"},{"annotation":"drop of blood","group":7,"hexcode":"1FA78","order":3555,"shortcodes":["blood_drop"],"tags":["bleed","blood donation","injury","medicine","menstruation"],"unicode":"🩸"},{"annotation":"pill","group":7,"hexcode":"1F48A","order":3556,"shortcodes":["pill"],"tags":["doctor","medicine","sick"],"unicode":"💊"},{"annotation":"adhesive bandage","group":7,"hexcode":"1FA79","order":3557,"shortcodes":["bandaid","adhesive_bandage"],"tags":["bandage"],"unicode":"🩹"},{"annotation":"stethoscope","group":7,"hexcode":"1FA7A","order":3558,"shortcodes":["stethoscope"],"tags":["doctor","heart","medicine"],"unicode":"🩺"},{"annotation":"door","group":7,"hexcode":"1F6AA","order":3559,"shortcodes":["door"],"tags":["door"],"unicode":"🚪"},{"annotation":"elevator","group":7,"hexcode":"1F6D7","order":3560,"shortcodes":["elevator"],"tags":["accessibility","hoist","lift"],"unicode":"🛗"},{"annotation":"mirror","group":7,"hexcode":"1FA9E","order":3561,"shortcodes":["mirror"],"tags":["reflection","reflector","speculum"],"unicode":"🪞"},{"annotation":"window","group":7,"hexcode":"1FA9F","order":3562,"shortcodes":["window"],"tags":["frame","fresh air","opening","transparent","view"],"unicode":"🪟"},{"annotation":"bed","group":7,"hexcode":"1F6CF","order":3564,"shortcodes":["bed"],"tags":["hotel","sleep"],"unicode":"🛏️"},{"annotation":"couch and lamp","group":7,"hexcode":"1F6CB","order":3566,"shortcodes":["couch"],"tags":["couch","hotel","lamp"],"unicode":"🛋️"},{"annotation":"chair","group":7,"hexcode":"1FA91","order":3567,"shortcodes":["chair"],"tags":["seat","sit"],"unicode":"🪑"},{"annotation":"toilet","group":7,"hexcode":"1F6BD","order":3568,"shortcodes":["toilet"],"tags":["toilet"],"unicode":"🚽"},{"annotation":"plunger","group":7,"hexcode":"1FAA0","order":3569,"shortcodes":["plunger"],"tags":["force cup","plumber","suction","toilet"],"unicode":"🪠"},{"annotation":"shower","group":7,"hexcode":"1F6BF","order":3570,"shortcodes":["shower"],"tags":["water"],"unicode":"🚿"},{"annotation":"bathtub","group":7,"hexcode":"1F6C1","order":3571,"shortcodes":["bathtub"],"tags":["bath"],"unicode":"🛁"},{"annotation":"mouse trap","group":7,"hexcode":"1FAA4","order":3572,"shortcodes":["mouse_trap"],"tags":["bait","mousetrap","snare","trap"],"unicode":"🪤"},{"annotation":"razor","group":7,"hexcode":"1FA92","order":3573,"shortcodes":["razor"],"tags":["sharp","shave"],"unicode":"🪒"},{"annotation":"lotion bottle","group":7,"hexcode":"1F9F4","order":3574,"shortcodes":["lotion"],"tags":["lotion","moisturizer","shampoo","sunscreen"],"unicode":"🧴"},{"annotation":"safety pin","group":7,"hexcode":"1F9F7","order":3575,"shortcodes":["safety_pin"],"tags":["diaper","punk rock"],"unicode":"🧷"},{"annotation":"broom","group":7,"hexcode":"1F9F9","order":3576,"shortcodes":["broom"],"tags":["cleaning","sweeping","witch"],"unicode":"🧹"},{"annotation":"basket","group":7,"hexcode":"1F9FA","order":3577,"shortcodes":["basket"],"tags":["farming","laundry","picnic"],"unicode":"🧺"},{"annotation":"roll of paper","group":7,"hexcode":"1F9FB","order":3578,"shortcodes":["toilet_paper"],"tags":["paper towels","toilet paper"],"unicode":"🧻"},{"annotation":"bucket","group":7,"hexcode":"1FAA3","order":3579,"shortcodes":["bucket"],"tags":["cask","pail","vat"],"unicode":"🪣"},{"annotation":"soap","group":7,"hexcode":"1F9FC","order":3580,"shortcodes":["soap"],"tags":["bar","bathing","cleaning","lather","soapdish"],"unicode":"🧼"},{"annotation":"toothbrush","group":7,"hexcode":"1FAA5","order":3581,"shortcodes":["toothbrush"],"tags":["bathroom","brush","clean","dental","hygiene","teeth"],"unicode":"🪥"},{"annotation":"sponge","group":7,"hexcode":"1F9FD","order":3582,"shortcodes":["sponge"],"tags":["absorbing","cleaning","porous"],"unicode":"🧽"},{"annotation":"fire extinguisher","group":7,"hexcode":"1F9EF","order":3583,"shortcodes":["fire_extinguisher"],"tags":["extinguish","fire","quench"],"unicode":"🧯"},{"annotation":"shopping cart","group":7,"hexcode":"1F6D2","order":3584,"shortcodes":["shopping_cart"],"tags":["cart","shopping","trolley"],"unicode":"🛒"},{"annotation":"cigarette","group":7,"hexcode":"1F6AC","order":3585,"shortcodes":["cigarette","smoking"],"tags":["smoking"],"unicode":"🚬"},{"annotation":"coffin","group":7,"hexcode":"26B0","order":3587,"shortcodes":["coffin"],"tags":["death"],"unicode":"⚰️"},{"annotation":"headstone","group":7,"hexcode":"1FAA6","order":3588,"shortcodes":["headstone"],"tags":["cemetery","grave","graveyard","tombstone"],"unicode":"🪦"},{"annotation":"funeral urn","group":7,"hexcode":"26B1","order":3590,"shortcodes":["urn"],"tags":["ashes","death","funeral","urn"],"unicode":"⚱️"},{"annotation":"moai","group":7,"hexcode":"1F5FF","order":3591,"shortcodes":["moai"],"tags":["face","moyai","statue"],"unicode":"🗿"},{"annotation":"placard","group":7,"hexcode":"1FAA7","order":3592,"shortcodes":["placard"],"tags":["demonstration","picket","protest","sign"],"unicode":"🪧"},{"annotation":"ATM sign","group":8,"hexcode":"1F3E7","order":3593,"shortcodes":["atm"],"tags":["atm","atm sign","automated","bank","teller"],"unicode":"🏧"},{"annotation":"litter in bin sign","group":8,"hexcode":"1F6AE","order":3594,"shortcodes":["litter_bin"],"tags":["litter","litter bin"],"unicode":"🚮"},{"annotation":"potable water","group":8,"hexcode":"1F6B0","order":3595,"shortcodes":["potable_water"],"tags":["drinking","potable","water"],"unicode":"🚰"},{"annotation":"wheelchair symbol","group":8,"hexcode":"267F","order":3596,"shortcodes":["handicapped"],"tags":["access"],"unicode":"♿️"},{"annotation":"men’s room","group":8,"hexcode":"1F6B9","order":3597,"shortcodes":["mens"],"tags":["lavatory","man","restroom","wc"],"unicode":"🚹️"},{"annotation":"women’s room","group":8,"hexcode":"1F6BA","order":3598,"shortcodes":["womens"],"tags":["lavatory","restroom","wc","woman"],"unicode":"🚺️"},{"annotation":"restroom","group":8,"hexcode":"1F6BB","order":3599,"shortcodes":["restroom","bathroom"],"tags":["lavatory","wc"],"unicode":"🚻"},{"annotation":"baby symbol","group":8,"hexcode":"1F6BC","order":3600,"shortcodes":["baby_symbol"],"tags":["baby","changing"],"unicode":"🚼️"},{"annotation":"water closet","group":8,"hexcode":"1F6BE","order":3601,"shortcodes":["wc"],"tags":["closet","lavatory","restroom","water","wc"],"unicode":"🚾"},{"annotation":"passport control","group":8,"hexcode":"1F6C2","order":3602,"shortcodes":["passport_control"],"tags":["control","passport"],"unicode":"🛂"},{"annotation":"customs","group":8,"hexcode":"1F6C3","order":3603,"shortcodes":["customs"],"tags":["customs"],"unicode":"🛃"},{"annotation":"baggage claim","group":8,"hexcode":"1F6C4","order":3604,"shortcodes":["baggage_claim"],"tags":["baggage","claim"],"unicode":"🛄"},{"annotation":"left luggage","group":8,"hexcode":"1F6C5","order":3605,"shortcodes":["left_luggage"],"tags":["baggage","locker","luggage"],"unicode":"🛅"},{"annotation":"warning","group":8,"hexcode":"26A0","order":3607,"shortcodes":["warning"],"tags":["warning"],"unicode":"⚠️"},{"annotation":"children crossing","group":8,"hexcode":"1F6B8","order":3608,"shortcodes":["children_crossing"],"tags":["child","crossing","pedestrian","traffic"],"unicode":"🚸"},{"annotation":"no entry","group":8,"hexcode":"26D4","order":3609,"shortcodes":["no_entry"],"tags":["entry","forbidden","no","not","prohibited","traffic"],"unicode":"⛔️"},{"annotation":"prohibited","group":8,"hexcode":"1F6AB","order":3610,"shortcodes":["no_entry_sign"],"tags":["entry","forbidden","no","not"],"unicode":"🚫"},{"annotation":"no bicycles","group":8,"hexcode":"1F6B3","order":3611,"shortcodes":["no_bicycles"],"tags":["bicycle","bike","forbidden","no","prohibited"],"unicode":"🚳"},{"annotation":"no smoking","group":8,"hexcode":"1F6AD","order":3612,"shortcodes":["no_smoking"],"tags":["forbidden","no","not","prohibited","smoking"],"unicode":"🚭️"},{"annotation":"no littering","group":8,"hexcode":"1F6AF","order":3613,"shortcodes":["do_not_litter"],"tags":["forbidden","litter","no","not","prohibited"],"unicode":"🚯"},{"annotation":"non-potable water","group":8,"hexcode":"1F6B1","order":3614,"shortcodes":["non_potable_water"],"tags":["non-drinking","non-potable","water"],"unicode":"🚱"},{"annotation":"no pedestrians","group":8,"hexcode":"1F6B7","order":3615,"shortcodes":["no_pedestrians"],"tags":["forbidden","no","not","pedestrian","prohibited"],"unicode":"🚷"},{"annotation":"no mobile phones","group":8,"hexcode":"1F4F5","order":3616,"shortcodes":["no_mobile_phones"],"tags":["cell","forbidden","mobile","no","phone"],"unicode":"📵"},{"annotation":"no one under eighteen","group":8,"hexcode":"1F51E","order":3617,"shortcodes":["underage"],"tags":["18","age restriction","eighteen","prohibited","underage"],"unicode":"🔞"},{"annotation":"radioactive","group":8,"hexcode":"2622","order":3619,"shortcodes":["radioactive"],"tags":["sign"],"unicode":"☢️"},{"annotation":"biohazard","group":8,"hexcode":"2623","order":3621,"shortcodes":["biohazard"],"tags":["sign"],"unicode":"☣️"},{"annotation":"up arrow","group":8,"hexcode":"2B06","order":3623,"shortcodes":["arrow_up"],"tags":["arrow","cardinal","direction","north"],"unicode":"⬆️"},{"annotation":"up-right arrow","group":8,"hexcode":"2197","order":3625,"shortcodes":["arrow_upper_right"],"tags":["arrow","direction","intercardinal","northeast"],"unicode":"↗️"},{"annotation":"right arrow","group":8,"hexcode":"27A1","order":3627,"shortcodes":["arrow_right"],"tags":["arrow","cardinal","direction","east"],"unicode":"➡️"},{"annotation":"down-right arrow","group":8,"hexcode":"2198","order":3629,"shortcodes":["arrow_lower_right"],"tags":["arrow","direction","intercardinal","southeast"],"unicode":"↘️"},{"annotation":"down arrow","group":8,"hexcode":"2B07","order":3631,"shortcodes":["arrow_down"],"tags":["arrow","cardinal","direction","down","south"],"unicode":"⬇️"},{"annotation":"down-left arrow","group":8,"hexcode":"2199","order":3633,"shortcodes":["arrow_lower_left"],"tags":["arrow","direction","intercardinal","southwest"],"unicode":"↙️"},{"annotation":"left arrow","group":8,"hexcode":"2B05","order":3635,"shortcodes":["arrow_left"],"tags":["arrow","cardinal","direction","west"],"unicode":"⬅️"},{"annotation":"up-left arrow","group":8,"hexcode":"2196","order":3637,"shortcodes":["arrow_upper_left"],"tags":["arrow","direction","intercardinal","northwest"],"unicode":"↖️"},{"annotation":"up-down arrow","group":8,"hexcode":"2195","order":3639,"shortcodes":["arrow_up_down"],"tags":["arrow"],"unicode":"↕️"},{"annotation":"left-right arrow","group":8,"hexcode":"2194","order":3641,"shortcodes":["arrow_left_right"],"tags":["arrow"],"unicode":"↔️"},{"annotation":"right arrow curving left","group":8,"hexcode":"21A9","order":3643,"shortcodes":["arrow_left_hook"],"tags":["arrow"],"unicode":"↩️"},{"annotation":"left arrow curving right","group":8,"hexcode":"21AA","order":3645,"shortcodes":["arrow_right_hook"],"tags":["arrow"],"unicode":"↪️"},{"annotation":"right arrow curving up","group":8,"hexcode":"2934","order":3647,"shortcodes":["arrow_heading_up"],"tags":["arrow"],"unicode":"⤴️"},{"annotation":"right arrow curving down","group":8,"hexcode":"2935","order":3649,"shortcodes":["arrow_heading_down"],"tags":["arrow","down"],"unicode":"⤵️"},{"annotation":"clockwise vertical arrows","group":8,"hexcode":"1F503","order":3650,"shortcodes":["clockwise"],"tags":["arrow","clockwise","reload"],"unicode":"🔃"},{"annotation":"counterclockwise arrows button","group":8,"hexcode":"1F504","order":3651,"shortcodes":["counter_clockwise"],"tags":["anticlockwise","arrow","counterclockwise","withershins"],"unicode":"🔄"},{"annotation":"BACK arrow","group":8,"hexcode":"1F519","order":3652,"shortcodes":["back"],"tags":["arrow","back","back arrow"],"unicode":"🔙"},{"annotation":"END arrow","group":8,"hexcode":"1F51A","order":3653,"shortcodes":["end"],"tags":["arrow","end","end arrow"],"unicode":"🔚"},{"annotation":"ON! arrow","group":8,"hexcode":"1F51B","order":3654,"shortcodes":["on"],"tags":["arrow","mark","on","on! arrow"],"unicode":"🔛"},{"annotation":"SOON arrow","group":8,"hexcode":"1F51C","order":3655,"shortcodes":["soon"],"tags":["arrow","soon","soon arrow"],"unicode":"🔜"},{"annotation":"TOP arrow","group":8,"hexcode":"1F51D","order":3656,"shortcodes":["top"],"tags":["arrow","top","top arrow","up"],"unicode":"🔝"},{"annotation":"place of worship","group":8,"hexcode":"1F6D0","order":3657,"shortcodes":["place_of_worship"],"tags":["religion","worship"],"unicode":"🛐"},{"annotation":"atom symbol","group":8,"hexcode":"269B","order":3659,"shortcodes":["atom"],"tags":["atheist","atom"],"unicode":"⚛️"},{"annotation":"om","group":8,"hexcode":"1F549","order":3661,"shortcodes":["om_symbol"],"tags":["hindu","religion"],"unicode":"🕉️"},{"annotation":"star of David","group":8,"hexcode":"2721","order":3663,"shortcodes":["star_of_david"],"tags":["david","jew","jewish","religion","star","star of david"],"unicode":"✡️"},{"annotation":"wheel of dharma","group":8,"hexcode":"2638","order":3665,"shortcodes":["wheel_of_dharma"],"tags":["buddhist","dharma","religion","wheel"],"unicode":"☸️"},{"annotation":"yin yang","group":8,"hexcode":"262F","order":3667,"shortcodes":["yin_yang"],"tags":["religion","tao","taoist","yang","yin"],"unicode":"☯️"},{"annotation":"latin cross","group":8,"hexcode":"271D","order":3669,"shortcodes":["cross"],"tags":["christian","cross","religion"],"unicode":"✝️"},{"annotation":"orthodox cross","group":8,"hexcode":"2626","order":3671,"shortcodes":["orthodox_cross"],"tags":["christian","cross","religion"],"unicode":"☦️"},{"annotation":"star and crescent","group":8,"hexcode":"262A","order":3673,"shortcodes":["star_and_crescent"],"tags":["islam","muslim","religion"],"unicode":"☪️"},{"annotation":"peace symbol","group":8,"hexcode":"262E","order":3675,"shortcodes":["peace"],"tags":["peace"],"unicode":"☮️"},{"annotation":"menorah","group":8,"hexcode":"1F54E","order":3676,"shortcodes":["menorah"],"tags":["candelabrum","candlestick","religion"],"unicode":"🕎"},{"annotation":"dotted six-pointed star","group":8,"hexcode":"1F52F","order":3677,"shortcodes":["six_pointed_star"],"tags":["fortune","star"],"unicode":"🔯"},{"annotation":"Aries","group":8,"hexcode":"2648","order":3678,"shortcodes":["aries"],"tags":["aries","ram","zodiac"],"unicode":"♈️"},{"annotation":"Taurus","group":8,"hexcode":"2649","order":3679,"shortcodes":["taurus"],"tags":["bull","ox","taurus","zodiac"],"unicode":"♉️"},{"annotation":"Gemini","group":8,"hexcode":"264A","order":3680,"shortcodes":["gemini"],"tags":["gemini","twins","zodiac"],"unicode":"♊️"},{"annotation":"Cancer","group":8,"hexcode":"264B","order":3681,"shortcodes":["cancer"],"tags":["cancer","crab","zodiac"],"unicode":"♋️"},{"annotation":"Leo","group":8,"hexcode":"264C","order":3682,"shortcodes":["leo"],"tags":["leo","lion","zodiac"],"unicode":"♌️"},{"annotation":"Virgo","group":8,"hexcode":"264D","order":3683,"shortcodes":["virgo"],"tags":["virgo","zodiac"],"unicode":"♍️"},{"annotation":"Libra","group":8,"hexcode":"264E","order":3684,"shortcodes":["libra"],"tags":["balance","justice","libra","scales","zodiac"],"unicode":"♎️"},{"annotation":"Scorpio","group":8,"hexcode":"264F","order":3685,"shortcodes":["scorpius"],"tags":["scorpio","scorpion","scorpius","zodiac"],"unicode":"♏️"},{"annotation":"Sagittarius","group":8,"hexcode":"2650","order":3686,"shortcodes":["sagittarius"],"tags":["archer","sagittarius","zodiac"],"unicode":"♐️"},{"annotation":"Capricorn","group":8,"hexcode":"2651","order":3687,"shortcodes":["capricorn"],"tags":["capricorn","goat","zodiac"],"unicode":"♑️"},{"annotation":"Aquarius","group":8,"hexcode":"2652","order":3688,"shortcodes":["aquarius"],"tags":["aquarius","bearer","water","zodiac"],"unicode":"♒️"},{"annotation":"Pisces","group":8,"hexcode":"2653","order":3689,"shortcodes":["pisces"],"tags":["fish","pisces","zodiac"],"unicode":"♓️"},{"annotation":"Ophiuchus","group":8,"hexcode":"26CE","order":3690,"shortcodes":["ophiuchus"],"tags":["bearer","ophiuchus","serpent","snake","zodiac"],"unicode":"⛎"},{"annotation":"shuffle tracks button","group":8,"hexcode":"1F500","order":3691,"shortcodes":["shuffle"],"tags":["arrow","crossed"],"unicode":"🔀"},{"annotation":"repeat button","group":8,"hexcode":"1F501","order":3692,"shortcodes":["repeat"],"tags":["arrow","clockwise","repeat"],"unicode":"🔁"},{"annotation":"repeat single button","group":8,"hexcode":"1F502","order":3693,"shortcodes":["repeat_single"],"tags":["arrow","clockwise","once"],"unicode":"🔂"},{"annotation":"play button","group":8,"hexcode":"25B6","order":3695,"shortcodes":["play"],"tags":["arrow","play","right","triangle"],"unicode":"▶️"},{"annotation":"fast-forward button","group":8,"hexcode":"23E9","order":3696,"shortcodes":["fast_forward"],"tags":["arrow","double","fast","forward"],"unicode":"⏩️"},{"annotation":"next track button","group":8,"hexcode":"23ED","order":3698,"shortcodes":["next_track"],"tags":["arrow","next scene","next track","triangle"],"unicode":"⏭️"},{"annotation":"play or pause button","group":8,"hexcode":"23EF","order":3700,"shortcodes":["play_pause"],"tags":["arrow","pause","play","right","triangle"],"unicode":"⏯️"},{"annotation":"reverse button","group":8,"hexcode":"25C0","order":3702,"shortcodes":["reverse"],"tags":["arrow","left","reverse","triangle"],"unicode":"◀️"},{"annotation":"fast reverse button","group":8,"hexcode":"23EA","order":3703,"shortcodes":["rewind"],"tags":["arrow","double","rewind"],"unicode":"⏪️"},{"annotation":"last track button","group":8,"hexcode":"23EE","order":3705,"shortcodes":["previous_track"],"tags":["arrow","previous scene","previous track","triangle"],"unicode":"⏮️"},{"annotation":"upwards button","group":8,"hexcode":"1F53C","order":3706,"shortcodes":["up_button"],"tags":["arrow","button","red"],"unicode":"🔼"},{"annotation":"fast up button","group":8,"hexcode":"23EB","order":3707,"shortcodes":["fast_up_button"],"tags":["arrow","double"],"unicode":"⏫"},{"annotation":"downwards button","group":8,"hexcode":"1F53D","order":3708,"shortcodes":["down_button"],"tags":["arrow","button","down","red"],"unicode":"🔽"},{"annotation":"fast down button","group":8,"hexcode":"23EC","order":3709,"shortcodes":["fast_down_button"],"tags":["arrow","double","down"],"unicode":"⏬"},{"annotation":"pause button","group":8,"hexcode":"23F8","order":3711,"shortcodes":["pause"],"tags":["bar","double","pause","vertical"],"unicode":"⏸️"},{"annotation":"stop button","group":8,"hexcode":"23F9","order":3713,"shortcodes":["stop"],"tags":["square","stop"],"unicode":"⏹️"},{"annotation":"record button","group":8,"hexcode":"23FA","order":3715,"shortcodes":["record"],"tags":["circle","record"],"unicode":"⏺️"},{"annotation":"eject button","group":8,"hexcode":"23CF","order":3717,"shortcodes":["eject"],"tags":["eject"],"unicode":"⏏️"},{"annotation":"cinema","group":8,"hexcode":"1F3A6","order":3718,"shortcodes":["cinema"],"tags":["camera","film","movie"],"unicode":"🎦"},{"annotation":"dim button","group":8,"hexcode":"1F505","order":3719,"shortcodes":["dim","low_brightness"],"tags":["brightness","dim","low"],"unicode":"🔅"},{"annotation":"bright button","group":8,"hexcode":"1F506","order":3720,"shortcodes":["bright","high_brightness"],"tags":["bright","brightness"],"unicode":"🔆"},{"annotation":"antenna bars","group":8,"hexcode":"1F4F6","order":3721,"shortcodes":["signal_strength","antenna_bars"],"tags":["antenna","bar","cell","mobile","phone"],"unicode":"📶"},{"annotation":"vibration mode","group":8,"hexcode":"1F4F3","order":3722,"shortcodes":["vibration_mode"],"tags":["cell","mobile","mode","phone","telephone","vibration"],"unicode":"📳"},{"annotation":"mobile phone off","group":8,"hexcode":"1F4F4","order":3723,"shortcodes":["mobile_phone_off"],"tags":["cell","mobile","off","phone","telephone"],"unicode":"📴"},{"annotation":"female sign","group":8,"hexcode":"2640","order":3725,"shortcodes":["female","female_sign"],"tags":["woman"],"unicode":"♀️"},{"annotation":"male sign","group":8,"hexcode":"2642","order":3727,"shortcodes":["male","male_sign"],"tags":["man"],"unicode":"♂️"},{"annotation":"transgender symbol","group":8,"hexcode":"26A7","order":3729,"shortcodes":["trans"],"tags":["transgender"],"unicode":"⚧️"},{"annotation":"multiply","group":8,"hexcode":"2716","order":3731,"shortcodes":["multiplication"],"tags":["cancel","multiplication","sign","x","×"],"unicode":"✖️"},{"annotation":"plus","group":8,"hexcode":"2795","order":3732,"shortcodes":["plus"],"tags":["+","math","sign"],"unicode":"➕"},{"annotation":"minus","group":8,"hexcode":"2796","order":3733,"shortcodes":["minus"],"tags":["-","math","sign","−"],"unicode":"➖"},{"annotation":"divide","group":8,"hexcode":"2797","order":3734,"shortcodes":["division"],"tags":["division","math","sign","÷"],"unicode":"➗"},{"annotation":"infinity","group":8,"hexcode":"267E","order":3736,"shortcodes":["infinity"],"tags":["forever","unbounded","universal"],"unicode":"♾️"},{"annotation":"double exclamation mark","group":8,"hexcode":"203C","order":3738,"shortcodes":["bangbang","double_exclamation"],"tags":["!","!!","bangbang","exclamation","mark"],"unicode":"‼️"},{"annotation":"exclamation question mark","group":8,"hexcode":"2049","order":3740,"shortcodes":["interrobang","exclamation_question"],"tags":["!","!?","?","exclamation","interrobang","mark","punctuation","question"],"unicode":"⁉️"},{"annotation":"question mark","group":8,"hexcode":"2753","order":3741,"shortcodes":["question"],"tags":["?","mark","punctuation","question"],"unicode":"❓️"},{"annotation":"white question mark","group":8,"hexcode":"2754","order":3742,"shortcodes":["white_question"],"tags":["?","mark","outlined","punctuation","question"],"unicode":"❔"},{"annotation":"white exclamation mark","group":8,"hexcode":"2755","order":3743,"shortcodes":["white_exclamation"],"tags":["!","exclamation","mark","outlined","punctuation"],"unicode":"❕"},{"annotation":"exclamation mark","group":8,"hexcode":"2757","order":3744,"shortcodes":["exclamation"],"tags":["!","exclamation","mark","punctuation"],"unicode":"❗️"},{"annotation":"wavy dash","group":8,"hexcode":"3030","order":3746,"shortcodes":["wavy_dash"],"tags":["dash","punctuation","wavy"],"unicode":"〰️"},{"annotation":"currency exchange","group":8,"hexcode":"1F4B1","order":3747,"shortcodes":["currency_exchange"],"tags":["bank","currency","exchange","money"],"unicode":"💱"},{"annotation":"heavy dollar sign","group":8,"hexcode":"1F4B2","order":3748,"shortcodes":["dollar_sign"],"tags":["currency","dollar","money"],"unicode":"💲"},{"annotation":"medical symbol","group":8,"hexcode":"2695","order":3750,"shortcodes":["medical"],"tags":["aesculapius","medicine","staff"],"unicode":"⚕️"},{"annotation":"recycling symbol","group":8,"hexcode":"267B","order":3752,"shortcodes":["recycle"],"tags":["recycle"],"unicode":"♻️"},{"annotation":"fleur-de-lis","group":8,"hexcode":"269C","order":3754,"shortcodes":["fleur-de-lis"],"tags":["fleur-de-lis"],"unicode":"⚜️"},{"annotation":"trident emblem","group":8,"hexcode":"1F531","order":3755,"shortcodes":["trident"],"tags":["anchor","emblem","ship","tool","trident"],"unicode":"🔱"},{"annotation":"name badge","group":8,"hexcode":"1F4DB","order":3756,"shortcodes":["name_badge"],"tags":["badge","name"],"unicode":"📛"},{"annotation":"Japanese symbol for beginner","group":8,"hexcode":"1F530","order":3757,"shortcodes":["ja_beginner"],"tags":["beginner","chevron","japanese","japanese symbol for beginner","leaf"],"unicode":"🔰"},{"annotation":"hollow red circle","group":8,"hexcode":"2B55","order":3758,"shortcodes":["o"],"tags":["circle","large","o","red"],"unicode":"⭕️"},{"annotation":"check mark button","group":8,"hexcode":"2705","order":3759,"shortcodes":["white_check_mark"],"tags":["button","check","mark","✓"],"unicode":"✅"},{"annotation":"check box with check","group":8,"hexcode":"2611","order":3761,"shortcodes":["checked_ballot"],"tags":["box","check","✓"],"unicode":"☑️"},{"annotation":"check mark","group":8,"hexcode":"2714","order":3763,"shortcodes":["check_mark"],"tags":["check","mark","✓"],"unicode":"✔️"},{"annotation":"cross mark","group":8,"hexcode":"274C","order":3764,"shortcodes":["x","cross_mark"],"tags":["cancel","cross","mark","multiplication","multiply","x","×"],"unicode":"❌"},{"annotation":"cross mark button","group":8,"hexcode":"274E","order":3765,"shortcodes":["cross_mark_button"],"tags":["mark","square","x","×"],"unicode":"❎"},{"annotation":"curly loop","group":8,"hexcode":"27B0","order":3766,"shortcodes":["curly_loop"],"tags":["curl","loop"],"unicode":"➰"},{"annotation":"double curly loop","group":8,"hexcode":"27BF","order":3767,"shortcodes":["double_curly_loop"],"tags":["curl","double","loop"],"unicode":"➿"},{"annotation":"part alternation mark","group":8,"hexcode":"303D","order":3769,"shortcodes":["part_alternation_mark"],"tags":["mark","part"],"unicode":"〽️"},{"annotation":"eight-spoked asterisk","group":8,"hexcode":"2733","order":3771,"shortcodes":["eight_spoked_asterisk"],"tags":["*","asterisk"],"unicode":"✳️"},{"annotation":"eight-pointed star","group":8,"hexcode":"2734","order":3773,"shortcodes":["eight_pointed_star"],"tags":["*","star"],"unicode":"✴️"},{"annotation":"sparkle","group":8,"hexcode":"2747","order":3775,"shortcodes":["sparkle"],"tags":["*"],"unicode":"❇️"},{"annotation":"copyright","group":8,"hexcode":"00A9","order":3777,"shortcodes":["copyright"],"tags":["c"],"unicode":"©️"},{"annotation":"registered","group":8,"hexcode":"00AE","order":3779,"shortcodes":["registered"],"tags":["r"],"unicode":"®️"},{"annotation":"trade mark","group":8,"hexcode":"2122","order":3781,"shortcodes":["tm"],"tags":["mark","tm","trademark"],"unicode":"™️"},{"annotation":"keycap: #","group":8,"hexcode":"0023-FE0F-20E3","order":3782,"shortcodes":["hash"],"tags":["keycap"],"unicode":"#️⃣"},{"annotation":"keycap: *","group":8,"hexcode":"002A-FE0F-20E3","order":3784,"shortcodes":["asterisk"],"tags":["keycap"],"unicode":"*️⃣"},{"annotation":"keycap: 0","group":8,"hexcode":"0030-FE0F-20E3","order":3786,"shortcodes":["zero"],"tags":["keycap"],"unicode":"0️⃣"},{"annotation":"keycap: 1","group":8,"hexcode":"0031-FE0F-20E3","order":3788,"shortcodes":["one"],"tags":["keycap"],"unicode":"1️⃣"},{"annotation":"keycap: 2","group":8,"hexcode":"0032-FE0F-20E3","order":3790,"shortcodes":["two"],"tags":["keycap"],"unicode":"2️⃣"},{"annotation":"keycap: 3","group":8,"hexcode":"0033-FE0F-20E3","order":3792,"shortcodes":["three"],"tags":["keycap"],"unicode":"3️⃣"},{"annotation":"keycap: 4","group":8,"hexcode":"0034-FE0F-20E3","order":3794,"shortcodes":["four"],"tags":["keycap"],"unicode":"4️⃣"},{"annotation":"keycap: 5","group":8,"hexcode":"0035-FE0F-20E3","order":3796,"shortcodes":["five"],"tags":["keycap"],"unicode":"5️⃣"},{"annotation":"keycap: 6","group":8,"hexcode":"0036-FE0F-20E3","order":3798,"shortcodes":["six"],"tags":["keycap"],"unicode":"6️⃣"},{"annotation":"keycap: 7","group":8,"hexcode":"0037-FE0F-20E3","order":3800,"shortcodes":["seven"],"tags":["keycap"],"unicode":"7️⃣"},{"annotation":"keycap: 8","group":8,"hexcode":"0038-FE0F-20E3","order":3802,"shortcodes":["eight"],"tags":["keycap"],"unicode":"8️⃣"},{"annotation":"keycap: 9","group":8,"hexcode":"0039-FE0F-20E3","order":3804,"shortcodes":["nine"],"tags":["keycap"],"unicode":"9️⃣"},{"annotation":"keycap: 10","group":8,"hexcode":"1F51F","order":3806,"shortcodes":["ten"],"tags":["keycap"],"unicode":"🔟"},{"annotation":"input latin uppercase","group":8,"hexcode":"1F520","order":3807,"shortcodes":["upper_abcd"],"tags":["abcd","input","latin","letters","uppercase"],"unicode":"🔠"},{"annotation":"input latin lowercase","group":8,"hexcode":"1F521","order":3808,"shortcodes":["abcd"],"tags":["abcd","input","latin","letters","lowercase"],"unicode":"🔡"},{"annotation":"input numbers","group":8,"hexcode":"1F522","order":3809,"shortcodes":["1234"],"tags":["1234","input","numbers"],"unicode":"🔢"},{"annotation":"input symbols","group":8,"hexcode":"1F523","order":3810,"shortcodes":["symbols"],"tags":["input","〒♪&%"],"unicode":"🔣"},{"annotation":"input latin letters","group":8,"hexcode":"1F524","order":3811,"shortcodes":["abc"],"tags":["abc","alphabet","input","latin","letters"],"unicode":"🔤"},{"annotation":"A button (blood type)","group":8,"hexcode":"1F170","order":3813,"shortcodes":["a_blood"],"tags":["a","a button (blood type)","blood type"],"unicode":"🅰️"},{"annotation":"AB button (blood type)","group":8,"hexcode":"1F18E","order":3814,"shortcodes":["ab_blood"],"tags":["ab","ab button (blood type)","blood type"],"unicode":"🆎"},{"annotation":"B button (blood type)","group":8,"hexcode":"1F171","order":3816,"shortcodes":["b_blood"],"tags":["b","b button (blood type)","blood type"],"unicode":"🅱️"},{"annotation":"CL button","group":8,"hexcode":"1F191","order":3817,"shortcodes":["cl"],"tags":["cl","cl button"],"unicode":"🆑"},{"annotation":"COOL button","group":8,"hexcode":"1F192","order":3818,"shortcodes":["cool"],"tags":["cool","cool button"],"unicode":"🆒"},{"annotation":"FREE button","group":8,"hexcode":"1F193","order":3819,"shortcodes":["free"],"tags":["free","free button"],"unicode":"🆓"},{"annotation":"information","group":8,"hexcode":"2139","order":3821,"shortcodes":["info"],"tags":["i"],"unicode":"ℹ️"},{"annotation":"ID button","group":8,"hexcode":"1F194","order":3822,"shortcodes":["id"],"tags":["id","id button","identity"],"unicode":"🆔"},{"annotation":"circled M","group":8,"hexcode":"24C2","order":3824,"shortcodes":["m"],"tags":["circle","circled m","m"],"unicode":"Ⓜ️"},{"annotation":"NEW button","group":8,"hexcode":"1F195","order":3825,"shortcodes":["new"],"tags":["new","new button"],"unicode":"🆕"},{"annotation":"NG button","group":8,"hexcode":"1F196","order":3826,"shortcodes":["ng"],"tags":["ng","ng button"],"unicode":"🆖"},{"annotation":"O button (blood type)","group":8,"hexcode":"1F17E","order":3828,"shortcodes":["o_blood"],"tags":["blood type","o","o button (blood type)"],"unicode":"🅾️"},{"annotation":"OK button","group":8,"hexcode":"1F197","order":3829,"shortcodes":["ok"],"tags":["ok","ok button"],"unicode":"🆗"},{"annotation":"P button","group":8,"hexcode":"1F17F","order":3831,"shortcodes":["p"],"tags":["p button","parking"],"unicode":"🅿️"},{"annotation":"SOS button","group":8,"hexcode":"1F198","order":3832,"shortcodes":["sos"],"tags":["help","sos","sos button"],"unicode":"🆘"},{"annotation":"UP! button","group":8,"hexcode":"1F199","order":3833,"shortcodes":["up"],"tags":["mark","up","up! button"],"unicode":"🆙"},{"annotation":"VS button","group":8,"hexcode":"1F19A","order":3834,"shortcodes":["vs"],"tags":["versus","vs","vs button"],"unicode":"🆚"},{"annotation":"Japanese “here” button","group":8,"hexcode":"1F201","order":3835,"shortcodes":["ja_here","koko"],"tags":["japanese","japanese “here” button","katakana","“here”","ココ"],"unicode":"🈁"},{"annotation":"Japanese “service charge” button","group":8,"hexcode":"1F202","order":3837,"shortcodes":["ja_service_charge"],"tags":["japanese","japanese “service charge” button","katakana","“service charge”","サ"],"unicode":"🈂️"},{"annotation":"Japanese “monthly amount” button","group":8,"hexcode":"1F237","order":3839,"shortcodes":["ja_monthly_amount"],"tags":["ideograph","japanese","japanese “monthly amount” button","“monthly amount”","月"],"unicode":"🈷️"},{"annotation":"Japanese “not free of charge” button","group":8,"hexcode":"1F236","order":3840,"shortcodes":["ja_not_free_of_carge"],"tags":["ideograph","japanese","japanese “not free of charge” button","“not free of charge”","有"],"unicode":"🈶"},{"annotation":"Japanese “reserved” button","group":8,"hexcode":"1F22F","order":3841,"shortcodes":["ja_reserved"],"tags":["ideograph","japanese","japanese “reserved” button","“reserved”","指"],"unicode":"🈯️"},{"annotation":"Japanese “bargain” button","group":8,"hexcode":"1F250","order":3842,"shortcodes":["ja_bargain"],"tags":["ideograph","japanese","japanese “bargain” button","“bargain”","得"],"unicode":"🉐"},{"annotation":"Japanese “discount” button","group":8,"hexcode":"1F239","order":3843,"shortcodes":["ja_discount"],"tags":["ideograph","japanese","japanese “discount” button","“discount”","割"],"unicode":"🈹"},{"annotation":"Japanese “free of charge” button","group":8,"hexcode":"1F21A","order":3844,"shortcodes":["ja_free_of_charge"],"tags":["ideograph","japanese","japanese “free of charge” button","“free of charge”","無"],"unicode":"🈚️"},{"annotation":"Japanese “prohibited” button","group":8,"hexcode":"1F232","order":3845,"shortcodes":["ja_prohibited"],"tags":["ideograph","japanese","japanese “prohibited” button","“prohibited”","禁"],"unicode":"🈲"},{"annotation":"Japanese “acceptable” button","group":8,"hexcode":"1F251","order":3846,"shortcodes":["ja_acceptable"],"tags":["ideograph","japanese","japanese “acceptable” button","“acceptable”","可"],"unicode":"🉑"},{"annotation":"Japanese “application” button","group":8,"hexcode":"1F238","order":3847,"shortcodes":["ja_application"],"tags":["ideograph","japanese","japanese “application” button","“application”","申"],"unicode":"🈸"},{"annotation":"Japanese “passing grade” button","group":8,"hexcode":"1F234","order":3848,"shortcodes":["ja_passing_grade"],"tags":["ideograph","japanese","japanese “passing grade” button","“passing grade”","合"],"unicode":"🈴"},{"annotation":"Japanese “vacancy” button","group":8,"hexcode":"1F233","order":3849,"shortcodes":["ja_vacancy"],"tags":["ideograph","japanese","japanese “vacancy” button","“vacancy”","空"],"unicode":"🈳"},{"annotation":"Japanese “congratulations” button","group":8,"hexcode":"3297","order":3851,"shortcodes":["ja_congratulations"],"tags":["ideograph","japanese","japanese “congratulations” button","“congratulations”","祝"],"unicode":"㊗️"},{"annotation":"Japanese “secret” button","group":8,"hexcode":"3299","order":3853,"shortcodes":["ja_secret"],"tags":["ideograph","japanese","japanese “secret” button","“secret”","秘"],"unicode":"㊙️"},{"annotation":"Japanese “open for business” button","group":8,"hexcode":"1F23A","order":3854,"shortcodes":["ja_open_for_business"],"tags":["ideograph","japanese","japanese “open for business” button","“open for business”","営"],"unicode":"🈺"},{"annotation":"Japanese “no vacancy” button","group":8,"hexcode":"1F235","order":3855,"shortcodes":["ja_no_vacancy"],"tags":["ideograph","japanese","japanese “no vacancy” button","“no vacancy”","満"],"unicode":"🈵"},{"annotation":"red circle","group":8,"hexcode":"1F534","order":3856,"shortcodes":["red_circle"],"tags":["circle","geometric","red"],"unicode":"🔴"},{"annotation":"orange circle","group":8,"hexcode":"1F7E0","order":3857,"shortcodes":["orange_circle"],"tags":["circle","orange"],"unicode":"🟠"},{"annotation":"yellow circle","group":8,"hexcode":"1F7E1","order":3858,"shortcodes":["yellow_circle"],"tags":["circle","yellow"],"unicode":"🟡"},{"annotation":"green circle","group":8,"hexcode":"1F7E2","order":3859,"shortcodes":["green_circle"],"tags":["circle","green"],"unicode":"🟢"},{"annotation":"blue circle","group":8,"hexcode":"1F535","order":3860,"shortcodes":["blue_circle"],"tags":["blue","circle","geometric"],"unicode":"🔵"},{"annotation":"purple circle","group":8,"hexcode":"1F7E3","order":3861,"shortcodes":["purple_circle"],"tags":["circle","purple"],"unicode":"🟣"},{"annotation":"brown circle","group":8,"hexcode":"1F7E4","order":3862,"shortcodes":["brown_circle"],"tags":["brown","circle"],"unicode":"🟤"},{"annotation":"black circle","group":8,"hexcode":"26AB","order":3863,"shortcodes":["black_circle"],"tags":["circle","geometric"],"unicode":"⚫️"},{"annotation":"white circle","group":8,"hexcode":"26AA","order":3864,"shortcodes":["white_circle"],"tags":["circle","geometric"],"unicode":"⚪️"},{"annotation":"red square","group":8,"hexcode":"1F7E5","order":3865,"shortcodes":["red_square"],"tags":["red","square"],"unicode":"🟥"},{"annotation":"orange square","group":8,"hexcode":"1F7E7","order":3866,"shortcodes":["orange_square"],"tags":["orange","square"],"unicode":"🟧"},{"annotation":"yellow square","group":8,"hexcode":"1F7E8","order":3867,"shortcodes":["yellow_square"],"tags":["square","yellow"],"unicode":"🟨"},{"annotation":"green square","group":8,"hexcode":"1F7E9","order":3868,"shortcodes":["green_square"],"tags":["green","square"],"unicode":"🟩"},{"annotation":"blue square","group":8,"hexcode":"1F7E6","order":3869,"shortcodes":["blue_square"],"tags":["blue","square"],"unicode":"🟦"},{"annotation":"purple square","group":8,"hexcode":"1F7EA","order":3870,"shortcodes":["purple_square"],"tags":["purple","square"],"unicode":"🟪"},{"annotation":"brown square","group":8,"hexcode":"1F7EB","order":3871,"shortcodes":["brown_square"],"tags":["brown","square"],"unicode":"🟫"},{"annotation":"black large square","group":8,"hexcode":"2B1B","order":3872,"shortcodes":["large_black_square"],"tags":["geometric","square"],"unicode":"⬛️"},{"annotation":"white large square","group":8,"hexcode":"2B1C","order":3873,"shortcodes":["large_white_square"],"tags":["geometric","square"],"unicode":"⬜️"},{"annotation":"black medium square","group":8,"hexcode":"25FC","order":3875,"shortcodes":["medium_black_square"],"tags":["geometric","square"],"unicode":"◼️"},{"annotation":"white medium square","group":8,"hexcode":"25FB","order":3877,"shortcodes":["medium_white_square"],"tags":["geometric","square"],"unicode":"◻️"},{"annotation":"black medium-small square","group":8,"hexcode":"25FE","order":3878,"shortcodes":["medium_small_black_square"],"tags":["geometric","square"],"unicode":"◾️"},{"annotation":"white medium-small square","group":8,"hexcode":"25FD","order":3879,"shortcodes":["medium_small_white_square"],"tags":["geometric","square"],"unicode":"◽️"},{"annotation":"black small square","group":8,"hexcode":"25AA","order":3881,"shortcodes":["small_black_square"],"tags":["geometric","square"],"unicode":"▪️"},{"annotation":"white small square","group":8,"hexcode":"25AB","order":3883,"shortcodes":["small_white_square"],"tags":["geometric","square"],"unicode":"▫️"},{"annotation":"large orange diamond","group":8,"hexcode":"1F536","order":3884,"shortcodes":["large_orange_diamond"],"tags":["diamond","geometric","orange"],"unicode":"🔶"},{"annotation":"large blue diamond","group":8,"hexcode":"1F537","order":3885,"shortcodes":["large_blue_diamond"],"tags":["blue","diamond","geometric"],"unicode":"🔷"},{"annotation":"small orange diamond","group":8,"hexcode":"1F538","order":3886,"shortcodes":["small_orange_diamond"],"tags":["diamond","geometric","orange"],"unicode":"🔸"},{"annotation":"small blue diamond","group":8,"hexcode":"1F539","order":3887,"shortcodes":["small_blue_diamond"],"tags":["blue","diamond","geometric"],"unicode":"🔹"},{"annotation":"red triangle pointed up","group":8,"hexcode":"1F53A","order":3888,"shortcodes":["up_red_triangle"],"tags":["geometric","red"],"unicode":"🔺"},{"annotation":"red triangle pointed down","group":8,"hexcode":"1F53B","order":3889,"shortcodes":["down_red_triangle"],"tags":["down","geometric","red"],"unicode":"🔻"},{"annotation":"diamond with a dot","group":8,"hexcode":"1F4A0","order":3890,"shortcodes":["diamond_dot"],"tags":["comic","diamond","geometric","inside"],"unicode":"💠"},{"annotation":"radio button","group":8,"hexcode":"1F518","order":3891,"shortcodes":["radio_button"],"tags":["button","geometric","radio"],"unicode":"🔘"},{"annotation":"white square button","group":8,"hexcode":"1F533","order":3892,"shortcodes":["white_square_button"],"tags":["button","geometric","outlined","square"],"unicode":"🔳"},{"annotation":"black square button","group":8,"hexcode":"1F532","order":3893,"shortcodes":["black_square_button"],"tags":["button","geometric","square"],"unicode":"🔲"},{"annotation":"chequered flag","group":9,"hexcode":"1F3C1","order":3894,"shortcodes":["checkered_flag"],"tags":["checkered","chequered","racing"],"unicode":"🏁"},{"annotation":"triangular flag","group":9,"hexcode":"1F6A9","order":3895,"shortcodes":["triangle_flag"],"tags":["post"],"unicode":"🚩"},{"annotation":"crossed flags","group":9,"hexcode":"1F38C","order":3896,"shortcodes":["crossed_flags"],"tags":["celebration","cross","crossed","japanese"],"unicode":"🎌"},{"annotation":"black flag","group":9,"hexcode":"1F3F4","order":3897,"shortcodes":["black_flag"],"tags":["waving"],"unicode":"🏴"},{"annotation":"white flag","group":9,"hexcode":"1F3F3","order":3899,"shortcodes":["white_flag"],"tags":["waving"],"unicode":"🏳️"},{"annotation":"rainbow flag","group":9,"hexcode":"1F3F3-FE0F-200D-1F308","order":3900,"shortcodes":["rainbow_flag"],"tags":["pride","rainbow"],"unicode":"🏳️🌈"},{"annotation":"transgender flag","group":9,"hexcode":"1F3F3-FE0F-200D-26A7-FE0F","order":3902,"shortcodes":["trans_flag"],"tags":["flag","light blue","pink","transgender","white"],"unicode":"🏳️⚧️"},{"annotation":"pirate flag","group":9,"hexcode":"1F3F4-200D-2620-FE0F","order":3906,"shortcodes":["pirate_flag","jolly_roger"],"tags":["jolly roger","pirate","plunder","treasure"],"unicode":"🏴☠️"},{"annotation":"flag: Ascension Island","group":9,"hexcode":"1F1E6-1F1E8","order":3908,"shortcodes":["flag_ac"],"tags":["AC","flag"],"unicode":"🇦🇨"},{"annotation":"flag: Andorra","group":9,"hexcode":"1F1E6-1F1E9","order":3909,"shortcodes":["flag_ad"],"tags":["AD","flag"],"unicode":"🇦🇩"},{"annotation":"flag: United Arab Emirates","group":9,"hexcode":"1F1E6-1F1EA","order":3910,"shortcodes":["flag_ae"],"tags":["AE","flag"],"unicode":"🇦🇪"},{"annotation":"flag: Afghanistan","group":9,"hexcode":"1F1E6-1F1EB","order":3911,"shortcodes":["flag_af"],"tags":["AF","flag"],"unicode":"🇦🇫"},{"annotation":"flag: Antigua & Barbuda","group":9,"hexcode":"1F1E6-1F1EC","order":3912,"shortcodes":["flag_ag"],"tags":["AG","flag"],"unicode":"🇦🇬"},{"annotation":"flag: Anguilla","group":9,"hexcode":"1F1E6-1F1EE","order":3913,"shortcodes":["flag_ai"],"tags":["AI","flag"],"unicode":"🇦🇮"},{"annotation":"flag: Albania","group":9,"hexcode":"1F1E6-1F1F1","order":3914,"shortcodes":["flag_al"],"tags":["AL","flag"],"unicode":"🇦🇱"},{"annotation":"flag: Armenia","group":9,"hexcode":"1F1E6-1F1F2","order":3915,"shortcodes":["flag_am"],"tags":["AM","flag"],"unicode":"🇦🇲"},{"annotation":"flag: Angola","group":9,"hexcode":"1F1E6-1F1F4","order":3916,"shortcodes":["flag_ao"],"tags":["AO","flag"],"unicode":"🇦🇴"},{"annotation":"flag: Antarctica","group":9,"hexcode":"1F1E6-1F1F6","order":3917,"shortcodes":["flag_aq"],"tags":["AQ","flag"],"unicode":"🇦🇶"},{"annotation":"flag: Argentina","group":9,"hexcode":"1F1E6-1F1F7","order":3918,"shortcodes":["flag_ar"],"tags":["AR","flag"],"unicode":"🇦🇷"},{"annotation":"flag: American Samoa","group":9,"hexcode":"1F1E6-1F1F8","order":3919,"shortcodes":["flag_as"],"tags":["AS","flag"],"unicode":"🇦🇸"},{"annotation":"flag: Austria","group":9,"hexcode":"1F1E6-1F1F9","order":3920,"shortcodes":["flag_at"],"tags":["AT","flag"],"unicode":"🇦🇹"},{"annotation":"flag: Australia","group":9,"hexcode":"1F1E6-1F1FA","order":3921,"shortcodes":["flag_au"],"tags":["AU","flag"],"unicode":"🇦🇺"},{"annotation":"flag: Aruba","group":9,"hexcode":"1F1E6-1F1FC","order":3922,"shortcodes":["flag_aw"],"tags":["AW","flag"],"unicode":"🇦🇼"},{"annotation":"flag: Åland Islands","group":9,"hexcode":"1F1E6-1F1FD","order":3923,"shortcodes":["flag_ax"],"tags":["AX","flag"],"unicode":"🇦🇽"},{"annotation":"flag: Azerbaijan","group":9,"hexcode":"1F1E6-1F1FF","order":3924,"shortcodes":["flag_az"],"tags":["AZ","flag"],"unicode":"🇦🇿"},{"annotation":"flag: Bosnia & Herzegovina","group":9,"hexcode":"1F1E7-1F1E6","order":3925,"shortcodes":["flag_ba"],"tags":["BA","flag"],"unicode":"🇧🇦"},{"annotation":"flag: Barbados","group":9,"hexcode":"1F1E7-1F1E7","order":3926,"shortcodes":["flag_bb"],"tags":["BB","flag"],"unicode":"🇧🇧"},{"annotation":"flag: Bangladesh","group":9,"hexcode":"1F1E7-1F1E9","order":3927,"shortcodes":["flag_bd"],"tags":["BD","flag"],"unicode":"🇧🇩"},{"annotation":"flag: Belgium","group":9,"hexcode":"1F1E7-1F1EA","order":3928,"shortcodes":["flag_be"],"tags":["BE","flag"],"unicode":"🇧🇪"},{"annotation":"flag: Burkina Faso","group":9,"hexcode":"1F1E7-1F1EB","order":3929,"shortcodes":["flag_bf"],"tags":["BF","flag"],"unicode":"🇧🇫"},{"annotation":"flag: Bulgaria","group":9,"hexcode":"1F1E7-1F1EC","order":3930,"shortcodes":["flag_bg"],"tags":["BG","flag"],"unicode":"🇧🇬"},{"annotation":"flag: Bahrain","group":9,"hexcode":"1F1E7-1F1ED","order":3931,"shortcodes":["flag_bh"],"tags":["BH","flag"],"unicode":"🇧🇭"},{"annotation":"flag: Burundi","group":9,"hexcode":"1F1E7-1F1EE","order":3932,"shortcodes":["flag_bi"],"tags":["BI","flag"],"unicode":"🇧🇮"},{"annotation":"flag: Benin","group":9,"hexcode":"1F1E7-1F1EF","order":3933,"shortcodes":["flag_bj"],"tags":["BJ","flag"],"unicode":"🇧🇯"},{"annotation":"flag: St. Barthélemy","group":9,"hexcode":"1F1E7-1F1F1","order":3934,"shortcodes":["flag_bl"],"tags":["BL","flag"],"unicode":"🇧🇱"},{"annotation":"flag: Bermuda","group":9,"hexcode":"1F1E7-1F1F2","order":3935,"shortcodes":["flag_bm"],"tags":["BM","flag"],"unicode":"🇧🇲"},{"annotation":"flag: Brunei","group":9,"hexcode":"1F1E7-1F1F3","order":3936,"shortcodes":["flag_bn"],"tags":["BN","flag"],"unicode":"🇧🇳"},{"annotation":"flag: Bolivia","group":9,"hexcode":"1F1E7-1F1F4","order":3937,"shortcodes":["flag_bo"],"tags":["BO","flag"],"unicode":"🇧🇴"},{"annotation":"flag: Caribbean Netherlands","group":9,"hexcode":"1F1E7-1F1F6","order":3938,"shortcodes":["flag_bq"],"tags":["BQ","flag"],"unicode":"🇧🇶"},{"annotation":"flag: Brazil","group":9,"hexcode":"1F1E7-1F1F7","order":3939,"shortcodes":["flag_br"],"tags":["BR","flag"],"unicode":"🇧🇷"},{"annotation":"flag: Bahamas","group":9,"hexcode":"1F1E7-1F1F8","order":3940,"shortcodes":["flag_bs"],"tags":["BS","flag"],"unicode":"🇧🇸"},{"annotation":"flag: Bhutan","group":9,"hexcode":"1F1E7-1F1F9","order":3941,"shortcodes":["flag_bt"],"tags":["BT","flag"],"unicode":"🇧🇹"},{"annotation":"flag: Bouvet Island","group":9,"hexcode":"1F1E7-1F1FB","order":3942,"shortcodes":["flag_bv"],"tags":["BV","flag"],"unicode":"🇧🇻"},{"annotation":"flag: Botswana","group":9,"hexcode":"1F1E7-1F1FC","order":3943,"shortcodes":["flag_bw"],"tags":["BW","flag"],"unicode":"🇧🇼"},{"annotation":"flag: Belarus","group":9,"hexcode":"1F1E7-1F1FE","order":3944,"shortcodes":["flag_by"],"tags":["BY","flag"],"unicode":"🇧🇾"},{"annotation":"flag: Belize","group":9,"hexcode":"1F1E7-1F1FF","order":3945,"shortcodes":["flag_bz"],"tags":["BZ","flag"],"unicode":"🇧🇿"},{"annotation":"flag: Canada","group":9,"hexcode":"1F1E8-1F1E6","order":3946,"shortcodes":["flag_ca"],"tags":["CA","flag"],"unicode":"🇨🇦"},{"annotation":"flag: Cocos (Keeling) Islands","group":9,"hexcode":"1F1E8-1F1E8","order":3947,"shortcodes":["flag_cc"],"tags":["CC","flag"],"unicode":"🇨🇨"},{"annotation":"flag: Congo - Kinshasa","group":9,"hexcode":"1F1E8-1F1E9","order":3948,"shortcodes":["flag_cd"],"tags":["CD","flag"],"unicode":"🇨🇩"},{"annotation":"flag: Central African Republic","group":9,"hexcode":"1F1E8-1F1EB","order":3949,"shortcodes":["flag_cf"],"tags":["CF","flag"],"unicode":"🇨🇫"},{"annotation":"flag: Congo - Brazzaville","group":9,"hexcode":"1F1E8-1F1EC","order":3950,"shortcodes":["flag_cg"],"tags":["CG","flag"],"unicode":"🇨🇬"},{"annotation":"flag: Switzerland","group":9,"hexcode":"1F1E8-1F1ED","order":3951,"shortcodes":["flag_ch"],"tags":["CH","flag"],"unicode":"🇨🇭"},{"annotation":"flag: Côte d’Ivoire","group":9,"hexcode":"1F1E8-1F1EE","order":3952,"shortcodes":["flag_ci"],"tags":["CI","flag"],"unicode":"🇨🇮"},{"annotation":"flag: Cook Islands","group":9,"hexcode":"1F1E8-1F1F0","order":3953,"shortcodes":["flag_ck"],"tags":["CK","flag"],"unicode":"🇨🇰"},{"annotation":"flag: Chile","group":9,"hexcode":"1F1E8-1F1F1","order":3954,"shortcodes":["flag_cl"],"tags":["CL","flag"],"unicode":"🇨🇱"},{"annotation":"flag: Cameroon","group":9,"hexcode":"1F1E8-1F1F2","order":3955,"shortcodes":["flag_cm"],"tags":["CM","flag"],"unicode":"🇨🇲"},{"annotation":"flag: China","group":9,"hexcode":"1F1E8-1F1F3","order":3956,"shortcodes":["flag_cn"],"tags":["CN","flag"],"unicode":"🇨🇳"},{"annotation":"flag: Colombia","group":9,"hexcode":"1F1E8-1F1F4","order":3957,"shortcodes":["flag_co"],"tags":["CO","flag"],"unicode":"🇨🇴"},{"annotation":"flag: Clipperton Island","group":9,"hexcode":"1F1E8-1F1F5","order":3958,"shortcodes":["flag_cp"],"tags":["CP","flag"],"unicode":"🇨🇵"},{"annotation":"flag: Costa Rica","group":9,"hexcode":"1F1E8-1F1F7","order":3959,"shortcodes":["flag_cr"],"tags":["CR","flag"],"unicode":"🇨🇷"},{"annotation":"flag: Cuba","group":9,"hexcode":"1F1E8-1F1FA","order":3960,"shortcodes":["flag_cu"],"tags":["CU","flag"],"unicode":"🇨🇺"},{"annotation":"flag: Cape Verde","group":9,"hexcode":"1F1E8-1F1FB","order":3961,"shortcodes":["flag_cv"],"tags":["CV","flag"],"unicode":"🇨🇻"},{"annotation":"flag: Curaçao","group":9,"hexcode":"1F1E8-1F1FC","order":3962,"shortcodes":["flag_cw"],"tags":["CW","flag"],"unicode":"🇨🇼"},{"annotation":"flag: Christmas Island","group":9,"hexcode":"1F1E8-1F1FD","order":3963,"shortcodes":["flag_cx"],"tags":["CX","flag"],"unicode":"🇨🇽"},{"annotation":"flag: Cyprus","group":9,"hexcode":"1F1E8-1F1FE","order":3964,"shortcodes":["flag_cy"],"tags":["CY","flag"],"unicode":"🇨🇾"},{"annotation":"flag: Czechia","group":9,"hexcode":"1F1E8-1F1FF","order":3965,"shortcodes":["flag_cz"],"tags":["CZ","flag"],"unicode":"🇨🇿"},{"annotation":"flag: Germany","group":9,"hexcode":"1F1E9-1F1EA","order":3966,"shortcodes":["flag_de"],"tags":["DE","flag"],"unicode":"🇩🇪"},{"annotation":"flag: Diego Garcia","group":9,"hexcode":"1F1E9-1F1EC","order":3967,"shortcodes":["flag_dg"],"tags":["DG","flag"],"unicode":"🇩🇬"},{"annotation":"flag: Djibouti","group":9,"hexcode":"1F1E9-1F1EF","order":3968,"shortcodes":["flag_dj"],"tags":["DJ","flag"],"unicode":"🇩🇯"},{"annotation":"flag: Denmark","group":9,"hexcode":"1F1E9-1F1F0","order":3969,"shortcodes":["flag_dk"],"tags":["DK","flag"],"unicode":"🇩🇰"},{"annotation":"flag: Dominica","group":9,"hexcode":"1F1E9-1F1F2","order":3970,"shortcodes":["flag_dm"],"tags":["DM","flag"],"unicode":"🇩🇲"},{"annotation":"flag: Dominican Republic","group":9,"hexcode":"1F1E9-1F1F4","order":3971,"shortcodes":["flag_do"],"tags":["DO","flag"],"unicode":"🇩🇴"},{"annotation":"flag: Algeria","group":9,"hexcode":"1F1E9-1F1FF","order":3972,"shortcodes":["flag_dz"],"tags":["DZ","flag"],"unicode":"🇩🇿"},{"annotation":"flag: Ceuta & Melilla","group":9,"hexcode":"1F1EA-1F1E6","order":3973,"shortcodes":["flag_ea"],"tags":["EA","flag"],"unicode":"🇪🇦"},{"annotation":"flag: Ecuador","group":9,"hexcode":"1F1EA-1F1E8","order":3974,"shortcodes":["flag_ec"],"tags":["EC","flag"],"unicode":"🇪🇨"},{"annotation":"flag: Estonia","group":9,"hexcode":"1F1EA-1F1EA","order":3975,"shortcodes":["flag_ee"],"tags":["EE","flag"],"unicode":"🇪🇪"},{"annotation":"flag: Egypt","group":9,"hexcode":"1F1EA-1F1EC","order":3976,"shortcodes":["flag_eg"],"tags":["EG","flag"],"unicode":"🇪🇬"},{"annotation":"flag: Western Sahara","group":9,"hexcode":"1F1EA-1F1ED","order":3977,"shortcodes":["flag_eh"],"tags":["EH","flag"],"unicode":"🇪🇭"},{"annotation":"flag: Eritrea","group":9,"hexcode":"1F1EA-1F1F7","order":3978,"shortcodes":["flag_er"],"tags":["ER","flag"],"unicode":"🇪🇷"},{"annotation":"flag: Spain","group":9,"hexcode":"1F1EA-1F1F8","order":3979,"shortcodes":["flag_es"],"tags":["ES","flag"],"unicode":"🇪🇸"},{"annotation":"flag: Ethiopia","group":9,"hexcode":"1F1EA-1F1F9","order":3980,"shortcodes":["flag_et"],"tags":["ET","flag"],"unicode":"🇪🇹"},{"annotation":"flag: European Union","group":9,"hexcode":"1F1EA-1F1FA","order":3981,"shortcodes":["flag_eu"],"tags":["EU","flag"],"unicode":"🇪🇺"},{"annotation":"flag: Finland","group":9,"hexcode":"1F1EB-1F1EE","order":3982,"shortcodes":["flag_fi"],"tags":["FI","flag"],"unicode":"🇫🇮"},{"annotation":"flag: Fiji","group":9,"hexcode":"1F1EB-1F1EF","order":3983,"shortcodes":["flag_fj"],"tags":["FJ","flag"],"unicode":"🇫🇯"},{"annotation":"flag: Falkland Islands","group":9,"hexcode":"1F1EB-1F1F0","order":3984,"shortcodes":["flag_fk"],"tags":["FK","flag"],"unicode":"🇫🇰"},{"annotation":"flag: Micronesia","group":9,"hexcode":"1F1EB-1F1F2","order":3985,"shortcodes":["flag_fm"],"tags":["FM","flag"],"unicode":"🇫🇲"},{"annotation":"flag: Faroe Islands","group":9,"hexcode":"1F1EB-1F1F4","order":3986,"shortcodes":["flag_fo"],"tags":["FO","flag"],"unicode":"🇫🇴"},{"annotation":"flag: France","group":9,"hexcode":"1F1EB-1F1F7","order":3987,"shortcodes":["flag_fr"],"tags":["FR","flag"],"unicode":"🇫🇷"},{"annotation":"flag: Gabon","group":9,"hexcode":"1F1EC-1F1E6","order":3988,"shortcodes":["flag_ga"],"tags":["GA","flag"],"unicode":"🇬🇦"},{"annotation":"flag: United Kingdom","group":9,"hexcode":"1F1EC-1F1E7","order":3989,"shortcodes":["flag_gb"],"tags":["GB","flag"],"unicode":"🇬🇧"},{"annotation":"flag: Grenada","group":9,"hexcode":"1F1EC-1F1E9","order":3990,"shortcodes":["flag_gd"],"tags":["GD","flag"],"unicode":"🇬🇩"},{"annotation":"flag: Georgia","group":9,"hexcode":"1F1EC-1F1EA","order":3991,"shortcodes":["flag_ge"],"tags":["GE","flag"],"unicode":"🇬🇪"},{"annotation":"flag: French Guiana","group":9,"hexcode":"1F1EC-1F1EB","order":3992,"shortcodes":["flag_gf"],"tags":["GF","flag"],"unicode":"🇬🇫"},{"annotation":"flag: Guernsey","group":9,"hexcode":"1F1EC-1F1EC","order":3993,"shortcodes":["flag_gg"],"tags":["GG","flag"],"unicode":"🇬🇬"},{"annotation":"flag: Ghana","group":9,"hexcode":"1F1EC-1F1ED","order":3994,"shortcodes":["flag_gh"],"tags":["GH","flag"],"unicode":"🇬🇭"},{"annotation":"flag: Gibraltar","group":9,"hexcode":"1F1EC-1F1EE","order":3995,"shortcodes":["flag_gi"],"tags":["GI","flag"],"unicode":"🇬🇮"},{"annotation":"flag: Greenland","group":9,"hexcode":"1F1EC-1F1F1","order":3996,"shortcodes":["flag_gl"],"tags":["GL","flag"],"unicode":"🇬🇱"},{"annotation":"flag: Gambia","group":9,"hexcode":"1F1EC-1F1F2","order":3997,"shortcodes":["flag_gm"],"tags":["GM","flag"],"unicode":"🇬🇲"},{"annotation":"flag: Guinea","group":9,"hexcode":"1F1EC-1F1F3","order":3998,"shortcodes":["flag_gn"],"tags":["GN","flag"],"unicode":"🇬🇳"},{"annotation":"flag: Guadeloupe","group":9,"hexcode":"1F1EC-1F1F5","order":3999,"shortcodes":["flag_gp"],"tags":["GP","flag"],"unicode":"🇬🇵"},{"annotation":"flag: Equatorial Guinea","group":9,"hexcode":"1F1EC-1F1F6","order":4000,"shortcodes":["flag_gq"],"tags":["GQ","flag"],"unicode":"🇬🇶"},{"annotation":"flag: Greece","group":9,"hexcode":"1F1EC-1F1F7","order":4001,"shortcodes":["flag_gr"],"tags":["GR","flag"],"unicode":"🇬🇷"},{"annotation":"flag: South Georgia & South Sandwich Islands","group":9,"hexcode":"1F1EC-1F1F8","order":4002,"shortcodes":["flag_gs"],"tags":["GS","flag"],"unicode":"🇬🇸"},{"annotation":"flag: Guatemala","group":9,"hexcode":"1F1EC-1F1F9","order":4003,"shortcodes":["flag_gt"],"tags":["GT","flag"],"unicode":"🇬🇹"},{"annotation":"flag: Guam","group":9,"hexcode":"1F1EC-1F1FA","order":4004,"shortcodes":["flag_gu"],"tags":["GU","flag"],"unicode":"🇬🇺"},{"annotation":"flag: Guinea-Bissau","group":9,"hexcode":"1F1EC-1F1FC","order":4005,"shortcodes":["flag_gw"],"tags":["GW","flag"],"unicode":"🇬🇼"},{"annotation":"flag: Guyana","group":9,"hexcode":"1F1EC-1F1FE","order":4006,"shortcodes":["flag_gy"],"tags":["GY","flag"],"unicode":"🇬🇾"},{"annotation":"flag: Hong Kong SAR China","group":9,"hexcode":"1F1ED-1F1F0","order":4007,"shortcodes":["flag_hk"],"tags":["HK","flag"],"unicode":"🇭🇰"},{"annotation":"flag: Heard & McDonald Islands","group":9,"hexcode":"1F1ED-1F1F2","order":4008,"shortcodes":["flag_hm"],"tags":["HM","flag"],"unicode":"🇭🇲"},{"annotation":"flag: Honduras","group":9,"hexcode":"1F1ED-1F1F3","order":4009,"shortcodes":["flag_hn"],"tags":["HN","flag"],"unicode":"🇭🇳"},{"annotation":"flag: Croatia","group":9,"hexcode":"1F1ED-1F1F7","order":4010,"shortcodes":["flag_hr"],"tags":["HR","flag"],"unicode":"🇭🇷"},{"annotation":"flag: Haiti","group":9,"hexcode":"1F1ED-1F1F9","order":4011,"shortcodes":["flag_ht"],"tags":["HT","flag"],"unicode":"🇭🇹"},{"annotation":"flag: Hungary","group":9,"hexcode":"1F1ED-1F1FA","order":4012,"shortcodes":["flag_hu"],"tags":["HU","flag"],"unicode":"🇭🇺"},{"annotation":"flag: Canary Islands","group":9,"hexcode":"1F1EE-1F1E8","order":4013,"shortcodes":["flag_ic"],"tags":["IC","flag"],"unicode":"🇮🇨"},{"annotation":"flag: Indonesia","group":9,"hexcode":"1F1EE-1F1E9","order":4014,"shortcodes":["flag_id"],"tags":["ID","flag"],"unicode":"🇮🇩"},{"annotation":"flag: Ireland","group":9,"hexcode":"1F1EE-1F1EA","order":4015,"shortcodes":["flag_ie"],"tags":["IE","flag"],"unicode":"🇮🇪"},{"annotation":"flag: Israel","group":9,"hexcode":"1F1EE-1F1F1","order":4016,"shortcodes":["flag_il"],"tags":["IL","flag"],"unicode":"🇮🇱"},{"annotation":"flag: Isle of Man","group":9,"hexcode":"1F1EE-1F1F2","order":4017,"shortcodes":["flag_im"],"tags":["IM","flag"],"unicode":"🇮🇲"},{"annotation":"flag: India","group":9,"hexcode":"1F1EE-1F1F3","order":4018,"shortcodes":["flag_in"],"tags":["IN","flag"],"unicode":"🇮🇳"},{"annotation":"flag: British Indian Ocean Territory","group":9,"hexcode":"1F1EE-1F1F4","order":4019,"shortcodes":["flag_io"],"tags":["IO","flag"],"unicode":"🇮🇴"},{"annotation":"flag: Iraq","group":9,"hexcode":"1F1EE-1F1F6","order":4020,"shortcodes":["flag_iq"],"tags":["IQ","flag"],"unicode":"🇮🇶"},{"annotation":"flag: Iran","group":9,"hexcode":"1F1EE-1F1F7","order":4021,"shortcodes":["flag_ir"],"tags":["IR","flag"],"unicode":"🇮🇷"},{"annotation":"flag: Iceland","group":9,"hexcode":"1F1EE-1F1F8","order":4022,"shortcodes":["flag_is"],"tags":["IS","flag"],"unicode":"🇮🇸"},{"annotation":"flag: Italy","group":9,"hexcode":"1F1EE-1F1F9","order":4023,"shortcodes":["flag_it"],"tags":["IT","flag"],"unicode":"🇮🇹"},{"annotation":"flag: Jersey","group":9,"hexcode":"1F1EF-1F1EA","order":4024,"shortcodes":["flag_je"],"tags":["JE","flag"],"unicode":"🇯🇪"},{"annotation":"flag: Jamaica","group":9,"hexcode":"1F1EF-1F1F2","order":4025,"shortcodes":["flag_jm"],"tags":["JM","flag"],"unicode":"🇯🇲"},{"annotation":"flag: Jordan","group":9,"hexcode":"1F1EF-1F1F4","order":4026,"shortcodes":["flag_jo"],"tags":["JO","flag"],"unicode":"🇯🇴"},{"annotation":"flag: Japan","group":9,"hexcode":"1F1EF-1F1F5","order":4027,"shortcodes":["flag_jp"],"tags":["JP","flag"],"unicode":"🇯🇵"},{"annotation":"flag: Kenya","group":9,"hexcode":"1F1F0-1F1EA","order":4028,"shortcodes":["flag_ke"],"tags":["KE","flag"],"unicode":"🇰🇪"},{"annotation":"flag: Kyrgyzstan","group":9,"hexcode":"1F1F0-1F1EC","order":4029,"shortcodes":["flag_kg"],"tags":["KG","flag"],"unicode":"🇰🇬"},{"annotation":"flag: Cambodia","group":9,"hexcode":"1F1F0-1F1ED","order":4030,"shortcodes":["flag_kh"],"tags":["KH","flag"],"unicode":"🇰🇭"},{"annotation":"flag: Kiribati","group":9,"hexcode":"1F1F0-1F1EE","order":4031,"shortcodes":["flag_ki"],"tags":["KI","flag"],"unicode":"🇰🇮"},{"annotation":"flag: Comoros","group":9,"hexcode":"1F1F0-1F1F2","order":4032,"shortcodes":["flag_km"],"tags":["KM","flag"],"unicode":"🇰🇲"},{"annotation":"flag: St. Kitts & Nevis","group":9,"hexcode":"1F1F0-1F1F3","order":4033,"shortcodes":["flag_kn"],"tags":["KN","flag"],"unicode":"🇰🇳"},{"annotation":"flag: North Korea","group":9,"hexcode":"1F1F0-1F1F5","order":4034,"shortcodes":["flag_kp"],"tags":["KP","flag"],"unicode":"🇰🇵"},{"annotation":"flag: South Korea","group":9,"hexcode":"1F1F0-1F1F7","order":4035,"shortcodes":["flag_kr"],"tags":["KR","flag"],"unicode":"🇰🇷"},{"annotation":"flag: Kuwait","group":9,"hexcode":"1F1F0-1F1FC","order":4036,"shortcodes":["flag_kw"],"tags":["KW","flag"],"unicode":"🇰🇼"},{"annotation":"flag: Cayman Islands","group":9,"hexcode":"1F1F0-1F1FE","order":4037,"shortcodes":["flag_ky"],"tags":["KY","flag"],"unicode":"🇰🇾"},{"annotation":"flag: Kazakhstan","group":9,"hexcode":"1F1F0-1F1FF","order":4038,"shortcodes":["flag_kz"],"tags":["KZ","flag"],"unicode":"🇰🇿"},{"annotation":"flag: Laos","group":9,"hexcode":"1F1F1-1F1E6","order":4039,"shortcodes":["flag_la"],"tags":["LA","flag"],"unicode":"🇱🇦"},{"annotation":"flag: Lebanon","group":9,"hexcode":"1F1F1-1F1E7","order":4040,"shortcodes":["flag_lb"],"tags":["LB","flag"],"unicode":"🇱🇧"},{"annotation":"flag: St. Lucia","group":9,"hexcode":"1F1F1-1F1E8","order":4041,"shortcodes":["flag_lc"],"tags":["LC","flag"],"unicode":"🇱🇨"},{"annotation":"flag: Liechtenstein","group":9,"hexcode":"1F1F1-1F1EE","order":4042,"shortcodes":["flag_li"],"tags":["LI","flag"],"unicode":"🇱🇮"},{"annotation":"flag: Sri Lanka","group":9,"hexcode":"1F1F1-1F1F0","order":4043,"shortcodes":["flag_lk"],"tags":["LK","flag"],"unicode":"🇱🇰"},{"annotation":"flag: Liberia","group":9,"hexcode":"1F1F1-1F1F7","order":4044,"shortcodes":["flag_lr"],"tags":["LR","flag"],"unicode":"🇱🇷"},{"annotation":"flag: Lesotho","group":9,"hexcode":"1F1F1-1F1F8","order":4045,"shortcodes":["flag_ls"],"tags":["LS","flag"],"unicode":"🇱🇸"},{"annotation":"flag: Lithuania","group":9,"hexcode":"1F1F1-1F1F9","order":4046,"shortcodes":["flag_lt"],"tags":["LT","flag"],"unicode":"🇱🇹"},{"annotation":"flag: Luxembourg","group":9,"hexcode":"1F1F1-1F1FA","order":4047,"shortcodes":["flag_lu"],"tags":["LU","flag"],"unicode":"🇱🇺"},{"annotation":"flag: Latvia","group":9,"hexcode":"1F1F1-1F1FB","order":4048,"shortcodes":["flag_lv"],"tags":["LV","flag"],"unicode":"🇱🇻"},{"annotation":"flag: Libya","group":9,"hexcode":"1F1F1-1F1FE","order":4049,"shortcodes":["flag_ly"],"tags":["LY","flag"],"unicode":"🇱🇾"},{"annotation":"flag: Morocco","group":9,"hexcode":"1F1F2-1F1E6","order":4050,"shortcodes":["flag_ma"],"tags":["MA","flag"],"unicode":"🇲🇦"},{"annotation":"flag: Monaco","group":9,"hexcode":"1F1F2-1F1E8","order":4051,"shortcodes":["flag_mc"],"tags":["MC","flag"],"unicode":"🇲🇨"},{"annotation":"flag: Moldova","group":9,"hexcode":"1F1F2-1F1E9","order":4052,"shortcodes":["flag_md"],"tags":["MD","flag"],"unicode":"🇲🇩"},{"annotation":"flag: Montenegro","group":9,"hexcode":"1F1F2-1F1EA","order":4053,"shortcodes":["flag_me"],"tags":["ME","flag"],"unicode":"🇲🇪"},{"annotation":"flag: St. Martin","group":9,"hexcode":"1F1F2-1F1EB","order":4054,"shortcodes":["flag_mf"],"tags":["MF","flag"],"unicode":"🇲🇫"},{"annotation":"flag: Madagascar","group":9,"hexcode":"1F1F2-1F1EC","order":4055,"shortcodes":["flag_mg"],"tags":["MG","flag"],"unicode":"🇲🇬"},{"annotation":"flag: Marshall Islands","group":9,"hexcode":"1F1F2-1F1ED","order":4056,"shortcodes":["flag_mh"],"tags":["MH","flag"],"unicode":"🇲🇭"},{"annotation":"flag: North Macedonia","group":9,"hexcode":"1F1F2-1F1F0","order":4057,"shortcodes":["flag_mk"],"tags":["MK","flag"],"unicode":"🇲🇰"},{"annotation":"flag: Mali","group":9,"hexcode":"1F1F2-1F1F1","order":4058,"shortcodes":["flag_ml"],"tags":["ML","flag"],"unicode":"🇲🇱"},{"annotation":"flag: Myanmar (Burma)","group":9,"hexcode":"1F1F2-1F1F2","order":4059,"shortcodes":["flag_mm"],"tags":["MM","flag"],"unicode":"🇲🇲"},{"annotation":"flag: Mongolia","group":9,"hexcode":"1F1F2-1F1F3","order":4060,"shortcodes":["flag_mn"],"tags":["MN","flag"],"unicode":"🇲🇳"},{"annotation":"flag: Macao SAR China","group":9,"hexcode":"1F1F2-1F1F4","order":4061,"shortcodes":["flag_mo"],"tags":["MO","flag"],"unicode":"🇲🇴"},{"annotation":"flag: Northern Mariana Islands","group":9,"hexcode":"1F1F2-1F1F5","order":4062,"shortcodes":["flag_mp"],"tags":["MP","flag"],"unicode":"🇲🇵"},{"annotation":"flag: Martinique","group":9,"hexcode":"1F1F2-1F1F6","order":4063,"shortcodes":["flag_mq"],"tags":["MQ","flag"],"unicode":"🇲🇶"},{"annotation":"flag: Mauritania","group":9,"hexcode":"1F1F2-1F1F7","order":4064,"shortcodes":["flag_mr"],"tags":["MR","flag"],"unicode":"🇲🇷"},{"annotation":"flag: Montserrat","group":9,"hexcode":"1F1F2-1F1F8","order":4065,"shortcodes":["flag_ms"],"tags":["MS","flag"],"unicode":"🇲🇸"},{"annotation":"flag: Malta","group":9,"hexcode":"1F1F2-1F1F9","order":4066,"shortcodes":["flag_mt"],"tags":["MT","flag"],"unicode":"🇲🇹"},{"annotation":"flag: Mauritius","group":9,"hexcode":"1F1F2-1F1FA","order":4067,"shortcodes":["flag_mu"],"tags":["MU","flag"],"unicode":"🇲🇺"},{"annotation":"flag: Maldives","group":9,"hexcode":"1F1F2-1F1FB","order":4068,"shortcodes":["flag_mv"],"tags":["MV","flag"],"unicode":"🇲🇻"},{"annotation":"flag: Malawi","group":9,"hexcode":"1F1F2-1F1FC","order":4069,"shortcodes":["flag_mw"],"tags":["MW","flag"],"unicode":"🇲🇼"},{"annotation":"flag: Mexico","group":9,"hexcode":"1F1F2-1F1FD","order":4070,"shortcodes":["flag_mx"],"tags":["MX","flag"],"unicode":"🇲🇽"},{"annotation":"flag: Malaysia","group":9,"hexcode":"1F1F2-1F1FE","order":4071,"shortcodes":["flag_my"],"tags":["MY","flag"],"unicode":"🇲🇾"},{"annotation":"flag: Mozambique","group":9,"hexcode":"1F1F2-1F1FF","order":4072,"shortcodes":["flag_mz"],"tags":["MZ","flag"],"unicode":"🇲🇿"},{"annotation":"flag: Namibia","group":9,"hexcode":"1F1F3-1F1E6","order":4073,"shortcodes":["flag_na"],"tags":["NA","flag"],"unicode":"🇳🇦"},{"annotation":"flag: New Caledonia","group":9,"hexcode":"1F1F3-1F1E8","order":4074,"shortcodes":["flag_nc"],"tags":["NC","flag"],"unicode":"🇳🇨"},{"annotation":"flag: Niger","group":9,"hexcode":"1F1F3-1F1EA","order":4075,"shortcodes":["flag_ne"],"tags":["NE","flag"],"unicode":"🇳🇪"},{"annotation":"flag: Norfolk Island","group":9,"hexcode":"1F1F3-1F1EB","order":4076,"shortcodes":["flag_nf"],"tags":["NF","flag"],"unicode":"🇳🇫"},{"annotation":"flag: Nigeria","group":9,"hexcode":"1F1F3-1F1EC","order":4077,"shortcodes":["flag_ng"],"tags":["NG","flag"],"unicode":"🇳🇬"},{"annotation":"flag: Nicaragua","group":9,"hexcode":"1F1F3-1F1EE","order":4078,"shortcodes":["flag_ni"],"tags":["NI","flag"],"unicode":"🇳🇮"},{"annotation":"flag: Netherlands","group":9,"hexcode":"1F1F3-1F1F1","order":4079,"shortcodes":["flag_nl"],"tags":["NL","flag"],"unicode":"🇳🇱"},{"annotation":"flag: Norway","group":9,"hexcode":"1F1F3-1F1F4","order":4080,"shortcodes":["flag_no"],"tags":["NO","flag"],"unicode":"🇳🇴"},{"annotation":"flag: Nepal","group":9,"hexcode":"1F1F3-1F1F5","order":4081,"shortcodes":["flag_np"],"tags":["NP","flag"],"unicode":"🇳🇵"},{"annotation":"flag: Nauru","group":9,"hexcode":"1F1F3-1F1F7","order":4082,"shortcodes":["flag_nr"],"tags":["NR","flag"],"unicode":"🇳🇷"},{"annotation":"flag: Niue","group":9,"hexcode":"1F1F3-1F1FA","order":4083,"shortcodes":["flag_nu"],"tags":["NU","flag"],"unicode":"🇳🇺"},{"annotation":"flag: New Zealand","group":9,"hexcode":"1F1F3-1F1FF","order":4084,"shortcodes":["flag_nz"],"tags":["NZ","flag"],"unicode":"🇳🇿"},{"annotation":"flag: Oman","group":9,"hexcode":"1F1F4-1F1F2","order":4085,"shortcodes":["flag_om"],"tags":["OM","flag"],"unicode":"🇴🇲"},{"annotation":"flag: Panama","group":9,"hexcode":"1F1F5-1F1E6","order":4086,"shortcodes":["flag_pa"],"tags":["PA","flag"],"unicode":"🇵🇦"},{"annotation":"flag: Peru","group":9,"hexcode":"1F1F5-1F1EA","order":4087,"shortcodes":["flag_pe"],"tags":["PE","flag"],"unicode":"🇵🇪"},{"annotation":"flag: French Polynesia","group":9,"hexcode":"1F1F5-1F1EB","order":4088,"shortcodes":["flag_pf"],"tags":["PF","flag"],"unicode":"🇵🇫"},{"annotation":"flag: Papua New Guinea","group":9,"hexcode":"1F1F5-1F1EC","order":4089,"shortcodes":["flag_pg"],"tags":["PG","flag"],"unicode":"🇵🇬"},{"annotation":"flag: Philippines","group":9,"hexcode":"1F1F5-1F1ED","order":4090,"shortcodes":["flag_ph"],"tags":["PH","flag"],"unicode":"🇵🇭"},{"annotation":"flag: Pakistan","group":9,"hexcode":"1F1F5-1F1F0","order":4091,"shortcodes":["flag_pk"],"tags":["PK","flag"],"unicode":"🇵🇰"},{"annotation":"flag: Poland","group":9,"hexcode":"1F1F5-1F1F1","order":4092,"shortcodes":["flag_pl"],"tags":["PL","flag"],"unicode":"🇵🇱"},{"annotation":"flag: St. Pierre & Miquelon","group":9,"hexcode":"1F1F5-1F1F2","order":4093,"shortcodes":["flag_pm"],"tags":["PM","flag"],"unicode":"🇵🇲"},{"annotation":"flag: Pitcairn Islands","group":9,"hexcode":"1F1F5-1F1F3","order":4094,"shortcodes":["flag_pn"],"tags":["PN","flag"],"unicode":"🇵🇳"},{"annotation":"flag: Puerto Rico","group":9,"hexcode":"1F1F5-1F1F7","order":4095,"shortcodes":["flag_pr"],"tags":["PR","flag"],"unicode":"🇵🇷"},{"annotation":"flag: Palestinian Territories","group":9,"hexcode":"1F1F5-1F1F8","order":4096,"shortcodes":["flag_ps"],"tags":["PS","flag"],"unicode":"🇵🇸"},{"annotation":"flag: Portugal","group":9,"hexcode":"1F1F5-1F1F9","order":4097,"shortcodes":["flag_pt"],"tags":["PT","flag"],"unicode":"🇵🇹"},{"annotation":"flag: Palau","group":9,"hexcode":"1F1F5-1F1FC","order":4098,"shortcodes":["flag_pw"],"tags":["PW","flag"],"unicode":"🇵🇼"},{"annotation":"flag: Paraguay","group":9,"hexcode":"1F1F5-1F1FE","order":4099,"shortcodes":["flag_py"],"tags":["PY","flag"],"unicode":"🇵🇾"},{"annotation":"flag: Qatar","group":9,"hexcode":"1F1F6-1F1E6","order":4100,"shortcodes":["flag_qa"],"tags":["QA","flag"],"unicode":"🇶🇦"},{"annotation":"flag: Réunion","group":9,"hexcode":"1F1F7-1F1EA","order":4101,"shortcodes":["flag_re"],"tags":["RE","flag"],"unicode":"🇷🇪"},{"annotation":"flag: Romania","group":9,"hexcode":"1F1F7-1F1F4","order":4102,"shortcodes":["flag_ro"],"tags":["RO","flag"],"unicode":"🇷🇴"},{"annotation":"flag: Serbia","group":9,"hexcode":"1F1F7-1F1F8","order":4103,"shortcodes":["flag_rs"],"tags":["RS","flag"],"unicode":"🇷🇸"},{"annotation":"flag: Russia","group":9,"hexcode":"1F1F7-1F1FA","order":4104,"shortcodes":["flag_ru"],"tags":["RU","flag"],"unicode":"🇷🇺"},{"annotation":"flag: Rwanda","group":9,"hexcode":"1F1F7-1F1FC","order":4105,"shortcodes":["flag_rw"],"tags":["RW","flag"],"unicode":"🇷🇼"},{"annotation":"flag: Saudi Arabia","group":9,"hexcode":"1F1F8-1F1E6","order":4106,"shortcodes":["flag_sa"],"tags":["SA","flag"],"unicode":"🇸🇦"},{"annotation":"flag: Solomon Islands","group":9,"hexcode":"1F1F8-1F1E7","order":4107,"shortcodes":["flag_sb"],"tags":["SB","flag"],"unicode":"🇸🇧"},{"annotation":"flag: Seychelles","group":9,"hexcode":"1F1F8-1F1E8","order":4108,"shortcodes":["flag_sc"],"tags":["SC","flag"],"unicode":"🇸🇨"},{"annotation":"flag: Sudan","group":9,"hexcode":"1F1F8-1F1E9","order":4109,"shortcodes":["flag_sd"],"tags":["SD","flag"],"unicode":"🇸🇩"},{"annotation":"flag: Sweden","group":9,"hexcode":"1F1F8-1F1EA","order":4110,"shortcodes":["flag_se"],"tags":["SE","flag"],"unicode":"🇸🇪"},{"annotation":"flag: Singapore","group":9,"hexcode":"1F1F8-1F1EC","order":4111,"shortcodes":["flag_sg"],"tags":["SG","flag"],"unicode":"🇸🇬"},{"annotation":"flag: St. Helena","group":9,"hexcode":"1F1F8-1F1ED","order":4112,"shortcodes":["flag_sh"],"tags":["SH","flag"],"unicode":"🇸🇭"},{"annotation":"flag: Slovenia","group":9,"hexcode":"1F1F8-1F1EE","order":4113,"shortcodes":["flag_si"],"tags":["SI","flag"],"unicode":"🇸🇮"},{"annotation":"flag: Svalbard & Jan Mayen","group":9,"hexcode":"1F1F8-1F1EF","order":4114,"shortcodes":["flag_sj"],"tags":["SJ","flag"],"unicode":"🇸🇯"},{"annotation":"flag: Slovakia","group":9,"hexcode":"1F1F8-1F1F0","order":4115,"shortcodes":["flag_sk"],"tags":["SK","flag"],"unicode":"🇸🇰"},{"annotation":"flag: Sierra Leone","group":9,"hexcode":"1F1F8-1F1F1","order":4116,"shortcodes":["flag_sl"],"tags":["SL","flag"],"unicode":"🇸🇱"},{"annotation":"flag: San Marino","group":9,"hexcode":"1F1F8-1F1F2","order":4117,"shortcodes":["flag_sm"],"tags":["SM","flag"],"unicode":"🇸🇲"},{"annotation":"flag: Senegal","group":9,"hexcode":"1F1F8-1F1F3","order":4118,"shortcodes":["flag_sn"],"tags":["SN","flag"],"unicode":"🇸🇳"},{"annotation":"flag: Somalia","group":9,"hexcode":"1F1F8-1F1F4","order":4119,"shortcodes":["flag_so"],"tags":["SO","flag"],"unicode":"🇸🇴"},{"annotation":"flag: Suriname","group":9,"hexcode":"1F1F8-1F1F7","order":4120,"shortcodes":["flag_sr"],"tags":["SR","flag"],"unicode":"🇸🇷"},{"annotation":"flag: South Sudan","group":9,"hexcode":"1F1F8-1F1F8","order":4121,"shortcodes":["flag_ss"],"tags":["SS","flag"],"unicode":"🇸🇸"},{"annotation":"flag: São Tomé & Príncipe","group":9,"hexcode":"1F1F8-1F1F9","order":4122,"shortcodes":["flag_st"],"tags":["ST","flag"],"unicode":"🇸🇹"},{"annotation":"flag: El Salvador","group":9,"hexcode":"1F1F8-1F1FB","order":4123,"shortcodes":["flag_sv"],"tags":["SV","flag"],"unicode":"🇸🇻"},{"annotation":"flag: Sint Maarten","group":9,"hexcode":"1F1F8-1F1FD","order":4124,"shortcodes":["flag_sx"],"tags":["SX","flag"],"unicode":"🇸🇽"},{"annotation":"flag: Syria","group":9,"hexcode":"1F1F8-1F1FE","order":4125,"shortcodes":["flag_sy"],"tags":["SY","flag"],"unicode":"🇸🇾"},{"annotation":"flag: Eswatini","group":9,"hexcode":"1F1F8-1F1FF","order":4126,"shortcodes":["flag_sz"],"tags":["SZ","flag"],"unicode":"🇸🇿"},{"annotation":"flag: Tristan da Cunha","group":9,"hexcode":"1F1F9-1F1E6","order":4127,"shortcodes":["flag_ta"],"tags":["TA","flag"],"unicode":"🇹🇦"},{"annotation":"flag: Turks & Caicos Islands","group":9,"hexcode":"1F1F9-1F1E8","order":4128,"shortcodes":["flag_tc"],"tags":["TC","flag"],"unicode":"🇹🇨"},{"annotation":"flag: Chad","group":9,"hexcode":"1F1F9-1F1E9","order":4129,"shortcodes":["flag_td"],"tags":["TD","flag"],"unicode":"🇹🇩"},{"annotation":"flag: French Southern Territories","group":9,"hexcode":"1F1F9-1F1EB","order":4130,"shortcodes":["flag_tf"],"tags":["TF","flag"],"unicode":"🇹🇫"},{"annotation":"flag: Togo","group":9,"hexcode":"1F1F9-1F1EC","order":4131,"shortcodes":["flag_tg"],"tags":["TG","flag"],"unicode":"🇹🇬"},{"annotation":"flag: Thailand","group":9,"hexcode":"1F1F9-1F1ED","order":4132,"shortcodes":["flag_th"],"tags":["TH","flag"],"unicode":"🇹🇭"},{"annotation":"flag: Tajikistan","group":9,"hexcode":"1F1F9-1F1EF","order":4133,"shortcodes":["flag_tj"],"tags":["TJ","flag"],"unicode":"🇹🇯"},{"annotation":"flag: Tokelau","group":9,"hexcode":"1F1F9-1F1F0","order":4134,"shortcodes":["flag_tk"],"tags":["TK","flag"],"unicode":"🇹🇰"},{"annotation":"flag: Timor-Leste","group":9,"hexcode":"1F1F9-1F1F1","order":4135,"shortcodes":["flag_tl"],"tags":["TL","flag"],"unicode":"🇹🇱"},{"annotation":"flag: Turkmenistan","group":9,"hexcode":"1F1F9-1F1F2","order":4136,"shortcodes":["flag_tm"],"tags":["TM","flag"],"unicode":"🇹🇲"},{"annotation":"flag: Tunisia","group":9,"hexcode":"1F1F9-1F1F3","order":4137,"shortcodes":["flag_tn"],"tags":["TN","flag"],"unicode":"🇹🇳"},{"annotation":"flag: Tonga","group":9,"hexcode":"1F1F9-1F1F4","order":4138,"shortcodes":["flag_to"],"tags":["TO","flag"],"unicode":"🇹🇴"},{"annotation":"flag: Turkey","group":9,"hexcode":"1F1F9-1F1F7","order":4139,"shortcodes":["flag_tr"],"tags":["TR","flag"],"unicode":"🇹🇷"},{"annotation":"flag: Trinidad & Tobago","group":9,"hexcode":"1F1F9-1F1F9","order":4140,"shortcodes":["flag_tt"],"tags":["TT","flag"],"unicode":"🇹🇹"},{"annotation":"flag: Tuvalu","group":9,"hexcode":"1F1F9-1F1FB","order":4141,"shortcodes":["flag_tv"],"tags":["TV","flag"],"unicode":"🇹🇻"},{"annotation":"flag: Taiwan","group":9,"hexcode":"1F1F9-1F1FC","order":4142,"shortcodes":["flag_tw"],"tags":["TW","flag"],"unicode":"🇹🇼"},{"annotation":"flag: Tanzania","group":9,"hexcode":"1F1F9-1F1FF","order":4143,"shortcodes":["flag_tz"],"tags":["TZ","flag"],"unicode":"🇹🇿"},{"annotation":"flag: Ukraine","group":9,"hexcode":"1F1FA-1F1E6","order":4144,"shortcodes":["flag_ua"],"tags":["UA","flag"],"unicode":"🇺🇦"},{"annotation":"flag: Uganda","group":9,"hexcode":"1F1FA-1F1EC","order":4145,"shortcodes":["flag_ug"],"tags":["UG","flag"],"unicode":"🇺🇬"},{"annotation":"flag: U.S. Outlying Islands","group":9,"hexcode":"1F1FA-1F1F2","order":4146,"shortcodes":["flag_um"],"tags":["UM","flag"],"unicode":"🇺🇲"},{"annotation":"flag: United Nations","group":9,"hexcode":"1F1FA-1F1F3","order":4147,"shortcodes":["flag_un"],"tags":["UN","flag"],"unicode":"🇺🇳"},{"annotation":"flag: United States","group":9,"hexcode":"1F1FA-1F1F8","order":4148,"shortcodes":["flag_us","usa"],"tags":["US","flag"],"unicode":"🇺🇸"},{"annotation":"flag: Uruguay","group":9,"hexcode":"1F1FA-1F1FE","order":4149,"shortcodes":["flag_uy"],"tags":["UY","flag"],"unicode":"🇺🇾"},{"annotation":"flag: Uzbekistan","group":9,"hexcode":"1F1FA-1F1FF","order":4150,"shortcodes":["flag_uz"],"tags":["UZ","flag"],"unicode":"🇺🇿"},{"annotation":"flag: Vatican City","group":9,"hexcode":"1F1FB-1F1E6","order":4151,"shortcodes":["flag_va"],"tags":["VA","flag"],"unicode":"🇻🇦"},{"annotation":"flag: St. Vincent & Grenadines","group":9,"hexcode":"1F1FB-1F1E8","order":4152,"shortcodes":["flag_vc"],"tags":["VC","flag"],"unicode":"🇻🇨"},{"annotation":"flag: Venezuela","group":9,"hexcode":"1F1FB-1F1EA","order":4153,"shortcodes":["flag_ve"],"tags":["VE","flag"],"unicode":"🇻🇪"},{"annotation":"flag: British Virgin Islands","group":9,"hexcode":"1F1FB-1F1EC","order":4154,"shortcodes":["flag_vg"],"tags":["VG","flag"],"unicode":"🇻🇬"},{"annotation":"flag: U.S. Virgin Islands","group":9,"hexcode":"1F1FB-1F1EE","order":4155,"shortcodes":["flag_vi"],"tags":["VI","flag"],"unicode":"🇻🇮"},{"annotation":"flag: Vietnam","group":9,"hexcode":"1F1FB-1F1F3","order":4156,"shortcodes":["flag_vn"],"tags":["VN","flag"],"unicode":"🇻🇳"},{"annotation":"flag: Vanuatu","group":9,"hexcode":"1F1FB-1F1FA","order":4157,"shortcodes":["flag_vu"],"tags":["VU","flag"],"unicode":"🇻🇺"},{"annotation":"flag: Wallis & Futuna","group":9,"hexcode":"1F1FC-1F1EB","order":4158,"shortcodes":["flag_wf"],"tags":["WF","flag"],"unicode":"🇼🇫"},{"annotation":"flag: Samoa","group":9,"hexcode":"1F1FC-1F1F8","order":4159,"shortcodes":["flag_ws"],"tags":["WS","flag"],"unicode":"🇼🇸"},{"annotation":"flag: Kosovo","group":9,"hexcode":"1F1FD-1F1F0","order":4160,"shortcodes":["flag_xk"],"tags":["XK","flag"],"unicode":"🇽🇰"},{"annotation":"flag: Yemen","group":9,"hexcode":"1F1FE-1F1EA","order":4161,"shortcodes":["flag_ye"],"tags":["YE","flag"],"unicode":"🇾🇪"},{"annotation":"flag: Mayotte","group":9,"hexcode":"1F1FE-1F1F9","order":4162,"shortcodes":["flag_yt"],"tags":["YT","flag"],"unicode":"🇾🇹"},{"annotation":"flag: South Africa","group":9,"hexcode":"1F1FF-1F1E6","order":4163,"shortcodes":["flag_za"],"tags":["ZA","flag"],"unicode":"🇿🇦"},{"annotation":"flag: Zambia","group":9,"hexcode":"1F1FF-1F1F2","order":4164,"shortcodes":["flag_zm"],"tags":["ZM","flag"],"unicode":"🇿🇲"},{"annotation":"flag: Zimbabwe","group":9,"hexcode":"1F1FF-1F1FC","order":4165,"shortcodes":["flag_zw"],"tags":["ZW","flag"],"unicode":"🇿🇼"},{"annotation":"flag: England","group":9,"hexcode":"1F3F4-E0067-E0062-E0065-E006E-E0067-E007F","order":4166,"shortcodes":["flag_gbeng","england"],"tags":["flag","gbeng"],"unicode":"🏴"},{"annotation":"flag: Scotland","group":9,"hexcode":"1F3F4-E0067-E0062-E0073-E0063-E0074-E007F","order":4167,"shortcodes":["flag_gbsct","scotland"],"tags":["flag","gbsct"],"unicode":"🏴"},{"annotation":"flag: Wales","group":9,"hexcode":"1F3F4-E0067-E0062-E0077-E006C-E0073-E007F","order":4168,"shortcodes":["flag_gbwls","wales"],"tags":["flag","gbwls"],"unicode":"🏴"}]')},function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=n(580);t.Parser=i.Parser;var a=n(582);t.DomHandler=a.DomHandler,t.DefaultHandler=a.DomHandler,t.parseDOM=function(e,t){var n=new a.DomHandler(void 0,t);return new i.Parser(n,t).end(e),n.dom},t.createDomStream=function(e,t,n){var o=new a.DomHandler(e,t,n);return new i.Parser(o,t)};var s=n(581);t.Tokenizer=s.default;var c=r(n(321));t.ElementType=c,t.EVENTS={attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0},o(n(584)),o(n(982)),o(n(983));var l=r(n(242));t.DomUtils=l;var d=n(584);t.RssHandler=d.FeedHandler},,function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=function(e,t){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,(function(e){for(var t,o=[],r=1;r<arguments.length;r++)o[r-1]=arguments[r];n.events.push([e].concat(o)),n._cbs[e]&&(t=n._cbs)[e].apply(t,o)}))||this;return n._cbs=t,n.events=[],n}return r(t,e),t.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},t.prototype.restart=function(){var e;this._cbs.onreset&&this._cbs.onreset();for(var t=0;t<this.events.length;t++){var n=this.events[t],o=n[0],r=n.slice(1);this._cbs[o]&&(e=this._cbs)[o].apply(e,r)}},t}(i(n(984)).default);t.CollectingHandler=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this._func=e}return e.prototype.onattribute=function(e,t){this._func("onattribute",e,t)},e.prototype.oncdatastart=function(){this._func("oncdatastart")},e.prototype.oncdataend=function(){this._func("oncdataend")},e.prototype.ontext=function(e){this._func("ontext",e)},e.prototype.onprocessinginstruction=function(e,t){this._func("onprocessinginstruction",e,t)},e.prototype.oncomment=function(e){this._func("oncomment",e)},e.prototype.oncommentend=function(){this._func("oncommentend")},e.prototype.onclosetag=function(e){this._func("onclosetag",e)},e.prototype.onopentag=function(e,t){this._func("onopentag",e,t)},e.prototype.onopentagname=function(e){this._func("onopentagname",e)},e.prototype.onerror=function(e){this._func("onerror",e)},e.prototype.onend=function(){this._func("onend")},e.prototype.onparserinit=function(e){this._func("onparserinit",e)},e.prototype.onreset=function(){this._func("onreset")},e}();t.default=o},function(e,t,n){"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},function(e,t){t.klona=function e(t){if("object"!=typeof t)return t;var n,o,r=Object.prototype.toString.call(t);if("[object Object]"===r){if(t.constructor!==Object&&"function"==typeof t.constructor)for(n in o=new t.constructor,t)o.hasOwnProperty(n)&&o[n]!==t[n]&&(o[n]=e(t[n]));else for(n in o={},t)"__proto__"===n?Object.defineProperty(o,n,{value:e(t[n]),configurable:!0,enumerable:!0,writable:!0}):o[n]=e(t[n]);return o}if("[object Array]"===r){for(n=t.length,o=Array(n);n--;)o[n]=e(t[n]);return o}return"[object Set]"===r?(o=new Set,t.forEach((function(t){o.add(e(t))})),o):"[object Map]"===r?(o=new Map,t.forEach((function(t,n){o.set(e(n),e(t))})),o):"[object Date]"===r?new Date(+t):"[object RegExp]"===r?((o=new RegExp(t.source,t.flags)).lastIndex=t.lastIndex,o):"[object DataView]"===r?new t.constructor(e(t.buffer)):"[object ArrayBuffer]"===r?t.slice(0):"Array]"===r.slice(-6)?new t.constructor(t):t}},function(e,t,n){"use strict";function o(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=function(e){var t,n;return!1!==o(e)&&(void 0===(t=e.constructor)||!1!==o(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}},function(e,t,n){"use strict";var o=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?d((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return i(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function c(e,t){try{return t in e}catch(e){return!1}}function l(e,t,n){var o={};return n.isMergeableObject(e)&&s(e).forEach((function(t){o[t]=i(e[t],n)})),s(t).forEach((function(r){(function(e,t){return c(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,r)||(c(e,r)&&n.isMergeableObject(t[r])?o[r]=function(e,t){if(!t.customMerge)return d;var n=t.customMerge(e);return"function"==typeof n?n:d}(r,n)(e[r],t[r],n):o[r]=i(t[r],n))})),o}function d(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||o,n.cloneUnlessOtherwiseSpecified=i;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):l(e,t,n):i(t,n)}d.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return d(e,n,t)}),{})};var u=d;e.exports=u},function(e,t,n){"use strict";const o=/^-?\d+$/;t.parse=e=>{return(t=e.split(/,\s+/).map(e=>{const t={};return e.trim().split(/\s+/).forEach((e,n)=>{if(0===n)return void(t.url=e);const r=e.slice(0,-1),i=e[e.length-1],a=Number.parseInt(r,10),s=Number.parseFloat(r);if("w"===i&&o.test(r)){if(a<=0)throw new Error("Width descriptor must be greater than zero");t.width=a}else{if("x"!==i||Number.isNaN(s))throw new Error("Invalid srcset descriptor: "+e);if(s<=0)throw new Error("Pixel density descriptor must be greater than zero");t.density=s}if(t.width&&t.density)throw new Error("Image candidate string cannot have both width descriptor and pixel density descriptor")}),t})).sort().filter((e,n)=>JSON.stringify(e)!==JSON.stringify(t[n-1]));var t},t.stringify=e=>[...new Set(e.map(e=>{if(!e.url)throw new Error("URL is required");const t=[e.url];return e.width&&t.push(e.width+"w"),e.density&&t.push(e.density+"x"),t.join(" ")}))].join(", ")},function(e,t,n){"use strict";(function(t){let o=n(417),r=n(326),i=n(587),a=n(279),s=n(1004),c=n(419),l=n(1005),d=n(593),u=n(328),h=n(421),p=n(592),m=n(423),g=n(594),f=n(595),_=n(422),b=n(280),v=n(327);function y(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new s(e)}y.plugin=function(e,n){function o(...t){let o=n(...t);return o.postcssPlugin=e,o.postcssVersion=(new s).version,o}let r;return console&&console.warn&&(console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),t.env.LANG&&t.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226")),Object.defineProperty(o,"postcss",{get:()=>(r||(r=o()),r)}),o.process=function(e,t,n){return y([o(n)]).process(e,t)},o},y.stringify=c,y.parse=g,y.fromJSON=l,y.list=f,y.comment=e=>new u(e),y.atRule=e=>new h(e),y.decl=e=>new r(e),y.rule=e=>new _(e),y.root=e=>new b(e),y.CssSyntaxError=o,y.Declaration=r,y.Container=a,y.Comment=u,y.Warning=d,y.AtRule=h,y.Result=p,y.Input=m,y.Rule=_,y.Root=b,y.Node=v,i.registerPostcss(y),e.exports=y,y.default=y}).call(this,n(227))},,function(e,t,n){"use strict";(function(t){let{dirname:o,resolve:r,relative:i,sep:a}=n(420),{pathToFileURL:s}=n(121),c=n(588);e.exports=class{constructor(e,t,n){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}previous(){return this.previousMaps||(this.previousMaps=[],this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}})),this.previousMaps}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}clearAnnotation(){if(!1===this.mapOpts.annotation)return;let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)}setSourcesContent(){let e={};this.root.walk(t=>{if(t.source){let n=t.source.input.from;n&&!e[n]&&(e[n]=!0,this.map.setSourceContent(this.toUrl(this.path(n)),t.source.input.css))}})}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),r=e.root||o(e.file);!1===this.mapOpts.sourcesContent?(t=new c.SourceMapConsumer(e.text),t.sourcesContent&&(t.sourcesContent=t.sourcesContent.map(()=>null))):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(r)))}}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}toBase64(e){return t?t.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}generateMap(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}path(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;if(this.mapOpts.absolute)return e;let t=this.opts.to?o(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=o(r(t,this.mapOpts.annotation))),e=i(t,e)}toUrl(e){return"\\"===a&&(e=e.replace(/\\/g,"/")),encodeURI(e).replace(/[#?]/g,encodeURIComponent)}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.mapOpts.absolute?s(e.source.input.from).toString():this.toUrl(this.path(e.source.input.from))}generateString(){this.css="",this.map=new c.SourceMapGenerator({file:this.outputFile()});let e,t,n=1,o=1;this.stringify(this.root,(r,i,a)=>{if(this.css+=r,i&&"end"!==a&&(i.source&&i.source.start?this.map.addMapping({source:this.sourcePath(i),generated:{line:n,column:o-1},original:{line:i.source.start.line,column:i.source.start.column-1}}):this.map.addMapping({source:"<no source>",original:{line:1,column:0},generated:{line:n,column:o-1}})),e=r.match(/\n/g),e?(n+=e.length,t=r.lastIndexOf("\n"),o=r.length-t):o+=r.length,i&&"start"!==a){let e=i.parent||{raws:{}};("decl"!==i.type||i!==e.last||e.raws.semicolon)&&(i.source&&i.source.end?this.map.addMapping({source:this.sourcePath(i),generated:{line:n,column:o-2},original:{line:i.source.end.line,column:i.source.end.column-1}}):this.map.addMapping({source:"<no source>",original:{line:1,column:0},generated:{line:n,column:o-1}}))}})}generate(){if(this.clearAnnotation(),this.isMap())return this.generateMap();let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}}).call(this,n(32).Buffer)},function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<n.length)return n[e];throw new TypeError("Must be between 0 and 63: "+e)},t.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},function(e,t,n){var o=n(278);function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},r.prototype.add=function(e){var t,n,r,i,a,s;t=this._last,n=e,r=t.generatedLine,i=n.generatedLine,a=t.generatedColumn,s=n.generatedColumn,i>r||i==r&&s>=a||o.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(o.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=r},function(e,t,n){var o=n(278),r=n(996),i=n(591).ArraySet,a=n(590),s=n(997).quickSort;function c(e,t){var n=e;return"string"==typeof e&&(n=o.parseSourceMapInput(e)),null!=n.sections?new u(n,t):new l(n,t)}function l(e,t){var n=e;"string"==typeof e&&(n=o.parseSourceMapInput(e));var r=o.getArg(n,"version"),a=o.getArg(n,"sources"),s=o.getArg(n,"names",[]),c=o.getArg(n,"sourceRoot",null),l=o.getArg(n,"sourcesContent",null),d=o.getArg(n,"mappings"),u=o.getArg(n,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);c&&(c=o.normalize(c)),a=a.map(String).map(o.normalize).map((function(e){return c&&o.isAbsolute(c)&&o.isAbsolute(e)?o.relative(c,e):e})),this._names=i.fromArray(s.map(String),!0),this._sources=i.fromArray(a,!0),this._absoluteSources=this._sources.toArray().map((function(e){return o.computeSourceURL(c,e,t)})),this.sourceRoot=c,this.sourcesContent=l,this._mappings=d,this._sourceMapURL=t,this.file=u}function d(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function u(e,t){var n=e;"string"==typeof e&&(n=o.parseSourceMapInput(e));var r=o.getArg(n,"version"),a=o.getArg(n,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new i,this._names=new i;var s={line:-1,column:0};this._sections=a.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var n=o.getArg(e,"offset"),r=o.getArg(n,"line"),i=o.getArg(n,"column");if(r<s.line||r===s.line&&i<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=n,{generatedOffset:{generatedLine:r+1,generatedColumn:i+1},consumer:new c(o.getArg(e,"map"),t)}}))}c.fromSourceMap=function(e,t){return l.fromSourceMap(e,t)},c.prototype._version=3,c.prototype.__generatedMappings=null,Object.defineProperty(c.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),c.prototype.__originalMappings=null,Object.defineProperty(c.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),c.prototype._charIsMappingSeparator=function(e,t){var n=e.charAt(t);return";"===n||","===n},c.prototype._parseMappings=function(e,t){throw new Error("Subclasses must implement _parseMappings")},c.GENERATED_ORDER=1,c.ORIGINAL_ORDER=2,c.GREATEST_LOWER_BOUND=1,c.LEAST_UPPER_BOUND=2,c.prototype.eachMapping=function(e,t,n){var r,i=t||null;switch(n||c.GENERATED_ORDER){case c.GENERATED_ORDER:r=this._generatedMappings;break;case c.ORIGINAL_ORDER:r=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;r.map((function(e){var t=null===e.source?null:this._sources.at(e.source);return{source:t=o.computeSourceURL(a,t,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}}),this).forEach(e,i)},c.prototype.allGeneratedPositionsFor=function(e){var t=o.getArg(e,"line"),n={source:o.getArg(e,"source"),originalLine:t,originalColumn:o.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",o.compareByOriginalPositions,r.LEAST_UPPER_BOUND);if(a>=0){var s=this._originalMappings[a];if(void 0===e.column)for(var c=s.originalLine;s&&s.originalLine===c;)i.push({line:o.getArg(s,"generatedLine",null),column:o.getArg(s,"generatedColumn",null),lastColumn:o.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a];else for(var l=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==l;)i.push({line:o.getArg(s,"generatedLine",null),column:o.getArg(s,"generatedColumn",null),lastColumn:o.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a]}return i},t.SourceMapConsumer=c,l.prototype=Object.create(c.prototype),l.prototype.consumer=c,l.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=o.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t<this._absoluteSources.length;++t)if(this._absoluteSources[t]==e)return t;return-1},l.fromSourceMap=function(e,t){var n=Object.create(l.prototype),r=n._names=i.fromArray(e._names.toArray(),!0),a=n._sources=i.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=t,n._absoluteSources=n._sources.toArray().map((function(e){return o.computeSourceURL(n.sourceRoot,e,t)}));for(var c=e._mappings.toArray().slice(),u=n.__generatedMappings=[],h=n.__originalMappings=[],p=0,m=c.length;p<m;p++){var g=c[p],f=new d;f.generatedLine=g.generatedLine,f.generatedColumn=g.generatedColumn,g.source&&(f.source=a.indexOf(g.source),f.originalLine=g.originalLine,f.originalColumn=g.originalColumn,g.name&&(f.name=r.indexOf(g.name)),h.push(f)),u.push(f)}return s(n.__originalMappings,o.compareByOriginalPositions),n},l.prototype._version=3,Object.defineProperty(l.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),l.prototype._parseMappings=function(e,t){for(var n,r,i,c,l,u=1,h=0,p=0,m=0,g=0,f=0,_=e.length,b=0,v={},y={},E=[],S=[];b<_;)if(";"===e.charAt(b))u++,b++,h=0;else if(","===e.charAt(b))b++;else{for((n=new d).generatedLine=u,c=b;c<_&&!this._charIsMappingSeparator(e,c);c++);if(i=v[r=e.slice(b,c)])b+=r.length;else{for(i=[];b<c;)a.decode(e,b,y),l=y.value,b=y.rest,i.push(l);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");v[r]=i}n.generatedColumn=h+i[0],h=n.generatedColumn,i.length>1&&(n.source=g+i[1],g+=i[1],n.originalLine=p+i[2],p=n.originalLine,n.originalLine+=1,n.originalColumn=m+i[3],m=n.originalColumn,i.length>4&&(n.name=f+i[4],f+=i[4])),S.push(n),"number"==typeof n.originalLine&&E.push(n)}s(S,o.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,s(E,o.compareByOriginalPositions),this.__originalMappings=E},l.prototype._findMapping=function(e,t,n,o,i,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[o]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[o]);return r.search(e,t,i,a)},l.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(t.generatedLine===n.generatedLine){t.lastGeneratedColumn=n.generatedColumn-1;continue}}t.lastGeneratedColumn=1/0}},l.prototype.originalPositionFor=function(e){var t={generatedLine:o.getArg(e,"line"),generatedColumn:o.getArg(e,"column")},n=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",o.compareByGeneratedPositionsDeflated,o.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(n>=0){var r=this._generatedMappings[n];if(r.generatedLine===t.generatedLine){var i=o.getArg(r,"source",null);null!==i&&(i=this._sources.at(i),i=o.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=o.getArg(r,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:o.getArg(r,"originalLine",null),column:o.getArg(r,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},l.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var r,i=e;if(null!=this.sourceRoot&&(i=o.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(r=o.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!r.path||"/"==r.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(e){var t=o.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:o.getArg(e,"line"),originalColumn:o.getArg(e,"column")},r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",o.compareByOriginalPositions,o.getArg(e,"bias",c.GREATEST_LOWER_BOUND));if(r>=0){var i=this._originalMappings[r];if(i.source===n.source)return{line:o.getArg(i,"generatedLine",null),column:o.getArg(i,"generatedColumn",null),lastColumn:o.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=l,u.prototype=Object.create(c.prototype),u.prototype.constructor=c,u.prototype._version=3,Object.defineProperty(u.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}}),u.prototype.originalPositionFor=function(e){var t={generatedLine:o.getArg(e,"line"),generatedColumn:o.getArg(e,"column")},n=r.search(t,this._sections,(function(e,t){var n=e.generatedLine-t.generatedOffset.generatedLine;return n||e.generatedColumn-t.generatedOffset.generatedColumn})),i=this._sections[n];return i?i.consumer.originalPositionFor({line:t.generatedLine-(i.generatedOffset.generatedLine-1),column:t.generatedColumn-(i.generatedOffset.generatedLine===t.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},u.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(e){return e.consumer.hasContentsOfAllSources()}))},u.prototype.sourceContentFor=function(e,t){for(var n=0;n<this._sections.length;n++){var o=this._sections[n].consumer.sourceContentFor(e,!0);if(o)return o}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},u.prototype.generatedPositionFor=function(e){for(var t=0;t<this._sections.length;t++){var n=this._sections[t];if(-1!==n.consumer._findSourceIndex(o.getArg(e,"source"))){var r=n.consumer.generatedPositionFor(e);if(r)return{line:r.line+(n.generatedOffset.generatedLine-1),column:r.column+(n.generatedOffset.generatedLine===r.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},u.prototype._parseMappings=function(e,t){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var r=this._sections[n],i=r.consumer._generatedMappings,a=0;a<i.length;a++){var c=i[a],l=r.consumer._sources.at(c.source);l=o.computeSourceURL(r.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var d=null;c.name&&(d=r.consumer._names.at(c.name),this._names.add(d),d=this._names.indexOf(d));var u={source:l,generatedLine:c.generatedLine+(r.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(r.generatedOffset.generatedLine===c.generatedLine?r.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:d};this.__generatedMappings.push(u),"number"==typeof u.originalLine&&this.__originalMappings.push(u)}s(this.__generatedMappings,o.compareByGeneratedPositionsDeflated),s(this.__originalMappings,o.compareByOriginalPositions)},t.IndexedSourceMapConsumer=u},function(e,t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,o,r){if(0===n.length)return-1;var i=function e(n,o,r,i,a,s){var c=Math.floor((o-n)/2)+n,l=a(r,i[c],!0);return 0===l?c:l>0?o-c>1?e(c,o,r,i,a,s):s==t.LEAST_UPPER_BOUND?o<i.length?o:-1:c:c-n>1?e(n,c,r,i,a,s):s==t.LEAST_UPPER_BOUND?c:n<0?-1:n}(-1,n.length,e,n,o,r||t.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===o(n[i],n[i-1],!0);)--i;return i}},function(e,t){function n(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function o(e,t,r,i){if(r<i){var a=r-1;n(e,(d=r,u=i,Math.round(d+Math.random()*(u-d))),i);for(var s=e[i],c=r;c<i;c++)t(e[c],s)<=0&&n(e,a+=1,c);n(e,a+1,c);var l=a+1;o(e,t,r,l-1),o(e,t,l+1,i)}var d,u}t.quickSort=function(e,t){o(e,t,0,e.length-1)}},function(e,t,n){var o=n(589).SourceMapGenerator,r=n(278),i=/(\r?\n)/,a="$$$isSourceNode$$$";function s(e,t,n,o,r){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==r?null:r,this[a]=!0,null!=o&&this.add(o)}s.fromStringWithSourceMap=function(e,t,n){var o=new s,a=e.split(i),c=0,l=function(){return e()+(e()||"");function e(){return c<a.length?a[c++]:void 0}},d=1,u=0,h=null;return t.eachMapping((function(e){if(null!==h){if(!(d<e.generatedLine)){var t=(n=a[c]||"").substr(0,e.generatedColumn-u);return a[c]=n.substr(e.generatedColumn-u),u=e.generatedColumn,p(h,t),void(h=e)}p(h,l()),d++,u=0}for(;d<e.generatedLine;)o.add(l()),d++;if(u<e.generatedColumn){var n=a[c]||"";o.add(n.substr(0,e.generatedColumn)),a[c]=n.substr(e.generatedColumn),u=e.generatedColumn}h=e}),this),c<a.length&&(h&&p(h,l()),o.add(a.splice(c).join(""))),t.sources.forEach((function(e){var i=t.sourceContentFor(e);null!=i&&(null!=n&&(e=r.join(n,e)),o.setSourceContent(e,i))})),o;function p(e,t){if(null===e||void 0===e.source)o.add(t);else{var i=n?r.join(n,e.source):e.source;o.add(new s(e.originalLine,e.originalColumn,i,t,e.name))}}},s.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},s.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,n=0,o=this.children.length;n<o;n++)(t=this.children[n])[a]?t.walk(e):""!==t&&e(t,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(e){var t,n,o=this.children.length;if(o>0){for(t=[],n=0;n<o-1;n++)t.push(this.children[n]),t.push(e);t.push(this.children[n]),this.children=t}return this},s.prototype.replaceRight=function(e,t){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,t):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,t):this.children.push("".replace(e,t)),this},s.prototype.setSourceContent=function(e,t){this.sourceContents[r.toSetString(e)]=t},s.prototype.walkSourceContents=function(e){for(var t=0,n=this.children.length;t<n;t++)this.children[t][a]&&this.children[t].walkSourceContents(e);var o=Object.keys(this.sourceContents);for(t=0,n=o.length;t<n;t++)e(r.fromSetString(o[t]),this.sourceContents[o[t]])},s.prototype.toString=function(){var e="";return this.walk((function(t){e+=t})),e},s.prototype.toStringWithSourceMap=function(e){var t={code:"",line:1,column:0},n=new o(e),r=!1,i=null,a=null,s=null,c=null;return this.walk((function(e,o){t.code+=e,null!==o.source&&null!==o.line&&null!==o.column?(i===o.source&&a===o.line&&s===o.column&&c===o.name||n.addMapping({source:o.source,original:{line:o.line,column:o.column},generated:{line:t.line,column:t.column},name:o.name}),i=o.source,a=o.line,s=o.column,c=o.name,r=!0):r&&(n.addMapping({generated:{line:t.line,column:t.column}}),i=null,r=!1);for(var l=0,d=e.length;l<d;l++)10===e.charCodeAt(l)?(t.line++,t.column=0,l+1===d?(i=null,r=!1):r&&n.addMapping({source:o.source,original:{line:o.line,column:o.column},generated:{line:t.line,column:t.column},name:o.name})):t.column++})),this.walkSourceContents((function(e,t){n.setSourceContent(e,t)})),{code:t.code,map:n}},t.SourceNode=s},function(e,t,n){"use strict";let o={};e.exports=function(e){o[e]||(o[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},function(e,t,n){"use strict";let o=n(326),r=n(1001),i=n(328),a=n(421),s=n(280),c=n(422);e.exports=class{constructor(e){this.input=e,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.customProperty=!1,this.createTokenizer(),this.root.source={input:e,start:{offset:0,line:1,column:1}}}createTokenizer(){this.tokenizer=r(this.input)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}comment(e){let t=new i;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]);let n=e[1].slice(2,-2);if(/^\s*$/.test(n))t.text="",t.raws.left=n,t.raws.right="";else{let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}emptyRule(e){let t=new c;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}other(e){let t=!1,n=null,o=!1,r=null,i=[],a=e[1].startsWith("--"),s=[],c=e;for(;c;){if(n=c[0],s.push(c),"("===n||"["===n)r||(r=c),i.push("("===n?")":"]");else if(a&&o&&"{"===n)r||(r=c),i.push("}");else if(0===i.length){if(";"===n){if(o)return void this.decl(s,a);break}if("{"===n)return void this.rule(s);if("}"===n){this.tokenizer.back(s.pop()),t=!0;break}":"===n&&(o=!0)}else n===i[i.length-1]&&(i.pop(),0===i.length&&(r=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(r),t&&o){for(;s.length&&(c=s[s.length-1][0],"space"===c||"comment"===c);)this.tokenizer.back(s.pop());this.decl(s,a)}else this.unknownWord(s)}rule(e){e.pop();let t=new c;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}decl(e,t){let n=new o;this.init(n,e[0][2]);let r,i=e[e.length-1];for(";"===i[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(i[3]||i[2]);"word"!==e[0][0];)1===e.length&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let t=e[0][0];if(":"===t||"space"===t||"comment"===t)break;n.prop+=e.shift()[1]}for(n.raws.between="";e.length;){if(r=e.shift(),":"===r[0]){n.raws.between+=r[1];break}"word"===r[0]&&/\w/.test(r[1])&&this.unknownWord([r]),n.raws.between+=r[1]}"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let a=this.spacesAndCommentsFromStart(e);this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(r=e[t],"!important"===r[1].toLowerCase()){n.important=!0;let o=this.stringFrom(e,t);o=this.spacesFromEnd(e)+o," !important"!==o&&(n.raws.important=o);break}if("important"===r[1].toLowerCase()){let o=e.slice(0),r="";for(let e=t;e>0;e--){let t=o[e][0];if(0===r.trim().indexOf("!")&&"space"!==t)break;r=o.pop()[1]+r}0===r.trim().indexOf("!")&&(n.important=!0,n.raws.important=r,e=o)}if("space"!==r[0]&&"comment"!==r[0])break}let s=e.some(e=>"space"!==e[0]&&"comment"!==e[0]);this.raw(n,"value",e),s?n.raws.between+=a:n.value=a+n.value,n.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}atrule(e){let t,n,o,r=new a;r.name=e[1].slice(1),""===r.name&&this.unnamedAtrule(r,e),this.init(r,e[2]);let i=!1,s=!1,c=[],l=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?l.push("("===t?")":"]"):"{"===t&&l.length>0?l.push("}"):t===l[l.length-1]&&l.pop(),0===l.length){if(";"===t){r.source.end=this.getPosition(e[2]),this.semicolon=!0;break}if("{"===t){s=!0;break}if("}"===t){if(c.length>0){for(o=c.length-1,n=c[o];n&&"space"===n[0];)n=c[--o];n&&(r.source.end=this.getPosition(n[3]||n[2]))}this.end(e);break}c.push(e)}else c.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(r.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(r,"params",c),i&&(e=c[c.length-1],r.source.end=this.getPosition(e[3]||e[2]),this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),s&&(r.nodes=[],this.current=r)}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&"rule"===e.type&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(e){let t=this.input.fromOffset(e);return{offset:e,line:t.line,column:t.col}}init(e,t){this.current.push(e),e.source={start:this.getPosition(t),input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}raw(e,t,n){let o,r,i,a,s=n.length,c="",l=!0,d=/^([#.|])?(\w)+/i;for(let t=0;t<s;t+=1)o=n[t],r=o[0],"comment"!==r||"rule"!==e.type?"comment"===r||"space"===r&&t===s-1?l=!1:c+=o[1]:(a=n[t-1],i=n[t+1],"space"!==a[0]&&"space"!==i[0]&&d.test(a[1])&&d.test(i[1])?c+=o[1]:l=!1);if(!l){let o=n.reduce((e,t)=>e+t[1],"");e.raws[t]={value:c,raw:o}}e[t]=c}spacesAndCommentsFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let o=t;o<e.length;o++)n+=e[o][1];return e.splice(t,e.length-t),n}colon(e){let t,n,o,r=0;for(let[i,a]of e.entries()){if(t=a,n=t[0],"("===n&&(r+=1),")"===n&&(r-=1),0===r&&":"===n){if(o){if("word"===o[0]&&"progid"===o[1])continue;return i}this.doubleColon(t)}o=t}return!1}unclosedBracket(e){throw this.input.error("Unclosed bracket",e[2])}unknownWord(e){throw this.input.error("Unknown word",e[0][2])}unexpectedClose(e){throw this.input.error("Unexpected }",e[2])}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}doubleColon(e){throw this.input.error("Double colon",e[2])}unnamedAtrule(e,t){throw this.input.error("At-rule without name",t[2])}precheckMissedSemicolon(){}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,o=0;for(let r=t-1;r>=0&&(n=e[r],"space"===n[0]||(o+=1,2!==o));r--);throw this.input.error("Missed semicolon",n[2])}}},function(e,t,n){"use strict";const o="'".charCodeAt(0),r='"'.charCodeAt(0),i="\\".charCodeAt(0),a="/".charCodeAt(0),s="\n".charCodeAt(0),c=" ".charCodeAt(0),l="\f".charCodeAt(0),d="\t".charCodeAt(0),u="\r".charCodeAt(0),h="[".charCodeAt(0),p="]".charCodeAt(0),m="(".charCodeAt(0),g=")".charCodeAt(0),f="{".charCodeAt(0),_="}".charCodeAt(0),b=";".charCodeAt(0),v="*".charCodeAt(0),y=":".charCodeAt(0),E="@".charCodeAt(0),S=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,C=/.[\n"'(/\\]/,T=/[\da-f]/i;e.exports=function(e,t={}){let n,x,O,k,R,D,I,A,N,F,M=e.css.valueOf(),P=t.ignoreErrors,L=M.length,j=0,U=[],B=[];function q(t){throw e.error("Unclosed "+t,j)}return{back:function(e){B.push(e)},nextToken:function(e){if(B.length)return B.pop();if(j>=L)return;let t=!!e&&e.ignoreUnclosed;switch(n=M.charCodeAt(j),n){case s:case c:case d:case u:case l:x=j;do{x+=1,n=M.charCodeAt(x)}while(n===c||n===s||n===d||n===u||n===l);F=["space",M.slice(j,x)],j=x-1;break;case h:case p:case f:case _:case y:case b:case g:{let e=String.fromCharCode(n);F=[e,e,j];break}case m:if(A=U.length?U.pop()[1]:"",N=M.charCodeAt(j+1),"url"===A&&N!==o&&N!==r&&N!==c&&N!==s&&N!==d&&N!==l&&N!==u){x=j;do{if(D=!1,x=M.indexOf(")",x+1),-1===x){if(P||t){x=j;break}q("bracket")}for(I=x;M.charCodeAt(I-1)===i;)I-=1,D=!D}while(D);F=["brackets",M.slice(j,x+1),j,x],j=x}else x=M.indexOf(")",j+1),k=M.slice(j,x+1),-1===x||C.test(k)?F=["(","(",j]:(F=["brackets",k,j,x],j=x);break;case o:case r:O=n===o?"'":'"',x=j;do{if(D=!1,x=M.indexOf(O,x+1),-1===x){if(P||t){x=j+1;break}q("string")}for(I=x;M.charCodeAt(I-1)===i;)I-=1,D=!D}while(D);F=["string",M.slice(j,x+1),j,x],j=x;break;case E:S.lastIndex=j+1,S.test(M),x=0===S.lastIndex?M.length-1:S.lastIndex-2,F=["at-word",M.slice(j,x+1),j,x],j=x;break;case i:for(x=j,R=!0;M.charCodeAt(x+1)===i;)x+=1,R=!R;if(n=M.charCodeAt(x+1),R&&n!==a&&n!==c&&n!==s&&n!==d&&n!==u&&n!==l&&(x+=1,T.test(M.charAt(x)))){for(;T.test(M.charAt(x+1));)x+=1;M.charCodeAt(x+1)===c&&(x+=1)}F=["word",M.slice(j,x+1),j,x],j=x;break;default:n===a&&M.charCodeAt(j+1)===v?(x=M.indexOf("*/",j+2)+1,0===x&&(P||t?x=M.length:q("comment")),F=["comment",M.slice(j,x+1),j,x],j=x):(w.lastIndex=j+1,w.test(M),x=0===w.lastIndex?M.length-1:w.lastIndex-2,F=["word",M.slice(j,x+1),j,x],U.push(F),j=x)}return j++,F},endOfFile:function(){return 0===B.length&&j>=L},position:function(){return j}}}},function(e,t){e.exports={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},customAlphabet:(e,t)=>()=>{let n="",o=t;for(;o--;)n+=e[Math.random()*e.length|0];return n}}},,function(e,t,n){"use strict";let o=n(587),r=n(280);class i{constructor(e=[]){this.version="8.2.4",this.plugins=this.normalize(e)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}process(e,t={}){return 0!==this.plugins.length||t.parser!==t.stringifier||t.hideNothingWarning,new o(this,e,t)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else{if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin")}return t}}e.exports=i,i.default=i,r.registerProcessor(i)},function(e,t,n){"use strict";let o=n(326),r=n(596),i=n(328),a=n(421),s=n(423),c=n(280),l=n(422);function d(e,t){if(Array.isArray(e))return e.map(e=>d(e));let{inputs:n,...u}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:s.prototype};n.map&&(n.map={...n.map,__proto__:r.prototype}),t.push(n)}}if(u.nodes&&(u.nodes=e.nodes.map(e=>d(e,t))),u.source){let{inputId:e,...n}=u.source;u.source=n,null!=e&&(u.source.input=t[e])}if("root"===u.type)return new c(u);if("decl"===u.type)return new o(u);if("rule"===u.type)return new l(u);if("comment"===u.type)return new i(u);if("atrule"===u.type)return new a(u);throw new Error("Unknown node type: "+e.type)}e.exports=d,d.default=d},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var o=n(195),r=n(0),i=n(230),a=n(1),s=n(283);function c(e,t){switch(e){case o.a.IS:return t+s.f+"/terms";case o.a.IM:return t+"/_matrix/integrations/v1/terms";default:throw new Error("Unsupported service type")}}function l(e){a.a(e,["baseUrl","request"]),this.baseUrl=e.baseUrl,this.idBaseUrl=e.idBaseUrl,this.identityServer=e.identityServer;const t={baseUrl:e.baseUrl,idBaseUrl:e.idBaseUrl,accessToken:e.accessToken,request:e.request,prefix:s.h,onlyData:!0,extraParams:e.queryParams,localTimeoutMs:e.localTimeoutMs,useAuthorizationHeader:e.useAuthorizationHeader};this._http=new s.d(this,t),this._txnCtr=0}l.prototype.getHomeserverUrl=function(){return this.baseUrl},l.prototype.getIdentityServerUrl=function(e=!1){return e&&(this.idBaseUrl.startsWith("http://")||this.idBaseUrl.startsWith("https://"))?this.idBaseUrl.split("://")[1]:this.idBaseUrl},l.prototype.setIdentityServerUrl=function(e){this.idBaseUrl=a.h(e),this._http.setIdBaseUrl(this.idBaseUrl)},l.prototype.getAccessToken=function(){return this._http.opts.accessToken||null},l.prototype.isLoggedIn=function(){return void 0!==this._http.opts.accessToken},l.prototype.makeTxnId=function(){return"m"+(new Date).getTime()+"."+this._txnCtr++},l.prototype.isUsernameAvailable=function(e){return this._http.authedRequest(void 0,"GET","/register/available",{username:e}).then(e=>e.available)},l.prototype.register=function(e,t,n,o,r,i,a,s){!0===r?r={email:!0}:null==r&&(r={}),"function"==typeof a&&(s=a,a=void 0),n&&(o.session=n);const c={auth:o};return null!=e&&(c.username=e),null!=t&&(c.password=t),r.email&&(c.bind_email=!0),r.msisdn&&(c.bind_msisdn=!0),null!=i&&(c.guest_access_token=i),null!=a&&(c.inhibit_login=a),null!=t&&(c.x_show_msisdn=!0),this.registerRequest(c,void 0,s)},l.prototype.registerGuest=function(e,t){return(e=e||{}).body=e.body||{},this.registerRequest(e.body,"guest",t)},l.prototype.registerRequest=function(e,t,n){const o={};return t&&(o.kind=t),this._http.request(n,"POST","/register",o,e)},l.prototype.loginFlows=function(e){return this._http.request(e,"GET","/login")},l.prototype.login=function(e,t,n){const o={type:e};return a.j(o,t),this._http.authedRequest((e,t)=>{t&&t.access_token&&t.user_id&&(this._http.opts.accessToken=t.access_token,this.credentials={userId:t.user_id}),n&&n(e,t)},"POST","/login",void 0,o)},l.prototype.loginWithPassword=function(e,t,n){return this.login("m.login.password",{user:e,password:t},n)},l.prototype.loginWithSAML2=function(e,t){return this.login("m.login.saml2",{relay_state:e},t)},l.prototype.getCasLoginUrl=function(e){return this.getSsoLoginUrl(e,"cas")},l.prototype.getSsoLoginUrl=function(e,t,n){void 0===t&&(t="sso");let o=s.h,r="/login/"+t+"/redirect";return n&&(r+="/"+n,o="/_matrix/client/unstable/org.matrix.msc2858"),this._http.getUrl(r,{redirectUrl:e},o)},l.prototype.loginWithToken=function(e,t){return this.login("m.login.token",{token:e},t)},l.prototype.logout=function(e){return this._http.authedRequest(e,"POST","/logout")},l.prototype.deactivateAccount=function(e,t){if("function"==typeof t)throw new Error("deactivateAccount no longer accepts a callback parameter");const n={};return e&&(n.auth=e),void 0!==t&&(n.erase=t),this._http.authedRequest(void 0,"POST","/account/deactivate",void 0,n)},l.prototype.getFallbackAuthUrl=function(e,t){const n=a.g("/auth/$loginType/fallback/web",{$loginType:e});return this._http.getUrl(n,{session:t},s.h)},l.prototype.createRoom=async function(e,t){const n=(e.invite_3pid||[]).filter(e=>!e.id_access_token);if(n.length>0&&this.identityServer&&this.identityServer.getAccessToken&&await this.doesServerAcceptIdentityAccessToken()){const e=await this.identityServer.getAccessToken();if(e)for(const t of n)t.id_access_token=e}return this._http.authedRequest(t,"POST","/createRoom",void 0,e)},l.prototype.fetchRelations=async function(e,t,n,o,r){const i={};r.from&&(i.from=r.from);const c=a.f(i),l=a.g("/rooms/$roomId/relations/$eventId/$relationType/$eventType?"+c,{$roomId:e,$eventId:t,$relationType:n,$eventType:o});return await this._http.authedRequest(void 0,"GET",l,null,null,{prefix:s.i})},l.prototype.roomState=function(e,t){const n=a.g("/rooms/$roomId/state",{$roomId:e});return this._http.authedRequest(t,"GET",n)},l.prototype.fetchRoomEvent=function(e,t,n){const o=a.g("/rooms/$roomId/event/$eventId",{$roomId:e,$eventId:t});return this._http.authedRequest(n,"GET",o)},l.prototype.members=function(e,t,n,o,r){const i={};t&&(i.membership=t),n&&(i.not_membership=n),o&&(i.at=o);const s=a.f(i),c=a.g("/rooms/$roomId/members?"+s,{$roomId:e});return this._http.authedRequest(r,"GET",c)},l.prototype.upgradeRoom=function(e,t){const n=a.g("/rooms/$roomId/upgrade",{$roomId:e});return this._http.authedRequest(void 0,"POST",n,void 0,{new_version:t})},l.prototype.getGroupSummary=function(e){const t=a.g("/groups/$groupId/summary",{$groupId:e});return this._http.authedRequest(void 0,"GET",t)},l.prototype.getGroupProfile=function(e){const t=a.g("/groups/$groupId/profile",{$groupId:e});return this._http.authedRequest(void 0,"GET",t)},l.prototype.setGroupProfile=function(e,t){const n=a.g("/groups/$groupId/profile",{$groupId:e});return this._http.authedRequest(void 0,"POST",n,void 0,t)},l.prototype.setGroupJoinPolicy=function(e,t){const n=a.g("/groups/$groupId/settings/m.join_policy",{$groupId:e});return this._http.authedRequest(void 0,"PUT",n,void 0,{"m.join_policy":t})},l.prototype.getGroupUsers=function(e){const t=a.g("/groups/$groupId/users",{$groupId:e});return this._http.authedRequest(void 0,"GET",t)},l.prototype.getGroupInvitedUsers=function(e){const t=a.g("/groups/$groupId/invited_users",{$groupId:e});return this._http.authedRequest(void 0,"GET",t)},l.prototype.getGroupRooms=function(e){const t=a.g("/groups/$groupId/rooms",{$groupId:e});return this._http.authedRequest(void 0,"GET",t)},l.prototype.inviteUserToGroup=function(e,t){const n=a.g("/groups/$groupId/admin/users/invite/$userId",{$groupId:e,$userId:t});return this._http.authedRequest(void 0,"PUT",n,void 0,{})},l.prototype.removeUserFromGroup=function(e,t){const n=a.g("/groups/$groupId/admin/users/remove/$userId",{$groupId:e,$userId:t});return this._http.authedRequest(void 0,"PUT",n,void 0,{})},l.prototype.addUserToGroupSummary=function(e,t,n){const o=a.g(n?"/groups/$groupId/summary/$roleId/users/$userId":"/groups/$groupId/summary/users/$userId",{$groupId:e,$roleId:n,$userId:t});return this._http.authedRequest(void 0,"PUT",o,void 0,{})},l.prototype.removeUserFromGroupSummary=function(e,t){const n=a.g("/groups/$groupId/summary/users/$userId",{$groupId:e,$userId:t});return this._http.authedRequest(void 0,"DELETE",n,void 0,{})},l.prototype.addRoomToGroupSummary=function(e,t,n){const o=a.g(n?"/groups/$groupId/summary/$categoryId/rooms/$roomId":"/groups/$groupId/summary/rooms/$roomId",{$groupId:e,$categoryId:n,$roomId:t});return this._http.authedRequest(void 0,"PUT",o,void 0,{})},l.prototype.removeRoomFromGroupSummary=function(e,t){const n=a.g("/groups/$groupId/summary/rooms/$roomId",{$groupId:e,$roomId:t});return this._http.authedRequest(void 0,"DELETE",n,void 0,{})},l.prototype.addRoomToGroup=function(e,t,n){void 0===n&&(n=!0);const o=a.g("/groups/$groupId/admin/rooms/$roomId",{$groupId:e,$roomId:t});return this._http.authedRequest(void 0,"PUT",o,void 0,{"m.visibility":{type:n?"public":"private"}})},l.prototype.updateGroupRoomVisibility=function(e,t,n){const o=a.g("/groups/$groupId/admin/rooms/$roomId/config/m.visibility",{$groupId:e,$roomId:t});return this._http.authedRequest(void 0,"PUT",o,void 0,{type:n?"public":"private"})},l.prototype.removeRoomFromGroup=function(e,t){const n=a.g("/groups/$groupId/admin/rooms/$roomId",{$groupId:e,$roomId:t});return this._http.authedRequest(void 0,"DELETE",n,void 0,{})},l.prototype.acceptGroupInvite=function(e,t=null){const n=a.g("/groups/$groupId/self/accept_invite",{$groupId:e});return this._http.authedRequest(void 0,"PUT",n,void 0,t||{})},l.prototype.joinGroup=function(e){const t=a.g("/groups/$groupId/self/join",{$groupId:e});return this._http.authedRequest(void 0,"PUT",t,void 0,{})},l.prototype.leaveGroup=function(e){const t=a.g("/groups/$groupId/self/leave",{$groupId:e});return this._http.authedRequest(void 0,"PUT",t,void 0,{})},l.prototype.getJoinedGroups=function(){const e=a.g("/joined_groups");return this._http.authedRequest(void 0,"GET",e)},l.prototype.createGroup=function(e){const t=a.g("/create_group");return this._http.authedRequest(void 0,"POST",t,void 0,e)},l.prototype.getPublicisedGroups=function(e){const t=a.g("/publicised_groups");return this._http.authedRequest(void 0,"POST",t,void 0,{user_ids:e})},l.prototype.setGroupPublicity=function(e,t){const n=a.g("/groups/$groupId/self/update_publicity",{$groupId:e});return this._http.authedRequest(void 0,"PUT",n,void 0,{publicise:t})},l.prototype.getStateEvent=function(e,t,n,o){const r={$roomId:e,$eventType:t,$stateKey:n};let i=a.g("/rooms/$roomId/state/$eventType",r);return void 0!==n&&(i=a.g(i+"/$stateKey",r)),this._http.authedRequest(o,"GET",i)},l.prototype.sendStateEvent=function(e,t,n,o,r){const i={$roomId:e,$eventType:t,$stateKey:o};let s=a.g("/rooms/$roomId/state/$eventType",i);return void 0!==o&&(s=a.g(s+"/$stateKey",i)),this._http.authedRequest(r,"PUT",s,void 0,n)},l.prototype.roomInitialSync=function(e,t,n){a.r(t)&&(n=t,t=void 0);const o=a.g("/rooms/$roomId/initialSync",{$roomId:e});return t||(t=30),this._http.authedRequest(n,"GET",o,{limit:t})},l.prototype.setRoomReadMarkersHttpRequest=function(e,t,n,o){const r=a.g("/rooms/$roomId/read_markers",{$roomId:e}),i={"m.fully_read":t,"m.read":n,"m.hidden":Boolean(!!o&&o.hidden)};return this._http.authedRequest(void 0,"POST",r,void 0,i)},l.prototype.getJoinedRooms=function(){const e=a.g("/joined_rooms");return this._http.authedRequest(void 0,"GET",e)},l.prototype.getJoinedRoomMembers=function(e){const t=a.g("/rooms/$roomId/joined_members",{$roomId:e});return this._http.authedRequest(void 0,"GET",t)},l.prototype.publicRooms=function(e,t){"function"==typeof e&&(t=e,e={}),void 0===e&&(e={});const n={};return e.server&&(n.server=e.server,delete e.server),0===Object.keys(e).length&&0===Object.keys(n).length?this._http.authedRequest(t,"GET","/publicRooms"):this._http.authedRequest(t,"POST","/publicRooms",n,e)},l.prototype.createAlias=function(e,t,n){const o=a.g("/directory/room/$alias",{$alias:e}),r={room_id:t};return this._http.authedRequest(n,"PUT",o,void 0,r)},l.prototype.deleteAlias=function(e,t){const n=a.g("/directory/room/$alias",{$alias:e});return this._http.authedRequest(t,"DELETE",n,void 0,void 0)},l.prototype.unstableGetLocalAliases=function(e,t){const n=a.g("/rooms/$roomId/aliases",{$roomId:e}),o=s.i+"/org.matrix.msc2432";return this._http.authedRequest(t,"GET",n,null,null,{prefix:o})},l.prototype.getRoomIdForAlias=function(e,t){const n=a.g("/directory/room/$alias",{$alias:e});return this._http.authedRequest(t,"GET",n)},l.prototype.resolveRoomAlias=function(e,t){const n=a.g("/directory/room/$alias",{$alias:e});return this._http.request(t,"GET",n)},l.prototype.getRoomDirectoryVisibility=function(e,t){const n=a.g("/directory/list/room/$roomId",{$roomId:e});return this._http.authedRequest(t,"GET",n)},l.prototype.setRoomDirectoryVisibility=function(e,t,n){const o=a.g("/directory/list/room/$roomId",{$roomId:e});return this._http.authedRequest(n,"PUT",o,void 0,{visibility:t})},l.prototype.setRoomDirectoryVisibilityAppService=function(e,t,n,o){const r=a.g("/directory/list/appservice/$networkId/$roomId",{$networkId:e,$roomId:t});return this._http.authedRequest(o,"PUT",r,void 0,{visibility:n})},l.prototype.searchUserDirectory=function(e){const t={search_term:e.term};return void 0!==e.limit&&(t.limit=e.limit),this._http.authedRequest(void 0,"POST","/user_directory/search",void 0,t)},l.prototype.uploadContent=function(e,t){return this._http.uploadContent(e,t)},l.prototype.cancelUpload=function(e){return this._http.cancelUpload(e)},l.prototype.getCurrentUploads=function(){return this._http.getCurrentUploads()},l.prototype.getProfileInfo=function(e,t,n){a.r(t)&&(n=t,t=void 0);const o=t?a.g("/profile/$userId/$info",{$userId:e,$info:t}):a.g("/profile/$userId",{$userId:e});return this._http.authedRequest(n,"GET",o)},l.prototype.getThreePids=function(e){return this._http.authedRequest(e,"GET","/account/3pid",void 0,void 0)},l.prototype.addThreePid=function(e,t,n){const o={threePidCreds:e,bind:t};return this._http.authedRequest(n,"POST","/account/3pid",null,o)},l.prototype.addThreePidOnly=async function(e){const t=await this.isVersionSupported("r0.6.0")?s.h:s.i;return this._http.authedRequest(void 0,"POST","/account/3pid/add",null,e,{prefix:t})},l.prototype.bindThreePid=async function(e){const t=await this.isVersionSupported("r0.6.0")?s.h:s.i;return this._http.authedRequest(void 0,"POST","/account/3pid/bind",null,e,{prefix:t})},l.prototype.unbindThreePid=async function(e,t){const n={medium:e,address:t,id_server:this.getIdentityServerUrl(!0)},o=await this.isVersionSupported("r0.6.0")?s.h:s.i;return this._http.authedRequest(void 0,"POST","/account/3pid/unbind",null,n,{prefix:o})},l.prototype.deleteThreePid=function(e,t){const n={medium:e,address:t};return this._http.authedRequest(void 0,"POST","/account/3pid/delete",null,n)},l.prototype.setPassword=function(e,t,n){const o={auth:e,new_password:t};return this._http.authedRequest(n,"POST","/account/password",null,o)},l.prototype.getDevices=function(){return this._http.authedRequest(void 0,"GET","/devices",void 0,void 0)},l.prototype.getDevice=function(e){const t=a.g("/devices/$device_id",{$device_id:e});return this._http.authedRequest(void 0,"GET",t,void 0,void 0)},l.prototype.setDeviceDetails=function(e,t){const n=a.g("/devices/$device_id",{$device_id:e});return this._http.authedRequest(void 0,"PUT",n,void 0,t)},l.prototype.deleteDevice=function(e,t){const n=a.g("/devices/$device_id",{$device_id:e}),o={};return t&&(o.auth=t),this._http.authedRequest(void 0,"DELETE",n,void 0,o)},l.prototype.deleteMultipleDevices=function(e,t){const n={devices:e};t&&(n.auth=t);return this._http.authedRequest(void 0,"POST","/delete_devices",void 0,n)},l.prototype.getPushers=function(e){return this._http.authedRequest(e,"GET","/pushers",void 0,void 0)},l.prototype.setPusher=function(e,t){return this._http.authedRequest(t,"POST","/pushers/set",null,e)},l.prototype.getPushRules=function(e){return this._http.authedRequest(e,"GET","/pushrules/").then(e=>i.a.rewriteDefaultRules(e))},l.prototype.addPushRule=function(e,t,n,o,r){const i=a.g("/pushrules/"+e+"/$kind/$ruleId",{$kind:t,$ruleId:n});return this._http.authedRequest(r,"PUT",i,void 0,o)},l.prototype.deletePushRule=function(e,t,n,o){const r=a.g("/pushrules/"+e+"/$kind/$ruleId",{$kind:t,$ruleId:n});return this._http.authedRequest(o,"DELETE",r)},l.prototype.setPushRuleEnabled=function(e,t,n,o,r){const i=a.g("/pushrules/"+e+"/$kind/$ruleId/enabled",{$kind:t,$ruleId:n});return this._http.authedRequest(r,"PUT",i,void 0,{enabled:o})},l.prototype.setPushRuleActions=function(e,t,n,o,r){const i=a.g("/pushrules/"+e+"/$kind/$ruleId/actions",{$kind:t,$ruleId:n});return this._http.authedRequest(r,"PUT",i,void 0,{actions:o})},l.prototype.search=function(e,t){const n={};return e.next_batch&&(n.next_batch=e.next_batch),this._http.authedRequest(t,"POST","/search",n,e.body)},l.prototype.uploadKeysRequest=function(e,t,n){return this._http.authedRequest(n,"POST","/keys/upload",void 0,e)},l.prototype.uploadKeySignatures=function(e){return this._http.authedRequest(void 0,"POST","/keys/signatures/upload",void 0,e,{prefix:s.i})},l.prototype.downloadKeysForUsers=function(e,t){if(a.r(t))throw new Error("downloadKeysForUsers no longer accepts a callback parameter");const n={device_keys:{}};return"token"in(t=t||{})&&(n.token=t.token),e.forEach(e=>{n.device_keys[e]=[]}),this._http.authedRequest(void 0,"POST","/keys/query",void 0,n)},l.prototype.claimOneTimeKeys=function(e,t,n){const o={};void 0===t&&(t="signed_curve25519");for(let n=0;n<e.length;++n){const r=e[n][0],i=e[n][1],a=o[r]||{};o[r]=a,a[i]=t}const r={one_time_keys:o};n&&(r.timeout=n);return this._http.authedRequest(void 0,"POST","/keys/claim",void 0,r)},l.prototype.getKeyChanges=function(e,t){const n={from:e,to:t};return this._http.authedRequest(void 0,"GET","/keys/changes",n,void 0)},l.prototype.uploadDeviceSigningKeys=function(e,t){const n=Object.assign({},t);return e&&Object.assign(n,{auth:e}),this._http.authedRequest(void 0,"POST","/keys/device_signing/upload",void 0,n,{prefix:s.i})},l.prototype.registerWithIdentityServer=function(e){if(!this.idBaseUrl)throw new Error("No Identity Server base URL set");const t=this.idBaseUrl+s.f+"/account/register";return this._http.requestOtherUrl(void 0,"POST",t,null,e)},l.prototype.requestEmailToken=async function(e,t,n,o,r,i){const a={client_secret:t,email:e,send_attempt:n,next_link:o};return await this._http.idServerRequest(r,"POST","/validate/email/requestToken",a,s.f,i)},l.prototype.requestMsisdnToken=async function(e,t,n,o,r,i,a){const c={client_secret:n,country:e,phone_number:t,send_attempt:o,next_link:r};return await this._http.idServerRequest(i,"POST","/validate/msisdn/requestToken",c,s.f,a)},l.prototype.submitMsisdnToken=async function(e,t,n,o){const r={sid:e,client_secret:t,token:n};return await this._http.idServerRequest(void 0,"POST","/validate/msisdn/submitToken",r,s.f,o)},l.prototype.submitMsisdnTokenOtherUrl=function(e,t,n,o){const r={sid:t,client_secret:n,token:o};return this._http.requestOtherUrl(void 0,"POST",e,void 0,r)},l.prototype.getIdentityHashDetails=function(e){return this._http.idServerRequest(void 0,"GET","/hash_details",null,s.f,e)},l.prototype.identityHashedLookup=async function(t,n){const o={},r=await this.getIdentityHashDetails(n);if(!r||!r.lookup_pepper||!r.algorithms)throw new Error("Unsupported identity server: bad response");o.pepper=r.lookup_pepper;const i={};if(r.algorithms.includes("sha256")){const n=new e.Olm.Utility;o.addresses=t.map(e=>{const t=e[0].toLowerCase(),r=e[1].toLowerCase(),a=n.sha256(`${t} ${r} ${o.pepper}`).replace(/\+/g,"-").replace(/\//g,"_");return i[a]=e[0],a}),o.algorithm="sha256"}else{if(!r.algorithms.includes("none"))throw new Error("Unsupported identity server: unknown hash algorithm");o.addresses=t.map(e=>{const t=`${e[0].toLowerCase()} ${e[1].toLowerCase()}`;return i[t]=e[0],t}),o.algorithm="none"}const a=await this._http.idServerRequest(void 0,"POST","/lookup",o,s.f,n);if(!a||!a.mappings)return[];const c=[];for(const e of Object.keys(a.mappings)){const t=a.mappings[e],n=i[e];if(!n)throw new Error("Identity server returned more results than expected");c.push({address:n,mxid:t})}return c},l.prototype.lookupThreePid=async function(e,t,n,o){const r=(await this.identityHashedLookup([[t,e]],o)).find(e=>e.address===t);if(!r)return n&&n(null,{}),{};const i={address:t,medium:e,mxid:r.mxid};return n&&n(null,i),i},l.prototype.bulkLookupThreePids=async function(e,t){const n=await this.identityHashedLookup(e.map(e=>[e[1],e[0]]),t),o=[];for(const t of n){const n=e.find(e=>e[1]===t.address);if(!n)throw new Error("Identity sever returned unexpected results");o.push([n[0],t.address,t.mxid])}return{threepids:o}},l.prototype.getIdentityAccount=function(e){return this._http.idServerRequest(void 0,"GET","/account",void 0,s.f,e)},l.prototype.sendToDevice=function(e,t,n){const o=a.g("/sendToDevice/$eventType/$txnId",{$eventType:e,$txnId:n||this.makeTxnId()}),i={messages:t},s=Object.keys(t).reduce((e,n)=>(e[n]=Object.keys(t[n]),e),{});return r.a.log("PUT "+o,s),this._http.authedRequest(void 0,"PUT",o,void 0,i)},l.prototype.getThirdpartyProtocols=function(){return this._http.authedRequest(void 0,"GET","/thirdparty/protocols",void 0,void 0).then(e=>{if(!e||"object"!=typeof e)throw new Error("/thirdparty/protocols did not return an object: "+e);return e})},l.prototype.getThirdpartyLocation=function(e,t){const n=a.g("/thirdparty/location/$protocol",{$protocol:e});return this._http.authedRequest(void 0,"GET",n,t,void 0)},l.prototype.getThirdpartyUser=function(e,t){const n=a.g("/thirdparty/user/$protocol",{$protocol:e});return this._http.authedRequest(void 0,"GET",n,t,void 0)},l.prototype.getTerms=function(e,t){const n=c(e,t);return this._http.requestOtherUrl(void 0,"GET",n)},l.prototype.agreeToTerms=function(e,t,n,o){const r=c(e,t),i={Authorization:"Bearer "+n};return this._http.requestOtherUrl(void 0,"POST",r,null,{user_accepts:o},{headers:i})},l.prototype.reportEvent=function(e,t,n,o){const r=a.g("/rooms/$roomId/report/$eventId",{$roomId:e,$eventId:t});return this._http.authedRequest(void 0,"POST",r,null,{score:n,reason:o})},l.prototype.getSpaceSummary=function(e,t,n,o,r,i){const s=a.g("/rooms/$roomId/spaces",{$roomId:e});return this._http.authedRequest(void 0,"POST",s,null,{max_rooms_per_space:t,suggested_only:n,auto_join_only:o,limit:r,batch:i},{prefix:"/_matrix/client/unstable/org.matrix.msc2946"})}}).call(this,n(6))},function(e,t,n){"use strict";var o=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,r=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,a=/\\([\u000b\u0020-\u00ff])/g,s=/([\\"])/g,c=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function l(e){var t=String(e);if(i.test(t))return t;if(t.length>0&&!r.test(t))throw new TypeError("invalid parameter value");return'"'+t.replace(s,"\\$1")+'"'}function d(e){this.parameters=Object.create(null),this.type=e}t.format=function(e){if(!e||"object"!=typeof e)throw new TypeError("argument obj is required");var t=e.parameters,n=e.type;if(!n||!c.test(n))throw new TypeError("invalid type");var o=n;if(t&&"object"==typeof t)for(var r,a=Object.keys(t).sort(),s=0;s<a.length;s++){if(r=a[s],!i.test(r))throw new TypeError("invalid parameter name");o+="; "+r+"="+l(t[r])}return o},t.parse=function(e){if(!e)throw new TypeError("argument string is required");var t="object"==typeof e?function(e){var t;"function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof t)throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=-1!==n?t.substr(0,n).trim():t.trim();if(!c.test(r))throw new TypeError("invalid media type");var i=new d(r.toLowerCase());if(-1!==n){var s,l,u;for(o.lastIndex=n;l=o.exec(t);){if(l.index!==n)throw new TypeError("invalid parameter format");n+=l[0].length,s=l[1].toLowerCase(),'"'===(u=l[2])[0]&&(u=u.substr(1,u.length-2).replace(a,"$1")),i.parameters[s]=u}if(n!==t.length)throw new TypeError("invalid parameter format")}return i}},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l}));var o=n(0);let r,i=0;const a=[];let s=Date.now;function c(e,t){(t=t||0)<0&&(t=0);const n=Array.prototype.slice.call(arguments,2),o=s()+t,r=i++,c={runAt:o,func:e,params:n,key:r},l=h(a,(function(e){return e.runAt-o}));return a.splice(l,0,c),d(),r}function l(e){if(0===a.length)return;let t;for(t=0;t<a.length;t++){if(a[t].key==e){a.splice(t,1);break}}0===t&&d()}function d(){r&&e.clearTimeout(r);const t=a[0];if(!t)return;const n=s(),o=Math.min(t.runAt-n,1e3);r=e.setTimeout(u,o)}function u(){let t;const n=s(),r=[];for(;;){const e=a[0];if(!e||e.runAt>n)break;t=a.shift(),t.key,r.push(t)}d();for(let n=0;n<r.length;n++){t=r[n];try{t.func.apply(e,t.params)}catch(e){o.a.error("Uncaught exception in callback function",e.stack||e)}}}function h(e,t){let n=0,o=e.length;for(;n<o;){const r=n+o>>1;t(e[r])>0?o=r:n=r+1}return n}}).call(this,n(6))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return m}));var o=n(203),r=n(168),i=n(245),a=n(1),s=n(302),c=n(152),l=n(230),d=n(0),u=n(212);function h(e,t){return"FILTER_SYNC_"+e+(t?"_"+t:"")}function p(...e){d.a.log(...e)}function m(e,t){this.client=e,(t=t||{}).initialSyncLimit=void 0===t.initialSyncLimit?8:t.initialSyncLimit,t.resolveInvitesToProfiles=t.resolveInvitesToProfiles||!1,t.pollTimeout=t.pollTimeout||3e4,t.pendingEventOrdering=t.pendingEventOrdering||"chronological",t.canResetEntireTimeline||(t.canResetEntireTimeline=function(e){return!1}),this.opts=t,this._peekRoom=null,this._currentSyncRequest=null,this._syncState=null,this._syncStateData=null,this._catchingUp=!1,this._running=!1,this._keepAliveTimer=null,this._connectionReturnedDefer=null,this._notifEvents=[],this._failedSyncCount=0,this._storeIsInvalid=!1,e.getNotifTimelineSet()&&e.reEmitter.reEmit(e.getNotifTimelineSet(),["Room.timeline","Room.timelineReset"])}function g(e,t){const n=new o.a(t);return e.reEmitter.reEmit(n,["User.avatarUrl","User.displayName","User.presence","User.currentlyActive","User.lastPresenceTs"]),n}m.prototype.createRoom=function(e){const t=this.client,{timelineSupport:n,unstableClientRelationAggregation:o}=t,i=new r.a(e,t,t.getUserId(),{lazyLoadMembers:this.opts.lazyLoadMembers,pendingEventOrdering:this.opts.pendingEventOrdering,timelineSupport:n,unstableClientRelationAggregation:o});return t.reEmitter.reEmit(i,["Room.name","Room.timeline","Room.redaction","Room.redactionCancelled","Room.receipt","Room.tags","Room.timelineReset","Room.localEchoUpdated","Room.accountData","Room.myMembership","Room.replaceEvent"]),this._registerStateListeners(i),i},m.prototype.createGroup=function(e){const t=this.client,n=new i.a(e);return t.reEmitter.reEmit(n,["Group.profile","Group.myMembership"]),t.store.storeGroup(n),n},m.prototype._registerStateListeners=function(e){const t=this.client;t.reEmitter.reEmit(e.currentState,["RoomState.events","RoomState.members","RoomState.newMember"]),e.currentState.on("RoomState.newMember",(function(e,n,o){o.user=t.getUser(o.userId),t.reEmitter.reEmit(o,["RoomMember.name","RoomMember.typing","RoomMember.powerLevel","RoomMember.membership"])}))},m.prototype._deregisterStateListeners=function(e){e.currentState.removeAllListeners("RoomState.events"),e.currentState.removeAllListeners("RoomState.members"),e.currentState.removeAllListeners("RoomState.newMember")},m.prototype.syncLeftRooms=function(){const e=this.client,t=this,n=new s.a(this.client.credentials.userId);n.setTimelineLimit(1),n.setIncludeLeaveRooms(!0);const o=this.opts.pollTimeout+8e4,r={timeout:0};return e.getOrCreateFilter(h(e.credentials.userId,"LEFT_ROOMS"),n).then((function(t){return r.filter=t,e._http.authedRequest(void 0,"GET","/sync",r,void 0,o)})).then((function(n){let o=[];n.rooms&&n.rooms.leave&&(o=t._mapSyncResponseToRoomArray(n.rooms.leave));const r=[];return o.forEach((function(n){const o=n.room;if(r.push(o),!n.isBrandNewRoom)return;n.timeline=n.timeline||{};const i=t._mapSyncEventsFormat(n.timeline,o),a=t._mapSyncEventsFormat(n.state,o);o.getLiveTimeline().setPaginationToken(n.timeline.prev_batch,c.a.BACKWARDS),t._processRoomEvents(o,a,i),o.recalculate(),e.store.storeRoom(o),e.emit("Room",o),t._processEventsForNotifs(o,i)})),r}))},m.prototype.peek=function(e){if(this._peekRoom&&this._peekRoom.roomId===e)return Promise.resolve(this._peekRoom);const t=this.client;return this._peekRoom=this.createRoom(e),this.client.roomInitialSync(e,20).then(e=>{e.messages=e.messages||{},e.messages.chunk=e.messages.chunk||[],e.state=e.state||[];const n=a.v(a.d(e.state),t.getEventMapper()),o=a.v(e.state,t.getEventMapper()),r=a.v(e.messages.chunk,t.getEventMapper());return e.presence&&a.q(e.presence)&&e.presence.map(t.getEventMapper()).forEach((function(e){let n=t.store.getUser(e.getContent().user_id);n?n.setPresenceEvent(e):(n=g(t,e.getContent().user_id),n.setPresenceEvent(e),t.store.storeUser(n)),t.emit("event",e)})),e.messages.start&&(this._peekRoom.oldState.paginationToken=e.messages.start),this._peekRoom.oldState.setStateEvents(n),this._peekRoom.currentState.setStateEvents(o),this._resolveInvites(this._peekRoom),this._peekRoom.recalculate(),this._peekRoom.addEventsToTimeline(r.reverse(),!0,this._peekRoom.getLiveTimeline(),e.messages.start),t.store.storeRoom(this._peekRoom),t.emit("Room",this._peekRoom),this._peekPoll(this._peekRoom),this._peekRoom})},m.prototype.stopPeeking=function(){this._peekRoom=null},m.prototype._peekPoll=function(e,t){if(this._peekRoom!==e)return void p("Stopped peeking in room %s",e.roomId);const n=this;this.client._http.authedRequest(void 0,"GET","/events",{room_id:e.roomId,timeout:3e4,from:t},void 0,5e4).then((function(t){if(n._peekRoom!==e)return void p("Stopped peeking in room %s",e.roomId);t.chunk.filter((function(e){return"m.presence"===e.type})).map(n.client.getEventMapper()).forEach((function(e){let t=n.client.store.getUser(e.getContent().user_id);t?t.setPresenceEvent(e):(t=g(n.client,e.getContent().user_id),t.setPresenceEvent(e),n.client.store.storeUser(t)),n.client.emit("event",e)}));const o=t.chunk.filter((function(t){return t.room_id===e.roomId&&t.event_id})).map(n.client.getEventMapper());e.addLiveEvents(o),n._peekPoll(e,t.end)}),(function(o){d.a.error("[%s] Peek poll failed: %s",e.roomId,o),setTimeout((function(){n._peekPoll(e,t)}),3e4)}))},m.prototype.getSyncState=function(){return this._syncState},m.prototype.getSyncStateData=function(){return this._syncStateData},m.prototype.recoverFromSyncStartupError=async function(e,t){await e;const n=this._startKeepAlives();this._updateSyncState("ERROR",{error:t}),await n},m.prototype._wasLazyLoadingToggled=async function(e){e=!!e;let t=!1;if(!await this.client.store.isNewlyCreated()){const n=await this.client.store.getClientOptions();return n&&(t=!!n.lazyLoadMembers),t!==e}return!1},m.prototype._shouldAbortSync=function(e){return"M_UNKNOWN_TOKEN"===e.errcode&&(d.a.warn("Token no longer valid - assuming logout"),this.stop(),!0)},m.prototype.sync=function(){const t=this.client,n=this;this._running=!0,e.window&&e.window.addEventListener&&(this._onOnlineBound=this._onOnline.bind(this),e.window.addEventListener("online",this._onOnlineBound,!1));let o=Promise.resolve(),r=null;function i(){const e=new s.a(t.credentials.userId);return e.setTimelineLimit(n.opts.initialSyncLimit),e}const a=async()=>{if(p("Checking lazy load status..."),this.opts.lazyLoadMembers&&t.isGuest()&&(this.opts.lazyLoadMembers=!1),this.opts.lazyLoadMembers){p("Checking server lazy load support...");await t.doesServerSupportLazyLoading()?(p("Enabling lazy load on sync filter..."),this.opts.filter||(this.opts.filter=i()),this.opts.filter.setLazyLoadMembers(!0)):(p("LL: lazy loading requested but not supported by server, so disabling"),this.opts.lazyLoadMembers=!1)}p("Checking whether lazy loading has changed in store...");if(await this._wasLazyLoadingToggled(this.opts.lazyLoadMembers)){this._storeIsInvalid=!0;const e=u.b.TOGGLED_LAZY_LOADING,t=new u.b(e,!!this.opts.lazyLoadMembers);return this._updateSyncState("ERROR",{error:t}),void d.a.warn("InvalidStoreError: store is not usable: stopping sync.")}this.opts.lazyLoadMembers&&this.opts.crypto&&this.opts.crypto.enableLazyLoading();try{p("Storing client options..."),await this.client._storeClientOptions(),p("Stored client options")}catch(e){throw d.a.error("Storing client options failed",e),e}!async function e(){let a,s;p("Getting filter..."),a=n.opts.filter?n.opts.filter:i();try{s=await t.getOrCreateFilter(h(t.credentials.userId),a)}catch(t){if(d.a.error("Getting filter failed",t),n._shouldAbortSync(t))return;return p("Waiting for saved sync before retrying filter..."),await n.recoverFromSyncStartupError(o,t),void e()}t.resetNotifTimelineSet(),null===n._currentSyncRequest&&(p("Sending first sync request..."),n._currentSyncRequest=n._doSyncRequest({filterId:s},r));p("Waiting for saved sync before starting sync processing..."),await o,n._sync({filterId:s})}()};t.isGuest()?n._sync({}):(p("Getting saved sync token..."),o=t.store.getSavedSyncToken().then(e=>(p("Got saved sync token"),r=e,p("Getting saved sync..."),t.store.getSavedSync())).then(e=>{if(p("Got reply from saved sync, exists? "+!!e),e)return n._syncFromCache(e)}).catch(e=>{d.a.error("Getting saved sync failed",e)}),async function e(){try{p("Getting push rules...");const e=await t.getPushRules();p("Got push rules"),t.pushRules=e}catch(t){if(d.a.error("Getting push rules failed",t),n._shouldAbortSync(t))return;return p("Waiting for saved sync before retrying push rules..."),await n.recoverFromSyncStartupError(o,t),void e()}a()}())},m.prototype.stop=function(){p("SyncApi.stop"),e.window&&(e.window.removeEventListener("online",this._onOnlineBound,!1),this._onOnlineBound=void 0),this._running=!1,this._currentSyncRequest&&this._currentSyncRequest.abort(),this._keepAliveTimer&&(clearTimeout(this._keepAliveTimer),this._keepAliveTimer=null)},m.prototype.retryImmediately=function(){return!!this._connectionReturnedDefer&&(this._startKeepAlives(0),!0)},m.prototype._syncFromCache=async function(e){p("sync(): not doing HTTP hit, instead returning stored /sync data");const t=e.nextBatch;this.client.store.setSyncToken(t);const n={oldSyncToken:null,nextSyncToken:t,catchingUp:!1,fromCache:!0},o={next_batch:t,rooms:e.roomsData,groups:e.groupsData,account_data:{events:e.accountData}};try{await this._processSyncResponse(n,o)}catch(e){d.a.error("Error processing cached sync",e.stack||e)}this._storeIsInvalid||this._updateSyncState("PREPARED",n)},m.prototype._sync=async function(e){const t=this.client;if(!this._running)return p("Sync no longer running: exiting."),this._connectionReturnedDefer&&(this._connectionReturnedDefer.reject(),this._connectionReturnedDefer=null),void this._updateSyncState("STOPPED");const n=t.store.getSyncToken();let o;try{null===this._currentSyncRequest&&(this._currentSyncRequest=this._doSyncRequest(e,n)),o=await this._currentSyncRequest}catch(t){return void this._onSyncError(t,e)}finally{this._currentSyncRequest=null}t.store.setSyncToken(o.next_batch),this._failedSyncCount=0,await t.store.setSyncData(o);const r={oldSyncToken:n,nextSyncToken:o.next_batch,catchingUp:this._catchingUp};this.opts.crypto&&await this.opts.crypto.onSyncWillProcess(r);try{await this._processSyncResponse(r,o)}catch(e){d.a.error("Caught /sync error",e.stack||e),this.client.emit("sync.unexpectedError",e)}r.catchingUp=this._catchingUp,e.hasSyncedBefore||(this._updateSyncState("PREPARED",r),e.hasSyncedBefore=!0),this.opts.crypto&&await this.opts.crypto.onSyncCompleted(r),this._updateSyncState("SYNCING",r),t.store.wantsSave()&&(this.opts.crypto&&await this.opts.crypto.saveDeviceList(0),t.store.save()),this._sync(e)},m.prototype._doSyncRequest=function(e,t){const n=this._getSyncParams(e,t);return this.client._http.authedRequest(void 0,"GET","/sync",n,void 0,n.timeout+8e4)},m.prototype._getSyncParams=function(e,t){let n=this.opts.pollTimeout;("SYNCING"!==this.getSyncState()||this._catchingUp)&&(this._catchingUp=!0,n=0);let o=e.filterId;this.client.isGuest()&&!o&&(o=this._getGuestFilter());const r={filter:o,timeout:n};return this.opts.disablePresence&&(r.set_presence="offline"),t?r.since=t:r._cacheBuster=Date.now(),"ERROR"!=this.getSyncState()&&"RECONNECTING"!=this.getSyncState()||(r.timeout=0),r},m.prototype._onSyncError=function(e,t){if(!this._running)return p("Sync no longer running: exiting"),this._connectionReturnedDefer&&(this._connectionReturnedDefer.reject(),this._connectionReturnedDefer=null),void this._updateSyncState("STOPPED");d.a.error("/sync error %s",e),d.a.error(e),this._shouldAbortSync(e)||(this._failedSyncCount++,d.a.log("Number of consecutive failed sync requests:",this._failedSyncCount),p("Starting keep-alive"),this._startKeepAlives().then(e=>{e&&"ERROR"===this.getSyncState()&&this._updateSyncState("CATCHUP",{oldSyncToken:null,nextSyncToken:null,catchingUp:!0}),this._sync(t)}),this._currentSyncRequest=null,this._updateSyncState(this._failedSyncCount>=3?"ERROR":"RECONNECTING",{error:e}))},m.prototype._processSyncResponse=async function(e,t){const n=this.client,o=this;if(t.presence&&a.q(t.presence.events)&&t.presence.events.map(n.getEventMapper()).forEach((function(e){let t=n.store.getUser(e.getSender());t?t.setPresenceEvent(e):(t=g(n,e.getSender()),t.setPresenceEvent(e),n.store.storeUser(t)),n.emit("event",e)})),t.account_data&&a.q(t.account_data.events)){const e=t.account_data.events.map(n.getEventMapper()),o=e.reduce((e,t)=>(e[t.getId()]=n.store.getAccountData(t.getType()),e),{});n.store.storeAccountDataEvents(e),e.forEach((function(e){if("m.push_rules"===e.getType()){const t=e.getContent();n.pushRules=l.a.rewriteDefaultRules(t)}const t=o[e.getId()];return n.emit("accountData",e,t),e}))}if(t.to_device&&a.q(t.to_device.events)&&t.to_device.events.length>0){const e=[];t.to_device.events.map(n.getEventMapper()).map(t=>{if("m.key.verification.cancel"===t.getType()){const n=t.getContent().transaction_id;n&&e.push(n)}return t}).forEach((function(t){const o=t.getContent();if("m.room.message"!=t.getType()||"m.bad.encrypted"!=o.msgtype){if("m.key.verification.start"===t.getType()||"m.key.verification.request"===t.getType()){const n=o.transaction_id;e.includes(n)&&t.flagCancelled()}n.emit("toDeviceEvent",t)}else d.a.log("Ignoring undecryptable to-device event from "+t.getSender())}))}else this._catchingUp=!1;t.groups&&(t.groups.invite&&this._processGroupSyncEntry(t.groups.invite,"invite"),t.groups.join&&this._processGroupSyncEntry(t.groups.join,"join"),t.groups.leave&&this._processGroupSyncEntry(t.groups.leave,"leave"));let r=[],i=[],s=[];if(t.rooms&&(t.rooms.invite&&(r=this._mapSyncResponseToRoomArray(t.rooms.invite)),t.rooms.join&&(i=this._mapSyncResponseToRoomArray(t.rooms.join)),t.rooms.leave&&(s=this._mapSyncResponseToRoomArray(t.rooms.leave))),this._notifEvents=[],r.forEach((function(e){const t=e.room,r=o._mapSyncEventsFormat(e.invite_state,t);o._processRoomEvents(t,r),e.isBrandNewRoom&&(t.recalculate(),n.store.storeRoom(t),n.emit("Room",t)),r.forEach((function(e){n.emit("event",e)})),t.updateMyMembership("invite")})),await a.x(i,(async function(t){const r=t.room,i=o._mapSyncEventsFormat(t.state,r),s=o._mapSyncEventsFormat(t.timeline,r),l=o._mapSyncEventsFormat(t.ephemeral),d=o._mapSyncEventsFormat(t.account_data);if(t.unread_notifications){r.setUnreadNotificationCount("total",t.unread_notifications.notification_count);const e=n.isRoomEncrypted(r.roomId);(!e||e&&r.getUnreadNotificationCount("highlight")<=0)&&r.setUnreadNotificationCount("highlight",t.unread_notifications.highlight_count)}if(t.timeline=t.timeline||{},t.isBrandNewRoom)r.getLiveTimeline().setPaginationToken(t.timeline.prev_batch,c.a.BACKWARDS);else if(t.timeline.limited){let i=!0;for(let e=s.length-1;e>=0;e--){const t=s[e].getId();if(r.getTimelineForEvent(t)){p("Already have event "+t+" in limited sync - not resetting"),i=!1,s.splice(0,e);break}}i&&(o._deregisterStateListeners(r),r.resetLiveTimeline(t.timeline.prev_batch,o.opts.canResetEntireTimeline(r.roomId)?null:e.oldSyncToken),n.resetNotifTimelineSet(),o._registerStateListeners(r))}async function u(e){if(n.emit("event",e),e.isState()&&"m.room.encryption"==e.getType()&&o.opts.crypto&&await o.opts.crypto.onCryptoEvent(e),e.isState()&&"im.vector.user_status"===e.getType()){let t=n.store.getUser(e.getStateKey());t?t._unstable_updateStatusMessage(e):(t=g(n,e.getStateKey()),t._unstable_updateStatusMessage(e),n.store.storeUser(t))}}o._processRoomEvents(r,i,s,e.fromCache),t.summary&&r.setSummary(t.summary),r.addEphemeralEvents(l),r.addAccountData(d),r.recalculate(),t.isBrandNewRoom&&(n.store.storeRoom(r),n.emit("Room",r)),o._processEventsForNotifs(r,s),await a.x(i,u),await a.x(s,u),l.forEach((function(e){n.emit("event",e)})),d.forEach((function(e){n.emit("event",e)})),r.updateMyMembership("join")})),s.forEach((function(e){const t=e.room,r=o._mapSyncEventsFormat(e.state,t),i=o._mapSyncEventsFormat(e.timeline,t),a=o._mapSyncEventsFormat(e.account_data);o._processRoomEvents(t,r,i),t.addAccountData(a),t.recalculate(),e.isBrandNewRoom&&(n.store.storeRoom(t),n.emit("Room",t)),o._processEventsForNotifs(t,i),r.forEach((function(e){n.emit("event",e)})),i.forEach((function(e){n.emit("event",e)})),a.forEach((function(e){n.emit("event",e)})),t.updateMyMembership("leave")})),e.oldSyncToken&&this._notifEvents.length&&(this._notifEvents.sort((function(e,t){return e.getTs()-t.getTs()})),this._notifEvents.forEach((function(e){n.getNotifTimelineSet().addLiveEvent(e)}))),t.device_lists&&this.opts.crypto&&await this.opts.crypto.handleDeviceListChanges(e,t.device_lists),this.opts.crypto&&t.device_one_time_keys_count){const e=t.device_one_time_keys_count.signed_curve25519||0;this.opts.crypto.updateOneTimeKeyCount(e)}if(this.opts.crypto&&t["org.matrix.msc2732.device_unused_fallback_key_types"]){const e=t["org.matrix.msc2732.device_unused_fallback_key_types"];this.opts.crypto.setNeedsNewFallback(e instanceof Array&&!e.includes("signed_curve25519"))}},m.prototype._startKeepAlives=function(e){void 0===e&&(e=2e3+Math.floor(5e3*Math.random())),null!==this._keepAliveTimer&&clearTimeout(this._keepAliveTimer);const t=this;return e>0?t._keepAliveTimer=setTimeout(t._pokeKeepAlive.bind(t),e):t._pokeKeepAlive(),this._connectionReturnedDefer||(this._connectionReturnedDefer=a.e()),this._connectionReturnedDefer.promise},m.prototype._pokeKeepAlive=function(e){void 0===e&&(e=!1);const t=this;function n(){clearTimeout(t._keepAliveTimer),t._connectionReturnedDefer&&(t._connectionReturnedDefer.resolve(e),t._connectionReturnedDefer=null)}this.client._http.request(void 0,"GET","/_matrix/client/versions",void 0,void 0,{prefix:"",localTimeoutMs:15e3}).then((function(){n()}),(function(o){400==o.httpStatus||404==o.httpStatus?t._keepAliveTimer=setTimeout(n,2e3):(e=!0,t._keepAliveTimer=setTimeout(t._pokeKeepAlive.bind(t,e),5e3+Math.floor(5e3*Math.random())),t._updateSyncState("ERROR",{error:o}))}))},m.prototype._processGroupSyncEntry=function(e,t){for(const n of Object.keys(e)){const o=e[n];let r=this.client.store.getGroup(n);const i=null===r;null===r&&(r=this.createGroup(n)),o.profile&&r.setProfile(o.profile.name,o.profile.avatar_url),o.inviter&&r.setInviter({userId:o.inviter}),r.setMyMembership(t),i&&this.client.emit("Group",r)}},m.prototype._mapSyncResponseToRoomArray=function(e){const t=this.client,n=this;return a.u(e).map((function(o){const r=e[o];let i=t.store.getRoom(o),a=!1;return i||(i=n.createRoom(o),a=!0),r.room=i,r.isBrandNewRoom=a,r}))},m.prototype._mapSyncEventsFormat=function(e,t){if(!e||!a.q(e.events))return[];const n=this.client.getEventMapper();return e.events.map((function(e){return t&&(e.room_id=t.roomId),n(e)}))},m.prototype._resolveInvites=function(e){if(!e||!this.opts.resolveInvitesToProfiles)return;const t=this.client;e.getMembersWithMembership("invite").forEach((function(n){if(n._requestedProfileInfo)return;n._requestedProfileInfo=!0;const o=t.getUser(n.userId);let r;r=o?Promise.resolve({avatar_url:o.avatarUrl,displayname:o.displayName}):t.getProfileInfo(n.userId),r.then((function(t){const o=n.events.member;"invite"===o.getContent().membership&&(o.getContent().avatar_url=t.avatar_url,o.getContent().displayname=t.displayname,n.setMembershipEvent(o,e.currentState))}),(function(e){}))}))},m.prototype._processRoomEvents=function(e,t,n,o){const r=e.getLiveTimeline(),i=0==r.getEvents().length;if(i){for(const e of t)this.client.getPushActionsForEvent(e);r.initialiseState(t)}this._resolveInvites(e),e.recalculate(),i||(e.oldState.setStateEvents(t||[]),e.currentState.setStateEvents(t||[])),e.addLiveEvents(n||[],null,o)},m.prototype._processEventsForNotifs=function(e,t){if(this.client.getNotifTimelineSet())for(let e=0;e<t.length;e++){const n=this.client.getPushActionsForEvent(t[e]);n&&n.notify&&n.tweaks&&n.tweaks.highlight&&this._notifEvents.push(t[e])}},m.prototype._getGuestFilter=function(){return this.client._guestRooms?JSON.stringify({room:{timeline:{limit:20}}}):"{}"},m.prototype._updateSyncState=function(e,t){const n=this._syncState;this._syncState=e,this._syncStateData=t,this.client.emit("sync",this._syncState,n,t)},m.prototype._onOnline=function(){p("Browser thinks we are back online"),this._startKeepAlives(0)}}).call(this,n(6))},function(e,t,n){"use strict";function o(){this.fromToken=null}n.d(t,"a",(function(){return o})),o.prototype={isNewlyCreated:function(){return Promise.resolve(!0)},getSyncToken:function(){return this.fromToken},setSyncToken:function(e){this.fromToken=e},storeGroup:function(e){},getGroup:function(e){return null},getGroups:function(){return[]},storeRoom:function(e){},getRoom:function(e){return null},getRooms:function(){return[]},removeRoom:function(e){},getRoomSummaries:function(){return[]},storeUser:function(e){},getUser:function(e){return null},getUsers:function(){return[]},scrollback:function(e,t){return[]},storeEvents:function(e,t,n,o){},storeFilter:function(e){},getFilter:function(e,t){return null},getFilterIdByName:function(e){return null},setFilterIdByName:function(e,t){},storeAccountDataEvents:function(e){},getAccountData:function(e){},setSyncData:function(e){return Promise.resolve()},wantsSave:function(){return!1},save:function(){},startup:function(){return Promise.resolve()},getSavedSync:function(){return Promise.resolve(null)},getSavedSyncToken:function(){return Promise.resolve(null)},deleteAllData:function(){return Promise.resolve()},getOutOfBandMembers:function(){return Promise.resolve(null)},setOutOfBandMembers:function(){return Promise.resolve()},clearOutOfBandMembers:function(){return Promise.resolve()},getClientOptions:function(){return Promise.resolve()},storeClientOptions:function(){return Promise.resolve()}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var o=n(83),r=n.n(o),i=n(0),a=n(131),s=n(110);class c{constructor(e){r()(this,"client",void 0),r()(this,"calls",void 0),r()(this,"callEventBuffer",void 0),r()(this,"candidateEventsByCall",void 0),r()(this,"evaluateEventBuffer",()=>{if("SYNCING"===this.client.getSyncState()){if(this.callEventBuffer.some(e=>e.isBeingDecrypted()))return;const e=new Set;for(const t of this.callEventBuffer)t.getType()!==s.a.CallAnswer&&t.getType()!==s.a.CallHangup||e.add(t.getContent().call_id);for(const t of this.callEventBuffer)if(t.getType()!==s.a.CallInvite||!e.has(t.getContent().call_id))try{this.handleCallEvent(t)}catch(e){i.a.error("Caught exception handling call event",e)}this.callEventBuffer=[]}}),r()(this,"onEvent",e=>{(0===e.getType().indexOf("m.call.")||e.isBeingDecrypted())&&this.callEventBuffer.push(e),(e.isBeingDecrypted()||e.isDecryptionFailure())&&e.once("Event.decrypted",()=>{if(-1!==e.getType().indexOf("m.call."))if(this.callEventBuffer.includes(e))this.evaluateEventBuffer();else try{this.handleCallEvent(e)}catch(e){i.a.error("Caught exception handling call event",e)}})}),this.client=e,this.calls=new Map,this.callEventBuffer=[],this.candidateEventsByCall=new Map,this.client.on("sync",this.evaluateEventBuffer),this.client.on("event",this.onEvent)}stop(){this.client.removeListener("sync",this.evaluateEventBuffer),this.client.removeListener("event",this.onEvent)}handleCallEvent(e){const t=e.getContent();let n=t.call_id?this.calls.get(t.call_id):void 0;if(e.getType()===s.a.CallInvite){if(e.getSender()===this.client.credentials.userId)return;if(e.getLocalAge()>t.lifetime-3e3)return;if(n&&n.state===a.e.Ended)return;n&&i.a.log(`WARN: Already have a MatrixCall with id ${t.call_id} but got an invite. Clobbering.`);const o=this.client.getTurnServersExpiry()-Date.now();if(i.a.info("Current turn creds expire in "+o+" ms"),n=Object(a.g)(this.client,e.getRoomId(),{forceTURN:this.client._forceTURN}),!n)return void i.a.log("Incoming call ID "+t.call_id+" but this client doesn't support WebRTC");if(n.callId=t.call_id,n.initWithInvite(e),this.calls.set(n.callId,n),this.candidateEventsByCall.get(n.callId))for(const e of this.candidateEventsByCall.get(n.callId))n.onRemoteIceCandidatesReceived(e);let r;for(const e of this.calls.values()){const t=[a.e.WaitLocalMedia,a.e.CreateOffer,a.e.InviteSent].includes(e.state);if(n.roomId===e.roomId&&e.direction===a.a.Outbound&&t){r=e;break}}r?r.state===a.e.WaitLocalMedia||r.state===a.e.CreateOffer||r.callId>n.callId?(i.a.log("Glare detected: answering incoming call "+n.callId+" and canceling outgoing call "+r.callId),r.replacedBy(n),n.answer()):(i.a.log("Glare detected: rejecting incoming call "+n.callId+" and keeping outgoing call "+r.callId),n.hangup(a.b.Replaced,!0)):this.client.emit("Call.incoming",n)}else if(e.getType()===s.a.CallAnswer){if(!n)return;e.getSender()===this.client.credentials.userId?n.state===a.e.Ringing&&n.onAnsweredElsewhere(t):n.onAnswerReceived(e)}else if(e.getType()===s.a.CallCandidates){if(e.getSender()===this.client.credentials.userId)return;n?n.onRemoteIceCandidatesReceived(e):(this.candidateEventsByCall.has(t.call_id)||this.candidateEventsByCall.set(t.call_id,[]),this.candidateEventsByCall.get(t.call_id).push(e))}else if([s.a.CallHangup,s.a.CallReject].includes(e.getType()))n?n.state!==a.e.Ended&&(e.getType()===s.a.CallHangup?n.onHangupReceived(t):n.onRejectReceived(t),this.calls.delete(t.call_id)):(n=Object(a.g)(this.client,e.getRoomId()),n&&(n.callId=t.call_id,n.initWithHangup(e),this.calls.set(t.call_id,n)));else if(e.getType()===s.a.CallSelectAnswer){if(!n)return;if(e.getContent().party_id===n.ourPartyId)return;n.onSelectAnswerReceived(e)}else if(e.getType()===s.a.CallNegotiate){if(!n)return;if(e.getContent().party_id===n.ourPartyId)return;n.onNegotiateReceived(e)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(156);class r{constructor(e){this._cryptoStore=e,this._roomEncryption={}}async init(){await this._cryptoStore.doTxn("readwrite",[o.a.STORE_ROOMS],e=>{this._cryptoStore.getEndToEndRooms(e,e=>{this._roomEncryption=e})})}getRoomEncryption(e){return this._roomEncryption[e]||null}isRoomEncrypted(e){return Boolean(this.getRoomEncryption(e))}async setRoomEncryption(e,t){this._roomEncryption[e]=t,await this._cryptoStore.doTxn("readwrite",[o.a.STORE_ROOMS],n=>{this._cryptoStore.storeEndToEndRoom(e,t,n)})}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s}));var o=n(0),r=n(1);const i=10;class a{constructor(e){this._db=e,this._nextTxnId=0,e.onversionchange=t=>{o.a.log(`versionchange for indexeddb ${this._dbName}: closing`),e.close()}}getOrAddOutgoingRoomKeyRequest(e){const t=e.requestBody;return new Promise((n,r)=>{const i=this._db.transaction("outgoingRoomKeyRequests","readwrite");i.onerror=r,this._getOutgoingRoomKeyRequest(i,t,r=>{if(r)return o.a.log(`already have key request outstanding for ${t.room_id} / ${t.session_id}: not sending another`),void n(r);o.a.log(`enqueueing key request for ${t.room_id} / `+t.session_id),i.oncomplete=()=>{n(e)};i.objectStore("outgoingRoomKeyRequests").add(e)})})}getOutgoingRoomKeyRequest(e){return new Promise((t,n)=>{const o=this._db.transaction("outgoingRoomKeyRequests","readonly");o.onerror=n,this._getOutgoingRoomKeyRequest(o,e,e=>{t(e)})})}_getOutgoingRoomKeyRequest(e,t,n){e.objectStore("outgoingRoomKeyRequests").index("session").openCursor([t.room_id,t.session_id]).onsuccess=e=>{const o=e.target.result;if(!o)return void n(null);const i=o.value;r.c(i.requestBody,t)?n(i):o.continue()}}getOutgoingRoomKeyRequestByState(e){if(0===e.length)return Promise.resolve(null);let t,n=0;const o=this._db.transaction("outgoingRoomKeyRequests","readonly"),r=o.objectStore("outgoingRoomKeyRequests"),i=e[n];return r.index("state").openCursor(i).onsuccess=function o(r){const i=r.target.result;if(i)return void(t=i.value);if(n++,n>=e.length)return;const a=e[n];r.target.source.openCursor(a).onsuccess=o},l(o).then(()=>t)}getAllOutgoingRoomKeyRequestsByState(e){return new Promise((t,n)=>{const o=this._db.transaction("outgoingRoomKeyRequests","readonly").objectStore("outgoingRoomKeyRequests").index("state").getAll(e);o.onsuccess=e=>t(e.target.result),o.onerror=e=>n(e.target.error)})}getOutgoingRoomKeyRequestsByTarget(e,t,n){let o=0;const r=[];const i=this._db.transaction("outgoingRoomKeyRequests","readonly"),a=i.objectStore("outgoingRoomKeyRequests"),s=n[o];return a.index("state").openCursor(s).onsuccess=function i(a){const s=a.target.result;if(s){const n=s.value;n.recipients.includes({userId:e,deviceId:t})&&r.push(n),s.continue()}else{if(o++,o>=n.length)return;const e=n[o];a.target.source.openCursor(e).onsuccess=i}},l(i).then(()=>r)}updateOutgoingRoomKeyRequest(e,t,n){let r=null;const i=this._db.transaction("outgoingRoomKeyRequests","readwrite");return i.objectStore("outgoingRoomKeyRequests").openCursor(e).onsuccess=function(e){const i=e.target.result;if(!i)return;const a=i.value;a.state==t?(Object.assign(a,n),i.update(a),r=a):o.a.warn(`Cannot update room key request from ${t} as it was already updated to `+a.state)},l(i).then(()=>r)}deleteOutgoingRoomKeyRequest(e,t){const n=this._db.transaction("outgoingRoomKeyRequests","readwrite");return n.objectStore("outgoingRoomKeyRequests").openCursor(e).onsuccess=e=>{const n=e.target.result;if(!n)return;const r=n.value;r.state==t?n.delete():o.a.warn(`Cannot delete room key request in state ${r.state} (expected ${t})`)},l(n)}getAccount(e,t){const n=e.objectStore("account").get("-");n.onsuccess=function(){try{t(n.result||null)}catch(t){c(e,t)}}}storeAccount(e,t){e.objectStore("account").put(t,"-")}getCrossSigningKeys(e,t){const n=e.objectStore("account").get("crossSigningKeys");n.onsuccess=function(){try{t(n.result||null)}catch(t){c(e,t)}}}getSecretStorePrivateKey(e,t,n){const o=e.objectStore("account").get("ssss_cache:"+n);o.onsuccess=function(){try{t(o.result||null)}catch(t){c(e,t)}}}storeCrossSigningKeys(e,t){e.objectStore("account").put(t,"crossSigningKeys")}storeSecretStorePrivateKey(e,t,n){e.objectStore("account").put(n,"ssss_cache:"+t)}countEndToEndSessions(e,t){const n=e.objectStore("sessions").count();n.onsuccess=function(){try{t(n.result)}catch(t){c(e,t)}}}getEndToEndSessions(e,t,n){const o=t.objectStore("sessions").index("deviceKey").openCursor(e),r={};o.onsuccess=function(){const e=o.result;if(e)r[e.value.sessionId]={session:e.value.session,lastReceivedMessageTs:e.value.lastReceivedMessageTs},e.continue();else try{n(r)}catch(e){c(t,e)}}}getEndToEndSession(e,t,n,o){const r=n.objectStore("sessions").get([e,t]);r.onsuccess=function(){try{r.result?o({session:r.result.session,lastReceivedMessageTs:r.result.lastReceivedMessageTs}):o(null)}catch(e){c(n,e)}}}getAllEndToEndSessions(e,t){const n=e.objectStore("sessions").openCursor();n.onsuccess=function(){try{const e=n.result;e?(t(e.value),e.continue()):t(null)}catch(t){c(e,t)}}}storeEndToEndSession(e,t,n,o){o.objectStore("sessions").put({deviceKey:e,sessionId:t,session:n.session,lastReceivedMessageTs:n.lastReceivedMessageTs})}async storeEndToEndSessionProblem(e,t,n){const o=this._db.transaction("session_problems","readwrite");return o.objectStore("session_problems").put({deviceKey:e,type:t,fixed:n,time:Date.now()}),l(o)}async getEndToEndSessionProblem(e,t){let n;const o=this._db.transaction("session_problems","readwrite"),r=o.objectStore("session_problems").index("deviceKey").getAll(e);return r.onsuccess=e=>{const o=r.result;if(!o.length)return void(n=null);o.sort((e,t)=>e.time-t.time);const i=o[o.length-1];for(const e of o)if(e.time>t)return void(n=Object.assign({},e,{fixed:i.fixed}));n=i.fixed?null:i},await l(o),n}async filterOutNotifiedErrorDevices(e){const t=this._db.transaction("notified_error_devices","readwrite").objectStore("notified_error_devices"),n=[];return await Promise.all(e.map(e=>new Promise(o=>{const{userId:r,deviceInfo:i}=e,a=t.get([r,i.deviceId]);a.onsuccess=function(){a.result||(t.put({userId:r,deviceId:i.deviceId}),n.push(e)),o()}}))),n}getEndToEndInboundGroupSession(e,t,n,o){let r=!1,i=!1;const a=n.objectStore("inbound_group_sessions").get([e,t]);a.onsuccess=function(){try{r=a.result?a.result.session:null,!1!==i&&o(r,i)}catch(e){c(n,e)}};const s=n.objectStore("inbound_group_sessions_withheld").get([e,t]);s.onsuccess=function(){try{i=s.result?s.result.session:null,!1!==r&&o(r,i)}catch(e){c(n,e)}}}getAllEndToEndInboundGroupSessions(e,t){const n=e.objectStore("inbound_group_sessions").openCursor();n.onsuccess=function(){const o=n.result;if(o){try{t({senderKey:o.value.senderCurve25519Key,sessionId:o.value.sessionId,sessionData:o.value.session})}catch(t){c(e,t)}o.continue()}else try{t(null)}catch(t){c(e,t)}}}addEndToEndInboundGroupSession(e,t,n,r){const i=r.objectStore("inbound_group_sessions").add({senderCurve25519Key:e,sessionId:t,session:n});i.onerror=n=>{"ConstraintError"===i.error.name?(n.stopPropagation(),n.preventDefault(),o.a.log("Ignoring duplicate inbound group session: "+e+" / "+t)):c(r,new Error("Failed to add inbound group session: "+i.error))}}storeEndToEndInboundGroupSession(e,t,n,o){o.objectStore("inbound_group_sessions").put({senderCurve25519Key:e,sessionId:t,session:n})}storeEndToEndInboundGroupSessionWithheld(e,t,n,o){o.objectStore("inbound_group_sessions_withheld").put({senderCurve25519Key:e,sessionId:t,session:n})}getEndToEndDeviceData(e,t){const n=e.objectStore("device_data").get("-");n.onsuccess=function(){try{t(n.result||null)}catch(t){c(e,t)}}}storeEndToEndDeviceData(e,t){t.objectStore("device_data").put(e,"-")}storeEndToEndRoom(e,t,n){n.objectStore("rooms").put(t,e)}getEndToEndRooms(e,t){const n={},o=e.objectStore("rooms").openCursor();o.onsuccess=function(){const r=o.result;if(r)n[r.key]=r.value,r.continue();else try{t(n)}catch(t){c(e,t)}}}getSessionsNeedingBackup(e){return new Promise((t,n)=>{const o=[],r=this._db.transaction(["sessions_needing_backup","inbound_group_sessions"],"readonly");r.onerror=n,r.oncomplete=function(){t(o)};const i=r.objectStore("sessions_needing_backup"),a=r.objectStore("inbound_group_sessions"),s=i.openCursor();s.onsuccess=function(){const t=s.result;if(t){const n=a.get(t.key);n.onsuccess=function(){o.push({senderKey:n.result.senderCurve25519Key,sessionId:n.result.sessionId,sessionData:n.result.session})},(!e||o.length<e)&&t.continue()}}})}countSessionsNeedingBackup(e){e||(e=this._db.transaction("sessions_needing_backup","readonly"));const t=e.objectStore("sessions_needing_backup");return new Promise((e,n)=>{const o=t.count();o.onerror=n,o.onsuccess=()=>e(o.result)})}unmarkSessionsNeedingBackup(e,t){t||(t=this._db.transaction("sessions_needing_backup","readwrite"));const n=t.objectStore("sessions_needing_backup");return Promise.all(e.map(e=>new Promise((t,o)=>{const r=n.delete([e.senderKey,e.sessionId]);r.onsuccess=t,r.onerror=o})))}markSessionsNeedingBackup(e,t){t||(t=this._db.transaction("sessions_needing_backup","readwrite"));const n=t.objectStore("sessions_needing_backup");return Promise.all(e.map(e=>new Promise((t,o)=>{const r=n.put({senderCurve25519Key:e.senderKey,sessionId:e.sessionId});r.onsuccess=t,r.onerror=o})))}addSharedHistoryInboundGroupSession(e,t,n,o){o||(o=this._db.transaction("shared_history_inbound_group_sessions","readwrite"));const r=o.objectStore("shared_history_inbound_group_sessions"),i=r.get([e]);i.onsuccess=()=>{const{sessions:o}=i.result||{sessions:[]};o.push([t,n]),r.put({roomId:e,sessions:o})}}getSharedHistoryInboundGroupSessions(e,t){t||(t=this._db.transaction("shared_history_inbound_group_sessions","readonly"));const n=t.objectStore("shared_history_inbound_group_sessions").get([e]);return new Promise((e,t)=>{n.onsuccess=()=>{const{sessions:t}=n.result||{sessions:[]};e(t)},n.onerror=t})}doTxn(e,t,n,r=o.a){const i=this._db.transaction(t,e),a=l(i),s=n(i);return a.then(()=>s)}}function s(e,t){if(o.a.log("Upgrading IndexedDBCryptoStore from version "+t+" to "+i),t<1&&function(e){const t=e.createObjectStore("outgoingRoomKeyRequests",{keyPath:"requestId"});t.createIndex("session",["requestBody.room_id","requestBody.session_id"]),t.createIndex("state","state")}(e),t<2&&e.createObjectStore("account"),t<3){e.createObjectStore("sessions",{keyPath:["deviceKey","sessionId"]}).createIndex("deviceKey","deviceKey")}if(t<4&&e.createObjectStore("inbound_group_sessions",{keyPath:["senderCurve25519Key","sessionId"]}),t<5&&e.createObjectStore("device_data"),t<6&&e.createObjectStore("rooms"),t<7&&e.createObjectStore("sessions_needing_backup",{keyPath:["senderCurve25519Key","sessionId"]}),t<8&&e.createObjectStore("inbound_group_sessions_withheld",{keyPath:["senderCurve25519Key","sessionId"]}),t<9){e.createObjectStore("session_problems",{keyPath:["deviceKey","time"]}).createIndex("deviceKey","deviceKey"),e.createObjectStore("notified_error_devices",{keyPath:["userId","deviceId"]})}t<10&&e.createObjectStore("shared_history_inbound_group_sessions",{keyPath:["roomId"]})}function c(e,t){e._mx_abortexception=t;try{e.abort()}catch(t){}}function l(e){return new Promise((t,n)=>{e.oncomplete=()=>{void 0!==e._mx_abortexception&&n(e._mx_abortexception),t()},e.onerror=t=>{void 0!==e._mx_abortexception?n(e._mx_abortexception):(o.a.log("Error performing indexeddb txn",t),n(t.target.error))},e.onabort=t=>{void 0!==e._mx_abortexception?n(e._mx_abortexception):(o.a.log("Error performing indexeddb txn",t),n(t.target.error))}})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(7),r=n(0),i=n(334),a=n(335),s=n(135),c=n(156),l=n(1);class d extends o.EventEmitter{constructor(e,t,n,o=250){super(),this._cryptoStore=t,this._devices={},this._crossSigningInfo={},this._userByIdentityKey={},this._deviceTrackingStatus={},this._syncToken=null,this._serialiser=new u(e,n,this),this._keyDownloadsInProgressByUser={},this._keyDownloadChunkSize=o,this._dirty=!1,this._savePromise=null,this._resolveSavePromise=null,this._savePromiseTime=null,this._saveTimer=null,this._hasFetched=null}async load(){await this._cryptoStore.doTxn("readonly",[c.a.STORE_DEVICE_DATA],e=>{this._cryptoStore.getEndToEndDeviceData(e,e=>{this._hasFetched=Boolean(e&&e.devices),this._devices=e?e.devices:{},this._crossSigningInfo=e&&e.crossSigningInfo||{},this._deviceTrackingStatus=e?e.trackingStatus:{},this._syncToken=e?e.syncToken:null,this._userByIdentityKey={};for(const e of Object.keys(this._devices)){const t=this._devices[e];for(const n of Object.keys(t)){const o=t[n].keys["curve25519:"+n];void 0!==o&&(this._userByIdentityKey[o]=e)}}})});for(const e of Object.keys(this._deviceTrackingStatus))2==this._deviceTrackingStatus[e]&&(this._deviceTrackingStatus[e]=1)}stop(){null!==this._saveTimer&&clearTimeout(this._saveTimer)}async saveIfDirty(e){if(!this._dirty)return Promise.resolve(!1);void 0===e&&(e=500);const t=Date.now+e;this._savePromiseTime&&t<this._savePromiseTime&&(clearTimeout(this._saveTimer),this._saveTimer=null,this._savePromiseTime=null);let n=this._savePromise;if(null===n&&(n=new Promise((e,t)=>{this._resolveSavePromise=e}),this._savePromise=n),null===this._saveTimer){const n=this._resolveSavePromise;this._savePromiseTime=t,this._saveTimer=setTimeout(()=>{r.a.log("Saving device tracking data",this._syncToken),this._savePromiseTime=null,this._saveTimer=null,this._savePromise=null,this._resolveSavePromise=null,this._cryptoStore.doTxn("readwrite",[c.a.STORE_DEVICE_DATA],e=>{this._cryptoStore.storeEndToEndDeviceData({devices:this._devices,crossSigningInfo:this._crossSigningInfo,trackingStatus:this._deviceTrackingStatus,syncToken:this._syncToken},e)}).then(()=>{this._dirty=!1,n()},e=>{r.a.error("Failed to save device tracking data",this._syncToken),r.a.error(e)})},e)}return n}getSyncToken(){return this._syncToken}setSyncToken(e){this._syncToken=e}downloadKeys(e,t){const n=[],o=[];if(e.forEach(e=>{const i=this._deviceTrackingStatus[e];this._keyDownloadsInProgressByUser[e]?(r.a.log("downloadKeys: already have a download in progress for "+e+": awaiting its result"),o.push(this._keyDownloadsInProgressByUser[e])):(t||3!=i)&&n.push(e)}),0!=n.length){r.a.log("downloadKeys: downloading for",n);const e=this._doKeyDownload(n);o.push(e)}return 0===o.length&&r.a.log("downloadKeys: already have all necessary keys"),Promise.all(o).then(()=>this._getDevicesFromStore(e))}_getDevicesFromStore(e){const t={},n=this;return e.map((function(e){t[e]={};(n.getStoredDevicesForUser(e)||[]).map((function(n){t[e][n.deviceId]=n}))})),t}getKnownUserIds(){return Object.keys(this._devices)}getStoredDevicesForUser(e){const t=this._devices[e];if(!t)return null;const n=[];for(const e in t)t.hasOwnProperty(e)&&n.push(i.a.fromStorage(t[e],e));return n}getRawStoredDevicesForUser(e){return this._devices[e]}getStoredCrossSigningForUser(e){return this._crossSigningInfo[e]?a.a.fromStorage(this._crossSigningInfo[e],e):null}storeCrossSigningForUser(e,t){this._crossSigningInfo[e]=t,this._dirty=!0}getStoredDevice(e,t){const n=this._devices[e];if(n&&n[t])return i.a.fromStorage(n[t],t)}getUserByIdentityKey(e,t){return e!==s.OLM_ALGORITHM&&e!==s.MEGOLM_ALGORITHM?null:this._userByIdentityKey[t]}getDeviceByIdentityKey(e,t){const n=this.getUserByIdentityKey(e,t);if(!n)return null;const o=this._devices[n];if(!o)return null;for(const e in o){if(!o.hasOwnProperty(e))continue;const n=o[e];for(const o in n.keys){if(!n.keys.hasOwnProperty(o))continue;if(0!==o.indexOf("curve25519:"))continue;if(n.keys[o]==t)return i.a.fromStorage(n,e)}}return null}storeDevicesForUser(e,t){if(void 0!==this._devices[e])for(const[t,n]of Object.entries(this._devices[e])){const e=n.keys["curve25519:"+t];delete this._userByIdentityKey[e]}this._devices[e]=t;for(const[n,o]of Object.entries(t)){const t=o.keys["curve25519:"+n];this._userByIdentityKey[t]=e}this._dirty=!0}startTrackingDeviceList(e){if("string"!=typeof e)throw new Error("userId must be a string; was "+e);this._deviceTrackingStatus[e]||(r.a.log("Now tracking device list for "+e),this._deviceTrackingStatus[e]=1,this._dirty=!0)}stopTrackingDeviceList(e){this._deviceTrackingStatus[e]&&(r.a.log("No longer tracking device list for "+e),this._deviceTrackingStatus[e]=0,this._dirty=!0)}stopTrackingAllDeviceLists(){for(const e of Object.keys(this._deviceTrackingStatus))this._deviceTrackingStatus[e]=0;this._dirty=!0}invalidateUserDeviceList(e){this._deviceTrackingStatus[e]&&(r.a.log("Marking device list outdated for",e),this._deviceTrackingStatus[e]=1,this._dirty=!0)}refreshOutdatedDeviceLists(){this.saveIfDirty();const e=[];for(const t of Object.keys(this._deviceTrackingStatus)){1==this._deviceTrackingStatus[t]&&e.push(t)}return this._doKeyDownload(e)}_setRawStoredDevicesForUser(e,t){if(void 0!==this._devices[e])for(const[t,n]of Object.entries(this._devices[e])){const e=n.keys["curve25519:"+t];delete this._userByIdentityKey[e]}this._devices[e]=t;for(const[n,o]of Object.entries(t)){const t=o.keys["curve25519:"+n];this._userByIdentityKey[t]=e}}setRawStoredCrossSigningForUser(e,t){this._crossSigningInfo[e]=t}_doKeyDownload(e){if(0===e.length)return Promise.resolve();const t=this._serialiser.updateDevicesForUsers(e,this._syncToken).then(()=>{n(!0)},t=>{throw r.a.error("Error downloading keys for "+e+":",t),n(!1),t});e.forEach(e=>{this._keyDownloadsInProgressByUser[e]=t;1==this._deviceTrackingStatus[e]&&(this._deviceTrackingStatus[e]=2)});const n=n=>{this.emit("crypto.willUpdateDevices",e,!this._hasFetched),e.forEach(e=>{if(this._dirty=!0,this._keyDownloadsInProgressByUser[e]!==t)return void r.a.log("Another update in the queue for",e,"- not marking up-to-date");delete this._keyDownloadsInProgressByUser[e];2==this._deviceTrackingStatus[e]&&(n?(this._deviceTrackingStatus[e]=3,r.a.log("Device list for",e,"now up to date")):this._deviceTrackingStatus[e]=1)}),this.saveIfDirty(),this.emit("crypto.devicesUpdated",e,!this._hasFetched),this._hasFetched=!0};return t}}class u{constructor(e,t,n){this._baseApis=e,this._olmDevice=t,this._deviceList=n,this._downloadInProgress=!1,this._keyDownloadsQueuedByUser={},this._queuedQueryDeferred=null,this._syncToken=null}updateDevicesForUsers(e,t){return e.forEach(e=>{this._keyDownloadsQueuedByUser[e]=!0}),this._queuedQueryDeferred||(this._queuedQueryDeferred=Object(l.e)()),this._syncToken=t,this._downloadInProgress?(r.a.log("Queued key download for",e),this._queuedQueryDeferred.promise):this._doQueuedQueries()}_doQueuedQueries(){if(this._downloadInProgress)throw new Error("DeviceListUpdateSerialiser._doQueuedQueries called with request active");const e=Object.keys(this._keyDownloadsQueuedByUser);this._keyDownloadsQueuedByUser={};const t=this._queuedQueryDeferred;this._queuedQueryDeferred=null,r.a.log("Starting key download for",e),this._downloadInProgress=!0;const n={};this._syncToken&&(n.token=this._syncToken);const o=[];for(let t=0;t<e.length;t+=this._deviceList._keyDownloadChunkSize){const r=e.slice(t,t+this._deviceList._keyDownloadChunkSize);o.push(()=>this._baseApis.downloadKeysForUsers(r,n))}return Object(l.b)(o,3).then(async t=>{const n=Object.assign({},...t.map(e=>e.device_keys||{})),o=Object.assign({},...t.map(e=>e.master_keys||{})),i=Object.assign({},...t.map(e=>e.self_signing_keys||{})),a=Object.assign({},...t.map(e=>e.user_signing_keys||{}));for(const t of e){await Object(l.B)(5);try{await this._processQueryResponseForUser(t,n[t],{master:o[t],self_signing:i[t],user_signing:a[t]})}catch(e){r.a.error(`Error processing keys for ${t}:`,e)}}}).then(()=>{r.a.log("Completed key download for "+e),this._downloadInProgress=!1,t.resolve(),this._queuedQueryDeferred&&this._doQueuedQueries()},n=>{r.a.warn("Error downloading keys for "+e+":",n),this._downloadInProgress=!1,t.reject(n)}),t.promise}async _processQueryResponseForUser(e,t,n){r.a.log("got device keys for "+e+":",t),r.a.log("got cross-signing keys for "+e+":",n);{const n={},o=this._deviceList.getRawStoredDevicesForUser(e);o&&Object.keys(o).forEach(e=>{const t=i.a.fromStorage(o[e],e);n[e]=t}),await async function(e,t,n,o,i,a){let s=!1;for(const e in n)if(n.hasOwnProperty(e)&&!(e in o)){if(t===i&&e===a){r.a.warn(`Local device ${e} missing from sync, skipping removal`);continue}r.a.log("Device "+t+":"+e+" has been removed"),delete n[e],s=!0}for(const i in o){if(!o.hasOwnProperty(i))continue;const a=o[i];a.user_id===t?a.device_id===i?await h(e,n,a)&&(s=!0):r.a.warn("Mismatched device_id "+a.device_id+" in keys from "+t+":"+i):r.a.warn("Mismatched user_id "+a.user_id+" in keys from "+t+":"+i)}return s}(this._olmDevice,e,n,t||{},this._baseApis.getUserId(),this._baseApis.deviceId);const a={};Object.keys(n).forEach(e=>{a[e]=n[e].toStorage()}),this._deviceList._setRawStoredDevicesForUser(e,a)}if(n&&(n.master||n.self_signing||n.user_signing)){const t=this._deviceList.getStoredCrossSigningForUser(e)||new a.a(e);t.setKeys(n),this._deviceList.setRawStoredCrossSigningForUser(e,t.toStorage()),this._deviceList.emit("userCrossSigningUpdated",e)}}}async function h(e,t,n){if(!n.keys)return!1;const o=n.device_id,a=n.user_id,c="ed25519:"+o,l=n.keys[c];if(!l)return r.a.warn("Device "+a+":"+o+" has no ed25519 key"),!1;const d=n.unsigned||{},u=n.signatures||{};try{await s.verifySignature(e,n,a,o,l)}catch(e){return r.a.warn("Unable to verify signature on device "+a+":"+o+":"+e),!1}let h;if(o in t){if(h=t[o],h.getFingerprint()!=l)return r.a.warn("Ed25519 key for device "+a+":"+o+" has changed"),!1}else t[o]=h=new i.a(o);return h.keys=n.keys||{},h.algorithms=n.algorithms||[],h.unsigned=d,h.signatures=u,!0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var o=n(0),r=n(103),i=n(7),a=n(335),s=n(156),c=n(283);class l{constructor(e,t){this.accountDataClientAdapter=new u(e),this.crossSigningCallbacks=new h,this.ssssCryptoCallbacks=new p(t),this._crossSigningKeys=null,this._keySignatures=null,this._keyBackupInfo=null}addCrossSigningKeys(e,t){this._crossSigningKeys={authUpload:e,keys:t}}addSessionBackup(e){this._keyBackupInfo=e}addSessionBackupPrivateKeyToCache(e){this._sessionBackupPrivateKey=e}addKeySignature(e,t,n){this._keySignatures||(this._keySignatures={});const o=this._keySignatures[e]||{};this._keySignatures[e]=o,o[t]=n}setAccountData(e,t){return this.accountDataClientAdapter.setAccountData(e,t)}buildOperation(){const e=this.accountDataClientAdapter._values;return new d(e,this._crossSigningKeys,this._keyBackupInfo,this._keySignatures)}async persist(e){if(this._crossSigningKeys){const t=Object(a.d)(e._cryptoStore,e._olmDevice);for(const e of["master","self_signing","user_signing"]){o.a.log(`Cache ${e} cross-signing private key locally`);const n=this.crossSigningCallbacks.privateKeys.get(e);await t.storeCrossSigningKeyCache(e,n)}await e._cryptoStore.doTxn("readwrite",[s.a.STORE_ACCOUNT],t=>{e._cryptoStore.storeCrossSigningKeys(t,this._crossSigningKeys.keys)})}this._sessionBackupPrivateKey&&await e.storeSessionBackupPrivateKey(this._sessionBackupPrivateKey)}}class d{constructor(e,t,n,o){this._accountData=e,this._crossSigningKeys=t,this._keyBackupInfo=n,this._keySignatures=o}async apply(e){const t=e._baseApis;if(this._crossSigningKeys){const n={};for(const[e,t]of Object.entries(this._crossSigningKeys.keys))n[e+"_key"]=t;await this._crossSigningKeys.authUpload(e=>t.uploadDeviceSigningKeys(e,n)),e._crossSigningInfo.setKeys(this._crossSigningKeys.keys)}if(this._accountData)for(const[e,n]of this._accountData)await t.setAccountData(e,n);this._keySignatures&&await t.uploadKeySignatures(this._keySignatures),this._keyBackupInfo&&(this._keyBackupInfo.version?await t._http.authedRequest(void 0,"PUT","/room_keys/version/"+this._keyBackupInfo.version,void 0,{algorithm:this._keyBackupInfo.algorithm,auth_data:this._keyBackupInfo.auth_data},{prefix:c.i}):await t._http.authedRequest(void 0,"POST","/room_keys/version",void 0,this._keyBackupInfo,{prefix:c.i}))}}class u extends i.EventEmitter{constructor(e){super(),this._existingValues=e,this._values=new Map}getAccountDataFromServer(e){return Promise.resolve(this.getAccountData(e))}getAccountData(e){const t=this._values.get(e);if(t)return t;const n=this._existingValues[e];return n?n.getContent():null}setAccountData(e,t){const n=this._values.get(e);return this._values.set(e,t),Promise.resolve().then(()=>{const o=new r.b({type:e,content:t});this.emit("accountData",o,n)})}}class h{constructor(){this.privateKeys=new Map}getCrossSigningKeyCache(e,t){return this.getCrossSigningKey(e,t)}storeCrossSigningKeyCache(e,t){return this.privateKeys.set(e,t),Promise.resolve()}getCrossSigningKey(e,t){return Promise.resolve(this.privateKeys.get(e))}saveCrossSigningKeys(e){for(const[t,n]of Object.entries(e))this.privateKeys.set(t,n)}}class p{constructor(e){this._privateKeys=new Map,this._delegateCryptoCallbacks=e}async getSecretStorageKey({keys:e},t){for(const t of Object.keys(e)){const e=this._privateKeys.get(t);if(e)return[t,e]}if(this._delegateCryptoCallbacks){const n=await this._delegateCryptoCallbacks.getSecretStorageKey({keys:e},t);if(n){const[e,t]=n;this._privateKeys.set(e,t)}return n}}addPrivateKey(e,t,n){this._privateKeys.set(e,n),this._delegateCryptoCallbacks&&this._delegateCryptoCallbacks.cacheSecretStorageKey&&this._delegateCryptoCallbacks.cacheSecretStorageKey(e,t,n)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var o=n(7),r=n(0),i=n(135),a=n(169),s=n(284);const c="m.secret_storage.v1.aes-hmac-sha2";class l extends o.EventEmitter{constructor(e,t){super(),this._baseApis=e,this._cryptoCallbacks=t,this._requests={},this._incomingRequests={}}async getDefaultKeyId(){const e=await this._baseApis.getAccountDataFromServer("m.secret_storage.default_key");return e?e.key:null}setDefaultKeyId(e){return new Promise(async(t,n)=>{const o=n=>{"m.secret_storage.default_key"===n.getType()&&n.getContent().key===e&&(this._baseApis.removeListener("accountData",o),t())};this._baseApis.on("accountData",o);try{await this._baseApis.setAccountData("m.secret_storage.default_key",{key:e})}catch(e){this._baseApis.removeListener("accountData",o),n(e)}})}async addKey(e,t,n){const o={algorithm:e};if(t||(t={}),t.name&&(o.name=t.name),e!==c)throw new Error("Unknown key algorithm "+t.algorithm);if(t.passphrase&&(o.passphrase=t.passphrase),t.key){const{iv:e,mac:n}=await l._calculateKeyCheck(t.key);o.iv=e,o.mac=n}if(!n)do{n=Object(a.b)(32)}while(await this._baseApis.getAccountDataFromServer("m.secret_storage.key."+n));return await this._baseApis.setAccountData("m.secret_storage.key."+n,o),{keyId:n,keyInfo:o}}async getKey(e){if(e||(e=await this.getDefaultKeyId()),!e)return null;const t=await this._baseApis.getAccountDataFromServer("m.secret_storage.key."+e);return t?[e,t]:null}async hasKey(e){return!!await this.getKey(e)}async checkKey(e,t){if(t.algorithm===c){if(t.mac){const{mac:n}=await l._calculateKeyCheck(e,t.iv);return t.mac.replace(/=+$/g,"")===n.replace(/=+$/g,"")}return!0}throw new Error("Unknown algorithm")}static async _calculateKeyCheck(e,t){return await Object(s.b)("\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",e,"",t)}async store(e,t,n){const o={};if(!n){const e=await this.getDefaultKeyId();if(!e)throw new Error("No keys specified and no default key present");n=[e]}if(0===n.length)throw new Error("Zero keys given to encrypt with!");for(const i of n){const n=await this._baseApis.getAccountDataFromServer("m.secret_storage.key."+i);if(!n)throw new Error("Unknown key: "+i);if(n.algorithm===c){const r={[i]:n},[,a]=await this._getSecretStorageKey(r,e);o[i]=await a.encrypt(t)}else r.a.warn("unknown algorithm for secret storage key "+i+": "+n.algorithm)}await this._baseApis.setAccountData(e,{encrypted:o})}async _fixupStoredSecret(e,t){const n=Object.keys(t);if(1===n.length&&"encrypted"!==n[0]&&t[n[0]].passthrough){if(await this.hasKey(n[0])){r.a.log("Fixing up passthrough secret: "+e),await this.storePassthrough(e,n[0]);return await this._baseApis.getAccountDataFromServer(e)}}return null}async get(e){let t=await this._baseApis.getAccountDataFromServer(e);if(!t)return;if(!t.encrypted&&(t=await this._fixupStoredSecret(e,t),!t||!t.encrypted))throw new Error("Content is not encrypted!");const n={};for(const e of Object.keys(t.encrypted)){const o=await this._baseApis.getAccountDataFromServer("m.secret_storage.key."+e),r=t.encrypted[e];o.algorithm===c&&r.iv&&r.ciphertext&&r.mac&&(n[e]=o)}if(0===Object.keys(n).length)throw new Error(`Could not decrypt ${e} because none of the keys it is encrypted with are for a supported algorithm`);let o,r;try{[o,r]=await this._getSecretStorageKey(n,e);const a=t.encrypted[o];return a.passthrough?Object(i.encodeBase64)(r.get_private_key()):await r.decrypt(a)}finally{r&&r.free&&r.free()}}async isStored(e,t){let n=await this._baseApis.getAccountDataFromServer(e);if(!n)return null;if(!n.encrypted&&(n=await this._fixupStoredSecret(e,n),!n||!n.encrypted))return null;void 0===t&&(t=!0);const o={};for(const e of Object.keys(n.encrypted)){const t=await this._baseApis.getAccountDataFromServer("m.secret_storage.key."+e);if(!t)continue;const r=n.encrypted[e];t.algorithm===c&&r.iv&&r.ciphertext&&r.mac&&(o[e]=t)}return Object.keys(o).length?o:null}request(e,t){const n=this._baseApis.makeTxnId(),o=this._requests[n]={name:e,devices:t},i=new Promise((e,t)=>{o.resolve=e,o.reject=t}),a={name:e,action:"request",requesting_device_id:this._baseApis.deviceId,request_id:n},s={};for(const e of t)s[e]=a;return r.a.info(`Request secret ${e} from ${t}, id ${n}`),this._baseApis.sendToDevice("m.secret.request",{[this._baseApis.getUserId()]:s}),{request_id:n,promise:i,cancel:e=>{const r={action:"request_cancellation",requesting_device_id:this._baseApis.deviceId,request_id:n},i={};for(const e of t)i[e]=r;this._baseApis.sendToDevice("m.secret.request",{[this._baseApis.getUserId()]:i}),o.reject(new Error(e||"Cancelled"))}}}async _onRequestReceived(e){const t=e.getSender(),n=e.getContent();if(t!==this._baseApis.getUserId()||!(n.name&&n.action&&n.requesting_device_id&&n.request_id))return;const o=n.requesting_device_id;if("request_cancellation"===n.action)this._incomingRequests[o]&&this._incomingRequests[o][n.request_id]&&(r.a.info("received request cancellation for secret ("+t+", "+o+", "+n.request_id+")"),this.baseApis.emit("crypto.secrets.requestCancelled",{user_id:t,device_id:o,request_id:n.request_id}));else if("request"===n.action){if(o===this._baseApis.deviceId)return;if(r.a.info("received request for secret ("+t+", "+o+", "+n.request_id+")"),!this._cryptoCallbacks.onSecretRequested)return;const e=await this._cryptoCallbacks.onSecretRequested(t,o,n.request_id,n.name,this._baseApis.checkDeviceTrust(t,o));if(e){r.a.info(`Preparing ${n.name} secret for ${o}`);const a={type:"m.secret.send",content:{request_id:n.request_id,secret:e}},s={algorithm:i.OLM_ALGORITHM,sender_key:this._baseApis._crypto._olmDevice.deviceCurve25519Key,ciphertext:{}};await i.ensureOlmSessionsForDevices(this._baseApis._crypto._olmDevice,this._baseApis,{[t]:[this._baseApis.getStoredDevice(t,o)]}),await i.encryptMessageForDevice(s.ciphertext,this._baseApis.getUserId(),this._baseApis.deviceId,this._baseApis._crypto._olmDevice,t,this._baseApis.getStoredDevice(t,o),a);const c={[t]:{[o]:s}};r.a.info(`Sending ${n.name} secret for ${o}`),this._baseApis.sendToDevice("m.room.encrypted",c)}else r.a.info(`Request denied for ${n.name} secret for ${o}`)}}_onSecretReceived(e){if(e.getSender()!==this._baseApis.getUserId())return;const t=e.getContent();r.a.log("got secret share for request",t.request_id);const n=this._requests[t.request_id];if(n){const o=this._baseApis._crypto._deviceList.getDeviceByIdentityKey(i.OLM_ALGORITHM,e.getSenderKey());if(!o)return void r.a.log("secret share from unknown device with key",e.getSenderKey());if(!n.devices.includes(o.deviceId))return void r.a.log("unsolicited secret share from device",o.deviceId);r.a.log(`Successfully received secret ${n.name} from `+o.deviceId),n.resolve(t.secret)}}async _getSecretStorageKey(e,t){if(!this._cryptoCallbacks.getSecretStorageKey)throw new Error("No getSecretStorageKey callback supplied");const n=await this._cryptoCallbacks.getSecretStorageKey({keys:e},t);if(!n)throw new Error("getSecretStorageKey callback returned falsey");if(n.length<2)throw new Error("getSecretStorageKey callback returned invalid data");const[o,r]=n;if(!e[o])throw new Error("App returned unknown key from getSecretStorageKey!");if(e[o].algorithm===c){return[o,{encrypt:async function(e){return await Object(s.b)(e,r,t)},decrypt:async function(e){return await Object(s.a)(e,r,t)}}]}throw new Error("Unknown key type: "+e[o].algorithm)}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var o=n(0),r=n(1);const i=0,a=1,s=2,c=3;class l{constructor(e,t,n){this._baseApis=e,this._deviceId=t,this._cryptoStore=n,this._sendOutgoingRoomKeyRequestsTimer=null,this._sendOutgoingRoomKeyRequestsRunning=!1,this._clientRunning=!1}start(){this._clientRunning=!0}stop(){o.a.log("stopping OutgoingRoomKeyRequestManager"),this._clientRunning=!1}sendQueuedRequests(){this._startTimer()}async queueRoomKeyRequest(e,t,n=!1){const r=await this._cryptoStore.getOutgoingRoomKeyRequest(e);if(r)switch(r.state){case c:case i:return;case s:{const e=n?c:a;await this._cryptoStore.updateOutgoingRoomKeyRequest(r.requestId,s,{state:e,cancellationTxnId:this._baseApis.makeTxnId()});break}case a:if(n){const i=c,s=await this._cryptoStore.updateOutgoingRoomKeyRequest(r.requestId,a,{state:i,cancellationTxnId:this._baseApis.makeTxnId(),requestTxnId:this._baseApis.makeTxnId()});if(!s)return await this.queueRoomKeyRequest(e,t,n);try{await this._sendOutgoingRoomKeyRequestCancellation(s,!0)}catch(e){o.a.error("Error sending room key request cancellation; will retry later.",e)}}break;default:throw new Error("unhandled state: "+r.state)}else await this._cryptoStore.getOrAddOutgoingRoomKeyRequest({requestBody:e,recipients:t,requestId:this._baseApis.makeTxnId(),state:i})}cancelRoomKeyRequest(e){return this._cryptoStore.getOutgoingRoomKeyRequest(e).then(t=>{if(t)switch(t.state){case s:case c:return;case i:return o.a.log("deleting unnecessary room key request for "+d(e)),this._cryptoStore.deleteOutgoingRoomKeyRequest(t.requestId,i);case a:return this._cryptoStore.updateOutgoingRoomKeyRequest(t.requestId,a,{state:s,cancellationTxnId:this._baseApis.makeTxnId()}).then(t=>{t?this._sendOutgoingRoomKeyRequestCancellation(t).catch(e=>{o.a.error("Error sending room key request cancellation; will retry later.",e),this._startTimer()}):o.a.log("Tried to cancel room key request for "+d(e)+" but it was already cancelled in another tab")});default:throw new Error("unhandled state: "+t.state)}})}getOutgoingSentRoomKeyRequest(e,t){return this._cryptoStore.getOutgoingRoomKeyRequestsByTarget(e,t,[a])}async cancelAndResendAllOutgoingRequests(){const e=await this._cryptoStore.getAllOutgoingRoomKeyRequestsByState(a);return Promise.all(e.map(({requestBody:e,recipients:t})=>this.queueRoomKeyRequest(e,t,!0)))}_startTimer(){if(this._sendOutgoingRoomKeyRequestsTimer)return;this._sendOutgoingRoomKeyRequestsTimer=e.setTimeout(()=>{if(this._sendOutgoingRoomKeyRequestsRunning)throw new Error("RoomKeyRequestSend already in progress!");this._sendOutgoingRoomKeyRequestsRunning=!0,this._sendOutgoingRoomKeyRequests().finally(()=>{this._sendOutgoingRoomKeyRequestsRunning=!1}).catch(e=>{o.a.warn("error in OutgoingRoomKeyRequestManager: "+e)})},500)}_sendOutgoingRoomKeyRequests(){return this._clientRunning?this._cryptoStore.getOutgoingRoomKeyRequestByState([s,c,i]).then(e=>{if(!e)return void(this._sendOutgoingRoomKeyRequestsTimer=null);let t;switch(e.state){case i:t=this._sendOutgoingRoomKeyRequest(e);break;case s:t=this._sendOutgoingRoomKeyRequestCancellation(e);break;case c:t=this._sendOutgoingRoomKeyRequestCancellation(e,!0)}return t.then(()=>this._sendOutgoingRoomKeyRequests()).catch(e=>{o.a.error("Error sending room key request; will retry later.",e),this._sendOutgoingRoomKeyRequestsTimer=null})}):(this._sendOutgoingRoomKeyRequestsTimer=null,Promise.resolve())}_sendOutgoingRoomKeyRequest(e){o.a.log("Requesting keys for "+d(e.requestBody)+" from "+u(e.recipients)+`(id ${e.requestId})`);const t={action:"request",requesting_device_id:this._deviceId,request_id:e.requestId,body:e.requestBody};return this._sendMessageToDevices(t,e.recipients,e.requestTxnId||e.requestId).then(()=>this._cryptoStore.updateOutgoingRoomKeyRequest(e.requestId,i,{state:a}))}_sendOutgoingRoomKeyRequestCancellation(e,t){o.a.log("Sending cancellation for key request for "+d(e.requestBody)+" to "+u(e.recipients)+" "+`(cancellation id ${e.cancellationTxnId})`);const n={action:"request_cancellation",requesting_device_id:this._deviceId,request_id:e.requestId};return this._sendMessageToDevices(n,e.recipients,e.cancellationTxnId).then(()=>t?this._cryptoStore.updateOutgoingRoomKeyRequest(e.requestId,c,{state:i}):this._cryptoStore.deleteOutgoingRoomKeyRequest(e.requestId,s))}_sendMessageToDevices(e,t,n){const o={};for(const n of t)o[n.userId]||(o[n.userId]={}),o[n.userId][n.deviceId]=e;return this._baseApis.sendToDevice("m.room_key_request",o,n)}}function d(e){return e.room_id+" / "+e.session_id}function u(e){return"["+r.v(e,e=>`${e.userId}:${e.deviceId}`).join(",")+"]"}}).call(this,n(6))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return k}));var o=n(426),r=n(332),i=n.n(r),a=n(286),s=n(0);const c="m.key.verification.start",l=["m.key.verification.accept","m.key.verification.key","m.key.verification.mac"];let d;const u=Object(a.a)("m.mismatched_sas","Mismatched short authentication string"),h=Object(a.a)("m.mismatched_commitment","Mismatched commitment");const p=[["🐶","dog"],["🐱","cat"],["🦁","lion"],["🐎","horse"],["🦄","unicorn"],["🐷","pig"],["🐘","elephant"],["🐰","rabbit"],["🐼","panda"],["🐓","rooster"],["🐧","penguin"],["🐢","turtle"],["🐟","fish"],["🐙","octopus"],["🦋","butterfly"],["🌷","flower"],["🌳","tree"],["🌵","cactus"],["🍄","mushroom"],["🌏","globe"],["🌙","moon"],["☁️","cloud"],["🔥","fire"],["🍌","banana"],["🍎","apple"],["🍓","strawberry"],["🌽","corn"],["🍕","pizza"],["🎂","cake"],["❤️","heart"],["🙂","smiley"],["🤖","robot"],["🎩","hat"],["👓","glasses"],["🔧","spanner"],["🎅","santa"],["👍","thumbs up"],["☂️","umbrella"],["⌛","hourglass"],["⏰","clock"],["🎁","gift"],["💡","light bulb"],["📕","book"],["✏️","pencil"],["📎","paperclip"],["✂️","scissors"],["🔒","lock"],["🔑","key"],["🔨","hammer"],["☎️","telephone"],["🏁","flag"],["🚂","train"],["🚲","bicycle"],["✈️","aeroplane"],["🚀","rocket"],["🏆","trophy"],["⚽","ball"],["🎸","guitar"],["🎺","trumpet"],["🔔","bell"],["⚓️","anchor"],["🎧","headphones"],["📁","folder"],["📌","pin"]];const m={decimal:function(e){return[1e3+(e[0]<<5|e[1]>>3),1e3+((7&e[1])<<10|e[2]<<2|e[3]>>6),1e3+((63&e[3])<<7|e[4]>>1)]},emoji:function(e){return[e[0]>>2,(3&e[0])<<4|e[1]>>4,(15&e[1])<<2|e[2]>>6,63&e[2],e[3]>>2,(3&e[3])<<4|e[4]>>4,(15&e[4])<<2|e[5]>>6].map(e=>p[e])}};function g(e,t){const n={};for(const o of t)o in m&&(n[o]=m[o](e));return n}const f={"hkdf-hmac-sha256":"calculate_mac","hmac-sha256":"calculate_mac_long_kdf"};function _(e,t){return function(...n){const o=e[f[t]].apply(e,n);return s.a.log("SAS calculateMAC:",t,n,o),o}}const b={"curve25519-hkdf-sha256":function(e,t,n){const o=`${e._baseApis.getUserId()}|${e._baseApis.deviceId}|`+e.ourSASPubKey+"|",r=`${e.userId}|${e.deviceId}|${e.theirSASPubKey}|`,i="MATRIX_KEY_VERIFICATION_SAS|"+(e.initiatedByMe?o+r:r+o)+e._channel.transactionId;return t.generate_bytes(i,n)},curve25519:function(e,t,n){const o=`${e._baseApis.getUserId()}${e._baseApis.deviceId}`,r=`${e.userId}${e.deviceId}`,i="MATRIX_KEY_VERIFICATION_SAS"+(e.initiatedByMe?o+r:r+o)+e._channel.transactionId;return t.generate_bytes(i,n)}},v=["curve25519-hkdf-sha256","curve25519"],y=["sha256"],E=["hkdf-hmac-sha256","hmac-sha256"],S=Object.keys(m),w=new Set(v),C=new Set(y),T=new Set(E),x=new Set(S);function O(e,t){return e instanceof Array?e.filter(e=>t.has(e)):[]}class k extends o.b{static get NAME(){return"m.sas.v1"}get events(){return l}async _doVerification(){await e.Olm.init(),d=d||new e.Olm.Utility,await this._baseApis.downloadKeys([this.userId]);let t=!1;do{try{return this.initiatedByMe?await this._doSendVerification():await this._doRespondVerification()}catch(e){if(!(e instanceof o.a))throw e;this.startEvent=e.startEvent,t=!0}}while(t)}canSwitchStartEvent(e){if(e.getType()!==c)return!1;const t=e.getContent();return t&&t.method===k.NAME&&this._waitingForAccept}async _sendStart(){const e=this._channel.completeContent(c,{method:k.NAME,from_device:this._baseApis.deviceId,key_agreement_protocols:v,hashes:y,message_authentication_codes:E,short_authentication_string:S});return await this._channel.sendCompleted(c,e),e}async _doSendVerification(){let t,n;if(this._waitingForAccept=!0,t=this.startEvent?this._channel.completedContentFromEvent(this.startEvent):await this._sendStart(),!this.initiatedByMe)throw new o.a(this.startEvent);try{n=await this._waitForEvent("m.key.verification.accept")}finally{this._waitingForAccept=!1}let r=n.getContent();const s=O(r.short_authentication_string,x);if(!(w.has(r.key_agreement_protocol)&&C.has(r.hash)&&T.has(r.message_authentication_code)&&s.length))throw Object(a.g)();if("string"!=typeof r.commitment)throw Object(a.c)();const c=r.key_agreement_protocol,l=r.message_authentication_code,p=r.commitment,m=new e.Olm.SAS;try{this.ourSASPubKey=m.get_pubkey(),await this._send("m.key.verification.key",{key:this.ourSASPubKey}),n=await this._waitForEvent("m.key.verification.key"),r=n.getContent();const e=r.key+i.a.stringify(t);if(d.sha256(e)!==p)throw h();this.theirSASPubKey=r.key,m.set_their_key(r.key);const o=b[c](this,m,6),f=new Promise((e,t)=>{this.sasEvent={sas:g(o,s),confirm:async()=>{try{await this._sendMAC(m,l),e()}catch(e){t(e)}},cancel:()=>t(Object(a.h)()),mismatch:()=>t(u())},this.emit("show_sas",this.sasEvent)});[n]=await Promise.all([this._waitForEvent("m.key.verification.mac").then(e=>(this._expectedEvent="m.key.verification.done",e)),f]),r=n.getContent(),await this._checkMAC(m,r,l)}finally{m.free()}}async _doRespondVerification(){let t=this._channel.completedContentFromEvent(this.startEvent);const n=O(v,new Set(t.key_agreement_protocols))[0],o=O(y,new Set(t.hashes))[0],r=O(E,new Set(t.message_authentication_codes))[0],s=O(t.short_authentication_string,x);if(void 0===n||void 0===o||void 0===r||!s.length)throw Object(a.g)();const c=new e.Olm.SAS;try{const e=c.get_pubkey()+i.a.stringify(t);await this._send("m.key.verification.accept",{key_agreement_protocol:n,hash:o,message_authentication_code:r,short_authentication_string:s,commitment:d.sha256(e)});let l=await this._waitForEvent("m.key.verification.key");t=l.getContent(),this.theirSASPubKey=t.key,c.set_their_key(t.key),this.ourSASPubKey=c.get_pubkey(),await this._send("m.key.verification.key",{key:this.ourSASPubKey});const h=b[n](this,c,6),p=new Promise((e,t)=>{this.sasEvent={sas:g(h,s),confirm:async()=>{try{await this._sendMAC(c,r),e()}catch(e){t(e)}},cancel:()=>t(Object(a.h)()),mismatch:()=>t(u())},this.emit("show_sas",this.sasEvent)});[l]=await Promise.all([this._waitForEvent("m.key.verification.mac").then(e=>(this._expectedEvent="m.key.verification.done",e)),p]),t=l.getContent(),await this._checkMAC(c,t,r)}finally{c.free()}}_sendMAC(e,t){const n={},o=[],r="MATRIX_KEY_VERIFICATION_MAC"+this._baseApis.getUserId()+this._baseApis.deviceId+this.userId+this.deviceId+this._channel.transactionId,i="ed25519:"+this._baseApis.deviceId;n[i]=_(e,t)(this._baseApis.getDeviceEd25519Key(),r+i),o.push(i);const a=this._baseApis.getCrossSigningId();if(a){const i="ed25519:"+a;n[i]=_(e,t)(a,r+i),o.push(i)}const s=_(e,t)(o.sort().join(","),r+"KEY_IDS");return this._send("m.key.verification.mac",{mac:n,keys:s})}async _checkMAC(e,t,n){const o="MATRIX_KEY_VERIFICATION_MAC"+this.userId+this.deviceId+this._baseApis.getUserId()+this._baseApis.deviceId+this._channel.transactionId;if(t.keys!==_(e,n)(Object.keys(t.mac).sort().join(","),o+"KEY_IDS"))throw Object(a.d)();await this._verifyKeys(this.userId,t.mac,(t,r,i)=>{if(i!==_(e,n)(r.keys[t],o+t))throw Object(a.d)()})}}}).call(this,n(6))},function(e,t,n){var o=n(1020);e.exports=o("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},function(e,t,n){"use strict";var o=n(1021).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n<t.length;n++)t[n]=255;for(var r=0;r<e.length;r++){var i=e.charAt(r),a=i.charCodeAt(0);if(255!==t[a])throw new TypeError(i+" is ambiguous");t[a]=r}var s=e.length,c=e.charAt(0),l=Math.log(s)/Math.log(256),d=Math.log(256)/Math.log(s);function u(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return o.alloc(0);var n=0;if(" "!==e[n]){for(var r=0,i=0;e[n]===c;)r++,n++;for(var a=(e.length-n)*l+1>>>0,d=new Uint8Array(a);e[n];){var u=t[e.charCodeAt(n)];if(255===u)return;for(var h=0,p=a-1;(0!==u||h<i)&&-1!==p;p--,h++)u+=s*d[p]>>>0,d[p]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");i=h,n++}if(" "!==e[n]){for(var m=a-i;m!==a&&0===d[m];)m++;var g=o.allocUnsafe(r+(a-m));g.fill(0,0,r);for(var f=r;m!==a;)g[f++]=d[m++];return g}}}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=o.from(t)),!o.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var n=0,r=0,i=0,a=t.length;i!==a&&0===t[i];)i++,n++;for(var l=(a-i)*d+1>>>0,u=new Uint8Array(l);i!==a;){for(var h=t[i],p=0,m=l-1;(0!==h||p<r)&&-1!==m;m--,p++)h+=256*u[m]>>>0,u[m]=h%s>>>0,h=h/s>>>0;if(0!==h)throw new Error("Non-zero carry");r=p,i++}for(var g=l-r;g!==l&&0===u[g];)g++;for(var f=c.repeat(n);g<l;++g)f+=e.charAt(u[g]);return f},decodeUnsafe:u,decode:function(e){var t=u(e);if(t)return t;throw new Error("Non-base"+s+" character")}}}},function(e,t,n){var o=n(32),r=o.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=o:(i(o,t),t.Buffer=a),a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var o=r(e);return void 0!==t?"string"==typeof n?o.fill(t,n):o.fill(t):o.fill(0),o},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var o=n(213),r=n(0);class i{constructor(e,t,n=null){this._client=e,this._roomId=t,this.userId=n,this._requestEventId=null}get receiveStartFromOtherDevices(){return!0}get roomId(){return this._roomId}get transactionId(){return this._requestEventId}static getOtherPartyUserId(e,t){if(i.getEventType(e)!==o.i)return;const n=t.getUserId(),r=e.getSender(),a=e.getContent().to;return r===n?a:a===n?r:void 0}getTimestamp(e){return e.getTs()}static canCreateRequest(e){return e===o.i}static getTransactionId(e){if(i.getEventType(e)===o.i)return e.getId();{const t=e.getRelation();if(t&&"m.reference"===t.rel_type)return t.event_id}}static validateEvent(e,t){const n=i.getTransactionId(e);if("string"!=typeof n||0===n.length)return!1;const a=i.getEventType(e),s=e.getContent();if(a===o.i){if(!s||"string"!=typeof s.to||!s.to.length)return r.a.log("InRoomChannel: validateEvent: no valid to "+(s&&s.to)),!1;if(!i.getOtherPartyUserId(e,t))return r.a.log("InRoomChannel: validateEvent: not directed to or sent by me: "+e.getSender()+", "+(s&&s.to)),!1}return o.k.validateEvent(a,e,t)}static getEventType(e){const t=e.getType();if("m.room.message"===t){const t=e.getContent();if(t){const{msgtype:e}=t;if(e===o.i)return o.i}}return t&&t!==o.i?t:""}async handleEvent(e,t,n){if(t.hasEventId(e.getId()))return;const o=i.getEventType(e);if(e.getRoomId()!==this._roomId)return;if(null===this.userId){const t=i.getOtherPartyUserId(e,this._client);t&&(this.userId=t)}const a=this._client.getUserId(),s=e.getSender();if(null!==this.userId&&s!==a&&s!==this.userId)return void r.a.log("InRoomChannel: ignoring verification event from non-participating sender "+s);null===this._requestEventId&&(this._requestEventId=i.getTransactionId(e));const c=!!e.getUnsigned().transaction_id,l=e.getSender()===this._client.getUserId();return await t.handleEvent(o,e,n,c,l)}completedContentFromEvent(e){const t=Object.assign({},e.getContent());return t["m.relates_to"]=e.getRelation(),t}completeContent(e,t){return t=Object.assign({},t),e!==o.i&&e!==o.h&&e!==o.j||(t.from_device=this._client.getDeviceId()),e===o.i?t={body:this._client.getUserId()+" is requesting to verify your key, but your client does not support in-chat key verification. You will need to use legacy key verification to verify keys.",msgtype:o.i,to:this.userId,from_device:t.from_device,methods:t.methods}:t["m.relates_to"]={rel_type:"m.reference",event_id:this.transactionId},t}send(e,t){const n=this.completeContent(e,t);return this.sendCompleted(e,n)}async sendCompleted(e,t){let n=e;e===o.i&&(n="m.room.message");const r=await this._client.sendEvent(this._roomId,n,t);e===o.i&&(this._requestEventId=r.event_id)}}class a{constructor(){this._requestsByRoomId=new Map}getRequest(e){const t=e.getRoomId(),n=i.getTransactionId(e);return this._getRequestByTxnId(t,n)}getRequestByChannel(e){return this._getRequestByTxnId(e.roomId,e.transactionId)}_getRequestByTxnId(e,t){const n=this._requestsByRoomId.get(e);if(n)return n.get(t)}setRequest(e,t){this._setRequest(e.getRoomId(),i.getTransactionId(e),t)}setRequestByChannel(e,t){this._setRequest(e.roomId,e.transactionId,t)}_setRequest(e,t,n){let o=this._requestsByRoomId.get(e);o||(o=new Map,this._requestsByRoomId.set(e,o)),o.set(t,n)}removeRequest(e){const t=e.getRoomId(),n=this._requestsByRoomId.get(t);n&&(n.delete(i.getTransactionId(e)),0===n.size&&this._requestsByRoomId.delete(t))}findRequestInProgress(e){const t=this._requestsByRoomId.get(e);if(t)for(const e of t.values())if(e.pending)return e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var o=n(169),r=n(0),i=n(213),a=n(286),s=n(103);class c{constructor(e,t,n,o=null,r=null){this._client=e,this.userId=t,this._devices=n,this.transactionId=o,this._deviceId=r}isToDevices(e){if(e.length===this._devices.length){for(const t of e){if(!this._devices.find(e=>e.deviceId===t.deviceId))return!1}return!0}return!1}get deviceId(){return this._deviceId}static getEventType(e){return e.getType()}static getTransactionId(e){const t=e.getContent();return t&&t.transaction_id}static canCreateRequest(e){return e===i.i||e===i.j}static validateEvent(e,t){if(e.isCancelled())return r.a.warn("Ignoring flagged verification request from "+e.getSender()),!1;const n=e.getContent();if(!n)return r.a.warn("ToDeviceChannel.validateEvent: invalid: no content"),!1;if(!n.transaction_id)return r.a.warn("ToDeviceChannel.validateEvent: invalid: no transaction_id"),!1;const o=e.getType();if(o===i.i){if(!Number.isFinite(n.timestamp))return r.a.warn("ToDeviceChannel.validateEvent: invalid: no timestamp"),!1;if(e.getSender()===t.getUserId()&&n.from_device==t.getDeviceId())return r.a.warn("ToDeviceChannel.validateEvent: invalid: from own device"),!1}return i.k.validateEvent(o,e,t)}getTimestamp(e){const t=e.getContent();return t&&t.timestamp}async handleEvent(e,t,n){const o=e.getType(),r=e.getContent();if(o===i.i||o===i.h||o===i.j){this.transactionId||(this.transactionId=r.transaction_id);const e=r.from_device;if(!this._deviceId&&this._devices.includes(e)&&(this._deviceId=e),!this._deviceId||this._deviceId!==e){const t=this.completeContent(Object(a.b)(Object(a.f)()));return this._sendToDevices(i.a,t,[e])}}const s=t.phase===i.f||t.phase===i.d;await t.handleEvent(e.getType(),e,n,!1,!1);const c=t.phase===i.f||t.phase===i.d;if((o===i.j||o===i.h)&&!s&&c&&this._deviceId){const e=this._devices.filter(e=>e!==this._deviceId&&e!==this._client.getDeviceId());if(e.length){const t=this.completeContent({code:"m.accepted",reason:"Verification request accepted by another device"});await this._sendToDevices(i.a,t,e)}}}completedContentFromEvent(e){return e.getContent()}completeContent(e,t){return t=Object.assign({},t),this.transactionId&&(t.transaction_id=this.transactionId),e!==i.i&&e!==i.h&&e!==i.j||(t.from_device=this._client.getDeviceId()),e===i.i&&(t.timestamp=Date.now()),t}send(e,t={}){e!==i.i&&e!==i.j||this.transactionId||(this.transactionId=c.makeTransactionId());const n=this.completeContent(e,t);return this.sendCompleted(e,n)}async sendCompleted(e,t){let n;n=e===i.i?await this._sendToDevices(e,t,this._devices):await this._sendToDevices(e,t,[this._deviceId]);const o=new s.b({sender:this._client.getUserId(),content:t,type:e});return await this._request.handleEvent(e,o,!0,!0,!0),n}_sendToDevices(e,t,n){if(n.length){const o={};for(const e of n)o[e]=t;return this._client.sendToDevice(e,{[this.userId]:o})}return Promise.resolve()}static makeTransactionId(){return Object(o.b)(32)}}class l{constructor(){this._requestsByUserId=new Map}getRequest(e){return this.getRequestBySenderAndTxnId(e.getSender(),c.getTransactionId(e))}getRequestByChannel(e){return this.getRequestBySenderAndTxnId(e.userId,e.transactionId)}getRequestBySenderAndTxnId(e,t){const n=this._requestsByUserId.get(e);if(n)return n.get(t)}setRequest(e,t){this.setRequestBySenderAndTxnId(e.getSender(),c.getTransactionId(e),t)}setRequestByChannel(e,t){this.setRequestBySenderAndTxnId(e.userId,e.transactionId,t)}setRequestBySenderAndTxnId(e,t,n){let o=this._requestsByUserId.get(e);o||(o=new Map,this._requestsByUserId.set(e,o)),o.set(t,n)}removeRequest(e){const t=e.getSender(),n=this._requestsByUserId.get(t);n&&(n.delete(c.getTransactionId(e)),0===n.size&&this._requestsByUserId.delete(t))}findRequestInProgress(e,t){const n=this._requestsByUserId.get(e);if(n)for(const e of n.values())if(e.pending&&e.channel.isToDevices(t))return e}getRequestsInProgress(e){const t=this._requestsByUserId.get(e);return t?Array.from(t.values()).filter(e=>e.pending):[]}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(426);class r extends o.b{static factory(...e){return new r(...e)}static get NAME(){return"org.matrix.illegal_method"}async _doVerification(){throw new Error("Verification is not possible with this method")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(0),r=n(1);function i(e,t,n){this._workerScript=e,this._dbName=t,this._workerApi=n,this._worker=null,this._nextSeq=0,this._inFlight={},this._startPromise=null}i.prototype={connect:function(){return this._ensureStarted().then(()=>this._doCmd("connect"))},clearDatabase:function(){return this._ensureStarted().then(()=>this._doCmd("clearDatabase"))},isNewlyCreated:function(){return this._doCmd("isNewlyCreated")},getSavedSync:function(){return this._doCmd("getSavedSync")},getNextBatchToken:function(){return this._doCmd("getNextBatchToken")},setSyncData:function(e){return this._doCmd("setSyncData",[e])},syncToDatabase:function(e){return this._doCmd("syncToDatabase",[e])},getOutOfBandMembers:function(e){return this._doCmd("getOutOfBandMembers",[e])},setOutOfBandMembers:function(e,t){return this._doCmd("setOutOfBandMembers",[e,t])},clearOutOfBandMembers:function(e){return this._doCmd("clearOutOfBandMembers",[e])},getClientOptions:function(){return this._doCmd("getClientOptions")},storeClientOptions:function(e){return this._doCmd("storeClientOptions",[e])},getUserPresenceEvents:function(){return this._doCmd("getUserPresenceEvents")},_ensureStarted:function(){return null===this._startPromise&&(this._worker=new this._workerApi(this._workerScript),this._worker.onmessage=this._onWorkerMessage.bind(this),this._startPromise=this._doCmd("_setupWorker",[this._dbName]).then(()=>{o.a.log("IndexedDB worker is ready")})),this._startPromise},_doCmd:function(e,t){return Promise.resolve().then(()=>{const n=this._nextSeq++,o=Object(r.e)();return this._inFlight[n]=o,this._worker.postMessage({command:e,seq:n,args:t}),o.promise})},_onWorkerMessage:function(e){const t=e.data;if("cmd_success"==t.command||"cmd_fail"==t.command){if(void 0===t.seq)return void o.a.error("Got reply from worker with no seq");const e=this._inFlight[t.seq];if(void 0===e)return void o.a.error("Got reply for unknown seq "+t.seq);if(delete this._inFlight[t.seq],"cmd_success"==t.command)e.resolve(t.result);else{const n=new Error(t.error.message);n.name=t.error.name,e.reject(n)}}else o.a.warn("Unrecognised message from worker: "+t)}}},function(e,t,n){"use strict";var o=n(155),r=n(112);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(100)),a=r(n(95)),s=o(n(82)),c=r(n(607)),l=r(n(1045)),d=s.forwardRef((function(e,t){return s.createElement(c.default,(0,a.default)({sideCar:l.default,ref:t},e))})),u=c.default.propTypes||{};u.sideCar,(0,i.default)(u,["sideCar"]);d.propTypes={};var h=d;t.default=h},function(e,t,n){var o=n(1028),r=n(1029),i=n(608),a=n(1030);e.exports=function(e,t){return o(e)||r(e,t)||i(e,t)||a()}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{o||null==s.return||s.return()}finally{if(r)throw i}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(289);t.assignRef=o.assignRef;var r=n(434);t.useCallbackRef=r.useCallbackRef;var i=n(435);t.createCallbackRef=i.createCallbackRef;var a=n(1032);t.mergeRefs=a.mergeRefs;var s=n(1033);t.useMergeRefs=s.useMergeRefs;var c=n(1034);t.useTransformRef=c.useTransformRef;var l=n(1035);t.transformRef=l.transformRef;var d=n(1036);t.refToCallback=d.refToCallback,t.useRefToCallback=d.useRefToCallback},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(435),r=n(289);t.mergeRefs=function(e){return o.createCallbackRef((function(t){return e.forEach((function(e){return r.assignRef(e,t)}))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(434),r=n(289);t.useMergeRefs=function(e,t){return o.useCallbackRef(t,(function(t){return e.forEach((function(e){return r.assignRef(e,t)}))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(434),r=n(289);t.useTransformRef=function(e,t){return o.useCallbackRef(void 0,(function(n){return r.assignRef(e,t(n))}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(289),r=n(435);t.transformRef=function(e,t){return r.createCallbackRef((function(n){return o.assignRef(e,t(n))}))}},function(e,t,n){"use strict";function o(e){return function(t){"function"==typeof e?e(t):e&&(e.current=t)}}Object.defineProperty(t,"__esModule",{value:!0}),t.refToCallback=o;var r=function(){return null},i=new WeakMap;t.useRefToCallback=function(e){return function(e){var t=e||r;if(i.has(t))return i.get(t);var n=o(t);return i.set(t,n),n}(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1038);t.sidecar=o.sidecar;var r=n(611);t.useSidecar=r.useSidecar;var i=n(1041);t.setConfig=i.setConfig;var a=n(1042);t.createMedium=a.createMedium,t.createSidecarMedium=a.createSidecarMedium;var s=n(1043);t.renderCar=s.renderCar;var c=n(1044);t.exportSidecar=c.exportSidecar},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(290),r=n(82),i=n(611);t.sidecar=function(e,t){var n=function(){return t};return function(a){var s=i.useSidecar(e,a.sideCar),c=s[0];return s[1]&&t?n:c?r.createElement(c,o.__assign({},a)):null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(1040);t.env={isNode:o.isNode,forceCache:!1}},function(e,t){e.exports.isNode=!1},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config={onError:function(e){return console.error(e)}},t.setConfig=function(e){Object.assign(t.config,e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(290);function r(e){return e}function i(e,t){void 0===t&&(t=r);var n=[],o=!1;return{read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var r=t(e,o);return n.push(r),function(){n=n.filter((function(e){return e!==r}))}},assignSyncMedium:function(e){for(o=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){o=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}t.createMedium=function(e,t){return void 0===t&&(t=r),i(e,t)},t.createSidecarMedium=function(e){void 0===e&&(e={});var t=i(null);return t.options=o.__assign({async:!0,ssr:!1},e),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(290),r=n(82),i=n(82);t.renderCar=function(e,t,n){function a(t){var n=t.stateRef,a=t.props,s=i.useCallback((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.useLayoutEffect((function(){n.current(e)})),null}),[]);return r.createElement(e,o.__assign({},a,{children:s}))}void 0===n&&(n={});var s=r.memo((function(e){var t=e.stateRef,n=e.defaultState,o=e.children,a=i.useState(n.current),s=a[0],c=a[1];return r.useEffect((function(){t.current=c}),[]),o.apply(void 0,s)}),(function(){return!0}));return function(e){var n=r.useRef(t(e)),o=r.useRef((function(e){return n.current=e}));return r.createElement(r.Fragment,null,r.createElement(a,{stateRef:o,props:e}),r.createElement(s,{stateRef:o,defaultState:n,children:e.children}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(290),r=n(82),i=function(e){var t=e.sideCar,n=o.__rest(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return r.createElement(i,o.__assign({},n))};i.isSideCarExport=!0,t.exportSidecar=function(e,t){return e.useMedium(t),i}},function(e,t,n){"use strict";var o=n(155),r=n(112);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(1046)),a=(o(n(82)),r(n(86)),r(n(1050))),s=o(n(1051)),c=n(341),l=n(436),d=function(){return document&&document.activeElement===document.body||(0,s.focusIsHidden)()},u=null,h=null,p=null,m=!1,g=function(){return!0};function f(e,t,n,o){var r=null,i=e;do{var a=o[i];if(a.guard)a.node.dataset.focusAutoGuard&&(r=a);else{if(!a.lockItem)break;if(i!==e)return;r=null}}while((i+=n)!==t);r&&(r.node.tabIndex=0)}var _=function(e){return e&&"current"in e?e.current:e},b=function(){var e,t=!1;if(u){var n=u,o=n.observed,r=n.persistentFocus,a=n.autoFocus,c=n.shards,l=n.crossFrame,b=o||p&&p.portaledElement,v=document&&document.activeElement;if(b){var y=[b].concat((0,i.default)(c.map(_).filter(Boolean)));if(v&&!function(e){return(u.whiteList||g)(e)}(v)||(r||(l?Boolean(m):"meanwhile"===m)||!d()||!h&&a)&&(!b||(0,s.focusInside)(y)||(e=v,p&&p.portaledElement===e)||(document&&!h&&v&&!a?(v.blur&&v.blur(),document.body.focus()):(t=(0,s.default)(y,h),p={})),m=!1,h=document&&document.activeElement),document){var E=document&&document.activeElement,S=(0,s.getFocusabledIn)(y),w=S.map((function(e){return e.node})).indexOf(E);w>-1&&(S.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),f(w,S.length,1,S),f(w,-1,-1,S))}}}return t},v=function(e){b()&&e&&(e.stopPropagation(),e.preventDefault())},y=function(){return(0,c.deferAction)(b)},E=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(p={observerNode:n,portaledElement:t})},S=function(){m="just",setTimeout((function(){m="meanwhile"}),0)};l.mediumFocus.assignSyncMedium(E),l.mediumBlur.assignMedium(y),l.mediumEffect.assignMedium((function(e){return e({moveFocusInside:s.default,focusInside:s.focusInside})}));var w=(0,a.default)((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!u&&(document.addEventListener("focusin",v,!0),document.addEventListener("focusout",y),window.addEventListener("blur",S));var n=u,o=n&&t&&t.id===n.id;u=t,n&&!o&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(h=null,o&&n.observed===t.observed||t.onActivation(),b(),(0,c.deferAction)(b)):(document.removeEventListener("focusin",v,!0),document.removeEventListener("focusout",y),window.removeEventListener("blur",S),h=null)}))((function(){return null}));t.default=w},function(e,t,n){var o=n(1047),r=n(1048),i=n(608),a=n(1049);e.exports=function(e){return o(e)||r(e)||i(e)||a()}},function(e,t,n){var o=n(609);e.exports=function(e){if(Array.isArray(e))return o(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var r=o(n(387)),i=o(n(83)),a=n(82),s=o(a);e.exports=function(e,t){return function(n){var o,c=[];function l(){o=e(c.map((function(e){return e.props}))),t(o)}var d=function(e){function t(){return e.apply(this,arguments)||this}r(t,e),t.peek=function(){return o};var i=t.prototype;return i.componentDidMount=function(){c.push(this),l()},i.componentDidUpdate=function(){l()},i.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),l()},i.render=function(){return s.createElement(n,this.props)},t}(a.PureComponent);return i(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),d}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(290),r=o.__importStar(n(197));t.constants=r;var i=n(1052);t.getFocusabledIn=i.getFocusabledIn;var a=n(1056);t.focusInside=a.focusInside;var s=n(1057);t.focusIsHidden=s.focusIsHidden;var c=n(613);t.focusMerge=c.getFocusMerge;var l=n(1059),d=n(1060);t.focusNextElement=d.focusNextElement,t.focusPrevElement=d.focusPrevElement;var u=o.__importDefault(n(1061));t.tabHook=u.default;var h=n(338);t.getAllAffectedNodes=h.getAllAffectedNodes,t.default=l.setFocus},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(338),r=n(339),i=n(340),a=n(612);t.getFocusabledIn=function(e){var t=o.getAllAffectedNodes(e).filter(i.isNotAGuard),n=a.getTopCommonParent(e,e,t),s=r.getTabbableNodes([n],!0),c=r.getTabbableNodes(t).filter((function(e){var t=e.node;return i.isNotAGuard(t)})).map((function(e){return e.node}));return s.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:c.indexOf(t)>=0,guard:i.isGuard(t)}}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(215);t.tabSort=function(e,t){var n=e.tabIndex-t.tabIndex,o=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||o},t.orderByTabIndex=function(e,n,r){return o.toArray(e).map((function(e,t){return{node:e,index:t,tabIndex:r&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!n||e.tabIndex>=0})).sort(t.tabSort)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(197),r=n(215),i=n(1055).tabbables.join(","),a=i+", [data-focus-guard]";t.getFocusables=function(e,t){return e.reduce((function(e,n){return e.concat(r.toArray(n.querySelectorAll(t?a:i)),n.parentNode?r.toArray(n.parentNode.querySelectorAll(i)).filter((function(e){return e===n})):[])}),[])},t.getParentAutofocusables=function(e){var n=e.querySelectorAll("["+o.FOCUS_AUTO+"]");return r.toArray(n).map((function(e){return t.getFocusables([e])})).reduce((function(e,t){return e.concat(t)}),[])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tabbables=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(338),r=n(215),i=function(e){return Boolean(r.toArray(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))};t.focusInside=function(e){var t=document&&document.activeElement;return!(!t||t.dataset&&t.dataset.focusGuard)&&o.getAllAffectedNodes(e).reduce((function(e,n){return e||n.contains(t)||i(n)}),!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(197),r=n(215);t.focusIsHidden=function(){return document&&r.toArray(document.querySelectorAll("["+o.FOCUS_ALLOW+"]")).some((function(e){return e.contains(document.activeElement)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(614),r=n(615),i=n(340);t.NEW_FOCUS="NEW_FOCUS",t.newFocus=function(e,n,a,s){var c=e.length,l=e[0],d=e[c-1],u=i.isGuard(a);if(!(e.indexOf(a)>=0)){var h=n.indexOf(a),p=s?n.indexOf(s):h,m=s?e.indexOf(s):-1,g=h-p,f=n.indexOf(l),_=n.indexOf(d),b=o.correctNodes(n),v=b.indexOf(a)-(s?b.indexOf(s):h),y=r.pickFocusable(e,0),E=r.pickFocusable(e,c-1);return-1===h||-1===m?t.NEW_FOCUS:!g&&m>=0?m:h<=f&&u&&Math.abs(g)>1?E:h>=_&&u&&Math.abs(g)>1?y:g&&Math.abs(v)>1?m:h<=f?E:h>_?y:g?Math.abs(g)>1?m:(c+m+g)%c:void 0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(613);t.focusOn=function(e){e.focus(),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()};var r=0,i=!1;t.setFocus=function(e,n){var a=o.getFocusMerge(e,n);if(!i&&a){if(r>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),i=!0,void setTimeout((function(){i=!1}),1);r++,t.focusOn(a.node),r--}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(339),r=function(e,t){if(!e||!t||!t.contains(e))return{};var n=o.getTabbableNodes([t]),r=n.findIndex((function(t){return t.node===e}));return-1===r?{}:{prev:n[r-1],next:n[r+1],first:n[0],last:n[n.length-1]}},i=function(e){return Object.assign({scope:document.body,cycle:!0},e)};t.focusNextElement=function(e,t){void 0===t&&(t={});var n=i(t),o=n.scope,a=n.cycle,s=r(e,o),c=s.next,l=s.first,d=c||a&&l;d&&d.node.focus()},t.focusPrevElement=function(e,t){void 0===t&&(t={});var n=i(t),o=n.scope,a=n.cycle,s=r(e,o),c=s.prev,l=s.last,d=c||a&&l;d&&d.node.focus()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={attach:function(){},detach:function(){}}},function(e,t,n){"use strict";var o=n(155),r=n(112);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"FocusLockUI",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"AutoFocusInside",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"MoveFocusInside",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"useFocusInside",{enumerable:!0,get:function(){return s.useFocusInside}}),Object.defineProperty(t,"FreeFocusInside",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"InFocusGuard",{enumerable:!0,get:function(){return l.default}}),t.default=void 0;var i=r(n(607)),a=r(n(1063)),s=o(n(1064)),c=r(n(1065)),l=r(n(610)),d=i.default;t.default=d},function(e,t,n){"use strict";var o=n(155),r=n(112);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(95)),a=o(n(82)),s=(r(n(86)),o(n(197))),c=n(341),l=function(e){var t=e.disabled,n=e.children,o=e.className;return a.createElement("div",(0,i.default)({},(0,c.inlineProp)(s.FOCUS_AUTO,!t),{className:o}),n)};l.propTypes={},l.defaultProps={disabled:!1,className:void 0};var d=l;t.default=d},function(e,t,n){"use strict";var o=n(155),r=n(112);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.useFocusInside=void 0;var i=r(n(95)),a=o(n(82)),s=(r(n(86)),o(n(197))),c=n(341),l=n(436),d=function(e){a.useEffect((function(){var t=!0;return l.mediumEffect.useMedium((function(n){var o=e&&e.current;t&&o&&(n.focusInside(o)||n.moveFocusInside(o,null))})),function(){t=!1}}),[e])};function u(e){var t=e.disabled,n=e.className,o=e.children,r=a.useRef(null);return d(t?void 0:r),a.createElement("div",(0,i.default)({},(0,c.inlineProp)(s.FOCUS_AUTO,!t),{ref:r,className:n}),o)}t.useFocusInside=d,u.propTypes={},u.defaultProps={disabled:!1,className:void 0};var h=u;t.default=h},function(e,t,n){"use strict";var o=n(155),r=n(112);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(95)),a=o(n(82)),s=(r(n(86)),o(n(197))),c=n(341),l=function(e){var t=e.children,n=e.className;return a.createElement("div",(0,i.default)({},(0,c.inlineProp)(s.FOCUS_ALLOW,!0),{className:n}),t)};l.propTypes={},l.defaultProps={className:void 0};var d=l;t.default=d},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return h}));var o=n(88),r=n(248),i=n(132),a=n(173),s=n(249),c=n(214),l=n(94);function d(){var e;return l.a.get().widget_build_url?l.a.get().widget_build_url:null===(e=Object(r.a)())||void 0===e?void 0:e.widget_build_url}function u(){return!!d()}async function h(e){const t=o.a.get().getRoom(e);if(!t)return;if(!i.a.canUserModifyWidgets(e))return void console.error("User not allowed to modify widgets in "+e);const n=d();if(!n)return;let r;try{const t=await fetch(`${n}?roomId=${e}`);r=await t.json()}catch(t){return void console.error("Managed hybrid widget builder failed for room "+e,t)}if(!r)return;const{widget_id:l,widget:u,layout:h}=r;let p=c.a.instance.getApps(e);if(p.some(e=>e.id===l)||s.a.roomHasPendingWidgets(e,[]))return void console.error("Managed hybrid widget already present in room "+e);try{await i.a.setRoomWidgetContent(e,l,u)}catch(t){return void console.error("Unable to add managed hybrid widget in room "+e,t)}if(!a.d.instance.canCopyLayoutToRoom(t))return;p=c.a.instance.getApps(e);const m=p.find(e=>e.id===l);m&&(a.d.instance.moveToContainer(t,m,h.container),a.d.instance.setContainerHeight(t,h.container,h.height),a.d.instance.copyLayoutToRoom(t))}},function(e,t){function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var o=e[t];"object"!=typeof o||Object.isFrozen(o)||n(o)})),e}var o=n,r=n;o.default=r;class i{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data}ignoreMatch(){this.ignore=!0}}function a(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const c=e=>!!e.kind;class l{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=a(e)}openNode(e){if(!c(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){c(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class d{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{d._collapse(e)}))}}class u extends d{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){return new l(this,this.options).value()}finalize(){return!0}}function h(e){return e?"string"==typeof e?e:e.source:null}const p="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",m={begin:"\\\\[\\s\\S]",relevance:0},g={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[m]},f={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[m]},_={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},b=function(e,t,n={}){const o=s({className:"comment",begin:e,end:t,contains:[]},n);return o.contains.push(_),o.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),o},v=b("//","$"),y=b("/\\*","\\*/"),E=b("#","$"),S={className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},w={className:"number",begin:p,relevance:0},C={className:"number",begin:"\\b(0b[01]+)",relevance:0},T={className:"number",begin:"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},x={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[m,{begin:/\[/,end:/\]/,relevance:0,contains:[m]}]}]},O={className:"title",begin:"[a-zA-Z]\\w*",relevance:0},k={className:"title",begin:"[a-zA-Z_]\\w*",relevance:0},R={begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0};var D=Object.freeze({__proto__:null,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:p,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map(e=>h(e)).join("")}(t,/.*\b/,e.binary,/\b.*/)),s({className:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:m,APOS_STRING_MODE:g,QUOTE_STRING_MODE:f,PHRASAL_WORDS_MODE:_,COMMENT:b,C_LINE_COMMENT_MODE:v,C_BLOCK_COMMENT_MODE:y,HASH_COMMENT_MODE:E,NUMBER_MODE:S,C_NUMBER_MODE:w,BINARY_NUMBER_MODE:C,CSS_NUMBER_MODE:T,REGEXP_MODE:x,TITLE_MODE:O,UNDERSCORE_TITLE_MODE:k,METHOD_GUARD:R,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function I(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function A(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=I,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords)}function N(e,t){Array.isArray(e.illegal)&&(e.illegal=function(...e){return"("+e.map(e=>h(e)).join("|")+")"}(...e.illegal))}function F(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function M(e,t){void 0===e.relevance&&(e.relevance=1)}const P=["of","and","for","in","not","or","if","then","parent","list","value"];function L(e,t){return t?Number(t):function(e){return P.includes(e.toLowerCase())}(e)?0:1}function j(e,{plugins:t}){function n(t,n){return new RegExp(h(t),"m"+(e.case_insensitive?"i":"")+(n?"g":""))}class o{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=function(e){return new RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=n(function(e,t="|"){const n=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;let o=0,r="";for(let i=0;i<e.length;i++){o+=1;const a=o;let s=h(e[i]);for(i>0&&(r+=t),r+="(";s.length>0;){const e=n.exec(s);if(null==e){r+=s;break}r+=s.substring(0,e.index),s=s.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+String(Number(e[1])+a):(r+=e[0],"("===e[0]&&o++)}r+=")"}return r}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex((e,t)=>t>0&&void 0!==e),o=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,o)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new o;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=s(e.classNameAliases||{}),function t(o,i){const a=o;if(o.compiled)return a;[F].forEach(e=>e(o,i)),e.compilerExtensions.forEach(e=>e(o,i)),o.__beforeBegin=null,[A,N,M].forEach(e=>e(o,i)),o.compiled=!0;let c=null;if("object"==typeof o.keywords&&(c=o.keywords.$pattern,delete o.keywords.$pattern),o.keywords&&(o.keywords=function(e,t){const n={};return"string"==typeof e?o("keyword",e):Object.keys(e).forEach((function(t){o(t,e[t])})),n;function o(e,o){t&&(o=o.toLowerCase()),o.split(" ").forEach((function(t){const o=t.split("|");n[o[0]]=[e,L(o[0],o[1])]}))}}(o.keywords,e.case_insensitive)),o.lexemes&&c)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return c=c||o.lexemes||/\w+/,a.keywordPatternRe=n(c,!0),i&&(o.begin||(o.begin=/\B|\b/),a.beginRe=n(o.begin),o.endSameAsBegin&&(o.end=o.begin),o.end||o.endsWithParent||(o.end=/\B|\b/),o.end&&(a.endRe=n(o.end)),a.terminatorEnd=h(o.end)||"",o.endsWithParent&&i.terminatorEnd&&(a.terminatorEnd+=(o.end?"|":"")+i.terminatorEnd)),o.illegal&&(a.illegalRe=n(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return s(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants;if(function e(t){return!!t&&(t.endsWithParent||e(t.starts))}(e))return s(e,{starts:e.starts?s(e.starts):null});if(Object.isFrozen(e))return s(e);return e}("self"===e?o:e)}))),o.contains.forEach((function(e){t(e,a)})),o.starts&&t(o.starts,i),a.matcher=function(e){const t=new r;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(a),a}(e)}function U(e){const t={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,a(this.code);let t={};return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||(e=this.autodetect,Boolean(e||""===e));var e},ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(e){e.component("highlightjs",t)}}}}const B={"after:highlightBlock":({block:e,result:t,text:n})=>{const o=G(e);if(!o.length)return;const r=document.createElement("div");r.innerHTML=t.value,t.value=function(e,t,n){let o=0,r="";const i=[];function s(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function c(e){r+="<"+q(e)+[].map.call(e.attributes,(function(e){return" "+e.nodeName+'="'+a(e.value)+'"'})).join("")+">"}function l(e){r+="</"+q(e)+">"}function d(e){("start"===e.event?c:l)(e.node)}for(;e.length||t.length;){let t=s();if(r+=a(n.substring(o,t[0].offset)),o=t[0].offset,t===e){i.reverse().forEach(l);do{d(t.splice(0,1)[0]),t=s()}while(t===e&&t.length&&t[0].offset===o);i.reverse().forEach(c)}else"start"===t[0].event?i.push(t[0].node):i.pop(),d(t.splice(0,1)[0])}return r+a(n.substr(o))}(o,G(r),n)}};function q(e){return e.nodeName.toLowerCase()}function G(e){const t=[];return function e(n,o){for(let r=n.firstChild;r;r=r.nextSibling)3===r.nodeType?o+=r.nodeValue.length:1===r.nodeType&&(t.push({event:"start",offset:o,node:r}),o=e(r,o),q(r).match(/br|hr|img|input/)||t.push({event:"stop",offset:o,node:r}));return o}(e,0),t}const V=e=>{console.error(e)},H=(e,...t)=>{console.log("WARN: "+e,...t)},z=(e,t)=>{console.log(`Deprecated as of ${e}. ${t}`)},K=a,W=s,Y=Symbol("nomatch");var $=function(e){const t=Object.create(null),n=Object.create(null),r=[];let a=!0;const s=/(^(<[^>]+>|\t|)+|\n)/gm,c="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let d={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:u};function h(e){return d.noHighlightRe.test(e)}function p(e,t,n,o){const r={code:t,language:e};C("before:highlight",r);const i=r.result?r.result:m(r.language,r.code,n,o);return i.code=r.code,C("after:highlight",i),i}function m(e,n,o,s){const l=n;function u(e,t){const n=S.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]}function h(){null!=T.subLanguage?function(){if(""===k)return;let e=null;if("string"==typeof T.subLanguage){if(!t[T.subLanguage])return void O.addText(k);e=m(T.subLanguage,k,!0,x[T.subLanguage]),x[T.subLanguage]=e.top}else e=g(k,T.subLanguage.length?T.subLanguage:null);T.relevance>0&&(R+=e.relevance),O.addSublanguage(e.emitter,e.language)}():function(){if(!T.keywords)return void O.addText(k);let e=0;T.keywordPatternRe.lastIndex=0;let t=T.keywordPatternRe.exec(k),n="";for(;t;){n+=k.substring(e,t.index);const o=u(T,t);if(o){const[e,r]=o;O.addText(n),n="",R+=r;const i=S.classNameAliases[e]||e;O.addKeyword(t[0],i)}else n+=t[0];e=T.keywordPatternRe.lastIndex,t=T.keywordPatternRe.exec(k)}n+=k.substr(e),O.addText(n)}(),k=""}function p(e){return e.className&&O.openNode(S.classNameAliases[e.className]||e.className),T=Object.create(e,{parent:{value:T}}),T}function f(e){return 0===T.matcher.regexIndex?(k+=e[0],1):(A=!0,0)}function _(e){const t=e[0],n=e.rule,o=new i(n),r=[n.__beforeBegin,n["on:begin"]];for(const n of r)if(n&&(n(e,o),o.ignore))return f(t);return n&&n.endSameAsBegin&&(n.endRe=new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),n.skip?k+=t:(n.excludeBegin&&(k+=t),h(),n.returnBegin||n.excludeBegin||(k=t)),p(n),n.returnBegin?0:t.length}function b(e){const t=e[0],n=l.substr(e.index),o=function e(t,n,o){let r=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(t.endRe,o);if(r){if(t["on:end"]){const e=new i(t);t["on:end"](n,e),e.ignore&&(r=!1)}if(r){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return e(t.parent,n,o)}(T,e,n);if(!o)return Y;const r=T;r.skip?k+=t:(r.returnEnd||r.excludeEnd||(k+=t),h(),r.excludeEnd&&(k=t));do{T.className&&O.closeNode(),T.skip||T.subLanguage||(R+=T.relevance),T=T.parent}while(T!==o.parent);return o.starts&&(o.endSameAsBegin&&(o.starts.endRe=o.endRe),p(o.starts)),r.returnEnd?0:t.length}let v={};function y(t,n){const r=n&&n[0];if(k+=t,null==r)return h(),0;if("begin"===v.type&&"end"===n.type&&v.index===n.index&&""===r){if(k+=l.slice(n.index,n.index+1),!a){const t=new Error("0 width match regex");throw t.languageName=e,t.badRule=v.rule,t}return 1}if(v=n,"begin"===n.type)return _(n);if("illegal"===n.type&&!o){const e=new Error('Illegal lexeme "'+r+'" for mode "'+(T.className||"<unnamed>")+'"');throw e.mode=T,e}if("end"===n.type){const e=b(n);if(e!==Y)return e}if("illegal"===n.type&&""===r)return 1;if(I>1e5&&I>3*n.index){throw new Error("potential infinite loop, way more iterations than matches")}return k+=r,r.length}const S=E(e);if(!S)throw V(c.replace("{}",e)),new Error('Unknown language: "'+e+'"');const w=j(S,{plugins:r});let C="",T=s||w;const x={},O=new d.__emitter(d);!function(){const e=[];for(let t=T;t!==S;t=t.parent)t.className&&e.unshift(t.className);e.forEach(e=>O.openNode(e))}();let k="",R=0,D=0,I=0,A=!1;try{for(T.matcher.considerAll();;){I++,A?A=!1:T.matcher.considerAll(),T.matcher.lastIndex=D;const e=T.matcher.exec(l);if(!e)break;const t=y(l.substring(D,e.index),e);D=e.index+t}return y(l.substr(D)),O.closeAllNodes(),O.finalize(),C=O.toHTML(),{relevance:R,value:C,language:e,illegal:!1,emitter:O,top:T}}catch(t){if(t.message&&t.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:t.message,context:l.slice(D-100,D+100),mode:t.mode},sofar:C,relevance:0,value:K(l),emitter:O};if(a)return{illegal:!1,relevance:0,value:K(l),emitter:O,language:e,top:T,errorRaised:t};throw t}}function g(e,n){n=n||d.languages||Object.keys(t);const o=function(e){const t={relevance:0,emitter:new d.__emitter(d),value:K(e),illegal:!1,top:l};return t.emitter.addText(e),t}(e),r=n.filter(E).filter(w).map(t=>m(t,e,!1));r.unshift(o);const i=r.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(E(e.language).supersetOf===t.language)return 1;if(E(t.language).supersetOf===e.language)return-1}return 0}),[a,s]=i,c=a;return c.second_best=s,c}const f={"before:highlightBlock":({block:e})=>{d.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,"\n"))},"after:highlightBlock":({result:e})=>{d.useBR&&(e.value=e.value.replace(/\n/g,"<br>"))}},_=/^(<[^>]+>|\t)+/gm,b={"after:highlightBlock":({result:e})=>{d.tabReplace&&(e.value=e.value.replace(_,e=>e.replace(/\t/g,d.tabReplace)))}};function v(e){let t=null;const o=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=d.languageDetectRe.exec(t);if(n){const t=E(n[1]);return t||(H(c.replace("{}",n[1])),H("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find(e=>h(e)||E(e))}(e);if(h(o))return;C("before:highlightBlock",{block:e,language:o}),t=e;const r=t.textContent,i=o?p(o,r,!0):g(r);C("after:highlightBlock",{block:e,result:i,text:r}),e.innerHTML=i.value,function(e,t,o){const r=t?n[t]:o;e.classList.add("hljs"),r&&e.classList.add(r)}(e,o,i.language),e.result={language:i.language,re:i.relevance,relavance:i.relevance},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.relevance,relavance:i.second_best.relevance})}const y=()=>{if(y.called)return;y.called=!0;document.querySelectorAll("pre code").forEach(v)};function E(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function S(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{n[e]=t})}function w(e){const t=E(e);return t&&!t.disableAutodetect}function C(e,t){const n=e;r.forEach((function(e){e[n]&&e[n](t)}))}Object.assign(e,{highlight:p,highlightAuto:g,fixMarkup:function(e){return z("10.2.0","fixMarkup will be removed entirely in v11.0"),z("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),t=e,d.tabReplace||d.useBR?t.replace(s,e=>"\n"===e?d.useBR?"<br>":e:d.tabReplace?e.replace(/\t/g,d.tabReplace):e):t;var t},highlightBlock:v,configure:function(e){e.useBR&&(z("10.3.0","'useBR' will be removed entirely in v11.0"),z("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),d=W(d,e)},initHighlighting:y,initHighlightingOnLoad:function(){window.addEventListener("DOMContentLoaded",y,!1)},registerLanguage:function(n,o){let r=null;try{r=o(e)}catch(e){if(V("Language definition for '{}' could not be registered.".replace("{}",n)),!a)throw e;V(e),r=l}r.name||(r.name=n),t[n]=r,r.rawDefinition=o.bind(null,e),r.aliases&&S(r.aliases,{languageName:n})},listLanguages:function(){return Object.keys(t)},getLanguage:E,registerAliases:S,requireLanguage:function(e){z("10.4.0","requireLanguage will be removed entirely in v11."),z("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const t=E(e);if(t)return t;throw new Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:w,inherit:W,addPlugin:function(e){r.push(e)},vuePlugin:U(e).VuePlugin}),e.debugMode=function(){a=!1},e.safeMode=function(){a=!0},e.versionString="10.5.0";for(const e in D)"object"==typeof D[e]&&o(D[e]);return Object.assign(e,D),e.addPlugin(f),e.addPlugin(B),e.addPlugin(b),e}({});e.exports=$},function(e,t){e.exports=function(e){var t="[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]+",n="далее возврат вызватьисключение выполнить для если и из или иначе иначеесли исключение каждого конецесли конецпопытки конеццикла не новый перейти перем по пока попытка прервать продолжить тогда цикл экспорт ",o="null истина ложь неопределено",r=e.inherit(e.NUMBER_MODE),i={className:"string",begin:'"|\\|',end:'"|$',contains:[{begin:'""'}]},a={begin:"'",end:"'",excludeBegin:!0,excludeEnd:!0,contains:[{className:"number",begin:"\\d{4}([\\.\\\\/:-]?\\d{2}){0,5}"}]},s=e.inherit(e.C_LINE_COMMENT_MODE);return{name:"1C:Enterprise",case_insensitive:!0,keywords:{$pattern:t,keyword:n,built_in:"разделительстраниц разделительстрок символтабуляции ansitooem oemtoansi ввестивидсубконто ввестиперечисление ввестипериод ввестиплансчетов выбранныйплансчетов датагод датамесяц датачисло заголовоксистемы значениевстроку значениеизстроки каталогиб каталогпользователя кодсимв конгода конецпериодаби конецрассчитанногопериодаби конецстандартногоинтервала конквартала конмесяца коннедели лог лог10 максимальноеколичествосубконто названиеинтерфейса названиенабораправ назначитьвид назначитьсчет найтиссылки началопериодаби началостандартногоинтервала начгода начквартала начмесяца начнедели номерднягода номерднянедели номернеделигода обработкаожидания основнойжурналрасчетов основнойплансчетов основнойязык очиститьокносообщений периодстр получитьвремята получитьдатута получитьдокументта получитьзначенияотбора получитьпозициюта получитьпустоезначение получитьта префиксавтонумерации пропись пустоезначение разм разобратьпозициюдокумента рассчитатьрегистрына рассчитатьрегистрыпо симв создатьобъект статусвозврата стрколичествострок сформироватьпозициюдокумента счетпокоду текущеевремя типзначения типзначениястр установитьтана установитьтапо фиксшаблон шаблон acos asin atan base64значение base64строка cos exp log log10 pow sin sqrt tan xmlзначение xmlстрока xmlтип xmlтипзнч активноеокно безопасныйрежим безопасныйрежимразделенияданных булево ввестидату ввестизначение ввестистроку ввестичисло возможностьчтенияxml вопрос восстановитьзначение врег выгрузитьжурналрегистрации выполнитьобработкуоповещения выполнитьпроверкуправдоступа вычислить год данныеформывзначение дата день деньгода деньнедели добавитьмесяц заблокироватьданныедляредактирования заблокироватьработупользователя завершитьработусистемы загрузитьвнешнююкомпоненту закрытьсправку записатьjson записатьxml записатьдатуjson записьжурналарегистрации заполнитьзначениясвойств запроситьразрешениепользователя запуститьприложение запуститьсистему зафиксироватьтранзакцию значениевданныеформы значениевстрокувнутр значениевфайл значениезаполнено значениеизстрокивнутр значениеизфайла изxmlтипа импортмоделиxdto имякомпьютера имяпользователя инициализироватьпредопределенныеданные информацияобошибке каталогбиблиотекимобильногоустройства каталогвременныхфайлов каталогдокументов каталогпрограммы кодироватьстроку кодлокализацииинформационнойбазы кодсимвола командасистемы конецгода конецдня конецквартала конецмесяца конецминуты конецнедели конецчаса конфигурациябазыданныхизмененадинамически конфигурацияизменена копироватьданныеформы копироватьфайл краткоепредставлениеошибки лев макс местноевремя месяц мин минута монопольныйрежим найти найтинедопустимыесимволыxml найтиокнопонавигационнойссылке найтипомеченныенаудаление найтипоссылкам найтифайлы началогода началодня началоквартала началомесяца началоминуты началонедели началочаса начатьзапросразрешенияпользователя начатьзапускприложения начатькопированиефайла начатьперемещениефайла начатьподключениевнешнейкомпоненты начатьподключениерасширенияработыскриптографией начатьподключениерасширенияработысфайлами начатьпоискфайлов начатьполучениекаталогавременныхфайлов начатьполучениекаталогадокументов начатьполучениерабочегокаталогаданныхпользователя начатьполучениефайлов начатьпомещениефайла начатьпомещениефайлов начатьсозданиедвоичныхданныхизфайла начатьсозданиекаталога начатьтранзакцию начатьудалениефайлов начатьустановкувнешнейкомпоненты начатьустановкурасширенияработыскриптографией начатьустановкурасширенияработысфайлами неделягода необходимостьзавершениясоединения номерсеансаинформационнойбазы номерсоединенияинформационнойбазы нрег нстр обновитьинтерфейс обновитьнумерациюобъектов обновитьповторноиспользуемыезначения обработкапрерыванияпользователя объединитьфайлы окр описаниеошибки оповестить оповеститьобизменении отключитьобработчикзапросанастроекклиенталицензирования отключитьобработчикожидания отключитьобработчикоповещения открытьзначение открытьиндекссправки открытьсодержаниесправки открытьсправку открытьформу открытьформумодально отменитьтранзакцию очиститьжурналрегистрации очиститьнастройкипользователя очиститьсообщения параметрыдоступа перейтипонавигационнойссылке переместитьфайл подключитьвнешнююкомпоненту подключитьобработчикзапросанастроекклиенталицензирования подключитьобработчикожидания подключитьобработчикоповещения подключитьрасширениеработыскриптографией подключитьрасширениеработысфайлами подробноепредставлениеошибки показатьвводдаты показатьвводзначения показатьвводстроки показатьвводчисла показатьвопрос показатьзначение показатьинформациюобошибке показатьнакарте показатьоповещениепользователя показатьпредупреждение полноеимяпользователя получитьcomобъект получитьxmlтип получитьадреспоместоположению получитьблокировкусеансов получитьвремязавершенияспящегосеанса получитьвремязасыпанияпассивногосеанса получитьвремяожиданияблокировкиданных получитьданныевыбора получитьдополнительныйпараметрклиенталицензирования получитьдопустимыекодылокализации получитьдопустимыечасовыепояса получитьзаголовокклиентскогоприложения получитьзаголовоксистемы получитьзначенияотборажурналарегистрации получитьидентификаторконфигурации получитьизвременногохранилища получитьимявременногофайла получитьимяклиенталицензирования получитьинформациюэкрановклиента получитьиспользованиежурналарегистрации получитьиспользованиесобытияжурналарегистрации получитькраткийзаголовокприложения получитьмакетоформления получитьмаскувсефайлы получитьмаскувсефайлыклиента получитьмаскувсефайлысервера получитьместоположениепоадресу получитьминимальнуюдлинупаролейпользователей получитьнавигационнуюссылку получитьнавигационнуюссылкуинформационнойбазы получитьобновлениеконфигурациибазыданных получитьобновлениепредопределенныхданныхинформационнойбазы получитьобщиймакет получитьобщуюформу получитьокна получитьоперативнуюотметкувремени получитьотключениебезопасногорежима получитьпараметрыфункциональныхопцийинтерфейса получитьполноеимяпредопределенногозначения получитьпредставлениянавигационныхссылок получитьпроверкусложностипаролейпользователей получитьразделительпути получитьразделительпутиклиента получитьразделительпутисервера получитьсеансыинформационнойбазы получитьскоростьклиентскогосоединения получитьсоединенияинформационнойбазы получитьсообщенияпользователю получитьсоответствиеобъектаиформы получитьсоставстандартногоинтерфейсаodata получитьструктурухранениябазыданных получитьтекущийсеансинформационнойбазы получитьфайл получитьфайлы получитьформу получитьфункциональнуюопцию получитьфункциональнуюопциюинтерфейса получитьчасовойпоясинформационнойбазы пользователиос поместитьвовременноехранилище поместитьфайл поместитьфайлы прав праводоступа предопределенноезначение представлениекодалокализации представлениепериода представлениеправа представлениеприложения представлениесобытияжурналарегистрации представлениечасовогопояса предупреждение прекратитьработусистемы привилегированныйрежим продолжитьвызов прочитатьjson прочитатьxml прочитатьдатуjson пустаястрока рабочийкаталогданныхпользователя разблокироватьданныедляредактирования разделитьфайл разорватьсоединениесвнешнимисточникомданных раскодироватьстроку рольдоступна секунда сигнал символ скопироватьжурналрегистрации смещениелетнеговремени смещениестандартноговремени соединитьбуферыдвоичныхданных создатькаталог создатьфабрикуxdto сокрл сокрлп сокрп сообщить состояние сохранитьзначение сохранитьнастройкипользователя сред стрдлина стрзаканчиваетсяна стрзаменить стрнайти стрначинаетсяс строка строкасоединенияинформационнойбазы стрполучитьстроку стрразделить стрсоединить стрсравнить стрчисловхождений стрчислострок стршаблон текущаядата текущаядатасеанса текущаяуниверсальнаядата текущаяуниверсальнаядатавмиллисекундах текущийвариантинтерфейсаклиентскогоприложения текущийвариантосновногошрифтаклиентскогоприложения текущийкодлокализации текущийрежимзапуска текущийязык текущийязыксистемы тип типзнч транзакцияактивна трег удалитьданныеинформационнойбазы удалитьизвременногохранилища удалитьобъекты удалитьфайлы универсальноевремя установитьбезопасныйрежим установитьбезопасныйрежимразделенияданных установитьблокировкусеансов установитьвнешнююкомпоненту установитьвремязавершенияспящегосеанса установитьвремязасыпанияпассивногосеанса установитьвремяожиданияблокировкиданных установитьзаголовокклиентскогоприложения установитьзаголовоксистемы установитьиспользованиежурналарегистрации установитьиспользованиесобытияжурналарегистрации установитькраткийзаголовокприложения установитьминимальнуюдлинупаролейпользователей установитьмонопольныйрежим установитьнастройкиклиенталицензирования установитьобновлениепредопределенныхданныхинформационнойбазы установитьотключениебезопасногорежима установитьпараметрыфункциональныхопцийинтерфейса установитьпривилегированныйрежим установитьпроверкусложностипаролейпользователей установитьрасширениеработыскриптографией установитьрасширениеработысфайлами установитьсоединениесвнешнимисточникомданных установитьсоответствиеобъектаиформы установитьсоставстандартногоинтерфейсаodata установитьчасовойпоясинформационнойбазы установитьчасовойпояссеанса формат цел час часовойпояс часовойпояссеанса число числопрописью этоадресвременногохранилища wsссылки библиотекакартинок библиотекамакетовоформлениякомпоновкиданных библиотекастилей бизнеспроцессы внешниеисточникиданных внешниеобработки внешниеотчеты встроенныепокупки главныйинтерфейс главныйстиль документы доставляемыеуведомления журналыдокументов задачи информацияобинтернетсоединении использованиерабочейдаты историяработыпользователя константы критерииотбора метаданные обработки отображениерекламы отправкадоставляемыхуведомлений отчеты панельзадачос параметрзапуска параметрысеанса перечисления планывидоврасчета планывидовхарактеристик планыобмена планысчетов полнотекстовыйпоиск пользователиинформационнойбазы последовательности проверкавстроенныхпокупок рабочаядата расширенияконфигурации регистрыбухгалтерии регистрынакопления регистрырасчета регистрысведений регламентныезадания сериализаторxdto справочники средствагеопозиционирования средствакриптографии средствамультимедиа средстваотображениярекламы средствапочты средствателефонии фабрикаxdto файловыепотоки фоновыезадания хранилищанастроек хранилищевариантовотчетов хранилищенастроекданныхформ хранилищеобщихнастроек хранилищепользовательскихнастроекдинамическихсписков хранилищепользовательскихнастроекотчетов хранилищесистемныхнастроек ",class:"webцвета windowsцвета windowsшрифты библиотекакартинок рамкистиля символы цветастиля шрифтыстиля автоматическоесохранениеданныхформывнастройках автонумерациявформе автораздвижениесерий анимациядиаграммы вариантвыравниванияэлементовизаголовков вариантуправлениявысотойтаблицы вертикальнаяпрокруткаформы вертикальноеположение вертикальноеположениеэлемента видгруппыформы виддекорацииформы виддополненияэлементаформы видизмененияданных видкнопкиформы видпереключателя видподписейкдиаграмме видполяформы видфлажка влияниеразмеранапузырекдиаграммы горизонтальноеположение горизонтальноеположениеэлемента группировкаколонок группировкаподчиненныхэлементовформы группыиэлементы действиеперетаскивания дополнительныйрежимотображения допустимыедействияперетаскивания интервалмеждуэлементамиформы использованиевывода использованиеполосыпрокрутки используемоезначениеточкибиржевойдиаграммы историявыборапривводе источникзначенийоситочекдиаграммы источникзначенияразмерапузырькадиаграммы категориягруппыкоманд максимумсерий начальноеотображениедерева начальноеотображениесписка обновлениетекстаредактирования ориентациядендрограммы ориентациядиаграммы ориентацияметокдиаграммы ориентацияметоксводнойдиаграммы ориентацияэлементаформы отображениевдиаграмме отображениевлегендедиаграммы отображениегруппыкнопок отображениезаголовкашкалыдиаграммы отображениезначенийсводнойдиаграммы отображениезначенияизмерительнойдиаграммы отображениеинтерваладиаграммыганта отображениекнопки отображениекнопкивыбора отображениеобсужденийформы отображениеобычнойгруппы отображениеотрицательныхзначенийпузырьковойдиаграммы отображениепанелипоиска отображениеподсказки отображениепредупрежденияприредактировании отображениеразметкиполосырегулирования отображениестраницформы отображениетаблицы отображениетекстазначениядиаграммыганта отображениеуправленияобычнойгруппы отображениефигурыкнопки палитрацветовдиаграммы поведениеобычнойгруппы поддержкамасштабадендрограммы поддержкамасштабадиаграммыганта поддержкамасштабасводнойдиаграммы поисквтаблицепривводе положениезаголовкаэлементаформы положениекартинкикнопкиформы положениекартинкиэлементаграфическойсхемы положениекоманднойпанелиформы положениекоманднойпанелиэлементаформы положениеопорнойточкиотрисовки положениеподписейкдиаграмме положениеподписейшкалызначенийизмерительнойдиаграммы положениесостоянияпросмотра положениестрокипоиска положениетекстасоединительнойлинии положениеуправленияпоиском положениешкалывремени порядокотображенияточекгоризонтальнойгистограммы порядоксерийвлегендедиаграммы размеркартинки расположениезаголовкашкалыдиаграммы растягиваниеповертикалидиаграммыганта режимавтоотображениясостояния режимвводастроктаблицы режимвыборанезаполненного режимвыделениядаты режимвыделениястрокитаблицы режимвыделениятаблицы режимизмененияразмера режимизменениясвязанногозначения режимиспользованиядиалогапечати режимиспользованияпараметракоманды режиммасштабированияпросмотра режимосновногоокнаклиентскогоприложения режимоткрытияокнаформы режимотображениявыделения режимотображениягеографическойсхемы режимотображениязначенийсерии режимотрисовкисеткиграфическойсхемы режимполупрозрачностидиаграммы режимпробеловдиаграммы режимразмещениянастранице режимредактированияколонки режимсглаживаниядиаграммы режимсглаживанияиндикатора режимсписказадач сквозноевыравнивание сохранениеданныхформывнастройках способзаполнениятекстазаголовкашкалыдиаграммы способопределенияограничивающегозначениядиаграммы стандартнаягруппакоманд стандартноеоформление статусоповещенияпользователя стильстрелки типаппроксимациилиниитрендадиаграммы типдиаграммы типединицышкалывремени типимпортасерийслоягеографическойсхемы типлиниигеографическойсхемы типлиниидиаграммы типмаркерагеографическойсхемы типмаркерадиаграммы типобластиоформления типорганизацииисточникаданныхгеографическойсхемы типотображениясериислоягеографическойсхемы типотображенияточечногообъектагеографическойсхемы типотображенияшкалыэлементалегендыгеографическойсхемы типпоискаобъектовгеографическойсхемы типпроекциигеографическойсхемы типразмещенияизмерений типразмещенияреквизитовизмерений типрамкиэлементауправления типсводнойдиаграммы типсвязидиаграммыганта типсоединениязначенийпосериямдиаграммы типсоединенияточекдиаграммы типсоединительнойлинии типстороныэлементаграфическойсхемы типформыотчета типшкалырадарнойдиаграммы факторлиниитрендадиаграммы фигуракнопки фигурыграфическойсхемы фиксациявтаблице форматдняшкалывремени форматкартинки ширинаподчиненныхэлементовформы виддвижениябухгалтерии виддвижениянакопления видпериодарегистрарасчета видсчета видточкимаршрутабизнеспроцесса использованиеагрегатарегистранакопления использованиегруппиэлементов использованиережимапроведения использованиесреза периодичностьагрегатарегистранакопления режимавтовремя режимзаписидокумента режимпроведениядокумента авторегистрацияизменений допустимыйномерсообщения отправкаэлементаданных получениеэлементаданных использованиерасшифровкитабличногодокумента ориентациястраницы положениеитоговколоноксводнойтаблицы положениеитоговстроксводнойтаблицы положениетекстаотносительнокартинки расположениезаголовкагруппировкитабличногодокумента способчтениязначенийтабличногодокумента типдвустороннейпечати типзаполненияобластитабличногодокумента типкурсоровтабличногодокумента типлиниирисункатабличногодокумента типлинииячейкитабличногодокумента типнаправленияпереходатабличногодокумента типотображениявыделениятабличногодокумента типотображениялинийсводнойтаблицы типразмещениятекстатабличногодокумента типрисункатабличногодокумента типсмещениятабличногодокумента типузоратабличногодокумента типфайлатабличногодокумента точностьпечати чередованиерасположениястраниц отображениевремениэлементовпланировщика типфайлаформатированногодокумента обходрезультатазапроса типзаписизапроса видзаполнениярасшифровкипостроителяотчета типдобавленияпредставлений типизмеренияпостроителяотчета типразмещенияитогов доступкфайлу режимдиалогавыборафайла режимоткрытияфайла типизмеренияпостроителязапроса видданныханализа методкластеризации типединицыинтервалавременианализаданных типзаполнениятаблицырезультатаанализаданных типиспользованиячисловыхзначенийанализаданных типисточникаданныхпоискаассоциаций типколонкианализаданныхдереворешений типколонкианализаданныхкластеризация типколонкианализаданныхобщаястатистика типколонкианализаданныхпоискассоциаций типколонкианализаданныхпоискпоследовательностей типколонкимоделипрогноза типмерырасстоянияанализаданных типотсеченияправилассоциации типполяанализаданных типстандартизациианализаданных типупорядочиванияправилассоциациианализаданных типупорядочиванияшаблоновпоследовательностейанализаданных типупрощениядереварешений wsнаправлениепараметра вариантxpathxs вариантзаписидатыjson вариантпростоготипаxs видгруппымоделиxs видфасетаxdto действиепостроителяdom завершенностьпростоготипаxs завершенностьсоставноготипаxs завершенностьсхемыxs запрещенныеподстановкиxs исключениягруппподстановкиxs категорияиспользованияатрибутаxs категорияограниченияидентичностиxs категорияограниченияпространствименxs методнаследованияxs модельсодержимогоxs назначениетипаxml недопустимыеподстановкиxs обработкапробельныхсимволовxs обработкасодержимогоxs ограничениезначенияxs параметрыотбораузловdom переносстрокjson позициявдокументеdom пробельныесимволыxml типатрибутаxml типзначенияjson типканоническогоxml типкомпонентыxs типпроверкиxml типрезультатаdomxpath типузлаdom типузлаxml формаxml формапредставленияxs форматдатыjson экранированиесимволовjson видсравнениякомпоновкиданных действиеобработкирасшифровкикомпоновкиданных направлениесортировкикомпоновкиданных расположениевложенныхэлементоврезультатакомпоновкиданных расположениеитоговкомпоновкиданных расположениегруппировкикомпоновкиданных расположениеполейгруппировкикомпоновкиданных расположениеполякомпоновкиданных расположениереквизитовкомпоновкиданных расположениересурсовкомпоновкиданных типбухгалтерскогоостаткакомпоновкиданных типвыводатекстакомпоновкиданных типгруппировкикомпоновкиданных типгруппыэлементовотборакомпоновкиданных типдополненияпериодакомпоновкиданных типзаголовкаполейкомпоновкиданных типмакетагруппировкикомпоновкиданных типмакетаобластикомпоновкиданных типостаткакомпоновкиданных типпериодакомпоновкиданных типразмещениятекстакомпоновкиданных типсвязинаборовданныхкомпоновкиданных типэлементарезультатакомпоновкиданных расположениелегендыдиаграммыкомпоновкиданных типпримененияотборакомпоновкиданных режимотображенияэлементанастройкикомпоновкиданных режимотображениянастроеккомпоновкиданных состояниеэлементанастройкикомпоновкиданных способвосстановлениянастроеккомпоновкиданных режимкомпоновкирезультата использованиепараметракомпоновкиданных автопозицияресурсовкомпоновкиданных вариантиспользованиягруппировкикомпоновкиданных расположениересурсоввдиаграммекомпоновкиданных фиксациякомпоновкиданных использованиеусловногооформлениякомпоновкиданных важностьинтернетпочтовогосообщения обработкатекстаинтернетпочтовогосообщения способкодированияинтернетпочтовоговложения способкодированиянеasciiсимволовинтернетпочтовогосообщения типтекстапочтовогосообщения протоколинтернетпочты статусразборапочтовогосообщения режимтранзакциизаписижурналарегистрации статустранзакциизаписижурналарегистрации уровеньжурналарегистрации расположениехранилищасертификатовкриптографии режимвключениясертификатовкриптографии режимпроверкисертификатакриптографии типхранилищасертификатовкриптографии кодировкаименфайловвzipфайле методсжатияzip методшифрованияzip режимвосстановленияпутейфайловzip режимобработкиподкаталоговzip режимсохраненияпутейzip уровеньсжатияzip звуковоеоповещение направлениепереходакстроке позициявпотоке порядокбайтов режимблокировкиданных режимуправленияблокировкойданных сервисвстроенныхпокупок состояниефоновогозадания типподписчикадоставляемыхуведомлений уровеньиспользованиязащищенногосоединенияftp направлениепорядкасхемызапроса типдополненияпериодамисхемызапроса типконтрольнойточкисхемызапроса типобъединениясхемызапроса типпараметрадоступнойтаблицысхемызапроса типсоединениясхемызапроса httpметод автоиспользованиеобщегореквизита автопрефиксномеразадачи вариантвстроенногоязыка видиерархии видрегистранакопления видтаблицывнешнегоисточникаданных записьдвиженийприпроведении заполнениепоследовательностей индексирование использованиебазыпланавидоврасчета использованиебыстроговыбора использованиеобщегореквизита использованиеподчинения использованиеполнотекстовогопоиска использованиеразделяемыхданныхобщегореквизита использованиереквизита назначениеиспользованияприложения назначениерасширенияконфигурации направлениепередачи обновлениепредопределенныхданных оперативноепроведение основноепредставлениевидарасчета основноепредставлениевидахарактеристики основноепредставлениезадачи основноепредставлениепланаобмена основноепредставлениесправочника основноепредставлениесчета перемещениеграницыприпроведении периодичностьномерабизнеспроцесса периодичностьномерадокумента периодичностьрегистрарасчета периодичностьрегистрасведений повторноеиспользованиевозвращаемыхзначений полнотекстовыйпоискпривводепостроке принадлежностьобъекта проведение разделениеаутентификацииобщегореквизита разделениеданныхобщегореквизита разделениерасширенийконфигурацииобщегореквизита режимавтонумерацииобъектов режимзаписирегистра режимиспользованиямодальности режимиспользованиясинхронныхвызововрасширенийплатформыивнешнихкомпонент режимповторногоиспользованиясеансов режимполученияданныхвыборапривводепостроке режимсовместимости режимсовместимостиинтерфейса режимуправленияблокировкойданныхпоумолчанию сериикодовпланавидовхарактеристик сериикодовпланасчетов сериикодовсправочника созданиепривводе способвыбора способпоискастрокипривводепостроке способредактирования типданныхтаблицывнешнегоисточникаданных типкодапланавидоврасчета типкодасправочника типмакета типномерабизнеспроцесса типномерадокумента типномеразадачи типформы удалениедвижений важностьпроблемыприменениярасширенияконфигурации вариантинтерфейсаклиентскогоприложения вариантмасштабаформклиентскогоприложения вариантосновногошрифтаклиентскогоприложения вариантстандартногопериода вариантстандартнойдатыначала видграницы видкартинки видотображенияполнотекстовогопоиска видрамки видсравнения видцвета видчисловогозначения видшрифта допустимаядлина допустимыйзнак использованиеbyteordermark использованиеметаданныхполнотекстовогопоиска источникрасширенийконфигурации клавиша кодвозвратадиалога кодировкаxbase кодировкатекста направлениепоиска направлениесортировки обновлениепредопределенныхданных обновлениеприизмененииданных отображениепанелиразделов проверказаполнения режимдиалогавопрос режимзапускаклиентскогоприложения режимокругления режимоткрытияформприложения режимполнотекстовогопоиска скоростьклиентскогосоединения состояниевнешнегоисточникаданных состояниеобновленияконфигурациибазыданных способвыборасертификатаwindows способкодированиястроки статуссообщения типвнешнейкомпоненты типплатформы типповеденияклавишиenter типэлементаинформацииовыполненииобновленияконфигурациибазыданных уровеньизоляциитранзакций хешфункция частидаты",type:"comобъект ftpсоединение httpзапрос httpсервисответ httpсоединение wsопределения wsпрокси xbase анализданных аннотацияxs блокировкаданных буфердвоичныхданных включениеxs выражениекомпоновкиданных генераторслучайныхчисел географическаясхема географическиекоординаты графическаясхема группамоделиxs данныерасшифровкикомпоновкиданных двоичныеданные дендрограмма диаграмма диаграммаганта диалогвыборафайла диалогвыборацвета диалогвыборашрифта диалограсписаниярегламентногозадания диалогредактированиястандартногопериода диапазон документdom документhtml документацияxs доставляемоеуведомление записьdom записьfastinfoset записьhtml записьjson записьxml записьzipфайла записьданных записьтекста записьузловdom запрос защищенноесоединениеopenssl значенияполейрасшифровкикомпоновкиданных извлечениетекста импортxs интернетпочта интернетпочтовоесообщение интернетпочтовыйпрофиль интернетпрокси интернетсоединение информациядляприложенияxs использованиеатрибутаxs использованиесобытияжурналарегистрации источникдоступныхнастроеккомпоновкиданных итераторузловdom картинка квалификаторыдаты квалификаторыдвоичныхданных квалификаторыстроки квалификаторычисла компоновщикмакетакомпоновкиданных компоновщикнастроеккомпоновкиданных конструктормакетаоформлениякомпоновкиданных конструкторнастроеккомпоновкиданных конструкторформатнойстроки линия макеткомпоновкиданных макетобластикомпоновкиданных макетоформлениякомпоновкиданных маскаxs менеджеркриптографии наборсхемxml настройкикомпоновкиданных настройкисериализацииjson обработкакартинок обработкарасшифровкикомпоновкиданных обходдереваdom объявлениеатрибутаxs объявлениенотацииxs объявлениеэлементаxs описаниеиспользованиясобытиядоступжурналарегистрации описаниеиспользованиясобытияотказвдоступежурналарегистрации описаниеобработкирасшифровкикомпоновкиданных описаниепередаваемогофайла описаниетипов определениегруппыатрибутовxs определениегруппымоделиxs определениеограниченияидентичностиxs определениепростоготипаxs определениесоставноготипаxs определениетипадокументаdom определенияxpathxs отборкомпоновкиданных пакетотображаемыхдокументов параметрвыбора параметркомпоновкиданных параметрызаписиjson параметрызаписиxml параметрычтенияxml переопределениеxs планировщик полеанализаданных полекомпоновкиданных построительdom построительзапроса построительотчета построительотчетаанализаданных построительсхемxml поток потоквпамяти почта почтовоесообщение преобразованиеxsl преобразованиекканоническомуxml процессорвыводарезультатакомпоновкиданныхвколлекциюзначений процессорвыводарезультатакомпоновкиданныхвтабличныйдокумент процессоркомпоновкиданных разыменовательпространствименdom рамка расписаниерегламентногозадания расширенноеимяxml результатчтенияданных своднаядиаграмма связьпараметравыбора связьпотипу связьпотипукомпоновкиданных сериализаторxdto сертификатклиентаwindows сертификатклиентафайл сертификаткриптографии сертификатыудостоверяющихцентровwindows сертификатыудостоверяющихцентровфайл сжатиеданных системнаяинформация сообщениепользователю сочетаниеклавиш сравнениезначений стандартнаядатаначала стандартныйпериод схемаxml схемакомпоновкиданных табличныйдокумент текстовыйдокумент тестируемоеприложение типданныхxml уникальныйидентификатор фабрикаxdto файл файловыйпоток фасетдлиныxs фасетколичестваразрядовдробнойчастиxs фасетмаксимальноговключающегозначенияxs фасетмаксимальногоисключающегозначенияxs фасетмаксимальнойдлиныxs фасетминимальноговключающегозначенияxs фасетминимальногоисключающегозначенияxs фасетминимальнойдлиныxs фасетобразцаxs фасетобщегоколичестваразрядовxs фасетперечисленияxs фасетпробельныхсимволовxs фильтрузловdom форматированнаястрока форматированныйдокумент фрагментxs хешированиеданных хранилищезначения цвет чтениеfastinfoset чтениеhtml чтениеjson чтениеxml чтениеzipфайла чтениеданных чтениетекста чтениеузловdom шрифт элементрезультатакомпоновкиданных comsafearray деревозначений массив соответствие списокзначений структура таблицазначений фиксированнаяструктура фиксированноесоответствие фиксированныймассив ",literal:o},contains:[{className:"meta",begin:"#|&",end:"$",keywords:{$pattern:t,"meta-keyword":n+"загрузитьизфайла вебклиент вместо внешнеесоединение клиент конецобласти мобильноеприложениеклиент мобильноеприложениесервер наклиенте наклиентенасервере наклиентенасерверебезконтекста насервере насерверебезконтекста область перед после сервер толстыйклиентобычноеприложение толстыйклиентуправляемоеприложение тонкийклиент "},contains:[s]},{className:"function",variants:[{begin:"процедура|функция",end:"\\)",keywords:"процедура функция"},{begin:"конецпроцедуры|конецфункции",keywords:"конецпроцедуры конецфункции"}],contains:[{begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"params",begin:t,end:",",excludeEnd:!0,endsWithParent:!0,keywords:{$pattern:t,keyword:"знач",literal:o},contains:[r,i,a]},s]},e.inherit(e.TITLE_MODE,{begin:t})]},s,{className:"symbol",begin:"~",end:";|:",excludeEnd:!0},r,i,a]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t={ruleDeclaration:/^[a-zA-Z][a-zA-Z0-9-]*/,unexpectedChars:/[!@#$^&',?+~`|:]/},o=e.COMMENT(/;/,/$/),r={className:"attribute",begin:n(t.ruleDeclaration,/(?=\s*=)/)};return{name:"Augmented Backus-Naur Form",illegal:t.unexpectedChars,keywords:["ALPHA","BIT","CHAR","CR","CRLF","CTL","DIGIT","DQUOTE","HEXDIG","HTAB","LF","LWSP","OCTET","SP","VCHAR","WSP"].join(" "),contains:[r,o,{className:"symbol",begin:/%b[0-1]+(-[0-1]+|(\.[0-1]+)+){0,1}/},{className:"symbol",begin:/%d[0-9]+(-[0-9]+|(\.[0-9]+)+){0,1}/},{className:"symbol",begin:/%x[0-9A-F]+(-[0-9A-F]+|(\.[0-9A-F]+)+){0,1}/},{className:"symbol",begin:/%[si]/},e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}},function(e,t){function n(e){return e?"string"==typeof e?e:e.source:null}function o(...e){return e.map(e=>n(e)).join("")}function r(...e){return"("+e.map(e=>n(e)).join("|")+")"}e.exports=function(e){const t=["GET","POST","HEAD","PUT","DELETE","CONNECT","OPTIONS","PATCH","TRACE"];return{name:"Apache Access Log",contains:[{className:"number",begin:/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?\b/,relevance:5},{className:"number",begin:/\b\d+\b/,relevance:0},{className:"string",begin:o(/"/,r(...t)),end:/"/,keywords:t.join(" "),illegal:/\n/,relevance:5,contains:[{begin:/HTTP\/[12]\.\d'/,relevance:5}]},{className:"string",begin:/\[\d[^\]\n]{8,}\]/,illegal:/\n/,relevance:1},{className:"string",begin:/\[/,end:/\]/,illegal:/\n/,relevance:0},{className:"string",begin:/"Mozilla\/\d\.\d \(/,end:/"/,illegal:/\n/,relevance:3},{className:"string",begin:/"/,end:/"/,illegal:/\n/,relevance:0}]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t={className:"rest_arg",begin:/[.]{3}/,end:/[a-zA-Z_$][a-zA-Z0-9_$]*/,relevance:10};return{name:"ActionScript",aliases:["as"],keywords:{keyword:"as break case catch class const continue default delete do dynamic each else extends final finally for function get if implements import in include instanceof interface internal is namespace native new override package private protected public return set static super switch this throw try typeof use var void while with",literal:"true false null undefined"},contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"class",beginKeywords:"package",end:/\{/,contains:[e.TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.TITLE_MODE]},{className:"meta",beginKeywords:"import include",end:/;/,keywords:{"meta-keyword":"import include"}},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,illegal:/\S/,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t]},{begin:n(/:\s*/,/([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)/)}]},e.METHOD_GUARD],illegal:/#/}}},function(e,t){e.exports=function(e){const t="[A-Za-z](_?[A-Za-z0-9.])*",n=e.COMMENT("--","$"),o={begin:"\\s+:\\s+",end:"\\s*(:=|;|\\)|=>|$)",illegal:"[]\\{\\}%#'\"",contains:[{beginKeywords:"loop for declare others",endsParent:!0},{className:"keyword",beginKeywords:"not null constant access function procedure in out aliased exception"},{className:"type",begin:t,endsParent:!0,relevance:0}]};return{name:"Ada",case_insensitive:!0,keywords:{keyword:"abort else new return abs elsif not reverse abstract end accept entry select access exception of separate aliased exit or some all others subtype and for out synchronized array function overriding at tagged generic package task begin goto pragma terminate body private then if procedure type case in protected constant interface is raise use declare range delay limited record when delta loop rem while digits renames with do mod requeue xor",literal:"True False"},contains:[n,{className:"string",begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{className:"string",begin:/'.'/},{className:"number",begin:"\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)",relevance:0},{className:"symbol",begin:"'"+t},{className:"title",begin:"(\\bwith\\s+)?(\\bprivate\\s+)?\\bpackage\\s+(\\bbody\\s+)?",end:"(is|$)",keywords:"package body",excludeBegin:!0,excludeEnd:!0,illegal:"[]\\{\\}%#'\""},{begin:"(\\b(with|overriding)\\s+)?\\b(function|procedure)\\s+",end:"(\\bis|\\bwith|\\brenames|\\)\\s*;)",keywords:"overriding function procedure with is renames return",returnBegin:!0,contains:[n,{className:"title",begin:"(\\bwith\\s+)?\\b(function|procedure)\\s+",end:"(\\(|\\s+|$)",excludeBegin:!0,excludeEnd:!0,illegal:"[]\\{\\}%#'\""},o,{className:"type",begin:"\\breturn\\s+",end:"(\\s+|;|$)",keywords:"return",excludeBegin:!0,excludeEnd:!0,endsParent:!0,illegal:"[]\\{\\}%#'\""}]},{className:"type",begin:"\\b(sub)?type\\s+",end:"\\s+",keywords:"type",excludeBegin:!0,illegal:"[]\\{\\}%#'\""},o]}}},function(e,t){e.exports=function(e){var t={className:"built_in",begin:"\\b(void|bool|int|int8|int16|int32|int64|uint|uint8|uint16|uint32|uint64|string|ref|array|double|float|auto|dictionary)"},n={className:"symbol",begin:"[a-zA-Z0-9_]+@"},o={className:"keyword",begin:"<",end:">",contains:[t,n]};return t.contains=[o],n.contains=[o],{name:"AngelScript",aliases:["asc"],keywords:"for in|0 break continue while do|0 return if else case switch namespace is cast or and xor not get|0 in inout|10 out override set|0 private public const default|0 final shared external mixin|10 enum typedef funcdef this super import from interface abstract|0 try catch protected explicit property",illegal:"(^using\\s+[A-Za-z0-9_\\.]+;$|\\bfunction\\s*[^\\(])",contains:[{className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},{className:"string",begin:'"""',end:'"""'},{className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE],relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:"^\\s*\\[",end:"\\]"},{beginKeywords:"interface namespace",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]},{beginKeywords:"class",end:/\{/,illegal:"[;.\\-]",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+",contains:[{begin:"[:,]\\s*",contains:[{className:"symbol",begin:"[a-zA-Z0-9_]+"}]}]}]},t,n,{className:"literal",begin:"\\b(null|true|false)"},{className:"number",relevance:0,begin:"(-?)(\\b0[xXbBoOdD][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?f?|\\.\\d+f?)([eE][-+]?\\d+f?)?)"}]}}},function(e,t){e.exports=function(e){const t={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[t,{className:"number",begin:/:\d{1,5}/},e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",{className:"number",begin:/[$%]\d+/}]},t,{className:"number",begin:/\d+/},e.QUOTE_STRING_MODE]}}],illegal:/\S/}}},function(e,t){function n(e){return e?"string"==typeof e?e:e.source:null}function o(...e){return e.map(e=>n(e)).join("")}function r(...e){return"("+e.map(e=>n(e)).join("|")+")"}e.exports=function(e){const t=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),n={className:"params",begin:/\(/,end:/\)/,contains:["self",e.C_NUMBER_MODE,t]},i=e.COMMENT(/--/,/$/),a=[i,e.COMMENT(/\(\*/,/\*\)/,{contains:["self",i]}),e.HASH_COMMENT_MODE];return{name:"AppleScript",aliases:["osascript"],keywords:{keyword:"about above after against and around as at back before beginning behind below beneath beside between but by considering contain contains continue copy div does eighth else end equal equals error every exit fifth first for fourth from front get given global if ignoring in into is it its last local me middle mod my ninth not of on onto or over prop property put ref reference repeat returning script second set seventh since sixth some tell tenth that the|0 then third through thru timeout times to transaction try until where while whose with without",literal:"AppleScript false linefeed return pi quote result space tab true",built_in:"alias application boolean class constant date file integer list number real record string text activate beep count delay launch log offset read round run say summarize write character characters contents day frontmost id item length month name paragraph paragraphs rest reverse running time version weekday word words year"},contains:[t,e.C_NUMBER_MODE,{className:"built_in",begin:o(/\b/,r(/clipboard info/,/the clipboard/,/info for/,/list (disks|folder)/,/mount volume/,/path to/,/(close|open for) access/,/(get|set) eof/,/current date/,/do shell script/,/get volume settings/,/random number/,/set volume/,/system attribute/,/system info/,/time to GMT/,/(load|run|store) script/,/scripting components/,/ASCII (character|number)/,/localized string/,/choose (application|color|file|file name|folder|from list|remote application|URL)/,/display (alert|dialog)/),/\b/)},{className:"built_in",begin:/^\s*return\b/},{className:"literal",begin:/\b(text item delimiters|current application|missing value)\b/},{className:"keyword",begin:o(/\b/,r(/apart from/,/aside from/,/instead of/,/out of/,/greater than/,/isn't|(doesn't|does not) (equal|come before|come after|contain)/,/(greater|less) than( or equal)?/,/(starts?|ends|begins?) with/,/contained by/,/comes (before|after)/,/a (ref|reference)/,/POSIX (file|path)/,/(date|time) string/,/quoted form/),/\b/)},{beginKeywords:"on",illegal:/[${=;\n]/,contains:[e.UNDERSCORE_TITLE_MODE,n]},...a],illegal:/\/\/|->|=>|\[\[/}}},function(e,t){e.exports=function(e){const t="[A-Za-z_][0-9A-Za-z_]*",n={keyword:"if for while var new function do return void else break",literal:"BackSlash DoubleQuote false ForwardSlash Infinity NaN NewLine null PI SingleQuote Tab TextFormatting true undefined",built_in:"Abs Acos Angle Attachments Area AreaGeodetic Asin Atan Atan2 Average Bearing Boolean Buffer BufferGeodetic Ceil Centroid Clip Console Constrain Contains Cos Count Crosses Cut Date DateAdd DateDiff Day Decode DefaultValue Dictionary Difference Disjoint Distance DistanceGeodetic Distinct DomainCode DomainName Equals Exp Extent Feature FeatureSet FeatureSetByAssociation FeatureSetById FeatureSetByPortalItem FeatureSetByRelationshipName FeatureSetByTitle FeatureSetByUrl Filter First Floor Geometry GroupBy Guid HasKey Hour IIf IndexOf Intersection Intersects IsEmpty IsNan IsSelfIntersecting Length LengthGeodetic Log Max Mean Millisecond Min Minute Month MultiPartToSinglePart Multipoint NextSequenceValue Now Number OrderBy Overlaps Point Polygon Polyline Portal Pow Random Relate Reverse RingIsClockWise Round Second SetGeometry Sin Sort Sqrt Stdev Sum SymmetricDifference Tan Text Timestamp Today ToLocal Top Touches ToUTC TrackCurrentTime TrackGeometryWindow TrackIndex TrackStartTime TrackWindow TypeOf Union UrlEncode Variance Weekday When Within Year "},o={className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},r={className:"subst",begin:"\\$\\{",end:"\\}",keywords:n,contains:[]},i={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,r]};r.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,o,e.REGEXP_MODE];const a=r.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{name:"ArcGIS Arcade",aliases:["arcade"],keywords:n,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"symbol",begin:"\\$[datastore|feature|layer|map|measure|sourcefeature|sourcelayer|targetfeature|targetlayer|value|view]+"},o,{begin:/[{,]\s*/,relevance:0,contains:[{begin:t+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:t,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(return)\\b)\\s*",keywords:"return",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+t+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,contains:a}]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:a}],illegal:/\[|%/},{begin:/\$[(.]/}],illegal:/#(?!!)/}}},function(e,t){function n(e){return function(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}("(",e,")?")}function o(e){const t=function(e){const t=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="(decltype\\(auto\\)|"+n("[a-zA-Z_]\\w*::")+"[a-zA-Z_]\\w*"+n("<[^<>]+>")+")",r={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},i={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},a={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},s={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(i,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t,e.C_BLOCK_COMMENT_MODE]},c={className:"title",begin:n("[a-zA-Z_]\\w*::")+e.IDENT_RE,relevance:0},l=n("[a-zA-Z_]\\w*::")+e.IDENT_RE+"\\s*\\(",d={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary",literal:"true false nullptr NULL"},u=[s,r,t,e.C_BLOCK_COMMENT_MODE,a,i],h={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:d,contains:u.concat([{begin:/\(/,end:/\)/,keywords:d,contains:u.concat(["self"]),relevance:0}]),relevance:0},p={className:"function",begin:"("+o+"[\\*&\\s]+)+"+l,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:d,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:"decltype\\(auto\\)",keywords:d,relevance:0},{begin:l,returnBegin:!0,contains:[c],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:[t,e.C_BLOCK_COMMENT_MODE,i,a,r,{begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:["self",t,e.C_BLOCK_COMMENT_MODE,i,a,r]}]},r,t,e.C_BLOCK_COMMENT_MODE,s]};return{aliases:["c","cc","h","c++","h++","hpp","hh","hxx","cxx"],keywords:d,disableAutodetect:!0,illegal:"</",contains:[].concat(h,p,u,[s,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:d,contains:["self",r]},{begin:e.IDENT_RE+"::",keywords:d},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:s,strings:i,keywords:d}}}(e);return t.disableAutodetect=!1,t.name="C++",t.aliases=["cc","c++","h++","hpp","hh","hxx","cxx"],t}e.exports=function(e){const t="boolean byte word String",n="setup loop KeyboardController MouseController SoftwareSerial EthernetServer EthernetClient LiquidCrystal RobotControl GSMVoiceCall EthernetUDP EsploraTFT HttpClient RobotMotor WiFiClient GSMScanner FileSystem Scheduler GSMServer YunClient YunServer IPAddress GSMClient GSMModem Keyboard Ethernet Console GSMBand Esplora Stepper Process WiFiUDP GSM_SMS Mailbox USBHost Firmata PImage Client Server GSMPIN FileIO Bridge Serial EEPROM Stream Mouse Audio Servo File Task GPRS WiFi Wire TFT GSM SPI SD runShellCommandAsynchronously analogWriteResolution retrieveCallingNumber printFirmwareVersion analogReadResolution sendDigitalPortPair noListenOnLocalhost readJoystickButton setFirmwareVersion readJoystickSwitch scrollDisplayRight getVoiceCallStatus scrollDisplayLeft writeMicroseconds delayMicroseconds beginTransmission getSignalStrength runAsynchronously getAsynchronously listenOnLocalhost getCurrentCarrier readAccelerometer messageAvailable sendDigitalPorts lineFollowConfig countryNameWrite runShellCommand readStringUntil rewindDirectory readTemperature setClockDivider readLightSensor endTransmission analogReference detachInterrupt countryNameRead attachInterrupt encryptionType readBytesUntil robotNameWrite readMicrophone robotNameRead cityNameWrite userNameWrite readJoystickY readJoystickX mouseReleased openNextFile scanNetworks noInterrupts digitalWrite beginSpeaker mousePressed isActionDone mouseDragged displayLogos noAutoscroll addParameter remoteNumber getModifiers keyboardRead userNameRead waitContinue processInput parseCommand printVersion readNetworks writeMessage blinkVersion cityNameRead readMessage setDataMode parsePacket isListening setBitOrder beginPacket isDirectory motorsWrite drawCompass digitalRead clearScreen serialEvent rightToLeft setTextSize leftToRight requestFrom keyReleased compassRead analogWrite interrupts WiFiServer disconnect playMelody parseFloat autoscroll getPINUsed setPINUsed setTimeout sendAnalog readSlider analogRead beginWrite createChar motorsStop keyPressed tempoWrite readButton subnetMask debugPrint macAddress writeGreen randomSeed attachGPRS readString sendString remotePort releaseAll mouseMoved background getXChange getYChange answerCall getResult voiceCall endPacket constrain getSocket writeJSON getButton available connected findUntil readBytes exitValue readGreen writeBlue startLoop IPAddress isPressed sendSysex pauseMode gatewayIP setCursor getOemKey tuneWrite noDisplay loadImage switchPIN onRequest onReceive changePIN playFile noBuffer parseInt overflow checkPIN knobRead beginTFT bitClear updateIR bitWrite position writeRGB highByte writeRed setSpeed readBlue noStroke remoteIP transfer shutdown hangCall beginSMS endWrite attached maintain noCursor checkReg checkPUK shiftOut isValid shiftIn pulseIn connect println localIP pinMode getIMEI display noBlink process getBand running beginSD drawBMP lowByte setBand release bitRead prepare pointTo readRed setMode noFill remove listen stroke detach attach noTone exists buffer height bitSet circle config cursor random IRread setDNS endSMS getKey micros millis begin print write ready flush width isPIN blink clear press mkdir rmdir close point yield image BSSID click delay read text move peek beep rect line open seek fill size turn stop home find step tone sqrt RSSI SSID end bit tan cos sin pow map abs max min get run put",r="DIGITAL_MESSAGE FIRMATA_STRING ANALOG_MESSAGE REPORT_DIGITAL REPORT_ANALOG INPUT_PULLUP SET_PIN_MODE INTERNAL2V56 SYSTEM_RESET LED_BUILTIN INTERNAL1V1 SYSEX_START INTERNAL EXTERNAL DEFAULT OUTPUT INPUT HIGH LOW",i=o(e),a=i.keywords;return a.keyword+=" "+t,a.literal+=" "+r,a.built_in+=" "+n,i.name="Arduino",i.aliases=["ino"],i.supersetOf="cpp",i}},function(e,t){e.exports=function(e){const t={variants:[e.COMMENT("^[ \\t]*(?=#)","$",{relevance:0,excludeBegin:!0}),e.COMMENT("[;@]","$",{relevance:0}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"ARM Assembly",case_insensitive:!0,aliases:["arm"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .arm .thumb .code16 .code32 .force_thumb .thumb_func .ltorg ALIAS ALIGN ARM AREA ASSERT ATTR CN CODE CODE16 CODE32 COMMON CP DATA DCB DCD DCDU DCDO DCFD DCFDU DCI DCQ DCQU DCW DCWU DN ELIF ELSE END ENDFUNC ENDIF ENDP ENTRY EQU EXPORT EXPORTAS EXTERN FIELD FILL FUNCTION GBLA GBLL GBLS GET GLOBAL IF IMPORT INCBIN INCLUDE INFO KEEP LCLA LCLL LCLS LTORG MACRO MAP MEND MEXIT NOFP OPT PRESERVE8 PROC QN READONLY RELOC REQUIRE REQUIRE8 RLIST FN ROUT SETA SETL SETS SN SPACE SUBT THUMB THUMBX TTL WHILE WEND ",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 pc lr sp ip sl sb fp a1 a2 a3 a4 v1 v2 v3 v4 v5 v6 v7 v8 f0 f1 f2 f3 f4 f5 f6 f7 p0 p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 c10 c11 c12 c13 c14 c15 q0 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 q13 q14 q15 cpsr_c cpsr_x cpsr_s cpsr_f cpsr_cx cpsr_cxs cpsr_xs cpsr_xsf cpsr_sf cpsr_cxsf spsr_c spsr_x spsr_s spsr_f spsr_cx spsr_cxs spsr_xs spsr_xsf spsr_sf spsr_cxsf s0 s1 s2 s3 s4 s5 s6 s7 s8 s9 s10 s11 s12 s13 s14 s15 s16 s17 s18 s19 s20 s21 s22 s23 s24 s25 s26 s27 s28 s29 s30 s31 d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 d10 d11 d12 d13 d14 d15 d16 d17 d18 d19 d20 d21 d22 d23 d24 d25 d26 d27 d28 d29 d30 d31 {PC} {VAR} {TRUE} {FALSE} {OPT} {CONFIG} {ENDIAN} {CODESIZE} {CPU} {FPU} {ARCHITECTURE} {PCSTOREOFFSET} {ARMASM_VERSION} {INTER} {ROPI} {RWPI} {SWST} {NOSWST} . @"},contains:[{className:"keyword",begin:"\\b(adc|(qd?|sh?|u[qh]?)?add(8|16)?|usada?8|(q|sh?|u[qh]?)?(as|sa)x|and|adrl?|sbc|rs[bc]|asr|b[lx]?|blx|bxj|cbn?z|tb[bh]|bic|bfc|bfi|[su]bfx|bkpt|cdp2?|clz|clrex|cmp|cmn|cpsi[ed]|cps|setend|dbg|dmb|dsb|eor|isb|it[te]{0,3}|lsl|lsr|ror|rrx|ldm(([id][ab])|f[ds])?|ldr((s|ex)?[bhd])?|movt?|mvn|mra|mar|mul|[us]mull|smul[bwt][bt]|smu[as]d|smmul|smmla|mla|umlaal|smlal?([wbt][bt]|d)|mls|smlsl?[ds]|smc|svc|sev|mia([bt]{2}|ph)?|mrr?c2?|mcrr2?|mrs|msr|orr|orn|pkh(tb|bt)|rbit|rev(16|sh)?|sel|[su]sat(16)?|nop|pop|push|rfe([id][ab])?|stm([id][ab])?|str(ex)?[bhd]?|(qd?)?sub|(sh?|q|u[qh]?)?sub(8|16)|[su]xt(a?h|a?b(16)?)|srs([id][ab])?|swpb?|swi|smi|tst|teq|wfe|wfi|yield)(eq|ne|cs|cc|mi|pl|vs|vc|hi|ls|ge|lt|gt|le|al|hs|lo)?[sptrx]?(?=\\s)"},t,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"[#$=]?0x[0-9a-f]+"},{begin:"[#$=]?0b[01]+"},{begin:"[#$=]\\d+"},{begin:"\\b\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^[ \\t]*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^[a-z_\\.\\$][a-z0-9_\\.\\$]+"},{begin:"[=#]\\w+"}],relevance:0}]}}},function(e,t){function n(e){return e?"string"==typeof e?e:e.source:null}function o(e){return r("(?=",e,")")}function r(...e){return e.map(e=>n(e)).join("")}function i(...e){return"("+e.map(e=>n(e)).join("|")+")"}e.exports=function(e){const t=r(/[A-Z_]/,r("(",/[A-Z0-9_.-]+:/,")?"),/[A-Z0-9_.-]*/),n={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},a={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=e.inherit(a,{begin:/\(/,end:/\)/}),c=e.inherit(e.APOS_STRING_MODE,{className:"meta-string"}),l=e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),d={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[A-Za-z0-9._:-]+/,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[n]},{begin:/'/,end:/'/,contains:[n]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[a,l,c,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[a,s,l,c]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},n,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[d],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r(/</,o(r(t,i(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:d}]},{className:"tag",begin:r(/<\//,o(r(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0}]}]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t=[{className:"strong",begin:/\*{2}([^\n]+?)\*{2}/},{className:"strong",begin:n(/\*\*/,/((\*(?!\*)|\\[^\n]|[^*\n\\])+\n)+/,/(\*(?!\*)|\\[^\n]|[^*\n\\])*/,/\*\*/),relevance:0},{className:"strong",begin:/\B\*(\S|\S[^\n]*?\S)\*(?!\w)/},{className:"strong",begin:/\*[^\s]([^\n]+\n)+([^\n]+)\*/}],o=[{className:"emphasis",begin:/_{2}([^\n]+?)_{2}/},{className:"emphasis",begin:n(/__/,/((_(?!_)|\\[^\n]|[^_\n\\])+\n)+/,/(_(?!_)|\\[^\n]|[^_\n\\])*/,/__/),relevance:0},{className:"emphasis",begin:/\b_(\S|\S[^\n]*?\S)_(?!\w)/},{className:"emphasis",begin:/_[^\s]([^\n]+\n)+([^\n]+)_/},{className:"emphasis",begin:"\\B'(?!['\\s])",end:"(\\n{2}|')",contains:[{begin:"\\\\'\\w",relevance:0}],relevance:0}];return{name:"AsciiDoc",aliases:["adoc"],contains:[e.COMMENT("^/{4,}\\n","\\n/{4,}$",{relevance:10}),e.COMMENT("^//","$",{relevance:0}),{className:"title",begin:"^\\.\\w.*$"},{begin:"^[=\\*]{4,}\\n",end:"\\n^[=\\*]{4,}$",relevance:10},{className:"section",relevance:10,variants:[{begin:"^(={1,6})[ \t].+?([ \t]\\1)?$"},{begin:"^[^\\[\\]\\n]+?\\n[=\\-~\\^\\+]{2,}$"}]},{className:"meta",begin:"^:.+?:",end:"\\s",excludeEnd:!0,relevance:10},{className:"meta",begin:"^\\[.+?\\]$",relevance:0},{className:"quote",begin:"^_{4,}\\n",end:"\\n_{4,}$",relevance:10},{className:"code",begin:"^[\\-\\.]{4,}\\n",end:"\\n[\\-\\.]{4,}$",relevance:10},{begin:"^\\+{4,}\\n",end:"\\n\\+{4,}$",contains:[{begin:"<",end:">",subLanguage:"xml",relevance:0}],relevance:10},{className:"bullet",begin:"^(\\*+|-+|\\.+|[^\\n]+?::)\\s+"},{className:"symbol",begin:"^(NOTE|TIP|IMPORTANT|WARNING|CAUTION):\\s+",relevance:10},{begin:/\\[*_`]/},{begin:/\\\\\*{2}[^\n]*?\*{2}/},{begin:/\\\\_{2}[^\n]*_{2}/},{begin:/\\\\`{2}[^\n]*`{2}/},{begin:/[:;}][*_`](?![*_`])/},...t,...o,{className:"string",variants:[{begin:"``.+?''"},{begin:"`.+?'"}]},{className:"code",begin:/`{2}/,end:/(\n{2}|`{2})/},{className:"code",begin:"(`.+?`|\\+.+?\\+)",relevance:0},{className:"code",begin:"^[ \\t]",end:"$",relevance:0},{begin:"^'{3,}[ \\t]*$",relevance:10},{begin:"(link:)?(http|https|ftp|file|irc|image:?):\\S+?\\[[^[]*?\\]",returnBegin:!0,contains:[{begin:"(link|image:?):",relevance:0},{className:"link",begin:"\\w",end:"[^\\[]+",relevance:0},{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0,relevance:0}],relevance:10}]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t="false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else extends implements break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws privileged aspectOf adviceexecution proceed cflowbelow cflow initialization preinitialization staticinitialization withincode target within execution getWithinTypeName handler thisJoinPoint thisJoinPointStaticPart thisEnclosingJoinPointStaticPart declare parents warning error soft precedence thisAspectInstance";return{name:"AspectJ",keywords:t,illegal:/<\/|#/,contains:[e.COMMENT(/\/\*\*/,/\*\//,{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:/@[A-Za-z]+/}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"aspect",end:/[{;=]/,excludeEnd:!0,illegal:/[:;"\[\]]/,contains:[{beginKeywords:"extends implements pertypewithin perthis pertarget percflowbelow percflow issingleton"},e.UNDERSCORE_TITLE_MODE,{begin:/\([^\)]*/,end:/[)]+/,keywords:t+" get set args call",excludeEnd:!1}]},{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,relevance:0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"pointcut after before around throwing returning",end:/[)]/,excludeEnd:!1,illegal:/["\[\]]/,contains:[{begin:n(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,contains:[e.UNDERSCORE_TITLE_MODE]}]},{begin:/[:]/,returnBegin:!0,end:/[{;]/,relevance:0,excludeEnd:!1,keywords:t,illegal:/["\[\]]/,contains:[{begin:n(e.UNDERSCORE_IDENT_RE,/\s*\(/),keywords:t+" get set args call",relevance:0},e.QUOTE_STRING_MODE]},{beginKeywords:"new throw",relevance:0},{className:"function",begin:/\w+ +\w+(\.\w+)?\s*\([^\)]*\)\s*((throws)[\w\s,]+)?[\{;]/,returnBegin:!0,end:/[{;=]/,keywords:t,excludeEnd:!0,contains:[{begin:n(e.UNDERSCORE_IDENT_RE,/\s*\(/),returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,relevance:0,keywords:t,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:/@[A-Za-z]+/}]}}},function(e,t){e.exports=function(e){const t={begin:"`[\\s\\S]"};return{name:"AutoHotkey",case_insensitive:!0,aliases:["ahk"],keywords:{keyword:"Break Continue Critical Exit ExitApp Gosub Goto New OnExit Pause return SetBatchLines SetTimer Suspend Thread Throw Until ahk_id ahk_class ahk_pid ahk_exe ahk_group",literal:"true false NOT AND OR",built_in:"ComSpec Clipboard ClipboardAll ErrorLevel"},contains:[t,e.inherit(e.QUOTE_STRING_MODE,{contains:[t]}),e.COMMENT(";","$",{relevance:0}),e.C_BLOCK_COMMENT_MODE,{className:"number",begin:e.NUMBER_RE,relevance:0},{className:"variable",begin:"%[a-zA-Z0-9#_$@]+%"},{className:"built_in",begin:"^\\s*\\w+\\s*(,|%)"},{className:"title",variants:[{begin:'^[^\\n";]+::(?!=)'},{begin:'^[^\\n";]+:(?!=)',relevance:0}]},{className:"meta",begin:"^\\s*#\\w+",end:"$",relevance:0},{className:"built_in",begin:"A_[a-zA-Z0-9]+"},{begin:",\\s*,"}]}}},function(e,t){e.exports=function(e){const t={variants:[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#cs","#ce"),e.COMMENT("#comments-start","#comments-end")]},n={begin:"\\$[A-z0-9_]+"},o={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},r={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{name:"AutoIt",case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:"ByRef Case Const ContinueCase ContinueLoop Default Dim Do Else ElseIf EndFunc EndIf EndSelect EndSwitch EndWith Enum Exit ExitLoop For Func Global If In Local Next ReDim Return Select Static Step Switch Then To Until Volatile WEnd While With",built_in:"Abs ACos AdlibRegister AdlibUnRegister Asc AscW ASin Assign ATan AutoItSetOption AutoItWinGetTitle AutoItWinSetTitle Beep Binary BinaryLen BinaryMid BinaryToString BitAND BitNOT BitOR BitRotate BitShift BitXOR BlockInput Break Call CDTray Ceiling Chr ChrW ClipGet ClipPut ConsoleRead ConsoleWrite ConsoleWriteError ControlClick ControlCommand ControlDisable ControlEnable ControlFocus ControlGetFocus ControlGetHandle ControlGetPos ControlGetText ControlHide ControlListView ControlMove ControlSend ControlSetText ControlShow ControlTreeView Cos Dec DirCopy DirCreate DirGetSize DirMove DirRemove DllCall DllCallAddress DllCallbackFree DllCallbackGetPtr DllCallbackRegister DllClose DllOpen DllStructCreate DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData DriveGetDrive DriveGetFileSystem DriveGetLabel DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus EnvGet EnvSet EnvUpdate Eval Execute Exp FileChangeDir FileClose FileCopy FileCreateNTFSLink FileCreateShortcut FileDelete FileExists FileFindFirstFile FileFindNextFile FileFlush FileGetAttrib FileGetEncoding FileGetLongName FileGetPos FileGetShortcut FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall FileMove FileOpen FileOpenDialog FileRead FileReadLine FileReadToArray FileRecycle FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib FileSetEnd FileSetPos FileSetTime FileWrite FileWriteLine Floor FtpSetProxy FuncName GUICreate GUICtrlCreateAvi GUICtrlCreateButton GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem GUICtrlCreateTreeView GUICtrlCreateTreeViewItem GUICtrlCreateUpdown GUICtrlDelete GUICtrlGetHandle GUICtrlGetState GUICtrlRead GUICtrlRecvMsg GUICtrlRegisterListViewSort GUICtrlSendMsg GUICtrlSendToDummy GUICtrlSetBkColor GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetDefBkColor GUICtrlSetDefColor GUICtrlSetFont GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle GUICtrlSetTip GUIDelete GUIGetCursorInfo GUIGetMsg GUIGetStyle GUIRegisterMsg GUISetAccelerators GUISetBkColor GUISetCoord GUISetCursor GUISetFont GUISetHelp GUISetIcon GUISetOnEvent GUISetState GUISetStyle GUIStartGroup GUISwitch Hex HotKeySet HttpSetProxy HttpSetUserAgent HWnd InetClose InetGet InetGetInfo InetGetSize InetRead IniDelete IniRead IniReadSection IniReadSectionNames IniRenameSection IniWrite IniWriteSection InputBox Int IsAdmin IsArray IsBinary IsBool IsDeclared IsDllStruct IsFloat IsFunc IsHWnd IsInt IsKeyword IsNumber IsObj IsPtr IsString Log MemGetStats Mod MouseClick MouseClickDrag MouseDown MouseGetCursor MouseGetPos MouseMove MouseUp MouseWheel MsgBox Number ObjCreate ObjCreateInterface ObjEvent ObjGet ObjName OnAutoItExitRegister OnAutoItExitUnRegister Ping PixelChecksum PixelGetColor PixelSearch ProcessClose ProcessExists ProcessGetStats ProcessList ProcessSetPriority ProcessWait ProcessWaitClose ProgressOff ProgressOn ProgressSet Ptr Random RegDelete RegEnumKey RegEnumVal RegRead RegWrite Round Run RunAs RunAsWait RunWait Send SendKeepActive SetError SetExtended ShellExecute ShellExecuteWait Shutdown Sin Sleep SoundPlay SoundSetWaveVolume SplashImageOn SplashOff SplashTextOn Sqrt SRandom StatusbarGetText StderrRead StdinWrite StdioClose StdoutRead String StringAddCR StringCompare StringFormat StringFromASCIIArray StringInStr StringIsAlNum StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft StringLen StringLower StringMid StringRegExp StringRegExpReplace StringReplace StringReverse StringRight StringSplit StringStripCR StringStripWS StringToASCIIArray StringToBinary StringTrimLeft StringTrimRight StringUpper Tan TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIP TCPRecv TCPSend TCPShutdown, UDPShutdown TCPStartup, UDPStartup TimerDiff TimerInit ToolTip TrayCreateItem TrayCreateMenu TrayGetMsg TrayItemDelete TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent TrayItemSetState TrayItemSetText TraySetClick TraySetIcon TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip UBound UDPBind UDPCloseSocket UDPOpen UDPRecv UDPSend VarGetType WinActivate WinActive WinClose WinExists WinFlash WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait",literal:"True False And Null Not Or"},contains:[t,n,o,r,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"comments include include-once NoTrayIcon OnAutoItStartRegister pragma compile RequireAdmin"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",keywords:{"meta-keyword":"include"},end:"$",contains:[o,{className:"meta-string",variants:[{begin:"<",end:">"},{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]}]},o,t]},{className:"symbol",begin:"@[A-z0-9_]+"},{className:"function",beginKeywords:"Func",end:"$",illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:[n,o,r]}]}]}}},function(e,t){e.exports=function(e){return{name:"AVR Assembly",case_insensitive:!0,keywords:{$pattern:"\\.?"+e.IDENT_RE,keyword:"adc add adiw and andi asr bclr bld brbc brbs brcc brcs break breq brge brhc brhs brid brie brlo brlt brmi brne brpl brsh brtc brts brvc brvs bset bst call cbi cbr clc clh cli cln clr cls clt clv clz com cp cpc cpi cpse dec eicall eijmp elpm eor fmul fmuls fmulsu icall ijmp in inc jmp ld ldd ldi lds lpm lsl lsr mov movw mul muls mulsu neg nop or ori out pop push rcall ret reti rjmp rol ror sbc sbr sbrc sbrs sec seh sbi sbci sbic sbis sbiw sei sen ser ses set sev sez sleep spm st std sts sub subi swap tst wdr",built_in:"r0 r1 r2 r3 r4 r5 r6 r7 r8 r9 r10 r11 r12 r13 r14 r15 r16 r17 r18 r19 r20 r21 r22 r23 r24 r25 r26 r27 r28 r29 r30 r31 x|0 xh xl y|0 yh yl z|0 zh zl ucsr1c udr1 ucsr1a ucsr1b ubrr1l ubrr1h ucsr0c ubrr0h tccr3c tccr3a tccr3b tcnt3h tcnt3l ocr3ah ocr3al ocr3bh ocr3bl ocr3ch ocr3cl icr3h icr3l etimsk etifr tccr1c ocr1ch ocr1cl twcr twdr twar twsr twbr osccal xmcra xmcrb eicra spmcsr spmcr portg ddrg ping portf ddrf sreg sph spl xdiv rampz eicrb eimsk gimsk gicr eifr gifr timsk tifr mcucr mcucsr tccr0 tcnt0 ocr0 assr tccr1a tccr1b tcnt1h tcnt1l ocr1ah ocr1al ocr1bh ocr1bl icr1h icr1l tccr2 tcnt2 ocr2 ocdr wdtcr sfior eearh eearl eedr eecr porta ddra pina portb ddrb pinb portc ddrc pinc portd ddrd pind spdr spsr spcr udr0 ucsr0a ucsr0b ubrr0l acsr admux adcsr adch adcl porte ddre pine pinf",meta:".byte .cseg .db .def .device .dseg .dw .endmacro .equ .eseg .exit .include .list .listmac .macro .nolist .org .set"},contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),e.C_NUMBER_MODE,e.BINARY_NUMBER_MODE,{className:"number",begin:"\\b(\\$[a-zA-Z0-9]+|0o[0-7]+)"},e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",illegal:"[^\\\\][^']"},{className:"symbol",begin:"^[A-Za-z0-9_.$]+:"},{className:"meta",begin:"#",end:"$"},{className:"subst",begin:"@[0-9]+"}]}}},function(e,t){e.exports=function(e){return{name:"Awk",keywords:{keyword:"BEGIN END if else while do for in break continue delete next nextfile function func exit|10"},contains:[{className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,relevance:10},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.REGEXP_MODE,e.HASH_COMMENT_MODE,e.NUMBER_MODE]}}},function(e,t){e.exports=function(e){return{name:"X++",aliases:["x++"],keywords:{keyword:["abstract","as","asc","avg","break","breakpoint","by","byref","case","catch","changecompany","class","client","client","common","const","continue","count","crosscompany","delegate","delete_from","desc","display","div","do","edit","else","eventhandler","exists","extends","final","finally","firstfast","firstonly","firstonly1","firstonly10","firstonly100","firstonly1000","flush","for","forceliterals","forcenestedloop","forceplaceholders","forceselectorder","forupdate","from","generateonly","group","hint","if","implements","in","index","insert_recordset","interface","internal","is","join","like","maxof","minof","mod","namespace","new","next","nofetch","notexists","optimisticlock","order","outer","pessimisticlock","print","private","protected","public","readonly","repeatableread","retry","return","reverse","select","server","setting","static","sum","super","switch","this","throw","try","ttsabort","ttsbegin","ttscommit","unchecked","update_recordset","using","validtimestate","void","where","while"].join(" "),built_in:["anytype","boolean","byte","char","container","date","double","enum","guid","int","int64","long","real","short","str","utcdatetime","var"].join(" "),literal:["default","false","null","true"].join(" ")},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:":",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]}]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t={},o={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[t]}]};Object.assign(t,{className:"variable",variants:[{begin:n(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},o]});const r={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},i={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},a={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t,r]};r.contains.push(a);const s={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,t]},c=e.SHEBANG({binary:`(${["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"].join("|")})`,relevance:10}),l={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[c,e.SHEBANG(),l,s,e.HASH_COMMENT_MODE,i,a,{className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},t]}}},function(e,t){e.exports=function(e){return{name:"BASIC",case_insensitive:!0,illegal:"^.",keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_$%!#]*",keyword:"ABS ASC AND ATN AUTO|0 BEEP BLOAD|10 BSAVE|10 CALL CALLS CDBL CHAIN CHDIR CHR$|10 CINT CIRCLE CLEAR CLOSE CLS COLOR COM COMMON CONT COS CSNG CSRLIN CVD CVI CVS DATA DATE$ DEFDBL DEFINT DEFSNG DEFSTR DEF|0 SEG USR DELETE DIM DRAW EDIT END ENVIRON ENVIRON$ EOF EQV ERASE ERDEV ERDEV$ ERL ERR ERROR EXP FIELD FILES FIX FOR|0 FRE GET GOSUB|10 GOTO HEX$ IF THEN ELSE|0 INKEY$ INP INPUT INPUT# INPUT$ INSTR IMP INT IOCTL IOCTL$ KEY ON OFF LIST KILL LEFT$ LEN LET LINE LLIST LOAD LOC LOCATE LOF LOG LPRINT USING LSET MERGE MID$ MKDIR MKD$ MKI$ MKS$ MOD NAME NEW NEXT NOISE NOT OCT$ ON OR PEN PLAY STRIG OPEN OPTION BASE OUT PAINT PALETTE PCOPY PEEK PMAP POINT POKE POS PRINT PRINT] PSET PRESET PUT RANDOMIZE READ REM RENUM RESET|0 RESTORE RESUME RETURN|0 RIGHT$ RMDIR RND RSET RUN SAVE SCREEN SGN SHELL SIN SOUND SPACE$ SPC SQR STEP STICK STOP STR$ STRING$ SWAP SYSTEM TAB TAN TIME$ TIMER TROFF TRON TO USR VAL VARPTR VARPTR$ VIEW WAIT WHILE WEND WIDTH WINDOW WRITE XOR"},contains:[e.QUOTE_STRING_MODE,e.COMMENT("REM","$",{relevance:10}),e.COMMENT("'","$",{relevance:0}),{className:"symbol",begin:"^[0-9]+ ",relevance:10},{className:"number",begin:"\\b\\d+(\\.\\d+)?([edED]\\d+)?[#!]?",relevance:0},{className:"number",begin:"(&[hH][0-9a-fA-F]{1,4})"},{className:"number",begin:"(&[oO][0-7]{1,6})"}]}}},function(e,t){e.exports=function(e){return{name:"Backus–Naur Form",contains:[{className:"attribute",begin:/</,end:/>/},{begin:/::=/,end:/$/,contains:[{begin:/</,end:/>/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]}}},function(e,t){e.exports=function(e){const t={className:"literal",begin:/[+-]/,relevance:0};return{name:"Brainfuck",aliases:["bf"],contains:[e.COMMENT("[^\\[\\]\\.,\\+\\-<> \r\n]","[\\[\\]\\.,\\+\\-<> \r\n]",{returnEnd:!0,relevance:0}),{className:"title",begin:"[\\[\\]]",relevance:0},{className:"string",begin:"[\\.,]",relevance:0},{begin:/(?:\+\+|--)/,contains:[t]},t]}}},function(e,t){function n(e){return function(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}("(",e,")?")}e.exports=function(e){const t=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="(decltype\\(auto\\)|"+n("[a-zA-Z_]\\w*::")+"[a-zA-Z_]\\w*"+n("<[^<>]+>")+")",r={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},i={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},a={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},s={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(i,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t,e.C_BLOCK_COMMENT_MODE]},c={className:"title",begin:n("[a-zA-Z_]\\w*::")+e.IDENT_RE,relevance:0},l=n("[a-zA-Z_]\\w*::")+e.IDENT_RE+"\\s*\\(",d={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary",literal:"true false nullptr NULL"},u=[s,r,t,e.C_BLOCK_COMMENT_MODE,a,i],h={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:d,contains:u.concat([{begin:/\(/,end:/\)/,keywords:d,contains:u.concat(["self"]),relevance:0}]),relevance:0},p={className:"function",begin:"("+o+"[\\*&\\s]+)+"+l,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:d,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:"decltype\\(auto\\)",keywords:d,relevance:0},{begin:l,returnBegin:!0,contains:[c],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:[t,e.C_BLOCK_COMMENT_MODE,i,a,r,{begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:["self",t,e.C_BLOCK_COMMENT_MODE,i,a,r]}]},r,t,e.C_BLOCK_COMMENT_MODE,s]};return{aliases:["c","cc","h","c++","h++","hpp","hh","hxx","cxx"],keywords:d,disableAutodetect:!0,illegal:"</",contains:[].concat(h,p,u,[s,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:d,contains:["self",r]},{begin:e.IDENT_RE+"::",keywords:d},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:s,strings:i,keywords:d}}}},function(e,t){function n(e){return function(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}("(",e,")?")}e.exports=function(e){const t=function(e){const t=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="(decltype\\(auto\\)|"+n("[a-zA-Z_]\\w*::")+"[a-zA-Z_]\\w*"+n("<[^<>]+>")+")",r={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},i={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},a={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},s={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(i,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t,e.C_BLOCK_COMMENT_MODE]},c={className:"title",begin:n("[a-zA-Z_]\\w*::")+e.IDENT_RE,relevance:0},l=n("[a-zA-Z_]\\w*::")+e.IDENT_RE+"\\s*\\(",d={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary",literal:"true false nullptr NULL"},u=[s,r,t,e.C_BLOCK_COMMENT_MODE,a,i],h={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:d,contains:u.concat([{begin:/\(/,end:/\)/,keywords:d,contains:u.concat(["self"]),relevance:0}]),relevance:0},p={className:"function",begin:"("+o+"[\\*&\\s]+)+"+l,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:d,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:"decltype\\(auto\\)",keywords:d,relevance:0},{begin:l,returnBegin:!0,contains:[c],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:[t,e.C_BLOCK_COMMENT_MODE,i,a,r,{begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:["self",t,e.C_BLOCK_COMMENT_MODE,i,a,r]}]},r,t,e.C_BLOCK_COMMENT_MODE,s]};return{aliases:["c","cc","h","c++","h++","hpp","hh","hxx","cxx"],keywords:d,disableAutodetect:!0,illegal:"</",contains:[].concat(h,p,u,[s,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:d,contains:["self",r]},{begin:e.IDENT_RE+"::",keywords:d},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:s,strings:i,keywords:d}}}(e);return t.name="C",t.aliases=["c","h"],t}},function(e,t){e.exports=function(e){const t="div mod in and or not xor asserterror begin case do downto else end exit for if of repeat then to until while with var",n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],o={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},r={className:"string",begin:/(#\d+)+/},i={className:"function",beginKeywords:"procedure",end:/[:;]/,keywords:"procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[o,r]}].concat(n)},a={className:"class",begin:"OBJECT (Table|Form|Report|Dataport|Codeunit|XMLport|MenuSuite|Page|Query) (\\d+) ([^\\r\\n]+)",returnBegin:!0,contains:[e.TITLE_MODE,i]};return{name:"C/AL",case_insensitive:!0,keywords:{keyword:t,literal:"false true"},illegal:/\/\*/,contains:[o,r,{className:"number",begin:"\\b\\d+(\\.\\d+)?(DT|D|T)",relevance:0},{className:"string",begin:'"',end:'"'},e.NUMBER_MODE,a,i]}}},function(e,t){e.exports=function(e){return{name:"Cap’n Proto",aliases:["capnp"],keywords:{keyword:"struct enum interface union group import using const annotation extends in of on as with from fixed",built_in:"Void Bool Int8 Int16 Int32 Int64 UInt8 UInt16 UInt32 UInt64 Float32 Float64 Text Data AnyPointer AnyStruct Capability List",literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.HASH_COMMENT_MODE,{className:"meta",begin:/@0x[\w\d]{16};/,illegal:/\n/},{className:"symbol",begin:/@\d+\b/},{className:"class",beginKeywords:"struct enum",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"class",beginKeywords:"interface",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]}]}}},function(e,t){e.exports=function(e){const t="assembly module package import alias class interface object given value assign void function new of extends satisfies abstracts in out return break continue throw assert dynamic if else switch case for while try catch finally then let this outer super is exists nonempty",n={className:"subst",excludeBegin:!0,excludeEnd:!0,begin:/``/,end:/``/,keywords:t,relevance:10},o=[{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[n]},{className:"string",begin:"'",end:"'"},{className:"number",begin:"#[0-9a-fA-F_]+|\\$[01_]+|[0-9_]+(?:\\.[0-9_](?:[eE][+-]?\\d+)?)?[kMGTPmunpf]?",relevance:0}];return n.contains=o,{name:"Ceylon",keywords:{keyword:t+" shared abstract formal default actual variable late native deprecated final sealed annotation suppressWarnings small",meta:"doc by license see throws tagged"},illegal:"\\$[^01]|#[^0-9a-fA-F]",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),{className:"meta",begin:'@[a-z]\\w*(?::"[^"]*")?'}].concat(o)}}},function(e,t){e.exports=function(e){return{name:"Clean",aliases:["clean","icl","dcl"],keywords:{keyword:"if let in with where case of class instance otherwise implementation definition system module from import qualified as special code inline foreign export ccall stdcall generic derive infix infixl infixr",built_in:"Int Real Char Bool",literal:"True False"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{begin:"->|<-[|:]?|#!?|>>=|\\{\\||\\|\\}|:==|=:|<>"}]}}},function(e,t){e.exports=function(e){var t="[a-zA-Z_\\-!.?+*=<>&#'][a-zA-Z_\\-!.?+*=<>&#'0-9/;:]*",n="def defonce defprotocol defstruct defmulti defmethod defn- defn defmacro deftype defrecord",o={$pattern:t,"builtin-name":n+" cond apply if-not if-let if not not= =|0 <|0 >|0 <=|0 >=|0 ==|0 +|0 /|0 *|0 -|0 rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy first rest cons cast coll last butlast sigs reify second ffirst fnext nfirst nnext meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},r={begin:t,relevance:0},i={className:"number",begin:"[-+]?\\d+(\\.\\d+)?",relevance:0},a=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),s=e.COMMENT(";","$",{relevance:0}),c={className:"literal",begin:/\b(true|false|nil)\b/},l={begin:"[\\[\\{]",end:"[\\]\\}]"},d={className:"comment",begin:"\\^"+t},u=e.COMMENT("\\^\\{","\\}"),h={className:"symbol",begin:"[:]{1,2}"+t},p={begin:"\\(",end:"\\)"},m={endsWithParent:!0,relevance:0},g={keywords:o,className:"name",begin:t,relevance:0,starts:m},f=[p,a,d,u,s,h,l,i,c,r],_={beginKeywords:n,lexemes:t,end:'(\\[|#|\\d|"|:|\\{|\\)|\\(|$)',contains:[{className:"title",begin:t,relevance:0,excludeEnd:!0,endsParent:!0}].concat(f)};return p.contains=[e.COMMENT("comment",""),_,g,m],m.contains=f,l.contains=f,u.contains=[l],{name:"Clojure",aliases:["clj"],illegal:/\S/,contains:[p,a,d,u,s,h,l,i,c]}}},function(e,t){e.exports=function(e){return{name:"Clojure REPL",contains:[{className:"meta",begin:/^([\w.-]+|\s*#_)?=>/,starts:{end:/$/,subLanguage:"clojure"}}]}}},function(e,t){e.exports=function(e){return{name:"CMake",aliases:["cmake.in"],case_insensitive:!0,keywords:{keyword:"break cmake_host_system_information cmake_minimum_required cmake_parse_arguments cmake_policy configure_file continue elseif else endforeach endfunction endif endmacro endwhile execute_process file find_file find_library find_package find_path find_program foreach function get_cmake_property get_directory_property get_filename_component get_property if include include_guard list macro mark_as_advanced math message option return separate_arguments set_directory_properties set_property set site_name string unset variable_watch while add_compile_definitions add_compile_options add_custom_command add_custom_target add_definitions add_dependencies add_executable add_library add_link_options add_subdirectory add_test aux_source_directory build_command create_test_sourcelist define_property enable_language enable_testing export fltk_wrap_ui get_source_file_property get_target_property get_test_property include_directories include_external_msproject include_regular_expression install link_directories link_libraries load_cache project qt_wrap_cpp qt_wrap_ui remove_definitions set_source_files_properties set_target_properties set_tests_properties source_group target_compile_definitions target_compile_features target_compile_options target_include_directories target_link_directories target_link_libraries target_link_options target_sources try_compile try_run ctest_build ctest_configure ctest_coverage ctest_empty_binary_directory ctest_memcheck ctest_read_custom_files ctest_run_script ctest_sleep ctest_start ctest_submit ctest_test ctest_update ctest_upload build_name exec_program export_library_dependencies install_files install_programs install_targets load_command make_directory output_required_files remove subdir_depends subdirs use_mangled_mesa utility_source variable_requires write_file qt5_use_modules qt5_use_package qt5_wrap_cpp on off true false and or not command policy target test exists is_newer_than is_directory is_symlink is_absolute matches less greater equal less_equal greater_equal strless strgreater strequal strless_equal strgreater_equal version_less version_greater version_equal version_less_equal version_greater_equal in_list defined"},contains:[{className:"variable",begin:/\$\{/,end:/\}/},e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE]}}},function(e,t){const n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],o=["true","false","null","undefined","NaN","Infinity"],r=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);e.exports=function(e){const t={keyword:n.concat(["then","unless","until","loop","by","when","and","or","is","isnt","not"]).filter((i=["var","const","let","function","static"],e=>!i.includes(e))).join(" "),literal:o.concat(["yes","no","on","off"]).join(" "),built_in:r.concat(["npm","print"]).join(" ")};var i;const a="[A-Za-z$_][0-9A-Za-z$_]*",s={className:"subst",begin:/#\{/,end:/\}/,keywords:t},c=[e.BINARY_NUMBER_MODE,e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[s,e.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+a},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];s.contains=c;const l=e.inherit(e.TITLE_MODE,{begin:a}),d={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(c)}]};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:t,illegal:/\/\*/,contains:c.concat([e.COMMENT("###","###"),e.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+a+"\\s*=\\s*(\\(.*\\)\\s*)?\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[l,d]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:"(\\(.*\\)\\s*)?\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[d]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[l]},l]},{begin:a+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}},function(e,t){e.exports=function(e){return{name:"Coq",keywords:{keyword:"_|0 as at cofix else end exists exists2 fix for forall fun if IF in let match mod Prop return Set then Type using where with Abort About Add Admit Admitted All Arguments Assumptions Axiom Back BackTo Backtrack Bind Blacklist Canonical Cd Check Class Classes Close Coercion Coercions CoFixpoint CoInductive Collection Combined Compute Conjecture Conjectures Constant constr Constraint Constructors Context Corollary CreateHintDb Cut Declare Defined Definition Delimit Dependencies Dependent Derive Drop eauto End Equality Eval Example Existential Existentials Existing Export exporting Extern Extract Extraction Fact Field Fields File Fixpoint Focus for From Function Functional Generalizable Global Goal Grab Grammar Graph Guarded Heap Hint HintDb Hints Hypotheses Hypothesis ident Identity If Immediate Implicit Import Include Inductive Infix Info Initial Inline Inspect Instance Instances Intro Intros Inversion Inversion_clear Language Left Lemma Let Libraries Library Load LoadPath Local Locate Ltac ML Mode Module Modules Monomorphic Morphism Next NoInline Notation Obligation Obligations Opaque Open Optimize Options Parameter Parameters Parametric Path Paths pattern Polymorphic Preterm Print Printing Program Projections Proof Proposition Pwd Qed Quit Rec Record Recursive Redirect Relation Remark Remove Require Reserved Reset Resolve Restart Rewrite Right Ring Rings Save Scheme Scope Scopes Script Search SearchAbout SearchHead SearchPattern SearchRewrite Section Separate Set Setoid Show Solve Sorted Step Strategies Strategy Structure SubClass Table Tables Tactic Term Test Theorem Time Timeout Transparent Type Typeclasses Types Undelimit Undo Unfocus Unfocused Unfold Universe Universes Unset Unshelve using Variable Variables Variant Verbose Visibility where with",built_in:"abstract absurd admit after apply as assert assumption at auto autorewrite autounfold before bottom btauto by case case_eq cbn cbv change classical_left classical_right clear clearbody cofix compare compute congruence constr_eq constructor contradict contradiction cut cutrewrite cycle decide decompose dependent destruct destruction dintuition discriminate discrR do double dtauto eapply eassumption eauto ecase econstructor edestruct ediscriminate eelim eexact eexists einduction einjection eleft elim elimtype enough equality erewrite eright esimplify_eq esplit evar exact exactly_once exfalso exists f_equal fail field field_simplify field_simplify_eq first firstorder fix fold fourier functional generalize generalizing gfail give_up has_evar hnf idtac in induction injection instantiate intro intro_pattern intros intuition inversion inversion_clear is_evar is_var lapply lazy left lia lra move native_compute nia nsatz omega once pattern pose progress proof psatz quote record red refine reflexivity remember rename repeat replace revert revgoals rewrite rewrite_strat right ring ring_simplify rtauto set setoid_reflexivity setoid_replace setoid_rewrite setoid_symmetry setoid_transitivity shelve shelve_unifiable simpl simple simplify_eq solve specialize split split_Rabs split_Rmult stepl stepr subst sum swap symmetry tactic tauto time timeout top transitivity trivial try tryif unfold unify until using vm_compute with"},contains:[e.QUOTE_STRING_MODE,e.COMMENT("\\(\\*","\\*\\)"),e.C_NUMBER_MODE,{className:"type",excludeBegin:!0,begin:"\\|\\s*",end:"\\w+"},{begin:/[-=]>/}]}}},function(e,t){e.exports=function(e){return{name:"Caché Object Script",case_insensitive:!0,aliases:["cos","cls"],keywords:"property parameter class classmethod clientmethod extends as break catch close continue do d|0 else elseif for goto halt hang h|0 if job j|0 kill k|0 lock l|0 merge new open quit q|0 read r|0 return set s|0 tcommit throw trollback try tstart use view while write w|0 xecute x|0 zkill znspace zn ztrap zwrite zw zzdump zzwrite print zbreak zinsert zload zprint zremove zsave zzprint mv mvcall mvcrt mvdim mvprint zquit zsync ascii",contains:[{className:"number",begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)",relevance:0},{className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"comment",begin:/;/,end:"$",relevance:0},{className:"built_in",begin:/(?:\$\$?|\.\.)\^?[a-zA-Z]+/},{className:"built_in",begin:/\$\$\$[a-zA-Z]+/},{className:"built_in",begin:/%[a-z]+(?:\.[a-z]+)*/},{className:"symbol",begin:/\^%?[a-zA-Z][\w]*/},{className:"keyword",begin:/##class|##super|#define|#dim/},{begin:/&sql\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,subLanguage:"sql"},{begin:/&(js|jscript|javascript)</,end:/>/,excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"},{begin:/&html<\s*</,end:/>\s*>/,subLanguage:"xml"}]}}},function(e,t){function n(e){return function(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}("(",e,")?")}e.exports=function(e){const t=function(e){const t=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),o="(decltype\\(auto\\)|"+n("[a-zA-Z_]\\w*::")+"[a-zA-Z_]\\w*"+n("<[^<>]+>")+")",r={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},i={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},a={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},s={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(i,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},t,e.C_BLOCK_COMMENT_MODE]},c={className:"title",begin:n("[a-zA-Z_]\\w*::")+e.IDENT_RE,relevance:0},l=n("[a-zA-Z_]\\w*::")+e.IDENT_RE+"\\s*\\(",d={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary",literal:"true false nullptr NULL"},u=[s,r,t,e.C_BLOCK_COMMENT_MODE,a,i],h={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:d,contains:u.concat([{begin:/\(/,end:/\)/,keywords:d,contains:u.concat(["self"]),relevance:0}]),relevance:0},p={className:"function",begin:"("+o+"[\\*&\\s]+)+"+l,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:d,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:"decltype\\(auto\\)",keywords:d,relevance:0},{begin:l,returnBegin:!0,contains:[c],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:[t,e.C_BLOCK_COMMENT_MODE,i,a,r,{begin:/\(/,end:/\)/,keywords:d,relevance:0,contains:["self",t,e.C_BLOCK_COMMENT_MODE,i,a,r]}]},r,t,e.C_BLOCK_COMMENT_MODE,s]};return{aliases:["c","cc","h","c++","h++","hpp","hh","hxx","cxx"],keywords:d,disableAutodetect:!0,illegal:"</",contains:[].concat(h,p,u,[s,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<",end:">",keywords:d,contains:["self",r]},{begin:e.IDENT_RE+"::",keywords:d},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:s,strings:i,keywords:d}}}(e);return t.disableAutodetect=!1,t.name="C++",t.aliases=["cc","c++","h++","hpp","hh","hxx","cxx"],t}},function(e,t){e.exports=function(e){const t="group clone ms master location colocation order fencing_topology rsc_ticket acl_target acl_group user role tag xml";return{name:"crmsh",aliases:["crm","pcmk"],case_insensitive:!0,keywords:{keyword:"params meta operations op rule attributes utilization read write deny defined not_defined in_range date spec in ref reference attribute type xpath version and or lt gt tag lte gte eq ne \\ number string",literal:"Master Started Slave Stopped start promote demote stop monitor true false"},contains:[e.HASH_COMMENT_MODE,{beginKeywords:"node",starts:{end:"\\s*([\\w_-]+:)?",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*"}}},{beginKeywords:"primitive rsc_template",starts:{className:"title",end:"\\s*[\\$\\w_][\\w_-]*",starts:{end:"\\s*@?[\\w_][\\w_\\.:-]*"}}},{begin:"\\b("+t.split(" ").join("|")+")\\s+",keywords:t,starts:{className:"title",end:"[\\$\\w_][\\w_-]*"}},{beginKeywords:"property rsc_defaults op_defaults",starts:{className:"title",end:"\\s*([\\w_-]+:)?"}},e.QUOTE_STRING_MODE,{className:"meta",begin:"(ocf|systemd|service|lsb):[\\w_:-]+",relevance:0},{className:"number",begin:"\\b\\d+(\\.\\d+)?(ms|s|h|m)?",relevance:0},{className:"literal",begin:"[-]?(infinity|inf)",relevance:0},{className:"attr",begin:/([A-Za-z$_#][\w_-]+)=/,relevance:0},{className:"tag",begin:"</?",end:"/?>",relevance:0}]}}},function(e,t){e.exports=function(e){const t="(_?[ui](8|16|32|64|128))?",n="[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|[=!]~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~|]|//|//=|&[-+*]=?|&\\*\\*|\\[\\][=?]?",o={$pattern:"[a-zA-Z_]\\w*[!?=]?",keyword:"abstract alias annotation as as? asm begin break case class def do else elsif end ensure enum extend for fun if include instance_sizeof is_a? lib macro module next nil? of out pointerof private protected rescue responds_to? return require select self sizeof struct super then type typeof union uninitialized unless until verbatim when while with yield __DIR__ __END_LINE__ __FILE__ __LINE__",literal:"false nil true"},r={className:"subst",begin:/#\{/,end:/\}/,keywords:o},i={className:"template-variable",variants:[{begin:"\\{\\{",end:"\\}\\}"},{begin:"\\{%",end:"%\\}"}],keywords:o};function a(e,t){const n=[{begin:e,end:t}];return n[0].contains=n,n}const s={className:"string",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[Qwi]?\\(",end:"\\)",contains:a("\\(","\\)")},{begin:"%[Qwi]?\\[",end:"\\]",contains:a("\\[","\\]")},{begin:"%[Qwi]?\\{",end:/\}/,contains:a(/\{/,/\}/)},{begin:"%[Qwi]?<",end:">",contains:a("<",">")},{begin:"%[Qwi]?\\|",end:"\\|"},{begin:/<<-\w+$/,end:/^\s*\w+$/}],relevance:0},c={className:"string",variants:[{begin:"%q\\(",end:"\\)",contains:a("\\(","\\)")},{begin:"%q\\[",end:"\\]",contains:a("\\[","\\]")},{begin:"%q\\{",end:/\}/,contains:a(/\{/,/\}/)},{begin:"%q<",end:">",contains:a("<",">")},{begin:"%q\\|",end:"\\|"},{begin:/<<-'\w+'$/,end:/^\s*\w+$/}],relevance:0},l={begin:"(?!%\\})("+e.RE_STARTERS_RE+"|\\n|\\b(case|if|select|unless|until|when|while)\\b)\\s*",keywords:"case if select unless until when while",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:"//[a-z]*",relevance:0},{begin:"/(?!\\/)",end:"/[a-z]*"}]}],relevance:0},d=[i,s,c,{className:"regexp",contains:[e.BACKSLASH_ESCAPE,r],variants:[{begin:"%r\\(",end:"\\)",contains:a("\\(","\\)")},{begin:"%r\\[",end:"\\]",contains:a("\\[","\\]")},{begin:"%r\\{",end:/\}/,contains:a(/\{/,/\}/)},{begin:"%r<",end:">",contains:a("<",">")},{begin:"%r\\|",end:"\\|"}],relevance:0},l,{className:"meta",begin:"@\\[",end:"\\]",contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"})]},e.HASH_COMMENT_MODE,{className:"class",beginKeywords:"class module struct",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|!)?"}),{begin:"<"}]},{className:"class",beginKeywords:"lib enum union",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|!)?"})]},{beginKeywords:"annotation",end:"$|;",illegal:/=/,contains:[e.HASH_COMMENT_MODE,e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|!)?"})],relevance:2},{className:"function",beginKeywords:"def",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})]},{className:"function",beginKeywords:"fun macro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:n,endsParent:!0})],relevance:2},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":",contains:[s,{begin:n}],relevance:0},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b([1-9][0-9_]*[0-9]|[0-9])(\\.[0-9][0-9_]*)?([eE]_?[-+]?[0-9_]*)?(_?f(32|64))?(?!_)"},{begin:"\\b([1-9][0-9_]*|0)"+t}],relevance:0}];return r.contains=d,i.contains=d.slice(1),{name:"Crystal",aliases:["cr"],keywords:o,contains:d}}},function(e,t){e.exports=function(e){var t={keyword:["abstract","as","base","break","case","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"].concat(["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"]).join(" "),built_in:["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","unit","ushort"].join(" "),literal:["default","false","null","true"].join(" ")},n=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),o={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},r={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},i=e.inherit(r,{illegal:/\n/}),a={className:"subst",begin:/\{/,end:/\}/,keywords:t},s=e.inherit(a,{illegal:/\n/}),c={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,s]},l={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},a]},d=e.inherit(l,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},s]});a.contains=[l,c,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,e.C_BLOCK_COMMENT_MODE],s.contains=[d,c,i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,o,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];var u={variants:[l,c,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},h={begin:"<",end:">",contains:[{beginKeywords:"in out"},n]},p=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",m={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:t,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"\x3c!--|--\x3e"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},u,o,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},n,h,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[n,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[n,h,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"meta-string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+p+"\\s+)+"+e.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:t,contains:[{beginKeywords:["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"].join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<.+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,h],relevance:0},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,relevance:0,contains:[u,o,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},m]}}},function(e,t){e.exports=function(e){return{name:"CSP",case_insensitive:!1,keywords:{$pattern:"[a-zA-Z][a-zA-Z0-9_-]*",keyword:"base-uri child-src connect-src default-src font-src form-action frame-ancestors frame-src img-src media-src object-src plugin-types report-uri sandbox script-src style-src"},contains:[{className:"string",begin:"'",end:"'"},{className:"attribute",begin:"^Content",end:":",excludeEnd:!0}]}}},function(e,t){e.exports=function(e){var t={begin:/([*]\s?)?(?:[A-Z_.\-\\]+|--[a-zA-Z0-9_-]+)\s*(\/\*\*\/)?:/,returnBegin:!0,end:";",endsWithParent:!0,contains:[{className:"attribute",begin:/\S/,end:":",excludeEnd:!0,starts:{endsWithParent:!0,excludeEnd:!0,contains:[{begin:/[\w-]+\(/,returnBegin:!0,contains:[{className:"built_in",begin:/[\w-]+/},{begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"#[0-9A-Fa-f]+"},{className:"meta",begin:"!important"}]}}]};return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,contains:[e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/},{className:"selector-class",begin:"\\.[a-zA-Z-][a-zA-Z0-9_-]*"},{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9_+()"'.-]+/},{begin:"@(page|font-face)",lexemes:"@[a-z-]+",keywords:"@page @font-face"},{begin:"@",end:"[{;]",illegal:/:/,returnBegin:!0,contains:[{className:"keyword",begin:/@-?\w[\w]*(-\w+)*/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:"and or not only",contains:[{begin:/[a-z-]+:/,className:"attribute"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},{begin:/\{/,end:/\}/,illegal:/\S/,contains:[e.C_BLOCK_COMMENT_MODE,{begin:/;/},t]}]}}},function(e,t){e.exports=function(e){const t={$pattern:e.UNDERSCORE_IDENT_RE,keyword:"abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",built_in:"bool cdouble cent cfloat char creal dchar delegate double dstring float function idouble ifloat ireal long real short string ubyte ucent uint ulong ushort wchar wstring",literal:"false null true"},n="((0|[1-9][\\d_]*)|0[bB][01_]+|0[xX]([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))",o="\\\\(['\"\\?\\\\abfnrtv]|u[\\dA-Fa-f]{4}|[0-7]{1,3}|x[\\dA-Fa-f]{2}|U[\\dA-Fa-f]{8})|&[a-zA-Z\\d]{2,};",r={className:"number",begin:"\\b"+n+"(L|u|U|Lu|LU|uL|UL)?",relevance:0},i={className:"number",begin:"\\b(((0[xX](([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)\\.([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*)|\\.?([\\da-fA-F][\\da-fA-F_]*|_[\\da-fA-F][\\da-fA-F_]*))[pP][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))|((0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)(\\.\\d*|([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)))|\\d+\\.(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d)|\\.(0|[1-9][\\d_]*)([eE][+-]?(0|[1-9][\\d_]*|\\d[\\d_]*|[\\d_]+?\\d))?))([fF]|L|i|[fF]i|Li)?|"+n+"(i|[fF]i|Li))",relevance:0},a={className:"string",begin:"'("+o+"|.)",end:"'",illegal:"."},s={className:"string",begin:'"',contains:[{begin:o,relevance:0}],end:'"[cwd]?'},c=e.COMMENT("\\/\\+","\\+\\/",{contains:["self"],relevance:10});return{name:"D",keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,c,{className:"string",begin:'x"[\\da-fA-F\\s\\n\\r]*"[cwd]?',relevance:10},s,{className:"string",begin:'[rq]"',end:'"[cwd]?',relevance:5},{className:"string",begin:"`",end:"`[cwd]?"},{className:"string",begin:'q"\\{',end:'\\}"'},i,r,a,{className:"meta",begin:"^#!",end:"$",relevance:5},{className:"meta",begin:"#(line)",end:"$",relevance:5},{className:"keyword",begin:"@[a-zA-Z_][a-zA-Z_\\d]*"}]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},o={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:n(/\[.+?\]\(/,/[A-Za-z][A-Za-z0-9+.-]*/,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.+?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},r={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},i={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]};r.contains.push(i),i.contains.push(r);let a=[t,o];return r.contains=r.contains.concat(a),i.contains=i.contains.concat(a),a=a.concat(r,i),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:a},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:a}]}]},t,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},r,i,{className:"quote",begin:"^>\\s+",contains:a,end:"$"},{className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},o,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}},function(e,t){e.exports=function(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},n={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},o={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"""',end:'"""',contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]},{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t,n]}]};n.contains=[e.C_NUMBER_MODE,o];const r=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],i=r.map(e=>e+"?");return{name:"Dart",keywords:{keyword:"abstract as assert async await break case catch class const continue covariant default deferred do dynamic else enum export extends extension external factory false final finally for Function get hide if implements import in inferface is late library mixin new null on operator part required rethrow return set show static super switch sync this throw true try typedef var void while with yield",built_in:r.concat(i).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]).join(" "),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[o,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),e.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}},function(e,t){e.exports=function(e){const t="exports register file shl array record property for mod while set ally label uses raise not stored class safecall var interface or private static exit index inherited to else stdcall override shr asm far resourcestring finalization packed virtual out and protected library do xorwrite goto near function end div overload object unit begin string on inline repeat until destructor write message program with read initialization except default nil if case cdecl in downto threadvar of try pascal const external constructor type public then implementation finally published procedure absolute reintroduce operator as is abstract alias assembler bitpacked break continue cppdecl cvar enumerator experimental platform deprecated unimplemented dynamic export far16 forward generic helper implements interrupt iochecks local name nodefault noreturn nostackframe oldfpccall otherwise saveregisters softfloat specialize strict unaligned varargs ",n=[e.C_LINE_COMMENT_MODE,e.COMMENT(/\{/,/\}/,{relevance:0}),e.COMMENT(/\(\*/,/\*\)/,{relevance:10})],o={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},r={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},i={className:"string",begin:/(#\d+)+/},a={begin:e.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE]},s={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,contains:[r,i,o].concat(n)},o].concat(n)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal","freepascal","lazarus","lpr","lfm"],case_insensitive:!0,keywords:t,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[r,i,e.NUMBER_MODE,{className:"number",relevance:0,variants:[{begin:"\\$[0-9A-Fa-f]+"},{begin:"&[0-7]+"},{begin:"%[01]+"}]},a,s,o].concat(n)}}},function(e,t){e.exports=function(e){return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,variants:[{begin:/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/},{begin:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{begin:/^--- +\d+,\d+ +----$/}]},{className:"comment",variants:[{begin:/Index: /,end:/$/},{begin:/^index/,end:/$/},{begin:/={3,}/,end:/$/},{begin:/^-{3}/,end:/$/},{begin:/^\*{3} /,end:/$/},{begin:/^\+{3}/,end:/$/},{begin:/^\*{15}$/},{begin:/^diff --git/,end:/$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}},function(e,t){e.exports=function(e){const t={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[t],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[t]}]}}},function(e,t){e.exports=function(e){return{name:"DNS Zone",aliases:["bind","zone"],keywords:{keyword:"IN A AAAA AFSDB APL CAA CDNSKEY CDS CERT CNAME DHCID DLV DNAME DNSKEY DS HIP IPSECKEY KEY KX LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RRSIG RP SIG SOA SRV SSHFP TA TKEY TLSA TSIG TXT"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},e.inherit(e.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}},function(e,t){e.exports=function(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:"from maintainer expose env arg user onbuild stopsignal",contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}},function(e,t){e.exports=function(e){const t=e.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:"if else goto for in do call exit not exist errorlevel defined equ neq lss leq gtr geq",built_in:"prn nul lpt3 lpt2 lpt1 con com4 com3 com2 com1 aux shift cd dir echo setlocal endlocal set pause copy append assoc at attrib break cacls cd chcp chdir chkdsk chkntfs cls cmd color comp compact convert date dir diskcomp diskcopy doskey erase fs find findstr format ftype graftabl help keyb label md mkdir mode more move path pause print popd pushd promt rd recover rem rename replace restore rmdir shift sort start subst time title tree type ver verify vol ping net ipconfig taskkill xcopy ren del"},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)",end:"goto:eof",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),t]},{className:"number",begin:"\\b\\d+",relevance:0},t]}}},function(e,t){e.exports=function(e){return{keywords:"dsconfig",contains:[{className:"keyword",begin:"^dsconfig",end:/\s/,excludeEnd:!0,relevance:10},{className:"built_in",begin:/(list|create|get|set|delete)-(\w+)/,end:/\s/,excludeEnd:!0,illegal:"!@#$%^&*()",relevance:10},{className:"built_in",begin:/--(\w+)/,end:/\s/,excludeEnd:!0},{className:"string",begin:/"/,end:/"/},{className:"string",begin:/'/,end:/'/},{className:"string",begin:/[\w\-?]+:\w+/,end:/\W/,relevance:0},{className:"string",begin:/\w+(\-\w+)*/,end:/(?=\W)/,relevance:0},e.HASH_COMMENT_MODE]}}},function(e,t){e.exports=function(e){const t={className:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{begin:'((u8?|U)|L)?"'}),{begin:'(u8?|U)?R"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{begin:"'\\\\?.",end:"'",illegal:"."}]},n={className:"number",variants:[{begin:"\\b(\\d+(\\.\\d*)?|\\.\\d+)(u|U|l|L|ul|UL|f|F)"},{begin:e.C_NUMBER_RE}],relevance:0},o={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef ifdef ifndef"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[e.inherit(t,{className:"meta-string"}),{className:"meta-string",begin:"<",end:">",illegal:"\\n"}]},t,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},r={className:"variable",begin:/&[a-z\d_]*\b/},i={className:"meta-keyword",begin:"/[a-z][a-z\\d-]*/"},a={className:"symbol",begin:"^\\s*[a-zA-Z_][a-zA-Z\\d_]*:"},s={className:"params",begin:"<",end:">",contains:[n,r]},c={className:"class",begin:/[a-zA-Z_][a-zA-Z\d_@]*\s\{/,end:/[{;=]/,returnBegin:!0,excludeEnd:!0};return{name:"Device Tree",keywords:"",contains:[{className:"class",begin:"/\\s*\\{",end:/\};/,relevance:10,contains:[r,i,a,c,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t]},r,i,a,c,s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,t,o,{begin:e.IDENT_RE+"::",keywords:""}]}}},function(e,t){e.exports=function(e){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[e.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}},function(e,t){e.exports=function(e){const t=e.COMMENT(/\(\*/,/\*\)/);return{name:"Extended Backus-Naur Form",illegal:/\S/,contains:[t,{className:"attribute",begin:/^[ ]*[a-zA-Z]+([\s_-]+[a-zA-Z]+)*/},{begin:/=/,end:/[.;]/,contains:[t,{className:"meta",begin:/\?.*\?/},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"`",end:"`"}]}]}]}}},function(e,t){e.exports=function(e){const t="[a-zA-Z_][a-zA-Z0-9_.]*(!|\\?)?",n={$pattern:t,keyword:"and false then defined module in return redo retry end for true self when next until do begin unless nil break not case cond alias while ensure or include use alias fn quote require import with|0"},o={className:"subst",begin:/#\{/,end:/\}/,keywords:n},r={className:"number",begin:"(\\b0o[0-7_]+)|(\\b0b[01_]+)|(\\b0x[0-9a-fA-F_]+)|(-?\\b[1-9][0-9_]*(\\.[0-9_]+([eE][-+]?[0-9]+)?)?)",relevance:0},i={className:"string",begin:"~[a-z](?=[/|([{<\"'])",contains:[{endsParent:!0,contains:[{contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}]}]}]},a={className:"string",begin:"~[A-Z](?=[/|([{<\"'])",contains:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/\//,end:/\//},{begin:/\|/,end:/\|/},{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/},{begin:/\{/,end:/\}/},{begin:/</,end:/>/}]},s={className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:/~S"""/,end:/"""/,contains:[]},{begin:/~S"/,end:/"/,contains:[]},{begin:/~S'''/,end:/'''/,contains:[]},{begin:/~S'/,end:/'/,contains:[]},{begin:/'/,end:/'/},{begin:/"/,end:/"/}]},c={className:"function",beginKeywords:"def defp defmacro",end:/\B\b/,contains:[e.inherit(e.TITLE_MODE,{begin:t,endsParent:!0})]},l=e.inherit(c,{className:"class",beginKeywords:"defimpl defmodule defprotocol defrecord",end:/\bdo\b|$|;/}),d=[s,a,i,e.HASH_COMMENT_MODE,l,c,{begin:"::"},{className:"symbol",begin:":(?![\\s:])",contains:[s,{begin:"[a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?"}],relevance:0},{className:"symbol",begin:t+":(?!:)",relevance:0},r,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))"},{begin:"->"},{begin:"("+e.RE_STARTERS_RE+")\\s*",contains:[e.HASH_COMMENT_MODE,{begin:/\/: (?=\d+\s*[,\]])/,relevance:0,contains:[r]},{className:"regexp",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}],relevance:0}];return o.contains=d,{name:"Elixir",keywords:n,contains:d}}},function(e,t){e.exports=function(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},o={begin:"\\(",end:"\\)",illegal:'"',contains:[{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},t]};return{name:"Elm",keywords:"let in if then else case of where module import exposing type alias as infix infixl infixr port effect command subscription",contains:[{beginKeywords:"port effect module",end:"exposing",keywords:"port effect module where command subscription exposing",contains:[o,t],illegal:"\\W\\.|;"},{begin:"import",end:"$",keywords:"import as exposing",contains:[o,t],illegal:"\\W\\.|;"},{begin:"type",end:"$",keywords:"type alias",contains:[n,o,{begin:/\{/,end:/\}/,contains:o.contains},t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"port",end:"$",keywords:"port",contains:[t]},{className:"string",begin:"'\\\\?.",end:"'",illegal:"."},e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,n,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}],illegal:/;/}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){var t,o="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor __FILE__",built_in:"proc lambda",literal:"true false nil"},i={className:"doctag",begin:"@[A-Za-z]+"},a={begin:"#<",end:">"},s=[e.COMMENT("#","$",{contains:[i]}),e.COMMENT("^=begin","^=end",{contains:[i],relevance:10}),e.COMMENT("^__END__","\\n$")],c={className:"subst",begin:/#\{/,end:/\}/,keywords:r},l={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/},{begin:/<<[-~]?'?(\w+)\n(?:[^\n]*\n)*?\s*\1\b/,returnBegin:!0,contains:[{begin:/<<[-~]?'?/},e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},d={className:"number",relevance:0,variants:[{begin:"\\b([1-9](_?[0-9])*|0)(\\.([0-9](_?[0-9])*))?([eE][+-]?([0-9](_?[0-9])*)|r)?i?\\b"},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},u={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:r},h=[l,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|!)?"}),{begin:"<\\s*",contains:[{begin:"("+e.IDENT_RE+"::)?"+e.IDENT_RE}]}].concat(s)},{className:"function",begin:n(/def\s*/,(t=o+"\\s*(\\(|;|$)",n("(?=",t,")"))),keywords:"def",end:"$|;",contains:[e.inherit(e.TITLE_MODE,{begin:o}),u].concat(s)},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[l,{begin:o}],relevance:0},d,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,relevance:0,keywords:r},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(a,s),relevance:0}].concat(a,s);c.contains=h,u.contains=h;var p=[{begin:/^\s*=>/,starts:{end:"$",contains:h}},{className:"meta",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>)(?=[ ])",starts:{end:"$",contains:h}}];return s.unshift(a),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:r,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(p).concat(s).concat(h)}}},function(e,t){e.exports=function(e){return{name:"ERB",subLanguage:"xml",contains:[e.COMMENT("<%#","%>"),{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0}]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){return{name:"Erlang REPL",keywords:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},contains:[{className:"meta",begin:"^[0-9]+> ",relevance:10},e.COMMENT("%","$"),{className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:n(/\?(::)?/,/([A-Z]\w*)/,/((::)[A-Z]\w*)*/)},{begin:"->"},{begin:"ok"},{begin:"!"},{begin:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",relevance:0},{begin:"[A-Z][a-zA-Z0-9_']*",relevance:0}]}}},function(e,t){e.exports=function(e){const t="[a-z'][a-zA-Z0-9_']*",n="("+t+":"+t+"|"+t+")",o={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},r=e.COMMENT("%","$"),i={className:"number",begin:"\\b(\\d+(_\\d+)*#[a-fA-F0-9]+(_[a-fA-F0-9]+)*|\\d+(_\\d+)*(\\.\\d+(_\\d+)*)?([eE][-+]?\\d+)?)",relevance:0},a={begin:"fun\\s+"+t+"/\\d+"},s={begin:n+"\\(",end:"\\)",returnBegin:!0,relevance:0,contains:[{begin:n,relevance:0},{begin:"\\(",end:"\\)",endsWithParent:!0,returnEnd:!0,relevance:0}]},c={begin:/\{/,end:/\}/,relevance:0},l={begin:"\\b_([A-Z][A-Za-z0-9_]*)?",relevance:0},d={begin:"[A-Z][a-zA-Z0-9_]*",relevance:0},u={begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0,returnBegin:!0,contains:[{begin:"#"+e.UNDERSCORE_IDENT_RE,relevance:0},{begin:/\{/,end:/\}/,relevance:0}]},h={beginKeywords:"fun receive if try case",end:"end",keywords:o};h.contains=[r,a,e.inherit(e.APOS_STRING_MODE,{className:""}),h,s,e.QUOTE_STRING_MODE,i,c,l,d,u];const p=[r,a,h,s,e.QUOTE_STRING_MODE,i,c,l,d,u];s.contains[1].contains=p,c.contains=p,u.contains[1].contains=p;const m={className:"params",begin:"\\(",end:"\\)",contains:p};return{name:"Erlang",aliases:["erl"],keywords:o,illegal:"(</|\\*=|\\+=|-=|/\\*|\\*/|\\(\\*|\\*\\))",contains:[{className:"function",begin:"^"+t+"\\s*\\(",end:"->",returnBegin:!0,illegal:"\\(|#|//|/\\*|\\\\|:|;",contains:[m,e.inherit(e.TITLE_MODE,{begin:t})],starts:{end:";|\\.",keywords:o,contains:p}},r,{begin:"^-",end:"\\.",relevance:0,excludeEnd:!0,returnBegin:!0,keywords:{$pattern:"-"+e.IDENT_RE,keyword:"-module -record -undef -export -ifdef -ifndef -author -copyright -doc -vsn -import -include -include_lib -compile -define -else -endif -file -behaviour -behavior -spec"},contains:[m]},i,e.QUOTE_STRING_MODE,u,l,d,c,{begin:/\.$/}]}}},function(e,t){e.exports=function(e){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:"ABS ACCRINT ACCRINTM ACOS ACOSH ACOT ACOTH AGGREGATE ADDRESS AMORDEGRC AMORLINC AND ARABIC AREAS ASC ASIN ASINH ATAN ATAN2 ATANH AVEDEV AVERAGE AVERAGEA AVERAGEIF AVERAGEIFS BAHTTEXT BASE BESSELI BESSELJ BESSELK BESSELY BETADIST BETA.DIST BETAINV BETA.INV BIN2DEC BIN2HEX BIN2OCT BINOMDIST BINOM.DIST BINOM.DIST.RANGE BINOM.INV BITAND BITLSHIFT BITOR BITRSHIFT BITXOR CALL CEILING CEILING.MATH CEILING.PRECISE CELL CHAR CHIDIST CHIINV CHITEST CHISQ.DIST CHISQ.DIST.RT CHISQ.INV CHISQ.INV.RT CHISQ.TEST CHOOSE CLEAN CODE COLUMN COLUMNS COMBIN COMBINA COMPLEX CONCAT CONCATENATE CONFIDENCE CONFIDENCE.NORM CONFIDENCE.T CONVERT CORREL COS COSH COT COTH COUNT COUNTA COUNTBLANK COUNTIF COUNTIFS COUPDAYBS COUPDAYS COUPDAYSNC COUPNCD COUPNUM COUPPCD COVAR COVARIANCE.P COVARIANCE.S CRITBINOM CSC CSCH CUBEKPIMEMBER CUBEMEMBER CUBEMEMBERPROPERTY CUBERANKEDMEMBER CUBESET CUBESETCOUNT CUBEVALUE CUMIPMT CUMPRINC DATE DATEDIF DATEVALUE DAVERAGE DAY DAYS DAYS360 DB DBCS DCOUNT DCOUNTA DDB DEC2BIN DEC2HEX DEC2OCT DECIMAL DEGREES DELTA DEVSQ DGET DISC DMAX DMIN DOLLAR DOLLARDE DOLLARFR DPRODUCT DSTDEV DSTDEVP DSUM DURATION DVAR DVARP EDATE EFFECT ENCODEURL EOMONTH ERF ERF.PRECISE ERFC ERFC.PRECISE ERROR.TYPE EUROCONVERT EVEN EXACT EXP EXPON.DIST EXPONDIST FACT FACTDOUBLE FALSE|0 F.DIST FDIST F.DIST.RT FILTERXML FIND FINDB F.INV F.INV.RT FINV FISHER FISHERINV FIXED FLOOR FLOOR.MATH FLOOR.PRECISE FORECAST FORECAST.ETS FORECAST.ETS.CONFINT FORECAST.ETS.SEASONALITY FORECAST.ETS.STAT FORECAST.LINEAR FORMULATEXT FREQUENCY F.TEST FTEST FV FVSCHEDULE GAMMA GAMMA.DIST GAMMADIST GAMMA.INV GAMMAINV GAMMALN GAMMALN.PRECISE GAUSS GCD GEOMEAN GESTEP GETPIVOTDATA GROWTH HARMEAN HEX2BIN HEX2DEC HEX2OCT HLOOKUP HOUR HYPERLINK HYPGEOM.DIST HYPGEOMDIST IF IFERROR IFNA IFS IMABS IMAGINARY IMARGUMENT IMCONJUGATE IMCOS IMCOSH IMCOT IMCSC IMCSCH IMDIV IMEXP IMLN IMLOG10 IMLOG2 IMPOWER IMPRODUCT IMREAL IMSEC IMSECH IMSIN IMSINH IMSQRT IMSUB IMSUM IMTAN INDEX INDIRECT INFO INT INTERCEPT INTRATE IPMT IRR ISBLANK ISERR ISERROR ISEVEN ISFORMULA ISLOGICAL ISNA ISNONTEXT ISNUMBER ISODD ISREF ISTEXT ISO.CEILING ISOWEEKNUM ISPMT JIS KURT LARGE LCM LEFT LEFTB LEN LENB LINEST LN LOG LOG10 LOGEST LOGINV LOGNORM.DIST LOGNORMDIST LOGNORM.INV LOOKUP LOWER MATCH MAX MAXA MAXIFS MDETERM MDURATION MEDIAN MID MIDBs MIN MINIFS MINA MINUTE MINVERSE MIRR MMULT MOD MODE MODE.MULT MODE.SNGL MONTH MROUND MULTINOMIAL MUNIT N NA NEGBINOM.DIST NEGBINOMDIST NETWORKDAYS NETWORKDAYS.INTL NOMINAL NORM.DIST NORMDIST NORMINV NORM.INV NORM.S.DIST NORMSDIST NORM.S.INV NORMSINV NOT NOW NPER NPV NUMBERVALUE OCT2BIN OCT2DEC OCT2HEX ODD ODDFPRICE ODDFYIELD ODDLPRICE ODDLYIELD OFFSET OR PDURATION PEARSON PERCENTILE.EXC PERCENTILE.INC PERCENTILE PERCENTRANK.EXC PERCENTRANK.INC PERCENTRANK PERMUT PERMUTATIONA PHI PHONETIC PI PMT POISSON.DIST POISSON POWER PPMT PRICE PRICEDISC PRICEMAT PROB PRODUCT PROPER PV QUARTILE QUARTILE.EXC QUARTILE.INC QUOTIENT RADIANS RAND RANDBETWEEN RANK.AVG RANK.EQ RANK RATE RECEIVED REGISTER.ID REPLACE REPLACEB REPT RIGHT RIGHTB ROMAN ROUND ROUNDDOWN ROUNDUP ROW ROWS RRI RSQ RTD SEARCH SEARCHB SEC SECH SECOND SERIESSUM SHEET SHEETS SIGN SIN SINH SKEW SKEW.P SLN SLOPE SMALL SQL.REQUEST SQRT SQRTPI STANDARDIZE STDEV STDEV.P STDEV.S STDEVA STDEVP STDEVPA STEYX SUBSTITUTE SUBTOTAL SUM SUMIF SUMIFS SUMPRODUCT SUMSQ SUMX2MY2 SUMX2PY2 SUMXMY2 SWITCH SYD T TAN TANH TBILLEQ TBILLPRICE TBILLYIELD T.DIST T.DIST.2T T.DIST.RT TDIST TEXT TEXTJOIN TIME TIMEVALUE T.INV T.INV.2T TINV TODAY TRANSPOSE TREND TRIM TRIMMEAN TRUE|0 TRUNC T.TEST TTEST TYPE UNICHAR UNICODE UPPER VALUE VAR VAR.P VAR.S VARA VARP VARPA VDB VLOOKUP WEBSERVICE WEEKDAY WEEKNUM WEIBULL WEIBULL.DIST WORKDAY WORKDAY.INTL XIRR XNPV XOR YEAR YEARFRAC YIELD YIELDDISC YIELDMAT Z.TEST ZTEST"},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},e.BACKSLASH_ESCAPE,e.QUOTE_STRING_MODE,{className:"number",begin:e.NUMBER_RE+"(%)?",relevance:0},e.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}},function(e,t){e.exports=function(e){return{name:"FIX",contains:[{begin:/[^\u2401\u0001]+/,end:/[\u2401\u0001]/,excludeEnd:!0,returnBegin:!0,returnEnd:!1,contains:[{begin:/([^\u2401\u0001=]+)/,end:/=([^\u2401\u0001=]+)/,returnEnd:!0,returnBegin:!1,className:"attr"},{begin:/=/,end:/([\u2401\u0001])/,excludeEnd:!0,excludeBegin:!0,className:"string"}]}],case_insensitive:!0}}},function(e,t){e.exports=function(e){const t={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[{className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/}]};return{name:"Flix",keywords:{literal:"true false",keyword:"case class def else enum if impl import in lat rel index let match namespace switch type yield with"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},{className:"string",variants:[{begin:'"',end:'"'}]},t,e.C_NUMBER_MODE]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t={variants:[e.COMMENT("!","$",{relevance:0}),e.COMMENT("^C[ ]","$",{relevance:0}),e.COMMENT("^C$","$",{relevance:0})]},o=/(_[a-z_\d]+)?/,r=/([de][+-]?\d+)?/,i={className:"number",variants:[{begin:n(/\b\d+/,/\.(\d*)/,r,o)},{begin:n(/\b\d+/,r,o)},{begin:n(/\.\d+/,r,o)}],relevance:0},a={className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]};return{name:"Fortran",case_insensitive:!0,aliases:["f90","f95"],keywords:{literal:".False. .True.",keyword:"kind do concurrent local shared while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then block endblock endassociate public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure impure integer real character complex logical codimension dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image sync change team co_broadcast co_max co_min co_sum co_reduce"},illegal:/\/\*/,contains:[{className:"string",relevance:0,variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},a,{begin:/^C\s*=(?!=)/,relevance:0},t,i]}}},function(e,t){e.exports=function(e){const t={begin:"<",end:">",contains:[e.inherit(e.TITLE_MODE,{begin:/'[a-zA-Z0-9_]+/})]};return{name:"F#",aliases:["fs"],keywords:"abstract and as assert base begin class default delegate do done downcast downto elif else end exception extern false finally for fun function global if in inherit inline interface internal lazy let match member module mutable namespace new null of open or override private public rec return sig static struct then to true try type upcast use val void when while with yield",illegal:/\/\*/,contains:[{className:"keyword",begin:/\b(yield|return|let|do)!/},{className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:'"""',end:'"""'},e.COMMENT("\\(\\*(\\s)","\\*\\)",{contains:["self"]}),{className:"class",beginKeywords:"type",end:"\\(|=|$",excludeEnd:!0,contains:[e.UNDERSCORE_TITLE_MODE,t]},{className:"meta",begin:"\\[<",end:">\\]",relevance:10},{className:"symbol",begin:"\\B('[A-Za-z])\\b",contains:[e.BACKSLASH_ESCAPE]},e.C_LINE_COMMENT_MODE,e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),e.C_NUMBER_MODE]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t={keyword:"abort acronym acronyms alias all and assign binary card diag display else eq file files for free ge gt if integer le loop lt maximizing minimizing model models ne negative no not option options or ord positive prod put putpage puttl repeat sameas semicont semiint smax smin solve sos1 sos2 sum system table then until using while xor yes",literal:"eps inf na",built_in:"abs arccos arcsin arctan arctan2 Beta betaReg binomial ceil centropy cos cosh cvPower div div0 eDist entropy errorf execSeed exp fact floor frac gamma gammaReg log logBeta logGamma log10 log2 mapVal max min mod ncpCM ncpF ncpVUpow ncpVUsin normal pi poly power randBinomial randLinear randTriangle round rPower sigmoid sign signPower sin sinh slexp sllog10 slrec sqexp sqlog10 sqr sqrec sqrt tan tanh trunc uniform uniformInt vcPower bool_and bool_eqv bool_imp bool_not bool_or bool_xor ifThen rel_eq rel_ge rel_gt rel_le rel_lt rel_ne gday gdow ghour gleap gmillisec gminute gmonth gsecond gyear jdate jnow jstart jtime errorLevel execError gamsRelease gamsVersion handleCollect handleDelete handleStatus handleSubmit heapFree heapLimit heapSize jobHandle jobKill jobStatus jobTerminate licenseLevel licenseStatus maxExecError sleep timeClose timeComp timeElapsed timeExec timeStart"},o={className:"symbol",variants:[{begin:/=[lgenxc]=/},{begin:/\$/}]},r={className:"comment",variants:[{begin:"'",end:"'"},{begin:'"',end:'"'}],illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},i={begin:"/",end:"/",keywords:t,contains:[r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},a=/[a-z0-9&#*=?@\\><:,()$[\]_.{}!+%^-]+/,s={begin:/[a-z][a-z0-9_]*(\([a-z0-9_, ]*\))?[ \t]+/,excludeBegin:!0,end:"$",endsWithParent:!0,contains:[r,i,{className:"comment",begin:n(a,(c=n(/[ ]+/,a),n("(",c,")*"))),relevance:0}]};var c;return{name:"GAMS",aliases:["gms"],case_insensitive:!0,keywords:t,contains:[e.COMMENT(/^\$ontext/,/^\$offtext/),{className:"meta",begin:"^\\$[a-z0-9]+",end:"$",returnBegin:!0,contains:[{className:"meta-keyword",begin:"^\\$[a-z0-9]+"}]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{beginKeywords:"set sets parameter parameters variable variables scalar scalars equation equations",end:";",contains:[e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,i,s]},{beginKeywords:"table",end:";",returnBegin:!0,contains:[{beginKeywords:"table",end:"$",contains:[s]},e.COMMENT("^\\*","$"),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE]},{className:"function",begin:/^[a-z][a-z0-9_,\-+' ()$]+\.{2}/,returnBegin:!0,contains:[{className:"title",begin:/^[a-z0-9_]+/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0},o]},e.C_NUMBER_MODE,o]}}},function(e,t){e.exports=function(e){const t={keyword:"bool break call callexe checkinterrupt clear clearg closeall cls comlog compile continue create debug declare delete disable dlibrary dllcall do dos ed edit else elseif enable end endfor endif endp endo errorlog errorlogat expr external fn for format goto gosub graph if keyword let lib library line load loadarray loadexe loadf loadk loadm loadp loads loadx local locate loopnextindex lprint lpwidth lshow matrix msym ndpclex new open output outwidth plot plotsym pop prcsn print printdos proc push retp return rndcon rndmod rndmult rndseed run save saveall screen scroll setarray show sparse stop string struct system trace trap threadfor threadendfor threadbegin threadjoin threadstat threadend until use while winprint ne ge le gt lt and xor or not eq eqv",built_in:"abs acf aconcat aeye amax amean AmericanBinomCall AmericanBinomCall_Greeks AmericanBinomCall_ImpVol AmericanBinomPut AmericanBinomPut_Greeks AmericanBinomPut_ImpVol AmericanBSCall AmericanBSCall_Greeks AmericanBSCall_ImpVol AmericanBSPut AmericanBSPut_Greeks AmericanBSPut_ImpVol amin amult annotationGetDefaults annotationSetBkd annotationSetFont annotationSetLineColor annotationSetLineStyle annotationSetLineThickness annualTradingDays arccos arcsin areshape arrayalloc arrayindex arrayinit arraytomat asciiload asclabel astd astds asum atan atan2 atranspose axmargin balance band bandchol bandcholsol bandltsol bandrv bandsolpd bar base10 begwind besselj bessely beta box boxcox cdfBeta cdfBetaInv cdfBinomial cdfBinomialInv cdfBvn cdfBvn2 cdfBvn2e cdfCauchy cdfCauchyInv cdfChic cdfChii cdfChinc cdfChincInv cdfExp cdfExpInv cdfFc cdfFnc cdfFncInv cdfGam cdfGenPareto cdfHyperGeo cdfLaplace cdfLaplaceInv cdfLogistic cdfLogisticInv cdfmControlCreate cdfMvn cdfMvn2e cdfMvnce cdfMvne cdfMvt2e cdfMvtce cdfMvte cdfN cdfN2 cdfNc cdfNegBinomial cdfNegBinomialInv cdfNi cdfPoisson cdfPoissonInv cdfRayleigh cdfRayleighInv cdfTc cdfTci cdfTnc cdfTvn cdfWeibull cdfWeibullInv cdir ceil ChangeDir chdir chiBarSquare chol choldn cholsol cholup chrs close code cols colsf combinate combinated complex con cond conj cons ConScore contour conv convertsatostr convertstrtosa corrm corrms corrvc corrx corrxs cos cosh counts countwts crossprd crout croutp csrcol csrlin csvReadM csvReadSA cumprodc cumsumc curve cvtos datacreate datacreatecomplex datalist dataload dataloop dataopen datasave date datestr datestring datestrymd dayinyr dayofweek dbAddDatabase dbClose dbCommit dbCreateQuery dbExecQuery dbGetConnectOptions dbGetDatabaseName dbGetDriverName dbGetDrivers dbGetHostName dbGetLastErrorNum dbGetLastErrorText dbGetNumericalPrecPolicy dbGetPassword dbGetPort dbGetTableHeaders dbGetTables dbGetUserName dbHasFeature dbIsDriverAvailable dbIsOpen dbIsOpenError dbOpen dbQueryBindValue dbQueryClear dbQueryCols dbQueryExecPrepared dbQueryFetchAllM dbQueryFetchAllSA dbQueryFetchOneM dbQueryFetchOneSA dbQueryFinish dbQueryGetBoundValue dbQueryGetBoundValues dbQueryGetField dbQueryGetLastErrorNum dbQueryGetLastErrorText dbQueryGetLastInsertID dbQueryGetLastQuery dbQueryGetPosition dbQueryIsActive dbQueryIsForwardOnly dbQueryIsNull dbQueryIsSelect dbQueryIsValid dbQueryPrepare dbQueryRows dbQuerySeek dbQuerySeekFirst dbQuerySeekLast dbQuerySeekNext dbQuerySeekPrevious dbQuerySetForwardOnly dbRemoveDatabase dbRollback dbSetConnectOptions dbSetDatabaseName dbSetHostName dbSetNumericalPrecPolicy dbSetPort dbSetUserName dbTransaction DeleteFile delif delrows denseToSp denseToSpRE denToZero design det detl dfft dffti diag diagrv digamma doswin DOSWinCloseall DOSWinOpen dotfeq dotfeqmt dotfge dotfgemt dotfgt dotfgtmt dotfle dotflemt dotflt dotfltmt dotfne dotfnemt draw drop dsCreate dstat dstatmt dstatmtControlCreate dtdate dtday dttime dttodtv dttostr dttoutc dtvnormal dtvtodt dtvtoutc dummy dummybr dummydn eig eigh eighv eigv elapsedTradingDays endwind envget eof eqSolve eqSolvemt eqSolvemtControlCreate eqSolvemtOutCreate eqSolveset erf erfc erfccplx erfcplx error etdays ethsec etstr EuropeanBinomCall EuropeanBinomCall_Greeks EuropeanBinomCall_ImpVol EuropeanBinomPut EuropeanBinomPut_Greeks EuropeanBinomPut_ImpVol EuropeanBSCall EuropeanBSCall_Greeks EuropeanBSCall_ImpVol EuropeanBSPut EuropeanBSPut_Greeks EuropeanBSPut_ImpVol exctsmpl exec execbg exp extern eye fcheckerr fclearerr feq feqmt fflush fft ffti fftm fftmi fftn fge fgemt fgets fgetsa fgetsat fgetst fgt fgtmt fileinfo filesa fle flemt floor flt fltmt fmod fne fnemt fonts fopen formatcv formatnv fputs fputst fseek fstrerror ftell ftocv ftos ftostrC gamma gammacplx gammaii gausset gdaAppend gdaCreate gdaDStat gdaDStatMat gdaGetIndex gdaGetName gdaGetNames gdaGetOrders gdaGetType gdaGetTypes gdaGetVarInfo gdaIsCplx gdaLoad gdaPack gdaRead gdaReadByIndex gdaReadSome gdaReadSparse gdaReadStruct gdaReportVarInfo gdaSave gdaUpdate gdaUpdateAndPack gdaVars gdaWrite gdaWrite32 gdaWriteSome getarray getdims getf getGAUSShome getmatrix getmatrix4D getname getnamef getNextTradingDay getNextWeekDay getnr getorders getpath getPreviousTradingDay getPreviousWeekDay getRow getscalar3D getscalar4D getTrRow getwind glm gradcplx gradMT gradMTm gradMTT gradMTTm gradp graphprt graphset hasimag header headermt hess hessMT hessMTg hessMTgw hessMTm hessMTmw hessMTT hessMTTg hessMTTgw hessMTTm hessMTw hessp hist histf histp hsec imag indcv indexcat indices indices2 indicesf indicesfn indnv indsav integrate1d integrateControlCreate intgrat2 intgrat3 inthp1 inthp2 inthp3 inthp4 inthpControlCreate intquad1 intquad2 intquad3 intrleav intrleavsa intrsect intsimp inv invpd invswp iscplx iscplxf isden isinfnanmiss ismiss key keyav keyw lag lag1 lagn lapEighb lapEighi lapEighvb lapEighvi lapgEig lapgEigh lapgEighv lapgEigv lapgSchur lapgSvdcst lapgSvds lapgSvdst lapSvdcusv lapSvds lapSvdusv ldlp ldlsol linSolve listwise ln lncdfbvn lncdfbvn2 lncdfmvn lncdfn lncdfn2 lncdfnc lnfact lngammacplx lnpdfmvn lnpdfmvt lnpdfn lnpdft loadd loadstruct loadwind loess loessmt loessmtControlCreate log loglog logx logy lower lowmat lowmat1 ltrisol lu lusol machEpsilon make makevars makewind margin matalloc matinit mattoarray maxbytes maxc maxindc maxv maxvec mbesselei mbesselei0 mbesselei1 mbesseli mbesseli0 mbesseli1 meanc median mergeby mergevar minc minindc minv miss missex missrv moment momentd movingave movingaveExpwgt movingaveWgt nextindex nextn nextnevn nextwind ntos null null1 numCombinations ols olsmt olsmtControlCreate olsqr olsqr2 olsqrmt ones optn optnevn orth outtyp pacf packedToSp packr parse pause pdfCauchy pdfChi pdfExp pdfGenPareto pdfHyperGeo pdfLaplace pdfLogistic pdfn pdfPoisson pdfRayleigh pdfWeibull pi pinv pinvmt plotAddArrow plotAddBar plotAddBox plotAddHist plotAddHistF plotAddHistP plotAddPolar plotAddScatter plotAddShape plotAddTextbox plotAddTS plotAddXY plotArea plotBar plotBox plotClearLayout plotContour plotCustomLayout plotGetDefaults plotHist plotHistF plotHistP plotLayout plotLogLog plotLogX plotLogY plotOpenWindow plotPolar plotSave plotScatter plotSetAxesPen plotSetBar plotSetBarFill plotSetBarStacked plotSetBkdColor plotSetFill plotSetGrid plotSetLegend plotSetLineColor plotSetLineStyle plotSetLineSymbol plotSetLineThickness plotSetNewWindow plotSetTitle plotSetWhichYAxis plotSetXAxisShow plotSetXLabel plotSetXRange plotSetXTicInterval plotSetXTicLabel plotSetYAxisShow plotSetYLabel plotSetYRange plotSetZAxisShow plotSetZLabel plotSurface plotTS plotXY polar polychar polyeval polygamma polyint polymake polymat polymroot polymult polyroot pqgwin previousindex princomp printfm printfmt prodc psi putarray putf putvals pvCreate pvGetIndex pvGetParNames pvGetParVector pvLength pvList pvPack pvPacki pvPackm pvPackmi pvPacks pvPacksi pvPacksm pvPacksmi pvPutParVector pvTest pvUnpack QNewton QNewtonmt QNewtonmtControlCreate QNewtonmtOutCreate QNewtonSet QProg QProgmt QProgmtInCreate qqr qqre qqrep qr qre qrep qrsol qrtsol qtyr qtyre qtyrep quantile quantiled qyr qyre qyrep qz rank rankindx readr real reclassify reclassifyCuts recode recserar recsercp recserrc rerun rescale reshape rets rev rfft rffti rfftip rfftn rfftnp rfftp rndBernoulli rndBeta rndBinomial rndCauchy rndChiSquare rndCon rndCreateState rndExp rndGamma rndGeo rndGumbel rndHyperGeo rndi rndKMbeta rndKMgam rndKMi rndKMn rndKMnb rndKMp rndKMu rndKMvm rndLaplace rndLCbeta rndLCgam rndLCi rndLCn rndLCnb rndLCp rndLCu rndLCvm rndLogNorm rndMTu rndMVn rndMVt rndn rndnb rndNegBinomial rndp rndPoisson rndRayleigh rndStateSkip rndu rndvm rndWeibull rndWishart rotater round rows rowsf rref sampleData satostrC saved saveStruct savewind scale scale3d scalerr scalinfnanmiss scalmiss schtoc schur searchsourcepath seekr select selif seqa seqm setdif setdifsa setvars setvwrmode setwind shell shiftr sin singleindex sinh sleep solpd sortc sortcc sortd sorthc sorthcc sortind sortindc sortmc sortr sortrc spBiconjGradSol spChol spConjGradSol spCreate spDenseSubmat spDiagRvMat spEigv spEye spLDL spline spLU spNumNZE spOnes spreadSheetReadM spreadSheetReadSA spreadSheetWrite spScale spSubmat spToDense spTrTDense spTScalar spZeros sqpSolve sqpSolveMT sqpSolveMTControlCreate sqpSolveMTlagrangeCreate sqpSolveMToutCreate sqpSolveSet sqrt statements stdc stdsc stocv stof strcombine strindx strlen strput strrindx strsect strsplit strsplitPad strtodt strtof strtofcplx strtriml strtrimr strtrunc strtruncl strtruncpad strtruncr submat subscat substute subvec sumc sumr surface svd svd1 svd2 svdcusv svds svdusv sysstate tab tan tanh tempname time timedt timestr timeutc title tkf2eps tkf2ps tocart todaydt toeplitz token topolar trapchk trigamma trimr trunc type typecv typef union unionsa uniqindx uniqindxsa unique uniquesa upmat upmat1 upper utctodt utctodtv utrisol vals varCovMS varCovXS varget vargetl varmall varmares varput varputl vartypef vcm vcms vcx vcxs vec vech vecr vector vget view viewxyz vlist vnamecv volume vput vread vtypecv wait waitc walkindex where window writer xlabel xlsGetSheetCount xlsGetSheetSize xlsGetSheetTypes xlsMakeRange xlsReadM xlsReadSA xlsWrite xlsWriteM xlsWriteSA xpnd xtics xy xyz ylabel ytics zeros zeta zlabel ztics cdfEmpirical dot h5create h5open h5read h5readAttribute h5write h5writeAttribute ldl plotAddErrorBar plotAddSurface plotCDFEmpirical plotSetColormap plotSetContourLabels plotSetLegendFont plotSetTextInterpreter plotSetXTicCount plotSetYTicCount plotSetZLevels powerm strjoin sylvester strtrim",literal:"DB_AFTER_LAST_ROW DB_ALL_TABLES DB_BATCH_OPERATIONS DB_BEFORE_FIRST_ROW DB_BLOB DB_EVENT_NOTIFICATIONS DB_FINISH_QUERY DB_HIGH_PRECISION DB_LAST_INSERT_ID DB_LOW_PRECISION_DOUBLE DB_LOW_PRECISION_INT32 DB_LOW_PRECISION_INT64 DB_LOW_PRECISION_NUMBERS DB_MULTIPLE_RESULT_SETS DB_NAMED_PLACEHOLDERS DB_POSITIONAL_PLACEHOLDERS DB_PREPARED_QUERIES DB_QUERY_SIZE DB_SIMPLE_LOCKING DB_SYSTEM_TABLES DB_TABLES DB_TRANSACTIONS DB_UNICODE DB_VIEWS __STDIN __STDOUT __STDERR __FILE_DIR"},n=e.COMMENT("@","@"),o={className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"define definecs|10 undef ifdef ifndef iflight ifdllcall ifmac ifos2win ifunix else endif lineson linesoff srcfile srcline"},contains:[{begin:/\\\n/,relevance:0},{beginKeywords:"include",end:"$",keywords:{"meta-keyword":"include"},contains:[{className:"meta-string",begin:'"',end:'"',illegal:"\\n"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n]},r={begin:/\bstruct\s+/,end:/\s/,keywords:"struct",contains:[{className:"type",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},i=[{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,endsWithParent:!0,relevance:0,contains:[{className:"literal",begin:/\.\.\./},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,r]}],a={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},s=function(t,o,r){const s=e.inherit({className:"function",beginKeywords:t,end:o,excludeEnd:!0,contains:[].concat(i)},r||{});return s.contains.push(a),s.contains.push(e.C_NUMBER_MODE),s.contains.push(e.C_BLOCK_COMMENT_MODE),s.contains.push(n),s},c={className:"built_in",begin:"\\b("+t.built_in.split(" ").join("|")+")\\b"},l={className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE],relevance:0},d={begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,keywords:t,relevance:0,contains:[{beginKeywords:t.keyword},c,{className:"built_in",begin:e.UNDERSCORE_IDENT_RE,relevance:0}]},u={begin:/\(/,end:/\)/,relevance:0,keywords:{built_in:t.built_in,literal:t.literal},contains:[e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,c,d,l,"self"]};return d.contains.push(u),{name:"GAUSS",aliases:["gss"],case_insensitive:!0,keywords:t,illegal:/(\{[%#]|[%#]\}| <- )/,contains:[e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,l,o,{className:"keyword",begin:/\bexternal (matrix|string|array|sparse matrix|struct|proc|keyword|fn)/},s("proc keyword",";"),s("fn","="),{beginKeywords:"for threadfor",end:/;/,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE,n,u]},{variants:[{begin:e.UNDERSCORE_IDENT_RE+"\\."+e.UNDERSCORE_IDENT_RE},{begin:e.UNDERSCORE_IDENT_RE+"\\s*="}],relevance:0},d,r]}}},function(e,t){e.exports=function(e){const t={$pattern:"[A-Z_][A-Z0-9_.]*",keyword:"IF DO WHILE ENDWHILE CALL ENDIF SUB ENDSUB GOTO REPEAT ENDREPEAT EQ LT GT NE GE LE OR XOR"},n=e.inherit(e.C_NUMBER_MODE,{begin:"([-+]?((\\.\\d+)|(\\d+)(\\.\\d*)?))|"+e.C_NUMBER_RE}),o=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\(/,/\)/),n,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"name",begin:"([G])([0-9]+\\.?[0-9]?)"},{className:"name",begin:"([M])([0-9]+\\.?[0-9]?)"},{className:"attr",begin:"(VC|VS|#)",end:"(\\d+)"},{className:"attr",begin:"(VZOFX|VZOFY|VZOFZ)"},{className:"built_in",begin:"(ATAN|ABS|ACOS|ASIN|SIN|COS|EXP|FIX|FUP|ROUND|LN|TAN)(\\[)",contains:[n],end:"\\]"},{className:"symbol",variants:[{begin:"N",end:"\\d+",illegal:"\\W"}]}];return{name:"G-code (ISO 6983)",aliases:["nc"],case_insensitive:!0,keywords:t,contains:[{className:"meta",begin:"%"},{className:"meta",begin:"([O])([0-9]+)"}].concat(o)}}},function(e,t){e.exports=function(e){return{name:"Gherkin",aliases:["feature"],keywords:"Feature Background Ability Business Need Scenario Scenarios Scenario Outline Scenario Template Examples Given And Then But When",contains:[{className:"symbol",begin:"\\*",relevance:0},{className:"meta",begin:"@[^@\\s]+"},{begin:"\\|",end:"\\|\\w*$",contains:[{className:"string",begin:"[^|]+"}]},{className:"variable",begin:"<",end:">"},e.HASH_COMMENT_MODE,{className:"string",begin:'"""',end:'"""'},e.QUOTE_STRING_MODE]}}},function(e,t){e.exports=function(e){return{name:"GLSL",keywords:{keyword:"break continue discard do else for if return while switch case default attribute binding buffer ccw centroid centroid varying coherent column_major const cw depth_any depth_greater depth_less depth_unchanged early_fragment_tests equal_spacing flat fractional_even_spacing fractional_odd_spacing highp in index inout invariant invocations isolines layout line_strip lines lines_adjacency local_size_x local_size_y local_size_z location lowp max_vertices mediump noperspective offset origin_upper_left out packed patch pixel_center_integer point_mode points precise precision quads r11f_g11f_b10f r16 r16_snorm r16f r16i r16ui r32f r32i r32ui r8 r8_snorm r8i r8ui readonly restrict rg16 rg16_snorm rg16f rg16i rg16ui rg32f rg32i rg32ui rg8 rg8_snorm rg8i rg8ui rgb10_a2 rgb10_a2ui rgba16 rgba16_snorm rgba16f rgba16i rgba16ui rgba32f rgba32i rgba32ui rgba8 rgba8_snorm rgba8i rgba8ui row_major sample shared smooth std140 std430 stream triangle_strip triangles triangles_adjacency uniform varying vertices volatile writeonly",type:"atomic_uint bool bvec2 bvec3 bvec4 dmat2 dmat2x2 dmat2x3 dmat2x4 dmat3 dmat3x2 dmat3x3 dmat3x4 dmat4 dmat4x2 dmat4x3 dmat4x4 double dvec2 dvec3 dvec4 float iimage1D iimage1DArray iimage2D iimage2DArray iimage2DMS iimage2DMSArray iimage2DRect iimage3D iimageBuffer iimageCube iimageCubeArray image1D image1DArray image2D image2DArray image2DMS image2DMSArray image2DRect image3D imageBuffer imageCube imageCubeArray int isampler1D isampler1DArray isampler2D isampler2DArray isampler2DMS isampler2DMSArray isampler2DRect isampler3D isamplerBuffer isamplerCube isamplerCubeArray ivec2 ivec3 ivec4 mat2 mat2x2 mat2x3 mat2x4 mat3 mat3x2 mat3x3 mat3x4 mat4 mat4x2 mat4x3 mat4x4 sampler1D sampler1DArray sampler1DArrayShadow sampler1DShadow sampler2D sampler2DArray sampler2DArrayShadow sampler2DMS sampler2DMSArray sampler2DRect sampler2DRectShadow sampler2DShadow sampler3D samplerBuffer samplerCube samplerCubeArray samplerCubeArrayShadow samplerCubeShadow image1D uimage1DArray uimage2D uimage2DArray uimage2DMS uimage2DMSArray uimage2DRect uimage3D uimageBuffer uimageCube uimageCubeArray uint usampler1D usampler1DArray usampler2D usampler2DArray usampler2DMS usampler2DMSArray usampler2DRect usampler3D samplerBuffer usamplerCube usamplerCubeArray uvec2 uvec3 uvec4 vec2 vec3 vec4 void",built_in:"gl_MaxAtomicCounterBindings gl_MaxAtomicCounterBufferSize gl_MaxClipDistances gl_MaxClipPlanes gl_MaxCombinedAtomicCounterBuffers gl_MaxCombinedAtomicCounters gl_MaxCombinedImageUniforms gl_MaxCombinedImageUnitsAndFragmentOutputs gl_MaxCombinedTextureImageUnits gl_MaxComputeAtomicCounterBuffers gl_MaxComputeAtomicCounters gl_MaxComputeImageUniforms gl_MaxComputeTextureImageUnits gl_MaxComputeUniformComponents gl_MaxComputeWorkGroupCount gl_MaxComputeWorkGroupSize gl_MaxDrawBuffers gl_MaxFragmentAtomicCounterBuffers gl_MaxFragmentAtomicCounters gl_MaxFragmentImageUniforms gl_MaxFragmentInputComponents gl_MaxFragmentInputVectors gl_MaxFragmentUniformComponents gl_MaxFragmentUniformVectors gl_MaxGeometryAtomicCounterBuffers gl_MaxGeometryAtomicCounters gl_MaxGeometryImageUniforms gl_MaxGeometryInputComponents gl_MaxGeometryOutputComponents gl_MaxGeometryOutputVertices gl_MaxGeometryTextureImageUnits gl_MaxGeometryTotalOutputComponents gl_MaxGeometryUniformComponents gl_MaxGeometryVaryingComponents gl_MaxImageSamples gl_MaxImageUnits gl_MaxLights gl_MaxPatchVertices gl_MaxProgramTexelOffset gl_MaxTessControlAtomicCounterBuffers gl_MaxTessControlAtomicCounters gl_MaxTessControlImageUniforms gl_MaxTessControlInputComponents gl_MaxTessControlOutputComponents gl_MaxTessControlTextureImageUnits gl_MaxTessControlTotalOutputComponents gl_MaxTessControlUniformComponents gl_MaxTessEvaluationAtomicCounterBuffers gl_MaxTessEvaluationAtomicCounters gl_MaxTessEvaluationImageUniforms gl_MaxTessEvaluationInputComponents gl_MaxTessEvaluationOutputComponents gl_MaxTessEvaluationTextureImageUnits gl_MaxTessEvaluationUniformComponents gl_MaxTessGenLevel gl_MaxTessPatchComponents gl_MaxTextureCoords gl_MaxTextureImageUnits gl_MaxTextureUnits gl_MaxVaryingComponents gl_MaxVaryingFloats gl_MaxVaryingVectors gl_MaxVertexAtomicCounterBuffers gl_MaxVertexAtomicCounters gl_MaxVertexAttribs gl_MaxVertexImageUniforms gl_MaxVertexOutputComponents gl_MaxVertexOutputVectors gl_MaxVertexTextureImageUnits gl_MaxVertexUniformComponents gl_MaxVertexUniformVectors gl_MaxViewports gl_MinProgramTexelOffset gl_BackColor gl_BackLightModelProduct gl_BackLightProduct gl_BackMaterial gl_BackSecondaryColor gl_ClipDistance gl_ClipPlane gl_ClipVertex gl_Color gl_DepthRange gl_EyePlaneQ gl_EyePlaneR gl_EyePlaneS gl_EyePlaneT gl_Fog gl_FogCoord gl_FogFragCoord gl_FragColor gl_FragCoord gl_FragData gl_FragDepth gl_FrontColor gl_FrontFacing gl_FrontLightModelProduct gl_FrontLightProduct gl_FrontMaterial gl_FrontSecondaryColor gl_GlobalInvocationID gl_InstanceID gl_InvocationID gl_Layer gl_LightModel gl_LightSource gl_LocalInvocationID gl_LocalInvocationIndex gl_ModelViewMatrix gl_ModelViewMatrixInverse gl_ModelViewMatrixInverseTranspose gl_ModelViewMatrixTranspose gl_ModelViewProjectionMatrix gl_ModelViewProjectionMatrixInverse gl_ModelViewProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixTranspose gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_Normal gl_NormalMatrix gl_NormalScale gl_NumSamples gl_NumWorkGroups gl_ObjectPlaneQ gl_ObjectPlaneR gl_ObjectPlaneS gl_ObjectPlaneT gl_PatchVerticesIn gl_Point gl_PointCoord gl_PointSize gl_Position gl_PrimitiveID gl_PrimitiveIDIn gl_ProjectionMatrix gl_ProjectionMatrixInverse gl_ProjectionMatrixInverseTranspose gl_ProjectionMatrixTranspose gl_SampleID gl_SampleMask gl_SampleMaskIn gl_SamplePosition gl_SecondaryColor gl_TessCoord gl_TessLevelInner gl_TessLevelOuter gl_TexCoord gl_TextureEnvColor gl_TextureMatrix gl_TextureMatrixInverse gl_TextureMatrixInverseTranspose gl_TextureMatrixTranspose gl_Vertex gl_VertexID gl_ViewportIndex gl_WorkGroupID gl_WorkGroupSize gl_in gl_out EmitStreamVertex EmitVertex EndPrimitive EndStreamPrimitive abs acos acosh all any asin asinh atan atanh atomicAdd atomicAnd atomicCompSwap atomicCounter atomicCounterDecrement atomicCounterIncrement atomicExchange atomicMax atomicMin atomicOr atomicXor barrier bitCount bitfieldExtract bitfieldInsert bitfieldReverse ceil clamp cos cosh cross dFdx dFdy degrees determinant distance dot equal exp exp2 faceforward findLSB findMSB floatBitsToInt floatBitsToUint floor fma fract frexp ftransform fwidth greaterThan greaterThanEqual groupMemoryBarrier imageAtomicAdd imageAtomicAnd imageAtomicCompSwap imageAtomicExchange imageAtomicMax imageAtomicMin imageAtomicOr imageAtomicXor imageLoad imageSize imageStore imulExtended intBitsToFloat interpolateAtCentroid interpolateAtOffset interpolateAtSample inverse inversesqrt isinf isnan ldexp length lessThan lessThanEqual log log2 matrixCompMult max memoryBarrier memoryBarrierAtomicCounter memoryBarrierBuffer memoryBarrierImage memoryBarrierShared min mix mod modf noise1 noise2 noise3 noise4 normalize not notEqual outerProduct packDouble2x32 packHalf2x16 packSnorm2x16 packSnorm4x8 packUnorm2x16 packUnorm4x8 pow radians reflect refract round roundEven shadow1D shadow1DLod shadow1DProj shadow1DProjLod shadow2D shadow2DLod shadow2DProj shadow2DProjLod sign sin sinh smoothstep sqrt step tan tanh texelFetch texelFetchOffset texture texture1D texture1DLod texture1DProj texture1DProjLod texture2D texture2DLod texture2DProj texture2DProjLod texture3D texture3DLod texture3DProj texture3DProjLod textureCube textureCubeLod textureGather textureGatherOffset textureGatherOffsets textureGrad textureGradOffset textureLod textureLodOffset textureOffset textureProj textureProjGrad textureProjGradOffset textureProjLod textureProjLodOffset textureProjOffset textureQueryLevels textureQueryLod textureSize transpose trunc uaddCarry uintBitsToFloat umulExtended unpackDouble2x32 unpackHalf2x16 unpackSnorm2x16 unpackSnorm4x8 unpackUnorm2x16 unpackUnorm4x8 usubBorrow",literal:"true false"},illegal:'"',contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"}]}}},function(e,t){e.exports=function(e){return{name:"GML",aliases:["gml","GML"],case_insensitive:!1,keywords:{keyword:"begin end if then else while do for break continue with until repeat exit and or xor not return mod div switch case default var globalvar enum #macro #region #endregion",built_in:"is_real is_string is_array is_undefined is_int32 is_int64 is_ptr is_vec3 is_vec4 is_matrix is_bool typeof variable_global_exists variable_global_get variable_global_set variable_instance_exists variable_instance_get variable_instance_set variable_instance_get_names array_length_1d array_length_2d array_height_2d array_equals array_create array_copy random random_range irandom irandom_range random_set_seed random_get_seed randomize randomise choose abs round floor ceil sign frac sqrt sqr exp ln log2 log10 sin cos tan arcsin arccos arctan arctan2 dsin dcos dtan darcsin darccos darctan darctan2 degtorad radtodeg power logn min max mean median clamp lerp dot_product dot_product_3d dot_product_normalised dot_product_3d_normalised dot_product_normalized dot_product_3d_normalized math_set_epsilon math_get_epsilon angle_difference point_distance_3d point_distance point_direction lengthdir_x lengthdir_y real string int64 ptr string_format chr ansi_char ord string_length string_byte_length string_pos string_copy string_char_at string_ord_at string_byte_at string_set_byte_at string_delete string_insert string_lower string_upper string_repeat string_letters string_digits string_lettersdigits string_replace string_replace_all string_count string_hash_to_newline clipboard_has_text clipboard_set_text clipboard_get_text date_current_datetime date_create_datetime date_valid_datetime date_inc_year date_inc_month date_inc_week date_inc_day date_inc_hour date_inc_minute date_inc_second date_get_year date_get_month date_get_week date_get_day date_get_hour date_get_minute date_get_second date_get_weekday date_get_day_of_year date_get_hour_of_year date_get_minute_of_year date_get_second_of_year date_year_span date_month_span date_week_span date_day_span date_hour_span date_minute_span date_second_span date_compare_datetime date_compare_date date_compare_time date_date_of date_time_of date_datetime_string date_date_string date_time_string date_days_in_month date_days_in_year date_leap_year date_is_today date_set_timezone date_get_timezone game_set_speed game_get_speed motion_set motion_add place_free place_empty place_meeting place_snapped move_random move_snap move_towards_point move_contact_solid move_contact_all move_outside_solid move_outside_all move_bounce_solid move_bounce_all move_wrap distance_to_point distance_to_object position_empty position_meeting path_start path_end mp_linear_step mp_potential_step mp_linear_step_object mp_potential_step_object mp_potential_settings mp_linear_path mp_potential_path mp_linear_path_object mp_potential_path_object mp_grid_create mp_grid_destroy mp_grid_clear_all mp_grid_clear_cell mp_grid_clear_rectangle mp_grid_add_cell mp_grid_get_cell mp_grid_add_rectangle mp_grid_add_instances mp_grid_path mp_grid_draw mp_grid_to_ds_grid collision_point collision_rectangle collision_circle collision_ellipse collision_line collision_point_list collision_rectangle_list collision_circle_list collision_ellipse_list collision_line_list instance_position_list instance_place_list point_in_rectangle point_in_triangle point_in_circle rectangle_in_rectangle rectangle_in_triangle rectangle_in_circle instance_find instance_exists instance_number instance_position instance_nearest instance_furthest instance_place instance_create_depth instance_create_layer instance_copy instance_change instance_destroy position_destroy position_change instance_id_get instance_deactivate_all instance_deactivate_object instance_deactivate_region instance_activate_all instance_activate_object instance_activate_region room_goto room_goto_previous room_goto_next room_previous room_next room_restart game_end game_restart game_load game_save game_save_buffer game_load_buffer event_perform event_user event_perform_object event_inherited show_debug_message show_debug_overlay debug_event debug_get_callstack alarm_get alarm_set font_texture_page_size keyboard_set_map keyboard_get_map keyboard_unset_map keyboard_check keyboard_check_pressed keyboard_check_released keyboard_check_direct keyboard_get_numlock keyboard_set_numlock keyboard_key_press keyboard_key_release keyboard_clear io_clear mouse_check_button mouse_check_button_pressed mouse_check_button_released mouse_wheel_up mouse_wheel_down mouse_clear draw_self draw_sprite draw_sprite_pos draw_sprite_ext draw_sprite_stretched draw_sprite_stretched_ext draw_sprite_tiled draw_sprite_tiled_ext draw_sprite_part draw_sprite_part_ext draw_sprite_general draw_clear draw_clear_alpha draw_point draw_line draw_line_width draw_rectangle draw_roundrect draw_roundrect_ext draw_triangle draw_circle draw_ellipse draw_set_circle_precision draw_arrow draw_button draw_path draw_healthbar draw_getpixel draw_getpixel_ext draw_set_colour draw_set_color draw_set_alpha draw_get_colour draw_get_color draw_get_alpha merge_colour make_colour_rgb make_colour_hsv colour_get_red colour_get_green colour_get_blue colour_get_hue colour_get_saturation colour_get_value merge_color make_color_rgb make_color_hsv color_get_red color_get_green color_get_blue color_get_hue color_get_saturation color_get_value merge_color screen_save screen_save_part draw_set_font draw_set_halign draw_set_valign draw_text draw_text_ext string_width string_height string_width_ext string_height_ext draw_text_transformed draw_text_ext_transformed draw_text_colour draw_text_ext_colour draw_text_transformed_colour draw_text_ext_transformed_colour draw_text_color draw_text_ext_color draw_text_transformed_color draw_text_ext_transformed_color draw_point_colour draw_line_colour draw_line_width_colour draw_rectangle_colour draw_roundrect_colour draw_roundrect_colour_ext draw_triangle_colour draw_circle_colour draw_ellipse_colour draw_point_color draw_line_color draw_line_width_color draw_rectangle_color draw_roundrect_color draw_roundrect_color_ext draw_triangle_color draw_circle_color draw_ellipse_color draw_primitive_begin draw_vertex draw_vertex_colour draw_vertex_color draw_primitive_end sprite_get_uvs font_get_uvs sprite_get_texture font_get_texture texture_get_width texture_get_height texture_get_uvs draw_primitive_begin_texture draw_vertex_texture draw_vertex_texture_colour draw_vertex_texture_color texture_global_scale surface_create surface_create_ext surface_resize surface_free surface_exists surface_get_width surface_get_height surface_get_texture surface_set_target surface_set_target_ext surface_reset_target surface_depth_disable surface_get_depth_disable draw_surface draw_surface_stretched draw_surface_tiled draw_surface_part draw_surface_ext draw_surface_stretched_ext draw_surface_tiled_ext draw_surface_part_ext draw_surface_general surface_getpixel surface_getpixel_ext surface_save surface_save_part surface_copy surface_copy_part application_surface_draw_enable application_get_position application_surface_enable application_surface_is_enabled display_get_width display_get_height display_get_orientation display_get_gui_width display_get_gui_height display_reset display_mouse_get_x display_mouse_get_y display_mouse_set display_set_ui_visibility window_set_fullscreen window_get_fullscreen window_set_caption window_set_min_width window_set_max_width window_set_min_height window_set_max_height window_get_visible_rects window_get_caption window_set_cursor window_get_cursor window_set_colour window_get_colour window_set_color window_get_color window_set_position window_set_size window_set_rectangle window_center window_get_x window_get_y window_get_width window_get_height window_mouse_get_x window_mouse_get_y window_mouse_set window_view_mouse_get_x window_view_mouse_get_y window_views_mouse_get_x window_views_mouse_get_y audio_listener_position audio_listener_velocity audio_listener_orientation audio_emitter_position audio_emitter_create audio_emitter_free audio_emitter_exists audio_emitter_pitch audio_emitter_velocity audio_emitter_falloff audio_emitter_gain audio_play_sound audio_play_sound_on audio_play_sound_at audio_stop_sound audio_resume_music audio_music_is_playing audio_resume_sound audio_pause_sound audio_pause_music audio_channel_num audio_sound_length audio_get_type audio_falloff_set_model audio_play_music audio_stop_music audio_master_gain audio_music_gain audio_sound_gain audio_sound_pitch audio_stop_all audio_resume_all audio_pause_all audio_is_playing audio_is_paused audio_exists audio_sound_set_track_position audio_sound_get_track_position audio_emitter_get_gain audio_emitter_get_pitch audio_emitter_get_x audio_emitter_get_y audio_emitter_get_z audio_emitter_get_vx audio_emitter_get_vy audio_emitter_get_vz audio_listener_set_position audio_listener_set_velocity audio_listener_set_orientation audio_listener_get_data audio_set_master_gain audio_get_master_gain audio_sound_get_gain audio_sound_get_pitch audio_get_name audio_sound_set_track_position audio_sound_get_track_position audio_create_stream audio_destroy_stream audio_create_sync_group audio_destroy_sync_group audio_play_in_sync_group audio_start_sync_group audio_stop_sync_group audio_pause_sync_group audio_resume_sync_group audio_sync_group_get_track_pos audio_sync_group_debug audio_sync_group_is_playing audio_debug audio_group_load audio_group_unload audio_group_is_loaded audio_group_load_progress audio_group_name audio_group_stop_all audio_group_set_gain audio_create_buffer_sound audio_free_buffer_sound audio_create_play_queue audio_free_play_queue audio_queue_sound audio_get_recorder_count audio_get_recorder_info audio_start_recording audio_stop_recording audio_sound_get_listener_mask audio_emitter_get_listener_mask audio_get_listener_mask audio_sound_set_listener_mask audio_emitter_set_listener_mask audio_set_listener_mask audio_get_listener_count audio_get_listener_info audio_system show_message show_message_async clickable_add clickable_add_ext clickable_change clickable_change_ext clickable_delete clickable_exists clickable_set_style show_question show_question_async get_integer get_string get_integer_async get_string_async get_login_async get_open_filename get_save_filename get_open_filename_ext get_save_filename_ext show_error highscore_clear highscore_add highscore_value highscore_name draw_highscore sprite_exists sprite_get_name sprite_get_number sprite_get_width sprite_get_height sprite_get_xoffset sprite_get_yoffset sprite_get_bbox_left sprite_get_bbox_right sprite_get_bbox_top sprite_get_bbox_bottom sprite_save sprite_save_strip sprite_set_cache_size sprite_set_cache_size_ext sprite_get_tpe sprite_prefetch sprite_prefetch_multi sprite_flush sprite_flush_multi sprite_set_speed sprite_get_speed_type sprite_get_speed font_exists font_get_name font_get_fontname font_get_bold font_get_italic font_get_first font_get_last font_get_size font_set_cache_size path_exists path_get_name path_get_length path_get_time path_get_kind path_get_closed path_get_precision path_get_number path_get_point_x path_get_point_y path_get_point_speed path_get_x path_get_y path_get_speed script_exists script_get_name timeline_add timeline_delete timeline_clear timeline_exists timeline_get_name timeline_moment_clear timeline_moment_add_script timeline_size timeline_max_moment object_exists object_get_name object_get_sprite object_get_solid object_get_visible object_get_persistent object_get_mask object_get_parent object_get_physics object_is_ancestor room_exists room_get_name sprite_set_offset sprite_duplicate sprite_assign sprite_merge sprite_add sprite_replace sprite_create_from_surface sprite_add_from_surface sprite_delete sprite_set_alpha_from_sprite sprite_collision_mask font_add_enable_aa font_add_get_enable_aa font_add font_add_sprite font_add_sprite_ext font_replace font_replace_sprite font_replace_sprite_ext font_delete path_set_kind path_set_closed path_set_precision path_add path_assign path_duplicate path_append path_delete path_add_point path_insert_point path_change_point path_delete_point path_clear_points path_reverse path_mirror path_flip path_rotate path_rescale path_shift script_execute object_set_sprite object_set_solid object_set_visible object_set_persistent object_set_mask room_set_width room_set_height room_set_persistent room_set_background_colour room_set_background_color room_set_view room_set_viewport room_get_viewport room_set_view_enabled room_add room_duplicate room_assign room_instance_add room_instance_clear room_get_camera room_set_camera asset_get_index asset_get_type file_text_open_from_string file_text_open_read file_text_open_write file_text_open_append file_text_close file_text_write_string file_text_write_real file_text_writeln file_text_read_string file_text_read_real file_text_readln file_text_eof file_text_eoln file_exists file_delete file_rename file_copy directory_exists directory_create directory_destroy file_find_first file_find_next file_find_close file_attributes filename_name filename_path filename_dir filename_drive filename_ext filename_change_ext file_bin_open file_bin_rewrite file_bin_close file_bin_position file_bin_size file_bin_seek file_bin_write_byte file_bin_read_byte parameter_count parameter_string environment_get_variable ini_open_from_string ini_open ini_close ini_read_string ini_read_real ini_write_string ini_write_real ini_key_exists ini_section_exists ini_key_delete ini_section_delete ds_set_precision ds_exists ds_stack_create ds_stack_destroy ds_stack_clear ds_stack_copy ds_stack_size ds_stack_empty ds_stack_push ds_stack_pop ds_stack_top ds_stack_write ds_stack_read ds_queue_create ds_queue_destroy ds_queue_clear ds_queue_copy ds_queue_size ds_queue_empty ds_queue_enqueue ds_queue_dequeue ds_queue_head ds_queue_tail ds_queue_write ds_queue_read ds_list_create ds_list_destroy ds_list_clear ds_list_copy ds_list_size ds_list_empty ds_list_add ds_list_insert ds_list_replace ds_list_delete ds_list_find_index ds_list_find_value ds_list_mark_as_list ds_list_mark_as_map ds_list_sort ds_list_shuffle ds_list_write ds_list_read ds_list_set ds_map_create ds_map_destroy ds_map_clear ds_map_copy ds_map_size ds_map_empty ds_map_add ds_map_add_list ds_map_add_map ds_map_replace ds_map_replace_map ds_map_replace_list ds_map_delete ds_map_exists ds_map_find_value ds_map_find_previous ds_map_find_next ds_map_find_first ds_map_find_last ds_map_write ds_map_read ds_map_secure_save ds_map_secure_load ds_map_secure_load_buffer ds_map_secure_save_buffer ds_map_set ds_priority_create ds_priority_destroy ds_priority_clear ds_priority_copy ds_priority_size ds_priority_empty ds_priority_add ds_priority_change_priority ds_priority_find_priority ds_priority_delete_value ds_priority_delete_min ds_priority_find_min ds_priority_delete_max ds_priority_find_max ds_priority_write ds_priority_read ds_grid_create ds_grid_destroy ds_grid_copy ds_grid_resize ds_grid_width ds_grid_height ds_grid_clear ds_grid_set ds_grid_add ds_grid_multiply ds_grid_set_region ds_grid_add_region ds_grid_multiply_region ds_grid_set_disk ds_grid_add_disk ds_grid_multiply_disk ds_grid_set_grid_region ds_grid_add_grid_region ds_grid_multiply_grid_region ds_grid_get ds_grid_get_sum ds_grid_get_max ds_grid_get_min ds_grid_get_mean ds_grid_get_disk_sum ds_grid_get_disk_min ds_grid_get_disk_max ds_grid_get_disk_mean ds_grid_value_exists ds_grid_value_x ds_grid_value_y ds_grid_value_disk_exists ds_grid_value_disk_x ds_grid_value_disk_y ds_grid_shuffle ds_grid_write ds_grid_read ds_grid_sort ds_grid_set ds_grid_get effect_create_below effect_create_above effect_clear part_type_create part_type_destroy part_type_exists part_type_clear part_type_shape part_type_sprite part_type_size part_type_scale part_type_orientation part_type_life part_type_step part_type_death part_type_speed part_type_direction part_type_gravity part_type_colour1 part_type_colour2 part_type_colour3 part_type_colour_mix part_type_colour_rgb part_type_colour_hsv part_type_color1 part_type_color2 part_type_color3 part_type_color_mix part_type_color_rgb part_type_color_hsv part_type_alpha1 part_type_alpha2 part_type_alpha3 part_type_blend part_system_create part_system_create_layer part_system_destroy part_system_exists part_system_clear part_system_draw_order part_system_depth part_system_position part_system_automatic_update part_system_automatic_draw part_system_update part_system_drawit part_system_get_layer part_system_layer part_particles_create part_particles_create_colour part_particles_create_color part_particles_clear part_particles_count part_emitter_create part_emitter_destroy part_emitter_destroy_all part_emitter_exists part_emitter_clear part_emitter_region part_emitter_burst part_emitter_stream external_call external_define external_free window_handle window_device matrix_get matrix_set matrix_build_identity matrix_build matrix_build_lookat matrix_build_projection_ortho matrix_build_projection_perspective matrix_build_projection_perspective_fov matrix_multiply matrix_transform_vertex matrix_stack_push matrix_stack_pop matrix_stack_multiply matrix_stack_set matrix_stack_clear matrix_stack_top matrix_stack_is_empty browser_input_capture os_get_config os_get_info os_get_language os_get_region os_lock_orientation display_get_dpi_x display_get_dpi_y display_set_gui_size display_set_gui_maximise display_set_gui_maximize device_mouse_dbclick_enable display_set_timing_method display_get_timing_method display_set_sleep_margin display_get_sleep_margin virtual_key_add virtual_key_hide virtual_key_delete virtual_key_show draw_enable_drawevent draw_enable_swf_aa draw_set_swf_aa_level draw_get_swf_aa_level draw_texture_flush draw_flush gpu_set_blendenable gpu_set_ztestenable gpu_set_zfunc gpu_set_zwriteenable gpu_set_lightingenable gpu_set_fog gpu_set_cullmode gpu_set_blendmode gpu_set_blendmode_ext gpu_set_blendmode_ext_sepalpha gpu_set_colorwriteenable gpu_set_colourwriteenable gpu_set_alphatestenable gpu_set_alphatestref gpu_set_alphatestfunc gpu_set_texfilter gpu_set_texfilter_ext gpu_set_texrepeat gpu_set_texrepeat_ext gpu_set_tex_filter gpu_set_tex_filter_ext gpu_set_tex_repeat gpu_set_tex_repeat_ext gpu_set_tex_mip_filter gpu_set_tex_mip_filter_ext gpu_set_tex_mip_bias gpu_set_tex_mip_bias_ext gpu_set_tex_min_mip gpu_set_tex_min_mip_ext gpu_set_tex_max_mip gpu_set_tex_max_mip_ext gpu_set_tex_max_aniso gpu_set_tex_max_aniso_ext gpu_set_tex_mip_enable gpu_set_tex_mip_enable_ext gpu_get_blendenable gpu_get_ztestenable gpu_get_zfunc gpu_get_zwriteenable gpu_get_lightingenable gpu_get_fog gpu_get_cullmode gpu_get_blendmode gpu_get_blendmode_ext gpu_get_blendmode_ext_sepalpha gpu_get_blendmode_src gpu_get_blendmode_dest gpu_get_blendmode_srcalpha gpu_get_blendmode_destalpha gpu_get_colorwriteenable gpu_get_colourwriteenable gpu_get_alphatestenable gpu_get_alphatestref gpu_get_alphatestfunc gpu_get_texfilter gpu_get_texfilter_ext gpu_get_texrepeat gpu_get_texrepeat_ext gpu_get_tex_filter gpu_get_tex_filter_ext gpu_get_tex_repeat gpu_get_tex_repeat_ext gpu_get_tex_mip_filter gpu_get_tex_mip_filter_ext gpu_get_tex_mip_bias gpu_get_tex_mip_bias_ext gpu_get_tex_min_mip gpu_get_tex_min_mip_ext gpu_get_tex_max_mip gpu_get_tex_max_mip_ext gpu_get_tex_max_aniso gpu_get_tex_max_aniso_ext gpu_get_tex_mip_enable gpu_get_tex_mip_enable_ext gpu_push_state gpu_pop_state gpu_get_state gpu_set_state draw_light_define_ambient draw_light_define_direction draw_light_define_point draw_light_enable draw_set_lighting draw_light_get_ambient draw_light_get draw_get_lighting shop_leave_rating url_get_domain url_open url_open_ext url_open_full get_timer achievement_login achievement_logout achievement_post achievement_increment achievement_post_score achievement_available achievement_show_achievements achievement_show_leaderboards achievement_load_friends achievement_load_leaderboard achievement_send_challenge achievement_load_progress achievement_reset achievement_login_status achievement_get_pic achievement_show_challenge_notifications achievement_get_challenges achievement_event achievement_show achievement_get_info cloud_file_save cloud_string_save cloud_synchronise ads_enable ads_disable ads_setup ads_engagement_launch ads_engagement_available ads_engagement_active ads_event ads_event_preload ads_set_reward_callback ads_get_display_height ads_get_display_width ads_move ads_interstitial_available ads_interstitial_display device_get_tilt_x device_get_tilt_y device_get_tilt_z device_is_keypad_open device_mouse_check_button device_mouse_check_button_pressed device_mouse_check_button_released device_mouse_x device_mouse_y device_mouse_raw_x device_mouse_raw_y device_mouse_x_to_gui device_mouse_y_to_gui iap_activate iap_status iap_enumerate_products iap_restore_all iap_acquire iap_consume iap_product_details iap_purchase_details facebook_init facebook_login facebook_status facebook_graph_request facebook_dialog facebook_logout facebook_launch_offerwall facebook_post_message facebook_send_invite facebook_user_id facebook_accesstoken facebook_check_permission facebook_request_read_permissions facebook_request_publish_permissions gamepad_is_supported gamepad_get_device_count gamepad_is_connected gamepad_get_description gamepad_get_button_threshold gamepad_set_button_threshold gamepad_get_axis_deadzone gamepad_set_axis_deadzone gamepad_button_count gamepad_button_check gamepad_button_check_pressed gamepad_button_check_released gamepad_button_value gamepad_axis_count gamepad_axis_value gamepad_set_vibration gamepad_set_colour gamepad_set_color os_is_paused window_has_focus code_is_compiled http_get http_get_file http_post_string http_request json_encode json_decode zip_unzip load_csv base64_encode base64_decode md5_string_unicode md5_string_utf8 md5_file os_is_network_connected sha1_string_unicode sha1_string_utf8 sha1_file os_powersave_enable analytics_event analytics_event_ext win8_livetile_tile_notification win8_livetile_tile_clear win8_livetile_badge_notification win8_livetile_badge_clear win8_livetile_queue_enable win8_secondarytile_pin win8_secondarytile_badge_notification win8_secondarytile_delete win8_livetile_notification_begin win8_livetile_notification_secondary_begin win8_livetile_notification_expiry win8_livetile_notification_tag win8_livetile_notification_text_add win8_livetile_notification_image_add win8_livetile_notification_end win8_appbar_enable win8_appbar_add_element win8_appbar_remove_element win8_settingscharm_add_entry win8_settingscharm_add_html_entry win8_settingscharm_add_xaml_entry win8_settingscharm_set_xaml_property win8_settingscharm_get_xaml_property win8_settingscharm_remove_entry win8_share_image win8_share_screenshot win8_share_file win8_share_url win8_share_text win8_search_enable win8_search_disable win8_search_add_suggestions win8_device_touchscreen_available win8_license_initialize_sandbox win8_license_trial_version winphone_license_trial_version winphone_tile_title winphone_tile_count winphone_tile_back_title winphone_tile_back_content winphone_tile_back_content_wide winphone_tile_front_image winphone_tile_front_image_small winphone_tile_front_image_wide winphone_tile_back_image winphone_tile_back_image_wide winphone_tile_background_colour winphone_tile_background_color winphone_tile_icon_image winphone_tile_small_icon_image winphone_tile_wide_content winphone_tile_cycle_images winphone_tile_small_background_image physics_world_create physics_world_gravity physics_world_update_speed physics_world_update_iterations physics_world_draw_debug physics_pause_enable physics_fixture_create physics_fixture_set_kinematic physics_fixture_set_density physics_fixture_set_awake physics_fixture_set_restitution physics_fixture_set_friction physics_fixture_set_collision_group physics_fixture_set_sensor physics_fixture_set_linear_damping physics_fixture_set_angular_damping physics_fixture_set_circle_shape physics_fixture_set_box_shape physics_fixture_set_edge_shape physics_fixture_set_polygon_shape physics_fixture_set_chain_shape physics_fixture_add_point physics_fixture_bind physics_fixture_bind_ext physics_fixture_delete physics_apply_force physics_apply_impulse physics_apply_angular_impulse physics_apply_local_force physics_apply_local_impulse physics_apply_torque physics_mass_properties physics_draw_debug physics_test_overlap physics_remove_fixture physics_set_friction physics_set_density physics_set_restitution physics_get_friction physics_get_density physics_get_restitution physics_joint_distance_create physics_joint_rope_create physics_joint_revolute_create physics_joint_prismatic_create physics_joint_pulley_create physics_joint_wheel_create physics_joint_weld_create physics_joint_friction_create physics_joint_gear_create physics_joint_enable_motor physics_joint_get_value physics_joint_set_value physics_joint_delete physics_particle_create physics_particle_delete physics_particle_delete_region_circle physics_particle_delete_region_box physics_particle_delete_region_poly physics_particle_set_flags physics_particle_set_category_flags physics_particle_draw physics_particle_draw_ext physics_particle_count physics_particle_get_data physics_particle_get_data_particle physics_particle_group_begin physics_particle_group_circle physics_particle_group_box physics_particle_group_polygon physics_particle_group_add_point physics_particle_group_end physics_particle_group_join physics_particle_group_delete physics_particle_group_count physics_particle_group_get_data physics_particle_group_get_mass physics_particle_group_get_inertia physics_particle_group_get_centre_x physics_particle_group_get_centre_y physics_particle_group_get_vel_x physics_particle_group_get_vel_y physics_particle_group_get_ang_vel physics_particle_group_get_x physics_particle_group_get_y physics_particle_group_get_angle physics_particle_set_group_flags physics_particle_get_group_flags physics_particle_get_max_count physics_particle_get_radius physics_particle_get_density physics_particle_get_damping physics_particle_get_gravity_scale physics_particle_set_max_count physics_particle_set_radius physics_particle_set_density physics_particle_set_damping physics_particle_set_gravity_scale network_create_socket network_create_socket_ext network_create_server network_create_server_raw network_connect network_connect_raw network_send_packet network_send_raw network_send_broadcast network_send_udp network_send_udp_raw network_set_timeout network_set_config network_resolve network_destroy buffer_create buffer_write buffer_read buffer_seek buffer_get_surface buffer_set_surface buffer_delete buffer_exists buffer_get_type buffer_get_alignment buffer_poke buffer_peek buffer_save buffer_save_ext buffer_load buffer_load_ext buffer_load_partial buffer_copy buffer_fill buffer_get_size buffer_tell buffer_resize buffer_md5 buffer_sha1 buffer_base64_encode buffer_base64_decode buffer_base64_decode_ext buffer_sizeof buffer_get_address buffer_create_from_vertex_buffer buffer_create_from_vertex_buffer_ext buffer_copy_from_vertex_buffer buffer_async_group_begin buffer_async_group_option buffer_async_group_end buffer_load_async buffer_save_async gml_release_mode gml_pragma steam_activate_overlay steam_is_overlay_enabled steam_is_overlay_activated steam_get_persona_name steam_initialised steam_is_cloud_enabled_for_app steam_is_cloud_enabled_for_account steam_file_persisted steam_get_quota_total steam_get_quota_free steam_file_write steam_file_write_file steam_file_read steam_file_delete steam_file_exists steam_file_size steam_file_share steam_is_screenshot_requested steam_send_screenshot steam_is_user_logged_on steam_get_user_steam_id steam_user_owns_dlc steam_user_installed_dlc steam_set_achievement steam_get_achievement steam_clear_achievement steam_set_stat_int steam_set_stat_float steam_set_stat_avg_rate steam_get_stat_int steam_get_stat_float steam_get_stat_avg_rate steam_reset_all_stats steam_reset_all_stats_achievements steam_stats_ready steam_create_leaderboard steam_upload_score steam_upload_score_ext steam_download_scores_around_user steam_download_scores steam_download_friends_scores steam_upload_score_buffer steam_upload_score_buffer_ext steam_current_game_language steam_available_languages steam_activate_overlay_browser steam_activate_overlay_user steam_activate_overlay_store steam_get_user_persona_name steam_get_app_id steam_get_user_account_id steam_ugc_download steam_ugc_create_item steam_ugc_start_item_update steam_ugc_set_item_title steam_ugc_set_item_description steam_ugc_set_item_visibility steam_ugc_set_item_tags steam_ugc_set_item_content steam_ugc_set_item_preview steam_ugc_submit_item_update steam_ugc_get_item_update_progress steam_ugc_subscribe_item steam_ugc_unsubscribe_item steam_ugc_num_subscribed_items steam_ugc_get_subscribed_items steam_ugc_get_item_install_info steam_ugc_get_item_update_info steam_ugc_request_item_details steam_ugc_create_query_user steam_ugc_create_query_user_ex steam_ugc_create_query_all steam_ugc_create_query_all_ex steam_ugc_query_set_cloud_filename_filter steam_ugc_query_set_match_any_tag steam_ugc_query_set_search_text steam_ugc_query_set_ranked_by_trend_days steam_ugc_query_add_required_tag steam_ugc_query_add_excluded_tag steam_ugc_query_set_return_long_description steam_ugc_query_set_return_total_only steam_ugc_query_set_allow_cached_response steam_ugc_send_query shader_set shader_get_name shader_reset shader_current shader_is_compiled shader_get_sampler_index shader_get_uniform shader_set_uniform_i shader_set_uniform_i_array shader_set_uniform_f shader_set_uniform_f_array shader_set_uniform_matrix shader_set_uniform_matrix_array shader_enable_corner_id texture_set_stage texture_get_texel_width texture_get_texel_height shaders_are_supported vertex_format_begin vertex_format_end vertex_format_delete vertex_format_add_position vertex_format_add_position_3d vertex_format_add_colour vertex_format_add_color vertex_format_add_normal vertex_format_add_texcoord vertex_format_add_textcoord vertex_format_add_custom vertex_create_buffer vertex_create_buffer_ext vertex_delete_buffer vertex_begin vertex_end vertex_position vertex_position_3d vertex_colour vertex_color vertex_argb vertex_texcoord vertex_normal vertex_float1 vertex_float2 vertex_float3 vertex_float4 vertex_ubyte4 vertex_submit vertex_freeze vertex_get_number vertex_get_buffer_size vertex_create_buffer_from_buffer vertex_create_buffer_from_buffer_ext push_local_notification push_get_first_local_notification push_get_next_local_notification push_cancel_local_notification skeleton_animation_set skeleton_animation_get skeleton_animation_mix skeleton_animation_set_ext skeleton_animation_get_ext skeleton_animation_get_duration skeleton_animation_get_frames skeleton_animation_clear skeleton_skin_set skeleton_skin_get skeleton_attachment_set skeleton_attachment_get skeleton_attachment_create skeleton_collision_draw_set skeleton_bone_data_get skeleton_bone_data_set skeleton_bone_state_get skeleton_bone_state_set skeleton_get_minmax skeleton_get_num_bounds skeleton_get_bounds skeleton_animation_get_frame skeleton_animation_set_frame draw_skeleton draw_skeleton_time draw_skeleton_instance draw_skeleton_collision skeleton_animation_list skeleton_skin_list skeleton_slot_data layer_get_id layer_get_id_at_depth layer_get_depth layer_create layer_destroy layer_destroy_instances layer_add_instance layer_has_instance layer_set_visible layer_get_visible layer_exists layer_x layer_y layer_get_x layer_get_y layer_hspeed layer_vspeed layer_get_hspeed layer_get_vspeed layer_script_begin layer_script_end layer_shader layer_get_script_begin layer_get_script_end layer_get_shader layer_set_target_room layer_get_target_room layer_reset_target_room layer_get_all layer_get_all_elements layer_get_name layer_depth layer_get_element_layer layer_get_element_type layer_element_move layer_force_draw_depth layer_is_draw_depth_forced layer_get_forced_depth layer_background_get_id layer_background_exists layer_background_create layer_background_destroy layer_background_visible layer_background_change layer_background_sprite layer_background_htiled layer_background_vtiled layer_background_stretch layer_background_yscale layer_background_xscale layer_background_blend layer_background_alpha layer_background_index layer_background_speed layer_background_get_visible layer_background_get_sprite layer_background_get_htiled layer_background_get_vtiled layer_background_get_stretch layer_background_get_yscale layer_background_get_xscale layer_background_get_blend layer_background_get_alpha layer_background_get_index layer_background_get_speed layer_sprite_get_id layer_sprite_exists layer_sprite_create layer_sprite_destroy layer_sprite_change layer_sprite_index layer_sprite_speed layer_sprite_xscale layer_sprite_yscale layer_sprite_angle layer_sprite_blend layer_sprite_alpha layer_sprite_x layer_sprite_y layer_sprite_get_sprite layer_sprite_get_index layer_sprite_get_speed layer_sprite_get_xscale layer_sprite_get_yscale layer_sprite_get_angle layer_sprite_get_blend layer_sprite_get_alpha layer_sprite_get_x layer_sprite_get_y layer_tilemap_get_id layer_tilemap_exists layer_tilemap_create layer_tilemap_destroy tilemap_tileset tilemap_x tilemap_y tilemap_set tilemap_set_at_pixel tilemap_get_tileset tilemap_get_tile_width tilemap_get_tile_height tilemap_get_width tilemap_get_height tilemap_get_x tilemap_get_y tilemap_get tilemap_get_at_pixel tilemap_get_cell_x_at_pixel tilemap_get_cell_y_at_pixel tilemap_clear draw_tilemap draw_tile tilemap_set_global_mask tilemap_get_global_mask tilemap_set_mask tilemap_get_mask tilemap_get_frame tile_set_empty tile_set_index tile_set_flip tile_set_mirror tile_set_rotate tile_get_empty tile_get_index tile_get_flip tile_get_mirror tile_get_rotate layer_tile_exists layer_tile_create layer_tile_destroy layer_tile_change layer_tile_xscale layer_tile_yscale layer_tile_blend layer_tile_alpha layer_tile_x layer_tile_y layer_tile_region layer_tile_visible layer_tile_get_sprite layer_tile_get_xscale layer_tile_get_yscale layer_tile_get_blend layer_tile_get_alpha layer_tile_get_x layer_tile_get_y layer_tile_get_region layer_tile_get_visible layer_instance_get_instance instance_activate_layer instance_deactivate_layer camera_create camera_create_view camera_destroy camera_apply camera_get_active camera_get_default camera_set_default camera_set_view_mat camera_set_proj_mat camera_set_update_script camera_set_begin_script camera_set_end_script camera_set_view_pos camera_set_view_size camera_set_view_speed camera_set_view_border camera_set_view_angle camera_set_view_target camera_get_view_mat camera_get_proj_mat camera_get_update_script camera_get_begin_script camera_get_end_script camera_get_view_x camera_get_view_y camera_get_view_width camera_get_view_height camera_get_view_speed_x camera_get_view_speed_y camera_get_view_border_x camera_get_view_border_y camera_get_view_angle camera_get_view_target view_get_camera view_get_visible view_get_xport view_get_yport view_get_wport view_get_hport view_get_surface_id view_set_camera view_set_visible view_set_xport view_set_yport view_set_wport view_set_hport view_set_surface_id gesture_drag_time gesture_drag_distance gesture_flick_speed gesture_double_tap_time gesture_double_tap_distance gesture_pinch_distance gesture_pinch_angle_towards gesture_pinch_angle_away gesture_rotate_time gesture_rotate_angle gesture_tap_count gesture_get_drag_time gesture_get_drag_distance gesture_get_flick_speed gesture_get_double_tap_time gesture_get_double_tap_distance gesture_get_pinch_distance gesture_get_pinch_angle_towards gesture_get_pinch_angle_away gesture_get_rotate_time gesture_get_rotate_angle gesture_get_tap_count keyboard_virtual_show keyboard_virtual_hide keyboard_virtual_status keyboard_virtual_height",literal:"self other all noone global local undefined pointer_invalid pointer_null path_action_stop path_action_restart path_action_continue path_action_reverse true false pi GM_build_date GM_version GM_runtime_version timezone_local timezone_utc gamespeed_fps gamespeed_microseconds ev_create ev_destroy ev_step ev_alarm ev_keyboard ev_mouse ev_collision ev_other ev_draw ev_draw_begin ev_draw_end ev_draw_pre ev_draw_post ev_keypress ev_keyrelease ev_trigger ev_left_button ev_right_button ev_middle_button ev_no_button ev_left_press ev_right_press ev_middle_press ev_left_release ev_right_release ev_middle_release ev_mouse_enter ev_mouse_leave ev_mouse_wheel_up ev_mouse_wheel_down ev_global_left_button ev_global_right_button ev_global_middle_button ev_global_left_press ev_global_right_press ev_global_middle_press ev_global_left_release ev_global_right_release ev_global_middle_release ev_joystick1_left ev_joystick1_right ev_joystick1_up ev_joystick1_down ev_joystick1_button1 ev_joystick1_button2 ev_joystick1_button3 ev_joystick1_button4 ev_joystick1_button5 ev_joystick1_button6 ev_joystick1_button7 ev_joystick1_button8 ev_joystick2_left ev_joystick2_right ev_joystick2_up ev_joystick2_down ev_joystick2_button1 ev_joystick2_button2 ev_joystick2_button3 ev_joystick2_button4 ev_joystick2_button5 ev_joystick2_button6 ev_joystick2_button7 ev_joystick2_button8 ev_outside ev_boundary ev_game_start ev_game_end ev_room_start ev_room_end ev_no_more_lives ev_animation_end ev_end_of_path ev_no_more_health ev_close_button ev_user0 ev_user1 ev_user2 ev_user3 ev_user4 ev_user5 ev_user6 ev_user7 ev_user8 ev_user9 ev_user10 ev_user11 ev_user12 ev_user13 ev_user14 ev_user15 ev_step_normal ev_step_begin ev_step_end ev_gui ev_gui_begin ev_gui_end ev_cleanup ev_gesture ev_gesture_tap ev_gesture_double_tap ev_gesture_drag_start ev_gesture_dragging ev_gesture_drag_end ev_gesture_flick ev_gesture_pinch_start ev_gesture_pinch_in ev_gesture_pinch_out ev_gesture_pinch_end ev_gesture_rotate_start ev_gesture_rotating ev_gesture_rotate_end ev_global_gesture_tap ev_global_gesture_double_tap ev_global_gesture_drag_start ev_global_gesture_dragging ev_global_gesture_drag_end ev_global_gesture_flick ev_global_gesture_pinch_start ev_global_gesture_pinch_in ev_global_gesture_pinch_out ev_global_gesture_pinch_end ev_global_gesture_rotate_start ev_global_gesture_rotating ev_global_gesture_rotate_end vk_nokey vk_anykey vk_enter vk_return vk_shift vk_control vk_alt vk_escape vk_space vk_backspace vk_tab vk_pause vk_printscreen vk_left vk_right vk_up vk_down vk_home vk_end vk_delete vk_insert vk_pageup vk_pagedown vk_f1 vk_f2 vk_f3 vk_f4 vk_f5 vk_f6 vk_f7 vk_f8 vk_f9 vk_f10 vk_f11 vk_f12 vk_numpad0 vk_numpad1 vk_numpad2 vk_numpad3 vk_numpad4 vk_numpad5 vk_numpad6 vk_numpad7 vk_numpad8 vk_numpad9 vk_divide vk_multiply vk_subtract vk_add vk_decimal vk_lshift vk_lcontrol vk_lalt vk_rshift vk_rcontrol vk_ralt mb_any mb_none mb_left mb_right mb_middle c_aqua c_black c_blue c_dkgray c_fuchsia c_gray c_green c_lime c_ltgray c_maroon c_navy c_olive c_purple c_red c_silver c_teal c_white c_yellow c_orange fa_left fa_center fa_right fa_top fa_middle fa_bottom pr_pointlist pr_linelist pr_linestrip pr_trianglelist pr_trianglestrip pr_trianglefan bm_complex bm_normal bm_add bm_max bm_subtract bm_zero bm_one bm_src_colour bm_inv_src_colour bm_src_color bm_inv_src_color bm_src_alpha bm_inv_src_alpha bm_dest_alpha bm_inv_dest_alpha bm_dest_colour bm_inv_dest_colour bm_dest_color bm_inv_dest_color bm_src_alpha_sat tf_point tf_linear tf_anisotropic mip_off mip_on mip_markedonly audio_falloff_none audio_falloff_inverse_distance audio_falloff_inverse_distance_clamped audio_falloff_linear_distance audio_falloff_linear_distance_clamped audio_falloff_exponent_distance audio_falloff_exponent_distance_clamped audio_old_system audio_new_system audio_mono audio_stereo audio_3d cr_default cr_none cr_arrow cr_cross cr_beam cr_size_nesw cr_size_ns cr_size_nwse cr_size_we cr_uparrow cr_hourglass cr_drag cr_appstart cr_handpoint cr_size_all spritespeed_framespersecond spritespeed_framespergameframe asset_object asset_unknown asset_sprite asset_sound asset_room asset_path asset_script asset_font asset_timeline asset_tiles asset_shader fa_readonly fa_hidden fa_sysfile fa_volumeid fa_directory fa_archive ds_type_map ds_type_list ds_type_stack ds_type_queue ds_type_grid ds_type_priority ef_explosion ef_ring ef_ellipse ef_firework ef_smoke ef_smokeup ef_star ef_spark ef_flare ef_cloud ef_rain ef_snow pt_shape_pixel pt_shape_disk pt_shape_square pt_shape_line pt_shape_star pt_shape_circle pt_shape_ring pt_shape_sphere pt_shape_flare pt_shape_spark pt_shape_explosion pt_shape_cloud pt_shape_smoke pt_shape_snow ps_distr_linear ps_distr_gaussian ps_distr_invgaussian ps_shape_rectangle ps_shape_ellipse ps_shape_diamond ps_shape_line ty_real ty_string dll_cdecl dll_stdcall matrix_view matrix_projection matrix_world os_win32 os_windows os_macosx os_ios os_android os_symbian os_linux os_unknown os_winphone os_tizen os_win8native os_wiiu os_3ds os_psvita os_bb10 os_ps4 os_xboxone os_ps3 os_xbox360 os_uwp os_tvos os_switch browser_not_a_browser browser_unknown browser_ie browser_firefox browser_chrome browser_safari browser_safari_mobile browser_opera browser_tizen browser_edge browser_windows_store browser_ie_mobile device_ios_unknown device_ios_iphone device_ios_iphone_retina device_ios_ipad device_ios_ipad_retina device_ios_iphone5 device_ios_iphone6 device_ios_iphone6plus device_emulator device_tablet display_landscape display_landscape_flipped display_portrait display_portrait_flipped tm_sleep tm_countvsyncs of_challenge_win of_challen ge_lose of_challenge_tie leaderboard_type_number leaderboard_type_time_mins_secs cmpfunc_never cmpfunc_less cmpfunc_equal cmpfunc_lessequal cmpfunc_greater cmpfunc_notequal cmpfunc_greaterequal cmpfunc_always cull_noculling cull_clockwise cull_counterclockwise lighttype_dir lighttype_point iap_ev_storeload iap_ev_product iap_ev_purchase iap_ev_consume iap_ev_restore iap_storeload_ok iap_storeload_failed iap_status_uninitialised iap_status_unavailable iap_status_loading iap_status_available iap_status_processing iap_status_restoring iap_failed iap_unavailable iap_available iap_purchased iap_canceled iap_refunded fb_login_default fb_login_fallback_to_webview fb_login_no_fallback_to_webview fb_login_forcing_webview fb_login_use_system_account fb_login_forcing_safari phy_joint_anchor_1_x phy_joint_anchor_1_y phy_joint_anchor_2_x phy_joint_anchor_2_y phy_joint_reaction_force_x phy_joint_reaction_force_y phy_joint_reaction_torque phy_joint_motor_speed phy_joint_angle phy_joint_motor_torque phy_joint_max_motor_torque phy_joint_translation phy_joint_speed phy_joint_motor_force phy_joint_max_motor_force phy_joint_length_1 phy_joint_length_2 phy_joint_damping_ratio phy_joint_frequency phy_joint_lower_angle_limit phy_joint_upper_angle_limit phy_joint_angle_limits phy_joint_max_length phy_joint_max_torque phy_joint_max_force phy_debug_render_aabb phy_debug_render_collision_pairs phy_debug_render_coms phy_debug_render_core_shapes phy_debug_render_joints phy_debug_render_obb phy_debug_render_shapes phy_particle_flag_water phy_particle_flag_zombie phy_particle_flag_wall phy_particle_flag_spring phy_particle_flag_elastic phy_particle_flag_viscous phy_particle_flag_powder phy_particle_flag_tensile phy_particle_flag_colourmixing phy_particle_flag_colormixing phy_particle_group_flag_solid phy_particle_group_flag_rigid phy_particle_data_flag_typeflags phy_particle_data_flag_position phy_particle_data_flag_velocity phy_particle_data_flag_colour phy_particle_data_flag_color phy_particle_data_flag_category achievement_our_info achievement_friends_info achievement_leaderboard_info achievement_achievement_info achievement_filter_all_players achievement_filter_friends_only achievement_filter_favorites_only achievement_type_achievement_challenge achievement_type_score_challenge achievement_pic_loaded achievement_show_ui achievement_show_profile achievement_show_leaderboard achievement_show_achievement achievement_show_bank achievement_show_friend_picker achievement_show_purchase_prompt network_socket_tcp network_socket_udp network_socket_bluetooth network_type_connect network_type_disconnect network_type_data network_type_non_blocking_connect network_config_connect_timeout network_config_use_non_blocking_socket network_config_enable_reliable_udp network_config_disable_reliable_udp buffer_fixed buffer_grow buffer_wrap buffer_fast buffer_vbuffer buffer_network buffer_u8 buffer_s8 buffer_u16 buffer_s16 buffer_u32 buffer_s32 buffer_u64 buffer_f16 buffer_f32 buffer_f64 buffer_bool buffer_text buffer_string buffer_surface_copy buffer_seek_start buffer_seek_relative buffer_seek_end buffer_generalerror buffer_outofspace buffer_outofbounds buffer_invalidtype text_type button_type input_type ANSI_CHARSET DEFAULT_CHARSET EASTEUROPE_CHARSET RUSSIAN_CHARSET SYMBOL_CHARSET SHIFTJIS_CHARSET HANGEUL_CHARSET GB2312_CHARSET CHINESEBIG5_CHARSET JOHAB_CHARSET HEBREW_CHARSET ARABIC_CHARSET GREEK_CHARSET TURKISH_CHARSET VIETNAMESE_CHARSET THAI_CHARSET MAC_CHARSET BALTIC_CHARSET OEM_CHARSET gp_face1 gp_face2 gp_face3 gp_face4 gp_shoulderl gp_shoulderr gp_shoulderlb gp_shoulderrb gp_select gp_start gp_stickl gp_stickr gp_padu gp_padd gp_padl gp_padr gp_axislh gp_axislv gp_axisrh gp_axisrv ov_friends ov_community ov_players ov_settings ov_gamegroup ov_achievements lb_sort_none lb_sort_ascending lb_sort_descending lb_disp_none lb_disp_numeric lb_disp_time_sec lb_disp_time_ms ugc_result_success ugc_filetype_community ugc_filetype_microtrans ugc_visibility_public ugc_visibility_friends_only ugc_visibility_private ugc_query_RankedByVote ugc_query_RankedByPublicationDate ugc_query_AcceptedForGameRankedByAcceptanceDate ugc_query_RankedByTrend ugc_query_FavoritedByFriendsRankedByPublicationDate ugc_query_CreatedByFriendsRankedByPublicationDate ugc_query_RankedByNumTimesReported ugc_query_CreatedByFollowedUsersRankedByPublicationDate ugc_query_NotYetRated ugc_query_RankedByTotalVotesAsc ugc_query_RankedByVotesUp ugc_query_RankedByTextSearch ugc_sortorder_CreationOrderDesc ugc_sortorder_CreationOrderAsc ugc_sortorder_TitleAsc ugc_sortorder_LastUpdatedDesc ugc_sortorder_SubscriptionDateDesc ugc_sortorder_VoteScoreDesc ugc_sortorder_ForModeration ugc_list_Published ugc_list_VotedOn ugc_list_VotedUp ugc_list_VotedDown ugc_list_WillVoteLater ugc_list_Favorited ugc_list_Subscribed ugc_list_UsedOrPlayed ugc_list_Followed ugc_match_Items ugc_match_Items_Mtx ugc_match_Items_ReadyToUse ugc_match_Collections ugc_match_Artwork ugc_match_Videos ugc_match_Screenshots ugc_match_AllGuides ugc_match_WebGuides ugc_match_IntegratedGuides ugc_match_UsableInGame ugc_match_ControllerBindings vertex_usage_position vertex_usage_colour vertex_usage_color vertex_usage_normal vertex_usage_texcoord vertex_usage_textcoord vertex_usage_blendweight vertex_usage_blendindices vertex_usage_psize vertex_usage_tangent vertex_usage_binormal vertex_usage_fog vertex_usage_depth vertex_usage_sample vertex_type_float1 vertex_type_float2 vertex_type_float3 vertex_type_float4 vertex_type_colour vertex_type_color vertex_type_ubyte4 layerelementtype_undefined layerelementtype_background layerelementtype_instance layerelementtype_oldtilemap layerelementtype_sprite layerelementtype_tilemap layerelementtype_particlesystem layerelementtype_tile tile_rotate tile_flip tile_mirror tile_index_mask kbv_type_default kbv_type_ascii kbv_type_url kbv_type_email kbv_type_numbers kbv_type_phone kbv_type_phone_name kbv_returnkey_default kbv_returnkey_go kbv_returnkey_google kbv_returnkey_join kbv_returnkey_next kbv_returnkey_route kbv_returnkey_search kbv_returnkey_send kbv_returnkey_yahoo kbv_returnkey_done kbv_returnkey_continue kbv_returnkey_emergency kbv_autocapitalize_none kbv_autocapitalize_words kbv_autocapitalize_sentences kbv_autocapitalize_characters",symbol:"argument_relative argument argument0 argument1 argument2 argument3 argument4 argument5 argument6 argument7 argument8 argument9 argument10 argument11 argument12 argument13 argument14 argument15 argument_count x y xprevious yprevious xstart ystart hspeed vspeed direction speed friction gravity gravity_direction path_index path_position path_positionprevious path_speed path_scale path_orientation path_endaction object_index id solid persistent mask_index instance_count instance_id room_speed fps fps_real current_time current_year current_month current_day current_weekday current_hour current_minute current_second alarm timeline_index timeline_position timeline_speed timeline_running timeline_loop room room_first room_last room_width room_height room_caption room_persistent score lives health show_score show_lives show_health caption_score caption_lives caption_health event_type event_number event_object event_action application_surface gamemaker_pro gamemaker_registered gamemaker_version error_occurred error_last debug_mode keyboard_key keyboard_lastkey keyboard_lastchar keyboard_string mouse_x mouse_y mouse_button mouse_lastbutton cursor_sprite visible sprite_index sprite_width sprite_height sprite_xoffset sprite_yoffset image_number image_index image_speed depth image_xscale image_yscale image_angle image_alpha image_blend bbox_left bbox_right bbox_top bbox_bottom layer background_colour background_showcolour background_color background_showcolor view_enabled view_current view_visible view_xview view_yview view_wview view_hview view_xport view_yport view_wport view_hport view_angle view_hborder view_vborder view_hspeed view_vspeed view_object view_surface_id view_camera game_id game_display_name game_project_name game_save_id working_directory temp_directory program_directory browser_width browser_height os_type os_device os_browser os_version display_aa async_load delta_time webgl_enabled event_data iap_data phy_rotation phy_position_x phy_position_y phy_angular_velocity phy_linear_velocity_x phy_linear_velocity_y phy_speed_x phy_speed_y phy_speed phy_angular_damping phy_linear_damping phy_bullet phy_fixed_rotation phy_active phy_mass phy_inertia phy_com_x phy_com_y phy_dynamic phy_kinematic phy_sleeping phy_collision_points phy_collision_x phy_collision_y phy_col_normal_x phy_col_normal_y phy_position_xprevious phy_position_yprevious"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}},function(e,t){e.exports=function(e){const t={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{name:"Go",aliases:["golang"],keywords:t,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:e.C_NUMBER_RE+"[i]",relevance:1},e.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:t,illegal:/["']/}]}]}}},function(e,t){e.exports=function(e){return{name:"Golo",keywords:{keyword:"println readln print import module function local return let var while for foreach times in case when match with break continue augment augmentation each find filter reduce if then else otherwise try catch finally raise throw orIfNull DynamicObject|10 DynamicVariable struct Observable map set vector list array",literal:"true false null"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}},function(e,t){e.exports=function(e){return{name:"Gradle",case_insensitive:!0,keywords:{keyword:"task project allprojects subprojects artifacts buildscript configurations dependencies repositories sourceSets description delete from into include exclude source classpath destinationDir includes options sourceCompatibility targetCompatibility group flatDir doLast doFirst flatten todir fromdir ant def abstract break case catch continue default do else extends final finally for if implements instanceof native new private protected public return static switch synchronized throw throws transient try volatile while strictfp package import false null super this true antlrtask checkstyle codenarc copy boolean byte char class double float int interface long short void compile runTime file fileTree abs any append asList asWritable call collect compareTo count div dump each eachByte eachFile eachLine every find findAll flatten getAt getErr getIn getOut getText grep immutable inject inspect intersect invokeMethods isCase join leftShift minus multiply newInputStream newOutputStream newPrintWriter newReader newWriter next plus pop power previous print println push putAt read readBytes readLines reverse reverseEach round size sort splitEachLine step subMap times toInteger toList tokenize upto waitForOrKill withPrintWriter withReader withStream withWriter withWriterAppend write writeLine"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.REGEXP_MODE]}}},function(e,t){function n(e){return function(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}("(?=",e,")")}function o(e,t={}){return t.variants=e,t}e.exports=function(e){const t=o([e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]})]),r={className:"regexp",begin:/~?\/[^\/\n]+\//,contains:[e.BACKSLASH_ESCAPE]},i=o([e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]),a=o([{begin:/"""/,end:/"""/},{begin:/'''/,end:/'''/},{begin:"\\$/",end:"/\\$",relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE],{className:"string"});return{name:"Groovy",keywords:{built_in:"this super",literal:"true false null",keyword:"byte short char int long boolean float double void def as in assert trait abstract static volatile transient public private protected synchronized final class interface enum if else for while switch case break default continue throw throws try catch finally implements extends new import package return instanceof"},contains:[e.SHEBANG({binary:"groovy",relevance:10}),t,a,r,i,{className:"class",beginKeywords:"class interface trait enum",end:/\{/,illegal:":",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{className:"meta",begin:"@[A-Za-z]+",relevance:0},{className:"attr",begin:"[A-Za-z0-9_$]+[ \t]*:"},{begin:/\?/,end:/:/,relevance:0,contains:[t,a,r,i,"self"]},{className:"symbol",begin:"^[ \t]*"+n("[A-Za-z0-9_$]+:"),excludeBegin:!0,end:"[A-Za-z0-9_$]+:",relevance:0}],illegal:/#|<\//}}},function(e,t){e.exports=function(e){return{name:"HAML",case_insensitive:!0,contains:[{className:"meta",begin:"^!!!( (5|1\\.1|Strict|Frameset|Basic|Mobile|RDFa|XML\\b.*))?$",relevance:10},e.COMMENT("^\\s*(!=#|=#|-#|/).*$",!1,{relevance:0}),{begin:"^\\s*(-|=|!=)(?!#)",starts:{end:"\\n",subLanguage:"ruby"}},{className:"tag",begin:"^\\s*%",contains:[{className:"selector-tag",begin:"\\w+"},{className:"selector-id",begin:"#[\\w-]+"},{className:"selector-class",begin:"\\.[\\w-]+"},{begin:/\{\s*/,end:/\s*\}/,contains:[{begin:":\\w+\\s*=>",end:",\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:":\\w+"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]},{begin:"\\(\\s*",end:"\\s*\\)",excludeEnd:!0,contains:[{begin:"\\w+\\s*=",end:"\\s+",returnBegin:!0,endsWithParent:!0,contains:[{className:"attr",begin:"\\w+",relevance:0},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{begin:"\\w+",relevance:0}]}]}]},{begin:"^\\s*[=~]\\s*"},{begin:/#\{/,starts:{end:/\}/,subLanguage:"ruby"}}]}}},function(e,t){function n(e){return e?"string"==typeof e?e:e.source:null}function o(...e){return e.map(e=>n(e)).join("")}e.exports=function(e){const t={"builtin-name":["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"].join(" ")},r={literal:["true","false","undefined","null"].join(" ")},i=/\[\]|\[[^\]]+\]/,a=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,s=function(...e){return"("+e.map(e=>n(e)).join("|")+")"}(/""|"[^"]+"/,/''|'[^']+'/,i,a),c=o(o("(",/\.|\.\/|\//,")?"),s,function(e){return o("(",e,")*")}(o(/(\.|\/)/,s))),l=o("(",i,"|",a,")(?==)"),d={begin:c,lexemes:/[\w.\/]+/},u=e.inherit(d,{keywords:r}),h={begin:/\(/,end:/\)/},p={className:"attr",begin:l,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,u,h]}}},m={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},p,u,h],returnEnd:!0},g=e.inherit(d,{className:"name",keywords:t,starts:e.inherit(m,{end:/\)/})});h.contains=[g];const f=e.inherit(d,{keywords:t,className:"name",starts:e.inherit(m,{end:/\}\}/})}),_=e.inherit(d,{keywords:t,className:"name"}),b=e.inherit(d,{className:"name",keywords:t,starts:e.inherit(m,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[f],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[_]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[f]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[_]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[b]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[b]}]}}},function(e,t){e.exports=function(e){const t={variants:[e.COMMENT("--","$"),e.COMMENT(/\{-/,/-\}/,{contains:["self"]})]},n={className:"meta",begin:/\{-#/,end:/#-\}/},o={className:"meta",begin:"^#",end:"$"},r={className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},i={begin:"\\(",end:"\\)",illegal:'"',contains:[n,o,{className:"type",begin:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TITLE_MODE,{begin:"[_a-z][\\w']*"}),t]};return{name:"Haskell",aliases:["hs"],keywords:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",contains:[{beginKeywords:"module",end:"where",keywords:"module where",contains:[i,t],illegal:"\\W\\.|;"},{begin:"\\bimport\\b",end:"$",keywords:"import qualified as hiding",contains:[i,t],illegal:"\\W\\.|;"},{className:"class",begin:"^(\\s*)?(class|instance)\\b",end:"where",keywords:"class family instance where",contains:[r,i,t]},{className:"class",begin:"\\b(data|(new)?type)\\b",end:"$",keywords:"data family type newtype deriving",contains:[n,r,i,{begin:/\{/,end:/\}/,contains:i.contains},t]},{beginKeywords:"default",end:"$",contains:[r,i,t]},{beginKeywords:"infix infixl infixr",end:"$",contains:[e.C_NUMBER_MODE,t]},{begin:"\\bforeign\\b",end:"$",keywords:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",contains:[r,e.QUOTE_STRING_MODE,t]},{className:"meta",begin:"#!\\/usr\\/bin\\/env runhaskell",end:"$"},n,o,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,r,e.inherit(e.TITLE_MODE,{begin:"^[_a-z][\\w']*"}),t,{begin:"->|<-"}]}}},function(e,t){e.exports=function(e){return{name:"Haxe",aliases:["hx"],keywords:{keyword:"break case cast catch continue default do dynamic else enum extern for function here if import in inline never new override package private get set public return static super switch this throw trace try typedef untyped using var while Int Float String Bool Dynamic Void Array ",built_in:"trace this",literal:"true false null _"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"},{className:"subst",begin:"\\$",end:/\W\}/}]},e.QUOTE_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"@:",end:"$"},{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elseif end error"}},{className:"type",begin:":[ \t]*",end:"[^A-Za-z0-9_ \t\\->]",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:":[ \t]*",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"new *",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"class",beginKeywords:"enum",end:"\\{",contains:[e.TITLE_MODE]},{className:"class",beginKeywords:"abstract",end:"[\\{$]",contains:[{className:"type",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"from +",end:"\\W",excludeBegin:!0,excludeEnd:!0},{className:"type",begin:"to +",end:"\\W",excludeBegin:!0,excludeEnd:!0},e.TITLE_MODE],keywords:{keyword:"abstract from to"}},{className:"class",begin:"\\b(class|interface) +",end:"[\\{$]",excludeEnd:!0,keywords:"class interface",contains:[{className:"keyword",begin:"\\b(extends|implements) +",keywords:"extends implements",contains:[{className:"type",begin:e.IDENT_RE,relevance:0}]},e.TITLE_MODE]},{className:"function",beginKeywords:"function",end:"\\(",excludeEnd:!0,illegal:"\\S",contains:[e.TITLE_MODE]}],illegal:/<\//}}},function(e,t){e.exports=function(e){return{name:"HSP",case_insensitive:!0,keywords:{$pattern:/[\w._]+/,keyword:"goto gosub return break repeat loop continue wait await dim sdim foreach dimtype dup dupptr end stop newmod delmod mref run exgoto on mcall assert logmes newlab resume yield onexit onerror onkey onclick oncmd exist delete mkdir chdir dirlist bload bsave bcopy memfile if else poke wpoke lpoke getstr chdpm memexpand memcpy memset notesel noteadd notedel noteload notesave randomize noteunsel noteget split strrep setease button chgdisp exec dialog mmload mmplay mmstop mci pset pget syscolor mes print title pos circle cls font sysfont objsize picload color palcolor palette redraw width gsel gcopy gzoom gmode bmpsave hsvcolor getkey listbox chkbox combox input mesbox buffer screen bgscr mouse objsel groll line clrobj boxf objprm objmode stick grect grotate gsquare gradf objimage objskip objenable celload celdiv celput newcom querycom delcom cnvstow comres axobj winobj sendmsg comevent comevarg sarrayconv callfunc cnvwtos comevdisp libptr system hspstat hspver stat cnt err strsize looplev sublev iparam wparam lparam refstr refdval int rnd strlen length length2 length3 length4 vartype gettime peek wpeek lpeek varptr varuse noteinfo instr abs limit getease str strmid strf getpath strtrim sin cos tan atan sqrt double absf expf logf limitf powf geteasef mousex mousey mousew hwnd hinstance hdc ginfo objinfo dirinfo sysinfo thismod __hspver__ __hsp30__ __date__ __time__ __line__ __file__ _debug __hspdef__ and or xor not screen_normal screen_palette screen_hide screen_fixedsize screen_tool screen_frame gmode_gdi gmode_mem gmode_rgb0 gmode_alpha gmode_rgb0alpha gmode_add gmode_sub gmode_pixela ginfo_mx ginfo_my ginfo_act ginfo_sel ginfo_wx1 ginfo_wy1 ginfo_wx2 ginfo_wy2 ginfo_vx ginfo_vy ginfo_sizex ginfo_sizey ginfo_winx ginfo_winy ginfo_mesx ginfo_mesy ginfo_r ginfo_g ginfo_b ginfo_paluse ginfo_dispx ginfo_dispy ginfo_cx ginfo_cy ginfo_intid ginfo_newid ginfo_sx ginfo_sy objinfo_mode objinfo_bmscr objinfo_hwnd notemax notesize dir_cur dir_exe dir_win dir_sys dir_cmdline dir_desktop dir_mydoc dir_tv font_normal font_bold font_italic font_underline font_strikeout font_antialias objmode_normal objmode_guifont objmode_usefont gsquare_grad msgothic msmincho do until while wend for next _break _continue switch case default swbreak swend ddim ldim alloc m_pi rad2deg deg2rad ease_linear ease_quad_in ease_quad_out ease_quad_inout ease_cubic_in ease_cubic_out ease_cubic_inout ease_quartic_in ease_quartic_out ease_quartic_inout ease_bounce_in ease_bounce_out ease_bounce_inout ease_shake_in ease_shake_out ease_shake_inout ease_loop"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",begin:/\{"/,end:/"\}/,contains:[e.BACKSLASH_ESCAPE]},e.COMMENT(";","$",{relevance:0}),{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"addion cfunc cmd cmpopt comfunc const defcfunc deffunc define else endif enum epack func global if ifdef ifndef include modcfunc modfunc modinit modterm module pack packopt regcmd runtime undef usecom uselib"},contains:[e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),e.NUMBER_MODE,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"symbol",begin:"^\\*(\\w+|@)"},e.NUMBER_MODE,e.C_NUMBER_MODE]}}},function(e,t){function n(e){return e?"string"==typeof e?e:e.source:null}function o(...e){return e.map(e=>n(e)).join("")}function r(e){const t={"builtin-name":["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"].join(" ")},r={literal:["true","false","undefined","null"].join(" ")},i=/\[\]|\[[^\]]+\]/,a=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,s=function(...e){return"("+e.map(e=>n(e)).join("|")+")"}(/""|"[^"]+"/,/''|'[^']+'/,i,a),c=o(o("(",/\.|\.\/|\//,")?"),s,function(e){return o("(",e,")*")}(o(/(\.|\/)/,s)));const l=o("(",i,"|",a,")(?==)"),d={begin:c,lexemes:/[\w.\/]+/},u=e.inherit(d,{keywords:r}),h={begin:/\(/,end:/\)/},p={className:"attr",begin:l,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,u,h]}}},m={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},p,u,h],returnEnd:!0},g=e.inherit(d,{className:"name",keywords:t,starts:e.inherit(m,{end:/\)/})});h.contains=[g];const f=e.inherit(d,{keywords:t,className:"name",starts:e.inherit(m,{end:/\}\}/})}),_=e.inherit(d,{keywords:t,className:"name"}),b=e.inherit(d,{className:"name",keywords:t,starts:e.inherit(m,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[f],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[_]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[f]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[_]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[b]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[b]}]}}e.exports=function(e){const t=r(e);return t.name="HTMLbars",e.getLanguage("handlebars")&&(t.disableAutodetect=!0),t}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t="HTTP/(2|1\\.[01])",o=[{className:"attribute",begin:n("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+t+" \\d{3})",end:/$/,contains:[{className:"meta",begin:t},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},{begin:"(?=^[A-Z]+ (.*?) "+t+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:t},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}}]}}},function(e,t){e.exports=function(e){var t="[a-zA-Z_\\-!.?+*=<>&#'][a-zA-Z_\\-!.?+*=<>&#'0-9/;:]*",n={$pattern:t,"builtin-name":"!= % %= & &= * ** **= *= *map + += , --build-class-- --import-- -= . / // //= /= < << <<= <= = > >= >> >>= @ @= ^ ^= abs accumulate all and any ap-compose ap-dotimes ap-each ap-each-while ap-filter ap-first ap-if ap-last ap-map ap-map-when ap-pipe ap-reduce ap-reject apply as-> ascii assert assoc bin break butlast callable calling-module-name car case cdr chain chr coll? combinations compile compress cond cons cons? continue count curry cut cycle dec def default-method defclass defmacro defmacro-alias defmacro/g! defmain defmethod defmulti defn defn-alias defnc defnr defreader defseq del delattr delete-route dict-comp dir disassemble dispatch-reader-macro distinct divmod do doto drop drop-last drop-while empty? end-sequence eval eval-and-compile eval-when-compile even? every? except exec filter first flatten float? fn fnc fnr for for* format fraction genexpr gensym get getattr global globals group-by hasattr hash hex id identity if if* if-not if-python2 import in inc input instance? integer integer-char? integer? interleave interpose is is-coll is-cons is-empty is-even is-every is-float is-instance is-integer is-integer-char is-iterable is-iterator is-keyword is-neg is-none is-not is-numeric is-odd is-pos is-string is-symbol is-zero isinstance islice issubclass iter iterable? iterate iterator? keyword keyword? lambda last len let lif lif-not list* list-comp locals loop macro-error macroexpand macroexpand-1 macroexpand-all map max merge-with method-decorator min multi-decorator multicombinations name neg? next none? nonlocal not not-in not? nth numeric? oct odd? open or ord partition permutations pos? post-route postwalk pow prewalk print product profile/calls profile/cpu put-route quasiquote quote raise range read read-str recursive-replace reduce remove repeat repeatedly repr require rest round route route-with-methods rwm second seq set-comp setattr setv some sorted string string? sum switch symbol? take take-nth take-while tee try unless unquote unquote-splicing vars walk when while with with* with-decorator with-gensyms xi xor yield yield-from zero? zip zip-longest | |= ~"},o={begin:t,relevance:0},r={className:"number",begin:"[-+]?\\d+(\\.\\d+)?",relevance:0},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),a=e.COMMENT(";","$",{relevance:0}),s={className:"literal",begin:/\b([Tt]rue|[Ff]alse|nil|None)\b/},c={begin:"[\\[\\{]",end:"[\\]\\}]"},l={className:"comment",begin:"\\^"+t},d=e.COMMENT("\\^\\{","\\}"),u={className:"symbol",begin:"[:]{1,2}"+t},h={begin:"\\(",end:"\\)"},p={endsWithParent:!0,relevance:0},m={className:"name",relevance:0,keywords:n,begin:t,starts:p},g=[h,i,l,d,a,u,c,r,s,o];return h.contains=[e.COMMENT("comment",""),m,p],p.contains=g,c.contains=g,{name:"Hy",aliases:["hylang"],illegal:/\S/,contains:[e.SHEBANG(),h,i,l,d,a,u,c,r,s]}}},function(e,t){e.exports=function(e){return{name:"Inform 7",aliases:["i7"],case_insensitive:!0,keywords:{keyword:"thing room person man woman animal container supporter backdrop door scenery open closed locked inside gender is are say understand kind of rule"},contains:[{className:"string",begin:'"',end:'"',relevance:0,contains:[{className:"subst",begin:"\\[",end:"\\]"}]},{className:"section",begin:/^(Volume|Book|Part|Chapter|Section|Table)\b/,end:"$"},{begin:/^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,end:":",contains:[{begin:"\\(This",end:"\\)"}]},{className:"comment",begin:"\\[",end:"\\]",contains:["self"]}]}}},function(e,t){function n(e){return e?"string"==typeof e?e:e.source:null}function o(...e){return e.map(e=>n(e)).join("")}e.exports=function(e){const t={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},a={className:"literal",begin:/\bon|off|true|false|yes|no\b/},s={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},c={begin:/\[/,end:/\]/,contains:[r,a,i,s,t,"self"],relevance:0},l=function(...e){return"("+e.map(e=>n(e)).join("|")+")"}(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:o(l,"(\\s*\\.\\s*",l,")*",o("(?=",/\s*=\s*[^#\s]/,")")),className:"attr",starts:{end:/$/,contains:[r,c,a,i,s,t]}}]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t=/(_[a-z_\d]+)?/,o=/([de][+-]?\d+)?/,r={className:"number",variants:[{begin:n(/\b\d+/,/\.(\d*)/,o,t)},{begin:n(/\b\d+/,o,t)},{begin:n(/\.\d+/,o,t)}],relevance:0};return{name:"IRPF90",case_insensitive:!0,keywords:{literal:".False. .True.",keyword:"kind do while private call intrinsic where elsewhere type endtype endmodule endselect endinterface end enddo endif if forall endforall only contains default return stop then public subroutine|10 function program .and. .or. .not. .le. .eq. .ge. .gt. .lt. goto save else use module select case access blank direct exist file fmt form formatted iostat name named nextrec number opened rec recl sequential status unformatted unit continue format pause cycle exit c_null_char c_alert c_backspace c_form_feed flush wait decimal round iomsg synchronous nopass non_overridable pass protected volatile abstract extends import non_intrinsic value deferred generic final enumerator class associate bind enum c_int c_short c_long c_long_long c_signed_char c_size_t c_int8_t c_int16_t c_int32_t c_int64_t c_int_least8_t c_int_least16_t c_int_least32_t c_int_least64_t c_int_fast8_t c_int_fast16_t c_int_fast32_t c_int_fast64_t c_intmax_t C_intptr_t c_float c_double c_long_double c_float_complex c_double_complex c_long_double_complex c_bool c_char c_null_ptr c_null_funptr c_new_line c_carriage_return c_horizontal_tab c_vertical_tab iso_c_binding c_loc c_funloc c_associated c_f_pointer c_ptr c_funptr iso_fortran_env character_storage_size error_unit file_storage_size input_unit iostat_end iostat_eor numeric_storage_size output_unit c_f_procpointer ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode newunit contiguous recursive pad position action delim readwrite eor advance nml interface procedure namelist include sequence elemental pure integer real character complex logical dimension allocatable|10 parameter external implicit|10 none double precision assign intent optional pointer target in out common equivalence data begin_provider &begin_provider end_provider begin_shell end_shell begin_template end_template subst assert touch soft_touch provide no_dep free irp_if irp_else irp_endif irp_write irp_read",built_in:"alog alog10 amax0 amax1 amin0 amin1 amod cabs ccos cexp clog csin csqrt dabs dacos dasin datan datan2 dcos dcosh ddim dexp dint dlog dlog10 dmax1 dmin1 dmod dnint dsign dsin dsinh dsqrt dtan dtanh float iabs idim idint idnint ifix isign max0 max1 min0 min1 sngl algama cdabs cdcos cdexp cdlog cdsin cdsqrt cqabs cqcos cqexp cqlog cqsin cqsqrt dcmplx dconjg derf derfc dfloat dgamma dimag dlgama iqint qabs qacos qasin qatan qatan2 qcmplx qconjg qcos qcosh qdim qerf qerfc qexp qgamma qimag qlgama qlog qlog10 qmax1 qmin1 qmod qnint qsign qsin qsinh qsqrt qtan qtanh abs acos aimag aint anint asin atan atan2 char cmplx conjg cos cosh exp ichar index int log log10 max min nint sign sin sinh sqrt tan tanh print write dim lge lgt lle llt mod nullify allocate deallocate adjustl adjustr all allocated any associated bit_size btest ceiling count cshift date_and_time digits dot_product eoshift epsilon exponent floor fraction huge iand ibclr ibits ibset ieor ior ishft ishftc lbound len_trim matmul maxexponent maxloc maxval merge minexponent minloc minval modulo mvbits nearest pack present product radix random_number random_seed range repeat reshape rrspacing scale scan selected_int_kind selected_real_kind set_exponent shape size spacing spread sum system_clock tiny transpose trim ubound unpack verify achar iachar transfer dble entry dprod cpu_time command_argument_count get_command get_command_argument get_environment_variable is_iostat_end ieee_arithmetic ieee_support_underflow_control ieee_get_underflow_mode ieee_set_underflow_mode is_iostat_eor move_alloc new_line selected_char_kind same_type_as extends_type_of acosh asinh atanh bessel_j0 bessel_j1 bessel_jn bessel_y0 bessel_y1 bessel_yn erf erfc erfc_scaled gamma log_gamma hypot norm2 atomic_define atomic_ref execute_command_line leadz trailz storage_size merge_bits bge bgt ble blt dshiftl dshiftr findloc iall iany iparity image_index lcobound ucobound maskl maskr num_images parity popcnt poppar shifta shiftl shiftr this_image IRP_ALIGN irp_here"},illegal:/\/\*/,contains:[e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{className:"string",relevance:0}),{className:"function",beginKeywords:"subroutine function program",illegal:"[${=\\n]",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},e.COMMENT("!","$",{relevance:0}),e.COMMENT("begin_doc","end_doc",{relevance:10}),r]}}},function(e,t){e.exports=function(e){const t="[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*",n={className:"number",begin:e.NUMBER_RE,relevance:0},o={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"}]},r={className:"doctag",begin:"\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b",relevance:0},i={variants:[{className:"comment",begin:"//",end:"$",relevance:0,contains:[e.PHRASAL_WORDS_MODE,r]},{className:"comment",begin:"/\\*",end:"\\*/",relevance:0,contains:[e.PHRASAL_WORDS_MODE,r]}]},a={$pattern:t,keyword:"and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока except exitfor finally foreach все if если in в not не or или try while пока ",built_in:"SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT SYSRES_CONST_ACCES_RIGHT_TYPE_FULL SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE SYSRES_CONST_ACCESS_NO_ACCESS_VIEW SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE SYSRES_CONST_ACCESS_TYPE_CHANGE SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE SYSRES_CONST_ACCESS_TYPE_EXISTS SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE SYSRES_CONST_ACCESS_TYPE_FULL SYSRES_CONST_ACCESS_TYPE_FULL_CODE SYSRES_CONST_ACCESS_TYPE_VIEW SYSRES_CONST_ACCESS_TYPE_VIEW_CODE SYSRES_CONST_ACTION_TYPE_ABORT SYSRES_CONST_ACTION_TYPE_ACCEPT SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT SYSRES_CONST_ACTION_TYPE_CHANGE_CARD SYSRES_CONST_ACTION_TYPE_CHANGE_KIND SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE SYSRES_CONST_ACTION_TYPE_CONTINUE SYSRES_CONST_ACTION_TYPE_COPY SYSRES_CONST_ACTION_TYPE_CREATE SYSRES_CONST_ACTION_TYPE_CREATE_VERSION SYSRES_CONST_ACTION_TYPE_DELETE SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT SYSRES_CONST_ACTION_TYPE_DELETE_VERSION SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE SYSRES_CONST_ACTION_TYPE_LOCK SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY SYSRES_CONST_ACTION_TYPE_MARK_AS_READED SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED SYSRES_CONST_ACTION_TYPE_MODIFY SYSRES_CONST_ACTION_TYPE_MODIFY_CARD SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE SYSRES_CONST_ACTION_TYPE_PERFORM SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY SYSRES_CONST_ACTION_TYPE_RESTART SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE SYSRES_CONST_ACTION_TYPE_REVISION SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL SYSRES_CONST_ACTION_TYPE_SIGN SYSRES_CONST_ACTION_TYPE_START SYSRES_CONST_ACTION_TYPE_UNLOCK SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER SYSRES_CONST_ACTION_TYPE_VERSION_STATE SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY SYSRES_CONST_ACTION_TYPE_VIEW SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE SYSRES_CONST_ADD_REFERENCE_MODE_NAME SYSRES_CONST_ADDITION_REQUISITE_CODE SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS SYSRES_CONST_ALL_USERS_GROUP SYSRES_CONST_ALL_USERS_GROUP_NAME SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE SYSRES_CONST_APPROVING_SIGNATURE_NAME SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN SYSRES_CONST_ATTACH_TYPE_DOC SYSRES_CONST_ATTACH_TYPE_EDOC SYSRES_CONST_ATTACH_TYPE_FOLDER SYSRES_CONST_ATTACH_TYPE_JOB SYSRES_CONST_ATTACH_TYPE_REFERENCE SYSRES_CONST_ATTACH_TYPE_TASK SYSRES_CONST_AUTH_ENCODED_PASSWORD SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE SYSRES_CONST_AUTH_NOVELL SYSRES_CONST_AUTH_PASSWORD SYSRES_CONST_AUTH_PASSWORD_CODE SYSRES_CONST_AUTH_WINDOWS SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE SYSRES_CONST_AUTO_ENUM_METHOD_FLAG SYSRES_CONST_AUTO_NUMERATION_CODE SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE SYSRES_CONST_AUTOTEXT_USAGE_ALL SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE SYSRES_CONST_AUTOTEXT_USAGE_SIGN SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE SYSRES_CONST_AUTOTEXT_USAGE_WORK SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_BTN_PART SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT SYSRES_CONST_CARD_PART SYSRES_CONST_CARD_REFERENCE_MODE_NAME SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT SYSRES_CONST_CODE_COMPONENT_TYPE_URL SYSRES_CONST_CODE_REQUISITE_ACCESS SYSRES_CONST_CODE_REQUISITE_CODE SYSRES_CONST_CODE_REQUISITE_COMPONENT SYSRES_CONST_CODE_REQUISITE_DESCRIPTION SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT SYSRES_CONST_CODE_REQUISITE_RECORD SYSRES_CONST_COMMENT_REQ_CODE SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE SYSRES_CONST_COMP_CODE_GRD SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS SYSRES_CONST_COMPONENT_TYPE_DOCS SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS SYSRES_CONST_COMPONENT_TYPE_EDOCS SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE SYSRES_CONST_COMPONENT_TYPE_OTHER SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES SYSRES_CONST_COMPONENT_TYPE_REFERENCES SYSRES_CONST_COMPONENT_TYPE_REPORTS SYSRES_CONST_COMPONENT_TYPE_SCRIPTS SYSRES_CONST_COMPONENT_TYPE_URL SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION SYSRES_CONST_CONST_FIRM_STATUS_COMMON SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL SYSRES_CONST_CONST_NEGATIVE_VALUE SYSRES_CONST_CONST_POSITIVE_VALUE SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE SYSRES_CONST_CONTENTS_REQUISITE_CODE SYSRES_CONST_DATA_TYPE_BOOLEAN SYSRES_CONST_DATA_TYPE_DATE SYSRES_CONST_DATA_TYPE_FLOAT SYSRES_CONST_DATA_TYPE_INTEGER SYSRES_CONST_DATA_TYPE_PICK SYSRES_CONST_DATA_TYPE_REFERENCE SYSRES_CONST_DATA_TYPE_STRING SYSRES_CONST_DATA_TYPE_TEXT SYSRES_CONST_DATA_TYPE_VARIANT SYSRES_CONST_DATE_CLOSE_REQ_CODE SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR SYSRES_CONST_DATE_OPEN_REQ_CODE SYSRES_CONST_DATE_REQUISITE SYSRES_CONST_DATE_REQUISITE_CODE SYSRES_CONST_DATE_REQUISITE_NAME SYSRES_CONST_DATE_REQUISITE_TYPE SYSRES_CONST_DATE_TYPE_CHAR SYSRES_CONST_DATETIME_FORMAT_VALUE SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_DET1_PART SYSRES_CONST_DET2_PART SYSRES_CONST_DET3_PART SYSRES_CONST_DET4_PART SYSRES_CONST_DET5_PART SYSRES_CONST_DET6_PART SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE SYSRES_CONST_DETAIL_REQ_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME SYSRES_CONST_DOCUMENT_STORAGES_CODE SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME SYSRES_CONST_DOUBLE_REQUISITE_CODE SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE SYSRES_CONST_EDITORS_REFERENCE_CODE SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE SYSRES_CONST_EDOC_DATE_REQUISITE_CODE SYSRES_CONST_EDOC_KIND_REFERENCE_CODE SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE SYSRES_CONST_EDOC_NONE_ENCODE_CODE SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE SYSRES_CONST_EDOC_READONLY_ACCESS_CODE SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE SYSRES_CONST_EDOC_WRITE_ACCES_CODE SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_END_DATE_REQUISITE_CODE SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE SYSRES_CONST_EXIST_CONST SYSRES_CONST_EXIST_VALUE SYSRES_CONST_EXPORT_LOCK_TYPE_ASK SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK SYSRES_CONST_EXPORT_VERSION_TYPE_ASK SYSRES_CONST_EXPORT_VERSION_TYPE_LAST SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE SYSRES_CONST_EXTENSION_REQUISITE_CODE SYSRES_CONST_FILTER_NAME_REQUISITE_CODE SYSRES_CONST_FILTER_REQUISITE_CODE SYSRES_CONST_FILTER_TYPE_COMMON_CODE SYSRES_CONST_FILTER_TYPE_COMMON_NAME SYSRES_CONST_FILTER_TYPE_USER_CODE SYSRES_CONST_FILTER_TYPE_USER_NAME SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR SYSRES_CONST_FLOAT_REQUISITE_TYPE SYSRES_CONST_FOLDER_AUTHOR_VALUE SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS SYSRES_CONST_FOLDER_KIND_COMPONENTS SYSRES_CONST_FOLDER_KIND_EDOCS SYSRES_CONST_FOLDER_KIND_JOBS SYSRES_CONST_FOLDER_KIND_TASKS SYSRES_CONST_FOLDER_TYPE_COMMON SYSRES_CONST_FOLDER_TYPE_COMPONENT SYSRES_CONST_FOLDER_TYPE_FAVORITES SYSRES_CONST_FOLDER_TYPE_INBOX SYSRES_CONST_FOLDER_TYPE_OUTBOX SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH SYSRES_CONST_FOLDER_TYPE_SEARCH SYSRES_CONST_FOLDER_TYPE_SHORTCUTS SYSRES_CONST_FOLDER_TYPE_USER SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG SYSRES_CONST_FULL_SUBSTITUTE_TYPE SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE SYSRES_CONST_FUNCTION_CANCEL_RESULT SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM SYSRES_CONST_FUNCTION_CATEGORY_USER SYSRES_CONST_FUNCTION_FAILURE_RESULT SYSRES_CONST_FUNCTION_SAVE_RESULT SYSRES_CONST_GENERATED_REQUISITE SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE SYSRES_CONST_GROUP_USER_REQUISITE_CODE SYSRES_CONST_GROUPS_REFERENCE_CODE SYSRES_CONST_GROUPS_REQUISITE_CODE SYSRES_CONST_HIDDEN_MODE_NAME SYSRES_CONST_HIGH_LVL_REQUISITE_CODE SYSRES_CONST_HISTORY_ACTION_CREATE_CODE SYSRES_CONST_HISTORY_ACTION_DELETE_CODE SYSRES_CONST_HISTORY_ACTION_EDIT_CODE SYSRES_CONST_HOUR_CHAR SYSRES_CONST_ID_REQUISITE_CODE SYSRES_CONST_IDSPS_REQUISITE_CODE SYSRES_CONST_IMAGE_MODE_COLOR SYSRES_CONST_IMAGE_MODE_GREYSCALE SYSRES_CONST_IMAGE_MODE_MONOCHROME SYSRES_CONST_IMPORTANCE_HIGH SYSRES_CONST_IMPORTANCE_LOW SYSRES_CONST_IMPORTANCE_NORMAL SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE SYSRES_CONST_INT_REQUISITE SYSRES_CONST_INT_REQUISITE_TYPE SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR SYSRES_CONST_INTEGER_TYPE_CHAR SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_JOB_BLOCK_DESCRIPTION SYSRES_CONST_JOB_KIND_CONTROL_JOB SYSRES_CONST_JOB_KIND_JOB SYSRES_CONST_JOB_KIND_NOTICE SYSRES_CONST_JOB_STATE_ABORTED SYSRES_CONST_JOB_STATE_COMPLETE SYSRES_CONST_JOB_STATE_WORKING SYSRES_CONST_KIND_REQUISITE_CODE SYSRES_CONST_KIND_REQUISITE_NAME SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE SYSRES_CONST_KOD_INPUT_TYPE SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT SYSRES_CONST_LINK_OBJECT_KIND_EDOC SYSRES_CONST_LINK_OBJECT_KIND_FOLDER SYSRES_CONST_LINK_OBJECT_KIND_JOB SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE SYSRES_CONST_LINK_OBJECT_KIND_TASK SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE SYSRES_CONST_LIST_REFERENCE_MODE_NAME SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE SYSRES_CONST_MAIN_VIEW_CODE SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE SYSRES_CONST_MAXIMIZED_MODE_NAME SYSRES_CONST_ME_VALUE SYSRES_CONST_MESSAGE_ATTENTION_CAPTION SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION SYSRES_CONST_MESSAGE_ERROR_CAPTION SYSRES_CONST_MESSAGE_INFORMATION_CAPTION SYSRES_CONST_MINIMIZED_MODE_NAME SYSRES_CONST_MINUTE_CHAR SYSRES_CONST_MODULE_REQUISITE_CODE SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION SYSRES_CONST_MONTH_FORMAT_VALUE SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE SYSRES_CONST_NAME_REQUISITE_CODE SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE SYSRES_CONST_NAMEAN_INPUT_TYPE SYSRES_CONST_NEGATIVE_PICK_VALUE SYSRES_CONST_NEGATIVE_VALUE SYSRES_CONST_NO SYSRES_CONST_NO_PICK_VALUE SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE SYSRES_CONST_NO_VALUE SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_NORMAL_MODE_NAME SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME SYSRES_CONST_NOTE_REQUISITE_CODE SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION SYSRES_CONST_NUM_REQUISITE SYSRES_CONST_NUM_STR_REQUISITE_CODE SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG SYSRES_CONST_NUMERATION_AUTO_STRONG SYSRES_CONST_NUMERATION_FROM_DICTONARY SYSRES_CONST_NUMERATION_MANUAL SYSRES_CONST_NUMERIC_TYPE_CHAR SYSRES_CONST_NUMREQ_REQUISITE_CODE SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_ORIGINALREF_REQUISITE_CODE SYSRES_CONST_OURFIRM_REF_CODE SYSRES_CONST_OURFIRM_REQUISITE_CODE SYSRES_CONST_OURFIRM_VAR SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE SYSRES_CONST_PICK_NEGATIVE_RESULT SYSRES_CONST_PICK_POSITIVE_RESULT SYSRES_CONST_PICK_REQUISITE SYSRES_CONST_PICK_REQUISITE_TYPE SYSRES_CONST_PICK_TYPE_CHAR SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE SYSRES_CONST_PLATFORM_VERSION_COMMENT SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_POSITIVE_PICK_VALUE SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE SYSRES_CONST_PRIORITY_REQUISITE_CODE SYSRES_CONST_QUALIFIED_TASK_TYPE SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE SYSRES_CONST_RECSTAT_REQUISITE_CODE SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_REF_REQUISITE SYSRES_CONST_REF_REQUISITE_TYPE SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE SYSRES_CONST_REFERENCE_TYPE_CHAR SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE SYSRES_CONST_REQ_MODE_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_EDIT_CODE SYSRES_CONST_REQ_MODE_HIDDEN_CODE SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE SYSRES_CONST_REQ_MODE_VIEW_CODE SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE SYSRES_CONST_REQ_SECTION_VALUE SYSRES_CONST_REQ_TYPE_VALUE SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME SYSRES_CONST_REQUISITE_FORMAT_LEFT SYSRES_CONST_REQUISITE_FORMAT_RIGHT SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_REQUISITE_SECTION_ACTIONS SYSRES_CONST_REQUISITE_SECTION_BUTTON SYSRES_CONST_REQUISITE_SECTION_BUTTONS SYSRES_CONST_REQUISITE_SECTION_CARD SYSRES_CONST_REQUISITE_SECTION_TABLE SYSRES_CONST_REQUISITE_SECTION_TABLE10 SYSRES_CONST_REQUISITE_SECTION_TABLE11 SYSRES_CONST_REQUISITE_SECTION_TABLE12 SYSRES_CONST_REQUISITE_SECTION_TABLE13 SYSRES_CONST_REQUISITE_SECTION_TABLE14 SYSRES_CONST_REQUISITE_SECTION_TABLE15 SYSRES_CONST_REQUISITE_SECTION_TABLE16 SYSRES_CONST_REQUISITE_SECTION_TABLE17 SYSRES_CONST_REQUISITE_SECTION_TABLE18 SYSRES_CONST_REQUISITE_SECTION_TABLE19 SYSRES_CONST_REQUISITE_SECTION_TABLE2 SYSRES_CONST_REQUISITE_SECTION_TABLE20 SYSRES_CONST_REQUISITE_SECTION_TABLE21 SYSRES_CONST_REQUISITE_SECTION_TABLE22 SYSRES_CONST_REQUISITE_SECTION_TABLE23 SYSRES_CONST_REQUISITE_SECTION_TABLE24 SYSRES_CONST_REQUISITE_SECTION_TABLE3 SYSRES_CONST_REQUISITE_SECTION_TABLE4 SYSRES_CONST_REQUISITE_SECTION_TABLE5 SYSRES_CONST_REQUISITE_SECTION_TABLE6 SYSRES_CONST_REQUISITE_SECTION_TABLE7 SYSRES_CONST_REQUISITE_SECTION_TABLE8 SYSRES_CONST_REQUISITE_SECTION_TABLE9 SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE SYSRES_CONST_RIGHT_ALIGNMENT_CODE SYSRES_CONST_ROLES_REFERENCE_CODE SYSRES_CONST_ROUTE_STEP_AFTER_RUS SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS SYSRES_CONST_ROUTE_TYPE_COMPLEX SYSRES_CONST_ROUTE_TYPE_PARALLEL SYSRES_CONST_ROUTE_TYPE_SERIAL SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE SYSRES_CONST_SEARCHES_COMPONENT_CONTENT SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME SYSRES_CONST_SEARCHES_EDOC_CONTENT SYSRES_CONST_SEARCHES_FOLDER_CONTENT SYSRES_CONST_SEARCHES_JOB_CONTENT SYSRES_CONST_SEARCHES_REFERENCE_CODE SYSRES_CONST_SEARCHES_TASK_CONTENT SYSRES_CONST_SECOND_CHAR SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE SYSRES_CONST_SECTION_REQUISITE_CODE SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE SYSRES_CONST_SELECT_REFERENCE_MODE_NAME SYSRES_CONST_SELECT_TYPE_SELECTABLE SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD SYSRES_CONST_SELECT_TYPE_UNSLECTABLE SYSRES_CONST_SERVER_TYPE_MAIN SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE SYSRES_CONST_STATE_REQ_NAME SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE SYSRES_CONST_STATE_REQUISITE_CODE SYSRES_CONST_STATIC_ROLE_TYPE_CODE SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE SYSRES_CONST_STATUS_VALUE_AUTOCLEANING SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE SYSRES_CONST_STATUS_VALUE_COMPLETE SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE SYSRES_CONST_STATUS_VALUE_RED_SQUARE SYSRES_CONST_STATUS_VALUE_SUSPEND SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE SYSRES_CONST_STORAGE_TYPE_FILE SYSRES_CONST_STORAGE_TYPE_SQL_SERVER SYSRES_CONST_STR_REQUISITE SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR SYSRES_CONST_STRING_REQUISITE_CODE SYSRES_CONST_STRING_REQUISITE_TYPE SYSRES_CONST_STRING_TYPE_CHAR SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE SYSRES_CONST_SYSTEM_VERSION_COMMENT SYSRES_CONST_TASK_ACCESS_TYPE_ALL SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD SYSRES_CONST_TASK_ENCODE_TYPE_NONE SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD SYSRES_CONST_TASK_ROUTE_ALL_CONDITION SYSRES_CONST_TASK_ROUTE_AND_CONDITION SYSRES_CONST_TASK_ROUTE_OR_CONDITION SYSRES_CONST_TASK_STATE_ABORTED SYSRES_CONST_TASK_STATE_COMPLETE SYSRES_CONST_TASK_STATE_CONTINUED SYSRES_CONST_TASK_STATE_CONTROL SYSRES_CONST_TASK_STATE_INIT SYSRES_CONST_TASK_STATE_WORKING SYSRES_CONST_TASK_TITLE SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE SYSRES_CONST_TASK_TYPES_REFERENCE_CODE SYSRES_CONST_TEMPLATES_REFERENCE_CODE SYSRES_CONST_TEST_DATE_REQUISITE_NAME SYSRES_CONST_TEST_DEV_DATABASE_NAME SYSRES_CONST_TEST_DEV_SYSTEM_CODE SYSRES_CONST_TEST_EDMS_DATABASE_NAME SYSRES_CONST_TEST_EDMS_MAIN_CODE SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME SYSRES_CONST_TEST_EDMS_SECOND_CODE SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME SYSRES_CONST_TEST_EDMS_SYSTEM_CODE SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME SYSRES_CONST_TEXT_REQUISITE SYSRES_CONST_TEXT_REQUISITE_CODE SYSRES_CONST_TEXT_REQUISITE_TYPE SYSRES_CONST_TEXT_TYPE_CHAR SYSRES_CONST_TYPE_CODE_REQUISITE_CODE SYSRES_CONST_TYPE_REQUISITE_CODE SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME SYSRES_CONST_USE_ACCESS_TYPE_CODE SYSRES_CONST_USE_ACCESS_TYPE_NAME SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE SYSRES_CONST_USER_CATEGORY_NORMAL SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE SYSRES_CONST_USER_COMMON_CATEGORY SYSRES_CONST_USER_COMMON_CATEGORY_CODE SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE SYSRES_CONST_USER_LOGIN_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE SYSRES_CONST_USER_SERVICE_CATEGORY SYSRES_CONST_USER_SERVICE_CATEGORY_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME SYSRES_CONST_USER_STATUS_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_DEVELOPER_NAME SYSRES_CONST_USER_STATUS_DISABLED_CODE SYSRES_CONST_USER_STATUS_DISABLED_NAME SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE SYSRES_CONST_USER_STATUS_USER_CODE SYSRES_CONST_USER_STATUS_USER_NAME SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER SYSRES_CONST_USER_TYPE_REQUISITE_CODE SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE SYSRES_CONST_USERS_REFERENCE_CODE SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME SYSRES_CONST_USERS_REQUISITE_CODE SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME SYSRES_CONST_VIEW_DEFAULT_CODE SYSRES_CONST_VIEW_DEFAULT_NAME SYSRES_CONST_VIEWER_REQUISITE_CODE SYSRES_CONST_WAITING_BLOCK_DESCRIPTION SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT SYSRES_CONST_XML_ENCODING SYSRES_CONST_XREC_STAT_REQUISITE_CODE SYSRES_CONST_XRECID_FIELD_NAME SYSRES_CONST_YES SYSRES_CONST_YES_NO_2_REQUISITE_CODE SYSRES_CONST_YES_NO_REQUISITE_CODE SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE SYSRES_CONST_YES_PICK_VALUE SYSRES_CONST_YES_VALUE CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION JOB_BLOCK_ABORT_DEADLINE_PROPERTY JOB_BLOCK_AFTER_FINISH_EVENT JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT JOB_BLOCK_ATTACHMENT_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT JOB_BLOCK_BEFORE_START_EVENT JOB_BLOCK_CREATED_JOBS_PROPERTY JOB_BLOCK_DEADLINE_PROPERTY JOB_BLOCK_EXECUTION_RESULTS_PROPERTY JOB_BLOCK_IS_PARALLEL_PROPERTY JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY JOB_BLOCK_JOB_TEXT_PROPERTY JOB_BLOCK_NAME_PROPERTY JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY JOB_BLOCK_PERFORMER_PROPERTY JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY JOB_BLOCK_SUBJECT_PROPERTY ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE smHidden smMaximized smMinimized smNormal wmNo wmYes COMPONENT_TOKEN_LINK_KIND DOCUMENT_LINK_KIND EDOCUMENT_LINK_KIND FOLDER_LINK_KIND JOB_LINK_KIND REFERENCE_LINK_KIND TASK_LINK_KIND COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE MONITOR_BLOCK_AFTER_FINISH_EVENT MONITOR_BLOCK_BEFORE_START_EVENT MONITOR_BLOCK_DEADLINE_PROPERTY MONITOR_BLOCK_INTERVAL_PROPERTY MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY MONITOR_BLOCK_NAME_PROPERTY MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY NOTICE_BLOCK_AFTER_FINISH_EVENT NOTICE_BLOCK_ATTACHMENT_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY NOTICE_BLOCK_BEFORE_START_EVENT NOTICE_BLOCK_CREATED_NOTICES_PROPERTY NOTICE_BLOCK_DEADLINE_PROPERTY NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY NOTICE_BLOCK_NAME_PROPERTY NOTICE_BLOCK_NOTICE_TEXT_PROPERTY NOTICE_BLOCK_PERFORMER_PROPERTY NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY NOTICE_BLOCK_SUBJECT_PROPERTY dseAfterCancel dseAfterClose dseAfterDelete dseAfterDeleteOutOfTransaction dseAfterInsert dseAfterOpen dseAfterScroll dseAfterUpdate dseAfterUpdateOutOfTransaction dseBeforeCancel dseBeforeClose dseBeforeDelete dseBeforeDetailUpdate dseBeforeInsert dseBeforeOpen dseBeforeUpdate dseOnAnyRequisiteChange dseOnCloseRecord dseOnDeleteError dseOnOpenRecord dseOnPrepareUpdate dseOnUpdateError dseOnUpdateRatifiedRecord dseOnValidDelete dseOnValidUpdate reOnChange reOnChangeValues SELECTION_BEGIN_ROUTE_EVENT SELECTION_END_ROUTE_EVENT CURRENT_PERIOD_IS_REQUIRED PREVIOUS_CARD_TYPE_NAME SHOW_RECORD_PROPERTIES_FORM ACCESS_RIGHTS_SETTING_DIALOG_CODE ADMINISTRATOR_USER_CODE ANALYTIC_REPORT_TYPE asrtHideLocal asrtHideRemote CALCULATED_ROLE_TYPE_CODE COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE DCTS_TEST_PROTOCOLS_FOLDER_PATH E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER E_EDOC_VERSION_ALREDY_SIGNED E_EDOC_VERSION_ALREDY_SIGNED_BY_USER EDOC_TYPES_CODE_REQUISITE_FIELD_NAME EDOCUMENTS_ALIAS_NAME FILES_FOLDER_PATH FILTER_OPERANDS_DELIMITER FILTER_OPERATIONS_DELIMITER FORMCARD_NAME FORMLIST_NAME GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE INTEGRATED_REPORT_TYPE IS_BUILDER_APPLICATION_ROLE IS_BUILDER_APPLICATION_ROLE2 IS_BUILDER_USERS ISBSYSDEV LOG_FOLDER_PATH mbCancel mbNo mbNoToAll mbOK mbYes mbYesToAll MEMORY_DATASET_DESRIPTIONS_FILENAME mrNo mrNoToAll mrYes mrYesToAll MULTIPLE_SELECT_DIALOG_CODE NONOPERATING_RECORD_FLAG_FEMININE NONOPERATING_RECORD_FLAG_MASCULINE OPERATING_RECORD_FLAG_FEMININE OPERATING_RECORD_FLAG_MASCULINE PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE PROGRAM_INITIATED_LOOKUP_ACTION ratDelete ratEdit ratInsert REPORT_TYPE REQUIRED_PICK_VALUES_VARIABLE rmCard rmList SBRTE_PROGID_DEV SBRTE_PROGID_RELEASE STATIC_ROLE_TYPE_CODE SUPPRESS_EMPTY_TEMPLATE_CREATION SYSTEM_USER_CODE UPDATE_DIALOG_DATASET USED_IN_OBJECT_HINT_PARAM USER_INITIATED_LOOKUP_ACTION USER_NAME_FORMAT USER_SELECTION_RESTRICTIONS WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ELS_SUBTYPE_CONTROL_NAME ELS_FOLDER_KIND_CONTROL_NAME REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME PRIVILEGE_COMPONENT_FULL_ACCESS PRIVILEGE_DEVELOPMENT_EXPORT PRIVILEGE_DEVELOPMENT_IMPORT PRIVILEGE_DOCUMENT_DELETE PRIVILEGE_ESD PRIVILEGE_FOLDER_DELETE PRIVILEGE_MANAGE_ACCESS_RIGHTS PRIVILEGE_MANAGE_REPLICATION PRIVILEGE_MANAGE_SESSION_SERVER PRIVILEGE_OBJECT_FULL_ACCESS PRIVILEGE_OBJECT_VIEW PRIVILEGE_RESERVE_LICENSE PRIVILEGE_SYSTEM_CUSTOMIZE PRIVILEGE_SYSTEM_DEVELOP PRIVILEGE_SYSTEM_INSTALL PRIVILEGE_TASK_DELETE PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE PRIVILEGES_PSEUDOREFERENCE_CODE ACCESS_TYPES_PSEUDOREFERENCE_CODE ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE COMPONENTS_PSEUDOREFERENCE_CODE FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE GROUPS_PSEUDOREFERENCE_CODE RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE REFTYPES_PSEUDOREFERENCE_CODE REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE SEND_PROTOCOL_PSEUDOREFERENCE_CODE SUBSTITUTES_PSEUDOREFERENCE_CODE SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE UNITS_PSEUDOREFERENCE_CODE USERS_PSEUDOREFERENCE_CODE VIEWERS_PSEUDOREFERENCE_CODE CERTIFICATE_TYPE_ENCRYPT CERTIFICATE_TYPE_SIGN CERTIFICATE_TYPE_SIGN_AND_ENCRYPT STORAGE_TYPE_FILE STORAGE_TYPE_NAS_CIFS STORAGE_TYPE_SAPERION STORAGE_TYPE_SQL_SERVER COMPTYPE2_REQUISITE_DOCUMENTS_VALUE COMPTYPE2_REQUISITE_TASKS_VALUE COMPTYPE2_REQUISITE_FOLDERS_VALUE COMPTYPE2_REQUISITE_REFERENCES_VALUE SYSREQ_CODE SYSREQ_COMPTYPE2 SYSREQ_CONST_AVAILABLE_FOR_WEB SYSREQ_CONST_COMMON_CODE SYSREQ_CONST_COMMON_VALUE SYSREQ_CONST_FIRM_CODE SYSREQ_CONST_FIRM_STATUS SYSREQ_CONST_FIRM_VALUE SYSREQ_CONST_SERVER_STATUS SYSREQ_CONTENTS SYSREQ_DATE_OPEN SYSREQ_DATE_CLOSE SYSREQ_DESCRIPTION SYSREQ_DESCRIPTION_LOCALIZE_ID SYSREQ_DOUBLE SYSREQ_EDOC_ACCESS_TYPE SYSREQ_EDOC_AUTHOR SYSREQ_EDOC_CREATED SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE SYSREQ_EDOC_EDITOR SYSREQ_EDOC_ENCODE_TYPE SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_EXPORT_DATE SYSREQ_EDOC_EXPORTER SYSREQ_EDOC_KIND SYSREQ_EDOC_LIFE_STAGE_NAME SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE SYSREQ_EDOC_MODIFIED SYSREQ_EDOC_NAME SYSREQ_EDOC_NOTE SYSREQ_EDOC_QUALIFIED_ID SYSREQ_EDOC_SESSION_KEY SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION SYSREQ_EDOC_SIGNATURE_TYPE SYSREQ_EDOC_SIGNED SYSREQ_EDOC_STORAGE SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE SYSREQ_EDOC_STORAGES_CHECK_RIGHTS SYSREQ_EDOC_STORAGES_COMPUTER_NAME SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE SYSREQ_EDOC_STORAGES_FUNCTION SYSREQ_EDOC_STORAGES_INITIALIZED SYSREQ_EDOC_STORAGES_LOCAL_PATH SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT SYSREQ_EDOC_STORAGES_SERVER_NAME SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME SYSREQ_EDOC_STORAGES_TYPE SYSREQ_EDOC_TEXT_MODIFIED SYSREQ_EDOC_TYPE_ACT_CODE SYSREQ_EDOC_TYPE_ACT_DESCRIPTION SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_EDOC_TYPE_ACT_SECTION SYSREQ_EDOC_TYPE_ADD_PARAMS SYSREQ_EDOC_TYPE_COMMENT SYSREQ_EDOC_TYPE_EVENT_TEXT SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID SYSREQ_EDOC_TYPE_NUMERATION_METHOD SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE SYSREQ_EDOC_TYPE_REQ_CODE SYSREQ_EDOC_TYPE_REQ_DESCRIPTION SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_EDOC_TYPE_REQ_IS_LEADING SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED SYSREQ_EDOC_TYPE_REQ_NUMBER SYSREQ_EDOC_TYPE_REQ_ON_CHANGE SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_EDOC_TYPE_REQ_ON_SELECT SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND SYSREQ_EDOC_TYPE_REQ_SECTION SYSREQ_EDOC_TYPE_VIEW_CARD SYSREQ_EDOC_TYPE_VIEW_CODE SYSREQ_EDOC_TYPE_VIEW_COMMENT SYSREQ_EDOC_TYPE_VIEW_IS_MAIN SYSREQ_EDOC_TYPE_VIEW_NAME SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_EDOC_VERSION_AUTHOR SYSREQ_EDOC_VERSION_CRC SYSREQ_EDOC_VERSION_DATA SYSREQ_EDOC_VERSION_EDITOR SYSREQ_EDOC_VERSION_EXPORT_DATE SYSREQ_EDOC_VERSION_EXPORTER SYSREQ_EDOC_VERSION_HIDDEN SYSREQ_EDOC_VERSION_LIFE_STAGE SYSREQ_EDOC_VERSION_MODIFIED SYSREQ_EDOC_VERSION_NOTE SYSREQ_EDOC_VERSION_SIGNATURE_TYPE SYSREQ_EDOC_VERSION_SIGNED SYSREQ_EDOC_VERSION_SIZE SYSREQ_EDOC_VERSION_SOURCE SYSREQ_EDOC_VERSION_TEXT_MODIFIED SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE SYSREQ_FOLDER_KIND SYSREQ_FUNC_CATEGORY SYSREQ_FUNC_COMMENT SYSREQ_FUNC_GROUP SYSREQ_FUNC_GROUP_COMMENT SYSREQ_FUNC_GROUP_NUMBER SYSREQ_FUNC_HELP SYSREQ_FUNC_PARAM_DEF_VALUE SYSREQ_FUNC_PARAM_IDENT SYSREQ_FUNC_PARAM_NUMBER SYSREQ_FUNC_PARAM_TYPE SYSREQ_FUNC_TEXT SYSREQ_GROUP_CATEGORY SYSREQ_ID SYSREQ_LAST_UPDATE SYSREQ_LEADER_REFERENCE SYSREQ_LINE_NUMBER SYSREQ_MAIN_RECORD_ID SYSREQ_NAME SYSREQ_NAME_LOCALIZE_ID SYSREQ_NOTE SYSREQ_ORIGINAL_RECORD SYSREQ_OUR_FIRM SYSREQ_PROFILING_SETTINGS_BATCH_LOGING SYSREQ_PROFILING_SETTINGS_BATCH_SIZE SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED SYSREQ_PROFILING_SETTINGS_START_LOGGED SYSREQ_RECORD_STATUS SYSREQ_REF_REQ_FIELD_NAME SYSREQ_REF_REQ_FORMAT SYSREQ_REF_REQ_GENERATED SYSREQ_REF_REQ_LENGTH SYSREQ_REF_REQ_PRECISION SYSREQ_REF_REQ_REFERENCE SYSREQ_REF_REQ_SECTION SYSREQ_REF_REQ_STORED SYSREQ_REF_REQ_TOKENS SYSREQ_REF_REQ_TYPE SYSREQ_REF_REQ_VIEW SYSREQ_REF_TYPE_ACT_CODE SYSREQ_REF_TYPE_ACT_DESCRIPTION SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_ACT_ON_EXECUTE SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS SYSREQ_REF_TYPE_ACT_SECTION SYSREQ_REF_TYPE_ADD_PARAMS SYSREQ_REF_TYPE_COMMENT SYSREQ_REF_TYPE_COMMON_SETTINGS SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME SYSREQ_REF_TYPE_EVENT_TEXT SYSREQ_REF_TYPE_MAIN_LEADING_REF SYSREQ_REF_TYPE_NAME_IN_SINGULAR SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID SYSREQ_REF_TYPE_NAME_LOCALIZE_ID SYSREQ_REF_TYPE_NUMERATION_METHOD SYSREQ_REF_TYPE_REQ_CODE SYSREQ_REF_TYPE_REQ_DESCRIPTION SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID SYSREQ_REF_TYPE_REQ_IS_CONTROL SYSREQ_REF_TYPE_REQ_IS_FILTER SYSREQ_REF_TYPE_REQ_IS_LEADING SYSREQ_REF_TYPE_REQ_IS_REQUIRED SYSREQ_REF_TYPE_REQ_NUMBER SYSREQ_REF_TYPE_REQ_ON_CHANGE SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS SYSREQ_REF_TYPE_REQ_ON_SELECT SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND SYSREQ_REF_TYPE_REQ_SECTION SYSREQ_REF_TYPE_VIEW_CARD SYSREQ_REF_TYPE_VIEW_CODE SYSREQ_REF_TYPE_VIEW_COMMENT SYSREQ_REF_TYPE_VIEW_IS_MAIN SYSREQ_REF_TYPE_VIEW_NAME SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID SYSREQ_REFERENCE_TYPE_ID SYSREQ_STATE SYSREQ_STATЕ SYSREQ_SYSTEM_SETTINGS_VALUE SYSREQ_TYPE SYSREQ_UNIT SYSREQ_UNIT_ID SYSREQ_USER_GROUPS_GROUP_FULL_NAME SYSREQ_USER_GROUPS_GROUP_NAME SYSREQ_USER_GROUPS_GROUP_SERVER_NAME SYSREQ_USERS_ACCESS_RIGHTS SYSREQ_USERS_AUTHENTICATION SYSREQ_USERS_CATEGORY SYSREQ_USERS_COMPONENT SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC SYSREQ_USERS_DOMAIN SYSREQ_USERS_FULL_USER_NAME SYSREQ_USERS_GROUP SYSREQ_USERS_IS_MAIN_SERVER SYSREQ_USERS_LOGIN SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC SYSREQ_USERS_STATUS SYSREQ_USERS_USER_CERTIFICATE SYSREQ_USERS_USER_CERTIFICATE_INFO SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION SYSREQ_USERS_USER_CERTIFICATE_STATE SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT SYSREQ_USERS_USER_DEFAULT_CERTIFICATE SYSREQ_USERS_USER_DESCRIPTION SYSREQ_USERS_USER_GLOBAL_NAME SYSREQ_USERS_USER_LOGIN SYSREQ_USERS_USER_MAIN_SERVER SYSREQ_USERS_USER_TYPE SYSREQ_WORK_RULES_FOLDER_ID RESULT_VAR_NAME RESULT_VAR_NAME_ENG AUTO_NUMERATION_RULE_ID CANT_CHANGE_ID_REQUISITE_RULE_ID CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID CHECK_CODE_REQUISITE_RULE_ID CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID CHECK_FILTRATER_CHANGES_RULE_ID CHECK_RECORD_INTERVAL_RULE_ID CHECK_REFERENCE_INTERVAL_RULE_ID CHECK_REQUIRED_DATA_FULLNESS_RULE_ID CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID MAKE_RECORD_UNRATIFIED_RULE_ID RESTORE_AUTO_NUMERATION_RULE_ID SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID SET_IDSPS_VALUE_RULE_ID SET_NEXT_CODE_VALUE_RULE_ID SET_OURFIRM_BOUNDS_RULE_ID SET_OURFIRM_REQUISITE_RULE_ID SCRIPT_BLOCK_AFTER_FINISH_EVENT SCRIPT_BLOCK_BEFORE_START_EVENT SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY SCRIPT_BLOCK_NAME_PROPERTY SCRIPT_BLOCK_SCRIPT_PROPERTY SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_AFTER_FINISH_EVENT SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT SUBTASK_BLOCK_ATTACHMENTS_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY SUBTASK_BLOCK_BEFORE_START_EVENT SUBTASK_BLOCK_CREATED_TASK_PROPERTY SUBTASK_BLOCK_CREATION_EVENT SUBTASK_BLOCK_DEADLINE_PROPERTY SUBTASK_BLOCK_IMPORTANCE_PROPERTY SUBTASK_BLOCK_INITIATOR_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY SUBTASK_BLOCK_JOBS_TYPE_PROPERTY SUBTASK_BLOCK_NAME_PROPERTY SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY SUBTASK_BLOCK_PERFORMERS_PROPERTY SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_START_EVENT SUBTASK_BLOCK_STEP_CONTROL_PROPERTY SUBTASK_BLOCK_SUBJECT_PROPERTY SUBTASK_BLOCK_TASK_CONTROL_PROPERTY SUBTASK_BLOCK_TEXT_PROPERTY SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY SYSCOMP_CONTROL_JOBS SYSCOMP_FOLDERS SYSCOMP_JOBS SYSCOMP_NOTICES SYSCOMP_TASKS SYSDLG_CREATE_EDOCUMENT SYSDLG_CREATE_EDOCUMENT_VERSION SYSDLG_CURRENT_PERIOD SYSDLG_EDIT_FUNCTION_HELP SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS SYSDLG_EXPORT_SINGLE_EDOCUMENT SYSDLG_IMPORT_EDOCUMENT SYSDLG_MULTIPLE_SELECT SYSDLG_SETUP_ACCESS_RIGHTS SYSDLG_SETUP_DEFAULT_RIGHTS SYSDLG_SETUP_FILTER_CONDITION SYSDLG_SETUP_SIGN_RIGHTS SYSDLG_SETUP_TASK_OBSERVERS SYSDLG_SETUP_TASK_ROUTE SYSDLG_SETUP_USERS_LIST SYSDLG_SIGN_EDOCUMENT SYSDLG_SIGN_MULTIPLE_EDOCUMENTS SYSREF_ACCESS_RIGHTS_TYPES SYSREF_ADMINISTRATION_HISTORY SYSREF_ALL_AVAILABLE_COMPONENTS SYSREF_ALL_AVAILABLE_PRIVILEGES SYSREF_ALL_REPLICATING_COMPONENTS SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS SYSREF_CALENDAR_EVENTS SYSREF_COMPONENT_TOKEN_HISTORY SYSREF_COMPONENT_TOKENS SYSREF_COMPONENTS SYSREF_CONSTANTS SYSREF_DATA_RECEIVE_PROTOCOL SYSREF_DATA_SEND_PROTOCOL SYSREF_DIALOGS SYSREF_DIALOGS_REQUISITES SYSREF_EDITORS SYSREF_EDOC_CARDS SYSREF_EDOC_TYPES SYSREF_EDOCUMENT_CARD_REQUISITES SYSREF_EDOCUMENT_CARD_TYPES SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE SYSREF_EDOCUMENT_CARDS SYSREF_EDOCUMENT_HISTORY SYSREF_EDOCUMENT_KINDS SYSREF_EDOCUMENT_REQUISITES SYSREF_EDOCUMENT_SIGNATURES SYSREF_EDOCUMENT_TEMPLATES SYSREF_EDOCUMENT_TEXT_STORAGES SYSREF_EDOCUMENT_VIEWS SYSREF_FILTERER_SETUP_CONFLICTS SYSREF_FILTRATER_SETTING_CONFLICTS SYSREF_FOLDER_HISTORY SYSREF_FOLDERS SYSREF_FUNCTION_GROUPS SYSREF_FUNCTION_PARAMS SYSREF_FUNCTIONS SYSREF_JOB_HISTORY SYSREF_LINKS SYSREF_LOCALIZATION_DICTIONARY SYSREF_LOCALIZATION_LANGUAGES SYSREF_MODULES SYSREF_PRIVILEGES SYSREF_RECORD_HISTORY SYSREF_REFERENCE_REQUISITES SYSREF_REFERENCE_TYPE_VIEWS SYSREF_REFERENCE_TYPES SYSREF_REFERENCES SYSREF_REFERENCES_REQUISITES SYSREF_REMOTE_SERVERS SYSREF_REPLICATION_SESSIONS_LOG SYSREF_REPLICATION_SESSIONS_PROTOCOL SYSREF_REPORTS SYSREF_ROLES SYSREF_ROUTE_BLOCK_GROUPS SYSREF_ROUTE_BLOCKS SYSREF_SCRIPTS SYSREF_SEARCHES SYSREF_SERVER_EVENTS SYSREF_SERVER_EVENTS_HISTORY SYSREF_STANDARD_ROUTE_GROUPS SYSREF_STANDARD_ROUTES SYSREF_STATUSES SYSREF_SYSTEM_SETTINGS SYSREF_TASK_HISTORY SYSREF_TASK_KIND_GROUPS SYSREF_TASK_KINDS SYSREF_TASK_RIGHTS SYSREF_TASK_SIGNATURES SYSREF_TASKS SYSREF_UNITS SYSREF_USER_GROUPS SYSREF_USER_GROUPS_REFERENCE SYSREF_USER_SUBSTITUTION SYSREF_USERS SYSREF_USERS_REFERENCE SYSREF_VIEWERS SYSREF_WORKING_TIME_CALENDARS ACCESS_RIGHTS_TABLE_NAME EDMS_ACCESS_TABLE_NAME EDOC_TYPES_TABLE_NAME TEST_DEV_DB_NAME TEST_DEV_SYSTEM_CODE TEST_EDMS_DB_NAME TEST_EDMS_MAIN_CODE TEST_EDMS_MAIN_DB_NAME TEST_EDMS_SECOND_CODE TEST_EDMS_SECOND_DB_NAME TEST_EDMS_SYSTEM_CODE TEST_ISB5_MAIN_CODE TEST_ISB5_SECOND_CODE TEST_SQL_SERVER_2005_NAME TEST_SQL_SERVER_NAME ATTENTION_CAPTION cbsCommandLinks cbsDefault CONFIRMATION_CAPTION ERROR_CAPTION INFORMATION_CAPTION mrCancel mrOk EDOC_VERSION_ACTIVE_STAGE_CODE EDOC_VERSION_DESIGN_STAGE_CODE EDOC_VERSION_OBSOLETE_STAGE_CODE cpDataEnciphermentEnabled cpDigitalSignatureEnabled cpID cpIssuer cpPluginVersion cpSerial cpSubjectName cpSubjSimpleName cpValidFromDate cpValidToDate ISBL_SYNTAX NO_SYNTAX XML_SYNTAX WAIT_BLOCK_AFTER_FINISH_EVENT WAIT_BLOCK_BEFORE_START_EVENT WAIT_BLOCK_DEADLINE_PROPERTY WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY WAIT_BLOCK_NAME_PROPERTY WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY SYSRES_COMMON SYSRES_CONST SYSRES_MBFUNC SYSRES_SBDATA SYSRES_SBGUI SYSRES_SBINTF SYSRES_SBREFDSC SYSRES_SQLERRORS SYSRES_SYSCOMP atUser atGroup atRole aemEnabledAlways aemDisabledAlways aemEnabledOnBrowse aemEnabledOnEdit aemDisabledOnBrowseEmpty apBegin apEnd alLeft alRight asmNever asmNoButCustomize asmAsLastTime asmYesButCustomize asmAlways cirCommon cirRevoked ctSignature ctEncode ctSignatureEncode clbUnchecked clbChecked clbGrayed ceISB ceAlways ceNever ctDocument ctReference ctScript ctUnknown ctReport ctDialog ctFunction ctFolder ctEDocument ctTask ctJob ctNotice ctControlJob cfInternal cfDisplay ciUnspecified ciWrite ciRead ckFolder ckEDocument ckTask ckJob ckComponentToken ckAny ckReference ckScript ckReport ckDialog ctISBLEditor ctBevel ctButton ctCheckListBox ctComboBox ctComboEdit ctGrid ctDBCheckBox ctDBComboBox ctDBEdit ctDBEllipsis ctDBMemo ctDBNavigator ctDBRadioGroup ctDBStatusLabel ctEdit ctGroupBox ctInplaceHint ctMemo ctPanel ctListBox ctRadioButton ctRichEdit ctTabSheet ctWebBrowser ctImage ctHyperLink ctLabel ctDBMultiEllipsis ctRibbon ctRichView ctInnerPanel ctPanelGroup ctBitButton cctDate cctInteger cctNumeric cctPick cctReference cctString cctText cltInternal cltPrimary cltGUI dseBeforeOpen dseAfterOpen dseBeforeClose dseAfterClose dseOnValidDelete dseBeforeDelete dseAfterDelete dseAfterDeleteOutOfTransaction dseOnDeleteError dseBeforeInsert dseAfterInsert dseOnValidUpdate dseBeforeUpdate dseOnUpdateRatifiedRecord dseAfterUpdate dseAfterUpdateOutOfTransaction dseOnUpdateError dseAfterScroll dseOnOpenRecord dseOnCloseRecord dseBeforeCancel dseAfterCancel dseOnUpdateDeadlockError dseBeforeDetailUpdate dseOnPrepareUpdate dseOnAnyRequisiteChange dssEdit dssInsert dssBrowse dssInActive dftDate dftShortDate dftDateTime dftTimeStamp dotDays dotHours dotMinutes dotSeconds dtkndLocal dtkndUTC arNone arView arEdit arFull ddaView ddaEdit emLock emEdit emSign emExportWithLock emImportWithUnlock emChangeVersionNote emOpenForModify emChangeLifeStage emDelete emCreateVersion emImport emUnlockExportedWithLock emStart emAbort emReInit emMarkAsReaded emMarkAsUnreaded emPerform emAccept emResume emChangeRights emEditRoute emEditObserver emRecoveryFromLocalCopy emChangeWorkAccessType emChangeEncodeTypeToCertificate emChangeEncodeTypeToPassword emChangeEncodeTypeToNone emChangeEncodeTypeToCertificatePassword emChangeStandardRoute emGetText emOpenForView emMoveToStorage emCreateObject emChangeVersionHidden emDeleteVersion emChangeLifeCycleStage emApprovingSign emExport emContinue emLockFromEdit emUnLockForEdit emLockForServer emUnlockFromServer emDelegateAccessRights emReEncode ecotFile ecotProcess eaGet eaCopy eaCreate eaCreateStandardRoute edltAll edltNothing edltQuery essmText essmCard esvtLast esvtLastActive esvtSpecified edsfExecutive edsfArchive edstSQLServer edstFile edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile vsDefault vsDesign vsActive vsObsolete etNone etCertificate etPassword etCertificatePassword ecException ecWarning ecInformation estAll estApprovingOnly evtLast evtLastActive evtQuery fdtString fdtNumeric fdtInteger fdtDate fdtText fdtUnknown fdtWideString fdtLargeInteger ftInbox ftOutbox ftFavorites ftCommonFolder ftUserFolder ftComponents ftQuickLaunch ftShortcuts ftSearch grhAuto grhX1 grhX2 grhX3 hltText hltRTF hltHTML iffBMP iffJPEG iffMultiPageTIFF iffSinglePageTIFF iffTIFF iffPNG im8bGrayscale im24bRGB im1bMonochrome itBMP itJPEG itWMF itPNG ikhInformation ikhWarning ikhError ikhNoIcon icUnknown icScript icFunction icIntegratedReport icAnalyticReport icDataSetEventHandler icActionHandler icFormEventHandler icLookUpEventHandler icRequisiteChangeEventHandler icBeforeSearchEventHandler icRoleCalculation icSelectRouteEventHandler icBlockPropertyCalculation icBlockQueryParamsEventHandler icChangeSearchResultEventHandler icBlockEventHandler icSubTaskInitEventHandler icEDocDataSetEventHandler icEDocLookUpEventHandler icEDocActionHandler icEDocFormEventHandler icEDocRequisiteChangeEventHandler icStructuredConversionRule icStructuredConversionEventBefore icStructuredConversionEventAfter icWizardEventHandler icWizardFinishEventHandler icWizardStepEventHandler icWizardStepFinishEventHandler icWizardActionEnableEventHandler icWizardActionExecuteEventHandler icCreateJobsHandler icCreateNoticesHandler icBeforeLookUpEventHandler icAfterLookUpEventHandler icTaskAbortEventHandler icWorkflowBlockActionHandler icDialogDataSetEventHandler icDialogActionHandler icDialogLookUpEventHandler icDialogRequisiteChangeEventHandler icDialogFormEventHandler icDialogValidCloseEventHandler icBlockFormEventHandler icTaskFormEventHandler icReferenceMethod icEDocMethod icDialogMethod icProcessMessageHandler isShow isHide isByUserSettings jkJob jkNotice jkControlJob jtInner jtLeft jtRight jtFull jtCross lbpAbove lbpBelow lbpLeft lbpRight eltPerConnection eltPerUser sfcUndefined sfcBlack sfcGreen sfcRed sfcBlue sfcOrange sfcLilac sfsItalic sfsStrikeout sfsNormal ldctStandardRoute ldctWizard ldctScript ldctFunction ldctRouteBlock ldctIntegratedReport ldctAnalyticReport ldctReferenceType ldctEDocumentType ldctDialog ldctServerEvents mrcrtNone mrcrtUser mrcrtMaximal mrcrtCustom vtEqual vtGreaterOrEqual vtLessOrEqual vtRange rdYesterday rdToday rdTomorrow rdThisWeek rdThisMonth rdThisYear rdNextMonth rdNextWeek rdLastWeek rdLastMonth rdWindow rdFile rdPrinter rdtString rdtNumeric rdtInteger rdtDate rdtReference rdtAccount rdtText rdtPick rdtUnknown rdtLargeInteger rdtDocument reOnChange reOnChangeValues ttGlobal ttLocal ttUser ttSystem ssmBrowse ssmSelect ssmMultiSelect ssmBrowseModal smSelect smLike smCard stNone stAuthenticating stApproving sctString sctStream sstAnsiSort sstNaturalSort svtEqual svtContain soatString soatNumeric soatInteger soatDatetime soatReferenceRecord soatText soatPick soatBoolean soatEDocument soatAccount soatIntegerCollection soatNumericCollection soatStringCollection soatPickCollection soatDatetimeCollection soatBooleanCollection soatReferenceRecordCollection soatEDocumentCollection soatAccountCollection soatContents soatUnknown tarAbortByUser tarAbortByWorkflowException tvtAllWords tvtExactPhrase tvtAnyWord usNone usCompleted usRedSquare usBlueSquare usYellowSquare usGreenSquare usOrangeSquare usPurpleSquare usFollowUp utUnknown utUser utDeveloper utAdministrator utSystemDeveloper utDisconnected btAnd btDetailAnd btOr btNotOr btOnly vmView vmSelect vmNavigation vsmSingle vsmMultiple vsmMultipleCheck vsmNoSelection wfatPrevious wfatNext wfatCancel wfatFinish wfepUndefined wfepText3 wfepText6 wfepText9 wfepSpinEdit wfepDropDown wfepRadioGroup wfepFlag wfepText12 wfepText15 wfepText18 wfepText21 wfepText24 wfepText27 wfepText30 wfepRadioGroupColumn1 wfepRadioGroupColumn2 wfepRadioGroupColumn3 wfetQueryParameter wfetText wfetDelimiter wfetLabel wptString wptInteger wptNumeric wptBoolean wptDateTime wptPick wptText wptUser wptUserList wptEDocumentInfo wptEDocumentInfoList wptReferenceRecordInfo wptReferenceRecordInfoList wptFolderInfo wptTaskInfo wptContents wptFileName wptDate wsrComplete wsrGoNext wsrGoPrevious wsrCustom wsrCancel wsrGoFinal wstForm wstEDocument wstTaskCard wstReferenceRecordCard wstFinal waAll waPerformers waManual wsbStart wsbFinish wsbNotice wsbStep wsbDecision wsbWait wsbMonitor wsbScript wsbConnector wsbSubTask wsbLifeCycleStage wsbPause wdtInteger wdtFloat wdtString wdtPick wdtDateTime wdtBoolean wdtTask wdtJob wdtFolder wdtEDocument wdtReferenceRecord wdtUser wdtGroup wdtRole wdtIntegerCollection wdtFloatCollection wdtStringCollection wdtPickCollection wdtDateTimeCollection wdtBooleanCollection wdtTaskCollection wdtJobCollection wdtFolderCollection wdtEDocumentCollection wdtReferenceRecordCollection wdtUserCollection wdtGroupCollection wdtRoleCollection wdtContents wdtUserList wdtSearchDescription wdtDeadLine wdtPickSet wdtAccountCollection wiLow wiNormal wiHigh wrtSoft wrtHard wsInit wsRunning wsDone wsControlled wsAborted wsContinued wtmFull wtmFromCurrent wtmOnlyCurrent ",class:"AltState Application CallType ComponentTokens CreatedJobs CreatedNotices ControlState DialogResult Dialogs EDocuments EDocumentVersionSource Folders GlobalIDs Job Jobs InputValue LookUpReference LookUpRequisiteNames LookUpSearch Object ParentComponent Processes References Requisite ReportName Reports Result Scripts Searches SelectedAttachments SelectedItems SelectMode Sender ServerEvents ServiceFactory ShiftState SubTask SystemDialogs Tasks Wizard Wizards Work ВызовСпособ ИмяОтчета РеквЗнач ",literal:"null true false nil "},s={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,keywords:a,relevance:0},c={className:"type",begin:":[ \\t]*("+"IApplication IAccessRights IAccountRepository IAccountSelectionRestrictions IAction IActionList IAdministrationHistoryDescription IAnchors IApplication IArchiveInfo IAttachment IAttachmentList ICheckListBox ICheckPointedList IColumn IComponent IComponentDescription IComponentToken IComponentTokenFactory IComponentTokenInfo ICompRecordInfo IConnection IContents IControl IControlJob IControlJobInfo IControlList ICrypto ICrypto2 ICustomJob ICustomJobInfo ICustomListBox ICustomObjectWizardStep ICustomWork ICustomWorkInfo IDataSet IDataSetAccessInfo IDataSigner IDateCriterion IDateRequisite IDateRequisiteDescription IDateValue IDeaAccessRights IDeaObjectInfo IDevelopmentComponentLock IDialog IDialogFactory IDialogPickRequisiteItems IDialogsFactory IDICSFactory IDocRequisite IDocumentInfo IDualListDialog IECertificate IECertificateInfo IECertificates IEditControl IEditorForm IEdmsExplorer IEdmsObject IEdmsObjectDescription IEdmsObjectFactory IEdmsObjectInfo IEDocument IEDocumentAccessRights IEDocumentDescription IEDocumentEditor IEDocumentFactory IEDocumentInfo IEDocumentStorage IEDocumentVersion IEDocumentVersionListDialog IEDocumentVersionSource IEDocumentWizardStep IEDocVerSignature IEDocVersionState IEnabledMode IEncodeProvider IEncrypter IEvent IEventList IException IExternalEvents IExternalHandler IFactory IField IFileDialog IFolder IFolderDescription IFolderDialog IFolderFactory IFolderInfo IForEach IForm IFormTitle IFormWizardStep IGlobalIDFactory IGlobalIDInfo IGrid IHasher IHistoryDescription IHyperLinkControl IImageButton IImageControl IInnerPanel IInplaceHint IIntegerCriterion IIntegerList IIntegerRequisite IIntegerValue IISBLEditorForm IJob IJobDescription IJobFactory IJobForm IJobInfo ILabelControl ILargeIntegerCriterion ILargeIntegerRequisite ILargeIntegerValue ILicenseInfo ILifeCycleStage IList IListBox ILocalIDInfo ILocalization ILock IMemoryDataSet IMessagingFactory IMetadataRepository INotice INoticeInfo INumericCriterion INumericRequisite INumericValue IObject IObjectDescription IObjectImporter IObjectInfo IObserver IPanelGroup IPickCriterion IPickProperty IPickRequisite IPickRequisiteDescription IPickRequisiteItem IPickRequisiteItems IPickValue IPrivilege IPrivilegeList IProcess IProcessFactory IProcessMessage IProgress IProperty IPropertyChangeEvent IQuery IReference IReferenceCriterion IReferenceEnabledMode IReferenceFactory IReferenceHistoryDescription IReferenceInfo IReferenceRecordCardWizardStep IReferenceRequisiteDescription IReferencesFactory IReferenceValue IRefRequisite IReport IReportFactory IRequisite IRequisiteDescription IRequisiteDescriptionList IRequisiteFactory IRichEdit IRouteStep IRule IRuleList ISchemeBlock IScript IScriptFactory ISearchCriteria ISearchCriterion ISearchDescription ISearchFactory ISearchFolderInfo ISearchForObjectDescription ISearchResultRestrictions ISecuredContext ISelectDialog IServerEvent IServerEventFactory IServiceDialog IServiceFactory ISignature ISignProvider ISignProvider2 ISignProvider3 ISimpleCriterion IStringCriterion IStringList IStringRequisite IStringRequisiteDescription IStringValue ISystemDialogsFactory ISystemInfo ITabSheet ITask ITaskAbortReasonInfo ITaskCardWizardStep ITaskDescription ITaskFactory ITaskInfo ITaskRoute ITextCriterion ITextRequisite ITextValue ITreeListSelectDialog IUser IUserList IValue IView IWebBrowserControl IWizard IWizardAction IWizardFactory IWizardFormElement IWizardParam IWizardPickParam IWizardReferenceParam IWizardStep IWorkAccessRights IWorkDescription IWorkflowAskableParam IWorkflowAskableParams IWorkflowBlock IWorkflowBlockResult IWorkflowEnabledMode IWorkflowParam IWorkflowPickParam IWorkflowReferenceParam IWorkState IWorkTreeCustomNode IWorkTreeJobNode IWorkTreeTaskNode IXMLEditorForm SBCrypto ".trim().replace(/\s/g,"|")+")",end:"[ \\t]*=",excludeEnd:!0},l={className:"variable",keywords:a,begin:t,relevance:0,contains:[c,s]};return{name:"ISBL",aliases:["isbl"],case_insensitive:!0,keywords:a,illegal:"\\$|\\?|%|,|;$|~|#|@|</",contains:[{className:"function",begin:"[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*\\(",end:"\\)$",returnBegin:!0,keywords:a,illegal:"[\\[\\]\\|\\$\\?%,~#@]",contains:[{className:"title",keywords:{$pattern:t,built_in:"AddSubString AdjustLineBreaks AmountInWords Analysis ArrayDimCount ArrayHighBound ArrayLowBound ArrayOf ArrayReDim Assert Assigned BeginOfMonth BeginOfPeriod BuildProfilingOperationAnalysis CallProcedure CanReadFile CArrayElement CDataSetRequisite ChangeDate ChangeReferenceDataset Char CharPos CheckParam CheckParamValue CompareStrings ConstantExists ControlState ConvertDateStr Copy CopyFile CreateArray CreateCachedReference CreateConnection CreateDialog CreateDualListDialog CreateEditor CreateException CreateFile CreateFolderDialog CreateInputDialog CreateLinkFile CreateList CreateLock CreateMemoryDataSet CreateObject CreateOpenDialog CreateProgress CreateQuery CreateReference CreateReport CreateSaveDialog CreateScript CreateSQLPivotFunction CreateStringList CreateTreeListSelectDialog CSelectSQL CSQL CSubString CurrentUserID CurrentUserName CurrentVersion DataSetLocateEx DateDiff DateTimeDiff DateToStr DayOfWeek DeleteFile DirectoryExists DisableCheckAccessRights DisableCheckFullShowingRestriction DisableMassTaskSendingRestrictions DropTable DupeString EditText EnableCheckAccessRights EnableCheckFullShowingRestriction EnableMassTaskSendingRestrictions EndOfMonth EndOfPeriod ExceptionExists ExceptionsOff ExceptionsOn Execute ExecuteProcess Exit ExpandEnvironmentVariables ExtractFileDrive ExtractFileExt ExtractFileName ExtractFilePath ExtractParams FileExists FileSize FindFile FindSubString FirmContext ForceDirectories Format FormatDate FormatNumeric FormatSQLDate FormatString FreeException GetComponent GetComponentLaunchParam GetConstant GetLastException GetReferenceRecord GetRefTypeByRefID GetTableID GetTempFolder IfThen In IndexOf InputDialog InputDialogEx InteractiveMode IsFileLocked IsGraphicFile IsNumeric Length LoadString LoadStringFmt LocalTimeToUTC LowerCase Max MessageBox MessageBoxEx MimeDecodeBinary MimeDecodeString MimeEncodeBinary MimeEncodeString Min MoneyInWords MoveFile NewID Now OpenFile Ord Precision Raise ReadCertificateFromFile ReadFile ReferenceCodeByID ReferenceNumber ReferenceRequisiteMode ReferenceRequisiteValue RegionDateSettings RegionNumberSettings RegionTimeSettings RegRead RegWrite RenameFile Replace Round SelectServerCode SelectSQL ServerDateTime SetConstant SetManagedFolderFieldsState ShowConstantsInputDialog ShowMessage Sleep Split SQL SQL2XLSTAB SQLProfilingSendReport StrToDate SubString SubStringCount SystemSetting Time TimeDiff Today Transliterate Trim UpperCase UserStatus UTCToLocalTime ValidateXML VarIsClear VarIsEmpty VarIsNull WorkTimeDiff WriteFile WriteFileEx WriteObjectHistory Анализ БазаДанных БлокЕсть БлокЕстьРасш БлокИнфо БлокСнять БлокСнятьРасш БлокУстановить Ввод ВводМеню ВедС ВедСпр ВерхняяГраницаМассива ВнешПрогр Восст ВременнаяПапка Время ВыборSQL ВыбратьЗапись ВыделитьСтр Вызвать Выполнить ВыпПрогр ГрафическийФайл ГруппаДополнительно ДатаВремяСерв ДеньНедели ДиалогДаНет ДлинаСтр ДобПодстр ЕПусто ЕслиТо ЕЧисло ЗамПодстр ЗаписьСправочника ЗначПоляСпр ИДТипСпр ИзвлечьДиск ИзвлечьИмяФайла ИзвлечьПуть ИзвлечьРасширение ИзмДат ИзменитьРазмерМассива ИзмеренийМассива ИмяОрг ИмяПоляСпр Индекс ИндикаторЗакрыть ИндикаторОткрыть ИндикаторШаг ИнтерактивныйРежим ИтогТблСпр КодВидВедСпр КодВидСпрПоИД КодПоAnalit КодСимвола КодСпр КолПодстр КолПроп КонМес Конст КонстЕсть КонстЗнач КонТран КопироватьФайл КопияСтр КПериод КСтрТблСпр Макс МаксСтрТблСпр Массив Меню МенюРасш Мин НаборДанныхНайтиРасш НаимВидСпр НаимПоAnalit НаимСпр НастроитьПереводыСтрок НачМес НачТран НижняяГраницаМассива НомерСпр НПериод Окно Окр Окружение ОтлИнфДобавить ОтлИнфУдалить Отчет ОтчетАнал ОтчетИнт ПапкаСуществует Пауза ПВыборSQL ПереименоватьФайл Переменные ПереместитьФайл Подстр ПоискПодстр ПоискСтр ПолучитьИДТаблицы ПользовательДополнительно ПользовательИД ПользовательИмя ПользовательСтатус Прервать ПроверитьПараметр ПроверитьПараметрЗнач ПроверитьУсловие РазбСтр РазнВремя РазнДат РазнДатаВремя РазнРабВремя РегУстВрем РегУстДат РегУстЧсл РедТекст РеестрЗапись РеестрСписокИменПарам РеестрЧтение РеквСпр РеквСпрПр Сегодня Сейчас Сервер СерверПроцессИД СертификатФайлСчитать СжПроб Символ СистемаДиректумКод СистемаИнформация СистемаКод Содержит СоединениеЗакрыть СоединениеОткрыть СоздатьДиалог СоздатьДиалогВыбораИзДвухСписков СоздатьДиалогВыбораПапки СоздатьДиалогОткрытияФайла СоздатьДиалогСохраненияФайла СоздатьЗапрос СоздатьИндикатор СоздатьИсключение СоздатьКэшированныйСправочник СоздатьМассив СоздатьНаборДанных СоздатьОбъект СоздатьОтчет СоздатьПапку СоздатьРедактор СоздатьСоединение СоздатьСписок СоздатьСписокСтрок СоздатьСправочник СоздатьСценарий СоздСпр СостСпр Сохр СохрСпр СписокСистем Спр Справочник СпрБлокЕсть СпрБлокСнять СпрБлокСнятьРасш СпрБлокУстановить СпрИзмНабДан СпрКод СпрНомер СпрОбновить СпрОткрыть СпрОтменить СпрПарам СпрПолеЗнач СпрПолеИмя СпрРекв СпрРеквВведЗн СпрРеквНовые СпрРеквПр СпрРеквПредЗн СпрРеквРежим СпрРеквТипТекст СпрСоздать СпрСост СпрСохранить СпрТблИтог СпрТблСтр СпрТблСтрКол СпрТблСтрМакс СпрТблСтрМин СпрТблСтрПред СпрТблСтрСлед СпрТблСтрСозд СпрТблСтрУд СпрТекПредст СпрУдалить СравнитьСтр СтрВерхРегистр СтрНижнРегистр СтрТблСпр СумПроп Сценарий СценарийПарам ТекВерсия ТекОрг Точн Тран Транслитерация УдалитьТаблицу УдалитьФайл УдСпр УдСтрТблСпр Уст УстановкиКонстант ФайлАтрибутСчитать ФайлАтрибутУстановить ФайлВремя ФайлВремяУстановить ФайлВыбрать ФайлЗанят ФайлЗаписать ФайлИскать ФайлКопировать ФайлМожноЧитать ФайлОткрыть ФайлПереименовать ФайлПерекодировать ФайлПереместить ФайлПросмотреть ФайлРазмер ФайлСоздать ФайлСсылкаСоздать ФайлСуществует ФайлСчитать ФайлУдалить ФмтSQLДат ФмтДат ФмтСтр ФмтЧсл Формат ЦМассивЭлемент ЦНаборДанныхРеквизит ЦПодстр "},begin:"[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*\\(",end:"\\(",returnBegin:!0,excludeEnd:!0},s,l,o,n,i]},c,s,l,o,n,i]}}},function(e,t){var n="\\.([0-9](_*[0-9])*)",o="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b([0-9](_*[0-9])*)((${n})|\\.)?|(${n}))[eE][+-]?([0-9](_*[0-9])*)[fFdD]?\\b`},{begin:`\\b([0-9](_*[0-9])*)((${n})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${n})[fFdD]?\\b`},{begin:"\\b([0-9](_*[0-9])*)[fFdD]\\b"},{begin:`\\b0[xX]((${o})\\.?|(${o})?\\.(${o}))[pP][+-]?([0-9](_*[0-9])*)[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${o})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};e.exports=function(e){var t="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",n="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",o={className:"meta",begin:"@"+t,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]};const i=r;return{name:"Java",aliases:["jsp"],keywords:n,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface enum",end:/[{;=]/,excludeEnd:!0,keywords:"class interface enum",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"class",begin:"record\\s+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,excludeEnd:!0,end:/[{;=]/,keywords:n,contains:[{beginKeywords:"record"},{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:n,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"function",begin:"([À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(<[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(\\s*,\\s*[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*)*>)?\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:n,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:n,relevance:0,contains:[o,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i,o]}}},function(e,t){const n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],o=["true","false","null","undefined","NaN","Infinity"],r=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);function i(e){return a("(?=",e,")")}function a(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t="[A-Za-z$_][0-9A-Za-z$_]*",s="<>",c="</>",l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,o=e.input[n];"<"!==o?">"===o&&(((e,{after:t})=>{const n="</"+e[0].slice(1);return-1!==e.input.indexOf(n,t)})(e,{after:n})||t.ignoreMatch()):t.ignoreMatch()}},d={$pattern:"[A-Za-z$_][0-9A-Za-z$_]*",keyword:n.join(" "),literal:o.join(" "),built_in:r.join(" ")},u="\\.([0-9](_?[0-9])*)",h={className:"number",variants:[{begin:`(\\b(0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*)((${u})|\\.)?|(${u}))[eE][+-]?([0-9](_?[0-9])*)\\b`},{begin:`\\b(0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*)\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:d,contains:[]},m={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},g={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"css"}},f={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,p]},_={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:t+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},b=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,g,f,h,e.REGEXP_MODE];p.contains=b.concat({begin:/\{/,end:/\}/,keywords:d,contains:["self"].concat(b)});const v=[].concat(_,p.contains),y=v.concat([{begin:/\(/,end:/\)/,keywords:d,contains:["self"].concat(v)}]),E={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:y};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:d,exports:{PARAMS_CONTAINS:y},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,g,f,_,h,{begin:a(/[{,\n]\s*/,i(a(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,t+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:t+i("\\s*:"),relevance:0}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[_,e.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:y}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:s,end:c},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:d,contains:["self",e.inherit(e.TITLE_MODE,{begin:t}),E],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[E,e.inherit(e.TITLE_MODE,{begin:t})]},{variants:[{begin:"\\."+t},{begin:"\\$"+t}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),"self",E]},{begin:"(get|set)\\s+(?="+t+"\\()",end:/\{/,keywords:"get set",contains:[e.inherit(e.TITLE_MODE,{begin:t}),{begin:/\(\)/},E]},{begin:/\$[(.]/}]}}},function(e,t){e.exports=function(e){const t={className:"params",begin:/\(/,end:/\)/,contains:[{begin:/[\w-]+ *=/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/[\w-]+/}]}],relevance:0};return{name:"JBoss CLI",aliases:["wildfly-cli"],keywords:{$pattern:"[a-z-]+",keyword:"alias batch cd clear command connect connection-factory connection-info data-source deploy deployment-info deployment-overlay echo echo-dmr help history if jdbc-driver-info jms-queue|20 jms-topic|20 ls patch pwd quit read-attribute read-operation reload rollout-plan run-batch set shutdown try unalias undeploy unset version xa-data-source",literal:"true false"},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"params",begin:/--[\w\-=\/]+/},{className:"function",begin:/:[\w\-.]+/,relevance:0},{className:"string",begin:/\B([\/.])[\w\-.\/=]+/},t]}}},function(e,t){e.exports=function(e){const t={literal:"true false null"},n=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],o=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],r={end:",",endsWithParent:!0,excludeEnd:!0,contains:o,keywords:t},i={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(r,{begin:/:/})].concat(n),illegal:"\\S"},a={begin:"\\[",end:"\\]",contains:[e.inherit(r)],illegal:"\\S"};return o.push(i,a),n.forEach((function(e){o.push(e)})),{name:"JSON",contains:o,keywords:t,illegal:"\\S"}}},function(e,t){e.exports=function(e){var t="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",n={$pattern:t,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"].join(" "),literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"].join(" "),built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"].join(" ")},o={keywords:n,illegal:/<\//},r={className:"subst",begin:/\$\(/,end:/\)/,keywords:n},i={className:"variable",begin:"\\$"+t},a={className:"string",contains:[e.BACKSLASH_ESCAPE,r,i],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},s={className:"string",contains:[e.BACKSLASH_ESCAPE,r,i],begin:"`",end:"`"},c={className:"meta",begin:"@"+t};return o.name="Julia",o.contains=[{className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},{className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},a,s,c,{className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]},e.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],r.contains=o.contains,o}},function(e,t){e.exports=function(e){return{name:"Julia REPL",contains:[{className:"meta",begin:/^julia>/,relevance:10,starts:{end:/^(?![ ]{6})/,subLanguage:"julia"},aliases:["jldoctest"]}]}}},function(e,t){var n="\\.([0-9](_*[0-9])*)",o="[0-9a-fA-F](_*[0-9a-fA-F])*",r={className:"number",variants:[{begin:`(\\b([0-9](_*[0-9])*)((${n})|\\.)?|(${n}))[eE][+-]?([0-9](_*[0-9])*)[fFdD]?\\b`},{begin:`\\b([0-9](_*[0-9])*)((${n})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${n})[fFdD]?\\b`},{begin:"\\b([0-9](_*[0-9])*)[fFdD]\\b"},{begin:`\\b0[xX]((${o})\\.?|(${o})?\\.(${o}))[pP][+-]?([0-9](_*[0-9])*)[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${o})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};e.exports=function(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},o={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},i={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},a={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[i,o]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,i,o]}]};o.contains.push(a);const s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},c={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(a,{className:"meta-string"})]}]},l=r,d=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),u={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},h=u;return h.variants[1].contains=[u],u.variants[1].contains=[h],{name:"Kotlin",aliases:["kt"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,d,{className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},n,s,c,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[u,e.C_LINE_COMMENT_MODE,d],relevance:0},e.C_LINE_COMMENT_MODE,d,s,c,a,e.C_NUMBER_MODE]},d]},{className:"class",beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,excludeBegin:!0,returnEnd:!0},s,c]},a,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},l]}}},function(e,t){e.exports=function(e){const t="\\]|\\?>",n={$pattern:"[a-zA-Z_][\\w.]*|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},o=e.COMMENT("\x3c!--","--\x3e",{relevance:0}),r={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[o]}},i={className:"meta",begin:"\\[/noprocess|<\\?(lasso(script)?|=)"},a={className:"symbol",begin:"'[a-zA-Z_][\\w.]*'"},s=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$][a-zA-Z_][\\w.]*"},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:"[a-zA-Z_][\\w.]*",illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)[a-zA-Z_][\\w.]*",relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[a]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z_][\\w.]*(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:n,contains:[{className:"meta",begin:t,relevance:0,starts:{end:"\\[|<\\?(lasso(script)?|=)",returnEnd:!0,relevance:0,contains:[o]}},r,i,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:n,contains:[{className:"meta",begin:t,relevance:0,starts:{end:"\\[noprocess\\]|<\\?(lasso(script)?|=)",returnEnd:!0,contains:[o]}},r,i].concat(s)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(s)}}},function(e,t){e.exports=function(e){const t=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],n=[{className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:function(...e){return"("+e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("|")+")"}(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(e=>e+"(?![a-zA-Z@:_])"))},{endsParent:!0,begin:new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(e=>e+"(?![a-zA-Z:_])").join("|"))},{endsParent:!0,variants:t},{endsParent:!0,relevance:0,variants:[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}]}]},{className:"params",relevance:0,begin:/#+\d?/},{variants:t},{className:"built_in",relevance:0,begin:/[$&^_]/},{className:"meta",begin:"% !TeX",end:"$",relevance:10},e.COMMENT("%","$",{relevance:0})],o={begin:/\{/,end:/\}/,relevance:0,contains:["self",...n]},r=e.inherit(o,{relevance:0,endsParent:!0,contains:[o,...n]}),i={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[o,...n]},a={begin:/\s+/,relevance:0},s=[r],c=[i],l=function(e,t){return{contains:[a],starts:{relevance:0,contains:e,starts:t}}},d=function(e,t){return{begin:"\\\\"+e+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+e},relevance:0,contains:[a],starts:t}},u=function(t,n){return e.inherit({begin:"\\\\begin(?=[ \t]*(\\r?\\n[ \t]*)?\\{"+t+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},l(s,n))},h=(t="string")=>e.END_SAME_AS_BEGIN({className:t,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),p=function(e){return{className:"string",end:"(?=\\\\end\\{"+e+"\\})"}},m=(e="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:e,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}});return{name:"LaTeX",aliases:["TeX"],contains:[...[...["verb","lstinline"].map(e=>d(e,{contains:[h()]})),d("mint",l(s,{contains:[h()]})),d("mintinline",l(s,{contains:[m(),h()]})),d("url",{contains:[m("link"),m("link")]}),d("hyperref",{contains:[m("link")]}),d("href",l(c,{contains:[m("link")]})),...[].concat(...["","\\*"].map(e=>[u("verbatim"+e,p("verbatim"+e)),u("filecontents"+e,l(s,p("filecontents"+e))),...["","B","L"].map(t=>u(t+"Verbatim"+e,l(c,p(t+"Verbatim"+e))))])),u("minted",l(c,l(s,p("minted"))))],...n]}}},function(e,t){e.exports=function(e){return{name:"LDIF",contains:[{className:"attribute",begin:"^dn",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0},relevance:10},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,starts:{end:"$",relevance:0}},{className:"literal",begin:"^-",end:"$"},e.HASH_COMMENT_MODE]}}},function(e,t){e.exports=function(e){return{name:"Leaf",contains:[{className:"function",begin:"#+[A-Za-z_0-9]*\\(",end:/ \{/,returnBegin:!0,excludeEnd:!0,contains:[{className:"keyword",begin:"#+"},{className:"title",begin:"[A-Za-z_][A-Za-z_0-9]*"},{className:"params",begin:"\\(",end:"\\)",endsParent:!0,contains:[{className:"string",begin:'"',end:'"'},{className:"variable",begin:"[A-Za-z_][A-Za-z_0-9]*"}]}]}]}}},function(e,t){e.exports=function(e){var t="([\\w-]+|@\\{[\\w-]+\\})",n=[],o=[],r=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},i=function(e,t,n){return{className:e,begin:t,relevance:n}},a={begin:"\\(",end:"\\)",contains:o,relevance:0};o.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r("'"),r('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},i("number","#[0-9A-Fa-f]+\\b"),a,i("variable","@@?[\\w-]+",10),i("variable","@\\{[\\w-]+\\}"),i("built_in","~?`[^`]*?`"),{className:"attribute",begin:"[\\w-]+\\s*:",end:":",returnBegin:!0,excludeEnd:!0},{className:"meta",begin:"!important"});var s=o.concat({begin:/\{/,end:/\}/,contains:n}),c={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(o)},l={begin:t+"\\s*:",returnBegin:!0,end:"[;}]",relevance:0,contains:[{className:"attribute",begin:t,end:":",excludeEnd:!0,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:o}}]},d={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",returnEnd:!0,contains:o,relevance:0}},u={className:"variable",variants:[{begin:"@[\\w-]+\\s*:",relevance:15},{begin:"@[\\w-]+"}],starts:{end:"[;}]",returnEnd:!0,contains:s}},h={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:t,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,c,i("keyword","all\\b"),i("variable","@\\{[\\w-]+\\}"),i("selector-tag",t+"%?",0),i("selector-id","#"+t),i("selector-class","\\."+t,0),i("selector-tag","&",0),{className:"selector-attr",begin:"\\[",end:"\\]"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9_\-+()"'.]+/},{begin:"\\(",end:"\\)",contains:s},{begin:"!important"}]};return n.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,d,u,l,h),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:n}}},function(e,t){e.exports=function(e){var t="[a-zA-Z_\\-+\\*\\/<=>&#][a-zA-Z0-9_\\-+*\\/<=>&#!]*",n="(-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|-)?\\d+)?",o={className:"literal",begin:"\\b(t{1}|nil)\\b"},r={className:"number",variants:[{begin:n,relevance:0},{begin:"#(b|B)[0-1]+(/[0-1]+)?"},{begin:"#(o|O)[0-7]+(/[0-7]+)?"},{begin:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{begin:"#(c|C)\\("+n+" +"+n,end:"\\)"}]},i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),a=e.COMMENT(";","$",{relevance:0}),s={begin:"\\*",end:"\\*"},c={className:"symbol",begin:"[:&]"+t},l={begin:t,relevance:0},d={begin:"\\|[^]*?\\|"},u={contains:[r,i,s,c,{begin:"\\(",end:"\\)",contains:["self",o,i,r,l]},l],variants:[{begin:"['`]\\(",end:"\\)"},{begin:"\\(quote ",end:"\\)",keywords:{name:"quote"}},{begin:"'\\|[^]*?\\|"}]},h={variants:[{begin:"'"+t},{begin:"#'"+t+"(::"+t+")*"}]},p={begin:"\\(\\s*",end:"\\)"},m={endsWithParent:!0,relevance:0};return p.contains=[{className:"name",variants:[{begin:t,relevance:0},{begin:"\\|[^]*?\\|"}]},m],m.contains=[u,h,p,o,r,i,a,s,c,d,l],{name:"Lisp",illegal:/\S/,contains:[r,e.SHEBANG(),o,i,a,u,h,p,l]}}},function(e,t){e.exports=function(e){const t={className:"variable",variants:[{begin:"\\b([gtps][A-Z]{1}[a-zA-Z0-9]*)(\\[.+\\])?(?:\\s*?)"},{begin:"\\$_[A-Z]+"}],relevance:0},n=[e.C_BLOCK_COMMENT_MODE,e.HASH_COMMENT_MODE,e.COMMENT("--","$"),e.COMMENT("[^:]//","$")],o=e.inherit(e.TITLE_MODE,{variants:[{begin:"\\b_*rig[A-Z][A-Za-z0-9_\\-]*"},{begin:"\\b_[a-z0-9\\-]+"}]}),r=e.inherit(e.TITLE_MODE,{begin:"\\b([A-Za-z0-9_\\-]+)\\b"});return{name:"LiveCode",case_insensitive:!1,keywords:{keyword:"$_COOKIE $_FILES $_GET $_GET_BINARY $_GET_RAW $_POST $_POST_BINARY $_POST_RAW $_SESSION $_SERVER codepoint codepoints segment segments codeunit codeunits sentence sentences trueWord trueWords paragraph after byte bytes english the until http forever descending using line real8 with seventh for stdout finally element word words fourth before black ninth sixth characters chars stderr uInt1 uInt1s uInt2 uInt2s stdin string lines relative rel any fifth items from middle mid at else of catch then third it file milliseconds seconds second secs sec int1 int1s int4 int4s internet int2 int2s normal text item last long detailed effective uInt4 uInt4s repeat end repeat URL in try into switch to words https token binfile each tenth as ticks tick system real4 by dateItems without char character ascending eighth whole dateTime numeric short first ftp integer abbreviated abbr abbrev private case while if div mod wrap and or bitAnd bitNot bitOr bitXor among not in a an within contains ends with begins the keys of keys",literal:"SIX TEN FORMFEED NINE ZERO NONE SPACE FOUR FALSE COLON CRLF PI COMMA ENDOFFILE EOF EIGHT FIVE QUOTE EMPTY ONE TRUE RETURN CR LINEFEED RIGHT BACKSLASH NULL SEVEN TAB THREE TWO six ten formfeed nine zero none space four false colon crlf pi comma endoffile eof eight five quote empty one true return cr linefeed right backslash null seven tab three two RIVERSION RISTATE FILE_READ_MODE FILE_WRITE_MODE FILE_WRITE_MODE DIR_WRITE_MODE FILE_READ_UMASK FILE_WRITE_UMASK DIR_READ_UMASK DIR_WRITE_UMASK",built_in:"put abs acos aliasReference annuity arrayDecode arrayEncode asin atan atan2 average avg avgDev base64Decode base64Encode baseConvert binaryDecode binaryEncode byteOffset byteToNum cachedURL cachedURLs charToNum cipherNames codepointOffset codepointProperty codepointToNum codeunitOffset commandNames compound compress constantNames cos date dateFormat decompress difference directories diskSpace DNSServers exp exp1 exp2 exp10 extents files flushEvents folders format functionNames geometricMean global globals hasMemory harmonicMean hostAddress hostAddressToName hostName hostNameToAddress isNumber ISOToMac itemOffset keys len length libURLErrorData libUrlFormData libURLftpCommand libURLLastHTTPHeaders libURLLastRHHeaders libUrlMultipartFormAddPart libUrlMultipartFormData libURLVersion lineOffset ln ln1 localNames log log2 log10 longFilePath lower macToISO matchChunk matchText matrixMultiply max md5Digest median merge messageAuthenticationCode messageDigest millisec millisecs millisecond milliseconds min monthNames nativeCharToNum normalizeText num number numToByte numToChar numToCodepoint numToNativeChar offset open openfiles openProcesses openProcessIDs openSockets paragraphOffset paramCount param params peerAddress pendingMessages platform popStdDev populationStandardDeviation populationVariance popVariance processID random randomBytes replaceText result revCreateXMLTree revCreateXMLTreeFromFile revCurrentRecord revCurrentRecordIsFirst revCurrentRecordIsLast revDatabaseColumnCount revDatabaseColumnIsNull revDatabaseColumnLengths revDatabaseColumnNames revDatabaseColumnNamed revDatabaseColumnNumbered revDatabaseColumnTypes revDatabaseConnectResult revDatabaseCursors revDatabaseID revDatabaseTableNames revDatabaseType revDataFromQuery revdb_closeCursor revdb_columnbynumber revdb_columncount revdb_columnisnull revdb_columnlengths revdb_columnnames revdb_columntypes revdb_commit revdb_connect revdb_connections revdb_connectionerr revdb_currentrecord revdb_cursorconnection revdb_cursorerr revdb_cursors revdb_dbtype revdb_disconnect revdb_execute revdb_iseof revdb_isbof revdb_movefirst revdb_movelast revdb_movenext revdb_moveprev revdb_query revdb_querylist revdb_recordcount revdb_rollback revdb_tablenames revGetDatabaseDriverPath revNumberOfRecords revOpenDatabase revOpenDatabases revQueryDatabase revQueryDatabaseBlob revQueryResult revQueryIsAtStart revQueryIsAtEnd revUnixFromMacPath revXMLAttribute revXMLAttributes revXMLAttributeValues revXMLChildContents revXMLChildNames revXMLCreateTreeFromFileWithNamespaces revXMLCreateTreeWithNamespaces revXMLDataFromXPathQuery revXMLEvaluateXPath revXMLFirstChild revXMLMatchingNode revXMLNextSibling revXMLNodeContents revXMLNumberOfChildren revXMLParent revXMLPreviousSibling revXMLRootNode revXMLRPC_CreateRequest revXMLRPC_Documents revXMLRPC_Error revXMLRPC_GetHost revXMLRPC_GetMethod revXMLRPC_GetParam revXMLText revXMLRPC_Execute revXMLRPC_GetParamCount revXMLRPC_GetParamNode revXMLRPC_GetParamType revXMLRPC_GetPath revXMLRPC_GetPort revXMLRPC_GetProtocol revXMLRPC_GetRequest revXMLRPC_GetResponse revXMLRPC_GetSocket revXMLTree revXMLTrees revXMLValidateDTD revZipDescribeItem revZipEnumerateItems revZipOpenArchives round sampVariance sec secs seconds sentenceOffset sha1Digest shell shortFilePath sin specialFolderPath sqrt standardDeviation statRound stdDev sum sysError systemVersion tan tempName textDecode textEncode tick ticks time to tokenOffset toLower toUpper transpose truewordOffset trunc uniDecode uniEncode upper URLDecode URLEncode URLStatus uuid value variableNames variance version waitDepth weekdayNames wordOffset xsltApplyStylesheet xsltApplyStylesheetFromFile xsltLoadStylesheet xsltLoadStylesheetFromFile add breakpoint cancel clear local variable file word line folder directory URL close socket process combine constant convert create new alias folder directory decrypt delete variable word line folder directory URL dispatch divide do encrypt filter get include intersect kill libURLDownloadToFile libURLFollowHttpRedirects libURLftpUpload libURLftpUploadFile libURLresetAll libUrlSetAuthCallback libURLSetDriver libURLSetCustomHTTPHeaders libUrlSetExpect100 libURLSetFTPListCommand libURLSetFTPMode libURLSetFTPStopTime libURLSetStatusCallback load extension loadedExtensions multiply socket prepare process post seek rel relative read from process rename replace require resetAll resolve revAddXMLNode revAppendXML revCloseCursor revCloseDatabase revCommitDatabase revCopyFile revCopyFolder revCopyXMLNode revDeleteFolder revDeleteXMLNode revDeleteAllXMLTrees revDeleteXMLTree revExecuteSQL revGoURL revInsertXMLNode revMoveFolder revMoveToFirstRecord revMoveToLastRecord revMoveToNextRecord revMoveToPreviousRecord revMoveToRecord revMoveXMLNode revPutIntoXMLNode revRollBackDatabase revSetDatabaseDriverPath revSetXMLAttribute revXMLRPC_AddParam revXMLRPC_DeleteAllDocuments revXMLAddDTD revXMLRPC_Free revXMLRPC_FreeAll revXMLRPC_DeleteDocument revXMLRPC_DeleteParam revXMLRPC_SetHost revXMLRPC_SetMethod revXMLRPC_SetPort revXMLRPC_SetProtocol revXMLRPC_SetSocket revZipAddItemWithData revZipAddItemWithFile revZipAddUncompressedItemWithData revZipAddUncompressedItemWithFile revZipCancel revZipCloseArchive revZipDeleteItem revZipExtractItemToFile revZipExtractItemToVariable revZipSetProgressCallback revZipRenameItem revZipReplaceItemWithData revZipReplaceItemWithFile revZipOpenArchive send set sort split start stop subtract symmetric union unload vectorDotProduct wait write"},contains:[t,{className:"keyword",begin:"\\bend\\sif\\b"},{className:"function",beginKeywords:"function",end:"$",contains:[t,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,o]},{className:"function",begin:"\\bend\\s+",end:"$",keywords:"end",contains:[r,o],relevance:0},{beginKeywords:"command on",end:"$",contains:[t,r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,o]},{className:"meta",variants:[{begin:"<\\?(rev|lc|livecode)",relevance:10},{begin:"<\\?"},{begin:"\\?>"}]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE,o].concat(n),illegal:";$|^\\[|^=|&|\\{"}}},function(e,t){const n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],o=["true","false","null","undefined","NaN","Infinity"],r=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);e.exports=function(e){const t={keyword:n.concat(["then","unless","until","loop","of","by","when","and","or","is","isnt","not","it","that","otherwise","from","to","til","fallthrough","case","enum","native","list","map","__hasProp","__extends","__slice","__bind","__indexOf"]).join(" "),literal:o.concat(["yes","no","on","off","it","that","void"]).join(" "),built_in:r.concat(["npm","print"]).join(" ")},i="[A-Za-z$_](?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*",a=e.inherit(e.TITLE_MODE,{begin:i}),s={className:"subst",begin:/#\{/,end:/\}/,keywords:t},c={className:"subst",begin:/#[A-Za-z$_]/,end:/(?:-[0-9A-Za-z$_]|[0-9A-Za-z$_])*/,keywords:t},l=[e.BINARY_NUMBER_MODE,{className:"number",begin:"(\\b0[xX][a-fA-F0-9_]+)|(\\b\\d(\\d|_\\d)*(\\.(\\d(\\d|_\\d)*)?)?(_*[eE]([-+]\\d(_\\d|\\d)*)?)?[_a-z]*)",relevance:0,starts:{end:"(\\s*/)?",relevance:0}},{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,s,c]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,c]},{begin:/\\/,end:/(\s|$)/,excludeEnd:!0}]},{className:"regexp",variants:[{begin:"//",end:"//[gim]*",contains:[s,e.HASH_COMMENT_MODE]},{begin:/\/(?![ *])(\\.|[^\\\n])*?\/[gim]*(?=\W)/}]},{begin:"@"+i},{begin:"``",end:"``",excludeBegin:!0,excludeEnd:!0,subLanguage:"javascript"}];s.contains=l;const d={className:"params",begin:"\\(",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(l)}]};return{name:"LiveScript",aliases:["ls"],keywords:t,illegal:/\/\*/,contains:l.concat([e.COMMENT("\\/\\*","\\*\\/"),e.HASH_COMMENT_MODE,{begin:"(#=>|=>|\\|>>|-?->|!->)"},{className:"function",contains:[a,d],returnBegin:!0,variants:[{begin:"("+i+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B->\\*?",end:"->\\*?"},{begin:"("+i+"\\s*(?:=|:=)\\s*)?!?(\\(.*\\)\\s*)?\\B[-~]{1,2}>\\*?",end:"[-~]{1,2}>\\*?"},{begin:"("+i+"\\s*(?:=|:=)\\s*)?(\\(.*\\)\\s*)?\\B!?[-~]{1,2}>\\*?",end:"!?[-~]{1,2}>\\*?"}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[a]},a]},{begin:i+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t=/([-a-zA-Z$._][\w$.-]*)/,o={className:"variable",variants:[{begin:n(/%/,t)},{begin:/%\d+/},{begin:/#\d+/}]},r={className:"title",variants:[{begin:n(/@/,t)},{begin:/@\d+/},{begin:n(/!/,t)},{begin:n(/!\d+/,t)},{begin:/!\d+/}]};return{name:"LLVM IR",keywords:"begin end true false declare define global constant private linker_private internal available_externally linkonce linkonce_odr weak weak_odr appending dllimport dllexport common default hidden protected extern_weak external thread_local zeroinitializer undef null to tail target triple datalayout volatile nuw nsw nnan ninf nsz arcp fast exact inbounds align addrspace section alias module asm sideeffect gc dbg linker_private_weak attributes blockaddress initialexec localdynamic localexec prefix unnamed_addr ccc fastcc coldcc x86_stdcallcc x86_fastcallcc arm_apcscc arm_aapcscc arm_aapcs_vfpcc ptx_device ptx_kernel intel_ocl_bicc msp430_intrcc spir_func spir_kernel x86_64_sysvcc x86_64_win64cc x86_thiscallcc cc c signext zeroext inreg sret nounwind noreturn noalias nocapture byval nest readnone readonly inlinehint noinline alwaysinline optsize ssp sspreq noredzone noimplicitfloat naked builtin cold nobuiltin noduplicate nonlazybind optnone returns_twice sanitize_address sanitize_memory sanitize_thread sspstrong uwtable returned type opaque eq ne slt sgt sle sge ult ugt ule uge oeq one olt ogt ole oge ord uno ueq une x acq_rel acquire alignstack atomic catch cleanup filter inteldialect max min monotonic nand personality release seq_cst singlethread umax umin unordered xchg add fadd sub fsub mul fmul udiv sdiv fdiv urem srem frem shl lshr ashr and or xor icmp fcmp phi call trunc zext sext fptrunc fpext uitofp sitofp fptoui fptosi inttoptr ptrtoint bitcast addrspacecast select va_arg ret br switch invoke unwind unreachable indirectbr landingpad resume malloc alloca free load store getelementptr extractelement insertelement shufflevector getresult extractvalue insertvalue atomicrmw cmpxchg fence argmemonly double",contains:[{className:"type",begin:/\bi\d+(?=\s|\b)/},e.COMMENT(/;\s*$/,null,{relevance:0}),e.COMMENT(/;/,/$/),e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:/"/,end:/[^\\]"/}]},r,{className:"punctuation",relevance:0,begin:/,/},{className:"operator",relevance:0,begin:/=/},o,{className:"symbol",variants:[{begin:/^\s*[a-z]+:/}],relevance:0},{className:"number",variants:[{begin:/0[xX][a-fA-F0-9]+/},{begin:/-?\d+(?:[.]\d+)?(?:[eE][-+]?\d+(?:[.]\d+)?)?/}],relevance:0}]}}},function(e,t){e.exports=function(e){var t={className:"string",begin:'"',end:'"',contains:[{className:"subst",begin:/\\[tn"\\]/}]},n={className:"number",relevance:0,begin:e.C_NUMBER_RE};return{name:"LSL (Linden Scripting Language)",illegal:":",contains:[t,{className:"comment",variants:[e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/")],relevance:0},n,{className:"section",variants:[{begin:"\\b(state|default)\\b"},{begin:"\\b(state_(entry|exit)|touch(_(start|end))?|(land_)?collision(_(start|end))?|timer|listen|(no_)?sensor|control|(not_)?at_(rot_)?target|money|email|experience_permissions(_denied)?|run_time_permissions|changed|attach|dataserver|moving_(start|end)|link_message|(on|object)_rez|remote_data|http_re(sponse|quest)|path_update|transaction_result)\\b"}]},{className:"built_in",begin:"\\b(ll(AgentInExperience|(Create|DataSize|Delete|KeyCount|Keys|Read|Update)KeyValue|GetExperience(Details|ErrorMessage)|ReturnObjectsBy(ID|Owner)|Json(2List|[GS]etValue|ValueType)|Sin|Cos|Tan|Atan2|Sqrt|Pow|Abs|Fabs|Frand|Floor|Ceil|Round|Vec(Mag|Norm|Dist)|Rot(Between|2(Euler|Fwd|Left|Up))|(Euler|Axes)2Rot|Whisper|(Region|Owner)?Say|Shout|Listen(Control|Remove)?|Sensor(Repeat|Remove)?|Detected(Name|Key|Owner|Type|Pos|Vel|Grab|Rot|Group|LinkNumber)|Die|Ground|Wind|([GS]et)(AnimationOverride|MemoryLimit|PrimMediaParams|ParcelMusicURL|Object(Desc|Name)|PhysicsMaterial|Status|Scale|Color|Alpha|Texture|Pos|Rot|Force|Torque)|ResetAnimationOverride|(Scale|Offset|Rotate)Texture|(Rot)?Target(Remove)?|(Stop)?MoveToTarget|Apply(Rotational)?Impulse|Set(KeyframedMotion|ContentType|RegionPos|(Angular)?Velocity|Buoyancy|HoverHeight|ForceAndTorque|TimerEvent|ScriptState|Damage|TextureAnim|Sound(Queueing|Radius)|Vehicle(Type|(Float|Vector|Rotation)Param)|(Touch|Sit)?Text|Camera(Eye|At)Offset|PrimitiveParams|ClickAction|Link(Alpha|Color|PrimitiveParams(Fast)?|Texture(Anim)?|Camera|Media)|RemoteScriptAccessPin|PayPrice|LocalRot)|ScaleByFactor|Get((Max|Min)ScaleFactor|ClosestNavPoint|StaticPath|SimStats|Env|PrimitiveParams|Link(PrimitiveParams|Number(OfSides)?|Key|Name|Media)|HTTPHeader|FreeURLs|Object(Details|PermMask|PrimCount)|Parcel(MaxPrims|Details|Prim(Count|Owners))|Attached(List)?|(SPMax|Free|Used)Memory|Region(Name|TimeDilation|FPS|Corner|AgentCount)|Root(Position|Rotation)|UnixTime|(Parcel|Region)Flags|(Wall|GMT)clock|SimulatorHostname|BoundingBox|GeometricCenter|Creator|NumberOf(Prims|NotecardLines|Sides)|Animation(List)?|(Camera|Local)(Pos|Rot)|Vel|Accel|Omega|Time(stamp|OfDay)|(Object|CenterOf)?Mass|MassMKS|Energy|Owner|(Owner)?Key|SunDirection|Texture(Offset|Scale|Rot)|Inventory(Number|Name|Key|Type|Creator|PermMask)|Permissions(Key)?|StartParameter|List(Length|EntryType)|Date|Agent(Size|Info|Language|List)|LandOwnerAt|NotecardLine|Script(Name|State))|(Get|Reset|GetAndReset)Time|PlaySound(Slave)?|LoopSound(Master|Slave)?|(Trigger|Stop|Preload)Sound|((Get|Delete)Sub|Insert)String|To(Upper|Lower)|Give(InventoryList|Money)|RezObject|(Stop)?LookAt|Sleep|CollisionFilter|(Take|Release)Controls|DetachFromAvatar|AttachToAvatar(Temp)?|InstantMessage|(GetNext)?Email|StopHover|MinEventDelay|RotLookAt|String(Length|Trim)|(Start|Stop)Animation|TargetOmega|Request(Experience)?Permissions|(Create|Break)Link|BreakAllLinks|(Give|Remove)Inventory|Water|PassTouches|Request(Agent|Inventory)Data|TeleportAgent(Home|GlobalCoords)?|ModifyLand|CollisionSound|ResetScript|MessageLinked|PushObject|PassCollisions|AxisAngle2Rot|Rot2(Axis|Angle)|A(cos|sin)|AngleBetween|AllowInventoryDrop|SubStringIndex|List2(CSV|Integer|Json|Float|String|Key|Vector|Rot|List(Strided)?)|DeleteSubList|List(Statistics|Sort|Randomize|(Insert|Find|Replace)List)|EdgeOfWorld|AdjustSoundVolume|Key2Name|TriggerSoundLimited|EjectFromLand|(CSV|ParseString)2List|OverMyLand|SameGroup|UnSit|Ground(Slope|Normal|Contour)|GroundRepel|(Set|Remove)VehicleFlags|SitOnLink|(AvatarOn)?(Link)?SitTarget|Script(Danger|Profiler)|Dialog|VolumeDetect|ResetOtherScript|RemoteLoadScriptPin|(Open|Close)RemoteDataChannel|SendRemoteData|RemoteDataReply|(Integer|String)ToBase64|XorBase64|Log(10)?|Base64To(String|Integer)|ParseStringKeepNulls|RezAtRoot|RequestSimulatorData|ForceMouselook|(Load|Release|(E|Une)scape)URL|ParcelMedia(CommandList|Query)|ModPow|MapDestination|(RemoveFrom|AddTo|Reset)Land(Pass|Ban)List|(Set|Clear)CameraParams|HTTP(Request|Response)|TextBox|DetectedTouch(UV|Face|Pos|(N|Bin)ormal|ST)|(MD5|SHA1|DumpList2)String|Request(Secure)?URL|Clear(Prim|Link)Media|(Link)?ParticleSystem|(Get|Request)(Username|DisplayName)|RegionSayTo|CastRay|GenerateKey|TransferLindenDollars|ManageEstateAccess|(Create|Delete)Character|ExecCharacterCmd|Evade|FleeFrom|NavigateTo|PatrolPoints|Pursue|UpdateCharacter|WanderWithin))\\b"},{className:"literal",variants:[{begin:"\\b(PI|TWO_PI|PI_BY_TWO|DEG_TO_RAD|RAD_TO_DEG|SQRT2)\\b"},{begin:"\\b(XP_ERROR_(EXPERIENCES_DISABLED|EXPERIENCE_(DISABLED|SUSPENDED)|INVALID_(EXPERIENCE|PARAMETERS)|KEY_NOT_FOUND|MATURITY_EXCEEDED|NONE|NOT_(FOUND|PERMITTED(_LAND)?)|NO_EXPERIENCE|QUOTA_EXCEEDED|RETRY_UPDATE|STORAGE_EXCEPTION|STORE_DISABLED|THROTTLED|UNKNOWN_ERROR)|JSON_APPEND|STATUS_(PHYSICS|ROTATE_[XYZ]|PHANTOM|SANDBOX|BLOCK_GRAB(_OBJECT)?|(DIE|RETURN)_AT_EDGE|CAST_SHADOWS|OK|MALFORMED_PARAMS|TYPE_MISMATCH|BOUNDS_ERROR|NOT_(FOUND|SUPPORTED)|INTERNAL_ERROR|WHITELIST_FAILED)|AGENT(_(BY_(LEGACY_|USER)NAME|FLYING|ATTACHMENTS|SCRIPTED|MOUSELOOK|SITTING|ON_OBJECT|AWAY|WALKING|IN_AIR|TYPING|CROUCHING|BUSY|ALWAYS_RUN|AUTOPILOT|LIST_(PARCEL(_OWNER)?|REGION)))?|CAMERA_(PITCH|DISTANCE|BEHINDNESS_(ANGLE|LAG)|(FOCUS|POSITION)(_(THRESHOLD|LOCKED|LAG))?|FOCUS_OFFSET|ACTIVE)|ANIM_ON|LOOP|REVERSE|PING_PONG|SMOOTH|ROTATE|SCALE|ALL_SIDES|LINK_(ROOT|SET|ALL_(OTHERS|CHILDREN)|THIS)|ACTIVE|PASS(IVE|_(ALWAYS|IF_NOT_HANDLED|NEVER))|SCRIPTED|CONTROL_(FWD|BACK|(ROT_)?(LEFT|RIGHT)|UP|DOWN|(ML_)?LBUTTON)|PERMISSION_(RETURN_OBJECTS|DEBIT|OVERRIDE_ANIMATIONS|SILENT_ESTATE_MANAGEMENT|TAKE_CONTROLS|TRIGGER_ANIMATION|ATTACH|CHANGE_LINKS|(CONTROL|TRACK)_CAMERA|TELEPORT)|INVENTORY_(TEXTURE|SOUND|OBJECT|SCRIPT|LANDMARK|CLOTHING|NOTECARD|BODYPART|ANIMATION|GESTURE|ALL|NONE)|CHANGED_(INVENTORY|COLOR|SHAPE|SCALE|TEXTURE|LINK|ALLOWED_DROP|OWNER|REGION(_START)?|TELEPORT|MEDIA)|OBJECT_(CLICK_ACTION|HOVER_HEIGHT|LAST_OWNER_ID|(PHYSICS|SERVER|STREAMING)_COST|UNKNOWN_DETAIL|CHARACTER_TIME|PHANTOM|PHYSICS|TEMP_(ATTACHED|ON_REZ)|NAME|DESC|POS|PRIM_(COUNT|EQUIVALENCE)|RETURN_(PARCEL(_OWNER)?|REGION)|REZZER_KEY|ROO?T|VELOCITY|OMEGA|OWNER|GROUP(_TAG)?|CREATOR|ATTACHED_(POINT|SLOTS_AVAILABLE)|RENDER_WEIGHT|(BODY_SHAPE|PATHFINDING)_TYPE|(RUNNING|TOTAL)_SCRIPT_COUNT|TOTAL_INVENTORY_COUNT|SCRIPT_(MEMORY|TIME))|TYPE_(INTEGER|FLOAT|STRING|KEY|VECTOR|ROTATION|INVALID)|(DEBUG|PUBLIC)_CHANNEL|ATTACH_(AVATAR_CENTER|CHEST|HEAD|BACK|PELVIS|MOUTH|CHIN|NECK|NOSE|BELLY|[LR](SHOULDER|HAND|FOOT|EAR|EYE|[UL](ARM|LEG)|HIP)|(LEFT|RIGHT)_PEC|HUD_(CENTER_[12]|TOP_(RIGHT|CENTER|LEFT)|BOTTOM(_(RIGHT|LEFT))?)|[LR]HAND_RING1|TAIL_(BASE|TIP)|[LR]WING|FACE_(JAW|[LR]EAR|[LR]EYE|TOUNGE)|GROIN|HIND_[LR]FOOT)|LAND_(LEVEL|RAISE|LOWER|SMOOTH|NOISE|REVERT)|DATA_(ONLINE|NAME|BORN|SIM_(POS|STATUS|RATING)|PAYINFO)|PAYMENT_INFO_(ON_FILE|USED)|REMOTE_DATA_(CHANNEL|REQUEST|REPLY)|PSYS_(PART_(BF_(ZERO|ONE(_MINUS_(DEST_COLOR|SOURCE_(ALPHA|COLOR)))?|DEST_COLOR|SOURCE_(ALPHA|COLOR))|BLEND_FUNC_(DEST|SOURCE)|FLAGS|(START|END)_(COLOR|ALPHA|SCALE|GLOW)|MAX_AGE|(RIBBON|WIND|INTERP_(COLOR|SCALE)|BOUNCE|FOLLOW_(SRC|VELOCITY)|TARGET_(POS|LINEAR)|EMISSIVE)_MASK)|SRC_(MAX_AGE|PATTERN|ANGLE_(BEGIN|END)|BURST_(RATE|PART_COUNT|RADIUS|SPEED_(MIN|MAX))|ACCEL|TEXTURE|TARGET_KEY|OMEGA|PATTERN_(DROP|EXPLODE|ANGLE(_CONE(_EMPTY)?)?)))|VEHICLE_(REFERENCE_FRAME|TYPE_(NONE|SLED|CAR|BOAT|AIRPLANE|BALLOON)|(LINEAR|ANGULAR)_(FRICTION_TIMESCALE|MOTOR_DIRECTION)|LINEAR_MOTOR_OFFSET|HOVER_(HEIGHT|EFFICIENCY|TIMESCALE)|BUOYANCY|(LINEAR|ANGULAR)_(DEFLECTION_(EFFICIENCY|TIMESCALE)|MOTOR_(DECAY_)?TIMESCALE)|VERTICAL_ATTRACTION_(EFFICIENCY|TIMESCALE)|BANKING_(EFFICIENCY|MIX|TIMESCALE)|FLAG_(NO_DEFLECTION_UP|LIMIT_(ROLL_ONLY|MOTOR_UP)|HOVER_((WATER|TERRAIN|UP)_ONLY|GLOBAL_HEIGHT)|MOUSELOOK_(STEER|BANK)|CAMERA_DECOUPLED))|PRIM_(ALLOW_UNSIT|ALPHA_MODE(_(BLEND|EMISSIVE|MASK|NONE))?|NORMAL|SPECULAR|TYPE(_(BOX|CYLINDER|PRISM|SPHERE|TORUS|TUBE|RING|SCULPT))?|HOLE_(DEFAULT|CIRCLE|SQUARE|TRIANGLE)|MATERIAL(_(STONE|METAL|GLASS|WOOD|FLESH|PLASTIC|RUBBER))?|SHINY_(NONE|LOW|MEDIUM|HIGH)|BUMP_(NONE|BRIGHT|DARK|WOOD|BARK|BRICKS|CHECKER|CONCRETE|TILE|STONE|DISKS|GRAVEL|BLOBS|SIDING|LARGETILE|STUCCO|SUCTION|WEAVE)|TEXGEN_(DEFAULT|PLANAR)|SCRIPTED_SIT_ONLY|SCULPT_(TYPE_(SPHERE|TORUS|PLANE|CYLINDER|MASK)|FLAG_(MIRROR|INVERT))|PHYSICS(_(SHAPE_(CONVEX|NONE|PRIM|TYPE)))?|(POS|ROT)_LOCAL|SLICE|TEXT|FLEXIBLE|POINT_LIGHT|TEMP_ON_REZ|PHANTOM|POSITION|SIT_TARGET|SIZE|ROTATION|TEXTURE|NAME|OMEGA|DESC|LINK_TARGET|COLOR|BUMP_SHINY|FULLBRIGHT|TEXGEN|GLOW|MEDIA_(ALT_IMAGE_ENABLE|CONTROLS|(CURRENT|HOME)_URL|AUTO_(LOOP|PLAY|SCALE|ZOOM)|FIRST_CLICK_INTERACT|(WIDTH|HEIGHT)_PIXELS|WHITELIST(_ENABLE)?|PERMS_(INTERACT|CONTROL)|PARAM_MAX|CONTROLS_(STANDARD|MINI)|PERM_(NONE|OWNER|GROUP|ANYONE)|MAX_(URL_LENGTH|WHITELIST_(SIZE|COUNT)|(WIDTH|HEIGHT)_PIXELS)))|MASK_(BASE|OWNER|GROUP|EVERYONE|NEXT)|PERM_(TRANSFER|MODIFY|COPY|MOVE|ALL)|PARCEL_(MEDIA_COMMAND_(STOP|PAUSE|PLAY|LOOP|TEXTURE|URL|TIME|AGENT|UNLOAD|AUTO_ALIGN|TYPE|SIZE|DESC|LOOP_SET)|FLAG_(ALLOW_(FLY|(GROUP_)?SCRIPTS|LANDMARK|TERRAFORM|DAMAGE|CREATE_(GROUP_)?OBJECTS)|USE_(ACCESS_(GROUP|LIST)|BAN_LIST|LAND_PASS_LIST)|LOCAL_SOUND_ONLY|RESTRICT_PUSHOBJECT|ALLOW_(GROUP|ALL)_OBJECT_ENTRY)|COUNT_(TOTAL|OWNER|GROUP|OTHER|SELECTED|TEMP)|DETAILS_(NAME|DESC|OWNER|GROUP|AREA|ID|SEE_AVATARS))|LIST_STAT_(MAX|MIN|MEAN|MEDIAN|STD_DEV|SUM(_SQUARES)?|NUM_COUNT|GEOMETRIC_MEAN|RANGE)|PAY_(HIDE|DEFAULT)|REGION_FLAG_(ALLOW_DAMAGE|FIXED_SUN|BLOCK_TERRAFORM|SANDBOX|DISABLE_(COLLISIONS|PHYSICS)|BLOCK_FLY|ALLOW_DIRECT_TELEPORT|RESTRICT_PUSHOBJECT)|HTTP_(METHOD|MIMETYPE|BODY_(MAXLENGTH|TRUNCATED)|CUSTOM_HEADER|PRAGMA_NO_CACHE|VERBOSE_THROTTLE|VERIFY_CERT)|SIT_(INVALID_(AGENT|LINK_OBJECT)|NO(T_EXPERIENCE|_(ACCESS|EXPERIENCE_PERMISSION|SIT_TARGET)))|STRING_(TRIM(_(HEAD|TAIL))?)|CLICK_ACTION_(NONE|TOUCH|SIT|BUY|PAY|OPEN(_MEDIA)?|PLAY|ZOOM)|TOUCH_INVALID_FACE|PROFILE_(NONE|SCRIPT_MEMORY)|RC_(DATA_FLAGS|DETECT_PHANTOM|GET_(LINK_NUM|NORMAL|ROOT_KEY)|MAX_HITS|REJECT_(TYPES|AGENTS|(NON)?PHYSICAL|LAND))|RCERR_(CAST_TIME_EXCEEDED|SIM_PERF_LOW|UNKNOWN)|ESTATE_ACCESS_(ALLOWED_(AGENT|GROUP)_(ADD|REMOVE)|BANNED_AGENT_(ADD|REMOVE))|DENSITY|FRICTION|RESTITUTION|GRAVITY_MULTIPLIER|KFM_(COMMAND|CMD_(PLAY|STOP|PAUSE)|MODE|FORWARD|LOOP|PING_PONG|REVERSE|DATA|ROTATION|TRANSLATION)|ERR_(GENERIC|PARCEL_PERMISSIONS|MALFORMED_PARAMS|RUNTIME_PERMISSIONS|THROTTLED)|CHARACTER_(CMD_((SMOOTH_)?STOP|JUMP)|DESIRED_(TURN_)?SPEED|RADIUS|STAY_WITHIN_PARCEL|LENGTH|ORIENTATION|ACCOUNT_FOR_SKIPPED_FRAMES|AVOIDANCE_MODE|TYPE(_([ABCD]|NONE))?|MAX_(DECEL|TURN_RADIUS|(ACCEL|SPEED)))|PURSUIT_(OFFSET|FUZZ_FACTOR|GOAL_TOLERANCE|INTERCEPT)|REQUIRE_LINE_OF_SIGHT|FORCE_DIRECT_PATH|VERTICAL|HORIZONTAL|AVOID_(CHARACTERS|DYNAMIC_OBSTACLES|NONE)|PU_(EVADE_(HIDDEN|SPOTTED)|FAILURE_(DYNAMIC_PATHFINDING_DISABLED|INVALID_(GOAL|START)|NO_(NAVMESH|VALID_DESTINATION)|OTHER|TARGET_GONE|(PARCEL_)?UNREACHABLE)|(GOAL|SLOWDOWN_DISTANCE)_REACHED)|TRAVERSAL_TYPE(_(FAST|NONE|SLOW))?|CONTENT_TYPE_(ATOM|FORM|HTML|JSON|LLSD|RSS|TEXT|XHTML|XML)|GCNP_(RADIUS|STATIC)|(PATROL|WANDER)_PAUSE_AT_WAYPOINTS|OPT_(AVATAR|CHARACTER|EXCLUSION_VOLUME|LEGACY_LINKSET|MATERIAL_VOLUME|OTHER|STATIC_OBSTACLE|WALKABLE)|SIM_STAT_PCT_CHARS_STEPPED)\\b"},{begin:"\\b(FALSE|TRUE)\\b"},{begin:"\\b(ZERO_ROTATION)\\b"},{begin:"\\b(EOF|JSON_(ARRAY|DELETE|FALSE|INVALID|NULL|NUMBER|OBJECT|STRING|TRUE)|NULL_KEY|TEXTURE_(BLANK|DEFAULT|MEDIA|PLYWOOD|TRANSPARENT)|URL_REQUEST_(GRANTED|DENIED))\\b"},{begin:"\\b(ZERO_VECTOR|TOUCH_INVALID_(TEXCOORD|VECTOR))\\b"}]},{className:"type",begin:"\\b(integer|float|string|key|vector|quaternion|rotation|list)\\b"}]}}},function(e,t){e.exports=function(e){const t={begin:"\\[=*\\[",end:"\\]=*\\]",contains:["self"]},n=[e.COMMENT("--(?!\\[=*\\[)","$"),e.COMMENT("--\\[=*\\[","\\]=*\\]",{contains:[t],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:n.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:n}].concat(n)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\[=*\\[",end:"\\]=*\\]",contains:[t],relevance:5}])}}},function(e,t){e.exports=function(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},o={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t]},r={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},i={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,o,r,{className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,"meta-keyword":".PHONY"}},i]}}},function(e,t){const n=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Apply","ApplySides","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayQ","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstronomicalData","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomList","AtomQ","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTracks","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","BabyMonsterGroupB","Back","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginFrontEndInteractionPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","Binomial","BinomialDistribution","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockMap","BlockRandom","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CardinalBSplineBasis","CarlemanLinearize","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalData","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","ClosingSaveDialog","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledFunction","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteKaryTree","CompletionsListPacket","Complex","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","ConformAudio","ConformImages","Congruent","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegionBox","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnesWindow","ConoverTest","ConsoleMessage","ConsoleMessagePacket","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","Convergents","ConversionOptions","ConversionRules","ConvertToBitmapPacket","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexPolygonQ","ConvexPolyhedronQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyTag","CopyToClipboard","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePalettePacket","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","Cumulant","CumulantGeneratingFunction","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentlySpeakingPacket","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylindricalDecomposition","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFormatTypeForStyle","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayFlushImagePacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplaySetSizePacket","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DragAndDrop","DrawEdges","DrawFrontFaces","DrawHighlighted","Drop","DropoutLayer","DSolve","DSolveValue","Dt","DualLinearProgramming","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoFunction","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EnableConsolePrintPacket","Enabled","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndFrontEndInteractionPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedProcess","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPostmanTour","FindProcessParameters","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlipView","Floor","FlowPolynomial","FlushPrintOutputPacket","Fold","FoldList","FoldPair","FoldPairList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FractionalBrownianMotionProcess","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceOpacity","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionDomain","FunctionExpand","FunctionInterpolation","FunctionPeriod","FunctionRange","FunctionSpace","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedCell","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoPath","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetBoundingBoxSizePacket","GetContext","GetEnvironment","GetFileName","GetFrontEndOptionsDataPacket","GetLinebreakInformationPacket","GetMenusPacket","GetPageBreakInformationPacket","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","Grad","Gradient","GradientFilter","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphElementData","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","HeaderSize","HeaderStyle","Heads","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","Here","HermiteDecomposition","HermiteH","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IgnoreCase","IgnoreDiacritics","IgnorePunctuation","IgnoreSpellCheck","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImagingDevice","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","Interactive","InteractiveTradingChart","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LibraryDataType","LibraryFunction","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseID","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeContainsQ","MoleculeEquivalentQ","MoleculeGraph","MoleculeModify","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeValue","Moment","Momentary","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborGraph","NearestTo","NebulaData","NeedCurrentFrontEndPackagePacket","NeedCurrentFrontEndSymbolsPacket","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestWhile","NestWhileList","NetAppend","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookCreateReturnObject","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookFindReturnObject","NotebookGet","NotebookGetLayoutInformationPacket","NotebookGetMisspellingsPacket","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookOpenReturnObject","NotebookPath","NotebookPrint","NotebookPut","NotebookPutReturnObject","NotebookRead","NotebookResetGeneratedCells","Notebooks","NotebookSave","NotebookSaveAs","NotebookSelection","NotebookSetupLayoutInformationPacket","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhysicalSystemData","Pi","Pick","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderReplace","Plain","PlanarAngle","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointFigureChart","PointLegend","PointSize","PoissonConsulDistribution","PoissonDistribution","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","Projection","Prolog","PromptForm","ProofObject","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","Quit","Quotient","QuotientRemainder","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomChoice","RandomColor","RandomComplex","RandomEntity","RandomFunction","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecognitionPrior","RecognitionThreshold","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionDifference","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionFillingStyle","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteConnect","RemoteConnectionObject","RemoteFile","RemoteRun","RemoteRunProcess","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetMenusPacket","ResetScheduledTask","ReshapeLayer","Residue","ResizeLayer","Resolve","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RiskAchievementImportance","RiskReductionImportance","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionDuplicateCell","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectionSetStyle","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetBoxFormNamesPacket","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetEvaluationNotebook","SetFileDate","SetFileLoadingContext","SetNotebookStatusLine","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetSpeechParametersPacket","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","SetValue","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SnDispersion","Snippet","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolidAngle","SolidData","SolidRegionQ","Solve","SolveAlways","SolveDelayed","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SpatialGraphDistribution","SpatialMedian","SpatialTransformationLayer","Speak","SpeakerMatchQ","SpeakTextPacket","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","SpellingSuggestionsPacket","Sphere","SphereBox","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripWrapperBoxes","StrokeForm","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTracks","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxBackground","TableViewBoxItemSize","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThompsonGroupTh","Thread","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRules","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","TreeForm","TreeGraph","TreeGraphQ","TreePlot","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValidationLength","ValidationSet","Value","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceTest","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerboseConvertToPostScriptPacket","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","Version","VersionedPreferences","VersionNumber","VertexAdd","VertexCapacity","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoPause","VideoPlay","VideoQ","VideoStop","VideoStream","VideoStreams","VideoTimeSeries","VideoTracks","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$ConditionHold","$ConfiguredKernels","$Context","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultLocalBase","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$PublisherID","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterWolframID","$RequesterWolframUUID","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];function o(e){return e?"string"==typeof e?e:e.source:null}function r(e){return i("(",e,")?")}function i(...e){return e.map(e=>o(e)).join("")}function a(...e){return"("+e.map(e=>o(e)).join("|")+")"}e.exports=function(e){const t=a(i(/([2-9]|[1-2]\d|[3][0-5])\^\^/,/(\w*\.\w+|\w+\.\w*|\w+)/),/(\d*\.\d+|\d+\.\d*|\d+)/),o={className:"number",relevance:0,begin:i(t,r(a(/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/)),r(/\*\^[+-]?\d+/))},s=/[a-zA-Z$][a-zA-Z0-9$]*/,c=new Set(n),l={variants:[{className:"builtin-symbol",begin:s,"on:begin":(e,t)=>{c.has(e[0])||t.ignoreMatch()}},{className:"symbol",relevance:0,begin:s}]},d={className:"message-name",relevance:0,begin:i("::",s)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[e.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),{className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},{className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},d,l,{className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},e.QUOTE_STRING_MODE,o,{className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},{className:"brace",relevance:0,begin:/[[\](){}]/}]}}},function(e,t){e.exports=function(e){var t={relevance:0,contains:[{begin:"('|\\.')+"}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:t},{begin:"[a-zA-Z][a-zA-Z_0-9]*('|\\.')+",relevance:0},{className:"number",begin:e.C_NUMBER_RE,relevance:0,starts:t},{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:t},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE,{begin:'""'}],starts:t},e.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),e.COMMENT("%","$")]}}},function(e,t){e.exports=function(e){return{name:"Maxima",keywords:{$pattern:"[A-Za-z_%][0-9A-Za-z_%]*",keyword:"if then else elseif for thru do while unless step in and or not",literal:"true false unknown inf minf ind und %e %i %pi %phi %gamma",built_in:" abasep abs absint absolute_real_time acos acosh acot acoth acsc acsch activate addcol add_edge add_edges addmatrices addrow add_vertex add_vertices adjacency_matrix adjoin adjoint af agd airy airy_ai airy_bi airy_dai airy_dbi algsys alg_type alias allroots alphacharp alphanumericp amortization %and annuity_fv annuity_pv antid antidiff AntiDifference append appendfile apply apply1 apply2 applyb1 apropos args arit_amortization arithmetic arithsum array arrayapply arrayinfo arraymake arraysetapply ascii asec asech asin asinh askinteger asksign assoc assoc_legendre_p assoc_legendre_q assume assume_external_byte_order asympa at atan atan2 atanh atensimp atom atvalue augcoefmatrix augmented_lagrangian_method av average_degree backtrace bars barsplot barsplot_description base64 base64_decode bashindices batch batchload bc2 bdvac belln benefit_cost bern bernpoly bernstein_approx bernstein_expand bernstein_poly bessel bessel_i bessel_j bessel_k bessel_simplify bessel_y beta beta_incomplete beta_incomplete_generalized beta_incomplete_regularized bezout bfallroots bffac bf_find_root bf_fmin_cobyla bfhzeta bfloat bfloatp bfpsi bfpsi0 bfzeta biconnected_components bimetric binomial bipartition block blockmatrixp bode_gain bode_phase bothcoef box boxplot boxplot_description break bug_report build_info|10 buildq build_sample burn cabs canform canten cardinality carg cartan cartesian_product catch cauchy_matrix cbffac cdf_bernoulli cdf_beta cdf_binomial cdf_cauchy cdf_chi2 cdf_continuous_uniform cdf_discrete_uniform cdf_exp cdf_f cdf_gamma cdf_general_finite_discrete cdf_geometric cdf_gumbel cdf_hypergeometric cdf_laplace cdf_logistic cdf_lognormal cdf_negative_binomial cdf_noncentral_chi2 cdf_noncentral_student_t cdf_normal cdf_pareto cdf_poisson cdf_rank_sum cdf_rayleigh cdf_signed_rank cdf_student_t cdf_weibull cdisplay ceiling central_moment cequal cequalignore cf cfdisrep cfexpand cgeodesic cgreaterp cgreaterpignore changename changevar chaosgame charat charfun charfun2 charlist charp charpoly chdir chebyshev_t chebyshev_u checkdiv check_overlaps chinese cholesky christof chromatic_index chromatic_number cint circulant_graph clear_edge_weight clear_rules clear_vertex_label clebsch_gordan clebsch_graph clessp clesspignore close closefile cmetric coeff coefmatrix cograd col collapse collectterms columnop columnspace columnswap columnvector combination combine comp2pui compare compfile compile compile_file complement_graph complete_bipartite_graph complete_graph complex_number_p components compose_functions concan concat conjugate conmetderiv connected_components connect_vertices cons constant constantp constituent constvalue cont2part content continuous_freq contortion contour_plot contract contract_edge contragrad contrib_ode convert coord copy copy_file copy_graph copylist copymatrix cor cos cosh cot coth cov cov1 covdiff covect covers crc24sum create_graph create_list csc csch csetup cspline ctaylor ct_coordsys ctransform ctranspose cube_graph cuboctahedron_graph cunlisp cv cycle_digraph cycle_graph cylindrical days360 dblint deactivate declare declare_constvalue declare_dimensions declare_fundamental_dimensions declare_fundamental_units declare_qty declare_translated declare_unit_conversion declare_units declare_weights decsym defcon define define_alt_display define_variable defint defmatch defrule defstruct deftaylor degree_sequence del delete deleten delta demo demoivre denom depends derivdegree derivlist describe desolve determinant dfloat dgauss_a dgauss_b dgeev dgemm dgeqrf dgesv dgesvd diag diagmatrix diag_matrix diagmatrixp diameter diff digitcharp dimacs_export dimacs_import dimension dimensionless dimensions dimensions_as_list direct directory discrete_freq disjoin disjointp disolate disp dispcon dispform dispfun dispJordan display disprule dispterms distrib divide divisors divsum dkummer_m dkummer_u dlange dodecahedron_graph dotproduct dotsimp dpart draw draw2d draw3d drawdf draw_file draw_graph dscalar echelon edge_coloring edge_connectivity edges eigens_by_jacobi eigenvalues eigenvectors eighth einstein eivals eivects elapsed_real_time elapsed_run_time ele2comp ele2polynome ele2pui elem elementp elevation_grid elim elim_allbut eliminate eliminate_using ellipse elliptic_e elliptic_ec elliptic_eu elliptic_f elliptic_kc elliptic_pi ematrix empty_graph emptyp endcons entermatrix entertensor entier equal equalp equiv_classes erf erfc erf_generalized erfi errcatch error errormsg errors euler ev eval_string evenp every evolution evolution2d evundiff example exp expand expandwrt expandwrt_factored expint expintegral_chi expintegral_ci expintegral_e expintegral_e1 expintegral_ei expintegral_e_simplify expintegral_li expintegral_shi expintegral_si explicit explose exponentialize express expt exsec extdiff extract_linear_equations extremal_subset ezgcd %f f90 facsum factcomb factor factorfacsum factorial factorout factorsum facts fast_central_elements fast_linsolve fasttimes featurep fernfale fft fib fibtophi fifth filename_merge file_search file_type fillarray findde find_root find_root_abs find_root_error find_root_rel first fix flatten flength float floatnump floor flower_snark flush flush1deriv flushd flushnd flush_output fmin_cobyla forget fortran fourcos fourexpand fourier fourier_elim fourint fourintcos fourintsin foursimp foursin fourth fposition frame_bracket freeof freshline fresnel_c fresnel_s from_adjacency_matrix frucht_graph full_listify fullmap fullmapl fullratsimp fullratsubst fullsetify funcsolve fundamental_dimensions fundamental_units fundef funmake funp fv g0 g1 gamma gamma_greek gamma_incomplete gamma_incomplete_generalized gamma_incomplete_regularized gauss gauss_a gauss_b gaussprob gcd gcdex gcdivide gcfac gcfactor gd generalized_lambert_w genfact gen_laguerre genmatrix gensym geo_amortization geo_annuity_fv geo_annuity_pv geomap geometric geometric_mean geosum get getcurrentdirectory get_edge_weight getenv get_lu_factors get_output_stream_string get_pixel get_plot_option get_tex_environment get_tex_environment_default get_vertex_label gfactor gfactorsum ggf girth global_variances gn gnuplot_close gnuplot_replot gnuplot_reset gnuplot_restart gnuplot_start go Gosper GosperSum gr2d gr3d gradef gramschmidt graph6_decode graph6_encode graph6_export graph6_import graph_center graph_charpoly graph_eigenvalues graph_flow graph_order graph_periphery graph_product graph_size graph_union great_rhombicosidodecahedron_graph great_rhombicuboctahedron_graph grid_graph grind grobner_basis grotzch_graph hamilton_cycle hamilton_path hankel hankel_1 hankel_2 harmonic harmonic_mean hav heawood_graph hermite hessian hgfred hilbertmap hilbert_matrix hipow histogram histogram_description hodge horner hypergeometric i0 i1 %ibes ic1 ic2 ic_convert ichr1 ichr2 icosahedron_graph icosidodecahedron_graph icurvature ident identfor identity idiff idim idummy ieqn %if ifactors iframes ifs igcdex igeodesic_coords ilt image imagpart imetric implicit implicit_derivative implicit_plot indexed_tensor indices induced_subgraph inferencep inference_result infix info_display init_atensor init_ctensor in_neighbors innerproduct inpart inprod inrt integerp integer_partitions integrate intersect intersection intervalp intopois intosum invariant1 invariant2 inverse_fft inverse_jacobi_cd inverse_jacobi_cn inverse_jacobi_cs inverse_jacobi_dc inverse_jacobi_dn inverse_jacobi_ds inverse_jacobi_nc inverse_jacobi_nd inverse_jacobi_ns inverse_jacobi_sc inverse_jacobi_sd inverse_jacobi_sn invert invert_by_adjoint invert_by_lu inv_mod irr is is_biconnected is_bipartite is_connected is_digraph is_edge_in_graph is_graph is_graph_or_digraph ishow is_isomorphic isolate isomorphism is_planar isqrt isreal_p is_sconnected is_tree is_vertex_in_graph items_inference %j j0 j1 jacobi jacobian jacobi_cd jacobi_cn jacobi_cs jacobi_dc jacobi_dn jacobi_ds jacobi_nc jacobi_nd jacobi_ns jacobi_p jacobi_sc jacobi_sd jacobi_sn JF jn join jordan julia julia_set julia_sin %k kdels kdelta kill killcontext kostka kron_delta kronecker_product kummer_m kummer_u kurtosis kurtosis_bernoulli kurtosis_beta kurtosis_binomial kurtosis_chi2 kurtosis_continuous_uniform kurtosis_discrete_uniform kurtosis_exp kurtosis_f kurtosis_gamma kurtosis_general_finite_discrete kurtosis_geometric kurtosis_gumbel kurtosis_hypergeometric kurtosis_laplace kurtosis_logistic kurtosis_lognormal kurtosis_negative_binomial kurtosis_noncentral_chi2 kurtosis_noncentral_student_t kurtosis_normal kurtosis_pareto kurtosis_poisson kurtosis_rayleigh kurtosis_student_t kurtosis_weibull label labels lagrange laguerre lambda lambert_w laplace laplacian_matrix last lbfgs lc2kdt lcharp lc_l lcm lc_u ldefint ldisp ldisplay legendre_p legendre_q leinstein length let letrules letsimp levi_civita lfreeof lgtreillis lhs li liediff limit Lindstedt linear linearinterpol linear_program linear_regression line_graph linsolve listarray list_correlations listify list_matrix_entries list_nc_monomials listoftens listofvars listp lmax lmin load loadfile local locate_matrix_entry log logcontract log_gamma lopow lorentz_gauge lowercasep lpart lratsubst lreduce lriemann lsquares_estimates lsquares_estimates_approximate lsquares_estimates_exact lsquares_mse lsquares_residual_mse lsquares_residuals lsum ltreillis lu_backsub lucas lu_factor %m macroexpand macroexpand1 make_array makebox makefact makegamma make_graph make_level_picture makelist makeOrders make_poly_continent make_poly_country make_polygon make_random_state make_rgb_picture makeset make_string_input_stream make_string_output_stream make_transform mandelbrot mandelbrot_set map mapatom maplist matchdeclare matchfix mat_cond mat_fullunblocker mat_function mathml_display mat_norm matrix matrixmap matrixp matrix_size mattrace mat_trace mat_unblocker max max_clique max_degree max_flow maximize_lp max_independent_set max_matching maybe md5sum mean mean_bernoulli mean_beta mean_binomial mean_chi2 mean_continuous_uniform mean_deviation mean_discrete_uniform mean_exp mean_f mean_gamma mean_general_finite_discrete mean_geometric mean_gumbel mean_hypergeometric mean_laplace mean_logistic mean_lognormal mean_negative_binomial mean_noncentral_chi2 mean_noncentral_student_t mean_normal mean_pareto mean_poisson mean_rayleigh mean_student_t mean_weibull median median_deviation member mesh metricexpandall mgf1_sha1 min min_degree min_edge_cut minfactorial minimalPoly minimize_lp minimum_spanning_tree minor minpack_lsquares minpack_solve min_vertex_cover min_vertex_cut mkdir mnewton mod mode_declare mode_identity ModeMatrix moebius mon2schur mono monomial_dimensions multibernstein_poly multi_display_for_texinfo multi_elem multinomial multinomial_coeff multi_orbit multiplot_mode multi_pui multsym multthru mycielski_graph nary natural_unit nc_degree ncexpt ncharpoly negative_picture neighbors new newcontext newdet new_graph newline newton new_variable next_prime nicedummies niceindices ninth nofix nonarray noncentral_moment nonmetricity nonnegintegerp nonscalarp nonzeroandfreeof notequal nounify nptetrad npv nroots nterms ntermst nthroot nullity nullspace num numbered_boundaries numberp number_to_octets num_distinct_partitions numerval numfactor num_partitions nusum nzeta nzetai nzetar octets_to_number octets_to_oid odd_girth oddp ode2 ode_check odelin oid_to_octets op opena opena_binary openr openr_binary openw openw_binary operatorp opsubst optimize %or orbit orbits ordergreat ordergreatp orderless orderlessp orthogonal_complement orthopoly_recur orthopoly_weight outermap out_neighbors outofpois pade parabolic_cylinder_d parametric parametric_surface parg parGosper parse_string parse_timedate part part2cont partfrac partition partition_set partpol path_digraph path_graph pathname_directory pathname_name pathname_type pdf_bernoulli pdf_beta pdf_binomial pdf_cauchy pdf_chi2 pdf_continuous_uniform pdf_discrete_uniform pdf_exp pdf_f pdf_gamma pdf_general_finite_discrete pdf_geometric pdf_gumbel pdf_hypergeometric pdf_laplace pdf_logistic pdf_lognormal pdf_negative_binomial pdf_noncentral_chi2 pdf_noncentral_student_t pdf_normal pdf_pareto pdf_poisson pdf_rank_sum pdf_rayleigh pdf_signed_rank pdf_student_t pdf_weibull pearson_skewness permanent permut permutation permutations petersen_graph petrov pickapart picture_equalp picturep piechart piechart_description planar_embedding playback plog plot2d plot3d plotdf ploteq plsquares pochhammer points poisdiff poisexpt poisint poismap poisplus poissimp poissubst poistimes poistrim polar polarform polartorect polar_to_xy poly_add poly_buchberger poly_buchberger_criterion poly_colon_ideal poly_content polydecomp poly_depends_p poly_elimination_ideal poly_exact_divide poly_expand poly_expt poly_gcd polygon poly_grobner poly_grobner_equal poly_grobner_member poly_grobner_subsetp poly_ideal_intersection poly_ideal_polysaturation poly_ideal_polysaturation1 poly_ideal_saturation poly_ideal_saturation1 poly_lcm poly_minimization polymod poly_multiply polynome2ele polynomialp poly_normal_form poly_normalize poly_normalize_list poly_polysaturation_extension poly_primitive_part poly_pseudo_divide poly_reduced_grobner poly_reduction poly_saturation_extension poly_s_polynomial poly_subtract polytocompanion pop postfix potential power_mod powerseries powerset prefix prev_prime primep primes principal_components print printf printfile print_graph printpois printprops prodrac product properties propvars psi psubst ptriangularize pui pui2comp pui2ele pui2polynome pui_direct puireduc push put pv qput qrange qty quad_control quad_qag quad_qagi quad_qagp quad_qags quad_qawc quad_qawf quad_qawo quad_qaws quadrilateral quantile quantile_bernoulli quantile_beta quantile_binomial quantile_cauchy quantile_chi2 quantile_continuous_uniform quantile_discrete_uniform quantile_exp quantile_f quantile_gamma quantile_general_finite_discrete quantile_geometric quantile_gumbel quantile_hypergeometric quantile_laplace quantile_logistic quantile_lognormal quantile_negative_binomial quantile_noncentral_chi2 quantile_noncentral_student_t quantile_normal quantile_pareto quantile_poisson quantile_rayleigh quantile_student_t quantile_weibull quartile_skewness quit qunit quotient racah_v racah_w radcan radius random random_bernoulli random_beta random_binomial random_bipartite_graph random_cauchy random_chi2 random_continuous_uniform random_digraph random_discrete_uniform random_exp random_f random_gamma random_general_finite_discrete random_geometric random_graph random_graph1 random_gumbel random_hypergeometric random_laplace random_logistic random_lognormal random_negative_binomial random_network random_noncentral_chi2 random_noncentral_student_t random_normal random_pareto random_permutation random_poisson random_rayleigh random_regular_graph random_student_t random_tournament random_tree random_weibull range rank rat ratcoef ratdenom ratdiff ratdisrep ratexpand ratinterpol rational rationalize ratnumer ratnump ratp ratsimp ratsubst ratvars ratweight read read_array read_binary_array read_binary_list read_binary_matrix readbyte readchar read_hashed_array readline read_list read_matrix read_nested_list readonly read_xpm real_imagpart_to_conjugate realpart realroots rearray rectangle rectform rectform_log_if_constant recttopolar rediff reduce_consts reduce_order region region_boundaries region_boundaries_plus rem remainder remarray rembox remcomps remcon remcoord remfun remfunction remlet remove remove_constvalue remove_dimensions remove_edge remove_fundamental_dimensions remove_fundamental_units remove_plot_option remove_vertex rempart remrule remsym remvalue rename rename_file reset reset_displays residue resolvante resolvante_alternee1 resolvante_bipartite resolvante_diedrale resolvante_klein resolvante_klein3 resolvante_produit_sym resolvante_unitaire resolvante_vierer rest resultant return reveal reverse revert revert2 rgb2level rhs ricci riemann rinvariant risch rk rmdir rncombine romberg room rootscontract round row rowop rowswap rreduce run_testsuite %s save saving scalarp scaled_bessel_i scaled_bessel_i0 scaled_bessel_i1 scalefactors scanmap scatterplot scatterplot_description scene schur2comp sconcat scopy scsimp scurvature sdowncase sec sech second sequal sequalignore set_alt_display setdifference set_draw_defaults set_edge_weight setelmx setequalp setify setp set_partitions set_plot_option set_prompt set_random_state set_tex_environment set_tex_environment_default setunits setup_autoload set_up_dot_simplifications set_vertex_label seventh sexplode sf sha1sum sha256sum shortest_path shortest_weighted_path show showcomps showratvars sierpinskiale sierpinskimap sign signum similaritytransform simp_inequality simplify_sum simplode simpmetderiv simtran sin sinh sinsert sinvertcase sixth skewness skewness_bernoulli skewness_beta skewness_binomial skewness_chi2 skewness_continuous_uniform skewness_discrete_uniform skewness_exp skewness_f skewness_gamma skewness_general_finite_discrete skewness_geometric skewness_gumbel skewness_hypergeometric skewness_laplace skewness_logistic skewness_lognormal skewness_negative_binomial skewness_noncentral_chi2 skewness_noncentral_student_t skewness_normal skewness_pareto skewness_poisson skewness_rayleigh skewness_student_t skewness_weibull slength smake small_rhombicosidodecahedron_graph small_rhombicuboctahedron_graph smax smin smismatch snowmap snub_cube_graph snub_dodecahedron_graph solve solve_rec solve_rec_rat some somrac sort sparse6_decode sparse6_encode sparse6_export sparse6_import specint spherical spherical_bessel_j spherical_bessel_y spherical_hankel1 spherical_hankel2 spherical_harmonic spherical_to_xyz splice split sposition sprint sqfr sqrt sqrtdenest sremove sremovefirst sreverse ssearch ssort sstatus ssubst ssubstfirst staircase standardize standardize_inverse_trig starplot starplot_description status std std1 std_bernoulli std_beta std_binomial std_chi2 std_continuous_uniform std_discrete_uniform std_exp std_f std_gamma std_general_finite_discrete std_geometric std_gumbel std_hypergeometric std_laplace std_logistic std_lognormal std_negative_binomial std_noncentral_chi2 std_noncentral_student_t std_normal std_pareto std_poisson std_rayleigh std_student_t std_weibull stemplot stirling stirling1 stirling2 strim striml strimr string stringout stringp strong_components struve_h struve_l sublis sublist sublist_indices submatrix subsample subset subsetp subst substinpart subst_parallel substpart substring subvar subvarp sum sumcontract summand_to_rec supcase supcontext symbolp symmdifference symmetricp system take_channel take_inference tan tanh taylor taylorinfo taylorp taylor_simplifier taytorat tcl_output tcontract tellrat tellsimp tellsimpafter tentex tenth test_mean test_means_difference test_normality test_proportion test_proportions_difference test_rank_sum test_sign test_signed_rank test_variance test_variance_ratio tex tex1 tex_display texput %th third throw time timedate timer timer_info tldefint tlimit todd_coxeter toeplitz tokens to_lisp topological_sort to_poly to_poly_solve totaldisrep totalfourier totient tpartpol trace tracematrix trace_options transform_sample translate translate_file transpose treefale tree_reduce treillis treinat triangle triangularize trigexpand trigrat trigreduce trigsimp trunc truncate truncated_cube_graph truncated_dodecahedron_graph truncated_icosahedron_graph truncated_tetrahedron_graph tr_warnings_get tube tutte_graph ueivects uforget ultraspherical underlying_graph undiff union unique uniteigenvectors unitp units unit_step unitvector unorder unsum untellrat untimer untrace uppercasep uricci uriemann uvect vandermonde_matrix var var1 var_bernoulli var_beta var_binomial var_chi2 var_continuous_uniform var_discrete_uniform var_exp var_f var_gamma var_general_finite_discrete var_geometric var_gumbel var_hypergeometric var_laplace var_logistic var_lognormal var_negative_binomial var_noncentral_chi2 var_noncentral_student_t var_normal var_pareto var_poisson var_rayleigh var_student_t var_weibull vector vectorpotential vectorsimp verbify vers vertex_coloring vertex_connectivity vertex_degree vertex_distance vertex_eccentricity vertex_in_degree vertex_out_degree vertices vertices_to_cycle vertices_to_path %w weyl wheel_graph wiener_index wigner_3j wigner_6j wigner_9j with_stdout write_binary_data writebyte write_data writefile wronskian xreduce xthru %y Zeilberger zeroequiv zerofor zeromatrix zeromatrixp zeta zgeev zheev zlange zn_add_table zn_carmichael_lambda zn_characteristic_factors zn_determinant zn_factor_generators zn_invert_by_lu zn_log zn_mult_table absboxchar activecontexts adapt_depth additive adim aform algebraic algepsilon algexact aliases allbut all_dotsimp_denoms allocation allsym alphabetic animation antisymmetric arrays askexp assume_pos assume_pos_pred assumescalar asymbol atomgrad atrig1 axes axis_3d axis_bottom axis_left axis_right axis_top azimuth background background_color backsubst berlefact bernstein_explicit besselexpand beta_args_sum_to_integer beta_expand bftorat bftrunc bindtest border boundaries_array box boxchar breakup %c capping cauchysum cbrange cbtics center cflength cframe_flag cnonmet_flag color color_bar color_bar_tics colorbox columns commutative complex cone context contexts contour contour_levels cosnpiflag ctaypov ctaypt ctayswitch ctayvar ct_coords ctorsion_flag ctrgsimp cube current_let_rule_package cylinder data_file_name debugmode decreasing default_let_rule_package delay dependencies derivabbrev derivsubst detout diagmetric diff dim dimensions dispflag display2d|10 display_format_internal distribute_over doallmxops domain domxexpt domxmxops domxnctimes dontfactor doscmxops doscmxplus dot0nscsimp dot0simp dot1simp dotassoc dotconstrules dotdistrib dotexptsimp dotident dotscrules draw_graph_program draw_realpart edge_color edge_coloring edge_partition edge_type edge_width %edispflag elevation %emode endphi endtheta engineering_format_floats enhanced3d %enumer epsilon_lp erfflag erf_representation errormsg error_size error_syms error_type %e_to_numlog eval even evenfun evflag evfun ev_point expandwrt_denom expintexpand expintrep expon expop exptdispflag exptisolate exptsubst facexpand facsum_combine factlim factorflag factorial_expand factors_only fb feature features file_name file_output_append file_search_demo file_search_lisp file_search_maxima|10 file_search_tests file_search_usage file_type_lisp file_type_maxima|10 fill_color fill_density filled_func fixed_vertices flipflag float2bf font font_size fortindent fortspaces fpprec fpprintprec functions gamma_expand gammalim gdet genindex gensumnum GGFCFMAX GGFINFINITY globalsolve gnuplot_command gnuplot_curve_styles gnuplot_curve_titles gnuplot_default_term_command gnuplot_dumb_term_command gnuplot_file_args gnuplot_file_name gnuplot_out_file gnuplot_pdf_term_command gnuplot_pm3d gnuplot_png_term_command gnuplot_postamble gnuplot_preamble gnuplot_ps_term_command gnuplot_svg_term_command gnuplot_term gnuplot_view_args Gosper_in_Zeilberger gradefs grid grid2d grind halfangles head_angle head_both head_length head_type height hypergeometric_representation %iargs ibase icc1 icc2 icounter idummyx ieqnprint ifb ifc1 ifc2 ifg ifgi ifr iframe_bracket_form ifri igeowedge_flag ikt1 ikt2 imaginary inchar increasing infeval infinity inflag infolists inm inmc1 inmc2 intanalysis integer integervalued integrate_use_rootsof integration_constant integration_constant_counter interpolate_color intfaclim ip_grid ip_grid_in irrational isolate_wrt_times iterations itr julia_parameter %k1 %k2 keepfloat key key_pos kinvariant kt label label_alignment label_orientation labels lassociative lbfgs_ncorrections lbfgs_nfeval_max leftjust legend letrat let_rule_packages lfg lg lhospitallim limsubst linear linear_solver linechar linel|10 linenum line_type linewidth line_width linsolve_params linsolvewarn lispdisp listarith listconstvars listdummyvars lmxchar load_pathname loadprint logabs logarc logcb logconcoeffp logexpand lognegint logsimp logx logx_secondary logy logy_secondary logz lriem m1pbranch macroexpansion macros mainvar manual_demo maperror mapprint matrix_element_add matrix_element_mult matrix_element_transpose maxapplydepth maxapplyheight maxima_tempdir|10 maxima_userdir|10 maxnegex MAX_ORD maxposex maxpsifracdenom maxpsifracnum maxpsinegint maxpsiposint maxtayorder mesh_lines_color method mod_big_prime mode_check_errorp mode_checkp mode_check_warnp mod_test mod_threshold modular_linear_solver modulus multiplicative multiplicities myoptions nary negdistrib negsumdispflag newline newtonepsilon newtonmaxiter nextlayerfactor niceindicespref nm nmc noeval nolabels nonegative_lp noninteger nonscalar noun noundisp nouns np npi nticks ntrig numer numer_pbranch obase odd oddfun opacity opproperties opsubst optimprefix optionset orientation origin orthopoly_returns_intervals outative outchar packagefile palette partswitch pdf_file pfeformat phiresolution %piargs piece pivot_count_sx pivot_max_sx plot_format plot_options plot_realpart png_file pochhammer_max_index points pointsize point_size points_joined point_type poislim poisson poly_coefficient_ring poly_elimination_order polyfactor poly_grobner_algorithm poly_grobner_debug poly_monomial_order poly_primary_elimination_order poly_return_term_list poly_secondary_elimination_order poly_top_reduction_only posfun position powerdisp pred prederror primep_number_of_tests product_use_gamma program programmode promote_float_to_bigfloat prompt proportional_axes props psexpand ps_file radexpand radius radsubstflag rassociative ratalgdenom ratchristof ratdenomdivide rateinstein ratepsilon ratfac rational ratmx ratprint ratriemann ratsimpexpons ratvarswitch ratweights ratweyl ratwtlvl real realonly redraw refcheck resolution restart resultant ric riem rmxchar %rnum_list rombergabs rombergit rombergmin rombergtol rootsconmode rootsepsilon run_viewer same_xy same_xyz savedef savefactors scalar scalarmatrixp scale scale_lp setcheck setcheckbreak setval show_edge_color show_edges show_edge_type show_edge_width show_id show_label showtime show_vertex_color show_vertex_size show_vertex_type show_vertices show_weight simp simplified_output simplify_products simpproduct simpsum sinnpiflag solvedecomposes solveexplicit solvefactors solvenullwarn solveradcan solvetrigwarn space sparse sphere spring_embedding_depth sqrtdispflag stardisp startphi starttheta stats_numer stringdisp structures style sublis_apply_lambda subnumsimp sumexpand sumsplitfact surface surface_hide svg_file symmetric tab taylordepth taylor_logexpand taylor_order_coefficients taylor_truncate_polynomials tensorkill terminal testsuite_files thetaresolution timer_devalue title tlimswitch tr track transcompile transform transform_xy translate_fast_arrays transparent transrun tr_array_as_ref tr_bound_function_applyp tr_file_tty_messagesp tr_float_can_branch_complex tr_function_call_default trigexpandplus trigexpandtimes triginverses trigsign trivial_solutions tr_numer tr_optimize_max_loop tr_semicompile tr_state_vars tr_warn_bad_function_calls tr_warn_fexpr tr_warn_meval tr_warn_mode tr_warn_undeclared tr_warn_undefined_variable tstep ttyoff tube_extremes ufg ug %unitexpand unit_vectors uric uriem use_fast_arrays user_preamble usersetunits values vect_cross verbose vertex_color vertex_coloring vertex_partition vertex_size vertex_type view warnings weyl width windowname windowtitle wired_surface wireframe xaxis xaxis_color xaxis_secondary xaxis_type xaxis_width xlabel xlabel_secondary xlength xrange xrange_secondary xtics xtics_axis xtics_rotate xtics_rotate_secondary xtics_secondary xtics_secondary_axis xu_grid x_voxel xy_file xyplane xy_scale yaxis yaxis_color yaxis_secondary yaxis_type yaxis_width ylabel ylabel_secondary ylength yrange yrange_secondary ytics ytics_axis ytics_rotate ytics_rotate_secondary ytics_secondary ytics_secondary_axis yv_grid y_voxel yx_ratio zaxis zaxis_color zaxis_type zaxis_width zeroa zerob zerobern zeta%pi zlabel zlabel_rotate zlength zmin zn_primroot_limit zn_primroot_pretest",symbol:"_ __ %|0 %%|0"},contains:[{className:"comment",begin:"/\\*",end:"\\*/",contains:["self"]},e.QUOTE_STRING_MODE,{className:"number",relevance:0,variants:[{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Ee][-+]?\\d+\\b"},{begin:"\\b(\\d+|\\d+\\.|\\.\\d+|\\d+\\.\\d+)[Bb][-+]?\\d+\\b",relevance:10},{begin:"\\b(\\.\\d+|\\d+\\.\\d+)\\b"},{begin:"\\b(\\d+|0[0-9A-Za-z]+)\\.?\\b"}]}],illegal:/@/}}},function(e,t){e.exports=function(e){return{name:"MEL",keywords:"int float string vector matrix if else switch case default while do for in break continue global proc return about abs addAttr addAttributeEditorNodeHelp addDynamic addNewShelfTab addPP addPanelCategory addPrefixToName advanceToNextDrivenKey affectedNet affects aimConstraint air alias aliasAttr align alignCtx alignCurve alignSurface allViewFit ambientLight angle angleBetween animCone animCurveEditor animDisplay animView annotate appendStringArray applicationName applyAttrPreset applyTake arcLenDimContext arcLengthDimension arclen arrayMapper art3dPaintCtx artAttrCtx artAttrPaintVertexCtx artAttrSkinPaintCtx artAttrTool artBuildPaintMenu artFluidAttrCtx artPuttyCtx artSelectCtx artSetPaintCtx artUserPaintCtx assignCommand assignInputDevice assignViewportFactories attachCurve attachDeviceAttr attachSurface attrColorSliderGrp attrCompatibility attrControlGrp attrEnumOptionMenu attrEnumOptionMenuGrp attrFieldGrp attrFieldSliderGrp attrNavigationControlGrp attrPresetEditWin attributeExists attributeInfo attributeMenu attributeQuery autoKeyframe autoPlace bakeClip bakeFluidShading bakePartialHistory bakeResults bakeSimulation basename basenameEx batchRender bessel bevel bevelPlus binMembership bindSkin blend2 blendShape blendShapeEditor blendShapePanel blendTwoAttr blindDataType boneLattice boundary boxDollyCtx boxZoomCtx bufferCurve buildBookmarkMenu buildKeyframeMenu button buttonManip CBG cacheFile cacheFileCombine cacheFileMerge cacheFileTrack camera cameraView canCreateManip canvas capitalizeString catch catchQuiet ceil changeSubdivComponentDisplayLevel changeSubdivRegion channelBox character characterMap characterOutlineEditor characterize chdir checkBox checkBoxGrp checkDefaultRenderGlobals choice circle circularFillet clamp clear clearCache clip clipEditor clipEditorCurrentTimeCtx clipSchedule clipSchedulerOutliner clipTrimBefore closeCurve closeSurface cluster cmdFileOutput cmdScrollFieldExecuter cmdScrollFieldReporter cmdShell coarsenSubdivSelectionList collision color colorAtPoint colorEditor colorIndex colorIndexSliderGrp colorSliderButtonGrp colorSliderGrp columnLayout commandEcho commandLine commandPort compactHairSystem componentEditor compositingInterop computePolysetVolume condition cone confirmDialog connectAttr connectControl connectDynamic connectJoint connectionInfo constrain constrainValue constructionHistory container containsMultibyte contextInfo control convertFromOldLayers convertIffToPsd convertLightmap convertSolidTx convertTessellation convertUnit copyArray copyFlexor copyKey copySkinWeights cos cpButton cpCache cpClothSet cpCollision cpConstraint cpConvClothToMesh cpForces cpGetSolverAttr cpPanel cpProperty cpRigidCollisionFilter cpSeam cpSetEdit cpSetSolverAttr cpSolver cpSolverTypes cpTool cpUpdateClothUVs createDisplayLayer createDrawCtx createEditor createLayeredPsdFile createMotionField createNewShelf createNode createRenderLayer createSubdivRegion cross crossProduct ctxAbort ctxCompletion ctxEditMode ctxTraverse currentCtx currentTime currentTimeCtx currentUnit curve curveAddPtCtx curveCVCtx curveEPCtx curveEditorCtx curveIntersect curveMoveEPCtx curveOnSurface curveSketchCtx cutKey cycleCheck cylinder dagPose date defaultLightListCheckBox defaultNavigation defineDataServer defineVirtualDevice deformer deg_to_rad delete deleteAttr deleteShadingGroupsAndMaterials deleteShelfTab deleteUI deleteUnusedBrushes delrandstr detachCurve detachDeviceAttr detachSurface deviceEditor devicePanel dgInfo dgdirty dgeval dgtimer dimWhen directKeyCtx directionalLight dirmap dirname disable disconnectAttr disconnectJoint diskCache displacementToPoly displayAffected displayColor displayCull displayLevelOfDetail displayPref displayRGBColor displaySmoothness displayStats displayString displaySurface distanceDimContext distanceDimension doBlur dolly dollyCtx dopeSheetEditor dot dotProduct doubleProfileBirailSurface drag dragAttrContext draggerContext dropoffLocator duplicate duplicateCurve duplicateSurface dynCache dynControl dynExport dynExpression dynGlobals dynPaintEditor dynParticleCtx dynPref dynRelEdPanel dynRelEditor dynamicLoad editAttrLimits editDisplayLayerGlobals editDisplayLayerMembers editRenderLayerAdjustment editRenderLayerGlobals editRenderLayerMembers editor editorTemplate effector emit emitter enableDevice encodeString endString endsWith env equivalent equivalentTol erf error eval evalDeferred evalEcho event exactWorldBoundingBox exclusiveLightCheckBox exec executeForEachObject exists exp expression expressionEditorListen extendCurve extendSurface extrude fcheck fclose feof fflush fgetline fgetword file fileBrowserDialog fileDialog fileExtension fileInfo filetest filletCurve filter filterCurve filterExpand filterStudioImport findAllIntersections findAnimCurves findKeyframe findMenuItem findRelatedSkinCluster finder firstParentOf fitBspline flexor floatEq floatField floatFieldGrp floatScrollBar floatSlider floatSlider2 floatSliderButtonGrp floatSliderGrp floor flow fluidCacheInfo fluidEmitter fluidVoxelInfo flushUndo fmod fontDialog fopen formLayout format fprint frameLayout fread freeFormFillet frewind fromNativePath fwrite gamma gauss geometryConstraint getApplicationVersionAsFloat getAttr getClassification getDefaultBrush getFileList getFluidAttr getInputDeviceRange getMayaPanelTypes getModifiers getPanel getParticleAttr getPluginResource getenv getpid glRender glRenderEditor globalStitch gmatch goal gotoBindPose grabColor gradientControl gradientControlNoAttr graphDollyCtx graphSelectContext graphTrackCtx gravity grid gridLayout group groupObjectsByName HfAddAttractorToAS HfAssignAS HfBuildEqualMap HfBuildFurFiles HfBuildFurImages HfCancelAFR HfConnectASToHF HfCreateAttractor HfDeleteAS HfEditAS HfPerformCreateAS HfRemoveAttractorFromAS HfSelectAttached HfSelectAttractors HfUnAssignAS hardenPointCurve hardware hardwareRenderPanel headsUpDisplay headsUpMessage help helpLine hermite hide hilite hitTest hotBox hotkey hotkeyCheck hsv_to_rgb hudButton hudSlider hudSliderButton hwReflectionMap hwRender hwRenderLoad hyperGraph hyperPanel hyperShade hypot iconTextButton iconTextCheckBox iconTextRadioButton iconTextRadioCollection iconTextScrollList iconTextStaticLabel ikHandle ikHandleCtx ikHandleDisplayScale ikSolver ikSplineHandleCtx ikSystem ikSystemInfo ikfkDisplayMethod illustratorCurves image imfPlugins inheritTransform insertJoint insertJointCtx insertKeyCtx insertKnotCurve insertKnotSurface instance instanceable instancer intField intFieldGrp intScrollBar intSlider intSliderGrp interToUI internalVar intersect iprEngine isAnimCurve isConnected isDirty isParentOf isSameObject isTrue isValidObjectName isValidString isValidUiName isolateSelect itemFilter itemFilterAttr itemFilterRender itemFilterType joint jointCluster jointCtx jointDisplayScale jointLattice keyTangent keyframe keyframeOutliner keyframeRegionCurrentTimeCtx keyframeRegionDirectKeyCtx keyframeRegionDollyCtx keyframeRegionInsertKeyCtx keyframeRegionMoveKeyCtx keyframeRegionScaleKeyCtx keyframeRegionSelectKeyCtx keyframeRegionSetKeyCtx keyframeRegionTrackCtx keyframeStats lassoContext lattice latticeDeformKeyCtx launch launchImageEditor layerButton layeredShaderPort layeredTexturePort layout layoutDialog lightList lightListEditor lightListPanel lightlink lineIntersection linearPrecision linstep listAnimatable listAttr listCameras listConnections listDeviceAttachments listHistory listInputDeviceAxes listInputDeviceButtons listInputDevices listMenuAnnotation listNodeTypes listPanelCategories listRelatives listSets listTransforms listUnselected listerEditor loadFluid loadNewShelf loadPlugin loadPluginLanguageResources loadPrefObjects localizedPanelLabel lockNode loft log longNameOf lookThru ls lsThroughFilter lsType lsUI Mayatomr mag makeIdentity makeLive makePaintable makeRoll makeSingleSurface makeTubeOn makebot manipMoveContext manipMoveLimitsCtx manipOptions manipRotateContext manipRotateLimitsCtx manipScaleContext manipScaleLimitsCtx marker match max memory menu menuBarLayout menuEditor menuItem menuItemToShelf menuSet menuSetPref messageLine min minimizeApp mirrorJoint modelCurrentTimeCtx modelEditor modelPanel mouse movIn movOut move moveIKtoFK moveKeyCtx moveVertexAlongDirection multiProfileBirailSurface mute nParticle nameCommand nameField namespace namespaceInfo newPanelItems newton nodeCast nodeIconButton nodeOutliner nodePreset nodeType noise nonLinear normalConstraint normalize nurbsBoolean nurbsCopyUVSet nurbsCube nurbsEditUV nurbsPlane nurbsSelect nurbsSquare nurbsToPoly nurbsToPolygonsPref nurbsToSubdiv nurbsToSubdivPref nurbsUVSet nurbsViewDirectionVector objExists objectCenter objectLayer objectType objectTypeUI obsoleteProc oceanNurbsPreviewPlane offsetCurve offsetCurveOnSurface offsetSurface openGLExtension openMayaPref optionMenu optionMenuGrp optionVar orbit orbitCtx orientConstraint outlinerEditor outlinerPanel overrideModifier paintEffectsDisplay pairBlend palettePort paneLayout panel panelConfiguration panelHistory paramDimContext paramDimension paramLocator parent parentConstraint particle particleExists particleInstancer particleRenderInfo partition pasteKey pathAnimation pause pclose percent performanceOptions pfxstrokes pickWalk picture pixelMove planarSrf plane play playbackOptions playblast plugAttr plugNode pluginInfo pluginResourceUtil pointConstraint pointCurveConstraint pointLight pointMatrixMult pointOnCurve pointOnSurface pointPosition poleVectorConstraint polyAppend polyAppendFacetCtx polyAppendVertex polyAutoProjection polyAverageNormal polyAverageVertex polyBevel polyBlendColor polyBlindData polyBoolOp polyBridgeEdge polyCacheMonitor polyCheck polyChipOff polyClipboard polyCloseBorder polyCollapseEdge polyCollapseFacet polyColorBlindData polyColorDel polyColorPerVertex polyColorSet polyCompare polyCone polyCopyUV polyCrease polyCreaseCtx polyCreateFacet polyCreateFacetCtx polyCube polyCut polyCutCtx polyCylinder polyCylindricalProjection polyDelEdge polyDelFacet polyDelVertex polyDuplicateAndConnect polyDuplicateEdge polyEditUV polyEditUVShell polyEvaluate polyExtrudeEdge polyExtrudeFacet polyExtrudeVertex polyFlipEdge polyFlipUV polyForceUV polyGeoSampler polyHelix polyInfo polyInstallAction polyLayoutUV polyListComponentConversion polyMapCut polyMapDel polyMapSew polyMapSewMove polyMergeEdge polyMergeEdgeCtx polyMergeFacet polyMergeFacetCtx polyMergeUV polyMergeVertex polyMirrorFace polyMoveEdge polyMoveFacet polyMoveFacetUV polyMoveUV polyMoveVertex polyNormal polyNormalPerVertex polyNormalizeUV polyOptUvs polyOptions polyOutput polyPipe polyPlanarProjection polyPlane polyPlatonicSolid polyPoke polyPrimitive polyPrism polyProjection polyPyramid polyQuad polyQueryBlindData polyReduce polySelect polySelectConstraint polySelectConstraintMonitor polySelectCtx polySelectEditCtx polySeparate polySetToFaceNormal polySewEdge polyShortestPathCtx polySmooth polySoftEdge polySphere polySphericalProjection polySplit polySplitCtx polySplitEdge polySplitRing polySplitVertex polyStraightenUVBorder polySubdivideEdge polySubdivideFacet polyToSubdiv polyTorus polyTransfer polyTriangulate polyUVSet polyUnite polyWedgeFace popen popupMenu pose pow preloadRefEd print progressBar progressWindow projFileViewer projectCurve projectTangent projectionContext projectionManip promptDialog propModCtx propMove psdChannelOutliner psdEditTextureFile psdExport psdTextureFile putenv pwd python querySubdiv quit rad_to_deg radial radioButton radioButtonGrp radioCollection radioMenuItemCollection rampColorPort rand randomizeFollicles randstate rangeControl readTake rebuildCurve rebuildSurface recordAttr recordDevice redo reference referenceEdit referenceQuery refineSubdivSelectionList refresh refreshAE registerPluginResource rehash reloadImage removeJoint removeMultiInstance removePanelCategory rename renameAttr renameSelectionList renameUI render renderGlobalsNode renderInfo renderLayerButton renderLayerParent renderLayerPostProcess renderLayerUnparent renderManip renderPartition renderQualityNode renderSettings renderThumbnailUpdate renderWindowEditor renderWindowSelectContext renderer reorder reorderDeformers requires reroot resampleFluid resetAE resetPfxToPolyCamera resetTool resolutionNode retarget reverseCurve reverseSurface revolve rgb_to_hsv rigidBody rigidSolver roll rollCtx rootOf rot rotate rotationInterpolation roundConstantRadius rowColumnLayout rowLayout runTimeCommand runup sampleImage saveAllShelves saveAttrPreset saveFluid saveImage saveInitialState saveMenu savePrefObjects savePrefs saveShelf saveToolSettings scale scaleBrushBrightness scaleComponents scaleConstraint scaleKey scaleKeyCtx sceneEditor sceneUIReplacement scmh scriptCtx scriptEditorInfo scriptJob scriptNode scriptTable scriptToShelf scriptedPanel scriptedPanelType scrollField scrollLayout sculpt searchPathArray seed selLoadSettings select selectContext selectCurveCV selectKey selectKeyCtx selectKeyframeRegionCtx selectMode selectPref selectPriority selectType selectedNodes selectionConnection separator setAttr setAttrEnumResource setAttrMapping setAttrNiceNameResource setConstraintRestPosition setDefaultShadingGroup setDrivenKeyframe setDynamic setEditCtx setEditor setFluidAttr setFocus setInfinity setInputDeviceMapping setKeyCtx setKeyPath setKeyframe setKeyframeBlendshapeTargetWts setMenuMode setNodeNiceNameResource setNodeTypeFlag setParent setParticleAttr setPfxToPolyCamera setPluginResource setProject setStampDensity setStartupMessage setState setToolTo setUITemplate setXformManip sets shadingConnection shadingGeometryRelCtx shadingLightRelCtx shadingNetworkCompare shadingNode shapeCompare shelfButton shelfLayout shelfTabLayout shellField shortNameOf showHelp showHidden showManipCtx showSelectionInTitle showShadingGroupAttrEditor showWindow sign simplify sin singleProfileBirailSurface size sizeBytes skinCluster skinPercent smoothCurve smoothTangentSurface smoothstep snap2to2 snapKey snapMode snapTogetherCtx snapshot soft softMod softModCtx sort sound soundControl source spaceLocator sphere sphrand spotLight spotLightPreviewPort spreadSheetEditor spring sqrt squareSurface srtContext stackTrace startString startsWith stitchAndExplodeShell stitchSurface stitchSurfacePoints strcmp stringArrayCatenate stringArrayContains stringArrayCount stringArrayInsertAtIndex stringArrayIntersector stringArrayRemove stringArrayRemoveAtIndex stringArrayRemoveDuplicates stringArrayRemoveExact stringArrayToString stringToStringArray strip stripPrefixFromName stroke subdAutoProjection subdCleanTopology subdCollapse subdDuplicateAndConnect subdEditUV subdListComponentConversion subdMapCut subdMapSewMove subdMatchTopology subdMirror subdToBlind subdToPoly subdTransferUVsToCache subdiv subdivCrease subdivDisplaySmoothness substitute substituteAllString substituteGeometry substring surface surfaceSampler surfaceShaderList swatchDisplayPort switchTable symbolButton symbolCheckBox sysFile system tabLayout tan tangentConstraint texLatticeDeformContext texManipContext texMoveContext texMoveUVShellContext texRotateContext texScaleContext texSelectContext texSelectShortestPathCtx texSmudgeUVContext texWinToolCtx text textCurves textField textFieldButtonGrp textFieldGrp textManip textScrollList textToShelf textureDisplacePlane textureHairColor texturePlacementContext textureWindow threadCount threePointArcCtx timeControl timePort timerX toNativePath toggle toggleAxis toggleWindowVisibility tokenize tokenizeList tolerance tolower toolButton toolCollection toolDropped toolHasOptions toolPropertyWindow torus toupper trace track trackCtx transferAttributes transformCompare transformLimits translator trim trunc truncateFluidCache truncateHairCache tumble tumbleCtx turbulence twoPointArcCtx uiRes uiTemplate unassignInputDevice undo undoInfo ungroup uniform unit unloadPlugin untangleUV untitledFileName untrim upAxis updateAE userCtx uvLink uvSnapshot validateShelfName vectorize view2dToolCtx viewCamera viewClipPlane viewFit viewHeadOn viewLookAt viewManip viewPlace viewSet visor volumeAxis vortex waitCursor warning webBrowser webBrowserPrefs whatIs window windowPref wire wireContext workspace wrinkle wrinkleContext writeTake xbmLangPathList xform",illegal:"</",contains:[e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/[$%@](\^\w\b|#\w+|[^\s\w{]|\{\w+\}|\w+)/},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}},function(e,t){e.exports=function(e){const t=e.COMMENT("%","$"),n=e.inherit(e.APOS_STRING_MODE,{relevance:0}),o=e.inherit(e.QUOTE_STRING_MODE,{relevance:0});return o.contains=o.contains.slice(),o.contains.push({className:"subst",begin:"\\\\[abfnrtv]\\|\\\\x[0-9a-fA-F]*\\\\\\|%[-+# *.0-9]*[dioxXucsfeEgGp]",relevance:0}),{name:"Mercury",aliases:["m","moo"],keywords:{keyword:"module use_module import_module include_module end_module initialise mutable initialize finalize finalise interface implementation pred mode func type inst solver any_pred any_func is semidet det nondet multi erroneous failure cc_nondet cc_multi typeclass instance where pragma promise external trace atomic or_else require_complete_switch require_det require_semidet require_multi require_nondet require_cc_multi require_cc_nondet require_erroneous require_failure",meta:"inline no_inline type_spec source_file fact_table obsolete memo loop_check minimal_model terminates does_not_terminate check_termination promise_equivalent_clauses foreign_proc foreign_decl foreign_code foreign_type foreign_import_module foreign_export_enum foreign_export foreign_enum may_call_mercury will_not_call_mercury thread_safe not_thread_safe maybe_thread_safe promise_pure promise_semipure tabled_for_io local untrailed trailed attach_to_io_state can_pass_as_mercury_type stable will_not_throw_exception may_modify_trail will_not_modify_trail may_duplicate may_not_duplicate affects_liveness does_not_affect_liveness doesnt_affect_liveness no_sharing unknown_sharing sharing",built_in:"some all not if then else true fail false try catch catch_any semidet_true semidet_false semidet_fail impure_true impure semipure"},contains:[{className:"built_in",variants:[{begin:"<=>"},{begin:"<=",relevance:0},{begin:"=>",relevance:0},{begin:"/\\\\"},{begin:"\\\\/"}]},{className:"built_in",variants:[{begin:":-\\|--\x3e"},{begin:"=",relevance:0}]},t,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"0'.\\|0[box][0-9a-fA-F]*"},e.NUMBER_MODE,n,o,{begin:/:-/},{begin:/\.$/}]}}},function(e,t){e.exports=function(e){return{name:"MIPS Assembly",case_insensitive:!0,aliases:["mips"],keywords:{$pattern:"\\.?"+e.IDENT_RE,meta:".2byte .4byte .align .ascii .asciz .balign .byte .code .data .else .end .endif .endm .endr .equ .err .exitm .extern .global .hword .if .ifdef .ifndef .include .irp .long .macro .rept .req .section .set .skip .space .text .word .ltorg ",built_in:"$0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15 $16 $17 $18 $19 $20 $21 $22 $23 $24 $25 $26 $27 $28 $29 $30 $31 zero at v0 v1 a0 a1 a2 a3 a4 a5 a6 a7 t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 s0 s1 s2 s3 s4 s5 s6 s7 s8 k0 k1 gp sp fp ra $f0 $f1 $f2 $f2 $f4 $f5 $f6 $f7 $f8 $f9 $f10 $f11 $f12 $f13 $f14 $f15 $f16 $f17 $f18 $f19 $f20 $f21 $f22 $f23 $f24 $f25 $f26 $f27 $f28 $f29 $f30 $f31 Context Random EntryLo0 EntryLo1 Context PageMask Wired EntryHi HWREna BadVAddr Count Compare SR IntCtl SRSCtl SRSMap Cause EPC PRId EBase Config Config1 Config2 Config3 LLAddr Debug DEPC DESAVE CacheErr ECC ErrorEPC TagLo DataLo TagHi DataHi WatchLo WatchHi PerfCtl PerfCnt "},contains:[{className:"keyword",begin:"\\b(addi?u?|andi?|b(al)?|beql?|bgez(al)?l?|bgtzl?|blezl?|bltz(al)?l?|bnel?|cl[oz]|divu?|ext|ins|j(al)?|jalr(\\.hb)?|jr(\\.hb)?|lbu?|lhu?|ll|lui|lw[lr]?|maddu?|mfhi|mflo|movn|movz|move|msubu?|mthi|mtlo|mul|multu?|nop|nor|ori?|rotrv?|sb|sc|se[bh]|sh|sllv?|slti?u?|srav?|srlv?|subu?|sw[lr]?|xori?|wsbh|abs\\.[sd]|add\\.[sd]|alnv.ps|bc1[ft]l?|c\\.(s?f|un|u?eq|[ou]lt|[ou]le|ngle?|seq|l[et]|ng[et])\\.[sd]|(ceil|floor|round|trunc)\\.[lw]\\.[sd]|cfc1|cvt\\.d\\.[lsw]|cvt\\.l\\.[dsw]|cvt\\.ps\\.s|cvt\\.s\\.[dlw]|cvt\\.s\\.p[lu]|cvt\\.w\\.[dls]|div\\.[ds]|ldx?c1|luxc1|lwx?c1|madd\\.[sd]|mfc1|mov[fntz]?\\.[ds]|msub\\.[sd]|mth?c1|mul\\.[ds]|neg\\.[ds]|nmadd\\.[ds]|nmsub\\.[ds]|p[lu][lu]\\.ps|recip\\.fmt|r?sqrt\\.[ds]|sdx?c1|sub\\.[ds]|suxc1|swx?c1|break|cache|d?eret|[de]i|ehb|mfc0|mtc0|pause|prefx?|rdhwr|rdpgpr|sdbbp|ssnop|synci?|syscall|teqi?|tgei?u?|tlb(p|r|w[ir])|tlti?u?|tnei?|wait|wrpgpr)",end:"\\s"},e.COMMENT("[;#](?!\\s*$)","$"),e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"[^\\\\]'",relevance:0},{className:"title",begin:"\\|",end:"\\|",illegal:"\\n",relevance:0},{className:"number",variants:[{begin:"0x[0-9a-f]+"},{begin:"\\b-?\\d+"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[a-z_\\.\\$][a-z0-9_\\.\\$]+:"},{begin:"^\\s*[0-9]+:"},{begin:"[0-9]+[bf]"}],relevance:0}],illegal:/\//}}},function(e,t){e.exports=function(e){return{name:"Mizar",keywords:"environ vocabularies notations constructors definitions registrations theorems schemes requirements begin end definition registration cluster existence pred func defpred deffunc theorem proof let take assume then thus hence ex for st holds consider reconsider such that and in provided of as from be being by means equals implies iff redefine define now not or attr is mode suppose per cases set thesis contradiction scheme reserve struct correctness compatibility coherence symmetry assymetry reflexivity irreflexivity connectedness uniqueness commutativity idempotence involutiveness projectivity",contains:[e.COMMENT("::","$")]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t=/[dualxmsipn]{0,12}/,o={$pattern:/[\w.]+/,keyword:"getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qq fileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmget sub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedir ioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when"},r={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:o},i={begin:/->\{/,end:/\}/},a={variants:[{begin:/\$\d/},{begin:n(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},s=[e.BACKSLASH_ESCAPE,r,a],c=[a,e.HASH_COMMENT_MODE,e.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),i,{className:"string",contains:s,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,contains:[],relevance:0},{begin:"-?\\w+\\s*=>",contains:[],relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",begin:n(/(s|tr|y)/,/\//,/(\\.|[^\\\/])*/,/\//,/(\\.|[^\\\/])*/,/\//,t),relevance:10},{className:"regexp",begin:/(m|qr)?\//,end:n(/\//,t),contains:[e.BACKSLASH_ESCAPE],relevance:0}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return r.contains=c,i.contains=c,{name:"Perl",aliases:["pl","pm"],keywords:o,contains:c}}},function(e,t){e.exports=function(e){return{name:"Mojolicious",subLanguage:"xml",contains:[{className:"meta",begin:"^__(END|DATA)__$"},{begin:"^\\s*%{1,2}={0,2}",end:"$",subLanguage:"perl"},{begin:"<%{1,2}={0,2}",end:"={0,1}%>",subLanguage:"perl",excludeBegin:!0,excludeEnd:!0}]}}},function(e,t){e.exports=function(e){const t={className:"number",relevance:0,variants:[{begin:"[$][a-fA-F0-9]+"},e.NUMBER_MODE]};return{name:"Monkey",case_insensitive:!0,keywords:{keyword:"public private property continue exit extern new try catch eachin not abstract final select case default const local global field end if then else elseif endif while wend repeat until forever for to step next return module inline throw import",built_in:"DebugLog DebugStop Error Print ACos ACosr ASin ASinr ATan ATan2 ATan2r ATanr Abs Abs Ceil Clamp Clamp Cos Cosr Exp Floor Log Max Max Min Min Pow Sgn Sgn Sin Sinr Sqrt Tan Tanr Seed PI HALFPI TWOPI",literal:"true false null and or shl shr mod"},illegal:/\/\*/,contains:[e.COMMENT("#rem","#end"),e.COMMENT("'","$",{relevance:0}),{className:"function",beginKeywords:"function method",end:"[(=:]|$",illegal:/\n/,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"class",beginKeywords:"class interface",end:"$",contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{className:"built_in",begin:"\\b(self|super)\\b"},{className:"meta",begin:"\\s*#",end:"$",keywords:{"meta-keyword":"if else elseif endif end then"}},{className:"meta",begin:"^\\s*strict\\b"},{beginKeywords:"alias",end:"=",contains:[e.UNDERSCORE_TITLE_MODE]},e.QUOTE_STRING_MODE,t]}}},function(e,t){e.exports=function(e){const t={keyword:"if then not for in while do return else elseif break continue switch and or unless when class extends super local import export from using",literal:"true false nil",built_in:"_G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table"},n="[A-Za-z$_][0-9A-Za-z$_]*",o={className:"subst",begin:/#\{/,end:/\}/,keywords:t},r=[e.inherit(e.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'/,end:/'/,contains:[e.BACKSLASH_ESCAPE]},{begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o]}]},{className:"built_in",begin:"@__"+e.IDENT_RE},{begin:"@"+e.IDENT_RE},{begin:e.IDENT_RE+"\\\\"+e.IDENT_RE}];o.contains=r;const i=e.inherit(e.TITLE_MODE,{begin:n}),a={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(r)}]};return{name:"MoonScript",aliases:["moon"],keywords:t,illegal:/\/\*/,contains:r.concat([e.COMMENT("--","$"),{className:"function",begin:"^\\s*"+n+"\\s*=\\s*(\\(.*\\)\\s*)?\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[i,a]},{begin:/[\(,:=]\s*/,relevance:0,contains:[{className:"function",begin:"(\\(.*\\)\\s*)?\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[a]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[i]},i]},{className:"name",begin:n+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}},function(e,t){e.exports=function(e){return{name:"N1QL",case_insensitive:!0,contains:[{beginKeywords:"build create index delete drop explain infer|10 insert merge prepare select update upsert|10",end:/;/,endsWithParent:!0,keywords:{keyword:"all alter analyze and any array as asc begin between binary boolean break bucket build by call case cast cluster collate collection commit connect continue correlate cover create database dataset datastore declare decrement delete derived desc describe distinct do drop each element else end every except exclude execute exists explain fetch first flatten for force from function grant group gsi having if ignore ilike in include increment index infer inline inner insert intersect into is join key keys keyspace known last left let letting like limit lsm map mapping matched materialized merge minus namespace nest not number object offset on option or order outer over parse partition password path pool prepare primary private privilege procedure public raw realm reduce rename return returning revoke right role rollback satisfies schema select self semi set show some start statistics string system then to transaction trigger truncate under union unique unknown unnest unset update upsert use user using validate value valued values via view when where while with within work xor",literal:"true false null missing|5",built_in:"array_agg array_append array_concat array_contains array_count array_distinct array_ifnull array_length array_max array_min array_position array_prepend array_put array_range array_remove array_repeat array_replace array_reverse array_sort array_sum avg count max min sum greatest least ifmissing ifmissingornull ifnull missingif nullif ifinf ifnan ifnanorinf naninf neginfif posinfif clock_millis clock_str date_add_millis date_add_str date_diff_millis date_diff_str date_part_millis date_part_str date_trunc_millis date_trunc_str duration_to_str millis str_to_millis millis_to_str millis_to_utc millis_to_zone_name now_millis now_str str_to_duration str_to_utc str_to_zone_name decode_json encode_json encoded_size poly_length base64 base64_encode base64_decode meta uuid abs acos asin atan atan2 ceil cos degrees e exp ln log floor pi power radians random round sign sin sqrt tan trunc object_length object_names object_pairs object_inner_pairs object_values object_inner_values object_add object_put object_remove object_unwrap regexp_contains regexp_like regexp_position regexp_replace contains initcap length lower ltrim position repeat replace rtrim split substr title trim upper isarray isatom isboolean isnumber isobject isstring type toarray toatom toboolean tonumber toobject tostring"},contains:[{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE],relevance:2},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE]}}},function(e,t){e.exports=function(e){const t={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{/,end:/\}/},{begin:/[$@]/+e.UNDERSCORE_IDENT_RE}]},n={endsWithParent:!0,keywords:{$pattern:"[a-z/_]+",literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[t]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]*\\b",relevance:0},t]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{begin:e.UNDERSCORE_IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\{/,contains:[{className:"section",begin:e.UNDERSCORE_IDENT_RE}],relevance:0},{begin:e.UNDERSCORE_IDENT_RE+"\\s",end:";|\\{",returnBegin:!0,contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:n}],relevance:0}],illegal:"[^\\s\\}]"}}},function(e,t){e.exports=function(e){return{name:"Nim",aliases:["nim"],keywords:{keyword:"addr and as asm bind block break case cast const continue converter discard distinct div do elif else end enum except export finally for from func generic if import in include interface is isnot iterator let macro method mixin mod nil not notin object of or out proc ptr raise ref return shl shr static template try tuple type using var when while with without xor yield",literal:"shared guarded stdin stdout stderr result true false",built_in:"int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 float float32 float64 bool char string cstring pointer expr stmt void auto any range array openarray varargs seq set clong culong cchar cschar cshort cint csize clonglong cfloat cdouble clongdouble cuchar cushort cuint culonglong cstringarray semistatic"},contains:[{className:"meta",begin:/\{\./,end:/\.\}/,relevance:10},{className:"string",begin:/[a-zA-Z]\w*"/,end:/"/,contains:[{begin:/""/}]},{className:"string",begin:/([a-zA-Z]\w*)?"""/,end:/"""/},e.QUOTE_STRING_MODE,{className:"type",begin:/\b[A-Z]\w+\b/,relevance:0},{className:"number",relevance:0,variants:[{begin:/\b(0[xX][0-9a-fA-F][_0-9a-fA-F]*)('?[iIuU](8|16|32|64))?/},{begin:/\b(0o[0-7][_0-7]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(0(b|B)[01][_01]*)('?[iIuUfF](8|16|32|64))?/},{begin:/\b(\d[_\d]*)('?[iIuUfF](8|16|32|64))?/}]},e.HASH_COMMENT_MODE]}}},function(e,t){e.exports=function(e){const t={keyword:"rec with let in inherit assert if else then",literal:"true false or and null",built_in:"import abort baseNameOf dirOf isNull builtins map removeAttrs throw toString derivation"},n={className:"subst",begin:/\$\{/,end:/\}/,keywords:t},o={className:"string",contains:[n],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}]},r=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,o,{begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{className:"attr",begin:/\S+/}]}];return n.contains=r,{name:"Nix",aliases:["nixos"],keywords:t,contains:r}}},function(e,t){e.exports=function(e){return{name:"Node REPL",contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"javascript"}},variants:[{begin:/^>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}},function(e,t){e.exports=function(e){const t={className:"variable",begin:/\$+\{[\w.:-]+\}/},n={className:"variable",begin:/\$+\w+/,illegal:/\(\)\{\}/},o={className:"variable",begin:/\$+\([\w^.:-]+\)/},r={className:"string",variants:[{begin:'"',end:'"'},{begin:"'",end:"'"},{begin:"`",end:"`"}],illegal:/\n/,contains:[{className:"meta",begin:/\$(\\[nrt]|\$)/},{className:"variable",begin:/\$(ADMINTOOLS|APPDATA|CDBURN_AREA|CMDLINE|COMMONFILES32|COMMONFILES64|COMMONFILES|COOKIES|DESKTOP|DOCUMENTS|EXEDIR|EXEFILE|EXEPATH|FAVORITES|FONTS|HISTORY|HWNDPARENT|INSTDIR|INTERNET_CACHE|LANGUAGE|LOCALAPPDATA|MUSIC|NETHOOD|OUTDIR|PICTURES|PLUGINSDIR|PRINTHOOD|PROFILE|PROGRAMFILES32|PROGRAMFILES64|PROGRAMFILES|QUICKLAUNCH|RECENT|RESOURCES_LOCALIZED|RESOURCES|SENDTO|SMPROGRAMS|SMSTARTUP|STARTMENU|SYSDIR|TEMP|TEMPLATES|VIDEOS|WINDIR)/},t,n,o]};return{name:"NSIS",case_insensitive:!1,keywords:{keyword:"Abort AddBrandingImage AddSize AllowRootDirInstall AllowSkipFiles AutoCloseWindow BGFont BGGradient BrandingText BringToFront Call CallInstDLL Caption ChangeUI CheckBitmap ClearErrors CompletedText ComponentText CopyFiles CRCCheck CreateDirectory CreateFont CreateShortCut Delete DeleteINISec DeleteINIStr DeleteRegKey DeleteRegValue DetailPrint DetailsButtonText DirText DirVar DirVerify EnableWindow EnumRegKey EnumRegValue Exch Exec ExecShell ExecShellWait ExecWait ExpandEnvStrings File FileBufSize FileClose FileErrorText FileOpen FileRead FileReadByte FileReadUTF16LE FileReadWord FileWriteUTF16LE FileSeek FileWrite FileWriteByte FileWriteWord FindClose FindFirst FindNext FindWindow FlushINI GetCurInstType GetCurrentAddress GetDlgItem GetDLLVersion GetDLLVersionLocal GetErrorLevel GetFileTime GetFileTimeLocal GetFullPathName GetFunctionAddress GetInstDirError GetKnownFolderPath GetLabelAddress GetTempFileName Goto HideWindow Icon IfAbort IfErrors IfFileExists IfRebootFlag IfRtlLanguage IfShellVarContextAll IfSilent InitPluginsDir InstallButtonText InstallColors InstallDir InstallDirRegKey InstProgressFlags InstType InstTypeGetText InstTypeSetText Int64Cmp Int64CmpU Int64Fmt IntCmp IntCmpU IntFmt IntOp IntPtrCmp IntPtrCmpU IntPtrOp IsWindow LangString LicenseBkColor LicenseData LicenseForceSelection LicenseLangString LicenseText LoadAndSetImage LoadLanguageFile LockWindow LogSet LogText ManifestDPIAware ManifestLongPathAware ManifestMaxVersionTested ManifestSupportedOS MessageBox MiscButtonText Name Nop OutFile Page PageCallbacks PEAddResource PEDllCharacteristics PERemoveResource PESubsysVer Pop Push Quit ReadEnvStr ReadINIStr ReadRegDWORD ReadRegStr Reboot RegDLL Rename RequestExecutionLevel ReserveFile Return RMDir SearchPath SectionGetFlags SectionGetInstTypes SectionGetSize SectionGetText SectionIn SectionSetFlags SectionSetInstTypes SectionSetSize SectionSetText SendMessage SetAutoClose SetBrandingImage SetCompress SetCompressor SetCompressorDictSize SetCtlColors SetCurInstType SetDatablockOptimize SetDateSave SetDetailsPrint SetDetailsView SetErrorLevel SetErrors SetFileAttributes SetFont SetOutPath SetOverwrite SetRebootFlag SetRegView SetShellVarContext SetSilent ShowInstDetails ShowUninstDetails ShowWindow SilentInstall SilentUnInstall Sleep SpaceTexts StrCmp StrCmpS StrCpy StrLen SubCaption Unicode UninstallButtonText UninstallCaption UninstallIcon UninstallSubCaption UninstallText UninstPage UnRegDLL Var VIAddVersionKey VIFileVersion VIProductVersion WindowIcon WriteINIStr WriteRegBin WriteRegDWORD WriteRegExpandStr WriteRegMultiStr WriteRegNone WriteRegStr WriteUninstaller XPStyle",literal:"admin all auto both bottom bzip2 colored components current custom directory false force hide highest ifdiff ifnewer instfiles lastused leave left license listonly lzma nevershow none normal notset off on open print right show silent silentlog smooth textonly top true try un.components un.custom un.directory un.instfiles un.license uninstConfirm user Win10 Win7 Win8 WinVista zlib"},contains:[e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(";","$",{relevance:0}),{className:"function",beginKeywords:"Function PageEx Section SectionGroup",end:"$"},r,{className:"keyword",begin:/!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|searchparse|searchreplace|system|tempfile|undef|verbose|warning)/},t,n,o,{className:"params",begin:"(ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HKCR|HKCU|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM|HKPD|HKU|IDABORT|IDCANCEL|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY)"},{className:"class",begin:/\w+::\w+/},e.NUMBER_MODE]}}},function(e,t){e.exports=function(e){const t=/[a-zA-Z@][a-zA-Z0-9_]*/,n={$pattern:t,keyword:"@interface @class @protocol @implementation"};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:{$pattern:t,keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},illegal:"</",contains:[{className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+n.keyword.split(" ").join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:n,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}},function(e,t){e.exports=function(e){return{name:"OCaml",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"and as assert asr begin class constraint do done downto else end exception external for fun function functor if in include inherit! inherit initializer land lazy let lor lsl lsr lxor match method!|10 method mod module mutable new object of open! open or private rec sig struct then to try type val! val virtual when while with parser value",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 string unit in_channel out_channel ref",literal:"true false"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:"\\[(\\|\\|)?\\]|\\(\\)",relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*",relevance:0},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/->/}]}}},function(e,t){e.exports=function(e){const t={className:"keyword",begin:"\\$(f[asn]|t|vp[rtd]|children)"},n={className:"number",begin:"\\b\\d+(\\.\\d+)?(e-?\\d+)?",relevance:0},o=e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),r={className:"function",beginKeywords:"module function",end:/=|\{/,contains:[{className:"params",begin:"\\(",end:"\\)",contains:["self",n,o,t,{className:"literal",begin:"false|true|PI|undef"}]},e.UNDERSCORE_TITLE_MODE]};return{name:"OpenSCAD",aliases:["scad"],keywords:{keyword:"function module include use for intersection_for if else \\%",literal:"false true PI undef",built_in:"circle square polygon text sphere cube cylinder polyhedron translate rotate scale resize mirror multmatrix color offset hull minkowski union difference intersection abs sign sin cos tan acos asin atan atan2 floor round ceil ln log pow sqrt exp rands min max concat lookup str chr search version version_num norm cross parent_module echo import import_dxf dxf_linear_extrude linear_extrude rotate_extrude surface projection render children dxf_cross dxf_dim let assign"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"meta",keywords:{"meta-keyword":"include use"},begin:"include|use <",end:">"},o,t,{begin:"[*!#%]",relevance:0},r]}}},function(e,t){e.exports=function(e){const t={$pattern:/\.?\w+/,keyword:"abstract add and array as asc aspect assembly async begin break block by case class concat const copy constructor continue create default delegate desc distinct div do downto dynamic each else empty end ensure enum equals event except exit extension external false final finalize finalizer finally flags for forward from function future global group has if implementation implements implies in index inherited inline interface into invariants is iterator join locked locking loop matching method mod module namespace nested new nil not notify nullable of old on operator or order out override parallel params partial pinned private procedure property protected public queryable raise read readonly record reintroduce remove repeat require result reverse sealed select self sequence set shl shr skip static step soft take then to true try tuple type union unit unsafe until uses using var virtual raises volatile where while with write xor yield await mapped deprecated stdcall cdecl pascal register safecall overload library platform reference packed strict published autoreleasepool selector strong weak unretained"},n=e.COMMENT(/\{/,/\}/,{relevance:0}),o=e.COMMENT("\\(\\*","\\*\\)",{relevance:10}),r={className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},i={className:"string",begin:"(#\\d+)+"},a={className:"function",beginKeywords:"function constructor destructor procedure method",end:"[:;]",keywords:"function constructor|10 destructor|10 procedure|10 method|10",contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",keywords:t,contains:[r,i]},n,o]};return{name:"Oxygene",case_insensitive:!0,keywords:t,illegal:'("|\\$[G-Zg-z]|\\/\\*|</|=>|->)',contains:[n,o,e.C_LINE_COMMENT_MODE,r,i,e.NUMBER_MODE,a,{className:"class",begin:"=\\bclass\\b",end:"end;",keywords:t,contains:[r,i,n,o,e.C_LINE_COMMENT_MODE,a]}]}}},function(e,t){e.exports=function(e){const t=e.COMMENT(/\{/,/\}/,{contains:["self"]});return{name:"Parser3",subLanguage:"xml",relevance:0,contains:[e.COMMENT("^#","$"),e.COMMENT(/\^rem\{/,/\}/,{relevance:10,contains:[t]}),{className:"meta",begin:"^@(?:BASE|USE|CLASS|OPTIONS)$",relevance:10},{className:"title",begin:"@[\\w\\-]+\\[[\\w^;\\-]*\\](?:\\[[\\w^;\\-]*\\])?(?:.*)$"},{className:"variable",begin:/\$\{?[\w\-.:]+\}?/},{className:"keyword",begin:/\^[\w\-.:]+/},{className:"number",begin:"\\^#[0-9a-fA-F]+"},e.C_NUMBER_MODE]}}},function(e,t){e.exports=function(e){return{name:"Packet Filter config",aliases:["pf.conf"],keywords:{$pattern:/[a-z0-9_<>-]+/,built_in:"block match pass load anchor|5 antispoof|10 set table",keyword:"in out log quick on rdomain inet inet6 proto from port os to route allow-opts divert-packet divert-reply divert-to flags group icmp-type icmp6-type label once probability recieved-on rtable prio queue tos tag tagged user keep fragment for os drop af-to|10 binat-to|10 nat-to|10 rdr-to|10 bitmask least-stats random round-robin source-hash static-port dup-to reply-to route-to parent bandwidth default min max qlimit block-policy debug fingerprints hostid limit loginterface optimization reassemble ruleset-optimization basic none profile skip state-defaults state-policy timeout const counters persist no modulate synproxy state|5 floating if-bound no-sync pflow|10 sloppy source-track global rule max-src-nodes max-src-states max-src-conn max-src-conn-rate overload flush scrub|5 max-mss min-ttl no-df|10 random-id",literal:"all any no-route self urpf-failed egress|5 unknown"},contains:[e.HASH_COMMENT_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE,{className:"variable",begin:/\$[\w\d#@][\w\d_]*/},{className:"variable",begin:/<(?!\/)/,end:/>/}]}}},function(e,t){e.exports=function(e){const t=e.COMMENT("--","$"),n="BIGINT INT8 BIGSERIAL SERIAL8 BIT VARYING VARBIT BOOLEAN BOOL BOX BYTEA CHARACTER CHAR VARCHAR CIDR CIRCLE DATE DOUBLE PRECISION FLOAT8 FLOAT INET INTEGER INT INT4 INTERVAL JSON JSONB LINE LSEG|10 MACADDR MACADDR8 MONEY NUMERIC DEC DECIMAL PATH POINT POLYGON REAL FLOAT4 SMALLINT INT2 SMALLSERIAL|10 SERIAL2|10 SERIAL|10 SERIAL4|10 TEXT TIME ZONE TIMETZ|10 TIMESTAMP TIMESTAMPTZ|10 TSQUERY|10 TSVECTOR|10 TXID_SNAPSHOT|10 UUID XML NATIONAL NCHAR INT4RANGE|10 INT8RANGE|10 NUMRANGE|10 TSRANGE|10 TSTZRANGE|10 DATERANGE|10 ANYELEMENT ANYARRAY ANYNONARRAY ANYENUM ANYRANGE CSTRING INTERNAL RECORD PG_DDL_COMMAND VOID UNKNOWN OPAQUE REFCURSOR NAME OID REGPROC|10 REGPROCEDURE|10 REGOPER|10 REGOPERATOR|10 REGCLASS|10 REGTYPE|10 REGROLE|10 REGNAMESPACE|10 REGCONFIG|10 REGDICTIONARY|10 ",o=n.trim().split(" ").map((function(e){return e.split("|")[0]})).join("|"),r="ARRAY_AGG AVG BIT_AND BIT_OR BOOL_AND BOOL_OR COUNT EVERY JSON_AGG JSONB_AGG JSON_OBJECT_AGG JSONB_OBJECT_AGG MAX MIN MODE STRING_AGG SUM XMLAGG CORR COVAR_POP COVAR_SAMP REGR_AVGX REGR_AVGY REGR_COUNT REGR_INTERCEPT REGR_R2 REGR_SLOPE REGR_SXX REGR_SXY REGR_SYY STDDEV STDDEV_POP STDDEV_SAMP VARIANCE VAR_POP VAR_SAMP PERCENTILE_CONT PERCENTILE_DISC ROW_NUMBER RANK DENSE_RANK PERCENT_RANK CUME_DIST NTILE LAG LEAD FIRST_VALUE LAST_VALUE NTH_VALUE NUM_NONNULLS NUM_NULLS ABS CBRT CEIL CEILING DEGREES DIV EXP FLOOR LN LOG MOD PI POWER RADIANS ROUND SCALE SIGN SQRT TRUNC WIDTH_BUCKET RANDOM SETSEED ACOS ACOSD ASIN ASIND ATAN ATAND ATAN2 ATAN2D COS COSD COT COTD SIN SIND TAN TAND BIT_LENGTH CHAR_LENGTH CHARACTER_LENGTH LOWER OCTET_LENGTH OVERLAY POSITION SUBSTRING TREAT TRIM UPPER ASCII BTRIM CHR CONCAT CONCAT_WS CONVERT CONVERT_FROM CONVERT_TO DECODE ENCODE INITCAP LEFT LENGTH LPAD LTRIM MD5 PARSE_IDENT PG_CLIENT_ENCODING QUOTE_IDENT|10 QUOTE_LITERAL|10 QUOTE_NULLABLE|10 REGEXP_MATCH REGEXP_MATCHES REGEXP_REPLACE REGEXP_SPLIT_TO_ARRAY REGEXP_SPLIT_TO_TABLE REPEAT REPLACE REVERSE RIGHT RPAD RTRIM SPLIT_PART STRPOS SUBSTR TO_ASCII TO_HEX TRANSLATE OCTET_LENGTH GET_BIT GET_BYTE SET_BIT SET_BYTE TO_CHAR TO_DATE TO_NUMBER TO_TIMESTAMP AGE CLOCK_TIMESTAMP|10 DATE_PART DATE_TRUNC ISFINITE JUSTIFY_DAYS JUSTIFY_HOURS JUSTIFY_INTERVAL MAKE_DATE MAKE_INTERVAL|10 MAKE_TIME MAKE_TIMESTAMP|10 MAKE_TIMESTAMPTZ|10 NOW STATEMENT_TIMESTAMP|10 TIMEOFDAY TRANSACTION_TIMESTAMP|10 ENUM_FIRST ENUM_LAST ENUM_RANGE AREA CENTER DIAMETER HEIGHT ISCLOSED ISOPEN NPOINTS PCLOSE POPEN RADIUS WIDTH BOX BOUND_BOX CIRCLE LINE LSEG PATH POLYGON ABBREV BROADCAST HOST HOSTMASK MASKLEN NETMASK NETWORK SET_MASKLEN TEXT INET_SAME_FAMILY INET_MERGE MACADDR8_SET7BIT ARRAY_TO_TSVECTOR GET_CURRENT_TS_CONFIG NUMNODE PLAINTO_TSQUERY PHRASETO_TSQUERY WEBSEARCH_TO_TSQUERY QUERYTREE SETWEIGHT STRIP TO_TSQUERY TO_TSVECTOR JSON_TO_TSVECTOR JSONB_TO_TSVECTOR TS_DELETE TS_FILTER TS_HEADLINE TS_RANK TS_RANK_CD TS_REWRITE TSQUERY_PHRASE TSVECTOR_TO_ARRAY TSVECTOR_UPDATE_TRIGGER TSVECTOR_UPDATE_TRIGGER_COLUMN XMLCOMMENT XMLCONCAT XMLELEMENT XMLFOREST XMLPI XMLROOT XMLEXISTS XML_IS_WELL_FORMED XML_IS_WELL_FORMED_DOCUMENT XML_IS_WELL_FORMED_CONTENT XPATH XPATH_EXISTS XMLTABLE XMLNAMESPACES TABLE_TO_XML TABLE_TO_XMLSCHEMA TABLE_TO_XML_AND_XMLSCHEMA QUERY_TO_XML QUERY_TO_XMLSCHEMA QUERY_TO_XML_AND_XMLSCHEMA CURSOR_TO_XML CURSOR_TO_XMLSCHEMA SCHEMA_TO_XML SCHEMA_TO_XMLSCHEMA SCHEMA_TO_XML_AND_XMLSCHEMA DATABASE_TO_XML DATABASE_TO_XMLSCHEMA DATABASE_TO_XML_AND_XMLSCHEMA XMLATTRIBUTES TO_JSON TO_JSONB ARRAY_TO_JSON ROW_TO_JSON JSON_BUILD_ARRAY JSONB_BUILD_ARRAY JSON_BUILD_OBJECT JSONB_BUILD_OBJECT JSON_OBJECT JSONB_OBJECT JSON_ARRAY_LENGTH JSONB_ARRAY_LENGTH JSON_EACH JSONB_EACH JSON_EACH_TEXT JSONB_EACH_TEXT JSON_EXTRACT_PATH JSONB_EXTRACT_PATH JSON_OBJECT_KEYS JSONB_OBJECT_KEYS JSON_POPULATE_RECORD JSONB_POPULATE_RECORD JSON_POPULATE_RECORDSET JSONB_POPULATE_RECORDSET JSON_ARRAY_ELEMENTS JSONB_ARRAY_ELEMENTS JSON_ARRAY_ELEMENTS_TEXT JSONB_ARRAY_ELEMENTS_TEXT JSON_TYPEOF JSONB_TYPEOF JSON_TO_RECORD JSONB_TO_RECORD JSON_TO_RECORDSET JSONB_TO_RECORDSET JSON_STRIP_NULLS JSONB_STRIP_NULLS JSONB_SET JSONB_INSERT JSONB_PRETTY CURRVAL LASTVAL NEXTVAL SETVAL COALESCE NULLIF GREATEST LEAST ARRAY_APPEND ARRAY_CAT ARRAY_NDIMS ARRAY_DIMS ARRAY_FILL ARRAY_LENGTH ARRAY_LOWER ARRAY_POSITION ARRAY_POSITIONS ARRAY_PREPEND ARRAY_REMOVE ARRAY_REPLACE ARRAY_TO_STRING ARRAY_UPPER CARDINALITY STRING_TO_ARRAY UNNEST ISEMPTY LOWER_INC UPPER_INC LOWER_INF UPPER_INF RANGE_MERGE GENERATE_SERIES GENERATE_SUBSCRIPTS CURRENT_DATABASE CURRENT_QUERY CURRENT_SCHEMA|10 CURRENT_SCHEMAS|10 INET_CLIENT_ADDR INET_CLIENT_PORT INET_SERVER_ADDR INET_SERVER_PORT ROW_SECURITY_ACTIVE FORMAT_TYPE TO_REGCLASS TO_REGPROC TO_REGPROCEDURE TO_REGOPER TO_REGOPERATOR TO_REGTYPE TO_REGNAMESPACE TO_REGROLE COL_DESCRIPTION OBJ_DESCRIPTION SHOBJ_DESCRIPTION TXID_CURRENT TXID_CURRENT_IF_ASSIGNED TXID_CURRENT_SNAPSHOT TXID_SNAPSHOT_XIP TXID_SNAPSHOT_XMAX TXID_SNAPSHOT_XMIN TXID_VISIBLE_IN_SNAPSHOT TXID_STATUS CURRENT_SETTING SET_CONFIG BRIN_SUMMARIZE_NEW_VALUES BRIN_SUMMARIZE_RANGE BRIN_DESUMMARIZE_RANGE GIN_CLEAN_PENDING_LIST SUPPRESS_REDUNDANT_UPDATES_TRIGGER LO_FROM_BYTEA LO_PUT LO_GET LO_CREAT LO_CREATE LO_UNLINK LO_IMPORT LO_EXPORT LOREAD LOWRITE GROUPING CAST ".trim().split(" ").map((function(e){return e.split("|")[0]})).join("|");return{name:"PostgreSQL",aliases:["postgres","postgresql"],case_insensitive:!0,keywords:{keyword:"ABORT ALTER ANALYZE BEGIN CALL CHECKPOINT|10 CLOSE CLUSTER COMMENT COMMIT COPY CREATE DEALLOCATE DECLARE DELETE DISCARD DO DROP END EXECUTE EXPLAIN FETCH GRANT IMPORT INSERT LISTEN LOAD LOCK MOVE NOTIFY PREPARE REASSIGN|10 REFRESH REINDEX RELEASE RESET REVOKE ROLLBACK SAVEPOINT SECURITY SELECT SET SHOW START TRUNCATE UNLISTEN|10 UPDATE VACUUM|10 VALUES AGGREGATE COLLATION CONVERSION|10 DATABASE DEFAULT PRIVILEGES DOMAIN TRIGGER EXTENSION FOREIGN WRAPPER|10 TABLE FUNCTION GROUP LANGUAGE LARGE OBJECT MATERIALIZED VIEW OPERATOR CLASS FAMILY POLICY PUBLICATION|10 ROLE RULE SCHEMA SEQUENCE SERVER STATISTICS SUBSCRIPTION SYSTEM TABLESPACE CONFIGURATION DICTIONARY PARSER TEMPLATE TYPE USER MAPPING PREPARED ACCESS METHOD CAST AS TRANSFORM TRANSACTION OWNED TO INTO SESSION AUTHORIZATION INDEX PROCEDURE ASSERTION ALL ANALYSE AND ANY ARRAY ASC ASYMMETRIC|10 BOTH CASE CHECK COLLATE COLUMN CONCURRENTLY|10 CONSTRAINT CROSS DEFERRABLE RANGE DESC DISTINCT ELSE EXCEPT FOR FREEZE|10 FROM FULL HAVING ILIKE IN INITIALLY INNER INTERSECT IS ISNULL JOIN LATERAL LEADING LIKE LIMIT NATURAL NOT NOTNULL NULL OFFSET ON ONLY OR ORDER OUTER OVERLAPS PLACING PRIMARY REFERENCES RETURNING SIMILAR SOME SYMMETRIC TABLESAMPLE THEN TRAILING UNION UNIQUE USING VARIADIC|10 VERBOSE WHEN WHERE WINDOW WITH BY RETURNS INOUT OUT SETOF|10 IF STRICT CURRENT CONTINUE OWNER LOCATION OVER PARTITION WITHIN BETWEEN ESCAPE EXTERNAL INVOKER DEFINER WORK RENAME VERSION CONNECTION CONNECT TABLES TEMP TEMPORARY FUNCTIONS SEQUENCES TYPES SCHEMAS OPTION CASCADE RESTRICT ADD ADMIN EXISTS VALID VALIDATE ENABLE DISABLE REPLICA|10 ALWAYS PASSING COLUMNS PATH REF VALUE OVERRIDING IMMUTABLE STABLE VOLATILE BEFORE AFTER EACH ROW PROCEDURAL ROUTINE NO HANDLER VALIDATOR OPTIONS STORAGE OIDS|10 WITHOUT INHERIT DEPENDS CALLED INPUT LEAKPROOF|10 COST ROWS NOWAIT SEARCH UNTIL ENCRYPTED|10 PASSWORD CONFLICT|10 INSTEAD INHERITS CHARACTERISTICS WRITE CURSOR ALSO STATEMENT SHARE EXCLUSIVE INLINE ISOLATION REPEATABLE READ COMMITTED SERIALIZABLE UNCOMMITTED LOCAL GLOBAL SQL PROCEDURES RECURSIVE SNAPSHOT ROLLUP CUBE TRUSTED|10 INCLUDE FOLLOWING PRECEDING UNBOUNDED RANGE GROUPS UNENCRYPTED|10 SYSID FORMAT DELIMITER HEADER QUOTE ENCODING FILTER OFF FORCE_QUOTE FORCE_NOT_NULL FORCE_NULL COSTS BUFFERS TIMING SUMMARY DISABLE_PAGE_SKIPPING RESTART CYCLE GENERATED IDENTITY DEFERRED IMMEDIATE LEVEL LOGGED UNLOGGED OF NOTHING NONE EXCLUDE ATTRIBUTE USAGE ROUTINES TRUE FALSE NAN INFINITY ALIAS BEGIN CONSTANT DECLARE END EXCEPTION RETURN PERFORM|10 RAISE GET DIAGNOSTICS STACKED|10 FOREACH LOOP ELSIF EXIT WHILE REVERSE SLICE DEBUG LOG INFO NOTICE WARNING ASSERT OPEN SUPERUSER NOSUPERUSER CREATEDB NOCREATEDB CREATEROLE NOCREATEROLE INHERIT NOINHERIT LOGIN NOLOGIN REPLICATION NOREPLICATION BYPASSRLS NOBYPASSRLS ",built_in:"CURRENT_TIME CURRENT_TIMESTAMP CURRENT_USER CURRENT_CATALOG|10 CURRENT_DATE LOCALTIME LOCALTIMESTAMP CURRENT_ROLE|10 CURRENT_SCHEMA|10 SESSION_USER PUBLIC FOUND NEW OLD TG_NAME|10 TG_WHEN|10 TG_LEVEL|10 TG_OP|10 TG_RELID|10 TG_RELNAME|10 TG_TABLE_NAME|10 TG_TABLE_SCHEMA|10 TG_NARGS|10 TG_ARGV|10 TG_EVENT|10 TG_TAG|10 ROW_COUNT RESULT_OID|10 PG_CONTEXT|10 RETURNED_SQLSTATE COLUMN_NAME CONSTRAINT_NAME PG_DATATYPE_NAME|10 MESSAGE_TEXT TABLE_NAME SCHEMA_NAME PG_EXCEPTION_DETAIL|10 PG_EXCEPTION_HINT|10 PG_EXCEPTION_CONTEXT|10 SQLSTATE SQLERRM|10 SUCCESSFUL_COMPLETION WARNING DYNAMIC_RESULT_SETS_RETURNED IMPLICIT_ZERO_BIT_PADDING NULL_VALUE_ELIMINATED_IN_SET_FUNCTION PRIVILEGE_NOT_GRANTED PRIVILEGE_NOT_REVOKED STRING_DATA_RIGHT_TRUNCATION DEPRECATED_FEATURE NO_DATA NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED SQL_STATEMENT_NOT_YET_COMPLETE CONNECTION_EXCEPTION CONNECTION_DOES_NOT_EXIST CONNECTION_FAILURE SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION TRANSACTION_RESOLUTION_UNKNOWN PROTOCOL_VIOLATION TRIGGERED_ACTION_EXCEPTION FEATURE_NOT_SUPPORTED INVALID_TRANSACTION_INITIATION LOCATOR_EXCEPTION INVALID_LOCATOR_SPECIFICATION INVALID_GRANTOR INVALID_GRANT_OPERATION INVALID_ROLE_SPECIFICATION DIAGNOSTICS_EXCEPTION STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER CASE_NOT_FOUND CARDINALITY_VIOLATION DATA_EXCEPTION ARRAY_SUBSCRIPT_ERROR CHARACTER_NOT_IN_REPERTOIRE DATETIME_FIELD_OVERFLOW DIVISION_BY_ZERO ERROR_IN_ASSIGNMENT ESCAPE_CHARACTER_CONFLICT INDICATOR_OVERFLOW INTERVAL_FIELD_OVERFLOW INVALID_ARGUMENT_FOR_LOGARITHM INVALID_ARGUMENT_FOR_NTILE_FUNCTION INVALID_ARGUMENT_FOR_NTH_VALUE_FUNCTION INVALID_ARGUMENT_FOR_POWER_FUNCTION INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION INVALID_CHARACTER_VALUE_FOR_CAST INVALID_DATETIME_FORMAT INVALID_ESCAPE_CHARACTER INVALID_ESCAPE_OCTET INVALID_ESCAPE_SEQUENCE NONSTANDARD_USE_OF_ESCAPE_CHARACTER INVALID_INDICATOR_PARAMETER_VALUE INVALID_PARAMETER_VALUE INVALID_REGULAR_EXPRESSION INVALID_ROW_COUNT_IN_LIMIT_CLAUSE INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE INVALID_TABLESAMPLE_ARGUMENT INVALID_TABLESAMPLE_REPEAT INVALID_TIME_ZONE_DISPLACEMENT_VALUE INVALID_USE_OF_ESCAPE_CHARACTER MOST_SPECIFIC_TYPE_MISMATCH NULL_VALUE_NOT_ALLOWED NULL_VALUE_NO_INDICATOR_PARAMETER NUMERIC_VALUE_OUT_OF_RANGE SEQUENCE_GENERATOR_LIMIT_EXCEEDED STRING_DATA_LENGTH_MISMATCH STRING_DATA_RIGHT_TRUNCATION SUBSTRING_ERROR TRIM_ERROR UNTERMINATED_C_STRING ZERO_LENGTH_CHARACTER_STRING FLOATING_POINT_EXCEPTION INVALID_TEXT_REPRESENTATION INVALID_BINARY_REPRESENTATION BAD_COPY_FILE_FORMAT UNTRANSLATABLE_CHARACTER NOT_AN_XML_DOCUMENT INVALID_XML_DOCUMENT INVALID_XML_CONTENT INVALID_XML_COMMENT INVALID_XML_PROCESSING_INSTRUCTION INTEGRITY_CONSTRAINT_VIOLATION RESTRICT_VIOLATION NOT_NULL_VIOLATION FOREIGN_KEY_VIOLATION UNIQUE_VIOLATION CHECK_VIOLATION EXCLUSION_VIOLATION INVALID_CURSOR_STATE INVALID_TRANSACTION_STATE ACTIVE_SQL_TRANSACTION BRANCH_TRANSACTION_ALREADY_ACTIVE HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION READ_ONLY_SQL_TRANSACTION SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED NO_ACTIVE_SQL_TRANSACTION IN_FAILED_SQL_TRANSACTION IDLE_IN_TRANSACTION_SESSION_TIMEOUT INVALID_SQL_STATEMENT_NAME TRIGGERED_DATA_CHANGE_VIOLATION INVALID_AUTHORIZATION_SPECIFICATION INVALID_PASSWORD DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST DEPENDENT_OBJECTS_STILL_EXIST INVALID_TRANSACTION_TERMINATION SQL_ROUTINE_EXCEPTION FUNCTION_EXECUTED_NO_RETURN_STATEMENT MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED INVALID_CURSOR_NAME EXTERNAL_ROUTINE_EXCEPTION CONTAINING_SQL_NOT_PERMITTED MODIFYING_SQL_DATA_NOT_PERMITTED PROHIBITED_SQL_STATEMENT_ATTEMPTED READING_SQL_DATA_NOT_PERMITTED EXTERNAL_ROUTINE_INVOCATION_EXCEPTION INVALID_SQLSTATE_RETURNED NULL_VALUE_NOT_ALLOWED TRIGGER_PROTOCOL_VIOLATED SRF_PROTOCOL_VIOLATED EVENT_TRIGGER_PROTOCOL_VIOLATED SAVEPOINT_EXCEPTION INVALID_SAVEPOINT_SPECIFICATION INVALID_CATALOG_NAME INVALID_SCHEMA_NAME TRANSACTION_ROLLBACK TRANSACTION_INTEGRITY_CONSTRAINT_VIOLATION SERIALIZATION_FAILURE STATEMENT_COMPLETION_UNKNOWN DEADLOCK_DETECTED SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION SYNTAX_ERROR INSUFFICIENT_PRIVILEGE CANNOT_COERCE GROUPING_ERROR WINDOWING_ERROR INVALID_RECURSION INVALID_FOREIGN_KEY INVALID_NAME NAME_TOO_LONG RESERVED_NAME DATATYPE_MISMATCH INDETERMINATE_DATATYPE COLLATION_MISMATCH INDETERMINATE_COLLATION WRONG_OBJECT_TYPE GENERATED_ALWAYS UNDEFINED_COLUMN UNDEFINED_FUNCTION UNDEFINED_TABLE UNDEFINED_PARAMETER UNDEFINED_OBJECT DUPLICATE_COLUMN DUPLICATE_CURSOR DUPLICATE_DATABASE DUPLICATE_FUNCTION DUPLICATE_PREPARED_STATEMENT DUPLICATE_SCHEMA DUPLICATE_TABLE DUPLICATE_ALIAS DUPLICATE_OBJECT AMBIGUOUS_COLUMN AMBIGUOUS_FUNCTION AMBIGUOUS_PARAMETER AMBIGUOUS_ALIAS INVALID_COLUMN_REFERENCE INVALID_COLUMN_DEFINITION INVALID_CURSOR_DEFINITION INVALID_DATABASE_DEFINITION INVALID_FUNCTION_DEFINITION INVALID_PREPARED_STATEMENT_DEFINITION INVALID_SCHEMA_DEFINITION INVALID_TABLE_DEFINITION INVALID_OBJECT_DEFINITION WITH_CHECK_OPTION_VIOLATION INSUFFICIENT_RESOURCES DISK_FULL OUT_OF_MEMORY TOO_MANY_CONNECTIONS CONFIGURATION_LIMIT_EXCEEDED PROGRAM_LIMIT_EXCEEDED STATEMENT_TOO_COMPLEX TOO_MANY_COLUMNS TOO_MANY_ARGUMENTS OBJECT_NOT_IN_PREREQUISITE_STATE OBJECT_IN_USE CANT_CHANGE_RUNTIME_PARAM LOCK_NOT_AVAILABLE OPERATOR_INTERVENTION QUERY_CANCELED ADMIN_SHUTDOWN CRASH_SHUTDOWN CANNOT_CONNECT_NOW DATABASE_DROPPED SYSTEM_ERROR IO_ERROR UNDEFINED_FILE DUPLICATE_FILE SNAPSHOT_TOO_OLD CONFIG_FILE_ERROR LOCK_FILE_EXISTS FDW_ERROR FDW_COLUMN_NAME_NOT_FOUND FDW_DYNAMIC_PARAMETER_VALUE_NEEDED FDW_FUNCTION_SEQUENCE_ERROR FDW_INCONSISTENT_DESCRIPTOR_INFORMATION FDW_INVALID_ATTRIBUTE_VALUE FDW_INVALID_COLUMN_NAME FDW_INVALID_COLUMN_NUMBER FDW_INVALID_DATA_TYPE FDW_INVALID_DATA_TYPE_DESCRIPTORS FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER FDW_INVALID_HANDLE FDW_INVALID_OPTION_INDEX FDW_INVALID_OPTION_NAME FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH FDW_INVALID_STRING_FORMAT FDW_INVALID_USE_OF_NULL_POINTER FDW_TOO_MANY_HANDLES FDW_OUT_OF_MEMORY FDW_NO_SCHEMAS FDW_OPTION_NAME_NOT_FOUND FDW_REPLY_HANDLE FDW_SCHEMA_NOT_FOUND FDW_TABLE_NOT_FOUND FDW_UNABLE_TO_CREATE_EXECUTION FDW_UNABLE_TO_CREATE_REPLY FDW_UNABLE_TO_ESTABLISH_CONNECTION PLPGSQL_ERROR RAISE_EXCEPTION NO_DATA_FOUND TOO_MANY_ROWS ASSERT_FAILURE INTERNAL_ERROR DATA_CORRUPTED INDEX_CORRUPTED "},illegal:/:==|\W\s*\(\*|(^|\s)\$[a-z]|\{\{|[a-z]:\s*$|\.\.\.|TO:|DO:/,contains:[{className:"keyword",variants:[{begin:/\bTEXT\s*SEARCH\b/},{begin:/\b(PRIMARY|FOREIGN|FOR(\s+NO)?)\s+KEY\b/},{begin:/\bPARALLEL\s+(UNSAFE|RESTRICTED|SAFE)\b/},{begin:/\bSTORAGE\s+(PLAIN|EXTERNAL|EXTENDED|MAIN)\b/},{begin:/\bMATCH\s+(FULL|PARTIAL|SIMPLE)\b/},{begin:/\bNULLS\s+(FIRST|LAST)\b/},{begin:/\bEVENT\s+TRIGGER\b/},{begin:/\b(MAPPING|OR)\s+REPLACE\b/},{begin:/\b(FROM|TO)\s+(PROGRAM|STDIN|STDOUT)\b/},{begin:/\b(SHARE|EXCLUSIVE)\s+MODE\b/},{begin:/\b(LEFT|RIGHT)\s+(OUTER\s+)?JOIN\b/},{begin:/\b(FETCH|MOVE)\s+(NEXT|PRIOR|FIRST|LAST|ABSOLUTE|RELATIVE|FORWARD|BACKWARD)\b/},{begin:/\bPRESERVE\s+ROWS\b/},{begin:/\bDISCARD\s+PLANS\b/},{begin:/\bREFERENCING\s+(OLD|NEW)\b/},{begin:/\bSKIP\s+LOCKED\b/},{begin:/\bGROUPING\s+SETS\b/},{begin:/\b(BINARY|INSENSITIVE|SCROLL|NO\s+SCROLL)\s+(CURSOR|FOR)\b/},{begin:/\b(WITH|WITHOUT)\s+HOLD\b/},{begin:/\bWITH\s+(CASCADED|LOCAL)\s+CHECK\s+OPTION\b/},{begin:/\bEXCLUDE\s+(TIES|NO\s+OTHERS)\b/},{begin:/\bFORMAT\s+(TEXT|XML|JSON|YAML)\b/},{begin:/\bSET\s+((SESSION|LOCAL)\s+)?NAMES\b/},{begin:/\bIS\s+(NOT\s+)?UNKNOWN\b/},{begin:/\bSECURITY\s+LABEL\b/},{begin:/\bSTANDALONE\s+(YES|NO|NO\s+VALUE)\b/},{begin:/\bWITH\s+(NO\s+)?DATA\b/},{begin:/\b(FOREIGN|SET)\s+DATA\b/},{begin:/\bSET\s+(CATALOG|CONSTRAINTS)\b/},{begin:/\b(WITH|FOR)\s+ORDINALITY\b/},{begin:/\bIS\s+(NOT\s+)?DOCUMENT\b/},{begin:/\bXML\s+OPTION\s+(DOCUMENT|CONTENT)\b/},{begin:/\b(STRIP|PRESERVE)\s+WHITESPACE\b/},{begin:/\bNO\s+(ACTION|MAXVALUE|MINVALUE)\b/},{begin:/\bPARTITION\s+BY\s+(RANGE|LIST|HASH)\b/},{begin:/\bAT\s+TIME\s+ZONE\b/},{begin:/\bGRANTED\s+BY\b/},{begin:/\bRETURN\s+(QUERY|NEXT)\b/},{begin:/\b(ATTACH|DETACH)\s+PARTITION\b/},{begin:/\bFORCE\s+ROW\s+LEVEL\s+SECURITY\b/},{begin:/\b(INCLUDING|EXCLUDING)\s+(COMMENTS|CONSTRAINTS|DEFAULTS|IDENTITY|INDEXES|STATISTICS|STORAGE|ALL)\b/},{begin:/\bAS\s+(ASSIGNMENT|IMPLICIT|PERMISSIVE|RESTRICTIVE|ENUM|RANGE)\b/}]},{begin:/\b(FORMAT|FAMILY|VERSION)\s*\(/},{begin:/\bINCLUDE\s*\(/,keywords:"INCLUDE"},{begin:/\bRANGE(?!\s*(BETWEEN|UNBOUNDED|CURRENT|[-0-9]+))/},{begin:/\b(VERSION|OWNER|TEMPLATE|TABLESPACE|CONNECTION\s+LIMIT|PROCEDURE|RESTRICT|JOIN|PARSER|COPY|START|END|COLLATION|INPUT|ANALYZE|STORAGE|LIKE|DEFAULT|DELIMITER|ENCODING|COLUMN|CONSTRAINT|TABLE|SCHEMA)\s*=/},{begin:/\b(PG_\w+?|HAS_[A-Z_]+_PRIVILEGE)\b/,relevance:10},{begin:/\bEXTRACT\s*\(/,end:/\bFROM\b/,returnEnd:!0,keywords:{type:"CENTURY DAY DECADE DOW DOY EPOCH HOUR ISODOW ISOYEAR MICROSECONDS MILLENNIUM MILLISECONDS MINUTE MONTH QUARTER SECOND TIMEZONE TIMEZONE_HOUR TIMEZONE_MINUTE WEEK YEAR"}},{begin:/\b(XMLELEMENT|XMLPI)\s*\(\s*NAME/,keywords:{keyword:"NAME"}},{begin:/\b(XMLPARSE|XMLSERIALIZE)\s*\(\s*(DOCUMENT|CONTENT)/,keywords:{keyword:"DOCUMENT CONTENT"}},{beginKeywords:"CACHE INCREMENT MAXVALUE MINVALUE",end:e.C_NUMBER_RE,returnEnd:!0,keywords:"BY CACHE INCREMENT MAXVALUE MINVALUE"},{className:"type",begin:/\b(WITH|WITHOUT)\s+TIME\s+ZONE\b/},{className:"type",begin:/\bINTERVAL\s+(YEAR|MONTH|DAY|HOUR|MINUTE|SECOND)(\s+TO\s+(MONTH|HOUR|MINUTE|SECOND))?\b/},{begin:/\bRETURNS\s+(LANGUAGE_HANDLER|TRIGGER|EVENT_TRIGGER|FDW_HANDLER|INDEX_AM_HANDLER|TSM_HANDLER)\b/,keywords:{keyword:"RETURNS",type:"LANGUAGE_HANDLER TRIGGER EVENT_TRIGGER FDW_HANDLER INDEX_AM_HANDLER TSM_HANDLER"}},{begin:"\\b("+r+")\\s*\\("},{begin:"\\.("+o+")\\b"},{begin:"\\b("+o+")\\s+PATH\\b",keywords:{keyword:"PATH",type:n.replace("PATH ","")}},{className:"type",begin:"\\b("+o+")\\b"},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:"(e|E|u&|U&)'",end:"'",contains:[{begin:"\\\\."}],relevance:10},e.END_SAME_AS_BEGIN({begin:"\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",end:"\\$([a-zA-Z_]?|[a-zA-Z_][a-zA-Z_0-9]*)\\$",contains:[{subLanguage:["pgsql","perl","python","tcl","r","lua","java","php","ruby","bash","scheme","xml","json"],endsWithParent:!0}]}),{begin:'"',end:'"',contains:[{begin:'""'}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"meta",variants:[{begin:"%(ROW)?TYPE",relevance:10},{begin:"\\$\\d+"},{begin:"^#\\w",end:"$"}]},{className:"symbol",begin:"<<\\s*[a-zA-Z_][a-zA-Z_0-9$]*\\s*>>",relevance:10}]}}},function(e,t){e.exports=function(e){const t={className:"variable",begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*(?![A-Za-z0-9])(?![$])"},n={className:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?[=]?/},{begin:/\?>/}]},o={className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},r=e.inherit(e.APOS_STRING_MODE,{illegal:null}),i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(o)}),a=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(o)}),s={className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[e.inherit(r,{begin:"b'",end:"'"}),e.inherit(i,{begin:'b"',end:'"'}),i,r,a]},c={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},l={keyword:"__CLASS__ __DIR__ __FILE__ __FUNCTION__ __LINE__ __METHOD__ __NAMESPACE__ __TRAIT__ die echo exit include include_once print require require_once array abstract and as binary bool boolean break callable case catch class clone const continue declare default do double else elseif empty enddeclare endfor endforeach endif endswitch endwhile eval extends final finally float for foreach from global goto if implements instanceof insteadof int integer interface isset iterable list match|0 new object or private protected public real return string switch throw trait try unset use var void while xor yield",literal:"false null true",built_in:"Error|0 AppendIterator ArgumentCountError ArithmeticError ArrayIterator ArrayObject AssertionError BadFunctionCallException BadMethodCallException CachingIterator CallbackFilterIterator CompileError Countable DirectoryIterator DivisionByZeroError DomainException EmptyIterator ErrorException Exception FilesystemIterator FilterIterator GlobIterator InfiniteIterator InvalidArgumentException IteratorIterator LengthException LimitIterator LogicException MultipleIterator NoRewindIterator OutOfBoundsException OutOfRangeException OuterIterator OverflowException ParentIterator ParseError RangeException RecursiveArrayIterator RecursiveCachingIterator RecursiveCallbackFilterIterator RecursiveDirectoryIterator RecursiveFilterIterator RecursiveIterator RecursiveIteratorIterator RecursiveRegexIterator RecursiveTreeIterator RegexIterator RuntimeException SeekableIterator SplDoublyLinkedList SplFileInfo SplFileObject SplFixedArray SplHeap SplMaxHeap SplMinHeap SplObjectStorage SplObserver SplObserver SplPriorityQueue SplQueue SplStack SplSubject SplSubject SplTempFileObject TypeError UnderflowException UnexpectedValueException ArrayAccess Closure Generator Iterator IteratorAggregate Serializable Throwable Traversable WeakReference Directory __PHP_Incomplete_Class parent php_user_filter self static stdClass"};return{aliases:["php","php3","php4","php5","php6","php7","php8"],case_insensitive:!0,keywords:l,contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[n]}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler"}),n,{className:"keyword",begin:/\$this\b/},t,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[e.UNDERSCORE_TITLE_MODE,{begin:"=>"},{className:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:l,contains:["self",t,e.C_BLOCK_COMMENT_MODE,s,c]}]},{className:"class",beginKeywords:"class interface",relevance:0,end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",relevance:0,end:";",contains:[e.UNDERSCORE_TITLE_MODE]},s,c]}}},function(e,t){e.exports=function(e){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}},function(e,t){e.exports=function(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}},function(e,t){e.exports=function(e){return{name:"Pony",keywords:{keyword:"actor addressof and as be break class compile_error compile_intrinsic consume continue delegate digestof do else elseif embed end error for fun if ifdef in interface is isnt lambda let match new not object or primitive recover repeat return struct then trait try type until use var where while with xor",meta:"iso val tag trn box ref",literal:"this false true"},contains:[{className:"type",begin:"\\b_?[A-Z][\\w]*",relevance:0},{className:"string",begin:'"""',end:'"""',relevance:10},{className:"string",begin:'"',end:'"',contains:[e.BACKSLASH_ESCAPE]},{className:"string",begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE],relevance:0},{begin:e.IDENT_RE+"'",relevance:0},{className:"number",begin:"(-?)(\\b0[xX][a-fA-F0-9]+|\\b0[bB][01]+|(\\b\\d+(_\\d+)?(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}},function(e,t){e.exports=function(e){const t={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},n={begin:"`[\\s\\S]",relevance:0},o={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},r={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[n,o,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},i={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},a=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),s={className:"built_in",variants:[{begin:"(".concat("Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Complete|Confirm|Deny|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",")+(-)[\\w\\d]+")}]},c={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},l={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:/\w[\w\d]*((-)[\w\d]+)*/,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[o]}]},d={begin:/using\s/,end:/$/,returnBegin:!0,contains:[r,i,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},u={variants:[{className:"operator",begin:"(".concat("-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",")\\b")},{className:"literal",begin:/(-)[\w\d]+/,relevance:0}]},h={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(t.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},p=[h,a,n,e.NUMBER_MODE,r,i,s,o,{className:"literal",begin:/\$(null|true|false)\b/},{className:"selector-tag",begin:/@\B/,relevance:0}],m={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",p,{begin:"("+["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"].join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return h.contains.unshift(m),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:t,contains:p.concat(c,l,d,u,m)}}},function(e,t){e.exports=function(e){return{name:"Processing",keywords:{keyword:"BufferedReader PVector PFont PImage PGraphics HashMap boolean byte char color double float int long String Array FloatDict FloatList IntDict IntList JSONArray JSONObject Object StringDict StringList Table TableRow XML false synchronized int abstract float private char boolean static null if const for true while long throw strictfp finally protected import native final return void enum else break transient new catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private",literal:"P2D P3D HALF_PI PI QUARTER_PI TAU TWO_PI",title:"setup draw",built_in:"displayHeight displayWidth mouseY mouseX mousePressed pmouseX pmouseY key keyCode pixels focused frameCount frameRate height width size createGraphics beginDraw createShape loadShape PShape arc ellipse line point quad rect triangle bezier bezierDetail bezierPoint bezierTangent curve curveDetail curvePoint curveTangent curveTightness shape shapeMode beginContour beginShape bezierVertex curveVertex endContour endShape quadraticVertex vertex ellipseMode noSmooth rectMode smooth strokeCap strokeJoin strokeWeight mouseClicked mouseDragged mouseMoved mousePressed mouseReleased mouseWheel keyPressed keyPressedkeyReleased keyTyped print println save saveFrame day hour millis minute month second year background clear colorMode fill noFill noStroke stroke alpha blue brightness color green hue lerpColor red saturation modelX modelY modelZ screenX screenY screenZ ambient emissive shininess specular add createImage beginCamera camera endCamera frustum ortho perspective printCamera printProjection cursor frameRate noCursor exit loop noLoop popStyle pushStyle redraw binary boolean byte char float hex int str unbinary unhex join match matchAll nf nfc nfp nfs split splitTokens trim append arrayCopy concat expand reverse shorten sort splice subset box sphere sphereDetail createInput createReader loadBytes loadJSONArray loadJSONObject loadStrings loadTable loadXML open parseXML saveTable selectFolder selectInput beginRaw beginRecord createOutput createWriter endRaw endRecord PrintWritersaveBytes saveJSONArray saveJSONObject saveStream saveStrings saveXML selectOutput popMatrix printMatrix pushMatrix resetMatrix rotate rotateX rotateY rotateZ scale shearX shearY translate ambientLight directionalLight lightFalloff lights lightSpecular noLights normal pointLight spotLight image imageMode loadImage noTint requestImage tint texture textureMode textureWrap blend copy filter get loadPixels set updatePixels blendMode loadShader PShaderresetShader shader createFont loadFont text textFont textAlign textLeading textMode textSize textWidth textAscent textDescent abs ceil constrain dist exp floor lerp log mag map max min norm pow round sq sqrt acos asin atan atan2 cos degrees radians sin tan noise noiseDetail noiseSeed random randomGaussian randomSeed"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}},function(e,t){e.exports=function(e){return{name:"Python profiler",contains:[e.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[e.C_NUMBER_MODE],relevance:10},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}},function(e,t){e.exports=function(e){const t={begin:/\(/,end:/\)/,relevance:0},n={begin:/\[/,end:/\]/},o={className:"comment",begin:/%/,end:/$/,contains:[e.PHRASAL_WORDS_MODE]},r={className:"string",begin:/`/,end:/`/,contains:[e.BACKSLASH_ESCAPE]},i=[{begin:/[a-z][A-Za-z0-9_]*/,relevance:0},{className:"symbol",variants:[{begin:/[A-Z][a-zA-Z0-9_]*/},{begin:/_[A-Za-z0-9_]*/}],relevance:0},t,{begin:/:-/},n,o,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,r,{className:"string",begin:/0'(\\'|.)/},{className:"string",begin:/0'\\s/},e.C_NUMBER_MODE];return t.contains=i,n.contains=i,{name:"Prolog",contains:i.concat([{begin:/\.$/}])}}},function(e,t){e.exports=function(e){var t="[ \\t\\f]*",n="([ \\t\\f]*[:=][ \\t\\f]*|[ \\t\\f]+)",o="([^\\\\:= \\t\\f\\n]|\\\\.)+",r={end:n,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\\\"},{begin:"\\\\\\n"}]}};return{name:".properties",case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{returnBegin:!0,variants:[{begin:"([^\\\\\\W:= \\t\\f\\n]|\\\\.)+[ \\t\\f]*[:=][ \\t\\f]*",relevance:1},{begin:"([^\\\\\\W:= \\t\\f\\n]|\\\\.)+[ \\t\\f]+",relevance:0}],contains:[{className:"attr",begin:"([^\\\\\\W:= \\t\\f\\n]|\\\\.)+",endsParent:!0,relevance:0}],starts:r},{begin:o+n,returnBegin:!0,relevance:0,contains:[{className:"meta",begin:o,endsParent:!0,relevance:0}],starts:r},{className:"attr",relevance:0,begin:o+t+"$"}]}}},function(e,t){e.exports=function(e){return{name:"Protocol Buffers",keywords:{keyword:"package import option optional required repeated group oneof",built_in:"double float int32 int64 uint32 uint64 sint32 sint64 fixed32 fixed64 sfixed32 sfixed64 bool string bytes",literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"message enum service",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}},function(e,t){e.exports=function(e){const t=e.COMMENT("#","$"),n=e.inherit(e.TITLE_MODE,{begin:"([A-Za-z_]|::)(\\w|::)*"}),o={className:"variable",begin:"\\$([A-Za-z_]|::)(\\w|::)*"},r={className:"string",contains:[e.BACKSLASH_ESCAPE,o],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/}]};return{name:"Puppet",aliases:["pp"],contains:[t,o,r,{beginKeywords:"class",end:"\\{|;",illegal:/=/,contains:[n,t]},{beginKeywords:"define",end:/\{/,contains:[{className:"section",begin:e.IDENT_RE,endsParent:!0}]},{begin:e.IDENT_RE+"\\s+\\{",returnBegin:!0,end:/\S/,contains:[{className:"keyword",begin:e.IDENT_RE},{begin:/\{/,end:/\}/,keywords:{keyword:"and case default else elsif false if in import enherits node or true undef unless main settings $string ",literal:"alias audit before loglevel noop require subscribe tag owner ensure group mode name|0 changes context force incl lens load_path onlyif provider returns root show_diff type_check en_address ip_address realname command environment hour monute month monthday special target weekday creates cwd ogoutput refresh refreshonly tries try_sleep umask backup checksum content ctime force ignore links mtime purge recurse recurselimit replace selinux_ignore_defaults selrange selrole seltype seluser source souirce_permissions sourceselect validate_cmd validate_replacement allowdupe attribute_membership auth_membership forcelocal gid ia_load_module members system host_aliases ip allowed_trunk_vlans description device_url duplex encapsulation etherchannel native_vlan speed principals allow_root auth_class auth_type authenticate_user k_of_n mechanisms rule session_owner shared options device fstype enable hasrestart directory present absent link atboot blockdevice device dump pass remounts poller_tag use message withpath adminfile allow_virtual allowcdrom category configfiles flavor install_options instance package_settings platform responsefile status uninstall_options vendor unless_system_user unless_uid binary control flags hasstatus manifest pattern restart running start stop allowdupe auths expiry gid groups home iterations key_membership keys managehome membership password password_max_age password_min_age profile_membership profiles project purge_ssh_keys role_membership roles salt shell uid baseurl cost descr enabled enablegroups exclude failovermethod gpgcheck gpgkey http_caching include includepkgs keepalive metadata_expire metalink mirrorlist priority protect proxy proxy_password proxy_username repo_gpgcheck s3_enabled skip_if_unavailable sslcacert sslclientcert sslclientkey sslverify mounted",built_in:"architecture augeasversion blockdevices boardmanufacturer boardproductname boardserialnumber cfkey dhcp_servers domain ec2_ ec2_userdata facterversion filesystems ldom fqdn gid hardwareisa hardwaremodel hostname id|0 interfaces ipaddress ipaddress_ ipaddress6 ipaddress6_ iphostnumber is_virtual kernel kernelmajversion kernelrelease kernelversion kernelrelease kernelversion lsbdistcodename lsbdistdescription lsbdistid lsbdistrelease lsbmajdistrelease lsbminordistrelease lsbrelease macaddress macaddress_ macosx_buildversion macosx_productname macosx_productversion macosx_productverson_major macosx_productversion_minor manufacturer memoryfree memorysize netmask metmask_ network_ operatingsystem operatingsystemmajrelease operatingsystemrelease osfamily partitions path physicalprocessorcount processor processorcount productname ps puppetversion rubysitedir rubyversion selinux selinux_config_mode selinux_config_policy selinux_current_mode selinux_current_mode selinux_enforced selinux_policyversion serialnumber sp_ sshdsakey sshecdsakey sshrsakey swapencrypted swapfree swapsize timezone type uniqueid uptime uptime_days uptime_hours uptime_seconds uuid virtual vlans xendomains zfs_version zonenae zones zpool_version"},relevance:0,contains:[r,t,{begin:"[a-zA-Z_]+\\s*=>",returnBegin:!0,end:"=>",contains:[{className:"attr",begin:e.IDENT_RE}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},o]}],relevance:0}]}}},function(e,t){e.exports=function(e){return{name:"PureBASIC",aliases:["pb","pbi"],keywords:"Align And Array As Break CallDebugger Case CompilerCase CompilerDefault CompilerElse CompilerElseIf CompilerEndIf CompilerEndSelect CompilerError CompilerIf CompilerSelect CompilerWarning Continue Data DataSection Debug DebugLevel Declare DeclareC DeclareCDLL DeclareDLL DeclareModule Default Define Dim DisableASM DisableDebugger DisableExplicit Else ElseIf EnableASM EnableDebugger EnableExplicit End EndDataSection EndDeclareModule EndEnumeration EndIf EndImport EndInterface EndMacro EndModule EndProcedure EndSelect EndStructure EndStructureUnion EndWith Enumeration EnumerationBinary Extends FakeReturn For ForEach ForEver Global Gosub Goto If Import ImportC IncludeBinary IncludeFile IncludePath Interface List Macro MacroExpandedCount Map Module NewList NewMap Next Not Or Procedure ProcedureC ProcedureCDLL ProcedureDLL ProcedureReturn Protected Prototype PrototypeC ReDim Read Repeat Restore Return Runtime Select Shared Static Step Structure StructureUnion Swap Threaded To UndefineMacro Until Until UnuseModule UseModule Wend While With XIncludeFile XOr",contains:[e.COMMENT(";","$",{relevance:0}),{className:"function",begin:"\\b(Procedure|Declare)(C|CDLL|DLL)?\\b",end:"\\(",excludeEnd:!0,returnBegin:!0,contains:[{className:"keyword",begin:"(Procedure|Declare)(C|CDLL|DLL)?",excludeEnd:!0},{className:"type",begin:"\\.\\w*"},e.UNDERSCORE_TITLE_MODE]},{className:"string",begin:'(~)?"',end:'"',illegal:"\\n"},{className:"symbol",begin:"#[a-zA-Z_]\\w*\\$?"}]}}},function(e,t){e.exports=function(e){const t={keyword:["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","","from","global","if","import","in","is","lambda","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"].join(" "),built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"].join(" "),literal:["__debug__","Ellipsis","False","None","NotImplemented","True"].join(" ")},n={className:"meta",begin:/^(>>>|\.\.\.) /},o={className:"subst",begin:/\{/,end:/\}/,keywords:t,illegal:/#/},r={begin:/\{\{/,relevance:0},i={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,n],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,n],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,n,r,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,n,r,o]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,r,o]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,r,o]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},a="[0-9](_?[0-9])*",s=`(\\b(${a}))?\\.(${a})|\\b(${a})\\.`,c={className:"number",relevance:0,variants:[{begin:`(\\b(${a})|(${s}))[eE][+-]?(${a})[jJ]?\\b`},{begin:`(${s})[jJ]?`},{begin:"\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?\\b"},{begin:"\\b0[bB](_?[01])+[lL]?\\b"},{begin:"\\b0[oO](_?[0-7])+[lL]?\\b"},{begin:"\\b0[xX](_?[0-9a-fA-F])+[lL]?\\b"},{begin:`\\b(${a})[jJ]\\b`}]},l={className:"params",variants:[{begin:/\(\s*\)/,skip:!0,className:null},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:["self",n,c,i,e.HASH_COMMENT_MODE]}]};return o.contains=[i,c,n],{name:"Python",aliases:["py","gyp","ipython"],keywords:t,illegal:/(<\/|->|\?)|=>/,contains:[n,c,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},i,e.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[e.UNDERSCORE_TITLE_MODE,l,{begin:/->/,endsWithParent:!0,keywords:"None"}]},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[c,l,i]},{begin:/\b(print|exec)\(/}]}}},function(e,t){e.exports=function(e){return{aliases:["pycon"],contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}},function(e,t){e.exports=function(e){return{name:"Q",aliases:["k","kdb"],keywords:{$pattern:/(`?)[A-Za-z0-9_]+\b/,keyword:"do while select delete by update from",literal:"0b 1b",built_in:"neg not null string reciprocal floor ceiling signum mod xbar xlog and or each scan over prior mmu lsq inv md5 ltime gtime count first var dev med cov cor all any rand sums prds mins maxs fills deltas ratios avgs differ prev next rank reverse iasc idesc asc desc msum mcount mavg mdev xrank mmin mmax xprev rotate distinct group where flip type key til get value attr cut set upsert raze union inter except cross sv vs sublist enlist read0 read1 hopen hclose hdel hsym hcount peach system ltrim rtrim trim lower upper ssr view tables views cols xcols keys xkey xcol xasc xdesc fkeys meta lj aj aj0 ij pj asof uj ww wj wj1 fby xgroup ungroup ej save load rsave rload show csv parse eval min max avg wavg wsum sin cos tan sum",type:"`float `double int `timestamp `timespan `datetime `time `boolean `symbol `char `byte `short `long `real `month `date `minute `second `guid"},contains:[e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE]}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t="[a-zA-Z_][a-zA-Z0-9\\._]*",o={className:"attribute",begin:"\\bid\\s*:",starts:{className:"string",end:t,returnEnd:!1}},r={begin:t+"\\s*:",returnBegin:!0,contains:[{className:"attribute",begin:t,end:"\\s*:",excludeEnd:!0,relevance:0}],relevance:0},i={begin:n(t,/\s*\{/),end:/\{/,returnBegin:!0,relevance:0,contains:[e.inherit(e.TITLE_MODE,{begin:t})]};return{name:"QML",aliases:["qt"],case_insensitive:!1,keywords:{keyword:"in of on if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await import",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Behavior bool color coordinate date double enumeration font geocircle georectangle geoshape int list matrix4x4 parent point quaternion real rect size string url variant vector2d vector3d vector4d Promise"},contains:[{className:"meta",begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/</,end:/>\s*[);\]]/,relevance:0,subLanguage:"xml"}],relevance:0},{className:"keyword",begin:"\\bsignal\\b",starts:{className:"string",end:"(\\(|:|=|;|,|//|/\\*|$)",returnEnd:!0}},{className:"keyword",begin:"\\bproperty\\b",starts:{className:"string",end:"(:|=|;|,|//|/\\*|$)",returnEnd:!0}},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:"\\."+e.IDENT_RE,relevance:0},o,r,i],illegal:/#/}}},function(e,t){function n(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/;return{name:"R",illegal:/->/,keywords:{$pattern:t,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},compilerExtensions:[(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const o=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]}),e.begin=n(o.beforeMatch,n("(?=",o.begin,")")),e.starts={relevance:0,contains:[Object.assign(o,{endsParent:!0})]},e.relevance=0,delete o.beforeMatch}],contains:[e.COMMENT(/#'/,/$/,{contains:[{className:"doctag",begin:"@examples",starts:{contains:[{begin:/\n/},{begin:/#'\s*(?=@[a-zA-Z]+)/,endsParent:!0},{begin:/#'/,end:/$/,excludeBegin:!0}]}},{className:"doctag",begin:"@param",end:/$/,contains:[{className:"variable",variants:[{begin:t},{begin:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{className:"doctag",begin:/@[a-zA-Z]+/},{className:"meta-keyword",begin:/\\[a-zA-Z]+/}]}),e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),e.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{className:"number",relevance:0,beforeMatch:/([^a-zA-Z0-9._])/,variants:[{match:/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/},{match:/0[xX][0-9a-fA-F]+([pP][+-]?\d+)?[Li]?/},{match:/(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?[Li]?/}]},{begin:"%",end:"%"},{begin:n(/[a-zA-Z][a-zA-Z_0-9]*/,"\\s+<-\\s+")},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}},function(e,t){e.exports=function(e){const t="~?[a-z$_][0-9a-zA-Z$_]*",n="`?[A-Z$_][0-9a-zA-Z$_]*",o="("+(["||","++","**","+.","*","/","*.","/.","..."].map((function(e){return e.split("").map((function(e){return"\\"+e})).join("")})).join("|")+"|\\|>|&&|==|===)"),r="\\s+"+o+"\\s+",i={keyword:"and as asr assert begin class constraint do done downto else end exception external for fun function functor if in include inherit initializer land lazy let lor lsl lsr lxor match method mod module mutable new nonrec object of open or private rec sig struct then to try type val virtual when while with",built_in:"array bool bytes char exn|5 float int int32 int64 list lazy_t|5 nativeint|5 ref string unit ",literal:"true false"},a="\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",s={className:"number",relevance:0,variants:[{begin:a},{begin:"\\(-"+a+"\\)"}]},c={className:"operator",relevance:0,begin:o},l=[{className:"identifier",relevance:0,begin:t},c,s],d=[e.QUOTE_STRING_MODE,c,{className:"module",begin:"\\b"+n,returnBegin:!0,end:".",contains:[{className:"identifier",begin:n,relevance:0}]}],u=[{className:"module",begin:"\\b"+n,returnBegin:!0,end:".",relevance:0,contains:[{className:"identifier",begin:n,relevance:0}]}],h={className:"function",relevance:0,keywords:i,variants:[{begin:"\\s(\\(\\.?.*?\\)|"+t+")\\s*=>",end:"\\s*=>",returnBegin:!0,relevance:0,contains:[{className:"params",variants:[{begin:t},{begin:"~?[a-z$_][0-9a-zA-Z$_]*(\\s*:\\s*[a-z$_][0-9a-z$_]*(\\(\\s*('?[a-z$_][0-9a-z$_]*\\s*(,'?[a-z$_][0-9a-z$_]*\\s*)*)?\\))?){0,2}"},{begin:/\(\s*\)/}]}]},{begin:"\\s\\(\\.?[^;\\|]*\\)\\s*=>",end:"\\s=>",returnBegin:!0,relevance:0,contains:[{className:"params",relevance:0,variants:[{begin:t,end:"(,|\\n|\\))",relevance:0,contains:[c,{className:"typing",begin:":",end:"(,|\\n)",returnBegin:!0,relevance:0,contains:u}]}]}]},{begin:"\\(\\.\\s"+t+"\\)\\s*=>"}]};d.push(h);const p={className:"constructor",begin:n+"\\(",end:"\\)",illegal:"\\n",keywords:i,contains:[e.QUOTE_STRING_MODE,c,{className:"params",begin:"\\b"+t}]},m={className:"pattern-match",begin:"\\|",returnBegin:!0,keywords:i,end:"=>",relevance:0,contains:[p,c,{relevance:0,className:"constructor",begin:n}]},g={className:"module-access",keywords:i,returnBegin:!0,variants:[{begin:"\\b("+n+"\\.)+"+t},{begin:"\\b("+n+"\\.)+\\(",end:"\\)",returnBegin:!0,contains:[h,{begin:"\\(",end:"\\)",skip:!0}].concat(d)},{begin:"\\b("+n+"\\.)+\\{",end:/\}/}],contains:d};return u.push(g),{name:"ReasonML",aliases:["re"],keywords:i,illegal:"(:-|:=|\\$\\{|\\+=)",contains:[e.COMMENT("/\\*","\\*/",{illegal:"^(#,\\/\\/)"}),{className:"character",begin:"'(\\\\[^']+|[^'])'",illegal:"\\n",relevance:0},e.QUOTE_STRING_MODE,{className:"literal",begin:"\\(\\)",relevance:0},{className:"literal",begin:"\\[\\|",end:"\\|\\]",relevance:0,contains:l},{className:"literal",begin:"\\[",end:"\\]",relevance:0,contains:l},p,{className:"operator",begin:r,illegal:"--\x3e",relevance:0},s,e.C_LINE_COMMENT_MODE,m,h,{className:"module-def",begin:"\\bmodule\\s+"+t+"\\s+"+n+"\\s+=\\s+\\{",end:/\}/,returnBegin:!0,keywords:i,relevance:0,contains:[{className:"module",relevance:0,begin:n},{begin:/\{/,end:/\}/,skip:!0}].concat(d)},g]}}},function(e,t){e.exports=function(e){return{name:"RenderMan RIB",keywords:"ArchiveRecord AreaLightSource Atmosphere Attribute AttributeBegin AttributeEnd Basis Begin Blobby Bound Clipping ClippingPlane Color ColorSamples ConcatTransform Cone CoordinateSystem CoordSysTransform CropWindow Curves Cylinder DepthOfField Detail DetailRange Disk Displacement Display End ErrorHandler Exposure Exterior Format FrameAspectRatio FrameBegin FrameEnd GeneralPolygon GeometricApproximation Geometry Hider Hyperboloid Identity Illuminate Imager Interior LightSource MakeCubeFaceEnvironment MakeLatLongEnvironment MakeShadow MakeTexture Matte MotionBegin MotionEnd NuPatch ObjectBegin ObjectEnd ObjectInstance Opacity Option Orientation Paraboloid Patch PatchMesh Perspective PixelFilter PixelSamples PixelVariance Points PointsGeneralPolygons PointsPolygons Polygon Procedural Projection Quantize ReadArchive RelativeDetail ReverseOrientation Rotate Scale ScreenWindow ShadingInterpolation ShadingRate Shutter Sides Skew SolidBegin SolidEnd Sphere SubdivisionMesh Surface TextureCoordinates Torus Transform TransformBegin TransformEnd TransformPoints Translate TrimCurve WorldBegin WorldEnd",illegal:"</",contains:[e.HASH_COMMENT_MODE,e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}}},function(e,t){e.exports=function(e){const t={className:"attribute",begin:/[a-zA-Z-_]+/,end:/\s*:/,excludeEnd:!0,starts:{end:";",relevance:0,contains:[{className:"variable",begin:/\.[a-zA-Z-_]+/},{className:"keyword",begin:/\(optional\)/}]}};return{name:"Roboconf",aliases:["graph","instances"],case_insensitive:!0,keywords:"import",contains:[{begin:"^facet [a-zA-Z-_][^\\n{]+\\{",end:/\}/,keywords:"facet",contains:[t,e.HASH_COMMENT_MODE]},{begin:"^\\s*instance of [a-zA-Z-_][^\\n{]+\\{",end:/\}/,keywords:"name count channels instance-data instance-state instance of",illegal:/\S/,contains:["self",t,e.HASH_COMMENT_MODE]},{begin:"^[a-zA-Z-_][^\\n{]+\\{",end:/\}/,contains:[t,e.HASH_COMMENT_MODE]},e.HASH_COMMENT_MODE]}}},function(e,t){e.exports=function(e){const t="foreach do while for if from to step else on-error and or not in",n="true false yes no nothing nil null",o={className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},r={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,o,{className:"variable",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]}]},i={className:"string",begin:/'/,end:/'/};return{name:"Microtik RouterOS script",aliases:["routeros","mikrotik"],case_insensitive:!0,keywords:{$pattern:/:?[\w-]+/,literal:n,keyword:t+" :"+t.split(" ").join(" :")+" :"+"global local beep delay put len typeof pick log time set find environment terminal error execute parse resolve toarray tobool toid toip toip6 tonum tostr totime".split(" ").join(" :")},contains:[{variants:[{begin:/\/\*/,end:/\*\//},{begin:/\/\//,end:/$/},{begin:/<\//,end:/>/}],illegal:/./},e.COMMENT("^#","$"),r,i,o,{begin:/[\w-]+=([^\s{}[\]()]+)/,relevance:0,returnBegin:!0,contains:[{className:"attribute",begin:/[^=]+/},{begin:/=/,endsWithParent:!0,relevance:0,contains:[r,i,o,{className:"literal",begin:"\\b("+n.split(" ").join("|")+")\\b"},{begin:/("[^"]*"|[^\s{}[\]]+)/}]}]},{className:"number",begin:/\*[0-9a-fA-F]+/},{begin:"\\b("+"add remove enable disable set get print export edit find run debug error info warning".split(" ").join("|")+")([\\s[(\\]|])",returnBegin:!0,contains:[{className:"builtin-name",begin:/\w+/}]},{className:"built_in",variants:[{begin:"(\\.\\./|/|\\s)(("+"traffic-flow traffic-generator firewall scheduler aaa accounting address-list address align area bandwidth-server bfd bgp bridge client clock community config connection console customer default dhcp-client dhcp-server discovery dns e-mail ethernet filter firmware gps graphing group hardware health hotspot identity igmp-proxy incoming instance interface ip ipsec ipv6 irq l2tp-server lcd ldp logging mac-server mac-winbox mangle manual mirror mme mpls nat nd neighbor network note ntp ospf ospf-v3 ovpn-server page peer pim ping policy pool port ppp pppoe-client pptp-server prefix profile proposal proxy queue radius resource rip ripng route routing screen script security-profiles server service service-port settings shares smb sms sniffer snmp snooper socks sstp-server system tool tracking type upgrade upnp user-manager users user vlan secret vrrp watchdog web-access wireless pptp pppoe lan wan layer7-protocol lease simple raw".split(" ").join("|")+");?\\s)+"},{begin:/\.\./,relevance:0}]}]}}},function(e,t){e.exports=function(e){return{name:"RenderMan RSL",keywords:{keyword:"float color point normal vector matrix while for if do return else break extern continue",built_in:"abs acos ambient area asin atan atmosphere attribute calculatenormal ceil cellnoise clamp comp concat cos degrees depth Deriv diffuse distance Du Dv environment exp faceforward filterstep floor format fresnel incident length lightsource log match max min mod noise normalize ntransform opposite option phong pnoise pow printf ptlined radians random reflect refract renderinfo round setcomp setxcomp setycomp setzcomp shadow sign sin smoothstep specular specularbrdf spline sqrt step tan texture textureinfo trace transform vtransform xcomp ycomp zcomp"},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"#",end:"$"},{className:"class",beginKeywords:"surface displacement light volume imager",end:"\\("},{beginKeywords:"illuminate illuminance gather",end:"\\("}]}}},function(e,t){e.exports=function(e){return{name:"Oracle Rules Language",keywords:{keyword:"BILL_PERIOD BILL_START BILL_STOP RS_EFFECTIVE_START RS_EFFECTIVE_STOP RS_JURIS_CODE RS_OPCO_CODE INTDADDATTRIBUTE|5 INTDADDVMSG|5 INTDBLOCKOP|5 INTDBLOCKOPNA|5 INTDCLOSE|5 INTDCOUNT|5 INTDCOUNTSTATUSCODE|5 INTDCREATEMASK|5 INTDCREATEDAYMASK|5 INTDCREATEFACTORMASK|5 INTDCREATEHANDLE|5 INTDCREATEOVERRIDEDAYMASK|5 INTDCREATEOVERRIDEMASK|5 INTDCREATESTATUSCODEMASK|5 INTDCREATETOUPERIOD|5 INTDDELETE|5 INTDDIPTEST|5 INTDEXPORT|5 INTDGETERRORCODE|5 INTDGETERRORMESSAGE|5 INTDISEQUAL|5 INTDJOIN|5 INTDLOAD|5 INTDLOADACTUALCUT|5 INTDLOADDATES|5 INTDLOADHIST|5 INTDLOADLIST|5 INTDLOADLISTDATES|5 INTDLOADLISTENERGY|5 INTDLOADLISTHIST|5 INTDLOADRELATEDCHANNEL|5 INTDLOADSP|5 INTDLOADSTAGING|5 INTDLOADUOM|5 INTDLOADUOMDATES|5 INTDLOADUOMHIST|5 INTDLOADVERSION|5 INTDOPEN|5 INTDREADFIRST|5 INTDREADNEXT|5 INTDRECCOUNT|5 INTDRELEASE|5 INTDREPLACE|5 INTDROLLAVG|5 INTDROLLPEAK|5 INTDSCALAROP|5 INTDSCALE|5 INTDSETATTRIBUTE|5 INTDSETDSTPARTICIPANT|5 INTDSETSTRING|5 INTDSETVALUE|5 INTDSETVALUESTATUS|5 INTDSHIFTSTARTTIME|5 INTDSMOOTH|5 INTDSORT|5 INTDSPIKETEST|5 INTDSUBSET|5 INTDTOU|5 INTDTOURELEASE|5 INTDTOUVALUE|5 INTDUPDATESTATS|5 INTDVALUE|5 STDEV INTDDELETEEX|5 INTDLOADEXACTUAL|5 INTDLOADEXCUT|5 INTDLOADEXDATES|5 INTDLOADEX|5 INTDLOADEXRELATEDCHANNEL|5 INTDSAVEEX|5 MVLOAD|5 MVLOADACCT|5 MVLOADACCTDATES|5 MVLOADACCTHIST|5 MVLOADDATES|5 MVLOADHIST|5 MVLOADLIST|5 MVLOADLISTDATES|5 MVLOADLISTHIST|5 IF FOR NEXT DONE SELECT END CALL ABORT CLEAR CHANNEL FACTOR LIST NUMBER OVERRIDE SET WEEK DISTRIBUTIONNODE ELSE WHEN THEN OTHERWISE IENUM CSV INCLUDE LEAVE RIDER SAVE DELETE NOVALUE SECTION WARN SAVE_UPDATE DETERMINANT LABEL REPORT REVENUE EACH IN FROM TOTAL CHARGE BLOCK AND OR CSV_FILE RATE_CODE AUXILIARY_DEMAND UIDACCOUNT RS BILL_PERIOD_SELECT HOURS_PER_MONTH INTD_ERROR_STOP SEASON_SCHEDULE_NAME ACCOUNTFACTOR ARRAYUPPERBOUND CALLSTOREDPROC GETADOCONNECTION GETCONNECT GETDATASOURCE GETQUALIFIER GETUSERID HASVALUE LISTCOUNT LISTOP LISTUPDATE LISTVALUE PRORATEFACTOR RSPRORATE SETBINPATH SETDBMONITOR WQ_OPEN BILLINGHOURS DATE DATEFROMFLOAT DATETIMEFROMSTRING DATETIMETOSTRING DATETOFLOAT DAY DAYDIFF DAYNAME DBDATETIME HOUR MINUTE MONTH MONTHDIFF MONTHHOURS MONTHNAME ROUNDDATE SAMEWEEKDAYLASTYEAR SECOND WEEKDAY WEEKDIFF YEAR YEARDAY YEARSTR COMPSUM HISTCOUNT HISTMAX HISTMIN HISTMINNZ HISTVALUE MAXNRANGE MAXRANGE MINRANGE COMPIKVA COMPKVA COMPKVARFROMKQKW COMPLF IDATTR FLAG LF2KW LF2KWH MAXKW POWERFACTOR READING2USAGE AVGSEASON MAXSEASON MONTHLYMERGE SEASONVALUE SUMSEASON ACCTREADDATES ACCTTABLELOAD CONFIGADD CONFIGGET CREATEOBJECT CREATEREPORT EMAILCLIENT EXPBLKMDMUSAGE EXPMDMUSAGE EXPORT_USAGE FACTORINEFFECT GETUSERSPECIFIEDSTOP INEFFECT ISHOLIDAY RUNRATE SAVE_PROFILE SETREPORTTITLE USEREXIT WATFORRUNRATE TO TABLE ACOS ASIN ATAN ATAN2 BITAND CEIL COS COSECANT COSH COTANGENT DIVQUOT DIVREM EXP FABS FLOOR FMOD FREPM FREXPN LOG LOG10 MAX MAXN MIN MINNZ MODF POW ROUND ROUND2VALUE ROUNDINT SECANT SIN SINH SQROOT TAN TANH FLOAT2STRING FLOAT2STRINGNC INSTR LEFT LEN LTRIM MID RIGHT RTRIM STRING STRINGNC TOLOWER TOUPPER TRIM NUMDAYS READ_DATE STAGING",built_in:"IDENTIFIER OPTIONS XML_ELEMENT XML_OP XML_ELEMENT_OF DOMDOCCREATE DOMDOCLOADFILE DOMDOCLOADXML DOMDOCSAVEFILE DOMDOCGETROOT DOMDOCADDPI DOMNODEGETNAME DOMNODEGETTYPE DOMNODEGETVALUE DOMNODEGETCHILDCT DOMNODEGETFIRSTCHILD DOMNODEGETSIBLING DOMNODECREATECHILDELEMENT DOMNODESETATTRIBUTE DOMNODEGETCHILDELEMENTCT DOMNODEGETFIRSTCHILDELEMENT DOMNODEGETSIBLINGELEMENT DOMNODEGETATTRIBUTECT DOMNODEGETATTRIBUTEI DOMNODEGETATTRIBUTEBYNAME DOMNODEGETBYNAME"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"literal",variants:[{begin:"#\\s+",relevance:0},{begin:"#[a-zA-Z .]+"}]}]}}},function(e,t){e.exports=function(e){const t="([ui](8|16|32|64|128|size)|f(32|64))?",n="drop i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f32 f64 str char bool Box Option Result String Vec Copy Send Sized Sync Drop Fn FnMut FnOnce ToOwned Clone Debug PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator Extend IntoIterator DoubleEndedIterator ExactSizeIterator SliceConcatExt ToString assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! debug_assert! debug_assert_eq! env! panic! file! format! format_args! include_bin! include_str! line! local_data_key! module_path! option_env! print! println! select! stringify! try! unimplemented! unreachable! vec! write! writeln! macro_rules! assert_ne! debug_assert_ne!";return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",keyword:"abstract as async await become box break const continue crate do dyn else enum extern false final fn for if impl in let loop macro match mod move mut override priv pub ref return self Self static struct super trait true try type typeof unsafe unsized use virtual where while yield",literal:"true false Some None Ok Err",built_in:n},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+t},{begin:"\\b0o([0-7_]+)"+t},{begin:"\\b0x([A-Fa-f0-9_]+)"+t},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+t}],relevance:0},{className:"function",beginKeywords:"fn",end:"(\\(|<)",excludeEnd:!0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"meta-string",begin:/"/,end:/"/}]},{className:"class",beginKeywords:"type",end:";",contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"\\S"},{className:"class",beginKeywords:"trait enum struct union",end:/\{/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{endsParent:!0})],illegal:"[\\w\\d]"},{begin:e.IDENT_RE+"::",keywords:{built_in:n}},{begin:"->"}]}}},function(e,t){e.exports=function(e){return{name:"SAS",aliases:["sas","SAS"],case_insensitive:!0,keywords:{literal:"null missing _all_ _automatic_ _character_ _infile_ _n_ _name_ _null_ _numeric_ _user_ _webout_",meta:"do if then else end until while abort array attrib by call cards cards4 catname continue datalines datalines4 delete delim delimiter display dm drop endsas error file filename footnote format goto in infile informat input keep label leave length libname link list lostcard merge missing modify options output out page put redirect remove rename replace retain return select set skip startsas stop title update waitsas where window x systask add and alter as cascade check create delete describe distinct drop foreign from group having index insert into in key like message modify msgtype not null on or order primary references reset restrict select set table unique update validate view where"},contains:[{className:"keyword",begin:/^\s*(proc [\w\d_]+|data|run|quit)[\s;]/},{className:"variable",begin:/&[a-zA-Z_&][a-zA-Z0-9_]*\.?/},{className:"emphasis",begin:/^\s*datalines|cards.*;/,end:/^\s*;\s*$/},{className:"built_in",begin:"%(bquote|nrbquote|cmpres|qcmpres|compstor|datatyp|display|do|else|end|eval|global|goto|if|index|input|keydef|label|left|length|let|local|lowcase|macro|mend|nrbquote|nrquote|nrstr|put|qcmpres|qleft|qlowcase|qscan|qsubstr|qsysfunc|qtrim|quote|qupcase|scan|str|substr|superq|syscall|sysevalf|sysexec|sysfunc|sysget|syslput|sysprod|sysrc|sysrput|then|to|trim|unquote|until|upcase|verify|while|window)"},{className:"name",begin:/%[a-zA-Z_][a-zA-Z_0-9]*/},{className:"meta",begin:"[^%](abs|addr|airy|arcos|arsin|atan|attrc|attrn|band|betainv|blshift|bnot|bor|brshift|bxor|byte|cdf|ceil|cexist|cinv|close|cnonct|collate|compbl|compound|compress|cos|cosh|css|curobs|cv|daccdb|daccdbsl|daccsl|daccsyd|dacctab|dairy|date|datejul|datepart|datetime|day|dclose|depdb|depdbsl|depdbsl|depsl|depsl|depsyd|depsyd|deptab|deptab|dequote|dhms|dif|digamma|dim|dinfo|dnum|dopen|doptname|doptnum|dread|dropnote|dsname|erf|erfc|exist|exp|fappend|fclose|fcol|fdelete|fetch|fetchobs|fexist|fget|fileexist|filename|fileref|finfo|finv|fipname|fipnamel|fipstate|floor|fnonct|fnote|fopen|foptname|foptnum|fpoint|fpos|fput|fread|frewind|frlen|fsep|fuzz|fwrite|gaminv|gamma|getoption|getvarc|getvarn|hbound|hms|hosthelp|hour|ibessel|index|indexc|indexw|input|inputc|inputn|int|intck|intnx|intrr|irr|jbessel|juldate|kurtosis|lag|lbound|left|length|lgamma|libname|libref|log|log10|log2|logpdf|logpmf|logsdf|lowcase|max|mdy|mean|min|minute|mod|month|mopen|mort|n|netpv|nmiss|normal|note|npv|open|ordinal|pathname|pdf|peek|peekc|pmf|point|poisson|poke|probbeta|probbnml|probchi|probf|probgam|probhypr|probit|probnegb|probnorm|probt|put|putc|putn|qtr|quote|ranbin|rancau|ranexp|rangam|range|rank|rannor|ranpoi|rantbl|rantri|ranuni|repeat|resolve|reverse|rewind|right|round|saving|scan|sdf|second|sign|sin|sinh|skewness|soundex|spedis|sqrt|std|stderr|stfips|stname|stnamel|substr|sum|symget|sysget|sysmsg|sysprod|sysrc|system|tan|tanh|time|timepart|tinv|tnonct|today|translate|tranwrd|trigamma|trim|trimn|trunc|uniform|upcase|uss|var|varfmt|varinfmt|varlabel|varlen|varname|varnum|varray|varrayx|vartype|verify|vformat|vformatd|vformatdx|vformatn|vformatnx|vformatw|vformatwx|vformatx|vinarray|vinarrayx|vinformat|vinformatd|vinformatdx|vinformatn|vinformatnx|vinformatw|vinformatwx|vinformatx|vlabel|vlabelx|vlength|vlengthx|vname|vnamex|vtype|vtypex|weekday|year|yyq|zipfips|zipname|zipnamel|zipstate)[(]"},{className:"string",variants:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},e.COMMENT("\\*",";"),e.C_BLOCK_COMMENT_MODE]}}},function(e,t){e.exports=function(e){const t={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"},{begin:/\$\{/,end:/\}/}]},n={className:"string",variants:[{begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:'"""',end:'"""',relevance:10},{begin:'[a-z]+"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE,t]},{className:"string",begin:'[a-z]+"""',end:'"""',contains:[t],relevance:10}]},o={className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},r={className:"title",begin:/[^0-9\n\t "'(),.`{}\[\]:;][^\n\t "'(),.`{}\[\]:;]+|[^0-9\n\t "'(),.`{}\[\]:;=]/,relevance:0},i={className:"class",beginKeywords:"class object trait type",end:/[:={\[\n;]/,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{beginKeywords:"extends with",relevance:10},{begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[o]},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[o]},r]},a={className:"function",beginKeywords:"def",end:/[:={\[(\n;]/,excludeEnd:!0,contains:[r]};return{name:"Scala",keywords:{literal:"true false null",keyword:"type yield lazy override def with val var sealed abstract private trait object if forSome for while throw finally protected extends import final return else break new catch super class case package default try this match continue throws implicit"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"symbol",begin:"'\\w[\\w\\d_]*(?!')"},o,a,i,e.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"}]}}},function(e,t){e.exports=function(e){const t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",n={$pattern:t,"builtin-name":"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci<? char-ci=? char-ci>=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char<? char=? char>=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci<? string-ci=? string-ci>=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string<? string=? string>=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},o={className:"literal",begin:"(#t|#f|#\\\\"+t+"|#\\\\.)"},r={className:"number",variants:[{begin:"(-|\\+)?\\d+([./]\\d+)?",relevance:0},{begin:"(-|\\+)?\\d+([./]\\d+)?[+\\-](-|\\+)?\\d+([./]\\d+)?i",relevance:0},{begin:"#b[0-1]+(/[0-1]+)?"},{begin:"#o[0-7]+(/[0-7]+)?"},{begin:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},i=e.QUOTE_STRING_MODE,a=[e.COMMENT(";","$",{relevance:0}),e.COMMENT("#\\|","\\|#")],s={begin:t,relevance:0},c={className:"symbol",begin:"'"+t},l={endsWithParent:!0,relevance:0},d={variants:[{begin:/'/},{begin:"`"}],contains:[{begin:"\\(",end:"\\)",contains:["self",o,i,r,s,c]}]},u={className:"name",relevance:0,begin:t,keywords:n},h={variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}],contains:[{begin:/lambda/,endsWithParent:!0,returnBegin:!0,contains:[u,{endsParent:!0,variants:[{begin:/\(/,end:/\)/},{begin:/\[/,end:/\]/}],contains:[s]}]},u,l]};return l.contains=[o,r,i,s,c,d,h].concat(a),{name:"Scheme",illegal:/\S/,contains:[e.SHEBANG(),r,i,c,d,h].concat(a)}}},function(e,t){e.exports=function(e){const t=[e.C_NUMBER_MODE,{className:"string",begin:"'|\"",end:"'|\"",contains:[e.BACKSLASH_ESCAPE,{begin:"''"}]}];return{name:"Scilab",aliases:["sci"],keywords:{$pattern:/%?\w+/,keyword:"abort break case clear catch continue do elseif else endfunction end for function global if pause return resume select try then while",literal:"%f %F %t %T %pi %eps %inf %nan %e %i %z %s",built_in:"abs and acos asin atan ceil cd chdir clearglobal cosh cos cumprod deff disp error exec execstr exists exp eye gettext floor fprintf fread fsolve imag isdef isempty isinfisnan isvector lasterror length load linspace list listfiles log10 log2 log max min msprintf mclose mopen ones or pathconvert poly printf prod pwd rand real round sinh sin size gsort sprintf sqrt strcat strcmps tring sum system tanh tan type typename warning zeros matrix"},illegal:'("|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{begin:"[a-zA-Z_][a-zA-Z_0-9]*[\\.']+",relevance:0},{begin:"\\[",end:"\\][\\.']*",relevance:0,contains:t},e.COMMENT("//","$")].concat(t)}}},function(e,t){e.exports=function(e){var t={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b"},n={className:"number",begin:"#[0-9A-Fa-f]+"};return e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},{className:"selector-attr",begin:"\\[",end:"\\]",illegal:"$"},{className:"selector-tag",begin:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",relevance:0},{className:"selector-pseudo",begin:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{className:"selector-pseudo",begin:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},t,{className:"attribute",begin:"\\b(src|z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",illegal:"[^\\s]"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[t,n,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"meta",begin:"!important"}]},{begin:"@(page|font-face)",lexemes:"@[a-z-]+",keywords:"@page @font-face"},{begin:"@",end:"[{;]",returnBegin:!0,keywords:"and or not only",contains:[{begin:"@[a-z-]+",className:"keyword"},t,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,n,e.CSS_NUMBER_MODE]}]}}},function(e,t){e.exports=function(e){return{name:"Shell Session",aliases:["console"],contains:[{className:"meta",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#]/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}},function(e,t){e.exports=function(e){const t=["add","and","cmp","cmpg","cmpl","const","div","double","float","goto","if","int","long","move","mul","neg","new","nop","not","or","rem","return","shl","shr","sput","sub","throw","ushr","xor"];return{name:"Smali",aliases:["smali"],contains:[{className:"string",begin:'"',end:'"',relevance:0},e.COMMENT("#","$",{relevance:0}),{className:"keyword",variants:[{begin:"\\s*\\.end\\s[a-zA-Z0-9]*"},{begin:"^[ ]*\\.[a-zA-Z]*",relevance:0},{begin:"\\s:[a-zA-Z_0-9]*",relevance:0},{begin:"\\s("+["transient","constructor","abstract","final","synthetic","public","private","protected","static","bridge","system"].join("|")+")"}]},{className:"built_in",variants:[{begin:"\\s("+t.join("|")+")\\s"},{begin:"\\s("+t.join("|")+")((-|/)[a-zA-Z0-9]+)+\\s",relevance:10},{begin:"\\s("+["aget","aput","array","check","execute","fill","filled","goto/16","goto/32","iget","instance","invoke","iput","monitor","packed","sget","sparse"].join("|")+")((-|/)[a-zA-Z0-9]+)*\\s",relevance:10}]},{className:"class",begin:"L[^(;:\n]*;",relevance:0},{begin:"[vp][0-9]+"}]}}},function(e,t){e.exports=function(e){const t={className:"string",begin:"\\$.{1}"},n={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:"self super nil true false thisContext",contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:"[a-z][a-zA-Z0-9_]*:",relevance:0},e.C_NUMBER_MODE,n,t,{begin:"\\|[ ]*[a-z][a-zA-Z0-9_]*([ ]+[a-z][a-zA-Z0-9_]*)*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?[a-z][a-zA-Z0-9_]*"}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,t,e.C_NUMBER_MODE,n]}]}}},function(e,t){e.exports=function(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}},function(e,t){e.exports=function(e){const t={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},n={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"define undef ifdef ifndef else endif include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(t,{className:"meta-string"}),{className:"meta-string",begin:/<[^\n>]*>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]};return{name:"SQF",aliases:["sqf"],case_insensitive:!0,keywords:{keyword:"case catch default do else exit exitWith for forEach from if private switch then throw to try waitUntil while with",built_in:"abs accTime acos action actionIDs actionKeys actionKeysImages actionKeysNames actionKeysNamesArray actionName actionParams activateAddons activatedAddons activateKey add3DENConnection add3DENEventHandler add3DENLayer addAction addBackpack addBackpackCargo addBackpackCargoGlobal addBackpackGlobal addCamShake addCuratorAddons addCuratorCameraArea addCuratorEditableObjects addCuratorEditingArea addCuratorPoints addEditorObject addEventHandler addForce addGoggles addGroupIcon addHandgunItem addHeadgear addItem addItemCargo addItemCargoGlobal addItemPool addItemToBackpack addItemToUniform addItemToVest addLiveStats addMagazine addMagazineAmmoCargo addMagazineCargo addMagazineCargoGlobal addMagazineGlobal addMagazinePool addMagazines addMagazineTurret addMenu addMenuItem addMissionEventHandler addMPEventHandler addMusicEventHandler addOwnedMine addPlayerScores addPrimaryWeaponItem addPublicVariableEventHandler addRating addResources addScore addScoreSide addSecondaryWeaponItem addSwitchableUnit addTeamMember addToRemainsCollector addTorque addUniform addVehicle addVest addWaypoint addWeapon addWeaponCargo addWeaponCargoGlobal addWeaponGlobal addWeaponItem addWeaponPool addWeaponTurret admin agent agents AGLToASL aimedAtTarget aimPos airDensityRTD airplaneThrottle airportSide AISFinishHeal alive all3DENEntities allAirports allControls allCurators allCutLayers allDead allDeadMen allDisplays allGroups allMapMarkers allMines allMissionObjects allow3DMode allowCrewInImmobile allowCuratorLogicIgnoreAreas allowDamage allowDammage allowFileOperations allowFleeing allowGetIn allowSprint allPlayers allSimpleObjects allSites allTurrets allUnits allUnitsUAV allVariables ammo ammoOnPylon and animate animateBay animateDoor animatePylon animateSource animationNames animationPhase animationSourcePhase animationState append apply armoryPoints arrayIntersect asin ASLToAGL ASLToATL assert assignAsCargo assignAsCargoIndex assignAsCommander assignAsDriver assignAsGunner assignAsTurret assignCurator assignedCargo assignedCommander assignedDriver assignedGunner assignedItems assignedTarget assignedTeam assignedVehicle assignedVehicleRole assignItem assignTeam assignToAirport atan atan2 atg ATLToASL attachedObject attachedObjects attachedTo attachObject attachTo attackEnabled backpack backpackCargo backpackContainer backpackItems backpackMagazines backpackSpaceFor behaviour benchmark binocular boundingBox boundingBoxReal boundingCenter breakOut breakTo briefingName buildingExit buildingPos buttonAction buttonSetAction cadetMode call callExtension camCommand camCommit camCommitPrepared camCommitted camConstuctionSetParams camCreate camDestroy cameraEffect cameraEffectEnableHUD cameraInterest cameraOn cameraView campaignConfigFile camPreload camPreloaded camPrepareBank camPrepareDir camPrepareDive camPrepareFocus camPrepareFov camPrepareFovRange camPreparePos camPrepareRelPos camPrepareTarget camSetBank camSetDir camSetDive camSetFocus camSetFov camSetFovRange camSetPos camSetRelPos camSetTarget camTarget camUseNVG canAdd canAddItemToBackpack canAddItemToUniform canAddItemToVest cancelSimpleTaskDestination canFire canMove canSlingLoad canStand canSuspend canTriggerDynamicSimulation canUnloadInCombat canVehicleCargo captive captiveNum cbChecked cbSetChecked ceil channelEnabled cheatsEnabled checkAIFeature checkVisibility className clearAllItemsFromBackpack clearBackpackCargo clearBackpackCargoGlobal clearGroupIcons clearItemCargo clearItemCargoGlobal clearItemPool clearMagazineCargo clearMagazineCargoGlobal clearMagazinePool clearOverlay clearRadio clearWeaponCargo clearWeaponCargoGlobal clearWeaponPool clientOwner closeDialog closeDisplay closeOverlay collapseObjectTree collect3DENHistory collectiveRTD combatMode commandArtilleryFire commandChat commander commandFire commandFollow commandFSM commandGetOut commandingMenu commandMove commandRadio commandStop commandSuppressiveFire commandTarget commandWatch comment commitOverlay compile compileFinal completedFSM composeText configClasses configFile configHierarchy configName configProperties configSourceAddonList configSourceMod configSourceModList confirmSensorTarget connectTerminalToUAV controlsGroupCtrl copyFromClipboard copyToClipboard copyWaypoints cos count countEnemy countFriendly countSide countType countUnknown create3DENComposition create3DENEntity createAgent createCenter createDialog createDiaryLink createDiaryRecord createDiarySubject createDisplay createGearDialog createGroup createGuardedPoint createLocation createMarker createMarkerLocal createMenu createMine createMissionDisplay createMPCampaignDisplay createSimpleObject createSimpleTask createSite createSoundSource createTask createTeam createTrigger createUnit createVehicle createVehicleCrew createVehicleLocal crew ctAddHeader ctAddRow ctClear ctCurSel ctData ctFindHeaderRows ctFindRowHeader ctHeaderControls ctHeaderCount ctRemoveHeaders ctRemoveRows ctrlActivate ctrlAddEventHandler ctrlAngle ctrlAutoScrollDelay ctrlAutoScrollRewind ctrlAutoScrollSpeed ctrlChecked ctrlClassName ctrlCommit ctrlCommitted ctrlCreate ctrlDelete ctrlEnable ctrlEnabled ctrlFade ctrlHTMLLoaded ctrlIDC ctrlIDD ctrlMapAnimAdd ctrlMapAnimClear ctrlMapAnimCommit ctrlMapAnimDone ctrlMapCursor ctrlMapMouseOver ctrlMapScale ctrlMapScreenToWorld ctrlMapWorldToScreen ctrlModel ctrlModelDirAndUp ctrlModelScale ctrlParent ctrlParentControlsGroup ctrlPosition ctrlRemoveAllEventHandlers ctrlRemoveEventHandler ctrlScale ctrlSetActiveColor ctrlSetAngle ctrlSetAutoScrollDelay ctrlSetAutoScrollRewind ctrlSetAutoScrollSpeed ctrlSetBackgroundColor ctrlSetChecked ctrlSetEventHandler ctrlSetFade ctrlSetFocus ctrlSetFont ctrlSetFontH1 ctrlSetFontH1B ctrlSetFontH2 ctrlSetFontH2B ctrlSetFontH3 ctrlSetFontH3B ctrlSetFontH4 ctrlSetFontH4B ctrlSetFontH5 ctrlSetFontH5B ctrlSetFontH6 ctrlSetFontH6B ctrlSetFontHeight ctrlSetFontHeightH1 ctrlSetFontHeightH2 ctrlSetFontHeightH3 ctrlSetFontHeightH4 ctrlSetFontHeightH5 ctrlSetFontHeightH6 ctrlSetFontHeightSecondary ctrlSetFontP ctrlSetFontPB ctrlSetFontSecondary ctrlSetForegroundColor ctrlSetModel ctrlSetModelDirAndUp ctrlSetModelScale ctrlSetPixelPrecision ctrlSetPosition ctrlSetScale ctrlSetStructuredText ctrlSetText ctrlSetTextColor ctrlSetTooltip ctrlSetTooltipColorBox ctrlSetTooltipColorShade ctrlSetTooltipColorText ctrlShow ctrlShown ctrlText ctrlTextHeight ctrlTextWidth ctrlType ctrlVisible ctRowControls ctRowCount ctSetCurSel ctSetData ctSetHeaderTemplate ctSetRowTemplate ctSetValue ctValue curatorAddons curatorCamera curatorCameraArea curatorCameraAreaCeiling curatorCoef curatorEditableObjects curatorEditingArea curatorEditingAreaType curatorMouseOver curatorPoints curatorRegisteredObjects curatorSelected curatorWaypointCost current3DENOperation currentChannel currentCommand currentMagazine currentMagazineDetail currentMagazineDetailTurret currentMagazineTurret currentMuzzle currentNamespace currentTask currentTasks currentThrowable currentVisionMode currentWaypoint currentWeapon currentWeaponMode currentWeaponTurret currentZeroing cursorObject cursorTarget customChat customRadio cutFadeOut cutObj cutRsc cutText damage date dateToNumber daytime deActivateKey debriefingText debugFSM debugLog deg delete3DENEntities deleteAt deleteCenter deleteCollection deleteEditorObject deleteGroup deleteGroupWhenEmpty deleteIdentity deleteLocation deleteMarker deleteMarkerLocal deleteRange deleteResources deleteSite deleteStatus deleteTeam deleteVehicle deleteVehicleCrew deleteWaypoint detach detectedMines diag_activeMissionFSMs diag_activeScripts diag_activeSQFScripts diag_activeSQSScripts diag_captureFrame diag_captureFrameToFile diag_captureSlowFrame diag_codePerformance diag_drawMode diag_enable diag_enabled diag_fps diag_fpsMin diag_frameNo diag_lightNewLoad diag_list diag_log diag_logSlowFrame diag_mergeConfigFile diag_recordTurretLimits diag_setLightNew diag_tickTime diag_toggle dialog diarySubjectExists didJIP didJIPOwner difficulty difficultyEnabled difficultyEnabledRTD difficultyOption direction directSay disableAI disableCollisionWith disableConversation disableDebriefingStats disableMapIndicators disableNVGEquipment disableRemoteSensors disableSerialization disableTIEquipment disableUAVConnectability disableUserInput displayAddEventHandler displayCtrl displayParent displayRemoveAllEventHandlers displayRemoveEventHandler displaySetEventHandler dissolveTeam distance distance2D distanceSqr distributionRegion do3DENAction doArtilleryFire doFire doFollow doFSM doGetOut doMove doorPhase doStop doSuppressiveFire doTarget doWatch drawArrow drawEllipse drawIcon drawIcon3D drawLine drawLine3D drawLink drawLocation drawPolygon drawRectangle drawTriangle driver drop dynamicSimulationDistance dynamicSimulationDistanceCoef dynamicSimulationEnabled dynamicSimulationSystemEnabled echo edit3DENMissionAttributes editObject editorSetEventHandler effectiveCommander emptyPositions enableAI enableAIFeature enableAimPrecision enableAttack enableAudioFeature enableAutoStartUpRTD enableAutoTrimRTD enableCamShake enableCaustics enableChannel enableCollisionWith enableCopilot enableDebriefingStats enableDiagLegend enableDynamicSimulation enableDynamicSimulationSystem enableEndDialog enableEngineArtillery enableEnvironment enableFatigue enableGunLights enableInfoPanelComponent enableIRLasers enableMimics enablePersonTurret enableRadio enableReload enableRopeAttach enableSatNormalOnDetail enableSaving enableSentences enableSimulation enableSimulationGlobal enableStamina enableTeamSwitch enableTraffic enableUAVConnectability enableUAVWaypoints enableVehicleCargo enableVehicleSensor enableWeaponDisassembly endLoadingScreen endMission engineOn enginesIsOnRTD enginesRpmRTD enginesTorqueRTD entities environmentEnabled estimatedEndServerTime estimatedTimeLeft evalObjectArgument everyBackpack everyContainer exec execEditorScript execFSM execVM exp expectedDestination exportJIPMessages eyeDirection eyePos face faction fadeMusic fadeRadio fadeSound fadeSpeech failMission fillWeaponsFromPool find findCover findDisplay findEditorObject findEmptyPosition findEmptyPositionReady findIf findNearestEnemy finishMissionInit finite fire fireAtTarget firstBackpack flag flagAnimationPhase flagOwner flagSide flagTexture fleeing floor flyInHeight flyInHeightASL fog fogForecast fogParams forceAddUniform forcedMap forceEnd forceFlagTexture forceFollowRoad forceMap forceRespawn forceSpeed forceWalk forceWeaponFire forceWeatherChange forEachMember forEachMemberAgent forEachMemberTeam forgetTarget format formation formationDirection formationLeader formationMembers formationPosition formationTask formatText formLeader freeLook fromEditor fuel fullCrew gearIDCAmmoCount gearSlotAmmoCount gearSlotData get3DENActionState get3DENAttribute get3DENCamera get3DENConnections get3DENEntity get3DENEntityID get3DENGrid get3DENIconsVisible get3DENLayerEntities get3DENLinesVisible get3DENMissionAttribute get3DENMouseOver get3DENSelected getAimingCoef getAllEnvSoundControllers getAllHitPointsDamage getAllOwnedMines getAllSoundControllers getAmmoCargo getAnimAimPrecision getAnimSpeedCoef getArray getArtilleryAmmo getArtilleryComputerSettings getArtilleryETA getAssignedCuratorLogic getAssignedCuratorUnit getBackpackCargo getBleedingRemaining getBurningValue getCameraViewDirection getCargoIndex getCenterOfMass getClientState getClientStateNumber getCompatiblePylonMagazines getConnectedUAV getContainerMaxLoad getCursorObjectParams getCustomAimCoef getDammage getDescription getDir getDirVisual getDLCAssetsUsage getDLCAssetsUsageByName getDLCs getEditorCamera getEditorMode getEditorObjectScope getElevationOffset getEnvSoundController getFatigue getForcedFlagTexture getFriend getFSMVariable getFuelCargo getGroupIcon getGroupIconParams getGroupIcons getHideFrom getHit getHitIndex getHitPointDamage getItemCargo getMagazineCargo getMarkerColor getMarkerPos getMarkerSize getMarkerType getMass getMissionConfig getMissionConfigValue getMissionDLCs getMissionLayerEntities getModelInfo getMousePosition getMusicPlayedTime getNumber getObjectArgument getObjectChildren getObjectDLC getObjectMaterials getObjectProxy getObjectTextures getObjectType getObjectViewDistance getOxygenRemaining getPersonUsedDLCs getPilotCameraDirection getPilotCameraPosition getPilotCameraRotation getPilotCameraTarget getPlateNumber getPlayerChannel getPlayerScores getPlayerUID getPos getPosASL getPosASLVisual getPosASLW getPosATL getPosATLVisual getPosVisual getPosWorld getPylonMagazines getRelDir getRelPos getRemoteSensorsDisabled getRepairCargo getResolution getShadowDistance getShotParents getSlingLoad getSoundController getSoundControllerResult getSpeed getStamina getStatValue getSuppression getTerrainGrid getTerrainHeightASL getText getTotalDLCUsageTime getUnitLoadout getUnitTrait getUserMFDText getUserMFDvalue getVariable getVehicleCargo getWeaponCargo getWeaponSway getWingsOrientationRTD getWingsPositionRTD getWPPos glanceAt globalChat globalRadio goggles goto group groupChat groupFromNetId groupIconSelectable groupIconsVisible groupId groupOwner groupRadio groupSelectedUnits groupSelectUnit gunner gusts halt handgunItems handgunMagazine handgunWeapon handsHit hasInterface hasPilotCamera hasWeapon hcAllGroups hcGroupParams hcLeader hcRemoveAllGroups hcRemoveGroup hcSelected hcSelectGroup hcSetGroup hcShowBar hcShownBar headgear hideBody hideObject hideObjectGlobal hideSelection hint hintC hintCadet hintSilent hmd hostMission htmlLoad HUDMovementLevels humidity image importAllGroups importance in inArea inAreaArray incapacitatedState inflame inflamed infoPanel infoPanelComponentEnabled infoPanelComponents infoPanels inGameUISetEventHandler inheritsFrom initAmbientLife inPolygon inputAction inRangeOfArtillery insertEditorObject intersect is3DEN is3DENMultiplayer isAbleToBreathe isAgent isArray isAutoHoverOn isAutonomous isAutotest isBleeding isBurning isClass isCollisionLightOn isCopilotEnabled isDamageAllowed isDedicated isDLCAvailable isEngineOn isEqualTo isEqualType isEqualTypeAll isEqualTypeAny isEqualTypeArray isEqualTypeParams isFilePatchingEnabled isFlashlightOn isFlatEmpty isForcedWalk isFormationLeader isGroupDeletedWhenEmpty isHidden isInRemainsCollector isInstructorFigureEnabled isIRLaserOn isKeyActive isKindOf isLaserOn isLightOn isLocalized isManualFire isMarkedForCollection isMultiplayer isMultiplayerSolo isNil isNull isNumber isObjectHidden isObjectRTD isOnRoad isPipEnabled isPlayer isRealTime isRemoteExecuted isRemoteExecutedJIP isServer isShowing3DIcons isSimpleObject isSprintAllowed isStaminaEnabled isSteamMission isStreamFriendlyUIEnabled isText isTouchingGround isTurnedOut isTutHintsEnabled isUAVConnectable isUAVConnected isUIContext isUniformAllowed isVehicleCargo isVehicleRadarOn isVehicleSensorEnabled isWalking isWeaponDeployed isWeaponRested itemCargo items itemsWithMagazines join joinAs joinAsSilent joinSilent joinString kbAddDatabase kbAddDatabaseTargets kbAddTopic kbHasTopic kbReact kbRemoveTopic kbTell kbWasSaid keyImage keyName knowsAbout land landAt landResult language laserTarget lbAdd lbClear lbColor lbColorRight lbCurSel lbData lbDelete lbIsSelected lbPicture lbPictureRight lbSelection lbSetColor lbSetColorRight lbSetCurSel lbSetData lbSetPicture lbSetPictureColor lbSetPictureColorDisabled lbSetPictureColorSelected lbSetPictureRight lbSetPictureRightColor lbSetPictureRightColorDisabled lbSetPictureRightColorSelected lbSetSelectColor lbSetSelectColorRight lbSetSelected lbSetText lbSetTextRight lbSetTooltip lbSetValue lbSize lbSort lbSortByValue lbText lbTextRight lbValue leader leaderboardDeInit leaderboardGetRows leaderboardInit leaderboardRequestRowsFriends leaderboardsRequestUploadScore leaderboardsRequestUploadScoreKeepBest leaderboardState leaveVehicle libraryCredits libraryDisclaimers lifeState lightAttachObject lightDetachObject lightIsOn lightnings limitSpeed linearConversion lineIntersects lineIntersectsObjs lineIntersectsSurfaces lineIntersectsWith linkItem list listObjects listRemoteTargets listVehicleSensors ln lnbAddArray lnbAddColumn lnbAddRow lnbClear lnbColor lnbCurSelRow lnbData lnbDeleteColumn lnbDeleteRow lnbGetColumnsPosition lnbPicture lnbSetColor lnbSetColumnsPos lnbSetCurSelRow lnbSetData lnbSetPicture lnbSetText lnbSetValue lnbSize lnbSort lnbSortByValue lnbText lnbValue load loadAbs loadBackpack loadFile loadGame loadIdentity loadMagazine loadOverlay loadStatus loadUniform loadVest local localize locationPosition lock lockCameraTo lockCargo lockDriver locked lockedCargo lockedDriver lockedTurret lockIdentity lockTurret lockWP log logEntities logNetwork logNetworkTerminate lookAt lookAtPos magazineCargo magazines magazinesAllTurrets magazinesAmmo magazinesAmmoCargo magazinesAmmoFull magazinesDetail magazinesDetailBackpack magazinesDetailUniform magazinesDetailVest magazinesTurret magazineTurretAmmo mapAnimAdd mapAnimClear mapAnimCommit mapAnimDone mapCenterOnCamera mapGridPosition markAsFinishedOnSteam markerAlpha markerBrush markerColor markerDir markerPos markerShape markerSize markerText markerType max members menuAction menuAdd menuChecked menuClear menuCollapse menuData menuDelete menuEnable menuEnabled menuExpand menuHover menuPicture menuSetAction menuSetCheck menuSetData menuSetPicture menuSetValue menuShortcut menuShortcutText menuSize menuSort menuText menuURL menuValue min mineActive mineDetectedBy missionConfigFile missionDifficulty missionName missionNamespace missionStart missionVersion mod modelToWorld modelToWorldVisual modelToWorldVisualWorld modelToWorldWorld modParams moonIntensity moonPhase morale move move3DENCamera moveInAny moveInCargo moveInCommander moveInDriver moveInGunner moveInTurret moveObjectToEnd moveOut moveTime moveTo moveToCompleted moveToFailed musicVolume name nameSound nearEntities nearestBuilding nearestLocation nearestLocations nearestLocationWithDubbing nearestObject nearestObjects nearestTerrainObjects nearObjects nearObjectsReady nearRoads nearSupplies nearTargets needReload netId netObjNull newOverlay nextMenuItemIndex nextWeatherChange nMenuItems not numberOfEnginesRTD numberToDate objectCurators objectFromNetId objectParent objStatus onBriefingGroup onBriefingNotes onBriefingPlan onBriefingTeamSwitch onCommandModeChanged onDoubleClick onEachFrame onGroupIconClick onGroupIconOverEnter onGroupIconOverLeave onHCGroupSelectionChanged onMapSingleClick onPlayerConnected onPlayerDisconnected onPreloadFinished onPreloadStarted onShowNewObject onTeamSwitch openCuratorInterface openDLCPage openMap openSteamApp openYoutubeVideo or orderGetIn overcast overcastForecast owner param params parseNumber parseSimpleArray parseText parsingNamespace particlesQuality pickWeaponPool pitch pixelGrid pixelGridBase pixelGridNoUIScale pixelH pixelW playableSlotsNumber playableUnits playAction playActionNow player playerRespawnTime playerSide playersNumber playGesture playMission playMove playMoveNow playMusic playScriptedMission playSound playSound3D position positionCameraToWorld posScreenToWorld posWorldToScreen ppEffectAdjust ppEffectCommit ppEffectCommitted ppEffectCreate ppEffectDestroy ppEffectEnable ppEffectEnabled ppEffectForceInNVG precision preloadCamera preloadObject preloadSound preloadTitleObj preloadTitleRsc preprocessFile preprocessFileLineNumbers primaryWeapon primaryWeaponItems primaryWeaponMagazine priority processDiaryLink productVersion profileName profileNamespace profileNameSteam progressLoadingScreen progressPosition progressSetPosition publicVariable publicVariableClient publicVariableServer pushBack pushBackUnique putWeaponPool queryItemsPool queryMagazinePool queryWeaponPool rad radioChannelAdd radioChannelCreate radioChannelRemove radioChannelSetCallSign radioChannelSetLabel radioVolume rain rainbow random rank rankId rating rectangular registeredTasks registerTask reload reloadEnabled remoteControl remoteExec remoteExecCall remoteExecutedOwner remove3DENConnection remove3DENEventHandler remove3DENLayer removeAction removeAll3DENEventHandlers removeAllActions removeAllAssignedItems removeAllContainers removeAllCuratorAddons removeAllCuratorCameraAreas removeAllCuratorEditingAreas removeAllEventHandlers removeAllHandgunItems removeAllItems removeAllItemsWithMagazines removeAllMissionEventHandlers removeAllMPEventHandlers removeAllMusicEventHandlers removeAllOwnedMines removeAllPrimaryWeaponItems removeAllWeapons removeBackpack removeBackpackGlobal removeCuratorAddons removeCuratorCameraArea removeCuratorEditableObjects removeCuratorEditingArea removeDrawIcon removeDrawLinks removeEventHandler removeFromRemainsCollector removeGoggles removeGroupIcon removeHandgunItem removeHeadgear removeItem removeItemFromBackpack removeItemFromUniform removeItemFromVest removeItems removeMagazine removeMagazineGlobal removeMagazines removeMagazinesTurret removeMagazineTurret removeMenuItem removeMissionEventHandler removeMPEventHandler removeMusicEventHandler removeOwnedMine removePrimaryWeaponItem removeSecondaryWeaponItem removeSimpleTask removeSwitchableUnit removeTeamMember removeUniform removeVest removeWeapon removeWeaponAttachmentCargo removeWeaponCargo removeWeaponGlobal removeWeaponTurret reportRemoteTarget requiredVersion resetCamShake resetSubgroupDirection resize resources respawnVehicle restartEditorCamera reveal revealMine reverse reversedMouseY roadAt roadsConnectedTo roleDescription ropeAttachedObjects ropeAttachedTo ropeAttachEnabled ropeAttachTo ropeCreate ropeCut ropeDestroy ropeDetach ropeEndPosition ropeLength ropes ropeUnwind ropeUnwound rotorsForcesRTD rotorsRpmRTD round runInitScript safeZoneH safeZoneW safeZoneWAbs safeZoneX safeZoneXAbs safeZoneY save3DENInventory saveGame saveIdentity saveJoysticks saveOverlay saveProfileNamespace saveStatus saveVar savingEnabled say say2D say3D scopeName score scoreSide screenshot screenToWorld scriptDone scriptName scudState secondaryWeapon secondaryWeaponItems secondaryWeaponMagazine select selectBestPlaces selectDiarySubject selectedEditorObjects selectEditorObject selectionNames selectionPosition selectLeader selectMax selectMin selectNoPlayer selectPlayer selectRandom selectRandomWeighted selectWeapon selectWeaponTurret sendAUMessage sendSimpleCommand sendTask sendTaskResult sendUDPMessage serverCommand serverCommandAvailable serverCommandExecutable serverName serverTime set set3DENAttribute set3DENAttributes set3DENGrid set3DENIconsVisible set3DENLayer set3DENLinesVisible set3DENLogicType set3DENMissionAttribute set3DENMissionAttributes set3DENModelsVisible set3DENObjectType set3DENSelected setAccTime setActualCollectiveRTD setAirplaneThrottle setAirportSide setAmmo setAmmoCargo setAmmoOnPylon setAnimSpeedCoef setAperture setApertureNew setArmoryPoints setAttributes setAutonomous setBehaviour setBleedingRemaining setBrakesRTD setCameraInterest setCamShakeDefParams setCamShakeParams setCamUseTI setCaptive setCenterOfMass setCollisionLight setCombatMode setCompassOscillation setConvoySeparation setCuratorCameraAreaCeiling setCuratorCoef setCuratorEditingAreaType setCuratorWaypointCost setCurrentChannel setCurrentTask setCurrentWaypoint setCustomAimCoef setCustomWeightRTD setDamage setDammage setDate setDebriefingText setDefaultCamera setDestination setDetailMapBlendPars setDir setDirection setDrawIcon setDriveOnPath setDropInterval setDynamicSimulationDistance setDynamicSimulationDistanceCoef setEditorMode setEditorObjectScope setEffectCondition setEngineRPMRTD setFace setFaceAnimation setFatigue setFeatureType setFlagAnimationPhase setFlagOwner setFlagSide setFlagTexture setFog setFormation setFormationTask setFormDir setFriend setFromEditor setFSMVariable setFuel setFuelCargo setGroupIcon setGroupIconParams setGroupIconsSelectable setGroupIconsVisible setGroupId setGroupIdGlobal setGroupOwner setGusts setHideBehind setHit setHitIndex setHitPointDamage setHorizonParallaxCoef setHUDMovementLevels setIdentity setImportance setInfoPanel setLeader setLightAmbient setLightAttenuation setLightBrightness setLightColor setLightDayLight setLightFlareMaxDistance setLightFlareSize setLightIntensity setLightnings setLightUseFlare setLocalWindParams setMagazineTurretAmmo setMarkerAlpha setMarkerAlphaLocal setMarkerBrush setMarkerBrushLocal setMarkerColor setMarkerColorLocal setMarkerDir setMarkerDirLocal setMarkerPos setMarkerPosLocal setMarkerShape setMarkerShapeLocal setMarkerSize setMarkerSizeLocal setMarkerText setMarkerTextLocal setMarkerType setMarkerTypeLocal setMass setMimic setMousePosition setMusicEffect setMusicEventHandler setName setNameSound setObjectArguments setObjectMaterial setObjectMaterialGlobal setObjectProxy setObjectTexture setObjectTextureGlobal setObjectViewDistance setOvercast setOwner setOxygenRemaining setParticleCircle setParticleClass setParticleFire setParticleParams setParticleRandom setPilotCameraDirection setPilotCameraRotation setPilotCameraTarget setPilotLight setPiPEffect setPitch setPlateNumber setPlayable setPlayerRespawnTime setPos setPosASL setPosASL2 setPosASLW setPosATL setPosition setPosWorld setPylonLoadOut setPylonsPriority setRadioMsg setRain setRainbow setRandomLip setRank setRectangular setRepairCargo setRotorBrakeRTD setShadowDistance setShotParents setSide setSimpleTaskAlwaysVisible setSimpleTaskCustomData setSimpleTaskDescription setSimpleTaskDestination setSimpleTaskTarget setSimpleTaskType setSimulWeatherLayers setSize setSkill setSlingLoad setSoundEffect setSpeaker setSpeech setSpeedMode setStamina setStaminaScheme setStatValue setSuppression setSystemOfUnits setTargetAge setTaskMarkerOffset setTaskResult setTaskState setTerrainGrid setText setTimeMultiplier setTitleEffect setTrafficDensity setTrafficDistance setTrafficGap setTrafficSpeed setTriggerActivation setTriggerArea setTriggerStatements setTriggerText setTriggerTimeout setTriggerType setType setUnconscious setUnitAbility setUnitLoadout setUnitPos setUnitPosWeak setUnitRank setUnitRecoilCoefficient setUnitTrait setUnloadInCombat setUserActionText setUserMFDText setUserMFDvalue setVariable setVectorDir setVectorDirAndUp setVectorUp setVehicleAmmo setVehicleAmmoDef setVehicleArmor setVehicleCargo setVehicleId setVehicleLock setVehiclePosition setVehicleRadar setVehicleReceiveRemoteTargets setVehicleReportOwnPosition setVehicleReportRemoteTargets setVehicleTIPars setVehicleVarName setVelocity setVelocityModelSpace setVelocityTransformation setViewDistance setVisibleIfTreeCollapsed setWantedRPMRTD setWaves setWaypointBehaviour setWaypointCombatMode setWaypointCompletionRadius setWaypointDescription setWaypointForceBehaviour setWaypointFormation setWaypointHousePosition setWaypointLoiterRadius setWaypointLoiterType setWaypointName setWaypointPosition setWaypointScript setWaypointSpeed setWaypointStatements setWaypointTimeout setWaypointType setWaypointVisible setWeaponReloadingTime setWind setWindDir setWindForce setWindStr setWingForceScaleRTD setWPPos show3DIcons showChat showCinemaBorder showCommandingMenu showCompass showCuratorCompass showGPS showHUD showLegend showMap shownArtilleryComputer shownChat shownCompass shownCuratorCompass showNewEditorObject shownGPS shownHUD shownMap shownPad shownRadio shownScoretable shownUAVFeed shownWarrant shownWatch showPad showRadio showScoretable showSubtitles showUAVFeed showWarrant showWatch showWaypoint showWaypoints side sideChat sideEnemy sideFriendly sideRadio simpleTasks simulationEnabled simulCloudDensity simulCloudOcclusion simulInClouds simulWeatherSync sin size sizeOf skill skillFinal skipTime sleep sliderPosition sliderRange sliderSetPosition sliderSetRange sliderSetSpeed sliderSpeed slingLoadAssistantShown soldierMagazines someAmmo sort soundVolume spawn speaker speed speedMode splitString sqrt squadParams stance startLoadingScreen step stop stopEngineRTD stopped str sunOrMoon supportInfo suppressFor surfaceIsWater surfaceNormal surfaceType swimInDepth switchableUnits switchAction switchCamera switchGesture switchLight switchMove synchronizedObjects synchronizedTriggers synchronizedWaypoints synchronizeObjectsAdd synchronizeObjectsRemove synchronizeTrigger synchronizeWaypoint systemChat systemOfUnits tan targetKnowledge targets targetsAggregate targetsQuery taskAlwaysVisible taskChildren taskCompleted taskCustomData taskDescription taskDestination taskHint taskMarkerOffset taskParent taskResult taskState taskType teamMember teamName teams teamSwitch teamSwitchEnabled teamType terminate terrainIntersect terrainIntersectASL terrainIntersectAtASL text textLog textLogFormat tg time timeMultiplier titleCut titleFadeOut titleObj titleRsc titleText toArray toFixed toLower toString toUpper triggerActivated triggerActivation triggerArea triggerAttachedVehicle triggerAttachObject triggerAttachVehicle triggerDynamicSimulation triggerStatements triggerText triggerTimeout triggerTimeoutCurrent triggerType turretLocal turretOwner turretUnit tvAdd tvClear tvCollapse tvCollapseAll tvCount tvCurSel tvData tvDelete tvExpand tvExpandAll tvPicture tvSetColor tvSetCurSel tvSetData tvSetPicture tvSetPictureColor tvSetPictureColorDisabled tvSetPictureColorSelected tvSetPictureRight tvSetPictureRightColor tvSetPictureRightColorDisabled tvSetPictureRightColorSelected tvSetText tvSetTooltip tvSetValue tvSort tvSortByValue tvText tvTooltip tvValue type typeName typeOf UAVControl uiNamespace uiSleep unassignCurator unassignItem unassignTeam unassignVehicle underwater uniform uniformContainer uniformItems uniformMagazines unitAddons unitAimPosition unitAimPositionVisual unitBackpack unitIsUAV unitPos unitReady unitRecoilCoefficient units unitsBelowHeight unlinkItem unlockAchievement unregisterTask updateDrawIcon updateMenuItem updateObjectTree useAISteeringComponent useAudioTimeForMoves userInputDisabled vectorAdd vectorCos vectorCrossProduct vectorDiff vectorDir vectorDirVisual vectorDistance vectorDistanceSqr vectorDotProduct vectorFromTo vectorMagnitude vectorMagnitudeSqr vectorModelToWorld vectorModelToWorldVisual vectorMultiply vectorNormalized vectorUp vectorUpVisual vectorWorldToModel vectorWorldToModelVisual vehicle vehicleCargoEnabled vehicleChat vehicleRadio vehicleReceiveRemoteTargets vehicleReportOwnPosition vehicleReportRemoteTargets vehicles vehicleVarName velocity velocityModelSpace verifySignature vest vestContainer vestItems vestMagazines viewDistance visibleCompass visibleGPS visibleMap visiblePosition visiblePositionASL visibleScoretable visibleWatch waves waypointAttachedObject waypointAttachedVehicle waypointAttachObject waypointAttachVehicle waypointBehaviour waypointCombatMode waypointCompletionRadius waypointDescription waypointForceBehaviour waypointFormation waypointHousePosition waypointLoiterRadius waypointLoiterType waypointName waypointPosition waypoints waypointScript waypointsEnabledUAV waypointShow waypointSpeed waypointStatements waypointTimeout waypointTimeoutCurrent waypointType waypointVisible weaponAccessories weaponAccessoriesCargo weaponCargo weaponDirection weaponInertia weaponLowered weapons weaponsItems weaponsItemsCargo weaponState weaponsTurret weightRTD WFSideText wind ",literal:"blufor civilian configNull controlNull displayNull east endl false grpNull independent lineBreak locationNull nil objNull opfor pi resistance scriptNull sideAmbientLife sideEmpty sideLogic sideUnknown taskNull teamMemberNull true west"},contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.NUMBER_MODE,{className:"variable",begin:/\b_+[a-zA-Z]\w*/},{className:"title",begin:/[a-zA-Z][a-zA-Z0-9]+_fnc_\w*/},t,n],illegal:/#|^\$ /}}},function(e,t){e.exports=function(e){var t=e.COMMENT("--","$");return{name:"SQL (more)",aliases:["mysql","oracle"],disableAutodetect:!0,case_insensitive:!0,illegal:/[<>{}*]/,contains:[{beginKeywords:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment values with",end:/;/,endsWithParent:!0,keywords:{$pattern:/[\w\.]+/,keyword:"as abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias all allocate allow alter always analyze ancillary and anti any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound bucket buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain explode export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force foreign form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour hours http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lateral lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minutes minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notnull notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second seconds section securefile security seed segment select self semi sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tablesample tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unnest unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace window with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null unknown",built_in:"array bigint binary bit blob bool boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text time timestamp tinyint varchar varchar2 varying void"},contains:[{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:"`",end:"`"},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,e.HASH_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE,t,e.HASH_COMMENT_MODE]}}},function(e,t){function n(e){return e?"string"==typeof e?e:e.source:null}function o(...e){return e.map(e=>n(e)).join("")}function r(...e){return"("+e.map(e=>n(e)).join("|")+")"}e.exports=function(e){const t=e.COMMENT("--","$"),n=["true","false","unknown"],i=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],a=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],s=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],c=a,l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update ","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year","add","asc","collation","desc","final","first","last","view"].filter(e=>!a.includes(e)),d={begin:o(/\b/,r(...c),/\s*\(/),keywords:{built_in:c.join(" ")}};return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:function(e,{exceptions:t,when:n}={}){const o=n;return t=t||[],e.map(e=>e.match(/\|\d+$/)||t.includes(e)?e:o(e)?e+"|0":e)}(l,{when:e=>e.length<3}).join(" "),literal:n.join(" "),type:i.join(" "),built_in:["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"].join(" ")},contains:[{begin:r(...s),keywords:{$pattern:/[\w\.]+/,keyword:l.concat(s).join(" "),literal:n.join(" "),type:i.join(" ")}},{className:"type",begin:r("double precision","large object","with timezone","without timezone")},d,{className:"variable",begin:/@[a-z0-9]+/},{className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},{begin:/"/,end:/"/,contains:[{begin:/""/}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,{className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0}]}}},function(e,t){e.exports=function(e){return{name:"Stan",aliases:["stanfuncs"],keywords:{$pattern:e.IDENT_RE,title:["functions","model","data","parameters","quantities","transformed","generated"].join(" "),keyword:["for","in","if","else","while","break","continue","return"].concat(["int","real","vector","ordered","positive_ordered","simplex","unit_vector","row_vector","matrix","cholesky_factor_corr|10","cholesky_factor_cov|10","corr_matrix|10","cov_matrix|10","void"]).concat(["print","reject","increment_log_prob|10","integrate_ode|10","integrate_ode_rk45|10","integrate_ode_bdf|10","algebra_solver"]).join(" "),built_in:["Phi","Phi_approx","abs","acos","acosh","algebra_solver","append_array","append_col","append_row","asin","asinh","atan","atan2","atanh","bernoulli_cdf","bernoulli_lccdf","bernoulli_lcdf","bernoulli_logit_lpmf","bernoulli_logit_rng","bernoulli_lpmf","bernoulli_rng","bessel_first_kind","bessel_second_kind","beta_binomial_cdf","beta_binomial_lccdf","beta_binomial_lcdf","beta_binomial_lpmf","beta_binomial_rng","beta_cdf","beta_lccdf","beta_lcdf","beta_lpdf","beta_rng","binary_log_loss","binomial_cdf","binomial_coefficient_log","binomial_lccdf","binomial_lcdf","binomial_logit_lpmf","binomial_lpmf","binomial_rng","block","categorical_logit_lpmf","categorical_logit_rng","categorical_lpmf","categorical_rng","cauchy_cdf","cauchy_lccdf","cauchy_lcdf","cauchy_lpdf","cauchy_rng","cbrt","ceil","chi_square_cdf","chi_square_lccdf","chi_square_lcdf","chi_square_lpdf","chi_square_rng","cholesky_decompose","choose","col","cols","columns_dot_product","columns_dot_self","cos","cosh","cov_exp_quad","crossprod","csr_extract_u","csr_extract_v","csr_extract_w","csr_matrix_times_vector","csr_to_dense_matrix","cumulative_sum","determinant","diag_matrix","diag_post_multiply","diag_pre_multiply","diagonal","digamma","dims","dirichlet_lpdf","dirichlet_rng","distance","dot_product","dot_self","double_exponential_cdf","double_exponential_lccdf","double_exponential_lcdf","double_exponential_lpdf","double_exponential_rng","e","eigenvalues_sym","eigenvectors_sym","erf","erfc","exp","exp2","exp_mod_normal_cdf","exp_mod_normal_lccdf","exp_mod_normal_lcdf","exp_mod_normal_lpdf","exp_mod_normal_rng","expm1","exponential_cdf","exponential_lccdf","exponential_lcdf","exponential_lpdf","exponential_rng","fabs","falling_factorial","fdim","floor","fma","fmax","fmin","fmod","frechet_cdf","frechet_lccdf","frechet_lcdf","frechet_lpdf","frechet_rng","gamma_cdf","gamma_lccdf","gamma_lcdf","gamma_lpdf","gamma_p","gamma_q","gamma_rng","gaussian_dlm_obs_lpdf","get_lp","gumbel_cdf","gumbel_lccdf","gumbel_lcdf","gumbel_lpdf","gumbel_rng","head","hypergeometric_lpmf","hypergeometric_rng","hypot","inc_beta","int_step","integrate_ode","integrate_ode_bdf","integrate_ode_rk45","inv","inv_Phi","inv_chi_square_cdf","inv_chi_square_lccdf","inv_chi_square_lcdf","inv_chi_square_lpdf","inv_chi_square_rng","inv_cloglog","inv_gamma_cdf","inv_gamma_lccdf","inv_gamma_lcdf","inv_gamma_lpdf","inv_gamma_rng","inv_logit","inv_sqrt","inv_square","inv_wishart_lpdf","inv_wishart_rng","inverse","inverse_spd","is_inf","is_nan","lbeta","lchoose","lgamma","lkj_corr_cholesky_lpdf","lkj_corr_cholesky_rng","lkj_corr_lpdf","lkj_corr_rng","lmgamma","lmultiply","log","log10","log1m","log1m_exp","log1m_inv_logit","log1p","log1p_exp","log2","log_determinant","log_diff_exp","log_falling_factorial","log_inv_logit","log_mix","log_rising_factorial","log_softmax","log_sum_exp","logistic_cdf","logistic_lccdf","logistic_lcdf","logistic_lpdf","logistic_rng","logit","lognormal_cdf","lognormal_lccdf","lognormal_lcdf","lognormal_lpdf","lognormal_rng","machine_precision","matrix_exp","max","mdivide_left_spd","mdivide_left_tri_low","mdivide_right_spd","mdivide_right_tri_low","mean","min","modified_bessel_first_kind","modified_bessel_second_kind","multi_gp_cholesky_lpdf","multi_gp_lpdf","multi_normal_cholesky_lpdf","multi_normal_cholesky_rng","multi_normal_lpdf","multi_normal_prec_lpdf","multi_normal_rng","multi_student_t_lpdf","multi_student_t_rng","multinomial_lpmf","multinomial_rng","multiply_log","multiply_lower_tri_self_transpose","neg_binomial_2_cdf","neg_binomial_2_lccdf","neg_binomial_2_lcdf","neg_binomial_2_log_lpmf","neg_binomial_2_log_rng","neg_binomial_2_lpmf","neg_binomial_2_rng","neg_binomial_cdf","neg_binomial_lccdf","neg_binomial_lcdf","neg_binomial_lpmf","neg_binomial_rng","negative_infinity","normal_cdf","normal_lccdf","normal_lcdf","normal_lpdf","normal_rng","not_a_number","num_elements","ordered_logistic_lpmf","ordered_logistic_rng","owens_t","pareto_cdf","pareto_lccdf","pareto_lcdf","pareto_lpdf","pareto_rng","pareto_type_2_cdf","pareto_type_2_lccdf","pareto_type_2_lcdf","pareto_type_2_lpdf","pareto_type_2_rng","pi","poisson_cdf","poisson_lccdf","poisson_lcdf","poisson_log_lpmf","poisson_log_rng","poisson_lpmf","poisson_rng","positive_infinity","pow","print","prod","qr_Q","qr_R","quad_form","quad_form_diag","quad_form_sym","rank","rayleigh_cdf","rayleigh_lccdf","rayleigh_lcdf","rayleigh_lpdf","rayleigh_rng","reject","rep_array","rep_matrix","rep_row_vector","rep_vector","rising_factorial","round","row","rows","rows_dot_product","rows_dot_self","scaled_inv_chi_square_cdf","scaled_inv_chi_square_lccdf","scaled_inv_chi_square_lcdf","scaled_inv_chi_square_lpdf","scaled_inv_chi_square_rng","sd","segment","sin","singular_values","sinh","size","skew_normal_cdf","skew_normal_lccdf","skew_normal_lcdf","skew_normal_lpdf","skew_normal_rng","softmax","sort_asc","sort_desc","sort_indices_asc","sort_indices_desc","sqrt","sqrt2","square","squared_distance","step","student_t_cdf","student_t_lccdf","student_t_lcdf","student_t_lpdf","student_t_rng","sub_col","sub_row","sum","tail","tan","tanh","target","tcrossprod","tgamma","to_array_1d","to_array_2d","to_matrix","to_row_vector","to_vector","trace","trace_gen_quad_form","trace_quad_form","trigamma","trunc","uniform_cdf","uniform_lccdf","uniform_lcdf","uniform_lpdf","uniform_rng","variance","von_mises_lpdf","von_mises_rng","weibull_cdf","weibull_lccdf","weibull_lcdf","weibull_lpdf","weibull_rng","wiener_lpdf","wishart_lpdf","wishart_rng"].join(" ")},contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/#/,/$/,{relevance:0,keywords:{"meta-keyword":"include"}}),e.COMMENT(/\/\*/,/\*\//,{relevance:0,contains:[{className:"doctag",begin:/@(return|param)/}]}),{begin:/<\s*lower\s*=/,keywords:"lower"},{begin:/[<,]\s*upper\s*=/,keywords:"upper"},{className:"keyword",begin:/\btarget\s*\+=/,relevance:10},{begin:"~\\s*("+e.IDENT_RE+")\\s*\\(",keywords:["bernoulli","bernoulli_logit","beta","beta_binomial","binomial","binomial_logit","categorical","categorical_logit","cauchy","chi_square","dirichlet","double_exponential","exp_mod_normal","exponential","frechet","gamma","gaussian_dlm_obs","gumbel","hypergeometric","inv_chi_square","inv_gamma","inv_wishart","lkj_corr","lkj_corr_cholesky","logistic","lognormal","multi_gp","multi_gp_cholesky","multi_normal","multi_normal_cholesky","multi_normal_prec","multi_student_t","multinomial","neg_binomial","neg_binomial_2","neg_binomial_2_log","normal","ordered_logistic","pareto","pareto_type_2","poisson","poisson_log","rayleigh","scaled_inv_chi_square","skew_normal","student_t","uniform","von_mises","weibull","wiener","wishart"].join(" ")},{className:"number",variants:[{begin:/\b\d+(?:\.\d*)?(?:[eE][+-]?\d+)?/},{begin:/\.\d+(?:[eE][+-]?\d+)?\b/}],relevance:0},{className:"string",begin:'"',end:'"',relevance:0}]}}},function(e,t){e.exports=function(e){return{name:"Stata",aliases:["do","ado"],case_insensitive:!0,keywords:"if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey bias binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 bubble bubbleplot ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error esize est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 forest forestplot form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate funnel funnelplot g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labbe labbeplot labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize menl meqparse mer merg merge meta mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trimfill trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5",contains:[{className:"symbol",begin:/`[a-zA-Z0-9_]+'/},{className:"variable",begin:/\$\{?[a-zA-Z0-9_]+\}?/},{className:"string",variants:[{begin:'`"[^\r\n]*?"\''},{begin:'"[^\r\n"]*"'}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ \t]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}},function(e,t){e.exports=function(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:"HEADER ENDSEC DATA"},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}},function(e,t){e.exports=function(e){var t={className:"variable",begin:"\\$"+e.IDENT_RE},n={className:"number",begin:"#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})"};return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*(?=[.\\s\\n[:,])",className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*(?=[.\\s\\n[:,])",className:"selector-id"},{begin:"\\b("+["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"].join("|")+")(?=[.\\s\\n[:,])",className:"selector-tag"},{begin:"&?:?:\\b("+["after","before","first-letter","first-line","active","first-child","focus","hover","lang","link","visited"].join("|")+")(?=[.\\s\\n[:,])"},{begin:"@("+["charset","css","debug","extend","font-face","for","import","include","media","mixin","page","warn","while"].join("|")+")\\b"},t,e.CSS_NUMBER_MODE,e.NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[n,t,e.APOS_STRING_MODE,e.CSS_NUMBER_MODE,e.NUMBER_MODE,e.QUOTE_STRING_MODE]}]},{className:"attribute",begin:"\\b("+["align-content","align-items","align-self","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","auto","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","clip-path","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","font","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-variant-ligatures","font-weight","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inherit","initial","justify-content","left","letter-spacing","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","mask","max-height","max-width","min-height","min-width","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","perspective","perspective-origin","pointer-events","position","quotes","resize","right","tab-size","table-layout","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-indent","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","white-space","widows","width","word-break","word-spacing","word-wrap","z-index"].reverse().join("|")+")\\b",starts:{end:/;|$/,contains:[n,t,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE,e.NUMBER_MODE,e.C_BLOCK_COMMENT_MODE],illegal:/\./,relevance:0}}]}}},function(e,t){e.exports=function(e){return{name:"SubUnit",case_insensitive:!0,contains:[{className:"string",begin:"\\[\n(multipart)?",end:"\\]\n"},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}},function(e,t){function n(e){return e?"string"==typeof e?e:e.source:null}function o(e){return r("(?=",e,")")}function r(...e){return e.map(e=>n(e)).join("")}function i(...e){return"("+e.map(e=>n(e)).join("|")+")"}const a=e=>r(/\b/,e,/\w$/.test(e)?/\b/:/\B/),s=["Protocol","Type"].map(a),c=["init","self"].map(a),l=["Any","Self"],d=["associatedtype",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","do","dynamic","else","enum","extension","fallthrough","fileprivate(set)","fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout","internal(set)","internal","in","is","lazy","let","mutating","nonmutating","open(set)","open","operator","optional","override","postfix","precedencegroup","prefix","private(set)","private","protocol","public(set)","public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias","unowned(safe)","unowned(unsafe)","unowned","var","weak","where","while","willSet"],u=["false","nil","true"],h=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],p=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],m=i(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),g=i(m,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),f=r(m,g,"*"),_=i(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFFFD]/),b=i(_,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),v=r(_,b,"*"),y=r(/[A-Z]/,b,"*"),E=["autoclosure",r(/convention\(/,i("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,v,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","testable","UIApplicationMain","unknown","usableFromInline"],S=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];e.exports=function(e){const t=e.COMMENT("/\\*","\\*/",{contains:["self"]}),n={className:"keyword",begin:r(/\./,o(i(...s,...c))),end:i(...s,...c),excludeBegin:!0},m={begin:r(/\./,i(...d)),relevance:0},_=d.filter(e=>"string"==typeof e).concat(["_|0"]),w={variants:[{className:"keyword",begin:i(...d.filter(e=>"string"!=typeof e).concat(l).map(a),...c)}]},C={$pattern:i(/\b\w+(\(\w+\))?/,/#\w+/),keyword:_.concat(h).join(" "),literal:u.join(" ")},T=[n,m,w],x=[{begin:r(/\./,i(...p)),relevance:0},{className:"built_in",begin:r(/\b/,i(...p),/(?=\()/)}],O={begin:/->/,relevance:0},k=[O,{className:"operator",relevance:0,variants:[{begin:f},{begin:`\\.(\\.|${g})+`}]}],R={className:"number",relevance:0,variants:[{begin:"\\b(([0-9]_*)+)(\\.(([0-9]_*)+))?([eE][+-]?(([0-9]_*)+))?\\b"},{begin:"\\b0x(([0-9a-fA-F]_*)+)(\\.(([0-9a-fA-F]_*)+))?([pP][+-]?(([0-9]_*)+))?\\b"},{begin:/\b0o([0-7]_*)+\b/},{begin:/\b0b([01]_*)+\b/}]},D=(e="")=>({className:"subst",variants:[{begin:r(/\\/,e,/[0\\tnr"']/)},{begin:r(/\\/,e,/u\{[0-9a-fA-F]{1,8}\}/)}]}),I=(e="")=>({className:"subst",begin:r(/\\/,e,/[\t ]*(?:[\r\n]|\r\n)/)}),A=(e="")=>({className:"subst",label:"interpol",begin:r(/\\/,e,/\(/),end:/\)/}),N=(e="")=>({begin:r(e,/"""/),end:r(/"""/,e),contains:[D(e),I(e),A(e)]}),F=(e="")=>({begin:r(e,/"/),end:r(/"/,e),contains:[D(e),A(e)]}),M={className:"string",variants:[N(),N("#"),N("##"),N("###"),F(),F("#"),F("##"),F("###")]},P=[{begin:r(/`/,v,/`/)},{className:"variable",begin:/\$\d+/},{className:"variable",begin:`\\$${b}+`}],L=[{begin:/(@|#)available\(/,end:/\)/,keywords:{$pattern:/[@#]?\w+/,keyword:S.concat(["@available","#available"]).join(" ")},contains:[...k,R,M]},{className:"keyword",begin:r(/@/,i(...E))},{className:"meta",begin:r(/@/,v)}],j={begin:o(/\b[A-Z]/),relevance:0,contains:[{className:"type",begin:r(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,b,"+")},{className:"type",begin:y,relevance:0},{begin:/[?!]+/,relevance:0},{begin:/\.\.\./,relevance:0},{begin:r(/\s+&\s+/,o(y)),relevance:0}]},U={begin:/</,end:/>/,keywords:C,contains:[...T,...L,O,j]};j.contains.push(U);for(const e of M.variants){const t=e.contains.find(e=>"interpol"===e.label);t.keywords=C;const n=[...T,...x,...k,R,M,...P];t.contains=[...n,{begin:/\(/,end:/\)/,contains:["self",...n]}]}return{name:"Swift",keywords:C,contains:[e.C_LINE_COMMENT_MODE,t,{className:"function",beginKeywords:"func",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{begin:/</,end:/>/},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:C,contains:["self",...T,R,M,e.C_BLOCK_COMMENT_MODE,{begin:":"}],illegal:/["']/}],illegal:/\[|%/},{className:"class",beginKeywords:"struct protocol class extension enum",end:"\\{",excludeEnd:!0,keywords:C,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...T]},{beginKeywords:"import",end:/$/,contains:[e.C_LINE_COMMENT_MODE,t],relevance:0},...T,...x,...k,R,M,...P,...L,j]}}},function(e,t){e.exports=function(e){return{name:"Tagger Script",contains:[{className:"comment",begin:/\$noop\(/,end:/\)/,contains:[{begin:/\(/,end:/\)/,contains:["self",{begin:/\\./}]}],relevance:10},{className:"keyword",begin:/\$(?!noop)[a-zA-Z][_a-zA-Z0-9]*/,end:/\(/,excludeEnd:!0},{className:"variable",begin:/%[_a-zA-Z0-9:]*/,end:"%"},{className:"symbol",begin:/\\./}]}}},function(e,t){e.exports=function(e){var t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},r=e.inherit(o,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),i={className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},a={end:",",endsWithParent:!0,excludeEnd:!0,contains:[],keywords:t,relevance:0},s={begin:/\{/,end:/\}/,contains:[a],illegal:"\\n",relevance:0},c={begin:"\\[",end:"\\]",contains:[a],illegal:"\\n",relevance:0},l=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},i,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},s,c,o],d=[...l];return d.pop(),d.push(r),a.contains=d,{name:"YAML",case_insensitive:!0,aliases:["yml","YAML"],contains:l}}},function(e,t){e.exports=function(e){return{name:"Test Anything Protocol",case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"meta",variants:[{begin:"^TAP version (\\d+)$"},{begin:"^1\\.\\.(\\d+)$"}]},{begin:/---$/,end:"\\.\\.\\.$",subLanguage:"yaml",relevance:0},{className:"number",begin:" (\\d+) "},{className:"symbol",variants:[{begin:"^ok"},{begin:"^not ok"}]}]}}},function(e,t){e.exports=function(e){return{name:"Tcl",aliases:["tk"],keywords:"after append apply array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd chan clock close concat continue dde dict encoding eof error eval exec exit expr fblocked fconfigure fcopy file fileevent filename flush for foreach format gets glob global history http if incr info interp join lappend|10 lassign|10 lindex|10 linsert|10 list llength|10 load lrange|10 lrepeat|10 lreplace|10 lreverse|10 lsearch|10 lset|10 lsort|10 mathfunc mathop memory msgcat namespace open package parray pid pkg::create pkg_mkIndex platform platform::shell proc puts pwd read refchan regexp registry regsub|10 rename return safe scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_startOfPreviousWord tcl_wordBreakAfter tcl_wordBreakBefore tcltest tclvars tell time tm trace unknown unload unset update uplevel upvar variable vwait while",contains:[e.COMMENT(";[ \\t]*#","$"),e.COMMENT("^[ \\t]*#","$"),{beginKeywords:"proc",end:"[\\{]",excludeEnd:!0,contains:[{className:"title",begin:"[ \\t\\n\\r]+(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"[ \\t\\n\\r]",endsWithParent:!0,excludeEnd:!0}]},{excludeEnd:!0,variants:[{begin:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*\\(([a-zA-Z0-9_])*\\)",end:"[^a-zA-Z0-9_\\}\\$]"},{begin:"\\$(\\{)?(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*",end:"(\\))?[^a-zA-Z0-9_\\}\\$]"}]},{className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},{className:"number",variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]}]}}},function(e,t){e.exports=function(e){return{name:"Thrift",keywords:{keyword:"namespace const typedef struct enum service exception void oneway set list map required optional",built_in:"bool byte i16 i32 i64 double string binary",literal:"true false"},contains:[e.QUOTE_STRING_MODE,e.NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"struct enum service exception",end:/\{/,illegal:/\n/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,excludeEnd:!0}})]},{begin:"\\b(set|list|map)\\s*<",end:">",keywords:"bool byte i16 i32 i64 double string binary",contains:["self"]}]}}},function(e,t){e.exports=function(e){const t={className:"number",begin:"[1-9][0-9]*",relevance:0},n={className:"symbol",begin:":[^\\]]+"};return{name:"TP",keywords:{keyword:"ABORT ACC ADJUST AND AP_LD BREAK CALL CNT COL CONDITION CONFIG DA DB DIV DETECT ELSE END ENDFOR ERR_NUM ERROR_PROG FINE FOR GP GUARD INC IF JMP LINEAR_MAX_SPEED LOCK MOD MONITOR OFFSET Offset OR OVERRIDE PAUSE PREG PTH RT_LD RUN SELECT SKIP Skip TA TB TO TOOL_OFFSET Tool_Offset UF UT UFRAME_NUM UTOOL_NUM UNLOCK WAIT X Y Z W P R STRLEN SUBSTR FINDSTR VOFFSET PROG ATTR MN POS",literal:"ON OFF max_speed LPOS JPOS ENABLE DISABLE START STOP RESET"},contains:[{className:"built_in",begin:"(AR|P|PAYLOAD|PR|R|SR|RSR|LBL|VR|UALM|MESSAGE|UTOOL|UFRAME|TIMER|TIMER_OVERFLOW|JOINT_MAX_SPEED|RESUME_PROG|DIAG_REC)\\[",end:"\\]",contains:["self",t,n]},{className:"built_in",begin:"(AI|AO|DI|DO|F|RI|RO|UI|UO|GI|GO|SI|SO)\\[",end:"\\]",contains:["self",t,e.QUOTE_STRING_MODE,n]},{className:"keyword",begin:"/(PROG|ATTR|MN|POS|END)\\b"},{className:"keyword",begin:"(CALL|RUN|POINT_LOGIC|LBL)\\b"},{className:"keyword",begin:"\\b(ACC|CNT|Skip|Offset|PSPD|RT_LD|AP_LD|Tool_Offset)"},{className:"number",begin:"\\d+(sec|msec|mm/sec|cm/min|inch/min|deg/sec|mm|in|cm)?\\b",relevance:0},e.COMMENT("//","[;$]"),e.COMMENT("!","[;$]"),e.COMMENT("--eg:","$"),e.QUOTE_STRING_MODE,{className:"string",begin:"'",end:"'"},e.C_NUMBER_MODE,{className:"variable",begin:"\\$[A-Za-z0-9_]+"}]}}},function(e,t){e.exports=function(e){var t="attribute block constant cycle date dump include max min parent random range source template_from_string",n={beginKeywords:t,keywords:{name:t},relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},o={begin:/\|[A-Za-z_]+:?/,keywords:"abs batch capitalize column convert_encoding date date_modify default escape filter first format inky_to_html inline_css join json_encode keys last length lower map markdown merge nl2br number_format raw reduce replace reverse round slice sort spaceless split striptags title trim upper url_encode",contains:[n]},r="apply autoescape block deprecated do embed extends filter flush for from if import include macro sandbox set use verbatim with";return r=r+" "+r.split(" ").map((function(e){return"end"+e})).join(" "),{name:"Twig",aliases:["craftcms"],case_insensitive:!0,subLanguage:"xml",contains:[e.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:r,starts:{endsWithParent:!0,contains:[o,n],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:["self",o,n]}]}}},function(e,t){const n="[A-Za-z$_][0-9A-Za-z$_]*",o=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],i=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);function a(e){return s("(?=",e,")")}function s(...e){return e.map(e=>{return(t=e)?"string"==typeof t?t:t.source:null;var t}).join("")}e.exports=function(e){const t={$pattern:n,keyword:o.concat(["type","namespace","typedef","interface","public","private","protected","implements","declare","abstract","readonly"]).join(" "),literal:r.join(" "),built_in:i.concat(["any","void","number","boolean","string","object","never","enum"]).join(" ")},c={className:"meta",begin:"@[A-Za-z$_][0-9A-Za-z$_]*"},l=(e,t,n)=>{const o=e.contains.findIndex(e=>e.label===t);if(-1===o)throw new Error("can not find mode to replace");e.contains.splice(o,1,n)},d=function(e){const t=n,c="<>",l="</>",d={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const n=e[0].length+e.index,o=e.input[n];"<"!==o?">"===o&&(((e,{after:t})=>{const n="</"+e[0].slice(1);return-1!==e.input.indexOf(n,t)})(e,{after:n})||t.ignoreMatch()):t.ignoreMatch()}},u={$pattern:n,keyword:o.join(" "),literal:r.join(" "),built_in:i.join(" ")},h="\\.([0-9](_?[0-9])*)",p={className:"number",variants:[{begin:`(\\b(0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*)((${h})|\\.)?|(${h}))[eE][+-]?([0-9](_?[0-9])*)\\b`},{begin:`\\b(0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*)\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},m={className:"subst",begin:"\\$\\{",end:"\\}",keywords:u,contains:[]},g={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,m],subLanguage:"xml"}},f={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,m],subLanguage:"css"}},_={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,m]},b={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:t+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},v=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,g,f,_,p,e.REGEXP_MODE];m.contains=v.concat({begin:/\{/,end:/\}/,keywords:u,contains:["self"].concat(v)});const y=[].concat(b,m.contains),E=y.concat([{begin:/\(/,end:/\)/,keywords:u,contains:["self"].concat(y)}]),S={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:E};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:u,exports:{PARAMS_CONTAINS:E},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,g,f,_,b,p,{begin:s(/[{,\n]\s*/,a(s(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,t+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:t+a("\\s*:"),relevance:0}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[b,e.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:u,contains:E}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:c,end:l},{begin:d.begin,"on:begin":d.isTrulyOpeningTag,end:d.end}],subLanguage:"xml",contains:[{begin:d.begin,end:d.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:u,contains:["self",e.inherit(e.TITLE_MODE,{begin:t}),S],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[S,e.inherit(e.TITLE_MODE,{begin:t})]},{variants:[{begin:"\\."+t},{begin:"\\$"+t}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:t}),"self",S]},{begin:"(get|set)\\s+(?="+t+"\\()",end:/\{/,keywords:"get set",contains:[e.inherit(e.TITLE_MODE,{begin:t}),{begin:/\(\)/},S]},{begin:/\$[(.]/}]}}(e);return Object.assign(d.keywords,t),d.exports.PARAMS_CONTAINS.push(c),d.contains=d.contains.concat([c,{beginKeywords:"namespace",end:/\{/,excludeEnd:!0},{beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"}]),l(d,"shebang",e.SHEBANG()),l(d,"use_strict",{className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/}),d.contains.find(e=>"function"===e.className).relevance=0,Object.assign(d,{name:"TypeScript",aliases:["ts"]}),d}},function(e,t){e.exports=function(e){return{name:"Vala",keywords:{keyword:"char uchar unichar int uint long ulong short ushort int8 int16 int32 int64 uint8 uint16 uint32 uint64 float double bool struct enum string void weak unowned owned async signal static abstract interface override virtual delegate if while do for foreach else switch case break default return try catch public private protected internal using new this get set const stdout stdin stderr var",built_in:"DBus GLib CCode Gee Object Gtk Posix",literal:"false true null"},contains:[{className:"class",beginKeywords:"class interface namespace",end:/\{/,excludeEnd:!0,illegal:"[^,:\\n\\s\\.]",contains:[e.UNDERSCORE_TITLE_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",begin:'"""',end:'"""',relevance:5},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,{className:"meta",begin:"^#",end:"$",relevance:2}]}}},function(e,t){function n(e){return e?"string"==typeof e?e:e.source:null}function o(...e){return e.map(e=>n(e)).join("")}function r(...e){return"("+e.map(e=>n(e)).join("|")+")"}e.exports=function(e){const t=/\d{1,2}\/\d{1,2}\/\d{4}/,n=/\d{4}-\d{1,2}-\d{1,2}/,i=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,a=/\d{1,2}(:\d{1,2}){1,2}/,s={className:"literal",variants:[{begin:o(/# */,r(n,t),/ *#/)},{begin:o(/# */,a,/ *#/)},{begin:o(/# */,i,/ *#/)},{begin:o(/# */,r(n,t),/ +/,r(i,a),/ *#/)}]},c=e.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),l=e.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[{className:"string",begin:/"(""|[^/n])"C\b/},{className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},s,{className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},{className:"label",begin:/^\w+:/},c,l,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{"meta-keyword":"const disable else elseif enable end externalsource if region then"},contains:[l]}]}}},function(e,t){function n(e){return e?"string"==typeof e?e:e.source:null}function o(...e){return e.map(e=>n(e)).join("")}function r(...e){return"("+e.map(e=>n(e)).join("|")+")"}e.exports=function(e){const t="lcase month vartype instrrev ubound setlocale getobject rgb getref string weekdayname rnd dateadd monthname now day minute isarray cbool round formatcurrency conversions csng timevalue second year space abs clng timeserial fixs len asc isempty maths dateserial atn timer isobject filter weekday datevalue ccur isdate instr datediff formatdatetime replace isnull right sgn array snumeric log cdbl hex chr lbound msgbox ucase getlocale cos cdate cbyte rtrim join hour oct typename trim strcomp int createobject loadpicture tan formatnumber mid split cint sin datepart ltrim sqr time derived eval date formatpercent exp inputbox left ascw chrw regexp cstr err".split(" "),n={begin:o(r(...t),"\\s*\\("),relevance:0,keywords:{built_in:t.join(" ")}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:"call class const dim do loop erase execute executeglobal exit for each next function if then else on error option explicit new private property let get public randomize redim rem select case set stop sub while wend with end to elseif is or xor and not class_initialize class_terminate default preserve in me byval byref step resume goto",built_in:["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"].join(" "),literal:"true false null nothing empty"},illegal:"//",contains:[n,e.inherit(e.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),e.COMMENT(/'/,/$/,{relevance:0}),e.C_NUMBER_MODE]}}},function(e,t){e.exports=function(e){return{name:"VBScript in HTML",subLanguage:"xml",contains:[{begin:"<%",end:"%>",subLanguage:"vbscript"}]}}},function(e,t){e.exports=function(e){return{name:"Verilog",aliases:["v","sv","svh"],case_insensitive:!1,keywords:{$pattern:/[\w\$]+/,keyword:"accept_on alias always always_comb always_ff always_latch and assert assign assume automatic before begin bind bins binsof bit break buf|0 bufif0 bufif1 byte case casex casez cell chandle checker class clocking cmos config const constraint context continue cover covergroup coverpoint cross deassign default defparam design disable dist do edge else end endcase endchecker endclass endclocking endconfig endfunction endgenerate endgroup endinterface endmodule endpackage endprimitive endprogram endproperty endspecify endsequence endtable endtask enum event eventually expect export extends extern final first_match for force foreach forever fork forkjoin function generate|5 genvar global highz0 highz1 if iff ifnone ignore_bins illegal_bins implements implies import incdir include initial inout input inside instance int integer interconnect interface intersect join join_any join_none large let liblist library local localparam logic longint macromodule matches medium modport module nand negedge nettype new nexttime nmos nor noshowcancelled not notif0 notif1 or output package packed parameter pmos posedge primitive priority program property protected pull0 pull1 pulldown pullup pulsestyle_ondetect pulsestyle_onevent pure rand randc randcase randsequence rcmos real realtime ref reg reject_on release repeat restrict return rnmos rpmos rtran rtranif0 rtranif1 s_always s_eventually s_nexttime s_until s_until_with scalared sequence shortint shortreal showcancelled signed small soft solve specify specparam static string strong strong0 strong1 struct super supply0 supply1 sync_accept_on sync_reject_on table tagged task this throughout time timeprecision timeunit tran tranif0 tranif1 tri tri0 tri1 triand trior trireg type typedef union unique unique0 unsigned until until_with untyped use uwire var vectored virtual void wait wait_order wand weak weak0 weak1 while wildcard wire with within wor xnor xor",literal:"null",built_in:"$finish $stop $exit $fatal $error $warning $info $realtime $time $printtimescale $bitstoreal $bitstoshortreal $itor $signed $cast $bits $stime $timeformat $realtobits $shortrealtobits $rtoi $unsigned $asserton $assertkill $assertpasson $assertfailon $assertnonvacuouson $assertoff $assertcontrol $assertpassoff $assertfailoff $assertvacuousoff $isunbounded $sampled $fell $changed $past_gclk $fell_gclk $changed_gclk $rising_gclk $steady_gclk $coverage_control $coverage_get $coverage_save $set_coverage_db_name $rose $stable $past $rose_gclk $stable_gclk $future_gclk $falling_gclk $changing_gclk $display $coverage_get_max $coverage_merge $get_coverage $load_coverage_db $typename $unpacked_dimensions $left $low $increment $clog2 $ln $log10 $exp $sqrt $pow $floor $ceil $sin $cos $tan $countbits $onehot $isunknown $fatal $warning $dimensions $right $high $size $asin $acos $atan $atan2 $hypot $sinh $cosh $tanh $asinh $acosh $atanh $countones $onehot0 $error $info $random $dist_chi_square $dist_erlang $dist_exponential $dist_normal $dist_poisson $dist_t $dist_uniform $q_initialize $q_remove $q_exam $async$and$array $async$nand$array $async$or$array $async$nor$array $sync$and$array $sync$nand$array $sync$or$array $sync$nor$array $q_add $q_full $psprintf $async$and$plane $async$nand$plane $async$or$plane $async$nor$plane $sync$and$plane $sync$nand$plane $sync$or$plane $sync$nor$plane $system $display $displayb $displayh $displayo $strobe $strobeb $strobeh $strobeo $write $readmemb $readmemh $writememh $value$plusargs $dumpvars $dumpon $dumplimit $dumpports $dumpportson $dumpportslimit $writeb $writeh $writeo $monitor $monitorb $monitorh $monitoro $writememb $dumpfile $dumpoff $dumpall $dumpflush $dumpportsoff $dumpportsall $dumpportsflush $fclose $fdisplay $fdisplayb $fdisplayh $fdisplayo $fstrobe $fstrobeb $fstrobeh $fstrobeo $swrite $swriteb $swriteh $swriteo $fscanf $fread $fseek $fflush $feof $fopen $fwrite $fwriteb $fwriteh $fwriteo $fmonitor $fmonitorb $fmonitorh $fmonitoro $sformat $sformatf $fgetc $ungetc $fgets $sscanf $rewind $ftell $ferror"},contains:[e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.QUOTE_STRING_MODE,{className:"number",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"\\b((\\d+'(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\B(('(b|h|o|d|B|H|O|D))[0-9xzXZa-fA-F_]+)"},{begin:"\\b([0-9_])+",relevance:0}]},{className:"variable",variants:[{begin:"#\\((?!parameter).+\\)"},{begin:"\\.\\w+",relevance:0}]},{className:"meta",begin:"`",end:"$",keywords:{"meta-keyword":"define __FILE__ __LINE__ begin_keywords celldefine default_nettype define else elsif end_keywords endcelldefine endif ifdef ifndef include line nounconnected_drive pragma resetall timescale unconnected_drive undef undefineall"},relevance:0}]}}},function(e,t){e.exports=function(e){return{name:"VHDL",case_insensitive:!0,keywords:{keyword:"abs access after alias all and architecture array assert assume assume_guarantee attribute begin block body buffer bus case component configuration constant context cover disconnect downto default else elsif end entity exit fairness file for force function generate generic group guarded if impure in inertial inout is label library linkage literal loop map mod nand new next nor not null of on open or others out package parameter port postponed procedure process property protected pure range record register reject release rem report restrict restrict_guarantee return rol ror select sequence severity shared signal sla sll sra srl strong subtype then to transport type unaffected units until use variable view vmode vprop vunit wait when while with xnor xor",built_in:"boolean bit character integer time delay_length natural positive string bit_vector file_open_kind file_open_status std_logic std_logic_vector unsigned signed boolean_vector integer_vector std_ulogic std_ulogic_vector unresolved_unsigned u_unsigned unresolved_signed u_signed real_vector time_vector",literal:"false true note warning error failure line text side width"},illegal:/\{/,contains:[e.C_BLOCK_COMMENT_MODE,e.COMMENT("--","$"),e.QUOTE_STRING_MODE,{className:"number",begin:"\\b(\\d(_|\\d)*#\\w+(\\.\\w+)?#([eE][-+]?\\d(_|\\d)*)?|\\d(_|\\d)*(\\.\\d(_|\\d)*)?([eE][-+]?\\d(_|\\d)*)?)",relevance:0},{className:"string",begin:"'(U|X|0|1|Z|W|L|H|-)'",contains:[e.BACKSLASH_ESCAPE]},{className:"symbol",begin:"'[A-Za-z](_?[A-Za-z0-9])*",contains:[e.BACKSLASH_ESCAPE]}]}}},function(e,t){e.exports=function(e){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[e.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},e.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]*/},{className:"function",beginKeywords:"function function!",end:"$",relevance:0,contains:[e.TITLE_MODE,{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}},function(e,t){e.exports=function(e){return{name:"Intel x86 Assembly",case_insensitive:!0,keywords:{$pattern:"[.%]?"+e.IDENT_RE,keyword:"lock rep repe repz repne repnz xaquire xrelease bnd nobnd aaa aad aam aas adc add and arpl bb0_reset bb1_reset bound bsf bsr bswap bt btc btr bts call cbw cdq cdqe clc cld cli clts cmc cmp cmpsb cmpsd cmpsq cmpsw cmpxchg cmpxchg486 cmpxchg8b cmpxchg16b cpuid cpu_read cpu_write cqo cwd cwde daa das dec div dmint emms enter equ f2xm1 fabs fadd faddp fbld fbstp fchs fclex fcmovb fcmovbe fcmove fcmovnb fcmovnbe fcmovne fcmovnu fcmovu fcom fcomi fcomip fcomp fcompp fcos fdecstp fdisi fdiv fdivp fdivr fdivrp femms feni ffree ffreep fiadd ficom ficomp fidiv fidivr fild fimul fincstp finit fist fistp fisttp fisub fisubr fld fld1 fldcw fldenv fldl2e fldl2t fldlg2 fldln2 fldpi fldz fmul fmulp fnclex fndisi fneni fninit fnop fnsave fnstcw fnstenv fnstsw fpatan fprem fprem1 fptan frndint frstor fsave fscale fsetpm fsin fsincos fsqrt fst fstcw fstenv fstp fstsw fsub fsubp fsubr fsubrp ftst fucom fucomi fucomip fucomp fucompp fxam fxch fxtract fyl2x fyl2xp1 hlt ibts icebp idiv imul in inc incbin insb insd insw int int01 int1 int03 int3 into invd invpcid invlpg invlpga iret iretd iretq iretw jcxz jecxz jrcxz jmp jmpe lahf lar lds lea leave les lfence lfs lgdt lgs lidt lldt lmsw loadall loadall286 lodsb lodsd lodsq lodsw loop loope loopne loopnz loopz lsl lss ltr mfence monitor mov movd movq movsb movsd movsq movsw movsx movsxd movzx mul mwait neg nop not or out outsb outsd outsw packssdw packsswb packuswb paddb paddd paddsb paddsiw paddsw paddusb paddusw paddw pand pandn pause paveb pavgusb pcmpeqb pcmpeqd pcmpeqw pcmpgtb pcmpgtd pcmpgtw pdistib pf2id pfacc pfadd pfcmpeq pfcmpge pfcmpgt pfmax pfmin pfmul pfrcp pfrcpit1 pfrcpit2 pfrsqit1 pfrsqrt pfsub pfsubr pi2fd pmachriw pmaddwd pmagw pmulhriw pmulhrwa pmulhrwc pmulhw pmullw pmvgezb pmvlzb pmvnzb pmvzb pop popa popad popaw popf popfd popfq popfw por prefetch prefetchw pslld psllq psllw psrad psraw psrld psrlq psrlw psubb psubd psubsb psubsiw psubsw psubusb psubusw psubw punpckhbw punpckhdq punpckhwd punpcklbw punpckldq punpcklwd push pusha pushad pushaw pushf pushfd pushfq pushfw pxor rcl rcr rdshr rdmsr rdpmc rdtsc rdtscp ret retf retn rol ror rdm rsdc rsldt rsm rsts sahf sal salc sar sbb scasb scasd scasq scasw sfence sgdt shl shld shr shrd sidt sldt skinit smi smint smintold smsw stc std sti stosb stosd stosq stosw str sub svdc svldt svts swapgs syscall sysenter sysexit sysret test ud0 ud1 ud2b ud2 ud2a umov verr verw fwait wbinvd wrshr wrmsr xadd xbts xchg xlatb xlat xor cmove cmovz cmovne cmovnz cmova cmovnbe cmovae cmovnb cmovb cmovnae cmovbe cmovna cmovg cmovnle cmovge cmovnl cmovl cmovnge cmovle cmovng cmovc cmovnc cmovo cmovno cmovs cmovns cmovp cmovpe cmovnp cmovpo je jz jne jnz ja jnbe jae jnb jb jnae jbe jna jg jnle jge jnl jl jnge jle jng jc jnc jo jno js jns jpo jnp jpe jp sete setz setne setnz seta setnbe setae setnb setnc setb setnae setcset setbe setna setg setnle setge setnl setl setnge setle setng sets setns seto setno setpe setp setpo setnp addps addss andnps andps cmpeqps cmpeqss cmpleps cmpless cmpltps cmpltss cmpneqps cmpneqss cmpnleps cmpnless cmpnltps cmpnltss cmpordps cmpordss cmpunordps cmpunordss cmpps cmpss comiss cvtpi2ps cvtps2pi cvtsi2ss cvtss2si cvttps2pi cvttss2si divps divss ldmxcsr maxps maxss minps minss movaps movhps movlhps movlps movhlps movmskps movntps movss movups mulps mulss orps rcpps rcpss rsqrtps rsqrtss shufps sqrtps sqrtss stmxcsr subps subss ucomiss unpckhps unpcklps xorps fxrstor fxrstor64 fxsave fxsave64 xgetbv xsetbv xsave xsave64 xsaveopt xsaveopt64 xrstor xrstor64 prefetchnta prefetcht0 prefetcht1 prefetcht2 maskmovq movntq pavgb pavgw pextrw pinsrw pmaxsw pmaxub pminsw pminub pmovmskb pmulhuw psadbw pshufw pf2iw pfnacc pfpnacc pi2fw pswapd maskmovdqu clflush movntdq movnti movntpd movdqa movdqu movdq2q movq2dq paddq pmuludq pshufd pshufhw pshuflw pslldq psrldq psubq punpckhqdq punpcklqdq addpd addsd andnpd andpd cmpeqpd cmpeqsd cmplepd cmplesd cmpltpd cmpltsd cmpneqpd cmpneqsd cmpnlepd cmpnlesd cmpnltpd cmpnltsd cmpordpd cmpordsd cmpunordpd cmpunordsd cmppd comisd cvtdq2pd cvtdq2ps cvtpd2dq cvtpd2pi cvtpd2ps cvtpi2pd cvtps2dq cvtps2pd cvtsd2si cvtsd2ss cvtsi2sd cvtss2sd cvttpd2pi cvttpd2dq cvttps2dq cvttsd2si divpd divsd maxpd maxsd minpd minsd movapd movhpd movlpd movmskpd movupd mulpd mulsd orpd shufpd sqrtpd sqrtsd subpd subsd ucomisd unpckhpd unpcklpd xorpd addsubpd addsubps haddpd haddps hsubpd hsubps lddqu movddup movshdup movsldup clgi stgi vmcall vmclear vmfunc vmlaunch vmload vmmcall vmptrld vmptrst vmread vmresume vmrun vmsave vmwrite vmxoff vmxon invept invvpid pabsb pabsw pabsd palignr phaddw phaddd phaddsw phsubw phsubd phsubsw pmaddubsw pmulhrsw pshufb psignb psignw psignd extrq insertq movntsd movntss lzcnt blendpd blendps blendvpd blendvps dppd dpps extractps insertps movntdqa mpsadbw packusdw pblendvb pblendw pcmpeqq pextrb pextrd pextrq phminposuw pinsrb pinsrd pinsrq pmaxsb pmaxsd pmaxud pmaxuw pminsb pminsd pminud pminuw pmovsxbw pmovsxbd pmovsxbq pmovsxwd pmovsxwq pmovsxdq pmovzxbw pmovzxbd pmovzxbq pmovzxwd pmovzxwq pmovzxdq pmuldq pmulld ptest roundpd roundps roundsd roundss crc32 pcmpestri pcmpestrm pcmpistri pcmpistrm pcmpgtq popcnt getsec pfrcpv pfrsqrtv movbe aesenc aesenclast aesdec aesdeclast aesimc aeskeygenassist vaesenc vaesenclast vaesdec vaesdeclast vaesimc vaeskeygenassist vaddpd vaddps vaddsd vaddss vaddsubpd vaddsubps vandpd vandps vandnpd vandnps vblendpd vblendps vblendvpd vblendvps vbroadcastss vbroadcastsd vbroadcastf128 vcmpeq_ospd vcmpeqpd vcmplt_ospd vcmpltpd vcmple_ospd vcmplepd vcmpunord_qpd vcmpunordpd vcmpneq_uqpd vcmpneqpd vcmpnlt_uspd vcmpnltpd vcmpnle_uspd vcmpnlepd vcmpord_qpd vcmpordpd vcmpeq_uqpd vcmpnge_uspd vcmpngepd vcmpngt_uspd vcmpngtpd vcmpfalse_oqpd vcmpfalsepd vcmpneq_oqpd vcmpge_ospd vcmpgepd vcmpgt_ospd vcmpgtpd vcmptrue_uqpd vcmptruepd vcmplt_oqpd vcmple_oqpd vcmpunord_spd vcmpneq_uspd vcmpnlt_uqpd vcmpnle_uqpd vcmpord_spd vcmpeq_uspd vcmpnge_uqpd vcmpngt_uqpd vcmpfalse_ospd vcmpneq_ospd vcmpge_oqpd vcmpgt_oqpd vcmptrue_uspd vcmppd vcmpeq_osps vcmpeqps vcmplt_osps vcmpltps vcmple_osps vcmpleps vcmpunord_qps vcmpunordps vcmpneq_uqps vcmpneqps vcmpnlt_usps vcmpnltps vcmpnle_usps vcmpnleps vcmpord_qps vcmpordps vcmpeq_uqps vcmpnge_usps vcmpngeps vcmpngt_usps vcmpngtps vcmpfalse_oqps vcmpfalseps vcmpneq_oqps vcmpge_osps vcmpgeps vcmpgt_osps vcmpgtps vcmptrue_uqps vcmptrueps vcmplt_oqps vcmple_oqps vcmpunord_sps vcmpneq_usps vcmpnlt_uqps vcmpnle_uqps vcmpord_sps vcmpeq_usps vcmpnge_uqps vcmpngt_uqps vcmpfalse_osps vcmpneq_osps vcmpge_oqps vcmpgt_oqps vcmptrue_usps vcmpps vcmpeq_ossd vcmpeqsd vcmplt_ossd vcmpltsd vcmple_ossd vcmplesd vcmpunord_qsd vcmpunordsd vcmpneq_uqsd vcmpneqsd vcmpnlt_ussd vcmpnltsd vcmpnle_ussd vcmpnlesd vcmpord_qsd vcmpordsd vcmpeq_uqsd vcmpnge_ussd vcmpngesd vcmpngt_ussd vcmpngtsd vcmpfalse_oqsd vcmpfalsesd vcmpneq_oqsd vcmpge_ossd vcmpgesd vcmpgt_ossd vcmpgtsd vcmptrue_uqsd vcmptruesd vcmplt_oqsd vcmple_oqsd vcmpunord_ssd vcmpneq_ussd vcmpnlt_uqsd vcmpnle_uqsd vcmpord_ssd vcmpeq_ussd vcmpnge_uqsd vcmpngt_uqsd vcmpfalse_ossd vcmpneq_ossd vcmpge_oqsd vcmpgt_oqsd vcmptrue_ussd vcmpsd vcmpeq_osss vcmpeqss vcmplt_osss vcmpltss vcmple_osss vcmpless vcmpunord_qss vcmpunordss vcmpneq_uqss vcmpneqss vcmpnlt_usss vcmpnltss vcmpnle_usss vcmpnless vcmpord_qss vcmpordss vcmpeq_uqss vcmpnge_usss vcmpngess vcmpngt_usss vcmpngtss vcmpfalse_oqss vcmpfalsess vcmpneq_oqss vcmpge_osss vcmpgess vcmpgt_osss vcmpgtss vcmptrue_uqss vcmptruess vcmplt_oqss vcmple_oqss vcmpunord_sss vcmpneq_usss vcmpnlt_uqss vcmpnle_uqss vcmpord_sss vcmpeq_usss vcmpnge_uqss vcmpngt_uqss vcmpfalse_osss vcmpneq_osss vcmpge_oqss vcmpgt_oqss vcmptrue_usss vcmpss vcomisd vcomiss vcvtdq2pd vcvtdq2ps vcvtpd2dq vcvtpd2ps vcvtps2dq vcvtps2pd vcvtsd2si vcvtsd2ss vcvtsi2sd vcvtsi2ss vcvtss2sd vcvtss2si vcvttpd2dq vcvttps2dq vcvttsd2si vcvttss2si vdivpd vdivps vdivsd vdivss vdppd vdpps vextractf128 vextractps vhaddpd vhaddps vhsubpd vhsubps vinsertf128 vinsertps vlddqu vldqqu vldmxcsr vmaskmovdqu vmaskmovps vmaskmovpd vmaxpd vmaxps vmaxsd vmaxss vminpd vminps vminsd vminss vmovapd vmovaps vmovd vmovq vmovddup vmovdqa vmovqqa vmovdqu vmovqqu vmovhlps vmovhpd vmovhps vmovlhps vmovlpd vmovlps vmovmskpd vmovmskps vmovntdq vmovntqq vmovntdqa vmovntpd vmovntps vmovsd vmovshdup vmovsldup vmovss vmovupd vmovups vmpsadbw vmulpd vmulps vmulsd vmulss vorpd vorps vpabsb vpabsw vpabsd vpacksswb vpackssdw vpackuswb vpackusdw vpaddb vpaddw vpaddd vpaddq vpaddsb vpaddsw vpaddusb vpaddusw vpalignr vpand vpandn vpavgb vpavgw vpblendvb vpblendw vpcmpestri vpcmpestrm vpcmpistri vpcmpistrm vpcmpeqb vpcmpeqw vpcmpeqd vpcmpeqq vpcmpgtb vpcmpgtw vpcmpgtd vpcmpgtq vpermilpd vpermilps vperm2f128 vpextrb vpextrw vpextrd vpextrq vphaddw vphaddd vphaddsw vphminposuw vphsubw vphsubd vphsubsw vpinsrb vpinsrw vpinsrd vpinsrq vpmaddwd vpmaddubsw vpmaxsb vpmaxsw vpmaxsd vpmaxub vpmaxuw vpmaxud vpminsb vpminsw vpminsd vpminub vpminuw vpminud vpmovmskb vpmovsxbw vpmovsxbd vpmovsxbq vpmovsxwd vpmovsxwq vpmovsxdq vpmovzxbw vpmovzxbd vpmovzxbq vpmovzxwd vpmovzxwq vpmovzxdq vpmulhuw vpmulhrsw vpmulhw vpmullw vpmulld vpmuludq vpmuldq vpor vpsadbw vpshufb vpshufd vpshufhw vpshuflw vpsignb vpsignw vpsignd vpslldq vpsrldq vpsllw vpslld vpsllq vpsraw vpsrad vpsrlw vpsrld vpsrlq vptest vpsubb vpsubw vpsubd vpsubq vpsubsb vpsubsw vpsubusb vpsubusw vpunpckhbw vpunpckhwd vpunpckhdq vpunpckhqdq vpunpcklbw vpunpcklwd vpunpckldq vpunpcklqdq vpxor vrcpps vrcpss vrsqrtps vrsqrtss vroundpd vroundps vroundsd vroundss vshufpd vshufps vsqrtpd vsqrtps vsqrtsd vsqrtss vstmxcsr vsubpd vsubps vsubsd vsubss vtestps vtestpd vucomisd vucomiss vunpckhpd vunpckhps vunpcklpd vunpcklps vxorpd vxorps vzeroall vzeroupper pclmullqlqdq pclmulhqlqdq pclmullqhqdq pclmulhqhqdq pclmulqdq vpclmullqlqdq vpclmulhqlqdq vpclmullqhqdq vpclmulhqhqdq vpclmulqdq vfmadd132ps vfmadd132pd vfmadd312ps vfmadd312pd vfmadd213ps vfmadd213pd vfmadd123ps vfmadd123pd vfmadd231ps vfmadd231pd vfmadd321ps vfmadd321pd vfmaddsub132ps vfmaddsub132pd vfmaddsub312ps vfmaddsub312pd vfmaddsub213ps vfmaddsub213pd vfmaddsub123ps vfmaddsub123pd vfmaddsub231ps vfmaddsub231pd vfmaddsub321ps vfmaddsub321pd vfmsub132ps vfmsub132pd vfmsub312ps vfmsub312pd vfmsub213ps vfmsub213pd vfmsub123ps vfmsub123pd vfmsub231ps vfmsub231pd vfmsub321ps vfmsub321pd vfmsubadd132ps vfmsubadd132pd vfmsubadd312ps vfmsubadd312pd vfmsubadd213ps vfmsubadd213pd vfmsubadd123ps vfmsubadd123pd vfmsubadd231ps vfmsubadd231pd vfmsubadd321ps vfmsubadd321pd vfnmadd132ps vfnmadd132pd vfnmadd312ps vfnmadd312pd vfnmadd213ps vfnmadd213pd vfnmadd123ps vfnmadd123pd vfnmadd231ps vfnmadd231pd vfnmadd321ps vfnmadd321pd vfnmsub132ps vfnmsub132pd vfnmsub312ps vfnmsub312pd vfnmsub213ps vfnmsub213pd vfnmsub123ps vfnmsub123pd vfnmsub231ps vfnmsub231pd vfnmsub321ps vfnmsub321pd vfmadd132ss vfmadd132sd vfmadd312ss vfmadd312sd vfmadd213ss vfmadd213sd vfmadd123ss vfmadd123sd vfmadd231ss vfmadd231sd vfmadd321ss vfmadd321sd vfmsub132ss vfmsub132sd vfmsub312ss vfmsub312sd vfmsub213ss vfmsub213sd vfmsub123ss vfmsub123sd vfmsub231ss vfmsub231sd vfmsub321ss vfmsub321sd vfnmadd132ss vfnmadd132sd vfnmadd312ss vfnmadd312sd vfnmadd213ss vfnmadd213sd vfnmadd123ss vfnmadd123sd vfnmadd231ss vfnmadd231sd vfnmadd321ss vfnmadd321sd vfnmsub132ss vfnmsub132sd vfnmsub312ss vfnmsub312sd vfnmsub213ss vfnmsub213sd vfnmsub123ss vfnmsub123sd vfnmsub231ss vfnmsub231sd vfnmsub321ss vfnmsub321sd rdfsbase rdgsbase rdrand wrfsbase wrgsbase vcvtph2ps vcvtps2ph adcx adox rdseed clac stac xstore xcryptecb xcryptcbc xcryptctr xcryptcfb xcryptofb montmul xsha1 xsha256 llwpcb slwpcb lwpval lwpins vfmaddpd vfmaddps vfmaddsd vfmaddss vfmaddsubpd vfmaddsubps vfmsubaddpd vfmsubaddps vfmsubpd vfmsubps vfmsubsd vfmsubss vfnmaddpd vfnmaddps vfnmaddsd vfnmaddss vfnmsubpd vfnmsubps vfnmsubsd vfnmsubss vfrczpd vfrczps vfrczsd vfrczss vpcmov vpcomb vpcomd vpcomq vpcomub vpcomud vpcomuq vpcomuw vpcomw vphaddbd vphaddbq vphaddbw vphadddq vphaddubd vphaddubq vphaddubw vphaddudq vphadduwd vphadduwq vphaddwd vphaddwq vphsubbw vphsubdq vphsubwd vpmacsdd vpmacsdqh vpmacsdql vpmacssdd vpmacssdqh vpmacssdql vpmacsswd vpmacssww vpmacswd vpmacsww vpmadcsswd vpmadcswd vpperm vprotb vprotd vprotq vprotw vpshab vpshad vpshaq vpshaw vpshlb vpshld vpshlq vpshlw vbroadcasti128 vpblendd vpbroadcastb vpbroadcastw vpbroadcastd vpbroadcastq vpermd vpermpd vpermps vpermq vperm2i128 vextracti128 vinserti128 vpmaskmovd vpmaskmovq vpsllvd vpsllvq vpsravd vpsrlvd vpsrlvq vgatherdpd vgatherqpd vgatherdps vgatherqps vpgatherdd vpgatherqd vpgatherdq vpgatherqq xabort xbegin xend xtest andn bextr blci blcic blsi blsic blcfill blsfill blcmsk blsmsk blsr blcs bzhi mulx pdep pext rorx sarx shlx shrx tzcnt tzmsk t1mskc valignd valignq vblendmpd vblendmps vbroadcastf32x4 vbroadcastf64x4 vbroadcasti32x4 vbroadcasti64x4 vcompresspd vcompressps vcvtpd2udq vcvtps2udq vcvtsd2usi vcvtss2usi vcvttpd2udq vcvttps2udq vcvttsd2usi vcvttss2usi vcvtudq2pd vcvtudq2ps vcvtusi2sd vcvtusi2ss vexpandpd vexpandps vextractf32x4 vextractf64x4 vextracti32x4 vextracti64x4 vfixupimmpd vfixupimmps vfixupimmsd vfixupimmss vgetexppd vgetexpps vgetexpsd vgetexpss vgetmantpd vgetmantps vgetmantsd vgetmantss vinsertf32x4 vinsertf64x4 vinserti32x4 vinserti64x4 vmovdqa32 vmovdqa64 vmovdqu32 vmovdqu64 vpabsq vpandd vpandnd vpandnq vpandq vpblendmd vpblendmq vpcmpltd vpcmpled vpcmpneqd vpcmpnltd vpcmpnled vpcmpd vpcmpltq vpcmpleq vpcmpneqq vpcmpnltq vpcmpnleq vpcmpq vpcmpequd vpcmpltud vpcmpleud vpcmpnequd vpcmpnltud vpcmpnleud vpcmpud vpcmpequq vpcmpltuq vpcmpleuq vpcmpnequq vpcmpnltuq vpcmpnleuq vpcmpuq vpcompressd vpcompressq vpermi2d vpermi2pd vpermi2ps vpermi2q vpermt2d vpermt2pd vpermt2ps vpermt2q vpexpandd vpexpandq vpmaxsq vpmaxuq vpminsq vpminuq vpmovdb vpmovdw vpmovqb vpmovqd vpmovqw vpmovsdb vpmovsdw vpmovsqb vpmovsqd vpmovsqw vpmovusdb vpmovusdw vpmovusqb vpmovusqd vpmovusqw vpord vporq vprold vprolq vprolvd vprolvq vprord vprorq vprorvd vprorvq vpscatterdd vpscatterdq vpscatterqd vpscatterqq vpsraq vpsravq vpternlogd vpternlogq vptestmd vptestmq vptestnmd vptestnmq vpxord vpxorq vrcp14pd vrcp14ps vrcp14sd vrcp14ss vrndscalepd vrndscaleps vrndscalesd vrndscaless vrsqrt14pd vrsqrt14ps vrsqrt14sd vrsqrt14ss vscalefpd vscalefps vscalefsd vscalefss vscatterdpd vscatterdps vscatterqpd vscatterqps vshuff32x4 vshuff64x2 vshufi32x4 vshufi64x2 kandnw kandw kmovw knotw kortestw korw kshiftlw kshiftrw kunpckbw kxnorw kxorw vpbroadcastmb2q vpbroadcastmw2d vpconflictd vpconflictq vplzcntd vplzcntq vexp2pd vexp2ps vrcp28pd vrcp28ps vrcp28sd vrcp28ss vrsqrt28pd vrsqrt28ps vrsqrt28sd vrsqrt28ss vgatherpf0dpd vgatherpf0dps vgatherpf0qpd vgatherpf0qps vgatherpf1dpd vgatherpf1dps vgatherpf1qpd vgatherpf1qps vscatterpf0dpd vscatterpf0dps vscatterpf0qpd vscatterpf0qps vscatterpf1dpd vscatterpf1dps vscatterpf1qpd vscatterpf1qps prefetchwt1 bndmk bndcl bndcu bndcn bndmov bndldx bndstx sha1rnds4 sha1nexte sha1msg1 sha1msg2 sha256rnds2 sha256msg1 sha256msg2 hint_nop0 hint_nop1 hint_nop2 hint_nop3 hint_nop4 hint_nop5 hint_nop6 hint_nop7 hint_nop8 hint_nop9 hint_nop10 hint_nop11 hint_nop12 hint_nop13 hint_nop14 hint_nop15 hint_nop16 hint_nop17 hint_nop18 hint_nop19 hint_nop20 hint_nop21 hint_nop22 hint_nop23 hint_nop24 hint_nop25 hint_nop26 hint_nop27 hint_nop28 hint_nop29 hint_nop30 hint_nop31 hint_nop32 hint_nop33 hint_nop34 hint_nop35 hint_nop36 hint_nop37 hint_nop38 hint_nop39 hint_nop40 hint_nop41 hint_nop42 hint_nop43 hint_nop44 hint_nop45 hint_nop46 hint_nop47 hint_nop48 hint_nop49 hint_nop50 hint_nop51 hint_nop52 hint_nop53 hint_nop54 hint_nop55 hint_nop56 hint_nop57 hint_nop58 hint_nop59 hint_nop60 hint_nop61 hint_nop62 hint_nop63",built_in:"ip eip rip al ah bl bh cl ch dl dh sil dil bpl spl r8b r9b r10b r11b r12b r13b r14b r15b ax bx cx dx si di bp sp r8w r9w r10w r11w r12w r13w r14w r15w eax ebx ecx edx esi edi ebp esp eip r8d r9d r10d r11d r12d r13d r14d r15d rax rbx rcx rdx rsi rdi rbp rsp r8 r9 r10 r11 r12 r13 r14 r15 cs ds es fs gs ss st st0 st1 st2 st3 st4 st5 st6 st7 mm0 mm1 mm2 mm3 mm4 mm5 mm6 mm7 xmm0 xmm1 xmm2 xmm3 xmm4 xmm5 xmm6 xmm7 xmm8 xmm9 xmm10 xmm11 xmm12 xmm13 xmm14 xmm15 xmm16 xmm17 xmm18 xmm19 xmm20 xmm21 xmm22 xmm23 xmm24 xmm25 xmm26 xmm27 xmm28 xmm29 xmm30 xmm31 ymm0 ymm1 ymm2 ymm3 ymm4 ymm5 ymm6 ymm7 ymm8 ymm9 ymm10 ymm11 ymm12 ymm13 ymm14 ymm15 ymm16 ymm17 ymm18 ymm19 ymm20 ymm21 ymm22 ymm23 ymm24 ymm25 ymm26 ymm27 ymm28 ymm29 ymm30 ymm31 zmm0 zmm1 zmm2 zmm3 zmm4 zmm5 zmm6 zmm7 zmm8 zmm9 zmm10 zmm11 zmm12 zmm13 zmm14 zmm15 zmm16 zmm17 zmm18 zmm19 zmm20 zmm21 zmm22 zmm23 zmm24 zmm25 zmm26 zmm27 zmm28 zmm29 zmm30 zmm31 k0 k1 k2 k3 k4 k5 k6 k7 bnd0 bnd1 bnd2 bnd3 cr0 cr1 cr2 cr3 cr4 cr8 dr0 dr1 dr2 dr3 dr8 tr3 tr4 tr5 tr6 tr7 r0 r1 r2 r3 r4 r5 r6 r7 r0b r1b r2b r3b r4b r5b r6b r7b r0w r1w r2w r3w r4w r5w r6w r7w r0d r1d r2d r3d r4d r5d r6d r7d r0h r1h r2h r3h r0l r1l r2l r3l r4l r5l r6l r7l r8l r9l r10l r11l r12l r13l r14l r15l db dw dd dq dt ddq do dy dz resb resw resd resq rest resdq reso resy resz incbin equ times byte word dword qword nosplit rel abs seg wrt strict near far a32 ptr",meta:"%define %xdefine %+ %undef %defstr %deftok %assign %strcat %strlen %substr %rotate %elif %else %endif %if %ifmacro %ifctx %ifidn %ifidni %ifid %ifnum %ifstr %iftoken %ifempty %ifenv %error %warning %fatal %rep %endrep %include %push %pop %repl %pathsearch %depend %use %arg %stacksize %local %line %comment %endcomment .nolist __FILE__ __LINE__ __SECT__ __BITS__ __OUTPUT_FORMAT__ __DATE__ __TIME__ __DATE_NUM__ __TIME_NUM__ __UTC_DATE__ __UTC_TIME__ __UTC_DATE_NUM__ __UTC_TIME_NUM__ __PASS__ struc endstruc istruc at iend align alignb sectalign daz nodaz up down zero default option assume public bits use16 use32 use64 default section segment absolute extern global common cpu float __utf16__ __utf16le__ __utf16be__ __utf32__ __utf32le__ __utf32be__ __float8__ __float16__ __float32__ __float64__ __float80m__ __float80e__ __float128l__ __float128h__ __Infinity__ __QNaN__ __SNaN__ Inf NaN QNaN SNaN float8 float16 float32 float64 float80m float80e float128l float128h __FLOAT_DAZ__ __FLOAT_ROUND__ __FLOAT__"},contains:[e.COMMENT(";","$",{relevance:0}),{className:"number",variants:[{begin:"\\b(?:([0-9][0-9_]*)?\\.[0-9_]*(?:[eE][+-]?[0-9_]+)?|(0[Xx])?[0-9][0-9_]*(\\.[0-9_]*)?(?:[pP](?:[+-]?[0-9_]+)?)?)\\b",relevance:0},{begin:"\\$[0-9][0-9A-Fa-f]*",relevance:0},{begin:"\\b(?:[0-9A-Fa-f][0-9A-Fa-f_]*[Hh]|[0-9][0-9_]*[DdTt]?|[0-7][0-7_]*[QqOo]|[0-1][0-1_]*[BbYy])\\b"},{begin:"\\b(?:0[Xx][0-9A-Fa-f_]+|0[DdTt][0-9_]+|0[QqOo][0-7_]+|0[BbYy][0-1_]+)\\b"}]},e.QUOTE_STRING_MODE,{className:"string",variants:[{begin:"'",end:"[^\\\\]'"},{begin:"`",end:"[^\\\\]`"}],relevance:0},{className:"symbol",variants:[{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"},{begin:"^\\s*%%[A-Za-z0-9_$#@~.?]*:"}],relevance:0},{className:"subst",begin:"%[0-9]+",relevance:0},{className:"subst",begin:"%!S+",relevance:0},{className:"meta",begin:/^\s*\.[\w_-]+/}]}}},function(e,t){e.exports=function(e){const t={$pattern:/[a-zA-Z][a-zA-Z0-9_?]*/,keyword:"if then else do while until for loop import with is as where when by data constant integer real text name boolean symbol infix prefix postfix block tree",literal:"true false nil",built_in:"in mod rem and or xor not abs sign floor ceil sqrt sin cos tan asin acos atan exp expm1 log log2 log10 log1p pi at text_length text_range text_find text_replace contains page slide basic_slide title_slide title subtitle fade_in fade_out fade_at clear_color color line_color line_width texture_wrap texture_transform texture scale_?x scale_?y scale_?z? translate_?x translate_?y translate_?z? rotate_?x rotate_?y rotate_?z? rectangle circle ellipse sphere path line_to move_to quad_to curve_to theme background contents locally time mouse_?x mouse_?y mouse_buttons ObjectLoader Animate MovieCredits Slides Filters Shading Materials LensFlare Mapping VLCAudioVideo StereoDecoder PointCloud NetworkAccess RemoteControl RegExp ChromaKey Snowfall NodeJS Speech Charts"},n={className:"string",begin:'"',end:'"',illegal:"\\n"},o={beginKeywords:"import",end:"$",keywords:t,contains:[n]},r={className:"function",begin:/[a-z][^\n]*->/,returnBegin:!0,end:/->/,contains:[e.inherit(e.TITLE_MODE,{starts:{endsWithParent:!0,keywords:t}})]};return{name:"XL",aliases:["tao"],keywords:t,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:"<<",end:">>"},r,o,{className:"number",begin:"[0-9]+#[0-9A-Z_]+(\\.[0-9-A-Z_]+)?#?([Ee][+-]?[0-9]+)?"},e.NUMBER_MODE]}}},function(e,t){e.exports=function(e){return{name:"XQuery",aliases:["xpath","xq"],case_insensitive:!1,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{$pattern:/[a-zA-Z$][a-zA-Z0-9_:-]*/,keyword:"module schema namespace boundary-space preserve no-preserve strip default collation base-uri ordering context decimal-format decimal-separator copy-namespaces empty-sequence except exponent-separator external grouping-separator inherit no-inherit lax minus-sign per-mille percent schema-attribute schema-element strict unordered zero-digit declare import option function validate variable for at in let where order group by return if then else tumbling sliding window start when only end previous next stable ascending descending allowing empty greatest least some every satisfies switch case typeswitch try catch and or to union intersect instance of treat as castable cast map array delete insert into replace value rename copy modify update",type:"item document-node node attribute document element comment namespace namespace-node processing-instruction text construction xs:anyAtomicType xs:untypedAtomic xs:duration xs:time xs:decimal xs:float xs:double xs:gYearMonth xs:gYear xs:gMonthDay xs:gMonth xs:gDay xs:boolean xs:base64Binary xs:hexBinary xs:anyURI xs:QName xs:NOTATION xs:dateTime xs:dateTimeStamp xs:date xs:string xs:normalizedString xs:token xs:language xs:NMTOKEN xs:Name xs:NCName xs:ID xs:IDREF xs:ENTITY xs:integer xs:nonPositiveInteger xs:negativeInteger xs:long xs:int xs:short xs:byte xs:nonNegativeInteger xs:unisignedLong xs:unsignedInt xs:unsignedShort xs:unsignedByte xs:positiveInteger xs:yearMonthDuration xs:dayTimeDuration",literal:"eq ne lt le gt ge is self:: child:: descendant:: descendant-or-self:: attribute:: following:: following-sibling:: parent:: ancestor:: ancestor-or-self:: preceding:: preceding-sibling:: NaN"},contains:[{className:"variable",begin:/[$][\w\-:]+/},{className:"built_in",variants:[{begin:/\barray:/,end:/(?:append|filter|flatten|fold-(?:left|right)|for-each(?:-pair)?|get|head|insert-before|join|put|remove|reverse|size|sort|subarray|tail)\b/},{begin:/\bmap:/,end:/(?:contains|entry|find|for-each|get|keys|merge|put|remove|size)\b/},{begin:/\bmath:/,end:/(?:a(?:cos|sin|tan[2]?)|cos|exp(?:10)?|log(?:10)?|pi|pow|sin|sqrt|tan)\b/},{begin:/\bop:/,end:/\(/,excludeEnd:!0},{begin:/\bfn:/,end:/\(/,excludeEnd:!0},{begin:/[^</$:'"-]\b(?:abs|accumulator-(?:after|before)|adjust-(?:date(?:Time)?|time)-to-timezone|analyze-string|apply|available-(?:environment-variables|system-properties)|avg|base-uri|boolean|ceiling|codepoints?-(?:equal|to-string)|collation-key|collection|compare|concat|contains(?:-token)?|copy-of|count|current(?:-)?(?:date(?:Time)?|time|group(?:ing-key)?|output-uri|merge-(?:group|key))?data|dateTime|days?-from-(?:date(?:Time)?|duration)|deep-equal|default-(?:collation|language)|distinct-values|document(?:-uri)?|doc(?:-available)?|element-(?:available|with-id)|empty|encode-for-uri|ends-with|environment-variable|error|escape-html-uri|exactly-one|exists|false|filter|floor|fold-(?:left|right)|for-each(?:-pair)?|format-(?:date(?:Time)?|time|integer|number)|function-(?:arity|available|lookup|name)|generate-id|has-children|head|hours-from-(?:dateTime|duration|time)|id(?:ref)?|implicit-timezone|in-scope-prefixes|index-of|innermost|insert-before|iri-to-uri|json-(?:doc|to-xml)|key|lang|last|load-xquery-module|local-name(?:-from-QName)?|(?:lower|upper)-case|matches|max|minutes-from-(?:dateTime|duration|time)|min|months?-from-(?:date(?:Time)?|duration)|name(?:space-uri-?(?:for-prefix|from-QName)?)?|nilled|node-name|normalize-(?:space|unicode)|not|number|one-or-more|outermost|parse-(?:ietf-date|json)|path|position|(?:prefix-from-)?QName|random-number-generator|regex-group|remove|replace|resolve-(?:QName|uri)|reverse|root|round(?:-half-to-even)?|seconds-from-(?:dateTime|duration|time)|snapshot|sort|starts-with|static-base-uri|stream-available|string-?(?:join|length|to-codepoints)?|subsequence|substring-?(?:after|before)?|sum|system-property|tail|timezone-from-(?:date(?:Time)?|time)|tokenize|trace|trans(?:form|late)|true|type-available|unordered|unparsed-(?:entity|text)?-?(?:public-id|uri|available|lines)?|uri-collection|xml-to-json|years?-from-(?:date(?:Time)?|duration)|zero-or-one)\b/},{begin:/\blocal:/,end:/\(/,excludeEnd:!0},{begin:/\bzip:/,end:/(?:zip-file|(?:xml|html|text|binary)-entry| (?:update-)?entries)\b/},{begin:/\b(?:util|db|functx|app|xdmp|xmldb):/,end:/\(/,excludeEnd:!0}]},{className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},{className:"number",begin:/(\b0[0-7_]+)|(\b0x[0-9a-fA-F_]+)|(\b[1-9][0-9_]*(\.[0-9_]+)?)|[0_]\b/,relevance:0},{className:"comment",begin:/\(:/,end:/:\)/,relevance:10,contains:[{className:"doctag",begin:/@\w+/}]},{className:"meta",begin:/%[\w\-:]+/},{className:"title",begin:/\bxquery version "[13]\.[01]"\s?(?:encoding ".+")?/,end:/;/},{beginKeywords:"element attribute comment document processing-instruction",end:/\{/,excludeEnd:!0},{begin:/<([\w._:-]+)(\s+\S*=('|").*('|"))?>/,end:/(\/[\w._:-]+>)/,subLanguage:"xml",contains:[{begin:/\{/,end:/\}/,subLanguage:"xquery"},"self"]}]}}},function(e,t){e.exports=function(e){const t={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},n=e.UNDERSCORE_TITLE_MODE,o={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},r="namespace class interface use extends function return abstract final public protected private static deprecated throw try catch Exception echo empty isset instanceof unset let var new const self require if else elseif switch case default do while loop for continue break likely unlikely __LINE__ __FILE__ __DIR__ __FUNCTION__ __CLASS__ __TRAIT__ __METHOD__ __NAMESPACE__ array boolean float double integer object resource string char long unsigned bool int uint ulong uchar true false null undefined";return{name:"Zephir",aliases:["zep"],keywords:r,contains:[e.C_LINE_COMMENT_MODE,e.COMMENT(/\/\*/,/\*\//,{contains:[{className:"doctag",begin:/@[A-Za-z]+/}]}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;/,contains:[e.BACKSLASH_ESCAPE]},{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function fn",end:/[;{]/,excludeEnd:!0,illegal:/\$|\[|%/,contains:[n,{className:"params",begin:/\(/,end:/\)/,keywords:r,contains:["self",e.C_BLOCK_COMMENT_MODE,t,o]}]},{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},n]},{beginKeywords:"namespace",end:/;/,illegal:/[.']/,contains:[n]},{beginKeywords:"use",end:/;/,contains:[n]},{begin:/=>/},t,o]}}},function(e,t){e.exports="img/icon-pill-remove.7719165.svg"},function(e,t){e.exports="img/element-icons/info.dc07e19.svg"},function(e,t){e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("Expected a string");for(var n,o=String(e),r="",i=!!t&&!!t.extended,a=!!t&&!!t.globstar,s=!1,c=t&&"string"==typeof t.flags?t.flags:"",l=0,d=o.length;l<d;l++)switch(n=o[l]){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":r+="\\"+n;break;case"?":if(i){r+=".";break}case"[":case"]":if(i){r+=n;break}case"{":if(i){s=!0,r+="(";break}case"}":if(i){s=!1,r+=")";break}case",":if(s){r+="|";break}r+="\\"+n;break;case"*":for(var u=o[l-1],h=1;"*"===o[l+1];)h++,l++;var p=o[l+1];if(a)h>1&&("/"===u||void 0===u)&&("/"===p||void 0===p)?(r+="((?:[^/]*(?:/|$))*)",l++):r+="([^/]*)";else r+=".*";break;default:r+=n}return c&&~c.indexOf("g")||(r="^"+r+"$"),new RegExp(r,c)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(83),r=n.n(o);class i{constructor(e){this.fn=e,r()(this,"marked",!1)}reset(){this.marked=!1}mark(){this.marked=!0}trigger(){this.marked&&(this.reset(),this.fn())}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var o=n(83),r=n.n(o),i=n(1264),a=n(147);class s{constructor(e){this.store=e,r()(this,"filter",new i.a),r()(this,"activeSpace",a.e.instance.activeSpace),r()(this,"onSelectedSpaceUpdated",e=>{this.activeSpace=e,this.updateFilter()}),r()(this,"updateFilter",()=>{this.activeSpace&&a.e.instance.traverseSpace(this.activeSpace.roomId,e=>{var t,n;null===(t=this.store.matrixClient)||void 0===t||null===(n=t.getRoom(e))||void 0===n||n.loadMembersIfNeeded()}),this.filter.updateSpace(this.activeSpace)}),this.updateFilter(),e.addFilter(this.filter),a.e.instance.on(a.c,this.onSelectedSpaceUpdated)}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var o=n(83),r=n.n(o),i=n(7),a=n(273),s=n(147),c=n(399);class l extends i.EventEmitter{constructor(...t){super(...t),r()(this,"roomIds",new Set),r()(this,"space",null),r()(this,"onStoreUpdate",async()=>{const t=this.roomIds;this.roomIds=new Set(s.e.instance.getSpaceFilteredRoomIds(this.space)),Object(c.a)(t,this.roomIds)&&(this.emit(a.a),e(()=>{this.emit(a.a)}))}),r()(this,"getSpaceEventKey",e=>e?e.roomId:s.a)}get kind(){return a.b.Prefilter}isVisible(e){return this.roomIds.has(e.roomId)}updateSpace(e){s.e.instance.off(this.getSpaceEventKey(this.space),this.onStoreUpdate),s.e.instance.on(this.getSpaceEventKey(this.space=e),this.onStoreUpdate),this.onStoreUpdate()}destroy(){s.e.instance.off(this.getSpaceEventKey(this.space),this.onStoreUpdate)}}}).call(this,n(160).setImmediate)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var o=n(632);class r{constructor(){}static forRoom(e){return o.a.instance.getOrCreateChamberForRoom(e)}}},function(e,t){function n(e,t,n,o){var r,i=null==(r=o)||"number"==typeof r||"boolean"==typeof r?o:n(o),a=t.get(i);return void 0===a&&(a=e.call(this,o),t.set(i,a)),a}function o(e,t,n){var o=Array.prototype.slice.call(arguments,3),r=n(o),i=t.get(r);return void 0===i&&(i=e.apply(this,o),t.set(r,i)),i}function r(e,t,n,o,r){return n.bind(t,e,o,r)}function i(e,t){return r(e,this,1===e.length?n:o,t.cache.create(),t.serializer)}function a(){return JSON.stringify(arguments)}function s(){this.cache=Object.create(null)}s.prototype.has=function(e){return e in this.cache},s.prototype.get=function(e){return this.cache[e]},s.prototype.set=function(e,t){this.cache[e]=t};var c={create:function(){return new s}};e.exports=function(e,t){var n=t&&t.cache?t.cache:c,o=t&&t.serializer?t.serializer:a;return(t&&t.strategy?t.strategy:i)(e,{cache:n,serializer:o})},e.exports.strategies={variadic:function(e,t){return r(e,this,o,t.cache.create(),t.serializer)},monadic:function(e,t){return r(e,this,n,t.cache.create(),t.serializer)}}},function(e,t,n){"use strict";function o(){window.TouchEvent||(window.TouchEvent=class extends UIEvent{get altKey(){return!1}get changedTouches(){return[]}get ctrlKey(){return!1}get metaKey(){return!1}get shiftKey(){return!1}get targetTouches(){return[]}get touches(){return[]}get rotation(){return 0}get scale(){return 0}constructor(e,t){super(e,t)}})}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var o=n(1269),r=n(1270),i=n(452);e.exports={formats:i,parse:r,stringify:o}},function(e,t,n){"use strict";var o=n(646),r=n(452),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},d=Date.prototype.toISOString,u=r.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:u,formatter:r.formatters[u],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,n,r,i,a,c,d,u,p,m,g,f,_,b){var v,y=t;if("function"==typeof d?y=d(n,y):y instanceof Date?y=m(y):"comma"===r&&s(y)&&(y=o.maybeMap(y,(function(e){return e instanceof Date?m(e):e}))),null===y){if(i)return c&&!_?c(n,h.encoder,b,"key",g):n;y=""}if("string"==typeof(v=y)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||o.isBuffer(y))return c?[f(_?n:c(n,h.encoder,b,"key",g))+"="+f(c(y,h.encoder,b,"value",g))]:[f(n)+"="+f(String(y))];var E,S=[];if(void 0===y)return S;if("comma"===r&&s(y))E=[{value:y.length>0?y.join(",")||null:void 0}];else if(s(d))E=d;else{var w=Object.keys(y);E=u?w.sort(u):w}for(var C=0;C<E.length;++C){var T=E[C],x="object"==typeof T&&void 0!==T.value?T.value:y[T];if(!a||null!==x){var O=s(y)?"function"==typeof r?r(n,T):n:n+(p?"."+T:"["+T+"]");l(S,e(x,O,r,i,a,c,d,u,p,m,g,f,_,b))}}return S};e.exports=function(e,t){var n,o=e,c=function(e){if(!e)return h;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=r.default;if(void 0!==e.format){if(!i.call(r.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=r.formatters[n],a=h.filter;return("function"==typeof e.filter||s(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}}(t);"function"==typeof c.filter?o=(0,c.filter)("",o):s(c.filter)&&(n=c.filter);var d,u=[];if("object"!=typeof o||null===o)return"";d=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var m=a[d];n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var g=0;g<n.length;++g){var f=n[g];c.skipNulls&&null===o[f]||l(u,p(o[f],f,m,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset))}var _=u.join(c.delimiter),b=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),_.length>0?b+_:""}},function(e,t,n){"use strict";var o=n(646),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),l=s?i.slice(0,s.index):i,d=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;d.push(l)}for(var u=0;n.depth>0&&null!==(s=a.exec(i))&&u<n.depth;){if(u+=1,!n.plainObjects&&r.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(s[1])}return s&&d.push("["+i.slice(s.index)+"]"),function(e,t,n,o){for(var r=o?t:c(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(r);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,d=parseInt(l,10);n.parseArrays||""!==l?!isNaN(d)&&s!==l&&String(d)===l&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(a=[])[d]=r:a[l]=r:a={0:r}}r=a}return r}(d,t,n,o)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var d="string"==typeof e?function(e,t){var n,l={},d=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,u=t.parameterLimit===1/0?void 0:t.parameterLimit,h=d.split(t.delimiter,u),p=-1,m=t.charset;if(t.charsetSentinel)for(n=0;n<h.length;++n)0===h[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[n]?m="utf-8":"utf8=%26%2310003%3B"===h[n]&&(m="iso-8859-1"),p=n,n=h.length);for(n=0;n<h.length;++n)if(n!==p){var g,f,_=h[n],b=_.indexOf("]="),v=-1===b?_.indexOf("="):b+1;-1===v?(g=t.decoder(_,a.decoder,m,"key"),f=t.strictNullHandling?null:""):(g=t.decoder(_.slice(0,v),a.decoder,m,"key"),f=o.maybeMap(c(_.slice(v+1),t),(function(e){return t.decoder(e,a.decoder,m,"value")}))),f&&t.interpretNumericEntities&&"iso-8859-1"===m&&(f=s(f)),_.indexOf("[]=")>-1&&(f=i(f)?[f]:f),r.call(l,g)?l[g]=o.combine(l[g],f):l[g]=f}return l}(e,n):e,u=n.plainObjects?Object.create(null):{},h=Object.keys(d),p=0;p<h.length;++p){var m=h[p],g=l(m,d[m],n,"string"==typeof e);u=o.merge(u,g,n)}return o.compact(u)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(83),r=n.n(o),i=n(107),a=n(88),s=n(153),c=n(152),l=n(125),d=n(90),u=n(7),h=n(98);class p extends u.EventEmitter{constructor(){super(),r()(this,"onSync",async(e,t,n)=>{const o=i.a.get().getEventIndexingManager();if("PREPARED"===t&&"SYNCING"===e){return await o.isEventIndexEmpty()&&await this.addInitialCheckpoints(),void this.startCrawler()}"SYNCING"!==t||"SYNCING"!==e||await o.commitLiveEvents()}),r()(this,"onRoomTimeline",async(e,t,n,o,r)=>{if(a.a.get().isRoomEncrypted(t.roomId)&&!n&&r&&r.liveEvent&&!e.isRedacted())if(e.isBeingDecrypted()){const t=e.getId();this.liveEventsForIndex.add(t)}else await this.addLiveEventToIndex(e)}),r()(this,"onRoomStateEvent",async(e,t)=>{a.a.get().isRoomEncrypted(t.roomId)&&("m.room.encryption"!==e.getType()||await this.isRoomIndexed(t.roomId)||(console.log("EventIndex: Adding a checkpoint for a newly encrypted room",t.roomId),this.addRoomCheckpoint(t.roomId,!0)))}),r()(this,"onEventDecrypted",async(e,t)=>{const n=e.getId();this.liveEventsForIndex.delete(n)&&(t||await this.addLiveEventToIndex(e))}),r()(this,"onRedaction",async(e,t)=>{if(!a.a.get().isRoomEncrypted(t.roomId))return;const n=i.a.get().getEventIndexingManager();try{await n.deleteEvent(e.getAssociatedId())}catch(e){console.log("EventIndex: Error deleting event from index",e)}}),r()(this,"onTimelineReset",async(e,t,n)=>{null!==e&&a.a.get().isRoomEncrypted(e.roomId)&&(console.log("EventIndex: Adding a checkpoint because of a limited timeline",e.roomId),this.addRoomCheckpoint(e.roomId,!1))}),this.crawlerCheckpoints=[],this._crawlerIdleTime=5e3,this._eventsPerCrawl=100,this._crawler=null,this._currentCheckpoint=null,this.liveEventsForIndex=new Set}async init(){const e=i.a.get().getEventIndexingManager();this.crawlerCheckpoints=await e.loadCheckpoints(),console.log("EventIndex: Loaded checkpoints",this.crawlerCheckpoints),this.registerListeners()}registerListeners(){const e=a.a.get();e.on("sync",this.onSync),e.on("Room.timeline",this.onRoomTimeline),e.on("Event.decrypted",this.onEventDecrypted),e.on("Room.timelineReset",this.onTimelineReset),e.on("Room.redaction",this.onRedaction),e.on("RoomState.events",this.onRoomStateEvent)}removeListeners(){const e=a.a.get();null!==e&&(e.removeListener("sync",this.onSync),e.removeListener("Room.timeline",this.onRoomTimeline),e.removeListener("Event.decrypted",this.onEventDecrypted),e.removeListener("Room.timelineReset",this.onTimelineReset),e.removeListener("Room.redaction",this.onRedaction),e.removeListener("RoomState.events",this.onRoomStateEvent))}async addInitialCheckpoints(){const e=i.a.get().getEventIndexingManager(),t=a.a.get(),n=t.getRooms().filter(e=>t.isRoomEncrypted(e.roomId));console.log("EventIndex: Adding initial crawler checkpoints"),await Promise.all(n.map(async t=>{const n=t.getLiveTimeline().getPaginationToken("b"),o={roomId:t.roomId,token:n,direction:"b",fullCrawl:!0},r={roomId:t.roomId,token:n,direction:"f"};try{o.token&&(await e.addCrawlerCheckpoint(o),this.crawlerCheckpoints.push(o)),r.token&&(await e.addCrawlerCheckpoint(r),this.crawlerCheckpoints.push(r))}catch(e){console.log("EventIndex: Error adding initial checkpoints for room",t.roomId,o,r,e)}}))}isValidEvent(e){const t=["m.room.message","m.room.name","m.room.topic"].includes(e.getType())&&!e.isRedacted()&&!e.isDecryptionFailure();let n=!0,o=!0;if("m.room.message"!==e.getType()||e.isRedacted())"m.room.topic"!==e.getType()||e.isRedacted()?"m.room.name"!==e.getType()||e.isRedacted()||e.getContent().name||(o=!1):e.getContent().topic||(o=!1);else{const t=e.getContent().msgtype;n=!!t&&!t.startsWith("m.key.verification"),e.getContent().body||(o=!1)}return t&&n&&o}eventToJson(e){const t=e.toJSON(),n=e.isEncrypted()?t.decrypted:t;return e.isEncrypted()?(n.curve25519Key=e.getSenderKey(),n.ed25519Key=e.getClaimedEd25519Key(),n.algorithm=e.getWireContent().algorithm,n.forwardingCurve25519KeyChain=e.getForwardingCurve25519KeyChain()):(delete n.curve25519Key,delete n.ed25519Key,delete n.algorithm,delete n.forwardingCurve25519KeyChain),n}async addLiveEventToIndex(e){const t=i.a.get().getEventIndexingManager();if(!this.isValidEvent(e))return;const n=this.eventToJson(e),o={displayname:e.sender.rawDisplayName,avatar_url:e.sender.getMxcAvatarUrl()};await t.addEventToIndex(n,o)}emitNewCheckpoint(){this.emit("changedCheckpoint",this.currentRoom())}async addEventsFromLiveTimeline(e){const t=e.getEvents();for(let e=0;e<t.length;e++){const n=t[e];await this.addLiveEventToIndex(n)}}async addRoomCheckpoint(e,t=!1){const n=i.a.get().getEventIndexingManager(),o=a.a.get().getRoom(e);if(!o)return;const r=o.getLiveTimeline(),s=r.getPaginationToken("b");if(!s)return void await this.addEventsFromLiveTimeline(r);const c={roomId:o.roomId,token:s,fullCrawl:t,direction:"b"};console.log("EventIndex: Adding checkpoint",c);try{await n.addCrawlerCheckpoint(c)}catch(e){console.log("EventIndex: Error adding new checkpoint for room",o.roomId,c,e)}this.crawlerCheckpoints.push(c)}async crawlerFunc(){let e=!1;const t=a.a.get(),n=i.a.get().getEventIndexingManager();this._crawler={},this._crawler.cancel=()=>{e=!0};let o=!1;for(;!e;){let r=d.b.getValueAt(h.a.DEVICE,"crawlerSleepTime");if(r=Math.max(r,100),o&&(r=this._crawlerIdleTime),null!==this._currentCheckpoint&&(this._currentCheckpoint=null,this.emitNewCheckpoint()),await Object(l.d)(r),e)break;const i=this.crawlerCheckpoints.shift();if(void 0===i){o=!0;continue}this._currentCheckpoint=i,this.emitNewCheckpoint(),o=!1;const a=t.getEventMapper({preventReEmit:!0});let s;try{s=await t._createMessagesRequest(i.roomId,i.token,this._eventsPerCrawl,i.direction)}catch(e){if(403===e.httpStatus){console.log("EventIndex: Removing checkpoint as we don't have ","permissions to fetch messages from this room.",i);try{await n.removeCrawlerCheckpoint(i)}catch(e){console.log("EventIndex: Error removing checkpoint",i,e)}continue}console.log("EventIndex: Error crawling using checkpoint:",i,",",e),this.crawlerCheckpoints.push(i);continue}if(e){this.crawlerCheckpoints.push(i);break}if(0===s.chunk.length){console.log("EventIndex: Done with the checkpoint",i);try{await n.removeCrawlerCheckpoint(i)}catch(e){console.log("EventIndex: Error removing checkpoint",i,e)}continue}const c=s.chunk.map(a);let u=[];void 0!==s.state&&(u=s.state.map(a));const p={};u.forEach(e=>{e.event.content&&"join"===e.event.content.membership&&(p[e.event.sender]={displayname:e.event.content.displayname,avatar_url:e.event.content.avatar_url})});const m=[];c.forEach(e=>{(e.isBeingDecrypted()||e.isDecryptionFailure())&&m.push(e._decryptionPromise)}),await Promise.all(m);const g=c.filter(this.isValidEvent),f=c.filter(e=>"m.room.redaction"===e.getType()),_=g.map(e=>{const t=this.eventToJson(e);let n={};t.sender in p&&(n=p[t.sender]);return{event:t,profile:n}});let b;s.end&&(b={roomId:i.roomId,token:s.end,fullCrawl:i.fullCrawl,direction:i.direction});try{for(let e=0;e<f.length;e++){const t=f[e],o=t.getAssociatedId();o?await n.deleteEvent(o):console.warn("EventIndex: Redaction event doesn't contain a valid associated event id",t)}const e=await n.addHistoricEvents(_,b,i);if(!b){console.log("EventIndex: The server didn't return a valid ","new checkpoint, not continuing the crawl.",i);continue}!0===e&&!0!==b.fullCrawl?(console.log("EventIndex: Checkpoint had already all events","added, stopping the crawl",i),await n.removeCrawlerCheckpoint(b)):(!0===e&&console.log("EventIndex: Checkpoint had already all events","added, but continuing due to a full crawl",i),this.crawlerCheckpoints.push(b))}catch(e){console.log("EventIndex: Error durring a crawl",e),this.crawlerCheckpoints.push(i)}}this._crawler=null}startCrawler(){null===this._crawler&&this.crawlerFunc()}stopCrawler(){null!==this._crawler&&this._crawler.cancel()}async close(){const e=i.a.get().getEventIndexingManager();this.removeListeners(),this.stopCrawler(),await e.closeEventIndex()}async search(e){return i.a.get().getEventIndexingManager().searchEventIndex(e)}async loadFileEvents(e,t=10,n=null,o=c.a.BACKWARDS){const r=a.a.get(),l=i.a.get().getEventIndexingManager(),d={roomId:e.roomId,limit:t};let u;n&&(d.fromEvent=n,d.direction=o);try{u=await l.loadFileEvents(d)}catch(e){return console.log("EventIndex: Error getting file events",e),[]}const h=r.getEventMapper();return u.map(t=>{const n=h(t.event),o=new s.a(e.roomId,n.getSender());o.name=t.profile.displayname+" ("+n.getSender()+")";const r=h({content:{membership:"join",avatar_url:t.profile.avatar_url,displayname:t.profile.displayname},type:"m.room.member",event_id:n.getId()+":eventIndex",room_id:n.getRoomId(),sender:n.getSender(),origin_server_ts:n.getTs(),state_key:n.getSender()});return o.events.member=r,n.sender=o,n})}async populateFileTimeline(e,t,n,o=10,r=null,i=c.a.BACKWARDS){const a=await this.loadFileEvents(n,o,r,i);null===r&&(a.reverse(),i=i==c.a.BACKWARDS?c.a.FORWARDS:c.a.BACKWARDS),a.forEach(n=>{e.eventIdToTimeline(n.getId())||e.addEventToTimeline(n,t,i==c.a.BACKWARDS)});let s=!1,l="";return a.length>0&&(l=a[a.length-1].getId(),s=!0),console.log("EventIndex: Populating file panel with",a.length,"events and setting the pagination token to",l),t.setPaginationToken(l,c.a.BACKWARDS),s}paginateTimelineWindow(e,t,n,o){const r=t.getTimelineIndex(n);if(!r)return Promise.resolve(!1);if(r.pendingPaginate)return r.pendingPaginate;if(t.extend(n,o))return Promise.resolve(!0);const i=(async(e,t,n,o,r)=>{const i=e._timelineSet,a=t.timeline.getPaginationToken(o),s=await this.populateFileTimeline(i,t.timeline,n,r,a,o);return t.pendingPaginate=null,e.extend(o,r),s})(t,r,e,n,o);return r.pendingPaginate=i,i}async getStats(){return i.a.get().getEventIndexingManager().getStats()}async isRoomIndexed(e){return i.a.get().getEventIndexingManager().isRoomIndexed(e)}currentRoom(){if(null===this._currentCheckpoint&&0===this.crawlerCheckpoints.length)return null;const e=a.a.get();return null!==this._currentCheckpoint?e.getRoom(this._currentCheckpoint.roomId):e.getRoom(this.crawlerCheckpoints[0].roomId)}crawlingRooms(){const e=new Set,t=new Set;this.crawlerCheckpoints.forEach((e,n)=>{t.add(e.roomId)}),null!==this._currentCheckpoint&&t.add(this._currentCheckpoint.roomId);const n=a.a.get();return n.getRooms().filter(e=>n.isRoomEncrypted(e.roomId)).forEach((t,n)=>{e.add(t.roomId)}),{crawlingRooms:t,totalRooms:e}}}},function(e,t,n){"use strict";var o=n(83),r=n.n(o),i=n(88),a=n(89),s=n(252);var c;!function(e){e.Online="online",e.Offline="offline",e.Unavailable="unavailable"}(c||(c={}));t.a=new class{constructor(){r()(this,"unavailableTimer",null),r()(this,"dispatcherRef",null),r()(this,"state",null),r()(this,"onAction",e=>{"user_activity"===e.action&&(this.setState(c.Online),this.unavailableTimer.restart())})}async start(){for(this.unavailableTimer=new s.a(18e4),this.dispatcherRef=a.a.register(this.onAction);this.unavailableTimer;)try{await this.unavailableTimer.finished(),this.setState(c.Unavailable)}catch(e){}}stop(){this.dispatcherRef&&(a.a.unregister(this.dispatcherRef),this.dispatcherRef=null),this.unavailableTimer&&(this.unavailableTimer.abort(),this.unavailableTimer=null)}getState(){return this.state}async setState(e){if(e===this.state)return;const t=this.state;if(this.state=e,!i.a.get().isGuest())try{await i.a.get().setPresence(this.state),console.info("Presence:",e)}catch(e){console.error("Failed to set presence:",e),this.state=t}}}},function(e,t){e.exports="img/e2e/verified.5be6c9f.svg"},function(e,t,n){!function(){"use strict";function e(e){var t=!0,n=!1,o=null,r={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function i(e){return!!(e&&e!==document&&"HTML"!==e.nodeName&&"BODY"!==e.nodeName&&"classList"in e&&"contains"in e.classList)}function a(e){e.classList.contains("focus-visible")||(e.classList.add("focus-visible"),e.setAttribute("data-focus-visible-added",""))}function s(e){t=!1}function c(){document.addEventListener("mousemove",l),document.addEventListener("mousedown",l),document.addEventListener("mouseup",l),document.addEventListener("pointermove",l),document.addEventListener("pointerdown",l),document.addEventListener("pointerup",l),document.addEventListener("touchmove",l),document.addEventListener("touchstart",l),document.addEventListener("touchend",l)}function l(e){e.target.nodeName&&"html"===e.target.nodeName.toLowerCase()||(t=!1,document.removeEventListener("mousemove",l),document.removeEventListener("mousedown",l),document.removeEventListener("mouseup",l),document.removeEventListener("pointermove",l),document.removeEventListener("pointerdown",l),document.removeEventListener("pointerup",l),document.removeEventListener("touchmove",l),document.removeEventListener("touchstart",l),document.removeEventListener("touchend",l))}document.addEventListener("keydown",(function(n){n.metaKey||n.altKey||n.ctrlKey||(i(e.activeElement)&&a(e.activeElement),t=!0)}),!0),document.addEventListener("mousedown",s,!0),document.addEventListener("pointerdown",s,!0),document.addEventListener("touchstart",s,!0),document.addEventListener("visibilitychange",(function(e){"hidden"===document.visibilityState&&(n&&(t=!0),c())}),!0),c(),e.addEventListener("focus",(function(e){var n,o,s;i(e.target)&&(t||(n=e.target,o=n.type,"INPUT"===(s=n.tagName)&&r[o]&&!n.readOnly||"TEXTAREA"===s&&!n.readOnly||n.isContentEditable))&&a(e.target)}),!0),e.addEventListener("blur",(function(e){var t;i(e.target)&&(e.target.classList.contains("focus-visible")||e.target.hasAttribute("data-focus-visible-added"))&&(n=!0,window.clearTimeout(o),o=window.setTimeout((function(){n=!1}),100),(t=e.target).hasAttribute("data-focus-visible-added")&&(t.classList.remove("focus-visible"),t.removeAttribute("data-focus-visible-added")))}),!0),e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&e.host?e.host.setAttribute("data-js-focus-visible",""):e.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if("undefined"!=typeof window&&"undefined"!=typeof document){var t;window.applyFocusVisiblePolyfill=e;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(e){(t=document.createEvent("CustomEvent")).initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}"undefined"!=typeof document&&e(document)}()},function(e,t,n){var o;o=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t){"use strict";e.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var e=document.documentElement,t=null,n="initial",o=n,r=Date.now(),i="false",a=["button","input","select","textarea"],s=[],c=[16,17,18,91,93],l=[],d={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},u=!1,h={x:null,y:null},p={2:"touch",3:"touch",4:"mouse"},m=!1;try{var g=Object.defineProperty({},"passive",{get:function(){m=!0}});window.addEventListener("test",null,g)}catch(e){}var f=function(){var e=!!m&&{passive:!0};document.addEventListener("DOMContentLoaded",_),window.PointerEvent?(window.addEventListener("pointerdown",b),window.addEventListener("pointermove",y)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",b),window.addEventListener("MSPointerMove",y)):(window.addEventListener("mousedown",b),window.addEventListener("mousemove",y),"ontouchstart"in window&&(window.addEventListener("touchstart",b,e),window.addEventListener("touchend",b))),window.addEventListener(x(),y,e),window.addEventListener("keydown",b),window.addEventListener("keyup",b),window.addEventListener("focusin",E),window.addEventListener("focusout",S)},_=function(){if(i=!(e.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(o=window.sessionStorage.getItem("what-intent"))}catch(e){}v("input"),v("intent")},b=function(e){var t=e.which,r=d[e.type];"pointer"===r&&(r=C(e));var i=!l.length&&-1===c.indexOf(t),s=l.length&&-1!==l.indexOf(t),u="keyboard"===r&&t&&(i||s)||"mouse"===r||"touch"===r;if(T(r)&&(u=!1),u&&n!==r&&(w("input",n=r),v("input")),u&&o!==r){var h=document.activeElement;h&&h.nodeName&&(-1===a.indexOf(h.nodeName.toLowerCase())||"button"===h.nodeName.toLowerCase()&&!R(h,"form"))&&(w("intent",o=r),v("intent"))}},v=function(t){e.setAttribute("data-what"+t,"input"===t?n:o),O(t)},y=function(e){var t=d[e.type];"pointer"===t&&(t=C(e)),k(e),(!u&&!T(t)||u&&"wheel"===e.type||"mousewheel"===e.type||"DOMMouseScroll"===e.type)&&o!==t&&(w("intent",o=t),v("intent"))},E=function(n){n.target.nodeName?(t=n.target.nodeName.toLowerCase(),e.setAttribute("data-whatelement",t),n.target.classList&&n.target.classList.length&&e.setAttribute("data-whatclasses",n.target.classList.toString().replace(" ",","))):S()},S=function(){t=null,e.removeAttribute("data-whatelement"),e.removeAttribute("data-whatclasses")},w=function(e,t){if(i)try{window.sessionStorage.setItem("what-"+e,t)}catch(e){}},C=function(e){return"number"==typeof e.pointerType?p[e.pointerType]:"pen"===e.pointerType?"touch":e.pointerType},T=function(e){var t=Date.now(),o="mouse"===e&&"touch"===n&&t-r<200;return r=t,o},x=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},O=function(e){for(var t=0,r=s.length;t<r;t++)s[t].type===e&&s[t].fn.call(void 0,"input"===e?n:o)},k=function(e){h.x!==e.screenX||h.y!==e.screenY?(u=!1,h.x=e.screenX,h.y=e.screenY):u=!0},R=function(e,t){var n=window.Element.prototype;if(n.matches||(n.matches=n.msMatchesSelector||n.webkitMatchesSelector),n.closest)return e.closest(t);do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(d[x()]="mouse",f()),{ask:function(e){return"intent"===e?o:n},element:function(){return t},ignoreKeys:function(e){c=e},specificKeys:function(e){l=e},registerOnChange:function(e,t){s.push({fn:e,type:t||"input"})},unRegisterOnChange:function(e){var t=function(e){for(var t=0,n=s.length;t<n;t++)if(s[t].fn===e)return t}(e);(t||0===t)&&s.splice(t,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}])},e.exports=o()},function(e,t,n){"use strict";t.a={}},function(e,t,n){"use strict";const{Deflate:o,deflate:r,deflateRaw:i,gzip:a}=n(1278),{Inflate:s,inflate:c,inflateRaw:l,ungzip:d}=n(1281),u=n(223);e.exports.Deflate=o,e.exports.deflate=r,e.exports.deflateRaw=i,e.exports.gzip=a,e.exports.Inflate=s,e.exports.inflate=c,e.exports.inflateRaw=l,e.exports.ungzip=d,e.exports.constants=u},function(e,t,n){"use strict";const o=n(1279),r=n(684),i=n(685),a=n(464),s=n(686),c=Object.prototype.toString,{Z_NO_FLUSH:l,Z_SYNC_FLUSH:d,Z_FULL_FLUSH:u,Z_FINISH:h,Z_OK:p,Z_STREAM_END:m,Z_DEFAULT_COMPRESSION:g,Z_DEFAULT_STRATEGY:f,Z_DEFLATED:_}=n(223);function b(e){this.options=r.assign({level:g,method:_,chunkSize:16384,windowBits:15,memLevel:8,strategy:f},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;let n=o.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==p)throw new Error(a[n]);if(t.header&&o.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,n=o.deflateSetDictionary(this.strm,e),n!==p)throw new Error(a[n]);this._dict_set=!0}}function v(e,t){const n=new b(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}b.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let a,s;if(this.ended)return!1;for(s=t===~~t?t:!0===t?h:l,"string"==typeof e?n.input=i.string2buf(e):"[object ArrayBuffer]"===c.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(s===d||s===u)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(a=o.deflate(n,s),a===m)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),a=o.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===p;if(0!==n.avail_out){if(s>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},b.prototype.onData=function(e){this.chunks.push(e)},b.prototype.onEnd=function(e){e===p&&(this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},e.exports.Deflate=b,e.exports.deflate=v,e.exports.deflateRaw=function(e,t){return(t=t||{}).raw=!0,v(e,t)},e.exports.gzip=function(e,t){return(t=t||{}).gzip=!0,v(e,t)},e.exports.constants=n(223)},function(e,t,n){"use strict";const{_tr_init:o,_tr_stored_block:r,_tr_flush_block:i,_tr_tally:a,_tr_align:s}=n(1280),c=n(682),l=n(683),d=n(464),{Z_NO_FLUSH:u,Z_PARTIAL_FLUSH:h,Z_FULL_FLUSH:p,Z_FINISH:m,Z_BLOCK:g,Z_OK:f,Z_STREAM_END:_,Z_STREAM_ERROR:b,Z_DATA_ERROR:v,Z_BUF_ERROR:y,Z_DEFAULT_COMPRESSION:E,Z_FILTERED:S,Z_HUFFMAN_ONLY:w,Z_RLE:C,Z_FIXED:T,Z_DEFAULT_STRATEGY:x,Z_UNKNOWN:O,Z_DEFLATED:k}=n(223),R=(e,t)=>(e.msg=d[t],t),D=e=>(e<<1)-(e>4?9:0),I=e=>{let t=e.length;for(;--t>=0;)e[t]=0};let A=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask;const N=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},F=(e,t)=>{i(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,N(e.strm)},M=(e,t)=>{e.pending_buf[e.pending++]=t},P=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},L=(e,t,n,o)=>{let r=e.avail_in;return r>o&&(r=o),0===r?0:(e.avail_in-=r,t.set(e.input.subarray(e.next_in,e.next_in+r),n),1===e.state.wrap?e.adler=c(e.adler,t,r,n):2===e.state.wrap&&(e.adler=l(e.adler,t,r,n)),e.next_in+=r,e.total_in+=r,r)},j=(e,t)=>{let n,o,r=e.max_chain_length,i=e.strstart,a=e.prev_length,s=e.nice_match;const c=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,l=e.window,d=e.w_mask,u=e.prev,h=e.strstart+258;let p=l[i+a-1],m=l[i+a];e.prev_length>=e.good_match&&(r>>=2),s>e.lookahead&&(s=e.lookahead);do{if(n=t,l[n+a]===m&&l[n+a-1]===p&&l[n]===l[i]&&l[++n]===l[i+1]){i+=2,n++;do{}while(l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&l[++i]===l[++n]&&i<h);if(o=258-(h-i),i=h-258,o>a){if(e.match_start=t,a=o,o>=s)break;p=l[i+a-1],m=l[i+a]}}}while((t=u[t&d])>c&&0!=--r);return a<=e.lookahead?a:e.lookahead},U=e=>{const t=e.w_size;let n,o,r,i,a;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-262)){e.window.set(e.window.subarray(t,t+t),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,o=e.hash_size,n=o;do{r=e.head[--n],e.head[n]=r>=t?r-t:0}while(--o);o=t,n=o;do{r=e.prev[--n],e.prev[n]=r>=t?r-t:0}while(--o);i+=t}if(0===e.strm.avail_in)break;if(o=L(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=o,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=A(e,e.ins_h,e.window[a+1]);e.insert&&(e.ins_h=A(e,e.ins_h,e.window[a+3-1]),e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)},B=(e,t)=>{let n,o;for(;;){if(e.lookahead<262){if(U(e),e.lookahead<262&&t===u)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=A(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-262&&(e.match_length=j(e,n)),e.match_length>=3)if(o=a(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=A(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=A(e,e.ins_h,e.window[e.strstart+1]);else o=a(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(o&&(F(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===m?(F(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(F(e,!1),0===e.strm.avail_out)?1:2},q=(e,t)=>{let n,o,r;for(;;){if(e.lookahead<262){if(U(e),e.lookahead<262&&t===u)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=A(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-262&&(e.match_length=j(e,n),e.match_length<=5&&(e.strategy===S||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-3,o=a(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=r&&(e.ins_h=A(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,o&&(F(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if(o=a(e,0,e.window[e.strstart-1]),o&&F(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(o=a(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===m?(F(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(F(e,!1),0===e.strm.avail_out)?1:2};function G(e,t,n,o,r){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=o,this.func=r}const V=[new G(0,0,0,0,(e,t)=>{let n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(U(e),0===e.lookahead&&t===u)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;const o=e.block_start+n;if((0===e.strstart||e.strstart>=o)&&(e.lookahead=e.strstart-o,e.strstart=o,F(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(F(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===m?(F(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(F(e,!1),e.strm.avail_out),1)}),new G(4,4,8,4,B),new G(4,5,16,8,B),new G(4,6,32,32,B),new G(4,4,16,16,q),new G(8,16,32,32,q),new G(8,16,128,128,q),new G(8,32,128,256,q),new G(32,128,258,1024,q),new G(32,258,258,4096,q)];function H(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=k,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),I(this.dyn_ltree),I(this.dyn_dtree),I(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),I(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),I(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const z=e=>{if(!e||!e.state)return R(e,b);e.total_in=e.total_out=0,e.data_type=O;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=u,o(t),f},K=e=>{const t=z(e);var n;return t===f&&((n=e.state).window_size=2*n.w_size,I(n.head),n.max_lazy_match=V[n.level].max_lazy,n.good_match=V[n.level].good_length,n.nice_match=V[n.level].nice_length,n.max_chain_length=V[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=2,n.match_available=0,n.ins_h=0),t},W=(e,t,n,o,r,i)=>{if(!e)return b;let a=1;if(t===E&&(t=6),o<0?(a=0,o=-o):o>15&&(a=2,o-=16),r<1||r>9||n!==k||o<8||o>15||t<0||t>9||i<0||i>T)return R(e,b);8===o&&(o=9);const s=new H;return e.state=s,s.strm=e,s.wrap=a,s.gzhead=null,s.w_bits=o,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=r+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<r+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=t,s.strategy=i,s.method=n,K(e)};e.exports.deflateInit=(e,t)=>W(e,t,k,15,8,x),e.exports.deflateInit2=W,e.exports.deflateReset=K,e.exports.deflateResetKeep=z,e.exports.deflateSetHeader=(e,t)=>e&&e.state?2!==e.state.wrap?b:(e.state.gzhead=t,f):b,e.exports.deflate=(e,t)=>{let n,o;if(!e||!e.state||t>g||t<0)return e?R(e,b):b;const i=e.state;if(!e.output||!e.input&&0!==e.avail_in||666===i.status&&t!==m)return R(e,0===e.avail_out?y:b);i.strm=e;const c=i.last_flush;if(i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,M(i,31),M(i,139),M(i,8),i.gzhead?(M(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),M(i,255&i.gzhead.time),M(i,i.gzhead.time>>8&255),M(i,i.gzhead.time>>16&255),M(i,i.gzhead.time>>24&255),M(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),M(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(M(i,255&i.gzhead.extra.length),M(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=l(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(M(i,0),M(i,0),M(i,0),M(i,0),M(i,0),M(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),M(i,3),i.status=113);else{let t=k+(i.w_bits-8<<4)<<8,n=-1;n=i.strategy>=w||i.level<2?0:i.level<6?1:6===i.level?2:3,t|=n<<6,0!==i.strstart&&(t|=32),t+=31-t%31,i.status=113,P(i,t),0!==i.strstart&&(P(i,e.adler>>>16),P(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>n&&(e.adler=l(e.adler,i.pending_buf,i.pending-n,n)),N(e),n=i.pending,i.pending!==i.pending_buf_size));)M(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=l(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=l(e.adler,i.pending_buf,i.pending-n,n)),N(e),n=i.pending,i.pending===i.pending_buf_size)){o=1;break}o=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,M(i,o)}while(0!==o);i.gzhead.hcrc&&i.pending>n&&(e.adler=l(e.adler,i.pending_buf,i.pending-n,n)),0===o&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=l(e.adler,i.pending_buf,i.pending-n,n)),N(e),n=i.pending,i.pending===i.pending_buf_size)){o=1;break}o=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,M(i,o)}while(0!==o);i.gzhead.hcrc&&i.pending>n&&(e.adler=l(e.adler,i.pending_buf,i.pending-n,n)),0===o&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&N(e),i.pending+2<=i.pending_buf_size&&(M(i,255&e.adler),M(i,e.adler>>8&255),e.adler=0,i.status=113)):i.status=113),0!==i.pending){if(N(e),0===e.avail_out)return i.last_flush=-1,f}else if(0===e.avail_in&&D(t)<=D(c)&&t!==m)return R(e,y);if(666===i.status&&0!==e.avail_in)return R(e,y);if(0!==e.avail_in||0!==i.lookahead||t!==u&&666!==i.status){let n=i.strategy===w?((e,t)=>{let n;for(;;){if(0===e.lookahead&&(U(e),0===e.lookahead)){if(t===u)return 1;break}if(e.match_length=0,n=a(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(F(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===m?(F(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(F(e,!1),0===e.strm.avail_out)?1:2})(i,t):i.strategy===C?((e,t)=>{let n,o,r,i;const s=e.window;for(;;){if(e.lookahead<=258){if(U(e),e.lookahead<=258&&t===u)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=e.strstart-1,o=s[r],o===s[++r]&&o===s[++r]&&o===s[++r])){i=e.strstart+258;do{}while(o===s[++r]&&o===s[++r]&&o===s[++r]&&o===s[++r]&&o===s[++r]&&o===s[++r]&&o===s[++r]&&o===s[++r]&&r<i);e.match_length=258-(i-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=a(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(F(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===m?(F(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(F(e,!1),0===e.strm.avail_out)?1:2})(i,t):V[i.level].func(i,t);if(3!==n&&4!==n||(i.status=666),1===n||3===n)return 0===e.avail_out&&(i.last_flush=-1),f;if(2===n&&(t===h?s(i):t!==g&&(r(i,0,0,!1),t===p&&(I(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),N(e),0===e.avail_out))return i.last_flush=-1,f}return t!==m?f:i.wrap<=0?_:(2===i.wrap?(M(i,255&e.adler),M(i,e.adler>>8&255),M(i,e.adler>>16&255),M(i,e.adler>>24&255),M(i,255&e.total_in),M(i,e.total_in>>8&255),M(i,e.total_in>>16&255),M(i,e.total_in>>24&255)):(P(i,e.adler>>>16),P(i,65535&e.adler)),N(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?f:_)},e.exports.deflateEnd=e=>{if(!e||!e.state)return b;const t=e.state.status;return 42!==t&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?R(e,b):(e.state=null,113===t?R(e,v):f)},e.exports.deflateSetDictionary=(e,t)=>{let n=t.length;if(!e||!e.state)return b;const o=e.state,r=o.wrap;if(2===r||1===r&&42!==o.status||o.lookahead)return b;if(1===r&&(e.adler=c(e.adler,t,n,0)),o.wrap=0,n>=o.w_size){0===r&&(I(o.head),o.strstart=0,o.block_start=0,o.insert=0);let e=new Uint8Array(o.w_size);e.set(t.subarray(n-o.w_size,n),0),t=e,n=o.w_size}const i=e.avail_in,a=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,U(o);o.lookahead>=3;){let e=o.strstart,t=o.lookahead-2;do{o.ins_h=A(o,o.ins_h,o.window[e+3-1]),o.prev[e&o.w_mask]=o.head[o.ins_h],o.head[o.ins_h]=e,e++}while(--t);o.strstart=e,o.lookahead=2,U(o)}return o.strstart+=o.lookahead,o.block_start=o.strstart,o.insert=o.lookahead,o.lookahead=0,o.match_length=o.prev_length=2,o.match_available=0,e.next_in=a,e.input=s,e.avail_in=i,o.wrap=r,f},e.exports.deflateInfo="pako deflate (from Nodeca project)"},function(e,t,n){"use strict";function o(e){let t=e.length;for(;--t>=0;)e[t]=0}const r=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),i=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),a=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),s=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=new Array(576);o(c);const l=new Array(60);o(l);const d=new Array(512);o(d);const u=new Array(256);o(u);const h=new Array(29);o(h);const p=new Array(30);function m(e,t,n,o,r){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=o,this.max_length=r,this.has_stree=e&&e.length}let g,f,_;function b(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}o(p);const v=e=>e<256?d[e]:d[256+(e>>>7)],y=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},E=(e,t,n)=>{e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,y(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},S=(e,t,n)=>{E(e,n[2*t],n[2*t+1])},w=(e,t)=>{let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1},C=(e,t,n)=>{const o=new Array(16);let r,i,a=0;for(r=1;r<=15;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){let t=e[2*i+1];0!==t&&(e[2*i]=w(o[t]++,t))}},T=e=>{let t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0},x=e=>{e.bi_valid>8?y(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},O=(e,t,n,o)=>{const r=2*t,i=2*n;return e[r]<e[i]||e[r]===e[i]&&o[t]<=o[n]},k=(e,t,n)=>{const o=e.heap[n];let r=n<<1;for(;r<=e.heap_len&&(r<e.heap_len&&O(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!O(t,o,e.heap[r],e.depth));)e.heap[n]=e.heap[r],n=r,r<<=1;e.heap[n]=o},R=(e,t,n)=>{let o,a,s,c,l=0;if(0!==e.last_lit)do{o=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],a=e.pending_buf[e.l_buf+l],l++,0===o?S(e,a,t):(s=u[a],S(e,s+256+1,t),c=r[s],0!==c&&(a-=h[s],E(e,a,c)),o--,s=v(o),S(e,s,n),c=i[s],0!==c&&(o-=p[s],E(e,o,c)))}while(l<e.last_lit);S(e,256,t)},D=(e,t)=>{const n=t.dyn_tree,o=t.stat_desc.static_tree,r=t.stat_desc.has_stree,i=t.stat_desc.elems;let a,s,c,l=-1;for(e.heap_len=0,e.heap_max=573,a=0;a<i;a++)0!==n[2*a]?(e.heap[++e.heap_len]=l=a,e.depth[a]=0):n[2*a+1]=0;for(;e.heap_len<2;)c=e.heap[++e.heap_len]=l<2?++l:0,n[2*c]=1,e.depth[c]=0,e.opt_len--,r&&(e.static_len-=o[2*c+1]);for(t.max_code=l,a=e.heap_len>>1;a>=1;a--)k(e,n,a);c=i;do{a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],k(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=s,n[2*c]=n[2*a]+n[2*s],e.depth[c]=(e.depth[a]>=e.depth[s]?e.depth[a]:e.depth[s])+1,n[2*a+1]=n[2*s+1]=c,e.heap[1]=c++,k(e,n,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],((e,t)=>{const n=t.dyn_tree,o=t.max_code,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,c=t.stat_desc.max_length;let l,d,u,h,p,m,g=0;for(h=0;h<=15;h++)e.bl_count[h]=0;for(n[2*e.heap[e.heap_max]+1]=0,l=e.heap_max+1;l<573;l++)d=e.heap[l],h=n[2*n[2*d+1]+1]+1,h>c&&(h=c,g++),n[2*d+1]=h,d>o||(e.bl_count[h]++,p=0,d>=s&&(p=a[d-s]),m=n[2*d],e.opt_len+=m*(h+p),i&&(e.static_len+=m*(r[2*d+1]+p)));if(0!==g){do{for(h=c-1;0===e.bl_count[h];)h--;e.bl_count[h]--,e.bl_count[h+1]+=2,e.bl_count[c]--,g-=2}while(g>0);for(h=c;0!==h;h--)for(d=e.bl_count[h];0!==d;)u=e.heap[--l],u>o||(n[2*u+1]!==h&&(e.opt_len+=(h-n[2*u+1])*n[2*u],n[2*u+1]=h),d--)}})(e,t),C(n,l,e.bl_count)},I=(e,t,n)=>{let o,r,i=-1,a=t[1],s=0,c=7,l=4;for(0===a&&(c=138,l=3),t[2*(n+1)+1]=65535,o=0;o<=n;o++)r=a,a=t[2*(o+1)+1],++s<c&&r===a||(s<l?e.bl_tree[2*r]+=s:0!==r?(r!==i&&e.bl_tree[2*r]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,i=r,0===a?(c=138,l=3):r===a?(c=6,l=3):(c=7,l=4))},A=(e,t,n)=>{let o,r,i=-1,a=t[1],s=0,c=7,l=4;for(0===a&&(c=138,l=3),o=0;o<=n;o++)if(r=a,a=t[2*(o+1)+1],!(++s<c&&r===a)){if(s<l)do{S(e,r,e.bl_tree)}while(0!=--s);else 0!==r?(r!==i&&(S(e,r,e.bl_tree),s--),S(e,16,e.bl_tree),E(e,s-3,2)):s<=10?(S(e,17,e.bl_tree),E(e,s-3,3)):(S(e,18,e.bl_tree),E(e,s-11,7));s=0,i=r,0===a?(c=138,l=3):r===a?(c=6,l=3):(c=7,l=4)}};let N=!1;const F=(e,t,n,o)=>{E(e,0+(o?1:0),3),((e,t,n,o)=>{x(e),o&&(y(e,n),y(e,~n)),e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n})(e,t,n,!0)};e.exports._tr_init=e=>{N||((()=>{let e,t,n,o,s;const b=new Array(16);for(n=0,o=0;o<28;o++)for(h[o]=n,e=0;e<1<<r[o];e++)u[n++]=o;for(u[n-1]=o,s=0,o=0;o<16;o++)for(p[o]=s,e=0;e<1<<i[o];e++)d[s++]=o;for(s>>=7;o<30;o++)for(p[o]=s<<7,e=0;e<1<<i[o]-7;e++)d[256+s++]=o;for(t=0;t<=15;t++)b[t]=0;for(e=0;e<=143;)c[2*e+1]=8,e++,b[8]++;for(;e<=255;)c[2*e+1]=9,e++,b[9]++;for(;e<=279;)c[2*e+1]=7,e++,b[7]++;for(;e<=287;)c[2*e+1]=8,e++,b[8]++;for(C(c,287,b),e=0;e<30;e++)l[2*e+1]=5,l[2*e]=w(e,5);g=new m(c,r,257,286,15),f=new m(l,i,0,30,15),_=new m(new Array(0),a,0,19,7)})(),N=!0),e.l_desc=new b(e.dyn_ltree,g),e.d_desc=new b(e.dyn_dtree,f),e.bl_desc=new b(e.bl_tree,_),e.bi_buf=0,e.bi_valid=0,T(e)},e.exports._tr_stored_block=F,e.exports._tr_flush_block=(e,t,n,o)=>{let r,i,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=(e=>{let t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0})(e)),D(e,e.l_desc),D(e,e.d_desc),a=(e=>{let t;for(I(e,e.dyn_ltree,e.l_desc.max_code),I(e,e.dyn_dtree,e.d_desc.max_code),D(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*s[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),r=e.opt_len+3+7>>>3,i=e.static_len+3+7>>>3,i<=r&&(r=i)):r=i=n+5,n+4<=r&&-1!==t?F(e,t,n,o):4===e.strategy||i===r?(E(e,2+(o?1:0),3),R(e,c,l)):(E(e,4+(o?1:0),3),((e,t,n,o)=>{let r;for(E(e,t-257,5),E(e,n-1,5),E(e,o-4,4),r=0;r<o;r++)E(e,e.bl_tree[2*s[r]+1],3);A(e,e.dyn_ltree,t-1),A(e,e.dyn_dtree,n-1)})(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),R(e,e.dyn_ltree,e.dyn_dtree)),T(e),o&&x(e)},e.exports._tr_tally=(e,t,n)=>(e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(u[n]+256+1)]++,e.dyn_dtree[2*v(t)]++),e.last_lit===e.lit_bufsize-1),e.exports._tr_align=e=>{E(e,2,3),S(e,256,c),(e=>{16===e.bi_valid?(y(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)})(e)}},function(e,t,n){"use strict";const o=n(1282),r=n(684),i=n(685),a=n(464),s=n(686),c=n(1285),l=Object.prototype.toString,{Z_NO_FLUSH:d,Z_FINISH:u,Z_OK:h,Z_STREAM_END:p,Z_NEED_DICT:m,Z_STREAM_ERROR:g,Z_DATA_ERROR:f,Z_MEM_ERROR:_}=n(223);function b(e){this.options=r.assign({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;let n=o.inflateInit2(this.strm,t.windowBits);if(n!==h)throw new Error(a[n]);if(this.header=new c,o.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=i.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=o.inflateSetDictionary(this.strm,t.dictionary),n!==h)))throw new Error(a[n])}function v(e,t){const n=new b(t);if(n.push(e),n.err)throw n.msg||a[n.err];return n.result}b.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,a=this.options.dictionary;let s,c,b;if(this.ended)return!1;for(c=t===~~t?t:!0===t?u:d,"[object ArrayBuffer]"===l.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),s=o.inflate(n,c),s===m&&a&&(s=o.inflateSetDictionary(n,a),s===h?s=o.inflate(n,c):s===f&&(s=m));n.avail_in>0&&s===p&&n.state.wrap>0&&0!==e[n.next_in];)o.inflateReset(n),s=o.inflate(n,c);switch(s){case g:case f:case m:case _:return this.onEnd(s),this.ended=!0,!1}if(b=n.avail_out,n.next_out&&(0===n.avail_out||s===p))if("string"===this.options.to){let e=i.utf8border(n.output,n.next_out),t=n.next_out-e,o=i.buf2string(n.output,e);n.next_out=t,n.avail_out=r-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(o)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(s!==h||0!==b){if(s===p)return s=o.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},b.prototype.onData=function(e){this.chunks.push(e)},b.prototype.onEnd=function(e){e===h&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},e.exports.Inflate=b,e.exports.inflate=v,e.exports.inflateRaw=function(e,t){return(t=t||{}).raw=!0,v(e,t)},e.exports.ungzip=v,e.exports.constants=n(223)},function(e,t,n){"use strict";const o=n(682),r=n(683),i=n(1283),a=n(1284),{Z_FINISH:s,Z_BLOCK:c,Z_TREES:l,Z_OK:d,Z_STREAM_END:u,Z_NEED_DICT:h,Z_STREAM_ERROR:p,Z_DATA_ERROR:m,Z_MEM_ERROR:g,Z_BUF_ERROR:f,Z_DEFLATED:_}=n(223),b=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function v(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const y=e=>{if(!e||!e.state)return p;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,d},E=e=>{if(!e||!e.state)return p;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,y(e)},S=(e,t)=>{let n;if(!e||!e.state)return p;const o=e.state;return t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?p:(null!==o.window&&o.wbits!==t&&(o.window=null),o.wrap=n,o.wbits=t,E(e))},w=(e,t)=>{if(!e)return p;const n=new v;e.state=n,n.window=null;const o=S(e,t);return o!==d&&(e.state=null),o};let C,T,x=!0;const O=e=>{if(x){C=new Int32Array(512),T=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(1,e.lens,0,288,C,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(2,e.lens,0,32,T,0,e.work,{bits:5}),x=!1}e.lencode=C,e.lenbits=9,e.distcode=T,e.distbits=5},k=(e,t,n,o)=>{let r;const i=e.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),o>=i.wsize?(i.window.set(t.subarray(n-i.wsize,n),0),i.wnext=0,i.whave=i.wsize):(r=i.wsize-i.wnext,r>o&&(r=o),i.window.set(t.subarray(n-o,n-o+r),i.wnext),(o-=r)?(i.window.set(t.subarray(n-o,n),0),i.wnext=o,i.whave=i.wsize):(i.wnext+=r,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=r))),0};e.exports.inflateReset=E,e.exports.inflateReset2=S,e.exports.inflateResetKeep=y,e.exports.inflateInit=e=>w(e,15),e.exports.inflateInit2=w,e.exports.inflate=(e,t)=>{let n,v,y,E,S,w,C,T,x,R,D,I,A,N,F,M,P,L,j,U,B,q,G=0;const V=new Uint8Array(4);let H,z;const K=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return p;n=e.state,12===n.mode&&(n.mode=13),S=e.next_out,y=e.output,C=e.avail_out,E=e.next_in,v=e.input,w=e.avail_in,T=n.hold,x=n.bits,R=w,D=C,q=d;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;x<16;){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}if(2&n.wrap&&35615===T){n.check=0,V[0]=255&T,V[1]=T>>>8&255,n.check=r(n.check,V,2,0),T=0,x=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&T)<<8)+(T>>8))%31){e.msg="incorrect header check",n.mode=30;break}if((15&T)!==_){e.msg="unknown compression method",n.mode=30;break}if(T>>>=4,x-=4,B=8+(15&T),0===n.wbits)n.wbits=B;else if(B>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<n.wbits,e.adler=n.check=1,n.mode=512&T?10:12,T=0,x=0;break;case 2:for(;x<16;){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}if(n.flags=T,(255&n.flags)!==_){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=T>>8&1),512&n.flags&&(V[0]=255&T,V[1]=T>>>8&255,n.check=r(n.check,V,2,0)),T=0,x=0,n.mode=3;case 3:for(;x<32;){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}n.head&&(n.head.time=T),512&n.flags&&(V[0]=255&T,V[1]=T>>>8&255,V[2]=T>>>16&255,V[3]=T>>>24&255,n.check=r(n.check,V,4,0)),T=0,x=0,n.mode=4;case 4:for(;x<16;){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}n.head&&(n.head.xflags=255&T,n.head.os=T>>8),512&n.flags&&(V[0]=255&T,V[1]=T>>>8&255,n.check=r(n.check,V,2,0)),T=0,x=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}n.length=T,n.head&&(n.head.extra_len=T),512&n.flags&&(V[0]=255&T,V[1]=T>>>8&255,n.check=r(n.check,V,2,0)),T=0,x=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(I=n.length,I>w&&(I=w),I&&(n.head&&(B=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(v.subarray(E,E+I),B)),512&n.flags&&(n.check=r(n.check,v,I,E)),w-=I,E+=I,n.length-=I),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===w)break e;I=0;do{B=v[E+I++],n.head&&B&&n.length<65536&&(n.head.name+=String.fromCharCode(B))}while(B&&I<w);if(512&n.flags&&(n.check=r(n.check,v,I,E)),w-=I,E+=I,B)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===w)break e;I=0;do{B=v[E+I++],n.head&&B&&n.length<65536&&(n.head.comment+=String.fromCharCode(B))}while(B&&I<w);if(512&n.flags&&(n.check=r(n.check,v,I,E)),w-=I,E+=I,B)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;x<16;){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}if(T!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}T=0,x=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}e.adler=n.check=b(T),T=0,x=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=S,e.avail_out=C,e.next_in=E,e.avail_in=w,n.hold=T,n.bits=x,h;e.adler=n.check=1,n.mode=12;case 12:if(t===c||t===l)break e;case 13:if(n.last){T>>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}switch(n.last=1&T,T>>>=1,x-=1,3&T){case 0:n.mode=14;break;case 1:if(O(n),n.mode=20,t===l){T>>>=2,x-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}T>>>=2,x-=2;break;case 14:for(T>>>=7&x,x-=7&x;x<32;){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}if((65535&T)!=(T>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&T,T=0,x=0,n.mode=15,t===l)break e;case 15:n.mode=16;case 16:if(I=n.length,I){if(I>w&&(I=w),I>C&&(I=C),0===I)break e;y.set(v.subarray(E,E+I),S),w-=I,E+=I,C-=I,S+=I,n.length-=I;break}n.mode=12;break;case 17:for(;x<14;){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}if(n.nlen=257+(31&T),T>>>=5,x-=5,n.ndist=1+(31&T),T>>>=5,x-=5,n.ncode=4+(15&T),T>>>=4,x-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;x<3;){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}n.lens[K[n.have++]]=7&T,T>>>=3,x-=3}for(;n.have<19;)n.lens[K[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,H={bits:n.lenbits},q=a(0,n.lens,0,19,n.lencode,0,n.work,H),n.lenbits=H.bits,q){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;G=n.lencode[T&(1<<n.lenbits)-1],F=G>>>24,M=G>>>16&255,P=65535&G,!(F<=x);){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}if(P<16)T>>>=F,x-=F,n.lens[n.have++]=P;else{if(16===P){for(z=F+2;x<z;){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}if(T>>>=F,x-=F,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}B=n.lens[n.have-1],I=3+(3&T),T>>>=2,x-=2}else if(17===P){for(z=F+3;x<z;){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}T>>>=F,x-=F,B=0,I=3+(7&T),T>>>=3,x-=3}else{for(z=F+7;x<z;){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}T>>>=F,x-=F,B=0,I=11+(127&T),T>>>=7,x-=7}if(n.have+I>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;I--;)n.lens[n.have++]=B}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,H={bits:n.lenbits},q=a(1,n.lens,0,n.nlen,n.lencode,0,n.work,H),n.lenbits=H.bits,q){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,H={bits:n.distbits},q=a(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,H),n.distbits=H.bits,q){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,t===l)break e;case 20:n.mode=21;case 21:if(w>=6&&C>=258){e.next_out=S,e.avail_out=C,e.next_in=E,e.avail_in=w,n.hold=T,n.bits=x,i(e,D),S=e.next_out,y=e.output,C=e.avail_out,E=e.next_in,v=e.input,w=e.avail_in,T=n.hold,x=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;G=n.lencode[T&(1<<n.lenbits)-1],F=G>>>24,M=G>>>16&255,P=65535&G,!(F<=x);){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}if(M&&0==(240&M)){for(L=F,j=M,U=P;G=n.lencode[U+((T&(1<<L+j)-1)>>L)],F=G>>>24,M=G>>>16&255,P=65535&G,!(L+F<=x);){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}T>>>=L,x-=L,n.back+=L}if(T>>>=F,x-=F,n.back+=F,n.length=P,0===M){n.mode=26;break}if(32&M){n.back=-1,n.mode=12;break}if(64&M){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&M,n.mode=22;case 22:if(n.extra){for(z=n.extra;x<z;){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}n.length+=T&(1<<n.extra)-1,T>>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;G=n.distcode[T&(1<<n.distbits)-1],F=G>>>24,M=G>>>16&255,P=65535&G,!(F<=x);){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}if(0==(240&M)){for(L=F,j=M,U=P;G=n.distcode[U+((T&(1<<L+j)-1)>>L)],F=G>>>24,M=G>>>16&255,P=65535&G,!(L+F<=x);){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}T>>>=L,x-=L,n.back+=L}if(T>>>=F,x-=F,n.back+=F,64&M){e.msg="invalid distance code",n.mode=30;break}n.offset=P,n.extra=15&M,n.mode=24;case 24:if(n.extra){for(z=n.extra;x<z;){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}n.offset+=T&(1<<n.extra)-1,T>>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===C)break e;if(I=D-C,n.offset>I){if(I=n.offset-I,I>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}I>n.wnext?(I-=n.wnext,A=n.wsize-I):A=n.wnext-I,I>n.length&&(I=n.length),N=n.window}else N=y,A=S-n.offset,I=n.length;I>C&&(I=C),C-=I,n.length-=I;do{y[S++]=N[A++]}while(--I);0===n.length&&(n.mode=21);break;case 26:if(0===C)break e;y[S++]=n.length,C--,n.mode=21;break;case 27:if(n.wrap){for(;x<32;){if(0===w)break e;w--,T|=v[E++]<<x,x+=8}if(D-=C,e.total_out+=D,n.total+=D,D&&(e.adler=n.check=n.flags?r(n.check,y,D,S-D):o(n.check,y,D,S-D)),D=C,(n.flags?T:b(T))!==n.check){e.msg="incorrect data check",n.mode=30;break}T=0,x=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;x<32;){if(0===w)break e;w--,T+=v[E++]<<x,x+=8}if(T!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}T=0,x=0}n.mode=29;case 29:q=u;break e;case 30:q=m;break e;case 31:return g;case 32:default:return p}return e.next_out=S,e.avail_out=C,e.next_in=E,e.avail_in=w,n.hold=T,n.bits=x,(n.wsize||D!==e.avail_out&&n.mode<30&&(n.mode<27||t!==s))&&k(e,e.output,e.next_out,D-e.avail_out)?(n.mode=31,g):(R-=e.avail_in,D-=e.avail_out,e.total_in+=R,e.total_out+=D,n.total+=D,n.wrap&&D&&(e.adler=n.check=n.flags?r(n.check,y,D,e.next_out-D):o(n.check,y,D,e.next_out-D)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===R&&0===D||t===s)&&q===d&&(q=f),q)},e.exports.inflateEnd=e=>{if(!e||!e.state)return p;let t=e.state;return t.window&&(t.window=null),e.state=null,d},e.exports.inflateGetHeader=(e,t)=>{if(!e||!e.state)return p;const n=e.state;return 0==(2&n.wrap)?p:(n.head=t,t.done=!1,d)},e.exports.inflateSetDictionary=(e,t)=>{const n=t.length;let r,i,a;return e&&e.state?(r=e.state,0!==r.wrap&&11!==r.mode?p:11===r.mode&&(i=1,i=o(i,t,n,0),i!==r.check)?m:(a=k(e,t,n,n),a?(r.mode=31,g):(r.havedict=1,d))):p},e.exports.inflateInfo="pako inflate (from Nodeca project)"},function(e,t,n){"use strict";e.exports=function(e,t){let n,o,r,i,a,s,c,l,d,u,h,p,m,g,f,_,b,v,y,E,S,w,C,T;const x=e.state;n=e.next_in,C=e.input,o=n+(e.avail_in-5),r=e.next_out,T=e.output,i=r-(t-e.avail_out),a=r+(e.avail_out-257),s=x.dmax,c=x.wsize,l=x.whave,d=x.wnext,u=x.window,h=x.hold,p=x.bits,m=x.lencode,g=x.distcode,f=(1<<x.lenbits)-1,_=(1<<x.distbits)-1;e:do{p<15&&(h+=C[n++]<<p,p+=8,h+=C[n++]<<p,p+=8),b=m[h&f];t:for(;;){if(v=b>>>24,h>>>=v,p-=v,v=b>>>16&255,0===v)T[r++]=65535&b;else{if(!(16&v)){if(0==(64&v)){b=m[(65535&b)+(h&(1<<v)-1)];continue t}if(32&v){x.mode=12;break e}e.msg="invalid literal/length code",x.mode=30;break e}y=65535&b,v&=15,v&&(p<v&&(h+=C[n++]<<p,p+=8),y+=h&(1<<v)-1,h>>>=v,p-=v),p<15&&(h+=C[n++]<<p,p+=8,h+=C[n++]<<p,p+=8),b=g[h&_];n:for(;;){if(v=b>>>24,h>>>=v,p-=v,v=b>>>16&255,!(16&v)){if(0==(64&v)){b=g[(65535&b)+(h&(1<<v)-1)];continue n}e.msg="invalid distance code",x.mode=30;break e}if(E=65535&b,v&=15,p<v&&(h+=C[n++]<<p,p+=8,p<v&&(h+=C[n++]<<p,p+=8)),E+=h&(1<<v)-1,E>s){e.msg="invalid distance too far back",x.mode=30;break e}if(h>>>=v,p-=v,v=r-i,E>v){if(v=E-v,v>l&&x.sane){e.msg="invalid distance too far back",x.mode=30;break e}if(S=0,w=u,0===d){if(S+=c-v,v<y){y-=v;do{T[r++]=u[S++]}while(--v);S=r-E,w=T}}else if(d<v){if(S+=c+d-v,v-=d,v<y){y-=v;do{T[r++]=u[S++]}while(--v);if(S=0,d<y){v=d,y-=v;do{T[r++]=u[S++]}while(--v);S=r-E,w=T}}}else if(S+=d-v,v<y){y-=v;do{T[r++]=u[S++]}while(--v);S=r-E,w=T}for(;y>2;)T[r++]=w[S++],T[r++]=w[S++],T[r++]=w[S++],y-=3;y&&(T[r++]=w[S++],y>1&&(T[r++]=w[S++]))}else{S=r-E;do{T[r++]=T[S++],T[r++]=T[S++],T[r++]=T[S++],y-=3}while(y>2);y&&(T[r++]=T[S++],y>1&&(T[r++]=T[S++]))}break}}break}}while(n<o&&r<a);y=p>>3,n-=y,p-=y<<3,h&=(1<<p)-1,e.next_in=n,e.next_out=r,e.avail_in=n<o?o-n+5:5-(n-o),e.avail_out=r<a?a-r+257:257-(r-a),x.hold=h,x.bits=p}},function(e,t,n){"use strict";const o=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),r=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),i=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),a=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);e.exports=(e,t,n,s,c,l,d,u)=>{const h=u.bits;let p,m,g,f,_,b,v=0,y=0,E=0,S=0,w=0,C=0,T=0,x=0,O=0,k=0,R=null,D=0;const I=new Uint16Array(16),A=new Uint16Array(16);let N,F,M,P=null,L=0;for(v=0;v<=15;v++)I[v]=0;for(y=0;y<s;y++)I[t[n+y]]++;for(w=h,S=15;S>=1&&0===I[S];S--);if(w>S&&(w=S),0===S)return c[l++]=20971520,c[l++]=20971520,u.bits=1,0;for(E=1;E<S&&0===I[E];E++);for(w<E&&(w=E),x=1,v=1;v<=15;v++)if(x<<=1,x-=I[v],x<0)return-1;if(x>0&&(0===e||1!==S))return-1;for(A[1]=0,v=1;v<15;v++)A[v+1]=A[v]+I[v];for(y=0;y<s;y++)0!==t[n+y]&&(d[A[t[n+y]]++]=y);if(0===e?(R=P=d,b=19):1===e?(R=o,D-=257,P=r,L-=257,b=256):(R=i,P=a,b=-1),k=0,y=0,v=E,_=l,C=w,T=0,g=-1,O=1<<w,f=O-1,1===e&&O>852||2===e&&O>592)return 1;for(;;){N=v-T,d[y]<b?(F=0,M=d[y]):d[y]>b?(F=P[L+d[y]],M=R[D+d[y]]):(F=96,M=0),p=1<<v-T,m=1<<C,E=m;do{m-=p,c[_+(k>>T)+m]=N<<24|F<<16|M|0}while(0!==m);for(p=1<<v-1;k&p;)p>>=1;if(0!==p?(k&=p-1,k+=p):k=0,y++,0==--I[v]){if(v===S)break;v=t[n+d[y]]}if(v>w&&(k&f)!==g){for(0===T&&(T=w),_+=E,C=v-T,x=1<<C;C+T<S&&(x-=I[C+T],!(x<=0));)C++,x<<=1;if(O+=1<<C,1===e&&O>852||2===e&&O>592)return 1;g=k&f,c[g]=w<<24|C<<16|_-l|0}}return 0!==k&&(c[_+k]=v-T<<24|64<<16|0),u.bits=w,0}},function(e,t,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(e,t,n){!function(){"use strict";var t,o=n(1287),r=n(687);function i(e){this.written=0,t=512*(e||20),this.out=r.clean(t)}i.prototype.append=function(e,n,i,a){var s,c,l,d,u,h,p;if("string"==typeof n)n=r.stringToUint8(n);else if(n.constructor!==Uint8Array.prototype.constructor)throw"Invalid input type. You gave me: "+n.constructor.toString().match(/function\s*([$A-Za-z_][0-9A-Za-z_]*)\s*\(/)[1];return"function"==typeof i&&(a=i,i={}),l=(i=i||{}).mode||4095&parseInt("777",8),d=i.mtime||Math.floor(+new Date/1e3),u=i.uid||0,h=i.gid||0,s={fileName:e,fileMode:r.pad(l,7),uid:r.pad(u,7),gid:r.pad(h,7),fileSize:r.pad(n.length,11),mtime:r.pad(d,11),checksum:" ",type:"0",ustar:"ustar ",owner:i.owner||"",group:i.group||""},c=0,Object.keys(s).forEach((function(e){var t,n,o=s[e];for(t=0,n=o.length;t<n;t+=1)c+=o.charCodeAt(t)})),s.checksum=r.pad(c,6)+"\0 ",p=o.format(s),this.out.set(p,this.written),this.written+=p.length,this.written+n.length>this.out.length&&(this.out=r.extend(this.out,this.written,n.length,t)),this.out.set(n,this.written),this.written+=n.length+(512-(n.length%512||512)),this.out.length-this.written<1024&&(this.out=r.extend(this.out,this.written,1024,t)),"function"==typeof a&&a(this.out),this.out},i.prototype.clear=function(){this.written=0,this.out=r.clean(t)},i.utils=r,i.stringToUint8=r.stringToUint8,i.uint8ToBase64=r.uint8ToBase64,i.base64ToUint8=r.base64ToUint8,e.exports=i}()},function(e,t,n){!function(){"use strict";var t,o=n(687);t=[{field:"fileName",length:100},{field:"fileMode",length:8},{field:"uid",length:8},{field:"gid",length:8},{field:"fileSize",length:12},{field:"mtime",length:12},{field:"checksum",length:8},{field:"type",length:1},{field:"linkName",length:100},{field:"ustar",length:8},{field:"owner",length:32},{field:"group",length:32},{field:"majorNumber",length:8},{field:"minorNumber",length:8},{field:"filenamePrefix",length:155},{field:"padding",length:12}],e.exports.structure=t,e.exports.format=function(e,n){var r=o.clean(512),i=0;return t.forEach((function(t){var n,o,a=e[t.field]||"";for(n=0,o=a.length;n<o;n+=1)r[i]=a.charCodeAt(n),i+=1;i+=t.length-n})),"function"==typeof n?n(r,i):r}}()},function(e,t){e.exports="img/element-icons/roomlist/dark-light-mode.f72b785.svg"},function(e,t,n){"use strict";t.__esModule=!0,t.config=t.Transition=t.TransitionGroup=t.SwitchTransition=t.ReplaceTransition=t.CSSTransition=void 0;var o=l(n(1290));t.CSSTransition=o.default;var r=l(n(1294));t.ReplaceTransition=r.default;var i=l(n(1296));t.SwitchTransition=i.default;var a=l(n(691));t.TransitionGroup=a.default;var s=l(n(466));t.Transition=s.default;var c=l(n(689));function l(e){return e&&e.__esModule?e:{default:e}}t.config=c.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;s(n(86));var o=s(n(1291)),r=s(n(1293)),i=s(n(82)),a=s(n(466));n(690);function s(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}var l=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))},d=function(e){var t,n;function r(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var o=t.resolveArguments(e,n),r=o[0],i=o[1];t.removeClasses(r,"exit"),t.addClass(r,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var o=t.resolveArguments(e,n),r=o[0],i=o[1]?"appear":"enter";t.addClass(r,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var o=t.resolveArguments(e,n),r=o[0],i=o[1]?"appear":"enter";t.removeClasses(r,i),t.addClass(r,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,o="string"==typeof n,r=o?""+(o&&n?n+"-":"")+e:n[e];return{baseClassName:r,activeClassName:o?r+"-active":n[e+"Active"],doneClassName:o?r+"-done":n[e+"Done"]}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=r.prototype;return s.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return(0,o.default)(e,t)}))}(e,r))},s.removeClasses=function(e,t){var n=this.appliedClasses[t],o=n.base,r=n.active,i=n.done;this.appliedClasses[t]={},o&&l(e,o),r&&l(e,r),i&&l(e,i)},s.render=function(){var e=this.props,t=(e.classNames,function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,["classNames"]));return i.default.createElement(a.default,c({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(i.default.Component);d.defaultProps={classNames:""},d.propTypes={};var u=d;t.default=u,e.exports=t.default},function(e,t,n){"use strict";var o=n(112);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,r.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var r=o(n(1292));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,n){"use strict";function o(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=o(e.className,t):e.setAttribute("class",o(e.className&&e.className.baseVal||"",t))},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;a(n(86));var o=a(n(82)),r=a(n(148)),i=a(n(691));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t,n;function a(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.handleLifecycle=function(e,t,n){var i,a=this.props.children,s=o.default.Children.toArray(a)[t];if(s.props[e]&&(i=s.props)[e].apply(i,n),this.props[e]){var c=s.props.nodeRef?void 0:r.default.findDOMNode(this);this.props[e](c)}},s.render=function(){var e=this.props,t=e.children,n=e.in,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,["children","in"]),a=o.default.Children.toArray(t),s=a[0],c=a[1];return delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,o.default.createElement(i.default,r,n?o.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):o.default.cloneElement(c,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(o.default.Component);s.propTypes={};var c=s;t.default=c,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=r,t.mergeChildMappings=i,t.getInitialChildMapping=function(e,t){return r(e.children,(function(n){return(0,o.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:a(n,"appear",e),enter:a(n,"enter",e),exit:a(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var s=r(e.children),c=i(t,s);return Object.keys(c).forEach((function(r){var i=c[r];if((0,o.isValidElement)(i)){var l=r in t,d=r in s,u=t[r],h=(0,o.isValidElement)(u)&&!u.props.in;!d||l&&!h?d||!l||h?d&&l&&(0,o.isValidElement)(u)&&(c[r]=(0,o.cloneElement)(i,{onExited:n.bind(null,i),in:u.props.in,exit:a(i,"exit",e),enter:a(i,"enter",e)})):c[r]=(0,o.cloneElement)(i,{in:!1}):c[r]=(0,o.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:a(i,"exit",e),enter:a(i,"enter",e)})}})),c};var o=n(82);function r(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function i(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var o,r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function a(e,t,n){return null!=n[t]?n[t]:e.props[t]}},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.modes=void 0;var o,r,i=c(n(82)),a=(c(n(86)),n(466)),s=c(n(467));function c(e){return e&&e.__esModule?e:{default:e}}var l={out:"out-in",in:"in-out"};t.modes=l;var d=function(e,t,n){return function(){var o;e.props[t]&&(o=e.props)[t].apply(o,arguments),n()}},u=((o={})[l.out]=function(e){var t=e.current,n=e.changeState;return i.default.cloneElement(t,{in:!1,onExited:d(t,"onExited",(function(){n(a.ENTERING,null)}))})},o[l.in]=function(e){var t=e.current,n=e.changeState,o=e.children;return[t,i.default.cloneElement(o,{in:!0,onEntered:d(o,"onEntered",(function(){n(a.ENTERING)}))})]},o),h=((r={})[l.out]=function(e){var t=e.children,n=e.changeState;return i.default.cloneElement(t,{in:!0,onEntered:d(t,"onEntered",(function(){n(a.ENTERED,i.default.cloneElement(t,{in:!0}))}))})},r[l.in]=function(e){var t=e.current,n=e.children,o=e.changeState;return[i.default.cloneElement(t,{in:!1,onExited:d(t,"onExited",(function(){o(a.ENTERED,i.default.cloneElement(n,{in:!0}))}))}),i.default.cloneElement(n,{in:!0})]},r),p=function(e){var t,n;function o(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return(t=e.call.apply(e,[this].concat(o))||this).state={status:a.ENTERED,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=o.prototype;return r.componentDidMount=function(){this.appeared=!0},o.getDerivedStateFromProps=function(e,t){return null==e.children?{current:null}:t.status===a.ENTERING&&e.mode===l.in?{status:a.ENTERING}:!t.current||(n=t.current,o=e.children,n===o||i.default.isValidElement(n)&&i.default.isValidElement(o)&&null!=n.key&&n.key===o.key)?{current:i.default.cloneElement(e.children,{in:!0})}:{status:a.EXITING};var n,o},r.render=function(){var e,t=this.props,n=t.children,o=t.mode,r=this.state,c=r.status,l=r.current,d={children:n,current:l,changeState:this.changeState,status:c};switch(c){case a.ENTERING:e=h[o](d);break;case a.EXITING:e=u[o](d);break;case a.ENTERED:e=l}return i.default.createElement(s.default.Provider,{value:{isMounting:!this.appeared}},e)},o}(i.default.Component);p.propTypes={},p.defaultProps={mode:l.out};var m=p;t.default=m},function(e,t,n){(function(t){var n;n=function(){"use strict";var e=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,o){return e[0]===t&&(n=o,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),n="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,o=void 0!==t&&t.Math===Math?t:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),r="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(o):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},i=["top","right","bottom","left","width","height","size","weight"],a="undefined"!=typeof MutationObserver,s=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,i=0;function a(){n&&(n=!1,e()),o&&c()}function s(){r(a)}function c(){var e=Date.now();if(n){if(e-i<2)return;o=!0}else n=!0,o=!1,setTimeout(s,t);i=e}return c}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){n&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),a?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){n&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;i.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),c=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},l=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||o},d=f(0,0,0,0);function u(e){return parseFloat(e)||0}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+u(e["border-"+n+"-width"])}),0)}function p(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var o=l(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=u(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,s=u(o.width),c=u(o.height);if("border-box"===o.boxSizing&&(Math.round(s+i)!==t&&(s-=h(o,"left","right")+i),Math.round(c+a)!==n&&(c-=h(o,"top","bottom")+a)),!function(e){return e===l(e).document.documentElement}(e)){var p=Math.round(s+i)-t,m=Math.round(c+a)-n;1!==Math.abs(p)&&(s-=p),1!==Math.abs(m)&&(c-=m)}return f(r.left,r.top,s,c)}var m="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof l(e).SVGGraphicsElement}:function(e){return e instanceof l(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return n?m(e)?function(e){var t=e.getBBox();return f(0,0,t.width,t.height)}(e):p(e):d}function f(e,t,n,o){return{x:e,y:t,width:n,height:o}}var _=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=f(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=g(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),b=function(e,t){var n,o,r,i,a,s,l,d=(o=(n=t).x,r=n.y,i=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(s.prototype),c(l,{x:o,y:r,width:i,height:a,top:r,right:o+i,bottom:a+r,left:o}),l);c(this,{target:e,contentRect:d})},v=function(){function t(t,n,o){if(this.activeObservations_=[],this.observations_=new e,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=o}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof l(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new _(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof l(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new b(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),y="undefined"!=typeof WeakMap?new WeakMap:new e,E=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),o=new v(t,n,this);y.set(this,o)};return["observe","unobserve","disconnect"].forEach((function(e){E.prototype[e]=function(){var t;return(t=y.get(this))[e].apply(t,arguments)}})),void 0!==o.ResizeObserver?o.ResizeObserver:E},e.exports=n()}).call(this,n(6))},function(e,t){e.exports="img/element-icons/warning-badge.de1033e.svg"},function(e,t){e.exports="img/element-icons/room/default_app.2034d23.svg"},function(e,t){e.exports="img/element-icons/room/default_video.66250a4.svg"},function(e,t){e.exports="img/element-icons/room/default_cal.65049a4.svg"},function(e,t){e.exports="img/element-icons/room/default_doc.02ee63f.svg"},function(e,t){e.exports="img/element-icons/room/default_clock.e3e0f9b.svg"},function(e,t){e.exports="fonts/Twemoji_Mozilla/TwemojiMozilla-colr.5bb743a.woff2"},function(e,t){e.exports="fonts/Twemoji_Mozilla/TwemojiMozilla-sbix.fb38407.woff2"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return de}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(92),u=n.n(d),h=n(274),p=n(84),m=n(109),g=n(300),f=n(91),_=n(87),b=n(137),v=n(89),y=n(343),E=n(259),S=n(247),w=n(1310),C=n(353),T=n(354),x=n(126),O=n(1337),k=n(249),R=n(90),D=n(162),I=n(93),A=n(260),N=n(209),F=n(229),M=n(97),P=n(478),L=n(96),j=n(98),U=n(711),B=n(712),q=n(480),G=n(714),V=n(716),H=n(717),z=n(718),K=n(747),W=n(722),Y=n(724),$=n(727),Q=n(299),J=n(202),X=n(214),Z=n(115),ee=n(251),te=n(439),ne=n(166),oe=n(173),re=n(176),ie=n(128),ae=n(749),se=n(85);let ce=function(e){};const le="sandbox"in document.createElement("iframe");let de=Object(se.a)("structures.RoomView")((i=r=class extends l.a.Component{constructor(t,n){super(t,n),s()(this,"dispatcherRef",void 0),s()(this,"roomStoreToken",void 0),s()(this,"rightPanelStoreToken",void 0),s()(this,"showReadReceiptsWatchRef",void 0),s()(this,"layoutWatcherRef",void 0),s()(this,"unmounted",!1),s()(this,"permalinkCreators",{}),s()(this,"searchId",void 0),s()(this,"roomView",Object(c.createRef)()),s()(this,"searchResultsPanel",Object(c.createRef)()),s()(this,"messagePanel",void 0),s()(this,"onWidgetStoreUpdate",()=>{this.state.room&&this.checkWidgets(this.state.room)}),s()(this,"checkWidgets",e=>{this.setState({hasPinnedWidgets:oe.d.instance.getContainerWidgets(e,oe.a.Top).length>0,showApps:this.shouldShowApps(e)})}),s()(this,"onReadReceiptsChange",()=>{this.setState({showReadReceipts:R.b.getValue("showReadReceipts",this.state.roomId)})}),s()(this,"onRoomViewStoreUpdate",e=>{if(this.unmounted)return;if(!e&&this.state.roomId!==x.a.getRoomId())return;const t=x.a.getRoomId(),n={roomId:t,roomAlias:x.a.getRoomAlias(),roomLoading:x.a.isRoomLoading(),roomLoadError:x.a.getRoomLoadError(),joining:x.a.isJoining(),initialEventId:x.a.getInitialEventId(),isInitialEventHighlighted:x.a.isInitialEventHighlighted(),replyToEvent:x.a.getQuotingEvent(),forwardingEvent:x.a.getForwardingEvent(),shouldPeek:this.state.matrixClientIsReady&&x.a.shouldPeek(),showingPinned:R.b.getValue("PinnedEvents.isOpen",t),showReadReceipts:R.b.getValue("showReadReceipts",t)};if(e||!this.state.shouldPeek||n.shouldPeek||this.context.stopPeeking(),console.log("RVS update:",n.roomId,n.roomAlias,"loading?",n.roomLoading,"joining?",n.joining,"initial?",e,"shouldPeek?",n.shouldPeek),e&&(n.room=this.context.getRoom(n.roomId),n.room&&(n.showApps=this.shouldShowApps(n.room),this.onRoomLoaded(n.room))),null===this.state.roomId&&null!==n.roomId&&!n.initialEventId){const e=O.a.getScrollState(n.roomId);e&&(n.initialEventId=e.focussedEvent,n.initialEventPixelOffset=e.pixelOffset)}this.state.initialEventId!==n.initialEventId&&(n.searchResults=null),this.setState(n),e&&this.setupRoom(n.room,n.roomId,n.joining,n.shouldPeek)}),s()(this,"getRoomId",()=>this.state.room?this.state.room.roomId:this.state.roomId),s()(this,"onWidgetEchoStoreUpdate",()=>{this.state.room&&this.setState({hasPinnedWidgets:oe.d.instance.getContainerWidgets(this.state.room,oe.a.Top).length>0,showApps:this.shouldShowApps(this.state.room)})}),s()(this,"onWidgetLayoutChange",()=>{this.onWidgetEchoStoreUpdate()}),s()(this,"onLayoutChange",()=>{this.setState({layout:R.b.getValue("layout")})}),s()(this,"onRightPanelStoreUpdate",()=>{this.setState({showRightPanel:A.a.getSharedInstance().isOpenForRoom})}),s()(this,"onPageUnload",e=>g.a.sharedInstance().getCurrentUploads().length>0?e.returnValue=Object(p.a)("You seem to be uploading files, are you sure you want to quit?"):this.getCallForRoom()&&"ended"!==this.state.callState?e.returnValue=Object(p.a)("You seem to be in a call, are you sure you want to quit?"):void 0),s()(this,"onReactKeyDown",e=>{let t=!1;switch(Object(re.f)().getRoomAction(e)){case re.d.DismissReadMarker:this.messagePanel.forgetReadMarker(),this.jumpToLiveTimeline(),t=!0;break;case re.d.JumpToOldestUnread:this.jumpToReadMarker(),t=!0;break;case re.d.UploadFile:v.a.dispatch({action:"upload_file"},!0),t=!0}t&&(e.stopPropagation(),e.preventDefault())}),s()(this,"onAction",t=>{switch(t.action){case"message_sent":this.checkDesktopNotifications();break;case"post_sticker_message":this.injectSticker(t.data.content.url,t.data.content.info,t.data.description||t.data.name);break;case"picture_snapshot":g.a.sharedInstance().sendContentListToRoom([t.file],this.state.room.roomId,this.context);break;case"notifier_enabled":case L.a.UploadStarted:case L.a.UploadFinished:case L.a.UploadCanceled:this.forceUpdate();break;case"call_state":{if(!t.room_id)return;const e=this.getCallForRoom();this.setState({callState:e?e.state:null});break}case"appsDrawer":this.setState({showApps:t.show});break;case"reply_to_event":this.state.searchResults&&t.event.getRoomId()===this.state.roomId&&!this.unmounted&&this.onCancelSearchClick();break;case"quote":if(this.state.searchResults){const n=t.event.getRoomId();n===this.state.roomId&&this.onCancelSearchClick(),e(()=>{v.a.dispatch({action:"view_room",room_id:n,deferred_action:t})})}break;case"sync_state":this.state.matrixClientIsReady||this.setState({matrixClientIsReady:this.context&&this.context.isInitialSyncComplete()},()=>{this.onRoomViewStoreUpdate(!0)});break;case"focus_search":this.onSearchClick()}}),s()(this,"onRoomTimeline",(e,t,n,o,r)=>{this.unmounted||t&&this.state.room&&t.roomId==this.state.room.roomId&&r.timeline.getTimelineSet()===t.getUnfilteredTimelineSet()&&("org.matrix.room.preview_urls"===e.getType()&&this.updatePreviewUrlVisibility(t),"m.room.encryption"===e.getType()&&this.updateE2EStatus(t),!n&&r&&r.liveEvent&&(this.state.joining||e.getSender()!==this.context.credentials.userId&&(!this.state.searchResults&&this.state.atEndOfLiveTimeline||Object(h.a)(e)||this.setState((e,t)=>({numUnreadMessages:e.numUnreadMessages+1})))))}),s()(this,"onEventDecrypted",e=>{e.isDecryptionFailure()||this.handleEffects(e)}),s()(this,"onEvent",e=>{e.isBeingDecrypted()||e.isDecryptionFailure()||this.handleEffects(e)}),s()(this,"handleEffects",e=>{if(!this.state.room||!this.state.matrixClientIsReady)return;if(e.getRoomId()!==this.state.room.roomId)return;ne.a.instance.getRoomState(this.state.room).isUnread&&J.CHAT_EFFECTS.forEach(t=>{(Object(Q.containsEmoji)(e.getContent(),t.emojis)||e.getContent().msgtype===t.msgType)&&v.a.dispatch({action:"effects."+t.command})})}),s()(this,"onRoomName",e=>{this.state.room&&e.roomId==this.state.room.roomId&&this.forceUpdate()}),s()(this,"onKeyBackupStatus",()=>{this.forceUpdate()}),s()(this,"canResetTimeline",()=>!this.messagePanel||this.messagePanel.canResetTimeline()),s()(this,"onRoomLoaded",e=>{oe.d.instance.on(oe.d.emissionForRoom(e),this.onWidgetLayoutChange),this.onWidgetLayoutChange(),this.calculatePeekRules(e),this.updatePreviewUrlVisibility(e),this.loadMembersIfJoined(e),this.calculateRecommendedVersion(e),this.updateE2EStatus(e),this.updatePermissions(e),this.checkWidgets(e)}),s()(this,"onRoom",e=>{e&&e.roomId===this.state.roomId&&(this.state.room&&oe.d.instance.off(oe.d.emissionForRoom(this.state.room),this.onWidgetLayoutChange),this.setState({room:e},()=>{this.onRoomLoaded(e)}))}),s()(this,"onDeviceVerificationChanged",(e,t)=>{const n=this.state.room;n.currentState.getMember(e)&&this.updateE2EStatus(n)}),s()(this,"onUserVerificationChanged",(e,t)=>{const n=this.state.room;n&&n.currentState.getMember(e)&&this.updateE2EStatus(n)}),s()(this,"onCrossSigningKeysChanged",()=>{const e=this.state.room;e&&this.updateE2EStatus(e)}),s()(this,"onAccountData",e=>{const t=e.getType();"org.matrix.preview_urls"!==t&&"im.vector.web.settings"!==t||!this.state.room||this.updatePreviewUrlVisibility(this.state.room)}),s()(this,"onRoomAccountData",(e,t)=>{if(t.roomId==this.state.roomId){const n=e.getType();if("org.matrix.room.color_scheme"===n){const t=e.getContent();console.log("Tinter.tint from onRoomAccountData"),y.a.tint(t.primary_color,t.secondary_color)}else"org.matrix.room.preview_urls"!==n&&"im.vector.web.settings"!==n||this.updatePreviewUrlVisibility(t)}}),s()(this,"onRoomStateEvents",(e,t)=>{this.state.room&&this.state.room.roomId===t.roomId&&this.updatePermissions(this.state.room)}),s()(this,"onRoomStateMember",(e,t,n)=>{this.state.room&&n.roomId===this.state.room.roomId&&this.updateRoomMembers(n)}),s()(this,"onMyMembership",(e,t,n)=>{e.roomId===this.state.roomId&&(this.forceUpdate(),this.loadMembersIfJoined(e),this.updatePermissions(e))}),s()(this,"updateRoomMembers",Object(E.a)(()=>{this.updateDMState(),this.updateE2EStatus(this.state.room)},500)),s()(this,"onSearchResultsFillRequest",e=>{if(!e)return Promise.resolve(!1);if(this.state.searchResults.next_batch){ce("requesting more search results");const e=Object(w.b)(this.state.searchResults);return this.handleSearchResult(e)}return ce("no more search results"),Promise.resolve(!1)}),s()(this,"onInviteButtonClick",()=>{v.a.dispatch({action:"view_invite",roomId:this.state.room.roomId})}),s()(this,"onJoinButtonClicked",()=>{this.context&&this.context.isGuest()?(v.a.dispatch({action:"do_after_sync_prepared",deferred_action:{action:"view_room",room_id:this.getRoomId()}}),v.a.dispatch({action:"require_registration"})):Promise.resolve().then(()=>{var e;const t=null===(e=this.props.threepidInvite)||void 0===e?void 0:e.signUrl;return v.a.dispatch({action:"join_room",opts:{inviteSignUrl:t},_type:"unknown"}),Promise.resolve()})}),s()(this,"onMessageListScroll",e=>{this.messagePanel.isAtEndOfLiveTimeline()?this.setState({numUnreadMessages:0,atEndOfLiveTimeline:!0}):this.setState({atEndOfLiveTimeline:!1}),this.updateTopUnreadMessagesBar()}),s()(this,"onDragEnter",e=>{e.stopPropagation(),e.preventDefault(),this.setState({dragCounter:this.state.dragCounter+1}),(e.dataTransfer.types.includes("Files")||e.dataTransfer.types.includes("application/x-moz-file"))&&this.setState({draggingFile:!0})}),s()(this,"onDragLeave",e=>{e.stopPropagation(),e.preventDefault(),this.setState({dragCounter:this.state.dragCounter-1}),0===this.state.dragCounter&&this.setState({draggingFile:!1})}),s()(this,"onDragOver",e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="none",(e.dataTransfer.types.includes("Files")||e.dataTransfer.types.includes("application/x-moz-file"))&&(e.dataTransfer.dropEffect="copy")}),s()(this,"onDrop",e=>{e.stopPropagation(),e.preventDefault(),g.a.sharedInstance().sendContentListToRoom(e.dataTransfer.files,this.state.room.roomId,this.context),v.a.fire(L.a.FocusComposer),this.setState({draggingFile:!1,dragCounter:this.state.dragCounter-1})}),s()(this,"onSearch",(e,t)=>{let n;this.setState({searchTerm:e,searchScope:t,searchResults:{},searchHighlights:[]}),this.searchResultsPanel.current&&this.searchResultsPanel.current.resetScrollState(),this.searchId=(new Date).getTime(),"Room"===t&&(n=this.state.room.roomId),ce("sending search request");const o=Object(w.a)(e,n);this.handleSearchResult(o)}),s()(this,"onPinnedClick",()=>{const e=!this.state.showingPinned,t=this.state.room.roomId;this.setState({showingPinned:e,searching:!1}),R.b.setValue("PinnedEvents.isOpen",t,j.a.ROOM_DEVICE,e)}),s()(this,"onCallPlaced",e=>{v.a.dispatch({action:"place_call",type:e,room_id:this.state.room.roomId})}),s()(this,"onSettingsClick",()=>{v.a.dispatch({action:"open_room_settings"})}),s()(this,"onCancelClick",()=>{console.log("updateTint from onCancelClick"),this.updateTint(),this.state.forwardingEvent&&v.a.dispatch({action:"forward_event",event:null}),v.a.fire(L.a.FocusComposer)}),s()(this,"onAppsClick",()=>{v.a.dispatch({action:"appsDrawer",show:!this.state.showApps})}),s()(this,"onLeaveClick",()=>{v.a.dispatch({action:"leave_room",room_id:this.state.room.roomId})}),s()(this,"onForgetClick",()=>{v.a.dispatch({action:"forget_room",room_id:this.state.room.roomId})}),s()(this,"onRejectButtonClicked",()=>{this.setState({rejecting:!0}),this.context.leave(this.state.roomId).then(()=>{v.a.dispatch({action:"view_home_page"}),this.setState({rejecting:!1})},e=>{console.error("Failed to reject invite: %s",e);const t=e.message?e.message:JSON.stringify(e),n=_.getComponent("dialogs.ErrorDialog");f.a.createTrackedDialog("Failed to reject invite","",n,{title:Object(p.a)("Failed to reject invite"),description:t}),this.setState({rejecting:!1,rejectError:e})})}),s()(this,"onRejectAndIgnoreClick",async()=>{this.setState({rejecting:!0});try{const e=this.state.room.getMember(this.context.getUserId()).events.member,t=this.context.getIgnoredUsers();t.push(e.getSender()),await this.context.setIgnoredUsers(t),await this.context.leave(this.state.roomId),v.a.dispatch({action:"view_home_page"}),this.setState({rejecting:!1})}catch(e){console.error("Failed to reject invite: %s",e);const t=e.message?e.message:JSON.stringify(e),n=_.getComponent("dialogs.ErrorDialog");f.a.createTrackedDialog("Failed to reject invite","",n,{title:Object(p.a)("Failed to reject invite"),description:t}),this.setState({rejecting:!1,rejectError:e})}}),s()(this,"onRejectThreepidInviteButtonClicked",()=>{v.a.fire(L.a.ViewRoomDirectory)}),s()(this,"onSearchClick",()=>{this.setState({searching:!this.state.searching,showingPinned:!1})}),s()(this,"onCancelSearchClick",()=>{this.setState({searching:!1,searchResults:null})}),s()(this,"jumpToLiveTimeline",()=>{this.messagePanel.jumpToLiveTimeline(),v.a.fire(L.a.FocusComposer)}),s()(this,"jumpToReadMarker",()=>{this.messagePanel.jumpToReadMarker()}),s()(this,"forgetReadMarker",e=>{e.stopPropagation(),this.messagePanel.forgetReadMarker()}),s()(this,"updateTopUnreadMessagesBar",()=>{if(!this.messagePanel)return;const e=this.messagePanel.canJumpToReadMarker();this.state.showTopUnreadMessagesBar!=e&&this.setState({showTopUnreadMessagesBar:e})}),s()(this,"onResize",()=>{let e=window.innerHeight-261;e<50&&(e=50),this.setState({auxPanelMaxHeight:e})}),s()(this,"onFullscreenClick",()=>{v.a.dispatch({action:"video_fullscreen",fullscreen:!0},!0)}),s()(this,"onMuteAudioClick",()=>{const e=this.getCallForRoom();if(!e)return;const t=!e.isMicrophoneMuted();e.setMicrophoneMuted(t),this.forceUpdate()}),s()(this,"onMuteVideoClick",()=>{const e=this.getCallForRoom();if(!e)return;const t=!e.isLocalVideoMuted();e.setLocalVideoMuted(t),this.forceUpdate()}),s()(this,"onStatusBarVisible",()=>{this.unmounted||this.setState({statusBarVisible:!0})}),s()(this,"onStatusBarHidden",()=>{this.unmounted||this.setState({statusBarVisible:!1})}),s()(this,"handleScrollKey",e=>{let t;this.searchResultsPanel.current?t=this.searchResultsPanel.current:this.messagePanel&&(t=this.messagePanel),t&&t.handleScrollKey(e)}),s()(this,"gatherTimelinePanelRef",e=>{this.messagePanel=e,e&&(console.log("updateTint from RoomView.gatherTimelinePanelRef"),this.updateTint())}),s()(this,"onHiddenHighlightsClick",()=>{const e=this.getOldRoom();e&&v.a.dispatch({action:"view_room",room_id:e.roomId})});const o=this.context.hasLazyLoadMembersEnabled();this.state={roomId:null,roomLoading:!0,peekLoading:!1,shouldPeek:!0,membersLoaded:!o,numUnreadMessages:0,draggingFile:!1,searching:!1,searchResults:null,callState:null,guestsCanJoin:!1,canPeek:!1,showApps:!1,isPeeking:!1,showingPinned:!1,showReadReceipts:!0,showRightPanel:A.a.getSharedInstance().isOpenForRoom,joining:!1,atEndOfLiveTimeline:!0,atEndOfLiveTimelineInit:!1,showTopUnreadMessagesBar:!1,statusBarVisible:!1,canReact:!1,canReply:!1,layout:R.b.getValue("layout"),matrixClientIsReady:this.context&&this.context.isInitialSyncComplete(),dragCounter:0},this.dispatcherRef=v.a.register(this.onAction),this.context.on("Room",this.onRoom),this.context.on("Room.timeline",this.onRoomTimeline),this.context.on("Room.name",this.onRoomName),this.context.on("Room.accountData",this.onRoomAccountData),this.context.on("RoomState.events",this.onRoomStateEvents),this.context.on("RoomState.members",this.onRoomStateMember),this.context.on("Room.myMembership",this.onMyMembership),this.context.on("accountData",this.onAccountData),this.context.on("crypto.keyBackupStatus",this.onKeyBackupStatus),this.context.on("deviceVerificationChanged",this.onDeviceVerificationChanged),this.context.on("userTrustStatusChanged",this.onUserVerificationChanged),this.context.on("crossSigning.keysChanged",this.onCrossSigningKeysChanged),this.context.on("Event.decrypted",this.onEventDecrypted),this.context.on("event",this.onEvent),this.roomStoreToken=x.a.addListener(this.onRoomViewStoreUpdate),this.rightPanelStoreToken=A.a.getSharedInstance().addListener(this.onRightPanelStoreUpdate),k.a.on(Z.b,this.onWidgetEchoStoreUpdate),X.a.instance.on(Z.b,this.onWidgetStoreUpdate),this.showReadReceiptsWatchRef=R.b.watchSetting("showReadReceipts",null,this.onReadReceiptsChange),this.layoutWatcherRef=R.b.watchSetting("layout",null,this.onLayoutChange)}getPermalinkCreatorForRoom(e){return this.permalinkCreators[e.roomId]||(this.permalinkCreators[e.roomId]=new m.a(e),this.state.room&&e.roomId===this.state.room.roomId?this.permalinkCreators[e.roomId].start():this.permalinkCreators[e.roomId].load()),this.permalinkCreators[e.roomId]}stopAllPermalinkCreators(){if(this.permalinkCreators)for(const e of Object.keys(this.permalinkCreators))this.permalinkCreators[e].stop()}setupRoom(e,t,n,o){!n&&t&&(!e&&o?(console.info("Attempting to peek into room %s",t),this.setState({peekLoading:!0,isPeeking:!0}),this.context.peekInRoom(t).then(e=>{this.unmounted||(this.setState({room:e,peekLoading:!1}),this.onRoomLoaded(e))}).catch(e=>{if(!this.unmounted){if(this.setState({isPeeking:!1}),"M_GUEST_ACCESS_FORBIDDEN"!==e.errcode&&"M_FORBIDDEN"!==e.errcode)throw e;this.setState({peekLoading:!1})}})):e&&(this.context.stopPeeking(),this.setState({isPeeking:!1})))}shouldShowApps(e){if(!le||!e)return!1;const t="false"===localStorage.getItem(e.roomId+"_hide_widget_drawer");return oe.d.instance.getContainerWidgets(e,oe.a.Top).length>0||t}componentDidMount(){this.onRoomViewStoreUpdate(!0);const e=this.getCallForRoom(),t=e?e.state:null;this.setState({callState:t}),window.addEventListener("beforeunload",this.onPageUnload),this.props.resizeNotifier&&this.props.resizeNotifier.on("middlePanelResized",this.onResize),this.onResize()}shouldComponentUpdate(e,t){return Object(ie.d)(this.props,e)||Object(ie.d)(this.state,t)}componentDidUpdate(){if(this.roomView.current){const e=this.roomView.current;e.ondrop||(e.addEventListener("drop",this.onDrop),e.addEventListener("dragover",this.onDragOver),e.addEventListener("dragenter",this.onDragEnter),e.addEventListener("dragleave",this.onDragLeave))}this.messagePanel&&!this.state.atEndOfLiveTimelineInit&&this.setState({atEndOfLiveTimelineInit:!0,atEndOfLiveTimeline:this.messagePanel.isAtEndOfLiveTimeline()})}componentWillUnmount(){if(this.unmounted=!0,this.state.roomId&&O.a.setScrollState(this.state.roomId,this.getScrollState()),this.state.shouldPeek&&this.context.stopPeeking(),this.stopAllPermalinkCreators(),this.roomView.current){const e=this.roomView.current;e.removeEventListener("drop",this.onDrop),e.removeEventListener("dragover",this.onDragOver),e.removeEventListener("dragenter",this.onDragEnter),e.removeEventListener("dragleave",this.onDragLeave)}v.a.unregister(this.dispatcherRef),this.context&&(this.context.removeListener("Room",this.onRoom),this.context.removeListener("Room.timeline",this.onRoomTimeline),this.context.removeListener("Room.name",this.onRoomName),this.context.removeListener("Room.accountData",this.onRoomAccountData),this.context.removeListener("RoomState.events",this.onRoomStateEvents),this.context.removeListener("Room.myMembership",this.onMyMembership),this.context.removeListener("RoomState.members",this.onRoomStateMember),this.context.removeListener("accountData",this.onAccountData),this.context.removeListener("crypto.keyBackupStatus",this.onKeyBackupStatus),this.context.removeListener("deviceVerificationChanged",this.onDeviceVerificationChanged),this.context.removeListener("userTrustStatusChanged",this.onUserVerificationChanged),this.context.removeListener("crossSigning.keysChanged",this.onCrossSigningKeysChanged),this.context.removeListener("Event.decrypted",this.onEventDecrypted),this.context.removeListener("event",this.onEvent)),window.removeEventListener("beforeunload",this.onPageUnload),this.props.resizeNotifier&&this.props.resizeNotifier.removeListener("middlePanelResized",this.onResize),this.roomStoreToken&&this.roomStoreToken.remove(),this.rightPanelStoreToken&&this.rightPanelStoreToken.remove(),k.a.removeListener(Z.b,this.onWidgetEchoStoreUpdate),X.a.instance.removeListener(Z.b,this.onWidgetStoreUpdate),this.state.room&&oe.d.instance.off(oe.d.emissionForRoom(this.state.room),this.onWidgetLayoutChange),this.showReadReceiptsWatchRef&&R.b.unwatchSetting(this.showReadReceiptsWatchRef),this.updateRoomMembers.cancelPendingCall(),R.b.unwatchSetting(this.layoutWatcherRef)}async calculateRecommendedVersion(e){this.setState({upgradeRecommendation:await e.getRecommendedVersion()})}async loadMembersIfJoined(e){if(this.context.hasLazyLoadMembersEnabled()&&e&&"join"===e.getMyMembership())try{await e.loadMembersIfNeeded(),this.unmounted||this.setState({membersLoaded:!0})}catch(t){const n=`Fetching room members for ${e.roomId} failed. Room members will appear incomplete.`;console.error(n),console.error(t)}}calculatePeekRules(e){const t=e.currentState.getStateEvents("m.room.guest_access","");t&&"can_join"===t.getContent().guest_access&&this.setState({guestsCanJoin:!0});const n=e.currentState.getStateEvents("m.room.history_visibility","");n&&"world_readable"===n.getContent().history_visibility&&this.setState({canPeek:!0})}updatePreviewUrlVisibility({roomId:e}){const t=this.context.isRoomEncrypted(e)?"urlPreviewsEnabled_e2ee":"urlPreviewsEnabled";this.setState({showUrlPreview:R.b.getValue(t,e)})}async updateE2EStatus(e){this.context.isRoomEncrypted(e.roomId)&&(this.context.isCryptoEnabled()?this.setState({e2eStatus:await Object(P.b)(this.context,e)}):this.setState({e2eStatus:P.a.Warning}))}updateTint(){const e=this.state.room;if(!e)return;console.log("Tinter.tint from updateTint");const t=R.b.getValue("roomColor",e.roomId);y.a.tint(t.primary_color,t.secondary_color)}updatePermissions(e){if(e){const t=this.context.getUserId(),n="join"===e.getMyMembership()&&e.currentState.maySendEvent("m.reaction",t),o=e.maySendMessage();this.setState({canReact:n,canReply:o})}}checkDesktopNotifications(){this.state.room.getJoinedMemberCount()+this.state.room.getInvitedMemberCount()>1&&ee.default.shouldShowPrompt()&&Object(te.b)(!0)}updateDMState(){const e=this.state.room;if("join"!=e.getMyMembership())return;const t=e.getDMInviter();t&&S.c(e.roomId,t)}injectSticker(e,t,n){this.context.isGuest()?v.a.dispatch({action:"require_registration"}):g.a.sharedInstance().sendStickerContentToRoom(e,this.state.room.roomId,t,n,this.context).then(void 0,e=>{e.name})}handleSearchResult(e){const t=this.searchId;return this.setState({searchInProgress:!0}),e.then(e=>{if(ce("search complete"),this.unmounted||!this.state.searching||this.searchId!=t)return void console.error("Discarding stale search results");let n=e.highlights;n.indexOf(this.state.searchTerm)<0&&(n=n.concat(this.state.searchTerm)),n=n.sort((function(e,t){return t.length-e.length})),this.setState({searchHighlights:n,searchResults:e})},e=>{const t=_.getComponent("dialogs.ErrorDialog");console.error("Search failed",e),f.a.createTrackedDialog("Search failed","",t,{title:Object(p.a)("Search failed"),description:e&&e.message?e.message:Object(p.a)("Server may be unavailable, overloaded, or search timed out :(")})}).finally(()=>{this.setState({searchInProgress:!1})})}getSearchResultTiles(){const e=_.getComponent("rooms.SearchResultTile"),t=_.getComponent("elements.Spinner"),n=[];var o,r;(this.state.searchInProgress&&n.push(l.a.createElement("li",{key:"search-spinner"},l.a.createElement(t,null))),this.state.searchResults.next_batch)||(null!==(o=this.state.searchResults)&&void 0!==o&&null!==(r=o.results)&&void 0!==r&&r.length?n.push(l.a.createElement("li",{key:"search-top-marker"},l.a.createElement("h2",{className:"mx_RoomView_topMarker"},Object(p.a)("No more results")))):n.push(l.a.createElement("li",{key:"search-top-marker"},l.a.createElement("h2",{className:"mx_RoomView_topMarker"},Object(p.a)("No results")))));const i=()=>{const e=this.searchResultsPanel.current;e&&e.checkScroll()};let a;for(let t=((null===(s=this.state.searchResults)||void 0===s||null===(c=s.results)||void 0===c?void 0:c.length)||0)-1;t>=0;t--){var s,c;const o=this.state.searchResults.results[t],r=o.context.getEvent(),d=r.getRoomId(),u=this.context.getRoom(d);if(!u){console.log("Hiding search result from an unknown room",d);continue}if(!Object(N.b)(r))continue;"All"===this.state.searchScope&&d!==a&&(n.push(l.a.createElement("li",{key:r.getId()+"-room"},l.a.createElement("h2",null,Object(p.a)("Room"),": ",u.name))),a=d);const h="#/room/"+d+"/"+r.getId();n.push(l.a.createElement(e,{key:r.getId(),searchResult:o,searchHighlights:this.state.searchHighlights,resultLink:h,permalinkCreator:this.getPermalinkCreatorForRoom(u),onHeightChanged:i}))}return n}getScrollState(){const e=this.messagePanel;if(!e)return null;if(this.state.atEndOfLiveTimeline)return null;const t=e.getScrollState();return!t||t.stuckAtBottom?null:{focussedEvent:t.trackedScrollToken,pixelOffset:t.pixelOffset}}getCallForRoom(){return this.state.room?b.c.sharedInstance().getCallForRoom(this.state.room.roomId):null}getOldRoom(){const e=this.state.room.currentState.getStateEvents("m.room.create","");return e&&e.getContent().predecessor?this.context.getRoom(e.getContent().predecessor.room_id):null}getHiddenHighlightCount(){const e=this.getOldRoom();return e?e.getUnreadNotificationCount("highlight"):0}render(){var e;if(!this.state.room){const e=!this.state.matrixClientIsReady||this.state.roomLoading||this.state.peekLoading;if(e){const t=!this.state.matrixClientIsReady||!this.state.roomId||this.state.peekLoading;return l.a.createElement("div",{className:"mx_RoomView"},l.a.createElement(q.a,null,l.a.createElement(G.a,{canPreview:!1,previewLoading:t&&!this.state.roomLoadError,error:this.state.roomLoadError,loading:e,joining:this.state.joining,oobData:this.props.oobData})))}{var t,o;let e=void 0;this.props.oobData&&(e=this.props.oobData.inviterName);const n=null===(t=this.props.threepidInvite)||void 0===t?void 0:t.toEmail,r=this.state.roomAlias;return l.a.createElement("div",{className:"mx_RoomView"},l.a.createElement(q.a,null,l.a.createElement(G.a,{onJoinClick:this.onJoinButtonClicked,onForgetClick:this.onForgetClick,onRejectClick:this.onRejectThreepidInviteButtonClicked,canPreview:!1,error:this.state.roomLoadError,roomAlias:r,joining:this.state.joining,inviterName:e,invitedEmail:n,oobData:this.props.oobData,signUrl:null===(o=this.props.threepidInvite)||void 0===o?void 0:o.signUrl,room:this.state.room})))}}const r=this.state.room.getMyMembership();if("invite"===r&&!this.state.room.isSpaceRoom()){if(this.state.joining||this.state.rejecting)return l.a.createElement(q.a,null,l.a.createElement(G.a,{canPreview:!1,error:this.state.roomLoadError,joining:this.state.joining,rejecting:this.state.rejecting}));{const e=this.context.credentials.userId,t=this.state.room.getMember(e),n=t?t.events.member:null;let o=Object(p.a)("Unknown");return n&&(o=n.sender?n.sender.name:n.getSender()),l.a.createElement("div",{className:"mx_RoomView"},l.a.createElement(q.a,null,l.a.createElement(G.a,{onJoinClick:this.onJoinButtonClicked,onForgetClick:this.onForgetClick,onRejectClick:this.onRejectButtonClicked,onRejectAndIgnoreClick:this.onRejectAndIgnoreClick,inviterName:o,canPreview:!1,joining:this.state.joining,room:this.state.room})))}}let i=null;this.state.draggingFile&&(i=l.a.createElement("div",{className:"mx_RoomView_fileDropTarget"},l.a.createElement("img",{src:n(1340),className:"mx_RoomView_fileDropTarget_image"}),Object(p.a)("Drop file here to upload")));let a=null;{const e=this.getCallForRoom();e&&"ended"!==this.state.callState&&"ringing"!==this.state.callState&&(a=e)}const s=u()({mx_RoomView_scrollheader:!0});let c,d=!0;if(g.a.sharedInstance().getCurrentUploads().length>0){const e=_.getComponent("structures.UploadBar");c=l.a.createElement(e,{room:this.state.room})}else if(!this.state.searchResults){const e=_.getComponent("structures.RoomStatusBar");d=this.state.statusBarVisible,c=l.a.createElement(e,{room:this.state.room,isPeeking:"join"!==r,onInviteClick:this.onInviteButtonClick,onVisible:this.onStatusBarVisible,onHidden:this.onStatusBarHidden})}const h=this.state.upgradeRecommendation,m=h&&h.needsUpgrade&&this.state.room.userMayUpgradeRoom(this.context.credentials.userId),f=this.getHiddenHighlightCount();let b,v=null,y=!1;if(this.state.forwardingEvent)v=l.a.createElement(V.a,{onCancelClick:this.onCancelClick});else if(this.state.searching)y=!0,v=l.a.createElement(H.a,{searchInProgress:this.state.searchInProgress,onCancelClick:this.onCancelSearchClick,onSearch:this.onSearch,isRoomEncrypted:this.context.isRoomEncrypted(this.state.room.roomId)});else if(m)v=l.a.createElement(z.a,{room:this.state.room,recommendation:h}),y=!0;else if(this.state.showingPinned)y=!0,v=l.a.createElement(K.a,{room:this.state.room,onCancelClick:this.onPinnedClick});else if("join"!==r){var E,S;let e=void 0;this.props.oobData&&(e=this.props.oobData.inviterName);const t=null===(E=this.props.threepidInvite)||void 0===E?void 0:E.toEmail;if(y=!0,b=l.a.createElement(G.a,{onJoinClick:this.onJoinButtonClicked,onForgetClick:this.onForgetClick,onRejectClick:this.onRejectThreepidInviteButtonClicked,joining:this.state.joining,inviterName:e,invitedEmail:t,oobData:this.props.oobData,canPreview:this.state.canPeek,room:this.state.room}),!(this.state.canPeek||null!==(S=this.state.room)&&void 0!==S&&S.isSpaceRoom()))return l.a.createElement("div",{className:"mx_RoomView"},b)}else f>0&&(v=l.a.createElement(I.a,{element:"div",className:"mx_RoomView_auxPanel_hiddenHighlights",onClick:this.onHiddenHighlightsClick},Object(p.a)("You have %(count)s unread notifications in a prior version of this room.",{count:f})));if(R.b.getValue("feature_spaces")&&null!==(e=this.state.room)&&void 0!==e&&e.isSpaceRoom())return l.a.createElement(ae.a,{space:this.state.room,justCreatedOpts:this.props.justCreatedOpts,resizeNotifier:this.props.resizeNotifier,onJoinButtonClicked:this.onJoinButtonClicked,onRejectButtonClicked:this.props.threepidInvite?this.onRejectThreepidInviteButtonClicked:this.onRejectButtonClicked});const w=l.a.createElement(W.a,{room:this.state.room,fullHeight:!1,userId:this.context.credentials.userId,maxHeight:this.state.auxPanelMaxHeight,showApps:this.state.showApps,onResize:this.onResize,resizeNotifier:this.props.resizeNotifier},v);let x,O;if("join"===r&&!this.state.searchResults){const e=_.getComponent("rooms.MessageComposer");x=l.a.createElement(e,{room:this.state.room,callState:this.state.callState,showApps:this.state.showApps,e2eStatus:this.state.e2eStatus,resizeNotifier:this.props.resizeNotifier,replyToEvent:this.state.replyToEvent,permalinkCreator:this.getPermalinkCreatorForRoom(this.state.room)})}let k;this.state.searchResults&&(O={searchTerm:this.state.searchTerm,searchScope:this.state.searchScope,searchCount:this.state.searchResults.count});let A=!1;this.state.searchResults&&(k=void 0===this.state.searchResults.count?l.a.createElement("div",{className:"mx_RoomView_messagePanel mx_RoomView_messagePanelSearchSpinner"}):l.a.createElement(U.a,{ref:this.searchResultsPanel,className:"mx_RoomView_messagePanel mx_RoomView_searchResultsPanel mx_GroupLayout",onFillRequest:this.onSearchResultsFillRequest,resizeNotifier:this.props.resizeNotifier},l.a.createElement("li",{className:s}),this.getSearchResultTiles()),A=!0);const N=this.state.isInitialEventHighlighted;let M=null;this.state.forwardingEvent?M=this.state.forwardingEvent.getId():N&&(M=this.state.initialEventId);const P=u()("mx_RoomView_messagePanel",{mx_IRCLayout:this.state.layout==D.a.IRC,mx_GroupLayout:this.state.layout==D.a.Group}),L=l.a.createElement(B.a,{ref:this.gatherTimelinePanelRef,timelineSet:this.state.room.getUnfilteredTimelineSet(),showReadReceipts:this.state.showReadReceipts,manageReadReceipts:!this.state.isPeeking,manageReadMarkers:!this.state.isPeeking,hidden:A,highlightedEventId:M,eventId:this.state.initialEventId,eventPixelOffset:this.state.initialEventPixelOffset,onScroll:this.onMessageListScroll,onReadMarkerUpdated:this.updateTopUnreadMessagesBar,showUrlPreview:this.state.showUrlPreview,className:P,membersLoaded:this.state.membersLoaded,permalinkCreator:this.getPermalinkCreatorForRoom(this.state.room),resizeNotifier:this.props.resizeNotifier,showReactions:!0,layout:this.state.layout});let j,Q=null;if(this.state.showTopUnreadMessagesBar&&!this.state.searchResults){const e=_.getComponent("rooms.TopUnreadMessagesBar");Q=l.a.createElement(e,{onScrollUpClick:this.jumpToReadMarker,onCloseClick:this.forgetReadMarker})}if(!this.state.atEndOfLiveTimeline&&!this.state.searchResults){const e=_.getComponent("rooms.JumpToBottomButton");j=l.a.createElement(e,{highlight:this.state.room.getUnreadNotificationCount("highlight")>0,numUnreadMessages:this.state.numUnreadMessages,onScrollToBottomClick:this.jumpToLiveTimeline})}const J=u()("mx_RoomView_statusArea",{mx_RoomView_statusArea_expanded:d}),X=this.state.room&&this.state.showRightPanel?l.a.createElement(T.a,{room:this.state.room,resizeNotifier:this.props.resizeNotifier}):null,Z=u()("mx_RoomView_timeline",{mx_RoomView_timeline_rr_enabled:this.state.showReadReceipts}),ee=u()("mx_RoomView",{mx_RoomView_inCall:Boolean(a)}),te=R.b.getValue("showChatEffects");return l.a.createElement(F.a.Provider,{value:this.state},l.a.createElement("main",{className:ee,ref:this.roomView,onKeyDown:this.onReactKeyDown},te&&this.roomView.current&&l.a.createElement($.a,{roomWidth:this.roomView.current.offsetWidth}),l.a.createElement(q.a,null,l.a.createElement(Y.a,{room:this.state.room,searchInfo:O,oobData:this.props.oobData,inRoom:"join"===r,onSearchClick:this.onSearchClick,onSettingsClick:this.onSettingsClick,onPinnedClick:this.onPinnedClick,onCancelClick:v&&!y?this.onCancelClick:null,onForgetClick:"leave"===r?this.onForgetClick:null,onLeaveClick:"join"===r?this.onLeaveClick:null,e2eStatus:this.state.e2eStatus,onAppsClick:this.state.hasPinnedWidgets?this.onAppsClick:null,appsShown:this.state.showApps,onCallPlaced:this.onCallPlaced}),l.a.createElement(C.a,{panel:X,resizeNotifier:this.props.resizeNotifier},l.a.createElement("div",{className:"mx_RoomView_body"},w,l.a.createElement("div",{className:Z},i,Q,j,L,k),l.a.createElement("div",{className:J},l.a.createElement("div",{className:"mx_RoomView_statusAreaBox"},l.a.createElement("div",{className:"mx_RoomView_statusAreaBox_line"}),c)),b,x)))))}},s()(r,"contextType",M.a),o=i))||o}).call(this,n(160).setImmediate)},function(e,t,n){var o=n(1308);e.exports=function(e){if(137!==e[0])throw new Error("Invalid .png file header");if(80!==e[1])throw new Error("Invalid .png file header");if(78!==e[2])throw new Error("Invalid .png file header");if(71!==e[3])throw new Error("Invalid .png file header");if(13!==e[4])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(10!==e[5])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");if(26!==e[6])throw new Error("Invalid .png file header");if(10!==e[7])throw new Error("Invalid .png file header: possibly caused by DOS-Unix line ending conversion?");var t=!1,n=[],s=8;for(;s<e.length;){r[3]=e[s++],r[2]=e[s++],r[1]=e[s++],r[0]=e[s++];var c=a[0]+4,l=new Uint8Array(c);l[0]=e[s++],l[1]=e[s++],l[2]=e[s++],l[3]=e[s++];var d=String.fromCharCode(l[0])+String.fromCharCode(l[1])+String.fromCharCode(l[2])+String.fromCharCode(l[3]);if(!n.length&&"IHDR"!==d)throw new Error("IHDR header missing");if("IEND"===d){t=!0,n.push({name:d,data:new Uint8Array(0)});break}for(var u=4;u<c;u++)l[u]=e[s++];r[3]=e[s++],r[2]=e[s++],r[1]=e[s++],r[0]=e[s++];var h=i[0];if(o.buf(l)!==h)throw new Error("CRC values for "+d+" header do not match, PNG file is likely corrupted");var p=new Uint8Array(l.buffer.slice(4));n.push({name:d,data:p})}if(!t)throw new Error(".png file ended prematurely: no IEND header was found");return n};var r=new Uint8Array(4),i=new Int32Array(r.buffer),a=new Uint32Array(r.buffer)},function(e,t,n){(function(e){var n;n=function(t){t.version="0.3.0";var n=function(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=n)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),o=void 0!==e;function r(e){for(var t=-1,o=0,r=e.length-7;o<r;)t=(t=(t=(t=(t=(t=(t=(t=t>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])];for(;o<r+7;)t=t>>>8^n[255&(t^e[o++])];return-1^t}t.table=n,t.bstr=function(t){if(t.length>32768&&o)return r(new e(t));for(var i=-1,a=t.length-1,s=0;s<a;)i=n[255&(i^t.charCodeAt(s++))]^i>>>8,i=n[255&(i^t.charCodeAt(s++))]^i>>>8;return s===a&&(i=i>>>8^n[255&(i^t.charCodeAt(s))]),-1^i},t.buf=function(e){if(e.length>1e4)return r(e);for(var t=-1,o=0,i=e.length-3;o<i;)t=(t=(t=(t=t>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])])>>>8^n[255&(t^e[o++])];for(;o<i+3;)t=t>>>8^n[255&(t^e[o++])];return-1^t},t.str=function(e){for(var t,o,r=-1,i=0,a=e.length;i<a;)(t=e.charCodeAt(i++))<128?r=r>>>8^n[255&(r^t)]:t<2048?r=(r=r>>>8^n[255&(r^(192|t>>6&31))])>>>8^n[255&(r^(128|63&t))]:t>=55296&&t<57344?(t=64+(1023&t),o=1023&e.charCodeAt(i++),r=(r=(r=(r=r>>>8^n[255&(r^(240|t>>8&7))])>>>8^n[255&(r^(128|t>>2&63))])>>>8^n[255&(r^(128|o>>6&15|3&t))])>>>8^n[255&(r^(128|63&o))]):r=(r=(r=r>>>8^n[255&(r^(224|t>>12&15))])>>>8^n[255&(r^(128|t>>6&63))])>>>8^n[255&(r^(128|63&t))];return-1^r}},"undefined"==typeof DO_NOT_EXPORT_CRC?n(t):n({})}).call(this,n(32).Buffer)},function(e,t,n){var o;!function(r){"use strict";var i=r.HTMLCanvasElement&&r.HTMLCanvasElement.prototype,a=r.Blob&&function(){try{return Boolean(new Blob)}catch(e){return!1}}(),s=a&&r.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(e){return!1}}(),c=r.BlobBuilder||r.WebKitBlobBuilder||r.MozBlobBuilder||r.MSBlobBuilder,l=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,d=(a||c)&&r.atob&&r.ArrayBuffer&&r.Uint8Array&&function(e){var t,n,o,r,i,d,u,h,p;if(!(t=e.match(l)))throw new Error("invalid data URI");for(n=t[2]?t[1]:"text/plain"+(t[3]||";charset=US-ASCII"),o=!!t[4],r=e.slice(t[0].length),i=o?atob(r):decodeURIComponent(r),d=new ArrayBuffer(i.length),u=new Uint8Array(d),h=0;h<i.length;h+=1)u[h]=i.charCodeAt(h);return a?new Blob([s?u:d],{type:n}):((p=new c).append(d),p.getBlob(n))};r.HTMLCanvasElement&&!i.toBlob&&(i.mozGetAsFile?i.toBlob=function(e,t,n){var o=this;setTimeout((function(){n&&i.toDataURL&&d?e(d(o.toDataURL(t,n))):e(o.mozGetAsFile("blob",t))}))}:i.toDataURL&&d&&(i.msToBlob?i.toBlob=function(e,t,n){var o=this;setTimeout((function(){(t&&"image/png"!==t||n)&&i.toDataURL&&d?e(d(o.toDataURL(t,n))):e(o.msToBlob(t))}))}:i.toBlob=function(e,t,n){var o=this;setTimeout((function(){e(d(o.toDataURL(t,n)))}))})),void 0===(o=function(){return d}.call(t,n,t,e))||(e.exports=o)}(window)},function(e,t,n){"use strict";n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return f}));var o=n(222),r=n(88);async function i(e,t){const n=r.a.get(),o={limit:10};void 0!==t&&(o.rooms=[t]);const i={search_categories:{room_events:{search_term:e,filter:o,order_by:"recent",event_context:{before_limit:1,after_limit:1,include_profile:!0}}}};return{response:await n.search({body:i}),query:i}}async function a(e,t){const n=r.a.get(),o=await i(e,t),a={_query:o.query,results:[],highlights:[]};return n._processRoomEventsSearch(a,o.response)}function s(e,t){const n=e.result,o=t.result;return n.origin_server_ts>o.origin_server_ts?-1:n.origin_server_ts<o.origin_server_ts?1:0}async function c(e,t,n=!0){const r=o.a.get(),i={search_term:e,before_limit:1,after_limit:1,limit:10,order_by_recency:!0,room_id:void 0};void 0!==t&&(i.room_id=t);const a=await r.search(i);i.next_batch=a.next_batch;return{response:a,query:i}}function l(e,t){try{const n=e.results[e.results.length-1].result,o=t.results[t.results.length-1].result;return n.origin_server_ts<=o.origin_server_ts?-1:1}catch{return 0}}function d(e,t,n,o){const r=n.concat(o).sort(s);t.results=r.slice(0,10),e.cachedEvents=r.slice(10)}function u(e,t,n){const o=function(e,t,n){const o={},r=e.cachedEvents;let i=e.oldestEventFrom;return o.highlights=e.highlights,t&&n&&n.results?(l(t,n)<0&&(i="local"),d(e,o,t.results,n.results),o.highlights=t.highlights.concat(n.highlights)):t?(l(t,r)<0&&(i="local"),d(e,o,t.results,r)):n&&n.results?(l(n,r)<0&&(i="server"),d(e,o,n.results,r)):(o.results=r,e.cachedEvents=[]),e.oldestEventFrom=i,o}(e,t,n);return e.count?o.count=e.count:o.count=t.count+n.count,t&&(e.seshatQuery.next_batch=t.next_batch),n&&(e.serverSideNextBatch=n.next_batch),e.seshatQuery.next_batch?o.next_batch=e.seshatQuery.next_batch:e.serverSideNextBatch&&(o.next_batch=e.serverSideNextBatch),!o.next_batch&&e.cachedEvents.length>0&&(o.next_batch="cached"),o}function h(e=[]){for(let t=0;t<e.length;t++){const n=e[t].context.getTimeline();for(let e=0;e<n.length;e++){const t=n[e];t.event.curve25519Key&&(t.makeEncrypted("m.room.encrypted",{algorithm:t.event.algorithm},t.event.curve25519Key,t.event.ed25519Key),t._forwardingCurve25519KeyChain=t.event.forwardingCurve25519KeyChain,delete t.event.curve25519Key,delete t.event.ed25519Key,delete t.event.algorithm,delete t.event.forwardingCurve25519KeyChain)}}}function p(e,t){let n;return n=void 0!==t?r.a.get().isRoomEncrypted(t)?async function(e,t){const n={results:[],highlights:[]};if(""===e)return n;const o=await c(e,t);n.seshatQuery=o.query;const i={search_categories:{room_events:o.response}},a=r.a.get()._processRoomEventsSearch(n,i);return h(a.results),a}(e,t):a(e,t):async function(e){const t=r.a.get(),n=i(e),o=c(e);await Promise.all([n,o]);const a=await o,s=await n,l=s.query,d=s.response,p=a.query,m=a.response,g={seshatQuery:p,_query:l,serverSideNextBatch:d.next_batch,cachedEvents:[],oldestEventFrom:"server",results:[],highlights:[]},f={search_categories:{room_events:u(g,m,d.search_categories.room_events)}},_=t._processRoomEventsSearch(g,f);return h(_.results),_}(e),n}function m(e){const t=r.a.get(),n=e.seshatQuery,i=e._query;if(n){if(i){const t=async function(e){const t=o.a.get(),n=r.a.get(),i=e.seshatQuery,a=e.oldestEventFrom;let s,c,l;if(!i.next_batch||e.serverSideNextBatch&&"server"!==a||(s=await t.search(i)),e.serverSideNextBatch&&("local"===a||!i.next_batch)){const t={body:e._query,next_batch:e.serverSideNextBatch};c=await n.search(t)}c&&(l=c.search_categories.room_events);const d={search_categories:{room_events:u(e,s,l)}},p=e.results?e.results.length:0,m=n._processRoomEventsSearch(e,d),g=m.results.length-p;return h(m.results.slice(Math.max(m.results.length-g,0))),e.pendingRequest=null,m}(e);return e.pendingRequest=t,t}{const t=async function(e){const t=o.a.get(),n=e.seshatQuery,i=await t.search(n);e.seshatQuery.next_batch=i.next_batch;const a=i.results.length,s={search_categories:{room_events:i}},c=r.a.get()._processRoomEventsSearch(e,s);return h(c.results.slice(Math.max(c.results.length-a,0))),e.pendingRequest=null,c}(e);return e.pendingRequest=t,t}}return t.backPaginateRoomEventsSearch(e)}function g(e){const t=o.a.get(),n=r.a.get();return e.pendingRequest?e.pendingRequest:null===t?n.backPaginateRoomEventsSearch(e):m(e)}function f(e,t){return null===o.a.get()?a(e,t):p(e,t)}},function(e,t,n){var o=n(1312),r=n(1313),i=n(1330),a=n(1331);function s(e,t,n,i,a){var s=[].slice.call(arguments,1),c=s.length,l="function"==typeof s[c-1];if(!l&&!o())throw new Error("Callback required as last argument");if(!l){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=t,t=i=void 0):2!==c||t.getContext||(i=n,n=t,t=void 0),new Promise((function(o,a){try{var s=r.create(n,i);o(e(s,t,i))}catch(e){a(e)}}))}if(c<2)throw new Error("Too few arguments provided");2===c?(a=n,n=t,t=i=void 0):3===c&&(t.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=n,n=t,t=void 0));try{var d=r.create(n,i);a(null,e(d,t,i))}catch(e){a(e)}}t.create=r.create,t.toCanvas=s.bind(null,i.render),t.toDataURL=s.bind(null,i.renderToDataURL),t.toString=s.bind(null,(function(e,t,n){return a.render(e,n)}))},function(e,t){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},function(e,t,n){var o=n(261),r=n(225),i=n(477),a=n(1314),s=n(1315),c=n(1316),l=n(1317),d=n(1318),u=n(706),h=n(1319),p=n(1322),m=n(1323),g=n(226),f=n(1324),_=n(476);function b(e,t,n){var o,r,i=e.size,a=m.getEncodedBits(t,n);for(o=0;o<15;o++)r=1==(a>>o&1),o<6?e.set(o,8,r,!0):o<8?e.set(o+1,8,r,!0):e.set(i-15+o,8,r,!0),o<8?e.set(8,i-o-1,r,!0):o<9?e.set(8,15-o-1+1,r,!0):e.set(8,15-o-1,r,!0);e.set(i-8,8,1,!0)}function v(e,t,n){var i=new a;n.forEach((function(t){i.put(t.mode.bit,4),i.put(t.getLength(),g.getCharCountIndicator(t.mode,e)),t.write(i)}));var s=8*(r.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t));for(i.getLengthInBits()+4<=s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);for(var c=(s-i.getLengthInBits())/8,l=0;l<c;l++)i.put(l%2?17:236,8);return function(e,t,n){for(var i=r.getSymbolTotalCodewords(t),a=u.getTotalCodewordsCount(t,n),s=i-a,c=u.getBlocksCount(t,n),l=c-i%c,d=Math.floor(i/c),p=Math.floor(s/c),m=p+1,g=d-p,f=new h(g),_=0,b=new Array(c),v=new Array(c),y=0,E=o.from(e.buffer),S=0;S<c;S++){var w=S<l?p:m;b[S]=E.slice(_,_+w),v[S]=f.encode(b[S]),_+=w,y=Math.max(y,w)}var C,T,x=o.alloc(i),O=0;for(C=0;C<y;C++)for(T=0;T<c;T++)C<b[T].length&&(x[O++]=b[T][C]);for(C=0;C<g;C++)for(T=0;T<c;T++)x[O++]=v[T][C];return x}(i,e,t)}function y(e,t,n,o){var i;if(_(e))i=f.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");var a=t;if(!a){var u=f.rawSplit(e);a=p.getBestVersionForData(u,n)}i=f.fromString(e,a||40)}var h=p.getBestVersionForData(i,n);if(!h)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<h)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+h+".\n")}else t=h;var m=v(t,n,i),g=r.getSymbolSize(t),y=new s(g);return function(e,t){for(var n=e.size,o=l.getPositions(t),r=0;r<o.length;r++)for(var i=o[r][0],a=o[r][1],s=-1;s<=7;s++)if(!(i+s<=-1||n<=i+s))for(var c=-1;c<=7;c++)a+c<=-1||n<=a+c||(s>=0&&s<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===s||6===s)||s>=2&&s<=4&&c>=2&&c<=4?e.set(i+s,a+c,!0,!0):e.set(i+s,a+c,!1,!0))}(y,t),function(e){for(var t=e.size,n=8;n<t-8;n++){var o=n%2==0;e.set(n,6,o,!0),e.set(6,n,o,!0)}}(y),function(e,t){for(var n=c.getPositions(t),o=0;o<n.length;o++)for(var r=n[o][0],i=n[o][1],a=-2;a<=2;a++)for(var s=-2;s<=2;s++)-2===a||2===a||-2===s||2===s||0===a&&0===s?e.set(r+a,i+s,!0,!0):e.set(r+a,i+s,!1,!0)}(y,t),b(y,n,0),t>=7&&function(e,t){for(var n,o,r,i=e.size,a=p.getEncodedBits(t),s=0;s<18;s++)n=Math.floor(s/3),o=s%3+i-8-3,r=1==(a>>s&1),e.set(n,o,r,!0),e.set(o,n,r,!0)}(y,t),function(e,t){for(var n=e.size,o=-1,r=n-1,i=7,a=0,s=n-1;s>0;s-=2)for(6===s&&s--;;){for(var c=0;c<2;c++)if(!e.isReserved(r,s-c)){var l=!1;a<t.length&&(l=1==(t[a]>>>i&1)),e.set(r,s-c,l),-1===--i&&(a++,i=7)}if((r+=o)<0||n<=r){r-=o,o=-o;break}}}(y,m),isNaN(o)&&(o=d.getBestMask(y,b.bind(null,y,n))),d.applyMask(o,y),b(y,n,o),{modules:y,version:t,errorCorrectionLevel:n,maskPattern:o,segments:i}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");var n,o,a=i.M;return void 0!==t&&(a=i.from(t.errorCorrectionLevel,i.M),n=p.from(t.version),o=d.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),y(e,n,a,o)}},function(e,t){function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=n},function(e,t,n){var o=n(261);function r(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=o.alloc(e*e),this.reservedBit=o.alloc(e*e)}r.prototype.set=function(e,t,n,o){var r=e*this.size+t;this.data[r]=n,o&&(this.reservedBit[r]=!0)},r.prototype.get=function(e,t){return this.data[e*this.size+t]},r.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},r.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=r},function(e,t,n){var o=n(225).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];for(var t=Math.floor(e/7)+2,n=o(e),r=145===n?26:2*Math.ceil((n-13)/(2*t-2)),i=[n-7],a=1;a<t-1;a++)i[a]=i[a-1]-r;return i.push(6),i.reverse()},t.getPositions=function(e){for(var n=[],o=t.getRowColCoords(e),r=o.length,i=0;i<r;i++)for(var a=0;a<r;a++)0===i&&0===a||0===i&&a===r-1||i===r-1&&0===a||n.push([o[i],o[a]]);return n}},function(e,t,n){var o=n(225).getSymbolSize;t.getPositions=function(e){var t=o(e);return[[0,0],[t-7,0],[0,t-7]]}},function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var n=3,o=3,r=40,i=10;function a(e,n,o){switch(e){case t.Patterns.PATTERN000:return(n+o)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return o%3==0;case t.Patterns.PATTERN011:return(n+o)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(o/3))%2==0;case t.Patterns.PATTERN101:return n*o%2+n*o%3==0;case t.Patterns.PATTERN110:return(n*o%2+n*o%3)%2==0;case t.Patterns.PATTERN111:return(n*o%3+(n+o)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,o=0,r=0,i=0,a=null,s=null,c=0;c<t;c++){r=i=0,a=s=null;for(var l=0;l<t;l++){var d=e.get(c,l);d===a?r++:(r>=5&&(o+=n+(r-5)),a=d,r=1),(d=e.get(l,c))===s?i++:(i>=5&&(o+=n+(i-5)),s=d,i=1)}r>=5&&(o+=n+(r-5)),i>=5&&(o+=n+(i-5))}return o},t.getPenaltyN2=function(e){for(var t=e.size,n=0,r=0;r<t-1;r++)for(var i=0;i<t-1;i++){var a=e.get(r,i)+e.get(r,i+1)+e.get(r+1,i)+e.get(r+1,i+1);4!==a&&0!==a||n++}return n*o},t.getPenaltyN3=function(e){for(var t=e.size,n=0,o=0,i=0,a=0;a<t;a++){o=i=0;for(var s=0;s<t;s++)o=o<<1&2047|e.get(a,s),s>=10&&(1488===o||93===o)&&n++,i=i<<1&2047|e.get(s,a),s>=10&&(1488===i||93===i)&&n++}return n*r},t.getPenaltyN4=function(e){for(var t=0,n=e.data.length,o=0;o<n;o++)t+=e.data[o];return Math.abs(Math.ceil(100*t/n/5)-10)*i},t.applyMask=function(e,t){for(var n=t.size,o=0;o<n;o++)for(var r=0;r<n;r++)t.isReserved(r,o)||t.xor(r,o,a(e,r,o))},t.getBestMask=function(e,n){for(var o=Object.keys(t.Patterns).length,r=0,i=1/0,a=0;a<o;a++){n(a),t.applyMask(a,e);var s=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),s<i&&(i=s,r=a)}return r}},function(e,t,n){var o=n(261),r=n(1320),i=n(32).Buffer;function a(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},a.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var t=o.alloc(this.degree),n=i.concat([e,t],e.length+this.degree),a=r.mod(n,this.genPoly),s=this.degree-a.length;if(s>0){var c=o.alloc(this.degree);return a.copy(c,s),c}return a},e.exports=a},function(e,t,n){var o=n(261),r=n(1321);t.mul=function(e,t){for(var n=o.alloc(e.length+t.length-1),i=0;i<e.length;i++)for(var a=0;a<t.length;a++)n[i+a]^=r.mul(e[i],t[a]);return n},t.mod=function(e,t){for(var n=o.from(e);n.length-t.length>=0;){for(var i=n[0],a=0;a<t.length;a++)n[a]^=r.mul(t[a],i);for(var s=0;s<n.length&&0===n[s];)s++;n=n.slice(s)}return n},t.generateECPolynomial=function(e){for(var n=o.from([1]),i=0;i<e;i++)n=t.mul(n,[1,r.exp(i)]);return n}},function(e,t,n){var o=n(261),r=o.alloc(512),i=o.alloc(256);!function(){for(var e=1,t=0;t<255;t++)r[t]=e,i[e]=t,256&(e<<=1)&&(e^=285);for(t=255;t<512;t++)r[t]=r[t-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return i[e]},t.exp=function(e){return r[e]},t.mul=function(e,t){return 0===e||0===t?0:r[i[e]+i[t]]}},function(e,t,n){var o=n(225),r=n(706),i=n(477),a=n(226),s=n(707),c=n(476),l=o.getBCHDigit(7973);function d(e,t){return a.getCharCountIndicator(e,t)+4}function u(e,t){var n=0;return e.forEach((function(e){var o=d(e.mode,t);n+=o+e.getBitsLength()})),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");void 0===n&&(n=a.BYTE);var i=8*(o.getSymbolTotalCodewords(e)-r.getTotalCodewordsCount(e,t));if(n===a.MIXED)return i;var c=i-d(n,e);switch(n){case a.NUMERIC:return Math.floor(c/10*3);case a.ALPHANUMERIC:return Math.floor(c/11*2);case a.KANJI:return Math.floor(c/13);case a.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,n){var o,r=i.from(n,i.M);if(c(e)){if(e.length>1)return function(e,n){for(var o=1;o<=40;o++){if(u(e,o)<=t.getCapacity(o,n,a.MIXED))return o}}(e,r);if(0===e.length)return 1;o=e[0]}else o=e;return function(e,n,o){for(var r=1;r<=40;r++)if(n<=t.getCapacity(r,o,e))return r}(o.mode,o.getLength(),r)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;o.getBCHDigit(t)-l>=0;)t^=7973<<o.getBCHDigit(t)-l;return e<<12|t}},function(e,t,n){var o=n(225),r=o.getBCHDigit(1335);t.getEncodedBits=function(e,t){for(var n=e.bit<<3|t,i=n<<10;o.getBCHDigit(i)-r>=0;)i^=1335<<o.getBCHDigit(i)-r;return 21522^(n<<10|i)}},function(e,t,n){var o=n(226),r=n(1325),i=n(1326),a=n(1327),s=n(1328),c=n(708),l=n(225),d=n(1329);function u(e){return unescape(encodeURIComponent(e)).length}function h(e,t,n){for(var o,r=[];null!==(o=e.exec(n));)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function p(e){var t,n,r=h(c.NUMERIC,o.NUMERIC,e),i=h(c.ALPHANUMERIC,o.ALPHANUMERIC,e);return l.isKanjiModeEnabled()?(t=h(c.BYTE,o.BYTE,e),n=h(c.KANJI,o.KANJI,e)):(t=h(c.BYTE_KANJI,o.BYTE,e),n=[]),r.concat(i,t,n).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function m(e,t){switch(t){case o.NUMERIC:return r.getBitsLength(e);case o.ALPHANUMERIC:return i.getBitsLength(e);case o.KANJI:return s.getBitsLength(e);case o.BYTE:return a.getBitsLength(e)}}function g(e,t){var n,c=o.getBestModeForData(e);if((n=o.from(t,c))!==o.BYTE&&n.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+o.toString(n)+".\n Suggested mode is: "+o.toString(c));switch(n!==o.KANJI||l.isKanjiModeEnabled()||(n=o.BYTE),n){case o.NUMERIC:return new r(e);case o.ALPHANUMERIC:return new i(e);case o.KANJI:return new s(e);case o.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce((function(e,t){return"string"==typeof t?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e}),[])},t.fromString=function(e,n){for(var r=function(e,t){for(var n={},r={start:{}},i=["start"],a=0;a<e.length;a++){for(var s=e[a],c=[],l=0;l<s.length;l++){var d=s[l],u=""+a+l;c.push(u),n[u]={node:d,lastCount:0},r[u]={};for(var h=0;h<i.length;h++){var p=i[h];n[p]&&n[p].node.mode===d.mode?(r[p][u]=m(n[p].lastCount+d.length,d.mode)-m(n[p].lastCount,d.mode),n[p].lastCount+=d.length):(n[p]&&(n[p].lastCount=d.length),r[p][u]=m(d.length,d.mode)+4+o.getCharCountIndicator(d.mode,t))}}i=c}for(h=0;h<i.length;h++)r[i[h]].end=0;return{map:r,table:n}}(function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];switch(r.mode){case o.NUMERIC:t.push([r,{data:r.data,mode:o.ALPHANUMERIC,length:r.length},{data:r.data,mode:o.BYTE,length:r.length}]);break;case o.ALPHANUMERIC:t.push([r,{data:r.data,mode:o.BYTE,length:r.length}]);break;case o.KANJI:t.push([r,{data:r.data,mode:o.BYTE,length:u(r.data)}]);break;case o.BYTE:t.push([{data:r.data,mode:o.BYTE,length:u(r.data)}])}}return t}(p(e,l.isKanjiModeEnabled())),n),i=d.find_path(r.map,"start","end"),a=[],s=1;s<i.length-1;s++)a.push(r.table[i[s]].node);return t.fromArray(function(e){return e.reduce((function(e,t){var n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(a))},t.rawSplit=function(e){return t.fromArray(p(e,l.isKanjiModeEnabled()))}},function(e,t,n){var o=n(226);function r(e){this.mode=o.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){var t,n,o;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),o=parseInt(n,10),e.put(o,10);var r=this.data.length-t;r>0&&(n=this.data.substr(t),o=parseInt(n,10),e.put(o,3*r+1))},e.exports=r},function(e,t,n){var o=n(226),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(e){this.mode=o.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){var t;for(t=0;t+2<=this.data.length;t+=2){var n=45*r.indexOf(this.data[t]);n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},e.exports=i},function(e,t,n){var o=n(261),r=n(226);function i(e){this.mode=r.BYTE,this.data=o.from(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(var t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=i},function(e,t,n){var o=n(226),r=n(225);function i(e){this.mode=o.KANJI,this.data=e}i.getBitsLength=function(e){return 13*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){var t;for(t=0;t<this.data.length;t++){var n=r.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=i},function(e,t,n){"use strict";var o={single_source_shortest_paths:function(e,t,n){var r={},i={};i[t]=0;var a,s,c,l,d,u,h,p=o.PriorityQueue.make();for(p.push(t,0);!p.empty();)for(c in s=(a=p.pop()).value,l=a.cost,d=e[s]||{})d.hasOwnProperty(c)&&(u=l+d[c],h=i[c],(void 0===i[c]||h>u)&&(i[c]=u,p.push(c,u),r[c]=s));if(void 0!==n&&void 0===i[n]){var m=["Could not find a path from ",t," to ",n,"."].join("");throw new Error(m)}return r},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],o=t;o;)n.push(o),e[o],o=e[o];return n.reverse(),n},find_path:function(e,t,n){var r=o.single_source_shortest_paths(e,t,n);return o.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(e){var t,n=o.PriorityQueue,r={};for(t in e=e||{},n)n.hasOwnProperty(t)&&(r[t]=n[t]);return r.queue=[],r.sorter=e.sorter||n.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=o},function(e,t,n){var o=n(709);t.render=function(e,t,n){var r=n,i=t;void 0!==r||t&&t.getContext||(r=t,t=void 0),t||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),r=o.getOptions(r);var a=o.getImageWidth(e.modules.size,r),s=i.getContext("2d"),c=s.createImageData(a,a);return o.qrToImageData(c.data,e,r),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,i,a),s.putImageData(c,0,0),i},t.renderToDataURL=function(e,n,o){var r=o;void 0!==r||n&&n.getContext||(r=n,n=void 0),r||(r={});var i=t.render(e,n,r),a=r.type||"image/png",s=r.rendererOpts||{};return i.toDataURL(a,s.quality)}},function(e,t,n){var o=n(709);function r(e,t){var n=e.a/255,o=t+'="'+e.hex+'"';return n<1?o+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':o}function i(e,t,n){var o=e+t;return void 0!==n&&(o+=" "+n),o}t.render=function(e,t,n){var a=o.getOptions(t),s=e.modules.size,c=e.modules.data,l=s+2*a.margin,d=a.color.light.a?"<path "+r(a.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",u="<path "+r(a.color.dark,"stroke")+' d="'+function(e,t,n){for(var o="",r=0,a=!1,s=0,c=0;c<e.length;c++){var l=Math.floor(c%t),d=Math.floor(c/t);l||a||(a=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(o+=a?i("M",l+n,.5+d+n):i("m",r,0),r=0,a=!1),l+1<t&&e[c+1]||(o+=i("h",s),s=0)):r++}return o}(c,s,a.margin)+'"/>',h='viewBox="0 0 '+l+" "+l+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+h+' shape-rendering="crispEdges">'+d+u+"</svg>\n";return"function"==typeof n&&n(null,p),p}},function(e,t){e.exports="img/social/facebook.d547f79.png"},function(e,t){e.exports="img/social/twitter-2.6517b36.png"},function(e,t){e.exports="img/social/linkedin.ab157f6.png"},function(e,t){e.exports="img/social/reddit.eeab8e6.png"},function(e,t){e.exports="img/social/email-1.1134895.png"},function(e,t,n){"use strict";(function(e){class n{constructor(){this._scrollStateMap={}}getScrollState(e){return this._scrollStateMap[e]}setScrollState(e,t){this._scrollStateMap[e]=t}}void 0===e.mx_RoomScrollStateStore&&(e.mx_RoomScrollStateStore=new n),t.a=e.mx_RoomScrollStateStore}).call(this,n(6))},function(e,t){e.exports="img/cancel-red.3d9df3d.svg"},,function(e,t){e.exports="img/upload-big.cdac3ea.svg"},function(e,t){e.exports="img/element-icons/brands/apple.5160971.svg"},function(e,t){e.exports="img/element-icons/brands/facebook.c3243cf.svg"},function(e,t){e.exports="img/element-icons/brands/github.bf60283.svg"},function(e,t){e.exports="img/element-icons/brands/gitlab.d4ee177.svg"},function(e,t){e.exports="img/element-icons/brands/google.04f5e48.svg"},function(e,t){e.exports="img/element-icons/brands/twitter.892d1c7.svg"},function(e,t){e.exports="img/download.4f331f0.svg"},function(e,t,n){"undefined"!=typeof self&&self,e.exports=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";(function(t){var n=t.AudioContext||t.webkitAudioContext,o=function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e.isRecordingSupported())throw new Error("Recording is not supported in this browser");this.state="inactive",this.config=Object.assign({bufferLength:4096,encoderApplication:2049,encoderFrameSize:20,encoderPath:"encoderWorker.min.js",encoderSampleRate:48e3,maxFramesPerPage:40,mediaTrackConstraints:!0,monitorGain:0,numberOfChannels:1,recordingGain:1,resampleQuality:3,streamPages:!1,wavBitDepth:16,sourceNode:{context:null}},n),this.encodedSamplePosition=0,this.initAudioContext(),this.initialize=this.initWorklet().then((function(){return t.initEncoder()}))};o.isRecordingSupported=function(){var e=t.navigator&&t.navigator.mediaDevices&&t.navigator.mediaDevices.getUserMedia;return n&&e&&t.WebAssembly},o.version="8.0.3",o.prototype.clearStream=function(){this.stream&&(this.stream.getTracks?this.stream.getTracks().forEach((function(e){return e.stop()})):this.stream.stop())},o.prototype.close=function(){return this.monitorGainNode.disconnect(),this.recordingGainNode.disconnect(),this.sourceNode&&this.sourceNode.disconnect(),this.clearStream(),this.encoder&&(this.encoderNode.disconnect(),this.encoder.postMessage({command:"close"})),this.config.sourceNode.context?Promise.resolve():this.audioContext.close()},o.prototype.encodeBuffers=function(e){if("recording"===this.state){for(var t=[],n=0;n<e.numberOfChannels;n++)t[n]=e.getChannelData(n);this.encoder.postMessage({command:"encode",buffers:t})}},o.prototype.initAudioContext=function(){this.audioContext=this.config.sourceNode.context?this.config.sourceNode.context:new n,this.monitorGainNode=this.audioContext.createGain(),this.setMonitorGain(this.config.monitorGain),this.recordingGainNode=this.audioContext.createGain(),this.setRecordingGain(this.config.recordingGain)},o.prototype.initEncoder=function(){var e=this;this.audioContext.audioWorklet?(this.encoderNode=new AudioWorkletNode(this.audioContext,"encoder-worklet",{numberOfOutputs:0}),this.encoder=this.encoderNode.port):(console.log("audioWorklet support not detected. Falling back to scriptProcessor"),this.encodeBuffers=function(){return delete e.encodeBuffers},this.encoderNode=this.audioContext.createScriptProcessor(this.config.bufferLength,this.config.numberOfChannels,this.config.numberOfChannels),this.encoderNode.onaudioprocess=function(t){var n=t.inputBuffer;return e.encodeBuffers(n)},this.encoderNode.connect(this.audioContext.destination),this.encoder=new t.Worker(this.config.encoderPath))},o.prototype.initSourceNode=function(){var e=this;return this.config.sourceNode.context?(this.sourceNode=this.config.sourceNode,Promise.resolve()):t.navigator.mediaDevices.getUserMedia({audio:this.config.mediaTrackConstraints}).then((function(t){e.stream=t,e.sourceNode=e.audioContext.createMediaStreamSource(t)}))},o.prototype.initWorker=function(){var e=this,t=(this.config.streamPages?this.streamPage:this.storePage).bind(this);return this.recordedPages=[],this.totalLength=0,new Promise((function(n){e.encoder.addEventListener("message",(function o(r){var i=r.data;switch(i.message){case"ready":n();break;case"page":e.encodedSamplePosition=i.samplePosition,t(i.page);break;case"done":e.encoder.removeEventListener("message",o),e.finish()}})),e.encoder.start&&e.encoder.start();var o=e.config,r=(o.sourceNode,function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(o,["sourceNode"]));e.encoder.postMessage(Object.assign({command:"init",originalSampleRate:e.audioContext.sampleRate,wavSampleRate:e.audioContext.sampleRate},r))}))},o.prototype.initWorklet=function(){return this.audioContext.audioWorklet?this.audioContext.audioWorklet.addModule(this.config.encoderPath):Promise.resolve()},o.prototype.pause=function(e){var t=this;if("recording"===this.state)return this.state="paused",this.recordingGainNode.disconnect(),e&&this.config.streamPages?new Promise((function(e){t.encoder.addEventListener("message",(function n(o){"flushed"===o.data.message&&(t.encoder.removeEventListener("message",n),t.onpause(),e())})),t.encoder.start&&t.encoder.start(),t.encoder.postMessage({command:"flush"})})):(this.onpause(),Promise.resolve())},o.prototype.resume=function(){"paused"===this.state&&(this.state="recording",this.recordingGainNode.connect(this.encoderNode),this.onresume())},o.prototype.setRecordingGain=function(e){this.config.recordingGain=e,this.recordingGainNode&&this.audioContext&&this.recordingGainNode.gain.setTargetAtTime(e,this.audioContext.currentTime,.01)},o.prototype.setMonitorGain=function(e){this.config.monitorGain=e,this.monitorGainNode&&this.audioContext&&this.monitorGainNode.gain.setTargetAtTime(e,this.audioContext.currentTime,.01)},o.prototype.start=function(){var e=this;return"inactive"===this.state?(this.state="loading",this.encodedSamplePosition=0,this.audioContext.resume().then((function(){return e.initialize})).then((function(){return Promise.all([e.initSourceNode(),e.initWorker()])})).then((function(){e.state="recording",e.encoder.postMessage({command:"getHeaderPages"}),e.sourceNode.connect(e.monitorGainNode),e.sourceNode.connect(e.recordingGainNode),e.monitorGainNode.connect(e.audioContext.destination),e.recordingGainNode.connect(e.encoderNode),e.onstart()})).catch((function(t){throw e.state="inactive",t}))):Promise.resolve()},o.prototype.stop=function(){var e=this;return"paused"===this.state||"recording"===this.state?(this.state="inactive",this.recordingGainNode.connect(this.encoderNode),this.monitorGainNode.disconnect(),this.clearStream(),new Promise((function(t){e.encoder.addEventListener("message",(function n(o){"done"===o.data.message&&(e.encoder.removeEventListener("message",n),t())})),e.encoder.start&&e.encoder.start(),e.encoder.postMessage({command:"done"})}))):Promise.resolve()},o.prototype.storePage=function(e){this.recordedPages.push(e),this.totalLength+=e.length},o.prototype.streamPage=function(e){this.ondataavailable(e)},o.prototype.finish=function(){if(!this.config.streamPages){var e=new Uint8Array(this.totalLength);this.recordedPages.reduce((function(t,n){return e.set(n,t),t+n.length}),0),this.ondataavailable(e)}this.onstop()},o.prototype.ondataavailable=function(){},o.prototype.onpause=function(){},o.prototype.onresume=function(){},o.prototype.onstart=function(){},o.prototype.onstop=function(){},e.exports=o}).call(this,n(1))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n}])},function(e,t){e.exports="img/icons-room-add.bd36e26.svg"},function(e,t){e.exports="img/camera.2f271b6.svg"},function(e,t){e.exports="img/icons-groups.29180b0.svg"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return g}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(86),u=n.n(d),h=n(84),p=n(108),m=n(85);let g=Object(m.a)("views.auth.CaptchaForm")((i=r=class extends l.a.Component{constructor(e){super(e),this.state={errorText:null},this._captchaWidgetId=null,this._recaptchaContainer=Object(c.createRef)(),p.a.instance.track("onboarding_grecaptcha_begin")}componentDidMount(){if(e.grecaptcha)this._onCaptchaLoaded();else{console.log("Loading recaptcha script..."),window.mx_on_recaptcha_loaded=()=>{this._onCaptchaLoaded()};const e=document.createElement("script");e.setAttribute("src","https://www.recaptcha.net/recaptcha/api.js?onload=mx_on_recaptcha_loaded&render=explicit"),this._recaptchaContainer.current.appendChild(e)}}componentWillUnmount(){this._resetRecaptcha()}_renderRecaptcha(t){if(!e.grecaptcha)throw console.error("grecaptcha not loaded!"),new Error("Recaptcha did not load successfully");const n=this.props.sitePublicKey;if(!n)throw console.error("No public key for recaptcha!"),new Error("This server has not supplied enough information for Recaptcha authentication");console.info("Rendering to %s",t),this._captchaWidgetId=e.grecaptcha.render(t,{sitekey:n,callback:this.props.onCaptchaResponse})}_resetRecaptcha(){null!==this._captchaWidgetId&&e.grecaptcha.reset(this._captchaWidgetId)}_onCaptchaLoaded(){console.log("Loaded recaptcha script.");try{this._renderRecaptcha("mx_recaptcha"),this.setState({errorText:null}),p.a.instance.track("onboarding_grecaptcha_loaded")}catch(e){this.setState({errorText:e.toString()}),p.a.instance.track("onboarding_grecaptcha_error",{error:e.toString()})}}render(){let e=null;return this.state.errorText&&(e=l.a.createElement("div",{className:"error"},this.state.errorText)),l.a.createElement("div",{ref:this._recaptchaContainer},l.a.createElement("p",null,Object(h.a)("This homeserver would like to make sure you are not a robot.")),l.a.createElement("div",{id:"mx_recaptcha"}),e)}},s()(r,"propTypes",{sitePublicKey:u.a.string,onCaptchaResponse:u.a.func}),s()(r,"defaultProps",{onCaptchaResponse:()=>{}}),o=i))||o}).call(this,n(6))},function(e,t){e.exports="img/icon_context_delete.f02c798.svg"},function(e,t,n){(function(e){(function(t){"use strict";function n(e){switch(e._type){case"document":case"block_quote":case"list":case"item":case"paragraph":case"heading":case"emph":case"strong":case"link":case"image":case"custom_inline":case"custom_block":return!0;default:return!1}}var o=function(e,t){this.current=e,this.entering=!0===t},r=function(){var e=this.current,t=this.entering;if(null===e)return null;var o=n(e);return t&&o?e._firstChild?(this.current=e._firstChild,this.entering=!0):this.entering=!1:e===this.root?this.current=null:null===e._next?(this.current=e._parent,this.entering=!1):(this.current=e._next,this.entering=!0),{entering:t,node:e}},i=function(e){return{current:e,root:e,entering:!0,next:r,resumeAt:o}},a=function(e,t){this._type=e,this._parent=null,this._firstChild=null,this._lastChild=null,this._prev=null,this._next=null,this._sourcepos=t,this._lastLineBlank=!1,this._lastLineChecked=!1,this._open=!0,this._string_content=null,this._literal=null,this._listData={},this._info=null,this._destination=null,this._title=null,this._isFenced=!1,this._fenceChar=null,this._fenceLength=0,this._fenceOffset=null,this._level=null,this._onEnter=null,this._onExit=null},s=a.prototype;Object.defineProperty(s,"isContainer",{get:function(){return n(this)}}),Object.defineProperty(s,"type",{get:function(){return this._type}}),Object.defineProperty(s,"firstChild",{get:function(){return this._firstChild}}),Object.defineProperty(s,"lastChild",{get:function(){return this._lastChild}}),Object.defineProperty(s,"next",{get:function(){return this._next}}),Object.defineProperty(s,"prev",{get:function(){return this._prev}}),Object.defineProperty(s,"parent",{get:function(){return this._parent}}),Object.defineProperty(s,"sourcepos",{get:function(){return this._sourcepos}}),Object.defineProperty(s,"literal",{get:function(){return this._literal},set:function(e){this._literal=e}}),Object.defineProperty(s,"destination",{get:function(){return this._destination},set:function(e){this._destination=e}}),Object.defineProperty(s,"title",{get:function(){return this._title},set:function(e){this._title=e}}),Object.defineProperty(s,"info",{get:function(){return this._info},set:function(e){this._info=e}}),Object.defineProperty(s,"level",{get:function(){return this._level},set:function(e){this._level=e}}),Object.defineProperty(s,"listType",{get:function(){return this._listData.type},set:function(e){this._listData.type=e}}),Object.defineProperty(s,"listTight",{get:function(){return this._listData.tight},set:function(e){this._listData.tight=e}}),Object.defineProperty(s,"listStart",{get:function(){return this._listData.start},set:function(e){this._listData.start=e}}),Object.defineProperty(s,"listDelimiter",{get:function(){return this._listData.delimiter},set:function(e){this._listData.delimiter=e}}),Object.defineProperty(s,"onEnter",{get:function(){return this._onEnter},set:function(e){this._onEnter=e}}),Object.defineProperty(s,"onExit",{get:function(){return this._onExit},set:function(e){this._onExit=e}}),a.prototype.appendChild=function(e){e.unlink(),e._parent=this,this._lastChild?(this._lastChild._next=e,e._prev=this._lastChild,this._lastChild=e):(this._firstChild=e,this._lastChild=e)},a.prototype.prependChild=function(e){e.unlink(),e._parent=this,this._firstChild?(this._firstChild._prev=e,e._next=this._firstChild,this._firstChild=e):(this._firstChild=e,this._lastChild=e)},a.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next),this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev),this._parent=null,this._next=null,this._prev=null},a.prototype.insertAfter=function(e){e.unlink(),e._next=this._next,e._next&&(e._next._prev=e),e._prev=this,this._next=e,e._parent=this._parent,e._next||(e._parent._lastChild=e)},a.prototype.insertBefore=function(e){e.unlink(),e._prev=this._prev,e._prev&&(e._prev._next=e),e._next=this,this._prev=e,e._parent=this._parent,e._prev||(e._parent._firstChild=e)},a.prototype.walker=function(){return new i(this)};var c={};function l(e,t,n){var o,r,i,a,s,d="";for("string"!=typeof t&&(n=t,t=l.defaultChars),void 0===n&&(n=!0),s=function(e){var t,n,o=c[e];if(o)return o;for(o=c[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)o[e.charCodeAt(t)]=e[t];return o}(t),o=0,r=e.length;o<r;o++)if(i=e.charCodeAt(o),n&&37===i&&o+2<r&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))d+=e.slice(o,o+3),o+=2;else if(i<128)d+=s[i];else if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&o+1<r&&(a=e.charCodeAt(o+1))>=56320&&a<=57343){d+=encodeURIComponent(e[o]+e[o+1]),o++;continue}d+="%EF%BF%BD"}else d+=encodeURIComponent(e[o]);return d}l.defaultChars=";/?:@&=+$,-_.!~*'()#",l.componentChars="-_.!~*'()";var d=l,u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function h(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function p(e,t){return e(t={exports:{}},t.exports),t.exports}function m(e){return e&&e.default||e}var g={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},f=Object.freeze({__proto__:null,Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:"",default:g}),_={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"},b=Object.freeze({__proto__:null,Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",default:_}),v={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},y=Object.freeze({__proto__:null,amp:"&",apos:"'",gt:">",lt:"<",quot:'"',default:v}),E=m(Object.freeze({__proto__:null,default:{0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}})),S=p((function(e,t){var n=u&&u.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(E);t.default=function(e){if(e>=55296&&e<=57343||e>1114111)return"<22>";e in o.default&&(e=o.default[e]);var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)}}));h(S);var w=m(f),C=m(b),T=m(y),x=p((function(e,t){var n=u&&u.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(w),r=n(C),i=n(T),a=n(S);function s(e){var t=Object.keys(e).join("|"),n=l(e),o=new RegExp("&(?:"+(t+="|#[xX][\\da-fA-F]+|#\\d+")+");","g");return function(e){return String(e).replace(o,n)}}t.decodeXML=s(i.default),t.decodeHTMLStrict=s(o.default);var c=function(e,t){return e<t?1:-1};function l(e){return function(t){return"#"===t.charAt(1)?"X"===t.charAt(2)||"x"===t.charAt(2)?a.default(parseInt(t.substr(3),16)):a.default(parseInt(t.substr(2),10)):e[t.slice(1,-1)]}}t.decodeHTML=function(){for(var e=Object.keys(r.default).sort(c),t=Object.keys(o.default).sort(c),n=0,i=0;n<t.length;n++)e[i]===t[n]?(t[n]+=";?",i++):t[n]+=";";var a=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=l(o.default);function d(e){return";"!==e.substr(-1)&&(e+=";"),s(e)}return function(e){return String(e).replace(a,d)}}()}));h(x),x.decodeXML,x.decodeHTMLStrict,x.decodeHTML;var O=p((function(e,t){var n=u&&u.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=s(n(T).default),r=c(o);t.encodeXML=m(o,r);var i=s(n(w).default),a=c(i);function s(e){return Object.keys(e).sort().reduce((function(t,n){return t[e[n]]="&"+n+";",t}),{})}function c(e){var t=[],n=[];return Object.keys(e).forEach((function(e){return 1===e.length?t.push("\\"+e):n.push(e)})),n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}t.encodeHTML=m(i,a);var l=/[^\0-\x7F]/g,d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function h(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function p(e,t){return"&#x"+(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536).toString(16).toUpperCase()+";"}function m(e,t){return function(n){return n.replace(t,(function(t){return e[t]})).replace(d,p).replace(l,h)}}var g=c(o);t.escape=function(e){return e.replace(g,h).replace(d,p).replace(l,h)}}));h(O),O.encodeXML,O.encodeHTML,O.escape;var k=p((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.decode=function(e,t){return(!t||t<=0?x.decodeXML:x.decodeHTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?x.decodeXML:x.decodeHTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?O.encodeXML:O.encodeHTML)(e)};var n=O;t.encodeXML=n.encodeXML,t.encodeHTML=n.encodeHTML,t.escape=n.escape,t.encodeHTML4=n.encodeHTML,t.encodeHTML5=n.encodeHTML;var o=x;t.decodeXML=o.decodeXML,t.decodeHTML=o.decodeHTML,t.decodeHTMLStrict=o.decodeHTMLStrict,t.decodeHTML4=o.decodeHTML,t.decodeHTML5=o.decodeHTML,t.decodeHTML4Strict=o.decodeHTMLStrict,t.decodeHTML5Strict=o.decodeHTMLStrict,t.decodeXMLStrict=o.decodeXML}));h(k),k.decode,k.decodeStrict,k.encode,k.encodeXML,k.encodeHTML,k.escape,k.encodeHTML4,k.encodeHTML5,k.decodeXML;var R,D,I,A=k.decodeHTML,N=(k.decodeHTMLStrict,k.decodeHTML4,k.decodeHTML5,k.decodeHTML4Strict,k.decodeHTML5Strict,k.decodeXMLStrict,"&(?:#x[a-f0-9]{1,6}|#[0-9]{1,7}|[a-z][a-z0-9]{1,31});"),F="<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>",M="</[A-Za-z][A-Za-z0-9-]*\\s*[>]",P=new RegExp("^(?:<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>|</[A-Za-z][A-Za-z0-9-]*\\s*[>]|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|[<][?][\\s\\S]*?[?][>]|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),L=/[\\&]/,j="[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]",U=new RegExp("\\\\"+j+"|"+N,"gi"),B=new RegExp('[&<>"]',"g"),q=function(e){return 92===e.charCodeAt(0)?e.charAt(1):A(e)},G=function(e){return L.test(e)?e.replace(U,q):e},V=function(e){switch(e){case"&":return"&";case"<":return"<";case">":return">";case'"':return""";default:return e}},H=function(e){return B.test(e)?e.replace(B,V):e};function z(e){return R(e)}if(String.fromCodePoint)R=function(e){try{return String.fromCodePoint(e)}catch(e){if(e instanceof RangeError)return String.fromCharCode(65533);throw e}};else{var K=String.fromCharCode,W=Math.floor;R=function(){var e,t,n=16384,o=[],r=-1,i=arguments.length;if(!i)return"";for(var a="";++r<i;){var s=Number(arguments[r]);if(!isFinite(s)||s<0||s>1114111||W(s)!==s)return String.fromCharCode(65533);s<=65535?o.push(s):(e=55296+((s-=65536)>>10),t=s%1024+56320,o.push(e,t)),(r+1===i||o.length>n)&&(a+=K.apply(null,o),o.length=0)}return a}}String.prototype.repeat||(D=function(){try{var e={},t=Object.defineProperty,n=t(e,e,e)&&t}catch(e){}return n}(),I=function(e){if(null==this)throw TypeError();var t=String(this),n=e?Number(e):0;if(n!=n&&(n=0),n<0||n==1/0)throw RangeError();for(var o="";n;)n%2==1&&(o+=t),n>1&&(t+=t),n>>=1;return o},D?D(String.prototype,"repeat",{value:I,configurable:!0,writable:!0}):String.prototype.repeat=I);var Y=function(e){try{return d(e)}catch(t){return e}},$=G,Q=j,J="\\\\"+Q,X=P,Z=new RegExp(/[!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/),ee=new RegExp('^(?:"('+J+'|[^"\\x00])*"|\'('+J+"|[^'\\x00])*'|\\(("+J+"|[^()\\x00])*\\))"),te=/^(?:<(?:[^<>\n\\\x00]|\\.)*>)/,ne=new RegExp("^"+Q),oe=new RegExp("^&(?:#x[a-f0-9]{1,6}|#[0-9]{1,7}|[a-z][a-z0-9]{1,31});","i"),re=/`+/,ie=/^`+/,ae=/\.\.\./g,se=/--+/g,ce=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,le=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,de=/^ *(?:\n *)?/,ue=/^[ \t\n\x0b\x0c\x0d]/,he=/^\s/,pe=/ *$/,me=/^ */,ge=/^ *(?:\n|$)/,fe=/^\[(?:[^\\\[\]]|\\.){0,1000}\]/,_e=/^[^\n`\[\]\\!<&*_'"]+/m,be=function(e){var t=new a("text");return t._literal=e,t},ve=function(e){return e.slice(1,e.length-1).trim().replace(/[ \t\r\n]+/," ").toLowerCase().toUpperCase()},ye=function(e){var t=e.exec(this.subject.slice(this.pos));return null===t?null:(this.pos+=t.index+t[0].length,t[0])},Ee=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1},Se=function(){return this.match(de),!0},we=function(e){var t=this.match(ie);if(null===t)return!1;for(var n,o,r,i=this.pos;null!==(n=this.match(re));)if(n===t)return o=new a("code"),(r=this.subject.slice(i,this.pos-t.length).replace(/\n/gm," ")).length>0&&null!==r.match(/[^ ]/)&&" "==r[0]&&" "==r[r.length-1]?o._literal=r.slice(1,r.length-1):o._literal=r,e.appendChild(o),!0;return this.pos=i,e.appendChild(be(t)),!0},Ce=function(e){var t,n=this.subject;return this.pos+=1,10===this.peek()?(this.pos+=1,t=new a("linebreak"),e.appendChild(t)):ne.test(n.charAt(this.pos))?(e.appendChild(be(n.charAt(this.pos))),this.pos+=1):e.appendChild(be("\\")),!0},Te=function(e){var t,n,o;return(t=this.match(ce))?(n=t.slice(1,t.length-1),(o=new a("link"))._destination=Y("mailto:"+n),o._title="",o.appendChild(be(n)),e.appendChild(o),!0):!!(t=this.match(le))&&(n=t.slice(1,t.length-1),(o=new a("link"))._destination=Y(n),o._title="",o.appendChild(be(n)),e.appendChild(o),!0)},xe=function(e){var t=this.match(X);if(null===t)return!1;var n=new a("html_inline");return n._literal=t,e.appendChild(n),!0},Oe=function(e){var t,n,o,r,i,a,s,c,l,d,u,h=0,p=this.pos;if(39===e||34===e)h++,this.pos++;else for(;this.peek()===e;)h++,this.pos++;return 0===h?null:(t=0===p?"\n":this.subject.charAt(p-1),n=-1===(o=this.peek())?"\n":z(o),c=he.test(n),l=Z.test(n),d=he.test(t),u=Z.test(t),r=!c&&(!l||d||u),i=!d&&(!u||c||l),95===e?(a=r&&(!i||u),s=i&&(!r||l)):39===e||34===e?(a=r&&!i,s=i):(a=r,s=i),this.pos=p,{numdelims:h,can_open:a,can_close:s})},ke=function(e,t){var n=this.scanDelims(e);if(!n)return!1;var o,r=n.numdelims,i=this.pos;this.pos+=r,o=39===e?"’":34===e?"“":this.subject.slice(i,this.pos);var a=be(o);return t.appendChild(a),(n.can_open||n.can_close)&&(this.options.smart||39!==e&&34!==e)&&(this.delimiters={cc:e,numdelims:r,origdelims:r,node:a,previous:this.delimiters,next:null,can_open:n.can_open,can_close:n.can_close},null!==this.delimiters.previous&&(this.delimiters.previous.next=this.delimiters)),!0},Re=function(e){null!==e.previous&&(e.previous.next=e.next),null===e.next?this.delimiters=e.previous:e.next.previous=e.previous},De=function(e,t){e.next!==t&&(e.next=t,t.previous=e)},Ie=function(e){for(var t,n,o,r,i,s,c,l,d,u,h=[[],[],[]],p=!1,m=0;m<3;m++)h[m][95]=e,h[m][42]=e,h[m][39]=e,h[m][34]=e;for(n=this.delimiters;null!==n&&n.previous!==e;)n=n.previous;for(;null!==n;){var g=n.cc;if(n.can_close){for(t=n.previous,u=!1;null!==t&&t!==e&&t!==h[n.origdelims%3][g];){if(p=(n.can_open||t.can_close)&&n.origdelims%3!=0&&(t.origdelims+n.origdelims)%3==0,t.cc===n.cc&&t.can_open&&!p){u=!0;break}t=t.previous}if(o=n,42===g||95===g)if(u){c=n.numdelims>=2&&t.numdelims>=2?2:1,r=t.node,i=n.node,t.numdelims-=c,n.numdelims-=c,r._literal=r._literal.slice(0,r._literal.length-c),i._literal=i._literal.slice(0,i._literal.length-c);var f=new a(1===c?"emph":"strong");for(l=r._next;l&&l!==i;)d=l._next,l.unlink(),f.appendChild(l),l=d;r.insertAfter(f),De(t,n),0===t.numdelims&&(r.unlink(),this.removeDelimiter(t)),0===n.numdelims&&(i.unlink(),s=n.next,this.removeDelimiter(n),n=s)}else n=n.next;else 39===g?(n.node._literal="’",u&&(t.node._literal="‘"),n=n.next):34===g&&(n.node._literal="”",u&&(t.node.literal="“"),n=n.next);u||(h[o.origdelims%3][g]=o.previous,o.can_open||this.removeDelimiter(o))}else n=n.next}for(;null!==this.delimiters&&this.delimiters!==e;)this.removeDelimiter(this.delimiters)},Ae=function(){var e=this.match(ee);return null===e?null:$(e.substr(1,e.length-2))},Ne=function(){var e=this.match(te);if(null===e){if(60===this.peek())return null;for(var t,n=this.pos,o=0;-1!==(t=this.peek());)if(92===t&&ne.test(this.subject.charAt(this.pos+1)))this.pos+=1,-1!==this.peek()&&(this.pos+=1);else if(40===t)this.pos+=1,o+=1;else if(41===t){if(o<1)break;this.pos+=1,o-=1}else{if(null!==ue.exec(z(t)))break;this.pos+=1}return this.pos===n&&41!==t||0!==o?null:(e=this.subject.substr(n,this.pos-n),Y($(e)))}return Y($(e.substr(1,e.length-2)))},Fe=function(){var e=this.match(fe);return null===e||e.length>1001?0:e.length},Me=function(e){var t=this.pos;this.pos+=1;var n=be("[");return e.appendChild(n),this.addBracket(n,t,!1),!0},Pe=function(e){var t=this.pos;if(this.pos+=1,91===this.peek()){this.pos+=1;var n=be("![");e.appendChild(n),this.addBracket(n,t+1,!0)}else e.appendChild(be("!"));return!0},Le=function(e){var t,n,o,r,i,s,c=!1;if(this.pos+=1,t=this.pos,null===(s=this.brackets))return e.appendChild(be("]")),!0;if(!s.active)return e.appendChild(be("]")),this.removeBracket(),!0;n=s.image;var l=this.pos;if(40===this.peek()&&(this.pos++,this.spnl()&&null!==(o=this.parseLinkDestination())&&this.spnl()&&(ue.test(this.subject.charAt(this.pos-1))&&(r=this.parseLinkTitle()),1)&&this.spnl()&&41===this.peek()?(this.pos+=1,c=!0):this.pos=l),!c){var d=this.pos,u=this.parseLinkLabel();if(u>2?i=this.subject.slice(d,d+u):s.bracketAfter||(i=this.subject.slice(s.index,t)),0===u&&(this.pos=l),i){var h=this.refmap[ve(i)];h&&(o=h.destination,r=h.title,c=!0)}}if(c){var p,m,g=new a(n?"image":"link");for(g._destination=o,g._title=r||"",p=s.node._next;p;)m=p._next,p.unlink(),g.appendChild(p),p=m;if(e.appendChild(g),this.processEmphasis(s.previousDelimiter),this.removeBracket(),s.node.unlink(),!n)for(s=this.brackets;null!==s;)s.image||(s.active=!1),s=s.previous;return!0}return this.removeBracket(),this.pos=t,e.appendChild(be("]")),!0},je=function(e,t,n){null!==this.brackets&&(this.brackets.bracketAfter=!0),this.brackets={node:e,previous:this.brackets,previousDelimiter:this.delimiters,index:t,image:n,active:!0}},Ue=function(){this.brackets=this.brackets.previous},Be=function(e){var t;return!!(t=this.match(oe))&&(e.appendChild(be(A(t))),!0)},qe=function(e){var t;return!!(t=this.match(_e))&&(this.options.smart?e.appendChild(be(t.replace(ae,"…").replace(se,(function(e){var t=0,n=0;return e.length%3==0?n=e.length/3:e.length%2==0?t=e.length/2:e.length%3==2?(t=1,n=(e.length-2)/3):(t=2,n=(e.length-4)/3),"—".repeat(n)+"–".repeat(t)})))):e.appendChild(be(t)),!0)},Ge=function(e){this.pos+=1;var t=e._lastChild;if(t&&"text"===t.type&&" "===t._literal[t._literal.length-1]){var n=" "===t._literal[t._literal.length-2];t._literal=t._literal.replace(pe,""),e.appendChild(new a(n?"linebreak":"softbreak"))}else e.appendChild(new a("softbreak"));return this.match(me),!0},Ve=function(e,t){var n,o,r,i;this.subject=e,this.pos=0;var a=this.pos;if(0===(i=this.parseLinkLabel()))return 0;if(n=this.subject.substr(0,i),58!==this.peek())return this.pos=a,0;if(this.pos++,this.spnl(),null===(o=this.parseLinkDestination()))return this.pos=a,0;var s=this.pos;this.spnl(),this.pos!==s&&(r=this.parseLinkTitle()),null===r&&(r="",this.pos=s);var c=!0;if(null===this.match(ge)&&(""===r?c=!1:(r="",this.pos=s,c=null!==this.match(ge))),!c)return this.pos=a,0;var l=ve(n);return""===l?(this.pos=a,0):(t[l]||(t[l]={destination:o,title:r}),this.pos-a)},He=function(e){var t=!1,n=this.peek();if(-1===n)return!1;switch(n){case 10:t=this.parseNewline(e);break;case 92:t=this.parseBackslash(e);break;case 96:t=this.parseBackticks(e);break;case 42:case 95:t=this.handleDelim(n,e);break;case 39:case 34:t=this.options.smart&&this.handleDelim(n,e);break;case 91:t=this.parseOpenBracket(e);break;case 33:t=this.parseBang(e);break;case 93:t=this.parseCloseBracket(e);break;case 60:t=this.parseAutolink(e)||this.parseHtmlTag(e);break;case 38:t=this.parseEntity(e);break;default:t=this.parseString(e)}return t||(this.pos+=1,e.appendChild(be(z(n)))),!0},ze=function(e){for(this.subject=e._string_content.trim(),this.pos=0,this.delimiters=null,this.brackets=null;this.parseInline(e););e._string_content=null,this.processEmphasis(null)};function Ke(e){return{subject:"",delimiters:null,brackets:null,pos:0,refmap:{},match:ye,peek:Ee,spnl:Se,parseBackticks:we,parseBackslash:Ce,parseAutolink:Te,parseHtmlTag:xe,scanDelims:Oe,handleDelim:ke,parseLinkTitle:Ae,parseLinkDestination:Ne,parseLinkLabel:Fe,parseOpenBracket:Me,parseBang:Pe,parseCloseBracket:Le,addBracket:je,removeBracket:Ue,parseEntity:Be,parseString:qe,parseNewline:Ge,parseReference:Ve,parseInline:He,processEmphasis:Ie,removeDelimiter:Re,options:e||{},parse:ze}}var We=[/./,/^<(?:script|pre|textarea|style)(?:\s|>|$)/i,/^<!--/,/^<[?]/,/^<![A-Z]/,/^<!\[CDATA\[/,/^<[/]?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[123456]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|[/]?[>]|$)/i,new RegExp("^(?:"+F+"|"+M+")\\s*$","i")],Ye=[/./,/<\/(?:script|pre|textarea|style)>/i,/-->/,/\?>/,/>/,/\]\]>/],$e=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,Qe=/^[#`~*+_=<>0-9-]/,Je=/[^ \t\f\v\r\n]/,Xe=/^[*+-]/,Ze=/^(\d{1,9})([.)])/,et=/^#{1,6}(?:[ \t]+|$)/,tt=/^`{3,}(?!.*`)|^~{3,}/,nt=/^(?:`{3,}|~{3,})(?= *$)/,ot=/^(?:=+|-+)[ \t]*$/,rt=/\r\n|\n|\r/,it=function(e){return 32===e||9===e},at=function(e,t){return t<e.length?e.charCodeAt(t):-1},st=function(e){for(;e;){if(e._lastLineBlank)return!0;var t=e.type;if(e._lastLineChecked||"list"!==t&&"item"!==t){e._lastLineChecked=!0;break}e._lastLineChecked=!0,e=e._lastChild}return!1},ct=function(){if(this.partiallyConsumedTab){this.offset+=1;var e=4-this.column%4;this.tip._string_content+=" ".repeat(e)}this.tip._string_content+=this.currentLine.slice(this.offset)+"\n"},lt=function(e,t){for(;!this.blocks[this.tip.type].canContain(e);)this.finalize(this.tip,this.lineNumber-1);var n=t+1,o=new a(e,[[this.lineNumber,n],[0,0]]);return o._string_content="",this.tip.appendChild(o),this.tip=o,o},dt=function(){if(!this.allClosed){for(;this.oldtip!==this.lastMatchedContainer;){var e=this.oldtip._parent;this.finalize(this.oldtip,this.lineNumber-1),this.oldtip=e}this.allClosed=!0}},ut={document:{continue:function(){return 0},finalize:function(){},canContain:function(e){return"item"!==e},acceptsLines:!1},list:{continue:function(){return 0},finalize:function(e,t){for(var n=t._firstChild;n;){if(st(n)&&n._next){t._listData.tight=!1;break}for(var o=n._firstChild;o;){if(st(o)&&(n._next||o._next)){t._listData.tight=!1;break}o=o._next}n=n._next}},canContain:function(e){return"item"===e},acceptsLines:!1},block_quote:{continue:function(e){var t=e.currentLine;return e.indented||62!==at(t,e.nextNonspace)?1:(e.advanceNextNonspace(),e.advanceOffset(1,!1),it(at(t,e.offset))&&e.advanceOffset(1,!0),0)},finalize:function(){},canContain:function(e){return"item"!==e},acceptsLines:!1},item:{continue:function(e,t){if(e.blank){if(null==t._firstChild)return 1;e.advanceNextNonspace()}else{if(!(e.indent>=t._listData.markerOffset+t._listData.padding))return 1;e.advanceOffset(t._listData.markerOffset+t._listData.padding,!0)}return 0},finalize:function(){},canContain:function(e){return"item"!==e},acceptsLines:!1},heading:{continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},thematic_break:{continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},code_block:{continue:function(e,t){var n=e.currentLine,o=e.indent;if(t._isFenced){var r=o<=3&&n.charAt(e.nextNonspace)===t._fenceChar&&n.slice(e.nextNonspace).match(nt);if(r&&r[0].length>=t._fenceLength)return e.lastLineLength=e.offset+o+r[0].length,e.finalize(t,e.lineNumber),2;for(var i=t._fenceOffset;i>0&&it(at(n,e.offset));)e.advanceOffset(1,!0),i--}else if(o>=4)e.advanceOffset(4,!0);else{if(!e.blank)return 1;e.advanceNextNonspace()}return 0},finalize:function(e,t){if(t._isFenced){var n=t._string_content,o=n.indexOf("\n"),r=n.slice(0,o),i=n.slice(o+1);t.info=G(r.trim()),t._literal=i}else t._literal=t._string_content.replace(/(\n *)+$/,"\n");t._string_content=null},canContain:function(){return!1},acceptsLines:!0},html_block:{continue:function(e,t){return!e.blank||6!==t._htmlBlockType&&7!==t._htmlBlockType?0:1},finalize:function(e,t){t._literal=t._string_content.replace(/(\n *)+$/,""),t._string_content=null},canContain:function(){return!1},acceptsLines:!0},paragraph:{continue:function(e){return e.blank?1:0},finalize:function(e,t){for(var n,o,r=!1;91===at(t._string_content,0)&&(n=e.inlineParser.parseReference(t._string_content,e.refmap));)t._string_content=t._string_content.slice(n),r=!0;r&&(o=t._string_content,!Je.test(o))&&t.unlink()},canContain:function(){return!1},acceptsLines:!0}},ht=[function(e){return e.indented||62!==at(e.currentLine,e.nextNonspace)?0:(e.advanceNextNonspace(),e.advanceOffset(1,!1),it(at(e.currentLine,e.offset))&&e.advanceOffset(1,!0),e.closeUnmatchedBlocks(),e.addChild("block_quote",e.nextNonspace),1)},function(e){var t;if(!e.indented&&(t=e.currentLine.slice(e.nextNonspace).match(et))){e.advanceNextNonspace(),e.advanceOffset(t[0].length,!1),e.closeUnmatchedBlocks();var n=e.addChild("heading",e.nextNonspace);return n.level=t[0].trim().length,n._string_content=e.currentLine.slice(e.offset).replace(/^[ \t]*#+[ \t]*$/,"").replace(/[ \t]+#+[ \t]*$/,""),e.advanceOffset(e.currentLine.length-e.offset),2}return 0},function(e){var t;if(!e.indented&&(t=e.currentLine.slice(e.nextNonspace).match(tt))){var n=t[0].length;e.closeUnmatchedBlocks();var o=e.addChild("code_block",e.nextNonspace);return o._isFenced=!0,o._fenceLength=n,o._fenceChar=t[0][0],o._fenceOffset=e.indent,e.advanceNextNonspace(),e.advanceOffset(n,!1),2}return 0},function(e,t){if(!e.indented&&60===at(e.currentLine,e.nextNonspace)){var n,o=e.currentLine.slice(e.nextNonspace);for(n=1;n<=7;n++)if(We[n].test(o)&&(n<7||"paragraph"!==t.type))return e.closeUnmatchedBlocks(),e.addChild("html_block",e.offset)._htmlBlockType=n,2}return 0},function(e,t){var n;if(!e.indented&&"paragraph"===t.type&&(n=e.currentLine.slice(e.nextNonspace).match(ot))){var o;for(e.closeUnmatchedBlocks();91===at(t._string_content,0)&&(o=e.inlineParser.parseReference(t._string_content,e.refmap));)t._string_content=t._string_content.slice(o);if(t._string_content.length>0){var r=new a("heading",t.sourcepos);return r.level="="===n[0][0]?1:2,r._string_content=t._string_content,t.insertAfter(r),t.unlink(),e.tip=r,e.advanceOffset(e.currentLine.length-e.offset,!1),2}return 0}return 0},function(e){return!e.indented&&$e.test(e.currentLine.slice(e.nextNonspace))?(e.closeUnmatchedBlocks(),e.addChild("thematic_break",e.nextNonspace),e.advanceOffset(e.currentLine.length-e.offset,!1),2):0},function(e,t){var n,o,r;return e.indented&&"list"!==t.type||!(n=function(e,t){var n,o,r,i,a=e.currentLine.slice(e.nextNonspace),s={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:e.indent};if(e.indent>=4)return null;if(n=a.match(Xe))s.type="bullet",s.bulletChar=n[0][0];else{if(!(n=a.match(Ze))||"paragraph"===t.type&&"1"!==n[1])return null;s.type="ordered",s.start=parseInt(n[1]),s.delimiter=n[2]}if(-1!==(o=at(e.currentLine,e.nextNonspace+n[0].length))&&9!==o&&32!==o)return null;if("paragraph"===t.type&&!e.currentLine.slice(e.nextNonspace+n[0].length).match(Je))return null;e.advanceNextNonspace(),e.advanceOffset(n[0].length,!0),r=e.column,i=e.offset;do{e.advanceOffset(1,!0),o=at(e.currentLine,e.offset)}while(e.column-r<5&&it(o));var c=-1===at(e.currentLine,e.offset),l=e.column-r;return l>=5||l<1||c?(s.padding=n[0].length+1,e.column=r,e.offset=i,it(at(e.currentLine,e.offset))&&e.advanceOffset(1,!0)):s.padding=n[0].length+l,s}(e,t))?0:(e.closeUnmatchedBlocks(),"list"===e.tip.type&&(o=t._listData,r=n,o.type===r.type&&o.delimiter===r.delimiter&&o.bulletChar===r.bulletChar)||((t=e.addChild("list",e.nextNonspace))._listData=n),(t=e.addChild("item",e.nextNonspace))._listData=n,1)},function(e){return e.indented&&"paragraph"!==e.tip.type&&!e.blank?(e.advanceOffset(4,!0),e.closeUnmatchedBlocks(),e.addChild("code_block",e.offset),2):0}],pt=function(e,t){for(var n,o,r,i=this.currentLine;e>0&&(r=i[this.offset]);)"\t"===r?(n=4-this.column%4,t?(this.partiallyConsumedTab=n>e,o=n>e?e:n,this.column+=o,this.offset+=this.partiallyConsumedTab?0:1,e-=o):(this.partiallyConsumedTab=!1,this.column+=n,this.offset+=1,e-=1)):(this.partiallyConsumedTab=!1,this.offset+=1,this.column+=1,e-=1)},mt=function(){this.offset=this.nextNonspace,this.column=this.nextNonspaceColumn,this.partiallyConsumedTab=!1},gt=function(){for(var e,t=this.currentLine,n=this.offset,o=this.column;""!==(e=t.charAt(n));)if(" "===e)n++,o++;else{if("\t"!==e)break;n++,o+=4-o%4}this.blank="\n"===e||"\r"===e||""===e,this.nextNonspace=n,this.nextNonspaceColumn=o,this.indent=this.nextNonspaceColumn-this.column,this.indented=this.indent>=4},ft=function(e){var t,n,o=!0,r=this.doc;for(this.oldtip=this.tip,this.offset=0,this.column=0,this.blank=!1,this.partiallyConsumedTab=!1,this.lineNumber+=1,-1!==e.indexOf("\0")&&(e=e.replace(/\0/g,"<22>")),this.currentLine=e;(n=r._lastChild)&&n._open;){switch(r=n,this.findNextNonspace(),this.blocks[r.type].continue(this,r)){case 0:break;case 1:o=!1;break;case 2:return;default:throw"continue returned illegal value, must be 0, 1, or 2"}if(!o){r=r._parent;break}}this.allClosed=r===this.oldtip,this.lastMatchedContainer=r;for(var i="paragraph"!==r.type&&ut[r.type].acceptsLines,a=this.blockStarts,s=a.length;!i;){if(this.findNextNonspace(),!this.indented&&!Qe.test(e.slice(this.nextNonspace))){this.advanceNextNonspace();break}for(var c=0;c<s;){var l=a[c](this,r);if(1===l){r=this.tip;break}if(2===l){r=this.tip,i=!0;break}c++}if(c===s){this.advanceNextNonspace();break}}if(this.allClosed||this.blank||"paragraph"!==this.tip.type){this.closeUnmatchedBlocks(),this.blank&&r.lastChild&&(r.lastChild._lastLineBlank=!0),t=r.type;for(var d=this.blank&&!("block_quote"===t||"code_block"===t&&r._isFenced||"item"===t&&!r._firstChild&&r.sourcepos[0][0]===this.lineNumber),u=r;u;)u._lastLineBlank=d,u=u._parent;this.blocks[t].acceptsLines?(this.addLine(),"html_block"===t&&r._htmlBlockType>=1&&r._htmlBlockType<=5&&Ye[r._htmlBlockType].test(this.currentLine.slice(this.offset))&&(this.lastLineLength=e.length,this.finalize(r,this.lineNumber))):this.offset<e.length&&!this.blank&&(r=this.addChild("paragraph",this.offset),this.advanceNextNonspace(),this.addLine())}else this.addLine();this.lastLineLength=e.length},_t=function(e,t){var n=e._parent;e._open=!1,e.sourcepos[1]=[t,this.lastLineLength],this.blocks[e.type].finalize(this,e),this.tip=n},bt=function(e){var t,n,o,r=e.walker();for(this.inlineParser.refmap=this.refmap,this.inlineParser.options=this.options;n=r.next();)o=(t=n.node).type,n.entering||"paragraph"!==o&&"heading"!==o||this.inlineParser.parse(t)},vt=function(){return new a("document",[[1,1],[0,0]])},yt=function(e){this.doc=new vt,this.tip=this.doc,this.refmap={},this.lineNumber=0,this.lastLineLength=0,this.offset=0,this.column=0,this.lastMatchedContainer=this.doc,this.currentLine="",this.options.time&&console.time("preparing input");var t=e.split(rt),n=t.length;10===e.charCodeAt(e.length-1)&&(n-=1),this.options.time&&console.timeEnd("preparing input"),this.options.time&&console.time("block parsing");for(var o=0;o<n;o++)this.incorporateLine(t[o]);for(;this.tip;)this.finalize(this.tip,n);return this.options.time&&console.timeEnd("block parsing"),this.options.time&&console.time("inline parsing"),this.processInlines(this.doc),this.options.time&&console.timeEnd("inline parsing"),this.doc};function Et(){}Et.prototype.render=function(e){var t,n,o=e.walker();for(this.buffer="",this.lastOut="\n";t=o.next();)this[n=t.node.type]&&this[n](t.node,t.entering);return this.buffer},Et.prototype.out=function(e){this.lit(e)},Et.prototype.lit=function(e){this.buffer+=e,this.lastOut=e},Et.prototype.cr=function(){"\n"!==this.lastOut&&this.lit("\n")},Et.prototype.esc=function(e){return e};var St=/^javascript:|vbscript:|file:|data:/i,wt=/^data:image\/(?:png|gif|jpeg|webp)/i,Ct=function(e){return St.test(e)&&!wt.test(e)};function Tt(e){(e=e||{}).softbreak=e.softbreak||"\n",this.disableTags=0,this.lastOut="\n",this.options=e}Tt.prototype=Object.create(Et.prototype),Tt.prototype.text=function(e){this.out(e.literal)},Tt.prototype.html_inline=function(e){this.options.safe?this.lit("\x3c!-- raw HTML omitted --\x3e"):this.lit(e.literal)},Tt.prototype.html_block=function(e){this.cr(),this.options.safe?this.lit("\x3c!-- raw HTML omitted --\x3e"):this.lit(e.literal),this.cr()},Tt.prototype.softbreak=function(){this.lit(this.options.softbreak)},Tt.prototype.linebreak=function(){this.tag("br",[],!0),this.cr()},Tt.prototype.link=function(e,t){var n=this.attrs(e);t?(this.options.safe&&Ct(e.destination)||n.push(["href",this.esc(e.destination)]),e.title&&n.push(["title",this.esc(e.title)]),this.tag("a",n)):this.tag("/a")},Tt.prototype.image=function(e,t){t?(0===this.disableTags&&(this.options.safe&&Ct(e.destination)?this.lit('<img src="" alt="'):this.lit('<img src="'+this.esc(e.destination)+'" alt="')),this.disableTags+=1):(this.disableTags-=1,0===this.disableTags&&(e.title&&this.lit('" title="'+this.esc(e.title)),this.lit('" />')))},Tt.prototype.emph=function(e,t){this.tag(t?"em":"/em")},Tt.prototype.strong=function(e,t){this.tag(t?"strong":"/strong")},Tt.prototype.paragraph=function(e,t){var n=e.parent.parent,o=this.attrs(e);null!==n&&"list"===n.type&&n.listTight||(t?(this.cr(),this.tag("p",o)):(this.tag("/p"),this.cr()))},Tt.prototype.heading=function(e,t){var n="h"+e.level,o=this.attrs(e);t?(this.cr(),this.tag(n,o)):(this.tag("/"+n),this.cr())},Tt.prototype.code=function(e){this.tag("code"),this.out(e.literal),this.tag("/code")},Tt.prototype.code_block=function(e){var t=e.info?e.info.split(/\s+/):[],n=this.attrs(e);t.length>0&&t[0].length>0&&n.push(["class","language-"+this.esc(t[0])]),this.cr(),this.tag("pre"),this.tag("code",n),this.out(e.literal),this.tag("/code"),this.tag("/pre"),this.cr()},Tt.prototype.thematic_break=function(e){var t=this.attrs(e);this.cr(),this.tag("hr",t,!0),this.cr()},Tt.prototype.block_quote=function(e,t){var n=this.attrs(e);t?(this.cr(),this.tag("blockquote",n),this.cr()):(this.cr(),this.tag("/blockquote"),this.cr())},Tt.prototype.list=function(e,t){var n="bullet"===e.listType?"ul":"ol",o=this.attrs(e);if(t){var r=e.listStart;null!==r&&1!==r&&o.push(["start",r.toString()]),this.cr(),this.tag(n,o),this.cr()}else this.cr(),this.tag("/"+n),this.cr()},Tt.prototype.item=function(e,t){var n=this.attrs(e);t?this.tag("li",n):(this.tag("/li"),this.cr())},Tt.prototype.custom_inline=function(e,t){t&&e.onEnter?this.lit(e.onEnter):!t&&e.onExit&&this.lit(e.onExit)},Tt.prototype.custom_block=function(e,t){this.cr(),t&&e.onEnter?this.lit(e.onEnter):!t&&e.onExit&&this.lit(e.onExit),this.cr()},Tt.prototype.esc=H,Tt.prototype.out=function(e){this.lit(this.esc(e))},Tt.prototype.tag=function(e,t,n){if(!(this.disableTags>0)){if(this.buffer+="<"+e,t&&t.length>0)for(var o,r=0;void 0!==(o=t[r]);)this.buffer+=" "+o[0]+'="'+o[1]+'"',r++;n&&(this.buffer+=" /"),this.buffer+=">",this.lastOut=">"}},Tt.prototype.attrs=function(e){var t=[];if(this.options.sourcepos){var n=e.sourcepos;n&&t.push(["data-sourcepos",String(n[0][0])+":"+String(n[0][1])+"-"+String(n[1][0])+":"+String(n[1][1])])}return t};var xt=/\<[^>]*\>/;function Ot(e){e=e||{},this.disableTags=0,this.lastOut="\n",this.indentLevel=0,this.indent=" ",this.options=e}Ot.prototype=Object.create(Et.prototype),Ot.prototype.render=function(e){var t,n;this.buffer="";var o,r,i,a,s,c,l=e.walker(),d=this.options;for(d.time&&console.time("rendering"),this.buffer+='<?xml version="1.0" encoding="UTF-8"?>\n',this.buffer+='<!DOCTYPE document SYSTEM "CommonMark.dtd">\n';o=l.next();)if(i=o.entering,c=(r=o.node).type,a=r.isContainer,s="thematic_break"===c||"linebreak"===c||"softbreak"===c,n=c.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase(),i){switch(t=[],c){case"document":t.push(["xmlns","http://commonmark.org/xml/1.0"]);break;case"list":null!==r.listType&&t.push(["type",r.listType.toLowerCase()]),null!==r.listStart&&t.push(["start",String(r.listStart)]),null!==r.listTight&&t.push(["tight",r.listTight?"true":"false"]);var u=r.listDelimiter;if(null!==u){var h="";h="."===u?"period":"paren",t.push(["delimiter",h])}break;case"code_block":r.info&&t.push(["info",r.info]);break;case"heading":t.push(["level",String(r.level)]);break;case"link":case"image":t.push(["destination",r.destination]),t.push(["title",r.title]);break;case"custom_inline":case"custom_block":t.push(["on_enter",r.onEnter]),t.push(["on_exit",r.onExit])}if(d.sourcepos){var p=r.sourcepos;p&&t.push(["sourcepos",String(p[0][0])+":"+String(p[0][1])+"-"+String(p[1][0])+":"+String(p[1][1])])}if(this.cr(),this.out(this.tag(n,t,s)),a)this.indentLevel+=1;else if(!a&&!s){var m=r.literal;m&&this.out(this.esc(m)),this.out(this.tag("/"+n))}}else this.indentLevel-=1,this.cr(),this.out(this.tag("/"+n));return d.time&&console.timeEnd("rendering"),this.buffer+="\n",this.buffer},Ot.prototype.out=function(e){this.disableTags>0?this.buffer+=e.replace(xt,""):this.buffer+=e,this.lastOut=e},Ot.prototype.cr=function(){if("\n"!==this.lastOut){this.buffer+="\n",this.lastOut="\n";for(var e=this.indentLevel;e>0;e--)this.buffer+=this.indent}},Ot.prototype.tag=function(e,t,n){var o="<"+e;if(t&&t.length>0)for(var r,i=0;void 0!==(r=t[i]);)o+=" "+r[0]+'="'+this.esc(r[1])+'"',i++;return n&&(o+=" /"),o+=">"},Ot.prototype.esc=H,t.HtmlRenderer=Tt,t.Node=a,t.Parser=function(e){return{doc:new vt,blocks:ut,blockStarts:ht,tip:this.doc,oldtip:this.doc,currentLine:"",lineNumber:0,offset:0,column:0,nextNonspace:0,nextNonspaceColumn:0,indent:0,indented:!1,blank:!1,partiallyConsumedTab:!1,allClosed:!0,lastMatchedContainer:this.doc,refmap:{},lastLineLength:0,inlineParser:new Ke(e),findNextNonspace:gt,advanceOffset:pt,advanceNextNonspace:mt,addLine:ct,addChild:lt,incorporateLine:ft,finalize:_t,processInlines:bt,closeUnmatchedBlocks:dt,parse:yt,options:e||{}}},t.Renderer=Et,t.XmlRenderer=Ot,Object.defineProperty(t,"__esModule",{value:!0})})(t)}).call(this,n(6))},function(e,t){e.exports="img/feather-customised/files.d6a33b8.svg"},function(e,t){e.exports="img/search-icon-vector.c463bb6.svg"},function(e,t){e.exports="img/icon-email-user.af133ff.svg"},function(e,t){e.exports="img/icon-address-delete.40c8a04.svg"},function(e,t){var n=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32};n.Diff=function(e,t){return[e,t]},n.prototype.diff_main=function(e,t,o,r){void 0===r&&(r=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var i=r;if(null==e||null==t)throw new Error("Null input. (diff_main)");if(e==t)return e?[new n.Diff(0,e)]:[];void 0===o&&(o=!0);var a=o,s=this.diff_commonPrefix(e,t),c=e.substring(0,s);e=e.substring(s),t=t.substring(s),s=this.diff_commonSuffix(e,t);var l=e.substring(e.length-s);e=e.substring(0,e.length-s),t=t.substring(0,t.length-s);var d=this.diff_compute_(e,t,a,i);return c&&d.unshift(new n.Diff(0,c)),l&&d.push(new n.Diff(0,l)),this.diff_cleanupMerge(d),d},n.prototype.diff_compute_=function(e,t,o,r){var i;if(!e)return[new n.Diff(1,t)];if(!t)return[new n.Diff(-1,e)];var a=e.length>t.length?e:t,s=e.length>t.length?t:e,c=a.indexOf(s);if(-1!=c)return i=[new n.Diff(1,a.substring(0,c)),new n.Diff(0,s),new n.Diff(1,a.substring(c+s.length))],e.length>t.length&&(i[0][0]=i[2][0]=-1),i;if(1==s.length)return[new n.Diff(-1,e),new n.Diff(1,t)];var l=this.diff_halfMatch_(e,t);if(l){var d=l[0],u=l[1],h=l[2],p=l[3],m=l[4],g=this.diff_main(d,h,o,r),f=this.diff_main(u,p,o,r);return g.concat([new n.Diff(0,m)],f)}return o&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,r):this.diff_bisect_(e,t,r)},n.prototype.diff_lineMode_=function(e,t,o){var r=this.diff_linesToChars_(e,t);e=r.chars1,t=r.chars2;var i=r.lineArray,a=this.diff_main(e,t,!1,o);this.diff_charsToLines_(a,i),this.diff_cleanupSemantic(a),a.push(new n.Diff(0,""));for(var s=0,c=0,l=0,d="",u="";s<a.length;){switch(a[s][0]){case 1:l++,u+=a[s][1];break;case-1:c++,d+=a[s][1];break;case 0:if(c>=1&&l>=1){a.splice(s-c-l,c+l),s=s-c-l;for(var h=this.diff_main(d,u,!1,o),p=h.length-1;p>=0;p--)a.splice(s,0,h[p]);s+=h.length}l=0,c=0,d="",u=""}s++}return a.pop(),a},n.prototype.diff_bisect_=function(e,t,o){for(var r=e.length,i=t.length,a=Math.ceil((r+i)/2),s=a,c=2*a,l=new Array(c),d=new Array(c),u=0;u<c;u++)l[u]=-1,d[u]=-1;l[s+1]=0,d[s+1]=0;for(var h=r-i,p=h%2!=0,m=0,g=0,f=0,_=0,b=0;b<a&&!((new Date).getTime()>o);b++){for(var v=-b+m;v<=b-g;v+=2){for(var y=s+v,E=(x=v==-b||v!=b&&l[y-1]<l[y+1]?l[y+1]:l[y-1]+1)-v;x<r&&E<i&&e.charAt(x)==t.charAt(E);)x++,E++;if(l[y]=x,x>r)g+=2;else if(E>i)m+=2;else if(p){if((C=s+h-v)>=0&&C<c&&-1!=d[C])if(x>=(w=r-d[C]))return this.diff_bisectSplit_(e,t,x,E,o)}}for(var S=-b+f;S<=b-_;S+=2){for(var w,C=s+S,T=(w=S==-b||S!=b&&d[C-1]<d[C+1]?d[C+1]:d[C-1]+1)-S;w<r&&T<i&&e.charAt(r-w-1)==t.charAt(i-T-1);)w++,T++;if(d[C]=w,w>r)_+=2;else if(T>i)f+=2;else if(!p){if((y=s+h-S)>=0&&y<c&&-1!=l[y]){var x;E=s+(x=l[y])-y;if(x>=(w=r-w))return this.diff_bisectSplit_(e,t,x,E,o)}}}}return[new n.Diff(-1,e),new n.Diff(1,t)]},n.prototype.diff_bisectSplit_=function(e,t,n,o,r){var i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),c=t.substring(o),l=this.diff_main(i,a,!1,r),d=this.diff_main(s,c,!1,r);return l.concat(d)},n.prototype.diff_linesToChars_=function(e,t){var n=[],o={};function r(e){for(var t="",r=0,a=-1,s=n.length;a<e.length-1;){-1==(a=e.indexOf("\n",r))&&(a=e.length-1);var c=e.substring(r,a+1);(o.hasOwnProperty?o.hasOwnProperty(c):void 0!==o[c])?t+=String.fromCharCode(o[c]):(s==i&&(c=e.substring(r),a=e.length),t+=String.fromCharCode(s),o[c]=s,n[s++]=c),r=a+1}return t}n[0]="";var i=4e4,a=r(e);return i=65535,{chars1:a,chars2:r(t),lineArray:n}},n.prototype.diff_charsToLines_=function(e,t){for(var n=0;n<e.length;n++){for(var o=e[n][1],r=[],i=0;i<o.length;i++)r[i]=t[o.charCodeAt(i)];e[n][1]=r.join("")}},n.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(i,r)==t.substring(i,r)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r},n.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(e.length-r,e.length-i)==t.substring(t.length-r,t.length-i)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r},n.prototype.diff_commonOverlap_=function(e,t){var n=e.length,o=t.length;if(0==n||0==o)return 0;n>o?e=e.substring(n-o):n<o&&(t=t.substring(0,n));var r=Math.min(n,o);if(e==t)return r;for(var i=0,a=1;;){var s=e.substring(r-a),c=t.indexOf(s);if(-1==c)return i;a+=c,0!=c&&e.substring(r-a)!=t.substring(0,a)||(i=a,a++)}},n.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;var n=e.length>t.length?e:t,o=e.length>t.length?t:e;if(n.length<4||2*o.length<n.length)return null;var r=this;function i(e,t,n){for(var o,i,a,s,c=e.substring(n,n+Math.floor(e.length/4)),l=-1,d="";-1!=(l=t.indexOf(c,l+1));){var u=r.diff_commonPrefix(e.substring(n),t.substring(l)),h=r.diff_commonSuffix(e.substring(0,n),t.substring(0,l));d.length<h+u&&(d=t.substring(l-h,l)+t.substring(l,l+u),o=e.substring(0,n-h),i=e.substring(n+u),a=t.substring(0,l-h),s=t.substring(l+u))}return 2*d.length>=e.length?[o,i,a,s,d]:null}var a,s,c,l,d,u=i(n,o,Math.ceil(n.length/4)),h=i(n,o,Math.ceil(n.length/2));return u||h?(a=h?u&&u[4].length>h[4].length?u:h:u,e.length>t.length?(s=a[0],c=a[1],l=a[2],d=a[3]):(l=a[0],d=a[1],s=a[2],c=a[3]),[s,c,l,d,a[4]]):null},n.prototype.diff_cleanupSemantic=function(e){for(var t=!1,o=[],r=0,i=null,a=0,s=0,c=0,l=0,d=0;a<e.length;)0==e[a][0]?(o[r++]=a,s=l,c=d,l=0,d=0,i=e[a][1]):(1==e[a][0]?l+=e[a][1].length:d+=e[a][1].length,i&&i.length<=Math.max(s,c)&&i.length<=Math.max(l,d)&&(e.splice(o[r-1],0,new n.Diff(-1,i)),e[o[r-1]+1][0]=1,r--,a=--r>0?o[r-1]:-1,s=0,c=0,l=0,d=0,i=null,t=!0)),a++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),a=1;a<e.length;){if(-1==e[a-1][0]&&1==e[a][0]){var u=e[a-1][1],h=e[a][1],p=this.diff_commonOverlap_(u,h),m=this.diff_commonOverlap_(h,u);p>=m?(p>=u.length/2||p>=h.length/2)&&(e.splice(a,0,new n.Diff(0,h.substring(0,p))),e[a-1][1]=u.substring(0,u.length-p),e[a+1][1]=h.substring(p),a++):(m>=u.length/2||m>=h.length/2)&&(e.splice(a,0,new n.Diff(0,u.substring(0,m))),e[a-1][0]=1,e[a-1][1]=h.substring(0,h.length-m),e[a+1][0]=-1,e[a+1][1]=u.substring(m),a++),a++}a++}},n.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var o=e.charAt(e.length-1),r=t.charAt(0),i=o.match(n.nonAlphaNumericRegex_),a=r.match(n.nonAlphaNumericRegex_),s=i&&o.match(n.whitespaceRegex_),c=a&&r.match(n.whitespaceRegex_),l=s&&o.match(n.linebreakRegex_),d=c&&r.match(n.linebreakRegex_),u=l&&e.match(n.blanklineEndRegex_),h=d&&t.match(n.blanklineStartRegex_);return u||h?5:l||d?4:i&&!s&&c?3:s||c?2:i||a?1:0}for(var o=1;o<e.length-1;){if(0==e[o-1][0]&&0==e[o+1][0]){var r=e[o-1][1],i=e[o][1],a=e[o+1][1],s=this.diff_commonSuffix(r,i);if(s){var c=i.substring(i.length-s);r=r.substring(0,r.length-s),i=c+i.substring(0,i.length-s),a=c+a}for(var l=r,d=i,u=a,h=t(r,i)+t(i,a);i.charAt(0)===a.charAt(0);){r+=i.charAt(0),i=i.substring(1)+a.charAt(0),a=a.substring(1);var p=t(r,i)+t(i,a);p>=h&&(h=p,l=r,d=i,u=a)}e[o-1][1]!=l&&(l?e[o-1][1]=l:(e.splice(o-1,1),o--),e[o][1]=d,u?e[o+1][1]=u:(e.splice(o+1,1),o--))}o++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,o=[],r=0,i=null,a=0,s=!1,c=!1,l=!1,d=!1;a<e.length;)0==e[a][0]?(e[a][1].length<this.Diff_EditCost&&(l||d)?(o[r++]=a,s=l,c=d,i=e[a][1]):(r=0,i=null),l=d=!1):(-1==e[a][0]?d=!0:l=!0,i&&(s&&c&&l&&d||i.length<this.Diff_EditCost/2&&s+c+l+d==3)&&(e.splice(o[r-1],0,new n.Diff(-1,i)),e[o[r-1]+1][0]=1,r--,i=null,s&&c?(l=d=!0,r=0):(a=--r>0?o[r-1]:-1,l=d=!1),t=!0)),a++;t&&this.diff_cleanupMerge(e)},n.prototype.diff_cleanupMerge=function(e){e.push(new n.Diff(0,""));for(var t,o=0,r=0,i=0,a="",s="";o<e.length;)switch(e[o][0]){case 1:i++,s+=e[o][1],o++;break;case-1:r++,a+=e[o][1],o++;break;case 0:r+i>1?(0!==r&&0!==i&&(0!==(t=this.diff_commonPrefix(s,a))&&(o-r-i>0&&0==e[o-r-i-1][0]?e[o-r-i-1][1]+=s.substring(0,t):(e.splice(0,0,new n.Diff(0,s.substring(0,t))),o++),s=s.substring(t),a=a.substring(t)),0!==(t=this.diff_commonSuffix(s,a))&&(e[o][1]=s.substring(s.length-t)+e[o][1],s=s.substring(0,s.length-t),a=a.substring(0,a.length-t))),o-=r+i,e.splice(o,r+i),a.length&&(e.splice(o,0,new n.Diff(-1,a)),o++),s.length&&(e.splice(o,0,new n.Diff(1,s)),o++),o++):0!==o&&0==e[o-1][0]?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,i=0,r=0,a="",s=""}""===e[e.length-1][1]&&e.pop();var c=!1;for(o=1;o<e.length-1;)0==e[o-1][0]&&0==e[o+1][0]&&(e[o][1].substring(e[o][1].length-e[o-1][1].length)==e[o-1][1]?(e[o][1]=e[o-1][1]+e[o][1].substring(0,e[o][1].length-e[o-1][1].length),e[o+1][1]=e[o-1][1]+e[o+1][1],e.splice(o-1,1),c=!0):e[o][1].substring(0,e[o+1][1].length)==e[o+1][1]&&(e[o-1][1]+=e[o+1][1],e[o][1]=e[o][1].substring(e[o+1][1].length)+e[o+1][1],e.splice(o+1,1),c=!0)),o++;c&&this.diff_cleanupMerge(e)},n.prototype.diff_xIndex=function(e,t){var n,o=0,r=0,i=0,a=0;for(n=0;n<e.length&&(1!==e[n][0]&&(o+=e[n][1].length),-1!==e[n][0]&&(r+=e[n][1].length),!(o>t));n++)i=o,a=r;return e.length!=n&&-1===e[n][0]?a:a+(t-i)},n.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,o=/</g,r=/>/g,i=/\n/g,a=0;a<e.length;a++){var s=e[a][0],c=e[a][1].replace(n,"&").replace(o,"<").replace(r,">").replace(i,"¶<br>");switch(s){case 1:t[a]='<ins style="background:#e6ffe6;">'+c+"</ins>";break;case-1:t[a]='<del style="background:#ffe6e6;">'+c+"</del>";break;case 0:t[a]="<span>"+c+"</span>"}}return t.join("")},n.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},n.prototype.diff_text2=function(e){for(var t=[],n=0;n<e.length;n++)-1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},n.prototype.diff_levenshtein=function(e){for(var t=0,n=0,o=0,r=0;r<e.length;r++){var i=e[r][0],a=e[r][1];switch(i){case 1:n+=a.length;break;case-1:o+=a.length;break;case 0:t+=Math.max(n,o),n=0,o=0}}return t+=Math.max(n,o)},n.prototype.diff_toDelta=function(e){for(var t=[],n=0;n<e.length;n++)switch(e[n][0]){case 1:t[n]="+"+encodeURI(e[n][1]);break;case-1:t[n]="-"+e[n][1].length;break;case 0:t[n]="="+e[n][1].length}return t.join("\t").replace(/%20/g," ")},n.prototype.diff_fromDelta=function(e,t){for(var o=[],r=0,i=0,a=t.split(/\t/g),s=0;s<a.length;s++){var c=a[s].substring(1);switch(a[s].charAt(0)){case"+":try{o[r++]=new n.Diff(1,decodeURI(c))}catch(e){throw new Error("Illegal escape in diff_fromDelta: "+c)}break;case"-":case"=":var l=parseInt(c,10);if(isNaN(l)||l<0)throw new Error("Invalid number in diff_fromDelta: "+c);var d=e.substring(i,i+=l);"="==a[s].charAt(0)?o[r++]=new n.Diff(0,d):o[r++]=new n.Diff(-1,d);break;default:if(a[s])throw new Error("Invalid diff operation in diff_fromDelta: "+a[s])}}if(i!=e.length)throw new Error("Delta length ("+i+") does not equal source text length ("+e.length+").");return o},n.prototype.match_main=function(e,t,n){if(null==e||null==t||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,e.length)),e==t?0:e.length?e.substring(n,n+t.length)==t?n:this.match_bitap_(e,t,n):-1},n.prototype.match_bitap_=function(e,t,n){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var o=this.match_alphabet_(t),r=this;function i(e,o){var i=e/t.length,a=Math.abs(n-o);return r.Match_Distance?i+a/r.Match_Distance:a?1:i}var a=this.Match_Threshold,s=e.indexOf(t,n);-1!=s&&(a=Math.min(i(0,s),a),-1!=(s=e.lastIndexOf(t,n+t.length))&&(a=Math.min(i(0,s),a)));var c,l,d=1<<t.length-1;s=-1;for(var u,h=t.length+e.length,p=0;p<t.length;p++){for(c=0,l=h;c<l;)i(p,n+l)<=a?c=l:h=l,l=Math.floor((h-c)/2+c);h=l;var m=Math.max(1,n-l+1),g=Math.min(n+l,e.length)+t.length,f=Array(g+2);f[g+1]=(1<<p)-1;for(var _=g;_>=m;_--){var b=o[e.charAt(_-1)];if(f[_]=0===p?(f[_+1]<<1|1)&b:(f[_+1]<<1|1)&b|(u[_+1]|u[_])<<1|1|u[_+1],f[_]&d){var v=i(p,_-1);if(v<=a){if(a=v,!((s=_-1)>n))break;m=Math.max(1,2*n-s)}}}if(i(p+1,n)>a)break;u=f}return s},n.prototype.match_alphabet_=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=0;for(n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t},n.prototype.patch_addContext_=function(e,t){if(0!=t.length){if(null===e.start2)throw Error("patch not initialized");for(var o=t.substring(e.start2,e.start2+e.length1),r=0;t.indexOf(o)!=t.lastIndexOf(o)&&o.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,o=t.substring(e.start2-r,e.start2+e.length1+r);r+=this.Patch_Margin;var i=t.substring(e.start2-r,e.start2);i&&e.diffs.unshift(new n.Diff(0,i));var a=t.substring(e.start2+e.length1,e.start2+e.length1+r);a&&e.diffs.push(new n.Diff(0,a)),e.start1-=i.length,e.start2-=i.length,e.length1+=i.length+a.length,e.length2+=i.length+a.length}},n.prototype.patch_make=function(e,t,o){var r,i;if("string"==typeof e&&"string"==typeof t&&void 0===o)r=e,(i=this.diff_main(r,t,!0)).length>2&&(this.diff_cleanupSemantic(i),this.diff_cleanupEfficiency(i));else if(e&&"object"==typeof e&&void 0===t&&void 0===o)i=e,r=this.diff_text1(i);else if("string"==typeof e&&t&&"object"==typeof t&&void 0===o)r=e,i=t;else{if("string"!=typeof e||"string"!=typeof t||!o||"object"!=typeof o)throw new Error("Unknown call format to patch_make.");r=e,i=o}if(0===i.length)return[];for(var a=[],s=new n.patch_obj,c=0,l=0,d=0,u=r,h=r,p=0;p<i.length;p++){var m=i[p][0],g=i[p][1];switch(c||0===m||(s.start1=l,s.start2=d),m){case 1:s.diffs[c++]=i[p],s.length2+=g.length,h=h.substring(0,d)+g+h.substring(d);break;case-1:s.length1+=g.length,s.diffs[c++]=i[p],h=h.substring(0,d)+h.substring(d+g.length);break;case 0:g.length<=2*this.Patch_Margin&&c&&i.length!=p+1?(s.diffs[c++]=i[p],s.length1+=g.length,s.length2+=g.length):g.length>=2*this.Patch_Margin&&c&&(this.patch_addContext_(s,u),a.push(s),s=new n.patch_obj,c=0,u=h,l=d)}1!==m&&(l+=g.length),-1!==m&&(d+=g.length)}return c&&(this.patch_addContext_(s,u),a.push(s)),a},n.prototype.patch_deepCopy=function(e){for(var t=[],o=0;o<e.length;o++){var r=e[o],i=new n.patch_obj;i.diffs=[];for(var a=0;a<r.diffs.length;a++)i.diffs[a]=new n.Diff(r.diffs[a][0],r.diffs[a][1]);i.start1=r.start1,i.start2=r.start2,i.length1=r.length1,i.length2=r.length2,t[o]=i}return t},n.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var n=this.patch_addPadding(e);t=n+t+n,this.patch_splitMax(e);for(var o=0,r=[],i=0;i<e.length;i++){var a,s,c=e[i].start2+o,l=this.diff_text1(e[i].diffs),d=-1;if(l.length>this.Match_MaxBits?-1!=(a=this.match_main(t,l.substring(0,this.Match_MaxBits),c))&&(-1==(d=this.match_main(t,l.substring(l.length-this.Match_MaxBits),c+l.length-this.Match_MaxBits))||a>=d)&&(a=-1):a=this.match_main(t,l,c),-1==a)r[i]=!1,o-=e[i].length2-e[i].length1;else if(r[i]=!0,o=a-c,l==(s=-1==d?t.substring(a,a+l.length):t.substring(a,d+this.Match_MaxBits)))t=t.substring(0,a)+this.diff_text2(e[i].diffs)+t.substring(a+l.length);else{var u=this.diff_main(l,s,!1);if(l.length>this.Match_MaxBits&&this.diff_levenshtein(u)/l.length>this.Patch_DeleteThreshold)r[i]=!1;else{this.diff_cleanupSemanticLossless(u);for(var h,p=0,m=0;m<e[i].diffs.length;m++){var g=e[i].diffs[m];0!==g[0]&&(h=this.diff_xIndex(u,p)),1===g[0]?t=t.substring(0,a+h)+g[1]+t.substring(a+h):-1===g[0]&&(t=t.substring(0,a+h)+t.substring(a+this.diff_xIndex(u,p+g[1].length))),-1!==g[0]&&(p+=g[1].length)}}}}return[t=t.substring(n.length,t.length-n.length),r]},n.prototype.patch_addPadding=function(e){for(var t=this.Patch_Margin,o="",r=1;r<=t;r++)o+=String.fromCharCode(r);for(r=0;r<e.length;r++)e[r].start1+=t,e[r].start2+=t;var i=e[0],a=i.diffs;if(0==a.length||0!=a[0][0])a.unshift(new n.Diff(0,o)),i.start1-=t,i.start2-=t,i.length1+=t,i.length2+=t;else if(t>a[0][1].length){var s=t-a[0][1].length;a[0][1]=o.substring(a[0][1].length)+a[0][1],i.start1-=s,i.start2-=s,i.length1+=s,i.length2+=s}if(0==(a=(i=e[e.length-1]).diffs).length||0!=a[a.length-1][0])a.push(new n.Diff(0,o)),i.length1+=t,i.length2+=t;else if(t>a[a.length-1][1].length){s=t-a[a.length-1][1].length;a[a.length-1][1]+=o.substring(0,s),i.length1+=s,i.length2+=s}return o},n.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,o=0;o<e.length;o++)if(!(e[o].length1<=t)){var r=e[o];e.splice(o--,1);for(var i=r.start1,a=r.start2,s="";0!==r.diffs.length;){var c=new n.patch_obj,l=!0;for(c.start1=i-s.length,c.start2=a-s.length,""!==s&&(c.length1=c.length2=s.length,c.diffs.push(new n.Diff(0,s)));0!==r.diffs.length&&c.length1<t-this.Patch_Margin;){var d=r.diffs[0][0],u=r.diffs[0][1];1===d?(c.length2+=u.length,a+=u.length,c.diffs.push(r.diffs.shift()),l=!1):-1===d&&1==c.diffs.length&&0==c.diffs[0][0]&&u.length>2*t?(c.length1+=u.length,i+=u.length,l=!1,c.diffs.push(new n.Diff(d,u)),r.diffs.shift()):(u=u.substring(0,t-c.length1-this.Patch_Margin),c.length1+=u.length,i+=u.length,0===d?(c.length2+=u.length,a+=u.length):l=!1,c.diffs.push(new n.Diff(d,u)),u==r.diffs[0][1]?r.diffs.shift():r.diffs[0][1]=r.diffs[0][1].substring(u.length))}s=(s=this.diff_text2(c.diffs)).substring(s.length-this.Patch_Margin);var h=this.diff_text1(r.diffs).substring(0,this.Patch_Margin);""!==h&&(c.length1+=h.length,c.length2+=h.length,0!==c.diffs.length&&0===c.diffs[c.diffs.length-1][0]?c.diffs[c.diffs.length-1][1]+=h:c.diffs.push(new n.Diff(0,h))),l||e.splice(++o,0,c)}}},n.prototype.patch_toText=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t.join("")},n.prototype.patch_fromText=function(e){var t=[];if(!e)return t;for(var o=e.split("\n"),r=0,i=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;r<o.length;){var a=o[r].match(i);if(!a)throw new Error("Invalid patch string: "+o[r]);var s=new n.patch_obj;for(t.push(s),s.start1=parseInt(a[1],10),""===a[2]?(s.start1--,s.length1=1):"0"==a[2]?s.length1=0:(s.start1--,s.length1=parseInt(a[2],10)),s.start2=parseInt(a[3],10),""===a[4]?(s.start2--,s.length2=1):"0"==a[4]?s.length2=0:(s.start2--,s.length2=parseInt(a[4],10)),r++;r<o.length;){var c=o[r].charAt(0);try{var l=decodeURI(o[r].substring(1))}catch(e){throw new Error("Illegal escape in patch_fromText: "+l)}if("-"==c)s.diffs.push(new n.Diff(-1,l));else if("+"==c)s.diffs.push(new n.Diff(1,l));else if(" "==c)s.diffs.push(new n.Diff(0,l));else{if("@"==c)break;if(""!==c)throw new Error('Invalid patch mode "'+c+'" in: '+l)}r++}}return t},(n.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var e,t=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],n=0;n<this.diffs.length;n++){switch(this.diffs[n][0]){case 1:e="+";break;case-1:e="-";break;case 0:e=" "}t[n+1]=e+encodeURI(this.diffs[n][1])+"\n"}return t.join("").replace(/%20/g," ")},e.exports=n,e.exports.diff_match_patch=n,e.exports.DIFF_DELETE=-1,e.exports.DIFF_INSERT=1,e.exports.DIFF_EQUAL=0},function(e,t,n){"use strict";function o(e,t,n){var r;return"#text"===e.nodeName?r=n.document.createTextNode(e.data):"#comment"===e.nodeName?r=n.document.createComment(e.data):(t?r=n.document.createElementNS("http://www.w3.org/2000/svg",e.nodeName):"svg"===e.nodeName.toLowerCase()?(r=n.document.createElementNS("http://www.w3.org/2000/svg","svg"),t=!0):r=n.document.createElement(e.nodeName),e.attributes&&Object.entries(e.attributes).forEach((function(e){var t=e[0],n=e[1];return r.setAttribute(t,n)})),e.childNodes&&e.childNodes.forEach((function(e){return r.appendChild(o(e,t,n))})),n.valueDiffing&&(e.value&&(r.value=e.value),e.checked&&(r.checked=e.checked),e.selected&&(r.selected=e.selected))),r}function r(e,t){for(t=t.slice();t.length>0;){if(!e.childNodes)return!1;var n=t.splice(0,1)[0];e=e.childNodes[n]}return e}function i(e,t,n){var i,a,s,c,l=r(e,t[n._const.route]),d={diff:t,node:l};if(n.preDiffApply(d))return!0;switch(t[n._const.action]){case n._const.addAttribute:if(!l||!l.setAttribute)return!1;l.setAttribute(t[n._const.name],t[n._const.value]);break;case n._const.modifyAttribute:if(!l||!l.setAttribute)return!1;l.setAttribute(t[n._const.name],t[n._const.newValue]),"INPUT"===l.nodeName&&"value"===t[n._const.name]&&(l.value=t[n._const.newValue]);break;case n._const.removeAttribute:if(!l||!l.removeAttribute)return!1;l.removeAttribute(t[n._const.name]);break;case n._const.modifyTextElement:if(!l||3!==l.nodeType)return!1;n.textDiff(l,l.data,t[n._const.oldValue],t[n._const.newValue]);break;case n._const.modifyValue:if(!l||void 0===l.value)return!1;l.value=t[n._const.newValue];break;case n._const.modifyComment:if(!l||void 0===l.data)return!1;n.textDiff(l,l.data,t[n._const.oldValue],t[n._const.newValue]);break;case n._const.modifyChecked:if(!l||void 0===l.checked)return!1;l.checked=t[n._const.newValue];break;case n._const.modifySelected:if(!l||void 0===l.selected)return!1;l.selected=t[n._const.newValue];break;case n._const.replaceElement:l.parentNode.replaceChild(o(t[n._const.newValue],"http://www.w3.org/2000/svg"===l.namespaceURI,n),l);break;case n._const.relocateGroup:Array.apply(void 0,new Array(t.groupLength)).map((function(){return l.removeChild(l.childNodes[t[n._const.from]])})).forEach((function(e,o){0===o&&(a=l.childNodes[t[n._const.to]]),l.insertBefore(e,a||null)}));break;case n._const.removeElement:l.parentNode.removeChild(l);break;case n._const.addElement:c=(s=t[n._const.route].slice()).splice(s.length-1,1)[0],(l=r(e,s)).insertBefore(o(t[n._const.element],"http://www.w3.org/2000/svg"===l.namespaceURI,n),l.childNodes[c]||null);break;case n._const.removeTextElement:if(!l||3!==l.nodeType)return!1;l.parentNode.removeChild(l);break;case n._const.addTextElement:if(c=(s=t[n._const.route].slice()).splice(s.length-1,1)[0],i=n.document.createTextNode(t[n._const.value]),!(l=r(e,s))||!l.childNodes)return!1;l.insertBefore(i,l.childNodes[c]||null);break;default:console.log("unknown action")}return d.newNode=i,n.postDiffApply(d),!0}function a(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){var t=this;void 0===e&&(e={}),Object.entries(e).forEach((function(e){var n=e[0],o=e[1];return t[n]=o}))};function c(e){var t=[];return t.push(e.nodeName),"#text"!==e.nodeName&&"#comment"!==e.nodeName&&e.attributes&&(e.attributes.class&&t.push(e.nodeName+"."+e.attributes.class.replace(/ /g,".")),e.attributes.id&&t.push(e.nodeName+"#"+e.attributes.id)),t}function l(e){var t={},n={};return e.forEach((function(e){c(e).forEach((function(e){var o=e in t;o||e in n?o&&(delete t[e],n[e]=!0):t[e]=!0}))})),t}function d(e,t){var n=l(e),o=l(t),r={};return Object.keys(n).forEach((function(e){o[e]&&(r[e]=!0)})),r}function u(e){return delete e.outerDone,delete e.innerDone,delete e.valueDone,!e.childNodes||e.childNodes.every(u)}function h(e,t){if(!["nodeName","value","checked","selected","data"].every((function(n){return e[n]===t[n]})))return!1;if(Boolean(e.attributes)!==Boolean(t.attributes))return!1;if(Boolean(e.childNodes)!==Boolean(t.childNodes))return!1;if(e.attributes){var n=Object.keys(e.attributes),o=Object.keys(t.attributes);if(n.length!==o.length)return!1;if(!n.every((function(n){return e.attributes[n]===t.attributes[n]})))return!1}if(e.childNodes){if(e.childNodes.length!==t.childNodes.length)return!1;if(!e.childNodes.every((function(e,n){return h(e,t.childNodes[n])})))return!1}return!0}function p(e,t,n,o,r){if(!e||!t)return!1;if(e.nodeName!==t.nodeName)return!1;if("#text"===e.nodeName)return!!r||e.data===t.data;if(e.nodeName in n)return!0;if(e.attributes&&t.attributes){if(e.attributes.id){if(e.attributes.id!==t.attributes.id)return!1;if(e.nodeName+"#"+e.attributes.id in n)return!0}if(e.attributes.class&&e.attributes.class===t.attributes.class&&e.nodeName+"."+e.attributes.class.replace(/ /g,".")in n)return!0}if(o)return!0;var i=e.childNodes?e.childNodes.slice().reverse():[],a=t.childNodes?t.childNodes.slice().reverse():[];if(i.length!==a.length)return!1;if(r)return i.every((function(e,t){return e.nodeName===a[t].nodeName}));var s=d(i,a);return i.every((function(e,t){return p(e,a[t],s,!0,!0)}))}function m(e){return JSON.parse(JSON.stringify(e))}function g(e,t,n,o){var r=0,i=[],a=e.length,s=t.length,l=Array.apply(void 0,new Array(a+1)).map((function(){return[]})),u=d(e,t),h=a===s;h&&e.some((function(e,n){var o=c(e),r=c(t[n]);return o.length!==r.length?(h=!1,!0):(o.some((function(e,t){if(e!==r[t])return h=!1,!0})),!h||void 0)}));for(var m=0;m<a;m++)for(var g=e[m],f=0;f<s;f++){var _=t[f];n[m]||o[f]||!p(g,_,u,h)?l[m+1][f+1]=0:(l[m+1][f+1]=l[m][f]?l[m][f]+1:1,l[m+1][f+1]>=r&&(r=l[m+1][f+1],i=[m+1,f+1]))}return 0!==r&&{oldValue:i[0]-r,newValue:i[1]-r,length:r}}function f(e,t){return Array.apply(void 0,new Array(e)).map((function(){return t}))}s.prototype.toString=function(){return JSON.stringify(this)},s.prototype.setValue=function(e,t){return this[e]=t,this};var _=function(){this.list=[]};function b(e,t){var n,o,r=e;for(t=t.slice();t.length>0;){if(!r.childNodes)return!1;o=t.splice(0,1)[0],n=r,r=r.childNodes[o]}return{node:r,parentNode:n,nodeIndex:o}}function v(e,t,n){return t.forEach((function(t){!function(e,t,n){var o,r,i,a=b(e,t[n._const.route]),s=a.node,c=a.parentNode,l=a.nodeIndex,d=[],u={diff:t,node:s};if(n.preVirtualDiffApply(u))return!0;switch(t[n._const.action]){case n._const.addAttribute:s.attributes||(s.attributes={}),s.attributes[t[n._const.name]]=t[n._const.value],"checked"===t[n._const.name]?s.checked=!0:"selected"===t[n._const.name]?s.selected=!0:"INPUT"===s.nodeName&&"value"===t[n._const.name]&&(s.value=t[n._const.value]);break;case n._const.modifyAttribute:s.attributes[t[n._const.name]]=t[n._const.newValue];break;case n._const.removeAttribute:delete s.attributes[t[n._const.name]],0===Object.keys(s.attributes).length&&delete s.attributes,"checked"===t[n._const.name]?s.checked=!1:"selected"===t[n._const.name]?delete s.selected:"INPUT"===s.nodeName&&"value"===t[n._const.name]&&delete s.value;break;case n._const.modifyTextElement:s.data=t[n._const.newValue];break;case n._const.modifyValue:s.value=t[n._const.newValue];break;case n._const.modifyComment:s.data=t[n._const.newValue];break;case n._const.modifyChecked:s.checked=t[n._const.newValue];break;case n._const.modifySelected:s.selected=t[n._const.newValue];break;case n._const.replaceElement:(o=m(t[n._const.newValue])).outerDone=!0,o.innerDone=!0,o.valueDone=!0,c.childNodes[l]=o;break;case n._const.relocateGroup:s.childNodes.splice(t[n._const.from],t.groupLength).reverse().forEach((function(e){return s.childNodes.splice(t[n._const.to],0,e)})),s.subsets&&s.subsets.forEach((function(e){if(t[n._const.from]<t[n._const.to]&&e.oldValue<=t[n._const.to]&&e.oldValue>t[n._const.from]){e.oldValue-=t.groupLength;var o=e.oldValue+e.length-t[n._const.to];o>0&&(d.push({oldValue:t[n._const.to]+t.groupLength,newValue:e.newValue+e.length-o,length:o}),e.length-=o)}else if(t[n._const.from]>t[n._const.to]&&e.oldValue>t[n._const.to]&&e.oldValue<t[n._const.from]){e.oldValue+=t.groupLength;var r=e.oldValue+e.length-t[n._const.to];r>0&&(d.push({oldValue:t[n._const.to]+t.groupLength,newValue:e.newValue+e.length-r,length:r}),e.length-=r)}else e.oldValue===t[n._const.from]&&(e.oldValue=t[n._const.to])}));break;case n._const.removeElement:c.childNodes.splice(l,1),c.subsets&&c.subsets.forEach((function(e){e.oldValue>l?e.oldValue-=1:e.oldValue===l?e.delete=!0:e.oldValue<l&&e.oldValue+e.length>l&&(e.oldValue+e.length-1===l?e.length--:(d.push({newValue:e.newValue+l-e.oldValue,oldValue:l,length:e.length-l+e.oldValue-1}),e.length=l-e.oldValue))})),s=c;break;case n._const.addElement:r=t[n._const.route].slice(),i=r.splice(r.length-1,1)[0],s=b(e,r).node,(o=m(t[n._const.element])).outerDone=!0,o.innerDone=!0,o.valueDone=!0,s.childNodes||(s.childNodes=[]),i>=s.childNodes.length?s.childNodes.push(o):s.childNodes.splice(i,0,o),s.subsets&&s.subsets.forEach((function(e){if(e.oldValue>=i)e.oldValue+=1;else if(e.oldValue<i&&e.oldValue+e.length>i){var t=e.oldValue+e.length-i;d.push({newValue:e.newValue+e.length-t,oldValue:i+1,length:t}),e.length-=t}}));break;case n._const.removeTextElement:c.childNodes.splice(l,1),"TEXTAREA"===c.nodeName&&delete c.value,c.subsets&&c.subsets.forEach((function(e){e.oldValue>l?e.oldValue-=1:e.oldValue===l?e.delete=!0:e.oldValue<l&&e.oldValue+e.length>l&&(e.oldValue+e.length-1===l?e.length--:(d.push({newValue:e.newValue+l-e.oldValue,oldValue:l,length:e.length-l+e.oldValue-1}),e.length=l-e.oldValue))})),s=c;break;case n._const.addTextElement:r=t[n._const.route].slice(),i=r.splice(r.length-1,1)[0],(o={}).nodeName="#text",o.data=t[n._const.value],(s=b(e,r).node).childNodes||(s.childNodes=[]),i>=s.childNodes.length?s.childNodes.push(o):s.childNodes.splice(i,0,o),"TEXTAREA"===s.nodeName&&(s.value=t[n._const.newValue]),s.subsets&&s.subsets.forEach((function(e){if(e.oldValue>=i&&(e.oldValue+=1),e.oldValue<i&&e.oldValue+e.length>i){var t=e.oldValue+e.length-i;d.push({newValue:e.newValue+e.length-t,oldValue:i+1,length:t}),e.length-=t}}));break;default:console.log("unknown action")}s.subsets&&(s.subsets=s.subsets.filter((function(e){return!e.delete&&e.oldValue!==e.newValue})),d.length&&(s.subsets=s.subsets.concat(d))),u.newNode=o,n.postVirtualDiffApply(u)}(e,t,n)})),!0}function y(e,t){void 0===t&&(t={});var n={};return n.nodeName=e.nodeName,"#text"===n.nodeName||"#comment"===n.nodeName?n.data=e.data:(e.attributes&&e.attributes.length>0&&(n.attributes={},Array.prototype.slice.call(e.attributes).forEach((function(e){return n.attributes[e.name]=e.value}))),"TEXTAREA"===n.nodeName?n.value=e.value:e.childNodes&&e.childNodes.length>0&&(n.childNodes=[],Array.prototype.slice.call(e.childNodes).forEach((function(e){return n.childNodes.push(y(e,t))}))),t.valueDiffing&&(void 0!==e.checked&&e.type&&["radio","checkbox"].includes(e.type.toLowerCase())?n.checked=e.checked:void 0!==e.value&&(n.value=e.value),void 0!==e.selected&&(n.selected=e.selected))),n}_.prototype.add=function(e){var t;(t=this.list).push.apply(t,e)},_.prototype.forEach=function(e){this.list.forEach((function(t){return e(t)}))};var E=/<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>/g,S=Object.create?Object.create(null):{},w=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function C(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")}var T={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuItem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function x(e){var t={nodeName:"",attributes:{}},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.nodeName=n[1].toUpperCase(),(T[n[1].toLowerCase()]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.nodeName.startsWith("!--"))){var o=e.indexOf("--\x3e");return{type:"comment",data:-1!==o?e.slice(4,o):""}}for(var r=new RegExp(w),i=null,a=!1;!a;)if(null===(i=r.exec(e)))a=!0;else if(i[0].trim())if(i[1]){var s=i[1].trim(),c=[s,""];s.indexOf("=")>-1&&(c=s.split("=")),t.attributes[c[0]]=c[1],r.lastIndex--}else i[2]&&(t.attributes[i[2]]=i[3].trim().substring(1,i[3].length-1));return t}function O(e){return function e(t){return delete t.voidElement,t.childNodes&&t.childNodes.forEach((function(t){return e(t)})),t}(function(e,t){void 0===t&&(t={components:S});var n,o=[],r=-1,i=[],a=!1;return e.replace(E,(function(s,c){if(a){if(s!=="</"+n.nodeName+">")return;a=!1}var l,d="/"!==s.charAt(1),u=s.startsWith("\x3c!--"),h=c+s.length,p=e.charAt(h);if(u){var m=x(s);return r<0?(o.push(m),o):((l=i[r])&&(l.childNodes||(l.childNodes=[]),l.childNodes.push(m)),o)}if(d&&(n=x(s),r++,"tag"===n.type&&t.components[n.nodeName]&&(n.type="component",a=!0),n.voidElement||a||!p||"<"===p||(n.childNodes||(n.childNodes=[]),n.childNodes.push({nodeName:"#text",data:C(e.slice(h,e.indexOf("<",h)))})),0===r&&o.push(n),(l=i[r-1])&&(l.childNodes||(l.childNodes=[]),l.childNodes.push(n)),i[r]=n),(!d||n.voidElement)&&(r--,!a&&"<"!==p&&p)){l=-1===r?o:i[r].childNodes||[];var g=e.indexOf("<",h),f=C(e.slice(h,-1===g?void 0:g));l.push({nodeName:"#text",data:f})}})),o[0]}(e))}var k=function(e,t,n){this.options=n,this.t1=e instanceof HTMLElement?y(e,this.options):"string"==typeof e?O(e,this.options):JSON.parse(JSON.stringify(e)),this.t2=t instanceof HTMLElement?y(t,this.options):"string"==typeof t?O(t,this.options):JSON.parse(JSON.stringify(t)),this.diffcount=0,this.foundAll=!1,this.debug&&(this.t1Orig=y(e,this.options),this.t2Orig=y(t,this.options)),this.tracker=new _};k.prototype.init=function(){return this.findDiffs(this.t1,this.t2)},k.prototype.findDiffs=function(e,t){var n;do{if(this.options.debug&&(this.diffcount+=1,this.diffcount>this.options.diffcap))throw window.diffError=[this.t1Orig,this.t2Orig],new Error("surpassed diffcap:"+JSON.stringify(this.t1Orig)+" -> "+JSON.stringify(this.t2Orig));0===(n=this.findNextDiff(e,t,[])).length&&(h(e,t)||(this.foundAll?console.error("Could not find remaining diffs!"):(this.foundAll=!0,u(e),n=this.findNextDiff(e,t,[])))),n.length>0&&(this.foundAll=!1,this.tracker.add(n),v(e,n,this.options))}while(n.length>0);return this.tracker.list},k.prototype.findNextDiff=function(e,t,n){var o,r;if(this.options.maxDepth&&n.length>this.options.maxDepth)return[];if(!e.outerDone){if(o=this.findOuterDiff(e,t,n),this.options.filterOuterDiff&&(r=this.options.filterOuterDiff(e,t,o))&&(o=r),o.length>0)return e.outerDone=!0,o;e.outerDone=!0}if(!e.innerDone){if((o=this.findInnerDiff(e,t,n)).length>0)return o;e.innerDone=!0}if(this.options.valueDiffing&&!e.valueDone){if((o=this.findValueDiff(e,t,n)).length>0)return e.valueDone=!0,o;e.valueDone=!0}return[]},k.prototype.findOuterDiff=function(e,t,n){var o,r,i,a,c,l,d=[];if(e.nodeName!==t.nodeName){if(!n.length)throw new Error("Top level nodes have to be of the same kind.");return[(new s).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,m(e)).setValue(this.options._const.newValue,m(t)).setValue(this.options._const.route,n)]}if(n.length&&this.options.maxNodeDiffCount<Math.abs((e.childNodes||[]).length-(t.childNodes||[]).length))return[(new s).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,m(e)).setValue(this.options._const.newValue,m(t)).setValue(this.options._const.route,n)];if(e.data!==t.data)return"#text"===e.nodeName?[(new s).setValue(this.options._const.action,this.options._const.modifyTextElement).setValue(this.options._const.route,n).setValue(this.options._const.oldValue,e.data).setValue(this.options._const.newValue,t.data)]:[(new s).setValue(this.options._const.action,this.options._const.modifyComment).setValue(this.options._const.route,n).setValue(this.options._const.oldValue,e.data).setValue(this.options._const.newValue,t.data)];for(r=e.attributes?Object.keys(e.attributes).sort():[],i=t.attributes?Object.keys(t.attributes).sort():[],a=r.length,l=0;l<a;l++)o=r[l],-1===(c=i.indexOf(o))?d.push((new s).setValue(this.options._const.action,this.options._const.removeAttribute).setValue(this.options._const.route,n).setValue(this.options._const.name,o).setValue(this.options._const.value,e.attributes[o])):(i.splice(c,1),e.attributes[o]!==t.attributes[o]&&d.push((new s).setValue(this.options._const.action,this.options._const.modifyAttribute).setValue(this.options._const.route,n).setValue(this.options._const.name,o).setValue(this.options._const.oldValue,e.attributes[o]).setValue(this.options._const.newValue,t.attributes[o])));for(a=i.length,l=0;l<a;l++)o=i[l],d.push((new s).setValue(this.options._const.action,this.options._const.addAttribute).setValue(this.options._const.route,n).setValue(this.options._const.name,o).setValue(this.options._const.value,t.attributes[o]));return d},k.prototype.findInnerDiff=function(e,t,n){var o=e.childNodes?e.childNodes.slice():[],r=t.childNodes?t.childNodes.slice():[],i=Math.max(o.length,r.length),a=Math.abs(o.length-r.length),c=[],l=0;if(!this.options.maxChildCount||i<this.options.maxChildCount){var d=e.subsets&&e.subsetsAge--?e.subsets:e.childNodes&&t.childNodes?function(e,t){for(var n=e.childNodes?e.childNodes:[],o=t.childNodes?t.childNodes:[],r=f(n.length,!1),i=f(o.length,!1),a=[],s=!0,c=function(){return arguments[1]};s;)(s=g(n,o,r,i))&&(a.push(s),Array.apply(void 0,new Array(s.length)).map(c).forEach((function(e){return t=e,r[s.oldValue+t]=!0,void(i[s.newValue+t]=!0);var t})));return e.subsets=a,e.subsetsAge=100,a}(e,t):[];if(d.length>0&&(c=this.attemptGroupRelocation(e,t,d,n)).length>0)return c}for(var u=0;u<i;u+=1){var p=o[u],_=r[u];a&&(p&&!_?"#text"===p.nodeName?(c.push((new s).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,n.concat(l)).setValue(this.options._const.value,p.data)),l-=1):(c.push((new s).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.route,n.concat(l)).setValue(this.options._const.element,m(p))),l-=1):_&&!p&&("#text"===_.nodeName?c.push((new s).setValue(this.options._const.action,this.options._const.addTextElement).setValue(this.options._const.route,n.concat(l)).setValue(this.options._const.value,_.data)):c.push((new s).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.route,n.concat(l)).setValue(this.options._const.element,m(_))))),p&&_&&(!this.options.maxChildCount||i<this.options.maxChildCount?c=c.concat(this.findNextDiff(p,_,n.concat(l))):h(p,_)||(o.length>r.length?("#text"===p.nodeName?c.push((new s).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,n.concat(l)).setValue(this.options._const.value,p.data)):c.push((new s).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.element,m(p)).setValue(this.options._const.route,n.concat(l))),o.splice(u,1),u-=1,l-=1,a-=1):o.length<r.length?(c=c.concat([(new s).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.element,m(_)).setValue(this.options._const.route,n.concat(l))]),o.splice(u,0,{}),a-=1):c=c.concat([(new s).setValue(this.options._const.action,this.options._const.replaceElement).setValue(this.options._const.oldValue,m(p)).setValue(this.options._const.newValue,m(_)).setValue(this.options._const.route,n.concat(l))]))),l+=1}return e.innerDone=!0,c},k.prototype.attemptGroupRelocation=function(e,t,n,o){for(var r,i,a,c,l,d,u=function(e,t,n){var o=e.childNodes?f(e.childNodes.length,!0):[],r=t.childNodes?f(t.childNodes.length,!0):[],i=0;return n.forEach((function(e){for(var t=e.oldValue+e.length,n=e.newValue+e.length,a=e.oldValue;a<t;a+=1)o[a]=i;for(var s=e.newValue;s<n;s+=1)r[s]=i;i+=1})),{gaps1:o,gaps2:r}}(e,t,n),h=u.gaps1,g=u.gaps2,_=Math.min(h.length,g.length),b=[],v=0,y=0;v<_;y+=1,v+=1)if(!0===h[v])if("#text"===(c=e.childNodes[y]).nodeName)if("#text"===t.childNodes[v].nodeName){if(c.data!==t.childNodes[v].data){for(d=y;e.childNodes.length>d+1&&"#text"===e.childNodes[d+1].nodeName;)if(d+=1,t.childNodes[v].data===e.childNodes[d].data){l=!0;break}if(!l)return b.push((new s).setValue(this.options._const.action,this.options._const.modifyTextElement).setValue(this.options._const.route,o.concat(v)).setValue(this.options._const.oldValue,c.data).setValue(this.options._const.newValue,t.childNodes[v].data)),b}}else b.push((new s).setValue(this.options._const.action,this.options._const.removeTextElement).setValue(this.options._const.route,o.concat(v)).setValue(this.options._const.value,c.data)),h.splice(v,1),_=Math.min(h.length,g.length),v-=1;else b.push((new s).setValue(this.options._const.action,this.options._const.removeElement).setValue(this.options._const.route,o.concat(v)).setValue(this.options._const.element,m(c))),h.splice(v,1),_=Math.min(h.length,g.length),v-=1;else if(!0===g[v])"#text"===(c=t.childNodes[v]).nodeName?(b.push((new s).setValue(this.options._const.action,this.options._const.addTextElement).setValue(this.options._const.route,o.concat(v)).setValue(this.options._const.value,c.data)),h.splice(v,0,!0),_=Math.min(h.length,g.length),y-=1):(b.push((new s).setValue(this.options._const.action,this.options._const.addElement).setValue(this.options._const.route,o.concat(v)).setValue(this.options._const.element,m(c))),h.splice(v,0,!0),_=Math.min(h.length,g.length),y-=1);else if(h[v]!==g[v]){if(b.length>0)return b;if(a=n[h[v]],(i=Math.min(a.newValue,e.childNodes.length-a.length))!==a.oldValue){r=!1;for(var E=0;E<a.length;E+=1)p(e.childNodes[i+E],e.childNodes[a.oldValue+E],[],!1,!0)||(r=!0);if(r)return[(new s).setValue(this.options._const.action,this.options._const.relocateGroup).setValue("groupLength",a.length).setValue(this.options._const.from,a.oldValue).setValue(this.options._const.to,i).setValue(this.options._const.route,o)]}}return b},k.prototype.findValueDiff=function(e,t,n){var o=[];return e.selected!==t.selected&&o.push((new s).setValue(this.options._const.action,this.options._const.modifySelected).setValue(this.options._const.oldValue,e.selected).setValue(this.options._const.newValue,t.selected).setValue(this.options._const.route,n)),(e.value||t.value)&&e.value!==t.value&&"OPTION"!==e.nodeName&&o.push((new s).setValue(this.options._const.action,this.options._const.modifyValue).setValue(this.options._const.oldValue,e.value||"").setValue(this.options._const.newValue,t.value||"").setValue(this.options._const.route,n)),e.checked!==t.checked&&o.push((new s).setValue(this.options._const.action,this.options._const.modifyChecked).setValue(this.options._const.oldValue,e.checked).setValue(this.options._const.newValue,t.checked).setValue(this.options._const.route,n)),o};var R={debug:!1,diffcap:10,maxDepth:!1,maxChildCount:50,valueDiffing:!0,textDiff:function(e,t,n,o){e.data=o},preVirtualDiffApply:function(){},postVirtualDiffApply:function(){},preDiffApply:function(){},postDiffApply:function(){},filterOuterDiff:null,compress:!1,_const:!1,document:!(!window||!window.document)&&window.document},D=function(e){var t=this;if(void 0===e&&(e={}),this.options=e,Object.entries(R).forEach((function(e){var n=e[0],o=e[1];Object.prototype.hasOwnProperty.call(t.options,n)||(t.options[n]=o)})),!this.options._const){var n=["addAttribute","modifyAttribute","removeAttribute","modifyTextElement","relocateGroup","removeElement","addElement","removeTextElement","addTextElement","replaceElement","modifyValue","modifyChecked","modifySelected","modifyComment","action","route","oldValue","newValue","element","group","from","to","name","value","data","attributes","nodeName","childNodes","checked","selected"];this.options._const={},this.options.compress?n.forEach((function(e,n){return t.options._const[e]=n})):n.forEach((function(e){return t.options._const[e]=e}))}this.DiffFinder=k};D.prototype.apply=function(e,t){return function(e,t,n){return t.every((function(t){return i(e,t,n)}))}(e,t,this.options)},D.prototype.undo=function(e,t){return function(e,t,n){t.length||(t=[t]),(t=t.slice()).reverse(),t.forEach((function(t){!function(e,t,n){switch(t[n._const.action]){case n._const.addAttribute:t[n._const.action]=n._const.removeAttribute,i(e,t,n);break;case n._const.modifyAttribute:a(t,n._const.oldValue,n._const.newValue),i(e,t,n);break;case n._const.removeAttribute:t[n._const.action]=n._const.addAttribute,i(e,t,n);break;case n._const.modifyTextElement:case n._const.modifyValue:case n._const.modifyComment:case n._const.modifyChecked:case n._const.modifySelected:case n._const.replaceElement:a(t,n._const.oldValue,n._const.newValue),i(e,t,n);break;case n._const.relocateGroup:a(t,n._const.from,n._const.to),i(e,t,n);break;case n._const.removeElement:t[n._const.action]=n._const.addElement,i(e,t,n);break;case n._const.addElement:t[n._const.action]=n._const.removeElement,i(e,t,n);break;case n._const.removeTextElement:t[n._const.action]=n._const.addTextElement,i(e,t,n);break;case n._const.addTextElement:t[n._const.action]=n._const.removeTextElement,i(e,t,n);break;default:console.log("unknown action")}}(e,t,n)}))}(e,t,this.options)},D.prototype.diff=function(e,t){return new this.DiffFinder(e,t,this.options).init()};var I=function(e){var t=this;void 0===e&&(e={}),this.pad="│ ",this.padding="",this.tick=1,this.messages=[];var n=function(e,n){var o=e[n];e[n]=function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];t.fin(n,Array.prototype.slice.call(r));var a=o.apply(e,r);return t.fout(n,a),a}};for(var o in e)"function"==typeof e[o]&&n(e,o);this.log("┌ TRACELOG START")};I.prototype.fin=function(e,t){this.padding+=this.pad,this.log("├─> entering "+e,t)},I.prototype.fout=function(e,t){this.log("│<──┘ generated return value",t),this.padding=this.padding.substring(0,this.padding.length-this.pad.length)},I.prototype.format=function(e,t){return function(e){for(e=""+e;e.length<4;)e="0"+e;return e}(t)+"> "+this.padding+e},I.prototype.log=function(){var e=Array.prototype.slice.call(arguments),t=function(e){return e?"string"==typeof e?e:e instanceof HTMLElement?e.outerHTML||"<empty>":e instanceof Array?"["+e.map(t).join(",")+"]":e.toString()||e.valueOf()||"<unknown>":"<falsey>"};e=e.map(t).join(", "),this.messages.push(this.format(e,this.tick++))},I.prototype.toString=function(){for(var e="└───";e.length<=this.padding.length+this.pad.length;)e+="× ";var t=this.padding;return this.padding="",e=this.format(e,this.tick),this.padding=t,this.messages.join("\n")+"\n"+e},t.DiffDOM=D,t.TraceLogger=I,t.nodeToObj=y,t.stringToObj=O},function(e,t){e.exports="img/icons-show-stickers.4e420bf.svg"},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return N}));var o,r,i,a=n(83),s=n.n(a),c=n(82),l=n.n(c),d=n(148),u=n.n(d),h=n(86),p=n.n(h),m=n(618),g=n.n(m),f=n(127),_=n(134),b=n(87),v=n(91),y=n(89),E=n(84),S=n(102),w=n(90),C=n(241),T=n(737),x=n(167),O=n(109),k=n(293),R=n(111),D=n(85);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}let N=Object(D.a)("views.messages.TextualBody")((i=r=class extends l.a.Component{constructor(t){super(t),s()(this,"onCancelClick",t=>{this.setState({widgetHidden:!0}),e.localStorage&&e.localStorage.setItem("hide_preview_"+this.props.mxEvent.getId(),"1"),this.forceUpdate()}),s()(this,"onEmoteSenderClick",e=>{const t=this.props.mxEvent;y.a.dispatch({action:"insert_mention",user_id:t.getSender()})}),s()(this,"getEventTileOps",()=>({isWidgetHidden:()=>this.state.widgetHidden,unhideWidget:()=>{this.setState({widgetHidden:!1}),e.localStorage&&e.localStorage.removeItem("hide_preview_"+this.props.mxEvent.getId())}})),s()(this,"onStarterLinkClick",(e,t)=>{t.preventDefault();const n=x.a.sharedInstance();if(!n.hasManager())return void n.openNoManagerDialog();const o=n.getPrimaryManager(),r=o.getScalarClient();r.connect().then(()=>{const t=r.getStarterLink(e),n=b.getComponent("dialogs.QuestionDialog"),i=o.uiUrl;v.a.createTrackedDialog("Add an integration","",n,{title:Object(E.a)("Add an Integration"),description:l.a.createElement("div",null,Object(E.a)("You are about to be taken to a third-party site so you can authenticate your account for use with %(integrationsUrl)s. Do you wish to continue?",{integrationsUrl:i})),button:Object(E.a)("Continue"),onFinished(e){if(!e)return;const n=window.screen.width>1024?1024:window.screen.width,o=window.screen.height>800?800:window.screen.height,r=(window.screen.width-n)/2,i=`height=${o}, width=${n}, top=${(window.screen.height-o)/2}, left=${r},`;window.open(t,"_blank",i).opener=null}})})}),s()(this,"_openHistoryDialog",async()=>{const e=b.getComponent("views.dialogs.MessageEditHistoryDialog");v.a.createDialog(e,{mxEvent:this.props.mxEvent})}),this._content=Object(c.createRef)(),this.state={links:[],widgetHidden:!1}}componentDidMount(){this._unmounted=!1,this._pills=[],this.props.editState||this._applyFormatting()}_applyFormatting(){const e=w.b.getValue("showCodeLineNumbers");if(this.activateSpoilers([this._content.current]),Object(T.a)([this._content.current],this.props.mxEvent,this._pills),f.f(this._content.current),this.calculateUrlPreview(),"org.matrix.custom.html"===this.props.mxEvent.getContent().format){const t=u.a.findDOMNode(this).getElementsByTagName("pre");if(t.length>0)for(let n=0;n<t.length;n++){if("mx_EventTile_pre_container"==t[n].parentNode.className)continue;0==t[n].getElementsByTagName("code").length&&this._addCodeElement(t[n]);const o=this._wrapInDiv(t[n]);this._handleCodeBlockExpansion(t[n]),this._addCodeExpansionButton(o,t[n]),this._addCodeCopyButton(o),e&&this._addLineNumbers(t[n])}const n=u.a.findDOMNode(this).getElementsByTagName("code");n.length>0&&setTimeout(()=>{if(!this._unmounted)for(let e=0;e<n.length;e++)n[e].className.includes("hljs")||this._highlightCode(n[e])},10)}}_addCodeElement(e){const t=document.createElement("code");t.append(...e.childNodes),e.appendChild(t)}_addCodeExpansionButton(e,t){if(t.offsetHeight/window.innerHeight*100<30)return;const n=document.createElement("span");n.className="mx_EventTile_button ","mx_EventTile_collapsedCodeBlock"==t.className?n.className+="mx_EventTile_expandButton":n.className+="mx_EventTile_collapseButton",n.onclick=async()=>{n.className="mx_EventTile_button ","mx_EventTile_collapsedCodeBlock"==t.className?(t.className="",n.className+="mx_EventTile_collapseButton"):(t.className="mx_EventTile_collapsedCodeBlock",n.className+="mx_EventTile_expandButton"),this.props.onHeightChanged()},e.appendChild(n)}_addCodeCopyButton(e){const t=document.createElement("span");t.className="mx_EventTile_button mx_EventTile_copyButton ";e.getElementsByClassName("mx_EventTile_button").length>0&&(t.className+="mx_EventTile_buttonBottom"),t.onclick=async()=>{const e=t.parentNode.getElementsByTagName("code")[0],n=await Object(k.b)(e.textContent),o=t.getBoundingClientRect(),r=b.getComponent("context_menus.GenericTextContextMenu"),{close:i}=S.n(r,A(A({},Object(S.p)(o,2)),{},{message:n?Object(E.a)("Copied!"):Object(E.a)("Failed to copy")}));t.onmouseleave=i},e.appendChild(t)}_wrapInDiv(e){const t=document.createElement("div");return t.className="mx_EventTile_pre_container",e.parentNode.replaceChild(t,e),t.appendChild(e),t}_handleCodeBlockExpansion(e){w.b.getValue("expandCodeByDefault")||(e.className="mx_EventTile_collapsedCodeBlock")}_addLineNumbers(e){const t=e.innerHTML.replace(/\n(<\/code>)?$/,"").split(/\n/).length;e.innerHTML='<span class="mx_EventTile_lineNumbers"></span>'+e.innerHTML+"<span></span>";const n=e.getElementsByClassName("mx_EventTile_lineNumbers")[0];for(let e=1;e<=t;e++)n.innerHTML+='<span class="mx_EventTile_lineNumber">'+e+"</span>"}_highlightCode(e){if(w.b.getValue("enableSyntaxHighlightLanguageDetection"))g.a.highlightBlock(e);else{0!=e.className.split(/\s+/).filter((function(e){return e.startsWith("language-")&&!e.startsWith("language-_")})).length&&g.a.highlightBlock(e)}}componentDidUpdate(e){if(!this.props.editState){const t=e.editState&&!this.props.editState;(e.replacingEventId!==this.props.replacingEventId||t)&&this._applyFormatting()}}componentWillUnmount(){this._unmounted=!0,Object(T.b)(this._pills)}shouldComponentUpdate(e,t){return e.mxEvent.getId()!==this.props.mxEvent.getId()||e.highlights!==this.props.highlights||e.replacingEventId!==this.props.replacingEventId||e.highlightLink!==this.props.highlightLink||e.showUrlPreview!==this.props.showUrlPreview||e.editState!==this.props.editState||t.links!==this.state.links||t.widgetHidden!==this.state.widgetHidden}calculateUrlPreview(){if(this.props.showUrlPreview){let t=this.findLinks([this._content.current]);if(t.length){const n=new Set;if(t=t.filter(e=>!n.has(e)&&(n.add(e),!0)),this.setState({links:t}),e.localStorage){const t=e.localStorage.getItem("hide_preview_"+this.props.mxEvent.getId());this.setState({widgetHidden:t})}}else this.state.links.length&&this.setState({links:[]})}}activateSpoilers(e){let t=e[0];for(;t;){if("SPAN"===t.tagName&&"string"==typeof t.getAttribute("data-mx-spoiler")){const e=document.createElement("span"),n=t.getAttribute("data-mx-spoiler"),o=b.getComponent("elements.Spoiler");t.removeAttribute("data-mx-spoiler");const r=l.a.createElement(o,{reason:n,contentHtml:t.outerHTML});u.a.render(r,e),t.parentNode.replaceChild(e,t),t=e}t.childNodes&&t.childNodes.length&&this.activateSpoilers(t.childNodes),t=t.nextSibling}}findLinks(e){let t=[];for(let n=0;n<e.length;n++){const o=e[n];if("A"===o.tagName&&o.getAttribute("href"))this.isLinkPreviewable(o)&&t.push(o.getAttribute("href"));else{if("PRE"===o.tagName||"CODE"===o.tagName||"BLOCKQUOTE"===o.tagName)continue;o.children&&o.children.length&&(t=t.concat(this.findLinks(o.children)))}}return t}isLinkPreviewable(e){if(!e.getAttribute("href").startsWith("http://")&&!e.getAttribute("href").startsWith("https://"))return!1;if(e.textContent.indexOf("/")>-1)return!0;{const t=e.getAttribute("href").match(/^https?:\/\/(.*?)(\/|$)/)[1];return!Object(O.d)(t)&&!e.textContent.toLowerCase().trim().startsWith(t.toLowerCase())}}_renderEditedMarker(){const e=this.props.mxEvent.replacingEventDate(),t=e&&Object(_.a)(e),n=l.a.createElement("div",null,l.a.createElement("div",{className:"mx_Tooltip_title"},Object(E.a)("Edited at %(date)s",{date:t})),l.a.createElement("div",{className:"mx_Tooltip_sub"},Object(E.a)("Click to view edits")));return l.a.createElement(R.a,{className:"mx_EventTile_edited",onClick:this._openHistoryDialog,title:Object(E.a)("Edited at %(date)s. Click to view edits.",{date:t}),tooltip:n},l.a.createElement("span",null,`(${Object(E.a)("edited")})`))}render(){if(this.props.editState){const e=b.getComponent("rooms.EditMessageComposer");return l.a.createElement(e,{editState:this.props.editState,className:"mx_EventTile_content"})}const e=this.props.mxEvent,t=e.getContent(),n=!e.replacingEvent()&&C.a.getParentEventId(e);let o,r=f.b(t,this.props.highlights,{disableBigEmoji:"m.emote"===t.msgtype||!w.b.getValue("TextualBody.enableBigEmoji"),stripReplyFallback:n,ref:this._content});if(this.props.replacingEventId&&(r=l.a.createElement(l.a.Fragment,null,r,this._renderEditedMarker())),this.props.highlightLink?r=l.a.createElement("a",{href:this.props.highlightLink},r):t.data&&"string"==typeof t.data["org.matrix.neb.starter_link"]&&(r=l.a.createElement("a",{href:"#",onClick:this.onStarterLinkClick.bind(this,t.data["org.matrix.neb.starter_link"])},r)),this.state.links.length&&!this.state.widgetHidden&&this.props.showUrlPreview){const e=b.getComponent("rooms.LinkPreviewWidget");o=this.state.links.map(t=>l.a.createElement(e,{key:t,link:t,mxEvent:this.props.mxEvent,onCancelClick:this.onCancelClick,onHeightChanged:this.props.onHeightChanged}))}switch(t.msgtype){case"m.emote":return l.a.createElement("span",{className:"mx_MEmoteBody mx_EventTile_content"},"* ",l.a.createElement("span",{className:"mx_MEmoteBody_sender",onClick:this.onEmoteSenderClick},e.sender?e.sender.name:e.getSender())," ",r,o);case"m.notice":return l.a.createElement("span",{className:"mx_MNoticeBody mx_EventTile_content"},r,o);default:return l.a.createElement("span",{className:"mx_MTextBody mx_EventTile_content"},r,o)}}},s()(r,"propTypes",{mxEvent:p.a.object.isRequired,highlights:p.a.array,highlightLink:p.a.string,showUrlPreview:p.a.bool,onHeightChanged:p.a.func,tileShape:p.a.string}),o=i))||o}).call(this,n(6))},function(e,t){e.exports="img/plus.53bc1d6.svg"},function(e,t){e.exports="img/stickerpack-placeholder.9c54c13.png"},function(e,t){e.exports="img/room_replaced.80042bb.svg"},function(e,t,n){"use strict";(function(e){var t=n(146),o=n(16),r=n.n(o),i=n(1367),a=n.n(i);let s;t.request((function(e,t){return e.qs=a.a.stringify(e.qs||{},e.qsStringifyOptions),r()(e,t)}));try{s=e.indexedDB}catch(e){}s&&t.setCryptoStoreFactory((function(){return new t.IndexedDBCryptoStore(s,"matrix-js-sdk:crypto")}));e.matrixcs=t}).call(this,n(6))},function(e,t,n){"use strict";var o=n(1368),r=n(1369),i=n(488);e.exports={formats:i,parse:r,stringify:o}},function(e,t,n){"use strict";var o=n(738),r=n(488),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},d=Date.prototype.toISOString,u=r.default,h={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:u,formatter:r.formatters[u],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,n,r,i,a,c,d,u,p,m,g,f,_,b){var v,y=t;if("function"==typeof d?y=d(n,y):y instanceof Date?y=m(y):"comma"===r&&s(y)&&(y=o.maybeMap(y,(function(e){return e instanceof Date?m(e):e}))),null===y){if(i)return c&&!_?c(n,h.encoder,b,"key",g):n;y=""}if("string"==typeof(v=y)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||o.isBuffer(y))return c?[f(_?n:c(n,h.encoder,b,"key",g))+"="+f(c(y,h.encoder,b,"value",g))]:[f(n)+"="+f(String(y))];var E,S=[];if(void 0===y)return S;if("comma"===r&&s(y))E=[{value:y.length>0?y.join(",")||null:void 0}];else if(s(d))E=d;else{var w=Object.keys(y);E=u?w.sort(u):w}for(var C=0;C<E.length;++C){var T=E[C],x="object"==typeof T&&void 0!==T.value?T.value:y[T];if(!a||null!==x){var O=s(y)?"function"==typeof r?r(n,T):n:n+(p?"."+T:"["+T+"]");l(S,e(x,O,r,i,a,c,d,u,p,m,g,f,_,b))}}return S};e.exports=function(e,t){var n,o=e,c=function(e){if(!e)return h;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=r.default;if(void 0!==e.format){if(!i.call(r.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var o=r.formatters[n],a=h.filter;return("function"==typeof e.filter||s(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:void 0===e.allowDots?h.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:a,format:n,formatter:o,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}}(t);"function"==typeof c.filter?o=(0,c.filter)("",o):s(c.filter)&&(n=c.filter);var d,u=[];if("object"!=typeof o||null===o)return"";d=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var m=a[d];n||(n=Object.keys(o)),c.sort&&n.sort(c.sort);for(var g=0;g<n.length;++g){var f=n[g];c.skipNulls&&null===o[f]||l(u,p(o[f],f,m,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset))}var _=u.join(c.delimiter),b=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),_.length>0?b+_:""}},function(e,t,n){"use strict";var o=n(738),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(i),l=s?i.slice(0,s.index):i,d=[];if(l){if(!n.plainObjects&&r.call(Object.prototype,l)&&!n.allowPrototypes)return;d.push(l)}for(var u=0;n.depth>0&&null!==(s=a.exec(i))&&u<n.depth;){if(u+=1,!n.plainObjects&&r.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(s[1])}return s&&d.push("["+i.slice(s.index)+"]"),function(e,t,n,o){for(var r=o?t:c(t,n),i=e.length-1;i>=0;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(r);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,d=parseInt(l,10);n.parseArrays||""!==l?!isNaN(d)&&s!==l&&String(d)===l&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(a=[])[d]=r:a[l]=r:a={0:r}}r=a}return r}(d,t,n,o)}};e.exports=function(e,t){var n=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||o.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var d="string"==typeof e?function(e,t){var n,l={},d=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,u=t.parameterLimit===1/0?void 0:t.parameterLimit,h=d.split(t.delimiter,u),p=-1,m=t.charset;if(t.charsetSentinel)for(n=0;n<h.length;++n)0===h[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[n]?m="utf-8":"utf8=%26%2310003%3B"===h[n]&&(m="iso-8859-1"),p=n,n=h.length);for(n=0;n<h.length;++n)if(n!==p){var g,f,_=h[n],b=_.indexOf("]="),v=-1===b?_.indexOf("="):b+1;-1===v?(g=t.decoder(_,a.decoder,m,"key"),f=t.strictNullHandling?null:""):(g=t.decoder(_.slice(0,v),a.decoder,m,"key"),f=o.maybeMap(c(_.slice(v+1),t),(function(e){return t.decoder(e,a.decoder,m,"value")}))),f&&t.interpretNumericEntities&&"iso-8859-1"===m&&(f=s(f)),_.indexOf("[]=")>-1&&(f=i(f)?[f]:f),r.call(l,g)?l[g]=o.combine(l[g],f):l[g]=f}return l}(e,n):e,u=n.plainObjects?Object.create(null):{},h=Object.keys(d),p=0;p<h.length;++p){var m=h[p],g=l(m,d[m],n,"string"==typeof e);u=o.merge(u,g,n)}return o.compact(u)}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));class o{async supportsEventIndexing(){return!0}async initEventIndex(e,t){throw new Error("Unimplemented")}async addEventToIndex(e,t){throw new Error("Unimplemented")}async deleteEvent(e){throw new Error("Unimplemented")}indexIsEmpty(){throw new Error("Unimplemented")}isRoomIndexed(e){throw new Error("Unimplemented")}async getStats(){throw new Error("Unimplemented")}async getUserVersion(){throw new Error("Unimplemented")}async setUserVersion(e){throw new Error("Unimplemented")}async commitLiveEvents(){throw new Error("Unimplemented")}async searchEventIndex(e){throw new Error("Unimplemented")}async addHistoricEvents(e,t,n){throw new Error("Unimplemented")}async addCrawlerCheckpoint(e){throw new Error("Unimplemented")}async removeCrawlerCheckpoint(e){throw new Error("Unimplemented")}async loadCheckpoints(){throw new Error("Unimplemented")}async loadFileEvents(e){throw new Error("Unimplemented")}async closeEventIndex(){throw new Error("Unimplemented")}async deleteEventIndex(){throw new Error("Unimplemented")}}},function(e,t,n){var o;!function(r,i){"use strict";var a="model",s="name",c="type",l="vendor",d="version",u="mobile",h="tablet",p="smarttv",m={extend:function(e,t){var n={};for(var o in e)t[o]&&t[o].length%2==0?n[o]=t[o].concat(e[o]):n[o]=e[o];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},g={rgx:function(e,t){for(var n,o,r,i,a,s,c=0;c<t.length&&!a;){var l=t[c],d=t[c+1];for(n=o=0;n<l.length&&!a;)if(a=l[n++].exec(e))for(r=0;r<d.length;r++)s=a[++o],"object"==typeof(i=d[r])&&i.length>0?2==i.length?"function"==typeof i[1]?this[i[0]]=i[1].call(this,s):this[i[0]]=i[1]:3==i.length?"function"!=typeof i[1]||i[1].exec&&i[1].test?this[i[0]]=s?s.replace(i[1],i[2]):void 0:this[i[0]]=s?i[1].call(this,s,i[2]):void 0:4==i.length&&(this[i[0]]=s?i[3].call(this,s.replace(i[1],i[2])):void 0):this[i]=s||void 0;c+=2}},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(m.has(t[n][o],e))return"?"===n?void 0:n}else if(m.has(t[n],e))return"?"===n?void 0:n;return e}},f={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},_={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]{3,6}).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[s,d],[/(opios)[\/\s]+([\w\.]+)/i],[[s,"Opera Mini"],d],[/\s(opr)\/([\w\.]+)/i],[[s,"Opera"],d],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[s,d],[/(konqueror)\/([\w\.]+)/i],[[s,"Konqueror"],d],[/(trident).+rv[:\s]([\w\.]{1,9}).+like\sgecko/i],[[s,"IE"],d],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[s,"Edge"],d],[/(yabrowser)\/([\w\.]+)/i],[[s,"Yandex"],d],[/(Avast)\/([\w\.]+)/i],[[s,"Avast Secure Browser"],d],[/(AVG)\/([\w\.]+)/i],[[s,"AVG Secure Browser"],d],[/(puffin)\/([\w\.]+)/i],[[s,"Puffin"],d],[/(focus)\/([\w\.]+)/i],[[s,"Firefox Focus"],d],[/(opt)\/([\w\.]+)/i],[[s,"Opera Touch"],d],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[s,"UCBrowser"],d],[/(comodo_dragon)\/([\w\.]+)/i],[[s,/_/g," "],d],[/(windowswechat qbcore)\/([\w\.]+)/i],[[s,"WeChat(Win) Desktop"],d],[/(micromessenger)\/([\w\.]+)/i],[[s,"WeChat"],d],[/(brave)\/([\w\.]+)/i],[[s,"Brave"],d],[/(whale)\/([\w\.]+)/i],[[s,"Whale"],d],[/(qqbrowserlite)\/([\w\.]+)/i],[s,d],[/(QQ)\/([\d\.]+)/i],[s,d],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[s,d],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[s,d],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[s,d],[/(MetaSr)[\/\s]?([\w\.]+)/i],[s],[/(LBBROWSER)/i],[s],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[d,[s,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[d,[s,"Facebook"]],[/FBAN\/FBIOS|FB_IAB\/FB4A/i],[[s,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[s,d],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[d,[s,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[s,/(.+)/,"$1 WebView"],d],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[s,/(.+(?:g|us))(.+)/,"$1 $2"],d],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[d,[s,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[s,"Sailfish Browser"],d],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[s,d],[/(dolfin)\/([\w\.]+)/i],[[s,"Dolphin"],d],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[s,"360 Browser"]],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[s,"Chrome"],d],[/(coast)\/([\w\.]+)/i],[[s,"Opera Coast"],d],[/fxios\/([\w\.-]+)/i],[d,[s,"Firefox"]],[/version\/([\w\.]+)\s.*mobile\/\w+\s(safari)/i],[d,[s,"Mobile Safari"]],[/version\/([\w\.]+)\s.*(mobile\s?safari|safari)/i],[d,s],[/webkit.+?(gsa)\/([\w\.]+)\s.*(mobile\s?safari|safari)(\/[\w\.]+)/i],[[s,"GSA"],d],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[s,[d,g.str,f.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[s,d],[/(navigator|netscape)\/([\w\.-]+)/i],[[s,"Netscape"],d],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(firefox)\/([\w\.]+)\s[\w\s\-]+\/[\w\.]+$/i,/(mozilla)\/([\w\.]+)\s.+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[s,d]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",m.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",m.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",m.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[a,l,[c,h]],[/applecoremedia\/[\w\.]+ \((ipad)/],[a,[l,"Apple"],[c,h]],[/(apple\s{0,1}tv)/i],[[a,"Apple TV"],[l,"Apple"],[c,p]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[l,a,[c,h]],[/(kf[A-z]+)(\sbuild\/|\)).+silk\//i],[a,[l,"Amazon"],[c,h]],[/(sd|kf)[0349hijorstuw]+(\sbuild\/|\)).+silk\//i],[[a,g.str,f.device.amazon.model],[l,"Amazon"],[c,u]],[/android.+aft([bms])\sbuild/i],[a,[l,"Amazon"],[c,p]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[a,l,[c,u]],[/\((ip[honed|\s\w*]+);/i],[a,[l,"Apple"],[c,u]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[l,a,[c,u]],[/\(bb10;\s(\w+)/i],[a,[l,"BlackBerry"],[c,u]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[a,[l,"Asus"],[c,h]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[l,"Sony"],[a,"Xperia Tablet"],[c,h]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[a,[l,"Sony"],[c,u]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[l,a,[c,"console"]],[/android.+;\s(shield)\sbuild/i],[a,[l,"Nvidia"],[c,"console"]],[/(playstation\s[34portablevi]+)/i],[a,[l,"Sony"],[c,"console"]],[/(sprint\s(\w+))/i],[[l,g.str,f.device.sprint.vendor],[a,g.str,f.device.sprint.model],[c,u]],[/(htc)[;_\s-]{1,2}([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[l,[a,/_/g," "],[c,u]],[/(nexus\s9)/i],[a,[l,"HTC"],[c,h]],[/d\/huawei([\w\s-]+)[;\)]/i,/android.+\s(nexus\s6p|vog-[at]?l\d\d|ane-[at]?l[x\d]\d|eml-a?l\d\da?|lya-[at]?l\d[\dc]|clt-a?l\d\di?)/i],[a,[l,"Huawei"],[c,u]],[/android.+(bah2?-a?[lw]\d{2})/i],[a,[l,"Huawei"],[c,h]],[/(microsoft);\s(lumia[\s\w]+)/i],[l,a,[c,u]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[a,[l,"Microsoft"],[c,"console"]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[l,"Microsoft"],[c,u]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[a,[l,"Motorola"],[c,u]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[a,[l,"Motorola"],[c,h]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[l,m.trim],[a,m.trim],[c,p]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[l,"Samsung"],[c,p]],[/\(dtv[\);].+(aquos)/i],[a,[l,"Sharp"],[c,p]],[/android.+((sch-i[89]0\d|shw-m380s|SM-P605|SM-P610|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[l,"Samsung"],a,[c,h]],[/smart-tv.+(samsung)/i],[l,[c,p],a],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[l,"Samsung"],a,[c,u]],[/sie-(\w*)/i],[a,[l,"Siemens"],[c,u]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[l,"Nokia"],a,[c,u]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[a,[l,"Acer"],[c,h]],[/android.+([vl]k\-?\d{3})\s+build/i],[a,[l,"LG"],[c,h]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[l,"LG"],a,[c,h]],[/linux;\snetcast.+smarttv/i,/lg\snetcast\.tv-201\d/i],[[l,"LG"],a,[c,p]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[a,[l,"LG"],[c,u]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[l,a,[c,h]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[a,[l,"Lenovo"],[c,h]],[/(lenovo)[_\s-]?([\w-]+)/i],[l,a,[c,u]],[/linux;.+((jolla));/i],[l,a,[c,u]],[/((pebble))app\/[\d\.]+\s/i],[l,a,[c,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[l,a,[c,u]],[/crkey/i],[[a,"Chromecast"],[l,"Google"],[c,p]],[/android.+;\s(glass)\s\d/i],[a,[l,"Google"],[c,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[a,[l,"Google"],[c,h]],[/android.+;\s(pixel( [2-9]a?)?( xl)?)[\s)]/i],[a,[l,"Google"],[c,u]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]?note?[\s_]?(?:\d\w)?)\sbuild/i,/android.+(redmi[\s\-_]?(?:note|k)?(?:[\s_]?[\w\s]+))(?:\sbuild|\))/i,/android.+(mi[\s\-_]?(?:a\d|one|one[\s_]plus|note lte)?[\s_]?(?:\d?\w?)[\s_]?(?:plus)?)\sbuild/i],[[a,/_/g," "],[l,"Xiaomi"],[c,u]],[/android.+(mi[\s\-_]?(?:pad)(?:[\s_]?[\w\s]+))(?:\sbuild|\))/i],[[a,/_/g," "],[l,"Xiaomi"],[c,h]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[a,[l,"Meizu"],[c,u]],[/(mz)-([\w-]{2,})/i],[[l,"Meizu"],a,[c,u]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[a,[l,"OnePlus"],[c,u]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[a,[l,"RCA"],[c,h]],[/android.+[;\/\s](Venue[\d\s]{2,7})\s+build/i],[a,[l,"Dell"],[c,h]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[a,[l,"Verizon"],[c,h]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[l,"Barnes & Noble"],a,[c,h]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[a,[l,"NuVision"],[c,h]],[/android.+;\s(k88)\sbuild/i],[a,[l,"ZTE"],[c,h]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[a,[l,"Swiss"],[c,u]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[a,[l,"Swiss"],[c,h]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[a,[l,"Zeki"],[c,h]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[l,"Dragon Touch"],a,[c,h]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[a,[l,"Insignia"],[c,h]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[a,[l,"NextBook"],[c,h]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[l,"Voice"],a,[c,u]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[l,"LvTel"],a,[c,u]],[/android.+;\s(PH-1)\s/i],[a,[l,"Essential"],[c,u]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[a,[l,"Envizen"],[c,h]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[l,a,[c,h]],[/android.+[;\/]\s*(Trio[\s\w\-\.]+)\s+build/i],[a,[l,"MachSpeed"],[c,h]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[l,a,[c,h]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[a,[l,"Rotor"],[c,h]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[l,a,[c,h]],[/android .+?; ([^;]+?)(?: build|\) applewebkit).+? mobile safari/i],[a,[c,u]],[/android .+?;\s([^;]+?)(?: build|\) applewebkit).+?(?! mobile) safari/i],[a,[c,h]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[c,m.lowerize],l,a],[/[\s\/\(](smart-?tv)[;\)]/i],[[c,p]],[/(android[\w\.\s\-]{0,9});.+build/i],[a,[l,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[d,[s,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[s,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[s,d],[/rv\:([\w\.]{1,9}).+(gecko)/i],[d,s]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[s,d],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[s,[d,g.str,f.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[s,"Windows"],[d,g.str,f.os.windows.version]],[/\((bb)(10);/i],[[s,"BlackBerry"],d],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[s,d],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[s,"Symbian"],d],[/\((series40);/i],[s],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[s,"Firefox OS"],d],[/crkey\/([\d\.]+)/i],[d,[s,"Chromecast"]],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[s,d],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[s,"Chromium OS"],d],[/(sunos)\s?([\w\.\d]*)/i],[[s,"Solaris"],d],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[s,d],[/(haiku)\s(\w+)/i],[s,d],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[d,/_/g,"."],[s,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[s,"Mac OS"],[d,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[s,d]]},b=function(e,t){if("object"==typeof e&&(t=e,e=void 0),!(this instanceof b))return new b(e,t).getResult();var n=e||(r&&r.navigator&&r.navigator.userAgent?r.navigator.userAgent:""),o=t?m.extend(_,t):_;return this.getBrowser=function(){var e={name:void 0,version:void 0};return g.rgx.call(e,n,o.browser),e.major=m.major(e.version),e},this.getCPU=function(){var e={architecture:void 0};return g.rgx.call(e,n,o.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return g.rgx.call(e,n,o.device),e},this.getEngine=function(){var e={name:void 0,version:void 0};return g.rgx.call(e,n,o.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return g.rgx.call(e,n,o.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=e,this},this};b.VERSION="0.7.23",b.BROWSER={NAME:s,MAJOR:"major",VERSION:d},b.CPU={ARCHITECTURE:"architecture"},b.DEVICE={MODEL:a,VENDOR:l,TYPE:c,CONSOLE:"console",MOBILE:u,SMARTTV:p,TABLET:h,WEARABLE:"wearable",EMBEDDED:"embedded"},b.ENGINE={NAME:s,VERSION:d},b.OS={NAME:s,VERSION:d},void 0!==t?(void 0!==e&&e.exports&&(t=e.exports=b),t.UAParser=b):void 0===(o=function(){return b}.call(t,n,t,e))||(e.exports=o);var v=r&&(r.jQuery||r.Zepto);if(v&&!v.ua){var y=new b;v.ua=y.getResult(),v.ua.get=function(){return y.getUA()},v.ua.set=function(e){y.setUA(e);var t=y.getResult();for(var n in t)v.ua[n]=t[n]}}}("object"==typeof window?window:this)},,,,,,,,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"components",(function(){return JS}));var o=n(102),r=n(82),i=n.n(r),a=n(113),s=n(366),c=n(84),l=n(94),d=n(87),u=n(89),h=n(96),p=n(161),m=n(206),g=n(93),f=n(115),_=n(129),b=n(97),v=n(369),y=n(120),E=n(108);const S=()=>{y.a.trackEvent("home_page","button","dm"),E.a.instance.track("home_page_button",{button:"dm"}),u.a.dispatch({action:"view_create_chat"})},w=()=>{y.a.trackEvent("home_page","button","room_directory"),E.a.instance.track("home_page_button",{button:"room_directory"}),u.a.fire(h.a.ViewRoomDirectory)},C=()=>{y.a.trackEvent("home_page","button","create_room"),E.a.instance.track("home_page_button",{button:"create_room"}),u.a.dispatch({action:"view_create_room"})},T=e=>({displayName:m.a.instance.displayName||e,avatarUrl:m.a.instance.getHttpAvatarUrl(v.a)}),x=()=>{const e=Object(r.useContext)(b.a),t=e.getUserId(),[n,o]=Object(r.useState)(T(t));return Object(_.a)(m.a.instance,f.b,()=>{o(T(t))}),r.createElement("div",null,r.createElement(v.b,{hasAvatar:!!n.avatarUrl,hasAvatarLabel:Object(c.a)("Great, that'll help people know it's you"),noAvatarLabel:Object(c.a)("Add a photo so people know it's you."),setAvatarUrl:t=>e.setAvatarUrl(t)},r.createElement(p.a,{idName:t,name:n.displayName,url:n.avatarUrl,width:v.a,height:v.a,resizeMethod:"crop"})),r.createElement("h1",null,Object(c.a)("Welcome %(name)s",{name:n.displayName})),r.createElement("h4",null,Object(c.a)("Now, let's help you get started")))};var O=({justRegistered:e=!1})=>{const t=l.a.get(),n=Object(s.a)(t);if(n){const e=d.getComponent("structures.EmbeddedPage");return r.createElement(e,{className:"mx_HomePage",url:n,scrollbar:!0})}let o;if(e)o=r.createElement(x,null);else{const e=t.branding;let n="themes/element/img/logos/element-logo.svg";e&&e.authHeaderLogoUrl&&(n=e.authHeaderLogoUrl),o=r.createElement(r.Fragment,null,r.createElement("img",{src:n,alt:t.brand}),r.createElement("h1",null,Object(c.a)("Welcome to %(appName)s",{appName:t.brand})),r.createElement("h4",null,Object(c.a)("Liberate your communication")))}return r.createElement(a.a,{className:"mx_HomePage mx_HomePage_default"},r.createElement("div",{className:"mx_HomePage_default_wrapper"},o,r.createElement("div",{className:"mx_HomePage_default_buttons"},r.createElement(g.a,{onClick:S,className:"mx_HomePage_button_sendDm"},Object(c.a)("Send a Direct Message")),r.createElement(g.a,{onClick:w,className:"mx_HomePage_button_explore"},Object(c.a)("Explore Public Rooms")),r.createElement(g.a,{onClick:C,className:"mx_HomePage_button_createGroup"},Object(c.a)("Create a Group Chat")))))},k=n(83),R=n.n(k),D=n(178);class I extends f.a{constructor(){super(u.a,{hostSignupActive:!1})}static get instance(){return I.internalInstance}get isHostSignupActive(){return this.state.hostSignupActive}async setHostSignupActive(e){return this.updateState({hostSignupActive:e})}onDispatch(e){}}R()(I,"internalInstance",new I);var A,N=n(85);let F=Object(N.a)("structures.HostSignupAction")(A=class extends i.a.PureComponent{constructor(...e){super(...e),R()(this,"openDialog",async()=>{await I.instance.setHostSignupActive(!0)})}render(){const e=l.a.get().hostSignup;return null!=e&&e.brand?i.a.createElement(D.c,null,i.a.createElement(D.b,{iconClassName:"mx_UserMenu_iconHosting",label:Object(c.a)("Upgrade to %(hostSignupBrand)s",{hostSignupBrand:e.brand}),onClick:this.openDialog})):null}})||A;var M=n(92),P=n.n(M),L=n(179),j=n(370);class U{static fetchJoinedGroups(e){return Object(j.a)("GroupActions.fetchJoinedGroups",()=>e.getJoinedGroups(),null)}}var B,q=n(310),G=n(90),V=n(111);let H=Object(N.a)("views.elements.UserTagTile")(B=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"tagStoreRef",void 0),R()(this,"onTagStoreUpdate",()=>{const e=0===L.a.getSelectedTags().length;this.setState({selected:e})}),R()(this,"onTileClick",e=>{e.preventDefault(),e.stopPropagation(),u.a.dispatch({action:"deselect_tags"})}),this.state={selected:0===L.a.getSelectedTags().length}}componentDidMount(){this.tagStoreRef=L.a.addListener(this.onTagStoreUpdate)}componentWillUnmount(){this.tagStoreRef.remove()}render(){const e=P()({mx_TagTile:!0,mx_TagTile_prototype:!0,mx_TagTile_selected_prototype:this.state.selected,mx_TagTile_home:!0});return i.a.createElement(V.a,{className:e,onClick:this.onTileClick,title:Object(c.a)("Home")},i.a.createElement("div",{className:"mx_TagTile_avatar"},i.a.createElement("div",{className:"mx_TagTile_homeIcon"})))}})||B;var z,K,W;var Y,$=Object(N.a)("structures.GroupFilterPanel")((W=K=class extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{orderedTags:[],selectedTags:[]}),R()(this,"_onGroupMyMembership",()=>{this.unmounted||u.a.dispatch(U.fetchJoinedGroups(this.context))}),R()(this,"_onClientSync",(e,t)=>{"ERROR"!==e&&t!==e&&u.a.dispatch(U.fetchJoinedGroups(this.context))}),R()(this,"onMouseDown",e=>{this.state.selectedTags.length>0&&u.a.dispatch({action:"deselect_tags"})}),R()(this,"onClearFilterClick",e=>{u.a.dispatch({action:"deselect_tags"})})}componentDidMount(){this.unmounted=!1,this.context.on("Group.myMembership",this._onGroupMyMembership),this.context.on("sync",this._onClientSync),this._groupFilterOrderStoreToken=L.a.addListener(()=>{this.unmounted||this.setState({orderedTags:L.a.getOrderedTags()||[],selectedTags:L.a.getSelectedTags()})}),u.a.dispatch(U.fetchJoinedGroups(this.context))}componentWillUnmount(){this.unmounted=!0,this.context.removeListener("Group.myMembership",this._onGroupMyMembership),this.context.removeListener("sync",this._onClientSync),this._groupFilterOrderStoreToken&&this._groupFilterOrderStoreToken.remove()}renderGlobalIcon(){return G.b.getValue("feature_communities_v2_prototypes")?i.a.createElement("div",null,i.a.createElement(H,null),i.a.createElement("hr",{className:"mx_GroupFilterPanel_divider"})):null}render(){const e=d.getComponent("elements.DNDTagTile"),t=d.getComponent("elements.ActionButton"),n=this.state.orderedTags.map((t,n)=>i.a.createElement(e,{key:t,tag:t,index:n,selected:this.state.selectedTags.includes(t)})),o=this.state.selectedTags.length>0,r=P()("mx_GroupFilterPanel",{mx_GroupFilterPanel_items_selected:o});let s=i.a.createElement(t,{tooltip:!0,label:Object(c.a)("Communities"),action:"toggle_my_groups",className:"mx_TagTile mx_TagTile_plus"});return G.b.getValue("feature_communities_v2_prototypes")&&(s=i.a.createElement(t,{tooltip:!0,label:Object(c.a)("Create community"),action:"view_create_group",className:"mx_TagTile mx_TagTile_plus"})),i.a.createElement("div",{className:r,onClick:this.onClearFilterClick},i.a.createElement(a.a,{className:"mx_GroupFilterPanel_scroller",onMouseDown:this.onMouseDown},i.a.createElement(q.Droppable,{droppableId:"tag-panel-droppable",type:"draggable-TagTile"},(e,t)=>i.a.createElement("div",{className:"mx_GroupFilterPanel_tagTileContainer",ref:e.innerRef},this.renderGlobalIcon(),n,i.a.createElement("div",null,s),e.placeholder))))}},R()(K,"contextType",b.a),z=W))||z,Q=n(550),J=n(159);let X=Object(N.a)("structures.CustomRoomTagPanel")(Y=class extends i.a.Component{constructor(e){super(e),this.state={tags:Q.a.getSortedTags()}}componentDidMount(){this._tagStoreToken=Q.a.addListener(()=>{this.setState({tags:Q.a.getSortedTags()})})}componentWillUnmount(){this._tagStoreToken&&this._tagStoreToken.remove()}render(){const e=this.state.tags.map(e=>i.a.createElement(Z,{tag:e,key:e.name})),t=P()("mx_CustomRoomTagPanel",{mx_CustomRoomTagPanel_empty:0===this.state.tags.length});return i.a.createElement("div",{className:t},i.a.createElement("div",{className:"mx_CustomRoomTagPanel_divider"}),i.a.createElement(a.a,{className:"mx_CustomRoomTagPanel_scroller"},e))}})||Y;class Z extends i.a.Component{constructor(...e){super(...e),R()(this,"onClick",()=>{u.a.dispatch({action:"select_custom_room_tag",tag:this.props.tag.name})})}render(){const e=d.getComponent("avatars.BaseAvatar"),t=d.getComponent("elements.AccessibleTooltipButton"),n=this.props.tag,o=P()({CustomRoomTagPanel_tileSelected:n.selected}),r=n.name,a=n.badgeNotifState;let s;if(a){const e=P()({mx_TagTile_badge:!0,mx_TagTile_badgeHighlight:a.hasMentions});s=i.a.createElement("div",{className:e},J.c(a.count))}return i.a.createElement(t,{className:o,onClick:this.onClick,title:r},i.a.createElement("div",{className:"mx_TagTile_avatar"},i.a.createElement(e,{name:n.avatarLetter,idName:r,width:40,height:40}),s))}}var ee,te,ne,oe=X,re=n(110),ie=n(151),ae=n(144),se=n(126),ce=n(124),le=n(449),de=n(88),ue=n(95),he=n.n(ue),pe=n(100),me=n.n(pe),ge=n(99);let fe=Object(N.a)("views.avatars.GroupAvatar")((ne=te=class extends i.a.Component{getGroupAvatarUrl(){return this.props.groupAvatarUrl?Object(ge.b)(this.props.groupAvatarUrl).getThumbnailOfSourceHttp(this.props.width,this.props.height,this.props.resizeMethod):null}render(){const e=this.props,{groupId:t,groupAvatarUrl:n,groupName:o}=e,r=me()(e,["groupId","groupAvatarUrl","groupName"]);return i.a.createElement(p.a,he()({name:o||this.props.groupId[1],idName:this.props.groupId,url:this.getGroupAvatarUrl()},r))}},R()(te,"defaultProps",{width:36,height:36,resizeMethod:"crop"}),ee=ne))||ee;var _e=n(219);class be extends i.a.Component{constructor(e){super(e),R()(this,"onTileMouseEnter",()=>{this.setState({hover:!0})}),R()(this,"onTileMouseLeave",()=>{this.setState({hover:!1})}),this.state={hover:!1}}render(){var e;const t=P()({mx_ExtraTile:!0,mx_RoomTile:!0,mx_RoomTile_selected:this.props.isSelected,mx_RoomTile_minimized:this.props.isMinimized});let n;this.props.notificationState&&(n=i.a.createElement(_e.a,{notification:this.props.notificationState,forceCount:!1}));let o=this.props.displayName;"string"!=typeof o&&(o=""),o=o.replace(":",":");const r=P()({mx_RoomTile_name:!0,mx_RoomTile_nameHasUnreadEvents:null===(e=this.props.notificationState)||void 0===e?void 0:e.isUnread});let a=i.a.createElement("div",{className:"mx_RoomTile_nameContainer"},i.a.createElement("div",{title:o,className:r,tabIndex:-1,dir:"auto"},o));this.props.isMinimized&&(a=null);let s=ie.a;return this.props.isMinimized&&(s=ie.b),i.a.createElement(i.a.Fragment,null,i.a.createElement(s,{className:t,onMouseEnter:this.onTileMouseEnter,onMouseLeave:this.onTileMouseLeave,onClick:this.props.onClick,role:"treeitem",title:this.props.isMinimized?o:void 0},i.a.createElement("div",{className:"mx_RoomTile_avatarContainer"},this.props.avatar),a,i.a.createElement("div",{className:"mx_RoomTile_badgeContainer"},n)))}}var ve=n(217);class ye extends ve.b{constructor(e,t,n){super(),this._symbol=e,this._count=t,this._color=n}static forCount(e,t){return new ye(null,e,t)}static forSymbol(e,t){return new ye(e,0,t)}}var Ee,Se=n(216),we=n(166),Ce=n(117),Te=n(128),xe=n(164),Oe=n(137),ke=n(147),Re=n(291),De=n(123);const Ie=[ce.a.Invite,ce.a.Favourite,ce.a.DM,ce.a.Untagged,ce.a.LowPriority,ce.a.ServerNotice,ce.a.Suggested,ce.a.Archived],Ae=ce.a.LowPriority,Ne=[ce.a.DM,ce.a.Untagged],Fe=e=>{(e||u.a).dispatch({action:"view_create_chat"})},Me=e=>i.a.createElement(D.c,{first:!0},i.a.createElement(D.b,{label:Object(c.a)("Start a Conversation"),iconClassName:"mx_RoomList_iconPlus",onClick:t=>{t.preventDefault(),t.stopPropagation(),e(),u.a.dispatch({action:"view_create_chat"})}}),i.a.createElement(D.b,{label:Object(c.a)("Open dial pad"),iconClassName:"mx_RoomList_iconDialpad",onClick:t=>{t.preventDefault(),t.stopPropagation(),e(),u.a.fire(h.a.OpenDialPad)}})),Pe={[ce.a.Invite]:{sectionLabel:Object(c.b)("Invites"),isInvite:!0,defaultHidden:!1},[ce.a.Favourite]:{sectionLabel:Object(c.b)("Favourites"),isInvite:!1,defaultHidden:!1},[ce.a.DM]:{sectionLabel:Object(c.b)("People"),isInvite:!1,defaultHidden:!1,addRoomLabel:Object(c.b)("Start chat")},[ce.a.Untagged]:{sectionLabel:Object(c.b)("Rooms"),isInvite:!1,defaultHidden:!1,addRoomLabel:Object(c.b)("Add room"),addRoomContextMenu:e=>{if(ke.e.instance.activeSpace){const t=ke.e.instance.activeSpace.currentState.maySendStateEvent(re.a.SpaceChild,de.a.get().getUserId());return i.a.createElement(D.c,{first:!0},i.a.createElement(D.b,{label:Object(c.a)("Create new room"),iconClassName:"mx_RoomList_iconPlus",onClick:t=>{t.preventDefault(),t.stopPropagation(),e(),Object(Re.d)(de.a.get(),ke.e.instance.activeSpace)},disabled:!t,tooltip:t?void 0:Object(c.a)("You do not have permissions to create new rooms in this space")}),i.a.createElement(D.b,{label:Object(c.a)("Add existing room"),iconClassName:"mx_RoomList_iconHash",onClick:t=>{t.preventDefault(),t.stopPropagation(),e(),Object(Re.c)(de.a.get(),ke.e.instance.activeSpace)},disabled:!t,tooltip:t?void 0:Object(c.a)("You do not have permissions to add rooms to this space")}),i.a.createElement(D.b,{label:Object(c.a)("Explore rooms"),iconClassName:"mx_RoomList_iconBrowse",onClick:t=>{t.preventDefault(),t.stopPropagation(),e(),u.a.fire(h.a.ViewRoomDirectory)}}))}return i.a.createElement(D.c,{first:!0},i.a.createElement(D.b,{label:Object(c.a)("Create new room"),iconClassName:"mx_RoomList_iconPlus",onClick:t=>{t.preventDefault(),t.stopPropagation(),e(),u.a.dispatch({action:"view_create_room"})}}),i.a.createElement(D.b,{label:xe.a.instance.getSelectedCommunityId()?Object(c.a)("Explore community rooms"):Object(c.a)("Explore public rooms"),iconClassName:"mx_RoomList_iconExplore",onClick:t=>{t.preventDefault(),t.stopPropagation(),e(),u.a.fire(h.a.ViewRoomDirectory)}}))}},[ce.a.LowPriority]:{sectionLabel:Object(c.b)("Low priority"),isInvite:!1,defaultHidden:!1},[ce.a.ServerNotice]:{sectionLabel:Object(c.b)("System Alerts"),isInvite:!1,defaultHidden:!1},[ce.a.Archived]:{sectionLabel:Object(c.b)("Historical"),isInvite:!1,defaultHidden:!0},[ce.a.Suggested]:{sectionLabel:Object(c.b)("Suggested Rooms"),isInvite:!1,defaultHidden:!1}};let Le=Object(N.a)("views.rooms.RoomList")(Ee=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"dispatcherRef",void 0),R()(this,"customTagStoreRef",void 0),R()(this,"tagAesthetics",void 0),R()(this,"roomStoreToken",void 0),R()(this,"onRoomViewStoreUpdate",()=>{this.setState({currentRoomId:se.a.getRoomId()})}),R()(this,"onAction",e=>{if(e.action===h.a.ViewRoomDelta){const t=e,n=se.a.getRoomId(),o=this.getRoomDelta(n,t.delta,t.unread);o&&u.a.dispatch({action:"view_room",room_id:o.roomId,show_room_tile:!0})}else e.action===h.a.PstnSupportUpdated&&(this.updateDmAddRoomAction(),this.updateLists())}),R()(this,"getRoomDelta",(e,t,n=!1)=>{const o=ae.b.instance.orderedLists,r=[];Ie.forEach(t=>{let i=o[t];n&&(i=i.filter(t=>{const n=we.a.instance.getRoomState(t);return n.room.roomId===e||n.isUnread})),r.push(...i)});const i=r.findIndex(t=>t.roomId===e),[a]=r.slice((i+t)%r.length);return a}),R()(this,"updateSuggestedRooms",e=>{this.setState({suggestedRooms:e})}),R()(this,"updateLists",()=>{const e=ae.b.instance.orderedLists;G.b.getValue("advancedRoomListLogging")&&console.log("new lists",e);const t=Object.keys(this.state.sublists),n=Object.keys(e).filter(e=>!Object(ce.d)(e)||Q.a.getTags()[e]),o=!!ae.b.instance.getFirstNameFilterCondition();let r=this.state.isNameFiltering!==o||Object(Ce.d)(t,n);if(!r)for(const t of n){const n=this.state.sublists[t],o=e[t];if(n.length!==o.length){r=!0;break}}if(r){const t=Object(Te.g)(e,n),r=Object(Te.f)(t,(e,t)=>Object(Ce.b)(t));this.setState({sublists:r,isNameFiltering:o},()=>{this.props.onResize()})}}),R()(this,"onStartChat",()=>{var e;const t=null===(e=ae.b.instance.getFirstNameFilterCondition())||void 0===e?void 0:e.search;u.a.dispatch({action:"view_create_chat",initialText:t})}),R()(this,"onExplore",()=>{var e;const t=null===(e=ae.b.instance.getFirstNameFilterCondition())||void 0===e?void 0:e.search;u.a.dispatch({action:h.a.ViewRoomDirectory,initialText:t})}),R()(this,"onSpaceInviteClick",()=>{var e;const t=null===(e=ae.b.instance.getFirstNameFilterCondition())||void 0===e?void 0:e.search;Object(Re.e)(this.props.activeSpace,t)}),this.state={sublists:{},isNameFiltering:!!ae.b.instance.getFirstNameFilterCondition(),suggestedRooms:ke.e.instance.suggestedRooms},this.tagAesthetics=Object(Te.f)(Pe),this.updateDmAddRoomAction()}componentDidMount(){this.dispatcherRef=u.a.register(this.onAction),this.roomStoreToken=se.a.addListener(this.onRoomViewStoreUpdate),ke.e.instance.on(ke.b,this.updateSuggestedRooms),ae.b.instance.on(ae.a,this.updateLists),this.customTagStoreRef=Q.a.addListener(this.updateLists),this.updateLists()}componentWillUnmount(){ke.e.instance.off(ke.b,this.updateSuggestedRooms),ae.b.instance.off(ae.a,this.updateLists),u.a.unregister(this.dispatcherRef),this.customTagStoreRef&&this.customTagStoreRef.remove(),this.roomStoreToken&&this.roomStoreToken.remove()}updateDmAddRoomAction(){const e=Object(Te.f)(Pe[ce.a.DM]);Oe.c.sharedInstance().getSupportsPstnProtocol()?e.addRoomContextMenu=Me:e.onAddRoom=Fe,this.tagAesthetics[ce.a.DM]=e}renderSuggestedRooms(){return this.state.suggestedRooms.map(e=>{const t=e.name||e.canonical_alias||e.aliases.pop()||Object(c.a)("Empty room"),n=i.a.createElement(De.a,{oobData:{name:t,avatarUrl:e.avatar_url},width:32,height:32,resizeMethod:"crop"});return i.a.createElement(be,{isMinimized:this.props.isMinimized,isSelected:this.state.currentRoomId===e.room_id,displayName:t,avatar:n,onClick:()=>{u.a.dispatch({action:"view_room",room_id:e.room_id,oobData:{avatarUrl:e.avatar_url,name:t}})},key:"suggestedRoomTile_"+e.room_id})})}renderCommunityInvites(){return de.a.get().getGroups().filter(e=>"invite"===e.myMembership).map(e=>{const t=i.a.createElement(fe,{groupId:e.groupId,groupName:e.name,groupAvatarUrl:e.avatarUrl,width:32,height:32,resizeMethod:"crop"});return i.a.createElement(be,{isMinimized:this.props.isMinimized,isSelected:!1,displayName:e.name,avatar:t,notificationState:ye.forSymbol("!",Se.a.Red),onClick:()=>{u.a.dispatch({action:"view_group",group_id:e.groupId})},key:"temporaryGroupTile_"+e.groupId})})}renderSublists(){const e=!this.state.isNameFiltering&&Object.values(ae.b.instance.unfilteredLists).every(e=>!(null!=e&&e.length));return Ie.reduce((e,t)=>{if(t===Ae){const t=Object.keys(this.state.sublists).filter(e=>Object(ce.d)(e));e.push(...t)}return e.push(t),e},[]).map(t=>{let n=null;t===ce.a.Invite?n=this.renderCommunityInvites():t===ce.a.Suggested&&(n=this.renderSuggestedRooms());const o=Object(ce.d)(t)?((r=t).startsWith("u.")&&(r=r.substring(2)),{sectionLabel:Object(c.b)("Custom Tag"),sectionLabelRaw:r,isInvite:!1,defaultHidden:!1}):this.tagAesthetics[t];var r;if(!o)throw new Error(`Tag ${t} does not have aesthetics`);return i.a.createElement(le.b,{key:"sublist-"+t,tagId:t,forRooms:!0,startAsHidden:o.defaultHidden,label:o.sectionLabelRaw?o.sectionLabelRaw:Object(c.a)(o.sectionLabel),onAddRoom:o.onAddRoom,addRoomLabel:o.addRoomLabel?Object(c.a)(o.addRoomLabel):o.addRoomLabel,addRoomContextMenu:o.addRoomContextMenu,isMinimized:this.props.isMinimized,onResize:this.props.onResize,showSkeleton:e,extraTiles:n,alwaysVisible:Ne.includes(t)})})}render(){let e;if(!this.props.isMinimized)if(this.state.isNameFiltering)e=i.a.createElement("div",{className:"mx_RoomList_explorePrompt"},i.a.createElement("div",null,Object(c.a)("Can't see what you’re looking for?")),i.a.createElement(g.a,{className:"mx_RoomList_explorePrompt_startChat",kind:"link",onClick:this.onStartChat},Object(c.a)("Start a new chat")),i.a.createElement(g.a,{className:"mx_RoomList_explorePrompt_explore",kind:"link",onClick:this.onExplore},this.props.activeSpace?Object(c.a)("Explore rooms"):Object(c.a)("Explore all public rooms")));else if(this.props.activeSpace)e=i.a.createElement("div",{className:"mx_RoomList_explorePrompt"},i.a.createElement("div",null,Object(c.a)("Quick actions")),this.props.activeSpace.canInvite(de.a.get().getUserId())&&i.a.createElement(g.a,{className:"mx_RoomList_explorePrompt_spaceInvite",onClick:this.onSpaceInviteClick},Object(c.a)("Invite people")),i.a.createElement(g.a,{className:"mx_RoomList_explorePrompt_spaceExplore",onClick:this.onExplore},Object(c.a)("Explore rooms")));else if(Object.values(this.state.sublists).some(e=>e.length>0)){const t=ae.b.instance.unfilteredLists,n=t[ce.a.Untagged]||[],o=t[ce.a.Archived]||[],r=t[ce.a.Favourite]||[];n.length<1&&o<1&&r<1&&(e=i.a.createElement("div",{className:"mx_RoomList_explorePrompt"},i.a.createElement("div",null,Object(c.a)("Use the + to make a new room or explore existing ones below")),i.a.createElement(g.a,{className:"mx_RoomList_explorePrompt_startChat",kind:"link",onClick:this.onStartChat},Object(c.a)("Start a new chat")),i.a.createElement(g.a,{className:"mx_RoomList_explorePrompt_explore",kind:"link",onClick:this.onExplore},Object(c.a)("Explore all public rooms"))))}const t=this.renderSublists();return i.a.createElement(ie.c,{handleHomeEnd:!0,onKeyDown:this.props.onKeyDown},({onKeyDownHandler:n})=>i.a.createElement("div",{onFocus:this.props.onFocus,onBlur:this.props.onBlur,onKeyDown:n,className:"mx_RoomList",role:"tree","aria-label":Object(c.a)("Rooms")},t,e))}})||Ee;var je,Ue=n(347),Be=n(149),qe=n(104),Ge=n(91),Ve=n(86),He=n.n(Ve),ze=n(681);let Ke=Object(N.a)("views.dialogs.BugReportDialog")(je=class extends i.a.Component{constructor(e){super(e),R()(this,"_onDownload",async e=>{this.setState({downloadBusy:!0}),this._downloadProgressCallback(Object(c.a)("Preparing to download logs"));try{await Object(ze.b)({sendLogs:!0,progressCallback:this._downloadProgressCallback,label:this.props.label}),this.setState({downloadBusy:!1,downloadProgress:null})}catch(e){this._unmounted||this.setState({downloadBusy:!1,downloadProgress:Object(c.a)("Failed to send logs: ")+""+e.message})}}),this.state={sendLogs:!0,busy:!1,err:null,issueUrl:"",text:e.initialText||"",progress:null,downloadBusy:!1,downloadProgress:null},this._unmounted=!1,this._onSubmit=this._onSubmit.bind(this),this._onCancel=this._onCancel.bind(this),this._onTextChange=this._onTextChange.bind(this),this._onIssueUrlChange=this._onIssueUrlChange.bind(this),this._onSendLogsChange=this._onSendLogsChange.bind(this),this._sendProgressCallback=this._sendProgressCallback.bind(this),this._downloadProgressCallback=this._downloadProgressCallback.bind(this)}componentWillUnmount(){this._unmounted=!0}_onCancel(e){this.props.onFinished(!1)}_onSubmit(e){if(!(this.state.text&&this.state.text.trim()||this.state.issueUrl&&this.state.issueUrl.trim()))return void this.setState({err:Object(c.a)("Please tell us what went wrong or, better, create a GitHub issue that describes the problem.")});const t=(this.state.text.length>0?this.state.text+"\n\n":"")+"Issue: "+(this.state.issueUrl.length>0?this.state.issueUrl:"No issue link given");this.setState({busy:!0,progress:null,err:null}),this._sendProgressCallback(Object(c.a)("Preparing to send logs")),Object(ze.a)(l.a.get().bug_report_endpoint_url,{userText:t,sendLogs:!0,progressCallback:this._sendProgressCallback,label:this.props.label}).then(()=>{if(!this._unmounted){this.props.onFinished(!1);const e=d.getComponent("dialogs.QuestionDialog");Ge.a.createTrackedDialog("Bug report sent","",e,{title:Object(c.a)("Logs sent"),description:Object(c.a)("Thank you!"),hasCancelButton:!1})}},e=>{this._unmounted||this.setState({busy:!1,progress:null,err:Object(c.a)("Failed to send logs: ")+""+e.message})})}_onTextChange(e){this.setState({text:e.target.value})}_onIssueUrlChange(e){this.setState({issueUrl:e.target.value})}_onSendLogsChange(e){this.setState({sendLogs:e.target.checked})}_sendProgressCallback(e){this._unmounted||this.setState({progress:e})}_downloadProgressCallback(e){this._unmounted||this.setState({downloadProgress:e})}render(){const e=d.getComponent("elements.Spinner"),t=d.getComponent("views.dialogs.BaseDialog"),n=d.getComponent("views.elements.DialogButtons"),o=d.getComponent("elements.Field");let r=null;this.state.err&&(r=i.a.createElement("div",{className:"error"},this.state.err));let a,s=null;return this.state.busy&&(s=i.a.createElement("div",{className:"progress"},i.a.createElement(e,null),this.state.progress," ...")),window.Modernizr&&Object.values(window.Modernizr).some(e=>!1===e)&&(a=i.a.createElement("p",null,i.a.createElement("b",null,Object(c.a)("Reminder: Your browser is unsupported, so your experience may be unpredictable.")))),i.a.createElement(t,{className:"mx_BugReportDialog",onFinished:this._onCancel,title:Object(c.a)("Submit debug logs"),contentId:"mx_Dialog_content"},i.a.createElement("div",{className:"mx_Dialog_content",id:"mx_Dialog_content"},a,i.a.createElement("p",null,Object(c.a)("Debug logs contain application usage data including your username, the IDs or aliases of the rooms or groups you have visited and the usernames of other users. They do not contain messages.")),i.a.createElement("p",null,i.a.createElement("b",null,Object(c.a)("Before submitting logs, you must <a>create a GitHub issue</a> to describe your problem.",{},{a:e=>i.a.createElement("a",{target:"_blank",href:"https://github.com/vector-im/element-web/issues/new"},e)}))),i.a.createElement("div",{className:"mx_BugReportDialog_download"},i.a.createElement(g.a,{onClick:this._onDownload,kind:"link",disabled:this.state.downloadBusy},Object(c.a)("Download logs")),this.state.downloadProgress&&i.a.createElement("span",null,this.state.downloadProgress," ...")),i.a.createElement(o,{type:"text",className:"mx_BugReportDialog_field_input",label:Object(c.a)("GitHub issue"),onChange:this._onIssueUrlChange,value:this.state.issueUrl,placeholder:"https://github.com/vector-im/element-web/issues/..."}),i.a.createElement(o,{className:"mx_BugReportDialog_field_input",element:"textarea",label:Object(c.a)("Notes"),rows:5,onChange:this._onTextChange,value:this.state.text,placeholder:Object(c.a)("If there is additional context that would help in analysing the issue, such as what you were doing at the time, room IDs, user IDs, etc., please include those things here.")}),s,r),i.a.createElement(n,{primaryButton:Object(c.a)("Send logs"),onPrimaryButtonClick:this._onSubmit,focus:!0,onCancel:this._onCancel,disabled:this.state.busy}))}})||je;Ke.propTypes={onFinished:He.a.func.isRequired,initialText:He.a.string};var We=n(255),Ye=n(350);var $e,Qe=e=>{const[t,n]=Object(r.useState)(""),[o,a]=Object(r.useState)(""),s=()=>{e.onFinished(),Ge.a.createTrackedDialog("Bug Report Dialog","",Ke,{})},d=E.a.instance.canEnable(),u=l.a.get().brand;let h,p;d&&(h=i.a.createElement(i.a.Fragment,null,i.a.createElement("hr",null),i.a.createElement("div",{className:"mx_FeedbackDialog_section mx_FeedbackDialog_rateApp"},i.a.createElement("h3",null,Object(c.a)("Rate %(brand)s",{brand:u})),i.a.createElement("p",null,Object(c.a)("Tell us below how you feel about %(brand)s so far.",{brand:u})),i.a.createElement("p",null,Object(c.a)("Please go into as much detail as you like, so we can track down the problem.")),i.a.createElement(Ye.a,{name:"feedbackRating",value:t,onChange:n,definitions:[{value:"1",label:"😠"},{value:"2",label:"😞"},{value:"3",label:"😑"},{value:"4",label:"😄"},{value:"5",label:"😍"}]}),i.a.createElement(qe.a,{id:"feedbackComment",label:Object(c.a)("Add comment"),placeholder:Object(c.a)("Comment"),type:"text",autoComplete:"off",value:o,element:"textarea",onChange:e=>{a(e.target.value)}})))),d&&(p=i.a.createElement("h2",null,Object(c.a)("There are two ways you can provide feedback and help us improve %(brand)s.",{brand:u})));let m=null;return l.a.get().bug_report_endpoint_url&&(m=i.a.createElement("p",null,Object(c.a)("PRO TIP: If you start a bug, please submit <debugLogsLink>debug logs</debugLogsLink> to help us track down the problem.",{},{debugLogsLink:e=>i.a.createElement(g.a,{kind:"link",onClick:s},e)}))),i.a.createElement(Be.a,{className:"mx_FeedbackDialog",hasCancelButton:!!d,title:Object(c.a)("Feedback"),description:i.a.createElement(i.a.Fragment,null,p,i.a.createElement("div",{className:"mx_FeedbackDialog_section mx_FeedbackDialog_reportBug"},i.a.createElement("h3",null,Object(c.a)("Report a bug")),i.a.createElement("p",null,Object(c.a)("Please view <existingIssuesLink>existing bugs on Github</existingIssuesLink> first. No match? <newIssueLink>Start a new one</newIssueLink>.",{},{existingIssuesLink:e=>i.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:"https://github.com/vector-im/element-web/issues?q=is%3Aopen+is%3Aissue+sort%3Areactions-%2B1-desc"},e),newIssueLink:e=>i.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:"https://github.com/vector-im/element-web/issues/new"},e)})),m),h),button:d?Object(c.a)("Send feedback"):Object(c.a)("Go back"),buttonDisabled:d&&""===t,onFinished:n=>{d&&n&&(E.a.instance.reportFeedback(parseInt(t,10),o),Ge.a.createTrackedDialog("Feedback sent","",We.a,{title:Object(c.a)("Feedback sent"),description:Object(c.a)("Thank you!")})),e.onFinished()}})},Je=n(256);let Xe=Object(N.a)("views.dialogs.LogoutDialog")($e=class extends i.a.Component{constructor(){super(),R()(this,"defaultProps",{onFinished:function(){}}),this._onSettingsLinkClick=this._onSettingsLinkClick.bind(this),this._onExportE2eKeysClicked=this._onExportE2eKeysClicked.bind(this),this._onFinished=this._onFinished.bind(this),this._onSetRecoveryMethodClick=this._onSetRecoveryMethodClick.bind(this),this._onLogoutConfirm=this._onLogoutConfirm.bind(this);const e=de.a.get(),t=e.isCryptoEnabled()&&!e.getKeyBackupEnabled();this.state={shouldLoadBackupStatus:t,loading:t,backupInfo:null,error:null},t&&this._loadBackupStatus()}async _loadBackupStatus(){try{const e=await de.a.get().getKeyBackupVersion();this.setState({loading:!1,backupInfo:e})}catch(e){console.log("Unable to fetch key backup status",e),this.setState({loading:!1,error:e})}}_onSettingsLinkClick(){this.props.onFinished()}_onExportE2eKeysClicked(){Ge.a.createTrackedDialogAsync("Export E2E Keys","",n.e(3).then(n.bind(null,1375)),{matrixClient:de.a.get()})}_onFinished(e){e&&u.a.dispatch({action:"logout"}),this.props.onFinished()}_onSetRecoveryMethodClick(){this.state.backupInfo?Ge.a.createTrackedDialog("Restore Backup","",Je.a,null,null,!1,!0):Ge.a.createTrackedDialogAsync("Key Backup","Key Backup",n.e(4).then(n.bind(null,739)),null,null,!1,!0),this.props.onFinished()}_onLogoutConfirm(){u.a.dispatch({action:"logout"}),this.props.onFinished()}render(){if(this.state.shouldLoadBackupStatus){const e=d.getComponent("views.dialogs.BaseDialog"),t=i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("Encrypted messages are secured with end-to-end encryption. Only you and the recipient(s) have the keys to read these messages.")),i.a.createElement("p",null,Object(c.a)("Back up your keys before signing out to avoid losing them.")));let n;if(this.state.loading){const e=d.getComponent("views.elements.Spinner");n=i.a.createElement(e,null)}else{const e=d.getComponent("views.elements.DialogButtons");let o;o=this.state.backupInfo?Object(c.a)("Connect this session to Key Backup"):Object(c.a)("Start using Key Backup"),n=i.a.createElement("div",null,i.a.createElement("div",{className:"mx_Dialog_content",id:"mx_Dialog_content"},t),i.a.createElement(e,{primaryButton:o,hasCancel:!1,onPrimaryButtonClick:this._onSetRecoveryMethodClick,focus:!0},i.a.createElement("button",{onClick:this._onLogoutConfirm},Object(c.a)("I don't want my encrypted messages"))),i.a.createElement("details",null,i.a.createElement("summary",null,Object(c.a)("Advanced")),i.a.createElement("p",null,i.a.createElement("button",{onClick:this._onExportE2eKeysClicked},Object(c.a)("Manually export keys")))))}return i.a.createElement(e,{title:Object(c.a)("You'll lose access to your encrypted messages"),contentId:"mx_Dialog_content",hasCancel:!0,onFinished:this._onFinished},n)}{const e=d.getComponent("views.dialogs.QuestionDialog");return i.a.createElement(e,{hasCancelButton:!0,title:Object(c.a)("Sign out"),description:Object(c.a)("Are you sure you want to sign out?"),button:Object(c.a)("Sign out"),onFinished:this._onFinished})}}})||$e;var Ze,et=n(253),tt=n(98),nt=n(145),ot=n(118),rt=n(130),it=n(122),at=n(154);let st=Object(N.a)("views.dialogs.EditCommunityPrototypeDialog")(Ze=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"avatarUploadRef",i.a.createRef()),R()(this,"onNameChange",e=>{this.setState({name:e.target.value})}),R()(this,"onSubmit",async e=>{if(e.preventDefault(),e.stopPropagation(),!this.state.busy){this.setState({busy:!0});try{let e=this.state.currentAvatarUrl||"";this.state.avatarFile&&(e=await de.a.get().uploadContent(this.state.avatarFile)),await de.a.get().setGroupProfile(this.props.communityId,{name:this.state.name,avatar_url:e}),await at.a.refreshGroupProfile(de.a.get(),this.props.communityId),this.props.onFinished(!0)}catch(e){console.error(e),this.setState({busy:!1,error:Object(c.a)("There was an error updating your community. The server is unable to process your request.")})}}}),R()(this,"onAvatarChanged",e=>{if(e.target.files&&e.target.files.length){this.setState({busy:!0});const t=e.target.files[0],n=new FileReader;n.onload=e=>{this.setState({avatarFile:t,busy:!1,avatarPreview:e.target.result})},n.readAsDataURL(t)}else this.setState({avatarFile:null})}),R()(this,"onChangeAvatar",()=>{this.avatarUploadRef.current&&this.avatarUploadRef.current.click()});const t=xe.a.instance.getCommunityProfile(e.communityId);this.state={name:(null==t?void 0:t.name)||"",error:null,busy:!1,avatarFile:null,avatarPreview:null,currentAvatarUrl:null==t?void 0:t.avatarUrl}}render(){let e=i.a.createElement("img",{src:this.state.avatarPreview,className:"mx_EditCommunityPrototypeDialog_avatar"});if(!this.state.avatarPreview)if(this.state.currentAvatarUrl){const t=Object(ge.b)(this.state.currentAvatarUrl).srcHttp;e=i.a.createElement("img",{src:t,className:"mx_EditCommunityPrototypeDialog_avatar"})}else e=i.a.createElement("div",{className:"mx_EditCommunityPrototypeDialog_placeholderAvatar"});return i.a.createElement(it.a,{className:"mx_EditCommunityPrototypeDialog",onFinished:this.props.onFinished,title:Object(c.a)("Update community")},i.a.createElement("form",{onSubmit:this.onSubmit},i.a.createElement("div",{className:"mx_Dialog_content"},i.a.createElement("div",{className:"mx_EditCommunityPrototypeDialog_rowName"},i.a.createElement(qe.a,{value:this.state.name,onChange:this.onNameChange,placeholder:Object(c.a)("Enter name"),label:Object(c.a)("Enter name")})),i.a.createElement("div",{className:"mx_EditCommunityPrototypeDialog_rowAvatar"},i.a.createElement("input",{type:"file",style:{display:"none"},ref:this.avatarUploadRef,accept:"image/*",onChange:this.onAvatarChanged}),i.a.createElement(g.a,{onClick:this.onChangeAvatar,className:"mx_EditCommunityPrototypeDialog_avatarContainer"},e),i.a.createElement("div",{className:"mx_EditCommunityPrototypeDialog_tip"},i.a.createElement("b",null,Object(c.a)("Add image (optional)")),i.a.createElement("span",null,Object(c.a)("An image will help people identify your community.")))),i.a.createElement(g.a,{kind:"primary",onClick:this.onSubmit,disabled:this.state.busy},Object(c.a)("Save")))))}})||Ze;var ct,lt=n(106),dt=n(200);let ut=Object(N.a)("structures.UserMenu")(ct=class extends i.a.Component{constructor(e){super(e),R()(this,"dispatcherRef",void 0),R()(this,"themeWatcherRef",void 0),R()(this,"dndWatcherRef",void 0),R()(this,"buttonRef",Object(r.createRef)()),R()(this,"tagStoreRef",void 0),R()(this,"onTagStoreUpdate",()=>{this.forceUpdate()}),R()(this,"onProfileUpdate",async()=>{this.forceUpdate()}),R()(this,"onSelectedSpaceUpdate",async e=>{this.setState({selectedSpace:e})}),R()(this,"onThemeChanged",()=>{this.setState({isDarkTheme:this.isUserOnDarkTheme()})}),R()(this,"onAction",e=>{e.action===h.a.ToggleUserMenu&&(this.state.contextMenuPosition?this.setState({contextMenuPosition:null}):this.buttonRef.current&&this.buttonRef.current.click())}),R()(this,"onOpenMenuClick",e=>{e.preventDefault(),e.stopPropagation();const t=e.target;this.setState({contextMenuPosition:t.getBoundingClientRect()})}),R()(this,"onContextMenu",e=>{e.preventDefault(),e.stopPropagation(),this.setState({contextMenuPosition:{left:e.clientX,top:e.clientY,width:20,height:0}})}),R()(this,"onCloseMenu",()=>{this.setState({contextMenuPosition:null})}),R()(this,"onSwitchThemeClick",e=>{e.preventDefault(),e.stopPropagation(),G.b.setValue("use_system_theme",null,tt.a.DEVICE,!1);const t=this.state.isDarkTheme?"light":"dark";G.b.setValue("theme",null,tt.a.DEVICE,t)}),R()(this,"onSettingsOpen",(e,t)=>{e.preventDefault(),e.stopPropagation();const n={action:h.a.ViewUserSettings,initialTabId:t};u.a.dispatch(n),this.setState({contextMenuPosition:null})}),R()(this,"onShowArchived",e=>{e.preventDefault(),e.stopPropagation(),console.log("TODO: Show archived rooms")}),R()(this,"onProvideFeedback",e=>{e.preventDefault(),e.stopPropagation(),Ge.a.createTrackedDialog("Feedback Dialog","",Qe),this.setState({contextMenuPosition:null})}),R()(this,"onSignOutClick",async e=>{var t;e.preventDefault(),e.stopPropagation();const n=de.a.get();n&&n.isCryptoEnabled()&&null!==(t=await n.exportRoomKeys())&&void 0!==t&&t.length?Ge.a.createTrackedDialog("Logout from LeftPanel","",Xe):u.a.dispatch({action:"logout"}),this.setState({contextMenuPosition:null})}),R()(this,"onSignInClick",()=>{u.a.dispatch({action:"start_login"}),this.setState({contextMenuPosition:null})}),R()(this,"onRegisterClick",()=>{u.a.dispatch({action:"start_registration"}),this.setState({contextMenuPosition:null})}),R()(this,"onHomeClick",e=>{e.preventDefault(),e.stopPropagation(),u.a.dispatch({action:"view_home_page"}),this.setState({contextMenuPosition:null})}),R()(this,"onCommunitySettingsClick",e=>{e.preventDefault(),e.stopPropagation(),Ge.a.createTrackedDialog("Edit Community","",st,{communityId:xe.a.instance.getSelectedCommunityId()}),this.setState({contextMenuPosition:null})}),R()(this,"onCommunityMembersClick",e=>{e.preventDefault(),e.stopPropagation();const t=xe.a.instance.getSelectedCommunityGeneralChat();t?(u.a.dispatch({action:"view_room",room_id:t.roomId},!0),u.a.dispatch({action:h.a.SetRightPanelPhase,phase:ot.c.RoomMemberList})):Ge.a.createTrackedDialog("Failed to find general chat","",rt.a,{title:Object(c.a)("Failed to find the general chat for this community"),description:Object(c.a)("Failed to find the general chat for this community")}),this.setState({contextMenuPosition:null})}),R()(this,"onCommunityInviteClick",e=>{e.preventDefault(),e.stopPropagation(),Object(nt.e)(xe.a.instance.getSelectedCommunityId()),this.setState({contextMenuPosition:null})}),R()(this,"onDndToggle",e=>{e.stopPropagation();const t=G.b.getValue("doNotDisturb");G.b.setValue("doNotDisturb",null,tt.a.DEVICE,!t)}),R()(this,"renderContextMenu",()=>{if(!this.state.contextMenuPosition)return null;const e=xe.a.instance.getSelectedCommunityName();let t;const o=l.a.get().hostSignup;if(de.a.get().isGuest())t=i.a.createElement("div",{className:"mx_UserMenu_contextMenu_header mx_UserMenu_contextMenu_guestPrompts"},Object(c.a)("Got an account? <a>Sign in</a>",{},{a:e=>i.a.createElement(g.a,{kind:"link",onClick:this.onSignInClick},e)}),Object(c.a)("New here? <a>Create an account</a>",{},{a:e=>i.a.createElement(g.a,{kind:"link",onClick:this.onRegisterClick},e)}));else if(o&&o&&o.url){const e=o.domains||[],n=de.a.get().getDomain(),r=e.filter(e=>e===n||n.endsWith("."+e));(!o.domains||r.length>0)&&(t=i.a.createElement("div",{onClick:this.onCloseMenu},i.a.createElement(F,null)))}let r,a=null;this.hasHomePage&&(a=i.a.createElement(D.b,{iconClassName:"mx_UserMenu_iconHome",label:Object(c.a)("Home"),onClick:this.onHomeClick})),G.b.getValue(lt.a.Feedback)&&(r=i.a.createElement(D.b,{iconClassName:"mx_UserMenu_iconMessage",label:Object(c.a)("Feedback"),onClick:this.onProvideFeedback}));let s=i.a.createElement("div",{className:"mx_UserMenu_contextMenu_name"},i.a.createElement("span",{className:"mx_UserMenu_contextMenu_displayName"},m.a.instance.displayName),i.a.createElement("span",{className:"mx_UserMenu_contextMenu_userId"},de.a.get().getUserId())),d=i.a.createElement(i.a.Fragment,null,i.a.createElement(D.c,null,a,i.a.createElement(D.b,{iconClassName:"mx_UserMenu_iconBell",label:Object(c.a)("Notification settings"),onClick:e=>this.onSettingsOpen(e,Ue.a)}),i.a.createElement(D.b,{iconClassName:"mx_UserMenu_iconLock",label:Object(c.a)("Security & privacy"),onClick:e=>this.onSettingsOpen(e,Ue.b)}),i.a.createElement(D.b,{iconClassName:"mx_UserMenu_iconSettings",label:Object(c.a)("All settings"),onClick:e=>this.onSettingsOpen(e,null)}),r),i.a.createElement(D.c,{red:!0},i.a.createElement(D.b,{iconClassName:"mx_UserMenu_iconSignOut",label:Object(c.a)("Sign out"),onClick:this.onSignOutClick}))),u=null;if(e){const t=xe.a.instance.getSelectedCommunityId();let n,o;s=i.a.createElement("div",{className:"mx_UserMenu_contextMenu_name"},i.a.createElement("span",{className:"mx_UserMenu_contextMenu_displayName"},e)),xe.a.instance.canInviteTo(t)&&(o=i.a.createElement(D.b,{iconClassName:"mx_UserMenu_iconInvite",label:Object(c.a)("Invite"),onClick:this.onCommunityInviteClick})),xe.a.instance.isAdminOf(t)&&(n=i.a.createElement(D.b,{iconClassName:"mx_UserMenu_iconSettings",label:Object(c.a)("Settings"),"aria-label":Object(c.a)("Community settings"),onClick:this.onCommunitySettingsClick})),d=i.a.createElement(D.c,null,n,i.a.createElement(D.b,{iconClassName:"mx_UserMenu_iconMembers",label:Object(c.a)("Members"),onClick:this.onCommunityMembersClick}),o),u=i.a.createElement(i.a.Fragment,null,i.a.createElement("hr",null),i.a.createElement("div",{className:"mx_UserMenu_contextMenu_header"},i.a.createElement("div",{className:"mx_UserMenu_contextMenu_name"},i.a.createElement("span",{className:"mx_UserMenu_contextMenu_displayName"},m.a.instance.displayName),i.a.createElement("span",{className:"mx_UserMenu_contextMenu_userId"},de.a.get().getUserId()))),i.a.createElement(D.c,null,i.a.createElement(D.b,{iconClassName:"mx_UserMenu_iconSettings",label:Object(c.a)("Settings"),"aria-label":Object(c.a)("User settings"),onClick:e=>this.onSettingsOpen(e,null)}),r),i.a.createElement(D.c,{red:!0},i.a.createElement(D.b,{iconClassName:"mx_UserMenu_iconSignOut",label:Object(c.a)("Sign out"),onClick:this.onSignOutClick})))}else de.a.get().isGuest()&&(d=i.a.createElement(i.a.Fragment,null,i.a.createElement(D.c,null,a,i.a.createElement(D.b,{iconClassName:"mx_UserMenu_iconSettings",label:Object(c.a)("Settings"),onClick:e=>this.onSettingsOpen(e,null)}),r)));const h=P()({mx_UserMenu_contextMenu:!0,mx_UserMenu_contextMenu_prototype:!!e});return i.a.createElement(D.e,{left:this.state.contextMenuPosition.width+this.state.contextMenuPosition.left-10,top:this.state.contextMenuPosition.top+this.state.contextMenuPosition.height+8,onFinished:this.onCloseMenu,className:h},i.a.createElement("div",{className:"mx_UserMenu_contextMenu_header"},s,i.a.createElement(V.a,{className:"mx_UserMenu_contextMenu_themeButton",onClick:this.onSwitchThemeClick,title:this.state.isDarkTheme?Object(c.a)("Switch to light mode"):Object(c.a)("Switch to dark mode")},i.a.createElement("img",{src:n(1288),alt:Object(c.a)("Switch theme"),width:16}))),t,d,u)}),this.state={contextMenuPosition:null,isDarkTheme:this.isUserOnDarkTheme()},m.a.instance.on(f.b,this.onProfileUpdate),G.b.getValue("feature_spaces")&&ke.e.instance.on(ke.c,this.onSelectedSpaceUpdate),this.dndWatcherRef=G.b.watchSetting("doNotDisturb",null,()=>this.forceUpdate())}get hasHomePage(){return!!Object(s.a)(l.a.get())}componentDidMount(){this.dispatcherRef=u.a.register(this.onAction),this.themeWatcherRef=G.b.watchSetting("theme",null,this.onThemeChanged),this.tagStoreRef=L.a.addListener(this.onTagStoreUpdate)}componentWillUnmount(){this.themeWatcherRef&&G.b.unwatchSetting(this.themeWatcherRef),this.dndWatcherRef&&G.b.unwatchSetting(this.dndWatcherRef),this.dispatcherRef&&u.a.unregister(this.dispatcherRef),m.a.instance.off(f.b,this.onProfileUpdate),this.tagStoreRef.remove(),G.b.getValue("feature_spaces")&&ke.e.instance.off(ke.c,this.onSelectedSpaceUpdate)}isUserOnDarkTheme(){if(G.b.getValue("use_system_theme"))return window.matchMedia("(prefers-color-scheme: dark)").matches;{const e=G.b.getValue("theme");return e.startsWith("custom-")?Object(et.c)(e.substring("custom-".length)).is_dark:"dark"===e}}render(){const e=de.a.get().getUserId(),t=m.a.instance.displayName||e,n=m.a.instance.getHttpAvatarUrl(32),r=xe.a.instance.getSelectedCommunityName();let a,s=!1,l=Object(c.a)("User menu"),d=i.a.createElement("span",{className:"mx_UserMenu_userName"},t),u=i.a.createElement("span",{className:"mx_UserMenu_headerButtons"});if(this.state.selectedSpace)d=i.a.createElement("div",{className:"mx_UserMenu_doubleName"},i.a.createElement("span",{className:"mx_UserMenu_userName"},t),i.a.createElement(dt.a,{room:this.state.selectedSpace},e=>i.a.createElement("span",{className:"mx_UserMenu_subUserName"},e)));else if(r)d=i.a.createElement("div",{className:"mx_UserMenu_doubleName"},i.a.createElement("span",{className:"mx_UserMenu_userName"},r),i.a.createElement("span",{className:"mx_UserMenu_subUserName"},t)),l=Object(c.a)("Community and user menu"),s=!0;else if(G.b.getValue("feature_communities_v2_prototypes"))d=i.a.createElement("div",{className:"mx_UserMenu_doubleName"},i.a.createElement("span",{className:"mx_UserMenu_userName"},Object(c.a)("Home")),i.a.createElement("span",{className:"mx_UserMenu_subUserName"},t)),s=!0;else if(G.b.getValue("feature_dnd")){const e=G.b.getValue("doNotDisturb");a=i.a.createElement(g.a,{onClick:this.onDndToggle,className:P()({mx_UserMenu_dnd:!0,mx_UserMenu_dnd_noisy:!e,mx_UserMenu_dnd_muted:e})})}this.props.isMinimized&&(d=null,u=null);const h=P()({mx_UserMenu:!0,mx_UserMenu_minimized:this.props.isMinimized,mx_UserMenu_prototype:s});return i.a.createElement(i.a.Fragment,null,i.a.createElement(o.c,{className:h,onClick:this.onOpenMenuClick,inputRef:this.buttonRef,label:l,isExpanded:!!this.state.contextMenuPosition,onContextMenu:this.onContextMenu},i.a.createElement("div",{className:"mx_UserMenu_row"},i.a.createElement("span",{className:"mx_UserMenu_userAvatarContainer"},i.a.createElement(p.a,{idName:e,name:t,url:n,width:32,height:32,resizeMethod:"crop",className:"mx_UserMenu_userAvatar"})),d,a,u)),this.renderContextMenu())}})||ct;var ht=n(688),pt=n(141),mt=n(1);class gt extends pt.a{constructor(){super(u.a),R()(this,"waitingRooms",[]),R()(this,"onMyMembership",async e=>{const t=G.b.getValue("breadcrumbs",null,!0);this.meetsRoomRequirement&&Object(mt.s)(t)&&await G.b.setValue("breadcrumbs",null,tt.a.ACCOUNT,!0)}),R()(this,"onRoom",async e=>{const t=this.waitingRooms.find(t=>t.roomId===e.roomId);t&&(this.waitingRooms.splice(this.waitingRooms.indexOf(t),1),Date.now()-t.addedTs>9e4||await this.appendRoom(e))}),G.b.monitorSetting("breadcrumb_rooms",null),G.b.monitorSetting("breadcrumbs",null)}static get instance(){return gt.internalInstance}get rooms(){return this.state.rooms||[]}get visible(){return this.state.enabled&&this.meetsRoomRequirement}get meetsRoomRequirement(){return this.matrixClient&&this.matrixClient.getVisibleRooms().length>=20}async onAction(e){if(this.matrixClient)if("setting_updated"===e.action)"breadcrumb_rooms"===e.settingName?await this.updateRooms():"breadcrumbs"===e.settingName&&await this.updateState({enabled:G.b.getValue("breadcrumbs",null)});else if("view_room"===e.action)if(e.auto_join&&!this.matrixClient.getRoom(e.room_id))this.waitingRooms.push({roomId:e.room_id,addedTs:Date.now()});else{const t=this.matrixClient.getRoom(e.room_id);t&&await this.appendRoom(t)}}async onReady(){await this.updateRooms(),await this.updateState({enabled:G.b.getValue("breadcrumbs",null)}),this.matrixClient.on("Room.myMembership",this.onMyMembership),this.matrixClient.on("Room",this.onRoom)}async onNotReady(){this.matrixClient.removeListener("Room.myMembership",this.onMyMembership),this.matrixClient.removeListener("Room",this.onRoom)}async updateRooms(){let e=G.b.getValue("breadcrumb_rooms");e&&0!==e.length||(e=[]);const t=e.map(e=>this.matrixClient.getRoom(e)).filter(e=>!!e),n=this.state.rooms||[];Object(Ce.d)(t,n)&&await this.updateState({rooms:t})}async appendRoom(e){if(e.isSpaceRoom()&&G.b.getValue("feature_spaces"))return;let t=!1;const n=(this.state.rooms||[]).slice(),o=this.matrixClient.getRoomUpgradeHistory(e.roomId);if(o.length>1){e=o[o.length-1];for(let e=0;e<o.length-1;e++){const r=n.findIndex(t=>t.roomId===o[e].roomId);-1!==r&&(n.splice(r,1),t=!0)}}const r=n.findIndex(t=>t.roomId===e.roomId);if(0!==r&&(-1!==r&&n.splice(r,1),n.splice(0,0,e),t=!0),n.length>20&&(n.splice(20,n.length-20),t=!0),t){await this.updateState({rooms:n});const e=n.map(e=>e.roomId);e.length>0&&await G.b.setValue("breadcrumb_rooms",null,tt.a.ACCOUNT,e)}}}R()(gt,"internalInstance",new gt);var ft=n(363),_t=n(1289),bt=n(101);var vt,yt=e=>{let{children:t}=e,n=me()(e,["children"]);return i.a.createElement(ie.c,{handleHomeEnd:!0,onKeyDown:(e,t)=>{const n=e.target;if("INPUT"===n.tagName)return;let o=!0;switch(e.key){case bt.a.ARROW_UP:case bt.a.ARROW_DOWN:n.hasAttribute("aria-haspopup")&&n.click();break;case bt.a.ARROW_LEFT:case bt.a.ARROW_RIGHT:if(t.refs.length>0){const n=t.refs.findIndex(e=>e===t.activeRef),o=e.key===bt.a.ARROW_RIGHT?1:-1;t.refs.slice((n+o)%t.refs.length)[0].current.focus()}break;default:o=!1}o&&(e.preventDefault(),e.stopPropagation())}},({onKeyDownHandler:e})=>i.a.createElement("div",he()({},n,{onKeyDown:e,role:"toolbar"}),t))};let Et=Object(N.a)("views.rooms.RoomBreadcrumbs")(vt=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"isMounted",!0),R()(this,"onBreadcrumbsUpdate",()=>{this.isMounted&&(this.setState({doAnimation:!1,skipFirst:!0}),setTimeout(()=>this.setState({doAnimation:!0,skipFirst:!1}),0))}),R()(this,"viewRoom",(e,t)=>{y.a.trackEvent("Breadcrumbs","click_node",String(t)),u.a.dispatch({action:"view_room",room_id:e.roomId})}),this.state={doAnimation:!0,skipFirst:!1},gt.instance.on(f.b,this.onBreadcrumbsUpdate)}componentWillUnmount(){this.isMounted=!1,gt.instance.off(f.b,this.onBreadcrumbsUpdate)}render(){const e=gt.instance.rooms.map((e,t)=>{const n=ae.b.instance.getTagsForRoom(e),o=n.includes(ce.a.DM)?ce.a.DM:n[0];return i.a.createElement(ie.b,{className:"mx_RoomBreadcrumbs_crumb",key:e.roomId,onClick:()=>this.viewRoom(e,t),"aria-label":Object(c.a)("Room %(name)s",{name:e.name}),title:e.name,tooltipClassName:"mx_RoomBreadcrumbs_Tooltip"},i.a.createElement(ft.a,{room:e,avatarSize:32,tag:o,displayBadge:!0,forceCount:!0}))});return e.length>0?i.a.createElement(_t.CSSTransition,{appear:!0,in:this.state.doAnimation,timeout:640,classNames:"mx_RoomBreadcrumbs"},i.a.createElement(yt,{className:"mx_RoomBreadcrumbs","aria-label":Object(c.a)("Recently visited rooms")},e.slice(this.state.skipFirst?1:0))):i.a.createElement("div",{className:"mx_RoomBreadcrumbs"},i.a.createElement("div",{className:"mx_RoomBreadcrumbs_placeholder"},Object(c.a)("No recently visited rooms")))}})||vt;var St,wt,Ct;let Tt=Object(N.a)("structures.IndicatorScrollbar")((Ct=wt=class extends i.a.Component{constructor(e){super(e),R()(this,"onMouseWheel",e=>{if(this.props.verticalScrollsHorizontally&&this._scrollElement){const t=0,n=1,o=(new Date).getTime();if(Math.abs(e.deltaX)>0?(this._likelyTrackpadUser=!0,this._checkAgainForTrackpad=o+6e4):this._likelyTrackpadUser&&o>=this._checkAgainForTrackpad&&(this._likelyTrackpadUser=!1),this._likelyTrackpadUser)return;if(Math.abs(e.deltaX)<=t){const t=e.deltaY<0?-50:50,o=Math.abs(e.deltaY)<25?e.deltaY+t:e.deltaY;this._scrollElement.scrollLeft+=o*n}}}),this._collectScroller=this._collectScroller.bind(this),this._collectScrollerComponent=this._collectScrollerComponent.bind(this),this.checkOverflow=this.checkOverflow.bind(this),this._scrollElement=null,this._autoHideScrollbar=null,this._likelyTrackpadUser=null,this._checkAgainForTrackpad=0,this.state={leftIndicatorOffset:0,rightIndicatorOffset:0}}moveToOrigin(){this._scrollElement&&(this._scrollElement.scrollLeft=0,this._scrollElement.scrollTop=0)}_collectScroller(e){e&&!this._scrollElement&&(this._scrollElement=e,this._scrollElement.addEventListener("scroll",this.checkOverflow),this.checkOverflow())}_collectScrollerComponent(e){this._autoHideScrollbar=e}componentDidUpdate(e){(e&&e.children&&e.children.length||0)!==(this.props.children&&this.props.children.length||0)&&this.checkOverflow()}componentDidMount(){this.checkOverflow()}checkOverflow(){const e=this._scrollElement.scrollTop>0,t=this._scrollElement.scrollHeight>this._scrollElement.scrollTop+this._scrollElement.clientHeight,n=this._scrollElement.scrollLeft>0,o=this._scrollElement.scrollWidth>this._scrollElement.scrollLeft+this._scrollElement.clientWidth;e?this._scrollElement.classList.add("mx_IndicatorScrollbar_topOverflow"):this._scrollElement.classList.remove("mx_IndicatorScrollbar_topOverflow"),t?this._scrollElement.classList.add("mx_IndicatorScrollbar_bottomOverflow"):this._scrollElement.classList.remove("mx_IndicatorScrollbar_bottomOverflow"),n?this._scrollElement.classList.add("mx_IndicatorScrollbar_leftOverflow"):this._scrollElement.classList.remove("mx_IndicatorScrollbar_leftOverflow"),o?this._scrollElement.classList.add("mx_IndicatorScrollbar_rightOverflow"):this._scrollElement.classList.remove("mx_IndicatorScrollbar_rightOverflow"),this.props.trackHorizontalOverflow&&this.setState({leftIndicatorOffset:n?this._scrollElement.scrollLeft+"px":"0",rightIndicatorOffset:o?`-${this._scrollElement.scrollLeft}px`:"0"})}getScrollTop(){return this._autoHideScrollbar.getScrollTop()}componentWillUnmount(){this._scrollElement&&this._scrollElement.removeEventListener("scroll",this.checkOverflow)}render(){const e={left:this.state.leftIndicatorOffset},t={right:this.state.rightIndicatorOffset},n=this.props.trackHorizontalOverflow?i.a.createElement("div",{className:"mx_IndicatorScrollbar_leftOverflowIndicator",style:e}):null,o=this.props.trackHorizontalOverflow?i.a.createElement("div",{className:"mx_IndicatorScrollbar_rightOverflowIndicator",style:t}):null;return i.a.createElement(a.a,he()({ref:this._collectScrollerComponent,wrappedRef:this._collectScroller,onWheel:this.onMouseWheel},this.props),n,this.props.children,o)}},R()(wt,"propTypes",{trackHorizontalOverflow:He.a.bool,verticalScrollsHorizontally:He.a.bool}),St=Ct))||St;var xt=()=>{const[e,t]=Object(r.useState)(null);return Object(_.a)(ae.b.instance,ae.a,()=>{if(ae.b.instance.getFirstNameFilterCondition()){const e=Object.values(ae.b.instance.orderedLists).flat(1).length;t(e)}else t(null)}),"number"!=typeof e?null:i.a.createElement("div",{className:"mx_LeftPanel_roomListFilterCount"},Object(c.a)("%(count)s results",{count:e}))},Ot=n(294);const kt=(e,t)=>{try{const n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return t}},Rt=(e,t)=>{const n="mx_"+e,[o,i]=Object(r.useState)(kt(n,t));Object(r.useEffect)(()=>{i(kt(n,t))},[n,t]);return[o,Object(r.useCallback)(e=>{window.localStorage.setItem(n,JSON.stringify(e)),i(e)},[n])]};var Dt=n(132);const It=e=>e?e.getContent():void 0;var At=n(298);const Nt=(e,t=null,n=!1)=>{const[o,i]=Object(r.useState)(G.b.getValue(e,t,n));return Object(r.useEffect)(()=>{const o=G.b.watchSetting(e,t,()=>{i(G.b.getValue(e,t,n))});return()=>{G.b.unwatchSetting(o)}},[e,t,n]),o};var Ft,Mt=({onResize:e})=>{const t=Object(r.useContext)(b.a),n=((e,t)=>{const[n,o]=Object(r.useState)(()=>It(e.getAccountData(t))),i=Object(r.useCallback)(e=>{e.getType()===t&&o(e.getContent())},[t]);return Object(_.a)(e,"accountData",i),n||{}})(t,"m.widgets"),o=Nt("Widgets.leftPanel"),a=Object(r.useMemo)(()=>{if(!n||!o)return null;const e=Object.values(n).find(e=>e.id===o);return e?Dt.a.makeAppConfig(e.state_key,e.content,e.sender,null,e.id):null},[n,o]),[s,c]=Rt("left-panel-widget-height",280),[l,d]=Rt("left-panel-widget-expanded",!0);Object(r.useEffect)(e,[l,e]);const[u,h,p]=Object(ie.e)(),m=h?0:-1;if(!a)return null;let f;return l&&(f=i.a.createElement(Ot.Resizable,{size:{height:s},minHeight:100,maxHeight:Math.min(window.innerHeight/2,500),onResize:e,onResizeStop:(e,t,n,o)=>{c(s+o.height)},handleWrapperClass:"mx_LeftPanelWidget_resizerHandles",handleClasses:{top:"mx_LeftPanelWidget_resizerHandle"},className:"mx_LeftPanelWidget_resizeBox",enable:{top:!0}},i.a.createElement(At.a,{app:a,fullWidth:!0,show:!0,showMenubar:!1,userWidget:!0,userId:t.getUserId(),creatorUserId:a.creatorUserId,widgetPageTitle:Dt.a.getWidgetDataTitle(a),waitForIframeLoad:a.waitForIframeLoad}))),i.a.createElement("div",{className:"mx_LeftPanelWidget"},i.a.createElement("div",{onFocus:u,className:"mx_LeftPanelWidget_headerContainer",onKeyDown:e=>{switch(e.key){case bt.a.ARROW_LEFT:e.stopPropagation(),d(!1);break;case bt.a.ARROW_RIGHT:e.stopPropagation(),d(!0)}}},i.a.createElement("div",{className:"mx_LeftPanelWidget_stickable"},i.a.createElement(g.a,{onFocus:u,inputRef:p,tabIndex:m,className:"mx_LeftPanelWidget_headerText",role:"treeitem","aria-expanded":l,"aria-level":1,onClick:()=>{d(e=>!e)}},i.a.createElement("span",{className:P()({mx_LeftPanelWidget_collapseBtn:!0,mx_LeftPanelWidget_collapseBtn_collapsed:!l})}),i.a.createElement("span",null,Dt.a.getWidgetName(a))))),f)},Pt=n(176);const Lt=["mx_RoomSearch_input","mx_RoomSearch_minimizedHandle","mx_RoomSublist_headerText","mx_RoomTile","mx_RoomSublist_showNButton"];let jt=Object(N.a)("structures.LeftPanel")(Ft=class extends r.Component{constructor(e){super(e),R()(this,"listContainerRef",Object(r.createRef)()),R()(this,"groupFilterPanelWatcherRef",void 0),R()(this,"bgImageWatcherRef",void 0),R()(this,"focusedElement",null),R()(this,"isDoingStickyHeaders",!1),R()(this,"updateActiveSpace",e=>{this.setState({activeSpace:e})}),R()(this,"onExplore",()=>{u.a.fire(h.a.ViewRoomDirectory)}),R()(this,"onBreadcrumbsUpdate",()=>{const e=gt.instance.visible;if(e!==this.state.showBreadcrumbs){if(this.setState({showBreadcrumbs:e}),!this.listContainerRef.current)return;this.handleStickyHeaders(this.listContainerRef.current)}}),R()(this,"onBackgroundImageUpdate",()=>{let e=m.a.instance.getHttpAvatarUrl(32);const t=G.b.getValue("RoomList.backgroundImage");t&&(e=Object(ge.b)(t).getSquareThumbnailHttp(32));const n=`url(${e})`;e?document.body.style.getPropertyValue("--avatar-url")!==n&&document.body.style.setProperty("--avatar-url",n):document.body.style.removeProperty("--avatar-url")}),R()(this,"onScroll",e=>{const t=e.target;this.handleStickyHeaders(t)}),R()(this,"onResize",()=>{this.listContainerRef.current&&this.handleStickyHeaders(this.listContainerRef.current)}),R()(this,"onFocus",e=>{this.focusedElement=e.target}),R()(this,"onBlur",()=>{this.focusedElement=null}),R()(this,"onKeyDown",e=>{if(!this.focusedElement)return;const t=Object(Pt.f)().getRoomListAction(e);switch(t){case Pt.e.NextRoom:case Pt.e.PrevRoom:e.stopPropagation(),e.preventDefault(),this.onMoveFocus(t===Pt.e.PrevRoom)}}),R()(this,"selectRoom",()=>{const e=this.listContainerRef.current.querySelector(".mx_RoomTile");if(e)return e.click(),!0}),R()(this,"onMoveFocus",e=>{let t,n=this.focusedElement,o=!1;do{const r=e?n.lastElementChild:n.firstElementChild,i=e?n.previousElementSibling:n.nextElementSibling;o?r?n=r:i?n=i:(o=!1,n=n.parentElement):i?(n=i,o=!0):n=n.parentElement,n&&(t=n.classList)}while(n&&!Lt.some(e=>t.contains(e)));n&&(n.focus(),this.focusedElement=n)}),this.state={showBreadcrumbs:gt.instance.visible,showGroupFilterPanel:G.b.getValue("TagPanel.enableTagPanel"),activeSpace:ke.e.instance.activeSpace},gt.instance.on(f.b,this.onBreadcrumbsUpdate),ae.b.instance.on(ae.a,this.onBreadcrumbsUpdate),m.a.instance.on(f.b,this.onBackgroundImageUpdate),ke.e.instance.on(ke.c,this.updateActiveSpace),this.bgImageWatcherRef=G.b.watchSetting("RoomList.backgroundImage",null,this.onBackgroundImageUpdate),this.groupFilterPanelWatcherRef=G.b.watchSetting("TagPanel.enableTagPanel",null,()=>{this.setState({showGroupFilterPanel:G.b.getValue("TagPanel.enableTagPanel")})}),this.props.resizeNotifier.on("middlePanelResizedNoisy",this.onResize)}componentWillUnmount(){G.b.unwatchSetting(this.groupFilterPanelWatcherRef),G.b.unwatchSetting(this.bgImageWatcherRef),gt.instance.off(f.b,this.onBreadcrumbsUpdate),ae.b.instance.off(ae.a,this.onBreadcrumbsUpdate),m.a.instance.off(f.b,this.onBackgroundImageUpdate),ke.e.instance.off(ke.c,this.updateActiveSpace),this.props.resizeNotifier.off("middlePanelResizedNoisy",this.onResize)}handleStickyHeaders(e){this.isDoingStickyHeaders||(this.isDoingStickyHeaders=!0,window.requestAnimationFrame(()=>{this.doStickyHeaders(e),this.isDoingStickyHeaders=!1}))}doStickyHeaders(e){const t=e.scrollTop,n=e.offsetHeight+e.scrollTop,o=e.querySelectorAll(".mx_RoomSublist:not(.mx_RoomSublist_hidden)"),r=e.clientWidth-15,i=new Map;let a,s;for(const e of o){const r=e.querySelector(".mx_RoomSublist_stickable");r.style.removeProperty("display");const c=.4,l=e.offsetTop+c*le.a<=t,d=e.offsetTop+c*le.a>=n;l||e===o[0]?(i.set(r,{stickyTop:!0}),a&&(a.style.display="none",i.set(a,{makeInvisible:!0})),a=r):d&&!s?(i.set(r,{stickyBottom:!0}),s=r):i.set(r,{})}for(const t of i.keys()){const n=i.get(t);if(n.makeInvisible)t.style.display="none";else{if(n.stickyTop){t.classList.contains("mx_RoomSublist_headerContainer_stickyTop")||t.classList.add("mx_RoomSublist_headerContainer_stickyTop");const n=e.parentElement.offsetTop+"px";t.style.top!==n&&(t.style.top=n)}else t.classList.contains("mx_RoomSublist_headerContainer_stickyTop")&&t.classList.remove("mx_RoomSublist_headerContainer_stickyTop"),t.style.top&&t.style.removeProperty("top");if(n.stickyBottom){t.classList.contains("mx_RoomSublist_headerContainer_stickyBottom")||t.classList.add("mx_RoomSublist_headerContainer_stickyBottom");const n=window.innerHeight-(e.parentElement.offsetTop+e.parentElement.offsetHeight)+"px";t.style.bottom!==n&&(t.style.bottom=n)}else t.classList.contains("mx_RoomSublist_headerContainer_stickyBottom")&&t.classList.remove("mx_RoomSublist_headerContainer_stickyBottom"),t.style.bottom&&t.style.removeProperty("bottom");if(n.stickyTop||n.stickyBottom){t.classList.contains("mx_RoomSublist_headerContainer_sticky")||t.classList.add("mx_RoomSublist_headerContainer_sticky");const e=r+"px";t.style.width!==e&&(t.style.width=e)}else n.stickyTop||n.stickyBottom||(t.classList.contains("mx_RoomSublist_headerContainer_sticky")&&t.classList.remove("mx_RoomSublist_headerContainer_sticky"),t.style.width&&t.style.removeProperty("width"))}}const c=e.parentElement;a?c.classList.add("mx_LeftPanel_roomListWrapper_stickyTop"):c.classList.remove("mx_LeftPanel_roomListWrapper_stickyTop"),s?c.classList.add("mx_LeftPanel_roomListWrapper_stickyBottom"):c.classList.remove("mx_LeftPanel_roomListWrapper_stickyBottom")}renderHeader(){return r.createElement("div",{className:"mx_LeftPanel_userHeader"},r.createElement(ut,{isMinimized:this.props.isMinimized}))}renderBreadcrumbs(){if(this.state.showBreadcrumbs&&!this.props.isMinimized)return r.createElement(Tt,{className:"mx_LeftPanel_breadcrumbsContainer mx_AutoHideScrollbar",verticalScrollsHorizontally:!0,tabIndex:-1},r.createElement(Et,null))}renderSearchExplore(){return r.createElement("div",{className:"mx_LeftPanel_filterContainer",onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown},r.createElement(ht.a,{isMinimized:this.props.isMinimized,onKeyDown:this.onKeyDown,onSelectRoom:this.selectRoom}),r.createElement(V.a,{className:P()("mx_LeftPanel_exploreButton",{mx_LeftPanel_exploreButton_space:!!this.state.activeSpace}),onClick:this.onExplore,title:Object(c.a)("Explore rooms")}))}render(){let e;this.state.showGroupFilterPanel&&(e=r.createElement("div",{className:"mx_LeftPanel_GroupFilterPanelContainer"},r.createElement($,null),G.b.getValue("feature_custom_tags")?r.createElement(oe,null):null));const t=r.createElement(Le,{onKeyDown:this.onKeyDown,resizeNotifier:null,onFocus:this.onFocus,onBlur:this.onBlur,isMinimized:this.props.isMinimized,onResize:this.onResize,activeSpace:this.state.activeSpace}),n=P()({mx_LeftPanel:!0,mx_LeftPanel_minimized:this.props.isMinimized}),o=P()("mx_LeftPanel_actualRoomListContainer","mx_AutoHideScrollbar");return r.createElement("div",{className:n},e,r.createElement("aside",{className:"mx_LeftPanel_roomListContainer"},this.renderHeader(),this.renderSearchExplore(),this.renderBreadcrumbs(),r.createElement(xt,null),r.createElement("div",{className:"mx_LeftPanel_roomListWrapper"},r.createElement("div",{className:o,onScroll:this.onScroll,ref:this.listContainerRef,tabIndex:-1},t)),!this.props.isMinimized&&r.createElement(Mt,{onResize:this.onResize})))}})||Ft;var Ut=n(172),Bt=n(656),qt=n(462);async function Gt(){console.log("Checking for COLR support");const{userAgent:e}=navigator;if(e.includes("Firefox"))return console.log("Browser is Firefox - assuming COLR is supported"),!0;if(!e.includes("Chrome")&&e.includes("Safari"))return function(e){console.log("Browser is Safari - checking version for COLR support");try{const t=e.match(/Mac OS X ([\d|_]+).*Version\/([\d|.]+).*Safari/);if(t){const e=t[1],n=t[2],o=e.split("_").map(e=>parseInt(e,10)),r=n.split(".").map(e=>parseInt(e,10)),i=o[0]>=10&&o[1]>=14&&r[0]>=12;return console.log(`COLR support on Safari requires macOS 10.14 and Safari 12, detected Safari ${n} on macOS ${e}, COLR supported: `+i),i}}catch(e){console.error("Error in Safari COLR version check",e)}return console.warn("Couldn't determine Safari version to check COLR font support, assuming no."),!1}(e);try{const e=document.createElement("canvas"),t=e.getContext("2d"),n=new Image,o=`\n <svg xmlns="http://www.w3.org/2000/svg" width="20" height="100" style="background:#fff;fill:#000;">\n <style type="text/css">\n @font-face {\n font-family: "chromacheck-colr";\n src: url(data:application/x-font-woff;base64,${"d09GRgABAAAAAAKAAAwAAAAAAowAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABDT0xSAAACVAAAABYAAAAYAAIAJUNQQUwAAAJsAAAAEgAAABLJAAAQT1MvMgAAAYAAAAA6AAAAYBfxJ0pjbWFwAAABxAAAACcAAAAsAAzpM2dseWYAAAH0AAAAGgAAABoNIh0kaGVhZAAAARwAAAAvAAAANgxLumdoaGVhAAABTAAAABUAAAAkCAEEAmhtdHgAAAG8AAAABgAAAAYEAAAAbG9jYQAAAewAAAAGAAAABgANAABtYXhwAAABZAAAABsAAAAgAg4AHW5hbWUAAAIQAAAAOAAAAD4C5wsecG9zdAAAAkgAAAAMAAAAIAADAAB4AWNgZGAAYQ5+qdB4fpuvDNIsDCBwaQGTAIi+VlscBaJZGMDiHAxMIAoAtjIF/QB4AWNgZGBgYQACOAkUQQWMAAGRABAAAAB4AWNgZGBgYGJgAdMMUJILJMQgAWICAAH3AC4AeAFjYGFhYJzAwMrAwDST6QwDA0M/hGZ8zWDMyMmAChgFkDgKQMBw4CXDSwYWEBdIYgAFBgYA/8sIdAAABAAAAAAAAAB4AWNgYGBkYAZiBgYeBhYGBSDNAoRA/kuG//8hpDgjWJ4BAFVMBiYAAAAAAAANAAAAAQAAAAAEAAQAAAMAABEhESEEAPwABAD8AAAAeAEtxgUNgAAAAMHHIQTShTlOAty9/4bf7AARCwlBNhBw4L/43qXjYGUmf19TMuLcj/BJL3XfBg54AWNgZsALAAB9AAR4AWNgYGAEYj4gFgGygGwICQACOwAoAAAAAAABAAEAAQAAAA4AAAAAyP8AAA=="}) format("woff");\n }\n </style>\n <text x="0" y="0" font-size="20">\n <tspan font-family="chromacheck-colr" x="0" dy="20"></tspan>\n </text>\n </svg>`;e.width=20,e.height=100,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o),console.log("Waiting for COLR SVG to load"),await new Promise(e=>n.onload=e),console.log("Drawing canvas to detect COLR support"),t.drawImage(n,0,0);const r=200===t.getImageData(10,10,1,1).data[0];return console.log("Canvas check revealed COLR is supported? "+r),r}catch(e){return console.error("Couldn't load COLR font",e),!1}}let Vt=!1;async function Ht(){if(!Vt)if(Vt=!0,await Gt()){const e=`url('${n(1304)}')`;document.fonts.add(new FontFace("Twemoji",e,{})),document.fonts.add(new FontFace("Twemoji",e,{weight:600})),document.fonts.add(new FontFace("Twemoji",e,{weight:700}))}else{const e=`url('${n(1305)}')`;document.fonts.add(new FontFace("Twemoji",e,{})),document.fonts.add(new FontFace("Twemoji",e,{weight:600})),document.fonts.add(new FontFace("Twemoji",e,{weight:700}))}}var zt=n(367);class Kt{static moveTag(e,t,n){let o=L.a.getOrderedTags(),r=L.a.getRemovedTagsAccountData()||[];if(!o)return;o=o.filter(e=>e!==t),o=[...o.slice(0,n),t,...o.slice(n)],r=r.filter(e=>e!==t);const i=L.a.getStoreId();return Object(j.a)("TagOrderActions.moveTag",()=>(y.a.trackEvent("TagOrderActions","commitTagOrdering"),e.setAccountData("im.vector.web.tag_ordering",{tags:o,removedTags:r,_storeId:i})),()=>({tags:o,removedTags:r}))}static removeTag(e,t){const n=L.a.getOrderedTags(),o=L.a.getRemovedTagsAccountData()||[];if(o.includes(t))return new zt.a(()=>{});o.push(t);const r=L.a.getStoreId();return Object(j.a)("TagOrderActions.removeTag",()=>(y.a.trackEvent("TagOrderActions","removeTag"),e.setAccountData("im.vector.web.tag_ordering",{tags:n,removedTags:o,_storeId:r})),()=>({removedTags:o}))}}var Wt=n(631),Yt=n(469),$t=n(352),Qt=(n(470),n(698));class Jt extends Qt.a{notifyCollapsed(e){const t=this.resizer.config.onCollapsed;t&&t(e,this.id,this.domNode)}get isCollapsed(){return(0,this.resizer.config.isItemCollapsed)(this.domNode)}}class Xt extends $t.a{static createItem(e,t,n){return new Jt(e,t,n)}constructor(e){var t,n;super(e),R()(this,"toggleSize",void 0),R()(this,"isCollapsed",void 0),this.toggleSize=null===(t=e.resizer)||void 0===t||null===(n=t.config)||void 0===n?void 0:n.toggleSize,this.isCollapsed=e.isCollapsed}resize(e){const t=e<this.toggleSize;t&&!this.isCollapsed?(this.isCollapsed=!0,this.item.notifyCollapsed(!0)):!t&&this.isCollapsed&&(this.item.notifyCollapsed(!1),this.isCollapsed=!1),t||super.resize(e)}}var Zt=n(471),en=n(463),tn=n(107),nn=n(157),on=n(139),rn=n(297);const an=()=>{on.a.sharedInstance().dismissToast("serverlimit")};var sn,cn=n(440),ln=n(131);let dn=Object(N.a)("views.voip.IncomingCallBox")(sn=class extends i.a.Component{constructor(e){super(e),R()(this,"dispatcherRef",void 0),R()(this,"onAction",e=>{switch(e.action){case"call_state":{const t=Oe.c.sharedInstance().getCallForRoom(e.room_id);t&&t.state===ln.e.Ringing?this.setState({incomingCall:t}):this.setState({incomingCall:null})}}}),R()(this,"onAnswerClick",e=>{e.stopPropagation(),u.a.dispatch({action:"answer",room_id:Oe.c.roomIdForCall(this.state.incomingCall)})}),R()(this,"onRejectClick",e=>{e.stopPropagation(),u.a.dispatch({action:"reject",room_id:Oe.c.roomIdForCall(this.state.incomingCall)})}),this.dispatcherRef=u.a.register(this.onAction),this.state={incomingCall:null}}componentWillUnmount(){u.a.unregister(this.dispatcherRef)}render(){if(!this.state.incomingCall)return null;let e=null;this.state.incomingCall&&(e=de.a.get().getRoom(Oe.c.roomIdForCall(this.state.incomingCall)));const t=e?e.name:Object(c.a)("Unknown caller");let n=null;return this.state.incomingCall&&(n="voice"===this.state.incomingCall.type?Object(c.a)("Incoming voice call"):"video"===this.state.incomingCall.type?Object(c.a)("Incoming video call"):Object(c.a)("Incoming call")),i.a.createElement("div",{className:"mx_IncomingCallBox"},i.a.createElement("div",{className:"mx_IncomingCallBox_CallerInfo"},i.a.createElement(De.a,{room:e,height:32,width:32}),i.a.createElement("div",null,i.a.createElement("h1",null,t),i.a.createElement("p",null,n))),i.a.createElement("div",{className:"mx_IncomingCallBox_buttons"},i.a.createElement(cn.a,{className:"mx_IncomingCallBox_decline",onClick:this.onRejectClick,kind:"danger",label:Object(c.a)("Decline")}),i.a.createElement("div",{className:"mx_IncomingCallBox_spacer"}),i.a.createElement(cn.a,{className:"mx_IncomingCallBox_accept",onClick:this.onAnswerClick,kind:"primary",label:Object(c.a)("Accept")})))}})||sn;var un,hn=n(472),pn=n(288);let mn=Object(N.a)("views.elements.PersistentApp")(un=class extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{roomId:se.a.getRoomId(),persistentWidgetId:pn.a.getPersistentWidgetId()}),R()(this,"_onRoomViewStoreUpdate",e=>{se.a.getRoomId()!==this.state.roomId&&this.setState({roomId:se.a.getRoomId()})}),R()(this,"_onActiveWidgetStoreUpdate",()=>{this.setState({persistentWidgetId:pn.a.getPersistentWidgetId()})}),R()(this,"_onMyMembership",async(e,t)=>{const n=pn.a.getRoomId(this.state.persistentWidgetId);"join"!==t&&e.roomId===n&&pn.a.destroyPersistentWidget(this.state.persistentWidgetId)})}componentDidMount(){this._roomStoreToken=se.a.addListener(this._onRoomViewStoreUpdate),pn.a.on("update",this._onActiveWidgetStoreUpdate),de.a.get().on("Room.myMembership",this._onMyMembership)}componentWillUnmount(){this._roomStoreToken&&this._roomStoreToken.remove(),pn.a.removeListener("update",this._onActiveWidgetStoreUpdate),de.a.get()&&de.a.get().removeListener("Room.myMembership",this._onMyMembership)}render(){if(this.state.persistentWidgetId){const e=pn.a.getRoomId(this.state.persistentWidgetId),t=de.a.get().getRoom(e);if(!t)return null;const n=t.getMyMembership();if(this.state.roomId!==e&&"join"===n){const n=Dt.a.getRoomWidgets(t).find(e=>e.getStateKey()===pn.a.getPersistentWidgetId()),o=Dt.a.makeAppConfig(n.getStateKey(),n.getContent(),n.getSender(),e,n.getId()),r=d.getComponent("elements.AppTile");return i.a.createElement(r,{key:o.id,app:o,fullWidth:!0,room:t,userId:de.a.get().credentials.userId,creatorUserId:o.creatorUserId,widgetPageTitle:Dt.a.getWidgetDataTitle(o),waitForIframeLoad:o.waitForIframeLoad,miniMode:!0,showMenubar:!1})}}return null}})||un;var gn;const fn=[ln.e.Connected,ln.e.InviteSent,ln.e.Connecting,ln.e.CreateAnswer,ln.e.CreateOffer,ln.e.WaitLocalMedia];function _n(e){let t=null,n=[];for(const o of e)fn.includes(o.state)&&(o.isRemoteOnHold()||null!==t?n.push(o):t=o);return null===t&&n.length>0&&(t=n[0],n=n.slice(1)),n.length>1&&console.log("Found more than 1 secondary call! Other calls will not be shown."),[t,n]}let bn=Object(N.a)("views.voip.CallPreview")(gn=class extends i.a.Component{constructor(e){super(e),R()(this,"roomStoreToken",void 0),R()(this,"dispatcherRef",void 0),R()(this,"settingsWatcherRef",void 0),R()(this,"onRoomViewStoreUpdate",e=>{if(se.a.getRoomId()===this.state.roomId)return;const t=se.a.getRoomId(),[n,o]=_n(Oe.c.sharedInstance().getAllActiveCallsNotInRoom(t));this.setState({roomId:t,primaryCall:n,secondaryCall:o[0]})}),R()(this,"onAction",e=>{switch(e.action){case"call_state":{const[e,t]=_n(Oe.c.sharedInstance().getAllActiveCallsNotInRoom(this.state.roomId));this.setState({primaryCall:e,secondaryCall:t[0]});break}}}),R()(this,"onCallRemoteHold",()=>{const[e,t]=_n(Oe.c.sharedInstance().getAllActiveCallsNotInRoom(this.state.roomId));this.setState({primaryCall:e,secondaryCall:t[0]})});const t=se.a.getRoomId(),[n,o]=_n(Oe.c.sharedInstance().getAllActiveCallsNotInRoom(t));this.state={roomId:t,primaryCall:n,secondaryCall:o[0]}}componentDidMount(){this.roomStoreToken=se.a.addListener(this.onRoomViewStoreUpdate),this.dispatcherRef=u.a.register(this.onAction),de.a.get().on(ln.c.RemoteHoldUnhold,this.onCallRemoteHold)}componentWillUnmount(){de.a.get().removeListener(ln.c.RemoteHoldUnhold,this.onCallRemoteHold),this.roomStoreToken&&this.roomStoreToken.remove(),u.a.unregister(this.dispatcherRef),G.b.unwatchSetting(this.settingsWatcherRef)}render(){return this.state.primaryCall?i.a.createElement(hn.a,{call:this.state.primaryCall,secondaryCall:this.state.secondaryCall,pipMode:!0}):i.a.createElement(mn,null)}})||gn;var vn;let yn=Object(N.a)("views.voip.CallContainer")(vn=class extends i.a.PureComponent{render(){return i.a.createElement("div",{className:"mx_CallContainer"},i.a.createElement(dn,null),i.a.createElement(bn,null))}})||vn;var En,Sn=n(638);let wn=Object(N.a)("structures.NonUrgentToastContainer")(En=class extends r.PureComponent{constructor(e,t){super(e,t),R()(this,"onUpdateToasts",()=>{this.setState({toasts:Sn.a.instance.components})}),this.state={toasts:Sn.a.instance.components},Sn.a.instance.on(f.b,this.onUpdateToasts)}componentWillUnmount(){Sn.a.instance.off(f.b,this.onUpdateToasts)}render(){const e=this.state.toasts.map((e,t)=>r.createElement("div",{className:"mx_NonUrgentToastContainer_toast",key:"toast-"+t},r.createElement(e,{})));return r.createElement("div",{className:"mx_NonUrgentToastContainer",role:"alert"},e)}})||En;var Cn=n(351);let Tn;var xn;!function(e){e.CloseDialog="close_dialog",e.HostSignupAccountDetails="host_signup_account_details",e.HostSignupAccountDetailsRequest="host_signup_account_details_request",e.Minimize="host_signup_minimize",e.Maximize="host_signup_maximize",e.SetupComplete="setup_complete"}(Tn||(Tn={}));let On=Object(N.a)("views.dialogs.HostSignupDialog")(xn=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"iframeRef",i.a.createRef()),R()(this,"config",void 0),R()(this,"messageHandler",async e=>{if(this.config.url.startsWith(e.origin))switch(e.data.action){case Tn.HostSignupAccountDetailsRequest:this.onAccountDetailsRequest();break;case Tn.Maximize:this.setState({minimized:!1});break;case Tn.Minimize:this.setState({minimized:!0});break;case Tn.SetupComplete:this.setState({completed:!0});break;case Tn.CloseDialog:return this.closeDialog()}}),R()(this,"maximizeDialog",()=>{this.setState({minimized:!1}),this.sendMessage({action:Tn.Maximize})}),R()(this,"minimizeDialog",()=>{this.setState({minimized:!0}),this.sendMessage({action:Tn.Minimize})}),R()(this,"closeDialog",async()=>(window.removeEventListener("message",this.messageHandler),Cn.a.destroyElement("host_signup"),I.instance.setHostSignupActive(!1))),R()(this,"onCloseClick",async()=>{if(this.state.completed)return this.closeDialog();Ge.a.createDialog(Be.a,{title:Object(c.a)("Confirm abort of host creation"),description:Object(c.a)("Are you sure you wish to abort creation of the host? The process cannot be continued."),button:Object(c.a)("Abort"),onFinished:e=>{if(e)return this.closeDialog()}})}),R()(this,"sendMessage",e=>{this.iframeRef.current.contentWindow.postMessage(e,this.config.url)}),R()(this,"onAccountDetailsDialogFinished",async e=>e?this.sendAccountDetails():this.closeDialog()),R()(this,"onAccountDetailsRequest",()=>{const e=i.a.createElement(i.a.Fragment,null,i.a.createElement("p",null,Object(c.a)("Continuing temporarily allows the %(hostSignupBrand)s setup process to access your account to fetch verified email addresses. This data is not stored.",{hostSignupBrand:this.config.brand})),i.a.createElement("p",null,Object(c.a)("Learn more in our <privacyPolicyLink />, <termsOfServiceLink /> and <cookiePolicyLink />.",{},{cookiePolicyLink:()=>i.a.createElement("a",{href:this.config.cookiePolicyUrl,target:"_blank",rel:"noreferrer noopener"},Object(c.a)("Cookie Policy")),privacyPolicyLink:()=>i.a.createElement("a",{href:this.config.privacyPolicyUrl,target:"_blank",rel:"noreferrer noopener"},Object(c.a)("Privacy Policy")),termsOfServiceLink:()=>i.a.createElement("a",{href:this.config.termsOfServiceUrl,target:"_blank",rel:"noreferrer noopener"},Object(c.a)("Terms of Service"))})));Ge.a.createDialog(Be.a,{title:Object(c.a)("You should know"),description:e,button:Object(c.a)("Continue"),onFinished:this.onAccountDetailsDialogFinished})}),this.state={completed:!1,error:null,minimized:!1},this.config=l.a.get().hostSignup}async sendAccountDetails(){const e=await de.a.get().getOpenIdToken();if(!e||!e.access_token)return console.warn("Failed to connect to homeserver for OpenID token."),void this.setState({completed:!0,error:Object(c.a)("Failed to connect to your homeserver. Please close this dialog and try again.")});this.sendMessage({action:Tn.HostSignupAccountDetails,account:{accessToken:await de.a.get().getAccessToken(),name:m.a.instance.displayName,openIdToken:e.access_token,serverName:await de.a.get().getDomain(),userLocalpart:await de.a.get().getUserIdLocalpart(),termsAccepted:!0}})}componentDidMount(){window.addEventListener("message",this.messageHandler)}componentWillUnmount(){if(I.instance.isHostSignupActive)return this.closeDialog()}render(){return i.a.createElement("div",{className:"mx_HostSignup_persisted"},i.a.createElement(Cn.a,{key:"host_signup",persistKey:"host_signup"},i.a.createElement("div",{className:P()({mx_Dialog_wrapper:!this.state.minimized})},i.a.createElement("div",{className:P()("mx_Dialog",{mx_HostSignupDialog_minimized:this.state.minimized,mx_HostSignupDialog:!this.state.minimized})},this.state.minimized&&i.a.createElement("div",{className:"mx_Dialog_header mx_Dialog_headerWithButton"},i.a.createElement("div",{className:"mx_Dialog_title"},Object(c.a)("%(hostSignupBrand)s Setup",{hostSignupBrand:this.config.brand})),i.a.createElement(g.a,{className:"mx_HostSignup_maximize_button",onClick:this.maximizeDialog,"aria-label":Object(c.a)("Maximize dialog"),title:Object(c.a)("Maximize dialog")})),!this.state.minimized&&i.a.createElement("div",{className:"mx_Dialog_header mx_Dialog_headerWithCancel"},i.a.createElement(g.a,{onClick:this.minimizeDialog,className:"mx_HostSignup_minimize_button","aria-label":Object(c.a)("Minimize dialog"),title:Object(c.a)("Minimize dialog")}),i.a.createElement(g.a,{onClick:this.onCloseClick,className:"mx_Dialog_cancelButton","aria-label":Object(c.a)("Close dialog"),title:Object(c.a)("Close dialog")})),this.state.error&&i.a.createElement("div",null,this.state.error),!this.state.error&&i.a.createElement("iframe",{src:this.config.url,ref:this.iframeRef,sandbox:"allow-forms allow-scripts allow-same-origin allow-popups"})))))}})||xn;var kn=()=>{const[e,t]=Object(r.useState)(I.instance.isHostSignupActive);return Object(_.a)(I.instance,f.b,()=>{t(I.instance.isHostSignupActive)}),i.a.createElement("div",{className:"mx_HostSignupContainer"},e&&i.a.createElement(On,null))},Rn=n(136),Dn=n(443),In=n(433),An=n.n(In);function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(n),!0).forEach((function(t){R()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Mn=({title:e,description:t,className:n,onClick:o})=>i.a.createElement(g.a,{className:P()("mx_SpaceCreateMenuType",n),onClick:o},i.a.createElement("h3",null,e),i.a.createElement("span",null,t));var Pn;!function(e){e[e.Public=0]="Public",e[e.Private=1]="Private"}(Pn||(Pn={}));var Ln=({onFinished:e})=>{const t=Object(r.useContext)(b.a),[n,a]=Object(r.useState)(null),[s,l]=Object(r.useState)(""),[d,u]=Object(r.useState)(null),[h,p]=Object(r.useState)(""),[m,f]=Object(r.useState)(!1),_=async()=>{if(m)return;f(!0);const o=[{type:re.a.RoomHistoryVisibility,content:{history_visibility:n===Pn.Public?"world_readable":"invited"}}];if(d){const e=await t.uploadContent(d);o.push({type:re.a.RoomAvatar,content:{url:e}})}h&&o.push({type:re.a.RoomTopic,content:{topic:h}});try{await Object(Rn.c)({createOpts:{preset:n===Pn.Public?Rn.a.PublicChat:Rn.a.PrivateChat,name:s,creation_content:{[re.c]:re.d.Space},initial_state:o,power_level_content_override:Fn({events_default:100},Pn.Public?{invite:0}:{})},spinner:!1,encryption:!1,andView:!0,inlineErrors:!0}),e()}catch(e){console.error(e)}};let v;return v=null===n?i.a.createElement(i.a.Fragment,null,i.a.createElement("h2",null,Object(c.a)("Create a space")),i.a.createElement("p",null,Object(c.a)("Spaces are new ways to group rooms and people. To join an existing space you'll need an invite.")),i.a.createElement(Mn,{title:Object(c.a)("Public"),description:Object(c.a)("Open space for anyone, best for communities"),className:"mx_SpaceCreateMenuType_public",onClick:()=>a(Pn.Public)}),i.a.createElement(Mn,{title:Object(c.a)("Private"),description:Object(c.a)("Invite only, best for yourself or teams"),className:"mx_SpaceCreateMenuType_private",onClick:()=>a(Pn.Private)}),i.a.createElement("p",null,Object(c.a)("You can change this later"))):i.a.createElement(i.a.Fragment,null,i.a.createElement(V.a,{className:"mx_SpaceCreateMenu_back",onClick:()=>a(null),title:Object(c.a)("Go back")}),i.a.createElement("h2",null,n===Pn.Public?Object(c.a)("Your public space"):Object(c.a)("Your private space")),i.a.createElement("p",null,Object(c.a)("Add some details to help people recognise it.")," ",Object(c.a)("You can change these anytime.")),i.a.createElement(Dn.a,{setAvatar:u,name:s,setName:l,topic:h,setTopic:p}),i.a.createElement(g.a,{kind:"primary",onClick:_,disabled:!s||m},m?Object(c.a)("Creating..."):Object(c.a)("Create"))),i.a.createElement(o.b,{left:72,top:62,chevronOffset:0,chevronFace:o.a.None,onFinished:e,wrapperClassName:"mx_SpaceCreateMenu_wrapper",managed:!1},i.a.createElement(An.a,{returnFocus:!0},v))},jn=n(447),Un=n(448),Bn=n(304);class qn extends i.a.PureComponent{constructor(e){super(e),R()(this,"onContextMenu",e=>{e.preventDefault(),e.stopPropagation(),this.setState({contextMenuPosition:{right:e.clientX,top:e.clientY,height:0}})}),R()(this,"onClick",e=>{e.preventDefault(),e.stopPropagation(),ke.e.instance.setActiveSpace(this.props.space)}),R()(this,"onMenuOpenClick",e=>{e.preventDefault(),e.stopPropagation();const t=e.target;this.setState({contextMenuPosition:t.getBoundingClientRect()})}),R()(this,"onMenuClose",()=>{this.setState({contextMenuPosition:null})}),R()(this,"onInviteClick",e=>{e.preventDefault(),e.stopPropagation(),Object(Re.e)(this.props.space),this.setState({contextMenuPosition:null})}),R()(this,"onSettingsClick",e=>{e.preventDefault(),e.stopPropagation(),Object(Re.f)(this.context,this.props.space),this.setState({contextMenuPosition:null})}),R()(this,"onLeaveClick",e=>{e.preventDefault(),e.stopPropagation(),u.a.dispatch({action:"leave_room",room_id:this.props.space.roomId}),this.setState({contextMenuPosition:null})}),R()(this,"onNewRoomClick",e=>{e.preventDefault(),e.stopPropagation(),Object(Re.d)(this.context,this.props.space),this.setState({contextMenuPosition:null})}),R()(this,"onAddExistingRoomClick",e=>{e.preventDefault(),e.stopPropagation(),Object(Re.c)(this.context,this.props.space),this.setState({contextMenuPosition:null})}),R()(this,"onMembersClick",e=>{e.preventDefault(),e.stopPropagation(),se.a.getRoomId()||u.a.dispatch({action:"view_room",room_id:this.props.space.roomId},!0),u.a.dispatch({action:h.a.SetRightPanelPhase,phase:ot.c.SpaceMemberList,refireParams:{space:this.props.space}}),this.setState({contextMenuPosition:null})}),R()(this,"onExploreRoomsClick",e=>{e.preventDefault(),e.stopPropagation(),u.a.dispatch({action:"view_room",room_id:this.props.space.roomId}),this.setState({contextMenuPosition:null})}),this.state={collapsed:!e.isNested,contextMenuPosition:null}}toggleCollapse(e){this.props.onExpand&&this.state.collapsed&&this.props.onExpand(),this.setState({collapsed:!this.state.collapsed}),e.stopPropagation()}renderContextMenu(){let e=null;if(this.state.contextMenuPosition){const t=this.context.getUserId();let n,r,a;this.props.space.canInvite(t)&&(n=i.a.createElement(D.b,{className:"mx_SpacePanel_contextMenu_inviteButton",iconClassName:"mx_SpacePanel_iconInvite",label:Object(c.a)("Invite people"),onClick:this.onInviteClick})),Object(Re.b)(this.context,this.props.space)?r=i.a.createElement(D.b,{iconClassName:"mx_SpacePanel_iconSettings",label:Object(c.a)("Settings"),onClick:this.onSettingsClick}):a=i.a.createElement(D.c,{red:!0,first:!0},i.a.createElement(D.b,{iconClassName:"mx_SpacePanel_iconLeave",label:Object(c.a)("Leave space"),onClick:this.onLeaveClick}));const s=this.props.space.currentState.maySendStateEvent(re.a.SpaceChild,t);let l;this.props.space.currentState.maySendStateEvent(re.a.SpaceChild,t)&&(l=i.a.createElement(D.c,{first:!0},i.a.createElement(D.b,{iconClassName:"mx_SpacePanel_iconPlus",label:Object(c.a)("Create new room"),onClick:this.onNewRoomClick}),i.a.createElement(D.b,{iconClassName:"mx_SpacePanel_iconHash",label:Object(c.a)("Add existing room"),onClick:this.onAddExistingRoomClick}))),e=i.a.createElement(D.e,he()({},Object(o.p)(this.state.contextMenuPosition,0),{onFinished:this.onMenuClose,className:"mx_SpacePanel_contextMenu",compact:!0}),i.a.createElement("div",{className:"mx_SpacePanel_contextMenu_header"},this.props.space.name),i.a.createElement(D.c,{first:!0},n,i.a.createElement(D.b,{iconClassName:"mx_SpacePanel_iconMembers",label:Object(c.a)("Members"),onClick:this.onMembersClick}),r,i.a.createElement(D.b,{iconClassName:"mx_SpacePanel_iconExplore",label:s?Object(c.a)("Manage & explore rooms"):Object(c.a)("Explore rooms"),onClick:this.onExploreRoomsClick})),l,a)}return i.a.createElement(i.a.Fragment,null,i.a.createElement(Bn.a,{className:"mx_SpaceButton_menuButton",onClick:this.onMenuOpenClick,title:Object(c.a)("Space options"),isExpanded:!!this.state.contextMenuPosition}),e)}render(){const{space:e,activeSpaces:t,isNested:n}=this.props,o=this.props.isPanelCollapsed,r=this.props.isPanelCollapsed,a=this.state.collapsed||o,s=ke.e.instance.getChildSpaces(e.roomId).filter(e=>{var t;return!(null!==(t=this.props.parents)&&void 0!==t&&t.has(e.roomId))}),c=t.includes(e),l=P()({mx_SpaceItem:!0,collapsed:a,hasSubSpaces:s&&s.length}),d=P()("mx_SpaceButton",{mx_SpaceButton_active:c,mx_SpaceButton_hasMenuOpen:!!this.state.contextMenuPosition,mx_SpaceButton_narrow:r}),u=ke.e.instance.getNotificationState(e.roomId);let h,p;s&&!a&&(h=i.a.createElement(Gn,{spaces:s,activeSpaces:t,isNested:!0,parents:new Set(this.props.parents).add(this.props.space.roomId)})),u&&(p=i.a.createElement("div",{className:"mx_SpacePanel_badgeContainer"},i.a.createElement(_e.a,{forceCount:!1,notification:u})));const m=n?24:32,f=s&&s.length?i.a.createElement(g.a,{className:"mx_SpaceButton_toggleCollapse",onClick:e=>this.toggleCollapse(e)}):null;let _;return _=r?i.a.createElement(Un.a,{className:d,title:e.name,onClick:this.onClick,onContextMenu:this.onContextMenu,forceHide:!!this.state.contextMenuPosition,role:"treeitem"},f,i.a.createElement("div",{className:"mx_SpaceButton_selectionWrapper"},i.a.createElement(De.a,{width:m,height:m,room:e}),p,this.renderContextMenu())):i.a.createElement(jn.a,{className:d,onClick:this.onClick,onContextMenu:this.onContextMenu,role:"treeitem"},f,i.a.createElement("div",{className:"mx_SpaceButton_selectionWrapper"},i.a.createElement(De.a,{width:m,height:m,room:e}),i.a.createElement("span",{className:"mx_SpaceButton_name"},e.name),p,this.renderContextMenu())),i.a.createElement("li",{className:l},_,h)}}R()(qn,"contextType",b.a);const Gn=({spaces:e,activeSpaces:t,isNested:n,parents:o})=>i.a.createElement("ul",{className:"mx_SpaceTreeLevel"},e.map(e=>i.a.createElement(qn,{key:e.roomId,activeSpaces:t,space:e,isNested:n,parents:o})));var Vn=Gn;const Hn=({space:e,className:t,selected:n,onClick:o,tooltip:r,notificationState:a,isNarrow:s,children:c})=>{const l=P()("mx_SpaceButton",t,{mx_SpaceButton_active:n,mx_SpaceButton_narrow:s});let d,u,h=i.a.createElement("div",{className:"mx_SpaceButton_avatarPlaceholder"},i.a.createElement("div",{className:"mx_SpaceButton_icon"}));return e&&(h=i.a.createElement(De.a,{width:32,height:32,room:e})),a&&(d=i.a.createElement("div",{className:"mx_SpacePanel_badgeContainer"},i.a.createElement(_e.a,{forceCount:!1,notification:a}))),u=s?i.a.createElement(ie.b,{className:l,title:r,onClick:o,role:"treeitem"},i.a.createElement("div",{className:"mx_SpaceButton_selectionWrapper"},h,d,c)):i.a.createElement(ie.a,{className:l,onClick:o,role:"treeitem"},i.a.createElement("div",{className:"mx_SpaceButton_selectionWrapper"},h,i.a.createElement("span",{className:"mx_SpaceButton_name"},r),d,c)),i.a.createElement("li",{className:P()({mx_SpaceItem:!0,collapsed:s})},u)};var zn,Kn,Wn,Yn=()=>{const[e,t,n,s]=Object(o.q)(),[l,d]=(()=>{const[e,t]=Object(r.useState)(ke.e.instance.spacePanelSpaces);Object(_.a)(ke.e.instance,ke.d,t);const[n,o]=Object(r.useState)(ke.e.instance.activeSpace);return Object(_.a)(ke.e.instance,ke.c,o),[e,n]})(),[u,h]=Object(r.useState)(!0),p=P()("mx_SpaceButton_new",{mx_SpaceButton_newCancel:e});let m=null;e&&(m=i.a.createElement(Ln,{onFinished:s}));const g=(e,t)=>{let n,o=!1;do{const r=t?e.lastElementChild:e.firstElementChild,i=t?e.previousElementSibling:e.nextElementSibling;o?r?e=r:i?e=i:(o=!1,e=e.parentElement):i?(e=i,o=!0):e=e.parentElement,e&&(e.classList.contains("mx_ContextualMenu")&&(e=t?e.lastElementChild:e.firstElementChild,o=!0),n=e.classList)}while(e&&!n.contains("mx_SpaceButton"));e&&e.focus()},f=d?[d]:[],b=u?Object(c.a)("Expand space panel"):Object(c.a)("Collapse space panel");return i.a.createElement(ie.c,{handleHomeEnd:!0,onKeyDown:e=>{let t=!0;switch(e.key){case bt.a.ARROW_UP:g(e.target,!0);break;case bt.a.ARROW_DOWN:g(e.target,!1);break;default:t=!1}t&&(e.stopPropagation(),e.preventDefault())}},({onKeyDownHandler:t})=>i.a.createElement("ul",{className:P()("mx_SpacePanel",{collapsed:u}),onKeyDown:t},i.a.createElement(a.a,{className:"mx_SpacePanel_spaceTreeWrapper"},i.a.createElement("div",{className:"mx_SpaceTreeLevel"},i.a.createElement(Hn,{className:"mx_SpaceButton_home",onClick:()=>ke.e.instance.setActiveSpace(null),selected:!d,tooltip:Object(c.a)("Home"),notificationState:ke.e.instance.getNotificationState(ke.a),isNarrow:u}),l.map(e=>i.a.createElement(qn,{key:e.roomId,space:e,activeSpaces:f,isPanelCollapsed:u,onExpand:()=>h(!1)}))),i.a.createElement(Hn,{className:p,tooltip:e?Object(c.a)("Cancel"):Object(c.a)("Create a space"),onClick:e?s:()=>{n(),u||h(!0)},isNarrow:u})),i.a.createElement(V.a,{className:P()("mx_SpacePanel_toggleCollapse",{expanded:!u}),onClick:()=>{h(!u),e&&s()},title:b}),m))};function $n(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||!!e.getAttribute("contenteditable")}var Qn,Jn=Object(N.a)("structures.LoggedInView")((Wn=Kn=class extends r.Component{constructor(e,t){super(e,t),R()(this,"_matrixClient",void 0),R()(this,"_roomView",void 0),R()(this,"_resizeContainer",void 0),R()(this,"compactLayoutWatcherRef",void 0),R()(this,"resizer",void 0),R()(this,"canResetTimelineInRoom",e=>!this._roomView.current||this._roomView.current.canResetTimeline()),R()(this,"onAccountData",e=>{"m.ignored_user_list"===e.getType()&&u.a.dispatch({action:"ignore_state_changed"})}),R()(this,"onCompactLayoutChanged",(e,t,n,o,r)=>{this.setState({useCompactLayout:o})}),R()(this,"onSync",(e,t,n)=>{const o=this.state.syncErrorData&&this.state.syncErrorData.error&&this.state.syncErrorData.error.errcode,r=n&&n.error&&n.error.errcode;e===t&&o===r||("ERROR"===e?this.setState({syncErrorData:n}):this.setState({syncErrorData:null}),"PREPARED"===t&&"SYNCING"===e?this._updateServerNoticeEvents():this._calculateServerLimitToast(this.state.syncErrorData,this.state.usageLimitEventContent))}),R()(this,"onRoomStateEvents",(e,t)=>{const n=ae.b.instance.orderedLists[ce.a.ServerNotice];n&&n.some(t=>t.roomId===e.getRoomId())&&this._updateServerNoticeEvents()}),R()(this,"onUsageLimitDismissed",()=>{this.setState({usageLimitDismissed:!0})}),R()(this,"_updateServerNoticeEvents",async()=>{const e=ae.b.instance.orderedLists[ce.a.ServerNotice];if(!e)return[];const t=[];let n=0;for(const o of e){const e=o.currentState.getStateEvents("m.room.pinned_events","");if(!e||!e.getContent().pinned)continue;n=e.getTs();const r=e.getContent().pinned.slice(0,2);for(const e of r){const n=(await this._matrixClient.getEventTimeline(o.getUnfilteredTimelineSet(),e,0)).getEvents().find(t=>t.getId()===e);n&&t.push(n)}}if(n&&this.state.usageLimitEventTs>n)return;const o=t.find(e=>e&&"m.room.message"===e.getType()&&"m.server_notice.usage_limit_reached"===e.getContent().server_notice_type),r=o&&o.getContent();this._calculateServerLimitToast(this.state.syncErrorData,r),this.setState({usageLimitEventContent:r,usageLimitEventTs:n,usageLimitDismissed:!1})}),R()(this,"_onPaste",e=>{let t=!1,n=e.target;for(;!t&&n;)t=$n(n),n=n.parentElement;t||u.a.fire(h.a.FocusComposer,!0)}),R()(this,"_onReactKeyDown",e=>{this._onKeyDown(e)}),R()(this,"_onNativeKeyDown",e=>{e.target===document.body&&this._onKeyDown(e)}),R()(this,"_onKeyDown",e=>{let t=!1;switch(Object(Pt.f)().getRoomAction(e)){case Pt.d.ScrollUp:case Pt.d.RoomScrollDown:case Pt.d.JumpToFirstMessage:case Pt.d.JumpToLatestMessage:this._onScrollKeyPressed(e),t=!0;break;case Pt.d.FocusSearch:u.a.dispatch({action:"focus_search"}),t=!0}if(t)return e.stopPropagation(),void e.preventDefault();switch(Object(Pt.f)().getNavigationAction(e)){case Pt.c.FocusRoomSearch:u.a.dispatch({action:"focus_room_filter"}),t=!0;break;case Pt.c.ToggleUserMenu:u.a.fire(h.a.ToggleUserMenu),t=!0;break;case Pt.c.ToggleShortCutDialog:en.d(),t=!0;break;case Pt.c.GoToHome:u.a.dispatch({action:"view_home_page"}),Ge.a.closeCurrentModal("homeKeyboardShortcut"),t=!0;break;case Pt.c.ToggleRoomSidePanel:"room_view"!==this.props.page_type&&"group_view"!==this.props.page_type||(u.a.dispatch({action:h.a.ToggleRightPanel,type:"room_view"===this.props.page_type?"room":"group"}),t=!0);break;case Pt.c.SelectPrevRoom:u.a.dispatch({action:h.a.ViewRoomDelta,delta:-1,unread:!1}),t=!0;break;case Pt.c.SelectNextRoom:u.a.dispatch({action:h.a.ViewRoomDelta,delta:1,unread:!1}),t=!0;break;case Pt.c.SelectPrevUnreadRoom:u.a.dispatch({action:h.a.ViewRoomDelta,delta:-1,unread:!0});break;case Pt.c.SelectNextUnreadRoom:u.a.dispatch({action:h.a.ViewRoomDelta,delta:1,unread:!0});break;default:t=tn.a.get().onKeyDown(e)}if(t)return e.stopPropagation(),void e.preventDefault();if(!(e.key===bt.a.ALT||e.key===bt.a.CONTROL||e.key===bt.a.META||e.key===bt.a.SHIFT||e.altKey||e.ctrlKey||e.metaKey)){const t=e.target!==document.body&&(e.key===bt.a.SPACE||e.key===bt.a.ENTER);if(e.key===bt.a.CONTEXT_MENU)return;t||e.key===bt.a.TAB||$n(e.target)||(u.a.fire(h.a.FocusComposer,!0),e.stopPropagation())}}),R()(this,"_onScrollKeyPressed",e=>{this._roomView.current&&this._roomView.current.handleScrollKey(e)}),R()(this,"_onDragEnd",e=>{if(!e.destination)return;const t=e.destination.droppableId;if("tag-panel-droppable"===t){const t=e.draggableId.split(" ").pop();u.a.dispatch(Kt.moveTag(this._matrixClient,t,e.destination.index),!0)}else t.startsWith("room-sub-list-droppable_")&&this._onRoomTileEndDrag(e)}),R()(this,"_onRoomTileEndDrag",e=>{let t=e.destination.droppableId.split("_")[1],n=e.source.droppableId.split("_")[1];"undefined"===t&&(t=void 0),"undefined"===n&&(n=void 0);const o=e.draggableId.split("_")[1],r=e.source.index,i=e.destination.index;u.a.dispatch(Wt.a.tagRoom(this._matrixClient,this._matrixClient.getRoom(o),n,t,r,i),!0)}),this.state={syncErrorData:void 0,useCompactLayout:G.b.getValue("useCompactLayout"),usageLimitDismissed:!1},this._matrixClient=this.props.matrixClient,qt.a.loadDevices(),Ht(),this._roomView=r.createRef(),this._resizeContainer=r.createRef()}componentDidMount(){document.addEventListener("keydown",this._onNativeKeyDown,!1),this._updateServerNoticeEvents(),this._matrixClient.on("accountData",this.onAccountData),this._matrixClient.on("sync",this.onSync),this.onSync(this._matrixClient.getSyncState(),null,this._matrixClient.getSyncStateData()),this._matrixClient.on("RoomState.events",this.onRoomStateEvents),this.compactLayoutWatcherRef=G.b.watchSetting("useCompactLayout",null,this.onCompactLayoutChanged),this.resizer=this._createResizer(),this.resizer.attach(),this._loadResizerPreferences()}componentWillUnmount(){document.removeEventListener("keydown",this._onNativeKeyDown,!1),this._matrixClient.removeListener("accountData",this.onAccountData),this._matrixClient.removeListener("sync",this.onSync),this._matrixClient.removeListener("RoomState.events",this.onRoomStateEvents),G.b.unwatchSetting(this.compactLayoutWatcherRef),this.resizer.detach()}shouldComponentUpdate(){return Boolean(de.a.get())}_createResizer(){let e,t;const n={toggleSize:156,onCollapsed:e=>{t=e,e?(u.a.dispatch({action:"hide_left_panel"}),window.localStorage.setItem("mx_lhs_size","0")):u.a.dispatch({action:"show_left_panel"})},onResized:t=>{e=t,this.props.resizeNotifier.notifyLeftHandleResized()},onResizeStart:()=>{this.props.resizeNotifier.startResizing()},onResizeStop:()=>{t||window.localStorage.setItem("mx_lhs_size",""+e),this.props.resizeNotifier.stopResizing()},isItemCollapsed:e=>e.classList.contains("mx_LeftPanel_minimized")},o=new Zt.a(this._resizeContainer.current,Xt,n);return o.setClassNames({handle:"mx_ResizeHandle",vertical:"mx_ResizeHandle_vertical",reverse:"mx_ResizeHandle_reverse"}),o}_loadResizerPreferences(){let e=parseInt(window.localStorage.getItem("mx_lhs_size"),10);isNaN(e)&&(e=350),this.resizer.forHandleAt(0).resize(e)}_calculateServerLimitToast(e,t){const n=e&&e.error&&"M_RESOURCE_LIMIT_EXCEEDED"===e.error.errcode;n&&(t=e.error.data),t&&this.state.usageLimitDismissed?((e,t,n,o)=>{const r=Object(rn.a)(e,n,{monthly_active_user:Object(c.b)("Your homeserver has exceeded its user limit."),hs_blocked:Object(c.b)("This homeserver has been blocked by it's administrator."),"":Object(c.b)("Your homeserver has exceeded one of its resource limits.")}),a=Object(rn.a)(e,n,{"":Object(c.b)("Contact your <a>server admin</a>.")});on.a.sharedInstance().addOrReplaceToast({key:"serverlimit",title:Object(c.a)("Warning"),props:{description:i.a.createElement(i.a.Fragment,null,r," ",a),acceptLabel:Object(c.a)("Ok"),onAccept:()=>{an(),t&&t()}},component:nn.a,priority:70})})(t.limit_type,this.onUsageLimitDismissed,t.admin_contact):an()}render(){const e=d.getComponent("structures.RoomView"),t=d.getComponent("structures.UserView"),n=d.getComponent("structures.GroupView"),o=d.getComponent("structures.MyGroups"),i=d.getComponent("structures.ToastContainer");let a;switch(this.props.page_type){case Bt.a.RoomView:a=r.createElement(e,{ref:this._roomView,onRegistered:this.props.onRegistered,threepidInvite:this.props.threepidInvite,oobData:this.props.roomOobData,key:this.props.currentRoomId||"roomview",resizeNotifier:this.props.resizeNotifier,justCreatedOpts:this.props.roomJustCreatedOpts});break;case Bt.a.MyGroups:a=r.createElement(o,null);break;case Bt.a.RoomDirectory:break;case Bt.a.HomePage:a=r.createElement(O,{justRegistered:this.props.justRegistered});break;case Bt.a.UserView:a=r.createElement(t,{userId:this.props.currentUserId,resizeNotifier:this.props.resizeNotifier});break;case Bt.a.GroupView:a=r.createElement(n,{groupId:this.props.currentGroupId,isNew:this.props.currentGroupIsNew,resizeNotifier:this.props.resizeNotifier})}let s="mx_MatrixChat";return this.state.useCompactLayout&&(s+=" mx_MatrixChat_useCompactLayout"),r.createElement(b.a.Provider,{value:this._matrixClient},r.createElement("div",{onPaste:this._onPaste,onKeyDown:this._onReactKeyDown,className:"mx_MatrixChat_wrapper","aria-hidden":this.props.hideToSRUsers},r.createElement(i,null),r.createElement(q.DragDropContext,{onDragEnd:this._onDragEnd},r.createElement("div",{ref:this._resizeContainer,className:s},G.b.getValue("feature_spaces")?r.createElement(Yn,null):null,r.createElement(jt,{isMinimized:this.props.collapseLhs||!1,resizeNotifier:this.props.resizeNotifier}),r.createElement(Yt.a,null),a))),r.createElement(yn,null),r.createElement(wn,null),r.createElement(kn,null))}},R()(Kn,"displayName","LoggedInView"),R()(Kn,"propTypes",{matrixClient:Ve.instanceOf(Ut.b).isRequired,page_type:Ve.string.isRequired,onRoomCreated:Ve.func,onRegistered:Ve.func}),zn=Wn))||zn,Xn=n(743),Zn=n(1306),eo=n(728),to=n(749),no=n(451);let oo=Object(N.a)("structures.ToastContainer")(Qn=class extends r.Component{constructor(e,t){super(e,t),R()(this,"_onToastStoreUpdate",()=>{this.setState({toasts:on.a.sharedInstance().getToasts(),countSeen:on.a.sharedInstance().getCountSeen()})}),this.state={toasts:on.a.sharedInstance().getToasts(),countSeen:on.a.sharedInstance().getCountSeen()},on.a.sharedInstance().on("update",this._onToastStoreUpdate)}componentWillUnmount(){on.a.sharedInstance().removeListener("update",this._onToastStoreUpdate)}render(){const e=this.state.toasts.length,t=e>1;let n;if(0!==e){const o=this.state.toasts[0],{title:i,icon:a,key:s,component:c,className:l,props:d}=o,u=P()("mx_Toast_toast",{mx_Toast_hasIcon:a,["mx_Toast_icon_"+a]:a},l);let h;(t||this.state.countSeen>0)&&(h=` (${this.state.countSeen+1}/${this.state.countSeen+e})`);const p=Object.assign({},d,{key:s,toastKey:s});n=r.createElement("div",{className:u},r.createElement("div",{className:"mx_Toast_title"},r.createElement("h2",null,i),r.createElement("span",null,h)),r.createElement("div",{className:"mx_Toast_body"},r.createElement(c,p)))}const o=P()("mx_ToastContainer",{mx_ToastContainer_stacked:t});return r.createElement("div",{className:o,role:"alert"},n)}})||Qn;var ro=n(300),io=n(356),ao=n.n(io);var so,co=({value:e,max:t})=>i.a.createElement("progress",{className:"mx_ProgressBar",max:t,value:e});let lo=Object(N.a)("structures.UploadBar")(so=class extends i.a.Component{constructor(e){super(e),R()(this,"dispatcherRef",void 0),R()(this,"mounted",void 0),R()(this,"onAction",e=>{switch(e.action){case h.a.UploadStarted:case h.a.UploadProgress:case h.a.UploadFinished:case h.a.UploadCanceled:case h.a.UploadFailed:{if(!this.mounted)return;const e=this.getUploadsInRoom();this.setState({currentUpload:e[0],uploadsHere:e});break}}}),R()(this,"onCancelClick",e=>{e.preventDefault(),ro.a.sharedInstance().cancelUpload(this.state.currentUpload.promise)});const t=this.getUploadsInRoom();this.state={currentUpload:t[0],uploadsHere:t}}componentDidMount(){this.dispatcherRef=u.a.register(this.onAction),this.mounted=!0}componentWillUnmount(){this.mounted=!1,u.a.unregister(this.dispatcherRef)}getUploadsInRoom(){return ro.a.sharedInstance().getCurrentUploads().filter(e=>e.roomId===this.props.room.roomId)}render(){if(!this.state.currentUpload)return null;const e=Object(c.a)("Uploading %(filename)s and %(count)s others",{filename:this.state.currentUpload.fileName,count:this.state.uploadsHere.length-1}),t=ao()(this.state.currentUpload.total);return i.a.createElement("div",{className:"mx_UploadBar"},i.a.createElement("div",{className:"mx_UploadBar_filename"},e," (",t,")"),i.a.createElement(g.a,{onClick:this.onCancelClick,className:"mx_UploadBar_cancel"}),i.a.createElement(co,{value:this.state.currentUpload.loaded,max:this.state.currentUpload.total}))}})||so;var uo,ho=n(296),po=n(264);let mo=Object(N.a)("views.auth.AuthPage")(uo=class extends i.a.PureComponent{render(){const e=d.getComponent("auth.AuthFooter");return i.a.createElement("div",{className:"mx_AuthPage"},i.a.createElement("div",{className:"mx_AuthPage_modal"},this.props.children),i.a.createElement(e,null))}})||uo;var go=n(158),fo=n(194);const _o=/^[0-9 -.]+$/;const bo=127462-"A".charCodeAt(0),vo=/^[A-Z]{2}$/,yo=[{iso2:"GB",name:Object(c.b)("United Kingdom"),prefix:"44"},{iso2:"US",name:Object(c.b)("United States"),prefix:"1"},{iso2:"AF",name:Object(c.b)("Afghanistan"),prefix:"93"},{iso2:"AX",name:Object(c.b)("Åland Islands"),prefix:"358"},{iso2:"AL",name:Object(c.b)("Albania"),prefix:"355"},{iso2:"DZ",name:Object(c.b)("Algeria"),prefix:"213"},{iso2:"AS",name:Object(c.b)("American Samoa"),prefix:"1"},{iso2:"AD",name:Object(c.b)("Andorra"),prefix:"376"},{iso2:"AO",name:Object(c.b)("Angola"),prefix:"244"},{iso2:"AI",name:Object(c.b)("Anguilla"),prefix:"1"},{iso2:"AQ",name:Object(c.b)("Antarctica"),prefix:"672"},{iso2:"AG",name:Object(c.b)("Antigua & Barbuda"),prefix:"1"},{iso2:"AR",name:Object(c.b)("Argentina"),prefix:"54"},{iso2:"AM",name:Object(c.b)("Armenia"),prefix:"374"},{iso2:"AW",name:Object(c.b)("Aruba"),prefix:"297"},{iso2:"AU",name:Object(c.b)("Australia"),prefix:"61"},{iso2:"AT",name:Object(c.b)("Austria"),prefix:"43"},{iso2:"AZ",name:Object(c.b)("Azerbaijan"),prefix:"994"},{iso2:"BS",name:Object(c.b)("Bahamas"),prefix:"1"},{iso2:"BH",name:Object(c.b)("Bahrain"),prefix:"973"},{iso2:"BD",name:Object(c.b)("Bangladesh"),prefix:"880"},{iso2:"BB",name:Object(c.b)("Barbados"),prefix:"1"},{iso2:"BY",name:Object(c.b)("Belarus"),prefix:"375"},{iso2:"BE",name:Object(c.b)("Belgium"),prefix:"32"},{iso2:"BZ",name:Object(c.b)("Belize"),prefix:"501"},{iso2:"BJ",name:Object(c.b)("Benin"),prefix:"229"},{iso2:"BM",name:Object(c.b)("Bermuda"),prefix:"1"},{iso2:"BT",name:Object(c.b)("Bhutan"),prefix:"975"},{iso2:"BO",name:Object(c.b)("Bolivia"),prefix:"591"},{iso2:"BA",name:Object(c.b)("Bosnia"),prefix:"387"},{iso2:"BW",name:Object(c.b)("Botswana"),prefix:"267"},{iso2:"BV",name:Object(c.b)("Bouvet Island"),prefix:"47"},{iso2:"BR",name:Object(c.b)("Brazil"),prefix:"55"},{iso2:"IO",name:Object(c.b)("British Indian Ocean Territory"),prefix:"246"},{iso2:"VG",name:Object(c.b)("British Virgin Islands"),prefix:"1"},{iso2:"BN",name:Object(c.b)("Brunei"),prefix:"673"},{iso2:"BG",name:Object(c.b)("Bulgaria"),prefix:"359"},{iso2:"BF",name:Object(c.b)("Burkina Faso"),prefix:"226"},{iso2:"BI",name:Object(c.b)("Burundi"),prefix:"257"},{iso2:"KH",name:Object(c.b)("Cambodia"),prefix:"855"},{iso2:"CM",name:Object(c.b)("Cameroon"),prefix:"237"},{iso2:"CA",name:Object(c.b)("Canada"),prefix:"1"},{iso2:"CV",name:Object(c.b)("Cape Verde"),prefix:"238"},{iso2:"BQ",name:Object(c.b)("Caribbean Netherlands"),prefix:"599"},{iso2:"KY",name:Object(c.b)("Cayman Islands"),prefix:"1"},{iso2:"CF",name:Object(c.b)("Central African Republic"),prefix:"236"},{iso2:"TD",name:Object(c.b)("Chad"),prefix:"235"},{iso2:"CL",name:Object(c.b)("Chile"),prefix:"56"},{iso2:"CN",name:Object(c.b)("China"),prefix:"86"},{iso2:"CX",name:Object(c.b)("Christmas Island"),prefix:"61"},{iso2:"CC",name:Object(c.b)("Cocos (Keeling) Islands"),prefix:"61"},{iso2:"CO",name:Object(c.b)("Colombia"),prefix:"57"},{iso2:"KM",name:Object(c.b)("Comoros"),prefix:"269"},{iso2:"CG",name:Object(c.b)("Congo - Brazzaville"),prefix:"242"},{iso2:"CD",name:Object(c.b)("Congo - Kinshasa"),prefix:"243"},{iso2:"CK",name:Object(c.b)("Cook Islands"),prefix:"682"},{iso2:"CR",name:Object(c.b)("Costa Rica"),prefix:"506"},{iso2:"HR",name:Object(c.b)("Croatia"),prefix:"385"},{iso2:"CU",name:Object(c.b)("Cuba"),prefix:"53"},{iso2:"CW",name:Object(c.b)("Curaçao"),prefix:"599"},{iso2:"CY",name:Object(c.b)("Cyprus"),prefix:"357"},{iso2:"CZ",name:Object(c.b)("Czech Republic"),prefix:"420"},{iso2:"CI",name:Object(c.b)("Côte d’Ivoire"),prefix:"225"},{iso2:"DK",name:Object(c.b)("Denmark"),prefix:"45"},{iso2:"DJ",name:Object(c.b)("Djibouti"),prefix:"253"},{iso2:"DM",name:Object(c.b)("Dominica"),prefix:"1"},{iso2:"DO",name:Object(c.b)("Dominican Republic"),prefix:"1"},{iso2:"EC",name:Object(c.b)("Ecuador"),prefix:"593"},{iso2:"EG",name:Object(c.b)("Egypt"),prefix:"20"},{iso2:"SV",name:Object(c.b)("El Salvador"),prefix:"503"},{iso2:"GQ",name:Object(c.b)("Equatorial Guinea"),prefix:"240"},{iso2:"ER",name:Object(c.b)("Eritrea"),prefix:"291"},{iso2:"EE",name:Object(c.b)("Estonia"),prefix:"372"},{iso2:"ET",name:Object(c.b)("Ethiopia"),prefix:"251"},{iso2:"FK",name:Object(c.b)("Falkland Islands"),prefix:"500"},{iso2:"FO",name:Object(c.b)("Faroe Islands"),prefix:"298"},{iso2:"FJ",name:Object(c.b)("Fiji"),prefix:"679"},{iso2:"FI",name:Object(c.b)("Finland"),prefix:"358"},{iso2:"FR",name:Object(c.b)("France"),prefix:"33"},{iso2:"GF",name:Object(c.b)("French Guiana"),prefix:"594"},{iso2:"PF",name:Object(c.b)("French Polynesia"),prefix:"689"},{iso2:"TF",name:Object(c.b)("French Southern Territories"),prefix:"262"},{iso2:"GA",name:Object(c.b)("Gabon"),prefix:"241"},{iso2:"GM",name:Object(c.b)("Gambia"),prefix:"220"},{iso2:"GE",name:Object(c.b)("Georgia"),prefix:"995"},{iso2:"DE",name:Object(c.b)("Germany"),prefix:"49"},{iso2:"GH",name:Object(c.b)("Ghana"),prefix:"233"},{iso2:"GI",name:Object(c.b)("Gibraltar"),prefix:"350"},{iso2:"GR",name:Object(c.b)("Greece"),prefix:"30"},{iso2:"GL",name:Object(c.b)("Greenland"),prefix:"299"},{iso2:"GD",name:Object(c.b)("Grenada"),prefix:"1"},{iso2:"GP",name:Object(c.b)("Guadeloupe"),prefix:"590"},{iso2:"GU",name:Object(c.b)("Guam"),prefix:"1"},{iso2:"GT",name:Object(c.b)("Guatemala"),prefix:"502"},{iso2:"GG",name:Object(c.b)("Guernsey"),prefix:"44"},{iso2:"GN",name:Object(c.b)("Guinea"),prefix:"224"},{iso2:"GW",name:Object(c.b)("Guinea-Bissau"),prefix:"245"},{iso2:"GY",name:Object(c.b)("Guyana"),prefix:"592"},{iso2:"HT",name:Object(c.b)("Haiti"),prefix:"509"},{iso2:"HM",name:Object(c.b)("Heard & McDonald Islands"),prefix:"672"},{iso2:"HN",name:Object(c.b)("Honduras"),prefix:"504"},{iso2:"HK",name:Object(c.b)("Hong Kong"),prefix:"852"},{iso2:"HU",name:Object(c.b)("Hungary"),prefix:"36"},{iso2:"IS",name:Object(c.b)("Iceland"),prefix:"354"},{iso2:"IN",name:Object(c.b)("India"),prefix:"91"},{iso2:"ID",name:Object(c.b)("Indonesia"),prefix:"62"},{iso2:"IR",name:Object(c.b)("Iran"),prefix:"98"},{iso2:"IQ",name:Object(c.b)("Iraq"),prefix:"964"},{iso2:"IE",name:Object(c.b)("Ireland"),prefix:"353"},{iso2:"IM",name:Object(c.b)("Isle of Man"),prefix:"44"},{iso2:"IL",name:Object(c.b)("Israel"),prefix:"972"},{iso2:"IT",name:Object(c.b)("Italy"),prefix:"39"},{iso2:"JM",name:Object(c.b)("Jamaica"),prefix:"1"},{iso2:"JP",name:Object(c.b)("Japan"),prefix:"81"},{iso2:"JE",name:Object(c.b)("Jersey"),prefix:"44"},{iso2:"JO",name:Object(c.b)("Jordan"),prefix:"962"},{iso2:"KZ",name:Object(c.b)("Kazakhstan"),prefix:"7"},{iso2:"KE",name:Object(c.b)("Kenya"),prefix:"254"},{iso2:"KI",name:Object(c.b)("Kiribati"),prefix:"686"},{iso2:"XK",name:Object(c.b)("Kosovo"),prefix:"383"},{iso2:"KW",name:Object(c.b)("Kuwait"),prefix:"965"},{iso2:"KG",name:Object(c.b)("Kyrgyzstan"),prefix:"996"},{iso2:"LA",name:Object(c.b)("Laos"),prefix:"856"},{iso2:"LV",name:Object(c.b)("Latvia"),prefix:"371"},{iso2:"LB",name:Object(c.b)("Lebanon"),prefix:"961"},{iso2:"LS",name:Object(c.b)("Lesotho"),prefix:"266"},{iso2:"LR",name:Object(c.b)("Liberia"),prefix:"231"},{iso2:"LY",name:Object(c.b)("Libya"),prefix:"218"},{iso2:"LI",name:Object(c.b)("Liechtenstein"),prefix:"423"},{iso2:"LT",name:Object(c.b)("Lithuania"),prefix:"370"},{iso2:"LU",name:Object(c.b)("Luxembourg"),prefix:"352"},{iso2:"MO",name:Object(c.b)("Macau"),prefix:"853"},{iso2:"MK",name:Object(c.b)("Macedonia"),prefix:"389"},{iso2:"MG",name:Object(c.b)("Madagascar"),prefix:"261"},{iso2:"MW",name:Object(c.b)("Malawi"),prefix:"265"},{iso2:"MY",name:Object(c.b)("Malaysia"),prefix:"60"},{iso2:"MV",name:Object(c.b)("Maldives"),prefix:"960"},{iso2:"ML",name:Object(c.b)("Mali"),prefix:"223"},{iso2:"MT",name:Object(c.b)("Malta"),prefix:"356"},{iso2:"MH",name:Object(c.b)("Marshall Islands"),prefix:"692"},{iso2:"MQ",name:Object(c.b)("Martinique"),prefix:"596"},{iso2:"MR",name:Object(c.b)("Mauritania"),prefix:"222"},{iso2:"MU",name:Object(c.b)("Mauritius"),prefix:"230"},{iso2:"YT",name:Object(c.b)("Mayotte"),prefix:"262"},{iso2:"MX",name:Object(c.b)("Mexico"),prefix:"52"},{iso2:"FM",name:Object(c.b)("Micronesia"),prefix:"691"},{iso2:"MD",name:Object(c.b)("Moldova"),prefix:"373"},{iso2:"MC",name:Object(c.b)("Monaco"),prefix:"377"},{iso2:"MN",name:Object(c.b)("Mongolia"),prefix:"976"},{iso2:"ME",name:Object(c.b)("Montenegro"),prefix:"382"},{iso2:"MS",name:Object(c.b)("Montserrat"),prefix:"1"},{iso2:"MA",name:Object(c.b)("Morocco"),prefix:"212"},{iso2:"MZ",name:Object(c.b)("Mozambique"),prefix:"258"},{iso2:"MM",name:Object(c.b)("Myanmar"),prefix:"95"},{iso2:"NA",name:Object(c.b)("Namibia"),prefix:"264"},{iso2:"NR",name:Object(c.b)("Nauru"),prefix:"674"},{iso2:"NP",name:Object(c.b)("Nepal"),prefix:"977"},{iso2:"NL",name:Object(c.b)("Netherlands"),prefix:"31"},{iso2:"NC",name:Object(c.b)("New Caledonia"),prefix:"687"},{iso2:"NZ",name:Object(c.b)("New Zealand"),prefix:"64"},{iso2:"NI",name:Object(c.b)("Nicaragua"),prefix:"505"},{iso2:"NE",name:Object(c.b)("Niger"),prefix:"227"},{iso2:"NG",name:Object(c.b)("Nigeria"),prefix:"234"},{iso2:"NU",name:Object(c.b)("Niue"),prefix:"683"},{iso2:"NF",name:Object(c.b)("Norfolk Island"),prefix:"672"},{iso2:"KP",name:Object(c.b)("North Korea"),prefix:"850"},{iso2:"MP",name:Object(c.b)("Northern Mariana Islands"),prefix:"1"},{iso2:"NO",name:Object(c.b)("Norway"),prefix:"47"},{iso2:"OM",name:Object(c.b)("Oman"),prefix:"968"},{iso2:"PK",name:Object(c.b)("Pakistan"),prefix:"92"},{iso2:"PW",name:Object(c.b)("Palau"),prefix:"680"},{iso2:"PS",name:Object(c.b)("Palestine"),prefix:"970"},{iso2:"PA",name:Object(c.b)("Panama"),prefix:"507"},{iso2:"PG",name:Object(c.b)("Papua New Guinea"),prefix:"675"},{iso2:"PY",name:Object(c.b)("Paraguay"),prefix:"595"},{iso2:"PE",name:Object(c.b)("Peru"),prefix:"51"},{iso2:"PH",name:Object(c.b)("Philippines"),prefix:"63"},{iso2:"PN",name:Object(c.b)("Pitcairn Islands"),prefix:"870"},{iso2:"PL",name:Object(c.b)("Poland"),prefix:"48"},{iso2:"PT",name:Object(c.b)("Portugal"),prefix:"351"},{iso2:"PR",name:Object(c.b)("Puerto Rico"),prefix:"1"},{iso2:"QA",name:Object(c.b)("Qatar"),prefix:"974"},{iso2:"RO",name:Object(c.b)("Romania"),prefix:"40"},{iso2:"RU",name:Object(c.b)("Russia"),prefix:"7"},{iso2:"RW",name:Object(c.b)("Rwanda"),prefix:"250"},{iso2:"RE",name:Object(c.b)("Réunion"),prefix:"262"},{iso2:"WS",name:Object(c.b)("Samoa"),prefix:"685"},{iso2:"SM",name:Object(c.b)("San Marino"),prefix:"378"},{iso2:"SA",name:Object(c.b)("Saudi Arabia"),prefix:"966"},{iso2:"SN",name:Object(c.b)("Senegal"),prefix:"221"},{iso2:"RS",name:Object(c.b)("Serbia"),prefix:"381 p"},{iso2:"SC",name:Object(c.b)("Seychelles"),prefix:"248"},{iso2:"SL",name:Object(c.b)("Sierra Leone"),prefix:"232"},{iso2:"SG",name:Object(c.b)("Singapore"),prefix:"65"},{iso2:"SX",name:Object(c.b)("Sint Maarten"),prefix:"1"},{iso2:"SK",name:Object(c.b)("Slovakia"),prefix:"421"},{iso2:"SI",name:Object(c.b)("Slovenia"),prefix:"386"},{iso2:"SB",name:Object(c.b)("Solomon Islands"),prefix:"677"},{iso2:"SO",name:Object(c.b)("Somalia"),prefix:"252"},{iso2:"ZA",name:Object(c.b)("South Africa"),prefix:"27"},{iso2:"GS",name:Object(c.b)("South Georgia & South Sandwich Islands"),prefix:"500"},{iso2:"KR",name:Object(c.b)("South Korea"),prefix:"82"},{iso2:"SS",name:Object(c.b)("South Sudan"),prefix:"211"},{iso2:"ES",name:Object(c.b)("Spain"),prefix:"34"},{iso2:"LK",name:Object(c.b)("Sri Lanka"),prefix:"94"},{iso2:"BL",name:Object(c.b)("St. Barthélemy"),prefix:"590"},{iso2:"SH",name:Object(c.b)("St. Helena"),prefix:"290 n"},{iso2:"KN",name:Object(c.b)("St. Kitts & Nevis"),prefix:"1"},{iso2:"LC",name:Object(c.b)("St. Lucia"),prefix:"1"},{iso2:"MF",name:Object(c.b)("St. Martin"),prefix:"590"},{iso2:"PM",name:Object(c.b)("St. Pierre & Miquelon"),prefix:"508"},{iso2:"VC",name:Object(c.b)("St. Vincent & Grenadines"),prefix:"1"},{iso2:"SD",name:Object(c.b)("Sudan"),prefix:"249"},{iso2:"SR",name:Object(c.b)("Suriname"),prefix:"597"},{iso2:"SJ",name:Object(c.b)("Svalbard & Jan Mayen"),prefix:"47"},{iso2:"SZ",name:Object(c.b)("Swaziland"),prefix:"268"},{iso2:"SE",name:Object(c.b)("Sweden"),prefix:"46"},{iso2:"CH",name:Object(c.b)("Switzerland"),prefix:"41"},{iso2:"SY",name:Object(c.b)("Syria"),prefix:"963"},{iso2:"ST",name:Object(c.b)("São Tomé & Príncipe"),prefix:"239"},{iso2:"TW",name:Object(c.b)("Taiwan"),prefix:"886"},{iso2:"TJ",name:Object(c.b)("Tajikistan"),prefix:"992"},{iso2:"TZ",name:Object(c.b)("Tanzania"),prefix:"255"},{iso2:"TH",name:Object(c.b)("Thailand"),prefix:"66"},{iso2:"TL",name:Object(c.b)("Timor-Leste"),prefix:"670"},{iso2:"TG",name:Object(c.b)("Togo"),prefix:"228"},{iso2:"TK",name:Object(c.b)("Tokelau"),prefix:"690"},{iso2:"TO",name:Object(c.b)("Tonga"),prefix:"676"},{iso2:"TT",name:Object(c.b)("Trinidad & Tobago"),prefix:"1"},{iso2:"TN",name:Object(c.b)("Tunisia"),prefix:"216"},{iso2:"TR",name:Object(c.b)("Turkey"),prefix:"90"},{iso2:"TM",name:Object(c.b)("Turkmenistan"),prefix:"993"},{iso2:"TC",name:Object(c.b)("Turks & Caicos Islands"),prefix:"1"},{iso2:"TV",name:Object(c.b)("Tuvalu"),prefix:"688"},{iso2:"VI",name:Object(c.b)("U.S. Virgin Islands"),prefix:"1"},{iso2:"UG",name:Object(c.b)("Uganda"),prefix:"256"},{iso2:"UA",name:Object(c.b)("Ukraine"),prefix:"380"},{iso2:"AE",name:Object(c.b)("United Arab Emirates"),prefix:"971"},{iso2:"UY",name:Object(c.b)("Uruguay"),prefix:"598"},{iso2:"UZ",name:Object(c.b)("Uzbekistan"),prefix:"998"},{iso2:"VU",name:Object(c.b)("Vanuatu"),prefix:"678"},{iso2:"VA",name:Object(c.b)("Vatican City"),prefix:"39"},{iso2:"VE",name:Object(c.b)("Venezuela"),prefix:"58"},{iso2:"VN",name:Object(c.b)("Vietnam"),prefix:"84"},{iso2:"WF",name:Object(c.b)("Wallis & Futuna"),prefix:"681"},{iso2:"EH",name:Object(c.b)("Western Sahara"),prefix:"212"},{iso2:"YE",name:Object(c.b)("Yemen"),prefix:"967"},{iso2:"ZM",name:Object(c.b)("Zambia"),prefix:"260"},{iso2:"ZW",name:Object(c.b)("Zimbabwe"),prefix:"263"}];var Eo;const So={};for(const e of yo)So[e.iso2]=e;function wo(e,t){return"+"===e[0]&&(e=e.slice(1)),0==t.name.toUpperCase().indexOf(e.toUpperCase())||(t.iso2==e.toUpperCase()||-1!==t.prefix.indexOf(e))}let Co=Object(N.a)("views.auth.CountryDropdown")(Eo=class extends i.a.Component{constructor(e){super(e),this._onSearchChange=this._onSearchChange.bind(this),this._onOptionChange=this._onOptionChange.bind(this),this._getShortOption=this._getShortOption.bind(this);let t=yo[0];const n=l.a.get().defaultCountryCode;if(n){const e=yo.find(e=>e.iso2===n.toUpperCase());e&&(t=e)}this.state={searchQuery:"",defaultCountry:t}}componentDidMount(){this.props.value||this.props.onOptionChange(this.state.defaultCountry)}_onSearchChange(e){this.setState({searchQuery:e})}_onOptionChange(e){this.props.onOptionChange(So[e])}_flagImgForIso2(e){return i.a.createElement("div",{className:"mx_Dropdown_option_emoji"},(t=e,vo.test(t)?String.fromCodePoint(...t.split("").map(e=>bo+e.charCodeAt(0))):""));var t}_getShortOption(e){if(!this.props.isSmall)return;let t;return this.props.showPrefix&&(t="+"+So[e].prefix),i.a.createElement("span",{className:"mx_CountryDropdown_shortOption"},this._flagImgForIso2(e),t)}render(){const e=d.getComponent("elements.Dropdown");let t;if(this.state.searchQuery){if(t=yo.filter(wo.bind(this,this.state.searchQuery)),2==this.state.searchQuery.length&&So[this.state.searchQuery.toUpperCase()]){const e=So[this.state.searchQuery.toUpperCase()];t=t.filter(t=>t.iso2!=e.iso2),t.unshift(e)}}else t=yo;const n=t.map(e=>i.a.createElement("div",{className:"mx_CountryDropdown_option",key:e.iso2},this._flagImgForIso2(e.iso2),Object(c.a)(e.name)," (+",e.prefix,")")),o=this.props.value||this.state.defaultCountry.iso2;return i.a.createElement(e,{id:"mx_CountryDropdown",className:this.props.className+" mx_CountryDropdown",onOptionChange:this._onOptionChange,onSearchChange:this._onSearchChange,menuWidth:298,getShortOption:this._getShortOption,value:o,searchEnabled:!0,disabled:this.props.disabled,label:Object(c.a)("Country Dropdown")},n)}})||Eo;var To,xo,Oo;Co.propTypes={className:He.a.string,isSmall:He.a.bool,showPrefix:He.a.bool,onOptionChange:He.a.func.isRequired,value:He.a.string,disabled:He.a.bool};const ko=/^[0-9()\-\s]*$/;var Ro;!function(e){e.Email="login_field_email",e.MatrixId="login_field_mxid",e.Phone="login_field_phone",e.Password="login_field_phone"}(Ro||(Ro={}));let Do=Object(N.a)("views.auth.PasswordLogin")((Oo=xo=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"onForgotPasswordClick",e=>{e.preventDefault(),e.stopPropagation(),this.props.onForgotPasswordClick()}),R()(this,"onSubmitForm",async e=>{e.preventDefault();if(!await this.verifyFieldsBeforeSubmit())return void E.a.instance.track("onboarding_registration_submit_failed");let t="",n=null,o=null;switch(this.state.loginType){case Ro.Email:case Ro.MatrixId:t=this.props.username;break;case Ro.Phone:n=this.props.phoneCountry,o=this.props.phoneNumber}this.props.onSubmit(t,n,o,this.state.password)}),R()(this,"onUsernameChanged",e=>{this.props.onUsernameChanged(e.target.value)}),R()(this,"onUsernameFocus",()=>{this.state.loginType===Ro.MatrixId?E.a.instance.track("onboarding_login_mxid_focus"):E.a.instance.track("onboarding_login_email_focus")}),R()(this,"onUsernameBlur",e=>{this.state.loginType===Ro.MatrixId?E.a.instance.track("onboarding_login_mxid_blur"):E.a.instance.track("onboarding_login_email_blur"),this.props.onUsernameBlur(e.target.value)}),R()(this,"onLoginTypeChange",e=>{const t=e.target.value;this.setState({loginType:t}),this.props.onUsernameChanged(""),E.a.instance.track("onboarding_login_type_changed",{loginType:t})}),R()(this,"onPhoneCountryChanged",e=>{this.props.onPhoneCountryChanged(e.iso2)}),R()(this,"onPhoneNumberChanged",e=>{this.props.onPhoneNumberChanged(e.target.value)}),R()(this,"onPhoneNumberFocus",()=>{E.a.instance.track("onboarding_login_phone_number_focus")}),R()(this,"onPhoneNumberBlur",e=>{E.a.instance.track("onboarding_login_phone_number_blur")}),R()(this,"onPasswordChanged",e=>{this.setState({password:e.target.value})}),R()(this,"validateUsernameRules",Object(go.a)({rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Enter username")}]})),R()(this,"onUsernameValidate",async e=>{const t=await this.validateUsernameRules(e);return this.markFieldValid(Ro.MatrixId,t.valid),t}),R()(this,"validateEmailRules",Object(go.a)({rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Enter email address")},{key:"email",test:({value:e})=>!e||fo.a(e),invalid:()=>Object(c.a)("Doesn't look like a valid email address")}]})),R()(this,"onEmailValidate",async e=>{const t=await this.validateEmailRules(e);return this.markFieldValid(Ro.Email,t.valid),t}),R()(this,"validatePhoneNumberRules",Object(go.a)({rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Enter phone number")},{key:"number",test:({value:e})=>!e||ko.test(e),invalid:()=>Object(c.a)("That phone number doesn't look quite right, please check and try again")}]})),R()(this,"onPhoneNumberValidate",async e=>{const t=await this.validatePhoneNumberRules(e);return this.markFieldValid(Ro.Password,t.valid),t}),R()(this,"validatePasswordRules",Object(go.a)({rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Enter password")}]})),R()(this,"onPasswordValidate",async e=>{const t=await this.validatePasswordRules(e);return this.markFieldValid(Ro.Password,t.valid),t}),this.state={fieldValid:{},loginType:Ro.MatrixId,password:""}}async verifyFieldsBeforeSubmit(){const e=document.activeElement;e&&e.blur();const t=[this.state.loginType,Ro.Password];for(const e of t){const t=this[e];t&&await t.validate({allowEmpty:!1})}if(await new Promise(e=>this.setState({},e)),this.allFieldsValid())return!0;const n=this.findFirstInvalidField(t);return!n||(n.focus(),n.validate({allowEmpty:!1,focused:!0}),!1)}allFieldsValid(){const e=Object.keys(this.state.fieldValid);for(let t=0;t<e.length;++t)if(!this.state.fieldValid[e[t]])return!1;return!0}findFirstInvalidField(e){for(const t of e)if(!this.state.fieldValid[t]&&this[t])return this[t];return null}markFieldValid(e,t){const{fieldValid:n}=this.state;n[e]=t,this.setState({fieldValid:n})}renderLoginField(e,t){const n={error:!1};switch(e){case Ro.Email:return n.error=this.props.loginIncorrect&&!this.props.username,i.a.createElement(qe.a,{className:P()(n),name:"username",key:"email_input",type:"text",label:Object(c.a)("Email"),placeholder:"joe@example.com",value:this.props.username,onChange:this.onUsernameChanged,onFocus:this.onUsernameFocus,onBlur:this.onUsernameBlur,disabled:this.props.disableSubmit,autoFocus:t,onValidate:this.onEmailValidate,ref:e=>this[Ro.Email]=e});case Ro.MatrixId:return n.error=this.props.loginIncorrect&&!this.props.username,i.a.createElement(qe.a,{className:P()(n),name:"username",key:"username_input",type:"text",label:Object(c.a)("Username"),placeholder:Object(c.a)("Username").toLocaleLowerCase(),value:this.props.username,onChange:this.onUsernameChanged,onFocus:this.onUsernameFocus,onBlur:this.onUsernameBlur,disabled:this.props.disableSubmit,autoFocus:t,onValidate:this.onUsernameValidate,ref:e=>this[Ro.MatrixId]=e});case Ro.Phone:{n.error=this.props.loginIncorrect&&!this.props.phoneNumber;const e=i.a.createElement(Co,{value:this.props.phoneCountry,isSmall:!0,showPrefix:!0,onOptionChange:this.onPhoneCountryChanged});return i.a.createElement(qe.a,{className:P()(n),name:"phoneNumber",key:"phone_input",type:"text",label:Object(c.a)("Phone"),value:this.props.phoneNumber,prefixComponent:e,onChange:this.onPhoneNumberChanged,onFocus:this.onPhoneNumberFocus,onBlur:this.onPhoneNumberBlur,disabled:this.props.disableSubmit,autoFocus:t,onValidate:this.onPhoneNumberValidate,ref:e=>this[Ro.Password]=e})}}}isLoginEmpty(){switch(this.state.loginType){case Ro.Email:case Ro.MatrixId:return!this.props.username;case Ro.Phone:return!this.props.phoneCountry||!this.props.phoneNumber}}render(){let e;this.props.onForgotPasswordClick&&(e=i.a.createElement(g.a,{className:"mx_Login_forgot",disabled:this.props.busy,kind:"link",onClick:this.onForgotPasswordClick},Object(c.a)("Forgot password?")));const t=P()({error:this.props.loginIncorrect&&!this.isLoginEmpty()}),n=!this.isLoginEmpty(),o=this.renderLoginField(this.state.loginType,!n);let r;return l.a.get().disable_3pid_login||(r=i.a.createElement("div",{className:"mx_Login_type_container"},i.a.createElement("label",{className:"mx_Login_type_label"},Object(c.a)("Sign in with")),i.a.createElement(qe.a,{element:"select",value:this.state.loginType,onChange:this.onLoginTypeChange,disabled:this.props.disableSubmit},i.a.createElement("option",{key:Ro.MatrixId,value:Ro.MatrixId},Object(c.a)("Username")),i.a.createElement("option",{key:Ro.Email,value:Ro.Email},Object(c.a)("Email address")),i.a.createElement("option",{key:Ro.Password,value:Ro.Password},Object(c.a)("Phone"))))),i.a.createElement("div",null,i.a.createElement("form",{onSubmit:this.onSubmitForm},r,o,i.a.createElement(qe.a,{className:t,type:"password",name:"password",label:Object(c.a)("Password"),value:this.state.password,onChange:this.onPasswordChanged,disabled:this.props.disableSubmit,autoFocus:n,onValidate:this.onPasswordValidate,ref:e=>this[Ro.Password]=e}),e,!this.props.busy&&i.a.createElement("input",{className:"mx_Login_submit",type:"submit",value:Object(c.a)("Sign in"),disabled:this.props.disableSubmit})))}},R()(xo,"defaultProps",{onUsernameChanged:function(){},onUsernameBlur:function(){},onPhoneCountryChanged:function(){},onPhoneNumberChanged:function(){},loginIncorrect:!1,disableSubmit:!1}),To=Oo))||To;var Io=n(199),Ao=n(119),No=n(105);const Fo=e=>{let{matrixClient:t,loginType:o,fragmentAfterLogin:r,idp:a,primary:s,mini:l}=e,d=me()(e,["matrixClient","loginType","fragmentAfterLogin","idp","primary","mini"]);const u=a?Object(c.a)("Continue with %(provider)s",{provider:a.name}):Object(c.a)("Sign in with single sign-on"),h=()=>{tn.a.get().startSingleSignOn(t,o,r,null==a?void 0:a.id)};let p,m;const f=a?(e=>{switch(e){case ho.a.Apple:return n(1341);case ho.a.Facebook:return n(1342);case ho.a.Github:return n(1343);case ho.a.Gitlab:return n(1344);case ho.a.Google:return n(1345);case ho.a.Twitter:return n(1346);default:return null}})(a.brand):null;if(f){const e=a.brand.split(".").pop();m="mx_SSOButton_brand_"+e,p=i.a.createElement("img",{src:f,height:"24",width:"24",alt:e})}else if("string"==typeof(null==a?void 0:a.icon)&&a.icon.startsWith("mxc://")){const e=Object(ge.b)(a.icon,t).getSquareThumbnailHttp(24);p=i.a.createElement("img",{src:e,height:"24",width:"24",alt:a.name})}const _=P()("mx_SSOButton",{[m]:m,mx_SSOButton_mini:l,mx_SSOButton_default:!a,mx_SSOButton_primary:s});return l?i.a.createElement(V.a,he()({},d,{title:u,className:_,onClick:h}),p):i.a.createElement(g.a,he()({},d,{className:_,onClick:h}),p,u)};var Mo,Po=({matrixClient:e,flow:t,loginType:n,fragmentAfterLogin:o,primary:r})=>{const a=t["org.matrix.msc2858.identity_providers"]||[];if(a.length<2)return i.a.createElement("div",{className:"mx_SSOButtons"},i.a.createElement(Fo,{matrixClient:e,loginType:n,fragmentAfterLogin:o,idp:a[0],primary:r}));const s=Math.ceil(a.length/6),c=Math.ceil(a.length/s);return i.a.createElement("div",{className:"mx_SSOButtons"},Object(No.chunk)(a,c).map(t=>i.a.createElement("div",{key:t[0].id,className:"mx_SSOButtons_row"},t.map(t=>i.a.createElement(Fo,{key:t.id,matrixClient:e,loginType:n,fragmentAfterLogin:o,idp:t,mini:!0,primary:r})))))},Lo=n(220),jo=n(246),Uo=n(267);let Bo=Object(N.a)("views.dialogs.ServerPickerDialog")(Mo=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"defaultServer",void 0),R()(this,"fieldRef",Object(r.createRef)()),R()(this,"validatedConf",void 0),R()(this,"onDefaultChosen",()=>{this.setState({defaultChosen:!0})}),R()(this,"onOtherChosen",()=>{this.setState({defaultChosen:!1})}),R()(this,"onHomeserverChange",e=>{this.setState({otherHomeserver:e.target.value})}),R()(this,"validate",Object(go.a)({deriveData:async({value:e})=>{let t=e.trim();if(!t.includes("://"))try{const e=await jo.a.findClientConfig(t);return this.validatedConf=po.b.buildValidatedConfigFromDiscovery(t,e),{}}catch(e){console.error(`Attempted ${t} as a server_name but it failed`,e)}t.includes("://")||(t="https://"+t);try{return this.validatedConf=await po.b.validateServerConfigWithStaticUrls(t),{}}catch(e){console.error(e);if(po.b.authComponentStateForError(e).isFatalError){let t=Object(c.a)("Unable to validate homeserver");return e.translatedMessage&&(t=e.translatedMessage),{error:t}}try{return this.validatedConf=await po.b.validateServerConfigWithStaticUrls(t,null,!0),{}}catch(e){return console.error(e),{error:Object(c.a)("Invalid URL")}}}},rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Specify a homeserver")},{key:"valid",test:async function({value:e},{error:t}){return!e||!t},invalid:function({error:e}){return e}}]})),R()(this,"onHomeserverValidate",e=>this.validate(e)),R()(this,"onSubmit",async e=>{e.preventDefault();if(!await this.fieldRef.current.validate({allowEmpty:!1})&&!this.state.defaultChosen)return this.fieldRef.current.focus(),void this.fieldRef.current.validate({allowEmpty:!1,focused:!0});this.props.onFinished(this.state.defaultChosen?this.defaultServer:this.validatedConf)});const t=l.a.get();this.defaultServer=t.validated_server_config;const{serverConfig:n}=this.props;let o="";n.isDefault||(o=n.isNameResolvable&&n.hsName?n.hsName:n.hsUrl),this.state={defaultChosen:n.isDefault,otherHomeserver:o}}render(){let e;"matrix.org"===this.defaultServer.hsName&&(e=Object(c.a)("Matrix.org is the biggest public homeserver in the world, so it’s a good place for many."));let t=this.defaultServer.hsName;return this.defaultServer.hsNameIsDifferent&&(t=i.a.createElement(Lo.a,{class:"mx_Login_underlinedServerName",tooltip:this.defaultServer.hsUrl},this.defaultServer.hsName)),i.a.createElement(it.a,{title:this.props.title||Object(c.a)("Sign into your homeserver"),className:"mx_ServerPickerDialog",contentId:"mx_ServerPickerDialog",onFinished:this.props.onFinished,fixedWidth:!1,hasCancel:!0},i.a.createElement("form",{className:"mx_Dialog_content",id:"mx_ServerPickerDialog",onSubmit:this.onSubmit},i.a.createElement("p",null,Object(c.a)("We call the places where you can host your account ‘homeservers’.")," ",e),i.a.createElement(Uo.a,{name:"defaultChosen",value:"true",checked:this.state.defaultChosen,onChange:this.onDefaultChosen},t),i.a.createElement(Uo.a,{name:"defaultChosen",value:"false",className:"mx_ServerPickerDialog_otherHomeserverRadio",checked:!this.state.defaultChosen,onChange:this.onOtherChosen},i.a.createElement(qe.a,{type:"text",className:"mx_ServerPickerDialog_otherHomeserver",label:Object(c.a)("Other homeserver"),onChange:this.onHomeserverChange,onClick:this.onOtherChosen,ref:this.fieldRef,onValidate:this.onHomeserverValidate,value:this.state.otherHomeserver,validateOnChange:!1,validateOnFocus:!1})),i.a.createElement("p",null,Object(c.a)("Use your preferred Matrix homeserver if you have one, or host your own.")),i.a.createElement(g.a,{className:"mx_ServerPickerDialog_continue",kind:"primary",onClick:this.onSubmit},Object(c.a)("Continue")),i.a.createElement("h4",null,Object(c.a)("Learn more")),i.a.createElement("a",{href:"https://matrix.org/faq/#what-is-a-homeserver%3F",target:"_blank",rel:"noreferrer noopener"},Object(c.a)("About homeservers"))))}})||Mo;const qo=()=>{Ge.a.createTrackedDialog("Custom Server Dialog","",We.a,{title:Object(c.a)("Server Options"),description:Object(c.a)("You can use the custom server options to sign into other Matrix servers by specifying a different homeserver URL. This allows you to use Element with an existing Matrix account on a different homeserver."),button:Object(c.a)("Dismiss"),hasCloseButton:!1,fixedWidth:!1},"mx_ServerPicker_helpDialog")};var Go,Vo=({title:e,dialogTitle:t,serverConfig:n,onServerConfigChange:o})=>{let r;if(!l.a.get().disable_custom_urls&&o){const e=()=>{((e,t,n)=>{Ge.a.createTrackedDialog("Server Picker","",Bo,{title:e,serverConfig:t,onFinished:n})})(t,n,e=>{e&&o(e)})};r=i.a.createElement(g.a,{className:"mx_ServerPicker_change",kind:"link",onClick:e},Object(c.a)("Edit"))}let a,s=n.isNameResolvable?n.hsName:n.hsUrl;return n.hsNameIsDifferent&&(s=i.a.createElement(Lo.a,{class:"mx_Login_underlinedServerName",tooltip:n.hsUrl},n.hsName)),"matrix.org"===n.hsName&&(a=i.a.createElement("span",{className:"mx_ServerPicker_desc"},Object(c.a)("Join millions for free on the largest public server"))),i.a.createElement("div",{className:"mx_ServerPicker"},i.a.createElement("h3",null,e||Object(c.a)("Homeserver")),i.a.createElement(g.a,{className:"mx_ServerPicker_help",onClick:qo}),i.a.createElement("span",{className:"mx_ServerPicker_server"},s),r,a)};function Ho(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ho(Object(n),!0).forEach((function(t){R()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ho(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Object(c.b)("Invalid homeserver discovery response"),Object(c.b)("Failed to get autodiscovery configuration from server"),Object(c.b)("Invalid base_url for m.homeserver"),Object(c.b)("Homeserver URL does not appear to be a valid Matrix homeserver"),Object(c.b)("Invalid identity server discovery response"),Object(c.b)("Invalid base_url for m.identity_server"),Object(c.b)("Identity server URL does not appear to be a valid identity server"),Object(c.b)("General failure");let Ko=Object(N.a)("structures.auth.LoginComponent")(Go=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"unmounted",!1),R()(this,"loginLogic",void 0),R()(this,"stepRendererMap",void 0),R()(this,"isBusy",()=>this.state.busy||this.props.busy),R()(this,"onPasswordLogin",async(e,t,n,o)=>{if(!this.state.serverIsAlive){this.setState({busy:!0});let e=!0;try{await po.b.validateServerConfigWithStaticUrls(this.props.serverConfig.hsUrl,this.props.serverConfig.isUrl),this.setState({serverIsAlive:!0,errorText:""})}catch(t){const n=po.b.authComponentStateForError(t);this.setState(zo({busy:!1,busyLoggingIn:!1},n)),e=!n.serverErrorIsFatal}if(!e)return}this.setState({busy:!0,busyLoggingIn:!0,errorText:null,loginIncorrect:!1}),this.loginLogic.loginViaPassword(e,t,n,o).then(e=>{this.setState({serverIsAlive:!0}),this.props.onLoggedIn(e,o)},t=>{if(this.unmounted)return;let n;const o=e.indexOf("@")>0;if(400===t.httpStatus&&o)n=Object(c.a)("This homeserver does not support login using email address.");else if("M_RESOURCE_LIMIT_EXCEEDED"===t.errcode){const e=Object(rn.a)(t.data.limit_type,t.data.admin_contact,{monthly_active_user:Object(c.b)("This homeserver has hit its Monthly Active User limit."),hs_blocked:Object(c.b)("This homeserver has been blocked by it's administrator."),"":Object(c.b)("This homeserver has exceeded one of its resource limits.")}),o=Object(rn.a)(t.data.limit_type,t.data.admin_contact,{"":Object(c.b)("Please <a>contact your service administrator</a> to continue using this service.")});n=i.a.createElement("div",null,i.a.createElement("div",null,e),i.a.createElement("div",{className:"mx_Login_smallError"},o))}else n=401===t.httpStatus||403===t.httpStatus?"M_USER_DEACTIVATED"===t.errcode?Object(c.a)("This account has been deactivated."):l.a.get().disable_custom_urls?i.a.createElement("div",null,i.a.createElement("div",null,Object(c.a)("Incorrect username and/or password.")),i.a.createElement("div",{className:"mx_Login_smallError"},Object(c.a)("Please note you are logging into the %(hs)s server, not matrix.org.",{hs:this.props.serverConfig.hsName}))):Object(c.a)("Incorrect username and/or password."):this.errorTextFromError(t);this.setState({busy:!1,busyLoggingIn:!1,errorText:n,loginIncorrect:401===t.httpStatus||403===t.httpStatus})})}),R()(this,"onUsernameChanged",e=>{this.setState({username:e})}),R()(this,"onUsernameBlur",async e=>{const t="@"===e[0];if(this.setState({username:e,busy:t,errorText:null,canTryLogin:!0}),t){const t=e.split(":").slice(1).join(":");try{const e=await po.b.validateServerName(t);this.props.onServerConfigChange(e),this.setState({busy:!1})}catch(e){console.error("Problem parsing URL or unhandled error doing .well-known discovery:",e);let t=Object(c.a)("Failed to perform homeserver discovery");e.translatedMessage&&(t=e.translatedMessage);let n=t,o={};po.b.isLivelinessError(e)&&(n=this.state.errorText,o=po.b.authComponentStateForError(e)),this.setState(zo({busy:!1,errorText:n},o))}}}),R()(this,"onPhoneCountryChanged",e=>{this.setState({phoneCountry:e})}),R()(this,"onPhoneNumberChanged",e=>{this.setState({phoneNumber:e})}),R()(this,"onRegisterClick",e=>{e.preventDefault(),e.stopPropagation(),this.props.onRegisterClick()}),R()(this,"onTryRegisterClick",e=>{var t,n;const o=null===(t=this.state.flows)||void 0===t?void 0:t.find(e=>"m.login.password"===e.type),r=null===(n=this.state.flows)||void 0===n?void 0:n.find(e=>"m.login.sso"===e.type||"m.login.cas"===e.type);if(r&&!o){e.preventDefault(),e.stopPropagation();const t="m.login.sso"===r.type?"sso":"cas";tn.a.get().startSingleSignOn(this.loginLogic.createTemporaryClient(),t,this.props.fragmentAfterLogin)}else this.onRegisterClick(e)}),R()(this,"isSupportedFlow",e=>!!this.stepRendererMap[e.type]||(console.log("Skipping flow",e,"due to unsupported login type",e.type),!1)),R()(this,"renderPasswordStep",()=>i.a.createElement(Do,{onSubmit:this.onPasswordLogin,username:this.state.username,phoneCountry:this.state.phoneCountry,phoneNumber:this.state.phoneNumber,onUsernameChanged:this.onUsernameChanged,onUsernameBlur:this.onUsernameBlur,onPhoneCountryChanged:this.onPhoneCountryChanged,onPhoneNumberChanged:this.onPhoneNumberChanged,onForgotPasswordClick:this.props.onForgotPasswordClick,loginIncorrect:this.state.loginIncorrect,serverConfig:this.props.serverConfig,disableSubmit:this.isBusy(),busy:this.props.isSyncing||this.state.busyLoggingIn})),R()(this,"renderSsoStep",e=>{const t=this.state.flows.find(t=>t.type==="m.login."+e);return i.a.createElement(Po,{matrixClient:this.loginLogic.createTemporaryClient(),flow:t,loginType:e,fragmentAfterLogin:this.props.fragmentAfterLogin,primary:!this.state.flows.find(e=>"m.login.password"===e.type)})}),this.state={busy:!1,busyLoggingIn:null,errorText:null,loginIncorrect:!1,canTryLogin:!0,flows:null,username:"",phoneCountry:null,phoneNumber:"",serverIsAlive:!0,serverErrorIsFatal:!1,serverDeadError:""},this.stepRendererMap={"m.login.password":this.renderPasswordStep,"m.login.cas":()=>this.renderSsoStep("cas"),"m.login.sso":()=>this.renderSsoStep("sso")},E.a.instance.track("onboarding_login_begin")}UNSAFE_componentWillMount(){this.initLoginLogic(this.props.serverConfig)}componentWillUnmount(){this.unmounted=!0}UNSAFE_componentWillReceiveProps(e){e.serverConfig.hsUrl===this.props.serverConfig.hsUrl&&e.serverConfig.isUrl===this.props.serverConfig.isUrl||this.initLoginLogic(e.serverConfig)}async initLoginLogic({hsUrl:e,isUrl:t}){let n=!1;this.props.serverConfig.isDefault&&e===this.props.serverConfig.hsUrl&&t===this.props.serverConfig.isUrl&&(n=!0);const o=n?this.props.fallbackHsUrl:null,r=new ho.b(e,t,o,{defaultDeviceDisplayName:this.props.defaultDeviceDisplayName});this.loginLogic=r,this.setState({busy:!0,loginIncorrect:!1});try{const{warning:n}=await po.b.validateServerConfigWithStaticUrls(e,t);n?this.setState(zo(zo({},po.b.authComponentStateForError(n)),{},{errorText:""})):this.setState({serverIsAlive:!0,errorText:""})}catch(e){this.setState(zo({busy:!1},po.b.authComponentStateForError(e)))}r.getFlows().then(e=>{const t=e.filter(this.isSupportedFlow);t.length>0?this.setState({flows:t}):this.setState({errorText:Object(c.a)("This homeserver doesn't offer any login flows which are supported by this client.")})},e=>{this.setState({errorText:this.errorTextFromError(e),loginIncorrect:!1,canTryLogin:!1})}).finally(()=>{this.setState({busy:!1})})}errorTextFromError(e){let t=e.errcode;!t&&e.httpStatus&&(t="HTTP "+e.httpStatus);let n=Object(c.a)("There was a problem communicating with the homeserver, please try again later.")+(t?" ("+t+")":"");return"rejected"===e.cors&&(n="https:"!==window.location.protocol||!this.props.serverConfig.hsUrl.startsWith("http:")&&this.props.serverConfig.hsUrl.startsWith("http")?i.a.createElement("span",null,Object(c.a)("Can't connect to homeserver - please check your connectivity, ensure your <a>homeserver's SSL certificate</a> is trusted, and that a browser extension is not blocking requests.",{},{a:e=>i.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:this.props.serverConfig.hsUrl},e)})):i.a.createElement("span",null,Object(c.a)("Can't connect to homeserver via HTTP when an HTTPS URL is in your browser bar. Either use HTTPS or <a>enable unsafe scripts</a>.",{},{a:e=>i.a.createElement("a",{target:"_blank",rel:"noreferrer noopener",href:"https://www.google.com/search?&q=enable%20unsafe%20scripts"},e)}))),n}renderLoginComponentForFlows(){if(!this.state.flows)return null;const e=["m.login.password","m.login.sso"].map(e=>this.state.flows.find(t=>t.type===e)).filter(Boolean);return i.a.createElement(i.a.Fragment,null,e.map(e=>{const t=this.stepRendererMap[e.type];return i.a.createElement(i.a.Fragment,{key:e.type},t())}))}render(){const e=d.getComponent("auth.AuthHeader"),t=d.getComponent("auth.AuthBody"),n=this.isBusy()&&!this.state.busyLoggingIn?i.a.createElement("div",{className:"mx_Login_loader"},i.a.createElement(Ao.a,null)):null,o=this.state.errorText;let r,a,s;if(o&&(r=i.a.createElement("div",{className:"mx_Login_error"},o)),!this.state.serverIsAlive){const e=P()({mx_Login_error:!0,mx_Login_serverError:!0,mx_Login_serverErrorNonFatal:!this.state.serverErrorIsFatal});a=i.a.createElement("div",{className:e},this.state.serverDeadError)}return this.props.isSyncing||this.state.busyLoggingIn?s=i.a.createElement("div",{className:"mx_AuthBody_paddedFooter"},i.a.createElement("div",{className:"mx_AuthBody_paddedFooter_title"},i.a.createElement(Io.a,{w:20,h:20}),this.props.isSyncing?Object(c.a)("Syncing..."):Object(c.a)("Signing In...")),this.props.isSyncing&&i.a.createElement("div",{className:"mx_AuthBody_paddedFooter_subtitle"},Object(c.a)("If you've joined lots of rooms, this might take a while"))):G.b.getValue(lt.a.Registration)&&(s=i.a.createElement("span",{className:"mx_AuthBody_changeFlow"},Object(c.a)("New? <a>Create account</a>",{},{a:e=>i.a.createElement("a",{onClick:this.onTryRegisterClick,href:"#"},e)}))),i.a.createElement(mo,null,i.a.createElement(e,{disableLanguageSelector:this.props.isSyncing||this.state.busyLoggingIn}),i.a.createElement(t,null,i.a.createElement("h2",null,Object(c.a)("Sign in"),n),r,a,i.a.createElement(Vo,{serverConfig:this.props.serverConfig,onServerConfigChange:this.props.onServerConfigChange}),this.renderLoginComponentForFlows(),s))}})||Go;var Wo,Yo=n(146),$o=n(295);function Qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}let Jo=Object(N.a)("structures.auth.Registration")(Wo=class extends i.a.Component{constructor(e){super(e),R()(this,"loginLogic",void 0),R()(this,"onFormSubmit",e=>{this.setState({errorText:"",busy:!0,formVals:e,doingUIAuth:!0})}),R()(this,"requestEmailToken",(e,t,n,o)=>this.state.matrixClient.requestRegisterEmailToken(e,t,n,this.props.makeRegistrationUrl({client_secret:t,hs_url:this.state.matrixClient.getHomeserverUrl(),is_url:this.state.matrixClient.getIdentityServerUrl(),session_id:o}))),R()(this,"onUIAuthFinished",async(e,t,n)=>{if(!e){let e=t.message||t.toString();if("M_RESOURCE_LIMIT_EXCEEDED"===t.errcode){const n=Object(rn.a)(t.data.limit_type,t.data.admin_contact,{monthly_active_user:Object(c.b)("This homeserver has hit its Monthly Active User limit."),hs_blocked:Object(c.b)("This homeserver has been blocked by it's administrator."),"":Object(c.b)("This homeserver has exceeded one of its resource limits.")}),o=Object(rn.a)(t.data.limit_type,t.data.admin_contact,{"":Object(c.b)("Please <a>contact your service administrator</a> to continue using this service.")});e=i.a.createElement("div",null,i.a.createElement("p",null,n),i.a.createElement("p",null,o))}else if(t.required_stages&&t.required_stages.indexOf("m.login.msisdn")>-1){let n=!1;for(const e of t.available_flows)n=n||e.stages.includes("m.login.msisdn");n||(e=Object(c.a)("This server does not support authentication with a phone number."))}else"M_USER_IN_USE"===t.errcode&&(e=Object(c.a)("That username already exists, please try another."));return void this.setState({busy:!1,doingUIAuth:!1,errorText:e})}de.a.setJustRegisteredUserId(t.user_id);const o={doingUIAuth:!1,registeredUsername:t.user_id,differentLoggedInUserId:null,completedNoSignin:!1,busy:!0},[r,a]=await $o.b();r&&!a&&r!==t.userId&&(console.log(`Found a session for ${r} but ${t.userId} has just registered.`),o.differentLoggedInUserId=r),t.access_token?(await this.props.onLoggedIn({userId:t.user_id,deviceId:t.device_id,homeserverUrl:this.state.matrixClient.getHomeserverUrl(),identityServerUrl:this.state.matrixClient.getIdentityServerUrl(),accessToken:t.access_token},this.state.formVals.password),this.setupPushers()):(o.busy=!1,o.completedNoSignin=!0),this.setState(o)}),R()(this,"onLoginClick",e=>{e.preventDefault(),e.stopPropagation(),this.props.onLoginClick()}),R()(this,"onGoToFormClicked",e=>{e.preventDefault(),e.stopPropagation(),this.replaceClient(this.props.serverConfig),this.setState({busy:!1,doingUIAuth:!1})}),R()(this,"makeRegisterRequest",e=>{let t=Boolean(this.state.formVals.email);this.state.formVals.password||(t=null);const n={username:this.state.formVals.username,password:this.state.formVals.password,initial_device_display_name:this.props.defaultDeviceDisplayName,auth:void 0,inhibit_login:void 0};return e&&(n.auth=e),null!=t&&(n.inhibit_login=t),this.state.matrixClient.registerRequest(n)}),R()(this,"onLoginClickWithCheck",async e=>{e.preventDefault();const t=await $o.h({ignoreGuest:!0});return t||this.props.onLoginClick(),t}),this.state={busy:!1,errorText:null,formVals:{email:this.props.email},doingUIAuth:Boolean(this.props.sessionId),flows:null,completedNoSignin:!1,serverIsAlive:!0,serverErrorIsFatal:!1,serverDeadError:""};const{hsUrl:t,isUrl:n}=this.props.serverConfig;this.loginLogic=new ho.b(t,n,null,{defaultDeviceDisplayName:"Element login check"})}componentDidMount(){this.replaceClient(this.props.serverConfig)}UNSAFE_componentWillReceiveProps(e){e.serverConfig.hsUrl===this.props.serverConfig.hsUrl&&e.serverConfig.isUrl===this.props.serverConfig.isUrl||this.replaceClient(e.serverConfig)}async replaceClient(e){this.setState({errorText:null,serverDeadError:null,serverErrorIsFatal:!1,busy:!0});try{await po.b.validateServerConfigWithStaticUrls(e.hsUrl,e.isUrl),this.setState({serverIsAlive:!0,serverErrorIsFatal:!1})}catch(e){if(this.setState(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qo(Object(n),!0).forEach((function(t){R()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({busy:!1},po.b.authComponentStateForError(e,"register"))),this.state.serverErrorIsFatal)return}const{hsUrl:t,isUrl:n}=e,o=Object(Yo.createClient)({baseUrl:t,idBaseUrl:n});let r;this.loginLogic.setHomeserverUrl(t),this.loginLogic.setIdentityServerUrl(n);try{r=(await this.loginLogic.getFlows()).find(e=>"m.login.sso"===e.type||"m.login.cas"===e.type)}catch(e){console.error("Failed to get login flows to check for SSO support",e)}this.setState({matrixClient:o,ssoFlow:r,busy:!1});const i=e=>{this.setState({errorText:Object(c.a)("Unable to query for supported registration methods."),flows:[]})};try{this.state.doingUIAuth||(await this.makeRegisterRequest(null),console.log("Expecting 401 from register request but got success!"))}catch(e){401===e.httpStatus?this.setState({flows:e.data.flows}):403===e.httpStatus&&"M_UNKNOWN"===e.errcode?r?u.a.dispatch({action:"start_login"}):this.setState({serverErrorIsFatal:!0,errorText:Object(c.a)("Registration has been disabled on this homeserver."),flows:[]}):(console.log("Unable to query for supported registration methods.",e),i())}}setupPushers(){if(!this.props.brand)return Promise.resolve();const e=de.a.get();return e.getPushers().then(t=>{const n=t.pushers;for(let t=0;t<n.length;++t)if("email"===n[t].kind){const o=n[t];o.data={brand:this.props.brand},e.setPusher(o).then(()=>{console.log("Set email branding to "+this.props.brand)},e=>{console.error("Couldn't set email branding: "+e)})}},e=>{console.error("Couldn't get pushers: "+e)})}getUIAuthInputs(){return{emailAddress:this.state.formVals.email,phoneCountry:this.state.formVals.phoneCountry,phoneNumber:this.state.formVals.phoneNumber}}renderRegisterComponent(){const e=d.getComponent("structures.InteractiveAuth"),t=d.getComponent("elements.Spinner"),n=d.getComponent("auth.RegistrationForm");if(this.state.matrixClient&&this.state.doingUIAuth)return i.a.createElement(e,{matrixClient:this.state.matrixClient,makeRequest:this.makeRegisterRequest,onAuthFinished:this.onUIAuthFinished,inputs:this.getUIAuthInputs(),requestEmailToken:this.requestEmailToken,sessionId:this.props.sessionId,clientSecret:this.props.clientSecret,emailSid:this.props.idSid,poll:!0});if(!this.state.matrixClient&&!this.state.busy)return null;if(this.state.busy||!this.state.flows)return i.a.createElement("div",{className:"mx_AuthBody_spinner"},i.a.createElement(t,null));if(this.state.flows.length){let e;if(this.state.ssoFlow){let t;(this.state.ssoFlow["org.matrix.msc2858.identity_providers"]||[]).length>1&&(t=i.a.createElement("h3",{className:"mx_AuthBody_centered"},Object(c.a)("Continue with %(ssoButtons)s",{ssoButtons:""}).trim())),e=i.a.createElement(i.a.Fragment,null,t,i.a.createElement(Po,{matrixClient:this.loginLogic.createTemporaryClient(),flow:this.state.ssoFlow,loginType:"m.login.sso"===this.state.ssoFlow.type?"sso":"cas",fragmentAfterLogin:this.props.fragmentAfterLogin}),i.a.createElement("h3",{className:"mx_AuthBody_centered"},Object(c.a)("%(ssoButtons)s Or %(usernamePassword)s",{ssoButtons:"",usernamePassword:""}).trim()))}return i.a.createElement(i.a.Fragment,null,e,i.a.createElement(n,{defaultUsername:this.state.formVals.username,defaultEmail:this.state.formVals.email,defaultPhoneCountry:this.state.formVals.phoneCountry,defaultPhoneNumber:this.state.formVals.phoneNumber,defaultPassword:this.state.formVals.password,onRegisterClick:this.onFormSubmit,flows:this.state.flows,serverConfig:this.props.serverConfig,canSubmit:!this.state.serverErrorIsFatal}))}}render(){const e=d.getComponent("auth.AuthHeader"),t=d.getComponent("auth.AuthBody"),n=d.getComponent("elements.AccessibleButton");let o;const r=this.state.errorText;let a;if(r&&(o=i.a.createElement("div",{className:"mx_Login_error"},r)),!this.state.serverIsAlive){const e=P()({mx_Login_error:!0,mx_Login_serverError:!0,mx_Login_serverErrorNonFatal:!this.state.serverErrorIsFatal});a=i.a.createElement("div",{className:e},this.state.serverDeadError)}const s=i.a.createElement("span",{className:"mx_AuthBody_changeFlow"},Object(c.a)("Already have an account? <a>Sign in here</a>",{},{a:e=>i.a.createElement("a",{onClick:this.onLoginClick,href:"#"},e)}));let l,h;if(this.state.doingUIAuth&&(l=i.a.createElement("a",{className:"mx_AuthBody_changeFlow",onClick:this.onGoToFormClicked,href:"#"},Object(c.a)("Go back"))),this.state.completedNoSignin){let e;e=this.state.differentLoggedInUserId?i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("Your new account (%(newAccountId)s) is registered, but you're already logged into a different account (%(loggedInUserId)s).",{newAccountId:this.state.registeredUsername,loggedInUserId:this.state.differentLoggedInUserId})),i.a.createElement("p",null,i.a.createElement(n,{element:"span",className:"mx_linkButton",onClick:async e=>{await this.onLoginClickWithCheck(e)&&u.a.dispatch({action:"view_welcome_page"})}},Object(c.a)("Continue with previous account")))):this.state.formVals.password?i.a.createElement("h3",null,Object(c.a)("<a>Log in</a> to your new account.",{},{a:e=>i.a.createElement("a",{href:"#/login",onClick:this.onLoginClickWithCheck},e)})):i.a.createElement("h3",null,Object(c.a)("You can now close this window or <a>log in</a> to your new account.",{},{a:e=>i.a.createElement("a",{href:"#/login",onClick:this.onLoginClickWithCheck},e)})),h=i.a.createElement("div",null,i.a.createElement("h2",null,Object(c.a)("Registration Successful")),e)}else h=i.a.createElement("div",null,i.a.createElement("h2",null,Object(c.a)("Create account")),o,a,i.a.createElement(Vo,{title:Object(c.a)("Host account on"),dialogTitle:Object(c.a)("Decide where your account is hosted"),serverConfig:this.props.serverConfig,onServerConfigChange:this.state.doingUIAuth?void 0:this.props.onServerConfigChange}),this.renderRegisterComponent(),l,s);return i.a.createElement(mo,null,i.a.createElement(e,null),i.a.createElement(t,null,h))}})||Wo;var Xo=n(263),Zo=n(657),er=n(201);const tr=Object(go.a)({rules:[{key:"email",test:({value:e})=>!e||fo.a(e),invalid:()=>Object(c.a)("Doesn't look like a valid email address")}]});var nr,or,rr,ir,ar=({onFinished:e})=>{const[t,n]=Object(r.useState)(""),o=Object(r.useRef)(),i=async n=>{if(n.preventDefault(),t){if(!await o.current.validate({allowEmpty:!1}))return o.current.focus(),void o.current.validate({allowEmpty:!1,focused:!0})}e(!0,t)};return r.createElement(it.a,{title:Object(c.a)("Continuing without email"),className:"mx_RegistrationEmailPromptDialog",contentId:"mx_RegistrationEmailPromptDialog",onFinished:()=>e(!1),fixedWidth:!1},r.createElement("div",{className:"mx_Dialog_content",id:"mx_RegistrationEmailPromptDialog"},r.createElement("p",null,Object(c.a)("Just a heads up, if you don't add an email and forget your password, you could <b>permanently lose access to your account</b>.",{},{b:e=>r.createElement("b",null,e)})),r.createElement("form",{onSubmit:i},r.createElement(qe.a,{ref:o,autoFocus:!0,type:"text",label:Object(c.a)("Email (optional)"),value:t,onChange:e=>{n(e.target.value)},onValidate:async e=>await tr(e),onFocus:()=>E.a.instance.track("onboarding_registration_email2_focus"),onBlur:()=>E.a.instance.track("onboarding_registration_email2_blur")}))),r.createElement(er.a,{primaryButton:Object(c.a)("Continue"),onPrimaryButtonClick:i,hasCancel:!1}))};!function(e){e.Email="field_email",e.PhoneNumber="field_phone_number",e.Username="field_username",e.Password="field_password",e.PasswordConfirm="field_password_confirm"}(ir||(ir={}));let sr=Object(N.a)("views.auth.RegistrationForm")((rr=or=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"onSubmit",async e=>{if(e.preventDefault(),e.persist(),!this.props.canSubmit)return;if(await this.verifyFieldsBeforeSubmit())if(""===this.state.email){if(!this.showEmail())return void this.doSubmit(e);E.a.instance.track("onboarding_registration_submit_warn"),Ge.a.createTrackedDialog("Email prompt dialog","",ar,{onFinished:async(t,n)=>{t&&this.setState({email:n},()=>{this.doSubmit(e)})}})}else this.doSubmit(e);else E.a.instance.track("onboarding_registration_submit_failed")}),R()(this,"onEmailChange",e=>{this.setState({email:e.target.value})}),R()(this,"onEmailValidate",async e=>{const t=await this.validateEmailRules(e);return this.markFieldValid(ir.Email,t.valid),t}),R()(this,"validateEmailRules",Object(go.a)({description:()=>Object(c.a)("Use an email address to recover your account"),hideDescriptionIfValid:!0,rules:[{key:"required",test({value:e,allowEmpty:t}){return t||!this.authStepIsRequired("m.login.email.identity")||!!e},invalid:()=>Object(c.a)("Enter email address (required on this homeserver)")},{key:"email",test:({value:e})=>!e||fo.a(e),invalid:()=>Object(c.a)("Doesn't look like a valid email address")}]})),R()(this,"onPasswordChange",e=>{this.setState({password:e.target.value})}),R()(this,"onPasswordValidate",e=>{this.markFieldValid(ir.Password,e.valid)}),R()(this,"onPasswordConfirmChange",e=>{this.setState({passwordConfirm:e.target.value})}),R()(this,"onPasswordConfirmValidate",async e=>{const t=await this.validatePasswordConfirmRules(e);return this.markFieldValid(ir.PasswordConfirm,t.valid),t}),R()(this,"validatePasswordConfirmRules",Object(go.a)({rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Confirm password")},{key:"match",test({value:e}){return!e||e===this.state.password},invalid:()=>Object(c.a)("Passwords don't match")}]})),R()(this,"onPhoneCountryChange",e=>{this.setState({phoneCountry:e.iso2})}),R()(this,"onPhoneNumberChange",e=>{this.setState({phoneNumber:e.target.value})}),R()(this,"onPhoneNumberValidate",async e=>{const t=await this.validatePhoneNumberRules(e);return this.markFieldValid(ir.PhoneNumber,t.valid),t}),R()(this,"validatePhoneNumberRules",Object(go.a)({description:()=>Object(c.a)("Other users can invite you to rooms using your contact details"),hideDescriptionIfValid:!0,rules:[{key:"required",test({value:e,allowEmpty:t}){return t||!this.authStepIsRequired("m.login.msisdn")||!!e},invalid:()=>Object(c.a)("Enter phone number (required on this homeserver)")},{key:"email",test:({value:e})=>{return!e||(t=e,_o.test(t));var t},invalid:()=>Object(c.a)("That phone number doesn't look quite right, please check and try again")}]})),R()(this,"onUsernameChange",e=>{this.setState({username:e.target.value})}),R()(this,"onUsernameValidate",async e=>{const t=await this.validateUsernameRules(e);return this.markFieldValid(ir.Username,t.valid),t}),R()(this,"validateUsernameRules",Object(go.a)({description:()=>Object(c.a)("Use lowercase letters, numbers, dashes and underscores only"),hideDescriptionIfValid:!0,rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Enter username")},{key:"safeLocalpart",test:({value:e})=>!e||Zo.a.test(e),invalid:()=>Object(c.a)("Some characters not allowed")}]})),this.state={fieldValid:{},phoneCountry:this.props.defaultPhoneCountry,username:this.props.defaultUsername||"",email:this.props.defaultEmail||"",phoneNumber:this.props.defaultPhoneNumber||"",password:this.props.defaultPassword||"",passwordConfirm:this.props.defaultPassword||"",passwordComplexity:null},E.a.instance.track("onboarding_registration_begin")}doSubmit(e){const t=this.state.email.trim();E.a.instance.track("onboarding_registration_submit_ok",{email:!!t});const n=this.props.onRegisterClick({username:this.state.username.trim(),password:this.state.password.trim(),email:t,phoneCountry:this.state.phoneCountry,phoneNumber:this.state.phoneNumber});n&&(e.target.disabled=!0,n.finally((function(){e.target.disabled=!1})))}async verifyFieldsBeforeSubmit(){const e=document.activeElement;e&&e.blur();const t=[ir.Username,ir.Password,ir.PasswordConfirm,ir.Email,ir.PhoneNumber];for(const e of t){const t=this[e];t&&await t.validate({allowEmpty:!1})}if(await new Promise(e=>this.setState({},e)),this.allFieldsValid())return!0;const n=this.findFirstInvalidField(t);return!n||(n.focus(),n.validate({allowEmpty:!1,focused:!0}),!1)}allFieldsValid(){const e=Object.keys(this.state.fieldValid);for(let t=0;t<e.length;++t)if(!this.state.fieldValid[e[t]])return!1;return!0}findFirstInvalidField(e){for(const t of e)if(!this.state.fieldValid[t]&&this[t])return this[t];return null}markFieldValid(e,t){const{fieldValid:n}=this.state;n[e]=t,this.setState({fieldValid:n})}authStepIsRequired(e){return this.props.flows.every(t=>t.stages.includes(e))}authStepIsUsed(e){return this.props.flows.some(t=>t.stages.includes(e))}showEmail(){return!!this.authStepIsUsed("m.login.email.identity")}showPhoneNumber(){return!(l.a.get().disable_3pid_login||!this.authStepIsUsed("m.login.msisdn"))}renderEmail(){if(!this.showEmail())return null;const e=this.authStepIsRequired("m.login.email.identity")?Object(c.a)("Email"):Object(c.a)("Email (optional)");return i.a.createElement(qe.a,{ref:e=>this[ir.Email]=e,type:"text",label:e,value:this.state.email,onChange:this.onEmailChange,onValidate:this.onEmailValidate,onFocus:()=>E.a.instance.track("onboarding_registration_email_focus"),onBlur:()=>E.a.instance.track("onboarding_registration_email_blur")})}renderPassword(){return i.a.createElement(Xo.a,{id:"mx_RegistrationForm_password",fieldRef:e=>this[ir.Password]=e,minScore:3,value:this.state.password,onChange:this.onPasswordChange,onValidate:this.onPasswordValidate,onFocus:()=>E.a.instance.track("onboarding_registration_password_focus"),onBlur:()=>E.a.instance.track("onboarding_registration_password_blur")})}renderPasswordConfirm(){return i.a.createElement(qe.a,{id:"mx_RegistrationForm_passwordConfirm",ref:e=>this[ir.PasswordConfirm]=e,type:"password",autoComplete:"new-password",label:Object(c.a)("Confirm password"),value:this.state.passwordConfirm,onChange:this.onPasswordConfirmChange,onValidate:this.onPasswordConfirmValidate,onFocus:()=>E.a.instance.track("onboarding_registration_passwordConfirm_focus"),onBlur:()=>E.a.instance.track("onboarding_registration_passwordConfirm_blur")})}renderPhoneNumber(){if(!this.showPhoneNumber())return null;const e=d.getComponent("views.auth.CountryDropdown"),t=this.authStepIsRequired("m.login.msisdn")?Object(c.a)("Phone"):Object(c.a)("Phone (optional)"),n=i.a.createElement(e,{value:this.state.phoneCountry,isSmall:!0,showPrefix:!0,onOptionChange:this.onPhoneCountryChange});return i.a.createElement(qe.a,{ref:e=>this[ir.PhoneNumber]=e,type:"text",label:t,value:this.state.phoneNumber,prefixComponent:n,onChange:this.onPhoneNumberChange,onValidate:this.onPhoneNumberValidate})}renderUsername(){return i.a.createElement(qe.a,{id:"mx_RegistrationForm_username",ref:e=>this[ir.Username]=e,type:"text",autoFocus:!0,label:Object(c.a)("Username"),placeholder:Object(c.a)("Username").toLocaleLowerCase(),value:this.state.username,onChange:this.onUsernameChange,onValidate:this.onUsernameValidate,onFocus:()=>E.a.instance.track("onboarding_registration_username_focus"),onBlur:()=>E.a.instance.track("onboarding_registration_username_blur")})}render(){const e=i.a.createElement("input",{className:"mx_Login_submit",type:"submit",value:Object(c.a)("Register"),disabled:!this.props.canSubmit});let t=null;return this.showEmail()&&(t=this.showPhoneNumber()?i.a.createElement("div",null,Object(c.a)("Add an email to be able to reset your password.")," ",Object(c.a)("Use email or phone to optionally be discoverable by existing contacts.")):i.a.createElement("div",null,Object(c.a)("Add an email to be able to reset your password.")," ",Object(c.a)("Use email to optionally be discoverable by existing contacts."))),i.a.createElement("div",null,i.a.createElement("form",{onSubmit:this.onSubmit},i.a.createElement("div",{className:"mx_AuthBody_fieldRow"},this.renderUsername()),i.a.createElement("div",{className:"mx_AuthBody_fieldRow"},this.renderPassword(),this.renderPasswordConfirm()),i.a.createElement("div",{className:"mx_AuthBody_fieldRow"},this.renderEmail(),this.renderPhoneNumber()),t,e))}},R()(or,"defaultProps",{onValidationChange:console.error,canSubmit:!0}),nr=rr))||nr;var cr,lr=n(174),dr=n(468),ur=n(701),hr=n(702),pr=n(364),mr=n(621),gr=n(627),fr=n(660),_r=n(362),br=n(697),vr=n(640);let yr=Object(N.a)("views.dialogs.SeshatResetDialog")(cr=class extends i.a.PureComponent{render(){return i.a.createElement(it.a,{hasCancel:!0,onFinished:this.props.onFinished.bind(null,!1),title:Object(c.a)("Reset event store?")},i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("You most likely do not want to reset your event index store"),i.a.createElement("br",null),Object(c.a)("If you do, please note that none of your messages will be deleted, but the search experience might be degraded for a few moments whilst the index is recreated"))),i.a.createElement(er.a,{primaryButton:Object(c.a)("Reset event store"),onPrimaryButtonClick:this.props.onFinished.bind(null,!0),primaryButtonClass:"danger",cancelButton:Object(c.a)("Cancel"),onCancel:this.props.onFinished.bind(null,!1)}))}})||cr;var Er,Sr=n(474),wr=n(617),Cr=n(746),Tr=n(655),xr=n(481),Or=n(606);let kr=Object(N.a)("views.elements.Draggable")(Er=class extends i.a.Component{constructor(e){super(e),R()(this,"onMouseDown",e=>{this.setState({location:{currentX:e.clientX,currentY:e.clientY}}),document.addEventListener("mousemove",this.state.onMouseMove),document.addEventListener("mouseup",this.state.onMouseUp)}),R()(this,"onMouseUp",e=>{document.removeEventListener("mousemove",this.state.onMouseMove),document.removeEventListener("mouseup",this.state.onMouseUp),this.props.onMouseUp(e)}),this.state={onMouseMove:this.onMouseMove.bind(this),onMouseUp:this.onMouseUp.bind(this),location:{currentX:0,currentY:0}}}onMouseMove(e){const t=this.props.dragFunc(this.state.location,e);this.setState({location:t})}render(){return i.a.createElement("div",{className:this.props.className,onMouseDown:this.onMouseDown.bind(this)})}})||Er;var Rr=n(727),Dr=n(485);var Ir,Ar=({events:e,children:t,threshold:n=3,onToggle:o,startExpanded:a,summaryMembers:s=[],summaryText:l})=>{const[d,u]=Object(Dr.a)(a);Object(r.useEffect)(()=>{o&&o()},[d]);const h=e.map(e=>e.getId()).join(",");if(e.length<n)return i.a.createElement("div",{className:"mx_EventListSummary","data-scroll-tokens":h},t);let p;if(d)p=i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"mx_EventListSummary_line"}," "),t);else{const e=s.map(e=>i.a.createElement(lr.a,{key:e.userId,member:e,width:14,height:14}));p=i.a.createElement("div",{className:"mx_EventTile_line"},i.a.createElement("div",{className:"mx_EventTile_info"},i.a.createElement("span",{className:"mx_EventListSummary_avatars",onClick:u},e),i.a.createElement("span",{className:"mx_TextualEvent mx_EventListSummary_summary"},l)))}return i.a.createElement("li",{className:"mx_EventListSummary","data-scroll-tokens":h},i.a.createElement(g.a,{className:"mx_EventListSummary_toggle",onClick:u,"aria-expanded":d},d?Object(c.a)("collapse"):Object(c.a)("expand")),p)},Nr=n(669),Fr=n(730);let Mr=Object(N.a)("views.elements.IRCTimelineProfileResizer")(Ir=class extends i.a.Component{constructor(e){super(e),R()(this,"dragFunc",(e,t)=>{const n=t.clientX-e.currentX,o=this.state.width+n;return o<this.props.minWidth||o>this.props.maxWidth?e:(this.setState({width:o}),this.updateCSSWidth.bind(this)(o),{currentX:t.clientX,currentY:e.currentY})}),this.state={width:G.b.getValue("ircDisplayNameWidth",this.props.roomId),IRCLayoutRoot:null}}componentDidMount(){this.setState({IRCLayoutRoot:document.querySelector(".mx_IRCLayout")},()=>this.updateCSSWidth(this.state.width))}updateCSSWidth(e){this.state.IRCLayoutRoot.style.setProperty("--name-width",e+"px")}onMoueUp(e){this.props.roomId&&G.b.setValue("ircDisplayNameWidth",this.props.roomId,tt.a.ROOM_DEVICE,this.state.width)}render(){return i.a.createElement(kr,{className:"mx_ProfileResizer",dragFunc:this.dragFunc.bind(this),onMouseUp:this.onMoueUp.bind(this)})}})||Ir;var Pr,Lr,jr,Ur,Br=n(492),qr=n(457),Gr=n(715);!function(e){e.Joined="joined",e.Left="left",e.JoinedAndLeft="joined_and_left",e.LeftAndJoined="left_and_joined",e.InviteReject="invite_reject",e.InviteWithdrawal="invite_withdrawal",e.Invited="invited",e.Banned="banned",e.Unbanned="unbanned",e.Kicked="kicked",e.ChangedName="changed_name",e.ChangedAvatar="changed_avatar",e.NoChange="no_change"}(Ur||(Ur={}));let Vr=Object(N.a)("views.elements.MemberEventListSummary")((jr=Lr=class e extends i.a.Component{shouldComponentUpdate(e){return e.events.length!==this.props.events.length||e.events.length<this.props.threshold}generateSummary(t,n){const o=n.map(n=>{const o=t[n],r=this.renderNameList(o),i=n.split(","),a=e.getCanonicalTransitions(i),s=e.coalesceRepeatedTransitions(a).map(t=>e.getDescriptionForTransition(t.transitionType,o.length,t.repeats)),l=Object(J.b)(s);return Object(c.a)("%(nameList)s %(transitionList)s",{nameList:r,transitionList:l})});return o?o.join(", "):null}renderNameList(e){return Object(J.b)(e,this.props.summaryLength)}static getCanonicalTransitions(e){const t={[Ur.Joined]:{after:Ur.Left,newTransition:Ur.JoinedAndLeft},[Ur.Left]:{after:Ur.Joined,newTransition:Ur.LeftAndJoined}},n=[];for(let o=0;o<e.length;o++){const r=e[o],i=e[o+1];let a=r;o<e.length-1&&t[r]&&t[r].after===i&&(a=t[r].newTransition,o++),n.push(a)}return n}static coalesceRepeatedTransitions(e){const t=[];for(let n=0;n<e.length;n++)t.length>0&&t[t.length-1].transitionType===e[n]?t[t.length-1].repeats+=1:t.push({transitionType:e[n],repeats:1});return t}static getDescriptionForTransition(e,t,n){let o=null;switch(e){case"joined":o=t>1?Object(c.a)("%(severalUsers)sjoined %(count)s times",{severalUsers:"",count:n}):Object(c.a)("%(oneUser)sjoined %(count)s times",{oneUser:"",count:n});break;case"left":o=t>1?Object(c.a)("%(severalUsers)sleft %(count)s times",{severalUsers:"",count:n}):Object(c.a)("%(oneUser)sleft %(count)s times",{oneUser:"",count:n});break;case"joined_and_left":o=t>1?Object(c.a)("%(severalUsers)sjoined and left %(count)s times",{severalUsers:"",count:n}):Object(c.a)("%(oneUser)sjoined and left %(count)s times",{oneUser:"",count:n});break;case"left_and_joined":o=t>1?Object(c.a)("%(severalUsers)sleft and rejoined %(count)s times",{severalUsers:"",count:n}):Object(c.a)("%(oneUser)sleft and rejoined %(count)s times",{oneUser:"",count:n});break;case"invite_reject":o=t>1?Object(c.a)("%(severalUsers)srejected their invitations %(count)s times",{severalUsers:"",count:n}):Object(c.a)("%(oneUser)srejected their invitation %(count)s times",{oneUser:"",count:n});break;case"invite_withdrawal":o=t>1?Object(c.a)("%(severalUsers)shad their invitations withdrawn %(count)s times",{severalUsers:"",count:n}):Object(c.a)("%(oneUser)shad their invitation withdrawn %(count)s times",{oneUser:"",count:n});break;case"invited":o=t>1?Object(c.a)("were invited %(count)s times",{count:n}):Object(c.a)("was invited %(count)s times",{count:n});break;case"banned":o=t>1?Object(c.a)("were banned %(count)s times",{count:n}):Object(c.a)("was banned %(count)s times",{count:n});break;case"unbanned":o=t>1?Object(c.a)("were unbanned %(count)s times",{count:n}):Object(c.a)("was unbanned %(count)s times",{count:n});break;case"kicked":o=t>1?Object(c.a)("were kicked %(count)s times",{count:n}):Object(c.a)("was kicked %(count)s times",{count:n});break;case"changed_name":o=t>1?Object(c.a)("%(severalUsers)schanged their name %(count)s times",{severalUsers:"",count:n}):Object(c.a)("%(oneUser)schanged their name %(count)s times",{oneUser:"",count:n});break;case"changed_avatar":o=t>1?Object(c.a)("%(severalUsers)schanged their avatar %(count)s times",{severalUsers:"",count:n}):Object(c.a)("%(oneUser)schanged their avatar %(count)s times",{oneUser:"",count:n});break;case"no_change":o=t>1?Object(c.a)("%(severalUsers)smade no changes %(count)s times",{severalUsers:"",count:n}):Object(c.a)("%(oneUser)smade no changes %(count)s times",{oneUser:"",count:n})}return o}static getTransitionSequence(t){return t.map(e.getTransition)}static getTransition(e){if("m.room.third_party_invite"===e.mxEvent.getType())return Object(nt.c)(e.mxEvent)?Ur.Invited:Ur.InviteWithdrawal;switch(e.mxEvent.getContent().membership){case"invite":return Ur.Invited;case"ban":return Ur.Banned;case"join":return"join"===e.mxEvent.getPrevContent().membership?e.mxEvent.getContent().displayname!==e.mxEvent.getPrevContent().displayname?Ur.ChangedName:e.mxEvent.getContent().avatar_url!==e.mxEvent.getPrevContent().avatar_url?Ur.ChangedAvatar:Ur.NoChange:Ur.Joined;case"leave":if(e.mxEvent.getSender()===e.mxEvent.getStateKey())switch(e.mxEvent.getPrevContent().membership){case"invite":return Ur.InviteReject;default:return Ur.Left}switch(e.mxEvent.getPrevContent().membership){case"invite":return Ur.InviteWithdrawal;case"ban":return Ur.Unbanned;default:return Ur.Kicked}default:return null}}getAggregate(t){const n={},o={};return Object.keys(t).forEach(r=>{const i=t[r][0],a=i.displayName,s=e.getTransitionSequence(t[r]).join(",");n[s]||(n[s]=[],o[s]=-1),n[s].push(a),(-1===o[s]||i.index<o[s])&&(o[s]=i.index)}),{names:n,indices:o}}render(){const e=this.props.events,t=new Map,n={};e.forEach((e,o)=>{const r=e.getStateKey();n[r]||(n[r]=[]),e.target&&t.set(r,e.target);let i=r;"m.room.third_party_invite"===e.getType()?i=e.getContent().display_name:e.target&&(i=e.target.name),n[r].push({mxEvent:e,displayName:i,index:o})});const o=this.getAggregate(n),r=Object.keys(o.names).sort((e,t)=>o.indices[e]-o.indices[t]);return i.a.createElement(Ar,{events:this.props.events,threshold:this.props.threshold,onToggle:this.props.onToggle,startExpanded:this.props.startExpanded,children:this.props.children,summaryMembers:[...t.values()],summaryText:this.generateSummary(o.names,r)})}},R()(Lr,"defaultProps",{summaryLength:1,threshold:3,avatarsMaxLength:5}),Pr=jr))||Pr;var Hr=n(475),zr=n(345),Kr=n(668),Wr=n(667),Yr=n(650),$r=n(140),Qr=n(292),Jr=n(204);function Xr(){return G.b.getValue("recent_emoji")||[]}function Zr(e=24){let t=Xr();t.length<1&&(!function(){const e=JSON.parse(window.localStorage.mx_reaction_count||"{}"),t=Object.entries(e).sort(([,[e,t]],[,[n,o]])=>o-t).map(([e,[t,n]])=>[e,t]);G.b.setValue("recent_emoji",null,tt.a.ACCOUNT,t.slice(0,100))}(),t=Xr());return Object(No.orderBy)(t,"1","desc").slice(0,e).map(([e])=>e)}var ei,ti=n(277);var ni,oi=Object(N.a)("views.emojipicker.Header")(ei=class extends i.a.PureComponent{constructor(...e){super(...e),R()(this,"onKeyDown",e=>{let t=!0;switch(e.key){case bt.a.ARROW_LEFT:this.changeCategoryRelative(-1);break;case bt.a.ARROW_RIGHT:this.changeCategoryRelative(1);break;case bt.a.HOME:this.changeCategoryAbsolute(0);break;case bt.a.END:this.changeCategoryAbsolute(this.props.categories.length-1,-1);break;default:t=!1}t&&(e.preventDefault(),e.stopPropagation())})}findNearestEnabled(e,t){e+=this.props.categories.length;const n=[...this.props.categories,...this.props.categories,...this.props.categories];for(;e<n.length&&e>=0;){if(n[e].enabled)return e%this.props.categories.length;e+=t>0?1:-1}}changeCategoryRelative(e){const t=this.props.categories.findIndex(e=>e.visible);this.changeCategoryAbsolute(t+e,e)}changeCategoryAbsolute(e,t=1){const n=this.props.categories[this.findNearestEnabled(e,t)];n&&(this.props.onAnchorClick(n.id),n.ref.current.focus())}render(){return i.a.createElement("nav",{className:"mx_EmojiPicker_header",role:"tablist","aria-label":Object(c.a)("Categories"),onKeyDown:this.onKeyDown},this.props.categories.map(e=>{const t=P()("mx_EmojiPicker_anchor mx_EmojiPicker_anchor_"+e.id,{mx_EmojiPicker_anchor_visible:e.visible});return i.a.createElement("button",{disabled:!e.enabled,key:e.id,ref:e.ref,className:t,onClick:()=>this.props.onAnchorClick(e.id),title:e.name,role:"tab",tabIndex:e.visible?0:-1,"aria-selected":e.visible,"aria-controls":"mx_EmojiPicker_category_"+e.id})}))}})||ei;var ri,ii=Object(N.a)("views.emojipicker.Search")(ni=class extends i.a.PureComponent{constructor(...e){super(...e),R()(this,"inputRef",i.a.createRef()),R()(this,"onKeyDown",e=>{e.key===bt.a.ENTER&&(this.props.onEnter(),e.stopPropagation(),e.preventDefault())})}componentDidMount(){setTimeout(()=>this.inputRef.current.focus(),0)}render(){let e;return e=this.props.query?i.a.createElement("button",{onClick:()=>this.props.onChange(""),className:"mx_EmojiPicker_search_icon mx_EmojiPicker_search_clear",title:Object(c.a)("Cancel search")}):i.a.createElement("span",{className:"mx_EmojiPicker_search_icon"}),i.a.createElement("div",{className:"mx_EmojiPicker_search"},i.a.createElement("input",{autoFocus:!0,type:"text",placeholder:"Search",value:this.props.query,onChange:e=>this.props.onChange(e.target.value),onKeyDown:this.onKeyDown,ref:this.inputRef}),e)}})||ni;var ai,si=Object(N.a)("views.emojipicker.Preview")(ri=class extends i.a.PureComponent{render(){const{unicode:e="",annotation:t="",shortcodes:[n=""]}=this.props.emoji||{};return i.a.createElement("div",{className:"mx_EmojiPicker_footer mx_EmojiPicker_preview"},i.a.createElement("div",{className:"mx_EmojiPicker_preview_emoji"},e),i.a.createElement("div",{className:"mx_EmojiPicker_preview_text"},i.a.createElement("div",{className:"mx_EmojiPicker_name mx_EmojiPicker_preview_name"},t),i.a.createElement("div",{className:"mx_EmojiPicker_shortcode"},n)))}})||ri;var ci,li=Object(N.a)("views.emojipicker.Emoji")(ai=class extends i.a.PureComponent{render(){const{onClick:e,onMouseEnter:t,onMouseLeave:n,emoji:r,selectedEmojis:a}=this.props,s=a&&a.has(r.unicode);return i.a.createElement(o.f,{element:"li",onClick:()=>e(r),onMouseEnter:()=>t(r),onMouseLeave:()=>n(r),className:"mx_EmojiPicker_item_wrapper",label:r.unicode},i.a.createElement("div",{className:"mx_EmojiPicker_item "+(s?"mx_EmojiPicker_item_selected":"")},r.unicode))}})||ai;const di=["👍","👎","😄","🎉","😕","❤️","🚀","👀"].map(e=>{const t=Object(ti.e)(e);if(!t)throw new Error(`Emoji ${e} doesn't exist in emojibase`);return t});var ui,hi=Object(N.a)("views.emojipicker.QuickReactions")(ci=class extends i.a.Component{constructor(e){super(e),R()(this,"onMouseEnter",e=>{this.setState({hover:e})}),R()(this,"onMouseLeave",()=>{this.setState({hover:null})}),this.state={hover:null}}render(){return i.a.createElement("section",{className:"mx_EmojiPicker_footer mx_EmojiPicker_quick mx_EmojiPicker_category"},i.a.createElement("h2",{className:"mx_EmojiPicker_quick_header mx_EmojiPicker_category_label"},this.state.hover?i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:"mx_EmojiPicker_name"},this.state.hover.annotation),i.a.createElement("span",{className:"mx_EmojiPicker_shortcode"},this.state.hover.shortcodes[0])):Object(c.a)("Quick Reactions")),i.a.createElement("ul",{className:"mx_EmojiPicker_list","aria-label":Object(c.a)("Quick Reactions")},di.map(e=>i.a.createElement(li,{key:e.hexcode,emoji:e,onClick:this.props.onClick,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,selectedEmojis:this.props.selectedEmojis}))))}})||ci;function pi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var mi,gi=Object(N.a)("views.emojipicker.EmojiPicker")(ui=class e extends i.a.Component{constructor(e){super(e),R()(this,"recentlyUsed",void 0),R()(this,"memoizedDataByCategory",void 0),R()(this,"categories",void 0),R()(this,"bodyRef",i.a.createRef()),R()(this,"onScroll",()=>{const e=this.bodyRef.current;this.setState({scrollTop:e.scrollTop,viewportHeight:e.clientHeight}),this.updateVisibility()}),R()(this,"updateVisibility",()=>{const e=this.bodyRef.current,t=e.getBoundingClientRect();for(const n of this.categories){const o=e.querySelector(`[data-category-id="${n.id}"]`);if(!o){n.visible=!1,n.ref.current.classList.remove("mx_EmojiPicker_anchor_visible");continue}const r=o.getBoundingClientRect(),i=r.y-t.y,a=r.y+r.height-t.y;n.visible=i<t.height&&a>0,n.visible?(n.ref.current.classList.add("mx_EmojiPicker_anchor_visible"),n.ref.current.setAttribute("aria-selected","true"),n.ref.current.setAttribute("tabindex","0")):(n.ref.current.classList.remove("mx_EmojiPicker_anchor_visible"),n.ref.current.setAttribute("aria-selected","false"),n.ref.current.setAttribute("tabindex","-1"))}}),R()(this,"scrollToCategory",e=>{this.bodyRef.current.querySelector(`[data-category-id="${e}"]`).scrollIntoView()}),R()(this,"onChangeFilter",e=>{e=e.toLowerCase();for(const t of this.categories){let n;n=e.includes(this.state.filter)?this.memoizedDataByCategory[t.id]:"recent"===t.id?this.recentlyUsed:ti.a[t.id],n=n.filter(t=>t.filterString.includes(e)),this.memoizedDataByCategory[t.id]=n,t.enabled=n.length>0,t.ref.current.disabled=!t.enabled}this.setState({filter:e}),setTimeout(this.updateVisibility,0)}),R()(this,"onEnterFilter",()=>{const e=this.bodyRef.current.querySelector(".mx_EmojiPicker_item");e&&e.click()}),R()(this,"onHoverEmoji",e=>{this.setState({previewEmoji:e})}),R()(this,"onHoverEmojiEnd",e=>{this.setState({previewEmoji:null})}),R()(this,"onClickEmoji",e=>{!1!==this.props.onChoose(e.unicode)&&function(e){const t=Xr(),n=t.findIndex(([t])=>t===e);let o;n>=0?([o]=t.splice(n,1),o[1]++):o=[e,1],G.b.setValue("recent_emoji",null,tt.a.ACCOUNT,[o,...t].slice(0,100))}(e.unicode)}),this.state={filter:"",previewEmoji:null,scrollTop:0,viewportHeight:280},this.recentlyUsed=Array.from(new Set(Zr().map(ti.e).filter(Boolean))),this.memoizedDataByCategory=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pi(Object(n),!0).forEach((function(t){R()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({recent:this.recentlyUsed},ti.a),this.categories=[{id:"recent",name:Object(c.a)("Frequently Used"),enabled:this.recentlyUsed.length>0,visible:this.recentlyUsed.length>0,ref:i.a.createRef()},{id:"people",name:Object(c.a)("Smileys & People"),enabled:!0,visible:!0,ref:i.a.createRef()},{id:"nature",name:Object(c.a)("Animals & Nature"),enabled:!0,visible:!1,ref:i.a.createRef()},{id:"foods",name:Object(c.a)("Food & Drink"),enabled:!0,visible:!1,ref:i.a.createRef()},{id:"activity",name:Object(c.a)("Activities"),enabled:!0,visible:!1,ref:i.a.createRef()},{id:"places",name:Object(c.a)("Travel & Places"),enabled:!0,visible:!1,ref:i.a.createRef()},{id:"objects",name:Object(c.a)("Objects"),enabled:!0,visible:!1,ref:i.a.createRef()},{id:"symbols",name:Object(c.a)("Symbols"),enabled:!0,visible:!1,ref:i.a.createRef()},{id:"flags",name:Object(c.a)("Flags"),enabled:!0,visible:!1,ref:i.a.createRef()}]}static categoryHeightForEmojiCount(e){return 0===e?0:22+37*Math.ceil(e/8)}render(){let t=0;return i.a.createElement("div",{className:"mx_EmojiPicker"},i.a.createElement(oi,{categories:this.categories,onAnchorClick:this.scrollToCategory}),i.a.createElement(ii,{query:this.state.filter,onChange:this.onChangeFilter,onEnter:this.onEnterFilter}),i.a.createElement(a.a,{className:"mx_EmojiPicker_body",wrappedRef:e=>{this.bodyRef.current=e},onScroll:this.onScroll},this.categories.map(n=>{const o=this.memoizedDataByCategory[n.id],r=i.a.createElement(yi,{key:n.id,id:n.id,name:n.name,heightBefore:t,viewportHeight:this.state.viewportHeight,scrollTop:this.state.scrollTop,emojis:o,onClick:this.onClickEmoji,onMouseEnter:this.onHoverEmoji,onMouseLeave:this.onHoverEmojiEnd,selectedEmojis:this.props.selectedEmojis}),a=e.categoryHeightForEmojiCount(o.length);return t+=a,r})),this.state.previewEmoji||!this.props.showQuickReactions?i.a.createElement(si,{emoji:this.state.previewEmoji}):i.a.createElement(hi,{onClick:this.onClickEmoji,selectedEmojis:this.props.selectedEmojis}))}})||ui;class fi{constructor(e,t,n){this.topCount=e,this.renderCount=t,this.bottomCount=n}contains(e){return!(!e.renderCount&&this.renderCount)&&(e.topCount>=this.topCount&&e.topCount+e.renderCount<=this.topCount+this.renderCount)}expand(e){if(0===this.renderCount)return this;const t=Math.min(e,this.topCount),n=Math.min(e,this.bottomCount);return new fi(this.topCount-t,this.renderCount+t+n,this.bottomCount-n)}totalSize(){return this.topCount+this.renderCount+this.bottomCount}}let _i=Object(N.a)("views.elements.LazyRenderList")(mi=class e extends i.a.Component{constructor(e){super(e),this.state={}}static getDerivedStateFromProps(t,n){const o=e.getVisibleRangeFromProps(t),r=o.expand(t.overflowMargin),i=o.expand(t.overflowItems);return!(!!n.renderRange&&i.totalSize()!==n.renderRange.totalSize())&&n.renderRange&&n.renderRange.contains(r)?null:{renderRange:i}}static getVisibleRangeFromProps(e){const{items:t,itemHeight:n,scrollTop:o,height:r}=e,i=t?t.length:0,a=Math.min(Math.max(0,Math.floor(o/n)),i),s=i-a,c=0!==r?Math.ceil(r/n):0,l=Math.min(c,s);return new fi(a,l,s-l)}render(){const{itemHeight:e,items:t,renderItem:n}=this.props,{renderRange:o}=this.state,{topCount:r,renderCount:a,bottomCount:s}=o,c=r*e,l=s*e,d=(t||[]).slice(r,r+a),u=this.props.element||"div",h={style:{paddingTop:c+"px",paddingBottom:l+"px"},className:this.props.className};return i.a.createElement(u,h,d.map(n))}})||mi;var bi;_i.defaultProps={overflowItems:20,overflowMargin:5},_i.propTypes={itemHeight:He.a.number.isRequired,renderItem:He.a.func.isRequired,scrollTop:He.a.number.isRequired,height:He.a.number.isRequired,items:He.a.array,overflowMargin:He.a.number,overflowItems:He.a.number};var vi,yi=Object(N.a)("views.emojipicker.Category")(bi=class extends i.a.PureComponent{constructor(...e){super(...e),R()(this,"renderEmojiRow",e=>{const{onClick:t,onMouseEnter:n,onMouseLeave:o,selectedEmojis:r,emojis:a}=this.props,s=a.slice(8*e,8*(e+1));return i.a.createElement("div",{key:e},s.map(e=>i.a.createElement(li,{key:e.hexcode,emoji:e,selectedEmojis:r,onClick:t,onMouseEnter:n,onMouseLeave:o})))})}render(){const{emojis:e,name:t,heightBefore:n,viewportHeight:o,scrollTop:r}=this.props;if(!e||0===e.length)return null;const a=new Array(Math.ceil(e.length/8));for(let e=0;e<a.length;++e)a[e]=e;const s=r,c=s+o,l=n+22,d=l+37*a.length,u=Math.max(s,l),h=Math.min(c,d),p=Math.max(0,h-u),m=Math.max(0,r-l);return i.a.createElement("section",{id:"mx_EmojiPicker_category_"+this.props.id,className:"mx_EmojiPicker_category","data-category-id":this.props.id,role:"tabpanel","aria-label":t},i.a.createElement("h2",{className:"mx_EmojiPicker_category_label"},t),i.a.createElement(_i,{element:"ul",className:"mx_EmojiPicker_list",itemHeight:37,items:a,scrollTop:m,height:p,overflowItems:3,overflowMargin:0,renderItem:this.renderEmojiRow}))}})||bi;var Ei=Object(N.a)("views.emojipicker.ReactionPicker")(vi=class extends i.a.Component{constructor(e){super(e),R()(this,"onReactionsChange",()=>{this.setState({selectedEmojis:new Set(Object.keys(this.getReactions()))})}),R()(this,"onChoose",e=>{this.componentWillUnmount(),this.props.onFinished();const t=this.getReactions();return t.hasOwnProperty(e)?(de.a.get().redactEvent(this.props.mxEvent.getRoomId(),t[e]),!1):(de.a.get().sendEvent(this.props.mxEvent.getRoomId(),"m.reaction",{"m.relates_to":{rel_type:"m.annotation",event_id:this.props.mxEvent.getId(),key:e}}),u.a.dispatch({action:"message_sent"}),!0)}),this.state={selectedEmojis:new Set(Object.keys(this.getReactions()))},this.addListeners()}componentDidUpdate(e){e.reactions!==this.props.reactions&&(this.addListeners(),this.onReactionsChange())}addListeners(){this.props.reactions&&(this.props.reactions.on("Relations.add",this.onReactionsChange),this.props.reactions.on("Relations.remove",this.onReactionsChange),this.props.reactions.on("Relations.redaction",this.onReactionsChange))}componentWillUnmount(){this.props.reactions&&(this.props.reactions.removeListener("Relations.add",this.onReactionsChange),this.props.reactions.removeListener("Relations.remove",this.onReactionsChange),this.props.reactions.removeListener("Relations.redaction",this.onReactionsChange))}getReactions(){if(!this.props.reactions)return{};const e=de.a.get().getUserId(),t=this.props.reactions.getAnnotationsBySender()[e]||[];return Object.fromEntries([...t].filter(e=>!e.isRedacted()).map(e=>[e.getRelation().key,e.getId()]))}render(){return i.a.createElement(gi,{onChoose:this.onChoose,selectedEmojis:this.state.selectedEmojis,showQuickReactions:!0})}})||vi;var Si=Object(r.forwardRef)(({className:e,title:t,subtitle:n,children:o},r)=>i.a.createElement("div",{className:P()("mx_EventTileBubble",e),ref:r},i.a.createElement("div",{className:"mx_EventTileBubble_title"},t),n&&i.a.createElement("div",{className:"mx_EventTileBubble_subtitle"},n),o)),wi=n(114);var Ci,Ti=Object(r.forwardRef)(({mxEvent:e},t)=>{const n=Object(r.useContext)(b.a),o=e.getRoomId(),a=de.a.get().isRoomEncrypted(o);if("m.megolm.v1.aes-sha2"===e.getContent().algorithm&&a){let e;const t=wi.a.shared().getUserIdForRoomId(o);if(t){var s,l;const r=(null==n||null===(s=n.getRoom(o))||void 0===s||null===(l=s.getMember(t))||void 0===l?void 0:l.rawDisplayName)||t;e=Object(c.a)("Messages here are end-to-end encrypted. Verify %(displayName)s in their profile - tap on their avatar.",{displayName:r})}else e=Object(c.a)("Messages in this room are end-to-end encrypted. When people join, you can verify them in their profile, just tap on their avatar.");return i.a.createElement(Si,{className:"mx_cryptoEvent mx_cryptoEvent_icon",title:Object(c.a)("Encryption enabled"),subtitle:e})}return a?i.a.createElement(Si,{className:"mx_cryptoEvent mx_cryptoEvent_icon",title:Object(c.a)("Encryption enabled"),subtitle:Object(c.a)("Ignored attempt to disable encryption")}):i.a.createElement(Si,{className:"mx_cryptoEvent mx_cryptoEvent_icon mx_cryptoEvent_icon_warning",title:Object(c.a)("Encryption not enabled"),subtitle:Object(c.a)("The encryption used by this room isn't supported."),ref:t})}),xi=n(214),Oi=n(173);let ki=Object(N.a)("views.messages.MJitsiWidgetEvent")(Ci=class extends i.a.PureComponent{constructor(e){super(e)}render(){var e;const t=this.props.mxEvent.getContent().url,n=this.props.mxEvent.getPrevContent().url,o=(null===(e=this.props.mxEvent.sender)||void 0===e?void 0:e.name)||this.props.mxEvent.getSender(),r=de.a.get().getRoom(this.props.mxEvent.getRoomId()),a=this.props.mxEvent.getStateKey(),s=xi.a.instance.getRoom(r.roomId,!0).widgets.find(e=>e.id===a);let l=Object(c.a)("Join the conference at the top of this room");return s&&Oi.d.instance.isInContainer(r,s,Oi.a.Right)?l=Object(c.a)("Join the conference from the room information card on the right"):s||(l=null),t?n?i.a.createElement(Si,{className:"mx_MJitsiWidgetEvent",title:Object(c.a)("Video conference updated by %(senderName)s",{senderName:o}),subtitle:l}):i.a.createElement(Si,{className:"mx_MJitsiWidgetEvent",title:Object(c.a)("Video conference started by %(senderName)s",{senderName:o}),subtitle:l}):i.a.createElement(Si,{className:"mx_MJitsiWidgetEvent",title:Object(c.a)("Video conference ended by %(senderName)s",{senderName:o})})}})||Ci;var Ri=n(703),Di=n.n(Ri);const Ii=["image/jpeg","image/gif","image/png","video/mp4","video/webm","video/ogg","audio/mp4","audio/webm","audio/aac","audio/mpeg","audio/ogg","audio/wave","audio/wav","audio/x-wav","audio/x-pn-wav","audio/flac","audio/x-flac"];function Ai(e){return Object(ge.a)({file:e}).downloadSource().then(e=>e.arrayBuffer()).then(t=>Di.a.decryptAttachment(t,e)).then(t=>{let n=e.mimetype?e.mimetype.split(";")[0].trim():"";return Ii.includes(n)||(n="application/octet-stream"),new Blob([t],{type:n})})}var Ni,Fi,Mi;let Pi;function Li(e){if(!e)return"";const t=window.getComputedStyle(e,null);let n=t.cssText;if(""==n)for(let e=0;e<t.length;e++)n+=t[e]+":",n+=t.getPropertyValue(t[e])+";";return n}!async function(){if(Pi)return;const e=await fetch(n(1347)).then(e=>e.text());Pi="data:image/svg+xml;base64,"+window.btoa(e)}();let ji=Object(N.a)("views.messages.MFileBody")((Mi=Fi=class extends i.a.Component{constructor(e){super(e),this.state={decryptedBlob:this.props.decryptedBlob?this.props.decryptedBlob:null},this._iframe=Object(r.createRef)(),this._dummyLink=Object(r.createRef)()}presentableTextForFile(e,t=!0){let n=Object(c.a)("Attachment");return e.body&&e.body.length>0&&(n=e.body),e.info&&e.info.size&&t&&(n+=" ("+ao()(e.info.size)+")"),n}_getContentUrl(){return Object(ge.a)(this.props.mxEvent.getContent()).srcHttp}componentDidUpdate(e,t){this.props.onHeightChanged&&!t.decryptedBlob&&this.state.decryptedBlob&&this.props.onHeightChanged()}render(){const e=this.props.mxEvent.getContent(),t=this.presentableTextForFile(e),n=void 0!==e.file,o=e.body&&e.body.length>0?e.body:Object(c.a)("Attachment"),r=this._getContentUrl(),a=e.info?e.info.size:null,s=e.info?e.info.mimetype:"application/octet-stream";let l=null;if(this.props.showGenericPlaceholder&&(l=i.a.createElement("div",{className:"mx_MFileBody_info"},i.a.createElement("span",{className:"mx_MFileBody_info_icon"}),i.a.createElement("span",{className:"mx_MFileBody_info_filename"},this.presentableTextForFile(e,!1)))),n){if(null===this.state.decryptedBlob){let n=!1;const o=t=>{if(n)return!1;n=!0,Ai(e.file).then(e=>{this.setState({decryptedBlob:e})}).catch(e=>{console.warn("Unable to decrypt attachment: ",e),Ge.a.createTrackedDialog("Error decrypting attachment","",rt.a,{title:Object(c.a)("Error"),description:Object(c.a)("Error decrypting attachment")})}).finally(()=>{n=!1})};return i.a.createElement("span",{className:"mx_MFileBody"},l,i.a.createElement("div",{className:"mx_MFileBody_download"},i.a.createElement(g.a,{onClick:o},Object(c.a)("Decrypt %(text)s",{text:t}))))}const n=e=>{e.target.contentWindow.postMessage({imgSrc:Pi,imgStyle:null,style:Li(this._dummyLink.current),blob:this.state.decryptedBlob,download:o,textContent:Object(c.a)("Download %(text)s",{text:t}),auto:!this.props.decryptedBlob},"*")},r="usercontent/";return i.a.createElement("span",{className:"mx_MFileBody"},l,i.a.createElement("div",{className:"mx_MFileBody_download"},i.a.createElement("div",{style:{display:"none"}},i.a.createElement("a",{ref:this._dummyLink})),i.a.createElement("iframe",{src:r,onLoad:n,ref:this._iframe,sandbox:"allow-scripts allow-downloads allow-downloads-without-user-activation"})))}if(r){const n={target:"_blank",rel:"noreferrer noopener",href:r},d="number"!=typeof a||a>524288e3;return["application/pdf"].includes(s)&&!d?n.onClick=e=>{console.log(`Downloading ${s} as blob (unencrypted)`),e.preventDefault(),e.stopPropagation(),fetch(r).then(e=>e.blob()).then(e=>{const t=URL.createObjectURL(e),n=document.createElement("a");n.download=o,n.href=t,document.body.appendChild(n),n.click(),n.remove()})}:n.download=o,"file_grid"===this.props.tileShape?i.a.createElement("span",{className:"mx_MFileBody"},l,i.a.createElement("div",{className:"mx_MFileBody_download"},i.a.createElement("a",he()({className:"mx_MFileBody_downloadLink"},n),o),i.a.createElement("div",{className:"mx_MImageBody_size"},e.info&&e.info.size?ao()(e.info.size):""))):i.a.createElement("span",{className:"mx_MFileBody"},l,i.a.createElement("div",{className:"mx_MFileBody_download"},i.a.createElement("a",n,i.a.createElement("span",{className:"mx_MFileBody_download_icon"}),Object(c.a)("Download %(text)s",{text:t}))))}{const e=t?": "+t:"";return i.a.createElement("span",{className:"mx_MFileBody"},l,Object(c.a)("Invalid file%(extra)s",{extra:e}))}}},R()(Fi,"propTypes",{mxEvent:He.a.object.isRequired,decryptedBlob:He.a.object,onHeightChanged:He.a.func,tileShape:He.a.string,showGenericPlaceholder:He.a.bool}),R()(Fi,"defaultProps",{showGenericPlaceholder:!0}),Ni=Mi))||Ni;var Ui;let Bi=Object(N.a)("views.messages.MVideoBody")(Ui=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"videoRef",i.a.createRef()),R()(this,"videoOnPlay",async()=>{if(this.hasContentUrl()||this.state.fetchingData||this.state.error)return;this.setState({fetchingData:!0});const e=this.props.mxEvent.getContent();if(!e.file)return void this.setState({error:"No file given in content"});const t=await Ai(e.file),n=URL.createObjectURL(t);this.setState({decryptedUrl:n,decryptedBlob:t,fetchingData:!1},()=>{this.videoRef.current&&this.videoRef.current.play()}),this.props.onHeightChanged()}),this.state={fetchingData:!1,decryptedUrl:null,decryptedThumbnailUrl:null,decryptedBlob:null,error:null}}thumbScale(e,t,n,o){if(!e||!t)return;if(e<n&&t<o)return 1;const r=n/e,i=o/t;return r<i?r:i}getContentUrl(){const e=Object(ge.a)(this.props.mxEvent.getContent());return e.isEncrypted?this.state.decryptedUrl:e.srcHttp}hasContentUrl(){const e=this.getContentUrl();return e&&!e.startsWith("data:")}getThumbUrl(){const e=this.props.mxEvent.getContent(),t=Object(ge.a)(e);return t.isEncrypted?this.state.decryptedThumbnailUrl:t.hasThumbnail?t.thumbnailHttp:null}async componentDidMount(){const e=G.b.getValue("autoplayGifsAndVideos"),t=this.props.mxEvent.getContent();if(void 0!==t.file&&null===this.state.decryptedUrl){let r=Promise.resolve(null);t.info&&t.info.thumbnail_file&&(r=Ai(t.info.thumbnail_file).then((function(e){return URL.createObjectURL(e)})));try{const i=await r;if(e){console.log("Preloading video");const e=await Ai(t.file),n=URL.createObjectURL(e);this.setState({decryptedUrl:n,decryptedThumbnailUrl:i,decryptedBlob:e}),this.props.onHeightChanged()}else{var n,o;console.log("NOT preloading video"),this.setState({decryptedUrl:`data:${null==t||null===(n=t.info)||void 0===n?void 0:n.mimetype},`,decryptedThumbnailUrl:i||`data:${null==t||null===(o=t.info)||void 0===o?void 0:o.mimetype},`,decryptedBlob:null})}}catch(e){console.warn("Unable to decrypt attachment: ",e),this.setState({error:e})}}}componentWillUnmount(){this.state.decryptedUrl&&URL.revokeObjectURL(this.state.decryptedUrl),this.state.decryptedThumbnailUrl&&URL.revokeObjectURL(this.state.decryptedThumbnailUrl)}render(){const e=this.props.mxEvent.getContent(),t=G.b.getValue("autoplayGifsAndVideos");if(null!==this.state.error)return i.a.createElement("span",{className:"mx_MVideoBody"},i.a.createElement("img",{src:n(258),width:"16",height:"16"}),Object(c.a)("Error decrypting video"));if(void 0!==e.file&&null===this.state.decryptedUrl&&t)return i.a.createElement("span",{className:"mx_MVideoBody"},i.a.createElement("div",{className:"mx_MImageBody_thumbnail mx_MImageBody_thumbnail_spinner"},i.a.createElement(Io.a,null)));const o=this.getContentUrl(),r=this.getThumbUrl();let a=null,s=null,l=null,d="metadata";if(e.info){const t=this.thumbScale(e.info.w,e.info.h,480,360);t&&(s=Math.floor(e.info.w*t),a=Math.floor(e.info.h*t)),r&&(l=r,d="none")}return i.a.createElement("span",{className:"mx_MVideoBody"},i.a.createElement("video",{className:"mx_MVideoBody",ref:this.videoRef,src:o,title:e.body,controls:!0,preload:d,muted:t,autoPlay:t,height:a,width:s,poster:l,onPlay:this.videoOnPlay}),i.a.createElement(ji,he()({},this.props,{decryptedBlob:this.state.decryptedBlob,showGenericPlaceholder:!1})))}})||Ui;var qi=n(482),Gi=n(224);const Vi=({text:e})=>{const t=d.getComponent("elements.Spinner");return i.a.createElement("div",{className:"mx_EncryptionInfo_spinner"},i.a.createElement(t,null),e)};var Hi,zi,Ki,Wi=({waitingForOtherParty:e,waitingForNetwork:t,member:n,onStartVerification:o,isRoomEncrypted:r,inDialog:a,isSelfVerification:s})=>{let l,u;if(e||t){let t;t=e?s?Object(c.a)("Accept on your other login…"):Object(c.a)("Waiting for %(displayName)s to accept…",{displayName:n.displayName||n.name||n.userId}):Object(c.a)("Accepting…"),l=i.a.createElement(Vi,{text:t})}else{const e=d.getComponent("elements.AccessibleButton");l=i.a.createElement(e,{kind:"primary",className:"mx_UserInfo_wideButton",onClick:o},Object(c.a)("Start Verification"))}return u=r?i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("Messages in this room are end-to-end encrypted.")),i.a.createElement("p",null,Object(c.a)("Your messages are secured and only you and the recipient have the unique keys to unlock them."))):i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("Messages in this room are not end-to-end encrypted.")),i.a.createElement("p",null,Object(c.a)("In encrypted rooms, your messages are secured and only you and the recipient have the unique keys to unlock them."))),a?l:i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Encryption")),u),i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Verify User")),i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("For extra security, verify this user by checking a one-time code on both of your devices.")),i.a.createElement("p",null,Object(c.a)("To be secure, do this in person or use a trusted way to communicate.")),l)))},Yi=n(333),$i=n(285);let Qi=Object(N.a)("views.elements.crypto.VerificationQRCode")((Ki=zi=class extends i.a.PureComponent{render(){return i.a.createElement(Hr.a,{data:[{data:this.props.qrCodeData.buffer,mode:"byte"}],className:"mx_VerificationQRCode",width:196})}},R()(zi,"propTypes",{qrCodeData:He.a.object.isRequired}),Hi=Ki))||Hi;var Ji,Xi,Zi=n(218),ea=n(213);!function(e){e[e.PHASE_UNSENT=0]="PHASE_UNSENT",e[e.PHASE_REQUESTED=1]="PHASE_REQUESTED",e[e.PHASE_READY=2]="PHASE_READY",e[e.PHASE_DONE=3]="PHASE_DONE",e[e.PHASE_STARTED=4]="PHASE_STARTED",e[e.PHASE_CANCELLED=5]="PHASE_CANCELLED"}(Xi||(Xi={}));let ta=Object(N.a)("views.right_panel.VerificationPanel")(Ji=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"hasVerifier",void 0),R()(this,"onReciprocateYesClick",()=>{this.setState({reciprocateButtonClicked:!0}),this.state.reciprocateQREvent.confirm()}),R()(this,"onReciprocateNoClick",()=>{this.setState({reciprocateButtonClicked:!0}),this.state.reciprocateQREvent.cancel()}),R()(this,"startSAS",async()=>{this.setState({emojiButtonClicked:!0});const e=this.props.request.beginKeyVerification(Yi.d.SAS);try{await e.verify()}catch(e){console.error(e)}}),R()(this,"onSasMatchesClick",()=>{this.state.sasEvent.confirm()}),R()(this,"onSasMismatchesClick",()=>{this.state.sasEvent.mismatch()}),R()(this,"updateVerifierState",()=>{const{request:e}=this.props,{sasEvent:t,reciprocateQREvent:n}=e.verifier;e.verifier.off("show_sas",this.updateVerifierState),e.verifier.off("show_reciprocate_qr",this.updateVerifierState),this.setState({sasEvent:t,reciprocateQREvent:n})}),R()(this,"onRequestChange",async()=>{const{request:e}=this.props,t=this.hasVerifier;if(this.hasVerifier=!!e.verifier,!t&&this.hasVerifier){e.verifier.on("show_sas",this.updateVerifierState),e.verifier.on("show_reciprocate_qr",this.updateVerifierState);try{await e.verifier.verify()}catch(e){console.error("error verify",e)}}}),this.state={},this.hasVerifier=!1}renderQRPhase(){const{member:e,request:t}=this.props,n=t.otherPartySupportsMethod(Yi.d.SAS),o=t.otherPartySupportsMethod($i.c),r=d.getComponent("elements.AccessibleButton"),a=l.a.get().brand,s=n||o?null:i.a.createElement("p",null,Object(c.a)("The session you are trying to verify doesn't support scanning a QR code or emoji verification, which is what %(brand)s supports. Try with a different client.",{brand:a}));if("dialog"===this.props.layout){let e,a;o&&(e=i.a.createElement("div",{className:"mx_VerificationPanel_QRPhase_startOption"},i.a.createElement("p",null,Object(c.a)("Scan this unique code")),i.a.createElement(Qi,{qrCodeData:t.qrCodeData}))),n&&(a=i.a.createElement("div",{className:"mx_VerificationPanel_QRPhase_startOption"},i.a.createElement("p",null,Object(c.a)("Compare unique emoji")),i.a.createElement("span",{className:"mx_VerificationPanel_QRPhase_helpText"},Object(c.a)("Compare a unique set of emoji if you don't have a camera on either device")),i.a.createElement(r,{disabled:this.state.emojiButtonClicked,onClick:this.startSAS,kind:"primary"},Object(c.a)("Start"))));const l=e&&a?i.a.createElement("div",{className:"mx_VerificationPanel_QRPhase_betweenText"},Object(c.a)("or")):null;return i.a.createElement("div",null,Object(c.a)("Verify this session by completing one of the following:"),i.a.createElement("div",{className:"mx_VerificationPanel_QRPhase_startOptions"},e,l,a,s))}let u,h;if(o&&(u=i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Verify by scanning")),i.a.createElement("p",null,Object(c.a)("Ask %(displayName)s to scan your code:",{displayName:e.displayName||e.name||e.userId})),i.a.createElement("div",{className:"mx_VerificationPanel_qrCode"},i.a.createElement(Qi,{qrCodeData:t.qrCodeData})))),n){const e=this.state.emojiButtonClicked,t=o?Object(c.a)("If you can't scan the code above, verify by comparing unique emoji."):Object(c.a)("Verify by comparing unique emoji.");h=i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Verify by emoji")),i.a.createElement("p",null,t),i.a.createElement(r,{disabled:e,kind:"primary",className:"mx_UserInfo_wideButton mx_VerificationPanel_verifyByEmojiButton",onClick:this.startSAS},Object(c.a)("Verify by emoji")))}const p=s?i.a.createElement("div",{className:"mx_UserInfo_container"},s):null;return i.a.createElement(i.a.Fragment,null,u,h,p)}getDevice(){const e=this.props.request&&this.props.request.channel.deviceId;return de.a.get().getStoredDevice(de.a.get().getUserId(),e)}renderQRReciprocatePhase(){const{member:e,request:t}=this.props;let n;n=this.props.inDialog?d.getComponent("elements.AccessibleButton"):d.getComponent("elements.FormButton");const o=t.isSelfVerification?Object(c.a)("Almost there! Is your other session showing the same shield?"):Object(c.a)("Almost there! Is %(displayName)s showing the same shield?",{displayName:e.displayName||e.name||e.userId});let r;return r=this.state.reciprocateQREvent?i.a.createElement(i.a.Fragment,null,i.a.createElement("p",null,o),i.a.createElement(Zi.b,{isUser:!0,status:"verified",size:128,hideTooltip:!0}),i.a.createElement("div",{className:"mx_VerificationPanel_reciprocateButtons"},i.a.createElement(n,{label:Object(c.a)("No"),kind:"danger",disabled:this.state.reciprocateButtonClicked,onClick:this.onReciprocateNoClick},Object(c.a)("No")),i.a.createElement(n,{label:Object(c.a)("Yes"),kind:"primary",disabled:this.state.reciprocateButtonClicked,onClick:this.onReciprocateYesClick},Object(c.a)("Yes")))):i.a.createElement("p",null,i.a.createElement(Ao.a,null)),i.a.createElement("div",{className:"mx_UserInfo_container mx_VerificationPanel_reciprocate_section"},i.a.createElement("h3",null,Object(c.a)("Verify by scanning")),r)}renderVerifiedPhase(){const{member:e,request:t}=this.props;let n,o;if(t.isSelfVerification||(n=this.props.isRoomEncrypted?Object(c.a)("Verify all users in a room to ensure it's secure."):Object(c.a)("In encrypted rooms, verify all users to ensure it’s secure.")),t.isSelfVerification){const e=this.getDevice();e?o=Object(c.a)("You've successfully verified %(deviceName)s (%(deviceId)s)!",{deviceName:e?e.getDisplayName():"",deviceId:this.props.request.channel.deviceId}):(console.warn("Verified device we don't know about: "+this.props.request.channel.deviceId),o=Object(c.a)("You've successfully verified your device!"))}else o=Object(c.a)("You've successfully verified %(displayName)s!",{displayName:e.displayName||e.name||e.userId});const r=d.getComponent("elements.AccessibleButton");return i.a.createElement("div",{className:"mx_UserInfo_container mx_VerificationPanel_verified_section"},i.a.createElement("h3",null,Object(c.a)("Verified")),i.a.createElement("p",null,o),i.a.createElement(Zi.b,{isUser:!0,status:"verified",size:128,hideTooltip:!0}),n?i.a.createElement("p",null,n):null,i.a.createElement(r,{kind:"primary",className:"mx_UserInfo_wideButton",onClick:this.props.onClose},Object(c.a)("Got it")))}renderCancelledPhase(){const{member:e,request:t}=this.props,n=d.getComponent("elements.AccessibleButton");let o,r;return o=t.isSelfVerification?Object(c.a)("Start verification again from the notification."):Object(c.a)("Start verification again from their profile."),"m.timeout"===t.cancellationCode?r=Object(c.a)("Verification timed out.")+" "+o:t.cancellingUserId===t.otherUserId?(r=t.isSelfVerification?Object(c.a)("You cancelled verification on your other session."):Object(c.a)("%(displayName)s cancelled verification.",{displayName:e.displayName||e.name||e.userId}),r=`${r} ${o}`):r=Object(c.a)("You cancelled verification.")+" "+o,i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Verification cancelled")),i.a.createElement("p",null,r),i.a.createElement(n,{kind:"primary",className:"mx_UserInfo_wideButton",onClick:this.props.onClose},Object(c.a)("Got it")))}render(){const{member:e,phase:t,request:n}=this.props,o=e.displayName||e.name||e.userId;switch(t){case ea.d:return this.renderQRPhase();case ea.f:switch(n.chosenMethod){case Yi.d.RECIPROCATE_QR_CODE:return this.renderQRReciprocatePhase();case Yi.d.SAS:{const e=d.getComponent("views.verification.VerificationShowSas"),t=this.state.sasEvent?i.a.createElement(e,{displayName:o,device:this.getDevice(),sas:this.state.sasEvent.sas,onCancel:this.onSasMismatchesClick,onDone:this.onSasMatchesClick,inDialog:this.props.inDialog,isSelf:n.isSelfVerification}):i.a.createElement(Ao.a,null);return i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Compare emoji")),t)}default:return null}case ea.c:return this.renderVerifiedPhase();case ea.b:return this.renderCancelledPhase()}return console.error("VerificationPanel unhandled phase:",t),null}componentDidMount(){const{request:e}=this.props;if(e.on("change",this.onRequestChange),e.verifier){const{sasEvent:t,reciprocateQREvent:n}=e.verifier;this.setState({sasEvent:t,reciprocateQREvent:n})}this.onRequestChange()}componentWillUnmount(){const{request:e}=this.props;e.verifier&&(e.verifier.off("show_sas",this.updateVerifierState),e.verifier.off("show_reciprocate_qr",this.updateVerifierState)),e.off("change",this.onRequestChange)}})||Ji;const na=["m.key_mismatch","m.user_error","m.mismatched_sas"];var oa,ra=e=>{const{verificationRequest:t,verificationRequestPromise:o,member:a,onClose:s,layout:l,isRoomEncrypted:p}=e,[m,g]=Object(r.useState)(t),[f,b]=Object(r.useState)(!1),[v,y]=Object(r.useState)(m&&m.phase);Object(r.useEffect)(()=>{g(t),t&&(b(!1),y(t.phase))},[t]),Object(r.useEffect)(()=>{o&&async function(){b(!0);const e=await o;b(!1),g(e),y(e.phase)}()},[o]);const E=Object(r.useCallback)(()=>{if(m&&m.cancelled&&na.includes(m.cancellationCode)){const e=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Verification failed","insecure",e,{headerImage:n(349),title:Object(c.a)("Your messages are not secure"),description:i.a.createElement("div",null,Object(c.a)("One of the following may be compromised:"),i.a.createElement("ul",null,i.a.createElement("li",null,Object(c.a)("Your homeserver")),i.a.createElement("li",null,Object(c.a)("The homeserver the user you’re verifying is connected to")),i.a.createElement("li",null,Object(c.a)("Yours, or the other users’ internet connection")),i.a.createElement("li",null,Object(c.a)("Yours, or the other users’ session")))),onFinished:s})}else m&&y(m.phase)},[s,m]);Object(_.a)(m,"change",E);const S=Object(r.useCallback)(async()=>{b(!0);const e=de.a.get(),t=await Object(Rn.d)(e,a.userId),n=await e.requestVerificationDM(a.userId,t);g(n),y(n.phase),u.a.dispatch({action:h.a.SetRightPanelPhase,phase:ot.c.EncryptionPanel,refireParams:{member:a,verificationRequest:n}})},[a]),w=!m&&f||m&&(v===ea.e||v===ea.g||void 0===v),C=m?m.isSelfVerification:a.userId===de.a.get().getUserId();if(!m||w){const e=!m&&f||m&&m.initiatedByMe;return i.a.createElement(Wi,{isRoomEncrypted:p,onStartVerification:S,member:a,isSelfVerification:C,waitingForOtherParty:w&&e,waitingForNetwork:w&&!e,inDialog:"dialog"===l})}return i.a.createElement(ta,{isRoomEncrypted:p,layout:l,onClose:s,member:a,request:m,key:m.channel.transactionId,inDialog:"dialog"===l,phase:v})},ia=n(483),aa=n(484);const sa=[ot.c.GroupMemberInfo,ot.c.GroupMemberList],ca=[ot.c.GroupRoomList,ot.c.GroupRoomInfo];let la=Object(N.a)("views.right_panel.GroupHeaderButtons")(oa=class extends aa.b{constructor(e){super(e,aa.a.Group),R()(this,"onMembersClicked",()=>{this.state.phase===ot.c.GroupMemberInfo?this.setPhase(ot.c.GroupMemberInfo):this.setPhase(ot.c.GroupMemberList)}),R()(this,"onRoomsClicked",()=>{this.setPhase(ot.c.GroupRoomList)})}onAction(e){e.action===h.a.ViewUser?e.member?this.setPhase(ot.c.RoomMemberInfo,{member:e.member}):this.setPhase(ot.c.GroupMemberList):"view_group"===e.action?this.setPhase(ot.c.GroupMemberList):"view_group_room"===e.action?this.setPhase(ot.c.GroupRoomInfo,{groupRoomId:e.groupRoomId,groupId:e.groupId}):"view_group_room_list"===e.action?this.setPhase(ot.c.GroupRoomList):"view_group_member_list"===e.action?this.setPhase(ot.c.GroupMemberList):"view_group_user"===e.action&&this.setPhase(ot.c.GroupMemberInfo,{member:e.member})}renderButtons(){return[i.a.createElement(ia.a,{key:"groupMembersButton",name:"groupMembersButton",title:Object(c.a)("Members"),isHighlighted:this.isPhase(sa),onClick:this.onMembersClicked,analytics:["Right Panel","Group Member List Button","click"]}),i.a.createElement(ia.a,{key:"roomsButton",name:"roomsButton",title:Object(c.a)("Rooms"),isHighlighted:this.isPhase(ca),onClick:this.onRoomsClicked,analytics:["Right Panel","Group Room List Button","click"]})]}})||oa;var da,ua,ha,pa=n(726),ma=n(473),ga=n(153),fa=n(152),_a=n(330),ba=n(116),va=n(424),ya=n(729),Ea=n(704),Sa=n(705),wa=n(478);let Ca=Object(N.a)("views.elements.PowerSelector")((ha=ua=class extends i.a.Component{constructor(e){super(e),R()(this,"onSelectChange",e=>{"SELECT_VALUE_CUSTOM"===e.target.value?this.setState({custom:!0}):(this.props.onChange(e.target.value,this.props.powerLevelKey),this.setState({selectValue:e.target.value}))}),R()(this,"onCustomChange",e=>{this.setState({customValue:e.target.value})}),R()(this,"onCustomBlur",e=>{e.preventDefault(),e.stopPropagation(),this.props.onChange(parseInt(this.state.customValue),this.props.powerLevelKey)}),R()(this,"onCustomKeyDown",e=>{e.key===bt.a.ENTER&&(e.preventDefault(),e.stopPropagation(),e.target.blur())}),this.state={levelRoleMap:{},options:[],customValue:this.props.value,selectValue:0}}UNSAFE_componentWillMount(){this._initStateFromProps(this.props)}UNSAFE_componentWillReceiveProps(e){this._initStateFromProps(e)}_initStateFromProps(e){const t=va.a(e.usersDefault),n=Object.keys(t).filter(t=>void 0===t||t<=e.maxValue||t==e.value),o=void 0===t[e.value];this.setState({levelRoleMap:t,options:n,custom:o,customLevel:e.value,selectValue:o?"SELECT_VALUE_CUSTOM":e.value})}render(){let e;const t=void 0===this.props.label?Object(c.a)("Power level"):this.props.label;if(this.state.custom)e=i.a.createElement(qe.a,{type:"number",label:t,max:this.props.maxValue,onBlur:this.onCustomBlur,onKeyDown:this.onCustomKeyDown,onChange:this.onCustomChange,value:String(this.state.customValue),disabled:this.props.disabled});else{let n=this.state.options.map(e=>({value:e,text:va.b(e,this.props.usersDefault)}));n.push({value:"SELECT_VALUE_CUSTOM",text:Object(c.a)("Custom level")}),n=n.map(e=>i.a.createElement("option",{value:e.value,key:e.value},e.text)),e=i.a.createElement(qe.a,{element:"select",label:t,onChange:this.onSelectChange,value:String(this.state.selectValue),disabled:this.props.disabled},n)}return i.a.createElement("div",{className:"mx_PowerSelector"},e)}},R()(ua,"propTypes",{value:He.a.number.isRequired,maxValue:He.a.number.isRequired,usersDefault:He.a.number.isRequired,disabled:He.a.bool,onChange:He.a.func,powerLevelKey:He.a.string,label:He.a.string}),R()(ua,"defaultProps",{maxValue:1/0,usersDefault:0}),da=ha))||da;var Ta,xa,Oa;let ka=Object(N.a)("views.rooms.PresenceLabel")((Oa=xa=class extends i.a.Component{getDuration(e){if(!e)return;const t=parseInt(e/1e3),n=t%60,o=parseInt(t/60)%60,r=parseInt(t/3600)%24,i=parseInt(t/86400);return t<60?t<0?Object(c.a)("%(duration)ss",{duration:0}):Object(c.a)("%(duration)ss",{duration:n}):t<3600?Object(c.a)("%(duration)sm",{duration:o}):t<86400?Object(c.a)("%(duration)sh",{duration:r}):Object(c.a)("%(duration)sd",{duration:i})}getPrettyPresence(e,t,n){if(!n&&void 0!==t&&t>0){const n=this.getDuration(t);return"online"===e?Object(c.a)("Online for %(duration)s",{duration:n}):"unavailable"===e?Object(c.a)("Idle for %(duration)s",{duration:n}):"offline"===e?Object(c.a)("Offline for %(duration)s",{duration:n}):Object(c.a)("Unknown for %(duration)s",{duration:n})}return"online"===e?Object(c.a)("Online"):"unavailable"===e?Object(c.a)("Idle"):"offline"===e?Object(c.a)("Offline"):Object(c.a)("Unknown")}render(){return i.a.createElement("div",{className:"mx_PresenceLabel"},this.getPrettyPresence(this.props.presenceState,this.props.activeAgo,this.props.currentlyActive))}},R()(xa,"propTypes",{activeAgo:He.a.number,currentlyActive:He.a.bool,presenceState:He.a.string}),R()(xa,"defaultProps",{activeAgo:-1,presenceState:null}),Ta=Oa))||Ta;var Ra,Da,Ia,Aa=n(308);let Na=Object(N.a)("views.dialogs.ConfirmUserActionDialog")((Ia=Da=class extends i.a.Component{constructor(e){super(e),R()(this,"onOk",()=>{let e;this._reasonField&&(e=this._reasonField.value),this.props.onFinished(!0,e)}),R()(this,"onCancel",()=>{this.props.onFinished(!1)}),R()(this,"_collectReasonField",e=>{this._reasonField=e}),this._reasonField=null}render(){const e=d.getComponent("views.dialogs.BaseDialog"),t=d.getComponent("views.elements.DialogButtons"),n=d.getComponent("views.avatars.MemberAvatar"),o=d.getComponent("views.avatars.BaseAvatar"),r=this.props.danger?"danger":"";let a,s,l,u;if(this.props.askReason&&(a=i.a.createElement("div",null,i.a.createElement("form",{onSubmit:this.onOk},i.a.createElement("input",{className:"mx_ConfirmUserActionDialog_reasonField",ref:this._collectReasonField,placeholder:Object(c.a)("Reason"),autoFocus:!0})))),this.props.member)s=i.a.createElement(n,{member:this.props.member,width:48,height:48}),l=this.props.member.name,u=this.props.member.userId;else{const e=this.props.groupMember.avatarUrl?Object(ge.b)(this.props.groupMember.avatarUrl).getSquareThumbnailHttp(48):null;l=this.props.groupMember.displayname||this.props.groupMember.userId,u=this.props.groupMember.userId,s=i.a.createElement(o,{name:l,url:e,width:48,height:48})}return i.a.createElement(e,{className:"mx_ConfirmUserActionDialog",onFinished:this.props.onFinished,title:this.props.title,contentId:"mx_Dialog_content"},i.a.createElement("div",{id:"mx_Dialog_content",className:"mx_Dialog_content"},i.a.createElement("div",{className:"mx_ConfirmUserActionDialog_avatar"},s),i.a.createElement("div",{className:"mx_ConfirmUserActionDialog_name"},l),i.a.createElement("div",{className:"mx_ConfirmUserActionDialog_userId"},u)),a,i.a.createElement(t,{primaryButton:this.props.action,onPrimaryButtonClick:this.onOk,primaryButtonClass:r,focus:!this.props.askReason,onCancel:this.onCancel}))}},R()(Da,"propTypes",{member:He.a.object,groupMember:Aa.a,matrixClient:He.a.instanceOf(Ut.b),action:He.a.string.isRequired,title:He.a.string.isRequired,askReason:He.a.bool,danger:He.a.bool,onFinished:He.a.func.isRequired}),R()(Da,"defaultProps",{danger:!1,askReason:!1}),Ra=Ia))||Ra;function Fa({userId:e,device:t}){const n=Object(r.useContext)(b.a),o=e===n.getUserId(),a=n.checkDeviceTrust(e,t.deviceId),s=n.checkUserTrust(e),l=o?a.isCrossSigningVerified():a.isVerified(),d=P()("mx_UserInfo_device",{mx_UserInfo_device_verified:l,mx_UserInfo_device_unverified:!l}),u=P()("mx_E2EIcon",{mx_E2EIcon_normal:!s.isVerified(),mx_E2EIcon_verified:l,mx_E2EIcon_warning:s.isVerified()&&!l}),h=()=>{Object(Ea.c)(n.getUser(e),t)},p=t.ambiguous?(t.getDisplayName()?t.getDisplayName():"")+" ("+t.deviceId+")":t.getDisplayName();let m=null;return s.isVerified()&&(m=l?Object(c.a)("Trusted"):Object(c.a)("Not trusted")),l?i.a.createElement("div",{className:d,title:t.deviceId},i.a.createElement("div",{className:u}),i.a.createElement("div",{className:"mx_UserInfo_device_name"},p),i.a.createElement("div",{className:"mx_UserInfo_device_trusted"},m)):i.a.createElement(g.a,{className:d,title:t.deviceId,onClick:h},i.a.createElement("div",{className:u}),i.a.createElement("div",{className:"mx_UserInfo_device_name"},p),i.a.createElement("div",{className:"mx_UserInfo_device_trusted"},m))}function Ma({devices:e,userId:t,loading:n}){const o=Object(r.useContext)(b.a),a=o.checkUserTrust(t),[s,l]=Object(r.useState)(!1);if(n)return i.a.createElement(Ao.a,null);if(null===e)return i.a.createElement(i.a.Fragment,null,Object(c.a)("Unable to load session list"));const d=t===o.getUserId(),u=e.map(e=>o.checkDeviceTrust(t,e.deviceId));let h=[];const p=[];let m,f,_,v="mx_E2EIcon";if(a.isVerified()){for(let t=0;t<e.length;++t){const n=e[t],o=u[t];(d?o.isCrossSigningVerified():o.isVerified())?h.push(n):p.push(n)}m=Object(c.a)("%(count)s verified sessions",{count:h.length}),f=Object(c.a)("Hide verified sessions"),v+=" mx_E2EIcon_verified"}else h=e,m=Object(c.a)("%(count)s sessions",{count:e.length}),f=Object(c.a)("Hide sessions"),v+=" mx_E2EIcon_normal";h.length&&(_=s?i.a.createElement(g.a,{className:"mx_UserInfo_expand mx_linkButton",onClick:()=>l(!1)},i.a.createElement("div",null,f)):i.a.createElement(g.a,{className:"mx_UserInfo_expand mx_linkButton",onClick:()=>l(!0)},i.a.createElement("div",{className:v}),i.a.createElement("div",null,m)));let y=p.map((e,n)=>i.a.createElement(Fa,{key:n,userId:t,device:e}));if(s){const e=p.length;y=y.concat(h.map((n,o)=>i.a.createElement(Fa,{key:o+e,userId:t,device:n})))}return i.a.createElement("div",{className:"mx_UserInfo_devices"},i.a.createElement("div",null,y),i.a.createElement("div",null,_))}const Pa=({member:e,isIgnored:t,canInvite:n,isSpace:o})=>{const a=Object(r.useContext)(b.a);let s=null,l=null,d=null,h=null;const p=e.userId===a.getUserId();if(!p){const r=()=>{const n=a.getIgnoredUsers();if(t){const t=n.indexOf(e.userId);-1!==t&&n.splice(t,1)}else n.push(e.userId);a.setIgnoredUsers(n)};if(s=i.a.createElement(g.a,{onClick:r,className:P()("mx_UserInfo_field",{mx_UserInfo_destructive:!t})},t?Object(c.a)("Unignore"):Object(c.a)("Ignore")),e.roomId&&!o){const t=function(){const t=a.getRoom(e.roomId);u.a.dispatch({action:"view_room",highlighted:!0,event_id:t.getEventReadUpTo(e.userId),room_id:e.roomId})},n=function(){u.a.dispatch({action:"insert_mention",user_id:e.userId})},o=a.getRoom(e.roomId);null!=o&&o.getEventReadUpTo(e.userId)&&(h=i.a.createElement(g.a,{onClick:t,className:"mx_UserInfo_field"},Object(c.a)("Jump to read receipt"))),l=i.a.createElement(g.a,{onClick:n,className:"mx_UserInfo_field"},Object(c.a)("Mention"))}if(n&&(!e||!e.membership||"leave"===e.membership)){const t=e&&e.roomId?e.roomId:se.a.getRoomId(),n=async()=>{try{const n=new _a.a(t);await n.invite([e.userId]).then(()=>{if("invited"!==n.getCompletionState(e.userId))throw new Error(n.getErrorText(e.userId))})}catch(e){Ge.a.createTrackedDialog("Failed to invite","",rt.a,{title:Object(c.a)("Failed to invite"),description:e&&e.message?e.message:Object(c.a)("Operation failed")})}};d=i.a.createElement(g.a,{onClick:n,className:"mx_UserInfo_field"},Object(c.a)("Invite"))}}const m=i.a.createElement(g.a,{onClick:()=>{Ge.a.createTrackedDialog("share room member dialog","",Sr.a,{target:e})},className:"mx_UserInfo_field"},Object(c.a)("Share Link to User"));let f;return p||(f=i.a.createElement(g.a,{onClick:()=>async function(e,t){const n=Object(Rn.f)(e,t);if(n)return void u.a.dispatch({action:"view_room",room_id:n.roomId});const o={dmUserId:t,encryption:void 0};if(Object(Rn.g)()){const n=await e.downloadKeys([t]);Object.values(n).every(e=>Object.keys(e).length>0)&&(o.encryption=!0)}return Object(Rn.c)(o)}(a,e.userId),className:"mx_UserInfo_field"},Object(c.a)("Direct message"))),i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Options")),i.a.createElement("div",null,f,h,m,l,d,s))},La=async e=>{const{finished:t}=Ge.a.createTrackedDialog("Demoting Self","",Be.a,{title:Object(c.a)("Demote yourself?"),description:i.a.createElement("div",null,e?Object(c.a)("You will not be able to undo this change as you are demoting yourself, if you are the last privileged user in the space it will be impossible to regain privileges."):Object(c.a)("You will not be able to undo this change as you are demoting yourself, if you are the last privileged user in the room it will be impossible to regain privileges.")),button:Object(c.a)("Demote")}),[n]=await t;return n},ja=({children:e})=>i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Admin Tools")),i.a.createElement("div",{className:"mx_UserInfo_buttons"},e)),Ua=({member:e,startUpdating:t,stopUpdating:n})=>{const o=Object(r.useContext)(b.a);if("invite"!==e.membership&&"join"!==e.membership)return null;const a="invite"===e.membership?Object(c.a)("Disinvite"):Object(c.a)("Kick");return i.a.createElement(g.a,{className:"mx_UserInfo_field mx_UserInfo_destructive",onClick:async()=>{const{finished:r}=Ge.a.createTrackedDialog("Confirm User Action Dialog","onKick",Na,{member:e,action:"invite"===e.membership?Object(c.a)("Disinvite"):Object(c.a)("Kick"),title:"invite"===e.membership?Object(c.a)("Disinvite this user?"):Object(c.a)("Kick this user?"),askReason:"join"===e.membership,danger:!0}),[i,a]=await r;i&&(t(),o.kick(e.roomId,e.userId,a||void 0).then(()=>{console.log("Kick success")},(function(e){console.error("Kick error: "+e),Ge.a.createTrackedDialog("Failed to kick","",rt.a,{title:Object(c.a)("Failed to kick"),description:e&&e.message?e.message:"Operation failed"})})).finally(()=>{n()}))}},a)},Ba=({member:e})=>{const t=Object(r.useContext)(b.a);return i.a.createElement(g.a,{className:"mx_UserInfo_field mx_UserInfo_destructive",onClick:async()=>{const{roomId:n,userId:o}=e,r=t.getRoom(n);if(!r)return;let a=r.getLiveTimeline(),s=[];for(;a;)s=a.getEvents().reduce((e,t)=>t.getSender()!==o||t.isRedacted()||t.isRedaction()||t.getType()===re.a.RoomCreate||t.getType()===re.a.RoomServerAcl?e:e.concat(t),s),a=a.getNeighbouringTimeline(fa.a.BACKWARDS);const l=s.length,d=e.name;if(0===l)Ge.a.createTrackedDialog("No user messages found to remove","",We.a,{title:Object(c.a)("No recent messages by %(user)s found",{user:d}),description:i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("Try scrolling up in the timeline to see if there are any earlier ones.")))});else{const{finished:e}=Ge.a.createTrackedDialog("Remove recent messages by user","",Be.a,{title:Object(c.a)("Remove recent messages by %(user)s",{user:d}),description:i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("You are about to remove %(count)s messages by %(user)s. This cannot be undone. Do you wish to continue?",{count:l,user:d})),i.a.createElement("p",null,Object(c.a)("For a large amount of messages, this might take some time. Please don't refresh your client in the meantime."))),button:Object(c.a)("Remove %(count)s messages",{count:l})}),[o]=await e;if(!o)return;await Promise.resolve(),console.info(`Started redacting recent ${l} messages for ${d} in ${n}`),await Promise.all(s.map(async e=>{try{await t.redactEvent(n,e.getId())}catch(t){console.error("Could not redact",e.getId()),console.error(t)}})),console.info(`Finished redacting recent ${l} messages for ${d} in ${n}`)}}},Object(c.a)("Remove recent messages"))},qa=({member:e,startUpdating:t,stopUpdating:n})=>{const o=Object(r.useContext)(b.a);let a=Object(c.a)("Ban");"ban"===e.membership&&(a=Object(c.a)("Unban"));const s=P()("mx_UserInfo_field",{mx_UserInfo_destructive:"ban"!==e.membership});return i.a.createElement(g.a,{className:s,onClick:async()=>{const{finished:r}=Ge.a.createTrackedDialog("Confirm User Action Dialog","onBanOrUnban",Na,{member:e,action:"ban"===e.membership?Object(c.a)("Unban"):Object(c.a)("Ban"),title:"ban"===e.membership?Object(c.a)("Unban this user?"):Object(c.a)("Ban this user?"),askReason:"ban"!==e.membership,danger:"ban"!==e.membership}),[i,a]=await r;if(!i)return;let s;t(),s="ban"===e.membership?o.unban(e.roomId,e.userId):o.ban(e.roomId,e.userId,a||void 0),s.then(()=>{console.log("Ban success")},(function(e){console.error("Ban error: "+e),Ge.a.createTrackedDialog("Failed to ban user","",rt.a,{title:Object(c.a)("Error"),description:Object(c.a)("Failed to ban user")})})).finally(()=>{n()})}},a)},Ga=({member:e,room:t,powerLevels:n,startUpdating:o,stopUpdating:a})=>{const s=Object(r.useContext)(b.a);if("join"!==e.membership)return null;const l=((e,t)=>{if(!t||!e)return!1;const n=(t.events?t.events["m.room.message"]:null)||t.events_default;return e.powerLevel<n})(e,n),d=P()("mx_UserInfo_field",{mx_UserInfo_destructive:!l}),u=l?Object(c.a)("Unmute"):Object(c.a)("Mute");return i.a.createElement(g.a,{className:d,onClick:async()=>{const n=e.roomId,r=e.userId;if(r===s.getUserId())try{if(!await La(null==t?void 0:t.isSpaceRoom()))return}catch(e){return void console.error("Failed to warn about self demotion: ",e)}const i=t.currentState.getStateEvents("m.room.power_levels","");if(!i)return;const d=i.getContent(),u=(d.events?d.events["m.room.message"]:null)||d.events_default;let h;h=l?u:u-1,h=parseInt(h),isNaN(h)||(o(),s.setPowerLevel(n,r,h,i).then(()=>{console.log("Mute toggle success")},(function(e){console.error("Mute error: "+e),Ge.a.createTrackedDialog("Failed to mute user","",rt.a,{title:Object(c.a)("Error"),description:Object(c.a)("Failed to mute user")})})).finally(()=>{a()}))}},u)},Va=({room:e,children:t,member:n,startUpdating:o,stopUpdating:a,powerLevels:s})=>{const c=Object(r.useContext)(b.a);let l,d,u,h;const p=(s.events?s.events["m.room.power_levels"]:null)||s.state_default,{ban:m=50,kick:g=50,redact:f=50}=s,_=e.getMember(c.getUserId());if(!_)return i.a.createElement("div",null);const v=_.userId===n.userId,y=n.powerLevel<_.powerLevel||v;return y&&_.powerLevel>=g&&(l=i.a.createElement(Ua,{member:n,startUpdating:o,stopUpdating:a})),_.powerLevel>=f&&!e.isSpaceRoom()&&(h=i.a.createElement(Ba,{member:n,startUpdating:o,stopUpdating:a})),y&&_.powerLevel>=m&&(d=i.a.createElement(qa,{member:n,startUpdating:o,stopUpdating:a})),y&&_.powerLevel>=p&&(u=i.a.createElement(Ga,{member:n,room:e,powerLevels:s,startUpdating:o,stopUpdating:a})),l||d||u||h||t?i.a.createElement(ja,null,u,l,d,h,t):i.a.createElement("div",null)},Ha=({children:e,groupId:t,groupMember:n,startUpdating:o,stopUpdating:a})=>{const s=Object(r.useContext)(b.a),[l,d]=Object(r.useState)(!1),[p,m]=Object(r.useState)(!1);if(Object(r.useEffect)(()=>{let e=!1;const o=()=>{e||(d(ba.a.isUserPrivileged(t)),m(ba.a.getGroupInvitedMembers(t).some(e=>e.userId===n.userId)))};return ba.a.registerListener(t,o),o(),()=>{e=!0,ba.a.unregisterListener(o)}},[t,n.userId]),l){const r=async()=>{const{finished:e}=Ge.a.createDialog(Na,{matrixClient:s,groupMember:n,action:p?Object(c.a)("Disinvite"):Object(c.a)("Remove from community"),title:p?Object(c.a)("Disinvite this user from community?"):Object(c.a)("Remove this user from community?"),danger:!0}),[r]=await e;r&&(o(),s.removeUserFromGroup(t,n.userId).then(()=>{u.a.dispatch({action:h.a.ViewUser,member:null})}).catch(e=>{Ge.a.createTrackedDialog("Failed to remove user from group","",rt.a,{title:Object(c.a)("Error"),description:p?Object(c.a)("Failed to withdraw invitation"):Object(c.a)("Failed to remove user from community")}),console.log(e)}).finally(()=>{a()}))},l=i.a.createElement(g.a,{className:"mx_UserInfo_field mx_UserInfo_destructive",onClick:r},p?Object(c.a)("Disinvite"):Object(c.a)("Remove from community"));return i.a.createElement(ja,null,l,e)}return i.a.createElement("div",null)};const za=({user:e,room:t,roomPermissions:n,powerLevels:o})=>{if(n.canEdit)return i.a.createElement(Ka,{user:e,room:t,roomPermissions:n});{const t=o.users_default||0,n=parseInt(e.powerLevel,10),r=Object(va.b)(n,t);return i.a.createElement("div",{className:"mx_UserInfo_profileField"},i.a.createElement("div",{className:"mx_UserInfo_roleDescription"},r))}},Ka=({user:e,room:t,roomPermissions:n})=>{const o=Object(r.useContext)(b.a),[a,s]=Object(r.useState)(parseInt(e.powerLevel,10)),l=Object(r.useCallback)(async n=>{const r=parseInt(n,10);s(r);const a=e.roomId,l=e.userId,d=t.currentState.getStateEvents("m.room.power_levels","");if(!d)return;const u=o.getUserId(),h=d.getContent().users[u];if(h&&parseInt(h)===r){const{finished:e}=Ge.a.createTrackedDialog("Promote to PL100 Warning","",Be.a,{title:Object(c.a)("Warning!"),description:i.a.createElement("div",null,Object(c.a)("You will not be able to undo this change as you are promoting the user to have the same power level as yourself."),i.a.createElement("br",null),Object(c.a)("Are you sure?")),button:Object(c.a)("Continue")}),[t]=await e;if(!t)return}else if(u===l)try{if(!await La(null==t?void 0:t.isSpaceRoom()))return}catch(e){console.error("Failed to warn about self demotion: ",e)}await((e,t,n,r)=>o.setPowerLevel(e,t,parseInt(n),r).then((function(){console.log("Power change success")}),(function(e){console.error("Failed to change power level "+e),Ge.a.createTrackedDialog("Failed to change power level","",rt.a,{title:Object(c.a)("Error"),description:Object(c.a)("Failed to change power level")})})))(a,l,r,d)},[e.roomId,e.userId,o,t]),d=t.currentState.getStateEvents("m.room.power_levels",""),u=d?d.getContent().users_default:0;return i.a.createElement("div",{className:"mx_UserInfo_profileField"},i.a.createElement(Ca,{label:null,value:a,maxValue:n.modifyLevelMax,usersDefault:u,onChange:l}))},Wa=e=>{const t=Object(r.useContext)(b.a),[n,o]=Object(r.useState)(void 0);return Object(r.useEffect)(()=>{o(void 0);let n=!1;return async function(){try{await t.downloadKeys([e],!0);const r=t.getStoredDevicesForUser(e);if(n)return;(e=>{const t=Object.create(null);for(let n=0;n<e.length;n++){const o=e[n].getDisplayName(),r=t[o]||[];r.push(n),t[o]=r}for(const n in t)t[n].length>1&&t[n].forEach(t=>{e[t].ambiguous=!0})})(r),o(r)}catch(e){o(null)}}(),()=>{n=!0}},[t,e]),Object(r.useEffect)(()=>{let n=!1;const r=async()=>{const r=t.getStoredDevicesForUser(e);n||o(r)},i=t=>{t.includes(e)&&r()},a=(t,n)=>{t===e&&r()},s=(t,n)=>{t===e&&r()};return t.on("crypto.devicesUpdated",i),t.on("deviceVerificationChanged",a),t.on("userTrustStatusChanged",s),()=>{n=!0,t.removeListener("crypto.devicesUpdated",i),t.removeListener("deviceVerificationChanged",a),t.removeListener("userTrustStatusChanged",s)}},[t,e]),n},Ya=({room:e,member:t,groupId:n,devices:o,isRoomEncrypted:a})=>{const s=Object(r.useContext)(b.a),l=((e,t)=>{const[n,o]=Object(r.useState)({}),i=Object(r.useCallback)(e=>{if(!t)return;if(e&&e.getType()!==re.a.RoomPowerLevels)return;const n=t.currentState.getStateEvents(re.a.RoomPowerLevels,"");return o(n?n.getContent():{}),()=>{o({})}},[t]);return Object(_.a)(e,"RoomState.events",i),Object(r.useEffect)(()=>(i(),()=>{o({})}),[i]),n})(s,e),d=(e=>{const[t,n]=Object(r.useState)(!1);return Object(r.useEffect)(()=>{e.isSynapseAdministrator().then(e=>{n(e)},()=>{n(!1)})},[e]),t})(s),[p,m]=Object(r.useState)(s.isUserIgnored(t.userId));Object(r.useEffect)(()=>{m(s.isUserIgnored(t.userId))},[s,t.userId]);const f=Object(r.useCallback)(e=>{"m.ignored_user_list"===e.getType()&&m(s.isUserIgnored(t.userId))},[s,t.userId]);Object(_.a)(s,"accountData",f);const[v,y]=Object(r.useState)(0),E=Object(r.useCallback)(()=>{y(v+1)},[v]),S=Object(r.useCallback)(()=>{y(v-1)},[v]),w=function(e,t,n){const[o,i]=Object(r.useState)({modifyLevelMax:-1,canEdit:!1,canInvite:!1}),a=Object(r.useCallback)(()=>{if(!t)return;const o=t.currentState.getStateEvents("m.room.power_levels","");if(!o)return;const r=o.getContent();if(!r)return;const a=t.getMember(e.getUserId());if(!a)return;const s=n,c=a.userId===s.userId;let l=-1;if(s.powerLevel<a.powerLevel||c){const e=(r.events?r.events["m.room.power_levels"]:null)||r.state_default;a.powerLevel>=e&&(c||a.powerLevel>s.powerLevel)&&(l=a.powerLevel)}i({canInvite:a.powerLevel>=r.invite,canEdit:l>=0,modifyLevelMax:l})},[e,n,t]);return Object(_.a)(e,"RoomState.members",a),Object(r.useEffect)(()=>(a(),()=>{i({modifyLevelMax:-1,canEdit:!1,canInvite:!1})}),[a]),o}(s,e,t),C=Object(r.useCallback)(async()=>{const{finished:e}=Ge.a.createTrackedDialog("Synapse User Deactivation","",Be.a,{title:Object(c.a)("Deactivate user?"),description:i.a.createElement("div",null,Object(c.a)("Deactivating this user will log them out and prevent them from logging back in. Additionally, they will leave all the rooms they are in. This action cannot be reversed. Are you sure you want to deactivate this user?")),button:Object(c.a)("Deactivate user"),danger:!0}),[n]=await e;if(n)try{await s.deactivateSynapseUser(t.userId)}catch(e){console.error("Failed to deactivate user"),console.error(e),Ge.a.createTrackedDialog("Failed to deactivate Synapse user","",rt.a,{title:Object(c.a)("Failed to deactivate user"),description:e&&e.message?e.message:Object(c.a)("Operation failed")})}},[s,t.userId]);let T,x,O,k;d&&t.userId.endsWith(":"+de.a.getHomeserverName())&&(T=i.a.createElement(g.a,{onClick:C,className:"mx_UserInfo_field mx_UserInfo_destructive"},Object(c.a)("Deactivate user"))),e&&t.roomId?O=i.a.createElement(Va,{powerLevels:l,member:t,room:e,startUpdating:E,stopUpdating:S},T):n?O=i.a.createElement(Ha,{groupId:n,groupMember:t,startUpdating:E,stopUpdating:S},T):T&&(O=i.a.createElement(ja,null,T)),v>0&&(x=i.a.createElement(Ao.a,{imgClassName:"mx_ContextualMenu_spinner"})),e&&t.roomId&&!wi.a.shared().getUserIdForRoomId(t.roomId)&&(k=i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Role")),i.a.createElement(za,{powerLevels:l,user:t,room:e,roomPermissions:w})));const R=s.isCryptoEnabled();let D,I;a?e.isSpaceRoom()||(D=Object(c.a)("Messages in this room are end-to-end encrypted.")):R?e&&!e.isSpaceRoom()&&(D=Object(c.a)("Messages in this room are not end-to-end encrypted.")):D=Object(c.a)("This client does not support end-to-end encryption.");const A=(e=>Object(ya.a)(async()=>e.doesServerSupportUnstableFeature("org.matrix.e2e_cross_signing"),[e],!1))(s),N=R&&s.checkUserTrust(t.userId),F=R&&N.isCrossSigningVerified(),M=t.userId===s.getUserId(),P=R&&A&&!F&&!M&&o&&o.length>0,L=function(e,t,n,o){return Object(ya.a)(async()=>{if(n){o(!0);try{await e.downloadKeys([t.userId]);const n=e.getStoredCrossSigningForUser(t.userId);return!!(n&&n.getId())}finally{o(!1)}}},[e,t,n],void 0)}(s,t,P,e=>{y(t=>t+(e?1:-1))}),j=void 0===o;let U;P&&(void 0!==L?I=i.a.createElement(g.a,{className:"mx_UserInfo_field mx_UserInfo_verifyButton",onClick:()=>{L?Object(Ea.d)(t):Object(Ea.a)(t)}},Object(c.a)("Verify")):j||(I=i.a.createElement(Ao.a,null))),t.userId==s.getUserId()&&(U=i.a.createElement("p",null,i.a.createElement(g.a,{className:"mx_UserInfo_field",onClick:()=>{u.a.dispatch({action:h.a.ViewUserSettings,initialTabId:Ue.b})}},Object(c.a)("Edit devices"))));const B=i.a.createElement("div",{className:"mx_UserInfo_container"},i.a.createElement("h3",null,Object(c.a)("Security")),i.a.createElement("p",null,D),I,R&&i.a.createElement(Ma,{loading:j,devices:o,userId:t.userId}),U);return i.a.createElement(i.a.Fragment,null,k,B,i.a.createElement(Pa,{canInvite:w.canInvite,isIgnored:p,member:t,isSpace:null==e?void 0:e.isSpaceRoom()}),O,x)},$a=({member:e,e2eStatus:t})=>{const n=Object(r.useContext)(b.a),o=Object(r.useCallback)(()=>{const t=e.getMxcAvatarUrl?e.getMxcAvatarUrl():e.avatarUrl;if(!t)return;const n={src:Object(ge.b)(t).srcHttp,name:e.name};Ge.a.createDialog(Br.a,n,"mx_Dialog_lightbox",null,!0)},[e]),a=i.a.createElement("div",{className:"mx_UserInfo_avatar"},i.a.createElement("div",null,i.a.createElement("div",null,i.a.createElement(lr.a,{key:e.userId,member:e,width:.6*window.innerHeight,height:.6*window.innerHeight,resizeMethod:"scale",fallbackUserId:e.userId,onClick:o,urls:e.avatarUrl?[e.avatarUrl]:void 0}))));let s,c,d,u;e instanceof ga.a&&e.user&&(s=e.user.presence,c=e.user.lastActiveAgo,d=e.user.currentlyActive,G.b.getValue("feature_custom_status")&&(u=e.user._unstable_statusMessage));const h=l.a.get().enable_presence_by_hs_url;let p=!0;h&&void 0!==h[n.baseUrl]&&(p=h[n.baseUrl]);let m=null;p&&(m=i.a.createElement(ka,{activeAgo:c,currentlyActive:d,presenceState:s}));let g,f=null;u&&(f=i.a.createElement("span",{className:"mx_UserInfo_statusMessage"},u)),t&&(g=i.a.createElement(Zi.b,{size:18,status:t,isUser:!0}));const _=e.rawDisplayName||e.displayname;return i.a.createElement(i.a.Fragment,null,a,i.a.createElement("div",{className:"mx_UserInfo_container mx_UserInfo_separator"},i.a.createElement("div",{className:"mx_UserInfo_profile"},i.a.createElement("div",null,i.a.createElement("h2",null,g,i.a.createElement("span",{title:_,"aria-label":_},_))),i.a.createElement("div",null,e.userId),i.a.createElement("div",{className:"mx_UserInfo_profileStatus"},m,f))))};var Qa=e=>{let{user:t,groupId:n,room:o,onClose:a,phase:s=ot.c.RoomMemberInfo}=e,l=me()(e,["user","groupId","room","onClose","phase"]);const d=Object(r.useContext)(b.a),p=Object(r.useMemo)(()=>o&&o.getMember(t.userId)||t,[o,t]),m=Object(Sa.a)(d,o),g=Wa(t.userId);let f;m&&g&&(f=((e,t,n)=>{const o=t===e.getUserId(),r=e.checkUserTrust(t);if(!r.isCrossSigningVerified())return r.wasCrossSigningVerified()?wa.a.Warning:wa.a.Normal;return n.some(n=>{const{deviceId:r}=n,i=e.checkDeviceTrust(t,r);return o?!i.isCrossSigningVerified():!i.isVerified()})?wa.a.Warning:wa.a.Verified})(d,t.userId,g));const _=["mx_UserInfo"];let v,y;o&&s===ot.c.EncryptionPanel?(y=ot.c.RoomMemberInfo,v={member:p}):o&&(y=y=o.isSpaceRoom()?ot.c.SpaceMemberList:ot.c.RoomMemberList);const E=()=>{u.a.dispatch({action:h.a.SetRightPanelPhase,phase:y,refireParams:v})};let S;switch(s){case ot.c.RoomMemberInfo:case ot.c.GroupMemberInfo:case ot.c.SpaceMemberInfo:S=i.a.createElement(Ya,{room:o,member:p,groupId:n,devices:g,isRoomEncrypted:m});break;case ot.c.EncryptionPanel:_.push("mx_UserInfo_smallAvatar"),S=i.a.createElement(ra,he()({},l,{member:p,onClose:E,isRoomEncrypted:m}))}let w,C=void 0;if(s===ot.c.EncryptionPanel){const e=l.verificationRequest;e&&e.pending&&(C=Object(c.a)("Cancel"))}null!=o&&o.isSpaceRoom()&&(w=i.a.createElement("div",{className:"mx_RightPanel_scopeHeader"},i.a.createElement(De.a,{room:o,height:32,width:32}),i.a.createElement(dt.a,{room:o})));const T=i.a.createElement(i.a.Fragment,null,w,i.a.createElement($a,{member:p,e2eStatus:f}));return i.a.createElement(Gi.b,{className:_.join(" "),header:T,onClose:a,closeLabel:C,previousPhase:y,refireParams:v},S)},Ja=n(710);class Xa{constructor(e,t){if(R()(this,"commandRegex",void 0),R()(this,"forcedCommandRegex",void 0),e){if(!e.global)throw new Error("commandRegex must have global flag set");this.commandRegex=e}if(t){if(!t.global)throw new Error("forcedCommandRegex must have global flag set");this.forcedCommandRegex=t}}destroy(){}getCurrentCommand(e,t,n=!1){let o,r=this.commandRegex;if(n&&this.shouldForceComplete()&&(r=this.forcedCommandRegex||/\S+/g),!r)return null;for(r.lastIndex=0;null!==(o=r.exec(e));){const e=o.index,n=e+o[0].length;if(t.start<=n&&t.end>=e)return{command:o,range:{start:e,end:n}}}return{command:null,range:{start:-1,end:-1}}}async getCompletions(e,t,n=!1){return[]}getName(){return"Default Provider"}renderCompletions(e){return console.error("stub; should be implemented in subclasses"),null}shouldForceComplete(){return!1}}function Za(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function es(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Za(Object(n),!0).forEach((function(t){R()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Za(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}class ts{constructor(e,t={keys:[]}){R()(this,"_options",void 0),R()(this,"_items",void 0),this._options=t,this.setObjects(e),void 0===this._options.shouldMatchWordsOnly&&(this._options.shouldMatchWordsOnly=!0)}setObjects(e){this._items=new Map;for(const t of e){const e=Object(No.at)(t,this._options.keys);if(this._options.funcs)for(const n of this._options.funcs)e.push(n(t));for(const[n,o]of Object.entries(e)){if(!o)continue;const e=this.processQuery(o);this._items.has(e)||this._items.set(e,[]),this._items.get(e).push({keyWeight:Number(n),object:t})}}}match(e){if(e=this.processQuery(e),this._options.shouldMatchWordsOnly&&(e=e.replace(/[^\w]/g,"")),0===e.length)return[];const t=[];for(const[n,o]of this._items.entries()){let r=n;this._options.shouldMatchWordsOnly&&(r=r.replace(/[^\w]/g,""));const i=r.indexOf(e);-1!==i&&t.push(...o.map(e=>es({index:i},e)))}return t.sort((e,t)=>{if(e.index<t.index)return-1;if(e.index===t.index){if(e.keyWeight<t.keyWeight)return-1;if(e.keyWeight===t.keyWeight)return 0}return 1}),Object(No.uniq)(t.map(e=>e.object))}processQuery(e){return!1!==this._options.fuzzy?Object(mt.A)(e.toLowerCase()).toLowerCase():e.toLowerCase()}}const ns=Object(r.forwardRef)((e,t)=>{const{title:n,subtitle:o,description:r,className:a}=e,s=me()(e,["title","subtitle","description","className"]);return i.a.createElement("div",he()({},s,{className:P()("mx_Autocomplete_Completion_block",a),role:"option",ref:t}),i.a.createElement("span",{className:"mx_Autocomplete_Completion_title"},n),i.a.createElement("span",{className:"mx_Autocomplete_Completion_subtitle"},o),i.a.createElement("span",{className:"mx_Autocomplete_Completion_description"},r))}),os=Object(r.forwardRef)((e,t)=>{const{title:n,subtitle:o,description:r,className:a,children:s}=e,c=me()(e,["title","subtitle","description","className","children"]);return i.a.createElement("div",he()({},c,{className:P()("mx_Autocomplete_Completion_pill",a),role:"option",ref:t}),s,i.a.createElement("span",{className:"mx_Autocomplete_Completion_title"},n),i.a.createElement("span",{className:"mx_Autocomplete_Completion_subtitle"},o),i.a.createElement("span",{className:"mx_Autocomplete_Completion_description"},r))});var rs=n(331),is=n(127);function as(e){const t=2*Math.PI/e.length;return Array.from(e).map((e,n)=>{if(" "===e)return e;const[o,r]=function(e,t){const n=127*t*Math.cos(e),o=127*t*Math.sin(e);return[n,o]}(n*t,1),[i,a,s]=function(e,t,n){let o=(e+16)/116;const r=.9505*ss(o+t/500),i=1.089*ss(o-n/200);o=ss(o);const a=-.96924364*r+1.8759675*o+.04155506*i,s=.05563008*r-.20397696*o+1.05697151*i;return[cs(3.24096994*r-1.53738318*o-.49861076*i),cs(a),cs(s)]}(75,o,r);return'<font color="#'+i.toString(16).padStart(2,"0")+a.toString(16).padStart(2,"0")+s.toString(16).padStart(2,"0")+'">'+e+"</font>"}).join("")}function ss(e){return e>.2069?Math.pow(e,3):.1284*e-.01771}function cs(e){const t=function(e){return e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055}(e),n=Math.min(Math.max(t,0),1);return Math.round(255*n)}var ls=n(211),ds=n(244),us=n(281),hs=n(109),ps=n(138),ms=n(432),gs=n(412),fs=n(192),_s=n(202),bs=n(247);function vs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ys(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vs(Object(n),!0).forEach((function(t){R()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const Es=async()=>new Promise(e=>{const t=document.createElement("input");t.setAttribute("type","file"),t.onchange=t=>{const n=t.target.files[0],o=d.getComponent("dialogs.UploadConfirmDialog");Ge.a.createTrackedDialog("Upload Files confirmation","",o,{file:n,onFinished:t=>{e(t?de.a.get().uploadContent(n):null)}})},t.click()}),Ss={messages:Object(c.b)("Messages"),actions:Object(c.b)("Actions"),admin:Object(c.b)("Admin"),advanced:Object(c.b)("Advanced"),effects:Object(c.b)("Effects"),other:Object(c.b)("Other")};class ws{constructor(e){R()(this,"command",void 0),R()(this,"aliases",void 0),R()(this,"args",void 0),R()(this,"description",void 0),R()(this,"runFn",void 0),R()(this,"category",void 0),R()(this,"hideCompletionAfterSpace",void 0),R()(this,"_isEnabled",void 0),this.command=e.command,this.aliases=e.aliases||[],this.args=e.args||"",this.description=e.description,this.runFn=e.runFn,this.category=e.category||Ss.other,this.hideCompletionAfterSpace=e.hideCompletionAfterSpace||!1,this._isEnabled=e.isEnabled}getCommand(){return"/"+this.command}getCommandWithArgs(){return this.getCommand()+" "+this.args}run(e,t){return this.runFn?this.runFn.bind(this)(e,t):Cs(Object(c.a)("Command error"))}getUsage(){return Object(c.a)("Usage")+": "+this.getCommandWithArgs()}isEnabled(){return!this._isEnabled||this._isEnabled()}}function Cs(e){return{error:e}}function Ts(e){return{promise:e}}const xs=[new ws({command:"spoiler",args:"<message>",description:Object(c.b)("Sends the given message as a spoiler"),runFn:function(e,t){return Ts(rs.makeHtmlMessage(t,`<span data-mx-spoiler>${t}</span>`))},category:Ss.messages}),new ws({command:"shrug",args:"<message>",description:Object(c.b)("Prepends ¯\\_(ツ)_/¯ to a plain-text message"),runFn:function(e,t){let n="¯\\_(ツ)_/¯";return t&&(n=n+" "+t),Ts(rs.makeTextMessage(n))},category:Ss.messages}),new ws({command:"tableflip",args:"<message>",description:Object(c.b)("Prepends (╯°□°)╯︵ ┻━┻ to a plain-text message"),runFn:function(e,t){let n="(╯°□°)╯︵ ┻━┻";return t&&(n=n+" "+t),Ts(rs.makeTextMessage(n))},category:Ss.messages}),new ws({command:"unflip",args:"<message>",description:Object(c.b)("Prepends ┬──┬ ノ( ゜-゜ノ) to a plain-text message"),runFn:function(e,t){let n="┬──┬ ノ( ゜-゜ノ)";return t&&(n=n+" "+t),Ts(rs.makeTextMessage(n))},category:Ss.messages}),new ws({command:"lenny",args:"<message>",description:Object(c.b)("Prepends ( ͡° ͜ʖ ͡°) to a plain-text message"),runFn:function(e,t){let n="( ͡° ͜ʖ ͡°)";return t&&(n=n+" "+t),Ts(rs.makeTextMessage(n))},category:Ss.messages}),new ws({command:"plain",args:"<message>",description:Object(c.b)("Sends a message as plain text, without interpreting it as markdown"),runFn:function(e,t){return Ts(rs.makeTextMessage(t))},category:Ss.messages}),new ws({command:"html",args:"<message>",description:Object(c.b)("Sends a message as html, without interpreting it as markdown"),runFn:function(e,t){return Ts(rs.makeHtmlMessage(t,t))},category:Ss.messages}),new ws({command:"ddg",args:"<query>",description:Object(c.b)("Searches DuckDuckGo for results"),runFn:function(){const e=d.getComponent("dialogs.ErrorDialog");return Ge.a.createTrackedDialog("Slash Commands","/ddg is not a command",e,{title:Object(c.a)("/ddg is not a command"),description:Object(c.a)("To use it, just wait for autocomplete results to load and tab through them.")}),Ts()},category:Ss.actions,hideCompletionAfterSpace:!0}),new ws({command:"upgraderoom",args:"<new_version>",description:Object(c.b)("Upgrades a room to a new version"),runFn:function(e,t){if(t){const n=de.a.get(),o=n.getRoom(e);if(!o.currentState.mayClientSendStateEvent("m.room.tombstone",n))return Cs(Object(c.a)("You do not have the required permissions to use this command."));const r=d.getComponent("dialogs.RoomUpgradeWarningDialog"),{finished:i}=Ge.a.createTrackedDialog("Slash Commands","upgrade room confirmation",r,{roomId:e,targetVersion:t},null,!1,!0);return Ts(i.then(async([r])=>{if(!r.continue)return;let i;try{const a=n.upgradeRoom(e,t);r.invite&&(i=async e=>{const{replacement_room:t}=await a;if(e.roomId!==t)return;const r=[...o.getMembersWithMembership("join"),...o.getMembersWithMembership("invite")].map(e=>e.userId).filter(e=>e!==n.getUserId());r.length>0&&await Object(nt.b)(t,r),n.removeListener("Room",i)},n.on("Room",i)),await a}catch(e){console.error(e),i&&n.removeListener("Room",i);const t=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Slash Commands","room upgrade error",t,{title:Object(c.a)("Error upgrading room"),description:Object(c.a)("Double check that your server supports the room version chosen and try again.")})}}))}return Cs(this.getUsage())},category:Ss.admin}),new ws({command:"nick",args:"<display_name>",description:Object(c.b)("Changes your display nickname"),runFn:function(e,t){return t?Ts(de.a.get().setDisplayName(t)):Cs(this.getUsage())},category:Ss.actions}),new ws({command:"myroomnick",aliases:["roomnick"],args:"<display_name>",description:Object(c.b)("Changes your display nickname in the current room only"),runFn:function(e,t){if(t){const n=de.a.get(),o=n.getRoom(e).currentState.getStateEvents("m.room.member",n.getUserId()),r=ys(ys({},o?o.getContent():{membership:"join"}),{},{displayname:t});return Ts(n.sendStateEvent(e,"m.room.member",r,n.getUserId()))}return Cs(this.getUsage())},category:Ss.actions}),new ws({command:"roomavatar",args:"[<mxc_url>]",description:Object(c.b)("Changes the avatar of the current room"),runFn:function(e,t){let n=Promise.resolve(t);return t||(n=Es()),Ts(n.then(t=>{if(t)return de.a.get().sendStateEvent(e,"m.room.avatar",{url:t},"")}))},category:Ss.actions}),new ws({command:"myroomavatar",args:"[<mxc_url>]",description:Object(c.b)("Changes your avatar in this current room only"),runFn:function(e,t){const n=de.a.get(),o=n.getRoom(e),r=n.getUserId();let i=Promise.resolve(t);return t||(i=Es()),Ts(i.then(t=>{if(!t)return;const i=o.currentState.getStateEvents("m.room.member",r),a=ys(ys({},i?i.getContent():{membership:"join"}),{},{avatar_url:t});return n.sendStateEvent(e,"m.room.member",a,r)}))},category:Ss.actions}),new ws({command:"myavatar",args:"[<mxc_url>]",description:Object(c.b)("Changes your avatar in all rooms"),runFn:function(e,t){let n=Promise.resolve(t);return t||(n=Es()),Ts(n.then(e=>{if(e)return de.a.get().setAvatarUrl(e)}))},category:Ss.actions}),new ws({command:"topic",args:"[<topic>]",description:Object(c.b)("Gets or sets the room topic"),runFn:function(e,t){const n=de.a.get();if(t)return Ts(n.setRoomTopic(e,t));const o=n.getRoom(e);if(!o)return Cs(Object(c.a)("Failed to set topic"));const i=o.currentState.getStateEvents("m.room.topic",""),a=i&&i.getContent().topic,s=a?Object(is.e)(a):Object(c.a)("This room has no topic."),l=d.getComponent("dialogs.InfoDialog");return Ge.a.createTrackedDialog("Slash Commands","Topic",l,{title:o.name,description:r.createElement("div",{dangerouslySetInnerHTML:{__html:s}}),hasCloseButton:!0}),Ts()},category:Ss.admin}),new ws({command:"roomname",args:"<name>",description:Object(c.b)("Sets the room name"),runFn:function(e,t){return t?Ts(de.a.get().setRoomName(e,t)):Cs(this.getUsage())},category:Ss.admin}),new ws({command:"invite",args:"<user-id> [<reason>]",description:Object(c.b)("Invites user with given id to current room"),runFn:function(e,t){if(t){const[n,o]=t.split(/\s+(.+)/);if(n){let t=Promise.resolve();if("email"===Object(ls.c)(n)&&!de.a.get().getIdentityServerUrl()){const e=Object(us.c)();if(!e)return Cs(Object(c.a)("Use an identity server to invite by email. Manage in Settings."));{const{finished:n}=Ge.a.createTrackedDialog("Slash Commands","Identity server",Be.a,{title:Object(c.a)("Use an identity server"),description:r.createElement("p",null,Object(c.a)("Use an identity server to invite by email. Click continue to use the default identity server (%(defaultIdentityServerName)s) or manage in Settings.",{defaultIdentityServerName:Object(ds.a)(e)})),button:Object(c.a)("Continue")});t=n.then(([e])=>{if(!e)throw new Error(Object(c.a)("Use an identity server to invite by email. Manage in Settings."));Object(us.d)()})}}const i=new _a.a(e);return Ts(t.then(()=>i.invite([n],o)).then(()=>{if("invited"!==i.getCompletionState(n))throw new Error(i.getErrorText(n))}))}}return Cs(this.getUsage())},category:Ss.actions}),new ws({command:"join",aliases:["j","goto"],args:"<room-address>",description:Object(c.b)("Joins room with given address"),runFn:function(e,t){if(t){const e=t.split(" ");if(e.length<1)return Cs(this.getUsage());let n=!1;if(e[0].startsWith("http:")||e[0].startsWith("https:")){const t=new URL(e[0]),o=t.host||t.hostname;Object(hs.d)(o)&&(n=!0)}if("#"===e[0][0]){let t=e[0];return t.includes(":")||(t+=":"+de.a.get().getDomain()),u.a.dispatch({action:"view_room",room_alias:t,auto_join:!0,_type:"slash_command"}),Ts()}if("!"===e[0][0]){const[t,...n]=e;return u.a.dispatch({action:"view_room",room_id:t,opts:{viaServers:n},via_servers:n,auto_join:!0,_type:"slash_command"}),Ts()}if(n){const t=Object(hs.j)(e[0]);if(!t)return Cs(this.getUsage());if(!t.roomIdOrAlias)return Cs(this.getUsage());const n=t.roomIdOrAlias,o=t.viaServers,r=t.eventId,i={action:"view_room",auto_join:!0,_type:"slash_command"};return"!"===n[0]?i.room_id=n:i.room_alias=n,r&&(i.event_id=r,i.highlighted=!0),o&&(i.opts={viaServers:o},i.via_servers=o),u.a.dispatch(i),Ts()}}return Cs(this.getUsage())},category:Ss.actions}),new ws({command:"part",args:"[<room-address>]",description:Object(c.b)("Leave room"),runFn:function(e,t){const n=de.a.get();let o;if(t){const e=t.match(/^(\S+)$/);if(e){let t=e[1];if("#"!==t[0])return Cs(this.getUsage());t.includes(":")||(t+=":"+n.getDomain());const r=n.getRooms();for(let e=0;e<r.length;e++){const n=r[e].currentState.getStateEvents("m.room.aliases");for(let i=0;i<n.length;i++){const a=n[i].getContent().aliases||[];for(let n=0;n<a.length;n++)if(a[n]===t){o=r[e].roomId;break}if(o)break}if(o)break}if(!o)return Cs(Object(c.a)("Unrecognised room address:")+" "+t)}}return o||(o=e),Ts(Object(fs.d)(o))},category:Ss.actions}),new ws({command:"kick",args:"<user-id> [reason]",description:Object(c.b)("Kicks user with given id"),runFn:function(e,t){if(t){const n=t.match(/^(\S+?)( +(.*))?$/);if(n)return Ts(de.a.get().kick(e,n[1],n[3]))}return Cs(this.getUsage())},category:Ss.admin}),new ws({command:"ban",args:"<user-id> [reason]",description:Object(c.b)("Bans user with given id"),runFn:function(e,t){if(t){const n=t.match(/^(\S+?)( +(.*))?$/);if(n)return Ts(de.a.get().ban(e,n[1],n[3]))}return Cs(this.getUsage())},category:Ss.admin}),new ws({command:"unban",args:"<user-id>",description:Object(c.b)("Unbans user with given ID"),runFn:function(e,t){if(t){const n=t.match(/^(\S+)$/);if(n)return Ts(de.a.get().unban(e,n[1]))}return Cs(this.getUsage())},category:Ss.admin}),new ws({command:"ignore",args:"<user-id>",description:Object(c.b)("Ignores a user, hiding their messages from you"),runFn:function(e,t){if(t){const e=de.a.get(),n=t.match(/^(@[^:]+:\S+)$/);if(n){const t=n[1],o=e.getIgnoredUsers();return o.push(t),Ts(e.setIgnoredUsers(o).then(()=>{const e=d.getComponent("dialogs.InfoDialog");Ge.a.createTrackedDialog("Slash Commands","User ignored",e,{title:Object(c.a)("Ignored user"),description:r.createElement("div",null,r.createElement("p",null,Object(c.a)("You are now ignoring %(userId)s",{userId:t})))})}))}}return Cs(this.getUsage())},category:Ss.actions}),new ws({command:"unignore",args:"<user-id>",description:Object(c.b)("Stops ignoring a user, showing their messages going forward"),runFn:function(e,t){if(t){const e=de.a.get(),n=t.match(/(^@[^:]+:\S+$)/);if(n){const t=n[1],o=e.getIgnoredUsers(),i=o.indexOf(t);return-1!==i&&o.splice(i,1),Ts(e.setIgnoredUsers(o).then(()=>{const e=d.getComponent("dialogs.InfoDialog");Ge.a.createTrackedDialog("Slash Commands","User unignored",e,{title:Object(c.a)("Unignored user"),description:r.createElement("div",null,r.createElement("p",null,Object(c.a)("You are no longer ignoring %(userId)s",{userId:t})))})}))}}return Cs(this.getUsage())},category:Ss.actions}),new ws({command:"op",args:"<user-id> [<power-level>]",description:Object(c.b)("Define the power level of a user"),runFn:function(e,t){if(t){const n=t.match(/^(\S+?)( +(-?\d+))?$/);let o=50;if(n){const t=n[1];if(4===n.length&&void 0!==n[3]&&(o=parseInt(n[3],10)),!isNaN(o)){const n=de.a.get(),r=n.getRoom(e);if(!r)return Cs(Object(c.a)("Command failed"));const i=r.getMember(t);if(!i||Object(fs.b)(i.membership)===fs.a.Leave)return Cs(Object(c.a)("Could not find user in room"));const a=r.currentState.getStateEvents("m.room.power_levels","");return Ts(n.setPowerLevel(e,t,o,a))}}}return Cs(this.getUsage())},category:Ss.admin}),new ws({command:"deop",args:"<user-id>",description:Object(c.b)("Deops user with given id"),runFn:function(e,t){if(t){if(t.match(/^(\S+)$/)){const n=de.a.get(),o=n.getRoom(e);if(!o)return Cs(Object(c.a)("Command failed"));const r=o.currentState.getStateEvents("m.room.power_levels","");return r.getContent().users[t]?Ts(n.setPowerLevel(e,t,void 0,r)):Cs(Object(c.a)("Could not find user in room"))}}return Cs(this.getUsage())},category:Ss.admin}),new ws({command:"devtools",description:Object(c.b)("Opens the Developer Tools dialog"),runFn:function(e){const t=d.getComponent("dialogs.DevtoolsDialog");return Ge.a.createDialog(t,{roomId:e}),Ts()},category:Ss.advanced}),new ws({command:"addwidget",args:"<url | embed code | Jitsi url>",description:Object(c.b)("Adds a custom widget by URL to the room"),isEnabled:()=>G.b.getValue(lt.a.Widgets),runFn:function(e,t){if(!t)return Cs(Object(c.a)("Please supply a widget URL or embed code"));if(t.toLowerCase().startsWith("<iframe ")){const e=Object(gs.parseFragment)(t);if(e&&e.childNodes&&1===e.childNodes.length){const n=e.childNodes[0];if("iframe"===n.tagName.toLowerCase()&&n.attrs){const e=n.attrs.find(e=>"src"===e.name);console.log("Pulling URL out of iframe (embed code)"),t=e.value}}}if(!t.startsWith("https://")&&!t.startsWith("http://"))return Cs(Object(c.a)("Please supply a https:// or http:// widget URL"));if(Dt.a.canUserModifyWidgets(e)){const n=de.a.get().getUserId(),o=(new Date).getTime(),r=encodeURIComponent(`${e}_${n}_${o}`);let i=ps.a.CUSTOM,a="Custom Widget",s={};const c=ms.a.getInstance().parsePreferredConferenceUrl(t);return c&&(console.log("Making /addwidget widget a Jitsi conference"),i=ps.a.JITSI,a="Jitsi Conference",s=c,t=Dt.a.getLocalJitsiWrapperUrl()),Ts(Dt.a.setRoomWidget(e,r,i,t,a,s))}return Cs(Object(c.a)("You cannot modify widgets in this room."))},category:Ss.admin}),new ws({command:"verify",args:"<user-id> <device-id> <device-signing-key>",description:Object(c.b)("Verifies a user, session, and pubkey tuple"),runFn:function(e,t){if(t){const e=t.match(/^(\S+) +(\S+) +(\S+)$/);if(e){const t=de.a.get(),n=e[1],o=e[2],i=e[3];return Ts((async()=>{const e=t.getStoredDevice(n,o);if(!e)throw new Error(Object(c.a)("Unknown (user, session) pair:")+` (${n}, ${o})`);if((await t.checkDeviceTrust(n,o)).isVerified())throw e.getFingerprint()===i?new Error(Object(c.a)("Session already verified!")):new Error(Object(c.a)("WARNING: Session already verified, but keys do NOT MATCH!"));if(e.getFingerprint()!==i){const t=e.getFingerprint();throw new Error(Object(c.a)('WARNING: KEY VERIFICATION FAILED! The signing key for %(userId)s and session %(deviceId)s is "%(fprint)s" which does not match the provided key "%(fingerprint)s". This could mean your communications are being intercepted!',{fprint:t,userId:n,deviceId:o,fingerprint:i}))}await t.setDeviceVerified(n,o,!0);const a=d.getComponent("dialogs.InfoDialog");Ge.a.createTrackedDialog("Slash Commands","Verified key",a,{title:Object(c.a)("Verified key"),description:r.createElement("div",null,r.createElement("p",null,Object(c.a)("The signing key you provided matches the signing key you received from %(userId)s's session %(deviceId)s. Session marked as verified.",{userId:n,deviceId:o})))})})())}}return Cs(this.getUsage())},category:Ss.advanced}),new ws({command:"discardsession",description:Object(c.b)("Forces the current outbound group session in an encrypted room to be discarded"),runFn:function(e){try{de.a.get().forceDiscardSession(e)}catch(e){return Cs(e.message)}return Ts()},category:Ss.advanced}),new ws({command:"rainbow",description:Object(c.b)("Sends the given message coloured as a rainbow"),args:"<message>",runFn:function(e,t){return t?Ts(rs.makeHtmlMessage(t,as(t))):Cs(this.getUserId())},category:Ss.messages}),new ws({command:"rainbowme",description:Object(c.b)("Sends the given emote coloured as a rainbow"),args:"<message>",runFn:function(e,t){return t?Ts(rs.makeHtmlEmote(t,as(t))):Cs(this.getUserId())},category:Ss.messages}),new ws({command:"help",description:Object(c.b)("Displays list of commands with usages and descriptions"),runFn:function(){const e=d.getComponent("dialogs.SlashCommandHelpDialog");return Ge.a.createTrackedDialog("Slash Commands","Help",e),Ts()},category:Ss.advanced}),new ws({command:"whois",description:Object(c.b)("Displays information about a user"),args:"<user-id>",runFn:function(e,t){if(!t||!t.startsWith("@")||!t.includes(":"))return Cs(this.getUsage());const n=de.a.get().getRoom(e).getMember(t);return u.a.dispatch({action:h.a.ViewUser,member:n||{userId:t}}),Ts()},category:Ss.advanced}),new ws({command:"rageshake",aliases:["bugreport"],description:Object(c.b)("Send a bug report with logs"),isEnabled:()=>!!l.a.get().bug_report_endpoint_url,args:"<description>",runFn:function(e,t){return Ts(Ge.a.createTrackedDialog("Slash Commands","Bug Report Dialog",Ke,{initialText:t}).finished)},category:Ss.advanced}),new ws({command:"query",description:Object(c.b)("Opens chat with the given user"),args:"<user-id>",runFn:function(e,t){const n=t&&/^\+?[0123456789]+$/.test(t);return t&&(t.startsWith("@")&&t.includes(":")||n)?Ts((async()=>{if(n){const e=await Oe.c.sharedInstance().pstnLookup(this.state.value);if(!e||0===e.length||!e[0].userid)throw new Error("Unable to find Matrix ID for phone number");t=e[0].userid}const e=await Object(Rn.d)(de.a.get(),t);u.a.dispatch({action:"view_room",room_id:e})})()):Cs(this.getUsage())},category:Ss.actions}),new ws({command:"msg",description:Object(c.b)("Sends a message to the given user"),args:"<user-id> <message>",runFn:function(e,t){if(t){const e=t.match(/^(\S+?)(?: +(.*))?$/s);if(e){const[t,n]=e.slice(1);if(n&&t&&t.startsWith("@")&&t.includes(":"))return Ts((async()=>{const e=de.a.get(),o=await Object(Rn.d)(e,t);u.a.dispatch({action:"view_room",room_id:o}),e.sendTextMessage(o,n)})())}}return Cs(this.getUsage())},category:Ss.actions}),new ws({command:"holdcall",description:Object(c.b)("Places the call in the current room on hold"),category:Ss.other,runFn:function(e,t){const n=Oe.c.sharedInstance().getCallForRoom(e);return n?(n.setRemoteOnHold(!0),Ts()):Cs("No active call in this room")}}),new ws({command:"unholdcall",description:Object(c.b)("Takes the call in the current room off hold"),category:Ss.other,runFn:function(e,t){const n=Oe.c.sharedInstance().getCallForRoom(e);return n?(n.setRemoteOnHold(!1),Ts()):Cs("No active call in this room")}}),new ws({command:"converttodm",description:Object(c.b)("Converts the room to a DM"),category:Ss.other,runFn:function(e,t){const n=de.a.get().getRoom(e);return Ts(Object(bs.b)(n,!0))}}),new ws({command:"converttoroom",description:Object(c.b)("Converts the DM to a room"),category:Ss.other,runFn:function(e,t){const n=de.a.get().getRoom(e);return Ts(Object(bs.b)(n,!1))}}),new ws({command:"me",args:"<message>",description:Object(c.b)("Displays action"),category:Ss.messages,hideCompletionAfterSpace:!0}),..._s.CHAT_EFFECTS.map(e=>new ws({command:e.command,description:e.description(),args:"<message>",runFn:function(t,n){return Ts((async()=>{if(n){const o={msgtype:e.msgType,body:n};de.a.get().sendMessage(t,o)}else n=e.fallbackMessage(),de.a.get().sendEmoteMessage(t,n);u.a.dispatch({action:"effects."+e.command})})())},category:Ss.effects}))],Os=new Map;function ks(e){if("/"!==(e=e.replace(/\s+$/,""))[0])return{};const t=e.match(/^(\S+?)(?:[ \n]+((.|\n)*))?$/);let n,o;return t?(n=t[1].substring(1).toLowerCase(),o=t[2]):n=e,{cmd:n,args:o}}xs.forEach(e=>{Os.set(e.command,e),e.aliases.forEach(t=>{Os.set(t,e)})});const Rs=/(^\/\w*)(?: .*)?/g;const Ds=/\B\+\S*/g;const Is=/\/ddg\s+(.+)$/g;class As extends Xa{constructor(){super(Is)}static getQueryUri(e){return"https://api.duckduckgo.com/?q="+encodeURIComponent(e)+"&format=json&no_redirect=1&no_html=1&t="+encodeURIComponent("vector")}async getCompletions(e,t,n=!1){const{command:o,range:r}=this.getCurrentCommand(e,t);if(!e||!o)return[];const a=await fetch(As.getQueryUri(o[1]),{method:"GET"}),s=await a.json(),c=s.Results.map(e=>({completion:e.Text,component:i.a.createElement(ns,{title:e.Text,description:e.Result}),range:r}));return s.Answer&&c.unshift({completion:s.Answer,component:i.a.createElement(ns,{title:s.Answer,description:s.AnswerType}),range:r}),s.RelatedTopics&&s.RelatedTopics.length>0&&c.unshift({completion:s.RelatedTopics[0].Text,component:i.a.createElement(ns,{title:s.RelatedTopics[0].Text}),range:r}),s.AbstractText&&c.unshift({completion:s.AbstractText,component:i.a.createElement(ns,{title:s.AbstractText}),range:r}),c}getName(){return"🔍 "+Object(c.a)("Results from DuckDuckGo")}renderCompletions(e){return i.a.createElement("div",{className:"mx_Autocomplete_Completion_container_block",role:"listbox","aria-label":Object(c.a)("DuckDuckGo Results")},e)}}const Ns=/\B#\S*/g;function Fs(e,t,n=""){return{room:e,matchName:n,displayedAlias:t}}const Ms=/\B@\S*/g,Ps=/[^/,:; \t\n]\S*/g;var Ls=n(731),js=n.n(Ls);const Us=new RegExp("("+js.a.source+"|(?:^|\\s):[+-\\w]*:?)$","g"),Bs=ti.b.sort((e,t)=>e.group===t.group?e.order-t.order:e.group-t.group).map((e,t)=>({emoji:e,shortname:`:${e.shortcodes[0]}:`,_orderBy:t}));function qs(e,t){const n=t.indexOf(e);return-1===n?1/0:n}const Gs=/@\S*/g;var Vs=n(125);const Hs=[class extends Xa{constructor(e){super(Ms,Ps),R()(this,"matcher",void 0),R()(this,"users",void 0),R()(this,"room",void 0),R()(this,"onRoomTimeline",(e,t,n,o,r)=>{t&&(o||t.roomId===this.room.roomId&&r.timeline.getTimelineSet()===t.getUnfilteredTimelineSet()&&!n&&r&&r.liveEvent&&this.onUserSpoke(e.sender))}),R()(this,"onRoomStateMember",(e,t,n)=>{n.roomId===this.room.roomId&&(this.users=null)}),this.room=e,this.matcher=new ts([],{keys:["name"],funcs:[e=>e.userId.slice(1)],shouldMatchWordsOnly:!1}),de.a.get().on("Room.timeline",this.onRoomTimeline),de.a.get().on("RoomState.members",this.onRoomStateMember)}destroy(){de.a.get()&&(de.a.get().removeListener("Room.timeline",this.onRoomTimeline),de.a.get().removeListener("RoomState.members",this.onRoomStateMember))}async getCompletions(e,t,n=!1){const o=d.getComponent("views.avatars.MemberAvatar");this.users||this._makeUsers();let r=[];const{command:a,range:s}=this.getCurrentCommand(e,t,n);if(!a)return r;const c=a[0];if(c&&"@"!==c){const e=c.startsWith("@")?c.substring(1):c;r=this.matcher.match(e).map(e=>{const n=e.name||e.userId||"";return{completion:e.rawDisplayName,completionId:e.userId,type:"user",suffix:t.beginning&&0===s.start?": ":" ",href:Object(hs.h)(e.userId),component:i.a.createElement(os,{title:n,description:e.userId},i.a.createElement(o,{member:e,width:24,height:24})),range:s}})}return r}getName(){return Object(c.a)("Users")}_makeUsers(){const e=this.room.getLiveTimeline().getEvents(),t={};for(const n of e)t[n.getSender()]=n.getTs();const n=de.a.get().credentials.userId;this.users=this.room.getJoinedMembers().filter(({userId:e})=>e!==n),this.users=this.users.concat(this.room.getMembersWithMembership("invite")),this.users=Object(No.sortBy)(this.users,e=>1e20-t[e.userId]||1e20),this.matcher.setObjects(this.users)}onUserSpoke(e){this.users&&e&&e.userId!==de.a.get().credentials.userId&&(this.users.splice(this.users.findIndex(t=>t.userId===e.userId),1),this.users=[e,...this.users],this.matcher.setObjects(this.users))}renderCompletions(e){return i.a.createElement("div",{className:"mx_Autocomplete_Completion_container_pill",role:"listbox","aria-label":Object(c.a)("User Autocomplete")},e)}shouldForceComplete(){return!0}},class extends Xa{constructor(){super(Ns),R()(this,"matcher",void 0),this.matcher=new ts([],{keys:["displayedAlias","matchName"]})}async getCompletions(e,t,n=!1){const o=d.getComponent("views.avatars.RoomAvatar"),r=de.a.get();let a=[];const{command:s,range:c}=this.getCurrentCommand(e,t,n);if(s){let e=r.getVisibleRooms().reduce((e,t)=>{if(t.getCanonicalAlias()&&(e=e.concat(Fs(t,t.getCanonicalAlias(),t.name))),t.getAltAliases().length){const n=t.getAltAliases().map(e=>Fs(t,e));e=e.concat(n)}return e},[]);e=e.filter(t=>{const n=t.room.currentState.getStateEvents("m.room.tombstone","");if(n&&n.getContent()&&n.getContent().replacement_room){return!e.some(e=>e.room.roomId===n.getContent().replacement_room)}return!0}),this.matcher.setObjects(e);const t=s[0];a=this.matcher.match(t),a=Object(No.sortBy)(a,[e=>function(e,t){const n=t.indexOf(e);return-1===n?1/0:n}(t,e.displayedAlias),e=>e.displayedAlias.length]),a=Object(No.uniqBy)(a,e=>e.room),a=a.map(e=>({completion:e.displayedAlias,completionId:e.room.roomId,type:"room",suffix:" ",href:Object(hs.g)(e.displayedAlias),component:i.a.createElement(os,{title:e.room.name,description:e.displayedAlias},i.a.createElement(o,{width:24,height:24,room:e.room})),range:c})).filter(e=>!!e.completion&&e.completion.length>0).slice(0,4)}return a}getName(){return Object(c.a)("Rooms")}renderCompletions(e){return i.a.createElement("div",{className:"mx_Autocomplete_Completion_container_pill mx_Autocomplete_Completion_container_truncate",role:"listbox","aria-label":Object(c.a)("Room Autocomplete")},e)}},class extends Xa{constructor(){super(Us),R()(this,"matcher",void 0),R()(this,"nameMatcher",void 0),this.matcher=new ts(Bs,{keys:["emoji.emoticon","shortname"],funcs:[e=>e.emoji.shortcodes.length>1?e.emoji.shortcodes.slice(1).map(e=>`:${e}:`).join(" "):""],shouldMatchWordsOnly:!1}),this.nameMatcher=new ts(Bs,{keys:["emoji.annotation"],shouldMatchWordsOnly:!0})}async getCompletions(e,t,n){if(!G.b.getValue("MessageComposerInput.suggestEmoji"))return[];let o=[];const{command:r,range:a}=this.getCurrentCommand(e,t);if(r){const e=r[0];o=this.matcher.match(e),o=o.concat(this.nameMatcher.match(e));const t=[];t.push(t=>qs(e,t.emoji.emoticon||"")),t.push(t=>qs(e,t.shortname)),t.push(t=>Math.min(...t.emoji.shortcodes.map(t=>qs(e.substring(1),t)))),e.length>1&&t.push(e=>e.shortname.length),t.push(e=>e._orderBy),o=Object(No.sortBy)(Object(No.uniq)(o),t),o=o.map(({shortname:e})=>{const t=Object(is.i)(e);return{completion:t,component:i.a.createElement(os,{title:e,"aria-label":t},i.a.createElement("span",null,t)),range:a}}).slice(0,20)}return o}getName(){return"😃 "+Object(c.a)("Emoji")}renderCompletions(e){return i.a.createElement("div",{className:"mx_Autocomplete_Completion_container_pill",role:"listbox","aria-label":Object(c.a)("Emoji Autocomplete")},e)}},class extends Xa{constructor(e){super(Gs),R()(this,"room",void 0),this.room=e}async getCompletions(e,t,n=!1){const o=d.getComponent("views.avatars.RoomAvatar"),r=de.a.get();if(!this.room.currentState.mayTriggerNotifOfType("room",r.credentials.userId))return[];const{command:a,range:s}=this.getCurrentCommand(e,t,n);return a&&a[0]&&"@room".startsWith(a[0])&&a[0].length>1?[{completion:"@room",completionId:"@room",type:"at-room",suffix:" ",component:i.a.createElement(os,{title:"@room",description:Object(c.a)("Notify the whole room")},i.a.createElement(o,{width:24,height:24,room:this.room})),range:s}]:[]}getName(){return"❗️ "+Object(c.a)("Room Notification")}renderCompletions(e){return i.a.createElement("div",{className:"mx_Autocomplete_Completion_container_pill mx_Autocomplete_Completion_container_truncate",role:"listbox","aria-label":Object(c.a)("Notification Autocomplete")},e)}},class extends Xa{constructor(){super(Rs),R()(this,"matcher",void 0),this.matcher=new ts(xs,{keys:["command","args","description"],funcs:[({aliases:e})=>e.join(" ")]})}async getCompletions(e,t,n){const{command:o,range:r}=this.getCurrentCommand(e,t);if(!o)return[];let a=[];if(o[0]!==o[1]){const e=o[1].substr(1);if(Os.has(e)&&Os.get(e).isEnabled()){if(Os.get(e).hideCompletionAfterSpace)return[];a=[Os.get(e)]}}else a="/"===e?xs:this.matcher.match(o[1]);return a.filter(e=>e.isEnabled()).map(e=>{let t=e.getCommand()+" ";const n=e.aliases.find(e=>"/"+e===o[1]);return(n||e.getCommand()===o[1])&&(t=o[0]),{completion:t,type:"command",component:i.a.createElement(ns,{title:"/"+(n||e.command),subtitle:e.args,description:Object(c.a)(e.description)}),range:r}})}getName(){return"*️⃣ "+Object(c.a)("Commands")}renderCompletions(e){return i.a.createElement("div",{className:"mx_Autocomplete_Completion_container_block",role:"listbox","aria-label":Object(c.a)("Command Autocomplete")},e)}},class extends Xa{constructor(){super(Ds),R()(this,"matcher",void 0),this.matcher=new ts([],{keys:["groupId","name","shortDescription"]})}async getCompletions(e,t,n=!1){const o=d.getComponent("views.avatars.BaseAvatar");if(/^(\/join|\/leave)/.test(e))return[];const r=de.a.get();let a=[];const{command:s,range:c}=this.getCurrentCommand(e,t,n);if(s){const e=r.getGroups().filter(({myMembership:e})=>"join"===e),t=await Promise.all(e.map(async({groupId:e})=>{try{return at.a.getGroupProfileCached(r,e)}catch(t){return Promise.resolve({name:"",groupId:e,avatarUrl:"",shortDescription:""})}}));this.matcher.setObjects(t);const n=s[0];a=this.matcher.match(n),a=Object(No.sortBy)(a,[e=>function(e,t){const n=t.indexOf(e);return-1===n?1/0:n}(n,e.groupId),e=>e.groupId.length]).map(({avatarUrl:e,groupId:t,name:n})=>({completion:t,suffix:" ",type:"community",href:Object(hs.f)(t),component:i.a.createElement(os,{title:n,description:t},i.a.createElement(o,{name:n||t,width:24,height:24,url:e?Object(ge.b)(e).getSquareThumbnailHttp(24):null})),range:c})).slice(0,4)}return a}getName(){return"💬 "+Object(c.a)("Communities")}renderCompletions(e){return i.a.createElement("div",{className:"mx_Autocomplete_Completion_container_pill mx_Autocomplete_Completion_container_truncate",role:"listbox","aria-label":Object(c.a)("Community Autocomplete")},e)}},As];class zs{constructor(e){R()(this,"room",void 0),R()(this,"providers",void 0),this.room=e,this.providers=Hs.map(t=>new t(e))}destroy(){this.providers.forEach(e=>{e.destroy()})}async getCompletions(e,t,n=!1){return(await Promise.all(this.providers.map(o=>Object(Vs.e)(o.getCompletions(e,t,n),null,3e3)))).map((o,r)=>{if(o&&o.length)return{completions:o,provider:this.providers[r],command:this.providers[r].getCurrentCommand(e,t,n)}}).filter(Boolean)}}var Ks;const Ws=e=>"mx_Autocomplete_Completion_"+e;let Ys=Object(N.a)("views.rooms.Autocomplete")(Ks=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"autocompleter",void 0),R()(this,"queryRequested",void 0),R()(this,"debounceCompletionsRequest",void 0),R()(this,"containerRef",Object(r.createRef)()),R()(this,"hide",()=>{this.setState({hide:!0,selectionOffset:0,completions:[],completionList:[]})}),R()(this,"onCompletionClicked",e=>0!==this.countCompletions()&&0!==e&&(this.props.onConfirm(this.state.completionList[e-1]),this.hide(),!0)),this.autocompleter=new zs(e.room),this.state={completions:[],completionList:[],selectionOffset:0,shouldShowCompletions:!0,hide:!1,forceComplete:!1}}componentDidMount(){this.applyNewProps()}applyNewProps(e,t){t&&this.props.room.roomId!==t.roomId&&(this.autocompleter.destroy(),this.autocompleter=new zs(this.props.room)),e!==this.props.query&&this.complete(this.props.query,this.props.selection)}componentWillUnmount(){this.autocompleter.destroy()}complete(e,t){if(this.queryRequested=e,this.debounceCompletionsRequest&&clearTimeout(this.debounceCompletionsRequest),""===e)return this.setState({completions:[],completionList:[],selectionOffset:0,hide:!0}),Promise.resolve(null);let n=G.b.getValue("autocompleteDelay");return(this.state.completions.length>0||this.state.forceComplete)&&(n=0),new Promise(o=>{this.debounceCompletionsRequest=setTimeout(()=>{o(this.processQuery(e,t))},n)})}processQuery(e,t){return this.autocompleter.getCompletions(e,t,this.state.forceComplete).then(t=>{e===this.queryRequested&&this.processCompletions(t)})}processCompletions(e){const t=Object(No.flatMap)(e,e=>e.completions);let n=0;if(t.length>0){const e=0===this.state.selectionOffset?null:this.state.completionList[this.state.selectionOffset-1].completion;n=t.findIndex(t=>t.completion===e),-1===n?n=0:n++}let o=this.state.hide;o=!e.some(e=>!!e.command.command),this.setState({completions:e,completionList:t,selectionOffset:n,hide:o,forceComplete:!1})}hasSelection(){return this.countCompletions()>0&&0!==this.state.selectionOffset}countCompletions(){return this.state.completionList.length}moveSelection(e){const t=this.countCompletions();if(0===t)return;const n=(this.state.selectionOffset+e+t+1)%(t+1);this.setSelection(n)}onEscape(e){0!==this.countCompletions()&&(e.preventDefault(),this.hide())}forceComplete(){return new Promise(e=>{this.setState({forceComplete:!0,hide:!1},()=>{this.complete(this.props.query,this.props.selection).then(()=>{e(this.countCompletions())})})})}setSelection(e){this.setState({selectionOffset:e,hide:!1}),this.props.onSelectionChange&&this.props.onSelectionChange(this.state.completionList[e-1],e-1)}componentDidUpdate(e){this.applyNewProps(e.query,e.room);const t=this.refs["completion"+this.state.selectionOffset];t?t.scrollIntoView({behavior:"auto",block:"nearest"}):this.containerRef.current&&this.containerRef.current.scrollTo({top:0})}render(){let e=1;const t=this.state.completions.map((t,n)=>{const o=t.completions.map((t,n)=>{const o=e===this.state.selectionOffset,r=P()("mx_Autocomplete_Completion",{selected:o}),a=e;e++;return i.a.cloneElement(t.component,{key:n,ref:"completion"+a,id:Ws(a-1),className:r,onClick:()=>{this.onCompletionClicked(a)},"aria-selected":o})});return o.length>0?i.a.createElement("div",{key:n,className:"mx_Autocomplete_ProviderSection"},i.a.createElement("div",{className:"mx_Autocomplete_provider_name"},t.provider.getName()),t.provider.renderCompletions(o)):null}).filter(e=>!!e);return!this.state.hide&&t.length>0?i.a.createElement("div",{className:"mx_Autocomplete",ref:this.containerRef},t):null}})||Ks;var $s=n(722);class Qs{constructor(){R()(this,"stack",[]),R()(this,"newlyTypedCharCount",0),R()(this,"currentIndex",-1),R()(this,"changedSinceLastPush",!1),R()(this,"lastCaret",null),R()(this,"nonWordBoundarySinceLastPush",!1),R()(this,"addedSinceLastPush",!1),R()(this,"removedSinceLastPush",!1)}clear(){this.stack=[],this.newlyTypedCharCount=0,this.currentIndex=-1,this.changedSinceLastPush=!1,this.lastCaret=null,this.nonWordBoundarySinceLastPush=!1,this.addedSinceLastPush=!1,this.removedSinceLastPush=!1}shouldPush(e,t){if(t&&("insertText"===e||"deleteContentForward"===e||"deleteContentBackward"===e)){if(t.added&&(this.addedSinceLastPush=!0),t.removed&&(this.removedSinceLastPush=!0),this.addedSinceLastPush!==this.removedSinceLastPush){const e=t.added?t.added:t.removed,n=" "===e||"\t"===e||"\n"===e;return!(!this.nonWordBoundarySinceLastPush||!n)||(n||(this.nonWordBoundarySinceLastPush=!0),this.newlyTypedCharCount+=e.length,this.newlyTypedCharCount>10)}return!0}return!0}pushState(e,t){for(;this.currentIndex<this.stack.length-1;)this.stack.pop();const n=e.serializeParts();this.stack.push({parts:n,caret:t}),this.currentIndex=this.stack.length-1,this.lastCaret=null,this.changedSinceLastPush=!1,this.newlyTypedCharCount=0,this.nonWordBoundarySinceLastPush=!1,this.addedSinceLastPush=!1,this.removedSinceLastPush=!1}tryPush(e,t,n,o){if("historyUndo"===n||"historyRedo"===n)return!1;const r=this.shouldPush(n,o);return r?this.pushState(e,t):(this.lastCaret=t,this.changedSinceLastPush=!0),r}ensureLastChangesPushed(e){this.changedSinceLastPush&&this.pushState(e,this.lastCaret)}canUndo(){return this.currentIndex>=1||this.changedSinceLastPush}canRedo(){return this.currentIndex<this.stack.length-1}undo(e){if(this.canUndo())return this.ensureLastChangesPushed(e),this.currentIndex-=1,this.stack[this.currentIndex]}redo(){if(this.canRedo())return this.changedSinceLastPush=!1,this.currentIndex+=1,this.stack[this.currentIndex]}}function Js(e,t){const n=!t||"newline"===t.type;return!e.canEdit&&(n||!t.canEdit)}function Xs(e,t){return!e.canEdit&&t}function Zs(e,t){const n=e.nextSibling;n?e.parentElement.insertBefore(t,n):e.parentElement.appendChild(t)}function ec(){const e=document.createElement("span");return e.className="caretNode",e.appendChild(document.createTextNode("\ufeff")),e}function tc(e){"\ufeff"!==e.textContent&&(e.textContent="\ufeff")}function nc(e){return e&&"SPAN"===e.tagName&&"caretNode"===e.className}function oc(e){if(e)for(e=e.nextSibling;e;){const t=e;e=e.nextSibling,t.remove()}}function rc(e,t){const n=t.parts.reduce((e,t)=>{if("newline"===t.type)e.push([]);else{e[e.length-1].push(t)}return e},[[]]);n.forEach((t,n)=>{let o=e.childNodes[n];for(;o&&("DIV"!==o.tagName||o.className);)e.removeChild(o),o=e.childNodes[n];o||(o=document.createElement("div"),e.appendChild(o)),t.length?function(e,t){let n,o;const r=t[t.length-1];for(const i of t){for(n=!o?e.firstChild:n.nextSibling,Js(i,o)&&(nc(n)?(tc(n),n=n.nextSibling):e.insertBefore(ec(),n));n&&!i.canUpdateDOMNode(n);){const t=n.nextSibling;e.removeChild(n),n=t}if(n&&i?i.updateDOMNode(n):i&&(n=i.toDOMNode(),e.appendChild(n)),Xs(i,i===r))if(nc(n.nextSibling))n=n.nextSibling,tc(n);else{const e=ec();Zs(n,e),n=e}o=i}oc(n)}(o,t):function(e){let t=!1,n=e.firstChild;for(;n;){const e=n.nextSibling;t||"BR"!==n.tagName?n.remove():t=!0,n=e}t||e.appendChild(document.createElement("br"))}(o)}),n.length?oc(e.children[n.length-1]):function(e){const t=e.firstChild;t&&(oc(t),t.remove())}(e)}const ic=(e,t,n)=>""===n.text[t].trim();class ac{constructor(e,t,n=t){this.model=e,R()(this,"_start",void 0),R()(this,"_end",void 0);const o=t.compare(n)<0;this._start=o?t:n,this._end=o?n:t}moveStart(e){this._start=this._start.forwardsWhile(this.model,()=>(e-=1)>=0)}trim(){this._start=this._start.forwardsWhile(this.model,ic),this._end=this._end.backwardsWhile(this.model,ic)}expandBackwardsWhile(e){this._start=this._start.backwardsWhile(this.model,e)}get text(){let e="";return this._start.iteratePartsBetween(this._end,this.model,(t,n,o)=>{const r=t.text.substring(n,o);e+=r}),e}replace(e){const t=e.reduce((e,t)=>e+t.text.length,0);let n=0;return this._start.iteratePartsBetween(this._end,this.model,(e,t,o)=>{n+=o-t}),this.model.replaceRange(this._start,this._end,e),t-n}get parts(){const e=[];return this._start.iteratePartsBetween(this._end,this.model,(t,n,o)=>{const r=t.serialize();r.text=t.text.substring(n,o);const i=this.model.partCreator.deserializePart(r);e.push(i)}),e}get length(){let e=0;return this._start.iteratePartsBetween(this._end,this.model,(t,n,o)=>{e+=o-n}),e}get start(){return this._start}get end(){return this._end}}function sc(e,t,n){n instanceof ac?function(e,t,n){const o=document.getSelection();o.removeAllRanges();const r=document.createRange(),i=cc(e,t,n.start);r.setStart(i.node,i.offset);const a=cc(e,t,n.end);r.setEnd(a.node,a.offset),o.addRange(r)}(e,t,n):function(e,t,n){const o=document.createRange(),{node:r,offset:i}=cc(e,t,n);o.setStart(r,i),o.collapse(!0);const a=document.getSelection();if(1===a.rangeCount){const e=a.getRangeAt(0);if(e.startContainer===o.startContainer&&e.startOffset===o.startOffset&&e.collapsed===o.collapsed)return}a.removeAllRanges(),a.addRange(o)}(e,t,n)}function cc(e,t,n){const{offset:o,lineIndex:r,nodeIndex:i}=function(e,t){const{parts:n}=e,o=t.index,r=function(e,t){let n=0,o=-1,r=null;for(let i=0;i<=t;++i){const a=e[i];if("newline"===a.type)n+=1,o=-1,r=null;else{if(o+=1,Js(a,r)&&(o+=1),i<t){const t=e[i+1],n=!t||"newline"===t.type;Xs(a,n)&&(o+=1)}r=a}}return{lineIndex:n,nodeIndex:o}}(n,o),{lineIndex:i}=r;let{nodeIndex:a}=r,{offset:s}=t;-1===a?s=0:({nodeIndex:a,offset:s}=function(e,t,n,o){const r=e[t];if(r&&!r.canEdit)if(0===o){n-=1;const i=e[t-1];Js(r,i)||(o=i.text.length)}else n+=1,o=0;return{nodeIndex:n,offset:o}}(n,o,a,s));return{lineIndex:i,nodeIndex:a,offset:s}}(t,n),a=e.childNodes[r];let s;return-1===i?s=a:(s=a.childNodes[i],s.nodeType===Node.ELEMENT_NODE&&s.firstChild&&(s=s.firstChild)),{node:s,offset:o}}function lc(e,t){const{model:n}=e;n.transform(()=>{const o=e.length,r=e.replace(t),i=e.start.asOffset(n),a=i.add(o+r);return n.startRange(i.asPosition(n),a.asPosition(n))})}function dc(e,t){const{model:n}=e;n.transform(()=>{const o=e.length,r=e.replace(t);return e.start.asOffset(n).add(o+r).asPosition(n)})}function uc(e){const{model:t}=e,n=0!==e.start.offset,o=0===e.start.index,r=!o&&"newline"===t.parts[e.start.index-1].type;return!n&&(o||r)}function hc(e){const{model:t}=e,n=t.parts[e.end.index],o=e.end.offset!==n.text.length,r=e.end.index===t.parts.length-1,i=!r&&"newline"===t.parts[e.end.index+1].type;return!o&&(r||i)}const pc=e=>!e.text||!/\S/.test(e.text),mc=e=>"newline"===e.type;function gc(e,t,n=t){const{model:o,parts:r}=e,{partCreator:i}=o,a=[];let s=0;for(let e=2;e<r.length;e++)pc(r[e-2])&&mc(r[e-1])&&!mc(r[e])&&!pc(r[e])&&(s=e),mc(r[e-1])&&mc(r[e])?(a.push([s,e-1]),s=e+1):mc(r[e-2])&&pc(r[e-1])&&mc(r[e])&&(a.push([s,e-2]),s=e+1);const c=r.map(pc).lastIndexOf(!1);s<=c&&a.push([s,c+1]);let l=0;a.forEach(([e,o])=>{const a=e+l,s=o+l;if(s-a>0&&r[a].text.startsWith(t)&&r[s-1].text.endsWith(n)){const e=r[a].serialize();e.text=e.text.substr(t.length),r[a]=i.deserializePart(e);const o=r[s-1].serialize(),c=o.text;o.text=c.substring(0,c.length-n.length),r[s-1]=i.deserializePart(o)}else r.splice(s,0,i.plain(n)),r.splice(a,0,i.plain(t)),l+=2}),lc(e,r)}class fc{constructor(e,t){this.offset=e,this.atNodeEnd=t}asPosition(e){return e.positionForOffset(this.offset,this.atNodeEnd)}add(e,t=!1){return new fc(this.offset+e,t)}}function _c(e,t,n){let o=e.firstChild;for(;o&&o!==e;){if(t(o)&&o.firstChild)o=o.firstChild;else if(o.nextSibling)o=o.nextSibling;else{for(;!o.nextSibling&&o!==e;)o=o.parentElement,o!==e&&n(o);o!==e&&(o=o.nextSibling)}}}function bc(e,t){const{offset:n,text:o}=vc(e,t.focusNode,t.focusOffset);return{caret:n,text:o}}function vc(e,t,n){const{node:o,characterOffset:r}=function(e,t){for(;e&&e.nodeType===Node.ELEMENT_NODE;){const n=e.childNodes.length;if(!n)break;t>=n?t=(e=e.lastChild).nodeType===Node.TEXT_NODE?e.textContent.length:Number.MAX_SAFE_INTEGER:(e=e.childNodes[t],t=0)}return{node:e,characterOffset:t}}(t,n),{text:i,offsetToNode:a}=function(e,t){let n=0,o=!1,r="";function i(e){o||e===t&&(o=!0),"BR"===e.tagName&&e.nextSibling&&(o||(n+=1),r+="\n");const i=e.nodeType===Node.TEXT_NODE&&function(e){const t=e.nodeValue;return nc(e.parentElement)?1!==t.length?t.replace("\ufeff",""):"":t}(e);return i&&(o||(n+=i.length),r+=i),!0}function a(e){"DIV"===e.tagName&&e.nextSibling&&"DIV"===e.nextSibling.tagName&&(r+="\n",o||(n+=1))}return _c(e,i,a),{text:r,offsetToNode:n}}(e,o);return{offset:function(e,t,n){if(!e)return new fc(0,!1);let o=n===e.textContent.length;if(e.nodeType===Node.TEXT_NODE&&nc(e.parentElement)){const t=e.nodeValue.indexOf("\ufeff");-1!==t&&t<n&&(n-=1),o=!0}return new fc(t+n,o)}(o,a,r),text:i}}function yc(e,t,n){const o=vc(e,n.focusNode,n.focusOffset).offset,r=vc(e,n.anchorNode,n.anchorOffset).offset,i=o.asPosition(t),a=r.asPosition(t);return t.startRange(i,a)}class Ec{constructor(e,t,n,o){this.updateCallback=e,this.getAutocompleterComponent=t,this.updateQuery=n,this.partCreator=o,R()(this,"queryPart",void 0),R()(this,"partIndex",void 0)}onEscape(e){this.getAutocompleterComponent().onEscape(e),this.updateCallback({replaceParts:[this.partCreator.plain(this.queryPart.text)],close:!0})}close(){this.updateCallback({close:!0})}hasSelection(){return this.getAutocompleterComponent().hasSelection()}hasCompletions(){const e=this.getAutocompleterComponent();return e&&e.countCompletions()>0}onEnter(){this.updateCallback({close:!0})}async startSelection(){const e=this.getAutocompleterComponent();0===e.countCompletions()&&(await e.forceComplete(),await e.moveSelection(1))}selectPreviousSelection(){this.getAutocompleterComponent().moveSelection(-1)}selectNextSelection(){this.getAutocompleterComponent().moveSelection(1)}onPartUpdate(e,t){return this.queryPart=e,this.partIndex=t.index,this.updateQuery(e.text)}onComponentSelectionChange(e){e?this.updateCallback({replaceParts:this.partForCompletion(e)}):this.updateCallback({replaceParts:[this.queryPart]})}onComponentConfirm(e){this.updateCallback({replaceParts:this.partForCompletion(e),close:!0})}partForCompletion(e){const{completionId:t}=e,n=e.completion;switch(e.type){case"room":return[this.partCreator.roomPill(n,t),this.partCreator.plain(e.suffix)];case"at-room":return[this.partCreator.atRoomPill(t),this.partCreator.plain(e.suffix)];case"user":return this.partCreator.createMentionParts(this.partIndex,n,t);case"command":return[this.partCreator.command(n)];default:return[this.partCreator.plain(n)]}}}var Sc,wc=n(205);!function(e){e.Plain="plain",e.Newline="newline",e.Command="command",e.UserPill="user-pill",e.RoomPill="room-pill",e.AtRoomPill="at-room-pill",e.PillCandidate="pill-candidate"}(Sc||(Sc={}));class Cc{constructor(e=""){R()(this,"_text",void 0),this._text=e}acceptsInsertion(e,t,n){return!0}acceptsRemoval(e,t){return!0}merge(e){return!1}split(e){const t=this.text.substr(e);return this._text=this.text.substr(0,e),new xc(t)}remove(e,t){const n=this.text.substr(0,e)+this.text.substr(e+t);for(let o=e;o<t+e;++o){const e=this.text.charAt(o);if(!this.acceptsRemoval(o,e))return n}this._text=n}appendUntilRejected(e,t){const n=this.text.length;for(let o=0;o<e.length;++o){const r=e.charAt(o);if(!this.acceptsInsertion(r,n+o,t))return this._text=this._text+e.substr(0,o),e.substr(o)}this._text=this._text+e}validateAndInsert(e,t,n){for(let o=0;o<t.length;++o){const r=t.charAt(o);if(!this.acceptsInsertion(r,e+o,n))return!1}const o=this._text.substr(0,e),r=this._text.substr(e);return this._text=o+t+r,!0}createAutoComplete(e){}trim(e){const t=this._text.substr(e);return this._text=this._text.substr(0,e),t}get text(){return this._text}get canEdit(){return!0}toString(){return`${this.type}(${this.text})`}serialize(){return{type:this.type,text:this.text}}}class Tc extends Cc{acceptsInsertion(e,t,n){return"\n"!==e&&("insertFromPaste"===n||"insertFromDrop"===n||("@"!==e&&"#"!==e&&":"!==e&&"+"!==e||0!==t&&(" "!==this._text[t-1]&&("+"!==this._text[t-1]||":"!==e))))}toDOMNode(){return document.createTextNode(this.text)}merge(e){return e.type===this.type&&(this._text=this.text+e.text,!0)}updateDOMNode(e){e.textContent!==this.text&&(e.textContent=this.text)}canUpdateDOMNode(e){return e.nodeType===Node.TEXT_NODE}}class xc extends Tc{get type(){return Sc.Plain}}class Oc extends Cc{constructor(e,t){super(t),this.resourceId=e}acceptsInsertion(e){return" "!==e}acceptsRemoval(e,t){return 0!==e}toDOMNode(){const e=document.createElement("span");return e.setAttribute("spellcheck","false"),e.className=this.className,e.appendChild(document.createTextNode(this.text)),this.setAvatar(e),e}updateDOMNode(e){const t=e.childNodes[0];t.textContent!==this.text&&(t.textContent=this.text),e.className!==this.className&&(e.className=this.className),this.setAvatar(e)}canUpdateDOMNode(e){return e.nodeType===Node.ELEMENT_NODE&&"SPAN"===e.nodeName&&1===e.childNodes.length&&e.childNodes[0].nodeType===Node.TEXT_NODE}_setAvatarVars(e,t,n){const o=`url('${t}')`,r=`'${n}'`;e.style.getPropertyValue("--avatar-background")!==o&&e.style.setProperty("--avatar-background",o),e.style.getPropertyValue("--avatar-letter")!==r&&e.style.setProperty("--avatar-letter",r)}get canEdit(){return!1}}class kc extends Cc{acceptsInsertion(e,t){return 0===t&&"\n"===e}acceptsRemoval(e,t){return!0}toDOMNode(){return document.createElement("br")}merge(){return!1}updateDOMNode(){}canUpdateDOMNode(e){return"BR"===e.tagName}get type(){return Sc.Newline}get canEdit(){return!1}}class Rc extends Oc{constructor(e,t,n){super(e,t),this.room=n}setAvatar(e){let t="",n=wc.b(this.room,16*window.devicePixelRatio,16*window.devicePixelRatio,"crop");n||(t=wc.e(this.room?this.room.name:this.resourceId),n=wc.d(this.room?this.room.roomId:this.resourceId)),this._setAvatarVars(e,n,t)}get type(){return Sc.RoomPill}get className(){return"mx_RoomPill mx_Pill"}}class Dc extends Rc{constructor(e,t){super(e,e,t)}get type(){return Sc.AtRoomPill}}class Ic extends Oc{constructor(e,t,n){super(e,t),this.member=n}setAvatar(e){if(!this.member)return;const t=this.member.name||this.member.userId,n=wc.d(this.member.userId),o=wc.a(this.member,16*window.devicePixelRatio,16*window.devicePixelRatio,"crop");let r="";o===n&&(r=wc.e(t)),this._setAvatarVars(e,o,r)}get type(){return Sc.UserPill}get className(){return"mx_UserPill mx_Pill"}serialize(){return{type:this.type,text:this.text,resourceId:this.resourceId}}}class Ac extends Tc{constructor(e,t){super(e),this.autoCompleteCreator=t}createAutoComplete(e){return this.autoCompleteCreator.create(e)}acceptsInsertion(e,t,n){return 0===t||super.acceptsInsertion(e,t,n)}merge(){return!1}acceptsRemoval(e,t){return!0}get type(){return Sc.PillCandidate}}class Nc{constructor(e,t,n=null){this.room=e,this.client=t,R()(this,"autoCompleteCreator",void 0),this.autoCompleteCreator={create:n&&n(this)}}setAutoCompleteCreator(e){this.autoCompleteCreator.create=e(this)}createPartForInput(e,t,n){switch(e[0]){case"#":case"@":case":":case"+":return this.pillCandidate("");case"\n":return new kc;default:return new xc}}createDefaultPart(e){return this.plain(e)}deserializePart(e){switch(e.type){case Sc.Plain:return this.plain(e.text);case Sc.Newline:return this.newline();case Sc.AtRoomPill:return this.atRoomPill(e.text);case Sc.PillCandidate:return this.pillCandidate(e.text);case Sc.RoomPill:return this.roomPill(e.text);case Sc.UserPill:return this.userPill(e.text,e.resourceId)}}plain(e){return new xc(e)}newline(){return new kc("\n")}pillCandidate(e){return new Ac(e,this.autoCompleteCreator)}roomPill(e,t){let n;return n=t||"#"!==e[0]?this.client.getRoom(t||e):this.client.getRooms().find(t=>t.getCanonicalAlias()===e||t.getAltAliases().includes(e)),new Rc(e,n?n.name:e,n)}atRoomPill(e){return new Dc(e,this.room)}userPill(e,t){const n=this.room.getMember(t);return new Ic(t,e,n)}createMentionParts(e,t,n){return[this.userPill(t,n),this.plain(0===e?": ":" ")]}}class Fc extends Nc{createPartForInput(e,t){return 0===t&&"/"===e[0]?this.command(""):super.createPartForInput(e,t)}command(e){return new Mc(e,this.autoCompleteCreator)}deserializePart(e){return"command"===e.type?this.command(e.text):super.deserializePart(e)}}class Mc extends Ac{get type(){return Sc.Command}}function Pc(e,t){const n=[];return e.split("@room").forEach((e,o,r)=>{e.length&&n.push(t.plain(e));o===r.length-1||n.push(t.atRoomPill("@room"))}),n}function Lc(e,t,n,o){switch(e.nodeName){case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":return function(e,t){const n=parseInt(e.nodeName.substr(1),10);return t.plain("#".repeat(n)+" ")}(e,t);case"A":return function(e,t){const{href:n}=e,o=Object(hs.c)(n);switch(o?o[0]:void 0){case"@":return t.userPill(e.textContent,o);case"#":return t.roomPill(o);default:return n===e.textContent?t.plain(e.textContent):t.plain(`[${e.textContent.replace(/[[\\\]]/g,e=>"\\"+e)}](${n})`)}}(e,t);case"IMG":return function(e,t){const{src:n}=e;return t.plain(`![${e.alt.replace(/[[\\\]]/g,e=>"\\"+e)}](${n})`)}(e,t);case"BR":return t.newline();case"EM":return t.plain(`_${e.textContent}_`);case"STRONG":return t.plain(`**${e.textContent}**`);case"PRE":return function(e,t){const n=[];let o="";if(e.firstChild&&"CODE"===e.firstChild.nodeName)for(const t of e.firstChild.classList)if(t.startsWith("language-")&&!t.startsWith("language-_")){o=t.substr("language-".length);break}const r=("```"+o+"\n"+e.textContent+"```").split("\n");return r.forEach((e,o)=>{n.push(t.plain(e)),o<r.length-1&&n.push(t.newline())}),n}(e,t);case"CODE":return t.plain(`\`${e.textContent}\``);case"DEL":return t.plain(`<del>${e.textContent}</del>`);case"LI":{const n=" ".repeat(o.listDepth-1);if("OL"===e.parentElement.nodeName){const e=o.listIndex[o.listIndex.length-1];return o.listIndex[o.listIndex.length-1]+=1,t.plain(`${n}${e}. `)}return t.plain(n+"- ")}case"P":if(n)return t.newline();break;case"DIV":case"SPAN":if(e.hasAttribute("data-mx-maths")){const n="SPAN"==e.nodeName?((l.a.get().latex_maths_delims||{}).inline||{}).left||"\\(":((l.a.get().latex_maths_delims||{}).display||{}).left||"\\[",o="SPAN"==e.nodeName?((l.a.get().latex_maths_delims||{}).inline||{}).right||"\\)":((l.a.get().latex_maths_delims||{}).display||{}).right||"\\]",r=e.getAttribute("data-mx-maths");return t.plain(n+r+o)}if(!jc(e))return t.plain(e.textContent);break;case"OL":o.listIndex.push(e.start||1);case"UL":o.listDepth=(o.listDepth||0)+1;default:if(!jc(e))return t.plain(e.textContent)}}function jc(e){switch(e.nodeName){case"PRE":return!1;default:return Object(is.c)(e)}}function Uc(e){return e.nodeType===Node.TEXT_NODE?"\n"===e.nodeValue:e.nodeType!==Node.ELEMENT_NODE||"MX-REPLY"===e.nodeName}function Bc(e,t,n){const o=e.split(/\r\n|\r|\n/g);return o.reduce((e,r,i)=>{n&&e.push(t.plain("> ")),e.push(...Pc(r,t));return i===o.length-1||e.push(t.newline()),e},[])}function qc(e,t,{isQuotedMessage:n=!1}={}){const o=e.getContent();let r;return r="org.matrix.custom.html"===o.format?function(e,t,n){const o=(new DOMParser).parseFromString(e,"text/html").body,r=[];let i,a=n;const s={listIndex:[]};return _c(o,(function(e){if(Uc(e))return!1;"BLOCKQUOTE"===e.nodeName&&(a=!0);const n=[];if(i&&(Object(is.c)(i)||Object(is.c)(e))&&n.push(t.newline()),e.nodeType===Node.TEXT_NODE)n.push(...Pc(e.nodeValue,t));else if(e.nodeType===Node.ELEMENT_NODE){const o=Lc(e,t,i,s);o&&(Array.isArray(o)?n.push(...o):n.push(o))}if(n.length&&a){!function(e,t,n){e&&t.splice(0,0,n.plain("> "));for(let e=0;e<t.length;e+=1)"newline"===t[e].type&&(t.splice(e+1,0,n.plain("> ")),e+=1)}(0===r.length,n,t)}r.push(...n);const o=jc(e);return i=o?null:e,o}),(function(e){if(!Uc(e)){switch(e.nodeName){case"BLOCKQUOTE":a=!1;break;case"OL":s.listIndex.pop();case"UL":s.listDepth-=1}i=e}})),r}(o.formatted_body||"",t,n):Bc(o.body||"",t,n),"m.emote"===o.msgtype&&r.unshift(t.plain("/me ")),r}var Gc,Vc,Hc,zc=n(653);let Kc=Object(N.a)("views.rooms.MessageComposerFormatBar")((Hc=Vc=class extends i.a.PureComponent{constructor(e){super(e),this.state={visible:!1}}render(){const e=P()("mx_MessageComposerFormatBar",{mx_MessageComposerFormatBar_shown:this.state.visible});return i.a.createElement("div",{className:e,ref:e=>this._formatBarRef=e},i.a.createElement(Wc,{label:Object(c.a)("Bold"),onClick:()=>this.props.onAction("bold"),icon:"Bold",shortcut:this.props.shortcuts.bold,visible:this.state.visible}),i.a.createElement(Wc,{label:Object(c.a)("Italics"),onClick:()=>this.props.onAction("italics"),icon:"Italic",shortcut:this.props.shortcuts.italics,visible:this.state.visible}),i.a.createElement(Wc,{label:Object(c.a)("Strikethrough"),onClick:()=>this.props.onAction("strikethrough"),icon:"Strikethrough",visible:this.state.visible}),i.a.createElement(Wc,{label:Object(c.a)("Code block"),onClick:()=>this.props.onAction("code"),icon:"Code",visible:this.state.visible}),i.a.createElement(Wc,{label:Object(c.a)("Quote"),onClick:()=>this.props.onAction("quote"),icon:"Quote",shortcut:this.props.shortcuts.quote,visible:this.state.visible}))}showAt(e){this.setState({visible:!0});const t=this._formatBarRef.parentElement.getBoundingClientRect();this._formatBarRef.style.left=e.left-t.left+"px",this._formatBarRef.style.top=e.top-t.top-16-12+"px"}hide(){this.setState({visible:!1})}},R()(Vc,"propTypes",{onAction:He.a.func.isRequired,shortcuts:He.a.object.isRequired}),Gc=Hc))||Gc;class Wc extends i.a.PureComponent{render(){const e="mx_MessageComposerFormatBar_button mx_MessageComposerFormatBar_buttonIcon"+this.props.icon;let t;this.props.shortcut&&(t=i.a.createElement("div",{className:"mx_MessageComposerFormatBar_tooltipShortcut"},this.props.shortcut));const n=i.a.createElement("div",null,i.a.createElement("div",{className:"mx_Tooltip_title"},this.props.label),i.a.createElement("div",{className:"mx_Tooltip_sub"},t));return i.a.createElement(V.a,{element:"button",type:"button",onClick:this.props.onClick,title:this.props.label,tooltip:n,className:e})}}var Yc;R()(Wc,"propTypes",{label:He.a.string.isRequired,onClick:He.a.func.isRequired,icon:He.a.string.isRequired,shortcut:He.a.string,visible:He.a.bool});const $c=new RegExp("(?:^|\\s)("+js.a.source+")\\s$"),Qc=-1!==navigator.platform.indexOf("Mac");function Jc(e){return(Qc?"⌘":"Ctrl")+"+"+e}function Xc(e){return{anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset,isCollapsed:e.isCollapsed,rangeCount:e.rangeCount,type:e.type}}var Zc;!function(e){e.Bold="bold",e.Italics="italics",e.Strikethrough="strikethrough",e.Code="code",e.Quote="quote"}(Zc||(Zc={}));let el=Object(N.a)("views.rooms.BasicMessageEditor")(Yc=class extends i.a.Component{constructor(e){super(e),R()(this,"editorRef",Object(r.createRef)()),R()(this,"autocompleteRef",Object(r.createRef)()),R()(this,"formatBarRef",Object(r.createRef)()),R()(this,"modifiedFlag",!1),R()(this,"isIMEComposing",!1),R()(this,"hasTextSelected",!1),R()(this,"_isCaretAtEnd",void 0),R()(this,"lastCaret",void 0),R()(this,"lastSelection",void 0),R()(this,"emoticonSettingHandle",void 0),R()(this,"shouldShowPillAvatarSettingHandle",void 0),R()(this,"historyManager",new Qs),R()(this,"replaceEmoticon",e=>{const{model:t}=this.props,n=t.startRange(e);let o=8;n.expandBackwardsWhile((e,n)=>{const r=t.parts[e];return o-=1,o>=0&&("plain"===r.type||"pill-candidate"===r.type)});const r=$c.exec(n.text);if(r){const e=r[1].replace("-",""),o=ti.c.get(e)||ti.c.get(e.toLowerCase());if(o){const{partCreator:e}=t,i=" "===r[0][0];return n.moveStart(r.index+(i?1:0)),n.replace([e.plain(o.unicode+" ")])}}}),R()(this,"updateEditorState",(e,t,n)=>{if(rc(this.editorRef.current,this.props.model),e){try{sc(this.editorRef.current,this.props.model,e)}catch(e){console.error(e)}const t=e instanceof ac?e.end:e;this.setLastCaretFromPosition(t)}const{isEmpty:o}=this.props.model;this.props.placeholder&&(o?this.showPlaceholder():this.hidePlaceholder()),o&&this.formatBarRef.current.hide(),this.setState({autoComplete:this.props.model.autoComplete}),this.historyManager.tryPush(this.props.model,e,t,n);let r=!this.props.model.isEmpty;if(r&&"command"===this.props.model.parts[0].type){const{cmd:e}=ks(this.props.model.parts[0].text),t=Os.get(e);t&&t.isEnabled()&&t.category===Ss.messages||(r=!1)}zc.a.sharedInstance().setSelfTyping(this.props.room.roomId,r),this.props.onChange&&this.props.onChange()}),R()(this,"onCompositionStart",()=>{this.isIMEComposing=!0,this.hidePlaceholder()}),R()(this,"onCompositionEnd",()=>{this.isIMEComposing=!1;const e=navigator.userAgent.toLowerCase();e.includes("safari/")&&!e.includes("chrome/")?this.onInput({inputType:"insertCompositionText"}):Promise.resolve().then(()=>{this.onInput({inputType:"insertCompositionText"})})}),R()(this,"onCutCopy",(e,t)=>{const n=document.getSelection(),o=n.toString();if(o){const{model:r}=this.props,i=yc(this.editorRef.current,r,n),a=i.parts.map(e=>e.serialize());e.clipboardData.setData("application/x-element-composer",JSON.stringify(a)),e.clipboardData.setData("text/plain",o),"cut"===t&&(this.modifiedFlag=!0,dc(i,[])),e.preventDefault()}}),R()(this,"onCopy",e=>{this.onCutCopy(e,"copy")}),R()(this,"onCut",e=>{this.onCutCopy(e,"cut")}),R()(this,"onPaste",e=>{if(e.preventDefault(),this.props.onPaste&&this.props.onPaste(e,this.props.model))return!0;const{model:t}=this.props,{partCreator:n}=t,o=e.clipboardData.getData("application/x-element-composer");let r;if(o){r=JSON.parse(o).map(e=>n.deserializePart(e))}else{r=Bc(e.clipboardData.getData("text/plain"),n)}this.modifiedFlag=!0;dc(yc(this.editorRef.current,t,document.getSelection()),r)}),R()(this,"onInput",e=>{if(this.isIMEComposing)return;this.modifiedFlag=!0;const t=document.getSelection(),{caret:n,text:o}=bc(this.editorRef.current,t);this.props.model.update(o,e.inputType,n)}),R()(this,"onBlur",()=>{document.removeEventListener("selectionchange",this.onSelectionChange)}),R()(this,"onFocus",()=>{document.addEventListener("selectionchange",this.onSelectionChange),this.lastSelection=null,this.refreshLastCaretIfNeeded()}),R()(this,"onSelectionChange",()=>{const{isEmpty:e}=this.props.model;this.refreshLastCaretIfNeeded();const t=document.getSelection();if(this.hasTextSelected&&t.isCollapsed)this.hasTextSelected=!1,this.formatBarRef.current&&this.formatBarRef.current.hide();else if(!t.isCollapsed&&!e&&(this.hasTextSelected=!0,this.formatBarRef.current)){const e=t.getRangeAt(0).getBoundingClientRect();this.formatBarRef.current.showAt(e)}}),R()(this,"onKeyDown",e=>{const t=this.props.model;let n=!1;switch(Object(Pt.f)().getMessageComposerAction(e)){case Pt.b.FormatBold:this.onFormatAction(Zc.Bold),n=!0;break;case Pt.b.FormatItalics:this.onFormatAction(Zc.Italics),n=!0;break;case Pt.b.FormatQuote:this.onFormatAction(Zc.Quote),n=!0;break;case Pt.b.EditRedo:if(this.historyManager.canRedo()){const{parts:e,caret:n}=this.historyManager.redo();t.reset(e,n,"historyRedo")}n=!0;break;case Pt.b.EditUndo:if(this.historyManager.canUndo()){const{parts:e,caret:n}=this.historyManager.undo(this.props.model);t.reset(e,n,"historyUndo")}n=!0;break;case Pt.b.NewLine:this.insertText("\n"),n=!0;break;case Pt.b.MoveCursorToStart:sc(this.editorRef.current,t,{index:0,offset:0}),n=!0;break;case Pt.b.MoveCursorToEnd:sc(this.editorRef.current,t,{index:t.parts.length-1,offset:t.parts[t.parts.length-1].text.length}),n=!0}if(n)return e.preventDefault(),void e.stopPropagation();const o=Object(Pt.f)().getAutocompleteAction(e);if(t.autoComplete&&t.autoComplete.hasCompletions()){const r=t.autoComplete;switch(o){case Pt.a.CompleteOrPrevSelection:case Pt.a.PrevSelection:r.selectPreviousSelection(),n=!0;break;case Pt.a.CompleteOrNextSelection:case Pt.a.NextSelection:r.selectNextSelection(),n=!0;break;case Pt.a.Cancel:r.onEscape(e),n=!0;break;default:return}}else o===Pt.a.CompleteOrPrevSelection||o===Pt.a.CompleteOrNextSelection?(this.tabCompleteName(),n=!0):e.key!==bt.a.BACKSPACE&&e.key!==bt.a.DELETE||this.formatBarRef.current.hide();n&&(e.preventDefault(),e.stopPropagation())}),R()(this,"onAutoCompleteConfirm",e=>{this.modifiedFlag=!0,this.props.model.autoComplete.onComponentConfirm(e)}),R()(this,"onAutoCompleteSelectionChange",(e,t)=>{this.modifiedFlag=!0,this.props.model.autoComplete.onComponentSelectionChange(e),this.setState({completionIndex:t})}),R()(this,"configureEmoticonAutoReplace",()=>{const e=G.b.getValue("MessageComposerInput.autoReplaceEmoji");this.props.model.setTransformCallback(e?this.replaceEmoticon:null)}),R()(this,"configureShouldShowPillAvatar",()=>{const e=G.b.getValue("Pill.shouldShowPillAvatar");this.setState({showPillAvatar:e})}),R()(this,"onFormatAction",e=>{const t=yc(this.editorRef.current,this.props.model,document.getSelection());if(t.trim(),0!==t.length)switch(this.historyManager.ensureLastChangesPushed(this.props.model),this.modifiedFlag=!0,e){case Zc.Bold:gc(t,"**");break;case Zc.Italics:gc(t,"_");break;case Zc.Strikethrough:gc(t,"<del>","</del>");break;case Zc.Code:!function(e){const{model:t,parts:n}=e,{partCreator:o}=t;n.some(e=>"newline"===e.type)?(n.unshift(o.plain("```"),o.newline()),uc(e)||n.unshift(o.newline()),n.push(o.newline(),o.plain("```")),hc(e)||n.push(o.newline())):(n.unshift(o.plain("`")),n.push(o.plain("`"))),lc(e,n)}(t);break;case Zc.Quote:!function(e){const{model:t,parts:n}=e,{partCreator:o}=t;for(let e=0;e<n.length;++e){"newline"===n[e].type&&n.splice(e+1,0,o.plain("> "))}n.unshift(o.plain("> ")),uc(e)||n.unshift(o.newline()),hc(e)||n.push(o.newline()),n.push(o.newline()),lc(e,n)}(t)}}),this.state={showPillAvatar:G.b.getValue("Pill.shouldShowPillAvatar")},this.emoticonSettingHandle=G.b.watchSetting("MessageComposerInput.autoReplaceEmoji",null,this.configureEmoticonAutoReplace),this.configureEmoticonAutoReplace(),this.shouldShowPillAvatarSettingHandle=G.b.watchSetting("Pill.shouldShowPillAvatar",null,this.configureShouldShowPillAvatar)}componentDidUpdate(e){const t=this.props.disabled!==e.disabled,n=this.props.placeholder!==e.placeholder;if(this.props.placeholder&&(n||t)){const{isEmpty:e}=this.props.model;e?this.showPlaceholder():this.hidePlaceholder()}}showPlaceholder(){const e=this.props.placeholder.replace(/'/g,"\\'");this.editorRef.current.style.setProperty("--placeholder",`'${e}'`),this.editorRef.current.classList.add("mx_BasicMessageComposer_inputEmpty")}hidePlaceholder(){this.editorRef.current.classList.remove("mx_BasicMessageComposer_inputEmpty"),this.editorRef.current.style.removeProperty("--placeholder")}isComposing(e){return!!(this.isIMEComposing||e.nativeEvent&&e.nativeEvent.isComposing)}insertText(e,t="insertText"){const n=document.getSelection(),{caret:o,text:r}=bc(this.editorRef.current,n),i=r.substr(0,o.offset)+e+r.substr(o.offset);o.offset+=e.length,this.modifiedFlag=!0,this.props.model.update(i,t,o)}setLastCaretFromPosition(e){const{model:t}=this.props;this._isCaretAtEnd=e.isAtEnd(t),this.lastCaret=e.asOffset(t),this.lastSelection=Xc(document.getSelection())}refreshLastCaretIfNeeded(){if(!this.editorRef.current)return;const e=document.getSelection();if(!this.lastSelection||(t=this.lastSelection,n=e,t.anchorNode!==n.anchorNode||t.anchorOffset!==n.anchorOffset||t.focusNode!==n.focusNode||t.focusOffset!==n.focusOffset||t.isCollapsed!==n.isCollapsed||t.rangeCount!==n.rangeCount||t.type!==n.type)){this.lastSelection=Xc(e);const{caret:t,text:n}=bc(this.editorRef.current,e);this.lastCaret=t,this._isCaretAtEnd=t.offset===n.length}var t,n;return this.lastCaret}clearUndoHistory(){this.historyManager.clear()}getCaret(){return this.lastCaret}isSelectionCollapsed(){return!this.lastSelection||this.lastSelection.isCollapsed}isCaretAtStart(){return 0===this.getCaret().offset}isCaretAtEnd(){return this._isCaretAtEnd}async tabCompleteName(){try{await new Promise(e=>this.setState({showVisualBell:!1},e));const{model:e}=this.props,t=this.getCaret(),n=e.positionForOffset(t.offset,t.atNodeEnd),o=e.startRange(n);o.expandBackwardsWhile((e,t,n)=>" "!==n.text[t]&&"+"!==n.text[t]&&("plain"===n.type||"pill-candidate"===n.type||"command"===n.type));const{partCreator:r}=e;await e.transform(()=>{const n=o.replace([r.pillCandidate(o.text)]);return e.positionForOffset(t.offset+n,!0)}),e.autoComplete&&(await e.autoComplete.startSelection(),e.autoComplete.hasSelection()||(this.setState({showVisualBell:!0}),e.autoComplete.close()))}catch(e){console.error(e)}}isModified(){return this.modifiedFlag}componentWillUnmount(){document.removeEventListener("selectionchange",this.onSelectionChange),this.editorRef.current.removeEventListener("input",this.onInput,!0),this.editorRef.current.removeEventListener("compositionstart",this.onCompositionStart,!0),this.editorRef.current.removeEventListener("compositionend",this.onCompositionEnd,!0),G.b.unwatchSetting(this.emoticonSettingHandle),G.b.unwatchSetting(this.shouldShowPillAvatarSettingHandle)}componentDidMount(){const e=this.props.model;e.setUpdateCallback(this.updateEditorState);var t,n;e.partCreator.setAutoCompleteCreator((t=()=>this.autocompleteRef.current,n=e=>new Promise(t=>this.setState({query:e},t)),e=>o=>new Ec(o,t,n,e))),this.updateEditorState(this.getInitialCaretPosition()),this.editorRef.current.addEventListener("input",this.onInput,!0),this.editorRef.current.addEventListener("compositionstart",this.onCompositionStart,!0),this.editorRef.current.addEventListener("compositionend",this.onCompositionEnd,!0),this.editorRef.current.focus()}getInitialCaretPosition(){let e;if(this.props.initialCaret){const t=this.props.initialCaret;e=this.props.model.positionForOffset(t.offset,t.atNodeEnd)}else e=this.props.model.getPositionAtEnd();return e}render(){let e;if(this.state.autoComplete){const t=this.state.query,n=t.length;e=i.a.createElement("div",{className:"mx_BasicMessageComposer_AutoCompleteWrapper"},i.a.createElement(Ys,{ref:this.autocompleteRef,query:t,onConfirm:this.onAutoCompleteConfirm,onSelectionChange:this.onAutoCompleteSelectionChange,selection:{beginning:!0,end:n,start:n},room:this.props.room}))}const t=P()("mx_BasicMessageComposer",{mx_BasicMessageComposer_input_error:this.state.showVisualBell}),n=P()("mx_BasicMessageComposer_input",{mx_BasicMessageComposer_input_shouldShowPillAvatar:this.state.showPillAvatar,mx_BasicMessageComposer_input_disabled:this.props.disabled}),o={bold:Jc("B"),italics:Jc("I"),quote:Jc(">")},{completionIndex:r}=this.state;return i.a.createElement("div",{className:t},e,i.a.createElement(Kc,{ref:this.formatBarRef,onAction:this.onFormatAction,shortcuts:o}),i.a.createElement("div",{className:n,contentEditable:"true",tabIndex:0,onBlur:this.onBlur,onFocus:this.onFocus,onCopy:this.onCopy,onCut:this.onCut,onPaste:this.onPaste,onKeyDown:this.onKeyDown,ref:this.editorRef,"aria-label":this.props.label,role:"textbox","aria-multiline":"true","aria-autocomplete":"both","aria-haspopup":"listbox","aria-expanded":Boolean(this.state.autoComplete),"aria-activedescendant":r>=0?Ws(r):void 0,dir:"auto","aria-disabled":this.props.disabled}))}focus(){this.editorRef.current.focus()}})||Yc;var tl,nl=n(732),ol=n(629),rl=n(342);let il=Object(N.a)("views.voice_messages.Waveform")(tl=class extends i.a.PureComponent{constructor(e){super(e)}render(){return i.a.createElement("div",{className:"mx_Waveform"},this.props.relHeights.map((e,t)=>i.a.createElement("span",{key:t,style:{height:100*e+"%"},className:"mx_Waveform_bar"})))}})||tl;var al;let sl=Object(N.a)("views.voice_messages.LiveRecordingWaveform")(al=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"onRecordingUpdate",e=>{const t=Object(Ce.c)(Array.from(e.waveform),35);this.setState({heights:t.map(e=>Object(rl.c)(e,0,.5))})}),this.state={heights:Object(Ce.g)(0,35)},this.props.recorder.liveData.onUpdate(this.onRecordingUpdate)}render(){return i.a.createElement(il,{relHeights:this.state.heights})}})||al;var cl;let ll=Object(N.a)("views.voice_messages.Clock")(cl=class extends i.a.PureComponent{constructor(e){super(e)}render(){const e=Math.floor(this.props.seconds/60).toFixed(0).padStart(2,"0"),t=Math.round(this.props.seconds%60).toFixed(0).padStart(2,"0");return i.a.createElement("span",{className:"mx_Clock"},e,":",t)}})||cl;var dl;let ul=Object(N.a)("views.voice_messages.LiveRecordingClock")(dl=class extends i.a.Component{constructor(e){super(e),R()(this,"onRecordingUpdate",e=>{this.setState({seconds:e.timeSeconds})}),this.state={seconds:0},this.props.recorder.liveData.onUpdate(this.onRecordingUpdate)}shouldComponentUpdate(e,t,n){return Math.floor(this.state.seconds)!==Math.floor(t.seconds)}render(){return i.a.createElement(ll,{seconds:this.state.seconds})}})||dl;var hl=n(1348),pl=n.p+"opus-encoderWorker.min.b4c5d1b.js",ml=n(3),gl=n(7),fl=n.n(gl),_l=n(337);const bl=new _l.a;class vl{constructor(){}static for(e,t){if(!e||!t)throw new Error("An instance and key must be supplied");return new yl(e,t)}static forgetAllFor(e){bl.delete(e)}static forgetAll(){for(const e of bl.keys())bl.remove(e)}}R()(vl,"Void",Symbol("void"));class yl{constructor(e,t){this.instance=e,this.key=t}forget(){const e=bl.get(this.instance);e&&(e.remove(this.key),e.size||bl.remove(this.instance))}do(e){const t=bl.getOrCreate(this.instance,new _l.a);let n=t.get(this.key);return void 0===n&&(n=e(),t.set(this.key,n)),n}}let El;!function(e){e.Started="started",e.EndingSoon="ending_soon",e.Ended="ended",e.Uploading="uploading",e.Uploaded="uploaded"}(El||(El={}));class Sl extends fl.a{constructor(e){super(),this.client=e,R()(this,"recorder",void 0),R()(this,"recorderContext",void 0),R()(this,"recorderSource",void 0),R()(this,"recorderStream",void 0),R()(this,"recorderFFT",void 0),R()(this,"recorderProcessor",void 0),R()(this,"buffer",new Uint8Array(0)),R()(this,"mxc",void 0),R()(this,"recording",!1),R()(this,"observable",void 0),R()(this,"processAudioUpdate",e=>{if(!this.recording)return;const t=new Float32Array(this.recorderFFT.fftSize);this.recorderFFT.getFloatTimeDomainData(t);const n=[];for(let e=0;e<t.length;e++)n.push(Object(rl.a)(t[e],0,1));this.observable.update({waveform:n,timeSeconds:e.playbackTime});const o=120-e.playbackTime;o<=0?this.stop():o<=10&&vl.for(this,"ending_soon").do(()=>(this.emit(El.EndingSoon,{secondsLeft:o}),vl.Void))})}async makeRecorder(){this.recorderStream=await navigator.mediaDevices.getUserMedia({audio:{channelCount:1,noiseSuppression:!0,deviceId:qt.a.getAudioInput()}}),this.recorderContext=new AudioContext({}),this.recorderSource=this.recorderContext.createMediaStreamSource(this.recorderStream),this.recorderFFT=this.recorderContext.createAnalyser(),this.recorderFFT.fftSize=64,this.recorderProcessor=this.recorderContext.createScriptProcessor(1024,1,1),this.recorderSource.connect(this.recorderFFT),this.recorderSource.connect(this.recorderProcessor),this.recorderProcessor.connect(this.recorderContext.destination),this.recorder=new hl({encoderPath:pl,encoderSampleRate:48e3,encoderApplication:2048,streamPages:!0,encoderFrameSize:20,numberOfChannels:1,sourceNode:this.recorderSource,encoderBitRate:24e3,encoderComplexity:3,resampleQuality:3}),this.recorder.ondataavailable=e=>{const t=new Uint8Array(e),n=new Uint8Array(this.buffer.length+t.length);n.set(this.buffer,0),n.set(t,this.buffer.length),this.buffer=n}}get liveData(){if(!this.recording)throw new Error("No observable when not recording");return this.observable}get isSupported(){return!!hl.isRecordingSupported()}get hasRecording(){return this.buffer.length>0}get mxcUri(){if(!this.mxc)throw new Error("Recording has not been uploaded yet");return this.mxc}async start(){if(this.mxc||this.hasRecording)throw new Error("Recording already prepared");if(this.recording)throw new Error("Recording already in progress");this.observable&&this.observable.close(),this.observable=new ml.SimpleObservable,await this.makeRecorder(),this.recorderProcessor.addEventListener("audioprocess",this.processAudioUpdate),await this.recorder.start(),this.recording=!0,this.emit(El.Started)}async stop(){return vl.for(this,"stop").do(async()=>{if(!this.recording)throw new Error("No recording to stop");return this.recorderSource.disconnect(),await this.recorder.stop(),await this.recorderContext.close(),this.recorderStream.getTracks().forEach(e=>e.stop()),this.recording=!1,this.recorderProcessor.removeEventListener("audioprocess",this.processAudioUpdate),await this.recorder.close(),this.emit(El.Ended),this.buffer})}destroy(){this.stop(),this.removeAllListeners(),vl.forgetAllFor(this)}async upload(){if(!this.hasRecording)throw new Error("No recording available to upload");return this.mxc||(this.emit(El.Uploading),this.mxc=await this.client.uploadContent(new Blob([this.buffer],{type:"audio/ogg"}),{onlyContentUri:!1}).then(e=>e.content_uri),this.emit(El.Uploaded)),this.mxc}}window.mxVoiceRecorder=Sl;class wl extends pt.a{constructor(){super(u.a,{})}get activeRecording(){return this.state.recording}static get instance(){return wl.internalInstance||(wl.internalInstance=new wl),wl.internalInstance}async onAction(e){}startRecording(){if(!this.matrixClient)throw new Error("Cannot start a recording without a MatrixClient");if(this.state.recording)throw new Error("A recording is already in progress");const e=new Sl(this.matrixClient);return this.updateState({recording:e}),e}disposeRecording(){return this.state.recording&&this.state.recording.destroy(),this.updateState({recording:null})}}var Cl;R()(wl,"internalInstance",void 0);let Tl=Object(N.a)("views.rooms.VoiceRecordComposerTile")(Cl=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"onStartStopVoiceMessage",async()=>{if(this.state.recorder){await this.state.recorder.stop();const e=await this.state.recorder.upload();return de.a.get().sendMessage(this.props.room.roomId,{body:"Voice message",msgtype:"org.matrix.msc2516.voice",url:e}),await wl.instance.disposeRecording(),void this.setState({recorder:null})}const e=wl.instance.startRecording();await e.start(),this.setState({recorder:e})}),this.state={recorder:null}}renderWaveformArea(){return this.state.recorder?i.a.createElement("div",{className:"mx_VoiceRecordComposerTile_waveformContainer"},i.a.createElement(ul,{recorder:this.state.recorder}),i.a.createElement(sl,{recorder:this.state.recorder})):null}render(){const e=P()({mx_MessageComposer_button:!this.state.recorder,mx_MessageComposer_voiceMessage:!this.state.recorder,mx_VoiceRecordComposerTile_stop:!!this.state.recorder});let t=Object(c.a)("Record a voice message");return this.state.recorder&&(t=Object(c.a)("Stop & send recording")),i.a.createElement(i.a.Fragment,null,this.renderWaveformArea(),i.a.createElement(V.a,{className:e,onClick:this.onStartStopVoiceMessage,title:t}))}})||Cl;var xl,Ol,kl,Rl=n(486);let Dl=Object(N.a)("views.settings.BridgeTile")((kl=Ol=class extends i.a.PureComponent{render(){var e,t;const n=this.props.ev.getContent();if(null===(e=n.channel)||void 0===e||!e.id||null===(t=n.protocol)||void 0===t||!t.id)return console.warn(`Bridge info event ${this.props.ev.getId()} has missing content. Tile will not render`),null;n.bridgebot||(console.warn(`Bridge info event ${this.props.ev.getId()} does not provide a 'bridgebot' key whichis deprecated behaviour. Using sender for now.`),n.bridgebot=this.props.ev.getSender());const{channel:o,network:r,protocol:a}=n,s=a.displayname||a.id,l=o.displayname||o.id;let d=null;n.creator&&(d=i.a.createElement("li",null,Object(c.a)("This bridge was provisioned by <user />.",{},{user:()=>i.a.createElement(Rl.a,{type:Rl.a.TYPE_USER_MENTION,room:this.props.room,url:Object(hs.h)(n.creator),shouldShowPillAvatar:G.b.getValue("Pill.shouldShowPillAvatar")})})));const u=i.a.createElement("li",null,Object(c.a)("This bridge is managed by <user />.",{},{user:()=>i.a.createElement(Rl.a,{type:Rl.a.TYPE_USER_MENTION,room:this.props.room,url:Object(hs.h)(n.bridgebot),shouldShowPillAvatar:G.b.getValue("Pill.shouldShowPillAvatar")})}));let h;if(a.avatar_url){const e=Object(ge.b)(a.avatar_url).getSquareThumbnailHttp(64);h=i.a.createElement(p.a,{className:"protocol-icon",width:48,height:48,resizeMethod:"crop",name:s,idName:s,url:e})}else h=i.a.createElement("div",{className:"noProtocolIcon"});let m=null;if(r){const e=r.displayname||r.id;let t=i.a.createElement("span",null,e);"string"==typeof r.external_url&&Object(is.d)(r.external_url)&&(t=i.a.createElement("a",{href:r.external_url,target:"_blank",rel:"noreferrer noopener"},e)),m=Object(c.a)("Workspace: <networkLink/>",{},{networkLink:()=>t})}let g=i.a.createElement("span",null,l);"string"==typeof o.external_url&&Object(is.d)(o.external_url)&&(g=i.a.createElement("a",{href:o.external_url,target:"_blank",rel:"noreferrer noopener"},l));const f=this.props.ev.getId();return i.a.createElement("li",{key:f},i.a.createElement("div",{className:"column-icon"},h),i.a.createElement("div",{className:"column-data"},i.a.createElement("h3",null,s),i.a.createElement("p",{className:"workspace-channel-details"},m,i.a.createElement("span",{className:"channel"},Object(c.a)("Channel: <channelLink/>",{},{channelLink:()=>g}))),i.a.createElement("ul",{className:"metadata"},d," ",u)))}},R()(Ol,"propTypes",{ev:He.a.object.isRequired,room:He.a.object.isRequired}),xl=kl))||xl;var Il,Al=n(649),Nl=n(677);const Fl=["uk.half-shot.bridge"];let Ml=Object(N.a)("views.settings.tabs.room.BridgeSettingsTab")(Il=class e extends i.a.Component{renderBridgeCard(e,t){const n=e.getContent();return n&&n.channel&&n.protocol?i.a.createElement(Dl,{key:e.getId(),room:t,ev:e}):null}static getBridgeStateEvents(e){const t=de.a.get().getRoom(e).currentState;return Fl.map(e=>{const n=t.events.get(e);return n?Array.from(n.values()):[]}).flat(1)}render(){const t=e.getBridgeStateEvents(this.props.roomId),n=de.a.get().getRoom(this.props.roomId);let o;return o=t.length>0?i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("This room is bridging messages to the following platforms. <a>Learn more.</a>",{},{a:e=>i.a.createElement("a",{href:"https://matrix.org/bridges/",target:"_blank",rel:"noreferrer noopener"},e)})),i.a.createElement("ul",{className:"mx_RoomSettingsDialog_BridgeList"},t.map(e=>this.renderBridgeCard(e,n)))):i.a.createElement("p",null,Object(c.a)("This room isn’t bridging messages to any platforms. <a>Learn more.</a>",{},{a:e=>i.a.createElement("a",{href:"https://matrix.org/bridges/",target:"_blank",rel:"noreferrer noopener"},e)})),i.a.createElement("div",{className:"mx_SettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Bridges")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},o))}})||Il;var Pl,Ll=n(666),jl=n(446),Ul=n(733),Bl=n(639);function ql(e,t){const n=de.a.get().getRoom(t),o=n&&n.getMember(e);return o?o.name:e}function Gl(e,t){const n=ql(e,t);return n!==e?Object(c.a)("%(name)s (%(userId)s)",{name:n,userId:e}):e}let Vl=Object(N.a)("views.toasts.VerificationRequestToast")(Pl=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"intervalHandle",void 0),R()(this,"_checkRequestIsPending",()=>{const{request:e}=this.props;e.canAccept||on.a.sharedInstance().dismissToast(this.props.toastKey)}),R()(this,"cancel",()=>{on.a.sharedInstance().dismissToast(this.props.toastKey);try{this.props.request.cancel()}catch(e){console.error("Error while cancelling verification request",e)}}),R()(this,"accept",async()=>{on.a.sharedInstance().dismissToast(this.props.toastKey);const{request:e}=this.props,t=de.a.get();try{if(e.channel.roomId)u.a.dispatch({action:"view_room",room_id:e.channel.roomId,should_peek:!1}),u.a.dispatch({action:h.a.SetRightPanelPhase,phase:ot.c.EncryptionPanel,refireParams:{verificationRequest:e,member:t.getUser(e.otherUserId)}});else{const t=d.getComponent("views.dialogs.VerificationRequestDialog");Ge.a.createTrackedDialog("Incoming Verification","",t,{verificationRequest:e,onFinished:()=>{e.cancel()}},null,!1,!0)}await e.accept()}catch(e){console.error(e.message)}}),this.state={counter:Math.ceil(e.request.timeout/1e3)}}async componentDidMount(){const{request:e}=this.props;if(e.timeout&&e.timeout>0&&(this.intervalHandle=setInterval(()=>{let{counter:e}=this.state;e=Math.max(0,e-1),this.setState({counter:e})},1e3)),e.on("change",this._checkRequestIsPending),this._checkRequestIsPending(),e.isSelfVerification){const t=de.a.get(),n=(await t.getDevice(e.channel.deviceId)).last_seen_ip;this.setState({device:t.getStoredDevice(t.getUserId(),e.channel.deviceId),ip:n})}}componentWillUnmount(){clearInterval(this.intervalHandle);const{request:e}=this.props;e.off("change",this._checkRequestIsPending)}render(){const{request:e}=this.props;let t,n;if(e.isSelfVerification)this.state.device&&(t=this.state.device.getDisplayName(),n=Object(c.a)("%(deviceId)s from %(ip)s",{deviceId:this.state.device.deviceId,ip:this.state.ip}));else{const n=e.otherUserId,o=e.channel.roomId;if(t=o?Gl(n,o):n,t===n){const e=de.a.get().getUser(n);e&&e.displayName&&(t=Object(c.a)("%(name)s (%(userId)s)",{name:e.displayName,userId:n}))}}const o=0===this.state.counter?Object(c.a)("Decline"):Object(c.a)("Decline (%(counter)s)",{counter:this.state.counter});return i.a.createElement(nn.a,{description:t,detail:n,acceptLabel:Object(c.a)("Accept"),onAccept:this.accept,rejectLabel:o,onReject:this.cancel})}})||Pl;var Hl,zl,Kl,Wl=n(723),Yl=n(458),$l=n(662),Ql=n(700),Jl=n(734),Xl=n(302),Zl=n(222);var ed,td,nd,od=Object(N.a)("structures.FilePanel")((Kl=zl=class extends i.a.Component{constructor(...e){super(...e),R()(this,"decryptingEvents",new Set),R()(this,"state",{timelineSet:null}),R()(this,"onRoomTimeline",(e,t,n,o,r)=>{var i;(null==t?void 0:t.roomId)===(null===(i=this.props)||void 0===i?void 0:i.roomId)&&!n&&r&&r.liveEvent&&!e.isRedacted()&&(e.isBeingDecrypted()?this.decryptingEvents.add(e.getId()):this.addEncryptedLiveEvent(e))}),R()(this,"onEventDecrypted",(e,t)=>{if(e.getRoomId()!==this.props.roomId)return;const n=e.getId();this.decryptingEvents.delete(n)&&(t||this.addEncryptedLiveEvent(e))}),R()(this,"onPaginationRequest",(e,t,n)=>{const o=de.a.get(),r=Zl.a.get(),i=this.props.roomId,a=o.getRoom(i);return o.isRoomEncrypted(i)&&null!==r?r.paginateTimelineWindow(a,e,t,n):e.paginate(t,n)})}addEncryptedLiveEvent(e,t){if(!this.state.timelineSet)return;const n=this.state.timelineSet.getLiveTimeline();"m.room.message"===e.getType()&&-1!=["m.file","m.image","m.video","m.audio"].indexOf(e.getContent().msgtype)&&(this.state.timelineSet.eventIdToTimeline(e.getId())||this.state.timelineSet.addEventToTimeline(e,n,!1))}async componentDidMount(){const e=de.a.get();await this.updateTimelineSet(this.props.roomId),de.a.get().isRoomEncrypted(this.props.roomId)&&null!==Zl.a.get()&&(e.on("Room.timeline",this.onRoomTimeline),e.on("Event.decrypted",this.onEventDecrypted))}componentWillUnmount(){const e=de.a.get();null!==e&&de.a.get().isRoomEncrypted(this.props.roomId)&&null!==Zl.a.get()&&(e.removeListener("Room.timeline",this.onRoomTimeline),e.removeListener("Event.decrypted",this.onEventDecrypted))}async fetchFileEventsServer(e){const t=de.a.get(),n=new Xl.a(t.credentials.userId);n.setDefinition({room:{timeline:{contains_url:!0,types:["m.room.message"]}}});const o=await t.getOrCreateFilter("FILTER_FILES_"+t.credentials.userId,n);n.filterId=o;return e.getOrCreateFilteredTimelineSet(n)}async updateTimelineSet(e){const t=de.a.get(),n=t.getRoom(e),o=Zl.a.get();if(this.noRoom=!n,n){let r;try{if(r=await this.fetchFileEventsServer(n),t.isRoomEncrypted(e)&&null!==o){const e=r.getLiveTimeline();await o.populateFileTimeline(r,e,n,10)}this.setState({timelineSet:r})}catch(e){console.error("Failed to get or create file panel filter",e)}}else console.error("Failed to add filtered timelineSet for FilePanel as no room!")}render(){if(de.a.get().isGuest())return i.a.createElement(Gi.b,{className:"mx_FilePanel mx_RoomView_messageListWrapper",onClose:this.props.onClose,previousPhase:ot.c.RoomSummary},i.a.createElement("div",{className:"mx_RoomView_empty"},Object(c.a)("You must <a>register</a> to use this functionality",{},{a:e=>i.a.createElement("a",{href:"#/register",key:"sub"},e)})));if(this.noRoom)return i.a.createElement(Gi.b,{className:"mx_FilePanel mx_RoomView_messageListWrapper",onClose:this.props.onClose,previousPhase:ot.c.RoomSummary},i.a.createElement("div",{className:"mx_RoomView_empty"},Object(c.a)("You must join the room to see its files")));const e=d.getComponent("structures.TimelinePanel"),t=d.getComponent("elements.Spinner"),n=i.a.createElement("div",{className:"mx_RightPanel_empty mx_FilePanel_empty"},i.a.createElement("h2",null,Object(c.a)("No files visible in this room")),i.a.createElement("p",null,Object(c.a)("Attach files from chat or just drag and drop them anywhere in a room."))),o=!this.noRoom&&de.a.get().isRoomEncrypted(this.props.roomId);return this.state.timelineSet?i.a.createElement(Gi.b,{className:"mx_FilePanel",onClose:this.props.onClose,previousPhase:ot.c.RoomSummary,withoutScrollContainer:!0},i.a.createElement(xr.b,{isRoomEncrypted:o,kind:xr.a.Files}),i.a.createElement(e,{manageReadReceipts:!1,manageReadMarkers:!1,timelineSet:this.state.timelineSet,showUrlPreview:!1,onPaginationRequest:this.onPaginationRequest,tileShape:"file_grid",resizeNotifier:this.props.resizeNotifier,empty:n})):i.a.createElement(Gi.b,{className:"mx_FilePanel",onClose:this.props.onClose,previousPhase:ot.c.RoomSummary},i.a.createElement(t,null))}},R()(zl,"propTypes",{roomId:He.a.string.isRequired,onClose:He.a.func.isRequired}),Hl=Kl))||Hl;let rd=Object(N.a)("structures.GenericErrorPage")((nd=td=class extends i.a.PureComponent{render(){return i.a.createElement("div",{className:"mx_GenericErrorPage"},i.a.createElement("div",{className:"mx_GenericErrorPage_box"},i.a.createElement("h1",null,this.props.title),i.a.createElement("p",null,this.props.message)))}},R()(td,"propTypes",{title:He.a.object.isRequired,message:He.a.object.isRequired}),ed=nd))||ed;var id,ad,sd,cd=n(645),ld=n(353),dd=n(354),ud=n(355),hd=n(245),pd=n(260);const md=Object(c.b)('<h1>HTML for your community\'s page</h1>\n<p>\n Use the long description to introduce new members to the community, or distribute\n some important <a href="foo">links</a>\n</p>\n<p>\n You can even add images with Matrix URLs <img src="mxc://url" />\n</p>\n'),gd=He.a.shape({room_id:He.a.string.isRequired,profile:He.a.shape({name:He.a.string,avatar_url:He.a.string,canonical_alias:He.a.string}).isRequired}),fd=He.a.shape({summaryInfo:He.a.shape({user_id:He.a.string.isRequired,role_id:He.a.string,avatar_url:He.a.string,displayname:He.a.string}).isRequired});class _d extends i.a.Component{constructor(...e){super(...e),R()(this,"onAddRoomsToSummaryClicked",e=>{e.preventDefault();const t=d.getComponent("dialogs.AddressPickerDialog");Ge.a.createTrackedDialog("Add Rooms to Group Summary","",t,{title:Object(c.a)("Add rooms to the community summary"),description:Object(c.a)("Which rooms would you like to add to this summary?"),placeholder:Object(c.a)("Room name or address"),button:Object(c.a)("Add to summary"),pickerType:"room",validAddressTypes:["mx-room-id"],groupId:this.props.groupId,onFinished:(e,t)=>{if(!e)return;const n=[];Object(Vs.a)(t.map(e=>ba.a.addRoomToGroupSummary(this.props.groupId,e.address).catch(()=>{n.push(e.address)}))).then(()=>{if(0===n.length)return;const e=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Failed to add the following room to the group summary","",e,{title:Object(c.a)("Failed to add the following rooms to the summary of %(groupId)s:",{groupId:this.props.groupId}),description:n.join(", ")})})}},null,!1,!0)})}render(){const e=d.getComponent("elements.TintableSvg"),t=this.props.editing?i.a.createElement(g.a,{className:"mx_GroupView_featuredThings_addButton",onClick:this.onAddRoomsToSummaryClicked},i.a.createElement(e,{src:n(735),width:"64",height:"64"}),i.a.createElement("div",{className:"mx_GroupView_featuredThings_addButton_label"},Object(c.a)("Add a Room"))):i.a.createElement("div",null),o=this.props.rooms.map(e=>i.a.createElement(bd,{key:e.room_id,groupId:this.props.groupId,editing:this.props.editing,summaryInfo:e}));let r=i.a.createElement("div",null);return this.props.category&&this.props.category.profile&&(r=i.a.createElement("div",{className:"mx_GroupView_featuredThings_category"},this.props.category.profile.name)),i.a.createElement("div",{className:"mx_GroupView_featuredThings_container"},r,o,t)}}R()(_d,"propTypes",{rooms:He.a.arrayOf(gd).isRequired,category:He.a.shape({profile:He.a.shape({name:He.a.string}).isRequired}),groupId:He.a.string.isRequired,editing:He.a.bool.isRequired});class bd extends i.a.Component{constructor(...e){super(...e),R()(this,"onClick",e=>{e.preventDefault(),e.stopPropagation(),u.a.dispatch({action:"view_room",room_alias:this.props.summaryInfo.profile.canonical_alias,room_id:this.props.summaryInfo.room_id})}),R()(this,"onDeleteClicked",e=>{e.preventDefault(),e.stopPropagation(),ba.a.removeRoomFromGroupSummary(this.props.groupId,this.props.summaryInfo.room_id).catch(e=>{console.error("Error whilst removing room from group summary",e);const t=this.props.summaryInfo.name||this.props.summaryInfo.canonical_alias||this.props.summaryInfo.room_id,n=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Failed to remove room from group summary","",n,{title:Object(c.a)("Failed to remove the room from the summary of %(groupId)s",{groupId:this.props.groupId}),description:Object(c.a)("The room '%(roomName)s' could not be removed from the summary.",{roomName:t})})})})}render(){const e=d.getComponent("avatars.RoomAvatar"),t=this.props.summaryInfo.profile.name||this.props.summaryInfo.profile.canonical_alias||Object(c.a)("Unnamed Room"),o={roomId:this.props.summaryInfo.room_id,avatarUrl:this.props.summaryInfo.profile.avatar_url,name:t};let r=null;this.props.summaryInfo.profile&&this.props.summaryInfo.profile.canonical_alias&&(r=Object(hs.f)(this.props.summaryInfo.profile.canonical_alias));let a=null;a=r?i.a.createElement("a",{href:r,onClick:this.onClick},t):i.a.createElement("span",null,t);const s=this.props.editing?i.a.createElement("img",{className:"mx_GroupView_featuredThing_deleteButton",src:n(736),width:"14",height:"14",alt:"Delete",onClick:this.onDeleteClicked}):i.a.createElement("div",null);return i.a.createElement(g.a,{className:"mx_GroupView_featuredThing",onClick:this.onClick},i.a.createElement(e,{oobData:o,width:64,height:64}),i.a.createElement("div",{className:"mx_GroupView_featuredThing_name"},a),s)}}R()(bd,"propTypes",{summaryInfo:gd.isRequired,editing:He.a.bool.isRequired,groupId:He.a.string.isRequired});class vd extends i.a.Component{constructor(...e){super(...e),R()(this,"onAddUsersClicked",e=>{e.preventDefault();const t=d.getComponent("dialogs.AddressPickerDialog");Ge.a.createTrackedDialog("Add Users to Group Summary","",t,{title:Object(c.a)("Add users to the community summary"),description:Object(c.a)("Who would you like to add to this summary?"),placeholder:Object(c.a)("Name or Matrix ID"),button:Object(c.a)("Add to summary"),validAddressTypes:["mx-user-id"],groupId:this.props.groupId,shouldOmitSelf:!1,onFinished:(e,t)=>{if(!e)return;const n=[];Object(Vs.a)(t.map(e=>ba.a.addUserToGroupSummary(e.address).catch(()=>{n.push(e.address)}))).then(()=>{if(0===n.length)return;const e=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Failed to add the following users to the community summary","",e,{title:Object(c.a)("Failed to add the following users to the summary of %(groupId)s:",{groupId:this.props.groupId}),description:n.join(", ")})})}},null,!1,!0)})}render(){const e=d.getComponent("elements.TintableSvg"),t=this.props.editing?i.a.createElement(g.a,{className:"mx_GroupView_featuredThings_addButton",onClick:this.onAddUsersClicked},i.a.createElement(e,{src:n(735),width:"64",height:"64"}),i.a.createElement("div",{className:"mx_GroupView_featuredThings_addButton_label"},Object(c.a)("Add a User"))):i.a.createElement("div",null),o=this.props.users.map(e=>i.a.createElement(yd,{key:e.user_id,summaryInfo:e,editing:this.props.editing,groupId:this.props.groupId}));let r=i.a.createElement("div",null);return this.props.role&&this.props.role.profile&&(r=i.a.createElement("div",{className:"mx_GroupView_featuredThings_category"},this.props.role.profile.name)),i.a.createElement("div",{className:"mx_GroupView_featuredThings_container"},r,o,t)}}R()(vd,"propTypes",{users:He.a.arrayOf(fd).isRequired,role:He.a.shape({profile:He.a.shape({name:He.a.string}).isRequired}),groupId:He.a.string.isRequired,editing:He.a.bool.isRequired});class yd extends i.a.Component{constructor(...e){super(...e),R()(this,"onClick",e=>{e.preventDefault(),e.stopPropagation(),u.a.dispatch({action:"view_start_chat_or_reuse",user_id:this.props.summaryInfo.user_id})}),R()(this,"onDeleteClicked",e=>{e.preventDefault(),e.stopPropagation(),ba.a.removeUserFromGroupSummary(this.props.groupId,this.props.summaryInfo.user_id).catch(e=>{console.error("Error whilst removing user from group summary",e);const t=this.props.summaryInfo.displayname||this.props.summaryInfo.user_id,n=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Failed to remove user from community summary","",n,{title:Object(c.a)("Failed to remove a user from the summary of %(groupId)s",{groupId:this.props.groupId}),description:Object(c.a)("The user '%(displayName)s' could not be removed from the summary.",{displayName:t})})})})}render(){const e=d.getComponent("avatars.BaseAvatar"),t=this.props.summaryInfo.displayname||this.props.summaryInfo.user_id,o=Object(hs.h)(this.props.summaryInfo.user_id),r=i.a.createElement("a",{href:o,onClick:this.onClick},t),a=Object(ge.b)(this.props.summaryInfo.avatar_url).getSquareThumbnailHttp(64),s=this.props.editing?i.a.createElement("img",{className:"mx_GroupView_featuredThing_deleteButton",src:n(736),width:"14",height:"14",alt:"Delete",onClick:this.onDeleteClicked}):i.a.createElement("div",null);return i.a.createElement(g.a,{className:"mx_GroupView_featuredThing",onClick:this.onClick},i.a.createElement(e,{name:t,url:a,width:64,height:64}),i.a.createElement("div",{className:"mx_GroupView_featuredThing_name"},r),s)}}R()(yd,"propTypes",{summaryInfo:fd.isRequired,editing:He.a.bool.isRequired,groupId:He.a.string.isRequired});let Ed=Object(N.a)("structures.GroupView")((sd=ad=class extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{summary:null,isGroupPublicised:null,isUserPrivileged:null,groupRooms:null,groupRoomsLoading:null,error:null,editing:!1,saving:!1,uploadingAvatar:!1,avatarChanged:!1,membershipBusy:!1,publicityBusy:!1,inviterProfile:null,showRightPanel:pd.a.getSharedInstance().isOpenForGroup}),R()(this,"_onRightPanelStoreUpdate",()=>{this.setState({showRightPanel:pd.a.getSharedInstance().isOpenForGroup})}),R()(this,"_onGroupMyMembership",e=>{this._unmounted||e.groupId!==this.props.groupId||("leave"===e.myMembership&&this._closeSettings(),this.setState({membershipBusy:!1}))}),R()(this,"onGroupStoreUpdated",e=>{if(this._unmounted)return;const t=ba.a.getSummary(this.props.groupId);t.profile&&["avatar_url","long_description","name","short_description"].forEach(e=>{t.profile[e]=t.profile[e]||""}),this.setState({summary:t,summaryLoading:!ba.a.isStateReady(this.props.groupId,ba.a.STATE_KEY.Summary),isGroupPublicised:ba.a.getGroupPublicity(this.props.groupId),isUserPrivileged:ba.a.isUserPrivileged(this.props.groupId),groupRooms:ba.a.getGroupRooms(this.props.groupId),groupRoomsLoading:!ba.a.isStateReady(this.props.groupId,ba.a.STATE_KEY.GroupRooms),isUserMember:ba.a.getGroupMembers(this.props.groupId).some(e=>e.userId===this._matrixClient.credentials.userId)}),this.props.groupIsNew&&e&&this._onEditClick()}),R()(this,"_onEditClick",()=>{this.setState({editing:!0,profileForm:Object.assign({},this.state.summary.profile),joinableForm:{policyType:this.state.summary.profile.is_openly_joinable?"open":"invite"}})}),R()(this,"_onShareClick",()=>{const e=d.getComponent("dialogs.ShareDialog");Ge.a.createTrackedDialog("share community dialog","",e,{target:this._matrixClient.getGroup(this.props.groupId)||new hd.a(this.props.groupId)})}),R()(this,"_onCancelClick",()=>{this._closeSettings()}),R()(this,"_onAction",e=>{switch(e.action){case"close_settings":this.setState({editing:!1,profileForm:null})}}),R()(this,"_closeSettings",()=>{u.a.dispatch({action:"close_settings"})}),R()(this,"_onNameChange",e=>{const t=Object.assign(this.state.profileForm,{name:e});this.setState({profileForm:t})}),R()(this,"_onShortDescChange",e=>{const t=Object.assign(this.state.profileForm,{short_description:e});this.setState({profileForm:t})}),R()(this,"_onLongDescChange",e=>{const t=Object.assign(this.state.profileForm,{long_description:e.target.value});this.setState({profileForm:t})}),R()(this,"_onAvatarSelected",e=>{const t=e.target.files[0];t&&(this.setState({uploadingAvatar:!0}),this._matrixClient.uploadContent(t).then(e=>{const t=Object.assign(this.state.profileForm,{avatar_url:e});this.setState({uploadingAvatar:!1,profileForm:t,avatarChanged:!0})}).catch(e=>{this.setState({uploadingAvatar:!1});const t=d.getComponent("dialogs.ErrorDialog");console.error("Failed to upload avatar image",e),Ge.a.createTrackedDialog("Failed to upload image","",t,{title:Object(c.a)("Error"),description:Object(c.a)("Failed to upload image")})}))}),R()(this,"_onJoinableChange",e=>{this.setState({joinableForm:{policyType:e.target.value}})}),R()(this,"_onSaveClick",()=>{this.setState({saving:!0});(this.state.isUserPrivileged?this._saveGroup():Promise.resolve()).then(e=>{this.setState({saving:!1,editing:!1,summary:null}),this._initGroupStore(this.props.groupId),this.state.avatarChanged&&at.a.refreshGroupProfile(this._matrixClient,this.props.groupId)}).catch(e=>{this.setState({saving:!1});const t=d.getComponent("dialogs.ErrorDialog");console.error("Failed to save community profile",e),Ge.a.createTrackedDialog("Failed to update group","",t,{title:Object(c.a)("Error"),description:Object(c.a)("Failed to update community")})}).finally(()=>{this.setState({avatarChanged:!1})})}),R()(this,"_onAcceptInviteClick",async()=>{this.setState({membershipBusy:!0}),await Object(Vs.d)(500),ba.a.acceptGroupInvite(this.props.groupId).then(()=>{}).catch(e=>{this.setState({membershipBusy:!1});const t=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Error accepting invite","",t,{title:Object(c.a)("Error"),description:Object(c.a)("Unable to accept invite")})})}),R()(this,"_onRejectInviteClick",async()=>{this.setState({membershipBusy:!0}),await Object(Vs.d)(500),ba.a.leaveGroup(this.props.groupId).then(()=>{}).catch(e=>{this.setState({membershipBusy:!1});const t=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Error rejecting invite","",t,{title:Object(c.a)("Error"),description:Object(c.a)("Unable to reject invite")})})}),R()(this,"_onJoinClick",async()=>{this._matrixClient.isGuest()?u.a.dispatch({action:"require_registration",screen_after:{screen:"group/"+this.props.groupId}}):(this.setState({membershipBusy:!0}),await Object(Vs.d)(500),ba.a.joinGroup(this.props.groupId).then(()=>{}).catch(e=>{this.setState({membershipBusy:!1});const t=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Error joining room","",t,{title:Object(c.a)("Error"),description:Object(c.a)("Unable to join community")})}))}),R()(this,"_onLeaveClick",()=>{const e=d.getComponent("dialogs.QuestionDialog"),t=this._leaveGroupWarnings();Ge.a.createTrackedDialog("Leave Group","",e,{title:Object(c.a)("Leave Community"),description:i.a.createElement("span",null,Object(c.a)("Leave %(groupName)s?",{groupName:this.props.groupId}),t),button:Object(c.a)("Leave"),danger:this.state.isUserPrivileged,onFinished:async e=>{e&&(this.setState({membershipBusy:!0}),await Object(Vs.d)(500),ba.a.leaveGroup(this.props.groupId).then(()=>{}).catch(e=>{this.setState({membershipBusy:!1});const t=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Error leaving community","",t,{title:Object(c.a)("Error"),description:Object(c.a)("Unable to leave community")})}))}})}),R()(this,"_onAddRoomsClick",()=>{Object(ud.a)(this.props.groupId)})}componentDidMount(){this._unmounted=!1,this._matrixClient=de.a.get(),this._matrixClient.on("Group.myMembership",this._onGroupMyMembership),this._initGroupStore(this.props.groupId,!0),this._dispatcherRef=u.a.register(this._onAction),this._rightPanelStoreToken=pd.a.getSharedInstance().addListener(this._onRightPanelStoreUpdate)}componentWillUnmount(){this._unmounted=!0,this._matrixClient.removeListener("Group.myMembership",this._onGroupMyMembership),u.a.unregister(this._dispatcherRef),this._rightPanelStoreToken&&this._rightPanelStoreToken.remove()}UNSAFE_componentWillReceiveProps(e){this.props.groupId!==e.groupId&&this.setState({summary:null,error:null},()=>{this._initGroupStore(e.groupId)})}_initGroupStore(e,t){const n=this._matrixClient.getGroup(e);n&&n.inviter&&n.inviter.userId&&this._fetchInviterProfile(n.inviter.userId),ba.a.registerListener(e,this.onGroupStoreUpdated.bind(this,t));let o=!1;ba.a.on("error",(t,n,r)=>{this._unmounted||e!==n||("M_GUEST_ACCESS_FORBIDDEN"!==t.errcode||o||(u.a.dispatch({action:"do_after_sync_prepared",deferred_action:{action:"view_group",group_id:e}}),u.a.dispatch({action:"require_registration",screen_after:{screen:"group/"+e}}),o=!0),r===ba.a.STATE_KEY.Summary&&this.setState({summary:null,error:t,editing:!1}))})}_fetchInviterProfile(e){this.setState({inviterProfileBusy:!0}),this._matrixClient.getProfileInfo(e).then(e=>{this._unmounted||this.setState({inviterProfile:{avatarUrl:e.avatar_url,displayName:e.displayname}})}).catch(e=>{console.error("Error getting group inviter profile",e)}).finally(()=>{this._unmounted||this.setState({inviterProfileBusy:!1})})}async _saveGroup(){await this._matrixClient.setGroupProfile(this.props.groupId,this.state.profileForm),await this._matrixClient.setGroupJoinPolicy(this.props.groupId,{type:this.state.joinableForm.policyType})}_leaveGroupWarnings(){const e=[];return this.state.isUserPrivileged&&e.push(i.a.createElement("span",{className:"warning"}," ",Object(c.a)("You are an administrator of this community. You will not be able to rejoin without an invite from another administrator."))),e}_getGroupSection(){const e=P()({mx_GroupView_group:this.state.editing,mx_GroupView_group_disabled:this.state.editing&&!this.state.isUserPrivileged}),t=this.state.editing?i.a.createElement("h2",null," ",Object(c.a)("Community Settings")," "):i.a.createElement("div",null),o=Object(cd.a)("community-settings");let r=null;o&&this.state.isUserPrivileged&&(r=i.a.createElement("div",{className:"mx_GroupView_hostingSignup"},Object(c.a)("Want more than a community? <a>Get your own server</a>",{},{a:e=>i.a.createElement("a",{href:o,target:"_blank",rel:"noreferrer noopener"},e)}),i.a.createElement("a",{href:o,target:"_blank",rel:"noreferrer noopener"},i.a.createElement("img",{src:n(647),width:"11",height:"10",alt:""}))));const a=this.state.editing&&this.state.isUserPrivileged?i.a.createElement("div",{className:"mx_GroupView_changeDelayWarning"},Object(c.a)("Changes made to your community <bold1>name</bold1> and <bold2>avatar</bold2> might not be seen by other users for up to 30 minutes.",{},{bold1:e=>i.a.createElement("b",null," ",e," "),bold2:e=>i.a.createElement("b",null," ",e," ")})):i.a.createElement("div",null);return i.a.createElement("div",{className:e},t,r,a,this._getJoinableNode(),this._getLongDescriptionNode(),this._getRoomsNode())}_getRoomsNode(){const e=d.getComponent("rooms.RoomDetailList"),t=d.getComponent("elements.AccessibleButton"),o=d.getComponent("elements.TintableSvg"),r=d.getComponent("elements.Spinner"),a=d.getComponent("elements.TooltipButton"),s=this.state.editing?i.a.createElement(a,{helpText:Object(c.a)("These rooms are displayed to community members on the community page. Community members can join the rooms by clicking on them.")}):i.a.createElement("div",null),l=this.state.editing?i.a.createElement(t,{className:"mx_GroupView_rooms_header_addRow",onClick:this._onAddRoomsClick},i.a.createElement("div",{className:"mx_GroupView_rooms_header_addRow_button"},i.a.createElement(o,{src:n(1349),width:"24",height:"24"})),i.a.createElement("div",{className:"mx_GroupView_rooms_header_addRow_label"},Object(c.a)("Add rooms to this community"))):i.a.createElement("div",null);return i.a.createElement("div",{className:"mx_GroupView_rooms"},i.a.createElement("div",{className:"mx_GroupView_rooms_header"},i.a.createElement("h3",null,Object(c.a)("Rooms"),s),l),this.state.groupRoomsLoading?i.a.createElement(r,null):i.a.createElement(e,{rooms:this.state.groupRooms}))}_getFeaturedRoomsNode(){const e=this.state.summary,t=[],n={};e.rooms_section.rooms.forEach(e=>{if(null===e.category_id)t.push(e);else{let t=n[e.category_id];void 0===t&&(t=[],n[e.category_id]=t),t.push(e)}});const o=i.a.createElement(_d,{rooms:t,groupId:this.props.groupId,editing:this.state.editing}),r=Object.keys(n).map(t=>{const o=e.rooms_section.categories[t];return i.a.createElement(_d,{key:t,rooms:n[t],category:o,groupId:this.props.groupId,editing:this.state.editing})});return i.a.createElement("div",{className:"mx_GroupView_featuredThings"},i.a.createElement("div",{className:"mx_GroupView_featuredThings_header"},Object(c.a)("Featured Rooms:")),o,r)}_getFeaturedUsersNode(){const e=this.state.summary,t=[],n={};e.users_section.users.forEach(e=>{if(null===e.role_id)t.push(e);else{let t=n[e.role_id];void 0===t&&(t=[],n[e.role_id]=t),t.push(e)}});const o=i.a.createElement(vd,{users:t,groupId:this.props.groupId,editing:this.state.editing}),r=Object.keys(n).map(t=>{const o=e.users_section.roles[t];return i.a.createElement(vd,{key:t,users:n[t],role:o,groupId:this.props.groupId,editing:this.state.editing})});return i.a.createElement("div",{className:"mx_GroupView_featuredThings"},i.a.createElement("div",{className:"mx_GroupView_featuredThings_header"},Object(c.a)("Featured Users:")),o,r)}_getMembershipSection(){const e=d.getComponent("elements.Spinner"),t=d.getComponent("avatars.BaseAvatar"),n=this._matrixClient.getGroup(this.props.groupId);if(n&&"invite"===n.myMembership){if(this.state.membershipBusy||this.state.inviterProfileBusy)return i.a.createElement("div",{className:"mx_GroupView_membershipSection"},i.a.createElement(e,null));const o=this.state.inviterProfile&&this.state.inviterProfile.avatarUrl?Object(ge.b)(this.state.inviterProfile.avatarUrl).getSquareThumbnailHttp(36):null,r=n.inviter||{};let a=r.userId;return this.state.inviterProfile&&(a=this.state.inviterProfile.displayName||r.userId),i.a.createElement("div",{className:"mx_GroupView_membershipSection mx_GroupView_membershipSection_invited"},i.a.createElement("div",{className:"mx_GroupView_membershipSubSection"},i.a.createElement("div",{className:"mx_GroupView_membershipSection_description"},i.a.createElement(t,{url:o,name:a,width:36,height:36}),Object(c.a)("%(inviter)s has invited you to join this community",{inviter:a||Object(c.a)("Someone")})),i.a.createElement("div",{className:"mx_GroupView_membership_buttonContainer"},i.a.createElement(g.a,{className:"mx_GroupView_textButton mx_RoomHeader_textButton",onClick:this._onAcceptInviteClick},Object(c.a)("Accept")),i.a.createElement(g.a,{className:"mx_GroupView_textButton mx_RoomHeader_textButton",onClick:this._onRejectInviteClick},Object(c.a)("Decline")))))}let o,r,a,s,l;if((!n||"leave"===n.myMembership)&&this.state.summary&&this.state.summary.profile&&Boolean(this.state.summary.profile.is_openly_joinable))s=Object(c.a)("Join this community"),l=this._onJoinClick,r="mx_GroupView_joinButton",o="mx_GroupView_membershipSection_leave";else{if(!n||"join"!==n.myMembership||!this.state.editing)return null;s=Object(c.a)("Leave this community"),l=this._onLeaveClick,a=this.state.isUserPrivileged?Object(c.a)("You are an administrator of this community"):Object(c.a)("You are a member of this community"),r={mx_GroupView_leaveButton:!0,mx_RoomHeader_textButton_danger:this.state.isUserPrivileged},o="mx_GroupView_membershipSection_joined"}const u=P()(["mx_RoomHeader_textButton","mx_GroupView_textButton"],r),h=P()("mx_GroupView_membershipSection",o);return i.a.createElement("div",{className:h},i.a.createElement("div",{className:"mx_GroupView_membershipSubSection"},this.state.membershipBusy?i.a.createElement(e,null):i.a.createElement("div",null),i.a.createElement("div",{className:"mx_GroupView_membership_buttonContainer"},i.a.createElement(g.a,{className:u,onClick:l,title:a},s))))}_getJoinableNode(){const e=d.getComponent("elements.InlineSpinner");return this.state.editing?i.a.createElement("div",null,i.a.createElement("h3",null,Object(c.a)("Who can join this community?"),this.state.groupJoinableLoading?i.a.createElement(e,null):i.a.createElement("div",null)),i.a.createElement("div",null,i.a.createElement("label",null,i.a.createElement("input",{type:"radio",value:"invite",checked:"invite"===this.state.joinableForm.policyType,onChange:this._onJoinableChange}),i.a.createElement("div",{className:"mx_GroupView_label_text"},Object(c.a)("Only people who have been invited")))),i.a.createElement("div",null,i.a.createElement("label",null,i.a.createElement("input",{type:"radio",value:"open",checked:"open"===this.state.joinableForm.policyType,onChange:this._onJoinableChange}),i.a.createElement("div",{className:"mx_GroupView_label_text"},Object(c.a)("Everyone"))))):null}_getLongDescriptionNode(){const e=this.state.summary;let t=null;e.profile&&e.profile.long_description?t=Object(is.g)(e.profile.long_description):this.state.isUserPrivileged&&(t=i.a.createElement("div",{className:"mx_GroupView_groupDesc_placeholder",onClick:this._onEditClick},Object(c.a)("Your community hasn't got a Long Description, a HTML page to show to community members.<br />Click here to open settings and give it one!",{},{br:i.a.createElement("br",null)})));const n=P()({mx_GroupView_groupDesc:!0,mx_GroupView_groupDesc_disabled:!this.state.isUserPrivileged});return this.state.editing?i.a.createElement("div",{className:n},i.a.createElement("h3",null," ",Object(c.a)("Long Description (HTML)")," "),i.a.createElement("textarea",{value:this.state.profileForm.long_description,placeholder:Object(c.a)(md),onChange:this._onLongDescChange,tabIndex:"4",key:"editLongDesc"})):i.a.createElement("div",{className:"mx_GroupView_groupDesc"},t)}render(){const e=d.getComponent("avatars.GroupAvatar"),t=d.getComponent("elements.Spinner");if(this.state.summaryLoading&&null===this.state.error||this.state.saving)return i.a.createElement(t,null);if(this.state.summary&&!this.state.error){const o=this.state.summary;let r,s,l;const u=[];if(this.state.editing&&this.state.isUserPrivileged){let e;if(this.state.uploadingAvatar)e=i.a.createElement(t,null);else{const t=d.getComponent("avatars.GroupAvatar");e=i.a.createElement(t,{groupId:this.props.groupId,groupName:this.state.profileForm.name,groupAvatarUrl:this.state.profileForm.avatar_url,width:28,height:28,resizeMethod:"crop"})}r=i.a.createElement("div",{className:"mx_GroupView_avatarPicker"},i.a.createElement("label",{htmlFor:"avatarInput",className:"mx_GroupView_avatarPicker_label"},e),i.a.createElement("div",{className:"mx_GroupView_avatarPicker_edit"},i.a.createElement("label",{htmlFor:"avatarInput",className:"mx_GroupView_avatarPicker_label"},i.a.createElement("img",{src:n(1350),alt:Object(c.a)("Upload avatar"),title:Object(c.a)("Upload avatar"),width:"17",height:"15"})),i.a.createElement("input",{id:"avatarInput",className:"mx_GroupView_uploadInput",type:"file",onChange:this._onAvatarSelected})));const o=d.getComponent("elements.EditableText");s=i.a.createElement(o,{className:"mx_GroupView_editable",placeholderClassName:"mx_GroupView_placeholder",placeholder:Object(c.a)("Community Name"),blurToCancel:!1,initialValue:this.state.profileForm.name,onValueChanged:this._onNameChange,tabIndex:"0",dir:"auto"}),l=i.a.createElement(o,{className:"mx_GroupView_editable",placeholderClassName:"mx_GroupView_placeholder",placeholder:Object(c.a)("Description"),blurToCancel:!1,initialValue:this.state.profileForm.short_description,onValueChanged:this._onShortDescChange,tabIndex:"0",dir:"auto"})}else{const t=this.state.isUserMember?this._onEditClick:null,n=o.profile?o.profile.avatar_url:null,a=o.profile?o.profile.name:null;r=i.a.createElement(e,{groupId:this.props.groupId,groupAvatarUrl:n,groupName:a,onClick:t,width:28,height:28}),s=o.profile&&o.profile.name?i.a.createElement("div",{onClick:t},i.a.createElement("span",null,o.profile.name),i.a.createElement("span",{className:"mx_GroupView_header_groupid"},"(",this.props.groupId,")")):i.a.createElement("span",{onClick:t},this.props.groupId),o.profile&&o.profile.short_description&&(l=i.a.createElement("span",{onClick:t},o.profile.short_description))}this.state.editing?(u.push(i.a.createElement(g.a,{className:"mx_GroupView_textButton mx_RoomHeader_textButton",key:"_saveButton",onClick:this._onSaveClick},Object(c.a)("Save"))),u.push(i.a.createElement(g.a,{className:"mx_RoomHeader_cancelButton",key:"_cancelButton",onClick:this._onCancelClick},i.a.createElement("img",{src:n(262),className:"mx_filterFlipColor",width:"18",height:"18",alt:Object(c.a)("Cancel")})))):(o.user&&"join"===o.user.membership&&u.push(i.a.createElement(g.a,{className:"mx_GroupHeader_button mx_GroupHeader_editButton",key:"_editButton",onClick:this._onEditClick,title:Object(c.a)("Community Settings")})),u.push(i.a.createElement(g.a,{className:"mx_GroupHeader_button mx_GroupHeader_shareButton",key:"_shareButton",onClick:this._onShareClick,title:Object(c.a)("Share Community")})));const h=this.state.showRightPanel?i.a.createElement(dd.a,{groupId:this.props.groupId}):void 0,p={mx_GroupView_header:!0,"light-panel":!0,mx_GroupView_header_view:!this.state.editing,mx_GroupView_header_isUserMember:this.state.isUserMember};return i.a.createElement("main",{className:"mx_GroupView"},i.a.createElement("div",{className:P()(p)},i.a.createElement("div",{className:"mx_GroupView_header_leftCol"},i.a.createElement("div",{className:"mx_GroupView_header_avatar"},r),i.a.createElement("div",{className:"mx_GroupView_header_info"},i.a.createElement("div",{className:"mx_GroupView_header_name"},s),i.a.createElement("div",{className:"mx_GroupView_header_shortDesc"},l))),i.a.createElement("div",{className:"mx_GroupView_header_rightCol"},u),i.a.createElement(la,null)),i.a.createElement(ld.a,{panel:h,resizeNotifier:this.props.resizeNotifier},i.a.createElement(a.a,{className:"mx_GroupView_body"},this._getMembershipSection(),this._getGroupSection())))}if(this.state.error){if(404===this.state.error.httpStatus)return i.a.createElement("div",{className:"mx_GroupView_error"},Object(c.a)("Community %(groupId)s not found",{groupId:this.props.groupId}));{let e;return"M_UNRECOGNIZED"===this.state.error.errcode&&(e=i.a.createElement("div",null,Object(c.a)("This homeserver does not support communities"))),i.a.createElement("div",{className:"mx_GroupView_error"},Object(c.a)("Failed to load %(groupId)s",{groupId:this.props.groupId}),e)}}return console.error("Invalid state for GroupView"),i.a.createElement("div",null)}},R()(ad,"propTypes",{groupId:He.a.string.isRequired,groupIsNew:He.a.bool}),id=sd))||id;var Sd,wd,Cd,Td=n(460),xd=n(148),Od=n.n(xd),kd=n(274),Rd=n(134),Dd=n(162),Id=n(209),Ad=n(329);const Nd=["m.sticker","m.room.message"];const Fd=e=>"m.room.member"===e.getType()||"m.room.third_party_invite"===e.getType();let Md=Object(N.a)("structures.MessagePanel")((Cd=wd=class extends i.a.Component{constructor(e){super(e),R()(this,"onShowTypingNotificationsChange",()=>{this.setState({showTypingNotifications:G.b.getValue("showTypingNotifications")})}),R()(this,"_isUnmounting",()=>!this._isMounted),R()(this,"_collectGhostReadMarker",e=>{e&&requestAnimationFrame(()=>{e.style.width="10%",e.style.opacity="0"})}),R()(this,"_onGhostTransitionEnd",e=>{const t=e.target.dataset.eventid;this.setState({ghostReadMarkers:this.state.ghostReadMarkers.filter(e=>e!==t)})}),R()(this,"_collectEventNode",(e,t)=>{this.eventNodes[e]=t}),R()(this,"_onHeightChanged",()=>{const e=this._scrollPanel.current;e&&e.checkScroll()}),R()(this,"_onTypingShown",()=>{const e=this._scrollPanel.current;e.checkScroll(),e&&e.getScrollState().stuckAtBottom&&e.preventShrinking()}),R()(this,"_onTypingHidden",()=>{const e=this._scrollPanel.current;e&&(e.updatePreventShrinking(),e.checkScroll())}),this.state={ghostReadMarkers:[],showTypingNotifications:G.b.getValue("showTypingNotifications")},this._readReceiptMap={},this._readReceiptsByEvent={},this._readReceiptsByUserId={},this._showHiddenEventsInTimeline=G.b.getValue("showHiddenEventsInTimeline"),this._isMounted=!1,this._readMarkerNode=Object(r.createRef)(),this._whoIsTyping=Object(r.createRef)(),this._scrollPanel=Object(r.createRef)(),this._showTypingNotificationsWatcherRef=G.b.watchSetting("showTypingNotifications",null,this.onShowTypingNotificationsChange)}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1,G.b.unwatchSetting(this._showTypingNotificationsWatcherRef)}componentDidUpdate(e,t){if(e.readMarkerVisible&&this.props.readMarkerEventId!==e.readMarkerEventId){const t=this.state.ghostReadMarkers;t.push(e.readMarkerEventId),this.setState({ghostReadMarkers:t})}}getNodeForEventId(e){if(this.eventNodes)return this.eventNodes[e]}isAtBottom(){return this._scrollPanel.current&&this._scrollPanel.current.isAtBottom()}getScrollState(){return this._scrollPanel.current?this._scrollPanel.current.getScrollState():null}getReadMarkerPosition(){const e=this._readMarkerNode.current,t=this._scrollPanel.current;if(!e||!t)return null;const n=Od.a.findDOMNode(t).getBoundingClientRect(),o=e.getBoundingClientRect();return o.bottom+2<n.top?-1:o.top<n.bottom?0:1}scrollToTop(){this._scrollPanel.current&&this._scrollPanel.current.scrollToTop()}scrollToBottom(){this._scrollPanel.current&&this._scrollPanel.current.scrollToBottom()}scrollRelative(e){this._scrollPanel.current&&this._scrollPanel.current.scrollRelative(e)}handleScrollKey(e){this._scrollPanel.current&&this._scrollPanel.current.handleScrollKey(e)}scrollToEvent(e,t,n){this._scrollPanel.current&&this._scrollPanel.current.scrollToToken(e,t,n)}scrollToEventIfNeeded(e){const t=this.eventNodes[e];t&&t.scrollIntoView({block:"nearest",behavior:"instant"})}checkFillState(){this._scrollPanel.current&&this._scrollPanel.current.checkFillState()}_shouldShowEvent(e){return(!e.sender||!de.a.get().isUserIgnored(e.sender.userId))&&(!!this._showHiddenEventsInTimeline||!!Object(Id.b)(e)&&(this.props.highlightedEventId===e.getId()||!Object(kd.a)(e)))}_readMarkerForEvent(e,t){const n=!t&&this.props.readMarkerVisible;if(this.props.readMarkerEventId===e){let t;return n&&(t=i.a.createElement("hr",{className:"mx_RoomView_myReadMarker",style:{opacity:1,width:"99%"}})),i.a.createElement("li",{key:"readMarker_"+e,ref:this._readMarkerNode,className:"mx_RoomView_myReadMarker_container","data-scroll-tokens":e},t)}if(this.state.ghostReadMarkers.includes(e)){const t=i.a.createElement("hr",{className:"mx_RoomView_myReadMarker",ref:this._collectGhostReadMarker,onTransitionEnd:this._onGhostTransitionEnd,"data-eventid":e});return i.a.createElement("li",{key:"_readuptoghost_"+e,className:"mx_RoomView_myReadMarker_container"},t)}return null}_getNextEventInfo(e,t){return{nextEvent:t<e.length-1?e[t+1]:null,nextTile:e.slice(t+1).find(e=>this._shouldShowEvent(e))}}_getEventTiles(){let e,t;this.eventNodes={};let n=-1;for(e=this.props.events.length-1;e>=0;e--){const o=this.props.events[e];if(this._shouldShowEvent(o)&&(void 0===t&&(t=o),!o.status)){n=e;break}}const o=[];let r=null;this._readReceiptsByEvent={},this.props.showReadReceipts&&(this._readReceiptsByEvent=this._getReadReceiptsByShownEvent());let i=null;for(e=0;e<this.props.events.length;e++){const a=this.props.events[e],s=a.getId(),c=a===t,{nextEvent:l,nextTile:d}=this._getNextEventInfo(this.props.events,e);if(i){if(i.shouldGroup(a)){i.add(a);continue}o.push(...i.getTiles()),r=i.getNewPrevEvent(),i=null}for(const e of Ud)e.canStartGroup(this,a)&&(i=new e(this,a,r,t,l,d));if(!i){this._shouldShowEvent(a)&&(o.push(...this._getTilesForEvent(r,a,c,l,d)),r=a);const t=this._readMarkerForEvent(s,e>=n);t&&o.push(t)}}return i&&o.push(...i.getTiles()),o}_getTilesForEvent(e,t,n,o,r){const a=d.getComponent("messages.TileErrorBoundary"),s=d.getComponent("rooms.EventTile"),c=d.getComponent("messages.DateSeparator"),l=[],u=this.props.editState&&this.props.editState.getEvent().getId()===t.getId();let h=t.getTs(),p=t.getDate();t.status&&(p=new Date,h=p.getTime());const m=this._wantsDateSeparator(e,p);if(m){const e=i.a.createElement("li",{key:h},i.a.createElement(c,{key:h,ts:h}));l.push(e)}let g=!1;o&&(g=this._wantsDateSeparator(t,o.getDate()||new Date));const f=!m&&function(e,t){return!!(e&&e.sender&&t.sender)&&(!(t.getTs()-e.getTs()>3e5)&&(t.isRedacted()===e.isRedacted()&&(!!(t.getType()===e.getType()||Nd.includes(t.getType())&&Nd.includes(e.getType()))&&(t.sender.userId===e.sender.userId&&t.sender.name===e.sender.name&&t.sender.getMxcAvatarUrl()===e.sender.getMxcAvatarUrl()&&!!Object(Id.b)(e)))))}(e,t),_=t.getId(),b=_===this.props.highlightedEventId,v=t.status?void 0:_,y=this._readReceiptsByEvent[_];let E=!1;const S=e=>!e||"sent"===e,w=S(t.getAssociatedStatus()),C=o&&this._shouldShowEvent(o);return(!C&&w||C&&w&&!S(o.getAssociatedStatus()))&&(E=!0),r&&r!==o&&S(r.getAssociatedStatus())&&(E=!1),E=E&&t.getSender()===de.a.get().getUserId(),l.push(i.a.createElement("li",{key:t.getTxnId()||_,ref:this._collectEventNode.bind(this,_),"data-scroll-tokens":v},i.a.createElement(a,{mxEvent:t},i.a.createElement(s,{mxEvent:t,continuation:f,isRedacted:t.isRedacted(),replacingEventId:t.replacingEventId(),editState:u&&this.props.editState,onHeightChanged:this._onHeightChanged,readReceipts:y,readReceiptMap:this._readReceiptMap,showUrlPreview:this.props.showUrlPreview,checkUnmounting:this._isUnmounting,eventSendStatus:t.getAssociatedStatus(),tileShape:this.props.tileShape,isTwelveHour:this.props.isTwelveHour,permalinkCreator:this.props.permalinkCreator,last:n,lastInSection:g,lastSuccessful:E,isSelectedEvent:b,getRelationsForEvent:this.props.getRelationsForEvent,showReactions:this.props.showReactions,layout:this.props.layout,enableFlair:this.props.enableFlair,showReadReceipts:this.props.showReadReceipts})))),l}_wantsDateSeparator(e,t){return null==e?!this.props.suppressFirstDateSeparator:Object(Rd.f)(e.getDate(),t)}_getReadReceiptsForEvent(e){const t=de.a.get().credentials.userId,{room:n}=this.props;if(!n)return null;const o=[];return n.getReceiptsForEvent(e).forEach(e=>{if(!e.userId||"m.read"!==e.type||e.userId===t)return;if(de.a.get().isUserIgnored(e.userId))return;const r=n.getMember(e.userId);o.push({userId:e.userId,roomMember:r,ts:e.data?e.data.ts:0})}),o}_getReadReceiptsByShownEvent(){const e={},t={};let n;for(const o of this.props.events){if(this._shouldShowEvent(o)&&(n=o.getId()),!n)continue;const r=e[n]||[],i=this._getReadReceiptsForEvent(o);e[n]=r.concat(i);for(const e of i)t[e.userId]={lastShownEventId:n,receipt:e}}for(const n in this._readReceiptsByUserId){if(t[n])continue;const{lastShownEventId:o,receipt:r}=this._readReceiptsByUserId[n],i=e[o]||[];e[o]=i.concat(r),t[n]={lastShownEventId:o,receipt:r}}this._readReceiptsByUserId=t;for(const t in e)e[t].sort((e,t)=>t.ts-e.ts);return e}updateTimelineMinHeight(){const e=this._scrollPanel.current;if(e){const t=e.isAtBottom(),n=this._whoIsTyping.current,o=n&&n.isVisible();t&&o&&e.preventShrinking()}}onTimelineReset(){const e=this._scrollPanel.current;e&&e.clearPreventShrinking()}render(){const e=d.getComponent("elements.ErrorBoundary"),t=d.getComponent("structures.ScrollPanel"),n=d.getComponent("rooms.WhoIsTypingTile"),o=d.getComponent("elements.Spinner");let r,a;this.props.backPaginating&&(r=i.a.createElement("li",{key:"_topSpinner"},i.a.createElement(o,null))),this.props.forwardPaginating&&(a=i.a.createElement("li",{key:"_bottomSpinner"},i.a.createElement(o,null)));const s=this.props.hidden?{display:"none"}:{},c=P()(this.props.className,{mx_MessagePanel_alwaysShowTimestamps:this.props.alwaysShowTimestamps});let l;this.props.room&&!this.props.tileShape&&this.state.showTypingNotifications&&(l=i.a.createElement(n,{room:this.props.room,onShown:this._onTypingShown,onHidden:this._onTypingHidden,ref:this._whoIsTyping}));let u=null;return this.props.layout==Dd.a.IRC&&(u=i.a.createElement(Mr,{minWidth:20,maxWidth:600,roomId:this.props.room?this.props.room.roomId:null})),i.a.createElement(e,null,i.a.createElement(t,{ref:this._scrollPanel,className:c,onScroll:this.props.onScroll,onResize:this.onResize,onFillRequest:this.props.onFillRequest,onUnfillRequest:this.props.onUnfillRequest,style:s,stickyBottom:this.props.stickyBottom,resizeNotifier:this.props.resizeNotifier,fixedChildren:u},r,this._getEventTiles(),l,a))}},R()(wd,"propTypes",{hidden:He.a.bool,backPaginating:He.a.bool,forwardPaginating:He.a.bool,events:He.a.array.isRequired,highlightedEventId:He.a.string,room:He.a.object,showUrlPreview:He.a.bool,readMarkerEventId:He.a.string,readMarkerVisible:He.a.bool,ourUserId:He.a.string,suppressFirstDateSeparator:He.a.bool,showReadReceipts:He.a.bool,stickyBottom:He.a.bool,onScroll:He.a.func,onFillRequest:He.a.func,className:He.a.string.isRequired,tileShape:He.a.string,isTwelveHour:He.a.bool,alwaysShowTimestamps:He.a.bool,getRelationsForEvent:He.a.func,showReactions:He.a.bool,layout:Dd.b,enableFlair:He.a.bool}),Sd=Cd))||Sd;class Pd{constructor(e,t,n,o){this.panel=e,this.createEvent=t,this.prevEvent=n,this.lastShownEvent=o,this.events=[],this.ejectedEvents=[],this.readMarker=e._readMarkerForEvent(t.getId(),t===o)}shouldGroup(e){const t=this.panel,n=this.createEvent;return!t._shouldShowEvent(e)||!t._wantsDateSeparator(this.createEvent,e.getDate())&&(("m.room.member"!==e.getType()||e.getStateKey()===n.getSender()&&"join"===e.getContent().membership)&&!(!e.isState()||e.getSender()!==n.getSender()))}add(e){const t=this.panel;this.readMarker=this.readMarker||t._readMarkerForEvent(e.getId(),e===this.lastShownEvent),t._shouldShowEvent(e)&&("m.room.encryption"===e.getType()?this.ejectedEvents.push(e):this.events.push(e))}getTiles(){if(!this.events||!this.events.length)return[];const e=d.getComponent("messages.DateSeparator"),t=d.getComponent("views.elements.EventListSummary"),n=this.panel,o=[],r=this.createEvent,a=this.lastShownEvent;if(n._wantsDateSeparator(this.prevEvent,r.getDate())){const t=r.getTs();o.push(i.a.createElement("li",{key:t+"~"},i.a.createElement(e,{key:t+"~",ts:t})))}n._shouldShowEvent(r)&&o.push(...n._getTilesForEvent(r,r,!1));for(const e of this.ejectedEvents)o.push(...n._getTilesForEvent(r,e,r===a));const s=this.events.map(e=>n._getTilesForEvent(e,e,e===a)).reduce((e,t)=>e.concat(t),[]),l=this.events[this.events.length-1];let u;const h=l.getRoomId(),p=l.sender?l.sender.name:l.getSender();return u=wi.a.shared().getUserIdForRoomId(h)?Object(c.a)("%(creator)s created this DM.",{creator:p}):Object(c.a)("%(creator)s created and configured the room.",{creator:p}),o.push(i.a.createElement(nl.a,{key:"newroomintro"})),o.push(i.a.createElement(t,{key:"roomcreationsummary",events:this.events,onToggle:n._onHeightChanged,summaryMembers:[l.sender],summaryText:u},s)),this.readMarker&&o.push(this.readMarker),o}getNewPrevEvent(){return this.createEvent}}R()(Pd,"canStartGroup",(function(e,t){return"m.room.create"===t.getType()}));class Ld{constructor(e,t,n,o,r,i){this.panel=e,this.readMarker=e._readMarkerForEvent(t.getId(),t===o),this.events=[t],this.prevEvent=n,this.lastShownEvent=o,this.nextEvent=r,this.nextEventTile=i}shouldGroup(e){return!this.panel._shouldShowEvent(e)||!this.panel._wantsDateSeparator(this.events[0],e.getDate())&&e.isRedacted()}add(e){this.readMarker=this.readMarker||this.panel._readMarkerForEvent(e.getId(),e===this.lastShownEvent),this.panel._shouldShowEvent(e)&&this.events.push(e)}getTiles(){if(!this.events||!this.events.length)return[];const e=d.getComponent("messages.DateSeparator"),t=d.getComponent("views.elements.EventListSummary"),n=this.panel,o=[],r=this.lastShownEvent;if(n._wantsDateSeparator(this.prevEvent,this.events[0].getDate())){const t=this.events[0].getTs();o.push(i.a.createElement("li",{key:t+"~"},i.a.createElement(e,{key:t+"~",ts:t})))}const a="redactioneventlistsummary-"+(this.prevEvent?this.events[0].getId():"initial"),s=new Set;let l=this.events.map((e,t)=>{s.add(e.sender);const o=0===t?this.prevEvent:this.events[t-1];return n._getTilesForEvent(o,e,e===r,this.nextEvent,this.nextEventTile)}).reduce((e,t)=>e.concat(t),[]);return 0===l.length&&(l=null),o.push(i.a.createElement(t,{key:a,threshold:2,events:this.events,onToggle:n._onHeightChanged,summaryMembers:Array.from(s),summaryText:Object(c.a)("%(count)s messages deleted.",{count:l.length})},l)),this.readMarker&&o.push(this.readMarker),o}getNewPrevEvent(){return this.events[this.events.length-1]}}R()(Ld,"canStartGroup",(function(e,t){return e._shouldShowEvent(t)&&t.isRedacted()}));class jd{constructor(e,t,n,o){this.panel=e,this.readMarker=e._readMarkerForEvent(t.getId(),t===o),this.events=[t],this.prevEvent=n,this.lastShownEvent=o}shouldGroup(e){return!this.panel._wantsDateSeparator(this.events[0],e.getDate())&&Fd(e)}add(e){if("m.room.member"===e.getType()){const t=Object(Ad.a)(e);if(!t||0===t.trim().length)return}this.readMarker=this.readMarker||this.panel._readMarkerForEvent(e.getId(),e===this.lastShownEvent),this.events.push(e)}getTiles(){if(!this.events||!this.events.length)return[];const e=d.getComponent("messages.DateSeparator"),t=d.getComponent("views.elements.MemberEventListSummary"),n=this.panel,o=this.lastShownEvent,r=[];if(n._wantsDateSeparator(this.prevEvent,this.events[0].getDate())){const t=this.events[0].getTs();r.push(i.a.createElement("li",{key:t+"~"},i.a.createElement(e,{key:t+"~",ts:t})))}const a="membereventlistsummary-"+(this.prevEvent?this.events[0].getId():"initial");let s,c=this.events.map(e=>(e.getId()===n.props.highlightedEventId&&(s=!0),n._getTilesForEvent(e,e,e===o))).reduce((e,t)=>e.concat(t),[]);return 0===c.length&&(c=null),r.push(i.a.createElement(t,{key:a,events:this.events,onToggle:n._onHeightChanged,startExpanded:s},c)),this.readMarker&&r.push(this.readMarker),r}getNewPrevEvent(){return this.events[0]}}R()(jd,"canStartGroup",(function(e,t){return e._shouldShowEvent(t)&&Fd(t)}));const Ud=[Pd,jd,Ld];var Bd,qd,Gd;let Vd=Object(N.a)("structures.MyGroups")((Gd=qd=class extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{groups:null,error:null}),R()(this,"_onCreateGroupClick",()=>{u.a.dispatch({action:"view_create_group"})})}componentDidMount(){this._fetch()}_fetch(){this.context.getJoinedGroups().then(e=>{this.setState({groups:e.groups,error:null})},e=>{"M_GUEST_ACCESS_FORBIDDEN"!==e.errcode?this.setState({groups:null,error:e}):this.setState({groups:[],error:null})})}render(){const e=l.a.get().brand,t=d.getComponent("elements.Spinner"),o=d.getComponent("rooms.SimpleRoomHeader"),r=d.getComponent("groups.GroupTile");let s,u;if(this.state.groups){const t=[];this.state.groups.forEach(e=>{t.push(i.a.createElement(r,{key:e,groupId:e}))}),u=t.length>0?i.a.createElement("h3",null,Object(c.a)("Your Communities")):i.a.createElement("div",null),s=t.length>0?i.a.createElement(a.a,{className:"mx_MyGroups_scrollable"},i.a.createElement("div",{className:"mx_MyGroups_microcopy"},i.a.createElement("p",null,Object(c.a)("Did you know: you can use communities to filter your %(brand)s experience!",{brand:e})),i.a.createElement("p",null,Object(c.a)("To set up a filter, drag a community avatar over to the filter panel on the far left hand side of the screen. You can click on an avatar in the filter panel at any time to see only the rooms and people associated with that community."))),i.a.createElement("div",{className:"mx_MyGroups_joinedGroups"},t)):i.a.createElement("div",{className:"mx_MyGroups_placeholder"},Object(c.a)("You're not currently a member of any communities."))}else s=this.state.error?i.a.createElement("div",{className:"mx_MyGroups_error"},Object(c.a)("Error whilst fetching joined communities")):i.a.createElement(t,null);return i.a.createElement("div",{className:"mx_MyGroups"},i.a.createElement(o,{title:Object(c.a)("Communities"),icon:n(1351)}),i.a.createElement("div",{className:"mx_MyGroups_header"},i.a.createElement("div",{className:"mx_MyGroups_headerCard"},i.a.createElement(g.a,{className:"mx_MyGroups_headerCard_button",onClick:this._onCreateGroupClick}),i.a.createElement("div",{className:"mx_MyGroups_headerCard_content"},i.a.createElement("div",{className:"mx_MyGroups_headerCard_header"},Object(c.a)("Create a new community")),Object(c.a)("Create a community to group together users and rooms! Build a custom homepage to mark out your space in the Matrix universe.")))),i.a.createElement("div",{className:"mx_MyGroups_content"},u,s))}},R()(qd,"contextType",b.a),Bd=Gd))||Bd;var Hd,zd,Kd;var Wd=Object(N.a)("structures.NotificationPanel")((Kd=zd=class extends i.a.Component{render(){const e=d.getComponent("structures.TimelinePanel"),t=d.getComponent("elements.Spinner"),n=i.a.createElement("div",{className:"mx_RightPanel_empty mx_NotificationPanel_empty"},i.a.createElement("h2",null,Object(c.a)("You’re all caught up")),i.a.createElement("p",null,Object(c.a)("You have no visible notifications.")));let o;const r=de.a.get().getNotifTimelineSet();return r?o=i.a.createElement(e,{manageReadReceipts:!1,manageReadMarkers:!1,timelineSet:r,showUrlPreview:!1,tileShape:"notif",empty:n}):(console.error("No notifTimelineSet available!"),o=i.a.createElement(t,null)),i.a.createElement(Gi.b,{className:"mx_NotificationPanel",onClose:this.props.onClose,withoutScrollContainer:!0},o)}},R()(zd,"propTypes",{onClose:He.a.func.isRequired}),Hd=Kd))||Hd;function Yd(e,t){if(!t)return null;for(const n of Object.keys(e))if(e[n].instances||!(e[n].instances instanceof Array))for(const o of e[n].instances)if(o.instance_id==t)return o}function $d(e,t){if(!t)return null;for(const n of Object.keys(e))if(e[n].instances||!(e[n].instances instanceof Array))for(const o of e[n].instances)if(o.instance_id==t)return n}const Qd=Symbol("ALL_ROOMS"),Jd=Object(go.a)({rules:[{key:"required",test:async({value:e})=>!!e,invalid:()=>Object(c.a)("Enter a server name")},{key:"available",final:!0,test:async({value:e})=>{try{const t={limit:1,server:e};return await de.a.get().publicRooms(t),!0}catch(e){return!1}},valid:()=>Object(c.a)("Looks good"),invalid:()=>Object(c.a)("Can't find this server or its room list")}]}),Xd=({onOptionChange:e,protocols:t={},selectedServerName:n,selectedInstanceId:a})=>{const[s,u,h,p]=Object(o.q)(),m=Nt("room_directory_servers"),[g,f]=Object(r.useState)(m),_=(t,n)=>()=>{e(t,n),p()},b=e=>{f(e),G.b.setValue("room_directory_servers",null,"account",e)};let v;if(Object(r.useEffect)(()=>{f(m)},[m]),s){const r=l.a.get().roomDirectory||{},s=de.a.getHomeserverName(),h=new Set(r.servers),m=new Set(g.filter(e=>!h.has(e)&&e!==s)),f=[s,...Array.from(h).filter(e=>e!==s).sort(),...Array.from(m).sort()],E=f.map(r=>{const l=r===n,u=[],h=r===s?Object.values(t):[];let g,v;if(h.length>0&&h.push({instances:[{instance_id:Qd,desc:Object(c.a)("All rooms")}]}),h.forEach(({instances:e=[]})=>{[...e].sort((e,t)=>t.desc.localeCompare(e.desc)).forEach(({desc:e,instance_id:t})=>{u.push(i.a.createElement(o.h,{key:String(t),active:l&&t===a,onClick:_(r,t),label:e,className:"mx_NetworkDropdown_server_network"},e))})}),r===s&&(g=i.a.createElement("div",{className:"mx_NetworkDropdown_server_subtitle"},Object(c.a)("Your server"))),m.has(r)){const t=async()=>{p();const t=d.getComponent("dialogs.QuestionDialog"),{finished:n}=Ge.a.createTrackedDialog("Network Dropdown","Remove server",t,{title:Object(c.a)("Are you sure?"),description:Object(c.a)("Are you sure you want to remove <b>%(serverName)s</b>",{serverName:r},{b:e=>i.a.createElement("b",null,e)}),button:Object(c.a)("Remove"),fixedWidth:!1},"mx_NetworkDropdown_dialog"),[o]=await n;o&&(b(f.filter(e=>e!==r)),l===r&&e(s,void 0))};v=i.a.createElement(o.f,{onClick:t,label:Object(c.a)("Remove server")})}return i.a.createElement(o.e,{label:r,className:"mx_NetworkDropdown_server",key:r},i.a.createElement("div",{className:"mx_NetworkDropdown_server_title"},r,v),g,i.a.createElement(o.h,{active:l&&!a,onClick:_(r,void 0),label:Object(c.a)("Matrix"),className:"mx_NetworkDropdown_server_network"},Object(c.a)("Matrix")),u)}),S=async()=>{p();const t=d.getComponent("dialogs.TextInputDialog"),{finished:n}=Ge.a.createTrackedDialog("Network Dropdown","Add a new server",t,{title:Object(c.a)("Add a new server"),description:Object(c.a)("Enter the name of a new server you want to explore."),button:Object(c.a)("Add"),hasCancel:!1,placeholder:Object(c.a)("Server name"),validator:Jd,fixedWidth:!1},"mx_NetworkDropdown_dialog"),[o,r]=await n;o&&(g.includes(r)||b([...g,r]),e(r))},w=u.current.getBoundingClientRect();v=i.a.createElement(o.b,he()({},(y=w,{right:window.innerWidth-y.right,top:y.top,chevronOffset:0,chevronFace:"none"}),{onFinished:p}),i.a.createElement("div",{className:"mx_NetworkDropdown_menu"},E,i.a.createElement(o.f,{className:"mx_NetworkDropdown_server_add",label:void 0,onClick:S},Object(c.a)("Add a new server..."))))}else{let e;if(a===Qd)e=Object(c.a)("All rooms");else if(a){const n=Yd(t,a);e=Object(c.a)("%(networkName)s rooms",{networkName:n.desc})}else e=Object(c.a)("Matrix rooms");v=i.a.createElement(o.c,{className:"mx_NetworkDropdown_handle",onClick:h,isExpanded:s},i.a.createElement("span",null,e)," ",i.a.createElement("span",{className:"mx_NetworkDropdown_handle_server"},"(",n,")"))}var y;return i.a.createElement("div",{className:"mx_NetworkDropdown",ref:u},v)};Xd.propTypes={onOptionChange:He.a.func.isRequired,protocols:He.a.object};var Zd,eu,tu,nu=Xd;function ou(e){y.a.trackEvent("RoomDirectory",e)}let ru=Object(N.a)("structures.RoomDirectory")((tu=eu=class extends i.a.Component{constructor(e){super(e),R()(this,"refreshRoomList",()=>{this.state.selectedCommunityId?this.setState({publicRooms:ba.a.getGroupRooms(this.state.selectedCommunityId).map(e=>({room_id:e.roomId,name:e.name,topic:e.topic,canonical_alias:e.canonicalAlias,num_joined_members:e.numJoinedMembers,avatarUrl:e.avatarUrl,world_readable:e.worldReadable,guest_can_join:e.guestsCanJoin})).filter(e=>{const t=this.state.filterString;if(t){const n=e=>(e||"").toLowerCase().includes(t.toLowerCase());return n(e.name)||n(e.topic)||n(e.canonical_alias)}return!0}),loading:!1}):(this.nextBatch=null,this.setState({publicRooms:[],loading:!0}),this.getMoreRooms())}),R()(this,"onRoomClicked",(e,t)=>{t.shiftKey&&!this.state.selectedCommunityId?(t.preventDefault(),this.removeFromDirectory(e)):this.showRoom(e)}),R()(this,"onOptionChange",(e,t)=>{this.nextBatch=null,this.setState({publicRooms:[],roomServer:e,instanceId:t,error:null},this.refreshRoomList)}),R()(this,"onFillRequest",e=>e||!this.nextBatch?Promise.resolve(!1):this.getMoreRooms()),R()(this,"onFilterChange",e=>{this.setState({filterString:e||null}),this.filterTimeout&&clearTimeout(this.filterTimeout),this.filterTimeout=setTimeout(()=>{this.filterTimeout=null,this.refreshRoomList()},700)}),R()(this,"onFilterClear",()=>{this.setState({filterString:null},this.refreshRoomList),this.filterTimeout&&clearTimeout(this.filterTimeout)}),R()(this,"onJoinFromSearchClick",e=>{if(this.state.instanceId&&this.state.instanceId!==Qd){const t=$d(this.protocols,this.state.instanceId),n=Yd(this.protocols,this.state.instanceId),o=t?this._getFieldsForThirdPartyLocation(e,this.protocols[t],n):null;if(!o){const e=d.getComponent("dialogs.ErrorDialog"),t=l.a.get().brand;return void Ge.a.createTrackedDialog("Unable to join network","",e,{title:Object(c.a)("Unable to join network"),description:Object(c.a)("%(brand)s does not know how to join a room on this network",{brand:t})})}de.a.get().getThirdpartyLocation(t,o).then(e=>{if(e.length>0&&e[0].alias)this.showRoomAlias(e[0].alias,!0);else{const e=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Room not found","",e,{title:Object(c.a)("Room not found"),description:Object(c.a)("Couldn't find a matching Matrix room")})}},e=>{const t=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Fetching third party location failed","",t,{title:Object(c.a)("Fetching third party location failed"),description:Object(c.a)("Unable to look up room ID from server")})})}else-1==e.indexOf(":")&&(e=e+":"+this.state.roomServer),this.showRoomAlias(e,!0)}),R()(this,"onPreviewClick",(e,t)=>{this.showRoom(t,null,!1,!0),e.stopPropagation()}),R()(this,"onViewClick",(e,t)=>{this.showRoom(t),e.stopPropagation()}),R()(this,"onJoinClick",(e,t)=>{this.showRoom(t,null,!0),e.stopPropagation()}),R()(this,"onCreateRoomClick",e=>{this.onFinished(),u.a.dispatch({action:"view_create_room",public:!0})}),R()(this,"collectScrollPanel",e=>{this.scrollPanel=e}),R()(this,"handleScrollKey",e=>{this.scrollPanel&&this.scrollPanel.handleScrollKey(e)}),R()(this,"onFinished",()=>{E.a.instance.trackRoomDirectory(this.startTime),this.props.onFinished()}),E.a.instance.trackRoomDirectoryBegin(),this.startTime=E.a.getTimestamp();const t=L.a.getSelectedTags()[0];this.state={publicRooms:[],loading:!0,protocolsLoading:!0,error:null,instanceId:void 0,roomServer:de.a.getHomeserverName(),filterString:this.props.initialText||"",selectedCommunityId:G.b.getValue("feature_communities_v2_prototypes")?t:null,communityName:null},this._unmounted=!1,this.nextBatch=null,this.filterTimeout=null,this.scrollPanel=null,this.protocols=null,this.state.protocolsLoading=!0,de.a.get()?this.state.selectedCommunityId?(this.state.protocolsLoading=!1,at.a.getGroupProfileCached(de.a.get(),this.state.selectedCommunityId).then(e=>{this.setState({communityName:e.name})})):de.a.get().getThirdpartyProtocols().then(e=>{this.protocols=e,this.setState({protocolsLoading:!1})},e=>{if(console.warn("error loading third party protocols: "+e),this.setState({protocolsLoading:!1}),de.a.get().isGuest())return;ou("Failed to get protocol list from homeserver");const t=l.a.get().brand;this.setState({error:Object(c.a)("%(brand)s failed to get the protocol list from the homeserver. The homeserver may be too old to support third party networks.",{brand:t})})}):this.state.protocolsLoading=!1}componentDidMount(){this.refreshRoomList()}componentWillUnmount(){this.filterTimeout&&clearTimeout(this.filterTimeout),this._unmounted=!0}getMoreRooms(){if(this.state.selectedCommunityId)return Promise.resolve();if(!de.a.get())return Promise.resolve();this.setState({loading:!0});const e=this.state.filterString,t=this.state.roomServer,n=this.nextBatch,o={limit:20};return t!=de.a.getHomeserverName()&&(o.server=t),this.state.instanceId===Qd?o.include_all_networks=!0:this.state.instanceId&&(o.third_party_instance_id=this.state.instanceId),this.nextBatch&&(o.since=this.nextBatch),e&&(o.filter={generic_search_term:e}),de.a.get().publicRooms(o).then(o=>{if(e==this.state.filterString&&t==this.state.roomServer&&n==this.nextBatch&&!this._unmounted){if(this.state.filterString){const e=o.total_room_count_estimate||o.chunk.length;E.a.instance.trackRoomDirectorySearch(e,this.state.filterString)}return this.nextBatch=o.next_batch,this.setState(e=>(e.publicRooms.push(...o.chunk||[]),e.loading=!1,e)),Boolean(o.next_batch)}},o=>{if(e!=this.state.filterString||t!=this.state.roomServer||n!=this.nextBatch)return;if(this._unmounted)return;console.error("Failed to get publicRooms: %s",JSON.stringify(o)),ou("Failed to get public room list");const r=l.a.get().brand;this.setState({loading:!1,error:Object(c.a)("%(brand)s failed to get the public room list.",{brand:r})+(o&&o.message)?o.message:Object(c.a)("The homeserver may be unavailable or overloaded.")})})}removeFromDirectory(e){const t=iu(e),n=e.name||t||Object(c.a)("Unnamed room"),o=d.getComponent("dialogs.QuestionDialog"),r=d.getComponent("dialogs.ErrorDialog");let i;i=t?Object(c.a)("Delete the room address %(alias)s and remove %(name)s from the directory?",{alias:t,name:n}):Object(c.a)("Remove %(name)s from the directory?",{name:n}),Ge.a.createTrackedDialog("Remove from Directory","",o,{title:Object(c.a)("Remove from Directory"),description:i,onFinished:o=>{if(!o)return;const i=d.getComponent("elements.Spinner"),a=Ge.a.createDialog(i);let s=Object(c.a)("remove %(name)s from the directory.",{name:n});de.a.get().setRoomDirectoryVisibility(e.room_id,"private").then(()=>{if(t)return s=Object(c.a)("delete the address."),de.a.get().deleteAlias(t)}).then(()=>{a.close(),this.refreshRoomList()},e=>{a.close(),this.refreshRoomList(),console.error("Failed to "+s+": "+e),Ge.a.createTrackedDialog("Remove from Directory Error","",r,{title:Object(c.a)("Error"),description:e&&e.message?e.message:Object(c.a)("The server may be unavailable or overloaded")})})}})}showRoomAlias(e,t=!1){this.showRoom(null,e,t)}showRoom(e,t,n=!1,o=!1){this.onFinished();const r={action:"view_room",auto_join:n,should_peek:o,_type:"room_directory"};if(e){if(de.a.get().isGuest()&&!e.world_readable&&!e.guest_can_join)return void u.a.dispatch({action:"require_registration"});t||(t=iu(e)),r.oob_data={avatarUrl:e.avatar_url,name:e.name||t||Object(c.a)("Unnamed room")},this.state.roomServer&&(r.via_servers=[this.state.roomServer],r.opts={viaServers:[this.state.roomServer]})}t?r.room_alias=t:r.room_id=e.room_id,u.a.dispatch(r)}createRoomCells(e){const t=de.a.get(),n=t.getRoom(e.room_id),o=n&&"join"===n.getMyMembership(),r=t.isGuest(),a=d.getComponent("avatars.BaseAvatar"),s=d.getComponent("elements.AccessibleButton");let l,u;o||!e.world_readable&&!r||(l=i.a.createElement(s,{kind:"secondary",onClick:t=>this.onPreviewClick(t,e)},Object(c.a)("Preview"))),o?u=i.a.createElement(s,{kind:"secondary",onClick:t=>this.onViewClick(t,e)},Object(c.a)("View")):r||(u=i.a.createElement(s,{kind:"primary",onClick:t=>this.onJoinClick(t,e)},Object(c.a)("Join")));let h=e.name||iu(e)||Object(c.a)("Unnamed room");h.length>80&&(h=h.substring(0,80)+"...");let p=e.topic||"";p.length>800&&(p=p.substring(0,800)+"..."),p=Object(is.e)(p);let m=null;return e.avatar_url&&(m=Object(ge.b)(e.avatar_url).getSquareThumbnailHttp(32)),[i.a.createElement("div",{key:e.room_id+"_avatar",onClick:t=>this.onRoomClicked(e,t),onMouseDown:e=>{e.preventDefault()},className:"mx_RoomDirectory_roomAvatar"},i.a.createElement(a,{width:32,height:32,resizeMethod:"crop",name:h,idName:h,url:m})),i.a.createElement("div",{key:e.room_id+"_description",onClick:t=>this.onRoomClicked(e,t),onMouseDown:e=>{e.preventDefault()},className:"mx_RoomDirectory_roomDescription"},i.a.createElement("div",{className:"mx_RoomDirectory_name"},h)," ",i.a.createElement("div",{className:"mx_RoomDirectory_topic",onClick:e=>{e.stopPropagation()},dangerouslySetInnerHTML:{__html:p}}),i.a.createElement("div",{className:"mx_RoomDirectory_alias"},iu(e))),i.a.createElement("div",{key:e.room_id+"_memberCount",onClick:t=>this.onRoomClicked(e,t),onMouseDown:e=>{e.preventDefault()},className:"mx_RoomDirectory_roomMemberCount"},e.num_joined_members),i.a.createElement("div",{key:e.room_id+"_preview",onClick:t=>this.onRoomClicked(e,t),onMouseDown:e=>{e.preventDefault()},className:"mx_RoomDirectory_preview"},l),i.a.createElement("div",{key:e.room_id+"_join",onClick:t=>this.onRoomClicked(e,t),onMouseDown:e=>{e.preventDefault()},className:"mx_RoomDirectory_join"},u)]}_stringLooksLikeId(e,t){let n=/^#[^\s]+:[^\s]/;return t&&t.regexp&&(n=new RegExp(t.regexp)),n.test(e)}_getFieldsForThirdPartyLocation(e,t,n){const o=t.location_fields;if(!o)return null;const r={};for(let e=0;e<o.length-1;++e){const t=o[e];if(void 0===n.fields[t])return null;r[t]=n.fields[t]}return r[o[o.length-1]]=e,r}render(){const e=d.getComponent("elements.Spinner"),t=d.getComponent("views.dialogs.BaseDialog"),n=d.getComponent("elements.AccessibleButton");let o,r;if(this.state.error)o=this.state.error;else if(this.state.protocolsLoading)o=i.a.createElement(e,null);else{const t=(this.state.publicRooms||[]).reduce((e,t)=>e.concat(this.createRoomCells(t)),[]);let n,r;this.state.loading&&(n=i.a.createElement(e,null)),r=0!==t.length||this.state.loading?i.a.createElement("div",{className:"mx_RoomDirectory_table"},t):i.a.createElement("i",null,Object(c.a)("No rooms to show"));const a=d.getComponent("structures.ScrollPanel");o=i.a.createElement(a,{ref:this.collectScrollPanel,className:"mx_RoomDirectory_tableWrapper",onFillRequest:this.onFillRequest,stickyBottom:!1,startAtBottom:!1},r,n)}if(!this.state.protocolsLoading){const e=d.getComponent("directory.NetworkDropdown"),t=d.getComponent("elements.DirectorySearchBox"),n=$d(this.protocols,this.state.instanceId);let o;if(n&&this.protocols&&this.protocols[n]&&this.protocols[n].location_fields.length>0&&this.protocols[n].field_types){const e=this.protocols[n].location_fields.slice(-1)[0];o=this.protocols[n].field_types[e]}let a=Object(c.a)("Find a room…");this.state.instanceId&&this.state.instanceId!==Qd?o&&(a=o.placeholder):a=Object(c.a)("Find a room… (e.g. %(exampleRoom)s)",{exampleRoom:"#example:"+this.state.roomServer});let s=this._stringLooksLikeId(this.state.filterString,o);if(n){const e=Yd(this.protocols,this.state.instanceId);null===this._getFieldsForThirdPartyLocation(this.state.filterString,this.protocols[n],e)&&(s=!1)}let l=i.a.createElement(e,{protocols:this.protocols,onOptionChange:this.onOptionChange,selectedServerName:this.state.roomServer,selectedInstanceId:this.state.instanceId});this.state.selectedCommunityId&&(l=null),r=i.a.createElement("div",{className:"mx_RoomDirectory_listheader"},i.a.createElement(t,{className:"mx_RoomDirectory_searchbox",onChange:this.onFilterChange,onClear:this.onFilterClear,onJoinClick:this.onJoinFromSearchClick,placeholder:a,showJoinButton:s,initialText:this.props.initialText}),l)}const a=Object(c.a)("If you can't find the room you're looking for, ask for an invite or <a>Create a new room</a>.",null,{a:e=>i.a.createElement(n,{kind:"secondary",onClick:this.onCreateRoomClick},e)}),s=this.state.selectedCommunityId?Object(c.a)("Explore rooms in %(communityName)s",{communityName:this.state.communityName||this.state.selectedCommunityId}):Object(c.a)("Explore rooms");return i.a.createElement(t,{className:"mx_RoomDirectory_dialog",hasCancel:!0,onFinished:this.onFinished,title:s},i.a.createElement("div",{className:"mx_RoomDirectory"},a,i.a.createElement("div",{className:"mx_RoomDirectory_list"},r,o)))}},R()(eu,"propTypes",{initialText:He.a.string,onFinished:He.a.func.isRequired}),Zd=tu))||Zd;function iu(e){return e.canonical_alias||(e.aliases?e.aliases[0]:"")}var au,su,cu,lu=n(623),du=n(103);function uu(e){return e?e.getPendingEvents().filter((function(e){return e.status===du.a.NOT_SENT})):[]}let hu=Object(N.a)("structures.RoomStatusBar")((cu=su=class extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{syncState:de.a.get().getSyncState(),syncStateData:de.a.get().getSyncStateData(),unsentMessages:uu(this.props.room)}),R()(this,"onSyncStateChange",(e,t,n)=>{"SYNCING"===e&&"SYNCING"===t||this.setState({syncState:e,syncStateData:n})}),R()(this,"_onResendAllClick",()=>{lu.a.resendUnsentEvents(this.props.room),u.a.fire(h.a.FocusComposer)}),R()(this,"_onCancelAllClick",()=>{lu.a.cancelUnsentEvents(this.props.room),u.a.fire(h.a.FocusComposer)}),R()(this,"_onRoomLocalEchoUpdated",(e,t,n,o)=>{t.roomId===this.props.room.roomId&&this.setState({unsentMessages:uu(this.props.room)})})}componentDidMount(){de.a.get().on("sync",this.onSyncStateChange),de.a.get().on("Room.localEchoUpdated",this._onRoomLocalEchoUpdated),this._checkSize()}componentDidUpdate(){this._checkSize()}componentWillUnmount(){const e=de.a.get();e&&(e.removeListener("sync",this.onSyncStateChange),e.removeListener("Room.localEchoUpdated",this._onRoomLocalEchoUpdated))}_checkSize(){this._getSize()?this.props.onVisible&&this.props.onVisible():this.props.onHidden&&this.props.onHidden()}_getSize(){return this._shouldShowConnectionError()?1:this.state.unsentMessages.length>0?2:0}_shouldShowConnectionError(){const e=Boolean(this.state.syncStateData&&this.state.syncStateData.error&&"M_RESOURCE_LIMIT_EXCEEDED"===this.state.syncStateData.error.errcode);return"ERROR"===this.state.syncState&&!e}_getUnsentMessageContent(){const e=this.state.unsentMessages;if(!e.length)return null;let t,o=null,r=null;for(const t of e){if(t.error&&"M_CONSENT_NOT_GIVEN"===t.error.errcode){o=t.error;break}if(t.error&&"M_RESOURCE_LIMIT_EXCEEDED"===t.error.errcode){r=t.error;break}}t=o?Object(c.a)("You can't send any messages until you review and agree to <consentLink>our terms and conditions</consentLink>.",{},{consentLink:e=>i.a.createElement("a",{href:o.data&&o.data.consent_uri,target:"_blank"},e)}):r?Object(rn.a)(r.data.limit_type,r.data.admin_contact,{monthly_active_user:Object(c.b)("Your message wasn't sent because this homeserver has hit its Monthly Active User Limit. Please <a>contact your service administrator</a> to continue using the service."),hs_disabled:Object(c.b)("Your message wasn't sent because this homeserver has been blocked by it's administrator. Please <a>contact your service administrator</a> to continue using the service."),"":Object(c.b)("Your message wasn't sent because this homeserver has exceeded a resource limit. Please <a>contact your service administrator</a> to continue using the service.")}):1===e.length&&e[0].error&&e[0].error.data&&e[0].error.data.error?Object(rn.b)(e[0].error.data)||e[0].error.data.error:Object(c.a)("%(count)s of your messages have not been sent.",{count:e.length});const a=Object(c.a)("%(count)s <resendText>Resend all</resendText> or <cancelText>cancel all</cancelText> now. You can also select individual messages to resend or cancel.",{count:e.length},{resendText:e=>i.a.createElement("a",{className:"mx_RoomStatusBar_resend_link",key:"resend",onClick:this._onResendAllClick},e),cancelText:e=>i.a.createElement("a",{className:"mx_RoomStatusBar_resend_link",key:"cancel",onClick:this._onCancelAllClick},e)});return i.a.createElement("div",{className:"mx_RoomStatusBar_connectionLostBar"},i.a.createElement("img",{src:n(461),width:"24",height:"24",title:Object(c.a)("Warning"),alt:""}),i.a.createElement("div",null,i.a.createElement("div",{className:"mx_RoomStatusBar_connectionLostBar_title"},t),i.a.createElement("div",{className:"mx_RoomStatusBar_connectionLostBar_desc"},a)))}_getContent(){return this._shouldShowConnectionError()?i.a.createElement("div",{className:"mx_RoomStatusBar_connectionLostBar"},i.a.createElement("img",{src:n(461),width:"24",height:"24",title:"/!\\ ",alt:"/!\\ "}),i.a.createElement("div",null,i.a.createElement("div",{className:"mx_RoomStatusBar_connectionLostBar_title"},Object(c.a)("Connectivity to the server has been lost.")),i.a.createElement("div",{className:"mx_RoomStatusBar_connectionLostBar_desc"},Object(c.a)("Sent messages will be stored until your connection has returned.")))):this.state.unsentMessages.length>0?this._getUnsentMessageContent():null}render(){const e=this._getContent();return i.a.createElement("div",{className:"mx_RoomStatusBar"},i.a.createElement("div",{role:"alert"},e))}},R()(su,"propTypes",{room:He.a.object.isRequired,isPeeking:He.a.bool,onResendAllClick:He.a.func,onCancelAllClick:He.a.func,onInviteClick:He.a.func,onResize:He.a.func,onHidden:He.a.func,onVisible:He.a.func}),au=cu))||au;var pu,mu=n(711),gu=n(445),fu=n(712);let _u=Object(N.a)("structures.UserView")(pu=class extends i.a.Component{static get propTypes(){return{userId:He.a.string}}constructor(e){super(e),this.state={}}componentDidMount(){this.props.userId&&this._loadProfileInfo()}componentDidUpdate(e){e.userId!==this.props.userId&&this.props.userId&&this._loadProfileInfo()}async _loadProfileInfo(){const e=de.a.get();let t;this.setState({loading:!0});try{t=await e.getProfileInfo(this.props.userId)}catch(e){const t=d.getComponent("dialogs.ErrorDialog");return Ge.a.createTrackedDialog(Object(c.a)("Could not load user profile"),"",t,{title:Object(c.a)("Could not load user profile"),description:e&&e.message?e.message:Object(c.a)("Operation failed")}),void this.setState({loading:!1})}const n=new du.b({type:"m.room.member",content:t}),o=new ga.a(null,this.props.userId);o.setMembershipEvent(n),this.setState({member:o,loading:!1})}render(){if(this.state.loading){const e=d.getComponent("elements.Spinner");return i.a.createElement(e,null)}if(this.state.member){const e=d.getComponent("structures.RightPanel"),t=d.getComponent("structures.MainSplit"),n=i.a.createElement(e,{user:this.state.member});return i.a.createElement(t,{panel:n,resizeNotifier:this.props.resizeNotifier},i.a.createElement(O,null))}return i.a.createElement("div",null)}})||pu;var bu,vu,yu,Eu=n(438),Su=n(437),wu=n(254);let Cu=Object(N.a)("structures.ViewSource")((yu=vu=class extends i.a.Component{constructor(e){super(e),this.state={isEditing:!1}}onBack(){this.setState({isEditing:!1})}onEdit(){this.setState({isEditing:!0})}viewSourceContent(){const e=this.props.mxEvent.replacingEvent()||this.props.mxEvent,t=e.isEncrypted(),n=e._clearEvent,o=e.event;return t?i.a.createElement(i.a.Fragment,null,i.a.createElement("details",{open:!0,className:"mx_ViewSource_details"},i.a.createElement("summary",null,i.a.createElement("span",{className:"mx_ViewSource_heading"},Object(c.a)("Decrypted event source"))),i.a.createElement(Eu.a,{className:"json"},JSON.stringify(n,null,2))),i.a.createElement("details",{className:"mx_ViewSource_details"},i.a.createElement("summary",null,i.a.createElement("span",{className:"mx_ViewSource_heading"},Object(c.a)("Original event source"))),i.a.createElement(Eu.a,{className:"json"},JSON.stringify(o,null,2)))):i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"mx_ViewSource_heading"},Object(c.a)("Original event source")),i.a.createElement(Eu.a,{className:"json"},JSON.stringify(o,null,2)))}getBaseEventId(){const e=this.props.mxEvent.replacingEvent()||this.props.mxEvent,t=e.isEncrypted(),n=this.props.mxEvent;var o,r,i,a;return t?null!==(o=null===(r=e.event.content["m.relates_to"])||void 0===r?void 0:r.event_id)&&void 0!==o?o:n.getId():null!==(i=null===(a=e.getContent()["m.relates_to"])||void 0===a?void 0:a.event_id)&&void 0!==i?i:n.getId()}editSourceContent(){const e=this.props.mxEvent.replacingEvent()||this.props.mxEvent,t=e.isState(),n=e.getRoomId(),o=e.getContent();if(t)return i.a.createElement(b.a.Consumer,null,t=>i.a.createElement(Su.a,{room:t.getRoom(n),forceStateEvent:!0,onBack:()=>this.onBack(),inputs:{eventType:e.getType(),evContent:JSON.stringify(o,null,"\t"),stateKey:e.getStateKey()}}));{var r,a;const t=null!==(r=null===(a=o["m.new_content"])||void 0===a?void 0:a.body)&&void 0!==r?r:o.body,s={body:" * "+t,msgtype:o.msgtype,"m.new_content":{body:t,msgtype:o.msgtype},"m.relates_to":{rel_type:"m.replace",event_id:this.getBaseEventId()}};return i.a.createElement(b.a.Consumer,null,t=>i.a.createElement(Su.a,{room:t.getRoom(n),forceStateEvent:!1,forceGeneralEvent:!0,onBack:()=>this.onBack(),inputs:{eventType:e.getType(),evContent:JSON.stringify(s,null,"\t")}}))}}canSendStateEvent(e){const t=de.a.get();return t.getRoom(e.getRoomId()).currentState.mayClientSendStateEvent(e.getType(),t)}render(){const e=d.getComponent("views.dialogs.BaseDialog"),t=this.props.mxEvent.replacingEvent()||this.props.mxEvent,n=this.state.isEditing,o=t.getRoomId(),r=t.getId(),a=t.isState()?this.canSendStateEvent(t):Object(wu.a)(this.props.mxEvent);return i.a.createElement(e,{className:"mx_ViewSource",onFinished:this.props.onFinished,title:Object(c.a)("View Source")},i.a.createElement("div",null,i.a.createElement("div",null,"Room ID: ",o),i.a.createElement("div",null,"Event ID: ",r),i.a.createElement("div",{className:"mx_ViewSource_separator"}),n?this.editSourceContent():this.viewSourceContent()),!n&&a&&i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement("button",{onClick:()=>this.onEdit()},Object(c.a)("Edit"))))}},R()(vu,"propTypes",{onFinished:He.a.func.isRequired,mxEvent:He.a.object.isRequired}),bu=yu))||bu;var Tu,xu,Ou,ku=n(456),Ru=n(454);let Du=Object(N.a)("structures.auth.CompleteSecurity")((Ou=xu=class extends i.a.Component{constructor(){super(),R()(this,"_onStoreUpdate",()=>{const e=ku.g.sharedInstance();this.setState({phase:e.phase})});const e=ku.g.sharedInstance();e.on("update",this._onStoreUpdate),e.start(),this.state={phase:e.phase}}componentWillUnmount(){const e=ku.g.sharedInstance();e.off("update",this._onStoreUpdate),e.stop()}render(){const e=d.getComponent("auth.AuthPage"),t=d.getComponent("auth.CompleteSecurityBody"),{phase:n}=this.state;let o,r;if(n===ku.f)return null;if(n===ku.e)o=i.a.createElement("span",{className:"mx_CompleteSecurity_headerIcon mx_E2EIcon_warning"}),r=Object(c.a)("Verify this login");else if(n===ku.c)o=i.a.createElement("span",{className:"mx_CompleteSecurity_headerIcon mx_E2EIcon_verified"}),r=Object(c.a)("Session verified");else if(n===ku.b)o=i.a.createElement("span",{className:"mx_CompleteSecurity_headerIcon mx_E2EIcon_warning"}),r=Object(c.a)("Are you sure?");else{if(n!==ku.a)throw new Error("Unknown phase "+n);o=i.a.createElement("span",{className:"mx_CompleteSecurity_headerIcon mx_E2EIcon_warning"}),r=Object(c.a)("Verify this login")}return i.a.createElement(e,null,i.a.createElement(t,null,i.a.createElement("h2",{className:"mx_CompleteSecurity_header"},o,r),i.a.createElement("div",{className:"mx_CompleteSecurity_body"},i.a.createElement(Ru.a,{onFinished:this.props.onFinished}))))}},R()(xu,"propTypes",{onFinished:He.a.func.isRequired}),Tu=Ou))||Tu;var Iu;let Au=Object(N.a)("views.auth.CompleteSecurityBody")(Iu=class extends i.a.PureComponent{render(){return i.a.createElement("div",{className:"mx_CompleteSecurityBody"},this.props.children)}})||Iu;var Nu,Fu,Mu,Pu=n(198);let Lu=Object(N.a)("views.dialogs.InteractiveAuthDialog")((Mu=Fu=class extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{authError:null,uiaStage:null,uiaStagePhase:null}),R()(this,"_onAuthFinished",(e,t)=>{e?this.props.onFinished(!0,t):t===Td.a?this.props.onFinished(!1,null):this.setState({authError:t})}),R()(this,"_onUpdateStagePhase",(e,t)=>{this.setState({uiaStage:e,uiaStagePhase:t})}),R()(this,"_onDismissClick",()=>{this.props.onFinished(!1)})}_getDefaultDialogAesthetics(){const e={[Pu.c.PHASE_PREAUTH]:{title:Object(c.a)("Use Single Sign On to continue"),body:Object(c.a)("To continue, use Single Sign On to prove your identity."),continueText:Object(c.a)("Single Sign On"),continueKind:"primary"},[Pu.c.PHASE_POSTAUTH]:{title:Object(c.a)("Confirm to continue"),body:Object(c.a)("Click the button below to confirm your identity."),continueText:Object(c.a)("Confirm"),continueKind:"primary"}};return{[Pu.c.LOGIN_TYPE]:e,[Pu.c.UNSTABLE_LOGIN_TYPE]:e}}render(){const e=d.getComponent("structures.InteractiveAuth"),t=d.getComponent("views.dialogs.BaseDialog");let n=this.state.authError?"Error":this.props.title||Object(c.a)("Authentication"),o=this.state.authError?null:this.props.body,r=null,a=null;const s=this.props.aestheticsForStagePhases||this._getDefaultDialogAesthetics();if(!this.state.authError&&s&&s[this.state.uiaStage]){const e=s[this.state.uiaStage][this.state.uiaStagePhase];e&&e.title&&(n=e.title),e&&e.body&&(o=e.body),e&&e.continueText&&(r=e.continueText),e&&e.continueKind&&(a=e.continueKind)}let l;return l=this.state.authError?i.a.createElement("div",{id:"mx_Dialog_content"},i.a.createElement("div",{role:"alert"},this.state.authError.message||this.state.authError.toString()),i.a.createElement("br",null),i.a.createElement(g.a,{onClick:this._onDismissClick,className:"mx_GeneralButton",autoFocus:"true"},Object(c.a)("Dismiss"))):i.a.createElement("div",{id:"mx_Dialog_content"},o,i.a.createElement(e,{ref:this._collectInteractiveAuth,matrixClient:this.props.matrixClient,authData:this.props.authData,makeRequest:this.props.makeRequest,onAuthFinished:this._onAuthFinished,onStagePhaseChange:this._onUpdateStagePhase,continueText:r,continueKind:a})),i.a.createElement(t,{className:"mx_InteractiveAuthDialog",onFinished:this.props.onFinished,title:n,contentId:"mx_Dialog_content"},l)}},R()(Fu,"propTypes",{matrixClient:He.a.object.isRequired,authData:He.a.shape({flows:He.a.array,params:He.a.object,session:He.a.string}),makeRequest:He.a.func.isRequired,onFinished:He.a.func.isRequired,title:He.a.string,body:He.a.string,aestheticsForStagePhases:He.a.object}),Nu=Mu))||Nu;var ju,Uu,Bu;let qu=Object(N.a)("views.dialogs.security.CreateCrossSigningDialog")((Bu=Uu=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"_doBootstrapUIAuth",async e=>{if(this.state.canUploadKeysWithPasswordOnly&&this.state.accountPassword)await e({type:"m.login.password",identifier:{type:"m.id.user",user:de.a.get().getUserId()},user:de.a.get().getUserId(),password:this.state.accountPassword});else if(this.props.tokenLogin)await e({});else{const t={[Pu.c.PHASE_PREAUTH]:{title:Object(c.a)("Use Single Sign On to continue"),body:Object(c.a)("To continue, use Single Sign On to prove your identity."),continueText:Object(c.a)("Single Sign On"),continueKind:"primary"},[Pu.c.PHASE_POSTAUTH]:{title:Object(c.a)("Confirm encryption setup"),body:Object(c.a)("Click the button below to confirm setting up encryption."),continueText:Object(c.a)("Confirm"),continueKind:"primary"}},{finished:n}=Ge.a.createTrackedDialog("Cross-signing keys dialog","",Lu,{title:Object(c.a)("Setting up keys"),matrixClient:de.a.get(),makeRequest:e,aestheticsForStagePhases:{[Pu.c.LOGIN_TYPE]:t,[Pu.c.UNSTABLE_LOGIN_TYPE]:t}}),[o]=await n;if(!o)throw new Error("Cross-signing key upload auth canceled")}}),R()(this,"_bootstrapCrossSigning",async()=>{this.setState({error:null});const e=de.a.get();try{await e.bootstrapCrossSigning({authUploadDeviceSigningKeys:this._doBootstrapUIAuth}),this.props.onFinished(!0)}catch(e){if(this.props.tokenLogin)return void this.props.onFinished();this.setState({error:e}),console.error("Error bootstrapping cross-signing",e)}}),R()(this,"_onCancel",()=>{this.props.onFinished(!1)}),this.state={error:null,canUploadKeysWithPasswordOnly:null,accountPassword:e.accountPassword||""},this.state.accountPassword?this.state.canUploadKeysWithPasswordOnly=!0:this._queryKeyUploadAuth()}componentDidMount(){this._bootstrapCrossSigning()}async _queryKeyUploadAuth(){try{await de.a.get().uploadDeviceSigningKeys(null,{}),console.log("uploadDeviceSigningKeys unexpectedly succeeded without UI auth!")}catch(e){if(!e.data||!e.data.flows)return void console.log("uploadDeviceSigningKeys advertised no flows!");const t=e.data.flows.some(e=>1===e.stages.length&&"m.login.password"===e.stages[0]);this.setState({canUploadKeysWithPasswordOnly:t})}}render(){let e;return e=this.state.error?i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("Unable to set up keys")),i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement(er.a,{primaryButton:Object(c.a)("Retry"),onPrimaryButtonClick:this._bootstrapCrossSigning,onCancel:this._onCancel}))):i.a.createElement("div",null,i.a.createElement(Ao.a,null)),i.a.createElement(it.a,{className:"mx_CreateCrossSigningDialog",onFinished:this.props.onFinished,title:Object(c.a)("Setting up keys"),hasCancel:!1,fixedWidth:!1},i.a.createElement("div",null,e))}},R()(Uu,"propTypes",{accountPassword:He.a.string,tokenLogin:He.a.bool}),ju=Bu))||ju;var Gu,Vu,Hu;let zu=Object(N.a)("structures.auth.E2eSetup")((Hu=Vu=class extends i.a.Component{render(){return i.a.createElement(mo,null,i.a.createElement(Au,null,i.a.createElement(qu,{onFinished:this.props.onFinished,accountPassword:this.props.accountPassword,tokenLogin:this.props.tokenLogin})))}},R()(Vu,"propTypes",{onFinished:He.a.func.isRequired,accountPassword:He.a.string,tokenLogin:He.a.bool}),Gu=Hu))||Gu;class Ku{constructor(e,t){this.client=Object(Yo.createClient)({baseUrl:e,idBaseUrl:t}),this.clientSecret=this.client.generateClientSecret(),this.identityServerDomain=t?t.split("://")[1]:null}resetPassword(e,t){return this.password=t,this.client.requestPasswordEmailToken(e,this.clientSecret,1).then(e=>(this.sessionId=e.sid,e),(function(e){throw"M_THREEPID_NOT_FOUND"===e.errcode?e.message=Object(c.a)("This email address was not found"):e.httpStatus&&(e.message=e.message+` (Status ${e.httpStatus})`),e}))}async checkEmailLinkClicked(){const e={sid:this.sessionId,client_secret:this.clientSecret};try{await this.client.setPassword({type:"m.login.email.identity",threepid_creds:e,threepidCreds:e},this.password)}catch(e){throw 401===e.httpStatus?e.message=Object(c.a)("Failed to verify email address: make sure you clicked the link in the email"):404===e.httpStatus?e.message=Object(c.a)("Your email address does not appear to be associated with a Matrix ID on this Homeserver."):e.httpStatus&&(e.message+=` (Status ${e.httpStatus})`),e}}}var Wu,Yu,$u;let Qu=Object(N.a)("structures.auth.ForgotPassword")(($u=Yu=class extends i.a.Component{constructor(e){super(e),R()(this,"state",{phase:1,email:"",password:"",password2:"",errorText:null,serverIsAlive:!0,serverErrorIsFatal:!1,serverDeadError:""}),R()(this,"onVerify",async e=>{if(e.preventDefault(),this.reset)try{await this.reset.checkEmailLinkClicked(),this.setState({phase:4})}catch(e){this.showErrorDialog(e.message)}else console.error("onVerify called before submitPasswordReset!")}),R()(this,"onSubmitForm",async e=>{if(e.preventDefault(),await this._checkServerLiveliness(this.props.serverConfig),await this.password_field.validate({allowEmpty:!1}),this.state.email)if(this.state.password&&this.state.password2)if(this.state.passwordFieldValid)if(this.state.password!==this.state.password2)this.showErrorDialog(Object(c.a)("New passwords must match each other."));else{const e=d.getComponent("dialogs.QuestionDialog");Ge.a.createTrackedDialog("Forgot Password Warning","",e,{title:Object(c.a)("Warning!"),description:i.a.createElement("div",null,Object(c.a)("Changing your password will reset any end-to-end encryption keys on all of your sessions, making encrypted chat history unreadable. Set up Key Backup or export your room keys from another session before resetting your password.")),button:Object(c.a)("Continue"),onFinished:e=>{e&&this.submitPasswordReset(this.state.email,this.state.password)}})}else this.showErrorDialog(Object(c.a)("Please choose a strong password"));else this.showErrorDialog(Object(c.a)("A new password must be entered."));else this.showErrorDialog(Object(c.a)("The email address linked to your account must be entered."))}),R()(this,"onInputChanged",(e,t)=>{this.setState({[e]:t.target.value})}),R()(this,"onLoginClick",e=>{e.preventDefault(),e.stopPropagation(),this.props.onLoginClick()}),E.a.instance.track("onboarding_forgot_password_begin")}componentDidMount(){this.reset=null,this._checkServerLiveliness(this.props.serverConfig)}UNSAFE_componentWillReceiveProps(e){e.serverConfig.hsUrl===this.props.serverConfig.hsUrl&&e.serverConfig.isUrl===this.props.serverConfig.isUrl||this._checkServerLiveliness(e.serverConfig)}async _checkServerLiveliness(e){try{await po.b.validateServerConfigWithStaticUrls(e.hsUrl,e.isUrl),this.setState({serverIsAlive:!0})}catch(e){this.setState(po.b.authComponentStateForError(e,"forgot_password"))}}submitPasswordReset(e,t){this.setState({phase:2}),this.reset=new Ku(this.props.serverConfig.hsUrl,this.props.serverConfig.isUrl),this.reset.resetPassword(e,t).then(()=>{this.setState({phase:3})},e=>{this.showErrorDialog(Object(c.a)("Failed to send email")+": "+e.message),this.setState({phase:1})})}showErrorDialog(e,t){const n=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Forgot Password Error","",n,{title:t,description:e})}onPasswordValidate(e){this.setState({passwordFieldValid:e.valid})}renderForgot(){const e=d.getComponent("elements.Field");let t=null;const n=this.state.errorText;let o;if(n&&(t=i.a.createElement("div",{className:"mx_Login_error"},n)),!this.state.serverIsAlive){const e=P()({mx_Login_error:!0,mx_Login_serverError:!0,mx_Login_serverErrorNonFatal:!this.state.serverErrorIsFatal});o=i.a.createElement("div",{className:e},this.state.serverDeadError)}return i.a.createElement("div",null,t,o,i.a.createElement(Vo,{serverConfig:this.props.serverConfig,onServerConfigChange:this.props.onServerConfigChange}),i.a.createElement("form",{onSubmit:this.onSubmitForm},i.a.createElement("div",{className:"mx_AuthBody_fieldRow"},i.a.createElement(e,{name:"reset_email",type:"text",label:Object(c.a)("Email"),value:this.state.email,onChange:this.onInputChanged.bind(this,"email"),autoFocus:!0,onFocus:()=>E.a.instance.track("onboarding_forgot_password_email_focus"),onBlur:()=>E.a.instance.track("onboarding_forgot_password_email_blur")})),i.a.createElement("div",{className:"mx_AuthBody_fieldRow"},i.a.createElement(Xo.a,{name:"reset_password",type:"password",label:Object(c.b)("New Password"),value:this.state.password,minScore:3,onChange:this.onInputChanged.bind(this,"password"),fieldRef:e=>this.password_field=e,onValidate:e=>this.onPasswordValidate(e),onFocus:()=>E.a.instance.track("onboarding_forgot_password_newPassword_focus"),onBlur:()=>E.a.instance.track("onboarding_forgot_password_newPassword_blur"),autoComplete:"new-password"}),i.a.createElement(e,{name:"reset_password_confirm",type:"password",label:Object(c.a)("Confirm"),value:this.state.password2,onChange:this.onInputChanged.bind(this,"password2"),onFocus:()=>E.a.instance.track("onboarding_forgot_password_newPassword2_focus"),onBlur:()=>E.a.instance.track("onboarding_forgot_password_newPassword2_blur"),autoComplete:"new-password"})),i.a.createElement("span",null,Object(c.a)("A verification email will be sent to your inbox to confirm setting your new password.")),i.a.createElement("input",{className:"mx_Login_submit",type:"submit",value:Object(c.a)("Send Reset Email")})),i.a.createElement("a",{className:"mx_AuthBody_changeFlow",onClick:this.onLoginClick,href:"#"},Object(c.a)("Sign in instead")))}renderSendingEmail(){const e=d.getComponent("elements.Spinner");return i.a.createElement(e,null)}renderEmailSent(){return i.a.createElement("div",null,Object(c.a)("An email has been sent to %(emailAddress)s. Once you've followed the link it contains, click below.",{emailAddress:this.state.email}),i.a.createElement("br",null),i.a.createElement("input",{className:"mx_Login_submit",type:"button",onClick:this.onVerify,value:Object(c.a)("I have verified my email address")}))}renderDone(){return i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("Your password has been reset.")),i.a.createElement("p",null,Object(c.a)("You have been logged out of all sessions and will no longer receive push notifications. To re-enable notifications, sign in again on each device.")),i.a.createElement("input",{className:"mx_Login_submit",type:"button",onClick:this.props.onComplete,value:Object(c.a)("Return to login screen")}))}render(){const e=d.getComponent("auth.AuthHeader"),t=d.getComponent("auth.AuthBody");let n;switch(this.state.phase){case 1:n=this.renderForgot();break;case 2:n=this.renderSendingEmail();break;case 3:n=this.renderEmailSent();break;case 4:n=this.renderDone()}return i.a.createElement(mo,null,i.a.createElement(e,null),i.a.createElement(t,null,i.a.createElement("h2",null," ",Object(c.a)("Set a new password")," "),n))}},R()(Yu,"propTypes",{serverConfig:He.a.instanceOf(po.a).isRequired,onServerConfigChange:He.a.func.isRequired,onLoginClick:He.a.func,onComplete:He.a.func.isRequired}),Wu=$u))||Wu;var Ju,Xu,Zu,eh=n(257);const th=1,nh=2,oh=3,rh=4,ih=5,ah={"m.login.password":nh,"m.login.cas":oh,"m.login.sso":rh};let sh=Object(N.a)("structures.auth.SoftLogout")((Zu=Xu=class extends i.a.Component{constructor(){super(),R()(this,"onClearAll",()=>{const e=d.getComponent("dialogs.ConfirmWipeDeviceDialog");Ge.a.createTrackedDialog("Clear Data","Soft Logout",e,{onFinished:e=>{e&&(console.log("Clearing data from soft-logged-out session"),$o.i())}})}),R()(this,"onPasswordChange",e=>{this.setState({password:e.target.value})}),R()(this,"onForgotPassword",()=>{u.a.dispatch({action:"start_password_recovery"})}),R()(this,"onPasswordLogin",async e=>{e.preventDefault(),e.stopPropagation(),this.setState({busy:!0});const t=de.a.get().getHomeserverUrl(),n=de.a.get().getIdentityServerUrl(),o={identifier:{type:"m.id.user",user:de.a.get().getUserId()},password:this.state.password,device_id:de.a.get().getDeviceId()};let r=null;try{r=await Object(ho.c)(t,n,"m.login.password",o)}catch(e){let t=Object(c.a)("Failed to re-authenticate due to a homeserver problem");return"M_FORBIDDEN"!==e.errcode||401!==e.httpStatus&&403!==e.httpStatus||(t=Object(c.a)("Incorrect password")),void this.setState({busy:!1,errorText:t})}$o.e(r).catch(e=>{console.error(e),this.setState({busy:!1,errorText:Object(c.a)("Failed to re-authenticate")})})}),this.state={loginView:th,keyBackupNeeded:!0,busy:!1,password:"",errorText:""}}componentDidMount(){if(!$o.g())return void u.a.dispatch({action:"start_login"});this._initLogin();const e=de.a.get();e.isCryptoEnabled()&&e.countSessionsNeedingBackup().then(e=>{this.setState({keyBackupNeeded:e>0})})}async _initLogin(){const e=this.props.realQueryParams;if(e&&e.loginToken)return this.setState({loginView:th}),void this.trySsoLogin();const t=de.a.get(),n=(await t.loginFlows()).flows,o=n.map(e=>ah[e.type]).filter(e=>!!e)[0]||ih;this.setState({flows:n,loginView:o})}async trySsoLogin(){this.setState({busy:!0});const e=localStorage.getItem(eh.a),t=localStorage.getItem(eh.c)||de.a.get().getIdentityServerUrl(),n={token:this.props.realQueryParams.loginToken,device_id:de.a.get().getDeviceId()};let o=null;try{o=await Object(ho.c)(e,t,"m.login.token",n)}catch(e){return console.error(e),void this.setState({busy:!1,loginView:ih})}$o.e(o).then(()=>{this.props.onTokenLoginCompleted&&this.props.onTokenLoginCompleted()}).catch(e=>{console.error(e),this.setState({busy:!1,loginView:ih})})}_renderSignInSection(){if(this.state.loginView===th){const e=d.getComponent("elements.Spinner");return i.a.createElement(e,null)}let e=null;if(this.state.keyBackupNeeded&&(e=Object(c.a)("Regain access to your account and recover encryption keys stored in this session. Without them, you won’t be able to read all of your secure messages in any session.")),this.state.loginView===nh){const t=d.getComponent("elements.Field"),n=d.getComponent("elements.AccessibleButton");let o=null;return this.state.errorText&&(o=i.a.createElement("span",{className:"mx_Login_error"},this.state.errorText)),e||(e=Object(c.a)("Enter your password to sign in and regain access to your account.")),i.a.createElement("form",{onSubmit:this.onPasswordLogin},i.a.createElement("p",null,e),o,i.a.createElement(t,{type:"password",label:Object(c.a)("Password"),onChange:this.onPasswordChange,value:this.state.password,disabled:this.state.busy}),i.a.createElement(n,{onClick:this.onPasswordLogin,kind:"primary",type:"submit",disabled:this.state.busy},Object(c.a)("Sign In")),i.a.createElement(n,{onClick:this.onForgotPassword,kind:"link"},Object(c.a)("Forgotten your password?")))}if(this.state.loginView===rh||this.state.loginView===oh){e||(e=Object(c.a)("Sign in and regain access to your account."));const t=this.state.loginView===oh?"cas":"sso",n=this.state.flows.find(e=>e.type==="m.login."+t);return i.a.createElement("div",null,i.a.createElement("p",null,e),i.a.createElement(Po,{matrixClient:de.a.get(),flow:n,loginType:t,fragmentAfterLogin:this.props.fragmentAfterLogin,primary:!this.state.flows.find(e=>"m.login.password"===e.type)}))}return i.a.createElement("p",null,Object(c.a)("You cannot sign in to your account. Please contact your homeserver admin for more information."))}render(){const e=d.getComponent("auth.AuthHeader"),t=d.getComponent("auth.AuthBody"),n=d.getComponent("elements.AccessibleButton");return i.a.createElement(mo,null,i.a.createElement(e,null),i.a.createElement(t,null,i.a.createElement("h2",null,Object(c.a)("You're signed out")),i.a.createElement("h3",null,Object(c.a)("Sign in")),i.a.createElement("div",null,this._renderSignInSection()),i.a.createElement("h3",null,Object(c.a)("Clear personal data")),i.a.createElement("p",null,Object(c.a)("Warning: Your personal data (including encryption keys) is still stored in this session. Clear it if you're finished using this session, or want to sign in to another account.")),i.a.createElement("div",null,i.a.createElement(n,{onClick:this.onClearAll,kind:"danger"},Object(c.a)("Clear all data")))))}},R()(Xu,"propTypes",{realQueryParams:He.a.object,onTokenLoginCompleted:He.a.func}),Ju=Zu))||Ju;var ch;let lh=Object(N.a)("views.auth.AuthBody")(ch=class extends i.a.PureComponent{render(){return i.a.createElement("div",{className:"mx_AuthBody"},this.props.children)}})||ch;var dh;let uh=Object(N.a)("views.auth.AuthFooter")(dh=class extends i.a.Component{render(){return i.a.createElement("div",{className:"mx_AuthFooter"},i.a.createElement("a",{href:"https://matrix.org",target:"_blank",rel:"noreferrer noopener"},Object(c.a)("powered by Matrix")))}})||dh;var hh,ph,mh;let gh=Object(N.a)("views.auth.AuthHeader")((mh=ph=class extends i.a.Component{render(){const e=d.getComponent("auth.AuthHeaderLogo"),t=d.getComponent("views.auth.LanguageSelector");return i.a.createElement("div",{className:"mx_AuthHeader"},i.a.createElement(e,null),i.a.createElement(t,{disabled:this.props.disableLanguageSelector}))}},R()(ph,"propTypes",{disableLanguageSelector:He.a.bool}),hh=mh))||hh;var fh;let _h=Object(N.a)("views.auth.AuthHeaderLogo")(fh=class extends i.a.PureComponent{render(){return i.a.createElement("div",{className:"mx_AuthHeaderLogo"},"Matrix")}})||fh;var bh,vh=n(1352);function yh(e){Object(c.d)()!==e&&(G.b.setValue("language",null,tt.a.DEVICE,e),tn.a.get().reload())}function Eh({disabled:e}){if(l.a.get().disable_login_language_selector)return i.a.createElement("div",null);const t=d.getComponent("views.elements.LanguageDropdown");return i.a.createElement(t,{className:"mx_AuthBody_language",onOptionChange:yh,value:Object(c.d)(),disabled:e})}Object(c.b)("Sign in with SSO");let Sh=Object(N.a)("views.auth.Welcome")(bh=class extends i.a.PureComponent{constructor(e){super(e),E.a.instance.track("onboarding_welcome")}render(){const e=d.getComponent("structures.EmbeddedPage"),t=d.getComponent("auth.LanguageSelector"),n=l.a.get().embeddedPages;let o=null;return n&&(o=n.welcomeUrl),o||(o="welcome.html"),i.a.createElement(mo,null,i.a.createElement("div",{className:P()("mx_Welcome",{mx_WelcomePage_registrationDisabled:!G.b.getValue(lt.a.Registration)})},i.a.createElement(e,{className:"mx_WelcomePage",url:o,replaceMap:{"$riot:ssoUrl":"#/start_sso","$riot:casUrl":"#/start_cas"}}),i.a.createElement(t,null)))}})||bh;var wh,Ch,Th;let xh=Object(N.a)("views.context_menus.StatusMessageContextMenu")((Th=Ch=class extends i.a.Component{constructor(e){super(e),R()(this,"_onStatusMessageCommitted",()=>{this.setState({message:this.comittedStatusMessage,waiting:!1})}),R()(this,"_onClearClick",e=>{de.a.get()._unstable_setStatusMessage(""),this.setState({waiting:!0})}),R()(this,"_onSubmit",e=>{e.preventDefault(),de.a.get()._unstable_setStatusMessage(this.state.message),this.setState({waiting:!0})}),R()(this,"_onStatusChange",e=>{this.setState({message:e.target.value})}),this.state={message:this.comittedStatusMessage}}componentDidMount(){const{user:e}=this.props;e&&e.on("User._unstable_statusMessage",this._onStatusMessageCommitted)}componentWillUnmount(){const{user:e}=this.props;e&&e.removeListener("User._unstable_statusMessage",this._onStatusMessageCommitted)}get comittedStatusMessage(){return this.props.user?this.props.user._unstable_statusMessage:""}render(){const e=d.getComponent("views.elements.Spinner");let t;t=this.comittedStatusMessage?this.state.message===this.comittedStatusMessage?i.a.createElement(g.a,{className:"mx_StatusMessageContextMenu_clear",onClick:this._onClearClick},i.a.createElement("span",null,Object(c.a)("Clear status"))):i.a.createElement(g.a,{className:"mx_StatusMessageContextMenu_submit",onClick:this._onSubmit},i.a.createElement("span",null,Object(c.a)("Update status"))):i.a.createElement(g.a,{className:"mx_StatusMessageContextMenu_submit",disabled:!this.state.message,onClick:this._onSubmit},i.a.createElement("span",null,Object(c.a)("Set status")));let n=null;this.state.waiting&&(n=i.a.createElement(e,{w:"24",h:"24"}));const o=i.a.createElement("form",{className:"mx_StatusMessageContextMenu_form",autoComplete:"off",onSubmit:this._onSubmit},i.a.createElement("input",{type:"text",className:"mx_StatusMessageContextMenu_message",key:"message",placeholder:Object(c.a)("Set a new status..."),autoFocus:!0,maxLength:"60",value:this.state.message,onChange:this._onStatusChange}),i.a.createElement("div",{className:"mx_StatusMessageContextMenu_actionContainer"},t,n));return i.a.createElement("div",{className:"mx_StatusMessageContextMenu"},o)}},R()(Ch,"propTypes",{user:He.a.object}),wh=Th))||wh;var Oh,kh,Rh;let Dh=Object(N.a)("views.avatars.MemberStatusMessageAvatar")((Rh=kh=class extends i.a.Component{constructor(e){super(e),R()(this,"_onStatusMessageCommitted",()=>{this.setState({hasStatus:this.hasStatus})}),R()(this,"openMenu",()=>{this.setState({menuDisplayed:!0})}),R()(this,"closeMenu",()=>{this.setState({menuDisplayed:!1})}),this.state={hasStatus:this.hasStatus,menuDisplayed:!1},this._button=Object(r.createRef)()}componentDidMount(){if(this.props.member.userId!==de.a.get().getUserId())throw new Error("Cannot use MemberStatusMessageAvatar on anyone but the logged in user");if(!G.b.getValue("feature_custom_status"))return;const{user:e}=this.props.member;e&&e.on("User._unstable_statusMessage",this._onStatusMessageCommitted)}componentWillUnmount(){const{user:e}=this.props.member;e&&e.removeListener("User._unstable_statusMessage",this._onStatusMessageCommitted)}get hasStatus(){const{user:e}=this.props.member;return!!e&&!!e._unstable_statusMessage}render(){const e=i.a.createElement(lr.a,{member:this.props.member,width:this.props.width,height:this.props.height,resizeMethod:this.props.resizeMethod});if(!G.b.getValue("feature_custom_status"))return e;const t=P()({mx_MemberStatusMessageAvatar:!0,mx_MemberStatusMessageAvatar_hasStatus:this.state.hasStatus});let n;if(this.state.menuDisplayed){const e=this._button.current.getBoundingClientRect(),t=16,r=1;n=i.a.createElement(o.b,{chevronOffset:(e.width-t)/2,chevronFace:"bottom",left:e.left+window.pageXOffset,top:e.top+window.pageYOffset-r,menuWidth:226,onFinished:this.closeMenu},i.a.createElement(xh,{user:this.props.member.user,onFinished:this.closeMenu}))}return i.a.createElement(i.a.Fragment,null,i.a.createElement(o.c,{className:t,inputRef:this._button,onClick:this.openMenu,isExpanded:this.state.menuDisplayed,label:Object(c.a)("User Status")},e),n)}},R()(kh,"propTypes",{member:He.a.object.isRequired,width:He.a.number,height:He.a.number,resizeMethod:He.a.string}),R()(kh,"defaultProps",{width:40,height:40,resizeMethod:"crop"}),Oh=Rh))||Oh;var Ih,Ah,Nh;let Fh=Object(N.a)("views.context_menus.GenericElementContextMenu")((Nh=Ah=class extends i.a.Component{constructor(e){super(e),this.resize=this.resize.bind(this)}componentDidMount(){this.resize=this.resize.bind(this),window.addEventListener("resize",this.resize)}componentWillUnmount(){window.removeEventListener("resize",this.resize)}resize(){this.props.onResize&&this.props.onResize()}render(){return i.a.createElement("div",null,this.props.element)}},R()(Ah,"propTypes",{element:He.a.element.isRequired,onResize:He.a.func}),Ih=Nh))||Ih;var Mh,Ph,Lh;let jh=Object(N.a)("views.context_menus.GenericTextContextMenu")((Lh=Ph=class extends i.a.Component{render(){return i.a.createElement("div",null,this.props.message)}},R()(Ph,"propTypes",{message:He.a.string.isRequired}),Mh=Lh))||Mh;var Uh,Bh,qh;let Gh=Object(N.a)("views.context_menus.GroupInviteTileContextMenu")((qh=Bh=class extends i.a.Component{constructor(e){super(e),this._onClickReject=this._onClickReject.bind(this)}componentDidMount(){this._unmounted=!1}componentWillUnmount(){this._unmounted=!0}_onClickReject(){const e=d.getComponent("dialogs.QuestionDialog");Ge.a.createTrackedDialog("Reject community invite","",e,{title:Object(c.a)("Reject invitation"),description:Object(c.a)("Are you sure you want to reject the invitation?"),onFinished:async e=>{if(!e)return;const t=d.getComponent("elements.Spinner"),n=Ge.a.createDialog(t,null,"mx_Dialog_spinner");try{await ba.a.leaveGroup(this.props.group.groupId)}catch(e){console.error("Error rejecting community invite: ",e);const t=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Error rejecting invite","",t,{title:Object(c.a)("Error"),description:Object(c.a)("Unable to reject invite")})}finally{n.close()}}}),this.props.onFinished&&this.props.onFinished()}render(){return i.a.createElement("div",null,i.a.createElement(o.f,{className:"mx_RoomTileContextMenu_leave",onClick:this._onClickReject},i.a.createElement("img",{className:"mx_RoomTileContextMenu_tag_icon",src:n(1353),width:"15",height:"15",alt:""}),Object(c.a)("Reject")))}},R()(Bh,"propTypes",{group:He.a.instanceOf(hd.a).isRequired,onFinished:He.a.func}),Uh=qh))||Uh;var Vh,Hh,zh,Kh=n(622);let Wh=Object(N.a)("views.context_menus.TagTileContextMenu")((zh=Hh=class extends i.a.Component{constructor(){super(),this._onViewCommunityClick=this._onViewCommunityClick.bind(this),this._onRemoveClick=this._onRemoveClick.bind(this)}_onViewCommunityClick(){u.a.dispatch({action:"view_group",group_id:this.props.tag}),this.props.onFinished()}_onRemoveClick(){u.a.dispatch(Kt.removeTag(this.context,this.props.tag)),this.props.onFinished()}render(){return i.a.createElement("div",null,i.a.createElement(o.f,{className:"mx_TagTileContextMenu_item mx_TagTileContextMenu_viewCommunity",onClick:this._onViewCommunityClick},Object(c.a)("View Community")),i.a.createElement("hr",{className:"mx_TagTileContextMenu_separator",role:"separator"}),i.a.createElement(o.f,{className:"mx_TagTileContextMenu_item mx_TagTileContextMenu_hideCommunity",onClick:this._onRemoveClick},Object(c.a)("Hide")))}},R()(Hh,"propTypes",{tag:He.a.string.isRequired,onFinished:He.a.func.isRequired}),R()(Hh,"contextType",b.a),Vh=zh))||Vh;var Yh,$h,Qh,Jh=n(196);const Xh={"mx-user-id":Object(c.b)("Matrix ID"),"mx-room-id":Object(c.b)("Matrix Room ID"),email:Object(c.b)("email address")};let Zh=Object(N.a)("views.dialogs.AddressPickerDialog")((Qh=$h=class extends i.a.Component{constructor(e){super(e),R()(this,"onButtonClick",()=>{let e=this.state.selectedList.slice();""!==this._textinput.current.value&&(e=this._addAddressesToList([this._textinput.current.value]),null===e)||this.props.onFinished(!0,e)}),R()(this,"onCancel",()=>{this.props.onFinished(!1)}),R()(this,"onKeyDown",e=>{const t=this._textinput.current?this._textinput.current.value:void 0;e.key===bt.a.ESCAPE?(e.stopPropagation(),e.preventDefault(),this.props.onFinished(!1)):e.key===bt.a.ARROW_UP?(e.stopPropagation(),e.preventDefault(),this.addressSelector&&this.addressSelector.moveSelectionUp()):e.key===bt.a.ARROW_DOWN?(e.stopPropagation(),e.preventDefault(),this.addressSelector&&this.addressSelector.moveSelectionDown()):this.state.suggestedList.length>0&&[bt.a.COMMA,bt.a.ENTER,bt.a.TAB].includes(e.key)?(e.stopPropagation(),e.preventDefault(),this.addressSelector&&this.addressSelector.chooseSelection()):0===t.length&&this.state.selectedList.length&&e.key===bt.a.BACKSPACE?(e.stopPropagation(),e.preventDefault(),this.onDismissed(this.state.selectedList.length-1)()):e.key===bt.a.ENTER?(e.stopPropagation(),e.preventDefault(),""===t?this.onButtonClick():this._addAddressesToList([t])):!t||e.key!==bt.a.COMMA&&e.key!==bt.a.TAB||(e.stopPropagation(),e.preventDefault(),this._addAddressesToList([t]))}),R()(this,"onQueryChanged",e=>{const t=e.target.value;this.queryChangedDebouncer&&clearTimeout(this.queryChangedDebouncer),t.length>0&&"@"!==t&&t.length>=2?this.queryChangedDebouncer=setTimeout(()=>{"user"===this.props.pickerType?this.props.groupId?this._doNaiveGroupSearch(t):this.state.serverSupportsUserDirectory?this._doUserDirectorySearch(t):this._doLocalSearch(t):"room"===this.props.pickerType?this.props.groupId?this._doNaiveGroupRoomSearch(t):this._doRoomSearch(t):console.error("Unknown pickerType",this.props.pickerType)},200):this.setState({suggestedList:[],query:"",searchError:null})}),R()(this,"onDismissed",e=>()=>{const t=this.state.selectedList.slice();t.splice(e,1),this.setState({selectedList:t,suggestedList:[],query:""}),this._cancelThreepidLookup&&this._cancelThreepidLookup()}),R()(this,"onClick",e=>()=>{this.onSelected(e)}),R()(this,"onSelected",e=>{const t=this.state.selectedList.slice();t.push(this._getFilteredSuggestions()[e]),this.setState({selectedList:t,suggestedList:[],query:""}),this._cancelThreepidLookup&&this._cancelThreepidLookup()}),R()(this,"_onPaste",e=>{e.preventDefault();const t=e.clipboardData.getData("text");this._addAddressesToList(t.split(/[\s,]+/))}),R()(this,"onUseDefaultIdentityServerClick",e=>{e.preventDefault(),Object(us.d)();const{validAddressTypes:t}=this.state;t.push("email"),this.setState({validAddressTypes:t})}),R()(this,"onManageSettingsClick",e=>{e.preventDefault(),u.a.fire(h.a.ViewUserSettings),this.onCancel()}),this._textinput=Object(r.createRef)();let t=this.props.validAddressTypes;!de.a.get().getIdentityServerUrl()&&t.includes("email")&&(t=t.filter(e=>"email"!==e)),this.state={invalidAddressError:!1,selectedList:[],busy:!1,searchError:null,serverSupportsUserDirectory:!0,query:"",suggestedList:[],validAddressTypes:t}}componentDidMount(){this.props.focus&&(this._textinput.current.value=this.props.value)}getPlaceholder(){const{placeholder:e}=this.props;return"string"==typeof e?e:e(this.state.validAddressTypes)}_doNaiveGroupSearch(e){const t=e.toLowerCase();this.setState({busy:!0,query:e,searchError:null}),de.a.get().getGroupUsers(this.props.groupId).then(n=>{const o=[];n.chunk.forEach(e=>{const n=e.user_id.toLowerCase().includes(t),r=(e.displayname||"").toLowerCase().includes(t);(n||r)&&o.push({user_id:e.user_id,avatar_url:e.avatar_url,display_name:e.displayname})}),this._processResults(o,e)}).catch(e=>{console.error("Error whilst searching group rooms: ",e),this.setState({searchError:e.errcode?e.message:Object(c.a)("Something went wrong!")})}).then(()=>{this.setState({busy:!1})})}_doNaiveGroupRoomSearch(e){const t=e.toLowerCase(),n=[];ba.a.getGroupRooms(this.props.groupId).forEach(e=>{const o=(e.name||"").toLowerCase().includes(t),r=(e.topic||"").toLowerCase().includes(t),i=(e.canonical_alias||"").toLowerCase().includes(t);(o||r||i)&&n.push({room_id:e.room_id,avatar_url:e.avatar_url,name:e.name||e.canonical_alias})}),this._processResults(n,e),this.setState({busy:!1})}_doRoomSearch(e){const t=e.toLowerCase(),n=de.a.get().getRooms(),o=[];n.forEach(e=>{let n=1/0;const r=e.currentState.getStateEvents("m.room.name",""),i=r?r.getContent().name:"",a=e.getCanonicalAlias(),s=e.currentState.getStateEvents("m.room.aliases").map(e=>e.getContent().aliases).reduce((e,t)=>e.concat(t),[]),l=(i||"").toLowerCase().includes(t);let d=!1,u=1/0;if(s.forEach(e=>{(e||"").toLowerCase().includes(t)&&(d=!0,u>e.length&&(u=e.length))}),!l&&!d)return;d&&(n=u);const h=e.currentState.getStateEvents("m.room.avatar",""),p=h?h.getContent().url:void 0;o.push({rank:n,room_id:e.roomId,avatar_url:p,name:i||a||s[0]||Object(c.a)("Unnamed Room")})});const r=o.sort((e,t)=>e.rank-t.rank);this._processResults(r,e),this.setState({busy:!1})}_doUserDirectorySearch(e){this.setState({busy:!0,query:e,searchError:null}),de.a.get().searchUserDirectory({term:e}).then(t=>{this.state.query===e&&this._processResults(t.results,e)}).catch(t=>{console.error("Error whilst searching user directory: ",t),this.setState({searchError:t.errcode?t.message:Object(c.a)("Something went wrong!")}),"M_UNRECOGNIZED"===t.errcode&&(this.setState({serverSupportsUserDirectory:!1}),this._doLocalSearch(e))}).then(()=>{this.setState({busy:!1})})}_doLocalSearch(e){this.setState({query:e,searchError:null});const t=e.toLowerCase(),n=[];de.a.get().getUsers().forEach(e=>{-1===e.userId.toLowerCase().indexOf(t)&&-1===e.displayName.toLowerCase().indexOf(t)||n.push({user_id:e.userId,display_name:e.displayName,avatar_url:e.avatarUrl})}),this._processResults(n,e)}_processResults(e,t){const n=[];e.forEach(e=>{if(e.room_id){const t=de.a.get(),o=t.getRoom(e.room_id);if(o){const e=o.currentState.getStateEvents("m.room.tombstone","");if(e&&e.getContent()&&e.getContent().replacement_room){if(t.getRoom(e.getContent().replacement_room))return}}n.push({addressType:"mx-room-id",address:e.room_id,displayName:e.name,avatarMxc:e.avatar_url,isKnown:!0})}else(this.props.includeSelf||e.user_id!==de.a.get().credentials.userId)&&n.push({addressType:"mx-user-id",address:e.user_id,displayName:e.display_name,avatarMxc:e.avatar_url,isKnown:!0})});const o=Object(ls.c)(t);if(this.state.validAddressTypes.includes(o)){if("email"===o&&!fo.a(t))return void this.setState({searchError:Object(c.a)("That doesn't look like a valid email address")});n.unshift({addressType:o,address:t,isKnown:!1}),this._cancelThreepidLookup&&this._cancelThreepidLookup(),"email"===o&&this._lookupThreepid(o,t)}this.setState({suggestedList:n,invalidAddressError:!1},()=>{this.addressSelector&&this.addressSelector.moveSelectionTop()})}_addAddressesToList(e){const t=this.state.selectedList.slice();let n=!1;return e.forEach(e=>{e=e.trim();const o=Object(ls.c)(e),r={addressType:o,address:e,isKnown:!1};if(this.state.validAddressTypes.includes(o)){if("mx-user-id"===o){const e=de.a.get().getUser(r.address);e&&(r.displayName=e.displayName,r.avatarMxc=e.avatarUrl,r.isKnown=!0)}else if("mx-room-id"===o){const e=de.a.get().getRoom(r.address);e&&(r.displayName=e.name,r.avatarMxc=e.avatarUrl,r.isKnown=!0)}}else n=!0;t.push(r)}),this.setState({selectedList:t,suggestedList:[],query:"",invalidAddressError:!!n||this.state.invalidAddressError}),this._cancelThreepidLookup&&this._cancelThreepidLookup(),n?null:t}async _lookupThreepid(e,t){let n=!1;if(this._cancelThreepidLookup=function(){n=!0},await Object(Vs.d)(500),n)return null;try{const o=new Jh.a,r=await o.getAccessToken();if(n)return null;const i=await de.a.get().lookupThreePid(e,t,void 0,r);if(n||null===i||!i.mxid)return null;const a=await de.a.get().getProfileInfo(i.mxid);if(n||null===a)return null;this.setState({suggestedList:[{addressType:e,address:t,displayName:a.displayname,avatarMxc:a.avatar_url,isKnown:!0}]})}catch(e){console.error(e),this.setState({searchError:Object(c.a)("Something went wrong!")})}}_getFilteredSuggestions(){const e={};return this.state.selectedList.forEach(({address:t,addressType:n})=>{e[n]||(e[n]=new Set),e[n].add(t)}),this.state.suggestedList.filter(({address:t,addressType:n})=>!(e[n]&&e[n].has(t)))}render(){const e=d.getComponent("views.dialogs.BaseDialog"),t=d.getComponent("views.elements.DialogButtons"),n=d.getComponent("elements.AddressSelector");let o;this.scrollElement=null,this.props.description&&(o=i.a.createElement("div",{className:"mx_AddressPickerDialog_label"},i.a.createElement("label",{htmlFor:"textinput"},this.props.description)));const r=[];if(this.state.selectedList.length>0){const e=d.getComponent("elements.AddressTile");for(let t=0;t<this.state.selectedList.length;t++)r.push(i.a.createElement(e,{key:t,address:this.state.selectedList[t],canDismiss:!0,onDismissed:this.onDismissed(t),showAddress:"user"===this.props.pickerType}))}r.push(i.a.createElement("textarea",{key:this.state.selectedList.length,onPaste:this._onPaste,rows:"1",id:"textinput",ref:this._textinput,className:"mx_AddressPickerDialog_input",onChange:this.onQueryChanged,placeholder:this.getPlaceholder(),defaultValue:this.props.value,autoFocus:this.props.focus}));const a=this._getFilteredSuggestions();let s,l,u;if(this.state.invalidAddressError){const e=this.state.validAddressTypes.map(e=>Object(c.a)(Xh[e]));s=i.a.createElement("div",{className:"mx_AddressPickerDialog_error"},Object(c.a)("You have entered an invalid address."),i.a.createElement("br",null),Object(c.a)("Try using one of the following valid address types: %(validTypesList)s.",{validTypesList:e.join(", ")}))}else this.state.searchError?s=i.a.createElement("div",{className:"mx_AddressPickerDialog_error"},this.state.searchError):this.state.query.length>0&&0===a.length&&!this.state.busy?s=i.a.createElement("div",{className:"mx_AddressPickerDialog_error"},Object(c.a)("No results")):l=i.a.createElement(n,{ref:e=>{this.addressSelector=e},addressList:a,showAddress:"user"===this.props.pickerType,onSelected:this.onSelected,truncateAt:40});if("user"===this.props.pickerType&&!this.state.validAddressTypes.includes("email")&&this.props.validAddressTypes.includes("email")){const e=Object(us.c)();u=e?i.a.createElement("div",{className:"mx_AddressPickerDialog_identityServer"},Object(c.a)("Use an identity server to invite by email. <default>Use the default (%(defaultIdentityServerName)s)</default> or manage in <settings>Settings</settings>.",{defaultIdentityServerName:Object(ds.a)(e)},{default:e=>i.a.createElement("a",{href:"#",onClick:this.onUseDefaultIdentityServerClick},e),settings:e=>i.a.createElement("a",{href:"#",onClick:this.onManageSettingsClick},e)})):i.a.createElement("div",{className:"mx_AddressPickerDialog_identityServer"},Object(c.a)("Use an identity server to invite by email. Manage in <settings>Settings</settings>.",{},{settings:e=>i.a.createElement("a",{href:"#",onClick:this.onManageSettingsClick},e)}))}return i.a.createElement(e,{className:"mx_AddressPickerDialog",onKeyDown:this.onKeyDown,onFinished:this.props.onFinished,title:this.props.title},o,i.a.createElement("div",{className:"mx_Dialog_content"},i.a.createElement("div",{className:"mx_AddressPickerDialog_inputContainer"},r),s,l,this.props.extraNode,u),i.a.createElement(t,{primaryButton:this.props.button,onPrimaryButtonClick:this.onButtonClick,onCancel:this.onCancel}))}},R()($h,"propTypes",{title:He.a.string.isRequired,description:He.a.node,extraNode:He.a.node,value:He.a.string,placeholder:He.a.oneOfType([He.a.string,He.a.func]),roomId:He.a.string,button:He.a.string,focus:He.a.bool,validAddressTypes:He.a.arrayOf(He.a.oneOf(ls.b)),onFinished:He.a.func.isRequired,groupId:He.a.string,pickerType:He.a.oneOf(["user","room"]),includeSelf:He.a.bool}),R()($h,"defaultProps",{value:"",focus:!0,validAddressTypes:ls.b,pickerType:"user",includeSelf:!1}),Yh=Qh))||Yh;var ep,tp,np;let op=Object(N.a)("views.dialogs.AskInviteAnywayDialog")((np=tp=class extends i.a.Component{constructor(...e){super(...e),R()(this,"_onInviteClicked",()=>{this.props.onInviteAnyways(),this.props.onFinished(!0)}),R()(this,"_onInviteNeverWarnClicked",()=>{G.b.setValue("promptBeforeInviteUnknownUsers",null,tt.a.ACCOUNT,!1),this.props.onInviteAnyways(),this.props.onFinished(!0)}),R()(this,"_onGiveUpClicked",()=>{this.props.onGiveUp(),this.props.onFinished(!1)})}render(){const e=d.getComponent("views.dialogs.BaseDialog"),t=this.props.unknownProfileUsers.map(e=>i.a.createElement("li",{key:e.userId},e.userId,": ",e.errorText));return i.a.createElement(e,{className:"mx_RetryInvitesDialog",onFinished:this._onGiveUpClicked,title:Object(c.a)("The following users may not exist"),contentId:"mx_Dialog_content"},i.a.createElement("div",{id:"mx_Dialog_content"},i.a.createElement("p",null,Object(c.a)("Unable to find profiles for the Matrix IDs listed below - would you like to invite them anyway?")),i.a.createElement("ul",null,t)),i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement("button",{onClick:this._onGiveUpClicked},Object(c.a)("Close")),i.a.createElement("button",{onClick:this._onInviteNeverWarnClicked},Object(c.a)("Invite anyway and never warn me again")),i.a.createElement("button",{onClick:this._onInviteClicked,autoFocus:!0},Object(c.a)("Invite anyway"))))}},R()(tp,"propTypes",{unknownProfileUsers:He.a.array.isRequired,onInviteAnyways:He.a.func.isRequired,onGiveUp:He.a.func.isRequired,onFinished:He.a.func.isRequired}),ep=np))||ep;var rp,ip=n(663);let ap=Object(N.a)("views.dialogs.ConfirmAndWaitRedactDialog")(rp=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"onParentFinished",async e=>{if(e){this.setState({isRedacting:!0});try{await this.props.redact(),this.props.onFinished(!0)}catch(e){const t=e.errcode||e.statusCode;void 0!==t?this.setState({redactionErrorCode:t}):this.props.onFinished(!0)}}else this.props.onFinished(!1)}),this.state={isRedacting:!1,redactionErrorCode:null}}render(){if(this.state.isRedacting){if(this.state.redactionErrorCode){const e=d.getComponent("dialogs.ErrorDialog"),t=this.state.redactionErrorCode;return i.a.createElement(e,{onFinished:this.props.onFinished,title:Object(c.a)("Error"),description:Object(c.a)("You cannot delete this message. (%(code)s)",{code:t})})}{const e=d.getComponent("dialogs.BaseDialog"),t=d.getComponent("elements.Spinner");return i.a.createElement(e,{onFinished:this.props.onFinished,hasCancel:!1,title:Object(c.a)("Removing…")},i.a.createElement(t,null))}}{const e=d.getComponent("dialogs.ConfirmRedactDialog");return i.a.createElement(e,{onFinished:this.onParentFinished})}}})||rp;var sp;let cp=Object(N.a)("views.dialogs.ConfirmRedactDialog")(sp=class extends i.a.Component{render(){const e=d.getComponent("views.dialogs.TextInputDialog");return i.a.createElement(e,{onFinished:this.props.onFinished,title:Object(c.a)("Confirm Removal"),description:Object(c.a)("Are you sure you wish to remove (delete) this event? Note that if you delete a room name or topic change, it could undo the change."),placeholder:Object(c.a)("Reason (optional)"),focus:!0,button:Object(c.a)("Remove")})}})||sp;var lp,dp,up;let hp=Object(N.a)("views.dialogs.ConfirmWipeDeviceDialog")((up=dp=class extends i.a.Component{constructor(...e){super(...e),R()(this,"_onConfirm",()=>{this.props.onFinished(!0)}),R()(this,"_onDecline",()=>{this.props.onFinished(!1)})}render(){const e=d.getComponent("views.dialogs.BaseDialog"),t=d.getComponent("views.elements.DialogButtons");return i.a.createElement(e,{className:"mx_ConfirmWipeDeviceDialog",hasCancel:!0,onFinished:this.props.onFinished,title:Object(c.a)("Clear all data in this session?")},i.a.createElement("div",{className:"mx_ConfirmWipeDeviceDialog_content"},i.a.createElement("p",null,Object(c.a)("Clearing all data from this session is permanent. Encrypted messages will be lost unless their keys have been backed up."))),i.a.createElement(t,{primaryButton:Object(c.a)("Clear all data"),onPrimaryButtonClick:this._onConfirm,primaryButtonClass:"danger",cancelButton:Object(c.a)("Cancel"),onCancel:this._onDecline}))}},R()(dp,"propTypes",{onFinished:He.a.func.isRequired}),lp=up))||lp;var pp,mp,gp;let fp=Object(N.a)("views.dialogs.CreateGroupDialog")((gp=mp=class extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{groupName:"",groupId:"",groupError:null,creating:!1,createError:null}),R()(this,"_onGroupNameChange",e=>{this.setState({groupName:e.target.value})}),R()(this,"_onGroupIdChange",e=>{this.setState({groupId:e.target.value})}),R()(this,"_onGroupIdBlur",e=>{this._checkGroupId()}),R()(this,"_onFormSubmit",e=>{if(e.preventDefault(),this._checkGroupId())return;const t={};""!==this.state.groupName&&(t.name=this.state.groupName),this.setState({creating:!0}),de.a.get().createGroup({localpart:this.state.groupId,profile:t}).then(e=>{u.a.dispatch({action:"view_group",group_id:e.group_id,group_is_new:!0}),this.props.onFinished(!0)}).catch(e=>{this.setState({createError:e})}).finally(()=>{this.setState({creating:!1})})}),R()(this,"_onCancel",()=>{this.props.onFinished(!1)})}_checkGroupId(e){let t=null;return this.state.groupId?/^[a-z0-9=_\-./]*$/.test(this.state.groupId)||(t=Object(c.a)("Community IDs may only contain characters a-z, 0-9, or '=_-./'")):t=Object(c.a)("Community IDs cannot be empty."),this.setState({groupIdError:t,createError:null}),t}render(){const e=d.getComponent("views.dialogs.BaseDialog"),t=d.getComponent("elements.Spinner");if(this.state.creating)return i.a.createElement(t,null);let n;return this.state.createError&&(n=i.a.createElement("div",{className:"error",role:"alert"},i.a.createElement("div",null,Object(c.a)("Something went wrong whilst creating your community")),i.a.createElement("div",null,this.state.createError.message))),i.a.createElement(e,{className:"mx_CreateGroupDialog",onFinished:this.props.onFinished,title:Object(c.a)("Create Community")},i.a.createElement("form",{onSubmit:this._onFormSubmit},i.a.createElement("div",{className:"mx_Dialog_content"},i.a.createElement("div",{className:"mx_CreateGroupDialog_inputRow"},i.a.createElement("div",{className:"mx_CreateGroupDialog_label"},i.a.createElement("label",{htmlFor:"groupname"},Object(c.a)("Community Name"))),i.a.createElement("div",null,i.a.createElement("input",{id:"groupname",className:"mx_CreateGroupDialog_input",autoFocus:!0,size:"64",placeholder:Object(c.a)("Example"),onChange:this._onGroupNameChange,value:this.state.groupName}))),i.a.createElement("div",{className:"mx_CreateGroupDialog_inputRow"},i.a.createElement("div",{className:"mx_CreateGroupDialog_label"},i.a.createElement("label",{htmlFor:"groupid"},Object(c.a)("Community ID"))),i.a.createElement("div",{className:"mx_CreateGroupDialog_input_group"},i.a.createElement("span",{className:"mx_CreateGroupDialog_prefix"},"+"),i.a.createElement("input",{id:"groupid",className:"mx_CreateGroupDialog_input mx_CreateGroupDialog_input_hasPrefixAndSuffix",size:"32",placeholder:Object(c.a)("example"),onChange:this._onGroupIdChange,onBlur:this._onGroupIdBlur,value:this.state.groupId}),i.a.createElement("span",{className:"mx_CreateGroupDialog_suffix"},":",de.a.get().getDomain()))),i.a.createElement("div",{className:"error"},this.state.groupIdError),n),i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement("input",{type:"submit",value:Object(c.a)("Create"),className:"mx_Dialog_primary"}),i.a.createElement("button",{onClick:this._onCancel},Object(c.a)("Cancel")))))}},R()(mp,"propTypes",{onFinished:He.a.func.isRequired}),pp=gp))||pp;var _p,bp,vp,yp=n(625),Ep=e=>{const t=l.a.get().brand,n=Object(c.a)("You've previously used a newer version of %(brand)s with this session. To use this version again with end to end encryption, you will need to sign out and back in again.",{brand:t}),o=d.getComponent("views.dialogs.BaseDialog"),r=d.getComponent("views.elements.DialogButtons");return i.a.createElement(o,{className:"mx_CryptoStoreTooNewDialog",contentId:"mx_Dialog_content",title:Object(c.a)("Incompatible Database"),hasCancel:!1,onFinished:e.onFinished},i.a.createElement("div",{className:"mx_Dialog_content",id:"mx_Dialog_content"},n),i.a.createElement(r,{primaryButton:Object(c.a)("Continue With Encryption Disabled"),hasCancel:!1,onPrimaryButtonClick:e.onFinished},i.a.createElement("button",{onClick:()=>{const n=d.getComponent("dialogs.QuestionDialog");Ge.a.createTrackedDialog("Logout e2e db too new","",n,{title:Object(c.a)("Sign out"),description:Object(c.a)("To avoid losing your chat history, you must export your room keys before logging out. You will need to go back to the newer version of %(brand)s to do this",{brand:t}),button:Object(c.a)("Sign out"),focus:!1,onFinished:t=>{t&&(u.a.dispatch({action:"logout"}),e.onFinished())}})}},Object(c.a)("Sign out"))))},Sp=n(651);let wp=Object(N.a)("views.dialogs.IncomingSasDialog")((vp=bp=class extends i.a.Component{constructor(e){super(e),R()(this,"_onFinished",()=>{this.props.onFinished(3===this.state.phase)}),R()(this,"_onCancelClick",()=>{this.props.onFinished(3===this.state.phase)}),R()(this,"_onContinueClick",()=>{this.setState({phase:2}),this.props.verifier.verify().then(()=>{this.setState({phase:3})}).catch(e=>{console.log("Verification failed",e)})}),R()(this,"_onVerifierShowSas",e=>{this._showSasEvent=e,this.setState({phase:1,sas:e.sas})}),R()(this,"_onVerifierCancel",e=>{this.setState({phase:4})}),R()(this,"_onSasMatchesClick",()=>{this._showSasEvent.confirm(),this.setState({phase:2})}),R()(this,"_onVerifiedDoneClick",()=>{this.props.onFinished(!0)});let t=0;this.props.verifier.cancelled&&(console.log("Verifier was cancelled in the background."),t=4),this._showSasEvent=null,this.state={phase:t,sasVerified:!1,opponentProfile:null,opponentProfileError:null},this.props.verifier.on("show_sas",this._onVerifierShowSas),this.props.verifier.on("cancel",this._onVerifierCancel),this._fetchOpponentProfile()}componentWillUnmount(){4!==this.state.phase&&3!==this.state.phase&&this.props.verifier.cancel("User cancel"),this.props.verifier.removeListener("show_sas",this._onVerifierShowSas)}async _fetchOpponentProfile(){try{const e=await de.a.get().getProfileInfo(this.props.verifier.userId);this.setState({opponentProfile:e})}catch(e){this.setState({opponentProfileError:e})}}_renderPhaseStart(){const e=d.getComponent("views.elements.DialogButtons"),t=d.getComponent("views.elements.Spinner"),n=d.getComponent("avatars.BaseAvatar"),o=this.props.verifier.userId===de.a.get().getUserId();let r;const a=this.state.opponentProfile;if(a){const e=a.avatar_url?Object(ge.b)(a.avatar_url).getSquareThumbnailHttp(Math.floor(48*window.devicePixelRatio)):null;r=i.a.createElement("div",{className:"mx_IncomingSasDialog_opponentProfile"},i.a.createElement(n,{name:a.displayname,idName:this.props.verifier.userId,url:e,width:48,height:48,resizeMethod:"crop"}),i.a.createElement("h2",null,a.displayname))}else r=this.state.opponentProfileError?i.a.createElement("div",null,i.a.createElement(n,{name:this.props.verifier.userId.slice(1),idName:this.props.verifier.userId,width:48,height:48}),i.a.createElement("h2",null,this.props.verifier.userId)):i.a.createElement(t,null);const s=[i.a.createElement("p",{key:"p1"},Object(c.a)("Verify this user to mark them as trusted. Trusting users gives you extra peace of mind when using end-to-end encrypted messages.")),i.a.createElement("p",{key:"p2"},Object(c.a)("Verifying this user will mark their session as trusted, and also mark your session as trusted to them."))],l=[i.a.createElement("p",{key:"p1"},Object(c.a)("Verify this device to mark it as trusted. Trusting this device gives you and other users extra peace of mind when using end-to-end encrypted messages.")),i.a.createElement("p",{key:"p2"},Object(c.a)("Verifying this device will mark it as trusted, and users who have verified with you will trust this device."))];return i.a.createElement("div",null,r,o?l:s,i.a.createElement(e,{primaryButton:Object(c.a)("Continue"),hasCancel:!0,onPrimaryButtonClick:this._onContinueClick,onCancel:this._onCancelClick}))}_renderPhaseShowSas(){const e=d.getComponent("views.verification.VerificationShowSas");return i.a.createElement(e,{sas:this._showSasEvent.sas,onCancel:this._onCancelClick,onDone:this._onSasMatchesClick,isSelf:this.props.verifier.userId===de.a.get().getUserId(),inDialog:!0})}_renderPhaseWaitForPartnerToConfirm(){const e=d.getComponent("views.elements.Spinner");return i.a.createElement("div",null,i.a.createElement(e,null),i.a.createElement("p",null,Object(c.a)("Waiting for partner to confirm...")))}_renderPhaseVerified(){const e=d.getComponent("views.verification.VerificationComplete");return i.a.createElement(e,{onDone:this._onVerifiedDoneClick})}_renderPhaseCancelled(){const e=d.getComponent("views.verification.VerificationCancelled");return i.a.createElement(e,{onDone:this._onCancelClick})}render(){let e;switch(this.state.phase){case 0:e=this._renderPhaseStart();break;case 1:e=this._renderPhaseShowSas();break;case 2:e=this._renderPhaseWaitForPartnerToConfirm();break;case 3:e=this._renderPhaseVerified();break;case 4:e=this._renderPhaseCancelled()}const t=d.getComponent("dialogs.BaseDialog");return i.a.createElement(t,{title:Object(c.a)("Incoming Verification Request"),onFinished:this._onFinished,fixedWidth:!1},e)}},R()(bp,"propTypes",{verifier:He.a.object.isRequired}),_p=vp))||_p;var Cp=n(604),Tp=n(601);function xp({failures:e,source:t,continuation:n,onFinished:o}){const a=d.getComponent("dialogs.BaseDialog"),s=d.getComponent("views.elements.DialogButtons"),u=d.getComponent("elements.Spinner"),[h,p]=Object(r.useState)(2),[m,g]=Object(r.useState)(!1),[f,_]=Object(r.useState)(!1),[b,v]=Object(r.useState)(!1),y=Object(r.useRef)(o),E=new Map([["_afterCrossSigningLocalKeyChange",Object(c.a)("a new master key signature")],["checkOwnCrossSigningTrust",Object(c.a)("a new cross-signing key signature")],["setDeviceVerification",Object(c.a)("a device cross-signing signature")]]),S=Object(c.a)("a key signature"),w=Object(r.useCallback)(async()=>{try{_(!0);const e=new Promise((e,t)=>{y.current=t}).finally(()=>{g(!0)});await Promise.race([n(),e]),v(!0)}catch(e){p(e=>e-1)}finally{y.current=o,_(!1)}},[n,o]);let C;if(!b&&!m&&n&&h>0){const n=E.get(t)||S,o=l.a.get().brand;C=i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("%(brand)s encountered an error during upload of:",{brand:o})),i.a.createElement("p",null,n),f&&i.a.createElement(u,null),i.a.createElement("pre",null,JSON.stringify(e,null,2)),i.a.createElement(s,{primaryButton:"Retry",hasCancel:!0,onPrimaryButtonClick:w,onCancel:y.current,primaryDisabled:f}))}else C=i.a.createElement("div",null,b?i.a.createElement("span",null,Object(c.a)("Upload completed")):m?i.a.createElement("span",null,Object(c.a)("Cancelled signature upload")):i.a.createElement("span",null,Object(c.a)("Unable to upload")),i.a.createElement(s,{primaryButton:Object(c.a)("OK"),hasCancel:!1,onPrimaryButtonClick:o}));return i.a.createElement(a,{title:b?Object(c.a)("Signature upload success"):Object(c.a)("Signature upload failed"),fixedWidth:!1,onFinished:()=>{}},C)}var Op,kp,Rp,Dp=e=>{const t=l.a.get().brand,n=Object(c.a)("You've previously used %(brand)s on %(host)s with lazy loading of members enabled. In this version lazy loading is disabled. As the local cache is not compatible between these two settings, %(brand)s needs to resync your account.",{brand:t,host:e.host}),o=Object(c.a)("If the other version of %(brand)s is still open in another tab, please close it as using %(brand)s on the same host with both lazy loading enabled and disabled simultaneously will cause issues.",{brand:t});return i.a.createElement(Be.a,{hasCancelButton:!1,title:Object(c.a)("Incompatible local cache"),description:i.a.createElement("div",null,i.a.createElement("p",null,n),i.a.createElement("p",null,o)),button:Object(c.a)("Clear cache and resync"),onFinished:e.onFinished})},Ip=e=>{const t=l.a.get().brand,n=Object(c.a)("%(brand)s now uses 3-5x less memory, by only loading information about other users when needed. Please wait whilst we resynchronise with the server!",{brand:t});return i.a.createElement(Be.a,{hasCancelButton:!1,title:Object(c.a)("Updating %(brand)s",{brand:t}),description:i.a.createElement("div",null,n),button:Object(c.a)("OK"),onFinished:e.onFinished})};let Ap=Object(N.a)("views.dialogs.ManualDeviceKeyVerificationDialog")((Rp=kp=class extends i.a.Component{constructor(...e){super(...e),R()(this,"_onCancelClick",()=>{this.props.onFinished(!1)}),R()(this,"_onLegacyFinished",e=>{e&&de.a.get().setDeviceVerified(this.props.userId,this.props.device.deviceId,!0),this.props.onFinished(e)})}render(){const e=d.getComponent("dialogs.QuestionDialog");let t;t=de.a.get().getUserId()===this.props.userId?Object(c.a)("Confirm by comparing the following with the User Settings in your other session:"):Object(c.a)("Confirm this user's session by comparing the following with their User Settings:");const n=J.e(this.props.device.getFingerprint()),o=i.a.createElement("div",null,i.a.createElement("p",null,t),i.a.createElement("div",{className:"mx_DeviceVerifyDialog_cryptoSection"},i.a.createElement("ul",null,i.a.createElement("li",null,i.a.createElement("label",null,Object(c.a)("Session name"),":")," ",i.a.createElement("span",null,this.props.device.getDisplayName())),i.a.createElement("li",null,i.a.createElement("label",null,Object(c.a)("Session ID"),":")," ",i.a.createElement("span",null,i.a.createElement("code",null,this.props.device.deviceId))),i.a.createElement("li",null,i.a.createElement("label",null,Object(c.a)("Session key"),":")," ",i.a.createElement("span",null,i.a.createElement("code",null,i.a.createElement("b",null,n)))))),i.a.createElement("p",null,Object(c.a)("If they don't match, the security of your communication may be compromised.")));return i.a.createElement(e,{title:Object(c.a)("Verify session"),description:o,button:Object(c.a)("Verify session"),onFinished:this._onLegacyFinished})}},R()(kp,"propTypes",{userId:He.a.string.isRequired,device:He.a.object.isRequired,onFinished:He.a.func.isRequired}),Op=Rp))||Op;var Np,Fp,Mp;let Pp=Object(N.a)("views.dialogs.MessageEditHistoryDialog")((Mp=Fp=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"loadMoreEdits",async e=>{if(e||!this.state.nextBatch&&!this.state.isLoading)return!1;const t={from:this.state.nextBatch},n=this.props.mxEvent.getRoomId(),o=this.props.mxEvent.getId(),r=de.a.get();let i,a,s;const c=new Promise((e,t)=>{a=e,s=t});try{i=await r.relations(n,o,"m.replace","m.room.message",t)}catch(e){return e.errcode&&console.error("fetching /relations failed with error",e),this.setState({error:e},()=>s(e)),c}const l=i.events;return this._locallyRedactEventsIfNeeded(l),this.setState({originalEvent:this.state.originalEvent||i.originalEvent,events:this.state.events.concat(l),nextBatch:i.nextBatch,isLoading:!1},()=>{const e=!!this.state.nextBatch;a(e)}),c}),this.state={originalEvent:null,error:null,events:[],nextBatch:null,isLoading:!0,isTwelveHour:G.b.getValue("showTwelveHourTimestamps")}}_locallyRedactEventsIfNeeded(e){const t=this.props.mxEvent.getRoomId(),n=de.a.get().getRoom(t).getPendingEvents();for(const t of e){const e=n.find(e=>"m.room.redaction"===e.getType()&&e.getAssociatedId()===t.getId());e&&t.markLocallyRedacted(e)}}componentDidMount(){this.loadMoreEdits()}_renderEdits(){const e=d.getComponent("messages.EditHistoryMessage"),t=d.getComponent("messages.DateSeparator"),n=[];let o,r=this.state.events;this.state.originalEvent&&!this.state.nextBatch&&(r=r.concat(this.state.originalEvent));const a=this.props.mxEvent.getId();return r.forEach((s,c)=>{o&&!Object(Rd.f)(o.getDate(),s.getDate())||n.push(i.a.createElement("li",{key:s.getTs()+"~"},i.a.createElement(t,{ts:s.getTs()})));const l=s.getId()===a;n.push(i.a.createElement(e,{key:s.getId(),previousEdit:l?null:r[c+1],isBaseEvent:l,mxEvent:s,isTwelveHour:this.state.isTwelveHour})),o=s}),n}render(){let e;if(this.state.error){const{error:t}=this.state;e="M_UNRECOGNIZED"===t.errcode?i.a.createElement("p",{className:"mx_MessageEditHistoryDialog_error"},Object(c.a)("Your homeserver doesn't seem to support this feature.")):t.errcode?i.a.createElement("p",{className:"mx_MessageEditHistoryDialog_error"},Object(c.a)("Something went wrong!")):i.a.createElement("p",{className:"mx_MessageEditHistoryDialog_error"},Object(c.a)("Cannot reach homeserver"),i.a.createElement("br",null),Object(c.a)("Ensure you have a stable internet connection, or get in touch with the server admin"))}else if(this.state.isLoading){const t=d.getComponent("elements.Spinner");e=i.a.createElement(t,null)}else{const t=d.getComponent("structures.ScrollPanel");e=i.a.createElement(t,{className:"mx_MessageEditHistoryDialog_scrollPanel",onFillRequest:this.loadMoreEdits,stickyBottom:!1,startAtBottom:!1},i.a.createElement("ul",{className:"mx_MessageEditHistoryDialog_edits mx_MessagePanel_alwaysShowTimestamps"},this._renderEdits()))}const t=d.getComponent("views.dialogs.BaseDialog");return i.a.createElement(t,{className:"mx_MessageEditHistoryDialog",hasCancel:!0,onFinished:this.props.onFinished,title:Object(c.a)("Message edits")},e)}},R()(Fp,"propTypes",{mxEvent:He.a.object.isRequired}),Np=Mp))||Np;var Lp,jp,Up,Bp=n(455);let qp=Object(N.a)("views.dialogs.NewSessionReviewDialog")((Up=jp=class extends i.a.PureComponent{constructor(...e){super(...e),R()(this,"onCancelClick",()=>{const e=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Verification failed","insecure",e,{headerImage:n(349),title:Object(c.a)("Your account is not secure"),description:i.a.createElement("div",null,Object(c.a)("One of the following may be compromised:"),i.a.createElement("ul",null,i.a.createElement("li",null,Object(c.a)("Your password")),i.a.createElement("li",null,Object(c.a)("Your homeserver")),i.a.createElement("li",null,Object(c.a)("This session, or the other session")),i.a.createElement("li",null,Object(c.a)("The internet connection either session is using"))),i.a.createElement("div",null,Object(c.a)("We recommend you change your password and Security Key in Settings immediately"))),onFinished:()=>this.props.onFinished(!1)})}),R()(this,"onContinueClick",()=>{const{userId:e,device:t}=this.props,n=de.a.get(),o=n.requestVerification(e,[t.deviceId]);this.props.onFinished(!0),Ge.a.createTrackedDialog("New Session Verification","Starting dialog",Bp.a,{verificationRequestPromise:o,member:n.getUser(e),onFinished:async()=>{(await o).cancel()}})})}render(){const{device:e}=this.props,t=i.a.createElement("span",{className:"mx_NewSessionReviewDialog_headerIcon mx_E2EIcon_warning"}),n=Object(c.a)("New session"),o=i.a.createElement("h2",{className:"mx_NewSessionReviewDialog_header"},t,n);return i.a.createElement(it.a,{title:o,onFinished:this.props.onFinished},i.a.createElement("div",{className:"mx_NewSessionReviewDialog_body"},i.a.createElement("p",null,Object(c.a)("Use this session to verify your new one, granting it access to encrypted messages:")),i.a.createElement("div",{className:"mx_NewSessionReviewDialog_deviceInfo"},i.a.createElement("div",null,i.a.createElement("span",{className:"mx_NewSessionReviewDialog_deviceName"},e.getDisplayName())," ",i.a.createElement("span",{className:"mx_NewSessionReviewDialog_deviceID"},"(",e.deviceId,")"))),i.a.createElement("p",null,Object(c.a)("If you didn’t sign in to this session, your account may be compromised.")),i.a.createElement(er.a,{cancelButton:Object(c.a)("This wasn't me"),cancelButtonClass:"danger",primaryButton:Object(c.a)("Continue"),onCancel:this.onCancelClick,onPrimaryButtonClick:this.onContinueClick})))}},R()(jp,"propTypes",{userId:He.a.string.isRequired,device:He.a.object.isRequired,onFinished:He.a.func.isRequired}),Lp=Up))||Lp;var Gp=n(1354);const Vp=["sub","sup","del","u"],Hp=["text","softbreak","linebreak","paragraph","document"];function zp(e){if(null!=e.literal&&null!=e.literal.match('^<((div|span) data-mx-maths="[^"]*"|/(div|span))>$'))return!0;const t=/^<\/?(.*)>$/.exec(e.literal);if(t&&2==t.length){const e=t[1];return Vp.indexOf(e)>-1}return!1}function Kp(e){zp(e)?this.lit(e.literal):this.lit(Object(No.escape)(e.literal))}function Wp(e){let t=e;for(;t.parent;)t=t.parent;return t.firstChild!=t.lastChild}class Yp{constructor(e){this.input=e;const t=new Gp.Parser;this.parsed=t.parse(this.input)}isPlainText(){const e=this.parsed.walker();let t;for(;t=e.next();){const e=t.node;if(!(Hp.indexOf(e.type)>-1)){if("html_inline"!=e.type&&"html_block"!=e.type)return!1;if(zp(e))return!1}}return!0}toHTML({externalLinks:e=!1}={}){const t=new Gp.HtmlRenderer({safe:!1,softbreak:"<br />"}),n=t.paragraph;return t.paragraph=function(e,t){Wp(e)&&n.call(this,e,t)},t.link=function(t,n){const o=this.attrs(t);n?(o.push(["href",this.esc(t.destination)]),t.title&&o.push(["title",this.esc(t.title)]),e&&(o.push(["target","_blank"]),o.push(["rel","noreferrer noopener"])),this.tag("a",o)):this.tag("/a")},t.html_inline=Kp,t.html_block=function(e){Kp.call(this,e)},t.render(this.parsed)}toPlaintext(){const e=new Gp.HtmlRenderer({safe:!1});e.paragraph;return e.paragraph=function(e,t){Wp(e)&&!t&&e.next&&this.lit("\n\n")},e.html_block=function(e){this.lit(e.literal),Wp(e)&&e.next&&this.lit("\n\n")},e.render(this.parsed)}}var $p,Qp,Jp;let Xp=Object(N.a)("views.dialogs.ReportEventDialog")((Jp=Qp=class extends r.PureComponent{constructor(e){super(e),R()(this,"_onReasonChange",({target:{value:e}})=>{this.setState({reason:e})}),R()(this,"_onCancel",()=>{this.props.onFinished(!1)}),R()(this,"_onSubmit",async()=>{if(this.state.reason&&this.state.reason.trim()){this.setState({busy:!0,err:null});try{const e=this.props.mxEvent;await de.a.get().reportEvent(e.getRoomId(),e.getId(),-100,this.state.reason.trim()),this.props.onFinished(!0)}catch(e){this.setState({busy:!1,err:e.message})}}else this.setState({err:Object(c.a)("Please fill why you're reporting.")})}),this.state={reason:"",busy:!1,err:null}}render(){const e=d.getComponent("views.dialogs.BaseDialog"),t=d.getComponent("views.elements.DialogButtons"),n=d.getComponent("elements.Spinner"),o=d.getComponent("elements.Field");let r=null;this.state.err&&(r=i.a.createElement("div",{className:"error"},this.state.err));let a=null;this.state.busy&&(a=i.a.createElement("div",{className:"progress"},i.a.createElement(n,null)));const s=l.a.get().reportEvent&&l.a.get().reportEvent.adminMessageMD;let u;if(s){const e=new Yp(s).toHTML({externalLinks:!0});u=i.a.createElement("p",{dangerouslySetInnerHTML:{__html:e}})}return i.a.createElement(e,{className:"mx_BugReportDialog",onFinished:this.props.onFinished,title:Object(c.a)("Report Content to Your Homeserver Administrator"),contentId:"mx_ReportEventDialog"},i.a.createElement("div",{className:"mx_ReportEventDialog",id:"mx_ReportEventDialog"},i.a.createElement("p",null,Object(c.a)("Reporting this message will send its unique 'event ID' to the administrator of your homeserver. If messages in this room are encrypted, your homeserver administrator will not be able to read the message text or view any files or images.")),u,i.a.createElement(o,{className:"mx_ReportEventDialog_reason",element:"textarea",label:Object(c.a)("Reason"),rows:5,onChange:this._onReasonChange,value:this.state.reason,disabled:this.state.busy}),a,r),i.a.createElement(t,{primaryButton:Object(c.a)("Send report"),onPrimaryButtonClick:this._onSubmit,focus:!0,onCancel:this._onCancel,disabled:this.state.busy}))}},R()(Qp,"propTypes",{mxEvent:He.a.instanceOf(du.b).isRequired,onFinished:He.a.func.isRequired}),$p=Jp))||$p;var Zp,em,tm;function nm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}let om=Object(N.a)("views.settings.tabs.room.AdvancedRoomSettingsTab")((tm=em=class extends i.a.Component{constructor(e){super(e),R()(this,"_upgradeRoom",e=>{const t=d.getComponent("dialogs.RoomUpgradeDialog"),n=de.a.get().getRoom(this.props.roomId);Ge.a.createTrackedDialog("Upgrade Room Version","",t,{room:n})}),R()(this,"_openDevtools",e=>{const t=d.getComponent("dialogs.DevtoolsDialog");Ge.a.createDialog(t,{roomId:this.props.roomId})}),R()(this,"_onOldRoomClicked",e=>{e.preventDefault(),e.stopPropagation(),u.a.dispatch({action:"view_room",room_id:this.state.oldRoomId,event_id:this.state.oldEventId}),this.props.closeSettingsFn()}),this.state={upgradeRecommendation:null}}UNSAFE_componentWillMount(){const e=de.a.get().getRoom(this.props.roomId);e.getRecommendedVersion().then(t=>{const n=e.currentState.getStateEvents("m.room.tombstone",""),o={},r=e.currentState.getStateEvents("m.room.create",""),i=r?r.getContent().predecessor:null;i&&i.room_id&&(o.oldRoomId=i.room_id,o.oldEventId=i.event_id,o.hasPreviousRoom=!0),this.setState(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nm(Object(n),!0).forEach((function(t){R()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({upgraded:n&&n.getContent().replacement_room,upgradeRecommendation:t},o))})}render(){const e=de.a.get().getRoom(this.props.roomId);let t;const n=e.currentState.getStateEvents("m.room.create","");let o,r;if(n&&!1===n.getContent()["m.federate"]&&(t=i.a.createElement("div",null,Object(c.a)("This room is not accessible by remote Matrix servers"))),this.state.upgradeRecommendation&&this.state.upgradeRecommendation.needsUpgrade&&!this.state.upgraded&&(o=i.a.createElement("div",null,i.a.createElement("p",{className:"mx_SettingsTab_warningText"},Object(c.a)("<b>Warning</b>: Upgrading a room will <i>not automatically migrate room members to the new version of the room.</i> We'll post a link to the new room in the old version of the room - room members will have to click this link to join the new room.",{},{b:e=>i.a.createElement("b",null,e),i:e=>i.a.createElement("i",null,e)})),i.a.createElement(g.a,{onClick:this._upgradeRoom,kind:"primary"},Object(c.a)("Upgrade this room to the recommended room version")))),this.state.hasPreviousRoom){let e=Object(c.a)("this room");const t=de.a.get().getRoom(this.props.roomId);t&&t.name&&(e=t.name),r=i.a.createElement(g.a,{element:"a",onClick:this._onOldRoomClicked},Object(c.a)("View older messages in %(roomName)s.",{roomName:e}))}return i.a.createElement("div",{className:"mx_SettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Advanced")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Room information")),i.a.createElement("div",null,i.a.createElement("span",null,Object(c.a)("Internal room ID:"))," ",this.props.roomId),t),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Room version")),i.a.createElement("div",null,i.a.createElement("span",null,Object(c.a)("Room version:"))," ",e.getVersion()),r,o),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Developer options")),i.a.createElement(g.a,{onClick:this._openDevtools,kind:"primary"},Object(c.a)("Open Devtools"))))}},R()(em,"propTypes",{roomId:He.a.string.isRequired,closeSettingsFn:He.a.func.isRequired}),Zp=tm))||Zp;var rm,im,am;const sm={[re.a.RoomAvatar]:Object(c.b)("Change room avatar"),[re.a.RoomName]:Object(c.b)("Change room name"),[re.a.RoomCanonicalAlias]:Object(c.b)("Change main address for the room"),[re.a.RoomHistoryVisibility]:Object(c.b)("Change history visibility"),[re.a.RoomPowerLevels]:Object(c.b)("Change permissions"),[re.a.RoomTopic]:Object(c.b)("Change topic"),[re.a.RoomTombstone]:Object(c.b)("Upgrade the room"),[re.a.RoomEncryption]:Object(c.b)("Enable room encryption"),[re.a.RoomServerAcl]:Object(c.b)("Change server ACLs"),"im.vector.modular.widgets":Object(c.b)("Modify widgets")},cm={[re.a.RoomAvatar]:{isState:!0},[re.a.RoomName]:{isState:!0},[re.a.RoomCanonicalAlias]:{isState:!0},[re.a.RoomHistoryVisibility]:{isState:!0},[re.a.RoomPowerLevels]:{isState:!0},[re.a.RoomTopic]:{isState:!0},[re.a.RoomTombstone]:{isState:!0},[re.a.RoomEncryption]:{isState:!0},[re.a.RoomServerAcl]:{isState:!0},"im.vector.modular.widgets":{isState:!0}};function lm(e,t){const n=parseInt(e);return isNaN(n)?t:n}class dm extends i.a.Component{constructor(...e){super(...e),R()(this,"_onUnbanClick",e=>{de.a.get().unban(this.props.member.roomId,this.props.member.userId).catch(e=>{const t=d.getComponent("dialogs.ErrorDialog");console.error("Failed to unban: "+e),Ge.a.createTrackedDialog("Failed to unban","",t,{title:Object(c.a)("Error"),description:Object(c.a)("Failed to unban")})})})}render(){let e;this.props.canUnban&&(e=i.a.createElement(g.a,{kind:"danger_sm",onClick:this._onUnbanClick,className:"mx_RolesRoomSettingsTab_unbanBtn"},Object(c.a)("Unban")));const t=this.props.member.name===this.props.member.userId?null:this.props.member.userId;return i.a.createElement("li",null,e,i.a.createElement("span",{title:Object(c.a)("Banned by %(displayName)s",{displayName:this.props.by})},i.a.createElement("strong",null,this.props.member.name)," ",t,this.props.reason?" "+Object(c.a)("Reason")+": "+this.props.reason:""))}}R()(dm,"propTypes",{canUnban:He.a.bool,member:He.a.object.isRequired,by:He.a.string.isRequired,reason:He.a.string});let um=Object(N.a)("views.settings.tabs.room.RolesRoomSettingsTab")((am=im=class extends i.a.Component{constructor(...e){super(...e),R()(this,"_onRoomMembership",(e,t,n)=>{t.roomId===this.props.roomId&&this.forceUpdate()}),R()(this,"_onPowerLevelsChanged",(e,t)=>{const n=de.a.get(),o=n.getRoom(this.props.roomId).currentState.getStateEvents("m.room.power_levels","");let r=o&&o.getContent()||{};r=Object.assign({},r);if(e=parseInt(e),t.startsWith("event_levels_"))r.events=Object.assign({},r.events||{}),r.events[t.slice("event_levels_".length)]=e;else{const n=t.split(".");let o,i=r;for(const e of n)i[e]||(i[e]={}),o=i,i=i[e];o[n[n.length-1]]=e}n.sendStateEvent(this.props.roomId,"m.room.power_levels",r).catch(e=>{console.error(e);const t=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Power level requirement change failed","",t,{title:Object(c.a)("Error changing power level requirement"),description:Object(c.a)("An error occurred changing the room's power level requirements. Ensure you have sufficient permissions and try again.")})})}),R()(this,"_onUserPowerLevelChanged",(e,t)=>{const n=de.a.get(),o=n.getRoom(this.props.roomId).currentState.getStateEvents("m.room.power_levels","");let r=o&&o.getContent()||{};r=Object.assign({},r),r.users||(r.users={}),r.users[t]=e,n.sendStateEvent(this.props.roomId,"m.room.power_levels",r).catch(e=>{console.error(e);const t=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Power level change failed","",t,{title:Object(c.a)("Error changing power level"),description:Object(c.a)("An error occurred changing the user's power level. Ensure you have sufficient permissions and try again.")})})})}componentDidMount(){de.a.get().on("RoomState.members",this._onRoomMembership)}componentWillUnmount(){const e=de.a.get();e&&e.removeListener("RoomState.members",this._onRoomMembership)}_populateDefaultPlEvents(e,t,n){for(const o of Object.keys(cm))o in e||(e[o]=cm[o].isState?t:n)}render(){const e=d.getComponent("elements.PowerSelector"),t=de.a.get(),n=t.getRoom(this.props.roomId),o=n.currentState.getStateEvents("m.room.power_levels",""),r=o&&o.getContent()||{},a=n.currentState.mayClientSendStateEvent("m.room.power_levels",t),s={users_default:{desc:Object(c.a)("Default role"),defaultValue:0},events_default:{desc:Object(c.a)("Send messages"),defaultValue:0},invite:{desc:Object(c.a)("Invite users"),defaultValue:50},state_default:{desc:Object(c.a)("Change settings"),defaultValue:50},kick:{desc:Object(c.a)("Kick users"),defaultValue:50},ban:{desc:Object(c.a)("Ban users"),defaultValue:50},redact:{desc:Object(c.a)("Remove messages sent by others"),defaultValue:50},"notifications.room":{desc:Object(c.a)("Notify everyone"),defaultValue:50}},l=r.events||{},u=r.users||{},h=lm(r.ban,s.ban.defaultValue),p=lm(r.users_default,s.users_default.defaultValue);let m=u[t.getUserId()];void 0===m&&(m=p),this._populateDefaultPlEvents(l,lm(r.state_default,s.state_default.defaultValue),lm(r.events_default,s.events_default.defaultValue));let g,f=i.a.createElement("div",null,Object(c.a)("No users have specific privileges in this room"));if(Object.keys(u).length){const t=[],n=[];Object.keys(u).forEach(o=>{const r=u[o]<m&&a;u[o]>p?t.push(i.a.createElement(e,{value:u[o],disabled:!r,label:o,key:o,powerLevelKey:o,onChange:this._onUserPowerLevelChanged})):u[o]<p&&n.push(i.a.createElement(e,{value:u[o],disabled:!r,label:o,key:o,powerLevelKey:o,onChange:this._onUserPowerLevelChanged}))});const o=(e,t)=>{const n=u[t.key]-u[e.key];return 0!==n?n:e.key.toLocaleLowerCase().localeCompare(t.key.toLocaleLowerCase())};t.sort(o),n.sort(o),t.length&&(f=i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement("div",{className:"mx_SettingsTab_subheading"},Object(c.a)("Privileged Users")),t)),n.length&&(g=i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement("div",{className:"mx_SettingsTab_subheading"},Object(c.a)("Muted Users")),n))}const _=n.getMembersWithMembership("ban");let b;if(_.length){const e=m>=h;b=i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement("div",{className:"mx_SettingsTab_subheading"},Object(c.a)("Banned users")),i.a.createElement("ul",null,_.map(t=>{const o=t.events.member.getContent(),r=n.getMember(t.events.member.getSender());let a=t.events.member.getSender();return r&&(a=r.name),i.a.createElement(dm,{key:t.userId,canUnban:e,member:t,reason:o.reason,by:a})})))}const v=Object.keys(s).map((t,n)=>{const o=s[t],c=t.split(".");let l=r;for(const e of c){if(void 0===l)break;l=l[e]}const d=lm(l,o.defaultValue);return i.a.createElement("div",{key:n,className:""},i.a.createElement(e,{label:o.desc,value:d,usersDefault:p,disabled:!a||m<d,powerLevelKey:t,onChange:this._onPowerLevelsChanged}))});t.isRoomEncrypted(this.props.roomId)&&delete l["m.room.encryption"];const y=Object.keys(l).map((t,n)=>{let o=sm[t];return o=o?Object(c.a)(o):Object(c.a)("Send %(eventType)s events",{eventType:t}),i.a.createElement("div",{className:"",key:t},i.a.createElement(e,{label:o,value:l[t],usersDefault:p,disabled:!a||m<l[t],powerLevelKey:"event_levels_"+t,onChange:this._onPowerLevelsChanged}))});return i.a.createElement("div",{className:"mx_SettingsTab mx_RolesRoomSettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Roles & Permissions")),f,g,b,i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Permissions")),i.a.createElement("p",null,Object(c.a)("Select the roles required to change various parts of the room")),v,y))}},R()(im,"propTypes",{roomId:He.a.string.isRequired}),rm=am))||rm;var hm,pm,mm;let gm=Object(N.a)("views.room_settings.RoomProfileSettings")((mm=pm=class extends i.a.Component{constructor(e){super(e),R()(this,"_uploadAvatar",()=>{this._avatarUpload.current.click()}),R()(this,"_removeAvatar",()=>{this._avatarUpload.current.value="",this.setState({avatarUrl:null,avatarFile:null,enableProfileSave:!0})}),R()(this,"_cancelProfileChanges",async e=>{e.stopPropagation(),e.preventDefault(),this.state.enableProfileSave&&this.setState({enableProfileSave:!1,displayName:this.state.originalDisplayName,topic:this.state.originalTopic,avatarUrl:this.state.originalAvatarUrl,avatarFile:null})}),R()(this,"_saveProfile",async e=>{if(e.stopPropagation(),e.preventDefault(),!this.state.enableProfileSave)return;this.setState({enableProfileSave:!1});const t=de.a.get(),n={},o=this.state.displayName.trim();if(this.state.originalDisplayName!==this.state.displayName&&(await t.setRoomName(this.props.roomId,o),n.originalDisplayName=o,n.displayName=o),this.state.avatarFile){const e=await t.uploadContent(this.state.avatarFile);await t.sendStateEvent(this.props.roomId,"m.room.avatar",{url:e},""),n.avatarUrl=Object(ge.b)(e).getSquareThumbnailHttp(96),n.originalAvatarUrl=n.avatarUrl,n.avatarFile=null}else this.state.originalAvatarUrl!==this.state.avatarUrl&&await t.sendStateEvent(this.props.roomId,"m.room.avatar",{},"");this.state.originalTopic!==this.state.topic&&(await t.setRoomTopic(this.props.roomId,this.state.topic),n.originalTopic=this.state.topic),this.setState(n)}),R()(this,"_onDisplayNameChanged",e=>{this.setState({displayName:e.target.value}),this.state.originalDisplayName===e.target.value?this.setState({enableProfileSave:!1}):this.setState({enableProfileSave:!0})}),R()(this,"_onTopicChanged",e=>{this.setState({topic:e.target.value}),this.state.originalTopic===e.target.value?this.setState({enableProfileSave:!1}):this.setState({enableProfileSave:!0})}),R()(this,"_onAvatarChanged",e=>{if(!e.target.files||!e.target.files.length)return void this.setState({avatarUrl:this.state.originalAvatarUrl,avatarFile:null,enableProfileSave:!1});const t=e.target.files[0],n=new FileReader;n.onload=e=>{this.setState({avatarUrl:e.target.result,avatarFile:t,enableProfileSave:!0})},n.readAsDataURL(t)});const t=de.a.get(),n=t.getRoom(e.roomId);if(!n)throw new Error("Expected a room for ID: ",e.roomId);const o=n.currentState.getStateEvents("m.room.avatar","");let i=o&&o.getContent()?o.getContent().url:null;i&&(i=Object(ge.b)(i).getSquareThumbnailHttp(96));const a=n.currentState.getStateEvents("m.room.topic",""),s=a&&a.getContent()?a.getContent().topic:"",c=n.currentState.getStateEvents("m.room.name",""),l=c&&c.getContent()?c.getContent().name:"";this.state={originalDisplayName:l,displayName:l,originalAvatarUrl:i,avatarUrl:i,avatarFile:null,originalTopic:s,topic:s,enableProfileSave:!1,canSetName:n.currentState.maySendStateEvent("m.room.name",t.getUserId()),canSetTopic:n.currentState.maySendStateEvent("m.room.topic",t.getUserId()),canSetAvatar:n.currentState.maySendStateEvent("m.room.avatar",t.getUserId())},this._avatarUpload=Object(r.createRef)()}render(){const e=d.getComponent("elements.AccessibleButton"),t=d.getComponent("settings.AvatarSetting");let n;return(this.state.canSetName||this.state.canSetTopic||this.state.canSetAvatar)&&(n=i.a.createElement("div",{className:"mx_ProfileSettings_buttons"},i.a.createElement(e,{onClick:this._cancelProfileChanges,kind:"link",disabled:!this.state.enableProfileSave},Object(c.a)("Cancel")),i.a.createElement(e,{onClick:this._saveProfile,kind:"primary",disabled:!this.state.enableProfileSave},Object(c.a)("Save")))),i.a.createElement("form",{onSubmit:this._saveProfile,autoComplete:"off",noValidate:!0,className:"mx_ProfileSettings_profileForm"},i.a.createElement("input",{type:"file",ref:this._avatarUpload,className:"mx_ProfileSettings_avatarUpload",onChange:this._onAvatarChanged,accept:"image/*"}),i.a.createElement("div",{className:"mx_ProfileSettings_profile"},i.a.createElement("div",{className:"mx_ProfileSettings_controls"},i.a.createElement(qe.a,{label:Object(c.a)("Room Name"),type:"text",value:this.state.displayName,autoComplete:"off",onChange:this._onDisplayNameChanged,disabled:!this.state.canSetName}),i.a.createElement(qe.a,{className:"mx_ProfileSettings_controls_topic",id:"profileTopic",label:Object(c.a)("Room Topic"),disabled:!this.state.canSetTopic,type:"text",value:this.state.topic,autoComplete:"off",onChange:this._onTopicChanged,element:"textarea"})),i.a.createElement(t,{avatarUrl:this.state.avatarUrl,avatarName:this.state.displayName||this.props.roomId,avatarAltText:Object(c.a)("Room avatar"),uploadAvatar:this.state.canSetAvatar?this._uploadAvatar:void 0,removeAvatar:this.state.canSetAvatar?this._removeAvatar:void 0})),n)}},R()(pm,"propTypes",{roomId:He.a.string.isRequired}),hm=mm))||hm;var fm,_m,bm;let vm=Object(N.a)("views.settings.tabs.room.GeneralRoomSettingsTab")((bm=_m=class extends i.a.Component{constructor(){super(),R()(this,"_onLeaveClick",()=>{u.a.dispatch({action:"leave_room",room_id:this.props.roomId})}),this.state={isRoomPublished:!1}}render(){const e=d.getComponent("room_settings.AliasSettings"),t=d.getComponent("room_settings.RelatedGroupSettings"),n=d.getComponent("room_settings.UrlPreviewSettings"),o=this.context,r=o.getRoom(this.props.roomId),a=r.currentState.mayClientSendStateEvent("m.room.canonical_alias",o),s=r.currentState.getStateEvents("m.room.canonical_alias",""),l=r.currentState.getStateEvents("m.room.aliases"),u=r.currentState.mayClientSendStateEvent("m.room.related_groups",o),h=r.currentState.getStateEvents("m.room.related_groups","");let p,m=i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("URL Previews")),i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement(n,{room:r})));return G.b.getValue(lt.a.URLPreviews)||(m=null),G.b.getValue(lt.a.Flair)&&(p=i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Flair")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement(t,{roomId:r.roomId,canSetRelatedGroups:u,relatedGroupsEvent:h})))),i.a.createElement("div",{className:"mx_SettingsTab mx_GeneralRoomSettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("General")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_GeneralRoomSettingsTab_profileSection"},i.a.createElement(gm,{roomId:this.props.roomId})),i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Room Addresses")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement(e,{roomId:this.props.roomId,canSetCanonicalAlias:a,canSetAliases:!0,canonicalAliasEvent:s,aliasEvents:l})),i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Other")),p,m,i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Leave room")),i.a.createElement("div",{className:"mx_SettingsTab_section"},i.a.createElement(g.a,{kind:"danger",onClick:this._onLeaveClick},Object(c.a)("Leave room"))))}},R()(_m,"propTypes",{roomId:He.a.string.isRequired}),R()(_m,"contextType",b.a),fm=bm))||fm;var ym,Em,Sm,wm=n(175);let Cm=Object(N.a)("views.settings.tabs.room.SecurityRoomSettingsTab")((Sm=Em=class extends i.a.Component{constructor(){super(),R()(this,"_onStateEvent",e=>{["m.room.join_rules","m.room.guest_access","m.room.history_visibility","m.room.encryption"].includes(e.getType())&&this.forceUpdate()}),R()(this,"_onEncryptionChange",e=>{Ge.a.createTrackedDialog("Enable encryption","",Be.a,{title:Object(c.a)("Enable encryption?"),description:Object(c.a)("Once enabled, encryption for a room cannot be disabled. Messages sent in an encrypted room cannot be seen by the server, only by the participants of the room. Enabling encryption may prevent many bots and bridges from working correctly. <a>Learn more about encryption.</a>",{},{a:e=>i.a.createElement("a",{rel:"noreferrer noopener",target:"_blank",href:"https://element.io/help#encryption"},e)}),onFinished:e=>{if(!e)return void this.setState({encrypted:!1});const t=this.state.encrypted;this.setState({encrypted:!0}),de.a.get().sendStateEvent(this.props.roomId,"m.room.encryption",{algorithm:"m.megolm.v1.aes-sha2"}).catch(e=>{console.error(e),this.setState({encrypted:t})})}})}),R()(this,"_fixGuestAccess",e=>{e.preventDefault(),e.stopPropagation();const t=this.state.joinRule,n=this.state.guestAccess;this.setState({joinRule:"invite",guestAccess:"can_join"});const o=de.a.get();o.sendStateEvent(this.props.roomId,"m.room.join_rules",{join_rule:"invite"},"").catch(e=>{console.error(e),this.setState({joinRule:t})}),o.sendStateEvent(this.props.roomId,"m.room.guest_access",{guest_access:"can_join"},"").catch(e=>{console.error(e),this.setState({guestAccess:n})})}),R()(this,"_onRoomAccessRadioToggle",e=>{let t="invite",n="can_join";switch(e){case"invite_only":break;case"public_no_guests":t="public",n="forbidden";break;case"public_with_guests":t="public",n="can_join"}const o=this.state.joinRule,r=this.state.guestAccess;this.setState({joinRule:t,guestAccess:n});const i=de.a.get();i.sendStateEvent(this.props.roomId,"m.room.join_rules",{join_rule:t},"").catch(e=>{console.error(e),this.setState({joinRule:o})}),i.sendStateEvent(this.props.roomId,"m.room.guest_access",{guest_access:n},"").catch(e=>{console.error(e),this.setState({guestAccess:r})})}),R()(this,"_onHistoryRadioToggle",e=>{const t=this.state.history;this.setState({history:e}),de.a.get().sendStateEvent(this.props.roomId,"m.room.history_visibility",{history_visibility:e},"").catch(e=>{console.error(e),this.setState({history:t})})}),R()(this,"_updateBlacklistDevicesFlag",e=>{de.a.get().getRoom(this.props.roomId).setBlacklistUnverifiedDevices(e)}),this.state={joinRule:"invite",guestAccess:"can_join",history:"shared",hasAliases:!1,encrypted:!1}}async UNSAFE_componentWillMount(){de.a.get().on("RoomState.events",this._onStateEvent);const e=de.a.get().getRoom(this.props.roomId).currentState,t=this._pullContentPropertyFromEvent(e.getStateEvents("m.room.join_rules",""),"join_rule","invite"),n=this._pullContentPropertyFromEvent(e.getStateEvents("m.room.guest_access",""),"guest_access","forbidden"),o=this._pullContentPropertyFromEvent(e.getStateEvents("m.room.history_visibility",""),"history_visibility","shared"),r=de.a.get().isRoomEncrypted(this.props.roomId);this.setState({joinRule:t,guestAccess:n,history:o,encrypted:r});const i=await this._hasAliases();this.setState({hasAliases:i})}_pullContentPropertyFromEvent(e,t,n){return e&&e.getContent()&&e.getContent()[t]||n}componentWillUnmount(){de.a.get().removeListener("RoomState.events",this._onStateEvent)}async _hasAliases(){const e=de.a.get();if(await e.doesServerSupportUnstableFeature("org.matrix.msc2432")){const t=(await e.unstableGetLocalAliases(this.props.roomId)).aliases;return Array.isArray(t)&&0!==t.length}return!!(e.getRoom(this.props.roomId).currentState.getStateEvents("m.room.aliases")||[]).find(e=>(e.getContent().aliases||[]).length>0)}_renderRoomAccess(){const e=de.a.get(),t=e.getRoom(this.props.roomId),o=this.state.joinRule,r=this.state.guestAccess,a=t.currentState.mayClientSendStateEvent("m.room.join_rules",e)&&t.currentState.mayClientSendStateEvent("m.room.guest_access",e);let s=null;"public"!==o&&"forbidden"===r&&(s=i.a.createElement("div",{className:"mx_SecurityRoomSettingsTab_warning"},i.a.createElement("img",{src:n(258),width:15,height:15}),i.a.createElement("span",null,Object(c.a)("Guests cannot join this room even if explicitly invited.")," ",i.a.createElement("a",{href:"",onClick:this._fixGuestAccess},Object(c.a)("Click here to fix")))));let l=null;return"public"!==o||this.state.hasAliases||(l=i.a.createElement("div",{className:"mx_SecurityRoomSettingsTab_warning"},i.a.createElement("img",{src:n(258),width:15,height:15}),i.a.createElement("span",null,Object(c.a)("To link to this room, please add an address.")))),i.a.createElement("div",null,s,l,i.a.createElement(Ye.a,{name:"roomVis",value:o,onChange:this._onRoomAccessRadioToggle,definitions:[{value:"invite_only",disabled:!a,label:Object(c.a)("Only people who have been invited"),checked:"public"!==o},{value:"public_no_guests",disabled:!a,label:Object(c.a)("Anyone who knows the room's link, apart from guests"),checked:"public"===o&&"can_join"!==r},{value:"public_with_guests",disabled:!a,label:Object(c.a)("Anyone who knows the room's link, including guests"),checked:"public"===o&&"can_join"===r}]}))}_renderHistory(){const e=de.a.get(),t=this.state.history,n=e.getRoom(this.props.roomId).currentState.mayClientSendStateEvent("m.room.history_visibility",e);return i.a.createElement("div",null,i.a.createElement("div",null,Object(c.a)("Changes to who can read history will only apply to future messages in this room. The visibility of existing history will be unchanged.")),i.a.createElement(Ye.a,{name:"historyVis",value:t,onChange:this._onHistoryRadioToggle,definitions:[{value:"world_readable",disabled:!n,label:Object(c.a)("Anyone")},{value:"shared",disabled:!n,label:Object(c.a)("Members only (since the point in time of selecting this option)")},{value:"invited",disabled:!n,label:Object(c.a)("Members only (since they were invited)")},{value:"joined",disabled:!n,label:Object(c.a)("Members only (since they joined)")}]}))}render(){const e=d.getComponent("elements.SettingsFlag"),t=de.a.get(),n=t.getRoom(this.props.roomId),o=this.state.encrypted,r=n.currentState.mayClientSendStateEvent("m.room.encryption",t),a=!o&&r;let s=null;o&&G.b.isEnabled("blacklistUnverifiedDevices")&&(s=i.a.createElement(e,{name:"blacklistUnverifiedDevices",level:tt.a.ROOM_DEVICE,onChange:this._updateBlacklistDevicesFlag,roomId:this.props.roomId}));let l=i.a.createElement(i.a.Fragment,null,i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Who can read history?")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},this._renderHistory()));return G.b.getValue(lt.a.RoomHistorySettings)||(l=null),i.a.createElement("div",{className:"mx_SettingsTab mx_SecurityRoomSettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Security & Privacy")),i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Encryption")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SecurityRoomSettingsTab_encryptionSection"},i.a.createElement("div",null,i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},i.a.createElement("span",null,Object(c.a)("Once enabled, encryption cannot be disabled."))),i.a.createElement(wm.a,{value:o,onChange:this._onEncryptionChange,label:Object(c.a)("Encrypted"),disabled:!a})),s),i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Who can access this room?")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},this._renderRoomAccess()),l)}},R()(Em,"propTypes",{roomId:He.a.string.isRequired}),ym=Sm))||ym;var Tm,xm,Om,km=n(251);let Rm=Object(N.a)("views.settings.tabs.room.NotificationsSettingsTab")((Om=xm=class extends i.a.Component{constructor(){super(),R()(this,"_soundUpload",Object(r.createRef)()),this.state={currentSound:"default",uploadedFile:null}}UNSAFE_componentWillMount(){const e=km.default.getSoundForRoom(this.props.roomId);e&&this.setState({currentSound:e.name||e.url})}async _triggerUploader(e){e.stopPropagation(),e.preventDefault(),this._soundUpload.current.click()}async _onSoundUploadChanged(e){if(!e.target.files||!e.target.files.length)return void this.setState({uploadedFile:null});const t=e.target.files[0];this.setState({uploadedFile:t})}async _onClickSaveSound(e){e.stopPropagation(),e.preventDefault();try{await this._saveSound()}catch(e){console.error("Unable to save notification sound for "+this.props.roomId),console.error(e)}}async _saveSound(){if(!this.state.uploadedFile)return;let e=this.state.uploadedFile.type;"video/ogg"===e&&(e="audio/ogg");const t=await de.a.get().uploadContent(this.state.uploadedFile,{type:e});await G.b.setValue("notificationSound",this.props.roomId,tt.a.ROOM_ACCOUNT,{name:this.state.uploadedFile.name,type:e,size:this.state.uploadedFile.size,url:t}),this.setState({uploadedFile:null,currentSound:this.state.uploadedFile.name})}_clearSound(e){e.stopPropagation(),e.preventDefault(),G.b.setValue("notificationSound",this.props.roomId,tt.a.ROOM_ACCOUNT,null),this.setState({currentSound:"default"})}render(){let e=null;return this.state.uploadedFile&&(e=i.a.createElement("div",null,i.a.createElement("span",null,Object(c.a)("Uploaded sound"),": ",i.a.createElement("code",null,this.state.uploadedFile.name)))),i.a.createElement("div",{className:"mx_SettingsTab"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},Object(c.a)("Notifications")),i.a.createElement("div",{className:"mx_SettingsTab_section mx_SettingsTab_subsectionText"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Sounds")),i.a.createElement("div",null,i.a.createElement("span",null,Object(c.a)("Notification sound"),": ",i.a.createElement("code",null,this.state.currentSound)),i.a.createElement("br",null),i.a.createElement(g.a,{className:"mx_NotificationSound_resetSound",disabled:"default"==this.state.currentSound,onClick:this._clearSound.bind(this),kind:"primary"},Object(c.a)("Reset"))),i.a.createElement("div",null,i.a.createElement("h3",null,Object(c.a)("Set a new custom sound")),i.a.createElement("form",{autoComplete:"off",noValidate:!0},i.a.createElement("input",{ref:this._soundUpload,className:"mx_NotificationSound_soundUpload",type:"file",onChange:this._onSoundUploadChanged.bind(this),accept:"audio/*"})),e,i.a.createElement(g.a,{className:"mx_NotificationSound_browse",onClick:this._triggerUploader.bind(this),kind:"primary"},Object(c.a)("Browse")),i.a.createElement(g.a,{className:"mx_NotificationSound_save",disabled:null==this.state.uploadedFile,onClick:this._onClickSaveSound.bind(this),kind:"primary"},Object(c.a)("Save")),i.a.createElement("br",null))))}},R()(xm,"propTypes",{roomId:He.a.string.isRequired}),Tm=Om))||Tm;var Dm,Im,Am;let Nm=Object(N.a)("views.dialogs.RoomSettingsDialog")((Am=Im=class extends i.a.Component{constructor(...e){super(...e),R()(this,"_onAction",e=>{"view_home_page"===e.action&&this.props.onFinished()})}componentDidMount(){this._dispatcherRef=u.a.register(this._onAction)}componentWillUnmount(){this._dispatcherRef&&u.a.unregister(this._dispatcherRef)}_getTabs(){const e=[];return e.push(new no.a("ROOM_GENERAL_TAB",Object(c.b)("General"),"mx_RoomSettingsDialog_settingsIcon",i.a.createElement(vm,{roomId:this.props.roomId}))),e.push(new no.a("ROOM_SECURITY_TAB",Object(c.b)("Security & Privacy"),"mx_RoomSettingsDialog_securityIcon",i.a.createElement(Cm,{roomId:this.props.roomId}))),e.push(new no.a("ROOM_ROLES_TAB",Object(c.b)("Roles & Permissions"),"mx_RoomSettingsDialog_rolesIcon",i.a.createElement(um,{roomId:this.props.roomId}))),e.push(new no.a("ROOM_NOTIFICATIONS_TAB",Object(c.b)("Notifications"),"mx_RoomSettingsDialog_notificationsIcon",i.a.createElement(Rm,{roomId:this.props.roomId}))),G.b.getValue("feature_bridge_state")&&e.push(new no.a("ROOM_BRIDGES_TAB",Object(c.b)("Bridges"),"mx_RoomSettingsDialog_bridgesIcon",i.a.createElement(Ml,{roomId:this.props.roomId}))),G.b.getValue(lt.a.AdvancedSettings)&&e.push(new no.a("ROOM_ADVANCED_TAB",Object(c.b)("Advanced"),"mx_RoomSettingsDialog_warningIcon",i.a.createElement(om,{roomId:this.props.roomId,closeSettingsFn:this.props.onFinished}))),e}render(){const e=d.getComponent("views.dialogs.BaseDialog"),t=de.a.get().getRoom(this.props.roomId).name;return i.a.createElement(e,{className:"mx_RoomSettingsDialog",hasCancel:!0,onFinished:this.props.onFinished,title:Object(c.a)("Room Settings - %(roomName)s",{roomName:t})},i.a.createElement("div",{className:"mx_SettingsDialog_content"},i.a.createElement(no.b,{tabs:this._getTabs()})))}},R()(Im,"propTypes",{roomId:He.a.string.isRequired,onFinished:He.a.func.isRequired}),Dm=Am))||Dm;var Fm,Mm,Pm;let Lm=Object(N.a)("views.dialogs.RoomUpgradeDialog")((Pm=Mm=class extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{busy:!0}),R()(this,"_onCancelClick",()=>{this.props.onFinished(!1)}),R()(this,"_onUpgradeClick",()=>{this.setState({busy:!0}),de.a.get().upgradeRoom(this.props.room.roomId,this._targetVersion).then(()=>{this.props.onFinished(!0)}).catch(e=>{const t=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Failed to upgrade room","",t,{title:Object(c.a)("Failed to upgrade room"),description:e&&e.message?e.message:Object(c.a)("The room upgrade could not be completed")})}).finally(()=>{this.setState({busy:!1})})})}async componentDidMount(){const e=await this.props.room.getRecommendedVersion();this._targetVersion=e.version,this.setState({busy:!1})}render(){const e=d.getComponent("views.dialogs.BaseDialog"),t=d.getComponent("views.elements.DialogButtons"),n=d.getComponent("views.elements.Spinner");let o;return o=this.state.busy?i.a.createElement(n,null):i.a.createElement(t,{primaryButton:Object(c.a)("Upgrade this room to version %(version)s",{version:this._targetVersion}),primaryButtonClass:"danger",hasCancel:!0,onPrimaryButtonClick:this._onUpgradeClick,focus:this.props.focus,onCancel:this._onCancelClick}),i.a.createElement(e,{className:"mx_RoomUpgradeDialog",onFinished:this.props.onFinished,title:Object(c.a)("Upgrade Room Version"),contentId:"mx_Dialog_content",hasCancel:!0},i.a.createElement("p",null,Object(c.a)("Upgrading this room requires closing down the current instance of the room and creating a new room in its place. To give room members the best possible experience, we will:")),i.a.createElement("ol",null,i.a.createElement("li",null,Object(c.a)("Create a new room with the same name, description and avatar")),i.a.createElement("li",null,Object(c.a)("Update any local room aliases to point to the new room")),i.a.createElement("li",null,Object(c.a)("Stop users from speaking in the old version of the room, and post a message advising users to move to the new room")),i.a.createElement("li",null,Object(c.a)("Put a link back to the old room at the start of the new room so people can see old messages"))),o)}},R()(Mm,"propTypes",{room:He.a.object.isRequired,onFinished:He.a.func.isRequired}),Fm=Pm))||Fm;var jm,Um,Bm;let qm=Object(N.a)("views.dialogs.RoomUpgradeWarningDialog")((Bm=Um=class extends i.a.Component{constructor(e){super(e),R()(this,"_onContinue",()=>{this.props.onFinished({continue:!0,invite:this.state.isPrivate&&this.state.inviteUsersToNewRoom})}),R()(this,"_onCancel",()=>{this.props.onFinished({continue:!1,invite:!1})}),R()(this,"_onInviteUsersToggle",e=>{this.setState({inviteUsersToNewRoom:e})}),R()(this,"_openBugReportDialog",e=>{e.preventDefault(),e.stopPropagation();const t=d.getComponent("dialogs.BugReportDialog");Ge.a.createTrackedDialog("Bug Report Dialog","",t,{})});const t=de.a.get().getRoom(this.props.roomId),n=t?t.currentState.getStateEvents("m.room.join_rules",""):null,o=!n||"public"!==n.getContent().join_rule;this.state={currentVersion:t?t.getVersion():"1",isPrivate:o,inviteUsersToNewRoom:!0}}render(){const e=l.a.get().brand,t=d.getComponent("views.dialogs.BaseDialog"),n=d.getComponent("views.elements.DialogButtons");let o=null;this.state.isPrivate&&(o=i.a.createElement(wm.a,{value:this.state.inviteUsersToNewRoom,onChange:this._onInviteUsersToggle,label:Object(c.a)("Automatically invite users")}));const r=this.state.isPrivate?Object(c.a)("Upgrade private room"):Object(c.a)("Upgrade public room");let a=i.a.createElement("p",null,Object(c.a)("This usually only affects how the room is processed on the server. If you're having problems with your %(brand)s, please report a bug.",{brand:e}));return l.a.get().bug_report_endpoint_url&&(a=i.a.createElement("p",null,Object(c.a)("This usually only affects how the room is processed on the server. If you're having problems with your %(brand)s, please <a>report a bug</a>.",{brand:e},{a:e=>i.a.createElement("a",{href:"#",onClick:this._openBugReportDialog},e)}))),i.a.createElement(t,{className:"mx_RoomUpgradeWarningDialog",hasCancel:!0,fixedWidth:!1,onFinished:this.props.onFinished,title:r},i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("Upgrading a room is an advanced action and is usually recommended when a room is unstable due to bugs, missing features or security vulnerabilities.")),a,i.a.createElement("p",null,Object(c.a)("You'll upgrade this room from <oldVersion /> to <newVersion />.",{},{oldVersion:()=>i.a.createElement("code",null,this.state.currentVersion),newVersion:()=>i.a.createElement("code",null,this.props.targetVersion)})),o),i.a.createElement(n,{primaryButton:Object(c.a)("Upgrade"),onPrimaryButtonClick:this._onContinue,cancelButton:Object(c.a)("Cancel"),onCancel:this._onCancel}))}},R()(Um,"propTypes",{onFinished:He.a.func.isRequired,roomId:He.a.string.isRequired,targetVersion:He.a.string.isRequired}),jm=Bm))||jm;var Gm,Vm,Hm;let zm=Object(N.a)("views.dialogs.SessionRestoreErrorDialog")((Hm=Vm=class extends i.a.Component{constructor(...e){super(...e),R()(this,"_sendBugReport",()=>{const e=d.getComponent("dialogs.BugReportDialog");Ge.a.createTrackedDialog("Session Restore Error","Send Bug Report Dialog",e,{})}),R()(this,"_onClearStorageClick",()=>{const e=d.getComponent("dialogs.QuestionDialog");Ge.a.createTrackedDialog("Session Restore Confirm Logout","",e,{title:Object(c.a)("Sign out"),description:i.a.createElement("div",null,Object(c.a)("Sign out and remove encryption keys?")),button:Object(c.a)("Sign out"),danger:!0,onFinished:this.props.onFinished})}),R()(this,"_onRefreshClick",()=>{window.location.reload(!0)})}render(){const e=l.a.get().brand,t=d.getComponent("views.dialogs.BaseDialog"),n=d.getComponent("views.elements.DialogButtons"),o=i.a.createElement("button",{onClick:this._onClearStorageClick,className:"danger"},Object(c.a)("Clear Storage and Sign Out"));let r;return r=l.a.get().bug_report_endpoint_url?i.a.createElement(n,{primaryButton:Object(c.a)("Send Logs"),onPrimaryButtonClick:this._sendBugReport,focus:!0,hasCancel:!1},o):i.a.createElement(n,{primaryButton:Object(c.a)("Refresh"),onPrimaryButtonClick:this._onRefreshClick,focus:!0,hasCancel:!1},o),i.a.createElement(t,{className:"mx_ErrorDialog",onFinished:this.props.onFinished,title:Object(c.a)("Unable to restore session"),contentId:"mx_Dialog_content",hasCancel:!1},i.a.createElement("div",{className:"mx_Dialog_content",id:"mx_Dialog_content"},i.a.createElement("p",null,Object(c.a)("We encountered an error trying to restore your previous session.")),i.a.createElement("p",null,Object(c.a)("If you have previously used a more recent version of %(brand)s, your session may be incompatible with this version. Close this window and return to the more recent version.",{brand:e})),i.a.createElement("p",null,Object(c.a)("Clearing your browser's storage may fix the problem, but will sign you out and cause any encrypted chat history to become unreadable."))),r)}},R()(Vm,"propTypes",{error:He.a.string.isRequired,onFinished:He.a.func.isRequired}),Gm=Hm))||Gm;function Km(){return de.a.get().idBaseUrl.split("://")[1]}class Wm{constructor(){R()(this,"_makeAddThreepidOnlyRequest",e=>de.a.get().addThreePidOnly({sid:this.sessionId,client_secret:this.clientSecret,auth:e})),this.clientSecret=de.a.get().generateClientSecret(),this.sessionId=null,this.submitUrl=null}addEmailAddress(e){return de.a.get().requestAdd3pidEmailToken(e,this.clientSecret,1).then(e=>(this.sessionId=e.sid,e),(function(e){throw"M_THREEPID_IN_USE"===e.errcode?e.message=Object(c.a)("This email address is already in use"):e.httpStatus&&(e.message=e.message+` (Status ${e.httpStatus})`),e}))}async bindEmailAddress(e){if(this.bind=!0,await de.a.get().doesServerSupportSeparateAddAndBind()){const t=new Jh.a,n=await t.getAccessToken();return de.a.get().requestEmailToken(e,this.clientSecret,1,void 0,void 0,n).then(e=>(this.sessionId=e.sid,e),(function(e){throw"M_THREEPID_IN_USE"===e.errcode?e.message=Object(c.a)("This email address is already in use"):e.httpStatus&&(e.message=e.message+` (Status ${e.httpStatus})`),e}))}return this.addEmailAddress(e)}addMsisdn(e,t){return de.a.get().requestAdd3pidMsisdnToken(e,t,this.clientSecret,1).then(e=>(this.sessionId=e.sid,this.submitUrl=e.submit_url,e),(function(e){throw"M_THREEPID_IN_USE"===e.errcode?e.message=Object(c.a)("This phone number is already in use"):e.httpStatus&&(e.message=e.message+` (Status ${e.httpStatus})`),e}))}async bindMsisdn(e,t){if(this.bind=!0,await de.a.get().doesServerSupportSeparateAddAndBind()){const n=new Jh.a,o=await n.getAccessToken();return de.a.get().requestMsisdnToken(e,t,this.clientSecret,1,void 0,void 0,o).then(e=>(this.sessionId=e.sid,e),(function(e){throw"M_THREEPID_IN_USE"===e.errcode?e.message=Object(c.a)("This phone number is already in use"):e.httpStatus&&(e.message=e.message+` (Status ${e.httpStatus})`),e}))}return this.addMsisdn(e,t)}async checkEmailLinkClicked(){try{if(await de.a.get().doesServerSupportSeparateAddAndBind())if(this.bind){const e=new Jh.a,t=await e.getAccessToken();await de.a.get().bindThreePid({sid:this.sessionId,client_secret:this.clientSecret,id_server:Km(),id_access_token:t})}else try{return void await this._makeAddThreepidOnlyRequest()}catch(e){if(401!==e.httpStatus||!e.data||!e.data.flows)throw e;const t=d.getComponent("dialogs.InteractiveAuthDialog"),n={[Pu.c.PHASE_PREAUTH]:{title:Object(c.a)("Use Single Sign On to continue"),body:Object(c.a)("Confirm adding this email address by using Single Sign On to prove your identity."),continueText:Object(c.a)("Single Sign On"),continueKind:"primary"},[Pu.c.PHASE_POSTAUTH]:{title:Object(c.a)("Confirm adding email"),body:Object(c.a)("Click the button below to confirm adding this email address."),continueText:Object(c.a)("Confirm"),continueKind:"primary"}},{finished:o}=Ge.a.createTrackedDialog("Add Email","",t,{title:Object(c.a)("Add Email Address"),matrixClient:de.a.get(),authData:e.data,makeRequest:this._makeAddThreepidOnlyRequest,aestheticsForStagePhases:{[Pu.c.LOGIN_TYPE]:n,[Pu.c.UNSTABLE_LOGIN_TYPE]:n}});return o}else await de.a.get().addThreePid({sid:this.sessionId,client_secret:this.clientSecret,id_server:Km()},this.bind)}catch(e){throw 401===e.httpStatus?e.message=Object(c.a)("Failed to verify email address: make sure you clicked the link in the email"):e.httpStatus&&(e.message+=` (Status ${e.httpStatus})`),e}}async haveMsisdnToken(e){const t=new Jh.a,n=await de.a.get().doesServerSupportSeparateAddAndBind();let o;if(this.submitUrl)o=await de.a.get().submitMsisdnTokenOtherUrl(this.submitUrl,this.sessionId,this.clientSecret,e);else{if(!this.bind&&n)throw new Error("The add / bind with MSISDN flow is misconfigured");o=await de.a.get().submitMsisdnToken(this.sessionId,this.clientSecret,e,await t.getAccessToken())}if(o.errcode)throw o;if(n)if(this.bind)await de.a.get().bindThreePid({sid:this.sessionId,client_secret:this.clientSecret,id_server:Km(),id_access_token:await t.getAccessToken()});else try{return void await this._makeAddThreepidOnlyRequest()}catch(e){if(401!==e.httpStatus||!e.data||!e.data.flows)throw e;const t=d.getComponent("dialogs.InteractiveAuthDialog"),n={[Pu.c.PHASE_PREAUTH]:{title:Object(c.a)("Use Single Sign On to continue"),body:Object(c.a)("Confirm adding this phone number by using Single Sign On to prove your identity."),continueText:Object(c.a)("Single Sign On"),continueKind:"primary"},[Pu.c.PHASE_POSTAUTH]:{title:Object(c.a)("Confirm adding phone number"),body:Object(c.a)("Click the button below to confirm adding this phone number."),continueText:Object(c.a)("Confirm"),continueKind:"primary"}},{finished:o}=Ge.a.createTrackedDialog("Add MSISDN","",t,{title:Object(c.a)("Add Phone Number"),matrixClient:de.a.get(),authData:e.data,makeRequest:this._makeAddThreepidOnlyRequest,aestheticsForStagePhases:{[Pu.c.LOGIN_TYPE]:n,[Pu.c.UNSTABLE_LOGIN_TYPE]:n}});return o}else await de.a.get().addThreePid({sid:this.sessionId,client_secret:this.clientSecret,id_server:Km()},this.bind)}}var Ym,$m,Qm;let Jm=Object(N.a)("views.dialogs.SetEmailDialog")((Qm=$m=class extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{emailAddress:"",emailBusy:!1}),R()(this,"onEmailAddressChanged",e=>{this.setState({emailAddress:e})}),R()(this,"onSubmit",()=>{const e=d.getComponent("dialogs.ErrorDialog"),t=d.getComponent("dialogs.QuestionDialog"),n=this.state.emailAddress;fo.a(n)?(this._addThreepid=new Wm,this._addThreepid.addEmailAddress(n).then(()=>{Ge.a.createTrackedDialog("Verification Pending","",t,{title:Object(c.a)("Verification Pending"),description:Object(c.a)("Please check your email and click on the link it contains. Once this is done, click continue."),button:Object(c.a)("Continue"),onFinished:this.onEmailDialogFinished})},t=>{this.setState({emailBusy:!1}),console.error("Unable to add email address "+n+" "+t),Ge.a.createTrackedDialog("Unable to add email address","",e,{title:Object(c.a)("Unable to add email address"),description:t&&t.message?t.message:Object(c.a)("Operation failed")})}),this.setState({emailBusy:!0})):Ge.a.createTrackedDialog("Invalid Email Address","",e,{title:Object(c.a)("Invalid Email Address"),description:Object(c.a)("This doesn't appear to be a valid email address")})}),R()(this,"onCancelled",()=>{this.props.onFinished(!1)}),R()(this,"onEmailDialogFinished",e=>{e?this.verifyEmailAddress():this.setState({emailBusy:!1})})}verifyEmailAddress(){this._addThreepid.checkEmailLinkClicked().then(()=>{this.props.onFinished(!0)},e=>{if(this.setState({emailBusy:!1}),"M_THREEPID_AUTH_FAILED"==e.errcode){const e=d.getComponent("dialogs.QuestionDialog"),t=Object(c.a)("Unable to verify email address.")+" "+Object(c.a)("Please check your email and click on the link it contains. Once this is done, click continue.");Ge.a.createTrackedDialog("Verification Pending","3pid Auth Failed",e,{title:Object(c.a)("Verification Pending"),description:t,button:Object(c.a)("Continue"),onFinished:this.onEmailDialogFinished})}else{const t=d.getComponent("dialogs.ErrorDialog");console.error("Unable to verify email address: "+e),Ge.a.createTrackedDialog("Unable to verify email address","",t,{title:Object(c.a)("Unable to verify email address."),description:e&&e.message?e.message:Object(c.a)("Operation failed")})}})}render(){const e=d.getComponent("views.dialogs.BaseDialog"),t=d.getComponent("elements.Spinner"),n=d.getComponent("elements.EditableText"),o=this.state.emailBusy?i.a.createElement(t,null):i.a.createElement(n,{initialValue:this.state.emailAddress,className:"mx_SetEmailDialog_email_input",autoFocus:"true",placeholder:Object(c.a)("Email address"),placeholderClassName:"mx_SetEmailDialog_email_input_placeholder",blurToCancel:!1,onValueChanged:this.onEmailAddressChanged});return i.a.createElement(e,{className:"mx_SetEmailDialog",onFinished:this.onCancelled,title:this.props.title,contentId:"mx_Dialog_content"},i.a.createElement("div",{className:"mx_Dialog_content"},i.a.createElement("p",{id:"mx_Dialog_content"},Object(c.a)("This will allow you to reset your password and receive notifications.")),o),i.a.createElement("div",{className:"mx_Dialog_buttons"},i.a.createElement("input",{className:"mx_Dialog_primary",type:"submit",value:Object(c.a)("Continue"),onClick:this.onSubmit}),i.a.createElement("input",{type:"submit",value:Object(c.a)("Skip"),onClick:this.onCancelled})))}},R()($m,"propTypes",{onFinished:He.a.func.isRequired}),Ym=Qm))||Ym;var Xm,Zm,eg,tg=({onFinished:e})=>{const t=d.getComponent("dialogs.InfoDialog"),n={};xs.forEach(e=>{e.isEnabled()&&(n[e.category]||(n[e.category]=[]),n[e.category].push(e))});const o=Object.values(Ss).filter(e=>n[e]).map(e=>{const t=[i.a.createElement("tr",{key:"_category_"+e,className:"mx_SlashCommandHelpDialog_headerRow"},i.a.createElement("td",{colSpan:3},i.a.createElement("h2",null,Object(c.a)(e))))];return n[e].forEach(e=>{t.push(i.a.createElement("tr",{key:e.command},i.a.createElement("td",null,i.a.createElement("strong",null,e.getCommand())),i.a.createElement("td",null,e.args),i.a.createElement("td",null,e.description)))}),t});return i.a.createElement(t,{className:"mx_SlashCommandHelpDialog",title:Object(c.a)("Command Help"),description:i.a.createElement("table",null,i.a.createElement("tbody",null,o)),hasCloseButton:!0,onFinished:e})};let ng=Object(N.a)("views.dialogs.StorageEvictedDialog")((eg=Zm=class extends i.a.Component{constructor(...e){super(...e),R()(this,"_sendBugReport",e=>{e.preventDefault();const t=d.getComponent("dialogs.BugReportDialog");Ge.a.createTrackedDialog("Storage evicted","Send Bug Report Dialog",t,{})}),R()(this,"_onSignOutClick",()=>{this.props.onFinished(!0)})}render(){const e=d.getComponent("views.dialogs.BaseDialog"),t=d.getComponent("views.elements.DialogButtons");let n;return l.a.get().bug_report_endpoint_url&&(n=Object(c.a)("To help us prevent this in future, please <a>send us logs</a>.",{},{a:e=>i.a.createElement("a",{href:"#",onClick:this._sendBugReport},e)})),i.a.createElement(e,{className:"mx_ErrorDialog",onFinished:this.props.onFinished,title:Object(c.a)("Missing session data"),contentId:"mx_Dialog_content",hasCancel:!1},i.a.createElement("div",{className:"mx_Dialog_content",id:"mx_Dialog_content"},i.a.createElement("p",null,Object(c.a)("Some session data, including encrypted message keys, is missing. Sign out and sign in to fix this, restoring keys from backup.")),i.a.createElement("p",null,Object(c.a)("Your browser likely removed this data when running low on disk space.")," ",n)),i.a.createElement(t,{primaryButton:Object(c.a)("Sign out"),onPrimaryButtonClick:this._onSignOutClick,focus:!0,hasCancel:!1}))}},R()(Zm,"propTypes",{onFinished:He.a.func.isRequired}),Xm=eg))||Xm;var og,rg,ig,ag=n(602),sg=n(121),cg=n.n(sg),lg=n(195);class dg extends i.a.PureComponent{constructor(...e){super(...e),R()(this,"onChange",e=>{this.props.onChange(this.props.url,e.target.checked)})}render(){return i.a.createElement("input",{type:"checkbox",onChange:this.onChange,checked:this.props.checked})}}R()(dg,"propTypes",{onChange:He.a.func.isRequired,url:He.a.string.isRequired,checked:He.a.bool.isRequired});let ug=Object(N.a)("views.dialogs.TermsDialog")((ig=rg=class extends i.a.PureComponent{constructor(e){super(),R()(this,"_onCancelClick",()=>{this.props.onFinished(!1)}),R()(this,"_onNextClick",()=>{this.props.onFinished(!0,Object.keys(this.state.agreedUrls).filter(e=>this.state.agreedUrls[e]))}),R()(this,"_onTermsCheckboxChange",(e,t)=>{this.setState({agreedUrls:Object.assign({},this.state.agreedUrls,{[e]:t})})}),this.state={agreedUrls:{}};for(const t of e.agreedUrls)this.state.agreedUrls[t]=!0}_nameForServiceType(e,t){switch(e){case lg.a.IS:return i.a.createElement("div",null,Object(c.a)("Identity Server"),i.a.createElement("br",null),"(",t,")");case lg.a.IM:return i.a.createElement("div",null,Object(c.a)("Integration Manager"),i.a.createElement("br",null),"(",t,")")}}_summaryForServiceType(e){switch(e){case lg.a.IS:return i.a.createElement("div",null,Object(c.a)("Find others by phone or email"),i.a.createElement("br",null),Object(c.a)("Be found by phone or email"));case lg.a.IM:return i.a.createElement("div",null,Object(c.a)("Use bots, bridges, widgets and sticker packs"))}}render(){const e=d.getComponent("views.dialogs.BaseDialog"),t=d.getComponent("views.elements.DialogButtons"),n=[];for(const e of this.props.policiesAndServicePairs){const t=cg.a.parse(e.service.baseUrl),o=Object.values(e.policies);for(let r=0;r<o.length;++r){const a=o[r],s=Object(c.j)(Object.keys(a).filter(e=>"version"!==e));let l,d;0===r&&(l=this._nameForServiceType(e.service.serviceType,t.host),d=this._summaryForServiceType(e.service.serviceType)),n.push(i.a.createElement("tr",{key:a[s].url},i.a.createElement("td",{className:"mx_TermsDialog_service"},l),i.a.createElement("td",{className:"mx_TermsDialog_summary"},d),i.a.createElement("td",null,a[s].name," ",i.a.createElement("a",{rel:"noreferrer noopener",target:"_blank",href:a[s].url},i.a.createElement("span",{className:"mx_TermsDialog_link"}))),i.a.createElement("td",null,i.a.createElement(dg,{url:a[s].url,onChange:this._onTermsCheckboxChange,checked:Boolean(this.state.agreedUrls[a[s].url])}))))}}let o=!1;for(const e of this.props.policiesAndServicePairs){let t=0;for(const n of Object.values(e.policies)){let e=!1;for(const t of Object.keys(n))if("version"!==t&&this.state.agreedUrls[n[t].url]){e=!0;break}e&&++t}if(t===Object.keys(e.policies).length){o=!0;break}}return i.a.createElement(e,{fixedWidth:!1,onFinished:this._onCancelClick,title:Object(c.a)("Terms of Service"),contentId:"mx_Dialog_content",hasCancel:!1},i.a.createElement("div",{id:"mx_Dialog_content"},i.a.createElement("p",null,Object(c.a)("To continue you need to accept the terms of this service.")),i.a.createElement("table",{className:"mx_TermsDialog_termsTable"},i.a.createElement("tbody",null,i.a.createElement("tr",{className:"mx_TermsDialog_termsTableHeader"},i.a.createElement("th",null,Object(c.a)("Service")),i.a.createElement("th",null,Object(c.a)("Summary")),i.a.createElement("th",null,Object(c.a)("Document")),i.a.createElement("th",null,Object(c.a)("Accept"))),n))),i.a.createElement(t,{primaryButton:Object(c.a)("Next"),hasCancel:!0,onCancel:this._onCancelClick,onPrimaryButtonClick:this._onNextClick,primaryDisabled:!o}))}},R()(rg,"propTypes",{policiesAndServicePairs:He.a.array.isRequired,agreedUrls:He.a.arrayOf(He.a.string),onFinished:He.a.func.isRequired}),og=ig))||og;var hg,pg,mg;let gg=Object(N.a)("views.dialogs.TextInputDialog")((mg=pg=class extends i.a.Component{constructor(e){super(e),R()(this,"onOk",async e=>{if(e.preventDefault(),this.props.validator&&(this.setState({busy:!0}),await this._field.current.validate({allowEmpty:!1}),!this._field.current.state.valid))return this._field.current.focus(),this._field.current.validate({allowEmpty:!1,focused:!0}),void this.setState({busy:!1});this.props.onFinished(!0,this.state.value)}),R()(this,"onCancel",()=>{this.props.onFinished(!1)}),R()(this,"onChange",e=>{this.setState({value:e.target.value})}),R()(this,"onValidate",async e=>{const t=await this.props.validator(e);return this.setState({valid:t.valid}),t}),this._field=Object(r.createRef)(),this.state={value:this.props.value,busy:!1,valid:!1}}componentDidMount(){this.props.focus&&this._field.current.focus()}render(){const e=d.getComponent("views.dialogs.BaseDialog"),t=d.getComponent("views.elements.DialogButtons");return i.a.createElement(e,{className:"mx_TextInputDialog",onFinished:this.props.onFinished,title:this.props.title,fixedWidth:this.props.fixedWidth},i.a.createElement("form",{onSubmit:this.onOk},i.a.createElement("div",{className:"mx_Dialog_content"},i.a.createElement("div",{className:"mx_TextInputDialog_label"},i.a.createElement("label",{htmlFor:"textinput"}," ",this.props.description," ")),i.a.createElement("div",null,i.a.createElement(qe.a,{className:"mx_TextInputDialog_input",ref:this._field,type:"text",label:this.props.placeholder,value:this.state.value,onChange:this.onChange,onValidate:this.props.validator?this.onValidate:void 0,size:"64"})))),i.a.createElement(t,{primaryButton:this.state.busy?Object(c.a)(this.props.busyMessage):this.props.button,disabled:this.state.busy,onPrimaryButtonClick:this.onOk,onCancel:this.onCancel,hasCancel:this.props.hasCancel}))}},R()(pg,"propTypes",{title:He.a.string,description:He.a.oneOfType([He.a.element,He.a.string]),value:He.a.string,placeholder:He.a.string,button:He.a.string,busyMessage:He.a.string,focus:He.a.bool,onFinished:He.a.func.isRequired,hasCancel:He.a.bool,validator:He.a.func,fixedWidth:He.a.bool}),R()(pg,"defaultProps",{title:"",value:"",description:"",busyMessage:Object(c.b)("Loading..."),focus:!0,hasCancel:!0}),hg=mg))||hg;var fg,_g,bg;let vg=Object(N.a)("views.dialogs.UploadConfirmDialog")((bg=_g=class extends i.a.Component{constructor(e){super(e),R()(this,"_onCancelClick",()=>{this.props.onFinished(!1)}),R()(this,"_onUploadClick",()=>{this.props.onFinished(!0)}),R()(this,"_onUploadAllClick",()=>{this.props.onFinished(!0,!0)}),this._objectUrl=URL.createObjectURL(e.file)}componentWillUnmount(){this._objectUrl&&URL.revokeObjectURL(this._objectUrl)}render(){const e=d.getComponent("views.dialogs.BaseDialog"),t=d.getComponent("views.elements.DialogButtons");let o,r,a;return o=this.props.totalFiles>1&&void 0!==this.props.currentIndex?Object(c.a)("Upload files (%(current)s of %(total)s)",{current:this.props.currentIndex+1,total:this.props.totalFiles}):Object(c.a)("Upload files"),r=this.props.file.type.startsWith("image/")?i.a.createElement("div",{className:"mx_UploadConfirmDialog_previewOuter"},i.a.createElement("div",{className:"mx_UploadConfirmDialog_previewInner"},i.a.createElement("div",null,i.a.createElement("img",{className:"mx_UploadConfirmDialog_imagePreview",src:this._objectUrl})),i.a.createElement("div",null,this.props.file.name," (",ao()(this.props.file.size),")"))):i.a.createElement("div",null,i.a.createElement("div",null,i.a.createElement("img",{className:"mx_UploadConfirmDialog_fileIcon",src:n(1355)}),this.props.file.name," (",ao()(this.props.file.size),")")),this.props.currentIndex+1<this.props.totalFiles&&(a=i.a.createElement("button",{onClick:this._onUploadAllClick},Object(c.a)("Upload all"))),i.a.createElement(e,{className:"mx_UploadConfirmDialog",fixedWidth:!1,onFinished:this._onCancelClick,title:o,contentId:"mx_Dialog_content"},i.a.createElement("div",{id:"mx_Dialog_content"},r),i.a.createElement(t,{primaryButton:Object(c.a)("Upload"),hasCancel:!1,onPrimaryButtonClick:this._onUploadClick,focus:!0},a))}},R()(_g,"propTypes",{file:He.a.object.isRequired,currentIndex:He.a.number,totalFiles:He.a.number,onFinished:He.a.func.isRequired}),R()(_g,"defaultProps",{totalFiles:1}),fg=bg))||fg;var yg,Eg,Sg;let wg=Object(N.a)("views.dialogs.UploadFailureDialog")((Sg=Eg=class extends i.a.Component{constructor(...e){super(...e),R()(this,"_onCancelClick",()=>{this.props.onFinished(!1)}),R()(this,"_onUploadClick",()=>{this.props.onFinished(!0)})}render(){const e=d.getComponent("views.dialogs.BaseDialog"),t=d.getComponent("views.elements.DialogButtons");let n,o;if(1===this.props.totalFiles&&1===this.props.badFiles.length)n=Object(c.a)("This file is <b>too large</b> to upload. The file size limit is %(limit)s but this file is %(sizeOfThisFile)s.",{limit:ao()(this.props.contentMessages.getUploadLimit()),sizeOfThisFile:ao()(this.props.badFiles[0].size)},{b:e=>i.a.createElement("b",null,e)}),o=i.a.createElement(t,{primaryButton:Object(c.a)("OK"),hasCancel:!1,onPrimaryButtonClick:this._onCancelClick,focus:!0});else if(this.props.totalFiles===this.props.badFiles.length)n=Object(c.a)("These files are <b>too large</b> to upload. The file size limit is %(limit)s.",{limit:ao()(this.props.contentMessages.getUploadLimit())},{b:e=>i.a.createElement("b",null,e)}),o=i.a.createElement(t,{primaryButton:Object(c.a)("OK"),hasCancel:!1,onPrimaryButtonClick:this._onCancelClick,focus:!0});else{n=Object(c.a)("Some files are <b>too large</b> to be uploaded. The file size limit is %(limit)s.",{limit:ao()(this.props.contentMessages.getUploadLimit())},{b:e=>i.a.createElement("b",null,e)});const e=this.props.totalFiles-this.props.badFiles.length;o=i.a.createElement(t,{primaryButton:Object(c.a)("Upload %(count)s other files",{count:e}),onPrimaryButtonClick:this._onUploadClick,hasCancel:!0,cancelButton:Object(c.a)("Cancel All"),onCancel:this._onCancelClick,focus:!0})}return i.a.createElement(e,{className:"mx_UploadFailureDialog",onFinished:this._onCancelClick,title:Object(c.a)("Upload Error"),contentId:"mx_Dialog_content"},i.a.createElement("div",{id:"mx_Dialog_content"},n,void 0),o)}},R()(Eg,"propTypes",{badFiles:He.a.arrayOf(He.a.object).isRequired,totalFiles:He.a.number.isRequired,contentMessages:He.a.instanceOf(ro.a).isRequired,onFinished:He.a.func.isRequired}),yg=Sg))||yg;var Cg,Tg,xg,Og=n(694);let kg=Object(N.a)("views.dialogs.security.ConfirmDestroyCrossSigningDialog")((xg=Tg=class extends i.a.Component{constructor(...e){super(...e),R()(this,"_onConfirm",()=>{this.props.onFinished(!0)}),R()(this,"_onDecline",()=>{this.props.onFinished(!1)})}render(){const e=d.getComponent("views.dialogs.BaseDialog"),t=d.getComponent("views.elements.DialogButtons");return i.a.createElement(e,{className:"mx_ConfirmDestroyCrossSigningDialog",hasCancel:!0,onFinished:this.props.onFinished,title:Object(c.a)("Destroy cross-signing keys?")},i.a.createElement("div",{className:"mx_ConfirmDestroyCrossSigningDialog_content"},i.a.createElement("p",null,Object(c.a)("Deleting cross-signing keys is permanent. Anyone you have verified with will see security alerts. You almost certainly don't want to do this, unless you've lost every device you can cross-sign from."))),i.a.createElement(t,{primaryButton:Object(c.a)("Clear cross-signing keys"),onPrimaryButtonClick:this._onConfirm,primaryButtonClass:"danger",cancelButton:Object(c.a)("Cancel"),onCancel:this._onDecline}))}},R()(Tg,"propTypes",{onFinished:He.a.func.isRequired}),Cg=xg))||Cg;var Rg,Dg,Ig,Ag=n(654);let Ng=Object(N.a)("views.elements.ActionButton")((Ig=Dg=class extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{showTooltip:!1}),R()(this,"_onClick",e=>{e.stopPropagation(),y.a.trackEvent("Action Button","click",this.props.action),u.a.dispatch({action:this.props.action})}),R()(this,"_onMouseEnter",()=>{this.props.tooltip&&this.setState({showTooltip:!0}),this.props.mouseOverAction&&u.a.dispatch({action:this.props.mouseOverAction})}),R()(this,"_onMouseLeave",()=>{this.setState({showTooltip:!1})})}render(){const e=d.getComponent("elements.TintableSvg");let t;if(this.state.showTooltip){const e=d.getComponent("elements.Tooltip");t=i.a.createElement(e,{className:"mx_RoleButton_tooltip",label:this.props.label})}const n=this.props.iconPath?i.a.createElement(e,{src:this.props.iconPath,width:this.props.size,height:this.props.size}):void 0,o=["mx_RoleButton"];return this.props.className&&o.push(this.props.className),i.a.createElement(g.a,{className:o.join(" "),onClick:this._onClick,onMouseEnter:this._onMouseEnter,onMouseLeave:this._onMouseLeave,"aria-label":this.props.label},n,t)}},R()(Dg,"propTypes",{size:He.a.string,tooltip:He.a.bool,action:He.a.string.isRequired,mouseOverAction:He.a.string,label:He.a.string.isRequired,iconPath:He.a.string,className:He.a.string}),R()(Dg,"defaultProps",{size:"25",tooltip:!1}),Rg=Ig))||Rg;var Fg,Mg,Pg;let Lg=Object(N.a)("views.elements.AddressSelector")((Pg=Mg=class extends i.a.Component{constructor(e){super(e),R()(this,"moveSelectionTop",()=>{this.state.selected>0&&this.setState({selected:0,hover:!1})}),R()(this,"moveSelectionUp",()=>{this.state.selected>0&&this.setState({selected:this.state.selected-1,hover:!1})}),R()(this,"moveSelectionDown",()=>{this.state.selected<this._maxSelected(this.props.addressList)&&this.setState({selected:this.state.selected+1,hover:!1})}),R()(this,"chooseSelection",()=>{this.selectAddress(this.state.selected)}),R()(this,"onClick",e=>{this.selectAddress(e)}),R()(this,"onMouseEnter",e=>{this.setState({selected:e,hover:!0})}),R()(this,"onMouseLeave",()=>{this.setState({hover:!1})}),R()(this,"selectAddress",e=>{0!==this.props.addressList.length&&(this.props.onSelected(e),this.setState({hover:!1}))}),this.state={selected:void 0===this.props.selected?0:this.props.selected,hover:!1}}UNSAFE_componentWillReceiveProps(e){const t=this.state.selected,n=this._maxSelected(e.addressList);t>n&&this.setState({selected:n})}componentDidUpdate(){if(this.scrollElement&&this.props.addressList.length>0&&!this.state.hover){const e=this.addressListElement.getBoundingClientRect().height;this.scrollElement.scrollTop=this.state.selected*e-e}}createAddressListTiles(){const e=d.getComponent("elements.AddressTile"),t=this._maxSelected(this.props.addressList),o=[];if(this.props.addressList.length>0)for(let r=0;r<=t;r++){const t=P()({mx_AddressSelector_addressListElement:!0,mx_AddressSelector_selected:this.state.selected===r});o.push(i.a.createElement("div",{className:t,onClick:this.onClick.bind(this,r),onMouseEnter:this.onMouseEnter.bind(this,r),onMouseLeave:this.onMouseLeave,key:this.props.addressList[r].addressType+"/"+this.props.addressList[r].address,ref:e=>{this.addressListElement=e}},i.a.createElement(e,{address:this.props.addressList[r],showAddress:this.props.showAddress,justified:!0,networkName:"vector",networkUrl:n(1356)})))}return o}_maxSelected(e){const t=0===e.length?0:e.length-1;return t>this.props.truncateAt-1?this.props.truncateAt-1:t}render(){const e=P()({mx_AddressSelector:!0,mx_AddressSelector_empty:0===this.props.addressList.length});return i.a.createElement("div",{className:e,ref:e=>{this.scrollElement=e}},this.props.header,this.createAddressListTiles())}},R()(Mg,"propTypes",{onSelected:He.a.func.isRequired,addressList:He.a.arrayOf(ls.a).isRequired,showAddress:He.a.bool,truncateAt:He.a.number.isRequired,selected:He.a.number,header:He.a.node}),Fg=Pg))||Fg;var jg,Ug,Bg;let qg=Object(N.a)("views.elements.AddressTile")((Bg=Ug=class extends i.a.Component{render(){const e=this.props.address,t=e.displayName||e.address,o=[],r=["mx-user-id","mx-room-id"].includes(e.addressType);r&&e.avatarMxc?o.push(Object(ge.b)(e.avatarMxc).getSquareThumbnailHttp(25)):"email"===e.addressType&&o.push(n(1357));const a=d.getComponent("avatars.BaseAvatar"),s=d.getComponent("elements.TintableSvg"),l=P()({mx_AddressTile_name:!0,mx_AddressTile_justified:this.props.justified});let u,h=!1;if(r&&e.isKnown){const n=P()({mx_AddressTile_id:!0,mx_AddressTile_justified:this.props.justified});u=i.a.createElement("div",{className:"mx_AddressTile_mx"},i.a.createElement("div",{className:l},t),this.props.showAddress?i.a.createElement("div",{className:n},e.address):i.a.createElement("div",null))}else if(r){const e=P()({mx_AddressTile_unknownMx:!0,mx_AddressTile_justified:this.props.justified});u=i.a.createElement("div",{className:e},this.props.address.address)}else if("email"===e.addressType){const t=P()({mx_AddressTile_email:!0,mx_AddressTile_justified:this.props.justified});let n=null;e.displayName&&(n=i.a.createElement("div",{className:l},e.displayName)),u=i.a.createElement("div",{className:"mx_AddressTile_mx"},i.a.createElement("div",{className:t},e.address),n)}else{h=!0;const e=P()({mx_AddressTile_unknown:!0,mx_AddressTile_justified:this.props.justified});u=i.a.createElement("div",{className:e},Object(c.a)("Unknown Address"))}const p=P()({mx_AddressTile:!0,mx_AddressTile_error:h});let m;return this.props.canDismiss&&(m=i.a.createElement("div",{className:"mx_AddressTile_dismiss",onClick:this.props.onDismissed},i.a.createElement(s,{src:n(1358),width:"9",height:"9"}))),i.a.createElement("div",{className:p},i.a.createElement("div",{className:"mx_AddressTile_avatar"},i.a.createElement(a,{defaultToInitialLetter:!0,width:25,height:25,name:t,title:t,urls:o})),u,m)}},R()(Ug,"propTypes",{address:ls.a.isRequired,canDismiss:He.a.bool,onDismissed:He.a.func,justified:He.a.bool}),R()(Ug,"defaultProps",{canDismiss:!1,onDismissed:function(){},justified:!1}),jg=Bg))||jg;var Gg,Vg,Hg,zg=n(692),Kg=n(693);let Wg=Object(N.a)("views.elements.TagTile")((Hg=Vg=class extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{hover:!1,profile:null}),R()(this,"_onFlairStoreUpdated",()=>{this.unmounted||at.a.getGroupProfileCached(this.context,this.props.tag).then(e=>{this.unmounted||this.setState({profile:e})}).catch(e=>{console.warn("Could not fetch group profile for "+this.props.tag,e)})}),R()(this,"onClick",e=>{e.preventDefault(),e.stopPropagation(),u.a.dispatch({action:"select_tag",tag:this.props.tag,ctrlOrCmdKey:Object(bt.c)(e),shiftKey:e.shiftKey}),"+"===this.props.tag[0]&&this._refreshGroup(this.props.tag)}),R()(this,"onMouseOver",()=>{G.b.getValue("feature_communities_v2_prototypes")||this.setState({hover:!0})}),R()(this,"onMouseLeave",()=>{this.setState({hover:!1})}),R()(this,"openMenu",e=>{e.stopPropagation(),e.preventDefault(),G.b.getValue("feature_communities_v2_prototypes")||(this.setState({hover:!1}),this.props.openMenu())})}componentDidMount(){this.unmounted=!1,"+"===this.props.tag[0]&&(at.a.addListener("updateGroupProfile",this._onFlairStoreUpdated),this._onFlairStoreUpdated(),this._refreshGroup(this.props.tag))}componentWillUnmount(){this.unmounted=!0,"+"===this.props.tag[0]&&at.a.removeListener("updateGroupProfile",this._onFlairStoreUpdated)}_refreshGroup(e){ba.a.refreshGroupRooms(e),ba.a.refreshGroupMembers(e)}render(){const e=d.getComponent("avatars.BaseAvatar"),t=this.state.profile||{},n=t.name||this.props.tag,o=t.avatarUrl?Object(ge.b)(t.avatarUrl).getSquareThumbnailHttp(32):null,r=G.b.getValue("feature_communities_v2_prototypes"),a=P()({mx_TagTile:!0,mx_TagTile_prototype:r,mx_TagTile_selected:this.props.selected&&!r,mx_TagTile_selected_prototype:this.props.selected&&r}),s=L.a.getGroupBadge(this.props.tag);let c;if(s&&!this.state.hover&&!this.props.menuDisplayed){const e=P()({mx_TagTile_badge:!0,mx_TagTile_badgeHighlight:s.highlight});c=i.a.createElement("div",{className:e},J.c(s.count))}const l=this.state.hover||this.props.menuDisplayed?i.a.createElement(g.a,{className:"mx_TagTile_context_button",onClick:this.openMenu,inputRef:this.props.contextMenuButtonRef},"···"):i.a.createElement("div",{ref:this.props.contextMenuButtonRef}),u=d.getComponent("elements.AccessibleTooltipButton");return i.a.createElement(u,{className:a,onClick:this.onClick,onContextMenu:this.openMenu,title:n},i.a.createElement("div",{className:"mx_TagTile_avatar",onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave},i.a.createElement(e,{name:n,idName:this.props.tag,url:o,width:32,height:32}),l,c))}},R()(Vg,"propTypes",{tag:He.a.string,contextMenuButtonRef:He.a.object,openMenu:He.a.func,menuDisplayed:He.a.bool,selected:He.a.bool}),R()(Vg,"contextType",b.a),Gg=Hg))||Gg;function Yg(e){const[t,n,r,a]=Object(o.q)();let s=null;if(t&&n.current){const t=n.current.getBoundingClientRect(),r=d.getComponent("context_menus.TagTileContextMenu");s=i.a.createElement(o.b,he()({},Object(o.p)(t),{onFinished:a}),i.a.createElement(r,{tag:e.tag,onFinished:a}))}return i.a.createElement("div",null,i.a.createElement(q.Draggable,{key:e.tag,draggableId:e.tag,index:e.index,type:"draggable-TagTile"},(o,a)=>i.a.createElement("div",he()({ref:o.innerRef},o.draggableProps,o.dragHandleProps),i.a.createElement(Wg,he()({},e,{contextMenuButtonRef:n,menuDisplayed:t,openMenu:r})))),s)}var $g;let Qg=Object(N.a)("views.elements.DirectorySearchBox")($g=class extends i.a.Component{constructor(e){super(e),this._collectInput=this._collectInput.bind(this),this._onClearClick=this._onClearClick.bind(this),this._onChange=this._onChange.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onJoinButtonClick=this._onJoinButtonClick.bind(this),this.input=null,this.state={value:this.props.initialText||""}}_collectInput(e){this.input=e}_onClearClick(){this.setState({value:""}),this.input&&(this.input.focus(),this.props.onClear&&this.props.onClear())}_onChange(e){this.input&&(this.setState({value:e.target.value}),this.props.onChange&&this.props.onChange(e.target.value))}_onKeyUp(e){"Enter"==e.key&&this.props.showJoinButton&&this.props.onJoinClick&&this.props.onJoinClick(this.state.value)}_onJoinButtonClick(){this.props.onJoinClick&&this.props.onJoinClick(this.state.value)}render(){const e=d.getComponent("elements.AccessibleButton");let t;return{mx_DirectorySearchBox:!0}[this.props.className]=!0,this.props.showJoinButton&&(t=i.a.createElement(e,{className:"mx_DirectorySearchBox_joinButton",onClick:this._onJoinButtonClick},Object(c.a)("Join"))),i.a.createElement("div",{className:`mx_DirectorySearchBox ${this.props.className} mx_textinput`},i.a.createElement("input",{type:"text",name:"dirsearch",value:this.state.value,className:"mx_textinput_icon mx_textinput_search",ref:this._collectInput,onChange:this._onChange,onKeyUp:this._onKeyUp,placeholder:this.props.placeholder,autoFocus:!0}),t,i.a.createElement(e,{className:"mx_DirectorySearchBox_clear",onClick:this._onClearClick}))}})||$g;Qg.propTypes={className:He.a.string,onChange:He.a.func,onClear:He.a.func,onJoinClick:He.a.func,placeholder:He.a.string,showJoinButton:He.a.bool,initialText:He.a.string};var Jg,Xg,Zg,ef=n(444);class tf extends i.a.Component{constructor(){super(),R()(this,"_onRemove",e=>{e.stopPropagation(),e.preventDefault(),this.setState({verifyRemove:!0})}),R()(this,"_onDontRemove",e=>{e.stopPropagation(),e.preventDefault(),this.setState({verifyRemove:!1})}),R()(this,"_onActuallyRemove",e=>{e.stopPropagation(),e.preventDefault(),this.props.onRemove&&this.props.onRemove(this.props.index),this.setState({verifyRemove:!1})}),this.state={verifyRemove:!1}}render(){return this.state.verifyRemove?i.a.createElement("div",{className:"mx_EditableItem"},i.a.createElement("span",{className:"mx_EditableItem_promptText"},Object(c.a)("Are you sure?")),i.a.createElement(g.a,{onClick:this._onActuallyRemove,kind:"primary_sm",className:"mx_EditableItem_confirmBtn"},Object(c.a)("Yes")),i.a.createElement(g.a,{onClick:this._onDontRemove,kind:"danger_sm",className:"mx_EditableItem_confirmBtn"},Object(c.a)("No"))):i.a.createElement("div",{className:"mx_EditableItem"},i.a.createElement("div",{onClick:this._onRemove,className:"mx_EditableItem_delete",title:Object(c.a)("Remove"),role:"button"}),i.a.createElement("span",{className:"mx_EditableItem_item"},this.props.value))}}R()(tf,"propTypes",{index:He.a.number,value:He.a.string,onRemove:He.a.func});let nf=Object(N.a)("views.elements.EditableItemList")((Zg=Xg=class extends i.a.Component{constructor(...e){super(...e),R()(this,"_onItemAdded",e=>{e.stopPropagation(),e.preventDefault(),this.props.onItemAdded&&this.props.onItemAdded(this.props.newItem)}),R()(this,"_onItemRemoved",e=>{this.props.onItemRemoved&&this.props.onItemRemoved(e)}),R()(this,"_onNewItemChanged",e=>{this.props.onNewItemChanged&&this.props.onNewItemChanged(e.target.value)})}_renderNewItemField(){return i.a.createElement("form",{onSubmit:this._onItemAdded,autoComplete:"off",noValidate:!0,className:"mx_EditableItemList_newItem"},i.a.createElement(qe.a,{label:this.props.placeholder,type:"text",autoComplete:"off",value:this.props.newItem||"",onChange:this._onNewItemChanged,list:this.props.suggestionsListId}),i.a.createElement(g.a,{onClick:this._onItemAdded,kind:"primary",type:"submit",disabled:!this.props.newItem},Object(c.a)("Add")))}render(){const e=this.props.items.map((e,t)=>this.props.canRemove?i.a.createElement(tf,{key:e,index:t,value:e,onRemove:this._onItemRemoved}):i.a.createElement("li",{key:e},e)),t=this.props.canRemove?e:i.a.createElement("ul",null,e),n=this.props.items.length>0?this.props.itemsLabel:this.props.noItemsLabel;return i.a.createElement("div",{className:"mx_EditableItemList"},i.a.createElement("div",{className:"mx_EditableItemList_label"},n),t,this.props.canEdit?this._renderNewItemField():i.a.createElement("div",null))}},R()(Xg,"propTypes",{id:He.a.string.isRequired,items:He.a.arrayOf(He.a.string).isRequired,itemsLabel:He.a.string,noItemsLabel:He.a.string,placeholder:He.a.string,newItem:He.a.string,onItemAdded:He.a.func,onItemRemoved:He.a.func,onNewItemChanged:He.a.func,canEdit:He.a.bool,canRemove:He.a.bool}),Jg=Zg))||Jg;var of,rf,af;let sf=Object(N.a)("views.elements.EditableText")((af=rf=class e extends i.a.Component{constructor(t){super(t),R()(this,"state",{phase:e.Phases.Display}),R()(this,"showPlaceholder",e=>{e?(this._editable_div.current.textContent=this.props.placeholder,this._editable_div.current.setAttribute("class",this.props.className+" "+this.props.placeholderClassName),this.placeholder=!0,this.value=""):(this._editable_div.current.textContent=this.value,this._editable_div.current.setAttribute("class",this.props.className),this.placeholder=!1)}),R()(this,"getValue",()=>this.value),R()(this,"setValue",e=>{this.value=e,this.showPlaceholder(!this.value)}),R()(this,"edit",()=>{this.setState({phase:e.Phases.Edit})}),R()(this,"cancelEdit",()=>{this.setState({phase:e.Phases.Display}),this.value=this.props.initialValue,this.showPlaceholder(!this.value),this.onValueChanged(!1),this._editable_div.current.blur()}),R()(this,"onValueChanged",e=>{this.props.onValueChanged(this.value,e)}),R()(this,"onKeyDown",e=>{this.placeholder&&this.showPlaceholder(!1),e.key===bt.a.ENTER&&(e.stopPropagation(),e.preventDefault())}),R()(this,"onKeyUp",e=>{e.target.textContent?this.placeholder||(this.value=e.target.textContent):this.showPlaceholder(!0),e.key===bt.a.ENTER?this.onFinish(e):e.key===bt.a.ESCAPE&&this.cancelEdit()}),R()(this,"onClickDiv",t=>{this.props.editable&&this.setState({phase:e.Phases.Edit})}),R()(this,"onFocus",e=>{const t=e.target.childNodes[0];if(t){const e=document.createRange();e.setStart(t,0),e.setEnd(t,t.length);const n=window.getSelection();n.removeAllRanges(),n.addRange(e)}}),R()(this,"onFinish",(t,n)=>{const o=this,r=t.key===bt.a.ENTER||n;this.setState({phase:e.Phases.Display},()=>{this.value!==this.props.initialValue&&o.onValueChanged(r)})}),R()(this,"onBlur",e=>{window.getSelection().removeAllRanges(),this.props.blurToCancel?this.cancelEdit():this.onFinish(e,this.props.blurToSubmit),this.showPlaceholder(!this.value)}),this.value="",this.placeholder=!1,this._editable_div=Object(r.createRef)()}UNSAFE_componentWillReceiveProps(e){e.initialValue!==this.props.initialValue&&(this.value=e.initialValue,this._editable_div.current&&this.showPlaceholder(!this.value))}componentDidMount(){this.value=this.props.initialValue,this._editable_div.current&&this.showPlaceholder(!this.value)}render(){const{className:t,editable:n,initialValue:o,label:r,labelClassName:a}=this.props;let s;return s=!n||this.state.phase===e.Phases.Display&&(r||a)&&!this.value?i.a.createElement("div",{className:t+" "+a,onClick:this.onClickDiv},r||o):i.a.createElement("div",{ref:this._editable_div,contentEditable:!0,className:t,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,onFocus:this.onFocus,onBlur:this.onBlur}),s}},R()(rf,"propTypes",{onValueChanged:He.a.func,initialValue:He.a.string,label:He.a.string,placeholder:He.a.string,className:He.a.string,labelClassName:He.a.string,placeholderClassName:He.a.string,blurToCancel:He.a.bool,blurToSubmit:He.a.bool,editable:He.a.bool}),R()(rf,"Phases",{Display:"display",Edit:"edit"}),R()(rf,"defaultProps",{onValueChanged(){},initialValue:"",label:"",placeholder:"",editable:!0,className:"mx_EditableText",placeholderClassName:"mx_EditableText_placeholder",blurToSubmit:!1}),of=af))||of;var cf;let lf=Object(N.a)("views.elements.EditableTextContainer")(cf=class extends i.a.Component{constructor(e){super(e),this._unmounted=!1,this.state={busy:!1,errorString:null,value:e.initialValue},this._onValueChanged=this._onValueChanged.bind(this)}componentDidMount(){void 0!==this.props.getInitialValue&&(this.setState({busy:!0}),this.props.getInitialValue().then(e=>{this._unmounted||this.setState({busy:!1,value:e})},e=>{this._unmounted||this.setState({errorString:e.toString(),busy:!1})}))}componentWillUnmount(){this._unmounted=!0}_onValueChanged(e,t){t&&(this.setState({busy:!0,errorString:null}),this.props.onSubmit(e).then(()=>{this._unmounted||this.setState({busy:!1,value:e})},e=>{this._unmounted||this.setState({errorString:e.toString(),busy:!1})}))}render(){if(this.state.busy){const e=d.getComponent("elements.Spinner");return i.a.createElement(e,null)}if(this.state.errorString)return i.a.createElement("div",{className:"error"},this.state.errorString);{const e=d.getComponent("elements.EditableText");return i.a.createElement(e,{initialValue:this.state.value,placeholder:this.props.placeholder,onValueChanged:this._onValueChanged,blurToSubmit:this.props.blurToSubmit})}}})||cf;lf.propTypes={getInitialValue:He.a.func,initialValue:He.a.string,placeholder:He.a.string,onSubmit:He.a.func,blurToSubmit:He.a.bool},lf.defaultProps={initialValue:"",placeholder:"",blurToSubmit:!1,onSubmit:function(e){return Promise.resolve()}};var df,uf=n(480);class hf extends i.a.Component{constructor(){super(),this.onClick=this.onClick.bind(this)}onClick(e){e.preventDefault(),e.stopPropagation(),u.a.dispatch({action:"view_group",group_id:this.props.groupProfile.groupId})}render(){const e=Object(ge.b)(this.props.groupProfile.avatarUrl).getSquareThumbnailHttp(16),t=this.props.groupProfile.name?`${this.props.groupProfile.name} (${this.props.groupProfile.groupId})`:this.props.groupProfile.groupId;return i.a.createElement("img",{src:e,width:"16",height:"16",onClick:this.onClick,title:t})}}hf.propTypes={groupProfile:He.a.shape({groupId:He.a.string.isRequired,name:He.a.string,avatarUrl:He.a.string.isRequired})},hf.contextType=b.a;let pf=Object(N.a)("views.elements.Flair")(df=class extends i.a.Component{constructor(){super(),this.state={profiles:[]}}componentDidMount(){this._unmounted=!1,this._generateAvatars(this.props.groups)}componentWillUnmount(){this._unmounted=!0}UNSAFE_componentWillReceiveProps(e){this._generateAvatars(e.groups)}async _getGroupProfiles(e){const t=[];for(const n of e){let e=null;try{e=await at.a.getGroupProfileCached(this.context,n)}catch(e){console.error("Could not get profile for group",n,e)}t.push(e)}return t.filter(e=>null!==e)}async _generateAvatars(e){if(!e||0===e.length)return;const t=await this._getGroupProfiles(e);this.unmounted||this.setState({profiles:t.filter(e=>!!e&&e.avatarUrl)})}render(){if(0===this.state.profiles.length)return i.a.createElement("span",{className:"mx_Flair"});const e=this.state.profiles.map((e,t)=>i.a.createElement(hf,{key:t,groupProfile:e}));return i.a.createElement("span",{className:"mx_Flair"},e)}})||df;pf.propTypes={groups:He.a.arrayOf(He.a.string)},pf.contextType=b.a;var mf,gf,ff,_f=n(648),bf=n(241);let vf=Object(N.a)("views.elements.RoomAliasField")((ff=gf=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"_onChange",e=>{this.props.onChange&&this.props.onChange(this._asFullAlias(e.target.value))}),R()(this,"_onValidate",async e=>{const t=await this._validationRules(e);return this.setState({isValid:t.valid}),t}),R()(this,"_validationRules",Object(go.a)({rules:[{key:"safeLocalpart",test:async({value:e})=>{if(!e)return!0;const t=this._asFullAlias(e);return!e.includes("#")&&!e.includes(":")&&!e.includes(",")&&encodeURI(t)===t},invalid:()=>Object(c.a)("Some characters not allowed")},{key:"required",test:async({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Please provide a room address")},{key:"taken",final:!0,test:async({value:e})=>{if(!e)return!0;const t=de.a.get();try{return await t.getRoomIdForAlias(this._asFullAlias(e)),!1}catch(e){return!!e.errcode}},valid:()=>Object(c.a)("This address is available to use"),invalid:()=>Object(c.a)("This address is already in use")}]})),this.state={isValid:!0}}_asFullAlias(e){return`#${e}:${this.props.domain}`}render(){const e=d.getComponent("views.elements.Field"),t=i.a.createElement("span",null,"#"),n=":"+this.props.domain,o=i.a.createElement("span",{title:n},n),r=255-this.props.domain.length-2;return i.a.createElement(e,{label:Object(c.a)("Room address"),className:"mx_RoomAliasField",prefixComponent:t,postfixComponent:o,ref:e=>this._fieldRef=e,onValidate:this._onValidate,placeholder:Object(c.a)("e.g. my-room"),onChange:this._onChange,value:this.props.value.substring(1,this.props.value.length-this.props.domain.length-1),maxLength:r})}get isValid(){return this.state.isValid}validate(e){return this._fieldRef.validate(e)}focus(){this._fieldRef.focus()}},R()(gf,"propTypes",{domain:He.a.string.isRequired,onChange:He.a.func,value:He.a.string.isRequired}),mf=ff))||mf;var yf;let Ef=Object(N.a)("views.elements.Spoiler")(yf=class extends i.a.Component{constructor(e){super(e),this.state={visible:!1}}toggleVisible(e){this.state.visible||(e.preventDefault(),e.stopPropagation()),this.setState({visible:!this.state.visible})}render(){const e=this.props.reason?i.a.createElement("span",{className:"mx_EventTile_spoiler_reason"},"("+this.props.reason+")"):null;return i.a.createElement("span",{className:"mx_EventTile_spoiler"+(this.state.visible?" visible":""),onClick:this.toggleVisible.bind(this)},e," ",i.a.createElement("span",{className:"mx_EventTile_spoiler_content",dangerouslySetInnerHTML:{__html:this.props.contentHtml}}))}})||yf;var Sf,wf,Cf,Tf=n(343);let xf=Object(N.a)("views.elements.TintableSvg")((Cf=wf=class e extends i.a.Component{constructor(...e){super(...e),R()(this,"tint",()=>{Tf.a.applySvgFixups(this.fixups)}),R()(this,"onLoad",e=>{this.fixups=Tf.a.calcSvgFixups([e.target]),Tf.a.applySvgFixups(this.fixups)})}componentDidMount(){this.fixups=[],this.id=e.idSequence++,e.mounts[this.id]=this}componentWillUnmount(){delete e.mounts[this.id]}render(){return i.a.createElement("object",{className:"mx_TintableSvg "+(this.props.className?this.props.className:""),type:"image/svg+xml",data:this.props.src,width:this.props.width,height:this.props.height,onLoad:this.onLoad,tabIndex:"-1"})}},R()(wf,"propTypes",{src:He.a.string.isRequired,width:He.a.string.isRequired,height:He.a.string.isRequired,className:He.a.string}),R()(wf,"mounts",{}),R()(wf,"idSequence",0),Sf=Cf))||Sf;Tf.a.registerTintable((function(){xf.mounts&&Object.keys(xf.mounts).forEach(e=>{xf.mounts[e].tint()})}));var Of,kf=xf;let Rf=Object(N.a)("views.elements.TooltipButton")(Of=class extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{hover:!1}),R()(this,"onMouseOver",()=>{this.setState({hover:!0})}),R()(this,"onMouseLeave",()=>{this.setState({hover:!1})})}render(){const e=d.getComponent("elements.Tooltip"),t=this.state.hover?i.a.createElement(e,{className:"mx_TooltipButton_container",tooltipClassName:"mx_TooltipButton_helpText",label:this.props.helpText}):i.a.createElement("div",null);return i.a.createElement("div",{className:"mx_TooltipButton",onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave},"?",t)}})||Of;var Df,If,Af;let Nf=Object(N.a)("views.elements.TruncatedList")((Af=If=class extends i.a.Component{_getChildren(e,t){return this.props.getChildren&&this.props.getChildCount?this.props.getChildren(e,t):i.a.Children.toArray(this.props.children).filter(e=>null!=e).slice(e,t)}_getChildCount(){return this.props.getChildren&&this.props.getChildCount?this.props.getChildCount():i.a.Children.toArray(this.props.children).filter(e=>null!=e).length}render(){let e=null;const t=this._getChildCount();let n=t;if(this.props.truncateAt>=0){const o=t-this.props.truncateAt;o>1&&(e=this.props.createOverflowElement(o,t),n=this.props.truncateAt)}const o=this._getChildren(0,n);return i.a.createElement("div",{className:this.props.className},o,e)}},R()(If,"propTypes",{truncateAt:He.a.number,className:He.a.string,getChildren:He.a.func,getChildCount:He.a.func,createOverflowElement:He.a.func}),R()(If,"defaultProps",{truncateAt:2,createOverflowElement:(e,t)=>i.a.createElement("div",null,Object(c.a)("And %(count)s more...",{count:e}))}),Df=Af))||Df;var Ff,Mf,Pf;let Lf=Object(N.a)("views.groups.GroupInviteTile")((Pf=Mf=class extends i.a.Component{constructor(e,t){super(e,t),R()(this,"onClick",e=>{u.a.dispatch({action:"view_group",group_id:this.props.group.groupId})}),R()(this,"onMouseEnter",()=>{const e={hover:!0};this.context.isGuest()||(e.badgeHover=!0),this.setState(e)}),R()(this,"onMouseLeave",()=>{this.setState({badgeHover:!1,hover:!1})}),R()(this,"onContextMenuButtonClick",e=>{e.stopPropagation(),e.preventDefault(),this._showContextMenu(e.target.getBoundingClientRect())}),R()(this,"onContextMenu",e=>{e.preventDefault(),this._showContextMenu({right:e.clientX,top:e.clientY,height:0})}),R()(this,"closeMenu",()=>{this.setState({contextMenuPosition:null})}),this.state={hover:!1,badgeHover:!1,menuDisplayed:!1,selected:null===this.props.group.groupId}}_showContextMenu(e){if(de.a.get().isGuest())return;const t={contextMenuPosition:e};this.props.collapsed&&(t.hover=!1),this.setState(t)}render(){const e=d.getComponent("elements.AccessibleButton"),t=d.getComponent("avatars.BaseAvatar"),n=this.props.group.name||this.props.group.groupId,r=this.props.group.avatarUrl?Object(ge.b)(this.props.group.avatarUrl).getSquareThumbnailHttp(24):null,a=i.a.createElement(t,{name:n,width:24,height:24,url:r}),s=Boolean(this.state.contextMenuPosition),l=P()("mx_RoomTile_name mx_RoomTile_invite mx_RoomTile_badgeShown",{mx_RoomTile_badgeShown:this.state.badgeHover||s}),u=i.a.createElement("div",{title:this.props.group.groupId,className:l,tabIndex:-1,dir:"auto"},n),h=this.state.badgeHover||s,p=P()("mx_RoomTile_badge mx_RoomTile_highlight",{mx_RoomTile_badgeButton:h}),m=h?"···":"!";let g;if(this.props.collapsed&&this.state.hover){const e=d.getComponent("elements.Tooltip");g=i.a.createElement(e,{className:"mx_RoomTile_tooltip",label:n,dir:"auto"})}const f=P()("mx_RoomTile mx_RoomTile_highlight",{mx_RoomTile_menuDisplayed:s,mx_RoomTile_selected:this.state.selected,mx_GroupInviteTile:!0});let _;if(s){const e=d.getComponent("context_menus.GroupInviteTileContextMenu");_=i.a.createElement(o.b,he()({},Object(o.p)(this.state.contextMenuPosition),{onFinished:this.closeMenu}),i.a.createElement(e,{group:this.props.group,onFinished:this.closeMenu}))}return i.a.createElement(i.a.Fragment,null,i.a.createElement(ie.d,null,({onFocus:t,isActive:n,ref:r})=>i.a.createElement(e,{onFocus:t,tabIndex:n?0:-1,inputRef:r,className:f,onClick:this.onClick,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onContextMenu:this.onContextMenu},i.a.createElement("div",{className:"mx_RoomTile_avatar"},a),i.a.createElement("div",{className:"mx_RoomTile_nameContainer"},u,i.a.createElement(o.c,{className:p,onClick:this.onContextMenuButtonClick,label:Object(c.a)("Options"),isExpanded:s,tabIndex:n?0:-1},m)),g)),_)}},R()(Mf,"propTypes",void 0),R()(Mf,"contextType",b.a),Ff=Pf))||Ff;var jf,Uf,Bf;let qf=Object(N.a)("views.groups.GroupMemberList")((Bf=Uf=class extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{members:null,membersError:null,invitedMembers:null,invitedMembersError:null,truncateAt:30}),R()(this,"_createOverflowTile",(e,t)=>{const o=d.getComponent("rooms.EntityTile"),r=d.getComponent("avatars.BaseAvatar"),a=Object(c.a)("and %(count)s others...",{count:e});return i.a.createElement(o,{className:"mx_EntityTile_ellipsis",avatarJsx:i.a.createElement(r,{url:n(487),name:"...",width:36,height:36}),name:a,presenceState:"online",suppressOnHover:!0,onClick:this._showFullMemberList})}),R()(this,"_showFullMemberList",()=>{this.setState({truncateAt:-1})}),R()(this,"onSearchQueryChanged",e=>{this.setState({searchQuery:e.target.value})}),R()(this,"onInviteToGroupButtonClick",()=>{Object(ud.b)(this.props.groupId).then(()=>{u.a.dispatch({action:h.a.SetRightPanelPhase,phase:ot.c.GroupMemberList,refireParams:{groupId:this.props.groupId}})})})}componentDidMount(){this._unmounted=!1,this._initGroupStore(this.props.groupId)}componentWillUnmount(){this._unmounted=!0}_initGroupStore(e){ba.a.registerListener(e,()=>{this._fetchMembers()}),ba.a.on("error",(t,n,o)=>{this._unmounted||e!==n||(o===ba.a.STATE_KEY.GroupMembers&&this.setState({membersError:t}),o===ba.a.STATE_KEY.GroupInvitedMembers&&this.setState({invitedMembersError:t}))})}_fetchMembers(){this._unmounted||this.setState({members:ba.a.getGroupMembers(this.props.groupId),invitedMembers:ba.a.getGroupInvitedMembers(this.props.groupId)})}makeGroupMemberTiles(e,t,n){if(n)return i.a.createElement("div",{className:"warning"},Object(c.a)("Failed to load group members"));const o=d.getComponent("groups.GroupMemberTile"),r=d.getComponent("elements.TruncatedList");(e=(e||"").toLowerCase())&&(t=t.filter(t=>{const n=(t.displayname||"").toLowerCase().includes(e),o=t.userId.toLowerCase().includes(e);return!(!n&&!o)}));const a={};t.forEach(e=>{a[e.userId]||(a[e.userId]=e)}),(t=Object.keys(a).map(e=>a[e])).sort((e,t)=>{if(e.isPrivileged===t.isPrivileged){const n=e.displayname||e.userId,o=t.displayname||t.userId;return n<o?-1:n>o?1:0}return e.isPrivileged?-1:1});const s=t.map(e=>i.a.createElement(o,{key:e.userId,groupId:this.props.groupId,member:e}));return i.a.createElement(r,{className:"mx_MemberList_wrapper",truncateAt:this.state.truncateAt,createOverflowElement:this._createOverflowTile},s)}render(){if(this.state.fetching||this.state.fetchingInvitedMembers){const e=d.getComponent("elements.Spinner");return i.a.createElement("div",{className:"mx_MemberList"},i.a.createElement(e,null))}const e=i.a.createElement("input",{className:"mx_GroupMemberList_query mx_textinput",id:"mx_GroupMemberList_query",type:"text",onChange:this.onSearchQueryChanged,value:this.state.searchQuery,placeholder:Object(c.a)("Filter community members"),autoComplete:"off"}),t=this.state.members?i.a.createElement("div",{className:"mx_MemberList_joined"},this.makeGroupMemberTiles(this.state.searchQuery,this.state.members,this.state.membersError)):i.a.createElement("div",null),n=this.state.invitedMembers&&this.state.invitedMembers.length>0?i.a.createElement("div",{className:"mx_MemberList_invited"},i.a.createElement("h2",null,Object(c.a)("Invited")),this.makeGroupMemberTiles(this.state.searchQuery,this.state.invitedMembers,this.state.invitedMembersError)):i.a.createElement("div",null);let o;return ba.a.isUserPrivileged(this.props.groupId)&&(o=i.a.createElement(g.a,{className:"mx_MemberList_invite mx_MemberList_inviteCommunity",onClick:this.onInviteToGroupButtonClick},i.a.createElement("span",null,Object(c.a)("Invite to this community")))),i.a.createElement("div",{className:"mx_MemberList",role:"tabpanel"},o,i.a.createElement(a.a,null,t,n),e)}},R()(Uf,"propTypes",{groupId:He.a.string.isRequired}),jf=Bf))||jf;var Gf,Vf,Hf;let zf=Object(N.a)("views.groups.GroupMemberTile")((Hf=Vf=class extends i.a.Component{constructor(...e){super(...e),R()(this,"onClick",e=>{u.a.dispatch({action:"view_group_user",member:this.props.member,groupId:this.props.groupId})})}render(){const e=d.getComponent("avatars.BaseAvatar"),t=d.getComponent("rooms.EntityTile"),n=this.props.member.displayname||this.props.member.userId,o=this.props.member.avatarUrl?Object(ge.b)(this.props.member.avatarUrl).getSquareThumbnailHttp(36):null,r=i.a.createElement(e,{"aria-hidden":"true",name:this.props.member.displayname||this.props.member.userId,idName:this.props.member.userId,width:36,height:36,url:o});return i.a.createElement(t,{name:n,avatarJsx:r,onClick:this.onClick,suppressOnHover:!0,presenceState:"online",powerStatus:this.props.member.isPrivileged?t.POWER_STATUS_ADMIN:null})}},R()(Vf,"propTypes",{groupId:He.a.string.isRequired,member:Aa.a.isRequired}),R()(Vf,"contextType",b.a),Gf=Hf))||Gf;var Kf,Wf,Yf;let $f=Object(N.a)("views.groups.GroupPublicityTile")((Yf=Wf=class extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{busy:!1,ready:!1,isGroupPublicised:!1}),R()(this,"_onPublicityToggle",()=>{this.setState({busy:!0,isGroupPublicised:!this.state.isGroupPublicised}),ba.a.setGroupPublicity(this.props.groupId,!this.state.isGroupPublicised).then(()=>{this.setState({busy:!1})})})}componentDidMount(){this._initGroupStore(this.props.groupId)}_initGroupStore(e){this._groupStoreToken=ba.a.registerListener(e,()=>{this.setState({isGroupPublicised:Boolean(ba.a.getGroupPublicity(e)),ready:ba.a.isStateReady(e,ba.a.STATE_KEY.Summary)})})}componentWillUnmount(){this._groupStoreToken&&this._groupStoreToken.unregister()}render(){const e=d.getComponent("groups.GroupTile");return i.a.createElement("div",{className:"mx_GroupPublicity_toggle"},i.a.createElement(e,{groupId:this.props.groupId,showDescription:!1,avatarHeight:40,draggable:!1}),i.a.createElement(Qr.a,{checked:this.state.isGroupPublicised,disabled:!this.state.ready||this.state.busy,onChange:this._onPublicityToggle}))}},R()(Wf,"propTypes",{groupId:He.a.string.isRequired}),Kf=Yf))||Kf;var Qf,Jf,Xf;let Zf=Object(N.a)("views.groups.GroupRoomInfo")((Xf=Jf=class extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{isUserPrivilegedInGroup:null,groupRoom:null,groupRoomPublicityLoading:!1,groupRoomRemoveLoading:!1}),R()(this,"onGroupStoreUpdated",()=>{this.setState({isUserPrivilegedInGroup:ba.a.isUserPrivileged(this.props.groupId)}),this._updateGroupRoom()}),R()(this,"_onRemove",e=>{const t=this.props.groupId,n=this.state.groupRoom.displayname;e.preventDefault(),e.stopPropagation();const o=d.getComponent("dialogs.QuestionDialog");Ge.a.createTrackedDialog("Confirm removal of group from room","",o,{title:Object(c.a)("Are you sure you want to remove '%(roomName)s' from %(groupId)s?",{roomName:n,groupId:t}),description:Object(c.a)("Removing a room from the community will also remove it from the community page."),button:Object(c.a)("Remove"),onFinished:e=>{if(!e)return;this.setState({groupRoomRemoveLoading:!0});const t=this.props.groupId,o=this.props.groupRoomId;ba.a.removeRoomFromGroup(this.props.groupId,o).then(()=>{u.a.dispatch({action:"view_group_room_list"})}).catch(e=>{console.error(`Error whilst removing ${o} from ${t}`,e);const r=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Failed to remove room from group","",r,{title:Object(c.a)("Failed to remove room from community"),description:Object(c.a)("Failed to remove '%(roomName)s' from %(groupId)s",{groupId:t,roomName:n})})}).finally(()=>{this.setState({groupRoomRemoveLoading:!1})})}})}),R()(this,"_onCancel",e=>{u.a.dispatch({action:"view_group_room_list"})}),R()(this,"_changeGroupRoomPublicity",e=>{const t="public"===e.target.value;this.setState({groupRoomPublicityLoading:!0});const n=this.props.groupId,o=this.props.groupRoomId,r=this.state.groupRoom.displayname;ba.a.updateGroupRoomVisibility(this.props.groupId,o,t).catch(e=>{console.error(`Error whilst changing visibility of ${o} in ${n} to ${t}`,e);const i=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Failed to remove room from group","",i,{title:Object(c.a)("Something went wrong!"),description:Object(c.a)("The visibility of '%(roomName)s' in %(groupId)s could not be updated.",{roomName:r,groupId:n})})}).finally(()=>{this.setState({groupRoomPublicityLoading:!1})})})}componentDidMount(){this._initGroupStore(this.props.groupId)}UNSAFE_componentWillReceiveProps(e){e.groupId!==this.props.groupId&&(this._unregisterGroupStore(this.props.groupId),this._initGroupStore(e.groupId))}componentWillUnmount(){this._unregisterGroupStore(this.props.groupId)}_initGroupStore(e){ba.a.registerListener(e,this.onGroupStoreUpdated)}_unregisterGroupStore(e){ba.a.unregisterListener(this.onGroupStoreUpdated)}_updateGroupRoom(){this.setState({groupRoom:ba.a.getGroupRooms(this.props.groupId).find(e=>e.roomId===this.props.groupRoomId)})}render(){const e=d.getComponent("elements.AccessibleButton"),t=d.getComponent("elements.InlineSpinner");if(this.state.groupRoomRemoveLoading||!this.state.groupRoom){const e=d.getComponent("elements.Spinner");return i.a.createElement("div",{className:"mx_MemberInfo"},i.a.createElement(e,null))}let o;this.state.isUserPrivilegedInGroup&&(o=i.a.createElement("div",{className:"mx_MemberInfo_adminTools"},i.a.createElement("h3",null,Object(c.a)("Admin Tools")),i.a.createElement("div",{className:"mx_MemberInfo_buttons"},i.a.createElement(e,{className:"mx_MemberInfo_field",onClick:this._onRemove},Object(c.a)("Remove from community"))),i.a.createElement("h3",null,Object(c.a)("Visibility in Room List"),this.state.groupRoomPublicityLoading?i.a.createElement(t,null):i.a.createElement("div",null)),i.a.createElement("div",null,i.a.createElement("label",null,i.a.createElement("input",{type:"radio",value:"public",checked:this.state.groupRoom.isPublic,onChange:this._changeGroupRoomPublicity}),i.a.createElement("div",{className:"mx_MemberInfo_label_text"},Object(c.a)("Visible to everyone")))),i.a.createElement("div",null,i.a.createElement("label",null,i.a.createElement("input",{type:"radio",value:"private",checked:!this.state.groupRoom.isPublic,onChange:this._changeGroupRoomPublicity}),i.a.createElement("div",{className:"mx_MemberInfo_label_text"},Object(c.a)("Only visible to community members"))))));const r=this.state.groupRoom.avatarUrl;let s;if(r){const e=Object(ge.b)(r).getSquareThumbnailHttp(800);s=i.a.createElement("div",{className:"mx_MemberInfo_avatar"},i.a.createElement("img",{src:e}))}const l=this.state.groupRoom.displayname;return i.a.createElement("div",{className:"mx_MemberInfo",role:"tabpanel"},i.a.createElement(a.a,null,i.a.createElement(e,{className:"mx_MemberInfo_cancel",onClick:this._onCancel},i.a.createElement("img",{src:n(262),width:"18",height:"18",className:"mx_filterFlipColor"})),s,i.a.createElement("h2",null,l),i.a.createElement("div",{className:"mx_MemberInfo_profile"},i.a.createElement("div",{className:"mx_MemberInfo_profileField"},this.state.groupRoom.canonicalAlias)),o))}},R()(Jf,"contextType",b.a),R()(Jf,"propTypes",{groupId:He.a.string,groupRoomId:He.a.string}),Qf=Xf))||Qf;var e_,t_,n_;let o_=Object(N.a)("views.groups.GroupRoomList")((n_=t_=class extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{rooms:null,truncateAt:30,searchQuery:""}),R()(this,"onGroupStoreUpdated",()=>{this._unmounted||this.setState({rooms:ba.a.getGroupRooms(this.props.groupId)})}),R()(this,"_createOverflowTile",(e,t)=>{const o=d.getComponent("rooms.EntityTile"),r=d.getComponent("avatars.BaseAvatar"),a=Object(c.a)("and %(count)s others...",{count:e});return i.a.createElement(o,{className:"mx_EntityTile_ellipsis",avatarJsx:i.a.createElement(r,{url:n(487),name:"...",width:36,height:36}),name:a,presenceState:"online",suppressOnHover:!0,onClick:this._showFullRoomList})}),R()(this,"_showFullRoomList",()=>{this.setState({truncateAt:-1})}),R()(this,"onSearchQueryChanged",e=>{this.setState({searchQuery:e.target.value})}),R()(this,"onAddRoomToGroupButtonClick",()=>{Object(ud.a)(this.props.groupId).then(()=>{this.forceUpdate()})})}componentDidMount(){this._unmounted=!1,this._initGroupStore(this.props.groupId)}componentWillUnmount(){this._unmounted=!0,this._unregisterGroupStore()}_unregisterGroupStore(){ba.a.unregisterListener(this.onGroupStoreUpdated)}_initGroupStore(e){ba.a.registerListener(e,this.onGroupStoreUpdated),ba.a.on("error",(t,n)=>{n===e&&this.setState({rooms:null})})}makeGroupRoomTiles(e){const t=d.getComponent("groups.GroupRoomTile");e=(e||"").toLowerCase();let n=this.state.rooms;return e&&(n=n.filter(t=>{const n=(t.name||"").toLowerCase().includes(e),o=(t.canonicalAlias||"").toLowerCase().includes(e);return n||o})),n=n.map((e,n)=>i.a.createElement(t,{key:n,groupId:this.props.groupId,groupRoom:e})),n}render(){if(null===this.state.rooms)return null;let e;ba.a.isUserPrivileged(this.props.groupId)&&(e=i.a.createElement(g.a,{className:"mx_MemberList_invite mx_MemberList_addRoomToCommunity",onClick:this.onAddRoomToGroupButtonClick},i.a.createElement("span",null,Object(c.a)("Add rooms to this community"))));const t=i.a.createElement("input",{className:"mx_GroupRoomList_query mx_textinput",id:"mx_GroupRoomList_query",type:"text",onChange:this.onSearchQueryChanged,value:this.state.searchQuery,placeholder:Object(c.a)("Filter community rooms"),autoComplete:"off"}),n=d.getComponent("elements.TruncatedList");return i.a.createElement("div",{className:"mx_GroupRoomList",role:"tabpanel"},e,i.a.createElement(a.a,{className:"mx_GroupRoomList_joined mx_GroupRoomList_outerWrapper"},i.a.createElement(n,{className:"mx_GroupRoomList_wrapper",truncateAt:this.state.truncateAt,createOverflowElement:this._createOverflowTile},this.makeGroupRoomTiles(this.state.searchQuery))),t)}},R()(t_,"propTypes",{groupId:He.a.string.isRequired}),e_=n_))||e_;var r_,i_,a_;var s_,c_,l_,d_=Object(N.a)("views.groups.GroupRoomTile")((a_=i_=class extends i.a.Component{constructor(...e){super(...e),R()(this,"onClick",e=>{u.a.dispatch({action:"view_group_room",groupId:this.props.groupId,groupRoomId:this.props.groupRoom.roomId})})}render(){const e=d.getComponent("avatars.BaseAvatar"),t=d.getComponent("elements.AccessibleButton"),n=this.props.groupRoom.avatarUrl?Object(ge.b)(this.props.groupRoom.avatarUrl).getSquareThumbnailHttp(36):null,o=i.a.createElement(e,{name:this.props.groupRoom.displayname,width:36,height:36,url:n});return i.a.createElement(t,{className:"mx_GroupRoomTile",onClick:this.onClick},i.a.createElement("div",{className:"mx_GroupRoomTile_avatar"},o),i.a.createElement("div",{className:"mx_GroupRoomTile_name"},this.props.groupRoom.displayname))}},R()(i_,"propTypes",{groupId:He.a.string.isRequired,groupRoom:Aa.b.isRequired}),R()(i_,"contextType",b.a),r_=a_))||r_;function u_(){}var h_,p_,m_,g_=Object(N.a)("views.groups.GroupTile")((l_=c_=class extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{profile:null}),R()(this,"onMouseDown",e=>{e.preventDefault(),u.a.dispatch({action:"view_group",group_id:this.props.groupId})})}componentDidMount(){at.a.getGroupProfileCached(this.context,this.props.groupId).then(e=>{this.setState({profile:e})}).catch(e=>{console.error("Error whilst getting cached profile for GroupTile",e)})}render(){const e=d.getComponent("avatars.BaseAvatar"),t=d.getComponent("elements.AccessibleButton"),n=this.state.profile||{},o=n.name||this.props.groupId,r=this.props.avatarHeight,a=this.props.showDescription?i.a.createElement("div",{className:"mx_GroupTile_desc"},n.shortDescription):i.a.createElement("div",null),s=n.avatarUrl?Object(ge.b)(n.avatarUrl).getSquareThumbnailHttp(r):null;let c=i.a.createElement("div",{className:"mx_GroupTile_avatar"},i.a.createElement(e,{name:o,idName:this.props.groupId,url:s,width:r,height:r}));if(this.props.draggable){const e=c;c=i.a.createElement(q.Droppable,{droppableId:"my-groups-droppable",type:"draggable-TagTile"},(t,n)=>i.a.createElement("div",{ref:t.innerRef},i.a.createElement(q.Draggable,{key:"GroupTile "+this.props.groupId,draggableId:"GroupTile "+this.props.groupId,index:this.props.groupId,type:"draggable-TagTile"},(t,n)=>i.a.createElement("div",null,i.a.createElement("div",he()({ref:t.innerRef},t.draggableProps,t.dragHandleProps),e),t.placeholder?e:i.a.createElement("div",null)))))}return i.a.createElement(t,{className:"mx_GroupTile",onMouseDown:this.onMouseDown,onClick:u_},c,i.a.createElement("div",{className:"mx_GroupTile_profile"},i.a.createElement("div",{className:"mx_GroupTile_name"},o),a,i.a.createElement("div",{className:"mx_GroupTile_groupId"},this.props.groupId)))}},R()(c_,"propTypes",{groupId:He.a.string.isRequired,showDescription:He.a.bool,avatarHeight:He.a.number,draggable:He.a.bool}),R()(c_,"contextType",b.a),R()(c_,"defaultProps",{showDescription:!0,avatarHeight:50,draggable:!0}),s_=l_))||s_,f_=n(679);let __=Object(N.a)("views.messages.DateSeparator")((m_=p_=class extends i.a.Component{getLabel(){const e=new Date(this.props.ts),t=new Date,n=new Date,o=[Object(c.a)("Sunday"),Object(c.a)("Monday"),Object(c.a)("Tuesday"),Object(c.a)("Wednesday"),Object(c.a)("Thursday"),Object(c.a)("Friday"),Object(c.a)("Saturday")];return n.setDate(t.getDate()-1),e.toDateString()===t.toDateString()?Object(c.a)("Today"):e.toDateString()===n.toDateString()?Object(c.a)("Yesterday"):t.getTime()-e.getTime()<5184e5?o[e.getDay()]:Object(Rd.c)(e)}render(){return i.a.createElement("h2",{className:"mx_DateSeparator",role:"separator",tabIndex:-1},i.a.createElement("hr",{role:"none"}),i.a.createElement("div",null,this.getLabel()),i.a.createElement("hr",{role:"none"}))}},R()(p_,"propTypes",{ts:He.a.number.isRequired}),h_=m_))||h_;var b_=n(1359),v_=n.n(b_),y_=n(1360);const E_=function(){let e=null;return function(t){return e||(e=document.createElement("textarea")),e.innerHTML=t,e.value}}();function S_(e){const t={stripReplyFallback:!0,returnString:!0};return"org.matrix.custom.html"===e.format?Object(is.b)(e,null,t):function(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}(Object(is.b)(e,null,t))}function w_(e){const t=document.createElement(Object(is.c)(e)?"div":"span");return t.className="mx_EditHistoryMessage_insertion",t.appendChild(e),t}function C_(e){const t=document.createElement(Object(is.c)(e)?"div":"span");return t.className="mx_EditHistoryMessage_deletion",t.appendChild(e),t}function T_(e){if("#text"===e.nodeName)return R_(e.data);{const t=document.createElement(e.nodeName);if(e.attributes)for(const[n,o]of Object.entries(e.attributes))t.setAttribute(n,o);if(e.childNodes)for(const n of e.childNodes)t.appendChild(T_(n));return t}}function x_(e,t,n){t?e.insertBefore(n,t):e.appendChild(n)}function O_(e,t){for(let n=0;n<e.length-1;++n)if(e[n]!==t[n])return!1;const n=e.length-1;return t[n]>=e[n]}function k_(e,t){if("removeTextElement"===e.action||"removeElement"===e.action){const n=1;for(const o of t)O_(e.route,o.route)&&(o.route[e.route.length-1]+=n)}}function R_(e){return document.createTextNode(E_(e))}function D_(e,t,n){const{refNode:o,refParentNode:r}=function(e,t,n){let o,r=e;const i=n?t.length-1:t.length;for(let e=0;e<i;++e)o=r,r=r.childNodes[t[e]];return{refNode:r,refParentNode:o}}(e,t.route);switch(t.action){case"replaceElement":{const e=document.createElement("span"),n=C_(T_(t.oldValue)),r=w_(T_(t.newValue));e.appendChild(n),e.appendChild(r),o.parentNode.replaceChild(e,o);break}case"removeTextElement":{const e=C_(R_(t.value));o.parentNode.replaceChild(e,o);break}case"removeElement":{const e=C_(T_(t.element));o.parentNode.replaceChild(e,o);break}case"modifyTextElement":{const e=n.diff_main(t.oldValue,t.newValue);n.diff_cleanupSemantic(e);const r=document.createElement("span");for(const[t,n]of e){let e=R_(n);t<0?e=C_(e):t>0&&(e=w_(e)),r.appendChild(e)}o.parentNode.replaceChild(r,o);break}case"addElement":x_(r,o,w_(T_(t.element)));break;case"addTextElement":x_(r,o,w_(R_("\n"!==t.value?t.value:"")));break;case"removeAttribute":case"addAttribute":case"modifyAttribute":{const e=C_(o.cloneNode(!0)),n=o.cloneNode(!0);"addAttribute"===t.action||"modifyAttribute"===t.action?n.setAttribute(t.name,t.newValue):n.removeAttribute(t.name);const r=w_(n),i=document.createElement(Object(is.c)(o)?"div":"span");i.appendChild(e),i.appendChild(r),o.parentNode.replaceChild(i,o);break}default:console.warn("MessageDiffUtils::editBodyDiffToHtml: diff action not supported atm",t)}}function I_(e,t){return e.length===t.length&&!e.some((e,n)=>e!==t[n])}function A_(e,t){const n=`<div>${S_(e)}</div>`,o=`<div>${S_(t)}</div>`,r=function(e){const t=e.slice();for(let e=0;e<t.length;++e){const n=t[e];if("removeTextElement"===n.action){const o=t[e+1];o&&"addTextElement"===o.action&&o.text===n.text&&I_(o.route,n.route)&&t.splice(e,2)}}return t}((new y_.DiffDOM).diff(n,o)),a=new v_.a,s=(new DOMParser).parseFromString(n,"text/html").body.children[0];for(let e=0;e<r.length;++e){const t=r[e];D_(s,t,a),k_(t,r.slice(e+1))}const c=s.innerHTML,l=P()({mx_EventTile_body:!0,"markdown-body":!0});return i.a.createElement("span",{key:"body",className:l,dangerouslySetInnerHTML:{__html:c},dir:"auto"})}var N_,F_,M_,P_=n(737);function L_(e){const t=e.getOriginalContent();return t["m.new_content"]||t}let j_=Object(N.a)("views.messages.EditHistoryMessage")((M_=F_=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"_onAssociatedStatusChanged",()=>{this.setState({sendStatus:this.props.mxEvent.getAssociatedStatus()})}),R()(this,"_onRedactClick",async()=>{const e=this.props.mxEvent,t=de.a.get(),n=d.getComponent("dialogs.ConfirmAndWaitRedactDialog");Ge.a.createTrackedDialog("Confirm Redact Dialog","Edit history",n,{redact:()=>t.redactEvent(e.getRoomId(),e.getId())},"mx_Dialog_confirmredact")}),R()(this,"_onViewSourceClick",()=>{const e=d.getComponent("structures.ViewSource");Ge.a.createTrackedDialog("View Event Source","Edit history",e,{mxEvent:this.props.mxEvent},"mx_Dialog_viewsource")});const t=de.a.get(),{userId:n}=t.credentials,o=this.props.mxEvent,i=t.getRoom(o.getRoomId());o.localRedactionEvent()&&o.localRedactionEvent().on("status",this._onAssociatedStatusChanged);const a=i.currentState.maySendRedactionForEvent(o,n);this.state={canRedact:a,sendStatus:o.getAssociatedStatus()},this._content=Object(r.createRef)(),this._pills=[]}pillifyLinks(){this._content.current&&Object(P_.a)(this._content.current.children,this.props.mxEvent,this._pills)}componentDidMount(){this.pillifyLinks()}componentWillUnmount(){Object(P_.b)(this._pills);const e=this.props.mxEvent;e.localRedactionEvent()&&e.localRedactionEvent().off("status",this._onAssociatedStatusChanged)}componentDidUpdate(){this.pillifyLinks()}_renderActionBar(){const e=d.getComponent("elements.AccessibleButton");let t;this.props.mxEvent.isRedacted()||this.props.isBaseEvent||!this.state.canRedact||(t=i.a.createElement(e,{onClick:this._onRedactClick},Object(c.a)("Remove")));const n=i.a.createElement(e,{onClick:this._onViewSourceClick},Object(c.a)("View Source"));return i.a.createElement("div",{className:"mx_MessageActionBar"},t,n)}render(){const{mxEvent:e}=this.props,t=L_(e);let n;if(e.isRedacted())n=i.a.createElement(qi.a,{mxEvent:this.props.mxEvent});else{let o;if(o=this.props.previousEdit?A_(L_(this.props.previousEdit),t):is.b(t,null,{stripReplyFallback:!0}),"m.emote"===e.getContent().msgtype){const t=e.sender?e.sender.name:e.getSender();n=i.a.createElement("div",{className:"mx_EventTile_content",ref:this._content},"* ",i.a.createElement("span",{className:"mx_MEmoteBody_sender"},t)," ",o)}else n=i.a.createElement("div",{className:"mx_EventTile_content",ref:this._content},o)}const o=Object(Rd.e)(new Date(e.getTs()),this.props.isTwelveHour),r=-1!==["sending","queued","encrypting"].indexOf(this.state.sendStatus),a=P()({mx_EventTile:!0,mx_EventTile_sending:r,mx_EventTile_notSent:"not_sent"===this.state.sendStatus});return i.a.createElement("li",null,i.a.createElement("div",{className:a},i.a.createElement("div",{className:"mx_EventTile_line"},i.a.createElement("span",{className:"mx_MessageTimestamp"},o),n,this._renderActionBar())))}},R()(F_,"propTypes",{mxEvent:He.a.instanceOf(du.b).isRequired,previousEdit:He.a.instanceOf(du.b),isBaseEvent:He.a.bool}),N_=M_))||N_;var U_;let B_=Object(N.a)("views.messages.MAudioBody")(U_=class extends i.a.Component{constructor(e){super(e),this.state={playing:!1,decryptedUrl:null,decryptedBlob:null,error:null}}onPlayToggle(){this.setState({playing:!this.state.playing})}_getContentUrl(){const e=Object(ge.a)(this.props.mxEvent.getContent());return e.isEncrypted?this.state.decryptedUrl:e.srcHttp}componentDidMount(){const e=this.props.mxEvent.getContent();if(void 0!==e.file&&null===this.state.decryptedUrl){let t;Ai(e.file).then((function(e){return t=e,URL.createObjectURL(t)})).then(e=>{this.setState({decryptedUrl:e,decryptedBlob:t})},e=>{console.warn("Unable to decrypt attachment: ",e),this.setState({error:e})})}}componentWillUnmount(){this.state.decryptedUrl&&URL.revokeObjectURL(this.state.decryptedUrl)}render(){const e=this.props.mxEvent.getContent();if(null!==this.state.error)return i.a.createElement("span",{className:"mx_MAudioBody"},i.a.createElement("img",{src:n(258),width:"16",height:"16"}),Object(c.a)("Error decrypting audio"));if(void 0!==e.file&&null===this.state.decryptedUrl)return i.a.createElement("span",{className:"mx_MAudioBody"},i.a.createElement(Io.a,null));const t=this._getContentUrl();return i.a.createElement("span",{className:"mx_MAudioBody"},i.a.createElement("audio",{src:t,controls:!0}),i.a.createElement(ji,he()({},this.props,{decryptedBlob:this.state.decryptedBlob,showGenericPlaceholder:!1})))}})||U_;var q_,G_,V_;let H_=Object(N.a)("views.messages.MImageBody")((V_=G_=class extends i.a.Component{constructor(e){super(e),this.onImageError=this.onImageError.bind(this),this.onImageLoad=this.onImageLoad.bind(this),this.onImageEnter=this.onImageEnter.bind(this),this.onImageLeave=this.onImageLeave.bind(this),this.onClientSync=this.onClientSync.bind(this),this.onClick=this.onClick.bind(this),this._isGif=this._isGif.bind(this),this.state={decryptedUrl:null,decryptedThumbnailUrl:null,decryptedBlob:null,error:null,imgError:!1,imgLoaded:!1,loadedImageDimensions:null,hover:!1,showImage:G.b.getValue("showImages")},this._image=Object(r.createRef)()}onClientSync(e,t){if(this.unmounted)return;"ERROR"!==e&&t!==e&&this.state.imgError&&this.setState({imgError:!1})}showImage(){localStorage.setItem("mx_ShowImage_"+this.props.mxEvent.getId(),"true"),this.setState({showImage:!0}),this._downloadImage()}onClick(e){if(0===e.button&&!e.metaKey){if(e.preventDefault(),!this.state.showImage)return void this.showImage();const t=this.props.mxEvent.getContent(),n=this._getContentUrl(),o=d.getComponent("elements.ImageView"),r={src:n,name:t.body&&t.body.length>0?t.body:Object(c.a)("Attachment"),mxEvent:this.props.mxEvent,permalinkCreator:this.props.permalinkCreator};t.info&&(r.width=t.info.w,r.height=t.info.h,r.fileSize=t.info.size),Ge.a.createDialog(o,r,"mx_Dialog_lightbox",null,!0)}}_isGif(){const e=this.props.mxEvent.getContent();return e&&e.info&&"image/gif"===e.info.mimetype}onImageEnter(e){if(this.setState({hover:!0}),!this.state.showImage||!this._isGif()||G.b.getValue("autoplayGifsAndVideos"))return;e.target.src=this._getContentUrl()}onImageLeave(e){if(this.setState({hover:!1}),!this.state.showImage||!this._isGif()||G.b.getValue("autoplayGifsAndVideos"))return;e.target.src=this._getThumbUrl()}onImageError(){this.setState({imgError:!0})}onImageLoad(){let e;if(this.props.onHeightChanged(),this._image.current){const{naturalWidth:t,naturalHeight:n}=this._image.current;e={naturalWidth:t,naturalHeight:n}}this.setState({imgLoaded:!0,loadedImageDimensions:e})}_getContentUrl(){const e=Object(ge.a)(this.props.mxEvent.getContent());return e.isEncrypted?this.state.decryptedUrl:e.srcHttp}_getThumbUrl(){const e=window.devicePixelRatio,t=Math.round(800*e),n=Math.round(600*e),o=this.props.mxEvent.getContent(),r=Object(ge.a)(o);if(r.isEncrypted)return this.state.decryptedThumbnailUrl?this.state.decryptedThumbnailUrl:this.state.decryptedUrl;if(o.info&&"image/svg+xml"===o.info.mimetype&&r.hasThumbnail)return r.getThumbnailHttp(t,n,"scale");{const i=o.info;if(!this._isGif()&&1!==e&&i&&i.w&&i.h&&i.size){const e=i.w>t||i.h>n;return i.size>1048576&&e?r.getThumbnailOfSourceHttp(t,n):r.srcHttp}return r.getThumbnailOfSourceHttp(t,n)}}_downloadImage(){const e=this.props.mxEvent.getContent();if(void 0!==e.file&&null===this.state.decryptedUrl){let t,n=Promise.resolve(null);e.info&&e.info.thumbnail_file&&(n=Ai(e.info.thumbnail_file).then((function(e){return URL.createObjectURL(e)}))),n.then(n=>Ai(e.file).then((function(e){return t=e,URL.createObjectURL(e)})).then(e=>{this.unmounted||this.setState({decryptedUrl:e,decryptedThumbnailUrl:n,decryptedBlob:t})})).catch(e=>{this.unmounted||(console.warn("Unable to decrypt attachment: ",e),this.setState({error:e}))})}}componentDidMount(){this.unmounted=!1,this.context.on("sync",this.onClientSync);(this.state.showImage||"true"===localStorage.getItem("mx_ShowImage_"+this.props.mxEvent.getId()))&&(this._downloadImage(),this.setState({showImage:!0})),this._afterComponentDidMount()}_afterComponentDidMount(){}componentWillUnmount(){this.unmounted=!0,this.context.removeListener("sync",this.onClientSync),this._afterComponentWillUnmount(),this.state.decryptedUrl&&URL.revokeObjectURL(this.state.decryptedUrl),this.state.decryptedThumbnailUrl&&URL.revokeObjectURL(this.state.decryptedThumbnailUrl)}_afterComponentWillUnmount(){}_messageContent(e,t,n){let o,r;if(n&&n.info&&n.info.w&&n.info.h)o=n.info.w,r=n.info.h;else{if(!this.state.loadedImageDimensions){let o;return o=this.state.showImage?i.a.createElement("img",{style:{display:"none"},src:t,ref:this._image,alt:n.body,onError:this.onImageError,onLoad:this.onImageLoad}):i.a.createElement(z_,null),this.wrapImage(e,o)}o=this.state.loadedImageDimensions.naturalWidth,r=this.state.loadedImageDimensions.naturalHeight}const a=Math.min(this.props.maxImageHeight||600,r),s=o*a/r;let c=null,l=null,d=null;void 0!==n.file&&null===this.state.decryptedUrl?l=i.a.createElement(Io.a,{w:32,h:32}):this.state.imgLoaded||(l=this.getPlaceholder());let u=Boolean(l);t&&!this.state.imgError&&(c=i.a.createElement("img",{className:"mx_MImageBody_thumbnail",src:t,ref:this._image,style:{maxWidth:s+"px"},alt:n.body,onError:this.onImageError,onLoad:this.onImageLoad,onMouseEnter:this.onImageEnter,onMouseLeave:this.onImageLeave})),this.state.showImage||(c=i.a.createElement(z_,{style:{maxWidth:s+"px"}}),u=!1),!this._isGif()||G.b.getValue("autoplayGifsAndVideos")||this.state.hover||(d=i.a.createElement("p",{className:"mx_MImageBody_gifLabel"},"GIF"));const h=i.a.createElement("div",{className:"mx_MImageBody_thumbnail_container",style:{maxHeight:a+"px"}},i.a.createElement("div",{style:{paddingBottom:100*r/o+"%"}}),u&&i.a.createElement("div",{className:"mx_MImageBody_thumbnail",style:{maxWidth:o+"px"}},i.a.createElement("div",{className:"mx_MImageBody_thumbnail_spinner"},l)),i.a.createElement("div",{style:{display:u?"none":void 0}},c,d),this.state.hover&&this.getTooltip());return this.wrapImage(e,h)}wrapImage(e,t){return i.a.createElement("a",{href:e,onClick:this.onClick},t)}getPlaceholder(){return null}getTooltip(){return null}getFileBody(){return i.a.createElement(ji,he()({},this.props,{decryptedBlob:this.state.decryptedBlob,showGenericPlaceholder:!1}))}render(){const e=this.props.mxEvent.getContent();if(null!==this.state.error)return i.a.createElement("span",{className:"mx_MImageBody"},i.a.createElement("img",{src:n(258),width:"16",height:"16"}),Object(c.a)("Error decrypting image"));const t=this._getContentUrl();let o;o=this._isGif()&&G.b.getValue("autoplayGifsAndVideos")?t:this._getThumbUrl();const r=this._messageContent(t,o,e),a=this.getFileBody();return i.a.createElement("span",{className:"mx_MImageBody"},r,a)}},R()(G_,"propTypes",{mxEvent:He.a.object.isRequired,onHeightChanged:He.a.func.isRequired,maxImageHeight:He.a.number,permalinkCreator:He.a.object}),R()(G_,"contextType",b.a),q_=V_))||q_;class z_ extends i.a.PureComponent{render(){let e="mx_HiddenImagePlaceholder";return this.props.hover&&(e+=" mx_HiddenImagePlaceholder_hover"),i.a.createElement("div",{className:e},i.a.createElement("div",{className:"mx_HiddenImagePlaceholder_button"},i.a.createElement("span",{className:"mx_HiddenImagePlaceholder_eye"}),i.a.createElement("span",null,Object(c.a)("Show image"))))}}var K_;R()(z_,"propTypes",{hover:He.a.bool});let W_=Object(N.a)("views.messages.MKeyVerificationConclusion")(K_=class extends i.a.Component{constructor(e){super(e),R()(this,"_onRequestChanged",()=>{this.forceUpdate()}),R()(this,"_onTrustChanged",(e,t)=>{const{mxEvent:n}=this.props,o=n.verificationRequest;o&&o.otherUserId===e&&this.forceUpdate()})}componentDidMount(){const e=this.props.mxEvent.verificationRequest;e&&e.on("change",this._onRequestChanged),de.a.get().on("userTrustStatusChanged",this._onTrustChanged)}componentWillUnmount(){const e=this.props.mxEvent.verificationRequest;e&&e.off("change",this._onRequestChanged);const t=de.a.get();t&&t.removeListener("userTrustStatusChanged",this._onTrustChanged)}_shouldRender(e,t){return!!t&&(!("m.key.verification.cancel"===e.getType()&&!t.cancelled)&&(!("m.key.verification.done"===e.getType()&&!t.done)&&(!t.pending&&!!de.a.get().checkUserTrust(t.otherUserId).isCrossSigningVerified())))}render(){const{mxEvent:e}=this.props,t=e.verificationRequest;if(!this._shouldRender(e,t))return null;const n=de.a.get().getUserId();let o;if(t.done)o=Object(c.a)("You verified %(name)s",{name:ql(t.otherUserId,e)});else if(t.cancelled){const r=t.cancellingUserId;o=r===n?Object(c.a)("You cancelled verifying %(name)s",{name:ql(t.otherUserId,e)}):Object(c.a)("%(name)s cancelled verifying",{name:ql(r,e)})}if(o){const n=P()("mx_cryptoEvent mx_cryptoEvent_icon",{mx_cryptoEvent_icon_verified:t.done});return i.a.createElement(Si,{className:n,title:o,subtitle:Gl(t.otherUserId,e.getRoomId())})}return null}})||K_;var Y_;W_.propTypes={mxEvent:He.a.object.isRequired};let $_=Object(N.a)("views.messages.MKeyVerificationRequest")(Y_=class extends i.a.Component{constructor(e){super(e),R()(this,"_openRequest",()=>{const{verificationRequest:e}=this.props.mxEvent,t=de.a.get().getUser(e.otherUserId);u.a.dispatch({action:h.a.SetRightPanelPhase,phase:ot.c.EncryptionPanel,refireParams:{verificationRequest:e,member:t}})}),R()(this,"_onRequestChanged",()=>{this.forceUpdate()}),R()(this,"_onAcceptClicked",async()=>{const e=this.props.mxEvent.verificationRequest;if(e)try{this._openRequest(),await e.accept()}catch(e){console.error(e.message)}}),R()(this,"_onRejectClicked",async()=>{const e=this.props.mxEvent.verificationRequest;if(e)try{await e.cancel()}catch(e){console.error(e.message)}}),this.state={}}componentDidMount(){const e=this.props.mxEvent.verificationRequest;e&&e.on("change",this._onRequestChanged)}componentWillUnmount(){const e=this.props.mxEvent.verificationRequest;e&&e.off("change",this._onRequestChanged)}_acceptedLabel(e){return e===de.a.get().getUserId()?Object(c.a)("You accepted"):Object(c.a)("%(name)s accepted",{name:ql(e,this.props.mxEvent.getRoomId())})}_cancelledLabel(e){const t=de.a.get().getUserId(),{cancellationCode:n}=this.props.mxEvent.verificationRequest,o="m.user"===n;return e===t?o?Object(c.a)("You declined"):Object(c.a)("You cancelled"):o?Object(c.a)("%(name)s declined",{name:ql(e,this.props.mxEvent.getRoomId())}):Object(c.a)("%(name)s cancelled",{name:ql(e,this.props.mxEvent.getRoomId())})}render(){const e=d.getComponent("elements.AccessibleButton"),t=d.getComponent("elements.FormButton"),{mxEvent:n}=this.props,o=n.verificationRequest;if(!o||o.invalid)return null;let r,a,s;if(!o.canAccept){let t;o.ready||o.started||o.done?t=i.a.createElement(e,{onClick:this._openRequest},this._acceptedLabel(o.receivingUserId)):o.cancelled?t=this._cancelledLabel(o.cancellingUserId):o.accepting?t=Object(c.a)("Accepting …"):o.declining&&(t=Object(c.a)("Declining …")),s=i.a.createElement("div",{className:"mx_cryptoEvent_state"},t)}if(o.initiatedByMe)r=Object(c.a)("You sent a verification request"),a=Gl(o.receivingUserId,n.getRoomId());else{const e=ql(o.requestingUserId,n.getRoomId());r=Object(c.a)("%(name)s wants to verify",{name:e}),a=Gl(o.requestingUserId,n.getRoomId()),o.canAccept&&(s=i.a.createElement("div",{className:"mx_cryptoEvent_buttons"},i.a.createElement(t,{kind:"danger",onClick:this._onRejectClicked,label:Object(c.a)("Decline")}),i.a.createElement(t,{onClick:this._onAcceptClicked,label:Object(c.a)("Accept")})))}return r?i.a.createElement(Si,{className:"mx_cryptoEvent mx_cryptoEvent_icon",title:r,subtitle:a},s):null}})||Y_;var Q_;$_.propTypes={mxEvent:He.a.object.isRequired};let J_=Object(N.a)("views.messages.MStickerBody")(Q_=class extends H_{onClick(e){e.preventDefault(),this.state.showImage||this.showImage()}wrapImage(e,t){let n=null;return this.state.showImage||(n=this.onClick),i.a.createElement("div",{className:"mx_MStickerBody_wrapper",onClick:n}," ",t," ")}getPlaceholder(){const e=d.getComponent("elements.TintableSvg");return i.a.createElement(e,{src:n(1361),width:"75",height:"75"})}getTooltip(){const e=this.props.mxEvent&&this.props.mxEvent.getContent();if(!(e&&e.body&&e.info&&e.info.w))return null;const t=d.getComponent("elements.Tooltip");return i.a.createElement("div",{style:{left:e.info.w+"px"},className:"mx_MStickerBody_tooltip"},i.a.createElement(t,{label:e.body}))}getFileBody(){return null}})||Q_;var X_,Z_,eb,tb=n(229);const nb=({mxEvent:e,getTile:t,getReplyThread:n,permalinkCreator:a,onFocusChange:s})=>{const[l,u,h,p]=Object(o.q)(),[m,g,f]=Object(ie.e)(u);let _;if(Object(r.useEffect)(()=>{s(l)},[s,l]),l){const r=d.getComponent("context_menus.MessageContextMenu"),s=t&&t(),c=n&&n(),l=u.current.getBoundingClientRect();_=i.a.createElement(o.b,he()({},Object(o.k)(l),{onFinished:p}),i.a.createElement(r,{mxEvent:e,permalinkCreator:a,eventTileOps:s&&s.getEventTileOps?s.getEventTileOps():void 0,collapseReplyThread:c&&c.canCollapse()?c.collapse:void 0,onFinished:p}))}return i.a.createElement(i.a.Fragment,null,i.a.createElement(o.d,{className:"mx_MessageActionBar_maskButton mx_MessageActionBar_optionsButton",title:Object(c.a)("Options"),onClick:h,isExpanded:l,inputRef:f,onFocus:m,tabIndex:g?0:-1}),_)},ob=({mxEvent:e,reactions:t,onFocusChange:n})=>{const[a,s,l,u]=Object(o.q)(),[h,p,m]=Object(ie.e)(s);let g;if(Object(r.useEffect)(()=>{n(a)},[n,a]),a){const n=s.current.getBoundingClientRect(),r=d.getComponent("emojipicker.ReactionPicker");g=i.a.createElement(o.b,he()({},Object(o.k)(n),{onFinished:u,managed:!1}),i.a.createElement(r,{mxEvent:e,reactions:t,onFinished:u}))}return i.a.createElement(i.a.Fragment,null,i.a.createElement(o.d,{className:"mx_MessageActionBar_maskButton mx_MessageActionBar_reactButton",title:Object(c.a)("React"),onClick:l,isExpanded:a,inputRef:m,onFocus:h,tabIndex:p?0:-1}),g)};let rb=Object(N.a)("views.messages.MessageActionBar")((eb=Z_=class extends i.a.PureComponent{constructor(...e){super(...e),R()(this,"onDecrypted",()=>{this.forceUpdate()}),R()(this,"onBeforeRedaction",()=>{this.forceUpdate()}),R()(this,"onSent",()=>{this.forceUpdate()}),R()(this,"onFocusChange",e=>{this.props.onFocusChange&&this.props.onFocusChange(e)}),R()(this,"onReplyClick",e=>{u.a.dispatch({action:"reply_to_event",event:this.props.mxEvent})}),R()(this,"onEditClick",e=>{u.a.dispatch({action:"edit_event",event:this.props.mxEvent})})}componentDidMount(){this.props.mxEvent.status&&this.props.mxEvent.status!==du.a.SENT&&this.props.mxEvent.on("Event.status",this.onSent),this.props.mxEvent.isBeingDecrypted()&&this.props.mxEvent.once("Event.decrypted",this.onDecrypted),this.props.mxEvent.on("Event.beforeRedaction",this.onBeforeRedaction)}componentWillUnmount(){this.props.mxEvent.off("Event.status",this.onSent),this.props.mxEvent.off("Event.decrypted",this.onDecrypted),this.props.mxEvent.off("Event.beforeRedaction",this.onBeforeRedaction)}render(){let e,t,n;return Object(wu.c)(this.props.mxEvent)&&(this.context.canReact&&(e=i.a.createElement(ob,{mxEvent:this.props.mxEvent,reactions:this.props.reactions,onFocusChange:this.onFocusChange})),this.context.canReply&&(t=i.a.createElement(ie.b,{className:"mx_MessageActionBar_maskButton mx_MessageActionBar_replyButton",title:Object(c.a)("Reply"),onClick:this.onReplyClick}))),Object(wu.a)(this.props.mxEvent)&&(n=i.a.createElement(ie.b,{className:"mx_MessageActionBar_maskButton mx_MessageActionBar_editButton",title:Object(c.a)("Edit"),onClick:this.onEditClick})),i.a.createElement(yt,{className:"mx_MessageActionBar","aria-label":Object(c.a)("Message Actions"),"aria-live":"off"},e,t,n,i.a.createElement(nb,{mxEvent:this.props.mxEvent,getReplyThread:this.props.getReplyThread,getTile:this.props.getTile,permalinkCreator:this.props.permalinkCreator,onFocusChange:this.onFocusChange}))}},R()(Z_,"propTypes",{mxEvent:He.a.object.isRequired,reactions:He.a.object,permalinkCreator:He.a.object,getTile:He.a.func,getReplyThread:He.a.func,onFocusChange:He.a.func}),R()(Z_,"contextType",tb.a),X_=eb))||X_;var ib,ab,sb,cb=n(720),lb=n(624);let db=Object(N.a)("views.messages.MjolnirBody")((sb=ab=class extends i.a.Component{constructor(){super(),R()(this,"_onAllowClick",e=>{e.preventDefault(),e.stopPropagation();const t=`mx_mjolnir_render_${this.props.mxEvent.getRoomId()}__${this.props.mxEvent.getId()}`;localStorage.setItem(t,"true"),this.props.onMessageAllowed()})}render(){return i.a.createElement("div",{className:"mx_MjolnirBody"},i.a.createElement("i",null,Object(c.a)("You have ignored this user, so their message is hidden. <a>Show anyways.</a>",{},{a:e=>i.a.createElement("a",{href:"#",onClick:this._onAllowClick},e)})))}},R()(ab,"propTypes",{mxEvent:He.a.object.isRequired,onMessageAllowed:He.a.func.isRequired}),ib=sb))||ib;var ub,hb,pb;let mb=Object(N.a)("views.messages.ReactionsRow")((pb=hb=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"onReactionsChange",()=>{this.setState({myReactions:this.getMyReactions()}),this.forceUpdate()}),R()(this,"onShowAllClick",()=>{this.setState({showAll:!0})}),e.reactions&&(e.reactions.on("Relations.add",this.onReactionsChange),e.reactions.on("Relations.remove",this.onReactionsChange),e.reactions.on("Relations.redaction",this.onReactionsChange)),this.state={myReactions:this.getMyReactions(),showAll:!1}}componentDidUpdate(e){e.reactions!==this.props.reactions&&(this.props.reactions.on("Relations.add",this.onReactionsChange),this.props.reactions.on("Relations.remove",this.onReactionsChange),this.props.reactions.on("Relations.redaction",this.onReactionsChange),this.onReactionsChange())}componentWillUnmount(){this.props.reactions&&(this.props.reactions.removeListener("Relations.add",this.onReactionsChange),this.props.reactions.removeListener("Relations.remove",this.onReactionsChange),this.props.reactions.removeListener("Relations.redaction",this.onReactionsChange))}getMyReactions(){const e=this.props.reactions;if(!e)return null;const t=de.a.get().getUserId(),n=e.getAnnotationsBySender()[t];return n?[...n.values()]:null}render(){const{mxEvent:e,reactions:t}=this.props,{myReactions:n,showAll:o}=this.state;if(!t||!Object(wu.c)(e))return null;const r=d.getComponent("messages.ReactionsRowButton");let a,s=t.getSortedAnnotationsByKey().map(([t,o])=>{const a=o.size;if(!a)return null;const s=n&&n.find(e=>!e.isRedacted()&&e.getRelation().key===t);return i.a.createElement(r,{key:t,content:t,count:a,mxEvent:e,reactionEvents:o,myReactionEvent:s})}).filter(e=>!!e);return s.length>9&&!o&&(s=s.slice(0,8),a=i.a.createElement("a",{className:"mx_ReactionsRow_showAll",href:"#",onClick:this.onShowAllClick},Object(c.a)("Show all"))),i.a.createElement("div",{className:"mx_ReactionsRow",role:"toolbar","aria-label":Object(c.a)("Reactions")},s,a)}},R()(hb,"propTypes",{mxEvent:He.a.object.isRequired,reactions:He.a.object}),ub=pb))||ub;var gb,fb,_b;let bb=Object(N.a)("views.messages.ReactionsRowButton")((_b=fb=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"onClick",e=>{const{mxEvent:t,myReactionEvent:n,content:o}=this.props;n?de.a.get().redactEvent(t.getRoomId(),n.getId()):(de.a.get().sendEvent(t.getRoomId(),"m.reaction",{"m.relates_to":{rel_type:"m.annotation",event_id:t.getId(),key:o}}),u.a.dispatch({action:"message_sent"}))}),R()(this,"onMouseOver",()=>{this.setState({tooltipRendered:!0,tooltipVisible:!0})}),R()(this,"onMouseLeave",()=>{this.setState({tooltipVisible:!1})}),this.state={tooltipVisible:!1}}render(){const e=d.getComponent("messages.ReactionsRowButtonTooltip"),{mxEvent:t,content:n,count:o,reactionEvents:r,myReactionEvent:a}=this.props,s=P()({mx_ReactionsRowButton:!0,mx_ReactionsRowButton_selected:!!a});let l;this.state.tooltipRendered&&(l=i.a.createElement(e,{mxEvent:this.props.mxEvent,content:n,reactionEvents:r,visible:this.state.tooltipVisible}));const u=de.a.get().getRoom(t.getRoomId());let h;if(u){const e=[];for(const t of r){const n=u.getMember(t.getSender()),o=n?n.name:t.getSender();e.push(o)}h=Object(c.a)("<reactors/><reactedWith> reacted with %(content)s</reactedWith>",{content:n},{reactors:()=>Object(J.b)(e,6),reactedWith:e=>n?e:null})}const p=d.getComponent("elements.AccessibleButton");return i.a.createElement(p,{className:s,"aria-label":h,onClick:this.onClick,onMouseOver:this.onMouseOver,onMouseLeave:this.onMouseLeave},i.a.createElement("span",{className:"mx_ReactionsRowButton_content","aria-hidden":"true"},n),i.a.createElement("span",{className:"mx_ReactionsRowButton_count","aria-hidden":"true"},o),l)}},R()(fb,"propTypes",{mxEvent:He.a.object.isRequired,content:He.a.string.isRequired,count:He.a.number.isRequired,reactionEvents:He.a.object.isRequired,myReactionEvent:He.a.object}),gb=_b))||gb;var vb,yb,Eb;let Sb=Object(N.a)("views.messages.ReactionsRowButtonTooltip")((Eb=yb=class extends i.a.PureComponent{render(){const e=d.getComponent("elements.Tooltip"),{content:t,reactionEvents:n,mxEvent:o,visible:r}=this.props,a=de.a.get().getRoom(o.getRoomId());let s,l;if(a){const e=[];for(const t of n){const n=a.getMember(t.getSender()),o=n?n.name:t.getSender();e.push(o)}const o=Object(is.j)(t);s=i.a.createElement("div",null,Object(c.a)("<reactors/><reactedWith>reacted with %(shortName)s</reactedWith>",{shortName:o},{reactors:()=>i.a.createElement("div",{className:"mx_Tooltip_title"},Object(J.b)(e,6)),reactedWith:e=>o?i.a.createElement("div",{className:"mx_Tooltip_sub"},e):null}))}return s&&(l=i.a.createElement(e,{visible:r,label:s})),l}},R()(yb,"propTypes",{mxEvent:He.a.object.isRequired,content:He.a.string.isRequired,reactionEvents:He.a.object.isRequired,visible:He.a.bool.isRequired}),vb=Eb))||vb;var wb,Cb,Tb;let xb=Object(N.a)("views.messages.RoomAvatarEvent")((Tb=Cb=class extends i.a.Component{constructor(...e){super(...e),R()(this,"onAvatarClick",()=>{const e=de.a.get(),t=this.props.mxEvent,n=Object(ge.b)(t.getContent().url).srcHttp,o=e.getRoom(this.props.mxEvent.getRoomId()),r=Object(c.a)("%(senderDisplayName)s changed the avatar for %(roomName)s",{senderDisplayName:t.sender&&t.sender.name?t.sender.name:t.getSender(),roomName:o?o.name:""}),i=d.getComponent("elements.ImageView"),a={src:n,name:r};Ge.a.createDialog(i,a,"mx_Dialog_lightbox",null,!0)})}render(){const e=this.props.mxEvent,t=e.sender&&e.sender.name?e.sender.name:e.getSender(),n=d.getComponent("avatars.RoomAvatar");if(!e.getContent().url||0===e.getContent().url.trim().length)return i.a.createElement("div",{className:"mx_TextualEvent"},Object(c.a)("%(senderDisplayName)s removed the room avatar.",{senderDisplayName:t}));const o=de.a.get().getRoom(e.getRoomId()),r={avatarUrl:e.getContent().url,name:o?o.name:""};return i.a.createElement("div",{className:"mx_RoomAvatarEvent"},Object(c.a)("%(senderDisplayName)s changed the room avatar to <img/>",{senderDisplayName:t},{img:()=>i.a.createElement(g.a,{key:"avatar",className:"mx_RoomAvatarEvent_avatar",onClick:this.onAvatarClick},i.a.createElement(n,{width:14,height:14,oobData:r}))}))}},R()(Cb,"propTypes",{mxEvent:He.a.object.isRequired}),wb=Tb))||wb;var Ob,kb,Rb;let Db=Object(N.a)("views.messages.RoomCreate")((Rb=kb=class extends i.a.Component{constructor(...e){super(...e),R()(this,"_onLinkClicked",e=>{e.preventDefault();const t=this.props.mxEvent.getContent().predecessor;u.a.dispatch({action:"view_room",event_id:t.event_id,highlighted:!0,room_id:t.room_id})})}render(){const e=this.props.mxEvent.getContent().predecessor;if(void 0===e)return i.a.createElement("div",null);const t=de.a.get().getRoom(e.room_id),n=new hs.a(t,e.room_id);n.load();const o=n.forEvent(e.event_id),r=i.a.createElement("a",{href:o,onClick:this._onLinkClicked},Object(c.a)("Click here to see older messages."));return i.a.createElement(Si,{className:"mx_CreateEvent",title:Object(c.a)("This room is a continuation of another conversation."),subtitle:r})}},R()(kb,"propTypes",{mxEvent:He.a.object.isRequired}),Ob=Rb))||Ob;var Ib,Ab,Nb;let Fb=Object(N.a)("views.messages.SenderProfile")((Nb=Ab=class extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{userGroups:null,relatedGroups:[]}),R()(this,"onRoomStateEvents",e=>{"m.room.related_groups"===e.getType()&&e.getRoomId()===this.props.mxEvent.getRoomId()&&this._updateRelatedGroups()})}componentDidMount(){this.unmounted=!1,this._updateRelatedGroups(),at.a.getPublicisedGroupsCached(this.context,this.props.mxEvent.getSender()).then(e=>{this.unmounted||this.setState({userGroups:e})}),this.context.on("RoomState.events",this.onRoomStateEvents)}componentWillUnmount(){this.unmounted=!0,this.context.removeListener("RoomState.events",this.onRoomStateEvents)}_updateRelatedGroups(){if(this.unmounted)return;const e=this.context.getRoom(this.props.mxEvent.getRoomId());if(!e)return;const t=e.currentState.getStateEvents("m.room.related_groups","");this.setState({relatedGroups:t&&t.getContent().groups||[]})}_getDisplayedGroups(e,t){let n=e||[];return n=t&&t.length>0?t.filter(e=>n.includes(e)):[],n}render(){const{mxEvent:e}=this.props,t=Object(J.f)(e.getSender()),n=e.sender?e.sender.name:e.getSender(),{msgtype:o}=e.getContent();if("m.emote"===o)return i.a.createElement("span",null);let r=i.a.createElement("div",null);if(this.props.enableFlair){const t=this._getDisplayedGroups(this.state.userGroups,this.state.relatedGroups);r=i.a.createElement(pf,{key:"flair",userId:e.getSender(),groups:t})}const a=n||"",s=i.a.createElement("span",null,i.a.createElement("span",{className:"mx_SenderProfile_name "+t},a),r);return i.a.createElement("div",{className:"mx_SenderProfile",dir:"auto",onClick:this.props.onClick},i.a.createElement("div",{className:"mx_SenderProfile_hover"},s))}},R()(Ab,"propTypes",{mxEvent:He.a.object.isRequired,onClick:He.a.func}),R()(Ab,"contextType",b.a),Ib=Nb))||Ib;var Mb,Pb,Lb,jb=n(1362);let Ub=Object(N.a)("views.messages.TextualEvent")((Lb=Pb=class extends i.a.Component{render(){const e=Ad.a(this.props.mxEvent);return null==e||0===e.length?null:i.a.createElement("div",{className:"mx_TextualEvent"},e)}},R()(Pb,"propTypes",{mxEvent:He.a.object.isRequired}),Mb=Lb))||Mb;var Bb;let qb=Object(N.a)("views.messages.TileErrorBoundary")(Bb=class extends i.a.Component{constructor(e){super(e),R()(this,"_onBugReport",()=>{const e=d.getComponent("dialogs.BugReportDialog");e&&Ge.a.createTrackedDialog("Bug Report Dialog","",e,{label:"react-soft-crash-tile"})}),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}render(){if(this.state.error){const{mxEvent:e}=this.props,t={mx_EventTile:!0,mx_EventTile_info:!0,mx_EventTile_content:!0,mx_EventTile_tileError:!0};let n;return l.a.get().bug_report_endpoint_url&&(n=i.a.createElement("a",{onClick:this._onBugReport,href:"#"},Object(c.a)("Submit logs"))),i.a.createElement("div",{className:P()(t)},i.a.createElement("div",{className:"mx_EventTile_line"},i.a.createElement("span",null,Object(c.a)("Can't load this message"),e&&` (${e.getType()})`,n)))}return this.props.children}})||Bb;var Gb,Vb,Hb,zb=n(721);let Kb=Object(N.a)("views.messages.ViewSourceEvent")((Hb=Vb=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"onToggle",e=>{e.preventDefault();const{expanded:t}=this.state;this.setState({expanded:!t})}),this.state={expanded:!1}}componentDidMount(){const{mxEvent:e}=this.props;e.isBeingDecrypted()&&e.once("Event.decrypted",()=>this.forceUpdate())}render(){const{mxEvent:e}=this.props,{expanded:t}=this.state;let n;n=t?i.a.createElement("pre",null,JSON.stringify(e,null,4)):i.a.createElement("code",null,`{ "type": ${e.getType()} }`);const o=P()("mx_ViewSourceEvent mx_EventTile_content",{mx_ViewSourceEvent_expanded:t});return i.a.createElement("span",{className:o},n,i.a.createElement("a",{className:"mx_ViewSourceEvent_toggle",href:"#",onClick:this.onToggle}))}},R()(Vb,"propTypes",{mxEvent:He.a.object.isRequired}),Gb=Hb))||Gb;var Wb;let Yb=Object(N.a)("views.room_settings.RoomPublishSetting")(Wb=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"onRoomPublishChange",e=>{const t=this.state.isRoomPublished,n=!t;this.setState({isRoomPublished:n});de.a.get().setRoomDirectoryVisibility(this.props.roomId,n?"public":"private").catch(()=>{this.setState({isRoomPublished:t})})}),this.state={isRoomPublished:!1}}componentDidMount(){de.a.get().getRoomDirectoryVisibility(this.props.roomId).then(e=>{this.setState({isRoomPublished:"public"===e.visibility})})}render(){const e=de.a.get();return i.a.createElement(wm.a,{value:this.state.isRoomPublished,onChange:this.onRoomPublishChange,disabled:!this.props.canSetCanonicalAlias,label:Object(c.a)("Publish this room to the public in %(domain)s's room directory?",{domain:e.getDomain()})})}})||Wb;var $b,Qb,Jb;class Xb extends nf{constructor(e){super(e),R()(this,"_onAliasAdded",async()=>{await this._aliasField.current.validate({allowEmpty:!1}),this._aliasField.current.isValid?this.props.onItemAdded&&this.props.onItemAdded(this.props.newItem):(this._aliasField.current.focus(),this._aliasField.current.validate({allowEmpty:!1,focused:!0}))}),this._aliasField=Object(r.createRef)()}_renderNewItemField(){if(!this.props.domain)return super._renderNewItemField();const e=d.getComponent("views.elements.RoomAliasField");return i.a.createElement("form",{onSubmit:this._onAliasAdded,autoComplete:"off",noValidate:!0,className:"mx_EditableItemList_newItem"},i.a.createElement(e,{ref:this._aliasField,onChange:e=>this._onNewItemChanged({target:{value:e}}),value:this.props.newItem||"",domain:this.props.domain}),i.a.createElement(g.a,{onClick:this._onAliasAdded,kind:"primary"},Object(c.a)("Add")))}}let Zb=Object(N.a)("views.room_settings.AliasSettings")((Jb=Qb=class extends i.a.Component{constructor(e){super(e),R()(this,"onNewAliasChanged",e=>{this.setState({newAlias:e})}),R()(this,"onLocalAliasAdded",e=>{if(!e||0===e.length)return;const t=de.a.get().getDomain();e.includes(":")||(e+=":"+t),de.a.get().createAlias(e,this.props.roomId).then(()=>{this.setState({localAliases:this.state.localAliases.concat(e),newAlias:null}),this.state.canonicalAlias||this.changeCanonicalAlias(e)}).catch(e=>{console.error(e),Ge.a.createTrackedDialog("Error creating address","",rt.a,{title:Object(c.a)("Error creating address"),description:Object(c.a)("There was an error creating that address. It may not be allowed by the server or a temporary failure occurred.")})})}),R()(this,"onLocalAliasDeleted",e=>{const t=this.state.localAliases[e];de.a.get().deleteAlias(t).then(()=>{const e=this.state.localAliases.filter(e=>e!==t);this.setState({localAliases:e}),this.state.canonicalAlias===t&&this.changeCanonicalAlias(null)}).catch(e=>{let t;console.error(e),t="M_FORBIDDEN"===e.errcode?Object(c.a)("You don't have permission to delete the address."):Object(c.a)("There was an error removing that address. It may no longer exist or a temporary error occurred."),Ge.a.createTrackedDialog("Error removing address","",rt.a,{title:Object(c.a)("Error removing address"),description:t})})}),R()(this,"onLocalAliasesToggled",e=>{e.target.open&&(this.props.canSetCanonicalAlias||0!==this.state.localAliases.length||this.loadLocalAliases()),this.setState({detailsOpen:e.target.open})}),R()(this,"onCanonicalAliasChange",e=>{this.changeCanonicalAlias(e.target.value)}),R()(this,"onNewAltAliasChanged",e=>{this.setState({newAltAlias:e})}),R()(this,"onAltAliasAdded",e=>{const t=this.state.altAliases.slice();t.some(t=>t.trim()===e.trim())||(t.push(e.trim()),this.changeAltAliases(t),this.setState({newAltAlias:""}))}),R()(this,"onAltAliasDeleted",e=>{const t=this.state.altAliases.slice();t.splice(e,1),this.changeAltAliases(t)});const t={altAliases:[],localAliases:[],canonicalAlias:null,updatingCanonicalAlias:!1,localAliasesLoading:!1,detailsOpen:!1};if(e.canonicalAliasEvent){const n=e.canonicalAliasEvent.getContent(),o=n.alt_aliases;Array.isArray(o)&&(t.altAliases=o.slice()),t.canonicalAlias=n.alias}this.state=t}componentDidMount(){this.props.canSetCanonicalAlias&&this.loadLocalAliases()}async loadLocalAliases(){this.setState({localAliasesLoading:!0});try{const e=de.a.get();let t=[];if(await e.doesServerSupportUnstableFeature("org.matrix.msc2432")){const n=await e.unstableGetLocalAliases(this.props.roomId);Array.isArray(n.aliases)&&(t=n.aliases)}this.setState({localAliases:t})}finally{this.setState({localAliasesLoading:!1})}}changeCanonicalAlias(e){if(!this.props.canSetCanonicalAlias)return;const t=this.state.canonicalAlias;this.setState({canonicalAlias:e,updatingCanonicalAlias:!0});const n={alt_aliases:this.state.altAliases};e&&(n.alias=e),de.a.get().sendStateEvent(this.props.roomId,"m.room.canonical_alias",n,"").catch(e=>{console.error(e),Ge.a.createTrackedDialog("Error updating main address","",rt.a,{title:Object(c.a)("Error updating main address"),description:Object(c.a)("There was an error updating the room's main address. It may not be allowed by the server or a temporary failure occurred.")}),this.setState({canonicalAlias:t})}).finally(()=>{this.setState({updatingCanonicalAlias:!1})})}changeAltAliases(e){if(!this.props.canSetCanonicalAlias)return;this.setState({updatingCanonicalAlias:!0,altAliases:e});const t={};this.state.canonicalAlias&&(t.alias=this.state.canonicalAlias),e&&(t.alt_aliases=e),de.a.get().sendStateEvent(this.props.roomId,"m.room.canonical_alias",t,"").catch(e=>{console.error(e),Ge.a.createTrackedDialog("Error updating alternative addresses","",rt.a,{title:Object(c.a)("Error updating main address"),description:Object(c.a)("There was an error updating the room's alternative addresses. It may not be allowed by the server or a temporary failure occurred.")})}).finally(()=>{this.setState({updatingCanonicalAlias:!1})})}_getAliases(){return this.state.altAliases.concat(this._getLocalNonAltAliases())}_getLocalNonAltAliases(){const{altAliases:e}=this.state;return this.state.localAliases.filter(t=>!e.includes(t))}render(){const e=de.a.get().getDomain();let t=!1;const n=this.state.canonicalAlias||"",o=i.a.createElement(qe.a,{onChange:this.onCanonicalAliasChange,value:n,disabled:this.state.updatingCanonicalAlias||!this.props.canSetCanonicalAlias,element:"select",id:"canonicalAlias",label:Object(c.a)("Main address")},i.a.createElement("option",{value:"",key:"unset"},Object(c.a)("not specified")),this._getAliases().map((e,n)=>(e===this.state.canonicalAlias&&(t=!0),i.a.createElement("option",{value:e,key:n},e))),t||!this.state.canonicalAlias?"":i.a.createElement("option",{value:this.state.canonicalAlias,key:"arbitrary"},this.state.canonicalAlias));let r;if(this.state.localAliasesLoading){const e=d.getComponent("elements.Spinner");r=i.a.createElement(e,null)}else r=i.a.createElement(Xb,{id:"roomAliases",className:"mx_RoomSettings_localAliases",items:this.state.localAliases,newItem:this.state.newAlias,onNewItemChanged:this.onNewAliasChanged,canRemove:this.props.canSetAliases,canEdit:this.props.canSetAliases,onItemAdded:this.onLocalAliasAdded,onItemRemoved:this.onLocalAliasDeleted,noItemsLabel:Object(c.a)("This room has no local addresses"),placeholder:Object(c.a)("Local address"),domain:e});return i.a.createElement("div",{className:"mx_AliasSettings"},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},Object(c.a)("Published Addresses")),i.a.createElement("p",null,Object(c.a)("Published addresses can be used by anyone on any server to join your room. To publish an address, it needs to be set as a local address first.")),o,i.a.createElement(Yb,{roomId:this.props.roomId,canSetCanonicalAlias:this.props.canSetCanonicalAlias}),i.a.createElement("datalist",{id:"mx_AliasSettings_altRecommendations"},this._getLocalNonAltAliases().map(e=>i.a.createElement("option",{value:e,key:e})),";"),i.a.createElement(Xb,{id:"roomAltAliases",className:"mx_RoomSettings_altAliases",items:this.state.altAliases,newItem:this.state.newAltAlias,onNewItemChanged:this.onNewAltAliasChanged,canRemove:this.props.canSetCanonicalAlias,canEdit:this.props.canSetCanonicalAlias,onItemAdded:this.onAltAliasAdded,onItemRemoved:this.onAltAliasDeleted,suggestionsListId:"mx_AliasSettings_altRecommendations",itemsLabel:Object(c.a)("Other published addresses:"),noItemsLabel:Object(c.a)("No other published addresses yet, add one below"),placeholder:Object(c.a)("New published address (e.g. #alias:server)")}),i.a.createElement("span",{className:"mx_SettingsTab_subheading mx_AliasSettings_localAliasHeader"},Object(c.a)("Local Addresses")),i.a.createElement("p",null,Object(c.a)("Set addresses for this room so users can find this room through your homeserver (%(localDomain)s)",{localDomain:e})),i.a.createElement("details",{onToggle:this.onLocalAliasesToggled},i.a.createElement("summary",null,this.state.detailsOpen?Object(c.a)("Show less"):Object(c.a)("Show more")),r))}},R()(Qb,"propTypes",{roomId:He.a.string.isRequired,canSetCanonicalAlias:He.a.bool.isRequired,canSetAliases:He.a.bool.isRequired,canonicalAliasEvent:He.a.object}),R()(Qb,"defaultProps",{canSetAliases:!1,canSetCanonicalAlias:!1,aliasEvents:[]}),$b=Jb))||$b;var ev,tv,nv;const ov=/\+\S+:\S+/;let rv=Object(N.a)("views.room_settings.RelatedGroupSettings")((nv=tv=class extends i.a.Component{constructor(e){super(e),R()(this,"onNewGroupChanged",e=>{this.setState({newGroupId:e})}),R()(this,"onGroupAdded",e=>{if(0===e.length||!this.validateGroupId(e))return;const t=[...this.state.newGroupsList,e];this.setState({newGroupsList:t,newGroupId:""}),this.updateGroups(t)}),R()(this,"onGroupDeleted",e=>{const t=this.state.newGroupsList[e],n=this.state.newGroupsList.filter(e=>e!==t);this.setState({newGroupsList:n}),this.updateGroups(n)}),this.state={newGroupId:"",newGroupsList:e.relatedGroupsEvent&&e.relatedGroupsEvent.getContent().groups||[]}}updateGroups(e){this.context.sendStateEvent(this.props.roomId,"m.room.related_groups",{groups:e},"").catch(e=>{console.error(e),Ge.a.createTrackedDialog("Error updating flair","",rt.a,{title:Object(c.a)("Error updating flair"),description:Object(c.a)("There was an error updating the flair for this room. The server may not allow it or a temporary error occurred.")})})}validateGroupId(e){if(!ov.test(e)){const t=d.getComponent("dialogs.ErrorDialog");return Ge.a.createTrackedDialog("Invalid related community ID","",t,{title:Object(c.a)("Invalid community ID"),description:Object(c.a)("'%(groupId)s' is not a valid community ID",{groupId:e})}),!1}return!0}render(){const e=this.context.getDomain(),t=d.getComponent("elements.EditableItemList");return i.a.createElement("div",null,i.a.createElement(t,{id:"relatedGroups",items:this.state.newGroupsList,className:"mx_RelatedGroupSettings",newItem:this.state.newGroupId,canRemove:this.props.canSetRelatedGroups,canEdit:this.props.canSetRelatedGroups,onNewItemChanged:this.onNewGroupChanged,onItemAdded:this.onGroupAdded,onItemRemoved:this.onGroupDeleted,itemsLabel:Object(c.a)("Showing flair for these communities:"),noItemsLabel:Object(c.a)("This room is not showing flair for any communities"),placeholder:Object(c.a)("New community ID (e.g. +foo:%(localDomain)s)",{localDomain:e})}))}},R()(tv,"propTypes",{roomId:He.a.string.isRequired,canSetRelatedGroups:He.a.bool.isRequired,relatedGroupsEvent:He.a.instanceOf(du.b)}),R()(tv,"contextType",b.a),R()(tv,"defaultProps",{canSetRelatedGroups:!1}),ev=nv))||ev;var iv,av,sv;let cv=Object(N.a)("views.room_settings.UrlPreviewSettings")((sv=av=class extends i.a.Component{constructor(...e){super(...e),R()(this,"_onClickUserSettings",e=>{e.preventDefault(),e.stopPropagation(),u.a.fire(h.a.ViewUserSettings)})}render(){const e=d.getComponent("elements.SettingsFlag"),t=this.props.room.roomId,n=de.a.get().isRoomEncrypted(t);let o=null,r=null;if(n)o=Object(c.a)("In encrypted rooms, like this one, URL previews are disabled by default to ensure that your homeserver (where the previews are generated) cannot gather information about links you see in this room.");else{if(o=G.b.getValueAt(tt.a.ACCOUNT,"urlPreviewsEnabled")?Object(c.a)("You have <a>enabled</a> URL previews by default.",{},{a:e=>i.a.createElement("a",{onClick:this._onClickUserSettings,href:""},e)}):Object(c.a)("You have <a>disabled</a> URL previews by default.",{},{a:e=>i.a.createElement("a",{onClick:this._onClickUserSettings,href:""},e)}),G.b.canSetValue("urlPreviewsEnabled",t,"room"))r=i.a.createElement("label",null,i.a.createElement(e,{name:"urlPreviewsEnabled",level:tt.a.ROOM,roomId:t,isExplicit:!0}));else{let e=Object(c.b)("URL previews are enabled by default for participants in this room.");G.b.getValueAt(tt.a.ROOM,"urlPreviewsEnabled",t,!0)||(e=Object(c.b)("URL previews are disabled by default for participants in this room.")),r=i.a.createElement("label",null,Object(c.a)(e))}}const a=i.a.createElement(e,{name:n?"urlPreviewsEnabled_e2ee":"urlPreviewsEnabled",level:tt.a.ROOM_ACCOUNT,roomId:t});return i.a.createElement("div",null,i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("When someone puts a URL in their message, a URL preview can be shown to give more information about that link such as the title, description, and an image from the website.")),i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},o),r,i.a.createElement("label",null,a))}},R()(av,"propTypes",{room:He.a.object}),iv=sv))||iv;var lv=n(748);function dv(e,t){const n=Math.min(e.length,t.length);for(let o=0;o<n;++o)if(e[o]!==t[o])return o;return n}function uv(e,t,n){const o=n-(t.length-e.length);return function(e,t){const n=Math.min(e.length,t.length),o=e.substr(0,n)===t.substr(0,n);if(o&&e.length>t.length)return{removed:e.substr(n),at:n};if(o&&e.length<t.length)return{added:t.substr(n),at:n};{const n=dv(e,t);return{removed:e.substr(n),added:t.substr(n),at:n}}}(e.substr(0,o),t.substr(0,n))}class hv{constructor(e,t){this.index=e,this.offset=t}compare(e){return this.index===e.index?this.offset-e.offset:this.index-e.index}iteratePartsBetween(e,t,n){if(-1===this.index||-1===e.index)return;const[o,r]=this.compare(e)<0?[this,e]:[e,this];if(o.index===r.index)n(t.parts[this.index],o.offset,r.offset);else{const e=t.parts[o.index];n(e,o.offset,e.text.length);for(let e=o.index+1;e<r.index;++e){const o=t.parts[e];n(o,0,o.text.length)}n(t.parts[r.index],0,r.offset)}}forwardsWhile(e,t){if(-1===this.index)return this;let{index:n,offset:o}=this;const{parts:r}=e;for(;n<r.length;){const e=r[n];for(;o<e.text.length;){if(!t(n,o,e))return new hv(n,o);o+=1}if(n===r.length-1)return new hv(n,o);n+=1,o=0}}backwardsWhile(e,t){if(-1===this.index)return this;let{index:n,offset:o}=this;const r=e.parts;for(;n>=0;){const e=r[n];for(;o>0;){if(!t(n,o-1,e))return new hv(n,o);o-=1}if(0===n)return new hv(n,o);n-=1,o=r[n].text.length}}asOffset(e){if(-1===this.index)return new fc(0,!0);let t=0;for(let n=0;n<this.index;++n)t+=e.parts[n].text.length;t+=this.offset;const n=e.parts[this.index],o=!n||t>=n.text.length;return new fc(t,o)}isAtEnd(e){if(0===e.parts.length)return!0;const t=e.parts.length-1,n=e.parts[t];return this.index===t&&this.offset===n.text.length}isAtStart(){return 0===this.index&&0===this.offset}}class pv{constructor(e,t,n=null){this.updateCallback=n,R()(this,"_parts",void 0),R()(this,"_partCreator",void 0),R()(this,"activePartIdx",null),R()(this,"_autoComplete",null),R()(this,"autoCompletePartIdx",null),R()(this,"autoCompletePartCount",0),R()(this,"transformCallback",null),R()(this,"onAutoComplete",({replaceParts:e,close:t})=>{let n;if(e){this._parts.splice(this.autoCompletePartIdx,this.autoCompletePartCount,...e),this.autoCompletePartCount=e.length;const t=e[e.length-1],o=this.autoCompletePartIdx+e.length-1;n=new hv(o,t.text.length)}t&&(this._autoComplete=null,this.autoCompletePartIdx=null,this.autoCompletePartCount=0),this.updateCallback(n)}),this._parts=e,this._partCreator=t,this.transformCallback=null}setTransformCallback(e){this.transformCallback=e}setUpdateCallback(e){this.updateCallback=e}get partCreator(){return this._partCreator}get isEmpty(){return 0===this._parts.reduce((e,t)=>e+t.text.length,0)}clone(){return new pv(this._parts,this._partCreator,this.updateCallback)}insertPart(e,t){this._parts.splice(e,0,t),this.activePartIdx>=e&&++this.activePartIdx,this.autoCompletePartIdx>=e&&++this.autoCompletePartIdx}removePart(e){this._parts.splice(e,1),e===this.activePartIdx?this.activePartIdx=null:this.activePartIdx>e&&--this.activePartIdx,e===this.autoCompletePartIdx?this.autoCompletePartIdx=null:this.autoCompletePartIdx>e&&--this.autoCompletePartIdx}replacePart(e,t){this._parts.splice(e,1,t)}get parts(){return this._parts}get autoComplete(){return this.activePartIdx===this.autoCompletePartIdx?this._autoComplete:null}getPositionAtEnd(){if(this._parts.length){const e=this._parts.length-1,t=this._parts[e];return new hv(e,t.text.length)}return new hv(-1,0)}serializeParts(){return this._parts.map(e=>e.serialize())}diff(e,t,n){const o=this.parts.reduce((e,t)=>e+t.text,"");return"deleteByDrag"===t?function(e,t){if(e===t)return{};const n=dv(e,t),o=e.length-t.length;return{at:n,removed:e.substr(n,o)}}(o,e):uv(o,e,n.offset)}reset(e,t,n){this._parts=e.map(e=>this._partCreator.deserializePart(e)),t||(t=this.getPositionAtEnd()),this._autoComplete&&(this._autoComplete=null,this.autoCompletePartIdx=null),this.updateCallback(t,n)}insert(e,t){const n=this.splitAt(t);let o=0;for(let t=0;t<e.length;++t){const r=e[t];o+=r.text.length,this.insertPart(n+t,r)}return o}update(e,t,n){const o=this.diff(e,t,n),r=this.positionForOffset(o.at,n.atNodeEnd);let i=0;o.removed&&(i=this.removeText(r,o.removed.length));let a=0;o.added&&(a=this.addText(r,o.added,t)),this.mergeAdjacentParts();const s=o.at-i+a;let c=this.positionForOffset(s,!0);const l="insertFromPaste"!==t&&"insertFromDrop"!==t,d=this.setActivePart(c,l);if(this.transformCallback){const e=this.getTransformAddedLen(c,t,o);c=this.positionForOffset(s+e,!0)}return this.updateCallback(c,t,o),d}getTransformAddedLen(e,t,n){const o=this.transformCallback(e,t,n);return Number.isFinite(o)?o:0}setActivePart(e,t){const{index:n}=e,o=this._parts[n];if(o){if(n!==this.activePartIdx&&(this.activePartIdx=n,t&&this.activePartIdx!==this.autoCompletePartIdx)){const e=o.createAutoComplete(this.onAutoComplete);e&&(this._autoComplete=e,this.autoCompletePartIdx=n,this.autoCompletePartCount=1)}if(this.autoComplete)return this.autoComplete.onPartUpdate(o,e)}else this.activePartIdx=null,this._autoComplete=null,this.autoCompletePartIdx=null,this.autoCompletePartCount=0;return Promise.resolve()}mergeAdjacentParts(){let e;for(let t=0;t<this._parts.length;++t){let n=this._parts[t];const o=!n.text.length,r=!o&&e&&e.merge(n);(o||r)&&(n=e,this.removePart(t),--t),e=n}}removeText(e,t){let{index:n,offset:o}=e,r=0;for(;t>0;){let e=this._parts[n];const i=Math.min(t,e.text.length-o);if(i)if(e.canEdit){const t=e.remove(o,i);"string"==typeof t&&this.replacePart(n,this._partCreator.createDefaultPart(t)),e=this._parts[n],e.text.length?n+=1:this.removePart(n)}else r+=o,this.removePart(n);else n+=1;t-=i,o=0}return r}splitAt(e){if(-1===e.index)return 0;if(0===e.offset)return e.index;const t=this._parts[e.index];if(e.offset>=t.text.length)return e.index+1;const n=t.split(e.offset);return this.insertPart(e.index+1,n),e.index+1}addText(e,t,n){let{index:o}=e;const{offset:r}=e;let i=t.length;const a=this._parts[o];if(a)if(a.canEdit)if(a.validateAndInsert(r,t,n))t=null;else{const e=a.split(r);o+=1,this.insertPart(o,e)}else 0!==r&&(i+=a.text.length-r,o+=1);else o<0&&(o=0);for(;t;){const e=this._partCreator.createPartForInput(t,o,n);t=e.appendUntilRejected(t,n),this.insertPart(o,e),o+=1}return i}positionForOffset(e,t){let n=0;const o=this._parts.findIndex(o=>{const r=o.text.length;return!!(t&&n+r>=e||!t&&n+r>e)||(n+=r,!1)});return-1===o?this.getPositionAtEnd():new hv(o,e-n)}startRange(e,t=e){return new ac(this,e,t)}replaceRange(e,t,n){const o=t.asOffset(this),r=this.splitAt(e);t=o.asPosition(this);for(let e=this.splitAt(t)-1;e>=r;--e)this.removePart(e);let i=r;for(const e of n)this.insertPart(i,e),i+=1;this.mergeAdjacentParts()}transform(e){const t=e();let n=null;return n=t instanceof ac?Promise.resolve():this.setActivePart(t,!0),this.updateCallback(t),n}}var mv=n(405),gv=n(556),fv=n.n(gv);function _v(e,{forceHTML:t=!1}={}){let n=function(e){return e.parts.reduce((e,t)=>{switch(t.type){case"newline":return e+"\n";case"plain":case"command":case"pill-candidate":case"at-room-pill":return e+t.text;case"room-pill":return e+`[${t.resourceId.replace(/[[\\\]]/g,e=>"\\"+e)}](${Object(hs.e)(t.resourceId)})`;case"user-pill":return e+`[${t.text.replace(/[[\\\]]/g,e=>"\\"+e)}](${Object(hs.e)(t.resourceId)})`}},"")}(e);const o=n;if(G.b.getValue("feature_latex_maths")){const e=["display","inline"],t={tex:{display:"(^|[^\\\\$])\\$\\$(([^$]|\\\\\\$)+?)\\$\\$",inline:"(^|\\s|[.,!?:;])(?!\\\\)\\$(?!\\s)(([^$\\n]|\\\\\\$)*([^\\\\\\s\\$]|\\\\\\$)(?:\\\\\\$)?)\\$"},latex:{display:"(^|[^\\\\])\\\\\\[(?!\\\\\\])(.*?)\\\\\\]",inline:"(^|[^\\\\])\\\\\\((?!\\\\\\))(.*?)\\\\\\)"}};["tex","latex"].forEach((function(o){e.forEach((function(e){const r=(((l.a.get().latex_maths_delims||{})[e]||{}).pattern||{})[o]||t[o][e];n=n.replace(RegExp(r,"gms"),(function(t,n,o){const r=mv.AllHtmlEntities.encode(o);switch(e){case"display":return`${n}<div data-mx-maths="${r}">\n\n</div>\n\n`;case"inline":return`${n}<span data-mx-maths="${r}"></span>`}}))}))})),n=n.replace(/(.)<div/g,(function(e,t){return t+"\n<div"}))}const r=new Yp(n);if(!r.isPlainText()||t){const e=fv.a.load(r.toHTML(),{_useHtmlParser2:!0,decodeEntities:!1});if(G.b.getValue("feature_latex_maths")){const t=new Yp(o),n=fv.a.load(t.toHTML(),{_useHtmlParser2:!0,decodeEntities:!1});n("code").each((function(t){e("code").eq(t).text(n("code").eq(t).text())})),e("div, span").each((function(t,n){const o=e(n).attr("data-mx-maths");o&&e(n).html(`<code>${o}</code>`)}))}return e.html()}if(n.indexOf("\\")>-1)return r.toPlaintext()}function bv(e){return e.parts.reduce((e,t)=>{switch(t.type){case"newline":return e+"\n";case"plain":case"command":case"pill-candidate":case"at-room-pill":return e+t.text;case"room-pill":return e+""+t.resourceId;case"user-pill":return e+""+t.text}},"")}function vv(e){return yv(e,"/me ",!1)}function yv(e,t,n=!0){const o=e.parts[0];let r=o&&o.text;return n||(t=t.toLowerCase(),r=r.toLowerCase()),o&&("plain"===o.type||"command"===o.type)&&r.startsWith(t)}function Ev(e){return Sv(e,"/me ")}function Sv(e,t){return(e=e.clone()).removeText({index:0,offset:0},t.length),e}var wv,Cv,Tv,xv=n(713);function Ov(e,t){const n=vv(e);n&&(e=Ev(e));const o=function(e){const t=e.getContent()["m.relates_to"];return!(!t||!t["m.in_reply_to"])}(t);let r="",i="";o&&(r=function(e){const t=e.getContent().body.split("\n").map(e=>e.trim());return t.length>2&&t[0].startsWith("> ")&&0===t[1].length?t[0]+"\n\n":""}(t),i=function(e){const t=e.getContent().formatted_body;if(!t)return"";const n=(new DOMParser).parseFromString(t,"text/html").body.querySelector("mx-reply");return n&&n.outerHTML||""}(t));const a=bv(e),s={msgtype:n?"m.emote":"m.text",body:a},c={msgtype:s.msgtype,body:`${r} * ${a}`},l=_v(e,{forceHTML:o});return l&&(s.format="org.matrix.custom.html",s.formatted_body=l,c.format=s.format,c.formatted_body=`${i} * ${l}`),Object.assign({"m.new_content":s,"m.relates_to":{rel_type:"m.replace",event_id:t.getId()}},c)}let kv=Object(N.a)("views.rooms.EditMessageComposer")((Tv=Cv=class extends i.a.Component{constructor(e,t){super(e,t),R()(this,"_setEditorRef",e=>{this._editorRef=e}),R()(this,"_onKeyDown",e=>{if(this._editorRef.isComposing(e))return;switch(Object(Pt.f)().getMessageComposerAction(e)){case Pt.b.Send:this._sendEdit(),e.preventDefault();break;case Pt.b.CancelEditing:this._cancelEdit();break;case Pt.b.EditPrevMessage:{if(this._editorRef.isModified()||!this._editorRef.isCaretAtStart())return;const t=Object(wu.b)(this._getRoom(),!1,this.props.editState.getEvent().getId());t&&(u.a.dispatch({action:"edit_event",event:t}),e.preventDefault());break}case Pt.b.EditNextMessage:{if(this._editorRef.isModified()||!this._editorRef.isCaretAtEnd())return;const t=Object(wu.b)(this._getRoom(),!0,this.props.editState.getEvent().getId());t?u.a.dispatch({action:"edit_event",event:t}):(u.a.dispatch({action:"edit_event",event:null}),u.a.fire(h.a.FocusComposer)),e.preventDefault();break}}}),R()(this,"_cancelEdit",()=>{u.a.dispatch({action:"edit_event",event:null}),u.a.fire(h.a.FocusComposer)}),R()(this,"_sendEdit",()=>{const e=E.a.getTimestamp(),t=this.props.editState.getEvent(),n=Ov(this.model,t),o=n["m.new_content"];if(this._isContentModified(o)){const o=t.getRoomId();this._cancelPreviousPendingEdit();const r=this.context.sendMessage(o,n);u.a.dispatch({action:"message_sent"}),E.a.instance.trackSendMessage(e,r,o,!0,!1,n)}u.a.dispatch({action:"edit_event",event:null}),u.a.fire(h.a.FocusComposer)}),R()(this,"_onChange",()=>{this.state.saveDisabled&&this._editorRef&&this._editorRef.isModified()&&this.setState({saveDisabled:!1})}),this.model=null,this._editorRef=null,this.state={saveDisabled:!0},this._createEditorModel()}_getRoom(){return this.context.getRoom(this.props.editState.getEvent().getRoomId())}_isContentModified(e){const t=this.props.editState.getEvent().getContent();return!(!this._editorRef.isModified()||t.msgtype===e.msgtype&&t.body===e.body&&t.format===e.format&&t.formatted_body===e.formatted_body)}_cancelPreviousPendingEdit(){const e=this.props.editState.getEvent().replacingEvent();!e||e.status!==du.a.QUEUED&&e.status!==du.a.NOT_SENT||this.context.cancelPendingEvent(e)}componentWillUnmount(){const e=document.getSelection();let t;e.focusNode&&(t=bc(this._editorRef,e).caret);const n=this.model.serializeParts();this.props.editState.setEditorState(t,n)}_createEditorModel(){const{editState:e}=this.props,t=this._getRoom(),n=new Nc(t,this.context);let o;o=e.hasEditorState()?e.getSerializedParts().map(e=>n.deserializePart(e)):qc(e.getEvent(),n),this.model=new pv(o,n)}_getInitialCaretPosition(){const{editState:e}=this.props;let t;if(e.hasEditorState()&&e.getCaret()){const n=e.getCaret();t=this.model.positionForOffset(n.offset,n.atNodeEnd)}else t=this.model.getPositionAtEnd();return t}render(){const e=d.getComponent("elements.AccessibleButton");return i.a.createElement("div",{className:P()("mx_EditMessageComposer",this.props.className),onKeyDown:this._onKeyDown},i.a.createElement(el,{ref:this._setEditorRef,model:this.model,room:this._getRoom(),initialCaret:this.props.editState.getCaret(),label:Object(c.a)("Edit message"),onChange:this._onChange}),i.a.createElement("div",{className:"mx_EditMessageComposer_buttons"},i.a.createElement(e,{kind:"secondary",onClick:this._cancelEdit},Object(c.a)("Cancel")),i.a.createElement(e,{kind:"primary",onClick:this._sendEdit,disabled:this.state.saveDisabled},Object(c.a)("Save"))))}},R()(Cv,"propTypes",{editState:He.a.instanceOf(xv.a).isRequired}),R()(Cv,"contextType",b.a),wv=Tv))||wv;var Rv,Dv,Iv;const Av={offline:"mx_EntityTile_offline",online:"mx_EntityTile_online",unavailable:"mx_EntityTile_unavailable"};let Nv=Object(N.a)("views.rooms.EntityTile")((Iv=Dv=class e extends i.a.Component{constructor(...e){super(...e),R()(this,"state",{hover:!1})}shouldComponentUpdate(e,t){return this.state.hover!==t.hover||this.props.shouldComponentUpdate(e,t)}render(){const t={mx_EntityTile:!0,mx_EntityTile_noHover:this.props.suppressOnHover};this.props.className&&(t[this.props.className]=!0);var o,r;let a;t[(o=this.props.presenceState,r=this.props.presenceLastActiveAgo,!1===this.props.showPresence?"mx_EntityTile_online_beenactive":"offline"==o?r?Av.offline+"_beenactive":Av.offline+"_neveractive":o?Av[o]:Av.offline+"_neveractive")]=!0;const{name:s}=this.props;if(this.props.suppressOnHover)a=this.props.subtextLabel?i.a.createElement("div",{className:"mx_EntityTile_details"},i.a.createElement("div",{className:"mx_EntityTile_name",dir:"auto"},s),i.a.createElement("span",{className:"mx_EntityTile_subtext"},this.props.subtextLabel)):i.a.createElement("div",{className:"mx_EntityTile_name",dir:"auto"},s);else{const e=this.props.presenceLastActiveAgo?Date.now()-(this.props.presenceLastTs-this.props.presenceLastActiveAgo):-1,t=d.getComponent("rooms.PresenceLabel");let n=null;this.props.showPresence&&(n=i.a.createElement(t,{activeAgo:e,currentlyActive:this.props.presenceCurrentlyActive,presenceState:this.props.presenceState})),this.props.subtextLabel&&(n=i.a.createElement("span",{className:"mx_EntityTile_subtext"},this.props.subtextLabel)),a=i.a.createElement("div",{className:"mx_EntityTile_details"},i.a.createElement("div",{className:"mx_EntityTile_name",dir:"auto"},s),n)}let l,u;this.props.showInviteButton&&(l=i.a.createElement("div",{className:"mx_EntityTile_invite"},i.a.createElement("img",{src:n(1363),width:"16",height:"16"})));const h=this.props.powerStatus;if(h){const t={[e.POWER_STATUS_MODERATOR]:Object(c.a)("Mod"),[e.POWER_STATUS_ADMIN]:Object(c.a)("Admin")}[h];u=i.a.createElement("div",{className:"mx_EntityTile_power"},t)}let p;const{e2eStatus:m}=this.props;m&&(p=i.a.createElement(Zi.b,{status:m,isUser:!0,bordered:!0}));const f=d.getComponent("avatars.BaseAvatar"),_=this.props.avatarJsx||i.a.createElement(f,{name:this.props.name,width:36,height:36,"aria-hidden":"true"});return i.a.createElement("div",{ref:e=>this.container=e},i.a.createElement(g.a,{className:P()(t),title:this.props.title,onClick:this.props.onClick},i.a.createElement("div",{className:"mx_EntityTile_avatar"},_,p),a,u,l))}},R()(Dv,"propTypes",{name:He.a.string,title:He.a.string,avatarJsx:He.a.any,className:He.a.string,presenceState:He.a.string,presenceLastActiveAgo:He.a.number,presenceLastTs:He.a.number,presenceCurrentlyActive:He.a.bool,showInviteButton:He.a.bool,shouldComponentUpdate:He.a.func,onClick:He.a.func,suppressOnHover:He.a.bool,showPresence:He.a.bool,subtextLabel:He.a.string,e2eStatus:He.a.string}),R()(Dv,"defaultProps",{shouldComponentUpdate:function(e,t){return!0},onClick:function(){},presenceState:"offline",presenceLastActiveAgo:0,presenceLastTs:0,showInviteButton:!1,suppressOnHover:!1,showPresence:!0}),Rv=Iv))||Rv;Nv.POWER_STATUS_MODERATOR="moderator",Nv.POWER_STATUS_ADMIN="admin";var Fv,Mv,Pv,Lv=Nv,jv=n(716),Uv=e=>{const t=P()({mx_JumpToBottomButton:!0,mx_JumpToBottomButton_highlight:e.highlight});let n;return e.numUnreadMessages&&(n=React.createElement("div",{className:"mx_JumpToBottomButton_badge"},e.numUnreadMessages)),React.createElement("div",{className:t},React.createElement(g.a,{className:"mx_JumpToBottomButton_scrollDown",title:Object(c.a)("Scroll to most recent messages"),onClick:e.onScrollToBottomClick}),n)};let Bv=Object(N.a)("views.rooms.LinkPreviewWidget")((Pv=Mv=class extends i.a.Component{constructor(e){super(e),R()(this,"onImageClick",e=>{const t=this.state.preview;if(0!=e.button||e.metaKey)return;e.preventDefault();const n=d.getComponent("elements.ImageView");let o=t["og:image"];o&&o.startsWith("mxc://")&&(o=Object(ge.b)(o).srcHttp);const r={src:o,width:t["og:image:width"],height:t["og:image:height"],name:t["og:title"]||t["og:description"]||this.props.link,fileSize:t["matrix:image:size"],link:this.props.link};Ge.a.createDialog(n,r,"mx_Dialog_lightbox",null,!0)}),this.state={preview:null},this.unmounted=!1,de.a.get().getUrlPreview(this.props.link,this.props.mxEvent.getTs()).then(e=>{this.unmounted||this.setState({preview:e},this.props.onHeightChanged)},e=>{console.error("Failed to get URL preview: "+e)}),this._description=Object(r.createRef)()}componentDidMount(){this._description.current&&Object(is.f)(this._description.current)}componentDidUpdate(){this._description.current&&Object(is.f)(this._description.current)}componentWillUnmount(){this.unmounted=!0}render(){const e=this.state.preview;if(!e||0===Object.keys(e).length)return i.a.createElement("div",null);let t=e["og:image"];G.b.getValue("showImages")||(t=null);t&&t.startsWith("mxc://")&&(t=Object(ge.b)(t).getThumbnailOfSourceHttp(100,100,"scale"));let o,r=100;e["og:image:width"]&&e["og:image:height"]&&(r=function(e,t,n,o){if(!e||!t)return null;if(e<n&&t<o)return t;const r=n/e,i=o/t;return r<i?Math.floor(r*t):Math.floor(i*t)}(e["og:image:width"],e["og:image:height"],100,100)),t&&(o=i.a.createElement("div",{className:"mx_LinkPreviewWidget_image",style:{height:r}},i.a.createElement("img",{style:{maxWidth:100,maxHeight:100},src:t,onClick:this.onImageClick})));const a=mv.AllHtmlEntities.decode(e["og:description"]||""),s=d.getComponent("elements.AccessibleButton");return i.a.createElement("div",{className:"mx_LinkPreviewWidget"},o,i.a.createElement("div",{className:"mx_LinkPreviewWidget_caption"},i.a.createElement("div",{className:"mx_LinkPreviewWidget_title"},i.a.createElement("a",{href:this.props.link,target:"_blank",rel:"noreferrer noopener"},e["og:title"])),i.a.createElement("div",{className:"mx_LinkPreviewWidget_siteName"},e["og:site_name"]?" - "+e["og:site_name"]:null),i.a.createElement("div",{className:"mx_LinkPreviewWidget_description",ref:this._description},a)),i.a.createElement(s,{className:"mx_LinkPreviewWidget_cancel",onClick:this.props.onCancelClick,"aria-label":Object(c.a)("Close preview")},i.a.createElement("img",{className:"mx_filterFlipColor",alt:"",role:"presentation",src:n(262),width:"18",height:"18"})))}},R()(Mv,"propTypes",{link:He.a.string.isRequired,mxEvent:He.a.object.isRequired,onCancelClick:He.a.func,onHeightChanged:He.a.func}),Fv=Pv))||Fv;var qv,Gv=n(259);const Vv=/[\x21-\x2F\x3A-\x40\x5B-\x60\x7B-\x7E]+/g;let Hv=Object(N.a)("views.rooms.MemberList")(qv=class extends i.a.Component{constructor(e){super(e),R()(this,"onUserPresenceChange",(e,t)=>{this.refs[t.userId]&&this._updateList()}),R()(this,"onRoom",e=>{e.roomId===this.props.roomId&&this._showMembersAccordingToMembershipWithLL()}),R()(this,"onMyMembership",(e,t,n)=>{e.roomId===this.props.roomId&&"join"===t&&this._showMembersAccordingToMembershipWithLL()}),R()(this,"onRoomStateMember",(e,t,n)=>{n.roomId===this.props.roomId&&this._updateList()}),R()(this,"onRoomMemberName",(e,t)=>{t.roomId===this.props.roomId&&this._updateList()}),R()(this,"onRoomStateEvent",(e,t)=>{e.getRoomId()===this.props.roomId&&"m.room.third_party_invite"===e.getType()&&this._updateList()}),R()(this,"_updateList",Object(Gv.a)(()=>{this._updateListNow()},500)),R()(this,"_createOverflowTileJoined",(e,t)=>this._createOverflowTile(e,t,this._showMoreJoinedMemberList)),R()(this,"_createOverflowTileInvited",(e,t)=>this._createOverflowTile(e,t,this._showMoreInvitedMemberList)),R()(this,"_createOverflowTile",(e,t,o)=>{const r=d.getComponent("rooms.EntityTile"),a=d.getComponent("avatars.BaseAvatar"),s=Object(c.a)("and %(count)s others...",{count:e});return i.a.createElement(r,{className:"mx_EntityTile_ellipsis",avatarJsx:i.a.createElement(a,{url:n(487),name:"...",width:36,height:36}),name:s,presenceState:"online",suppressOnHover:!0,onClick:o})}),R()(this,"_showMoreJoinedMemberList",()=>{this.setState({truncateAtJoined:this.state.truncateAtJoined+100})}),R()(this,"_showMoreInvitedMemberList",()=>{this.setState({truncateAtInvited:this.state.truncateAtInvited+100})}),R()(this,"memberSort",(e,t)=>{const n=e.user,o=t.user;if(!n&&!o)return 0;if(n&&!o)return-1;if(!n&&o)return 1;if(this._showPresence){const e=e=>"unavailable"===e?"online":e,t=t=>{const n=["active","online","offline"],o=n.indexOf(e(t));return-1===o?n.length:o},r=t(n.currentlyActive?"active":n.presence),i=t(o.currentlyActive?"active":o.presence);if(r!==i)return r-i}if(e.powerLevel!==t.powerLevel)return t.powerLevel-e.powerLevel;if(this._showPresence&&n.getLastActiveTs()!==o.getLastActiveTs())return o.getLastActiveTs()-n.getLastActiveTs();const r=("@"===e.name[0]?e.name.substr(1):e.name).replace(Vv,""),i=("@"===t.name[0]?t.name.substr(1):t.name).replace(Vv,"");return r.localeCompare(i,{ignorePunctuation:!0,sensitivity:"base"})}),R()(this,"onSearchQueryChanged",e=>{this.setState({searchQuery:e,filteredJoinedMembers:this._filterMembers(this.state.members,"join",e),filteredInvitedMembers:this._filterMembers(this.state.members,"invite",e)})}),R()(this,"_onPending3pidInviteClick",e=>{u.a.dispatch({action:"view_3pid_invite",event:e})}),R()(this,"_getChildrenJoined",(e,t)=>this._makeMemberTiles(this.state.filteredJoinedMembers.slice(e,t))),R()(this,"_getChildCountJoined",()=>this.state.filteredJoinedMembers.length),R()(this,"_getChildrenInvited",(e,t)=>{let n=this.state.filteredInvitedMembers;return t>this.state.filteredInvitedMembers.length&&(n=n.concat(this._getPending3PidInvites())),this._makeMemberTiles(n.slice(e,t))}),R()(this,"_getChildCountInvited",()=>this.state.filteredInvitedMembers.length+(this._getPending3PidInvites()||[]).length),R()(this,"onInviteButtonClick",()=>{de.a.get().isGuest()?u.a.dispatch({action:"require_registration"}):u.a.dispatch({action:"view_invite",roomId:this.props.roomId})});const t=de.a.get();t.hasLazyLoadMembersEnabled()?this.state=this._getMembersState([]):this.state=this._getMembersState(this.roomMembers()),t.on("Room",this.onRoom);const o=l.a.get().enable_presence_by_hs_url,r=de.a.get().baseUrl;this._showPresence=!0,o&&void 0!==o[r]&&(this._showPresence=o[r])}UNSAFE_componentWillMount(){const e=de.a.get();this._mounted=!0,e.hasLazyLoadMembersEnabled()?(this._showMembersAccordingToMembershipWithLL(),e.on("Room.myMembership",this.onMyMembership)):this._listenForMembersChanges()}_listenForMembersChanges(){const e=de.a.get();e.on("RoomState.members",this.onRoomStateMember),e.on("RoomMember.name",this.onRoomMemberName),e.on("RoomState.events",this.onRoomStateEvent),e.on("User.lastPresenceTs",this.onUserPresenceChange),e.on("User.presence",this.onUserPresenceChange),e.on("User.currentlyActive",this.onUserPresenceChange)}componentWillUnmount(){this._mounted=!1;const e=de.a.get();e&&(e.removeListener("RoomState.members",this.onRoomStateMember),e.removeListener("RoomMember.name",this.onRoomMemberName),e.removeListener("Room.myMembership",this.onMyMembership),e.removeListener("RoomState.events",this.onRoomStateEvent),e.removeListener("Room",this.onRoom),e.removeListener("User.lastPresenceTs",this.onUserPresenceChange),e.removeListener("User.presence",this.onUserPresenceChange),e.removeListener("User.currentlyActive",this.onUserPresenceChange)),this._updateList.cancelPendingCall()}async _showMembersAccordingToMembershipWithLL(){if(de.a.get().hasLazyLoadMembersEnabled()){const e=de.a.get().getRoom(this.props.roomId);if("join"===(e&&e.getMyMembership())){this.setState({loading:!0});try{await e.loadMembersIfNeeded()}catch(e){}this._mounted&&(this.setState(this._getMembersState(this.roomMembers())),this._listenForMembersChanges())}else this.setState(this._getMembersState(this.roomMembers()))}}_getMembersState(e){return{loading:!1,members:e,filteredJoinedMembers:this._filterMembers(e,"join"),filteredInvitedMembers:this._filterMembers(e,"invite"),truncateAtJoined:30,truncateAtInvited:5,searchQuery:""}}_updateListNow(){const e={loading:!1,members:this.roomMembers()};e.filteredJoinedMembers=this._filterMembers(e.members,"join",this.state.searchQuery),e.filteredInvitedMembers=this._filterMembers(e.members,"invite",this.state.searchQuery),this.setState(e)}getMembersWithUser(){if(!this.props.roomId)return[];const e=de.a.get(),t=e.getRoom(this.props.roomId);if(!t)return[];const n=Object.values(t.currentState.members);return n.forEach((function(t){null===t.user&&(t.user=e.getUser(t.userId))})),n}roomMembers(){const e=this.getMembersWithUser().filter(e=>"join"===e.membership||"invite"===e.membership);return e.sort(this.memberSort),e}memberString(e){if(e){const t=e.user;return"("+e.name+", "+e.powerLevel+", "+(t?t.lastActiveAgo:"<null>")+", "+(t?t.getLastActiveTs():"<null>")+", "+(t?t.currentlyActive:"<null>")+", "+(t?t.presence:"<null>")+")"}return"(null)"}_filterMembers(e,t,n){return e.filter(e=>{if(n){n=n.toLowerCase();const t=-1!==e.name.toLowerCase().indexOf(n),o=-1!==e.userId.toLowerCase().indexOf(n);if(!t&&!o)return!1}return e.membership===t})}_getPending3PidInvites(){const e=de.a.get().getRoom(this.props.roomId);if(e)return e.currentState.getStateEvents("m.room.third_party_invite").filter((function(t){if(!Object(nt.c)(t))return!1;return!e.currentState.getInviteForThreePidToken(t.getStateKey())}))}_makeMemberTiles(e){const t=d.getComponent("rooms.MemberTile"),n=d.getComponent("rooms.EntityTile");return e.map(e=>e.userId?i.a.createElement(t,{key:e.userId,member:e,ref:e.userId,showPresence:this._showPresence}):i.a.createElement(n,{key:e.getStateKey(),name:e.getContent().display_name,suppressOnHover:!0,onClick:()=>this._onPending3pidInviteClick(e)}))}render(){if(this.state.loading){const e=d.getComponent("elements.Spinner");return i.a.createElement(Gi.b,{className:"mx_MemberList",onClose:this.props.onClose,previousPhase:ot.c.RoomSummary},i.a.createElement(e,null))}const e=d.getComponent("structures.SearchBox"),t=d.getComponent("elements.TruncatedList"),n=de.a.get(),o=n.getRoom(this.props.roomId);let r,a,s;if(o&&"join"===o.getMyMembership()){const e=o.canInvite(n.getUserId());let t=Object(c.a)("Invite to this room");const a=xe.a.instance.getSelectedCommunityGeneralChat();a&&a.roomId===this.props.roomId?t=Object(c.a)("Invite to this community"):o.isSpaceRoom()&&(t=Object(c.a)("Invite to this space"));const s=d.getComponent("elements.AccessibleButton");r=i.a.createElement(s,{className:"mx_MemberList_invite",onClick:this.onInviteButtonClick,disabled:!e},i.a.createElement("span",null,t))}this._getChildCountInvited()>0&&(a=i.a.createElement("h2",null,Object(c.a)("Invited")),s=i.a.createElement(t,{className:"mx_MemberList_section mx_MemberList_invited",truncateAt:this.state.truncateAtInvited,createOverflowElement:this._createOverflowTileInvited,getChildren:this._getChildrenInvited,getChildCount:this._getChildCountInvited}));const l=i.a.createElement(e,{className:"mx_MemberList_query mx_textinput_icon mx_textinput_search",placeholder:Object(c.a)("Filter room members"),onSearch:this.onSearchQueryChanged});let u,h=ot.c.RoomSummary;return null!=o&&o.isSpaceRoom()&&(h=void 0,u=i.a.createElement("div",{className:"mx_RightPanel_scopeHeader"},i.a.createElement(De.a,{room:o,height:32,width:32}),i.a.createElement(dt.a,{room:o}))),i.a.createElement(Gi.b,{className:"mx_MemberList",header:i.a.createElement(i.a.Fragment,null,u,r),footer:l,onClose:this.props.onClose,previousPhase:h},i.a.createElement("div",{className:"mx_MemberList_wrapper"},i.a.createElement(t,{className:"mx_MemberList_section mx_MemberList_joined",truncateAt:this.state.truncateAtJoined,createOverflowElement:this._createOverflowTileJoined,getChildren:this._getChildrenJoined,getChildCount:this._getChildCountJoined}),a,s))}})||qv;var zv,Kv,Wv;let Yv=Object(N.a)("views.rooms.MemberTile")((Wv=Kv=class extends i.a.Component{constructor(e){super(e),R()(this,"onRoomStateEvents",e=>{if("m.room.encryption"!==e.getType())return;const{roomId:t}=this.props.member;if(e.getRoomId()!==t)return;de.a.get().removeListener("RoomState.events",this.onRoomStateEvents),this.setState({isRoomEncrypted:!0}),this.updateE2EStatus()}),R()(this,"onUserTrustStatusChanged",(e,t)=>{e===this.props.member.userId&&this.updateE2EStatus()}),R()(this,"onDeviceVerificationChanged",(e,t,n)=>{e===this.props.member.userId&&this.updateE2EStatus()}),R()(this,"_onStatusMessageCommitted",()=>{this.setState({statusMessage:this.getStatusMessage()})}),R()(this,"onClick",e=>{u.a.dispatch({action:h.a.ViewUser,member:this.props.member})}),this.state={statusMessage:this.getStatusMessage(),isRoomEncrypted:!1,e2eStatus:null}}componentDidMount(){const e=de.a.get();if(G.b.getValue("feature_custom_status")){const{user:e}=this.props.member;e&&e.on("User._unstable_statusMessage",this._onStatusMessageCommitted)}const{roomId:t}=this.props.member;if(t){const n=e.isRoomEncrypted(t);this.setState({isRoomEncrypted:n}),n?(e.on("userTrustStatusChanged",this.onUserTrustStatusChanged),e.on("deviceVerificationChanged",this.onDeviceVerificationChanged),this.updateE2EStatus()):e.on("RoomState.events",this.onRoomStateEvents)}}componentWillUnmount(){const e=de.a.get(),{user:t}=this.props.member;t&&t.removeListener("User._unstable_statusMessage",this._onStatusMessageCommitted),e&&(e.removeListener("RoomState.events",this.onRoomStateEvents),e.removeListener("userTrustStatusChanged",this.onUserTrustStatusChanged),e.removeListener("deviceVerificationChanged",this.onDeviceVerificationChanged))}async updateE2EStatus(){const e=de.a.get(),{userId:t}=this.props.member,n=t===e.getUserId(),o=e.checkUserTrust(t);if(!o.isCrossSigningVerified())return void this.setState({e2eStatus:o.wasCrossSigningVerified()?"warning":"normal"});const r=e.getStoredDevicesForUser(t).some(o=>{const{deviceId:r}=o,i=e.checkDeviceTrust(t,r);return n?!i.isCrossSigningVerified():!i.isVerified()});this.setState({e2eStatus:r?"warning":"verified"})}getStatusMessage(){const{user:e}=this.props.member;return e?e._unstable_statusMessage:""}shouldComponentUpdate(e,t){return void 0===this.member_last_modified_time||this.member_last_modified_time<e.member.getLastModifiedTime()||(!(!e.member.user||!(void 0===this.user_last_modified_time||this.user_last_modified_time<e.member.user.getLastModifiedTime()))||(t.isRoomEncrypted!==this.state.isRoomEncrypted||t.e2eStatus!==this.state.e2eStatus))}_getDisplayName(){return this.props.member.name}getPowerLabel(){return Object(c.a)("%(userName)s (power %(powerLevelNumber)s)",{userName:this.props.member.userId,powerLevelNumber:this.props.member.powerLevel})}render(){const e=d.getComponent("avatars.MemberAvatar"),t=d.getComponent("rooms.EntityTile"),n=this.props.member,o=this._getDisplayName(),r=n.user?n.user.presence:null;let a=null;n.user&&G.b.getValue("feature_custom_status")&&(a=this.state.statusMessage);const s=i.a.createElement(e,{member:n,width:36,height:36,"aria-hidden":"true"});n.user&&(this.user_last_modified_time=n.user.getLastModifiedTime()),this.member_last_modified_time=n.getLastModifiedTime();const c=new Map([[100,t.POWER_STATUS_ADMIN],[50,t.POWER_STATUS_MODERATOR]]);let l=this.props.member.powerLevel;for(const[e]of c)if(this.props.member.powerLevel>=e){l=e;break}const u=c.get(l);let h;return this.state.isRoomEncrypted&&(h=this.state.e2eStatus),i.a.createElement(t,he()({},this.props,{presenceState:r,presenceLastActiveAgo:n.user?n.user.lastActiveAgo:0,presenceLastTs:n.user?n.user.lastPresenceTs:0,presenceCurrentlyActive:!!n.user&&n.user.currentlyActive,avatarJsx:s,title:this.getPowerLabel(),name:o,powerStatus:u,showPresence:this.props.showPresence,subtextLabel:a,e2eStatus:h,onClick:this.onClick}))}},R()(Kv,"propTypes",{member:He.a.any.isRequired,showPresence:He.a.bool}),R()(Kv,"defaultProps",{showPresence:!0}),zv=Wv))||zv;var $v,Qv,Jv,Xv=n(167),Zv=n(250);let ey=Object(N.a)("views.rooms.Stickerpicker")((Jv=Qv=class e extends i.a.Component{constructor(e){super(e),this._onShowStickersClick=this._onShowStickersClick.bind(this),this._onHideStickersClick=this._onHideStickersClick.bind(this),this._launchManageIntegrations=this._launchManageIntegrations.bind(this),this._removeStickerpickerWidgets=this._removeStickerpickerWidgets.bind(this),this._updateWidget=this._updateWidget.bind(this),this._onWidgetAction=this._onWidgetAction.bind(this),this._onResize=this._onResize.bind(this),this._onFinished=this._onFinished.bind(this),this.popoverWidth=300,this.popoverHeight=300,this.scalarClient=null,this.state={showStickers:!1,imError:null,stickerpickerX:null,stickerpickerY:null,stickerpickerWidget:null,widgetId:null}}_acquireScalarClient(){return this.scalarClient?Promise.resolve(this.scalarClient):Xv.a.sharedInstance().hasManager()?(this.scalarClient=Xv.a.sharedInstance().getPrimaryManager().getScalarClient(),this.scalarClient.connect().then(()=>(this.forceUpdate(),this.scalarClient)).catch(e=>{this._imError(Object(c.b)("Failed to connect to integration manager"),e)})):void Xv.a.sharedInstance().openNoManagerDialog()}async _removeStickerpickerWidgets(){const e=await this._acquireScalarClient();console.log("Removing Stickerpicker widgets"),this.state.widgetId?e?e.disableWidgetAssets(ps.a.STICKERPICKER,this.state.widgetId).then(()=>{console.log("Assets disabled")}).catch(e=>{console.error("Failed to disable assets")}):console.error("Cannot disable assets: no scalar client"):console.warn("No widget ID specified, not disabling assets"),this.setState({showStickers:!1}),Dt.a.removeStickerpickerWidgets().then(()=>{this.forceUpdate()}).catch(e=>{console.error("Failed to remove sticker picker widget",e)})}componentDidMount(){window.addEventListener("resize",this._onResize),this.dispatcherRef=u.a.register(this._onWidgetAction),de.a.get().on("accountData",this._updateWidget),this._updateWidget()}componentWillUnmount(){const e=de.a.get();e&&e.removeListener("accountData",this._updateWidget),window.removeEventListener("resize",this._onResize),this.dispatcherRef&&u.a.unregister(this.dispatcherRef)}componentDidUpdate(e,t){this._sendVisibilityToWidget(this.state.showStickers)}_imError(e,t){console.error(e,t),this.setState({showStickers:!1,imError:Object(c.a)(e)})}_updateWidget(){const t=Dt.a.getStickerpickerWidgets()[0];if(!t)return e.currentWidget=null,void this.setState({stickerpickerWidget:null,widgetId:null});const n=e.currentWidget;let o=null;n&&n.content&&n.content.url&&(o=n.content.url);let r=null;t&&t.content&&t.content.url&&(r=t.content.url),r!==o&&Cn.a.destroyElement("stickerPicker"),e.currentWidget=t,this.setState({stickerpickerWidget:t,widgetId:t?t.id:null})}_onWidgetAction(e){switch(e.action){case"user_widget_updated":this.forceUpdate();break;case"stickerpicker_close":this.setState({showStickers:!1});break;case h.a.AfterRightPanelPhaseChange:case"show_left_panel":case"hide_left_panel":this.setState({showStickers:!1})}}_defaultStickerpickerContent(){return i.a.createElement(g.a,{onClick:this._launchManageIntegrations,className:"mx_Stickers_contentPlaceholder"},i.a.createElement("p",null,Object(c.a)("You don't currently have any stickerpacks enabled")),i.a.createElement("p",{className:"mx_Stickers_addLink"},Object(c.a)("Add some now")),i.a.createElement("img",{src:n(1364),alt:""}))}_errorStickerpickerContent(){return i.a.createElement("div",{style:{"text-align":"center"},className:"error"},i.a.createElement("p",null," ",this.state.imError," "))}_sendVisibilityToWidget(e){if(!this.state.stickerpickerWidget)return;const t=Zv.a.instance.getMessagingForId(this.state.stickerpickerWidget.id);t&&e!==this._prevSentVisibility&&(t.updateVisibility(e).catch(e=>{console.error("Error updating widget visibility: ",e)}),this._prevSentVisibility=e)}_getStickerpickerContent(){if(this.state._imError)return this._errorStickerpickerContent();const e=this.state.stickerpickerWidget;let t;const n=d.getComponent("elements.PersistedElement");if(e&&e.content&&e.content.url){e.content.name=e.name||Object(c.a)("Stickerpack");const o={id:e.id,url:e.content.url,name:e.content.name,type:e.content.type,data:e.content.data};t=i.a.createElement("div",{className:"mx_Stickers_content_container"},i.a.createElement("div",{id:"stickersContent",className:"mx_Stickers_content",style:{border:"none",height:this.popoverHeight,width:this.popoverWidth}},i.a.createElement(n,{persistKey:"stickerPicker",zIndex:3500},i.a.createElement(At.a,{app:o,room:this.props.room,fullWidth:!0,userId:de.a.get().credentials.userId,creatorUserId:e.sender||de.a.get().credentials.userId,waitForIframeLoad:!0,showMenubar:!0,onEditClick:this._launchManageIntegrations,onDeleteClick:this._removeStickerpickerWidgets,showTitle:!1,showCancel:!1,showPopout:!1,onMinimiseClick:this._onHideStickersClick,handleMinimisePointerEvents:!0,userWidget:!0}))))}else t=this._defaultStickerpickerContent();return t}_onShowStickersClick(e){if(!G.b.getValue("integrationProvisioning"))return Xv.a.sharedInstance().showDisabledDialog();const t=e.target.getBoundingClientRect();let n=t.right+window.pageXOffset-41;n=Math.min(n,document.body.clientWidth-312);const o=Math.max(10,2+window.pageXOffset+t.left-n),r=t.top+t.height/2+window.pageYOffset-19;this.setState({showStickers:!0,stickerPickerX:n,stickerPickerY:r,stickerPickerChevronOffset:o})}_onHideStickersClick(e){this.setState({showStickers:!1})}_onResize(){this.setState({showStickers:!1})}_onFinished(){this.setState({showStickers:!1})}_launchManageIntegrations(){G.b.getValue("feature_many_integration_managers")?Xv.a.sharedInstance().openAll(this.props.room,"type_"+ps.a.STICKERPICKER.preferred,this.state.widgetId):Xv.a.sharedInstance().getPrimaryManager().open(this.props.room,"type_"+ps.a.STICKERPICKER.preferred,this.state.widgetId)}render(){let e,t;const n=P()("mx_MessageComposer_button","mx_MessageComposer_stickers","mx_Stickers_hideStickers","mx_MessageComposer_button_highlight");if(this.state.showStickers){t=i.a.createElement(g.a,{id:"stickersButton",key:"controls_hide_stickers",className:n,onClick:this._onHideStickersClick,active:this.state.showStickers,title:Object(c.a)("Hide Stickers")});const r=d.getComponent("context_menus.GenericElementContextMenu");e=i.a.createElement(o.b,{chevronOffset:this.state.stickerPickerChevronOffset,chevronFace:"bottom",left:this.state.stickerPickerX,top:this.state.stickerPickerY,menuWidth:this.popoverWidth,menuHeight:this.popoverHeight,onFinished:this._onFinished,menuPaddingTop:0,menuPaddingLeft:0,menuPaddingRight:0,zIndex:3500},i.a.createElement(r,{element:this._getStickerpickerContent(),onResize:this._onFinished}))}else t=i.a.createElement(V.a,{id:"stickersButton",key:"controls_show_stickers",className:"mx_MessageComposer_button mx_MessageComposer_stickers",onClick:this._onShowStickersClick,title:Object(c.a)("Show Stickers")});return i.a.createElement(i.a.Fragment,null,t,e)}},R()(Qv,"currentWidget",void 0),$v=Jv))||$v;var ty,ny,oy;function ry(){u.a.dispatch({action:"reply_to_event",event:null})}let iy=Object(N.a)("views.rooms.ReplyPreview")((oy=ny=class extends i.a.Component{constructor(e){super(e),this.unmounted=!1,this.state={event:se.a.getQuotingEvent()},this._onRoomViewStoreUpdate=this._onRoomViewStoreUpdate.bind(this),this._roomStoreToken=se.a.addListener(this._onRoomViewStoreUpdate)}componentWillUnmount(){this.unmounted=!0,this._roomStoreToken&&this._roomStoreToken.remove()}_onRoomViewStoreUpdate(){if(this.unmounted)return;const e=se.a.getQuotingEvent();this.state.event!==e&&this.setState({event:e})}render(){if(!this.state.event)return null;const e=d.getComponent("rooms.EventTile");return i.a.createElement("div",{className:"mx_ReplyPreview"},i.a.createElement("div",{className:"mx_ReplyPreview_section"},i.a.createElement("div",{className:"mx_ReplyPreview_header mx_ReplyPreview_title"},Object(c.a)("Replying")),i.a.createElement("div",{className:"mx_ReplyPreview_header mx_ReplyPreview_cancel"},i.a.createElement("img",{className:"mx_filterFlipColor",src:n(262),width:"18",height:"18",onClick:ry})),i.a.createElement("div",{className:"mx_ReplyPreview_clear"}),i.a.createElement(e,{last:!0,tileShape:"reply_preview",mxEvent:this.state.event,permalinkCreator:this.props.permalinkCreator,isTwelveHour:G.b.getValue("showTwelveHourTimestamps"),enableFlair:G.b.getValue(lt.a.Flair)})))}},R()(ny,"propTypes",{permalinkCreator:He.a.instanceOf(hs.a).isRequired}),ty=oy))||ty;var ay;function sy(e){const t=d.getComponent("avatars.MemberStatusMessageAvatar");return i.a.createElement("div",{className:"mx_MessageComposer_avatar"},i.a.createElement(t,{member:e.me,width:24,height:24}))}function cy(e){return i.a.createElement(V.a,{className:"mx_MessageComposer_sendMessage",onClick:e.onClick,title:Object(c.a)("Send message")})}sy.propTypes={me:He.a.object.isRequired},cy.propTypes={onClick:He.a.func.isRequired};const ly=({addEmoji:e})=>{const[t,n,r,a]=Object(o.q)();let s;if(t){const t=n.current.getBoundingClientRect(),r=d.getComponent("emojipicker.EmojiPicker");s=i.a.createElement(o.b,he()({},Object(o.k)(t),{onFinished:a,catchTab:!1}),i.a.createElement(r,{onChoose:e,showQuickReactions:!0}))}const l=P()("mx_MessageComposer_button","mx_MessageComposer_emoji",{mx_MessageComposer_button_highlight:t});return i.a.createElement(i.a.Fragment,null,i.a.createElement(o.d,{className:l,onClick:r,isExpanded:t,title:Object(c.a)("Emoji picker"),inputRef:n}),s)};class dy extends i.a.Component{constructor(e){super(e),R()(this,"onAction",e=>{"upload_file"===e.action&&this.onUploadClick()}),this.onUploadClick=this.onUploadClick.bind(this),this.onUploadFileInputChange=this.onUploadFileInputChange.bind(this),this._uploadInput=Object(r.createRef)(),this._dispatcherRef=u.a.register(this.onAction)}componentWillUnmount(){u.a.unregister(this._dispatcherRef)}onUploadClick(e){de.a.get().isGuest()?u.a.dispatch({action:"require_registration"}):this._uploadInput.current.click()}onUploadFileInputChange(e){if(0===e.target.files.length)return;const t=[];for(let n=0;n<e.target.files.length;++n)t.push(e.target.files[n]);ro.a.sharedInstance().sendContentListToRoom(t,this.props.roomId,de.a.get()),e.target.value=""}render(){return i.a.createElement(V.a,{className:"mx_MessageComposer_button mx_MessageComposer_upload",onClick:this.onUploadClick,title:Object(c.a)("Upload file")},i.a.createElement("input",{ref:this._uploadInput,type:"file",style:{display:"none"},multiple:!0,onChange:this.onUploadFileInputChange}))}}R()(dy,"propTypes",{roomId:He.a.string.isRequired});let uy=Object(N.a)("views.rooms.MessageComposer")(ay=class extends i.a.Component{constructor(e){super(e),R()(this,"onAction",e=>{"reply_to_event"===e.action&&setTimeout(()=>{this.props.resizeNotifier.notifyTimelineHeightChanged()},100)}),R()(this,"sendMessage",()=>{this.messageComposerInput._sendMessage()}),R()(this,"onChange",e=>{this.setState({isComposerEmpty:e.isEmpty})}),R()(this,"_onVoiceStoreUpdate",()=>{const e=wl.instance.activeRecording;this.setState({haveRecording:!!e}),e&&e.on(El.EndingSoon,({secondsLeft:e})=>{this.setState({recordingTimeLeftSeconds:e}),setTimeout(()=>this.setState({recordingTimeLeftSeconds:null}),3e3)})}),this.onInputStateChanged=this.onInputStateChanged.bind(this),this._onRoomStateEvents=this._onRoomStateEvents.bind(this),this._onTombstoneClick=this._onTombstoneClick.bind(this),this.renderPlaceholderText=this.renderPlaceholderText.bind(this),wl.instance.on(f.b,this._onVoiceStoreUpdate),this._dispatcherRef=null,this.state={tombstone:this._getRoomTombstone(),canSendMessages:this.props.room.maySendMessage(),isComposerEmpty:!0,haveRecording:!1,recordingTimeLeftSeconds:null}}componentDidMount(){this.dispatcherRef=u.a.register(this.onAction),de.a.get().on("RoomState.events",this._onRoomStateEvents),this._waitForOwnMember()}_waitForOwnMember(){const e=this.props.room.getMember(de.a.get().getUserId());e?this.setState({me:e}):this.props.room.loadMembersIfNeeded().then(()=>{const e=this.props.room.getMember(de.a.get().getUserId());this.setState({me:e})})}componentWillUnmount(){de.a.get()&&de.a.get().removeListener("RoomState.events",this._onRoomStateEvents),wl.instance.off(f.b,this._onVoiceStoreUpdate),u.a.unregister(this.dispatcherRef)}_onRoomStateEvents(e,t){e.getRoomId()===this.props.room.roomId&&("m.room.tombstone"===e.getType()&&this.setState({tombstone:this._getRoomTombstone()}),"m.room.power_levels"===e.getType()&&this.setState({canSendMessages:this.props.room.maySendMessage()}))}_getRoomTombstone(){return this.props.room.currentState.getStateEvents("m.room.tombstone","")}onInputStateChanged(e){e=Object.assign({},this.state.inputState,e),this.setState({inputState:e})}_onTombstoneClick(e){e.preventDefault();const t=this.state.tombstone.getContent().replacement_room,n=de.a.get().getRoom(t);let o=null;if(n){const e=n.currentState.getStateEvents("m.room.create","");e&&e.getId()&&(o=e.getId())}const r=[this.state.tombstone.getSender().split(":").splice(1).join(":")];u.a.dispatch({action:"view_room",highlighted:!0,event_id:o,room_id:t,auto_join:!0,_type:"tombstone",via_servers:r,opts:{viaServers:r}})}renderPlaceholderText(){return this.props.replyToEvent?this.props.e2eStatus?Object(c.a)("Send an encrypted reply…"):Object(c.a)("Send a reply…"):this.props.e2eStatus?Object(c.a)("Send an encrypted message…"):Object(c.a)("Send a message…")}addEmoji(e){u.a.dispatch({action:"insert_emoji",emoji:e})}render(){const e=[this.state.me?i.a.createElement(sy,{key:"controls_avatar",me:this.state.me}):null,this.props.e2eStatus?i.a.createElement(Zi.b,{key:"e2eIcon",status:this.props.e2eStatus,className:"mx_MessageComposer_e2eIcon"}):null];if(!this.state.tombstone&&this.state.canSendMessages){const t=d.getComponent("rooms.SendMessageComposer");e.push(i.a.createElement(t,{ref:e=>this.messageComposerInput=e,key:"controls_input",room:this.props.room,placeholder:this.renderPlaceholderText(),resizeNotifier:this.props.resizeNotifier,permalinkCreator:this.props.permalinkCreator,replyToEvent:this.props.replyToEvent,onChange:this.onChange,disabled:this.state.haveRecording})),this.state.haveRecording||e.push(i.a.createElement(dy,{key:"controls_upload",roomId:this.props.room.roomId}),i.a.createElement(ly,{key:"emoji_button",addEmoji:this.addEmoji})),G.b.getValue(lt.a.Widgets)&&G.b.getValue("MessageComposerInput.showStickersButton")&&!this.state.haveRecording&&e.push(i.a.createElement(ey,{key:"stickerpicker_controls_button",room:this.props.room})),G.b.getValue("feature_voice_messages")&&e.push(i.a.createElement(Tl,{key:"controls_voice_record",room:this.props.room})),this.state.isComposerEmpty&&!this.state.haveRecording||e.push(i.a.createElement(cy,{key:"controls_send",onClick:this.sendMessage}))}else if(this.state.tombstone){const t=this.state.tombstone.getContent().replacement_room,o=t?i.a.createElement("a",{href:Object(hs.g)(t),className:"mx_MessageComposer_roomReplaced_link",onClick:this._onTombstoneClick},Object(c.a)("The conversation continues here.")):"";e.push(i.a.createElement("div",{className:"mx_MessageComposer_replaced_wrapper",key:"room_replaced"},i.a.createElement("div",{className:"mx_MessageComposer_replaced_valign"},i.a.createElement("img",{className:"mx_MessageComposer_roomReplaced_icon",src:n(1365)}),i.a.createElement("span",{className:"mx_MessageComposer_roomReplaced_header"},Object(c.a)("This room has been replaced and is no longer active.")),i.a.createElement("br",null),o)))}else e.push(i.a.createElement("div",{key:"controls_error",className:"mx_MessageComposer_noperm_error"},Object(c.a)("You do not have permission to post to this room")));let t;const o=Math.round(this.state.recordingTimeLeftSeconds);return o&&(t=i.a.createElement(Jr.b,{label:Object(c.a)("%(seconds)ss left",{seconds:o}),alignment:Jr.a.Top,yOffset:-50})),i.a.createElement("div",{className:"mx_MessageComposer mx_GroupLayout"},t,i.a.createElement("div",{className:"mx_MessageComposer_wrapper"},i.a.createElement(iy,{permalinkCreator:this.props.permalinkCreator}),i.a.createElement("div",{className:"mx_MessageComposer_row"},e)))}})||ay;uy.propTypes={room:He.a.object.isRequired,callState:He.a.string,showApps:He.a.bool};var hy=n(719),py=n(747);class my extends i.a.Component{constructor(e){super(e),this.nodes={},this._updateChildren(this.props.children)}componentDidUpdate(){this._updateChildren(this.props.children)}_applyStyles(e,t){Object.entries(t).forEach(([t,n])=>{e.style[t]=n})}_updateChildren(e){const t=this.children||{};this.children={},i.a.Children.toArray(e).forEach(e=>{if(t[e.key]){const n=t[e.key],o=Od.a.findDOMNode(this.nodes[n.key]);o&&o.style.left!==e.props.style.left&&this._applyStyles(o,{left:e.props.style.left}),this.children[e.key]=i.a.cloneElement(n,e.props,e.props.children)}else{const t={},n=e.props.style,o=this.props.startStyles;if(o.length>0){const e=o[0];t.style=e}t.ref=t=>this._collectNode(e.key,t,n),this.children[e.key]=i.a.cloneElement(e,t)}})}_collectNode(e,t,n){if(t&&void 0===this.nodes[e]&&this.props.startStyles.length>0){const e=this.props.startStyles,o=Od.a.findDOMNode(t);for(let t=1;t<e.length;++t)this._applyStyles(o,e[t]);setTimeout(()=>{this._applyStyles(o,n)},0)}this.nodes[e]=t}render(){return i.a.createElement(i.a.Fragment,null,Object.values(this.children))}}R()(my,"propTypes",{children:He.a.any,transition:He.a.object,startStyles:He.a.array}),R()(my,"defaultProps",{startStyles:[]});var gy,fy,_y,by=n(305);let vy=Object(N.a)("views.rooms.ReadReceiptMarker")((_y=fy=class extends i.a.PureComponent{constructor(e){super(e),this._avatar=Object(r.createRef)(),this.state={suppressDisplay:!this.props.suppressAnimation}}componentWillUnmount(){const e=this.props.readReceiptInfo;if(!e)return;if(this.props.checkUnmounting&&this.props.checkUnmounting())return;const t=this._avatar.current;e.top=t.offsetTop,e.left=t.offsetLeft,e.parent=t.offsetParent}componentDidMount(){this.state.suppressDisplay&&this._animateMarker()}componentDidUpdate(e){const t=e.leftOffset!==this.props.leftOffset,n=e.hidden!==this.props.hidden;(t||n)&&this._animateMarker()}_animateMarker(){let e=-15;const t=this.props.readReceiptInfo;t&&t.parent&&(e=t.top+t.parent.getBoundingClientRect().top);const n=this._avatar.current;let o;n.offsetParent?o=e-n.offsetParent.getBoundingClientRect().top:(console.warn(`ReadReceiptMarker for ${this.props.fallbackUserId} in has no offsetParent`),o=0);const r=[];t&&t.left&&r.push({top:o+"px",left:Object(by.a)(t.left)}),r.push({top:o+"px",left:"0"}),this.setState({suppressDisplay:!1,startStyles:r})}render(){const e=d.getComponent("avatars.MemberAvatar");if(this.state.suppressDisplay)return i.a.createElement("div",{ref:this._avatar});const t={left:Object(by.a)(this.props.leftOffset),top:"0px"};let n;if(this.props.timestamp){const e=Object(Rd.a)(new Date(this.props.timestamp),this.props.showTwelveHour);n=this.props.member&&this.props.fallbackUserId!==this.props.member.rawDisplayName?Object(c.a)("Seen by %(displayName)s (%(userName)s) at %(dateTime)s",{displayName:this.props.member.rawDisplayName,userName:this.props.fallbackUserId,dateTime:e}):Object(c.a)("Seen by %(userName)s at %(dateTime)s",{userName:this.props.fallbackUserId,dateTime:e})}return i.a.createElement(my,{startStyles:this.state.startStyles},i.a.createElement(e,{member:this.props.member,fallbackUserId:this.props.fallbackUserId,"aria-hidden":"true",width:14,height:14,resizeMethod:"crop",style:t,title:n,onClick:this.props.onClick,inputRef:this._avatar}))}},R()(fy,"propTypes",{member:He.a.object,fallbackUserId:He.a.string.isRequired,leftOffset:He.a.number,hidden:He.a.bool,suppressAnimation:He.a.bool,readReceiptInfo:He.a.object,checkUnmounting:He.a.func,onClick:He.a.func,timestamp:He.a.number,showTwelveHour:He.a.bool}),R()(fy,"defaultProps",{leftOffset:0}),gy=_y))||gy;var yy,Ey,Sy;function wy(e){return e.canonicalAlias||(e.aliases?e.aliases[0]:"")}const Cy=He.a.shape({name:He.a.string,topic:He.a.string,roomId:He.a.string,avatarUrl:He.a.string,numJoinedMembers:He.a.number,canonicalAlias:He.a.string,aliases:He.a.arrayOf(He.a.string),worldReadable:He.a.bool,guestCanJoin:He.a.bool});let Ty=Object(N.a)("views.rooms.RoomDetailRow")((Sy=Ey=class extends i.a.Component{constructor(e){super(e),R()(this,"onClick",e=>{e.preventDefault(),this.props.onClick&&this.props.onClick(e,this.props.room)}),R()(this,"onTopicClick",e=>{e.stopPropagation()}),this._topic=Object(r.createRef)()}componentDidMount(){this._linkifyTopic()}componentDidUpdate(){this._linkifyTopic()}_linkifyTopic(){this._topic.current&&Object(is.f)(this._topic.current)}render(){const e=d.getComponent("avatars.BaseAvatar"),t=this.props.room,n=t.name||wy(t)||Object(c.a)("Unnamed room"),o=t.worldReadable?i.a.createElement("div",{className:"mx_RoomDirectory_perm"},Object(c.a)("World readable")):i.a.createElement("div",null),r=t.guestCanJoin?i.a.createElement("div",{className:"mx_RoomDirectory_perm"},Object(c.a)("Guests can join")):i.a.createElement("div",null),a=o||r?i.a.createElement("div",{className:"mx_RoomDirectory_perms"},o," ",r):i.a.createElement("div",null);let s=null;return t.avatarUrl&&(s=Object(ge.b)(t.avatarUrl).getSquareThumbnailHttp(24)),i.a.createElement("tr",{key:t.roomId,onClick:this.onClick,onMouseDown:this.props.onMouseDown},i.a.createElement("td",{className:"mx_RoomDirectory_roomAvatar"},i.a.createElement(e,{width:24,height:24,resizeMethod:"crop",name:n,idName:n,url:s})),i.a.createElement("td",{className:"mx_RoomDirectory_roomDescription"},i.a.createElement("div",{className:"mx_RoomDirectory_name"},n)," ",a,i.a.createElement("div",{className:"mx_RoomDirectory_topic",ref:this._topic,onClick:this.onTopicClick},t.topic),i.a.createElement("div",{className:"mx_RoomDirectory_alias"},wy(t))),i.a.createElement("td",{className:"mx_RoomDirectory_roomMemberCount"},t.numJoinedMembers))}},R()(Ey,"propTypes",{room:Cy,onClick:He.a.func,onMouseDown:He.a.func}),yy=Sy))||yy;var xy,Oy,ky;let Ry=Object(N.a)("views.rooms.RoomDetailList")((ky=Oy=class extends i.a.Component{constructor(...e){super(...e),R()(this,"onDetailsClick",(e,t)=>{u.a.dispatch({action:"view_room",room_id:t.roomId,room_alias:t.canonicalAlias||(t.aliases||[])[0]})})}getRows(){if(!this.props.rooms)return[];const e=d.getComponent("rooms.RoomDetailRow");return this.props.rooms.map((t,n)=>i.a.createElement(e,{key:n,room:t,onClick:this.onDetailsClick}))}render(){let e;return e=0===this.getRows().length?i.a.createElement("i",null,Object(c.a)("No rooms to show")):i.a.createElement("table",{className:"mx_RoomDirectory_table"},i.a.createElement("tbody",null,this.getRows())),i.a.createElement("div",{className:P()("mx_RoomDetailList",this.props.className)},e)}},R()(Oy,"propTypes",{rooms:He.a.arrayOf(Cy),className:He.a.string}),xy=ky))||xy;var Dy,Iy,Ay,Ny=n(724),Fy=n(714),My=n(718),Py=n(717);let Ly=Object(N.a)("views.rooms.SearchResultTile")((Ay=Iy=class extends i.a.Component{render(){const e=d.getComponent("messages.DateSeparator"),t=d.getComponent("rooms.EventTile"),n=this.props.searchResult,o=n.context.getEvent(),r=o.getId(),a=o.getTs(),s=[i.a.createElement(e,{key:a+"-search",ts:a})],c=n.context.getTimeline();for(let e=0;e<c.length;e++){const o=c[e];let a;const l=e!=n.context.getOurEventIndex();l||(a=this.props.searchHighlights),Object(Id.b)(o)&&s.push(i.a.createElement(t,{key:`${r}+${e}`,mxEvent:o,contextual:l,highlights:a,permalinkCreator:this.props.permalinkCreator,highlightLink:this.props.resultLink,onHeightChanged:this.props.onHeightChanged,isTwelveHour:G.b.getValue("showTwelveHourTimestamps"),enableFlair:G.b.getValue(lt.a.Flair)}))}return i.a.createElement("li",{"data-scroll-tokens":r},s)}},R()(Iy,"propTypes",{searchResult:He.a.object.isRequired,searchHighlights:He.a.array,resultLink:He.a.string,onHeightChanged:He.a.func}),Dy=Ay))||Dy;class jy{constructor(e,t){R()(this,"history",[]),R()(this,"prefix",void 0),R()(this,"lastIndex",0),R()(this,"currentIndex",0),this.prefix=t+e;let n,o=0;for(;n=sessionStorage.getItem(`${this.prefix}[${o}]`);){try{this.history.push(JSON.parse(n))}catch(e){console.warn("Throwing away unserialisable history",e);break}++o}this.lastIndex=this.history.length-1,this.currentIndex=this.lastIndex+1}static createItem(e,t){return{parts:e.serializeParts(),replyEventId:t?t.getId():void 0}}save(e,t){const n=jy.createItem(e,t);this.history.push(n),this.currentIndex=this.history.length,this.lastIndex+=1,sessionStorage.setItem(`${this.prefix}[${this.lastIndex}]`,JSON.stringify(n))}getItem(e){return this.currentIndex=Object(No.clamp)(this.currentIndex+e,0,this.history.length-1),this.history[this.currentIndex]}}var Uy,By,qy,Gy=n(299),Vy=n(579),Hy=n.n(Vy);function zy(e,t,n){const o=bf.a.makeReplyMixIn(t);Object.assign(e,o);const r=bf.a.getNestedReplyText(t,n);r&&(e.formatted_body&&(e.formatted_body=r.html+e.formatted_body),e.body=r.body+e.body)}let Ky=Object(N.a)("views.rooms.SendMessageComposer")((qy=By=class extends i.a.Component{constructor(e,t){super(e,t),R()(this,"_setEditorRef",e=>{this._editorRef=e}),R()(this,"_onKeyDown",e=>{if(this._editorRef.isComposing(e))return;const t=Object(Pt.f)().getMessageComposerAction(e);switch(t){case Pt.b.Send:this._sendMessage(),e.preventDefault();break;case Pt.b.SelectPrevSendHistory:case Pt.b.SelectNextSendHistory:this.selectSendHistory(t===Pt.b.SelectPrevSendHistory)&&e.preventDefault();break;case Pt.b.EditPrevMessage:if(this._editorRef.isSelectionCollapsed()&&this._editorRef.isCaretAtStart()){const t=Object(wu.b)(this.props.room,!1);t&&(e.preventDefault(),u.a.dispatch({action:"edit_event",event:t}))}break;case Pt.b.CancelEditing:u.a.dispatch({action:"reply_to_event",event:null});break;default:this._prepareToEncrypt&&this._prepareToEncrypt()}}),R()(this,"_shouldSaveStoredEditorState",()=>!this.model.isEmpty||this.props.replyToEvent),R()(this,"_saveStoredEditorState",()=>{if(this._shouldSaveStoredEditorState()){const e=jy.createItem(this.model,this.props.replyToEvent);localStorage.setItem(this._editorStateKey,JSON.stringify(e))}else this._clearStoredEditorState()}),R()(this,"onAction",e=>{if(!this.props.disabled)switch(e.action){case"reply_to_event":case h.a.FocusComposer:this._editorRef&&this._editorRef.focus();break;case"insert_mention":this._insertMention(e.user_id);break;case"quote":this._insertQuotedMessage(e.event);break;case"insert_emoji":this._insertEmoji(e.emoji)}}),R()(this,"_insertEmoji",e=>{const{model:t}=this,{partCreator:n}=t,o=this._editorRef.getCaret(),r=t.positionForOffset(o.offset,o.atNodeEnd);t.transform(()=>{const i=t.insert([n.plain(e)],r);return t.positionForOffset(o.offset+i,!0)})}),R()(this,"_onPaste",e=>{const{clipboardData:t}=e;if(t.files.length&&!t.types.some(e=>"text/plain"===e))return ro.a.sharedInstance().sendContentListToRoom(Array.from(t.files),this.props.room.roomId,this.context),!0}),R()(this,"onChange",()=>{this.props.onChange&&this.props.onChange(this.model)}),this.model=null,this._editorRef=null,this.currentlyComposedEditorState=null,this.context.isCryptoEnabled()&&this.context.isRoomEncrypted(this.props.room.roomId)&&(this._prepareToEncrypt=new Gv.a(()=>{this.context.prepareToEncrypt(this.props.room)},6e4)),window.addEventListener("beforeunload",this._saveStoredEditorState)}selectSendHistory(e){const t=e?-1:1;if(this.sendHistoryManager.currentIndex===this.sendHistoryManager.history.length){if(!e)return;this.currentlyComposedEditorState=this.model.serializeParts()}else if(this.sendHistoryManager.currentIndex+t===this.sendHistoryManager.history.length)return this.model.reset(this.currentlyComposedEditorState),void(this.sendHistoryManager.currentIndex=this.sendHistoryManager.history.length);const{parts:n,replyEventId:o}=this.sendHistoryManager.getItem(t);u.a.dispatch({action:"reply_to_event",event:o?this.props.room.findEventById(o):null}),n&&(this.model.reset(n),this._editorRef.focus())}_isSlashCommand(){const e=this.model.parts[0];if(e){if("command"===e.type&&e.text.startsWith("/")&&!e.text.startsWith("//"))return!0;if(e.text.startsWith("/")&&!e.text.startsWith("//")&&("plain"===e.type||"pill-candidate"===e.type))return!0}return!1}_sendQuickReaction(){const e=this.props.room.getLiveTimeline().getEvents(),t=this.model.parts[1].text;for(let n=e.length-1;n>=0;n--)if("m.room.message"===e[n].getType()){let o=!0;const r=e[n],i=de.a.get().getUserId(),a=this.props.room.getUnfilteredTimelineSet().getRelationsForEvent(r.getId(),"m.annotation","m.reaction");if(a){o=![...a.getAnnotationsBySender()[i]||[]].filter(e=>!e.isRedacted()).map(e=>e.getRelation().key).includes(t)}o&&(de.a.get().sendEvent(r.getRoomId(),"m.reaction",{"m.relates_to":{rel_type:"m.annotation",event_id:r.getId(),key:t}}),u.a.dispatch({action:"message_sent"}));break}}_getSlashCommand(){const e=this.model.parts.reduce((e,t)=>"user-pill"===t.type?e+t.resourceId:e+t.text,""),{cmd:t,args:n}=function(e){const{cmd:t,args:n}=ks(e);return Os.has(t)&&Os.get(t).isEnabled()?{cmd:Os.get(t),args:n}:{}}(e);return[t,n,e]}async _runSlashCommand(e,t){const n=e.run(this.props.room.roomId,t);let o,r=n.error;if(n.promise)try{e.category===Ss.messages?o=await n.promise:await n.promise}catch(e){r=e}if(r){console.error("Command failure: %s",r);const e=d.getComponent("dialogs.ErrorDialog"),t=!!n.promise?Object(c.b)("Server error"):Object(c.b)("Command error");let o;o="string"==typeof r?r:r.message?r.message:Object(c.a)("Server unavailable, overloaded, or something else went wrong."),Ge.a.createTrackedDialog(t,"",e,{title:Object(c.a)(t),description:o})}else if(console.log("Command success."),o)return o}async _sendMessage(){if(this.model.isEmpty)return;const e=this.props.replyToEvent;let t,n=!0;if(!vv(this.model)&&this._isSlashCommand()){const[o,r,a]=this._getSlashCommand();if(o)o.category===Ss.messages?(t=await this._runSlashCommand(o,r),e&&zy(t,e,this.props.permalinkCreator)):(this._runSlashCommand(o,r),n=!1);else{const e=d.getComponent("dialogs.QuestionDialog"),{finished:t}=Ge.a.createTrackedDialog("Unknown command","",e,{title:Object(c.a)("Unknown Command"),description:i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("Unrecognised command: %(commandText)s",{commandText:a})),i.a.createElement("p",null,Object(c.a)("You can use <code>/help</code> to list available commands. Did you mean to send this as a message?",{},{code:e=>i.a.createElement("code",null,e)})),i.a.createElement("p",null,Object(c.a)("Hint: Begin your message with <code>//</code> to start it with a slash.",{},{code:e=>i.a.createElement("code",null,e)}))),button:Object(c.a)("Send as message")}),[n]=await t;if(!n)return}}if(function(e){const t=e.parts;if(0==t.length)return!1;const n=bv(e);if(t.length<=2){const e=n.startsWith("+")||n.startsWith("+ "),t=n.match(Hy.a);if(e&&t&&1==t.length)return t[0]===n.substring(1)||t[0]===n.substring(2)}return!1}(this.model)&&(n=!1,this._sendQuickReaction()),n){const n=E.a.getTimestamp(),{roomId:o}=this.props.room;if(t||(t=function(e,t,n){const o=vv(e);o&&(e=Ev(e)),yv(e,"//")&&(e=Sv(e,"/"));const r={msgtype:o?"m.emote":"m.text",body:bv(e=function(e){const{parts:t}=e;if(t.length){const n=t[0];"plain"===n.type&&n.text.startsWith("\\/")&&(e=e.clone()).removeText({index:0,offset:0},1)}return e}(e))},i=_v(e,{forceHTML:!!n});return i&&(r.format="org.matrix.custom.html",r.formatted_body=i),n&&zy(r,n,t),r}(this.model,this.props.permalinkCreator,e)),!t.body.trim())return;const r=this.context.sendMessage(o,t);e&&u.a.dispatch({action:"reply_to_event",event:null}),u.a.dispatch({action:"message_sent"}),_s.CHAT_EFFECTS.forEach(e=>{Object(Gy.containsEmoji)(t,e.emojis)&&u.a.dispatch({action:"effects."+e.command})}),E.a.instance.trackSendMessage(n,r,o,!1,!!e,t)}this.sendHistoryManager.save(this.model,e),this.model.reset([]),this._editorRef.clearUndoHistory(),this._editorRef.focus(),this._clearStoredEditorState(),G.b.getValue("scrollToBottomOnMessageSent")&&u.a.dispatch({action:"scroll_to_bottom"})}componentWillUnmount(){u.a.unregister(this.dispatcherRef),window.removeEventListener("beforeunload",this._saveStoredEditorState),this._saveStoredEditorState()}UNSAFE_componentWillMount(){const e=new Fc(this.props.room,this.context),t=this._restoreStoredEditorState(e)||[];this.model=new pv(t,e),this.dispatcherRef=u.a.register(this.onAction),this.sendHistoryManager=new jy(this.props.room.roomId,"mx_cider_history_")}get _editorStateKey(){return"mx_cider_state_"+this.props.room.roomId}_clearStoredEditorState(){localStorage.removeItem(this._editorStateKey)}_restoreStoredEditorState(e){const t=localStorage.getItem(this._editorStateKey);if(t)try{const{parts:n,replyEventId:o}=JSON.parse(t),r=n.map(t=>e.deserializePart(t));return o&&u.a.dispatch({action:"reply_to_event",event:this.props.room.findEventById(o)}),r}catch(e){console.error(e)}}_insertMention(e){const{model:t}=this,{partCreator:n}=t,o=this.props.room.getMember(e),r=o?o.rawDisplayName:e,i=this._editorRef.getCaret(),a=t.positionForOffset(i.offset,i.atNodeEnd),s=a.index>0?a.index:0,c=n.createMentionParts(s,r,e);t.transform(()=>{const e=t.insert(c,a);return t.positionForOffset(i.offset+e,!0)}),this._editorRef&&this._editorRef.focus()}_insertQuotedMessage(e){const{model:t}=this,{partCreator:n}=t,o=qc(e,n,{isQuotedMessage:!0});o.push(n.newline()),o.push(n.newline()),t.transform(()=>{const e=t.insert(o,t.positionForOffset(0));return t.positionForOffset(e,!0)}),this._editorRef&&this._editorRef.focus()}render(){return i.a.createElement("div",{className:"mx_SendMessageComposer",onClick:this.focusComposer,onKeyDown:this._onKeyDown},i.a.createElement(el,{onChange:this.onChange,ref:this._setEditorRef,model:this.model,room:this.props.room,label:this.props.placeholder,placeholder:this.props.placeholder,onPaste:this._onPaste,disabled:this.props.disabled}))}},R()(By,"propTypes",{room:He.a.object.isRequired,placeholder:He.a.string,permalinkCreator:He.a.object.isRequired,replyToEvent:He.a.object,onChange:He.a.func,disabled:He.a.bool}),R()(By,"contextType",b.a),Uy=qy))||Uy;var Wy,Yy,$y,Qy=n(725);let Jy=Object(N.a)("views.rooms.ThirdPartyMemberInfo")(($y=Yy=class extends i.a.Component{constructor(e){super(e),R()(this,"onRoomStateEvents",e=>{if("m.room.third_party_invite"===e.getType()&&e.getStateKey()===this.state.stateKey){const t=e.getContent().display_name,n={invited:Object(nt.c)(e)};t&&(n.displayName=t),this.setState(n)}}),R()(this,"onCancel",()=>{u.a.dispatch({action:"view_3pid_invite",event:null})}),R()(this,"onKickClick",()=>{de.a.get().sendStateEvent(this.state.roomId,"m.room.third_party_invite",{},this.state.stateKey).catch(e=>{console.error(e),this.setState({invited:!0});const t=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Revoke 3pid invite failed","",t,{title:Object(c.a)("Failed to revoke invite"),description:Object(c.a)("Could not revoke the invite. The server may be experiencing a temporary problem or you do not have sufficient permissions to revoke the invite.")})}),this.setState({invited:!1})}),this.room=de.a.get().getRoom(this.props.event.getRoomId());const t=this.room.getMember(de.a.get().getUserId()),n=this.room.currentState.getStateEvents("m.room.power_levels","");let o=n?n.getContent().kick:50;"number"!=typeof o&&(o=50);const r=this.room.getMember(this.props.event.getSender());this.state={stateKey:this.props.event.getStateKey(),roomId:this.props.event.getRoomId(),displayName:this.props.event.getContent().display_name,invited:!0,canKick:!!t&&t.powerLevel>o,senderName:r?r.name:this.props.event.getSender()}}componentDidMount(){de.a.get().on("RoomState.events",this.onRoomStateEvents)}componentWillUnmount(){const e=de.a.get();e&&e.removeListener("RoomState.events",this.onRoomStateEvents)}render(){const e=d.getComponent("elements.AccessibleButton");let t,n=null;return this.state.canKick&&this.state.invited&&(n=i.a.createElement("div",{className:"mx_MemberInfo_container"},i.a.createElement("h3",null,Object(c.a)("Admin Tools")),i.a.createElement("div",{className:"mx_MemberInfo_buttons"},i.a.createElement(e,{className:"mx_MemberInfo_field",onClick:this.onKickClick},Object(c.a)("Revoke invite"))))),this.room.isSpaceRoom()&&(t=i.a.createElement("div",{className:"mx_RightPanel_scopeHeader"},i.a.createElement(De.a,{room:this.room,height:32,width:32}),i.a.createElement(dt.a,{room:this.room}))),i.a.createElement("div",{className:"mx_MemberInfo",role:"tabpanel"},t,i.a.createElement("div",{className:"mx_MemberInfo_name"},i.a.createElement(e,{className:"mx_MemberInfo_cancel",onClick:this.onCancel,title:Object(c.a)("Close")}),i.a.createElement("h2",null,this.state.displayName)),i.a.createElement("div",{className:"mx_MemberInfo_container"},i.a.createElement("div",{className:"mx_MemberInfo_profile"},i.a.createElement("div",{className:"mx_MemberInfo_profileField"},Object(c.a)("Invited by %(sender)s",{sender:this.state.senderName})))),n)}},R()(Yy,"propTypes",{event:He.a.instanceOf(du.b).isRequired}),Wy=$y))||Wy;var Xy,Zy,eE;let tE=Object(N.a)("views.rooms.TopUnreadMessagesBar")((eE=Zy=class extends i.a.Component{render(){return i.a.createElement("div",{className:"mx_TopUnreadMessagesBar"},i.a.createElement(g.a,{className:"mx_TopUnreadMessagesBar_scrollUp",title:Object(c.a)("Jump to first unread message."),onClick:this.props.onScrollUpClick}),i.a.createElement(g.a,{className:"mx_TopUnreadMessagesBar_markAsRead",title:Object(c.a)("Mark all as read"),onClick:this.props.onCloseClick}))}},R()(Zy,"propTypes",{onScrollUpClick:He.a.func,onCloseClick:He.a.func}),Xy=eE))||Xy;function nE(e,t=[]){const n=[],o=Object.keys(e.currentState.members);for(let r=0;r<o.length;++r){const i=o[r];e.currentState.members[i].typing&&-1===t.indexOf(i)&&n.push(e.currentState.members[i])}return n}var oE,rE,iE,aE=n(252);let sE=Object(N.a)("views.rooms.WhoIsTypingTile")((iE=rE=class extends i.a.Component{constructor(...e){var t;super(...e),R()(this,"state",{usersTyping:(t=this.props.room,nE(t,[de.a.get().getUserId()])),delayedStopTypingTimers:{}}),R()(this,"isVisible",()=>this._isVisible(this.state)),R()(this,"onRoomTimeline",(e,t)=>{var n;if((null==t?void 0:t.roomId)===(null===(n=this.props.room)||void 0===n?void 0:n.roomId)){const t=e.getSender(),n=this.state.usersTyping.filter(e=>e.userId!==t);this.setState({usersTyping:n}),this._abortUserTimer(t)}}),R()(this,"onRoomMemberTyping",(e,t)=>{const n=function(e){return nE(e,[de.a.get().getUserId()].concat(de.a.get().getIgnoredUsers()))}(this.props.room);this.setState({delayedStopTypingTimers:this._updateDelayedStopTypingTimers(n),usersTyping:n})})}componentDidMount(){de.a.get().on("RoomMember.typing",this.onRoomMemberTyping),de.a.get().on("Room.timeline",this.onRoomTimeline)}componentDidUpdate(e,t){const n=this._isVisible(t),o=this._isVisible(this.state);this.props.onShown&&!n&&o?this.props.onShown():this.props.onHidden&&n&&!o&&this.props.onHidden()}componentWillUnmount(){const e=de.a.get();e&&(e.removeListener("RoomMember.typing",this.onRoomMemberTyping),e.removeListener("Room.timeline",this.onRoomTimeline)),Object.values(this.state.delayedStopTypingTimers).forEach(e=>e.abort())}_isVisible(e){return 0!==e.usersTyping.length||0!==Object.keys(e.delayedStopTypingTimers).length}_updateDelayedStopTypingTimers(e){const t=this.state.usersTyping.filter(t=>!e.some(e=>t.userId===e.userId)),n=e.filter(e=>!this.state.usersTyping.some(t=>e.userId===t.userId));n.forEach(e=>{const t=this.state.delayedStopTypingTimers[e.userId];t&&t.abort()});let o=Object.assign({},this.state.delayedStopTypingTimers);return o=n.reduce((e,t)=>(delete e[t.userId],e),o),o=t.reduce((e,t)=>{if(!e[t.userId]){const n=new aE.a(5e3);e[t.userId]=n,n.start(),n.finished().then(()=>this._removeUserTimer(t.userId),()=>{})}return e},o),o}_abortUserTimer(e){const t=this.state.delayedStopTypingTimers[e];t&&(t.abort(),this._removeUserTimer(e))}_removeUserTimer(e){if(this.state.delayedStopTypingTimers[e]){const t=Object.assign({},this.state.delayedStopTypingTimers);delete t[e],this.setState({delayedStopTypingTimers:t})}}_renderTypingIndicatorAvatars(e,t){let n=0;e.length>t&&(n=e.length-t+1,e=e.slice(0,t-1));const o=e.map(e=>i.a.createElement(lr.a,{key:e.userId,member:e,width:24,height:24,resizeMethod:"crop",viewUserOnClick:!0}));return n>0&&o.push(i.a.createElement("span",{className:"mx_WhoIsTypingTile_remainingAvatarPlaceholder",key:"others"},"+",n)),o}render(){let e=this.state.usersTyping;const t=Object.keys(this.state.delayedStopTypingTimers).map(e=>this.props.room.getMember(e));e=e.concat(t),e.sort((e,t)=>e.name.localeCompare(t.name));const n=function(e,t){let n=0;if(e.length>t&&(n=e.length-t+1),0===e.length)return"";if(1===e.length)return Object(c.a)("%(displayName)s is typing …",{displayName:e[0].name});const o=e.map(e=>e.name);if(n>=1)return Object(c.a)("%(names)s and %(count)s others are typing …",{names:o.slice(0,t-1).join(", "),count:n});{const e=o.pop();return Object(c.a)("%(names)s and %(lastPerson)s are typing …",{names:o.join(", "),lastPerson:e})}}(e,this.props.whoIsTypingLimit);return n?i.a.createElement("li",{className:"mx_WhoIsTypingTile","aria-atomic":"true"},i.a.createElement("div",{className:"mx_WhoIsTypingTile_avatars"},this._renderTypingIndicatorAvatars(e,this.props.whoIsTypingLimit)),i.a.createElement("div",{className:"mx_WhoIsTypingTile_label"},n)):i.a.createElement("div",{className:"mx_WhoIsTypingTile_empty"})}},R()(rE,"propTypes",{room:He.a.object.isRequired,onShown:He.a.func,onHidden:He.a.func,whoIsTypingLimit:He.a.number}),R()(rE,"defaultProps",{whoIsTypingLimit:3}),oE=iE))||oE;const cE=({avatarUrl:e,avatarAltText:t,avatarName:n,uploadAvatar:o,removeAvatar:a})=>{const[s,l]=Object(r.useState)(!1),d={onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1)};let u,h,p=i.a.createElement(g.a,he()({element:"div",onClick:o,className:"mx_AvatarSetting_avatarPlaceholder"},d));e&&(p=i.a.createElement(g.a,he()({element:"img",src:e,alt:t,"aria-label":t,onClick:o},d))),o&&(u=i.a.createElement(g.a,he()({onClick:o,className:"mx_AvatarSetting_uploadButton"},d))),e&&a&&(h=i.a.createElement(g.a,{onClick:a,kind:"link_sm"},Object(c.a)("Remove")));const m=P()({mx_AvatarSetting_avatar:!0,mx_AvatarSetting_avatar_hovering:s&&o});return i.a.createElement("div",{className:m},p,i.a.createElement("div",{className:"mx_AvatarSetting_hover"},i.a.createElement("div",{className:"mx_AvatarSetting_hoverBg"}),i.a.createElement("span",null,Object(c.a)("Upload"))),u,h)};cE.propTypes={avatarUrl:He.a.string,avatarName:He.a.string.isRequired,uploadAvatar:He.a.func,removeAvatar:He.a.func,avatarAltText:He.a.string.isRequired};var lE,dE,uE,hE=cE;let pE=Object(N.a)("views.settings.ChangeAvatar")((uE=dE=class e extends i.a.Component{constructor(t){super(t),R()(this,"onRoomStateEvents",e=>{this.props.room&&e.getRoomId()===this.props.room.roomId&&"m.room.avatar"===e.getType()&&e.getSender()===de.a.get().getUserId()&&(e.getContent().url||(this.avatarSet=!1,this.setState({})))}),R()(this,"onFileSelected",e=>(this.avatarSet=!0,this.setAvatarFromFile(e.target.files[0]))),R()(this,"onError",e=>{this.setState({errorText:Object(c.a)("Failed to upload profile picture!")})}),this.state={avatarUrl:this.props.initialAvatarUrl,phase:e.Phases.Display}}componentDidMount(){de.a.get().on("RoomState.events",this.onRoomStateEvents)}UNSAFE_componentWillReceiveProps(e){this.avatarSet||this.setState({avatarUrl:e.initialAvatarUrl})}componentWillUnmount(){de.a.get()&&de.a.get().removeListener("RoomState.events",this.onRoomStateEvents)}setAvatarFromFile(t){let n=null;this.setState({phase:e.Phases.Uploading});const o=this,r=de.a.get().uploadContent(t).then((function(e){return n=e,o.props.room?de.a.get().sendStateEvent(o.props.room.roomId,"m.room.avatar",{url:e},""):de.a.get().setAvatarUrl(e)}));return r.then((function(){o.setState({phase:e.Phases.Display,avatarUrl:Object(ge.b)(n).srcHttp})}),(function(t){o.setState({phase:e.Phases.Error}),o.onError(t)})),r}render(){let t,n;if(this.props.room&&!this.avatarSet){const e=d.getComponent("avatars.RoomAvatar");t=i.a.createElement(e,{room:this.props.room,width:this.props.width,height:this.props.height,resizeMethod:"crop"})}else{const e=d.getComponent("avatars.BaseAvatar");t=i.a.createElement(e,{width:this.props.width,height:this.props.height,resizeMethod:"crop",name:"?",idName:de.a.get().getUserIdLocalpart(),url:this.state.avatarUrl})}switch(this.props.showUploadSection&&(n=i.a.createElement("div",{className:this.props.className},Object(c.a)("Upload new:"),i.a.createElement("input",{type:"file",accept:"image/*",onChange:this.onFileSelected}),this.state.errorText)),this.state.phase){case e.Phases.Display:case e.Phases.Error:return i.a.createElement("div",null,i.a.createElement("div",{className:this.props.className},t),n);case e.Phases.Uploading:return i.a.createElement(Ao.a,null)}}},R()(dE,"propTypes",{initialAvatarUrl:He.a.string,room:He.a.object,showUploadSection:He.a.bool,width:He.a.number,height:He.a.number,className:He.a.string}),R()(dE,"Phases",{Display:"display",Uploading:"uploading",Error:"error"}),R()(dE,"defaultProps",{showUploadSection:!0,className:"",width:80,height:80}),lE=uE))||lE;var mE;let gE=Object(N.a)("views.settings.ChangeDisplayName")(mE=class extends i.a.Component{constructor(...e){super(...e),R()(this,"_getDisplayName",async()=>{const e=de.a.get();try{return(await e.getProfileInfo(e.getUserId())).displayname}catch(e){throw new Error("Failed to fetch display name")}}),R()(this,"_changeDisplayName",e=>de.a.get().setDisplayName(e).catch((function(e){throw new Error("Failed to set display name",e)})))}render(){const e=d.getComponent("elements.EditableTextContainer");return i.a.createElement(e,{getInitialValue:this._getDisplayName,placeholder:Object(c.a)("No display name"),blurToSubmit:!0,onSubmit:this._changeDisplayName})}})||mE;var fE,_E,bE;let vE=Object(N.a)("views.settings.ChangePassword")((bE=_E=class e extends i.a.Component{constructor(...t){super(...t),R()(this,"state",{fieldValid:{},phase:e.Phases.Edit,oldPassword:"",newPassword:"",newPasswordConfirm:""}),R()(this,"_onExportE2eKeysClicked",()=>{Ge.a.createTrackedDialogAsync("Export E2E Keys","Change Password",n.e(3).then(n.bind(null,1375)),{matrixClient:de.a.get()})}),R()(this,"onChangeOldPassword",e=>{this.setState({oldPassword:e.target.value})}),R()(this,"onOldPasswordValidate",async e=>{const t=await this.validateOldPasswordRules(e);return this.markFieldValid("field_old_password",t.valid),t}),R()(this,"validateOldPasswordRules",Object(go.a)({rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Passwords can't be empty")}]})),R()(this,"onChangeNewPassword",e=>{this.setState({newPassword:e.target.value})}),R()(this,"onNewPasswordValidate",e=>{this.markFieldValid("field_new_password",e.valid)}),R()(this,"onChangeNewPasswordConfirm",e=>{this.setState({newPasswordConfirm:e.target.value})}),R()(this,"onNewPasswordConfirmValidate",async e=>{const t=await this.validatePasswordConfirmRules(e);return this.markFieldValid("field_new_password_confirm",t.valid),t}),R()(this,"validatePasswordConfirmRules",Object(go.a)({rules:[{key:"required",test:({value:e,allowEmpty:t})=>t||!!e,invalid:()=>Object(c.a)("Confirm password")},{key:"match",test({value:e}){return!e||e===this.state.newPassword},invalid:()=>Object(c.a)("Passwords don't match")}]})),R()(this,"onClickChange",async e=>{e.preventDefault();if(!await this.verifyFieldsBeforeSubmit())return void E.a.instance.track("onboarding_registration_submit_failed");const t=this.state.oldPassword,n=this.state.newPassword,o=this.state.newPasswordConfirm,r=this.props.onCheckPassword(t,n,o);r?this.props.onError(r):this.changePassword(t,n)})}changePassword(e,t){const n=de.a.get();if(!this.props.confirm)return void this._changePassword(n,e,t);const o=d.getComponent("dialogs.QuestionDialog");Ge.a.createTrackedDialog("Change Password","",o,{title:Object(c.a)("Warning!"),description:i.a.createElement("div",null,Object(c.a)("Changing password will currently reset any end-to-end encryption keys on all sessions, making encrypted chat history unreadable, unless you first export your room keys and re-import them afterwards. In future this will be improved.")," ",i.a.createElement("a",{href:"https://github.com/vector-im/element-web/issues/2671",target:"_blank",rel:"noreferrer noopener"},"https://github.com/vector-im/element-web/issues/2671")),button:Object(c.a)("Continue"),extraButtons:[i.a.createElement("button",{key:"exportRoomKeys",className:"mx_Dialog_primary",onClick:this._onExportE2eKeysClicked},Object(c.a)("Export E2E room keys"))],onFinished:o=>{o&&this._changePassword(n,e,t)}})}_changePassword(t,n,o){const r={type:"m.login.password",identifier:{type:"m.id.user",user:t.credentials.userId},user:t.credentials.userId,password:n};this.setState({phase:e.Phases.Uploading}),t.setPassword(r,o).then(()=>{if(this.props.shouldAskForEmail)return this._optionallySetEmail().then(e=>{this.props.onFinished({didSetEmail:e})});this.props.onFinished()},e=>{this.props.onError(e)}).finally(()=>{this.setState({phase:e.Phases.Edit,oldPassword:"",newPassword:"",newPasswordConfirm:""})})}_optionallySetEmail(){const e=d.getComponent("dialogs.SetEmailDialog");return Ge.a.createTrackedDialog("Do you want to set an email address?","",e,{title:Object(c.a)("Do you want to set an email address?")}).finished.then(([e])=>e)}markFieldValid(e,t){const{fieldValid:n}=this.state;n[e]=t,this.setState({fieldValid:n})}async verifyFieldsBeforeSubmit(){const e=document.activeElement;e&&e.blur();const t=["field_old_password","field_new_password","field_new_password_confirm"];for(const e of t){const t=this[e];t&&await t.validate({allowEmpty:!1})}if(await new Promise(e=>this.setState({},e)),this.allFieldsValid())return!0;const n=this.findFirstInvalidField(t);return!n||(n.focus(),n.validate({allowEmpty:!1,focused:!0}),!1)}allFieldsValid(){const e=Object.keys(this.state.fieldValid);for(let t=0;t<e.length;++t)if(!this.state.fieldValid[e[t]])return!1;return!0}findFirstInvalidField(e){for(const t of e)if(!this.state.fieldValid[t]&&this[t])return this[t];return null}render(){const t=this.props.rowClassName,n=this.props.buttonClassName;switch(this.state.phase){case e.Phases.Edit:return i.a.createElement("form",{className:this.props.className,onSubmit:this.onClickChange},i.a.createElement("div",{className:t},i.a.createElement(qe.a,{ref:e=>this.field_old_password=e,type:"password",label:Object(c.a)("Current password"),value:this.state.oldPassword,onChange:this.onChangeOldPassword,onValidate:this.onOldPasswordValidate})),i.a.createElement("div",{className:t},i.a.createElement(Xo.a,{fieldRef:e=>this.field_new_password=e,type:"password",label:"New Password",minScore:3,value:this.state.newPassword,autoFocus:this.props.autoFocusNewPasswordInput,onChange:this.onChangeNewPassword,onValidate:this.onNewPasswordValidate,autoComplete:"new-password"})),i.a.createElement("div",{className:t},i.a.createElement(qe.a,{ref:e=>this.field_new_password_confirm=e,type:"password",label:Object(c.a)("Confirm password"),value:this.state.newPasswordConfirm,onChange:this.onChangeNewPasswordConfirm,onValidate:this.onNewPasswordConfirmValidate,autoComplete:"new-password"})),i.a.createElement(g.a,{className:n,kind:this.props.buttonKind,onClick:this.onClickChange},this.props.buttonLabel||Object(c.a)("Change Password")));case e.Phases.Uploading:return i.a.createElement("div",{className:"mx_Dialog_content"},i.a.createElement(Ao.a,null))}}},R()(_E,"propTypes",{onFinished:He.a.func,onError:He.a.func,onCheckPassword:He.a.func,rowClassName:He.a.string,buttonClassName:He.a.string,buttonKind:He.a.string,buttonLabel:He.a.string,confirm:He.a.bool,autoFocusNewPasswordInput:He.a.bool}),R()(_E,"Phases",{Edit:"edit",Uploading:"uploading",Error:"error"}),R()(_E,"defaultProps",{onFinished(){},onError(){},onCheckPassword:(e,t,n)=>t!==n?{error:Object(c.a)("New passwords don't match")}:t&&0!==t.length?void 0:{error:Object(c.a)("Passwords can't be empty")},confirm:!0}),fE=bE))||fE;var yE;let EE=Object(N.a)("views.settings.CrossSigningPanel")(yE=class extends i.a.PureComponent{constructor(e){super(e),R()(this,"onAccountData",e=>{const t=e.getType();(t.startsWith("m.cross_signing")||t.startsWith("m.secret_storage"))&&this._getUpdatedStatus()}),R()(this,"_onBootstrapClick",()=>{this._bootstrapCrossSigning({forceReset:!1})}),R()(this,"onStatusChanged",()=>{this._getUpdatedStatus()}),R()(this,"_bootstrapCrossSigning",async({forceReset:e=!1})=>{this.setState({error:null});try{const t=de.a.get();await t.bootstrapCrossSigning({authUploadDeviceSigningKeys:async e=>{const{finished:n}=Ge.a.createTrackedDialog("Cross-signing keys dialog","",Lu,{title:Object(c.a)("Setting up keys"),matrixClient:t,makeRequest:e}),[o]=await n;if(!o)throw new Error("Cross-signing key upload auth canceled")},setupNewCrossSigning:e})}catch(e){this.setState({error:e}),console.error("Error bootstrapping cross-signing",e)}this._unmounted||this._getUpdatedStatus()}),R()(this,"_resetCrossSigning",()=>{Ge.a.createDialog(kg,{onFinished:e=>{e&&this._bootstrapCrossSigning({forceReset:!0})}})}),this._unmounted=!1,this.state={error:null,crossSigningPublicKeysOnDevice:null,crossSigningPrivateKeysInStorage:null,masterPrivateKeyCached:null,selfSigningPrivateKeyCached:null,userSigningPrivateKeyCached:null,homeserverSupportsCrossSigning:null,crossSigningReady:null}}componentDidMount(){const e=de.a.get();e.on("accountData",this.onAccountData),e.on("userTrustStatusChanged",this.onStatusChanged),e.on("crossSigning.keysChanged",this.onStatusChanged),this._getUpdatedStatus()}componentWillUnmount(){this._unmounted=!0;const e=de.a.get();e&&(e.removeListener("accountData",this.onAccountData),e.removeListener("userTrustStatusChanged",this.onStatusChanged),e.removeListener("crossSigning.keysChanged",this.onStatusChanged))}async _getUpdatedStatus(){const e=de.a.get(),t=e.getCrossSigningCacheCallbacks(),n=e._crypto._crossSigningInfo,o=e._crypto._secretStorage,r=n.getId(),i=await n.isStoredInSecretStorage(o),a=!(!t||!await t.getCrossSigningKeyCache("master")),s=!(!t||!await t.getCrossSigningKeyCache("self_signing")),c=!(!t||!await t.getCrossSigningKeyCache("user_signing")),l=await e.doesServerSupportUnstableFeature("org.matrix.e2e_cross_signing"),d=await e.isCrossSigningReady();this.setState({crossSigningPublicKeysOnDevice:r,crossSigningPrivateKeysInStorage:i,masterPrivateKeyCached:a,selfSigningPrivateKeyCached:s,userSigningPrivateKeyCached:c,homeserverSupportsCrossSigning:l,crossSigningReady:d})}render(){const e=d.getComponent("elements.AccessibleButton"),{error:t,crossSigningPublicKeysOnDevice:n,crossSigningPrivateKeysInStorage:o,masterPrivateKeyCached:r,selfSigningPrivateKeyCached:a,userSigningPrivateKeyCached:s,homeserverSupportsCrossSigning:l,crossSigningReady:u}=this.state;let h,p;t&&(h=i.a.createElement("div",{className:"error"},t.toString())),p=void 0===l?i.a.createElement(Ao.a,null):l?u?i.a.createElement("p",null,"✅ ",Object(c.a)("Cross-signing is ready for use.")):o?i.a.createElement("p",null,Object(c.a)("Your account has a cross-signing identity in secret storage, but it is not yet trusted by this session.")):i.a.createElement("p",null,Object(c.a)("Cross-signing is not set up.")):i.a.createElement("p",null,Object(c.a)("Your homeserver does not support cross-signing."));const m=n||o||r||a||s,g=[];let f;return!(n&&o&&r&&a&&s)&&l&&g.push(i.a.createElement(e,{key:"setup",kind:"primary",onClick:this._onBootstrapClick},Object(c.a)("Set up"))),m&&g.push(i.a.createElement(e,{key:"reset",kind:"danger",onClick:this._resetCrossSigning},Object(c.a)("Reset"))),g.length&&(f=i.a.createElement("div",{className:"mx_CrossSigningPanel_buttonRow"},g)),i.a.createElement("div",null,p,i.a.createElement("details",null,i.a.createElement("summary",null,Object(c.a)("Advanced")),i.a.createElement("table",{className:"mx_CrossSigningPanel_statusList"},i.a.createElement("tbody",null,i.a.createElement("tr",null,i.a.createElement("td",null,Object(c.a)("Cross-signing public keys:")),i.a.createElement("td",null,n?Object(c.a)("in memory"):Object(c.a)("not found"))),i.a.createElement("tr",null,i.a.createElement("td",null,Object(c.a)("Cross-signing private keys:")),i.a.createElement("td",null,o?Object(c.a)("in secret storage"):Object(c.a)("not found in storage"))),i.a.createElement("tr",null,i.a.createElement("td",null,Object(c.a)("Master private key:")),i.a.createElement("td",null,r?Object(c.a)("cached locally"):Object(c.a)("not found locally"))),i.a.createElement("tr",null,i.a.createElement("td",null,Object(c.a)("Self signing private key:")),i.a.createElement("td",null,a?Object(c.a)("cached locally"):Object(c.a)("not found locally"))),i.a.createElement("tr",null,i.a.createElement("td",null,Object(c.a)("User signing private key:")),i.a.createElement("td",null,s?Object(c.a)("cached locally"):Object(c.a)("not found locally"))),i.a.createElement("tr",null,i.a.createElement("td",null,Object(c.a)("Homeserver feature support:")),i.a.createElement("td",null,l?Object(c.a)("exists"):Object(c.a)("not found")))))),h,f)}})||yE;var SE;let wE=Object(N.a)("views.settings.DevicesPanel")(SE=class extends i.a.Component{constructor(e){super(e),this.state={devices:void 0,deviceLoadError:void 0,selectedDevices:[],deleting:!1},this._unmounted=!1,this._renderDevice=this._renderDevice.bind(this),this._onDeviceSelectionToggled=this._onDeviceSelectionToggled.bind(this),this._onDeleteClick=this._onDeleteClick.bind(this)}componentDidMount(){this._loadDevices()}componentWillUnmount(){this._unmounted=!0}_loadDevices(){de.a.get().getDevices().then(e=>{this._unmounted||this.setState({devices:e.devices||[]})},e=>{if(this._unmounted)return;let t;404==e.httpStatus?t=Object(c.a)("Your homeserver does not support session management."):(console.error("Error loading sessions:",e),t=Object(c.a)("Unable to load session list")),this.setState({deviceLoadError:t})})}_deviceCompare(e,t){const n=(t.last_seen_ts||0)-(e.last_seen_ts||0);if(0!==n)return n;const o=e.device_id,r=t.device_id;return o<r?-1:o>r?1:0}_onDeviceSelectionToggled(e){if(this._unmounted)return;const t=e.device_id;this.setState((e,n)=>{const o=e.selectedDevices.slice(),r=o.indexOf(t);return-1===r?o.push(t):o.splice(r,1),{selectedDevices:o}})}_onDeleteClick(){this.setState({deleting:!0}),this._makeDeleteRequest(null).catch(e=>{if(this._unmounted)return;if(401!==e.httpStatus||!e.data||!e.data.flows)throw e;const t=d.getComponent("dialogs.InteractiveAuthDialog"),n=this.state.selectedDevices.length,o={[Pu.c.PHASE_PREAUTH]:{title:Object(c.a)("Use Single Sign On to continue"),body:Object(c.a)("Confirm deleting these sessions by using Single Sign On to prove your identity.",{count:n}),continueText:Object(c.a)("Single Sign On"),continueKind:"primary"},[Pu.c.PHASE_POSTAUTH]:{title:Object(c.a)("Confirm deleting these sessions"),body:Object(c.a)("Click the button below to confirm deleting these sessions.",{count:n}),continueText:Object(c.a)("Delete sessions",{count:n}),continueKind:"danger"}};Ge.a.createTrackedDialog("Delete Device Dialog","",t,{title:Object(c.a)("Authentication"),matrixClient:de.a.get(),authData:e.data,makeRequest:this._makeDeleteRequest.bind(this),aestheticsForStagePhases:{[Pu.c.LOGIN_TYPE]:o,[Pu.c.UNSTABLE_LOGIN_TYPE]:o}})}).catch(e=>{console.error("Error deleting sessions",e),this._unmounted}).finally(()=>{this.setState({deleting:!1})})}_makeDeleteRequest(e){return de.a.get().deleteMultipleDevices(this.state.selectedDevices,e).then(()=>{this.setState({devices:this.state.devices.filter(e=>!this.state.selectedDevices.includes(e.device_id)),selectedDevices:[]})})}_renderDevice(e){const t=d.getComponent("settings.DevicesPanelEntry");return i.a.createElement(t,{key:e.device_id,device:e,selected:this.state.selectedDevices.includes(e.device_id),onDeviceToggled:this._onDeviceSelectionToggled})}render(){const e=d.getComponent("elements.Spinner"),t=d.getComponent("elements.AccessibleButton");if(void 0!==this.state.deviceLoadError){const e=P()(this.props.className,"error");return i.a.createElement("div",{className:e},this.state.deviceLoadError)}const n=this.state.devices;if(void 0===n){const t=this.props.className;return i.a.createElement(e,{className:t})}n.sort(this._deviceCompare);const o=this.state.deleting?i.a.createElement(e,{w:22,h:22}):i.a.createElement(t,{onClick:this._onDeleteClick,kind:"danger_sm"},Object(c.a)("Delete %(count)s sessions",{count:this.state.selectedDevices.length})),r=P()(this.props.className,"mx_DevicesPanel");return i.a.createElement("div",{className:r},i.a.createElement("div",{className:"mx_DevicesPanel_header"},i.a.createElement("div",{className:"mx_DevicesPanel_deviceId"},Object(c.a)("ID")),i.a.createElement("div",{className:"mx_DevicesPanel_deviceName"},Object(c.a)("Public Name")),i.a.createElement("div",{className:"mx_DevicesPanel_deviceLastSeen"},Object(c.a)("Last seen")),i.a.createElement("div",{className:"mx_DevicesPanel_deviceButtons"},this.state.selectedDevices.length>0?o:null)),n.map(this._renderDevice))}})||SE;var CE;wE.propTypes={className:He.a.string};let TE=Object(N.a)("views.settings.DevicesPanelEntry")(CE=class extends i.a.Component{constructor(e){super(e),this._unmounted=!1,this.onDeviceToggled=this.onDeviceToggled.bind(this),this._onDisplayNameChanged=this._onDisplayNameChanged.bind(this)}componentWillUnmount(){this._unmounted=!0}_onDisplayNameChanged(e){const t=this.props.device;return de.a.get().setDeviceDetails(t.device_id,{display_name:e}).catch(e=>{throw console.error("Error setting session display name",e),new Error(Object(c.a)("Failed to set display name"))})}onDeviceToggled(){this.props.onDeviceToggled(this.props.device)}render(){const e=d.getComponent("elements.EditableTextContainer"),t=this.props.device;let n="";if(t.last_seen_ts){const e=Object(Rd.a)(new Date(t.last_seen_ts));n=t.last_seen_ip+" @ "+e.toLocaleString()}let o="";return t.device_id===de.a.get().getDeviceId()&&(o=" mx_DevicesPanel_myDevice"),i.a.createElement("div",{className:"mx_DevicesPanel_device"+o},i.a.createElement("div",{className:"mx_DevicesPanel_deviceId"},t.device_id),i.a.createElement("div",{className:"mx_DevicesPanel_deviceName"},i.a.createElement(e,{initialValue:t.display_name,onSubmit:this._onDisplayNameChanged,placeholder:t.device_id})),i.a.createElement("div",{className:"mx_DevicesPanel_lastSeen"},n),i.a.createElement("div",{className:"mx_DevicesPanel_deviceButtons"},i.a.createElement($r.a,{onChange:this.onDeviceToggled,checked:this.props.selected})))}})||CE;TE.propTypes={device:He.a.object.isRequired,onDeviceToggled:He.a.func},TE.defaultProps={onDeviceToggled:function(){}};var xE,OE=n(672);let kE=Object(N.a)("views.settings.EventIndexPanel")(xE=class extends i.a.Component{constructor(){super(),R()(this,"updateCurrentRoom",async e=>{const t=Zl.a.get();let n;try{n=await t.getStats()}catch{return}this.setState({eventIndexSize:n.size,roomCount:n.roomCount})}),R()(this,"_onManage",async()=>{Ge.a.createTrackedDialogAsync("Message search","Message search",n.e(27).then(n.bind(null,1395)),{onFinished:()=>{}},null,!1,!0)}),R()(this,"_onEnable",async()=>{this.setState({enabling:!0}),await Zl.a.initEventIndex(),await Zl.a.get().addInitialCheckpoints(),await Zl.a.get().startCrawler(),await G.b.setValue("enableEventIndexing",null,tt.a.DEVICE,!0),await this.updateState()}),R()(this,"_confirmEventStoreReset",()=>{const e=this,{close:t}=Ge.a.createDialog(yr,{onFinished:async n=>{n&&(await G.b.setValue("enableEventIndexing",null,tt.a.DEVICE,!1),await Zl.a.deleteEventIndex(),await e._onEnable(),t())}})}),this.state={enabling:!1,eventIndexSize:0,roomCount:0,eventIndexingEnabled:G.b.getValueAt(tt.a.DEVICE,"enableEventIndexing")}}componentWillUnmount(){const e=Zl.a.get();null!==e&&e.removeListener("changedCheckpoint",this.updateCurrentRoom)}async componentDidMount(){this.updateState()}async updateState(){const e=Zl.a.get(),t=G.b.getValueAt(tt.a.DEVICE,"enableEventIndexing");let n=0,o=0;if(null!==e){e.on("changedCheckpoint",this.updateCurrentRoom);try{const t=await e.getStats();n=t.size,o=t.roomCount}catch{}}this.setState({enabling:!1,eventIndexSize:n,roomCount:o,eventIndexingEnabled:t})}render(){let e=null;const t=d.getComponent("elements.InlineSpinner"),n=l.a.get().brand;if(null!==Zl.a.get())e=i.a.createElement("div",null,i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("Securely cache encrypted messages locally for them to appear in search results, using %(size)s to store messages from %(rooms)s rooms.",{size:Object(J.a)(this.state.eventIndexSize,0),count:this.state.roomCount,rooms:Object(J.d)(this.state.roomCount)})),i.a.createElement("div",null,i.a.createElement(g.a,{kind:"primary",onClick:this._onManage},Object(c.a)("Manage"))));else if(!this.state.eventIndexingEnabled&&Zl.a.supportIsInstalled())e=i.a.createElement("div",null,i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("Securely cache encrypted messages locally for them to appear in search results.")),i.a.createElement("div",null,i.a.createElement(g.a,{kind:"primary",disabled:this.state.enabling,onClick:this._onEnable},Object(c.a)("Enable")),this.state.enabling?i.a.createElement(t,null):i.a.createElement("div",null)));else if(Zl.a.platformHasSupport()&&!Zl.a.supportIsInstalled()){const t="https://github.com/vector-im/element-desktop/blob/develop/docs/native-node-modules.md#adding-seshat-for-search-in-e2e-encrypted-rooms";e=i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("%(brand)s is missing some components required for securely caching encrypted messages locally. If you'd like to experiment with this feature, build a custom %(brand)s Desktop with <nativeLink>search components added</nativeLink>.",{brand:n},{nativeLink:e=>i.a.createElement("a",{href:t,target:"_blank",rel:"noreferrer noopener"},e)}))}else e=Zl.a.platformHasSupport()?i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},i.a.createElement("p",null,this.state.enabling?i.a.createElement(t,null):Object(c.a)("Message search initilisation failed")),Zl.a.error&&i.a.createElement("details",null,i.a.createElement("summary",null,Object(c.a)("Advanced")),i.a.createElement("code",null,Zl.a.error.message),i.a.createElement("p",null,i.a.createElement(g.a,{key:"delete",kind:"danger",onClick:this._confirmEventStoreReset},Object(c.a)("Reset"))))):i.a.createElement("div",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("%(brand)s can't securely cache encrypted messages locally while running in a web browser. Use <desktopLink>%(brand)s Desktop</desktopLink> for encrypted messages to appear in search results.",{brand:n},{desktopLink:e=>i.a.createElement("a",{href:"https://element.io/get-started",target:"_blank",rel:"noreferrer noopener"},e)}));return e}})||xE;var RE=n(600);let DE,IE,AE,NE;!function(e){e.AllMessages="all_messages",e.DirectMessagesMentionsKeywords="dm_mentions_keywords",e.MentionsKeywordsOnly="mentions_keywords",e.Never="never"}(DE||(DE={})),function(e){e.Notify="notify",e.DontNotify="dont_notify",e.Coalesce="coalesce",e.MarkUnread="mark_unread"}(IE||(IE={})),function(e){e.Override="override",e.ContentSpecific="content",e.RoomSpecific="room",e.SenderSpecific="sender",e.Underride="underride"}(AE||(AE={})),function(e){e.MasterRule=".m.rule.master",e.MessageRule=".m.rule.message",e.EncryptedMessageRule=".m.rule.encrypted",e.RoomOneToOneRule=".m.rule.room_one_to_one",e.EncryptedRoomOneToOneRule=".m.rule.room_one_to_one"}(NE||(NE={}));class FE{static encodeActions(e){const t=e.notify,n=e.sound,o=e.highlight;if(t){const e=[IE.Notify];return n&&e.push({set_tweak:"sound",value:n}),o?e.push({set_tweak:"highlight"}):e.push({set_tweak:"highlight",value:!1}),e}return[IE.DontNotify]}static decodeActions(e){let t=!1,n=null,o=!1;for(let r=0;r<e.length;++r){const i=e[r];if(i===IE.Notify)t=!0;else if(i===IE.DontNotify)t=!1;else{if("object"!=typeof i)return null;if("sound"===i.set_tweak)n=i.value;else{if("highlight"!==i.set_tweak)return null;o=i.value}}}void 0===o&&(o=!0);const r={notify:t,highlight:o};return null!==n&&(r.sound=n),r}}const ME=FE.encodeActions;class PE{}let LE;R()(PE,"ACTION_NOTIFY",ME({notify:!0})),R()(PE,"ACTION_NOTIFY_DEFAULT_SOUND",ME({notify:!0,sound:"default"})),R()(PE,"ACTION_NOTIFY_RING_SOUND",ME({notify:!0,sound:"ring"})),R()(PE,"ACTION_HIGHLIGHT",ME({notify:!0,highlight:!0})),R()(PE,"ACTION_HIGHLIGHT_DEFAULT_SOUND",ME({notify:!0,sound:"default",highlight:!0})),R()(PE,"ACTION_DONT_NOTIFY",ME({notify:!1})),R()(PE,"ACTION_DISABLED",null),function(e){e.Off="off",e.On="on",e.Loud="loud"}(LE||(LE={}));class jE{static actionsFor(e){return e===LE.On?PE.ACTION_NOTIFY:e===LE.Loud?PE.ACTION_HIGHLIGHT_DEFAULT_SOUND:void 0}static contentRuleVectorStateKind(e){const t=FE.decodeActions(e.actions);if(!t)return null;let n=0;t.sound&&n++,t.highlight&&n++;let o=null;switch(n){case 0:o=LE.On;break;case 2:o=LE.Loud}return o}}R()(jE,"OFF",LE.Off),R()(jE,"ON",LE.On),R()(jE,"LOUD",LE.Loud),R()(jE,"states",LE);class UE{constructor(e){this.kind=e.kind,this.description=e.description,this.vectorStateToActions=e.vectorStateToActions}ruleToVectorState(e){let t=!1;e&&(t=e.enabled);for(const n in jE.states){const o=jE.states[n],r=this.vectorStateToActions[o];if(r){if(t&&JSON.stringify(FE.decodeActions(e.actions))===JSON.stringify(FE.decodeActions(r)))return o}else if(!t)return o}console.error(`Cannot translate rule actions into Vector rule state. Rule: ${JSON.stringify(e)}, Expected: `+JSON.stringify(this.vectorStateToActions))}}const BE={".m.rule.contains_display_name":new UE({kind:"override",description:Object(c.b)("Messages containing my display name"),vectorStateToActions:{on:PE.ACTION_NOTIFY,loud:PE.ACTION_HIGHLIGHT_DEFAULT_SOUND,off:PE.ACTION_DISABLED}}),".m.rule.contains_user_name":new UE({kind:"override",description:Object(c.b)("Messages containing my username"),vectorStateToActions:{on:PE.ACTION_NOTIFY,loud:PE.ACTION_HIGHLIGHT_DEFAULT_SOUND,off:PE.ACTION_DISABLED}}),".m.rule.roomnotif":new UE({kind:"override",description:Object(c.b)("Messages containing @room"),vectorStateToActions:{on:PE.ACTION_NOTIFY,loud:PE.ACTION_HIGHLIGHT,off:PE.ACTION_DISABLED}}),".m.rule.room_one_to_one":new UE({kind:"underride",description:Object(c.b)("Messages in one-to-one chats"),vectorStateToActions:{on:PE.ACTION_NOTIFY,loud:PE.ACTION_NOTIFY_DEFAULT_SOUND,off:PE.ACTION_DONT_NOTIFY}}),".m.rule.encrypted_room_one_to_one":new UE({kind:"underride",description:Object(c.b)("Encrypted messages in one-to-one chats"),vectorStateToActions:{on:PE.ACTION_NOTIFY,loud:PE.ACTION_NOTIFY_DEFAULT_SOUND,off:PE.ACTION_DONT_NOTIFY}}),".m.rule.message":new UE({kind:"underride",description:Object(c.b)("Messages in group chats"),vectorStateToActions:{on:PE.ACTION_NOTIFY,loud:PE.ACTION_NOTIFY_DEFAULT_SOUND,off:PE.ACTION_DONT_NOTIFY}}),".m.rule.encrypted":new UE({kind:"underride",description:Object(c.b)("Encrypted messages in group chats"),vectorStateToActions:{on:PE.ACTION_NOTIFY,loud:PE.ACTION_NOTIFY_DEFAULT_SOUND,off:PE.ACTION_DONT_NOTIFY}}),".m.rule.invite_for_me":new UE({kind:"underride",description:Object(c.b)("When I'm invited to a room"),vectorStateToActions:{on:PE.ACTION_NOTIFY,loud:PE.ACTION_NOTIFY_DEFAULT_SOUND,off:PE.ACTION_DISABLED}}),".m.rule.call":new UE({kind:"underride",description:Object(c.b)("Call invitation"),vectorStateToActions:{on:PE.ACTION_NOTIFY,loud:PE.ACTION_NOTIFY_RING_SOUND,off:PE.ACTION_DISABLED}}),".m.rule.suppress_notices":new UE({kind:"override",description:Object(c.b)("Messages sent by bot"),vectorStateToActions:{on:PE.ACTION_DISABLED,loud:PE.ACTION_NOTIFY_DEFAULT_SOUND,off:PE.ACTION_DONT_NOTIFY}}),".m.rule.tombstone":new UE({kind:"override",description:Object(c.b)("When rooms are upgraded"),vectorStateToActions:{on:PE.ACTION_NOTIFY,loud:PE.ACTION_HIGHLIGHT,off:PE.ACTION_DISABLED}})};var qE,GE,VE;const HE={"im.vector.rule.contains_display_name":".m.rule.contains_display_name","im.vector.rule.room_one_to_one":".m.rule.room_one_to_one","im.vector.rule.room_message":".m.rule.message","im.vector.rule.invite_for_me":".m.rule.invite_for_me","im.vector.rule.call":".m.rule.call","im.vector.rule.notices":".m.rule.suppress_notices"};function zE(e){const t=FE.decodeActions(e);return null!==t?FE.encodeActions(t):e}let KE=Object(N.a)("views.settings.Notifications")((VE=GE=class e extends i.a.Component{constructor(...t){super(...t),R()(this,"state",{phase:e.phases.LOADING,masterPushRule:void 0,vectorPushRules:[],vectorContentRules:{vectorState:jE.ON,rules:[]},externalPushRules:[],externalContentRules:[],threepids:[]}),R()(this,"onEnableNotificationsChange",t=>{const n=this;this.setState({phase:e.phases.LOADING}),de.a.get().setPushRuleEnabled("global",n.state.masterPushRule.kind,n.state.masterPushRule.rule_id,!t).then((function(){n._refreshFromServer()}))}),R()(this,"onEnableDesktopNotificationsChange",e=>{G.b.setValue("notificationsEnabled",null,tt.a.DEVICE,e).finally(()=>{this.forceUpdate()})}),R()(this,"onEnableDesktopNotificationBodyChange",e=>{G.b.setValue("notificationBodyEnabled",null,tt.a.DEVICE,e).finally(()=>{this.forceUpdate()})}),R()(this,"onEnableAudioNotificationsChange",e=>{G.b.setValue("audioNotificationsEnabled",null,tt.a.DEVICE,e).finally(()=>{this.forceUpdate()})}),R()(this,"onEnableEmailNotificationsChange",(e,t)=>{let n;if(t){const t={};t.brand=l.a.get().brand,n=de.a.get().setPusher({kind:"email",app_id:"m.email",pushkey:e,app_display_name:"Email Notifications",device_display_name:e,lang:navigator.language,data:t,append:!0})}else{const t=this.getEmailPusher(this.state.pushers,e);t.kind=null,n=de.a.get().setPusher(t)}n.then(()=>{this._refreshFromServer()},e=>{const t=d.getComponent("dialogs.ErrorDialog");Ge.a.createTrackedDialog("Error saving email notification preferences","",t,{title:Object(c.a)("Error saving email notification preferences"),description:Object(c.a)("An error occurred whilst saving your email notification preferences.")})})}),R()(this,"onNotifStateButtonClicked",e=>{const t=e.target.className.split("-")[0],n=e.target.className.split("-")[1];if("_keywords"===t)this._setKeywordsPushRuleVectorState(n);else{const e=this.getRule(t);e&&this._setPushRuleVectorState(e,n)}}),R()(this,"onKeywordsClicked",e=>{let t=[];for(const e in this.state.vectorContentRules.rules){const n=this.state.vectorContentRules.rules[e];t.push(n.pattern)}t.length?(t.sort(),t=t.join(", ")):t="";const n=d.getComponent("dialogs.TextInputDialog");Ge.a.createTrackedDialog("Keywords Dialog","",n,{title:Object(c.a)("Keywords"),description:Object(c.a)("Enter keywords separated by a comma:"),button:Object(c.a)("OK"),value:t,onFinished:(e,n)=>{if(e&&n!==t){let e=n.split(",");for(const t in e)e[t]=e[t].trim();e=e.reduce((function(e,t){return""!==t&&e.indexOf(t)<0&&e.push(t),e}),[]),this._setKeywords(e)}}})}),R()(this,"_refreshFromServer",()=>{const t=this,n=de.a.get().getPushRules().then(t._portRulesToNewAPI).then((function(e){de.a.get().pushRules=e;const n={".m.rule.master":"master",".m.rule.contains_display_name":"vector",".m.rule.contains_user_name":"vector",".m.rule.roomnotif":"vector",".m.rule.room_one_to_one":"vector",".m.rule.encrypted_room_one_to_one":"vector",".m.rule.message":"vector",".m.rule.encrypted":"vector",".m.rule.invite_for_me":"vector",".m.rule.call":"vector",".m.rule.suppress_notices":"vector",".m.rule.tombstone":"vector"},o={master:[],vector:{},others:[]};for(const t in e.global)for(let r=0;r<Object.keys(e.global[t]).length;++r){const i=e.global[t][r],a=n[i.rule_id];i.kind=t,"."===i.rule_id[0]&&("vector"===a?o.vector[i.rule_id]=i:"master"===a?o.master.push(i):o.others.push(i))}o.master.length>0&&(t.state.masterPushRule=o.master[0]);const r=class{static parseContentRules(e){const t=this._categoriseContentRules(e);return t.loud.length?{vectorState:LE.Loud,rules:t.loud,externalRules:[...t.loud_but_disabled,...t.on,...t.on_but_disabled,...t.other]}:t.loud_but_disabled.length?{vectorState:LE.Off,rules:t.loud_but_disabled,externalRules:[...t.on,...t.on_but_disabled,...t.other]}:t.on.length?{vectorState:LE.On,rules:t.on,externalRules:[...t.on_but_disabled,...t.other]}:t.on_but_disabled.length?{vectorState:LE.Off,rules:t.on_but_disabled,externalRules:t.other}:{vectorState:LE.On,rules:[],externalRules:t.other}}static _categoriseContentRules(e){const t={on:[],on_but_disabled:[],loud:[],loud_but_disabled:[],other:[]};for(const n in e.global)for(let o=0;o<Object.keys(e.global[n]).length;++o){const r=e.global[n][o];if("."!==r.rule_id[0]&&"content"===n)switch(r.kind=n,jE.contentRuleVectorStateKind(r)){case LE.On:r.enabled?t.on.push(r):t.on_but_disabled.push(r);break;case LE.Loud:r.enabled?t.loud.push(r):t.loud_but_disabled.push(r);break;default:t.other.push(r)}}return t}}.parseContentRules(e);t.state.vectorContentRules={vectorState:r.vectorState,rules:r.rules},t.state.externalContentRules=r.externalRules,t.state.vectorPushRules=[],t.state.externalPushRules=[];const a=[".m.rule.contains_display_name",".m.rule.contains_user_name",".m.rule.roomnotif","_keywords",".m.rule.room_one_to_one",".m.rule.encrypted_room_one_to_one",".m.rule.message",".m.rule.encrypted",".m.rule.invite_for_me",".m.rule.call",".m.rule.suppress_notices",".m.rule.tombstone"];for(const e in a){const n=a[e];if("_keywords"===n)t.state.vectorPushRules.push({vectorRuleId:"_keywords",description:i.a.createElement("span",null,Object(c.a)("Messages containing <span>keywords</span>",{},{span:e=>i.a.createElement("span",{className:"mx_UserNotifSettings_keywords",onClick:t.onKeywordsClicked},e)})),vectorState:t.state.vectorContentRules.vectorState});else{const e=BE[n],r=o.vector[n],i=e.ruleToVectorState(r);t.state.vectorPushRules.push({vectorRuleId:n,description:Object(c.a)(e.description),rule:r,vectorState:i}),r&&!i&&(r.description=e.description,t.state.externalPushRules.push(r))}}const s={".m.rule.message":Object(c.a)("Notify for all other messages/rooms"),".m.rule.fallback":Object(c.a)("Notify me for anything else")};for(const e in o.others){const n=o.others[e],r=s[n.rule_id];r&&n.enabled&&!n.default&&(n.description=r,t.state.externalPushRules.push(n))}})),o=de.a.get().getPushers().then((function(e){t.setState({pushers:e.pushers})}));Promise.all([n,o]).then((function(){t.setState({phase:e.phases.DISPLAY})}),(function(n){console.error(n),t.setState({phase:e.phases.ERROR})})).finally(()=>{t.setState({masterPushRule:t.state.masterPushRule,vectorContentRules:t.state.vectorContentRules,vectorPushRules:t.state.vectorPushRules,externalContentRules:t.state.externalContentRules,externalPushRules:t.state.externalPushRules})}),de.a.get().getThreePids().then(e=>this.setState({threepids:e.threepids}))}),R()(this,"_onClearNotifications",()=>{const e=de.a.get();e.getRooms().forEach(t=>{if(t.getUnreadNotificationCount()>0){const n=t.getLiveTimeline().getEvents();n.length&&e.sendReadReceipt(n.pop())}})})}componentDidMount(){this._refreshFromServer()}getEmailPusher(e,t){if(void 0!==e)for(let n=0;n<e.length;++n)if("email"===e[n].kind&&e[n].pushkey===t)return e[n]}getRule(e){for(const t in this.state.vectorPushRules){const n=this.state.vectorPushRules[t];if(n.vectorRuleId===e)return n}}_setPushRuleVectorState(t,n){if(t&&t.vectorState!==n){this.setState({phase:e.phases.LOADING});const o=this,r=de.a.get(),i=[],a=BE[t.vectorRuleId];if(t.rule){const e=a.vectorStateToActions[n];e?i.push(this._updatePushRuleActions(t.rule,e,!0)):i.push(r.setPushRuleEnabled("global",t.rule.kind,t.rule.rule_id,!1))}Promise.all(i).then((function(){o._refreshFromServer()}),(function(e){const t=d.getComponent("dialogs.ErrorDialog");console.error("Failed to change settings: "+e),Ge.a.createTrackedDialog("Failed to change settings","",t,{title:Object(c.a)("Failed to change settings"),description:e&&e.message?e.message:Object(c.a)("Operation failed"),onFinished:o._refreshFromServer})}))}}_setKeywordsPushRuleVectorState(t){if(this.state.vectorContentRules.vectorState===t||0===this.state.vectorContentRules.rules.length)return;const n=this,o=de.a.get();this.setState({phase:e.phases.LOADING});const r=[];for(const e in this.state.vectorContentRules.rules){const n=this.state.vectorContentRules.rules[e];let i,a;switch(t){case jE.ON:1!==n.actions.length&&(a=jE.actionsFor(jE.ON)),this.state.vectorContentRules.vectorState===jE.OFF&&(i=!0);break;case jE.LOUD:3!==n.actions.length&&(a=jE.actionsFor(jE.LOUD)),this.state.vectorContentRules.vectorState===jE.OFF&&(i=!0);break;case jE.OFF:i=!1}a?r.push(this._updatePushRuleActions(n,a,i)):null!=i&&r.push(o.setPushRuleEnabled("global",n.kind,n.rule_id,i))}Promise.all(r).then((function(e){n._refreshFromServer()}),(function(e){const t=d.getComponent("dialogs.ErrorDialog");console.error("Can't update user notification settings: "+e),Ge.a.createTrackedDialog("Can't update user notifcation settings","",t,{title:Object(c.a)("Can't update user notification settings"),description:e&&e.message?e.message:Object(c.a)("Operation failed"),onFinished:n._refreshFromServer})}))}_setKeywords(t){this.setState({phase:e.phases.LOADING});const n=this,o=de.a.get(),r=[],i=[];for(const e in n.state.vectorContentRules.rules){const a=n.state.vectorContentRules.rules[e];i.push(a.pattern),t.indexOf(a.pattern)<0&&r.push(o.deletePushRule("global",a.kind,a.rule_id))}for(const e in n.state.externalContentRules){const i=n.state.externalContentRules[e];t.indexOf(i.pattern)>=0&&r.push(o.deletePushRule("global",i.kind,i.rule_id))}const a=function(e){const t=d.getComponent("dialogs.ErrorDialog");console.error("Failed to update keywords: "+e),Ge.a.createTrackedDialog("Failed to update keywords","",t,{title:Object(c.a)("Failed to update keywords"),description:e&&e.message?e.message:Object(c.a)("Operation failed"),onFinished:n._refreshFromServer})};Promise.all(r).then((function(e){const r=[];let s=n.state.vectorContentRules.vectorState;s===jE.OFF&&(s=n.state.vectorContentRules.rules.length?jE.contentRuleVectorStateKind(n.state.vectorContentRules.rules[0]):jE.ON);for(const e in t){const a=t[e];i.indexOf(a)<0&&(n.state.vectorContentRules.vectorState!==jE.OFF?r.push(o.addPushRule("global","content",a,{actions:jE.actionsFor(s),pattern:a})):r.push(n._addDisabledPushRule("global","content",a,{actions:jE.actionsFor(s),pattern:a})))}Promise.all(r).then((function(e){n._refreshFromServer()}),a)}),a)}_addDisabledPushRule(e,t,n,o){const r=de.a.get();return r.addPushRule(e,t,n,o).then(()=>r.setPushRuleEnabled(e,t,n,!1))}_portRulesToNewAPI(e){const t=[],n=de.a.get();for(const o in e.global){const r=e.global[o];for(let e=0;e<r.length;++e){const i=r[e];i.rule_id in HE&&(console.log("Porting legacy rule",i),t.push(function(e,t){return n.setPushRuleActions("global",e,HE[t.rule_id],zE(t.actions)).then(()=>n.deletePushRule("global",e,t.rule_id)).catch(e=>{console.warn("Error when porting legacy rule: "+e)})}(o,i)))}}return t.length>0?Promise.all(t).then(()=>n.getPushRules()):e}_updatePushRuleActions(e,t,n){const o=de.a.get();return o.setPushRuleActions("global",e.kind,e.rule_id,t).then((function(){if(null!=n)return o.setPushRuleEnabled("global",e.kind,e.rule_id,n)}))}renderNotifRulesTableRow(e,t,n){return i.a.createElement("tr",{key:t},i.a.createElement("th",null,e),i.a.createElement("th",null,i.a.createElement("input",{className:t+"-"+jE.OFF,type:"radio",checked:n===jE.OFF,onChange:this.onNotifStateButtonClicked})),i.a.createElement("th",null,i.a.createElement("input",{className:t+"-"+jE.ON,type:"radio",checked:n===jE.ON,onChange:this.onNotifStateButtonClicked})),i.a.createElement("th",null,i.a.createElement("input",{className:t+"-"+jE.LOUD,type:"radio",checked:n===jE.LOUD,onChange:this.onNotifStateButtonClicked})))}renderNotifRulesTableRows(){const e=[];for(const t in this.state.vectorPushRules){const n=this.state.vectorPushRules[t];void 0===n.rule&&n.vectorRuleId.startsWith(".m.")?console.warn(`Skipping render of rule ${n.vectorRuleId} due to no underlying rule`):e.push(this.renderNotifRulesTableRow(n.description,n.vectorRuleId,n.vectorState))}return e}hasEmailPusher(e,t){if(void 0===e)return!1;for(let n=0;n<e.length;++n)if("email"===e[n].kind&&e[n].pushkey===t)return!0;return!1}emailNotificationsRow(e,t){return i.a.createElement(wm.a,{value:this.hasEmailPusher(this.state.pushers,e),onChange:this.onEnableEmailNotificationsChange.bind(this,e),label:t,key:"emailNotif_"+t})}render(){let t,n,o;if(this.state.phase===e.phases.LOADING){const e=d.getComponent("elements.Spinner");t=i.a.createElement(e,null)}if(this.state.masterPushRule&&(n=i.a.createElement(wm.a,{value:!this.state.masterPushRule.enabled,onChange:this.onEnableNotificationsChange,label:Object(c.a)("Enable notifications for this account")})),de.a.get().getRooms().some(e=>e.getUnreadNotificationCount()>0)&&(o=i.a.createElement(g.a,{onClick:this._onClearNotifications,kind:"danger"},Object(c.a)("Clear notifications"))),this.state.masterPushRule&&this.state.masterPushRule.enabled)return i.a.createElement("div",null,n,i.a.createElement("div",{className:"mx_UserNotifSettings_notifTable"},Object(c.a)("All notifications are currently disabled for all targets.")),o);const r=this.state.threepids.filter(e=>"email"===e.medium);let a;r.length>0?a=r.map(e=>this.emailNotificationsRow(e.address,`${Object(c.a)("Enable email notifications")} (${e.address})`)):G.b.getValue(lt.a.ThirdPartyID)&&(a=i.a.createElement("div",null,Object(c.a)("Add an email address to configure email notifications")));const s=[];for(const e in this.state.externalPushRules){const t=this.state.externalPushRules[e];s.push(i.a.createElement("li",null,Object(c.a)(t.description)))}let u,h,p=[];for(const e in this.state.externalContentRules){const t=this.state.externalContentRules[e];p.push(t.pattern)}if(p.length&&(p=p.join(", "),s.push(i.a.createElement("li",null,Object(c.a)("Notifications on the following keywords follow rules which can’t be displayed here:"),p))),void 0===this.state.pushers)u=i.a.createElement("div",{className:"error"},Object(c.a)("Unable to fetch notification target list"));else if(0===this.state.pushers.length)u=null;else{const e=[];for(let t=0;t<this.state.pushers.length;++t)e.push(i.a.createElement("tr",{key:t},i.a.createElement("td",null,this.state.pushers[t].app_display_name),i.a.createElement("td",null,this.state.pushers[t].device_display_name)));u=i.a.createElement("table",{className:"mx_UserNotifSettings_devicesTable"},i.a.createElement("tbody",null,e))}if(u&&(u=i.a.createElement("div",null,i.a.createElement("h3",null,Object(c.a)("Notification targets")),u)),s.length){const e=l.a.get().brand;h=i.a.createElement("div",null,i.a.createElement("h3",null,Object(c.a)("Advanced notification settings")),Object(c.a)("There are advanced notifications which are not shown here."),i.a.createElement("br",null),Object(c.a)("You might have configured them in a client other than %(brand)s. You cannot tune them in %(brand)s but they still apply.",{brand:e}),i.a.createElement("ul",null,s))}return i.a.createElement("div",null,n,i.a.createElement("div",{className:"mx_UserNotifSettings_notifTable"},t,i.a.createElement(wm.a,{value:G.b.getValue("notificationsEnabled"),onChange:this.onEnableDesktopNotificationsChange,label:Object(c.a)("Enable desktop notifications for this session")}),i.a.createElement(wm.a,{value:G.b.getValue("notificationBodyEnabled"),onChange:this.onEnableDesktopNotificationBodyChange,label:Object(c.a)("Show message in desktop notification")}),i.a.createElement(wm.a,{value:G.b.getValue("audioNotificationsEnabled"),onChange:this.onEnableAudioNotificationsChange,label:Object(c.a)("Enable audible notifications for this session")}),a,i.a.createElement("div",{className:"mx_UserNotifSettings_pushRulesTableWrapper"},i.a.createElement("table",{className:"mx_UserNotifSettings_pushRulesTable"},i.a.createElement("thead",null,i.a.createElement("tr",null,i.a.createElement("th",{width:"55%"}),i.a.createElement("th",{width:"15%"},Object(c.a)("Off")),i.a.createElement("th",{width:"15%"},Object(c.a)("On")),i.a.createElement("th",{width:"15%"},Object(c.a)("Noisy")))),i.a.createElement("tbody",null,this.renderNotifRulesTableRows()))),h,u,o))}},R()(GE,"phases",{LOADING:"LOADING",DISPLAY:"DISPLAY",ERROR:"ERROR"}),qE=VE))||qE;var WE,YE,$E,QE=n(644),JE=n(671),XE=n(664);let ZE=Object(N.a)("views.settings.SetIdServer")(($E=YE=class extends i.a.Component{constructor(){super(),R()(this,"onAction",e=>{"id_server_changed"===e.action&&this.setState({currentClientIdServer:de.a.get().getIdentityServerUrl()})}),R()(this,"_onIdentityServerChanged",e=>{const t=e.target.value;this.setState({idServer:t})}),R()(this,"_getTooltip",()=>{if(this.state.checking){const e=d.getComponent("views.elements.InlineSpinner");return i.a.createElement("div",null,i.a.createElement(e,null),Object(c.a)("Checking server"))}return this.state.error?i.a.createElement("span",{className:"warning"},this.state.error):null}),R()(this,"_idServerChangeEnabled",()=>!!this.state.idServer&&!this.state.busy),R()(this,"_saveIdServer",e=>{de.a.get().setAccountData("m.identity_server",{base_url:e}),this.setState({busy:!1,error:null,currentClientIdServer:e,idServer:""})}),R()(this,"_checkIdServer",async e=>{e.preventDefault();const{idServer:t,currentClientIdServer:n}=this.state;this.setState({busy:!0,checking:!0,error:null});const o=Object(ds.b)(t);let r=await async function(e){if("https:"!==cg.a.parse(e).protocol)return Object(c.a)("Identity Server URL must be HTTPS");try{const t=await fetch(e+"/_matrix/identity/api/v1");return t.ok?null:t.status<200||t.status>=300?Object(c.a)("Not a valid Identity Server (status code %(code)s)",{code:t.status}):Object(c.a)("Could not connect to Identity Server")}catch(e){return Object(c.a)("Could not connect to Identity Server")}}(o);if(!r)try{this.setState({checking:!1});const e=new Jh.a(o);await e.getAccessToken();let r=!0;if(!await Object(us.b)(o)){const[e]=await this._showNoTermsWarning(o);r=e}if(r&&n&&o!==n){const[e]=await this._showServerChangeWarning({title:Object(c.a)("Change identity server"),unboundMessage:Object(c.a)("Disconnect from the identity server <current /> and connect to <new /> instead?",{},{current:e=>i.a.createElement("b",null,Object(ds.a)(n)),new:e=>i.a.createElement("b",null,Object(ds.a)(t))}),button:Object(c.a)("Continue")});r=e}r&&this._saveIdServer(o)}catch(e){console.error(e),r=Object(c.a)("Terms of service not accepted or the identity server is invalid.")}this.setState({busy:!1,checking:!1,error:r,currentClientIdServer:de.a.get().getIdentityServerUrl()})}),R()(this,"_onDisconnectClicked",async()=>{this.setState({disconnectBusy:!0});try{const[e]=await this._showServerChangeWarning({title:Object(c.a)("Disconnect identity server"),unboundMessage:Object(c.a)("Disconnect from the identity server <idserver />?",{},{idserver:e=>i.a.createElement("b",null,Object(ds.a)(this.state.currentClientIdServer))}),button:Object(c.a)("Disconnect")});e&&this._disconnectIdServer()}finally{this.setState({disconnectBusy:!1})}}),R()(this,"_disconnectIdServer",()=>{de.a.get().setAccountData("m.identity_server",{base_url:null});let e="";Object(us.c)()&&(e=Object(ds.a)(Object(us.c)())),this.setState({busy:!1,error:null,currentClientIdServer:de.a.get().getIdentityServerUrl(),idServer:e})});let e="";!de.a.get().getIdentityServerUrl()&&Object(us.c)()&&(e=Object(ds.a)(Object(us.c)())),this.state={defaultIdServer:e,currentClientIdServer:de.a.get().getIdentityServerUrl(),idServer:"",error:null,busy:!1,disconnectBusy:!1,checking:!1}}componentDidMount(){this.dispatcherRef=u.a.register(this.onAction)}componentWillUnmount(){u.a.unregister(this.dispatcherRef)}_showNoTermsWarning(e){const t=d.getComponent("views.dialogs.QuestionDialog"),{finished:n}=Ge.a.createTrackedDialog("No Terms Warning","",t,{title:Object(c.a)("Identity server has no terms of service"),description:i.a.createElement("div",null,i.a.createElement("span",{className:"warning"},Object(c.a)("The identity server you have chosen does not have any terms of service.")),i.a.createElement("span",null," ",Object(c.a)("Only continue if you trust the owner of the server."))),button:Object(c.a)("Continue")});return n}async _showServerChangeWarning({title:e,unboundMessage:t,button:n}){const{currentClientIdServer:o}=this.state;let r=[],a=!0;try{r=await Object(Vs.e)(Object(XE.a)(de.a.get()),Promise.reject(new Error("Timeout attempting to reach identity server")),1e4)}catch(e){a=!1,console.warn(`Unable to reach identity server at ${o} to check for 3PIDs during IS change flow`),console.warn(e)}const s=r.filter(e=>e.bound);let l,u=!1;const h={idserver:e=>i.a.createElement("b",null,Object(ds.a)(o)),b:e=>i.a.createElement("b",null,e)};a?s.length?(l=i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("You are still <b>sharing your personal data</b> on the identity server <idserver />.",{},h)),i.a.createElement("p",null,Object(c.a)("We recommend that you remove your email addresses and phone numbers from the identity server before disconnecting."))),u=!0,n=Object(c.a)("Disconnect anyway")):l=t:(l=i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("You should <b>remove your personal data</b> from identity server <idserver /> before disconnecting. Unfortunately, identity server <idserver /> is currently offline or cannot be reached.",{},h)),i.a.createElement("p",null,Object(c.a)("You should:")),i.a.createElement("ul",null,i.a.createElement("li",null,Object(c.a)("check your browser plugins for anything that might block the identity server (such as Privacy Badger)")),i.a.createElement("li",null,Object(c.a)("contact the administrators of identity server <idserver />",{},{idserver:h.idserver})),i.a.createElement("li",null,Object(c.a)("wait and try again later")))),u=!0,n=Object(c.a)("Disconnect anyway"));const p=d.getComponent("dialogs.QuestionDialog"),{finished:m}=Ge.a.createTrackedDialog("Identity Server Bound Warning","",p,{title:e,description:l,button:n,cancelButton:Object(c.a)("Go back"),danger:u});return m}render(){const e=d.getComponent("views.elements.AccessibleButton"),t=d.getComponent("elements.Field"),n=this.state.currentClientIdServer;let o,r,a;if(n?(o=Object(c.a)("Identity Server (%(server)s)",{server:Object(ds.a)(n)}),r=Object(c.a)("You are currently using <server></server> to discover and be discoverable by existing contacts you know. You can change your identity server below.",{},{server:e=>i.a.createElement("b",null,Object(ds.a)(n))}),this.props.missingTerms&&(r=Object(c.a)("If you don't want to use <server /> to discover and be discoverable by existing contacts you know, enter another identity server below.",{},{server:e=>i.a.createElement("b",null,Object(ds.a)(n))}))):(o=Object(c.a)("Identity Server"),r=Object(c.a)("You are not currently using an identity server. To discover and be discoverable by existing contacts you know, add one below.")),n){let t=Object(c.a)("Disconnect"),n=Object(c.a)("Disconnecting from your identity server will mean you won't be discoverable by other users and you won't be able to invite others by email or phone.");if(this.props.missingTerms&&(n=Object(c.a)("Using an identity server is optional. If you choose not to use an identity server, you won't be discoverable by other users and you won't be able to invite others by email or phone."),t=Object(c.a)("Do not use an identity server")),this.state.disconnectBusy){const e=d.getComponent("views.elements.InlineSpinner");t=i.a.createElement(e,null)}a=i.a.createElement("div",null,i.a.createElement("span",{className:"mx_SettingsTab_subsectionText"},n),i.a.createElement(e,{onClick:this._onDisconnectClicked,kind:"danger_sm"},t))}return i.a.createElement("form",{className:"mx_SettingsTab_section mx_SetIdServer",onSubmit:this._checkIdServer},i.a.createElement("span",{className:"mx_SettingsTab_subheading"},o),i.a.createElement("span",{className:"mx_SettingsTab_subsectionText"},r),i.a.createElement(t,{label:Object(c.a)("Enter a new identity server"),type:"text",autoComplete:"off",placeholder:this.state.defaultIdServer,value:this.state.idServer,onChange:this._onIdentityServerChanged,tooltipContent:this._getTooltip(),tooltipClassName:"mx_SetIdServer_tooltip",disabled:this.state.busy,forceValidity:!this.state.error&&null}),i.a.createElement(e,{type:"submit",kind:"primary_sm",onClick:this._checkIdServer,disabled:!this._idServerChangeEnabled()},Object(c.a)("Change")),a)}},R()(YE,"propTypes",{missingTerms:He.a.bool}),WE=$E))||WE;var eS;let tS=Object(N.a)("views.settings.SetIntegrationManager")(eS=class extends i.a.Component{constructor(){super(),R()(this,"onProvisioningToggled",()=>{const e=this.state.provisioningEnabled;G.b.setValue("integrationProvisioning",null,tt.a.ACCOUNT,!e).catch(t=>{console.error("Error changing integration manager provisioning"),console.error(t),this.setState({provisioningEnabled:e})}),this.setState({provisioningEnabled:!e})});const e=Xv.a.sharedInstance().getPrimaryManager();this.state={currentManager:e,provisioningEnabled:G.b.getValue("integrationProvisioning")}}render(){const e=d.getComponent("views.elements.ToggleSwitch"),t=this.state.currentManager;let n,o;return t?(n=`(${t.name})`,o=Object(c.a)("Use an Integration Manager <b>(%(serverName)s)</b> to manage bots, widgets, and sticker packs.",{serverName:t.name},{b:e=>i.a.createElement("b",null,e)})):o=Object(c.a)("Use an Integration Manager to manage bots, widgets, and sticker packs."),i.a.createElement("div",{className:"mx_SetIntegrationManager"},i.a.createElement("div",{className:"mx_SettingsTab_heading"},i.a.createElement("span",null,Object(c.a)("Manage integrations")),i.a.createElement("span",{className:"mx_SettingsTab_subheading"},n),i.a.createElement(e,{checked:this.state.provisioningEnabled,onChange:this.onProvisioningToggled})),i.a.createElement("span",{className:"mx_SettingsTab_subsectionText"},o,i.a.createElement("br",null),i.a.createElement("br",null),Object(c.a)("Integration Managers receive configuration data, and can modify widgets, send room invites, and set power levels on your behalf.")))}})||eS;var nS,oS,rS;class iS extends i.a.Component{constructor(){super(),R()(this,"_onRemove",e=>{e.stopPropagation(),e.preventDefault(),this.setState({verifyRemove:!0})}),R()(this,"_onDontRemove",e=>{e.stopPropagation(),e.preventDefault(),this.setState({verifyRemove:!1})}),R()(this,"_onActuallyRemove",e=>{e.stopPropagation(),e.preventDefault(),de.a.get().deleteThreePid(this.props.email.medium,this.props.email.address).then(()=>this.props.onRemoved(this.props.email)).catch(e=>{const t=d.getComponent("dialogs.ErrorDialog");console.error("Unable to remove contact information: "+e),Ge.a.createTrackedDialog("Remove 3pid failed","",t,{title:Object(c.a)("Unable to remove contact information"),description:e&&e.message?e.message:Object(c.a)("Operation failed")})})}),this.state={verifyRemove:!1}}render(){return this.state.verifyRemove?i.a.createElement("div",{className:"mx_ExistingEmailAddress"},i.a.createElement("span",{className:"mx_ExistingEmailAddress_promptText"},Object(c.a)("Remove %(email)s?",{email:this.props.email.address})),i.a.createElement(g.a,{onClick:this._onActuallyRemove,kind:"danger_sm",className:"mx_ExistingEmailAddress_confirmBtn"},Object(c.a)("Remove")),i.a.createElement(g.a,{onClick:this._onDontRemove,kind:"link_sm",className:"mx_ExistingEmailAddress_confirmBtn"},Object(c.a)("Cancel"))):i.a.createElement("div",{className:"mx_ExistingEmailAddress"},i.a.createElement("span",{className:"mx_ExistingEmailAddress_email"},this.props.email.address),i.a.createElement(g.a,{onClick:this._onRemove,kind:"danger_sm"},Object(c.a)("Remove")))}}R()(iS,"propTypes",{email:He.a.object.isRequired,onRemoved:He.a.func.isRequired});let aS=Object(N.a)("views.settings.account.EmailAddresses")((rS=oS=class extends i.a.Component{constructor(e){super(e),R()(this,"_onRemoved",e=>{const t=this.props.emails.filter(t=>t!==e);this.props.onEmailsChange(t)}),R()(this,"_onChangeNewEmailAddress",e=>{this.setState({newEmailAddress:e.target.value})}),R()(this,"_onAddClick",e=>{if(e.stopPropagation(),e.preventDefault(),!this.state.newEmailAddress)return;const t=d.getComponent("dialogs.ErrorDialog"),n=this.state.newEmailAddress;if(!fo.a(n))return void Ge.a.createTrackedDialog("Invalid email address","",t,{title:Object(c.a)("Invalid Email Address"),description:Object(c.a)("This doesn't appear to be a valid email address")});const o=new Wm;this.setState({verifying:!0,continueDisabled:!0,addTask:o}),o.addEmailAddress(n).then(()=>{this.setState({continueDisabled:!1})}).catch(e=>{console.error("Unable to add email address "+n+" "+e),this.setState({verifying:!1,continueDisabled:!1,addTask:null}),Ge.a.createTrackedDialog("Unable to add email address","",t,{title:Object(c.a)("Unable to add email address"),description:e&&e.message?e.message:Object(c.a)("Operation failed")})})}),R()(this,"_onContinueClick",e=>{e.stopPropagation(),e.preventDefault(),this.setState({continueDisabled:!0}),this.state.addTask.checkEmailLinkClicked().then(([e])=>{let t=this.state.newEmailAddress;if(e){const e=this.state.newEmailAddress,n=[...this.props.emails,{address:e,medium:"email"}];this.props.onEmailsChange(n),t=""}this.setState({addTask:null,continueDisabled:!1,verifying:!1,newEmailAddress:t})}).catch(e=>{this.setState({continueDisabled:!1});const t=d.getComponent("dialogs.ErrorDialog");"M_THREEPID_AUTH_FAILED"===e.errcode?Ge.a.createTrackedDialog("Email hasn't been verified yet","",t,{title:Object(c.a)("Your email address hasn't been verified yet"),description:Object(c.a)("Click the link in the email you received to verify and then click continue again.")}):(console.error("Unable to verify email address: ",e),Ge.a.createTrackedDialog("Unable to verify email address","",t,{title:Object(c.a)("Unable to verify email address."),description:e&&e.message?e.message:Object(c.a)("Operation failed")}))})}),this.state={verifying:!1,addTask:null,continueDisabled:!1,newEmailAddress:""}}render(){const e=this.props.emails.map(e=>i.a.createElement(iS,{email:e,onRemoved:this._onRemoved,key:e.address}));let t=i.a.createElement(g.a,{onClick:this._onAddClick,kind:"primary"},Object(c.a)("Add"));return this.state.verifying&&(t=i.a.createElement("div",null,i.a.createElement("div",null,Object(c.a)("We've sent you an email to verify your address. Please follow the instructions there and then click the button below.")),i.a.createElement(g.a,{onClick:this._onContinueClick,kind:"primary",disabled:this.state.continueDisabled},Object(c.a)("Continue")))),i.a.createElement("div",{className:"mx_EmailAddresses"},e,i.a.createElement("form",{onSubmit:this._onAddClick,autoComplete:"off",noValidate:!0,className:"mx_EmailAddresses_new"},i.a.createElement(qe.a,{type:"text",label:Object(c.a)("Email Address"),autoComplete:"off",disabled:this.state.verifying,value:this.state.newEmailAddress,onChange:this._onChangeNewEmailAddress}),t))}},R()(oS,"propTypes",{emails:He.a.array.isRequired,onEmailsChange:He.a.func.isRequired}),nS=rS))||nS;var sS,cS,lS;class dS extends i.a.Component{constructor(){super(),R()(this,"_onRemove",e=>{e.stopPropagation(),e.preventDefault(),this.setState({verifyRemove:!0})}),R()(this,"_onDontRemove",e=>{e.stopPropagation(),e.preventDefault(),this.setState({verifyRemove:!1})}),R()(this,"_onActuallyRemove",e=>{e.stopPropagation(),e.preventDefault(),de.a.get().deleteThreePid(this.props.msisdn.medium,this.props.msisdn.address).then(()=>this.props.onRemoved(this.props.msisdn)).catch(e=>{const t=d.getComponent("dialogs.ErrorDialog");console.error("Unable to remove contact information: "+e),Ge.a.createTrackedDialog("Remove 3pid failed","",t,{title:Object(c.a)("Unable to remove contact information"),description:e&&e.message?e.message:Object(c.a)("Operation failed")})})}),this.state={verifyRemove:!1}}render(){return this.state.verifyRemove?i.a.createElement("div",{className:"mx_ExistingPhoneNumber"},i.a.createElement("span",{className:"mx_ExistingPhoneNumber_promptText"},Object(c.a)("Remove %(phone)s?",{phone:this.props.msisdn.address})),i.a.createElement(g.a,{onClick:this._onActuallyRemove,kind:"danger_sm",className:"mx_ExistingPhoneNumber_confirmBtn"},Object(c.a)("Remove")),i.a.createElement(g.a,{onClick:this._onDontRemove,kind:"link_sm",className:"mx_ExistingPhoneNumber_confirmBtn"},Object(c.a)("Cancel"))):i.a.createElement("div",{className:"mx_ExistingPhoneNumber"},i.a.createElement("span",{className:"mx_ExistingPhoneNumber_address"},"+",this.props.msisdn.address),i.a.createElement(g.a,{onClick:this._onRemove,kind:"danger_sm"},Object(c.a)("Remove")))}}R()(dS,"propTypes",{msisdn:He.a.object.isRequired,onRemoved:He.a.func.isRequired});let uS=Object(N.a)("views.settings.account.PhoneNumbers")((lS=cS=class extends i.a.Component{constructor(e){super(e),R()(this,"_onRemoved",e=>{const t=this.props.msisdns.filter(t=>t!==e);this.props.onMsisdnsChange(t)}),R()(this,"_onChangeNewPhoneNumber",e=>{this.setState({newPhoneNumber:e.target.value})}),R()(this,"_onChangeNewPhoneNumberCode",e=>{this.setState({newPhoneNumberCode:e.target.value})}),R()(this,"_onAddClick",e=>{if(e.stopPropagation(),e.preventDefault(),!this.state.newPhoneNumber)return;const t=d.getComponent("dialogs.ErrorDialog"),n=this.state.newPhoneNumber,o=this.state.phoneCountry,r=new Wm;this.setState({verifying:!0,continueDisabled:!0,addTask:r}),r.addMsisdn(o,n).then(e=>{this.setState({continueDisabled:!1,verifyMsisdn:e.msisdn})}).catch(e=>{console.error("Unable to add phone number "+n+" "+e),this.setState({verifying:!1,continueDisabled:!1,addTask:null}),Ge.a.createTrackedDialog("Add Phone Number Error","",t,{title:Object(c.a)("Error"),description:e&&e.message?e.message:Object(c.a)("Operation failed")})})}),R()(this,"_onContinueClick",e=>{e.stopPropagation(),e.preventDefault(),this.setState({continueDisabled:!0});const t=this.state.newPhoneNumberCode,n=this.state.verifyMsisdn;this.state.addTask.haveMsisdnToken(t).then(([e])=>{let t=this.state.newPhoneNumber;if(e){const e=[...this.props.msisdns,{address:n,medium:"msisdn"}];this.props.onMsisdnsChange(e),t=""}this.setState({addTask:null,continueDisabled:!1,verifying:!1,verifyMsisdn:"",verifyError:null,newPhoneNumber:t,newPhoneNumberCode:""})}).catch(e=>{if(this.setState({continueDisabled:!1}),"M_THREEPID_AUTH_FAILED"!==e.errcode){const t=d.getComponent("dialogs.ErrorDialog");console.error("Unable to verify phone number: "+e),Ge.a.createTrackedDialog("Unable to verify phone number","",t,{title:Object(c.a)("Unable to verify phone number."),description:e&&e.message?e.message:Object(c.a)("Operation failed")})}else this.setState({verifyError:Object(c.a)("Incorrect verification code")})})}),R()(this,"_onCountryChanged",e=>{this.setState({phoneCountry:e.iso2})}),this.state={verifying:!1,verifyError:!1,verifyMsisdn:"",addTask:null,continueDisabled:!1,phoneCountry:"",newPhoneNumber:"",newPhoneNumberCode:""}}render(){const e=this.props.msisdns.map(e=>i.a.createElement(dS,{msisdn:e,onRemoved:this._onRemoved,key:e.address}));let t=i.a.createElement(g.a,{onClick:this._onAddClick,kind:"primary"},Object(c.a)("Add"));if(this.state.verifying){const e=this.state.verifyMsisdn;t=i.a.createElement("div",null,i.a.createElement("div",null,Object(c.a)("A text message has been sent to +%(msisdn)s. Please enter the verification code it contains.",{msisdn:e}),i.a.createElement("br",null),this.state.verifyError),i.a.createElement("form",{onSubmit:this._onContinueClick,autoComplete:"off",noValidate:!0},i.a.createElement(qe.a,{type:"text",label:Object(c.a)("Verification code"),autoComplete:"off",disabled:this.state.continueDisabled,value:this.state.newPhoneNumberCode,onChange:this._onChangeNewPhoneNumberCode}),i.a.createElement(g.a,{onClick:this._onContinueClick,kind:"primary",disabled:this.state.continueDisabled},Object(c.a)("Continue"))))}const n=i.a.createElement(Co,{onOptionChange:this._onCountryChanged,className:"mx_PhoneNumbers_country",value:this.state.phoneCountry,disabled:this.state.verifying,isSmall:!0,showPrefix:!0});return i.a.createElement("div",{className:"mx_PhoneNumbers"},e,i.a.createElement("form",{onSubmit:this._onAddClick,autoComplete:"off",noValidate:!0,className:"mx_PhoneNumbers_new"},i.a.createElement("div",{className:"mx_PhoneNumbers_input"},i.a.createElement(qe.a,{type:"text",label:Object(c.a)("Phone Number"),autoComplete:"off",disabled:this.state.verifying,prefixComponent:n,value:this.state.newPhoneNumber,onChange:this._onChangeNewPhoneNumber}))),t)}},R()(cS,"propTypes",{msisdns:He.a.array.isRequired,onMsisdnsChange:He.a.func.isRequired}),sS=lS))||sS;var hS,pS,mS;class gS extends i.a.Component{constructor(e){super(e),R()(this,"onRevokeClick",e=>{e.stopPropagation(),e.preventDefault(),this.changeBinding({bind:!1,label:"revoke",errorTitle:Object(c.a)("Unable to revoke sharing for email address")})}),R()(this,"onShareClick",e=>{e.stopPropagation(),e.preventDefault(),this.changeBinding({bind:!0,label:"share",errorTitle:Object(c.a)("Unable to share email address")})}),R()(this,"onContinueClick",async e=>{e.stopPropagation(),e.preventDefault(),this.setState({continueDisabled:!0});try{await this.state.addTask.checkEmailLinkClicked(),this.setState({addTask:null,continueDisabled:!1,verifying:!1})}catch(e){this.setState({continueDisabled:!1});const t=d.getComponent("dialogs.ErrorDialog");"M_THREEPID_AUTH_FAILED"===e.errcode?Ge.a.createTrackedDialog("E-mail hasn't been verified yet","",t,{title:Object(c.a)("Your email address hasn't been verified yet"),description:Object(c.a)("Click the link in the email you received to verify and then click continue again.")}):(console.error("Unable to verify email address: "+e),Ge.a.createTrackedDialog("Unable to verify email address","",t,{title:Object(c.a)("Unable to verify email address."),description:e&&e.message?e.message:Object(c.a)("Operation failed")}))}});const{bound:t}=e.email;this.state={verifying:!1,addTask:null,continueDisabled:!1,bound:t}}UNSAFE_componentWillReceiveProps(e){const{bound:t}=e.email;this.setState({bound:t})}async changeBinding({bind:e,label:t,errorTitle:n}){if(!await de.a.get().doesServerSupportSeparateAddAndBind())return this.changeBindingTangledAddBind({bind:e,label:t,errorTitle:n});const o=d.getComponent("dialogs.ErrorDialog"),{medium:r,address:i}=this.props.email;try{if(e){const e=new Wm;this.setState({verifying:!0,continueDisabled:!0,addTask:e}),await e.bindEmailAddress(i),this.setState({continueDisabled:!1})}else await de.a.get().unbindThreePid(r,i);this.setState({bound:e})}catch(e){console.error(`Unable to ${t} email address ${i} ${e}`),this.setState({verifying:!1,continueDisabled:!1,addTask:null}),Ge.a.createTrackedDialog(`Unable to ${t} email address`,"",o,{title:n,description:e&&e.message?e.message:Object(c.a)("Operation failed")})}}async changeBindingTangledAddBind({bind:e,label:t,errorTitle:n}){const o=d.getComponent("dialogs.ErrorDialog"),{medium:r,address:i}=this.props.email,a=new Wm;this.setState({verifying:!0,continueDisabled:!0,addTask:a});try{await de.a.get().deleteThreePid(r,i),e?await a.bindEmailAddress(i):await a.addEmailAddress(i),this.setState({continueDisabled:!1,bound:e})}catch(e){console.error(`Unable to ${t} email address ${i} ${e}`),this.setState({verifying:!1,continueDisabled:!1,addTask:null}),Ge.a.createTrackedDialog(`Unable to ${t} email address`,"",o,{title:n,description:e&&e.message?e.message:Object(c.a)("Operation failed")})}}render(){const e=d.getComponent("elements.AccessibleButton"),{address:t}=this.props.email,{verifying:n,bound:o}=this.state;let r;return r=n?i.a.createElement("span",null,Object(c.a)("Verify the link in your inbox"),i.a.createElement(e,{className:"mx_ExistingEmailAddress_confirmBtn",kind:"primary_sm",onClick:this.onContinueClick,disabled:this.state.continueDisabled},Object(c.a)("Complete"))):o?i.a.createElement(e,{className:"mx_ExistingEmailAddress_confirmBtn",kind:"danger_sm",onClick:this.onRevokeClick},Object(c.a)("Revoke")):i.a.createElement(e,{className:"mx_ExistingEmailAddress_confirmBtn",kind:"primary_sm",onClick:this.onShareClick},Object(c.a)("Share")),i.a.createElement("div",{className:"mx_ExistingEmailAddress"},i.a.createElement("span",{className:"mx_ExistingEmailAddress_email"},t),r)}}R()(gS,"propTypes",{email:He.a.object.isRequired});let fS=Object(N.a)("views.settings.discovery.EmailAddresses")((mS=pS=class extends i.a.Component{render(){let e;return e=this.props.emails.length>0?this.props.emails.map(e=>i.a.createElement(gS,{email:e,key:e.address})):i.a.createElement("span",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("Discovery options will appear once you have added an email above.")),i.a.createElement("div",{className:"mx_EmailAddresses"},e)}},R()(pS,"propTypes",{emails:He.a.array.isRequired}),hS=mS))||hS;var _S,bS,vS;class yS extends i.a.Component{constructor(e){super(e),R()(this,"onRevokeClick",e=>{e.stopPropagation(),e.preventDefault(),this.changeBinding({bind:!1,label:"revoke",errorTitle:Object(c.a)("Unable to revoke sharing for phone number")})}),R()(this,"onShareClick",e=>{e.stopPropagation(),e.preventDefault(),this.changeBinding({bind:!0,label:"share",errorTitle:Object(c.a)("Unable to share phone number")})}),R()(this,"onVerificationCodeChange",e=>{this.setState({verificationCode:e.target.value})}),R()(this,"onContinueClick",async e=>{e.stopPropagation(),e.preventDefault(),this.setState({continueDisabled:!0});const t=this.state.verificationCode;try{await this.state.addTask.haveMsisdnToken(t),this.setState({addTask:null,continueDisabled:!1,verifying:!1,verifyError:null,verificationCode:""})}catch(e){if(this.setState({continueDisabled:!1}),"M_THREEPID_AUTH_FAILED"!==e.errcode){const t=d.getComponent("dialogs.ErrorDialog");console.error("Unable to verify phone number: "+e),Ge.a.createTrackedDialog("Unable to verify phone number","",t,{title:Object(c.a)("Unable to verify phone number."),description:e&&e.message?e.message:Object(c.a)("Operation failed")})}else this.setState({verifyError:Object(c.a)("Incorrect verification code")})}});const{bound:t}=e.msisdn;this.state={verifying:!1,verificationCode:"",addTask:null,continueDisabled:!1,bound:t}}UNSAFE_componentWillReceiveProps(e){const{bound:t}=e.msisdn;this.setState({bound:t})}async changeBinding({bind:e,label:t,errorTitle:n}){if(!await de.a.get().doesServerSupportSeparateAddAndBind())return this.changeBindingTangledAddBind({bind:e,label:t,errorTitle:n});const o=d.getComponent("dialogs.ErrorDialog"),{medium:r,address:i}=this.props.msisdn;try{if(e){const e=new Wm;this.setState({verifying:!0,continueDisabled:!0,addTask:e}),await e.bindMsisdn(null,"+"+i),this.setState({continueDisabled:!1})}else await de.a.get().unbindThreePid(r,i);this.setState({bound:e})}catch(e){console.error(`Unable to ${t} phone number ${i} ${e}`),this.setState({verifying:!1,continueDisabled:!1,addTask:null}),Ge.a.createTrackedDialog(`Unable to ${t} phone number`,"",o,{title:n,description:e&&e.message?e.message:Object(c.a)("Operation failed")})}}async changeBindingTangledAddBind({bind:e,label:t,errorTitle:n}){const o=d.getComponent("dialogs.ErrorDialog"),{medium:r,address:i}=this.props.msisdn,a=new Wm;this.setState({verifying:!0,continueDisabled:!0,addTask:a});try{await de.a.get().deleteThreePid(r,i),e?await a.bindMsisdn(null,"+"+i):await a.addMsisdn(null,"+"+i),this.setState({continueDisabled:!1,bound:e})}catch(e){console.error(`Unable to ${t} phone number ${i} ${e}`),this.setState({verifying:!1,continueDisabled:!1,addTask:null}),Ge.a.createTrackedDialog(`Unable to ${t} phone number`,"",o,{title:n,description:e&&e.message?e.message:Object(c.a)("Operation failed")})}}render(){const e=d.getComponent("elements.AccessibleButton"),t=d.getComponent("elements.Field"),{address:n}=this.props.msisdn,{verifying:o,bound:r}=this.state;let a;return a=o?i.a.createElement("span",{className:"mx_ExistingPhoneNumber_verification"},i.a.createElement("span",null,Object(c.a)("Please enter verification code sent via text."),i.a.createElement("br",null),this.state.verifyError),i.a.createElement("form",{onSubmit:this.onContinueClick,autoComplete:"off",noValidate:!0},i.a.createElement(t,{type:"text",label:Object(c.a)("Verification code"),autoComplete:"off",disabled:this.state.continueDisabled,value:this.state.verificationCode,onChange:this.onVerificationCodeChange}))):r?i.a.createElement(e,{className:"mx_ExistingPhoneNumber_confirmBtn",kind:"danger_sm",onClick:this.onRevokeClick},Object(c.a)("Revoke")):i.a.createElement(e,{className:"mx_ExistingPhoneNumber_confirmBtn",kind:"primary_sm",onClick:this.onShareClick},Object(c.a)("Share")),i.a.createElement("div",{className:"mx_ExistingPhoneNumber"},i.a.createElement("span",{className:"mx_ExistingPhoneNumber_address"},"+",n),a)}}R()(yS,"propTypes",{msisdn:He.a.object.isRequired});let ES=Object(N.a)("views.settings.discovery.PhoneNumbers")((vS=bS=class extends i.a.Component{render(){let e;return e=this.props.msisdns.length>0?this.props.msisdns.map(e=>i.a.createElement(yS,{msisdn:e,key:e.address})):i.a.createElement("span",{className:"mx_SettingsTab_subsectionText"},Object(c.a)("Discovery options will appear once you have added a phone number above.")),i.a.createElement("div",{className:"mx_PhoneNumbers"},e)}},R()(bS,"propTypes",{msisdns:He.a.array.isRequired}),_S=vS))||_S;var SS,wS,CS,TS=n(678),xS=n(643),OS=n(676),kS=n(665),RS=n(680),DS=n(673),IS=n(674),AS=n(670),NS=n(675);let FS=Object(N.a)("views.terms.InlineTermsAgreement")((CS=wS=class extends i.a.Component{constructor(){super(),R()(this,"_togglePolicy",e=>{const t=Object(Te.a)(this.state.policies);t[e].checked=!t[e].checked,this.setState({policies:t})}),R()(this,"_onContinue",()=>{!!this.state.policies.some(e=>!e.checked)||(this.setState({busy:!0}),this.props.onFinished(this.state.policies.map(e=>e.url)))}),this.state={policies:[],busy:!1}}componentDidMount(){const e=[];for(const t of this.props.policiesAndServicePairs){const n=Object.values(t.policies);for(const t of n){const n=Object(c.j)(Object.keys(t).filter(e=>"version"!==e)),o={checked:!1,url:t[n].url,name:t[n].name};e.push(o)}}this.setState({policies:e})}_renderCheckboxes(){const e=[];for(let t=0;t<this.state.policies.length;t++){const n=this.state.policies[t],o=Object(c.a)("Accept <policyLink /> to continue:",{},{policyLink:()=>i.a.createElement("a",{href:n.url,rel:"noreferrer noopener",target:"_blank"},n.name,i.a.createElement("span",{className:"mx_InlineTermsAgreement_link"}))});e.push(i.a.createElement("div",{key:t,className:"mx_InlineTermsAgreement_cbContainer"},i.a.createElement("div",null,o),i.a.createElement("div",{className:"mx_InlineTermsAgreement_checkbox"},i.a.createElement($r.a,{onChange:()=>this._togglePolicy(t),checked:n.checked},Object(c.a)("Accept")))))}return e}render(){const e=d.getComponent("views.elements.AccessibleButton"),t=!!this.state.policies.some(e=>!e.checked);return i.a.createElement("div",null,this.props.introElement,this._renderCheckboxes(),i.a.createElement(e,{onClick:this._onContinue,disabled:t||this.state.busy,kind:"primary_sm"},Object(c.a)("Continue")))}},R()(wS,"propTypes",{policiesAndServicePairs:He.a.array.isRequired,agreedUrls:He.a.array.isRequired,onFinished:He.a.func.isRequired,introElement:He.a.node}),SS=CS))||SS;var MS,PS,LS;let jS=Object(N.a)("views.verification.VerificationCancelled")((LS=PS=class extends i.a.Component{render(){const e=d.getComponent("views.elements.DialogButtons");return i.a.createElement("div",null,i.a.createElement("p",null,Object(c.a)("The other party cancelled the verification.")),i.a.createElement(e,{primaryButton:Object(c.a)("OK"),hasCancel:!1,onPrimaryButtonClick:this.props.onDone}))}},R()(PS,"propTypes",{onDone:He.a.func.isRequired}),MS=LS))||MS;var US,BS,qS;let GS=Object(N.a)("views.verification.VerificationComplete")((qS=BS=class extends i.a.Component{render(){const e=d.getComponent("views.elements.DialogButtons");return i.a.createElement("div",null,i.a.createElement("h2",null,Object(c.a)("Verified!")),i.a.createElement("p",null,Object(c.a)("You've successfully verified this user.")),i.a.createElement("p",null,Object(c.a)("Secure messages with this user are end-to-end encrypted and not able to be read by third parties.")),i.a.createElement(e,{onPrimaryButtonClick:this.props.onDone,primaryButton:Object(c.a)("Got It"),hasCancel:!1}))}},R()(BS,"propTypes",{onDone:He.a.func.isRequired}),US=qS))||US;var VS,HS,zS;let KS=Object(N.a)("views.verification.VerificationQREmojiOptions")((zS=HS=class extends i.a.Component{render(){const{request:e}=this.props;let t;return t=e.otherPartySupportsMethod($i.c)?i.a.createElement(Qi,{qrCodeData:e.qrCodeData}):i.a.createElement("div",{className:"mx_VerificationQREmojiOptions_noQR"},i.a.createElement(Ao.a,null)),i.a.createElement("div",null,Object(c.a)("Verify this session by completing one of the following:"),i.a.createElement("div",{className:"mx_IncomingSasDialog_startOptions"},i.a.createElement("div",{className:"mx_IncomingSasDialog_startOption"},i.a.createElement("p",null,Object(c.a)("Scan this unique code")),t),i.a.createElement("div",{className:"mx_IncomingSasDialog_betweenText"},Object(c.a)("or")),i.a.createElement("div",{className:"mx_IncomingSasDialog_startOption"},i.a.createElement("p",null,Object(c.a)("Compare unique emoji")),i.a.createElement("span",{className:"mx_IncomingSasDialog_helpText"},Object(c.a)("Compare a unique set of emoji if you don't have a camera on either device")),i.a.createElement(g.a,{onClick:this.props.onStartEmoji,kind:"primary"},Object(c.a)("Start")))),i.a.createElement(g.a,{onClick:this.props.onCancel,kind:"danger"},Object(c.a)("Cancel")))}},R()(HS,"propTypes",{request:He.a.object.isRequired,onCancel:He.a.func.isRequired,onStartEmoji:He.a.func.isRequired}),VS=zS))||VS;var WS,YS,$S;let QS=Object(N.a)("views.verification.VerificationShowSas")(($S=YS=class extends i.a.Component{constructor(e){super(e),R()(this,"onMatchClick",()=>{this.setState({pending:!0}),this.props.onDone()}),R()(this,"onDontMatchClick",()=>{this.setState({cancelling:!0}),this.props.onCancel()}),this.state={pending:!1}}componentWillMount(){Ht()}render(){let e,t,n;if(this.props.sas.emoji){const n=this.props.sas.emoji.map((e,t)=>{return i.a.createElement("div",{className:"mx_VerificationShowSas_emojiSas_block",key:t},i.a.createElement("div",{className:"mx_VerificationShowSas_emojiSas_emoji"},e[0]),i.a.createElement("div",{className:"mx_VerificationShowSas_emojiSas_label"},Object(c.a)((n=e[1]).charAt(0).toUpperCase()+n.slice(1))));var n});e=i.a.createElement("div",{className:"mx_VerificationShowSas_emojiSas"},n.slice(0,4),i.a.createElement("div",{className:"mx_VerificationShowSas_emojiSas_break"}),n.slice(4)),t=this.props.isSelf?Object(c.a)("Confirm the emoji below are displayed on both sessions, in the same order:"):Object(c.a)("Verify this user by confirming the following emoji appear on their screen.")}else{if(!this.props.sas.decimal)return i.a.createElement("div",null,Object(c.a)("Unable to find a supported verification method."),i.a.createElement(g.a,{kind:"primary",onClick:this.props.onCancel,className:"mx_UserInfo_wideButton"},Object(c.a)("Cancel")));{const n=this.props.sas.decimal.map((e,t)=>i.a.createElement("span",{key:t},e));e=i.a.createElement("div",{className:"mx_VerificationShowSas_decimalSas"},n),t=this.props.isSelf?Object(c.a)("Verify this session by confirming the following number appears on its screen."):Object(c.a)("Verify this user by confirming the following number appears on their screen.")}}if(this.state.pending||this.state.cancelling){let e;if(this.state.pending)if(this.props.isSelf)e=this.props.device?Object(c.a)("Waiting for your other session, %(deviceName)s (%(deviceId)s), to verify…",{deviceName:this.props.device?this.props.device.getDisplayName():"",deviceId:this.props.device?this.props.device.deviceId:""}):Object(c.a)("Waiting for your other session to verify…");else{const{displayName:t}=this.props;e=Object(c.a)("Waiting for %(displayName)s to verify…",{displayName:t})}else e=Object(c.a)("Cancelling…");n=i.a.createElement(Vi,{text:e})}else n=this.props.inDialog?i.a.createElement(er.a,{primaryButton:Object(c.a)("They match"),onPrimaryButtonClick:this.onMatchClick,primaryButtonClass:"mx_UserInfo_wideButton mx_VerificationShowSas_matchButton",cancelButton:Object(c.a)("They don't match"),onCancel:this.onDontMatchClick,cancelButtonClass:"mx_UserInfo_wideButton mx_VerificationShowSas_noMatchButton"}):i.a.createElement(i.a.Fragment,null,i.a.createElement(g.a,{onClick:this.onDontMatchClick,kind:"danger"},Object(c.a)("They don't match")),i.a.createElement(g.a,{onClick:this.onMatchClick,kind:"primary"},Object(c.a)("They match")));return i.a.createElement("div",{className:"mx_VerificationShowSas"},i.a.createElement("p",null,t),e,i.a.createElement("p",null,this.props.isSelf?"":Object(c.a)("To be secure, do this in person or use a trusted way to communicate.")),n)}},R()(YS,"propTypes",{pending:He.a.bool,displayName:He.a.string,device:He.a.object,onDone:He.a.func.isRequired,onCancel:He.a.func.isRequired,sas:He.a.object.isRequired,isSelf:He.a.bool,inDialog:He.a.bool}),WS=$S))||WS;Object(c.b)("Dog"),Object(c.b)("Cat"),Object(c.b)("Lion"),Object(c.b)("Horse"),Object(c.b)("Unicorn"),Object(c.b)("Pig"),Object(c.b)("Elephant"),Object(c.b)("Rabbit"),Object(c.b)("Panda"),Object(c.b)("Rooster"),Object(c.b)("Penguin"),Object(c.b)("Turtle"),Object(c.b)("Fish"),Object(c.b)("Octopus"),Object(c.b)("Butterfly"),Object(c.b)("Flower"),Object(c.b)("Tree"),Object(c.b)("Cactus"),Object(c.b)("Mushroom"),Object(c.b)("Globe"),Object(c.b)("Moon"),Object(c.b)("Cloud"),Object(c.b)("Fire"),Object(c.b)("Banana"),Object(c.b)("Apple"),Object(c.b)("Strawberry"),Object(c.b)("Corn"),Object(c.b)("Pizza"),Object(c.b)("Cake"),Object(c.b)("Heart"),Object(c.b)("Smiley"),Object(c.b)("Robot"),Object(c.b)("Hat"),Object(c.b)("Glasses"),Object(c.b)("Spanner"),Object(c.b)("Santa"),Object(c.b)("Thumbs up"),Object(c.b)("Umbrella"),Object(c.b)("Hourglass"),Object(c.b)("Clock"),Object(c.b)("Gift"),Object(c.b)("Light bulb"),Object(c.b)("Book"),Object(c.b)("Pencil"),Object(c.b)("Paperclip"),Object(c.b)("Scissors"),Object(c.b)("Lock"),Object(c.b)("Key"),Object(c.b)("Hammer"),Object(c.b)("Telephone"),Object(c.b)("Flag"),Object(c.b)("Train"),Object(c.b)("Bicycle"),Object(c.b)("Aeroplane"),Object(c.b)("Rocket"),Object(c.b)("Trophy"),Object(c.b)("Ball"),Object(c.b)("Guitar"),Object(c.b)("Trumpet"),Object(c.b)("Bell"),Object(c.b)("Anchor"),Object(c.b)("Headphones"),Object(c.b)("Folder"),Object(c.b)("Pin");let JS={};o.o&&(JS["structures.ContextMenu"]=o.o),O&&(JS["structures.HomePage"]=O),F&&(JS["structures.HostSignupAction"]=F),jt&&(JS["structures.LeftPanel"]=jt),Mt&&(JS["structures.LeftPanelWidget"]=Mt),Jn&&(JS["structures.LoggedInView"]=Jn),Xn.a&&(JS["structures.MatrixChat"]=Xn.a),wn&&(JS["structures.NonUrgentToastContainer"]=wn),ht.a&&(JS["structures.RoomSearch"]=ht.a),Zn.a&&(JS["structures.RoomView"]=Zn.a),eo.b&&(JS["structures.SpaceRoomDirectory"]=eo.b),to.a&&(JS["structures.SpaceRoomView"]=to.a),no.b&&(JS["structures.TabbedView"]=no.b),oo&&(JS["structures.ToastContainer"]=oo),lo&&(JS["structures.UploadBar"]=lo),ut&&(JS["structures.UserMenu"]=ut),Ko&&(JS["structures.auth.Login"]=Ko),Jo&&(JS["structures.auth.Registration"]=Jo),Xo.a&&(JS["views.auth.PassphraseField"]=Xo.a),Do&&(JS["views.auth.PasswordLogin"]=Do),sr&&(JS["views.auth.RegistrationForm"]=sr),p.a&&(JS["views.avatars.BaseAvatar"]=p.a),ft.a&&(JS["views.avatars.DecoratedRoomAvatar"]=ft.a),fe&&(JS["views.avatars.GroupAvatar"]=fe),lr.a&&(JS["views.avatars.MemberAvatar"]=lr.a),De.a&&(JS["views.avatars.RoomAvatar"]=De.a),dr.a&&(JS["views.avatars.WidgetAvatar"]=dr.a),ur.a&&(JS["views.context_menus.CallContextMenu"]=ur.a),hr.a&&(JS["views.context_menus.DialpadContextMenu"]=hr.a),D.e&&(JS["views.context_menus.IconizedContextMenu"]=D.e),pr.a&&(JS["views.context_menus.WidgetContextMenu"]=pr.a),mr.a&&(JS["views.dialogs.AddExistingToSpaceDialog"]=mr.a),gr.a&&(JS["views.dialogs.CommunityPrototypeInviteDialog"]=gr.a),fr.a&&(JS["views.dialogs.CreateCommunityPrototypeDialog"]=fr.a),st&&(JS["views.dialogs.EditCommunityPrototypeDialog"]=st),On&&(JS["views.dialogs.HostSignupDialog"]=On),_r.d&&(JS["views.dialogs.InviteDialog"]=_r.d),br.a&&(JS["views.dialogs.ModalWidgetDialog"]=br.a),ar&&(JS["views.dialogs.RegistrationEmailPromptDialog"]=ar),vr.a&&(JS["views.dialogs.ServerOfflineDialog"]=vr.a),Bo&&(JS["views.dialogs.ServerPickerDialog"]=Bo),yr&&(JS["views.dialogs.SeshatResetDialog"]=yr),Sr.a&&(JS["views.dialogs.ShareDialog"]=Sr.a),wr.a&&(JS["views.dialogs.SpaceSettingsDialog"]=wr.a),Cr.a&&(JS["views.dialogs.WidgetCapabilitiesPromptDialog"]=Cr.a),Tr.a&&(JS["views.dialogs.security.AccessSecretStorageDialog"]=Tr.a),g.a&&(JS["views.elements.AccessibleButton"]=g.a),V.a&&(JS["views.elements.AccessibleTooltipButton"]=V.a),xr.b&&(JS["views.elements.DesktopBuildsNotice"]=xr.b),Or.a&&(JS["views.elements.DesktopCapturerSourcePicker"]=Or.a),kr&&(JS["views.elements.Draggable"]=kr),Rr.a&&(JS["views.elements.EffectsOverlay"]=Rr.a),Ar&&(JS["views.elements.EventListSummary"]=Ar),Nr.a&&(JS["views.elements.EventTilePreview"]=Nr.a),Fr.a&&(JS["views.elements.FacePile"]=Fr.a),qe.a&&(JS["views.elements.Field"]=qe.a),Mr&&(JS["views.elements.IRCTimelineProfileResizer"]=Mr),Br.a&&(JS["views.elements.ImageView"]=Br.a),qr.a&&(JS["views.elements.InfoTooltip"]=qr.a),Gr.a&&(JS["views.elements.InviteReason"]=Gr.a),Vr&&(JS["views.elements.MemberEventListSummary"]=Vr),v.b&&(JS["views.elements.MiniAvatarUploader"]=v.b),co&&(JS["views.elements.ProgressBar"]=co),Hr.a&&(JS["views.elements.QRCode"]=Hr.a),dt.a&&(JS["views.elements.RoomName"]=dt.a),zr.a&&(JS["views.elements.RoomTopic"]=zr.a),Po&&(JS["views.elements.SSOButtons"]=Po),Vo&&(JS["views.elements.ServerPicker"]=Vo),Kr.a&&(JS["views.elements.SettingsFlag"]=Kr.a),Wr.a&&(JS["views.elements.Slider"]=Wr.a),Yr.a&&(JS["views.elements.SpellCheckLanguagesDropdown"]=Yr.a),$r.a&&(JS["views.elements.StyledCheckbox"]=$r.a),Uo.a&&(JS["views.elements.StyledRadioButton"]=Uo.a),Ye.a&&(JS["views.elements.StyledRadioGroup"]=Ye.a),Qr.a&&(JS["views.elements.ToggleSwitch"]=Qr.a),Jr.b&&(JS["views.elements.Tooltip"]=Jr.b),H&&(JS["views.elements.UserTagTile"]=H),go.a&&(JS["views.elements.Validation"]=go.a),yi&&(JS["views.emojipicker.Category"]=yi),li&&(JS["views.emojipicker.Emoji"]=li),gi&&(JS["views.emojipicker.EmojiPicker"]=gi),oi&&(JS["views.emojipicker.Header"]=oi),si&&(JS["views.emojipicker.Preview"]=si),hi&&(JS["views.emojipicker.QuickReactions"]=hi),Ei&&(JS["views.emojipicker.ReactionPicker"]=Ei),ii&&(JS["views.emojipicker.Search"]=ii),kn&&(JS["views.host_signup.HostSignupContainer"]=kn),Ti&&(JS["views.messages.EncryptionEvent"]=Ti),Si&&(JS["views.messages.EventTileBubble"]=Si),ki&&(JS["views.messages.MJitsiWidgetEvent"]=ki),Bi&&(JS["views.messages.MVideoBody"]=Bi),qi.a&&(JS["views.messages.RedactedBody"]=qi.a),Gi.b&&(JS["views.right_panel.BaseCard"]=Gi.b),Wi&&(JS["views.right_panel.EncryptionInfo"]=Wi),ra&&(JS["views.right_panel.EncryptionPanel"]=ra),la&&(JS["views.right_panel.GroupHeaderButtons"]=la),ia.a&&(JS["views.right_panel.HeaderButton"]=ia.a),aa.b&&(JS["views.right_panel.HeaderButtons"]=aa.b),pa.a&&(JS["views.right_panel.RoomHeaderButtons"]=pa.a),ma.a&&(JS["views.right_panel.RoomSummaryCard"]=ma.a),Qa&&(JS["views.right_panel.UserInfo"]=Qa),ta&&(JS["views.right_panel.VerificationPanel"]=ta),Ja.a&&(JS["views.right_panel.WidgetCard"]=Ja.a),Ys&&(JS["views.rooms.Autocomplete"]=Ys),$s.a&&(JS["views.rooms.AuxPanel"]=$s.a),el&&(JS["views.rooms.BasicMessageComposer"]=el),be&&(JS["views.rooms.ExtraTile"]=be),nl.a&&(JS["views.rooms.NewRoomIntro"]=nl.a),_e.a&&(JS["views.rooms.NotificationBadge"]=_e.a),Et&&(JS["views.rooms.RoomBreadcrumbs"]=Et),Le&&(JS["views.rooms.RoomList"]=Le),xt&&(JS["views.rooms.RoomListNumResults"]=xt),le.b&&(JS["views.rooms.RoomSublist"]=le.b),ol.a&&(JS["views.rooms.RoomTile"]=ol.a),Tl&&(JS["views.rooms.VoiceRecordComposerTile"]=Tl),Dl&&(JS["views.settings.BridgeTile"]=Dl),Al.a&&(JS["views.settings.SpellCheckSettings"]=Al.a),Nl.a&&(JS["views.settings.UpdateCheckButton"]=Nl.a),Ml&&(JS["views.settings.tabs.room.BridgeSettingsTab"]=Ml),Ll.a&&(JS["views.settings.tabs.user.AppearanceUserSettingsTab"]=Ll.a),Dn.a&&(JS["views.spaces.SpaceBasicSettings"]=Dn.a),Ln&&(JS["views.spaces.SpaceCreateMenu"]=Ln),Yn&&(JS["views.spaces.SpacePanel"]=Yn),jl.a&&(JS["views.spaces.SpacePublicShare"]=jl.a),Vn&&(JS["views.spaces.SpaceTreeLevel"]=Vn),Ul.a&&(JS["views.toasts.GenericExpiringToast"]=Ul.a),nn.a&&(JS["views.toasts.GenericToast"]=nn.a),Bl.a&&(JS["views.toasts.NonUrgentEchoFailureToast"]=Bl.a),Vl&&(JS["views.toasts.VerificationRequestToast"]=Vl),ll&&(JS["views.voice_messages.Clock"]=ll),ul&&(JS["views.voice_messages.LiveRecordingClock"]=ul),sl&&(JS["views.voice_messages.LiveRecordingWaveform"]=sl),il&&(JS["views.voice_messages.Waveform"]=il),yn&&(JS["views.voip.CallContainer"]=yn),bn&&(JS["views.voip.CallPreview"]=bn),hn.a&&(JS["views.voip.CallView"]=hn.a),Wl.a&&(JS["views.voip.CallViewForRoom"]=Wl.a),Yl.a&&(JS["views.voip.DialPad"]=Yl.a),$l.a&&(JS["views.voip.DialPadModal"]=$l.a),dn&&(JS["views.voip.IncomingCallBox"]=dn),Ql.b&&(JS["views.voip.VideoFeed"]=Ql.b),a.a&&(JS["structures.AutoHideScrollbar"]=a.a),oe&&(JS["structures.CustomRoomTagPanel"]=oe),Jl.a&&(JS["structures.EmbeddedPage"]=Jl.a),od&&(JS["structures.FilePanel"]=od),rd&&(JS["structures.GenericErrorPage"]=rd),$&&(JS["structures.GroupFilterPanel"]=$),Ed&&(JS["structures.GroupView"]=Ed),Tt&&(JS["structures.IndicatorScrollbar"]=Tt),Td.b&&(JS["structures.InteractiveAuth"]=Td.b),ld.a&&(JS["structures.MainSplit"]=ld.a),Md&&(JS["structures.MessagePanel"]=Md),Vd&&(JS["structures.MyGroups"]=Vd),Wd&&(JS["structures.NotificationPanel"]=Wd),dd.a&&(JS["structures.RightPanel"]=dd.a),ru&&(JS["structures.RoomDirectory"]=ru),hu&&(JS["structures.RoomStatusBar"]=hu),mu.a&&(JS["structures.ScrollPanel"]=mu.a),gu.a&&(JS["structures.SearchBox"]=gu.a),fu.a&&(JS["structures.TimelinePanel"]=fu.a),_u&&(JS["structures.UserView"]=_u),Cu&&(JS["structures.ViewSource"]=Cu),Du&&(JS["structures.auth.CompleteSecurity"]=Du),zu&&(JS["structures.auth.E2eSetup"]=zu),Qu&&(JS["structures.auth.ForgotPassword"]=Qu),Ru.a&&(JS["structures.auth.SetupEncryptionBody"]=Ru.a),sh&&(JS["structures.auth.SoftLogout"]=sh),lh&&(JS["views.auth.AuthBody"]=lh),uh&&(JS["views.auth.AuthFooter"]=uh),gh&&(JS["views.auth.AuthHeader"]=gh),_h&&(JS["views.auth.AuthHeaderLogo"]=_h),mo&&(JS["views.auth.AuthPage"]=mo),vh.a&&(JS["views.auth.CaptchaForm"]=vh.a),Au&&(JS["views.auth.CompleteSecurityBody"]=Au),Co&&(JS["views.auth.CountryDropdown"]=Co),Pu.d&&(JS["views.auth.InteractiveAuthEntryComponents"]=Pu.d),Eh&&(JS["views.auth.LanguageSelector"]=Eh),Sh&&(JS["views.auth.Welcome"]=Sh),Dh&&(JS["views.avatars.MemberStatusMessageAvatar"]=Dh),Fh&&(JS["views.context_menus.GenericElementContextMenu"]=Fh),jh&&(JS["views.context_menus.GenericTextContextMenu"]=jh),Gh&&(JS["views.context_menus.GroupInviteTileContextMenu"]=Gh),Kh.a&&(JS["views.context_menus.MessageContextMenu"]=Kh.a),xh&&(JS["views.context_menus.StatusMessageContextMenu"]=xh),Wh&&(JS["views.context_menus.TagTileContextMenu"]=Wh),Zh&&(JS["views.dialogs.AddressPickerDialog"]=Zh),op&&(JS["views.dialogs.AskInviteAnywayDialog"]=op),it.a&&(JS["views.dialogs.BaseDialog"]=it.a),Ke&&(JS["views.dialogs.BugReportDialog"]=Ke),ip.a&&(JS["views.dialogs.ChangelogDialog"]=ip.a),ap&&(JS["views.dialogs.ConfirmAndWaitRedactDialog"]=ap),cp&&(JS["views.dialogs.ConfirmRedactDialog"]=cp),Na&&(JS["views.dialogs.ConfirmUserActionDialog"]=Na),hp&&(JS["views.dialogs.ConfirmWipeDeviceDialog"]=hp),fp&&(JS["views.dialogs.CreateGroupDialog"]=fp),yp.a&&(JS["views.dialogs.CreateRoomDialog"]=yp.a),Ep&&(JS["views.dialogs.CryptoStoreTooNewDialog"]=Ep),Sp.a&&(JS["views.dialogs.DeactivateAccountDialog"]=Sp.a),Su.b&&(JS["views.dialogs.DevtoolsDialog"]=Su.b),rt.a&&(JS["views.dialogs.ErrorDialog"]=rt.a),Qe&&(JS["views.dialogs.FeedbackDialog"]=Qe),wp&&(JS["views.dialogs.IncomingSasDialog"]=wp),We.a&&(JS["views.dialogs.InfoDialog"]=We.a),Cp.a&&(JS["views.dialogs.IntegrationsDisabledDialog"]=Cp.a),Tp.a&&(JS["views.dialogs.IntegrationsImpossibleDialog"]=Tp.a),Lu&&(JS["views.dialogs.InteractiveAuthDialog"]=Lu),xp&&(JS["views.dialogs.KeySignatureUploadFailedDialog"]=xp),Dp&&(JS["views.dialogs.LazyLoadingDisabledDialog"]=Dp),Ip&&(JS["views.dialogs.LazyLoadingResyncDialog"]=Ip),Xe&&(JS["views.dialogs.LogoutDialog"]=Xe),Ap&&(JS["views.dialogs.ManualDeviceKeyVerificationDialog"]=Ap),Pp&&(JS["views.dialogs.MessageEditHistoryDialog"]=Pp),qp&&(JS["views.dialogs.NewSessionReviewDialog"]=qp),Be.a&&(JS["views.dialogs.QuestionDialog"]=Be.a),Xp&&(JS["views.dialogs.ReportEventDialog"]=Xp),Nm&&(JS["views.dialogs.RoomSettingsDialog"]=Nm),Lm&&(JS["views.dialogs.RoomUpgradeDialog"]=Lm),qm&&(JS["views.dialogs.RoomUpgradeWarningDialog"]=qm),zm&&(JS["views.dialogs.SessionRestoreErrorDialog"]=zm),Jm&&(JS["views.dialogs.SetEmailDialog"]=Jm),tg&&(JS["views.dialogs.SlashCommandHelpDialog"]=tg),ng&&(JS["views.dialogs.StorageEvictedDialog"]=ng),ag.a&&(JS["views.dialogs.TabbedIntegrationManagerDialog"]=ag.a),ug&&(JS["views.dialogs.TermsDialog"]=ug),gg&&(JS["views.dialogs.TextInputDialog"]=gg),vg&&(JS["views.dialogs.UploadConfirmDialog"]=vg),wg&&(JS["views.dialogs.UploadFailureDialog"]=wg),Ue.c&&(JS["views.dialogs.UserSettingsDialog"]=Ue.c),Bp.a&&(JS["views.dialogs.VerificationRequestDialog"]=Bp.a),Og.a&&(JS["views.dialogs.WidgetOpenIDPermissionsDialog"]=Og.a),kg&&(JS["views.dialogs.security.ConfirmDestroyCrossSigningDialog"]=kg),qu&&(JS["views.dialogs.security.CreateCrossSigningDialog"]=qu),Je.a&&(JS["views.dialogs.security.RestoreKeyBackupDialog"]=Je.a),Ag.a&&(JS["views.dialogs.security.SetupEncryptionDialog"]=Ag.a),nu&&(JS["views.directory.NetworkDropdown"]=nu),Ng&&(JS["views.elements.ActionButton"]=Ng),Lg&&(JS["views.elements.AddressSelector"]=Lg),qg&&(JS["views.elements.AddressTile"]=qg),zg.a&&(JS["views.elements.AppPermission"]=zg.a),At.a&&(JS["views.elements.AppTile"]=At.a),Kg.a&&(JS["views.elements.AppWarning"]=Kg.a),Yg&&(JS["views.elements.DNDTagTile"]=Yg),er.a&&(JS["views.elements.DialogButtons"]=er.a),Qg&&(JS["views.elements.DirectorySearchBox"]=Qg),ef.a&&(JS["views.elements.Dropdown"]=ef.a),nf&&(JS["views.elements.EditableItemList"]=nf),sf&&(JS["views.elements.EditableText"]=sf),lf&&(JS["views.elements.EditableTextContainer"]=lf),uf.a&&(JS["views.elements.ErrorBoundary"]=uf.a),pf&&(JS["views.elements.Flair"]=pf),cn.a&&(JS["views.elements.FormButton"]=cn.a),Io.a&&(JS["views.elements.InlineSpinner"]=Io.a),wm.a&&(JS["views.elements.LabelledToggleSwitch"]=wm.a),_f.a&&(JS["views.elements.LanguageDropdown"]=_f.a),_i&&(JS["views.elements.LazyRenderList"]=_i),Cn.a&&(JS["views.elements.PersistedElement"]=Cn.a),mn&&(JS["views.elements.PersistentApp"]=mn),Rl.a&&(JS["views.elements.Pill"]=Rl.a),Ca&&(JS["views.elements.PowerSelector"]=Ca),bf.a&&(JS["views.elements.ReplyThread"]=bf.a),Yt.a&&(JS["views.elements.ResizeHandle"]=Yt.a),vf&&(JS["views.elements.RoomAliasField"]=vf),Ao.a&&(JS["views.elements.Spinner"]=Ao.a),Ef&&(JS["views.elements.Spoiler"]=Ef),Eu.a&&(JS["views.elements.SyntaxHighlight"]=Eu.a),Wg&&(JS["views.elements.TagTile"]=Wg),Lo.a&&(JS["views.elements.TextWithTooltip"]=Lo.a),kf&&(JS["views.elements.TintableSvg"]=kf),Rf&&(JS["views.elements.TooltipButton"]=Rf),Nf&&(JS["views.elements.TruncatedList"]=Nf),Qi&&(JS["views.elements.crypto.VerificationQRCode"]=Qi),Lf&&(JS["views.groups.GroupInviteTile"]=Lf),qf&&(JS["views.groups.GroupMemberList"]=qf),zf&&(JS["views.groups.GroupMemberTile"]=zf),$f&&(JS["views.groups.GroupPublicityToggle"]=$f),Zf&&(JS["views.groups.GroupRoomInfo"]=Zf),o_&&(JS["views.groups.GroupRoomList"]=o_),d_&&(JS["views.groups.GroupRoomTile"]=d_),g_&&(JS["views.groups.GroupTile"]=g_),f_.a&&(JS["views.groups.GroupUserSettings"]=f_.a),__&&(JS["views.messages.DateSeparator"]=__),j_&&(JS["views.messages.EditHistoryMessage"]=j_),B_&&(JS["views.messages.MAudioBody"]=B_),ji&&(JS["views.messages.MFileBody"]=ji),H_&&(JS["views.messages.MImageBody"]=H_),W_&&(JS["views.messages.MKeyVerificationConclusion"]=W_),$_&&(JS["views.messages.MKeyVerificationRequest"]=$_),J_&&(JS["views.messages.MStickerBody"]=J_),rb&&(JS["views.messages.MessageActionBar"]=rb),cb.a&&(JS["views.messages.MessageEvent"]=cb.a),lb.a&&(JS["views.messages.MessageTimestamp"]=lb.a),db&&(JS["views.messages.MjolnirBody"]=db),mb&&(JS["views.messages.ReactionsRow"]=mb),bb&&(JS["views.messages.ReactionsRowButton"]=bb),Sb&&(JS["views.messages.ReactionsRowButtonTooltip"]=Sb),xb&&(JS["views.messages.RoomAvatarEvent"]=xb),Db&&(JS["views.messages.RoomCreate"]=Db),Fb&&(JS["views.messages.SenderProfile"]=Fb),jb.a&&(JS["views.messages.TextualBody"]=jb.a),Ub&&(JS["views.messages.TextualEvent"]=Ub),qb&&(JS["views.messages.TileErrorBoundary"]=qb),zb.a&&(JS["views.messages.UnknownBody"]=zb.a),Kb&&(JS["views.messages.ViewSourceEvent"]=Kb),Zb&&(JS["views.room_settings.AliasSettings"]=Zb),rv&&(JS["views.room_settings.RelatedGroupSettings"]=rv),gm&&(JS["views.room_settings.RoomProfileSettings"]=gm),Yb&&(JS["views.room_settings.RoomPublishSetting"]=Yb),cv&&(JS["views.room_settings.UrlPreviewSettings"]=cv),lv.a&&(JS["views.rooms.AppsDrawer"]=lv.a),Zi.b&&(JS["views.rooms.E2EIcon"]=Zi.b),kv&&(JS["views.rooms.EditMessageComposer"]=kv),Lv&&(JS["views.rooms.EntityTile"]=Lv),Id.a&&(JS["views.rooms.EventTile"]=Id.a),jv.a&&(JS["views.rooms.ForwardMessage"]=jv.a),Uv&&(JS["views.rooms.JumpToBottomButton"]=Uv),Bv&&(JS["views.rooms.LinkPreviewWidget"]=Bv),Hv&&(JS["views.rooms.MemberList"]=Hv),Yv&&(JS["views.rooms.MemberTile"]=Yv),uy&&(JS["views.rooms.MessageComposer"]=uy),Kc&&(JS["views.rooms.MessageComposerFormatBar"]=Kc),hy.a&&(JS["views.rooms.PinnedEventTile"]=hy.a),py.a&&(JS["views.rooms.PinnedEventsPanel"]=py.a),ka&&(JS["views.rooms.PresenceLabel"]=ka),vy&&(JS["views.rooms.ReadReceiptMarker"]=vy),iy&&(JS["views.rooms.ReplyPreview"]=iy),Ry&&(JS["views.rooms.RoomDetailList"]=Ry),Ty&&(JS["views.rooms.RoomDetailRow"]=Ty),Ny.a&&(JS["views.rooms.RoomHeader"]=Ny.a),Fy.a&&(JS["views.rooms.RoomPreviewBar"]=Fy.a),My.a&&(JS["views.rooms.RoomUpgradeWarningBar"]=My.a),Py.a&&(JS["views.rooms.SearchBar"]=Py.a),Ly&&(JS["views.rooms.SearchResultTile"]=Ly),Ky&&(JS["views.rooms.SendMessageComposer"]=Ky),Qy.b&&(JS["views.rooms.SimpleRoomHeader"]=Qy.b),ey&&(JS["views.rooms.Stickerpicker"]=ey),Jy&&(JS["views.rooms.ThirdPartyMemberInfo"]=Jy),tE&&(JS["views.rooms.TopUnreadMessagesBar"]=tE),sE&&(JS["views.rooms.WhoIsTypingTile"]=sE),hE&&(JS["views.settings.AvatarSetting"]=hE),pE&&(JS["views.settings.ChangeAvatar"]=pE),gE&&(JS["views.settings.ChangeDisplayName"]=gE),vE&&(JS["views.settings.ChangePassword"]=vE),EE&&(JS["views.settings.CrossSigningPanel"]=EE),wE&&(JS["views.settings.DevicesPanel"]=wE),TE&&(JS["views.settings.DevicesPanelEntry"]=TE),OE.a&&(JS["views.settings.E2eAdvancedPanel"]=OE.a),kE&&(JS["views.settings.EventIndexPanel"]=kE),RE.a&&(JS["views.settings.IntegrationManager"]=RE.a),KE&&(JS["views.settings.Notifications"]=KE),QE.a&&(JS["views.settings.ProfileSettings"]=QE.a),JE.a&&(JS["views.settings.SecureBackupPanel"]=JE.a),ZE&&(JS["views.settings.SetIdServer"]=ZE),tS&&(JS["views.settings.SetIntegrationManager"]=tS),aS&&(JS["views.settings.account.EmailAddresses"]=aS),uS&&(JS["views.settings.account.PhoneNumbers"]=uS),fS&&(JS["views.settings.discovery.EmailAddresses"]=fS),ES&&(JS["views.settings.discovery.PhoneNumbers"]=ES),om&&(JS["views.settings.tabs.room.AdvancedRoomSettingsTab"]=om),vm&&(JS["views.settings.tabs.room.GeneralRoomSettingsTab"]=vm),Rm&&(JS["views.settings.tabs.room.NotificationSettingsTab"]=Rm),um&&(JS["views.settings.tabs.room.RolesRoomSettingsTab"]=um),Cm&&(JS["views.settings.tabs.room.SecurityRoomSettingsTab"]=Cm),TS.a&&(JS["views.settings.tabs.user.FlairUserSettingsTab"]=TS.a),xS.a&&(JS["views.settings.tabs.user.GeneralUserSettingsTab"]=xS.a),OS.a&&(JS["views.settings.tabs.user.HelpUserSettingsTab"]=OS.a),kS.a&&(JS["views.settings.tabs.user.LabsUserSettingsTab"]=kS.a),RS.a&&(JS["views.settings.tabs.user.MjolnirUserSettingsTab"]=RS.a),DS.a&&(JS["views.settings.tabs.user.NotificationUserSettingsTab"]=DS.a),IS.a&&(JS["views.settings.tabs.user.PreferencesUserSettingsTab"]=IS.a),AS.a&&(JS["views.settings.tabs.user.SecurityUserSettingsTab"]=AS.a),NS.a&&(JS["views.settings.tabs.user.VoiceUserSettingsTab"]=NS.a),FS&&(JS["views.terms.InlineTermsAgreement"]=FS),jS&&(JS["views.verification.VerificationCancelled"]=jS),GS&&(JS["views.verification.VerificationComplete"]=GS),KS&&(JS["views.verification.VerificationQREmojiOptions"]=KS),QS&&(JS["views.verification.VerificationShowSas"]=QS)},function(e,t,n){"use strict";n.d(t,"b",(function(){return R})),n.d(t,"a",(function(){return I}));var o=n(83),r=n.n(o),i=n(1),a=n(114),s=n(7),c=n(117),l=n(124),d=n(273),u=n(192),h=n(240);var p=n(88),m=n(552);const g={[h.b.Recent]:new class{async sortRooms(e,t){let n="";p.a.get()&&(n=p.a.get().getUserId());const o={},r=e=>{if(o[e.roomId])return o[e.roomId];const t=(()=>{if(!e||!e.timeline)return Number.MAX_SAFE_INTEGER;if(Object(u.b)(e.getMyMembership())!==u.a.Join){const t=e.currentState.getStateEvents("m.room.member",n);if(t&&!Array.isArray(t))return t.getTs()}for(let t=e.timeline.length-1;t>=0;--t){const o=e.timeline[t];if(o.getTs()&&(o.getSender()===n||m.b(o)))return o.getTs()}return e.timeline.length&&e.timeline[0].getTs()?e.timeline[0].getTs():Number.MAX_SAFE_INTEGER})();return o[e.roomId]=t,t};return e.sort((e,t)=>r(t)-r(e))}},[h.b.Alphabetic]:new class{async sortRooms(e,t){return e.sort((e,t)=>e.name.localeCompare(t.name))}},[h.b.Manual]:new class{async sortRooms(e,t){const n=e=>e.tags[t].order||0;return e.sort((e,t)=>n(e)-n(t))}}};function f(e,t,n){return function(e){if(!g[e])throw new Error(e+" is not a known algorithm");return g[e]}(n).sortRooms(e,t)}var _=n(504),b=n.n(_);class v{constructor(e,t){this.tagId=e,r()(this,"cachedOrderedRooms",void 0),r()(this,"sortingAlgorithm",void 0),r()(this,"updateLock",new b.a),this.setSortAlgorithm(t)}get orderedRooms(){return this.cachedOrderedRooms||[]}async setSortAlgorithm(e){if(!e)throw new Error("A sorting algorithm must be defined");this.sortingAlgorithm=e,await this.setRooms(this.orderedRooms)}getRoomIndex(e){let t=this.cachedOrderedRooms.indexOf(e);return-1===t&&(console.warn(`Degrading performance to find missing room in "${this.tagId}": ${e.roomId}`),t=this.cachedOrderedRooms.findIndex(t=>t.roomId===e.roomId)),t}}var y=n(216),E=n(166);const S=[y.a.Red,y.a.Grey,y.a.Bold,y.a.None];class w extends v{constructor(e,t){super(e,t),r()(this,"indices",{})}categorizeRooms(e){const t={[y.a.Red]:[],[y.a.Grey]:[],[y.a.Bold]:[],[y.a.None]:[]};for(const n of e){t[this.getRoomCategory(n)].push(n)}return t}getRoomCategory(e){return E.a.instance.getRoomState(e).color}async setRooms(e){if(this.sortingAlgorithm===h.b.Manual)this.cachedOrderedRooms=await f(e,this.tagId,this.sortingAlgorithm);else{const t=this.categorizeRooms(e);for(const e of Object.keys(t)){const n=t[e];t[e]=await f(n,this.tagId,this.sortingAlgorithm)}const n=[],o={};for(const e of S)o[e]=n.length,n.push(...t[e]);this.indices=o,this.cachedOrderedRooms=n}}async handleSplice(e,t){if(t===l.c.NewRoom){const t=this.getRoomCategory(e);this.alterCategoryPositionBy(t,1,this.indices),this.cachedOrderedRooms.splice(this.indices[t],0,e),await this.sortCategory(t)}else{if(t!==l.c.RoomRemoved)throw new Error("Unhandled splice: "+t);{const t=this.getRoomIndex(e);if(-1===t)return console.warn(`Tried to remove unknown room from ${this.tagId}: ${e.roomId}`),!1;const n=this.getCategoryFromIndices(t,this.indices);this.alterCategoryPositionBy(n,-1,this.indices),this.cachedOrderedRooms.splice(t,1)}}return!0}async handleRoomUpdate(e,t){try{if(await this.updateLock.acquireAsync(),t===l.c.NewRoom||t===l.c.RoomRemoved)return this.handleSplice(e,t);if(t!==l.c.Timeline&&t!==l.c.ReadReceipt)throw new Error("Unsupported update cause: "+t);const n=this.getRoomCategory(e);if(this.sortingAlgorithm===h.b.Manual)return;const o=this.getRoomIndex(e);if(-1===o)throw new Error(`Room ${e.roomId} has no index in ${this.tagId}`);const r=this.getCategoryFromIndices(o,this.indices);return r!==n&&(this.moveRoomIndexes(1,r,n,this.indices),this.cachedOrderedRooms.splice(o,1),this.cachedOrderedRooms.splice(this.indices[n],0,e)),await this.sortCategory(n),!0}finally{await this.updateLock.release()}}async sortCategory(e){const t=e===S[S.length-1]?Number.MAX_SAFE_INTEGER:this.indices[S[S.indexOf(e)+1]],n=this.indices[e],o=t-n,r=this.cachedOrderedRooms.splice(n,o),i=await f(r,this.tagId,this.sortingAlgorithm);this.cachedOrderedRooms.splice(n,0,...i)}getCategoryFromIndices(e,t){for(let n=0;n<S.length;n++){const o=S[n],r=n===S.length-1,i=t[o],a=r?Number.MAX_SAFE_INTEGER:t[S[n+1]];if(e>=i&&e<a)return o}throw new Error("Programming error: somehow you've ended up with an index that isn't in a category")}moveRoomIndexes(e,t,n,o){this.alterCategoryPositionBy(t,-e,o),this.alterCategoryPositionBy(n,+e,o)}alterCategoryPositionBy(e,t,n){const o=S.indexOf(e)+1;if(t>0)for(let e=o;e<S.length;e++){n[S[e]]+=Math.abs(t)}else if(t<0)for(let e=o;e<S.length;e++){n[S[e]]-=Math.abs(t)}for(let e=1;e<=S.length;e++){const t=S[e-1],o=S[e];n[t]>n[o]&&console.warn(`!! Room list index corruption: ${t} (i:${n[t]}) is greater than ${o} (i:${n[o]}) - category indices are likely desynced from reality`)}}}class C extends v{constructor(e,t){super(e,t)}async setRooms(e){this.cachedOrderedRooms=await f(e,this.tagId,this.sortingAlgorithm)}async handleRoomUpdate(e,t){try{await this.updateLock.acquireAsync();const n=t===l.c.NewRoom||t===l.c.RoomRemoved,o=t===l.c.Timeline||t===l.c.ReadReceipt;if(!n&&!o)throw new Error("Unsupported update cause: "+t);if(t===l.c.NewRoom)this.cachedOrderedRooms.push(e);else if(t===l.c.RoomRemoved){const t=this.getRoomIndex(e);t>=0?this.cachedOrderedRooms.splice(t,1):console.warn(`Tried to remove unknown room from ${this.tagId}: ${e.roomId}`)}return this.cachedOrderedRooms=await f(this.cachedOrderedRooms,this.tagId,this.sortingAlgorithm),!0}finally{await this.updateLock.release()}}}const T={[h.a.Natural]:(e,t)=>new C(e,t),[h.a.Importance]:(e,t)=>new w(e,t)};function x(e,t,n){if(!T[e])throw new Error(e+" is not a known algorithm");return T[e](t,n)}var O=n(90),k=n(493);const R="list_updated_event",D=[l.c.Timeline,l.c.ReadReceipt];class I extends s.EventEmitter{constructor(){super(),r()(this,"_cachedRooms",{}),r()(this,"_cachedStickyRooms",{}),r()(this,"filteredRooms",{}),r()(this,"_stickyRoom",null),r()(this,"_lastStickyRoom",null),r()(this,"sortAlgorithms",void 0),r()(this,"listAlgorithms",void 0),r()(this,"algorithms",void 0),r()(this,"rooms",[]),r()(this,"roomIdsToTags",{}),r()(this,"allowedByFilter",new Map),r()(this,"allowedRoomsByFilters",new Set),r()(this,"updatesInhibited",!1)}get stickyRoom(){return this._stickyRoom?this._stickyRoom.room:null}get knownRooms(){return this.rooms}get hasTagSortingMap(){return!!this.sortAlgorithms}get hasFilters(){return this.allowedByFilter.size>0}set cachedRooms(e){this._cachedRooms=e,this.recalculateFilteredRooms(),this.recalculateStickyRoom()}get cachedRooms(){return this._cachedRooms}async setStickyRoom(e){await this.updateStickyRoom(e)}getTagSorting(e){return this.sortAlgorithms?this.sortAlgorithms[e]:null}async setTagSorting(e,t){if(!e)throw new Error("Tag ID must be defined");if(!t)throw new Error("Algorithm must be defined");this.sortAlgorithms[e]=t;const n=this.algorithms[e];await n.setSortAlgorithm(t),this._cachedRooms[e]=n.orderedRooms,this.recalculateFilteredRoomsForTag(e),this.recalculateStickyRoom(e)}getListOrdering(e){return this.listAlgorithms?this.listAlgorithms[e]:null}async setListOrdering(e,t){if(!e)throw new Error("Tag ID must be defined");if(!t)throw new Error("Algorithm must be defined");this.listAlgorithms[e]=t;const n=x(t,e,this.sortAlgorithms[e]);this.algorithms[e]=n,await n.setRooms(this._cachedRooms[e]),this._cachedRooms[e]=n.orderedRooms,this.recalculateFilteredRoomsForTag(e),this.recalculateStickyRoom(e)}addFilterCondition(e){this.allowedByFilter.set(e,this.rooms.filter(t=>e.isVisible(t))),this.recalculateFilteredRooms(),e.on(d.a,this.handleFilterChange.bind(this))}removeFilterCondition(e){e.off(d.a,this.handleFilterChange.bind(this)),this.allowedByFilter.has(e)&&(this.allowedByFilter.delete(e),this.recalculateFilteredRooms(),this.hasFilters||this.updatesInhibited||this.emit(R))}async handleFilterChange(){await this.recalculateFilteredRooms(),this.updatesInhibited||this.emit(d.a)}async updateStickyRoom(e){try{return await this.doUpdateStickyRoom(e)}finally{this._lastStickyRoom=null}}async doUpdateStickyRoom(e){var t,n;if(null!==(t=e)&&void 0!==t&&t.isSpaceRoom()&&"invite"!==e.getMyMembership()&&(e=null),e&&!k.a.instance.isRoomVisible(e)&&(e=null),this._lastStickyRoom=this._stickyRoom||{},!e){if(this._stickyRoom){const e=this._stickyRoom.room;return this._stickyRoom=null,void await this.handleRoomUpdate(e,l.c.NewRoom)}return}let o=null===(n=this.roomIdsToTags[e.roomId])||void 0===n?void 0:n[0];if(!o)throw new Error(e.roomId+" does not belong to a tag and cannot be sticky");let r=(this.getOrderedRoomsWithoutSticky()[o]||[]).indexOf(e);const i=!!this._lastStickyRoom.room&&this._lastStickyRoom.room.roomId===e.roomId;if(this._lastStickyRoom.tag&&o!==this._lastStickyRoom.tag&&i&&r<0&&(console.warn(`Sticky room ${e.roomId} changed tags during sticky room handling`),r=0),r<0)throw new Error(e.roomId+" does not appear to be known and cannot be sticky");const a=this._stickyRoom;if(this._stickyRoom=null,this.recalculateStickyRoom(),a&&a.room&&a.room.roomId!==e.roomId&&await this.handleRoomUpdate(a.room,l.c.NewRoom),await this.handleRoomUpdate(e,l.c.RoomRemoved),this._stickyRoom){if(this._stickyRoom.room!==e){if(this._stickyRoom.room.roomId!==e.roomId)throw new Error("Sticky room changed while the sticky room was changing");console.warn("Sticky room changed references")}console.warn(`Sticky room changed tag & position from ${o} / ${r} to ${this._stickyRoom.tag} / ${this._stickyRoom.position}`),o=this._stickyRoom.tag,r=this._stickyRoom.position}a&&a.tag===o&&a.position<=r&&r++,this._stickyRoom={room:e,position:r,tag:o},this.recalculateFilteredRoomsForTag(o),a&&a.tag!==o&&this.recalculateFilteredRoomsForTag(a.tag),this.recalculateStickyRoom(),this.updatesInhibited||this.emit(R)}recalculateFilteredRooms(){if(!this.hasFilters)return;console.warn("Recalculating filtered room list");const e=Array.from(this.allowedByFilter.keys()),t={};for(const n of Object.keys(this.cachedRooms)){const o=this.cachedRooms[n].map(e=>e);this.tryInsertStickyRoomToFilterSet(o,n);const r=o.map(e=>e),i=[];for(const t of e){const e=r.filter(e=>t.isVisible(e));for(const t of e){const e=r.indexOf(t);e>=0&&r.splice(e,1),i.push(t)}}t[n]=i,O.b.getValue("advancedRoomListLogging")&&console.log(`[DEBUG] ${t[n].length}/${o.length} rooms filtered into ${n}`)}const n=Object.values(t).reduce((e,t)=>(e.push(...t),e),[]);this.allowedRoomsByFilters=new Set(n),this.filteredRooms=t,this.updatesInhibited||this.emit(R)}recalculateFilteredRoomsForTag(e){if(!this.hasFilters)return;O.b.getValue("advancedRoomListLogging")&&console.log("Recalculating filtered rooms for "+e),delete this.filteredRooms[e];const t=this.cachedRooms[e].map(e=>e);this.tryInsertStickyRoomToFilterSet(t,e);const n=t.filter(e=>this.allowedRoomsByFilters.has(e));n.length>0&&(this.filteredRooms[e]=n),O.b.getValue("advancedRoomListLogging")&&console.log(`[DEBUG] ${n.length}/${t.length} rooms filtered into ${e}`)}tryInsertStickyRoomToFilterSet(e,t){if(!this._stickyRoom||!this._stickyRoom.room||this._stickyRoom.tag!==t)return;const n=this._stickyRoom.position;n>=e.length?e.push(this._stickyRoom.room):e.splice(n,0,this._stickyRoom.room)}recalculateStickyRoom(e=null){if(!this._stickyRoom){if(this._cachedStickyRooms){if(this._cachedStickyRooms=null,this.updatesInhibited)return;this.emit(R)}return}if(!this._cachedStickyRooms||!e){O.b.getValue("advancedRoomListLogging")&&console.log("Generating clone of cached rooms for sticky room handling");const e={};for(const t of Object.keys(this.cachedRooms))e[t]=this.cachedRooms[t].map(e=>e);this._cachedStickyRooms=e}e&&(O.b.getValue("advancedRoomListLogging")&&console.log("Replacing cached sticky rooms for "+e),this._cachedStickyRooms[e]=this.cachedRooms[e].map(e=>e));const t=this._stickyRoom;e&&e!==t.tag||(O.b.getValue("advancedRoomListLogging")&&console.log(`Inserting sticky room ${t.room.roomId} at position ${t.position} in ${t.tag}`),this._cachedStickyRooms[t.tag].splice(t.position,0,t.room)),this.updatesInhibited||this.emit(R)}async populateTags(e,t){if(!e)throw new Error("Sorting map cannot be null or empty");if(!t)throw new Error("Ordering ma cannot be null or empty");if(Object(c.d)(Object.keys(e),Object.keys(t)))throw new Error("Both maps must contain the exact same tags");this.sortAlgorithms=e,this.listAlgorithms=t,this.algorithms={};for(const t of Object.keys(e))this.algorithms[t]=x(this.listAlgorithms[t],t,this.sortAlgorithms[t]);return this.setKnownRooms(this.rooms)}getOrderedRooms(){return this.hasFilters?this.filteredRooms:this._cachedStickyRooms||this.cachedRooms}getUnfilteredRooms(){return this._cachedStickyRooms||this.cachedRooms}getOrderedRoomsWithoutSticky(){return this.hasFilters?this.filteredRooms:this.cachedRooms}async setKnownRooms(e){if(Object(i.s)(e))throw new Error("Array of rooms cannot be null");if(!this.sortAlgorithms)throw new Error("Cannot set known rooms without a tag sorting map");this.updatesInhibited||console.warn("Resetting known rooms, initiating regeneration");const t=this._stickyRoom;await this.updateStickyRoom(null),this.rooms=e;const n={};for(const e in this.sortAlgorithms)n[e]=[];if(!e.length)return await this.generateFreshTags(n),void(this.cachedRooms=n);const o=Object(u.e)(e);for(const e of o[u.a.Invite])n[l.a.Invite].push(e);for(const e of o[u.a.Leave])n[l.a.Archived].push(e);for(const e of o[u.a.Join]){const t=this.getTagsOfJoinedRoom(e);let o=!1;if(t.length>0)for(const r of t)Object(i.s)(n[r])||(n[r].push(e),o=!0);o||(a.a.shared().getUserIdForRoomId(e.roomId)?n[l.a.DM].push(e):n[l.a.Untagged].push(e))}await this.generateFreshTags(n),this.cachedRooms=n,this.updateTagsFromCache(),this.recalculateFilteredRooms(),t&&t.room&&(await this.updateStickyRoom(t.room),this._stickyRoom&&this._stickyRoom.room&&this._stickyRoom.tag!==t.tag&&(this._stickyRoom.position=0,this.recalculateStickyRoom(this._stickyRoom.tag)))}getTagsForRoom(e){const t=[],n=Object(u.b)(e.getMyMembership());return n===u.a.Invite?t.push(l.a.Invite):n===u.a.Leave?t.push(l.a.Archived):t.push(...this.getTagsOfJoinedRoom(e)),t.length||t.push(l.a.Untagged),t}getTagsOfJoinedRoom(e){let t=Object.keys(e.tags||{});return 0===t.length&&a.a.shared().getUserIdForRoomId(e.roomId)&&(t=[l.a.DM]),t}updateTagsFromCache(){const e={},t=Object.keys(this.cachedRooms);for(const n of t){const t=this.cachedRooms[n];for(const o of t)e[o.roomId]||(e[o.roomId]=[]),e[o.roomId].push(n)}this.roomIdsToTags=e}async generateFreshTags(e){if(!this.algorithms)throw new Error("Not ready: no algorithms to determine tags from");for(const t of Object.keys(e)){const n=this.algorithms[t];if(!n)throw new Error("No algorithm for "+t);await n.setRooms(e[t]),e[t]=n.orderedRooms}}async handleRoomUpdate(e,t){if(O.b.getValue("advancedRoomListLogging")&&console.log(`Handle room update for ${e.roomId} called with cause ${t}`),!this.algorithms)throw new Error("Not ready: no algorithms to determine tags from");const n=this._stickyRoom&&this._stickyRoom.room&&this._stickyRoom.room.roomId===e.roomId;if(t===l.c.NewRoom){const o=this._lastStickyRoom&&this._lastStickyRoom.room===e,r=this.roomIdsToTags[e.roomId],i=r&&r.length>0;i&&!o&&(console.warn(e.roomId+" is reportedly new but is already known - assuming TagChange instead"),t=l.c.PossibleTagChange);let a=this.rooms.includes(e);if(i&&!a&&(console.warn(e.roomId+" might be a reference change - attempting to update reference"),this.rooms=this.rooms.map(t=>t.roomId===e.roomId?e:t),a=this.rooms.includes(e),a||console.warn(e.roomId+" is still not referenced. It may be sticky.")),i&&!a&&!n)throw new Error(e.roomId+" is missing from room array but is known - trying to find duplicate");i&&n&&(this._stickyRoom.room=e),t!==l.c.NewRoom||n||a||this.rooms.push(e)}let o=!1;if(t===l.c.PossibleTagChange){const r=this.roomIdsToTags[e.roomId]||[],i=this.getTagsForRoom(e),a=Object(c.a)(r,i);if(a.removed.length>0||a.added.length>0){for(const t of a.removed){O.b.getValue("advancedRoomListLogging")&&console.log(`Removing ${e.roomId} from ${t}`);const n=this.algorithms[t];if(!n)throw new Error("No algorithm for "+t);await n.handleRoomUpdate(e,l.c.RoomRemoved),this._cachedRooms[t]=n.orderedRooms,this.recalculateFilteredRoomsForTag(t),this.recalculateStickyRoom(t)}for(const t of a.added){O.b.getValue("advancedRoomListLogging")&&console.log(`Adding ${e.roomId} to ${t}`);const n=this.algorithms[t];if(!n)throw new Error("No algorithm for "+t);await n.handleRoomUpdate(e,l.c.NewRoom),this._cachedRooms[t]=n.orderedRooms}this.roomIdsToTags[e.roomId]=i,O.b.getValue("advancedRoomListLogging")&&console.log(`Changing update cause for ${e.roomId} to Timeline to sort rooms`),t=l.c.Timeline,o=!0}else O.b.getValue("advancedRoomListLogging")&&console.log(`Received no-op update for ${e.roomId} - changing to Timeline update`),t=l.c.Timeline;o&&n&&(this._lastStickyRoom?this._stickyRoom={room:e,tag:this.roomIdsToTags[e.roomId][0],position:0}:await this.setStickyRoom(e))}if(t!==l.c.NewRoom&&t!==l.c.RoomRemoved&&this.stickyRoom===e)return O.b.getValue("advancedRoomListLogging")&&console.warn(`[RoomListDebug] Received ${t} update for sticky room ${e.roomId} - ignoring`),!1;if(!this.roomIdsToTags[e.roomId]){if(D.includes(t))return O.b.getValue("advancedRoomListLogging")&&console.warn(`Skipping tag update for ${e.roomId} because we don't know about the room`),!1;O.b.getValue("advancedRoomListLogging")&&console.log(`[RoomListDebug] Updating tags for room ${e.roomId} (${e.name})`);const n=this.getTagsForRoom(e).filter(e=>!Object(i.s)(this.cachedRooms[e]));if(!n.length)throw new Error("Tags cannot be determined for "+e.roomId);this.roomIdsToTags[e.roomId]=n,O.b.getValue("advancedRoomListLogging")&&console.log(`[RoomListDebug] Updated tags for ${e.roomId}:`,n)}O.b.getValue("advancedRoomListLogging")&&console.log(`[RoomListDebug] Reached algorithmic handling for ${e.roomId} and cause ${t}`);const r=this.roomIdsToTags[e.roomId];if(!r)return console.warn(`No tags known for "${e.name}" (${e.roomId})`),!1;let a=o;for(const n of r){const o=this.algorithms[n];if(!o)throw new Error("No algorithm for "+n);await o.handleRoomUpdate(e,t),this._cachedRooms[n]=o.orderedRooms,this.recalculateFilteredRoomsForTag(n),this.recalculateStickyRoom(n),a=!0}return O.b.getValue("advancedRoomListLogging")&&console.log(`[RoomListDebug] Finished handling ${e.roomId} with cause ${t} (changed=${a})`),a}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var o=n(83),r=n.n(o),i=n(141),a=n(89),s=n(84),c=n(88),l=n(124);function d(e){const t=c.a.get().getUserId();return"m.room.member"===e.getType()?e.getStateKey()===t:e.getSender()===t}function u(e,t){if(t!==l.a.DM)return!0;const n=c.a.get().getRoom(e);return!n||2!==n.currentState.getJoinedMemberCount()}function h(e){return e.sender?e.sender.name:e.getSender()}var p=n(241),m=n(127);var g=n(1);var f=n(90),_=n(114);var b=n(115);const v={"m.room.message":{isState:!1,previewer:new class{getTextFor(e,t){let n=e.getContent();if(e.isRelation("m.replace")&&(n=e.getContent()["m.new_content"]),!n||!n.body)return null;let o=(n.body||"").trim();const r=n.msgtype;if(!o||!r)return null;const i="org.matrix.custom.html"===n.format&&n.formatted_body;i&&(o=n.formatted_body);const a=e.getWireContent()["m.relates_to"];return a&&a["m.in_reply_to"]&&(o=i?(p.a.stripHTMLReply(o)||"").trim():(p.a.stripPlainReply(o)||"").trim(),!o)?null:(i&&(o=Object(m.h)(o)),"m.emote"===r?Object(s.a)("* %(senderName)s %(emote)s",{senderName:h(e),emote:o}):d(e)||!u(e.getRoomId(),t)?o:Object(s.a)("%(senderName)s: %(message)s",{senderName:h(e),message:o}))}}},"m.call.invite":{isState:!1,previewer:new class{getTextFor(e,t){return u(e.getRoomId(),t)?d(e)?Object(s.a)("You started a call"):Object(s.a)("%(senderName)s started a call",{senderName:h(e)}):d(e)?Object(s.a)("Waiting for answer"):Object(s.a)("%(senderName)s is calling",{senderName:h(e)})}}},"m.call.answer":{isState:!1,previewer:new class{getTextFor(e,t){return u(e.getRoomId(),t)?d(e)?Object(s.a)("You joined the call"):Object(s.a)("%(senderName)s joined the call",{senderName:h(e)}):Object(s.a)("Call in progress")}}},"m.call.hangup":{isState:!1,previewer:new class{getTextFor(e,t){return u(e.getRoomId(),t)?d(e)?Object(s.a)("You ended the call"):Object(s.a)("%(senderName)s ended the call",{senderName:h(e)}):Object(s.a)("Call ended")}}},"m.sticker":{isState:!1,previewer:new class{getTextFor(e,t){const n=e.getContent().body;return n?d(e)||!u(e.getRoomId(),t)?n:Object(s.a)("%(senderName)s: %(stickerName)s",{senderName:h(e),stickerName:n}):null}}},"m.reaction":{isState:!1,previewer:new class{getTextFor(e,t){const n=f.b.getValue("feature_roomlist_preview_reactions_dms");if(!(f.b.getValue("feature_roomlist_preview_reactions_all")||n&&_.a.shared().getUserIdForRoomId(e.getRoomId())))return null;const o=e.getRelation();if(!o)return null;const r=o.key;return r?d(e)||!u(e.getRoomId(),t)?r:Object(s.a)("%(senderName)s: %(reaction)s",{senderName:h(e),reaction:r}):null}}}},y="im.vector.any";class E extends i.a{constructor(){super(a.a,{}),r()(this,"previews",new Map)}static get instance(){return E.internalInstance}static getPreviewChangedEventName(e){return"room_preview_changed:"+(null==e?void 0:e.roomId)}getPreviewForRoom(e,t){if(!e)return null;this.previews.has(e.roomId)||this.generatePreview(e,t);const n=this.previews.get(e.roomId);return n?n.has(t)?n.get(t):n.get(y):null}generatePreview(e,t){const n=e.timeline;if(!n)return;let o=this.previews.get(e.roomId);o||(o=new Map,this.previews.set(e.roomId,o)),o.has(y)||o.set(y,null),t&&!o.has(t)&&o.set(t,null);let r=!1;for(let t=n.length-1;t>=0&&t!==n.length-50;t--){const i=n[t],a=v[i.getType()];if(!a)continue;if(a.isState&&Object(g.s)(i.getStateKey()))continue;const s=a.previewer.getTextFor(i,null);if(!s)continue;r=r||s!==o.get(y),o.set(y,s);const c=Array.from(o.keys()).filter(e=>e!==y);for(const e of c){const t=e===y?null:e,n=a.previewer.getTextFor(i,t);n===s?(r=r||s!==o.get(e),o.delete(e)):(r=r||n!==o.get(e),o.set(e,n))}return void(r&&(this.previews.set(e.roomId,o),this.emit(b.b,this),this.emit(E.getPreviewChangedEventName(e),e)))}this.previews.set(e.roomId,new Map),this.emit(b.b,this),this.emit(E.getPreviewChangedEventName(e),e)}async onAction(e){if(this.matrixClient&&("MatrixActions.Room.timeline"===e.action||"MatrixActions.Event.decrypted"===e.action)){const t=e.event;if(!this.previews.has(t.getRoomId()))return;this.generatePreview(this.matrixClient.getRoom(t.getRoomId()),y)}}}r()(E,"internalInstance",new E)},function(e,t,n){"use strict";n.d(t,"a",(function(){return D}));var o=n(83),r=n.n(o),i=n(88),a=n(89),s=n(84),c=n(157),l=n(139);var d=n(91),u=n(87),h=n(654),p=n(165),m=n(221);const g=e=>{switch(e){case v.SET_UP_ENCRYPTION:return Object(s.a)("Set up Secure Backup");case v.UPGRADE_ENCRYPTION:return Object(s.a)("Encryption upgrade available");case v.VERIFY_THIS_SESSION:return Object(s.a)("Verify this session")}},f=e=>{switch(e){case v.SET_UP_ENCRYPTION:case v.UPGRADE_ENCRYPTION:return"secure_backup";case v.VERIFY_THIS_SESSION:return"verification_warning"}},_=e=>{switch(e){case v.SET_UP_ENCRYPTION:return Object(s.a)("Continue");case v.UPGRADE_ENCRYPTION:return Object(s.a)("Upgrade");case v.VERIFY_THIS_SESSION:return Object(s.a)("Verify")}},b=e=>{switch(e){case v.SET_UP_ENCRYPTION:case v.UPGRADE_ENCRYPTION:return Object(s.a)("Safeguard against losing access to encrypted messages & data");case v.VERIFY_THIS_SESSION:return Object(s.a)("Other users may not trust it")}};let v;!function(e){e.SET_UP_ENCRYPTION="set_up_encryption",e.UPGRADE_ENCRYPTION="upgrade_encryption",e.VERIFY_THIS_SESSION="verify_this_session"}(v||(v={}));const y=()=>{D.sharedInstance().dismissEncryptionSetup()},E=e=>{var t;if(null!==(t=m.a.setupEncryptionNeeded)&&void 0!==t&&t.call(m.a,e))return;l.a.sharedInstance().addOrReplaceToast({key:"setupencryption",title:g(e),icon:f(e),props:{description:b(e),acceptLabel:_(e),onAccept:async()=>{if(e===v.VERIFY_THIS_SESSION)d.a.createTrackedDialog("Verify session","Verify session",h.a,{},null,!1,!0);else{const e=u.getComponent("elements.Spinner"),t=d.a.createDialog(e,null,"mx_Dialog_spinner",!1,!0);try{await Object(p.b)()}finally{t.close()}}},rejectLabel:Object(s.a)("Later"),onReject:y},component:c.a,priority:e===v.VERIFY_THIS_SESSION?95:40})},S=()=>{l.a.sharedInstance().dismissToast("setupencryption")};var w=n(96),C=n(347);function T(e){return"unverified_session_"+e}const x=async e=>{const t=i.a.get(),n=await t.getDevice(e);l.a.sharedInstance().addOrReplaceToast({key:T(e),title:Object(s.a)("New login. Was this you?"),icon:"verification_warning",props:{description:n.display_name,detail:Object(s.a)("%(deviceId)s from %(ip)s",{deviceId:e,ip:n.last_seen_ip}),acceptLabel:Object(s.a)("Check your devices"),onAccept:()=>{D.sharedInstance().dismissUnverifiedSessions([e]),a.a.dispatch({action:w.a.ViewUserSettings,initialTabId:C.b})},rejectLabel:Object(s.a)("Later"),onReject:()=>{D.sharedInstance().dismissUnverifiedSessions([e])}},component:c.a,priority:80})},O=e=>{l.a.sharedInstance().dismissToast(T(e))};var k=n(248),R=n(743);class D{constructor(){r()(this,"dispatcherRef",void 0),r()(this,"dismissed",new Set),r()(this,"dismissedThisDeviceToast",!1),r()(this,"keyBackupInfo",null),r()(this,"keyBackupFetchedAt",null),r()(this,"ourDeviceIdsAtStart",null),r()(this,"displayingToastsForDeviceIds",new Set),r()(this,"_onWillUpdateDevices",async(e,t)=>{if(t)return;const n=i.a.get().getUserId();e.includes(n)&&this._ensureDeviceIdsAtStartPopulated()}),r()(this,"_onDevicesUpdated",e=>{e.includes(i.a.get().getUserId())&&this._recheck()}),r()(this,"_onDeviceVerificationChanged",e=>{e===i.a.get().getUserId()&&this._recheck()}),r()(this,"_onUserTrustStatusChanged",e=>{e===i.a.get().getUserId()&&this._recheck()}),r()(this,"_onCrossSingingKeysChanged",()=>{this._recheck()}),r()(this,"_onAccountData",e=>{(e.getType().startsWith("m.secret_storage.")||e.getType().startsWith("m.cross_signing."))&&this._recheck()}),r()(this,"_onSync",(e,t)=>{"PREPARED"===e&&null===t&&this._recheck()}),r()(this,"_onRoomStateEvents",e=>{"m.room.encryption"===e.getType()&&this._recheck()}),r()(this,"_onAction",({action:e})=>{"on_logged_in"===e&&this._recheck()})}static sharedInstance(){return window.mxDeviceListener||(window.mxDeviceListener=new D),window.mxDeviceListener}start(){i.a.get().on("crypto.willUpdateDevices",this._onWillUpdateDevices),i.a.get().on("crypto.devicesUpdated",this._onDevicesUpdated),i.a.get().on("deviceVerificationChanged",this._onDeviceVerificationChanged),i.a.get().on("userTrustStatusChanged",this._onUserTrustStatusChanged),i.a.get().on("crossSigning.keysChanged",this._onCrossSingingKeysChanged),i.a.get().on("accountData",this._onAccountData),i.a.get().on("sync",this._onSync),i.a.get().on("RoomState.events",this._onRoomStateEvents),this.dispatcherRef=a.a.register(this._onAction),this._recheck()}stop(){i.a.get()&&(i.a.get().removeListener("crypto.willUpdateDevices",this._onWillUpdateDevices),i.a.get().removeListener("crypto.devicesUpdated",this._onDevicesUpdated),i.a.get().removeListener("deviceVerificationChanged",this._onDeviceVerificationChanged),i.a.get().removeListener("userTrustStatusChanged",this._onUserTrustStatusChanged),i.a.get().removeListener("crossSigning.keysChanged",this._onCrossSingingKeysChanged),i.a.get().removeListener("accountData",this._onAccountData),i.a.get().removeListener("sync",this._onSync),i.a.get().removeListener("RoomState.events",this._onRoomStateEvents)),this.dispatcherRef&&(a.a.unregister(this.dispatcherRef),this.dispatcherRef=null),this.dismissed.clear(),this.dismissedThisDeviceToast=!1,this.keyBackupInfo=null,this.keyBackupFetchedAt=null,this.ourDeviceIdsAtStart=null,this.displayingToastsForDeviceIds=new Set}async dismissUnverifiedSessions(e){for(const t of e)this.dismissed.add(t);this._recheck()}dismissEncryptionSetup(){this.dismissedThisDeviceToast=!0,this._recheck()}_ensureDeviceIdsAtStartPopulated(){if(null===this.ourDeviceIdsAtStart){const e=i.a.get();this.ourDeviceIdsAtStart=new Set(e.getStoredDevicesForUser(e.getUserId()).map(e=>e.deviceId))}}async _getKeyBackupInfo(){const e=(new Date).getTime();return(!this.keyBackupInfo||this.keyBackupFetchedAt<e-3e5)&&(this.keyBackupInfo=await i.a.get().getKeyBackupVersion(),this.keyBackupFetchedAt=e),this.keyBackupInfo}shouldShowSetupEncryptionToast(){if(Object(p.d)())return!1;const e=i.a.get();return e&&e.getRooms().some(t=>e.isRoomEncrypted(t.roomId))}async _recheck(){const e=i.a.get();if(!await e.doesServerSupportUnstableFeature("org.matrix.e2e_cross_signing"))return;if(!e.isCryptoEnabled())return;if(!e.isInitialSyncComplete())return;const t=await e.isCrossSigningReady(),n=await e.isSecretStorageReady(),o=t&&n;if(this.dismissedThisDeviceToast||o)S();else if(this.shouldShowSetupEncryptionToast())if(await e.downloadKeys([e.getUserId()]),!e.getCrossSigningId()&&e.getStoredCrossSigningForUser(e.getUserId()))E(v.VERIFY_THIS_SESSION);else{await this._getKeyBackupInfo()?E(v.UPGRADE_ENCRYPTION):(await e.waitForClientWellKnown(),Object(k.d)()&&Object(R.b)()?(S(),Object(p.b)()):E(v.SET_UP_ENCRYPTION))}this._ensureDeviceIdsAtStartPopulated();const r=new Set,d=new Set;if(t){const t=e.getStoredDevicesForUser(e.getUserId());for(const n of t){if(n.deviceId===e.deviceId)continue;(await e.checkDeviceTrust(e.getUserId(),n.deviceId)).isCrossSigningVerified()||this.dismissed.has(n.deviceId)||(this.ourDeviceIdsAtStart.has(n.deviceId)?r.add(n.deviceId):d.add(n.deviceId))}}var u;r.size>0?(u=r,l.a.sharedInstance().addOrReplaceToast({key:"reviewsessions",title:Object(s.a)("You have unverified logins"),icon:"verification_warning",props:{description:Object(s.a)("Review to ensure your account is safe"),acceptLabel:Object(s.a)("Review"),onAccept:()=>{D.sharedInstance().dismissUnverifiedSessions(u),a.a.dispatch({action:"view_user_info",userId:i.a.get().getUserId()})},rejectLabel:Object(s.a)("Later"),onReject:()=>{D.sharedInstance().dismissUnverifiedSessions(u)}},component:c.a,priority:50})):l.a.sharedInstance().dismissToast("reviewsessions");for(const e of d)x(e);for(const e of this.displayingToastsForDeviceIds)d.has(e)||O(e);this.displayingToastsForDeviceIds=d}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var o=n(1);function r(e){this._timeline=[e],this._ourEventIndex=0,this._paginateTokens={b:null,f:null},this._paginateRequests={b:null,f:null}}function i(e,t){this.rank=e,this.context=t}r.prototype.getEvent=function(){return this._timeline[this._ourEventIndex]},r.prototype.getTimeline=function(){return this._timeline},r.prototype.getOurEventIndex=function(){return this._ourEventIndex},r.prototype.getPaginateToken=function(e){return this._paginateTokens[e?"b":"f"]},r.prototype.setPaginateToken=function(e,t){this._paginateTokens[t?"b":"f"]=e},r.prototype.addEvents=function(e,t){t?(this._timeline=e.concat(this._timeline),this._ourEventIndex+=e.length):this._timeline=this._timeline.concat(e)},i.fromJson=function(e,t){const n=e.context||{},a=n.events_before||[],s=n.events_after||[],c=new r(t(e.result));return c.setPaginateToken(n.start,!0),c.addEvents(o.v(a,t),!0),c.addEvents(o.v(s,t),!1),c.setPaginateToken(n.end,!1),new i(e.rank,c)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var o=n(83),r=n.n(o),i=n(179),a=n(273),s=n(7),c=n(116),l=n(114),d=n(399);class u extends s.EventEmitter{constructor(e){super(),this.community=e,r()(this,"roomIds",new Set),r()(this,"userIds",new Set),r()(this,"onStoreUpdate",async()=>{const e=this.roomIds;this.roomIds=new Set((await c.a.getGroupRooms(this.community.groupId)).map(e=>e.roomId));const t=this.userIds;this.userIds=new Set((await c.a.getGroupMembers(this.community.groupId)).map(e=>e.userId)),(Object(d.a)(e,this.roomIds)||Object(d.a)(t,this.userIds))&&this.emit(a.a)}),c.a.on("update",this.onStoreUpdate),this.onStoreUpdate()}get kind(){return a.b.Prefilter}isVisible(e){return this.roomIds.has(e.roomId)||this.userIds.has(l.a.shared().getUserIdForRoomId(e.roomId))}destroy(){c.a.off("update",this.onStoreUpdate)}}var h=n(117);class p{constructor(e){this.store=e,r()(this,"filters",new Map),r()(this,"onTagsUpdated",()=>{const e=Array.from(this.filters.keys()),t=i.a.getSelectedTags();if(Object(h.d)(e,t)){if(!this.store.matrixClient)return void console.warn("Tag update without an associated matrix client - ignoring");const n=new Map,o=t.filter(e=>e.startsWith("+"));for(const e of o){const t=this.store.matrixClient.getGroup(e);if(!t){console.warn("Group selected with no group object available: "+e);continue}let o=this.filters.get(e);o||(o=new u(t)),n.set(e,o)}const r=Object(h.a)(e,t);for(const e of r.added){const t=n.get(e);t&&this.store.addFilter(t)}for(const e of r.removed){const t=this.filters.get(e);t&&(this.store.removeFilter(t),t.destroy())}this.filters=n}}),i.a.addListener(this.onTagsUpdated)}}}]]);
|