"use strict";(self.webpackChunklernplattform_frontend=self.webpackChunklernplattform_frontend||[]).push([[5982],{934602:function(t,e,h){Object.defineProperty(e,"__esModule",{value:!0}),e.RawSha256=void 0;var s=h(765494),i=function(){function t(){this.state=Int32Array.from(s.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return t.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var e=0,h=t.byteLength;if(this.bytesHashed+=h,8*this.bytesHashed>s.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;h>0;)this.buffer[this.bufferLength++]=t[e++],h--,this.bufferLength===s.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},t.prototype.digest=function(){if(!this.finished){var t=8*this.bytesHashed,e=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),h=this.bufferLength;if(e.setUint8(this.bufferLength++,128),h%s.BLOCK_SIZE>=s.BLOCK_SIZE-8){for(var i=this.bufferLength;i<s.BLOCK_SIZE;i++)e.setUint8(i,0);this.hashBuffer(),this.bufferLength=0}for(i=this.bufferLength;i<s.BLOCK_SIZE-8;i++)e.setUint8(i,0);e.setUint32(s.BLOCK_SIZE-8,Math.floor(t/4294967296),!0),e.setUint32(s.BLOCK_SIZE-4,t),this.hashBuffer(),this.finished=!0}var f=new Uint8Array(s.DIGEST_LENGTH);for(i=0;i<8;i++)f[4*i]=this.state[i]>>>24&255,f[4*i+1]=this.state[i]>>>16&255,f[4*i+2]=this.state[i]>>>8&255,f[4*i+3]=this.state[i]>>>0&255;return f},t.prototype.hashBuffer=function(){for(var t=this.buffer,e=this.state,h=e[0],i=e[1],f=e[2],r=e[3],n=e[4],a=e[5],u=e[6],o=e[7],b=0;b<s.BLOCK_SIZE;b++){if(b<16)this.temp[b]=(255&t[4*b])<<24|(255&t[4*b+1])<<16|(255&t[4*b+2])<<8|255&t[4*b+3];else{var p=this.temp[b-2],L=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,d=((p=this.temp[b-15])>>>7|p<<25)^(p>>>18|p<<14)^p>>>3;this.temp[b]=(L+this.temp[b-7]|0)+(d+this.temp[b-16]|0)}var y=(((n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7))+(n&a^~n&u)|0)+(o+(s.KEY[b]+this.temp[b]|0)|0)|0,E=((h>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10))+(h&i^h&f^i&f)|0;o=u,u=a,a=n,n=r+y|0,r=f,f=i,i=h,h=y+E|0}e[0]+=h,e[1]+=i,e[2]+=f,e[3]+=r,e[4]+=n,e[5]+=a,e[6]+=u,e[7]+=o},t}();e.RawSha256=i}}]);