/*! For license information please see main.js.LICENSE.txt */ (()=>{var e={3099:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},6077:(e,t,n)=>{var r=n(111);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},1223:(e,t,n)=>{var r=n(5112),o=n(30),i=n(3070),a=r("unscopables"),s=Array.prototype;null==s[a]&&i.f(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},5787:e=>{e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},9670:(e,t,n)=>{var r=n(111);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},8457:(e,t,n)=>{"use strict";var r=n(9974),o=n(7908),i=n(3411),a=n(7659),s=n(7466),u=n(6135),l=n(1246);e.exports=function(e){var t,n,c,_,E,d,f=o(e),h="function"==typeof this?this:Array,p=arguments.length,S=p>1?arguments[1]:void 0,m=void 0!==S,g=l(f),R=0;if(m&&(S=r(S,p>2?arguments[2]:void 0,2)),null==g||h==Array&&a(g))for(n=new h(t=s(f.length));t>R;R++)d=m?S(f[R],R):f[R],u(n,R,d);else for(E=(_=g.call(f)).next,n=new h;!(c=E.call(_)).done;R++)d=m?i(_,S,[c.value,R],!0):c.value,u(n,R,d);return n.length=R,n}},1318:(e,t,n)=>{var r=n(5656),o=n(7466),i=n(1400),a=function(e){return function(t,n,a){var s,u=r(t),l=o(u.length),c=i(a,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},3411:(e,t,n)=>{var r=n(9670),o=n(9212);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){throw o(e),t}}},7072:(e,t,n)=>{var r=n(5112)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},4326:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},648:(e,t,n)=>{var r=n(1694),o=n(4326),i=n(5112)("toStringTag"),a="Arguments"==o(function(){return arguments}());e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?o(t):"Object"==(r=o(t))&&"function"==typeof t.callee?"Arguments":r}},9920:(e,t,n)=>{var r=n(6656),o=n(3887),i=n(1236),a=n(3070);e.exports=function(e,t){for(var n=o(t),s=a.f,u=i.f,l=0;l{var r=n(7293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4994:(e,t,n)=>{"use strict";var r=n(3383).IteratorPrototype,o=n(30),i=n(9114),a=n(8003),s=n(7497),u=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,l,!1,!0),s[l]=u,e}},8880:(e,t,n)=>{var r=n(9781),o=n(3070),i=n(9114);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},9114:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6135:(e,t,n)=>{"use strict";var r=n(7593),o=n(3070),i=n(9114);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},654:(e,t,n)=>{"use strict";var r=n(2109),o=n(4994),i=n(9518),a=n(7674),s=n(8003),u=n(8880),l=n(1320),c=n(5112),_=n(1913),E=n(7497),d=n(3383),f=d.IteratorPrototype,h=d.BUGGY_SAFARI_ITERATORS,p=c("iterator"),S="keys",m="values",g="entries",R=function(){return this};e.exports=function(e,t,n,c,d,T,A){o(n,t,c);var C,v,O,y=function(e){if(e===d&&U)return U;if(!h&&e in L)return L[e];switch(e){case S:case m:case g:return function(){return new n(this,e)}}return function(){return new n(this)}},N=t+" Iterator",I=!1,L=e.prototype,b=L[p]||L["@@iterator"]||d&&L[d],U=!h&&b||y(d),M="Array"==t&&L.entries||b;if(M&&(C=i(M.call(new e)),f!==Object.prototype&&C.next&&(_||i(C)===f||(a?a(C,f):"function"!=typeof C[p]&&u(C,p,R)),s(C,N,!0,!0),_&&(E[N]=R))),d==m&&b&&b.name!==m&&(I=!0,U=function(){return b.call(this)}),_&&!A||L[p]===U||u(L,p,U),E[t]=U,d)if(v={values:y(m),keys:T?U:y(S),entries:y(g)},A)for(O in v)(h||I||!(O in L))&&l(L,O,v[O]);else r({target:t,proto:!0,forced:h||I},v);return v}},9781:(e,t,n)=>{var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(e,t,n)=>{var r=n(7854),o=n(111),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},8324:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},6833:(e,t,n)=>{var r=n(8113);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},5268:(e,t,n)=>{var r=n(4326),o=n(7854);e.exports="process"==r(o.process)},8113:(e,t,n)=>{var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:(e,t,n)=>{var r,o,i=n(7854),a=n(8113),s=i.process,u=s&&s.versions,l=u&&u.v8;l?o=(r=l.split("."))[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=r[1]),e.exports=o&&+o},748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(e,t,n)=>{var r=n(7854),o=n(1236).f,i=n(8880),a=n(1320),s=n(3505),u=n(9920),l=n(4705);e.exports=function(e,t){var n,c,_,E,d,f=e.target,h=e.global,p=e.stat;if(n=h?r:p?r[f]||s(f,{}):(r[f]||{}).prototype)for(c in t){if(E=t[c],_=e.noTargetGet?(d=o(n,c))&&d.value:n[c],!l(h?c:f+(p?".":"#")+c,e.forced)&&void 0!==_){if(typeof E==typeof _)continue;u(E,_)}(e.sham||_&&_.sham)&&i(E,"sham",!0),a(n,c,E,e)}}},7293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},9974:(e,t,n)=>{var r=n(3099);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},5005:(e,t,n)=>{var r=n(857),o=n(7854),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},1246:(e,t,n)=>{var r=n(648),o=n(7497),i=n(5112)("iterator");e.exports=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},8554:(e,t,n)=>{var r=n(9670),o=n(1246);e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},7854:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},6656:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},3501:e=>{e.exports={}},842:(e,t,n)=>{var r=n(7854);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},490:(e,t,n)=>{var r=n(5005);e.exports=r("document","documentElement")},4664:(e,t,n)=>{var r=n(9781),o=n(7293),i=n(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:(e,t,n)=>{var r=n(7293),o=n(4326),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},2788:(e,t,n)=>{var r=n(5465),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},9909:(e,t,n)=>{var r,o,i,a=n(8536),s=n(7854),u=n(111),l=n(8880),c=n(6656),_=n(5465),E=n(6200),d=n(3501),f=s.WeakMap;if(a){var h=_.state||(_.state=new f),p=h.get,S=h.has,m=h.set;r=function(e,t){return t.facade=e,m.call(h,e,t),t},o=function(e){return p.call(h,e)||{}},i=function(e){return S.call(h,e)}}else{var g=E("state");d[g]=!0,r=function(e,t){return t.facade=e,l(e,g,t),t},o=function(e){return c(e,g)?e[g]:{}},i=function(e){return c(e,g)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},7659:(e,t,n)=>{var r=n(5112),o=n(7497),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},4705:(e,t,n)=>{var r=n(7293),o=/#|\.prototype\./,i=function(e,t){var n=s[a(e)];return n==l||n!=u&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},u=i.NATIVE="N",l=i.POLYFILL="P";e.exports=i},111:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},1913:e=>{e.exports=!1},408:(e,t,n)=>{var r=n(9670),o=n(7659),i=n(7466),a=n(9974),s=n(1246),u=n(9212),l=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,n){var c,_,E,d,f,h,p,S=n&&n.that,m=!(!n||!n.AS_ENTRIES),g=!(!n||!n.IS_ITERATOR),R=!(!n||!n.INTERRUPTED),T=a(t,S,1+m+R),A=function(e){return c&&u(c),new l(!0,e)},C=function(e){return m?(r(e),R?T(e[0],e[1],A):T(e[0],e[1])):R?T(e,A):T(e)};if(g)c=e;else{if("function"!=typeof(_=s(e)))throw TypeError("Target is not iterable");if(o(_)){for(E=0,d=i(e.length);d>E;E++)if((f=C(e[E]))&&f instanceof l)return f;return new l(!1)}c=_.call(e)}for(h=c.next;!(p=h.call(c)).done;){try{f=C(p.value)}catch(e){throw u(c),e}if("object"==typeof f&&f&&f instanceof l)return f}return new l(!1)}},9212:(e,t,n)=>{var r=n(9670);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},3383:(e,t,n)=>{"use strict";var r,o,i,a=n(9518),s=n(8880),u=n(6656),l=n(5112),c=n(1913),_=l("iterator"),E=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):E=!0),null==r&&(r={}),c||u(r,_)||s(r,_,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:E}},7497:e=>{e.exports={}},5948:(e,t,n)=>{var r,o,i,a,s,u,l,c,_=n(7854),E=n(1236).f,d=n(261).set,f=n(6833),h=n(5268),p=_.MutationObserver||_.WebKitMutationObserver,S=_.document,m=_.process,g=_.Promise,R=E(_,"queueMicrotask"),T=R&&R.value;T||(r=function(){var e,t;for(h&&(e=m.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},!f&&!h&&p&&S?(s=!0,u=S.createTextNode(""),new p(r).observe(u,{characterData:!0}),a=function(){u.data=s=!s}):g&&g.resolve?(l=g.resolve(void 0),c=l.then,a=function(){c.call(l,r)}):a=h?function(){m.nextTick(r)}:function(){d.call(_,r)}),e.exports=T||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},3366:(e,t,n)=>{var r=n(7854);e.exports=r.Promise},133:(e,t,n)=>{var r=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},590:(e,t,n)=>{var r=n(7293),o=n(5112),i=n(1913),a=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},8536:(e,t,n)=>{var r=n(7854),o=n(2788),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(o(i))},8523:(e,t,n)=>{"use strict";var r=n(3099),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},1574:(e,t,n)=>{"use strict";var r=n(9781),o=n(7293),i=n(1956),a=n(5181),s=n(5296),u=n(7908),l=n(8361),c=Object.assign,_=Object.defineProperty;e.exports=!c||o((function(){if(r&&1!==c({b:1},c(_({},"a",{enumerable:!0,get:function(){_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||i(c({},t)).join("")!=o}))?function(e,t){for(var n=u(e),o=arguments.length,c=1,_=a.f,E=s.f;o>c;)for(var d,f=l(arguments[c++]),h=_?i(f).concat(_(f)):i(f),p=h.length,S=0;p>S;)d=h[S++],r&&!E.call(f,d)||(n[d]=f[d]);return n}:c},30:(e,t,n)=>{var r,o=n(9670),i=n(6048),a=n(748),s=n(3501),u=n(490),l=n(317),c=n(6200),_="prototype",E="script",d=c("IE_PROTO"),f=function(){},h=function(e){return"<"+E+">"+e+""},p=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t,n;p=r?function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t}(r):(t=l("iframe"),n="java"+E+":",t.style.display="none",u.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F);for(var o=a.length;o--;)delete p[_][a[o]];return p()};s[d]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[_]=o(e),n=new f,f[_]=null,n[d]=e):n=p(),void 0===t?n:i(n,t)}},6048:(e,t,n)=>{var r=n(9781),o=n(3070),i=n(9670),a=n(1956);e.exports=r?Object.defineProperties:function(e,t){i(e);for(var n,r=a(t),s=r.length,u=0;s>u;)o.f(e,n=r[u++],t[n]);return e}},3070:(e,t,n)=>{var r=n(9781),o=n(4664),i=n(9670),a=n(7593),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return s(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}},1236:(e,t,n)=>{var r=n(9781),o=n(5296),i=n(9114),a=n(5656),s=n(7593),u=n(6656),l=n(4664),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=a(e),t=s(t,!0),l)try{return c(e,t)}catch(e){}if(u(e,t))return i(!o.f.call(e,t),e[t])}},8006:(e,t,n)=>{var r=n(6324),o=n(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},5181:(e,t)=>{t.f=Object.getOwnPropertySymbols},9518:(e,t,n)=>{var r=n(6656),o=n(7908),i=n(6200),a=n(8544),s=i("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},6324:(e,t,n)=>{var r=n(6656),o=n(5656),i=n(1318).indexOf,a=n(3501);e.exports=function(e,t){var n,s=o(e),u=0,l=[];for(n in s)!r(a,n)&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~i(l,n)||l.push(n));return l}},1956:(e,t,n)=>{var r=n(6324),o=n(748);e.exports=Object.keys||function(e){return r(e,o)}},5296:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},7674:(e,t,n)=>{var r=n(9670),o=n(6077);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return r(n),o(i),t?e.call(n,i):n.__proto__=i,n}}():void 0)},3887:(e,t,n)=>{var r=n(5005),o=n(8006),i=n(5181),a=n(9670);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},857:(e,t,n)=>{var r=n(7854);e.exports=r},2534:e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},9478:(e,t,n)=>{var r=n(9670),o=n(111),i=n(8523);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},2248:(e,t,n)=>{var r=n(1320);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},1320:(e,t,n)=>{var r=n(7854),o=n(8880),i=n(6656),a=n(3505),s=n(2788),u=n(9909),l=u.get,c=u.enforce,_=String(String).split("String");(e.exports=function(e,t,n,s){var u,l=!!s&&!!s.unsafe,E=!!s&&!!s.enumerable,d=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),(u=c(n)).source||(u.source=_.join("string"==typeof t?t:""))),e!==r?(l?!d&&e[t]&&(E=!0):delete e[t],E?e[t]=n:o(e,t,n)):E?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},4488:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},3505:(e,t,n)=>{var r=n(7854),o=n(8880);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},6340:(e,t,n)=>{"use strict";var r=n(5005),o=n(3070),i=n(5112),a=n(9781),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},8003:(e,t,n)=>{var r=n(3070).f,o=n(6656),i=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},6200:(e,t,n)=>{var r=n(2309),o=n(9711),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},5465:(e,t,n)=>{var r=n(7854),o=n(3505),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},2309:(e,t,n)=>{var r=n(1913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.7.0",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},6707:(e,t,n)=>{var r=n(9670),o=n(3099),i=n(5112)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},8710:(e,t,n)=>{var r=n(9958),o=n(4488),i=function(e){return function(t,n){var i,a,s=String(o(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(i=s.charCodeAt(u))<55296||i>56319||u+1===l||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):i:e?s.slice(u,u+2):a-56320+(i-55296<<10)+65536}};e.exports={codeAt:i(!1),charAt:i(!0)}},3197:e=>{"use strict";var t=2147483647,n=/[^\0-\u007E]/,r=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",i=Math.floor,a=String.fromCharCode,s=function(e){return e+22+75*(e<26)},u=function(e,t,n){var r=0;for(e=n?i(e/700):e>>1,e+=i(e/t);e>455;r+=36)e=i(e/35);return i(r+36*e/(e+38))},l=function(e){var n=[];e=function(e){for(var t=[],n=0,r=e.length;n=55296&&o<=56319&&n=_&&li((t-E)/S))throw RangeError(o);for(E+=(p-_)*S,_=p,r=0;rt)throw RangeError(o);if(l==_){for(var m=E,g=36;;g+=36){var R=g<=d?1:g>=d+26?26:g-d;if(m{var r,o,i,a=n(7854),s=n(7293),u=n(9974),l=n(490),c=n(317),_=n(6833),E=n(5268),d=a.location,f=a.setImmediate,h=a.clearImmediate,p=a.process,S=a.MessageChannel,m=a.Dispatch,g=0,R={},T="onreadystatechange",A=function(e){if(R.hasOwnProperty(e)){var t=R[e];delete R[e],t()}},C=function(e){return function(){A(e)}},v=function(e){A(e.data)},O=function(e){a.postMessage(e+"",d.protocol+"//"+d.host)};f&&h||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return R[++g]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(g),g},h=function(e){delete R[e]},E?r=function(e){p.nextTick(C(e))}:m&&m.now?r=function(e){m.now(C(e))}:S&&!_?(i=(o=new S).port2,o.port1.onmessage=v,r=u(i.postMessage,i,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&d&&"file:"!==d.protocol&&!s(O)?(r=O,a.addEventListener("message",v,!1)):r=T in c("script")?function(e){l.appendChild(c("script"))[T]=function(){l.removeChild(this),A(e)}}:function(e){setTimeout(C(e),0)}),e.exports={set:f,clear:h}},1400:(e,t,n)=>{var r=n(9958),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},5656:(e,t,n)=>{var r=n(8361),o=n(4488);e.exports=function(e){return r(o(e))}},9958:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},7466:(e,t,n)=>{var r=n(9958),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},7908:(e,t,n)=>{var r=n(4488);e.exports=function(e){return Object(r(e))}},7593:(e,t,n)=>{var r=n(111);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},1694:(e,t,n)=>{var r={};r[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(r)},9711:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},3307:(e,t,n)=>{var r=n(133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5112:(e,t,n)=>{var r=n(7854),o=n(2309),i=n(6656),a=n(9711),s=n(133),u=n(3307),l=o("wks"),c=r.Symbol,_=u?c:c&&c.withoutSetter||a;e.exports=function(e){return i(l,e)||(s&&i(c,e)?l[e]=c[e]:l[e]=_("Symbol."+e)),l[e]}},6992:(e,t,n)=>{"use strict";var r=n(5656),o=n(1223),i=n(7497),a=n(9909),s=n(654),u="Array Iterator",l=a.set,c=a.getterFor(u);e.exports=s(Array,"Array",(function(e,t){l(this,{type:u,target:r(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},8674:(e,t,n)=>{"use strict";var r,o,i,a,s=n(2109),u=n(1913),l=n(7854),c=n(5005),_=n(3366),E=n(1320),d=n(2248),f=n(8003),h=n(6340),p=n(111),S=n(3099),m=n(5787),g=n(2788),R=n(408),T=n(7072),A=n(6707),C=n(261).set,v=n(5948),O=n(9478),y=n(842),N=n(8523),I=n(2534),L=n(9909),b=n(4705),U=n(5112),M=n(5268),P=n(7392),D=U("species"),F="Promise",w=L.get,G=L.set,k=L.getterFor(F),H=_,B=l.TypeError,V=l.document,x=l.process,j=c("fetch"),Y=N.f,J=Y,W=!!(V&&V.createEvent&&l.dispatchEvent),Q="function"==typeof PromiseRejectionEvent,K="unhandledrejection",z=b(F,(function(){if(g(H)===String(H)){if(66===P)return!0;if(!M&&!Q)return!0}if(u&&!H.prototype.finally)return!0;if(P>=51&&/native code/.test(H))return!1;var e=H.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[D]=t,!(e.then((function(){}))instanceof t)})),$=z||!T((function(e){H.all(e).catch((function(){}))})),Z=function(e){var t;return!(!p(e)||"function"!=typeof(t=e.then))&&t},q=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;v((function(){for(var r=e.value,o=1==e.state,i=0;n.length>i;){var a,s,u,l=n[i++],c=o?l.ok:l.fail,_=l.resolve,E=l.reject,d=l.domain;try{c?(o||(2===e.rejection&&ne(e),e.rejection=1),!0===c?a=r:(d&&d.enter(),a=c(r),d&&(d.exit(),u=!0)),a===l.promise?E(B("Promise-chain cycle")):(s=Z(a))?s.call(a,_,E):_(a)):E(r)}catch(e){d&&!u&&d.exit(),E(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ee(e)}))}},X=function(e,t,n){var r,o;W?((r=V.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},!Q&&(o=l["on"+e])?o(r):e===K&&y("Unhandled promise rejection",n)},ee=function(e){C.call(l,(function(){var t,n=e.facade,r=e.value;if(te(e)&&(t=I((function(){M?x.emit("unhandledRejection",r,n):X(K,n,r)})),e.rejection=M||te(e)?2:1,t.error))throw t.value}))},te=function(e){return 1!==e.rejection&&!e.parent},ne=function(e){C.call(l,(function(){var t=e.facade;M?x.emit("rejectionHandled",t):X("rejectionhandled",t,e.value)}))},re=function(e,t,n){return function(r){e(t,r,n)}},oe=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,q(e,!0))},ie=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw B("Promise can't be resolved itself");var r=Z(t);r?v((function(){var n={done:!1};try{r.call(t,re(ie,n,e),re(oe,n,e))}catch(t){oe(n,t,e)}})):(e.value=t,e.state=1,q(e,!1))}catch(t){oe({done:!1},t,e)}}};z&&(H=function(e){m(this,H,F),S(e),r.call(this);var t=w(this);try{e(re(ie,t),re(oe,t))}catch(e){oe(t,e)}},(r=function(e){G(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(H.prototype,{then:function(e,t){var n=k(this),r=Y(A(this,H));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=M?x.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&q(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r,t=w(e);this.promise=e,this.resolve=re(ie,t),this.reject=re(oe,t)},N.f=Y=function(e){return e===H||e===i?new o(e):J(e)},u||"function"!=typeof _||(a=_.prototype.then,E(_.prototype,"then",(function(e,t){var n=this;return new H((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof j&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return O(H,j.apply(l,arguments))}}))),s({global:!0,wrap:!0,forced:z},{Promise:H}),f(H,F,!1,!0),h(F),i=c(F),s({target:F,stat:!0,forced:z},{reject:function(e){var t=Y(this);return t.reject.call(void 0,e),t.promise}}),s({target:F,stat:!0,forced:u||z},{resolve:function(e){return O(u&&this===i?H:this,e)}}),s({target:F,stat:!0,forced:$},{all:function(e){var t=this,n=Y(t),r=n.resolve,o=n.reject,i=I((function(){var n=S(t.resolve),i=[],a=0,s=1;R(e,(function(e){var u=a++,l=!1;i.push(void 0),s++,n.call(t,e).then((function(e){l||(l=!0,i[u]=e,--s||r(i))}),o)})),--s||r(i)}));return i.error&&o(i.value),n.promise},race:function(e){var t=this,n=Y(t),r=n.reject,o=I((function(){var o=S(t.resolve);R(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},8783:(e,t,n)=>{"use strict";var r=n(8710).charAt,o=n(9909),i=n(654),a="String Iterator",s=o.set,u=o.getterFor(a);i(String,"String",(function(e){s(this,{type:a,string:String(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))},1817:(e,t,n)=>{"use strict";var r=n(2109),o=n(9781),i=n(7854),a=n(6656),s=n(111),u=n(3070).f,l=n(9920),c=i.Symbol;if(o&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var _={},E=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof E?new c(e):void 0===e?c():c(e);return""===e&&(_[t]=!0),t};l(E,c);var d=E.prototype=c.prototype;d.constructor=E;var f=d.toString,h="Symbol(test)"==String(c("test")),p=/^Symbol\((.*)\)[^)]+$/;u(d,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=f.call(e);if(a(_,e))return"";var n=h?t.slice(7,-1):t.replace(p,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:E})}},3948:(e,t,n)=>{var r=n(7854),o=n(8324),i=n(6992),a=n(8880),s=n(5112),u=s("iterator"),l=s("toStringTag"),c=i.values;for(var _ in o){var E=r[_],d=E&&E.prototype;if(d){if(d[u]!==c)try{a(d,u,c)}catch(e){d[u]=c}if(d[l]||a(d,l,_),o[_])for(var f in i)if(d[f]!==i[f])try{a(d,f,i[f])}catch(e){d[f]=i[f]}}}},1637:(e,t,n)=>{"use strict";n(6992);var r=n(2109),o=n(5005),i=n(590),a=n(1320),s=n(2248),u=n(8003),l=n(4994),c=n(9909),_=n(5787),E=n(6656),d=n(9974),f=n(648),h=n(9670),p=n(111),S=n(30),m=n(9114),g=n(8554),R=n(1246),T=n(5112),A=o("fetch"),C=o("Headers"),v=T("iterator"),O="URLSearchParams",y=O+"Iterator",N=c.set,I=c.getterFor(O),L=c.getterFor(y),b=/\+/g,U=Array(4),M=function(e){return U[e-1]||(U[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},P=function(e){try{return decodeURIComponent(e)}catch(t){return e}},D=function(e){var t=e.replace(b," "),n=4;try{return decodeURIComponent(t)}catch(e){for(;n;)t=t.replace(M(n--),P);return t}},F=/[!'()~]|%20/g,w={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},G=function(e){return w[e]},k=function(e){return encodeURIComponent(e).replace(F,G)},H=function(e,t){if(t)for(var n,r,o=t.split("&"),i=0;i0?arguments[0]:void 0,c=[];if(N(this,{type:O,entries:c,updateURL:function(){},updateSearchParams:B}),void 0!==l)if(p(l))if("function"==typeof(e=R(l)))for(n=(t=e.call(l)).next;!(r=n.call(t)).done;){if((a=(i=(o=g(h(r.value))).next).call(o)).done||(s=i.call(o)).done||!i.call(o).done)throw TypeError("Expected sequence with length 2");c.push({key:a.value+"",value:s.value+""})}else for(u in l)E(l,u)&&c.push({key:u,value:l[u]+""});else H(c,"string"==typeof l?"?"===l.charAt(0)?l.slice(1):l:l+"")},Y=j.prototype;s(Y,{append:function(e,t){V(arguments.length,2);var n=I(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){V(arguments.length,1);for(var t=I(this),n=t.entries,r=e+"",o=0;oe.key){o.splice(t,0,e);break}t===n&&o.push(e)}r.updateURL()},forEach:function(e){for(var t,n=I(this).entries,r=d(e,arguments.length>1?arguments[1]:void 0,3),o=0;o1&&(p(t=arguments[1])&&(n=t.body,f(n)===O&&((r=t.headers?new C(t.headers):new C).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=S(t,{body:m(0,String(n)),headers:m(0,r)}))),o.push(t)),A.apply(this,o)}}),e.exports={URLSearchParams:j,getState:I}},285:(e,t,n)=>{"use strict";n(8783);var r,o=n(2109),i=n(9781),a=n(590),s=n(7854),u=n(6048),l=n(1320),c=n(5787),_=n(6656),E=n(1574),d=n(8457),f=n(8710).codeAt,h=n(3197),p=n(8003),S=n(1637),m=n(9909),g=s.URL,R=S.URLSearchParams,T=S.getState,A=m.set,C=m.getterFor("URL"),v=Math.floor,O=Math.pow,y="Invalid scheme",N="Invalid host",I="Invalid port",L=/[A-Za-z]/,b=/[\d+-.A-Za-z]/,U=/\d/,M=/^(0x|0X)/,P=/^[0-7]+$/,D=/^\d+$/,F=/^[\dA-Fa-f]+$/,w=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,G=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,k=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,H=/[\u0009\u000A\u000D]/g,B=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return N;if(!(n=x(t.slice(1,-1))))return N;e.host=n}else if($(e)){if(t=h(t),w.test(t))return N;if(null===(n=V(t)))return N;e.host=n}else{if(G.test(t))return N;for(n="",r=d(t),o=0;o4)return e;for(n=[],r=0;r1&&"0"==o.charAt(0)&&(i=M.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?D:8==i?P:F).test(o))return e;a=parseInt(o,i)}n.push(a)}for(r=0;r=O(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r6)return;for(r=0;E();){if(o=null,r>0){if(!("."==E()&&r<4))return;_++}if(!U.test(E()))return;for(;U.test(E());){if(i=parseInt(E(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;_++}u[l]=256*u[l]+o,2!=++r&&4!=r||l++}if(4!=r)return;break}if(":"==E()){if(_++,!E())return}else if(E())return;u[l++]=t}else{if(null!==c)return;_++,c=++l}}if(null!==c)for(a=l-c,l=7;0!=l&&a>0;)s=u[l],u[l--]=u[c+a-1],u[c+--a]=s;else if(8!=l)return;return u},j=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=v(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},Y={},J=E({},Y,{" ":1,'"':1,"<":1,">":1,"`":1}),W=E({},J,{"#":1,"?":1,"{":1,"}":1}),Q=E({},W,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),K=function(e,t){var n=f(e,0);return n>32&&n<127&&!_(t,e)?e:encodeURIComponent(e)},z={ftp:21,file:null,http:80,https:443,ws:80,wss:443},$=function(e){return _(z,e.scheme)},Z=function(e){return""!=e.username||""!=e.password},q=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},X=function(e,t){var n;return 2==e.length&&L.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ee=function(e){var t;return e.length>1&&X(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},te=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&X(t[0],!0)||t.pop()},ne=function(e){return"."===e||"%2e"===e.toLowerCase()},re={},oe={},ie={},ae={},se={},ue={},le={},ce={},_e={},Ee={},de={},fe={},he={},pe={},Se={},me={},ge={},Re={},Te={},Ae={},Ce={},ve=function(e,t,n,o){var i,a,s,u,l,c=n||re,E=0,f="",h=!1,p=!1,S=!1;for(n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(k,"")),t=t.replace(H,""),i=d(t);E<=i.length;){switch(a=i[E],c){case re:if(!a||!L.test(a)){if(n)return y;c=ie;continue}f+=a.toLowerCase(),c=oe;break;case oe:if(a&&(b.test(a)||"+"==a||"-"==a||"."==a))f+=a.toLowerCase();else{if(":"!=a){if(n)return y;f="",c=ie,E=0;continue}if(n&&($(e)!=_(z,f)||"file"==f&&(Z(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=f,n)return void($(e)&&z[e.scheme]==e.port&&(e.port=null));f="","file"==e.scheme?c=pe:$(e)&&o&&o.scheme==e.scheme?c=ae:$(e)?c=ce:"/"==i[E+1]?(c=se,E++):(e.cannotBeABaseURL=!0,e.path.push(""),c=Te)}break;case ie:if(!o||o.cannotBeABaseURL&&"#"!=a)return y;if(o.cannotBeABaseURL&&"#"==a){e.scheme=o.scheme,e.path=o.path.slice(),e.query=o.query,e.fragment="",e.cannotBeABaseURL=!0,c=Ce;break}c="file"==o.scheme?pe:ue;continue;case ae:if("/"!=a||"/"!=i[E+1]){c=ue;continue}c=_e,E++;break;case se:if("/"==a){c=Ee;break}c=Re;continue;case ue:if(e.scheme=o.scheme,a==r)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query;else if("/"==a||"\\"==a&&$(e))c=le;else if("?"==a)e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query="",c=Ae;else{if("#"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.path.pop(),c=Re;continue}e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,e.path=o.path.slice(),e.query=o.query,e.fragment="",c=Ce}break;case le:if(!$(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,c=Re;continue}c=Ee}else c=_e;break;case ce:if(c=_e,"/"!=a||"/"!=f.charAt(E+1))continue;E++;break;case _e:if("/"!=a&&"\\"!=a){c=Ee;continue}break;case Ee:if("@"==a){h&&(f="%40"+f),h=!0,s=d(f);for(var m=0;m65535)return I;e.port=$(e)&&T===z[e.scheme]?null:T,f=""}if(n)return;c=ge;continue}return I}f+=a;break;case pe:if(e.scheme="file","/"==a||"\\"==a)c=Se;else{if(!o||"file"!=o.scheme){c=Re;continue}if(a==r)e.host=o.host,e.path=o.path.slice(),e.query=o.query;else if("?"==a)e.host=o.host,e.path=o.path.slice(),e.query="",c=Ae;else{if("#"!=a){ee(i.slice(E).join(""))||(e.host=o.host,e.path=o.path.slice(),te(e)),c=Re;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",c=Ce}}break;case Se:if("/"==a||"\\"==a){c=me;break}o&&"file"==o.scheme&&!ee(i.slice(E).join(""))&&(X(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),c=Re;continue;case me:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&X(f))c=Re;else if(""==f){if(e.host="",n)return;c=ge}else{if(u=B(e,f))return u;if("localhost"==e.host&&(e.host=""),n)return;f="",c=ge}continue}f+=a;break;case ge:if($(e)){if(c=Re,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(c=Re,"/"!=a))continue}else e.fragment="",c=Ce;else e.query="",c=Ae;break;case Re:if(a==r||"/"==a||"\\"==a&&$(e)||!n&&("?"==a||"#"==a)){if(".."===(l=(l=f).toLowerCase())||"%2e."===l||".%2e"===l||"%2e%2e"===l?(te(e),"/"==a||"\\"==a&&$(e)||e.path.push("")):ne(f)?"/"==a||"\\"==a&&$(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&X(f)&&(e.host&&(e.host=""),f=f.charAt(0)+":"),e.path.push(f)),f="","file"==e.scheme&&(a==r||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",c=Ae):"#"==a&&(e.fragment="",c=Ce)}else f+=K(a,W);break;case Te:"?"==a?(e.query="",c=Ae):"#"==a?(e.fragment="",c=Ce):a!=r&&(e.path[0]+=K(a,Y));break;case Ae:n||"#"!=a?a!=r&&("'"==a&&$(e)?e.query+="%27":e.query+="#"==a?"%23":K(a,Y)):(e.fragment="",c=Ce);break;case Ce:a!=r&&(e.fragment+=K(a,J))}E++}},Oe=function(e){var t,n,r=c(this,Oe,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(e),s=A(r,{type:"URL"});if(void 0!==o)if(o instanceof Oe)t=C(o);else if(n=ve(t={},String(o)))throw TypeError(n);if(n=ve(s,a,null,t))throw TypeError(n);var u=s.searchParams=new R,l=T(u);l.updateSearchParams(s.query),l.updateURL=function(){s.query=String(u)||null},i||(r.href=Ne.call(r),r.origin=Ie.call(r),r.protocol=Le.call(r),r.username=be.call(r),r.password=Ue.call(r),r.host=Me.call(r),r.hostname=Pe.call(r),r.port=De.call(r),r.pathname=Fe.call(r),r.search=we.call(r),r.searchParams=Ge.call(r),r.hash=ke.call(r))},ye=Oe.prototype,Ne=function(){var e=C(this),t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,s=e.query,u=e.fragment,l=t+":";return null!==o?(l+="//",Z(e)&&(l+=n+(r?":"+r:"")+"@"),l+=j(o),null!==i&&(l+=":"+i)):"file"==t&&(l+="//"),l+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(l+="?"+s),null!==u&&(l+="#"+u),l},Ie=function(){var e=C(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(e){return"null"}return"file"!=t&&$(e)?t+"://"+j(e.host)+(null!==n?":"+n:""):"null"},Le=function(){return C(this).scheme+":"},be=function(){return C(this).username},Ue=function(){return C(this).password},Me=function(){var e=C(this),t=e.host,n=e.port;return null===t?"":null===n?j(t):j(t)+":"+n},Pe=function(){var e=C(this).host;return null===e?"":j(e)},De=function(){var e=C(this).port;return null===e?"":String(e)},Fe=function(){var e=C(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},we=function(){var e=C(this).query;return e?"?"+e:""},Ge=function(){return C(this).searchParams},ke=function(){var e=C(this).fragment;return e?"#"+e:""},He=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&u(ye,{href:He(Ne,(function(e){var t=C(this),n=String(e),r=ve(t,n);if(r)throw TypeError(r);T(t.searchParams).updateSearchParams(t.query)})),origin:He(Ie),protocol:He(Le,(function(e){var t=C(this);ve(t,String(e)+":",re)})),username:He(be,(function(e){var t=C(this),n=d(String(e));if(!q(t)){t.username="";for(var r=0;r{e.exports="object"==typeof self?self.FormData:window.FormData},8679:(e,t,n)=>{"use strict";var r=n(9864),o={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 u(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,_=Object.getOwnPropertySymbols,E=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var o=d(n);o&&o!==f&&e(t,o,r)}var a=c(n);_&&(a=a.concat(_(n)));for(var s=u(t),h=u(n),p=0;p{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({GET_LOGS_REQUEST:null,GET_LOGS_SUCCESS:null,GET_LOGS_FAILURE:null,GET_AUDITS_REQUEST:null,GET_AUDITS_SUCCESS:null,GET_AUDITS_FAILURE:null,GET_CONFIG_REQUEST:null,GET_CONFIG_SUCCESS:null,GET_CONFIG_FAILURE:null,UPDATE_CONFIG_REQUEST:null,UPDATE_CONFIG_SUCCESS:null,UPDATE_CONFIG_FAILURE:null,RELOAD_CONFIG_REQUEST:null,RELOAD_CONFIG_SUCCESS:null,RELOAD_CONFIG_FAILURE:null,GET_ENVIRONMENT_CONFIG_REQUEST:null,GET_ENVIRONMENT_CONFIG_SUCCESS:null,GET_ENVIRONMENT_CONFIG_FAILURE:null,TEST_EMAIL_REQUEST:null,TEST_EMAIL_SUCCESS:null,TEST_EMAIL_FAILURE:null,TEST_SITE_URL_REQUEST:null,TEST_SITE_URL_SUCCESS:null,TEST_SITE_URL_FAILURE:null,TEST_S3_REQUEST:null,TEST_S3_SUCCESS:null,TEST_S3_FAILURE:null,INVALIDATE_CACHES_REQUEST:null,INVALIDATE_CACHES_SUCCESS:null,INVALIDATE_CACHES_FAILURE:null,RECYCLE_DATABASE_REQUEST:null,RECYCLE_DATABASE_SUCCESS:null,RECYCLE_DATABASE_FAILURE:null,CREATE_COMPLIANCE_REQUEST:null,CREATE_COMPLIANCE_SUCCESS:null,CREATE_COMPLIANCE_FAILURE:null,GET_COMPLIANCE_REQUEST:null,GET_COMPLIANCE_SUCCESS:null,GET_COMPLIANCE_FAILURE:null,UPLOAD_BRAND_IMAGE_REQUEST:null,UPLOAD_BRAND_IMAGE_SUCCESS:null,UPLOAD_BRAND_IMAGE_FAILURE:null,DELETE_BRAND_IMAGE_REQUEST:null,DELETE_BRAND_IMAGE_SUCCESS:null,DELETE_BRAND_IMAGE_FAILURE:null,GET_CLUSTER_STATUS_REQUEST:null,GET_CLUSTER_STATUS_SUCCESS:null,GET_CLUSTER_STATUS_FAILURE:null,TEST_LDAP_REQUEST:null,TEST_LDAP_SUCCESS:null,TEST_LDAP_FAILURE:null,SYNC_LDAP_REQUEST:null,SYNC_LDAP_SUCCESS:null,SYNC_LDAP_FAILURE:null,GET_LDAP_GROUPS_REQUEST:null,GET_LDAP_GROUPS_SUCCESS:null,GET_LDAP_GROUPS_FAILURE:null,LINK_LDAP_GROUP_REQUEST:null,LINK_LDAP_GROUP_SUCCESS:null,LINK_LDAP_GROUP_FAILURE:null,UNLINK_LDAP_GROUP_REQUEST:null,UNLINK_LDAP_GROUP_SUCCESS:null,UNLINK_LDAP_GROUP_FAILURE:null,SAML_CERT_STATUS_REQUEST:null,SAML_CERT_STATUS_SUCCESS:null,SAML_CERT_STATUS_FAILURE:null,UPLOAD_SAML_PUBLIC_REQUEST:null,UPLOAD_SAML_PUBLIC_SUCCESS:null,UPLOAD_SAML_PUBLIC_FAILURE:null,UPLOAD_SAML_PRIVATE_REQUEST:null,UPLOAD_SAML_PRIVATE_SUCCESS:null,UPLOAD_SAML_PRIVATE_FAILURE:null,UPLOAD_SAML_IDP_REQUEST:null,UPLOAD_SAML_IDP_SUCCESS:null,UPLOAD_SAML_IDP_FAILURE:null,DELETE_SAML_PUBLIC_REQUEST:null,DELETE_SAML_PUBLIC_SUCCESS:null,DELETE_SAML_PUBLIC_FAILURE:null,DELETE_SAML_PRIVATE_REQUEST:null,DELETE_SAML_PRIVATE_SUCCESS:null,DELETE_SAML_PRIVATE_FAILURE:null,DELETE_SAML_IDP_REQUEST:null,DELETE_SAML_IDP_SUCCESS:null,DELETE_SAML_IDP_FAILURE:null,UPLOAD_LICENSE_REQUEST:null,UPLOAD_LICENSE_SUCCESS:null,UPLOAD_LICENSE_FAILURE:null,REMOVE_LICENSE_REQUEST:null,REMOVE_LICENSE_SUCCESS:null,REMOVE_LICENSE_FAILURE:null,GET_ANALYTICS_REQUEST:null,GET_ANALYTICS_SUCCESS:null,GET_ANALYTICS_FAILURE:null,TEST_ELASTICSEARCH_REQUEST:null,TEST_ELASTICSEARCH_SUCCESS:null,TEST_ELASTICSEARCH_FAILURE:null,PURGE_ELASTICSEARCH_INDEXES_REQUEST:null,PURGE_ELASTICSEARCH_INDEXES_SUCCESS:null,PURGE_ELASTICSEARCH_INDEXES_FAILURE:null,UPLOAD_PLUGIN_REQUEST:null,UPLOAD_PLUGIN_SUCCESS:null,UPLOAD_PLUGIN_FAILURE:null,INSTALL_PLUGIN_FROM_URL_REQUEST:null,INSTALL_PLUGIN_FROM_URL_SUCCESS:null,INSTALL_PLUGIN_FROM_URL_FAILURE:null,GET_PLUGIN_REQUEST:null,GET_PLUGIN_SUCCESS:null,GET_PLUGIN_FAILURE:null,GET_PLUGIN_STATUSES_REQUEST:null,GET_PLUGIN_STATUSES_SUCCESS:null,GET_PLUGIN_STATUSES_FAILURE:null,REMOVE_PLUGIN_REQUEST:null,REMOVE_PLUGIN_SUCCESS:null,REMOVE_PLUGIN_FAILURE:null,ENABLE_PLUGIN_REQUEST:null,ENABLE_PLUGIN_SUCCESS:null,ENABLE_PLUGIN_FAILURE:null,DISABLE_PLUGIN_REQUEST:null,DISABLE_PLUGIN_SUCCESS:null,DISABLE_PLUGIN_FAILURE:null,RECEIVED_LOGS:null,RECEIVED_AUDITS:null,RECEIVED_CONFIG:null,RECEIVED_ENVIRONMENT_CONFIG:null,RECEIVED_COMPLIANCE_REPORT:null,RECEIVED_COMPLIANCE_REPORTS:null,RECEIVED_CLUSTER_STATUS:null,RECEIVED_SAML_CERT_STATUS:null,RECEIVED_SYSTEM_ANALYTICS:null,RECEIVED_TEAM_ANALYTICS:null,RECEIVED_USER_ACCESS_TOKEN:null,RECEIVED_USER_ACCESS_TOKENS:null,RECEIVED_USER_ACCESS_TOKENS_FOR_USER:null,RECEIVED_PLUGINS:null,RECEIVED_PLUGIN_STATUSES:null,RECEIVED_LDAP_GROUPS:null,LINKED_LDAP_GROUP:null,UNLINKED_LDAP_GROUP:null,REMOVED_PLUGIN:null,ENABLED_PLUGIN:null,DISABLED_PLUGIN:null,RECEIVED_SAML_METADATA_RESPONSE:null,SET_SAML_IDP_SUCCESS:null,UPLOAD_LDAP_PUBLIC_SUCCESS:null,UPLOAD_LDAP_PRIVATE_SUCCESS:null,DELETE_LDAP_PUBLIC_SUCCESS:null,DELETE_LDAP_PRIVATE_SUCCESS:null})},1369:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({RECEIVED_BOT_ACCOUNTS:null,RECEIVED_BOT_ACCOUNT:null})},416:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({RECEIVED_CATEGORY:null,RECEIVED_CATEGORIES:null,RECEIVED_CATEGORY_ORDER:null,CATEGORY_COLLAPSED:null,CATEGORY_EXPANDED:null,CATEGORY_DELETED:null})},9434:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({CHANNEL_REQUEST:null,CHANNEL_SUCCESS:null,CHANNEL_FAILURE:null,CHANNELS_REQUEST:null,CHANNELS_SUCCESS:null,CHANNELS_FAILURE:null,CREATE_CHANNEL_REQUEST:null,CREATE_CHANNEL_SUCCESS:null,CREATE_CHANNEL_FAILURE:null,UPDATE_CHANNEL_REQUEST:null,UPDATE_CHANNEL_SUCCESS:null,UPDATE_CHANNEL_FAILURE:null,DELETE_CHANNEL_SUCCESS:null,UNARCHIVED_CHANNEL_SUCCESS:null,GET_CHANNELS_REQUEST:null,GET_CHANNELS_SUCCESS:null,GET_CHANNELS_FAILURE:null,GET_ALL_CHANNELS_REQUEST:null,GET_ALL_CHANNELS_SUCCESS:null,GET_ALL_CHANNELS_FAILURE:null,GET_CHANNELS_TIMEZONE_REQUEST:null,GET_CHANNELS_TIMEZONE_SUCCESS:null,GET_CHANNELS_TIMEZONE_FAILURE:null,CHANNEL_STATS_REQUEST:null,CHANNEL_STATS_SUCCESS:null,CHANNEL_STATS_FAILURE:null,ADD_CHANNEL_MEMBER_REQUEST:null,ADD_CHANNEL_MEMBER_SUCCESS:null,REMOVE_CHANNEL_MEMBER_SUCCESS:null,SELECT_CHANNEL:null,LEAVE_CHANNEL:null,REMOVE_MEMBER_FROM_CHANNEL:null,RECEIVED_CHANNEL:null,RECEIVED_CHANNELS:null,RECEIVED_ALL_CHANNELS:null,RECEIVED_CHANNELS_LIST:null,RECEIVED_MY_CHANNEL_MEMBERS:null,RECEIVED_MY_CHANNEL_MEMBER:null,RECEIVED_CHANNEL_MEMBERS:null,RECEIVED_CHANNEL_MEMBER:null,RECEIVED_CHANNEL_STATS:null,RECEIVED_CHANNEL_PROPS:null,RECEIVED_CHANNEL_DELETED:null,RECEIVED_CHANNEL_UNARCHIVED:null,RECEIVED_LAST_VIEWED_AT:null,UPDATE_CHANNEL_HEADER:null,UPDATE_CHANNEL_PURPOSE:null,CHANNEL_MEMBER_ADDED:null,CHANNEL_MEMBER_REMOVED:null,SET_CHANNEL_MUTED:null,INCREMENT_TOTAL_MSG_COUNT:null,INCREMENT_UNREAD_MSG_COUNT:null,DECREMENT_UNREAD_MSG_COUNT:null,INCREMENT_UNREAD_MENTION_COUNT:null,DECREMENT_UNREAD_MENTION_COUNT:null,UPDATED_CHANNEL_SCHEME:null,UPDATED_CHANNEL_MEMBER_SCHEME_ROLES:null,RECEIVED_CHANNEL_MEMBERS_MINUS_GROUP_MEMBERS:null,RECEIVED_CHANNEL_MODERATIONS:null,RECEIVED_CHANNEL_MEMBER_COUNTS_BY_GROUP:null,RECEIVED_TOTAL_CHANNEL_COUNT:null,POST_UNREAD_SUCCESS:null,ADD_MANUALLY_UNREAD:null,REMOVE_MANUALLY_UNREAD:null,RECEIVED_MY_CHANNELS_WITH_MEMBERS:null,INCREMENT_PINNED_POST_COUNT:null,DECREMENT_PINNED_POST_COUNT:null})},6858:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({RECEIVED_CLOUD_CUSTOMER:null,RECEIVED_CLOUD_PRODUCTS:null,RECEIVED_CLOUD_SUBSCRIPTION:null,RECEIVED_CLOUD_INVOICES:null,RECEIVED_CLOUD_SUBSCRIPTION_STATS:null})},1073:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({CLEAR_CUSTOM_EMOJIS:null,RECEIVED_CUSTOM_EMOJI:null,RECEIVED_CUSTOM_EMOJIS:null,DELETED_CUSTOM_EMOJI:null,CUSTOM_EMOJI_DOES_NOT_EXIST:null})},4679:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({DISMISS_ERROR:null,LOG_ERROR:null,CLEAR_ERRORS:null,RESTORE_ERRORS:null})},9645:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({UPLOAD_FILES_REQUEST:null,UPLOAD_FILES_SUCCESS:null,UPLOAD_FILES_FAILURE:null,UPLOAD_FILES_CANCEL:null,RECEIVED_FILES_FOR_POST:null,RECEIVED_UPLOAD_FILES:null,RECEIVED_FILE_PUBLIC_LINK:null})},8624:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({RECEIVED_APP_STATE:null,RECEIVED_APP_CREDENTIALS:null,REMOVED_APP_CREDENTIALS:null,RECEIVED_APP_DEVICE_TOKEN:null,PING_RESET:null,RECEIVED_SERVER_VERSION:null,CLIENT_CONFIG_RECEIVED:null,CLIENT_CONFIG_RESET:null,CLIENT_LICENSE_RECEIVED:null,CLIENT_LICENSE_RESET:null,RECEIVED_DATA_RETENTION_POLICY:null,LOG_CLIENT_ERROR_REQUEST:null,LOG_CLIENT_ERROR_SUCCESS:null,LOG_CLIENT_ERROR_FAILURE:null,SUPPORTED_TIMEZONES_REQUEST:null,SUPPORTED_TIMEZONES_SUCCESS:null,SUPPORTED_TIMEZONES_FAILURE:null,SUPPORTED_TIMEZONES_RECEIVED:null,WEBSOCKET_REQUEST:null,WEBSOCKET_SUCCESS:null,WEBSOCKET_FAILURE:null,WEBSOCKET_CLOSED:null,REDIRECT_LOCATION_SUCCESS:null,REDIRECT_LOCATION_FAILURE:null,SET_CONFIG_AND_LICENSE:null,WARN_METRICS_STATUS_RECEIVED:null,WARN_METRIC_STATUS_RECEIVED:null,WARN_METRIC_STATUS_REMOVED:null})},8594:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({SAVE_APP_PROPS:null,SEARCH_REQUEST:null,SEARCH_FAILURE:null,SEARCH_SUCCESS:null,SEARCH_BY_ID_REQUEST:null,SEARCH_BY_ID_FAILURE:null,SEARCH_BY_ID_SUCCESS:null,SELECT_SEARCH_TEXT:null,INVALIDATE_SEARCH_TEXT:null,REQUEST_SEARCH:null,RECEIVE_SEARCH:null,RECEIVE_SEARCH_END:null,RECEIVE_CATEGORY_SEARCH:null,CLEAR_SEARCH_RESULTS:null,SAVE_SEARCH_SCROLL_POSITION:null,SAVE_SEARCH_PRIOR_LOCATION:null,UPDATE_SEARCH_TEXT:null,SAVE_SEARCH_BAR_TEXT:null,REQUEST_CATEGORIES_LIST:null,CATEGORIES_LIST_RECEIVED:null,CATEGORIES_LIST_FAILURE:null,CACHE_GIFS:null,CACHE_REQUEST:null})},110:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({LINKED_GROUP_TEAM:null,LINKED_GROUP_CHANNEL:null,UNLINKED_GROUP_TEAM:null,UNLINKED_GROUP_CHANNEL:null,RECEIVED_GROUP_TEAMS:null,RECEIVED_GROUP_CHANNELS:null,RECEIVED_GROUP_STATS:null,RECEIVED_GROUP:null,RECEIVED_GROUPS:null,RECEIVED_GROUP_ASSOCIATED_TO_TEAM:null,RECEIVED_GROUPS_ASSOCIATED_TO_TEAM:null,RECEIVED_ALL_GROUPS_ASSOCIATED_TO_CHANNELS_IN_TEAM:null,RECEIVED_GROUP_ASSOCIATED_TO_CHANNEL:null,RECEIVED_GROUPS_ASSOCIATED_TO_CHANNEL:null,RECEIVED_ALL_GROUPS_ASSOCIATED_TO_TEAM:null,RECEIVED_ALL_GROUPS_ASSOCIATED_TO_CHANNEL:null,RECEIVED_GROUP_NOT_ASSOCIATED_TO_TEAM:null,RECEIVED_GROUPS_NOT_ASSOCIATED_TO_TEAM:null,RECEIVED_GROUP_NOT_ASSOCIATED_TO_CHANNEL:null,RECEIVED_GROUPS_NOT_ASSOCIATED_TO_CHANNEL:null,PATCHED_GROUP_TEAM:null,PATCHED_GROUP_CHANNEL:null,RECEIVED_MY_GROUPS:null,PATCHED_GROUP:null})},9287:(e,t,n)=>{"use strict";t.tk=void 0;var r=n(655);r.__importDefault(n(9434)).default,r.__importDefault(n(4679)).default,r.__importDefault(n(8624)).default,r.__importDefault(n(4840)).default,r.__importDefault(n(8376)).default;var o=r.__importDefault(n(726));t.tk=o.default,r.__importDefault(n(9645)).default,r.__importDefault(n(2034)).default,r.__importDefault(n(2853)).default,r.__importDefault(n(1073)).default,r.__importDefault(n(8594)).default,r.__importDefault(n(7028)).default,r.__importDefault(n(5259)).default,r.__importDefault(n(5832)).default,r.__importDefault(n(9736)).default,r.__importDefault(n(281)).default,r.__importDefault(n(110)).default,r.__importDefault(n(1369)).default,r.__importDefault(n(8484)).default,r.__importDefault(n(416)).default,r.__importDefault(n(6858)).default,r.__importDefault(n(7701)).default},2853:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({RECEIVED_INCOMING_HOOK:null,RECEIVED_INCOMING_HOOKS:null,DELETED_INCOMING_HOOK:null,RECEIVED_OUTGOING_HOOK:null,RECEIVED_OUTGOING_HOOKS:null,DELETED_OUTGOING_HOOK:null,RECEIVED_CUSTOM_TEAM_COMMANDS:null,RECEIVED_COMMAND:null,RECEIVED_COMMANDS:null,RECEIVED_COMMAND_TOKEN:null,DELETED_COMMAND:null,RECEIVED_OAUTH_APP:null,RECEIVED_OAUTH_APPS:null,DELETED_OAUTH_APP:null,RECEIVED_DIALOG_TRIGGER_ID:null,RECEIVED_DIALOG:null})},5259:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({CREATE_JOB_REQUEST:null,CREATE_JOB_SUCCESS:null,CREATE_JOB_FAILURE:null,CANCEL_JOB_REQUEST:null,CANCEL_JOB_SUCCESS:null,CANCEL_JOB_FAILURE:null,GET_JOB_REQUEST:null,GET_JOB_SUCCESS:null,GET_JOB_FAILURE:null,GET_JOBS_REQUEST:null,GET_JOBS_SUCCESS:null,GET_JOBS_FAILURE:null,RECEIVED_JOB:null,RECEIVED_JOBS:null,RECEIVED_JOBS_BY_TYPE:null})},8484:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({RECEIVED_MARKETPLACE_PLUGINS:null,GET_MARKETPLACE_PLUGINS_FAILURE:null})},726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({CREATE_POST_REQUEST:null,CREATE_POST_SUCCESS:null,CREATE_POST_FAILURE:null,CREATE_POST_RESET_REQUEST:null,EDIT_POST_REQUEST:null,EDIT_POST_SUCCESS:null,EDIT_POST_FAILURE:null,GET_POST_THREAD_REQUEST:null,GET_POST_THREAD_SUCCESS:null,GET_POST_THREAD_FAILURE:null,GET_POSTS_SUCCESS:null,GET_POSTS_FAILURE:null,GET_POSTS_SINCE_SUCCESS:null,GET_POST_THREAD_WITH_RETRY_ATTEMPT:null,GET_POSTS_WITH_RETRY_ATTEMPT:null,GET_POSTS_SINCE_WITH_RETRY_ATTEMPT:null,GET_POSTS_BEFORE_WITH_RETRY_ATTEMPT:null,GET_POSTS_AFTER_WITH_RETRY_ATTEMPT:null,RECEIVED_POST:null,RECEIVED_NEW_POST:null,RECEIVED_POSTS:null,RECEIVED_POSTS_AFTER:null,RECEIVED_POSTS_BEFORE:null,RECEIVED_POSTS_IN_CHANNEL:null,RECEIVED_POSTS_IN_THREAD:null,RECEIVED_POSTS_SINCE:null,POST_DELETED:null,POST_REMOVED:null,RECEIVED_FOCUSED_POST:null,RECEIVED_POST_SELECTED:null,RECEIVED_EDIT_POST:null,RECEIVED_REACTION:null,RECEIVED_REACTIONS:null,REACTION_DELETED:null,RECEIVED_OPEN_GRAPH_METADATA:null,ADD_MESSAGE_INTO_HISTORY:null,RESET_HISTORY_INDEX:null,MOVE_HISTORY_INDEX_BACK:null,MOVE_HISTORY_INDEX_FORWARD:null})},2034:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({RECEIVED_PREFERENCES:null,RECEIVED_ALL_PREFERENCES:null,DELETED_PREFERENCES:null})},9736:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({ROLES_BY_NAMES_REQUEST:null,ROLES_BY_NAMES_SUCCESS:null,ROLES_BY_NAMES_FAILURE:null,ROLE_BY_NAME_REQUEST:null,ROLE_BY_NAME_SUCCESS:null,ROLE_BY_NAME_FAILURE:null,ROLE_BY_ID_REQUEST:null,ROLE_BY_ID_SUCCESS:null,ROLE_BY_ID_FAILURE:null,EDIT_ROLE_REQUEST:null,EDIT_ROLE_SUCCESS:null,EDIT_ROLE_FAILURE:null,RECEIVED_ROLES:null,RECEIVED_ROLE:null,ROLE_DELETED:null,SET_PENDING_ROLES:null})},281:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({RECEIVED_SCHEME:null,RECEIVED_SCHEMES:null,CREATED_SCHEME:null,DELETED_SCHEME:null,PATCHED_SCHEME:null,RECEIVED_SCHEME_TEAMS:null,RECEIVED_SCHEME_CHANNELS:null})},5832:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({SEARCH_POSTS_REQUEST:null,SEARCH_POSTS_SUCCESS:null,SEARCH_FLAGGED_POSTS_REQUEST:null,SEARCH_FLAGGED_POSTS_SUCCESS:null,SEARCH_FLAGGED_POSTS_FAILURE:null,SEARCH_PINNED_POSTS_REQUEST:null,SEARCH_PINNED_POSTS_SUCCESS:null,SEARCH_PINNED_POSTS_FAILURE:null,REMOVE_SEARCH_PINNED_POSTS:null,RECEIVED_SEARCH_POSTS:null,RECEIVED_SEARCH_FLAGGED_POSTS:null,RECEIVED_SEARCH_PINNED_POSTS:null,RECEIVED_SEARCH_TERM:null,REMOVE_SEARCH_POSTS:null,REMOVE_SEARCH_TERM:null})},8376:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({GET_TEAMS_REQUEST:null,GET_TEAMS_SUCCESS:null,GET_TEAMS_FAILURE:null,MY_TEAMS_REQUEST:null,MY_TEAMS_SUCCESS:null,MY_TEAMS_FAILURE:null,CREATE_TEAM_REQUEST:null,CREATE_TEAM_SUCCESS:null,CREATE_TEAM_FAILURE:null,GET_TEAM_MEMBERS_REQUEST:null,GET_TEAM_MEMBERS_SUCCESS:null,GET_TEAM_MEMBERS_FAILURE:null,JOIN_TEAM_REQUEST:null,JOIN_TEAM_SUCCESS:null,JOIN_TEAM_FAILURE:null,TEAM_INVITE_INFO_REQUEST:null,TEAM_INVITE_INFO_SUCCESS:null,TEAM_INVITE_INFO_FAILURE:null,ADD_TO_TEAM_FROM_INVITE_REQUEST:null,ADD_TO_TEAM_FROM_INVITE_SUCCESS:null,ADD_TO_TEAM_FROM_INVITE_FAILURE:null,CREATED_TEAM:null,SELECT_TEAM:null,UPDATED_TEAM:null,PATCHED_TEAM:null,REGENERATED_TEAM_INVITE_ID:null,RECEIVED_TEAM:null,RECEIVED_TEAMS:null,RECEIVED_TEAM_DELETED:null,RECEIVED_TEAMS_LIST:null,RECEIVED_MY_TEAM_MEMBERS:null,RECEIVED_MY_TEAM_MEMBER:null,RECEIVED_TEAM_MEMBERS:null,RECEIVED_MEMBERS_IN_TEAM:null,RECEIVED_MEMBER_IN_TEAM:null,REMOVE_MEMBER_FROM_TEAM:null,RECEIVED_TEAM_STATS:null,RECEIVED_MY_TEAM_UNREADS:null,LEAVE_TEAM:null,UPDATED_TEAM_SCHEME:null,UPDATED_TEAM_MEMBER_SCHEME_ROLES:null,RECEIVED_TEAM_MEMBERS_MINUS_GROUP_MEMBERS:null,RECEIVED_TOTAL_TEAM_COUNT:null})},7701:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({RECEIVED_THREAD:null,RECEIVED_THREADS:null,RECEIVED_PER_CHANNEL_MENTION_COUNTS:null,FOLLOW_CHANGED_THREAD:null,READ_CHANGED_THREAD:null,ALL_TEAM_THREADS_READ:null})},4840:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({CREATE_USER_REQUEST:null,CREATE_USER_SUCCESS:null,CREATE_USER_FAILURE:null,LOGIN_REQUEST:null,LOGIN_SUCCESS:null,LOGIN_FAILURE:null,LOGOUT_REQUEST:null,LOGOUT_SUCCESS:null,LOGOUT_FAILURE:null,REVOKE_ALL_USER_SESSIONS_SUCCESS:null,REVOKE_SESSIONS_FOR_ALL_USERS_SUCCESS:null,CHECK_MFA_REQUEST:null,CHECK_MFA_SUCCESS:null,CHECK_MFA_FAILURE:null,AUTOCOMPLETE_USERS_REQUEST:null,AUTOCOMPLETE_USERS_SUCCESS:null,AUTOCOMPLETE_USERS_FAILURE:null,UPDATE_ME_REQUEST:null,UPDATE_ME_SUCCESS:null,UPDATE_ME_FAILURE:null,RECEIVED_ME:null,RECEIVED_TERMS_OF_SERVICE_STATUS:null,RECEIVED_PROFILE:null,RECEIVED_PROFILES:null,RECEIVED_PROFILES_LIST:null,RECEIVED_PROFILES_IN_TEAM:null,RECEIVED_PROFILE_IN_TEAM:null,RECEIVED_PROFILES_LIST_IN_TEAM:null,RECEIVED_PROFILE_NOT_IN_TEAM:null,RECEIVED_PROFILES_LIST_NOT_IN_TEAM:null,RECEIVED_PROFILES_LIST_NOT_IN_TEAM_AND_REPLACE:null,RECEIVED_PROFILE_WITHOUT_TEAM:null,RECEIVED_PROFILES_LIST_WITHOUT_TEAM:null,RECEIVED_PROFILES_IN_CHANNEL:null,RECEIVED_PROFILES_LIST_IN_CHANNEL:null,RECEIVED_PROFILE_IN_CHANNEL:null,RECEIVED_PROFILES_NOT_IN_CHANNEL:null,RECEIVED_PROFILES_LIST_NOT_IN_CHANNEL:null,RECEIVED_PROFILES_LIST_NOT_IN_CHANNEL_AND_REPLACE:null,RECEIVED_PROFILE_NOT_IN_CHANNEL:null,RECEIVED_PROFILES_LIST_IN_GROUP:null,RECEIVED_SESSIONS:null,RECEIVED_REVOKED_SESSION:null,RECEIVED_AUDITS:null,RECEIVED_STATUS:null,RECEIVED_STATUSES:null,RECEIVED_AUTOCOMPLETE_IN_CHANNEL:null,RESET_LOGOUT_STATE:null,RECEIVED_MY_USER_ACCESS_TOKEN:null,RECEIVED_MY_USER_ACCESS_TOKENS:null,CLEAR_MY_USER_ACCESS_TOKENS:null,REVOKED_USER_ACCESS_TOKEN:null,DISABLED_USER_ACCESS_TOKEN:null,ENABLED_USER_ACCESS_TOKEN:null,RECEIVED_USER_STATS:null,RECEIVED_FILTERED_USER_STATS:null,PROFILE_NO_LONGER_VISIBLE:null,LOGIN:null,RECEIVED_BATCHED_PROFILES_IN_CHANNEL:null})},7517:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientError=t.DEFAULT_LIMIT_AFTER=t.DEFAULT_LIMIT_BEFORE=t.HEADER_X_VERSION_ID=void 0;var r=n(655),o=n(5250),i=n(1625),a=n(2158),s=n(2633),u=r.__importDefault(n(727)),l=n(6230),c="X-Cluster-Id";t.HEADER_X_VERSION_ID="X-Version-Id";var _=60;t.DEFAULT_LIMIT_BEFORE=30,t.DEFAULT_LIMIT_AFTER=30;var E=function(){function e(){var e=this;this.logToConsole=!1,this.serverVersion="",this.clusterId="",this.token="",this.csrf="",this.url="",this.urlVersion="/api/v4",this.userAgent=null,this.enableLogging=!1,this.defaultHeaders={},this.userId="",this.diagnosticId="",this.includeCookies=!0,this.translations={connectionError:"There appears to be a problem with your internet connection.",unknownError:"We received an unexpected status code from the server."},this.createUser=function(t,n,r,o){e.trackEvent("api","api_users_create");var a={};return n&&(a.t=n),r&&(a.iid=r),o&&(a.r=o),e.doFetch(""+e.getUsersRoute()+i.buildQueryString(a),{method:"post",body:JSON.stringify(t)})},this.patchMe=function(t){return e.doFetch(e.getUserRoute("me")+"/patch",{method:"put",body:JSON.stringify(t)})},this.patchUser=function(t){return e.trackEvent("api","api_users_patch"),e.doFetch(e.getUserRoute(t.id)+"/patch",{method:"put",body:JSON.stringify(t)})},this.updateUser=function(t){return e.trackEvent("api","api_users_update"),e.doFetch(""+e.getUserRoute(t.id),{method:"put",body:JSON.stringify(t)})},this.promoteGuestToUser=function(t){return e.trackEvent("api","api_users_promote_guest_to_user"),e.doFetch(e.getUserRoute(t)+"/promote",{method:"post"})},this.demoteUserToGuest=function(t){return e.trackEvent("api","api_users_demote_user_to_guest"),e.doFetch(e.getUserRoute(t)+"/demote",{method:"post"})},this.updateUserRoles=function(t,n){return e.trackEvent("api","api_users_update_roles"),e.doFetch(e.getUserRoute(t)+"/roles",{method:"put",body:JSON.stringify({roles:n})})},this.updateUserMfa=function(t,n,r){var o={activate:n};return n&&(o.code=r),e.doFetch(e.getUserRoute(t)+"/mfa",{method:"put",body:JSON.stringify(o)})},this.updateUserPassword=function(t,n,r){return e.trackEvent("api","api_users_newpassword"),e.doFetch(e.getUserRoute(t)+"/password",{method:"put",body:JSON.stringify({current_password:n,new_password:r})})},this.resetUserPassword=function(t,n){return e.trackEvent("api","api_users_reset_password"),e.doFetch(e.getUsersRoute()+"/password/reset",{method:"post",body:JSON.stringify({token:t,new_password:n})})},this.getKnownUsers=function(){return e.trackEvent("api","api_get_known_users"),e.doFetch(e.getUsersRoute()+"/known",{method:"get"})},this.sendPasswordResetEmail=function(t){return e.trackEvent("api","api_users_send_password_reset"),e.doFetch(e.getUsersRoute()+"/password/reset/send",{method:"post",body:JSON.stringify({email:t})})},this.updateUserActive=function(t,n){return e.trackEvent("api","api_users_update_active"),e.doFetch(e.getUserRoute(t)+"/active",{method:"put",body:JSON.stringify({active:n})})},this.uploadProfileImage=function(t,n){e.trackEvent("api","api_users_update_profile_picture");var r=new l;r.append("image",n);var o={method:"post",body:r};return r.getBoundary&&(o.headers={"Content-Type":"multipart/form-data; boundary="+r.getBoundary()}),e.doFetch(e.getUserRoute(t)+"/image",o)},this.setDefaultProfileImage=function(t){return e.trackEvent("api","api_users_set_default_profile_picture"),e.doFetch(e.getUserRoute(t)+"/image",{method:"delete"})},this.verifyUserEmail=function(t){return e.doFetch(e.getUsersRoute()+"/email/verify",{method:"post",body:JSON.stringify({token:t})})},this.updateMyTermsOfServiceStatus=function(t,n){return e.doFetch(e.getUserRoute("me")+"/terms_of_service",{method:"post",body:JSON.stringify({termsOfServiceId:t,accepted:n})})},this.getTermsOfService=function(){return e.doFetch(e.getBaseRoute()+"/terms_of_service",{method:"get"})},this.createTermsOfService=function(t){return e.doFetch(e.getBaseRoute()+"/terms_of_service",{method:"post",body:JSON.stringify({text:t})})},this.sendVerificationEmail=function(t){return e.doFetch(e.getUsersRoute()+"/email/verify/send",{method:"post",body:JSON.stringify({email:t})})},this.login=function(t,n,r,o,i){void 0===r&&(r=""),void 0===o&&(o=""),void 0===i&&(i=!1),e.trackEvent("api","api_users_login"),i&&e.trackEvent("api","api_users_login_ldap");var a={device_id:o,login_id:t,password:n,token:r};return i&&(a.ldap_only="true"),e.doFetch(e.getUsersRoute()+"/login",{method:"post",body:JSON.stringify(a)})},this.loginById=function(t,n,r,o){void 0===r&&(r=""),void 0===o&&(o=""),e.trackEvent("api","api_users_login");var i={device_id:o,id:t,password:n,token:r};return e.doFetch(e.getUsersRoute()+"/login",{method:"post",body:JSON.stringify(i)})},this.logout=function(){return r.__awaiter(e,void 0,void 0,(function(){var e;return r.__generator(this,(function(t){switch(t.label){case 0:return this.trackEvent("api","api_users_logout"),[4,this.doFetchWithResponse(this.getUsersRoute()+"/logout",{method:"post"})];case 1:return(e=t.sent().response).ok&&(this.token=""),this.serverVersion="",[2,e]}}))}))},this.getProfiles=function(t,n,o){return void 0===t&&(t=0),void 0===n&&(n=_),void 0===o&&(o={}),e.trackEvent("api","api_profiles_get"),e.doFetch(""+e.getUsersRoute()+i.buildQueryString(r.__assign({page:t,per_page:n},o)),{method:"get"})},this.getProfilesByIds=function(t,n){return void 0===n&&(n={}),e.trackEvent("api","api_profiles_get_by_ids"),e.doFetch(e.getUsersRoute()+"/ids"+i.buildQueryString(n),{method:"post",body:JSON.stringify(t)})},this.getProfilesByUsernames=function(t){return e.trackEvent("api","api_profiles_get_by_usernames"),e.doFetch(e.getUsersRoute()+"/usernames",{method:"post",body:JSON.stringify(t)})},this.getProfilesInTeam=function(t,n,o,a,s){return void 0===n&&(n=0),void 0===o&&(o=_),void 0===a&&(a=""),void 0===s&&(s={}),e.trackEvent("api","api_profiles_get_in_team",{team_id:t,sort:a}),e.doFetch(""+e.getUsersRoute()+i.buildQueryString(r.__assign(r.__assign({},s),{in_team:t,page:n,per_page:o,sort:a})),{method:"get"})},this.getProfilesNotInTeam=function(t,n,r,o){void 0===r&&(r=0),void 0===o&&(o=_),e.trackEvent("api","api_profiles_get_not_in_team",{team_id:t,group_constrained:n});var a={not_in_team:t,page:r,per_page:o};return n&&(a.group_constrained=!0),e.doFetch(""+e.getUsersRoute()+i.buildQueryString(a),{method:"get"})},this.getProfilesWithoutTeam=function(t,n,o){return void 0===t&&(t=0),void 0===n&&(n=_),void 0===o&&(o={}),e.trackEvent("api","api_profiles_get_without_team"),e.doFetch(""+e.getUsersRoute()+i.buildQueryString(r.__assign(r.__assign({},o),{without_team:1,page:t,per_page:n})),{method:"get"})},this.getProfilesInChannel=function(t,n,o,a,s){void 0===n&&(n=0),void 0===o&&(o=_),void 0===a&&(a=""),void 0===s&&(s={}),e.trackEvent("api","api_profiles_get_in_channel",{channel_id:t});var u,l=e.getServerVersion();return u=i.isMinimumServerVersion(l,4,7)?{in_channel:t,page:n,per_page:o,sort:a}:{in_channel:t,page:n,per_page:o},e.doFetch(""+e.getUsersRoute()+i.buildQueryString(r.__assign(r.__assign({},u),s)),{method:"get"})},this.getProfilesInGroupChannels=function(t){return e.trackEvent("api","api_profiles_get_in_group_channels",{channelsIds:t}),e.doFetch(e.getUsersRoute()+"/group_channels",{method:"post",body:JSON.stringify(t)})},this.getProfilesNotInChannel=function(t,n,r,o,a){void 0===o&&(o=0),void 0===a&&(a=_),e.trackEvent("api","api_profiles_get_not_in_channel",{team_id:t,channel_id:n,group_constrained:r});var s={in_team:t,not_in_channel:n,page:o,per_page:a};return r&&(s.group_constrained=!0),e.doFetch(""+e.getUsersRoute()+i.buildQueryString(s),{method:"get"})},this.getProfilesInGroup=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=_),e.doFetch(""+e.getUsersRoute()+i.buildQueryString({in_group:t,page:n,per_page:r}),{method:"get"})},this.getMe=function(){return e.doFetch(""+e.getUserRoute("me"),{method:"get"})},this.getUser=function(t){return e.doFetch(""+e.getUserRoute(t),{method:"get"})},this.getUserByUsername=function(t){return e.doFetch(e.getUsersRoute()+"/username/"+t,{method:"get"})},this.getUserByEmail=function(t){return e.doFetch(e.getUsersRoute()+"/email/"+t,{method:"get"})},this.getProfilePictureUrl=function(t,n){var r={};return n&&(r._=n),e.getUserRoute(t)+"/image"+i.buildQueryString(r)},this.getDefaultProfilePictureUrl=function(t){return e.getUserRoute(t)+"/image/default"},this.autocompleteUsers=function(t,n,r,a){return void 0===a&&(a={limit:o.General.AUTOCOMPLETE_LIMIT_DEFAULT}),e.doFetch(e.getUsersRoute()+"/autocomplete"+i.buildQueryString({in_team:n,in_channel:r,name:t,limit:a.limit}),{method:"get"})},this.getSessions=function(t){return e.doFetch(e.getUserRoute(t)+"/sessions",{method:"get"})},this.revokeSession=function(t,n){return e.doFetch(e.getUserRoute(t)+"/sessions/revoke",{method:"post",body:JSON.stringify({session_id:n})})},this.revokeAllSessionsForUser=function(t){return e.doFetch(e.getUserRoute(t)+"/sessions/revoke/all",{method:"post"})},this.revokeSessionsForAllUsers=function(){return e.doFetch(e.getUsersRoute()+"/sessions/revoke/all",{method:"post"})},this.getUserAudits=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=_),e.doFetch(e.getUserRoute(t)+"/audits"+i.buildQueryString({page:n,per_page:r}),{method:"get"})},this.checkUserMfa=function(t){return e.doFetch(e.getUsersRoute()+"/mfa",{method:"post",body:JSON.stringify({login_id:t})})},this.generateMfaSecret=function(t){return e.doFetch(e.getUserRoute(t)+"/mfa/generate",{method:"post"})},this.attachDevice=function(t){return e.doFetch(e.getUsersRoute()+"/sessions/device",{method:"put",body:JSON.stringify({device_id:t})})},this.searchUsers=function(t,n){return e.trackEvent("api","api_search_users"),e.doFetch(e.getUsersRoute()+"/search",{method:"post",body:JSON.stringify(r.__assign({term:t},n))})},this.getStatusesByIds=function(t){return e.doFetch(e.getUsersRoute()+"/status/ids",{method:"post",body:JSON.stringify(t)})},this.getStatus=function(t){return e.doFetch(e.getUserRoute(t)+"/status",{method:"get"})},this.updateStatus=function(t){return e.doFetch(e.getUserRoute(t.user_id)+"/status",{method:"put",body:JSON.stringify(t)})},this.updateCustomStatus=function(t){return e.doFetch(e.getUserRoute("me")+"/status/custom",{method:"put",body:JSON.stringify(t)})},this.unsetCustomStatus=function(){return e.doFetch(e.getUserRoute("me")+"/status/custom",{method:"delete"})},this.removeRecentCustomStatus=function(t){return e.doFetch(e.getUserRoute("me")+"/status/custom/recent",{method:"delete",body:JSON.stringify(t)})},this.switchEmailToOAuth=function(t,n,r,o){return void 0===o&&(o=""),e.trackEvent("api","api_users_email_to_oauth"),e.doFetch(e.getUsersRoute()+"/login/switch",{method:"post",body:JSON.stringify({current_service:"email",new_service:t,email:n,password:r,mfa_code:o})})},this.switchOAuthToEmail=function(t,n,r){return e.trackEvent("api","api_users_oauth_to_email"),e.doFetch(e.getUsersRoute()+"/login/switch",{method:"post",body:JSON.stringify({current_service:t,new_service:"email",email:n,new_password:r})})},this.switchEmailToLdap=function(t,n,r,o,i){return void 0===i&&(i=""),e.trackEvent("api","api_users_email_to_ldap"),e.doFetch(e.getUsersRoute()+"/login/switch",{method:"post",body:JSON.stringify({current_service:"email",new_service:"ldap",email:t,password:n,ldap_id:r,new_password:o,mfa_code:i})})},this.switchLdapToEmail=function(t,n,r,o){return void 0===o&&(o=""),e.trackEvent("api","api_users_ldap_to_email"),e.doFetch(e.getUsersRoute()+"/login/switch",{method:"post",body:JSON.stringify({current_service:"ldap",new_service:"email",email:n,password:t,new_password:r,mfa_code:o})})},this.getAuthorizedOAuthApps=function(t){return e.doFetch(e.getUserRoute(t)+"/oauth/apps/authorized",{method:"get"})},this.authorizeOAuthApp=function(t,n,r,o,i){return e.doFetch(e.url+"/oauth/authorize",{method:"post",body:JSON.stringify({client_id:n,response_type:t,redirect_uri:r,state:o,scope:i})})},this.deauthorizeOAuthApp=function(t){return e.doFetch(e.url+"/oauth/deauthorize",{method:"post",body:JSON.stringify({client_id:t})})},this.createUserAccessToken=function(t,n){return e.trackEvent("api","api_users_create_access_token"),e.doFetch(e.getUserRoute(t)+"/tokens",{method:"post",body:JSON.stringify({description:n})})},this.getUserAccessToken=function(t){return e.doFetch(e.getUsersRoute()+"/tokens/"+t,{method:"get"})},this.getUserAccessTokensForUser=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=_),e.doFetch(e.getUserRoute(t)+"/tokens"+i.buildQueryString({page:n,per_page:r}),{method:"get"})},this.getUserAccessTokens=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=_),e.doFetch(e.getUsersRoute()+"/tokens"+i.buildQueryString({page:t,per_page:n}),{method:"get"})},this.revokeUserAccessToken=function(t){return e.trackEvent("api","api_users_revoke_access_token"),e.doFetch(e.getUsersRoute()+"/tokens/revoke",{method:"post",body:JSON.stringify({token_id:t})})},this.disableUserAccessToken=function(t){return e.doFetch(e.getUsersRoute()+"/tokens/disable",{method:"post",body:JSON.stringify({token_id:t})})},this.enableUserAccessToken=function(t){return e.doFetch(e.getUsersRoute()+"/tokens/enable",{method:"post",body:JSON.stringify({token_id:t})})},this.createTeam=function(t){return e.trackEvent("api","api_teams_create"),e.doFetch(""+e.getTeamsRoute(),{method:"post",body:JSON.stringify(t)})},this.deleteTeam=function(t){return e.trackEvent("api","api_teams_delete"),e.doFetch(""+e.getTeamRoute(t),{method:"delete"})},this.updateTeam=function(t){return e.trackEvent("api","api_teams_update_name",{team_id:t.id}),e.doFetch(""+e.getTeamRoute(t.id),{method:"put",body:JSON.stringify(t)})},this.patchTeam=function(t){return e.trackEvent("api","api_teams_patch_name",{team_id:t.id}),e.doFetch(e.getTeamRoute(t.id)+"/patch",{method:"put",body:JSON.stringify(t)})},this.regenerateTeamInviteId=function(t){return e.trackEvent("api","api_teams_regenerate_invite_id",{team_id:t}),e.doFetch(e.getTeamRoute(t)+"/regenerate_invite_id",{method:"post"})},this.updateTeamScheme=function(t,n){var o={scheme_id:n};return e.trackEvent("api","api_teams_update_scheme",r.__assign({team_id:t},o)),e.doFetch(""+e.getTeamSchemeRoute(t),{method:"put",body:JSON.stringify(o)})},this.checkIfTeamExists=function(t){return e.doFetch(e.getTeamNameRoute(t)+"/exists",{method:"get"})},this.getTeams=function(t,n,r){return void 0===t&&(t=0),void 0===n&&(n=_),void 0===r&&(r=!1),e.doFetch(""+e.getTeamsRoute()+i.buildQueryString({page:t,per_page:n,include_total_count:r}),{method:"get"})},this.searchTeams=function(t,n){return e.trackEvent("api","api_search_teams"),e.doFetch(e.getTeamsRoute()+"/search",{method:"post",body:JSON.stringify(r.__assign({term:t},n))})},this.getTeam=function(t){return e.doFetch(e.getTeamRoute(t),{method:"get"})},this.getTeamByName=function(t){return e.trackEvent("api","api_teams_get_team_by_name"),e.doFetch(e.getTeamNameRoute(t),{method:"get"})},this.getMyTeams=function(){return e.doFetch(e.getUserRoute("me")+"/teams",{method:"get"})},this.getTeamsForUser=function(t){return e.doFetch(e.getUserRoute(t)+"/teams",{method:"get"})},this.getMyTeamMembers=function(){return e.doFetch(e.getUserRoute("me")+"/teams/members",{method:"get"})},this.getMyTeamUnreads=function(){return e.doFetch(e.getUserRoute("me")+"/teams/unread",{method:"get"})},this.getTeamMembers=function(t,n,o,a){return void 0===n&&(n=0),void 0===o&&(o=_),e.doFetch(""+e.getTeamMembersRoute(t)+i.buildQueryString(r.__assign({page:n,per_page:o},a)),{method:"get"})},this.getTeamMembersForUser=function(t){return e.doFetch(e.getUserRoute(t)+"/teams/members",{method:"get"})},this.getTeamMember=function(t,n){return e.doFetch(""+e.getTeamMemberRoute(t,n),{method:"get"})},this.getTeamMembersByIds=function(t,n){return e.doFetch(e.getTeamMembersRoute(t)+"/ids",{method:"post",body:JSON.stringify(n)})},this.addToTeam=function(t,n){e.trackEvent("api","api_teams_invite_members",{team_id:t});var r={user_id:n,team_id:t};return e.doFetch(""+e.getTeamMembersRoute(t),{method:"post",body:JSON.stringify(r)})},this.addToTeamFromInvite=function(t,n){void 0===t&&(t=""),void 0===n&&(n=""),e.trackEvent("api","api_teams_invite_members");var r=i.buildQueryString({token:t,invite_id:n});return e.doFetch(e.getTeamsRoute()+"/members/invite"+r,{method:"post"})},this.addUsersToTeam=function(t,n){e.trackEvent("api","api_teams_batch_add_members",{team_id:t,count:n.length});var r=[];return n.forEach((function(e){return r.push({team_id:t,user_id:e})})),e.doFetch(e.getTeamMembersRoute(t)+"/batch",{method:"post",body:JSON.stringify(r)})},this.addUsersToTeamGracefully=function(t,n){e.trackEvent("api","api_teams_batch_add_members",{team_id:t,count:n.length});var r=[];return n.forEach((function(e){return r.push({team_id:t,user_id:e})})),e.doFetch(e.getTeamMembersRoute(t)+"/batch?graceful=true",{method:"post",body:JSON.stringify(r)})},this.joinTeam=function(t){var n=i.buildQueryString({invite_id:t});return e.doFetch(e.getTeamsRoute()+"/members/invite"+n,{method:"post"})},this.removeFromTeam=function(t,n){return e.trackEvent("api","api_teams_remove_members",{team_id:t}),e.doFetch(""+e.getTeamMemberRoute(t,n),{method:"delete"})},this.getTeamStats=function(t){return e.doFetch(e.getTeamRoute(t)+"/stats",{method:"get"})},this.getTotalUsersStats=function(){return e.doFetch(e.getUsersRoute()+"/stats",{method:"get"})},this.getFilteredUsersStats=function(t){return e.doFetch(e.getUsersRoute()+"/stats/filtered"+i.buildQueryString(t),{method:"get"})},this.invalidateAllEmailInvites=function(){return e.doFetch(e.getTeamsRoute()+"/invites/email",{method:"delete"})},this.getTeamInviteInfo=function(t){return e.doFetch(e.getTeamsRoute()+"/invite/"+t,{method:"get"})},this.updateTeamMemberRoles=function(t,n,r){return e.trackEvent("api","api_teams_update_member_roles",{team_id:t}),e.doFetch(e.getTeamMemberRoute(t,n)+"/roles",{method:"put",body:JSON.stringify({roles:r})})},this.sendEmailInvitesToTeam=function(t,n){return e.trackEvent("api","api_teams_invite_members",{team_id:t}),e.doFetch(e.getTeamRoute(t)+"/invite/email",{method:"post",body:JSON.stringify(n)})},this.sendEmailGuestInvitesToChannels=function(t,n,r,o){return e.trackEvent("api","api_teams_invite_guests",{team_id:t,channel_ids:n}),e.doFetch(e.getTeamRoute(t)+"/invite-guests/email",{method:"post",body:JSON.stringify({emails:r,channels:n,message:o})})},this.sendEmailInvitesToTeamGracefully=function(t,n){return e.trackEvent("api","api_teams_invite_members",{team_id:t}),e.doFetch(e.getTeamRoute(t)+"/invite/email?graceful=true",{method:"post",body:JSON.stringify(n)})},this.sendEmailGuestInvitesToChannelsGracefully=function(t,n,o,i){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(e){return this.trackEvent("api","api_teams_invite_guests",{team_id:t,channel_ids:n}),[2,this.doFetch(this.getTeamRoute(t)+"/invite-guests/email?graceful=true",{method:"post",body:JSON.stringify({emails:o,channels:n,message:i})})]}))}))},this.importTeam=function(t,n,r){var o=new l;o.append("file",n,n.name),o.append("filesize",n.size),o.append("importFrom",r);var i={method:"post",body:o};return o.getBoundary&&(i.headers={"Content-Type":"multipart/form-data; boundary="+o.getBoundary()}),e.doFetch(e.getTeamRoute(t)+"/import",i)},this.getTeamIconUrl=function(t,n){var r={};return n&&(r._=n),e.getTeamRoute(t)+"/image"+i.buildQueryString(r)},this.setTeamIcon=function(t,n){e.trackEvent("api","api_team_set_team_icon");var r=new l;r.append("image",n);var o={method:"post",body:r};return r.getBoundary&&(o.headers={"Content-Type":"multipart/form-data; boundary="+r.getBoundary()}),e.doFetch(e.getTeamRoute(t)+"/image",o)},this.removeTeamIcon=function(t){return e.trackEvent("api","api_team_remove_team_icon"),e.doFetch(e.getTeamRoute(t)+"/image",{method:"delete"})},this.updateTeamMemberSchemeRoles=function(t,n,r,o){var i={scheme_user:r,scheme_admin:o};return e.doFetch(e.getTeamRoute(t)+"/members/"+n+"/schemeRoles",{method:"put",body:JSON.stringify(i)})},this.getAllChannels=function(t,n,r,o,a,s){void 0===t&&(t=0),void 0===n&&(n=_),void 0===r&&(r=""),void 0===o&&(o=!1),void 0===a&&(a=!1),void 0===s&&(s=!1);var u={page:t,per_page:n,not_associated_to_group:r,exclude_default_channels:o,include_total_count:a,include_deleted:s};return e.doFetch(""+e.getChannelsRoute()+i.buildQueryString(u),{method:"get"})},this.createChannel=function(t){return e.trackEvent("api","api_channels_create",{team_id:t.team_id}),e.doFetch(""+e.getChannelsRoute(),{method:"post",body:JSON.stringify(t)})},this.createDirectChannel=function(t){return e.trackEvent("api","api_channels_create_direct"),e.doFetch(e.getChannelsRoute()+"/direct",{method:"post",body:JSON.stringify(t)})},this.createGroupChannel=function(t){return e.trackEvent("api","api_channels_create_group"),e.doFetch(e.getChannelsRoute()+"/group",{method:"post",body:JSON.stringify(t)})},this.deleteChannel=function(t){return e.trackEvent("api","api_channels_delete",{channel_id:t}),e.doFetch(""+e.getChannelRoute(t),{method:"delete"})},this.unarchiveChannel=function(t){return e.trackEvent("api","api_channels_unarchive",{channel_id:t}),e.doFetch(e.getChannelRoute(t)+"/restore",{method:"post"})},this.updateChannel=function(t){return e.trackEvent("api","api_channels_update",{channel_id:t.id}),e.doFetch(""+e.getChannelRoute(t.id),{method:"put",body:JSON.stringify(t)})},this.convertChannelToPrivate=function(t){return e.trackEvent("api","api_channels_convert_to_private",{channel_id:t}),e.doFetch(e.getChannelRoute(t)+"/convert",{method:"post"})},this.updateChannelPrivacy=function(t,n){return e.trackEvent("api","api_channels_update_privacy",{channel_id:t,privacy:n}),e.doFetch(e.getChannelRoute(t)+"/privacy",{method:"put",body:JSON.stringify({privacy:n})})},this.patchChannel=function(t,n){return e.trackEvent("api","api_channels_patch",{channel_id:t}),e.doFetch(e.getChannelRoute(t)+"/patch",{method:"put",body:JSON.stringify(n)})},this.updateChannelNotifyProps=function(t){return e.trackEvent("api","api_users_update_channel_notifications",{channel_id:t.channel_id}),e.doFetch(e.getChannelMemberRoute(t.channel_id,t.user_id)+"/notify_props",{method:"put",body:JSON.stringify(t)})},this.updateChannelScheme=function(t,n){var o={scheme_id:n};return e.trackEvent("api","api_channels_update_scheme",r.__assign({channel_id:t},o)),e.doFetch(""+e.getChannelSchemeRoute(t),{method:"put",body:JSON.stringify(o)})},this.getChannel=function(t){return e.trackEvent("api","api_channel_get",{channel_id:t}),e.doFetch(""+e.getChannelRoute(t),{method:"get"})},this.getChannelByName=function(t,n,r){return void 0===r&&(r=!1),e.doFetch(e.getTeamRoute(t)+"/channels/name/"+n+"?include_deleted="+r,{method:"get"})},this.getChannelByNameAndTeamName=function(t,n,r){return void 0===r&&(r=!1),e.trackEvent("api","api_channel_get_by_name_and_teamName",{include_deleted:r}),e.doFetch(e.getTeamNameRoute(t)+"/channels/name/"+n+"?include_deleted="+r,{method:"get"})},this.getChannels=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=_),e.doFetch(e.getTeamRoute(t)+"/channels"+i.buildQueryString({page:n,per_page:r}),{method:"get"})},this.getArchivedChannels=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=_),e.doFetch(e.getTeamRoute(t)+"/channels/deleted"+i.buildQueryString({page:n,per_page:r}),{method:"get"})},this.getMyChannels=function(t,n){return void 0===n&&(n=!1),e.doFetch(e.getUserRoute("me")+"/teams/"+t+"/channels"+i.buildQueryString({include_deleted:n}),{method:"get"})},this.getMyChannelMember=function(t){return e.doFetch(""+e.getChannelMemberRoute(t,"me"),{method:"get"})},this.getMyChannelMembers=function(t){return e.doFetch(e.getUserRoute("me")+"/teams/"+t+"/channels/members",{method:"get"})},this.getChannelMembers=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=_),e.doFetch(""+e.getChannelMembersRoute(t)+i.buildQueryString({page:n,per_page:r}),{method:"get"})},this.getChannelTimezones=function(t){return e.doFetch(e.getChannelRoute(t)+"/timezones",{method:"get"})},this.getChannelMember=function(t,n){return e.doFetch(""+e.getChannelMemberRoute(t,n),{method:"get"})},this.getChannelMembersByIds=function(t,n){return e.doFetch(e.getChannelMembersRoute(t)+"/ids",{method:"post",body:JSON.stringify(n)})},this.addToChannel=function(t,n,r){void 0===r&&(r=""),e.trackEvent("api","api_channels_add_member",{channel_id:n});var o={user_id:t,channel_id:n,post_root_id:r};return e.doFetch(""+e.getChannelMembersRoute(n),{method:"post",body:JSON.stringify(o)})},this.removeFromChannel=function(t,n){return e.trackEvent("api","api_channels_remove_member",{channel_id:n}),e.doFetch(""+e.getChannelMemberRoute(n,t),{method:"delete"})},this.updateChannelMemberRoles=function(t,n,r){return e.doFetch(e.getChannelMemberRoute(t,n)+"/roles",{method:"put",body:JSON.stringify({roles:r})})},this.getChannelStats=function(t){return e.doFetch(e.getChannelRoute(t)+"/stats",{method:"get"})},this.getChannelModerations=function(t){return e.doFetch(e.getChannelRoute(t)+"/moderations",{method:"get"})},this.patchChannelModerations=function(t,n){return e.doFetch(e.getChannelRoute(t)+"/moderations/patch",{method:"put",body:JSON.stringify(n)})},this.getChannelMemberCountsByGroup=function(t,n){return e.doFetch(e.getChannelRoute(t)+"/member_counts_by_group?include_timezones="+n,{method:"get"})},this.viewMyChannel=function(t,n){var r={channel_id:t,prev_channel_id:n};return e.doFetch(e.getChannelsRoute()+"/members/me/view",{method:"post",body:JSON.stringify(r)})},this.autocompleteChannels=function(t,n){return e.doFetch(e.getTeamRoute(t)+"/channels/autocomplete"+i.buildQueryString({name:n}),{method:"get"})},this.autocompleteChannelsForSearch=function(t,n){return e.doFetch(e.getTeamRoute(t)+"/channels/search_autocomplete"+i.buildQueryString({name:n}),{method:"get"})},this.searchChannels=function(t,n){return e.doFetch(e.getTeamRoute(t)+"/channels/search",{method:"post",body:JSON.stringify({term:n})})},this.searchArchivedChannels=function(t,n){return e.doFetch(e.getTeamRoute(t)+"/channels/search_archived",{method:"post",body:JSON.stringify({term:n})})},this.searchAllChannels=function(t,n){void 0===n&&(n={});var o=r.__assign({term:t},n),i=Boolean(n.include_deleted);return e.doFetch(e.getChannelsRoute()+"/search?include_deleted="+i,{method:"post",body:JSON.stringify(o)})},this.searchGroupChannels=function(t){return e.doFetch(e.getChannelsRoute()+"/group/search",{method:"post",body:JSON.stringify({term:t})})},this.updateChannelMemberSchemeRoles=function(t,n,r,o){var i={scheme_user:r,scheme_admin:o};return e.doFetch(e.getChannelRoute(t)+"/members/"+n+"/schemeRoles",{method:"put",body:JSON.stringify(i)})},this.getChannelCategories=function(t,n){return e.doFetch(""+e.getChannelCategoriesRoute(t,n),{method:"get"})},this.createChannelCategory=function(t,n,r){return e.doFetch(""+e.getChannelCategoriesRoute(t,n),{method:"post",body:JSON.stringify(r)})},this.updateChannelCategories=function(t,n,r){return e.doFetch(""+e.getChannelCategoriesRoute(t,n),{method:"put",body:JSON.stringify(r)})},this.getChannelCategoryOrder=function(t,n){return e.doFetch(e.getChannelCategoriesRoute(t,n)+"/order",{method:"get"})},this.updateChannelCategoryOrder=function(t,n,r){return e.doFetch(e.getChannelCategoriesRoute(t,n)+"/order",{method:"put",body:JSON.stringify(r)})},this.getChannelCategory=function(t,n,r){return e.doFetch(e.getChannelCategoriesRoute(t,n)+"/"+r,{method:"get"})},this.updateChannelCategory=function(t,n,r){return e.doFetch(e.getChannelCategoriesRoute(t,n)+"/"+r.id,{method:"put",body:JSON.stringify(r)})},this.deleteChannelCategory=function(t,n,r){return e.doFetch(e.getChannelCategoriesRoute(t,n)+"/"+r,{method:"delete"})},this.createPost=function(t){return r.__awaiter(e,void 0,void 0,(function(){var e,n;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,this.doFetch(""+this.getPostsRoute(),{method:"post",body:JSON.stringify(t)})];case 1:return e=r.sent(),n={channel_id:e.channel_id,post_id:e.id,user_actual_id:e.user_id,root_id:e.root_id},this.trackEvent("api","api_posts_create",n),null!=e.root_id&&""!==e.root_id&&this.trackEvent("api","api_posts_replied",n),[2,e]}}))}))},this.updatePost=function(t){return e.trackEvent("api","api_posts_update",{channel_id:t.channel_id,post_id:t.id}),e.doFetch(""+e.getPostRoute(t.id),{method:"put",body:JSON.stringify(t)})},this.getPost=function(t){return e.doFetch(""+e.getPostRoute(t),{method:"get"})},this.patchPost=function(t){return e.trackEvent("api","api_posts_patch",{channel_id:t.channel_id,post_id:t.id}),e.doFetch(e.getPostRoute(t.id)+"/patch",{method:"put",body:JSON.stringify(t)})},this.deletePost=function(t){return e.trackEvent("api","api_posts_delete"),e.doFetch(""+e.getPostRoute(t),{method:"delete"})},this.getPostThread=function(t,n,r,o){return void 0===n&&(n=!0),void 0===r&&(r=!1),void 0===o&&(o=!1),e.doFetch(e.getPostRoute(t)+"/thread"+i.buildQueryString({skipFetchThreads:!n,collapsedThreads:r,collapsedThreadsExtended:o}),{method:"get"})},this.getPosts=function(t,n,r,o,a,s){return void 0===n&&(n=0),void 0===r&&(r=_),void 0===o&&(o=!0),void 0===a&&(a=!1),void 0===s&&(s=!1),e.doFetch(e.getChannelRoute(t)+"/posts"+i.buildQueryString({page:n,per_page:r,skipFetchThreads:!o,collapsedThreads:a,collapsedThreadsExtended:s}),{method:"get"})},this.getPostsUnread=function(n,r,o,a,s,u,l){return void 0===o&&(o=t.DEFAULT_LIMIT_AFTER),void 0===a&&(a=t.DEFAULT_LIMIT_BEFORE),void 0===s&&(s=!0),void 0===u&&(u=!1),void 0===l&&(l=!1),e.doFetch(e.getUserRoute(r)+"/channels/"+n+"/posts/unread"+i.buildQueryString({limit_after:o,limit_before:a,skipFetchThreads:!s,collapsedThreads:u,collapsedThreadsExtended:l}),{method:"get"})},this.getPostsSince=function(t,n,r,o,a){return void 0===r&&(r=!0),void 0===o&&(o=!1),void 0===a&&(a=!1),e.doFetch(e.getChannelRoute(t)+"/posts"+i.buildQueryString({since:n,skipFetchThreads:!r,collapsedThreads:o,collapsedThreadsExtended:a}),{method:"get"})},this.getPostsBefore=function(t,n,r,o,a,s,u){return void 0===r&&(r=0),void 0===o&&(o=_),void 0===a&&(a=!0),void 0===s&&(s=!1),void 0===u&&(u=!1),e.trackEvent("api","api_posts_get_before",{channel_id:t}),e.doFetch(e.getChannelRoute(t)+"/posts"+i.buildQueryString({before:n,page:r,per_page:o,skipFetchThreads:!a,collapsedThreads:s,collapsedThreadsExtended:u}),{method:"get"})},this.getPostsAfter=function(t,n,r,o,a,s,u){return void 0===r&&(r=0),void 0===o&&(o=_),void 0===a&&(a=!0),void 0===s&&(s=!1),void 0===u&&(u=!1),e.trackEvent("api","api_posts_get_after",{channel_id:t}),e.doFetch(e.getChannelRoute(t)+"/posts"+i.buildQueryString({after:n,page:r,per_page:o,skipFetchThreads:!a,collapsedThreads:s,collapsedThreadsExtended:u}),{method:"get"})},this.getUserThreads=function(t,n,r){void 0===t&&(t="me");var o=r.before,a=void 0===o?"":o,s=r.after,u=void 0===s?"":s,l=r.pageSize,c=void 0===l?_:l,E=r.extended,d=void 0!==E&&E,f=r.deleted,h=void 0!==f&&f,p=r.unread,S=void 0!==p&&p,m=r.since,g=void 0===m?0:m;return e.doFetch(""+e.getUserThreadsRoute(t,n)+i.buildQueryString({before:a,after:u,pageSize:c,extended:d,deleted:h,unread:S,since:g}),{method:"get"})},this.getUserThread=function(t,n,r,o){void 0===o&&(o=!1);var a=""+e.getUserThreadRoute(t,n,r);return e.doFetch(""+a+i.buildQueryString({extended:o}),{method:"get"})},this.getThreadMentionCountsByChannel=function(t,n){var r=e.getUserThreadsRoute(t,n)+"/mention_counts";return e.doFetch(r,{method:"get"})},this.updateThreadsReadForUser=function(t,n){var r=e.getUserThreadsRoute(t,n)+"/read";return e.doFetch(r,{method:"put"})},this.updateThreadReadForUser=function(t,n,r,o){var i=e.getUserThreadRoute(t,n,r)+"/read/"+o;return e.doFetch(i,{method:"put"})},this.updateThreadFollowForUser=function(t,n,r,o){var i=e.getUserThreadRoute(t,n,r)+"/following";return e.doFetch(i,{method:o?"put":"delete"})},this.getFileInfosForPost=function(t){return e.doFetch(e.getPostRoute(t)+"/files/info",{method:"get"})},this.getFlaggedPosts=function(t,n,r,o,a){return void 0===n&&(n=""),void 0===r&&(r=""),void 0===o&&(o=0),void 0===a&&(a=_),e.trackEvent("api","api_posts_get_flagged",{team_id:r}),e.doFetch(e.getUserRoute(t)+"/posts/flagged"+i.buildQueryString({channel_id:n,team_id:r,page:o,per_page:a}),{method:"get"})},this.getPinnedPosts=function(t){return e.trackEvent("api","api_posts_get_pinned",{channel_id:t}),e.doFetch(e.getChannelRoute(t)+"/pinned",{method:"get"})},this.markPostAsUnread=function(t,n){return e.trackEvent("api","api_post_set_unread_post"),e.doFetch(e.getUserRoute(t)+"/posts/"+n+"/set_unread",{method:"post"})},this.pinPost=function(t){return e.trackEvent("api","api_posts_pin"),e.doFetch(e.getPostRoute(t)+"/pin",{method:"post"})},this.unpinPost=function(t){return e.trackEvent("api","api_posts_unpin"),e.doFetch(e.getPostRoute(t)+"/unpin",{method:"post"})},this.addReaction=function(t,n,r){return e.trackEvent("api","api_reactions_save",{post_id:n}),e.doFetch(""+e.getReactionsRoute(),{method:"post",body:JSON.stringify({user_id:t,post_id:n,emoji_name:r})})},this.removeReaction=function(t,n,r){return e.trackEvent("api","api_reactions_delete",{post_id:n}),e.doFetch(e.getUserRoute(t)+"/posts/"+n+"/reactions/"+r,{method:"delete"})},this.getReactionsForPost=function(t){return e.doFetch(e.getPostRoute(t)+"/reactions",{method:"get"})},this.searchPostsWithParams=function(t,n){return e.trackEvent("api","api_posts_search",{team_id:t}),e.doFetch(e.getTeamRoute(t)+"/posts/search",{method:"post",body:JSON.stringify(n)})},this.searchPosts=function(t,n,r){return e.searchPostsWithParams(t,{terms:n,is_or_search:r})},this.getOpenGraphMetadata=function(t){return e.doFetch(e.getBaseRoute()+"/opengraph",{method:"post",body:JSON.stringify({url:t})})},this.doPostAction=function(t,n,r){return void 0===r&&(r=""),e.doPostActionWithCookie(t,n,"",r)},this.doPostActionWithCookie=function(t,n,r,o){void 0===o&&(o=""),o?e.trackEvent("api","api_interactive_messages_menu_selected"):e.trackEvent("api","api_interactive_messages_button_clicked");var i={selected_option:o};return""!==r&&(i.cookie=r),e.doFetch(e.getPostRoute(t)+"/actions/"+encodeURIComponent(n),{method:"post",body:JSON.stringify(i)})},this.uploadFile=function(t,n){e.trackEvent("api","api_files_upload");var r={method:"post",body:t};return n&&(r.headers={"Content-Type":"multipart/form-data; boundary="+n}),e.doFetch(""+e.getFilesRoute(),r)},this.getFilePublicLink=function(t){return e.doFetch(e.getFileRoute(t)+"/link",{method:"get"})},this.savePreferences=function(t,n){return e.doFetch(""+e.getPreferencesRoute(t),{method:"put",body:JSON.stringify(n)})},this.getMyPreferences=function(){return e.doFetch(""+e.getPreferencesRoute("me"),{method:"get"})},this.deletePreferences=function(t,n){return e.doFetch(e.getPreferencesRoute(t)+"/delete",{method:"post",body:JSON.stringify(n)})},this.ping=function(){return e.doFetch(e.getBaseRoute()+"/system/ping?time="+Date.now(),{method:"get"})},this.upgradeToEnterprise=function(){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.doFetch(this.getBaseRoute()+"/upgrade_to_enterprise",{method:"post"})]}))}))},this.upgradeToEnterpriseStatus=function(){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.doFetch(this.getBaseRoute()+"/upgrade_to_enterprise/status",{method:"get"})]}))}))},this.restartServer=function(){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.doFetch(this.getBaseRoute()+"/restart",{method:"post"})]}))}))},this.logClientError=function(t,n){void 0===n&&(n="ERROR");var r=e.getBaseRoute()+"/logs";if(!e.enableLogging)throw new d(e.getUrl(),{message:"Logging disabled.",url:r});return e.doFetch(r,{method:"post",body:JSON.stringify({message:t,level:n})})},this.getClientConfigOld=function(){return e.doFetch(e.getBaseRoute()+"/config/client?format=old",{method:"get"})},this.getClientLicenseOld=function(){return e.doFetch(e.getBaseRoute()+"/license/client?format=old",{method:"get"})},this.getWarnMetricsStatus=function(){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.doFetch(this.getBaseRoute()+"/warn_metrics/status",{method:"get"})]}))}))},this.sendWarnMetricAck=function(t,n){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.doFetch(this.getBaseRoute()+"/warn_metrics/ack/"+encodeURI(t),{method:"post",body:JSON.stringify({forceAck:n})})]}))}))},this.getTranslations=function(t){return e.doFetch(t,{method:"get"})},this.getWebSocketUrl=function(){return e.getBaseRoute()+"/websocket"},this.createIncomingWebhook=function(t){return e.trackEvent("api","api_integrations_created",{team_id:t.team_id}),e.doFetch(""+e.getIncomingHooksRoute(),{method:"post",body:JSON.stringify(t)})},this.getIncomingWebhook=function(t){return e.doFetch(""+e.getIncomingHookRoute(t),{method:"get"})},this.getIncomingWebhooks=function(t,n,r){void 0===t&&(t=""),void 0===n&&(n=0),void 0===r&&(r=_);var o={page:n,per_page:r};return t&&(o.team_id=t),e.doFetch(""+e.getIncomingHooksRoute()+i.buildQueryString(o),{method:"get"})},this.removeIncomingWebhook=function(t){return e.trackEvent("api","api_integrations_deleted"),e.doFetch(""+e.getIncomingHookRoute(t),{method:"delete"})},this.updateIncomingWebhook=function(t){return e.trackEvent("api","api_integrations_updated",{team_id:t.team_id}),e.doFetch(""+e.getIncomingHookRoute(t.id),{method:"put",body:JSON.stringify(t)})},this.createOutgoingWebhook=function(t){return e.trackEvent("api","api_integrations_created",{team_id:t.team_id}),e.doFetch(""+e.getOutgoingHooksRoute(),{method:"post",body:JSON.stringify(t)})},this.getOutgoingWebhook=function(t){return e.doFetch(""+e.getOutgoingHookRoute(t),{method:"get"})},this.getOutgoingWebhooks=function(t,n,r,o){void 0===t&&(t=""),void 0===n&&(n=""),void 0===r&&(r=0),void 0===o&&(o=_);var a={page:r,per_page:o};return t&&(a.channel_id=t),n&&(a.team_id=n),e.doFetch(""+e.getOutgoingHooksRoute()+i.buildQueryString(a),{method:"get"})},this.removeOutgoingWebhook=function(t){return e.trackEvent("api","api_integrations_deleted"),e.doFetch(""+e.getOutgoingHookRoute(t),{method:"delete"})},this.updateOutgoingWebhook=function(t){return e.trackEvent("api","api_integrations_updated",{team_id:t.team_id}),e.doFetch(""+e.getOutgoingHookRoute(t.id),{method:"put",body:JSON.stringify(t)})},this.regenOutgoingHookToken=function(t){return e.doFetch(e.getOutgoingHookRoute(t)+"/regen_token",{method:"post"})},this.getCommandsList=function(t){return e.doFetch(e.getCommandsRoute()+"?team_id="+t,{method:"get"})},this.getCommandAutocompleteSuggestionsList=function(t,n,o){return e.doFetch(e.getTeamRoute(n)+"/commands/autocomplete_suggestions"+i.buildQueryString(r.__assign(r.__assign({},o),{user_input:t})),{method:"get"})},this.getAutocompleteCommandsList=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=_),e.doFetch(e.getTeamRoute(t)+"/commands/autocomplete"+i.buildQueryString({page:n,per_page:r}),{method:"get"})},this.getCustomTeamCommands=function(t){return e.doFetch(e.getCommandsRoute()+"?team_id="+t+"&custom_only=true",{method:"get"})},this.executeCommand=function(t,n){return e.trackEvent("api","api_integrations_used"),e.doFetch(e.getCommandsRoute()+"/execute",{method:"post",body:JSON.stringify(r.__assign({command:t},n))})},this.addCommand=function(t){return e.trackEvent("api","api_integrations_created"),e.doFetch(""+e.getCommandsRoute(),{method:"post",body:JSON.stringify(t)})},this.editCommand=function(t){return e.trackEvent("api","api_integrations_created"),e.doFetch(e.getCommandsRoute()+"/"+t.id,{method:"put",body:JSON.stringify(t)})},this.regenCommandToken=function(t){return e.doFetch(e.getCommandsRoute()+"/"+t+"/regen_token",{method:"put"})},this.deleteCommand=function(t){return e.trackEvent("api","api_integrations_deleted"),e.doFetch(e.getCommandsRoute()+"/"+t,{method:"delete"})},this.createOAuthApp=function(t){return e.trackEvent("api","api_apps_register"),e.doFetch(""+e.getOAuthAppsRoute(),{method:"post",body:JSON.stringify(t)})},this.editOAuthApp=function(t){return e.doFetch(e.getOAuthAppsRoute()+"/"+t.id,{method:"put",body:JSON.stringify(t)})},this.getOAuthApps=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=_),e.doFetch(""+e.getOAuthAppsRoute()+i.buildQueryString({page:t,per_page:n}),{method:"get"})},this.getOAuthApp=function(t){return e.doFetch(""+e.getOAuthAppRoute(t),{method:"get"})},this.getOAuthAppInfo=function(t){return e.doFetch(e.getOAuthAppRoute(t)+"/info",{method:"get"})},this.deleteOAuthApp=function(t){return e.trackEvent("api","api_apps_delete"),e.doFetch(""+e.getOAuthAppRoute(t),{method:"delete"})},this.regenOAuthAppSecret=function(t){return e.doFetch(e.getOAuthAppRoute(t)+"/regen_secret",{method:"post"})},this.submitInteractiveDialog=function(t){return e.trackEvent("api","api_interactive_messages_dialog_submitted"),e.doFetch(e.getBaseRoute()+"/actions/dialogs/submit",{method:"post",body:JSON.stringify(t)})},this.createCustomEmoji=function(t,n){e.trackEvent("api","api_emoji_custom_add");var r=new l;r.append("image",n),r.append("emoji",JSON.stringify(t));var o={method:"post",body:r};return r.getBoundary&&(o.headers={"Content-Type":"multipart/form-data; boundary="+r.getBoundary()}),e.doFetch(""+e.getEmojisRoute(),o)},this.getCustomEmoji=function(t){return e.doFetch(e.getEmojisRoute()+"/"+t,{method:"get"})},this.getCustomEmojiByName=function(t){return e.doFetch(e.getEmojisRoute()+"/name/"+t,{method:"get"})},this.getCustomEmojis=function(t,n,r){return void 0===t&&(t=0),void 0===n&&(n=_),void 0===r&&(r=""),e.doFetch(""+e.getEmojisRoute()+i.buildQueryString({page:t,per_page:n,sort:r}),{method:"get"})},this.deleteCustomEmoji=function(t){return e.trackEvent("api","api_emoji_custom_delete"),e.doFetch(""+e.getEmojiRoute(t),{method:"delete"})},this.getSystemEmojiImageUrl=function(t){return e.url+"/static/emoji/"+t+".png"},this.getCustomEmojiImageUrl=function(t){return e.getEmojiRoute(t)+"/image"},this.searchCustomEmoji=function(t,n){return void 0===n&&(n={}),e.doFetch(e.getEmojisRoute()+"/search",{method:"post",body:JSON.stringify(r.__assign({term:t},n))})},this.autocompleteCustomEmoji=function(t){return e.doFetch(e.getEmojisRoute()+"/autocomplete"+i.buildQueryString({name:t}),{method:"get"})},this.getTimezones=function(){return e.doFetch(""+e.getTimezonesRoute(),{method:"get"})},this.getDataRetentionPolicy=function(){return e.doFetch(e.getDataRetentionRoute()+"/policy",{method:"get"})},this.getJob=function(t){return e.doFetch(e.getJobsRoute()+"/"+t,{method:"get"})},this.getJobs=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=_),e.doFetch(""+e.getJobsRoute()+i.buildQueryString({page:t,per_page:n}),{method:"get"})},this.getJobsByType=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=_),e.doFetch(e.getJobsRoute()+"/type/"+t+i.buildQueryString({page:n,per_page:r}),{method:"get"})},this.createJob=function(t){return e.doFetch(""+e.getJobsRoute(),{method:"post",body:JSON.stringify(t)})},this.cancelJob=function(t){return e.doFetch(e.getJobsRoute()+"/"+t+"/cancel",{method:"post"})},this.getLogs=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=1e4),e.doFetch(e.getBaseRoute()+"/logs"+i.buildQueryString({page:t,logs_per_page:n}),{method:"get"})},this.getAudits=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=_),e.doFetch(e.getBaseRoute()+"/audits"+i.buildQueryString({page:t,per_page:n}),{method:"get"})},this.getConfig=function(){return e.doFetch(e.getBaseRoute()+"/config",{method:"get"})},this.updateConfig=function(t){return e.doFetch(e.getBaseRoute()+"/config",{method:"put",body:JSON.stringify(t)})},this.reloadConfig=function(){return e.doFetch(e.getBaseRoute()+"/config/reload",{method:"post"})},this.getEnvironmentConfig=function(){return e.doFetch(e.getBaseRoute()+"/config/environment",{method:"get"})},this.testEmail=function(t){return e.doFetch(e.getBaseRoute()+"/email/test",{method:"post",body:JSON.stringify(t)})},this.testSiteURL=function(t){return e.doFetch(e.getBaseRoute()+"/site_url/test",{method:"post",body:JSON.stringify({site_url:t})})},this.testS3Connection=function(t){return e.doFetch(e.getBaseRoute()+"/file/s3_test",{method:"post",body:JSON.stringify(t)})},this.invalidateCaches=function(){return e.doFetch(e.getBaseRoute()+"/caches/invalidate",{method:"post"})},this.recycleDatabase=function(){return e.doFetch(e.getBaseRoute()+"/database/recycle",{method:"post"})},this.createComplianceReport=function(t){return e.doFetch(e.getBaseRoute()+"/compliance/reports",{method:"post",body:JSON.stringify(t)})},this.getComplianceReport=function(t){return e.doFetch(e.getBaseRoute()+"/compliance/reports/"+t,{method:"get"})},this.getComplianceReports=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=_),e.doFetch(e.getBaseRoute()+"/compliance/reports"+i.buildQueryString({page:t,per_page:n}),{method:"get"})},this.uploadBrandImage=function(t){var n=new l;n.append("image",t);var r={method:"post",body:n};return n.getBoundary&&(r.headers={"Content-Type":"multipart/form-data; boundary="+n.getBoundary()}),e.doFetch(e.getBrandRoute()+"/image",r)},this.deleteBrandImage=function(){return e.doFetch(e.getBrandRoute()+"/image",{method:"delete"})},this.getClusterStatus=function(){return e.doFetch(e.getBaseRoute()+"/cluster/status",{method:"get"})},this.testLdap=function(){return e.doFetch(e.getBaseRoute()+"/ldap/test",{method:"post"})},this.syncLdap=function(){return e.doFetch(e.getBaseRoute()+"/ldap/sync",{method:"post"})},this.getLdapGroups=function(t,n,o){void 0===t&&(t=0),void 0===n&&(n=_),void 0===o&&(o={});var a=r.__assign({page:t,per_page:n},o);return e.doFetch(e.getBaseRoute()+"/ldap/groups"+i.buildQueryString(a),{method:"get"})},this.linkLdapGroup=function(t){return e.doFetch(e.getBaseRoute()+"/ldap/groups/"+encodeURI(t)+"/link",{method:"post"})},this.unlinkLdapGroup=function(t){return e.doFetch(e.getBaseRoute()+"/ldap/groups/"+encodeURI(t)+"/link",{method:"delete"})},this.getSamlCertificateStatus=function(){return e.doFetch(e.getBaseRoute()+"/saml/certificate/status",{method:"get"})},this.uploadPublicSamlCertificate=function(t){var n=new l;return n.append("certificate",t),e.doFetch(e.getBaseRoute()+"/saml/certificate/public",{method:"post",body:n})},this.uploadPrivateSamlCertificate=function(t){var n=new l;return n.append("certificate",t),e.doFetch(e.getBaseRoute()+"/saml/certificate/private",{method:"post",body:n})},this.uploadPublicLdapCertificate=function(t){var n=new l;return n.append("certificate",t),e.doFetch(e.getBaseRoute()+"/ldap/certificate/public",{method:"post",body:n})},this.uploadPrivateLdapCertificate=function(t){var n=new l;return n.append("certificate",t),e.doFetch(e.getBaseRoute()+"/ldap/certificate/private",{method:"post",body:n})},this.uploadIdpSamlCertificate=function(t){var n=new l;return n.append("certificate",t),e.doFetch(e.getBaseRoute()+"/saml/certificate/idp",{method:"post",body:n})},this.deletePublicSamlCertificate=function(){return e.doFetch(e.getBaseRoute()+"/saml/certificate/public",{method:"delete"})},this.deletePrivateSamlCertificate=function(){return e.doFetch(e.getBaseRoute()+"/saml/certificate/private",{method:"delete"})},this.deletePublicLdapCertificate=function(){return e.doFetch(e.getBaseRoute()+"/ldap/certificate/public",{method:"delete"})},this.deletePrivateLdapCertificate=function(){return e.doFetch(e.getBaseRoute()+"/ldap/certificate/private",{method:"delete"})},this.deleteIdpSamlCertificate=function(){return e.doFetch(e.getBaseRoute()+"/saml/certificate/idp",{method:"delete"})},this.testElasticsearch=function(t){return e.doFetch(e.getBaseRoute()+"/elasticsearch/test",{method:"post",body:JSON.stringify(t)})},this.purgeElasticsearchIndexes=function(){return e.doFetch(e.getBaseRoute()+"/elasticsearch/purge_indexes",{method:"post"})},this.purgeBleveIndexes=function(){return e.doFetch(e.getBaseRoute()+"/bleve/purge_indexes",{method:"post"})},this.uploadLicense=function(t){e.trackEvent("api","api_license_upload");var n=new l;n.append("license",t);var r={method:"post",body:n};return n.getBoundary&&(r.headers={"Content-Type":"multipart/form-data; boundary="+n.getBoundary()}),e.doFetch(e.getBaseRoute()+"/license",r)},this.removeLicense=function(){return e.doFetch(e.getBaseRoute()+"/license",{method:"delete"})},this.getAnalytics=function(t,n){return void 0===t&&(t="standard"),void 0===n&&(n=""),e.doFetch(e.getBaseRoute()+"/analytics/old"+i.buildQueryString({name:t,team_id:n}),{method:"get"})},this.getRole=function(t){return e.doFetch(e.getRolesRoute()+"/"+t,{method:"get"})},this.getRoleByName=function(t){return e.doFetch(e.getRolesRoute()+"/name/"+t,{method:"get"})},this.getRolesByNames=function(t){return e.doFetch(e.getRolesRoute()+"/names",{method:"post",body:JSON.stringify(t)})},this.patchRole=function(t,n){return e.doFetch(e.getRolesRoute()+"/"+t+"/patch",{method:"put",body:JSON.stringify(n)})},this.getSchemes=function(t,n,r){return void 0===t&&(t=""),void 0===n&&(n=0),void 0===r&&(r=_),e.doFetch(""+e.getSchemesRoute()+i.buildQueryString({scope:t,page:n,per_page:r}),{method:"get"})},this.createScheme=function(t){return e.trackEvent("api","api_schemes_create"),e.doFetch(""+e.getSchemesRoute(),{method:"post",body:JSON.stringify(t)})},this.getScheme=function(t){return e.doFetch(e.getSchemesRoute()+"/"+t,{method:"get"})},this.deleteScheme=function(t){return e.trackEvent("api","api_schemes_delete"),e.doFetch(e.getSchemesRoute()+"/"+t,{method:"delete"})},this.patchScheme=function(t,n){return e.trackEvent("api","api_schemes_patch",{scheme_id:t}),e.doFetch(e.getSchemesRoute()+"/"+t+"/patch",{method:"put",body:JSON.stringify(n)})},this.getSchemeTeams=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=_),e.doFetch(e.getSchemesRoute()+"/"+t+"/teams"+i.buildQueryString({page:n,per_page:r}),{method:"get"})},this.getSchemeChannels=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=_),e.doFetch(e.getSchemesRoute()+"/"+t+"/channels"+i.buildQueryString({page:n,per_page:r}),{method:"get"})},this.uploadPlugin=function(t,n){return void 0===n&&(n=!1),r.__awaiter(e,void 0,void 0,(function(){var e,o;return r.__generator(this,(function(r){return this.trackEvent("api","api_plugin_upload"),e=new l,n&&e.append("force","true"),e.append("plugin",t),o={method:"post",body:e},e.getBoundary&&(o.headers={"Content-Type":"multipart/form-data; boundary="+e.getBoundary()}),[2,this.doFetch(this.getPluginsRoute(),o)]}))}))},this.installPluginFromUrl=function(t,n){void 0===n&&(n=!1),e.trackEvent("api","api_install_plugin");var r={plugin_download_url:t,force:n};return e.doFetch(e.getPluginsRoute()+"/install_from_url"+i.buildQueryString(r),{method:"post"})},this.getPlugins=function(){return e.doFetch(e.getPluginsRoute(),{method:"get"})},this.getMarketplacePlugins=function(t,n){return void 0===n&&(n=!1),e.doFetch(""+e.getPluginsMarketplaceRoute()+i.buildQueryString({filter:t||"",local_only:n}),{method:"get"})},this.installMarketplacePlugin=function(t,n){return e.trackEvent("api","api_install_marketplace_plugin"),e.doFetch(""+e.getPluginsMarketplaceRoute(),{method:"post",body:JSON.stringify({id:t,version:n})})},this.getPluginStatuses=function(){return e.doFetch(e.getPluginsRoute()+"/statuses",{method:"get"})},this.removePlugin=function(t){return e.doFetch(e.getPluginRoute(t),{method:"delete"})},this.getWebappPlugins=function(){return e.doFetch(e.getPluginsRoute()+"/webapp",{method:"get"})},this.enablePlugin=function(t){return e.doFetch(e.getPluginRoute(t)+"/enable",{method:"post"})},this.disablePlugin=function(t){return e.doFetch(e.getPluginRoute(t)+"/disable",{method:"post"})},this.linkGroupSyncable=function(t,n,r,o){return e.doFetch(e.getGroupRoute(t)+"/"+r+"s/"+n+"/link",{method:"post",body:JSON.stringify(o)})},this.unlinkGroupSyncable=function(t,n,r){return e.doFetch(e.getGroupRoute(t)+"/"+r+"s/"+n+"/link",{method:"delete"})},this.getGroupSyncables=function(t,n){return e.doFetch(e.getGroupRoute(t)+"/"+n+"s",{method:"get"})},this.getGroup=function(t){return e.doFetch(e.getGroupRoute(t),{method:"get"})},this.getGroupStats=function(t){return e.doFetch(e.getGroupRoute(t)+"/stats",{method:"get"})},this.getGroups=function(t,n,r){return void 0===t&&(t=!1),void 0===n&&(n=0),void 0===r&&(r=_),e.doFetch(""+e.getGroupsRoute()+i.buildQueryString({filter_allow_reference:t,page:n,per_page:r}),{method:"get"})},this.getGroupsByUserId=function(t){return e.doFetch(e.getUsersRoute()+"/"+t+"/groups",{method:"get"})},this.getGroupsNotAssociatedToTeam=function(t,n,r,o){return void 0===n&&(n=""),void 0===r&&(r=0),void 0===o&&(o=_),e.trackEvent("api","api_groups_get_not_associated_to_team",{team_id:t}),e.doFetch(""+e.getGroupsRoute()+i.buildQueryString({not_associated_to_team:t,page:r,per_page:o,q:n,include_member_count:!0}),{method:"get"})},this.getGroupsNotAssociatedToChannel=function(t,n,r,o,a){void 0===n&&(n=""),void 0===r&&(r=0),void 0===o&&(o=_),void 0===a&&(a=!1),e.trackEvent("api","api_groups_get_not_associated_to_channel",{channel_id:t});var s={not_associated_to_channel:t,page:r,per_page:o,q:n,include_member_count:!0,filter_parent_team_permitted:a};return e.doFetch(""+e.getGroupsRoute()+i.buildQueryString(s),{method:"get"})},this.getGroupsAssociatedToTeam=function(t,n,r,o,a){return void 0===n&&(n=""),void 0===r&&(r=0),void 0===o&&(o=_),void 0===a&&(a=!1),e.trackEvent("api","api_groups_get_associated_to_team",{team_id:t}),e.doFetch(e.getBaseRoute()+"/teams/"+t+"/groups"+i.buildQueryString({page:r,per_page:o,q:n,include_member_count:!0,filter_allow_reference:a}),{method:"get"})},this.getGroupsAssociatedToChannel=function(t,n,r,o,a){return void 0===n&&(n=""),void 0===r&&(r=0),void 0===o&&(o=_),void 0===a&&(a=!1),e.trackEvent("api","api_groups_get_associated_to_channel",{channel_id:t}),e.doFetch(e.getBaseRoute()+"/channels/"+t+"/groups"+i.buildQueryString({page:r,per_page:o,q:n,include_member_count:!0,filter_allow_reference:a}),{method:"get"})},this.getAllGroupsAssociatedToTeam=function(t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=!1),e.doFetch(e.getBaseRoute()+"/teams/"+t+"/groups"+i.buildQueryString({paginate:!1,filter_allow_reference:n,include_member_count:r}),{method:"get"})},this.getAllGroupsAssociatedToChannelsInTeam=function(t,n){return void 0===n&&(n=!1),e.doFetch(e.getBaseRoute()+"/teams/"+t+"/groups_by_channels"+i.buildQueryString({paginate:!1,filter_allow_reference:n}),{method:"get"})},this.getAllGroupsAssociatedToChannel=function(t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=!1),e.doFetch(e.getBaseRoute()+"/channels/"+t+"/groups"+i.buildQueryString({paginate:!1,filter_allow_reference:n,include_member_count:r}),{method:"get"})},this.patchGroupSyncable=function(t,n,r,o){return e.doFetch(e.getGroupRoute(t)+"/"+r+"s/"+n+"/patch",{method:"put",body:JSON.stringify(o)})},this.patchGroup=function(t,n){return e.doFetch(e.getGroupRoute(t)+"/patch",{method:"put",body:JSON.stringify(n)})},this.getRedirectLocation=function(t){if(!t.length)return Promise.resolve();var n=""+e.getRedirectLocationRoute()+i.buildQueryString({url:t});return e.doFetch(n,{method:"get"})},this.createBot=function(t){return e.doFetch(""+e.getBotsRoute(),{method:"post",body:JSON.stringify(t)})},this.patchBot=function(t,n){return e.doFetch(""+e.getBotRoute(t),{method:"put",body:JSON.stringify(n)})},this.getBot=function(t){return e.doFetch(""+e.getBotRoute(t),{method:"get"})},this.getBots=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=_),e.doFetch(""+e.getBotsRoute()+i.buildQueryString({page:t,per_page:n}),{method:"get"})},this.getBotsIncludeDeleted=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=_),e.doFetch(""+e.getBotsRoute()+i.buildQueryString({include_deleted:!0,page:t,per_page:n}),{method:"get"})},this.getBotsOrphaned=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=_),e.doFetch(""+e.getBotsRoute()+i.buildQueryString({only_orphaned:!0,page:t,per_page:n}),{method:"get"})},this.disableBot=function(t){return e.doFetch(e.getBotRoute(t)+"/disable",{method:"post"})},this.enableBot=function(t){return e.doFetch(e.getBotRoute(t)+"/enable",{method:"post"})},this.assignBot=function(t,n){return e.doFetch(e.getBotRoute(t)+"/assign/"+n,{method:"post"})},this.getCloudProducts=function(){return e.doFetch(e.getCloudRoute()+"/products",{method:"get"})},this.createPaymentMethod=function(){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.doFetch(this.getCloudRoute()+"/payment",{method:"post"})]}))}))},this.getCloudCustomer=function(){return e.doFetch(e.getCloudRoute()+"/customer",{method:"get"})},this.updateCloudCustomer=function(t){return e.doFetch(e.getCloudRoute()+"/customer",{method:"put",body:JSON.stringify(t)})},this.updateCloudCustomerAddress=function(t){return e.doFetch(e.getCloudRoute()+"/customer/address",{method:"put",body:JSON.stringify(t)})},this.confirmPaymentMethod=function(t){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,this.doFetch(this.getCloudRoute()+"/payment/confirm",{method:"post",body:JSON.stringify({stripe_setup_intent_id:t})})]}))}))},this.getSubscription=function(){return e.doFetch(e.getCloudRoute()+"/subscription",{method:"get"})},this.getSubscriptionStats=function(){return e.doFetch(e.getCloudRoute()+"/subscription/stats",{method:"get"})},this.getRenewalLink=function(){return e.doFetch(e.getBaseRoute()+"/license/renewal",{method:"get"})},this.getInvoices=function(){return e.doFetch(e.getCloudRoute()+"/subscription/invoices",{method:"get"})},this.getInvoicePdfUrl=function(t){return e.getCloudRoute()+"/subscription/invoices/"+t+"/pdf"},this.teamMembersMinusGroupMembers=function(t,n,r,o){var i="group_ids="+n.join(",")+"&page="+r+"&per_page="+o;return e.doFetch(e.getTeamRoute(t)+"/members_minus_group_members?"+i,{method:"get"})},this.channelMembersMinusGroupMembers=function(t,n,r,o){var i="group_ids="+n.join(",")+"&page="+r+"&per_page="+o;return e.doFetch(e.getChannelRoute(t)+"/members_minus_group_members?"+i,{method:"get"})},this.getSamlMetadataFromIdp=function(t){return e.doFetch(e.getBaseRoute()+"/saml/metadatafromidp",{method:"post",body:JSON.stringify({saml_metadata_url:t})})},this.setSamlIdpCertificateFromMetadata=function(t){var n={method:"post",body:t,headers:{"Content-Type":"application/x-pem-file"}};return e.doFetch(e.getBaseRoute()+"/saml/certificate/idp",n)},this.getInProductNotices=function(t,n,r){return e.doFetch(e.getNoticesRoute()+"/"+t+"?client="+n+"&clientVersion="+r,{method:"get"})},this.updateNoticesAsViewed=function(t){return e.trackEvent("ui","notice_seen_"+t[0]),e.doFetch(e.getNoticesRoute()+"/view",{method:"put",body:JSON.stringify(t)})},this.sendAdminUpgradeRequestEmail=function(){return e.doFetch(e.getCloudRoute()+"/subscription/limitreached/invite",{method:"post"})},this.doFetch=function(t,n){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(e){switch(e.label){case 0:return[4,this.doFetchWithResponse(t,n)];case 1:return[2,e.sent().data]}}))}))},this.doFetchWithResponse=function(n,o){return r.__awaiter(e,void 0,void 0,(function(){var e,i,a,s,l,_;return r.__generator(this,(function(E){switch(E.label){case 0:return[4,u.default(n,this.getOptions(o))];case 1:e=E.sent(),i=function(e){var t=new Map,n=new Map;return e.forEach((function(e,o){var i=o.replace(/\b[a-z]/g,(function(e){return e.toUpperCase()})),a=e;if(e&&e.match(/\n\S+:\s\S+/)){var s=e.split("\n");a=s.shift();var u=new Map(s.map((function(e){return e.split(/:\s/)})));n=new Map(r.__spread(n,u))}t.set(i,a)})),new Map(r.__spread(t,n))}(e.headers),E.label=2;case 2:return E.trys.push([2,4,,5]),[4,e.json()];case 3:return a=E.sent(),[3,5];case 4:throw E.sent(),new d(this.getUrl(),{message:"Received invalid response from the server.",intl:{id:"mobile.request.invalid_response",defaultMessage:"Received invalid response from the server."},url:n});case 5:if(i.has(t.HEADER_X_VERSION_ID)&&!i.get("Cache-Control")&&(s=i.get(t.HEADER_X_VERSION_ID))&&this.serverVersion!==s&&(this.serverVersion=s),i.has(c)&&(l=i.get(c))&&this.clusterId!==l&&(this.clusterId=l),e.ok)return[2,{response:e,headers:i,data:a}];throw _=a.message||"",this.logToConsole&&console.error(_),new d(this.getUrl(),{message:_,server_error_id:a.id,status_code:a.status_code,url:n})}}))}))}}return e.prototype.getUrl=function(){return this.url},e.prototype.getAbsoluteUrl=function(e){return"string"==typeof e&&e.startsWith("/")?this.getUrl()+e:e},e.prototype.setUrl=function(e){this.url=e},e.prototype.setUserAgent=function(e){this.userAgent=e},e.prototype.getToken=function(){return this.token},e.prototype.setToken=function(e){this.token=e},e.prototype.setCSRF=function(e){this.csrf=e},e.prototype.setAcceptLanguage=function(e){this.defaultHeaders["Accept-Language"]=e},e.prototype.setEnableLogging=function(e){this.enableLogging=e},e.prototype.setIncludeCookies=function(e){this.includeCookies=e},e.prototype.setUserId=function(e){this.userId=e},e.prototype.setUserRoles=function(e){this.userRoles=e},e.prototype.setDiagnosticId=function(e){this.diagnosticId=e},e.prototype.setTelemetryHandler=function(e){this.telemetryHandler=e},e.prototype.getServerVersion=function(){return this.serverVersion},e.prototype.getUrlVersion=function(){return this.urlVersion},e.prototype.getBaseRoute=function(){return""+this.url+this.urlVersion},e.prototype.getUsersRoute=function(){return this.getBaseRoute()+"/users"},e.prototype.getUserRoute=function(e){return this.getUsersRoute()+"/"+e},e.prototype.getTeamsRoute=function(){return this.getBaseRoute()+"/teams"},e.prototype.getTeamRoute=function(e){return this.getTeamsRoute()+"/"+e},e.prototype.getTeamSchemeRoute=function(e){return this.getTeamRoute(e)+"/scheme"},e.prototype.getTeamNameRoute=function(e){return this.getTeamsRoute()+"/name/"+e},e.prototype.getTeamMembersRoute=function(e){return this.getTeamRoute(e)+"/members"},e.prototype.getTeamMemberRoute=function(e,t){return this.getTeamMembersRoute(e)+"/"+t},e.prototype.getChannelsRoute=function(){return this.getBaseRoute()+"/channels"},e.prototype.getChannelRoute=function(e){return this.getChannelsRoute()+"/"+e},e.prototype.getChannelMembersRoute=function(e){return this.getChannelRoute(e)+"/members"},e.prototype.getChannelMemberRoute=function(e,t){return this.getChannelMembersRoute(e)+"/"+t},e.prototype.getChannelSchemeRoute=function(e){return this.getChannelRoute(e)+"/scheme"},e.prototype.getChannelCategoriesRoute=function(e,t){return this.getBaseRoute()+"/users/"+e+"/teams/"+t+"/channels/categories"},e.prototype.getPostsRoute=function(){return this.getBaseRoute()+"/posts"},e.prototype.getPostRoute=function(e){return this.getPostsRoute()+"/"+e},e.prototype.getReactionsRoute=function(){return this.getBaseRoute()+"/reactions"},e.prototype.getCommandsRoute=function(){return this.getBaseRoute()+"/commands"},e.prototype.getFilesRoute=function(){return this.getBaseRoute()+"/files"},e.prototype.getFileRoute=function(e){return this.getFilesRoute()+"/"+e},e.prototype.getPreferencesRoute=function(e){return this.getUserRoute(e)+"/preferences"},e.prototype.getIncomingHooksRoute=function(){return this.getBaseRoute()+"/hooks/incoming"},e.prototype.getIncomingHookRoute=function(e){return this.getBaseRoute()+"/hooks/incoming/"+e},e.prototype.getOutgoingHooksRoute=function(){return this.getBaseRoute()+"/hooks/outgoing"},e.prototype.getOutgoingHookRoute=function(e){return this.getBaseRoute()+"/hooks/outgoing/"+e},e.prototype.getOAuthRoute=function(){return this.url+"/oauth"},e.prototype.getOAuthAppsRoute=function(){return this.getBaseRoute()+"/oauth/apps"},e.prototype.getOAuthAppRoute=function(e){return this.getOAuthAppsRoute()+"/"+e},e.prototype.getEmojisRoute=function(){return this.getBaseRoute()+"/emoji"},e.prototype.getEmojiRoute=function(e){return this.getEmojisRoute()+"/"+e},e.prototype.getBrandRoute=function(){return this.getBaseRoute()+"/brand"},e.prototype.getBrandImageUrl=function(e){return this.getBrandRoute()+"/image?t="+e},e.prototype.getDataRetentionRoute=function(){return this.getBaseRoute()+"/data_retention"},e.prototype.getJobsRoute=function(){return this.getBaseRoute()+"/jobs"},e.prototype.getPluginsRoute=function(){return this.getBaseRoute()+"/plugins"},e.prototype.getPluginRoute=function(e){return this.getPluginsRoute()+"/"+e},e.prototype.getPluginsMarketplaceRoute=function(){return this.getPluginsRoute()+"/marketplace"},e.prototype.getRolesRoute=function(){return this.getBaseRoute()+"/roles"},e.prototype.getTimezonesRoute=function(){return this.getBaseRoute()+"/system/timezones"},e.prototype.getSchemesRoute=function(){return this.getBaseRoute()+"/schemes"},e.prototype.getRedirectLocationRoute=function(){return this.getBaseRoute()+"/redirect_location"},e.prototype.getBotsRoute=function(){return this.getBaseRoute()+"/bots"},e.prototype.getBotRoute=function(e){return this.getBotsRoute()+"/"+e},e.prototype.getGroupsRoute=function(){return this.getBaseRoute()+"/groups"},e.prototype.getGroupRoute=function(e){return this.getGroupsRoute()+"/"+e},e.prototype.getNoticesRoute=function(){return this.getBaseRoute()+"/system/notices"},e.prototype.getCloudRoute=function(){return this.getBaseRoute()+"/cloud"},e.prototype.getUserThreadsRoute=function(e,t){return this.getUserRoute(e)+"/teams/"+t+"/threads"},e.prototype.getUserThreadRoute=function(e,t,n){return this.getUserThreadsRoute(e,t)+"/"+n},e.prototype.getCSRFFromCookie=function(){if("undefined"!=typeof document&&void 0!==document.cookie)for(var e=document.cookie.split(";"),t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={},r={};t.default=function(e,t){if(void 0===t&&(t={headers:{}}),e=e||t.url||"","GET"===t.method||!t.method){var o=r[e],i=n[""+e+o];return o&&(t.headers["If-None-Match"]=o),fetch(e,t).then((function(t){if(304===t.status)return i.clone();if(200===t.status){var o=t.headers.get("Etag");o&&(n[""+e+o]=t.clone(),r[e]=o)}return t}))}return Reflect.apply(fetch,void 0,[e,t])}},7922:(e,t,n)=>{"use strict";t.je=void 0;var r=new(n(655).__importStar(n(7517)).default);t.je=r},5541:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={SORT_BY_NAME:"name"}},7326:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={AUDIO_TYPES:["mp3","wav","wma","m4a","flac","aac","ogg"],CODE_TYPES:["as","applescript","osascript","scpt","bash","sh","zsh","clj","boot","cl2","cljc","cljs","cljs.hl","cljscm","cljx","hic","coffee","_coffee","cake","cjsx","cson","iced","cpp","c","cc","h","c++","h++","hpp","cs","csharp","css","d","di","dart","delphi","dpr","dfm","pas","pascal","freepascal","lazarus","lpr","lfm","diff","django","jinja","dockerfile","docker","erl","f90","f95","fsharp","fs","gcode","nc","go","groovy","handlebars","hbs","html.hbs","html.handlebars","hs","hx","java","jsp","js","jsx","json","jl","kt","ktm","kts","less","lisp","lua","mk","mak","md","mkdown","mkd","matlab","m","mm","objc","obj-c","ml","perl","pl","php","php3","php4","php5","php6","ps","ps1","pp","py","gyp","r","ruby","rb","gemspec","podspec","thor","irb","rs","scala","scm","sld","scss","st","sql","swift","tex","vbnet","vb","bas","vbs","v","veo","xml","html","xhtml","rss","atom","xsl","plist","yaml"],IMAGE_TYPES:["jpg","gif","bmp","png","jpeg","tiff","tif"],PATCH_TYPES:["patch"],PDF_TYPES:["pdf"],PRESENTATION_TYPES:["ppt","pptx"],SPREADSHEET_TYPES:["xlsx","csv"],TEXT_TYPES:["txt","rtf"],VIDEO_TYPES:["mp4","avi","webm","mkv","wmv","mpg","mov","flv"],WORD_TYPES:["doc","docx"]}},1973:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={CONFIG_CHANGED:"config_changed",SERVER_VERSION_CHANGED:"server_version_changed",PAGE_SIZE_DEFAULT:60,PAGE_SIZE_MAXIMUM:200,LOGS_PAGE_SIZE_DEFAULT:1e4,AUDITS_CHUNK_SIZE:100,PROFILE_CHUNK_SIZE:100,CHANNELS_CHUNK_SIZE:50,TEAMS_CHUNK_SIZE:50,JOBS_CHUNK_SIZE:50,SEARCH_TIMEOUT_MILLISECONDS:100,STATUS_INTERVAL:6e4,AUTOCOMPLETE_LIMIT_DEFAULT:25,AUTOCOMPLETE_SPLIT_CHARACTERS:[".","-","_"],OUT_OF_OFFICE:"ooo",OFFLINE:"offline",AWAY:"away",ONLINE:"online",DND:"dnd",PERMISSIONS_ALL:"all",PERMISSIONS_CHANNEL_ADMIN:"channel_admin",PERMISSIONS_TEAM_ADMIN:"team_admin",PERMISSIONS_SYSTEM_ADMIN:"system_admin",TEAM_GUEST_ROLE:"team_guest",TEAM_USER_ROLE:"team_user",TEAM_ADMIN_ROLE:"team_admin",CHANNEL_GUEST_ROLE:"channel_guest",CHANNEL_USER_ROLE:"channel_user",CHANNEL_ADMIN_ROLE:"channel_admin",SYSTEM_GUEST_ROLE:"system_guest",SYSTEM_USER_ROLE:"system_user",SYSTEM_ADMIN_ROLE:"system_admin",SYSTEM_USER_MANAGER_ROLE:"system_user_manager",SYSTEM_READ_ONLY_ADMIN_ROLE:"system_read_only_admin",SYSTEM_MANAGER_ROLE:"system_manager",SYSTEM_USER_ACCESS_TOKEN_ROLE:"system_user_access_token",SYSTEM_POST_ALL_ROLE:"system_post_all",SYSTEM_POST_ALL_PUBLIC_ROLE:"system_post_all_public",ALLOW_EDIT_POST_ALWAYS:"always",ALLOW_EDIT_POST_NEVER:"never",ALLOW_EDIT_POST_TIME_LIMIT:"time_limit",DEFAULT_POST_EDIT_TIME_LIMIT:300,RESTRICT_DIRECT_MESSAGE_ANY:"any",RESTRICT_DIRECT_MESSAGE_TEAM:"team",SWITCH_TO_DEFAULT_CHANNEL:"switch_to_default_channel",DEFAULT_CHANNEL:"town-square",DM_CHANNEL:"D",OPEN_CHANNEL:"O",PRIVATE_CHANNEL:"P",GM_CHANNEL:"G",PUSH_NOTIFY_APPLE_REACT_NATIVE:"apple_rn",PUSH_NOTIFY_ANDROID_REACT_NATIVE:"android_rn",STORE_REHYDRATION_COMPLETE:"store_hydation_complete",OFFLINE_STORE_RESET:"offline_store_reset",OFFLINE_STORE_PURGE:"offline_store_purge",TEAMMATE_NAME_DISPLAY:{SHOW_USERNAME:"username",SHOW_NICKNAME_FULLNAME:"nickname_full_name",SHOW_FULLNAME:"full_name"},SPECIAL_MENTIONS:["all","channel","here"],MAX_USERS_IN_GM:8,MIN_USERS_IN_GM:3,MAX_GROUP_CHANNELS_FOR_PROFILES:50,DEFAULT_LOCALE:"en",DEFAULT_AUTOLINKED_URL_SCHEMES:["http","https","ftp","mailto","tel","mattermost"],DISABLED:"disabled",DEFAULT_ON:"default_on",DEFAULT_OFF:"default_off",ALWAYS_ON:"always_on",DEFAULT_GROUP:"board"}},2145:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.SYNCABLE_TYPE_TEAM="team",e.SYNCABLE_TYPE_CHANNEL="channel"}(n||(n={})),t.default=n},5250:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Threads=t.Roles=t.Users=t.Groups=t.Plugins=t.Emoji=t.Permissions=t.Stats=t.Teams=t.WebsocketEvents=t.RequestStatus=t.Files=t.Posts=t.Preferences=t.General=void 0;var r=n(655),o=r.__importDefault(n(1973));t.General=o.default;var i=r.__importDefault(n(6565));t.RequestStatus=i.default;var a=r.__importDefault(n(8487));t.WebsocketEvents=a.default;var s=r.__importDefault(n(9884));t.Preferences=s.default;var u=r.__importDefault(n(6735));t.Posts=u.default;var l=r.__importDefault(n(7326));t.Files=l.default;var c=r.__importDefault(n(4242));t.Teams=c.default;var _=r.__importDefault(n(8443));t.Stats=_.default;var E=r.__importDefault(n(3212));t.Permissions=E.default;var d=r.__importDefault(n(5541));t.Emoji=d.default;var f=r.__importDefault(n(7115));t.Plugins=f.default;var h=r.__importDefault(n(2145));t.Groups=h.default;var p=r.__importDefault(n(2857));t.Users=p.default;var S=r.__importDefault(n(7167));t.Roles=S.default;var m=r.__importDefault(n(4279));t.Threads=m.default},3212:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0});var r={INVITE_USER:"invite_user",ADD_USER_TO_TEAM:"add_user_to_team",USE_SLASH_COMMANDS:"use_slash_commands",MANAGE_SLASH_COMMANDS:"manage_slash_commands",MANAGE_OTHERS_SLASH_COMMANDS:"manage_others_slash_commands",CREATE_PUBLIC_CHANNEL:"create_public_channel",CREATE_PRIVATE_CHANNEL:"create_private_channel",MANAGE_PUBLIC_CHANNEL_MEMBERS:"manage_public_channel_members",MANAGE_PRIVATE_CHANNEL_MEMBERS:"manage_private_channel_members",READ_PUBLIC_CHANNEL_GROUPS:"read_public_channel_groups",READ_PRIVATE_CHANNEL_GROUPS:"read_private_channel_groups",ASSIGN_SYSTEM_ADMIN_ROLE:"assign_system_admin_role",MANAGE_ROLES:"manage_roles",MANAGE_TEAM_ROLES:"manage_team_roles",MANAGE_CHANNEL_ROLES:"manage_channel_roles",MANAGE_SYSTEM:"manage_system",CREATE_DIRECT_CHANNEL:"create_direct_channel",CREATE_GROUP_CHANNEL:"create_group_channel",MANAGE_PUBLIC_CHANNEL_PROPERTIES:"manage_public_channel_properties",MANAGE_PRIVATE_CHANNEL_PROPERTIES:"manage_private_channel_properties",LIST_PUBLIC_TEAMS:"list_public_teams",JOIN_PUBLIC_TEAMS:"join_public_teams",LIST_PRIVATE_TEAMS:"list_private_teams",JOIN_PRIVATE_TEAMS:"join_private_teams",LIST_TEAM_CHANNELS:"list_team_channels",JOIN_PUBLIC_CHANNELS:"join_public_channels",DELETE_PUBLIC_CHANNEL:"delete_public_channel",CONVERT_PUBLIC_CHANNEL_TO_PRIVATE:"convert_public_channel_to_private",CONVERT_PRIVATE_CHANNEL_TO_PUBLIC:"convert_private_channel_to_public",DELETE_PRIVATE_CHANNEL:"delete_private_channel",EDIT_OTHER_USERS:"edit_other_users",READ_CHANNEL:"read_channel",READ_PUBLIC_CHANNEL:"read_public_channel",ADD_REACTION:"add_reaction",REMOVE_REACTION:"remove_reaction",REMOVE_OTHERS_REACTIONS:"remove_others_reactions",PERMANENT_DELETE_USER:"permanent_delete_user",UPLOAD_FILE:"upload_file",GET_PUBLIC_LINK:"get_public_link",MANAGE_WEBHOOKS:"manage_webhooks",MANAGE_OTHERS_WEBHOOKS:"manage_others_webhooks",MANAGE_INCOMING_WEBHOOKS:"manage_incoming_webhooks",MANAGE_OTHERS_INCOMING_WEBHOOKS:"manage_others_incoming_webhooks",MANAGE_OUTGOING_WEBHOOKS:"manage_outgoing_webhooks",MANAGE_OTHERS_OUTGOING_WEBHOOKS:"manage_others_outgoing_webhooks",MANAGE_OAUTH:"manage_oauth",MANAGE_SYSTEM_WIDE_OAUTH:"manage_system_wide_oauth",CREATE_POST:"create_post",CREATE_POST_PUBLIC:"create_post_public",EDIT_POST:"edit_post",EDIT_OTHERS_POSTS:"edit_others_posts",DELETE_POST:"delete_post",DELETE_OTHERS_POSTS:"delete_others_posts",REMOVE_USER_FROM_TEAM:"remove_user_from_team",CREATE_TEAM:"create_team",MANAGE_TEAM:"manage_team",IMPORT_TEAM:"import_team",VIEW_TEAM:"view_team",LIST_USERS_WITHOUT_TEAM:"list_users_without_team",CREATE_USER_ACCESS_TOKEN:"create_user_access_token",READ_USER_ACCESS_TOKEN:"read_user_access_token",REVOKE_USER_ACCESS_TOKEN:"revoke_user_access_token",MANAGE_JOBS:"manage_jobs",MANAGE_EMOJIS:"manage_emojis",MANAGE_OTHERS_EMOJIS:"manage_others_emojis",CREATE_EMOJIS:"create_emojis",DELETE_EMOJIS:"delete_emojis",DELETE_OTHERS_EMOJIS:"delete_others_emojis",VIEW_MEMBERS:"view_members",INVITE_GUEST:"invite_guest",PROMOTE_GUEST:"promote_guest",DEMOTE_TO_GUEST:"demote_to_guest",USE_CHANNEL_MENTIONS:"use_channel_mentions",USE_GROUP_MENTIONS:"use_group_mentions",READ_OTHER_USERS_TEAMS:"read_other_users_teams",EDIT_BRAND:"edit_brand",READ_JOBS:"read_jobs",DOWNLOAD_COMPLIANCE_EXPORT_RESULT:"download_compliance_export_result",SYSCONSOLE_READ_ABOUT:"sysconsole_read_about",SYSCONSOLE_WRITE_ABOUT:"sysconsole_write_about",SYSCONSOLE_READ_BILLING:"sysconsole_read_billing",SYSCONSOLE_WRITE_BILLING:"sysconsole_write_billing",SYSCONSOLE_READ_REPORTING:"sysconsole_read_reporting",SYSCONSOLE_WRITE_REPORTING:"sysconsole_write_reporting",SYSCONSOLE_READ_USERMANAGEMENT_USERS:"sysconsole_read_user_management_users",SYSCONSOLE_WRITE_USERMANAGEMENT_USERS:"sysconsole_write_user_management_users",SYSCONSOLE_READ_USERMANAGEMENT_GROUPS:"sysconsole_read_user_management_groups",SYSCONSOLE_WRITE_USERMANAGEMENT_GROUPS:"sysconsole_write_user_management_groups",SYSCONSOLE_READ_USERMANAGEMENT_TEAMS:"sysconsole_read_user_management_teams",SYSCONSOLE_WRITE_USERMANAGEMENT_TEAMS:"sysconsole_write_user_management_teams",SYSCONSOLE_READ_USERMANAGEMENT_CHANNELS:"sysconsole_read_user_management_channels",SYSCONSOLE_WRITE_USERMANAGEMENT_CHANNELS:"sysconsole_write_user_management_channels",SYSCONSOLE_READ_USERMANAGEMENT_PERMISSIONS:"sysconsole_read_user_management_permissions",SYSCONSOLE_WRITE_USERMANAGEMENT_PERMISSIONS:"sysconsole_write_user_management_permissions",SYSCONSOLE_READ_USERMANAGEMENT_SYSTEM_ROLES:"sysconsole_read_user_management_system_roles",SYSCONSOLE_WRITE_USERMANAGEMENT_SYSTEM_ROLES:"sysconsole_write_user_management_system_roles",SYSCONSOLE_READ_ENVIRONMENT:"sysconsole_read_environment",SYSCONSOLE_WRITE_ENVIRONMENT:"sysconsole_write_environment",SYSCONSOLE_READ_SITE:"sysconsole_read_site",SYSCONSOLE_WRITE_SITE:"sysconsole_write_site",SYSCONSOLE_READ_AUTHENTICATION:"sysconsole_read_authentication",SYSCONSOLE_WRITE_AUTHENTICATION:"sysconsole_write_authentication",SYSCONSOLE_READ_PLUGINS:"sysconsole_read_plugins",SYSCONSOLE_WRITE_PLUGINS:"sysconsole_write_plugins",SYSCONSOLE_READ_INTEGRATIONS:"sysconsole_read_integrations",SYSCONSOLE_WRITE_INTEGRATIONS:"sysconsole_write_integrations",SYSCONSOLE_READ_COMPLIANCE:"sysconsole_read_compliance",SYSCONSOLE_WRITE_COMPLIANCE:"sysconsole_write_compliance",SYSCONSOLE_READ_EXPERIMENTAL:"sysconsole_read_experimental",SYSCONSOLE_WRITE_EXPERIMENTAL:"sysconsole_write_experimental",CHANNEL_MODERATED_PERMISSIONS:{CREATE_POST:"create_post",CREATE_REACTIONS:"create_reactions",MANAGE_MEMBERS:"manage_members",USE_CHANNEL_MENTIONS:"use_channel_mentions"},MANAGE_BOTS:"manage_bots",MANAGE_OTHERS_BOTS:"manage_others_bots",SYSCONSOLE_READ_PERMISSIONS:[],SYSCONSOLE_WRITE_PERMISSIONS:[],MANAGE_SHARED_CHANNELS:"manage_shared_channels",MANAGE_REMOTE_CLUSTERS:"manage_remote_clusters",SYSCONSOLE_ANCILLARY_PERMISSIONS:{}};r.SYSCONSOLE_READ_PERMISSIONS=[r.SYSCONSOLE_READ_ABOUT,r.SYSCONSOLE_READ_BILLING,r.SYSCONSOLE_READ_REPORTING,r.SYSCONSOLE_READ_USERMANAGEMENT_USERS,r.SYSCONSOLE_READ_USERMANAGEMENT_GROUPS,r.SYSCONSOLE_READ_USERMANAGEMENT_TEAMS,r.SYSCONSOLE_READ_USERMANAGEMENT_CHANNELS,r.SYSCONSOLE_READ_USERMANAGEMENT_PERMISSIONS,r.SYSCONSOLE_READ_ENVIRONMENT,r.SYSCONSOLE_READ_SITE,r.SYSCONSOLE_READ_AUTHENTICATION,r.SYSCONSOLE_READ_PLUGINS,r.SYSCONSOLE_READ_INTEGRATIONS,r.SYSCONSOLE_READ_COMPLIANCE,r.SYSCONSOLE_READ_EXPERIMENTAL],r.SYSCONSOLE_WRITE_PERMISSIONS=[r.SYSCONSOLE_WRITE_ABOUT,r.SYSCONSOLE_WRITE_BILLING,r.SYSCONSOLE_WRITE_REPORTING,r.SYSCONSOLE_WRITE_USERMANAGEMENT_USERS,r.SYSCONSOLE_WRITE_USERMANAGEMENT_GROUPS,r.SYSCONSOLE_WRITE_USERMANAGEMENT_TEAMS,r.SYSCONSOLE_WRITE_USERMANAGEMENT_CHANNELS,r.SYSCONSOLE_WRITE_USERMANAGEMENT_PERMISSIONS,r.SYSCONSOLE_WRITE_ENVIRONMENT,r.SYSCONSOLE_WRITE_SITE,r.SYSCONSOLE_WRITE_AUTHENTICATION,r.SYSCONSOLE_WRITE_PLUGINS,r.SYSCONSOLE_WRITE_INTEGRATIONS,r.SYSCONSOLE_WRITE_COMPLIANCE,r.SYSCONSOLE_WRITE_EXPERIMENTAL],r.SYSCONSOLE_ANCILLARY_PERMISSIONS=((n={})[r.SYSCONSOLE_READ_USERMANAGEMENT_CHANNELS]=[r.READ_PUBLIC_CHANNEL,r.READ_CHANNEL,r.READ_PUBLIC_CHANNEL_GROUPS,r.READ_PRIVATE_CHANNEL_GROUPS],n[r.SYSCONSOLE_READ_USERMANAGEMENT_USERS]=[r.READ_OTHER_USERS_TEAMS],n[r.SYSCONSOLE_READ_USERMANAGEMENT_TEAMS]=[r.LIST_PRIVATE_TEAMS,r.LIST_PUBLIC_TEAMS,r.VIEW_TEAM],n[r.SYSCONSOLE_WRITE_COMPLIANCE]=[r.MANAGE_JOBS],n[r.SYSCONSOLE_READ_COMPLIANCE]=[r.READ_JOBS,r.DOWNLOAD_COMPLIANCE_EXPORT_RESULT],n[r.SYSCONSOLE_READ_ENVIRONMENT]=[r.READ_JOBS],n[r.SYSCONSOLE_READ_AUTHENTICATION]=[r.READ_JOBS],n[r.SYSCONSOLE_READ_REPORTING]=[r.VIEW_TEAM],n[r.SYSCONSOLE_WRITE_USERMANAGEMENT_USERS]=[r.EDIT_OTHER_USERS,r.DEMOTE_TO_GUEST,r.PROMOTE_GUEST],n[r.SYSCONSOLE_WRITE_USERMANAGEMENT_CHANNELS]=[r.MANAGE_TEAM,r.MANAGE_PUBLIC_CHANNEL_PROPERTIES,r.MANAGE_PRIVATE_CHANNEL_PROPERTIES,r.MANAGE_PRIVATE_CHANNEL_MEMBERS,r.MANAGE_PUBLIC_CHANNEL_MEMBERS,r.DELETE_PRIVATE_CHANNEL,r.DELETE_PUBLIC_CHANNEL,r.MANAGE_CHANNEL_ROLES,r.CONVERT_PUBLIC_CHANNEL_TO_PRIVATE,r.CONVERT_PRIVATE_CHANNEL_TO_PUBLIC],n[r.SYSCONSOLE_WRITE_USERMANAGEMENT_TEAMS]=[r.MANAGE_TEAM,r.MANAGE_TEAM_ROLES,r.REMOVE_USER_FROM_TEAM,r.JOIN_PRIVATE_TEAMS,r.JOIN_PUBLIC_TEAMS,r.ADD_USER_TO_TEAM],n[r.SYSCONSOLE_WRITE_USERMANAGEMENT_GROUPS]=[r.MANAGE_TEAM,r.MANAGE_PRIVATE_CHANNEL_MEMBERS,r.MANAGE_PUBLIC_CHANNEL_MEMBERS,r.CONVERT_PUBLIC_CHANNEL_TO_PRIVATE,r.CONVERT_PRIVATE_CHANNEL_TO_PUBLIC],n[r.SYSCONSOLE_WRITE_ENVIRONMENT]=[r.MANAGE_JOBS],n[r.SYSCONSOLE_WRITE_SITE]=[r.EDIT_BRAND],n),t.default=r},7115:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={PLUGIN_STATE_NOT_RUNNING:0,PLUGIN_STATE_STARTING:1,PLUGIN_STATE_RUNNING:2,PLUGIN_STATE_FAILED_TO_START:3,PLUGIN_STATE_FAILED_TO_STAY_RUNNING:4,PLUGIN_STATE_STOPPING:5}},6735:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PostTypes=void 0,t.PostTypes={CHANNEL_DELETED:"system_channel_deleted",CHANNEL_UNARCHIVED:"system_channel_restored",DISPLAYNAME_CHANGE:"system_displayname_change",CONVERT_CHANNEL:"system_convert_channel",EPHEMERAL:"system_ephemeral",EPHEMERAL_ADD_TO_CHANNEL:"system_ephemeral_add_to_channel",HEADER_CHANGE:"system_header_change",PURPOSE_CHANGE:"system_purpose_change",JOIN_LEAVE:"system_join_leave",JOIN_CHANNEL:"system_join_channel",GUEST_JOIN_CHANNEL:"system_guest_join_channel",LEAVE_CHANNEL:"system_leave_channel",ADD_REMOVE:"system_add_remove",ADD_TO_CHANNEL:"system_add_to_channel",ADD_GUEST_TO_CHANNEL:"system_add_guest_to_chan",REMOVE_FROM_CHANNEL:"system_remove_from_channel",JOIN_TEAM:"system_join_team",LEAVE_TEAM:"system_leave_team",ADD_TO_TEAM:"system_add_to_team",REMOVE_FROM_TEAM:"system_remove_from_team",COMBINED_USER_ACTIVITY:"system_combined_user_activity",ME:"me",ADD_BOT_TEAMS_CHANNELS:"add_bot_teams_channels",SYSTEM_WARN_METRIC_STATUS:"warn_metric_status"},t.default={POST_CHUNK_SIZE:60,POST_DELETED:"DELETED",SYSTEM_MESSAGE_PREFIX:"system_",SYSTEM_AUTO_RESPONDER:"system_auto_responder",POST_TYPES:t.PostTypes,MESSAGE_TYPES:{POST:"post",COMMENT:"comment"},MAX_PREV_MSGS:100,POST_COLLAPSE_TIMEOUT:3e5,IGNORE_POST_TYPES:[t.PostTypes.ADD_REMOVE,t.PostTypes.ADD_TO_CHANNEL,t.PostTypes.CHANNEL_DELETED,t.PostTypes.CHANNEL_UNARCHIVED,t.PostTypes.JOIN_LEAVE,t.PostTypes.JOIN_CHANNEL,t.PostTypes.LEAVE_CHANNEL,t.PostTypes.REMOVE_FROM_CHANNEL,t.PostTypes.JOIN_TEAM,t.PostTypes.LEAVE_TEAM,t.PostTypes.ADD_TO_TEAM,t.PostTypes.REMOVE_FROM_TEAM],USER_ACTIVITY_POST_TYPES:[t.PostTypes.ADD_TO_CHANNEL,t.PostTypes.JOIN_CHANNEL,t.PostTypes.LEAVE_CHANNEL,t.PostTypes.REMOVE_FROM_CHANNEL,t.PostTypes.ADD_TO_TEAM,t.PostTypes.JOIN_TEAM,t.PostTypes.LEAVE_TEAM,t.PostTypes.REMOVE_FROM_TEAM]}},9884:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={CATEGORY_CHANNEL_OPEN_TIME:"channel_open_time",CATEGORY_CHANNEL_APPROXIMATE_VIEW_TIME:"channel_approximate_view_time",CATEGORY_DIRECT_CHANNEL_SHOW:"direct_channel_show",CATEGORY_GROUP_CHANNEL_SHOW:"group_channel_show",CATEGORY_FLAGGED_POST:"flagged_post",CATEGORY_FAVORITE_CHANNEL:"favorite_channel",CATEGORY_AUTO_RESET_MANUAL_STATUS:"auto_reset_manual_status",CATEGORY_NOTIFICATIONS:"notifications",COMMENTS:"comments",COMMENTS_ANY:"any",COMMENTS_ROOT:"root",COMMENTS_NEVER:"never",EMAIL:"email",EMAIL_INTERVAL:"email_interval",INTERVAL_FIFTEEN_MINUTES:900,INTERVAL_HOUR:3600,INTERVAL_IMMEDIATE:30,INTERVAL_NEVER:0,INTERVAL_NOT_SET:-1,CATEGORY_DISPLAY_SETTINGS:"display_settings",NAME_NAME_FORMAT:"name_format",DISPLAY_PREFER_NICKNAME:"nickname_full_name",DISPLAY_PREFER_FULL_NAME:"full_name",DISPLAY_PREFER_USERNAME:"username",MENTION_KEYS:"mention_keys",USE_MILITARY_TIME:"use_military_time",CATEGORY_CUSTOM_STATUS:"custom_status",NAME_CUSTOM_STATUS_TUTORIAL_STATE:"custom_status_tutorial_state",NAME_RECENT_CUSTOM_STATUSES:"recent_custom_statuses",CUSTOM_STATUS_MODAL_VIEWED:"custom_status_modal_viewed",CATEGORY_SIDEBAR_SETTINGS:"sidebar_settings",CHANNEL_SIDEBAR_ORGANIZATION:"channel_sidebar_organization",CHANNEL_SIDEBAR_AUTOCLOSE_DMS:"close_unused_direct_messages",AUTOCLOSE_DMS_ENABLED:"after_seven_days",LIMIT_VISIBLE_DMS_GMS:"limit_visible_dms_gms",SHOW_UNREAD_SECTION:"show_unread_section",CATEGORY_ADVANCED_SETTINGS:"advanced_settings",ADVANCED_FILTER_JOIN_LEAVE:"join_leave",ADVANCED_CODE_BLOCK_ON_CTRL_ENTER:"code_block_ctrl_enter",ADVANCED_SEND_ON_CTRL_ENTER:"send_on_ctrl_enter",CATEGORY_WHATS_NEW_MODAL:"whats_new_modal",HAS_SEEN_SIDEBAR_WHATS_NEW_MODAL:"has_seen_sidebar_whats_new_modal",CATEGORY_THEME:"theme",THEMES:{default:{type:"Mattermost",sidebarBg:"#145dbf",sidebarText:"#ffffff",sidebarUnreadText:"#ffffff",sidebarTextHoverBg:"#4578bf",sidebarTextActiveBorder:"#579eff",sidebarTextActiveColor:"#ffffff",sidebarHeaderBg:"#1153ab",sidebarHeaderTextColor:"#ffffff",onlineIndicator:"#06d6a0",awayIndicator:"#ffbc42",dndIndicator:"#f74343",mentionBg:"#ffffff",mentionBj:"#ffffff",mentionColor:"#145dbf",centerChannelBg:"#ffffff",centerChannelColor:"#3d3c40",newMessageSeparator:"#ff8800",linkColor:"#2389d7",buttonBg:"#166de0",buttonColor:"#ffffff",errorTextColor:"#fd5960",mentionHighlightBg:"#ffe577",mentionHighlightLink:"#166de0",codeTheme:"github"},organization:{type:"Organization",sidebarBg:"#2071a7",sidebarText:"#ffffff",sidebarUnreadText:"#ffffff",sidebarTextHoverBg:"#136197",sidebarTextActiveBorder:"#7ab0d6",sidebarTextActiveColor:"#ffffff",sidebarHeaderBg:"#2f81b7",sidebarHeaderTextColor:"#ffffff",onlineIndicator:"#7dbe00",awayIndicator:"#dcbd4e",dndIndicator:"#ff6a6a",mentionBg:"#fbfbfb",mentionBj:"#fbfbfb",mentionColor:"#2071f7",centerChannelBg:"#f2f4f8",centerChannelColor:"#333333",newMessageSeparator:"#ff8800",linkColor:"#2f81b7",buttonBg:"#1dacfc",buttonColor:"#ffffff",errorTextColor:"#a94442",mentionHighlightBg:"#f3e197",mentionHighlightLink:"#2f81b7",codeTheme:"github"},mattermostDark:{type:"Mattermost Dark",sidebarBg:"#1b2c3e",sidebarText:"#ffffff",sidebarUnreadText:"#ffffff",sidebarTextHoverBg:"#4a5664",sidebarTextActiveBorder:"#66b9a7",sidebarTextActiveColor:"#ffffff",sidebarHeaderBg:"#1b2c3e",sidebarHeaderTextColor:"#ffffff",onlineIndicator:"#65dcc8",awayIndicator:"#c1b966",dndIndicator:"#e81023",mentionBg:"#b74a4a",mentionBj:"#b74a4a",mentionColor:"#ffffff",centerChannelBg:"#2f3e4e",centerChannelColor:"#dddddd",newMessageSeparator:"#5de5da",linkColor:"#a4ffeb",buttonBg:"#4cbba4",buttonColor:"#ffffff",errorTextColor:"#ff6461",mentionHighlightBg:"#984063",mentionHighlightLink:"#a4ffeb",codeTheme:"solarized-dark"},windows10:{type:"Windows Dark",sidebarBg:"#171717",sidebarText:"#ffffff",sidebarUnreadText:"#ffffff",sidebarTextHoverBg:"#302e30",sidebarTextActiveBorder:"#196caf",sidebarTextActiveColor:"#ffffff",sidebarHeaderBg:"#1f1f1f",sidebarHeaderTextColor:"#ffffff",onlineIndicator:"#399fff",awayIndicator:"#c1b966",dndIndicator:"#e81023",mentionBg:"#0177e7",mentionBj:"#0177e7",mentionColor:"#ffffff",centerChannelBg:"#1f1f1f",centerChannelColor:"#dddddd",newMessageSeparator:"#cc992d",linkColor:"#0d93ff",buttonBg:"#0177e7",buttonColor:"#ffffff",errorTextColor:"#ff6461",mentionHighlightBg:"#784098",mentionHighlightLink:"#a4ffeb",codeTheme:"monokai"}}}},6565:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={NOT_STARTED:"not_started",STARTED:"started",SUCCESS:"success",FAILURE:"failure",CANCELLED:"cancelled"}},7167:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={MEMBERS:"members",GUESTS:"guests",ADMINS:"admins"}},8443:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(655).__importDefault(n(336));t.default=r.default({TOTAL_USERS:null,TOTAL_INACTIVE_USERS:null,TOTAL_PUBLIC_CHANNELS:null,TOTAL_PRIVATE_GROUPS:null,TOTAL_POSTS:null,TOTAL_TEAMS:null,TOTAL_FILE_POSTS:null,TOTAL_HASHTAG_POSTS:null,TOTAL_IHOOKS:null,TOTAL_OHOOKS:null,TOTAL_COMMANDS:null,TOTAL_SESSIONS:null,POST_PER_DAY:null,BOT_POST_PER_DAY:null,USERS_WITH_POSTS_PER_DAY:null,RECENTLY_ACTIVE_USERS:null,NEWLY_CREATED_USERS:null,TOTAL_WEBSOCKET_CONNECTIONS:null,TOTAL_MASTER_DB_CONNECTIONS:null,TOTAL_READ_DB_CONNECTIONS:null,DAILY_ACTIVE_USERS:null,MONTHLY_ACTIVE_USERS:null,REGISTERED_USERS:null})},4242:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={TEAM_TYPE_OPEN:"O",TEAM_TYPE_INVITE:"I",SORT_USERNAME_OPTION:"Username"}},4279:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={THREADS_CHUNK_SIZE:20}},2857:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={IGNORE_CHANNEL_MENTIONS_ON:"on",IGNORE_CHANNEL_MENTIONS_OFF:"off",IGNORE_CHANNEL_MENTIONS_DEFAULT:"default"}},8487:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={POSTED:"posted",POST_EDITED:"post_edited",POST_DELETED:"post_deleted",POST_UNREAD:"post_unread",CHANNEL_CONVERTED:"channel_converted",CHANNEL_CREATED:"channel_created",CHANNEL_DELETED:"channel_deleted",CHANNEL_UNARCHIVED:"channel_restored",CHANNEL_UPDATED:"channel_updated",CHANNEL_VIEWED:"channel_viewed",CHANNEL_MEMBER_UPDATED:"channel_member_updated",CHANNEL_SCHEME_UPDATED:"channel_scheme_updated",DIRECT_ADDED:"direct_added",ADDED_TO_TEAM:"added_to_team",LEAVE_TEAM:"leave_team",UPDATE_TEAM:"update_team",USER_ADDED:"user_added",USER_REMOVED:"user_removed",USER_UPDATED:"user_updated",USER_ROLE_UPDATED:"user_role_updated",ROLE_ADDED:"role_added",ROLE_REMOVED:"role_removed",ROLE_UPDATED:"role_updated",TYPING:"typing",STOP_TYPING:"stop_typing",PREFERENCE_CHANGED:"preference_changed",PREFERENCES_CHANGED:"preferences_changed",PREFERENCES_DELETED:"preferences_deleted",EPHEMERAL_MESSAGE:"ephemeral_message",STATUS_CHANGED:"status_change",HELLO:"hello",WEBRTC:"webrtc",REACTION_ADDED:"reaction_added",REACTION_REMOVED:"reaction_removed",EMOJI_ADDED:"emoji_added",LICENSE_CHANGED:"license_changed",CONFIG_CHANGED:"config_changed",PLUGIN_STATUSES_CHANGED:"plugin_statuses_changed",OPEN_DIALOG:"open_dialog",INCREASE_POST_VISIBILITY_BY_ONE:"increase_post_visibility_by_one",RECEIVED_GROUP:"received_group",RECEIVED_GROUP_ASSOCIATED_TO_TEAM:"group_associated_to_team",RECEIVED_GROUP_NOT_ASSOCIATED_TO_TEAM:"group_not_associated_to_team",RECEIVED_GROUP_ASSOCIATED_TO_CHANNEL:"group_associated_to_channel",RECEIVED_GROUP_NOT_ASSOCIATED_TO_CHANNEL:"group_not_associated_to_channel",WARN_METRIC_STATUS_RECEIVED:"warn_metric_status_received",WARN_METRIC_STATUS_REMOVED:"warn_metric_status_removed",THREAD_UPDATED:"thread_updated",THREAD_FOLLOW_CHANGED:"thread_follow_changed",THREAD_READ_CHANGED:"thread_read_changed"}},6125:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUsers=t.getCurrentUserId=t.getCurrentUser=t.getMembersInTeam=t.getMembersInChannel=t.getMyCurrentChannelMembership=t.getMyChannelMemberships=t.getCurrentChannelId=void 0;var r=n(2222);function o(e){return e.entities.channels.currentChannelId}function i(e){return e.entities.channels.myMembers}function a(e){return e.entities.users.currentUserId}t.getCurrentChannelId=o,t.getMyChannelMemberships=i,t.getMyCurrentChannelMembership=r.createSelector(o,i,(function(e,t){return t[e]||null})),t.getMembersInChannel=function(e,t){var n,r;return(null===(r=null===(n=e.entities.channels)||void 0===n?void 0:n.membersInChannel)||void 0===r?void 0:r[t])||{}},t.getMembersInTeam=function(e,t){var n,r;return(null===(r=null===(n=e.entities.teams)||void 0===n?void 0:n.membersInTeam)||void 0===r?void 0:r[t])||{}},t.getCurrentUser=function(e){return e.entities.users.profiles[a(e)]},t.getCurrentUserId=a,t.getUsers=function(e){return e.entities.users.profiles}},8781:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getServerVersion=t.getManagedResourcePaths=t.getAutolinkedUrlSchemes=t.canDownloadFilesOnMobile=t.canUploadFilesOnMobile=t.hasNewPermissions=t.isCompatibleWithJoinViewTeamPermissions=t.getSubscriptionStats=t.warnMetricsStatus=t.getCurrentUrl=t.getSupportedTimezones=t.getLicense=t.getFeatureFlagValue=t.getConfig=void 0;var r=n(655),o=n(2222),i=n(5250),a=n(1625);function s(e){return e.entities.general.config}function u(e){return e.entities.general.license}t.getConfig=s,t.getFeatureFlagValue=function(e,t){var n;return null===(n=s(e))||void 0===n?void 0:n["FeatureFlag"+t]},t.getLicense=u,t.getSupportedTimezones=function(e){return e.entities.general.timezones},t.getCurrentUrl=function(e){return e.entities.general.credentials.url},t.warnMetricsStatus=function(e){return e.entities.general.warnMetricsStatus},t.getSubscriptionStats=function(e){return e.entities.cloud.subscriptionStats},t.isCompatibleWithJoinViewTeamPermissions=function(e){var t=e.entities.general.serverVersion;return a.isMinimumServerVersion(t,5,10,0)||-1!==t.indexOf("dev")&&a.isMinimumServerVersion(t,5,8,0)||null!==t.match(/^5.8.\d.\d\d\d\d.*$/)&&a.isMinimumServerVersion(t,5,8,0)},t.hasNewPermissions=function(e){var t=e.entities.general.serverVersion;return a.isMinimumServerVersion(t,4,9,0)||-1!==t.indexOf("dev")&&a.isMinimumServerVersion(t,4,8,0)||null!==t.match(/^4.8.\d.\d\d\d\d.*$/)&&a.isMinimumServerVersion(t,4,8,0)},t.canUploadFilesOnMobile=o.createSelector(s,u,(function(e,t){return"false"!==e.EnableFileAttachments&&("false"===t.IsLicensed||"false"===t.Compliance||"false"!==e.EnableMobileFileUpload)})),t.canDownloadFilesOnMobile=o.createSelector(s,u,(function(e,t){return"false"===t.IsLicensed||"false"===t.Compliance||"false"!==e.EnableMobileFileDownload})),t.getAutolinkedUrlSchemes=o.createSelector(s,(function(e){return e.CustomUrlSchemes?r.__spread(i.General.DEFAULT_AUTOLINKED_URL_SCHEMES,e.CustomUrlSchemes.split(",")):i.General.DEFAULT_AUTOLINKED_URL_SCHEMES})),t.getManagedResourcePaths=o.createSelector(s,(function(e){return e.ManagedResourcePaths?e.ManagedResourcePaths.split(",").map((function(e){return e.trim()})):[]})),t.getServerVersion=function(e){return e.entities.general.serverVersion}},2678:(e,t,n)=>{"use strict";t.gh=t.o4=void 0;var r=n(655),o=n(2222),i=n(5250),a=n(8781),s=n(8751),u=n(1625),l=n(9529);function c(e){return e.entities.preferences.myPreferences}function _(e,t,n,r){void 0===r&&(r="");var o=l.getPreferenceKey(t,n),i=c(e);return o in i?i[o].value:r}function E(e,t,n,r){return void 0===r&&(r=!1),"false"!==_(e,t,n,String(r))}function d(){return o.createSelector(c,(function(e,t){return t}),(function(e,t){var n=t+"--",r=[];for(var o in e)o.startsWith(n)&&r.push(e[o]);return r}))}t.o4=E;var f=d();var h=d();d();o.createSelector((function(e){return f(e,i.Preferences.CATEGORY_DIRECT_CHANNEL_SHOW)}),(function(e){return e.filter((function(e){return"true"===e.value&&e.name})).map((function(e){return e.name}))})),o.createSelector((function(e){return h(e,i.Preferences.CATEGORY_GROUP_CHANNEL_SHOW)}),(function(e){return e.filter((function(e){return"true"===e.value&&e.name})).map((function(e){return e.name}))})),o.createSelector(a.getConfig,c,a.getLicense,(function(e,t,n){var r=n&&"true"===n.LockTeammateNameDisplay&&"true"===e.LockTeammateNameDisplay,o=l.getPreferenceKey(i.Preferences.CATEGORY_DISPLAY_SETTINGS,i.Preferences.NAME_NAME_FORMAT);return t[o]&&!r?t[o].value:e.TeammateNameDisplay?e.TeammateNameDisplay:i.General.TEAMMATE_NAME_DISPLAY.SHOW_USERNAME}));var p=o.createSelector(c,s.getCurrentTeamId,(function(e,t){var n;return t&&(n=e[l.getPreferenceKey(i.Preferences.CATEGORY_THEME,t)]),n||(n=e[l.getPreferenceKey(i.Preferences.CATEGORY_THEME,"")]),n})),S=o.createSelector(a.getConfig,(function(e){if(e.DefaultTheme&&e.DefaultTheme in i.Preferences.THEMES){var t=i.Preferences.THEMES[e.DefaultTheme];if(t)return t}return i.Preferences.THEMES.default}));t.gh=u.createShallowSelector(p,S,(function(e,t){var n,o,a,s,u=null!==(a=null==e?void 0:e.value)&&void 0!==a?a:t,l="string"==typeof u?JSON.parse(u):u;if(l.type&&"custom"!==l.type){var c=Object.values(i.Preferences.THEMES).find((function(e){return e.type===l.type}));if(c)return c.mentionBg||(c.mentionBg=c.mentionBj),c}try{for(var _=r.__values(Object.keys(t)),E=_.next();!E.done;E=_.next()){var d=E.value;l[d]&&(l[d]=null===(s=l[d])||void 0===s?void 0:s.toLowerCase())}}catch(e){n={error:e}}finally{try{E&&!E.done&&(o=_.return)&&o.call(_)}finally{if(n)throw n.error}}return l.mentionBg||(l.mentionBg=l.mentionBj),Object.assign({},t,l)}));var m={grouping:"by_type",unreads_at_top:"true",favorite_at_top:"true",sorting:"alpha"};o.createSelector((function(e){var t=a.getConfig(e);return t.ExperimentalGroupUnreadChannels!==i.General.DISABLED&&E(e,i.Preferences.CATEGORY_SIDEBAR_SETTINGS,"show_unread_section",t.ExperimentalGroupUnreadChannels===i.General.DEFAULT_ON)}),(function(e){return _(e,i.Preferences.CATEGORY_SIDEBAR_SETTINGS,"",null)}),(function(e,t){var n=JSON.parse(t);return null===n&&(n=r.__assign(r.__assign({},m),{unreads_at_top:e?"true":"false"})),n})),o.createSelector((function(e){return _(e,i.Preferences.CATEGORY_SIDEBAR_SETTINGS,i.Preferences.SHOW_UNREAD_SECTION)}),(function(e){return _(e,i.Preferences.CATEGORY_SIDEBAR_SETTINGS,"")}),(function(e){return a.getConfig(e).ExperimentalGroupUnreadChannels}),(function(e,t,n){return e?"true"===e:t?"true"===JSON.parse(t).unreads_at_top:n===i.General.DEFAULT_ON}))},3466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.haveISystemPermission=t.getMySystemPermissions=t.getMySystemRoles=t.getRoles=void 0;var r=n(655),o=n(2222),i=n(6125);function a(e){return e.entities.roles.roles}t.getRoles=a,t.getMySystemRoles=o.createSelector(i.getCurrentUser,(function(e){return e?new Set(e.roles.split(" ")):new Set})),t.getMySystemPermissions=o.createSelector(t.getMySystemRoles,a,(function(e,t){var n,o,i,a,s=new Set;try{for(var u=r.__values(e),l=u.next();!l.done;l=u.next()){var c=l.value;if(t[c])try{for(var _=(i=void 0,r.__values(t[c].permissions)),E=_.next();!E.done;E=_.next()){var d=E.value;s.add(d)}}catch(e){i={error:e}}finally{try{E&&!E.done&&(a=_.return)&&a.call(_)}finally{if(i)throw i.error}}}}catch(e){n={error:e}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}return s})),t.haveISystemPermission=o.createSelector(t.getMySystemPermissions,(function(e,t){return t.permission}),(function(e,t){return e.has(t)}))},8751:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeGetBadgeCountForTeamId=t.getChannelDrawerBadgeCount=t.getMyTeamsCount=t.getMySortedTeamIds=t.getSortedJoinableTeams=t.getJoinableTeams=t.getJoinableTeamIds=t.getSortedListableTeams=t.getListableTeams=t.getListableTeamIds=t.getTeamMember=t.getMembersInCurrentTeam=t.getMyTeamMember=t.getMyTeams=t.getCurrentTeamStats=t.getCurrentRelativeTeamUrl=t.getCurrentTeamUrl=t.isCurrentUserCurrentTeamAdmin=t.getCurrentTeamMembership=t.getTeam=t.getCurrentTeam=t.getTeamsList=t.getMembersInTeams=t.getTeamMemberships=t.getTeamStats=t.getTeams=t.getTeamByName=t.getCurrentTeamId=void 0;var r=n(655),o=n(2222),i=n(5250),a=n(8781),s=n(3466),u=n(1625),l=n(2633),c=n(9451);function _(e){return e.entities.teams.currentTeamId}function E(e){return e.entities.teams.teams}function d(e){return e.entities.teams.stats}function f(e){return e.entities.teams.myMembers}function h(e){return e.entities.teams.membersInTeam}t.getCurrentTeamId=_,t.getTeamByName=function(e,t){var n=E(e);return Object.values(n).find((function(e){return e.name===t}))},t.getTeams=E,t.getTeamStats=d,t.getTeamMemberships=f,t.getMembersInTeams=h,t.getTeamsList=o.createSelector(E,(function(e){return Object.values(e)})),t.getCurrentTeam=o.createSelector(E,_,(function(e,t){return e[t]})),t.getTeam=function(e,t){return E(e)[t]},t.getCurrentTeamMembership=o.createSelector(_,f,(function(e,t){return t[e]})),t.isCurrentUserCurrentTeamAdmin=o.createSelector(t.getCurrentTeamMembership,(function(e){if(e){var t=e.roles||"";return l.isTeamAdmin(t)}return!1})),t.getCurrentTeamUrl=o.createSelector(a.getCurrentUrl,t.getCurrentTeam,(function(e){return a.getConfig(e).SiteURL}),(function(e,t,n){var r=""+(e||n);return t?r+"/"+t.name:r})),t.getCurrentRelativeTeamUrl=o.createSelector(t.getCurrentTeam,(function(e){return e?"/"+e.name:"/"})),t.getCurrentTeamStats=o.createSelector(_,d,(function(e,t){return t[e]})),t.getMyTeams=o.createSelector(E,f,(function(e,t){return Object.values(e).filter((function(e){return t[e.id]&&0===e.delete_at}))})),t.getMyTeamMember=o.createSelector(f,(function(e,t){return t}),(function(e,t){return e[t]||{}})),t.getMembersInCurrentTeam=o.createSelector(_,h,(function(e,t){return t[e]})),t.getTeamMember=function(e,t,n){var r=h(e)[t];return r?r[n]:null},t.getListableTeamIds=u.createIdsSelector(E,f,(function(e){return s.haveISystemPermission(e,{permission:i.Permissions.LIST_PUBLIC_TEAMS})}),(function(e){return s.haveISystemPermission(e,{permission:i.Permissions.LIST_PRIVATE_TEAMS})}),a.isCompatibleWithJoinViewTeamPermissions,(function(e,t,n,r,o){return Object.keys(e).filter((function(i){var a=e[i],s=t[i],u=a.allow_open_invite;return o&&(u=r&&!a.allow_open_invite||n&&a.allow_open_invite),0===a.delete_at&&u&&!s}))})),t.getListableTeams=o.createSelector(E,t.getListableTeamIds,(function(e,t){return t.map((function(t){return e[t]}))})),t.getSortedListableTeams=o.createSelector(E,t.getListableTeamIds,(function(e,t){return t}),(function(e,t,n){var o,i,a={};try{for(var s=r.__values(t),u=s.next();!u.done;u=s.next()){var l=u.value;a[l]=e[l]}}catch(e){o={error:e}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return Object.values(a).sort(c.sortTeamsWithLocale(n))})),t.getJoinableTeamIds=u.createIdsSelector(E,f,(function(e){return s.haveISystemPermission(e,{permission:i.Permissions.JOIN_PUBLIC_TEAMS})}),(function(e){return s.haveISystemPermission(e,{permission:i.Permissions.JOIN_PRIVATE_TEAMS})}),a.isCompatibleWithJoinViewTeamPermissions,(function(e,t,n,r,o){return Object.keys(e).filter((function(i){var a=e[i],s=t[i],u=a.allow_open_invite;return o&&(u=r&&!a.allow_open_invite||n&&a.allow_open_invite),0===a.delete_at&&u&&!s}))})),t.getJoinableTeams=o.createSelector(E,t.getJoinableTeamIds,(function(e,t){return t.map((function(t){return e[t]}))})),t.getSortedJoinableTeams=o.createSelector(E,t.getJoinableTeamIds,(function(e,t){return t}),(function(e,t,n){var o,i,a={};try{for(var s=r.__values(t),u=s.next();!u.done;u=s.next()){var l=u.value;a[l]=e[l]}}catch(e){o={error:e}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(o)throw o.error}}return Object.values(a).sort(c.sortTeamsWithLocale(n))})),t.getMySortedTeamIds=u.createIdsSelector(t.getMyTeams,(function(e,t){return t}),(function(e,t){return e.sort(c.sortTeamsWithLocale(t)).map((function(e){return e.id}))})),t.getMyTeamsCount=function(e){return t.getMyTeams(e).length},t.getChannelDrawerBadgeCount=o.createSelector(_,f,(function(e,t){var n=0,r=0;Object.values(t).forEach((function(t){t.team_id!==e&&(n+=t.mention_count||0,r+=t.msg_count||0)}));var o=0;return n?o=n:r&&(o=-1),o})),t.makeGetBadgeCountForTeamId=function(){return o.createSelector(f,(function(e,t){return t}),(function(e,t){var n=e[t],r=0;return n&&(n.mention_count?r=n.mention_count:n.msg_count&&(r=-1)),r}))}},1625:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildQueryString=t.isEmail=t.generateId=t.isMinimumServerVersion=t.createShallowSelector=t.createIdsSelector=t.memoizeResult=void 0;var r=n(655),o=r.__importStar(n(2222)),i=r.__importDefault(n(8993));function a(e){var t=null,n=null;return function(){if(!i.default(t,arguments)){var r=Reflect.apply(e,null,arguments);i.default(n,r)||(n=r)}return t=arguments,n}}t.memoizeResult=a,t.createIdsSelector=o.createSelectorCreator(a),t.createShallowSelector=o.createSelectorCreator(o.defaultMemoize,i.default),t.isMinimumServerVersion=function(e,t,n,r){if(void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),!e||"string"!=typeof e)return!1;var o=e.split("."),i=parseInt(o[0],10),a=parseInt(o[1]||"0",10),s=parseInt(o[2]||"0",10);return i>t||!(in||!(ar||!(s{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.localizeMessage=t.setLocalizeFunction=void 0,t.setLocalizeFunction=function(e){n=e},t.localizeMessage=function(e,t){return n?n(e,t):t}},336:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=n);return t}},9529:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isChannelFavorite=t.getPreferencesByCategory=t.getPreferenceKey=void 0;var r=n(5250);function o(e,t){return e+"--"+t}t.getPreferenceKey=o,t.getPreferencesByCategory=function(e,t){var n=t+"--",r=new Map;return Object.keys(e).forEach((function(t){t.startsWith(n)&&r.set(t.substring(n.length),e[t])})),r},t.isChannelFavorite=function(e,t){var n=e[o(r.Preferences.CATEGORY_FAVORITE_CHANNEL,t)];return Boolean(n&&"false"!==n.value)}},2158:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cleanUrlForLogging=void 0,t.cleanUrlForLogging=function(e,t){var n=t,r=(n=n.substring(e.length)).indexOf("?");-1!==r&&(n=n.substring(0,r));var o=["api","v4","users","teams","scheme","name","members","channels","posts","reactions","commands","files","preferences","hooks","incoming","outgoing","oauth","apps","emoji","brand","image","data_retention","jobs","plugins","roles","system","timezones","schemes","redirect_location","patch","mfa","password","reset","send","active","verify","terms_of_service","login","logout","ids","usernames","me","username","email","default","sessions","revoke","all","audits","device","status","search","switch","authorized","authorize","deauthorize","tokens","disable","enable","exists","unread","invite","batch","stats","import","schemeRoles","direct","group","convert","view","search_autocomplete","thread","info","flagged","pinned","pin","unpin","opengraph","actions","thumbnail","preview","link","delete","logs","ping","config","client","license","websocket","webrtc","token","regen_token","autocomplete","execute","regen_secret","policy","type","cancel","reload","environment","s3_test","file","caches","invalidate","database","recycle","compliance","reports","cluster","ldap","test","sync","saml","certificate","public","private","idp","elasticsearch","purge_indexes","analytics","old","webapp","fake"];return n=n.split("/").map((function(e){return""!==e&&-1===o.indexOf(e)?"":e})).join("/"),-1!==r&&(n+="?"),n}},9451:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortTeamsWithLocale=t.teamListToMap=void 0;var r=n(5250);t.teamListToMap=function(e){for(var t={},n=0;n{"use strict";t.$Y=void 0;n(5250);t.$Y=function(e){var t,n;return function(r){return n&&r===t||(n=e(r),t=r),n}}},2633:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyRolesFilters=t.sortByUsername=t.filterProfilesMatchingWithTerm=t.filterProfilesStartingWithTerm=t.nameSuggestionsForUser=t.getSuggestionsSplitByMultiple=t.getSuggestionsSplitBy=t.removeUserFromList=t.profileListToMap=t.hasPostAllPublicRole=t.hasPostAllRole=t.hasUserAccessTokenRole=t.isChannelAdmin=t.includesAnAdminRole=t.isSystemAdmin=t.isTeamAdmin=t.isGuest=t.isAdmin=t.spaceSeparatedStringIncludes=t.displayUsername=t.getFullName=void 0;var r=n(655),o=n(5250),i=n(615);function a(e){return e.first_name&&e.last_name?e.first_name+" "+e.last_name:e.first_name?e.first_name:e.last_name?e.last_name:""}function s(e,t){return e.split(" ").includes(t)}function u(e){return s(e,o.General.TEAM_ADMIN_ROLE)}function l(e){return s(e,o.General.SYSTEM_ADMIN_ROLE)}function c(e,t){var n=e.split(t),r=n.map((function(e,r){return n.slice(r).join(t)}));return" "===t?r:r.reduce((function(e,n){return 0===e.length?e.push(n):e.push(t+n,n),e}),[])}function _(e,t){var n=t.reduce((function(t,n){return c(e,n).forEach((function(e){return t.add(e)})),t}),new Set);return r.__spread(n)}function E(e){var t=[],n=_((e.username||"").toLowerCase(),o.General.AUTOCOMPLETE_SPLIT_CHARACTERS);t.push.apply(t,r.__spread(n));var i=(e.first_name||"").toLowerCase(),a=(e.last_name||"").toLowerCase(),s=i+" "+a;t.push(i,a,s),t.push((e.nickname||"").toLowerCase()),t.push((e.position||"").toLowerCase());var u=(e.email||"").toLowerCase();t.push(u);var l=u.split("@");return l.length>1&&t.push(l[1]),t}function d(e,t,n,r){var i=r.includes("system");return i&&e.roles.includes(r)&&(r===o.General.SYSTEM_USER_ROLE&&t||r!==o.General.SYSTEM_USER_ROLE)||!i&&t&&(r===o.General.TEAM_ADMIN_ROLE&&(null==n?void 0:n.scheme_admin)||r===o.General.CHANNEL_ADMIN_ROLE&&(null==n?void 0:n.scheme_admin)||r===o.General.TEAM_USER_ROLE&&(null==n?void 0:n.scheme_user)&&!(null==n?void 0:n.scheme_admin)||r===o.General.CHANNEL_USER_ROLE&&(null==n?void 0:n.scheme_user)&&!(null==n?void 0:n.scheme_admin))}t.getFullName=a,t.displayUsername=function(e,t,n){void 0===n&&(n=!0);var r=n?i.localizeMessage("channel_loader.someone","Someone"):"";return e&&((r=t===o.Preferences.DISPLAY_PREFER_NICKNAME?e.nickname||a(e):t===o.Preferences.DISPLAY_PREFER_FULL_NAME?a(e):e.username)&&0!==r.trim().length||(r=e.username)),r},t.spaceSeparatedStringIncludes=s,t.isAdmin=function(e){return l(e)||u(e)},t.isGuest=function(e){return s(e,"system_guest")},t.isTeamAdmin=u,t.isSystemAdmin=l,t.includesAnAdminRole=function(e){var t=e.split(" ");return[o.General.SYSTEM_ADMIN_ROLE,o.General.SYSTEM_USER_MANAGER_ROLE,o.General.SYSTEM_READ_ONLY_ADMIN_ROLE,o.General.SYSTEM_MANAGER_ROLE].some((function(e){return t.includes(e)}))},t.isChannelAdmin=function(e){return s(e,o.General.CHANNEL_ADMIN_ROLE)},t.hasUserAccessTokenRole=function(e){return s(e,o.General.SYSTEM_USER_ACCESS_TOKEN_ROLE)},t.hasPostAllRole=function(e){return s(e,o.General.SYSTEM_POST_ALL_ROLE)},t.hasPostAllPublicRole=function(e){return s(e,o.General.SYSTEM_POST_ALL_PUBLIC_ROLE)},t.profileListToMap=function(e){for(var t={},n=0;n=0;n--)if(t[n].id===e)return t.splice(n,1),t;return t},t.getSuggestionsSplitBy=c,t.getSuggestionsSplitByMultiple=_,t.nameSuggestionsForUser=E,t.filterProfilesStartingWithTerm=function(e,t){var n=t.toLowerCase();return n.startsWith("@")&&(n=n.substr(1)),e.filter((function(e){return!!e&&E(e).filter((function(e){return""!==e})).some((function(e){return e.startsWith(n)}))}))},t.filterProfilesMatchingWithTerm=function(e,t){var n=t.toLowerCase();return n.startsWith("@")&&(n=n.substr(1)),e.filter((function(e){return!!e&&E(e).filter((function(e){return""!==e})).some((function(e){return e.includes(n)}))}))},t.sortByUsername=function(e,t){var n=e.username,r=t.username;return n.localeCompare(r)},t.applyRolesFilters=function(e,t,n,r){var i=!(e.roles.includes(o.General.SYSTEM_ADMIN_ROLE)||e.roles.includes(o.General.SYSTEM_GUEST_ROLE));return!n.some(d.bind(this,e,i,r))&&(0===t.length||t.some(d.bind(this,e,i,r)))}},9921:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,_=n?Symbol.for("react.concurrent_mode"):60111,E=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,p=n?Symbol.for("react.lazy"):60116,S=n?Symbol.for("react.block"):60121,m=n?Symbol.for("react.fundamental"):60117,g=n?Symbol.for("react.responder"):60118,R=n?Symbol.for("react.scope"):60119;function T(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case _:case i:case s:case a:case d:return e;default:switch(e=e&&e.$$typeof){case l:case E:case p:case h:case u:return e;default:return t}}case o:return t}}}function A(e){return T(e)===_}t.AsyncMode=c,t.ConcurrentMode=_,t.ContextConsumer=l,t.ContextProvider=u,t.Element=r,t.ForwardRef=E,t.Fragment=i,t.Lazy=p,t.Memo=h,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return A(e)||T(e)===c},t.isConcurrentMode=A,t.isContextConsumer=function(e){return T(e)===l},t.isContextProvider=function(e){return T(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return T(e)===E},t.isFragment=function(e){return T(e)===i},t.isLazy=function(e){return T(e)===p},t.isMemo=function(e){return T(e)===h},t.isPortal=function(e){return T(e)===o},t.isProfiler=function(e){return T(e)===s},t.isStrictMode=function(e){return T(e)===a},t.isSuspense=function(e){return T(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===_||e===s||e===a||e===d||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===u||e.$$typeof===l||e.$$typeof===E||e.$$typeof===m||e.$$typeof===g||e.$$typeof===R||e.$$typeof===S)},t.typeOf=T},9864:(e,t,n)=>{"use strict";e.exports=n(9921)},2222:(e,t,n)=>{"use strict";function r(e,t){return e===t}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=null,o=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o1?t-1:0),r=1;ra,createSelectorCreator:()=>i,createStructuredSelector:()=>s,defaultMemoize:()=>o});var a=i(o);function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;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),r=0;r{e.exports=function(e,t,n){if(null===e!=(null===t))return!1;var r=Array.isArray(e);if(r!==Array.isArray(t))return!1;var o,i=typeof e;return i===typeof t&&("function"!==(o=i)&&"object"!==o?n?n(e,t):e===t:r?function(e,t,n){var r=e.length;if(r!==t.length)return!1;if(n){for(var o=0;o{"use strict";n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>R,__asyncGenerator:()=>g,__asyncValues:()=>T,__await:()=>m,__awaiter:()=>c,__classPrivateFieldGet:()=>O,__classPrivateFieldSet:()=>y,__createBinding:()=>E,__decorate:()=>s,__exportStar:()=>d,__extends:()=>o,__generator:()=>_,__importDefault:()=>v,__importStar:()=>C,__makeTemplateObject:()=>A,__metadata:()=>l,__param:()=>u,__read:()=>h,__rest:()=>a,__spread:()=>p,__spreadArrays:()=>S,__values:()=>f});var r=function(e,t){return r=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(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function l(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function _(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[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,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function p(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=o[e](t)).value instanceof m?Promise.resolve(n.value.v).then(u,l):c(i[0][2],n)}catch(e){c(i[0][3],e)}var n}function u(e){s("next",e)}function l(e){s("throw",e)}function c(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function R(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:m(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function T(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,o){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,o,(t=e[n](t)).done,t.value)}))}}}function A(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function C(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}function v(e){return e&&e.__esModule?e:{default:e}}function O(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function y(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={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";n(8674);const e=React;var t=n.n(e);const r=JSON.parse('\n{\n "id": "zoom",\n "name": "Zoom",\n "description": "Zoom audio and video conferencing plugin for Mattermost.",\n "homepage_url": "https://github.com/mattermost/mattermost-plugin-zoom",\n "support_url": "https://github.com/mattermost/mattermost-plugin-zoom/issues",\n "release_notes_url": "https://github.com/mattermost/mattermost-plugin-zoomreleases/tag/v1.8.0",\n "icon_path": "assets/profile.svg",\n "version": "1.8.0",\n "min_server_version": "5.37.0",\n "server": {\n "executables": {\n "darwin-amd64": "server/dist/plugin-darwin-amd64",\n "darwin-arm64": "server/dist/plugin-darwin-arm64",\n "linux-amd64": "server/dist/plugin-linux-amd64",\n "linux-arm64": "server/dist/plugin-linux-arm64",\n "windows-amd64": "server/dist/plugin-windows-amd64.exe"\n },\n "executable": ""\n },\n "webapp": {\n "bundle_path": "webapp/dist/main.js"\n },\n "settings_schema": {\n "header": "To set up this plugin you first need to create a Zoom App using a Zoom Administrator account. Visit the [documentation for configuration steps](https://mattermost.com/pl/mattermost-plugin-zoom).",\n "footer": "",\n "settings": [\n {\n "key": "ZoomURL",\n "display_name": "Zoom URL:",\n "type": "text",\n "help_text": "The URL for a self-hosted private cloud or on-prem Zoom server. For example, https://yourzoom.com. Leave blank if you\'re using Zoom\'s vendor-hosted SaaS service.",\n "placeholder": "https://zoom.us",\n "default": null,\n "hosting": ""\n },\n {\n "key": "ZoomAPIURL",\n "display_name": "Zoom API URL:",\n "type": "text",\n "help_text": "The API URL for a self-hosted private cloud or on-prem Zoom server. For example, https://api.yourzoom.com/v2. Leave blank if you\'re using Zoom\'s vendor-hosted SaaS service.",\n "placeholder": "https://api.zoom.us/v2",\n "default": null,\n "hosting": ""\n },\n {\n "key": "AccountLevelApp",\n "display_name": "OAuth by Account Level App:",\n "type": "bool",\n "help_text": "When true, only an account administrator has to log in. The rest of the users will automatically use their Mattermost email to authenticate when starting meetings.",\n "placeholder": "",\n "default": false,\n "hosting": ""\n },\n {\n "key": "OAuthClientID",\n "display_name": "Zoom OAuth Client ID:",\n "type": "text",\n "help_text": "The client ID for the OAuth app registered with Zoom. Leave blank if not using OAuth.",\n "placeholder": "",\n "default": null,\n "hosting": ""\n },\n {\n "key": "OAuthClientSecret",\n "display_name": "Zoom OAuth Client Secret:",\n "type": "text",\n "help_text": "The client secret for the OAuth app registered with Zoom. Leave blank if not using OAuth.",\n "placeholder": "",\n "default": null,\n "hosting": ""\n },\n {\n "key": "EncryptionKey",\n "display_name": "At Rest Token Encryption Key:",\n "type": "generated",\n "help_text": "The AES encryption key used to encrypt stored access tokens.",\n "regenerate_help_text": "Regenerates the encryption key for Zoom OAuth token. Regenerating the key invalidates your existing Zoom OAuth.",\n "placeholder": "",\n "default": null,\n "hosting": ""\n },\n {\n "key": "WebhookSecret",\n "display_name": "Webhook Secret:",\n "type": "generated",\n "help_text": "The secret used to authenticate the webhook to Mattermost.",\n "regenerate_help_text": "Regenerates the secret for the webhook URL endpoint. Regenerating the secret invalidates your existing Zoom plugin.",\n "placeholder": "",\n "default": null,\n "hosting": ""\n },\n {\n "key": "ZoomWebhookSecret",\n "display_name": "Zoom Webhook Secret:",\n "type": "text",\n "help_text": "Secret Token taken from Zoom\'s webhook configuration page",\n "placeholder": "",\n "default": null,\n "hosting": ""\n }\n ]\n }\n}\n');n(1817);const o=ReactRedux;var i=n(8781),a=n(1625);const s=PropTypes;var u=n.n(s);const l=ReactIntl;var c=n(9807);const _="icon video smallCreated with Sketch.";var E=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?g(L,--N):0,O--,10===I&&(O=1,v--),I}function P(){return I=N2||G(I)>3?"":" "}function x(e,t){for(;--t&&P()&&!(I<48||I>102||I>57&&I<65||I>70&&I<97););return w(e,F()+(t<6&&32==D()&&32==P()))}function j(e){for(;P();)switch(I){case e:return N;case 34:case 39:34!==e&&39!==e&&j(I);break;case 40:41===e&&j(e);break;case 92:P()}return N}function Y(e,t){for(;P()&&e+I!==57&&(e+I!==84||47!==D()););return"/*"+w(t,N-1)+"*"+f(47===e?e:P())}function J(e){for(;!G(D());)P();return w(e,N)}var W="-ms-",Q="-moz-",K="-webkit-",z="comm",$="rule",Z="decl",q="@keyframes";function X(e,t){for(var n="",r=A(e),o=0;o0&&T(L)-_&&C(d>32?ie(L+";",r,n,_-1):ie(S(L," ","")+";",r,n,_-2),u);break;case 59:L+=";";default:if(C(I=re(L,t,n,l,c,o,s,O,y=[],N=[],_),i),123===v)if(0===c)ne(L,t,I,I,y,i,_,s,N);else switch(99===E&&110===g(L,3)?100:E){case 100:case 108:case 109:case 115:ne(e,I,I,r&&C(re(e,I,I,0,0,o,s,O,o,y=[],_),N),o,N,_,s,r?y:N);break;default:ne(L,I,I,I,[""],N,0,s,N)}}l=c=d=0,p=A=1,O=L="",_=a;break;case 58:_=1+T(L),d=h;default:if(p<1)if(123==v)--p;else if(125==v&&0==p++&&125==M())continue;switch(L+=f(v),v*p){case 38:A=c>0?1:(L+="\f",-1);break;case 44:s[l++]=(T(L)-1)*A,A=1;break;case 64:45===D()&&(L+=B(P())),E=D(),c=_=T(O=L+=J(F())),v++;break;case 45:45===h&&2==T(L)&&(p=0)}}return i}function re(e,t,n,r,o,i,a,s,u,l,c){for(var _=o-1,E=0===o?i:[""],f=A(E),h=0,m=0,g=0;h0?E[T]+" "+C:S(C,/&\f/g,E[T])))&&(u[g++]=v);return b(e,t,n,0===o?$:s,u,l,c)}function oe(e,t,n){return b(e,t,n,z,f(I),R(e,2,-2),0)}function ie(e,t,n,r){return b(e,t,n,Z,R(e,0,r),R(e,r+1,-1),r)}var ae=function(e,t,n){for(var r=0,o=0;r=o,o=D(),38===r&&12===o&&(t[n]=1),!G(o);)P();return w(e,N)},se=new WeakMap,ue=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||se.get(n))&&!r){se.set(e,!0);for(var o=[],i=function(e,t){return H(function(e,t){var n=-1,r=44;do{switch(G(r)){case 0:38===r&&12===D()&&(t[n]=1),e[n]+=ae(N-1,t,n);break;case 2:e[n]+=B(r);break;case 4:if(44===r){e[++n]=58===D()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=f(r)}}while(r=P());return e}(k(e),t))}(t,o),a=n.props,s=0,u=0;s6)switch(g(e,t+1)){case 109:if(45!==g(e,t+4))break;case 102:return S(e,/(.+:)(.+)-([^]+)/,"$1"+K+"$2-$3$1"+Q+(108==g(e,t+3)?"$3":"$2-$3"))+e;case 115:return~m(e,"stretch")?ce(S(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==g(e,t+1))break;case 6444:switch(g(e,T(e)-3-(~m(e,"!important")&&10))){case 107:return S(e,":",":"+K)+e;case 101:return S(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+K+(45===g(e,14)?"inline-":"")+"box$3$1"+K+"$2$3$1"+W+"$2box$3")+e}break;case 5936:switch(g(e,t+11)){case 114:return K+e+W+S(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return K+e+W+S(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return K+e+W+S(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return K+e+W+e+e}return e}var _e=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Z:e.return=ce(e.value,e.length);break;case q:return X([U(e,{value:S(e.value,"@","@"+K)})],r);case $:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return X([U(e,{props:[S(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return X([U(e,{props:[S(t,/:(plac\w+)/,":"+K+"input-$1")]}),U(e,{props:[S(t,/:(plac\w+)/,":-moz-$1")]}),U(e,{props:[S(t,/:(plac\w+)/,W+"input-$1")]})],r)}return""}))}}],Ee=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||_e,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+u,styles:o,next:Ce}}(a,void 0,e.useContext(De));s+=n.key+"-"+u.name;var l={};for(var c in t)Ne.call(t,c)&&"css"!==c&&c!==Fe&&(l[c]=t[c]);return l.ref=r,l.className=s,e.createElement(e.Fragment,null,e.createElement(we,{cache:n,serialized:u,isStringTag:"string"==typeof i}),e.createElement(i,l))})),ke=Ge,He=(n(8679),function(t,n){var r=arguments;if(null==n||!Ne.call(n,"css"))return e.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=ke,i[1]=function(e,t){var n={};for(var r in t)Ne.call(t,r)&&(n[r]=t[r]);return n[Fe]=e,n}(t,n);for(var a=2;aHe("span",{"aria-label":e},He("i",{className:"icon icon-brand-zoom"}));return this.props.useSVG&&(t=t=>He("span",{"aria-label":t,style:e.iconStyle,dangerouslySetInnerHTML:{__html:""}})),He(l.FormattedMessage,{id:"zoom.camera.ariaLabel",defaultMessage:"zoom camera icon"},(e=>t(e)))}}Le=Be,be="propTypes",Ue={useSVG:u().bool.isRequired},(be="symbol"==typeof(Me=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(be))?Me:Me+"")in Le?Object.defineProperty(Le,be,{value:Ue,enumerable:!0,configurable:!0,writable:!0}):Le[be]=Ue;const Ve=(0,c.$Y)((()=>({iconStyle:{position:"relative",top:"-1px"}})));function xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function je(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(await async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r={method:"post",body:JSON.stringify(t),headers:n},o=await fetch(e,$e.je.getOptions(r));if(o.ok)return o.json();const i=await o.text();throw new Ze.ClientError($e.je.url,{message:i||"",status_code:o.status,url:e})}("".concat(e.url,"/api/v1/meetings").concat(o?"?force=true":""),{channel_id:t,topic:r,root_id:n})).meeting_url})),qe(this,"getChannelIdForThread",(async(e,t)=>(await(async e=>{const t=await fetch(e,$e.je.getOptions({method:"get"}));if(t.ok)return t.json();const n=await t.text();throw new Ze.ClientError($e.je.url,{message:n||"",status_code:t.status,url:e})})("".concat(e,"/api/v4/posts/").concat(t,"/thread"))).posts[t].channel_id))}setServerRoute(e){this.url=e+"/plugins/"+r.id}};function et(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return async(o,i)=>{try{const o=await Xe.startMeeting(e,t,r,n);o&&window.open(o)}catch(n){let r="Error occurred while starting the Zoom meeting.";if(n.message&&"{"===n.message[0]){const e=JSON.parse(n.message);e&&e.message&&(r="\nZoom error: "+e.message)}const a={id:"zoomPlugin"+Date.now(),create_at:Date.now(),update_at:0,edit_at:0,delete_at:0,is_pinned:!1,user_id:i().entities.users.currentUserId,channel_id:e,root_id:t,parent_id:"",original_id:"",message:r,type:"system_ephemeral",props:{},hashtags:"",pending_post_id:""};return o({type:ze.tk.RECEIVED_NEW_POST,data:a,channelId:e,rootId:t}),{error:n}}return{data:!0}}}function tt(e,t,n){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class nt extends t().PureComponent{constructor(e){super(e),this.state={}}renderPostWithMarkdown(e){const{formatText:t,messageHtmlToComponent:n}=window.PostUtils;return n(t(e,{atMentions:!0}),!1)}render(){const e=rt(this.props.theme),t=this.props.post,n=t.props||{};let r,o,i;if("STARTED"===n.meeting_status)r=t.message,this.props.fromBot&&(r="".concat(this.props.creatorName," has started a meeting")),o=He("a",{className:"btn btn-primary",style:e.button,rel:"noopener noreferrer",target:"_blank",href:n.meeting_link},He("i",{style:e.buttonIcon,dangerouslySetInnerHTML:{__html:_}}),"JOIN MEETING"),i=n.meeting_personal?He("span",null,"Personal Meeting ID (PMI): ",He("a",{rel:"noopener noreferrer",target:"_blank",href:n.meeting_link},n.meeting_id)):He("span",null,"Meeting ID : ",He("a",{rel:"noopener noreferrer",target:"_blank",href:n.meeting_link},n.meeting_id));else if("ENDED"===n.meeting_status){r=t.message,this.props.fromBot&&(r="".concat(this.props.creatorName," has ended the meeting")),i=n.meeting_personal?"Personal Meeting ID (PMI) : "+n.meeting_id:"Meeting ID : "+n.meeting_id;const a=new Date(t.create_at),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e.getDate(),r=e.getMonth();let o=e.getHours(),i=e.getMinutes(),a="";return t||(a=" AM",o>=12&&(a=" PM"),o%=12,o||(o=12)),i<10&&(i="0"+i),["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][r]+" "+n+" at "+o+":"+i+a}(a),u=Math.ceil((new Date(t.update_at)-a)/1e3/60);o=He("div",null,He("h2",{style:e.summary},"Meeting Summary"),He("span",{style:e.summaryItem},"Date: "+s),He("br",null),He("span",{style:e.summaryItem},"Meeting Length: "+u+" minute(s)"))}else"RECENTLY_CREATED"===n.meeting_status&&(r="".concat(this.props.creatorName," already created a call with a different provider recently"),n.meeting_provider&&(r="".concat(this.props.creatorName," already created a ").concat(n.meeting_provider," call recently")),i="What do you want to do?",o=He("div",null,He("a",{className:"btn btn-lg btn-primary",style:e.button,rel:"noopener noreferrer",onClick:()=>this.props.actions.startMeeting(t.channel_id,t.root_id,!0,n.meeting_topic)},"CREATE NEW MEETING"),He("a",{className:"btn btn-lg btn-primary",style:e.button,rel:"noopener noreferrer",target:"_blank",href:n.meeting_link},He("i",{style:e.buttonIcon,dangerouslySetInnerHTML:{__html:_}}),"JOIN EXISTING MEETING")));let a="Zoom Meeting";return n.meeting_topic&&(a=n.meeting_topic),a=this.renderPostWithMarkdown(a),r=this.renderPostWithMarkdown(r),He("div",{className:"attachment attachment--pretext"},He("div",{className:"attachment__thumb-pretext"},r),He("div",{className:"attachment__content"},He("div",{className:"clearfix attachment__container"},He("h5",{className:"mt-1",style:e.title},a),i,He("div",null,He("div",{style:e.body},o)))))}}tt(nt,"propTypes",{post:u().object.isRequired,compactDisplay:u().bool,isRHS:u().bool,useMilitaryTime:u().bool,theme:u().object.isRequired,creatorName:u().string.isRequired,currentChannelId:u().string.isRequired,fromBot:u().bool,actions:u().shape({startMeeting:u().func.isRequired}).isRequired}),tt(nt,"defaultProps",{mentionKeys:[],compactDisplay:!1,isRHS:!1});const rt=(0,c.$Y)((e=>({body:{overflowX:"auto",overflowY:"hidden",paddingRight:"5px",width:"100%"},title:{fontWeight:"600"},button:{fontFamily:"Open Sans",fontSize:"12px",fontWeight:"bold",letterSpacing:"1px",lineHeight:"19px",marginTop:"12px",marginRight:"12px",borderRadius:"4px",color:e.buttonColor},buttonIcon:{paddingRight:"8px",fill:e.buttonColor},summary:{fontFamily:"Open Sans",fontSize:"14px",fontWeight:"600",lineHeight:"26px",margin:"0",padding:"14px 0 0 0"},summaryItem:{fontFamily:"Open Sans",fontSize:"14px",lineHeight:"26px"}})));function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function it(e){for(var t=1;t{const t=(0,i.getConfig)(e);let n="";return t&&t.SiteURL&&(n=new URL(t.SiteURL).pathname,n&&"/"===n[n.length-1]&&(n=n.substr(0,n.length-1))),n};function lt(e){window.open(e.data.meeting_url)}window.registerPlugin(r.id,new class{initialize(e,t){if(e.registerChannelHeaderButtonAction(He(Je,null),(e=>{et(e.id)(t.dispatch,t.getState)}),"Start Zoom Meeting","Start Zoom Meeting"),e.registerAppBarComponent){const o=(n=t.getState(),ut(n)+"/plugins/"+r.id+"/public/app-bar-icon.png");e.registerAppBarComponent(o,(async e=>{if(e)et(e.id,"")(t.dispatch,t.getState);else{const e=t.getState(),n=null==e?void 0:e.entities.teams.currentTeamId,r=null==e?void 0:e.views.threads.selectedThreadIdInTeam[n],o=null==e?void 0:e.entities.general.config.SiteURL;et(await Xe.getChannelIdForThread(o,r),r)(t.dispatch,t.getState)}}),"Start Zoom Meeting")}var n;e.registerWebSocketEventHandler("custom_".concat(r.id,"_meeting_started"),lt),e.registerPostTypeComponent("custom_zoom",st),Xe.setServerRoute(ut(t.getState()))}})})()})();