(function(global){"use strict";varundefined=void0;varMAX_ARRAY_LENGTH=1e5;functionType(v){switch(typeofv){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:returnv===null?"null":"object"}}functionClass(v){returnObject.prototype.toString.call(v).replace(/^\[object *|\]$/g,"")}functionIsCallable(o){returntypeofo==="function"}functionToObject(v){if(v===null||v===undefined)throwTypeError();returnObject(v)}functionToInt32(v){returnv>>0}functionToUint32(v){returnv>>>0}varLN2=Math.LN2,abs=Math.abs,floor=Math.floor,log=Math.log,max=Math.max,min=Math.min,pow=Math.pow,round=Math.round;(function(){varorig=Object.defineProperty;vardom_only=!function(){try{returnObject.defineProperty({},"x",{})}catch(_){returnfalse}}();if(!orig||dom_only){Object.defineProperty=function(o,prop,desc){if(orig)try{returnorig(o,prop,desc)}catch(_){}if(o!==Object(o))throwTypeError("Object.defineProperty called on non-object");if(Object.prototype.__defineGetter__&&"get"indesc)Object.prototype.__defineGetter__.call(o,prop,desc.get);if(Object.prototype.__defineSetter__&&"set"indesc)Object.prototype.__defineSetter__.call(o,prop,desc.set);if("value"indesc)o[prop]=desc.value;returno}}})();functionmakeArrayAccessors(obj){if(obj.length>MAX_ARRAY_LENGTH)throwRangeError("Array too large for polyfill");functionmakeArrayAccessor(index){Object.defineProperty(obj,index,{get:function(){returnobj._getter(index)},set:function(v){obj._setter(index,v)},enumerable:true,configurable:false})}vari;for(i=0;i<obj.length;i+=1){makeArrayAccessor(i)}}functionas_signed(value,bits){vars=32-bits;returnvalue<<s>>s}functionas_unsigned(value,bits){vars=32-bits;returnvalue<<s>>>s}functionpackI8(n){return[n&255]}functionunpackI8(bytes){returnas_signed(bytes[0],8)}functionpackU8(n){return[n&255]}functionunpackU8(bytes){returnas_unsigned(bytes[0],8)}functionpackU8Clamped(n){n=round(Number(n));return[n<0?0:n>255?255:n&255]}functionpackI16(n){return[n>>8&255,n&255]}functionunpackI16(bytes){returnas_signed(bytes[0]<<8|bytes[1],16)}functionpackU16(n){return[n>>8&255,n&255]}functionunpackU16(bytes){returnas_unsigned(bytes[0]<<8|bytes[1],16)}functionpackI32(n){return[n>>24&255,n>>16&255,n>>8&255,n&255]}functionunpackI32(bytes){returnas_signed(bytes[0]<<24|bytes[1]<<16|bytes[2]<<8|bytes[3],32)}functionpackU32(n){return[n>>24&255,n>>16&255,n>>8&255,n&255]}functionunpackU32(bytes){returnas_unsigned(bytes[0]<<24|bytes[1]<<16|bytes[2]<<8|bytes[3],32)}functionpackIEEE754(v,ebits,fbits){varbias=(1<<ebits-1)-1,s,e,f,ln,i,bits,str,bytes;functionroundToEven(n){varw=floor(n),f=n-w;if(f<.5)returnw;if(f>.5)returnw+1;returnw%2?w+1:w}if(v!==v){e=(1<<ebits)-1;f=pow(2,fbits-1);s=0}elseif(v===Infinity||v===-Infinity){e=(1<<ebits)-1;f=0;s=v<0?1:0}elseif(v===0){e=0;f=0;s=1/v===-Infinity?1:0}else{s=v<0;v=abs(v);if(v>=pow(2,1-bias)){e=min(floor(log(v)/LN2),1023);f=roundToEven(v/pow(2,e)*pow(2,fbits));if(f/pow(2,fbits)>=2){e=e+1;f=1}if(e>bias){e=(1<<ebits)-1;f=0}else{e=e+bias;f=f-pow(2,fbits)}}else{e=0;f=roundToEven(v/pow(2,1-bias-fbits))}}bits=[];for(i=fbits;i;i-=1){bits.push(f%2?1:0);f=floor(f/2)}for(i=ebits;i;i-=1){bits.push(e%2?1:0);e=floor(e/2)}bits.push(s?1:0);bits.reverse();str=bits.join("");bytes=[];while(str.length){bytes.push(parseInt(str.substring(0,8),2));str=str.substring(8)}returnbytes}functionunpackIEEE754(bytes,ebits,fbits){varbits=[],i,j,b,str,bias,s,e,f;for(i=bytes.length;i;i-=1){b=bytes[i-1];for(j=8;j;j-=1){bits.push(b%2?1:0);b=b>>1}}bits.reverse();str=bits.join("");bias=(1<<ebits-1)-1;s=parseInt(str.substring(0,1),2)?-1:1;e=parseInt(str.substring(1,1+ebits),2);f=parseInt(str.substring(1+ebits),2);if(e===(1<<ebits)-1){returnf!==0?NaN:s*Infinity}elseif(e>0){returns*pow(2,e-bias)*(1+f/pow(2,fbits))}elseif(f!==0){returns*pow(2,-(bias-1))*(f/pow(2,fbits))}else{returns<0?-0:0}}functionunpackF64(b){returnunpackIEEE754(b,11,52)}functionpackF64(v){returnpackIEEE754(v,11,52)}functionunpackF32(b){returnunpackIEEE754(b,8,23)}functionpackF32(v){returnpackIEEE754(v,8,23)}(function(){functionArrayBuffer(length){length=ToInt32(length);if(length<0)throwRangeError("ArrayBuffer size is not a small enough positive integer.");Object.defineProperty(this,"byteLength",{value:length});Object.defineProperty(this,"_bytes",{value:Array(length)});for(vari=0;i<length;i+=1)this._bytes[i]=0}global.ArrayBuffer=global.ArrayBuffer||ArrayBuffer;function$TypedArray$(){if(!arguments.length||typeofarguments[0]!=="object"){returnfunction(length){length=ToInt32(length);if(length<0)throwRangeError("length is not a small enough positive integer.");Object.defineProperty(this,"length",{value:length});Object.defineProperty(this,"byteLength",{value:length*this.BYTES_PER_ELEMENT});Object.defineProperty(this,"buffer",{value:newArrayBuffer(this.byteLength)});Object.defineProperty(this,"byteOffset",{value:0})}.apply(this,arguments)}if(arguments.length>=1&&Type(arguments[0])==="object"&&arguments[0]instanceof$TypedArray$){returnfunction(typedArray){if(this.constructor!==typedArray.constructor)throwTypeError();varbyteLength=typedArray.length*this.BYTES_PER_ELEMENT;Object.defineProperty(this,"buffer",{value:newArrayBuffer(byteLength)});Object.defineProperty(this,"byteLength",{value:byteLength});Object.defineProperty(this,"byteOffset",{value:0});Object.defineProperty(this,"length",{value:typedArray.length});for(vari=0;i<this.length;i+=1)this._setter(i,typedArray._getter(i))}.apply(this,arguments)}if(arguments.length>=1&&Type(arguments[0])==="object"&&!(arguments[0]instanceof$TypedArray$)&&!(arguments[0]instanceofArrayBuffer||Class(arguments[0])==="ArrayBuffer")){returnfunction(array){varbyteLength=array.length*this.BYTES_PER_ELEMENT;Object.defineProperty(this,"buffer",{value:newArrayBuffer(byteLength)});Object.defineProperty(this,"byteLength",{value:byteLength});Object.defineProperty(this,"byteOffset",{value:0});Object.defineProperty(this,"length",{value:array.length});for(vari=0;i<this.length;i+=1){vars=array[i];this._setter(i,Number(s))}}.apply(this,arguments)}if(arguments.length>=1&&Type(arguments[0])==="object"&&(arguments[0]instanceofArrayBuffer||Class(arguments[0])==="ArrayBuffer")){returnfunction(buffer,byteOffset,length){byteOffset=ToUint32(byteOffset);if(byteOffset>buffer.byteLength)throwRangeError("byteOffset out of range");if(byteOffset%this.BYTES_PER_ELEMENT)throwRangeError("buffer length minus the byteOffset is not a multiple of the element size.");if(length===undefined){varbyteLength=buffer.byteLength-byteOffset;if(byteLength%this.BYTES_PER_ELEMENT)throwRangeError("length of buffer minus byteOffset not a multiple of the element size");length=byteLength/this.BYTES_PER_ELEMENT}else{length=ToUint32(length);byteLength=length*this.BYTES_PER_ELEMENT}if(byteOffset+byteLength>buffer.byteLength)throwRangeError("byteOffset and length reference an area beyond the end of the buffer");Object.defineProperty(this,"buffer",{value:buffer});Object.defineProperty(this,"byteLength",{value:byteLength});Object.defineProperty(this,"byteOffset",{value:byteOffset});Object.defineProperty(this,"length",{value:length})}.apply(this,arguments)}throwTypeError()}Object.defineProperty($TypedArray$,"from",{value:function(iterable){returnnewthis(iterable)}});Object.defineProperty($TypedArray$,"of",{value:function(){returnnewthis(arguments)}});var$TypedArrayPrototype$={};$TypedArray$.prototype=$TypedArrayPrototype$;Object.defineProperty($TypedArray$.prototype,"_getter",{value:function(index){if(arguments.length<1)throwSyntaxError("Not enough arguments");index=ToUint32(index);if(index>=this.length)returnundefined;varbytes=[],i,o;for(i=0,o=this.byteOffset+index*this.BYTES_PER_ELEMENT;i<this.BYTES_PER_ELEMENT;i+=1,o+=1){bytes.push(this.buffer._bytes[o])}returnthis._unpack(bytes)}});Object.defineProperty($TypedArray$.prototype,"get",{value:$TypedArray$.prototype._getter});Object.defineProperty($TypedArray$.prototype,"_setter",{value:function(index,value){if(arguments.length<2)throwSyntaxError("Not enough arguments");index=ToUint32(index);if(index>=this.length)return;varbytes=this._pack(value),i,o;for(i=0,o=this.byteOffset+index*this.BYTES_PER_ELEMENT;i<this.BYTES_PER_ELEMENT;i+=1,o+=1){this.buffer._bytes[o]=bytes[i]}}});Object.defineProperty($TypedArray$.prototype,"constructor",{value:$TypedArray$});Object.defineProperty($TypedArray$.prototype,"copyWithin",{value:function(target,start){varend=arguments[2];varo=ToObject(this);varlenVal=o.length;varlen=ToUint32(lenVal);len=max(len,0);varrelativeTarget=ToInt32(target);varto;if(relativeTarget<0)to=max(len+relativeTarget,0);elseto=min(relativeTarget,len);varrelativeStart=ToInt32(start);varfrom;if(relativeStart<0)from=max(len+relativeStart,0);elsefrom=min(relativeStart,len);varrelativeEnd;if(end===undefined)relativeEnd=len;elserelativeEnd=ToInt32(end);varfinal;if(relativeEnd<0)final=max(len+relativeEnd,0);elsefinal=min(relativeEnd,len);varcount=min(final-from,len-to);vardirection;if(from<to&&to<from+count){direction=-1;from=from+count-1;to=to+count-1}else{direction=1}while(count>0){o._setter(to,o._getter(from));from=from+direction;to=to+direction;count=count-1}returno}});Object.defineProperty($TypedArray$.prototype,"every",{value:function(callbackfn){if(this===undefined||this===null)throwTypeError();vart=Object(this);varlen=ToUint32(t.length);if(!IsCallable(callbackfn))throwTypeError();varthisArg=arguments[1];for(vari=0;i<len;i++){if(!callbackfn.call(thisArg,t._getter(i),i,t))returnfalse}returntrue}});Object.defineProperty($TypedArray$.prototype,"fill",{value:function(value){varstart=arguments[1],end=arguments[2];varo=ToObject(this);varlenVal=o.length;varlen=ToUint32(lenVal);len=max(len,0);varrelativeStart=ToInt32(start);vark;if(relativeStart<0)k=max(len+relativeStart,0);elsek=min(relativeStart,len);varrelativeEnd;if(end===undefined)relativeEnd=len;elserelativeEnd=ToInt32(end);varfinal;if(relativeEnd<0)final=max(len+relativeEnd,0);elsefinal=min(relativeEnd,len);while(k<final){o._setter(k,value);k+=1}returno}});Object.defineProperty($TypedArray$.prototype,"filter",{value:function(callbackfn){if(this===undefined||this===null)throwTypeError();vart=Object(this);varlen=ToUint32(t.length);if(!IsCallable(callbackfn))throwTypeError();varres=[];varthisp=arguments[1];for(vari=0;i<len;i++){varval=t._getter(i);if(callbackfn.call(thisp,val,i,t))res.push(val)}returnnewthis.constructor(res)}});Object.defineProperty($TypedArray$.prototype,"find",{value:function(predicate){varo=ToObject(this);varlenValue=o.length;varlen=ToUint32(lenValue);if(!IsCallable(predicate))throwTypeError();vart=arguments.length>1?arguments[1]:undefined;vark=0;while(k<len){varkValue=o._getter(k);vartestResult=predicate.call(t,kValue,k,o);if(Boolean(testResult))returnkValue;++k}returnundefined}});Object.defineProperty($TypedArray$.prototype,"findIndex",{value:function(predicate){varo=ToObject(this);varlenValue=o.length;varlen=ToUint32(lenValue);if(!IsCallable(predicate))throwTypeError();vart=arguments.length>1?arguments[1]:undefined;vark=0;while(k<len){varkValue=o._getter(k);vartestResult=predicate.call(t,kValue,k,o);if(Boolean(testResult))returnk;++k}return-1}});Object.defineProperty($TypedArray$.prototype,"forEach",{value:function(callbackfn){if(this===undefined||this===null)throwTypeError();vart=Object(this);varlen=ToUint32(t.length);if(!IsCallable(callbackfn))throwTypeError();varthisp=arguments[1];for(vari=0;i<len;i++)callbackfn.call(thisp,t._getter(i),i,t)}});Object.defineProperty($TypedArray$.prototype,"indexOf",{value:function(searchElement){if(this===undefined||this===null)throwTypeError();vart=Object(this);varlen=ToUint32(t.length);if(len===0)return-1;varn=0;if(arguments.length>0){n=Number(arguments[1]);if(n!==n){n=0}elseif(n!==0&&n!==1/0&&n!==-(1/0)){n=(n>0||-1)*floor(abs(n))}}if(n>=len)return-1;vark=n>=0?n:max(len-abs(n),0);for(;k<len;k++){if(t._getter(k)===searchElement){returnk}}return-1}});Object.defineProperty($TypedArray$.prototype,"join",{value:function(separator){if(this===undefined||this===null)throwTypeError();vart=Object(this);varlen=ToUint32(t.length);vartmp=Array(len);for(vari=0;i<len;++i)tmp[i]=t._getter(i);returntmp.join(separator===undefined?",":separator)}});Object.defineProperty($TypedArray$.prototype,"lastIndexOf",{value:function(searchElement){if(this===undefined||this===null)throwTypeError();vart=Object(this);varlen=ToUint32(t.length);if(len===0)return-1;varn=len;if(arguments.length>1){n=Number(arguments[1]);if(n!==n){n=0}elseif(n!==0&&n!==1/0&&n!==-(1/0)){n=(n>0||-1)*floor(abs(n))}}vark=n>=0?min(n,len-1):len-abs(n);for(;k>=0;k--){if(t._getter(k)===searchElement)returnk}return-1}});Object.defineProperty($TypedArray$.prototype,"map",{value:function(callbackfn){if(this===undefined||this===null)throwTypeError();vart=Object(this);varlen=ToUint32(t.length);if(!IsCallable(callbackfn))throwTypeError();varres=[];res.length=len;varthisp=arguments[1];for(vari=0;i<len;i++)res[i]=callbackfn.call(thisp,t._getter(i),i,t);returnnewthis.constructor(res)}});Object.defineProperty($TypedArray$.prototype,"reduce",{value:function(callbackfn){if(this===undefined||this===null)throwTypeError();vart=Object(this);varlen=ToUint32(t.length);if(!IsCallable(callbackfn))throwTypeError();if(len===0&&arguments.length===1)throwTypeError();vark=0;varaccumulator;if(arguments.length>=2){accumulator=arguments[1]}else{accumulator=t._getter(k++)}while(k<len){accumulator=callbackfn.call(undefined,accumulator,t._getter(k),k,t);k++}returnaccumulator}});Object.defineProperty($TypedArray$.prototype,"reduceRight",{value:function(callbackfn){if(this===undefined||this===null)throwTypeError();vart=Object(this);varlen=ToUint32(t.length);if(!IsCallable(callbackfn))throwTypeError();if(len===0&&arguments.length===1)throwTypeError();vark=len-1;varaccumulator;if(arguments.length>=2){accumulator=arguments[1]}else{accumulator=t._getter(k--)}while(k>=0){accumulator=callbackfn.call(undefined,accumulator,t._getter(k),k,t);k--}returnaccumulator}});Object.defineProperty($TypedArray$.prototype,"reverse",{value:function(){if(this===undefined||this===null)throwTypeError();vart=Object(this);varlen=ToUint32(t.length);varhalf=floor(len/2);for(vari=0,j=len-1;i<half;++i,--j){vartmp=t._getter(i);t._setter(i,t._getter(j));t._setter(j,tmp)}returnt}});Object.defineProperty($TypedArray$.prototype,"set",{value:function(index,value){if(arguments.length<1)throwSyntaxError("Not enough arguments");vararray,sequence,offset,len,i,s,d,byteOffset,byteLength,tmp;if(typeofarguments[0]==="object"&&arguments[0].constructor===this.constructor){array=arguments[0];offset=ToUint32(arguments[1]);if(offset+array.length>this.length){throwRangeError("Offset plus length of array is out of range")}byteOffset=this.byteOffset+offset*this.BYTES_PER_ELEMENT;byteLength=array.length*this.BYTES_PER_ELEMENT;if(array.buffer===this.buffer){tmp=[];for(i=0,s=array.byteOffset;i<byteLength;i+=1,s+=1){tmp[i]=array.buffer._bytes[s]}for(i=0,d=byteOffset;i<byteLength;i+=1,d+=1){this.buffer._bytes[d]=tmp[i]}}else{for(i=0,s=array.byteOffset,d=byteOffset;i<byteLength;i+=1,s+=1,d+=1){this.buffer._bytes[d]=array.buffer._bytes[s]}}}elseif(typeofarguments[0]==="object"&&typeofarguments[0].length!=="undefined"){sequence=arguments[0];len=ToUint32(sequence.length);offset=ToUint32(arguments[1]);if(offset+len>this.length){throwRangeError("Offset plus length of array is out of range")}for(i=0;i<len;i+=1){s=sequence[i];this._setter(offset+i,Number(s))}}else{throwTypeError("Unexpected argument type(s)")}}});Object.defineProperty($TypedArray$.prototype,"slice",{value:function(start,end){varo=ToObject(this);varlenVal=o.length;varlen=ToUint32(lenVal);varrelativeStart=ToInt32(start);vark=relativeStart<0?max(len+relativeStart,0):min(relativeStart,len);varrelativeEnd=end===undefined?len:ToInt32(end);varfinal=relativeEnd<0?max(len+relativeEnd,0):min(relativeEnd,len);varcount=final-k;varc=o.constructor;vara=newc(count);varn=0;while(k<final){varkValue=o._getter(k);a._setter(n,kValue);++k;++n}returna}});Object.defineProperty($TypedArray$.prototype,"some",{value:function(callbackfn){if(this===undefined||this===null)throwTypeError();vart=Object(this);varlen=ToUint32(t.length);if(!IsCallable(callbackfn))throwTypeError();varthisp=arguments[1];for(vari=0;i<len;i++){if(callbackfn.call(thisp,t._getter(i),i,t)){returntrue}}returnfalse}});Object.defineProperty($TypedArray$.prototype,"sort",{value:function(comparefn){if(this===undefined||this===null)throwTypeError();vart=Object(this);varlen=ToUint32(t.length);vartmp=Array(len);for(vari=0;i<len;++i)tmp[i]=t._getter(i);if(comparefn)tmp.sort(comparefn);elsetmp.sort();for(i=0;i<len;++i)t._setter(i,tmp[i]);returnt}});Object.defineProperty($TypedArray$.prototype,"subarray",{value:function(start,end){functionclamp(v,min,max){returnv<min?min:v>max?max:v}start=ToInt32(start);end=ToInt32(end);if(arguments.length<1){start=0}if(arguments.length<2){end=this.length}if(start<0){start=this.length+start}if(end<0){end=this.length+end}start=clamp(start,0,this.length);end=clamp(end,0,this.length);varlen=end-start;if(len<0){len=0}returnnewthis.constructor(this.buffer,this.byteOffset+start*this.BYTES_PER_ELEMENT,len)}});functionmakeTypedArray(elementSize,pack,unpack){varTypedArray=function(){Object.defineProperty(this,"constructor",{value:TypedArray});$TypedArray$.apply(this,arguments);makeArrayAccessors(this)};if("__proto__"inTypedArray){TypedArray.__proto__=$TypedArray$}else{TypedArray.from=$TypedArray$.from;TypedArray.of=$TypedArray$.of}TypedArray.BYTES_PER_ELEMENT=elementSize;varTypedArrayPrototype=function(){};TypedArrayPrototype.prototype=$TypedArrayPrototype$;TypedArray.prototype=newTypedArrayPrototype;Object.defineProperty(TypedArray.prototype,"BYTES_PER_ELEMENT",{value:elementSize});Object.defineProperty(TypedArray.prototype,"_pack",{value:pack});Object.defineProperty(TypedArray.prototype,"_unpack",{value:unpack});returnTypedArray}varInt8Array=makeTypedArray(1,packI8,unpackI8);varUint8Array=makeTypedArray(1,packU8,unpackU8);varUint8ClampedArray=makeTypedArray(1,packU8Clamped,unpackU8);varInt16Array=makeTypedArray(2,packI16,unpackI16);varUint16Array=makeTypedArray(2,packU16,unpackU16);varInt32Array=makeTypedArray(4,packI32,unpackI32);varUint32Array=makeTypedArray(4,packU32,unpackU32);varFloat32Array=makeTypedArray(4,packF32,unpackF32);varFloat64Array=makeTypedArray(8,packF64,unpackF64);global.Int8Array=global.Int8Array||Int8Array;global.Uint8Array=global.Uint8Array||Uint8Array;global.Uint8ClampedArray=global.Uint8ClampedArray||Uint8ClampedArray;global.Int16Array=global.Int16Array||Int16Array;global.Uint16Array=global.Uint16Array||Uint16Array;global.Int32Array=global.Int32Array||Int32Array;global.Uint32Array=global.Uint32Array||Uint32Array;global.Float32Array=global.Float32Array||Float32Array;global.Float64Array=global.Float64Array||Float64Array})();(function(){functionr(array,index){returnIsCallable(array.get)?array.get(index):array[index]}varIS_BIG_ENDIAN=function(){varu16array=newUint16Array([4660]),u8array=newUint8Array(u16array.buffer);returnr(u8array,0)===18}();functionDataView(buffer,byteOffset,byteLength){if(!(bufferinstanceofArrayBuffer||Class(buffer)==="ArrayBuffer"))throwTypeError();byteOffset=ToUint32(byteOffset);if(byteOffset>buffer.byteLength)throwRangeError("byteOffset out of range");if(byteLength===undefined)byteLength=buffer.byteLength-byteOffset;elsebyteLength=ToUint32(byteLength);if(byteOffset+byteLength>buffer.byteLength)throwRangeError("byteOffset and length reference an area beyond the end of the buffer");Object.defineProperty(this,"buffer",{value:buffer});Object.defineProperty(this,"byteLength",{value:byteLength});Object.defineProperty(this,"byteOffset",{value:byteOffset})}functionmakeGetter(arrayType){returnfunctionGetViewValue(byteOffset,littleEndian){byteOffset=ToUint32(byteOffset);if(byteOffset+arrayType.BYTES_PER_ELEMENT>this.byteLength)throwRangeError("Array index out of range");byteOffset+=this.byteOffset;varuint8Array=newUint8Array(this.buffer,byteOffset,arrayType.BYTES_PER_ELEMENT),bytes=[];for(vari=0;i<arrayType.BYTES_PER_ELEMENT;i+=1)bytes.push(r(uint8Array,i));if(Boolean(littleEndian)===Boolean(IS_BIG_ENDIAN))bytes.reverse();returnr(newarrayType(newUint8Array(bytes).buffer),0)}}Object.defineProperty(DataView.prototype,"getUint8",{value:makeGetter(Uint8Array)});Object.defineProperty(DataView.prototype,"getInt8",{value:makeGetter(Int8Array)});Object.defineProperty(DataView.prototype,"getUint16",{value:makeGetter(Uint16Array)});Object.defineProperty(DataView.prototype,"getInt16",{value:makeGetter(Int16Array)});Object.defineProperty(DataView.prototype,"getUint32",{value:makeGetter(Uint32Array)});Object.defineProperty(DataView.prototype,"getInt32",{value:makeGetter(Int32Array)});Object.defineProperty(DataView.prototype,"getFloat32",{value:makeGetter(Float32Array)});Object.defineProperty(DataView.prototype,"getFloat64",{value:makeGetter(Float64Array)});functionmakeSetter(arrayType){returnfunctionSetViewValue(byteOffset,value,littleEndian){byteOffset=ToUint32(byteOffset);if(byteOffset+arrayType.BYTES_PER_ELEMENT>this.byteLength)throwRangeError("Array index out of range");vartypeArray=newarrayType([value]),byteArray=newUint8Array(typeArray.buffer),bytes=[],i,byteView;for(i=0;i<arrayType.BYTES_PER_ELEMENT;i+=1)bytes.push(r(byteArray,i));if(Boolean(littleEndian)===Boolean(IS_BIG_ENDIAN))bytes.reverse();byteView=newUint8Array(this.buffer,byteOffset,arrayType.BYTES_PER_ELEMENT);byteView.set(bytes)}}Object.defineProperty(DataView.prototype,"setUint8",{value:makeSetter(Uint8Array)});Object.defineProperty(DataView.prototype,"setInt8",{value:makeSetter(Int8Array)});Object.defineProperty(DataView.prototype,"setUint16",{value:makeSetter(Uint16Array)});Object.defineProperty(DataView.prototype,"setInt16",{value:makeSetter(Int16Array)});Object.defineProperty(DataView.prototype,"setUint32",{value:makeSetter(Uint32Array)});Object.defineProperty(DataView.prototype,"setInt32",{value:makeSetter(Int32Array)});Object.defineProperty(DataView.prototype,"setFloat32",{value:makeSetter(Float32Array)});Object.defineProperty(DataView.prototype,"setFloat64",{value:makeSetter(Float64Array)});global.DataView=global.DataView||DataView})()})(this);
\title{function draws sankey diagram and saves html pages for sankey}
\usage{
plot_sankey(links, nodes, p_baseline, Png)
plot_sankey(links, nodes, p_baseline, png)
}
\arguments{
\item{links}{a data frame object with the links between the nodes. It should have include the Source and Target for each link. An optional Value variable can be included to specify how close the nodes are to one another.}