(function(e){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=e();elseif("function"==typeofdefine&&define.amd)define([],e);else{vart;t="undefined"==typeofwindow?"undefined"==typeofglobal?"undefined"==typeofself?this:self:global:window,t.SimplePeer=e()}})(function(){vart=Math.floor,n=Math.abs,r=Math.pow;returnfunction(){functiond(s,e,n){functiont(o,i){if(!e[o]){if(!s[o]){varl="function"==typeofrequire&&require;if(!i&&l)returnl(o,!0);if(r)returnr(o,!0);varc=newError("Cannot find module '"+o+"'");throwc.code="MODULE_NOT_FOUND",c}vara=e[o]={exports:{}};s[o][0].call(a.exports,function(e){varr=s[o][1][e];returnt(r||e)},a,a.exports,d,s,e,n)}returne[o].exports}for(varr="function"==typeofrequire&&require,a=0;a<n.length;a++)t(n[a]);returnt}returnd}()({1:[function(e,t,n){'use strict';functionr(e){vart=e.length;if(0<t%4)thrownewError("Invalid string. Length must be a multiple of 4");varn=e.indexOf("=");-1===n&&(n=t);varr=n===t?0:4-n%4;return[n,r]}functiona(e,t,n){return3*(t+n)/4-n}functiono(e){vart,n,o=r(e),d=o[0],s=o[1],l=newp(a(e,d,s)),c=0,f=0<s?d-4:d;for(n=0;n<f;n+=4)t=u[e.charCodeAt(n)]<<18|u[e.charCodeAt(n+1)]<<12|u[e.charCodeAt(n+2)]<<6|u[e.charCodeAt(n+3)],l[c++]=255&t>>16,l[c++]=255&t>>8,l[c++]=255&t;return2===s&&(t=u[e.charCodeAt(n)]<<2|u[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=u[e.charCodeAt(n)]<<10|u[e.charCodeAt(n+1)]<<4|u[e.charCodeAt(n+2)]>>2,l[c++]=255&t>>8,l[c++]=255&t),l}functiond(e){returnc[63&e>>18]+c[63&e>>12]+c[63&e>>6]+c[63&e]}functions(e,t,n){for(varr,a=[],o=t;o<n;o+=3)r=(16711680&e[o]<<16)+(65280&e[o+1]<<8)+(255&e[o+2]),a.push(d(r));returna.join("")}functionl(e){for(vart,n=e.length,r=n%3,a=[],o=16383,d=0,l=n-r;d<l;d+=o)a.push(s(e,d,d+o>l?l:d+o));return1===r?(t=e[n-1],a.push(c[t>>2]+c[63&t<<4]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],a.push(c[t>>10]+c[63&t>>4]+c[63&t<<2]+"=")),a.join("")}n.byteLength=function(e){vart=r(e),n=t[0],a=t[1];return3*(n+a)/4-a},n.toByteArray=o,n.fromByteArray=l;for(varc=[],u=[],p="undefined"==typeofUint8Array?Array:Uint8Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g=0,h=f.length;g<h;++g)c[g]=f[g],u[f.charCodeAt(g)]=g;u[45]=62,u[95]=63},{}],2:[function(){},{}],3:[function(e,t,n){(function(t){/*!