!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";function r(t){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}if(n.r(e),"undefined"==typeof o)var o={};o.MD5=function(t){function e(t){var e=(t>>>0).toString(16);return"00000000".substr(0,8-e.length)+e}function n(t,e,n){return t&e|~t&n}function o(t,e,n){return n&t|~n&e}function a(t,e,n){return t^e^n}function i(t,e,n){return e^(t|~n)}function u(t,e){return t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]}function f(t){for(var e=[],n=0;n>>32-a),m=i}var r=l.length;l.push(128);var f=l.length%64;if(f>56){for(var s=0;s<64-f;s++)l.push(0);f=l.length%64}for(s=0;s<56-f;s++)l.push(0);l=l.concat(function(t){for(var e=[],n=0;n<8;n++)e.push(255&t),t>>>=8;return e}(8*r));var c=1732584193,g=4023233417,p=2562383102,y=271733878,m=0,v=0,T=0,E=0;for(s=0;s=0;f--)i=255&(u=arguments[f]),i<<=8,i|=255&(u>>>=8),i<<=8,i|=255&(u>>>=8),i<<=8,a+=e(i|=u>>>=8);return a}(y,p,g,c).toUpperCase()}()};var a={log:function(){},error:function(){},count:function(){},info:function(){}};(function(){function t(){}t.createFromElementId=function(e){for(var n=document.getElementById(e),r="",o=n.firstChild;o;)3===o.nodeType&&(r+=o.textContent),o=o.nextSibling;var a=new t;return a.type=n.type,a.source=r,a},t.createFromSource=function(e,n){var r=new t;return r.type=e,r.source=n,r}})(),function(){function t(t){this.gl=t,this.program=this.gl.createProgram()}t.prototype={attach:function(t){this.gl.attachShader(this.program,t.shader)},link:function(){this.gl.linkProgram(this.program)},use:function(){this.gl.useProgram(this.program)},getAttributeLocation:function(t){return this.gl.getAttribLocation(this.program,t)},setMatrixUniform:function(t,e){var n=this.gl.getUniformLocation(this.program,t);this.gl.uniformMatrix4fv(n,!1,e)}}}(),function(){var t=null;function e(t,e,n){this.gl=t,this.size=e,this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),this.format=n||t.LUMINANCE,t.texImage2D(t.TEXTURE_2D,0,this.format,e.w,e.h,0,this.format,t.UNSIGNED_BYTE,null),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE)}e.prototype={fill:function(t,e){var n=this.gl;n.bindTexture(n.TEXTURE_2D,this.texture),e?n.texSubImage2D(n.TEXTURE_2D,0,0,0,this.size.w,this.size.h,this.format,n.UNSIGNED_BYTE,t):n.texImage2D(n.TEXTURE_2D,0,this.format,this.size.w,this.size.h,0,this.format,n.UNSIGNED_BYTE,t)},bind:function(e,n,r){var o=this.gl;t||(t=[o.TEXTURE0,o.TEXTURE1,o.TEXTURE2]),o.activeTexture(t[e]),o.bindTexture(o.TEXTURE_2D,this.texture),o.uniform1i(o.getUniformLocation(n.program,r),e)}}}();var i=function(){var t=48e3,e=4,n=15,r=[255,511,1023,2047,4095,8191,16383,32767],o=8e3,i=null;function u(t){var o,a,i;return t>=0?o=213:(o=85,t=-t-8),(a=function(t,e){for(var n=0,r=e.length;n=8?127^o:(i=a<>4&n:t>>a+3&n)^o)}function f(){}return f.prototype={setSampleRate:function(e){t=e},encode:function(e){var n=null;null!==i?((n=new Float32Array(e.length+i.length)).set(i,0),n.set(e,i.length)):n=e,n=function(e,n){if(n===t)return e;n>t&&a.log("The rate of device show be smaller than local sample rate");for(var r=t/n,o=Math.floor(e.length/r),u=new Float32Array(o),f=0,s=0;f>>8*(o-1-a)&255;else for(var i=0;i>>8*i&255;return r}function c(){n=new i}return c.prototype={setSampleRate:function(t){n.setSampleRate(t)},getRTPPacket:function(i){var c=n.encode(i),h=0;(e=new Uint8Array(r.length+40+c.length+8)).set([36,t],h),h+=2,e.set(l(40+c.length+8,4,!0),h),h+=4,e.set(o,h),h+=4,e.set([240],h),h+=1,e.set([0],h),h+=1,e.set([1],h),h+=1,e.set([0],h),h+=1,u>65535&&(u=240),e.set(l(u),h),h+=4,u++;var g=l(40+c.length+8);e.set(g,h),h+=4;var p=new Date,y=(p.getFullYear()-2e3<<26)+(p.getMonth()+1<<22)+(p.getDate()<<17)+(p.getHours()<<12)+(p.getMinutes()<<6)+p.getSeconds(),m=p.getTime(),v=null===s?0:m-s;s=m,(f+=v)>65535&&(f=65535-f),e.set(l(y),h),h+=4,e.set(l(f,2),h),h+=2,e.set([16],h),h+=1;var T=function(t,e){for(var n=0,r=e;r