(this.webpackChunkdiscord_app=this.webpackChunkdiscord_app||[]).push([[49595],{722182:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.copy=function(t){var e=document.body;if(null==e)throw new Error("[Utils] ClipboardUtils.copy(): assert failed: document.body != null");var n=document.createRange(),r=window.getSelection(),i=document.createElement("textarea");i.value=t;i.contentEditable="true";i.style.visibility="none";e.appendChild(i);n.selectNodeContents(i);null==r||r.removeAllRanges();null==r||r.addRange(n);i.focus();i.setSelectionRange(0,t.length);var o=document.execCommand("copy");e.removeChild(i);return o}},792085:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.astToString=function(t){return n(t).join("")};e.constrainAst=function t(e,n){void 0===n&&(n={limit:200});if(Array.isArray(e))for(var r=e.length,o=0;o{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={reactParserFor:!0,astParserFor:!0};e.reactParserFor=e.astParserFor=void 0;var i,o=n(792085);Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(r,t)||t in e&&e[t]===o[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}));var a=(i=n(194201).Z).reactParserFor;e.reactParserFor=a;var c=i.astParserFor;e.astParserFor=c},194201:(t,e,n)=>{"use strict";({value:!0});e.Z=void 0;var r,i=(r=n(120053))&&r.__esModule?r:{default:r},o=n(792085);function a(){a=Object.assign||function(t){for(var e=1;e>>24]<<24^a[r>>16&255]<<16^a[r>>8&255]<<8^a[255&r],0==t%e&&(r=r<<8^r>>>24^s<<24,s=s<<1^283*(s>>7)));i[t]=i[t-e]^r}for(e=0;t;e++,t--)r=i[3&e?t:t-4],o[e]=4>=t||4>e?r:c[0][a[r>>>24]]^c[1][a[r>>16&255]]^c[2][a[r>>8&255]]^c[3][a[255&r]]};n.cipher.aes.prototype={encrypt:function(t){return r(this,t,0)},decrypt:function(t){return r(this,t,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var t,e,n,r,i,o,a,c=this.s[0],s=this.s[1],h=c[4],l=s[4],u=[],d=[];for(t=0;256>t;t++)d[(u[t]=t<<1^283*(t>>7))^t]=t;for(e=n=0;!h[e];e^=r||1,n=d[n]||1)for(o=(o=n^n<<1^n<<2^n<<3^n<<4)>>8^255&o^99,h[e]=o,l[o]=e,a=16843009*(i=u[t=u[r=u[e]]])^65537*t^257*r^16843008*e, i=257*u[o]^16843008*o,t=0;4>t;t++)c[t][e]=i=i<<24^i>>>8,s[t][o]=a=a<<24^a>>>8;for(t=0;5>t;t++)c[t]=c[t].slice(0),s[t]=s[t].slice(0)}};function r(t,e,r){if(4!==e.length)throw new n.exception.invalid("invalid aes block size");var i=t.b[r],o=e[0]^i[0],a=e[r?3:1]^i[1],c=e[2]^i[2];e=e[r?1:3]^i[3];var s,h,l,u,d=i.length/4-2,f=4,p=[0,0,0,0];t=(s=t.s[r])[0];var m=s[1],y=s[2],g=s[3],v=s[4];for(u=0;u>>24]^m[a>>16&255]^y[c>>8&255]^g[255&e]^i[f],h=t[a>>>24]^m[c>>16&255]^y[e>>8&255]^g[255&o]^i[f+1],l=t[c>>>24]^m[e>>16&255]^y[o>>8&255]^g[255&a]^i[f+2],e=t[e>>>24]^m[o>>16&255]^y[a>>8&255]^g[255&c]^i[f+3],f+=4,o=s,a=h,c=l;for(u=0;4>u;u++)p[r?3&-u:u]=v[o>>>24]<<24^v[a>>16&255]<<16^v[c>>8&255]<<8^v[255&e]^i[f++],s=o,o=a,a=c,c=e,e=s;return p}n.bitArray={bitSlice:function(t,e,r){t=n.bitArray.$(t.slice(e/32),32-(31&e)).slice(1);return void 0===r?t:n.bitArray.clamp(t,r-e)},extract:function(t,e,n){var r=Math.floor(-e-n&31) ;return(-32&(e+n-1^e)?t[e/32|0]<<32-r^t[e/32+1|0]>>>r:t[e/32|0]>>>r)&(1<>e-1,1));return t},partial:function(t,e,n){return 32===t?e:(n?0|e:e<<32-t)+1099511627776*t},getPartial:function(t){return Math.round(t/1099511627776)||32},equal:function(t,e){if(n.bitArray.bitLength(t)!==n.bitArray.bitLength(e))return!1;var r,i=0;for(r=0;r>>e),r=t[o]<<32-e;o=t.length?t[t.length-1]:0 ;t=n.bitArray.getPartial(o);i.push(n.bitArray.partial(e+t&31,32>>24|n>>>8&65280|(65280&n)<<8|n<<24;return t}};n.codec.utf8String={fromBits:function(t){var e,r,i="",o=n.bitArray.bitLength(t);for(e=0;e>>8>>>8>>>8),r<<=8;return decodeURIComponent(escape(i))},toBits:function(t){t=unescape(encodeURIComponent(t));var e,r=[],i=0;for(e=0;e>>c)>>>o),c(i=l.indexOf(t.charAt(r)))){if(!e)try{return n.codec.base32hex.toBits(t)}catch(t){}throw new n.exception.invalid("this isn't "+d+"!")}h>c?(h-=c,s.push(u^i>>>h),u=i<>>o)>>>26),6>o?(c=t[r]<<6-o,o+=26,r++):(c<<=6,o-=6);for(;3&i.length&&!e;)i+="=";return i},toBits:function(t,e){t=t.replace(/\s|=/g,"");var r,i,o=[],a=0,c=n.codec.base64.B,s=0;e&&(c=c.substr(0,62)+"-_");for(r=0;r(i=c.indexOf(t.charAt(r))))throw new n.exception.invalid("this isn't base64!");26>>a),s=i<<32-a):s^=i<<32-(a+=6)}56&a&&o.push(n.bitArray.partial(56&a,s,1));return o}};n.codec.base64url={fromBits:function(t){return n.codec.base64.fromBits(t,1,1)},toBits:function(t){return n.codec.base64.toBits(t,1)}};n.hash.sha256=function(t){this.b[0]||this.O();t?(this.F=t.F.slice(0),this.A=t.A.slice(0), this.l=t.l):this.reset()};n.hash.sha256.hash=function(t){return(new n.hash.sha256).update(t).finalize()};n.hash.sha256.prototype={blockSize:512,reset:function(){this.F=this.Y.slice(0);this.A=[];this.l=0;return this},update:function(t){"string"==typeof t&&(t=n.codec.utf8String.toBits(t));var e,r=this.A=n.bitArray.concat(this.A,t);e=this.l;if(9007199254740991<(t=this.l=e+n.bitArray.bitLength(t)))throw new n.exception.invalid("Cannot hash more than 2^53 - 1 bits");if("undefined"!=typeof Uint32Array){var o=new Uint32Array(r),a=0;for(e=512+e-(512+e&511);e<=t;e+=512)i(this,o.subarray(16*a,16*(a+1))),a+=1;r.splice(0,16*a)}else for(e=512+e-(512+e&511);e<=t;e+=512)i(this,r.splice(0,16));return this},finalize:function(){var t,e=this.A,r=this.F;for(t=(e=n.bitArray.concat(e,[n.bitArray.partial(1,1)])).length+2;15&t;t++)e.push(0);e.push(Math.floor(this.l/4294967296));for(e.push(0|this.l);e.length;)i(this,e.splice(0,16));this.reset();return r},Y:[],b:[],O:function(){function t(t){ return 4294967296*(t-Math.floor(t))|0}for(var e,n,r=0,i=2;64>r;i++){n=!0;for(e=2;e*e<=i;e++)if(0==i%e){n=!1;break}n&&(8>r&&(this.Y[r]=t(Math.pow(i,.5))),this.b[r]=t(Math.pow(i,1/3)),r++)}}};function i(t,e){var n,r,i,o=t.F,a=t.b,c=o[0],s=o[1],h=o[2],l=o[3],u=o[4],d=o[5],f=o[6],p=o[7];for(n=0;64>n;n++)16>n?r=e[n]:(r=e[n+1&15],i=e[n+14&15],r=e[15&n]=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(i>>>17^i>>>19^i>>>10^i<<15^i<<13)+e[15&n]+e[n+9&15]|0),r=r+p+(u>>>6^u>>>11^u>>>25^u<<26^u<<21^u<<7)+(f^u&(d^f))+a[n],p=f,f=d,d=u,u=l+r|0,l=h,h=s,c=r+((s=c)&h^l&(s^h))+(s>>>2^s>>>13^s>>>22^s<<30^s<<19^s<<10)|0;o[0]=o[0]+c|0;o[1]=o[1]+s|0;o[2]=o[2]+h|0;o[3]=o[3]+l|0;o[4]=o[4]+u|0;o[5]=o[5]+d|0;o[6]=o[6]+f|0;o[7]=o[7]+p|0}n.mode.ccm={name:"ccm",G:[],listenProgress:function(t){n.mode.ccm.G.push(t)},unListenProgress:function(t){-1<(t=n.mode.ccm.G.indexOf(t))&&n.mode.ccm.G.splice(t,1)},fa:function(t){var e,r=n.mode.ccm.G.slice();for(e=0;eh)throw new n.exception.invalid("ccm: iv must be at least 7 bytes");for(a=2;4>a&&l>>>8*a;a++);a<15-h&&(a=15-h);r=s.clamp(r,8*(15-a));e=n.mode.ccm.V(t,e,r,i,o,a);c=n.mode.ccm.C(t,c,r,e,o,a);return s.concat(c.data,c.tag)},decrypt:function(t,e,r,i,o){o=o||64;i=i||[];var a=n.bitArray,c=a.bitLength(r)/8,s=a.bitLength(e),h=a.clamp(e,s-o),l=a.bitSlice(e,s-o);s=(s-o)/8;if(7>c)throw new n.exception.invalid("ccm: iv must be at least 7 bytes");for(e=2;4>e&&s>>>8*e;e++);e<15-c&&(e=15-c);r=a.clamp(r,8*(15-e));h=n.mode.ccm.C(t,h,r,l,o,e);t=n.mode.ccm.V(t,h.data,r,i,o,e);if(!a.equal(h.tag,t))throw new n.exception.corrupt("ccm: tag doesn't match");return h.data},na:function(t,e,r,i,o,a){var c=[],s=n.bitArray,h=s.i;i=[s.partial(8,(e.length?64:0)|i-2<<2|a-1)];(i=s.concat(i,r))[3]|=o;i=t.encrypt(i) ;if(e.length)for(65279>=(r=s.bitLength(e)/8)?c=[s.partial(16,r)]:4294967295>=r&&(c=s.concat([s.partial(16,65534)],[r])),c=s.concat(c,e),e=0;eo||16u&&(n.mode.ccm.fa(c/h),u+=d),r[3]++,o=t.encrypt(r),e[c]^=o[0],e[c+1]^=o[1],e[c+2]^=o[2],e[c+3]^=o[3];return{tag:i,data:s.clamp(e,l)}}};n.mode.ocb2={name:"ocb2", encrypt:function(t,e,r,i,o,a){if(128!==n.bitArray.bitLength(r))throw new n.exception.invalid("ocb iv must be 128 bits");var c,s=n.mode.ocb2.S,h=n.bitArray,l=h.i,u=[0,0,0,0];r=s(t.encrypt(r));var d,f=[];i=i||[];o=o||64;for(c=0;c+4o.bitLength(r)&&(s=a(s,i(s)),r=o.concat(r,[-2147483648,0,0,0]));c=a(c,r);return t.encrypt(a(i(a(s,i(s))),c))},S:function(t){return[t[0]<<1^t[1]>>>31,t[1]<<1^t[2]>>>31,t[2]<<1^t[3]>>>31,t[3]<<1^135*(t[0]>>>31)]}};n.mode.gcm={name:"gcm",encrypt:function(t,e,r,i,o){var a=e.slice(0);e=n.bitArray;i=i||[];t=n.mode.gcm.C(!0,t,a,i,r,o||128);return e.concat(t.data,t.tag)},decrypt:function(t,e,r,i,o){var a=e.slice(0),c=n.bitArray,s=c.bitLength(a);i=i||[];(o=o||128)<=s?(e=c.bitSlice(a,s-o),a=c.bitSlice(a,0,s-o)):(e=a,a=[]);t=n.mode.gcm.C(!1,t,a,i,r,o);if(!c.equal(t.tag,e))throw new n.exception.corrupt("gcm: tag doesn't match") ;return t.data},ka:function(t,e){var r,i,o,a,c,s=n.bitArray.i;o=[0,0,0,0];a=e.slice(0);for(r=0;128>r;r++){(i=0!=(t[Math.floor(r/32)]&1<<31-r%32))&&(o=s(o,a));c=0!=(1&a[3]);for(i=3;0>>1|(1&a[i-1])<<31;a[0]>>>=1;c&&(a[0]^=-520093696)}return o},j:function(t,e,r){var i,o=r.length;e=e.slice(0);for(i=0;io&&(t=e.hash(t));for(r=0;ri||0>r)throw new n.exception.invalid("invalid params to pbkdf2");"string"==typeof t&&(t=n.codec.utf8String.toBits(t));"string"==typeof e&&(e=n.codec.utf8String.toBits(e));t=new(o=o||n.misc.hmac)(t);var a,c,s,h,l=[],u=n.bitArray;for(h=1;32*l.length<(i||1);h++){o=a=t.encrypt(u.concat(e,[h]));for(c=1;ca;a++)i.push(4294967296*Math.random()|0);for(a=0;a=1<this.o&&(this.o=h);this.P++;this.b=n.hash.sha256.hash(this.b.concat(i));this.L=new n.cipher.aes(this.b);for(r=0;4>r&&(this.h[r]=this.h[r]+1|0,!this.h[r]);r++);}for(r=0;r>>=1;this.c[s].update([i,this.N++,2,e,c,t.length].concat(t))}break;case"string":void 0===e&&(e=t.length);this.c[s].update([i,this.N++,3,e,c,t.length]);this.c[s].update(t);break;default:l=1}if(l)throw new n.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[s]+=e;this.f+=e;h===this.u&&(this.isReady()!==this.u&&o("seeded",Math.max(this.o,this.f)),o("progress",this.getProgress()))},isReady:function(t){t=this.T[void 0!==t?t:this.M];return this.o&&this.o>=t?this.m[0]>this.ba&&(new Date).valueOf()>this.Z?this.J|this.I:this.I:this.f>=t?this.J|this.u:this.u},getProgress:function(t){t=this.T[t||this.M] ;return this.o>=t||this.f>t?1:this.f/t},startCollectors:function(){if(!this.D){this.a={loadTimeCollector:h(this,this.ma),mouseCollector:h(this,this.oa),keyboardCollector:h(this,this.la),accelerometerCollector:h(this,this.ea),touchCollector:h(this,this.qa)};if(window.addEventListener)window.addEventListener("load",this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1),window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else{if(!document.attachEvent)throw new n.exception.bug("can't attach event");document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector)}this.D=!0}},stopCollectors:function(){this.D&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1), window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.D=!1)},addEventListener:function(t,e){this.K[t][this.ga++]=e},removeEventListener:function(t,e){var n,r,i=this.K[t],o=[];for(r in i)i.hasOwnProperty(r)&&i[r]===e&&o.push(r);for(n=0;ne&&(t.h[e]=t.h[e]+1|0,!t.h[e]);e++);return t.L.encrypt(t.h)}function h(t,e){return function(){e.apply(t,arguments)}}n.random=new n.prng(6);t:try{var l,u,d,f;if(f=void 0!==t&&t.exports){var p;try{p=require("crypto")}catch(t){p=null}f=u=p} if(f&&u.randomBytes)l=u.randomBytes(128),l=new Uint32Array(new Uint8Array(l).buffer),n.random.addEntropy(l,1024,"crypto['randomBytes']");else if("undefined"!=typeof window&&"undefined"!=typeof Uint32Array){d=new Uint32Array(32);if(window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(d);else{if(!window.msCrypto||!window.msCrypto.getRandomValues)break t;window.msCrypto.getRandomValues(d)}n.random.addEntropy(d,1024,"crypto['getRandomValues']")}}catch(t){"undefined"!=typeof window&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(t))}n.json={defaults:{v:1,iter:1e4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(t,e,r,i){r=r||{};i=i||{};var o,a=n.json,c=a.g({iv:n.random.randomWords(4,0)},a.defaults);a.g(c,r);r=c.adata;"string"==typeof c.salt&&(c.salt=n.codec.base64.toBits(c.salt));"string"==typeof c.iv&&(c.iv=n.codec.base64.toBits(c.iv)) ;if(!n.mode[c.mode]||!n.cipher[c.cipher]||"string"==typeof t&&100>=c.iter||64!==c.ts&&96!==c.ts&&128!==c.ts||128!==c.ks&&192!==c.ks&&256!==c.ks||2>c.iv.length||4=e.iter||64!==e.ts&&96!==e.ts&&128!==e.ts||128!==e.ks&&192!==e.ks&&256!==e.ks||!e.iv||2>e.iv.length||4