/*! For license information please see 3407.c96094ecc6d08de6677e.js.LICENSE.txt */ (self.webpackChunkmattermost_webapp=self.webpackChunkmattermost_webapp||[]).push([[3407],{6659:t=>{"use strict";var e=Object.prototype.hasOwnProperty,i="~";function n(){}function r(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function s(t,e,n,s,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new r(n,s||t,o),h=i?i+e:e;return t._events[h]?t._events[h].fn?t._events[h]=[t._events[h],a]:t._events[h].push(a):(t._events[h]=a,t._eventsCount++),t}function o(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(i=!1)),a.prototype.eventNames=function(){var t,n,r=[];if(0===this._eventsCount)return r;for(n in t=this._events)e.call(t,n)&&r.push(i?n.slice(1):n);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},a.prototype.listeners=function(t){var e=i?i+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,s=n.length,o=new Array(s);r1||1!==n)){for(;e!==document.body&&e!==document;){var r=window.getComputedStyle(e);if(!r)break;if("INPUT"===e.nodeName&&"range"===e.getAttribute("type"))return;var s=r.getPropertyValue("-webkit-overflow-scrolling"),o=r.getPropertyValue("overflow-y"),a=parseInt(r.getPropertyValue("height"),10),h="touch"===s&&("auto"===o||"scroll"===o),u=e.scrollHeight>e.offsetHeight;if(h&&u){var c=t.touches?t.touches[0].screenY:t.screenY,p=i<=c&&0===e.scrollTop,l=i>=c&&e.scrollHeight-e.scrollTop===a;return void((p||l)&&t.preventDefault())}e=e.parentNode}t.preventDefault()}},a=function(t){i=t.touches?t.touches[0].screenY:t.screenY},h=function(){window.addEventListener("touchstart",a,!!r&&{passive:!1}),window.addEventListener("touchmove",o,!!r&&{passive:!1}),n=!0},u=document.createElement("div");document.documentElement.appendChild(u),u.style.WebkitOverflowScrolling="touch";var c="getComputedStyle"in window&&"touch"===window.getComputedStyle(u)["-webkit-overflow-scrolling"];document.documentElement.removeChild(u),c&&h();var p={enable:h,disable:function(){window.removeEventListener("touchstart",a,!1),window.removeEventListener("touchmove",o,!1),n=!1},isEnabled:function(){return n},isScrollSupported:c};t.exports&&(t.exports=p),"function"==typeof e.define?(0,e.define)("iNoBounce",[],(function(){return p})):e.iNoBounce=p}(this)},75859:function(t,e,i){var n=i(27061);t.exports=function(){"use strict";var t=void 0;"undefined"!=typeof window&&(t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t||void 0===n||"node"!==n.title||(t=setImmediate);var e=t=t||function(t){window.setTimeout(t,1e3/60)},i=Array.prototype.concat,r=Array.prototype.slice;function s(t){return e(t)}function o(t,e){var i=t.indexOf(e);-1!==i&&t.splice(i,1)}var a={};function h(t){if(a[t])return a[t];var e=t.replace("#","");3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var i=e.match(/.{2}/g);if(!i||i.length<3)throw new Error("Expected a color string of format #rrggbb");var n={r:parseInt(i[0],16),g:parseInt(i[1],16),b:parseInt(i[2],16)};return a[t]=n,n}function u(t,e,i){var n=t.toString(16),r=e.toString(16),s=i.toString(16);return"#"+(n=n.length<2?"0"+n:n)+(r=r.length<2?"0"+r:r)+(s.length<2?"0"+s:s)}var c=Object.freeze({bind:function(t,e){for(var n=arguments.length,s=Array(n>2?n-2:0),o=2;o3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=arguments[5],o=h(e),a=h(i),c=Math.floor(p(t,n,r,o.r,a.r)),l=Math.floor(p(t,n,r,o.g,a.g)),f=Math.floor(p(t,n,r,o.b,a.b));return s?"rgb("+c+","+l+","+f+")":u(c,l,f)},degreesToRadians:function(t){return t*Math.PI/180},radiansToDegrees:function(t){return 180*t/Math.PI}});function f(t){return 3.62*(t-30)+194}function d(t){return 3*(t-8)+25}var v=Object.freeze({tensionFromOrigamiValue:f,origamiValueFromTension:function(t){return(t-194)/3.62+30},frictionFromOrigamiValue:d,origamiFromFriction:function(t){return(t-25)/3+8}}),m=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},g=Object.assign||function(t){for(var e=1;e18&&t<=44?this.b3Friction2(t):this.b3Friction3(t)},t}(),b=function(){function t(e,i){m(this,t),this.tension=e,this.friction=i}return t.fromOrigamiTensionAndFriction=function(e,i){return new t(f(e),d(i))},t.fromBouncinessAndSpeed=function(e,i){var n=new T(e,i);return t.fromOrigamiTensionAndFriction(n.bouncyTension,n.bouncyFriction)},t.coastingConfigWithOrigamiFriction=function(e){return new t(0,d(e))},t}();b.DEFAULT_ORIGAMI_SPRING_CONFIG=b.fromOrigamiTensionAndFriction(40,7);var I=function t(){m(this,t),this.position=0,this.velocity=0},C=function(){function t(e){m(this,t),this.listeners=[],this._startValue=0,this._currentState=new I,this._displacementFromRestThreshold=.001,this._endValue=0,this._overshootClampingEnabled=!1,this._previousState=new I,this._restSpeedThreshold=.001,this._tempState=new I,this._timeAccumulator=0,this._wasAtRest=!0,this._id="s"+t._ID++,this._springSystem=e}return t.prototype.destroy=function(){this.listeners=[],this._springSystem.deregisterSpring(this)},t.prototype.getId=function(){return this._id},t.prototype.setSpringConfig=function(t){return this._springConfig=t,this},t.prototype.getSpringConfig=function(){return this._springConfig},t.prototype.setCurrentValue=function(t,e){return this._startValue=t,this._currentState.position=t,e||this.setAtRest(),this.notifyPositionUpdated(!1,!1),this},t.prototype.getStartValue=function(){return this._startValue},t.prototype.getCurrentValue=function(){return this._currentState.position},t.prototype.getCurrentDisplacementDistance=function(){return this.getDisplacementDistanceForState(this._currentState)},t.prototype.getDisplacementDistanceForState=function(t){return Math.abs(this._endValue-t.position)},t.prototype.setEndValue=function(t){if(this._endValue===t&&this.isAtRest())return this;this._startValue=this.getCurrentValue(),this._endValue=t,this._springSystem.activateSpring(this.getId());for(var e=0,i=this.listeners.length;e0&&(te||t>e&&this.getCurrentValue()t.MAX_DELTA_TIME_SEC&&(r=t.MAX_DELTA_TIME_SEC),this._timeAccumulator+=r;for(var s=this._springConfig.tension,o=this._springConfig.friction,a=this._currentState.position,h=this._currentState.velocity,u=this._tempState.position,c=this._tempState.velocity,p=void 0,l=void 0,f=void 0,d=void 0,v=void 0,m=void 0,g=void 0,y=void 0;this._timeAccumulator>=t.SOLVER_TIMESTEP_SEC;)this._timeAccumulator-=t.SOLVER_TIMESTEP_SEC,this._timeAccumulator0&&this._interpolate(this._timeAccumulator/t.SOLVER_TIMESTEP_SEC),(this.isAtRest()||this._overshootClampingEnabled&&this.isOvershooting())&&(this._springConfig.tension>0?(this._startValue=this._endValue,this._currentState.position=this._endValue):(this._endValue=this._currentState.position,this._startValue=this._endValue),this.setVelocity(0),n=!0);var _=!1;this._wasAtRest&&(this._wasAtRest=!1,_=!0);var S=!1;n&&(this._wasAtRest=!0,S=!0),this.notifyPositionUpdated(_,S)}},t.prototype.notifyPositionUpdated=function(t,e){for(var i=0,n=this.listeners.length;i0;)this._idleSpringIndices.pop();for(var i=0,n=this._activeSprings.length;i0;){var s=this._idleSpringIndices.pop();s>=0&&this._activeSprings.splice(s,1)}},t.prototype.loop=function(t){var e=void 0;-1===this._lastTimeMillis&&(this._lastTimeMillis=t-1);var i=t-this._lastTimeMillis;this._lastTimeMillis=t;var n=0,r=this.listeners.length;for(n=0;n{"use strict";i.d(e,{Z:()=>j});var n=i(6659);class r extends Error{constructor(t){super(t),this.name="TimeoutError"}}class s extends Error{constructor(t){super(),this.name="AbortError",this.message=t}}const o=t=>void 0===globalThis.DOMException?new s(t):new DOMException(t),a=t=>{const e=void 0===t.reason?o("This operation was aborted."):t.reason;return e instanceof Error?e:o(e)};var h,u=function(t,e,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)};class c{constructor(){h.set(this,[])}enqueue(t,e){const i={priority:(e={priority:0,...e}).priority,run:t};if(this.size&&u(this,h,"f")[this.size-1].priority>=e.priority)return void u(this,h,"f").push(i);const n=function(t,e,i){let n=0,r=t.length;for(;r>0;){const i=Math.trunc(r/2);let o=n+i;s=t[o],e.priority-s.priority<=0?(n=++o,r-=i+1):r=i}var s;return n}(u(this,h,"f"),i);u(this,h,"f").splice(n,0,i)}dequeue(){const t=u(this,h,"f").shift();return null==t?void 0:t.run}filter(t){return u(this,h,"f").filter((e=>e.priority===t.priority)).map((t=>t.run))}get size(){return u(this,h,"f").length}}h=new WeakMap;var p,l,f,d,v,m,g,y,_,S,w,E,T,b,I,C,A,O,M,R,V,P,F,L,x,k,N=function(t,e,i,n,r){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?r.call(t,i):r?r.value=i:e.set(t,i),i},D=function(t,e,i,n){if("a"===i&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?n:"a"===i?n.call(t):n?n.value:e.get(t)};const W=new r;class z extends Error{}class j extends n{constructor(t){var e,i,n,r;if(super(),p.add(this),l.set(this,void 0),f.set(this,void 0),d.set(this,0),v.set(this,void 0),m.set(this,void 0),g.set(this,0),y.set(this,void 0),_.set(this,void 0),S.set(this,void 0),w.set(this,void 0),E.set(this,0),T.set(this,void 0),b.set(this,void 0),I.set(this,void 0),Object.defineProperty(this,"timeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!("number"==typeof(t={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:c,...t}).intervalCap&&t.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${null!==(i=null===(e=t.intervalCap)||void 0===e?void 0:e.toString())&&void 0!==i?i:""}\` (${typeof t.intervalCap})`);if(void 0===t.interval||!(Number.isFinite(t.interval)&&t.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${null!==(r=null===(n=t.interval)||void 0===n?void 0:n.toString())&&void 0!==r?r:""}\` (${typeof t.interval})`);N(this,l,t.carryoverConcurrencyCount,"f"),N(this,f,t.intervalCap===Number.POSITIVE_INFINITY||0===t.interval,"f"),N(this,v,t.intervalCap,"f"),N(this,m,t.interval,"f"),N(this,S,new t.queueClass,"f"),N(this,w,t.queueClass,"f"),this.concurrency=t.concurrency,this.timeout=t.timeout,N(this,I,!0===t.throwOnTimeout,"f"),N(this,b,!1===t.autoStart,"f")}get concurrency(){return D(this,T,"f")}set concurrency(t){if(!("number"==typeof t&&t>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${t}\` (${typeof t})`);N(this,T,t,"f"),D(this,p,"m",x).call(this)}async add(t,e={}){return new Promise(((i,n)=>{D(this,S,"f").enqueue((async()=>{var r,s,o;N(this,E,(s=D(this,E,"f"),++s),"f"),N(this,d,(o=D(this,d,"f"),++o),"f");try{if(null===(r=e.signal)||void 0===r?void 0:r.aborted)return void n(new z("The task was aborted."));const s=void 0===this.timeout&&void 0===e.timeout?t({signal:e.signal}):function(t,e,i,n){let r;const s=new Promise(((s,o)=>{if("number"!=typeof e||1!==Math.sign(e))throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${e}\``);if(e!==Number.POSITIVE_INFINITY){if((n={customTimers:{setTimeout,clearTimeout},...n}).signal){const{signal:t}=n;t.aborted&&o(a(t)),t.addEventListener("abort",(()=>{o(a(t))}))}r=n.customTimers.setTimeout.call(void 0,(()=>{try{s(i())}catch(t){o(t)}}),e),(async()=>{try{s(await t)}catch(t){o(t)}finally{n.customTimers.clearTimeout.call(void 0,r)}})()}else s(t)}));return s.clear=()=>{clearTimeout(r),r=void 0},s}(Promise.resolve(t({signal:e.signal})),void 0===e.timeout?this.timeout:e.timeout,(()=>{(void 0===e.throwOnTimeout?D(this,I,"f"):e.throwOnTimeout)&&n(W)})),o=await s;i(o),this.emit("completed",o)}catch(t){n(t),this.emit("error",t)}D(this,p,"m",O).call(this)}),e),D(this,p,"m",P).call(this),this.emit("add")}))}async addAll(t,e){return Promise.all(t.map((async t=>this.add(t,e))))}start(){return D(this,b,"f")?(N(this,b,!1,"f"),D(this,p,"m",x).call(this),this):this}pause(){N(this,b,!0,"f")}clear(){N(this,S,new(D(this,w,"f")),"f")}async onEmpty(){0!==D(this,S,"f").size&&await D(this,p,"m",k).call(this,"empty")}async onSizeLessThan(t){D(this,S,"f").sizeD(this,S,"f").size{D(this,p,"m",R).call(this)}),e),"f"),!0;N(this,d,D(this,l,"f")?D(this,E,"f"):0,"f")}return!1},P=function(){if(0===D(this,S,"f").size)return D(this,y,"f")&&clearInterval(D(this,y,"f")),N(this,y,void 0,"f"),D(this,p,"m",M).call(this),!1;if(!D(this,b,"f")){const t=!D(this,p,"a",V);if(D(this,p,"a",C)&&D(this,p,"a",A)){const e=D(this,S,"f").dequeue();return!!e&&(this.emit("active"),e(),t&&D(this,p,"m",F).call(this),!0)}}return!1},F=function(){D(this,f,"f")||void 0!==D(this,y,"f")||(N(this,y,setInterval((()=>{D(this,p,"m",L).call(this)}),D(this,m,"f")),"f"),N(this,g,Date.now()+D(this,m,"f"),"f"))},L=function(){0===D(this,d,"f")&&0===D(this,E,"f")&&D(this,y,"f")&&(clearInterval(D(this,y,"f")),N(this,y,void 0,"f")),N(this,d,D(this,l,"f")?D(this,E,"f"):0,"f"),D(this,p,"m",x).call(this)},x=function(){for(;D(this,p,"m",P).call(this););},k=async function(t,e){return new Promise((i=>{const n=()=>{e&&!e()||(this.off(t,n),i())};this.on(t,n)}))}}}]); //# sourceMappingURL=3407.c96094ecc6d08de6677e.js.map