Files
bundesmessenger-ios/Riot/libs/jitsi-meet/JitsiMeet.framework/main.jsbundle
T

1016 lines
1.9 MiB
Plaintext

!function(_){_.__DEV__=!1,_.__BUNDLE_START_TIME__=Date.now()}("undefined"!=typeof global?global:"undefined"!=typeof self?self:this);
!function(r){"use strict";function e(r,e,t){e in u||(u[e]={dependencyMap:t,exports:void 0,factory:r,hasError:!1,isInitialized:!1})}function t(r){var e=r,t=u[e];return t&&t.isInitialized?t.exports:i(e,t)}function i(e,t){if(!c&&r.ErrorUtils){c=!0;var i=void 0;try{i=n(e,t)}catch(e){r.ErrorUtils.reportFatalError(e)}return c=!1,i}return n(e,t)}function n(e,i){var n=r.nativeRequire;if(!i&&n&&(n(e),i=u[e]),!i)throw o(e);if(i.hasError)throw a(e);i.isInitialized=!0;var c=i.exports={},s=i,d=s.factory,f=s.dependencyMap;try{var l={exports:c};return d(r,t,l,c,f),i.factory=void 0,i.exports=l.exports}catch(r){throw i.hasError=!0,i.isInitialized=!1,i.exports=void 0,r}}function o(r){var e='Requiring unknown module "'+r+'".';return Error(e)}function a(r){return Error('Requiring module "'+r+'", which threw an exception.')}r.require=t,r.__d=e;var u=Object.create(null),c=!1}("undefined"!=typeof global?global:"undefined"!=typeof self?self:this);
!function(n){Object.assign=function(n,e){for(var f=1;f<arguments.length;f++){var l=arguments[f];if(null!=l)for(var o in l)n[o]=l[o]}return n}}("undefined"!=typeof global?global:"undefined"!=typeof self&&self);
!function(n){function r(n){function r(r){return function(){var t=void 0;t=1===arguments.length&&"string"==typeof arguments[0]?arguments[0]:Array.prototype.map.call(arguments,function(n){return e(n,{depth:10})}).join(", ");var a=r;"Warning: "===t.slice(0,9)&&a>=o.error&&(a=o.warn),n.__inspectorLog&&n.__inspectorLog(i[a],t,[].slice.call(arguments),u),n.nativeLoggingHook(t,a)}}function a(n,r){return Array.apply(null,Array(r)).map(function(){return n})}function c(r){function e(n,r){var e=n.map(function(n,r){return n+a(" ",p[r]-n.length).join("")});return r=r||" ",e.join(r+"|"+r)}if(!Array.isArray(r)){var i=r;r=[];for(var u in i)if(i.hasOwnProperty(u)){var c=i[u];c[t]=u,r.push(c)}}if(0===r.length)return void n.nativeLoggingHook("",o.info);var l=Object.keys(r[0]).sort(),f=[],p=[];l.forEach(function(n,e){p[e]=n.length;for(var t=0;t<r.length;t++){var o=(r[t][n]||"?").toString();f[t]=f[t]||[],f[t][e]=o,p[e]=Math.max(p[e],o.length)}});for(var s=p.map(function(n){return a("-",n).join("")}),g=e(s,"-"),y=e(l),v=[y,g],d=0;d<r.length;d++)v.push(e(f[d]));n.nativeLoggingHook("\n"+v.join("\n"),o.info)}if(n.nativeLoggingHook){var l=(n.console,Object.getOwnPropertyDescriptor(n,"console"));l&&Object.defineProperty(n,"originalConsole",l),n.console={error:r(o.error),info:r(o.info),log:r(o.info),warn:r(o.warn),trace:r(o.trace),debug:r(o.trace),table:c}}}var e=function(){function n(n,e){return t({seen:[],stylize:r},n,e.depth)}function r(n,r){return n}function e(n){var r={};return n.forEach(function(n,e){r[n]=!0}),r}function t(n,r,t){var f=o(n,r);if(f)return f;var p=Object.keys(r),s=e(p);if(b(r)&&(p.indexOf("message")>=0||p.indexOf("description")>=0))return i(r);if(0===p.length){if(m(r)){var g=r.name?": "+r.name:"";return n.stylize("[Function"+g+"]","special")}if(v(r))return n.stylize(RegExp.prototype.toString.call(r),"regexp");if(h(r))return n.stylize(Date.prototype.toString.call(r),"date");if(b(r))return i(r)}var y="",d=!1,j=["{","}"];if(l(r)&&(d=!0,j=["[","]"]),m(r)){y=" [Function"+(r.name?": "+r.name:"")+"]"}if(v(r)&&(y=" "+RegExp.prototype.toString.call(r)),h(r)&&(y=" "+Date.prototype.toUTCString.call(r)),b(r)&&(y=" "+i(r)),0===p.length&&(!d||0==r.length))return j[0]+y+j[1];if(t<0)return v(r)?n.stylize(RegExp.prototype.toString.call(r),"regexp"):n.stylize("[Object]","special");n.seen.push(r);var z;return z=d?u(n,r,t,s,p):p.map(function(e){return a(n,r,t,s,e,d)}),n.seen.pop(),c(z,y,j)}function o(n,r){if(y(r))return n.stylize("undefined","undefined");if(g(r)){var e="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(e,"string")}return s(r)?n.stylize(""+r,"number"):f(r)?n.stylize(""+r,"boolean"):p(r)?n.stylize("null","null"):void 0}function i(n){return"["+Error.prototype.toString.call(n)+"]"}function u(n,r,e,t,o){for(var i=[],u=0,c=r.length;u<c;++u)z(r,String(u))?i.push(a(n,r,e,t,String(u),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(a(n,r,e,t,o,!0))}),i}function a(n,r,e,o,i,u){var a,c,l;if(l=Object.getOwnPropertyDescriptor(r,i)||{value:r[i]},l.get?c=l.set?n.stylize("[Getter/Setter]","special"):n.stylize("[Getter]","special"):l.set&&(c=n.stylize("[Setter]","special")),z(o,i)||(a="["+i+"]"),c||(n.seen.indexOf(l.value)<0?(c=p(e)?t(n,l.value,null):t(n,l.value,e-1),c.indexOf("\n")>-1&&(c=u?c.split("\n").map(function(n){return" "+n}).join("\n").substr(2):"\n"+c.split("\n").map(function(n){return" "+n}).join("\n"))):c=n.stylize("[Circular]","special")),y(a)){if(u&&i.match(/^\d+$/))return c;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=n.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=n.stylize(a,"string"))}return a+": "+c}function c(n,r,e){var t=0;return n.reduce(function(n,r){return t++,r.indexOf("\n")>=0&&t++,n+r.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?e[0]+(""===r?"":r+"\n ")+" "+n.join(",\n ")+" "+e[1]:e[0]+r+" "+n.join(", ")+" "+e[1]}function l(n){return Array.isArray(n)}function f(n){return"boolean"==typeof n}function p(n){return null===n}function s(n){return"number"==typeof n}function g(n){return"string"==typeof n}function y(n){return void 0===n}function v(n){return d(n)&&"[object RegExp]"===j(n)}function d(n){return"object"==typeof n&&null!==n}function h(n){return d(n)&&"[object Date]"===j(n)}function b(n){return d(n)&&("[object Error]"===j(n)||n instanceof Error)}function m(n){return"function"==typeof n}function j(n){return Object.prototype.toString.call(n)}function z(n,r){return Object.prototype.hasOwnProperty.call(n,r)}return n}(),t="(index)",o={trace:0,info:1,warn:2,error:3},i=[];i[o.trace]="debug",i[o.info]="log",i[o.warn]="warning",i[o.error]="error";var u=1;"undefined"!=typeof module?module.exports=r:r(n)}("undefined"!=typeof global?global:"undefined"!=typeof self?self:this);
!function(r){var n=0,t=function(r){throw r},o={setGlobalHandler:function(r){t=r},getGlobalHandler:function(){return t},reportError:function(r){t&&t(r)},reportFatalError:function(r){t&&t(r,!0)},applyWithGuard:function(r,t,u){try{return n++,r.apply(t,u)}catch(r){o.reportError(r)}finally{n--}},applyWithGuardIfNeeded:function(r,n,t){if(o.inGuard())return r.apply(n,t);o.applyWithGuard(r,n,t)},inGuard:function(){return n},guard:function(r,n,t){function u(){return o.applyWithGuard(r,t||this,arguments,null,n)}return"function"!=typeof r?(console.warn("A function must be passed to ErrorUtils.guard, got ",r),null):(n=n||r.name||"<generated guard>",u)}};r.ErrorUtils=o}("undefined"!=typeof global?global:"undefined"!=typeof self?self:this);
!function(e){if(void 0===Number.EPSILON&&Object.defineProperty(Number,"EPSILON",{value:Math.pow(2,-52)}),void 0===Number.MAX_SAFE_INTEGER&&Object.defineProperty(Number,"MAX_SAFE_INTEGER",{value:Math.pow(2,53)-1}),void 0===Number.MIN_SAFE_INTEGER&&Object.defineProperty(Number,"MIN_SAFE_INTEGER",{value:-(Math.pow(2,53)-1)}),!Number.isNaN){var r=e.isNaN;Object.defineProperty(Number,"isNaN",{configurable:!0,enumerable:!1,value:function(e){return"number"==typeof e&&r(e)},writable:!0})}}("undefined"!=typeof global?global:"undefined"!=typeof self?self:this);
!function(t){String.prototype.startsWith||(String.prototype.startsWith=function(t){"use strict";if(null==this)throw TypeError();var r=String(this),n=arguments.length>1?Number(arguments[1])||0:0,e=Math.min(Math.max(n,0),r.length);return r.indexOf(String(t),n)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(t){"use strict";if(null==this)throw TypeError();var r=String(this),n=r.length,e=String(t),i=arguments.length>1?Number(arguments[1])||0:n,o=Math.min(Math.max(i,0),n),h=o-e.length;return!(h<0)&&r.lastIndexOf(e,h)===h}),String.prototype.repeat||(String.prototype.repeat=function(t){"use strict";if(null==this)throw TypeError();var r=String(this);if((t=Number(t)||0)<0||t===1/0)throw RangeError();if(1===t)return r;for(var n="";t;)1&t&&(n+=r),(t>>=1)&&(r+=r);return n}),String.prototype.includes||(String.prototype.includes=function(t,r){"use strict";return"number"!=typeof r&&(r=0),!(r+t.length>this.length)&&-1!==this.indexOf(t,r)})}("undefined"!=typeof global?global:"undefined"!=typeof self&&self);
!function(e){function r(e,r){if(null==this)throw new TypeError("Array.prototype.findIndex called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var n=Object(this),t=n.length>>>0,o=0;o<t;o++)if(e.call(r,n[o],o,n))return o;return-1}Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{enumerable:!1,writable:!0,configurable:!0,value:r}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{enumerable:!1,writable:!0,configurable:!0,value:function(e,n){if(null==this)throw new TypeError("Array.prototype.find called on null or undefined");var t=r.call(this,e,n);return-1===t?void 0:this[t]}}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{enumerable:!1,writable:!0,configurable:!0,value:function(e){var r=Object(this),n=parseInt(r.length)||0;if(0===n)return!1;var t,o=parseInt(arguments[1])||0;o>=0?t=o:(t=n+o)<0&&(t=0);for(var i;t<n;){if(i=r[t],e===i||e!==e&&i!==i)return!0;t++}return!1}})}("undefined"!=typeof global?global:"undefined"!=typeof self&&self);
!function(n){Array.from||(Array.from=function(n){if(null==n)throw new TypeError("Object is null or undefined");var e,o,t=arguments[1],f=arguments[2],r=this,l=Object(n),i="function"==typeof Symbol&&"function"==typeof Symbol?Symbol.iterator:"@@iterator",u="function"==typeof t,y="function"==typeof l[i],a=0;if(y){e="function"==typeof r?new r:[];for(var c,p=l[i]();!(c=p.next()).done;)o=c.value,u&&(o=t.call(f,o,a)),e[a]=o,a+=1;return e.length=a,e}var b=l.length;for((isNaN(b)||b<0)&&(b=0),e="function"==typeof r?new r(b):new Array(b);a<b;)o=l[a],u&&(o=t.call(f,o,a)),e[a]=o,a+=1;return e.length=a,e})}("undefined"!=typeof global?global:"undefined"!=typeof self&&self);
!function(e){!function(){"use strict";var e=Object.prototype.hasOwnProperty;"function"!=typeof Object.entries&&(Object.entries=function(n){if(null==n)throw new TypeError("Object.entries called on non-object");var t=[];for(var o in n)e.call(n,o)&&t.push([o,n[o]]);return t}),"function"!=typeof Object.values&&(Object.values=function(n){if(null==n)throw new TypeError("Object.values called on non-object");var t=[];for(var o in n)e.call(n,o)&&t.push(n[o]);return t})}()}("undefined"!=typeof global?global:"undefined"!=typeof self&&self);
!function(e){var t=e.babelHelpers={};t.typeof="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof e},t.createRawReactElement=function(){var e="function"==typeof Symbol&&("function"==typeof Symbol?Symbol.for:"@@for")&&("function"==typeof Symbol?Symbol.for:"@@for")("react.element")||60103;return function(t,r,n){return{$$typeof:e,type:t,key:r,ref:null,props:n,_owner:null}}}(),t.classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},t.createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),t.defineProperty=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},t._extends=t.extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.get=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var f=o.get;if(void 0!==f)return f.call(n)},t.inherits=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},t.interopRequireDefault=function(e){return e&&e.__esModule?e:{default:e}},t.interopRequireWildcard=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t},t.objectWithoutProperties=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},t.possibleConstructorReturn=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},t.slicedToArray=function(){function e(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var f,u=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(n=(f=u.next()).done)&&(r.push(f.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&u.return&&u.return()}finally{if(o)throw i}}return r}return function(t,r){if(Array.isArray(t))return t;if(("function"==typeof Symbol?Symbol.iterator:"@@iterator")in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),t.taggedTemplateLiteral=function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},t.toArray=function(e){return Array.isArray(e)?e:Array.from(e)},t.toConsumableArray=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}}("undefined"!=typeof global?global:"undefined"!=typeof self?self:this);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(12);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})})},0);
__d(function(e,t,r,l){t(13);var o=t(34),n=babelHelpers.interopRequireDefault(o),s=t(64),u=t(392),p=t(467),a=function(e){function t(e){babelHelpers.classCallCheck(this,t);var r=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.state={url:r.props.url},void 0===r.props.url&&s.Linking.getInitialURL().then(function(e){void 0===r.state.url&&r.setState({url:e})}).catch(function(e){console.error("Failed to get initial URL",e),void 0===r.state.url&&r.setState({url:null})}),r}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"componentWillReceiveProps",value:function(e){var t=e.url;(0,p.equals)(this.props.url,t)||this.setState({url:t||null})}},{key:"render",value:function(){var e=this.state.url;if(void 0===e)return null;var t=this.props,r=(t.url,babelHelpers.objectWithoutProperties(t,["url"]));return n.default.createElement(u.App,babelHelpers.extends({},r,{url:e}))}}]),t}(o.Component);a.propTypes={url:n.default.PropTypes.oneOfType([n.default.PropTypes.object,n.default.PropTypes.string]),welcomePageEnabled:n.default.PropTypes.bool},s.AppRegistry.registerComponent("App",function(){return a})},12);
__d(function(e,r,t,b){"use strict";r(14)()||Object.defineProperty(r(15),"Symbol",{value:r(16),configurable:!0,enumerable:!1,writable:!0})},13);
__d(function(t,o,r,i){"use strict";var e={object:!0,symbol:!0};r.exports=function(){var t;if("function"!=typeof Symbol)return!1;t=Symbol("test symbol");try{String(t)}catch(t){return!1}return!!e[typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")]&&(!!e[typeof("function"==typeof Symbol?Symbol.toPrimitive:"@@toPrimitive")]&&!!e[typeof("function"==typeof Symbol?Symbol.toStringTag:"@@toStringTag")])}},14);
__d(function(n,t,i,o){i.exports=function(){return this}()},15);
__d(function(t,r,o,e){"use strict";var n,i,c,a,s=r(17),p=r(32),u=Object.create,f=Object.defineProperties,l=Object.defineProperty,y=Object.prototype,S=u(null);if("function"==typeof Symbol){n=Symbol;try{String(n()),a=!0}catch(t){}}var g=function(){var t=u(null);return function(r){for(var o,e,n=0;t[r+(n||"")];)++n;return r+=n||"",t[r]=!0,o="@@"+r,l(y,o,s.gs(null,function(t){e||(e=!0,l(this,o,s(t)),e=!1)})),o}}();c=function(t){if(this instanceof c)throw new TypeError("Symbol is not a constructor");return i(t)},o.exports=i=function t(r){var o;if(this instanceof t)throw new TypeError("Symbol is not a constructor");return a?n(r):(o=u(c.prototype),r=void 0===r?"":String(r),f(o,{__description__:s("",r),__name__:s("",g(r))}))},f(i,{for:s(function(t){return S[t]?S[t]:S[t]=i(String(t))}),keyFor:s(function(t){var r;p(t);for(r in S)if(S[r]===t)return r}),hasInstance:s("",n&&n.hasInstance||i("hasInstance")),isConcatSpreadable:s("",n&&n.isConcatSpreadable||i("isConcatSpreadable")),iterator:s("",n&&n.iterator||i("iterator")),match:s("",n&&n.match||i("match")),replace:s("",n&&n.replace||i("replace")),search:s("",n&&n.search||i("search")),species:s("",n&&n.species||i("species")),split:s("",n&&n.split||i("split")),toPrimitive:s("",n&&n.toPrimitive||i("toPrimitive")),toStringTag:s("",n&&n.toStringTag||i("toStringTag")),unscopables:s("",n&&n.unscopables||i("unscopables"))}),f(c.prototype,{constructor:s(i),toString:s("",function(){return this.__name__})}),f(i.prototype,{toString:s(function(){return"Symbol ("+p(this).__description__+")"}),valueOf:s(function(){return p(this)})}),l(i.prototype,i.toPrimitive,s("",function(){var t=p(this);return"symbol"==typeof t?t:t.toString()})),l(i.prototype,i.toStringTag,s("c","Symbol")),l(c.prototype,i.toStringTag,s("c",i.prototype[i.toStringTag])),l(c.prototype,i.toPrimitive,s("c",i.prototype[i.toPrimitive]))},16);
__d(function(l,e,n,u){"use strict";var r,t=e(18),a=e(27),c=e(28),i=e(29);r=n.exports=function(l,e){var n,u,r,c,o;return arguments.length<2||"string"!=typeof l?(c=e,e=l,l=null):c=arguments[2],null==l?(n=r=!0,u=!1):(n=i.call(l,"c"),u=i.call(l,"e"),r=i.call(l,"w")),o={value:e,configurable:n,enumerable:u,writable:r},c?t(a(c),o):o},r.gs=function(l,e,n){var u,r,o,v;return"string"!=typeof l?(o=n,n=e,e=l,l=null):o=arguments[3],null==e?e=void 0:c(e)?null==n?n=void 0:c(n)||(o=n,n=void 0):(o=e,e=n=void 0),null==l?(u=!0,r=!1):(u=i.call(l,"c"),r=i.call(l,"e")),v={get:e,set:n,configurable:u,enumerable:r},o?t(a(o),v):v}},17);
__d(function(s,t,c,e){"use strict";c.exports=t(19)()?Object.assign:t(20)},18);
__d(function(r,t,o,a){"use strict";o.exports=function(){var r,t=Object.assign;return"function"==typeof t&&(r={foo:"raz"},t(r,{bar:"dwa"},{trzy:"trzy"}),r.foo+r.bar+r.trzy==="razdwatrzy")}},19);
__d(function(t,r,c,n){"use strict";var o=r(21),a=r(26),f=Math.max;c.exports=function(t,r){var c,n,i,e=f(arguments.length,2);for(t=Object(a(t)),i=function(n){try{t[n]=r[n]}catch(t){c||(c=t)}},n=1;n<e;++n)r=arguments[n],o(r).forEach(i);if(void 0!==c)throw c;return t}},20);
__d(function(t,e,s,c){"use strict";s.exports=e(22)()?Object.keys:e(23)},21);
__d(function(t,r,e,c){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}},22);
__d(function(t,e,c,n){"use strict";var r=e(24),s=Object.keys;c.exports=function(t){return s(r(t)?Object(t):t)}},23);
__d(function(n,t,r,u){"use strict";var c=t(25)();r.exports=function(n){return n!==c&&null!==n}},24);
__d(function(t,n,c,i){"use strict";c.exports=function(){}},25);
__d(function(n,r,e,t){"use strict";var o=r(24);e.exports=function(n){if(!o(n))throw new TypeError("Cannot use null or undefined");return n}},26);
__d(function(r,t,n,c){"use strict";var o=t(24),e=Array.prototype.forEach,a=Object.create,u=function(r,t){var n;for(n in r)t[n]=r[n]};n.exports=function(r){var t=a(null);return e.call(arguments,function(r){o(r)&&u(Object(r),t)}),t}},27);
__d(function(t,n,o,u){"use strict";o.exports=function(t){return"function"==typeof t}},28);
__d(function(t,n,o,i){"use strict";o.exports=n(30)()?String.prototype.contains:n(31)},29);
__d(function(n,t,o,a){"use strict";var c="razdwatrzy";o.exports=function(){return"function"==typeof c.contains&&(!0===c.contains("dwa")&&!1===c.contains("foo"))}},30);
__d(function(t,n,r,i){"use strict";var e=String.prototype.indexOf;r.exports=function(t){return e.call(this,t,arguments[1])>-1}},31);
__d(function(r,t,n,o){"use strict";var e=t(33);n.exports=function(r){if(!e(r))throw new TypeError(r+" is not a symbol");return r}},32);
__d(function(t,o,r,n){"use strict";r.exports=function(t){return!!t&&("symbol"==typeof t||!!t.constructor&&("Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag]))}},33);
__d(function(t,s,c,e){"use strict";c.exports=s(35)},34);
__d(function(e,t,n,r){"use strict";var o=t(36),a=t(37),c=t(46),l=t(54),m=t(48),i=t(55),p=t(60),s=t(61),u=t(63),E=m.createElement,y=m.createFactory,C=m.cloneElement,d=o,f=function(e){return e},_={Children:{map:c.map,forEach:c.forEach,count:c.count,toArray:c.toArray,only:u},Component:a.Component,PureComponent:a.PureComponent,createElement:E,cloneElement:C,isValidElement:m.isValidElement,PropTypes:i,createClass:s,createFactory:y,createMixin:f,DOM:l,version:p,__spread:d};n.exports=_},35);
__d(function(r,e,t,n){"use strict";function o(r){if(null===r||void 0===r)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}var c=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var e={},t=0;t<10;t++)e["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(r){return e[r]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(r){n[r]=r}),"abcdefghijklmnopqrst"===Object.keys(babelHelpers.extends({},n)).join("")}catch(r){return!1}}()?Object.assign:function(r,e){for(var t,n,f=o(r),s=1;s<arguments.length;s++){t=Object(arguments[s]);for(var b in t)a.call(t,b)&&(f[b]=t[b]);if(c){n=c(t);for(var l=0;l<n.length;l++)i.call(t,n[l])&&(f[n[l]]=t[n[l]])}}return f}},36);
__d(function(t,e,o,p){"use strict";function n(t,e,o){this.props=t,this.context=e,this.refs=a,this.updater=o||c}function r(t,e,o){this.props=t,this.context=e,this.refs=a,this.updater=o||c}function s(){}var i=e(38),u=e(36),c=e(39),a=(e(42),e(43));e(44),e(45);n.prototype.isReactComponent={},n.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&i("85"),this.updater.enqueueSetState(this,t),e&&this.updater.enqueueCallback(this,e,"setState")},n.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this),t&&this.updater.enqueueCallback(this,t,"forceUpdate")},s.prototype=n.prototype,r.prototype=new s,r.prototype.constructor=r,u(r.prototype,n.prototype),r.prototype.isPureReactComponent=!0,o.exports={Component:n,PureComponent:r}},37);
__d(function(r,e,o,n){"use strict";function i(r){for(var e=arguments.length-1,o="Minified React error #"+r+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+r,n=0;n<e;n++)o+="&args[]="+encodeURIComponent(arguments[n+1]);o+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var i=new Error(o);throw i.name="Invariant Violation",i.framesToPop=1,i}o.exports=i},38);
__d(function(e,n,t,u){"use strict";var c=(n(40),{isMounted:function(e){return!1},enqueueCallback:function(e,n){},enqueueForceUpdate:function(e){},enqueueReplaceState:function(e,n){},enqueueSetState:function(e,n){}});t.exports=c},39);
__d(function(t,r,s,c){"use strict";var e=r(41),i=e;s.exports=i},40);
__d(function(t,n,u,r){"use strict";function e(t){return function(){return t}}var s=function(){};s.thatReturns=e,s.thatReturnsFalse=e(!1),s.thatReturnsTrue=e(!0),s.thatReturnsNull=e(null),s.thatReturnsThis=function(){return this},s.thatReturnsArgument=function(t){return t},u.exports=s},41);
__d(function(t,s,c,e){"use strict";c.exports=!1},42);
__d(function(t,r,s,c){"use strict";var e={};s.exports=e},43);
__d(function(n,e,r,i){"use strict";function o(n,e,r,i,o,a,f,s){if(t(e),!n){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,i,o,a,f,s],d=0;u=new Error(e.replace(/%s/g,function(){return c[d++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var t=function(n){};r.exports=o},44);
__d(function(t,n,c,i){"use strict";var o=function(){};c.exports=o},45);
__d(function(t,n,u,e){"use strict";function r(t){return(""+t).replace(k,"$&/")}function o(t,n){this.func=t,this.context=n,this.count=0}function l(t,n,u){var e=t.func,r=t.context;e.call(r,n,t.count++)}function i(t,n,u){if(null==t)return t;var e=o.getPooled(n,u);g(t,l,e),o.release(e)}function c(t,n,u,e){this.result=t,this.keyPrefix=n,this.func=u,this.context=e,this.count=0}function s(t,n,u){var e=t.result,o=t.keyPrefix,l=t.func,i=t.context,c=l.call(i,n,t.count++);Array.isArray(c)?f(c,e,u,P.thatReturnsArgument):null!=c&&(p.isValidElement(c)&&(c=p.cloneAndReplaceKey(c,o+(!c.key||n&&n.key===c.key?"":r(c.key)+"/")+u)),e.push(c))}function f(t,n,u,e,o){var l="";null!=u&&(l=r(u)+"/");var i=c.getPooled(n,l,e,o);g(t,s,i),c.release(i)}function a(t,n,u){if(null==t)return t;var e=[];return f(t,e,null,n,u),e}function h(t,n,u){return null}function y(t,n){return g(t,h,null)}function d(t){var n=[];return f(t,n,null,P.thatReturnsArgument),n}var x=n(47),p=n(48),P=n(41),g=n(51),v=x.twoArgumentPooler,A=x.fourArgumentPooler,k=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},x.addPoolingTo(o,v),c.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},x.addPoolingTo(c,A);var m={forEach:i,map:a,mapIntoWithKeyPrefixInternal:f,count:y,toArray:d};u.exports=m},46);
__d(function(n,o,e,t){"use strict";var r=o(38),l=(o(44),function(n){var o=this;if(o.instancePool.length){var e=o.instancePool.pop();return o.call(e,n),e}return new o(n)}),i=function(n,o){var e=this;if(e.instancePool.length){var t=e.instancePool.pop();return e.call(t,n,o),t}return new e(n,o)},a=function(n,o,e){var t=this;if(t.instancePool.length){var r=t.instancePool.pop();return t.call(r,n,o,e),r}return new t(n,o,e)},c=function(n,o,e,t){var r=this;if(r.instancePool.length){var l=r.instancePool.pop();return r.call(l,n,o,e,t),l}return new r(n,o,e,t)},u=function(n){var o=this;n instanceof o||r("25"),n.destructor(),o.instancePool.length<o.poolSize&&o.instancePool.push(n)},s=l,P=function(n,o){var e=n;return e.instancePool=[],e.getPooled=o||s,e.poolSize||(e.poolSize=10),e.release=u,e},f={addPoolingTo:P,oneArgumentPooler:l,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:c};e.exports=f},47);
__d(function(e,r,n,t){"use strict";function o(e){return void 0!==e.ref}function l(e){return void 0!==e.key}var f=r(36),u=r(49),i=(r(40),r(42),Object.prototype.hasOwnProperty),c=r(50),a={key:!0,ref:!0,__self:!0,__source:!0},p=function(e,r,n,t,o,l,f){return{$$typeof:c,type:e,key:r,ref:n,props:f,_owner:l}};p.createElement=function(e,r,n){var t,f={},c=null,s=null;if(null!=r){o(r)&&(s=r.ref),l(r)&&(c=""+r.key),void 0===r.__self?null:r.__self,void 0===r.__source?null:r.__source;for(t in r)i.call(r,t)&&!a.hasOwnProperty(t)&&(f[t]=r[t])}var y=arguments.length-2;if(1===y)f.children=n;else if(y>1){for(var _=Array(y),d=0;d<y;d++)_[d]=arguments[d+2];f.children=_}if(e&&e.defaultProps){var v=e.defaultProps;for(t in v)void 0===f[t]&&(f[t]=v[t])}return p(e,c,s,0,0,u.current,f)},p.createFactory=function(e){var r=p.createElement.bind(null,e);return r.type=e,r},p.cloneAndReplaceKey=function(e,r){return p(e.type,r,e.ref,e._self,e._source,e._owner,e.props)},p.cloneElement=function(e,r,n){var t,c=f({},e.props),s=e.key,y=e.ref,_=(e._self,e._source,e._owner);if(null!=r){o(r)&&(y=r.ref,_=u.current),l(r)&&(s=""+r.key);var d;e.type&&e.type.defaultProps&&(d=e.type.defaultProps);for(t in r)i.call(r,t)&&!a.hasOwnProperty(t)&&(void 0===r[t]&&void 0!==d?c[t]=d[t]:c[t]=r[t])}var v=arguments.length-2;if(1===v)c.children=n;else if(v>1){for(var h=Array(v),P=0;P<v;P++)h[P]=arguments[P+2];c.children=h}return p(e.type,s,y,0,0,_,c)},p.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===c},n.exports=p},48);
__d(function(r,t,n,u){"use strict";var c={current:null};n.exports=c},49);
__d(function(o,t,e,r){"use strict";var f="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=f},50);
__d(function(e,r,n,t){"use strict";function o(e,r){return e&&"object"==typeof e&&null!=e.key?c.escape(e.key):r.toString(36)}function i(e,r,n,t){var a=typeof e;if("undefined"!==a&&"boolean"!==a||(e=null),null===e||"string"===a||"number"===a||"object"===a&&e.$$typeof===u)return n(t,e,""===r?s+o(e,0):r),1;var b,y,j=0,p=""===r?s:r+v;if(Array.isArray(e))for(var d=0;d<e.length;d++)b=e[d],y=p+o(b,d),j+=i(b,y,n,t);else{var g=f(e);if(g){var k,x=g.call(e);if(g!==e.entries)for(var h=0;!(k=x.next()).done;)b=k.value,y=p+o(b,h++),j+=i(b,y,n,t);else for(;!(k=x.next()).done;){var A=k.value;A&&(b=A[1],y=p+c.escape(A[0])+v+o(b,0),j+=i(b,y,n,t))}}else if("object"===a){var O=String(e);l("31","[object Object]"===O?"object with keys {"+Object.keys(e).join(", ")+"}":O,"")}}return j}function a(e,r,n){return null==e?0:i(e,"",r,n)}var l=r(38),u=(r(49),r(50)),f=r(52),c=(r(44),r(53)),s=(r(40),"."),v=":";n.exports=a},51);
__d(function(t,o,r,n){"use strict";function i(t){var o=t&&(e&&t[e]||t[f]);if("function"==typeof o)return o}var e="function"==typeof Symbol&&("function"==typeof Symbol?Symbol.iterator:"@@iterator"),f="@@iterator";r.exports=i},52);
__d(function(n,r,e,t){"use strict";function u(n){var r={"=":"=0",":":"=2"};return"$"+(""+n).replace(/[=:]/g,function(n){return r[n]})}function c(n){var r=/(=0|=2)/g,e={"=0":"=","=2":":"};return(""+("."===n[0]&&"$"===n[1]?n.substring(2):n.substring(1))).replace(r,function(n){return e[n]})}var s={escape:u,unescape:c};e.exports=s},53);
__d(function(e,t,a,r){"use strict";var i=t(48),o=i.createFactory,l={a:o("a"),abbr:o("abbr"),address:o("address"),area:o("area"),article:o("article"),aside:o("aside"),audio:o("audio"),b:o("b"),base:o("base"),bdi:o("bdi"),bdo:o("bdo"),big:o("big"),blockquote:o("blockquote"),body:o("body"),br:o("br"),button:o("button"),canvas:o("canvas"),caption:o("caption"),cite:o("cite"),code:o("code"),col:o("col"),colgroup:o("colgroup"),data:o("data"),datalist:o("datalist"),dd:o("dd"),del:o("del"),details:o("details"),dfn:o("dfn"),dialog:o("dialog"),div:o("div"),dl:o("dl"),dt:o("dt"),em:o("em"),embed:o("embed"),fieldset:o("fieldset"),figcaption:o("figcaption"),figure:o("figure"),footer:o("footer"),form:o("form"),h1:o("h1"),h2:o("h2"),h3:o("h3"),h4:o("h4"),h5:o("h5"),h6:o("h6"),head:o("head"),header:o("header"),hgroup:o("hgroup"),hr:o("hr"),html:o("html"),i:o("i"),iframe:o("iframe"),img:o("img"),input:o("input"),ins:o("ins"),kbd:o("kbd"),keygen:o("keygen"),label:o("label"),legend:o("legend"),li:o("li"),link:o("link"),main:o("main"),map:o("map"),mark:o("mark"),menu:o("menu"),menuitem:o("menuitem"),meta:o("meta"),meter:o("meter"),nav:o("nav"),noscript:o("noscript"),object:o("object"),ol:o("ol"),optgroup:o("optgroup"),option:o("option"),output:o("output"),p:o("p"),param:o("param"),picture:o("picture"),pre:o("pre"),progress:o("progress"),q:o("q"),rp:o("rp"),rt:o("rt"),ruby:o("ruby"),s:o("s"),samp:o("samp"),script:o("script"),section:o("section"),select:o("select"),small:o("small"),source:o("source"),span:o("span"),strong:o("strong"),style:o("style"),sub:o("sub"),summary:o("summary"),sup:o("sup"),table:o("table"),tbody:o("tbody"),td:o("td"),textarea:o("textarea"),tfoot:o("tfoot"),th:o("th"),thead:o("thead"),time:o("time"),title:o("title"),tr:o("tr"),track:o("track"),u:o("u"),ul:o("ul"),var:o("var"),video:o("video"),wbr:o("wbr"),circle:o("circle"),clipPath:o("clipPath"),defs:o("defs"),ellipse:o("ellipse"),g:o("g"),image:o("image"),line:o("line"),linearGradient:o("linearGradient"),mask:o("mask"),path:o("path"),pattern:o("pattern"),polygon:o("polygon"),polyline:o("polyline"),radialGradient:o("radialGradient"),rect:o("rect"),stop:o("stop"),svg:o("svg"),text:o("text"),tspan:o("tspan")};a.exports=l},54);
__d(function(t,e,i,s){"use strict";var n=e(48),r=n.isValidElement,a=e(56);i.exports=a(r)},55);
__d(function(t,n,r,u){"use strict";var c=n(57);r.exports=function(t){return c(t,!1)}},56);
__d(function(n,e,r,t){"use strict";var o=e(41),u=e(44),i=e(40),a=e(58),f=e(59);r.exports=function(n,e){function r(n){var e=n&&(A&&n[A]||n[I]);if("function"==typeof e)return e}function t(n,e){return n===e?0!==n||1/n==1/e:n!==n&&e!==e}function c(n){this.message=n,this.stack=""}function l(n){function r(r,t,o,i,f,l,s){return i=i||O,l=l||o,s!==a&&e&&u(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"),null==t[o]?r?new c(null===t[o]?"The "+f+" `"+l+"` is marked as required in `"+i+"`, but its value is `null`.":"The "+f+" `"+l+"` is marked as required in `"+i+"`, but its value is `undefined`."):null:n(t,o,i,f,l)}var t=r.bind(null,!1);return t.isRequired=r.bind(null,!0),t}function s(n){function e(e,r,t,o,u,i){var a=e[r];if(x(a)!==n)return new c("Invalid "+o+" `"+u+"` of type `"+w(a)+"` supplied to `"+t+"`, expected `"+n+"`.");return null}return l(e)}function p(n){function e(e,r,t,o,u){if("function"!=typeof n)return new c("Property `"+u+"` of component `"+t+"` has invalid PropType notation inside arrayOf.");var i=e[r];if(!Array.isArray(i)){return new c("Invalid "+o+" `"+u+"` of type `"+x(i)+"` supplied to `"+t+"`, expected an array.")}for(var f=0;f<i.length;f++){var l=n(i,f,t,o,u+"["+f+"]",a);if(l instanceof Error)return l}return null}return l(e)}function y(n){function e(e,r,t,o,u){if(!(e[r]instanceof n)){var i=n.name||O;return new c("Invalid "+o+" `"+u+"` of type `"+T(e[r])+"` supplied to `"+t+"`, expected instance of `"+i+"`.")}return null}return l(e)}function d(n){function e(e,r,o,u,i){for(var a=e[r],f=0;f<n.length;f++)if(t(a,n[f]))return null;return new c("Invalid "+u+" `"+i+"` of value `"+a+"` supplied to `"+o+"`, expected one of "+JSON.stringify(n)+".")}return Array.isArray(n)?l(e):o.thatReturnsNull}function v(n){function e(e,r,t,o,u){if("function"!=typeof n)return new c("Property `"+u+"` of component `"+t+"` has invalid PropType notation inside objectOf.");var i=e[r],f=x(i);if("object"!==f)return new c("Invalid "+o+" `"+u+"` of type `"+f+"` supplied to `"+t+"`, expected an object.");for(var l in i)if(i.hasOwnProperty(l)){var s=n(i,l,t,o,u+"."+l,a);if(s instanceof Error)return s}return null}return l(e)}function b(n){function e(e,r,t,o,u){for(var i=0;i<n.length;i++){if(null==(0,n[i])(e,r,t,o,u,a))return null}return new c("Invalid "+o+" `"+u+"` supplied to `"+t+"`.")}if(!Array.isArray(n))return o.thatReturnsNull;for(var r=0;r<n.length;r++){var t=n[r];if("function"!=typeof t)return i(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",j(t),r),o.thatReturnsNull}return l(e)}function m(n){function e(e,r,t,o,u){var i=e[r],f=x(i);if("object"!==f)return new c("Invalid "+o+" `"+u+"` of type `"+f+"` supplied to `"+t+"`, expected `object`.");for(var l in n){var s=n[l];if(s){var p=s(i,l,t,o,u+"."+l,a);if(p)return p}}return null}return l(e)}function h(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(h);if(null===e||n(e))return!0;var t=r(e);if(!t)return!1;var o,u=t.call(e);if(t!==e.entries){for(;!(o=u.next()).done;)if(!h(o.value))return!1}else for(;!(o=u.next()).done;){var i=o.value;if(i&&!h(i[1]))return!1}return!0;default:return!1}}function g(n,e){return"symbol"===n||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function x(n){var e=typeof n;return Array.isArray(n)?"array":n instanceof RegExp?"object":g(e,n)?"symbol":e}function w(n){if(void 0===n||null===n)return""+n;var e=x(n);if("object"===e){if(n instanceof Date)return"date";if(n instanceof RegExp)return"regexp"}return e}function j(n){var e=w(n);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}function T(n){return n.constructor&&n.constructor.name?n.constructor.name:O}var A="function"==typeof Symbol&&("function"==typeof Symbol?Symbol.iterator:"@@iterator"),I="@@iterator",O="<<anonymous>>",P={array:s("array"),bool:s("boolean"),func:s("function"),number:s("number"),object:s("object"),string:s("string"),symbol:s("symbol"),any:function(){return l(o.thatReturnsNull)}(),arrayOf:p,element:function(){function e(e,r,t,o,u){var i=e[r];if(!n(i)){return new c("Invalid "+o+" `"+u+"` of type `"+x(i)+"` supplied to `"+t+"`, expected a single ReactElement.")}return null}return l(e)}(),instanceOf:y,node:function(){function n(n,e,r,t,o){return h(n[e])?null:new c("Invalid "+t+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")}return l(n)}(),objectOf:v,oneOf:d,oneOfType:b,shape:m};return c.prototype=Error.prototype,P.checkPropTypes=f,P.PropTypes=P,P}},57);
__d(function(_,t,E,O){"use strict";E.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},58);
__d(function(t,n,c,i){"use strict";function o(t,n,c,i,o){}c.exports=o},59);
__d(function(t,s,c,e){"use strict";c.exports="15.6.1"},60);
__d(function(t,e,n,i){"use strict";var o=e(37),s=o.Component,r=e(48),a=r.isValidElement,c=e(39),d=e(62);n.exports=d(s,a,c)},61);
__d(function(t,e,n,o){"use strict";function i(t){return t}function r(t,e,n){function o(t,e){var n=N.hasOwnProperty(e)?N[e]:null;g.hasOwnProperty(e)&&p("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",e),t&&p("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",e)}function r(t,n){if(n){p("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),p(!e(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var i=t.prototype,r=i.__reactAutoBindPairs;n.hasOwnProperty(c)&&_.mixins(t,n.mixins);for(var a in n)if(n.hasOwnProperty(a)&&a!==c){var s=n[a],u=i.hasOwnProperty(a);if(o(u,a),_.hasOwnProperty(a))_[a](t,s);else{var l=N.hasOwnProperty(a),h="function"==typeof s,y=h&&!l&&!u&&!1!==n.autobind;if(y)r.push(a,s),i[a]=s;else if(u){var m=N[a];p(l&&("DEFINE_MANY_MERGED"===m||"DEFINE_MANY"===m),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",m,a),"DEFINE_MANY_MERGED"===m?i[a]=f(i[a],s):"DEFINE_MANY"===m&&(i[a]=E(i[a],s))}else i[a]=s}}}}function u(t,e){if(e)for(var n in e){var o=e[n];if(e.hasOwnProperty(n)){var i=n in _;p(!i,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var r=n in t;p(!r,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),t[n]=o}}}function l(t,e){p(t&&e&&"object"==typeof t&&"object"==typeof e,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in e)e.hasOwnProperty(n)&&(p(void 0===t[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),t[n]=e[n]);return t}function f(t,e){return function(){var n=t.apply(this,arguments),o=e.apply(this,arguments);if(null==n)return o;if(null==o)return n;var i={};return l(i,n),l(i,o),i}}function E(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function h(t,e){return e.bind(t)}function y(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var o=e[n],i=e[n+1];t[o]=h(t,i)}}function m(t){var e=i(function(t,o,i){this.__reactAutoBindPairs.length&&y(this),this.props=t,this.context=o,this.refs=s,this.updater=i||n,this.state=null;var r=this.getInitialState?this.getInitialState():null;p("object"==typeof r&&!Array.isArray(r),"%s.getInitialState(): must return an object or null",e.displayName||"ReactCompositeComponent"),this.state=r});e.prototype=new M,e.prototype.constructor=e,e.prototype.__reactAutoBindPairs=[],d.forEach(r.bind(null,e)),r(e,D),r(e,t),r(e,I),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),p(e.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(var o in N)e.prototype[o]||(e.prototype[o]=null);return e}var d=[],N={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},_={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)r(t,e[n])},childContextTypes:function(t,e){t.childContextTypes=a({},t.childContextTypes,e)},contextTypes:function(t,e){t.contextTypes=a({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=f(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,e){t.propTypes=a({},t.propTypes,e)},statics:function(t,e){u(t,e)},autobind:function(){}},D={componentDidMount:function(){this.__isMounted=!0}},I={componentWillUnmount:function(){this.__isMounted=!1}},g={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t,e)},isMounted:function(){return!!this.__isMounted}},M=function(){};return a(M.prototype,t.prototype,g),m}var a=e(36),s=e(43),p=e(44),c="mixins";n.exports=r},62);
__d(function(t,n,e,i){"use strict";function r(t){return u.isValidElement(t)||s("143"),t}var s=n(38),u=n(48);n(44);e.exports=r},63);
__d(function(t,e,n,c){"use strict";var o=(e(40),{get ActivityIndicator(){return e(65)},get ART(){return e(185)},get Button(){return e(191)},get DatePickerIOS(){return e(279)},get DrawerLayoutAndroid(){return e(280)},get Image(){return e(219)},get ImageEditor(){return e(281)},get ImageStore(){return e(282)},get KeyboardAvoidingView(){return e(283)},get ListView(){return e(285)},get MapView(){return e(290)},get Modal(){return e(291)},get Navigator(){return e(294)},get NavigatorIOS(){return e(313)},get Picker(){return e(315)},get PickerIOS(){return e(316)},get ProgressBarAndroid(){return e(318)},get ProgressViewIOS(){return e(319)},get ScrollView(){return e(221)},get SegmentedControlIOS(){return e(320)},get Slider(){return e(321)},get SnapshotViewIOS(){return e(322)},get Switch(){return e(323)},get RefreshControl(){return e(324)},get StatusBar(){return e(325)},get SwipeableListView(){return e(326)},get TabBarIOS(){return e(329)},get Text(){return e(192)},get TextInput(){return e(331)},get ToastAndroid(){return e(338)},get ToolbarAndroid(){return e(339)},get Touchable(){return e(193)},get TouchableHighlight(){return e(340)},get TouchableNativeFeedback(){return e(199)},get TouchableOpacity(){return e(200)},get TouchableWithoutFeedback(){return e(277)},get View(){return e(130)},get ViewPagerAndroid(){return e(342)},get WebView(){return e(343)},get ActionSheetIOS(){return e(344)},get AdSupportIOS(){return e(345)},get Alert(){return e(228)},get AlertIOS(){return e(229)},get Animated(){return e(201)},get AppRegistry(){return e(346)},get AppState(){return e(110)},get AsyncStorage(){return e(352)},get BackAndroid(){return e(351)},get CameraRoll(){return e(353)},get Clipboard(){return e(354)},get DatePickerAndroid(){return e(355)},get Dimensions(){return e(100)},get Easing(){return e(217)},get I18nManager(){return e(293)},get ImagePickerIOS(){return e(356)},get InteractionManager(){return e(203)},get Keyboard(){return e(108)},get LayoutAnimation(){return e(284)},get Linking(){return e(357)},get NativeEventEmitter(){return e(107)},get NavigationExperimental(){return e(358)},get NetInfo(){return e(379)},get PanResponder(){return e(309)},get PermissionsAndroid(){return e(380)},get PixelRatio(){return e(99)},get PushNotificationIOS(){return e(381)},get Settings(){return e(382)},get Share(){return e(383)},get StatusBarIOS(){return e(106)},get StyleSheet(){return e(98)},get Systrace(){return e(81)},get TimePickerAndroid(){return e(384)},get UIManager(){return e(94)},get Vibration(){return e(385)},get VibrationIOS(){return e(386)},get DeviceEventEmitter(){return e(101)},get NativeAppEventEmitter(){return e(251)},get NativeModules(){return e(76)},get Platform(){return e(75)},get processColor(){return e(125)},get requireNativeComponent(){return e(139)},get ColorPropType(){return e(66)},get EdgeInsetsPropType(){return e(131)},get PointPropType(){return e(222)},addons:{get LinkedStateMixin(){return e(387)},get PureRenderMixin(){return e(376)},get TestModule(){return e(76).TestModule},get batchedUpdates(){return e(153).batchedUpdates},get createFragment(){return e(390).create},get update(){return e(391)}}}),r=e(223);for(var u in r)!function(t){o[t]=r[t]}(u);n.exports=o},64);
__d(function(e,t,i,a){"use strict";var r=t(66),s=t(69),n=(t(75),t(97)),o=t(98),l=t(130),c=t(139),p=n.PropTypes,y=n.createClass({displayName:"ActivityIndicator",mixins:[s],propTypes:babelHelpers.extends({},l.propTypes,{animating:p.bool,color:r,size:p.oneOfType([p.oneOf(["small","large"]),p.number]),hidesWhenStopped:p.bool}),getDefaultProps:function(){return{animating:!0,color:"#999999",hidesWhenStopped:!0,size:"small"}},render:function(){var e=this.props,t=e.onLayout,i=e.style,a=babelHelpers.objectWithoutProperties(e,["onLayout","style"]),r=void 0;switch(a.size){case"small":r=d.sizeSmall;break;case"large":r=d.sizeLarge;break;default:r={height:a.size,width:a.size}}return n.createElement(l,{onLayout:t,style:[d.container,i]},n.createElement(h,babelHelpers.extends({},a,{style:r,styleAttr:"Normal",indeterminate:!0})))}}),d=o.create({container:{alignItems:"center",justifyContent:"center"},sizeSmall:{width:20,height:20},sizeLarge:{width:36,height:36}}),h=c("RCTActivityIndicatorView",y,{nativeOnly:{activityIndicatorViewStyle:!0}});i.exports=y},65);
__d(function(r,n,f,e){"use strict";var a=n(67),i=n(68),l=function(r,n,f,e,l,b){var t=n[f];if(void 0!==t&&null!==t){if("number"!=typeof t&&null===i(t)){var u=a[l];return new Error("Invalid "+u+" `"+(b||f)+"` supplied to `"+e+"`: "+t+"\nValid color formats are\n - '#f0f' (#rgb)\n - '#f0fc' (#rgba)\n - '#ff00ff' (#rrggbb)\n - '#ff00ff00' (#rrggbbaa)\n - 'rgb(255, 255, 255)'\n - 'rgba(255, 255, 255, 1.0)'\n - 'hsl(360, 100%, 100%)'\n - 'hsla(360, 100%, 100%, 1.0)'\n - 'transparent'\n - 'red'\n - 0xff00ff00 (0xrrggbbaa)\n")}}else if(r){var u=a[l];return new Error("Required "+u+" `"+(b||f)+"` was not specified in `"+e+"`.")}},b=l.bind(null,!1);b.isRequired=l.bind(null,!0),f.exports=b},66);
__d(function(t,r,s,c){"use strict";var e={};s.exports=e},67);
__d(function(e,r,a,l){"use strict";function n(e){var r;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(r=b.hex6.exec(e))?parseInt(r[1]+"ff",16)>>>0:m.hasOwnProperty(e)?m[e]:(r=b.rgb.exec(e))?(u(r[1])<<24|u(r[2])<<16|u(r[3])<<8|255)>>>0:(r=b.rgba.exec(e))?(u(r[1])<<24|u(r[2])<<16|u(r[3])<<8|g(r[4]))>>>0:(r=b.hex3.exec(e))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+"ff",16)>>>0:(r=b.hex8.exec(e))?parseInt(r[1],16)>>>0:(r=b.hex4.exec(e))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+r[4]+r[4],16)>>>0:(r=b.hsl.exec(e))?(255|i(d(r[1]),s(r[2]),s(r[3])))>>>0:(r=b.hsla.exec(e))?(i(d(r[1]),s(r[2]),s(r[3]))|g(r[4]))>>>0:null}function t(e,r,a){return a<0&&(a+=1),a>1&&(a-=1),a<.16666666666666666?e+6*(r-e)*a:a<.5?r:a<.6666666666666666?e+(r-e)*(.6666666666666666-a)*6:e}function i(e,r,a){var l=a<.5?a*(1+r):a+r-a*r,n=2*a-l,i=t(n,l,e+.3333333333333333),o=t(n,l,e),u=t(n,l,e-.3333333333333333);return Math.round(255*i)<<24|Math.round(255*o)<<16|Math.round(255*u)<<8}function o(){for(var e=arguments.length,r=Array(e),a=0;a<e;a++)r[a]=arguments[a];return"\\(\\s*("+r.join(")\\s*,\\s*(")+")\\s*\\)"}function u(e){var r=parseInt(e,10);return r<0?0:r>255?255:r}function d(e){return(parseFloat(e)%360+360)%360/360}function g(e){var r=parseFloat(e);return r<0?0:r>1?255:Math.round(255*r)}function s(e){var r=parseFloat(e,10);return r<0?0:r>100?1:r/100}var h="[-+]?\\d*\\.?\\d+",c=h+"%",b={rgb:new RegExp("rgb"+o(h,h,h)),rgba:new RegExp("rgba"+o(h,h,h,h)),hsl:new RegExp("hsl"+o(h,c,c)),hsla:new RegExp("hsla"+o(h,c,c,h)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/},m={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199};a.exports=n},68);
__d(function(i,t,n,e){"use strict";function s(i,t){return function(){if(t&&(!i.isMounted||i.isMounted()))return t.apply(i,arguments)}}var u=t(70),o=t(74),r=t(94),a=t(95),f=t(44),c={measure:function(i){r.measure(a(this),s(this,i))},measureInWindow:function(i){r.measureInWindow(a(this),s(this,i))},measureLayout:function(i,t,n){r.measureLayout(a(this),i,s(this,n),s(this,t))},setNativeProps:function(i){if(!this.viewConfig){var t=this.constructor,n=t.displayName||t.name||"<Unknown Component>";f(!1,n+' "viewConfig" is not defined.')}var e=u.create(i,this.viewConfig.validAttributes);r.updateView(a(this),this.viewConfig.uiViewClassName,e)},focus:function(){o.focusTextInput(a(this))},blur:function(){o.blurTextInput(a(this))}};n.exports=c},69);
__d(function(r,n,f,o){"use strict";function t(r,n){return"object"!=typeof n||null===n||d(r,n)}function e(r){return"number"==typeof r?v.getByID(r):r}function i(r,n,f){if(Array.isArray(n))for(var o=n.length;o--&&b>0;)i(r,n[o],f);else if(n&&b>0){var t=e(n);for(var u in h)if(h[u]){var c=t[u];if(void 0!==c){var y=f[u];if(y){if("function"==typeof c&&(c=!0),void 0===c&&(c=null),"object"!=typeof y)r[u]=c;else if("function"==typeof y.diff||"function"==typeof y.process){var s="function"==typeof y.process?y.process(c):c;r[u]=s}h[u]=!1,b--}}}}}function u(r,n,f,o){var t,e=n.length<f.length?n.length:f.length;for(t=0;t<e;t++)r=c(r,n[t],f[t],o);for(;t<n.length;t++)r=s(r,n[t],o);for(;t<f.length;t++)r=y(r,f[t],o);return r}function c(r,n,f,o){return r||n!==f?n&&f?Array.isArray(n)||Array.isArray(f)?Array.isArray(n)&&Array.isArray(f)?u(r,n,f,o):Array.isArray(n)?l(r,A(n),e(f),o):l(r,e(n),A(f),o):l(r,e(n),e(f),o):f?y(r,f,o):n?s(r,n,o):r:r}function y(r,n,f){if(!n)return r;if(!Array.isArray(n))return p(r,e(n),f);for(var o=0;o<n.length;o++)r=y(r,n[o],f);return r}function s(r,n,f){if(!n)return r;if(!Array.isArray(n))return a(r,e(n),f);for(var o=0;o<n.length;o++)r=s(r,n[o],f);return r}function l(r,n,f,o){var e,u,y;for(var l in f)if(e=o[l])if(y=n[l],u=f[l],"function"==typeof u&&(u=!0,"function"==typeof y&&(y=!0)),void 0===u&&(u=null,void 0===y&&(y=null)),h&&(h[l]=!1),r&&void 0!==r[l]){if("object"!=typeof e)r[l]=u;else if("function"==typeof e.diff||"function"==typeof e.process){var p="function"==typeof e.process?e.process(u):u;r[l]=p}}else if(y!==u)if("object"!=typeof e)t(y,u)&&((r||(r={}))[l]=u);else if("function"==typeof e.diff||"function"==typeof e.process){var a=void 0===y||("function"==typeof e.diff?e.diff(y,u):t(y,u));a&&(p="function"==typeof e.process?e.process(u):u,(r||(r={}))[l]=p)}else h=null,b=0,r=c(r,y,u,e),b>0&&r&&(i(r,u,e),h=null);for(l in n)void 0===f[l]&&(e=o[l])&&(r&&void 0!==r[l]||void 0!==(y=n[l])&&("object"!=typeof e||"function"==typeof e.diff||"function"==typeof e.process?((r||(r={}))[l]=null,h||(h={}),h[l]||(h[l]=!0,b++)):r=s(r,y,e)));return r}function p(r,n,f){return l(r,g,n,f)}function a(r,n,f){return l(r,n,g,f)}var v=n(71),d=n(72),A=n(73),g={},h=null,b=0,j={create:function(r,n){return p(null,r,n)},diff:function(r,n,f){return l(null,r,n,f)}};f.exports=j},70);
__d(function(e,n,r,t){"use strict";var l={},i=1,a={},s=function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"register",value:function(e){var n=++i;return l[n]=e,n}},{key:"getByID",value:function(e){if(!e)return a;var n=l[e];return n||(console.warn("Invalid style with id `"+e+"`. Skipping ..."),a)}}]),e}();r.exports=s},71);
__d(function(r,t,n,e){"use strict";var f=function r(t,n){if(t===n)return!1;if("function"==typeof t&&"function"==typeof n)return!1;if("object"!=typeof t||null===t)return t!==n;if("object"!=typeof n||null===n)return!0;if(t.constructor!==n.constructor)return!0;if(Array.isArray(t)){var e=t.length;if(n.length!==e)return!0;for(var f=0;f<e;f++)if(r(t[f],n[f]))return!0}else{for(var i in t)if(r(t[i],n[i]))return!0;for(var o in n)if(void 0===t[o]&&void 0!==n[o])return!0}return!1};n.exports=f},72);
__d(function(r,t,e,n){"use strict";function f(r){return"number"==typeof r?i.getByID(r):r}function u(r){if(r){if(a(!0!==r,"style may be false but not true"),!Array.isArray(r))return f(r);for(var t={},e=0,n=r.length;e<n;++e){var i=u(r[e]);if(i)for(var o in i)t[o]=i[o]}return t}}var i=t(71),a=t(44);e.exports=u},73);
__d(function(u,t,n,c){"use strict";var r=(t(75),t(94)),e={_currentlyFocusedID:null,currentlyFocusedField:function(){return this._currentlyFocusedID},focusTextInput:function(u){this._currentlyFocusedID!==u&&null!==u&&(this._currentlyFocusedID=u,r.focus(u))},blurTextInput:function(u){this._currentlyFocusedID===u&&null!==u&&(this._currentlyFocusedID=null,r.blur(u))}};n.exports=e},74);
__d(function(t,n,e,o){"use strict";var r={OS:"ios",get Version(){var t=n(76).IOSConstants;return t?t.osVersion:""},get isTVOS(){var t=n(76).IOSConstants;return!!t&&"tv"===t.interfaceIdiom},get isTesting(){var t=n(76).IOSConstants;return t&&t.isTesting},select:function(t){return t.ios}};e.exports=r},75);
__d(function(e,n,t,r){"use strict";function o(e,n){if(!e)return null;var t=babelHelpers.slicedToArray(e,5),r=t[0],o=t[1],a=t[2],l=t[3],f=t[4];if(c(!r.startsWith("RCT")&&!r.startsWith("RK"),"Module name prefixes should've been stripped by the native side but wasn't for "+r),!o&&!a)return{name:r};var s={};return a&&a.forEach(function(e,t){var r=l&&u(l,t),o=f&&u(f,t);c(!r||!o,"Cannot have a method that is both async and a sync hook");var a=r?"promise":o?"sync":"async";s[e]=i(n,t,a)}),babelHelpers.extends(s,o),{name:r,module:s}}function a(n,t){c(e.nativeRequireModuleConfig,"Can't lazily create module without nativeRequireModuleConfig");var r=e.nativeRequireModuleConfig(n),a=o(r,t);return a&&a.module}function i(n,t,r){var o=null;return o="promise"===r?function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];return new Promise(function(e,o){f.enqueueNativeCall(n,t,r,function(n){return e(n)},function(e){return o(l(e))})})}:"sync"===r?function(){for(var r=arguments.length,o=Array(r),a=0;a<r;a++)o[a]=arguments[a];return e.nativeCallSyncHook(n,t,o)}:function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];var a=r.length>0?r[r.length-1]:null,i=r.length>1?r[r.length-2]:null,u="function"==typeof a,l="function"==typeof i;l&&c(u,"Cannot have a non-function arg after a function arg.");var s=u?a:null,v=l?i:null,d=u+l;r=r.slice(0,r.length-d),f.enqueueNativeCall(n,t,r,v,s)},o.type=r,o}function u(e,n){return-1!==e.indexOf(n)}function l(e){var n=e.message,t=babelHelpers.objectWithoutProperties(e,["message"]),r=new Error(n);return r.framesToPop=1,babelHelpers.extends(r,t)}var f=n(77),s=n(93),c=n(44);e.__fbGenNativeModule=o;var v={};if(e.nativeModuleProxy)v=e.nativeModuleProxy;else{var d=e.__fbBatchedBridgeConfig;c(d,"__fbBatchedBridgeConfig is not set, cannot invoke native modules"),(d.remoteModuleConfig||[]).forEach(function(e,n){var t=o(e,n);t&&(t.module?v[t.name]=t.module:s(v,t.name,{get:function(){return a(t.name,n)}}))})}t.exports=v},76);
__d(function(e,l,r,a){"use strict";var t=l(78),i=new t;i.registerCallableModule("Systrace",l(81)),i.registerCallableModule("JSTimersExecution",l(80)),i.registerCallableModule("HeapCapture",l(91)),i.registerCallableModule("SamplingProfiler",l(92)),Object.defineProperty(e,"__fbBatchedBridge",{configurable:!0,value:i}),r.exports=i},77);
__d(function(e,t,l,u){"use strict";var s=t(79),i=t(80),n=t(81),a=(t(89),t(44)),h=(t(90),function(e){try{e()}catch(e){s.reportFatalError(e)}}),c=function(){function t(){babelHelpers.classCallCheck(this,t),this._callableModules={},this._queue=[[],[],[],0],this._callbacks=[],this._callbackID=0,this._callID=0,this._lastFlush=0,this._eventLoopStartTime=(new Date).getTime(),this.callFunctionReturnFlushedQueue=this.callFunctionReturnFlushedQueue.bind(this),this.callFunctionReturnResultAndFlushedQueue=this.callFunctionReturnResultAndFlushedQueue.bind(this),this.flushedQueue=this.flushedQueue.bind(this),this.invokeCallbackAndReturnFlushedQueue=this.invokeCallbackAndReturnFlushedQueue.bind(this)}return babelHelpers.createClass(t,[{key:"callFunctionReturnFlushedQueue",value:function(e,t,l){var u=this;return h(function(){u.__callFunction(e,t,l),u.__callImmediates()}),this.flushedQueue()}},{key:"callFunctionReturnResultAndFlushedQueue",value:function(e,t,l){var u=this,s=void 0;return h(function(){s=u.__callFunction(e,t,l),u.__callImmediates()}),[s,this.flushedQueue()]}},{key:"invokeCallbackAndReturnFlushedQueue",value:function(e,t){var l=this;return h(function(){l.__invokeCallback(e,t),l.__callImmediates()}),this.flushedQueue()}},{key:"flushedQueue",value:function(){this.__callImmediates();var e=this._queue;return this._queue=[[],[],[],this._callID],e[0].length?e:null}},{key:"getEventLoopRunningTime",value:function(){return(new Date).getTime()-this._eventLoopStartTime}},{key:"registerCallableModule",value:function(e,t){this._callableModules[e]=t}},{key:"enqueueNativeCall",value:function(t,l,u,s,i){(s||i)&&(s&&u.push(this._callbackID),this._callbacks[this._callbackID++]=s,i&&u.push(this._callbackID),this._callbacks[this._callbackID++]=i),this._callID++,this._queue[0].push(t),this._queue[1].push(l),this._queue[2].push(u);var a=(new Date).getTime();e.nativeFlushQueueImmediate&&a-this._lastFlush>=5&&(e.nativeFlushQueueImmediate(this._queue),this._queue=[[],[],[],this._callID],this._lastFlush=a),n.counterEvent("pending_js_to_native_queue",this._queue[0].length)}},{key:"createDebugLookup",value:function(e,t,l){}},{key:"__callImmediates",value:function(){n.beginEvent("JSTimersExecution.callImmediates()"),h(function(){return i.callImmediates()}),n.endEvent()}},{key:"__callFunction",value:function(e,t,l){this._lastFlush=(new Date).getTime(),this._eventLoopStartTime=this._lastFlush,n.beginEvent(e+"."+t+"()");var u=this._callableModules[e];a(!!u,"Module %s is not a registered callable module (calling %s)",e,t),a(!!u[t],"Method %s does not exist on module %s",t,e);var s=u[t].apply(u,l);return n.endEvent(),s}},{key:"__invokeCallback",value:function(e,t){this._lastFlush=(new Date).getTime(),this._eventLoopStartTime=this._lastFlush;var l=this._callbacks[e];l&&(this._callbacks[-2&e]=null,this._callbacks[1|e]=null,l.apply(null,t))}}],[{key:"spy",value:function(e){t.prototype.__spy=!0===e?function(e){console.log((0===e.type?"N->JS":"JS->N")+" : "+(e.module?e.module+".":"")+e.method+"("+JSON.stringify(e.args)+")")}:!1===e?null:e}}]),t}();l.exports=c},78);
__d(function(r,o,t,i){t.exports=r.ErrorUtils},79);
__d(function(e,r,t,l){"use strict";var i=r(81),a=r(44),n=r(82),s=r(40),o=!1,c={GUID:1,callbacks:[],types:[],timerIDs:[],immediates:[],requestIdleCallbacks:[],identifiers:[],errors:null,callTimer:function(e,r){s(e<=c.GUID,"Tried to call timer with ID %s but no such timer exists.",e);var t=c.timerIDs.indexOf(e);if(-1!==t){var l=c.types[t],i=c.callbacks[t];if(!i||!l)return void console.error("No callback found for timerID "+e);"setTimeout"!==l&&"setImmediate"!==l&&"requestAnimationFrame"!==l&&"requestIdleCallback"!==l||c._clearIndex(t);try{"setTimeout"===l||"setInterval"===l||"setImmediate"===l?i():"requestAnimationFrame"===l?i(n()):"requestIdleCallback"===l?i({timeRemaining:function(){return Math.max(0,16.666666666666668-(n()-r))}}):console.error("Tried to call a callback with invalid type: "+l)}catch(e){c.errors?c.errors.push(e):c.errors=[e]}}},callTimers:function(e){a(0!==e.length,"Cannot call `callTimers` with an empty list of IDs."),c.errors=null;for(var t=0;t<e.length;t++)c.callTimer(e[t],0);var l=c.errors;if(l){var i=l.length;if(i>1)for(var n=1;n<i;n++)r(85).setTimeout(function(e){throw e}.bind(null,l[n]),0);throw l[0]}},callIdleCallbacks:function(e){if(!(16.666666666666668-(n()-e)<1)){if(c.errors=null,c.requestIdleCallbacks.length>0){var t=c.requestIdleCallbacks.slice();c.requestIdleCallbacks=[];for(var l=0;l<t.length;++l)c.callTimer(t[l],e)}if(0===c.requestIdleCallbacks.length){r(76).Timing.setSendIdleEvents(!1)}c.errors&&c.errors.forEach(function(e){return r(85).setTimeout(function(){throw e},0)})}},callImmediatesPass:function(){if(i.beginEvent("JSTimersExecution.callImmediatesPass()"),c.immediates.length>0){var e=c.immediates.slice();c.immediates=[];for(var r=0;r<e.length;++r)c.callTimer(e[r],0)}return i.endEvent(),c.immediates.length>0},callImmediates:function(){for(c.errors=null;c.callImmediatesPass(););c.errors&&c.errors.forEach(function(e){return r(85).setTimeout(function(){throw e},0)})},emitTimeDriftWarning:function(e){o||(o=!0,console.warn(e))},_clearIndex:function(e){c.timerIDs[e]=null,c.callbacks[e]=null,c.types[e]=null,c.identifiers[e]=null}};t.exports=c},80);
__d(function(n,e,t,i){"use strict";var c=!1,o=0,r={setEnabled:function(n){c!==n&&(c=n)},beginEvent:function(e,t){c&&(e="function"==typeof e?e():e,n.nativeTraceBeginSection(131072,e,t))},endEvent:function(){c&&n.nativeTraceEndSection(131072)},beginAsyncEvent:function(e){var t=o;return c&&(o++,e="function"==typeof e?e():e,n.nativeTraceBeginAsyncSection(131072,e,t,0)),t},endAsyncEvent:function(e,t){c&&(e="function"==typeof e?e():e,n.nativeTraceEndAsyncSection(131072,e,t,0))},counterEvent:function(e,t){c&&(e="function"==typeof e?e():e,n.nativeTraceCounter&&n.nativeTraceCounter(131072,e,t))},attachToRelayProfiler:function(n){n.attachProfileHandler("*",function(n){var e=r.beginAsyncEvent(n);return function(){r.endAsyncEvent(n,e)}}),n.attachAggregateHandler("*",function(n,e){r.beginEvent(n),e(),r.endEvent()})},swizzleJSON:function(){r.measureMethods(JSON,"JSON",["parse","stringify"])},measureMethods:function(n,e,t){},measure:function(n,e,t){return t}};t.exports=r},81);
__d(function(n,t,o,r){"use strict";var u,e=t(83);u=e.now?function(){return e.now()}:function(){return Date.now()},o.exports=u},82);
__d(function(e,n,r,o){"use strict";var w,c=n(84);c.canUseDOM&&(w=window.performance||window.msPerformance||window.webkitPerformance),r.exports=w||{}},83);
__d(function(e,n,t,o){"use strict";var d=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:d,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:d&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:d&&!!window.screen,isInWorker:!d};t.exports=i},84);
__d(function(e,t,r,n){"use strict";function a(){var e=s.timerIDs.indexOf(null);return-1===e&&(e=s.timerIDs.length),e}function i(e,t){var r=s.GUID++,n=a();return s.timerIDs[n]=r,s.callbacks[n]=e,s.types[n]=t,r}function l(e){if(null!=e){var t=s.timerIDs.indexOf(e);if(-1!==t){s._clearIndex(t);var r=s.types[t];"setImmediate"!==r&&"requestIdleCallback"!==r&&u.deleteTimer(e)}}}var u=t(76).Timing,s=t(80),c=(t(86),{setTimeout:function(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];var l=i(function(){return e.apply(void 0,n)},"setTimeout");return u.createTimer(l,t||0,Date.now(),!1),l},setInterval:function(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];var l=i(function(){return e.apply(void 0,n)},"setInterval");return u.createTimer(l,t||0,Date.now(),!0),l},setImmediate:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=i(function(){return e.apply(void 0,r)},"setImmediate");return s.immediates.push(a),a},requestAnimationFrame:function(e){var t=i(e,"requestAnimationFrame");return u.createTimer(t,1,Date.now(),!1),t},requestIdleCallback:function(e){0===s.requestIdleCallbacks.length&&u.setSendIdleEvents(!0);var t=i(e,"requestIdleCallback");return s.requestIdleCallbacks.push(t),t},cancelIdleCallback:function(e){l(e);var t=s.requestIdleCallbacks.indexOf(e);-1!==t&&s.requestIdleCallbacks.splice(t,1),0===s.requestIdleCallbacks.length&&u.setSendIdleEvents(!1)},clearTimeout:function(e){l(e)},clearInterval:function(e){l(e)},clearImmediate:function(e){l(e);var t=s.immediates.indexOf(e);-1!==t&&s.immediates.splice(t,1)},cancelAnimationFrame:function(e){l(e)}});r.exports=c},85);
__d(function(r,t,s,a){"use strict";function e(r){if(!r||!r.stack)return[];for(var t=Array.isArray(r.stack)?r.stack:o.parse(r.stack),s="number"==typeof r.framesToPop?r.framesToPop:0;s--;)t.shift();return t}var o=t(87);s.exports=e},86);
__d(function(n,o,t,_){t.exports=o(88)},87);
__d(function(e,n,o,t){var l={parse:function(e){for(var n,o,t=/^\s*at (?:(?:(?:Anonymous function)?|((?:\[object object\])?\S+(?: \[as \S+\])?)) )?\(?((?:file|http|https):.*?):(\d+)(?::(\d+))?\)?\s*$/i,l=/^(?:\s*([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i,u=/^\s*at (?:((?:\[object object\])?\S+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i,i=e.split("\n"),s=[],c=0,m=i.length;c<m;++c){if(n=l.exec(i[c]))o={file:n[3],methodName:n[1]||"<unknown>",lineNumber:+n[4],column:n[5]?+n[5]:null};else if(n=t.exec(i[c]))o={file:n[2],methodName:n[1]||"<unknown>",lineNumber:+n[3],column:n[4]?+n[4]:null};else{if(!(n=u.exec(i[c])))continue;o={file:n[2],methodName:n[1]||"<unknown>",lineNumber:+n[3],column:n[4]?+n[4]:null}}s.push(o)}return s}};o.exports=l},88);
__d(function(t,n,c,i){"use strict";function o(t){}c.exports=o},89);
__d(function(t,n,i,e){"use strict";function f(t){var n,i=typeof t;if(void 0===t)n="undefined";else if(null===t)n="null";else if("string"===i)n='"'+t+'"';else if("function"===i)try{n=t.toString()}catch(t){n="[function unknown]"}else try{n=JSON.stringify(t)}catch(i){if("function"==typeof t.toString)try{n=t.toString()}catch(t){}}return n||'["'+i+'" failed to stringify]'}i.exports=f},90);
__d(function(e,t,a,r){"use strict";var p={captureHeap:function(a){var r=null;try{e.nativeCaptureHeap(a),console.log("HeapCapture.captureHeap succeeded: "+a)}catch(e){console.log("HeapCapture.captureHeap error: "+e.toString()),r=e.toString()}t(76).JSCHeapCapture.captureComplete(a,r)}};a.exports=p},91);
__d(function(o,r,l,e){"use strict";var n={poke:function(l){var e=null,n=null;try{n=o.pokeSamplingProfiler(),null===n?console.log("The JSC Sampling Profiler has started"):console.log("The JSC Sampling Profiler has stopped")}catch(o){console.log("Error occured when restarting Sampling Profiler: "+o.toString()),e=o.toString()}r(76).JSCSamplingProfiler.operationComplete(l,n,e)}};l.exports=n},92);
__d(function(e,t,n,r){"use strict";function i(e,t,n){function r(){return c||(c=!0,i(u())),b}function i(n){b=n,c=!0,Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:o,writable:a})}var u=n.get,o=!1!==n.enumerable,a=!1!==n.writable,b=void 0,c=!1;Object.defineProperty(e,t,{get:r,set:i,configurable:!0,enumerable:o})}n.exports=i},93);
__d(function(n,e,t,r){"use strict";var a=e(76),o=(e(75),e(93)),c=e(95),i=e(44),u=a.UIManager;i(u,"UIManager is undefined. The native module config is probably incorrect.");var s=u.takeSnapshot;u.takeSnapshot=function(n,e){return regeneratorRuntime.async(function(t){for(;;)switch(t.prev=t.next){case 0:if(s){t.next=3;break}return console.warn("UIManager.takeSnapshot is not available on this platform"),t.abrupt("return");case 3:return"number"!=typeof n&&"window"!==n&&(n=c(n)||"window"),t.abrupt("return",s(n,e));case 5:case"end":return t.stop()}},null,this)},Object.keys(u).forEach(function(n){var e=u[n];e.Manager&&(o(e,"Constants",{get:function(){var n=a[e.Manager],t={};return n&&Object.keys(n).forEach(function(e){var r=n[e];"function"!=typeof r&&(t[e]=r)}),t}}),o(e,"Commands",{get:function(){var n=a[e.Manager],t={},r=0;return n&&Object.keys(n).forEach(function(e){"function"==typeof n[e]&&(t[e]=r++)}),t}}))}),t.exports=u},94);
__d(function(e,n,o,t){"use strict";function r(e){if(null==e)return null;if("number"==typeof e)return e;var n=e,o=d.get(n);if(o)return o.getHostNode();var t=n._rootNodeID;if(t)return t;f("object"==typeof n&&"_rootNodeID"in n||null!=n.render&&"function"==typeof n.render,"findNodeHandle(...): Argument is not a component (type: %s, keys: %s)",typeof n,Object.keys(n)),f(!1,"findNodeHandle(...): Unable to find node handle for unmounted component.")}var d=(n(49),n(96)),f=n(44);n(40);o.exports=r},95);
__d(function(n,t,e,r){"use strict";var a={remove:function(n){n._reactInternalInstance=void 0},get:function(n){return n._reactInternalInstance},has:function(n){return void 0!==n._reactInternalInstance},set:function(n,t){n._reactInternalInstance=t}};e.exports=a},96);
__d(function(t,s,c,e){"use strict";c.exports=s(35)},97);
__d(function(e,t,r,o){"use strict";var i=t(99),s=t(71),l=t(112),a=t(129),n=t(73),u=i.roundToNearestPixel(.4);0===u&&(u=1/i.get());var b={position:"absolute",left:0,right:0,top:0,bottom:0},c=s.register(b);r.exports={hairlineWidth:u,absoluteFill:c,absoluteFillObject:b,flatten:n,setStyleAttributePreprocessor:function(e,t){var r=void 0;if("string"==typeof l[e])r={};else{if("object"!=typeof l[e])return void console.error(e+" is not a valid style attribute");r=l[e]}l[e]=babelHelpers.extends({},r,{process:t})},create:function(e){var t={};for(var r in e)a.validateStyle(r,e),t[r]=s.register(e[r]);return t}}},98);
__d(function(e,t,n,u){"use strict";var r=t(100),a=function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"get",value:function(){return r.get("window").scale}},{key:"getFontScale",value:function(){return r.get("window").fontScale||e.get()}},{key:"getPixelSizeForLayoutSize",value:function(t){return Math.round(t*e.get())}},{key:"roundToNearestPixel",value:function(t){var n=e.get();return Math.round(t*n)/n}},{key:"startDetecting",value:function(){}}]),e}();n.exports=a},99);
__d(function(e,s,i,n){"use strict";var t=(s(75),s(94)),l=s(101),a=s(44),c={},o=function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"set",value:function(e){if(e&&e.windowPhysicalPixels){e=JSON.parse(JSON.stringify(e));var s=e.windowPhysicalPixels;e.window={width:s.width/s.scale,height:s.height/s.scale,scale:s.scale,fontScale:s.fontScale},e.screen=e.window,delete e.windowPhysicalPixels}babelHelpers.extends(c,e)}},{key:"get",value:function(e){return a(c[e],"No dimension set for key "+e),c[e]}}]),e}();o.set(t.Dimensions),l.addListener("didUpdateDimensions",function(e){o.set(e)}),i.exports=o},100);
__d(function(e,t,r,o){"use strict";var s=t(102),l=t(105),n=t(77),i=function(e){function r(){babelHelpers.classCallCheck(this,r);var e=new l,t=babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.sharedSubscriber=e,t}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"_nativeEventModule",value:function(e){if(e){if(0===e.lastIndexOf("statusBar",0))return console.warn("`%s` event should be registered via the StatusBarIOS module",e),t(106);if(0===e.lastIndexOf("keyboard",0))return console.warn("`%s` event should be registered via the Keyboard module",e),t(108);if("appStateDidChange"===e||"memoryWarning"===e)return console.warn("`%s` event should be registered via the AppState module",e),t(110)}return null}},{key:"addListener",value:function(e,t,o){var s=this._nativeEventModule(e);return s?s.addListener(e,t,o):babelHelpers.get(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"addListener",this).call(this,e,t,o)}},{key:"removeAllListeners",value:function(e){var t=this._nativeEventModule(e);t&&e?t.removeAllListeners(e):babelHelpers.get(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"removeAllListeners",this).call(this,e)}},{key:"removeSubscription",value:function(e){e.emitter!==this?e.emitter.removeSubscription(e):babelHelpers.get(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"removeSubscription",this).call(this,e)}}]),r}(s);i=new i,n.registerCallableModule("RCTDeviceEventEmitter",i),r.exports=i},101);
__d(function(e,r,t,i){"use strict";var s=r(103),n=r(105),u=r(41),o=r(44),c=function(){function e(r){babelHelpers.classCallCheck(this,e),this._subscriber=r||new n}return babelHelpers.createClass(e,[{key:"addListener",value:function(e,r,t){return this._subscriber.addSubscription(e,new s(this,this._subscriber,r,t))}},{key:"once",value:function(e,r,t){var i=this;return this.addListener(e,function(){for(var e=arguments.length,s=Array(e),n=0;n<e;n++)s[n]=arguments[n];i.removeCurrentListener(),r.apply(t,s)})}},{key:"removeAllListeners",value:function(e){this._subscriber.removeAllSubscriptions(e)}},{key:"removeCurrentListener",value:function(){o(!!this._currentSubscription,"Not in an emitting cycle; there is no current subscription"),this.removeSubscription(this._currentSubscription)}},{key:"removeSubscription",value:function(e){o(e.emitter===this,"Subscription does not belong to this emitter."),this._subscriber.removeSubscription(e)}},{key:"listeners",value:function(e){var r=this._subscriber.getSubscriptionsForType(e);return r?r.filter(u.thatReturnsTrue).map(function(e){return e.listener}):[]}},{key:"emit",value:function(e){var r=this._subscriber.getSubscriptionsForType(e);if(r){for(var t=0,i=r.length;t<i;t++){var s=r[t];s&&(this._currentSubscription=s,s.listener.apply(s.context,Array.prototype.slice.call(arguments,1)))}this._currentSubscription=null}}},{key:"removeListener",value:function(e,r){var t=this._subscriber.getSubscriptionsForType(e);if(t)for(var i=0,s=t.length;i<s;i++){var n=t[i];n&&n.listener===r&&n.remove()}}}]),e}();t.exports=c},102);
__d(function(e,t,r,s){"use strict";var i=t(104),l=function(e){function t(e,r,s,i){babelHelpers.classCallCheck(this,t);var l=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));return l.emitter=e,l.listener=s,l.context=i,l}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"remove",value:function(){this.emitter.removeSubscription(this)}}]),t}(i);r.exports=l},103);
__d(function(e,s,r,t){"use strict";var i=function(){function e(s){babelHelpers.classCallCheck(this,e),this.subscriber=s}return babelHelpers.createClass(e,[{key:"remove",value:function(){this.subscriber.removeSubscription(this)}}]),e}();r.exports=i},104);
__d(function(s,e,i,t){"use strict";var r=e(44),n=function(){function s(){babelHelpers.classCallCheck(this,s),this._subscriptionsForType={},this._currentSubscription=null}return babelHelpers.createClass(s,[{key:"addSubscription",value:function(s,e){r(e.subscriber===this,"The subscriber of the subscription is incorrectly set."),this._subscriptionsForType[s]||(this._subscriptionsForType[s]=[]);var i=this._subscriptionsForType[s].length;return this._subscriptionsForType[s].push(e),e.eventType=s,e.key=i,e}},{key:"removeAllSubscriptions",value:function(s){void 0===s?this._subscriptionsForType={}:delete this._subscriptionsForType[s]}},{key:"removeSubscription",value:function(s){var e=s.eventType,i=s.key,t=this._subscriptionsForType[e];t&&delete t[i]}},{key:"getSubscriptionsForType",value:function(s){return this._subscriptionsForType[s]}}]),s}();i.exports=n},105);
__d(function(e,t,r,s){"use strict";var n=t(107),a=t(76),l=a.StatusBarManager,o=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),t}(n);r.exports=new o(l)},106);
__d(function(e,t,r,o){"use strict";var s=t(102),i=(t(75),t(101)),l=t(44),n=function(e){function t(e){babelHelpers.classCallCheck(this,t);var r=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i.sharedSubscriber));return l(e,"Native module cannot be null."),r._nativeModule=e,r}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"addListener",value:function(e,r,o){return this._nativeModule.addListener(e),babelHelpers.get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addListener",this).call(this,e,r,o)}},{key:"removeAllListeners",value:function(e){l(e,"eventType argument is required.");var r=this.listeners(e).length;this._nativeModule.removeListeners(r),babelHelpers.get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeAllListeners",this).call(this,e)}},{key:"removeSubscription",value:function(e){this._nativeModule.removeListeners(1),babelHelpers.get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeSubscription",this).call(this,e)}}]),t}(s);r.exports=n},107);
__d(function(e,o,t,n){"use strict";var m=o(44),d=o(107),s=o(76).KeyboardObserver,u=o(109),i=new d(s),r={addListener:function(e,o){m(!1,"Dummy method used for documentation")},removeListener:function(e,o){m(!1,"Dummy method used for documentation")},removeAllListeners:function(e){m(!1,"Dummy method used for documentation")},dismiss:function(){m(!1,"Dummy method used for documentation")}};r=i,r.dismiss=u,t.exports=r},108);
__d(function(t,u,e,n){"use strict";function r(){c.blurTextInput(c.currentlyFocusedField())}var c=u(74);e.exports=r},109);
__d(function(e,t,n,r){"use strict";var a=t(107),s=t(76),i=s.AppState,o=t(111),l=t(44),p=function(e){function t(){babelHelpers.classCallCheck(this,t);var e=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,i));return e._eventHandlers={change:new Map,memoryWarning:new Map},e.currentState=i.initialAppState||"active",e.addListener("appStateDidChange",function(t){e.currentState=t.app_state}),i.getCurrentAppState(function(t){e.currentState=t.app_state},o),e}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"addEventListener",value:function(e,t){l(-1!==["change","memoryWarning"].indexOf(e),'Trying to subscribe to unknown event: "%s"',e),"change"===e?this._eventHandlers[e].set(t,this.addListener("appStateDidChange",function(e){t(e.app_state)})):"memoryWarning"===e&&this._eventHandlers[e].set(t,this.addListener("memoryWarning",t))}},{key:"removeEventListener",value:function(e,t){l(-1!==["change","memoryWarning"].indexOf(e),'Trying to remove listener for unknown event: "%s"',e),this._eventHandlers[e].has(t)&&(this._eventHandlers[e].get(t).remove(),this._eventHandlers[e].delete(t))}}]),t}(a);p=new p,n.exports=p},110);
__d(function(r,o,e,n){"use strict";var s=function(){if(1===arguments.length&&arguments[0]instanceof Error){var r=arguments[0];console.error('Error: "'+r.message+'". Stack:\n'+r.stack)}else console.error.apply(console,arguments)};e.exports=s},111);
__d(function(o,r,e,t){"use strict";var d=r(113),s=r(122),l=r(123),a=r(115),C=r(124),f=r(125),i=r(126),c=r(128),b=babelHelpers.extends({},a(l),a(s),a(d));b.transform={process:i},b.transformMatrix={diff:C},b.shadowOffset={diff:c},b.decomposedMatrix="decomposedMatrix";var n={process:f};b.backgroundColor=n,b.borderBottomColor=n,b.borderColor=n,b.borderLeftColor=n,b.borderRightColor=n,b.borderTopColor=n,b.color=n,b.shadowColor=n,b.textDecorationColor=n,b.tintColor=n,b.textShadowColor=n,b.overlayColor=n,e.exports=b},112);
__d(function(e,r,o,i){"use strict";var b=r(114),d=r(116),t=r(66),n=r(117),s=r(118),u=r(97).PropTypes,a=babelHelpers.extends({},d,n,s,{resizeMode:u.oneOf(Object.keys(b)),backfaceVisibility:u.oneOf(["visible","hidden"]),backgroundColor:t,borderColor:t,borderWidth:u.number,borderRadius:u.number,overflow:u.oneOf(["visible","hidden"]),tintColor:t,opacity:u.number,overlayColor:u.string,borderTopLeftRadius:u.number,borderTopRightRadius:u.number,borderBottomLeftRadius:u.number,borderBottomRightRadius:u.number});o.exports=a},113);
__d(function(l,n,t,e){"use strict";var r=n(115),u=r({contain:null,cover:null,stretch:null,center:null,repeat:null});t.exports=u},114);
__d(function(r,n,t,a){"use strict";var e=n(44),i=function(r){var n,t={};r instanceof Object&&!Array.isArray(r)||e(!1);for(n in r)r.hasOwnProperty(n)&&(t[n]=n);return t};t.exports=i},115);
__d(function(e,n,r,t){"use strict";var i=n(97).PropTypes,o={width:i.oneOfType([i.number,i.string]),height:i.oneOfType([i.number,i.string]),top:i.oneOfType([i.number,i.string]),left:i.oneOfType([i.number,i.string]),right:i.oneOfType([i.number,i.string]),bottom:i.oneOfType([i.number,i.string]),minWidth:i.oneOfType([i.number,i.string]),maxWidth:i.oneOfType([i.number,i.string]),minHeight:i.oneOfType([i.number,i.string]),maxHeight:i.oneOfType([i.number,i.string]),margin:i.oneOfType([i.number,i.string]),marginVertical:i.oneOfType([i.number,i.string]),marginHorizontal:i.oneOfType([i.number,i.string]),marginTop:i.oneOfType([i.number,i.string]),marginBottom:i.oneOfType([i.number,i.string]),marginLeft:i.oneOfType([i.number,i.string]),marginRight:i.oneOfType([i.number,i.string]),padding:i.oneOfType([i.number,i.string]),paddingVertical:i.oneOfType([i.number,i.string]),paddingHorizontal:i.oneOfType([i.number,i.string]),paddingTop:i.oneOfType([i.number,i.string]),paddingBottom:i.oneOfType([i.number,i.string]),paddingLeft:i.oneOfType([i.number,i.string]),paddingRight:i.oneOfType([i.number,i.string]),borderWidth:i.number,borderTopWidth:i.number,borderRightWidth:i.number,borderBottomWidth:i.number,borderLeftWidth:i.number,position:i.oneOf(["absolute","relative"]),flexDirection:i.oneOf(["row","row-reverse","column","column-reverse"]),flexWrap:i.oneOf(["wrap","nowrap"]),justifyContent:i.oneOf(["flex-start","flex-end","center","space-between","space-around"]),alignItems:i.oneOf(["flex-start","flex-end","center","stretch","baseline"]),alignSelf:i.oneOf(["auto","flex-start","flex-end","center","stretch","baseline"]),overflow:i.oneOf(["visible","hidden","scroll"]),flex:i.number,flexGrow:i.number,flexShrink:i.number,flexBasis:i.oneOfType([i.number,i.string]),aspectRatio:i.number,zIndex:i.number};r.exports=o},116);
__d(function(s,e,o,r){"use strict";var a=e(66),h=e(97).PropTypes,t={shadowColor:a,shadowOffset:h.shape({width:h.number,height:h.number}),shadowOpacity:h.number,shadowRadius:h.number};o.exports=t},117);
__d(function(e,r,t,s){"use strict";var a=r(119),n=r(97).PropTypes,p=function(e,r,t){if(e[r])return new Error("The transformMatrix style property is deprecated. Use `transform: [{ matrix: ... }]` instead.")},o=function(e,r,t){if(e[r])return new Error("The decomposedMatrix style property is deprecated. Use `transform: [...]` instead.")},i={transform:n.arrayOf(n.oneOfType([n.shape({perspective:n.number}),n.shape({rotate:n.string}),n.shape({rotateX:n.string}),n.shape({rotateY:n.string}),n.shape({rotateZ:n.string}),n.shape({scale:n.number}),n.shape({scaleX:n.number}),n.shape({scaleY:n.number}),n.shape({translateX:n.number}),n.shape({translateY:n.number}),n.shape({skewX:n.string}),n.shape({skewY:n.string})])),transformMatrix:p,decomposedMatrix:o,scaleX:a(n.number,"Use the transform prop instead."),scaleY:a(n.number,"Use the transform prop instead."),rotation:a(n.number,"Use the transform prop instead."),translateX:a(n.number,"Use the transform prop instead."),translateY:a(n.number,"Use the transform prop instead.")};t.exports=i},118);
__d(function(n,e,r,t){"use strict";function o(n,e){return function(r,t,o){return u[o]||void 0===r[t]||console.warn("`"+t+"` supplied to `"+o+"` has been deprecated. "+e),n(r,t,o,i.prop,null,c)}}var u=e(94),c=e(120),i=e(121);r.exports=o},119);
__d(function(_,t,E,O){"use strict";E.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},120);
__d(function(t,c,i,n){"use strict"},121);
__d(function(t,e,n,o){"use strict";var r=e(97).PropTypes,i=e(66),l=e(123),a=babelHelpers.extends({},l,{color:i,fontFamily:r.string,fontSize:r.number,fontStyle:r.oneOf(["normal","italic"]),fontWeight:r.oneOf(["normal","bold","100","200","300","400","500","600","700","800","900"]),fontVariant:r.arrayOf(r.oneOf(["small-caps","oldstyle-nums","lining-nums","tabular-nums","proportional-nums"])),textShadowOffset:r.shape({width:r.number,height:r.number}),textShadowRadius:r.number,textShadowColor:i,letterSpacing:r.number,lineHeight:r.number,textAlign:r.oneOf(["auto","left","right","center","justify"]),textAlignVertical:r.oneOf(["auto","top","bottom","center"]),includeFontPadding:r.bool,textDecorationLine:r.oneOf(["none","underline","line-through","underline line-through"]),textDecorationStyle:r.oneOf(["solid","double","dotted","dashed"]),textDecorationColor:i,writingDirection:r.oneOf(["auto","ltr","rtl"])});n.exports=a},122);
__d(function(r,e,o,d){"use strict";var b=e(116),t=e(97).PropTypes,i=e(66),n=e(117),u=e(118),m=babelHelpers.extends({},b,n,u,{backfaceVisibility:t.oneOf(["visible","hidden"]),backgroundColor:i,borderColor:i,borderTopColor:i,borderRightColor:i,borderBottomColor:i,borderLeftColor:i,borderRadius:t.number,borderTopLeftRadius:t.number,borderTopRightRadius:t.number,borderBottomLeftRadius:t.number,borderBottomRightRadius:t.number,borderStyle:t.oneOf(["solid","dotted","dashed"]),borderWidth:t.number,borderTopWidth:t.number,borderRightWidth:t.number,borderBottomWidth:t.number,borderLeftWidth:t.number,opacity:t.number,elevation:t.number});o.exports=m},123);
__d(function(t,n,r,u){"use strict";var c=function(t,n){return t!==n&&(!t||!n||t[12]!==n[12]||t[13]!==n[13]||t[14]!==n[14]||t[5]!==n[5]||t[10]!==n[10]||t[1]!==n[1]||t[2]!==n[2]||t[3]!==n[3]||t[4]!==n[4]||t[6]!==n[6]||t[7]!==n[7]||t[8]!==n[8]||t[9]!==n[9]||t[11]!==n[11]||t[15]!==n[15])};r.exports=c},124);
__d(function(n,r,t,u){"use strict";function i(n){if(void 0===n||null===n)return n;var r=e(n);if(null!==r)return r=(r<<24|r>>>8)>>>0}var e=(r(75),r(68));t.exports=i},125);
__d(function(t,n,r,u){"use strict";function c(t){return t}n(127),n(75),n(44),n(90);r.exports=c},126);
__d(function(t,e,n,a){"use strict";var r=e(44),o={createIdentityMatrix:function(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},createCopy:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]},createOrthographic:function(t,e,n,a,r,o){return[2/(e-t),0,0,0,0,2/(a-n),0,0,0,0,-2/(o-r),0,-(e+t)/(e-t),-(a+n)/(a-n),-(o+r)/(o-r),1]},createFrustum:function(t,e,n,a,r,o){var i=1/(e-t),u=1/(a-n),s=1/(r-o);return[r*i*2,0,0,0,0,r*u*2,0,0,(e+t)*i,(a+n)*u,(o+r)*s,-1,0,0,o*r*s*2,0]},createPerspective:function(t,e,n,a){var r=1/Math.tan(t/2),o=1/(n-a);return[r/e,0,0,0,0,r,0,0,0,0,(a+n)*o,-1,0,0,a*n*o*2,0]},createTranslate2d:function(t,e){var n=o.createIdentityMatrix();return o.reuseTranslate2dCommand(n,t,e),n},reuseTranslate2dCommand:function(t,e,n){t[12]=e,t[13]=n},reuseTranslate3dCommand:function(t,e,n,a){t[12]=e,t[13]=n,t[14]=a},createScale:function(t){var e=o.createIdentityMatrix();return o.reuseScaleCommand(e,t),e},reuseScaleCommand:function(t,e){t[0]=e,t[5]=e},reuseScale3dCommand:function(t,e,n,a){t[0]=e,t[5]=n,t[10]=a},reusePerspectiveCommand:function(t,e){t[11]=-1/e},reuseScaleXCommand:function(t,e){t[0]=e},reuseScaleYCommand:function(t,e){t[5]=e},reuseScaleZCommand:function(t,e){t[10]=e},reuseRotateXCommand:function(t,e){t[5]=Math.cos(e),t[6]=Math.sin(e),t[9]=-Math.sin(e),t[10]=Math.cos(e)},reuseRotateYCommand:function(t,e){t[0]=Math.cos(e),t[2]=-Math.sin(e),t[8]=Math.sin(e),t[10]=Math.cos(e)},reuseRotateZCommand:function(t,e){t[0]=Math.cos(e),t[1]=Math.sin(e),t[4]=-Math.sin(e),t[5]=Math.cos(e)},createRotateZ:function(t){var e=o.createIdentityMatrix();return o.reuseRotateZCommand(e,t),e},reuseSkewXCommand:function(t,e){t[4]=Math.tan(e)},reuseSkewYCommand:function(t,e){t[1]=Math.tan(e)},multiplyInto:function(t,e,n){var a=e[0],r=e[1],o=e[2],i=e[3],u=e[4],s=e[5],c=e[6],m=e[7],v=e[8],l=e[9],f=e[10],d=e[11],h=e[12],M=e[13],C=e[14],p=e[15],T=n[0],x=n[1],y=n[2],b=n[3];t[0]=T*a+x*u+y*v+b*h,t[1]=T*r+x*s+y*l+b*M,t[2]=T*o+x*c+y*f+b*C,t[3]=T*i+x*m+y*d+b*p,T=n[4],x=n[5],y=n[6],b=n[7],t[4]=T*a+x*u+y*v+b*h,t[5]=T*r+x*s+y*l+b*M,t[6]=T*o+x*c+y*f+b*C,t[7]=T*i+x*m+y*d+b*p,T=n[8],x=n[9],y=n[10],b=n[11],t[8]=T*a+x*u+y*v+b*h,t[9]=T*r+x*s+y*l+b*M,t[10]=T*o+x*c+y*f+b*C,t[11]=T*i+x*m+y*d+b*p,T=n[12],x=n[13],y=n[14],b=n[15],t[12]=T*a+x*u+y*v+b*h,t[13]=T*r+x*s+y*l+b*M,t[14]=T*o+x*c+y*f+b*C,t[15]=T*i+x*m+y*d+b*p},determinant:function(t){var e=babelHelpers.slicedToArray(t,16),n=e[0],a=e[1],r=e[2],o=e[3],i=e[4],u=e[5],s=e[6],c=e[7],m=e[8],v=e[9],l=e[10],f=e[11],d=e[12],h=e[13],M=e[14],C=e[15];return o*s*v*d-r*c*v*d-o*u*l*d+a*c*l*d+r*u*f*d-a*s*f*d-o*s*m*h+r*c*m*h+o*i*l*h-n*c*l*h-r*i*f*h+n*s*f*h+o*u*m*M-a*c*m*M-o*i*v*M+n*c*v*M+a*i*f*M-n*u*f*M-r*u*m*C+a*s*m*C+r*i*v*C-n*s*v*C-a*i*l*C+n*u*l*C},inverse:function(t){var e=o.determinant(t);if(!e)return t;var n=babelHelpers.slicedToArray(t,16),a=n[0],r=n[1],i=n[2],u=n[3],s=n[4],c=n[5],m=n[6],v=n[7],l=n[8],f=n[9],d=n[10],h=n[11],M=n[12],C=n[13],p=n[14],T=n[15];return[(m*h*C-v*d*C+v*f*p-c*h*p-m*f*T+c*d*T)/e,(u*d*C-i*h*C-u*f*p+r*h*p+i*f*T-r*d*T)/e,(i*v*C-u*m*C+u*c*p-r*v*p-i*c*T+r*m*T)/e,(u*m*f-i*v*f-u*c*d+r*v*d+i*c*h-r*m*h)/e,(v*d*M-m*h*M-v*l*p+s*h*p+m*l*T-s*d*T)/e,(i*h*M-u*d*M+u*l*p-a*h*p-i*l*T+a*d*T)/e,(u*m*M-i*v*M-u*s*p+a*v*p+i*s*T-a*m*T)/e,(i*v*l-u*m*l+u*s*d-a*v*d-i*s*h+a*m*h)/e,(c*h*M-v*f*M+v*l*C-s*h*C-c*l*T+s*f*T)/e,(u*f*M-r*h*M-u*l*C+a*h*C+r*l*T-a*f*T)/e,(r*v*M-u*c*M+u*s*C-a*v*C-r*s*T+a*c*T)/e,(u*c*l-r*v*l-u*s*f+a*v*f+r*s*h-a*c*h)/e,(m*f*M-c*d*M-m*l*C+s*d*C+c*l*p-s*f*p)/e,(r*d*M-i*f*M+i*l*C-a*d*C-r*l*p+a*f*p)/e,(i*c*M-r*m*M-i*s*C+a*m*C+r*s*p-a*c*p)/e,(r*m*l-i*c*l+i*s*f-a*m*f-r*s*d+a*c*d)/e]},transpose:function(t){return[t[0],t[4],t[8],t[12],t[1],t[5],t[9],t[13],t[2],t[6],t[10],t[14],t[3],t[7],t[11],t[15]]},multiplyVectorByMatrix:function(t,e){var n=babelHelpers.slicedToArray(t,4),a=n[0],r=n[1],o=n[2],i=n[3];return[a*e[0]+r*e[4]+o*e[8]+i*e[12],a*e[1]+r*e[5]+o*e[9]+i*e[13],a*e[2]+r*e[6]+o*e[10]+i*e[14],a*e[3]+r*e[7]+o*e[11]+i*e[15]]},v3Length:function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2])},v3Normalize:function(t,e){var n=1/(e||o.v3Length(t));return[t[0]*n,t[1]*n,t[2]*n]},v3Dot:function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},v3Combine:function(t,e,n,a){return[n*t[0]+a*e[0],n*t[1]+a*e[1],n*t[2]+a*e[2]]},v3Cross:function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]},quaternionToDegreesXYZ:function(t,e,n){var a=babelHelpers.slicedToArray(t,4),r=a[0],i=a[1],u=a[2],s=a[3],c=s*s,m=r*r,v=i*i,l=u*u,f=r*i+u*s,d=c+m+v+l,h=180/Math.PI;return f>.49999*d?[0,2*Math.atan2(r,s)*h,90]:f<-.49999*d?[0,-2*Math.atan2(r,s)*h,-90]:[o.roundTo3Places(Math.atan2(2*r*s-2*i*u,1-2*m-2*l)*h),o.roundTo3Places(Math.atan2(2*i*s-2*r*u,1-2*v-2*l)*h),o.roundTo3Places(Math.asin(2*r*i+2*u*s)*h)]},roundTo3Places:function(t){var e=t.toString().split("e");return.001*Math.round(e[0]+"e"+(e[1]?+e[1]-3:3))},decomposeMatrix:function(t){r(16===t.length,"Matrix decomposition needs a list of 3d matrix values, received %s",t);var e=[],n=[],a=[],i=[],u=[];if(t[15]){for(var s=[],c=[],m=0;m<4;m++){s.push([]);for(var v=0;v<4;v++){var l=t[4*m+v]/t[15];s[m].push(l),c.push(3===v?0:l)}}if(c[15]=1,o.determinant(c)){if(0!==s[0][3]||0!==s[1][3]||0!==s[2][3])var f=[s[0][3],s[1][3],s[2][3],s[3][3]],d=o.inverse(c),h=o.transpose(d),e=o.multiplyVectorByMatrix(f,h);else e[0]=e[1]=e[2]=0,e[3]=1;for(var m=0;m<3;m++)u[m]=s[3][m];var M=[];for(m=0;m<3;m++)M[m]=[s[m][0],s[m][1],s[m][2]];a[0]=o.v3Length(M[0]),M[0]=o.v3Normalize(M[0],a[0]),i[0]=o.v3Dot(M[0],M[1]),M[1]=o.v3Combine(M[1],M[0],1,-i[0]),i[0]=o.v3Dot(M[0],M[1]),M[1]=o.v3Combine(M[1],M[0],1,-i[0]),a[1]=o.v3Length(M[1]),M[1]=o.v3Normalize(M[1],a[1]),i[0]/=a[1],i[1]=o.v3Dot(M[0],M[2]),M[2]=o.v3Combine(M[2],M[0],1,-i[1]),i[2]=o.v3Dot(M[1],M[2]),M[2]=o.v3Combine(M[2],M[1],1,-i[2]),a[2]=o.v3Length(M[2]),M[2]=o.v3Normalize(M[2],a[2]),i[1]/=a[2],i[2]/=a[2];var C=o.v3Cross(M[1],M[2]);if(o.v3Dot(M[0],C)<0)for(m=0;m<3;m++)a[m]*=-1,M[m][0]*=-1,M[m][1]*=-1,M[m][2]*=-1;n[0]=.5*Math.sqrt(Math.max(1+M[0][0]-M[1][1]-M[2][2],0)),n[1]=.5*Math.sqrt(Math.max(1-M[0][0]+M[1][1]-M[2][2],0)),n[2]=.5*Math.sqrt(Math.max(1-M[0][0]-M[1][1]+M[2][2],0)),n[3]=.5*Math.sqrt(Math.max(1+M[0][0]+M[1][1]+M[2][2],0)),M[2][1]>M[1][2]&&(n[0]=-n[0]),M[0][2]>M[2][0]&&(n[1]=-n[1]),M[1][0]>M[0][1]&&(n[2]=-n[2]);var p;return p=n[0]<.001&&n[0]>=0&&n[1]<.001&&n[1]>=0?[0,0,o.roundTo3Places(180*Math.atan2(M[0][1],M[0][0])/Math.PI)]:o.quaternionToDegreesXYZ(n,s,M),{rotationDegrees:p,perspective:e,quaternion:n,scale:a,skew:i,translation:u,rotate:p[2],rotateX:p[0],rotateY:p[1],scaleX:a[0],scaleY:a[1],translateX:u[0],translateY:u[1]}}}}};n.exports=o},127);
__d(function(t,i,h,d){"use strict";var e={width:void 0,height:void 0},n=function(t,i){return t=t||e,i=i||e,t!==i&&(t.width!==i.width||t.height!==i.height)};h.exports=n},128);
__d(function(e,l,a,t){"use strict";var r=l(113),n=(l(121),l(120),l(122)),d=l(123),i=(l(44),function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"validateStyleProp",value:function(e,l,a){return}},{key:"validateStyle",value:function(e,l){return}},{key:"addValidStylePropTypes",value:function(e){for(var l in e)s[l]=e[l]}}]),e}()),s={};i.addValidStylePropTypes(r),i.addValidStylePropTypes(n),i.addValidStylePropTypes(d),a.exports=i},129);
__d(function(e,n,o,t){"use strict";var s=n(131),i=n(69),a=n(76),r=n(75),c=n(97),l=(n(112),n(136)),d=n(137),p=n(123),u=n(44),b={};r.isTVOS&&(b=n(138));var f=n(139),y=c.PropTypes,T=d(p),R=["none","button","link","header","search","image","selected","plays","key","text","summary","disabled","frequentUpdates","startsMedia","adjustable","allowsDirectInteraction","pageTurn"],h=["none","button","radiobutton_checked","radiobutton_unchecked"],v=a.IOSConstants&&a.IOSConstants.forceTouchAvailable||!1,S={AccessibilityTraits:R,AccessibilityComponentType:h,forceTouchAvailable:v},m=c.createClass({displayName:"View",mixins:[i],viewConfig:{uiViewClassName:"RCTView",validAttributes:l.RCTView},statics:babelHelpers.extends({},S),propTypes:babelHelpers.extends({},b,{accessible:y.bool,accessibilityLabel:y.node,accessibilityComponentType:y.oneOf(h),accessibilityLiveRegion:y.oneOf(["none","polite","assertive"]),importantForAccessibility:y.oneOf(["auto","yes","no","no-hide-descendants"]),accessibilityTraits:y.oneOfType([y.oneOf(R),y.arrayOf(y.oneOf(R))]),onAccessibilityTap:y.func,onMagicTap:y.func,testID:y.string,onResponderGrant:y.func,onResponderMove:y.func,onResponderReject:y.func,onResponderRelease:y.func,onResponderTerminate:y.func,onResponderTerminationRequest:y.func,onStartShouldSetResponder:y.func,onStartShouldSetResponderCapture:y.func,onMoveShouldSetResponder:y.func,onMoveShouldSetResponderCapture:y.func,hitSlop:s,onLayout:y.func,pointerEvents:y.oneOf(["box-none","none","box-only","auto"]),style:T,removeClippedSubviews:y.bool,renderToHardwareTextureAndroid:y.bool,shouldRasterizeIOS:y.bool,collapsable:y.bool,needsOffscreenAlphaCompositing:y.bool}),contextTypes:{isInAParentText:c.PropTypes.bool},render:function(){return u((this.context.isInAParentText,!0),"Nesting of <View> within <Text> is not supported on Android."),c.createElement(x,this.props)}}),x=f("RCTView",m,{nativeOnly:{nativeBackgroundAndroid:!0,nativeForegroundAndroid:!0}}),A=x;babelHelpers.extends(x,S),o.exports=A},130);
__d(function(r,t,e,n){"use strict";var o=t(97),u=o.PropTypes,b=t(132),m=b({top:u.number,left:u.number,bottom:u.number,right:u.number});e.exports=m},131);
__d(function(n,e,i,t){"use strict";function r(n){function e(e,i,t,r,d){if(!i[t])return void(e&&s(!1,"Required object `"+t+"` was not specified in `"+r+"`."));var a=i[t],c=typeof a,f=d&&o[d]||"(unknown)";"object"!==c&&s(!1,"Invalid "+f+" `"+t+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var p=l(i[t],n);for(var v in p){var y=n[v];y||s(!1,"Invalid props."+t+" key `"+v+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(i[t],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(n),null," "));var b=y(a,v,r,d,null,u);b&&s(!1,b.message+"\nBad object: "+JSON.stringify(i[t],null," "))}}function i(n,i,t,r){return e(!1,n,i,t,r)}return i.isRequired=e.bind(null,!0),i}var o=e(67),u=e(120),s=e(44),l=e(133);i.exports=r},132);
__d(function(r,t,n,u){"use strict";var c=t(134),e=function(r,t){var n={};return c(n,r),c(n,t),n};n.exports=e},133);
__d(function(e,r,c,t){"use strict";function n(e,r){if(f(e),null!=r){i(r);for(var c in r)r.hasOwnProperty(c)&&(e[c]=r[c])}}var o=r(135),i=o.checkMergeObjectArg,f=o.checkMergeIntoObjectArg;c.exports=n},134);
__d(function(e,r,t,n){"use strict";var c=r(44),o=r(115),a=function(e){return"object"!=typeof e||null===e},i={MAX_MERGE_DEPTH:36,isTerminal:a,normalizeMergeArg:function(e){return void 0===e||null===e?{}:e},checkMergeArrayArgs:function(e,r){c(Array.isArray(e)&&Array.isArray(r),"Tried to merge arrays, instead got %s and %s.",e,r)},checkMergeObjectArgs:function(e,r){i.checkMergeObjectArg(e),i.checkMergeObjectArg(r)},checkMergeObjectArg:function(e){c(!a(e)&&!Array.isArray(e),"Tried to merge an object, instead got %s.",e)},checkMergeIntoObjectArg:function(e){c(!(a(e)&&"function"!=typeof e||Array.isArray(e)),"Tried to merge into an object, instead got %s.",e)},checkMergeLevel:function(e){c(e<36,"Maximum deep merge depth exceeded. You may be attempting to merge circular structures in an unsupported way.")},checkArrayStrategy:function(e){c(void 0===e||e in i.ArrayStrategies,"You must provide an array strategy to deep merge functions to instruct the deep merge how to resolve merging two arrays.")},ArrayStrategies:o({Clobber:!0,IndexByIndex:!0})};t.exports=i},135);
__d(function(e,i,s,t){"use strict";var a=i(112),c={};c.UIView={pointerEvents:!0,accessible:!0,accessibilityLabel:!0,accessibilityComponentType:!0,accessibilityLiveRegion:!0,accessibilityTraits:!0,importantForAccessibility:!0,testID:!0,renderToHardwareTextureAndroid:!0,shouldRasterizeIOS:!0,onLayout:!0,onAccessibilityTap:!0,onMagicTap:!0,collapsable:!0,needsOffscreenAlphaCompositing:!0,style:a},c.RCTView=babelHelpers.extends({},c.UIView,{removeClippedSubviews:!0}),s.exports=c},136);
__d(function(r,n,t,u){"use strict";function c(r){var n=e(r);return function(r,t,u,c){var e=r;return r[t]&&(e={},e[t]=i(r[t])),n(e,t,u,c)}}var e=n(132),i=n(73);t.exports=c},137);
__d(function(a,e,r,t){"use strict";var l=e(97).PropTypes,i={isTVSelectable:l.bool,hasTVPreferredFocus:l.bool,tvParallaxProperties:l.object,tvParallaxShiftDistanceX:l.number,tvParallaxShiftDistanceY:l.number,tvParallaxTiltAngle:l.number,tvParallaxMagnification:l.number};r.exports=i},138);
__d(function(r,e,o,t){"use strict";function a(r,e,o){var t=n[r];if(!t||!t.NativeProps)return c(!1,'Native component for "%s" does not exist',r),C;t.uiViewClassName=r,t.validAttributes={},t.propTypes=e&&e.propTypes;var a=babelHelpers.extends({},n.RCTView.NativeProps,t.NativeProps);for(var s in a){var l=!1,v={},u=m[a[s]];u&&(v.diff=u,l=!0);var f=A[a[s]];f&&(v.process=f,l=!0),t.validAttributes[s]=!l||v}return t.validAttributes.style=i,p(t)}function s(r){return r&&r.map(f)}var i=e(112),n=e(94),C=e(140),p=e(141),l=e(178),v=e(124),u=e(179),f=e(125),d=e(180),I=e(128),c=(e(184),e(40)),m={CATransform3D:v,CGPoint:u,CGSize:I,UIEdgeInsets:l},A={CGColor:f,CGColorArray:s,UIColor:f,UIColorArray:s,CGImage:d,UIImage:d,RCTImageSource:d,Color:f,ColorArray:s};o.exports=a},139);
__d(function(e,r,t,l){"use strict";var s=r(97),n=r(98),o=function(e){function t(){var e,r,l,s;babelHelpers.classCallCheck(this,t);for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return r=l=babelHelpers.possibleConstructorReturn(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),l.setNativeProps=function(){},s=r,babelHelpers.possibleConstructorReturn(l,s)}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=r(130);return s.createElement(e,{style:[a.unimplementedView,this.props.style]},this.props.children)}}]),t}(s.Component),a=n.create({unimplementedView:{borderWidth:1,borderColor:"red",alignSelf:"flex-start"}});t.exports=o},140);
__d(function(t,e,n,r){"use strict";var o=e(142),i=function(t){var e=function(t){this._currentElement=t,this._topLevelWrapper=null,this._hostParent=null,this._hostContainerInfo=null,this._rootNodeID=0,this._renderedChildren=null};return e.displayName=t.uiViewClassName,e.viewConfig=t,e.propTypes=t.propTypes,e.prototype=new o(t),e.prototype.constructor=e,e};n.exports=i},141);
__d(function(e,t,i,n){"use strict";var r=t(69),o=t(70),s=t(143),h=t(144),a=t(152),u=t(162),p=t(94),c=(t(89),h.registrationNames),l=h.putListener,d=h.deleteListener,f=h.deleteAllListeners,v=function(e){this.viewConfig=e};v.Mixin={getPublicInstance:function(){return this},unmountComponent:function(){s.uncacheNode(this),f(this),this.unmountChildren(),this._rootNodeID=0},initializeChildren:function(e,t,i,n){var r=this.mountChildren(e,i,n);if(r.length){for(var o=[],s=0,h=r.length;s<h;s++){var a=r[s],u=a;o[s]=u}p.setChildren(t,o)}},receiveComponent:function(e,t,i){var n=this._currentElement;this._currentElement=e;var r=o.diff(n.props,e.props,this.viewConfig.validAttributes);r&&p.updateView(this._rootNodeID,this.viewConfig.uiViewClassName,r),this._reconcileListenersUponUpdate(n.props,e.props),this.updateChildren(e.props.children,t,i)},_registerListenersUponCreation:function(e){for(var t in e)if(c[t]&&e[t]){var i=e[t];l(this,t,i)}},_reconcileListenersUponUpdate:function(e,t){for(var i in t)c[i]&&t[i]!==e[i]&&(t[i]?l(this,i,t[i]):d(this,i))},getHostNode:function(){return this._rootNodeID},mountComponent:function(e,t,i,n){var r=a.allocateTag();this._rootNodeID=r,this._hostParent=t,this._hostContainerInfo=i;var h=o.create(this._currentElement.props,this.viewConfig.validAttributes),u=i._tag;return p.createView(r,this.viewConfig.uiViewClassName,u,h),s.precacheNode(this,r),this._registerListenersUponCreation(this._currentElement.props),this.initializeChildren(this._currentElement.props.children,r,e,n),r}},babelHelpers.extends(v.prototype,u,v.Mixin,r),i.exports=v},142);
__d(function(e,n,o,t){"use strict";function r(e){for(var n;n=e._renderedComponent;)e=n;return e}function c(e,n){var o=r(e);i[n]=o}function a(e){var n=e._rootNodeID;n&&delete i[n]}function d(e){return i[e]||null}function u(e){return s(e._rootNodeID,"All native instances should have a tag."),e._rootNodeID}var s=n(44),i={},N={getClosestInstanceFromNode:d,getInstanceFromNode:d,getNodeFromInstance:u,precacheNode:c,uncacheNode:a};o.exports=N},143);
__d(function(e,t,n,r){"use strict";var o=t(145),l=t(146),s=t(151),a=t(143),i=t(152),u=t(153),c=(t(40),{}),v=function(e,t){for(var n=[],r=0;r<t.length;r++)n.push(e[t[r]]);return n},d=function(e,t){for(var n=[],r=e,o=0;o<t.length;o++){var l=t[o];n.push(e[l]),r[l]=null}for(var s=0,a=0;a<r.length;a++){var i=r[a];null!==i&&(r[s++]=i)}return r.length=s,n},h=babelHelpers.extends({},s,{registrationNames:l.registrationNameModules,putListener:o.putListener,getListener:o.getListener,deleteListener:o.deleteListener,deleteAllListeners:o.deleteAllListeners,_receiveRootNodeIDEvent:function(e,t,n){var r=n||c,o=a.getInstanceFromNode(e);o&&u.batchedUpdates(function(){h.handleTopLevel(t,o,r,r.target)})},receiveEvent:function(e,t,n){var r=e;h._receiveRootNodeIDEvent(r,t,n)},receiveTouches:function(e,t,n){for(var r="topTouchEnd"===e||"topTouchCancel"===e?d(t,n):v(t,n),o=0;o<r.length;o++){var l=r[o];l.changedTouches=r,l.touches=t;var s=l,a=null,u=s.target;null!==u&&void 0!==u&&(u<i.tagsStartAt||(a=u)),h._receiveRootNodeIDEvent(a,e,s)}}});n.exports=h},144);
__d(function(e,t,n,r){"use strict";var i=t(146),u=t(147),s=t(148),o=t(149),l=t(150),a=t(44),c={},f=null,v=function(e,t){e&&(u.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},d=function(e){return v(e,!0)},p=function(e){return v(e,!1)},g=function(e){return"."+e._rootNodeID},E={injection:{injectEventPluginOrder:i.injectEventPluginOrder,injectEventPluginsByName:i.injectEventPluginsByName},putListener:function(e,t,n){a("function"==typeof n,"Expected %s listener to be a function, instead got type %s",t,typeof n);var r=g(e);(c[t]||(c[t]={}))[r]=n;var u=i.registrationNameModules[t];u&&u.didPutListener&&u.didPutListener(e,t,n)},getListener:function(e,t){var n=c[t],r=g(e);return n&&n[r]},deleteListener:function(e,t){var n=i.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=c[t];if(r){delete r[g(e)]}},deleteAllListeners:function(e){var t=g(e);for(var n in c)if(c.hasOwnProperty(n)&&c[n][t]){var r=i.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(e,n),delete c[n][t]}},extractEvents:function(e,t,n,r){for(var u,s=i.plugins,l=0;l<s.length;l++){var a=s[l];if(a){var c=a.extractEvents(e,t,n,r);c&&(u=o(u,c))}}return u},enqueueEvents:function(e){e&&(f=o(f,e))},processEventQueue:function(e){var t=f;f=null,e?l(t,d):l(t,p),a(!f,"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."),s.rethrowCaughtError()},__purge:function(){c={}},__getListenerBank:function(){return c}};n.exports=E},145);
__d(function(e,n,t,i){"use strict";function r(){if(u)for(var e in g){var n=g[e],t=u.indexOf(e);if(o(t>-1,"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.",e),!l.plugins[t]){o(n.extractEvents,"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.",e),l.plugins[t]=n;var i=n.eventTypes;for(var r in i)o(a(i[r],n,r),"EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.",r,e)}}}function a(e,n,t){o(!l.eventNameDispatchConfigs.hasOwnProperty(t),"EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.",t),l.eventNameDispatchConfigs[t]=e;var i=e.phasedRegistrationNames;if(i){for(var r in i)if(i.hasOwnProperty(r)){var a=i[r];s(a,n,t)}return!0}return!!e.registrationName&&(s(e.registrationName,n,t),!0)}function s(e,n,t){o(!l.registrationNameModules[e],"EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.",e),l.registrationNameModules[e]=n,l.registrationNameDependencies[e]=n.eventTypes[t].dependencies}var o=n(44),u=null,g={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){o(!u,"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."),u=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var n=!1;for(var t in e)if(e.hasOwnProperty(t)){var i=e[t];g.hasOwnProperty(t)&&g[t]===i||(o(!g[t],"EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.",t),g[t]=i,n=!0)}n&&r()},getPluginModuleForEvent:function(e){var n=e.dispatchConfig;if(n.registrationName)return l.registrationNameModules[n.registrationName]||null;if(void 0!==n.phasedRegistrationNames){var t=n.phasedRegistrationNames;for(var i in t)if(t.hasOwnProperty(i)){var r=l.registrationNameModules[t[i]];if(r)return r}}return null},_resetEventPlugins:function(){u=null;for(var e in g)g.hasOwnProperty(e)&&delete g[e];l.plugins.length=0;var n=l.eventNameDispatchConfigs;for(var t in n)n.hasOwnProperty(t)&&delete n[t];var i=l.registrationNameModules;for(var r in i)i.hasOwnProperty(r)&&delete i[r]}};t.exports=l},146);
__d(function(e,t,n,r){"use strict";function s(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function a(e){return"topMouseMove"===e||"topTouchMove"===e}function c(e){return"topMouseDown"===e||"topTouchStart"===e}function o(e,t,n,r){var s=e.type||"unknown-event";e.currentTarget=_.getNodeFromInstance(r),t?v.invokeGuardedCallbackWithCatch(s,n,e):v.invokeGuardedCallback(s,n,e),e.currentTarget=null}function i(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var s=0;s<n.length&&!e.isPropagationStopped();s++)o(e,t,n[s],r[s]);else n&&o(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null}function u(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r]))return n[r]}else if(t&&t(e,n))return n;return null}function p(e){var t=u(e);return e._dispatchInstances=null,e._dispatchListeners=null,t}function l(e){var t=e._dispatchListeners,n=e._dispatchInstances;g(!Array.isArray(t),"executeDirectDispatch(...): Invalid `event`."),e.currentTarget=t?_.getNodeFromInstance(n):null;var r=t?t(e):null;return e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,r}function h(e){return!!e._dispatchListeners}var d,f,v=t(148),g=t(44),I=(t(40),{injectComponentTree:function(e){d=e},injectTreeTraversal:function(e){f=e}}),_={isEndish:s,isMoveish:a,isStartish:c,executeDirectDispatch:l,executeDispatchesInOrder:i,executeDispatchesInOrderStopAtTrue:p,hasDispatches:h,getInstanceFromNode:function(e){return d.getInstanceFromNode(e)},getNodeFromInstance:function(e){return d.getNodeFromInstance(e)},isAncestor:function(e,t){return f.isAncestor(e,t)},getLowestCommonAncestor:function(e,t){return f.getLowestCommonAncestor(e,t)},getParentInstance:function(e){return f.getParentInstance(e)},traverseTwoPhase:function(e,t,n){return f.traverseTwoPhase(e,t,n)},traverseEnterLeave:function(e,t,n,r,s){return f.traverseEnterLeave(e,t,n,r,s)},injection:I};n.exports=_},147);
__d(function(r,t,a,n){"use strict";function l(r,t,a){try{t(a)}catch(r){null===u&&(u=r)}}var u=null,c={invokeGuardedCallback:l,invokeGuardedCallbackWithCatch:l,rethrowCaughtError:function(){if(u){var r=u;throw u=null,r}}};a.exports=c},148);
__d(function(r,u,n,t){"use strict";function a(r,u){return s(null!=u,"accumulateInto(...): Accumulated items must not be null or undefined."),null==r?u:Array.isArray(r)?Array.isArray(u)?(r.push.apply(r,u),r):(r.push(u),r):Array.isArray(u)?[r].concat(u):[r,u]}var s=u(44);n.exports=a},149);
__d(function(r,c,t,a){"use strict";function i(r,c,t){Array.isArray(r)?r.forEach(c,t):r&&c.call(t,r)}t.exports=i},150);
__d(function(e,n,t,u){"use strict";function s(e){c.enqueueEvents(e),c.processEventQueue(!1)}var c=n(145),o={handleTopLevel:function(e,n,t,u){s(c.extractEvents(e,n,t,u))}};t.exports=o},151);
__d(function(t,a,o,n){"use strict";var e=a(44),r={tagsStartAt:1,tagCount:1,allocateTag:function(){for(;this.reactTagIsNativeTopRootID(r.tagCount);)r.tagCount++;var t=r.tagCount;return r.tagCount++,t},assertRootTag:function(t){e(this.reactTagIsNativeTopRootID(t),"Expect a native root tag, instead got %s",t)},reactTagIsNativeTopRootID:function(t){return t%10==1}};o.exports=r},152);
__d(function(e,t,n,a){"use strict";function c(){m(L.ReactReconcileTransaction&&v,"ReactUpdates: must inject a reconcile transaction class and batching strategy")}function i(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=d.getPooled(),this.reconcileTransaction=L.ReactReconcileTransaction.getPooled(!0)}function o(e,t,n,a,i,o){return c(),v.batchedUpdates(e,t,n,a,i,o)}function r(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;m(t===b.length,"Expected flush transaction's stored dirty-components length (%s) to match dirty-components array length (%s).",t,b.length),b.sort(r),y++;for(var n=0;n<t;n++){var a=b[n],c=a._pendingCallbacks;a._pendingCallbacks=null;var i;if(h.logTopLevelRenders){var o=a;a._currentElement.type.isReactTopLevelWrapper&&(o=a._renderedComponent),i="React update: "+o.getName(),console.time(i)}if(g.performUpdateIfNecessary(a,e.reconcileTransaction,y),i&&console.timeEnd(i),c)for(var s=0;s<c.length;s++)e.callbackQueue.enqueue(c[s],a.getPublicInstance())}}function l(e){if(c(),!v.isBatchingUpdates)return void v.batchedUpdates(l,e);b.push(e),null==e._updateBatchNumber&&(e._updateBatchNumber=y+1)}function u(e,t){m(v.isBatchingUpdates,"ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched."),R.enqueue(e,t),U=!0}var d=t(154),p=t(155),h=t(156),g=t(157),f=t(161),m=t(44),b=[],y=0,R=d.getPooled(),U=!1,v=null,T={initialize:function(){this.dirtyComponentsLength=b.length},close:function(){this.dirtyComponentsLength!==b.length?(b.splice(0,this.dirtyComponentsLength),k()):b.length=0}},C={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},_=[T,C];babelHelpers.extends(i.prototype,f,{getTransactionWrappers:function(){return _},destructor:function(){this.dirtyComponentsLength=null,d.release(this.callbackQueue),this.callbackQueue=null,L.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return f.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),p.addPoolingTo(i);var k=function(){for(;b.length||U;){if(b.length){var e=i.getPooled();e.perform(s,null,e),i.release(e)}if(U){U=!1;var t=R;R=d.getPooled(),t.notifyAll(),d.release(t)}}},B={injectReconcileTransaction:function(e){m(e,"ReactUpdates: must provide a reconcile transaction class"),L.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){m(e,"ReactUpdates: must provide a batching strategy"),m("function"==typeof e.batchedUpdates,"ReactUpdates: must provide a batchedUpdates() function"),m("boolean"==typeof e.isBatchingUpdates,"ReactUpdates: must provide an isBatchingUpdates boolean attribute"),v=e},getBatchingStrategy:function(){return v}},L={ReactReconcileTransaction:null,batchedUpdates:o,enqueueUpdate:l,flushBatchedUpdates:k,injection:B,asap:u};n.exports=L},153);
__d(function(t,l,s,e){"use strict";var c=l(155),n=l(44),a=function(){function t(l){babelHelpers.classCallCheck(this,t),this._callbacks=null,this._contexts=null,this._arg=l}return babelHelpers.createClass(t,[{key:"enqueue",value:function(t,l){this._callbacks=this._callbacks||[],this._callbacks.push(t),this._contexts=this._contexts||[],this._contexts.push(l)}},{key:"notifyAll",value:function(){var t=this._callbacks,l=this._contexts,s=this._arg;if(t&&l){n(t.length===l.length,"Mismatched list of contexts in callback queue"),this._callbacks=null,this._contexts=null;for(var e=0;e<t.length;e++)t[e].call(l[e],s);t.length=0,l.length=0}}},{key:"checkpoint",value:function(){return this._callbacks?this._callbacks.length:0}},{key:"rollback",value:function(t){this._callbacks&&this._contexts&&(this._callbacks.length=t,this._contexts.length=t)}},{key:"reset",value:function(){this._callbacks=null,this._contexts=null}},{key:"destructor",value:function(){this.reset()}}]),t}();s.exports=c.addPoolingTo(a)},154);
__d(function(n,o,e,t){"use strict";var r=o(44),i=function(n){var o=this;if(o.instancePool.length){var e=o.instancePool.pop();return o.call(e,n),e}return new o(n)},l=function(n,o){var e=this;if(e.instancePool.length){var t=e.instancePool.pop();return e.call(t,n,o),t}return new e(n,o)},a=function(n,o,e){var t=this;if(t.instancePool.length){var r=t.instancePool.pop();return t.call(r,n,o,e),r}return new t(n,o,e)},c=function(n,o,e,t){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,n,o,e,t),i}return new r(n,o,e,t)},s=function(n,o,e,t,r){var i=this;if(i.instancePool.length){var l=i.instancePool.pop();return i.call(l,n,o,e,t,r),l}return new i(n,o,e,t,r)},u=function(n){var o=this;r(n instanceof o,"Trying to release an instance into a pool of a different type."),n.destructor(),o.instancePool.length<o.poolSize&&o.instancePool.push(n)},P=i,f=function(n,o){var e=n;return e.instancePool=[],e.getPooled=o||P,e.poolSize||(e.poolSize=10),e.release=u,e},p={addPoolingTo:f,oneArgumentPooler:i,twoArgumentPooler:l,threeArgumentPooler:a,fourArgumentPooler:c,fiveArgumentPooler:s};e.exports=p},155);
__d(function(e,o,r,s){"use strict";var t={logTopLevelRenders:!1};r.exports=t},156);
__d(function(e,t,n,r){"use strict";function u(e){o.attachRefs(this,this._currentElement,e)}var o=t(158),c=(t(160),t(40)),a={mountComponent:function(e,t,n,r,o,c){var a=e.mountComponent(t,n,r,o,c);return e._currentElement&&null!=e._currentElement.ref&&t.getReactMountReady().enqueue(u,e),a},getHostNode:function(e){return e.getHostNode()},unmountComponent:function(e,t){o.detachRefs(e,e._currentElement),e.unmountComponent(t)},receiveComponent:function(e,t,n,r){var c=e._currentElement;if(t!==c||r!==e._context){var a=o.shouldUpdateRefs(c,t);a&&o.detachRefs(e,c),e.receiveComponent(t,n,r),a&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(u,e)}},performUpdateIfNecessary:function(e,t,n){if(e._updateBatchNumber!==n)return void c(null==e._updateBatchNumber||e._updateBatchNumber===n+1,"performUpdateIfNecessary: Unexpected batch number (current %s, pending %s)",n,e._updateBatchNumber);e.performUpdateIfNecessary(t)}};n.exports=a},157);
__d(function(n,e,o,t){"use strict";function f(n,e,o,t){"function"==typeof n?n(e.getPublicInstance(t)):u.addComponentAsRefTo(e,n,o,t)}function l(n,e,o){"function"==typeof n?n(null):u.removeComponentAsRefFrom(e,n,o)}var u=e(159),r={};r.attachRefs=function(n,e,o){if(null!==e&&"object"==typeof e){var t=e.ref;null!=t&&f(t,n,e._owner,o)}},r.shouldUpdateRefs=function(n,e){var o=null,t=null;null!==n&&"object"==typeof n&&(o=n.ref,t=n._owner);var f=null,l=null;return null!==e&&"object"==typeof e&&(f=e.ref,l=e._owner),o!==f||"string"==typeof f&&l!==t},r.detachRefs=function(n,e){if(null!==e&&"object"==typeof e){var o=e.ref;null!=o&&l(o,n,e._owner)}},o.exports=r},158);
__d(function(e,t,o,n){"use strict";function a(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)}var r=t(44),c={addComponentAsRefTo:function(e,t,o,n){r(a(o),"addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner)."),o.attachRef(t,e,n)},removeComponentAsRefFrom:function(e,t,o){r(a(o),"removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).");var n=o.getPublicInstance();n&&n.refs[t]===e.getPublicInstance()&&o.detachRef(t)}};o.exports=c},159);
__d(function(o,t,u,e){"use strict";u.exports={debugTool:null}},160);
__d(function(t,i,a,n){"use strict";var r=i(44),s={},l={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(t,i,a,n,s,l,e,c){r(!this.isInTransaction(),"Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction.");var o,h;try{this._isInTransaction=!0,o=!0,this.initializeAll(0),h=t.call(i,a,n,s,l,e,c),o=!1}finally{try{if(o)try{this.closeAll(0)}catch(t){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return h},initializeAll:function(t){for(var i=this.transactionWrappers,a=t;a<i.length;a++){var n=i[a];try{this.wrapperInitData[a]=s,this.wrapperInitData[a]=n.initialize?n.initialize.call(this):null}finally{if(this.wrapperInitData[a]===s)try{this.initializeAll(a+1)}catch(t){}}}},closeAll:function(t){r(this.isInTransaction(),"Transaction.closeAll(): Cannot close transaction when none are open.");for(var i=this.transactionWrappers,a=t;a<i.length;a++){var n,l=i[a],e=this.wrapperInitData[a];try{n=!0,e!==s&&l.close&&l.close.call(this,e),n=!1}finally{if(n)try{this.closeAll(a+1)}catch(t){}}}this.wrapperInitData.length=0}};a.exports=l},161);
__d(function(n,e,t,r){"use strict";function o(n,e,t){return{type:"INSERT_MARKUP",content:n,fromIndex:null,fromNode:null,toIndex:t,afterNode:e}}function i(n,e,t){return{type:"MOVE_EXISTING",content:null,fromIndex:n._mountIndex,fromNode:c.getHostNode(n),toIndex:t,afterNode:e}}function d(n,e){return{type:"REMOVE_NODE",content:null,fromIndex:n._mountIndex,fromNode:e,toIndex:null,afterNode:null}}function u(n){return{type:"SET_MARKUP",content:n,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(n){return{type:"TEXT_CONTENT",content:n,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function h(n,e){return e&&(n=n||[],n.push(e)),n}function a(n,e){f.processChildrenUpdates(n,e)}var f=e(163),c=(e(96),e(160),e(49),e(157)),s=e(164),m=(e(41),e(177)),C=e(44),_={_reconcilerInstantiateChildren:function(n,e,t){return s.instantiateChildren(n,e,t)},_reconcilerUpdateChildren:function(n,e,t,r,o,i){var d;return d=m(e,0),s.updateChildren(n,d,t,r,o,this,this._hostContainerInfo,i,0),d},mountChildren:function(n,e,t){var r=this._reconcilerInstantiateChildren(n,e,t);this._renderedChildren=r;var o=[],i=0;for(var d in r)if(r.hasOwnProperty(d)){var u=r[d],l=c.mountComponent(u,e,this,this._hostContainerInfo,t,0);u._mountIndex=i++,o.push(l)}return o},updateTextContent:function(n){var e=this._renderedChildren;s.unmountChildren(e,!1);for(var t in e)e.hasOwnProperty(t)&&C(!1,"updateTextContent called on non-empty component.");a(this,[l(n)])},updateMarkup:function(n){var e=this._renderedChildren;s.unmountChildren(e,!1);for(var t in e)e.hasOwnProperty(t)&&C(!1,"updateTextContent called on non-empty component.");a(this,[u(n)])},updateChildren:function(n,e,t){this._updateChildren(n,e,t)},_updateChildren:function(n,e,t){var r=this._renderedChildren,o={},i=[],d=this._reconcilerUpdateChildren(r,n,i,o,e,t);if(d||r){var u,l=null,f=0,s=0,m=0,C=null;for(u in d)if(d.hasOwnProperty(u)){var _=r&&r[u],p=d[u];_===p?(l=h(l,this.moveChild(_,C,f,s)),s=Math.max(_._mountIndex,s),_._mountIndex=f):(_&&(s=Math.max(_._mountIndex,s)),l=h(l,this._mountChildAtIndex(p,i[m],C,f,e,t)),m++),f++,C=c.getHostNode(p)}for(u in o)o.hasOwnProperty(u)&&(l=h(l,this._unmountChild(r[u],o[u])));l&&a(this,l),this._renderedChildren=d}},unmountChildren:function(n){var e=this._renderedChildren;s.unmountChildren(e,n),this._renderedChildren=null},moveChild:function(n,e,t,r){if(n._mountIndex<r)return i(n,e,t)},createChild:function(n,e,t){return o(t,e,n._mountIndex)},removeChild:function(n,e){return d(n,e)},_mountChildAtIndex:function(n,e,t,r,o,i){return n._mountIndex=r,this.createChild(n,t,e)},_unmountChild:function(n,e){var t=this.removeChild(n,e);return n._mountIndex=null,t}};t.exports=_},162);
__d(function(e,n,t,o){"use strict";var r=n(44),c=!1,i={replaceNodeWithMarkup:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){r(!c,"ReactCompositeComponent: injectEnvironment() can only be called once."),i.replaceNodeWithMarkup=e.replaceNodeWithMarkup,i.processChildrenUpdates=e.processChildrenUpdates,c=!0}}};t.exports=i},163);
__d(function(n,e,o,r){"use strict";function t(n,e,o,r){var t=void 0===n[o];null!=e&&t&&(n[o]=i(e,!0))}var u=e(157),i=e(165),a=(e(172),e(169)),s=e(173);e(40);"undefined"!=typeof process&&process.env;var f={instantiateChildren:function(n,e,o,r){if(null==n)return null;var u={};return s(n,t,u),u},updateChildren:function(n,e,o,r,t,s,f,p,l){if(e||n){var v,m;for(v in e)if(e.hasOwnProperty(v)){m=n&&n[v];var c=m&&m._currentElement,d=e[v];if(null!=m&&a(c,d))u.receiveComponent(m,d,t,p),e[v]=m;else{m&&(r[v]=u.getHostNode(m),u.unmountComponent(m,!1));var h=i(d,!0);e[v]=h;var C=u.mountComponent(h,t,s,f,p,l);o.push(C)}}for(v in n)!n.hasOwnProperty(v)||e&&e.hasOwnProperty(v)||(m=n[v],r[v]=u.getHostNode(m),u.unmountComponent(m,!1))}},unmountChildren:function(n,e){for(var o in n)if(n.hasOwnProperty(o)){var r=n[o];u.unmountComponent(r,e)}}};o.exports=f},164);
__d(function(e,t,n,o){"use strict";function p(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||!1===e)n=c.create(i);else if("object"==typeof e){var o=e;u(o&&("function"==typeof o.type||"string"==typeof o.type),"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",null==o.type?o.type:typeof o.type,p(o._owner)),"string"==typeof o.type?n=s.createInternalComponent(o):r(o.type)?(n=new o.type(o),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new y(o)}else"string"==typeof e||"number"==typeof e?n=s.createInstanceForText(e):u(!1,"Encountered invalid React node of type %s",typeof e);return n._mountIndex=0,n._mountImage=null,n}var f=t(166),c=t(170),s=t(171),u=t(44),y=(t(40),function(e){this.construct(e)});babelHelpers.extends(y.prototype,f,{_instantiateReactComponent:i});n.exports=i},165);
__d(function(t,e,n,o){"use strict";function i(t){}function r(t){return!(!t.prototype||!t.prototype.isReactComponent)}function s(t){return!(!t.prototype||!t.prototype.isPureReactComponent)}var a=e(97),p=e(163),l=e(49),u=e(148),c=e(96),h=(e(160),e(167)),d=e(157),m=e(43),_=e(44),C=e(168),f=e(169),g=(e(40),{ImpureClass:0,PureClass:1,StatelessFunctional:2});i.prototype.render=function(){var t=c.get(this)._currentElement.type,e=t(this.props,this.context,this.updater);return e};var v=1,y={construct:function(t){this._currentElement=t,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(t,e,n,o){this._context=o,this._mountOrder=v++,this._hostParent=e,this._hostContainerInfo=n;var p,l=this._currentElement.props,u=this._processContext(o),h=this._currentElement.type,d=t.getUpdateQueue(),C=r(h),f=this._constructComponent(C,l,u,d);C||null!=f&&null!=f.render?s(h)?this._compositeType=g.PureClass:this._compositeType=g.ImpureClass:(p=f,_(null===f||!1===f||a.isValidElement(f),"%s(...): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.",h.displayName||h.name||"Component"),f=new i(h),this._compositeType=g.StatelessFunctional),f.props=l,f.context=u,f.refs=m,f.updater=d,this._instance=f,c.set(f,this);var y=f.state;void 0===y&&(f.state=y=null),_("object"==typeof y&&!Array.isArray(y),"%s.state: must be set to an object or null",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var x;return x=f.unstable_handleError?this.performInitialMountWithErrorHandling(p,e,n,t,o):this.performInitialMount(p,e,n,t,o),f.componentDidMount&&t.getReactMountReady().enqueue(f.componentDidMount,f),x},_constructComponent:function(t,e,n,o){return this._constructComponentWithoutOwner(t,e,n,o)},_constructComponentWithoutOwner:function(t,e,n,o){var i=this._currentElement.type;return t?new i(e,n,o):i(e,n,o)},performInitialMountWithErrorHandling:function(t,e,n,o,i){var r,s=o.checkpoint();try{r=this.performInitialMount(t,e,n,o,i)}catch(a){o.rollback(s),this._instance.unstable_handleError(a),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),s=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(s),r=this.performInitialMount(t,e,n,o,i)}return r},performInitialMount:function(t,e,n,o,i){var r=this._instance;r.componentWillMount&&(r.componentWillMount(),this._pendingStateQueue&&(r.state=this._processPendingState(r.props,r.context))),void 0===t&&(t=this._renderValidatedComponent());var s=h.getType(t);this._renderedNodeType=s;var a=this._instantiateReactComponent(t,s!==h.EMPTY);return this._renderedComponent=a,d.mountComponent(a,o,e,n,this._processChildContext(i),0)},getHostNode:function(){return d.getHostNode(this._renderedComponent)},unmountComponent:function(t){if(this._renderedComponent){var e=this._instance;if(e.componentWillUnmount&&!e._calledComponentWillUnmount)if(e._calledComponentWillUnmount=!0,t){var n=this.getName()+".componentWillUnmount()";u.invokeGuardedCallback(n,e.componentWillUnmount.bind(e))}else e.componentWillUnmount();this._renderedComponent&&(d.unmountComponent(this._renderedComponent,t),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,c.remove(e)}},_maskContext:function(t){var e=this._currentElement.type,n=e.contextTypes;if(!n)return m;var o={};for(var i in n)o[i]=t[i];return o},_processContext:function(t){return this._maskContext(t)},_processChildContext:function(t){var e,n=this._currentElement.type,o=this._instance;if(o.getChildContext&&(e=o.getChildContext()),e){_("object"==typeof n.childContextTypes,"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",this.getName()||"ReactCompositeComponent");for(var i in e)_(i in n.childContextTypes,'%s.getChildContext(): key "%s" is not defined in childContextTypes.',this.getName()||"ReactCompositeComponent",i);return babelHelpers.extends({},t,e)}return t},_checkContextTypes:function(t,e,n){},receiveComponent:function(t,e,n){var o=this._currentElement,i=this._context;this._pendingElement=null,this.updateComponent(e,o,t,i,n)},performUpdateIfNecessary:function(t){null!=this._pendingElement?d.receiveComponent(this,this._pendingElement,t,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(t,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(t,e,n,o,i){var r=this._instance;_(null!=r,"Attempted to update component `%s` that has already been unmounted (or failed to mount).",this.getName()||"ReactCompositeComponent");var s,a=!1;this._context===i?s=r.context:(s=this._processContext(i),a=!0);var p=e.props,l=n.props;e!==n&&(a=!0),a&&r.componentWillReceiveProps&&r.componentWillReceiveProps(l,s);var u=this._processPendingState(l,s),c=!0;this._pendingForceUpdate||(r.shouldComponentUpdate?c=r.shouldComponentUpdate(l,u,s):this._compositeType===g.PureClass&&(c=!C(p,l)||!C(r.state,u))),this._updateBatchNumber=null,c?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,l,u,s,t,i)):(this._currentElement=n,this._context=i,r.props=l,r.state=u,r.context=s)},_processPendingState:function(t,e){var n=this._instance,o=this._pendingStateQueue,i=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(i&&1===o.length)return o[0];for(var r=babelHelpers.extends({},i?o[0]:n.state),s=i?1:0;s<o.length;s++){var a=o[s];babelHelpers.extends(r,"function"==typeof a?a.call(n,r,t,e):a)}return r},_performComponentUpdate:function(t,e,n,o,i,r){var s,a,p,l=this._instance,u=Boolean(l.componentDidUpdate);u&&(s=l.props,a=l.state,p=l.context),l.componentWillUpdate&&l.componentWillUpdate(e,n,o),this._currentElement=t,this._context=r,l.props=e,l.state=n,l.context=o,this._updateRenderedComponent(i,r),u&&i.getReactMountReady().enqueue(l.componentDidUpdate.bind(l,s,a,p),l)},_updateRenderedComponent:function(t,e){var n=this._renderedComponent,o=n._currentElement,i=this._renderValidatedComponent();if(f(o,i))d.receiveComponent(n,i,t,this._processChildContext(e));else{var r=d.getHostNode(n);d.unmountComponent(n,!1);var s=h.getType(i);this._renderedNodeType=s;var a=this._instantiateReactComponent(i,s!==h.EMPTY);this._renderedComponent=a;var p=d.mountComponent(a,t,this._hostParent,this._hostContainerInfo,this._processChildContext(e),0);this._replaceNodeWithMarkup(r,p,n)}},_replaceNodeWithMarkup:function(t,e,n){p.replaceNodeWithMarkup(t,e,n)},_renderValidatedComponentWithoutOwnerOrContext:function(){var t=this._instance;return t.render()},_renderValidatedComponent:function(){var t;if(this._compositeType!==g.StatelessFunctional){l.current=this;try{t=this._renderValidatedComponentWithoutOwnerOrContext()}finally{l.current=null}}else t=this._renderValidatedComponentWithoutOwnerOrContext();return _(null===t||!1===t||a.isValidElement(t),"%s.render(): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.",this.getName()||"ReactCompositeComponent"),t},attachRef:function(t,e,n){var o=this.getPublicInstance();_(null!=o,"Stateless function components cannot have refs.");var i=e.getPublicInstance(n);(o.refs===m?o.refs={}:o.refs)[t]=i},detachRef:function(t){delete this.getPublicInstance().refs[t]},getName:function(){var t=this._currentElement.type,e=this._instance&&this._instance.constructor;return t.displayName||e&&e.displayName||t.name||e&&e.name||null},getPublicInstance:function(){var t=this._instance;return this._compositeType===g.StatelessFunctional?null:t},_instantiateReactComponent:null};n.exports=y},166);
__d(function(e,t,n,i){"use strict";var o=t(97),T=t(44),u={HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||!1===e?u.EMPTY:o.isValidElement(e)?"function"==typeof e.type?u.COMPOSITE:u.HOST:void T(!1,"Unexpected node: %s",e)}};n.exports=u},167);
__d(function(t,e,r,n){"use strict";function o(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!==t&&e!==e}function u(t,e){if(o(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var u=0;u<r.length;u++)if(!c.call(e,r[u])||!o(t[r[u]],e[r[u]]))return!1;return!0}var c=Object.prototype.hasOwnProperty;r.exports=u},168);
__d(function(t,e,n,r){"use strict";function u(t,e){var n=null===t||!1===t,r=null===e||!1===e;if(n||r)return n===r;var u=typeof t,i=typeof e;return"string"===u||"number"===u?"string"===i||"number"===i:"object"===i&&t.type===e.type&&t.key===e.key}n.exports=u},169);
__d(function(t,n,c,e){"use strict";var o,i={injectEmptyComponentFactory:function(t){o=t}},r={create:function(t){return o(t)}};r.injection=i,c.exports=r},170);
__d(function(n,e,t,o){"use strict";function r(n){return s(u,"There is no registered component for the tag %s",n.type),new u(n)}function c(n){return new l(n)}function i(n){return n instanceof l}var s=e(44),u=null,a={},l=null,f={injectGenericComponentClass:function(n){u=n},injectTextComponentClass:function(n){l=n},injectComponentClasses:function(n){babelHelpers.extends(a,n)}},p={createInternalComponent:r,createInstanceForText:c,isTextComponent:i,injection:f};t.exports=p},171);
__d(function(n,r,e,t){"use strict";function u(n){var r={"=":"=0",":":"=2"};return"$"+(""+n).replace(/[=:]/g,function(n){return r[n]})}function c(n){var r=/(=0|=2)/g,e={"=0":"=","=2":":"};return(""+("."===n[0]&&"$"===n[1]?n.substring(2):n.substring(1))).replace(r,function(n){return e[n]})}var s={escape:u,unescape:c};e.exports=s},172);
__d(function(e,t,n,r){"use strict";function o(e,t){return e&&"object"==typeof e&&null!=e.key?f.escape(e.key):t.toString(36)}function a(e,t,n,r){var i=typeof e;if("undefined"!==i&&"boolean"!==i||(e=null),null===e||"string"===i||"number"===i||"object"===i&&e.$$typeof===l)return n(r,e,""===t?s+o(e,0):t),1;var b,j,y=0,d=""===t?s:t+v;if(Array.isArray(e))for(var p=0;p<e.length;p++)b=e[p],j=d+o(b,p),y+=a(b,j,n,r);else{var g=c(e);if(g){var k,h=g.call(e);if(g!==e.entries)for(var x=0;!(k=h.next()).done;)b=k.value,j=d+o(b,x++),y+=a(b,j,n,r);else for(;!(k=h.next()).done;){var O=k.value;O&&(b=O[1],j=d+f.escape(O[0])+v+o(b,0),y+=a(b,j,n,r))}}else if("object"===i){var A=String(e);u(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===A?"object with keys {"+Object.keys(e).join(", ")+"}":A,"")}}return y}function i(e,t,n){return null==e?0:a(e,"",t,n)}var l=(t(49),t(174)),c=t(175),u=t(44),f=t(172),s=(t(40),"."),v=":";n.exports=i},173);
__d(function(o,t,f,e){"use strict";var n="function"==typeof Symbol&&("function"==typeof Symbol?Symbol.for:"@@for")&&("function"==typeof Symbol?Symbol.for:"@@for")("react.element")||60103;f.exports=n},174);
__d(function(t,o,r,n){"use strict";function i(t){var o=t&&(e&&t[e]||t[f]);if("function"==typeof o)return o}var e="function"==typeof Symbol&&("function"==typeof Symbol?Symbol.iterator:"@@iterator"),f="@@iterator";r.exports=i},175);
__d(function(e,n,t,r){"use strict";function o(e){var n=Function.prototype.toString,t=Object.prototype.hasOwnProperty,r=RegExp("^"+n.call(t).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var o=n.call(e);return r.test(o)}catch(e){return!1}}function u(e){var n=f(e);if(n){var t=n.childIDs;p(e),t.forEach(u)}}function a(e,n,t){return"\n in "+(e||"Unknown")+(n?" (at "+n.fileName.replace(/^.*[\\\/]/,"")+":"+n.lineNumber+")":t?" (created by "+t+")":"")}function i(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function c(e){var n,t=C.getDisplayName(e),r=C.getElement(e),o=C.getOwnerID(e);return o&&(n=C.getDisplayName(o)),a(t,r&&r._source,n)}var l,f,p,s,m,d,y,g=n(38),v=n(49),D=(n(44),n(40),"function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys));if(D){var I=new Map,S=new Set;l=function(e,n){I.set(e,n)},f=function(e){return I.get(e)},p=function(e){I.delete(e)},s=function(){return Array.from(I.keys())},m=function(e){S.add(e)},d=function(e){S.delete(e)},y=function(){return Array.from(S.keys())}}else{var h={},k={},N=function(e){return"."+e},b=function(e){return parseInt(e.substr(1),10)};l=function(e,n){var t=N(e);h[t]=n},f=function(e){var n=N(e);return h[n]},p=function(e){var n=N(e);delete h[n]},s=function(){return Object.keys(h).map(b)},m=function(e){var n=N(e);k[n]=!0},d=function(e){var n=N(e);delete k[n]},y=function(){return Object.keys(k).map(b)}}var M=[],C={onSetChildren:function(e,n){var t=f(e);t||g("144"),t.childIDs=n;for(var r=0;r<n.length;r++){var o=n[r],u=f(o);u||g("140"),null==u.childIDs&&"object"==typeof u.element&&null!=u.element&&g("141"),u.isMounted||g("71"),null==u.parentID&&(u.parentID=e),u.parentID!==e&&g("142",o,u.parentID,e)}},onBeforeMountComponent:function(e,n,t){l(e,{element:n,parentID:t,text:null,childIDs:[],isMounted:!1,updateCount:0})},onBeforeUpdateComponent:function(e,n){var t=f(e);t&&t.isMounted&&(t.element=n)},onMountComponent:function(e){var n=f(e);n||g("144"),n.isMounted=!0,0===n.parentID&&m(e)},onUpdateComponent:function(e){var n=f(e);n&&n.isMounted&&n.updateCount++},onUnmountComponent:function(e){var n=f(e);if(n){n.isMounted=!1;0===n.parentID&&d(e)}M.push(e)},purgeUnmountedComponents:function(){if(!C._preventPurging){for(var e=0;e<M.length;e++){u(M[e])}M.length=0}},isMounted:function(e){var n=f(e);return!!n&&n.isMounted},getCurrentStackAddendum:function(e){var n="";if(e){var t=i(e),r=e._owner;n+=a(t,e._source,r&&r.getName())}var o=v.current,u=o&&o._debugID;return n+=C.getStackAddendumByID(u)},getStackAddendumByID:function(e){for(var n="";e;)n+=c(e),e=C.getParentID(e);return n},getChildIDs:function(e){var n=f(e);return n?n.childIDs:[]},getDisplayName:function(e){var n=C.getElement(e);return n?i(n):null},getElement:function(e){var n=f(e);return n?n.element:null},getOwnerID:function(e){var n=C.getElement(e);return n&&n._owner?n._owner._debugID:null},getParentID:function(e){var n=f(e);return n?n.parentID:null},getSource:function(e){var n=f(e),t=n?n.element:null;return null!=t?t._source:null},getText:function(e){var n=C.getElement(e);return"string"==typeof n?n:"number"==typeof n?""+n:null},getUpdateCount:function(e){var n=f(e);return n?n.updateCount:0},getRootIDs:y,getRegisteredIDs:s,pushNonStandardWarningStack:function(e,n){if("function"==typeof console.reactStack){var t=[],r=v.current,o=r&&r._debugID;try{for(e&&t.push({name:o?C.getDisplayName(o):null,fileName:n?n.fileName:null,lineNumber:n?n.lineNumber:null});o;){var u=C.getElement(o),a=C.getParentID(o),i=C.getOwnerID(o),c=i?C.getDisplayName(i):null,l=u&&u._source;t.push({name:c,fileName:l?l.fileName:null,lineNumber:l?l.lineNumber:null}),o=a}}catch(e){}console.reactStack(t)}},popNonStandardWarningStack:function(){"function"==typeof console.reactStackEnd&&console.reactStackEnd()}};t.exports=C},176);
__d(function(n,e,r,t){"use strict";function o(n,e,r,t){if(n&&"object"==typeof n){var o=n;void 0===o[r]&&null!=e&&(o[r]=e)}}function u(n,e){if(null==n)return n;var r={};return f(n,o,r),r}var f=(e(172),e(173));e(40);"undefined"!=typeof process&&process.env,r.exports=u},177);
__d(function(t,o,i,r){"use strict";var e={top:void 0,left:void 0,right:void 0,bottom:void 0},d=function(t,o){return t=t||e,o=o||e,t!==o&&(t.top!==o.top||t.left!==o.left||t.right!==o.right||t.bottom!==o.bottom)};i.exports=d},178);
__d(function(t,i,n,o){"use strict";var r={x:void 0,y:void 0},u=function(t,i){return t=t||r,i=i||r,t!==i&&(t.x!==i.x||t.y!==i.y)};n.exports=u},179);
__d(function(t,r,e,s){"use strict";function n(){if(void 0===v){var t=l.scriptURL,r=t&&t.match(/^https?:\/\/.*?\//);v=r?r[0]:null}return v}function i(){if(void 0===p){var t=l.scriptURL;if(!t)return p=null;if(t.startsWith("assets://"))return p=null;p=t.startsWith("file://")?t.substring(7,t.lastIndexOf("/")+1):t.substring(0,t.lastIndexOf("/")+1)}return p}function u(t){d=t}function o(t){if("object"==typeof t)return t;var r=f.getAssetByID(t);if(!r)return null;var e=new c(n(),i(),r);return d?d(e):e.defaultAsset()}var f=r(181),c=r(182),a=r(76),l=a.SourceCode,d=void 0,v=void 0,p=void 0;e.exports=o,e.exports.pickScale=c.pickScale,e.exports.setCustomSourceTransformer=u},180);
__d(function(t,e,r,s){"use strict";function n(t){return i.push(t)}function u(t){return i[t-1]}var i=[];r.exports={registerAsset:n,getAssetByID:u}},181);
__d(function(e,t,r,s){"use strict";function i(e){var t=l.pickScale(e.scales,n.get()),r=1===t?"":"@"+t+"x";return u.getBasePath(e)+"/"+e.name+r+"."+e.type}function a(e){var t=l.pickScale(e.scales,n.get());return u.getAndroidDrawableFolderName(e,t)+"/"+u.getAndroidResourceIdentifier(e)+"."+e.type}var n=t(99),u=(t(75),t(183)),o=t(44),l=function(){function e(t,r,s){babelHelpers.classCallCheck(this,e),this.serverUrl=t,this.bundlePath=r,this.asset=s}return babelHelpers.createClass(e,[{key:"isLoadedFromServer",value:function(){return!!this.serverUrl}},{key:"isLoadedFromFileSystem",value:function(){return!!this.bundlePath}},{key:"defaultAsset",value:function(){return this.isLoadedFromServer()?this.assetServerURL():this.scaledAssetPathInBundle()}},{key:"assetServerURL",value:function(){return o(!!this.serverUrl,"need server to load from"),this.fromSource(this.serverUrl+i(this.asset)+"?platform=ios&hash="+this.asset.hash)}},{key:"scaledAssetPath",value:function(){return this.fromSource(i(this.asset))}},{key:"scaledAssetPathInBundle",value:function(){var e=this.bundlePath||"";return this.fromSource(e+i(this.asset))}},{key:"resourceIdentifierWithoutScale",value:function(){return o(!1,"resource identifiers work on Android"),this.fromSource(u.getAndroidResourceIdentifier(this.asset))}},{key:"drawableFolderInBundle",value:function(){var e=this.bundlePath||"";return this.fromSource("file://"+e+a(this.asset))}},{key:"fromSource",value:function(t){return{__packager_asset:!0,width:this.asset.width,height:this.asset.height,uri:t,scale:e.pickScale(this.asset.scales,n.get())}}}],[{key:"pickScale",value:function(e,t){for(var r=0;r<e.length;r++)if(e[r]>=t)return e[r];return e[e.length-1]||1}}]),e}();r.exports=l},182);
__d(function(e,r,t,n){"use strict";function a(e){switch(e){case.75:return"ldpi";case 1:return"mdpi";case 1.5:return"hdpi";case 2:return"xhdpi";case 3:return"xxhdpi";case 4:return"xxxhdpi"}}function i(e,r){var t=a(r);if(!t)throw new Error("Don't know which android drawable suffix to use for asset: "+JSON.stringify(e));return"drawable-"+t}function s(e){return(o(e)+"/"+e.name).toLowerCase().replace(/\//g,"_").replace(/([^a-z0-9_])/g,"").replace(/^assets_/,"")}function o(e){var r=e.httpServerLocation;return"/"===r[0]&&(r=r.substr(1)),r}t.exports={getAndroidAssetSuffix:a,getAndroidDrawableFolderName:i,getAndroidResourceIdentifier:s,getBasePath:o}},183);
__d(function(e,o,r,a){"use strict";function p(e,o,r){if(o){var a=e.displayName||e.name||"unknown";if(!e.propTypes)throw new Error("`"+a+"` has no propTypes defined`");var p=o.NativeProps;for(var t in p)if(!(e.propTypes[t]||n[t]||r&&r[t])){var i;throw i=e.propTypes.hasOwnProperty(t)?"`"+a+"` has incorrectly defined propType for native prop `"+o.uiViewClassName+"."+t+"` of native type `"+p[t]:"`"+a+"` has no propType for native prop `"+o.uiViewClassName+"."+t+"` of native type `"+p[t]+"`",i+="\nIf you haven't changed this prop yourself, this usually means that your versions of the native code and JavaScript code are out of sync. Updating both should make this error go away.",new Error(i)}}}var n=o(112);r.exports=p},184);
__d(function(e,t,r,n){"use strict";function i(e,t){if(null==e||null==t)return!0;if(e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function l(e,t){if(e===t)return!1;if(e.font!==t.font){if(null===e.font)return!0;if(null===t.font)return!0;if(e.font.fontFamily!==t.font.fontFamily||e.font.fontSize!==t.font.fontSize||e.font.fontWeight!==t.font.fontWeight||e.font.fontStyle!==t.font.fontStyle)return!0}return i(e.lines,t.lines)}function o(e){return e?"string"==typeof e?e:e.length?e.join("\n"):"":""}function s(e,t){return null==e?t:+e}function a(e){var t=null!=e.scaleX?e.scaleX:null!=e.scale?e.scale:1,r=null!=e.scaleY?e.scaleY:null!=e.scale?e.scale:1;return L.transformTo(1,0,0,1,0,0).move(e.x||0,e.y||0).rotate(e.rotation||0,e.originX,e.originY).scale(t,r,e.originX,e.originY),null!=e.transform&&L.transform(e.transform),[L.xx,L.yx,L.xy,L.yy,L.x,L.y]}function u(e){return!1===e.visible?0:null==e.opacity?1:+e.opacity}function f(e,t,r){var n=new R(e);t[r+0]=n.red/255,t[r+1]=n.green/255,t[r+2]=n.blue/255,t[r+3]=n.alpha}function c(e,t,r){var n=0;if("length"in e)for(;n<e.length;)f(e[n],t,r+4*n),n++;else for(var i in e)f(e[i],t,r+4*n),n++;return r+4*n}function h(e,t,r,n,i){var l,o=0;if("length"in e)for(;o<e.length;)l=o/(e.length-1)*n,t[r+o]=i?1-l:l,o++;else for(var s in e)l=+s*n,t[r+o]=i?1-l:l,o++;return r+o}function p(e,t,r){h(e,t,c(e,t,r),1,!1)}function b(e,t,r){var n=c(e,t,r);n=c(e,t,n),n=h(e,t,n,.5,!1),h(e,t,n,.5,!0)}function d(e,t){var r=e[0],n=+t.width,i=+t.height;r===K?(e[1]*=n,e[2]*=i,e[3]*=n,e[4]*=i):r===Q&&(e[1]*=n,e[2]*=i,e[3]*=n,e[4]*=i,e[5]*=n,e[6]*=i)}function y(e,t){if(null==e)return null;if(e._brush)return e._bb&&(d(e._brush,t),e._bb=!1),e._brush;var r=new R(e);return[B,r.red/255,r.green/255,r.blue/255,r.alpha]}function g(e){if(null==e)return null;var t=new R(e);return[t.red/255,t.green/255,t.blue/255,t.alpha]}function m(e){switch(e){case"butt":return 0;case"square":return 2;default:return 1}}function v(e){switch(e){case"miter":return 0;case"bevel":return 2;default:return 1}}function C(e){return e.split(",")[0].replace(re,"").replace(ne,"")}function k(e){if(te.hasOwnProperty(e))return te[e];var t=/^\s*((?:(?:normal|bold|italic)\s+)*)(?:(\d+(?:\.\d+)?)[ptexm\%]*(?:\s*\/.*?)?\s+)?\s*\"?([^\"]*)/i,r=t.exec(e);if(!r)return null;var n=C(r[3]),i=+r[2]||12,l=/bold/.exec(r[1]),o=/italic/.exec(r[1]);return te[e]={fontFamily:n,fontSize:i,fontWeight:l?"bold":"normal",fontStyle:o?"italic":"normal"},te[e]}function _(e){return null==e?null:"string"==typeof e?k(e):{fontFamily:C(e.fontFamily),fontSize:+e.fontSize||12,fontWeight:e.fontWeight,fontStyle:e.fontStyle}}function S(e,t){return{font:_(e),lines:t.split(ie)}}function w(e){switch(e){case"right":return 1;case"center":return 2;default:return 0}}function H(e,t,r,n,i){var l=K;if(arguments.length<5){var o=(null==t?270:t)*Math.PI/180,s=Math.cos(o),a=-Math.sin(o),u=(Math.abs(s)+Math.abs(a))/2;s*=u,a*=u,t=.5-s,n=.5+s,r=.5-a,i=.5+a,this._bb=!0}else this._bb=!1;var f=[l,+t,+r,+n,+i];p(e,f,5),this._brush=f}function x(e,t,r,n,i,l,o){null==i&&(i=n),null==l&&(l=t),null==o&&(o=r),null==t?(t=r=n=i=l=o=.5,this._bb=!0):this._bb=!1;var s=[Q,+t,+r,2*+n,2*+i,+l,+o];b(e,s,7),this._brush=s}function O(e,t,r,n,i){this._brush=[Z,e,+n||0,+i||0,+t,+r]}var R=t(186),T=t(187),P=t(190),W=t(97),A=t(136),J=t(141),j=t(133),I=t(44),N=j(A.UIView,{}),V={transform:{diff:i},opacity:!0},z=j(V,{clipping:{diff:i}}),D=j(V,{fill:{diff:i},stroke:{diff:i},strokeWidth:!0,strokeCap:!0,strokeJoin:!0,strokeDash:{diff:i}}),E=j(D,{d:{diff:i}}),F=j(D,{alignment:!0,frame:{diff:l},path:{diff:i}}),G=J({validAttributes:N,uiViewClassName:"ARTSurfaceView"}),M=J({validAttributes:z,uiViewClassName:"ARTGroup"}),X=J({validAttributes:E,uiViewClassName:"ARTShape"}),Y=J({validAttributes:F,uiViewClassName:"ARTText"}),q=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"getChildContext",value:function(){return{isInSurface:!0}}},{key:"render",value:function(){var e=this.props,t=s(e.width,0),r=s(e.height,0);return W.createElement(G,{style:[e.style,{width:t,height:r}]},this.props.children)}}]),t}(W.Component);q.childContextTypes={isInSurface:W.PropTypes.bool};var L=new P,U=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props;return I(this.context.isInSurface,"ART: <Group /> must be a child of a <Surface />"),W.createElement(M,{opacity:u(e),transform:a(e)},this.props.children)}}]),t}(W.Component);U.contextTypes={isInSurface:W.PropTypes.bool.isRequired};var $=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props,t=s(e.x,0),r=s(e.y,0),n=s(e.width,0),i=s(e.height,0),l=[t,r,n,i],o=j(e);return delete o.x,delete o.y,W.createElement(M,{clipping:l,opacity:u(e),transform:a(o)},this.props.children)}}]),t}(W.Component),B=0,K=1,Q=2,Z=3,ee=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props,t=e.d||o(e.children),r=new T(t).toJSON();return W.createElement(X,{fill:y(e.fill,e),opacity:u(e),stroke:g(e.stroke),strokeCap:m(e.strokeCap),strokeDash:e.strokeDash||null,strokeJoin:v(e.strokeJoin),strokeWidth:s(e.strokeWidth,1),transform:a(e),d:r})}}]),t}(W.Component),te={},re=/^[\s"']*/,ne=/[\s"']*$/,ie=/\n/g,le=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props,t=e.path?new T(e.path).toJSON():null,r=S(e.font,o(e.children));return W.createElement(Y,{fill:y(e.fill,e),opacity:u(e),stroke:g(e.stroke),strokeCap:m(e.strokeCap),strokeDash:e.strokeDash||null,strokeJoin:v(e.strokeJoin),strokeWidth:s(e.strokeWidth,1),transform:a(e),alignment:w(e.alignment),frame:r,path:t})}}]),t}(W.Component),oe={LinearGradient:H,RadialGradient:x,Pattern:O,Transform:P,Path:T,Surface:q,Group:U,ClippingRectangle:$,Shape:ee,Text:le};r.exports=oe},185);
__d(function(t,r,e,n){var a={maroon:"#800000",red:"#ff0000",orange:"#ffA500",yellow:"#ffff00",olive:"#808000",purple:"#800080",fuchsia:"#ff00ff",white:"#ffffff",lime:"#00ff00",green:"#008000",navy:"#000080",blue:"#0000ff",aqua:"#00ffff",teal:"#008080",black:"#000000",silver:"#c0c0c0",gray:"#808080"},h=function(t,r){for(var e=[],n=0,a=t.length;n<a;n++)e[n]=r(t[n],n);return e},u=function t(r,e){if(r.isColor)this.red=r.red,this.green=r.green,this.blue=r.blue,this.alpha=r.alpha;else{var n=a[r];switch(n&&(r=n,e="hex"),typeof r){case"string":e||(e=(e=r.match(/^rgb|^hsb|^hsl/))?e[0]:"hex");break;case"object":e=e||"rgb",r=r.toString();break;case"number":e="hex",r=r.toString(16)}r=t["parse"+e.toUpperCase()](r),this.red=r[0],this.green=r[1],this.blue=r[2],this.alpha=r[3]}this.isColor=!0},s=function(t,r,e){return Math.min(e,Math.max(r,t))},i=/([-.\d]+\%?)\s*,\s*([-.\d]+\%?)\s*,\s*([-.\d]+\%?)\s*,?\s*([-.\d]*\%?)/,o=/^#?([a-f0-9]{1,2})([a-f0-9]{1,2})([a-f0-9]{1,2})([a-f0-9]{0,2})$/i;u.parseRGB=function(t){return h(t.match(i).slice(1),function(t,r){return t&&(t=parseFloat(t)*("%"==t[t.length-1]?2.55:1)),r<3?Math.round((t%=256)<0?t+256:t):s(""===t?1:Number(t),0,1)})},u.parseHEX=function(t){return 1==t.length&&(t=t+t+t),h(t.match(o).slice(1),function(t,r){return 3==r?t?parseInt(t,16)/255:1:parseInt(1==t.length?t+t:t,16)})},u.parseHSB=function(t){var r=h(t.match(i).slice(1),function(t,r){return t&&(t=parseFloat(t)),0===r?Math.round((t%=360)<0?t+360:t):r<3?s(Math.round(t),0,100):s(""===t?1:Number(t),0,1)}),e=r[3],n=Math.round(r[2]/100*255);if(0==r[1])return[n,n,n,e];var a=r[0],u=a%60,o=Math.round(r[2]*(100-r[1])/1e4*255),f=Math.round(r[2]*(6e3-r[1]*u)/6e5*255),l=Math.round(r[2]*(6e3-r[1]*(60-u))/6e5*255);switch(Math.floor(a/60)){case 0:return[n,l,o,e];case 1:return[f,n,o,e];case 2:return[o,n,l,e];case 3:return[o,f,n,e];case 4:return[l,o,n,e];default:return[n,o,f,e]}},u.parseHSL=function(t){var r=h(t.match(i).slice(1),function(t,r){return t&&(t=parseFloat(t)),0===r?Math.round((t%=360)<0?t+360:t):r<3?s(Math.round(t),0,100):s(""===t?1:Number(t),0,1)}),e=r[0]/60,n=r[1]/100,a=r[2]/100,u=r[3],o=(1-Math.abs(2*a-1))*n,f=o*(1-Math.abs(e%2-1)),l=a-o/2,c=Math.round(255*(o+l)),b=Math.round(255*(f+l)),d=Math.round(255*l);switch(Math.floor(e)){case 0:return[c,b,d,u];case 1:return[b,c,d,u];case 2:return[d,c,b,u];case 3:return[d,b,c,u];case 4:return[b,d,c,u];default:return[c,d,b,u]}};var f=function(t,r){return 1!=r[3]?t+="a":r.pop(),t+"("+r.join(", ")+")"};u.prototype={toHSB:function(t){var r=this.red,e=this.green,n=this.blue,a=this.alpha,h=Math.max(r,e,n),u=Math.min(r,e,n),s=h-u,i=0,o=0!=s?s/h:0,l=h/255;if(o){var c=(h-r)/s,b=(h-e)/s,d=(h-n)/s;i=r==h?d-b:e==h?2+c-d:4+b-c,(i/=6)<0&&i++}var g=[Math.round(360*i),Math.round(100*o),Math.round(100*l),a];return t?g:f("hsb",g)},toHSL:function(t){var r=this.red,e=this.green,n=this.blue,a=this.alpha,h=Math.max(r,e,n),u=Math.min(r,e,n),s=h-u,i=0,o=0!=s?s/(255-Math.abs(h+u-255)):0,l=(h+u)/512;if(o){var c=(h-r)/s,b=(h-e)/s,d=(h-n)/s;i=r==h?d-b:e==h?2+c-d:4+b-c,(i/=6)<0&&i++}var g=[Math.round(360*i),Math.round(100*o),Math.round(100*l),a];return t?g:f("hsl",g)},toHEX:function(t){var r=this.alpha,e=1==(r=Math.round(255*r).toString(16)).length?r+r:r,n=h([this.red,this.green,this.blue],function(t){return t=t.toString(16),1==t.length?"0"+t:t});return t?n.concat(e):"#"+n.join("")+("ff"==e?"":e)},toRGB:function(t){var r=[this.red,this.green,this.blue,this.alpha];return t?r:f("rgb",r)}},u.prototype.toString=u.prototype.toRGB,u.hex=function(t){return new u(t,"hex")},null==this.hex&&(this.hex=u.hex),u.hsb=function(t,r,e,n){return new u([t||0,r||0,e||0,null==n?1:n],"hsb")},null==this.hsb&&(this.hsb=u.hsb),u.hsl=function(t,r,e,n){return new u([t||0,r||0,e||0,null==n?1:n],"hsl")},null==this.hsl&&(this.hsl=u.hsl),u.rgb=function(t,r,e,n){return new u([t||0,r||0,e||0,null==n?1:n],"rgb")},null==this.rgb&&(this.rgb=u.rgb),u.detach=function(t){return t=new u(t),[u.rgb(t.red,t.green,t.blue).toString(),t.alpha]},e.exports=u},186);
__d(function(t,i,n,h){"use strict";var o=i(188),s=i(189),e=o(s,{initialize:function(t){this.reset(),t instanceof e?this.path=t.path.slice(0):t&&(t.applyToPath?t.applyToPath(this):this.push(t))},onReset:function(){this.path=[]},onMove:function(t,i,n,h){this.path.push(0,n,h)},onLine:function(t,i,n,h){this.path.push(2,n,h)},onBezierCurve:function(t,i,n,h,o,s,e,p){this.path.push(3,n,h,o,s,e,p)},_arcToBezier:s.prototype.onArc,onArc:function(t,i,n,h,o,s,e,p,u,a,r,c){if(e!==p||c)return this._arcToBezier(t,i,n,h,o,s,e,p,u,a,r,c);this.path.push(4,o,s,e,u,a,r?0:1)},onClose:function(){this.path.push(1)},toJSON:function(){return this.path}});n.exports=e},187);
__d(function(t,i,n,o){n.exports=function(t){for(var i={},n=0,o=arguments.length;n<o;n++){var r=arguments[n];"function"==typeof r&&(r=r.prototype);for(var e in r)i[e]=r[e]}return i.initialize||(i.initialize=function(){}),i.constructor=function(t,n,o,r,e,c,u,f){return new i.initialize(t,n,o,r,e,c,u,f)},i.constructor.prototype=i.initialize.prototype=i,i.constructor}},188);
__d(function(t,i,n,e){var s=i(188);n.exports=s({initialize:function(t){this.reset().push(t)},push:function(){var t=Array.prototype.join.call(arguments," ").match(/[a-df-z]|[\-+]?(?:[\d\.]e[\-+]?|[^\s\-+,a-z])+/gi);if(!t)return this;for(var i,n=t[0],e=1;n;){switch(n){case"m":this.move(t[e++],t[e++]);break;case"l":this.line(t[e++],t[e++]);break;case"c":this.curve(t[e++],t[e++],t[e++],t[e++],t[e++],t[e++]);break;case"s":this.curve(t[e++],t[e++],null,null,t[e++],t[e++]);break;case"q":this.curve(t[e++],t[e++],t[e++],t[e++]);break;case"t":this.curve(t[e++],t[e++]);break;case"a":this.arc(t[e+5],t[e+6],t[e],t[e+1],t[e+3],!+t[e+4],t[e+2]),e+=7;break;case"h":this.line(t[e++],0);break;case"v":this.line(0,t[e++]);break;case"M":this.moveTo(t[e++],t[e++]);break;case"L":this.lineTo(t[e++],t[e++]);break;case"C":this.curveTo(t[e++],t[e++],t[e++],t[e++],t[e++],t[e++]);break;case"S":this.curveTo(t[e++],t[e++],null,null,t[e++],t[e++]);break;case"Q":this.curveTo(t[e++],t[e++],t[e++],t[e++]);break;case"T":this.curveTo(t[e++],t[e++]);break;case"A":this.arcTo(t[e+5],t[e+6],t[e],t[e+1],t[e+3],!+t[e+4],t[e+2]),e+=7;break;case"H":this.lineTo(t[e++],this.penY);break;case"V":this.lineTo(this.penX,t[e++]);break;case"Z":case"z":this.close();break;default:n=i,e--;continue}i=n,"m"==i?i="l":"M"==i&&(i="L"),n=t[e++]}return this},reset:function(){return this.penX=this.penY=0,this.penDownX=this.penDownY=null,this._pivotX=this._pivotY=0,this.onReset(),this},move:function(t,i){return this.onMove(this.penX,this.penY,this._pivotX=this.penX+=+t,this._pivotY=this.penY+=+i),this},moveTo:function(t,i){return this.onMove(this.penX,this.penY,this._pivotX=this.penX=+t,this._pivotY=this.penY=+i),this},line:function(t,i){return this.lineTo(this.penX+ +t,this.penY+ +i)},lineTo:function(t,i){return null==this.penDownX&&(this.penDownX=this.penX,this.penDownY=this.penY),this.onLine(this.penX,this.penY,this._pivotX=this.penX=+t,this._pivotY=this.penY=+i),this},curve:function(t,i,n,e,s,h){var o=this.penX,r=this.penY;return this.curveTo(o+ +t,r+ +i,null==n?null:o+ +n,null==e?null:r+ +e,null==s?null:o+ +s,null==h?null:r+ +h)},curveTo:function(t,i,n,e,s,h){var o=this.penX,r=this.penY;return null==n&&(n=+t,e=+i,t=2*o-(this._pivotX||0),i=2*r-(this._pivotY||0)),null==s?(this._pivotX=+t,this._pivotY=+i,s=+n,h=+e,n=(s+2*+t)/3,e=(h+2*+i)/3,t=(o+2*+t)/3,i=(r+2*+i)/3):(this._pivotX=+n,this._pivotY=+e),null==this.penDownX&&(this.penDownX=o,this.penDownY=r),this.onBezierCurve(o,r,+t,+i,+n,+e,this.penX=+s,this.penY=+h),this},arc:function(t,i,n,e,s,h,o){return this.arcTo(this.penX+ +t,this.penY+ +i,n,e,s,h,o)},arcTo:function(t,i,n,e,s,h,o){if(e=Math.abs(+e||+n||+i-this.penY),!(n=Math.abs(+n||+t-this.penX))||!e||t==this.penX&&i==this.penY)return this.lineTo(t,i);var r=this.penX,a=this.penY,u=!+h,p=!!+s,c=o?o*Math.PI/180:0,l=Math.cos(c),v=Math.sin(c);t-=r,i-=a;var X=l*t/2+v*i/2,Y=-v*t/2+l*i/2,f=n*n*e*e,M=e*e*X*X,b=n*n*Y*Y,T=f-b-M;if(T<0)T=Math.sqrt(1-T/f),n*=T,e*=T,X=t/2,Y=i/2;else{T=Math.sqrt(T/(b+M)),p==u&&(T=-T);var k=-T*Y*n/e,w=T*X*e/n;X=l*k-v*w+t/2,Y=v*k+l*w+i/2}var _=l/n,D=v/n,z=-v/e,C=l/e,m=Math.atan2(z*-X+C*-Y,_*-X+D*-Y),B=Math.atan2(z*(t-X)+C*(i-Y),_*(t-X)+D*(i-Y));return X+=r,Y+=a,t+=r,i+=a,null==this.penDownX&&(this.penDownX=this.penX,this.penDownY=this.penY),this.onArc(r,a,this._pivotX=this.penX=t,this._pivotY=this.penY=i,X,Y,n,e,m,B,!u,o),this},counterArc:function(t,i,n,e,s){return this.arc(t,i,n,e,s,!0)},counterArcTo:function(t,i,n,e,s){return this.arcTo(t,i,n,e,s,!0)},close:function(){return null!=this.penDownX&&(this.onClose(this.penX,this.penY,this.penX=this.penDownX,this.penY=this.penDownY),this.penDownX=null),this},onReset:function(){},onMove:function(t,i,n,e){},onLine:function(t,i,n,e){this.onBezierCurve(t,i,t,i,n,e,n,e)},onBezierCurve:function(t,i,n,e,s,h,o,r){var a,u,p,c,l,v=o-t,X=r-i,Y=v*v+X*X;if(p=n-t,c=e-i,l=p*v+c*X,l>Y?(p-=v,c-=X):l>0&&0!=Y&&(p-=l/Y*v,c-=l/Y*X),a=p*p+c*c,p=s-t,c=h-i,l=p*v+c*X,l>Y?(p-=v,c-=X):l>0&&0!=Y&&(p-=l/Y*v,c-=l/Y*X),u=p*p+c*c,a<.01&&u<.01)return void this.onLine(t,i,o,r);if(isNaN(a)||isNaN(u))throw new Error("Bad input");var f=.5*(n+s),M=.5*(e+h),b=.5*(n+t),T=.5*(e+i),k=.5*(b+f),w=.5*(T+M),_=.5*(o+s),D=.5*(r+h),z=.5*(_+f),C=.5*(D+M),m=.5*(k+z),B=.5*(w+C);this.onBezierCurve(t,i,b,T,k,w,m,B),this.onBezierCurve(m,B,z,C,_,D,o,r)},onArc:function(t,i,n,e,s,h,o,r,a,u,p,c){var l=c?c*Math.PI/180:0,v=Math.cos(l),X=Math.sin(l),Y=v*o,f=-X*r,M=X*o,b=v*r,T=u-a;T<0&&!p?T+=2*Math.PI:T>0&&p&&(T-=2*Math.PI);for(var k=Math.ceil(Math.abs(T/(Math.PI/2))),w=T/k,_=1.3333333333333333*Math.tan(w/4),D=Math.cos(a),z=Math.sin(a),C=0;C<k;C++){var m=D-_*z,B=z+_*D;a+=w,D=Math.cos(a),z=Math.sin(a);var d=D+_*z,A=z-_*D;this.onBezierCurve(t,i,s+Y*m+f*B,h+M*m+b*B,s+Y*d+f*A,h+M*d+b*A,t=s+Y*D+f*z,i=h+M*D+b*z)}},onClose:function(t,i,n,e){this.onLine(t,i,n,e)}})},189);
__d(function(t,x,y,i){function n(t,x,y,i,n,r){return t&&"object"==typeof t&&(x=t.yx,i=t.yy,r=t.y,y=t.xy,n=t.x,t=t.xx),this.xx=null==t?1:t,this.yx=x||0,this.xy=y||0,this.yy=null==i?1:i,this.x=(null==n?this.x:n)||0,this.y=(null==r?this.y:r)||0,this._transform(),this}var r=x(188);y.exports=r({initialize:n,_transform:function(){},xx:1,yx:0,x:0,xy:0,yy:1,y:0,transform:function(t,x,y,i,n,r){var s=this;return t&&"object"==typeof t&&(x=t.yx,i=t.yy,r=t.y,y=t.xy,n=t.x,t=t.xx),n||(n=0),r||(r=0),this.transformTo(s.xx*t+s.xy*x,s.yx*t+s.yy*x,s.xx*y+s.xy*i,s.yx*y+s.yy*i,s.xx*n+s.xy*r+s.x,s.yx*n+s.yy*r+s.y)},transformTo:n,translate:function(t,x){return this.transform(1,0,0,1,t,x)},move:function(t,x){return this.x+=t||0,this.y+=x||0,this._transform(),this},scale:function(t,x){return null==x&&(x=t),this.transform(t,0,0,x,0,0)},rotate:function(t,x,y){null!=x&&null!=y||(x=(this.left||0)+(this.width||0)/2,y=(this.top||0)+(this.height||0)/2);var i=t*Math.PI/180,n=Math.sin(i),r=Math.cos(i);this.transform(1,0,0,1,x,y);var s=this;return this.transformTo(r*s.xx-n*s.yx,n*s.xx+r*s.yx,r*s.xy-n*s.yy,n*s.xy+r*s.yy,s.x,s.y).transform(1,0,0,1,-x,-y)},moveTo:function(t,x){var y=this;return this.transformTo(y.xx,y.yx,y.xy,y.yy,t,x)},rotateTo:function(t,x,y){var i=this,n=i.yx/i.xx>i.yy/i.xy?-1:1;return(i.xx<0?i.xy>=0:i.xy<0)&&(n=-n),this.rotate(t-180*Math.atan2(n*i.yx,n*i.xx)/Math.PI,x,y)},scaleTo:function(t,x){var y=this,i=Math.sqrt(y.xx*y.xx+y.yx*y.yx);return y.xx/=i,y.yx/=i,i=Math.sqrt(y.yy*y.yy+y.xy*y.xy),y.yy/=i,y.xy/=i,this.scale(t,x)},resizeTo:function(t,x){var y=this.width,i=this.height;return y&&i?this.scaleTo(t/y,x/i):this},inversePoint:function(t,x){var y=this.xx,i=this.yx,n=this.xy,r=this.yy,s=this.x,h=this.y,o=i*n-y*r;return 0==o?null:{x:(r*(s-t)+n*(x-h))/o,y:(y*(h-x)+i*(t-s))/o}},point:function(t,x){var y=this;return{x:y.xx*t+y.xy*x+y.x,y:y.yx*t+y.yy*x+y.y}}})},190);
__d(function(e,t,s,r){"use strict";var o=t(66),i=(t(75),t(97)),l=t(98),n=t(192),a=(t(199),t(200)),p=t(130),c=t(44),b=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props,t=e.accessibilityLabel,s=e.color,r=e.onPress,o=e.title,l=e.disabled,b=e.testID,u=[d.button],y=[d.text],h=a;s?y.push({color:s}):s&&u.push({backgroundColor:s}),l&&(u.push(d.buttonDisabled),y.push(d.textDisabled)),c("string"==typeof o,"The title prop of a Button must be a string");var f=o;return i.createElement(h,{accessibilityComponentType:"button",accessibilityLabel:t,accessibilityTraits:["button"],testID:b,disabled:l,onPress:r},i.createElement(p,{style:u},i.createElement(n,{style:y},f)))}}]),t}(i.Component);b.propTypes={title:i.PropTypes.string.isRequired,accessibilityLabel:i.PropTypes.string,color:o,disabled:i.PropTypes.bool,onPress:i.PropTypes.func.isRequired,testID:i.PropTypes.string};var u="#2196F3";u="#0C42FD";var d=l.create({button:{},text:{color:u,textAlign:"center",padding:8,fontSize:18},buttonDisabled:{},textDisabled:{color:"#cdcdcd"}});s.exports=b},191);
__d(function(e,s,t,n){"use strict";var o=s(66),i=s(131),r=s(69),l=(s(75),s(97)),a=s(136),p=s(137),h=s(122),d=s(193),u=s(125),c=s(141),b=s(198),g=l.PropTypes,f=p(h),R={validAttributes:b(a.UIView,{isHighlighted:!0,numberOfLines:!0,ellipsizeMode:!0,allowFontScaling:!0,selectable:!0,selectionColor:!0,adjustsFontSizeToFit:!0,minimumFontScale:!0,textBreakStrategy:!0}),uiViewClassName:"RCTText"},H=l.createClass({displayName:"Text",propTypes:{ellipsizeMode:g.oneOf(["head","middle","tail","clip"]),numberOfLines:g.number,textBreakStrategy:g.oneOf(["simple","highQuality","balanced"]),onLayout:g.func,onPress:g.func,onLongPress:g.func,pressRetentionOffset:i,selectable:g.bool,selectionColor:o,suppressHighlighting:g.bool,style:f,testID:g.string,allowFontScaling:g.bool,accessible:g.bool,adjustsFontSizeToFit:g.bool,minimumFontScale:g.number},getDefaultProps:function(){return{accessible:!0,allowFontScaling:!0,ellipsizeMode:"tail"}},getInitialState:function(){return b(d.Mixin.touchableGetInitialState(),{isHighlighted:!1})},mixins:[r],viewConfig:R,getChildContext:function(){return{isInAParentText:!0}},childContextTypes:{isInAParentText:g.bool},contextTypes:{isInAParentText:g.bool},_handlers:null,_hasPressHandler:function(){return!!this.props.onPress||!!this.props.onLongPress},touchableHandleActivePressIn:null,touchableHandleActivePressOut:null,touchableHandlePress:null,touchableHandleLongPress:null,touchableGetPressRectOffset:null,render:function(){var e=this,s=this.props;return(this.props.onStartShouldSetResponder||this._hasPressHandler())&&(this._handlers||(this._handlers={onStartShouldSetResponder:function(){var s=e.props.onStartShouldSetResponder&&e.props.onStartShouldSetResponder(),t=s||e._hasPressHandler();if(t&&!e.touchableHandleActivePressIn){for(var n in d.Mixin)"function"==typeof d.Mixin[n]&&(e[n]=d.Mixin[n].bind(e));e.touchableHandleActivePressIn=function(){!e.props.suppressHighlighting&&e._hasPressHandler()&&e.setState({isHighlighted:!0})},e.touchableHandleActivePressOut=function(){!e.props.suppressHighlighting&&e._hasPressHandler()&&e.setState({isHighlighted:!1})},e.touchableHandlePress=function(s){e.props.onPress&&e.props.onPress(s)},e.touchableHandleLongPress=function(s){e.props.onLongPress&&e.props.onLongPress(s)},e.touchableGetPressRectOffset=function(){return this.props.pressRetentionOffset||P}}return t},onResponderGrant:function(e,s){this.touchableHandleResponderGrant(e,s),this.props.onResponderGrant&&this.props.onResponderGrant.apply(this,arguments)}.bind(this),onResponderMove:function(e){this.touchableHandleResponderMove(e),this.props.onResponderMove&&this.props.onResponderMove.apply(this,arguments)}.bind(this),onResponderRelease:function(e){this.touchableHandleResponderRelease(e),this.props.onResponderRelease&&this.props.onResponderRelease.apply(this,arguments)}.bind(this),onResponderTerminate:function(e){this.touchableHandleResponderTerminate(e),this.props.onResponderTerminate&&this.props.onResponderTerminate.apply(this,arguments)}.bind(this),onResponderTerminationRequest:function(){var e=this.touchableHandleResponderTerminationRequest();return e&&this.props.onResponderTerminationRequest&&(e=this.props.onResponderTerminationRequest.apply(this,arguments)),e}.bind(this)}),s=babelHelpers.extends({},this.props,this._handlers,{isHighlighted:this.state.isHighlighted})),null!=s.selectionColor&&(s=babelHelpers.extends({},s,{selectionColor:u(s.selectionColor)})),d.TOUCH_TARGET_DEBUG&&s.onPress&&(s=babelHelpers.extends({},s,{style:[this.props.style,{color:"magenta"}]})),this.context.isInAParentText?l.createElement(S,s):l.createElement(m,s)}}),P={top:20,left:20,right:20,bottom:30},m=c(R),S=m;t.exports=H},192);
__d(function(E,t,e,R){"use strict";var i=t(194),_=t(75),s=t(195),S=(t(97),t(196)),o=t(197),n=t(94),a=(t(130),t(95)),l=t(115),T=(t(68),l({NOT_RESPONDER:null,RESPONDER_INACTIVE_PRESS_IN:null,RESPONDER_INACTIVE_PRESS_OUT:null,RESPONDER_ACTIVE_PRESS_IN:null,RESPONDER_ACTIVE_PRESS_OUT:null,RESPONDER_ACTIVE_LONG_PRESS_IN:null,RESPONDER_ACTIVE_LONG_PRESS_OUT:null,ERROR:null})),N={RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0},h={RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0},P={RESPONDER_ACTIVE_LONG_PRESS_IN:!0},O=l({DELAY:null,RESPONDER_GRANT:null,RESPONDER_RELEASE:null,RESPONDER_TERMINATED:null,ENTER_PRESS_RECT:null,LEAVE_PRESS_RECT:null,LONG_PRESS_DETECTED:null}),u={NOT_RESPONDER:{DELAY:T.ERROR,RESPONDER_GRANT:T.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:T.ERROR,RESPONDER_TERMINATED:T.ERROR,ENTER_PRESS_RECT:T.ERROR,LEAVE_PRESS_RECT:T.ERROR,LONG_PRESS_DETECTED:T.ERROR},RESPONDER_INACTIVE_PRESS_IN:{DELAY:T.RESPONDER_ACTIVE_PRESS_IN,RESPONDER_GRANT:T.ERROR,RESPONDER_RELEASE:T.NOT_RESPONDER,RESPONDER_TERMINATED:T.NOT_RESPONDER,ENTER_PRESS_RECT:T.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:T.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:T.ERROR},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:T.RESPONDER_ACTIVE_PRESS_OUT,RESPONDER_GRANT:T.ERROR,RESPONDER_RELEASE:T.NOT_RESPONDER,RESPONDER_TERMINATED:T.NOT_RESPONDER,ENTER_PRESS_RECT:T.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:T.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:T.ERROR},RESPONDER_ACTIVE_PRESS_IN:{DELAY:T.ERROR,RESPONDER_GRANT:T.ERROR,RESPONDER_RELEASE:T.NOT_RESPONDER,RESPONDER_TERMINATED:T.NOT_RESPONDER,ENTER_PRESS_RECT:T.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:T.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:T.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:T.ERROR,RESPONDER_GRANT:T.ERROR,RESPONDER_RELEASE:T.NOT_RESPONDER,RESPONDER_TERMINATED:T.NOT_RESPONDER,ENTER_PRESS_RECT:T.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:T.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:T.ERROR},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:T.ERROR,RESPONDER_GRANT:T.ERROR,RESPONDER_RELEASE:T.NOT_RESPONDER,RESPONDER_TERMINATED:T.NOT_RESPONDER,ENTER_PRESS_RECT:T.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:T.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:T.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:T.ERROR,RESPONDER_GRANT:T.ERROR,RESPONDER_RELEASE:T.NOT_RESPONDER,RESPONDER_TERMINATED:T.NOT_RESPONDER,ENTER_PRESS_RECT:T.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:T.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:T.ERROR},error:{DELAY:T.NOT_RESPONDER,RESPONDER_GRANT:T.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:T.NOT_RESPONDER,RESPONDER_TERMINATED:T.NOT_RESPONDER,ENTER_PRESS_RECT:T.NOT_RESPONDER,LEAVE_PRESS_RECT:T.NOT_RESPONDER,LONG_PRESS_DETECTED:T.NOT_RESPONDER}},r={componentDidMount:function(){_.isTVOS&&(this._tvEventHandler=new S,this._tvEventHandler.enable(this,function(E,t){var e=a(E);t.dispatchConfig={},e===t.tag&&("focus"===t.eventType?E.touchableHandleActivePressIn&&E.touchableHandleActivePressIn(t):"blur"===t.eventType?E.touchableHandleActivePressOut&&E.touchableHandleActivePressOut(t):"select"===t.eventType&&E.touchableHandlePress&&E.touchableHandlePress(t))}))},componentWillUnmount:function(){this._tvEventHandler&&(this._tvEventHandler.disable(),delete this._tvEventHandler),this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout)},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(E){var t=E.currentTarget;E.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=T.NOT_RESPONDER,this.state.touchable.responderID=t,this._receiveSignal(O.RESPONDER_GRANT,E);var e=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;e=isNaN(e)?130:e,0!==e?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,E),e):this._handleDelay(E);var R=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;R=isNaN(R)?370:R,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,E),R+e)},touchableHandleResponderRelease:function(E){this._receiveSignal(O.RESPONDER_RELEASE,E)},touchableHandleResponderTerminate:function(E){this._receiveSignal(O.RESPONDER_TERMINATED,E)},touchableHandleResponderMove:function(E){if(this.state.touchable.touchState!==T.RESPONDER_INACTIVE_PRESS_IN&&this.state.touchable.positionOnActivate){var t=this.state.touchable.positionOnActivate,e=this.state.touchable.dimensionsOnActivate,R=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},i=R.left,_=R.top,s=R.right,S=R.bottom,n=this.touchableGetHitSlop?this.touchableGetHitSlop():null;n&&(i+=n.left,_+=n.top,s+=n.right,S+=n.bottom);var a=o.extractSingleTouch(E.nativeEvent),l=a&&a.pageX,N=a&&a.pageY;if(this.pressInLocation){this._getDistanceBetweenPoints(l,N,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout()}if(l>t.left-i&&N>t.top-_&&l<t.left+e.width+s&&N<t.top+e.height+S){this._receiveSignal(O.ENTER_PRESS_RECT,E);this.state.touchable.touchState===T.RESPONDER_INACTIVE_PRESS_IN&&this._cancelLongPressDelayTimeout()}else this._cancelLongPressDelayTimeout(),this._receiveSignal(O.LEAVE_PRESS_RECT,E)}},_remeasureMetricsOnActivation:function(){var E=this.state.touchable.responderID;null!=E&&n.measure(E,this._handleQueryLayout)},_handleQueryLayout:function(E,t,e,R,_,S){this.state.touchable.positionOnActivate&&s.release(this.state.touchable.positionOnActivate),this.state.touchable.dimensionsOnActivate&&i.release(this.state.touchable.dimensionsOnActivate),this.state.touchable.positionOnActivate=s.getPooled(_,S),this.state.touchable.dimensionsOnActivate=i.getPooled(e,R)},_handleDelay:function(E){this.touchableDelayTimeout=null,this._receiveSignal(O.DELAY,E)},_handleLongDelay:function(E){this.longPressDelayTimeout=null;var t=this.state.touchable.touchState;t!==T.RESPONDER_ACTIVE_PRESS_IN&&t!==T.RESPONDER_ACTIVE_LONG_PRESS_IN?console.error("Attempted to transition from state `"+t+"` to `"+T.RESPONDER_ACTIVE_LONG_PRESS_IN+"`, which is not supported. This is most likely due to `Touchable.longPressDelayTimeout` not being cancelled."):this._receiveSignal(O.LONG_PRESS_DETECTED,E)},_receiveSignal:function(E,t){var e=this.state.touchable.responderID,R=this.state.touchable.touchState,i=u[R]&&u[R][E];if(e||E!==O.RESPONDER_RELEASE){if(!i)throw new Error("Unrecognized signal `"+E+"` or state `"+R+"` for Touchable responder `"+e+"`");if(i===T.ERROR)throw new Error("Touchable cannot transition from `"+R+"` to `"+E+"` for responder `"+e+"`");R!==i&&(this._performSideEffectsForTransition(R,i,E,t),this.state.touchable.touchState=i)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(E){return E===T.RESPONDER_ACTIVE_PRESS_IN||E===T.RESPONDER_ACTIVE_LONG_PRESS_IN},_savePressInLocation:function(E){var t=o.extractSingleTouch(E.nativeEvent),e=t&&t.pageX,R=t&&t.pageY,i=t&&t.locationX,_=t&&t.locationY;this.pressInLocation={pageX:e,pageY:R,locationX:i,locationY:_}},_getDistanceBetweenPoints:function(E,t,e,R){var i=E-e,_=t-R;return Math.sqrt(i*i+_*_)},_performSideEffectsForTransition:function(E,t,e,R){var i=this._isHighlight(E),_=this._isHighlight(t);if((e===O.RESPONDER_TERMINATED||e===O.RESPONDER_RELEASE)&&this._cancelLongPressDelayTimeout(),!N[E]&&N[t]&&this._remeasureMetricsOnActivation(),h[E]&&e===O.LONG_PRESS_DETECTED&&this.touchableHandleLongPress&&this.touchableHandleLongPress(R),_&&!i?this._startHighlight(R):!_&&i&&this._endHighlight(R),h[E]&&e===O.RESPONDER_RELEASE){var s=!!this.props.onLongPress,S=P[E]&&(!s||!this.touchableLongPressCancelsPress());(!P[E]||S)&&this.touchableHandlePress&&(_||i||(this._startHighlight(R),this._endHighlight(R)),this.touchableHandlePress(R))}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null},_startHighlight:function(E){this._savePressInLocation(E),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn(E)},_endHighlight:function(E){var t=this;this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=setTimeout(function(){t.touchableHandleActivePressOut(E)},this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(E))}},D={Mixin:r,TOUCH_TARGET_DEBUG:!1,renderDebugView:function(E){E.color,E.hitSlop;if(!D.TOUCH_TARGET_DEBUG)return null;throw Error("Touchable.TOUCH_TARGET_DEBUG should not be enabled in prod!")}};e.exports=D},193);
__d(function(t,o,e,i){"use strict";function n(t,o){this.width=t,this.height=o}var h=o(47),r=h.twoArgumentPooler;n.prototype.destructor=function(){this.width=null,this.height=null},n.getPooledFromElement=function(t){return n.getPooled(t.offsetWidth,t.offsetHeight)},h.addPoolingTo(n,r),e.exports=n},194);
__d(function(t,o,n,i){"use strict";function e(t,o){this.left=t,this.top=o}var l=o(47),r=l.twoArgumentPooler;e.prototype.destructor=function(){this.left=null,this.top=null},l.addPoolingTo(e,r),n.exports=e},195);
__d(function(t,i,e,n){"use strict";function a(){this.__nativeTVNavigationEventListener=null,this.__nativeTVNavigationEventEmitter=null}var v=(i(97),i(76).TVNavigationEventEmitter),o=i(107);a.prototype.enable=function(t,i){v&&(this.__nativeTVNavigationEventEmitter=new o(v),this.__nativeTVNavigationEventListener=this.__nativeTVNavigationEventEmitter.addListener("onTVNavEvent",function(e){i&&i(t,e)}))},a.prototype.disable=function(){this.__nativeTVNavigationEventListener&&(this.__nativeTVNavigationEventListener.remove(),delete this.__nativeTVNavigationEventListener),this.__nativeTVNavigationEventEmitter&&delete this.__nativeTVNavigationEventEmitter},e.exports=a},196);
__d(function(t,e,n,c){"use strict";var r={extractSingleTouch:function(t){var e=t.touches,n=t.changedTouches,c=e&&e.length>0,r=n&&n.length>0;return!c&&r?n[0]:c?e[0]:t}};n.exports=r},197);
__d(function(r,n,t,i){"use strict";var o=function(r,n){var t={};for(var i in r)t[i]=r[i];for(var o in n)t[o]=n[o];return t};t.exports=o},198);
__d(function(e,t,r,n){"use strict";var o=t(97),s=t(98),i=t(192),l=t(130),a=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return o.createElement(l,{style:[c.container,this.props.style]},o.createElement(i,{style:c.info},"TouchableNativeFeedback is not supported on this platform!"))}}]),t}(o.Component),c=s.create({container:{height:100,width:300,backgroundColor:"#ffbcbc",borderWidth:1,borderColor:"red",alignItems:"center",justifyContent:"center",margin:10},info:{color:"#333333",margin:20}});r.exports=a},199);
__d(function(t,e,s,i){"use strict";var o=e(201),n=e(217),r=e(69),p=e(97),a=e(276),c=e(193),l=e(277),h=e(278),u=e(73),y={top:20,left:20,right:20,bottom:30},d=p.createClass({displayName:"TouchableOpacity",mixins:[a,c.Mixin,r],propTypes:babelHelpers.extends({},l.propTypes,{activeOpacity:p.PropTypes.number,focusedOpacity:p.PropTypes.number,tvParallaxProperties:p.PropTypes.object}),getDefaultProps:function(){return{activeOpacity:.2,focusedOpacity:.7}},getInitialState:function(){return babelHelpers.extends({},this.touchableGetInitialState(),{anim:new o.Value(1)})},componentDidMount:function(){h(this.props)},componentWillReceiveProps:function(t){h(t)},setOpacityTo:function(t,e){o.timing(this.state.anim,{toValue:t,duration:e,easing:n.inOut(n.quad),useNativeDriver:!0}).start()},touchableHandleActivePressIn:function(t){"onResponderGrant"===t.dispatchConfig.registrationName?this._opacityActive(0):this._opacityActive(150),this.props.onPressIn&&this.props.onPressIn(t)},touchableHandleActivePressOut:function(t){this._opacityInactive(250),this.props.onPressOut&&this.props.onPressOut(t)},touchableHandlePress:function(t){this.props.onPress&&this.props.onPress(t)},touchableHandleLongPress:function(t){this.props.onLongPress&&this.props.onLongPress(t)},touchableGetPressRectOffset:function(){return this.props.pressRetentionOffset||y},touchableGetHitSlop:function(){return this.props.hitSlop},touchableGetHighlightDelayMS:function(){return this.props.delayPressIn||0},touchableGetLongPressDelayMS:function(){return 0===this.props.delayLongPress?0:this.props.delayLongPress||500},touchableGetPressOutDelayMS:function(){return this.props.delayPressOut},_opacityActive:function(t){this.setOpacityTo(this.props.activeOpacity,t)},_opacityInactive:function(t){var e=u(this.props.style)||{};this.setOpacityTo(void 0===e.opacity?1:e.opacity,t)},_opacityFocused:function(){this.setOpacityTo(this.props.focusedOpacity)},render:function(){return p.createElement(o.View,{accessible:!1!==this.props.accessible,accessibilityLabel:this.props.accessibilityLabel,accessibilityComponentType:this.props.accessibilityComponentType,accessibilityTraits:this.props.accessibilityTraits,style:[this.props.style,{opacity:this.state.anim}],testID:this.props.testID,onLayout:this.props.onLayout,isTVSelectable:!0,tvParallaxProperties:this.props.tvParallaxProperties,hitSlop:this.props.hitSlop,onStartShouldSetResponder:this.touchableHandleStartShouldSetResponder,onResponderTerminationRequest:this.touchableHandleResponderTerminationRequest,onResponderGrant:this.touchableHandleResponderGrant,onResponderMove:this.touchableHandleResponderMove,onResponderRelease:this.touchableHandleResponderRelease,onResponderTerminate:this.touchableHandleResponderTerminate},this.props.children,c.renderDebugView({color:"cyan",hitSlop:this.props.hitSlop}))}});s.exports=d},200);
__d(function(e,t,n,a){"use strict";var o=t(202),m=t(219),r=t(192),i=t(130),c=t(221);n.exports=babelHelpers.extends({},o,{View:o.createAnimatedComponent(i),Text:o.createAnimatedComponent(r),Image:o.createAnimatedComponent(m),ScrollView:o.createAnimatedComponent(c)})},201);
__d(function(t,e,i,a){"use strict";function n(t){return t.useNativeDriver&&!h.isNativeAnimatedAvailable()?(k||(console.warn("Animated: `useNativeDriver` is not supported because the native animated module is missing. Falling back to JS-based animation. To resolve this, add `RCTAnimation` module to this app, or remove `useNativeDriver`. More info: https://github.com/facebook/react-native/issues/11094#issuecomment-263240420"),k=!0),!1):t.useNativeDriver||!1}function s(t){function e(t){"function"==typeof t.update?i.add(t):t.__getChildren().forEach(e)}var i=new v;e(t),i.forEach(function(t){return t.update()})}function o(){if(!H){var t=e(217);H=t.inOut(t.ease)}return H}function r(t,e){return void 0===t||null===t?e:t}function _(t){var e=function(e){function i(t){babelHelpers.classCallCheck(this,i);var e=babelHelpers.possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,t));return e._setComponentRef=e._setComponentRef.bind(e),e}return babelHelpers.inherits(i,e),babelHelpers.createClass(i,[{key:"componentWillUnmount",value:function(){this._propsAnimated&&this._propsAnimated.__detach(),this._detachNativeEvents(this.props)}},{key:"setNativeProps",value:function(t){this._component.setNativeProps(t)}},{key:"componentWillMount",value:function(){this._attachProps(this.props)}},{key:"componentDidMount",value:function(){this._propsAnimated.setNativeView(this._component),this._attachNativeEvents(this.props)}},{key:"_attachNativeEvents",value:function(t){t!==this.props&&this._detachNativeEvents(this.props);var e=this._component.getScrollableNode?this._component.getScrollableNode():this._component;for(var i in t){var a=t[i];a instanceof it&&a.__isNative&&a.__attach(e,i)}}},{key:"_detachNativeEvents",value:function(t){var e=this._component.getScrollableNode?this._component.getScrollableNode():this._component;for(var i in t){var a=t[i];a instanceof it&&a.__isNative&&a.__detach(e,i)}}},{key:"_attachProps",value:function(t){var e=this,i=this._propsAnimated,a=function(){if(e._component.setNativeProps){if(e._propsAnimated.__isNative)throw new Error('Attempting to run JS driven animation on animated node that has been moved to "native" earlier by starting an animation with `useNativeDriver: true`');e._component.setNativeProps(e._propsAnimated.__getAnimatedValue())}else e.forceUpdate()};this._propsAnimated=new S(t,a),this._component&&this._propsAnimated.setNativeView(this._component),i&&i.__detach()}},{key:"componentWillReceiveProps",value:function(t){this._attachProps(t),this._attachNativeEvents(t)}},{key:"render",value:function(){return c.createElement(t,babelHelpers.extends({},this._propsAnimated.__getValue(),{ref:this._setComponentRef}))}},{key:"_setComponentRef",value:function(t){this._component=t}},{key:"getNode",value:function(){return this._component}}]),i}(c.Component);return e.propTypes={style:function(e,i,a){if(t.propTypes)for(var n in f)t.propTypes[n]||void 0===e[n]||console.warn("You are setting the style `{ "+n+": ... }` as a prop. You should nest it in a style object. E.g. `{ style: { "+n+": ... } }`")}},e}var l=e(203),u=e(212),h=e(213),c=e(97),v=e(204),p=e(214),f=e(123),d=e(95),y=e(73),m=e(44),b=e(215),g=h.API,k=!1,N=function(){function t(){babelHelpers.classCallCheck(this,t)}return babelHelpers.createClass(t,[{key:"__attach",value:function(){}},{key:"__detach",value:function(){this.__isNative&&null!=this.__nativeTag&&(g.dropAnimatedNode(this.__nativeTag),this.__nativeTag=void 0)}},{key:"__getValue",value:function(){}},{key:"__getAnimatedValue",value:function(){return this.__getValue()}},{key:"__addChild",value:function(t){}},{key:"__removeChild",value:function(t){}},{key:"__getChildren",value:function(){return[]}},{key:"__makeNative",value:function(){if(!this.__isNative)throw new Error('This node cannot be made a "native" animated node')}},{key:"__getNativeTag",value:function(){if(h.assertNativeAnimatedModule(),m(this.__isNative,'Attempt to get native tag from node not marked as "native"'),null==this.__nativeTag){var t=h.generateNewNodeTag();g.createAnimatedNode(t,this.__getNativeConfig()),this.__nativeTag=t}return this.__nativeTag}},{key:"__getNativeConfig",value:function(){throw new Error("This JS animated node type cannot be used as native animated node")}},{key:"toJSON",value:function(){return this.__getValue()}}]),t}(),C=function(){function t(){babelHelpers.classCallCheck(this,t)}return babelHelpers.createClass(t,[{key:"start",value:function(t,e,i,a,n){}},{key:"stop",value:function(){this.__nativeId&&g.stopAnimation(this.__nativeId)}},{key:"__getNativeAnimationConfig",value:function(){throw new Error("This animation type cannot be offloaded to native")}},{key:"__debouncedOnEnd",value:function(t){var e=this.__onEnd;this.__onEnd=null,e&&e(t)}},{key:"__startNativeAnimation",value:function(t){t.__makeNative(),this.__nativeId=h.generateNewAnimationId(),g.startAnimatingNode(this.__nativeId,t.__getNativeTag(),this.__getNativeAnimationConfig(),this.__debouncedOnEnd.bind(this))}}]),t}(),V=function(t){function e(){babelHelpers.classCallCheck(this,e);var t=babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._children=[],t}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"__makeNative",value:function(){if(!this.__isNative){this.__isNative=!0;for(var t=this._children,e=Array.isArray(t),i=0,t=e?t:t["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var a;if(e){if(i>=t.length)break;a=t[i++]}else{if(i=t.next(),i.done)break;a=i.value}var n=a;n.__makeNative(),g.connectAnimatedNodes(this.__getNativeTag(),n.__getNativeTag())}}}},{key:"__addChild",value:function(t){0===this._children.length&&this.__attach(),this._children.push(t),this.__isNative&&(t.__makeNative(),g.connectAnimatedNodes(this.__getNativeTag(),t.__getNativeTag()))}},{key:"__removeChild",value:function(t){var e=this._children.indexOf(t);if(-1===e)return void console.warn("Trying to remove a child that doesn't exist");this.__isNative&&t.__isNative&&g.disconnectAnimatedNodes(this.__getNativeTag(),t.__getNativeTag()),this._children.splice(e,1),0===this._children.length&&this.__detach()}},{key:"__getChildren",value:function(){return this._children}}]),e}(N),H=void 0,O=function(e){function i(t){babelHelpers.classCallCheck(this,i);var e=babelHelpers.possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return e._toValue=t.toValue,e._easing=void 0!==t.easing?t.easing:o(),e._duration=void 0!==t.duration?t.duration:500,e._delay=void 0!==t.delay?t.delay:0,e.__isInteraction=void 0===t.isInteraction||t.isInteraction,e._useNativeDriver=n(t),e}return babelHelpers.inherits(i,e),babelHelpers.createClass(i,[{key:"__getNativeAnimationConfig",value:function(){for(var t=[],e=0;e<this._duration;e+=16.666666666666668)t.push(this._easing(e/this._duration));return t.push(this._easing(1)),{type:"frames",frames:t,toValue:this._toValue,delay:this._delay}}},{key:"start",value:function(t,e,i,a,n){var s=this;this.__active=!0,this._fromValue=t,this._onUpdate=e,this.__onEnd=i;var o=function(){0!==s._duration||s._useNativeDriver?(s._startTime=Date.now(),s._useNativeDriver?s.__startNativeAnimation(n):s._animationFrame=b(s.onUpdate.bind(s))):(s._onUpdate(s._toValue),s.__debouncedOnEnd({finished:!0}))};this._delay?this._timeout=setTimeout(o,this._delay):o()}},{key:"onUpdate",value:function(){var t=Date.now();if(t>=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((t-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=b(this.onUpdate.bind(this)))}},{key:"stop",value:function(){babelHelpers.get(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"stop",this).call(this),this.__active=!1,clearTimeout(this._timeout),t.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}]),i}(C),T=function(e){function i(t){babelHelpers.classCallCheck(this,i);var e=babelHelpers.possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return e._deceleration=void 0!==t.deceleration?t.deceleration:.998,e._velocity=t.velocity,e._useNativeDriver=n(t),e.__isInteraction=void 0===t.isInteraction||t.isInteraction,e}return babelHelpers.inherits(i,e),babelHelpers.createClass(i,[{key:"__getNativeAnimationConfig",value:function(){return{type:"decay",deceleration:this._deceleration,velocity:this._velocity}}},{key:"start",value:function(t,e,i,a,n){this.__active=!0,this._lastValue=t,this._fromValue=t,this._onUpdate=e,this.__onEnd=i,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(n):this._animationFrame=b(this.onUpdate.bind(this))}},{key:"onUpdate",value:function(){var t=Date.now(),e=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(t-this._startTime)));if(this._onUpdate(e),Math.abs(this._lastValue-e)<.1)return void this.__debouncedOnEnd({finished:!0});this._lastValue=e,this.__active&&(this._animationFrame=b(this.onUpdate.bind(this)))}},{key:"stop",value:function(){babelHelpers.get(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"stop",this).call(this),this.__active=!1,t.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}]),i}(C),A=function(e){function i(t){babelHelpers.classCallCheck(this,i);var e=babelHelpers.possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));e._overshootClamping=r(t.overshootClamping,!1),e._restDisplacementThreshold=r(t.restDisplacementThreshold,.001),e._restSpeedThreshold=r(t.restSpeedThreshold,.001),e._initialVelocity=t.velocity,e._lastVelocity=r(t.velocity,0),e._toValue=t.toValue,e._useNativeDriver=n(t),e.__isInteraction=void 0===t.isInteraction||t.isInteraction;var a;return void 0!==t.bounciness||void 0!==t.speed?(m(void 0===t.tension&&void 0===t.friction,"You can only define bounciness/speed or tension/friction but not both"),a=p.fromBouncinessAndSpeed(r(t.bounciness,8),r(t.speed,12))):a=p.fromOrigamiTensionAndFriction(r(t.tension,40),r(t.friction,7)),e._tension=a.tension,e._friction=a.friction,e}return babelHelpers.inherits(i,e),babelHelpers.createClass(i,[{key:"__getNativeAnimationConfig",value:function(){return{type:"spring",overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,tension:this._tension,friction:this._friction,initialVelocity:r(this._initialVelocity,this._lastVelocity),toValue:this._toValue}}},{key:"start",value:function(t,e,a,n,s){if(this.__active=!0,this._startPosition=t,this._lastPosition=this._startPosition,this._onUpdate=e,this.__onEnd=a,this._lastTime=Date.now(),n instanceof i){var o=n.getInternalState();this._lastPosition=o.lastPosition,this._lastVelocity=o.lastVelocity,this._lastTime=o.lastTime}void 0!==this._initialVelocity&&null!==this._initialVelocity&&(this._lastVelocity=this._initialVelocity),this._useNativeDriver?this.__startNativeAnimation(s):this.onUpdate()}},{key:"getInternalState",value:function(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}},{key:"onUpdate",value:function(){var t=this._lastPosition,e=this._lastVelocity,i=this._lastPosition,a=this._lastVelocity,n=Date.now();n>this._lastTime+64&&(n=this._lastTime+64);for(var s=Math.floor((n-this._lastTime)/1),o=0;o<s;++o){var r=e,_=this._tension*(this._toValue-i)-this._friction*a,i=t+.001*r/2,a=e+.001*_/2,l=a,u=this._tension*(this._toValue-i)-this._friction*a;i=t+.001*l/2,a=e+.001*u/2;var h=a,c=this._tension*(this._toValue-i)-this._friction*a;i=t+.001*h/2,a=e+.001*c/2;var v=a,p=this._tension*(this._toValue-i)-this._friction*a;i=t+.001*h/2,a=e+.001*c/2;var f=(r+2*(l+h)+v)/6,d=(_+2*(u+c)+p)/6;t+=.001*f,e+=.001*d}if(this._lastTime=n,this._lastPosition=t,this._lastVelocity=e,this._onUpdate(t),this.__active){var y=!1;this._overshootClamping&&0!==this._tension&&(y=this._startPosition<this._toValue?t>this._toValue:t<this._toValue);var m=Math.abs(e)<=this._restSpeedThreshold,g=!0;if(0!==this._tension&&(g=Math.abs(this._toValue-t)<=this._restDisplacementThreshold),y||m&&g)return 0!==this._tension&&this._onUpdate(this._toValue),void this.__debouncedOnEnd({finished:!0});this._animationFrame=b(this.onUpdate.bind(this))}}},{key:"stop",value:function(){babelHelpers.get(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"stop",this).call(this),this.__active=!1,t.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}]),i}(C),w=1,P=function(t){function e(t){babelHelpers.classCallCheck(this,e);var i=babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i._value=t,i._offset=0,i._animation=null,i._listeners={},i}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"__detach",value:function(){this.stopAnimation(),babelHelpers.get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"__detach",this).call(this)}},{key:"__getValue",value:function(){return this._value+this._offset}},{key:"__makeNative",value:function(){babelHelpers.get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"__makeNative",this).call(this),Object.keys(this._listeners).length&&this._startListeningToNativeValueUpdates()}},{key:"setValue",value:function(t){this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(t,!this.__isNative),this.__isNative&&g.setAnimatedNodeValue(this.__getNativeTag(),t)}},{key:"setOffset",value:function(t){this._offset=t,this.__isNative&&g.setAnimatedNodeOffset(this.__getNativeTag(),t)}},{key:"flattenOffset",value:function(){this._value+=this._offset,this._offset=0,this.__isNative&&g.flattenAnimatedNodeOffset(this.__getNativeTag())}},{key:"extractOffset",value:function(){this._offset+=this._value,this._value=0,this.__isNative&&g.extractAnimatedNodeOffset(this.__getNativeTag())}},{key:"addListener",value:function(t){var e=String(w++);return this._listeners[e]=t,this.__isNative&&this._startListeningToNativeValueUpdates(),e}},{key:"removeListener",value:function(t){delete this._listeners[t],this.__isNative&&0===Object.keys(this._listeners).length&&this._stopListeningForNativeValueUpdates()}},{key:"removeAllListeners",value:function(){this._listeners={},this.__isNative&&this._stopListeningForNativeValueUpdates()}},{key:"_startListeningToNativeValueUpdates",value:function(){var t=this;this.__nativeAnimatedValueListener||(g.startListeningToAnimatedNodeValue(this.__getNativeTag()),this.__nativeAnimatedValueListener=h.nativeEventEmitter.addListener("onAnimatedValueUpdate",function(e){e.tag===t.__getNativeTag()&&t._updateValue(e.value,!1)}))}},{key:"_stopListeningForNativeValueUpdates",value:function(){this.__nativeAnimatedValueListener&&(this.__nativeAnimatedValueListener.remove(),this.__nativeAnimatedValueListener=null,g.stopListeningToAnimatedNodeValue(this.__getNativeTag()))}},{key:"stopAnimation",value:function(t){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,t&&t(this.__getValue())}},{key:"interpolate",value:function(t){return new E(this,t)}},{key:"animate",value:function(t,e){var i=this,a=null;t.__isInteraction&&(a=l.createInteractionHandle());var n=this._animation;this._animation&&this._animation.stop(),this._animation=t,t.start(this._value,function(t){i._updateValue(t,!0)},function(t){i._animation=null,null!==a&&l.clearInteractionHandle(a),e&&e(t)},n,this)}},{key:"stopTracking",value:function(){this._tracking&&this._tracking.__detach(),this._tracking=null}},{key:"track",value:function(t){this.stopTracking(),this._tracking=t}},{key:"_updateValue",value:function(t,e){this._value=t,e&&s(this);for(var i in this._listeners)this._listeners[i]({value:this.__getValue()})}},{key:"__getNativeConfig",value:function(){return{type:"value",value:this._value,offset:this._offset}}}]),e}(V),x=function(t){function e(t){babelHelpers.classCallCheck(this,e);var i=babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this)),a=t||{x:0,y:0};return"number"==typeof a.x&&"number"==typeof a.y?(i.x=new P(a.x),i.y=new P(a.y)):(m(a.x instanceof P&&a.y instanceof P,"AnimatedValueXY must be initalized with an object of numbers or AnimatedValues."),i.x=a.x,i.y=a.y),i._listeners={},i}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"setValue",value:function(t){this.x.setValue(t.x),this.y.setValue(t.y)}},{key:"setOffset",value:function(t){this.x.setOffset(t.x),this.y.setOffset(t.y)}},{key:"flattenOffset",value:function(){this.x.flattenOffset(),this.y.flattenOffset()}},{key:"__getValue",value:function(){return{x:this.x.__getValue(),y:this.y.__getValue()}}},{key:"stopAnimation",value:function(t){this.x.stopAnimation(),this.y.stopAnimation(),t&&t(this.__getValue())}},{key:"addListener",value:function(t){var e=this,i=String(w++),a=function(i){i.value;t(e.__getValue())};return this._listeners[i]={x:this.x.addListener(a),y:this.y.addListener(a)},i}},{key:"removeListener",value:function(t){this.x.removeListener(this._listeners[t].x),this.y.removeListener(this._listeners[t].y),delete this._listeners[t]}},{key:"removeAllListeners",value:function(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}}},{key:"getLayout",value:function(){return{left:this.x,top:this.y}}},{key:"getTranslateTransform",value:function(){return[{translateX:this.x},{translateY:this.y}]}}]),e}(V),E=function(t){function e(t,i){babelHelpers.classCallCheck(this,e);var a=babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return a._parent=t,a._config=i,a._interpolation=u.create(i),a}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"__getValue",value:function(){var t=this._parent.__getValue();return m("number"==typeof t,"Cannot interpolate an input which is not a number."),this._interpolation(t)}},{key:"interpolate",value:function(t){return new e(this,t)}},{key:"__attach",value:function(){this._parent.__addChild(this)}},{key:"__detach",value:function(){this._parent.__removeChild(this),babelHelpers.get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"__detach",this).call(this)}},{key:"__transformDataType",value:function(t){return t.map(function(t){if("string"!=typeof t)return t;if(/deg$/.test(t)){return(parseFloat(t,10)||0)*Math.PI/180}return parseFloat(t,10)||0})}},{key:"__getNativeConfig",value:function(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||"extend",extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||"extend",type:"interpolation"}}}]),e}(V),j=function(t){function e(t,i){babelHelpers.classCallCheck(this,e);var a=babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return a._a="number"==typeof t?new P(t):t,a._b="number"==typeof i?new P(i):i,a}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),babelHelpers.get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return this._a.__getValue()+this._b.__getValue()}},{key:"interpolate",value:function(t){return new E(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),babelHelpers.get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:"addition",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),e}(V),L=function(t){function e(t,i){babelHelpers.classCallCheck(this,e);var a=babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return a._a="number"==typeof t?new P(t):t,a._b="number"==typeof i?new P(i):i,a}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"__makeNative",value:function(){babelHelpers.get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"__makeNative",this).call(this),this._a.__makeNative(),this._b.__makeNative()}},{key:"__getValue",value:function(){var t=this._a.__getValue(),e=this._b.__getValue();return 0===e&&console.error("Detected division by zero in AnimatedDivision"),t/e}},{key:"interpolate",value:function(t){return new E(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),babelHelpers.get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:"division",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),e}(V),U=function(t){function e(t,i){babelHelpers.classCallCheck(this,e);var a=babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return a._a="number"==typeof t?new P(t):t,a._b="number"==typeof i?new P(i):i,a}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"__makeNative",value:function(){babelHelpers.get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"__makeNative",this).call(this),this._a.__makeNative(),this._b.__makeNative()}},{key:"__getValue",value:function(){return this._a.__getValue()*this._b.__getValue()}},{key:"interpolate",value:function(t){return new E(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),babelHelpers.get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:"multiplication",input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),e}(V),R=function(t){function e(t,i){babelHelpers.classCallCheck(this,e);var a=babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return a._a=t,a._modulus=i,a}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"__makeNative",value:function(){babelHelpers.get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"__makeNative",this).call(this),this._a.__makeNative()}},{key:"__getValue",value:function(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}},{key:"interpolate",value:function(t){return new E(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this)}},{key:"__getNativeConfig",value:function(){return{type:"modulus",input:this._a.__getNativeTag(),modulus:this._modulus}}}]),e}(V),D=function(t){function e(t,i,a){babelHelpers.classCallCheck(this,e);var n=babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n._a=t,n._min=i,n._max=a,n._value=n._lastValue=n._a.__getValue(),n}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"__makeNative",value:function(){babelHelpers.get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"__makeNative",this).call(this),this._a.__makeNative()}},{key:"interpolate",value:function(t){return new E(this,t)}},{key:"__getValue",value:function(){var t=this._a.__getValue(),e=t-this._lastValue;return this._lastValue=t,this._value=Math.min(Math.max(this._value+e,this._min),this._max),this._value}},{key:"__attach",value:function(){this._a.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this)}},{key:"__getNativeConfig",value:function(){return{type:"diffclamp",input:this._a.__getNativeTag(),min:this._min,max:this._max}}}]),e}(V),F=function(t){function e(t){babelHelpers.classCallCheck(this,e);var i=babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i._transforms=t,i}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"__makeNative",value:function(){babelHelpers.get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"__makeNative",this).call(this),this._transforms.forEach(function(t){for(var e in t){var i=t[e];i instanceof N&&i.__makeNative()}})}},{key:"__getValue",value:function(){return this._transforms.map(function(t){var e={};for(var i in t){var a=t[i];e[i]=a instanceof N?a.__getValue():a}return e})}},{key:"__getAnimatedValue",value:function(){return this._transforms.map(function(t){var e={};for(var i in t){var a=t[i];e[i]=a instanceof N?a.__getAnimatedValue():a}return e})}},{key:"__attach",value:function(){var t=this;this._transforms.forEach(function(e){for(var i in e){var a=e[i];a instanceof N&&a.__addChild(t)}})}},{key:"__detach",value:function(){var t=this;this._transforms.forEach(function(e){for(var i in e){var a=e[i];a instanceof N&&a.__removeChild(t)}})}},{key:"__getNativeConfig",value:function(){var t=[];return this._transforms.forEach(function(e){for(var i in e){var a=e[i];a instanceof N?t.push({type:"animated",property:i,nodeTag:a.__getNativeTag()}):t.push({type:"static",property:i,value:a})}}),h.validateTransform(t),{type:"transform",transforms:t}}}]),e}(V),I=function(t){function e(t){babelHelpers.classCallCheck(this,e);var i=babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t=y(t)||{},t.transform&&(t=babelHelpers.extends({},t,{transform:new F(t.transform)})),i._style=t,i}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"__getValue",value:function(){var t={};for(var e in this._style){var i=this._style[e];i instanceof N?i.__isNative||(t[e]=i.__getValue()):t[e]=i}return t}},{key:"__getAnimatedValue",value:function(){var t={};for(var e in this._style){var i=this._style[e];i instanceof N&&(t[e]=i.__getAnimatedValue())}return t}},{key:"__attach",value:function(){for(var t in this._style){var e=this._style[t];e instanceof N&&e.__addChild(this)}}},{key:"__detach",value:function(){for(var t in this._style){var e=this._style[t];e instanceof N&&e.__removeChild(this)}}},{key:"__makeNative",value:function(){babelHelpers.get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"__makeNative",this).call(this);for(var t in this._style){var i=this._style[t];i instanceof N&&i.__makeNative()}}},{key:"__getNativeConfig",value:function(){var t={};for(var e in this._style)this._style[e]instanceof N&&(t[e]=this._style[e].__getNativeTag());return h.validateStyles(t),{type:"style",style:t}}}]),e}(V),S=function(t){function e(t,i){babelHelpers.classCallCheck(this,e);var a=babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.style&&(t=babelHelpers.extends({},t,{style:new I(t.style)})),a._props=t,a._callback=i,a.__attach(),a}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"__getValue",value:function(){var t={};for(var e in this._props){var i=this._props[e];i instanceof N?(!i.__isNative||i instanceof I)&&(t[e]=i.__getValue()):t[e]=i instanceof it?i.__getHandler():i}return t}},{key:"__getAnimatedValue",value:function(){var t={};for(var e in this._props){var i=this._props[e];i instanceof N&&(t[e]=i.__getAnimatedValue())}return t}},{key:"__attach",value:function(){for(var t in this._props){var e=this._props[t];e instanceof N&&e.__addChild(this)}}},{key:"__detach",value:function(){this.__isNative&&this._animatedView&&this.__disconnectAnimatedView();for(var t in this._props){var i=this._props[t];i instanceof N&&i.__removeChild(this)}babelHelpers.get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"__detach",this).call(this)}},{key:"update",value:function(){this._callback()}},{key:"__makeNative",value:function(){if(!this.__isNative){this.__isNative=!0;for(var t in this._props){var e=this._props[t];e instanceof N&&e.__makeNative()}this._animatedView&&this.__connectAnimatedView()}}},{key:"setNativeView",value:function(t){m(void 0===this._animatedView,"Animated view already set."),this._animatedView=t,this.__isNative&&this.__connectAnimatedView()}},{key:"__connectAnimatedView",value:function(){m(this.__isNative,'Expected node to be marked as "native"');var t=d(this._animatedView);m(null!=t,"Unable to locate attached view in the native tree"),g.connectAnimatedNodeToView(this.__getNativeTag(),t)}},{key:"__disconnectAnimatedView",value:function(){m(this.__isNative,'Expected node to be marked as "native"');var t=d(this._animatedView);m(null!=t,"Unable to locate attached view in the native tree"),g.disconnectAnimatedNodeFromView(this.__getNativeTag(),t)}},{key:"__getNativeConfig",value:function(){var t={};for(var e in this._props){var i=this._props[e];i instanceof N&&(t[e]=i.__getNativeTag())}return{type:"props",props:t}}}]),e}(N),M=function(t){function e(t,i,a,n,s){babelHelpers.classCallCheck(this,e);var o=babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o._value=t,o._parent=i,o._animationClass=a,o._animationConfig=n,o._callback=s,o.__attach(),o}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"__getValue",value:function(){return this._parent.__getValue()}},{key:"__attach",value:function(){this._parent.__addChild(this)}},{key:"__detach",value:function(){this._parent.__removeChild(this),babelHelpers.get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"__detach",this).call(this)}},{key:"update",value:function(){this._value.animate(new this._animationClass(babelHelpers.extends({},this._animationConfig,{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}}]),e}(N),Y=function(t,e){return new j(t,e)},J=function(t,e){return new L(t,e)},W=function(t,e){return new U(t,e)},X=function(t,e){return new R(t,e)},z=function(t,e,i){return new D(t,e,i)},q=function(t,e){return t&&e.onComplete?function(){e.onComplete&&e.onComplete.apply(e,arguments),t&&t.apply(void 0,arguments)}:t||e.onComplete},B=function(t,e,i){if(t instanceof x){var a=babelHelpers.extends({},e),n=babelHelpers.extends({},e);for(var s in e){var o=e[s],r=o.x,_=o.y;void 0!==r&&void 0!==_&&(a[s]=r,n[s]=_)}var l=i(t.x,a),u=i(t.y,n);return Z([l,u],{stopTogether:!1})}return null},$=function t(e,i){return B(e,i,t)||{start:function(t){t=q(t,i);var a=e,n=i;a.stopTracking(),i.toValue instanceof N?a.track(new M(a,i.toValue,A,n,t)):a.animate(new A(n),t)},stop:function(){e.stopAnimation()}}},G=function t(e,i){return B(e,i,t)||{start:function(t){t=q(t,i);var a=e,n=i;a.stopTracking(),i.toValue instanceof N?a.track(new M(a,i.toValue,O,n,t)):a.animate(new O(n),t)},stop:function(){e.stopAnimation()}}},K=function t(e,i){return B(e,i,t)||{start:function(t){t=q(t,i);var a=e,n=i;a.stopTracking(),a.animate(new T(n),t)},stop:function(){e.stopAnimation()}}},Q=function(t){var e=0;return{start:function(i){var a=function a(n){return n.finished?++e===t.length?void(i&&i(n)):void t[e].start(a):void(i&&i(n))};0===t.length?i&&i({finished:!0}):t[e].start(a)},stop:function(){e<t.length&&t[e].stop()}}},Z=function(t,e){var i=0,a={},n=!(e&&!1===e.stopTogether),s={start:function(e){if(i===t.length)return void(e&&e({finished:!0}));t.forEach(function(o,r){var _=function(o){if(a[r]=!0,++i===t.length)return i=0,void(e&&e(o));!o.finished&&n&&s.stop()};o?o.start(_):_({finished:!0})})},stop:function(){t.forEach(function(t,e){!a[e]&&t.stop(),a[e]=!0})}};return s},tt=function(t){return G(new P(0),{toValue:0,delay:t,duration:0})},et=function(t,e){return Z(e.map(function(e,i){return Q([tt(t*i),e])}))},it=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};babelHelpers.classCallCheck(this,t),this._argMapping=e,this._listener=i.listener,this.__isNative=n(i),this.__isNative&&m(!this._listener,"Listener is not supported for native driven events.")}
return babelHelpers.createClass(t,[{key:"__attach",value:function(t,e){m(this.__isNative,"Only native driven events need to be attached.");var i=[];m(this._argMapping[0]&&this._argMapping[0].nativeEvent,"Native driven events only support animated values contained inside `nativeEvent`."),function t(e,a){if(e instanceof P)e.__makeNative(),i.push({nativeEventPath:a,animatedValueTag:e.__getNativeTag()});else if("object"==typeof e)for(var n in e)t(e[n],a.concat(n))}(this._argMapping[0].nativeEvent,[]);var a=d(t);i.forEach(function(t){g.addAnimatedEventToView(a,e,t)})}},{key:"__detach",value:function(t,e){m(this.__isNative,"Only native driven events need to be detached."),g.removeAnimatedEventFromView(t,e)}},{key:"__getHandler",value:function(){var t=this;return function(){for(var e=arguments.length,i=Array(e),a=0;a<e;a++)i[a]=arguments[a];var n=function t(e,i,a){if("number"==typeof i&&e instanceof P)e.setValue(i);else if("object"==typeof e)for(var n in e)t(e[n],i[n],n)};t.__isNative||t._argMapping.forEach(function(t,e){n(t,i[e])}),t._listener&&t._listener.apply(null,i)}}},{key:"_validateMapping",value:function(){}}]),t}(),at=function(t,e){var i=new it(t,e);return i.__isNative?i:i.__getHandler()};i.exports={Value:P,ValueXY:x,decay:K,timing:G,spring:$,add:Y,divide:J,multiply:W,modulo:X,diffClamp:z,delay:tt,sequence:Q,parallel:Z,stagger:et,event:at,createAnimatedComponent:_,__PropsOnlyForTests:S}},202);
__d(function(e,n,t,r){"use strict";function o(){E||(E=b>0?setTimeout(a,0+m):setImmediate(a))}function a(){E=0;var e=v.size;h.forEach(function(e){return v.add(e)}),w.forEach(function(e){return v.delete(e)});var n=v.size;if(0!==e&&0===n?f.emit(p.Events.interactionComplete):0===e&&0!==n&&f.emit(p.Events.interactionStart),0===n)for(;T.hasTasksToProcess();)if(T.processNext(),b>0&&i.getEventLoopRunningTime()>=b){o();break}h.clear(),w.clear()}var i=n(77),c=n(102),s=n(204),u=n(210),d=(n(211),n(44)),l=n(115),f=new c,m=0,p={Events:l({interactionStart:!0,interactionComplete:!0}),runAfterInteractions:function(e){var n=[],t=new Promise(function(t){o(),e&&n.push(e),n.push({run:t,name:"resolve "+(e&&e.name||"?")}),T.enqueueTasks(n)});return{then:t.then.bind(t),done:function(){if(t.done)return t.done.apply(t,arguments);console.warn("Tried to call done when not supported by current Promise implementation.")},cancel:function(){T.cancelTasks(n)}}},createInteractionHandle:function(){o();var e=++k;return h.add(e),e},clearInteractionHandle:function(e){d(!!e,"Must provide a handle to clear."),o(),h.delete(e),w.add(e)},addListener:f.addListener.bind(f),setDeadline:function(e){b=e}},v=new s,h=new s,w=new s,T=new u({onMoreTasks:o}),E=0,k=0,b=-1;t.exports=p},203);
__d(function(e,t,n,s){"use strict";var i=t(205),r=t(206),a=t(209);n.exports=function(e){function t(e){e._map=new i,e.size=e._map.size}if(!r("Set"))return e.Set;var n=function(){function e(n){if(babelHelpers.classCallCheck(this,e),null==this||"object"!=typeof this&&"function"!=typeof this)throw new TypeError("Wrong set object type.");if(t(this),null!=n)for(var s,i=a(n);!(s=i.next()).done;)this.add(s.value)}return babelHelpers.createClass(e,[{key:"add",value:function(e){return this._map.set(e,e),this.size=this._map.size,this}},{key:"clear",value:function(){t(this)}},{key:"delete",value:function(e){var t=this._map.delete(e);return this.size=this._map.size,t}},{key:"entries",value:function(){return this._map.entries()}},{key:"forEach",value:function(e){for(var t,n=arguments[1],s=this._map.keys();!(t=s.next()).done;)e.call(n,t.value,t.value,this)}},{key:"has",value:function(e){return this._map.has(e)}},{key:"values",value:function(){return this._map.values()}}]),e}();return n.prototype[a.ITERATOR_SYMBOL]=n.prototype.values,n.prototype.keys=n.prototype.values,n}(Function("return this")())},204);
__d(function(e,t,r,n){"use strict";var i=t(206),a=t(207),o=t(208),u=t(209);r.exports=function(e,t){function r(e,t){if(l(t)){var r=x(t);return e._objectIndex[r]}var n=d+t;return"string"==typeof t?e._stringIndex[n]:e._otherIndex[n]}function n(e,t,r){var n=null==r;if(l(t)){var i=x(t);n?delete e._objectIndex[i]:e._objectIndex[i]=r}else{var a=d+t;"string"==typeof t?n?delete e._stringIndex[a]:e._stringIndex[a]=r:n?delete e._otherIndex[a]:e._otherIndex[a]=r}}function s(e){e._mapData=[],e._objectIndex={},e._stringIndex={},e._otherIndex={},e.size=0}function l(e){return null!=e&&("object"==typeof e||"function"==typeof e)}function p(e,t){return{value:e,done:t}}function f(e){return!I||Object.isExtensible(e)}function c(e){var t;switch(e.nodeType){case 1:t=e.uniqueID;break;case 9:t=e.documentElement.uniqueID;break;default:return null}return t?y+t:null}if(!i("Map"))return e.Map;var h="key",v="value",b="key+value",d="$map_",y="IE_HASH_",_=function(){function e(t){if(babelHelpers.classCallCheck(this,e),!l(this))throw new TypeError("Wrong map object type.");if(s(this),null!=t)for(var r,n=u(t);!(r=n.next()).done;){if(!l(r.value))throw new TypeError("Expected iterable items to be pair objects.");this.set(r.value[0],r.value[1])}}return babelHelpers.createClass(e,[{key:"clear",value:function(){s(this)}},{key:"has",value:function(e){var t=r(this,e);return!(null==t||!this._mapData[t])}},{key:"set",value:function(e,t){var i=r(this,e);return null!=i&&this._mapData[i]?this._mapData[i][1]=t:(i=this._mapData.push([e,t])-1,n(this,e,i),this.size+=1),this}},{key:"get",value:function(e){var t=r(this,e);return null==t?void 0:this._mapData[t][1]}},{key:"delete",value:function(e){var t=r(this,e);return!(null==t||!this._mapData[t])&&(n(this,e,void 0),this._mapData[t]=void 0,this.size-=1,!0)}},{key:"entries",value:function(){return new m(this,b)}},{key:"keys",value:function(){return new m(this,h)}},{key:"values",value:function(){return new m(this,v)}},{key:"forEach",value:function(e,t){if("function"!=typeof e)throw new TypeError("Callback must be callable.");for(var r=e.bind(t||void 0),n=this._mapData,i=0;i<n.length;i++){var a=n[i];null!=a&&r(a[1],a[0],this)}}}]),e}();_.prototype[u.ITERATOR_SYMBOL]=_.prototype.entries;var m=function(){function e(t,r){if(babelHelpers.classCallCheck(this,e),!l(t)||!t._mapData)throw new TypeError("Object is not a map.");if(-1===[h,b,v].indexOf(r))throw new Error("Invalid iteration kind.");this._map=t,this._nextIndex=0,this._kind=r}return babelHelpers.createClass(e,[{key:"next",value:function(){if(!this instanceof _)throw new TypeError("Expected to be called on a MapIterator.");var e=this._map,t=this._nextIndex,r=this._kind;if(null==e)return p(void 0,!0);for(var n=e._mapData;t<n.length;){var i=n[t];if(t+=1,this._nextIndex=t,i){if(r===h)return p(i[0],!1);if(r===v)return p(i[1],!1);if(r)return p(i,!1)}}return this._map=void 0,p(void 0,!0)}}]),e}();m.prototype[u.ITERATOR_SYMBOL]=function(){return this};var I=function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}(),x=function(){var e=Object.prototype.propertyIsEnumerable,t=a(),r=0;return function(n){if(n[t])return n[t];if(!I&&n.propertyIsEnumerable&&n.propertyIsEnumerable[t])return n.propertyIsEnumerable[t];if(!I&&o(n)&&c(n))return c(n);if(!I&&n[t])return n[t];if(f(n)){if(r+=1,I)Object.defineProperty(n,t,{enumerable:!1,writable:!1,configurable:!1,value:r});else if(n.propertyIsEnumerable)n.propertyIsEnumerable=function(){return e.apply(this,arguments)},n.propertyIsEnumerable[t]=r;else{if(!o(n))throw new Error("Unable to set a non-enumerable property on object.");n[t]=r}return r}throw new Error("Non-extensible objects are not allowed as keys.")}}();return _}(Function("return this")())},205);
__d(function(n,t,o,e){"use strict";function f(t){var o=n[t];if(null==o)return!0;if("function"!=typeof n.Symbol)return!0;var e=o.prototype;return null==o||"function"!=typeof o||"function"!=typeof e.clear||0!==(new o).size||"function"!=typeof e.keys||"function"!=typeof e.forEach}o.exports=f},206);
__d(function(t,n,r,e){"use strict";function o(){return"f"+(1073741824*Math.random()).toString(16).replace(".","")}r.exports=o},207);
__d(function(e,o,n,t){"use strict";function f(e){var o=e?e.ownerDocument||e:document,n=o.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}n.exports=f},208);
__d(function(t,e,r,n){"use strict";var i="function"==typeof Symbol&&"function"==typeof Symbol?Symbol.iterator:"@@iterator",a=function(){return Array.prototype[i]&&String.prototype[i]?function(t){return t[i]()}:function(){function t(t,e){return{value:t,done:e}}var e=function(){function e(t,r){if(babelHelpers.classCallCheck(this,e),!Array.isArray(t))throw new TypeError("Object is not an Array");this._iteratedObject=t,this._kind=r,this._nextIndex=0}return babelHelpers.createClass(e,[{key:"next",value:function(){if(!this instanceof e)throw new TypeError("Object is not an ArrayIterator");if(null==this._iteratedObject)return t(void 0,!0);var r=this._iteratedObject,n=this._iteratedObject.length,i=this._nextIndex,a=this._kind;return i>=n?(this._iteratedObject=void 0,t(void 0,!0)):(this._nextIndex=i+1,"key"===a?t(i,!1):"value"===a?t(r[i],!1):"key+value"===a?t([i,r[i]],!1):void 0)}},{key:"@@iterator",value:function(){return this}}]),e}(),r=function(){function e(t){if(babelHelpers.classCallCheck(this,e),"string"!=typeof t)throw new TypeError("Object is not a string");this._iteratedString=t,this._nextIndex=0}return babelHelpers.createClass(e,[{key:"next",value:function(){if(!this instanceof e)throw new TypeError("Object is not a StringIterator");if(null==this._iteratedString)return t(void 0,!0);var r=this._nextIndex,n=this._iteratedString,i=n.length;if(r>=i)return this._iteratedString=void 0,t(void 0,!0);var a,o=n.charCodeAt(r);if(o<55296||o>56319||r+1===i)a=n[r];else{var s=n.charCodeAt(r+1);a=s<56320||s>57343?n[r]:n[r]+n[r+1]}return this._nextIndex=r+a.length,t(a,!1)}},{key:"@@iterator",value:function(){return this}}]),e}();return function(t,n){return"string"==typeof t?new r(t):Array.isArray(t)?new e(t,n||"value"):t[i]()}}()}();babelHelpers.extends(a,{KIND_KEY:"key",KIND_VALUE:"value",KIND_KEY_VAL:"key+value",ITERATOR_SYMBOL:i}),r.exports=a},209);
__d(function(e,t,s,u){"use strict";var n=(t(211),t(44)),a=function(){function e(t){var s=t.onMoreTasks;babelHelpers.classCallCheck(this,e),this._onMoreTasks=s,this._queueStack=[{tasks:[],popable:!1}]}return babelHelpers.createClass(e,[{key:"enqueue",value:function(e){this._getCurrentQueue().push(e)}},{key:"enqueueTasks",value:function(e){var t=this;e.forEach(function(e){return t.enqueue(e)})}},{key:"cancelTasks",value:function(e){this._queueStack=this._queueStack.map(function(t){return babelHelpers.extends({},t,{tasks:t.tasks.filter(function(t){return-1===e.indexOf(t)})})}).filter(function(e,t){return e.tasks.length>0||0===t})}},{key:"hasTasksToProcess",value:function(){return this._getCurrentQueue().length>0}},{key:"processNext",value:function(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{t.gen?this._genPromise(t):t.run?t.run():(n("function"==typeof t,"Expected Function, SimpleTask, or PromiseTask, but got:\n"+JSON.stringify(t,null,2)),t())}catch(e){throw e.message="TaskQueue: Error with task "+(t.name||"")+": "+e.message,e}}}},{key:"_getCurrentQueue",value:function(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&this._queueStack.length>1?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}},{key:"_genPromise",value:function(e){var t=this;this._queueStack.push({tasks:[],popable:!1});var s=this._queueStack.length-1;e.gen().then(function(){t._queueStack[s].popable=!0,t.hasTasksToProcess()&&t._onMoreTasks()}).catch(function(t){throw t.message="TaskQueue: Error resolving Promise in task "+e.name+": "+t.message,t}).done()}}]),e}();s.exports=a},210);
__d(function(n,o,t,r){"use strict";function c(){var n;return(n=console).log.apply(n,arguments)}t.exports=c},211);
__d(function(t,n,e,a){"use strict";function r(t,n,e,a,r,u,i,o){var l=t;if(l<n){if("identity"===i)return l;"clamp"===i&&(l=n)}if(l>e){if("identity"===o)return l;"clamp"===o&&(l=e)}return a===r?a:n===e?t<=n?a:r:(n===-1/0?l=-l:e===1/0?l-=n:l=(l-n)/(e-n),l=u(l),a===-1/0?l=-l:r===1/0?l+=a:l=l*(r-a)+a,l)}function u(t){var n=h(t);return null===n?t:"rgba("+((4278190080&(n=n||0))>>>24)+", "+((16711680&n)>>>16)+", "+((65280&n)>>>8)+", "+(255&n)/255+")"}function i(t){var n=t.outputRange;g(n.length>=2,"Bad output range"),n=n.map(u),l(n);var e=n[0].match(m).map(function(){return[]});n.forEach(function(t){t.match(m).forEach(function(t,n){e[n].push(+t)})});var a=n[0].match(m).map(function(n,a){return v.create(babelHelpers.extends({},t,{outputRange:e[a]}))}),r=o(n[0]);return function(t){var e=0;return n[0].replace(m,function(){var n=+a[e++](t),u=r&&e<4?Math.round(n):Math.round(1e3*n)/1e3;return String(u)})}}function o(t){return"string"==typeof t&&t.startsWith("rgb")}function l(t){for(var n=t[0].replace(m,""),e=1;e<t.length;++e)g(n===t[e].replace(m,""),"invalid pattern "+t[0]+" and "+t[e])}function c(t,n){for(var e=1;e<n.length-1&&!(n[e]>=t);++e);return e-1}function p(t){g(t.length>=2,"inputRange must have at least 2 elements");for(var n=1;n<t.length;++n)g(t[n]>=t[n-1],"inputRange must be monotonically increasing "+t)}function f(t,n){g(n.length>=2,t+" must have at least 2 elements"),g(2!==n.length||n[0]!==-1/0||n[1]!==1/0,t+"cannot be ]-infinity;+infinity[ "+n)}var g=n(44),h=n(68),s=function(t){return t},v=function(){function t(){babelHelpers.classCallCheck(this,t)}return babelHelpers.createClass(t,null,[{key:"create",value:function(t){if(t.outputRange&&"string"==typeof t.outputRange[0])return i(t);var n=t.outputRange;f("outputRange",n);var e=t.inputRange;f("inputRange",e),p(e),g(e.length===n.length,"inputRange ("+e.length+") and outputRange ("+n.length+") must have the same length");var a=t.easing||s,u="extend";void 0!==t.extrapolateLeft?u=t.extrapolateLeft:void 0!==t.extrapolate&&(u=t.extrapolate);var o="extend";return void 0!==t.extrapolateRight?o=t.extrapolateRight:void 0!==t.extrapolate&&(o=t.extrapolate),function(t){g("number"==typeof t,"Cannot interpolation an input which is not a number");var i=c(t,e);return r(t,e[i],e[i+1],n[i],n[i+1],a,u,o)}}}]),t}(),m=/[0-9\.-]+/g;e.exports=v},212);
__d(function(e,t,n,o){"use strict";function a(e){e.forEach(function(e){if(!y.hasOwnProperty(e.property))throw new Error("Property '"+e.property+"' is not supported by native animated module")})}function i(e){for(var t in e)if(!w.hasOwnProperty(t))throw new Error("Style property '"+t+"' is not supported by native animated module")}function d(e){var t={inputRange:!0,outputRange:!0,extrapolate:!0,extrapolateRight:!0,extrapolateLeft:!0};for(var n in e)if(!t.hasOwnProperty(n))throw new Error("Interpolation property '"+n+"' is not supported by native animated module")}function r(){return l++}function s(){return p++}function c(){A(f,"Native animated module is not available")}function m(){return!!f}var f=t(76).NativeAnimatedModule,u=t(107),A=t(44),l=1,p=1,N=void 0,v={createAnimatedNode:function(e,t){c(),f.createAnimatedNode(e,t)},startListeningToAnimatedNodeValue:function(e){c(),f.startListeningToAnimatedNodeValue(e)},stopListeningToAnimatedNodeValue:function(e){c(),f.stopListeningToAnimatedNodeValue(e)},connectAnimatedNodes:function(e,t){c(),f.connectAnimatedNodes(e,t)},disconnectAnimatedNodes:function(e,t){c(),f.disconnectAnimatedNodes(e,t)},startAnimatingNode:function(e,t,n,o){c(),f.startAnimatingNode(e,t,n,o)},stopAnimation:function(e){c(),f.stopAnimation(e)},setAnimatedNodeValue:function(e,t){c(),f.setAnimatedNodeValue(e,t)},setAnimatedNodeOffset:function(e,t){c(),f.setAnimatedNodeOffset(e,t)},flattenAnimatedNodeOffset:function(e){c(),f.flattenAnimatedNodeOffset(e)},extractAnimatedNodeOffset:function(e){c(),f.extractAnimatedNodeOffset(e)},connectAnimatedNodeToView:function(e,t){c(),f.connectAnimatedNodeToView(e,t)},disconnectAnimatedNodeFromView:function(e,t){c(),f.disconnectAnimatedNodeFromView(e,t)},dropAnimatedNode:function(e){c(),f.dropAnimatedNode(e)},addAnimatedEventToView:function(e,t,n){c(),f.addAnimatedEventToView(e,t,n)},removeAnimatedEventFromView:function(e,t){c(),f.removeAnimatedEventFromView(e,t)}},w={opacity:!0,transform:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0},y={translateX:!0,translateY:!0,scale:!0,scaleX:!0,scaleY:!0,rotate:!0,rotateX:!0,rotateY:!0,perspective:!0};n.exports={API:v,validateStyles:i,validateTransform:a,validateInterpolation:d,generateNewNodeTag:r,generateNewAnimationId:s,assertNativeAnimatedModule:c,isNativeAnimatedAvailable:m,get nativeEventEmitter(){return N||(N=new u(f)),N}}},213);
__d(function(n,t,r,o){"use strict";function u(n){return 3.62*(n-30)+194}function i(n){return 3*(n-8)+25}function e(n,t){return{tension:u(n),friction:i(t)}}function c(n,t){function r(n,t,r){return(n-t)/(r-t)}function o(n,t,r){return t+n*(r-t)}function e(n,t,r){return n*r+(1-n)*t}function c(n){return 7e-4*Math.pow(n,3)-.031*Math.pow(n,2)+.64*n+1.28}function f(n){return 44e-6*Math.pow(n,3)-.006*Math.pow(n,2)+.36*n+2}function a(n){return 4.5e-7*Math.pow(n,3)-332e-6*Math.pow(n,2)+.1078*n+5.84}var p=r(n/1.7,0,20);p=o(p,0,.8);var s=r(t/1.7,0,20),h=o(s,.5,200),w=function(n,t,r){return e(2*n-n*n,t,r)}(p,function(n){return n<=18?c(n):n>18&&n<=44?f(n):a(n)}(h),.01);return{tension:u(h),friction:i(w)}}r.exports={fromOrigamiTensionAndFriction:e,fromBouncinessAndSpeed:c}},214);
__d(function(t,n,e,o){"use strict";var a=n(41),r=n(216),u=0,i=r||function(n){var e=Date.now(),o=Math.max(0,16-(e-u));return u=e+o,t.setTimeout(function(){n(Date.now())},o)};i(a),e.exports=i},215);
__d(function(e,t,i,m){"use strict";var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame;i.exports=n},216);
__d(function(e,n,u,t){"use strict";var r=void 0,a=function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"step0",value:function(e){return e>0?1:0}},{key:"step1",value:function(e){return e>=1?1:0}},{key:"linear",value:function(e){return e}},{key:"ease",value:function(n){return r||(r=e.bezier(.42,0,1,1)),r(n)}},{key:"quad",value:function(e){return e*e}},{key:"cubic",value:function(e){return e*e*e}},{key:"poly",value:function(e){return function(n){return Math.pow(n,e)}}},{key:"sin",value:function(e){return 1-Math.cos(e*Math.PI/2)}},{key:"circle",value:function(e){return 1-Math.sqrt(1-e*e)}},{key:"exp",value:function(e){return Math.pow(2,10*(e-1))}},{key:"elastic",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=e*Math.PI;return function(e){return 1-Math.pow(Math.cos(e*Math.PI/2),3)*Math.cos(e*n)}}},{key:"back",value:function(e){return void 0===e&&(e=1.70158),function(n){return n*n*((e+1)*n-e)}}},{key:"bounce",value:function(e){return e<.36363636363636365?7.5625*e*e:e<.7272727272727273?7.5625*(e-=.5454545454545454)*e+.75:e<.9090909090909091?7.5625*(e-=.8181818181818182)*e+.9375:7.5625*(e-=.9545454545454546)*e+.984375}},{key:"bezier",value:function(e,u,t,r){return n(218)(e,u,t,r)}},{key:"in",value:function(e){return e}},{key:"out",value:function(e){return function(n){return 1-e(1-n)}}},{key:"inOut",value:function(e){return function(n){return n<.5?e(2*n)/2:1-e(2*(1-n))/2}}}]),e}();u.exports=a},217);
__d(function(r,n,t,u){"use strict";function e(r,n){return 1-3*n+3*r}function o(r,n){return 3*n-6*r}function f(r){return 3*r}function i(r,n,t){return((e(n,t)*r+o(n,t))*r+f(n))*r}function a(r,n,t){return 3*e(n,t)*r*r+2*o(n,t)*r+f(n)}function c(r,n,t,u,e){var o,f,a=0;do{f=n+(t-n)/2,o=i(f,u,e)-r,o>0?t=f:n=f}while(Math.abs(o)>w&&++a<l);return f}function v(r,n,t,u){for(var e=0;e<s;++e){var o=a(n,t,u);if(0===o)return n;n-=(i(n,t,u)-r)/o}return n}var s=4,w=1e-7,l=10,y=11,b=1/(y-1),h="function"==typeof Float32Array;t.exports=function(r,n,t,u){function e(n){for(var u=0,e=1,f=y-1;e!==f&&o[e]<=n;++e)u+=b;--e;var i=(n-o[e])/(o[e+1]-o[e]),s=u+i*b,w=a(s,r,t);return w>=.001?v(n,s,r,t):0===w?s:c(n,u,u+b,r,t)}if(!(0<=r&&r<=1&&0<=t&&t<=1))throw new Error("bezier x values must be in [0, 1] range");var o=h?new Float32Array(y):new Array(y);if(r!==n||t!==u)for(var f=0;f<y;++f)o[f]=i(f*b,r,t);return function(o){return r===n&&t===u?o:0===o?0:1===o?1:i(e(o),n,u)}}},218);
__d(function(e,r,s,o){"use strict";var t=r(131),i=r(114),n=r(220),a=r(113),c=r(69),u=r(76),d=r(97),l=r(136),p=r(98),h=r(137),f=r(73),g=r(139),b=r(180),m=d.PropTypes,v=u.ImageViewManager,w=d.createClass({displayName:"Image",propTypes:{style:h(a),source:n,defaultSource:m.oneOfType([m.shape({uri:m.string,width:m.number,height:m.number,scale:m.number}),m.number]),accessible:m.bool,accessibilityLabel:m.string,blurRadius:m.number,capInsets:t,resizeMethod:m.oneOf(["auto","resize","scale"]),resizeMode:m.oneOf(["cover","contain","stretch","repeat","center"]),testID:m.string,onLayout:m.func,onLoadStart:m.func,onProgress:m.func,onError:m.func,onPartialLoad:m.func,onLoad:m.func,onLoadEnd:m.func},statics:{resizeMode:i,getSize:function(e,r,s){v.getSize(e,r,s||function(){console.warn("Failed to get size for image: "+e)})},prefetch:function(e){return v.prefetchImage(e)},resolveAssetSource:b},mixins:[c],viewConfig:{uiViewClassName:"UIView",validAttributes:l.UIView},render:function(){var e=b(this.props.source)||{uri:void 0,width:void 0,height:void 0},r=void 0,s=void 0;if(Array.isArray(e))s=f([y.base,this.props.style])||{},r=e;else{var o=e.width,t=e.height,i=e.uri;s=f([{width:o,height:t},y.base,this.props.style])||{},r=[e],""===i&&console.warn("source.uri should not be an empty string")}var n=this.props.resizeMode||(s||{}).resizeMode||"cover",a=(s||{}).tintColor;return this.props.src&&console.warn("The <Image> component requires a `source` property rather than `src`."),d.createElement(z,babelHelpers.extends({},this.props,{style:s,resizeMode:n,tintColor:a,source:r}))}}),y=p.create({base:{overflow:"hidden"}}),z=g("RCTImageView",w);s.exports=w},219);
__d(function(e,r,n,t){"use strict";var s=r(97),a=s.PropTypes,c=a.shape({uri:a.string,bundle:a.string,method:a.string,headers:a.objectOf(a.string),body:a.string,cache:a.oneOf(["default","reload","force-cache","only-if-cached"]),width:a.number,height:a.number,scale:a.number}),i=a.oneOfType([c,a.number,a.arrayOf(c)]);n.exports=i},220);
__d(function(e,o,n,l){"use strict";var t=o(66),r=o(131),s=(o(75),o(222)),i=o(97),a=o(223),c=o(273),d=o(98),p=o(137),h=o(130),u=o(123),S=(o(109),o(73),o(44)),m=o(275),f=i.PropTypes,R=o(139),b=i.createClass({displayName:"ScrollView",propTypes:babelHelpers.extends({},h.propTypes,{automaticallyAdjustContentInsets:f.bool,contentInset:r,contentOffset:s,bounces:f.bool,bouncesZoom:f.bool,alwaysBounceHorizontal:f.bool,alwaysBounceVertical:f.bool,centerContent:f.bool,contentContainerStyle:p(u),decelerationRate:f.oneOfType([f.oneOf(["fast","normal"]),f.number]),horizontal:f.bool,indicatorStyle:f.oneOf(["default","black","white"]),directionalLockEnabled:f.bool,canCancelContentTouches:f.bool,keyboardDismissMode:f.oneOf(["none","interactive","on-drag"]),keyboardShouldPersistTaps:f.oneOf(["always","never","handled",!1,!0]),maximumZoomScale:f.number,minimumZoomScale:f.number,onScroll:f.func,onScrollAnimationEnd:f.func,onContentSizeChange:f.func,pagingEnabled:f.bool,scrollEnabled:f.bool,scrollEventThrottle:f.number,scrollIndicatorInsets:r,scrollsToTop:f.bool,showsHorizontalScrollIndicator:f.bool,showsVerticalScrollIndicator:f.bool,stickyHeaderIndices:f.arrayOf(f.number),style:p(u),snapToInterval:f.number,snapToAlignment:f.oneOf(["start","center","end"]),removeClippedSubviews:f.bool,zoomScale:f.number,refreshControl:f.element,endFillColor:t,scrollPerfTag:f.string,overScrollMode:f.oneOf(["auto","always","never"])}),mixins:[c.Mixin],getInitialState:function(){return this.scrollResponderMixinGetInitialState()},setNativeProps:function(e){this._scrollViewRef&&this._scrollViewRef.setNativeProps(e)},getScrollResponder:function(){return this},getScrollableNode:function(){return a.findNodeHandle(this._scrollViewRef)},getInnerViewNode:function(){return a.findNodeHandle(this._innerViewRef)},scrollTo:function(e,o,n){if("number"==typeof e)console.warn("`scrollTo(y, x, animated)` is deprecated. Use `scrollTo({x: 5, y: 5, animated: true})` instead.");else{var l=e||{};o=l.x,e=l.y,n=l.animated}this.getScrollResponder().scrollResponderScrollTo({x:o||0,y:e||0,animated:!1!==n})},scrollToEnd:function(e){var o=!1!==(e&&e.animated);this.getScrollResponder().scrollResponderScrollToEnd({animated:o})},scrollWithoutAnimationTo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;console.warn("`scrollWithoutAnimationTo` is deprecated. Use `scrollTo` instead"),this.scrollTo({x:o,y:e,animated:!1})},_handleScroll:function(e){this.scrollResponderHandleScroll(e)},_handleContentOnLayout:function(e){var o=e.nativeEvent.layout,n=o.width,l=o.height;this.props.onContentSizeChange&&this.props.onContentSizeChange(n,l)},_scrollViewRef:null,_setScrollViewRef:function(e){this._scrollViewRef=e},_innerViewRef:null,_setInnerViewRef:function(e){this._innerViewRef=e},render:function(){var e=[this.props.horizontal&&w.contentContainerHorizontal,this.props.contentContainerStyle],o={};this.props.onContentSizeChange&&(o={onLayout:this._handleContentOnLayout});var n=i.createElement(h,babelHelpers.extends({},o,{ref:this._setInnerViewRef,style:e,removeClippedSubviews:this.props.removeClippedSubviews,collapsable:!1}),this.props.children),l=void 0!==this.props.alwaysBounceHorizontal?this.props.alwaysBounceHorizontal:this.props.horizontal,t=void 0!==this.props.alwaysBounceVertical?this.props.alwaysBounceVertical:!this.props.horizontal,r=this.props.horizontal?w.baseHorizontal:w.baseVertical,s=babelHelpers.extends({},this.props,{alwaysBounceHorizontal:l,alwaysBounceVertical:t,style:[r,this.props.style],onContentSizeChange:null,onTouchStart:this.scrollResponderHandleTouchStart,onTouchMove:this.scrollResponderHandleTouchMove,onTouchEnd:this.scrollResponderHandleTouchEnd,onScrollBeginDrag:this.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this.scrollResponderHandleScrollEndDrag,onMomentumScrollBegin:this.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this.scrollResponderHandleMomentumScrollEnd,onStartShouldSetResponder:this.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this.scrollResponderHandleStartShouldSetResponderCapture,onScrollShouldSetResponder:this.scrollResponderHandleScrollShouldSetResponder,onScroll:this._handleScroll,onResponderGrant:this.scrollResponderHandleResponderGrant,onResponderTerminationRequest:this.scrollResponderHandleTerminationRequest,onResponderTerminate:this.scrollResponderHandleTerminate,onResponderRelease:this.scrollResponderHandleResponderRelease,onResponderReject:this.scrollResponderHandleResponderReject,sendMomentumEvents:!(!this.props.onMomentumScrollBegin&&!this.props.onMomentumScrollEnd)}),a=this.props.decelerationRate;a&&(s.decelerationRate=m(a));var c=void 0;c=y,S(void 0!==c,"ScrollViewClass must not be undefined");var d=this.props.refreshControl;return d?i.createElement(c,babelHelpers.extends({},s,{ref:this._setScrollViewRef}),d,n):i.createElement(c,babelHelpers.extends({},s,{ref:this._setScrollViewRef}),n)}}),w=d.create({baseVertical:{flexGrow:1,flexShrink:1,flexDirection:"column",overflow:"scroll"},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:"row",overflow:"scroll"},contentContainerHorizontal:{flexDirection:"row"}}),v=void 0,y=void 0;v={nativeOnly:{onMomentumScrollBegin:!0,onMomentumScrollEnd:!0,onScrollBeginDrag:!0,onScrollEndDrag:!0}},y=R("RCTScrollView",b,v),n.exports=b},221);
__d(function(r,e,n,s){"use strict";var t=e(97).PropTypes,u=e(132),o=u({x:t.number,y:t.number});n.exports=o},222);
__d(function(e,n,t,o){"use strict";var d=n(143),r=n(224),_=n(271),u=n(153),a=n(95);r.inject();var c=function(e,n,t){return _.renderComponent(e,n,t)},i={hasReactNativeInitialized:!1,findNodeHandle:a,render:c,unmountComponentAtNode:_.unmountComponentAtNode,unstable_batchedUpdates:u.batchedUpdates,unmountComponentAtNodeAndRemoveContainer:_.unmountComponentAtNodeAndRemoveContainer};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:function(e){return d.getClosestInstanceFromNode(e)},getNodeFromInstance:function(e){for(;e._renderedComponent;)e=e._renderedComponent;return e?d.getNodeFromInstance(e):null}},Mount:_,Reconciler:n(157)}),t.exports=i},223);
__d(function(n,e,t,i){"use strict";function c(){r.register(E),o.injection.injectEventPluginOrder(d),a.injection.injectComponentTree(g),a.injection.injectTreeTraversal(R),h.injection.injectGlobalResponderHandler(y),o.injection.injectEventPluginsByName({ResponderEventPlugin:h,ReactNativeBridgeEventPlugin:u}),f.injection.injectReconcileTransaction(v.ReactReconcileTransaction),f.injection.injectBatchingStrategy(l),j.injection.injectEnvironment(v);var n=function(n){var t=e(130);return new T(s.createElement(t,{collapsable:!0,style:{position:"absolute"}}),n)};p.injection.injectEmptyComponentFactory(n),m.injection.injectTextComponentClass(C),m.injection.injectGenericComponentClass(function(n){var e="";"string"==typeof n&&/^[a-z]/.test(n)&&(e+=" Each component name should start with an uppercase letter."),P(!1,"Expected a component class, got %s.%s",n,e)})}e(225);var o=e(145),a=e(147),r=e(253),s=e(97),j=e(163),l=e(254),p=e(170),u=e(255),m=e(171),v=e(258),g=e(143),E=e(144),d=e(262),y=e(263),C=e(264),R=e(265),T=e(266),f=e(153),h=e(267),P=e(44);t.exports={inject:c}},224);
__d(function(e,r,t,n){"use strict";function o(e,r,t,n){var o=Object.getOwnPropertyDescriptor(e,r);if(o){var i="original"+r[0].toUpperCase()+r.substr(1);Object.defineProperty(e,i,babelHelpers.extends({},o,{value:e[r]}))}var u=o||{},c=u.enumerable,l=u.writable,s=u.configurable;if(o&&!s)return void console.error("Failed to set polyfill. "+r+" is not configurable.");!0===n?Object.defineProperty(e,r,{configurable:!0,enumerable:!1!==c,writable:!1!==l,value:t()}):a(e,r,{get:t,enumerable:!1!==c,writable:!1!==l})}void 0===e.GLOBAL&&(e.GLOBAL=e),void 0===e.window&&(e.window=e);var a=r(93);e.process=e.process||{},e.process.env=e.process.env||{},e.process.env.NODE_ENV||(e.process.env.NODE_ENV="production"),r(81).setEnabled(e.__RCTProfileIsProfiling||!1);var i=r(226);if(i.installConsoleErrorReporter(),r(227),!e.__fbDisableExceptionsManager){var u=function(e,r){try{i.handleException(e,r)}catch(r){throw console.log("Failed to print error: ",r.message),e}};r(79).setGlobalHandler(u)}var c=function(t){o(e,t,function(){return r(85)[t]})};c("setTimeout"),c("setInterval"),c("setImmediate"),c("clearTimeout"),c("clearInterval"),c("clearImmediate"),c("requestAnimationFrame"),c("cancelAnimationFrame"),c("requestIdleCallback"),c("cancelIdleCallback"),e.alert||(e.alert=function(e){r(228).alert("Alert",""+e)}),o(e,"Promise",function(){return r(230)}),o(e,"regeneratorRuntime",function(){return delete e.regeneratorRuntime,r(235),e.regeneratorRuntime}),o(e,"XMLHttpRequest",function(){return r(236)}),o(e,"FormData",function(){return r(242)}),o(e,"fetch",function(){return r(246).fetch}),o(e,"Headers",function(){return r(246).Headers}),o(e,"Request",function(){return r(246).Request}),o(e,"Response",function(){return r(246).Response}),o(e,"WebSocket",function(){return r(248)});var l=e.navigator;void 0===l&&(e.navigator=l={}),o(l,"product",function(){return"ReactNative"},!0),o(l,"geolocation",function(){return r(250)}),o(e,"Map",function(){return r(205)},!0),o(e,"Set",function(){return r(204)},!0),r(101),r(251),r(252)},225);
__d(function(r,o,e,n){"use strict";function s(r,e){var n=o(76),s=n.ExceptionsManager;if(s){var i=o(86),c=i(r),l=++a;e?s.reportFatalException(r.message,c,l):s.reportSoftException(r.message,c,l)}}function i(r,o){r.message||(r=new Error(r)),console._errorOriginal?console._errorOriginal(r.message):console.error(r.message),s(r,o)}function c(){if(console._errorOriginal.apply(console,arguments),console.reportErrorsAsExceptions)if(arguments[0]&&arguments[0].stack)s(arguments[0],!1);else{var r=o(90),e=Array.prototype.map.call(arguments,r).join(", ");if('"Warning: '===e.slice(0,10))return;var n=new Error("console.error: "+e);n.framesToPop=1,s(n,!1)}}function l(){console._errorOriginal||(console._errorOriginal=console.error.bind(console),console.error=c,void 0===console.reportErrorsAsExceptions&&(console.reportErrorsAsExceptions=!0))}var a=0;e.exports={handleException:i,installConsoleErrorReporter:l}},226);
__d(function(e,o,r,l){"use strict";var n=o(77),a=o(44),t={log:"log",info:"info",warn:"warn",error:"error",fatal:"error"},s=function(){function o(){babelHelpers.classCallCheck(this,o)}return babelHelpers.createClass(o,null,[{key:"logIfNoNativeHook",value:function(){var o=Array.prototype.slice.call(arguments),r=o.shift(),l=t[r];return a(l,'Level "'+r+'" not one of '+Object.keys(t)),void 0===e.nativeLoggingHook&&console[l].apply(console,o),!0}}]),o}();n.registerCallableModule("RCTLog",s),r.exports=s},227);
__d(function(e,t,l,n){"use strict";var s=t(229),a=(t(75),t(76).DialogManagerAndroid),r=function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"alert",value:function(e,t,l,n,a){if(void 0!==a)return console.warn('Alert.alert() with a 5th "type" parameter is deprecated and will be removed. Use AlertIOS.prompt() instead.'),void s.alert(e,t,l,a);s.alert(e,t,l)}}]),e}();!function(){function e(){babelHelpers.classCallCheck(this,e)}babelHelpers.createClass(e,null,[{key:"alert",value:function(e,t,l,n){var s={title:e||"",message:t||""};n&&(s=babelHelpers.extends({},s,{cancelable:n.cancelable}));var r=l?l.slice(0,3):[{text:"OK"}],o=r.pop(),i=r.pop(),b=r.pop();b&&(s=babelHelpers.extends({},s,{buttonNeutral:b.text||""})),i&&(s=babelHelpers.extends({},s,{buttonNegative:i.text||""})),o&&(s=babelHelpers.extends({},s,{buttonPositive:o.text||""})),a.showAlert(s,function(e){return console.warn(e)},function(e,t){e===a.buttonClicked&&(t===a.buttonNeutral?b.onPress&&b.onPress():t===a.buttonNegative?i.onPress&&i.onPress():t===a.buttonPositive&&o.onPress&&o.onPress())})}}])}();l.exports=r},228);
__d(function(t,e,a,r){"use strict";var n=e(76).AlertManager,l=function(){function t(){babelHelpers.classCallCheck(this,t)}return babelHelpers.createClass(t,null,[{key:"alert",value:function(t,e,a,r){if(void 0!==r)return console.warn('AlertIOS.alert() with a 4th "type" parameter is deprecated and will be removed. Use AlertIOS.prompt() instead.'),void this.prompt(t,e,a,r);this.prompt(t,e,a,"default")}},{key:"prompt",value:function(t,e,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"plain-text",l=arguments[4],i=arguments[5];if("function"==typeof r){console.warn('You passed a callback function as the "type" argument to AlertIOS.prompt(). React Native is assuming you want to use the deprecated AlertIOS.prompt(title, defaultValue, buttons, callback) signature. The current signature is AlertIOS.prompt(title, message, callbackOrButtons, type, defaultValue, keyboardType) and the old syntax will be removed in a future version.');var o=r,l=e;return void n.alertWithArgs({title:t||void 0,type:"plain-text",defaultValue:l},function(t,e){o(e)})}var s,u,c=[],p=[];"function"==typeof a?c=[a]:a instanceof Array&&a.forEach(function(t,e){if(c[e]=t.onPress,"cancel"===t.style?s=String(e):"destructive"===t.style&&(u=String(e)),t.text||e<(a||[]).length-1){var r={};r[e]=t.text||"",p.push(r)}}),n.alertWithArgs({title:t||void 0,message:e||void 0,buttons:p,type:r||void 0,defaultValue:l,cancelButtonKey:s,destructiveButtonKey:u,keyboardType:i},function(t,e){var a=c[t];a&&a(e)})}}]),t}();a.exports=l},229);
__d(function(t,r,s,c){"use strict";var e=r(231);s.exports=e},230);
__d(function(t,n,r,e){"use strict";var i=n(232);n(234),i.prototype.finally=function(t){return this.then(t,t)},r.exports=i},231);
__d(function(n,t,e,r){"use strict";function o(n){var t=new f(f._61);return t._65=1,t._55=n,t}var f=t(233);e.exports=f;var i=o(!0),u=o(!1),c=o(null),a=o(void 0),l=o(0),h=o("");f.resolve=function(n){if(n instanceof f)return n;if(null===n)return c;if(void 0===n)return a;if(!0===n)return i;if(!1===n)return u;if(0===n)return l;if(""===n)return h;if("object"==typeof n||"function"==typeof n)try{var t=n.then;if("function"==typeof t)return new f(t.bind(n))}catch(n){return new f(function(t,e){e(n)})}return o(n)},f.all=function(n){var t=Array.prototype.slice.call(n);return new f(function(n,e){function r(i,u){if(u&&("object"==typeof u||"function"==typeof u)){if(u instanceof f&&u.then===f.prototype.then){for(;3===u._65;)u=u._55;return 1===u._65?r(i,u._55):(2===u._65&&e(u._55),void u.then(function(n){r(i,n)},e))}var c=u.then;if("function"==typeof c){return void new f(c.bind(u)).then(function(n){r(i,n)},e)}}t[i]=u,0==--o&&n(t)}if(0===t.length)return n([]);for(var o=t.length,i=0;i<t.length;i++)r(i,t[i])})},f.reject=function(n){return new f(function(t,e){e(n)})},f.race=function(n){return new f(function(t,e){n.forEach(function(n){f.resolve(n).then(t,e)})})},f.prototype.catch=function(n){return this.then(null,n)}},232);
__d(function(n,t,o,i){"use strict";function r(){}function e(n){try{return n.then}catch(n){return y=n,m}}function u(n,t){try{return n(t)}catch(n){return y=n,m}}function f(n,t,o){try{n(t,o)}catch(n){return y=n,m}}function c(n){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof n)throw new TypeError("Promise constructor's argument is not a function");this._40=0,this._65=0,this._55=null,this._72=null,n!==r&&d(n,this)}function _(n,t,o){return new n.constructor(function(i,e){var u=new c(r);u.then(i,e),s(n,new v(t,o,u))})}function s(n,t){for(;3===n._65;)n=n._55;if(c._37&&c._37(n),0===n._65)return 0===n._40?(n._40=1,void(n._72=t)):1===n._40?(n._40=2,void(n._72=[n._72,t])):void n._72.push(t);l(n,t)}function l(n,t){setImmediate(function(){var o=1===n._65?t.onFulfilled:t.onRejected;if(null===o)return void(1===n._65?h(t.promise,n._55):p(t.promise,n._55));var i=u(o,n._55);i===m?p(t.promise,y):h(t.promise,i)})}function h(n,t){if(t===n)return p(n,new TypeError("A promise cannot be resolved with itself."));if(t&&("object"==typeof t||"function"==typeof t)){var o=e(t);if(o===m)return p(n,y);if(o===n.then&&t instanceof c)return n._65=3,n._55=t,void a(n);if("function"==typeof o)return void d(o.bind(t),n)}n._65=1,n._55=t,a(n)}function p(n,t){n._65=2,n._55=t,c._87&&c._87(n,t),a(n)}function a(n){if(1===n._40&&(s(n,n._72),n._72=null),2===n._40){for(var t=0;t<n._72.length;t++)s(n,n._72[t]);n._72=null}}function v(n,t,o){this.onFulfilled="function"==typeof n?n:null,this.onRejected="function"==typeof t?t:null,this.promise=o}function d(n,t){var o=!1,i=f(n,function(n){o||(o=!0,h(t,n))},function(n){o||(o=!0,p(t,n))});o||i!==m||(o=!0,p(t,y))}var y=null,m={};o.exports=c,c._37=null,c._87=null,c._61=r,c.prototype.then=function(n,t){if(this.constructor!==c)return _(this,n,t);var o=new c(r);return s(this,new v(n,t,o)),o}},233);
__d(function(t,n,o,e){"use strict";var i=n(233);o.exports=i,i.prototype.done=function(t,n){(arguments.length?this.then.apply(this,arguments):this).then(null,function(t){setTimeout(function(){throw t},0)})}},234);
__d(function(t,r,e,n){!function(t){"use strict";function r(t,r,e,n){var i=r&&r.prototype instanceof o?r:o,a=Object.create(i.prototype),c=new p(n||[]);return a._invoke=s(t,e,c),a}function n(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}function o(){}function i(){}function a(){}function c(t){["next","throw","return"].forEach(function(r){t[r]=function(t){return this._invoke(r,t)}})}function u(t){this.arg=t}function f(t){function r(e,o,i,a){var c=n(t[e],t,o);if("throw"!==c.type){var f=c.arg,s=f.value;return s instanceof u?Promise.resolve(s.arg).then(function(t){r("next",t,i,a)},function(t){r("throw",t,i,a)}):Promise.resolve(s).then(function(t){f.value=t,i(f)},a)}a(c.arg)}function e(t,e){function n(){return new Promise(function(n,o){r(t,e,n,o)})}return o=o?o.then(n,n):n()}"object"==typeof process&&process.domain&&(r=process.domain.bind(r));var o;this._invoke=e}function s(t,r,e){var o=b;return function(i,a){if(o===_)throw new Error("Generator is already running");if(o===k){if("throw"===i)throw a;return v()}for(;;){var c=e.delegate;if(c){if("return"===i||"throw"===i&&c.iterator[i]===g){e.delegate=null;var u=c.iterator.return;if(u){var f=n(u,c.iterator,a);if("throw"===f.type){i="throw",a=f.arg;continue}}if("return"===i)continue}var f=n(c.iterator[i],c.iterator,a);if("throw"===f.type){e.delegate=null,i="throw",a=f.arg;continue}i="next",a=g;var s=f.arg;if(!s.done)return o=j,s;e[c.resultName]=s.value,e.next=c.nextLoc,e.delegate=null}if("next"===i)e.sent=e._sent=a;else if("throw"===i){if(o===b)throw o=k,a;e.dispatchException(a)&&(i="next",a=g)}else"return"===i&&e.abrupt("return",a);o=_;var f=n(t,r,e);if("normal"===f.type){o=e.done?k:j;var s={value:f.arg,done:e.done};if(f.arg!==G)return s;e.delegate&&"next"===i&&(a=g)}else"throw"===f.type&&(o=k,i="throw",a=f.arg)}}}function l(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function h(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function y(t){if(t){var r=t[m];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,n=function r(){for(;++e<t.length;)if(d.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=g,r.done=!0,r};return n.next=n}}return{next:v}}function v(){return{value:g,done:!0}}var g,d=Object.prototype.hasOwnProperty,w="function"==typeof Symbol?Symbol:{},m=w.iterator||"@@iterator",L=w.toStringTag||"@@toStringTag",x="object"==typeof e,E=t.regeneratorRuntime;if(E)return void(x&&(e.exports=E));E=t.regeneratorRuntime=x?e.exports:{},E.wrap=r;var b="suspendedStart",j="suspendedYield",_="executing",k="completed",G={},N=a.prototype=o.prototype;i.prototype=N.constructor=a,a.constructor=i,a[L]=i.displayName="GeneratorFunction",E.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===i||"GeneratorFunction"===(r.displayName||r.name))},E.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,L in t||(t[L]="GeneratorFunction")),t.prototype=Object.create(N),t},E.awrap=function(t){return new u(t)},c(f.prototype),E.async=function(t,e,n,o){var i=new f(r(t,e,n,o));return E.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},c(N),N[m]=function(){return this},N[L]="Generator",N.toString=function(){return"[object Generator]"},E.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},E.values=y,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.tryEntries.forEach(h),!t)for(var r in this)"t"===r.charAt(0)&&d.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=g)},stop:function(){this.done=!0;var t=this.tryEntries[0],r=t.completion;if("throw"===r.type)throw r.arg;return this.rval},dispatchException:function(t){function r(r,n){return i.type="throw",i.arg=t,e.next=r,!!n}if(this.done)throw t;for(var e=this,n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=d.call(o,"catchLoc"),c=d.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&d.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=r&&r<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=r,o?this.next=o.finallyLoc:this.complete(i),G},complete:function(t,r){if("throw"===t.type)throw t.arg;"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=t.arg,this.next="end"):"normal"===t.type&&r&&(this.next=r)},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),h(e),G}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;h(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:y(t),resultName:r,nextLoc:e},G}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)},235);
__d(function(e,t,s,r){"use strict";var i=t(237),n=t(241),o=t(245),a=t(44),h=t(40),p=0,d=1,u=2,l=3,_=4,c={arraybuffer:"function"==typeof e.ArrayBuffer,blob:"function"==typeof e.Blob,document:!1,json:!0,text:!0,"":!0},y=["abort","error","load","loadstart","progress","timeout","loadend"],b=y.concat("readystatechange"),f=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),t}(i.apply(void 0,y)),v=function(t){function s(){babelHelpers.classCallCheck(this,s);var e=babelHelpers.possibleConstructorReturn(this,(s.__proto__||Object.getPrototypeOf(s)).call(this));return e.UNSENT=p,e.OPENED=d,e.HEADERS_RECEIVED=u,e.LOADING=l,e.DONE=_,e.readyState=p,e.status=0,e.timeout=0,e.upload=new f,e._aborted=!1,e._hasError=!1,e._method=null,e._response="",e._url=null,e._timedOut=!1,e._trackingName="unknown",e._incrementalEvents=!1,e._reset(),e}return babelHelpers.inherits(s,t),babelHelpers.createClass(s,null,[{key:"setInterceptor",value:function(e){s._interceptor=e}}]),babelHelpers.createClass(s,[{key:"_reset",value:function(){this.readyState=this.UNSENT,this.responseHeaders=void 0,this.status=0,delete this.responseURL,this._requestId=null,this._cachedResponse=void 0,this._hasError=!1,this._headers={},this._response="",this._responseType="",this._sent=!1,this._lowerCaseResponseHeaders={},this._clearSubscriptions(),this._timedOut=!1}},{key:"__didCreateRequest",value:function(e){this._requestId=e,s._interceptor&&s._interceptor.requestSent(e,this._url||"",this._method||"GET",this._headers)}},{key:"__didUploadProgress",value:function(e,t,s){e===this._requestId&&this.upload.dispatchEvent({type:"progress",lengthComputable:!0,loaded:t,total:s})}},{key:"__didReceiveResponse",value:function(e,t,r,i){e===this._requestId&&(this.status=t,this.setResponseHeaders(r),this.setReadyState(this.HEADERS_RECEIVED),i||""===i?this.responseURL=i:delete this.responseURL,s._interceptor&&s._interceptor.responseReceived(e,i||this._url||"",t,r||{}))}},{key:"__didReceiveData",value:function(e,t){e===this._requestId&&(this._response=t,this._cachedResponse=void 0,this.setReadyState(this.LOADING),s._interceptor&&s._interceptor.dataReceived(e,t))}},{key:"__didReceiveIncrementalData",value:function(e,t,r,i){e===this._requestId&&(this._response?this._response+=t:this._response=t,s._interceptor&&s._interceptor.dataReceived(e,t),this.setReadyState(this.LOADING),this.__didReceiveDataProgress(e,r,i))}},{key:"__didReceiveDataProgress",value:function(e,t,s){e===this._requestId&&this.dispatchEvent({type:"progress",lengthComputable:s>=0,loaded:t,total:s})}},{key:"__didCompleteResponse",value:function(e,t,r){e===this._requestId&&(t&&(""!==this._responseType&&"text"!==this._responseType||(this._response=t),this._hasError=!0,r&&(this._timedOut=!0)),this._clearSubscriptions(),this._requestId=null,this.setReadyState(this.DONE),t?s._interceptor&&s._interceptor.loadingFailed(e,t):s._interceptor&&s._interceptor.loadingFinished(e,this._response.length))}},{key:"_clearSubscriptions",value:function(){(this._subscriptions||[]).forEach(function(e){e.remove()}),this._subscriptions=[]}},{key:"getAllResponseHeaders",value:function(){if(!this.responseHeaders)return null;var e=this.responseHeaders||{};return Object.keys(e).map(function(t){return t+": "+e[t]}).join("\r\n")}},{key:"getResponseHeader",value:function(e){var t=this._lowerCaseResponseHeaders[e.toLowerCase()];return void 0!==t?t:null}},{key:"setRequestHeader",value:function(e,t){if(this.readyState!==this.OPENED)throw new Error("Request has not been opened");this._headers[e.toLowerCase()]=String(t)}},{key:"setTrackingName",value:function(e){return this._trackingName=e,this}},{key:"open",value:function(e,t,s){if(this.readyState!==this.UNSENT)throw new Error("Cannot open, already sending");if(void 0!==s&&!s)throw new Error("Synchronous http requests are not supported");if(!t)throw new Error("Cannot load an empty url");this._method=e.toUpperCase(),this._url=t,this._aborted=!1,this.setReadyState(this.OPENED)}},{key:"send",value:function(e){var t=this;if(this.readyState!==this.OPENED)throw new Error("Request has not been opened");if(this._sent)throw new Error("Request has already been sent");this._sent=!0;var s=this._incrementalEvents||!!this.onreadystatechange||!!this.onprogress;this._subscriptions.push(n.addListener("didSendNetworkData",function(e){return t.__didUploadProgress.apply(t,babelHelpers.toConsumableArray(e))})),this._subscriptions.push(n.addListener("didReceiveNetworkResponse",function(e){return t.__didReceiveResponse.apply(t,babelHelpers.toConsumableArray(e))})),this._subscriptions.push(n.addListener("didReceiveNetworkData",function(e){return t.__didReceiveData.apply(t,babelHelpers.toConsumableArray(e))})),this._subscriptions.push(n.addListener("didReceiveNetworkIncrementalData",function(e){return t.__didReceiveIncrementalData.apply(t,babelHelpers.toConsumableArray(e))})),this._subscriptions.push(n.addListener("didReceiveNetworkDataProgress",function(e){return t.__didReceiveDataProgress.apply(t,babelHelpers.toConsumableArray(e))})),this._subscriptions.push(n.addListener("didCompleteNetworkResponse",function(e){return t.__didCompleteResponse.apply(t,babelHelpers.toConsumableArray(e))}));var r="text";"arraybuffer"!==this._responseType&&"blob"!==this._responseType||(r="base64"),a(this._method,"Request method needs to be defined."),a(this._url,"Request URL needs to be defined."),n.sendRequest(this._method,this._trackingName,this._url,this._headers,e,r,s,this.timeout,this.__didCreateRequest.bind(this))}},{key:"abort",value:function(){this._aborted=!0,this._requestId&&n.abortRequest(this._requestId),this.readyState===this.UNSENT||this.readyState===this.OPENED&&!this._sent||this.readyState===this.DONE||(this._reset(),this.setReadyState(this.DONE)),this._reset()}},{key:"setResponseHeaders",value:function(e){this.responseHeaders=e||null;var t=e||{};this._lowerCaseResponseHeaders=Object.keys(t).reduce(function(e,s){return e[s.toLowerCase()]=t[s],e},{})}},{key:"setReadyState",value:function(e){this.readyState=e,this.dispatchEvent({type:"readystatechange"}),e===this.DONE&&(this._aborted?this.dispatchEvent({type:"abort"}):this._hasError?this._timedOut?this.dispatchEvent({type:"timeout"}):this.dispatchEvent({type:"error"}):this.dispatchEvent({type:"load"}),this.dispatchEvent({type:"loadend"}))}},{key:"addEventListener",value:function(e,t){"readystatechange"!==e&&"progress"!==e||(this._incrementalEvents=!0),babelHelpers.get(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"addEventListener",this).call(this,e,t)}},{key:"responseType",get:function(){return this._responseType},set:function(e){if(this._sent)throw new Error("Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be set after the request has been sent.");if(!c.hasOwnProperty(e))return void h(!1,"The provided value '"+e+"' is not a valid 'responseType'.");a(c[e]||"document"===e,"The provided value '"+e+"' is unsupported in this environment."),this._responseType=e}},{key:"responseText",get:function(){if(""!==this._responseType&&"text"!==this._responseType)throw new Error("The 'responseText' property is only available if 'responseType' is set to '' or 'text', but it is '"+this._responseType+"'.");return this.readyState<l?"":this._response}},{key:"response",get:function(){var t=this.responseType;if(""===t||"text"===t)return this.readyState<l||this._hasError?"":this._response;if(this.readyState!==_)return null;if(void 0!==this._cachedResponse)return this._cachedResponse;switch(t){case"document":this._cachedResponse=null;break;case"arraybuffer":this._cachedResponse=o.toByteArray(this._response).buffer;break;case"blob":this._cachedResponse=new e.Blob([o.toByteArray(this._response).buffer],{type:this.getResponseHeader("content-type")||""});break;case"json":try{this._cachedResponse=JSON.parse(this._response)}catch(e){this._cachedResponse=null}break;default:this._cachedResponse=null}return this._cachedResponse}}]),s}(i.apply(void 0,babelHelpers.toConsumableArray(b)));v.UNSENT=p,v.OPENED=d,v.HEADERS_RECEIVED=u,v.LOADING=l,v.DONE=_,v._interceptor=null,s.exports=v},236);
__d(function(e,t,n,r){"use strict";var i=t(238),l=t(239),o=t(240),u=i.LISTENERS,a=i.CAPTURE,f=i.BUBBLE,c=i.ATTRIBUTE,s=i.newNode,v=l.defineCustomEventTarget,d=o.createEventWrapper,h=o.STOP_IMMEDIATE_PROPAGATION_FLAG,E="undefined"!=typeof window&&void 0!==window.EventTarget,p=n.exports=function e(){if(!(this instanceof e)){if(1===arguments.length&&Array.isArray(arguments[0]))return v(e,arguments[0]);if(arguments.length>0){for(var t=Array(arguments.length),n=0;n<arguments.length;++n)t[n]=arguments[n];return v(e,t)}throw new TypeError("Cannot call a class as a function")}Object.defineProperty(this,u,{value:Object.create(null)})};p.prototype=Object.create((E?window.EventTarget:Object).prototype,{constructor:{value:p,writable:!0,configurable:!0},addEventListener:{value:function(e,t,n){if(null==t)return!1;if("function"!=typeof t&&"object"!=typeof t)throw new TypeError('"listener" is not an object.');var r=n?a:f,i=this[u][e];if(null==i)return this[u][e]=s(t,r),!0;for(var l=null;null!=i;){if(i.listener===t&&i.kind===r)return!1;l=i,i=i.next}return l.next=s(t,r),!0},configurable:!0,writable:!0},removeEventListener:{value:function(e,t,n){if(null==t)return!1;for(var r=n?a:f,i=null,l=this[u][e];null!=l;){if(l.listener===t&&l.kind===r)return null==i?this[u][e]=l.next:i.next=l.next,!0;i=l,l=l.next}return!1},configurable:!0,writable:!0},dispatchEvent:{value:function(e){var t=this[u][e.type];if(null==t)return!0;for(var n=d(e,this);null!=t&&("function"==typeof t.listener?t.listener.call(this,n):t.kind!==c&&"function"==typeof t.listener.handleEvent&&t.listener.handleEvent(n),!n[h]);)t=t.next;return!n.defaultPrevented},configurable:!0,writable:!0}})},237);
__d(function(e,n,t,i){"use strict";var r=i.createUniqueKey="undefined"!=typeof Symbol?Symbol:function(e){return"[["+e+"_"+Math.random().toFixed(8).slice(2)+"]]"};i.LISTENERS=r("listeners"),i.CAPTURE=1,i.BUBBLE=2,i.ATTRIBUTE=3,i.newNode=function(e,n){return{listener:e,kind:n,next:null}}},238);
__d(function(n,t,e,u){"use strict";function r(n,t){for(var e=n[i][t];null!=e;){if(e.kind===c)return e.listener;e=e.next}return null}function o(n,t,e){"function"!=typeof e&&"object"!=typeof e&&(e=null);for(var u=null,r=n[i][t];null!=r;)r.kind===c?null==u?n[i][t]=r.next:u.next=r.next:u=r,r=r.next;null!=e&&(null==u?n[i][t]=f(e,c):u.next=f(e,c))}var l=t(238),i=l.LISTENERS,c=l.ATTRIBUTE,f=l.newNode;u.defineCustomEventTarget=function(n,t){function e(){n.call(this)}var u={constructor:{value:e,configurable:!0,writable:!0}};return t.forEach(function(n){u["on"+n]={get:function(){return r(this,n)},set:function(t){o(this,n,t)},configurable:!0,enumerable:!0}}),e.prototype=Object.create(n.prototype,u),e}},239);
__d(function(e,a,t,n){"use strict";var r=a(238).createUniqueKey,l=r("stop_immediate_propagation_flag"),u=r("canceled_flag"),i=r("original_event"),o=Object.freeze({stopPropagation:Object.freeze({value:function(){var e=this[i];"function"==typeof e.stopPropagation&&e.stopPropagation()},writable:!0,configurable:!0}),stopImmediatePropagation:Object.freeze({value:function(){this[l]=!0;var e=this[i];"function"==typeof e.stopImmediatePropagation&&e.stopImmediatePropagation()},writable:!0,configurable:!0}),preventDefault:Object.freeze({value:function(){!0===this.cancelable&&(this[u]=!0);var e=this[i];"function"==typeof e.preventDefault&&e.preventDefault()},writable:!0,configurable:!0}),defaultPrevented:Object.freeze({get:function(){return this[u]},enumerable:!0,configurable:!0})});n.STOP_IMMEDIATE_PROPAGATION_FLAG=l,n.createEventWrapper=function(e,a){var t="number"==typeof e.timeStamp?e.timeStamp:Date.now(),n={type:{value:e.type,enumerable:!0},target:{value:a,enumerable:!0},currentTarget:{value:a,enumerable:!0},eventPhase:{value:2,enumerable:!0},bubbles:{value:Boolean(e.bubbles),enumerable:!0},cancelable:{value:Boolean(e.cancelable),enumerable:!0},timeStamp:{value:t,enumerable:!0},isTrusted:{value:!1,enumerable:!0}};return n[l]={value:!1,writable:!0},n[u]={value:!1,writable:!0},n[i]={value:e},void 0!==e.detail&&(n.detail={value:e.detail,enumerable:!0}),Object.create(Object.create(e,o),n)}},240);
__d(function(e,t,s,r){"use strict";var a=(t(242),t(107)),n=t(76).Networking,l=t(243),o=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"sendRequest",value:function(e,t,s,r,a,o,u,i,c){var b=l(a);n.sendRequest({method:e,url:s,data:babelHelpers.extends({},b,{trackingName:t}),headers:r,responseType:o,incrementalUpdates:u,timeout:i},c)}},{key:"abortRequest",value:function(e){n.abortRequest(e)}},{key:"clearCookies",value:function(e){n.clearCookies(e)}}]),t}(a);s.exports=new o},241);
__d(function(e,t,n,s){"use strict";var a=function(){function e(){babelHelpers.classCallCheck(this,e),this._parts=[]}return babelHelpers.createClass(e,[{key:"append",value:function(e,t){this._parts.push([e,t])}},{key:"getParts",value:function(){return this._parts.map(function(e){var t=babelHelpers.slicedToArray(e,2),n=t[0],s=t[1],a='form-data; name="'+n+'"',r={"content-disposition":a};return"object"==typeof s?("string"==typeof s.name&&(r["content-disposition"]+='; filename="'+s.name+'"'),"string"==typeof s.type&&(r["content-type"]=s.type),babelHelpers.extends({},s,{headers:r,fieldName:n})):{string:String(s),headers:r,fieldName:n}})}}]),e}();n.exports=a},242);
__d(function(r,t,e,n){"use strict";function f(r){return"string"==typeof r?{string:r}:r instanceof a?{formData:r.getParts()}:r instanceof ArrayBuffer||ArrayBuffer.isView(r)?{base64:s(r)}:r}var s=t(244),a=t(242);e.exports=f},243);
__d(function(r,e,t,f){"use strict";function n(r){if(r instanceof ArrayBuffer&&(r=new Uint8Array(r)),r instanceof Uint8Array)return a.fromByteArray(r);if(!ArrayBuffer.isView(r))throw new Error("data must be ArrayBuffer or typed array");var e=r,t=e.buffer,f=e.byteOffset,n=e.byteLength;return a.fromByteArray(new Uint8Array(t,f,n))}var a=e(245);t.exports=n},244);
__d(function(r,t,n,e){"use strict";function o(r){var t=r.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===r[t-2]?2:"="===r[t-1]?1:0}function a(r){return 3*r.length/4-o(r)}function h(r){var t,n,e,a,h,c=r.length;a=o(r),h=new f(3*c/4-a),n=a>0?c-4:c;var u=0;for(t=0;t<n;t+=4)e=d[r.charCodeAt(t)]<<18|d[r.charCodeAt(t+1)]<<12|d[r.charCodeAt(t+2)]<<6|d[r.charCodeAt(t+3)],h[u++]=e>>16&255,h[u++]=e>>8&255,h[u++]=255&e;return 2===a?(e=d[r.charCodeAt(t)]<<2|d[r.charCodeAt(t+1)]>>4,h[u++]=255&e):1===a&&(e=d[r.charCodeAt(t)]<<10|d[r.charCodeAt(t+1)]<<4|d[r.charCodeAt(t+2)]>>2,h[u++]=e>>8&255,h[u++]=255&e),h}function c(r){return A[r>>18&63]+A[r>>12&63]+A[r>>6&63]+A[63&r]}function u(r,t,n){for(var e,o=[],a=t;a<n;a+=3)e=(r[a]<<16)+(r[a+1]<<8)+r[a+2],o.push(c(e));return o.join("")}function i(r){for(var t,n=r.length,e=n%3,o="",a=[],h=0,c=n-e;h<c;h+=16383)a.push(u(r,h,h+16383>c?c:h+16383));return 1===e?(t=r[n-1],o+=A[t>>2],o+=A[t<<4&63],o+="=="):2===e&&(t=(r[n-2]<<8)+r[n-1],o+=A[t>>10],o+=A[t>>4&63],o+=A[t<<2&63],o+="="),a.push(o),a.join("")}e.byteLength=a,e.toByteArray=h,e.fromByteArray=i;for(var A=[],d=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",y=0,g=C.length;y<g;++y)A[y]=C[y],d[C.charCodeAt(y)]=y;d["-".charCodeAt(0)]=62,d["_".charCodeAt(0)]=63},245);
__d(function(e,s,t,c){"use strict";s(247),t.exports={fetch:fetch,Headers:Headers,Request:Request,Response:Response}},246);
__d(function(t,e,r,o){!function(t){"use strict";function e(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!=typeof t&&(t=String(t)),t}function o(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return m.iterable&&(e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]=function(){return e}),e}function n(t){this.map={},t instanceof n?t.forEach(function(t,e){this.append(e,t)},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function i(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function s(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function a(t){var e=new FileReader,r=s(e);return e.readAsArrayBuffer(t),r}function u(t){var e=new FileReader,r=s(e);return e.readAsText(t),r}function f(t){for(var e=new Uint8Array(t),r=new Array(e.length),o=0;o<e.length;o++)r[o]=String.fromCharCode(e[o]);return r.join("")}function h(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if("string"==typeof t)this._bodyText=t;else if(m.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(m.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(m.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(m.arrayBuffer&&m.blob&&v(t))this._bodyArrayBuffer=h(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!m.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t)&&!_(t))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=h(t)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):m.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},m.blob&&(this.blob=function(){var t=i(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?i(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(a)}),this.text=function(){var t=i(this);if(t)return t;if(this._bodyBlob)return u(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(f(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},m.formData&&(this.formData=function(){return this.text().then(l)}),this.json=function(){return this.text().then(JSON.parse)},this}function d(t){var e=t.toUpperCase();return B.indexOf(e)>-1?e:t}function c(t,e){e=e||{};var r=e.body;if("string"==typeof t)this.url=t;else{if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new n(t.headers)),this.method=t.method,this.mode=t.mode,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new n(e.headers)),this.method=d(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function l(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),o=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(n))}}),e}function p(t){var e=new n;return t.split("\r\n").forEach(function(t){var r=t.split(":"),o=r.shift().trim();if(o){var n=r.join(":").trim();e.append(o,n)}}),e}function b(t,e){e||(e={}),this.type="default",this.status="status"in e?e.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new n(e.headers),this.url=e.url||"",this._initBody(t)}if(!t.fetch){var m={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(m.arrayBuffer)var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],v=function(t){return t&&DataView.prototype.isPrototypeOf(t)},_=ArrayBuffer.isView||function(t){return t&&w.indexOf(Object.prototype.toString.call(t))>-1};n.prototype.append=function(t,o){t=e(t),o=r(o);var n=this.map[t];n||(n=[],this.map[t]=n),n.push(o)},n.prototype.delete=function(t){delete this.map[e(t)]},n.prototype.get=function(t){var r=this.map[e(t)];return r?r[0]:null},n.prototype.getAll=function(t){return this.map[e(t)]||[]},n.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},n.prototype.set=function(t,o){this.map[e(t)]=[r(o)]},n.prototype.forEach=function(t,e){Object.getOwnPropertyNames(this.map).forEach(function(r){this.map[r].forEach(function(o){t.call(e,o,r,this)},this)},this)},n.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),o(t)},n.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),o(t)},n.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),o(t)},m.iterable&&(n.prototype["function"==typeof Symbol?Symbol.iterator:"@@iterator"]=n.prototype.entries);var B=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];c.prototype.clone=function(){return new c(this,{body:this._bodyInit})},y.call(c.prototype),y.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new n(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var A=[301,302,303,307,308];b.redirect=function(t,e){if(-1===A.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},t.Headers=n,t.Request=c,t.Response=b,t.fetch=function(t,e){return new Promise(function(r,o){var n=new c(t,e),i=new XMLHttpRequest;i.onload=function(){var t={status:i.status,statusText:i.statusText,headers:p(i.getAllResponseHeaders()||"")};t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL");var e="response"in i?i.response:i.responseText;r(new b(e,t))},i.onerror=function(){o(new TypeError("Network request failed"))},i.ontimeout=function(){o(new TypeError("Network request failed"))},i.open(n.method,n.url,!0),"include"===n.credentials&&(i.withCredentials=!0),"responseType"in i&&m.blob&&(i.responseType="blob"),n.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),i.send(void 0===n._bodyInit?null:n._bodyInit)})},t.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},247);
__d(function(e,t,s,r){"use strict";var i=t(107),n=(t(75),t(76).WebSocketModule),o=t(249),a=t(244),c=t(237),d=t(245),u=0,h=1,l=2,E=3,_=["close","error","message","open"],f=0,p=function(e){function t(e,s,r){babelHelpers.classCallCheck(this,t);var o=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.CONNECTING=u,o.OPEN=h,o.CLOSING=l,o.CLOSED=E,o.readyState=u,"string"==typeof s&&(s=[s]),Array.isArray(s)||(s=null),o._eventEmitter=new i(n),o._socketId=f++,n.connect(e,s,r,o._socketId),o._registerEvents(),o}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"close",value:function(e,t){this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.readyState=this.CLOSING,this._close(e,t))}},{key:"send",value:function(e){if(this.readyState===this.CONNECTING)throw new Error("INVALID_STATE_ERR");if("string"==typeof e)return void n.send(e,this._socketId);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))return void n.sendBinary(a(e),this._socketId);throw new Error("Unsupported data type")}},{key:"ping",value:function(){if(this.readyState===this.CONNECTING)throw new Error("INVALID_STATE_ERR");n.ping(this._socketId)}},{key:"_close",value:function(e,t){n.close(this._socketId)}},{key:"_unregisterEvents",value:function(){this._subscriptions.forEach(function(e){return e.remove()}),this._subscriptions=[]}},{key:"_registerEvents",value:function(){var e=this;this._subscriptions=[this._eventEmitter.addListener("websocketMessage",function(t){t.id===e._socketId&&e.dispatchEvent(new o("message",{data:"binary"===t.type?d.toByteArray(t.data).buffer:t.data}))}),this._eventEmitter.addListener("websocketOpen",function(t){t.id===e._socketId&&(e.readyState=e.OPEN,e.dispatchEvent(new o("open")))}),this._eventEmitter.addListener("websocketClosed",function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new o("close",{code:t.code,reason:t.reason})),e._unregisterEvents(),e.close())}),this._eventEmitter.addListener("websocketFailed",function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new o("error",{message:t.message})),e.dispatchEvent(new o("close",{message:t.message})),e._unregisterEvents(),e.close())})]}}]),t}(c.apply(void 0,_));p.CONNECTING=u,p.OPEN=h,p.CLOSING=l,p.CLOSED=E,s.exports=p},248);
__d(function(e,t,s,i){"use strict";var l=function e(t,s){babelHelpers.classCallCheck(this,e),this.type=t.toString(),babelHelpers.extends(this,s)};s.exports=l},249);
__d(function(e,r,t,o){"use strict";var n=r(107),i=r(76).LocationObserver,s=r(44),a=r(111),v=r(40),c=new n(i),g=[],u=!1,l={getCurrentPosition:function(e,r,t){s("function"==typeof e,"Must provide a valid geo_success callback."),i.getCurrentPosition(t||{},e,r||a)},watchPosition:function(e,r,t){u||(i.startObserving(t||{}),u=!0);var o=g.length;return g.push([c.addListener("geolocationDidChange",e),r?c.addListener("geolocationError",r):null]),o},clearWatch:function(e){var r=g[e];if(r){r[0].remove();var t=r[1];t&&t.remove(),g[e]=void 0;for(var o=!0,n=0;n<g.length;n++)g[n]&&(o=!1);o&&l.stopObserving()}},stopObserving:function(){if(u){i.stopObserving(),u=!1;for(var e=0;e<g.length;e++){var r=g[e];if(r){v("Called stopObserving with existing subscriptions."),r[0].remove();var t=r[1];t&&t.remove()}}g=[]}}};t.exports=l},250);
__d(function(e,t,r,i){"use strict";var a=t(77),l=t(101),s=l;a.registerCallableModule("RCTNativeAppEventEmitter",s),r.exports=s},251);
__d(function(e,n,t,i){"use strict";var a=n(77),r=e.nativePerformanceNow||n(82),o={},s={},c={addTimespan:function(e,n,t){o[e]||(o[e]={description:t,totalTime:n})},startTimespan:function(e,n){o[e]||(o[e]={description:n,startTime:r()})},stopTimespan:function(e){o[e]&&o[e].startTime&&(o[e].endTime||(o[e].endTime=r(),o[e].totalTime=o[e].endTime-o[e].startTime))},clear:function(){o={},s={}},clearExceptTimespans:function(e){o=Object.keys(o).reduce(function(n,t){return-1!==e.indexOf(t)&&(n[t]=o[t]),n},{}),s={}},getTimespans:function(){return o},hasTimespan:function(e){return!!o[e]},logTimespans:function(){for(var e in o)o[e].totalTime&&console.log(e+": "+o[e].totalTime+"ms")},addTimespans:function(e,n){for(var t=0,i=e.length;t<i;t+=2){var a=n[t/2];c.addTimespan(a,e[t+1]-e[t],a)}},setExtra:function(e,n){s[e]||(s[e]=n)},getExtras:function(){return s}};a.registerCallableModule("PerformanceLogger",c),t.exports=c},252);
__d(function(e,t,r,i){"use strict";var n=t(77),s={register:function(e){n.registerCallableModule("RCTEventEmitter",e)}};r.exports=s},253);
__d(function(t,i,e,n){"use strict";function a(){this.reinitializeTransaction()}var s=i(153),r=i(161),c=i(41),o={initialize:c,close:function(){u.isBatchingUpdates=!1}},p={initialize:c,close:s.flushBatchedUpdates.bind(s)},d=[p,o];babelHelpers.extends(a.prototype,r,{getTransactionWrappers:function(){return d}});var l=new a,u={isBatchingUpdates:!1,batchedUpdates:function(t,i,e,n,a,s){var r=u.isBatchingUpdates;return u.isBatchingUpdates=!0,r?t(i,e,n,a,s):l.perform(t,null,i,e,n,a,s)}};e.exports=u},254);
__d(function(e,t,n,r){"use strict";var s=t(256),a=t(257),c=t(94),i=t(40),u=c.customBubblingEventTypes,o=c.customDirectEventTypes,l={};for(var v in u)l[v]=u[v];for(var b in o)i(!u[b],"Event cannot be both direct and bubbling: %s",b),l[b]=o[b];var p={eventTypes:babelHelpers.extends({},u,o),extractEvents:function(e,t,n,r){var c=u[e],i=o[e],l=a.getPooled(c||i,t,n,r);if(c)s.accumulateTwoPhaseDispatches(l);else{if(!i)return null;s.accumulateDirectDispatches(l)}return l}};n.exports=p},255);
__d(function(t,a,e,s){"use strict";function n(t,a,e){var s=a.dispatchConfig.phasedRegistrationNames[e];return l(t,s)}function i(t,a,e){var s=n(t,e,a);s&&(e._dispatchListeners=m(e._dispatchListeners,s),e._dispatchInstances=m(e._dispatchInstances,t))}function c(t){t&&t.dispatchConfig.phasedRegistrationNames&&_.traverseTwoPhase(t._targetInst,i,t)}function r(t){if(t&&t.dispatchConfig.phasedRegistrationNames){var a=t._targetInst,e=a?_.getParentInstance(a):null;_.traverseTwoPhase(e,i,t)}}function o(t,a,e){if(e&&e.dispatchConfig.registrationName){var s=e.dispatchConfig.registrationName,n=l(t,s);n&&(e._dispatchListeners=m(e._dispatchListeners,n),e._dispatchInstances=m(e._dispatchInstances,t))}}function h(t){t&&t.dispatchConfig.registrationName&&o(t._targetInst,null,t)}function p(t){v(t,c)}function u(t){v(t,r)}function f(t,a,e,s){_.traverseEnterLeave(e,s,o,t,a)}function d(t){v(t,h)}var g=a(145),_=a(147),m=a(149),v=a(150),l=(a(40),g.getListener),I={accumulateTwoPhaseDispatches:p,accumulateTwoPhaseDispatchesSkipTarget:u,accumulateDirectDispatches:d,accumulateEnterLeaveDispatches:f};e.exports=I},256);
__d(function(t,e,n,r){"use strict";function a(t,e,n,r){this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n;var a=this.constructor.Interface;for(var s in a)if(a.hasOwnProperty(s)){var u=a[s];u?this[s]=u(n):"target"===s?this.target=r:this[s]=n[s]}var i=null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue;return this.isDefaultPrevented=i?o.thatReturnsTrue:o.thatReturnsFalse,this.isPropagationStopped=o.thatReturnsFalse,this}var s=e(155),o=e(41),u=(e(40),["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),i={type:null,target:null,currentTarget:o.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};babelHelpers.extends(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=o.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=o.thatReturnsTrue)},persist:function(){this.isPersistent=o.thatReturnsTrue},isPersistent:o.thatReturnsFalse,destructor:function(){var t=this.constructor.Interface;for(var e in t)this[e]=null;for(var n=0;n<u.length;n++)this[u[n]]=null}}),a.Interface=i,a.augmentClass=function(t,e){var n=this,r=function(){};r.prototype=n.prototype;var a=new r;babelHelpers.extends(a,t.prototype),t.prototype=a,t.prototype.constructor=t,t.Interface=babelHelpers.extends({},n.Interface,e),t.augmentClass=n.augmentClass,s.addPoolingTo(t,s.fourArgumentPooler)},s.addPoolingTo(a,s.fourArgumentPooler),n.exports=a},257);
__d(function(e,r,a,c){"use strict";var o=r(259),s=r(260),n={processChildrenUpdates:o.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkupByID,clearNode:function(){},ReactReconcileTransaction:s};a.exports=n},258);
__d(function(e,n,t,o){"use strict";var r=n(143),s=n(94),a=function(e,n){if(n.length){for(var t,o,a,i,p,d=r.getNodeFromInstance(e),u=0;u<n.length;u++){var f=n[u];if("MOVE_EXISTING"===f.type)(t||(t=[])).push(f.fromIndex),(o||(o=[])).push(f.toIndex);else if("REMOVE_NODE"===f.type)(p||(p=[])).push(f.fromIndex);else if("INSERT_MARKUP"===f.type){var h=f.content,l=h;(i||(i=[])).push(f.toIndex),(a||(a=[])).push(l)}}s.manageChildren(d,t,o,a,i,p)}},i={dangerouslyProcessChildrenUpdates:a,dangerouslyReplaceNodeWithMarkupByID:function(e,n){var t=e;s.replaceExistingNonRootView(t,n)}};t.exports=i},259);
__d(function(t,e,n,o){"use strict";function i(){this.reinitializeTransaction(),this.reactMountReady=a.getPooled(null)}var a=e(154),r=e(155),c=e(161),u=(e(160),e(261)),s={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},l=[s],d={getTransactionWrappers:function(){return l},getReactMountReady:function(){return this.reactMountReady},getUpdateQueue:function(){return u},checkpoint:function(){return this.reactMountReady.checkpoint()},rollback:function(t){this.reactMountReady.rollback(t)},destructor:function(){a.release(this.reactMountReady),this.reactMountReady=null}};babelHelpers.extends(i.prototype,c,i,d),r.addPoolingTo(i),n.exports=i},260);
__d(function(e,n,t,a){"use strict";function u(e){r.enqueueUpdate(e)}function c(e){var n=typeof e;if("object"!==n)return n;var t=e.constructor&&e.constructor.name||n,a=Object.keys(e);return a.length>0&&a.length<20?t+" (keys: "+a.join(", ")+")":t}function l(e,n){var t=i.get(e);return t||null}var i=(n(49),n(96)),r=(n(160),n(153)),o=n(44),p=(n(40),{isMounted:function(e){var n=i.get(e);return!!n&&!!n._renderedComponent},enqueueCallback:function(e,n,t){p.validateCallback(n,t);var a=l(e);if(!a)return null;a._pendingCallbacks?a._pendingCallbacks.push(n):a._pendingCallbacks=[n],u(a)},enqueueCallbackInternal:function(e,n){e._pendingCallbacks?e._pendingCallbacks.push(n):e._pendingCallbacks=[n],u(e)},enqueueForceUpdate:function(e){var n=l(e,"forceUpdate");n&&(n._pendingForceUpdate=!0,u(n))},enqueueReplaceState:function(e,n){var t=l(e,"replaceState");t&&(t._pendingStateQueue=[n],t._pendingReplaceState=!0,u(t))},enqueueSetState:function(e,n){var t=l(e,"setState");if(t){(t._pendingStateQueue||(t._pendingStateQueue=[])).push(n),u(t)}},enqueueElementInternal:function(e,n,t){e._pendingElement=n,e._context=t,u(e)},validateCallback:function(e,n){o(!e||"function"==typeof e,"%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",n,c(e))}});t.exports=p},261);
__d(function(e,t,n,i){"use strict";var r=["ResponderEventPlugin","ReactNativeBridgeEventPlugin"];n.exports=r},262);
__d(function(e,n,o,r){"use strict";var t=n(94),s={onChange:function(e,n,o){null!==n?t.setJSResponder(n._rootNodeID,o):t.clearJSResponder()}};o.exports=s},263);
__d(function(t,e,n,i){"use strict";var o=e(143),r=e(152),s=e(94),h=e(44),u=function(t){this._currentElement=t,this._stringText=""+t,this._hostParent=null,this._rootNodeID=0};babelHelpers.extends(u.prototype,{mountComponent:function(t,e,n,i){h(i.isInAParentText,'RawText "%s" must be wrapped in an explicit <Text> component.',this._stringText),this._hostParent=e;var u=r.allocateTag();this._rootNodeID=u;var a=n._tag;return s.createView(u,"RCTRawText",a,{text:this._stringText}),o.precacheNode(this,u),u},getHostNode:function(){return this._rootNodeID},receiveComponent:function(t,e,n){if(t!==this._currentElement){this._currentElement=t;var i=""+t;i!==this._stringText&&(this._stringText=i,s.updateView(this._rootNodeID,"RCTRawText",{text:this._stringText}))}},unmountComponent:function(){o.uncacheNode(this),this._currentElement=null,this._stringText=null,this._rootNodeID=0}}),n.exports=u},264);
__d(function(r,t,e,n){"use strict";function o(r,t){for(var e=0,n=r;n;n=n._hostParent)e++;for(var o=0,a=t;a;a=a._hostParent)o++;for(;e-o>0;)r=r._hostParent,e--;for(;o-e>0;)t=t._hostParent,o--;for(var s=e;s--;){if(r===t)return r;r=r._hostParent,t=t._hostParent}return null}function a(r,t){for(;t;){if(t===r)return!0;t=t._hostParent}return!1}function s(r){return r._hostParent}function f(r,t,e){for(var n=[];r;)n.push(r),r=r._hostParent;var o;for(o=n.length;o-- >0;)t(n[o],"captured",e);for(o=0;o<n.length;o++)t(n[o],"bubbled",e)}function u(r,t,e,n,a){for(var s=r&&t?o(r,t):null,f=[];r&&r!==s;)f.push(r),r=r._hostParent;for(var u=[];t&&t!==s;)u.push(t),t=t._hostParent;var h;for(h=0;h<f.length;h++)e(f[h],"bubbled",n);for(h=u.length;h-- >0;)e(u[h],"captured",a)}e.exports={isAncestor:a,getLowestCommonAncestor:o,getParentInstance:s,traverseTwoPhase:f,traverseEnterLeave:u}},265);
__d(function(n,e,t,o){"use strict";var r=e(157),u=function(n,e){this._currentElement=null,this._renderedComponent=e(n)};babelHelpers.extends(u.prototype,{mountComponent:function(n,e,t,o,u){return r.mountComponent(this._renderedComponent,n,e,t,o,u)},receiveComponent:function(){},getHostNode:function(){return r.getHostNode(this._renderedComponent)},unmountComponent:function(){r.unmountComponent(this._renderedComponent),this._renderedComponent=null}}),t.exports=u},266);
__d(function(e,o,t,r){"use strict";function n(e,o,t,r){var n=p(e)?D.startShouldSetResponder:h(e)?D.moveShouldSetResponder:"topSelectionChange"===e?D.selectionChangeShouldSetResponder:D.scrollShouldSetResponder,s=v?i.getLowestCommonAncestor(v,o):o,a=s===v,S=c.getPooled(n,s,t,r);S.touchHistory=d.touchHistory,a?l.accumulateTwoPhaseDispatchesSkipTarget(S):l.accumulateTwoPhaseDispatches(S);var H=m(S);if(S.isPersistent()||S.constructor.release(S),!H||H===v)return null;var b,T=c.getPooled(D.responderGrant,H,t,r);T.touchHistory=d.touchHistory,l.accumulateDirectDispatches(T);var y=!0===R(T);if(v){var C=c.getPooled(D.responderTerminationRequest,v,t,r);C.touchHistory=d.touchHistory,l.accumulateDirectDispatches(C);var N=!g(C)||R(C);if(C.isPersistent()||C.constructor.release(C),N){var G=c.getPooled(D.responderTerminate,v,t,r);G.touchHistory=d.touchHistory,l.accumulateDirectDispatches(G),b=u(b,[T,G]),f(H,y)}else{var P=c.getPooled(D.responderReject,H,t,r);P.touchHistory=d.touchHistory,l.accumulateDirectDispatches(P),b=u(b,P)}}else b=u(b,T),f(H,y);return b}function s(e,o,t){return o&&("topScroll"===e&&!t.responderIgnoreScroll||H>0&&"topSelectionChange"===e||p(e)||h(e))}function a(e){var o=e.touches;if(!o||0===o.length)return!0;for(var t=0;t<o.length;t++){var r=o[t],n=r.target;if(null!==n&&void 0!==n&&0!==n){var s=i.getInstanceFromNode(n);if(i.isAncestor(v,s))return!1}}return!0}var i=o(147),l=o(256),c=o(268),d=o(269),u=o(270),p=i.isStartish,h=i.isMoveish,S=i.isEndish,R=i.executeDirectDispatch,g=i.hasDispatches,m=i.executeDispatchesInOrderStopAtTrue,v=null,H=0,b=0,f=function(e,o){var t=v;v=e,null!==T.GlobalResponderHandler&&T.GlobalResponderHandler.onChange(t,e,o)},D={startShouldSetResponder:{phasedRegistrationNames:{bubbled:"onStartShouldSetResponder",captured:"onStartShouldSetResponderCapture"}},scrollShouldSetResponder:{phasedRegistrationNames:{bubbled:"onScrollShouldSetResponder",captured:"onScrollShouldSetResponderCapture"}},selectionChangeShouldSetResponder:{phasedRegistrationNames:{bubbled:"onSelectionChangeShouldSetResponder",captured:"onSelectionChangeShouldSetResponderCapture"}},moveShouldSetResponder:{phasedRegistrationNames:{bubbled:"onMoveShouldSetResponder",captured:"onMoveShouldSetResponderCapture"}},responderStart:{registrationName:"onResponderStart"},responderMove:{registrationName:"onResponderMove"},responderEnd:{registrationName:"onResponderEnd"},responderRelease:{registrationName:"onResponderRelease"},responderTerminationRequest:{registrationName:"onResponderTerminationRequest"},responderGrant:{registrationName:"onResponderGrant"},responderReject:{registrationName:"onResponderReject"},responderTerminate:{registrationName:"onResponderTerminate"}},T={_getResponderID:function(){return v?v._rootNodeID:null},eventTypes:D,extractEvents:function(e,o,t,r){if(p(e))H+=1;else if(S(e)){if(!(H>=0))return console.error("Ended a touch event which was not counted in `trackedTouchCount`."),null;H-=1}d.recordTouchTrack(e,t);var i=s(e,o,t)?n(e,o,t,r):null,R=v&&p(e),g=v&&h(e),m=v&&S(e),y=R?D.responderStart:g?D.responderMove:m?D.responderEnd:null;if(y){var C=c.getPooled(y,v,t,r);C.touchHistory=d.touchHistory,l.accumulateDirectDispatches(C),i=u(i,C)}var N=v&&"topTouchCancel"===e,G=v&&!N&&S(e)&&a(t),P=N?D.responderTerminate:G?D.responderRelease:null;if(P){var I=c.getPooled(P,v,t,r);I.touchHistory=d.touchHistory,l.accumulateDirectDispatches(I),i=u(i,I),f(null)}var j=d.touchHistory.numberActiveTouches;return T.GlobalInteractionHandler&&j!==b&&T.GlobalInteractionHandler.onChange(j),b=j,i},GlobalResponderHandler:null,GlobalInteractionHandler:null,injection:{injectGlobalResponderHandler:function(e){T.GlobalResponderHandler=e},injectGlobalInteractionHandler:function(e){T.GlobalInteractionHandler=e}}};t.exports=T},267);
__d(function(t,n,u,r){"use strict";function s(t,n,u,r){return c.call(this,t,n,u,r)}var c=n(257),i={touchHistory:function(t){return null}};c.augmentClass(s,i),u.exports=s},268);
__d(function(e,t,r,i){"use strict";function a(e){return e.timeStamp||e.timestamp}function n(e){return{touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:a(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:a(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:a(e)}}function c(e,t){e.touchActive=!0,e.startPageX=t.pageX,e.startPageY=t.pageY,e.startTimeStamp=a(t),e.currentPageX=t.pageX,e.currentPageY=t.pageY,e.currentTimeStamp=a(t),e.previousPageX=t.pageX,e.previousPageY=t.pageY,e.previousTimeStamp=a(t)}function u(e){var t=e.identifier;return v(null!=t,"Touch object is missing identifier."),T(t<=S,"Touch identifier %s is greater than maximum supported %s which causes performance issues backfilling array locations for all of the indices.",t,S),t}function o(e){var t=u(e),r=X[t];r?c(r,e):X[t]=n(e),Y.mostRecentTimeStamp=a(e)}function s(e){var t=X[u(e)];t?(t.touchActive=!0,t.previousPageX=t.currentPageX,t.previousPageY=t.currentPageY,t.previousTimeStamp=t.currentTimeStamp,t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=a(e),Y.mostRecentTimeStamp=a(e)):console.error("Cannot record touch move without a touch start.\nTouch Move: %s\n","Touch Bank: %s",p(e),m())}function g(e){var t=X[u(e)];t?(t.touchActive=!1,t.previousPageX=t.currentPageX,t.previousPageY=t.currentPageY,t.previousTimeStamp=t.currentTimeStamp,t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=a(e),Y.mostRecentTimeStamp=a(e)):console.error("Cannot record touch end without a touch start.\nTouch End: %s\n","Touch Bank: %s",p(e),m())}function p(e){return JSON.stringify({identifier:e.identifier,pageX:e.pageX,pageY:e.pageY,timestamp:a(e)})}function m(){var e=JSON.stringify(X.slice(0,S));return X.length>S&&(e+=" (original size: "+X.length+")"),e}var h=t(147),v=t(44),T=t(40),f=h.isEndish,P=h.isMoveish,l=h.isStartish,S=20,X=[],Y={touchBank:X,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0},d={recordTouchTrack:function(e,t){if(P(e))t.changedTouches.forEach(s);else if(l(e))t.changedTouches.forEach(o),Y.numberActiveTouches=t.touches.length,1===Y.numberActiveTouches&&(Y.indexOfSingleActiveTouch=t.touches[0].identifier);else if(f(e)&&(t.changedTouches.forEach(g),Y.numberActiveTouches=t.touches.length,1===Y.numberActiveTouches))for(var r=0;r<X.length;r++){var i=X[r];if(null!=i&&i.touchActive){Y.indexOfSingleActiveTouch=r;break}}},touchHistory:Y};r.exports=d},269);
__d(function(r,n,t,u){"use strict";function c(r,n){return a(null!=n,"accumulate(...): Accumulated items must be not be null or undefined."),null==r?n:Array.isArray(r)?r.concat(n):Array.isArray(n)?[r].concat(n):[r,n]}var a=n(44);t.exports=c},270);
__d(function(n,e,o,t){"use strict";function r(n,e,o){var t=m.mountComponent(n,o,null,u(e),d,0);n._renderedComponent._topLevelWrapper=n,f._mountImageIntoNode(t,e)}function a(n,e){var o=s.ReactReconcileTransaction.getPooled();o.perform(r,null,n,e,o),s.ReactReconcileTransaction.release(o)}var i=e(97),u=(e(160),e(272)),c=e(152),m=e(157),p=e(261),s=e(153),l=e(94),d=e(43),C=e(165),v=e(169),I=function(){};I.prototype.isReactComponent={},I.prototype.render=function(){return this.props.child},I.isReactTopLevelWrapper=!0;var f={_instancesByContainerID:{},findNodeHandle:e(95),renderComponent:function(n,e,o){var t=i.createElement(I,{child:n}),r=e,u=f._instancesByContainerID[r];if(u){var m=u._currentElement,l=m.props.child;if(v(l,n))return p.enqueueElementInternal(u,t,d),o&&p.enqueueCallbackInternal(u,o),u;f.unmountComponentAtNode(e)}if(!c.reactTagIsNativeTopRootID(e))return console.error("You cannot render into anything but a top root"),null;c.assertRootTag(e);var _=C(t,!1);f._instancesByContainerID[e]=_,s.batchedUpdates(a,_,e);var N=_.getPublicInstance();return o&&o.call(N),N},_mountImageIntoNode:function(n,e){var o=n;l.setChildren(e,[o])},unmountComponentAtNodeAndRemoveContainer:function(n){f.unmountComponentAtNode(n),l.removeRootView(n)},unmountComponentAtNode:function(n){if(!c.reactTagIsNativeTopRootID(n))return console.error("You cannot render into anything but a top root"),!1;var e=f._instancesByContainerID[n];return!!e&&(f.unmountComponentFromNode(e,n),delete f._instancesByContainerID[n],!0)},unmountComponentFromNode:function(n,e){m.unmountComponent(n),l.removeSubviewsFromContainerWithID(e)}};o.exports=f},271);
__d(function(t,n,r,u){"use strict";function c(t){return{_tag:t}}r.exports=c},272);
__d(function(e,o,n,r){"use strict";function s(e){var o=u(e);return o&&o.viewConfig&&("AndroidTextInput"===o.viewConfig.uiViewClassName||"RCTTextView"===o.viewConfig.uiViewClassName||"RCTTextField"===o.viewConfig.uiViewClassName)}var l=o(100),t=(o(75),o(108)),i=o(223),d=o(274),a=o(74),c=o(94),p=o(40),h=o(143),u=h.getInstanceFromNode,S=o(76),m=S.ScrollViewManager,R=o(44),T={mixins:[d.Mixin],scrollResponderMixinGetInitialState:function(){return{isTouching:!1,lastMomentumScrollBeginTime:0,lastMomentumScrollEndTime:0,observedScrollSinceBecomingResponder:!1,becameResponderWhileAnimating:!1}},scrollResponderHandleScrollShouldSetResponder:function(){return this.state.isTouching},scrollResponderHandleStartShouldSetResponder:function(e){var o=a.currentlyFocusedField();return"handled"===this.props.keyboardShouldPersistTaps&&null!=o&&e.target!==o},scrollResponderHandleStartShouldSetResponderCapture:function(e){var o=a.currentlyFocusedField(),n=this.props.keyboardShouldPersistTaps;return!(n&&"never"!==n||null==o||s(e.target))||this.scrollResponderIsAnimating()},scrollResponderHandleResponderReject:function(){},scrollResponderHandleTerminationRequest:function(){return!this.state.observedScrollSinceBecomingResponder},scrollResponderHandleTouchEnd:function(e){var o=e.nativeEvent;this.state.isTouching=0!==o.touches.length,this.props.onTouchEnd&&this.props.onTouchEnd(e)},scrollResponderHandleResponderRelease:function(e){this.props.onResponderRelease&&this.props.onResponderRelease(e);var o=a.currentlyFocusedField();!0===this.props.keyboardShouldPersistTaps||"always"===this.props.keyboardShouldPersistTaps||null==o||e.target===o||this.state.observedScrollSinceBecomingResponder||this.state.becameResponderWhileAnimating||(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(e),a.blurTextInput(o))},scrollResponderHandleScroll:function(e){this.state.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(e)},scrollResponderHandleResponderGrant:function(e){this.state.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(e),this.state.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},scrollResponderHandleScrollBeginDrag:function(e){this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(e)},scrollResponderHandleScrollEndDrag:function(e){this.props.onScrollEndDrag&&this.props.onScrollEndDrag(e)},scrollResponderHandleMomentumScrollBegin:function(e){this.state.lastMomentumScrollBeginTime=Date.now(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(e)},scrollResponderHandleMomentumScrollEnd:function(e){this.state.lastMomentumScrollEndTime=Date.now(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(e)},scrollResponderHandleTouchStart:function(e){this.state.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(e)},scrollResponderHandleTouchMove:function(e){this.props.onTouchMove&&this.props.onTouchMove(e)},scrollResponderIsAnimating:function(){return Date.now()-this.state.lastMomentumScrollEndTime<16||this.state.lastMomentumScrollEndTime<this.state.lastMomentumScrollBeginTime},scrollResponderGetScrollableNode:function(){return this.getScrollableNode?this.getScrollableNode():i.findNodeHandle(this)},scrollResponderScrollTo:function(e,o,n){if("number"==typeof e)console.warn("`scrollResponderScrollTo(x, y, animated)` is deprecated. Use `scrollResponderScrollTo({x: 5, y: 5, animated: true})` instead.");else{var r=e||{};e=r.x,o=r.y,n=r.animated}c.dispatchViewManagerCommand(this.scrollResponderGetScrollableNode(),c.RCTScrollView.Commands.scrollTo,[e||0,o||0,!1!==n])},scrollResponderScrollToEnd:function(e){var o=!1!==(e&&e.animated);c.dispatchViewManagerCommand(this.scrollResponderGetScrollableNode(),c.RCTScrollView.Commands.scrollToEnd,[o])},scrollResponderScrollWithoutAnimationTo:function(e,o){console.warn("`scrollResponderScrollWithoutAnimationTo` is deprecated. Use `scrollResponderScrollTo` instead"),this.scrollResponderScrollTo({x:e,y:o,animated:!1})},scrollResponderZoomTo:function(e,o){if(R(m&&m.zoomToRect,"zoomToRect is not implemented"),"animated"in e)var o=e.animated,e=babelHelpers.objectWithoutProperties(e,["animated"]);else void 0!==o&&console.warn("`scrollResponderZoomTo` `animated` argument is deprecated. Use `options.animated` instead");m.zoomToRect(this.scrollResponderGetScrollableNode(),e,!1!==o)},scrollResponderScrollNativeHandleToKeyboard:function(e,o,n){this.additionalScrollOffset=o||0,this.preventNegativeScrollOffset=!!n,c.measureLayout(e,i.findNodeHandle(this.getInnerViewNode()),this.scrollResponderTextInputFocusError,this.scrollResponderInputMeasureAndScrollToKeyboard)},scrollResponderInputMeasureAndScrollToKeyboard:function(e,o,n,r){var s=l.get("window").height;this.keyboardWillOpenTo&&(s=this.keyboardWillOpenTo.endCoordinates.screenY);var t=o-s+r+this.additionalScrollOffset;this.preventNegativeScrollOffset&&(t=Math.max(0,t)),this.scrollResponderScrollTo({x:0,y:t,animated:!0}),this.additionalOffset=0,this.preventNegativeScrollOffset=!1},scrollResponderTextInputFocusError:function(e){console.error("Error measuring text field: ",e)},componentWillMount:function(){var e=this.props.keyboardShouldPersistTaps;p("boolean"!=typeof e,"'keyboardShouldPersistTaps={"+e+"}' is deprecated. Use 'keyboardShouldPersistTaps=\""+(e?"always":"never")+"\"' instead"),this.keyboardWillOpenTo=null,this.additionalScrollOffset=0,this.addListenerOn(t,"keyboardWillShow",this.scrollResponderKeyboardWillShow),this.addListenerOn(t,"keyboardWillHide",this.scrollResponderKeyboardWillHide),this.addListenerOn(t,"keyboardDidShow",this.scrollResponderKeyboardDidShow),this.addListenerOn(t,"keyboardDidHide",this.scrollResponderKeyboardDidHide)},scrollResponderKeyboardWillShow:function(e){this.keyboardWillOpenTo=e,this.props.onKeyboardWillShow&&this.props.onKeyboardWillShow(e)},scrollResponderKeyboardWillHide:function(e){this.keyboardWillOpenTo=null,this.props.onKeyboardWillHide&&this.props.onKeyboardWillHide(e)},scrollResponderKeyboardDidShow:function(e){e&&(this.keyboardWillOpenTo=e),this.props.onKeyboardDidShow&&this.props.onKeyboardDidShow(e)},scrollResponderKeyboardDidHide:function(e){this.keyboardWillOpenTo=null,this.props.onKeyboardDidHide&&this.props.onKeyboardDidHide(e)}},b={Mixin:T};n.exports=b},273);
__d(function(i,n,s,t){"use strict";var u={};u.Mixin={componentWillMount:function(){this._subscribableSubscriptions=[]},componentWillUnmount:function(){this._subscribableSubscriptions.forEach(function(i){return i.remove()}),this._subscribableSubscriptions=null},addListenerOn:function(i,n,s,t){this._subscribableSubscriptions.push(i.addListener(n,s,t))}},s.exports=u},274);
__d(function(t,n,r,o){"use strict";function s(t){return"normal"===t?t=.998:"fast"===t&&(t=.99),t}r.exports=s},275);
__d(function(i,t,e,n){"use strict";var a="undefined"==typeof window?i:window,r=function(i,t,e){return function(n,a){var r=i(function(){t.call(this,r),n.apply(this,arguments)}.bind(this),a);return this[e]?this[e].push(r):this[e]=[r],r}},s=function(i,t){return function(e){if(this[t]){var n=this[t].indexOf(e);-1!==n&&this[t].splice(n,1)}i(e)}},c="TimerMixin_timeouts",m=s(a.clearTimeout,c),o=r(a.setTimeout,m,c),l="TimerMixin_intervals",u=s(a.clearInterval,l),h=r(a.setInterval,function(){},l),f="TimerMixin_immediates",d=s(a.clearImmediate,f),I=r(a.setImmediate,d,f),v="TimerMixin_rafs",T=s(a.cancelAnimationFrame,v),p=r(a.requestAnimationFrame,T,v),x={componentWillUnmount:function(){this[c]&&this[c].forEach(function(i){a.clearTimeout(i)}),this[c]=null,this[l]&&this[l].forEach(function(i){a.clearInterval(i)}),this[l]=null,this[f]&&this[f].forEach(function(i){a.clearImmediate(i)}),this[f]=null,this[v]&&this[v].forEach(function(i){a.cancelAnimationFrame(i)}),this[v]=null},setTimeout:o,clearTimeout:m,setInterval:h,clearInterval:u,setImmediate:I,clearImmediate:d,requestAnimationFrame:p,cancelAnimationFrame:T};e.exports=x},276);
__d(function(e,s,t,o){"use strict";var n=s(131),r=s(97),i=s(276),p=s(193),a=s(130),l=s(278),c=s(40),h={top:20,left:20,right:20,bottom:30},u=r.createClass({displayName:"TouchableWithoutFeedback",mixins:[i,p.Mixin],propTypes:{accessible:r.PropTypes.bool,accessibilityComponentType:r.PropTypes.oneOf(a.AccessibilityComponentType),accessibilityTraits:r.PropTypes.oneOfType([r.PropTypes.oneOf(a.AccessibilityTraits),r.PropTypes.arrayOf(r.PropTypes.oneOf(a.AccessibilityTraits))]),disabled:r.PropTypes.bool,onPress:r.PropTypes.func,onPressIn:r.PropTypes.func,onPressOut:r.PropTypes.func,onLayout:r.PropTypes.func,onLongPress:r.PropTypes.func,delayPressIn:r.PropTypes.number,delayPressOut:r.PropTypes.number,delayLongPress:r.PropTypes.number,pressRetentionOffset:n,hitSlop:n},getInitialState:function(){return this.touchableGetInitialState()},componentDidMount:function(){l(this.props)},componentWillReceiveProps:function(e){l(e)},touchableHandlePress:function(e){this.props.onPress&&this.props.onPress(e)},touchableHandleActivePressIn:function(e){this.props.onPressIn&&this.props.onPressIn(e)},touchableHandleActivePressOut:function(e){this.props.onPressOut&&this.props.onPressOut(e)},touchableHandleLongPress:function(e){this.props.onLongPress&&this.props.onLongPress(e)},touchableGetPressRectOffset:function(){return this.props.pressRetentionOffset||h},touchableGetHitSlop:function(){return this.props.hitSlop},touchableGetHighlightDelayMS:function(){return this.props.delayPressIn||0},touchableGetLongPressDelayMS:function(){return 0===this.props.delayLongPress?0:this.props.delayLongPress||500},touchableGetPressOutDelayMS:function(){return this.props.delayPressOut||0},render:function(){var e=r.Children.only(this.props.children),s=e.props.children;c(!e.type||"Text"!==e.type.displayName,"TouchableWithoutFeedback does not work well with Text children. Wrap children in a View instead. See "+(e._owner&&e._owner.getName&&e._owner.getName()||"<unknown>")),p.TOUCH_TARGET_DEBUG&&e.type&&"View"===e.type.displayName&&(s=r.Children.toArray(s),s.push(p.renderDebugView({color:"red",hitSlop:this.props.hitSlop})));var t=p.TOUCH_TARGET_DEBUG&&e.type&&"Text"===e.type.displayName?[e.props.style,{color:"red"}]:e.props.style;return r.cloneElement(e,{accessible:!1!==this.props.accessible,accessibilityLabel:this.props.accessibilityLabel,accessibilityComponentType:this.props.accessibilityComponentType,accessibilityTraits:this.props.accessibilityTraits,testID:this.props.testID,onLayout:this.props.onLayout,hitSlop:this.props.hitSlop,onStartShouldSetResponder:this.touchableHandleStartShouldSetResponder,onResponderTerminationRequest:this.touchableHandleResponderTerminationRequest,onResponderGrant:this.touchableHandleResponderGrant,onResponderMove:this.touchableHandleResponderMove,onResponderRelease:this.touchableHandleResponderRelease,onResponderTerminate:this.touchableHandleResponderTerminate,style:t,children:s})}});t.exports=u},277);
__d(function(e,n,s,t){"use strict";var a=n(44),o=function(e){a(!(e.delayPressIn<0||e.delayPressOut<0||e.delayLongPress<0),"Touchable components cannot have negative delay properties")};s.exports=o},278);
__d(function(e,t,n,i){"use strict";var a=t(69),r=t(97),m=t(98),s=t(130),o=t(139),u=r.PropTypes,p=r.createClass({displayName:"DatePickerIOS",_picker:void 0,mixins:[a],propTypes:babelHelpers.extends({},s.propTypes,{date:u.instanceOf(Date).isRequired,onDateChange:u.func.isRequired,maximumDate:u.instanceOf(Date),minimumDate:u.instanceOf(Date),mode:u.oneOf(["date","time","datetime"]),minuteInterval:u.oneOf([1,2,3,4,5,6,10,12,15,20,30]),timeZoneOffsetInMinutes:u.number}),getDefaultProps:function(){return{mode:"datetime"}},_onChange:function(e){var t=e.nativeEvent.timestamp;this.props.onDateChange&&this.props.onDateChange(new Date(t)),this.props.onChange&&this.props.onChange(e);var n=this.props.date.getTime();this._picker&&t!==n&&this._picker.setNativeProps({date:n})},render:function(){var e=this,t=this.props;return r.createElement(s,{style:t.style},r.createElement(c,{ref:function(t){e._picker=t},style:d.datePickerIOS,date:t.date.getTime(),maximumDate:t.maximumDate?t.maximumDate.getTime():void 0,minimumDate:t.minimumDate?t.minimumDate.getTime():void 0,mode:t.mode,minuteInterval:t.minuteInterval,timeZoneOffsetInMinutes:t.timeZoneOffsetInMinutes,onChange:this._onChange,onStartShouldSetResponder:function(){return!0},onResponderTerminationRequest:function(){return!1}}))}}),d=m.create({datePickerIOS:{height:216}}),c=o("RCTDatePicker",{propTypes:babelHelpers.extends({},p.propTypes,{date:u.number,minimumDate:u.number,maximumDate:u.number,onDateChange:function(){return null},onChange:u.func})});n.exports=p},279);
__d(function(t,s,c,e){"use strict";c.exports=s(140)},280);
__d(function(e,a,n,l){"use strict";var r=a(76).ImageEditingManager,t=function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"cropImage",value:function(e,a,n,l){r.cropImage(e,a,n,l)}}]),e}();n.exports=t},281);
__d(function(e,a,o,r){"use strict";var n=a(76).ImageStoreManager,g=function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"hasImageForTag",value:function(e,a){n.hasImageForTag?n.hasImageForTag(e,a):console.warn("hasImageForTag() not implemented")}},{key:"removeImageForTag",value:function(e){n.removeImageForTag?n.removeImageForTag(e):console.warn("removeImageForTag() not implemented")}},{key:"addImageFromBase64",value:function(e,a,o){n.addImageFromBase64(e,a,o)}},{key:"getBase64ForTag",value:function(e,a,o){n.getBase64ForTag(e,a,o)}}]),e}();o.exports=g},282);
__d(function(e,t,o,r){"use strict";var i=t(108),n=t(284),a=(t(75),t(97)),s=t(276),h=t(130),l=a.PropTypes,p=a.createClass({displayName:"KeyboardAvoidingView",mixins:[s],propTypes:babelHelpers.extends({},h.propTypes,{behavior:l.oneOf(["height","position","padding"]),contentContainerStyle:h.propTypes.style,keyboardVerticalOffset:l.number.isRequired}),getDefaultProps:function(){return{keyboardVerticalOffset:0}},getInitialState:function(){return{bottom:0}},subscriptions:[],frame:null,relativeKeyboardHeight:function(e){var t=this.frame;if(!t||!e)return 0;var o=Math.max(t.y,e.screenY-this.props.keyboardVerticalOffset),r=Math.min(t.y+t.height,e.screenY+e.height-this.props.keyboardVerticalOffset);return t.y>e.screenY?t.y+t.height-e.screenY-this.props.keyboardVerticalOffset:Math.max(r-o,0)},onKeyboardChange:function(e){if(!e)return void this.setState({bottom:0});var t=e.duration,o=e.easing,r=e.endCoordinates,i=this.relativeKeyboardHeight(r);t&&o&&n.configureNext({duration:t,update:{duration:t,type:n.Types[o]||"keyboard"}}),this.setState({bottom:i})},onLayout:function(e){this.frame=e.nativeEvent.layout},componentWillUpdate:function(e,t,o){t.bottom===this.state.bottom&&"height"===this.props.behavior&&"height"===e.behavior&&(t.bottom=0)},componentWillMount:function(){this.subscriptions=[i.addListener("keyboardWillChangeFrame",this.onKeyboardChange)]},componentWillUnmount:function(){this.subscriptions.forEach(function(e){return e.remove()})},render:function(){var e=this.props,t=e.behavior,o=e.children,r=e.style,i=babelHelpers.objectWithoutProperties(e,["behavior","children","style"]);switch(t){case"height":var n=void 0;return this.frame&&(n={height:this.frame.height-this.state.bottom,flex:0}),a.createElement(h,babelHelpers.extends({ref:"VIEW",style:[r,n],onLayout:this.onLayout},i),o);case"position":var s={bottom:this.state.bottom},l=this.props.contentContainerStyle;return a.createElement(h,babelHelpers.extends({ref:"VIEW",style:r,onLayout:this.onLayout},i),a.createElement(h,{style:[l,s]},o));case"padding":var p={paddingBottom:this.state.bottom};return a.createElement(h,babelHelpers.extends({ref:"VIEW",style:[r,p],onLayout:this.onLayout},i),o);default:return a.createElement(h,babelHelpers.extends({ref:"VIEW",onLayout:this.onLayout,style:r},i),o)}}});o.exports=p},283);
__d(function(e,n,t,i){"use strict";function r(e,n){b({config:e},"config","LayoutAnimation.configureNext"),u.configureNextLayoutAnimation(e,n||function(){},function(){})}function a(e,n,t){return{duration:e,create:{type:n,property:t},update:{type:n},delete:{type:n,property:t}}}var p=n(97),o=p.PropTypes,u=n(94),s=n(132),c=n(115),y={spring:!0,linear:!0,easeInEaseOut:!0,easeIn:!0,easeOut:!0,keyboard:!0},l=c(y),d={opacity:!0,scaleXY:!0},g=c(d),f=s({duration:o.number,delay:o.number,springDamping:o.number,initialVelocity:o.number,type:o.oneOf(Object.keys(l)).isRequired,property:o.oneOf(Object.keys(g))}),b=s({duration:o.number.isRequired,create:f,update:f,delete:f}),O={easeInEaseOut:a(300,l.easeInEaseOut,g.opacity),linear:a(500,l.linear,g.opacity),spring:{duration:700,create:{type:l.linear,property:g.opacity},update:{type:l.spring,springDamping:.4},delete:{type:l.linear,property:g.opacity}}},m={configureNext:r,create:a,Types:l,Properties:g,configChecker:b,Presets:O,easeInEaseOut:r.bind(null,O.easeInEaseOut),linear:r.bind(null,O.linear),spring:r.bind(null,O.spring)};t.exports=m},284);
__d(function(e,t,o,n){"use strict";var r=t(286),s=t(97),i=t(223),l=t(76).ScrollViewManager,d=t(221),a=t(273),h=t(288),c=t(276),p=t(289),u=t(287),R=t(133),g=s.PropTypes,w=s.createClass({displayName:"ListView",_childFrames:[],_sentEndForContentLength:null,_scrollComponent:null,_prevRenderedRowsCount:0,_visibleRows:{},scrollProperties:{},mixins:[a.Mixin,c],statics:{DataSource:r},propTypes:babelHelpers.extends({},d.propTypes,{dataSource:g.instanceOf(r).isRequired,renderSeparator:g.func,renderRow:g.func.isRequired,initialListSize:g.number.isRequired,onEndReached:g.func,onEndReachedThreshold:g.number.isRequired,pageSize:g.number.isRequired,renderFooter:g.func,renderHeader:g.func,renderSectionHeader:g.func,renderScrollComponent:s.PropTypes.func.isRequired,scrollRenderAheadDistance:s.PropTypes.number.isRequired,onChangeVisibleRows:s.PropTypes.func,removeClippedSubviews:s.PropTypes.bool,stickySectionHeadersEnabled:s.PropTypes.bool,stickyHeaderIndices:g.arrayOf(g.number).isRequired,enableEmptySections:g.bool}),getMetrics:function(){return{contentLength:this.scrollProperties.contentLength,totalRows:this.props.enableEmptySections?this.props.dataSource.getRowAndSectionCount():this.props.dataSource.getRowCount(),renderedRows:this.state.curRenderedRowsCount,visibleRows:Object.keys(this._visibleRows).length}},getScrollResponder:function(){if(this._scrollComponent&&this._scrollComponent.getScrollResponder)return this._scrollComponent.getScrollResponder()},getScrollableNode:function(){return this._scrollComponent&&this._scrollComponent.getScrollableNode?this._scrollComponent.getScrollableNode():i.findNodeHandle(this._scrollComponent)},scrollTo:function(){if(this._scrollComponent&&this._scrollComponent.scrollTo){var e;(e=this._scrollComponent).scrollTo.apply(e,arguments)}},scrollToEnd:function(e){this._scrollComponent&&(this._scrollComponent.scrollToEnd?this._scrollComponent.scrollToEnd(e):console.warn("The scroll component used by the ListView does not support scrollToEnd. Check the renderScrollComponent prop of your ListView."))},setNativeProps:function(e){this._scrollComponent&&this._scrollComponent.setNativeProps(e)},getDefaultProps:function(){return{initialListSize:10,pageSize:1,renderScrollComponent:function(e){return s.createElement(d,e)},scrollRenderAheadDistance:1e3,onEndReachedThreshold:1e3,stickySectionHeadersEnabled:!0,stickyHeaderIndices:[]}},getInitialState:function(){return{curRenderedRowsCount:this.props.initialListSize,highlightedRow:{}}},getInnerViewNode:function(){return this._scrollComponent.getInnerViewNode()},componentWillMount:function(){this.scrollProperties={visibleLength:null,contentLength:null,offset:0},this._childFrames=[],this._visibleRows={},this._prevRenderedRowsCount=0,this._sentEndForContentLength=null},componentDidMount:function(){var e=this;this.requestAnimationFrame(function(){e._measureAndUpdateScrollProps()})},componentWillReceiveProps:function(e){var t=this;this.props.dataSource===e.dataSource&&this.props.initialListSize===e.initialListSize||this.setState(function(e,o){return t._prevRenderedRowsCount=0,{curRenderedRowsCount:Math.min(Math.max(e.curRenderedRowsCount,o.initialListSize),o.enableEmptySections?o.dataSource.getRowAndSectionCount():o.dataSource.getRowCount())}},function(){return t._renderMoreRowsIfNeeded()})},componentDidUpdate:function(){var e=this;this.requestAnimationFrame(function(){e._measureAndUpdateScrollProps()})},_onRowHighlighted:function(e,t){this.setState({highlightedRow:{sectionID:e,rowID:t}})},render:function(){for(var e=[],o=this.props.dataSource,n=o.rowIdentities,r=0,i=[],l=this.props.renderHeader&&this.props.renderHeader(),d=this.props.renderFooter&&this.props.renderFooter(),a=l?1:0,c=0;c<n.length;c++){var u=o.sectionIdentities[c],R=n[c];if(0===R.length){if(void 0===this.props.enableEmptySections){t(40)(!1,"In next release empty section headers will be rendered. In this release you can use 'enableEmptySections' flag to render empty section headers.");continue}t(44)(this.props.enableEmptySections,"In next release 'enableEmptySections' flag will be deprecated, empty section headers will always be rendered. If empty section headers are not desirable their indices should be excluded from sectionIDs object. In this release 'enableEmptySections' may only have value 'true' to allow empty section headers rendering.")}if(this.props.renderSectionHeader){var g=r>=this._prevRenderedRowsCount&&o.sectionHeaderShouldUpdate(c);e.push(s.createElement(h,{key:"s_"+u,shouldUpdate:!!g,render:this.props.renderSectionHeader.bind(null,o.getSectionHeaderData(c),u)})),this.props.stickySectionHeadersEnabled&&i.push(a++)}for(var w=0;w<R.length;w++){var S=R[w],f=u+"_"+S,m=r>=this._prevRenderedRowsCount&&o.rowShouldUpdate(c,w),C=s.createElement(h,{key:"r_"+f,shouldUpdate:!!m,render:this.props.renderRow.bind(null,o.getRowData(c,w),u,S,this._onRowHighlighted)});if(e.push(C),a++,this.props.renderSeparator&&(w!==R.length-1||c===n.length-1)){var b=this.state.highlightedRow.sectionID===u&&(this.state.highlightedRow.rowID===S||this.state.highlightedRow.rowID===R[w+1]),_=this.props.renderSeparator(u,S,b);_&&(e.push(_),a++)}if(++r===this.state.curRenderedRowsCount)break}if(r>=this.state.curRenderedRowsCount)break}var v=this.props,y=v.renderScrollComponent,E=babelHelpers.objectWithoutProperties(v,["renderScrollComponent"]);return E.scrollEventThrottle||(E.scrollEventThrottle=50),void 0===E.removeClippedSubviews&&(E.removeClippedSubviews=!0),babelHelpers.extends(E,{onScroll:this._onScroll,stickyHeaderIndices:this.props.stickyHeaderIndices.concat(i),onKeyboardWillShow:void 0,onKeyboardWillHide:void 0,onKeyboardDidShow:void 0,onKeyboardDidHide:void 0}),p(y(E),{ref:this._setScrollComponentRef,onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout},l,e,d)},_measureAndUpdateScrollProps:function(){var e=this.getScrollResponder();e&&e.getInnerViewNode&&l&&l.calculateChildFrames&&l.calculateChildFrames(i.findNodeHandle(e),this._updateVisibleRows)},_setScrollComponentRef:function(e){this._scrollComponent=e},_onContentSizeChange:function(e,t){var o=this.props.horizontal?e:t;o!==this.scrollProperties.contentLength&&(this.scrollProperties.contentLength=o,this._updateVisibleRows(),this._renderMoreRowsIfNeeded()),this.props.onContentSizeChange&&this.props.onContentSizeChange(e,t)},_onLayout:function(e){var t=e.nativeEvent.layout,o=t.width,n=t.height,r=this.props.horizontal?o:n;r!==this.scrollProperties.visibleLength&&(this.scrollProperties.visibleLength=r,this._updateVisibleRows(),this._renderMoreRowsIfNeeded()),this.props.onLayout&&this.props.onLayout(e)},_maybeCallOnEndReached:function(e){return!!(this.props.onEndReached&&this.scrollProperties.contentLength!==this._sentEndForContentLength&&this._getDistanceFromEnd(this.scrollProperties)<this.props.onEndReachedThreshold&&this.state.curRenderedRowsCount===(this.props.enableEmptySections?this.props.dataSource.getRowAndSectionCount():this.props.dataSource.getRowCount()))&&(this._sentEndForContentLength=this.scrollProperties.contentLength,this.props.onEndReached(e),!0)},_renderMoreRowsIfNeeded:function(){if(null===this.scrollProperties.contentLength||null===this.scrollProperties.visibleLength||this.state.curRenderedRowsCount===(this.props.enableEmptySections?this.props.dataSource.getRowAndSectionCount():this.props.dataSource.getRowCount()))return void this._maybeCallOnEndReached();this._getDistanceFromEnd(this.scrollProperties)<this.props.scrollRenderAheadDistance&&this._pageInNewRows()},_pageInNewRows:function(){var e=this;this.setState(function(t,o){var n=Math.min(t.curRenderedRowsCount+o.pageSize,o.enableEmptySections?o.dataSource.getRowAndSectionCount():o.dataSource.getRowCount());return e._prevRenderedRowsCount=t.curRenderedRowsCount,{curRenderedRowsCount:n}},function(){e._measureAndUpdateScrollProps(),e._prevRenderedRowsCount=e.state.curRenderedRowsCount})},_getDistanceFromEnd:function(e){return e.contentLength-e.visibleLength-e.offset},_updateVisibleRows:function(e){var t=this;if(this.props.onChangeVisibleRows){e&&e.forEach(function(e){t._childFrames[e.index]=R(e)});for(var o=!this.props.horizontal,n=this.props.dataSource,r=this.scrollProperties.offset,s=r+this.scrollProperties.visibleLength,i=n.rowIdentities,l=this.props.renderHeader&&this.props.renderHeader(),d=l?1:0,a=!1,h={},c=0;c<i.length;c++){var p=i[c];if(0!==p.length){var g=n.sectionIdentities[c];this.props.renderSectionHeader&&d++;var w=this._visibleRows[g];w||(w={});for(var S=0;S<p.length;S++){var f=p[S],m=this._childFrames[d];if(d++,!this.props.renderSeparator||S===p.length-1&&c!==i.length-1||d++,!m)break;var C=w[f],b=o?m.y:m.x,_=b+(o?m.height:m.width);if(!b&&!_||b===_)break;b>s||_<r?C&&(a=!0,delete w[f],h[g]||(h[g]={}),h[g][f]=!1):C||(a=!0,w[f]=!0,h[g]||(h[g]={}),h[g][f]=!0)}u(w)?this._visibleRows[g]&&delete this._visibleRows[g]:this._visibleRows[g]=w}}a&&this.props.onChangeVisibleRows(this._visibleRows,h)}},_onScroll:function(e){var t=!this.props.horizontal;this.scrollProperties.visibleLength=e.nativeEvent.layoutMeasurement[t?"height":"width"],this.scrollProperties.contentLength=e.nativeEvent.contentSize[t?"height":"width"],this.scrollProperties.offset=e.nativeEvent.contentOffset[t?"y":"x"],this._updateVisibleRows(e.nativeEvent.updatedChildFrames),this._maybeCallOnEndReached(e)||this._renderMoreRowsIfNeeded(),this.props.onEndReached&&this._getDistanceFromEnd(this.scrollProperties)>this.props.onEndReachedThreshold&&(this._sentEndForContentLength=null),this.props.onScroll&&this.props.onScroll(e)}});o.exports=w},285);
__d(function(t,e,i,n){"use strict";function s(t,e,i){return t[e][i]}function a(t,e){return t[e]}function o(t){for(var e=0,i=0;i<t.length;i++){e+=t[i].length}return e}function r(t){if(d(t))return{};for(var e={},i=0;i<t.length;i++){var n=t[i];c(!e[n],"Value appears more than once in array: "+n),e[n]=!0}return e}var h=e(44),d=e(287),c=e(40),u=function(){function t(e){babelHelpers.classCallCheck(this,t),h(e&&"function"==typeof e.rowHasChanged,"Must provide a rowHasChanged function."),this._rowHasChanged=e.rowHasChanged,this._getRowData=e.getRowData||s,this._sectionHeaderHasChanged=e.sectionHeaderHasChanged,this._getSectionHeaderData=e.getSectionHeaderData||a,this._dataBlob=null,this._dirtyRows=[],this._dirtySections=[],this._cachedRowCount=0,this.rowIdentities=[],this.sectionIdentities=[]}return babelHelpers.createClass(t,[{key:"cloneWithRows",value:function(t,e){var i=e?[e]:null;return this._sectionHeaderHasChanged||(this._sectionHeaderHasChanged=function(){return!1}),this.cloneWithRowsAndSections({s1:t},["s1"],i)}},{key:"cloneWithRowsAndSections",value:function(e,i,n){h("function"==typeof this._sectionHeaderHasChanged,"Must provide a sectionHeaderHasChanged function with section data."),h(!i||!n||i.length===n.length,"row and section ids lengths must be the same");var s=new t({getRowData:this._getRowData,getSectionHeaderData:this._getSectionHeaderData,rowHasChanged:this._rowHasChanged,sectionHeaderHasChanged:this._sectionHeaderHasChanged});return s._dataBlob=e,s.sectionIdentities=i||Object.keys(e),n?s.rowIdentities=n:(s.rowIdentities=[],s.sectionIdentities.forEach(function(t){s.rowIdentities.push(Object.keys(e[t]))})),s._cachedRowCount=o(s.rowIdentities),s._calculateDirtyArrays(this._dataBlob,this.sectionIdentities,this.rowIdentities),s}},{key:"getRowCount",value:function(){return this._cachedRowCount}},{key:"getRowAndSectionCount",value:function(){return this._cachedRowCount+this.sectionIdentities.length}},{key:"rowShouldUpdate",value:function(t,e){var i=this._dirtyRows[t][e];return c(void 0!==i,"missing dirtyBit for section, row: "+t+", "+e),i}},{key:"getRowData",value:function(t,e){var i=this.sectionIdentities[t],n=this.rowIdentities[t][e];return c(void 0!==i&&void 0!==n,"rendering invalid section, row: "+t+", "+e),this._getRowData(this._dataBlob,i,n)}},{key:"getRowIDForFlatIndex",value:function(t){for(var e=t,i=0;i<this.sectionIdentities.length;i++){if(!(e>=this.rowIdentities[i].length))return this.rowIdentities[i][e];e-=this.rowIdentities[i].length}return null}},{key:"getSectionIDForFlatIndex",value:function(t){for(var e=t,i=0;i<this.sectionIdentities.length;i++){if(!(e>=this.rowIdentities[i].length))return this.sectionIdentities[i];e-=this.rowIdentities[i].length}return null}},{key:"getSectionLengths",value:function(){for(var t=[],e=0;e<this.sectionIdentities.length;e++)t.push(this.rowIdentities[e].length);return t}},{key:"sectionHeaderShouldUpdate",value:function(t){var e=this._dirtySections[t];return c(void 0!==e,"missing dirtyBit for section: "+t),e}},{key:"getSectionHeaderData",value:function(t){if(!this._getSectionHeaderData)return null;var e=this.sectionIdentities[t];return c(void 0!==e,"renderSection called on invalid section: "+t),this._getSectionHeaderData(this._dataBlob,e)}},{key:"_calculateDirtyArrays",value:function(t,e,i){for(var n=r(e),s={},a=0;a<i.length;a++){var o=e[a];c(!s[o],"SectionID appears more than once: "+o),s[o]=r(i[a])}this._dirtySections=[],this._dirtyRows=[];for(var h,d=0;d<this.sectionIdentities.length;d++){var o=this.sectionIdentities[d];h=!n[o];var u=this._sectionHeaderHasChanged;!h&&u&&(h=u(this._getSectionHeaderData(t,o),this._getSectionHeaderData(this._dataBlob,o))),this._dirtySections.push(!!h),this._dirtyRows[d]=[];for(var l=0;l<this.rowIdentities[d].length;l++){var g=this.rowIdentities[d][l];h=!n[o]||!s[o][g]||this._rowHasChanged(this._getRowData(t,o,g),this._getRowData(this._dataBlob,o,g)),this._dirtyRows[d].push(!!h)}}}}]),t}();i.exports=u},286);
__d(function(r,t,n,e){"use strict";function i(r){if(Array.isArray(r))return 0===r.length;if("object"==typeof r){for(var t in r)return!1;return!0}return!r}n.exports=i},287);
__d(function(e,r,t,s){"use strict";var o=r(97),n=function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"shouldComponentUpdate",value:function(e){return e.shouldUpdate}},{key:"render",value:function(){return this.props.render()}}]),r}(o.Component);n.propTypes={shouldUpdate:o.PropTypes.bool.isRequired,render:o.PropTypes.func.isRequired},t.exports=n},288);
__d(function(e,n,t,l){"use strict";function c(e,n){for(var t=n.ref,l=e.ref,c=arguments.length,r=Array(c>2?c-2:0),a=2;a<c;a++)r[a-2]=arguments[a];return null==l||null==t?o.cloneElement.apply(o,[e,n].concat(r)):"function"!=typeof l?o.cloneElement.apply(o,[e,n].concat(r)):o.cloneElement.apply(o,[e,babelHelpers.extends({},n,{ref:function(e){t(e),l(e)}})].concat(r))}var o=n(34);t.exports=c},289);
__d(function(e,o,n,t){"use strict";var i=o(66),a=o(131),r=o(219),s=o(69),l=o(97),p=o(98),u=o(130),y=o(119),d=o(125),v=o(180),g=o(139),c=l.createClass({displayName:"MapView",mixins:[s],propTypes:babelHelpers.extends({},u.propTypes,{style:u.propTypes.style,showsUserLocation:l.PropTypes.bool,followUserLocation:l.PropTypes.bool,showsPointsOfInterest:l.PropTypes.bool,showsCompass:l.PropTypes.bool,showsAnnotationCallouts:l.PropTypes.bool,zoomEnabled:l.PropTypes.bool,rotateEnabled:l.PropTypes.bool,pitchEnabled:l.PropTypes.bool,scrollEnabled:l.PropTypes.bool,mapType:l.PropTypes.oneOf(["standard","satellite","hybrid"]),region:l.PropTypes.shape({latitude:l.PropTypes.number.isRequired,longitude:l.PropTypes.number.isRequired,latitudeDelta:l.PropTypes.number,longitudeDelta:l.PropTypes.number}),annotations:l.PropTypes.arrayOf(l.PropTypes.shape({latitude:l.PropTypes.number.isRequired,longitude:l.PropTypes.number.isRequired,animateDrop:l.PropTypes.bool,draggable:l.PropTypes.bool,onDragStateChange:l.PropTypes.func,onFocus:l.PropTypes.func,onBlur:l.PropTypes.func,title:l.PropTypes.string,subtitle:l.PropTypes.string,leftCalloutView:l.PropTypes.element,rightCalloutView:l.PropTypes.element,detailCalloutView:l.PropTypes.element,tintColor:i,image:r.propTypes.source,view:l.PropTypes.element,id:l.PropTypes.string,hasLeftCallout:y(l.PropTypes.bool,"Use `leftCalloutView` instead."),hasRightCallout:y(l.PropTypes.bool,"Use `rightCalloutView` instead."),onLeftCalloutPress:y(l.PropTypes.func,"Use `leftCalloutView` instead."),onRightCalloutPress:y(l.PropTypes.func,"Use `rightCalloutView` instead.")})),overlays:l.PropTypes.arrayOf(l.PropTypes.shape({coordinates:l.PropTypes.arrayOf(l.PropTypes.shape({latitude:l.PropTypes.number.isRequired,longitude:l.PropTypes.number.isRequired})),lineWidth:l.PropTypes.number,strokeColor:i,fillColor:i,id:l.PropTypes.string})),maxDelta:l.PropTypes.number,minDelta:l.PropTypes.number,legalLabelInsets:a,onRegionChange:l.PropTypes.func,onRegionChangeComplete:l.PropTypes.func,onAnnotationPress:l.PropTypes.func,active:l.PropTypes.bool}),statics:{PinColors:{RED:"#ff3b30",GREEN:"#4cd964",PURPLE:"#c969e0"}},render:function(){var e=this,o=[],n=this.props,t=n.annotations,i=n.overlays,a=n.followUserLocation;t=t&&t.map(function(e){var n=e.id,t=e.image,i=e.tintColor,a=e.view,s=e.leftCalloutView,p=e.rightCalloutView,u=e.detailCalloutView;if(!a&&t&&i&&(a=l.createElement(r,{style:{tintColor:d(i)},source:t}),t=void 0),a){t&&console.warn("`image` and `view` both set on annotation. Image will be ignored.");var y=o.length;o.push(l.cloneElement(a,{style:[P.annotationView,a.props.style||{}]}))}if(s){var g=o.length;o.push(l.cloneElement(s,{style:[P.calloutView,s.props.style||{}]}))}if(p){var c=o.length;o.push(l.cloneElement(p,{style:[P.calloutView,p.props.style||{}]}))}if(u){var C=o.length;o.push(l.cloneElement(u,{style:[P.calloutView,u.props.style||{}]}))}var h=babelHelpers.extends({},e,{tintColor:i&&d(i),image:t,viewIndex:y,leftCalloutViewIndex:g,rightCalloutViewIndex:c,detailCalloutViewIndex:C,view:void 0,leftCalloutView:void 0,rightCalloutView:void 0,detailCalloutView:void 0});return h.id=n||encodeURIComponent(JSON.stringify(h)),h.image=t&&v(t),h}),i=i&&i.map(function(e){var o=e.id,n=e.fillColor,t=e.strokeColor,i=babelHelpers.extends({},e,{strokeColor:t&&d(t),fillColor:n&&d(n)});return i.id=o||encodeURIComponent(JSON.stringify(i)),i});var s=function(e){if(!t)return null;for(var o=0,n=t.length;o<n;o++)if(t[o].id===e)return t[o];return null},p=void 0,u=void 0,y=void 0,g=void 0;if(t&&(p=function(o){if("annotation-click"===o.nativeEvent.action)e.props.onAnnotationPress&&e.props.onAnnotationPress(o.nativeEvent.annotation);else if("callout-click"===o.nativeEvent.action){var n=s(o.nativeEvent.annotationId);n&&("left"===o.nativeEvent.side&&n.onLeftCalloutPress?n.onLeftCalloutPress(o.nativeEvent):"right"===o.nativeEvent.side&&n.onRightCalloutPress&&n.onRightCalloutPress(o.nativeEvent))}},u=function(e){var o=s(e.nativeEvent.annotationId);o&&o.onDragStateChange&&o.onDragStateChange(e.nativeEvent)},y=function(e){var o=s(e.nativeEvent.annotationId);o&&o.onFocus&&o.onFocus(e.nativeEvent)},g=function(e){var o=s(e.nativeEvent.annotationId);o&&o.onBlur&&o.onBlur(e.nativeEvent)}),this.props.onRegionChange||this.props.onRegionChangeComplete)var c=function(o){o.nativeEvent.continuous?e.props.onRegionChange&&e.props.onRegionChange(o.nativeEvent.region):e.props.onRegionChangeComplete&&e.props.onRegionChangeComplete(o.nativeEvent.region)};return void 0===a&&(a=this.props.showUserLocation),l.createElement(C,babelHelpers.extends({},this.props,{annotations:t,children:o,followUserLocation:a,overlays:i,onPress:p,onChange:c,onAnnotationDragStateChange:u,onAnnotationFocus:y,onAnnotationBlur:g}))}}),P=p.create({annotationView:{position:"absolute",backgroundColor:"transparent"},calloutView:{position:"absolute",backgroundColor:"white"}}),C=g("RCTMap",c,{nativeOnly:{onAnnotationDragStateChange:!0,onAnnotationFocus:!0,onAnnotationBlur:!0,onChange:!0,onPress:!0}});n.exports=c},290);
__d(function(e,t,r,o){"use strict";var n,s=(t(292),t(293)),a=(t(75),t(97)),p=t(98),i=t(130),l=t(119),d=t(139),h=d("RCTModalHostView",null),u=a.PropTypes,c=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){if(!1===this.props.visible)return null;var e={backgroundColor:this.props.transparent?"transparent":"white"},t=this.props.animationType;t||(t="none",this.props.animated&&(t="slide"));var r=this.props.children;return a.createElement(h,{animationType:t,transparent:this.props.transparent,hardwareAccelerated:this.props.hardwareAccelerated,onRequestClose:this.props.onRequestClose,onShow:this.props.onShow,style:f.modal,onStartShouldSetResponder:this._shouldSetResponder,supportedOrientations:this.props.supportedOrientations,onOrientationChange:this.props.onOrientationChange},a.createElement(i,{style:[f.container,e]},r))}},{key:"_shouldSetResponder",value:function(){return!0}}]),t}(a.Component);c.propTypes={animationType:u.oneOf(["none","slide","fade"]),transparent:u.bool,hardwareAccelerated:u.bool,visible:u.bool,onRequestClose:u.func,onShow:u.func,animated:l(u.bool,"Use the `animationType` prop instead."),supportedOrientations:u.arrayOf(u.oneOf(["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"])),onOrientationChange:u.func},c.defaultProps={visible:!0,hardwareAccelerated:!1},c.contextTypes={rootTag:a.PropTypes.number};var b=s.isRTL?"right":"left",f=p.create({modal:{position:"absolute"},container:(n={position:"absolute"},babelHelpers.defineProperty(n,b,0),babelHelpers.defineProperty(n,"top",0),n)});r.exports=c},291);
__d(function(e,t,n,r){"use strict";var o=(t(103),t(101),t(97)),s=(t(223),t(98)),i=t(130),a=function(e){function t(){var e,n,r,o;babelHelpers.classCallCheck(this,t);for(var s=arguments.length,i=Array(s),a=0;a<s;a++)i[a]=arguments[a];return n=r=babelHelpers.possibleConstructorReturn(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={inspector:null,mainKey:1},r._subscription=null,o=n,babelHelpers.possibleConstructorReturn(r,o)}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"getChildContext",value:function(){return{rootTag:this.props.rootTag}}},{key:"componentDidMount",value:function(){}},{key:"componentWillUnmount",value:function(){this._subscription&&this._subscription.remove()}},{key:"render",value:function(){var e=this;return o.createElement(i,{style:l.appContainer,pointerEvents:"box-none"},o.createElement(i,{collapsable:!this.state.inspector,key:this.state.mainKey,pointerEvents:"box-none",style:l.appContainer,ref:function(t){e._mainRef=t}},this.props.children),null,this.state.inspector)}}]),t}(o.Component);a.childContextTypes={rootTag:o.PropTypes.number};var l=s.create({appContainer:{flex:1}});n.exports=a},292);
__d(function(n,o,t,c){"use strict";var i=o(76).I18nManager||{isRTL:!1,allowRTL:function(){},forceRTL:function(){}};t.exports=i},293);
__d(function(t,e,n,s){"use strict";function i(){return F++}function r(t){if(null===t||"object"!=typeof t)return String(t);var e="__navigatorRouteID";return t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!1,configurable:!1,writable:!1,value:i()}),t[e]}var a=e(76).AnimationsDebugModule,o=e(100),u=e(295),h=e(296),c=e(301),d=e(307),l=e(308),p=e(309),v=e(97),f=e(98),g=e(274),_=e(196),S=e(276),m=e(130),x=e(311),I=e(73),b=e(44),G=e(312),R=v.PropTypes,y=o.get("window").width,k=o.get("window").height,C={pointerEvents:"none",style:{top:k,bottom:-k,opacity:0}},F=0,T=f.create({container:{flex:1,overflow:"hidden"},defaultSceneStyle:{position:"absolute",left:0,right:0,bottom:0,top:0,transform:[{translateX:0},{translateY:0},{scaleX:1},{scaleY:1},{rotate:"0deg"},{skewX:"0deg"},{skewY:"0deg"}]},baseScene:{position:"absolute",overflow:"hidden",left:0,right:0,bottom:0,top:0},disabledScene:{top:k,bottom:-k},transitioner:{flex:1,backgroundColor:"transparent",overflow:"hidden"}}),w=["pop","jumpBack","jumpForward"],P=v.createClass({displayName:"Navigator",propTypes:{configureScene:R.func,renderScene:R.func.isRequired,initialRoute:R.object,initialRouteStack:R.arrayOf(R.object),onWillFocus:R.func,onDidFocus:R.func,navigationBar:R.node,navigator:R.object,sceneStyle:m.propTypes.style},statics:{BreadcrumbNavigationBar:c,NavigationBar:d,SceneConfigs:l},mixins:[S,u,g.Mixin],getDefaultProps:function(){return{configureScene:function(){return l.PushFromRight},sceneStyle:T.defaultSceneStyle}},getInitialState:function(){var t=this;this._navigationBarNavigator=this.props.navigationBarNavigator||this,this._renderedSceneMap=new Map,this._sceneRefs=[];var e=this.props.initialRouteStack||[this.props.initialRoute];b(e.length>=1,"Navigator requires props.initialRoute or props.initialRouteStack.");var n=e.length-1;return this.props.initialRoute&&(n=e.indexOf(this.props.initialRoute),b(-1!==n,"initialRoute is not in initialRouteStack.")),{sceneConfigStack:e.map(function(n){return t.props.configureScene(n,e)}),routeStack:e,presentedIndex:n,transitionFromIndex:null,activeGesture:null,pendingGestureProgress:null,transitionQueue:[]}},componentWillMount:function(){var t=this;this.__defineGetter__("navigationContext",this._getNavigationContext),this._subRouteFocus=[],this.parentNavigator=this.props.navigator,this._handlers={},this.springSystem=new G.SpringSystem,this.spring=this.springSystem.createSpring(),this.spring.setRestSpeedThreshold(.05),this.spring.setCurrentValue(0).setAtRest(),this.spring.addListener({onSpringEndStateChange:function(){t._interactionHandle||(t._interactionHandle=t.createInteractionHandle())},onSpringUpdate:function(){t._handleSpringUpdate()},onSpringAtRest:function(){t._completeTransition()}}),this.panGesture=p.create({onMoveShouldSetPanResponder:this._handleMoveShouldSetPanResponder,onPanResponderRelease:this._handlePanResponderRelease,onPanResponderMove:this._handlePanResponderMove,onPanResponderTerminate:this._handlePanResponderTerminate}),this._interactionHandle=null,this._emitWillFocus(this.state.routeStack[this.state.presentedIndex])},componentDidMount:function(){this._handleSpringUpdate(),this._emitDidFocus(this.state.routeStack[this.state.presentedIndex]),this._enableTVEventHandler()},componentWillUnmount:function(){this._navigationContext&&(this._navigationContext.dispose(),this._navigationContext=null),this.spring.destroy(),this._interactionHandle&&this.clearInteractionHandle(this._interactionHandle),this._disableTVEventHandler()},immediatelyResetRouteStack:function(t){var e=this,n=t.length-1;this._emitWillFocus(t[n]),this.setState({routeStack:t,sceneConfigStack:t.map(function(n){return e.props.configureScene(n,t)}),presentedIndex:n,activeGesture:null,transitionFromIndex:null,transitionQueue:[]},function(){e._handleSpringUpdate();var t=e._navBar;t&&t.immediatelyRefresh&&t.immediatelyRefresh(),e._emitDidFocus(e.state.routeStack[e.state.presentedIndex])})},_transitionTo:function(t,e,n,s){if(this.state.presentedIndex===t)return void(s&&s());if(null!==this.state.transitionFromIndex)return void this.state.transitionQueue.push({destIndex:t,velocity:e,cb:s});this.state.transitionFromIndex=this.state.presentedIndex,this.state.presentedIndex=t,this.state.transitionCb=s,this._onAnimationStart(),a&&a.startRecordingFps();var i=this.state.sceneConfigStack[this.state.transitionFromIndex]||this.state.sceneConfigStack[this.state.presentedIndex];b(i,"Cannot configure scene at index "+this.state.transitionFromIndex),null!=n&&this.spring.setCurrentValue(n),this.spring.setOvershootClampingEnabled(!0),this.spring.getSpringConfig().friction=i.springFriction,this.spring.getSpringConfig().tension=i.springTension,this.spring.setVelocity(e||i.defaultTransitionVelocity),this.spring.setEndValue(1)},_handleSpringUpdate:function(){if(this.isMounted())if(null!=this.state.transitionFromIndex)this._transitionBetween(this.state.transitionFromIndex,this.state.presentedIndex,this.spring.getCurrentValue());else if(null!=this.state.activeGesture){var t=this.state.presentedIndex+this._deltaForGestureAction(this.state.activeGesture);this._transitionBetween(this.state.presentedIndex,t,this.spring.getCurrentValue())}},_completeTransition:function(){if(this.isMounted()){if(1!==this.spring.getCurrentValue()&&0!==this.spring.getCurrentValue())return void(this.state.pendingGestureProgress&&(this.state.pendingGestureProgress=null));this._onAnimationEnd();var t=this.state.presentedIndex,e=this._subRouteFocus[t]||this.state.routeStack[t];if(a&&a.stopRecordingFps(Date.now()),this.state.transitionFromIndex=null,this.spring.setCurrentValue(0).setAtRest(),this._hideScenes(),this.state.transitionCb&&(this.state.transitionCb(),this.state.transitionCb=null),this._emitDidFocus(e),this._interactionHandle&&(this.clearInteractionHandle(this._interactionHandle),this._interactionHandle=null),this.state.pendingGestureProgress){var n=this.state.presentedIndex+this._deltaForGestureAction(this.state.activeGesture);return this._enableScene(n),void this.spring.setEndValue(this.state.pendingGestureProgress)}if(this.state.transitionQueue.length){var s=this.state.transitionQueue.shift();this._enableScene(s.destIndex),this._emitWillFocus(this.state.routeStack[s.destIndex]),this._transitionTo(s.destIndex,s.velocity,null,s.cb)}}},_emitDidFocus:function(t){this.navigationContext.emit("didfocus",{route:t}),this.props.onDidFocus&&this.props.onDidFocus(t)},_emitWillFocus:function(t){this.navigationContext.emit("willfocus",{route:t});var e=this._navBar;e&&e.handleWillFocus&&e.handleWillFocus(t),this.props.onWillFocus&&this.props.onWillFocus(t)},_hideScenes:function(){var t=null;this.state.activeGesture&&(t=this.state.presentedIndex+this._deltaForGestureAction(this.state.activeGesture));for(var e=0;e<this.state.routeStack.length;e++)e!==this.state.presentedIndex&&e!==this.state.transitionFromIndex&&e!==t&&this._disableScene(e)},_disableScene:function(t){this._sceneRefs[t]&&this._sceneRefs[t].setNativeProps(C)},_enableScene:function(t){var e=I([T.baseScene,this.props.sceneStyle]),n={pointerEvents:"auto",style:{top:e.top,bottom:e.bottom}};t!==this.state.transitionFromIndex&&t!==this.state.presentedIndex&&(n.style.opacity=0),this._sceneRefs[t]&&this._sceneRefs[t].setNativeProps(n)},_clearTransformations:function(t){var e=I([T.defaultSceneStyle]);this._sceneRefs[t].setNativeProps({style:e})},_onAnimationStart:function(){var t=this.state.presentedIndex,e=this.state.presentedIndex;null!=this.state.transitionFromIndex?t=this.state.transitionFromIndex:this.state.activeGesture&&(e=this.state.presentedIndex+this._deltaForGestureAction(this.state.activeGesture)),this._setRenderSceneToHardwareTextureAndroid(t,!0),this._setRenderSceneToHardwareTextureAndroid(e,!0);var n=this._navBar;n&&n.onAnimationStart&&n.onAnimationStart(t,e)},_onAnimationEnd:function(){for(var t=this.state.routeStack.length-1,e=0;e<=t;e++)this._setRenderSceneToHardwareTextureAndroid(e,!1);var n=this._navBar;n&&n.onAnimationEnd&&n.onAnimationEnd()},_setRenderSceneToHardwareTextureAndroid:function(t,e){var n=this._sceneRefs[t];null!==n&&void 0!==n&&n.setNativeProps({renderToHardwareTextureAndroid:e})},_handleTouchStart:function(){this._eligibleGestures=w},_handleMoveShouldSetPanResponder:function(t,e){var n=this.state.sceneConfigStack[this.state.presentedIndex];return!!n&&(this._expectingGestureGrant=this._matchGestureAction(this._eligibleGestures,n.gestures,e),!!this._expectingGestureGrant)},_doesGestureOverswipe:function(t){var e=this.state.presentedIndex<=0&&("pop"===t||"jumpBack"===t);return this.state.presentedIndex>=this.state.routeStack.length-1&&"jumpForward"===t||e},_deltaForGestureAction:function(t){switch(t){case"pop":case"jumpBack":return-1;case"jumpForward":return 1;default:return void b(!1,"Unsupported gesture action "+t)}},_handlePanResponderRelease:function(t,e){var n=this,s=this.state.sceneConfigStack[this.state.presentedIndex],i=this.state.activeGesture;if(i){var r=s.gestures[i],a=this.state.presentedIndex+this._deltaForGestureAction(this.state.activeGesture);if(0===this.spring.getCurrentValue())return this.spring.setCurrentValue(0).setAtRest(),void this._completeTransition();var o,u,h="top-to-bottom"===r.direction||"bottom-to-top"===r.direction,c="right-to-left"===r.direction||"bottom-to-top"===r.direction;h?(o=c?-e.vy:e.vy,u=c?-e.dy:e.dy):(o=c?-e.vx:e.vx,u=c?-e.dx:e.dx);var d=x(-10,o,10);if(Math.abs(o)<r.notMoving){d=u>r.fullDistance*r.stillCompletionRatio?r.snapVelocity:-r.snapVelocity}if(d<0||this._doesGestureOverswipe(i)){if(null==this.state.transitionFromIndex){var l=this.state.presentedIndex;this.state.presentedIndex=a,this._transitionTo(l,-d,1-this.spring.getCurrentValue())}}else this._emitWillFocus(this.state.routeStack[a]),this._transitionTo(a,d,null,function(){"pop"===i&&n._cleanScenesPastIndex(a)});this._detachGesture()}},_handlePanResponderTerminate:function(t,e){if(null!=this.state.activeGesture){var n=this.state.presentedIndex+this._deltaForGestureAction(this.state.activeGesture);this._detachGesture();var s=this.state.presentedIndex;this.state.presentedIndex=n,this._transitionTo(s,null,1-this.spring.getCurrentValue())}},_attachGesture:function(t){this.state.activeGesture=t;var e=this.state.presentedIndex+this._deltaForGestureAction(this.state.activeGesture);this._enableScene(e)},_detachGesture:function(){this.state.activeGesture=null,this.state.pendingGestureProgress=null,this._hideScenes()},_handlePanResponderMove:function(t,e){void 0!==this._isMoveGestureAttached&&(b(this._expectingGestureGrant,"Responder granted unexpectedly."),this._attachGesture(this._expectingGestureGrant),this._onAnimationStart(),this._expectingGestureGrant=void 0);var n=this.state.sceneConfigStack[this.state.presentedIndex];if(this.state.activeGesture){var s=n.gestures[this.state.activeGesture];return this._moveAttachedGesture(s,e)}var i=this._matchGestureAction(w,n.gestures,e);i&&this._attachGesture(i)},_moveAttachedGesture:function(t,e){var n="top-to-bottom"===t.direction||"bottom-to-top"===t.direction,s="right-to-left"===t.direction||"bottom-to-top"===t.direction,i=n?e.dy:e.dx;i=s?-i:i;var r=t.gestureDetectMovement,a=(i-r)/(t.fullDistance-r);if(a<0&&t.isDetachable){var o=this.state.presentedIndex+this._deltaForGestureAction(this.state.activeGesture);return this._transitionBetween(this.state.presentedIndex,o,0),this._detachGesture(),void(null!=this.state.pendingGestureProgress&&this.spring.setCurrentValue(0))}if(t.overswipe&&this._doesGestureOverswipe(this.state.activeGesture)){var u=t.overswipe.frictionConstant,h=t.overswipe.frictionByDistance;a*=1/(u+Math.abs(a)*h)}a=x(0,a,1),null!=this.state.transitionFromIndex?this.state.pendingGestureProgress=a:this.state.pendingGestureProgress?this.spring.setEndValue(a):this.spring.setCurrentValue(a)},_matchGestureAction:function(t,e,n){var s=this;if(!e||!t||!t.some)return null;var i=null;return t.some(function(t,r){var a=e[t];if(a){if(null==a.overswipe&&s._doesGestureOverswipe(t))return!1;var o="top-to-bottom"===a.direction||"bottom-to-top"===a.direction,u="right-to-left"===a.direction||"bottom-to-top"===a.direction,h=o?n.y0:n.x0,c=o?n.moveY:n.moveX,d=o?n.dy:n.dx,l=o?n.dx:n.dy,p=a.edgeHitWidth;u&&(h=-h,c=-c,d=-d,l=-l,p=o?-(k-p):-(y-p)),0===h&&(h=c);if(!(null==a.edgeHitWidth||h<p))return!1;if(!(d>=a.gestureDetectMovement))return!1;if(Math.abs(d)>Math.abs(l)*a.directionRatio)return i=t,!0;s._eligibleGestures=s._eligibleGestures.slice().splice(r,1)}}),i||null},_transitionSceneStyle:function(t,e,n,s){var i=this._sceneRefs[s];if(null!==i&&void 0!==i){var r=t<e?e:t,a=this.state.sceneConfigStack[r];a||(a=this.state.sceneConfigStack[r-1]);var o={};(s<t||s<e?a.animationInterpolators.out:a.animationInterpolators.into)(o,t<e?n:1-n)&&i.setNativeProps({style:o})}},_transitionBetween:function(t,e,n){this._transitionSceneStyle(t,e,n,t),this._transitionSceneStyle(t,e,n,e);var s=this._navBar;s&&s.updateProgress&&e>=0&&t>=0&&s.updateProgress(n,t,e)},_handleResponderTerminationRequest:function(){return!1},_getDestIndexWithinBounds:function(t){var e=this.state.presentedIndex,n=e+t;b(n>=0,"Cannot jump before the first route.");var s=this.state.routeStack.length-1;return b(s>=n,"Cannot jump past the last route."),n},_jumpN:function(t){var e=this._getDestIndexWithinBounds(t);this._enableScene(e),this._emitWillFocus(this.state.routeStack[e]),this._transitionTo(e)},jumpTo:function(t){var e=this.state.routeStack.indexOf(t);b(-1!==e,"Cannot jump to route that is not in the route stack"),this._jumpN(e-this.state.presentedIndex)},jumpForward:function(){this._jumpN(1)},jumpBack:function(){this._jumpN(-1)},push:function(t){var e=this;b(!!t,"Must supply route to push");var n=this.state.presentedIndex+1,s=this.state.routeStack.slice(0,n),i=this.state.sceneConfigStack.slice(0,n),r=s.concat([t]),a=r.length-1,o=this.props.configureScene(t,r),u=i.concat([o]);this._emitWillFocus(r[a]),this.setState({routeStack:r,sceneConfigStack:u},function(){e._enableScene(a),e._transitionTo(a,o.defaultTransitionVelocity)})},popN:function(t){var e=this;if(b("number"==typeof t,"Must supply a number to popN"),!((t=parseInt(t,10))<=0||this.state.presentedIndex-t<0)){var n=this.state.presentedIndex-t,s=this.state.routeStack[this.state.presentedIndex],i=this.props.configureScene(s);this._enableScene(n),this._clearTransformations(n),this._emitWillFocus(this.state.routeStack[n]),this._transitionTo(n,i.defaultTransitionVelocity,null,function(){e._cleanScenesPastIndex(n)})}},pop:function(){this.state.transitionQueue.length||this.popN(1)},replaceAtIndex:function(t,e,n){var s=this;if(b(!!t,"Must supply route to replace"),e<0&&(e+=this.state.routeStack.length),!(this.state.routeStack.length<=e)){var i=this.state.routeStack.slice(),r=this.state.sceneConfigStack.slice();i[e]=t,r[e]=this.props.configureScene(t,i),e===this.state.presentedIndex&&this._emitWillFocus(t),this.setState({routeStack:i,sceneConfigStack:r},function(){e===s.state.presentedIndex&&s._emitDidFocus(t),n&&n()})}},replace:function(t){this.replaceAtIndex(t,this.state.presentedIndex)},replacePrevious:function(t){this.replaceAtIndex(t,this.state.presentedIndex-1)},popToTop:function(){this.popToRoute(this.state.routeStack[0])},popToRoute:function(t){var e=this.state.routeStack.indexOf(t);b(-1!==e,"Calling popToRoute for a route that doesn't exist!");var n=this.state.presentedIndex-e;this.popN(n)},replacePreviousAndPop:function(t){this.state.routeStack.length<2||(this.replacePrevious(t),this.pop())},resetTo:function(t){var e=this;b(!!t,"Must supply route to push"),this.replaceAtIndex(t,0,function(){e.popN(e.state.presentedIndex)})},getCurrentRoutes:function(){return this.state.routeStack.slice()},_cleanScenesPastIndex:function(t){var e=t+1;e<this.state.routeStack.length&&this.setState({sceneConfigStack:this.state.sceneConfigStack.slice(0,e),routeStack:this.state.routeStack.slice(0,e)})},_renderScene:function(t,e){var n=this,s=null,i="auto";return e!==this.state.presentedIndex&&(s=T.disabledScene,i="none"),v.createElement(m,{collapsable:!1,key:"scene_"+r(t),ref:function(t){n._sceneRefs[e]=t},onStartShouldSetResponderCapture:function(){return null!=n.state.transitionFromIndex},pointerEvents:i,style:[T.baseScene,this.props.sceneStyle,s]},this.props.renderScene(t,this))},_renderNavigationBar:function(){var t=this,e=this.props.navigationBar;return e?v.cloneElement(e,{ref:function(n){t._navBar=n,e&&"function"==typeof e.ref&&e.ref(n)},navigator:this._navigationBarNavigator,navState:this.state}):null},_tvEventHandler:_,_enableTVEventHandler:function(){this._tvEventHandler=new _,this._tvEventHandler.enable(this,function(t,e){e&&"menu"===e.eventType&&t.pop()})},_disableTVEventHandler:function(){this._tvEventHandler&&(this._tvEventHandler.disable(),delete this._tvEventHandler)},render:function(){var t=this,e=new Map,n=this.state.routeStack.map(function(n,s){var i;return i=t._renderedSceneMap.has(n)&&s!==t.state.presentedIndex?t._renderedSceneMap.get(n):t._renderScene(n,s),e.set(n,i),i});return this._renderedSceneMap=e,v.createElement(m,{style:[T.container,this.props.style]},v.createElement(m,babelHelpers.extends({style:T.transitioner},this.panGesture.panHandlers,{onTouchStart:this._handleTouchStart,onResponderTerminationRequest:this._handleResponderTerminationRequest}),n),this._renderNavigationBar())},_getNavigationContext:function(){return this._navigationContext||(this._navigationContext=new h),this._navigationContext}});n.exports=P},294);
__d(function(n,t,i,e){"use strict";var r=t(203),a={componentWillUnmount:function(){for(;this._interactionMixinHandles.length;)r.clearInteractionHandle(this._interactionMixinHandles.pop())},_interactionMixinHandles:[],createInteractionHandle:function(){var n=r.createInteractionHandle();return this._interactionMixinHandles.push(n),n},clearInteractionHandle:function(n){r.clearInteractionHandle(n),this._interactionMixinHandles=this._interactionMixinHandles.filter(function(t){return t!==n})},runAfterInteractions:function(n){r.runAfterInteractions(n)}};i.exports=a},295);
__d(function(e,t,i,n){"use strict";var r=t(297),s=t(298),u=t(299),a=t(204),o=t(41),h=t(44),l=r.AT_TARGET,v=r.BUBBLING_PHASE,_=r.CAPTURING_PHASE,p=new a(["willfocus","didfocus"]),c=function(){function e(){babelHelpers.classCallCheck(this,e),this._bubbleEventEmitter=new s(this),this._captureEventEmitter=new s(this),this._currentRoute=null,this.__node=new u(this),this._emitCounter=0,this._emitQueue=[],this.addListener("willfocus",this._onFocus),this.addListener("didfocus",this._onFocus)}return babelHelpers.createClass(e,[{key:"appendChild",value:function(e){this.__node.appendChild(e.__node)}},{key:"addListener",value:function(e,t,i){p.has(e)&&(i=!1);var n=i?this._captureEventEmitter:this._bubbleEventEmitter;return n?n.addListener(e,t,this):{remove:o}}},{key:"emit",value:function(e,t,i){var n=this;if(this._emitCounter>0){var s=Array.prototype.slice.call(arguments);return void this._emitQueue.push(s)}if(this._emitCounter++,p.has(e))this.__emit(e,t,null,{defaultPrevented:!1,eventPhase:l,propagationStopped:!0,target:this});else{for(var u=[this],a=this.parent;a;)u.unshift(a),a=a.parent;var o=!1,h=!1,c=function(e){o=o||e.isPropagationStopped(),h=h||e.defaultPrevented};u.some(function(i){if(o)return!0;var r={defaultPrevented:h,eventPhase:_,propagationStopped:o,target:n};i.__emit(e,t,c,r)},this),u.reverse().some(function(i){if(o)return!0;var r={defaultPrevented:h,eventPhase:v,propagationStopped:o,target:n};i.__emit(e,t,c,r)},this)}if(i){var d=r.pool(e,this,t);o&&d.stopPropagation(),h&&d.preventDefault(),i.call(this,d),d.dispose()}for(this._emitCounter--;this._emitQueue.length;){var s=this._emitQueue.shift();this.emit.apply(this,s)}}},{key:"dispose",value:function(){this._bubbleEventEmitter&&this._bubbleEventEmitter.removeAllListeners(),this._captureEventEmitter&&this._captureEventEmitter.removeAllListeners(),this._bubbleEventEmitter=null,this._captureEventEmitter=null,this._currentRoute=null}},{key:"__emit",value:function(e,t,i,n){var r;switch(n.eventPhase){case _:r=this._captureEventEmitter;break;case l:case v:r=this._bubbleEventEmitter;break;default:h(!1,"invalid event phase %s",n.eventPhase)}n.target===this&&(n.eventPhase=l),r&&r.emit(e,t,i,n)}},{key:"_onFocus",value:function(e){h(e.data&&e.data.hasOwnProperty("route"),'event type "%s" should provide route',e.type),this._currentRoute=e.data.route}},{key:"parent",get:function(){var e=this.__node.getParent();return e?e.getValue():null}},{key:"top",get:function(){for(var e=null,t=this.__node.getParent();t;)e=t.getValue(),t=t.getParent();return e}},{key:"currentRoute",get:function(){return this._currentRoute}}]),e}();i.exports=c},296);
__d(function(t,e,s,n){"use strict";var i=e(44),a=function(){function t(){babelHelpers.classCallCheck(this,t),this._list=[]}return babelHelpers.createClass(t,[{key:"get",value:function(t,e,s){var n=void 0;return this._list.length>0?(n=this._list.pop(),n.constructor.call(n,t,e,s)):n=new u(t,e,s),n}},{key:"put",value:function(t){this._list.push(t)}}]),t}(),r=new a,u=function(){function t(e,s,n){babelHelpers.classCallCheck(this,t),this.target=s,this.eventPhase=t.NONE,this._type=e,this._currentTarget=s,this._data=n,this._defaultPrevented=!1,this._disposed=!1,this._propagationStopped=!1}return babelHelpers.createClass(t,null,[{key:"pool",value:function(t,e,s){return r.get(t,e,s)}}]),babelHelpers.createClass(t,[{key:"preventDefault",value:function(){this._defaultPrevented=!0}},{key:"stopPropagation",value:function(){this._propagationStopped=!0}},{key:"stop",value:function(){this.preventDefault(),this.stopPropagation()}},{key:"isPropagationStopped",value:function(){return this._propagationStopped}},{key:"dispose",value:function(){i(!this._disposed,"NavigationEvent is already disposed"),this._disposed=!0,this.target=null,this.eventPhase=t.NONE,this._type="",this._currentTarget=null,this._data=null,this._defaultPrevented=!1,r.put(this)}},{key:"type",get:function(){return this._type}},{key:"currentTarget",get:function(){return this._currentTarget}},{key:"data",get:function(){return this._data}},{key:"defaultPrevented",get:function(){return this._defaultPrevented}}]),t}();u.NONE=0,u.CAPTURING_PHASE=1,u.AT_TARGET=2,u.BUBBLING_PHASE=3,s.exports=u},297);
__d(function(t,e,i,r){"use strict";var s=e(102),a=e(297),o=function(t){function e(t){babelHelpers.classCallCheck(this,e);var i=babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i._emitting=!1,i._emitQueue=[],i._target=t,i}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"emit",value:function(t,i,r,s){if(this._emitting){var o=Array.prototype.slice.call(arguments);return void this._emitQueue.push(o)}this._emitting=!0;var l=a.pool(t,this._target,i);for(s&&(s.target&&(l.target=s.target),s.eventPhase&&(l.eventPhase=s.eventPhase),s.defaultPrevented&&l.preventDefault(),s.propagationStopped&&l.stopPropagation()),babelHelpers.get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).call(this,String(t),l),"function"==typeof r&&r.call(this._target,l),l.dispose(),this._emitting=!1;this._emitQueue.length;){var o=this._emitQueue.shift();this.emit.apply(this,o)}}}]),e}(s);i.exports=o},298);
__d(function(e,n,t,i){"use strict";var r=n(44),l=n(300),h=l.List,u=function(){function e(n){babelHelpers.classCallCheck(this,e),this.__parent=null,this._children=new h,this._value=n}return babelHelpers.createClass(e,[{key:"getValue",value:function(){return this._value}},{key:"getParent",value:function(){return this.__parent}},{key:"getChildrenCount",value:function(){return this._children.size}},{key:"getChildAt",value:function(e){return e>-1&&e<this._children.size?this._children.get(e):null}},{key:"appendChild",value:function(e){e.__parent&&e.__parent.removeChild(e),e.__parent=this,this._children=this._children.push(e)}},{key:"removeChild",value:function(e){var n=this._children.indexOf(e);r(n>-1,"The node to be removed is not a child of this node."),e.__parent=null,this._children=this._children.splice(n,1)}},{key:"indexOf",value:function(e){return this._children.indexOf(e)}},{key:"forEach",value:function(e,n){this._children.forEach(e,n)}},{key:"map",value:function(e,n){return this._children.map(e,n).toJS()}},{key:"some",value:function(e,n){return this._children.some(e,n)}}]),e}();t.exports=u},299);
__d(function(t,e,r,n){!function(t,e){"object"==typeof n&&void 0!==r?r.exports=e():"function"==typeof define&&define.amd?define(e):t.Immutable=e()}(this,function(){"use strict";function t(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function e(t){return o(t)?t:O(t)}function r(t){return u(t)?t:x(t)}function n(t){return s(t)?t:k(t)}function i(t){return o(t)&&!a(t)?t:A(t)}function o(t){return!(!t||!t[ar])}function u(t){return!(!t||!t[hr])}function s(t){return!(!t||!t[fr])}function a(t){return u(t)||s(t)}function h(t){return!(!t||!t[cr])}function f(t){return t.value=!1,t}function c(t){t&&(t.value=!0)}function _(){}function p(t,e){e=e||0;for(var r=Math.max(0,t.length-e),n=new Array(r),i=0;i<r;i++)n[i]=t[i+e];return n}function l(t){return void 0===t.size&&(t.size=t.__iterate(y)),t.size}function v(t,e){if("number"!=typeof e){var r=e>>>0;if(""+r!==e||4294967295===r)return NaN;e=r}return e<0?l(t)+e:e}function y(){return!0}function d(t,e,r){return(0===t||void 0!==r&&t<=-r)&&(void 0===e||void 0!==r&&e>=r)}function m(t,e){return w(t,e,0)}function g(t,e){return w(t,e,e)}function w(t,e,r){return void 0===t?r:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function S(t){this.next=t}function z(t,e,r,n){var i=0===t?e:1===t?r:[e,r];return n?n.value=i:n={value:i,done:!1},n}function I(){return{value:void 0,done:!0}}function b(t){return!!M(t)}function q(t){return t&&"function"==typeof t.next}function D(t){var e=M(t);return e&&e.call(t)}function M(t){var e=t&&(Sr&&t[Sr]||t[zr]);if("function"==typeof e)return e}function E(t){return t&&"number"==typeof t.length}function O(t){return null===t||void 0===t?T():o(t)?t.toSeq():C(t)}function x(t){return null===t||void 0===t?T().toKeyedSeq():o(t)?u(t)?t.toSeq():t.fromEntrySeq():W(t)}function k(t){return null===t||void 0===t?T():o(t)?u(t)?t.entrySeq():t.toIndexedSeq():B(t)}function A(t){return(null===t||void 0===t?T():o(t)?u(t)?t.entrySeq():t:B(t)).toSetSeq()}function j(t){this._array=t,this.size=t.length}function K(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function R(t){this._iterable=t,this.size=t.length||t.size}function U(t){this._iterator=t,this._iteratorCache=[]}function L(t){return!(!t||!t[br])}function T(){return qr||(qr=new j([]))}function W(t){var e=Array.isArray(t)?new j(t).fromEntrySeq():q(t)?new U(t).fromEntrySeq():b(t)?new R(t).fromEntrySeq():"object"==typeof t?new K(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function B(t){var e=J(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function C(t){var e=J(t)||"object"==typeof t&&new K(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function J(t){return E(t)?new j(t):q(t)?new U(t):b(t)?new R(t):void 0}function N(t,e,r,n){var i=t._cache;if(i){for(var o=i.length-1,u=0;u<=o;u++){var s=i[r?o-u:u];if(!1===e(s[1],n?s[0]:u,t))return u+1}return u}return t.__iterateUncached(e,r)}function P(t,e,r,n){var i=t._cache;if(i){var o=i.length-1,u=0;return new S(function(){var t=i[r?o-u:u];return u++>o?I():z(e,n?t[0]:u-1,t[1])})}return t.__iteratorUncached(e,r)}function H(t,e){return e?V(e,t,"",{"":t}):Y(t)}function V(t,e,r,n){return Array.isArray(e)?t.call(n,r,k(e).map(function(r,n){return V(t,r,n,e)})):Q(e)?t.call(n,r,x(e).map(function(r,n){return V(t,r,n,e)})):e}function Y(t){return Array.isArray(t)?k(t).map(Y).toList():Q(t)?x(t).map(Y).toMap():t}function Q(t){return t&&(t.constructor===Object||void 0===t.constructor)}function X(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function F(t,e){if(t===e)return!0;if(!o(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||u(t)!==u(e)||s(t)!==s(e)||h(t)!==h(e))return!1;if(0===t.size&&0===e.size)return!0;var r=!a(t);if(h(t)){var n=t.entries();return e.every(function(t,e){var i=n.next().value;return i&&X(i[1],t)&&(r||X(i[0],e))})&&n.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var f=t;t=e,e=f}var c=!0,_=e.__iterate(function(e,n){if(r?!t.has(e):i?!X(e,t.get(n,vr)):!X(t.get(n,vr),e))return c=!1,!1});return c&&t.size===_}function G(t,e){if(!(this instanceof G))return new G(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Dr)return Dr;Dr=this}}function Z(t,e){if(!t)throw new Error(e)}function $(t,e,r){if(!(this instanceof $))return new $(t,e,r);if(Z(0!==r,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),r=void 0===r?1:Math.abs(r),e<t&&(r=-r),this._start=t,this._end=e,this._step=r,this.size=Math.max(0,Math.ceil((e-t)/r-1)+1),0===this.size){if(Mr)return Mr;Mr=this}}function tt(){throw TypeError("Abstract")}function et(){}function rt(){}function nt(){}function it(t){return t>>>1&1073741824|3221225471&t}function ot(t){if(!1===t||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null===t||void 0===t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){var r=0|t;for(r!==t&&(r^=4294967295*t);t>4294967295;)t/=4294967295,r^=t;return it(r)}if("string"===e)return t.length>Rr?ut(t):st(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return at(t);if("function"==typeof t.toString)return st(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function ut(t){var e=Tr[t];return void 0===e&&(e=st(t),Lr===Ur&&(Lr=0,Tr={}),Lr++,Tr[t]=e),e}function st(t){for(var e=0,r=0;r<t.length;r++)e=31*e+t.charCodeAt(r)|0;return it(e)}function at(t){var e;if(Ar&&void 0!==(e=Er.get(t)))return e;if(void 0!==(e=t[Kr]))return e;if(!kr){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Kr]))return e;if(void 0!==(e=ht(t)))return e}if(e=++jr,1073741824&jr&&(jr=0),Ar)Er.set(t,e);else{if(void 0!==xr&&!1===xr(t))throw new Error("Non-extensible objects are not allowed as keys.");if(kr)Object.defineProperty(t,Kr,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Kr]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Kr]=e}}return e}function ht(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function ft(t){Z(t!==1/0,"Cannot perform this action with an infinite size.")}function ct(t){return null===t||void 0===t?zt():_t(t)&&!h(t)?t:zt().withMutations(function(e){var n=r(t);ft(n.size),n.forEach(function(t,r){return e.set(r,t)})})}function _t(t){return!(!t||!t[Wr])}function pt(t,e){this.ownerID=t,this.entries=e}function lt(t,e,r){this.ownerID=t,this.bitmap=e,this.nodes=r}function vt(t,e,r){this.ownerID=t,this.count=e,this.nodes=r}function yt(t,e,r){this.ownerID=t,this.keyHash=e,this.entries=r}function dt(t,e,r){this.ownerID=t,this.keyHash=e,this.entry=r}function mt(t,e,r){this._type=e,this._reverse=r,this._stack=t._root&&wt(t._root)}function gt(t,e){return z(t,e[0],e[1])}function wt(t,e){return{node:t,index:0,__prev:e}}function St(t,e,r,n){var i=Object.create(Br);return i.size=t,i._root=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function zt(){return Cr||(Cr=St(0))}function It(t,e,r){var n,i;if(t._root){var o=f(yr),u=f(dr);if(n=bt(t._root,t.__ownerID,0,void 0,e,r,o,u),!u.value)return t;i=t.size+(o.value?r===vr?-1:1:0)}else{if(r===vr)return t;i=1,n=new pt(t.__ownerID,[[e,r]])}return t.__ownerID?(t.size=i,t._root=n,t.__hash=void 0,t.__altered=!0,t):n?St(i,n):zt()}function bt(t,e,r,n,i,o,u,s){return t?t.update(e,r,n,i,o,u,s):o===vr?t:(c(s),c(u),new dt(e,n,[i,o]))}function qt(t){return t.constructor===dt||t.constructor===yt}function Dt(t,e,r,n,i){if(t.keyHash===n)return new yt(e,n,[t.entry,i]);var o,u=(0===r?t.keyHash:t.keyHash>>>r)&lr,s=(0===r?n:n>>>r)&lr;return new lt(e,1<<u|1<<s,u===s?[Dt(t,e,r+_r,n,i)]:(o=new dt(e,n,i),u<s?[t,o]:[o,t]))}function Mt(t,e,r,n){t||(t=new _);for(var i=new dt(t,ot(r),[r,n]),o=0;o<e.length;o++){var u=e[o];i=i.update(t,0,void 0,u[0],u[1])}return i}function Et(t,e,r,n){for(var i=0,o=0,u=new Array(r),s=0,a=1,h=e.length;s<h;s++,a<<=1){var f=e[s];void 0!==f&&s!==n&&(i|=a,u[o++]=f)}return new lt(t,i,u)}function Ot(t,e,r,n,i){for(var o=0,u=new Array(pr),s=0;0!==r;s++,r>>>=1)u[s]=1&r?e[o++]:void 0;return u[n]=i,new vt(t,o+1,u)}function xt(t,e,n){for(var i=[],u=0;u<n.length;u++){var s=n[u],a=r(s);o(s)||(a=a.map(function(t){return H(t)})),i.push(a)}return jt(t,e,i)}function kt(t,e,r){return t&&t.mergeDeep&&o(e)?t.mergeDeep(e):X(t,e)?t:e}function At(t){return function(e,r,n){if(e&&e.mergeDeepWith&&o(r))return e.mergeDeepWith(t,r);var i=t(e,r,n);return X(e,i)?e:i}}function jt(t,e,r){return r=r.filter(function(t){return 0!==t.size}),0===r.length?t:0!==t.size||t.__ownerID||1!==r.length?t.withMutations(function(t){for(var n=e?function(r,n){t.update(n,vr,function(t){return t===vr?r:e(t,r,n)})}:function(e,r){t.set(r,e)},i=0;i<r.length;i++)r[i].forEach(n)}):t.constructor(r[0])}function Kt(t,e,r,n){var i=t===vr,o=e.next();if(o.done){var u=i?r:t,s=n(u);return s===u?t:s}Z(i||t&&t.set,"invalid keyPath");var a=o.value,h=i?vr:t.get(a,vr),f=Kt(h,e,r,n);return f===h?t:f===vr?t.remove(a):(i?zt():t).set(a,f)}function Rt(t){return t-=t>>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function Ut(t,e,r,n){var i=n?t:p(t);return i[e]=r,i}function Lt(t,e,r,n){var i=t.length+1;if(n&&e+1===i)return t[e]=r,t;for(var o=new Array(i),u=0,s=0;s<i;s++)s===e?(o[s]=r,u=-1):o[s]=t[s+u];return o}function Tt(t,e,r){var n=t.length-1;if(r&&e===n)return t.pop(),t;for(var i=new Array(n),o=0,u=0;u<n;u++)u===e&&(o=1),i[u]=t[u+o];return i}function Wt(t){var e=Pt();if(null===t||void 0===t)return e;if(Bt(t))return t;var r=n(t),i=r.size;return 0===i?e:(ft(i),i>0&&i<pr?Nt(0,i,_r,null,new Ct(r.toArray())):e.withMutations(function(t){t.setSize(i),r.forEach(function(e,r){return t.set(r,e)})}))}function Bt(t){return!(!t||!t[Hr])}function Ct(t,e){this.array=t,this.ownerID=e}function Jt(t,e){function r(t,e,r){return 0===e?n(t,r):i(t,e,r)}function n(t,r){var n=r===s?a&&a.array:t&&t.array,i=r>o?0:o-r,h=u-r;return h>pr&&(h=pr),function(){if(i===h)return Qr;var t=e?--h:i++;return n&&n[t]}}function i(t,n,i){var s,a=t&&t.array,h=i>o?0:o-i>>n,f=1+(u-i>>n);return f>pr&&(f=pr),function(){for(;;){if(s){var t=s();if(t!==Qr)return t;s=null}if(h===f)return Qr;var o=e?--f:h++;s=r(a&&a[o],n-_r,i+(o<<n))}}}var o=t._origin,u=t._capacity,s=Gt(u),a=t._tail;return r(t._root,t._level,0)}function Nt(t,e,r,n,i,o,u){var s=Object.create(Vr);return s.size=e-t,s._origin=t,s._capacity=e,s._level=r,s._root=n,s._tail=i,s.__ownerID=o,s.__hash=u,s.__altered=!1,s}function Pt(){return Yr||(Yr=Nt(0,0,_r))}function Ht(t,e,r){if((e=v(t,e))!==e)return t;if(e>=t.size||e<0)return t.withMutations(function(t){e<0?Xt(t,e).set(0,r):Xt(t,0,e+1).set(e,r)});e+=t._origin;var n=t._tail,i=t._root,o=f(dr);return e>=Gt(t._capacity)?n=Vt(n,t.__ownerID,0,e,r,o):i=Vt(i,t.__ownerID,t._level,e,r,o),o.value?t.__ownerID?(t._root=i,t._tail=n,t.__hash=void 0,t.__altered=!0,t):Nt(t._origin,t._capacity,t._level,i,n):t}function Vt(t,e,r,n,i,o){var u=n>>>r&lr,s=t&&u<t.array.length;if(!s&&void 0===i)return t;var a;if(r>0){var h=t&&t.array[u],f=Vt(h,e,r-_r,n,i,o);return f===h?t:(a=Yt(t,e),a.array[u]=f,a)}return s&&t.array[u]===i?t:(c(o),a=Yt(t,e),void 0===i&&u===a.array.length-1?a.array.pop():a.array[u]=i,a)}function Yt(t,e){return e&&t&&e===t.ownerID?t:new Ct(t?t.array.slice():[],e)}function Qt(t,e){if(e>=Gt(t._capacity))return t._tail;if(e<1<<t._level+_r){for(var r=t._root,n=t._level;r&&n>0;)r=r.array[e>>>n&lr],n-=_r;return r}}function Xt(t,e,r){void 0!==e&&(e|=0),void 0!==r&&(r|=0);var n=t.__ownerID||new _,i=t._origin,o=t._capacity,u=i+e,s=void 0===r?o:r<0?o+r:i+r;if(u===i&&s===o)return t;if(u>=s)return t.clear();for(var a=t._level,h=t._root,f=0;u+f<0;)h=new Ct(h&&h.array.length?[void 0,h]:[],n),a+=_r,f+=1<<a;f&&(u+=f,i+=f,s+=f,o+=f);for(var c=Gt(o),p=Gt(s);p>=1<<a+_r;)h=new Ct(h&&h.array.length?[h]:[],n),a+=_r;var l=t._tail,v=p<c?Qt(t,s-1):p>c?new Ct([],n):l;if(l&&p>c&&u<o&&l.array.length){h=Yt(h,n);for(var y=h,d=a;d>_r;d-=_r){var m=c>>>d&lr;y=y.array[m]=Yt(y.array[m],n)}y.array[c>>>_r&lr]=l}if(s<o&&(v=v&&v.removeAfter(n,0,s)),u>=p)u-=p,s-=p,a=_r,h=null,v=v&&v.removeBefore(n,0,u);else if(u>i||p<c){for(f=0;h;){var g=u>>>a&lr;if(g!==p>>>a&lr)break;g&&(f+=(1<<a)*g),a-=_r,h=h.array[g]}h&&u>i&&(h=h.removeBefore(n,a,u-f)),h&&p<c&&(h=h.removeAfter(n,a,p-f)),f&&(u-=f,s-=f)}return t.__ownerID?(t.size=s-u,t._origin=u,t._capacity=s,t._level=a,t._root=h,t._tail=v,t.__hash=void 0,t.__altered=!0,t):Nt(u,s,a,h,v)}function Ft(t,e,r){for(var i=[],u=0,s=0;s<r.length;s++){var a=r[s],h=n(a);h.size>u&&(u=h.size),o(a)||(h=h.map(function(t){return H(t)})),i.push(h)}return u>t.size&&(t=t.setSize(u)),jt(t,e,i)}function Gt(t){return t<pr?0:t-1>>>_r<<_r}function Zt(t){return null===t||void 0===t?ee():$t(t)?t:ee().withMutations(function(e){var n=r(t);ft(n.size),n.forEach(function(t,r){return e.set(r,t)})})}function $t(t){return _t(t)&&h(t)}function te(t,e,r,n){var i=Object.create(Zt.prototype);return i.size=t?t.size:0,i._map=t,i._list=e,i.__ownerID=r,i.__hash=n,i}function ee(){return Xr||(Xr=te(zt(),Pt()))}function re(t,e,r){var n,i,o=t._map,u=t._list,s=o.get(e),a=void 0!==s;if(r===vr){if(!a)return t;u.size>=pr&&u.size>=2*o.size?(i=u.filter(function(t,e){return void 0!==t&&s!==e}),n=i.toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(n.__ownerID=i.__ownerID=t.__ownerID)):(n=o.remove(e),i=s===u.size-1?u.pop():u.set(s,void 0))}else if(a){if(r===u.get(s)[1])return t;n=o,i=u.set(s,[e,r])}else n=o.set(e,u.size),i=u.set(u.size,[e,r]);return t.__ownerID?(t.size=n.size,t._map=n,t._list=i,t.__hash=void 0,t):te(n,i)}function ne(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ie(t){this._iter=t,this.size=t.size}function oe(t){this._iter=t,this.size=t.size}function ue(t){this._iter=t,this.size=t.size}function se(t){var e=Ee(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Oe,e.__iterateUncached=function(e,r){var n=this;return t.__iterate(function(t,r){return!1!==e(r,t,n)},r)},e.__iteratorUncached=function(e,r){if(e===wr){var n=t.__iterator(e,r);return new S(function(){var t=n.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===gr?mr:gr,r)},e}function ae(t,e,r){var n=Ee(t);return n.size=t.size,n.has=function(e){return t.has(e)},n.get=function(n,i){var o=t.get(n,vr);return o===vr?i:e.call(r,o,n,t)},n.__iterateUncached=function(n,i){var o=this;return t.__iterate(function(t,i,u){return!1!==n(e.call(r,t,i,u),i,o)},i)},n.__iteratorUncached=function(n,i){var o=t.__iterator(wr,i);return new S(function(){var i=o.next();if(i.done)return i;var u=i.value,s=u[0];return z(n,s,e.call(r,u[1],s,t),i)})},n}function he(t,e){var r=Ee(t);return r._iter=t,r.size=t.size,r.reverse=function(){return t},t.flip&&(r.flip=function(){var e=se(t);return e.reverse=function(){return t.flip()},e}),r.get=function(r,n){return t.get(e?r:-1-r,n)},r.has=function(r){return t.has(e?r:-1-r)},r.includes=function(e){return t.includes(e)},r.cacheResult=Oe,r.__iterate=function(e,r){var n=this;return t.__iterate(function(t,r){return e(t,r,n)},!r)},r.__iterator=function(e,r){return t.__iterator(e,!r)},r}function fe(t,e,r,n){var i=Ee(t);return n&&(i.has=function(n){var i=t.get(n,vr);return i!==vr&&!!e.call(r,i,n,t)},i.get=function(n,i){var o=t.get(n,vr);return o!==vr&&e.call(r,o,n,t)?o:i}),i.__iterateUncached=function(i,o){var u=this,s=0;return t.__iterate(function(t,o,a){if(e.call(r,t,o,a))return s++,i(t,n?o:s-1,u)},o),s},i.__iteratorUncached=function(i,o){var u=t.__iterator(wr,o),s=0;return new S(function(){for(;;){var o=u.next();if(o.done)return o;var a=o.value,h=a[0],f=a[1];if(e.call(r,f,h,t))return z(i,n?h:s++,f,o)}})},i}function ce(t,e,r){var n=ct().asMutable();return t.__iterate(function(i,o){n.update(e.call(r,i,o,t),0,function(t){return t+1})}),n.asImmutable()}function _e(t,e,r){var n=u(t),i=(h(t)?Zt():ct()).asMutable();t.__iterate(function(o,u){i.update(e.call(r,o,u,t),function(t){return t=t||[],t.push(n?[u,o]:o),t})});var o=Me(t);return i.map(function(e){return be(t,o(e))})}function pe(t,e,r,n){var i=t.size;if(void 0!==e&&(e|=0),void 0!==r&&(r|=0),d(e,r,i))return t;var o=m(e,i),u=g(r,i);if(o!==o||u!==u)return pe(t.toSeq().cacheResult(),e,r,n);var s,a=u-o;a===a&&(s=a<0?0:a);var h=Ee(t);return h.size=0===s?s:t.size&&s||void 0,!n&&L(t)&&s>=0&&(h.get=function(e,r){return e=v(this,e),e>=0&&e<s?t.get(e+o,r):r}),h.__iterateUncached=function(e,r){var i=this;if(0===s)return 0;if(r)return this.cacheResult().__iterate(e,r);var u=0,a=!0,h=0;return t.__iterate(function(t,r){if(!a||!(a=u++<o))return h++,!1!==e(t,n?r:h-1,i)&&h!==s}),h},h.__iteratorUncached=function(e,r){if(0!==s&&r)return this.cacheResult().__iterator(e,r);var i=0!==s&&t.__iterator(e,r),u=0,a=0;return new S(function(){for(;u++<o;)i.next();if(++a>s)return I();var t=i.next();return n||e===gr?t:e===mr?z(e,a-1,void 0,t):z(e,a-1,t.value[1],t)})},h}function le(t,e,r){var n=Ee(t);return n.__iterateUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterate(n,i);var u=0;return t.__iterate(function(t,i,s){return e.call(r,t,i,s)&&++u&&n(t,i,o)}),u},n.__iteratorUncached=function(n,i){var o=this;if(i)return this.cacheResult().__iterator(n,i);var u=t.__iterator(wr,i),s=!0;return new S(function(){if(!s)return I();var t=u.next();if(t.done)return t;var i=t.value,a=i[0],h=i[1];return e.call(r,h,a,o)?n===wr?t:z(n,a,h,t):(s=!1,I())})},n}function ve(t,e,r,n){var i=Ee(t);return i.__iterateUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,a=0;return t.__iterate(function(t,o,h){if(!s||!(s=e.call(r,t,o,h)))return a++,i(t,n?o:a-1,u)}),a},i.__iteratorUncached=function(i,o){var u=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(wr,o),a=!0,h=0;return new S(function(){var t,o,f;do{if(t=s.next(),t.done)return n||i===gr?t:i===mr?z(i,h++,void 0,t):z(i,h++,t.value[1],t);var c=t.value;o=c[0],f=c[1],a&&(a=e.call(r,f,o,u))}while(a);return i===wr?t:z(i,o,f,t)})},i}function ye(t,e){var n=u(t),i=[t].concat(e).map(function(t){return o(t)?n&&(t=r(t)):t=n?W(t):B(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var a=i[0];if(a===t||n&&u(a)||s(t)&&s(a))return a}var h=new j(i);return n?h=h.toKeyedSeq():s(t)||(h=h.toSetSeq()),h=h.flatten(!0),h.size=i.reduce(function(t,e){if(void 0!==t){var r=e.size;if(void 0!==r)return t+r}},0),h}function de(t,e,r){var n=Ee(t);return n.__iterateUncached=function(n,i){function u(t,h){var f=this;t.__iterate(function(t,i){return(!e||h<e)&&o(t)?u(t,h+1):!1===n(t,r?i:s++,f)&&(a=!0),!a},i)}var s=0,a=!1;return u(t,0),s},n.__iteratorUncached=function(n,i){var u=t.__iterator(n,i),s=[],a=0;return new S(function(){for(;u;){var t=u.next();if(!1===t.done){var h=t.value;if(n===wr&&(h=h[1]),e&&!(s.length<e)||!o(h))return r?t:z(n,a++,h,t);s.push(u),u=h.__iterator(n,i)}else u=s.pop()}return I()})},n}function me(t,e,r){var n=Me(t);return t.toSeq().map(function(i,o){return n(e.call(r,i,o,t))}).flatten(!0)}function ge(t,e){var r=Ee(t);return r.size=t.size&&2*t.size-1,r.__iterateUncached=function(r,n){var i=this,o=0;return t.__iterate(function(t,n){return(!o||!1!==r(e,o++,i))&&!1!==r(t,o++,i)},n),o},r.__iteratorUncached=function(r,n){var i,o=t.__iterator(gr,n),u=0;return new S(function(){return(!i||u%2)&&(i=o.next(),i.done)?i:u%2?z(r,u++,e):z(r,u++,i.value,i)})},r}function we(t,e,r){e||(e=xe);var n=u(t),i=0,o=t.toSeq().map(function(e,n){return[n,e,i++,r?r(e,n,t):e]}).toArray();return o.sort(function(t,r){return e(t[3],r[3])||t[2]-r[2]}).forEach(n?function(t,e){o[e].length=2}:function(t,e){o[e]=t[1]}),n?x(o):s(t)?k(o):A(o)}function Se(t,e,r){if(e||(e=xe),r){var n=t.toSeq().map(function(e,n){return[e,r(e,n,t)]}).reduce(function(t,r){return ze(e,t[1],r[1])?r:t});return n&&n[0]}return t.reduce(function(t,r){return ze(e,t,r)?r:t})}function ze(t,e,r){var n=t(r,e);return 0===n&&r!==e&&(void 0===r||null===r||r!==r)||n>0}function Ie(t,r,n){var i=Ee(t);return i.size=new j(n).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var r,n=this.__iterator(gr,e),i=0;!(r=n.next()).done&&!1!==t(r.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=n.map(function(t){return t=e(t),D(i?t.reverse():t)}),u=0,s=!1;return new S(function(){var e;return s||(e=o.map(function(t){return t.next()}),s=e.some(function(t){return t.done})),s?I():z(t,u++,r.apply(null,e.map(function(t){return t.value})))})},i}function be(t,e){return L(t)?e:t.constructor(e)}function qe(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function De(t){return ft(t.size),l(t)}function Me(t){return u(t)?r:s(t)?n:i}function Ee(t){return Object.create((u(t)?x:s(t)?k:A).prototype)}function Oe(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):O.prototype.cacheResult.call(this)}function xe(t,e){return t>e?1:t<e?-1:0}function ke(t){var r=D(t);if(!r){if(!E(t))throw new TypeError("Expected iterable or array-like: "+t);r=D(e(t))}return r}function Ae(t,e){var r,n=function(o){if(o instanceof n)return o;if(!(this instanceof n))return new n(o);if(!r){r=!0;var u=Object.keys(t);Re(i,u),i.size=u.length,i._name=e,i._keys=u,i._defaultValues=t}this._map=ct(o)},i=n.prototype=Object.create(Fr);return i.constructor=n,n}function je(t,e,r){var n=Object.create(Object.getPrototypeOf(t));return n._map=e,n.__ownerID=r,n}function Ke(t){return t._name||t.constructor.name||"Record"}function Re(t,e){try{e.forEach(Ue.bind(void 0,t))}catch(t){}}function Ue(t,e){Object.defineProperty(t,e,{get:function(){return this.get(e)},set:function(t){Z(this.__ownerID,"Cannot set on an immutable record."),this.set(e,t)}})}function Le(t){return null===t||void 0===t?Ce():Te(t)&&!h(t)?t:Ce().withMutations(function(e){var r=i(t);ft(r.size),r.forEach(function(t){return e.add(t)})})}function Te(t){return!(!t||!t[Gr])}function We(t,e){return t.__ownerID?(t.size=e.size,t._map=e,t):e===t._map?t:0===e.size?t.__empty():t.__make(e)}function Be(t,e){var r=Object.create(Zr);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function Ce(){return $r||($r=Be(zt()))}function Je(t){return null===t||void 0===t?He():Ne(t)?t:He().withMutations(function(e){var r=i(t);ft(r.size),r.forEach(function(t){return e.add(t)})})}function Ne(t){return Te(t)&&h(t)}function Pe(t,e){var r=Object.create(tn);return r.size=t?t.size:0,r._map=t,r.__ownerID=e,r}function He(){return en||(en=Pe(ee()))}function Ve(t){return null===t||void 0===t?Xe():Ye(t)?t:Xe().unshiftAll(t)}function Ye(t){return!(!t||!t[rn])}function Qe(t,e,r,n){var i=Object.create(nn);return i.size=t,i._head=e,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}function Xe(){return on||(on=Qe(0))}function Fe(t,e){var r=function(r){t.prototype[r]=e[r]};return Object.keys(e).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(r),t}function Ge(t,e){return e}function Ze(t,e){return[e,t]}function $e(t){return function(){return!t.apply(this,arguments)}}function tr(t){return function(){return-t.apply(this,arguments)}}function er(t){return"string"==typeof t?JSON.stringify(t):t}function rr(){return p(arguments)}function nr(t,e){return t<e?1:t>e?-1:0}function ir(t){if(t.size===1/0)return 0;var e=h(t),r=u(t),n=e?1:0;return or(t.__iterate(r?e?function(t,e){n=31*n+ur(ot(t),ot(e))|0}:function(t,e){n=n+ur(ot(t),ot(e))|0}:e?function(t){n=31*n+ot(t)|0}:function(t){n=n+ot(t)|0}),n)}function or(t,e){return e=Or(e,3432918353),e=Or(e<<15|e>>>-15,461845907),e=Or(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=Or(e^e>>>16,2246822507),e=Or(e^e>>>13,3266489909),e=it(e^e>>>16)}function ur(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var sr=Array.prototype.slice;t(r,e),t(n,e),t(i,e),e.isIterable=o,e.isKeyed=u,e.isIndexed=s,e.isAssociative=a,e.isOrdered=h,e.Keyed=r,e.Indexed=n,e.Set=i;var ar="@@__IMMUTABLE_ITERABLE__@@",hr="@@__IMMUTABLE_KEYED__@@",fr="@@__IMMUTABLE_INDEXED__@@",cr="@@__IMMUTABLE_ORDERED__@@",_r=5,pr=1<<_r,lr=pr-1,vr={},yr={value:!1},dr={value:!1},mr=0,gr=1,wr=2,Sr="function"==typeof Symbol&&("function"==typeof Symbol?Symbol.iterator:"@@iterator"),zr="@@iterator",Ir=Sr||zr;S.prototype.toString=function(){return"[Iterator]"},S.KEYS=mr,S.VALUES=gr,S.ENTRIES=wr,S.prototype.inspect=S.prototype.toSource=function(){return this.toString()},S.prototype[Ir]=function(){return this},t(O,e),O.of=function(){return O(arguments)},O.prototype.toSeq=function(){return this},O.prototype.toString=function(){return this.__toString("Seq {","}")},O.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},O.prototype.__iterate=function(t,e){return N(this,t,e,!0)},O.prototype.__iterator=function(t,e){return P(this,t,e,!0)},t(x,O),x.prototype.toKeyedSeq=function(){return this},t(k,O),k.of=function(){return k(arguments)},k.prototype.toIndexedSeq=function(){return this},k.prototype.toString=function(){return this.__toString("Seq [","]")},k.prototype.__iterate=function(t,e){return N(this,t,e,!1)},k.prototype.__iterator=function(t,e){return P(this,t,e,!1)},t(A,O),A.of=function(){return A(arguments)},A.prototype.toSetSeq=function(){return this},O.isSeq=L,O.Keyed=x,O.Set=A,O.Indexed=k;var br="@@__IMMUTABLE_SEQ__@@";O.prototype[br]=!0,t(j,k),j.prototype.get=function(t,e){return this.has(t)?this._array[v(this,t)]:e},j.prototype.__iterate=function(t,e){for(var r=this._array,n=r.length-1,i=0;i<=n;i++)if(!1===t(r[e?n-i:i],i,this))return i+1;return i},j.prototype.__iterator=function(t,e){var r=this._array,n=r.length-1,i=0;return new S(function(){return i>n?I():z(t,i,r[e?n-i++:i++])})},t(K,x),K.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},K.prototype.has=function(t){return this._object.hasOwnProperty(t)},K.prototype.__iterate=function(t,e){for(var r=this._object,n=this._keys,i=n.length-1,o=0;o<=i;o++){var u=n[e?i-o:o];if(!1===t(r[u],u,this))return o+1}return o},K.prototype.__iterator=function(t,e){var r=this._object,n=this._keys,i=n.length-1,o=0;return new S(function(){var u=n[e?i-o:o];return o++>i?I():z(t,u,r[u])})},K.prototype[cr]=!0,t(R,k),R.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var r=this._iterable,n=D(r),i=0;if(q(n))for(var o;!(o=n.next()).done&&!1!==t(o.value,i++,this););return i},R.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterable,n=D(r);if(!q(n))return new S(I);var i=0;return new S(function(){var e=n.next();return e.done?e:z(t,i++,e.value)})},t(U,k),U.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var r=this._iterator,n=this._iteratorCache,i=0;i<n.length;)if(!1===t(n[i],i++,this))return i;for(var o;!(o=r.next()).done;){var u=o.value;if(n[i]=u,!1===t(u,i++,this))break}return i},U.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var r=this._iterator,n=this._iteratorCache,i=0;return new S(function(){if(i>=n.length){var e=r.next();if(e.done)return e;n[i]=e.value}return z(t,i,n[i++])})};var qr;t(G,k),G.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},G.prototype.get=function(t,e){return this.has(t)?this._value:e},G.prototype.includes=function(t){return X(this._value,t)},G.prototype.slice=function(t,e){var r=this.size;return d(t,e,r)?this:new G(this._value,g(e,r)-m(t,r))},G.prototype.reverse=function(){return this},G.prototype.indexOf=function(t){return X(this._value,t)?0:-1},G.prototype.lastIndexOf=function(t){return X(this._value,t)?this.size:-1},G.prototype.__iterate=function(t,e){for(var r=0;r<this.size;r++)if(!1===t(this._value,r,this))return r+1;return r},G.prototype.__iterator=function(t,e){var r=this,n=0;return new S(function(){return n<r.size?z(t,n++,r._value):I()})},G.prototype.equals=function(t){return t instanceof G?X(this._value,t._value):F(t)};var Dr;t($,k),$.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},$.prototype.get=function(t,e){return this.has(t)?this._start+v(this,t)*this._step:e},$.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e<this.size&&e===Math.floor(e)},$.prototype.slice=function(t,e){return d(t,e,this.size)?this:(t=m(t,this.size),e=g(e,this.size),e<=t?new $(0,0):new $(this.get(t,this._end),this.get(e,this._end),this._step))},$.prototype.indexOf=function(t){var e=t-this._start;if(e%this._step==0){var r=e/this._step;if(r>=0&&r<this.size)return r}return-1},$.prototype.lastIndexOf=function(t){return this.indexOf(t)},$.prototype.__iterate=function(t,e){for(var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;o<=r;o++){if(!1===t(i,o,this))return o+1;i+=e?-n:n}return o},$.prototype.__iterator=function(t,e){var r=this.size-1,n=this._step,i=e?this._start+r*n:this._start,o=0;return new S(function(){var u=i;return i+=e?-n:n,o>r?I():z(t,o++,u)})},$.prototype.equals=function(t){return t instanceof $?this._start===t._start&&this._end===t._end&&this._step===t._step:F(this,t)};var Mr;t(tt,e),t(et,tt),t(rt,tt),t(nt,tt),tt.Keyed=et,tt.Indexed=rt,tt.Set=nt;var Er,Or="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){t|=0,e|=0;var r=65535&t,n=65535&e;return r*n+((t>>>16)*n+r*(e>>>16)<<16>>>0)|0},xr=Object.isExtensible,kr=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),Ar="function"==typeof WeakMap;Ar&&(Er=new WeakMap);var jr=0,Kr="__immutablehash__";"function"==typeof Symbol&&(Kr=Symbol(Kr));var Rr=16,Ur=255,Lr=0,Tr={};t(ct,et),ct.prototype.toString=function(){return this.__toString("Map {","}")},ct.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},ct.prototype.set=function(t,e){return It(this,t,e)},ct.prototype.setIn=function(t,e){return this.updateIn(t,vr,function(){return e})},ct.prototype.remove=function(t){return It(this,t,vr)},ct.prototype.deleteIn=function(t){return this.updateIn(t,function(){return vr})},ct.prototype.update=function(t,e,r){return 1===arguments.length?t(this):this.updateIn([t],e,r)},ct.prototype.updateIn=function(t,e,r){r||(r=e,e=void 0);var n=Kt(this,ke(t),e,r);return n===vr?void 0:n},ct.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):zt()},ct.prototype.merge=function(){return xt(this,void 0,arguments)},ct.prototype.mergeWith=function(t){return xt(this,t,sr.call(arguments,1))},ct.prototype.mergeIn=function(t){var e=sr.call(arguments,1);return this.updateIn(t,zt(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},ct.prototype.mergeDeep=function(){return xt(this,kt,arguments)},ct.prototype.mergeDeepWith=function(t){var e=sr.call(arguments,1);return xt(this,At(t),e)},ct.prototype.mergeDeepIn=function(t){var e=sr.call(arguments,1);return this.updateIn(t,zt(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},ct.prototype.sort=function(t){return Zt(we(this,t))},ct.prototype.sortBy=function(t,e){return Zt(we(this,e,t))},ct.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},
ct.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new _)},ct.prototype.asImmutable=function(){return this.__ensureOwner()},ct.prototype.wasAltered=function(){return this.__altered},ct.prototype.__iterator=function(t,e){return new mt(this,t,e)},ct.prototype.__iterate=function(t,e){var r=this,n=0;return this._root&&this._root.iterate(function(e){return n++,t(e[1],e[0],r)},e),n},ct.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?St(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},ct.isMap=_t;var Wr="@@__IMMUTABLE_MAP__@@",Br=ct.prototype;Br[Wr]=!0,Br.delete=Br.remove,Br.removeIn=Br.deleteIn,pt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(X(r,i[o][0]))return i[o][1];return n},pt.prototype.update=function(t,e,r,n,i,o,u){for(var s=i===vr,a=this.entries,h=0,f=a.length;h<f&&!X(n,a[h][0]);h++);var _=h<f;if(_?a[h][1]===i:s)return this;if(c(u),(s||!_)&&c(o),!s||1!==a.length){if(!_&&!s&&a.length>=Jr)return Mt(t,a,n,i);var l=t&&t===this.ownerID,v=l?a:p(a);return _?s?h===f-1?v.pop():v[h]=v.pop():v[h]=[n,i]:v.push([n,i]),l?(this.entries=v,this):new pt(t,v)}},lt.prototype.get=function(t,e,r,n){void 0===e&&(e=ot(r));var i=1<<((0===t?e:e>>>t)&lr),o=this.bitmap;return 0==(o&i)?n:this.nodes[Rt(o&i-1)].get(t+_r,e,r,n)},lt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ot(n));var s=(0===e?r:r>>>e)&lr,a=1<<s,h=this.bitmap,f=0!=(h&a);if(!f&&i===vr)return this;var c=Rt(h&a-1),_=this.nodes,p=f?_[c]:void 0,l=bt(p,t,e+_r,r,n,i,o,u);if(l===p)return this;if(!f&&l&&_.length>=Nr)return Ot(t,_,h,s,l);if(f&&!l&&2===_.length&&qt(_[1^c]))return _[1^c];if(f&&l&&1===_.length&&qt(l))return l;var v=t&&t===this.ownerID,y=f?l?h:h^a:h|a,d=f?l?Ut(_,c,l,v):Tt(_,c,v):Lt(_,c,l,v);return v?(this.bitmap=y,this.nodes=d,this):new lt(t,y,d)},vt.prototype.get=function(t,e,r,n){void 0===e&&(e=ot(r));var i=(0===t?e:e>>>t)&lr,o=this.nodes[i];return o?o.get(t+_r,e,r,n):n},vt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ot(n));var s=(0===e?r:r>>>e)&lr,a=i===vr,h=this.nodes,f=h[s];if(a&&!f)return this;var c=bt(f,t,e+_r,r,n,i,o,u);if(c===f)return this;var _=this.count;if(f){if(!c&&--_<Pr)return Et(t,h,_,s)}else _++;var p=t&&t===this.ownerID,l=Ut(h,s,c,p);return p?(this.count=_,this.nodes=l,this):new vt(t,_,l)},yt.prototype.get=function(t,e,r,n){for(var i=this.entries,o=0,u=i.length;o<u;o++)if(X(r,i[o][0]))return i[o][1];return n},yt.prototype.update=function(t,e,r,n,i,o,u){void 0===r&&(r=ot(n));var s=i===vr;if(r!==this.keyHash)return s?this:(c(u),c(o),Dt(this,t,e,r,[n,i]));for(var a=this.entries,h=0,f=a.length;h<f&&!X(n,a[h][0]);h++);var _=h<f;if(_?a[h][1]===i:s)return this;if(c(u),(s||!_)&&c(o),s&&2===f)return new dt(t,this.keyHash,a[1^h]);var l=t&&t===this.ownerID,v=l?a:p(a);return _?s?h===f-1?v.pop():v[h]=v.pop():v[h]=[n,i]:v.push([n,i]),l?(this.entries=v,this):new yt(t,this.keyHash,v)},dt.prototype.get=function(t,e,r,n){return X(r,this.entry[0])?this.entry[1]:n},dt.prototype.update=function(t,e,r,n,i,o,u){var s=i===vr,a=X(n,this.entry[0]);return(a?i===this.entry[1]:s)?this:(c(u),s?void c(o):a?t&&t===this.ownerID?(this.entry[1]=i,this):new dt(t,this.keyHash,[n,i]):(c(o),Dt(this,t,e,ot(n),[n,i])))},pt.prototype.iterate=yt.prototype.iterate=function(t,e){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(!1===t(r[e?i-n:n]))return!1},lt.prototype.iterate=vt.prototype.iterate=function(t,e){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var o=r[e?i-n:n];if(o&&!1===o.iterate(t,e))return!1}},dt.prototype.iterate=function(t,e){return t(this.entry)},t(mt,S),mt.prototype.next=function(){for(var t=this._type,e=this._stack;e;){var r,n=e.node,i=e.index++;if(n.entry){if(0===i)return gt(t,n.entry)}else if(n.entries){if(r=n.entries.length-1,i<=r)return gt(t,n.entries[this._reverse?r-i:i])}else if(r=n.nodes.length-1,i<=r){var o=n.nodes[this._reverse?r-i:i];if(o){if(o.entry)return gt(t,o.entry);e=this._stack=wt(o,e)}continue}e=this._stack=this._stack.__prev}return I()};var Cr,Jr=pr/4,Nr=pr/2,Pr=pr/4;t(Wt,rt),Wt.of=function(){return this(arguments)},Wt.prototype.toString=function(){return this.__toString("List [","]")},Wt.prototype.get=function(t,e){if((t=v(this,t))>=0&&t<this.size){t+=this._origin;var r=Qt(this,t);return r&&r.array[t&lr]}return e},Wt.prototype.set=function(t,e){return Ht(this,t,e)},Wt.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},Wt.prototype.insert=function(t,e){return this.splice(t,0,e)},Wt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=_r,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Pt()},Wt.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations(function(r){Xt(r,0,e+t.length);for(var n=0;n<t.length;n++)r.set(e+n,t[n])})},Wt.prototype.pop=function(){return Xt(this,0,-1)},Wt.prototype.unshift=function(){var t=arguments;return this.withMutations(function(e){Xt(e,-t.length);for(var r=0;r<t.length;r++)e.set(r,t[r])})},Wt.prototype.shift=function(){return Xt(this,1)},Wt.prototype.merge=function(){return Ft(this,void 0,arguments)},Wt.prototype.mergeWith=function(t){return Ft(this,t,sr.call(arguments,1))},Wt.prototype.mergeDeep=function(){return Ft(this,kt,arguments)},Wt.prototype.mergeDeepWith=function(t){var e=sr.call(arguments,1);return Ft(this,At(t),e)},Wt.prototype.setSize=function(t){return Xt(this,0,t)},Wt.prototype.slice=function(t,e){var r=this.size;return d(t,e,r)?this:Xt(this,m(t,r),g(e,r))},Wt.prototype.__iterator=function(t,e){var r=0,n=Jt(this,e);return new S(function(){var e=n();return e===Qr?I():z(t,r++,e)})},Wt.prototype.__iterate=function(t,e){for(var r,n=0,i=Jt(this,e);(r=i())!==Qr&&!1!==t(r,n++,this););return n},Wt.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Nt(this._origin,this._capacity,this._level,this._root,this._tail,t,this.__hash):(this.__ownerID=t,this)},Wt.isList=Bt;var Hr="@@__IMMUTABLE_LIST__@@",Vr=Wt.prototype;Vr[Hr]=!0,Vr.delete=Vr.remove,Vr.setIn=Br.setIn,Vr.deleteIn=Vr.removeIn=Br.removeIn,Vr.update=Br.update,Vr.updateIn=Br.updateIn,Vr.mergeIn=Br.mergeIn,Vr.mergeDeepIn=Br.mergeDeepIn,Vr.withMutations=Br.withMutations,Vr.asMutable=Br.asMutable,Vr.asImmutable=Br.asImmutable,Vr.wasAltered=Br.wasAltered,Ct.prototype.removeBefore=function(t,e,r){if(r===e?1<<e:0===this.array.length)return this;var n=r>>>e&lr;if(n>=this.array.length)return new Ct([],t);var i,o=0===n;if(e>0){var u=this.array[n];if((i=u&&u.removeBefore(t,e-_r,r))===u&&o)return this}if(o&&!i)return this;var s=Yt(this,t);if(!o)for(var a=0;a<n;a++)s.array[a]=void 0;return i&&(s.array[n]=i),s},Ct.prototype.removeAfter=function(t,e,r){if(r===(e?1<<e:0)||0===this.array.length)return this;var n=r-1>>>e&lr;if(n>=this.array.length)return this;var i;if(e>0){var o=this.array[n];if((i=o&&o.removeAfter(t,e-_r,r))===o&&n===this.array.length-1)return this}var u=Yt(this,t);return u.array.splice(n+1),i&&(u.array[n]=i),u};var Yr,Qr={};t(Zt,ct),Zt.of=function(){return this(arguments)},Zt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Zt.prototype.get=function(t,e){var r=this._map.get(t);return void 0!==r?this._list.get(r)[1]:e},Zt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):ee()},Zt.prototype.set=function(t,e){return re(this,t,e)},Zt.prototype.remove=function(t){return re(this,t,vr)},Zt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Zt.prototype.__iterate=function(t,e){var r=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],r)},e)},Zt.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Zt.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),r=this._list.__ensureOwner(t);return t?te(e,r,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=r,this)},Zt.isOrderedMap=$t,Zt.prototype[cr]=!0,Zt.prototype.delete=Zt.prototype.remove;var Xr;t(ne,x),ne.prototype.get=function(t,e){return this._iter.get(t,e)},ne.prototype.has=function(t){return this._iter.has(t)},ne.prototype.valueSeq=function(){return this._iter.valueSeq()},ne.prototype.reverse=function(){var t=this,e=he(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},ne.prototype.map=function(t,e){var r=this,n=ae(this,t,e);return this._useKeys||(n.valueSeq=function(){return r._iter.toSeq().map(t,e)}),n},ne.prototype.__iterate=function(t,e){var r,n=this;return this._iter.__iterate(this._useKeys?function(e,r){return t(e,r,n)}:(r=e?De(this):0,function(i){return t(i,e?--r:r++,n)}),e)},ne.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var r=this._iter.__iterator(gr,e),n=e?De(this):0;return new S(function(){var i=r.next();return i.done?i:z(t,e?--n:n++,i.value,i)})},ne.prototype[cr]=!0,t(ie,k),ie.prototype.includes=function(t){return this._iter.includes(t)},ie.prototype.__iterate=function(t,e){var r=this,n=0;return this._iter.__iterate(function(e){return t(e,n++,r)},e)},ie.prototype.__iterator=function(t,e){var r=this._iter.__iterator(gr,e),n=0;return new S(function(){var e=r.next();return e.done?e:z(t,n++,e.value,e)})},t(oe,A),oe.prototype.has=function(t){return this._iter.includes(t)},oe.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){return t(e,e,r)},e)},oe.prototype.__iterator=function(t,e){var r=this._iter.__iterator(gr,e);return new S(function(){var e=r.next();return e.done?e:z(t,e.value,e.value,e)})},t(ue,x),ue.prototype.entrySeq=function(){return this._iter.toSeq()},ue.prototype.__iterate=function(t,e){var r=this;return this._iter.__iterate(function(e){if(e){qe(e);var n=o(e);return t(n?e.get(1):e[1],n?e.get(0):e[0],r)}},e)},ue.prototype.__iterator=function(t,e){var r=this._iter.__iterator(gr,e);return new S(function(){for(;;){var e=r.next();if(e.done)return e;var n=e.value;if(n){qe(n);var i=o(n);return z(t,i?n.get(0):n[0],i?n.get(1):n[1],e)}}})},ie.prototype.cacheResult=ne.prototype.cacheResult=oe.prototype.cacheResult=ue.prototype.cacheResult=Oe,t(Ae,et),Ae.prototype.toString=function(){return this.__toString(Ke(this)+" {","}")},Ae.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Ae.prototype.get=function(t,e){if(!this.has(t))return e;var r=this._defaultValues[t];return this._map?this._map.get(t,r):r},Ae.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=je(this,zt()))},Ae.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Ke(this));var r=this._map&&this._map.set(t,e);return this.__ownerID||r===this._map?this:je(this,r)},Ae.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:je(this,e)},Ae.prototype.wasAltered=function(){return this._map.wasAltered()},Ae.prototype.__iterator=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterator(t,e)},Ae.prototype.__iterate=function(t,e){var n=this;return r(this._defaultValues).map(function(t,e){return n.get(e)}).__iterate(t,e)},Ae.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?je(this,e,t):(this.__ownerID=t,this._map=e,this)};var Fr=Ae.prototype;Fr.delete=Fr.remove,Fr.deleteIn=Fr.removeIn=Br.removeIn,Fr.merge=Br.merge,Fr.mergeWith=Br.mergeWith,Fr.mergeIn=Br.mergeIn,Fr.mergeDeep=Br.mergeDeep,Fr.mergeDeepWith=Br.mergeDeepWith,Fr.mergeDeepIn=Br.mergeDeepIn,Fr.setIn=Br.setIn,Fr.update=Br.update,Fr.updateIn=Br.updateIn,Fr.withMutations=Br.withMutations,Fr.asMutable=Br.asMutable,Fr.asImmutable=Br.asImmutable,t(Le,nt),Le.of=function(){return this(arguments)},Le.fromKeys=function(t){return this(r(t).keySeq())},Le.prototype.toString=function(){return this.__toString("Set {","}")},Le.prototype.has=function(t){return this._map.has(t)},Le.prototype.add=function(t){return We(this,this._map.set(t,!0))},Le.prototype.remove=function(t){return We(this,this._map.remove(t))},Le.prototype.clear=function(){return We(this,this._map.clear())},Le.prototype.union=function(){var t=sr.call(arguments,0);return t=t.filter(function(t){return 0!==t.size}),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var r=0;r<t.length;r++)i(t[r]).forEach(function(t){return e.add(t)})}):this.constructor(t[0])},Le.prototype.intersect=function(){var t=sr.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.every(function(t){return t.includes(e)})||r.remove(e)})})},Le.prototype.subtract=function(){var t=sr.call(arguments,0);if(0===t.length)return this;t=t.map(function(t){return i(t)});var e=this;return this.withMutations(function(r){e.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.remove(e)})})},Le.prototype.merge=function(){return this.union.apply(this,arguments)},Le.prototype.mergeWith=function(t){var e=sr.call(arguments,1);return this.union.apply(this,e)},Le.prototype.sort=function(t){return Je(we(this,t))},Le.prototype.sortBy=function(t,e){return Je(we(this,e,t))},Le.prototype.wasAltered=function(){return this._map.wasAltered()},Le.prototype.__iterate=function(t,e){var r=this;return this._map.__iterate(function(e,n){return t(n,n,r)},e)},Le.prototype.__iterator=function(t,e){return this._map.map(function(t,e){return e}).__iterator(t,e)},Le.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t);return t?this.__make(e,t):(this.__ownerID=t,this._map=e,this)},Le.isSet=Te;var Gr="@@__IMMUTABLE_SET__@@",Zr=Le.prototype;Zr[Gr]=!0,Zr.delete=Zr.remove,Zr.mergeDeep=Zr.merge,Zr.mergeDeepWith=Zr.mergeWith,Zr.withMutations=Br.withMutations,Zr.asMutable=Br.asMutable,Zr.asImmutable=Br.asImmutable,Zr.__empty=Ce,Zr.__make=Be;var $r;t(Je,Le),Je.of=function(){return this(arguments)},Je.fromKeys=function(t){return this(r(t).keySeq())},Je.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Je.isOrderedSet=Ne;var tn=Je.prototype;tn[cr]=!0,tn.__empty=He,tn.__make=Pe;var en;t(Ve,rt),Ve.of=function(){return this(arguments)},Ve.prototype.toString=function(){return this.__toString("Stack [","]")},Ve.prototype.get=function(t,e){var r=this._head;for(t=v(this,t);r&&t--;)r=r.next;return r?r.value:e},Ve.prototype.peek=function(){return this._head&&this._head.value},Ve.prototype.push=function(){if(0===arguments.length)return this;for(var t=this.size+arguments.length,e=this._head,r=arguments.length-1;r>=0;r--)e={value:arguments[r],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Qe(t,e)},Ve.prototype.pushAll=function(t){if(t=n(t),0===t.size)return this;ft(t.size);var e=this.size,r=this._head;return t.reverse().forEach(function(t){e++,r={value:t,next:r}}),this.__ownerID?(this.size=e,this._head=r,this.__hash=void 0,this.__altered=!0,this):Qe(e,r)},Ve.prototype.pop=function(){return this.slice(1)},Ve.prototype.unshift=function(){return this.push.apply(this,arguments)},Ve.prototype.unshiftAll=function(t){return this.pushAll(t)},Ve.prototype.shift=function(){return this.pop.apply(this,arguments)},Ve.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Xe()},Ve.prototype.slice=function(t,e){if(d(t,e,this.size))return this;var r=m(t,this.size);if(g(e,this.size)!==this.size)return rt.prototype.slice.call(this,t,e);for(var n=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=n,this._head=i,this.__hash=void 0,this.__altered=!0,this):Qe(n,i)},Ve.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Qe(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},Ve.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var r=0,n=this._head;n&&!1!==t(n.value,r++,this);)n=n.next;return r},Ve.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var r=0,n=this._head;return new S(function(){if(n){var e=n.value;return n=n.next,z(t,r++,e)}return I()})},Ve.isStack=Ye;var rn="@@__IMMUTABLE_STACK__@@",nn=Ve.prototype;nn[rn]=!0,nn.withMutations=Br.withMutations,nn.asMutable=Br.asMutable,nn.asImmutable=Br.asImmutable,nn.wasAltered=Br.wasAltered;var on;e.Iterator=S,Fe(e,{toArray:function(){ft(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,r){t[r]=e}),t},toIndexedSeq:function(){return new ie(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new ne(this,!0)},toMap:function(){return ct(this.toKeyedSeq())},toObject:function(){ft(this.size);var t={};return this.__iterate(function(e,r){t[r]=e}),t},toOrderedMap:function(){return Zt(this.toKeyedSeq())},toOrderedSet:function(){return Je(u(this)?this.valueSeq():this)},toSet:function(){return Le(u(this)?this.valueSeq():this)},toSetSeq:function(){return new oe(this)},toSeq:function(){return s(this)?this.toIndexedSeq():u(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ve(u(this)?this.valueSeq():this)},toList:function(){return Wt(u(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return be(this,ye(this,sr.call(arguments,0)))},includes:function(t){return this.some(function(e){return X(e,t)})},entries:function(){return this.__iterator(wr)},every:function(t,e){ft(this.size);var r=!0;return this.__iterate(function(n,i,o){if(!t.call(e,n,i,o))return r=!1,!1}),r},filter:function(t,e){return be(this,fe(this,t,e,!0))},find:function(t,e,r){var n=this.findEntry(t,e);return n?n[1]:r},findEntry:function(t,e){var r;return this.__iterate(function(n,i,o){if(t.call(e,n,i,o))return r=[i,n],!1}),r},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return ft(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){ft(this.size),t=void 0!==t?""+t:",";var e="",r=!0;return this.__iterate(function(n){r?r=!1:e+=t,e+=null!==n&&void 0!==n?n.toString():""}),e},keys:function(){return this.__iterator(mr)},map:function(t,e){return be(this,ae(this,t,e))},reduce:function(t,e,r){ft(this.size);var n,i;return arguments.length<2?i=!0:n=e,this.__iterate(function(e,o,u){i?(i=!1,n=e):n=t.call(r,n,e,o,u)}),n},reduceRight:function(t,e,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return be(this,he(this,!0))},slice:function(t,e){return be(this,pe(this,t,e,!0))},some:function(t,e){return!this.every($e(t),e)},sort:function(t){return be(this,we(this,t))},values:function(){return this.__iterator(gr)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return l(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return ce(this,t,e)},equals:function(t){return F(this,t)},entrySeq:function(){var t=this;if(t._cache)return new j(t._cache);var e=t.toSeq().map(Ze).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter($e(t),e)},findLast:function(t,e,r){return this.toKeyedSeq().reverse().find(t,e,r)},first:function(){return this.find(y)},flatMap:function(t,e){return be(this,me(this,t,e))},flatten:function(t){return be(this,de(this,t,!0))},fromEntrySeq:function(){return new ue(this)},get:function(t,e){return this.find(function(e,r){return X(r,t)},void 0,e)},getIn:function(t,e){for(var r,n=this,i=ke(t);!(r=i.next()).done;){var o=r.value;if((n=n&&n.get?n.get(o,vr):vr)===vr)return e}return n},groupBy:function(t,e){return _e(this,t,e)},has:function(t){return this.get(t,vr)!==vr},hasIn:function(t){return this.getIn(t,vr)!==vr},isSubset:function(t){return t="function"==typeof t.includes?t:e(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return t="function"==typeof t.isSubset?t:e(t),t.isSubset(this)},keySeq:function(){return this.toSeq().map(Ge).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return Se(this,t)},maxBy:function(t,e){return Se(this,e,t)},min:function(t){return Se(this,t?tr(t):nr)},minBy:function(t,e){return Se(this,e?tr(e):nr,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return be(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return be(this,ve(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile($e(t),e)},sortBy:function(t,e){return be(this,we(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return be(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return be(this,le(this,t,e))},takeUntil:function(t,e){return this.takeWhile($e(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ir(this))}});var un=e.prototype;un[ar]=!0,un[Ir]=un.values,un.__toJS=un.toArray,un.__toStringMapper=er,un.inspect=un.toSource=function(){return this.toString()},un.chain=un.flatMap,un.contains=un.includes,function(){try{Object.defineProperty(un,"length",{get:function(){if(!e.noLengthWarning){var t;try{throw new Error}catch(e){t=e.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),Fe(r,{flip:function(){return be(this,se(this))},findKey:function(t,e){var r=this.findEntry(t,e);return r&&r[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey(function(e){return X(e,t)})},lastKeyOf:function(t){return this.findLastKey(function(e){return X(e,t)})},mapEntries:function(t,e){var r=this,n=0;return be(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],n++,r)}).fromEntrySeq())},mapKeys:function(t,e){var r=this;return be(this,this.toSeq().flip().map(function(n,i){return t.call(e,n,i,r)}).flip())}});var sn=r.prototype;return sn[hr]=!0,sn[Ir]=un.entries,sn.__toJS=un.toObject,sn.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+er(t)},Fe(n,{toKeyedSeq:function(){return new ne(this,!1)},filter:function(t,e){return be(this,fe(this,t,e,!1))},findIndex:function(t,e){var r=this.findEntry(t,e);return r?r[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return be(this,he(this,!1))},slice:function(t,e){return be(this,pe(this,t,e,!1))},splice:function(t,e){var r=arguments.length;if(e=Math.max(0|e,0),0===r||2===r&&!e)return this;t=m(t,t<0?this.count():this.size);var n=this.slice(0,t);return be(this,1===r?n:n.concat(p(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var r=this.toKeyedSeq().findLastKey(t,e);return void 0===r?-1:r},first:function(){return this.get(0)},flatten:function(t){return be(this,de(this,t,!1))},get:function(t,e){return t=v(this,t),t<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,r){return r===t},void 0,e)},has:function(t){return(t=v(this,t))>=0&&(void 0!==this.size?this.size===1/0||t<this.size:-1!==this.indexOf(t))},interpose:function(t){return be(this,ge(this,t))},interleave:function(){var t=[this].concat(p(arguments)),e=Ie(this.toSeq(),k.of,t),r=e.flatten(!0);return e.size&&(r.size=e.size*t.length),be(this,r)},last:function(){return this.get(-1)},skipWhile:function(t,e){return be(this,ve(this,t,e,!1))},zip:function(){return be(this,Ie(this,rr,[this].concat(p(arguments))))},zipWith:function(t){var e=p(arguments);return e[0]=this,be(this,Ie(this,t,e))}}),n.prototype[fr]=!0,n.prototype[cr]=!0,Fe(i,{get:function(t,e){return this.has(t)?t:e},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=un.includes,Fe(x,r.prototype),Fe(k,n.prototype),Fe(A,i.prototype),Fe(et,r.prototype),Fe(rt,n.prototype),Fe(nt,i.prototype),{Iterable:e,Seq:O,Collection:tt,Map:ct,OrderedMap:Zt,List:Wt,Stack:Ve,Set:Le,OrderedSet:Je,Record:Ae,Range:$,Repeat:G,is:X,fromJS:H}})},300);
__d(function(t,e,r,s){"use strict";function o(t){return void 0!==t.presentedIndex?t.presentedIndex:t.observedTopOfStack}function n(t,e){return t===e?a.Center[t]:t<e?a.Left[t]:a.Right[t]}var a=e(302),i=(e(306),e(303)),p=(e(75),e(97)),u=e(98),l=e(130),c=e(207),h=e(44),f=e(300),_=f.Map,d=a.Interpolators,y=i,v=p.PropTypes,g=d.map(function(){return{style:{}}}),m=d.map(function(){return{style:{}}}),b=d.map(function(){return{style:{}}}),T=d.map(function(){return{style:{}}}),k=d.map(function(){return{style:{}}}),R=function(t){function e(){var t,r,s,a;babelHelpers.classCallCheck(this,e);for(var i=arguments.length,u=Array(i),c=0;c<i;c++)u[c]=arguments[c];return r=s=babelHelpers.possibleConstructorReturn(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(u))),s._getBreadcrumb=function(t,e){var r=s.props.navState.routeStack.length<=1&&0===e?"none":"auto",a=s.props.routeMapper,i=n(e,o(s.props.navState));return p.createElement(l,{key:"crumb_"+e,pointerEvents:r,ref:"crumb_"+e,style:i.Crumb},p.createElement(l,{ref:"icon_"+e,style:i.Icon},a.iconForRoute(t,s.props.navigator)),p.createElement(l,{ref:"separator_"+e,style:i.Separator},a.separatorForRoute(t,s.props.navigator)))},s._getTitle=function(t,e){if(s._descriptors.title.has(t))return s._descriptors.title.get(t);var r=s.props.routeMapper.titleContentForRoute(s.props.navState.routeStack[e],s.props.navigator),a=n(e,o(s.props.navState)),i=p.createElement(l,{key:"title_"+e,ref:"title_"+e,style:a.Title},r);return s._descriptors.title=s._descriptors.title.set(t,i),i},s._getRightButton=function(t,e){if(s._descriptors.right.has(t))return s._descriptors.right.get(t);var r=s.props.routeMapper.rightContentForRoute(s.props.navState.routeStack[e],s.props.navigator);if(!r)return s._descriptors.right=s._descriptors.right.set(t,null),null;var a=n(e,o(s.props.navState)),i=p.createElement(l,{key:"right_"+e,ref:"right_"+e,style:a.RightItem},r);return s._descriptors.right=s._descriptors.right.set(t,i),i},a=r,babelHelpers.possibleConstructorReturn(s,a)}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"_updateIndexProgress",value:function(t,e,r,s){var o,n=s>r?t:1-t,a=e-r,i=e-s;h(d[e],"Cannot find breadcrumb interpolators for "+e),o=a>0&&0===i||i>0&&0===a?d[e].RightToCenter:a<0&&0===i||i<0&&0===a?d[e].CenterToLeft:a===i?d[e].RightToCenter:d[e].RightToLeft,o.Crumb(g[e].style,n)&&this._setPropsIfExists("crumb_"+e,g[e]),o.Icon(m[e].style,n)&&this._setPropsIfExists("icon_"+e,m[e]),o.Separator(b[e].style,n)&&this._setPropsIfExists("separator_"+e,b[e]),o.Title(T[e].style,n)&&this._setPropsIfExists("title_"+e,T[e]);var p=this.refs["right_"+e],u=k[e].style;p&&o.RightItem(u,n)&&p.setNativeProps({style:u,pointerEvents:0===u.opacity?"none":"auto"})}},{key:"updateProgress",value:function(t,e,r){for(var s=Math.max(e,r),o=Math.min(e,r),n=o;n<=s;n++)this._updateIndexProgress(t,n,e,r)}},{key:"onAnimationStart",value:function(t,e){for(var r=Math.max(t,e),s=Math.min(t,e),o=s;o<=r;o++)this._setRenderViewsToHardwareTextureAndroid(o,!0)}},{key:"onAnimationEnd",value:function(){for(var t=this.props.navState.routeStack.length-1,e=0;e<=t;e++)this._setRenderViewsToHardwareTextureAndroid(e,!1)}},{key:"_setRenderViewsToHardwareTextureAndroid",value:function(t,e){var r={renderToHardwareTextureAndroid:e};this._setPropsIfExists("icon_"+t,r),this._setPropsIfExists("separator_"+t,r),this._setPropsIfExists("title_"+t,r),this._setPropsIfExists("right_"+t,r)}},{key:"componentWillMount",value:function(){this._reset()}},{key:"render",value:function(){var t=this.props.navState,e=t&&t.routeStack.map(this._getBreadcrumb),r=t.routeStack.map(this._getTitle),s=t.routeStack.map(this._getRightButton);return p.createElement(l,{key:this._key,style:[S.breadCrumbContainer,this.props.style]},r,e,s)}},{key:"immediatelyRefresh",value:function(){this._reset(),this.forceUpdate()}},{key:"_reset",value:function(){this._key=c(),this._descriptors={title:new _,right:new _}}},{key:"_setPropsIfExists",value:function(t,e){var t=this.refs[t];t&&t.setNativeProps(e)}}]),e}(p.Component);R.propTypes={navigator:v.shape({push:v.func,pop:v.func,replace:v.func,popToRoute:v.func,popToTop:v.func}),routeMapper:v.shape({rightContentForRoute:v.func,titleContentForRoute:v.func,iconForRoute:v.func}),navState:p.PropTypes.shape({routeStack:p.PropTypes.arrayOf(p.PropTypes.object),presentedIndex:p.PropTypes.number}),style:l.propTypes.style},R.Styles=a;var S=u.create({breadCrumbContainer:{overflow:"hidden",position:"absolute",height:y.General.TotalNavHeight,top:0,left:0,right:0}});r.exports=R},301);
__d(function(t,e,o,i){"use strict";for(var a=e(100),r=e(303),p=e(304),n=e(133),c=a.get("window").width,l=r.General.StatusBarHeight,h=r.General.NavBarHeight,y={position:"absolute",flexDirection:"row",top:l,width:49,height:h,backgroundColor:"transparent"},m={width:40,height:h},f={width:9,height:h},g={position:"absolute",top:l,height:h,backgroundColor:"transparent"},u=n(g,{left:0,right:0,alignItems:"center",height:h}),I={position:"absolute",top:l,right:4,overflow:"hidden",opacity:1,height:h,backgroundColor:"transparent"},s=[],d=[],T=[],b=0;b<10;b++){var C=49*b+4;s[b]={Crumb:n(y,{left:C}),Icon:n(m,{opacity:.6}),Separator:n(f,{opacity:1}),Title:n(g,{left:C,opacity:0}),RightItem:n(I,{opacity:0})},d[b]={Crumb:n(y,{left:C}),Icon:n(m,{opacity:1}),Separator:n(f,{opacity:0}),Title:n(g,{left:C+40,opacity:1}),RightItem:n(I,{opacity:1})};var R=c-100;T[b]={Crumb:n(y,{left:R}),Icon:n(m,{opacity:0}),Separator:n(f,{opacity:0}),Title:n(g,{left:R+40,opacity:0}),RightItem:n(I,{opacity:0})}}d[0]={Crumb:n(y,{left:c/4}),Icon:n(m,{opacity:0}),Separator:n(f,{opacity:0}),Title:n(u,{opacity:1}),RightItem:d[0].RightItem},s[0].Title=n(u,{left:-c/4,opacity:0}),T[0].Title=n(u,{opacity:0});var x=function(t,e){return{Crumb:p({left:{type:"linear",from:t.Crumb.left,to:e.Crumb.left,min:0,max:1,extrapolate:!0}}),Icon:p({opacity:{type:"linear",from:t.Icon.opacity,to:e.Icon.opacity,min:0,max:1}}),Separator:p({opacity:{type:"linear",from:t.Separator.opacity,to:e.Separator.opacity,min:0,max:1}}),Title:p({opacity:{type:"linear",from:t.Title.opacity,to:e.Title.opacity,min:0,max:1},left:{type:"linear",from:t.Title.left,to:e.Title.left,min:0,max:1,extrapolate:!0}}),RightItem:p({opacity:{type:"linear",from:t.RightItem.opacity,to:e.RightItem.opacity,min:0,max:1,round:100}})}},S=d.map(function(t,e){return{RightToCenter:x(T[e],d[e]),CenterToLeft:x(d[e],s[e]),RightToLeft:x(T[e],s[e])}});o.exports={Interpolators:S,Left:s,Center:d,Right:T,IconWidth:40,IconHeight:h,SeparatorWidth:9,SeparatorHeight:h}},302);
__d(function(t,e,o,i){"use strict";function n(t,e){return{Title:l({opacity:{type:"linear",from:t.Title.opacity,to:e.Title.opacity,min:0,max:1},left:{type:"linear",from:t.Title.left,to:e.Title.left,min:0,max:1,extrapolate:!0}}),LeftButton:l({opacity:{type:"linear",from:t.LeftButton.opacity,to:e.LeftButton.opacity,min:0,max:1,round:g},left:{type:"linear",from:t.LeftButton.left,to:e.LeftButton.left,min:0,max:1}}),RightButton:l({opacity:{type:"linear",from:t.RightButton.opacity,to:e.RightButton.opacity,min:0,max:1,round:g},left:{type:"linear",from:t.RightButton.left,to:e.RightButton.left,min:0,max:1,extrapolate:!0}})}}var a=e(100),l=e(304),r=e(133),f=a.get("window").width,p={Title:{position:"absolute",top:20,left:0,right:0,alignItems:"center",height:44,backgroundColor:"transparent"},LeftButton:{position:"absolute",top:20,left:0,overflow:"hidden",opacity:1,height:44,backgroundColor:"transparent"},RightButton:{position:"absolute",top:20,right:0,overflow:"hidden",opacity:1,alignItems:"flex-end",height:44,backgroundColor:"transparent"}},u={Left:{Title:r(p.Title,{left:-f/2,opacity:0}),LeftButton:r(p.LeftButton,{left:0,opacity:0}),RightButton:r(p.RightButton,{opacity:0})},Center:{Title:r(p.Title,{left:0,opacity:1}),LeftButton:r(p.LeftButton,{left:0,opacity:1}),RightButton:r(p.RightButton,{opacity:1})},Right:{Title:r(p.Title,{left:f/2,opacity:0}),LeftButton:r(p.LeftButton,{left:0,opacity:0}),RightButton:r(p.RightButton,{opacity:0})}},g=100,h={RightToCenter:n(u.Right,u.Center),CenterToLeft:n(u.Center,u.Left),RightToLeft:n(u.Right,u.Left)};o.exports={General:{NavBarHeight:44,StatusBarHeight:20,TotalNavHeight:64},Interpolators:h,Stages:u}},303);
__d(function(a,t,r,n){for(var m=t(305),u=m({x:null}),V=m({y:null}),o=m({z:null}),e=m({w:null}),i=m({transformRotateRadians:null}),Q={transformRotateRadians:!0,transformScale:!0,transformTranslate:!0},v={transformRotateRadians:[0,0,0,1],transformTranslate:[0,0,0],transformScale:[1,1,1]},l=/([^\s,]+)/g,x=function(a,t){var r=a.slice(a.indexOf("(")+1,a.indexOf(")")).match(l)||[],n=r.map(function(a){return"\\b"+a+"\\b"}).join("|"),m=new RegExp(n,"g");return a.substring(a.indexOf("{")+1,a.lastIndexOf("}")).replace(m,function(a){var n=r.indexOf(a);return t[n]}).split("\n")},f={unroll:"function(matVar, m0, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12, m13, m14, m15) {\n m0 = matVar[0];\n m1 = matVar[1];\n m2 = matVar[2];\n m3 = matVar[3];\n m4 = matVar[4];\n m5 = matVar[5];\n m6 = matVar[6];\n m7 = matVar[7];\n m8 = matVar[8];\n m9 = matVar[9];\n m10 = matVar[10];\n m11 = matVar[11];\n m12 = matVar[12];\n m13 = matVar[13];\n m14 = matVar[14];\n m15 = matVar[15];\n }",matrixDiffers:"function(retVar, matVar, m0, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12, m13, m14, m15) {\n retVar = retVar ||\n m0 !== matVar[0] ||\n m1 !== matVar[1] ||\n m2 !== matVar[2] ||\n m3 !== matVar[3] ||\n m4 !== matVar[4] ||\n m5 !== matVar[5] ||\n m6 !== matVar[6] ||\n m7 !== matVar[7] ||\n m8 !== matVar[8] ||\n m9 !== matVar[9] ||\n m10 !== matVar[10] ||\n m11 !== matVar[11] ||\n m12 !== matVar[12] ||\n m13 !== matVar[13] ||\n m14 !== matVar[14] ||\n m15 !== matVar[15];\n }",transformScale:"function(matVar, opVar) {\n // Scaling matVar by opVar\n var x = opVar[0];\n var y = opVar[1];\n var z = opVar[2];\n matVar[0] = matVar[0] * x;\n matVar[1] = matVar[1] * x;\n matVar[2] = matVar[2] * x;\n matVar[3] = matVar[3] * x;\n matVar[4] = matVar[4] * y;\n matVar[5] = matVar[5] * y;\n matVar[6] = matVar[6] * y;\n matVar[7] = matVar[7] * y;\n matVar[8] = matVar[8] * z;\n matVar[9] = matVar[9] * z;\n matVar[10] = matVar[10] * z;\n matVar[11] = matVar[11] * z;\n matVar[12] = matVar[12];\n matVar[13] = matVar[13];\n matVar[14] = matVar[14];\n matVar[15] = matVar[15];\n }",transformTranslate:"function(matVar, opVar) {\n // Translating matVar by opVar\n var x = opVar[0];\n var y = opVar[1];\n var z = opVar[2];\n matVar[12] = matVar[0] * x + matVar[4] * y + matVar[8] * z + matVar[12];\n matVar[13] = matVar[1] * x + matVar[5] * y + matVar[9] * z + matVar[13];\n matVar[14] = matVar[2] * x + matVar[6] * y + matVar[10] * z + matVar[14];\n matVar[15] = matVar[3] * x + matVar[7] * y + matVar[11] * z + matVar[15];\n }",transformRotateRadians:"function(matVar, q) {\n // Rotating matVar by q\n var xQuat = q[0], yQuat = q[1], zQuat = q[2], wQuat = q[3];\n var x2Quat = xQuat + xQuat;\n var y2Quat = yQuat + yQuat;\n var z2Quat = zQuat + zQuat;\n var xxQuat = xQuat * x2Quat;\n var xyQuat = xQuat * y2Quat;\n var xzQuat = xQuat * z2Quat;\n var yyQuat = yQuat * y2Quat;\n var yzQuat = yQuat * z2Quat;\n var zzQuat = zQuat * z2Quat;\n var wxQuat = wQuat * x2Quat;\n var wyQuat = wQuat * y2Quat;\n var wzQuat = wQuat * z2Quat;\n // Step 1: Inlines the construction of a quaternion matrix ('quatMat')\n var quatMat0 = 1 - (yyQuat + zzQuat);\n var quatMat1 = xyQuat + wzQuat;\n var quatMat2 = xzQuat - wyQuat;\n var quatMat4 = xyQuat - wzQuat;\n var quatMat5 = 1 - (xxQuat + zzQuat);\n var quatMat6 = yzQuat + wxQuat;\n var quatMat8 = xzQuat + wyQuat;\n var quatMat9 = yzQuat - wxQuat;\n var quatMat10 = 1 - (xxQuat + yyQuat);\n // quatMat3/7/11/12/13/14 = 0, quatMat15 = 1\n\n // Step 2: Inlines multiplication, takes advantage of constant quatMat cells\n var a00 = matVar[0];\n var a01 = matVar[1];\n var a02 = matVar[2];\n var a03 = matVar[3];\n var a10 = matVar[4];\n var a11 = matVar[5];\n var a12 = matVar[6];\n var a13 = matVar[7];\n var a20 = matVar[8];\n var a21 = matVar[9];\n var a22 = matVar[10];\n var a23 = matVar[11];\n\n var b0 = quatMat0, b1 = quatMat1, b2 = quatMat2;\n matVar[0] = b0 * a00 + b1 * a10 + b2 * a20;\n matVar[1] = b0 * a01 + b1 * a11 + b2 * a21;\n matVar[2] = b0 * a02 + b1 * a12 + b2 * a22;\n matVar[3] = b0 * a03 + b1 * a13 + b2 * a23;\n b0 = quatMat4; b1 = quatMat5; b2 = quatMat6;\n matVar[4] = b0 * a00 + b1 * a10 + b2 * a20;\n matVar[5] = b0 * a01 + b1 * a11 + b2 * a21;\n matVar[6] = b0 * a02 + b1 * a12 + b2 * a22;\n matVar[7] = b0 * a03 + b1 * a13 + b2 * a23;\n b0 = quatMat8; b1 = quatMat9; b2 = quatMat10;\n matVar[8] = b0 * a00 + b1 * a10 + b2 * a20;\n matVar[9] = b0 * a01 + b1 * a11 + b2 * a21;\n matVar[10] = b0 * a02 + b1 * a12 + b2 * a22;\n matVar[11] = b0 * a03 + b1 * a13 + b2 * a23;\n }"},s={transformScale:"function(matVar, opVar) {\n // Scaling matVar known to be identity by opVar\n matVar[0] = opVar[0];\n matVar[1] = 0;\n matVar[2] = 0;\n matVar[3] = 0;\n matVar[4] = 0;\n matVar[5] = opVar[1];\n matVar[6] = 0;\n matVar[7] = 0;\n matVar[8] = 0;\n matVar[9] = 0;\n matVar[10] = opVar[2];\n matVar[11] = 0;\n matVar[12] = 0;\n matVar[13] = 0;\n matVar[14] = 0;\n matVar[15] = 1;\n }",transformTranslate:"function(matVar, opVar) {\n // Translating matVar known to be identity by opVar;\n matVar[0] = 1;\n matVar[1] = 0;\n matVar[2] = 0;\n matVar[3] = 0;\n matVar[4] = 0;\n matVar[5] = 1;\n matVar[6] = 0;\n matVar[7] = 0;\n matVar[8] = 0;\n matVar[9] = 0;\n matVar[10] = 1;\n matVar[11] = 0;\n matVar[12] = opVar[0];\n matVar[13] = opVar[1];\n matVar[14] = opVar[2];\n matVar[15] = 1;\n }",transformRotateRadians:"function(matVar, q) {\n\n // Rotating matVar which is known to be identity by q\n var xQuat = q[0], yQuat = q[1], zQuat = q[2], wQuat = q[3];\n var x2Quat = xQuat + xQuat;\n var y2Quat = yQuat + yQuat;\n var z2Quat = zQuat + zQuat;\n var xxQuat = xQuat * x2Quat;\n var xyQuat = xQuat * y2Quat;\n var xzQuat = xQuat * z2Quat;\n var yyQuat = yQuat * y2Quat;\n var yzQuat = yQuat * z2Quat;\n var zzQuat = zQuat * z2Quat;\n var wxQuat = wQuat * x2Quat;\n var wyQuat = wQuat * y2Quat;\n var wzQuat = wQuat * z2Quat;\n // Step 1: Inlines the construction of a quaternion matrix ('quatMat')\n var quatMat0 = 1 - (yyQuat + zzQuat);\n var quatMat1 = xyQuat + wzQuat;\n var quatMat2 = xzQuat - wyQuat;\n var quatMat4 = xyQuat - wzQuat;\n var quatMat5 = 1 - (xxQuat + zzQuat);\n var quatMat6 = yzQuat + wxQuat;\n var quatMat8 = xzQuat + wyQuat;\n var quatMat9 = yzQuat - wxQuat;\n var quatMat10 = 1 - (xxQuat + yyQuat);\n // quatMat3/7/11/12/13/14 = 0, quatMat15 = 1\n\n // Step 2: Inlines the multiplication with identity matrix.\n var b0 = quatMat0, b1 = quatMat1, b2 = quatMat2;\n matVar[0] = b0;\n matVar[1] = b1;\n matVar[2] = b2;\n matVar[3] = 0;\n b0 = quatMat4; b1 = quatMat5; b2 = quatMat6;\n matVar[4] = b0;\n matVar[5] = b1;\n matVar[6] = b2;\n matVar[7] = 0;\n b0 = quatMat8; b1 = quatMat9; b2 = quatMat10;\n matVar[8] = b0;\n matVar[9] = b1;\n matVar[10] = b2;\n matVar[11] = 0;\n matVar[12] = 0;\n matVar[13] = 0;\n matVar[14] = 0;\n matVar[15] = 1;\n }"},y=function(a,t){return" if (!didChange) {\n var prevVal = result."+a+";\n result."+a+" = "+t+";\n didChange = didChange || ("+t+" !== prevVal);\n } else {\n result."+a+" = "+t+";\n }\n"},b=(function(a,t,r,n){var m="round"in a,u=a.round,V=" ratio = (value - "+a.min+") / "+(a.max-a.min)+";\n";return a.extrapolate||(V+=" ratio = ratio > 1 ? 1 : (ratio < 0 ? 0 : ratio);\n"),V+=" "+n+" = "+(m?"Math.round("+u+" * ":"")+"("+t+" * (1 - ratio) + "+r+" * ratio)"+(m?") / "+u:"")+";\n"}),c=function(a){return b(a,a.from,a.to,"nextScalarVal")},z=function(a){return" nextScalarVal = "+JSON.stringify(a.value)+";\n"},q=function(a){return" nextScalarVal = value >= "+a.threshold+" ? "+a.to+" : "+a.from+";\n"},p=function(a){return a+"ReuseOp"},M=function(a){var t="";for(var r in a)Q[r]&&(t+="var "+p(r)+" = [];\n");return t},d=function(a){return"\n"+a.join("\n")+"\n"},w=function(a,t,r,n){var m=p(t)+"["+n+"]";return void 0!==a.from[r]&&void 0!==a.to[r]?" "+a.from[r]!==a.to[r]?b(a,a.from[r],a.to[r],m):m+" = "+a.from[r]+";":" "+m+" = "+v[t][n]+";"},h=[],S=0;S<16;S++)h.push("m"+S);var g=function(a){var t=[" var transform = result.transform !== undefined ? result.transform : (result.transform = [{ matrix: [] }]); var transformMatrix = transform[0].matrix;"];t.push.apply(t,x(f.unroll,["transformMatrix"].concat(h)));for(var r=0;r<a.length;r++){var n=a[r];0===r?t.push.apply(t,x(s[n],["transformMatrix",p(n)])):t.push.apply(t,x(f[n],["transformMatrix",p(n)]))}return t.push.apply(t,x(f.matrixDiffers,["didChange","transformMatrix"].concat(h))),t},R={transformTranslate:!0,transformRotateRadians:!0,transformScale:!0},O=function(a){var t=[],r="return (function() {\n";r+=M(a),r+="return function(result, value) {\n",r+=" var didChange = false;\n",r+=" var nextScalarVal;\n",r+=" var ratio;\n";for(var n in a){var m=a[n];if("linear"===m.type)if(R[n]){t.push(n);var Q=[w(m,n,u,0),w(m,n,V,1),w(m,n,o,2)];n===i&&Q.push(w(m,n,e,3)),r+=d(Q)}else r+=c(m),r+=y(n,"nextScalarVal");else"constant"===m.type?(r+=z(m),r+=y(n,"nextScalarVal")):"step"===m.type?(r+=q(m),r+=y(n,"nextScalarVal")):"identity"===m.type&&(r+=" nextScalarVal = value;\n",r+=y(n,"nextScalarVal"))}return t.length&&(r+=d(g(t))),r+=" return didChange;\n",r+="};\n",r+="})()"},T=function(a){function t(t,n){return null===r&&(r=Function(O(a))()),r(t,n)}var r=null;return t};r.exports=T},304);
__d(function(r,n,t,u){"use strict";var e=function(r){var n;for(n in r)if(r.hasOwnProperty(n))return n;return null};t.exports=e},305);
__d(function(t,e,o,i){"use strict";function n(t,e){return{Title:a({opacity:{type:"linear",from:t.Title.opacity,to:e.Title.opacity,min:0,max:1},left:{type:"linear",from:t.Title.left,to:e.Title.left,min:0,max:1,extrapolate:!0}}),LeftButton:a({opacity:{type:"linear",from:t.LeftButton.opacity,to:e.LeftButton.opacity,min:0,max:1,round:u},left:{type:"linear",from:t.LeftButton.left,to:e.LeftButton.left,min:0,max:1}}),RightButton:a({opacity:{type:"linear",from:t.RightButton.opacity,to:e.RightButton.opacity,min:0,max:1,round:u},left:{type:"linear",from:t.RightButton.left,to:e.RightButton.left,min:0,max:1,extrapolate:!0}})}}var a=e(304),r=e(133),l={Title:{position:"absolute",bottom:0,left:0,right:0,alignItems:"flex-start",height:56,backgroundColor:"transparent",marginLeft:72},LeftButton:{position:"absolute",top:0,left:4,overflow:"hidden",height:56,backgroundColor:"transparent"},RightButton:{position:"absolute",top:0,right:4,overflow:"hidden",alignItems:"flex-end",height:56,backgroundColor:"transparent"}},f={Left:{Title:r(l.Title,{opacity:0}),LeftButton:r(l.LeftButton,{opacity:0}),RightButton:r(l.RightButton,{opacity:0})},Center:{Title:r(l.Title,{opacity:1}),LeftButton:r(l.LeftButton,{opacity:1}),RightButton:r(l.RightButton,{opacity:1})},Right:{Title:r(l.Title,{opacity:0}),LeftButton:r(l.LeftButton,{opacity:0}),RightButton:r(l.RightButton,{opacity:0})}},u=100,p={RightToCenter:n(f.Right,f.Center),CenterToLeft:n(f.Center,f.Left),RightToLeft:n(f.Right,f.Left)};o.exports={General:{NavBarHeight:56,StatusBarHeight:0,TotalNavHeight:56},Interpolators:p,Stages:f}},306);
__d(function(e,t,r,o){"use strict";var n=t(97),s=t(306),p=t(303),a=(t(75),t(98)),i=t(130),l=t(207),u=t(300),c=u.Map,y=["Title","LeftButton","RightButton"],f=p,v=function(e){return void 0!==e.presentedIndex?e.presentedIndex:e.observedTopOfStack},g=function(e){function t(){var e,r,o,s;babelHelpers.classCallCheck(this,t);for(var p=arguments.length,a=Array(p),u=0;u<p;u++)a[u]=arguments[u];return r=o=babelHelpers.possibleConstructorReturn(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),o.immediatelyRefresh=function(){o._reset(),o.forceUpdate()},o._reset=function(){o._key=l(),o._reusableProps={},o._components={},o._descriptors={},y.forEach(function(e){o._components[e]=new c,o._descriptors[e]=new c})},o._getReusableProps=function(e,t){var r=o._reusableProps[e];r||(r=o._reusableProps[e]=[]);var n=r[t];return n||(n=r[t]={style:{}}),n},o._updateIndexProgress=function(e,t,r,n){var s,p=n>r?e:1-e,a=t-r,i=t-n;s=a>0&&0===i||i>0&&0===a?o.props.navigationStyles.Interpolators.RightToCenter:a<0&&0===i||i<0&&0===a?o.props.navigationStyles.Interpolators.CenterToLeft:a===i?o.props.navigationStyles.Interpolators.RightToCenter:o.props.navigationStyles.Interpolators.RightToLeft,y.forEach(function(e){var r=this._components[e].get(this.props.navState.routeStack[t]),o=this._getReusableProps(e,t);r&&s[e](o.style,p)&&(o.pointerEvents=0===o.style.opacity?"none":"box-none",r.setNativeProps(o))},o)},o.updateProgress=function(e,t,r){for(var n=Math.max(t,r),s=Math.min(t,r),p=s;p<=n;p++)o._updateIndexProgress(e,p,t,r)},o._getComponent=function(e,t,r){if(o._descriptors[e].includes(t))return o._descriptors[e].get(t);var s=null,p=o.props.routeMapper[e](o.props.navState.routeStack[r],o.props.navigator,r,o.props.navState);if(!p)return null;var a=r===v(o.props.navState),l=a?o.props.navigationStyles.Stages.Center:o.props.navigationStyles.Stages.Left;return s=n.createElement(i,{ref:function(r){o._components[e]=o._components[e].set(t,r)},pointerEvents:a?"box-none":"none",style:l[e]},p),o._descriptors[e]=o._descriptors[e].set(t,s),s},s=r,babelHelpers.possibleConstructorReturn(o,s)}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"componentWillMount",value:function(){this._reset()}},{key:"render",value:function(){var e=this,t={height:this.props.navigationStyles.General.TotalNavHeight},r=this.props.navState,o=r.routeStack.map(function(t,r){return y.map(function(o){return e._getComponent(o,t,r)})});return n.createElement(i,{key:this._key,style:[d.navBarContainer,t,this.props.style]},o)}}]),t}(n.Component);g.propTypes={navigator:n.PropTypes.object,routeMapper:n.PropTypes.shape({Title:n.PropTypes.func.isRequired,LeftButton:n.PropTypes.func.isRequired,RightButton:n.PropTypes.func.isRequired}).isRequired,navState:n.PropTypes.shape({routeStack:n.PropTypes.arrayOf(n.PropTypes.object),presentedIndex:n.PropTypes.number}),navigationStyles:n.PropTypes.object,style:i.propTypes.style},g.Styles=f,g.StylesAndroid=s,g.StylesIOS=p,g.defaultProps={navigationStyles:f};var d=a.create({navBarContainer:{position:"absolute",top:0,left:0,right:0,backgroundColor:"transparent"}});r.exports=g},307);
__d(function(e,t,a,r){"use strict";var o=t(100),n=t(293),l=t(99),s=t(304),i=n.isRTL,p=o.get("window").width,m=o.get("window").height,d=l.get(),x={transformTranslate:{from:{x:0,y:0,z:0},to:{x:.3*-p,y:0,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:d},opacity:{value:1,type:"constant"}},u=babelHelpers.extends({},x,{transformTranslate:{from:{x:0,y:0,z:0},to:{x:.3*p,y:0,z:0}}}),y={transformTranslate:{from:{x:0,y:0,z:0},to:{x:-Math.round(.3*p),y:0,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:d},transformScale:{from:{x:1,y:1,z:1},to:{x:.95,y:.95,z:1},min:0,max:1,type:"linear",extrapolate:!0},opacity:{from:1,to:.3,min:0,max:1,type:"linear",extrapolate:!1,round:100},translateX:{from:0,to:-Math.round(.3*p),min:0,max:1,type:"linear",extrapolate:!0,round:d},scaleX:{from:1,to:.95,min:0,max:1,type:"linear",extrapolate:!0},scaleY:{from:1,to:.95,min:0,max:1,type:"linear",extrapolate:!0}},T=babelHelpers.extends({},y,{transformTranslate:{from:{x:0,y:0,z:0},to:{x:Math.round(.3*p),y:0,z:0}},translateX:{from:0,to:Math.round(.3*p)}}),b={opacity:{from:0,to:1,min:.5,max:1,type:"linear",extrapolate:!1,round:100}},c={opacity:{from:1,to:0,min:0,max:.5,type:"linear",extrapolate:!1,round:100}},h={transformTranslate:{from:{x:0,y:0,z:0},to:{x:-p,y:0,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:d},opacity:{value:1,type:"constant"},translateX:{from:0,to:-p,min:0,max:1,type:"linear",extrapolate:!0,round:d}},f={transformTranslate:{from:{x:0,y:0,z:0},to:{x:p,y:0,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:d},opacity:{value:1,type:"constant"},translateX:{from:0,to:p,min:0,max:1,type:"linear",extrapolate:!0,round:d}},H={transformTranslate:{from:{x:0,y:0,z:0},to:{x:0,y:-m,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:d},opacity:{value:1,type:"constant"},translateY:{from:0,to:-m,min:0,max:1,type:"linear",extrapolate:!0,round:d}},S={transformTranslate:{from:{x:0,y:0,z:0},to:{x:0,y:m,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:d},opacity:{value:1,type:"constant"},translateY:{from:0,to:m,min:0,max:1,type:"linear",extrapolate:!0,round:d}},F={opacity:{value:1,type:"constant"},transformTranslate:{from:{x:p,y:0,z:0},to:{x:0,y:0,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:d},translateX:{from:p,to:0,min:0,max:1,type:"linear",extrapolate:!0,round:d},scaleX:{value:1,type:"constant"},scaleY:{value:1,type:"constant"}},g=babelHelpers.extends({},F,{transformTranslate:{from:{x:-p,y:0,z:0},to:{x:0,y:0,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:d},translateX:{from:-p,to:0,min:0,max:1,type:"linear",extrapolate:!0,round:d}}),z=babelHelpers.extends({},F,{transformTranslate:{from:{y:m,x:0,z:0},to:{x:0,y:0,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:d},translateY:{from:m,to:0,min:0,max:1,type:"linear",extrapolate:!0,round:d}}),E=babelHelpers.extends({},F,{transformTranslate:{from:{y:-m,x:0,z:0},to:{x:0,y:0,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:d},translateY:{from:-m,to:0,min:0,max:1,type:"linear",extrapolate:!0,round:d}}),w={transformTranslate:{from:{x:0,y:0,z:0},to:{x:0,y:0,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:d},transformScale:{from:{x:1,y:1,z:1},to:{x:.95,y:.95,z:1},min:0,max:1,type:"linear",extrapolate:!0},opacity:{from:1,to:.3,min:0,max:1,type:"linear",extrapolate:!1,round:100},scaleX:{from:1,to:.95,min:0,max:1,type:"linear",extrapolate:!0},scaleY:{from:1,to:.95,min:0,max:1,type:"linear",extrapolate:!0}},v={opacity:{value:1,type:"constant"},transformTranslate:{from:{x:0,y:m,z:0},to:{x:0,y:0,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:d},translateY:{from:m,to:0,min:0,max:1,type:"linear",extrapolate:!0,round:d},scaleX:{value:1,type:"constant"},scaleY:{value:1,type:"constant"}},B={opacity:{value:1,type:"constant"}},D={opacity:{from:0,to:1,min:.5,max:1,type:"linear",extrapolate:!1,round:100},transformTranslate:{from:{x:0,y:100,z:0},to:{x:0,y:0,z:0},min:0,max:1,type:"linear",extrapolate:!0,round:d},translateY:{from:100,to:0,min:0,max:1,type:"linear",extrapolate:!0,round:d}},I={frictionConstant:1,frictionByDistance:1.5},G={isDetachable:!1,gestureDetectMovement:2,notMoving:.3,directionRatio:.66,snapVelocity:2,edgeHitWidth:30,stillCompletionRatio:.6,fullDistance:p,direction:"left-to-right"},W=babelHelpers.extends({},G,{direction:"right-to-left"}),j=babelHelpers.extends({},G,{fullDistance:m,direction:"bottom-to-top"}),X=babelHelpers.extends({},G,{fullDistance:m,direction:"top-to-bottom"}),Y={ToTheStartIOS:x,ToTheEndIOS:u,FadeToTheStart:y,FadeToTheEnd:T,ToTheStart:h,ToTheEnd:f,FromTheStart:g,FromTheEnd:F,BaseStartToEndGesture:G,BaseEndToStartGesture:W};i&&(Y={ToTheStartIOS:u,ToTheEndIOS:x,FadeToTheStart:T,FadeToTheEnd:y,ToTheStart:f,ToTheEnd:h,FromTheStart:F,FromTheEnd:g,BaseStartToEndGesture:W,BaseEndToStartGesture:G});var k={gestures:{pop:Y.BaseStartToEndGesture},springFriction:26,springTension:200,defaultTransitionVelocity:1.5,animationInterpolators:{into:s(Y.FromTheEnd),out:s(Y.FadeToTheStart)}},M={PushFromRight:babelHelpers.extends({},k,{animationInterpolators:{into:s(Y.FromTheEnd),out:s(Y.ToTheStartIOS)}}),PushFromLeft:babelHelpers.extends({},k,{animationInterpolators:{into:s(Y.FromTheStart),out:s(Y.ToTheEndIOS)}}),FloatFromRight:babelHelpers.extends({},k),FloatFromLeft:babelHelpers.extends({},k,{gestures:{pop:Y.BaseEndToStartGesture},animationInterpolators:{into:s(Y.FromTheStart),out:s(Y.FadeToTheEnd)}}),FloatFromBottom:babelHelpers.extends({},k,{gestures:{pop:babelHelpers.extends({},Y.BaseStartToEndGesture,{edgeHitWidth:150,direction:"top-to-bottom",fullDistance:m})},animationInterpolators:{into:s(v),out:s(w)}}),FloatFromBottomAndroid:babelHelpers.extends({},k,{gestures:null,defaultTransitionVelocity:3,springFriction:20,animationInterpolators:{into:s(D),out:s(B)}}),FadeAndroid:babelHelpers.extends({},k,{gestures:null,animationInterpolators:{into:s(b),out:s(c)}}),SwipeFromLeft:babelHelpers.extends({},k,{gestures:{jumpBack:babelHelpers.extends({},Y.BaseEndToStartGesture,{overswipe:I,edgeHitWidth:null,isDetachable:!0}),jumpForward:babelHelpers.extends({},Y.BaseStartToEndGesture,{overswipe:I,edgeHitWidth:null,isDetachable:!0})},animationInterpolators:{into:s(Y.FromTheStart),out:s(Y.ToTheEnd)}}),HorizontalSwipeJump:babelHelpers.extends({},k,{gestures:{jumpBack:babelHelpers.extends({},Y.BaseStartToEndGesture,{overswipe:I,edgeHitWidth:null,isDetachable:!0}),jumpForward:babelHelpers.extends({},Y.BaseEndToStartGesture,{overswipe:I,edgeHitWidth:null,isDetachable:!0})},animationInterpolators:{into:s(Y.FromTheEnd),out:s(Y.ToTheStart)}}),HorizontalSwipeJumpFromRight:babelHelpers.extends({},k,{gestures:{jumpBack:babelHelpers.extends({},Y.BaseEndToStartGesture,{overswipe:I,edgeHitWidth:null,isDetachable:!0}),jumpForward:babelHelpers.extends({},Y.BaseStartToEndGesture,{overswipe:I,edgeHitWidth:null,isDetachable:!0}),pop:Y.BaseEndToStartGesture},animationInterpolators:{into:s(Y.FromTheStart),out:s(Y.FadeToTheEnd)}}),HorizontalSwipeJumpFromLeft:babelHelpers.extends({},k,{gestures:{jumpBack:babelHelpers.extends({},Y.BaseEndToStartGesture,{overswipe:I,edgeHitWidth:null,isDetachable:!0}),jumpForward:babelHelpers.extends({},Y.BaseStartToEndGesture,{overswipe:I,edgeHitWidth:null,isDetachable:!0}),pop:Y.BaseEndToStartGesture},animationInterpolators:{into:s(Y.FromTheStart),out:s(Y.ToTheEnd)}}),VerticalUpSwipeJump:babelHelpers.extends({},k,{gestures:{jumpBack:babelHelpers.extends({},X,{overswipe:I,edgeHitWidth:null,isDetachable:!0}),jumpForward:babelHelpers.extends({},j,{overswipe:I,edgeHitWidth:null,isDetachable:!0})},animationInterpolators:{into:s(z),out:s(H)}}),VerticalDownSwipeJump:babelHelpers.extends({},k,{gestures:{jumpBack:babelHelpers.extends({},j,{overswipe:I,edgeHitWidth:null,isDetachable:!0}),jumpForward:babelHelpers.extends({},X,{overswipe:I,edgeHitWidth:null,isDetachable:!0})},animationInterpolators:{into:s(E),out:s(S)}})};a.exports=M},308);
__d(function(e,n,o,t){"use strict";function r(e,n,o,t){e.handle&&(a.clearInteractionHandle(e.handle),e.handle=null),n&&n(o,t)}var a=n(203),u=n(310),s=u.currentCentroidXOfTouchesChangedAfter,d=u.currentCentroidYOfTouchesChangedAfter,i=u.previousCentroidXOfTouchesChangedAfter,c=u.previousCentroidYOfTouchesChangedAfter,p=u.currentCentroidX,v=u.currentCentroidY,h={_initializeGestureState:function(e){e.moveX=0,e.moveY=0,e.x0=0,e.y0=0,e.dx=0,e.dy=0,e.vx=0,e.vy=0,e.numberActiveTouches=0,e._accountsForMovesUpTo=0},_updateGestureStateOnMove:function(e,n){e.numberActiveTouches=n.numberActiveTouches,e.moveX=s(n,e._accountsForMovesUpTo),e.moveY=d(n,e._accountsForMovesUpTo);var o=e._accountsForMovesUpTo,t=i(n,o),r=s(n,o),a=c(n,o),u=d(n,o),p=e.dx+(r-t),v=e.dy+(u-a),h=n.mostRecentTimeStamp-e._accountsForMovesUpTo;e.vx=(p-e.dx)/h,e.vy=(v-e.dy)/h,e.dx=p,e.dy=v,e._accountsForMovesUpTo=n.mostRecentTimeStamp},create:function(e){var n={handle:null},o={stateID:Math.random()};return h._initializeGestureState(o),{panHandlers:{onStartShouldSetResponder:function(n){return void 0!==e.onStartShouldSetPanResponder&&e.onStartShouldSetPanResponder(n,o)},onMoveShouldSetResponder:function(n){return void 0!==e.onMoveShouldSetPanResponder&&e.onMoveShouldSetPanResponder(n,o)},onStartShouldSetResponderCapture:function(n){return 1===n.nativeEvent.touches.length&&h._initializeGestureState(o),o.numberActiveTouches=n.touchHistory.numberActiveTouches,void 0!==e.onStartShouldSetPanResponderCapture&&e.onStartShouldSetPanResponderCapture(n,o)},onMoveShouldSetResponderCapture:function(n){var t=n.touchHistory;return o._accountsForMovesUpTo!==t.mostRecentTimeStamp&&(h._updateGestureStateOnMove(o,t),!!e.onMoveShouldSetPanResponderCapture&&e.onMoveShouldSetPanResponderCapture(n,o))},onResponderGrant:function(t){return n.handle||(n.handle=a.createInteractionHandle()),o.x0=p(t.touchHistory),o.y0=v(t.touchHistory),o.dx=0,o.dy=0,e.onPanResponderGrant&&e.onPanResponderGrant(t,o),void 0===e.onShouldBlockNativeResponder||e.onShouldBlockNativeResponder()},onResponderReject:function(t){r(n,e.onPanResponderReject,t,o)},onResponderRelease:function(t){r(n,e.onPanResponderRelease,t,o),h._initializeGestureState(o)},onResponderStart:function(n){var t=n.touchHistory;o.numberActiveTouches=t.numberActiveTouches,e.onPanResponderStart&&e.onPanResponderStart(n,o)},onResponderMove:function(n){var t=n.touchHistory;o._accountsForMovesUpTo!==t.mostRecentTimeStamp&&(h._updateGestureStateOnMove(o,t),e.onPanResponderMove&&e.onPanResponderMove(n,o))},onResponderEnd:function(t){var a=t.touchHistory;o.numberActiveTouches=a.numberActiveTouches,r(n,e.onPanResponderEnd,t,o)},onResponderTerminate:function(t){r(n,e.onPanResponderTerminate,t,o),h._initializeGestureState(o)},onResponderTerminationRequest:function(n){return void 0===e.onPanResponderTerminationRequest||e.onPanResponderTerminationRequest(n,o)}},getInteractionHandle:function(){return n.handle}}}};o.exports=h},309);
__d(function(e,n,r,t){"use strict";var i={centroidDimension:function(e,n,r,t){var o=e.touchBank,u=0,c=0,d=1===e.numberActiveTouches?e.touchBank[e.indexOfSingleActiveTouch]:null;if(null!==d)d.touchActive&&d.currentTimeStamp>n&&(u+=t&&r?d.currentPageX:t&&!r?d.currentPageY:!t&&r?d.previousPageX:d.previousPageY,c=1);else for(var s=0;s<o.length;s++){var a=o[s];if(null!==a&&void 0!==a&&a.touchActive&&a.currentTimeStamp>=n){var f;f=t&&r?a.currentPageX:t&&!r?a.currentPageY:!t&&r?a.previousPageX:a.previousPageY,u+=f,c++}}return c>0?u/c:i.noCentroid},currentCentroidXOfTouchesChangedAfter:function(e,n){return i.centroidDimension(e,n,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(e,n){return i.centroidDimension(e,n,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(e,n){return i.centroidDimension(e,n,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(e,n){return i.centroidDimension(e,n,!1,!1)},currentCentroidX:function(e){return i.centroidDimension(e,0,!0,!0)},currentCentroidY:function(e){return i.centroidDimension(e,0,!1,!0)},noCentroid:-1};r.exports=i},310);
__d(function(t,n,r,u){"use strict";function c(t,n,r){return n<t?t:n>r?r:n}r.exports=c},311);
__d(function(t,i,e,n){!function(){function t(t,i){var e=t.indexOf(i);-1!=e&&t.splice(e,1)}var i={},e=i.util={},s=Array.prototype.concat,r=Array.prototype.slice;e.bind=function(t,i){var e=r.call(arguments,2);return function(){t.apply(i,s.call(e,r.call(arguments)))}},e.extend=function(t,i){for(var e in i)i.hasOwnProperty(e)&&(t[e]=i[e])};var o=i.SpringSystem=function(t){this._springRegistry={},this._activeSprings=[],this.listeners=[],this._idleSpringIndices=[],this.looper=t||new l,this.looper.springSystem=this};e.extend(o.prototype,{_springRegistry:null,_isIdle:!0,_lastTimeMillis:-1,_activeSprings:null,listeners:null,_idleSpringIndices:null,setLooper:function(t){this.looper=t,t.springSystem=this},createSpring:function(t,i){var e;return e=void 0===t||void 0===i?u.DEFAULT_ORIGAMI_SPRING_CONFIG:u.fromOrigamiTensionAndFriction(t,i),this.createSpringWithConfig(e)},createSpringWithBouncinessAndSpeed:function(t,i){var e;return e=void 0===t||void 0===i?u.DEFAULT_ORIGAMI_SPRING_CONFIG:u.fromBouncinessAndSpeed(t,i),this.createSpringWithConfig(e)},createSpringWithConfig:function(t){var i=new a(this);return this.registerSpring(i),i.setSpringConfig(t),i},getIsIdle:function(){return this._isIdle},getSpringById:function(t){return this._springRegistry[t]},getAllSprings:function(){var t=[];for(var i in this._springRegistry)this._springRegistry.hasOwnProperty(i)&&t.push(this._springRegistry[i]);return t},registerSpring:function(t){this._springRegistry[t.getId()]=t},deregisterSpring:function(i){t(this._activeSprings,i),delete this._springRegistry[i.getId()]},advance:function(t,i){for(;this._idleSpringIndices.length>0;)this._idleSpringIndices.pop();for(var e=0,n=this._activeSprings.length;e<n;e++){var s=this._activeSprings[e];s.systemShouldAdvance()?s.advance(t/1e3,i/1e3):this._idleSpringIndices.push(this._activeSprings.indexOf(s))}for(;this._idleSpringIndices.length>0;){var r=this._idleSpringIndices.pop();r>=0&&this._activeSprings.splice(r,1)}},loop:function(t){var i;-1===this._lastTimeMillis&&(this._lastTimeMillis=t-1);var e=t-this._lastTimeMillis;this._lastTimeMillis=t;var n=0,s=this.listeners.length;for(n=0;n<s;n++)i=this.listeners[n],i.onBeforeIntegrate&&i.onBeforeIntegrate(this);for(this.advance(t,e),0===this._activeSprings.length&&(this._isIdle=!0,this._lastTimeMillis=-1),n=0;n<s;n++)i=this.listeners[n],i.onAfterIntegrate&&i.onAfterIntegrate(this);this._isIdle||this.looper.run()},activateSpring:function(t){var i=this._springRegistry[t];-1==this._activeSprings.indexOf(i)&&this._activeSprings.push(i),this.getIsIdle()&&(this._isIdle=!1,this.looper.run())},addListener:function(t){this.listeners.push(t)},removeListener:function(i){t(this.listeners,i)},removeAllListeners:function(){this.listeners=[]}});var a=i.Spring=function t(i){this._id="s"+t._ID++,this._springSystem=i,this.listeners=[],this._currentState=new h,this._previousState=new h,this._tempState=new h};e.extend(a,{_ID:0,MAX_DELTA_TIME_SEC:.064,SOLVER_TIMESTEP_SEC:.001}),e.extend(a.prototype,{_id:0,_springConfig:null,_overshootClampingEnabled:!1,_currentState:null,_previousState:null,_tempState:null,_startValue:0,_endValue:0,_wasAtRest:!0,_restSpeedThreshold:.001,_displacementFromRestThreshold:.001,listeners:null,_timeAccumulator:0,_springSystem:null,destroy:function(){this.listeners=[],this.frames=[],this._springSystem.deregisterSpring(this)},getId:function(){return this._id},setSpringConfig:function(t){return this._springConfig=t,this},getSpringConfig:function(){return this._springConfig},setCurrentValue:function(t,i){return this._startValue=t,this._currentState.position=t,i||this.setAtRest(),this.notifyPositionUpdated(!1,!1),this},getStartValue:function(){return this._startValue},getCurrentValue:function(){return this._currentState.position},getCurrentDisplacementDistance:function(){return this.getDisplacementDistanceForState(this._currentState)},getDisplacementDistanceForState:function(t){return Math.abs(this._endValue-t.position)},setEndValue:function(t){if(this._endValue==t&&this.isAtRest())return this;this._startValue=this.getCurrentValue(),this._endValue=t,this._springSystem.activateSpring(this.getId());for(var i=0,e=this.listeners.length;i<e;i++){var n=this.listeners[i],s=n.onSpringEndStateChange;s&&s(this)}return this},getEndValue:function(){return this._endValue},setVelocity:function(t){return t===this._currentState.velocity?this:(this._currentState.velocity=t,this._springSystem.activateSpring(this.getId()),this)},getVelocity:function(){return this._currentState.velocity},setRestSpeedThreshold:function(t){return this._restSpeedThreshold=t,this},getRestSpeedThreshold:function(){return this._restSpeedThreshold},setRestDisplacementThreshold:function(t){this._displacementFromRestThreshold=t},getRestDisplacementThreshold:function(){return this._displacementFromRestThreshold},setOvershootClampingEnabled:function(t){return this._overshootClampingEnabled=t,this},isOvershootClampingEnabled:function(){return this._overshootClampingEnabled},isOvershooting:function(){var t=this._startValue,i=this._endValue;return this._springConfig.tension>0&&(t<i&&this.getCurrentValue()>i||t>i&&this.getCurrentValue()<i)},advance:function(t,i){var e=this.isAtRest();if(!e||!this._wasAtRest){var n=i;i>a.MAX_DELTA_TIME_SEC&&(n=a.MAX_DELTA_TIME_SEC),this._timeAccumulator+=n;for(var s,r,o,h,u,l,c,p,g,_,S=this._springConfig.tension,d=this._springConfig.friction,f=this._currentState.position,m=this._currentState.velocity,v=this._tempState.position,E=this._tempState.velocity;this._timeAccumulator>=a.SOLVER_TIMESTEP_SEC;)this._timeAccumulator-=a.SOLVER_TIMESTEP_SEC,this._timeAccumulator<a.SOLVER_TIMESTEP_SEC&&(this._previousState.position=f,this._previousState.velocity=m),s=m,r=S*(this._endValue-v)-d*m,v=f+s*a.SOLVER_TIMESTEP_SEC*.5,E=m+r*a.SOLVER_TIMESTEP_SEC*.5,o=E,h=S*(this._endValue-v)-d*E,v=f+o*a.SOLVER_TIMESTEP_SEC*.5,E=m+h*a.SOLVER_TIMESTEP_SEC*.5,u=E,l=S*(this._endValue-v)-d*E,v=f+u*a.SOLVER_TIMESTEP_SEC*.5,E=m+l*a.SOLVER_TIMESTEP_SEC*.5,c=E,p=S*(this._endValue-v)-d*E,g=.16666666666666666*(s+2*(o+u)+c),_=.16666666666666666*(r+2*(h+l)+p),f+=g*a.SOLVER_TIMESTEP_SEC,m+=_*a.SOLVER_TIMESTEP_SEC;this._tempState.position=v,this._tempState.velocity=E,this._currentState.position=f,this._currentState.velocity=m,this._timeAccumulator>0&&this._interpolate(this._timeAccumulator/a.SOLVER_TIMESTEP_SEC),(this.isAtRest()||this._overshootClampingEnabled&&this.isOvershooting())&&(this._springConfig.tension>0?(this._startValue=this._endValue,this._currentState.position=this._endValue):(this._endValue=this._currentState.position,this._startValue=this._endValue),this.setVelocity(0),e=!0);var I=!1;this._wasAtRest&&(this._wasAtRest=!1,I=!0);var y=!1;e&&(this._wasAtRest=!0,y=!0),this.notifyPositionUpdated(I,y)}},notifyPositionUpdated:function(t,i){for(var e=0,n=this.listeners.length;e<n;e++){var s=this.listeners[e];t&&s.onSpringActivate&&s.onSpringActivate(this),s.onSpringUpdate&&s.onSpringUpdate(this),i&&s.onSpringAtRest&&s.onSpringAtRest(this)}},systemShouldAdvance:function(){return!this.isAtRest()||!this.wasAtRest()},wasAtRest:function(){return this._wasAtRest},isAtRest:function(){return Math.abs(this._currentState.velocity)<this._restSpeedThreshold&&(this.getDisplacementDistanceForState(this._currentState)<=this._displacementFromRestThreshold||0===this._springConfig.tension)},setAtRest:function(){return this._endValue=this._currentState.position,this._tempState.position=this._currentState.position,this._currentState.velocity=0,this},_interpolate:function(t){this._currentState.position=this._currentState.position*t+this._previousState.position*(1-t),this._currentState.velocity=this._currentState.velocity*t+this._previousState.velocity*(1-t)},getListeners:function(){return this.listeners},addListener:function(t){return this.listeners.push(t),this},removeListener:function(i){return t(this.listeners,i),this},removeAllListeners:function(){return this.listeners=[],this},currentValueIsApproximately:function(t){return Math.abs(this.getCurrentValue()-t)<=this.getRestDisplacementThreshold()}});var h=function(){};e.extend(h.prototype,{position:0,velocity:0});var u=i.SpringConfig=function(t,i){this.tension=t,this.friction=i},l=i.AnimationLooper=function(){this.springSystem=null;var t=this,i=function(){t.springSystem.loop(Date.now())};this.run=function(){e.onFrame(i)}};i.SimulationLooper=function(t){this.springSystem=null;var i=0,e=!1;t=t||16.667,this.run=function(){if(!e){for(e=!0;!this.springSystem.getIsIdle();)this.springSystem.loop(i+=t);e=!1}}},i.SteppingSimulationLooper=function(t){this.springSystem=null;var i=0;this.run=function(){},this.step=function(t){this.springSystem.loop(i+=t)}};var c=i.OrigamiValueConverter={tensionFromOrigamiValue:function(t){return 3.62*(t-30)+194},origamiValueFromTension:function(t){return(t-194)/3.62+30},frictionFromOrigamiValue:function(t){return 3*(t-8)+25},origamiFromFriction:function(t){return(t-25)/3+8}},p=i.BouncyConversion=function(t,i){this.bounciness=t,this.speed=i;var e=this.normalize(t/1.7,0,20);e=this.projectNormal(e,0,.8);var n=this.normalize(i/1.7,0,20);this.bouncyTension=this.projectNormal(n,.5,200),this.bouncyFriction=this.quadraticOutInterpolation(e,this.b3Nobounce(this.bouncyTension),.01)};e.extend(p.prototype,{normalize:function(t,i,e){return(t-i)/(e-i)},projectNormal:function(t,i,e){return i+t*(e-i)},linearInterpolation:function(t,i,e){return t*e+(1-t)*i},quadraticOutInterpolation:function(t,i,e){return this.linearInterpolation(2*t-t*t,i,e)},b3Friction1:function(t){return 7e-4*Math.pow(t,3)-.031*Math.pow(t,2)+.64*t+1.28},b3Friction2:function(t){return 44e-6*Math.pow(t,3)-.006*Math.pow(t,2)+.36*t+2},b3Friction3:function(t){return 4.5e-7*Math.pow(t,3)-332e-6*Math.pow(t,2)+.1078*t+5.84},b3Nobounce:function(t){return t<=18?this.b3Friction1(t):t>18&&t<=44?this.b3Friction2(t):this.b3Friction3(t)}}),e.extend(u,{fromOrigamiTensionAndFriction:function(t,i){return new u(c.tensionFromOrigamiValue(t),c.frictionFromOrigamiValue(i))},fromBouncinessAndSpeed:function(t,e){var n=new i.BouncyConversion(t,e);return this.fromOrigamiTensionAndFriction(n.bouncyTension,n.bouncyFriction)},coastingConfigWithOrigamiFriction:function(t){return new u(0,c.frictionFromOrigamiValue(t))}}),u.DEFAULT_ORIGAMI_SPRING_CONFIG=u.fromOrigamiTensionAndFriction(40,7),e.extend(u.prototype,{friction:0,tension:0});var g={};e.hexToRGB=function(t){if(g[t])return g[t];t=t.replace("#",""),3===t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);var i=t.match(/.{2}/g),e={r:parseInt(i[0],16),g:parseInt(i[1],16),b:parseInt(i[2],16)};return g[t]=e,e},e.rgbToHex=function(t,i,e){return t=t.toString(16),i=i.toString(16),e=e.toString(16),t=t.length<2?"0"+t:t,i=i.length<2?"0"+i:i,e=e.length<2?"0"+e:e,"#"+t+i+e};var _=i.MathUtil={mapValueInRange:function(t,i,e,n,s){return n+(t-i)/(e-i)*(s-n)},interpolateColor:function(t,i,n,s,r,o){s=void 0===s?0:s,r=void 0===r?1:r,i=e.hexToRGB(i),n=e.hexToRGB(n);var a=Math.floor(e.mapValueInRange(t,s,r,i.r,n.r)),h=Math.floor(e.mapValueInRange(t,s,r,i.g,n.g)),u=Math.floor(e.mapValueInRange(t,s,r,i.b,n.b));return o?"rgb("+a+","+h+","+u+")":e.rgbToHex(a,h,u)},degreesToRadians:function(t){return t*Math.PI/180},radiansToDegrees:function(t){return 180*t/Math.PI}};e.extend(e,_);var S;"undefined"!=typeof window&&(S=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(t){window.setTimeout(t,16.666666666666668)}),S||"undefined"==typeof process||"node"!==process.title||(S=setImmediate),e.onFrame=function(t){return S(t)},void 0!==n?e.extend(n,i):"undefined"!=typeof window&&(window.rebound=i)}()},312);
__d(function(t,e,o,s){"use strict";function i(){return T++}var a=e(102),n=e(219),r=e(296),c=e(76).NavigatorManager,u=e(97),p=e(223),l=e(314),d=e(98),h=e(196),v=e(130),f=e(44),g=e(111),k=e(139),S=e(115),m=u.PropTypes,T=0,b=function(t){function e(){return babelHelpers.classCallCheck(this,e),babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"requestSchedulingNavigation",value:function(t){c.requestSchedulingJavaScriptNavigation(p.findNodeHandle(this),g,t)}},{key:"render",value:function(){return u.createElement(N,this.props)}}]),e}(u.Component),O={done:!0,cancel:!0,edit:!0,save:!0,add:!0,compose:!0,reply:!0,action:!0,organize:!0,bookmarks:!0,search:!0,refresh:!0,stop:!0,camera:!0,trash:!0,play:!0,pause:!0,rewind:!0,"fast-forward":!0,undo:!0,redo:!0,"page-curl":!0},y=S(O),_=u.createClass({displayName:"NavigatorIOS",propTypes:{initialRoute:m.shape({component:m.func.isRequired,title:m.string.isRequired,titleImage:n.propTypes.source,passProps:m.object,backButtonIcon:n.propTypes.source,backButtonTitle:m.string,leftButtonIcon:n.propTypes.source,leftButtonTitle:m.string,leftButtonSystemIcon:m.oneOf(Object.keys(y)),onLeftButtonPress:m.func,rightButtonIcon:n.propTypes.source,rightButtonTitle:m.string,rightButtonSystemIcon:m.oneOf(Object.keys(y)),onRightButtonPress:m.func,wrapperStyle:v.propTypes.style,navigationBarHidden:m.bool,shadowHidden:m.bool,tintColor:m.string,barTintColor:m.string,titleTextColor:m.string,translucent:m.bool}).isRequired,navigationBarHidden:m.bool,shadowHidden:m.bool,itemWrapperStyle:v.propTypes.style,tintColor:m.string,barTintColor:m.string,titleTextColor:m.string,translucent:m.bool,interactivePopGestureEnabled:m.bool},navigator:void 0,navigationContext:new r,componentWillMount:function(){this.navigator={push:this.push,pop:this.pop,popN:this.popN,replace:this.replace,replaceAtIndex:this.replaceAtIndex,replacePrevious:this.replacePrevious,replacePreviousAndPop:this.replacePreviousAndPop,resetTo:this.resetTo,popToRoute:this.popToRoute,popToTop:this.popToTop,navigationContext:this.navigationContext},this._emitWillFocus(this.state.routeStack[this.state.observedTopOfStack])},componentDidMount:function(){this._emitDidFocus(this.state.routeStack[this.state.observedTopOfStack]),this._enableTVEventHandler()},componentWillUnmount:function(){this.navigationContext.dispose(),this.navigationContext=new r,this._disableTVEventHandler()},getDefaultProps:function(){return{translucent:!0}},getInitialState:function(){return{idStack:[i()],routeStack:[this.props.initialRoute],requestedTopOfStack:0,observedTopOfStack:0,progress:1,fromIndex:0,toIndex:0,makingNavigatorRequest:!1,updatingAllIndicesAtOrBeyond:0}},_toFocusOnNavigationComplete:void 0,_handleFocusRequest:function(t){this.state.makingNavigatorRequest?this._toFocusOnNavigationComplete=t:this._getFocusEmitter().emit("focus",t)},_focusEmitter:void 0,_getFocusEmitter:function(){var t=this._focusEmitter;return t||(t=new a,this._focusEmitter=t),t},getChildContext:function(){return{onFocusRequested:this._handleFocusRequest,focusEmitter:this._getFocusEmitter()}},childContextTypes:{onFocusRequested:u.PropTypes.func,focusEmitter:u.PropTypes.instanceOf(a)},_tryLockNavigator:function(t){this.refs.transitionerRef.requestSchedulingNavigation(function(e){return e&&t()})},_handleNavigatorStackChanged:function(t){var e=t.nativeEvent.stackLength-1;this._emitDidFocus(this.state.routeStack[e]),f(e<=this.state.requestedTopOfStack,"No navigator item should be pushed without JS knowing about it %s %s",e,this.state.requestedTopOfStack),this.state.requestedTopOfStack!==this.state.observedTopOfStack&&f(e===this.state.requestedTopOfStack,"If waiting for observedTopOfStack to reach requestedTopOfStack, the only valid observedTopOfStack should be requestedTopOfStack.");var o={observedTopOfStack:e,makingNavigatorRequest:!1,updatingAllIndicesAtOrBeyond:null,progress:1,toIndex:e,fromIndex:e};this.setState(o,this._eliminateUnneededChildren)},_eliminateUnneededChildren:function(){var t=this.state.routeStack.length>this.state.observedTopOfStack+1?this.state.observedTopOfStack+1:null;this.setState({idStack:this.state.idStack.slice(0,this.state.observedTopOfStack+1),routeStack:this.state.routeStack.slice(0,this.state.observedTopOfStack+1),requestedTopOfStack:this.state.observedTopOfStack,makingNavigatorRequest:!0,updatingAllIndicesAtOrBeyond:t})},_emitDidFocus:function(t){this.navigationContext.emit("didfocus",{route:t})},_emitWillFocus:function(t){this.navigationContext.emit("willfocus",{route:t})},push:function(t){var e=this;f(!!t,"Must supply route to push"),this.state.requestedTopOfStack===this.state.observedTopOfStack&&this._tryLockNavigator(function(){e._emitWillFocus(t);var o=e.state.routeStack.concat([t]),s=e.state.idStack.concat([i()]);e.setState({idStack:s,routeStack:o,requestedTopOfStack:o.length-1,makingNavigatorRequest:!0,updatingAllIndicesAtOrBeyond:o.length-1})})},popN:function(t){var e=this;0!==t&&this.state.requestedTopOfStack===this.state.observedTopOfStack&&this.state.requestedTopOfStack>0&&this._tryLockNavigator(function(){var o=e.state.requestedTopOfStack-t;f(o>=0,"Cannot pop below 0"),e._emitWillFocus(e.state.routeStack[o]),e.setState({requestedTopOfStack:o,makingNavigatorRequest:!0,updatingAllIndicesAtOrBeyond:e.state.requestedTopOfStack-t})})},pop:function(){this.popN(1)},replaceAtIndex:function(t,e){if(f(!!t,"Must supply route to replace"),e<0&&(e+=this.state.routeStack.length),!(this.state.routeStack.length<=e)){var o=this.state.idStack.slice(),s=this.state.routeStack.slice();o[e]=i(),s[e]=t,this.setState({idStack:o,routeStack:s,makingNavigatorRequest:!1,updatingAllIndicesAtOrBeyond:e}),this._emitWillFocus(t),this._emitDidFocus(t)}},replace:function(t){this.replaceAtIndex(t,-1)},replacePrevious:function(t){this.replaceAtIndex(t,-2)},popToTop:function(){this.popToRoute(this.state.routeStack[0])},popToRoute:function(t){var e=this.state.routeStack.indexOf(t);f(-1!==e,"Calling pop to route for a route that doesn't exist!");var o=this.state.routeStack.length-e-1;this.popN(o)},replacePreviousAndPop:function(t){var e=this;this.state.requestedTopOfStack===this.state.observedTopOfStack&&(this.state.routeStack.length<2||this._tryLockNavigator(function(){e.replacePrevious(t),e.setState({requestedTopOfStack:e.state.requestedTopOfStack-1,makingNavigatorRequest:!0})}))},resetTo:function(t){f(!!t,"Must supply route to push"),this.state.requestedTopOfStack===this.state.observedTopOfStack&&(this.replaceAtIndex(t,0),this.popToRoute(t))},_handleNavigationComplete:function(t){t.stopPropagation(),this._toFocusOnNavigationComplete&&(this._getFocusEmitter().emit("focus",this._toFocusOnNavigationComplete),this._toFocusOnNavigationComplete=null),this._handleNavigatorStackChanged(t)},_routeToStackItem:function(t,e){var o=t.component,s=t.wrapperStyle,i=t.passProps,a=babelHelpers.objectWithoutProperties(t,["component","wrapperStyle","passProps"]),n=this.props,r=n.itemWrapperStyle,c=babelHelpers.objectWithoutProperties(n,["itemWrapperStyle"]),p=null!=this.state.updatingAllIndicesAtOrBeyond&&this.state.updatingAllIndicesAtOrBeyond>=e,d=o;return u.createElement(l,{key:"nav"+e,shouldUpdate:p},u.createElement(C,babelHelpers.extends({},c,a,{style:[q.stackItem,r,s]}),u.createElement(d,babelHelpers.extends({navigator:this.navigator,route:a},i))))},_renderNavigationStackItems:function(){var t=this.state.makingNavigatorRequest||null!==this.state.updatingAllIndicesAtOrBeyond,e=t?this.state.routeStack.map(this._routeToStackItem):null;return u.createElement(l,{shouldUpdate:t},u.createElement(b,{ref:"transitionerRef",style:q.transitioner,vertical:this.props.vertical,requestedTopOfStack:this.state.requestedTopOfStack,onNavigationComplete:this._handleNavigationComplete,interactivePopGestureEnabled:this.props.interactivePopGestureEnabled},e))},_tvEventHandler:void 0,_enableTVEventHandler:function(){this._tvEventHandler=new h,this._tvEventHandler.enable(this,function(t,e){e&&"menu"===e.eventType&&t.pop()})},_disableTVEventHandler:function(){this._tvEventHandler&&(this._tvEventHandler.disable(),delete this._tvEventHandler)},render:function(){return u.createElement(v,{style:this.props.style},this._renderNavigationStackItems())}}),q=d.create({stackItem:{backgroundColor:"white",overflow:"hidden",position:"absolute",top:0,left:0,right:0,bottom:0},transitioner:{flex:1}}),N=k("RCTNavigator"),C=k("RCTNavItem");o.exports=_},313);
__d(function(e,t,r,n){"use strict";var l=t(97),s=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"shouldComponentUpdate",value:function(e){return!!e.shouldUpdate}},{key:"render",value:function(){var e=this.props.children;return null===e||!1===e?null:l.Children.only(e)}}]),t}(l.Component);r.exports=s},314);
__d(function(e,r,t,s){"use strict";var o,p,l=r(66),n=r(316),a=(r(317),r(75),r(97)),i=r(137),b=r(122),u=(r(140),r(130)),c=r(123),y=i(b),d=i(babelHelpers.extends({},c,{color:l})),h=function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"render",value:function(){return a.createElement(n,this.props,this.props.children)}}]),r}(a.Component);h.MODE_DIALOG="dialog",h.MODE_DROPDOWN="dropdown",h.defaultProps={mode:"dialog"},h.propTypes=babelHelpers.extends({},u.propTypes,{style:d,selectedValue:a.PropTypes.any,onValueChange:a.PropTypes.func,enabled:a.PropTypes.bool,mode:a.PropTypes.oneOf(["dialog","dropdown"]),itemStyle:y,prompt:a.PropTypes.string,testID:a.PropTypes.string}),h.Item=(p=o=function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"render",value:function(){throw null}}]),r}(a.Component),o.propTypes={label:a.PropTypes.string.isRequired,value:a.PropTypes.any,color:l,testID:a.PropTypes.string},p),t.exports=h},315);
__d(function(e,t,n,s){"use strict";var r,o,p=t(69),i=t(97),a=t(98),l=t(137),c=t(122),u=t(130),h=t(125),d=l(c),y=t(139),v=i.createClass({displayName:"PickerIOS",mixins:[p],propTypes:babelHelpers.extends({},u.propTypes,{itemStyle:d,onValueChange:i.PropTypes.func,selectedValue:i.PropTypes.any}),getInitialState:function(){return this._stateFromProps(this.props)},componentWillReceiveProps:function(e){this.setState(this._stateFromProps(e))},_stateFromProps:function(e){var t=0,n=[];return i.Children.toArray(e.children).forEach(function(s,r){s.props.value===e.selectedValue&&(t=r),n.push({value:s.props.value,label:s.props.label,textColor:h(s.props.color)})}),{selectedIndex:t,items:n}},render:function(){var e=this;return i.createElement(u,{style:this.props.style},i.createElement(f,{ref:function(t){return e._picker=t},style:[C.pickerIOS,this.props.itemStyle],items:this.state.items,selectedIndex:this.state.selectedIndex,onChange:this._onChange,onStartShouldSetResponder:function(){return!0},onResponderTerminationRequest:function(){return!1}}))},_onChange:function(e){this.props.onChange&&this.props.onChange(e),this.props.onValueChange&&this.props.onValueChange(e.nativeEvent.newValue,e.nativeEvent.newIndex),this._picker&&this.state.selectedIndex!==e.nativeEvent.newIndex&&this._picker.setNativeProps({selectedIndex:this.state.selectedIndex})}});v.Item=(o=r=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return null}}]),t}(i.Component),r.propTypes={value:i.PropTypes.any,label:i.PropTypes.string,color:i.PropTypes.string},o);var C=a.create({pickerIOS:{height:216}}),f=y("RCTPicker",{propTypes:{style:d}},{nativeOnly:{items:!0,onChange:!0,selectedIndex:!0}});n.exports=v},316);
__d(function(t,s,c,e){"use strict";c.exports=s(140)},317);
__d(function(t,s,c,e){"use strict";c.exports=s(140)},318);
__d(function(e,r,s,p){"use strict";var o=r(219),t=r(69),i=r(97),n=r(98),a=r(130),g=r(139),l=i.PropTypes,c=i.createClass({displayName:"ProgressViewIOS",mixins:[t],propTypes:babelHelpers.extends({},a.propTypes,{progressViewStyle:l.oneOf(["default","bar"]),progress:l.number,progressTintColor:l.string,trackTintColor:l.string,progressImage:o.propTypes.source,trackImage:o.propTypes.source}),render:function(){return i.createElement(u,babelHelpers.extends({},this.props,{style:[y.progressView,this.props.style]}))}}),y=n.create({progressView:{height:2}}),u=g("RCTProgressView",c);s.exports=c},319);
__d(function(e,n,t,o){"use strict";var s=n(69),r=n(97),a=n(98),l=n(130),p=n(139),i=r.PropTypes,g=r.createClass({displayName:"SegmentedControlIOS",mixins:[s],propTypes:babelHelpers.extends({},l.propTypes,{values:i.arrayOf(i.string),selectedIndex:i.number,onValueChange:i.func,onChange:i.func,enabled:i.bool,tintColor:i.string,momentary:i.bool}),getDefaultProps:function(){return{values:[],enabled:!0}},_onChange:function(e){this.props.onChange&&this.props.onChange(e),this.props.onValueChange&&this.props.onValueChange(e.nativeEvent.value)},render:function(){return r.createElement(u,babelHelpers.extends({},this.props,{ref:"segmentedcontrol",style:[h.segmentedControl,this.props.style],onChange:this._onChange}))}}),h=a.create({segmentedControl:{height:28}}),u=p("RCTSegmentedControl",g);t.exports=g},320);
__d(function(e,n,r,t){"use strict";var i=n(219),a=n(66),o=n(69),l=n(136),s=(n(75),n(97)),u=n(98),m=n(130),p=n(139),d=s.PropTypes,c=s.createClass({displayName:"Slider",mixins:[o],propTypes:babelHelpers.extends({},m.propTypes,{style:m.propTypes.style,value:d.number,step:d.number,minimumValue:d.number,maximumValue:d.number,minimumTrackTintColor:a,maximumTrackTintColor:a,disabled:d.bool,trackImage:i.propTypes.source,minimumTrackImage:i.propTypes.source,maximumTrackImage:i.propTypes.source,thumbImage:i.propTypes.source,thumbTintColor:a,onValueChange:d.func,onSlidingComplete:d.func,testID:d.string}),getDefaultProps:function(){return{disabled:!1,value:0,minimumValue:0,maximumValue:1,step:0}},viewConfig:{uiViewClassName:"RCTSlider",validAttributes:babelHelpers.extends({},l.RCTView,{value:!0})},render:function(){var e=this.props,n=e.style,r=e.onValueChange,t=e.onSlidingComplete,i=babelHelpers.objectWithoutProperties(e,["style","onValueChange","onSlidingComplete"]);return i.style=[b.slider,n],i.onValueChange=r&&function(e){r&&!0&&r(e.nativeEvent.value)},i.onChange=i.onValueChange,i.onSlidingComplete=t&&function(e){t&&t(e.nativeEvent.value)},s.createElement(T,babelHelpers.extends({},i,{enabled:!this.props.disabled,onStartShouldSetResponder:function(){return!0},onResponderTerminationRequest:function(){return!1}}))}}),b=void 0;b=u.create({slider:{height:40}});var C={},T=p("RCTSlider",c,C);r.exports=c},321);
__d(function(e,t,s,r){"use strict";var n=t(97),o=t(98),p=t(76),a=p.TestModule,l=t(94),i=t(130),c=t(139),h=function(e){function t(){var e,s,r,n;babelHelpers.classCallCheck(this,t);for(var o=arguments.length,p=Array(o),l=0;l<o;l++)p[l]=arguments[l];return s=r=babelHelpers.possibleConstructorReturn(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(p))),r.onDefaultAction=function(e){a.verifySnapshot(a.markTestPassed)},n=s,babelHelpers.possibleConstructorReturn(r,n)}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props.testIdentifier||"test",t=this.props.onSnapshotReady||this.onDefaultAction;return n.createElement(b,babelHelpers.extends({style:u.snapshot},this.props,{onSnapshotReady:t,testIdentifier:e}))}}]),t}(n.Component);h.propTypes=babelHelpers.extends({},i.propTypes,{onSnapshotReady:n.PropTypes.func,testIdentifier:n.PropTypes.string});var u=o.create({snapshot:{flex:1}}),b=l.RCTSnapshot?c("RCTSnapshot",h):i;s.exports=h},322);
__d(function(e,t,n,o){"use strict";var r=t(66),s=t(69),i=(t(75),t(97)),a=t(98),h=t(130),p=t(139),l=i.PropTypes,u=i.createClass({displayName:"Switch",propTypes:babelHelpers.extends({},h.propTypes,{value:l.bool,disabled:l.bool,onValueChange:l.func,testID:l.string,tintColor:r,onTintColor:r,thumbTintColor:r}),getDefaultProps:function(){return{value:!1,disabled:!1}},mixins:[s],_rctSwitch:{},_onChange:function(e){this._rctSwitch.setNativeProps({value:this.props.value}),this.props.onChange&&this.props.onChange(e),this.props.onValueChange&&this.props.onValueChange(e.nativeEvent.value)},render:function(){var e=this,t=babelHelpers.extends({},this.props);return t.onStartShouldSetResponder=function(){return!0},t.onResponderTerminationRequest=function(){return!1},t.style=[c.rctSwitchIOS,this.props.style],i.createElement(d,babelHelpers.extends({},t,{ref:function(t){e._rctSwitch=t},onChange:this._onChange}))}}),c=a.create({rctSwitchIOS:{height:31,width:51}}),d=p("RCTSwitch",u,{nativeOnly:{onChange:!0}});n.exports=u},323);
__d(function(e,s,r,t){"use strict";var i=s(66),o=s(69),n=(s(75),s(97)),p=s(130),h=s(139),f={SIZE:{}},a=n.createClass({displayName:"RefreshControl",statics:{SIZE:f.SIZE},mixins:[o],propTypes:babelHelpers.extends({},p.propTypes,{onRefresh:n.PropTypes.func,refreshing:n.PropTypes.bool.isRequired,tintColor:i,titleColor:i,title:n.PropTypes.string,enabled:n.PropTypes.bool,colors:n.PropTypes.arrayOf(i),progressBackgroundColor:i,size:n.PropTypes.oneOf([f.SIZE.DEFAULT,f.SIZE.LARGE]),progressViewOffset:n.PropTypes.number}),_nativeRef:null,_lastNativeRefreshing:!1,componentDidMount:function(){this._lastNativeRefreshing=this.props.refreshing},componentDidUpdate:function(e){this.props.refreshing!==e.refreshing?this._lastNativeRefreshing=this.props.refreshing:this.props.refreshing!==this._lastNativeRefreshing&&(this._nativeRef.setNativeProps({refreshing:this.props.refreshing}),this._lastNativeRefreshing=this.props.refreshing)},render:function(){var e=this;return n.createElement(l,babelHelpers.extends({},this.props,{ref:function(s){e._nativeRef=s},onRefresh:this._onRefresh}))},_onRefresh:function(){this._lastNativeRefreshing=!0,this.props.onRefresh&&this.props.onRefresh(),this.forceUpdate()}}),l=h("RCTRefreshControl",a);r.exports=a},324);
__d(function(e,t,n,a){"use strict";function r(e,t){return e.reduce(function(e,t){for(var n in t)null!=t[n]&&(e[n]=t[n]);return e},babelHelpers.extends({},t))}function i(e){return{backgroundColor:null!=e.backgroundColor?{value:e.backgroundColor,animated:e.animated}:null,barStyle:null!=e.barStyle?{value:e.barStyle,animated:e.animated}:null,translucent:e.translucent,hidden:null!=e.hidden?{value:e.hidden,animated:e.animated,transition:e.showHideTransition}:null,networkActivityIndicatorVisible:e.networkActivityIndicatorVisible}}var o=t(97),l=t(66),s=(t(75),t(125),t(76).StatusBarManager),d=function(e){function t(){var e,n,a,i;babelHelpers.classCallCheck(this,t);for(var o=arguments.length,l=Array(o),d=0;d<o;d++)l[d]=arguments[d];return n=a=babelHelpers.possibleConstructorReturn(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),a._stackEntry=null,a._updatePropsStack=function(){clearImmediate(t._updateImmediate),t._updateImmediate=setImmediate(function(){var e=t._currentValues,n=r(t._propsStack,t._defaultProps);e&&e.barStyle.value===n.barStyle.value||s.setStyle(n.barStyle.value,n.barStyle.animated),e&&e.hidden.value===n.hidden.value||s.setHidden(n.hidden.value,n.hidden.animated?n.hidden.transition:"none"),e&&e.networkActivityIndicatorVisible===n.networkActivityIndicatorVisible||s.setNetworkActivityIndicatorVisible(n.networkActivityIndicatorVisible),t._currentValues=n})},i=n,babelHelpers.possibleConstructorReturn(a,i)}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"componentDidMount",value:function(){this._stackEntry=i(this.props),t._propsStack.push(this._stackEntry),this._updatePropsStack()}},{key:"componentWillUnmount",value:function(){var e=t._propsStack.indexOf(this._stackEntry);t._propsStack.splice(e,1),this._updatePropsStack()}},{key:"componentDidUpdate",value:function(){var e=t._propsStack.indexOf(this._stackEntry);this._stackEntry=i(this.props),t._propsStack[e]=this._stackEntry,this._updatePropsStack()}},{key:"render",value:function(){return null}}],[{key:"setHidden",value:function(e,n){n=n||"none",t._defaultProps.hidden.value=e,s.setHidden(e,n)}},{key:"setBarStyle",value:function(e,n){n=n||!1,t._defaultProps.barStyle.value=e,s.setStyle(e,n)}},{key:"setNetworkActivityIndicatorVisible",value:function(e){t._defaultProps.networkActivityIndicatorVisible=e,s.setNetworkActivityIndicatorVisible(e)}},{key:"setBackgroundColor",value:function(e,t){return void console.warn("`setBackgroundColor` is only available on Android")}},{key:"setTranslucent",value:function(e){return void console.warn("`setTranslucent` is only available on Android")}}]),t}(o.Component);d._propsStack=[],d._defaultProps=i({animated:!1,showHideTransition:"fade",backgroundColor:"black",barStyle:"default",translucent:!1,hidden:!1,networkActivityIndicatorVisible:!1}),d._updateImmediate=null,d._currentValues=null,d.currentHeight=s.HEIGHT,d.propTypes={hidden:o.PropTypes.bool,animated:o.PropTypes.bool,backgroundColor:l,translucent:o.PropTypes.bool,barStyle:o.PropTypes.oneOf(["default","light-content","dark-content"]),networkActivityIndicatorVisible:o.PropTypes.bool,showHideTransition:o.PropTypes.oneOf(["fade","slide"])},d.defaultProps={animated:!1,showHideTransition:"fade"},n.exports=d},325);
__d(function(e,t,n,o){"use strict";var r=t(285),s=t(97),i=t(327),u=t(328),a=s.PropTypes,c=function(e){function t(e,n){babelHelpers.classCallCheck(this,t);var o=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o._listViewRef=null,o._shouldBounceFirstRowOnMount=!1,o._onScroll=function(e){o.props.dataSource.getOpenRowID()&&o.setState({dataSource:o.state.dataSource.setOpenRowID(null)}),o.props.onScroll&&o.props.onScroll(e)},o._getMaxSwipeDistance=function(e,t,n){return"function"==typeof o.props.maxSwipeDistance?o.props.maxSwipeDistance(e,t,n):o.props.maxSwipeDistance},o._renderRow=function(e,t,n){var r=o.props.renderQuickActions(e,t,n);if(!r)return o.props.renderRow(e,t,n);var i=!1;return o._shouldBounceFirstRowOnMount&&(o._shouldBounceFirstRowOnMount=!1,i=n===o.props.dataSource.getFirstRowID()),s.createElement(u,{slideoutView:r,isOpen:e.id===o.props.dataSource.getOpenRowID(),maxSwipeDistance:o._getMaxSwipeDistance(e,t,n),key:n,onOpen:function(){return o._onOpen(e.id)},onClose:function(){return o._onClose(e.id)},onSwipeEnd:function(){return o._setListViewScrollable(!0)},onSwipeStart:function(){return o._setListViewScrollable(!1)},shouldBounceOnMount:i},o.props.renderRow(e,t,n))},o._shouldBounceFirstRowOnMount=o.props.bounceFirstRowOnMount,o.state={dataSource:o.props.dataSource},o}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,null,[{key:"getNewDataSource",value:function(){return new i({getRowData:function(e,t,n){return e[t][n]},getSectionHeaderData:function(e,t){return e[t]},rowHasChanged:function(e,t){return e!==t},sectionHeaderHasChanged:function(e,t){return e!==t}})}}]),babelHelpers.createClass(t,[{key:"componentWillReceiveProps",value:function(e){this.state.dataSource.getDataSource()!==e.dataSource.getDataSource()&&this.setState({dataSource:e.dataSource})}},{key:"render",value:function(){var e=this;return s.createElement(r,babelHelpers.extends({},this.props,{ref:function(t){e._listViewRef=t},dataSource:this.state.dataSource.getDataSource(),onScroll:this._onScroll,renderRow:this._renderRow}))}},{key:"_setListViewScrollable",value:function(e){this._listViewRef&&"function"==typeof this._listViewRef.setNativeProps&&this._listViewRef.setNativeProps({scrollEnabled:e})}},{key:"getScrollResponder",value:function(){if(this._listViewRef&&"function"==typeof this._listViewRef.getScrollResponder)return this._listViewRef.getScrollResponder()}},{key:"_onOpen",value:function(e){this.setState({dataSource:this.state.dataSource.setOpenRowID(e)})}},{key:"_onClose",value:function(e){this.setState({dataSource:this.state.dataSource.setOpenRowID(null)})}}]),t}(s.Component);c.propTypes={bounceFirstRowOnMount:a.bool.isRequired,dataSource:a.instanceOf(i).isRequired,maxSwipeDistance:a.oneOfType([a.number,a.func]).isRequired,renderRow:a.func.isRequired,renderQuickActions:a.func.isRequired},c.defaultProps={bounceFirstRowOnMount:!1,renderQuickActions:function(){return null}},n.exports=c},326);
__d(function(e,t,i,o){"use strict";var n=t(286),s=function(){function e(t){var i=this;babelHelpers.classCallCheck(this,e),this._dataSource=new n({getRowData:t.getRowData,getSectionHeaderData:t.getSectionHeaderData,rowHasChanged:function(e,o){return e.id!==i._previousOpenRowID&&o.id===i._openRowID||e.id===i._previousOpenRowID&&o.id!==i._openRowID||t.rowHasChanged(e,o)},sectionHeaderHasChanged:t.sectionHeaderHasChanged})}return babelHelpers.createClass(e,[{key:"cloneWithRowsAndSections",value:function(e,t,i){return this._dataSource=this._dataSource.cloneWithRowsAndSections(e,t,i),this._dataBlob=e,this.rowIdentities=this._dataSource.rowIdentities,this.sectionIdentities=this._dataSource.sectionIdentities,this}},{key:"getDataSource",value:function(){return this._dataSource}},{key:"getOpenRowID",value:function(){return this._openRowID}},{key:"getFirstRowID",value:function(){return this.rowIdentities?this.rowIdentities[0]&&this.rowIdentities[0][0]:Object.keys(this._dataBlob)[0]}},{key:"setOpenRowID",value:function(e){return this._previousOpenRowID=this._openRowID,this._openRowID=e,this._dataSource=this._dataSource.cloneWithRowsAndSections(this._dataBlob,this.sectionIdentities,this.rowIdentities),this}}]),e}();i.exports=s},327);
__d(function(e,n,i,t){"use strict";var o=n(201),s=n(309),a=n(293),r=n(97),p=n(98),u=n(276),d=n(130),h=r.PropTypes,l=n(41),c=a.isRTL,_=r.createClass({displayName:"SwipeableRow",_panResponder:{},_previousLeft:0,mixins:[u],propTypes:{children:h.any,isOpen:h.bool,maxSwipeDistance:h.number.isRequired,onOpen:h.func.isRequired,onClose:h.func.isRequired,onSwipeEnd:h.func.isRequired,onSwipeStart:h.func.isRequired,shouldBounceOnMount:h.bool,slideoutView:h.node.isRequired,swipeThreshold:h.number.isRequired},getInitialState:function(){return{currentLeft:new o.Value(this._previousLeft),isSwipeableViewRendered:!1,rowHeight:null}},getDefaultProps:function(){return{isOpen:!1,maxSwipeDistance:0,onOpen:l,onClose:l,onSwipeEnd:l,onSwipeStart:l,swipeThreshold:30}},componentWillMount:function(){this._panResponder=s.create({onMoveShouldSetPanResponderCapture:this._handleMoveShouldSetPanResponderCapture,onPanResponderGrant:this._handlePanResponderGrant,onPanResponderMove:this._handlePanResponderMove,onPanResponderRelease:this._handlePanResponderEnd,onPanResponderTerminationRequest:this._onPanResponderTerminationRequest,onPanResponderTerminate:this._handlePanResponderEnd,onShouldBlockNativeResponder:function(e,n){return!1}})},componentDidMount:function(){var e=this;this.props.shouldBounceOnMount&&this.setTimeout(function(){e._animateBounceBack(400)},700)},componentWillReceiveProps:function(e){this.props.isOpen&&!e.isOpen&&this._animateToClosedPosition()},shouldComponentUpdate:function(e,n){return!(this.props.shouldBounceOnMount&&!e.shouldBounceOnMount)},render:function(){var e=void 0;this.state.isSwipeableViewRendered&&(e=r.createElement(d,{style:[m.slideOutContainer,{height:this.state.rowHeight}]},this.props.slideoutView));var n=r.createElement(o.View,{onLayout:this._onSwipeableViewLayout,style:[m.swipeableContainer,{transform:[{translateX:this.state.currentLeft}]}]},this.props.children);return r.createElement(d,this._panResponder.panHandlers,e,n)},_onSwipeableViewLayout:function(e){this.setState({isSwipeableViewRendered:!0,rowHeight:e.nativeEvent.layout.height})},_handleMoveShouldSetPanResponderCapture:function(e,n){return n.dy<10&&this._isValidSwipe(n)},_handlePanResponderGrant:function(e,n){},_handlePanResponderMove:function(e,n){this._isSwipingExcessivelyRightFromClosedPosition(n)||(this.props.onSwipeStart(),this._isSwipingRightFromClosed(n)?this._swipeSlowSpeed(n):this._swipeFullSpeed(n))},_isSwipingRightFromClosed:function(e){var n=c?-e.dx:e.dx;return 0===this._previousLeft&&n>0},_swipeFullSpeed:function(e){this.state.currentLeft.setValue(this._previousLeft+e.dx)},_swipeSlowSpeed:function(e){this.state.currentLeft.setValue(this._previousLeft+e.dx/4)},_isSwipingExcessivelyRightFromClosedPosition:function(e){var n=c?-e.dx:e.dx;return this._isSwipingRightFromClosed(e)&&n>120},_onPanResponderTerminationRequest:function(e,n){return!1},_animateTo:function(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l;o.timing(this.state.currentLeft,{duration:i,toValue:e}).start(function(){n._previousLeft=e,t()})},_animateToOpenPosition:function(){var e=c?-this.props.maxSwipeDistance:this.props.maxSwipeDistance;this._animateTo(-e)},_animateToOpenPositionWith:function(e,n){e=e>.3?e:.3;var i=Math.abs((this.props.maxSwipeDistance-Math.abs(n))/e),t=c?-this.props.maxSwipeDistance:this.props.maxSwipeDistance;this._animateTo(-t,i)},_animateToClosedPosition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300;this._animateTo(0,e)},_animateToClosedPositionDuringBounce:function(){this._animateToClosedPosition(300)},_animateBounceBack:function(e){var n=c?-30:30;this._animateTo(-n,e,this._animateToClosedPositionDuringBounce)},_isValidSwipe:function(e){return Math.abs(e.dx)>10},_shouldAnimateRemainder:function(e){return Math.abs(e.dx)>this.props.swipeThreshold||e.vx>.3},_handlePanResponderEnd:function(e,n){var i=c?-n.dx:n.dx;this._isSwipingRightFromClosed(n)?(this.props.onOpen(),this._animateBounceBack(300)):this._shouldAnimateRemainder(n)?i<0?(this.props.onOpen(),this._animateToOpenPositionWith(n.vx,i)):(this.props.onClose(),this._animateToClosedPosition()):0===this._previousLeft?this._animateToClosedPosition():this._animateToOpenPosition(),this.props.onSwipeEnd()}}),m=p.create({slideOutContainer:{bottom:0,left:0,position:"absolute",right:0,top:0},swipeableContainer:{flex:1}});i.exports=_},328);
__d(function(e,t,o,r){"use strict";var s=t(66),n=t(97),l=t(98),i=t(330),p=t(130),a=t(139),c=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return n.createElement(b,{style:[u.tabGroup,this.props.style],unselectedTintColor:this.props.unselectedTintColor,unselectedItemTintColor:this.props.unselectedItemTintColor,tintColor:this.props.tintColor,barTintColor:this.props.barTintColor,itemPositioning:this.props.itemPositioning,translucent:!1!==this.props.translucent},this.props.children)}}]),t}(n.Component);c.Item=i,c.propTypes=babelHelpers.extends({},p.propTypes,{style:p.propTypes.style,unselectedTintColor:s,tintColor:s,unselectedItemTintColor:s,barTintColor:s,translucent:n.PropTypes.bool,itemPositioning:n.PropTypes.oneOf(["fill","center","auto"])});var u=l.create({tabGroup:{flex:1}}),b=a("RCTTabBar",c);o.exports=c},329);
__d(function(e,t,s,r){"use strict";var o=t(66),l=t(219),p=t(97),n=t(314),a=t(98),c=t(130),i=t(139),b=function(e){function t(){var e,s,r,o;babelHelpers.classCallCheck(this,t);for(var l=arguments.length,p=Array(l),n=0;n<l;n++)p[n]=arguments[n];return s=r=babelHelpers.possibleConstructorReturn(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(p))),r.state={hasBeenSelected:!1},o=s,babelHelpers.possibleConstructorReturn(r,o)}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"componentWillMount",value:function(){this.props.selected&&this.setState({hasBeenSelected:!0})}},{key:"componentWillReceiveProps",value:function(e){(this.state.hasBeenSelected||e.selected)&&this.setState({hasBeenSelected:!0})}},{key:"render",value:function(){var e=this.props,t=e.style,s=e.children,r=babelHelpers.objectWithoutProperties(e,["style","children"]);if(this.state.hasBeenSelected)var o=p.createElement(n,{shouldUpdate:this.props.selected},s);else var o=p.createElement(c,null);return p.createElement(u,babelHelpers.extends({},r,{style:[y.tab,t]}),o)}}]),t}(p.Component);b.propTypes=babelHelpers.extends({},c.propTypes,{badge:p.PropTypes.oneOfType([p.PropTypes.string,p.PropTypes.number]),badgeColor:o,systemIcon:p.PropTypes.oneOf(["bookmarks","contacts","downloads","favorites","featured","history","more","most-recent","most-viewed","recents","search","top-rated"]),icon:l.propTypes.source,selectedIcon:l.propTypes.source,onPress:p.PropTypes.func,renderAsOriginal:p.PropTypes.bool,selected:p.PropTypes.bool,style:c.propTypes.style,title:p.PropTypes.string,isTVSelectable:p.PropTypes.bool});var y=a.create({tab:{position:"absolute",top:0,right:0,bottom:0,left:0}}),u=i("RCTTabBarItem",b);s.exports=b},330);
__d(function(e,t,n,s){"use strict";var o=t(66),i=t(332),r=t(102),a=t(69),l=(t(75),t(97)),c=t(223),p=t(98),u=t(192),h=t(74),d=t(276),f=t(277),b=t(94),y=t(130),g=(t(40),t(41)),_=t(44),v=t(139),C=l.PropTypes,T=v("RCTTextView",null),x=v("RCTTextField",null),S=["phoneNumber","link","address","calendarEvent","none","all"],m=l.createClass({displayName:"TextInput",statics:{State:h},propTypes:babelHelpers.extends({},y.propTypes,{autoCapitalize:C.oneOf(["none","sentences","words","characters"]),autoCorrect:C.bool,spellCheck:C.bool,autoFocus:C.bool,editable:C.bool,keyboardType:C.oneOf(["default","email-address","numeric","phone-pad","ascii-capable","numbers-and-punctuation","url","number-pad","name-phone-pad","decimal-pad","twitter","web-search"]),keyboardAppearance:C.oneOf(["default","light","dark"]),returnKeyType:C.oneOf(["done","go","next","search","send","none","previous","default","emergency-call","google","join","route","yahoo"]),returnKeyLabel:C.string,maxLength:C.number,numberOfLines:C.number,disableFullscreenUI:C.bool,enablesReturnKeyAutomatically:C.bool,multiline:C.bool,textBreakStrategy:l.PropTypes.oneOf(["simple","highQuality","balanced"]),onBlur:C.func,onFocus:C.func,onChange:C.func,onChangeText:C.func,onContentSizeChange:C.func,onEndEditing:C.func,onSelectionChange:C.func,onSubmitEditing:C.func,onKeyPress:C.func,onLayout:C.func,onScroll:C.func,placeholder:C.node,placeholderTextColor:o,secureTextEntry:C.bool,selectionColor:o,selectionState:C.instanceOf(i),selection:C.shape({start:C.number.isRequired,end:C.number}),value:C.string,defaultValue:C.node,clearButtonMode:C.oneOf(["never","while-editing","unless-editing","always"]),clearTextOnFocus:C.bool,selectTextOnFocus:C.bool,blurOnSubmit:C.bool,style:u.propTypes.style,underlineColorAndroid:o,inlineImageLeft:C.string,inlineImagePadding:C.number,dataDetectorTypes:C.oneOfType([C.oneOf(S),C.arrayOf(C.oneOf(S))])}),mixins:[a,d],viewConfig:x?x.viewConfig:{},isFocused:function(){return h.currentlyFocusedField()===c.findNodeHandle(this._inputRef)},contextTypes:{onFocusRequested:l.PropTypes.func,focusEmitter:l.PropTypes.instanceOf(r)},_inputRef:void 0,_focusSubscription:void 0,_lastNativeText:void 0,_lastNativeSelection:void 0,componentDidMount:function(){var e=this;if(this._lastNativeText=this.props.value,!this.context.focusEmitter)return void(this.props.autoFocus&&this.requestAnimationFrame(this.focus));this._focusSubscription=this.context.focusEmitter.addListener("focus",function(t){e===t?e.requestAnimationFrame(e.focus):e.isFocused()&&e.blur()}),this.props.autoFocus&&this.context.onFocusRequested(this)},componentWillUnmount:function(){this._focusSubscription&&this._focusSubscription.remove(),this.isFocused()&&this.blur()},getChildContext:function(){return{isInAParentText:!0}},childContextTypes:{isInAParentText:l.PropTypes.bool},clear:function(){this.setNativeProps({text:""})},render:function(){return this._renderIOS()},_getText:function(){return"string"==typeof this.props.value?this.props.value:"string"==typeof this.props.defaultValue?this.props.defaultValue:""},_setNativeRef:function(e){this._inputRef=e},_renderIOS:function(){var e,t=babelHelpers.extends({},this.props);if(t.style=[F.input,this.props.style],t.selection&&null==t.selection.end&&(t.selection={start:t.selection.start,end:t.selection.start}),t.multiline){var n=t.children,s=0;l.Children.forEach(n,function(){return++s}),_(!(t.value&&s),"Cannot specify both value and children."),s>=1&&(n=l.createElement(u,{style:t.style},n)),t.inputView&&(n=[n,t.inputView]),e=l.createElement(T,babelHelpers.extends({ref:this._setNativeRef},t,{children:n,onFocus:this._onFocus,onBlur:this._onBlur,onChange:this._onChange,onContentSizeChange:this.props.onContentSizeChange,onSelectionChange:this._onSelectionChange,onTextInput:this._onTextInput,onSelectionChangeShouldSetResponder:g.thatReturnsTrue,text:this._getText(),dataDetectorTypes:this.props.dataDetectorTypes,onScroll:this._onScroll}))}else e=l.createElement(x,babelHelpers.extends({ref:this._setNativeRef},t,{onFocus:this._onFocus,onBlur:this._onBlur,onChange:this._onChange,onSelectionChange:this._onSelectionChange,onSelectionChangeShouldSetResponder:g.thatReturnsTrue,text:this._getText()}));return l.createElement(f,{onLayout:t.onLayout,onPress:this._onPress,rejectResponderTermination:!0,accessible:t.accessible,accessibilityLabel:t.accessibilityLabel,accessibilityTraits:t.accessibilityTraits,testID:t.testID},e)},_renderAndroid:function(){var e=babelHelpers.extends({},this.props);e.style=[this.props.style],e.autoCapitalize=b.AndroidTextInput.Constants.AutoCapitalizationType[this.props.autoCapitalize];var t=this.props.children,n=0;l.Children.forEach(t,function(){return++n}),_(!(this.props.value&&n),"Cannot specify both value and children."),n>1&&(t=l.createElement(u,null,t)),e.selection&&null==e.selection.end&&(e.selection={start:e.selection.start,end:e.selection.start});var s=l.createElement(AndroidTextInput,babelHelpers.extends({ref:this._setNativeRef},e,{mostRecentEventCount:0,onFocus:this._onFocus,onBlur:this._onBlur,onChange:this._onChange,onSelectionChange:this._onSelectionChange,onTextInput:this._onTextInput,text:this._getText(),children:t,disableFullscreenUI:this.props.disableFullscreenUI,textBreakStrategy:this.props.textBreakStrategy}));return l.createElement(f,{onLayout:this.props.onLayout,onPress:this._onPress,accessible:this.props.accessible,accessibilityLabel:this.props.accessibilityLabel,accessibilityComponentType:this.props.accessibilityComponentType,testID:this.props.testID},s)},_onFocus:function(e){this.props.onFocus&&this.props.onFocus(e),this.props.selectionState&&this.props.selectionState.focus()},_onPress:function(e){(this.props.editable||void 0===this.props.editable)&&this.focus()},_onChange:function(e){this._inputRef&&this._inputRef.setNativeProps({mostRecentEventCount:e.nativeEvent.eventCount});var t=e.nativeEvent.text;this.props.onChange&&this.props.onChange(e),this.props.onChangeText&&this.props.onChangeText(t),this._inputRef&&(this._lastNativeText=t,this.forceUpdate())},_onSelectionChange:function(e){this.props.onSelectionChange&&this.props.onSelectionChange(e),this._inputRef&&(this._lastNativeSelection=e.nativeEvent.selection,(this.props.selection||this.props.selectionState)&&this.forceUpdate())},componentDidUpdate:function(){var e={};this._lastNativeText!==this.props.value&&"string"==typeof this.props.value&&(e.text=this.props.value);var t=this.props.selection;this._lastNativeSelection&&t&&(this._lastNativeSelection.start!==t.start||this._lastNativeSelection.end!==t.end)&&(e.selection=this.props.selection),Object.keys(e).length>0&&this._inputRef&&this._inputRef.setNativeProps(e),this.props.selectionState&&t&&this.props.selectionState.update(t.start,t.end)},_onBlur:function(e){this.blur(),this.props.onBlur&&this.props.onBlur(e),this.props.selectionState&&this.props.selectionState.blur()},_onTextInput:function(e){this.props.onTextInput&&this.props.onTextInput(e)},_onScroll:function(e){this.props.onScroll&&this.props.onScroll(e)}}),F=p.create({input:{alignSelf:"stretch"}});n.exports=m},331);
__d(function(s,t,e,f){"use strict";var u=t(333),h=function(){function s(t,e){babelHelpers.classCallCheck(this,s),this._anchorOffset=t,this._focusOffset=e,this._hasFocus=!1}return babelHelpers.createClass(s,[{key:"update",value:function(s,t){this._anchorOffset===s&&this._focusOffset===t||(this._anchorOffset=s,this._focusOffset=t,this.emit("update"))}},{key:"constrainLength",value:function(s){this.update(Math.min(this._anchorOffset,s),Math.min(this._focusOffset,s))}},{key:"focus",value:function(){this._hasFocus||(this._hasFocus=!0,this.emit("focus"))}},{key:"blur",value:function(){this._hasFocus&&(this._hasFocus=!1,this.emit("blur"))}},{key:"hasFocus",value:function(){return this._hasFocus}},{key:"isCollapsed",value:function(){return this._anchorOffset===this._focusOffset}},{key:"isBackward",value:function(){return this._anchorOffset>this._focusOffset}},{key:"getAnchorOffset",value:function(){return this._hasFocus?this._anchorOffset:null}},{key:"getFocusOffset",value:function(){return this._hasFocus?this._focusOffset:null}},{key:"getStartOffset",value:function(){return this._hasFocus?Math.min(this._anchorOffset,this._focusOffset):null}},{key:"getEndOffset",value:function(){return this._hasFocus?Math.max(this._anchorOffset,this._focusOffset):null}},{key:"overlaps",value:function(s,t){return this.hasFocus()&&this.getStartOffset()<=t&&s<=this.getEndOffset()}}]),s}();u(h,{blur:!0,focus:!0,update:!0}),e.exports=h},332);
__d(function(t,e,n,i){"use strict";function r(t,e){E(e,"Must supply set of valid event types");var n=t.prototype||t;E(!n.__eventEmitter,"An active emitter is already mixed in");var i=t.constructor;i&&E(i===Object||i===Function,"Mix EventEmitter into a class, not an instance"),n.hasOwnProperty(u)?v(n.__types,e):n.__types?n.__types=v({},n.__types,e):n.__types=e,v(n,c)}var s=e(102),_=e(334),o=e(335),a=e(336),v=e(337),E=e(44),d=e(305),u=d({__types:!0}),c={emit:function(t,e,n,i,r,s,_){return this.__getEventEmitter().emit(t,e,n,i,r,s,_)},emitAndHold:function(t,e,n,i,r,s,_){return this.__getEventEmitter().emitAndHold(t,e,n,i,r,s,_)},addListener:function(t,e,n){return this.__getEventEmitter().addListener(t,e,n)},once:function(t,e,n){return this.__getEventEmitter().once(t,e,n)},addRetroactiveListener:function(t,e,n){return this.__getEventEmitter().addRetroactiveListener(t,e,n)},addListenerMap:function(t,e){return this.__getEventEmitter().addListenerMap(t,e)},addRetroactiveListenerMap:function(t,e){return this.__getEventEmitter().addListenerMap(t,e)},removeAllListeners:function(){this.__getEventEmitter().removeAllListeners()},removeCurrentListener:function(){this.__getEventEmitter().removeCurrentListener()},releaseHeldEventType:function(t){this.__getEventEmitter().releaseHeldEventType(t)},__getEventEmitter:function(){if(!this.__eventEmitter){var t=new s;t=a.addValidation(t,this.__types);var e=new o;this.__eventEmitter=new _(t,e)}return this.__eventEmitter}};n.exports=r},333);
__d(function(e,t,n,r){"use strict";var i=function(){function e(t,n){babelHelpers.classCallCheck(this,e),this._emitter=t,this._eventHolder=n,this._currentEventToken=null,this._emittingHeldEvents=!1}return babelHelpers.createClass(e,[{key:"addListener",value:function(e,t,n){return this._emitter.addListener(e,t,n)}},{key:"once",value:function(e,t,n){return this._emitter.once(e,t,n)}},{key:"addRetroactiveListener",value:function(e,t,n){var r=this._emitter.addListener(e,t,n);return this._emittingHeldEvents=!0,this._eventHolder.emitToListener(e,t,n),this._emittingHeldEvents=!1,r}},{key:"removeAllListeners",value:function(e){this._emitter.removeAllListeners(e)}},{key:"removeCurrentListener",value:function(){this._emitter.removeCurrentListener()}},{key:"listeners",value:function(e){return this._emitter.listeners(e)}},{key:"emit",value:function(e){for(var t,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=this._emitter).emit.apply(t,[e].concat(babelHelpers.toConsumableArray(r)))}},{key:"emitAndHold",value:function(e){for(var t,n,r=arguments.length,i=Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];this._currentEventToken=(t=this._eventHolder).holdEvent.apply(t,[e].concat(babelHelpers.toConsumableArray(i))),(n=this._emitter).emit.apply(n,[e].concat(babelHelpers.toConsumableArray(i))),this._currentEventToken=null}},{key:"releaseCurrentEvent",value:function(){this._currentEventToken?this._eventHolder.releaseEvent(this._currentEventToken):this._emittingHeldEvents&&this._eventHolder.releaseCurrentEvent()}},{key:"releaseHeldEventType",value:function(e){this._eventHolder.releaseEventType(e)}}]),e}();n.exports=i},334);
__d(function(e,t,n,r){"use strict";var s=t(44),i=function(){function e(){babelHelpers.classCallCheck(this,e),this._heldEvents={},this._currentEventKey=null}return babelHelpers.createClass(e,[{key:"holdEvent",value:function(e){this._heldEvents[e]=this._heldEvents[e]||[];for(var t=this._heldEvents[e],n={eventType:e,index:t.length},r=arguments.length,s=Array(r>1?r-1:0),i=1;i<r;i++)s[i-1]=arguments[i];return t.push(s),n}},{key:"emitToListener",value:function(e,t,n){var r=this,s=this._heldEvents[e];if(s){var i=this._currentEventKey;s.forEach(function(s,i){s&&(r._currentEventKey={eventType:e,index:i},t.apply(n,s))}),this._currentEventKey=i}}},{key:"releaseCurrentEvent",value:function(){s(null!==this._currentEventKey,"Not in an emitting cycle; there is no current event"),this._currentEventKey&&this.releaseEvent(this._currentEventKey)}},{key:"releaseEvent",value:function(e){delete this._heldEvents[e.eventType][e.index]}},{key:"releaseEventType",value:function(e){this._heldEvents[e]=[]}}]),e}();n.exports=i},335);
__d(function(n,t,e,r){"use strict";function i(n,t){if(-1===t.indexOf(n))throw new TypeError(o(n,t))}function o(n,t){var e='Unknown event type "'+n+'". ';return e+="Known event types: "+t.join(", ")+"."}var c=t(337),u={addValidation:function(n,t){var e=Object.keys(t),r=Object.create(n);return c(r,{emit:function(t,r,o,c,u,a,f){return i(t,e),n.emit.call(this,t,r,o,c,u,a,f)}}),r}};e.exports=u},336);
__d(function(t,r,n,o){"use strict";function i(t,r,n,o,i,g,S){t=t||{};for(var e,s=[r,n,o,i,g],a=0;s[a];){e=s[a++];for(var f in e)t[f]=e[f];e.hasOwnProperty&&e.hasOwnProperty("toString")&&void 0!==e.toString&&t.toString!==e.toString&&(t.toString=e.toString)}return t}n.exports=i},337);
__d(function(o,t,s,n){"use strict";var i=t(40),r={show:function(o,t){i(!1,"ToastAndroid is not supported on this platform.")}};s.exports=r},338);
__d(function(t,s,c,e){"use strict";c.exports=s(140)},339);
__d(function(e,t,s,o){"use strict";var i=t(66),r=t(69),n=t(97),a=t(136),p=t(98),l=t(276),h=t(193),c=t(277),u=t(130),d=t(341),y=t(278),P=t(305),f=t(133),b={activeOpacity:.85,underlayColor:"black"},T={top:20,left:20,right:20,bottom:30},S=n.createClass({displayName:"TouchableHighlight",propTypes:babelHelpers.extends({},c.propTypes,{activeOpacity:n.PropTypes.number,underlayColor:i,style:u.propTypes.style,onShowUnderlay:n.PropTypes.func,onHideUnderlay:n.PropTypes.func,hasTVPreferredFocus:n.PropTypes.bool,tvParallaxProperties:n.PropTypes.object}),mixins:[r,l,h.Mixin],getDefaultProps:function(){return b},_computeSyntheticState:function(e){return{activeProps:{style:{opacity:e.activeOpacity}},activeUnderlayProps:{style:{backgroundColor:e.underlayColor}},underlayStyle:[H.style,e.style],hasTVPreferredFocus:e.hasTVPreferredFocus}},getInitialState:function(){return f(this.touchableGetInitialState(),this._computeSyntheticState(this.props))},componentDidMount:function(){y(this.props),d(this.refs[m])},componentDidUpdate:function(){d(this.refs[m])},componentWillReceiveProps:function(e){y(e),e.activeOpacity===this.props.activeOpacity&&e.underlayColor===this.props.underlayColor&&e.style===this.props.style||this.setState(this._computeSyntheticState(e))},viewConfig:{uiViewClassName:"RCTView",validAttributes:a.RCTView},touchableHandleActivePressIn:function(e){this.clearTimeout(this._hideTimeout),this._hideTimeout=null,this._showUnderlay(),this.props.onPressIn&&this.props.onPressIn(e)},touchableHandleActivePressOut:function(e){this._hideTimeout||this._hideUnderlay(),this.props.onPressOut&&this.props.onPressOut(e)},touchableHandlePress:function(e){this.clearTimeout(this._hideTimeout),this._showUnderlay(),this._hideTimeout=this.setTimeout(this._hideUnderlay,this.props.delayPressOut||100),this.props.onPress&&this.props.onPress(e)},touchableHandleLongPress:function(e){this.props.onLongPress&&this.props.onLongPress(e)},touchableGetPressRectOffset:function(){return this.props.pressRetentionOffset||T},touchableGetHitSlop:function(){return this.props.hitSlop},touchableGetHighlightDelayMS:function(){return this.props.delayPressIn},touchableGetLongPressDelayMS:function(){return this.props.delayLongPress},touchableGetPressOutDelayMS:function(){return this.props.delayPressOut},_showUnderlay:function(){this.isMounted()&&this._hasPressHandler()&&(this.refs[v].setNativeProps(this.state.activeUnderlayProps),this.refs[m].setNativeProps(this.state.activeProps),this.props.onShowUnderlay&&this.props.onShowUnderlay())},_hideUnderlay:function(){this.clearTimeout(this._hideTimeout),this._hideTimeout=null,this._hasPressHandler()&&this.refs[v]&&(this.refs[m].setNativeProps(R),this.refs[v].setNativeProps(babelHelpers.extends({},H,{style:this.state.underlayStyle})),this.props.onHideUnderlay&&this.props.onHideUnderlay())},_hasPressHandler:function(){return!!(this.props.onPress||this.props.onPressIn||this.props.onPressOut||this.props.onLongPress)},render:function(){return n.createElement(u,{accessible:!1!==this.props.accessible,accessibilityLabel:this.props.accessibilityLabel,accessibilityComponentType:this.props.accessibilityComponentType,accessibilityTraits:this.props.accessibilityTraits,ref:v,style:this.state.underlayStyle,onLayout:this.props.onLayout,hitSlop:this.props.hitSlop,isTVSelectable:!0,tvParallaxProperties:this.props.tvParallaxProperties,hasTVPreferredFocus:this.state.hasTVPreferredFocus,onStartShouldSetResponder:this.touchableHandleStartShouldSetResponder,onResponderTerminationRequest:this.touchableHandleResponderTerminationRequest,onResponderGrant:this.touchableHandleResponderGrant,onResponderMove:this.touchableHandleResponderMove,onResponderRelease:this.touchableHandleResponderRelease,onResponderTerminate:this.touchableHandleResponderTerminate,testID:this.props.testID},n.cloneElement(n.Children.only(this.props.children),{ref:m}),h.renderDebugView({color:"green",hitSlop:this.props.hitSlop}))}}),m=P({childRef:null}),v=P({underlayRef:null}),R={style:p.create({x:{opacity:1}}).x},H={style:p.create({x:{backgroundColor:"transparent"}}).x};s.exports=S},340);
__d(function(t,e,o,i){"use strict";var n=e(44),r=function(t){n(t&&"function"==typeof t.setNativeProps,"Touchable child must either be native or forward setNativeProps to a native component")};o.exports=r},341);
__d(function(t,s,c,e){"use strict";c.exports=s(140)},342);
__d(function(e,t,n,o){"use strict";var a=t(65),r=t(131),i=t(97),s=t(223),l=t(98),d=t(192),c=t(94),p=t(130),u=t(221),g=t(119),h=t(44),b=t(115),m=t(275),f=t(139),v=t(180),E=i.PropTypes,S=t(76).WebViewManager,w="rgba(255,255,255,0.8)",y="webview",L=b({IDLE:null,LOADING:null,ERROR:null}),C=b({click:!0,formsubmit:!0,backforward:!0,reload:!0,formresubmit:!0,other:!0}),R=["phoneNumber","link","address","calendarEvent","none","all"],T=function(){return i.createElement(p,{style:M.loadingView},i.createElement(a,null))},V=function(e,t,n){return i.createElement(p,{style:M.errorContainer},i.createElement(d,{style:M.errorTextTitle},"Error loading page"),i.createElement(d,{style:M.errorText},"Domain: "+e),i.createElement(d,{style:M.errorText},"Error Code: "+t),i.createElement(d,{style:M.errorText},"Description: "+n))},I=function(e){function t(){var e,n,o,a;babelHelpers.classCallCheck(this,t);for(var r=arguments.length,i=Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=o=babelHelpers.possibleConstructorReturn(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),o.state={viewState:L.IDLE,lastErrorEvent:null,startInLoadingState:!0},o.goForward=function(){c.dispatchViewManagerCommand(o.getWebViewHandle(),c.RCTWebView.Commands.goForward,null)},o.goBack=function(){c.dispatchViewManagerCommand(o.getWebViewHandle(),c.RCTWebView.Commands.goBack,null)},o.reload=function(){o.setState({viewState:L.LOADING}),c.dispatchViewManagerCommand(o.getWebViewHandle(),c.RCTWebView.Commands.reload,null)},o.stopLoading=function(){c.dispatchViewManagerCommand(o.getWebViewHandle(),c.RCTWebView.Commands.stopLoading,null)},o.postMessage=function(e){c.dispatchViewManagerCommand(o.getWebViewHandle(),c.RCTWebView.Commands.postMessage,[String(e)])},o.injectJavaScript=function(e){c.dispatchViewManagerCommand(o.getWebViewHandle(),c.RCTWebView.Commands.injectJavaScript,[e])},o._updateNavigationState=function(e){o.props.onNavigationStateChange&&o.props.onNavigationStateChange(e.nativeEvent)},o.getWebViewHandle=function(){return s.findNodeHandle(o.refs[y])},o._onLoadingStart=function(e){var t=o.props.onLoadStart;t&&t(e),o._updateNavigationState(e)},o._onLoadingError=function(e){e.persist();var t=o.props,n=t.onError,a=t.onLoadEnd;n&&n(e),a&&a(e),console.warn("Encountered an error loading page",e.nativeEvent),o.setState({lastErrorEvent:e.nativeEvent,viewState:L.ERROR})},o._onLoadingFinish=function(e){var t=o.props,n=t.onLoad,a=t.onLoadEnd;n&&n(e),a&&a(e),o.setState({viewState:L.IDLE}),o._updateNavigationState(e)},o._onMessage=function(e){var t=o.props.onMessage;t&&t(e)},a=n,babelHelpers.possibleConstructorReturn(o,a)}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"componentWillMount",value:function(){this.props.startInLoadingState&&this.setState({viewState:L.LOADING})}},{key:"render",value:function(){var e=this,t=null;if(this.state.viewState===L.LOADING)t=(this.props.renderLoading||T)();else if(this.state.viewState===L.ERROR){var n=this.state.lastErrorEvent;h(null!=n,"lastErrorEvent expected to be non-null"),t=(this.props.renderError||V)(n.domain,n.code,n.description)}else this.state.viewState!==L.IDLE&&console.error("RCTWebView invalid state encountered: "+this.state.loading);var o=[M.container,M.webView,this.props.style];this.state.viewState!==L.LOADING&&this.state.viewState!==L.ERROR||o.push(M.hidden);var a=this.props.onShouldStartLoadWithRequest&&function(t){var n=e.props.onShouldStartLoadWithRequest&&e.props.onShouldStartLoadWithRequest(t.nativeEvent);S.startLoadWithResult(!!n,t.nativeEvent.lockIdentifier)},r=m(this.props.decelerationRate),s=this.props.source||{};this.props.html?s.html=this.props.html:this.props.url&&(s.uri=this.props.url);var l="function"==typeof this.props.onMessage,d=i.createElement(W,{ref:y,key:"webViewKey",style:o,source:v(s),injectedJavaScript:this.props.injectedJavaScript,bounces:this.props.bounces,scrollEnabled:this.props.scrollEnabled,decelerationRate:r,contentInset:this.props.contentInset,automaticallyAdjustContentInsets:this.props.automaticallyAdjustContentInsets,onLoadingStart:this._onLoadingStart,onLoadingFinish:this._onLoadingFinish,onLoadingError:this._onLoadingError,messagingEnabled:l,onMessage:this._onMessage,onShouldStartLoadWithRequest:a,scalesPageToFit:this.props.scalesPageToFit,allowsInlineMediaPlayback:this.props.allowsInlineMediaPlayback,mediaPlaybackRequiresUserAction:this.props.mediaPlaybackRequiresUserAction,dataDetectorTypes:this.props.dataDetectorTypes});return i.createElement(p,{style:M.container},d,t)}}]),t}(i.Component);I.JSNavigationScheme="react-js-navigation",I.NavigationType=C,I.propTypes=babelHelpers.extends({},p.propTypes,{html:g(E.string,"Use the `source` prop instead."),url:g(E.string,"Use the `source` prop instead."),source:E.oneOfType([E.shape({uri:E.string,method:E.string,headers:E.object,body:E.string}),E.shape({html:E.string,baseUrl:E.string}),E.number]),renderError:E.func,renderLoading:E.func,onLoad:E.func,onLoadEnd:E.func,onLoadStart:E.func,onError:E.func,bounces:E.bool,decelerationRate:u.propTypes.decelerationRate,scrollEnabled:E.bool,automaticallyAdjustContentInsets:E.bool,contentInset:r,onNavigationStateChange:E.func,onMessage:E.func,startInLoadingState:E.bool,style:p.propTypes.style,dataDetectorTypes:E.oneOfType([E.oneOf(R),E.arrayOf(E.oneOf(R))]),javaScriptEnabled:E.bool,domStorageEnabled:E.bool,injectedJavaScript:E.string,userAgent:E.string,scalesPageToFit:E.bool,onShouldStartLoadWithRequest:E.func,allowsInlineMediaPlayback:E.bool,mediaPlaybackRequiresUserAction:E.bool});var W=f("RCTWebView",I,{nativeOnly:{onLoadingStart:!0,onLoadingError:!0,onLoadingFinish:!0,onMessage:!0,messagingEnabled:E.bool}}),M=l.create({container:{flex:1},errorContainer:{flex:1,justifyContent:"center",alignItems:"center",backgroundColor:w},errorText:{fontSize:14,textAlign:"center",marginBottom:2},errorTextTitle:{fontSize:15,fontWeight:"500",marginBottom:10},hidden:{height:0,flex:0},loadingView:{backgroundColor:w,flex:1,justifyContent:"center",alignItems:"center",height:100},webView:{backgroundColor:"#ffffff"}});n.exports=I},343);
__d(function(t,o,e,i){"use strict";var n=o(76).ActionSheetManager,s=o(44),a=o(125),l={showActionSheetWithOptions:function(t,o){s("object"==typeof t&&null!==t,"Options must be a valid object"),s("function"==typeof o,"Must provide a valid callback"),n.showActionSheetWithOptions(babelHelpers.extends({},t,{tintColor:a(t.tintColor)}),o)},showShareActionSheetWithOptions:function(t,o,e){s("object"==typeof t&&null!==t,"Options must be a valid object"),s("function"==typeof o,"Must provide a valid failureCallback"),s("function"==typeof e,"Must provide a valid successCallback"),n.showShareActionSheetWithOptions(babelHelpers.extends({},t,{tintColor:a(t.tintColor)}),o,e)}};e.exports=l},344);
__d(function(t,i,n,e){"use strict";var d=i(76).AdSupport;n.exports={getAdvertisingId:function(t,i){d.getAdvertisingId(t,i)},getAdvertisingTrackingEnabled:function(t,i){d.getAdvertisingTrackingEnabled(t,i)}}},345);
__d(function(e,n,r,t){"use strict";var i=n(77),o=n(347),a=n(223),s=n(211),p=n(44),u=n(350),c=n(76),l=c.HeadlessJsTaskSupport,g={},f=1,d=new Map,m={registerConfig:function(e){for(var n=0;n<e.length;++n){var r=e[n];r.run?m.registerRunnable(r.appKey,r.run):(p(r.component,"No component provider passed in"),m.registerComponent(r.appKey,r.component))}},registerComponent:function(e,n){return g[e]={run:function(e){return u(n(),e.initialProps,e.rootTag)}},e},registerRunnable:function(e,n){return g[e]={run:n},e},getAppKeys:function(){return Object.keys(g)},runApplication:function(e,n){var r='Running application "'+e+'" with appParams: '+JSON.stringify(n)+". __DEV__ === "+String(!1)+", development-level warning are OFF, performance optimizations are ON";s(r),o.addSource("AppRegistry.runApplication"+f++,function(){return r}),p(g[e]&&g[e].run,"Application "+e+" has not been registered. This is either due to a require() error during initialization or failure to call AppRegistry.registerComponent."),g[e].run(n)},unmountApplicationComponentAtRootTag:function(e){a.unmountComponentAtNodeAndRemoveContainer(e)},registerHeadlessTask:function(e,n){d.has(e)&&console.warn("registerHeadlessTask called multiple times for same key '"+e+"'"),d.set(e,n)},startHeadlessTask:function(e,n,r){var t=d.get(n);if(!t)throw new Error("No task registered for key "+n);t()(r).then(function(){return l.notifyTaskFinished(e)}).catch(function(n){console.error(n),l.notifyTaskFinished(e)})}};i.registerCallableModule("AppRegistry",m),r.exports=m},346);
__d(function(e,r,t,a){"use strict";function o(){u.addFileSource("react_hierarchy.txt",function(){return r(348)()})}var n=r(101),l=r(205),i=r(211),u=function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"_maybeInit",value:function(){e._subscription||(e._subscription=n.addListener("collectBugExtraData",e.collectExtraData,null),o())}},{key:"addSource",value:function(r,t){return this._addSource(r,t,e._extraSources)}},{key:"addFileSource",value:function(r,t){return this._addSource(r,t,e._fileSources)}},{key:"_addSource",value:function(r,t,a){return e._maybeInit(),a.has(r)&&console.warn("BugReporting.add* called multiple times for same key '"+r+"'"),a.set(r,t),{remove:function(){a.delete(r)}}}},{key:"collectExtraData",value:function(){for(var t={},a=e._extraSources,o=Array.isArray(a),n=0,a=o?a:a["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var l;if(o){if(n>=a.length)break;l=a[n++]}else{if(n=a.next(),n.done)break;l=n.value}var u=l,c=babelHelpers.slicedToArray(u,2),s=c[0],f=c[1];t[s]=f()}for(var d={},b=e._fileSources,y=Array.isArray(b),_=0,b=y?b:b["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var v;if(y){if(_>=b.length)break;v=b[_++]}else{if(_=b.next(),_.done)break;v=_.value}var S=v,p=babelHelpers.slicedToArray(S,2),x=p[0],k=p[1];d[x]=k()}i("BugReporting extraData:",t);var m=r(76).BugReporting;return m&&m.setExtraData&&m.setExtraData(t,d),{extras:t,files:d}}}]),e}();u._extraSources=new l,u._fileSources=new l,u._subscription=null,t.exports=u},347);
__d(function(r,e,t,n){"use strict";function a(){try{return o()}catch(r){return"Failed to dump react tree: "+r}}function o(){for(var r="",e=Object.getOwnPropertyNames(s._instancesByContainerID),t=e,n=Array.isArray(t),a=0,t=n?t:t["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var o;if(n){if(a>=t.length)break;o=t[a++]}else{if(a=t.next(),a.done)break;o=a.value}var f=o,u=s._instancesByContainerID[f];r+="============ Root ID: "+f+" ============\n",r+=i(u,0),r+="============ End root ID: "+f+" ============\n"}return r}function i(r,e){var t=p(r);if("Text"===t.nodeType)return l(e)+t.text+"\n";if("Empty"===t.nodeType)return"";var n=l(e)+"<"+t.name;if("Composite"===t.nodeType)for(var a=Object.getOwnPropertyNames(t.props||{}),o=Array.isArray(a),u=0,a=o?a:a["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var y;if(o){if(u>=a.length)break;y=a[u++]}else{if(u=a.next(),u.done)break;y=u.value}var s=y;if(f(s))try{var b=c(t.props[s]);b&&(n+=" "+s+"="+b)}catch(r){var v="[Failed to get property: "+r+"]";n+=" "+s+"="+v}}for(var d="",m=t.children||[],g=Array.isArray(m),h=0,m=g?m:m["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var S;if(g){if(h>=m.length)break;S=m[h++]}else{if(h=m.next(),h.done)break;S=h.value}d+=i(S,e+1)}return n+=d?">\n"+d+l(e)+"</"+t.name+">\n":" />\n"}function f(r){switch(r){case"children":case"key":case"ref":return!1;default:return!0}}function u(r,e){if(e>=v)return"[...omitted]";for(var t="{",n=!0,a=Object.getOwnPropertyNames(r),o=Array.isArray(a),i=0,a=o?a:a["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var f;if(o){if(i>=a.length)break;f=a[i++]}else{if(i=a.next(),i.done)break;f=i.value}var u=f;n||(t+=", "),t+=u+": "+c(r[u],e+1),n=!1}return t+"}"}function c(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!r)return null;switch(typeof r){case"string":return JSON.stringify(y(r).replace("\n","\\n"));case"boolean":case"number":return JSON.stringify(r);case"function":return"[function]";case"object":return u(r,e);default:return null}}function y(r){return r.length>d?r.slice(0,d)+"...":r}function l(r){return" ".repeat(r*b)}var s=e(271),p=e(349),b=2,v=2,d=50;t.exports=a},348);
__d(function(e,n,t,r){"use strict";function l(e){var n=null,t=null,r=null,l=null,c=null,d=null,s=null,i=null,_=null,m="Native";if("object"!=typeof e?(m="Text",i=e+""):null===e._currentElement||!1===e._currentElement?m="Empty":e._renderedComponent?(m="NativeWrapper",n=[e._renderedComponent],t=e._instance.props,r=e._instance.state,(l=e._instance.context)&&0===Object.keys(l).length&&(l=null)):e._renderedChildren?n=a(e._renderedChildren):e._currentElement&&e._currentElement.props&&(n=e._currentElement.props.children),!t&&e._currentElement&&e._currentElement.props&&(t=e._currentElement.props),null!=e._currentElement&&(s=e._currentElement.type,"string"==typeof s?d=s:e.getName?(m="Composite",d=e.getName(),e._renderedComponent&&e._currentElement.props===e._renderedComponent._currentElement&&(m="Wrapper"),null===d&&(d="No display name")):e._stringText?(m="Text",i=e._stringText):d=s.displayName||s.name||"Unknown"),e._instance){var f=e._instance;c={setState:f.setState&&f.setState.bind(f),forceUpdate:f.forceUpdate&&f.forceUpdate.bind(f),setInProps:f.forceUpdate&&p.bind(null,e),setInState:f.forceUpdate&&o.bind(null,f),setInContext:f.forceUpdate&&u.bind(null,f)},_=f,f._renderedChildren&&(n=a(f._renderedChildren))}return{nodeType:m,type:s,name:d,props:t,state:r,context:l,children:n,text:i,updater:c,publicInstance:_}}function p(e,n,t){var r=e._currentElement;e._currentElement=babelHelpers.extends({},r,{props:s(r.props,n,t)}),e._instance.forceUpdate()}function o(e,n,t){c(e.state,n,t),e.forceUpdate()}function u(e,n,t){c(e.context,n,t),e.forceUpdate()}function c(e,n,t){var r=n.pop(),l=n.reduce(function(e,n){return e?e[n]:null},e);l&&(l[r]=t)}function a(e){var n=[];for(var t in e)n.push(e[t]);return n}function d(e,n,t,r){if(t>=n.length)return r;var l=n[t],p=Array.isArray(e)?e.slice():babelHelpers.extends({},e);return p[l]=d(e[l],n,t+1,r),p}function s(e,n,t){return d(e,n,0,t)}t.exports=l},349);
__d(function(e,t,a,o){"use strict";function r(e,t,a){d(a,"Expect to have a valid rootTag, instead got ",a),s.render(c.createElement(n,{rootTag:a},c.createElement(e,babelHelpers.extends({},t,{rootTag:a}))),a)}var n=t(292),c=t(97),s=t(223),d=t(44);t(351),a.exports=r},350);
__d(function(e,t,n,r){"use strict";function i(){}var o={exitApp:i,addEventListener:function(){return{remove:i}},removeEventListener:i};n.exports=o},351);
__d(function(e,t,n,u){"use strict";function r(e){return e?(Array.isArray(e)?e:[e]).map(function(e){return i(e)}):null}function i(e){if(!e)return null;var t=new Error(e.message);return t.key=e.key,t}var l=t(76),o=l.AsyncSQLiteDBStorage,s=l.AsyncRocksDBStorage,c=l.AsyncLocalStorage,m=s||o||c,f={_getRequests:[],_getKeys:[],_immediate:null,getItem:function(e,t){return new Promise(function(n,u){m.multiGet([e],function(e,i){var l=i&&i[0]&&i[0][1]?i[0][1]:null,o=r(e);t&&t(o&&o[0],l),o?u(o[0]):n(l)})})},setItem:function(e,t,n){return new Promise(function(u,i){m.multiSet([[e,t]],function(e){var t=r(e);n&&n(t&&t[0]),t?i(t[0]):u(null)})})},removeItem:function(e,t){return new Promise(function(n,u){m.multiRemove([e],function(e){var i=r(e);t&&t(i&&i[0]),i?u(i[0]):n(null)})})},mergeItem:function(e,t,n){return new Promise(function(u,i){m.multiMerge([[e,t]],function(e){var t=r(e);n&&n(t&&t[0]),t?i(t[0]):u(null)})})},clear:function(e){return new Promise(function(t,n){m.clear(function(u){e&&e(i(u)),u&&i(u)?n(i(u)):t(null)})})},getAllKeys:function(e){return new Promise(function(t,n){m.getAllKeys(function(u,r){e&&e(i(u),r),u?n(i(u)):t(r)})})},flushGetRequests:function(){var e=this._getRequests,t=this._getKeys;this._getRequests=[],this._getKeys=[],m.multiGet(t,function(t,n){var u={};n&&n.forEach(function(e){var t=babelHelpers.slicedToArray(e,2),n=t[0],r=t[1];return u[n]=r,r});for(var r=e.length,i=0;i<r;i++){var l=e[i],o=l.keys,s=o.map(function(e){return[e,u[e]]});l.callback&&l.callback(null,s),l.resolve&&l.resolve(s)}})},multiGet:function(e,t){var n=this;this._immediate||(this._immediate=setImmediate(function(){n._immediate=null,n.flushGetRequests()}));var u={keys:e,callback:t,keyIndex:this._getKeys.length,resolve:null,reject:null},r=new Promise(function(e,t){u.resolve=e,u.reject=t});return this._getRequests.push(u),e.forEach(function(e){-1===n._getKeys.indexOf(e)&&n._getKeys.push(e)}),r},multiSet:function(e,t){return new Promise(function(n,u){m.multiSet(e,function(e){var i=r(e);t&&t(i),i?u(i):n(null)})})},multiRemove:function(e,t){return new Promise(function(n,u){m.multiRemove(e,function(e){var i=r(e);t&&t(i),i?u(i):n(null)})})},multiMerge:function(e,t){return new Promise(function(n,u){m.multiMerge(e,function(e){var i=r(e);t&&t(i),i?u(i):n(null)})})}};m.multiMerge||(delete f.mergeItem,delete f.multiMerge),n.exports=f},352);
__d(function(e,r,s,o){"use strict";var a=r(97).PropTypes,t=r(76).CameraRollManager,i=r(132),n=r(89),u=r(44),l=["Album","All","Event","Faces","Library","PhotoStream","SavedPhotos"],d=["All","Videos","Photos"];n(l),n(d);var m=(i({first:a.number.isRequired,after:a.string,groupTypes:a.oneOf(l),groupName:a.string,assetType:a.oneOf(d),mimeTypes:a.arrayOf(a.string)}),i({edges:a.arrayOf(i({node:i({type:a.string.isRequired,group_name:a.string.isRequired,image:i({uri:a.string.isRequired,height:a.number.isRequired,width:a.number.isRequired,isStored:a.bool}).isRequired,timestamp:a.number.isRequired,location:i({latitude:a.number,longitude:a.number,altitude:a.number,heading:a.number,speed:a.number})}).isRequired})).isRequired,page_info:i({has_next_page:a.bool.isRequired,start_cursor:a.string,end_cursor:a.string}).isRequired}),function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"saveImageWithTag",value:function(e){return console.warn("CameraRoll.saveImageWithTag is deprecated. Use CameraRoll.saveToCameraRoll instead"),this.saveToCameraRoll(e,"photo")}},{key:"saveToCameraRoll",value:function(e,r){u("string"==typeof e,"CameraRoll.saveToCameraRoll must be a valid string."),u("photo"===r||"video"===r||void 0===r,"The second argument to saveToCameraRoll must be 'photo' or 'video'. You passed "+r);var s="photo";return r?s=r:["mov","mp4"].indexOf(e.split(".").slice(-1)[0])>=0&&(s="video"),t.saveToCameraRoll(e,s)}},{key:"getPhotos",value:function(e){if(arguments.length>1){console.warn("CameraRoll.getPhotos(tag, success, error) is deprecated. Use the returned Promise instead");var r=arguments[1],s=arguments[2]||function(){};t.getPhotos(e).then(r,s)}return t.getPhotos(e)}}]),e}());m.GroupTypesOptions=l,m.AssetTypeOptions=d,s.exports=m},353);
__d(function(t,n,r,i){"use strict";var e=n(76).Clipboard;r.exports={getString:function(){return e.getString()},setString:function(t){e.setString(t)}}},354);
__d(function(e,r,t,n){"use strict";var s={open:function(e){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.reject({message:"DatePickerAndroid is not supported on this platform."}));case 1:case"end":return e.stop()}},null,this)}};t.exports=s},355);
__d(function(e,n,o,a){"use strict";var r=n(76).ImagePickerIOS,t={canRecordVideos:function(e){return r.canRecordVideos(e)},canUseCamera:function(e){return r.canUseCamera(e)},openCameraDialog:function(e,n,o){return e=babelHelpers.extends({videoMode:!1},e),r.openCameraDialog(e,n,o)},openSelectDialog:function(e,n,o){return e=babelHelpers.extends({showImages:!0,showVideos:!1},e),r.openSelectDialog(e,n,o)}};o.exports=t},356);
__d(function(e,t,n,i){"use strict";var a=t(107),r=t(76),s=(t(75),t(44)),l=r.LinkingManager,o=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,l))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"addEventListener",value:function(e,t){this.addListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.removeListener(e,t)}},{key:"openURL",value:function(e){return this._validateURL(e),l.openURL(e)}},{key:"canOpenURL",value:function(e){return this._validateURL(e),l.canOpenURL(e)}},{key:"getInitialURL",value:function(){return l.getInitialURL()}},{key:"_validateURL",value:function(e){s("string"==typeof e,"Invalid URL: should be a string. Was: "+e),s(e,"Invalid URL: cannot be empty")}}]),t}(a);n.exports=new o},357);
__d(function(r,t,a,e){"use strict";var s=t(359),i=t(368),d=t(371),n=t(367),o=t(378),c=t(369),p={StateUtils:o,Transitioner:c,Card:s,CardStack:i,Header:d,PropTypes:n};a.exports=p},358);
__d(function(e,r,t,n){"use strict";var o=r(201),a=r(360),s=r(362),p=r(363),i=r(364),l=r(365),c=r(367),d=r(97),b=r(98),u=d.PropTypes,h=function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"render",value:function(){var e=this.props,r=e.panHandlers,t=e.pointerEvents,n=e.renderScene,p=e.style,i=babelHelpers.objectWithoutProperties(e,["panHandlers","pointerEvents","renderScene","style"]),l=void 0===p?s.forHorizontal(i):p,c=void 0===r?a.forHorizontal(babelHelpers.extends({},i,{onNavigateBack:this.props.onNavigateBack})):r;return d.createElement(o.View,babelHelpers.extends({},c,{pointerEvents:t,ref:this.props.onComponentRef,style:[f.main,l]}),n(i))}}]),r}(d.Component);h.propTypes=babelHelpers.extends({},c.SceneRendererProps,{onComponentRef:u.func.isRequired,onNavigateBack:u.func,panHandlers:c.panHandlers,pointerEvents:u.string.isRequired,renderScene:u.func.isRequired,style:u.any});var f=b.create({main:{backgroundColor:"#E9E9EF",bottom:0,left:0,position:"absolute",right:0,shadowColor:"black",shadowOffset:{width:0,height:0},shadowOpacity:.4,shadowRadius:10,top:0}});h=l.create(h),h.CardStackPanResponder=a,h.CardStackStyleInterpolator=s,h.PagerPanResponder=p,h.PagerStyleInterpolator=i,t.exports=h},359);
__d(function(e,t,i,n){"use strict";function s(e,t){return new c(e,t).panHandlers}function a(e){return s(d.HORIZONTAL,e)}function o(e){return s(d.VERTICAL,e)}var r=t(201),_=t(293),u=t(361),l=t(311),p=function(){},d={HORIZONTAL:"horizontal",VERTICAL:"vertical"},c=function(e){function t(e,i){babelHelpers.classCallCheck(this,t);var n=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n._isResponding=!1,n._isVertical=e===d.VERTICAL,n._props=i,n._startValue=0,n._addNativeListener(n._props.layout.width),n._addNativeListener(n._props.layout.height),n._addNativeListener(n._props.position),n}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"onMoveShouldSetPanResponder",value:function(e,t){var i=this._props;if(i.navigationState.index!==i.scene.index)return!1;var n=i.layout,s=this._isVertical,a=i.navigationState.index,o=t[s?"dy":"dx"],r=t[s?"moveY":"moveX"],_=s?n.height.__getValue():n.width.__getValue(),u=s?i.gestureResponseDistance:i.gestureResponseDistance||30;return!(null!=u&&r>u)&&(Math.abs(o)>15&&_>0&&a>0)}},{key:"onPanResponderGrant",value:function(){var e=this;this._isResponding=!1,this._props.position.stopAnimation(function(t){e._isResponding=!0,e._startValue=t})}},{key:"onPanResponderMove",value:function(e,t){if(this._isResponding){var i=this._props,n=i.layout,s=this._isVertical,a=s?"dy":"dx",o=i.navigationState.index,r=s?n.height.__getValue():n.width.__getValue(),u=_.isRTL&&"dx"===a?this._startValue+t[a]/r:this._startValue-t[a]/r,p=l(o-1,u,o);i.position.setValue(p)}}},{key:"onPanResponderRelease",value:function(e,t){var i=this;if(this._isResponding){this._isResponding=!1;var n=this._props,s=this._isVertical,a=s?"dy":"dx",o=n.navigationState.index,r=_.isRTL&&"dx"===a?-t[a]:t[a];n.position.stopAnimation(function(e){i._reset(),n.onNavigateBack&&(r>100||e<=o-.3333333333333333)&&n.onNavigateBack()})}}},{key:"onPanResponderTerminate",value:function(){this._isResponding=!1,this._reset()}},{key:"_reset",value:function(){var e=this._props;r.timing(e.position,{toValue:e.navigationState.index,duration:250,useNativeDriver:e.position.__isNative}).start()}},{key:"_addNativeListener",value:function(e){e.__isNative&&0===Object.keys(e._listeners).length&&e.addListener(p)}}]),t}(u);i.exports={ANIMATION_DURATION:250,DISTANCE_THRESHOLD:100,POSITION_THRESHOLD:.3333333333333333,RESPOND_THRESHOLD:15,Directions:d,forHorizontal:a,forVertical:o}},360);
__d(function(n,e,a,s){"use strict";var o=e(309),t=e(44),l={onMoveShouldSetPanResponder:null,onPanResponderGrant:null,onPanResponderMove:null,onPanResponderRelease:null,onPanResponderTerminate:null},r=function n(){var e=this;babelHelpers.classCallCheck(this,n);var a={};Object.keys(l).forEach(function(n){var s=e[n];t("function"==typeof s,"subclass of `NavigationAbstractPanResponder` must implement method %s",n),a[n]=s.bind(e)},this),this.panHandlers=o.create(a).panHandlers};a.exports=r},361);
__d(function(t,n,e,a){"use strict";function i(t){var n=t.navigationState,e=t.scene,a=n.index===e.index,i=a?1:0,r=a?0:1e6;return{opacity:i,transform:[{translateX:r},{translateY:r}]}}function r(t){var n=t.layout,e=t.position,a=t.scene;if(!n.isMeasured)return i(t);var r=a.index,o=[r-1,r,r+.99,r+1],u=n.initWidth,p=s.isRTL?[-u,0,10,10]:[u,0,-10,-10];return{opacity:e.interpolate({inputRange:o,outputRange:[1,1,.3,0]}),transform:[{scale:e.interpolate({inputRange:o,outputRange:[1,1,.95,.95]})},{translateX:e.interpolate({inputRange:o,outputRange:p})},{translateY:0}]}}function o(t){var n=t.layout,e=t.position,a=t.scene;if(!n.isMeasured)return i(t);var r=a.index,o=[r-1,r,r+.99,r+1],u=n.initHeight;return{opacity:e.interpolate({inputRange:o,outputRange:[1,1,.3,0]}),transform:[{scale:e.interpolate({inputRange:o,outputRange:[1,1,.95,.95]})},{translateX:0},{translateY:e.interpolate({inputRange:o,outputRange:[u,0,-10,-10]})}]}}function u(t){return!0}var s=n(293);e.exports={forHorizontal:r,forVertical:o,canUseNativeDriver:u}},362);
__d(function(t,e,i,n){"use strict";function s(t,e){return new v(t,e).panHandlers}function a(t){return s(c.HORIZONTAL,t)}var o=e(201),r=e(361),u=e(360),l=e(293),_=e(311),p=u.ANIMATION_DURATION,d=u.POSITION_THRESHOLD,h=u.RESPOND_THRESHOLD,c=u.Directions,v=function(t){function e(t,i){babelHelpers.classCallCheck(this,e);var n=babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return n._isResponding=!1,n._isVertical=t===c.VERTICAL,n._props=i,n._startValue=0,n}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"onMoveShouldSetPanResponder",value:function(t,e){var i=this._props;if(i.navigationState.index!==i.scene.index)return!1;var n=i.layout,s=this._isVertical,a=s?"dy":"dx",o=i.navigationState.index,r=s?n.height.__getValue():n.width.__getValue();return Math.abs(e[a])>h&&r>0&&o>=0}},{key:"onPanResponderGrant",value:function(){var t=this;this._isResponding=!1,this._props.position.stopAnimation(function(e){t._isResponding=!0,t._startValue=e})}},{key:"onPanResponderMove",value:function(t,e){if(this._isResponding){var i=this._props,n=i.layout,s=i.navigationState,a=i.position,o=i.scenes,r=this._isVertical,u=r?"dy":"dx",p=s.index,d=r?n.height.__getValue():n.width.__getValue(),h=l.isRTL&&"dx"===u?this._startValue+e[u]/d:this._startValue-e[u]/d,c=Math.max(0,p-1),v=Math.min(p+1,o.length-1),g=_(c,h,v);a.setValue(g)}}},{key:"onPanResponderRelease",value:function(t,e){var i=this;if(this._isResponding){this._isResponding=!1;var n=this._props,s=n.navigationState,a=n.onNavigateBack,o=n.onNavigateForward,r=n.position,u=this._isVertical,_=u?"dy":"dx",p=u?"vy":"vx",h=s.index,c=l.isRTL&&"dx"===_?-e[_]:e[_],v=l.isRTL&&"vx"===p?-e[p]:e[p];r.stopAnimation(function(t){if(i._reset(),c>50||t<=h-d||v>1.5)return void(a&&a());(c<-50||t>=h+d||v<-1.5)&&o&&o()})}}},{key:"onPanResponderTerminate",value:function(){this._isResponding=!1,this._reset()}},{key:"_reset",value:function(){var t=this._props;o.timing(t.position,{toValue:t.navigationState.index,duration:p}).start()}}]),e}(r);i.exports={forHorizontal:a}},363);
__d(function(t,n,a,e){"use strict";function r(t){var n=t.navigationState,a=t.scene,e=n.index===a.index,r=e?1:0,i=a.index>n.index?1:-1,o=e?0:1e6*i;return{opacity:r,transform:[{translateX:o},{translateY:o}]}}function i(t){var n=t.layout,a=t.position,e=t.scene;if(!n.isMeasured)return r(t);var i=e.index,s=[i-1,i,i+1],u=n.initWidth,d=o.isRTL?[-u,0,u]:[u,0,-u];return{opacity:1,shadowColor:"transparent",shadowRadius:0,transform:[{scale:1},{translateX:a.interpolate({inputRange:s,outputRange:d})},{translateY:0}]}}var o=n(293);a.exports={forHorizontal:i}},364);
__d(function(e,t,n,o){"use strict";function i(e){return function(t){function n(e,t){babelHelpers.classCallCheck(this,n);var o=babelHelpers.possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return o._pointerEvents=o._computePointerEvents(),o}return babelHelpers.inherits(n,t),babelHelpers.createClass(n,[{key:"componentWillMount",value:function(){this._onPositionChange=this._onPositionChange.bind(this),this._onComponentRef=this._onComponentRef.bind(this)}},{key:"componentDidMount",value:function(){this._bindPosition(this.props)}},{key:"componentWillUnmount",value:function(){this._positionListener&&this._positionListener.remove()}},{key:"componentWillReceiveProps",value:function(e){this._bindPosition(e)}},{key:"render",value:function(){return this._pointerEvents=this._computePointerEvents(),s.createElement(e,babelHelpers.extends({},this.props,{pointerEvents:this._pointerEvents,onComponentRef:this._onComponentRef}))}},{key:"_onComponentRef",value:function(e){this._component=e,e&&p("function"==typeof e.setNativeProps,"component must implement method `setNativeProps`")}},{key:"_bindPosition",value:function(e){this._positionListener&&this._positionListener.remove(),this._positionListener=new r(e.position,this._onPositionChange)}},{key:"_onPositionChange",value:function(){if(this._component){var e=this._computePointerEvents();this._pointerEvents!==e&&(this._pointerEvents=e,this._component.setNativeProps({pointerEvents:e}))}}},{key:"_computePointerEvents",value:function(){var e=this.props,t=e.navigationState,n=e.position,o=e.scene;if(o.isStale||t.index!==o.index)return o.index>t.index?"box-only":"none";var i=n.__getAnimatedValue()-t.index;return Math.abs(i)>a?"box-only":"auto"}}]),n}(s.Component)}var s=t(97),r=t(366),p=t(44),a=.01;n.exports={create:i}},365);
__d(function(e,t,s,n){"use strict";var i=function(){function e(t,s){babelHelpers.classCallCheck(this,e),this._value=t,this._token=t.addListener(s)}return babelHelpers.createClass(e,[{key:"remove",value:function(){this._value.removeListener(this._token)}}]),e}();s.exports=i},366);
__d(function(e,i,n,r){"use strict";function s(e){return{layout:e.layout,navigationState:e.navigationState,position:e.position,progress:e.progress,scene:e.scene,scenes:e.scenes}}var o=i(201),u=i(97),t=u.PropTypes,d=t.shape({type:t.string.isRequired}),R=t.instanceOf(o.Value),a=t.shape({key:t.string.isRequired}),p=t.shape({index:t.number.isRequired,routes:t.arrayOf(a)}),q=t.shape({height:R,initHeight:t.number.isRequired,initWidth:t.number.isRequired,isMeasured:t.bool.isRequired,width:R}),c=t.shape({index:t.number.isRequired,isActive:t.bool.isRequired,isStale:t.bool.isRequired,key:t.string.isRequired,route:a.isRequired}),S={layout:q.isRequired,navigationState:p.isRequired,position:R.isRequired,progress:R.isRequired,scene:c.isRequired,scenes:t.arrayOf(c).isRequired},f=t.shape(S),h=t.shape({onMoveShouldSetResponder:t.func.isRequired,onMoveShouldSetResponderCapture:t.func.isRequired,onResponderEnd:t.func.isRequired,onResponderGrant:t.func.isRequired,onResponderMove:t.func.isRequired,onResponderReject:t.func.isRequired,onResponderRelease:t.func.isRequired,onResponderStart:t.func.isRequired,onResponderTerminate:t.func.isRequired,onResponderTerminationRequest:t.func.isRequired,onStartShouldSetResponder:t.func.isRequired,onStartShouldSetResponderCapture:t.func.isRequired});n.exports={extractSceneRendererProps:s,SceneRendererProps:S,SceneRenderer:f,action:d,navigationState:p,navigationRoute:a,panHandlers:h}},367);
__d(function(e,r,t,n){"use strict";var s=r(76).NativeAnimatedModule,i=r(359),a=r(360),o=r(362),l=r(367),c=r(369),p=r(97),u=r(98),d=r(130),f=p.PropTypes,v=a.Directions,y=function(e){function r(e,t){babelHelpers.classCallCheck(this,r);var n=babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t));return n._configureTransition=function(){var e="vertical"===n.props.direction,r={};return s&&!n.props.enableGestures&&o.canUseNativeDriver(e)&&(r.useNativeDriver=!0),r},n}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"componentWillMount",value:function(){this._render=this._render.bind(this),this._renderScene=this._renderScene.bind(this)}},{key:"render",value:function(){return p.createElement(c,{configureTransition:this._configureTransition,navigationState:this.props.navigationState,render:this._render,style:this.props.style})}},{key:"_render",value:function(e){var r=this,t=this.props.renderHeader,n=t?p.createElement(d,null,t(e)):null,s=e.scenes.map(function(t){return r._renderScene(babelHelpers.extends({},e,{scene:t}))});return p.createElement(d,{style:h.container},p.createElement(d,{style:[h.scenes,this.props.scenesStyle]},s),n)}},{key:"_renderScene",value:function(e){var r="vertical"===this.props.direction,t=this.props.cardStyleInterpolator||(r?o.forVertical:o.forHorizontal),n=t(e),s=null;if(this.props.enableGestures){var l=babelHelpers.extends({},e,{onNavigateBack:this.props.onNavigateBack,gestureResponseDistance:this.props.gestureResponseDistance});s=r?a.forVertical(l):a.forHorizontal(l)}return p.createElement(i,babelHelpers.extends({},e,{key:"card_"+e.scene.key,panHandlers:s,renderScene:this.props.renderScene,style:[n,this.props.cardStyle]}))}}]),r}(p.Component);y.propTypes={cardStyle:f.any,direction:f.oneOf([v.HORIZONTAL,v.VERTICAL]),gestureResponseDistance:f.number,cardStyleInterpolator:f.func,enableGestures:f.bool,navigationState:l.navigationState.isRequired,onNavigateBack:f.func,renderHeader:f.func,renderScene:f.func.isRequired,style:d.propTypes.style,scenesStyle:d.propTypes.style},y.defaultProps={direction:v.HORIZONTAL,enableGestures:!0};var h=u.create({container:{flex:1,flexDirection:"column-reverse"},scenes:{flex:1}});t.exports=y},368);
__d(function(t,i,n,e){"use strict";function s(t,i){var n=t.navigationState,e=i.layout,s=i.position,o=i.progress,r=i.scenes,p=r.find(a);return d(p,"No active scene when building navigation transition props."),{layout:e,navigationState:n,position:s,progress:o,scenes:r,scene:p}}function o(t){return!t.isStale}function a(t){return t.isActive}var r=i(201),p=i(217),u=i(367),l=i(370),h=i(97),c=i(98),v=i(130),d=i(44),_=h.PropTypes,g={duration:250,easing:p.inOut(p.ease),timing:r.timing},f=function(t){function i(t,n){babelHelpers.classCallCheck(this,i);var e=babelHelpers.possibleConstructorReturn(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,t,n)),o={height:new r.Value(0),initHeight:0,initWidth:0,isMeasured:!1,width:new r.Value(0)};return e.state={layout:o,position:new r.Value(e.props.navigationState.index),progress:new r.Value(1),scenes:l([],e.props.navigationState)},e._prevTransitionProps=null,e._transitionProps=s(t,e.state),e._isMounted=!1,e}return babelHelpers.inherits(i,t),babelHelpers.createClass(i,[{key:"componentWillMount",value:function(){this._onLayout=this._onLayout.bind(this),this._onTransitionEnd=this._onTransitionEnd.bind(this)}},{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1}},{key:"componentWillReceiveProps",value:function(t){var i=this,n=l(this.state.scenes,t.navigationState,this.props.navigationState);if(n!==this.state.scenes){var e=babelHelpers.extends({},this.state,{scenes:n}),o=e.position,a=e.progress;a.setValue(0),this._prevTransitionProps=this._transitionProps,this._transitionProps=s(t,e);var p=t.configureTransition?t.configureTransition(this._transitionProps,this._prevTransitionProps):null,u=babelHelpers.extends({},g,p),h=u.timing;delete u.timing;var c=[h(a,babelHelpers.extends({},u,{toValue:1}))];t.navigationState.index!==this.props.navigationState.index&&c.push(h(o,babelHelpers.extends({},u,{toValue:t.navigationState.index}))),this.setState(e,function(){t.onTransitionStart&&t.onTransitionStart(i._transitionProps,i._prevTransitionProps),r.parallel(c).start(i._onTransitionEnd)})}}},{key:"render",value:function(){return h.createElement(v,{onLayout:this._onLayout,style:[b.main,this.props.style]},this.props.render(this._transitionProps,this._prevTransitionProps))}},{key:"_onLayout",value:function(t){var i=t.nativeEvent.layout,n=i.height,e=i.width;if(this.state.layout.initWidth!==e||this.state.layout.initHeight!==n){var o=babelHelpers.extends({},this.state.layout,{initHeight:n,initWidth:e,isMeasured:!0});o.height.setValue(n),o.width.setValue(e);var a=babelHelpers.extends({},this.state,{layout:o});this._transitionProps=s(this.props,a),this.setState(a)}}},{key:"_onTransitionEnd",value:function(){var t=this;if(this._isMounted){var i=this._prevTransitionProps;this._prevTransitionProps=null;var n=babelHelpers.extends({},this.state,{scenes:this.state.scenes.filter(o)});this._transitionProps=s(this.props,n),this.setState(n,function(){t.props.onTransitionEnd&&t.props.onTransitionEnd(t._transitionProps,i)})}}}]),i}(h.Component);f.propTypes={configureTransition:_.func,navigationState:u.navigationState.isRequired,onTransitionEnd:_.func,onTransitionStart:_.func,render:_.func.isRequired};var b=c.create({main:{flex:1}});n.exports=f},369);
__d(function(e,t,n,i){"use strict";function r(e,t){var n=e.length-t.length;return n>0?1:n<0?-1:e>t?1:-1}function a(e,t){return e.index>t.index?1:e.index<t.index?-1:r(e.key,t.key)}function s(e,t){return e.key===t.key&&e.index===t.index&&e.isStale===t.isStale&&e.isActive===t.isActive&&o(e.route,t.route)}function o(e,t){return e&&t?e.key===t.key&&f(e,t):e===t}function u(e,t,n){if(n===t)return e;var i=new Map,r=new Map,o=new Map;e.forEach(function(e){var t=e.key;e.isStale&&o.set(t,e),i.set(t,e)});var u=new Set;t.routes.forEach(function(e,t){var n=h+e.key,i={index:t,isActive:!1,isStale:!1,key:n,route:e};c(!u.has(n),"navigationState.routes["+t+'].key "'+n+'" conflicts with another route!'),u.add(n),o.has(n)&&o.delete(n),r.set(n,i)}),n&&n.routes.forEach(function(e,t){var n=h+e.key;r.has(n)||o.set(n,{index:t,isActive:!1,isStale:!0,key:n,route:e})});var f=[],l=function(e){var t=e.key,n=i.has(t)?i.get(t):null;n&&s(n,e)?f.push(n):f.push(e)};o.forEach(l),r.forEach(l),f.sort(a);var v=0;return f.forEach(function(e,n){var i=!e.isStale&&e.index===t.index;i!==e.isActive&&(f[n]=babelHelpers.extends({},e,{isActive:i})),i&&v++}),c(1===v,"there should always be only one scene active, not %s.",v),f.length!==e.length?f:f.some(function(t,n){return!s(e[n],t)})?f:e}var c=t(44),f=t(168),h="scene_";n.exports=u},370);
__d(function(e,t,n,r){"use strict";var o=t(372),i=t(374),a=t(375),s=t(367),l=t(97),p=t(376),u=t(64),c=t(196),h=u.Animated,d=(u.Platform,u.StyleSheet),f=u.View,b=l.PropTypes,v=function(e){function t(){var e,n,r,o;babelHelpers.classCallCheck(this,t);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=r=babelHelpers.possibleConstructorReturn(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r._renderLeft=function(e){return r._renderSubView(e,"left",r.props.renderLeftComponent,i.forLeft)},r._renderTitle=function(e){return r._renderSubView(e,"title",r.props.renderTitleComponent,i.forCenter)},r._renderRight=function(e){return r._renderSubView(e,"right",r.props.renderRightComponent,i.forRight)},o=n,babelHelpers.possibleConstructorReturn(r,o)}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"shouldComponentUpdate",value:function(e,t){return p.shouldComponentUpdate.call(this,e,t)}},{key:"componentDidMount",value:function(){this._tvEventHandler=new c,this._tvEventHandler.enable(this,function(e,t){t&&"menu"===t.eventType&&e.props.onNavigateBack&&e.props.onNavigateBack()})}},{key:"componentWillUnmount",value:function(){this._tvEventHandler&&(this._tvEventHandler.disable(),delete this._tvEventHandler)}},{key:"render",value:function(){var e=this,t=this.props,n=t.scenes,r=t.style,o=t.viewProps,i=n.map(function(t){var n=s.extractSceneRendererProps(e.props);return n.scene=t,n}),a=this.props.statusBarHeight instanceof h.Value?h.add(this.props.statusBarHeight,new h.Value(44)):44+this.props.statusBarHeight;return l.createElement(h.View,babelHelpers.extends({style:[m.appbar,{height:a},r]},o),i.map(this._renderLeft,this),i.map(this._renderTitle,this),i.map(this._renderRight,this))}},{key:"_renderSubView",value:function(e,t,n,r){var o=e.scene,i=e.navigationState,a=o.index,s=o.isStale,p=o.key,u=i.index-a;if(Math.abs(u)>2)return null;var c=babelHelpers.extends({},e,{onNavigateBack:this.props.onNavigateBack}),d=n(c);if(null===d)return null;var f=0!==u||s?"none":"box-none";return l.createElement(h.View,{pointerEvents:f,key:t+"_"+p,style:[m[t],{marginTop:this.props.statusBarHeight},r(e)]},d)}}]),t}(l.Component);v.defaultProps={renderTitleComponent:function(e){var t=String(e.scene.route.title||"");return l.createElement(a,null,t)},renderLeftComponent:function(e){return 0!==e.scene.index&&e.onNavigateBack?l.createElement(o,{onPress:e.onNavigateBack}):null},renderRightComponent:function(e){return null},statusBarHeight:20},v.propTypes=babelHelpers.extends({},s.SceneRendererProps,{onNavigateBack:b.func,renderLeftComponent:b.func,renderRightComponent:b.func,renderTitleComponent:b.func,style:f.propTypes.style,statusBarHeight:b.number,viewProps:b.shape(f.propTypes)}),v.HEIGHT=64,v.Title=a,v.BackButton=o;var m=d.create({appbar:{alignItems:"center",backgroundColor:"#EFEFF2",borderBottomColor:"rgba(0, 0, 0, .15)",borderBottomWidth:d.hairlineWidth,elevation:4,flexDirection:"row",justifyContent:"flex-start"},title:{bottom:0,left:44,position:"absolute",right:44,top:0},left:{bottom:0,left:0,position:"absolute",top:0},right:{bottom:0,position:"absolute",right:0,top:0}});n.exports=v},371);
__d(function(e,t,n,r){"use strict";var o=t(34),s=t(64),a=s.I18nManager,i=s.Image,c=(s.Platform,s.StyleSheet),l=s.TouchableOpacity,u=function(e){return o.createElement(l,{style:[y.buttonContainer,e.style],onPress:e.onPress},o.createElement(i,{style:[y.button,e.imageStyle],source:t(373)}))};u.propTypes={onPress:o.PropTypes.func.isRequired};var y=c.create({buttonContainer:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center"},button:{height:24,width:24,margin:10,resizeMode:"contain",transform:[{scaleX:a.isRTL?-1:1}]}});n.exports=u},372);
__d(function(e,s,t,a){t.exports=s(181).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/node_modules/react-native/Libraries/CustomComponents/NavigationExperimental/assets",width:24,height:24,scales:[1,1.5,2,3,4],hash:"40cb2e3978cf9a18d3566dab9deded67",name:"back-icon",type:"png"})},373);
__d(function(t,n,e,i){"use strict";function o(t){var n=t.position,e=t.scene,i=e.index;return{opacity:n.interpolate({inputRange:[i-1,i,i+1],outputRange:[0,1,0]})}}function r(t){var n=t.position,e=t.scene,i=e.index;return{opacity:n.interpolate({inputRange:[i-1,i,i+1],outputRange:[0,1,0]}),transform:[{translateX:n.interpolate({inputRange:[i-1,i+1],outputRange:u.isRTL?[-200,200]:[200,-200]})}]}}function a(t){var n=t.position,e=t.scene,i=e.index;return{opacity:n.interpolate({inputRange:[i-1,i,i+1],outputRange:[0,1,0]})}}var u=n(293);e.exports={forCenter:r,forLeft:o,forRight:a}},374);
__d(function(e,t,l,r){"use strict";var i=t(34),n=t(64),o=(n.Platform,n.StyleSheet),s=n.View,p=n.Text,y=function(e){var t=e.children,l=e.style,r=e.textStyle,n=e.viewProps;return i.createElement(s,babelHelpers.extends({style:[c.title,l]},n),i.createElement(p,{style:[c.titleText,r]},t))},c=o.create({title:{flex:1,flexDirection:"row",alignItems:"center",marginHorizontal:16},titleText:{flex:1,fontSize:18,fontWeight:"500",color:"rgba(0, 0, 0, .9)",textAlign:"center"}});y.propTypes={children:i.PropTypes.node.isRequired,style:s.propTypes.style,textStyle:p.propTypes.style},l.exports=y},375);
__d(function(t,n,o,e){"use strict";var r=n(377),s={shouldComponentUpdate:function(t,n){return r(this,t,n)}};o.exports=s},376);
__d(function(t,r,n,s){"use strict";function e(t,r,n){return!o(t.props,r)||!o(t.state,n)}var o=r(168);n.exports=e},377);
__d(function(e,n,r,t){"use strict";var u=n(44),i={get:function(e,n){return e.routes.find(function(e){return e.key===n})||null},indexOf:function(e,n){return e.routes.map(function(e){return e.key}).indexOf(n)},has:function(e,n){return!!e.routes.some(function(e){return e.key===n})},push:function(e,n){u(-1===i.indexOf(e,n.key),"should not push route with duplicated key %s",n.key);var r=e.routes.slice();return r.push(n),babelHelpers.extends({},e,{index:r.length-1,routes:r})},pop:function(e){if(e.index<=0)return e;var n=e.routes.slice(0,-1);return babelHelpers.extends({},e,{index:n.length-1,routes:n})},jumpToIndex:function(e,n){return n===e.index?e:(u(!!e.routes[n],"invalid index %s to jump to",n),babelHelpers.extends({},e,{index:n}))},jumpTo:function(e,n){var r=i.indexOf(e,n);return i.jumpToIndex(e,r)},back:function(e){var n=e.index-1;return e.routes[n]?i.jumpToIndex(e,n):e},forward:function(e){var n=e.index+1;return e.routes[n]?i.jumpToIndex(e,n):e},replaceAt:function(e,n,r){var t=i.indexOf(e,n);return i.replaceAtIndex(e,t,r)},replaceAtIndex:function(e,n,r){if(u(!!e.routes[n],"invalid index %s for replacing route %s",n,r.key),e.routes[n]===r)return e;var t=e.routes.slice();return t[n]=r,babelHelpers.extends({},e,{index:n,routes:t})},reset:function(e,n,r){u(n.length&&Array.isArray(n),"invalid routes to replace");var t=void 0===r?n.length-1:r;if(e.routes.length===n.length&&e.index===t){var i=function(e,r){return n[r]===e};if(e.routes.every(i))return e}return u(!!n[t],"invalid index %s to reset",t),babelHelpers.extends({},e,{index:t,routes:n})}};r.exports=i},378);
__d(function(e,n,t,r){"use strict";var o=n(205),i=n(107),u=n(76),v=(n(75),u.NetInfo),c=new i(v),f=new o,s=void 0;s=function(e){return"none"!==e&&"unknown"!==e};var d=new o,a={addEventListener:function(e,n){var t=c.addListener("networkStatusDidChange",function(e){n(e.network_info)});return f.set(n,t),{remove:function(){return a.removeEventListener(e,n)}}},removeEventListener:function(e,n){var t=f.get(n);t&&(t.remove(),f.delete(n))},fetch:function(){return v.getCurrentConnectivity().then(function(e){return e.network_info})},isConnected:{addEventListener:function(e,n){var t=function(e){n(s(e))};return d.set(n,t),a.addEventListener(e,t),{remove:function(){return a.isConnected.removeEventListener(e,n)}}},removeEventListener:function(e,n){var t=d.get(n);a.removeEventListener(e,t),d.delete(n)},fetch:function(){return a.fetch().then(function(e){return s(e)})}},isConnectionExpensive:function(){return Promise.reject(new Error("Currently not supported on iOS"))}};t.exports=a},379);
__d(function(e,r,i,n){"use strict";var s=r(76).DialogManagerAndroid,o=r(76).PermissionsAndroid,E=function(){function e(){babelHelpers.classCallCheck(this,e),this.PERMISSIONS={READ_CALENDAR:"android.permission.READ_CALENDAR",WRITE_CALENDAR:"android.permission.WRITE_CALENDAR",CAMERA:"android.permission.CAMERA",READ_CONTACTS:"android.permission.READ_CONTACTS",WRITE_CONTACTS:"android.permission.WRITE_CONTACTS",GET_ACCOUNTS:"android.permission.GET_ACCOUNTS",ACCESS_FINE_LOCATION:"android.permission.ACCESS_FINE_LOCATION",ACCESS_COARSE_LOCATION:"android.permission.ACCESS_COARSE_LOCATION",RECORD_AUDIO:"android.permission.RECORD_AUDIO",READ_PHONE_STATE:"android.permission.READ_PHONE_STATE",CALL_PHONE:"android.permission.CALL_PHONE",READ_CALL_LOG:"android.permission.READ_CALL_LOG",WRITE_CALL_LOG:"android.permission.WRITE_CALL_LOG",ADD_VOICEMAIL:"com.android.voicemail.permission.ADD_VOICEMAIL",USE_SIP:"android.permission.USE_SIP",PROCESS_OUTGOING_CALLS:"android.permission.PROCESS_OUTGOING_CALLS",BODY_SENSORS:"android.permission.BODY_SENSORS",SEND_SMS:"android.permission.SEND_SMS",RECEIVE_SMS:"android.permission.RECEIVE_SMS",READ_SMS:"android.permission.READ_SMS",RECEIVE_WAP_PUSH:"android.permission.RECEIVE_WAP_PUSH",RECEIVE_MMS:"android.permission.RECEIVE_MMS",READ_EXTERNAL_STORAGE:"android.permission.READ_EXTERNAL_STORAGE",WRITE_EXTERNAL_STORAGE:"android.permission.WRITE_EXTERNAL_STORAGE"},this.RESULTS={GRANTED:"granted",DENIED:"denied",NEVER_ASK_AGAIN:"never_ask_again"}}return babelHelpers.createClass(e,[{key:"checkPermission",value:function(e){return console.warn('"PermissionsAndroid.checkPermission" is deprecated. Use "PermissionsAndroid.check" instead'),o.checkPermission(e)}},{key:"check",value:function(e){return o.checkPermission(e)}},{key:"requestPermission",value:function(e,r){var i;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:return console.warn('"PermissionsAndroid.requestPermission" is deprecated. Use "PermissionsAndroid.request" instead'),n.next=3,regeneratorRuntime.awrap(this.request(e,r));case 3:return i=n.sent,n.abrupt("return",i===this.RESULTS.GRANTED);case 5:case"end":return n.stop()}},null,this)}},{key:"request",value:function(e,r){var i;return regeneratorRuntime.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=6;break}return n.next=3,regeneratorRuntime.awrap(o.shouldShowRequestPermissionRationale(e));case 3:if(!(i=n.sent)){n.next=6;break}return n.abrupt("return",new Promise(function(i,n){s.showAlert(r,function(){return n(new Error("Error showing rationale"))},function(){return i(o.requestPermission(e))})}));case 6:return n.abrupt("return",o.requestPermission(e));case 7:case"end":return n.stop()}},null,this)}},{key:"requestMultiple",value:function(e){return o.requestMultiplePermissions(e)}}]),e}();E=new E,i.exports=E},380);
__d(function(e,t,i,o){"use strict";var n=t(107),a=t(76).PushNotificationManager,c=t(44),r=new n(a),s=new Map,l=function(){function e(t){var i=this;babelHelpers.classCallCheck(this,e),this._data={},this._remoteNotificationCompleteCalllbackCalled=!1,this._isRemote=t.remote,this._isRemote&&(this._notificationId=t.notificationId),t.remote?Object.keys(t).forEach(function(e){var o=t[e];"aps"===e?(i._alert=o.alert,i._sound=o.sound,i._badgeCount=o.badge):i._data[e]=o}):(this._badgeCount=t.applicationIconBadgeNumber,this._sound=t.soundName,this._alert=t.alertBody,this._data=t.userInfo)}return babelHelpers.createClass(e,null,[{key:"presentLocalNotification",value:function(e){a.presentLocalNotification(e)}},{key:"scheduleLocalNotification",value:function(e){a.scheduleLocalNotification(e)}},{key:"cancelAllLocalNotifications",value:function(){a.cancelAllLocalNotifications()}},{key:"setApplicationIconBadgeNumber",value:function(e){a.setApplicationIconBadgeNumber(e)}},{key:"getApplicationIconBadgeNumber",value:function(e){a.getApplicationIconBadgeNumber(e)}},{key:"cancelLocalNotifications",value:function(e){a.cancelLocalNotifications(e)}},{key:"getScheduledLocalNotifications",value:function(e){a.getScheduledLocalNotifications(e)}},{key:"addEventListener",value:function(t,i){c("notification"===t||"register"===t||"registrationError"===t||"localNotification"===t,"PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events");var o;"notification"===t?o=r.addListener("remoteNotificationReceived",function(t){i(new e(t))}):"localNotification"===t?o=r.addListener("localNotificationReceived",function(t){i(new e(t))}):"register"===t?o=r.addListener("remoteNotificationsRegistered",function(e){i(e.deviceToken)}):"registrationError"===t&&(o=r.addListener("remoteNotificationRegistrationError",function(e){i(e)})),s.set(t,o)}},{key:"removeEventListener",value:function(e,t){c("notification"===e||"register"===e||"registrationError"===e||"localNotification"===e,"PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events");var i=s.get(e);i&&(i.remove(),s.delete(e))}},{key:"requestPermissions",value:function(e){var t={};return t=e?{alert:!!e.alert,badge:!!e.badge,sound:!!e.sound}:{alert:!0,badge:!0,sound:!0},a.requestPermissions(t)}},{key:"abandonPermissions",value:function(){a.abandonPermissions()}},{key:"checkPermissions",value:function(e){c("function"==typeof e,"Must provide a valid callback"),a.checkPermissions(e)}},{key:"getInitialNotification",value:function(){return a.getInitialNotification().then(function(t){return t&&new e(t)})}}]),babelHelpers.createClass(e,[{key:"finish",value:function(e){this._isRemote&&this._notificationId&&!this._remoteNotificationCompleteCalllbackCalled&&(this._remoteNotificationCompleteCalllbackCalled=!0,a.onFinishRemoteNotification(this._notificationId,e))}},{key:"getMessage",value:function(){return this._alert}},{key:"getSound",value:function(){return this._sound}},{key:"getAlert",value:function(){return this._alert}},{key:"getBadgeCount",value:function(){return this._badgeCount}},{key:"getData",value:function(){return this._data}}]),e}();l.FetchResult={NewData:"UIBackgroundFetchResultNewData",NoData:"UIBackgroundFetchResultNoData",ResultFailed:"UIBackgroundFetchResultFailed"},i.exports=l},381);
__d(function(t,s,e,n){"use strict";var i=s(101),a=s(76).SettingsManager,r=s(44),c=[],l={_settings:a&&a.settings,get:function(t){return this._settings[t]},set:function(t){this._settings=babelHelpers.extends(this._settings,t),a.setValues(t)},watchKeys:function(t,s){"string"==typeof t&&(t=[t]),r(Array.isArray(t),"keys should be a string or array of strings");var e=c.length;return c.push({keys:t,callback:s}),e},clearWatch:function(t){t<c.length&&(c[t]={keys:[],callback:null})},_sendObservations:function(t){var s=this;Object.keys(t).forEach(function(e){var n=t[e],i=s._settings[e]!==n;s._settings[e]=n,i&&c.forEach(function(t){-1!==t.keys.indexOf(e)&&t.callback&&t.callback()})})}};i.addListener("settingsUpdated",l._sendObservations.bind(l)),e.exports=l},382);
__d(function(e,t,n,i){"use strict";var o=(t(75),t(76)),s=o.ActionSheetManager,r=(o.ShareModule,t(44)),a=t(125),c=function(){function e(){babelHelpers.classCallCheck(this,e)}return babelHelpers.createClass(e,null,[{key:"share",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r("object"==typeof e&&null!==e,"Content to share must be a valid object"),r("string"==typeof e.url||"string"==typeof e.message,"At least one of URL and message is required"),r("object"==typeof t&&null!==t,"Options must be a valid object"),new Promise(function(n,i){s.showShareActionSheetWithOptions(babelHelpers.extends({},e,t,{tintColor:a(t.tintColor)}),function(e){return i(e)},function(e,t){n(e?{action:"sharedAction",activityType:t}:{action:"dismissedAction"})})})}},{key:"sharedAction",get:function(){return"sharedAction"}},{key:"dismissedAction",get:function(){return"dismissedAction"}}]),e}();n.exports=c},383);
__d(function(e,r,t,n){"use strict";var s={open:function(e){return regeneratorRuntime.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.reject({message:"TimePickerAndroid is not supported on this platform."}));case 1:case"end":return e.stop()}},null,this)}};t.exports=s},384);
__d(function(i,r,t,n){"use strict";function e(i){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!a){if(a=!0,0===i[0]&&(u.vibrate(),i=i.slice(1)),0===i.length)return void(a=!1);setTimeout(function(){return o(++f,i,r,1)},i[0])}}function o(i,r,t,n){if(a&&i===f){if(u.vibrate(),n>=r.length){if(!t)return void(a=!1);n=0}setTimeout(function(){return o(i,r,t,n+1)},r[n])}}var u=r(76).Vibration,a=(r(75),!1),f=0,v={vibrate:function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:400,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!a)if("number"==typeof i)u.vibrate();else{if(!Array.isArray(i))throw new Error("Vibration pattern should be a number or array");e(i,r)}},cancel:function(){a=!1}};t.exports=v},385);
__d(function(t,i,r,n){"use strict";var o=i(76).Vibration,a=i(44),e={vibrate:function(){a(void 0===arguments[0],"Vibration patterns not supported."),o.vibrate()}};r.exports=e},386);
__d(function(t,e,n,r){"use strict";var i=e(388),s=e(389),a={linkState:function(t){return new i(this.state[t],s.createStateKeySetter(this,t))}};n.exports=a},387);
__d(function(t,e,s,i){"use strict";function n(t,e){this.value=t,this.requestChange=e}s.exports=n},388);
__d(function(t,e,r,n){"use strict";function a(t,e){var r={};return function(n){r[e]=n,t.setState(r)}}var c={createStateSetter:function(t,e){return function(r,n,a,c,S,u){var i=e.call(t,r,n,a,c,S,u);i&&t.setState(i)}},createStateKeySetter:function(t,e){var r=t.__keySetters||(t.__keySetters={});return r[e]||(r[e]=a(t,e))}};c.Mixin={createStateSetter:function(t){return c.createStateSetter(this,t)},createStateKeySetter:function(t){return c.createStateKeySetter(this,t)}},r.exports=c},389);
__d(function(r,t,e,n){"use strict";var i=t(38),a=t(46),o=t(48),u=t(41),f=(t(44),t(40),{create:function(r){if("object"!=typeof r||!r||Array.isArray(r))return r;if(o.isValidElement(r))return r;1===r.nodeType&&i("0");var t=[];for(var e in r)a.mapIntoWithKeyPrefixInternal(r[e],t,e,u.thatReturnsArgument);return t}});e.exports=f},390);
__d(function(r,t,a,c){"use strict";function n(r){return Array.isArray(r)?r.concat():r&&"object"==typeof r?f(new r.constructor,r):r}function o(r,t,a){Array.isArray(r)||i("1",a,r);var c=t[a];Array.isArray(c)||i("2",a,c)}function e(r,t){if("object"!=typeof t&&i("3",j.join(", "),p),y.call(t,p))return 1!==Object.keys(t).length&&i("4",p),t[p];var a=n(r);if(y.call(t,A)){var c=t[A];c&&"object"==typeof c||i("5",A,c),a&&"object"==typeof a||i("6",A,a),f(a,t[A])}y.call(t,s)&&(o(r,t,s),t[s].forEach(function(r){a.push(r)})),y.call(t,u)&&(o(r,t,u),t[u].forEach(function(r){a.unshift(r)})),y.call(t,l)&&(Array.isArray(r)||i("7",l,r),Array.isArray(t[l])||i("8",l,t[l]),t[l].forEach(function(r){Array.isArray(r)||i("8",l,t[l]),a.splice.apply(a,r)})),y.call(t,h)&&("function"!=typeof t[h]&&i("9",h,t[h]),a=t[h](a));for(var b in t)$.hasOwnProperty(b)&&$[b]||(a[b]=e(r[b],t[b]));return a}var i=t(38),f=t(36),y=(t(44),{}.hasOwnProperty),s="$push",u="$unshift",l="$splice",p="$set",A="$merge",h="$apply",j=[s,u,l,p,A,h],$={};j.forEach(function(r){$[r]=!0}),a.exports=e},391);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(393);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(671);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})});var c=t(672);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}})});var f=t(693);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return f[e]}})}),t(986),t(987)},392);
__d(function(t,o,n,e){function r(t){return function(o,n){return u(o,n,(0,L.parseURIString)(t))}}function i(t,o,n){function e(o,n){if(!o)return r().then(function(){return t((0,h.setConfig)(n))})}function r(){return t((0,s.setLocationURL)(new URL(n.toString())))}function i(){return t((0,f.setRoom)(n.room))}var u=o()["features/base/connection"].locationURL;(u?u.host:void 0)===n.host?r().then(i):a(n).then(function(t){return e(void 0,t)},function(t){return e(t,void 0)}).then(i)}function u(t,o,n){if(!n||!n.host){var e=(0,L.parseURIString)(o()["features/app"].app._getDefaultURL());n?(n.host=e.host,n.hostname=e.hostname,n.port=e.port,n.protocol=e.protocol):n=e}n.protocol||(n.protocol="https:"),i(t,o,n)}function p(t){return function(o){o({type:P.APP_WILL_MOUNT,app:t}),"object"==typeof APP&&APP.API.init()}}function c(t){return{type:P.APP_WILL_UNMOUNT,app:t}}function a(t){var o=t.protocol.toLowerCase();return"http:"!==o&&"https:"!==o&&(o="https:"),(0,l.loadConfig)(o+"//"+t.host+(t.contextRoot||"/"))}Object.defineProperty(e,"__esModule",{value:!0}),e.appNavigate=r,e.appWillMount=p,e.appWillUnmount=c;var f=o(394),s=o(610),h=o(458),l=o(396),L=o(491),P=o(671)},393);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(395);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(606);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})});var c=t(607);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}})});var f=t(608);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return f[e]}})}),t(609),t(615)},394);
__d(function(e,n,t,r){function o(e,n){e.on(R.JitsiConferenceEvents.CONFERENCE_FAILED,function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return n(c.apply(void 0,[e].concat(r)))}),e.on(R.JitsiConferenceEvents.CONFERENCE_JOINED,function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return n(i.apply(void 0,[e].concat(r)))}),e.on(R.JitsiConferenceEvents.CONFERENCE_LEFT,function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return n(u.apply(void 0,[e].concat(r)))}),e.on(R.JitsiConferenceEvents.LOCK_STATE_CHANGED,function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return n(C.apply(void 0,[e].concat(r)))}),e.on(R.JitsiConferenceEvents.STARTED_MUTED,function(){n((0,D.setAudioMuted)(Boolean(e.startAudioMuted))),n((0,D.setVideoMuted)(Boolean(e.startVideoMuted)))}),e.on(R.JitsiConferenceEvents.TRACK_ADDED,function(e){return e&&!e.isLocal()&&n((0,L.trackAdded)(e))}),e.on(R.JitsiConferenceEvents.TRACK_REMOVED,function(e){return e&&!e.isLocal()&&n((0,L.trackRemoved)(e))}),e.on(R.JitsiConferenceEvents.DOMINANT_SPEAKER_CHANGED,function(){return n(T.dominantSpeakerChanged.apply(void 0,arguments))}),e.on(R.JitsiConferenceEvents.PARTICIPANT_CONN_STATUS_CHANGED,function(){return n(T.participantConnectionStatusChanged.apply(void 0,arguments))}),e.on(R.JitsiConferenceEvents.USER_JOINED,function(e,t){return n((0,T.participantJoined)({id:e,name:t.getDisplayName(),role:t.getRole()}))}),e.on(R.JitsiConferenceEvents.USER_LEFT,function(){return n(T.participantLeft.apply(void 0,arguments))}),e.on(R.JitsiConferenceEvents.USER_ROLE_CHANGED,function(){return n(T.participantRoleChanged.apply(void 0,arguments))}),e.addCommandListener(S.AVATAR_ID_COMMAND,function(e,t){return n((0,T.participantUpdated)({id:t,avatarID:e.value}))}),e.addCommandListener(S.AVATAR_URL_COMMAND,function(e,t){return n((0,T.participantUpdated)({id:t,avatarURL:e.value}))}),e.addCommandListener(S.EMAIL_COMMAND,function(e,t){return n((0,T.participantUpdated)({id:t,email:e.value}))})}function a(e,n){var t=(0,T.getLocalParticipant)(n),r=t.avatarID;e.removeCommand(S.AVATAR_ID_COMMAND),e.sendCommand(S.AVATAR_ID_COMMAND,{value:r})}function c(e,n){return{type:y.CONFERENCE_FAILED,conference:e,error:n}}function i(e){return{type:y.CONFERENCE_JOINED,conference:e}}function u(e){return{type:y.CONFERENCE_LEFT,conference:e}}function f(e){return function(n,t){var r=t()["features/base/tracks"].filter(function(e){return e.local}).map(function(e){return e.jitsiTrack});r.length&&(0,m._addLocalTracksToConference)(e,r),n({type:y.CONFERENCE_WILL_JOIN,conference:e})}}function s(e){return{type:y.CONFERENCE_WILL_LEAVE,conference:e}}function E(){return function(e,n){var t=n(),r=t["features/base/connection"],c=r.connection,i=r.locationURL;if(!c)throw new Error("Cannot create a conference without a connection!");var u=t["features/base/conference"],s=u.password,E=u.room;if(!E)throw new Error("Cannot join a conference without a room name!");var d=c.initJitsiConference(E.toLowerCase(),t["features/base/config"]);d[S.JITSI_CONFERENCE_URL_KEY]=i,e(f(d)),o(d,e),a(d,t),d.join(s)}}function d(){return{type:y.DATA_CHANNEL_OPENED}}function C(e,n){return{type:y.LOCK_STATE_CHANGED,conference:e,locked:n}}function p(e){return{type:y.P2P_STATUS_CHANGED,p2p:e}}function A(e){return{type:y.SET_AUDIO_ONLY,audioOnly:e}}function _(e){return function(n,t){if(void 0===e){var r=t()["features/base/config"];e=r.channelLastN,void 0===e&&(e=-1)}n({type:y.SET_LASTN,lastN:e})}}function l(e,n,t){return function(r,o){switch(n){case e.join:var a=o()["features/base/conference"];a.passwordRequired===e&&(r({type:y.SET_PASSWORD,conference:e,method:n,password:t}),a=o()["features/base/conference"],a.password!==t||a.passwordRequired||a.conference||n.call(e,t));break;case e.lock:return o()["features/base/conference"].conference===e?n.call(e,t).then(function(){return r({type:y.SET_PASSWORD,conference:e,method:n,password:t})}).catch(function(e){return r({type:y.SET_PASSWORD_FAILED,error:e})}):Promise.reject()}}}function v(e){return{type:y.SET_RECEIVE_VIDEO_QUALITY,receiveVideoQuality:e}}function N(e){return{type:y.SET_ROOM,room:e}}function O(){return function(e,n){return e(A(!n()["features/base/conference"].audioOnly))}}Object.defineProperty(r,"__esModule",{value:!0}),r.conferenceFailed=c,r.conferenceJoined=i,r.conferenceLeft=u,r.conferenceWillLeave=s,r.createConference=E,r.dataChannelOpened=d,r.lockStateChanged=C,r.p2pStatusChanged=p,r.setAudioOnly=A,r.setLastN=_,r.setPassword=l,r.setReceiveVideoQuality=v,r.setRoom=N,r.toggleAudioOnly=O;var R=n(396),D=n(579),T=n(502),L=n(592),y=n(606),S=n(607),m=n(608)},395);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.JitsiTrackEvents=r.JitsiTrackErrors=r.JitsiParticipantConnectionStatus=r.JitsiConnectionEvents=r.JitsiConnectionErrors=r.JitsiConferenceEvents=r.JitsiConferenceErrors=r.default=void 0;var i=t(397);Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}})});var o=t(455);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})});var c=t(456);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}})});var s=t(457);Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return s[e]}})});var a=t(398),u=babelHelpers.interopRequireDefault(a);t(495),t(605),r.default=u.default;r.JitsiConferenceErrors=u.default.errors.conference,r.JitsiConferenceEvents=u.default.events.conference,r.JitsiConnectionErrors=u.default.errors.connection,r.JitsiConnectionEvents=u.default.events.connection,r.JitsiParticipantConnectionStatus=u.default.constants.participantConnectionStatus,r.JitsiTrackErrors=u.default.errors.track,r.JitsiTrackEvents=u.default.events.track},396);
__d(function(e,t,n,i){function r(){return function(e){e({type:s.LIB_WILL_DISPOSE}),e({type:s.LIB_DID_DISPOSE})}}function o(){return function(e,t){var n=t()["features/base/config"];if(!n)throw new Error("Cannot init lib-jitsi-meet without config");return"undefined"!=typeof APP?Promise.resolve():(e({type:s.LIB_WILL_INIT}),a.default.init(n).then(function(){return e({type:s.LIB_DID_INIT})}).catch(function(t){throw e(u(t)),console.error("lib-jitsi-meet failed to init:",t),t}))}}function u(e){return{type:s.LIB_INIT_ERROR,error:e}}function f(e){return function(t,n){if(n()["features/base/lib-jitsi-meet"].webRTCReady!==e)switch(t({type:s.SET_WEBRTC_READY,webRTCReady:e}),typeof e){case"function":case"object":var i=e.then;if("function"==typeof i){var r=function(i){n()["features/base/lib-jitsi-meet"].webRTCReady===e&&t(f(i))};i.call(e,function(){return r(!0)},function(){return r(!1)})}}}}Object.defineProperty(i,"__esModule",{value:!0}),i.disposeLib=r,i.initLib=o,i.libInitError=u,i.setWebRTCReady=f;var c=t(398),a=babelHelpers.interopRequireDefault(c),s=t(455)},397);
__d(function(e,i,t,d){Object.defineProperty(d,"__esModule",{value:!0}),d.default=void 0,i(399);var o=i(450),u=babelHelpers.interopRequireDefault(o);!function(e){if(void 0===e.$){var t=i(451);t(e),e.$=t}void 0===e.Strophe&&(i(452),i(453),i(454))}(e||window||this),d.default=u.default},398);
__d(function(n,_,c,d){_(400),_(449)},399);
__d(function(e,t,r,n){function o(e,t){if(e===t)return e;var r=void 0;return(r=Object.getPrototypeOf(e))&&(r=o(t,r))?r:(r=Object.getPrototypeOf(t))&&(r=o(e,r))?r:void 0}function i(e,t){var r=null;return e&&a(e,function(e){return 1===e.nodeType&&e.nodeName===t&&(r=e,!0)}),r}function a(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(a(e,t))return!0}while(e=e.nextSibling);return!1}var u=t(401),d=babelHelpers.interopRequireDefault(u),f=t(421),l=babelHelpers.interopRequireDefault(f);t(422),function(e){var r=t(423).DOMParser;void 0===e.addEventListener&&(e.addEventListener=function(){});var n=Array.prototype;if(void 0===n["@@iterator"]&&(n["@@iterator"]=function(){return new d.default(this)}),void 0===e.document){var a=(new r).parseFromString("<html><head></head><body></body></html>","text/xml");void 0===a.addEventListener&&(a.addEventListener=function(){});var u=Object.getPrototypeOf(a);u&&void 0===u.querySelector&&(u.querySelector=function(e){return i(this.elementNode,e)});var f=Object.getPrototypeOf(a.documentElement);f&&(void 0===f.querySelector&&(f.querySelector=function(e){return i(this,e)}),f.hasOwnProperty("innerHTML")||Object.defineProperty(f,"innerHTML",{get:function(){return this.childNodes.toString()},set:function(e){this.textContent="";for(var t=(new r).parseFromString("<div>"+e+"</div>","text/xml"),n=t.documentElement,o=void 0;o=n.firstChild;)this.appendChild(o)}}));var s=o(u,f);if(s&&s!==Object.getPrototypeOf({})){var v=e.console;if(v){var c=t(426).levels;Object.keys(c).forEach(function(e){var t=c[e],r=v[t];"function"==typeof r&&(v[t]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var o=t.length,i=0;i<o;++i){var a=t[i];if(a&&"string"!=typeof a&&s.isPrototypeOf(a)){var u=a.toString;u&&(a=u.call(a))}t[i]=a}r.apply(this,t)})})}}e.document=a}void 0===e.location&&(e.location={href:"",search:""});var p=e.navigator;if(p&&(void 0===p.platform&&(p.platform=""),void 0===p.plugins&&(p.plugins=[]),function(){var e=t(429),r=e.name||"react-native",n=e.version;if(n&&(r+="/"+n),void 0!==p.userAgent){var o=p.userAgent.toString();o.length>0&&-1===o.indexOf(r)&&(r=o+" "+r)}p.userAgent=r}()),void 0===e.performance&&(e.performance={now:function(){return 0}}),void 0===e.sessionStorage&&(e.sessionStorage={getItem:function(){},removeItem:function(){},setItem:function(){}}),t(430),e.XMLHttpRequest){var m=e.XMLHttpRequest.prototype;m&&!m.hasOwnProperty("responseXML")&&Object.defineProperty(m,"responseXML",{get:function(){var e=this.responseText,t=void 0;return e&&(t=(new r).parseFromString(e,"text/xml")),t}})}e.clearTimeout=window.clearTimeout=l.default.clearTimeout.bind(l.default),e.clearInterval=window.clearInterval=l.default.clearInterval.bind(l.default),e.setInterval=window.setInterval=l.default.setInterval.bind(l.default),e.setTimeout=window.setTimeout=l.default.setTimeout.bind(l.default)}(e||window||this)},400);
__d(function(_,t,e,n){"use strict";var i,o=t(402),r=t(18),s=t(403),h=t(26),d=t(17),c=t(404),f=t(409),u=Object.defineProperty,l=Object.defineProperties;e.exports=i=function(_,t){if(!(this instanceof i))return new i(_,t);l(this,{__list__:d("w",h(_)),__context__:d("w",t),__nextIndex__:d("w",0)}),t&&(s(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))},l(i.prototype,r({constructor:d(i),_next:d(function(){var _;if(this.__list__)return this.__redo__&&void 0!==(_=this.__redo__.shift())?_:this.__nextIndex__<this.__list__.length?this.__nextIndex__++:void this._unBind()}),next:d(function(){return this._createResult(this._next())}),_createResult:d(function(_){return void 0===_?{done:!0,value:void 0}:{done:!1,value:this._resolve(_)}}),_resolve:d(function(_){return this.__list__[_]}),_unBind:d(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:d(function(){return"[object Iterator]"})},c({_onAdd:d(function(_){if(!(_>=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__)return void u(this,"__redo__",d("c",[_]));this.__redo__.forEach(function(t,e){t>=_&&(this.__redo__[e]=++t)},this),this.__redo__.push(_)}}),_onDelete:d(function(_){var t;_>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(_),-1!==t&&this.__redo__.splice(t,1),this.__redo__.forEach(function(t,e){t>_&&(this.__redo__[e]=--t)},this)))}),_onClear:d(function(){this.__redo__&&o.call(this.__redo__),this.__nextIndex__=0})}))),u(i.prototype,"function"==typeof f?f.iterator:"@@iterator",d(function(){return this})),u(i.prototype,"function"==typeof f?f.toStringTag:"@@toStringTag",d("","Iterator"))},401);
__d(function(t,n,i,r){"use strict";var s=n(26);i.exports=function(){return s(this).length=0,this}},402);
__d(function(n,t,o,r){"use strict";o.exports=function(n){if("function"!=typeof n)throw new TypeError(n+" is not a function");return n}},403);
__d(function(e,t,n,r){"use strict";var o,i=t(405),l=t(27),u=t(403),s=t(418),c=t(403),v=t(26),a=Function.prototype.bind,f=Object.defineProperty,p=Object.prototype.hasOwnProperty;o=function(e,t,n){var r,o=v(t)&&c(t.value);return r=i(t),delete r.writable,delete r.value,r.get=function(){return!n.overwriteDefinition&&p.call(this,e)?o:(t.value=a.call(o,n.resolveContext?n.resolveContext(this):this),f(this,e,t),this[e])},r},n.exports=function(e){var t=l(arguments[1]);return null!=t.resolveContext&&u(t.resolveContext),s(e,function(e,n){return o(n,e,t)})}},404);
__d(function(n,r,t,e){"use strict";var u=r(406),c=r(18),i=r(26);t.exports=function(n){var r=Object(i(n)),t=arguments[1],e=Object(arguments[2]);if(r!==n&&!t)return r;var f={};return t?u(t,function(r){(e.ensure||r in n)&&(f[r]=n[r])}):c(f,n),f}},405);
__d(function(r,t,o,s){"use strict";o.exports=t(407)()?Array.from:t(408)},406);
__d(function(r,n,o,t){"use strict";o.exports=function(){var r,n,o=Array.from;return"function"==typeof o&&(r=["raz","dwa"],n=o(r),Boolean(n&&n!==r&&"dwa"===n[1]))}},407);
__d(function(e,r,l,t){"use strict";var n=r(409).iterator,a=r(410),i=r(411),u=r(412),o=r(403),f=r(26),c=r(24),v=r(417),h=Array.isArray,s=Function.prototype.call,y={configurable:!0,enumerable:!0,writable:!0,value:null},A=Object.defineProperty;l.exports=function(e){var r,l,t,d,g,p,w,b,x,j,O=arguments[1],_=arguments[2];if(e=Object(f(e)),c(O)&&o(O),this&&this!==Array&&i(this))r=this;else{if(!O){if(a(e))return 1!==(g=e.length)?Array.apply(null,e):(d=new Array(1),d[0]=e[0],d);if(h(e)){for(d=new Array(g=e.length),l=0;l<g;++l)d[l]=e[l];return d}}d=[]}if(!h(e))if(void 0!==(x=e[n])){for(w=o(x).call(e),r&&(d=new r),b=w.next(),l=0;!b.done;)j=O?s.call(O,_,b.value,l):b.value,r?(y.value=j,A(d,l,y)):d[l]=j,b=w.next(),++l;g=l}else if(v(e)){for(g=e.length,r&&(d=new r),l=0,t=0;l<g;++l)j=e[l],l+1<g&&(p=j.charCodeAt(0))>=55296&&p<=56319&&(j+=e[++l]),j=O?s.call(O,_,j,t):j,r?(y.value=j,A(d,t,y)):d[t]=j,++t;g=t}if(void 0===g)for(g=u(e.length),r&&(d=new r(g)),l=0;l<g;++l)j=O?s.call(O,_,e[l],l):e[l],r?(y.value=j,A(d,l,y)):d[l]=j;return r&&(y.value=null,d.length=g),d}},408);
__d(function(t,o,s,c){"use strict";s.exports=o(14)()?Symbol:o(16)},409);
__d(function(t,n,r,c){"use strict";var o=Object.prototype.toString,e=o.call(function(){return arguments}());r.exports=function(t){return o.call(t)===e}},410);
__d(function(t,n,o,c){"use strict";var r=Object.prototype.toString,e=r.call(n(25));o.exports=function(t){return"function"==typeof t&&r.call(t)===e}},411);
__d(function(t,n,r,u){"use strict";var a=n(413),c=Math.max;r.exports=function(t){return c(0,a(t))}},412);
__d(function(t,i,r,n){"use strict";var s=i(414),a=Math.abs,e=Math.floor;r.exports=function(t){return isNaN(t)?0:(t=Number(t),0!==t&&isFinite(t)?s(t)*e(a(t)):t)}},413);
__d(function(t,s,i,n){"use strict";i.exports=s(415)()?Math.sign:s(416)},414);
__d(function(t,n,i,o){"use strict";i.exports=function(){var t=Math.sign;return"function"==typeof t&&(1===t(10)&&-1===t(-20))}},415);
__d(function(t,n,r,u){"use strict";r.exports=function(t){return t=Number(t),isNaN(t)||0===t?t:t>0?1:-1}},416);
__d(function(t,n,o,e){"use strict";var r=Object.prototype.toString,c=r.call("");o.exports=function(t){return"string"==typeof t||t&&"object"==typeof t&&(t instanceof String||r.call(t)===c)||!1}},417);
__d(function(t,n,c,o){"use strict";var r=n(403),u=n(419),i=Function.prototype.call;c.exports=function(t,n){var c={},o=arguments[2];return r(n),u(t,function(t,r,u,a){c[r]=i.call(n,o,t,r,u,a)}),c}},418);
__d(function(t,c,o,r){"use strict";o.exports=c(420)("forEach")},419);
__d(function(t,n,o,c){"use strict";var e=n(403),r=n(26),u=Function.prototype.bind,i=Function.prototype.call,l=Object.keys,p=Object.prototype.propertyIsEnumerable;o.exports=function(t,n){return function(o,c){var a,f=arguments[2],y=arguments[3];return o=Object(r(o)),e(c),a=l(o),y&&a.sort("function"==typeof y?u.call(y,o):void 0),"function"!=typeof t&&(t=a[t]),i.call(t,a,function(t,e){return p.call(o,t)?i.call(c,f,o[t],t,o,e):n})}}},420);
__d(function(e,t,a,l){Object.defineProperty(l,"__esModule",{value:!0});var c=t(64),i=c.NativeModules.RNBackgroundTimer,s=new c.NativeEventEmitter(i),u=function(){function e(){var t=this;babelHelpers.classCallCheck(this,e),this.uniqueId=0,this.callbacks={},s.addListener("backgroundTimer.timeout",function(e){if(t.callbacks[e]){var a=t.callbacks[e].callback;t.callbacks[e].interval?i.setTimeout(e,t.callbacks[e].timeout):delete t.callbacks[e],a()}})}return babelHelpers.createClass(e,[{key:"start",value:function(e){return i.start(e)}},{key:"stop",value:function(){return i.stop()}},{key:"setTimeout",value:function(e,t){var a=++this.uniqueId;return this.callbacks[a]={callback:e,interval:!1,timeout:t},i.setTimeout(a,t),a}},{key:"clearTimeout",value:function(e){this.callbacks[e]&&delete this.callbacks[e]}},{key:"setInterval",value:function(e,t){var a=++this.uniqueId;return this.callbacks[a]={callback:e,interval:!0,timeout:t},i.setTimeout(a,t),a}},{key:"clearInterval",value:function(e){this.callbacks[e]&&delete this.callbacks[e]}}]),e}();l.default=new u},421);
__d(function(t,e,s,i){!function(t){"use strict";function e(t){return void 0!==_[t]}function s(){n.call(this),this._isInvalid=!0}function i(t){return""==t&&s.call(this),t.toLowerCase()}function a(t){var e=t.charCodeAt(0);return e>32&&e<127&&-1==[34,35,60,62,63,96].indexOf(e)?t:encodeURIComponent(t)}function h(t){var e=t.charCodeAt(0);return e>32&&e<127&&-1==[34,35,60,62,96].indexOf(e)?t:encodeURIComponent(t)}function r(t,r,n){function o(t){g.push(t)}var c=r||"scheme start",l=0,m="",d=!1,b=!1,g=[];t:for(;(t[l-1]!=f||0==l)&&!this._isInvalid;){var j=t[l];switch(c){case"scheme start":if(!j||!p.test(j)){if(r){o("Invalid scheme.");break t}m="",c="no scheme";continue}m+=j.toLowerCase(),c="scheme";break;case"scheme":if(j&&v.test(j))m+=j.toLowerCase();else{if(":"!=j){if(r){if(f==j)break t;o("Code point not allowed in scheme: "+j);break t}m="",l=0,c="no scheme";continue}if(this._scheme=m,m="",r)break t;e(this._scheme)&&(this._isRelative=!0),c="file"==this._scheme?"relative":this._isRelative&&n&&n._scheme==this._scheme?"relative or authority":this._isRelative?"authority first slash":"scheme data"}break;case"scheme data":"?"==j?(query="?",c="query"):"#"==j?(this._fragment="#",c="fragment"):f!=j&&"\t"!=j&&"\n"!=j&&"\r"!=j&&(this._schemeData+=a(j));break;case"no scheme":if(n&&e(n._scheme)){c="relative";continue}o("Missing scheme."),s.call(this);break;case"relative or authority":if("/"!=j||"/"!=t[l+1]){o("Expected /, got: "+j),c="relative";continue}c="authority ignore slashes";break;case"relative":if(this._isRelative=!0,"file"!=this._scheme&&(this._scheme=n._scheme),f==j){this._host=n._host,this._port=n._port,this._path=n._path.slice(),this._query=n._query,this._username=n._username,this._password=n._password;break t}if("/"==j||"\\"==j)"\\"==j&&o("\\ is an invalid code point."),c="relative slash";else if("?"==j)this._host=n._host,this._port=n._port,this._path=n._path.slice(),this._query="?",this._username=n._username,this._password=n._password,c="query";else{if("#"!=j){var y=t[l+1],w=t[l+2];("file"!=this._scheme||!p.test(j)||":"!=y&&"|"!=y||f!=w&&"/"!=w&&"\\"!=w&&"?"!=w&&"#"!=w)&&(this._host=n._host,this._port=n._port,this._username=n._username,this._password=n._password,this._path=n._path.slice(),this._path.pop()),c="relative path";continue}this._host=n._host,this._port=n._port,this._path=n._path.slice(),this._query=n._query,this._fragment="#",this._username=n._username,this._password=n._password,c="fragment"}break;case"relative slash":if("/"!=j&&"\\"!=j){"file"!=this._scheme&&(this._host=n._host,this._port=n._port,this._username=n._username,this._password=n._password),c="relative path";continue}"\\"==j&&o("\\ is an invalid code point."),c="file"==this._scheme?"file host":"authority ignore slashes";break;case"authority first slash":if("/"!=j){o("Expected '/', got: "+j),c="authority ignore slashes";continue}c="authority second slash";break;case"authority second slash":if(c="authority ignore slashes","/"!=j){o("Expected '/', got: "+j);continue}break;case"authority ignore slashes":if("/"!=j&&"\\"!=j){c="authority";continue}o("Expected authority, got: "+j);break;case"authority":if("@"==j){d&&(o("@ already seen."),m+="%40"),d=!0;for(var k=0;k<m.length;k++){var O=m[k];if("\t"!=O&&"\n"!=O&&"\r"!=O)if(":"!=O||null!==this._password){var I=a(O);null!==this._password?this._password+=I:this._username+=I}else this._password="";else o("Invalid whitespace in authority.")}m=""}else{if(f==j||"/"==j||"\\"==j||"?"==j||"#"==j){l-=m.length,m="",c="host";continue}m+=j}break;case"file host":if(f==j||"/"==j||"\\"==j||"?"==j||"#"==j){2!=m.length||!p.test(m[0])||":"!=m[1]&&"|"!=m[1]?0==m.length?c="relative path start":(this._host=i.call(this,m),m="",c="relative path start"):c="relative path";continue}"\t"==j||"\n"==j||"\r"==j?o("Invalid whitespace in file host."):m+=j;break;case"host":case"hostname":if(":"!=j||b){if(f==j||"/"==j||"\\"==j||"?"==j||"#"==j){if(this._host=i.call(this,m),m="",c="relative path start",r)break t;continue}"\t"!=j&&"\n"!=j&&"\r"!=j?("["==j?b=!0:"]"==j&&(b=!1),m+=j):o("Invalid code point in host/hostname: "+j)}else if(this._host=i.call(this,m),m="",c="port","hostname"==r)break t;break;case"port":if(/[0-9]/.test(j))m+=j;else{if(f==j||"/"==j||"\\"==j||"?"==j||"#"==j||r){if(""!=m){var R=parseInt(m,10);R!=_[this._scheme]&&(this._port=R+""),m=""}if(r)break t;c="relative path start";continue}"\t"==j||"\n"==j||"\r"==j?o("Invalid code point in port: "+j):s.call(this)}break;case"relative path start":if("\\"==j&&o("'\\' not allowed in path."),c="relative path","/"!=j&&"\\"!=j)continue;break;case"relative path":if(f!=j&&"/"!=j&&"\\"!=j&&(r||"?"!=j&&"#"!=j))"\t"!=j&&"\n"!=j&&"\r"!=j&&(m+=a(j));else{"\\"==j&&o("\\ not allowed in relative path.");var q;(q=u[m.toLowerCase()])&&(m=q),".."==m?(this._path.pop(),"/"!=j&&"\\"!=j&&this._path.push("")):"."==m&&"/"!=j&&"\\"!=j?this._path.push(""):"."!=m&&("file"==this._scheme&&0==this._path.length&&2==m.length&&p.test(m[0])&&"|"==m[1]&&(m=m[0]+":"),this._path.push(m)),m="","?"==j?(this._query="?",c="query"):"#"==j&&(this._fragment="#",c="fragment")}break;case"query":r||"#"!=j?f!=j&&"\t"!=j&&"\n"!=j&&"\r"!=j&&(this._query+=h(j)):(this._fragment="#",c="fragment");break;case"fragment":f!=j&&"\t"!=j&&"\n"!=j&&"\r"!=j&&(this._fragment+=j)}l++}}function n(){this._scheme="",this._schemeData="",this._username="",this._password=null,this._host="",this._port="",this._path=[],this._query="",this._fragment="",this._isInvalid=!1,this._isRelative=!1}function o(t,e){void 0===e||e instanceof o||(e=new o(String(e))),t=String(t),this._url=t,n.call(this);var s=t.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,"");r.call(this,s,null,e)}var c=!1;if(!t.forceJURL)try{var l=new URL("b","http://a");l.pathname="c%20d",c="http://a/c%20d"===l.href}catch(t){}if(!c){var _=Object.create(null);_.ftp=21,_.file=0,_.gopher=70,_.http=80,_.https=443,_.ws=80,_.wss=443;var u=Object.create(null);u["%2e"]=".",u[".%2e"]="..",u["%2e."]="..",u["%2e%2e"]="..";var f=void 0,p=/[a-zA-Z]/,v=/[a-zA-Z0-9\+\-\.]/;o.prototype={toString:function(){return this.href},get href(){if(this._isInvalid)return this._url;var t="";return""==this._username&&null==this._password||(t=this._username+(null!=this._password?":"+this._password:"")+"@"),this.protocol+(this._isRelative?"//"+t+this.host:"")+this.pathname+this._query+this._fragment},set href(t){n.call(this),r.call(this,t)},get protocol(){return this._scheme+":"},set protocol(t){this._isInvalid||r.call(this,t+":","scheme start")},get host(){return this._isInvalid?"":this._port?this._host+":"+this._port:this._host},set host(t){!this._isInvalid&&this._isRelative&&r.call(this,t,"host")},get hostname(){return this._host},set hostname(t){!this._isInvalid&&this._isRelative&&r.call(this,t,"hostname")},get port(){return this._port},set port(t){!this._isInvalid&&this._isRelative&&r.call(this,t,"port")},get pathname(){return this._isInvalid?"":this._isRelative?"/"+this._path.join("/"):this._schemeData},set pathname(t){!this._isInvalid&&this._isRelative&&(this._path=[],r.call(this,t,"relative path start"))},get search(){return this._isInvalid||!this._query||"?"==this._query?"":this._query},set search(t){!this._isInvalid&&this._isRelative&&(this._query="?","?"==t[0]&&(t=t.slice(1)),r.call(this,t,"query"))},get hash(){return this._isInvalid||!this._fragment||"#"==this._fragment?"":this._fragment},set hash(t){this._isInvalid||(this._fragment="#","#"==t[0]&&(t=t.slice(1)),r.call(this,t,"fragment"))},get origin(){var t;if(this._isInvalid||!this._scheme)return"";switch(this._scheme){case"data":case"file":case"javascript":case"mailto":return"null"}return t=this.host,t?this._scheme+"://"+t:""}};var m=t.URL;m&&(o.createObjectURL=function(t){return m.createObjectURL.apply(m,arguments)},o.revokeObjectURL=function(t){m.revokeObjectURL(t)}),t.URL=o}}(this)},422);
__d(function(t,e,n,r){function o(t){this.options=t||{locator:{}}}function i(t,e,n){function r(e){var r=t[e];!r&&i&&(r=2==t.length?function(n){t(e,n)}:t),o[e]=r&&function(t){r("[xmldom "+e+"]\t"+t+l(n))}||function(){}}if(!t){if(e instanceof c)return e;t=e}var o={},i=t instanceof Function;return n=n||{},r("warning"),r("error"),r("fatalError"),o}function c(){this.cdata=!1}function a(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}function l(t){if(t)return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function s(t,e,n){return"string"==typeof t?t.substr(e,n):t.length>=e+n||e?new java.lang.String(t,e,n)+"":t}function u(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}o.prototype.parseFromString=function(t,e){var n=this.options,r=new m,o=n.domBuilder||new c,a=n.errorHandler,l=n.locator,s=n.xmlns||{},u={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return l&&o.setDocumentLocator(l),r.errorHandler=i(a,o,l),r.domBuilder=n.domBuilder||o,/\/x?html?$/.test(e)&&(u.nbsp="\xa0",u.copy="\xa9",s[""]="http://www.w3.org/1999/xhtml"),s.xml=s.xml||"http://www.w3.org/XML/1998/namespace",t?r.parse(t,s,u):r.errorHandler.error("invalid doc source"),o.doc},c.prototype={startDocument:function(){this.doc=(new h).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,n,r){var o=this.doc,i=o.createElementNS(t,n||e),c=r.length;u(this,i),this.currentElement=i,this.locator&&a(this.locator,i);for(var l=0;l<c;l++){var t=r.getURI(l),s=r.getValue(l),n=r.getQName(l),m=o.createAttributeNS(t,n);this.locator&&a(r.getLocator(l),m),m.value=m.nodeValue=s,i.setAttributeNode(m)}},endElement:function(t,e,n){var r=this.currentElement;r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var n=this.doc.createProcessingInstruction(t,e);this.locator&&a(this.locator,n),u(this,n)},ignorableWhitespace:function(t,e,n){},characters:function(t,e,n){if(t=s.apply(this,arguments)){if(this.cdata)var r=this.doc.createCDATASection(t);else var r=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(t)&&this.doc.appendChild(r),this.locator&&a(this.locator,r)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,n){t=s.apply(this,arguments);var r=this.doc.createComment(t);this.locator&&a(this.locator,r),u(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var o=r.createDocumentType(t,e,n);this.locator&&a(this.locator,o),u(this,o)}},warning:function(t){console.warn("[xmldom warning]\t"+t,l(this.locator))},error:function(t){console.error("[xmldom error]\t"+t,l(this.locator))},fatalError:function(t){throw console.error("[xmldom fatalError]\t"+t,l(this.locator)),t}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){c.prototype[t]=function(){return null}});var m=e(424).XMLReader,h=r.DOMImplementation=e(425).DOMImplementation;r.XMLSerializer=e(425).XMLSerializer,r.DOMParser=o},423);
__d(function(e,r,t,a){function n(){}function s(e,r,t,a,n){function s(e){if(e>65535){e-=65536;var r=55296+(e>>10),t=56320+(1023&e);return String.fromCharCode(r,t)}return String.fromCharCode(e)}function f(e){var r=e.slice(1,-1);return r in t?t[r]:"#"===r.charAt(0)?s(parseInt(r.substr(1).replace("x","0x"))):(n.error("entity not found:"+e),e)}function g(r){if(r>D){var t=e.substring(D,r).replace(/&#?\w+;/g,f);x&&p(D),a.characters(t,0,r-D),D=r}}function p(r,t){for(;r>=b&&(t=v.exec(e));)w=t.index,b=w+t[0].length,x.lineNumber++;x.columnNumber=r-w+1}for(var w=0,b=0,v=/.*(?:\r\n?|\n)|.*$/g,x=a.locator,N=[{currentNSMap:r}],F={},D=0;;){try{var k=e.indexOf("<",D);if(k<0){if(!e.substr(D).match(/^\s*$/)){var E=a.doc,C=E.createTextNode(e.substr(D));E.appendChild(C),a.currentElement=C}return}switch(k>D&&g(k),e.charAt(k+1)){case"/":var $=e.indexOf(">",k+3),A=e.substring(k+2,$),M=N.pop();$<0?(A=e.substring(k+2).replace(/[\s<].*/,""),n.error("end tag name: "+A+" is not complete:"+M.tagName),$=k+1+A.length):A.match(/\s</)&&(A=A.replace(/[\s<].*/,""),n.error("end tag name: "+A+" maybe not complete"),$=k+1+A.length);var O=M.localNSMap,T=M.tagName==A;if(T||M.tagName&&M.tagName.toLowerCase()==A.toLowerCase()){if(a.endElement(M.uri,M.localName,A),O)for(var S in O)a.endPrefixMapping(S);T||n.fatalError("end tag name: "+A+" is not match the current start tagName:"+M.tagName)}else N.push(M);$++;break;case"?":x&&p(k),$=m(e,k,a);break;case"!":x&&p(k),$=d(e,k,a,n);break;default:x&&p(k);var q=new h,y=N[N.length-1].currentNSMap,$=i(e,k,q,y,f,n),_=q.length;if(!q.closed&&l(e,$,q.tagName,F)&&(q.closed=!0,t.nbsp||n.warning("unclosed xml attribute")),x&&_){for(var I=c(x,{}),L=0;L<_;L++){var R=q[L];p(R.offset),R.locator=c(x,{})}a.locator=I,u(q,a,y)&&N.push(q),a.locator=x}else u(q,a,y)&&N.push(q);"http://www.w3.org/1999/xhtml"!==q.uri||q.closed?$++:$=o(e,$,q.tagName,f,a)}}catch(e){n.error("element parse error: "+e),$=-1}$>D?D=$:g(Math.max(k,D)+1)}}function c(e,r){return r.lineNumber=e.lineNumber,r.columnNumber=e.columnNumber,r}function i(e,r,t,a,n,s){for(var c,i,u=++r,o=x;;){var l=e.charAt(u);switch(l){case"=":if(o===N)c=e.slice(r,u),o=D;else{if(o!==F)throw new Error("attribute equal must after attrName");o=D}break;case"'":case'"':if(o===D||o===N){if(o===N&&(s.warning('attribute value must after "="'),c=e.slice(r,u)),r=u+1,!((u=e.indexOf(l,r))>0))throw new Error("attribute value no end '"+l+"' match");i=e.slice(r,u).replace(/&#?\w+;/g,n),t.add(c,i,r-1),o=E}else{if(o!=k)throw new Error('attribute value must after "="');i=e.slice(r,u).replace(/&#?\w+;/g,n),t.add(c,i,r),s.warning('attribute "'+c+'" missed start quot('+l+")!!"),r=u+1,o=E}break;case"/":switch(o){case x:t.setTagName(e.slice(r,u));case E:case C:case $:o=$,t.closed=!0;case k:case N:case F:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return s.error("unexpected end of input"),o==x&&t.setTagName(e.slice(r,u)),u;case">":switch(o){case x:t.setTagName(e.slice(r,u));case E:case C:case $:break;case k:case N:i=e.slice(r,u),"/"===i.slice(-1)&&(t.closed=!0,i=i.slice(0,-1));case F:o===F&&(i=c),o==k?(s.warning('attribute "'+i+'" missed quot(")!!'),t.add(c,i.replace(/&#?\w+;/g,n),r)):("http://www.w3.org/1999/xhtml"===a[""]&&i.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+i+'" missed value!! "'+i+'" instead!!'),t.add(i,i,r));break;case D:throw new Error("attribute value missed!!")}return u;case"\x80":l=" ";default:if(l<=" ")switch(o){case x:t.setTagName(e.slice(r,u)),o=C;break;case N:c=e.slice(r,u),o=F;break;case k:var i=e.slice(r,u).replace(/&#?\w+;/g,n);s.warning('attribute "'+i+'" missed quot(")!!'),t.add(c,i,r);case E:o=C}else switch(o){case F:t.tagName;"http://www.w3.org/1999/xhtml"===a[""]&&c.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+c+'" missed value!! "'+c+'" instead2!!'),t.add(c,c,r),r=u,o=N;break;case E:s.warning('attribute space is required"'+c+'"!!');case C:o=N,r=u;break;case D:o=k,r=u;break;case $:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function u(e,r,t){for(var a=e.tagName,n=null,s=e.length;s--;){var c=e[s],i=c.qName,u=c.value,o=i.indexOf(":");if(o>0)var l=c.prefix=i.slice(0,o),d=i.slice(o+1),m="xmlns"===l&&d;else d=i,l=null,m="xmlns"===i&&"";c.localName=d,!1!==m&&(null==n&&(n={},f(t,t={})),t[m]=n[m]=u,c.uri="http://www.w3.org/2000/xmlns/",r.startPrefixMapping(m,u))}for(var s=e.length;s--;){c=e[s];var l=c.prefix;l&&("xml"===l&&(c.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==l&&(c.uri=t[l||""]))}var o=a.indexOf(":");o>0?(l=e.prefix=a.slice(0,o),d=e.localName=a.slice(o+1)):(l=null,d=e.localName=a);var h=e.uri=t[l||""];if(r.startElement(h,d,a,e),!e.closed)return e.currentNSMap=t,e.localNSMap=n,!0;if(r.endElement(h,d,a),n)for(l in n)r.endPrefixMapping(l)}function o(e,r,t,a,n){if(/^(?:script|textarea)$/i.test(t)){var s=e.indexOf("</"+t+">",r),c=e.substring(r+1,s);if(/[&<]/.test(c))return/^script$/i.test(t)?(n.characters(c,0,c.length),s):(c=c.replace(/&#?\w+;/g,a),n.characters(c,0,c.length),s)}return r+1}function l(e,r,t,a){var n=a[t];return null==n&&(n=e.lastIndexOf("</"+t+">"),n<r&&(n=e.lastIndexOf("</"+t)),a[t]=n),n<r}function f(e,r){for(var t in e)r[t]=e[t]}function d(e,r,t,a){switch(e.charAt(r+2)){case"-":if("-"===e.charAt(r+3)){var n=e.indexOf("--\x3e",r+4);return n>r?(t.comment(e,r+4,n-r-4),n+3):(a.error("Unclosed comment"),-1)}return-1;default:if("CDATA["==e.substr(r+3,6)){var n=e.indexOf("]]>",r+9);return t.startCDATA(),t.characters(e,r+9,n-r-9),t.endCDATA(),n+3}var s=p(e,r),c=s.length;if(c>1&&/!doctype/i.test(s[0][0])){var i=s[1][0],u=c>3&&/^public$/i.test(s[2][0])&&s[3][0],o=c>4&&s[4][0],l=s[c-1];return t.startDTD(i,u&&u.replace(/^(['"])(.*?)\1$/,"$2"),o&&o.replace(/^(['"])(.*?)\1$/,"$2")),t.endDTD(),l.index+l[0].length}}return-1}function m(e,r,t){var a=e.indexOf("?>",r);if(a){var n=e.substring(r,a).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(n){n[0].length;return t.processingInstruction(n[1],n[2]),a+2}return-1}return-1}function h(e){}function g(e,r){return e.__proto__=r,e}function p(e,r){var t,a=[],n=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(n.lastIndex=r,n.exec(e);t=n.exec(e);)if(a.push(t),t[1])return a}var w=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,b=new RegExp("[\\-\\.0-9"+w.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),v=new RegExp("^"+w.source+b.source+"*(?::"+w.source+b.source+"*)?$"),x=0,N=1,F=2,D=3,k=4,E=5,C=6,$=7;n.prototype={parse:function(e,r,t){var a=this.domBuilder;a.startDocument(),f(r,r={}),s(e,r,t,a,this.errorHandler),a.endDocument()}},h.prototype={setTagName:function(e){if(!v.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},add:function(e,r,t){if(!v.test(e))throw new Error("invalid attribute:"+e);this[this.length++]={qName:e,value:r,offset:t}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},g({},g.prototype)instanceof g||(g=function(e,r){function t(){}t.prototype=r,t=new t;for(r in e)t[r]=e[r];return t}),a.XMLReader=n},424);
__d(function(e,t,n,r){function i(e,t){for(var n in e)t[n]=e[n]}function o(e,t){function n(){}var r=e.prototype;if(Object.create){var o=Object.create(t.prototype);r.__proto__=o}r instanceof t||(n.prototype=t.prototype,n=new n,i(r,n),e.prototype=r=n),r.constructor!=e&&("function"!=typeof e&&console.error("unknow Class:"+e),r.constructor=e)}function a(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,ae[e]),this.message=ae[e],Error.captureStackTrace&&Error.captureStackTrace(this,a);return n.code=e,t&&(this.message=this.message+": "+t),n}function u(){}function s(e,t){this._node=e,this._refresh=t,l(this)}function l(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);z(e,"length",n.length),i(n,e),e._inc=t}}function c(){}function h(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function p(e,t,n,r){if(r?t[h(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&E(i,e,r),w(i,e,n))}}function d(e,t,n){var r=h(t,n);if(!(r>=0))throw a(se,new Error(e.tagName+"@"+n));for(var i=t.length-1;r<i;)t[r]=t[++r];if(t.length=i,e){var o=e.ownerDocument;o&&(E(o,e,n),n.ownerElement=null)}}function f(e){if(this._features={},e)for(var t in e)this._features=e[t]}function m(){}function N(e){return"<"==e&&"&lt;"||">"==e&&"&gt;"||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function v(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(v(e,t))return!0}while(e=e.nextSibling)}function g(){}function w(e,t,n){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&(t._nsMap[n.prefix?n.localName:""]=n.value)}function E(e,t,n,r){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete t._nsMap[n.prefix?n.localName:""]}function y(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var i=t.firstChild,o=0;i;)r[o++]=i,i=i.nextSibling;r.length=o}}}function b(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,y(e.ownerDocument,e),t}function T(e,t,n){var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===re){var i=t.firstChild;if(null==i)return t;var o=t.lastChild}else i=o=t;var a=n?n.previousSibling:e.lastChild;i.previousSibling=a,o.nextSibling=n,a?a.nextSibling=i:e.firstChild=i,null==n?e.lastChild=o:n.previousSibling=o;do{i.parentNode=e}while(i!==o&&(i=i.nextSibling));return y(e.ownerDocument||e,e),t.nodeType==re&&(t.firstChild=t.lastChild=null),t}function _(e,t){var n=t.parentNode;if(n){var r=e.lastChild;n.removeChild(t);var r=e.lastChild}var r=e.lastChild;return t.parentNode=e,t.previousSibling=r,t.nextSibling=null,r?r.nextSibling=t:e.firstChild=t,e.lastChild=t,y(e.ownerDocument,e,t),t}function D(){this._nsMap={}}function S(){}function C(){}function I(){}function A(){}function R(){}function x(){}function O(){}function U(){}function M(){}function B(){}function P(){}function L(){}function V(e,t){var n=[],r=9==this.nodeType?this.documentElement:this,i=r.prefix,o=r.namespaceURI;if(o&&null==i){var i=r.lookupPrefix(o);if(null==i)var a=[{namespace:o,prefix:null}]}return j(this,n,e,t,a),n.join("")}function k(e,t,n){var r=e.prefix||"",i=e.namespaceURI;if(!r&&!i)return!1;if("xml"===r&&"http://www.w3.org/XML/1998/namespace"===i||"http://www.w3.org/2000/xmlns/"==i)return!1;for(var o=n.length;o--;){var a=n[o];if(a.prefix==r)return a.namespace!=i}return!0}function j(e,t,n,r,i){if(r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case H:i||(i=[]);var o=(i.length,e.attributes),a=o.length,u=e.firstChild,s=e.tagName;n=X===e.namespaceURI||n,t.push("<",s);for(var l=0;l<a;l++){var c=o.item(l);"xmlns"==c.prefix?i.push({prefix:c.localName,namespace:c.value}):"xmlns"==c.nodeName&&i.push({prefix:"",namespace:c.value})}for(var l=0;l<a;l++){var c=o.item(l);if(k(c,n,i)){var h=c.prefix||"",p=c.namespaceURI,d=h?" xmlns:"+h:" xmlns";t.push(d,'="',p,'"'),i.push({prefix:h,namespace:p})}j(c,t,n,r,i)}if(k(e,n,i)){var h=e.prefix||"",p=e.namespaceURI,d=h?" xmlns:"+h:" xmlns";t.push(d,'="',p,'"'),i.push({prefix:h,namespace:p})}if(u||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(s)){if(t.push(">"),n&&/^script$/i.test(s))for(;u;)u.data?t.push(u.data):j(u,t,n,r,i),u=u.nextSibling;else for(;u;)j(u,t,n,r,i),u=u.nextSibling;t.push("</",s,">")}else t.push("/>");return;case te:case re:for(var u=e.firstChild;u;)j(u,t,n,r,i),u=u.nextSibling;return;case W:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,N),'"');case q:return t.push(e.data.replace(/[<&]/g,N));case Z:return t.push("<![CDATA[",e.data,"]]>");case ee:return t.push("\x3c!--",e.data,"--\x3e");case ne:var f=e.publicId,m=e.systemId;if(t.push("<!DOCTYPE ",e.name),f)t.push(' PUBLIC "',f),m&&"."!=m&&t.push('" "',m),t.push('">');else if(m&&"."!=m)t.push(' SYSTEM "',m,'">');else{var v=e.internalSubset;v&&t.push(" [",v,"]"),t.push(">")}return;case K:return t.push("<?",e.target," ",e.data,"?>");case Q:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function F(e,t,n){var r;switch(t.nodeType){case H:r=t.cloneNode(!1),r.ownerDocument=e;case re:break;case W:n=!0}if(r||(r=t.cloneNode(!1)),r.ownerDocument=e,r.parentNode=null,n)for(var i=t.firstChild;i;)r.appendChild(F(e,i,n)),i=i.nextSibling;return r}function Y(e,t,n){var r=new t.constructor;for(var i in t){var o=t[i];"object"!=typeof o&&o!=r[i]&&(r[i]=o)}switch(t.childNodes&&(r.childNodes=new u),r.ownerDocument=e,r.nodeType){case H:var a=t.attributes,s=r.attributes=new c,l=a.length;s._ownerElement=r;for(var h=0;h<l;h++)r.setAttributeNode(Y(e,a.item(h),!0));break;case W:n=!0}if(n)for(var p=t.firstChild;p;)r.appendChild(Y(e,p,n)),p=p.nextSibling;return r}function z(e,t,n){e[t]=n}function $(e){switch(e.nodeType){case H:case re:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push($(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}var X="http://www.w3.org/1999/xhtml",G={},H=G.ELEMENT_NODE=1,W=G.ATTRIBUTE_NODE=2,q=G.TEXT_NODE=3,Z=G.CDATA_SECTION_NODE=4,Q=G.ENTITY_REFERENCE_NODE=5,J=G.ENTITY_NODE=6,K=G.PROCESSING_INSTRUCTION_NODE=7,ee=G.COMMENT_NODE=8,te=G.DOCUMENT_NODE=9,ne=G.DOCUMENT_TYPE_NODE=10,re=G.DOCUMENT_FRAGMENT_NODE=11,ie=G.NOTATION_NODE=12,oe={},ae={},ue=(oe.INDEX_SIZE_ERR=(ae[1]="Index size error",1),oe.DOMSTRING_SIZE_ERR=(ae[2]="DOMString size error",2),oe.HIERARCHY_REQUEST_ERR=(ae[3]="Hierarchy request error",3)),se=(oe.WRONG_DOCUMENT_ERR=(ae[4]="Wrong document",4),oe.INVALID_CHARACTER_ERR=(ae[5]="Invalid character",5),oe.NO_DATA_ALLOWED_ERR=(ae[6]="No data allowed",6),oe.NO_MODIFICATION_ALLOWED_ERR=(ae[7]="No modification allowed",7),oe.NOT_FOUND_ERR=(ae[8]="Not found",8)),le=(oe.NOT_SUPPORTED_ERR=(ae[9]="Not supported",9),oe.INUSE_ATTRIBUTE_ERR=(ae[10]="Attribute in use",10));oe.INVALID_STATE_ERR=(ae[11]="Invalid state",11),oe.SYNTAX_ERR=(ae[12]="Syntax error",12),oe.INVALID_MODIFICATION_ERR=(ae[13]="Invalid modification",13),oe.NAMESPACE_ERR=(ae[14]="Invalid namespace",14),oe.INVALID_ACCESS_ERR=(ae[15]="Invalid access",15);a.prototype=Error.prototype,i(oe,a),u.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],r=0;r<this.length;r++)j(this[r],n,e,t);return n.join("")}},s.prototype.item=function(e){return l(this),this[e]},o(s,u),c.prototype={length:0,item:u.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new a(le);var n=this.getNamedItem(e.nodeName);return p(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new a(le);return t=this.getNamedItemNS(e.namespaceURI,e.localName),p(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return d(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return d(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}},f.prototype={hasFeature:function(e,t){var n=this._features[e.toLowerCase()];return!(!n||t&&!(t in n))},createDocument:function(e,t,n){var r=new g;if(r.implementation=this,r.childNodes=new u,r.doctype=n,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new x;return r.name=e,r.nodeName=e,r.publicId=t,r.systemId=n,r}},m.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return T(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return b(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return Y(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==q&&e.nodeType==q?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var r in n)if(n[r]==e)return r;t=t.nodeType==W?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==W?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},i(G,m),i(G,m.prototype),g.prototype={nodeName:"#document",nodeType:te,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==re){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return null==this.documentElement&&e.nodeType==H&&(this.documentElement=e),T(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),b(this,e)},importNode:function(e,t){return F(this,e,t)},getElementById:function(e){var t=null;return v(this.documentElement,function(n){if(n.nodeType==H&&n.getAttribute("id")==e)return t=n,!0}),t},createElement:function(e){var t=new D;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new u,(t.attributes=new c)._ownerElement=t,t},createDocumentFragment:function(){var e=new B;return e.ownerDocument=this,e.childNodes=new u,e},createTextNode:function(e){var t=new I;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new A;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new R;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new P;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new S;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new M;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new D,r=t.split(":"),i=n.attributes=new c;return n.childNodes=new u,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new S,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},o(g,m),D.prototype={nodeType:H,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===re?this.insertBefore(e,null):_(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new s(this,function(t){var n=[];return v(t,function(r){r===t||r.nodeType!=H||"*"!==e&&r.tagName!=e||n.push(r)}),n})},getElementsByTagNameNS:function(e,t){return new s(this,function(n){var r=[];return v(n,function(i){i===n||i.nodeType!==H||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||r.push(i)}),r})}},g.prototype.getElementsByTagName=D.prototype.getElementsByTagName,g.prototype.getElementsByTagNameNS=D.prototype.getElementsByTagNameNS,o(D,m),S.prototype.nodeType=W,o(S,m),C.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(ae[ue])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},o(C,m),I.prototype={nodeName:"#text",nodeType:q,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},o(I,C),A.prototype={nodeName:"#comment",nodeType:ee},o(A,C),R.prototype={nodeName:"#cdata-section",nodeType:Z},o(R,C),x.prototype.nodeType=ne,o(x,m),O.prototype.nodeType=ie,o(O,m),U.prototype.nodeType=J,o(U,m),M.prototype.nodeType=Q,o(M,m),B.prototype.nodeName="#document-fragment",B.prototype.nodeType=re,o(B,m),P.prototype.nodeType=K,o(P,m),L.prototype.serializeToString=function(e,t,n){return V.call(e,t,n)},m.prototype.toString=V;try{Object.defineProperty&&(Object.defineProperty(s.prototype,"length",{get:function(){return l(this),this.$$length}}),Object.defineProperty(m.prototype,"textContent",{get:function(){return $(this)},set:function(e){switch(this.nodeType){case H:case re:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),z=function(e,t,n){e["$$"+t]=n})}catch(e){}r.DOMImplementation=f,r.XMLSerializer=L},425);
__d(function(e,o,r,l){var n=o(427),t=o(428),a={},v=[],s=n.levels.TRACE;r.exports={addGlobalTransport:function(e){n.addGlobalTransport(e)},removeGlobalTransport:function(e){n.removeGlobalTransport(e)},getLogger:function(e,o,r){var l=new n(s,e,o,r);return e?(a[e]=a[e]||[],a[e].push(l)):v.push(l),l},setLogLevelById:function(e,o){for(var r=o?a[o]||[]:v,l=0;l<r.length;l++)r[l].setLevel(e)},setLogLevel:function(e){s=e;for(var o=0;o<v.length;o++)v[o].setLevel(e);for(var r in a){var l=a[r]||[];for(o=0;o<l.length;o++)l[o].setLevel(e)}},levels:n.levels,LogCollector:t}},426);
__d(function(t,n,e,o){function r(){var t={methodName:"",fileLocation:"",line:null,column:null},n=new Error,e=n.stack?n.stack.split("\n"):[];if(!e||e.length<1)return t;var o=null;return e[3]&&(o=e[3].match(/\s*at\s*(.+?)\s*\((\S*)\s*:(\d*)\s*:(\d*)\)/)),!o||o.length<=4?(0===e[2].indexOf("log@")?t.methodName=e[3].substr(0,e[3].indexOf("@")):t.methodName=e[2].substr(0,e[2].indexOf("@")),t):(t.methodName=o[1],t.fileLocation=o[2],t.line=o[3],t.column=o[4],t)}function l(){var t=arguments[0],n=arguments[1],e=Array.prototype.slice.call(arguments,2);if(!(a[n]<t.level))for(var o=r(),l=i.concat(t.transports),s=0;s<l.length;s++){var c=l[s],f=c[n];f&&"function"==typeof f&&f.bind(c,t.id?"["+t.id+"]":"","<"+o.methodName+">: ").apply(c,e)}}function s(t,n,e,o){this.id=n,this.format=o,this.transports=e,this.transports||(this.transports=[]),this.level=a[t];for(var r=Object.keys(a),s=0;s<r.length;s++)this[r[s]]=l.bind(null,this,r[s])}var a={trace:0,debug:1,info:2,log:3,warn:4,error:5};s.consoleTransport=console;var i=[s.consoleTransport];s.addGlobalTransport=function(t){-1===i.indexOf(t)&&i.push(t)},s.removeGlobalTransport=function(t){var n=i.indexOf(t);-1!==n&&i.splice(n,1)},s.prototype.setLevel=function(t){this.level=a[t]},e.exports=s,s.levels={TRACE:"trace",DEBUG:"debug",INFO:"info",LOG:"log",WARN:"warn",ERROR:"error"}},427);
__d(function(t,e,s,i){function o(t,e){this.logStorage=t,this.stringifyObjects=!(!e||!e.stringifyObjects)&&e.stringifyObjects,this.storeInterval=e&&e.storeInterval?e.storeInterval:3e4,this.maxEntryLength=e&&e.maxEntryLength?e.maxEntryLength:1e4,Object.keys(h.levels).forEach(function(t){this[h.levels[t]]=function(t){this._log.apply(this,arguments)}.bind(this,t)}.bind(this)),this.storeLogsIntervalID=null,this.queue=[],this.totalLen=0,this.outputCache=[]}var h=e(427);o.prototype.stringify=function(t){try{return JSON.stringify(t)}catch(t){return"[object with circular refs?]"}},o.prototype.formatLogMessage=function(t){for(var e="",s=1,i=arguments.length;s<i;s++){var o=arguments[s];!this.stringifyObjects&&t!==h.levels.ERROR||"object"!=typeof o||(o=this.stringify(o)),e+=o,s!=i-1&&(e+=" ")}return e.length?e:null},o.prototype._log=function(){var t=this.formatLogMessage.apply(this,arguments);if(t){var e=this.queue.length?this.queue[this.queue.length-1]:void 0;("object"==typeof e?e.text:e)==t?"object"==typeof e?e.count+=1:this.queue[this.queue.length-1]={text:t,count:2}:(this.queue.push(t),this.totalLen+=t.length)}this.totalLen>=this.maxEntryLength&&this._flush(!0,!0)},o.prototype.start=function(){this._reschedulePublishInterval()},o.prototype._reschedulePublishInterval=function(){this.storeLogsIntervalID&&(window.clearTimeout(this.storeLogsIntervalID),this.storeLogsIntervalID=null),this.storeLogsIntervalID=window.setTimeout(this._flush.bind(this,!1,!0),this.storeInterval)},o.prototype.flush=function(){this._flush(!1,!0)},o.prototype._flush=function(t,e){this.totalLen>0&&(this.logStorage.isReady()||t)&&(this.logStorage.isReady()?(this.outputCache.length&&(this.outputCache.forEach(function(t){this.logStorage.storeLogs(t)}.bind(this)),this.outputCache=[]),this.logStorage.storeLogs(this.queue)):this.outputCache.push(this.queue),this.queue=[],this.totalLen=0),e&&this._reschedulePublishInterval()},o.prototype.stop=function(){this._flush(!1,!1)},s.exports=o},428);
__d(function(e,s,t,a){t.exports={_from:"react-native@0.42.3",_id:"react-native@0.42.3",_inBundle:!1,_integrity:"sha1-RQyKA6Xj6ZGgikJvIndt2P64CyY=",_location:"/react-native",_phantomChildren:{ansi:"0.3.1","ansi-regex":"2.1.1","are-we-there-yet":"1.1.4","babel-code-frame":"6.26.0","babel-generator":"6.26.0","babel-helpers":"6.24.1","babel-messages":"6.23.0","babel-register":"6.26.0","babel-runtime":"6.26.0","babel-template":"6.26.0","babel-traverse":"6.26.0","babel-types":"6.26.0",babylon:"6.18.0","basic-auth-connect":"1.0.0","brace-expansion":"1.1.8",chalk:"1.1.3","cli-width":"2.1.0",cliui:"3.2.0","code-point-at":"1.1.0",compression:"1.5.2","connect-timeout":"1.6.2","content-type":"1.0.2","convert-source-map":"1.5.0","cookie-parser":"1.3.5","cookie-signature":"1.0.6","core-js":"2.5.0",csurf:"1.8.3",debug:"2.6.8",decamelize:"1.2.0",destroy:"1.0.4",errorhandler:"1.4.3","escape-string-regexp":"1.0.5","exit-hook":"1.1.1","express-session":"1.11.3","get-caller-file":"1.0.2","has-unicode":"2.0.1",inflight:"1.0.6",inherits:"2.0.3",lodash:"4.17.4","lodash.pad":"4.5.1","lodash.padend":"4.6.1","lodash.padstart":"4.6.1","media-typer":"0.3.0","method-override":"2.3.9","mime-db":"1.29.0",morgan:"1.6.1",multiparty:"3.3.2","number-is-nan":"1.0.1","object-assign":"4.1.1","on-finished":"2.3.0","on-headers":"1.0.1",once:"1.4.0","os-locale":"1.4.0",parseurl:"1.3.1","path-is-absolute":"1.0.1",pause:"0.1.0",private:"0.1.7","read-pkg-up":"1.0.1",readline2:"1.0.1","require-directory":"2.1.1","require-main-filename":"1.0.1","response-time":"2.3.2","serve-favicon":"2.3.2","set-blocking":"2.0.0",slash:"1.0.0","source-map":"0.5.6",statuses:"1.3.1","strip-ansi":"3.0.1",through:"2.3.8",unpipe:"1.0.0","utils-merge":"1.0.0",vhost:"3.0.2","which-module":"1.0.0",y18n:"3.2.1","yargs-parser":"4.2.1"},_requested:{type:"version",registry:!0,raw:"react-native@0.42.3",name:"react-native",escapedName:"react-native",rawSpec:"0.42.3",saveSpec:null,fetchSpec:"0.42.3"},_requiredBy:["/"],_resolved:"https://registry.npmjs.org/react-native/-/react-native-0.42.3.tgz",_shasum:"450c8a03a5e3e991a08a426f22776dd8feb80b26",_spec:"react-native@0.42.3",_where:"/Users/manu/UC/matrix/github/release/jitsi-meet",bin:{"react-native":"local-cli/wrong-react-native.js"},bugs:{url:"https://github.com/facebook/react-native/issues"},bundleDependencies:!1,dependencies:{"absolute-path":"^0.0.0",art:"^0.10.0",async:"^2.0.1","babel-core":"^6.21.0","babel-generator":"^6.21.0","babel-plugin-external-helpers":"^6.18.0","babel-plugin-syntax-trailing-function-commas":"^6.20.0","babel-plugin-transform-flow-strip-types":"^6.21.0","babel-plugin-transform-object-rest-spread":"^6.20.2","babel-polyfill":"^6.20.0","babel-preset-es2015-node":"^6.1.1","babel-preset-fbjs":"^2.1.0","babel-preset-react-native":"^1.9.1","babel-register":"^6.18.0","babel-runtime":"^6.20.0","babel-traverse":"^6.21.0","babel-types":"^6.21.0",babylon:"^6.14.1","base64-js":"^1.1.2",bser:"^1.0.2",chalk:"^1.1.1",commander:"^2.9.0",connect:"^2.8.3","core-js":"^2.2.2",debug:"^2.2.0",denodeify:"^1.2.1","event-target-shim":"^1.0.5",fbjs:"^0.8.5","fbjs-scripts":"^0.7.0","fs-extra":"^0.26.2",glob:"^5.0.15","graceful-fs":"^4.1.3","image-size":"^0.3.5",immutable:"~3.7.6",imurmurhash:"^0.1.4",inquirer:"^0.12.0","jest-haste-map":"18.0.0",joi:"^6.6.1","json-stable-stringify":"^1.0.1",json5:"^0.4.0","left-pad":"^1.1.3",lodash:"^4.16.6",mime:"^1.3.4","mime-types":"2.1.11",minimist:"^1.2.0",mkdirp:"^0.5.1","node-fetch":"^1.3.3",npmlog:"^2.0.4",opn:"^3.0.2",optimist:"^0.6.1",plist:"^1.2.0",promise:"^7.1.1","react-clone-referenced-element":"^1.0.1","react-timer-mixin":"^0.13.2","react-transform-hmr":"^1.0.4",rebound:"^0.0.13","regenerator-runtime":"^0.9.5",request:"^2.79.0",rimraf:"^2.5.4",sane:"~1.4.1",semver:"^5.0.3","shell-quote":"1.6.1","source-map":"^0.5.6","stacktrace-parser":"^0.1.3",temp:"0.8.3",throat:"^3.0.0","uglify-js":"^2.6.2","whatwg-fetch":"^1.0.0",wordwrap:"^1.0.0","worker-farm":"^1.3.1","write-file-atomic":"^1.2.0",ws:"^1.1.0",xcode:"^0.8.9",xmldoc:"^0.4.0",yargs:"^6.4.0"},deprecated:!1,description:"A framework for building native apps using React",devDependencies:{"babel-eslint":"^7.1.1",eslint:"^3.8.1","eslint-plugin-babel":"^3.3.0","eslint-plugin-flowtype":"^2.20.0","eslint-plugin-react":"^6.4.1","flow-bin":"^0.38.0",jest:"18.0.0","jest-repl":"18.0.0","jest-runtime":"18.0.0","mock-fs":"^3.11.0",react:"~15.4.1","react-dom":"~15.4.1","react-test-renderer":"~15.4.1",shelljs:"0.6.0",sinon:"^2.0.0-pre.2"},engines:{node:">=4"},files:[".flowconfig","android","cli.js","flow","init.sh","ios-install-third-party.sh","jest-preset.json","jest","lib","setupBabel.js","Libraries","LICENSE","local-cli","packager","PATENTS","react.gradle","React.podspec","React","ReactAndroid","ReactCommon","README.md"],homepage:"https://github.com/facebook/react-native#readme",jest:{automock:!0,transform:{".*":"./jest/preprocessor.js"},setupFiles:["./jest/setup.js"],timers:"fake",moduleNameMapper:{"^React$":"<rootDir>/Libraries/react-native/React.js","^[./a-zA-Z0-9$_-]+\\.png$":"RelativeImageStub"},testPathIgnorePatterns:["/node_modules/","/website/","local-cli/templates/"],haste:{defaultPlatform:"ios",providesModuleNodeModules:["react-native"],platforms:["ios","android"]},modulePathIgnorePatterns:["Libraries/react-native/","/node_modules/(?!react|fbjs|react-native|react-transform-hmr|core-js|promise)/","node_modules/react/node_modules/fbjs/","node_modules/react/lib/ReactDOM.js","node_modules/fbjs/lib/Map.js","node_modules/fbjs/lib/Promise.js","node_modules/fbjs/lib/fetch.js","node_modules/fbjs/lib/ErrorUtils.js","node_modules/fbjs/lib/URI.js","node_modules/fbjs/lib/Deferred.js","node_modules/fbjs/lib/PromiseMap.js","node_modules/fbjs/lib/UserAgent.js","node_modules/fbjs/lib/areEqual.js","node_modules/fbjs/lib/base62.js","node_modules/fbjs/lib/crc32.js","node_modules/fbjs/lib/everyObject.js","node_modules/fbjs/lib/fetchWithRetries.js","node_modules/fbjs/lib/filterObject.js","node_modules/fbjs/lib/flattenArray.js","node_modules/fbjs/lib/forEachObject.js","node_modules/fbjs/lib/isEmpty.js","node_modules/fbjs/lib/nullthrows.js","node_modules/fbjs/lib/removeFromArray.js","node_modules/fbjs/lib/resolveImmediate.js","node_modules/fbjs/lib/someObject.js","node_modules/fbjs/lib/sprintf.js","node_modules/fbjs/lib/xhrSimpleDataSerializer.js","node_modules/jest-cli","node_modules/react/dist","node_modules/fbjs/.*/__mocks__/","node_modules/fbjs/node_modules/","<rootDir>/website/"],unmockedModulePathPatterns:["promise","source-map","fastpath","denodeify","fbjs","sinon"]},license:"BSD-3-Clause",main:"Libraries/react-native/react-native.js",name:"react-native",peerDependencies:{react:"~15.4.1"},repository:{type:"git",url:"git+ssh://git@github.com/facebook/react-native.git"},scripts:{flow:"flow",lint:"eslint Examples/ Libraries/",start:"/usr/bin/env bash -c './packager/packager.sh \"$@\" || true' --",test:"jest"},version:"0.42.3"}},429);
__d(function(e,i,a,t){var d=i(431),r=i(448),n=babelHelpers.interopRequireDefault(r);!function(e){void 0===e.webkitMediaStream&&(e.webkitMediaStream=d.MediaStream),void 0===e.MediaStreamTrack&&(e.MediaStreamTrack=d.MediaStreamTrack),void 0===e.webkitRTCPeerConnection&&(e.webkitRTCPeerConnection=n.default),void 0===e.RTCSessionDescription&&(e.RTCSessionDescription=d.RTCSessionDescription),void 0===e.RTCIceCandidate&&(e.RTCIceCandidate=d.RTCIceCandidate);var i=e.navigator;i&&void 0===i.webkitGetUserMedia&&(i.webkitGetUserMedia=d.getUserMedia)}(e||window||this)},430);
__d(function(e,t,a,r){"use strict";var l=t(432),i=babelHelpers.interopRequireDefault(l),u=t(442),p=babelHelpers.interopRequireDefault(u),f=t(441),n=babelHelpers.interopRequireDefault(f),b=t(445),s=babelHelpers.interopRequireDefault(b),d=t(433),o=babelHelpers.interopRequireDefault(d),R=t(436),D=babelHelpers.interopRequireDefault(R),q=t(446),H=babelHelpers.interopRequireDefault(q);a.exports={RTCPeerConnection:i.default,RTCIceCandidate:p.default,RTCSessionDescription:n.default,RTCView:s.default,MediaStream:o.default,MediaStreamTrack:D.default,getUserMedia:H.default}},431);
__d(function(e,n,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var a=n(237),r=babelHelpers.interopRequireDefault(a),o=n(64),c=n(433),d=babelHelpers.interopRequireDefault(c),s=n(435),l=babelHelpers.interopRequireDefault(s),u=n(436),p=babelHelpers.interopRequireDefault(u),f=n(438),C=babelHelpers.interopRequireDefault(f),h=n(440),v=babelHelpers.interopRequireDefault(h),m=n(441),g=babelHelpers.interopRequireDefault(m),_=n(442),b=babelHelpers.interopRequireDefault(_),S=n(443),I=babelHelpers.interopRequireDefault(S),E=n(444),y=babelHelpers.interopRequireDefault(E),D=o.NativeModules.WebRTCModule,w={mandatory:{OfferToReceiveAudio:!0,OfferToReceiveVideo:!0},optional:[]},R={mandatory:{},optional:[{DtlsSrtpKeyAgreement:!0}]},k=["connectionstatechange","icecandidate","icecandidateerror","iceconnectionstatechange","icegatheringstatechange","negotiationneeded","signalingstatechange","datachannel","addstream","removestream"],H=0,O=function(e){function n(e){babelHelpers.classCallCheck(this,n);var t=babelHelpers.possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.signalingState="stable",t.iceGatheringState="new",t.iceConnectionState="new",t._remoteStreams=[],t._dataChannelIds=new Set,t._peerConnectionId=H++,D.peerConnectionInit(e,R,t._peerConnectionId),t._registerEvents(),t}return babelHelpers.inherits(n,e),babelHelpers.createClass(n,[{key:"addStream",value:function(e){D.peerConnectionAddStream(e.reactTag,this._peerConnectionId)}},{key:"removeStream",value:function(e){D.peerConnectionRemoveStream(e.reactTag,this._peerConnectionId)}},{key:"_mergeMediaConstraints",value:function(e){var n=babelHelpers.extends({},w);return e&&(e.mandatory&&(n.mandatory=babelHelpers.extends({},n.mandatory,e.mandatory)),e.optional&&Array.isArray(e.optional)&&(n.optional=e.optional.concat(n.optional))),n}},{key:"createOffer",value:function(e,n,t){D.peerConnectionCreateOffer(this._peerConnectionId,this._mergeMediaConstraints(t),function(t,i){t?e(new g.default(i)):n(i)})}},{key:"createAnswer",value:function(e,n,t){D.peerConnectionCreateAnswer(this._peerConnectionId,this._mergeMediaConstraints(t),function(t,i){t?e(new g.default(i)):n(i)})}},{key:"setConfiguration",value:function(e){D.peerConnectionSetConfiguration(e,this._peerConnectionId)}},{key:"setLocalDescription",value:function(e,n,t,i){var a=this;D.peerConnectionSetLocalDescription(e.toJSON(),this._peerConnectionId,function(i,r){i?(a.localDescription=e,n()):t(r)})}},{key:"setRemoteDescription",value:function(e,n,t){var i=this;D.peerConnectionSetRemoteDescription(e.toJSON(),this._peerConnectionId,function(a,r){a?(i.remoteDescription=e,n()):t(r)})}},{key:"addIceCandidate",value:function(e,n,t){D.peerConnectionAddICECandidate(e.toJSON(),this._peerConnectionId,function(e){e?n&&n():t&&t()})}},{key:"getStats",value:function(e,n,t){D.peerConnectionGetStats?D.peerConnectionGetStats(e&&e.id||"",this._peerConnectionId,function(e){if(n){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return void t(e)}n(e)}}):console.warn("RTCPeerConnection getStats not supported")}},{key:"getRemoteStreams",value:function(){return this._remoteStreams.slice()}},{key:"close",value:function(){D.peerConnectionClose(this._peerConnectionId)}},{key:"_unregisterEvents",value:function(){this._subscriptions.forEach(function(e){return e.remove()}),this._subscriptions=[]}},{key:"_registerEvents",value:function(){var e=this;this._subscriptions=[o.DeviceEventEmitter.addListener("peerConnectionOnRenegotiationNeeded",function(n){n.id===e._peerConnectionId&&e.dispatchEvent(new y.default("negotiationneeded"))}),o.DeviceEventEmitter.addListener("peerConnectionIceConnectionChanged",function(n){n.id===e._peerConnectionId&&(e.iceConnectionState=n.iceConnectionState,e.dispatchEvent(new y.default("iceconnectionstatechange")),"closed"===n.iceConnectionState&&e._unregisterEvents())}),o.DeviceEventEmitter.addListener("peerConnectionSignalingStateChanged",function(n){n.id===e._peerConnectionId&&(e.signalingState=n.signalingState,e.dispatchEvent(new y.default("signalingstatechange")))}),o.DeviceEventEmitter.addListener("peerConnectionAddedStream",function(n){if(n.id===e._peerConnectionId){for(var t=new d.default(n.streamId,n.streamReactTag),i=n.tracks,a=0;a<i.length;a++)t.addTrack(new p.default(i[a]));e._remoteStreams.push(t),e.dispatchEvent(new l.default("addstream",{stream:t}))}}),o.DeviceEventEmitter.addListener("peerConnectionRemovedStream",function(n){if(n.id===e._peerConnectionId){var t=e._remoteStreams.find(function(e){return e.reactTag===n.streamId});if(t){var i=e._remoteStreams.indexOf(t);i>-1&&e._remoteStreams.splice(i,1)}e.dispatchEvent(new l.default("removestream",{stream:t}))}}),o.DeviceEventEmitter.addListener("peerConnectionGotICECandidate",function(n){if(n.id===e._peerConnectionId){var t=new b.default(n.candidate),i=new I.default("icecandidate",{candidate:t});e.dispatchEvent(i)}}),o.DeviceEventEmitter.addListener("peerConnectionIceGatheringChanged",function(n){n.id===e._peerConnectionId&&(e.iceGatheringState=n.iceGatheringState,"complete"===e.iceGatheringState&&e.dispatchEvent(new I.default("icecandidate",null)),e.dispatchEvent(new y.default("icegatheringstatechange")))}),o.DeviceEventEmitter.addListener("peerConnectionDidOpenDataChannel",function(n){if(n.id===e._peerConnectionId){var t=n.dataChannel,i=t.id;if("number"==typeof i&&-1!==i){var a=new C.default(e._peerConnectionId,t.label,t);e._dataChannelIds.add(i),e.dispatchEvent(new v.default("datachannel",{channel:a}))}}})]}},{key:"createDataChannel",value:function(e,n){var t=void 0,i=this._dataChannelIds;if(n&&"id"in n){if("number"!=typeof(t=n.id))throw new TypeError("DataChannel id must be a number: "+t);if(i.has(t))throw new ResourceInUse("DataChannel id already in use: "+t)}else{for(t=0;t<65535&&i.has(t);++t);n=babelHelpers.extends({id:t},n)}return D.createDataChannel(this._peerConnectionId,e,n),i.add(t),new C.default(this._peerConnectionId,e,n)}}]),n}((0,r.default)(k));i.default=O},432);
__d(function(e,t,r,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i=t(64),n=t(237),c=babelHelpers.interopRequireDefault(n),s=t(434),u=babelHelpers.interopRequireDefault(s),l=i.NativeModules.WebRTCModule,o=["active","inactive","addtrack","removetrack"],d=function(e){function t(e,r){babelHelpers.classCallCheck(this,t);var a=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.active=!0,a._tracks=[],a.id=e,a.reactTag=void 0===r?e:r,a}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"addTrack",value:function(e){this._tracks.push(e),this.dispatchEvent(new u.default("addtrack",{track:e}))}},{key:"removeTrack",value:function(e){var t=this._tracks.indexOf(e);-1!==t&&(l.mediaStreamTrackRelease(this.reactTag,e.id),this._tracks.splice(t,1),this.dispatchEvent(new u.default("removetrack",{track:e})))}},{key:"getTracks",value:function(){return this._tracks.slice()}},{key:"getTrackById",value:function(e){return this._tracks.find(function(t){return t.id===e})}},{key:"getAudioTracks",value:function(){return this._tracks.filter(function(e){return"audio"===e.kind})}},{key:"getVideoTracks",value:function(){return this._tracks.filter(function(e){return"video"===e.kind})}},{key:"clone",value:function(){throw new Error("Not implemented.")}},{key:"toURL",value:function(){return this.reactTag}},{key:"release",value:function(){l.mediaStreamRelease(this.reactTag)}}]),t}((0,c.default)(o));a.default=d},433);
__d(function(e,t,s,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function e(t,s){babelHelpers.classCallCheck(this,e),this.type=t.toString(),babelHelpers.extends(this,s)};l.default=i},434);
__d(function(e,t,s,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function e(t,s){babelHelpers.classCallCheck(this,e),this.type=t.toString(),babelHelpers.extends(this,s)};l.default=i},435);
__d(function(e,t,r,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=t(64),a=t(237),l=babelHelpers.interopRequireDefault(a),o=t(437),s=(babelHelpers.interopRequireDefault(o),n.NativeModules.WebRTCModule),d=["ended","mute","unmute","overconstrained"],u=function(e){function t(e){babelHelpers.classCallCheck(this,t);var r=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),i=e.readyState.toLowerCase();return r._enabled=e.enabled,r.id=e.id,r.kind=e.kind,r.label=e.label,r.muted=!1,r.readonly=!0,r.remote=e.remote,r.readyState="initializing"===i||"live"===i?"live":"ended",r}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,null,[{key:"getSources",value:function(e){s.mediaStreamTrackGetSources(e)}}]),babelHelpers.createClass(t,[{key:"stop",value:function(){this.remote||(s.mediaStreamTrackStop(this.id),this._enabled=!1,this.readyState="ended",this.muted=!this._enabled)}},{key:"_switchCamera",value:function(){if(this.remote)throw new Error("Not implemented for remote tracks");if("video"!==this.kind)throw new Error("Only implemented for video tracks");s.mediaStreamTrackSwitchCamera(this.id)}},{key:"applyConstraints",value:function(){throw new Error("Not implemented.")}},{key:"clone",value:function(){throw new Error("Not implemented.")}},{key:"getCapabilities",value:function(){throw new Error("Not implemented.")}},{key:"getConstraints",value:function(){throw new Error("Not implemented.")}},{key:"getSettings",value:function(){throw new Error("Not implemented.")}},{key:"enabled",get:function(){return this._enabled},set:function(e){e!==this._enabled&&(s.mediaStreamTrackSetEnabled(this.id,!this._enabled),this._enabled=!this._enabled,this.muted=!this._enabled)}}]),t}((0,l.default)(d));i.default=u},436);
__d(function(e,t,s,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function e(t,s){babelHelpers.classCallCheck(this,e),this.type=t.toString(),babelHelpers.extends(this,s)};l.default=i},437);
__d(function(e,t,r,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=t(64),i=t(245),o=babelHelpers.interopRequireDefault(i),s=t(237),l=babelHelpers.interopRequireDefault(s),d=t(439),u=babelHelpers.interopRequireDefault(d),c=t(440),f=babelHelpers.interopRequireDefault(c),p=a.NativeModules.WebRTCModule,b=["open","message","bufferedamountlow","close","error"],h=(function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}babelHelpers.inherits(t,e)}(Error),function(e){function t(e,r,n){babelHelpers.classCallCheck(this,t);var a=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.binaryType="arraybuffer",a.bufferedAmount=0,a.bufferedAmountLowThreshold=0,a.maxPacketLifeTime=null,a.maxRetransmits=null,a.negotiated=!1,a.ordered=!0,a.protocol="",a.readyState="connecting",a._peerConnectionId=e,a.label=r,a.id="id"in n?n.id:-1,a.ordered=!!n.ordered,a.maxPacketLifeTime=n.maxPacketLifeTime,a.maxRetransmits=n.maxRetransmits,a.protocol=n.protocol||"",a.negotiated=!!n.negotiated,a._registerEvents(),a}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"send",value:function(e){if("string"==typeof e)return void p.dataChannelSend(this._peerConnectionId,this.id,e,"text");if(ArrayBuffer.isView(e)&&(e=e.buffer),!(e instanceof ArrayBuffer))throw new TypeError("Data must be either string, ArrayBuffer, or ArrayBufferView");p.dataChannelSend(this._peerConnectionId,this.id,o.default.fromByteArray(new Uint8Array(e)),"binary")}},{key:"close",value:function(){"closing"!==this.readyState&&"closed"!==this.readyState&&(this.readyState="closing",p.dataChannelClose(this._peerConnectionId,this.id))}},{key:"_unregisterEvents",value:function(){this._subscriptions.forEach(function(e){return e.remove()}),this._subscriptions=[]}},{key:"_registerEvents",value:function(){var e=this;this._subscriptions=[a.DeviceEventEmitter.addListener("dataChannelStateChanged",function(t){t.peerConnectionId===e._peerConnectionId&&t.id===e.id&&(e.readyState=t.state,"open"===e.readyState?e.dispatchEvent(new f.default("open",{channel:e})):"close"===e.readyState&&(e.dispatchEvent(new f.default("close",{channel:e})),e._unregisterEvents()))}),a.DeviceEventEmitter.addListener("dataChannelReceiveMessage",function(t){if(t.peerConnectionId===e._peerConnectionId&&t.id===e.id){var r=t.data;"binary"===t.type&&(r=o.default.toByteArray(t.data).buffer),e.dispatchEvent(new u.default("message",{data:r}))}})]}}]),t}((0,l.default)(b)));n.default=h},438);
__d(function(e,t,s,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function e(t,s){babelHelpers.classCallCheck(this,e),this.type=t.toString(),babelHelpers.extends(this,s)};l.default=i},439);
__d(function(e,t,s,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function e(t,s){babelHelpers.classCallCheck(this,e),this.type=t.toString(),babelHelpers.extends(this,s)};l.default=i},440);
__d(function(e,t,s,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function(){function e(t){babelHelpers.classCallCheck(this,e),this.sdp=t.sdp,this.type=t.type}return babelHelpers.createClass(e,[{key:"toJSON",value:function(){return{sdp:this.sdp,type:this.type}}}]),e}();l.default=i},441);
__d(function(e,d,i,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var t=function(){function e(d){babelHelpers.classCallCheck(this,e),this.candidate=d.candidate,this.sdpMLineIndex=d.sdpMLineIndex,this.sdpMid=d.sdpMid}return babelHelpers.createClass(e,[{key:"toJSON",value:function(){return{candidate:this.candidate,sdpMLineIndex:this.sdpMLineIndex,sdpMid:this.sdpMid}}}]),e}();s.default=t},442);
__d(function(e,t,a,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var d=function e(t,a){babelHelpers.classCallCheck(this,e),this.type=t.toString(),this.candidate=null,a&&a.candidate&&(this.candidate=a.candidate)};i.default=d},443);
__d(function(e,t,s,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var i=function e(t,s){babelHelpers.classCallCheck(this,e),this.type=t.toString(),babelHelpers.extends(this,s)};l.default=i},444);
__d(function(e,i,o,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var t=i(64),n=i(34),s=(t.NativeModules.WebRTCModule,{name:"RTCVideoView",propTypes:{mirror:n.PropTypes.bool,objectFit:n.PropTypes.oneOf(["contain","cover"]),streamURL:n.PropTypes.string,zOrder:n.PropTypes.number}}),a=(0,t.requireNativeComponent)("RTCVideoView",s,{nativeOnly:{testID:!0,accessibilityComponentType:!0,renderToHardwareTextureAndroid:!0,accessibilityLabel:!0,accessibilityLiveRegion:!0,importantForAccessibility:!0,onLayout:!0,nativeID:!0}});r.default=a},445);
__d(function(e,r,n,o){"use strict";function t(e,r,n){if("function"!=typeof r)throw new TypeError("successCallback is non-nullable and required");if("function"!=typeof n)throw new TypeError("errorCallback is non-nullable and required");if("object"!=typeof e)return void n(new TypeError("constraints is not a dictionary"));for(var o=0,t=["audio","video"],i=0;i<t.length;i++){var a=t[i],l=e[a],u=typeof l;if("undefined"!==u)if("boolean"===u)l&&++o;else{if("object"!=u)return void n(new TypeError("constraints."+a+" is neither a boolean nor a dictionary"));++o}}if(0===o)return void n(new TypeError("constraints requests no media types"));d.getUserMedia(e,function(e,n){for(var o=new f.default(e),t=n,i=Array.isArray(t),a=0,t=i?t:t["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var l;if(i){if(a>=t.length)break;l=t[a++]}else{if(a=t.next(),a.done)break;l=a.value}var s=l;o.addTrack(new c.default(s))}r(o)},function(e,r){var o=void 0;switch(e){case"DOMException":"function"==typeof DOMException&&(o=new DOMException(void 0,r));break;case"OverconstrainedError":"function"==typeof OverconstrainedError&&(o=new OverconstrainedError(void 0,r));break;case"TypeError":o=new TypeError(r)}o||(o=new s.default({message:r,name:e})),n(o)})}Object.defineProperty(o,"__esModule",{value:!0}),o.default=t;var i=r(64),a=r(433),f=babelHelpers.interopRequireDefault(a),l=r(447),s=babelHelpers.interopRequireDefault(l),u=r(436),c=babelHelpers.interopRequireDefault(u),d=i.NativeModules.WebRTCModule},446);
__d(function(e,s,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=function e(s){babelHelpers.classCallCheck(this,e),this.name=s.name,this.message=s.message,this.constraintName=s.constraintName};a.default=n},447);
__d(function(e,r,t,n){function o(){for(var e=this,r=arguments.length,t=Array(r),n=0;n<r;n++)t[n]=arguments[n];p.RTCPeerConnection.apply(this,t),this.onaddstream=function(){for(var r=arguments.length,t=Array(r),n=0;n<r;n++)t[n]=arguments[n];return(e._onaddstreamQueue?e._queueOnaddstream:e._invokeOnaddstream).apply(e,t)},Object.defineProperty(this,"onaddstream",{configurable:!0,enumerable:!0,get:function(){return this._onaddstream},set:function(e){this._onaddstream=e}})}function a(){var e;console&&console.error&&(e=console).error.apply(e,arguments)}function i(e){var r=this;return new Promise(function(t,n){r._onaddstreamQueue=[],p.RTCPeerConnection.prototype.setRemoteDescription.call(r,e,function(){var e=void 0;try{t.apply(void 0,arguments)}finally{e=r._onaddstreamQueue,r._onaddstreamQueue=void 0}r._invokeQueuedOnaddstream(e)},function(){r._onaddstreamQueue=void 0,n.apply(void 0,arguments)})})}function s(e){return f.NativeModules.POSIX?new Promise(function(r){return r(u(e))}).then(function(r){var t=r.ips,n=r.lines;return Promise.all(Array.from(t.values())).then(function(){return d(e,t,n)})}):Promise.resolve(e)}function u(e){var r=e.sdp,t=0,n=[],o=new Map,a=f.NativeModules.POSIX.getaddrinfo;do{var i=r.indexOf("\r\n",t),s=void 0;if(-1===i?(s=r.substring(t),t=void 0):(s=r.substring(t,i),t=i+2),s.startsWith("a=candidate:")){var u=s.split(" ");if(u.length>=10&&"typ"===u[6]){for(var d=[u[4]],p=!1,c=8;c<u.length;++c)if("raddr"===u[c]){d.push(u[++c]);break}for(var l=d,v=Array.isArray(l),y=0,l=v?l:l["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var h;if(v){if(y>=l.length)break;h=l[y++]}else{if(y=l.next(),y.done)break;h=y.value}var m=h;if("break"===function(e){if(-1!==e.indexOf(":"))return p=!0,"break";o.has(e)||o.set(e,new Promise(function(r,t){var n=o.get(e);n&&"string"==typeof n?r(n):a(e).then(function(t){-1===t.indexOf(":")||t===o.get(e)?o.delete(e):o.set(e,t),r(t)},t)}))}(m))break}if(p){o.clear();break}s=u}}n.push(s)}while(t);return{ips:o,lines:n}}function d(e,r,t){if(0===r.size)return e;for(var n=0;n<t.length;++n){var o=t[n];if("string"!=typeof o){var a=o[4],i=r.get(a);i&&(o[4]=i);for(var s=8;s<o.length;++s)if("raddr"===o[s]){a=o[++s],(i=r.get(a))&&(o[s]=i);break}t[n]=o.join(" ")}}return new p.RTCSessionDescription({sdp:t.join("\r\n"),type:e.type})}Object.defineProperty(n,"__esModule",{value:!0}),n.default=o;var f=r(64),p=r(431);o.prototype=Object.create(p.RTCPeerConnection.prototype),o.prototype.constructor=o,o.prototype._invokeOnaddstream=function(){for(var e=this._onaddstream,r=arguments.length,t=Array(r),n=0;n<r;n++)t[n]=arguments[n];return e&&e.apply(this,t)},o.prototype._invokeQueuedOnaddstream=function(e){var r=this;e&&e.forEach(function(e){try{r._invokeOnaddstream.apply(r,babelHelpers.toConsumableArray(e))}catch(e){a(e)}})},o.prototype._queueOnaddstream=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];this._onaddstreamQueue.push(Array.from(r))},o.prototype.setRemoteDescription=function(e,r,t){var n=this;return void 0!==r||void 0!==t?o.prototype.setRemoteDescription.call(this,e).then(r,t):s(e).catch(function(r){return r&&a(r),e}).then(function(e){return i.bind(n)(e)})}},448);
__d(function(i,n,_,e){!function(i){void 0===i.__filename&&(i.__filename="__filename")}(i||window||this)},449);
__d(function(e,t,n,r){!function(e,t){"object"==typeof r&&"object"==typeof n?n.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof r?r.JitsiMeetJS=t():e.JitsiMeetJS=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=85)}([function(e,t,n){var r=n(42),i=n(77),o={},a=[],s=r.levels.TRACE;e.exports={addGlobalTransport:function(e){r.addGlobalTransport(e)},removeGlobalTransport:function(e){r.removeGlobalTransport(e)},getLogger:function(e,t,n){var i=new r(s,e,t,n);return e?(o[e]=o[e]||[],o[e].push(i)):a.push(i),i},setLogLevelById:function(e,t){for(var n=t?o[t]||[]:a,r=0;r<n.length;r++)n[r].setLevel(e)},setLogLevel:function(e){s=e;for(var t=0;t<a.length;t++)a[t].setLevel(e);for(var n in o){var r=o[n]||[];for(t=0;t<r.length;t++)r[t].setLevel(e)}},levels:r.levels,LogCollector:i}},function(e,t,n){"use strict";(function(e){function r(){if(navigator.webkitGetUserMedia){h=v.RTC_BROWSER_CHROME;var e=navigator.userAgent.toLowerCase(),t=parseInt(e.match(/chrome\/(\d+)\./)[1],10);return m.log("This appears to be Chrome, ver: "+t),t}return null}function i(){var e=navigator.userAgent;if(e.match(/Opera|OPR/)){h=v.RTC_BROWSER_OPERA;var t=e.match(/(Opera|OPR) ?\/?(\d+)\.?/)[2];return m.info("This appears to be Opera, ver: "+t),t}return null}function o(){if(navigator.mozGetUserMedia){h=v.RTC_BROWSER_FIREFOX;var e=parseInt(navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1],10);return m.log("This appears to be Firefox, ver: "+e),e}return null}function a(){return/^((?!chrome).)*safari/i.test(navigator.userAgent)?(h=v.RTC_BROWSER_SAFARI,m.info("This appears to be Safari"),1):null}function s(){var e=void 0,t=window.navigator.userAgent,n=t.indexOf("MSIE ");n>0&&(e=parseInt(t.substring(n+5,t.indexOf(".",n)),10));var r=t.indexOf("Trident/");if(!e&&r>0){var i=t.indexOf("rv:");e=parseInt(t.substring(i+3,t.indexOf(".",i)),10)}return e&&(h=v.RTC_BROWSER_IEXPLORER,m.info("This appears to be IExplorer, ver: "+e)),e}function c(){var e=void 0,t=window.navigator.userAgent,n=t.indexOf("Edge/");return!e&&n>0&&(e=parseInt(t.substring(n+5,t.indexOf(".",n)),10)),e&&(h=v.RTC_BROWSER_EDGE,m.info("This appears to be Edge, ver: "+e)),e}function u(){var e=navigator.userAgent;if(e.match(/Electron/)){h=v.RTC_BROWSER_ELECTRON;var t=e.match(/Electron\/([\d.]+)/)[1];return m.info("This appears to be Electron, ver: "+t),t}return null}function l(){var e=navigator.userAgent;if(e.match(/JitsiMeetNW/)){h=v.RTC_BROWSER_NWJS;var t=e.match(/JitsiMeetNW\/([\d.]+)/)[1];return m.info("This appears to be JitsiMeetNW, ver: "+t),t}return null}function d(){var e=navigator.userAgent.match(/\b(react[ \t_-]*native)(?:\/(\S+))?/i),t=void 0;if(e||"ReactNative"===navigator.product){h=v.RTC_BROWSER_REACT_NATIVE;var n=void 0;e&&e.length>2&&(n=e[1],t=e[2]),n||(n="react-native"),t||(t="unknown"),console.info("This appears to be "+n+", ver: "+t)}else t=null;return t}var p=n(0),f=void n.n(p),h=void 0,m=n.i(p.getLogger)(e),v={RTC_BROWSER_CHROME:"rtc_browser.chrome",RTC_BROWSER_OPERA:"rtc_browser.opera",RTC_BROWSER_FIREFOX:"rtc_browser.firefox",RTC_BROWSER_IEXPLORER:"rtc_browser.iexplorer",RTC_BROWSER_EDGE:"rtc_browser.edge",RTC_BROWSER_SAFARI:"rtc_browser.safari",RTC_BROWSER_NWJS:"rtc_browser.nwjs",RTC_BROWSER_ELECTRON:"rtc_browser.electron",RTC_BROWSER_REACT_NATIVE:"rtc_browser.react-native",doesVideoMuteByStreamRemove:function(){return!(v.isFirefox()||v.isEdge())},getBrowserType:function(){return h},getBrowserName:function(){return-1!==navigator.userAgent.indexOf("Android")?"android":h.split("rtc_browser.")[1]},isChrome:function(){return h===v.RTC_BROWSER_CHROME},isOpera:function(){return h===v.RTC_BROWSER_OPERA},isFirefox:function(){return h===v.RTC_BROWSER_FIREFOX},isIExplorer:function(){return h===v.RTC_BROWSER_IEXPLORER},isEdge:function(){return h===v.RTC_BROWSER_EDGE},isSafari:function(){return h===v.RTC_BROWSER_SAFARI},isNWJS:function(){return h===v.RTC_BROWSER_NWJS},isElectron:function(){return h===v.RTC_BROWSER_ELECTRON},isP2PSupported:function(){return!v.isEdge()},isReactNative:function(){return h===v.RTC_BROWSER_REACT_NATIVE},isTemasysPluginUsed:function(){return v.isSafari()||v.isIExplorer()&&v.getIExplorerVersion()<12},isVideoMuteOnConnInterruptedSupported:function(){return v.isChrome()},getFirefoxVersion:function(){return v.isFirefox()?f:null},getChromeVersion:function(){return v.isChrome()?f:null},getIExplorerVersion:function(){return v.isIExplorer()?f:null},getEdgeVersion:function(){return v.isEdge()?f:null},usesPlanB:function(){return!v.usesUnifiedPlan()},usesUnifiedPlan:function(){return v.isFirefox()},supportsBandwidthStatistics:function(){return!v.isFirefox()&&!v.isEdge()},supportsDataChannels:function(){return!v.isEdge()},supportsRTTStatistics:function(){return!v.isFirefox()&&!v.isEdge()},supportsSimulcast:function(){return v.isChrome()||v.isFirefox()||v.isElectron()||v.isNWJS()},supportsRtx:function(){return!v.isFirefox()},supportsRtpSender:function(){return v.isFirefox()}};f=function(){for(var e=void 0,t=[d,u,l,i,r,o,c,s,a],n=0;n<t.length;n++)if(e=t[n]())return e;return m.warn("Browser type defaults to Safari ver 1"),h=v.RTC_BROWSER_SAFARI,1}(),t.a=v}).call(t,"modules/RTC/RTCBrowserType.js")},function(e,t){var n,r="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof e};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}e.exports=n},function(e,t){function n(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];i.forEach(function(e){return e.apply(void 0,t)}),o&&o.apply(void 0,t)}function r(e){i.forEach(function(t){return t(null,null,null,null,e.reason)}),a&&a(e)}var i=[],o=window.onerror,a=window.onunhandledrejection;window.onerror=n,window.onunhandledrejection=r;var s={addHandler:function(e){i.push(e)},callErrorHandler:function(e){var t=window.onerror;t&&t(null,null,null,null,e)},callUnhandledRejectionHandler:function(e){var t=window.onunhandledrejection;t&&t(e)}};e.exports=s},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i});var r="audio",i="video"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"AUTH_STATUS_CHANGED",function(){return r}),n.d(t,"AVAILABLE_DEVICES_CHANGED",function(){return i}),n.d(t,"AVATAR_CHANGED",function(){return o}),n.d(t,"BEFORE_STATISTICS_DISPOSED",function(){return a}),n.d(t,"CONFERENCE_ERROR",function(){return s}),n.d(t,"CONFERENCE_FAILED",function(){return c}),n.d(t,"CONFERENCE_JOINED",function(){return u}),n.d(t,"CONFERENCE_LEFT",function(){return l}),n.d(t,"CONNECTION_INTERRUPTED",function(){return d}),n.d(t,"CONNECTION_RESTORED",function(){return p}),n.d(t,"DATA_CHANNEL_OPENED",function(){return f}),n.d(t,"DISPLAY_NAME_CHANGED",function(){return h}),n.d(t,"DOMINANT_SPEAKER_CHANGED",function(){return m}),n.d(t,"DTMF_SUPPORT_CHANGED",function(){return v}),n.d(t,"ENDPOINT_MESSAGE_RECEIVED",function(){return y}),n.d(t,"JVB121_STATUS",function(){return g}),n.d(t,"KICKED",function(){return b}),n.d(t,"LAST_N_ENDPOINTS_CHANGED",function(){return S}),n.d(t,"LOCK_STATE_CHANGED",function(){return E}),n.d(t,"MESSAGE_RECEIVED",function(){return T}),n.d(t,"PARTICIPANT_CONN_STATUS_CHANGED",function(){return _}),n.d(t,"PARTCIPANT_FEATURES_CHANGED",function(){return C}),n.d(t,"PARTICIPANT_PROPERTY_CHANGED",function(){return w}),n.d(t,"P2P_STATUS",function(){return R}),n.d(t,"PHONE_NUMBER_CHANGED",function(){return k}),n.d(t,"RECORDER_STATE_CHANGED",function(){return A}),n.d(t,"VIDEO_SIP_GW_AVAILABILITY_CHANGED",function(){return P}),n.d(t,"START_MUTED_POLICY_CHANGED",function(){return I}),n.d(t,"STARTED_MUTED",function(){return O}),n.d(t,"SUBJECT_CHANGED",function(){return D}),n.d(t,"SUSPEND_DETECTED",function(){return L}),n.d(t,"TALK_WHILE_MUTED",function(){return N}),n.d(t,"TRACK_ADDED",function(){return M}),n.d(t,"TRACK_AUDIO_LEVEL_CHANGED",function(){return x}),n.d(t,"TRACK_MUTE_CHANGED",function(){return j}),n.d(t,"TRACK_REMOVED",function(){return F}),n.d(t,"USER_JOINED",function(){return U}),n.d(t,"USER_LEFT",function(){return B}),n.d(t,"USER_ROLE_CHANGED",function(){return J}),n.d(t,"USER_STATUS_CHANGED",function(){return G});var r="conference.auth_status_changed",i="conference.availableDevicesChanged",o="conference.avatarChanged",a="conference.beforeStatisticsDisposed",s="conference.error",c="conference.failed",u="conference.joined",l="conference.left",d="conference.connectionInterrupted",p="conference.connectionRestored",f="conference.dataChannelOpened",h="conference.displayNameChanged",m="conference.dominantSpeaker",v="conference.dtmfSupportChanged",y="conference.endpoint_message_received",g="conference.jvb121Status",b="conferenece.kicked",S="conference.lastNEndpointsChanged",E="conference.lock_state_changed",T="conference.messageReceived",_="conference.participant_conn_status_changed",C="conference.partcipant_features_changed",w="conference.participant_property_changed",R="conference.p2pStatus",k="conference.phoneNumberChanged",A="conference.recorderStateChanged",P="conference.videoSIPGWAvailabilityChanged",I="conference.start_muted_policy_changed",O="conference.started_muted",D="conference.subjectChanged",L="conference.suspendDetected",N="conference.talk_while_muted",M="conference.trackAdded",x="conference.audioLevelsChanged",j="conference.trackMuteChanged",F="conference.trackRemoved",U="conference.userJoined",B="conference.userLeft",J="conference.roleChanged",G="conference.statusChanged"},function(e,t,n){"use strict";(function(e){function r(e){y||(m.loadScript(e||"https://api.callstats.io/static/callstats-ws.min.js",!0,!0),y=!0)}function i(e){var t=new Error;return t.stack=e.stack,t.name=(e.name||"Unknown error")+(e.gum&&e.gum.error&&e.gum.error.name?" - "+e.gum.error.name:""),t.constraintName=e.gum&&e.gum.constraints?JSON.stringify(e.gum.constraints):"",t.message=e.message,t}function o(e,t){this.rtpStatsMap=new Map,this.eventEmitter=new f,this.xmpp=e,this.options=t||{},this.callStatsIntegrationEnabled=this.options.callStatsID&&this.options.callStatsSecret&&!0!==o.disableThirdPartyRequests,this.callStatsIntegrationEnabled&&(r(this.options.callStatsCustomScriptUrl),this.options.callStatsConfIDNamespace||h.warn('"callStatsConfIDNamespace" is not defined')),this.callsStatsInstances=new Map,o.instances.add(this)}t.a=o;var a=n(102),s=n(104),c=n(11),u=n(47),l=n(105),d=n(55),p=n(29),f=n(14),h=n(0).getLogger(e),m=n(49),v=void 0,y=!1;o.init=function(e){o.audioLevelsEnabled=!e.disableAudioLevels,"number"==typeof e.audioLevelsInterval&&(o.audioLevelsInterval=e.audioLevelsInterval),o.disableThirdPartyRequests=e.disableThirdPartyRequests},o.audioLevelsEnabled=!1,o.audioLevelsInterval=200,o.disableThirdPartyRequests=!1,o.analytics=a.a,Object.defineProperty(o,"instances",{get:function(){return v||(v=new Set),v}}),o.prototype.startRemoteStats=function(e){this.stopRemoteStats(e);try{var t=new l.a(e,o.audioLevelsInterval,2e3,this.eventEmitter);t.start(o.audioLevelsEnabled),this.rtpStatsMap.set(e.id,t)}catch(e){h.error("Failed to start collecting remote statistics: "+e)}},o.localStats=[],o.startLocalStats=function(e,t){if(o.audioLevelsEnabled){var n=new u.a(e,o.audioLevelsInterval,t);this.localStats.push(n),n.start()}},o.prototype.addAudioLevelListener=function(e){o.audioLevelsEnabled&&this.eventEmitter.on(d.a,e)},o.prototype.removeAudioLevelListener=function(e){o.audioLevelsEnabled&&this.eventEmitter.removeListener(d.a,e)},o.prototype.addBeforeDisposedListener=function(e){this.eventEmitter.on(d.b,e)},o.prototype.removeBeforeDisposedListener=function(e){this.eventEmitter.removeListener(d.b,e)},o.prototype.addConnectionStatsListener=function(e){this.eventEmitter.on(d.c,e)},o.prototype.removeConnectionStatsListener=function(e){this.eventEmitter.removeListener(d.c,e)},o.prototype.addByteSentStatsListener=function(e){this.eventEmitter.on(d.d,e)},o.prototype.removeByteSentStatsListener=function(e){this.eventEmitter.removeListener(d.d,e)},o.prototype.dispose=function(){try{this.callsStatsInstances.size||this.eventEmitter.emit(d.b);var e=!0,t=!1,n=void 0;try{for(var r,i=this.callsStatsInstances.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(e=(r=i.next()).done);e=!0){var a=r.value;this.stopCallStats(a.tpc)}}catch(e){t=!0,n=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}var s=!0,c=!1,u=void 0;try{for(var l,p=this.rtpStatsMap.keys()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(s=(l=p.next()).done);s=!0){var f=l.value;this._stopRemoteStats(f)}}catch(e){c=!0,u=e}finally{try{!s&&p.return&&p.return()}finally{if(c)throw u}}this.eventEmitter&&this.eventEmitter.removeAllListeners()}finally{o.instances.delete(this)}},o.stopLocalStats=function(e){if(o.audioLevelsEnabled)for(var t=0;t<o.localStats.length;t++)if(o.localStats[t].stream===e){var n=o.localStats.splice(t,1);n[0].stop();break}},o.prototype._stopRemoteStats=function(e){var t=this.rtpStatsMap.get(e);t&&(t.stop(),this.rtpStatsMap.delete(e))},o.prototype.stopRemoteStats=function(e){this._stopRemoteStats(e.id)},o.prototype.startCallStats=function(e,t){if(this.callStatsIntegrationEnabled){if(this.callsStatsInstances.has(e.id))return void h.error("CallStats instance for ${tpc} exists already");if(!s.a.isBackendInitialized()){var n=p.a.getCallStatsUserName();if(!s.a.initBackend({callStatsID:this.options.callStatsID,callStatsSecret:this.options.callStatsSecret,userName:n,aliasName:this.options.callStatsAliasName}))return}h.info("Starting CallStats for "+e+"...");var r=new s.a(e,{confID:this._getCallStatsConfID(),remoteUserID:t});this.callsStatsInstances.set(e.id,r)}},o._getAllCallStatsInstances=function(){var e=new Set,t=!0,n=!1,r=void 0;try{for(var i,a=o.instances["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(t=(i=a.next()).done);t=!0){var s=i.value,c=!0,u=!1,l=void 0;try{for(var d,p=s.callsStatsInstances.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(c=(d=p.next()).done);c=!0){var f=d.value;e.add(f)}}catch(e){u=!0,l=e}finally{try{!c&&p.return&&p.return()}finally{if(u)throw l}}}}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}return e},o.prototype._getCallStatsConfID=function(){return this.options.callStatsConfIDNamespace?this.options.callStatsConfIDNamespace+"/"+this.options.roomName:this.options.roomName},o.prototype.stopCallStats=function(e){var t=this.callsStatsInstances.get(e.id);t&&(1===this.callsStatsInstances.size&&this.eventEmitter.emit(d.b),this.callsStatsInstances.delete(e.id),t.sendTerminateEvent())},o.prototype.isCallstatsEnabled=function(){return this.callStatsIntegrationEnabled},o.prototype.sendConnectionResumeOrHoldEvent=function(e,t){var n=this.callsStatsInstances.get(e.id);n&&n.sendResumeOrHoldEvent(t)},o.prototype.sendIceConnectionFailedEvent=function(e){var t=this.callsStatsInstances.get(e.id);t&&t.sendIceConnectionFailedEvent(),o.analytics.sendEvent("connection.ice_failed")},o.prototype.sendMuteEvent=function(e,t,n){var r=e&&this.callsStatsInstances.get(e.id);s.a.sendMuteEvent(t,n,r)},o.prototype.sendScreenSharingEvent=function(e){var t=!0,n=!1,r=void 0;try{for(var i,o=this.callsStatsInstances.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(t=(i=o.next()).done);t=!0)i.value.sendScreenSharingEvent(e)}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}},o.prototype.sendDominantSpeakerEvent=function(){var e=!0,t=!1,n=void 0;try{for(var r,i=this.callsStatsInstances.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(e=(r=i.next()).done);e=!0)r.value.sendDominantSpeakerEvent()}catch(e){t=!0,n=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}},o.sendActiveDeviceListEvent=function(e){var t=o._getAllCallStatsInstances();if(t.size){var n=!0,r=!1,i=void 0;try{for(var a,c=t["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(n=(a=c.next()).done);n=!0){var u=a.value;s.a.sendActiveDeviceListEvent(e,u)}}catch(e){r=!0,i=e}finally{try{!n&&c.return&&c.return()}finally{if(r)throw i}}}else s.a.sendActiveDeviceListEvent(e,null)},o.prototype.associateStreamWithVideoTag=function(e,t,n,r,i,o){var a=this.callsStatsInstances.get(e.id);a&&a.associateStreamWithVideoTag(t,n,r,i,o)},o.sendGetUserMediaFailed=function(e){var t=e instanceof c.a?i(e):e,n=o._getAllCallStatsInstances();if(n.size){var r=!0,a=!1,u=void 0;try{for(var l,d=n["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(l=d.next()).done);r=!0){var p=l.value;s.a.sendGetUserMediaFailed(t,p)}}catch(e){a=!0,u=e}finally{try{!r&&d.return&&d.return()}finally{if(a)throw u}}}else s.a.sendGetUserMediaFailed(t,null)},o.prototype.sendCreateOfferFailed=function(e,t){var n=this.callsStatsInstances.get(t.id);n&&n.sendCreateOfferFailed(e)},o.prototype.sendCreateAnswerFailed=function(e,t){var n=this.callsStatsInstances.get(t.id);n&&n.sendCreateAnswerFailed(e)},o.prototype.sendSetLocalDescFailed=function(e,t){var n=this.callsStatsInstances.get(t.id);n&&n.sendSetLocalDescFailed(e)},o.prototype.sendSetRemoteDescFailed=function(e,t){var n=this.callsStatsInstances.get(t.id);n&&n.sendSetRemoteDescFailed(e)},o.prototype.sendAddIceCandidateFailed=function(e,t){var n=this.callsStatsInstances.get(t.id);n&&n.sendAddIceCandidateFailed(e)},o.sendLog=function(e){var t=new Set,n=!0,r=!1,i=void 0;try{for(var a,c=o.instances["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(n=(a=c.next()).done);n=!0){var u=a.value;u.callsStatsInstances.size&&t.add(u.callsStatsInstances.values().next().value)}}catch(e){r=!0,i=e}finally{try{!n&&c.return&&c.return()}finally{if(r)throw i}}if(t.size){var l=!0,d=!1,p=void 0;try{for(var f,h=t["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(l=(f=h.next()).done);l=!0){var m=f.value;s.a.sendApplicationLog(e,m)}}catch(e){d=!0,p=e}finally{try{!l&&h.return&&h.return()}finally{if(d)throw p}}}else s.a.sendApplicationLog(e,null)},o.prototype.sendFeedback=function(e,t){s.a.sendFeedback(this._getCallStatsConfID(),e,t),o.analytics.sendEvent("feedback.rating",{value:e,detailed:t})},o.LOCAL_JID=n(137).LOCAL_JID,o.reportGlobalError=function(e){e instanceof c.a&&e.gum?o.sendGetUserMediaFailed(e):o.sendLog(e)},o.sendEventToAll=function(e,t){this.analytics.sendEvent(e,t),o.sendLog(JSON.stringify({name:e,data:t}))}}).call(t,"modules/statistics/statistics.js")},function(e,t){var n={ADD_ICE_CANDIDATE_FAILED:"xmpp.add_ice_candidate_failed",AUDIO_MUTED_BY_FOCUS:"xmpp.audio_muted_by_focus",AUTHENTICATION_REQUIRED:"xmpp.authentication_required",BRIDGE_DOWN:"xmpp.bridge_down",CALL_ACCEPTED:"xmpp.callaccepted.jingle",CALL_INCOMING:"xmpp.callincoming.jingle",CALL_ENDED:"xmpp.callended.jingle",CHAT_ERROR_RECEIVED:"xmpp.chat_error_received",CONFERENCE_SETUP_FAILED:"xmpp.conference_setup_failed",CONNECTION_ESTABLISHED:"xmpp.connection.connected",CONNECTION_FAILED:"xmpp.connection.failed",CONNECTION_INTERRUPTED:"xmpp.connection.interrupted",CONNECTION_RESTORED:"xmpp.connection.restored",CONNECTION_ICE_FAILED:"xmpp.connection.ice.failed",DISPLAY_NAME_CHANGED:"xmpp.display_name_changed",EMUC_ROOM_ADDED:"xmpp.emuc_room_added",EMUC_ROOM_REMOVED:"xmpp.emuc_room_removed",ETHERPAD:"xmpp.etherpad",FOCUS_DISCONNECTED:"xmpp.focus_disconnected",FOCUS_LEFT:"xmpp.focus_left",GRACEFUL_SHUTDOWN:"xmpp.graceful_shutdown",ICE_RESTARTING:"rtc.ice_restarting",JINGLE_ERROR:"xmpp.jingle_error",JINGLE_FATAL_ERROR:"xmpp.jingle_fatal_error",KICKED:"xmpp.kicked",LOCAL_ROLE_CHANGED:"xmpp.localrole_changed",MESSAGE_RECEIVED:"xmpp.message_received",MUC_DESTROYED:"xmpp.muc_destroyed",MUC_JOINED:"xmpp.muc_joined",MUC_MEMBER_JOINED:"xmpp.muc_member_joined",MUC_MEMBER_LEFT:"xmpp.muc_member_left",MUC_LEFT:"xmpp.muc_left",MUC_ROLE_CHANGED:"xmpp.muc_role_changed",MUC_LOCK_CHANGED:"xmpp.muc_lock_changed",PARTICIPANT_AUDIO_MUTED:"xmpp.audio_muted",PARTICIPANT_VIDEO_MUTED:"xmpp.video_muted",PARTICIPANT_VIDEO_TYPE_CHANGED:"xmpp.video_type",PARTCIPANT_FEATURES_CHANGED:"xmpp.partcipant_features_changed",PASSWORD_REQUIRED:"xmpp.password_required",PEERCONNECTION_READY:"xmpp.peerconnection_ready",PHONE_NUMBER_CHANGED:"conference.phoneNumberChanged",PRESENCE_STATUS:"xmpp.presence_status",PROMPT_FOR_LOGIN:"xmpp.prompt_for_login",READY_TO_JOIN:"xmpp.ready_to_join",RECORDER_STATE_CHANGED:"xmpp.recorderStateChanged",REMOTE_STATS:"xmpp.remote_stats",RESERVATION_ERROR:"xmpp.room_reservation_error",ROOM_CONNECT_ERROR:"xmpp.room_connect_error",ROOM_CONNECT_NOT_ALLOWED_ERROR:"xmpp.room_connect_error.not_allowed",ROOM_JOIN_ERROR:"xmpp.room_join_error",ROOM_MAX_USERS_ERROR:"xmpp.room_max_users_error",SENDING_CHAT_MESSAGE:"xmpp.sending_chat_message",SESSION_ACCEPT_TIMEOUT:"xmpp.session_accept_timeout",START_MUTED_FROM_FOCUS:"xmpp.start_muted_from_focus",SUBJECT_CHANGED:"xmpp.subject_changed",SUSPEND_DETECTED:"xmpp.suspend_detected",TRANSPORT_INFO:"xmpp.transportinfo.jingle",VIDEO_SIP_GW_AVAILABILITY_CHANGED:"xmpp.videoSIPGWAvailabilityChanged",ICE_CONNECTION_STATE_CHANGED:"xmpp.ice_connection_state_changed"};e.exports=n},function(e,t){var n={CREATE_ANSWER_FAILED:"rtc.create_answer_failed",CREATE_OFFER_FAILED:"rtc.create_offer_failed",RTC_READY:"rtc.ready",DATA_CHANNEL_OPEN:"rtc.data_channel_open",ENDPOINT_CONN_STATUS_CHANGED:"rtc.endpoint_conn_status_changed",DOMINANT_SPEAKER_CHANGED:"rtc.dominant_speaker_changed",LASTN_ENDPOINT_CHANGED:"rtc.lastn_endpoint_changed",LASTN_VALUE_CHANGED:"rtc.lastn_value_changed",AVAILABLE_DEVICES_CHANGED:"rtc.available_devices_changed",TRACK_ATTACHED:"rtc.track_attached",REMOTE_TRACK_ADDED:"rtc.remote_track_added",REMOTE_TRACK_MUTE:"rtc.remote_track_mute",REMOTE_TRACK_REMOVED:"rtc.remote_track_removed",REMOTE_TRACK_UNMUTE:"rtc.remote_track_unmute",SET_LOCAL_DESCRIPTION_FAILED:"rtc.set_local_description_failed",SET_REMOTE_DESCRIPTION_FAILED:"rtc.set_remote_description_failed",AUDIO_OUTPUT_DEVICE_CHANGED:"rtc.audio_output_device_changed",DEVICE_LIST_CHANGED:"rtc.device_list_changed",DEVICE_LIST_AVAILABLE:"rtc.device_list_available",ENDPOINT_MESSAGE_RECEIVED:"rtc.endpoint_message_received",LOCAL_UFRAG_CHANGED:"rtc.local_ufrag_changed",REMOTE_UFRAG_CHANGED:"rtc.remote_ufrag_changed"};e.exports=n},function(e,t,n){function r(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function i(){var e=arguments,n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),!n)return e;var r="color: "+this.color;e=[e[0],r,"color: inherit"].concat(Array.prototype.slice.call(e,1));var i=0,o=0;return e[0].replace(/%[a-z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(o=i))}),e.splice(o,0,r),e}function o(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function s(){var e;try{e=t.storage.debug}catch(e){}return e}t=e.exports=n(155),t.log=o,t.formatArgs=i,t.save=a,t.load=s,t.useColors=r,t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){return JSON.stringify(e)},t.enable(s())},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(14),o=n.n(i),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new o.a;r(this,e),this.eventEmitter=t,this.addEventListener=this.on=this.addListener,this.removeEventListener=this.off=this.removeListener}return a(e,[{key:"addListener",value:function(e,t){this.eventEmitter.addListener(e,t)}},{key:"removeListener",value:function(e,t){this.eventEmitter.removeListener(e,t)}}]),e}();t.a=s},function(e,t,n){"use strict";function r(e,t,n){if("object"===(void 0===e?"undefined":a(e))&&void 0!==e.name)switch(this.gum={error:e,constraints:t,devices:n&&Array.isArray(n)?n.slice(0):void 0},e.name){case"PermissionDeniedError":case"SecurityError":this.name=o.PERMISSION_DENIED,this.message=s[this.name]+(this.gum.devices||[]).join(", ");break;case"DevicesNotFoundError":case"NotFoundError":this.name=o.NOT_FOUND,this.message=s[this.name]+(this.gum.devices||[]).join(", ");break;case"ConstraintNotSatisfiedError":case"OverconstrainedError":var r=e.constraintName||e.constraint;t&&t.video&&(!n||n.indexOf("video")>-1)&&("minWidth"===r||"maxWidth"===r||"minHeight"===r||"maxHeight"===r||"width"===r||"height"===r)?(this.name=o.UNSUPPORTED_RESOLUTION,this.message=s[this.name]+i(r,t)):(this.name=o.CONSTRAINT_FAILED,this.message=s[this.name]+e.constraintName);break;default:this.name=o.GENERAL,this.message=e.message||s[this.name]}else{if("string"!=typeof e)throw new Error("Invalid arguments");s[e]?(this.name=e,this.message=t||s[e]):this.message=e}this.stack=e.stack||(new Error).stack}function i(e,t){if(t&&t.video&&t.video.mandatory)switch(e){case"width":return t.video.mandatory.minWidth;case"height":return t.video.mandatory.minHeight;default:return t.video.mandatory[e]||""}return""}var o=n(15),a="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof e},s={};s[o.UNSUPPORTED_RESOLUTION]="Video resolution is not supported: ",s[o.FIREFOX_EXTENSION_NEEDED]="Firefox extension is not installed",s[o.CHROME_EXTENSION_INSTALLATION_ERROR]="Failed to install Chrome extension",s[o.CHROME_EXTENSION_USER_GESTURE_REQUIRED]="Failed to install Chrome extension - installations can only be initiated by a user gesture.",s[o.CHROME_EXTENSION_USER_CANCELED]="User canceled Chrome's screen sharing prompt",s[o.CHROME_EXTENSION_GENERIC_ERROR]="Unknown error from Chrome extension",s[o.ELECTRON_DESKTOP_PICKER_ERROR]="Unkown error from desktop picker",s[o.ELECTRON_DESKTOP_PICKER_NOT_FOUND]="Failed to detect desktop picker",s[o.GENERAL]="Generic getUserMedia error",s[o.PERMISSION_DENIED]="User denied permission to use device(s): ",s[o.NOT_FOUND]="Requested device(s) was/were not found: ",s[o.CONSTRAINT_FAILED]="Constraint could not be satisfied: ",s[o.TRACK_IS_DISPOSED]="Track has been already disposed",s[o.TRACK_NO_STREAM_FOUND]="Track does not have an associated Media Stream",s[o.NO_DATA_FROM_SOURCE]="The track has stopped receiving data from it's source",r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,t.a=r},function(e,t,n){"use strict";(function(e){var r=n(0),i=(n.n(r),n(19)),o=n.n(i),a=n(1),s=n.i(r.getLogger)(e),c={filterSpecialChars:function(e){return e?e.replace(/[\\\/\{,\}\+]/g,""):e},iceparams:function(e,t){var n=null,r=void 0,i=void 0;return(i=c.findLine(e,"a=ice-ufrag:",t))&&(r=c.findLine(e,"a=ice-pwd:",t))&&(n={ufrag:c.parseICEUfrag(i),pwd:c.parseICEPwd(r)}),n},parseICEUfrag:function(e){return e.substring(12)},buildICEUfrag:function(e){return"a=ice-ufrag:"+e},parseICEPwd:function(e){return e.substring(10)},buildICEPwd:function(e){return"a=ice-pwd:"+e},parseMID:function(e){return e.substring(6)},parseMLine:function(e){var t={},n=e.substring(2).split(" ");return t.media=n.shift(),t.port=n.shift(),t.proto=n.shift(),""===n[n.length-1]&&n.pop(),t.fmt=n,t},buildMLine:function(e){return"m="+e.media+" "+e.port+" "+e.proto+" "+e.fmt.join(" ")},parseRTPMap:function(e){var t={},n=e.substring(9).split(" ");return t.id=n.shift(),n=n[0].split("/"),t.name=n.shift(),t.clockrate=n.shift(),t.channels=n.length?n.shift():"1",t},parseSCTPMap:function(e){var t=e.substring(10).split(" ");return[t[0],t[1],t.length>2?t[2]:null]},buildRTPMap:function(e){var t="a=rtpmap:"+e.getAttribute("id")+" "+e.getAttribute("name")+"/"+e.getAttribute("clockrate");return e.getAttribute("channels")&&"1"!==e.getAttribute("channels")&&(t+="/"+e.getAttribute("channels")),t},parseCrypto:function(e){var t={},n=e.substring(9).split(" ");return t.tag=n.shift(),t["crypto-suite"]=n.shift(),t["key-params"]=n.shift(),n.length&&(t["session-params"]=n.join(" ")),t},parseFingerprint:function(e){var t={},n=e.substring(14).split(" ");return t.hash=n.shift(),t.fingerprint=n.shift(),t},parseFmtp:function(e){var t=[],n=e.split(" ");n.shift(),n=n.join(" ").split(";");for(var r=0;r<n.length;r++){for(var i=n[r].split("=")[0];i.length&&" "===i[0];)i=i.substring(1);var o=n[r].split("=")[1];i&&o?t.push({name:i,value:o}):i&&t.push({name:"",value:i})}return t},parseICECandidate:function(e){var t={},n=e.split(" ");t.foundation=n[0].substring(12),t.component=n[1],t.protocol=n[2].toLowerCase(),t.priority=n[3],t.ip=n[4],t.port=n[5],t.type=n[7],t.generation=0;for(var r=8;r<n.length;r+=2)switch(n[r]){case"raddr":t["rel-addr"]=n[r+1];break;case"rport":t["rel-port"]=n[r+1];break;case"generation":t.generation=n[r+1];break;case"tcptype":t.tcptype=n[r+1];break;default:s.log('parseICECandidate not translating "'+n[r]+'" = "'+n[r+1]+'"')}return t.network="1",t.id=Math.random().toString(36).substr(2,10),t},buildICECandidate:function(e){var t=["a=candidate:"+e.foundation,e.component,e.protocol,e.priority,e.ip,e.port,"typ",e.type].join(" ");switch(t+=" ",e.type){case"srflx":case"prflx":case"relay":e.hasOwnAttribute("rel-addr")&&e.hasOwnAttribute("rel-port")&&(t+="raddr",t+=" ",t+=e["rel-addr"],t+=" ",t+="rport",t+=" ",t+=e["rel-port"],t+=" ")}return e.hasOwnAttribute("tcptype")&&(t+="tcptype",t+=" ",t+=e.tcptype,t+=" "),t+="generation",t+=" ",t+=e.hasOwnAttribute("generation")?e.generation:"0"},parseSSRC:function(e){for(var t={},n=e.split("\r\n"),r=0;r<n.length;r++)if("a=ssrc:"===n[r].substring(0,7)){var i=n[r].indexOf(" ");t[n[r].substr(i+1).split(":",2)[0]]=n[r].substr(i+1).split(":",2)[1]}return t},parseRTCPFB:function(e){var t=e.substr(10).split(" "),n={};return n.pt=t.shift(),n.type=t.shift(),n.params=t,n},parseExtmap:function(e){var t=e.substr(9).split(" "),n={};return n.value=t.shift(),-1===n.value.indexOf("/")?n.direction="both":(n.direction=n.value.substr(n.value.indexOf("/")+1),n.value=n.value.substr(0,n.value.indexOf("/"))),n.uri=t.shift(),n.params=t,n},findLine:function(e,t,n){for(var r=e.split("\r\n"),i=0;i<r.length;i++)if(r[i].substring(0,t.length)===t)return r[i];if(!n)return!1;r=n.split("\r\n");for(var o=0;o<r.length;o++)if(r[o].substring(0,t.length)===t)return r[o];return!1},findLines:function(e,t,n){for(var r=e.split("\r\n"),i=[],o=0;o<r.length;o++)r[o].substring(0,t.length)===t&&i.push(r[o]);if(i.length||!n)return i;r=n.split("\r\n");for(var a=0;a<r.length;a++)r[a].substring(0,t.length)===t&&i.push(r[a]);return i},candidateToJingle:function(e){if(0===e.indexOf("candidate:"))e="a="+e;else if("a=candidate:"!==e.substring(0,12))return s.log("parseCandidate called with a line that is not a candidate line"),s.log(e),null;"\r\n"===e.substring(e.length-2)&&(e=e.substring(0,e.length-2));var t={},n=e.split(" ");if("typ"!==n[6])return s.log("did not find typ in the right place"),s.log(e),null;t.foundation=n[0].substring(12),t.component=n[1],
t.protocol=n[2].toLowerCase(),t.priority=n[3],t.ip=n[4],t.port=n[5],t.type=n[7],t.generation="0";for(var r=8;r<n.length;r+=2)switch(n[r]){case"raddr":t["rel-addr"]=n[r+1];break;case"rport":t["rel-port"]=n[r+1];break;case"generation":t.generation=n[r+1];break;case"tcptype":t.tcptype=n[r+1];break;default:s.log('not translating "'+n[r]+'" = "'+n[r+1]+'"')}return t.network="1",t.id=Math.random().toString(36).substr(2,10),t},candidateFromJingle:function(e){var t="a=candidate:";t+=e.getAttribute("foundation"),t+=" ",t+=e.getAttribute("component"),t+=" ";var n=e.getAttribute("protocol");switch(a.a.isFirefox()&&"ssltcp"===n.toLowerCase()&&(n="tcp"),t+=n,t+=" ",t+=e.getAttribute("priority"),t+=" ",t+=e.getAttribute("ip"),t+=" ",t+=e.getAttribute("port"),t+=" ",t+="typ",t+=" "+e.getAttribute("type"),t+=" ",e.getAttribute("type")){case"srflx":case"prflx":case"relay":e.getAttribute("rel-addr")&&e.getAttribute("rel-port")&&(t+="raddr",t+=" ",t+=e.getAttribute("rel-addr"),t+=" ",t+="rport",t+=" ",t+=e.getAttribute("rel-port"),t+=" ")}return"tcp"===n.toLowerCase()&&(t+="tcptype",t+=" ",t+=e.getAttribute("tcptype"),t+=" "),t+="generation",t+=" ",(t+=e.getAttribute("generation")||"0")+"\r\n"},parsePrimaryVideoSsrc:function(e){var t=e.ssrcs.map(function(e){return e.id}).filter(function(e,t,n){return n.indexOf(e)===t}).length,n=e.ssrcGroups&&e.ssrcGroups.length||0;if(!(t>1&&0===n)){var r=null;if(1===t)r=e.ssrcs[0].id;else if(2===t){var i=e.ssrcGroups.find(function(e){return"FID"===e.semantics});i&&(r=i.ssrcs.split(" ")[0])}else if(t>=3){var o=e.ssrcGroups.find(function(e){return"SIM"===e.semantics});o&&(r=o.ssrcs.split(" ")[0])}return r}},generateSsrc:function(){return o.a.randomInt(1,4294967295)},getSsrcAttribute:function(e,t,n){for(var r=0;r<e.ssrcs.length;++r){var i=e.ssrcs[r];if(i.id===t&&i.attribute===n)return i.value}},parseGroupSsrcs:function(e){return e.ssrcs.split(" ").map(function(e){return parseInt(e,10)})},getMedia:function(e,t){return e.media.find(function(e){return e.type===t})},getUfrag:function(e){var t=e.split("\n").filter(function(e){return e.startsWith("a=ice-ufrag:")});if(t.length>0)return t[0].substr("a=ice-ufrag:".length)},preferVideoCodec:function(e,t){var n=null;if(t){for(var r=0;r<e.rtp.length;++r){var i=e.rtp[r];if(i.codec&&i.codec.toLowerCase()===t.toLowerCase()){n=i.payload;break}}if(n){var o=e.payloads.split(" ").map(function(e){return parseInt(e,10)}),a=o.indexOf(n);o.splice(a,1),o.unshift(n),e.payloads=o.join(" ")}}}};t.a=c}).call(t,"modules/xmpp/SDPUtil.js")},function(e,t,n){var r=n(144),i=n(145);t.write=i,t.parse=r.parse,t.parseFmtpConfig=r.parseFmtpConfig,t.parseParams=r.parseParams,t.parsePayloads=r.parsePayloads,t.parseRemoteCandidates=r.parseRemoteCandidates,t.parseImageAttributes=r.parseImageAttributes,t.parseSimulcastStreamList=r.parseSimulcastStreamList},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"number"==typeof e}function o(e){return"object"===(void 0===e?"undefined":s(e))&&null!==e}function a(e){return void 0===e}var s="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof e};e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!i(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,i,s,c,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(n=this._events[e],a(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(o(n))for(s=Array.prototype.slice.call(arguments,1),u=n.slice(),i=u.length,c=0;c<i;c++)u[c].apply(this,s);return!0},n.prototype.addListener=function(e,t){var i;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned&&(i=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&i>0&&this._events[e].length>i&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,i,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,i=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){i=s;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],r(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"CHROME_EXTENSION_GENERIC_ERROR",function(){return r}),n.d(t,"CHROME_EXTENSION_INSTALLATION_ERROR",function(){return i}),n.d(t,"CHROME_EXTENSION_USER_GESTURE_REQUIRED",function(){return o}),n.d(t,"CHROME_EXTENSION_USER_CANCELED",function(){return a}),n.d(t,"CONSTRAINT_FAILED",function(){return s}),n.d(t,"ELECTRON_DESKTOP_PICKER_ERROR",function(){return c}),n.d(t,"ELECTRON_DESKTOP_PICKER_NOT_FOUND",function(){return u}),n.d(t,"FIREFOX_EXTENSION_NEEDED",function(){return l}),n.d(t,"GENERAL",function(){return d}),n.d(t,"NOT_FOUND",function(){return p}),n.d(t,"PERMISSION_DENIED",function(){return f}),n.d(t,"TRACK_IS_DISPOSED",function(){return h}),n.d(t,"TRACK_NO_STREAM_FOUND",function(){return m}),n.d(t,"UNSUPPORTED_RESOLUTION",function(){return v}),n.d(t,"NO_DATA_FROM_SOURCE",function(){return y});var r="gum.chrome_extension_generic_error",i="gum.chrome_extension_installation_error",o="gum.chrome_extension_user_gesture_required",a="gum.chrome_extension_user_canceled",s="gum.constraint_failed",c="gum.electron_desktop_picker_error",u="gum.electron_desktop_picker_not_found",l="gum.firefox_extension_needed",d="gum.general",p="gum.not_found",f="gum.permission_denied",h="track.track_is_disposed",m="track.no_stream_found",v="gum.unsupported_resolution",y="track.no_data_from_source"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"LOCAL_TRACK_STOPPED",function(){return r}),n.d(t,"TRACK_AUDIO_LEVEL_CHANGED",function(){return i}),n.d(t,"TRACK_AUDIO_OUTPUT_CHANGED",function(){return o}),n.d(t,"TRACK_MUTE_CHANGED",function(){return a}),n.d(t,"TRACK_VIDEOTYPE_CHANGED",function(){return s}),n.d(t,"NO_DATA_FROM_SOURCE",function(){return c});var r="track.stopped",i="track.audioLevelsChanged",o="track.audioOutputChanged",a="track.trackMuteChanged",s="track.videoTypeChanged",c="track.no_data_from_source"},function(e,t){var n={CAMERA:"camera",DESKTOP:"desktop"};e.exports=n},function(e,t,n){(function(e){function r(e,n){return n("b"+t.packets[e.type]+e.data.data)}function i(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var i=e.data,o=new Uint8Array(i),a=new Uint8Array(1+i.byteLength);a[0]=y[e.type];for(var s=0;s<o.length;s++)a[s+1]=o[s];return r(a.buffer)}function o(e,n,r){if(!n)return t.encodeBase64Packet(e,r);var i=new FileReader;return i.onload=function(){e.data=i.result,t.encodePacket(e,n,!0,r)},i.readAsArrayBuffer(e.data)}function a(e,n,r){if(!n)return t.encodeBase64Packet(e,r);if(v)return o(e,n,r);var i=new Uint8Array(1);return i[0]=y[e.type],r(new S([i.buffer,e.data]))}function s(e,t,n){for(var r=new Array(e.length),i=p(e.length,n),o=0;o<e.length;o++)!function(e,n,i){t(n,function(t,n){r[e]=n,i(t,r)})}(o,e[o],i)}var c=n(162),u=n(163),l=n(69),d=n(154),p=n(153),f=n(149),h=navigator.userAgent.match(/Android/i),m=/PhantomJS/i.test(navigator.userAgent),v=h||m;t.protocol=3;var y=t.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},g=c(y),b={type:"error",data:"parser error"},S=n(72);t.encodePacket=function(t,n,o,s){"function"==typeof n&&(s=n,n=!1),"function"==typeof o&&(s=o,o=null);var c=void 0===t.data?void 0:t.data.buffer||t.data;if(e.ArrayBuffer&&c instanceof ArrayBuffer)return i(t,n,s);if(S&&c instanceof e.Blob)return a(t,n,s);if(c&&c.base64)return r(t,s);var u=y[t.type];return void 0!==t.data&&(u+=o?f.encode(String(t.data)):String(t.data)),s(""+u)},t.encodeBase64Packet=function(n,r){var i="b"+t.packets[n.type];if(S&&n.data instanceof e.Blob){var o=new FileReader;return o.onload=function(){var e=o.result.split(",")[1];r(i+e)},o.readAsDataURL(n.data)}var a;try{a=String.fromCharCode.apply(null,new Uint8Array(n.data))}catch(e){for(var s=new Uint8Array(n.data),c=new Array(s.length),u=0;u<s.length;u++)c[u]=s[u];a=String.fromCharCode.apply(null,c)}return i+=e.btoa(a),r(i)},t.decodePacket=function(e,n,r){if("string"==typeof e||void 0===e){if("b"==e.charAt(0))return t.decodeBase64Packet(e.substr(1),n);if(r)try{e=f.decode(e)}catch(e){return b}var i=e.charAt(0);return Number(i)==i&&g[i]?e.length>1?{type:g[i],data:e.substring(1)}:{type:g[i]}:b}var o=new Uint8Array(e),i=o[0],a=l(e,1);return S&&"blob"===n&&(a=new S([a])),{type:g[i],data:a}},t.decodeBase64Packet=function(t,n){var r=g[t.charAt(0)];if(!e.ArrayBuffer)return{type:r,data:{base64:!0,data:t.substr(1)}};var i=d.decode(t.substr(1));return"blob"===n&&S&&(i=new S([i])),{type:r,data:i}},t.encodePayload=function(e,n,r){function i(e){return e.length+":"+e}function o(e,r){t.encodePacket(e,!!a&&n,!0,function(e){r(null,i(e))})}"function"==typeof n&&(r=n,n=null);var a=u(e);return n&&a?S&&!v?t.encodePayloadAsBlob(e,r):t.encodePayloadAsArrayBuffer(e,r):e.length?void s(e,o,function(e,t){return r(t.join(""))}):r("0:")},t.decodePayload=function(e,n,r){if("string"!=typeof e)return t.decodePayloadAsBinary(e,n,r);"function"==typeof n&&(r=n,n=null);var i;if(""==e)return r(b,0,1);for(var o,a,s="",c=0,u=e.length;c<u;c++){var l=e.charAt(c);if(":"!=l)s+=l;else{if(""==s||s!=(o=Number(s)))return r(b,0,1);if(a=e.substr(c+1,o),s!=a.length)return r(b,0,1);if(a.length){if(i=t.decodePacket(a,n,!0),b.type==i.type&&b.data==i.data)return r(b,0,1);if(!1===r(i,c+o,u))return}c+=o,s=""}}return""!=s?r(b,0,1):void 0},t.encodePayloadAsArrayBuffer=function(e,n){function r(e,n){t.encodePacket(e,!0,!0,function(e){return n(null,e)})}if(!e.length)return n(new ArrayBuffer(0));s(e,r,function(e,t){var r=t.reduce(function(e,t){var n;return n="string"==typeof t?t.length:t.byteLength,e+n.toString().length+n+2},0),i=new Uint8Array(r),o=0;return t.forEach(function(e){var t="string"==typeof e,n=e;if(t){for(var r=new Uint8Array(e.length),a=0;a<e.length;a++)r[a]=e.charCodeAt(a);n=r.buffer}i[o++]=t?0:1;for(var s=n.byteLength.toString(),a=0;a<s.length;a++)i[o++]=parseInt(s[a]);i[o++]=255;for(var r=new Uint8Array(n),a=0;a<r.length;a++)i[o++]=r[a]}),n(i.buffer)})},t.encodePayloadAsBlob=function(e,n){function r(e,n){t.encodePacket(e,!0,!0,function(e){var t=new Uint8Array(1);if(t[0]=1,"string"==typeof e){for(var r=new Uint8Array(e.length),i=0;i<e.length;i++)r[i]=e.charCodeAt(i);e=r.buffer,t[0]=0}for(var o=e instanceof ArrayBuffer?e.byteLength:e.size,a=o.toString(),s=new Uint8Array(a.length+1),i=0;i<a.length;i++)s[i]=parseInt(a[i]);if(s[a.length]=255,S){var c=new S([t.buffer,s.buffer,e]);n(null,c)}})}s(e,r,function(e,t){return n(new S(t))})},t.decodePayloadAsBinary=function(e,n,r){"function"==typeof n&&(r=n,n=null);for(var i=e,o=[],a=!1;i.byteLength>0;){for(var s=new Uint8Array(i),c=0===s[0],u="",d=1;255!=s[d];d++){if(u.length>310){a=!0;break}u+=s[d]}if(a)return r(b,0,1);i=l(i,2+u.length),u=parseInt(u);var p=l(i,0,u);if(c)try{p=String.fromCharCode.apply(null,new Uint8Array(p))}catch(e){var f=new Uint8Array(p);p="";for(var d=0;d<f.length;d++)p+=String.fromCharCode(f[d])}o.push(p),i=l(i,u)}var h=o.length;o.forEach(function(e,i){r(t.decodePacket(e,n,!0),i,h)})}}).call(t,n(2))},function(e,t){function n(e,t){return Math.floor(Math.random()*(t-e+1))+e}function r(e){return e[n(0,e.length-1)]}function i(e){for(var t="",n=0;n<e;n+=1)t+=r(o);return t}var o="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",a={randomHexDigit:function(){return r("0123456789abcdef")},randomHexString:function(e){for(var t="";e--;)t+=this.randomHexDigit();return t},randomElement:r,randomAlphanumStr:i,randomInt:n};e.exports=a},function(e,t,n){"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){function e(){o(this,e)}return e}();return function(e){function t(){var e;o(this,t);for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];var s=r(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i)));return s.connection=null,s}return i(t,e),c(t,[{key:"init",value:function(e){this.connection=e}}]),t}(e)}n.d(t,"b",function(){return u});var s=n(10),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.a=a();var u=a(s.a)},function(e,t){e.exports=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){var n=[],r=null;return e.forEach(function(e){e.mediaType===v.a?r=t.micDeviceId:e.videoType===T.a.CAMERA&&(r=t.cameraDeviceId),R+=1;var i=new p.a(C({},e,{deviceId:r,facingMode:t.facingMode,rtcId:R}));n.push(i)}),n}var s=n(0),c=(n.n(s),n(88)),u=n(3),l=n.n(u),d=n(5),p=n(89),f=n(11),h=n(15),m=n(10),v=n(4),y=n(8),g=n.n(y),b=n(23),S=n(94),E=n(17),T=n.n(E),_=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w=n.i(s.getLogger)(e),R=0,k=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t);var o=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.conference=e,o.peerConnections=new Map,o.peerConnectionIdCounter=1,o.localTracks=[],o.options=n,o._channel=null,o._channelOpen=!1,o._lastN=-1,o._lastNEndpoints=null,o._pinnedEndpoint=null,o._selectedEndpoint=null,o._lastNChangeListener=o._onLastNChanged.bind(o),b.a.isDeviceChangeAvailable("output")&&b.a.addListener(g.a.AUDIO_OUTPUT_DEVICE_CHANGED,function(e){var t=o.getRemoteTracks(v.a),n=!0,r=!1,i=void 0;try{for(var a,s=t["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(n=(a=s.next()).done);n=!0)a.value.setAudioOutput(e)}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}}),o}return o(t,e),_(t,[{key:"initializeBridgeChannel",value:function(e,t){var n=this;this._channel=new c.a(e,t,this.eventEmitter),this._channelOpenListener=function(){n._channelOpen=!0;try{n._channel.sendPinnedEndpointMessage(n._pinnedEndpoint),n._channel.sendSelectedEndpointMessage(n._selectedEndpoint)}catch(e){l.a.callErrorHandler(e),w.error("Cannot send selected("+n._selectedEndpoint+")pinned("+n._pinnedEndpoint+") endpoint message.",e)}n.removeListener(g.a.DATA_CHANNEL_OPEN,n._channelOpenListener),n._channelOpenListener=null,-1!==n._lastN&&n._channel.sendSetLastNMessage(n._lastN)},this.addListener(g.a.DATA_CHANNEL_OPEN,this._channelOpenListener),this.addListener(g.a.LASTN_ENDPOINT_CHANGED,this._lastNChangeListener)}},{key:"_onLastNChanged",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=this._lastNEndpoints||[],r=[],i=[];this._lastNEndpoints=t,r=n.filter(function(t){return!e.isInLastN(t)}),i=t.filter(function(e){return-1===n.indexOf(e)}),this.conference.eventEmitter.emit(d.LAST_N_ENDPOINTS_CHANGED,r,i)}},{key:"onCallEnded",value:function(){this._channel&&(this._channel&&"websocket"===this._channel.mode&&this._channel.close(),this._channel=null,this._channelOpen=!1)}},{key:"setReceiverVideoConstraint",value:function(e){this._channel&&this._channel.sendReceiverVideoConstraintMessage(e)}},{key:"selectEndpoint",value:function(e){this._selectedEndpoint=e,this._channel&&this._channelOpen&&this._channel.sendSelectedEndpointMessage(e)}},{key:"pinEndpoint",value:function(e){this._pinnedEndpoint=e,this._channel&&this._channelOpen&&this._channel.sendPinnedEndpointMessage(e)}},{key:"createPeerConnection",value:function(e,n,r,i){var o=new S.a(this,this.peerConnectionIdCounter,e,n,t.getPCConstraints(r),r,i);return this.peerConnections.set(o.id,o),this.peerConnectionIdCounter+=1,o}},{key:"_removePeerConnection",value:function(e){var t=e.id;return!!this.peerConnections.has(t)&&(this.peerConnections.delete(t),!0)}},{key:"addLocalTrack",value:function(e){if(!e)throw new Error("track must not be null nor undefined");this.localTracks.push(e),e.conference=this.conference}},{key:"getLastN",value:function(){return this._lastN}},{key:"getLocalVideoTrack",value:function(){var e=this.getLocalTracks(v.b);return e.length?e[0]:void 0}},{key:"getLocalAudioTrack",value:function(){var e=this.getLocalTracks(v.a);return e.length?e[0]:void 0}},{key:"getLocalTracks",value:function(e){var t=this.localTracks.slice();return void 0!==e&&(t=t.filter(function(t){return t.getType()===e})),t}},{key:"getRemoteTracks",value:function(e){var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=this.peerConnections.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(n=(o=a.next()).done);n=!0){var s=o.value,c=s.getRemoteTracks(void 0,e);c&&(t=t.concat(c))}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return t}},{key:"setAudioMute",value:function(e){var t=[];return this.getLocalTracks(v.a).forEach(function(n){t.push(e?n.mute():n.unmute())}),Promise.all(t)}},{key:"removeLocalTrack",value:function(e){var t=this.localTracks.indexOf(e);-1!==t&&this.localTracks.splice(t,1)}},{key:"removeRemoteTracks",value:function(e){var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=this.peerConnections.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(n=(o=a.next()).done);n=!0){var s=o.value,c=s.removeRemoteTracks(e);t=t.concat(c)}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return w.debug("Removed remote tracks for "+e+" count: "+t.length),t}},{key:"closeBridgeChannel",value:function(){this._channel&&(this._channel.close(),this._channelOpen=!1,this.removeListener(g.a.LASTN_ENDPOINT_CHANGED,this._lastNChangeListener))}},{key:"setAudioLevel",value:function(e,t,n,r){var i=e.getTrackBySSRC(t);if(i){if(!i.isAudioTrack())return void w.warn("Received audio level for non-audio track: "+t);i.isLocal()!==r&&w.error(i+" was expected to "+(r?"be":"not be")+" local"),i.setAudioLevel(n,e)}}},{key:"sendChannelMessage",value:function(e,t){if(!this._channel)throw new Error("Channel support is disabled!");this._channel.sendMessage(e,t)}},{key:"setLastN",value:function(e){this._lastN!==e&&(this._lastN=e,this._channel&&this._channelOpen&&this._channel.sendSetLastNMessage(e),this.eventEmitter.emit(g.a.LASTN_VALUE_CHANGED,e))}},{key:"isInLastN",value:function(e){return!this._lastNEndpoints||this._lastNEndpoints.indexOf(e)>-1}}],[{key:"obtainAudioAndVideoPermissions",value:function(e){return b.a.obtainAudioAndVideoPermissions(e).then(function(t){var n=a(t,e);return n.some(function(e){return!e._isReceivingData()})?Promise.reject(new f.a(h.NO_DATA_FROM_SOURCE)):n})}},{key:"addListener",value:function(e,t){b.a.addListener(e,t)}},{key:"removeListener",value:function(e,t){b.a.removeListener(e,t)}},{key:"isRTCReady",value:function(){return b.a.isRTCReady()}},{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options=e,b.a.init(this.options)}},{key:"getDeviceAvailability",value:function(){return b.a.getDeviceAvailability()}},{key:"getPCConstraints",value:function(e){return e?b.a.p2pPcConstraints:b.a.pcConstraints}},{key:"attachMediaStream",value:function(e,t){return b.a.attachMediaStream(e,t)}},{key:"getStreamID",value:function(e){return b.a.getStreamID(e)}},{key:"getTrackID",value:function(e){return b.a.getTrackID(e)}},{key:"isDeviceListAvailable",value:function(){return b.a.isDeviceListAvailable()}},{key:"isDeviceChangeAvailable",value:function(e){return b.a.isDeviceChangeAvailable(e)}},{key:"getAudioOutputDevice",value:function(){return b.a.getAudioOutputDevice()}},{key:"getCurrentlyAvailableMediaDevices",value:function(){return b.a.getCurrentlyAvailableMediaDevices()}},{key:"getEventDataForActiveDevice",value:function(e){return b.a.getEventDataForActiveDevice(e)}},{key:"setAudioOutputDevice",value:function(e){return b.a.setAudioOutputDevice(e)}},{key:"isUserStream",value:function(e){return t.isUserStreamById(b.a.getStreamID(e))}},{key:"isUserStreamById",value:function(e){return e&&"mixedmslabel"!==e&&"default"!==e}},{key:"enumerateDevices",value:function(e){b.a.enumerateDevices(e)}},{key:"stopMediaStream",value:function(e){b.a.stopMediaStream(e)}},{key:"isDesktopSharingEnabled",value:function(){return b.a.isDesktopSharingEnabled()}}]),t}(m.a);t.a=k}).call(t,"modules/RTC/RTC.js")},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function s(){ce=navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices?function(e){navigator.mediaDevices.enumerateDevices().then(e,function(){return e([])})}:MediaStreamTrack&&MediaStreamTrack.getSources?function(e){MediaStreamTrack.getSources(function(t){return e(t.map(y))})}:void 0}function c(e,t,n){M.a[n]&&(t&&(e.video.width={ideal:M.a[n].width},e.video.height={ideal:M.a[n].height}),e.video.mandatory.minWidth=M.a[n].width,e.video.mandatory.minHeight=M.a[n].height),e.video.mandatory.minWidth&&(e.video.mandatory.maxWidth=e.video.mandatory.minWidth),e.video.mandatory.minHeight&&(e.video.mandatory.maxHeight=e.video.mandatory.minHeight)}function u(e,t){var n={audio:!1,video:!1},r=x.a.isFirefox()||x.a.isEdge()||x.a.isReactNative()||x.a.isTemasysPluginUsed();if(e.indexOf("video")>=0){if(n.video={mandatory:{},optional:[]},t.cameraDeviceId)r&&(n.video.deviceId=t.cameraDeviceId),n.video.optional.push({sourceId:t.cameraDeviceId});else{var i=t.facingMode||w.a.USER;r&&(n.video.facingMode=i),n.video.optional.push({facingMode:i})}(t.minFps||t.maxFps||t.fps)&&((t.minFps||t.fps)&&(t.minFps=t.minFps||t.fps,n.video.mandatory.minFrameRate=t.minFps),t.maxFps&&(n.video.mandatory.maxFrameRate=t.maxFps)),c(n,r,t.resolution)}if(e.indexOf("audio")>=0&&(x.a.isReactNative()?n.audio=!0:x.a.isFirefox()?t.micDeviceId?n.audio={mandatory:{},deviceId:t.micDeviceId,optional:[{sourceId:t.micDeviceId}]}:n.audio=!0:(n.audio={mandatory:{},optional:[]},t.micDeviceId&&(r&&(n.audio.deviceId=t.micDeviceId),n.audio.optional.push({sourceId:t.micDeviceId})),n.audio.optional.push({echoCancellation:!te&&!ee},{googEchoCancellation:!te&&!ee},{googAutoGainControl:!re&&!ee},{googNoiseSupression:!ne&&!ee},{googHighpassFilter:!ie&&!ee},{googNoiseSuppression2:!ne&&!ee},{googEchoCancellation2:!te&&!ee},{googAutoGainControl2:!re&&!ee}))),e.indexOf("screen")>=0)if(x.a.isChrome())n.video={mandatory:{chromeMediaSource:"screen",maxWidth:window.screen.width,maxHeight:window.screen.height,maxFrameRate:3},optional:[]};else if(x.a.isTemasysPluginUsed())n.video={optional:[{sourceId:q.WebRTCPlugin.plugin.screensharingKey}]};else if(x.a.isFirefox())n.video={mozMediaSource:"window",mediaSource:"window"};else{var o="'screen' WebRTC media source is supported only in Chrome and with Temasys plugin";I.a.callErrorHandler(new Error(o)),K.error(o)}return e.indexOf("desktop")>=0&&(n.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t.desktopStream,maxWidth:window.screen.width,maxHeight:window.screen.height,maxFrameRate:3},optional:[]}),t.bandwidth&&(n.video||(n.video={mandatory:{},optional:[]}),n.video.optional.push({bandwidth:t.bandwidth})),x.a.isFirefox()&&t.firefox_fake_device&&(n.fake=!0),n}function l(e,t){var n=t&&t.getAudioTracks().length>0,r=t&&t.getVideoTracks().length>0;-1!==e.indexOf("video")&&(Q.video=r),-1!==e.indexOf("audio")&&(Q.audio=n),z.emit(F.a.AVAILABLE_DEVICES_CHANGED,Q)}function d(e){function t(e){return JSON.stringify({kind:e.kind,deviceId:e.deviceId,groupId:e.groupId,label:e.label,facing:e.facing})}return e.length!==se.length||e.map(t).sort().join("")!==se.map(t).sort().join("")}function p(){ce&&ce(function(e){void 0===se?se=e.slice(0):d(e)&&f(e),window.setTimeout(p,X)})}function f(e){se=e.slice(0),K.info("list of media devices has changed:",se);var t=se.filter(function(e){return"videoinput"===e.kind}),n=se.filter(function(e){return"audioinput"===e.kind}),r=t.filter(function(e){return""===e.label}),i=n.filter(function(e){return""===e.label});t.length&&t.length===r.length&&(Q.video=!1),n.length&&n.length===i.length&&(Q.audio=!1),z.emit(F.a.DEVICE_LIST_CHANGED,e)}function h(e,t){e&&e.apply(void 0,a(t))}function m(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?function(t,n,r){return e(t).then(function(e){return h(n,[e]),e}).catch(function(e){throw h(r,[e]),e})}:function(t,n,r){e(t,function(e){h(n,[e])},function(e){h(r,[e])})}}function v(e){MediaStreamTrack.getSources(function(t){return e(t.map(y))})}function y(e){var t=(e.kind||"").toLowerCase();return{facing:e.facing||null,label:e.label,kind:t?"audiooutput"===t?t:t+"input":null,deviceId:e.id,groupId:e.groupId||null}}function g(e,t){var n=void 0,r=void 0,i=void 0,o=[];if(e){var a=e.audioVideo;if(a){var s=window.webkitMediaStream||window.MediaStream,c=a.getAudioTracks();if(c.length){n=new s;for(var u=0;u<c.length;u++)n.addTrack(c[u])}var l=a.getVideoTracks();if(l.length){i=new s;for(var d=0;d<l.length;d++)i.addTrack(l[d])}}else n=e.audio,i=e.video;r=e.desktop}if(r){var p=r,f=p.stream,h=p.sourceId,m=p.sourceType;o.push({stream:f,sourceId:h,sourceType:m,track:f.getVideoTracks()[0],mediaType:L.b,videoType:H.a.DESKTOP})}return n&&o.push({stream:n,track:n.getAudioTracks()[0],mediaType:L.a,videoType:null}),i&&o.push({stream:i,track:i.getVideoTracks()[0],mediaType:L.b,videoType:H.a.CAMERA,resolution:t}),o}function b(e,t){var n="srcObject";if(n in e||(n="mozSrcObject")in e||(n=null),n)return void(e[n]=t);var r=void 0;t&&((r=t.jitsiObjectURL)||(t.jitsiObjectURL=r=(URL||webkitURL).createObjectURL(t))),e.src=r||""}function S(e,t){var n=new Error(e);n.name="WEBRTC_NOT_SUPPORTED",K.error(e),t(n)}function E(e){if(!e.devices||0===e.devices.length)return e.successCallback(e.streams||{});var t=e.devices.splice(0,1);e.deviceGUM[t](function(n){e.streams=e.streams||{},e.streams[t]=n,E(e)},function(n){Object.keys(e.streams).forEach(function(t){return pe.stopMediaStream(e.streams[t])}),K.error("failed to obtain "+t+" stream - stop",n),e.errorCallback(n)})}function T(e,t){le=!0,z.emit(F.a.RTC_READY,!0),B.a.init(e,t),pe.isDeviceListAvailable()&&ce&&ce(function(e){se=e.splice(0),z.emit(F.a.DEVICE_LIST_AVAILABLE,se),ue?navigator.mediaDevices.addEventListener("devicechange",function(){return pe.enumerateDevices(f)}):p()})}function _(e){return function(t,n){var r=e.apply(pe,arguments);return n&&pe.isDeviceChangeAvailable("output")&&n.getAudioTracks&&n.getAudioTracks().length&&Z&&t.setSinkId(pe.getAudioOutputDevice()).catch(function(e){var n=new O.a(e,null,["audiooutput"]);I.a.callUnhandledRejectionHandler({promise:this,reason:n}),K.warn("Failed to set audio output device for the element. Default audio output device will be used instead",t,n)}),r}}var C=n(52),w=n.n(C),R=n(14),k=n.n(R),A=n(0),P=(n.n(A),n(3)),I=n.n(P),O=n(11),D=n(10),L=n(4),N=n(31),M=n.n(N),x=n(1),j=n(8),F=n.n(j),U=n(95),B=n(93),J=n(12),G=n(17),H=n.n(G),V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),K=n.i(A.getLogger)(e),q=x.a.isTemasysPluginUsed()?n(33):void 0,z=new k.a,X=3e3,Q={audio:!1,video:!1},Y="default",Z=!1,ee=!1,te=!1,ne=!1,re=!1,ie=!1,oe=document.createElement("audio"),ae=void 0!==oe.setSinkId,se=void 0,ce=void 0,ue=!1,le=!1,de=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,z))}return o(t,e),W(t,[{key:"init",value:function(e){
var t=this;return"boolean"==typeof e.disableAEC&&(te=e.disableAEC,K.info("Disable AEC: "+te)),"boolean"==typeof e.disableNS&&(ne=e.disableNS,K.info("Disable NS: "+ne)),"boolean"==typeof e.disableAP&&(ee=e.disableAP,K.info("Disable AP: "+ee)),"boolean"==typeof e.disableAGC&&(re=e.disableAGC,K.info("Disable AGC: "+re)),"boolean"==typeof e.disableHPF&&(ie=e.disableHPF,K.info("Disable HPF: "+ie)),s(),new Promise(function(n,r){if(x.a.isFirefox()){var i=x.a.getFirefoxVersion();if(i<40)return void S("Firefox version too old: "+i+". Required >= 40.",r);t.RTCPeerConnectionType=mozRTCPeerConnection,t.getUserMedia=m(navigator.mozGetUserMedia.bind(navigator)),t.enumerateDevices=ce,t.pcConstraints={},t.attachMediaStream=_(function(e,t){return e&&(b(e,t),t&&e.play()),e}),t.getStreamID=function(e){var t=e.id;if(!t){var n=e.getVideoTracks();n&&0!==n.length||(n=e.getAudioTracks()),t=n[0].id}return J.a.filterSpecialChars(t)},t.getTrackID=function(e){return e.id},RTCSessionDescription=mozRTCSessionDescription,RTCIceCandidate=mozRTCIceCandidate}else if(x.a.isChrome()||x.a.isOpera()||x.a.isNWJS()||x.a.isElectron()||x.a.isReactNative()){t.RTCPeerConnectionType=webkitRTCPeerConnection;var o=navigator.webkitGetUserMedia.bind(navigator);t.getUserMedia=m(o),t.enumerateDevices=ce,t.attachMediaStream=_(function(e,t){return b(e,t),e}),t.getStreamID=function(e){var t=e.id;return"number"==typeof t?t:J.a.filterSpecialChars(t)},t.getTrackID=function(e){return e.id},t.pcConstraints={optional:[]},e.useIPv6&&t.pcConstraints.optional.push({googIPv6:!0}),webkitMediaStream.prototype.getVideoTracks||(webkitMediaStream.prototype.getVideoTracks=function(){return this.videoTracks}),webkitMediaStream.prototype.getAudioTracks||(webkitMediaStream.prototype.getAudioTracks=function(){return this.audioTracks}),t.p2pPcConstraints=JSON.parse(JSON.stringify(t.pcConstraints)),e.disableSuspendVideo||t.pcConstraints.optional.push({googSuspendBelowMinBitrate:!0}),t.p2pPcConstraints.optional.push({googSuspendBelowMinBitrate:!0})}else if(x.a.isEdge())t.RTCPeerConnectionType=U.a,t.getUserMedia=m(navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices),!0),t.enumerateDevices=ce,t.attachMediaStream=_(function(e,t){return b(e,t),e}),t.getStreamID=function(e){var t=e.jitsiRemoteId||e.id;return J.a.filterSpecialChars(t)},t.getTrackID=function(e){return e.jitsiRemoteId||e.id};else{if(!x.a.isTemasysPluginUsed())return void S("Browser does not appear to be WebRTC-capable",r);var a=function(){t.RTCPeerConnectionType=RTCPeerConnection,t.getUserMedia=window.getUserMedia,t.enumerateDevices=v,t.attachMediaStream=_(function(e,t){if(t){if("dummyAudio"===t.id||"dummyVideo"===t.id)return;var n=$(e);if(x.a.isTemasysPluginUsed()&&!n.is(":visible")&&n.show(),t.getVideoTracks().length>0&&!$(e).is(":visible"))throw new Error("video element must be visible to attach video stream")}return attachMediaStream(e,t)}),t.getStreamID=function(e){return J.a.filterSpecialChars(e.label)},t.getTrackID=function(e){return e.id},T(e,t.getUserMediaWithConstraints.bind(t))},s=new Promise(function(e){return q.webRTCReady(e)});q.WebRTCPlugin.isPluginInstalled(q.WebRTCPlugin.pluginInfo.prefix,q.WebRTCPlugin.pluginInfo.plugName,q.WebRTCPlugin.pluginInfo.type,function(){s.then(function(){a(),n()})},function(){var e=new Error("Temasys plugin is not installed");e.name="WEBRTC_NOT_READY",e.webRTCReadyPromise=s,r(e)})}t.p2pPcConstraints=t.p2pPcConstraints||t.pcConstraints,x.a.isTemasysPluginUsed()||(T(e,t.getUserMediaWithConstraints.bind(t)),n())})}},{key:"getUserMediaWithConstraints",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=u(e,r);K.info("Get media constraints",i);try{this.getUserMedia(i,function(n){K.log("onUserMediaSuccess"),l(e,n),t(n)},function(t){l(e,void 0),K.warn("Failed to get access to local media. Error ",t,i),n&&n(new O.a(t,i,e))})}catch(t){K.error("GUM failed: ",t),n&&n(new O.a(t,i,e))}}},{key:"obtainAudioAndVideoPermissions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this,r=V({},t.desktopSharingExtensionExternalInstallation,{desktopSharingSources:t.desktopSharingSources});return new Promise(function(i,o){var a=function(e){i(g(e,t.resolution))};if(t.devices=t.devices||["audio","video"],B.a.isSupported()||-1===t.devices.indexOf("desktop")||o(new Error("Desktop sharing is not supported!")),x.a.isFirefox()||x.a.isReactNative()||x.a.isTemasysPluginUsed()){var s=function(e,n,r){this.getUserMediaWithConstraints(e,n,r,t)},c={audio:s.bind(n,["audio"]),video:s.bind(n,["video"])};B.a.isSupported()&&(c.desktop=B.a.obtainStream.bind(B.a,r)),E({devices:t.devices,streams:[],successCallback:a,errorCallback:o,deviceGUM:c})}else{var l=t.devices.indexOf("desktop")>-1;l&&t.devices.splice(t.devices.indexOf("desktop"),1),t.resolution=t.resolution||"360",t.devices.length?e.getUserMediaWithConstraints(t.devices,function(e){var i=-1!==t.devices.indexOf("audio"),s=-1!==t.devices.indexOf("video"),c=e.getAudioTracks().length>0,d=e.getVideoTracks().length>0;if(i&&!c||s&&!d){n.stopMediaStream(e);var p=[];return i&&!c&&p.push("audio"),s&&!d&&p.push("video"),void n.getUserMediaWithConstraints(p,function(){o(new O.a({name:"UnknownError"},u(t.devices,t),p))},function(e){o(e)},t)}l?B.a.obtainStream(r,function(t){a({audioVideo:e,desktop:t})},function(t){n.stopMediaStream(e),o(t)}):a({audioVideo:e})},function(e){return o(e)},t):l&&B.a.obtainStream(r,function(e){return a({desktop:e})},function(e){return o(e)})}})}},{key:"getDeviceAvailability",value:function(){return Q}},{key:"isRTCReady",value:function(){return le}},{key:"_isDeviceListAvailable",value:function(){if(!le)throw new Error("WebRTC not ready yet");return Boolean(navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices||"undefined"!=typeof MediaStreamTrack&&MediaStreamTrack.getSources)}},{key:"onRTCReady",value:function(){return le?Promise.resolve():new Promise(function(e){var t=function t(){z.removeListener(F.a.RTC_READY,t),e()};z.addListener(F.a.RTC_READY,t)})}},{key:"isDeviceListAvailable",value:function(){return this.onRTCReady().then(this._isDeviceListAvailable.bind(this))}},{key:"isDeviceChangeAvailable",value:function(e){return"output"===e||"audiooutput"===e?ae:x.a.isChrome()||x.a.isFirefox()||x.a.isOpera()||x.a.isTemasysPluginUsed()||x.a.isNWJS()||x.a.isElectron()||x.a.isEdge()}},{key:"stopMediaStream",value:function(e){e.getTracks().forEach(function(e){!x.a.isTemasysPluginUsed()&&e.stop&&e.stop()}),e.stop&&e.stop(),e.release&&e.release();var t=e.jitsiObjectURL;t&&(delete e.jitsiObjectURL,(URL||webkitURL).revokeObjectURL(t))}},{key:"isDesktopSharingEnabled",value:function(){return B.a.isSupported()}},{key:"setAudioOutputDevice",value:function(e){return this.isDeviceChangeAvailable("output")||Promise.reject(new Error("Audio output device change is not supported")),oe.setSinkId(e).then(function(){Y=e,Z=!0,K.log("Audio output device set to "+e),z.emit(F.a.AUDIO_OUTPUT_DEVICE_CHANGED,e)})}},{key:"getAudioOutputDevice",value:function(){return Y}},{key:"getCurrentlyAvailableMediaDevices",value:function(){return se}},{key:"getEventDataForActiveDevice",value:function(e){var t=[],n={deviceId:e.deviceId,kind:e.kind,label:e.label,groupId:e.groupId};return t.push(n),{deviceList:t}}}]),t}(D.a),pe=new de;t.a=pe}).call(t,"modules/RTC/RTCUtils.js")},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e){return parseInt(e.ssrcs.split(" ")[0],10)}function o(e){return parseInt(e.ssrcs.split(" ")[1],10)}function a(e){return e.ssrcs?e.ssrcs.map(function(e){return e.id}).filter(function(e,t,n){return n.indexOf(e)===t}).length:0}t.c=i,t.b=o,n.d(t,"a",function(){return l});var s=n(13),c=(n.n(s),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),u=function(){function e(t){if(r(this,e),!t)throw new Error("mLine is undefined");this.mLine=t}return c(e,[{key:"getSSRCAttrValue",value:function(e,t){var n=this.ssrcs.find(function(n){return n.id===e&&n.attribute===t});return n&&n.value}},{key:"removeSSRC",value:function(e){this.mLine.ssrcs&&this.mLine.ssrcs.length&&(this.mLine.ssrcs=this.mLine.ssrcs.filter(function(t){return t.id!==e}))}},{key:"addSSRCAttribute",value:function(e){this.ssrcs.push(e)}},{key:"findGroup",value:function(e,t){return this.ssrcGroups.find(function(n){return n.semantics===e&&(!t||t===n.ssrcs)})}},{key:"findGroups",value:function(e){return this.ssrcGroups.filter(function(t){return t.semantics===e})}},{key:"findGroupByPrimarySSRC",value:function(e,t){return this.ssrcGroups.find(function(n){return n.semantics===e&&i(n)===t})}},{key:"findSSRCByMSID",value:function(e){return this.ssrcs.find(function(t){return"msid"===t.attribute&&(null===e||t.value===e)})}},{key:"getSSRCCount",value:function(){return a(this.mLine)}},{key:"containsAnySSRCGroups",value:function(){return void 0!==this.mLine.ssrcGroups}},{key:"getPrimaryVideoSsrc",value:function(){var e=this.mLine.type;if("video"!==e)throw new Error("getPrimarySsrc doesn't work with '"+e+"'");if(1===a(this.mLine))return this.mLine.ssrcs[0].id;if(this.mLine.ssrcGroups){var t=this.findGroup("SIM");if(t)return i(t);var n=this.findGroup("FID");if(n)return i(n)}}},{key:"getRtxSSRC",value:function(e){var t=this.findGroupByPrimarySSRC("FID",e);return t&&o(t)}},{key:"getSSRCs",value:function(){return this.ssrcs.map(function(e){return e.id}).filter(function(e,t,n){return n.indexOf(e)===t})}},{key:"getPrimaryVideoSSRCs",value:function(){var e=this.mLine.type;if("video"!==e)throw new Error("getPrimaryVideoSSRCs doesn't work with "+e);var t=this.getSSRCs(),n=!0,r=!1,i=void 0;try{for(var a,s=this.ssrcGroups["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(n=(a=s.next()).done);n=!0){var c=a.value;if("FID"===c.semantics){var u=o(c);t.splice(t.indexOf(u),1)}}}catch(e){r=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(r)throw i}}return t}},{key:"dumpSSRCGroups",value:function(){return JSON.stringify(this.mLine.ssrcGroups)}},{key:"removeGroupsWithSSRC",value:function(e){this.mLine.ssrcGroups&&(this.mLine.ssrcGroups=this.mLine.ssrcGroups.filter(function(t){return-1===t.ssrcs.indexOf(""+e)}))}},{key:"removeGroupsBySemantics",value:function(e){this.mLine.ssrcGroups&&(this.mLine.ssrcGroups=this.mLine.ssrcGroups.filter(function(t){return t.semantics!==e}))}},{key:"replaceSSRC",value:function(e,t){this.mLine.ssrcs&&this.mLine.ssrcs.forEach(function(n){n.id===e&&(n.id=t)})}},{key:"addSSRCGroup",value:function(e){this.ssrcGroups.push(e)}},{key:"ssrcs",get:function(){return this.mLine.ssrcs||(this.mLine.ssrcs=[]),this.mLine.ssrcs},set:function(e){this.mLine.ssrcs=e}},{key:"direction",get:function(){return this.mLine.direction},set:function(e){this.mLine.direction=e}},{key:"ssrcGroups",get:function(){return this.mLine.ssrcGroups||(this.mLine.ssrcGroups=[]),this.mLine.ssrcGroups},set:function(e){this.mLine.ssrcGroups=e}}]),e}(),l=function(){function e(t){r(this,e),this.parsedSDP=s.parse(t)}return c(e,[{key:"selectMedia",value:function(e){var t=this.parsedSDP.media.find(function(t){return t.type===e});return t?new u(t):null}},{key:"toRawSDP",value:function(){return s.write(this.parsedSDP)}}]),e}()},function(e,t){(function(t){e.exports=t}).call(t,{})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"AUTHENTICATION_REQUIRED",function(){return r}),n.d(t,"CHAT_ERROR",function(){return i}),n.d(t,"CONFERENCE_DESTROYED",function(){return o}),n.d(t,"CONFERENCE_MAX_USERS",function(){return a}),n.d(t,"CONNECTION_ERROR",function(){return s}),n.d(t,"NOT_ALLOWED_ERROR",function(){return c}),n.d(t,"FOCUS_DISCONNECTED",function(){return u}),n.d(t,"FOCUS_LEFT",function(){return l}),n.d(t,"GRACEFUL_SHUTDOWN",function(){return d}),n.d(t,"INCOMPATIBLE_SERVER_VERSIONS",function(){return p}),n.d(t,"JINGLE_FATAL_ERROR",function(){return f}),n.d(t,"PASSWORD_NOT_SUPPORTED",function(){return h}),n.d(t,"PASSWORD_REQUIRED",function(){return m}),n.d(t,"RESERVATION_ERROR",function(){return v}),n.d(t,"SETUP_FAILED",function(){return y}),n.d(t,"VIDEOBRIDGE_NOT_AVAILABLE",function(){return g});var r="conference.authenticationRequired",i="conference.chatError",o="conference.destroyed",a="conference.max_users",s="conference.connectionError",c="conference.connectionError.notAllowed",u="conference.focusDisconnected",l="conference.focusLeft",d="conference.gracefulShutdown",p="conference.incompatible_server_versions",f="conference.jingleFatalError",h="conference.passwordNotSupported",m="conference.passwordRequired",v="conference.reservationError",y="conference.setup_failed",g="conference.videobridgeNotAvailable"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"CONNECTION_DISCONNECTED",function(){return r}),n.d(t,"CONNECTION_ESTABLISHED",function(){return i}),n.d(t,"CONNECTION_FAILED",function(){return o}),n.d(t,"WRONG_STATE",function(){return a});var r="connection.connectionDisconnected",i="connection.connectionEstablished",o="connection.connectionFailed",a="connection.wrongState"},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return v});var i=n(0),o=(n.n(i),n(5)),a=n(16),s=n(4),c=n(1),u=n(8),l=n.n(u),d=n(6),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n.i(i.getLogger)(e),h=500,m=2e3,v={ACTIVE:"active",INACTIVE:"inactive",INTERRUPTED:"interrupted",RESTORING:"restoring"},y=function(){function e(t,n,i){r(this,e),this.rtc=t,this.conference=n,this.trackTimers={},this.connStatusFromJvb={},this.outOfLastNTimeout="number"==typeof i.outOfLastNTimeout?i.outOfLastNTimeout:h,this.rtcMuteTimeout="number"==typeof i.rtcMuteTimeout?i.rtcMuteTimeout:m,this.rtcMutedTimestamp={},f.info("RtcMuteTimeout set to: "+this.rtcMuteTimeout),this.enteredLastNTimestamp=new Map,this.restoringTimers=new Map}return p(e,null,[{key:"_getNewStateForJvbMode",value:function(e,t,n,r,i){return e?r?v.ACTIVE:c.a.isVideoMuteOnConnInterruptedSupported()?i?t?n?v.INTERRUPTED:v.RESTORING:v.INACTIVE:v.ACTIVE:t?v.ACTIVE:v.INACTIVE:v.INTERRUPTED}},{key:"_getNewStateForP2PMode",value:function(e,t){return c.a.isVideoMuteOnConnInterruptedSupported()?e||!t?v.ACTIVE:v.INTERRUPTED:v.ACTIVE}}]),p(e,[{key:"_getVideoFrozenTimeout",value:function(e){return this.rtc.isInLastN(e)?this.rtcMuteTimeout:this.outOfLastNTimeout}},{key:"init",value:function(){this._onEndpointConnStatusChanged=this.onEndpointConnStatusChanged.bind(this),this.rtc.addListener(l.a.ENDPOINT_CONN_STATUS_CHANGED,this._onEndpointConnStatusChanged),this._onP2PStatus=this.refreshConnectionStatusForAll.bind(this),this.conference.on(o.P2P_STATUS,this._onP2PStatus),c.a.isVideoMuteOnConnInterruptedSupported()&&(this._onTrackRtcMuted=this.onTrackRtcMuted.bind(this),this.rtc.addListener(l.a.REMOTE_TRACK_MUTE,this._onTrackRtcMuted),this._onTrackRtcUnmuted=this.onTrackRtcUnmuted.bind(this),this.rtc.addListener(l.a.REMOTE_TRACK_UNMUTE,this._onTrackRtcUnmuted),this._onRemoteTrackAdded=this.onRemoteTrackAdded.bind(this),this.conference.on(o.TRACK_ADDED,this._onRemoteTrackAdded),this._onRemoteTrackRemoved=this.onRemoteTrackRemoved.bind(this),this.conference.on(o.TRACK_REMOVED,this._onRemoteTrackRemoved),this._onSignallingMuteChanged=this.onSignallingMuteChanged.bind(this)),this._onLastNChanged=this._onLastNChanged.bind(this),this.conference.on(o.LAST_N_ENDPOINTS_CHANGED,this._onLastNChanged),this._onLastNValueChanged=this.refreshConnectionStatusForAll.bind(this),this.rtc.on(l.a.LASTN_VALUE_CHANGED,this._onLastNValueChanged)}},{key:"dispose",value:function(){this.rtc.removeListener(l.a.ENDPOINT_CONN_STATUS_CHANGED,this._onEndpointConnStatusChanged),c.a.isVideoMuteOnConnInterruptedSupported()&&(this.rtc.removeListener(l.a.REMOTE_TRACK_MUTE,this._onTrackRtcMuted),this.rtc.removeListener(l.a.REMOTE_TRACK_UNMUTE,this._onTrackRtcUnmuted),this.conference.off(o.TRACK_ADDED,this._onRemoteTrackAdded),this.conference.off(o.TRACK_REMOVED,this._onRemoteTrackRemoved)),this.conference.off(o.LAST_N_ENDPOINTS_CHANGED,this._onLastNChanged),this.rtc.removeListener(l.a.LASTN_VALUE_CHANGED,this._onLastNValueChanged),this.conference.off(o.P2P_STATUS,this._onP2PStatus);var e=Object.keys(this.trackTimers),t=!0,n=!1,r=void 0;try{for(var i,a=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(t=(i=a.next()).done);t=!0){var s=i.value;this.clearTimeout(s),this.clearRtcMutedTimestamp(s)}}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}this.connStatusFromJvb={}}},{key:"onEndpointConnStatusChanged",value:function(e,t){f.debug("Detector RTCEvents.ENDPOINT_CONN_STATUS_CHANGED("+Date.now()+"): "+e+": "+t),e!==this.conference.myUserId()&&(this.connStatusFromJvb[e]=t,this.figureOutConnectionStatus(e))}},{key:"_changeConnectionStatus",value:function(e,t){if(e.getConnectionStatus()!==t){var n=e.getId();e._setConnectionStatus(t),f.debug("Emit endpoint conn status("+Date.now()+") "+n+": "+t),d.a.sendLog(JSON.stringify({id:"peer.conn.status",participant:n,status:t})),this.conference.eventEmitter.emit(o.PARTICIPANT_CONN_STATUS_CHANGED,n,t)}}},{key:"clearTimeout",value:function(e){this.trackTimers[e]&&(window.clearTimeout(this.trackTimers[e]),this.trackTimers[e]=null)}},{key:"clearRtcMutedTimestamp",value:function(e){this.rtcMutedTimestamp[e]=null}},{key:"onRemoteTrackAdded",value:function(e){e.isLocal()||e.getType()!==s.b||(f.debug("Detector on remote track added for: "+e.getParticipantId()),e.on(a.TRACK_MUTE_CHANGED,this._onSignallingMuteChanged))}},{key:"onRemoteTrackRemoved",value:function(e){if(!e.isLocal()&&e.getType()===s.b){var t=e.getParticipantId();f.debug("Detector on remote track removed: "+t),e.off(a.TRACK_MUTE_CHANGED,this._onSignallingMuteChanged),this.clearTimeout(t),this.clearRtcMutedTimestamp(t),this.figureOutConnectionStatus(t)}}},{key:"isVideoTrackFrozen",value:function(e){if(!c.a.isVideoMuteOnConnInterruptedSupported())return!1;var t=e.getId(),n=e.hasAnyVideoTrackWebRTCMuted(),r=this.rtcMutedTimestamp[t],i=this._getVideoFrozenTimeout(t);return n&&"number"==typeof r&&Date.now()-r>=i}},{key:"refreshConnectionStatusForAll",value:function(){var e=this.conference.getParticipants(),t=!0,n=!1,r=void 0;try{for(var i,o=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(t=(i=o.next()).done);t=!0){var a=i.value;this.figureOutConnectionStatus(a.getId())}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}}},{key:"figureOutConnectionStatus",value:function(t){var n=this.conference.getParticipantById(t);if(!n)return void f.warn("figure out conn status - no participant for: "+t);var r=this.conference.isP2PActive(),i=this._isRestoringTimedout(t),o=0===this.rtc.getLastN(),a=n.isVideoMuted()||o,s=this.isVideoTrackFrozen(n),c=this.rtc.isInLastN(t),u=this.connStatusFromJvb[t];"boolean"!=typeof u&&(f.debug("Assuming connection active by JVB - no notification"),u=!0);var l=r?e._getNewStateForP2PMode(a,s):e._getNewStateForJvbMode(u,c,i,a,s);l!==v.RESTORING&&this._clearRestoringTimer(t),f.debug("Figure out conn status for "+t+", is video muted: "+a+" is active(jvb): "+u+" video track frozen: "+s+" p2p mode: "+r+" is in last N: "+c+" currentStatus => newStatus: \n "+n.getConnectionStatus()+" => "+l),this._changeConnectionStatus(n,l)}},{key:"_onLastNChanged",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Date.now();f.debug("leaving/entering lastN",e,t,n);var r=!0,i=!1,o=void 0;try{for(var a,s=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(a=s.next()).done);r=!0){var c=a.value;this.enteredLastNTimestamp.delete(c),this._clearRestoringTimer(c),this.figureOutConnectionStatus(c)}}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}var u=!0,l=!1,d=void 0;try{for(var p,h=t["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(u=(p=h.next()).done);u=!0){var m=p.value;this.enteredLastNTimestamp.set(m,n),this.figureOutConnectionStatus(m)}}catch(e){l=!0,d=e}finally{try{!u&&h.return&&h.return()}finally{if(l)throw d}}}},{key:"_clearRestoringTimer",value:function(e){var t=this.restoringTimers.get(e);t&&(clearTimeout(t),this.restoringTimers.delete(e))}},{key:"_isRestoringTimedout",value:function(e){var t=this,n=this.enteredLastNTimestamp.get(e);return!!(n&&Date.now()-n>=5e3)||(this.restoringTimers.get(e)||this.restoringTimers.set(e,setTimeout(function(){return t.figureOutConnectionStatus(e)},5e3)),!1)}},{key:"onTrackRtcMuted",value:function(e){var t=this,n=e.getParticipantId(),r=this.conference.getParticipantById(n);if(f.debug("Detector track RTC muted: "+n,Date.now()),!r)return void f.error("No participant for id: "+n);if(this.rtcMutedTimestamp[n]=Date.now(),!r.isVideoMuted()){this.clearTimeout(n);var i=this._getVideoFrozenTimeout(n);this.trackTimers[n]=window.setTimeout(function(){f.debug("Set RTC mute timeout for: "+n+" of "+i+" ms"),t.clearTimeout(n),t.figureOutConnectionStatus(n)},i)}}},{key:"onTrackRtcUnmuted",value:function(e){var t=e.getParticipantId();f.debug("Detector track RTC unmuted: "+t,Date.now()),this.clearTimeout(t),this.clearRtcMutedTimestamp(t),this.figureOutConnectionStatus(t)}},{key:"onSignallingMuteChanged",value:function(e){var t=e.getParticipantId();f.debug("Detector on track signalling mute changed: "+t,e.isMuted()),this.figureOutConnectionStatus(t)}}]),e}();t.b=y}).call(t,"modules/connectivity/ParticipantConnectionStatus.js")},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(){var e="undefined"==typeof window?this:window,t=void 0;try{t=e.localStorage}catch(e){f.error(e)}return t}function o(){return(Math.random().toString(16)+"000000000").substr(2,8)}function a(){return o()+o()+o()+o()}function s(){var e=a();return f.log("generated id",e),e}function c(){var e=d.a.generateUsername();return f.log("generated callstats uid",e),e}var u=n(0),l=(n.n(u),n(115)),d=n.n(l),p=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),f=n.i(u.getLogger)(e),h=function(){function e(){r(this,e);var t=i();t?(this.userId=t.getItem("jitsiMeetId")||s(),this.callStatsUserName=t.getItem("callStatsUserName")||c(),this.save()):(f.log("localStorage is not supported"),this.userId=s(),this.callStatsUserName=c())}return p(e,[{key:"save",value:function(){var e=i();e&&(e.setItem("jitsiMeetId",this.userId),e.setItem("callStatsUserName",this.callStatsUserName))}},{key:"getMachineId",value:function(){return this.userId}},{key:"getCallStatsUserName",value:function(){return this.callStatsUserName}},{key:"setSessionId",value:function(e){var t=i();t&&(e?t.setItem("sessionId",e):t.removeItem("sessionId"))}},{key:"clearSessionId",value:function(){this.setSessionId(void 0)}},{key:"getSessionId",value:function(){var e=i();return e?e.getItem("sessionId"):void 0}}]),e}();t.a=new h}).call(t,"modules/settings/Settings.js")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"STATUS_AVAILABLE",function(){return r}),n.d(t,"STATUS_UNDEFINED",function(){return i}),n.d(t,"STATUS_BUSY",function(){return o}),n.d(t,"STATE_ON",function(){return a}),n.d(t,"STATE_OFF",function(){return s}),n.d(t,"STATE_PENDING",function(){return c}),n.d(t,"STATE_RETRYING",function(){return u}),n.d(t,"STATE_FAILED",function(){return l});var r="available",i="undefined",o="busy",a="on",s="off",c="pending",u="retrying",l="failed"},function(e,t){var n={1080:{width:1920,height:1080,order:7},fullhd:{width:1920,height:1080,order:7},720:{width:1280,height:720,order:6},hd:{width:1280,height:720,order:6},960:{width:960,height:720,order:5},360:{width:640,height:360,order:4},640:{width:640,height:480,order:3},vga:{width:640,height:480,order:3},180:{width:320,height:180,order:2},320:{width:320,height:240,order:1}};e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"LOCAL_STATS_UPDATED",function(){return r}),n.d(t,"REMOTE_STATS_UPDATED",function(){return i});var r="cq.local_stats_updated",i="cq.remote_stats_updated"},function(e,t,n){(function(t){var r,r,o=n(0).getLogger(t),a=a||{};e.exports=a,a.options=a.options||{},a.VERSION="0.14.0",a.onwebrtcready=a.onwebrtcready||function(e){},a._onwebrtcreadies=[],a.webRTCReady=function(e){if("function"!=typeof e)throw new Error("Callback provided is not a function");!0===a.onwebrtcreadyDone?e(null!==a.WebRTCPlugin.plugin):a._onwebrtcreadies.push(e)},a.WebRTCPlugin=a.WebRTCPlugin||{},a.WebRTCPlugin.pluginInfo=a.WebRTCPlugin.pluginInfo||{prefix:"Tem",plugName:"TemWebRTCPlugin",pluginId:"plugin0",type:"application/x-temwebrtcplugin",onload:"__TemWebRTCReady0",portalLink:"http://skylink.io/plugin/",downloadLink:null,companyName:"Temasys",downloadLinks:{mac:"http://bit.ly/webrtcpluginpkg",win:"http://bit.ly/webrtcpluginmsi"}},void 0!==a.WebRTCPlugin.pluginInfo.downloadLinks&&null!==a.WebRTCPlugin.pluginInfo.downloadLinks&&(navigator.platform.match(/^Mac/i)?a.WebRTCPlugin.pluginInfo.downloadLink=a.WebRTCPlugin.pluginInfo.downloadLinks.mac:navigator.platform.match(/^Win/i)&&(a.WebRTCPlugin.pluginInfo.downloadLink=a.WebRTCPlugin.pluginInfo.downloadLinks.win)),a.WebRTCPlugin.TAGS={NONE:"none",AUDIO:"audio",VIDEO:"video"},a.WebRTCPlugin.pageId=Math.random().toString(36).slice(2),a.WebRTCPlugin.plugin=null,a.WebRTCPlugin.setLogLevel=null,a.WebRTCPlugin.defineWebRTCInterface=null,a.WebRTCPlugin.isPluginInstalled=null,a.WebRTCPlugin.pluginInjectionInterval=null,a.WebRTCPlugin.injectPlugin=null,a.WebRTCPlugin.PLUGIN_STATES={NONE:0,INITIALIZING:1,INJECTING:2,INJECTED:3,READY:4},a.WebRTCPlugin.pluginState=a.WebRTCPlugin.PLUGIN_STATES.NONE,a.onwebrtcreadyDone=!1,a.WebRTCPlugin.PLUGIN_LOG_LEVELS={NONE:"NONE",ERROR:"ERROR",WARNING:"WARNING",INFO:"INFO",VERBOSE:"VERBOSE",SENSITIVE:"SENSITIVE"},a.WebRTCPlugin.WaitForPluginReady=null,a.WebRTCPlugin.callWhenPluginReady=null,__TemWebRTCReady0=function(){if("complete"===document.readyState)a.WebRTCPlugin.pluginState=a.WebRTCPlugin.PLUGIN_STATES.READY,a.maybeThroughWebRTCReady();else var e=setInterval(function(){"complete"===document.readyState&&(clearInterval(e),a.WebRTCPlugin.pluginState=a.WebRTCPlugin.PLUGIN_STATES.READY,a.maybeThroughWebRTCReady())},100)},a.maybeThroughWebRTCReady=function(){a.onwebrtcreadyDone||(a.onwebrtcreadyDone=!0,a._onwebrtcreadies.length?a._onwebrtcreadies.forEach(function(e){"function"==typeof e&&e(null!==a.WebRTCPlugin.plugin)}):"function"==typeof a.onwebrtcready&&a.onwebrtcready(null!==a.WebRTCPlugin.plugin))},a.TEXT={PLUGIN:{REQUIRE_INSTALLATION:"This website requires you to install a WebRTC-enabling plugin to work on this browser.",NOT_SUPPORTED:"Your browser does not support WebRTC.",BUTTON:"Install Now"},REFRESH:{REQUIRE_REFRESH:"Please refresh page",BUTTON:"Refresh Page"}},a._iceConnectionStates={starting:"starting",checking:"checking",connected:"connected",completed:"connected",done:"completed",disconnected:"disconnected",failed:"failed",closed:"closed"},a._iceConnectionFiredStates=[],a.isDefined=null,a.parseWebrtcDetectedBrowser=function(){var e=null;if(window.opr&&opr.addons||window.opera||navigator.userAgent.indexOf(" OPR/")>=0)e=navigator.userAgent.match(/OPR\/(\d+)/i)||[],webrtcDetectedBrowser="opera",webrtcDetectedVersion=parseInt(e[1]||"0",10),webrtcMinimumVersion=26,webrtcDetectedType="webkit",webrtcDetectedDCSupport="SCTP";else if(navigator.userAgent.match(/Bowser\/[0-9.]*/g)){e=navigator.userAgent.match(/Bowser\/[0-9.]*/g)||[];var t=parseInt((navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./i)||[])[2]||"0",10);webrtcDetectedBrowser="bowser",webrtcDetectedVersion=parseFloat((e[0]||"0/0").split("/")[1],10),webrtcMinimumVersion=0,webrtcDetectedType="webkit",webrtcDetectedDCSupport=t>30?"SCTP":"RTP"}else if(navigator.userAgent.indexOf("OPiOS")>0)e=navigator.userAgent.match(/OPiOS\/([0-9]+)\./),webrtcDetectedBrowser="opera",webrtcDetectedVersion=parseInt(e[1]||"0",10),webrtcMinimumVersion=0,webrtcDetectedType=null,webrtcDetectedDCSupport=null;else if(navigator.userAgent.indexOf("CriOS")>0)e=navigator.userAgent.match(/CriOS\/([0-9]+)\./)||[],webrtcDetectedBrowser="chrome",webrtcDetectedVersion=parseInt(e[1]||"0",10),webrtcMinimumVersion=0,webrtcDetectedType=null,webrtcDetectedDCSupport=null;else if(navigator.userAgent.indexOf("FxiOS")>0)e=navigator.userAgent.match(/FxiOS\/([0-9]+)\./)||[],webrtcDetectedBrowser="firefox",webrtcDetectedVersion=parseInt(e[1]||"0",10),webrtcMinimumVersion=0,webrtcDetectedType=null,webrtcDetectedDCSupport=null;else if(document.documentMode)e=/\brv[ :]+(\d+)/g.exec(navigator.userAgent)||[],webrtcDetectedBrowser="IE",webrtcDetectedVersion=parseInt(e[1],10),webrtcMinimumVersion=9,webrtcDetectedType="plugin",webrtcDetectedDCSupport="SCTP",webrtcDetectedVersion||(e=/\bMSIE[ :]+(\d+)/g.exec(navigator.userAgent)||[],webrtcDetectedVersion=parseInt(e[1]||"0",10));else if(window.StyleMedia||navigator.userAgent.match(/Edge\/(\d+).(\d+)$/))e=navigator.userAgent.match(/Edge\/(\d+).(\d+)$/)||[],webrtcDetectedBrowser="edge",webrtcDetectedVersion=parseFloat((e[0]||"0/0").split("/")[1],10),webrtcMinimumVersion=13.10547,webrtcDetectedType="ms",webrtcDetectedDCSupport=null;else if("undefined"!=typeof InstallTrigger||navigator.userAgent.indexOf("irefox")>0)e=navigator.userAgent.match(/Firefox\/([0-9]+)\./)||[],webrtcDetectedBrowser="firefox",webrtcDetectedVersion=parseInt(e[1]||"0",10),webrtcMinimumVersion=31,webrtcDetectedType="moz",webrtcDetectedDCSupport="SCTP";else if(window.chrome&&window.chrome.webstore||navigator.userAgent.indexOf("Chrom")>0)e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./i)||[],webrtcDetectedBrowser="chrome",webrtcDetectedVersion=parseInt(e[2]||"0",10),webrtcMinimumVersion=38,webrtcDetectedType="webkit",webrtcDetectedDCSupport=webrtcDetectedVersion>30?"SCTP":"RTP";else if(/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){e=navigator.userAgent.match(/version\/(\d+)/i)||[];var n=navigator.userAgent.match(/(iPhone|iPad)/gi)||[];webrtcDetectedBrowser="safari",webrtcDetectedVersion=parseInt(e[1]||"0",10),webrtcMinimumVersion=7,webrtcDetectedType=0===n.length?"plugin":null,webrtcDetectedDCSupport=0===n.length?"SCTP":null}window.webrtcDetectedBrowser=webrtcDetectedBrowser,window.webrtcDetectedVersion=webrtcDetectedVersion,window.webrtcMinimumVersion=webrtcMinimumVersion,window.webrtcDetectedType=webrtcDetectedType,window.webrtcDetectedDCSupport=webrtcDetectedDCSupport},a.addEvent=function(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e[t]=n},a.renderNotificationBar=function(e,t,n,r,i){if("complete"===document.readyState){var o=window,s=document.createElement("iframe");s.name="adapterjs-alert",s.style.position="fixed",s.style.top="-41px",s.style.left=0,s.style.right=0,s.style.width="100%",s.style.height="40px",s.style.backgroundColor="#ffffe1",s.style.border="none",s.style.borderBottom="1px solid #888888",s.style.zIndex="9999999","string"==typeof s.style.webkitTransition?s.style.webkitTransition="all .5s ease-out":"string"==typeof s.style.transition&&(s.style.transition="all .5s ease-out"),document.body.appendChild(s);var c=s.contentWindow?s.contentWindow:s.contentDocument.document?s.contentDocument.document:s.contentDocument;c.document.open(),c.document.write('<span style="display: inline-block; font-family: Helvetica, Arial,sans-serif; font-size: .9rem; padding: 4px; vertical-align: middle; cursor: default;">'+e+"</span>"),
t&&n?(c.document.write('<button id="okay">'+t+'</button><button id="cancel">Cancel</button>'),c.document.close(),a.addEvent(c.document.getElementById("okay"),"click",function(e){i&&a.renderNotificationBar(a.TEXT.EXTENSION?a.TEXT.EXTENSION.REQUIRE_REFRESH:a.TEXT.REFRESH.REQUIRE_REFRESH,a.TEXT.REFRESH.BUTTON,"javascript:location.reload()"),window.open(n,r?"_blank":"_top"),e.preventDefault();try{e.cancelBubble=!0}catch(e){}var t=setInterval(function(){isIE||navigator.plugins.refresh(!1),a.WebRTCPlugin.isPluginInstalled(a.WebRTCPlugin.pluginInfo.prefix,a.WebRTCPlugin.pluginInfo.plugName,a.WebRTCPlugin.pluginInfo.type,function(){clearInterval(t),a.WebRTCPlugin.defineWebRTCInterface()},function(){})},500)}),a.addEvent(c.document.getElementById("cancel"),"click",function(e){o.document.body.removeChild(s)})):c.document.close(),setTimeout(function(){"string"==typeof s.style.webkitTransform?s.style.webkitTransform="translateY(40px)":"string"==typeof s.style.transform?s.style.transform="translateY(40px)":s.style.top="0px"},300)}},webrtcDetectedType=null,checkMediaDataChannelSettings=function(e,t,n,r){if("function"==typeof n){var i=!0,a="firefox"===webrtcDetectedBrowser,s="moz"===webrtcDetectedType&&webrtcDetectedVersion>30,c="firefox"===e;if(a&&c||s)try{delete r.mandatory.MozDontOfferDataChannel}catch(e){o.error("Failed deleting MozDontOfferDataChannel"),o.error(e)}else a&&!c&&(r.mandatory.MozDontOfferDataChannel=!0);if(!a)for(var u in r.mandatory)r.mandatory.hasOwnProperty(u)&&-1!==u.indexOf("Moz")&&delete r.mandatory[u];!a||c||s||(i=!1),n(i,r)}},checkIceConnectionState=function(e,t,n){if("function"!=typeof n)return void o.warn("No callback specified in checkIceConnectionState. Aborted.");e=e||"peer",a._iceConnectionFiredStates[e]&&t!==a._iceConnectionStates.disconnected&&t!==a._iceConnectionStates.failed&&t!==a._iceConnectionStates.closed||(a._iceConnectionFiredStates[e]=[]),t=a._iceConnectionStates[t],a._iceConnectionFiredStates[e].indexOf(t)<0&&(a._iceConnectionFiredStates[e].push(t),t===a._iceConnectionStates.connected&&setTimeout(function(){a._iceConnectionFiredStates[e].push(a._iceConnectionStates.done),n(a._iceConnectionStates.done)},1e3),n(t))},createIceServer=null,createIceServers=null,RTCPeerConnection=null,RTCSessionDescription="function"==typeof RTCSessionDescription?RTCSessionDescription:null,RTCIceCandidate="function"==typeof RTCIceCandidate?RTCIceCandidate:null,getUserMedia=null,attachMediaStream=null,reattachMediaStream=null,webrtcDetectedBrowser=null,webrtcDetectedVersion=null,webrtcMinimumVersion=null,!(navigator.mozGetUserMedia||navigator.webkitGetUserMedia||navigator.mediaDevices&&navigator.userAgent.match(/Edge\/(\d+).(\d+)$/))||0===(navigator.userAgent.match(/android/gi)||[]).length&&0===(navigator.userAgent.match(/chrome/gi)||[]).length&&navigator.userAgent.indexOf("Safari/")>0?("object"==typeof o&&"function"==typeof o.log||(o={}||o,o.log=function(e){},o.info=function(e){},o.error=function(e){},o.dir=function(e){},o.exception=function(e){},o.trace=function(e){},o.warn=function(e){},o.count=function(e){},o.debug=function(e){},o.count=function(e){},o.time=function(e){},o.timeEnd=function(e){},o.group=function(e){},o.groupCollapsed=function(e){},o.groupEnd=function(e){}),a.parseWebrtcDetectedBrowser(),isIE="IE"===webrtcDetectedBrowser,a.WebRTCPlugin.WaitForPluginReady=function(){for(;a.WebRTCPlugin.pluginState!==a.WebRTCPlugin.PLUGIN_STATES.READY;);},a.WebRTCPlugin.callWhenPluginReady=function(e){if(a.WebRTCPlugin.pluginState===a.WebRTCPlugin.PLUGIN_STATES.READY)e();else var t=setInterval(function(){a.WebRTCPlugin.pluginState===a.WebRTCPlugin.PLUGIN_STATES.READY&&(clearInterval(t),e())},100)},a.WebRTCPlugin.setLogLevel=function(e){a.WebRTCPlugin.callWhenPluginReady(function(){a.WebRTCPlugin.plugin.setLogLevel(e)})},a.WebRTCPlugin.injectPlugin=function(){if("complete"===document.readyState&&a.WebRTCPlugin.pluginState===a.WebRTCPlugin.PLUGIN_STATES.INITIALIZING){if(a.WebRTCPlugin.pluginState=a.WebRTCPlugin.PLUGIN_STATES.INJECTING,"IE"===webrtcDetectedBrowser&&webrtcDetectedVersion<=10){var e=document.createDocumentFragment();for(a.WebRTCPlugin.plugin=document.createElement("div"),a.WebRTCPlugin.plugin.innerHTML='<object id="'+a.WebRTCPlugin.pluginInfo.pluginId+'" type="'+a.WebRTCPlugin.pluginInfo.type+'" width="1" height="1"><param name="pluginId" value="'+a.WebRTCPlugin.pluginInfo.pluginId+'" /> <param name="windowless" value="false" /> <param name="pageId" value="'+a.WebRTCPlugin.pageId+'" /> <param name="onload" value="'+a.WebRTCPlugin.pluginInfo.onload+'" /><param name="tag" value="'+a.WebRTCPlugin.TAGS.NONE+'" />'+(a.options.getAllCams?'<param name="forceGetAllCams" value="True" />':"")+"</object>";a.WebRTCPlugin.plugin.firstChild;)e.appendChild(a.WebRTCPlugin.plugin.firstChild);document.body.appendChild(e),a.WebRTCPlugin.plugin=document.getElementById(a.WebRTCPlugin.pluginInfo.pluginId)}else a.WebRTCPlugin.plugin=document.createElement("object"),a.WebRTCPlugin.plugin.id=a.WebRTCPlugin.pluginInfo.pluginId,isIE?(a.WebRTCPlugin.plugin.width="1px",a.WebRTCPlugin.plugin.height="1px"):(a.WebRTCPlugin.plugin.width="0px",a.WebRTCPlugin.plugin.height="0px"),a.WebRTCPlugin.plugin.type=a.WebRTCPlugin.pluginInfo.type,a.WebRTCPlugin.plugin.innerHTML='<param name="onload" value="'+a.WebRTCPlugin.pluginInfo.onload+'"><param name="pluginId" value="'+a.WebRTCPlugin.pluginInfo.pluginId+'"><param name="windowless" value="false" /> '+(a.options.getAllCams?'<param name="forceGetAllCams" value="True" />':"")+'<param name="pageId" value="'+a.WebRTCPlugin.pageId+'"><param name="tag" value="'+a.WebRTCPlugin.TAGS.NONE+'" />',document.body.appendChild(a.WebRTCPlugin.plugin);a.WebRTCPlugin.pluginState=a.WebRTCPlugin.PLUGIN_STATES.INJECTED}},a.WebRTCPlugin.isPluginInstalled=function(e,t,n,r,i){if(isIE){try{new ActiveXObject(e+"."+t)}catch(e){return void i()}r()}else{for(var o=navigator.mimeTypes,a=0;a<o.length;a++)if(o[a].type.indexOf(n)>=0)return void r();i()}},a.WebRTCPlugin.defineWebRTCInterface=function(){if(a.WebRTCPlugin.pluginState===a.WebRTCPlugin.PLUGIN_STATES.READY)return void o.error("AdapterJS - WebRTC interface has already been defined");a.WebRTCPlugin.pluginState=a.WebRTCPlugin.PLUGIN_STATES.INITIALIZING,a.isDefined=function(e){return null!==e&&void 0!==e},createIceServer=function(e,t,n){var r=null,i=e.split(":");return 0===i[0].indexOf("stun")?r={url:e,hasCredentials:!1}:0===i[0].indexOf("turn")&&(r={url:e,hasCredentials:!0,credential:n,username:t}),r},createIceServers=function(e,t,n){for(var r=[],i=0;i<e.length;++i)r.push(createIceServer(e[i],t,n));return r},RTCSessionDescription=function(e){return a.WebRTCPlugin.WaitForPluginReady(),a.WebRTCPlugin.plugin.ConstructSessionDescription(e.type,e.sdp)},RTCPeerConnection=function(e,t){if(void 0!==e&&null!==e&&!Array.isArray(e.iceServers))throw new Error("Failed to construct 'RTCPeerConnection': Malformed RTCConfiguration");if(void 0!==t&&null!==t){var n=!1;if(n|="object"!=typeof t,n|=t.hasOwnProperty("mandatory")&&void 0!==t.mandatory&&null!==t.mandatory&&t.mandatory.constructor!==Object,n|=t.hasOwnProperty("optional")&&void 0!==t.optional&&null!==t.optional&&!Array.isArray(t.optional))throw new Error("Failed to construct 'RTCPeerConnection': Malformed constraints object")}a.WebRTCPlugin.WaitForPluginReady();var r=null;if(e&&Array.isArray(e.iceServers)){r=e.iceServers;for(var i=0;i<r.length;i++)r[i].urls&&!r[i].url&&(r[i].url=r[i].urls),r[i].hasCredentials=a.isDefined(r[i].username)&&a.isDefined(r[i].credential)}if(a.WebRTCPlugin.plugin.PEER_CONNECTION_VERSION&&a.WebRTCPlugin.plugin.PEER_CONNECTION_VERSION>1)return r&&(e.iceServers=r),a.WebRTCPlugin.plugin.PeerConnection(e);var o=t&&t.mandatory?t.mandatory:null,s=t&&t.optional?t.optional:null;return a.WebRTCPlugin.plugin.PeerConnection(a.WebRTCPlugin.pageId,r,o,s)},MediaStreamTrack=function(){},MediaStreamTrack.getSources=function(e){a.WebRTCPlugin.callWhenPluginReady(function(){a.WebRTCPlugin.plugin.GetSources(e)})};var e=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;var t={};return Object.keys(e).forEach(function(n){if("require"!==n&&"advanced"!==n&&"mediaSource"!==n){var r="object"==typeof e[n]?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact);var i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];var o={};"number"==typeof r.ideal?(o[i("min",n)]=r.ideal,t.optional.push(o),o={},o[i("max",n)]=r.ideal,t.optional.push(o)):(o[i("",n)]=r.ideal,t.optional.push(o))}void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",n)]=r.exact):["min","max"].forEach(function(e){void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,n)]=r[e])})}}),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t};getUserMedia=function(t,n,r){var i={};i.audio=!!t.audio&&e(t.audio),i.video=!!t.video&&e(t.video),a.WebRTCPlugin.callWhenPluginReady(function(){a.WebRTCPlugin.plugin.getUserMedia(i,n,r)})},window.navigator.getUserMedia=getUserMedia,navigator.mediaDevices||"undefined"==typeof Promise||(requestUserMedia=function(e){return new Promise(function(t,n){getUserMedia(e,t,n)})},navigator.mediaDevices={getUserMedia:requestUserMedia,enumerateDevices:function(){return new Promise(function(e){var t={audio:"audioinput",video:"videoinput"};return MediaStreamTrack.getSources(function(n){e(n.map(function(e){return{label:e.label,kind:t[e.kind],id:e.id,deviceId:e.id,groupId:""}}))})})}}),attachMediaStream=function(e,t){if(e&&e.parentNode){var n;null===t?n="":(void 0!==t.enableSoundTracks&&t.enableSoundTracks(!0),n=t.id);var r=0===e.id.length?Math.random().toString(36).slice(2):e.id,i=e.nodeName.toLowerCase();if("object"!==i){var o;switch(i){case"audio":o=a.WebRTCPlugin.TAGS.AUDIO;break;case"video":o=a.WebRTCPlugin.TAGS.VIDEO;break;default:o=a.WebRTCPlugin.TAGS.NONE}var s=document.createDocumentFragment(),c=document.createElement("div"),u="";for(e.className?u='class="'+e.className+'" ':e.attributes&&e.attributes.class&&(u='class="'+e.attributes.class.value+'" '),c.innerHTML='<object id="'+r+'" '+u+'type="'+a.WebRTCPlugin.pluginInfo.type+'"><param name="pluginId" value="'+r+'" /> <param name="pageId" value="'+a.WebRTCPlugin.pageId+'" /> <param name="windowless" value="true" /> <param name="streamId" value="'+n+'" /> <param name="tag" value="'+o+'" /> </object>';c.firstChild;)s.appendChild(c.firstChild);var l="",d="";e.clientWidth||e.clientHeight?(d=e.clientWidth,l=e.clientHeight):(e.width||e.height)&&(d=e.width,l=e.height),e.parentNode.insertBefore(s,e),s=document.getElementById(r),s.width=d,s.height=l,e.parentNode.removeChild(e)}else{for(var p=e.children,f=0;f!==p.length;++f)if("streamId"===p[f].name){p[f].value=n;break}e.setStreamId(n)}var h=document.getElementById(r);return a.forwardEventHandlers(h,e,Object.getPrototypeOf(e)),h}},reattachMediaStream=function(e,t){for(var n=null,r=t.children,i=0;i!==r.length;++i)if("streamId"===r[i].name){a.WebRTCPlugin.WaitForPluginReady(),n=a.WebRTCPlugin.plugin.getStreamWithId(a.WebRTCPlugin.pageId,r[i].value);break}if(null!==n)return attachMediaStream(e,n);o.log("Could not find the stream associated with this element")},window.attachMediaStream=attachMediaStream,window.reattachMediaStream=reattachMediaStream,window.getUserMedia=getUserMedia,a.attachMediaStream=attachMediaStream,a.reattachMediaStream=reattachMediaStream,a.getUserMedia=getUserMedia,a.forwardEventHandlers=function(e,t,n){properties=Object.getOwnPropertyNames(n);for(var r in properties)r&&(propName=properties[r],"function"==typeof propName.slice&&"on"===propName.slice(0,2)&&"function"==typeof t[propName]&&a.addEvent(e,propName.slice(2),t[propName]));var i=Object.getPrototypeOf(n);i&&a.forwardEventHandlers(e,t,i)},RTCIceCandidate=function(e){return e.sdpMid||(e.sdpMid=""),a.WebRTCPlugin.WaitForPluginReady(),a.WebRTCPlugin.plugin.ConstructIceCandidate(e.sdpMid,e.sdpMLineIndex,e.candidate)},a.addEvent(document,"readystatechange",a.WebRTCPlugin.injectPlugin),a.WebRTCPlugin.injectPlugin()},a.WebRTCPlugin.pluginNeededButNotInstalledCb=a.WebRTCPlugin.pluginNeededButNotInstalledCb||function(){a.addEvent(document,"readystatechange",a.WebRTCPlugin.pluginNeededButNotInstalledCbPriv),a.WebRTCPlugin.pluginNeededButNotInstalledCbPriv()},a.WebRTCPlugin.pluginNeededButNotInstalledCbPriv=function(){if(!a.options.hidePluginInstallPrompt){var e=a.WebRTCPlugin.pluginInfo.downloadLink;if(e){var t;t=a.WebRTCPlugin.pluginInfo.portalLink?'This website requires you to install the <a href="'+a.WebRTCPlugin.pluginInfo.portalLink+'" target="_blank">'+a.WebRTCPlugin.pluginInfo.companyName+" WebRTC Plugin</a> to work on this browser.":a.TEXT.PLUGIN.REQUIRE_INSTALLATION,a.renderNotificationBar(t,a.TEXT.PLUGIN.BUTTON,e)}else a.renderNotificationBar(a.TEXT.PLUGIN.NOT_SUPPORTED)}},a.WebRTCPlugin.isPluginInstalled(a.WebRTCPlugin.pluginInfo.prefix,a.WebRTCPlugin.pluginInfo.plugName,a.WebRTCPlugin.pluginInfo.type,a.WebRTCPlugin.defineWebRTCInterface,a.WebRTCPlugin.pluginNeededButNotInstalledCb)):(function(t){e.exports=function(){return function e(t,n,i){function o(s,c){if(!n[s]){if(!t[s]){var u="function"==typeof r&&r;if(!c&&u)return r(s,!0);if(a)return a(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var d=n[s]={exports:{}};t[s][0].call(d.exports,function(e){return o(t[s][1][e]||e)},d,d.exports,e,t,n,i)}return n[s].exports}for(var a="function"==typeof r&&r,s=0;s<i.length;s++)o(i[s]);return o}({1:[function(e,t,n){"use strict";var r={};r.generateIdentifier=function(){return Math.random().toString(36).substr(2,10)},r.localCName=r.generateIdentifier(),r.splitLines=function(e){return e.trim().split("\n").map(function(e){return e.trim()})},r.splitSections=function(e){return e.split("\nm=").map(function(e,t){return(t>0?"m="+e:e).trim()+"\r\n"})},r.matchPrefix=function(e,t){return r.splitLines(e).filter(function(e){return 0===e.indexOf(t)})},r.parseCandidate=function(e){var t;t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" ");for(var n={foundation:t[0],component:t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],port:parseInt(t[5],10),type:t[7]},r=8;r<t.length;r+=2)switch(t[r]){case"raddr":n.relatedAddress=t[r+1];break;case"rport":n.relatedPort=parseInt(t[r+1],10);break;case"tcptype":n.tcpType=t[r+1]}return n},r.writeCandidate=function(e){var t=[];t.push(e.foundation),t.push(e.component),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.ip),t.push(e.port);var n=e.type;return t.push("typ"),t.push(n),"host"!==n&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),"candidate:"+t.join(" ")},r.parseRtpMap=function(e){var t=e.substr(9).split(" "),n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.numChannels=3===t.length?parseInt(t[2],10):1,n},r.writeRtpMap=function(e){var t=e.payloadType;return void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType),"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==e.numChannels?"/"+e.numChannels:"")+"\r\n"},r.parseExtmap=function(e){var t=e.substr(9).split(" ");return{id:parseInt(t[0],10),uri:t[1]}},r.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+" "+e.uri+"\r\n"},r.parseFmtp=function(e){for(var t,n={},r=e.substr(e.indexOf(" ")+1).split(";"),i=0;i<r.length;i++)t=r[i].trim().split("="),n[t[0].trim()]=t[1];return n},r.writeFmtp=function(e){var t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){var r=[];Object.keys(e.parameters).forEach(function(t){r.push(t+"="+e.parameters[t])}),t+="a=fmtp:"+n+" "+r.join(";")+"\r\n"}return t},r.parseRtcpFb=function(e){var t=e.substr(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},r.writeRtcpFb=function(e){var t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(function(e){t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"}),t},r.parseSsrcMedia=function(e){var t=e.indexOf(" "),n={ssrc:parseInt(e.substr(7,t-7),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substr(t+1,r-t-1),n.value=e.substr(r+1)):n.attribute=e.substr(t+1),n},r.getDtlsParameters=function(e,t){var n=r.splitLines(e);n=n.concat(r.splitLines(t));var i=n.filter(function(e){return 0===e.indexOf("a=fingerprint:")})[0].substr(14);return{role:"auto",fingerprints:[{algorithm:i.split(" ")[0],value:i.split(" ")[1]}]}},r.writeDtlsParameters=function(e,t){var n="a=setup:"+t+"\r\n";return e.fingerprints.forEach(function(e){n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"}),n},r.getIceParameters=function(e,t){var n=r.splitLines(e);return n=n.concat(r.splitLines(t)),{usernameFragment:n.filter(function(e){return 0===e.indexOf("a=ice-ufrag:")})[0].substr(12),password:n.filter(function(e){return 0===e.indexOf("a=ice-pwd:")})[0].substr(10)}},r.writeIceParameters=function(e){return"a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n"},r.parseRtpParameters=function(e){for(var t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=r.splitLines(e),i=n[0].split(" "),o=3;o<i.length;o++){var a=i[o],s=r.matchPrefix(e,"a=rtpmap:"+a+" ")[0];if(s){var c=r.parseRtpMap(s),u=r.matchPrefix(e,"a=fmtp:"+a+" ");switch(c.parameters=u.length?r.parseFmtp(u[0]):{},c.rtcpFeedback=r.matchPrefix(e,"a=rtcp-fb:"+a+" ").map(r.parseRtcpFb),t.codecs.push(c),c.name.toUpperCase()){case"RED":case"ULPFEC":t.fecMechanisms.push(c.name.toUpperCase())}}}return r.matchPrefix(e,"a=extmap:").forEach(function(e){t.headerExtensions.push(r.parseExtmap(e))}),t},r.writeRtpDescription=function(e,t){var n="";return n+="m="+e+" ",n+=t.codecs.length>0?"9":"0",n+=" UDP/TLS/RTP/SAVPF ",n+=t.codecs.map(function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType}).join(" ")+"\r\n",n+="c=IN IP4 0.0.0.0\r\n",n+="a=rtcp:9 IN IP4 0.0.0.0\r\n",t.codecs.forEach(function(e){n+=r.writeRtpMap(e),n+=r.writeFmtp(e),n+=r.writeRtcpFb(e)}),n+="a=rtcp-mux\r\n"},r.parseRtpEncodingParameters=function(e){var t,n=[],i=r.parseRtpParameters(e),o=-1!==i.fecMechanisms.indexOf("RED"),a=-1!==i.fecMechanisms.indexOf("ULPFEC"),s=r.matchPrefix(e,"a=ssrc:").map(function(e){return r.parseSsrcMedia(e)}).filter(function(e){return"cname"===e.attribute}),c=s.length>0&&s[0].ssrc,u=r.matchPrefix(e,"a=ssrc-group:FID").map(function(e){var t=e.split(" ");return t.shift(),t.map(function(e){return parseInt(e,10)})});u.length>0&&u[0].length>1&&u[0][0]===c&&(t=u[0][1]),i.codecs.forEach(function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var r={ssrc:c,codecPayloadType:parseInt(e.parameters.apt,10),rtx:{payloadType:e.payloadType,ssrc:t}};n.push(r),o&&(r=JSON.parse(JSON.stringify(r)),r.fec={ssrc:t,mechanism:a?"red+ulpfec":"red"},n.push(r))}}),0===n.length&&c&&n.push({ssrc:c});var l=r.matchPrefix(e,"b=");return l.length&&(0===l[0].indexOf("b=TIAS:")?l=parseInt(l[0].substr(7),10):0===l[0].indexOf("b=AS:")&&(l=parseInt(l[0].substr(5),10)),n.forEach(function(e){e.maxBitrate=l})),n},r.writeSessionBoilerplate=function(){return"v=0\r\no=thisisadapterortc 8169639915646943137 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},r.writeMediaSection=function(e,t,n,i){var o=r.writeRtpDescription(e.kind,t);if(o+=r.writeIceParameters(e.iceGatherer.getLocalParameters()),o+=r.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===n?"actpass":"active"),o+="a=mid:"+e.mid+"\r\n",e.rtpSender&&e.rtpReceiver?o+="a=sendrecv\r\n":e.rtpSender?o+="a=sendonly\r\n":e.rtpReceiver?o+="a=recvonly\r\n":o+="a=inactive\r\n",e.rtpSender){var a="msid:"+i.id+" "+e.rtpSender.track.id+"\r\n";o+="a="+a,o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+a}return o+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+r.localCName+"\r\n"},r.getDirection=function(e,t){for(var n=r.splitLines(e),i=0;i<n.length;i++)switch(n[i]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return n[i].substr(2)}return t?r.getDirection(t):"sendrecv"},t.exports=r},{}],2:[function(e,t,n){"use strict";!function(){var n=e("./utils").log,r=e("./utils").browserDetails;t.exports.browserDetails=r,t.exports.extractVersion=e("./utils").extractVersion,t.exports.disableLog=e("./utils").disableLog;var i=e("./chrome/chrome_shim")||null,o=e("./edge/edge_shim")||null,a=e("./firefox/firefox_shim")||null,s=e("./safari/safari_shim")||null;switch(r.browser){case"opera":case"chrome":if(!i||!i.shimPeerConnection)return void n("Chrome shim is not included in this adapter release.");n("adapter.js shimming chrome."),t.exports.browserShim=i,i.shimGetUserMedia(),i.shimMediaStream(),i.shimSourceObject(),i.shimPeerConnection(),i.shimOnTrack();break;case"firefox":if(!a||!a.shimPeerConnection)return void n("Firefox shim is not included in this adapter release.");n("adapter.js shimming firefox."),t.exports.browserShim=a,a.shimGetUserMedia(),a.shimSourceObject(),a.shimPeerConnection(),a.shimOnTrack();break;case"edge":if(!o||!o.shimPeerConnection)return void n("MS edge shim is not included in this adapter release.");n("adapter.js shimming edge."),t.exports.browserShim=o,o.shimGetUserMedia(),o.shimPeerConnection();break;case"safari":if(!s)return void n("Safari shim is not included in this adapter release.");n("adapter.js shimming safari."),t.exports.browserShim=s,s.shimGetUserMedia();break;default:n("Unsupported browser!")}}()},{"./chrome/chrome_shim":3,"./edge/edge_shim":5,"./firefox/firefox_shim":7,"./safari/safari_shim":9,"./utils":10}],3:[function(e,t,n){"use strict";var r=e("../utils.js").log,i=e("../utils.js").browserDetails,o={shimMediaStream:function(){window.MediaStream=window.MediaStream||window.webkitMediaStream},shimOnTrack:function(){"object"!=typeof window||!window.RTCPeerConnection||"ontrack"in window.RTCPeerConnection.prototype||Object.defineProperty(window.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){var t=this;this._ontrack&&(this.removeEventListener("track",this._ontrack),this.removeEventListener("addstream",this._ontrackpoly)),this.addEventListener("track",this._ontrack=e),this.addEventListener("addstream",this._ontrackpoly=function(e){e.stream.addEventListener("addtrack",function(n){var r=new Event("track");r.track=n.track,r.receiver={track:n.track},r.streams=[e.stream],t.dispatchEvent(r)}),e.stream.getTracks().forEach(function(t){var n=new Event("track");n.track=t,n.receiver={track:t},n.streams=[e.stream],this.dispatchEvent(n)}.bind(this))}.bind(this))}})},shimSourceObject:function(){"object"==typeof window&&(!window.HTMLMediaElement||"srcObject"in window.HTMLMediaElement.prototype||Object.defineProperty(window.HTMLMediaElement.prototype,"srcObject",{get:function(){return this._srcObject},set:function(e){var t=this;if(this._srcObject=e,this.src&&URL.revokeObjectURL(this.src),!e)return void(this.src="");this.src=URL.createObjectURL(e),e.addEventListener("addtrack",function(){t.src&&URL.revokeObjectURL(t.src),t.src=URL.createObjectURL(e)}),e.addEventListener("removetrack",function(){t.src&&URL.revokeObjectURL(t.src),t.src=URL.createObjectURL(e)})}}))},shimPeerConnection:function(){window.RTCPeerConnection=function(e,t){r("PeerConnection"),e&&e.iceTransportPolicy&&(e.iceTransports=e.iceTransportPolicy);var n=new webkitRTCPeerConnection(e,t),i=n.getStats.bind(n);return n.getStats=function(e,t,n){var r=this,o=arguments;if(arguments.length>0&&"function"==typeof e)return i(e,t);var a=function(e){var t={};return e.result().forEach(function(e){var n={id:e.id,timestamp:e.timestamp,type:e.type};e.names().forEach(function(t){n[t]=e.stat(t)}),t[n.id]=n}),t},s=function(e,t){var n=new Map(Object.keys(e).map(function(t){return[t,e[t]]}));return t=t||e,Object.keys(t).forEach(function(e){n[e]=t[e]}),n};if(arguments.length>=2){var c=function(e){o[1](s(a(e)))};return i.apply(this,[c,arguments[0]])}return new Promise(function(t,n){1===o.length&&"object"==typeof e?i.apply(r,[function(e){t(s(a(e)))},n]):i.apply(r,[function(e){t(s(a(e),e.result()))},n])}).then(t,n)},n},window.RTCPeerConnection.prototype=webkitRTCPeerConnection.prototype,webkitRTCPeerConnection.generateCertificate&&Object.defineProperty(window.RTCPeerConnection,"generateCertificate",{get:function(){return webkitRTCPeerConnection.generateCertificate}}),["createOffer","createAnswer"].forEach(function(e){var t=webkitRTCPeerConnection.prototype[e];webkitRTCPeerConnection.prototype[e]=function(){var e=this;if(arguments.length<1||1===arguments.length&&"object"==typeof arguments[0]){var n=1===arguments.length?arguments[0]:void 0;return new Promise(function(r,i){t.apply(e,[r,i,n])})}return t.apply(this,arguments)}}),i.version<51&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(e){var t=webkitRTCPeerConnection.prototype[e];webkitRTCPeerConnection.prototype[e]=function(){var e=arguments,n=this,r=new Promise(function(r,i){t.apply(n,[e[0],r,i])});return e.length<2?r:r.then(function(){e[1].apply(null,[])},function(t){e.length>=3&&e[2].apply(null,[t])})}}),["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(e){var t=webkitRTCPeerConnection.prototype[e];webkitRTCPeerConnection.prototype[e]=function(){return arguments[0]=new("addIceCandidate"===e?RTCIceCandidate:RTCSessionDescription)(arguments[0]),t.apply(this,arguments)}});var e=RTCPeerConnection.prototype.addIceCandidate;RTCPeerConnection.prototype.addIceCandidate=function(){return null===arguments[0]?Promise.resolve():e.apply(this,arguments)}}};t.exports={shimMediaStream:o.shimMediaStream,shimOnTrack:o.shimOnTrack,shimSourceObject:o.shimSourceObject,shimPeerConnection:o.shimPeerConnection,shimGetUserMedia:e("./getusermedia")}},{"../utils.js":10,"./getusermedia":4}],4:[function(e,t,n){"use strict";var r=e("../utils.js").log;t.exports=function(){var e=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;var t={};return Object.keys(e).forEach(function(n){if("require"!==n&&"advanced"!==n&&"mediaSource"!==n){var r="object"==typeof e[n]?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact);var i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];var o={};"number"==typeof r.ideal?(o[i("min",n)]=r.ideal,t.optional.push(o),o={},o[i("max",n)]=r.ideal,t.optional.push(o)):(o[i("",n)]=r.ideal,t.optional.push(o))}void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",n)]=r.exact):["min","max"].forEach(function(e){void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,n)]=r[e])})}}),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},t=function(t,n){if(t=JSON.parse(JSON.stringify(t)),t&&t.audio&&(t.audio=e(t.audio)),t&&"object"==typeof t.video){var i=t.video.facingMode;if((i=i&&("object"==typeof i?i:{ideal:i}))&&("user"===i.exact||"environment"===i.exact||"user"===i.ideal||"environment"===i.ideal)&&(!navigator.mediaDevices.getSupportedConstraints||!navigator.mediaDevices.getSupportedConstraints().facingMode)&&(delete t.video.facingMode,"environment"===i.exact||"environment"===i.ideal))return navigator.mediaDevices.enumerateDevices().then(function(o){o=o.filter(function(e){return"videoinput"===e.kind});var a=o.find(function(e){return-1!==e.label.toLowerCase().indexOf("back")})||o.length&&o[o.length-1];return a&&(t.video.deviceId=i.exact?{exact:a.deviceId}:{ideal:a.deviceId}),t.video=e(t.video),r("chrome: "+JSON.stringify(t)),n(t)});t.video=e(t.video)}return r("chrome: "+JSON.stringify(t)),n(t)},n=function(e){return{name:{PermissionDeniedError:"NotAllowedError",ConstraintNotSatisfiedError:"OverconstrainedError"}[e.name]||e.name,message:e.message,constraint:e.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}},i=function(e){function t(t,n,r){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e,r,i){t(e,function(e){navigator.webkitGetUserMedia(e,r,function(e){i(n(e))})})});navigator.getUserMedia=i;var o=function(e){return new Promise(function(t,n){navigator.getUserMedia(e,t,n)})};if(navigator.mediaDevices||(navigator.mediaDevices={getUserMedia:o,enumerateDevices:function(){return new Promise(function(e){var t={audio:"audioinput",video:"videoinput"};return MediaStreamTrack.getSources(function(n){e(n.map(function(e){return{label:e.label,kind:t[e.kind],deviceId:e.id,groupId:""}}))})})}}),navigator.mediaDevices.getUserMedia){var a=navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices);navigator.mediaDevices.getUserMedia=function(e){return t(e,function(e){return a(e).catch(function(e){return Promise.reject(n(e))})})}}else navigator.mediaDevices.getUserMedia=function(e){return o(e)};void 0===navigator.mediaDevices.addEventListener&&(navigator.mediaDevices.addEventListener=function(){r("Dummy mediaDevices.addEventListener called.")}),void 0===navigator.mediaDevices.removeEventListener&&(navigator.mediaDevices.removeEventListener=function(){r("Dummy mediaDevices.removeEventListener called.")})}},{"../utils.js":10}],5:[function(e,t,n){"use strict";var r=e("sdp"),i=e("../utils").browserDetails,o={shimPeerConnection:function(){window.RTCIceGatherer&&(window.RTCIceCandidate||(window.RTCIceCandidate=function(e){return e}),window.RTCSessionDescription||(window.RTCSessionDescription=function(e){return e})),window.RTCPeerConnection=function(e){var t=this,n=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach(function(e){t[e]=n[e].bind(n)}),this.onicecandidate=null,this.onaddstream=null,this.ontrack=null,this.onremovestream=null,this.onsignalingstatechange=null,this.oniceconnectionstatechange=null,this.onnegotiationneeded=null,this.ondatachannel=null,this.localStreams=[],this.remoteStreams=[],this.getLocalStreams=function(){return t.localStreams},this.getRemoteStreams=function(){return t.remoteStreams},this.localDescription=new RTCSessionDescription({type:"",sdp:""}),this.remoteDescription=new RTCSessionDescription({type:"",sdp:""}),this.signalingState="stable",this.iceConnectionState="new",this.iceGatheringState="new",this.iceOptions={gatherPolicy:"all",iceServers:[]},e&&e.iceTransportPolicy)switch(e.iceTransportPolicy){case"all":case"relay":this.iceOptions.gatherPolicy=e.iceTransportPolicy;break;case"none":throw new TypeError('iceTransportPolicy "none" not supported')}if(this.usingBundle=e&&"max-bundle"===e.bundlePolicy,e&&e.iceServers){var r=JSON.parse(JSON.stringify(e.iceServers));this.iceOptions.iceServers=r.filter(function(e){if(e&&e.urls){var t=e.urls;return"string"==typeof t&&(t=[t]),!!(t=t.filter(function(e){return 0===e.indexOf("turn:")&&-1!==e.indexOf("transport=udp")&&-1===e.indexOf("turn:[")||0===e.indexOf("stun:")&&i.version>=14393})[0])}return!1})}this.transceivers=[],this._localIceCandidatesBuffer=[]},window.RTCPeerConnection.prototype._emitBufferedCandidates=function(){var e=this,t=r.splitSections(e.localDescription.sdp);this._localIceCandidatesBuffer.forEach(function(n){if(n.candidate&&0!==Object.keys(n.candidate).length)-1===n.candidate.candidate.indexOf("typ endOfCandidates")&&(t[n.candidate.sdpMLineIndex+1]+="a="+n.candidate.candidate+"\r\n");else for(var r=1;r<t.length;r++)-1===t[r].indexOf("\r\na=end-of-candidates\r\n")&&(t[r]+="a=end-of-candidates\r\n");e.localDescription.sdp=t.join(""),e.dispatchEvent(n),null!==e.onicecandidate&&e.onicecandidate(n),n.candidate||"complete"===e.iceGatheringState||e.transceivers.every(function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state})&&(e.iceGatheringState="complete")}),this._localIceCandidatesBuffer=[]},window.RTCPeerConnection.prototype.addStream=function(e){this.localStreams.push(e.clone()),this._maybeFireNegotiationNeeded()},
window.RTCPeerConnection.prototype.removeStream=function(e){var t=this.localStreams.indexOf(e);t>-1&&(this.localStreams.splice(t,1),this._maybeFireNegotiationNeeded())},window.RTCPeerConnection.prototype.getSenders=function(){return this.transceivers.filter(function(e){return!!e.rtpSender}).map(function(e){return e.rtpSender})},window.RTCPeerConnection.prototype.getReceivers=function(){return this.transceivers.filter(function(e){return!!e.rtpReceiver}).map(function(e){return e.rtpReceiver})},window.RTCPeerConnection.prototype._getCommonCapabilities=function(e,t){var n={codecs:[],headerExtensions:[],fecMechanisms:[]};return e.codecs.forEach(function(e){for(var r=0;r<t.codecs.length;r++){var i=t.codecs[r];if(e.name.toLowerCase()===i.name.toLowerCase()&&e.clockRate===i.clockRate&&e.numChannels===i.numChannels){n.codecs.push(i),i.rtcpFeedback=i.rtcpFeedback.filter(function(t){for(var n=0;n<e.rtcpFeedback.length;n++)if(e.rtcpFeedback[n].type===t.type&&e.rtcpFeedback[n].parameter===t.parameter)return!0;return!1});break}}}),e.headerExtensions.forEach(function(e){for(var r=0;r<t.headerExtensions.length;r++){var i=t.headerExtensions[r];if(e.uri===i.uri){n.headerExtensions.push(i);break}}}),n},window.RTCPeerConnection.prototype._createIceAndDtlsTransports=function(e,t){var n=this,i=new RTCIceGatherer(n.iceOptions),o=new RTCIceTransport(i);i.onlocalcandidate=function(a){var s=new Event("icecandidate");s.candidate={sdpMid:e,sdpMLineIndex:t};var c=a.candidate,u=!c||0===Object.keys(c).length;u?(void 0===i.state&&(i.state="completed"),s.candidate.candidate="candidate:1 1 udp 1 0.0.0.0 9 typ endOfCandidates"):(c.component="RTCP"===o.component?2:1,s.candidate.candidate=r.writeCandidate(c));var l=r.splitSections(n.localDescription.sdp);-1===s.candidate.candidate.indexOf("typ endOfCandidates")?l[s.candidate.sdpMLineIndex+1]+="a="+s.candidate.candidate+"\r\n":l[s.candidate.sdpMLineIndex+1]+="a=end-of-candidates\r\n",n.localDescription.sdp=l.join("");var d=n.transceivers.every(function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state});switch(n.iceGatheringState){case"new":n._localIceCandidatesBuffer.push(s),u&&d&&n._localIceCandidatesBuffer.push(new Event("icecandidate"));break;case"gathering":n._emitBufferedCandidates(),n.dispatchEvent(s),null!==n.onicecandidate&&n.onicecandidate(s),d&&(n.dispatchEvent(new Event("icecandidate")),null!==n.onicecandidate&&n.onicecandidate(new Event("icecandidate")),n.iceGatheringState="complete")}},o.onicestatechange=function(){n._updateConnectionState()};var a=new RTCDtlsTransport(o);return a.ondtlsstatechange=function(){n._updateConnectionState()},a.onerror=function(){a.state="failed",n._updateConnectionState()},{iceGatherer:i,iceTransport:o,dtlsTransport:a}},window.RTCPeerConnection.prototype._transceive=function(e,t,n){var i=this._getCommonCapabilities(e.localCapabilities,e.remoteCapabilities);t&&e.rtpSender&&(i.encodings=e.sendEncodingParameters,i.rtcp={cname:r.localCName},e.recvEncodingParameters.length&&(i.rtcp.ssrc=e.recvEncodingParameters[0].ssrc),e.rtpSender.send(i)),n&&e.rtpReceiver&&(i.encodings=e.recvEncodingParameters,i.rtcp={cname:e.cname},e.sendEncodingParameters.length&&(i.rtcp.ssrc=e.sendEncodingParameters[0].ssrc),e.rtpReceiver.receive(i))},window.RTCPeerConnection.prototype.setLocalDescription=function(e){var t,n,i=this;if("offer"===e.type)this._pendingOffer&&(t=r.splitSections(e.sdp),n=t.shift(),t.forEach(function(e,t){var n=r.parseRtpParameters(e);i._pendingOffer[t].localCapabilities=n}),this.transceivers=this._pendingOffer,delete this._pendingOffer);else if("answer"===e.type){t=r.splitSections(i.remoteDescription.sdp),n=t.shift();var o=r.matchPrefix(n,"a=ice-lite").length>0;t.forEach(function(e,t){var a=i.transceivers[t],s=a.iceGatherer,c=a.iceTransport,u=a.dtlsTransport,l=a.localCapabilities,d=a.remoteCapabilities;if("0"!==e.split("\n",1)[0].split(" ",2)[1]&&!a.isDatachannel){var p=r.getIceParameters(e,n);if(o){var f=r.matchPrefix(e,"a=candidate:").map(function(e){return r.parseCandidate(e)}).filter(function(e){return"1"===e.component});f.length&&c.setRemoteCandidates(f)}var h=r.getDtlsParameters(e,n);o&&(h.role="server"),i.usingBundle&&0!==t||(c.start(s,p,o?"controlling":"controlled"),u.start(h));var m=i._getCommonCapabilities(l,d);i._transceive(a,m.codecs.length>0,!1)}})}switch(this.localDescription={type:e.type,sdp:e.sdp},e.type){case"offer":this._updateSignalingState("have-local-offer");break;case"answer":this._updateSignalingState("stable");break;default:throw new TypeError('unsupported type "'+e.type+'"')}var a=arguments.length>1&&"function"==typeof arguments[1];if(a){var s=arguments[1];window.setTimeout(function(){s(),"new"===i.iceGatheringState&&(i.iceGatheringState="gathering"),i._emitBufferedCandidates()},0)}var c=Promise.resolve();return c.then(function(){a||("new"===i.iceGatheringState&&(i.iceGatheringState="gathering"),window.setTimeout(i._emitBufferedCandidates.bind(i),500))}),c},window.RTCPeerConnection.prototype.setRemoteDescription=function(e){var t=this,n=new MediaStream,i=[],o=r.splitSections(e.sdp),a=o.shift(),s=r.matchPrefix(a,"a=ice-lite").length>0;switch(this.usingBundle=r.matchPrefix(a,"a=group:BUNDLE ").length>0,o.forEach(function(o,c){var u=r.splitLines(o),l=u[0].substr(2).split(" "),d=l[0],p="0"===l[1],f=r.getDirection(o,a),h=r.matchPrefix(o,"a=mid:");if(h=h.length?h[0].substr(6):r.generateIdentifier(),"application"===d&&"DTLS/SCTP"===l[2])return void(t.transceivers[c]={mid:h,isDatachannel:!0});var m,v,y,g,b,S,E,T,_,C,w,R,k=r.parseRtpParameters(o);p||(w=r.getIceParameters(o,a),R=r.getDtlsParameters(o,a),R.role="client"),T=r.parseRtpEncodingParameters(o);var A,P=r.matchPrefix(o,"a=ssrc:").map(function(e){return r.parseSsrcMedia(e)}).filter(function(e){return"cname"===e.attribute})[0];P&&(A=P.value);var I=r.matchPrefix(o,"a=end-of-candidates",a).length>0,O=r.matchPrefix(o,"a=candidate:").map(function(e){return r.parseCandidate(e)}).filter(function(e){return"1"===e.component});if("offer"!==e.type||p)"answer"!==e.type||p||(m=t.transceivers[c],v=m.iceGatherer,y=m.iceTransport,g=m.dtlsTransport,b=m.rtpSender,S=m.rtpReceiver,E=m.sendEncodingParameters,_=m.localCapabilities,t.transceivers[c].recvEncodingParameters=T,t.transceivers[c].remoteCapabilities=k,t.transceivers[c].cname=A,(s||I)&&O.length&&y.setRemoteCandidates(O),t.usingBundle&&0!==c||(y.start(v,w,"controlling"),g.start(R)),t._transceive(m,"sendrecv"===f||"recvonly"===f,"sendrecv"===f||"sendonly"===f),!S||"sendrecv"!==f&&"sendonly"!==f?delete m.rtpReceiver:(C=S.track,i.push([C,S]),n.addTrack(C)));else{var D=t.usingBundle&&c>0?{iceGatherer:t.transceivers[0].iceGatherer,iceTransport:t.transceivers[0].iceTransport,dtlsTransport:t.transceivers[0].dtlsTransport}:t._createIceAndDtlsTransports(h,c);if(I&&D.iceTransport.setRemoteCandidates(O),_=RTCRtpReceiver.getCapabilities(d),E=[{ssrc:1001*(2*c+2)}],S=new RTCRtpReceiver(D.dtlsTransport,d),C=S.track,i.push([C,S]),n.addTrack(C),t.localStreams.length>0&&t.localStreams[0].getTracks().length>=c){var L;"audio"===d?L=t.localStreams[0].getAudioTracks()[0]:"video"===d&&(L=t.localStreams[0].getVideoTracks()[0]),L&&(b=new RTCRtpSender(L,D.dtlsTransport))}t.transceivers[c]={iceGatherer:D.iceGatherer,iceTransport:D.iceTransport,dtlsTransport:D.dtlsTransport,localCapabilities:_,remoteCapabilities:k,rtpSender:b,rtpReceiver:S,kind:d,mid:h,cname:A,sendEncodingParameters:E,recvEncodingParameters:T},t._transceive(t.transceivers[c],!1,"sendrecv"===f||"sendonly"===f)}}),this.remoteDescription={type:e.type,sdp:e.sdp},e.type){case"offer":this._updateSignalingState("have-remote-offer");break;case"answer":this._updateSignalingState("stable");break;default:throw new TypeError('unsupported type "'+e.type+'"')}return n.getTracks().length&&(t.remoteStreams.push(n),window.setTimeout(function(){var e=new Event("addstream");e.stream=n,t.dispatchEvent(e),null!==t.onaddstream&&window.setTimeout(function(){t.onaddstream(e)},0),i.forEach(function(r){var i=r[0],o=r[1],a=new Event("track");a.track=i,a.receiver=o,a.streams=[n],t.dispatchEvent(e),null!==t.ontrack&&window.setTimeout(function(){t.ontrack(a)},0)})},0)),arguments.length>1&&"function"==typeof arguments[1]&&window.setTimeout(arguments[1],0),Promise.resolve()},window.RTCPeerConnection.prototype.close=function(){this.transceivers.forEach(function(e){e.iceTransport&&e.iceTransport.stop(),e.dtlsTransport&&e.dtlsTransport.stop(),e.rtpSender&&e.rtpSender.stop(),e.rtpReceiver&&e.rtpReceiver.stop()}),this._updateSignalingState("closed")},window.RTCPeerConnection.prototype._updateSignalingState=function(e){this.signalingState=e;var t=new Event("signalingstatechange");this.dispatchEvent(t),null!==this.onsignalingstatechange&&this.onsignalingstatechange(t)},window.RTCPeerConnection.prototype._maybeFireNegotiationNeeded=function(){var e=new Event("negotiationneeded");this.dispatchEvent(e),null!==this.onnegotiationneeded&&this.onnegotiationneeded(e)},window.RTCPeerConnection.prototype._updateConnectionState=function(){var e,t=this,n={new:0,closed:0,connecting:0,checking:0,connected:0,completed:0,failed:0};if(this.transceivers.forEach(function(e){n[e.iceTransport.state]++,n[e.dtlsTransport.state]++}),n.connected+=n.completed,e="new",n.failed>0?e="failed":n.connecting>0||n.checking>0?e="connecting":n.disconnected>0?e="disconnected":n.new>0?e="new":(n.connected>0||n.completed>0)&&(e="connected"),e!==t.iceConnectionState){t.iceConnectionState=e;var r=new Event("iceconnectionstatechange");this.dispatchEvent(r),null!==this.oniceconnectionstatechange&&this.oniceconnectionstatechange(r)}},window.RTCPeerConnection.prototype.createOffer=function(){var e=this;if(this._pendingOffer)throw new Error("createOffer called while there is a pending offer.");var t;1===arguments.length&&"function"!=typeof arguments[0]?t=arguments[0]:3===arguments.length&&(t=arguments[2]);var n=[],i=0,o=0;if(this.localStreams.length&&(i=this.localStreams[0].getAudioTracks().length,o=this.localStreams[0].getVideoTracks().length),t){if(t.mandatory||t.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==t.offerToReceiveAudio&&(i=t.offerToReceiveAudio),void 0!==t.offerToReceiveVideo&&(o=t.offerToReceiveVideo)}for(this.localStreams.length&&this.localStreams[0].getTracks().forEach(function(e){n.push({kind:e.kind,track:e,wantReceive:"audio"===e.kind?i>0:o>0}),"audio"===e.kind?i--:"video"===e.kind&&o--});i>0||o>0;)i>0&&(n.push({kind:"audio",wantReceive:!0}),i--),o>0&&(n.push({kind:"video",wantReceive:!0}),o--);var a=r.writeSessionBoilerplate(),s=[];n.forEach(function(t,n){var i,o,a=t.track,c=t.kind,u=r.generateIdentifier(),l=e.usingBundle&&n>0?{iceGatherer:s[0].iceGatherer,iceTransport:s[0].iceTransport,dtlsTransport:s[0].dtlsTransport}:e._createIceAndDtlsTransports(u,n),d=RTCRtpSender.getCapabilities(c),p=[{ssrc:1001*(2*n+1)}];a&&(i=new RTCRtpSender(a,l.dtlsTransport)),t.wantReceive&&(o=new RTCRtpReceiver(l.dtlsTransport,c)),s[n]={iceGatherer:l.iceGatherer,iceTransport:l.iceTransport,dtlsTransport:l.dtlsTransport,localCapabilities:d,remoteCapabilities:null,rtpSender:i,rtpReceiver:o,kind:c,mid:u,sendEncodingParameters:p,recvEncodingParameters:null}}),this.usingBundle&&(a+="a=group:BUNDLE "+s.map(function(e){return e.mid}).join(" ")+"\r\n"),n.forEach(function(t,n){var i=s[n];a+=r.writeMediaSection(i,i.localCapabilities,"offer",e.localStreams[0])}),this._pendingOffer=s;var c=new RTCSessionDescription({type:"offer",sdp:a});return arguments.length&&"function"==typeof arguments[0]&&window.setTimeout(arguments[0],0,c),Promise.resolve(c)},window.RTCPeerConnection.prototype.createAnswer=function(){var e=this,t=r.writeSessionBoilerplate();this.usingBundle&&(t+="a=group:BUNDLE "+this.transceivers.map(function(e){return e.mid}).join(" ")+"\r\n"),this.transceivers.forEach(function(n){if(n.isDatachannel)return void(t+="m=application 0 DTLS/SCTP 5000\r\nc=IN IP4 0.0.0.0\r\na=mid:"+n.mid+"\r\n");var i=e._getCommonCapabilities(n.localCapabilities,n.remoteCapabilities);t+=r.writeMediaSection(n,i,"answer",e.localStreams[0])});var n=new RTCSessionDescription({type:"answer",sdp:t});return arguments.length&&"function"==typeof arguments[0]&&window.setTimeout(arguments[0],0,n),Promise.resolve(n)},window.RTCPeerConnection.prototype.addIceCandidate=function(e){if(null===e)this.transceivers.forEach(function(e){e.iceTransport.addRemoteCandidate({})});else{var t=e.sdpMLineIndex;if(e.sdpMid)for(var n=0;n<this.transceivers.length;n++)if(this.transceivers[n].mid===e.sdpMid){t=n;break}var i=this.transceivers[t];if(i){var o=Object.keys(e.candidate).length>0?r.parseCandidate(e.candidate):{};if("tcp"===o.protocol&&(0===o.port||9===o.port))return;if("1"!==o.component)return;"endOfCandidates"===o.type&&(o={}),i.iceTransport.addRemoteCandidate(o);var a=r.splitSections(this.remoteDescription.sdp);a[t+1]+=(o.type?e.candidate.trim():"a=end-of-candidates")+"\r\n",this.remoteDescription.sdp=a.join("")}}return arguments.length>1&&"function"==typeof arguments[1]&&window.setTimeout(arguments[1],0),Promise.resolve()},window.RTCPeerConnection.prototype.getStats=function(){var e=[];this.transceivers.forEach(function(t){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach(function(n){t[n]&&e.push(t[n].getStats())})});var t=arguments.length>1&&"function"==typeof arguments[1]&&arguments[1];return new Promise(function(n){var r=new Map;Promise.all(e).then(function(e){e.forEach(function(e){Object.keys(e).forEach(function(t){r.set(t,e[t]),r[t]=e[t]})}),t&&window.setTimeout(t,0,r),n(r)})})}}};t.exports={shimPeerConnection:o.shimPeerConnection,shimGetUserMedia:e("./getusermedia")}},{"../utils":10,"./getusermedia":6,sdp:1}],6:[function(e,t,n){"use strict";t.exports=function(){var e=function(e){return{name:{PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:e.message,constraint:e.constraint,toString:function(){return this.name}}},t=navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices);navigator.mediaDevices.getUserMedia=function(n){return t(n).catch(function(t){return Promise.reject(e(t))})}}},{}],7:[function(e,t,n){"use strict";var r=e("../utils").browserDetails,i={shimOnTrack:function(){"object"!=typeof window||!window.RTCPeerConnection||"ontrack"in window.RTCPeerConnection.prototype||Object.defineProperty(window.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){this._ontrack&&(this.removeEventListener("track",this._ontrack),this.removeEventListener("addstream",this._ontrackpoly)),this.addEventListener("track",this._ontrack=e),this.addEventListener("addstream",this._ontrackpoly=function(e){e.stream.getTracks().forEach(function(t){var n=new Event("track");n.track=t,n.receiver={track:t},n.streams=[e.stream],this.dispatchEvent(n)}.bind(this))}.bind(this))}})},shimSourceObject:function(){"object"==typeof window&&(!window.HTMLMediaElement||"srcObject"in window.HTMLMediaElement.prototype||Object.defineProperty(window.HTMLMediaElement.prototype,"srcObject",{get:function(){return this.mozSrcObject},set:function(e){this.mozSrcObject=e}}))},shimPeerConnection:function(){if("object"==typeof window&&(window.RTCPeerConnection||window.mozRTCPeerConnection)){window.RTCPeerConnection||(window.RTCPeerConnection=function(e,t){if(r.version<38&&e&&e.iceServers){for(var n=[],i=0;i<e.iceServers.length;i++){var o=e.iceServers[i];if(o.hasOwnProperty("urls"))for(var a=0;a<o.urls.length;a++){var s={url:o.urls[a]};0===o.urls[a].indexOf("turn")&&(s.username=o.username,s.credential=o.credential),n.push(s)}else n.push(e.iceServers[i])}e.iceServers=n}return new mozRTCPeerConnection(e,t)},window.RTCPeerConnection.prototype=mozRTCPeerConnection.prototype,mozRTCPeerConnection.generateCertificate&&Object.defineProperty(window.RTCPeerConnection,"generateCertificate",{get:function(){return mozRTCPeerConnection.generateCertificate}}),window.RTCSessionDescription=mozRTCSessionDescription,window.RTCIceCandidate=mozRTCIceCandidate),["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(e){var t=RTCPeerConnection.prototype[e];RTCPeerConnection.prototype[e]=function(){return arguments[0]=new("addIceCandidate"===e?RTCIceCandidate:RTCSessionDescription)(arguments[0]),t.apply(this,arguments)}});var e=RTCPeerConnection.prototype.addIceCandidate;RTCPeerConnection.prototype.addIceCandidate=function(){return null===arguments[0]?Promise.resolve():e.apply(this,arguments)};var t=function(e){var t=new Map;return Object.keys(e).forEach(function(n){t.set(n,e[n]),t[n]=e[n]}),t},n=RTCPeerConnection.prototype.getStats;RTCPeerConnection.prototype.getStats=function(e,r,i){return n.apply(this,[e||null]).then(function(e){return t(e)}).then(r,i)}}}};t.exports={shimOnTrack:i.shimOnTrack,shimSourceObject:i.shimSourceObject,shimPeerConnection:i.shimPeerConnection,shimGetUserMedia:e("./getusermedia")}},{"../utils":10,"./getusermedia":8}],8:[function(e,t,n){"use strict";var r=e("../utils").log,i=e("../utils").browserDetails;t.exports=function(){var e=function(e){return{name:{SecurityError:"NotAllowedError",PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:{"The operation is insecure.":"The request is not allowed by the user agent or the platform in the current context."}[e.message]||e.message,constraint:e.constraint,toString:function(){return this.name+(this.message&&": ")+this.message}}},t=function(t,n,o){var a=function(e){if("object"!=typeof e||e.require)return e;var t=[];return Object.keys(e).forEach(function(n){if("require"!==n&&"advanced"!==n&&"mediaSource"!==n){var r=e[n]="object"==typeof e[n]?e[n]:{ideal:e[n]};if(void 0===r.min&&void 0===r.max&&void 0===r.exact||t.push(n),void 0!==r.exact&&("number"==typeof r.exact?r.min=r.max=r.exact:e[n]=r.exact,delete r.exact),void 0!==r.ideal){e.advanced=e.advanced||[];var i={};"number"==typeof r.ideal?i[n]={min:r.ideal,max:r.ideal}:i[n]=r.ideal,e.advanced.push(i),delete r.ideal,Object.keys(r).length||delete e[n]}}}),t.length&&(e.require=t),e};return t=JSON.parse(JSON.stringify(t)),i.version<38&&(r("spec: "+JSON.stringify(t)),t.audio&&(t.audio=a(t.audio)),t.video&&(t.video=a(t.video)),r("ff37: "+JSON.stringify(t))),navigator.mozGetUserMedia(t,n,function(t){o(e(t))})},n=function(e){return new Promise(function(n,r){t(e,n,r)})};if(navigator.mediaDevices||(navigator.mediaDevices={getUserMedia:n,addEventListener:function(){},removeEventListener:function(){}}),navigator.mediaDevices.enumerateDevices=navigator.mediaDevices.enumerateDevices||function(){return new Promise(function(e){e([{kind:"audioinput",deviceId:"default",label:"",groupId:""},{kind:"videoinput",deviceId:"default",label:"",groupId:""}])})},i.version<41){var a=navigator.mediaDevices.enumerateDevices.bind(navigator.mediaDevices);navigator.mediaDevices.enumerateDevices=function(){return a().then(void 0,function(e){if("NotFoundError"===e.name)return[];throw e})}}if(i.version<49){var s=navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices);navigator.mediaDevices.getUserMedia=function(t){return s(t).catch(function(t){return Promise.reject(e(t))})}}navigator.getUserMedia=function(e,n,r){if(i.version<44)return t(e,n,r);o.warn("navigator.getUserMedia has been replaced by navigator.mediaDevices.getUserMedia"),navigator.mediaDevices.getUserMedia(e).then(n,r)}}},{"../utils":10}],9:[function(e,t,n){"use strict";var r={shimGetUserMedia:function(){navigator.getUserMedia=navigator.webkitGetUserMedia}};t.exports={shimGetUserMedia:r.shimGetUserMedia}},{}],10:[function(e,t,n){"use strict";var r=!0,i={disableLog:function(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(r=e,e?"adapter.js logging disabled":"adapter.js logging enabled")},log:function(){if("object"==typeof window){if(r)return;void 0!==o&&"function"==typeof o.log&&o.log.apply(o,arguments)}},extractVersion:function(e,t,n){var r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)},detectBrowser:function(){var e={};if(e.browser=null,e.version=null,"undefined"==typeof window||!window.navigator)return e.browser="Not a browser.",e;if(navigator.mozGetUserMedia)e.browser="firefox",e.version=this.extractVersion(navigator.userAgent,/Firefox\/([0-9]+)\./,1);else if(navigator.webkitGetUserMedia)if(window.webkitRTCPeerConnection)e.browser="chrome",e.version=this.extractVersion(navigator.userAgent,/Chrom(e|ium)\/([0-9]+)\./,2);else{if(!navigator.userAgent.match(/Version\/(\d+).(\d+)/))return e.browser="Unsupported webkit-based browser with GUM support but no WebRTC support.",e;e.browser="safari",e.version=this.extractVersion(navigator.userAgent,/AppleWebKit\/([0-9]+)\./,1)}else{if(!navigator.mediaDevices||!navigator.userAgent.match(/Edge\/(\d+).(\d+)$/))return e.browser="Not a supported browser.",e;e.browser="edge",e.version=this.extractVersion(navigator.userAgent,/Edge\/(\d+).(\d+)$/,2)}return e}};t.exports={log:i.log,disableLog:i.disableLog,browserDetails:i.detectBrowser(),extractVersion:i.extractVersion}},{}]},{},[2])(2)}()}(),a.parseWebrtcDetectedBrowser(),navigator.mozGetUserMedia?(MediaStreamTrack.getSources=function(e){setTimeout(function(){e([{kind:"audio",id:"default",label:"",facing:""},{kind:"video",id:"default",label:"",facing:""}])},0)},attachMediaStream=function(e,t){return e.srcObject=t,e},reattachMediaStream=function(e,t){return e.srcObject=t.srcObject,e},createIceServer=function(e,t,n){o.warn("createIceServer is deprecated. It should be replaced with an application level implementation.");var r=null,i=e.split(":");if(0===i[0].indexOf("stun"))r={urls:[e]};else if(0===i[0].indexOf("turn"))if(webrtcDetectedVersion<27){var a=e.split("?");1!==a.length&&0!==a[1].indexOf("transport=udp")||(r={urls:[a[0]],credential:n,username:t})}else r={urls:[e],credential:n,username:t};return r},createIceServers=function(e,t,n){o.warn("createIceServers is deprecated. It should be replaced with an application level implementation.");var r=[];for(i=0;i<e.length;i++){var a=createIceServer(e[i],t,n);null!==a&&r.push(a)}return r}):navigator.webkitGetUserMedia?(attachMediaStream=function(e,t){return webrtcDetectedVersion>=43?e.srcObject=t:void 0!==e.src?e.src=URL.createObjectURL(t):o.error("Error attaching stream to element."),e},reattachMediaStream=function(e,t){return webrtcDetectedVersion>=43?e.srcObject=t.srcObject:e.src=t.src,e},createIceServer=function(e,t,n){o.warn("createIceServer is deprecated. It should be replaced with an application level implementation.");var r=null,i=e.split(":");return 0===i[0].indexOf("stun")?r={url:e}:0===i[0].indexOf("turn")&&(r={url:e,credential:n,username:t}),r},createIceServers=function(e,t,n){o.warn("createIceServers is deprecated. It should be replaced with an application level implementation.");var r=[];if(webrtcDetectedVersion>=34)r={urls:e,credential:n,username:t};else for(i=0;i<e.length;i++){var a=createIceServer(e[i],t,n);null!==a&&r.push(a)}return r}):navigator.mediaDevices&&navigator.userAgent.match(/Edge\/(\d+).(\d+)$/)&&(attachMediaStream=function(e,t){return e.srcObject=t,e},reattachMediaStream=function(e,t){return e.srcObject=t.srcObject,e}),attachMediaStream_base=attachMediaStream,"opera"===webrtcDetectedBrowser&&(attachMediaStream_base=function(e,t){webrtcDetectedVersion>38?e.srcObject=t:void 0!==e.src&&(e.src=URL.createObjectURL(t))}),attachMediaStream=function(e,t){return"chrome"!==webrtcDetectedBrowser&&"opera"!==webrtcDetectedBrowser||t?attachMediaStream_base(e,t):e.src="",e},reattachMediaStream_base=reattachMediaStream,reattachMediaStream=function(e,t){return reattachMediaStream_base(e,t),e},window.attachMediaStream=attachMediaStream,window.reattachMediaStream=reattachMediaStream,window.getUserMedia=function(e,t,n){navigator.getUserMedia(e,t,n)},a.attachMediaStream=attachMediaStream,a.reattachMediaStream=reattachMediaStream,a.getUserMedia=getUserMedia,"undefined"==typeof Promise&&(requestUserMedia=null),a.maybeThroughWebRTCReady()),function(){"use strict";var e=null;a.TEXT.EXTENSION={REQUIRE_INSTALLATION_FF:"To enable screensharing you need to install the Skylink WebRTC tools Firefox Add-on.",REQUIRE_INSTALLATION_CHROME:"To enable screensharing you need to install the Skylink WebRTC tools Chrome Extension.",REQUIRE_REFRESH:"Please refresh this page after the Skylink WebRTC tools extension has been installed.",BUTTON_FF:"Install Now",BUTTON_CHROME:"Go to Chrome Web Store"};var t=function(e){if(null===e||"object"!=typeof e)return e;var t=e.constructor();for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t};if(window.navigator.mozGetUserMedia?(e=window.navigator.getUserMedia,navigator.getUserMedia=function(n,r,i){if(n&&n.video&&n.video.mediaSource){if("screen"!==n.video.mediaSource&&"window"!==n.video.mediaSource)return void i(new Error('GetUserMedia: Only "screen" and "window" are supported as mediaSource constraints'));var o=t(n);o.video.mozMediaSource=o.video.mediaSource;var s=setInterval(function(){"complete"===document.readyState&&(clearInterval(s),e(o,r,function(e){["PermissionDeniedError","SecurityError"].indexOf(e.name)>-1&&"https:"===window.parent.location.protocol?a.renderNotificationBar(a.TEXT.EXTENSION.REQUIRE_INSTALLATION_FF,a.TEXT.EXTENSION.BUTTON_FF,"https://addons.mozilla.org/en-US/firefox/addon/skylink-webrtc-tools/",!0,!0):i(e)}))},1)}else e(n,r,i)},a.getUserMedia=window.getUserMedia=navigator.getUserMedia):window.navigator.webkitGetUserMedia&&"safari"!==window.webrtcDetectedBrowser?(e=window.navigator.getUserMedia,navigator.getUserMedia=function(n,i,o){if(n&&n.video&&n.video.mediaSource){if("chrome"!==window.webrtcDetectedBrowser)return void o(new Error("Current browser does not support screensharing"));var s=t(n),c=function(t,n){t?o("permission-denied"===t?new Error("Permission denied for screen retrieval"):new Error("Failed retrieving selected screen")):(s.video.mandatory=s.video.mandatory||{},s.video.mandatory.chromeMediaSource="desktop",s.video.mandatory.maxWidth=window.screen.width>1920?window.screen.width:1920,s.video.mandatory.maxHeight=window.screen.height>1080?window.screen.height:1080,n&&(s.video.mandatory.chromeMediaSourceId=n),delete s.video.mediaSource,e(s,i,o))},u=function e(t){t.data&&(t.data.chromeMediaSourceId&&("PermissionDeniedError"===t.data.chromeMediaSourceId?c("permission-denied"):c(null,t.data.chromeMediaSourceId)),t.data.chromeExtensionStatus&&("not-installed"===t.data.chromeExtensionStatus?a.renderNotificationBar(a.TEXT.EXTENSION.REQUIRE_INSTALLATION_CHROME,a.TEXT.EXTENSION.BUTTON_CHROME,t.data.data,!0,!0):c(t.data.chromeExtensionStatus,null)),window.removeEventListener("message",e))};window.addEventListener("message",u),r({captureSourceId:!0})}else e(n,i,o)},a.getUserMedia=window.getUserMedia=navigator.getUserMedia,navigator.mediaDevices.getUserMedia=function(e){return new Promise(function(t,n){window.getUserMedia(e,t,n)})}):navigator.mediaDevices&&navigator.userAgent.match(/Edge\/(\d+).(\d+)$/)?o.warn("Edge does not support screensharing feature in getUserMedia"):(e=window.navigator.getUserMedia,navigator.getUserMedia=function(n,r,i){if(n&&n.video&&n.video.mediaSource){var o=t(n);a.WebRTCPlugin.callWhenPluginReady(function(){if(!a.WebRTCPlugin.plugin.HasScreensharingFeature||!a.WebRTCPlugin.plugin.isScreensharingAvailable)return void i(new Error("Your version of the WebRTC plugin does not support screensharing"));o.video.optional=o.video.optional||[],o.video.optional.push({sourceId:a.WebRTCPlugin.plugin.screensharingKey||"Screensharing"}),delete o.video.mediaSource,e(o,r,i)})}else e(n,r,i)},a.getUserMedia=getUserMedia=window.getUserMedia=navigator.getUserMedia,navigator.mediaDevices&&"undefined"!=typeof Promise&&(navigator.mediaDevices.getUserMedia=requestUserMedia)),"chrome"===window.webrtcDetectedBrowser){var n=document.createElement("iframe");n.onload=function(){n.isLoaded=!0},n.src="https://cdn.temasys.com.sg/skylink/extensions/detectRTC.html",n.style.display="none",(document.body||document.documentElement).appendChild(n);var r=function(e){if(e=e||{},!n.isLoaded)return void setTimeout(function(){n.contentWindow.postMessage(e,"*")},100);n.contentWindow.postMessage(e,"*")}}else"opera"===window.webrtcDetectedBrowser&&o.warn("Opera does not support screensharing feature in getUserMedia")}()}).call(t,"modules/RTC/adapter.screenshare.js")},function(e,t,n){function r(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders}var i=n(18),o=n(36);e.exports=r,o(r.prototype),r.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},r.prototype.open=function(){return"closed"!=this.readyState&&""!=this.readyState||(this.readyState="opening",this.doOpen()),this},r.prototype.close=function(){return"opening"!=this.readyState&&"open"!=this.readyState||(this.doClose(),this.onClose()),this},r.prototype.send=function(e){if("open"!=this.readyState)throw new Error("Transport not open");this.write(e)},r.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},r.prototype.onData=function(e){var t=i.decodePacket(e,this.socket.binaryType);this.onPacket(t)},r.prototype.onPacket=function(e){this.emit("packet",e)},r.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(e,t,n){var r=n(76);e.exports=function(e){var t=e.xdomain,n=e.xscheme,i=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||r))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!n&&i)return new XDomainRequest}catch(e){}if(!t)try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}},function(e,t){function n(e){if(e)return r(e)}function r(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}e.exports=n,n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[e]=this._callbacks[e]||[]).push(t),this},n.prototype.once=function(e,t){function n(){r.off(e,n),t.apply(this,arguments)}var r=this;return this._callbacks=this._callbacks||{},n.fn=t,this.on(e,n),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1==arguments.length)return delete this._callbacks[e],this;for(var r,i=0;i<n.length;i++)if((r=n[i])===t||r.fn===t){n.splice(i,1);break}return this},n.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks[e];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},n.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[e]||[]},n.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t){t.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},t.decode=function(e){for(var t={},n=e.split("&"),r=0,i=n.length;r<i;r++){var o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}},function(e,t,n){function r(){}function i(e){var n="",r=!1;return n+=e.type,t.BINARY_EVENT!=e.type&&t.BINARY_ACK!=e.type||(n+=e.attachments,n+="-"),e.nsp&&"/"!=e.nsp&&(r=!0,n+=e.nsp),null!=e.id&&(r&&(n+=",",r=!1),n+=e.id),null!=e.data&&(r&&(n+=","),n+=d.stringify(e.data)),l("encoded %j as %s",e,n),n}function o(e,t){function n(e){var n=f.deconstructPacket(e),r=i(n.packet),o=n.buffers;o.unshift(r),t(o)}f.removeBlobs(e,n)}function a(){this.reconstructor=null}function s(e){var n={},r=0;if(n.type=Number(e.charAt(0)),
null==t.types[n.type])return u();if(t.BINARY_EVENT==n.type||t.BINARY_ACK==n.type){for(var i="";"-"!=e.charAt(++r)&&(i+=e.charAt(r),r!=e.length););if(i!=Number(i)||"-"!=e.charAt(r))throw new Error("Illegal attachments");n.attachments=Number(i)}if("/"==e.charAt(r+1))for(n.nsp="";++r;){var o=e.charAt(r);if(","==o)break;if(n.nsp+=o,r==e.length)break}else n.nsp="/";var a=e.charAt(r+1);if(""!==a&&Number(a)==a){for(n.id="";++r;){var o=e.charAt(r);if(null==o||Number(o)!=o){--r;break}if(n.id+=e.charAt(r),r==e.length)break}n.id=Number(n.id)}if(e.charAt(++r))try{n.data=d.parse(e.substr(r))}catch(e){return u()}return l("decoded %s as %j",e,n),n}function c(e){this.reconPack=e,this.buffers=[]}function u(e){return{type:t.ERROR,data:"parser error"}}var l=n(9)("socket.io-parser"),d=n(78),p=(n(37),n(169)),f=n(168),h=n(67);t.protocol=4,t.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],t.CONNECT=0,t.DISCONNECT=1,t.EVENT=2,t.ACK=3,t.ERROR=4,t.BINARY_EVENT=5,t.BINARY_ACK=6,t.Encoder=r,t.Decoder=a,r.prototype.encode=function(e,n){l("encoding packet %j",e),t.BINARY_EVENT==e.type||t.BINARY_ACK==e.type?o(e,n):n([i(e)])},p(a.prototype),a.prototype.add=function(e){var n;if("string"==typeof e)n=s(e),t.BINARY_EVENT==n.type||t.BINARY_ACK==n.type?(this.reconstructor=new c(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!h(e)&&!e.base64)throw new Error("Unknown type: "+e);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(n=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,this.emit("decoded",n))}},a.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},c.prototype.takeBinaryData=function(e){if(this.buffers.push(e),this.buffers.length==this.reconPack.attachments){var t=f.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null},c.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(e,t){var n=[].slice;e.exports=function(e,t){if("string"==typeof t&&(t=e[t]),"function"!=typeof t)throw new Error("bind() requires a function");var r=n.call(arguments,2);return function(){return t.apply(e,r.concat(n.call(arguments)))}}},function(e,t){var n=[].indexOf;e.exports=function(e,t){if(n)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}},function(e,t){function n(){var e={methodName:"",fileLocation:"",line:null,column:null},t=new Error,n=t.stack?t.stack.split("\n"):[];if(!n||n.length<1)return e;var r=null;return n[3]&&(r=n[3].match(/\s*at\s*(.+?)\s*\((\S*)\s*:(\d*)\s*:(\d*)\)/)),!r||r.length<=4?(0===n[2].indexOf("log@")?e.methodName=n[3].substr(0,n[3].indexOf("@")):e.methodName=n[2].substr(0,n[2].indexOf("@")),e):(e.methodName=r[1],e.fileLocation=r[2],e.line=r[3],e.column=r[4],e)}function r(){var e=arguments[0],t=arguments[1],r=Array.prototype.slice.call(arguments,2);if(!(o[t]<e.level))for(var i=n(),s=a.concat(e.transports),c=0;c<s.length;c++){var u=s[c],l=u[t];l&&"function"==typeof l&&l.bind(u,e.id?"["+e.id+"]":"","<"+i.methodName+">: ").apply(u,r)}}function i(e,t,n,i){this.id=t,this.format=i,this.transports=n,this.transports||(this.transports=[]),this.level=o[e];for(var a=Object.keys(o),s=0;s<a.length;s++)this[a[s]]=r.bind(null,this,a[s])}var o={trace:0,debug:1,info:2,log:3,warn:4,error:5};i.consoleTransport=console;var a=[i.consoleTransport];i.addGlobalTransport=function(e){-1===a.indexOf(e)&&a.push(e)},i.removeGlobalTransport=function(e){var t=a.indexOf(e);-1!==t&&a.splice(t,1)},i.prototype.setLevel=function(e){this.level=o[e]},e.exports=i,i.levels={TRACE:"trace",DEBUG:"debug",INFO:"info",LOG:"log",WARN:"warn",ERROR:"error"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"CONNECTION_DROPPED_ERROR",function(){return r}),n.d(t,"CONNECTION_ERROR",function(){return i}),n.d(t,"OTHER_ERROR",function(){return o}),n.d(t,"PASSWORD_REQUIRED",function(){return a}),n.d(t,"SERVER_ERROR",function(){return s});var r="connection.droppedError",i="connection.connectionError",o="connection.otherError",a="connection.passwordRequired",s="connection.serverError"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"DEVICE_LIST_CHANGED",function(){return r}),n.d(t,"PERMISSION_PROMPT_IS_SHOWN",function(){return i});var r="mediaDevices.devicechange",i="mediaDevices.permissionPromptIsShown"},function(e,t){var n={RECORDER_UNAVAILABLE:"recorder.unavailable",RECORDER_BUSY:"recorder.busy",NO_TOKEN:"recorder.noToken",STATE_CHANGE_FAILED:"recorder.stateChangeFailed",INVALID_STATE:"recorder.invalidState"};e.exports=n},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){var t=e.getOriginalStream();if(t){var n=t.stop;t.stop=function(){n.apply(t),e.isActive()&&t.onended()}}}function s(e,t){void 0===e.active?e.onended=t:e.oninactive=t}var c=n(14),u=n.n(c),l=n(0),d=(n.n(l),n(16)),p=n(4),f=n(1),h=n(23),m=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),v=n.i(l.getLogger)(e),y={track_mute:"onmute",track_unmute:"onunmute",track_ended:"onended"},g=function(e){function t(e,n,o,a,s,c){r(this,t);var u=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return u.addEventListener=u.addListener,u.removeEventListener=u.off=u.removeListener,u.containers=[],u.conference=e,u.audioLevel=-1,u.type=s,u.track=o,u.videoType=c,u.handlers=new Map,u.disposed=!1,u._streamInactiveHandler=a,u._setStream(n),u}return o(t,e),m(t,[{key:"_bindInactiveHandler",value:function(e){f.a.isFirefox()&&a(this),s(this.stream,e)}},{key:"_setHandler",value:function(e,t){if(!y.hasOwnProperty(e))return void v.error("Invalid handler type "+e);if(t?this.handlers.set(e,t):this.handlers.delete(e),this.stream){var n=!0,r=!1,i=void 0;try{for(var o,a=this.stream.getVideoTracks()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(n=(o=a.next()).done);n=!0)o.value[y[e]]=t}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}}},{key:"_unregisterHandlers",value:function(){if(!this.stream)return void v.warn(this+": unable to unregister handlers - no stream object");var e=!0,t=!1,n=void 0;try{for(var r,i=this.handlers.keys()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(e=(r=i.next()).done);e=!0){var o=r.value,a=!0,c=!1,u=void 0;try{for(var l,d=this.stream.getVideoTracks()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(a=(l=d.next()).done);a=!0)l.value[y[o]]=void 0}catch(e){c=!0,u=e}finally{try{!a&&d.return&&d.return()}finally{if(c)throw u}}}}catch(e){t=!0,n=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}this._streamInactiveHandler&&s(this.stream,void 0)}},{key:"_setStream",value:function(e){if(this.stream!==e&&(this.stream=e,this.stream)){var t=!0,n=!1,r=void 0;try{for(var i,o=this.handlers.keys()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(t=(i=o.next()).done);t=!0){var a=i.value;this._setHandler(a,this.handlers.get(a))}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}this._streamInactiveHandler&&this._bindInactiveHandler(this._streamInactiveHandler)}}},{key:"getType",value:function(){return this.type}},{key:"isAudioTrack",value:function(){return this.getType()===p.a}},{key:"isWebRTCTrackMuted",value:function(){return this.track&&this.track.muted}},{key:"isVideoTrack",value:function(){return this.getType()===p.b}},{key:"isLocal",value:function(){throw new Error("Not implemented by subclass")}},{key:"getOriginalStream",value:function(){return this.stream}},{key:"getStreamId",value:function(){return this.stream?this.stream.id:null}},{key:"getTrack",value:function(){return this.track}},{key:"getTrackId",value:function(){return this.track?this.track.id:null}},{key:"getUsageLabel",value:function(){return this.isAudioTrack()?"mic":this.videoType?this.videoType:"default"}},{key:"_maybeFireTrackAttached",value:function(e){this.conference&&e&&this.conference._onTrackAttach(this,e)}},{key:"attach",value:function(e){var t=e;return this.stream&&(t=h.a.attachMediaStream(e,this.stream)),this.containers.push(t),this._maybeFireTrackAttached(t),this._attachTTFMTracker(t),t}},{key:"detach",value:function(e){for(var t=this.containers,n=t.length-1;n>=0;--n){var r=t[n];e||h.a.attachMediaStream(r,null),e&&r!==e||t.splice(n,1)}e&&h.a.attachMediaStream(e,null)}},{key:"_attachTTFMTracker",value:function(e){}},{key:"dispose",value:function(){return this.removeAllListeners(),this.disposed=!0,Promise.resolve()}},{key:"isScreenSharing",value:function(){}},{key:"getId",value:function(){return this.stream?h.a.getStreamID(this.stream):null}},{key:"isActive",value:function(){return void 0===this.stream.active||this.stream.active}},{key:"setAudioLevel",value:function(e,t){this.audioLevel!==e&&(this.audioLevel=e,this.emit(d.TRACK_AUDIO_LEVEL_CHANGED,e,t))}},{key:"getMSID",value:function(){var e=this.getStreamId(),t=this.getTrackId();return e&&t?e+" "+t:null}},{key:"setAudioOutput",value:function(e){var t=this;return h.a.isDeviceChangeAvailable("output")?this.isVideoTrack()?Promise.resolve():Promise.all(this.containers.map(function(t){return t.setSinkId(e).catch(function(e){throw v.warn("Failed to change audio output device on element. Default or previously set audio output device will be used.",t,e),e})})).then(function(){t.emit(d.TRACK_AUDIO_OUTPUT_CHANGED,e)}):Promise.reject(new Error("Audio output device change is not supported"))}}]),t}(u.a);t.a=g}).call(t,"modules/RTC/JitsiTrack.js")},function(e,t,n){"use strict";function r(e){for(var t=0,n=e.length,r=0;r<n;r++)t<e[r]&&(t=e[r]);return parseFloat(((t-127)/128).toFixed(3))}function i(e,t){var n=0,r=t-e;return n=r>.2?t-.2:r<-.4?t+.4:e,parseFloat(n.toFixed(3))}function o(e,t,n){this.stream=e,this.intervalId=null,this.intervalMilis=t,this.audioLevel=0,this.callback=n}t.a=o;var a=n(1);window.AudioContext=window.AudioContext||window.webkitAudioContext;var s=null;window.AudioContext&&(s=new AudioContext,s.suspend&&s.suspend()),o.prototype.start=function(){if(o.isLocalStatsSupported()){s.resume();var e=s.createAnalyser();e.smoothingTimeConstant=.8,e.fftSize=2048,s.createMediaStreamSource(this.stream).connect(e);var t=this;this.intervalId=setInterval(function(){var n=new Uint8Array(e.frequencyBinCount);e.getByteTimeDomainData(n);var o=r(n);o!==t.audioLevel&&(t.audioLevel=i(o,t.audioLevel),t.callback(t.audioLevel))},this.intervalMilis)}},o.prototype.stop=function(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)},o.isLocalStatsSupported=function(){return Boolean(s&&!a.a.isTemasysPluginUsed())}},function(e,t,n){function r(e){if(void 0===e.recorder)throw new Error("Passed an object to startRecorder which is not a TrackRecorder object");e.recorder.start(),e.startTime=new Date}function i(e){if(void 0===e.recorder)throw new Error("Passed an object to stopRecorder which is not a TrackRecorder object");e.recorder.stop()}function o(){if(MediaRecorder.isTypeSupported(u))return u;if(MediaRecorder.isTypeSupported(l))return l;throw new Error("unable to create a MediaRecorder with the right mimetype!")}function a(e){this.recorders=[],this.fileType=o(),this.isRecording=!1,this.jitsiConference=e}function s(){if("undefined"!=typeof MediaStream)return new MediaStream;if("undefined"!=typeof webkitMediaStream)return new webkitMediaStream;throw new Error("cannot create a clean mediaStream")}var c=n(108),u="audio/webm",l="audio/ogg",d=function(e){this.track=e,this.recorder=null,this.data=null,this.name=null,this.startTime=null};a.determineCorrectFileType=o,a.prototype.addTrack=function(e){if(e.isAudioTrack()){var t=this.instantiateTrackRecorder(e);this.recorders.push(t),this.updateNames(),this.isRecording&&r(t)}},a.prototype.instantiateTrackRecorder=function(e){var t=new d(e),n=t.track.getOriginalStream(),r=s();return n.getAudioTracks().forEach(function(e){return r.addTrack(e)}),t.recorder=new MediaRecorder(r,{mimeType:this.fileType}),t.data=[],t.recorder.ondataavailable=function(e){e.data.size>0&&t.data.push(e.data)},t},a.prototype.removeTrack=function(e){if(!e.isVideoTrack()){var t=this.recorders,n=void 0;for(n=0;n<t.length;n++)if(t[n].track.getParticipantId()===e.getParticipantId()){var r=t[n];this.isRecording?i(r):t.splice(n,1)}this.updateNames()}},a.prototype.updateNames=function(){var e=this.jitsiConference;this.recorders.forEach(function(t){if(t.track.isLocal())t.name="the transcriber";else{var n=t.track.getParticipantId(),r=e.getParticipantById(n),i=r.getDisplayName();"undefined"!==i&&(t.name=i)}})},a.prototype.start=function(){if(this.isRecording)throw new Error("audiorecorder is already recording");this.isRecording=!0,this.recorders.forEach(function(e){return r(e)}),console.log("Started the recording of the audio. There are currently "+this.recorders.length+" recorders active.")},a.prototype.stop=function(){this.isRecording=!1,this.recorders.forEach(function(e){return i(e)}),console.log("stopped recording")},a.prototype.download=function(){var e=this;this.recorders.forEach(function(t){var n=new Blob(t.data,{type:e.fileType}),r=URL.createObjectURL(n),i=document.createElement("a");document.body.appendChild(i),i.style="display: none",i.href=r,i.download="test."+e.fileType.split("/")[1],i.click(),window.URL.revokeObjectURL(r)})},a.prototype.getRecordingResults=function(){var e=this;if(this.isRecording)throw new Error("cannot get blobs because the AudioRecorder is still recording!");this.updateNames();var t=[];return this.recorders.forEach(function(n){return t.push(new c(new Blob(n.data,{type:e.fileType}),n.name,n.startTime))}),t},a.prototype.getFileType=function(){return this.fileType},e.exports=a},function(e,t,n){var r=n(73),i={loadScript:function(e,t,n,i,o,a){var s=document,c=s.createElement("script"),u=s.getElementsByTagName("script")[0];if(c.async=t,i){var l=r();if(l){var d=l.src,p=d.substring(0,d.lastIndexOf("/")+1);d&&p&&(e=p+e)}}o&&(c.onload=o),a&&(c.onerror=a),c.src=e,n?u.parentNode.insertBefore(c,u):u.parentNode.appendChild(c)}};e.exports=i},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"c",function(){return i}),n.d(t,"a",function(){return o});var r="pending",i="active",o="ended"},function(e,t,n){"use strict";function r(e){for(var t=e.split("\r\nm="),n=1,r=t.length;n<r;n++){var i="m="+t[n];n!==r-1&&(i+="\r\n"),t[n]=i}var o=t.shift()+"\r\n";this.media=t,this.raw=o+t.join(""),this.session=o}t.a=r;var i=n(12);r.prototype.failICE=!1,r.prototype.removeTcpCandidates=!1,r.prototype.removeUdpCandidates=!1,r.prototype.getMediaSsrcMap=function(){for(var e=this,t={},n=void 0,r=0;r<e.media.length;r++)!function(r){n=i.a.findLines(e.media[r],"a=ssrc:");var o=i.a.parseMID(i.a.findLine(e.media[r],"a=mid:")),a={mediaindex:r,mid:o,ssrcs:{},ssrcGroups:[]};t[r]=a,n.forEach(function(e){var t=e.substring(7).split(" ")[0];a.ssrcs[t]||(a.ssrcs[t]={ssrc:t,lines:[]}),a.ssrcs[t].lines.push(e)}),n=i.a.findLines(e.media[r],"a=ssrc-group:"),n.forEach(function(e){var t=e.indexOf(" "),n=e.substr(0,t).substr(13),r=e.substr(14+n.length).split(" ");r.length&&a.ssrcGroups.push({semantics:n,ssrcs:r})})}(r);return t},r.prototype.containsSSRC=function(e){var t=this.getMediaSsrcMap(),n=!1;return Object.keys(t).forEach(function(r){n||t[r].ssrcs[e]&&(n=!0)}),n},r.prototype.mangle=function(){var e=void 0,t=void 0,n=void 0,r=void 0,o=void 0,a=void 0;for(e=0;e<this.media.length;e++)if(n=this.media[e].split("\r\n"),n.pop(),r=i.a.parseMLine(n.shift()),"audio"===r.media){for(o="",r.fmt.length=0,t=0;t<n.length;t++){if("a=rtpmap:"===n[t].substr(0,9)){if(a=i.a.parseRTPMap(n[t]),"CN"===a.name||"ISAC"===a.name)continue;r.fmt.push(a.id)}o+=n[t]+"\r\n"}this.media[e]=i.a.buildMLine(r)+"\r\n"+o}this.raw=this.session+this.media.join("")},r.prototype.removeSessionLines=function(e){var t=this,n=i.a.findLines(this.session,e);return n.forEach(function(e){t.session=t.session.replace(e+"\r\n","")}),this.raw=this.session+this.media.join(""),n},r.prototype.removeMediaLines=function(e,t){var n=this,r=i.a.findLines(this.media[e],t);return r.forEach(function(t){n.media[e]=n.media[e].replace(t+"\r\n","")}),this.raw=this.session+this.media.join(""),r},r.prototype.toJingle=function(e,t){var n=void 0,r=void 0,o=void 0,a=void 0,s=void 0,c=void 0,u=void 0,l=void 0;if(a=i.a.findLines(this.session,"a=group:"),a.length)for(n=0;n<a.length;n++){l=a[n].split(" ");var d=l.shift().substr(8);for(e.c("group",{xmlns:"urn:xmpp:jingle:apps:grouping:0",semantics:d}),r=0;r<l.length;r++)e.c("content",{name:l[r]}).up();e.up()}for(n=0;n<this.media.length;n++)if(s=i.a.parseMLine(this.media[n].split("\r\n")[0]),"audio"===s.media||"video"===s.media||"application"===s.media){var p=i.a.findLine(this.media[n],"a=ssrc:");u=!!p&&p.substring(7).split(" ")[0],e.c("content",{creator:t,name:s.media});var f=i.a.findLine(this.media[n],"a=mid:");if(f){var h=i.a.parseMID(f);e.attrs({name:h})}if(i.a.findLine(this.media[n],"a=rtpmap:").length){for(e.c("description",{xmlns:"urn:xmpp:jingle:apps:rtp:1",media:s.media}),u&&e.attrs({ssrc:u}),r=0;r<s.fmt.length;r++){c=i.a.findLine(this.media[n],"a=rtpmap:"+s.fmt[r]),e.c("payload-type",i.a.parseRTPMap(c));var m=i.a.findLine(this.media[n],"a=fmtp:"+s.fmt[r]);if(m)for(l=i.a.parseFmtp(m),o=0;o<l.length;o++)e.c("parameter",l[o]).up();this.rtcpFbToJingle(n,e,s.fmt[r]),e.up()}var v=i.a.findLines(this.media[n],"a=crypto:",this.session);if(v.length&&(e.c("encryption",{required:1}),v.forEach(function(t){return e.c("crypto",i.a.parseCrypto(t)).up()}),e.up()),u){e.c("source",{ssrc:u,xmlns:"urn:xmpp:jingle:apps:rtp:ssma:0"});var y=i.a.findLines(this.media[n],"a=ssrc:");if(y.length>0)y.forEach(function(t){var n=t.indexOf(" "),r=t.substr(0,n).substr(7);r!==u&&(e.up(),u=r,e.c("source",{ssrc:u,xmlns:"urn:xmpp:jingle:apps:rtp:ssma:0"}));var o=t.substr(n+1);if(e.c("parameter"),-1===o.indexOf(":"))e.attrs({name:o});else{var a=o.split(":",2)[0];e.attrs({name:a});var s=o.split(":",2)[1];s=i.a.filterSpecialChars(s),e.attrs({value:s})}e.up()});else{e.up(),e.c("source",{ssrc:u,xmlns:"urn:xmpp:jingle:apps:rtp:ssma:0"}),e.c("parameter"),e.attrs({name:"cname",value:Math.random().toString(36).substring(7)}),e.up();var g=null,b=APP.RTC.getLocalTracks(s.media);b&&(g=b.getTrackId()),null!==g&&(g=i.a.filterSpecialChars(g),e.c("parameter"),e.attrs({name:"msid",value:g}),e.up(),e.c("parameter"),e.attrs({name:"mslabel",value:g}),e.up(),e.c("parameter"),e.attrs({name:"label",value:g}),e.up())}e.up();var S=i.a.findLines(this.media[n],"a=ssrc-group:");S.forEach(function(t){var n=t.indexOf(" "),r=t.substr(0,n).substr(13),i=t.substr(14+r.length).split(" ");i.length&&(e.c("ssrc-group",{semantics:r,xmlns:"urn:xmpp:jingle:apps:rtp:ssma:0"}),i.forEach(function(t){return e.c("source",{ssrc:t}).up()}),e.up())})}var E=i.a.findLines(this.media[n],"a=rid");if(E.length){var T=E.map(function(e){return e.split(":")[1]}).map(function(e){return e.split(" ")[0]});T.forEach(function(t){e.c("source",{rid:t,xmlns:"urn:xmpp:jingle:apps:rtp:ssma:0"}),e.up()});var _=i.a.findLine(this.media[n],"a=simulcast");_&&(e.c("rid-group",{semantics:"SIM",xmlns:"urn:xmpp:jingle:apps:rtp:ssma:0"}),T.forEach(function(t){e.c("source",{rid:t}).up()}),e.up())}if(i.a.findLine(this.media[n],"a=rtcp-mux")&&e.c("rtcp-mux").up(),this.rtcpFbToJingle(n,e,"*"),a=i.a.findLines(this.media[n],"a=extmap:"),a.length)for(r=0;r<a.length;r++){if(l=i.a.parseExtmap(a[r]),e.c("rtp-hdrext",{xmlns:"urn:xmpp:jingle:apps:rtp:rtp-hdrext:0",uri:l.uri,id:l.value}),l.hasOwnProperty("direction"))switch(l.direction){case"sendonly":e.attrs({senders:"responder"});break;case"recvonly":e.attrs({senders:"initiator"});break;case"sendrecv":e.attrs({senders:"both"});break;case"inactive":e.attrs({senders:"none"})}e.up()}e.up()}this.transportToJingle(n,e);var C=this.media[n];i.a.findLine(C,"a=sendrecv",this.session)?e.attrs({senders:"both"}):i.a.findLine(C,"a=sendonly",this.session)?e.attrs({senders:"initiator"}):i.a.findLine(C,"a=recvonly",this.session)?e.attrs({senders:"responder"}):i.a.findLine(C,"a=inactive",this.session)&&e.attrs({senders:"none"}),"0"===s.port&&e.attrs({senders:"rejected"}),e.up()}return e.up(),e},r.prototype.transportToJingle=function(e,t){var n=void 0,r=this;t.c("transport");var o=i.a.findLine(this.media[e],"a=sctpmap:",r.session);if(o){var a=i.a.parseSCTPMap(o);t.c("sctpmap",{xmlns:"urn:xmpp:jingle:transports:dtls-sctp:1",number:a[0],protocol:a[1]}),a.length>2&&t.attrs({streams:a[2]}),t.up()}if(i.a.findLines(this.media[e],"a=fingerprint:",this.session).forEach(function(o){n=i.a.parseFingerprint(o),n.xmlns="urn:xmpp:jingle:apps:dtls:0",t.c("fingerprint").t(n.fingerprint),delete n.fingerprint,o=i.a.findLine(r.media[e],"a=setup:",r.session),o&&(n.setup=o.substr(8)),t.attrs(n),t.up()}),n=i.a.iceparams(this.media[e],this.session)){n.xmlns="urn:xmpp:jingle:transports:ice-udp:1",t.attrs(n);var s=i.a.findLines(this.media[e],"a=candidate:",this.session);s.length&&s.forEach(function(e){var n=i.a.candidateToJingle(e);r.failICE&&(n.ip="1.1.1.1");var o=n&&"string"==typeof n.protocol?n.protocol.toLowerCase():"";r.removeTcpCandidates&&("tcp"===o||"ssltcp"===o)||r.removeUdpCandidates&&"udp"===o||t.c("candidate",n).up()})}t.up()},r.prototype.rtcpFbToJingle=function(e,t,n){i.a.findLines(this.media[e],"a=rtcp-fb:"+n).forEach(function(e){var n=i.a.parseRTCPFB(e);"trr-int"===n.type?(t.c("rtcp-fb-trr-int",{xmlns:"urn:xmpp:jingle:apps:rtp:rtcp-fb:0",value:n.params[0]}),t.up()):(t.c("rtcp-fb",{xmlns:"urn:xmpp:jingle:apps:rtp:rtcp-fb:0",type:n.type}),n.params.length>0&&t.attrs({subtype:n.params[0]}),t.up())})},r.prototype.rtcpFbFromJingle=function(e,t){var n="",r=e.find('>rtcp-fb-trr-int[xmlns="urn:xmpp:jingle:apps:rtp:rtcp-fb:0"]');return r.length&&(n+="a=rtcp-fb:* trr-int ",r.attr("value")?n+=r.attr("value"):n+="0",n+="\r\n"),r=e.find('>rtcp-fb[xmlns="urn:xmpp:jingle:apps:rtp:rtcp-fb:0"]'),r.each(function(){n+="a=rtcp-fb:"+t+" "+$(this).attr("type"),$(this).attr("subtype")&&(n+=" "+$(this).attr("subtype")),n+="\r\n"}),n},r.prototype.fromJingle=function(e){var t=this;this.raw="v=0\r\no=- 1923518516 2 IN IP4 0.0.0.0\r\ns=-\r\nt=0 0\r\n";var n=$(e).find('>group[xmlns="urn:xmpp:jingle:apps:grouping:0"]');n.length&&n.each(function(e,n){var r=$(n).find(">content").map(function(e,t){return t.getAttribute("name")}).get();r.length>0&&(t.raw+="a=group:"+(n.getAttribute("semantics")||n.getAttribute("type"))+" "+r.join(" ")+"\r\n")}),this.session=this.raw,e.find(">content").each(function(){var e=t.jingle2media($(this));t.media.push(e)}),this.raw=this.session+this.media.join("")},r.prototype.jingle2media=function(e){var t=e.find("description"),n="",r=this,o=e.find('>transport>sctpmap[xmlns="urn:xmpp:jingle:transports:dtls-sctp:1"]'),a={media:t.attr("media")};if(a.port="1","rejected"===e.attr("senders")&&(a.port="0"),e.find(">transport>fingerprint").length||t.find("encryption").length?a.proto=o.length?"DTLS/SCTP":"RTP/SAVPF":a.proto="RTP/AVPF",o.length){n+="m=application 1 DTLS/SCTP "+o.attr("number")+"\r\n",n+="a=sctpmap:"+o.attr("number")+" "+o.attr("protocol");var s=o.attr("streams");n+=s?" "+s+"\r\n":"\r\n"}else a.fmt=t.find("payload-type").map(function(){return this.getAttribute("id")}).get(),n+=i.a.buildMLine(a)+"\r\n";switch(n+="c=IN IP4 0.0.0.0\r\n",o.length||(n+="a=rtcp:1 IN IP4 0.0.0.0\r\n"),a=e.find('>transport[xmlns="urn:xmpp:jingle:transports:ice-udp:1"]'),a.length&&(a.attr("ufrag")&&(n+=i.a.buildICEUfrag(a.attr("ufrag"))+"\r\n"),a.attr("pwd")&&(n+=i.a.buildICEPwd(a.attr("pwd"))+"\r\n"),a.find(">fingerprint").each(function(){n+="a=fingerprint:"+this.getAttribute("hash"),n+=" "+$(this).text(),n+="\r\n",this.getAttribute("setup")&&(n+="a=setup:"+this.getAttribute("setup")+"\r\n")})),e.attr("senders")){case"initiator":n+="a=sendonly\r\n";break;case"responder":n+="a=recvonly\r\n";break;case"none":n+="a=inactive\r\n";break;case"both":n+="a=sendrecv\r\n"}return n+="a=mid:"+e.attr("name")+"\r\n",t.find("rtcp-mux").length&&(n+="a=rtcp-mux\r\n"),t.find("encryption").length&&t.find("encryption>crypto").each(function(){n+="a=crypto:"+this.getAttribute("tag"),n+=" "+this.getAttribute("crypto-suite"),n+=" "+this.getAttribute("key-params"),this.getAttribute("session-params")&&(n+=" "+this.getAttribute("session-params")),n+="\r\n"}),t.find("payload-type").each(function(){n+=i.a.buildRTPMap(this)+"\r\n",$(this).find(">parameter").length&&(n+="a=fmtp:"+this.getAttribute("id")+" ",n+=$(this).find("parameter").map(function(){return(this.getAttribute("name")?this.getAttribute("name")+"=":"")+this.getAttribute("value")}).get().join("; "),n+="\r\n"),n+=r.rtcpFbFromJingle($(this),this.getAttribute("id"))}),n+=r.rtcpFbFromJingle(t,"*"),a=t.find('>rtp-hdrext[xmlns="urn:xmpp:jingle:apps:rtp:rtp-hdrext:0"]'),a.each(function(){n+="a=extmap:"+this.getAttribute("id")+" "+this.getAttribute("uri")+"\r\n"}),e.find('>transport[xmlns="urn:xmpp:jingle:transports:ice-udp:1"]>candidate').each(function(){var e=this.getAttribute("protocol");e="string"==typeof e?e.toLowerCase():"",r.removeTcpCandidates&&("tcp"===e||"ssltcp"===e)||r.removeUdpCandidates&&"udp"===e||(r.failICE&&this.setAttribute("ip","1.1.1.1"),n+=i.a.candidateFromJingle(this))}),e.find('description>ssrc-group[xmlns="urn:xmpp:jingle:apps:rtp:ssma:0"]').each(function(){var e=this.getAttribute("semantics"),t=$(this).find(">source").map(function(){return this.getAttribute("ssrc")}).get();t.length&&(n+="a=ssrc-group:"+e+" "+t.join(" ")+"\r\n")}),a=e.find('description>source[xmlns="urn:xmpp:jingle:apps:rtp:ssma:0"]'),a.each(function(){var e=this.getAttribute("ssrc");$(this).find(">parameter").each(function(){var t=this.getAttribute("name"),r=this.getAttribute("value");r=i.a.filterSpecialChars(r),n+="a=ssrc:"+e+" "+t,r&&r.length&&(n+=":"+r),n+="\r\n"})}),n}},function(e,t){var n={ENVIRONMENT:"environment",USER:"user"};e.exports=n},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i});var r="signaling.peerMuted",i="signaling.peerVideoType"},function(e,t){var n={IDENTITY_UPDATED:"authentication.identity_updated"};e.exports=n},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"d",function(){return o}),n.d(t,"c",function(){return a});var r="statistics.audioLevel",i="statistics.before_disposed",o="statistics.byte_sent_stats",a="statistics.connectionstats"},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function o(e){if(d===clearTimeout)return clearTimeout(e);if((d===r||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):v=-1,h.length&&s())}function s(){if(!m){var e=i(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++v<t;)f&&f[v].run();v=-1,t=h.length}f=null,m=!1,o(e)}}function c(e,t){this.fun=e,this.array=t}function u(){}var l,d,p=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{d="function"==typeof clearTimeout?clearTimeout:r}catch(e){d=r}}();var f,h=[],m=!1,v=-1;p.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new c(e,t)),1!==h.length||m||i(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=u,p.addListener=u,p.once=u,p.off=u,p.removeListener=u,p.removeAllListeners=u,p.emit=u,p.prependListener=u,p.prependOnceListener=u,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t){var n=e.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w\/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-\.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%d trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))? (\S*)(?: (\S*))?/,names:["value","direction","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+" %s"+(e.config?" %s":"")}},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),t+=null!=e["network-id"]?" network-id %d":"%v",t+=null!=e["network-cost"]?" network-cost %d":"%v"}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,
format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_\/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{push:"invalid",names:["value"]}]};Object.keys(n).forEach(function(e){n[e].forEach(function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")})})},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function r(e){var t="";do{t=s[e%c]+t,e=Math.floor(e/c)}while(e>0);return t}function i(e){var t=0;for(d=0;d<e.length;d++)t=t*c+u[e.charAt(d)];return t}function o(){var e=r(+new Date);return e!==a?(l=0,a=e):e+"."+r(l++)}for(var a,s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),c=64,u={},l=0,d=0;d<c;d++)u[s[d]]=d;o.encode=r,o.decode=i,e.exports=o},function(e,t){function n(e){if(e)return r(e)}function r(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}e.exports=n,n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},n.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if((r=n[i])===t||r.fn===t){n.splice(i,1);break}return this},n.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks["$"+e];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},n.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},n.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t,n){(function(e){function r(t){var n=!1,r=!1,s=!1!==t.jsonp;if(e.location){var c="https:"==location.protocol,u=location.port;u||(u=c?443:80),n=t.hostname!=location.hostname||u!=t.port,r=t.secure!=c}if(t.xdomain=n,t.xscheme=r,"open"in new i(t)&&!t.forceJSONP)return new o(t);if(!s)throw new Error("JSONP disabled");return new a(t)}var i=n(35),o=n(160),a=n(159),s=n(161);t.polling=r,t.websocket=s}).call(t,n(2))},function(e,t,n){function r(e){var t=e&&e.forceBase64;l&&!t||(this.supportsBinary=!1),i.call(this,e)}var i=n(34),o=n(38),a=n(18),s=n(21),c=n(59),u=n(9)("engine.io-client:polling");e.exports=r;var l=function(){return null!=new(n(35))({xdomain:!1}).responseType}();s(r,i),r.prototype.name="polling",r.prototype.doOpen=function(){this.poll()},r.prototype.pause=function(e){function t(){u("paused"),n.readyState="paused",e()}var n=this;if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(u("we are currently polling - waiting to pause"),r++,this.once("pollComplete",function(){u("pre-pause polling complete"),--r||t()})),this.writable||(u("we are currently writing - waiting to pause"),r++,this.once("drain",function(){u("pre-pause writing complete"),--r||t()}))}else t()},r.prototype.poll=function(){u("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},r.prototype.onData=function(e){var t=this;u("polling got data %s",e);var n=function(e,n,r){if("opening"==t.readyState&&t.onOpen(),"close"==e.type)return t.onClose(),!1;t.onPacket(e)};a.decodePayload(e,this.socket.binaryType,n),"closed"!=this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"==this.readyState?this.poll():u('ignoring poll - transport state "%s"',this.readyState))},r.prototype.doClose=function(){function e(){u("writing close packet"),t.write([{type:"close"}])}var t=this;"open"==this.readyState?(u("transport open - closing"),e()):(u("transport not open - deferring close"),this.once("open",e))},r.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")},t=this;a.encodePayload(e,this.supportsBinary,function(e){t.doWrite(e,n)})},r.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=c()),this.supportsBinary||e.sid||(e.b64=1),e=o.encode(e),this.port&&("https"==t&&443!=this.port||"http"==t&&80!=this.port)&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},function(e,t){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var t=e,i=e.indexOf("["),o=e.indexOf("]");-1!=i&&-1!=o&&(e=e.substring(0,i)+e.substring(i,o).replace(/:/g,";")+e.substring(o,e.length));for(var a=n.exec(e||""),s={},c=14;c--;)s[r[c]]=a[c]||"";return-1!=i&&-1!=o&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s}},function(e,t,n){function r(e,t){if(!(this instanceof r))return new r(e,t);e&&"object"==typeof e&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.nsps={},this.subs=[],this.opts=t,this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor||.5),this.backoff=new p({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this.readyState="closed",this.uri=e,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[],this.encoder=new s.Encoder,this.decoder=new s.Decoder,this.autoConnect=!1!==t.autoConnect,this.autoConnect&&this.open()}var i=n(156),o=n(66),a=n(60),s=n(39),c=n(65),u=n(40),l=n(9)("socket.io-client:manager"),d=n(41),p=n(71),f=Object.prototype.hasOwnProperty;e.exports=r,r.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var e in this.nsps)f.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},r.prototype.updateSocketIds=function(){for(var e in this.nsps)f.call(this.nsps,e)&&(this.nsps[e].id=this.engine.id)},a(r.prototype),r.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},r.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},r.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},r.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},r.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},r.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},r.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},r.prototype.open=r.prototype.connect=function(e){if(l("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;l("opening %s",this.uri),this.engine=i(this.uri,this.opts);var t=this.engine,n=this;this.readyState="opening",this.skipReconnect=!1;var r=c(t,"open",function(){n.onopen(),e&&e()}),o=c(t,"error",function(t){if(l("connect_error"),n.cleanup(),n.readyState="closed",n.emitAll("connect_error",t),e){var r=new Error("Connection error");r.data=t,e(r)}else n.maybeReconnectOnOpen()});if(!1!==this._timeout){var a=this._timeout;l("connect attempt will timeout after %d",a);var s=setTimeout(function(){l("connect attempt timed out after %d",a),r.destroy(),t.close(),t.emit("error","timeout"),n.emitAll("connect_timeout",a)},a);this.subs.push({destroy:function(){clearTimeout(s)}})}return this.subs.push(r),this.subs.push(o),this},r.prototype.onopen=function(){l("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(c(e,"data",u(this,"ondata"))),this.subs.push(c(e,"ping",u(this,"onping"))),this.subs.push(c(e,"pong",u(this,"onpong"))),this.subs.push(c(e,"error",u(this,"onerror"))),this.subs.push(c(e,"close",u(this,"onclose"))),this.subs.push(c(this.decoder,"decoded",u(this,"ondecoded")))},r.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},r.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},r.prototype.ondata=function(e){this.decoder.add(e)},r.prototype.ondecoded=function(e){this.emit("packet",e)},r.prototype.onerror=function(e){l("error",e),this.emitAll("error",e)},r.prototype.socket=function(e){function t(){~d(r.connecting,n)||r.connecting.push(n)}var n=this.nsps[e];if(!n){n=new o(this,e),this.nsps[e]=n;var r=this;n.on("connecting",t),n.on("connect",function(){n.id=r.engine.id}),this.autoConnect&&t()}return n},r.prototype.destroy=function(e){var t=d(this.connecting,e);~t&&this.connecting.splice(t,1),this.connecting.length||this.close()},r.prototype.packet=function(e){l("writing packet %j",e);var t=this;t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,function(n){for(var r=0;r<n.length;r++)t.engine.write(n[r],e.options);t.encoding=!1,t.processPacketQueue()}))},r.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},r.prototype.cleanup=function(){l("cleanup");for(var e;e=this.subs.shift();)e.destroy();this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},r.prototype.close=r.prototype.disconnect=function(){l("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"==this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},r.prototype.onclose=function(e){l("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",e),this._reconnection&&!this.skipReconnect&&this.reconnect()},r.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var e=this;if(this.backoff.attempts>=this._reconnectionAttempts)l("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();l("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=setTimeout(function(){e.skipReconnect||(l("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open(function(t){t?(l("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(l("reconnect success"),e.onreconnect())}))},t);this.subs.push({destroy:function(){clearTimeout(n)}})}},r.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},function(e,t){function n(e,t,n){return e.on(t,n),{destroy:function(){e.removeListener(t,n)}}}e.exports=n},function(e,t,n){function r(e,t){this.io=e,this.nsp=t,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.io.autoConnect&&this.open()}var i=n(39),o=n(60),a=n(148),s=n(65),c=n(40),u=n(9)("socket.io-client:socket"),l=n(74);e.exports=r;var d={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},p=o.prototype.emit;o(r.prototype),r.prototype.subEvents=function(){if(!this.subs){var e=this.io;this.subs=[s(e,"open",c(this,"onopen")),s(e,"packet",c(this,"onpacket")),s(e,"close",c(this,"onclose"))]}},r.prototype.open=r.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"==this.io.readyState&&this.onopen(),this.emit("connecting"),this)},r.prototype.send=function(){var e=a(arguments);return e.unshift("message"),this.emit.apply(this,e),this},r.prototype.emit=function(e){if(d.hasOwnProperty(e))return p.apply(this,arguments),this;var t=a(arguments),n=i.EVENT;l(t)&&(n=i.BINARY_EVENT);var r={type:n,data:t};return r.options={},r.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof t[t.length-1]&&(u("emitting packet with ack id %d",this.ids),this.acks[this.ids]=t.pop(),r.id=this.ids++),this.connected?this.packet(r):this.sendBuffer.push(r),delete this.flags,this},r.prototype.packet=function(e){e.nsp=this.nsp,this.io.packet(e)},r.prototype.onopen=function(){u("transport is open - connecting"),"/"!=this.nsp&&this.packet({type:i.CONNECT})},r.prototype.onclose=function(e){u("close (%s)",e),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",e)},r.prototype.onpacket=function(e){if(e.nsp==this.nsp)switch(e.type){case i.CONNECT:this.onconnect();break;case i.EVENT:case i.BINARY_EVENT:this.onevent(e);break;case i.ACK:case i.BINARY_ACK:this.onack(e);break;case i.DISCONNECT:this.ondisconnect();break;case i.ERROR:this.emit("error",e.data)}},r.prototype.onevent=function(e){var t=e.data||[];u("emitting event %j",t),null!=e.id&&(u("attaching ack callback to event"),t.push(this.ack(e.id))),this.connected?p.apply(this,t):this.receiveBuffer.push(t)},r.prototype.ack=function(e){var t=this,n=!1;return function(){if(!n){n=!0;var r=a(arguments);u("sending ack %j",r);var o=l(r)?i.BINARY_ACK:i.ACK;t.packet({type:o,id:e,data:r})}}},r.prototype.onack=function(e){var t=this.acks[e.id];"function"==typeof t?(u("calling ack %s with %j",e.id,e.data),t.apply(this,e.data),delete this.acks[e.id]):u("bad ack %s",e.id)},r.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},r.prototype.emitBuffered=function(){var e;for(e=0;e<this.receiveBuffer.length;e++)p.apply(this,this.receiveBuffer[e]);for(this.receiveBuffer=[],e=0;e<this.sendBuffer.length;e++)this.packet(this.sendBuffer[e]);this.sendBuffer=[]},r.prototype.ondisconnect=function(){u("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},r.prototype.destroy=function(){if(this.subs){for(var e=0;e<this.subs.length;e++)this.subs[e].destroy();this.subs=null}this.io.destroy(this)},r.prototype.close=r.prototype.disconnect=function(){return this.connected&&(u("performing disconnect (%s)",this.nsp),this.packet({type:i.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},r.prototype.compress=function(e){return this.flags=this.flags||{},this.flags.compress=e,this}},function(e,t,n){(function(t){function n(e){return t.Buffer&&t.Buffer.isBuffer(e)||t.ArrayBuffer&&e instanceof ArrayBuffer}e.exports=n}).call(t,n(2))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){function r(e){if(!k.a[e])return null;var t=k.a[e].order,n=null,r=null;return Object.keys(k.a).forEach(function(e){var i=k.a[e];(!n||n.order<i.order&&i.order<t)&&(r=e,n=i)}),r}function i(e,t){var n=e;return-1!==t.devices.indexOf("audio")&&(n+=".audio"),-1!==t.devices.indexOf("desktop")&&(n+=".desktop"),-1!==t.devices.indexOf("video")&&(n+=".video."+t.resolution),n}var o=n(113),a=n.n(o),s=n(32),c=n(3),u=n.n(c),l=n(26),d=n(5),p=n(82),f=n(43),h=n(27),m=n(83),v=n(44),y=n(45),g=n.n(y),b=n(11),S=n(15),E=n(16),T=n(47),_=n(0),C=n.n(_),w=n(4),R=n(31),k=n.n(R),A=n(28),P=n(22),I=n(1),O=n(92),D=n(49),L=n.n(D),N=n(29),M=n(6),x=n(30),j=C.a.getLogger(e);t.default={version:"development",JitsiConnection:p.a,constants:{participantConnectionStatus:A.a,sipVideoGW:x},events:{conference:d,connection:h,track:E,mediaDevices:v,connectionQuality:s},errors:{conference:l,connection:f,recorder:g.a,track:S},errorTypes:{JitsiTrackError:b.a},logLevels:C.a.levels,mediaDevices:m.a,analytics:null,init:function(e){M.a.init(e),window.connectionTimes||(window.connectionTimes={}),this.analytics=M.a.analytics,!0===e.enableAnalyticsLogging&&this.analytics.init(I.a.getBrowserName()),e.enableWindowOnErrorHandler&&u.a.addHandler(this.getGlobalOnErrorHandler.bind(this));var t=e.deploymentInfo;if(t&&Object.keys(t).length>0){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);n.id="deployment_info",M.a.sendLog(JSON.stringify(n))}if(this.version){var i={id:"component_version",component:"lib-jitsi-meet",version:this.version};M.a.sendLog(JSON.stringify(i))}return P.a.init(e||{})},isDesktopSharingEnabled:function(){return P.a.isDesktopSharingEnabled()},setLogLevel:function(e){C.a.setLogLevel(e)},setLogLevelById:function(e,t){C.a.setLogLevelById(e,t)},addGlobalLogTransport:function(e){C.a.addGlobalTransport(e)},removeGlobalLogTransport:function(e){C.a.removeGlobalTransport(e)},createLocalTracks:function(e,t){var n=this,o=!1;return!0===t&&window.setTimeout(function(){o||m.a.emitEvent(v.PERMISSION_PROMPT_IS_SHOWN,I.a.getBrowserName())},1e3),window.connectionTimes||(window.connectionTimes={}),window.connectionTimes["obtainPermissions.start"]=window.performance.now(),P.a.obtainAudioAndVideoPermissions(e||{}).then(function(t){if(o=!0,window.connectionTimes["obtainPermissions.end"]=window.performance.now(),M.a.analytics.sendEvent(i("getUserMedia.success",e),{value:e}),!P.a.options.disableAudioLevels)for(var n=0;n<t.length;n++)!function(e){var n=t[e],r=n.getOriginalStream();n.getType()===w.a&&(M.a.startLocalStats(r,n.setAudioLevel.bind(n)),n.addEventListener(E.LOCAL_TRACK_STOPPED,function(){M.a.stopLocalStats(r)}))}(n);var r=P.a.getCurrentlyAvailableMediaDevices();if(r)for(var n=0;n<t.length;n++){var a=t[n];a._setRealDeviceIdFromDeviceList(r)}return t}).catch(function(t){if(o=!0,t.name===S.UNSUPPORTED_RESOLUTION){var a=e.resolution||"720",s=r(a);if(null!==s)return e.resolution=s,j.debug("Retry createLocalTracks with resolution",s),M.a.analytics.sendEvent("getUserMedia.fail.resolution."+a),n.createLocalTracks(e)}if(S.CHROME_EXTENSION_USER_CANCELED===t.name){var c={id:"chrome_extension_user_canceled",message:t.message};M.a.sendLog(JSON.stringify(c)),M.a.analytics.sendEvent("getUserMedia.userCancel.extensionInstall")}else if(S.NOT_FOUND===t.name){var u={id:"usermedia_missing_device",status:t.gum.devices};M.a.sendLog(JSON.stringify(u)),M.a.analytics.sendEvent("getUserMedia.deviceNotFound."+t.gum.devices.join("."))}else{M.a.sendGetUserMediaFailed(t);var l=i("getUserMedia.failed",e);M.a.analytics.sendEvent(l+"."+t.name,{value:e})}return window.connectionTimes["obtainPermissions.end"]=window.performance.now(),Promise.reject(t)})},isDeviceListAvailable:function(){return j.warn("This method is deprecated, use JitsiMeetJS.mediaDevices.isDeviceListAvailable instead"),this.mediaDevices.isDeviceListAvailable()},isDeviceChangeAvailable:function(e){return j.warn("This method is deprecated, use JitsiMeetJS.mediaDevices.isDeviceChangeAvailable instead"),this.mediaDevices.isDeviceChangeAvailable(e)},isMultipleAudioInputSupported:function(){return this.mediaDevices.isMultipleAudioInputSupported()},isCollectingLocalStats:function(){return M.a.audioLevelsEnabled&&T.a.isLocalStatsSupported()},enumerateDevices:function(e){j.warn("This method is deprecated, use JitsiMeetJS.mediaDevices.enumerateDevices instead"),this.mediaDevices.enumerateDevices(e)},getGlobalOnErrorHandler:function(e,t,n,r,i){j.error("UnhandledError: "+e,"Script: "+t,"Line: "+n,"Column: "+r,"StackTrace: ",i),M.a.reportGlobalError(i)},getMachineId:function(){return N.a.getMachineId()},util:{AuthUtil:a.a,RTCUIHelper:O.a,ScriptUtil:L.a}}}.call(t,"JitsiMeetJS.js")},function(e,t){e.exports=function(e,t,n){var r=e.byteLength;if(t=t||0,n=n||r,e.slice)return e.slice(t,n);if(t<0&&(t+=r),n<0&&(n+=r),n>r&&(n=r),t>=r||t>=n||0===r)return new ArrayBuffer(0);for(var i=new Uint8Array(e),o=new Uint8Array(n-t),a=t,s=0;a<n;a++,s++)o[s]=i[a];return o.buffer}},function(e,t,n){(function(n,r){var i,o;!function(){function a(e){var t=!1;return function(){if(t)throw new Error("Callback was already called.");t=!0,e.apply(s,arguments)}}var s,c,u={};s=this,null!=s&&(c=s.async),u.noConflict=function(){return s.async=c,u};var l=Object.prototype.toString,d=Array.isArray||function(e){return"[object Array]"===l.call(e)},p=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n+=1)t(e[n],n,e)},f=function(e,t){if(e.map)return e.map(t);var n=[];return p(e,function(e,r,i){n.push(t(e,r,i))}),n},h=function(e,t,n){return e.reduce?e.reduce(t,n):(p(e,function(e,r,i){n=t(n,e,r,i)}),n)},m=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t};void 0!==n&&n.nextTick?(u.nextTick=n.nextTick,u.setImmediate=void 0!==r?function(e){r(e)}:u.nextTick):"function"==typeof r?(u.nextTick=function(e){r(e)},u.setImmediate=u.nextTick):(u.nextTick=function(e){setTimeout(e,0)},u.setImmediate=u.nextTick),u.each=function(e,t,n){function r(t){t?(n(t),n=function(){}):(i+=1)>=e.length&&n()}if(n=n||function(){},!e.length)return n();var i=0;p(e,function(e){t(e,a(r))})},u.forEach=u.each,u.eachSeries=function(e,t,n){if(n=n||function(){},!e.length)return n();var r=0;!function i(){t(e[r],function(t){t?(n(t),n=function(){}):(r+=1,r>=e.length?n():i())})}()},u.forEachSeries=u.eachSeries,u.eachLimit=function(e,t,n,r){v(t).apply(null,[e,n,r])},u.forEachLimit=u.eachLimit;var v=function(e){return function(t,n,r){if(r=r||function(){},!t.length||e<=0)return r();var i=0,o=0,a=0;!function s(){if(i>=t.length)return r();for(;a<e&&o<t.length;)o+=1,a+=1,n(t[o-1],function(e){e?(r(e),r=function(){}):(i+=1,a-=1,i>=t.length?r():s())})}()}},y=function(e){return function(){var t=Array.prototype.slice.call(arguments);return e.apply(null,[u.each].concat(t))}},g=function(e,t){return function(){var n=Array.prototype.slice.call(arguments);return t.apply(null,[v(e)].concat(n))}},b=function(e){return function(){var t=Array.prototype.slice.call(arguments);return e.apply(null,[u.eachSeries].concat(t))}},S=function(e,t,n,r){if(t=f(t,function(e,t){return{index:t,value:e}}),r){var i=[];e(t,function(e,t){n(e.value,function(n,r){i[e.index]=r,t(n)})},function(e){r(e,i)})}else e(t,function(e,t){n(e.value,function(e){t(e)})})};u.map=y(S),u.mapSeries=b(S),u.mapLimit=function(e,t,n,r){return E(t)(e,n,r)};var E=function(e){return g(e,S)};u.reduce=function(e,t,n,r){u.eachSeries(e,function(e,r){n(t,e,function(e,n){t=n,r(e)})},function(e){r(e,t)})},u.inject=u.reduce,u.foldl=u.reduce,u.reduceRight=function(e,t,n,r){var i=f(e,function(e){return e}).reverse();u.reduce(i,t,n,r)},u.foldr=u.reduceRight;var T=function(e,t,n,r){var i=[];t=f(t,function(e,t){return{index:t,value:e}}),e(t,function(e,t){n(e.value,function(n){n&&i.push(e),t()})},function(e){r(f(i.sort(function(e,t){return e.index-t.index}),function(e){return e.value}))})};u.filter=y(T),u.filterSeries=b(T),u.select=u.filter,u.selectSeries=u.filterSeries;var _=function(e,t,n,r){var i=[];t=f(t,function(e,t){return{index:t,value:e}}),e(t,function(e,t){n(e.value,function(n){n||i.push(e),t()})},function(e){r(f(i.sort(function(e,t){return e.index-t.index}),function(e){return e.value}))})};u.reject=y(_),u.rejectSeries=b(_);var C=function(e,t,n,r){e(t,function(e,t){n(e,function(n){n?(r(e),r=function(){}):t()})},function(e){r()})};u.detect=y(C),u.detectSeries=b(C),u.some=function(e,t,n){u.each(e,function(e,r){t(e,function(e){e&&(n(!0),n=function(){}),r()})},function(e){n(!1)})},u.any=u.some,u.every=function(e,t,n){u.each(e,function(e,r){t(e,function(e){e||(n(!1),n=function(){}),r()})},function(e){n(!0)})},u.all=u.every,u.sortBy=function(e,t,n){u.map(e,function(e,n){t(e,function(t,r){t?n(t):n(null,{value:e,criteria:r})})},function(e,t){if(e)return n(e);var r=function(e,t){var n=e.criteria,r=t.criteria;return n<r?-1:n>r?1:0};n(null,f(t.sort(r),function(e){return e.value}))})},u.auto=function(e,t){t=t||function(){};var n=m(e),r=n.length;if(!r)return t();var i={},o=[],a=function(e){o.unshift(e)},s=function(e){for(var t=0;t<o.length;t+=1)if(o[t]===e)return void o.splice(t,1)},c=function(){r--,p(o.slice(0),function(e){e()})};a(function(){if(!r){var e=t;t=function(){},e(null,i)}}),p(n,function(n){var r=d(e[n])?e[n]:[e[n]],o=function(e){var r=Array.prototype.slice.call(arguments,1);if(r.length<=1&&(r=r[0]),e){var o={};p(m(i),function(e){o[e]=i[e]}),o[n]=r,t(e,o),t=function(){}}else i[n]=r,u.setImmediate(c)},l=r.slice(0,Math.abs(r.length-1))||[],f=function(){return h(l,function(e,t){return e&&i.hasOwnProperty(t)},!0)&&!i.hasOwnProperty(n)};f()?r[r.length-1](o,i):a(function e(){f()&&(s(e),r[r.length-1](o,i))})})},u.retry=function(e,t,n){var r=[];"function"==typeof e&&(n=t,t=e,e=5),e=parseInt(e,10)||5;var i=function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(i,o){for(;e;)r.push(function(e,t){return function(n){e(function(e,r){n(!e||t,{err:e,result:r})},o)}}(t,!(e-=1)));u.series(r,function(e,t){t=t[t.length-1],(i||n)(t.err,t.result)})});return n?i():i},u.waterfall=function(e,t){if(t=t||function(){},!d(e)){var n=new Error("First argument to waterfall must be an array of functions");return t(n)}if(!e.length)return t();!function e(n){return function(r){if(r)t.apply(null,arguments),t=function(){};else{var i=Array.prototype.slice.call(arguments,1),o=n.next();o?i.push(e(o)):i.push(t),u.setImmediate(function(){n.apply(null,i)})}}}(u.iterator(e))()};var w=function(e,t,n){if(n=n||function(){},d(t))e.map(t,function(e,t){e&&e(function(e){var n=Array.prototype.slice.call(arguments,1);n.length<=1&&(n=n[0]),t.call(null,e,n)})},n);else{var r={};e.each(m(t),function(e,n){t[e](function(t){var i=Array.prototype.slice.call(arguments,1);i.length<=1&&(i=i[0]),r[e]=i,n(t)})},function(e){n(e,r)})}};u.parallel=function(e,t){w({map:u.map,each:u.each},e,t)},u.parallelLimit=function(e,t,n){w({map:E(t),each:v(t)},e,n)},u.series=function(e,t){if(t=t||function(){},d(e))u.mapSeries(e,function(e,t){e&&e(function(e){var n=Array.prototype.slice.call(arguments,1);n.length<=1&&(n=n[0]),t.call(null,e,n)})},t);else{var n={};u.eachSeries(m(e),function(t,r){e[t](function(e){var i=Array.prototype.slice.call(arguments,1);i.length<=1&&(i=i[0]),n[t]=i,r(e)})},function(e){t(e,n)})}},u.iterator=function(e){return function t(n){var r=function t(){return e.length&&e[n].apply(null,arguments),t.next()};return r.next=function(){return n<e.length-1?t(n+1):null},r}(0)},u.apply=function(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t.concat(Array.prototype.slice.call(arguments)))}};var R=function(e,t,n,r){var i=[];e(t,function(e,t){n(e,function(e,n){i=i.concat(n||[]),t(e)})},function(e){r(e,i)})};u.concat=y(R),u.concatSeries=b(R),u.whilst=function(e,t,n){e()?t(function(r){if(r)return n(r);u.whilst(e,t,n)}):n()},u.doWhilst=function(e,t,n){e(function(r){if(r)return n(r);var i=Array.prototype.slice.call(arguments,1);t.apply(null,i)?u.doWhilst(e,t,n):n()})},u.until=function(e,t,n){e()?n():t(function(r){if(r)return n(r);u.until(e,t,n)})},u.doUntil=function(e,t,n){e(function(r){if(r)return n(r);var i=Array.prototype.slice.call(arguments,1);t.apply(null,i)?n():u.doUntil(e,t,n)})},u.queue=function(e,t){function n(e,t,n,r){if(e.started||(e.started=!0),d(t)||(t=[t]),0==t.length)return u.setImmediate(function(){e.drain&&e.drain()});p(t,function(t){var i={data:t,callback:"function"==typeof r?r:null};n?e.tasks.unshift(i):e.tasks.push(i),e.saturated&&e.tasks.length===e.concurrency&&e.saturated(),u.setImmediate(e.process)})}void 0===t&&(t=1);var r=0,i={tasks:[],concurrency:t,saturated:null,empty:null,drain:null,started:!1,paused:!1,push:function(e,t){n(i,e,!1,t)},kill:function(){i.drain=null,i.tasks=[]},unshift:function(e,t){n(i,e,!0,t)},process:function(){if(!i.paused&&r<i.concurrency&&i.tasks.length){var t=i.tasks.shift();i.empty&&0===i.tasks.length&&i.empty(),r+=1;var n=function(){r-=1,t.callback&&t.callback.apply(t,arguments),i.drain&&i.tasks.length+r===0&&i.drain(),i.process()},o=a(n);e(t.data,o)}},length:function(){return i.tasks.length},running:function(){return r},idle:function(){return i.tasks.length+r===0},pause:function(){!0!==i.paused&&(i.paused=!0,i.process())},resume:function(){!1!==i.paused&&(i.paused=!1,i.process())}};return i},u.priorityQueue=function(e,t){function n(e,t){return e.priority-t.priority}function r(e,t,n){for(var r=-1,i=e.length-1;r<i;){var o=r+(i-r+1>>>1);n(t,e[o])>=0?r=o:i=o-1}return r}function i(e,t,i,o){if(e.started||(e.started=!0),d(t)||(t=[t]),0==t.length)return u.setImmediate(function(){e.drain&&e.drain()});p(t,function(t){var a={data:t,priority:i,callback:"function"==typeof o?o:null};e.tasks.splice(r(e.tasks,a,n)+1,0,a),e.saturated&&e.tasks.length===e.concurrency&&e.saturated(),u.setImmediate(e.process)})}var o=u.queue(e,t);return o.push=function(e,t,n){i(o,e,t,n)},delete o.unshift,o},u.cargo=function(e,t){var n=!1,r=[],i={tasks:r,payload:t,saturated:null,empty:null,drain:null,drained:!0,push:function(e,n){d(e)||(e=[e]),p(e,function(e){r.push({data:e,callback:"function"==typeof n?n:null}),i.drained=!1,i.saturated&&r.length===t&&i.saturated()}),u.setImmediate(i.process)},process:function o(){if(!n){if(0===r.length)return i.drain&&!i.drained&&i.drain(),void(i.drained=!0);var a="number"==typeof t?r.splice(0,t):r.splice(0,r.length),s=f(a,function(e){return e.data});i.empty&&i.empty(),n=!0,e(s,function(){n=!1;var e=arguments;p(a,function(t){t.callback&&t.callback.apply(null,e)}),o()})}},length:function(){return r.length},running:function(){return n}};return i};var k=function(e){return function(t){var n=Array.prototype.slice.call(arguments,1);t.apply(null,n.concat([function(t){var n=Array.prototype.slice.call(arguments,1);"undefined"!=typeof console&&(t?console.error&&console.error(t):console[e]&&p(n,function(t){console[e](t)}))}]))}};u.log=k("log"),u.dir=k("dir"),u.memoize=function(e,t){var n={},r={};t=t||function(e){return e};var i=function(){
var i=Array.prototype.slice.call(arguments),o=i.pop(),a=t.apply(null,i);a in n?u.nextTick(function(){o.apply(null,n[a])}):a in r?r[a].push(o):(r[a]=[o],e.apply(null,i.concat([function(){n[a]=arguments;var e=r[a];delete r[a];for(var t=0,i=e.length;t<i;t++)e[t].apply(null,arguments)}])))};return i.memo=n,i.unmemoized=e,i},u.unmemoize=function(e){return function(){return(e.unmemoized||e).apply(null,arguments)}},u.times=function(e,t,n){for(var r=[],i=0;i<e;i++)r.push(i);return u.map(r,t,n)},u.timesSeries=function(e,t,n){for(var r=[],i=0;i<e;i++)r.push(i);return u.mapSeries(r,t,n)},u.seq=function(){var e=arguments;return function(){var t=this,n=Array.prototype.slice.call(arguments),r=n.pop();u.reduce(e,n,function(e,n,r){n.apply(t,e.concat([function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);r(e,t)}]))},function(e,n){r.apply(t,[e].concat(n))})}},u.compose=function(){return u.seq.apply(null,Array.prototype.reverse.call(arguments))};var A=function(e,t){var n=function(){var n=this,r=Array.prototype.slice.call(arguments),i=r.pop();return e(t,function(e,t){e.apply(n,r.concat([t]))},i)};return arguments.length>2?n.apply(this,Array.prototype.slice.call(arguments,2)):n};u.applyEach=y(A),u.applyEachSeries=b(A),u.forever=function(e,t){function n(r){if(r){if(t)return t(r);throw r}e(n)}n()},void 0!==e&&e.exports?e.exports=u:(i=[],void 0!==(o=function(){return u}.apply(t,i))&&(e.exports=o))}()}).call(t,n(56),n(147).setImmediate)},function(e,t){function n(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=n,n.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-n:e+n}return 0|Math.min(e,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(e){this.ms=e},n.prototype.setMax=function(e){this.max=e},n.prototype.setJitter=function(e){this.jitter=e}},function(e,t,n){(function(t){function n(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.buffer instanceof ArrayBuffer){var r=n.buffer;if(n.byteLength!==r.byteLength){var i=new Uint8Array(n.byteLength);i.set(new Uint8Array(r,n.byteOffset,n.byteLength)),r=i.buffer}e[t]=r}}}function r(e,t){t=t||{};var r=new o;n(e);for(var i=0;i<e.length;i++)r.append(e[i]);return t.type?r.getBlob(t.type):r.getBlob()}function i(e,t){return n(e),new Blob(e,t||{})}var o=t.BlobBuilder||t.WebKitBlobBuilder||t.MSBlobBuilder||t.MozBlobBuilder,a=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),s=a&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),c=o&&o.prototype.append&&o.prototype.getBlob;e.exports=function(){return a?s?t.Blob:i:c?r:void 0}()}).call(t,n(2))},function(e,t,n){var r,i,o;"function"==typeof Symbol&&"function"==typeof Symbol&&Symbol.iterator,function(n,a){i=[],r=a,void 0!==(o="function"==typeof r?r.apply(t,i):r)&&(e.exports=o)}(this||window,function(){function e(e,t){var n,r=null;if(t=t||u,"string"==typeof e&&e)for(n=t.length;n--;)if(t[n].src===e){r=t[n];break}return r}function t(e){var t,n,r=null;for(e=e||u,t=0,n=e.length;t<n;t++)if(!e[t].hasAttribute("src")){if(r){r=null;break}r=e[t]}return r}function n(e,t){var r,i,o=null,a="number"==typeof t;return t=a?Math.round(t):0,"string"==typeof e&&e&&(a?r=e.match(/(data:text\/javascript(?:;[^,]+)?,.+?|(?:|blob:)(?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/):(r=e.match(/^(?:|[^:@]*@|.+\)@(?=data:text\/javascript|blob|http[s]?|file)|.+?\s+(?: at |@)(?:[^:\(]+ )*[\(]?)(data:text\/javascript(?:;[^,]+)?,.+?|(?:|blob:)(?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/))&&r[1]||(r=e.match(/\)@(data:text\/javascript(?:;[^,]+)?,.+?|(?:|blob:)(?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/)),r&&r[1]&&(t>0?(i=e.slice(e.indexOf(r[0])+r[0].length),o=n(i,t-1)):o=r[1])),o}function r(){return null}function i(){return null}function o(){if(0===u.length)return null;var r,i,s,m,v,y=[],g=o.skipStackDepth||1;for(r=0;r<u.length;r++)d&&l?a.test(u[r].readyState)&&y.push(u[r]):y.push(u[r]);if(i=new Error,f&&(s=i.stack),!s&&h)try{throw i}catch(e){s=e.stack}if(s&&(m=n(s,g),!(v=e(m,y))&&c&&m===c&&(v=t(y))),v||1===y.length&&(v=y[0]),v||p&&(v=document.currentScript),!v&&d&&l)for(r=y.length;r--;)if("interactive"===y[r].readyState){v=y[r];break}return v||(v=y[y.length-1]||null),v}var a=/^(interactive|loaded|complete)$/,s=window.location?window.location.href:null,c=s?s.replace(/#.*$/,"").replace(/\?.*$/,"")||null:null,u=document.getElementsByTagName("script"),l="readyState"in(u[0]||document.createElement("script")),d=!window.opera||"[object Opera]"!==window.opera.toString(),p="currentScript"in document;"stackTraceLimit"in Error&&Error.stackTraceLimit!==1/0&&(Error.stackTraceLimit,Error.stackTraceLimit=1/0);var f=!1,h=!1;!function(){try{var e=new Error;throw f="string"==typeof e.stack&&!!e.stack,e}catch(e){h="string"==typeof e.stack&&!!e.stack}}(),o.skipStackDepth=1;var m=o;return m.near=o,m.far=r,m.origin=i,m})},function(e,t,n){(function(t){function r(e){function n(e){if(!e)return!1;if(t.Buffer&&t.Buffer.isBuffer&&t.Buffer.isBuffer(e)||t.ArrayBuffer&&e instanceof ArrayBuffer||t.Blob&&e instanceof Blob||t.File&&e instanceof File)return!0;if(o(e)){for(var r=0;r<e.length;r++)if(n(e[r]))return!0}else if(e&&"object"==(void 0===e?"undefined":i(e))){e.toJSON&&"function"==typeof e.toJSON&&(e=e.toJSON());for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&n(e[a]))return!0}return!1}return n(e)}var i="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof e},o=n(75);e.exports=r}).call(t,n(2))},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t){try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){e.exports=!1}},function(e,t,n){function r(e,t){this.logStorage=e,this.stringifyObjects=!(!t||!t.stringifyObjects)&&t.stringifyObjects,this.storeInterval=t&&t.storeInterval?t.storeInterval:3e4,this.maxEntryLength=t&&t.maxEntryLength?t.maxEntryLength:1e4,Object.keys(o.levels).forEach(function(e){this[o.levels[e]]=function(e){this._log.apply(this,arguments)}.bind(this,e)}.bind(this)),this.storeLogsIntervalID=null,this.queue=[],this.totalLen=0,this.outputCache=[]}var i="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof e},o=n(42);r.prototype.stringify=function(e){try{return JSON.stringify(e)}catch(e){return"[object with circular refs?]"}},r.prototype.formatLogMessage=function(e){for(var t="",n=1,r=arguments.length;n<r;n++){var a=arguments[n];!this.stringifyObjects&&e!==o.levels.ERROR||"object"!==(void 0===a?"undefined":i(a))||(a=this.stringify(a)),t+=a,n!=r-1&&(t+=" ")}return t.length?t:null},r.prototype._log=function(){var e=this.formatLogMessage.apply(this,arguments);if(e){var t=this.queue.length?this.queue[this.queue.length-1]:void 0;("object"===(void 0===t?"undefined":i(t))?t.text:t)==e?"object"===(void 0===t?"undefined":i(t))?t.count+=1:this.queue[this.queue.length-1]={text:e,count:2}:(this.queue.push(e),this.totalLen+=e.length)}this.totalLen>=this.maxEntryLength&&this._flush(!0,!0)},r.prototype.start=function(){this._reschedulePublishInterval()},r.prototype._reschedulePublishInterval=function(){this.storeLogsIntervalID&&(window.clearTimeout(this.storeLogsIntervalID),this.storeLogsIntervalID=null),this.storeLogsIntervalID=window.setTimeout(this._flush.bind(this,!1,!0),this.storeInterval)},r.prototype.flush=function(){this._flush(!1,!0)},r.prototype._flush=function(e,t){this.totalLen>0&&(this.logStorage.isReady()||e)&&(this.logStorage.isReady()?(this.outputCache.length&&(this.outputCache.forEach(function(e){this.logStorage.storeLogs(e)}.bind(this)),this.outputCache=[]),this.logStorage.storeLogs(this.queue)):this.outputCache.push(this.queue),this.queue=[],this.totalLen=0),t&&this._reschedulePublishInterval()},r.prototype.stop=function(){this._flush(!1,!1)},e.exports=r},function(e,t,n){(function(e,r){var i,o="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof e};(function(){function a(e,t){function n(e){if(n[e]!==y)return n[e];var o;if("bug-string-char-index"==e)o="a"!="a"[0];else if("json"==e)o=n("json-stringify")&&n("json-parse");else{var a,s='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var c=t.stringify,l="function"==typeof c&&S;if(l){(a=function(){return 1}).toJSON=a;try{l="0"===c(0)&&"0"===c(new r)&&'""'==c(new i)&&c(b)===y&&c(y)===y&&c()===y&&"1"===c(a)&&"[1]"==c([a])&&"[null]"==c([y])&&"null"==c(null)&&"[null,null,null]"==c([y,b,null])&&c({a:[a,!0,!1,null,"\0\b\n\f\r\t"]})==s&&"1"===c(null,a)&&"[\n 1,\n 2\n]"==c([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==c(new u(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==c(new u(864e13))&&'"-000001-01-01T00:00:00.000Z"'==c(new u(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==c(new u(-1))}catch(e){l=!1}}o=l}if("json-parse"==e){var d=t.parse;if("function"==typeof d)try{if(0===d("0")&&!d(!1)){a=d(s);var p=5==a.a.length&&1===a.a[0];if(p){try{p=!d('"\t"')}catch(e){}if(p)try{p=1!==d("01")}catch(e){}if(p)try{p=1!==d("1.")}catch(e){}}}}catch(e){p=!1}o=p}}return n[e]=!!o}e||(e=l.Object()),t||(t=l.Object());var r=e.Number||l.Number,i=e.String||l.String,s=e.Object||l.Object,u=e.Date||l.Date,d=e.SyntaxError||l.SyntaxError,p=e.TypeError||l.TypeError,f=e.Math||l.Math,h=e.JSON||l.JSON;"object"==(void 0===h?"undefined":o(h))&&h&&(t.stringify=h.stringify,t.parse=h.parse);var m,v,y,g=s.prototype,b=g.toString,S=new u(-0xc782b5b800cec);try{S=-109252==S.getUTCFullYear()&&0===S.getUTCMonth()&&1===S.getUTCDate()&&10==S.getUTCHours()&&37==S.getUTCMinutes()&&6==S.getUTCSeconds()&&708==S.getUTCMilliseconds()}catch(e){}if(!n("json")){var E=n("bug-string-char-index");if(!S)var T=f.floor,_=[0,31,59,90,120,151,181,212,243,273,304,334],C=function(e,t){return _[t]+365*(e-1970)+T((e-1969+(t=+(t>1)))/4)-T((e-1901+t)/100)+T((e-1601+t)/400)};if((m=g.hasOwnProperty)||(m=function(e){var t,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=b?m=function(e){var t=this.__proto__,n=e in(this.__proto__=null,this);return this.__proto__=t,n}:(t=n.constructor,m=function(e){var n=(this.constructor||t).prototype;return e in this&&!(e in n&&this[e]===n[e])}),n=null,m.call(this,e)}),v=function(e,t){var n,r,i,a=0;(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n;for(i in r)m.call(r,i)&&a++;return n=r=null,a?v=2==a?function(e,t){var n,r={},i="[object Function]"==b.call(e);for(n in e)i&&"prototype"==n||m.call(r,n)||!(r[n]=1)||!m.call(e,n)||t(n)}:function(e,t){var n,r,i="[object Function]"==b.call(e);for(n in e)i&&"prototype"==n||!m.call(e,n)||(r="constructor"===n)||t(n);(r||m.call(e,n="constructor"))&&t(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],v=function(e,t){var n,i,a="[object Function]"==b.call(e),s=!a&&"function"!=typeof e.constructor&&c[o(e.hasOwnProperty)]&&e.hasOwnProperty||m;for(n in e)a&&"prototype"==n||!s.call(e,n)||t(n);for(i=r.length;n=r[--i];s.call(e,n)&&t(n));}),v(e,t)},!n("json-stringify")){var w={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},R=function(e,t){return("000000"+(t||0)).slice(-e)},k=function(e){for(var t='"',n=0,r=e.length,i=!E||r>10,o=i&&(E?e.split(""):e);n<r;n++){var a=e.charCodeAt(n);switch(a){case 8:case 9:case 10:case 12:case 13:case 34:case 92:t+=w[a];break;default:if(a<32){t+="\\u00"+R(2,a.toString(16));break}t+=i?o[n]:e.charAt(n)}}return t+'"'},A=function e(t,n,r,i,a,s,c){var u,l,d,f,h,g,S,E,_,w,A,P,I,O,D,L;try{u=n[t]}catch(e){}if("object"==(void 0===u?"undefined":o(u))&&u)if("[object Date]"!=(l=b.call(u))||m.call(u,"toJSON"))"function"==typeof u.toJSON&&("[object Number]"!=l&&"[object String]"!=l&&"[object Array]"!=l||m.call(u,"toJSON"))&&(u=u.toJSON(t));else if(u>-1/0&&u<1/0){if(C){for(h=T(u/864e5),d=T(h/365.2425)+1970-1;C(d+1,0)<=h;d++);for(f=T((h-C(d,0))/30.42);C(d,f+1)<=h;f++);h=1+h-C(d,f),g=(u%864e5+864e5)%864e5,S=T(g/36e5)%24,E=T(g/6e4)%60,_=T(g/1e3)%60,w=g%1e3}else d=u.getUTCFullYear(),f=u.getUTCMonth(),h=u.getUTCDate(),S=u.getUTCHours(),E=u.getUTCMinutes(),_=u.getUTCSeconds(),w=u.getUTCMilliseconds();u=(d<=0||d>=1e4?(d<0?"-":"+")+R(6,d<0?-d:d):R(4,d))+"-"+R(2,f+1)+"-"+R(2,h)+"T"+R(2,S)+":"+R(2,E)+":"+R(2,_)+"."+R(3,w)+"Z"}else u=null;if(r&&(u=r.call(n,t,u)),null===u)return"null";if("[object Boolean]"==(l=b.call(u)))return""+u;if("[object Number]"==l)return u>-1/0&&u<1/0?""+u:"null";if("[object String]"==l)return k(""+u);if("object"==(void 0===u?"undefined":o(u))){for(O=c.length;O--;)if(c[O]===u)throw p();if(c.push(u),A=[],D=s,s+=a,"[object Array]"==l){for(I=0,O=u.length;I<O;I++)P=e(I,u,r,i,a,s,c),A.push(P===y?"null":P);L=A.length?a?"[\n"+s+A.join(",\n"+s)+"\n"+D+"]":"["+A.join(",")+"]":"[]"}else v(i||u,function(t){var n=e(t,u,r,i,a,s,c);n!==y&&A.push(k(t)+":"+(a?" ":"")+n)}),L=A.length?a?"{\n"+s+A.join(",\n"+s)+"\n"+D+"}":"{"+A.join(",")+"}":"{}";return c.pop(),L}};t.stringify=function(e,t,n){var r,i,a,s;if(c[void 0===t?"undefined":o(t)]&&t)if("[object Function]"==(s=b.call(t)))i=t;else if("[object Array]"==s){a={};for(var u,l=0,d=t.length;l<d;u=t[l++],("[object String]"==(s=b.call(u))||"[object Number]"==s)&&(a[u]=1));}if(n)if("[object Number]"==(s=b.call(n))){if((n-=n%1)>0)for(r="",n>10&&(n=10);r.length<n;r+=" ");}else"[object String]"==s&&(r=n.length<=10?n:n.slice(0,10));return A("",(u={},u[""]=e,u),i,a,r,"",[])}}if(!n("json-parse")){var P,I,O=i.fromCharCode,D={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},L=function(){throw P=I=null,d()},N=function(){for(var e,t,n,r,i,o=I,a=o.length;P<a;)switch(i=o.charCodeAt(P)){case 9:case 10:case 13:case 32:P++;break;case 123:case 125:case 91:case 93:case 58:case 44:return e=E?o.charAt(P):o[P],P++,e;case 34:for(e="@",P++;P<a;)if((i=o.charCodeAt(P))<32)L();else if(92==i)switch(i=o.charCodeAt(++P)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:e+=D[i],P++;break;case 117:for(t=++P,n=P+4;P<n;P++)(i=o.charCodeAt(P))>=48&&i<=57||i>=97&&i<=102||i>=65&&i<=70||L();e+=O("0x"+o.slice(t,P));break;default:L()}else{if(34==i)break;for(i=o.charCodeAt(P),t=P;i>=32&&92!=i&&34!=i;)i=o.charCodeAt(++P);e+=o.slice(t,P)}if(34==o.charCodeAt(P))return P++,e;L();default:if(t=P,45==i&&(r=!0,i=o.charCodeAt(++P)),i>=48&&i<=57){for(48==i&&(i=o.charCodeAt(P+1))>=48&&i<=57&&L(),r=!1;P<a&&(i=o.charCodeAt(P))>=48&&i<=57;P++);if(46==o.charCodeAt(P)){for(n=++P;n<a&&(i=o.charCodeAt(n))>=48&&i<=57;n++);n==P&&L(),P=n}if(101==(i=o.charCodeAt(P))||69==i){for(i=o.charCodeAt(++P),43!=i&&45!=i||P++,n=P;n<a&&(i=o.charCodeAt(n))>=48&&i<=57;n++);n==P&&L(),P=n}return+o.slice(t,P)}if(r&&L(),"true"==o.slice(P,P+4))return P+=4,!0;if("false"==o.slice(P,P+5))return P+=5,!1;if("null"==o.slice(P,P+4))return P+=4,null;L()}return"$"},M=function e(t){var n,r;if("$"==t&&L(),"string"==typeof t){if("@"==(E?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(n=[];"]"!=(t=N());r||(r=!0))r&&(","==t?"]"==(t=N())&&L():L()),","==t&&L(),n.push(e(t));return n}if("{"==t){for(n={};"}"!=(t=N());r||(r=!0))r&&(","==t?"}"==(t=N())&&L():L()),","!=t&&"string"==typeof t&&"@"==(E?t.charAt(0):t[0])&&":"==N()||L(),n[t.slice(1)]=e(N());return n}L()}return t},x=function(e,t,n){var r=j(e,t,n);r===y?delete e[t]:e[t]=r},j=function(e,t,n){var r,i=e[t];if("object"==(void 0===i?"undefined":o(i))&&i)if("[object Array]"==b.call(i))for(r=i.length;r--;)x(i,r,n);else v(i,function(e){x(i,e,n)});return n.call(e,t,i)};t.parse=function(e,t){var n,r;return P=0,I=""+e,n=M(N()),"$"!=N()&&L(),P=I=null,t&&"[object Function]"==b.call(t)?j((r={},r[""]=n,r),"",t):n}}}return t.runInContext=a,t}var s=n(25),c={function:!0,object:!0},u=c[o(t)]&&t&&!t.nodeType&&t,l=c["undefined"==typeof window?"undefined":o(window)]&&window||this,d=u&&c[o(e)]&&e&&!e.nodeType&&"object"==(void 0===r?"undefined":o(r))&&r;if(!d||d.global!==d&&d.window!==d&&d.self!==d||(l=d),u&&!s)a(l,u);else{var p=l.JSON,f=l.JSON3,h=!1,m=a(l,l.JSON3={noConflict:function(){return h||(h=!0,l.JSON=p,l.JSON3=f,p=f=null),m}});l.JSON={parse:m.parse,stringify:m.stringify}}s&&void 0!==(i=function(){return m}.call(t,n,t,e))&&(e.exports=i)}).call(this)}).call(t,n(58)(e),n(2))},function(e,t,n){var r,i="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof e};!function(o){function a(e,t,n){var r=0,i=[0],o="",a=null,o=n||"UTF8";if("UTF8"!==o&&"UTF16"!==o)throw"encoding must be UTF8 or UTF16";if("HEX"===t){if(0!=e.length%2)throw"srcString of HEX type must be in byte increments";a=u(e),r=a.binLen,i=a.value}else if("ASCII"===t||"TEXT"===t)a=c(e,o),r=a.binLen,i=a.value;else{if("B64"!==t)throw"inputFormat must be HEX, TEXT, ASCII, or B64";a=l(e),r=a.binLen,i=a.value}this.getHash=function(e,t,n,o){var a,s=null,c=i.slice(),u=r;if(3===arguments.length?"number"!=typeof n&&(o=n,n=1):2===arguments.length&&(n=1),n!==parseInt(n,10)||1>n)throw"numRounds must a integer >= 1";switch(t){case"HEX":s=d;break;case"B64":s=p;break;default:throw"format must be HEX or B64"}if("SHA-1"===e)for(a=0;a<n;a++)c=j(c,u),u=160;else if("SHA-224"===e)for(a=0;a<n;a++)c=F(c,u,e),u=224;else if("SHA-256"===e)for(a=0;a<n;a++)c=F(c,u,e),u=256;else if("SHA-384"===e)for(a=0;a<n;a++)c=F(c,u,e),u=384;else{if("SHA-512"!==e)throw"Chosen SHA variant is not supported";for(a=0;a<n;a++)c=F(c,u,e),u=512}return s(c,f(o))},this.getHMAC=function(e,t,n,a,s){var h,m,v,y,g=[],b=[];switch(h=null,a){case"HEX":a=d;break;case"B64":a=p;break;default:throw"outputFormat must be HEX or B64"}if("SHA-1"===n)m=64,y=160;else if("SHA-224"===n)m=64,y=224;else if("SHA-256"===n)m=64,y=256;else if("SHA-384"===n)m=128,y=384;else{if("SHA-512"!==n)throw"Chosen SHA variant is not supported";m=128,y=512}if("HEX"===t)h=u(e),v=h.binLen,h=h.value;else if("ASCII"===t||"TEXT"===t)h=c(e,o),v=h.binLen,h=h.value;else{if("B64"!==t)throw"inputFormat must be HEX, TEXT, ASCII, or B64";h=l(e),v=h.binLen,h=h.value}for(e=8*m,t=m/4-1,m<v/8?(h="SHA-1"===n?j(h,v):F(h,v,n),h[t]&=4294967040):m>v/8&&(h[t]&=4294967040),m=0;m<=t;m+=1)g[m]=909522486^h[m],b[m]=1549556828^h[m];return n="SHA-1"===n?j(b.concat(j(g.concat(i),e+r)),e+y):F(b.concat(F(g.concat(i),e+r,n)),e+y,n),a(n,f(s))}}function s(e,t){this.a=e,this.b=t}function c(e,t){var n,r,i=[],o=[],a=0;if("UTF8"===t)for(r=0;r<e.length;r+=1)for(n=e.charCodeAt(r),o=[],2048<n?(o[0]=224|(61440&n)>>>12,o[1]=128|(4032&n)>>>6,o[2]=128|63&n):128<n?(o[0]=192|(1984&n)>>>6,o[1]=128|63&n):o[0]=n,n=0;n<o.length;n+=1)i[a>>>2]|=o[n]<<24-a%4*8,a+=1;else if("UTF16"===t)for(r=0;r<e.length;r+=1)i[a>>>2]|=e.charCodeAt(r)<<16-a%4*8,a+=2;return{value:i,binLen:8*a}}function u(e){var t,n,r=[],i=e.length;if(0!=i%2)throw"String of HEX type must be in byte increments";for(t=0;t<i;t+=2){if(n=parseInt(e.substr(t,2),16),isNaN(n))throw"String of HEX type contains invalid characters";r[t>>>3]|=n<<24-t%8*4}return{value:r,binLen:4*i}}function l(e){var t,n,r,i,o,a=[],s=0;if(-1===e.search(/^[a-zA-Z0-9=+\/]+$/))throw"Invalid character in base-64 string";if(t=e.indexOf("="),e=e.replace(/\=/g,""),-1!==t&&t<e.length)throw"Invalid '=' found in base-64 string";for(n=0;n<e.length;n+=4){for(o=e.substr(n,4),r=i=0;r<o.length;r+=1)t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(o[r]),i|=t<<18-6*r;for(r=0;r<o.length-1;r+=1)a[s>>2]|=(i>>>16-8*r&255)<<24-s%4*8,s+=1}return{value:a,binLen:8*s}}function d(e,t){var n,r,i="",o=4*e.length;for(n=0;n<o;n+=1)r=e[n>>>2]>>>8*(3-n%4),i+="0123456789abcdef".charAt(r>>>4&15)+"0123456789abcdef".charAt(15&r);return t.outputUpper?i.toUpperCase():i}function p(e,t){var n,r,i,o="",a=4*e.length;for(n=0;n<a;n+=3)for(i=(e[n>>>2]>>>8*(3-n%4)&255)<<16|(e[n+1>>>2]>>>8*(3-(n+1)%4)&255)<<8|e[n+2>>>2]>>>8*(3-(n+2)%4)&255,r=0;4>r;r+=1)o=8*n+6*r<=32*e.length?o+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(i>>>6*(3-r)&63):o+t.b64Pad;return o}function f(e){var t={outputUpper:!1,b64Pad:"="};try{e.hasOwnProperty("outputUpper")&&(t.outputUpper=e.outputUpper),e.hasOwnProperty("b64Pad")&&(t.b64Pad=e.b64Pad)}catch(e){}if("boolean"!=typeof t.outputUpper)throw"Invalid outputUpper formatting option";if("string"!=typeof t.b64Pad)throw"Invalid b64Pad formatting option";return t}function h(e,t){return e<<t|e>>>32-t}function m(e,t){return e>>>t|e<<32-t}function v(e,t){var n=null,n=new s(e.a,e.b);return n=32>=t?new s(n.a>>>t|n.b<<32-t&4294967295,n.b>>>t|n.a<<32-t&4294967295):new s(n.b>>>t-32|n.a<<64-t&4294967295,n.a>>>t-32|n.b<<64-t&4294967295)}function y(e,t){return 32>=t?new s(e.a>>>t,e.b>>>t|e.a<<32-t&4294967295):new s(0,e.a>>>t-32)}function g(e,t,n){return e^t^n}function b(e,t,n){return e&t^~e&n}function S(e,t,n){return new s(e.a&t.a^~e.a&n.a,e.b&t.b^~e.b&n.b)}function E(e,t,n){return e&t^e&n^t&n}function T(e,t,n){return new s(e.a&t.a^e.a&n.a^t.a&n.a,e.b&t.b^e.b&n.b^t.b&n.b)}function _(e){return m(e,2)^m(e,13)^m(e,22)}function C(e){var t=v(e,28),n=v(e,34);return e=v(e,39),new s(t.a^n.a^e.a,t.b^n.b^e.b)}function w(e){return m(e,6)^m(e,11)^m(e,25)}function R(e){var t=v(e,14),n=v(e,18);return e=v(e,41),new s(t.a^n.a^e.a,t.b^n.b^e.b)}function k(e){return m(e,7)^m(e,18)^e>>>3}function A(e){var t=v(e,1),n=v(e,8);return e=y(e,7),new s(t.a^n.a^e.a,t.b^n.b^e.b)}function P(e){return m(e,17)^m(e,19)^e>>>10}function I(e){var t=v(e,19),n=v(e,61);return e=y(e,6),new s(t.a^n.a^e.a,t.b^n.b^e.b)}function O(e,t){var n=(65535&e)+(65535&t);return((e>>>16)+(t>>>16)+(n>>>16)&65535)<<16|65535&n}function D(e,t,n,r){var i=(65535&e)+(65535&t)+(65535&n)+(65535&r);return((e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)&65535)<<16|65535&i}function L(e,t,n,r,i){var o=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&i);return((e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)+(o>>>16)&65535)<<16|65535&o}function N(e,t){var n,r,i;return n=(65535&e.b)+(65535&t.b),r=(e.b>>>16)+(t.b>>>16)+(n>>>16),i=(65535&r)<<16|65535&n,n=(65535&e.a)+(65535&t.a)+(r>>>16),r=(e.a>>>16)+(t.a>>>16)+(n>>>16),new s((65535&r)<<16|65535&n,i)}function M(e,t,n,r){var i,o,a;return i=(65535&e.b)+(65535&t.b)+(65535&n.b)+(65535&r.b),o=(e.b>>>16)+(t.b>>>16)+(n.b>>>16)+(r.b>>>16)+(i>>>16),a=(65535&o)<<16|65535&i,i=(65535&e.a)+(65535&t.a)+(65535&n.a)+(65535&r.a)+(o>>>16),o=(e.a>>>16)+(t.a>>>16)+(n.a>>>16)+(r.a>>>16)+(i>>>16),new s((65535&o)<<16|65535&i,a)}function x(e,t,n,r,i){var o,a,c;return o=(65535&e.b)+(65535&t.b)+(65535&n.b)+(65535&r.b)+(65535&i.b),a=(e.b>>>16)+(t.b>>>16)+(n.b>>>16)+(r.b>>>16)+(i.b>>>16)+(o>>>16),c=(65535&a)<<16|65535&o,o=(65535&e.a)+(65535&t.a)+(65535&n.a)+(65535&r.a)+(65535&i.a)+(a>>>16),a=(e.a>>>16)+(t.a>>>16)+(n.a>>>16)+(r.a>>>16)+(i.a>>>16)+(o>>>16),new s((65535&a)<<16|65535&o,c)}function j(e,t){var n,r,i,o,a,s,c,u,l,d=[],p=b,f=g,m=E,v=h,y=O,S=L,T=[1732584193,4023233417,2562383102,271733878,3285377520];for(e[t>>>5]|=128<<24-t%32,e[15+(t+65>>>9<<4)]=t,l=e.length,c=0;c<l;c+=16){for(n=T[0],r=T[1],i=T[2],o=T[3],a=T[4],u=0;80>u;u+=1)d[u]=16>u?e[u+c]:v(d[u-3]^d[u-8]^d[u-14]^d[u-16],1),s=20>u?S(v(n,5),p(r,i,o),a,1518500249,d[u]):40>u?S(v(n,5),f(r,i,o),a,1859775393,d[u]):60>u?S(v(n,5),m(r,i,o),a,2400959708,d[u]):S(v(n,5),f(r,i,o),a,3395469782,d[u]),a=o,o=i,i=v(r,30),r=n,n=s;T[0]=y(n,T[0]),T[1]=y(r,T[1]),T[2]=y(i,T[2]),T[3]=y(o,T[3]),T[4]=y(a,T[4])}return T}function F(e,t,n){var r,i,o,a,c,u,l,d,p,f,h,m,v,y,g,j,F,U,B,J,G,H,V,W,K,q,z=[],$=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];if(f=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],"SHA-224"===n||"SHA-256"===n)h=64,r=15+(t+65>>>9<<4),y=16,g=1,K=Number,j=O,F=D,U=L,B=k,J=P,G=_,H=w,W=E,V=b,f="SHA-224"===n?f:i;else{if("SHA-384"!==n&&"SHA-512"!==n)throw"Unexpected error in SHA-2 implementation";h=80,r=31+(t+128>>>10<<5),y=32,g=2,K=s,j=N,F=M,U=x,B=A,J=I,G=C,H=R,W=T,V=S,$=[new K($[0],3609767458),new K($[1],602891725),new K($[2],3964484399),new K($[3],2173295548),new K($[4],4081628472),new K($[5],3053834265),new K($[6],2937671579),new K($[7],3664609560),new K($[8],2734883394),new K($[9],1164996542),new K($[10],1323610764),new K($[11],3590304994),new K($[12],4068182383),new K($[13],991336113),new K($[14],633803317),new K($[15],3479774868),new K($[16],2666613458),new K($[17],944711139),new K($[18],2341262773),new K($[19],2007800933),new K($[20],1495990901),new K($[21],1856431235),new K($[22],3175218132),new K($[23],2198950837),new K($[24],3999719339),new K($[25],766784016),new K($[26],2566594879),new K($[27],3203337956),new K($[28],1034457026),new K($[29],2466948901),new K($[30],3758326383),new K($[31],168717936),new K($[32],1188179964),new K($[33],1546045734),new K($[34],1522805485),new K($[35],2643833823),new K($[36],2343527390),new K($[37],1014477480),new K($[38],1206759142),new K($[39],344077627),new K($[40],1290863460),new K($[41],3158454273),new K($[42],3505952657),new K($[43],106217008),new K($[44],3606008344),new K($[45],1432725776),new K($[46],1467031594),new K($[47],851169720),new K($[48],3100823752),new K($[49],1363258195),new K($[50],3750685593),new K($[51],3785050280),new K($[52],3318307427),new K($[53],3812723403),new K($[54],2003034995),new K($[55],3602036899),new K($[56],1575990012),new K($[57],1125592928),new K($[58],2716904306),new K($[59],442776044),new K($[60],593698344),new K($[61],3733110249),new K($[62],2999351573),new K($[63],3815920427),new K(3391569614,3928383900),new K(3515267271,566280711),new K(3940187606,3454069534),new K(4118630271,4000239992),new K(116418474,1914138554),new K(174292421,2731055270),new K(289380356,3203993006),new K(460393269,320620315),new K(685471733,587496836),new K(852142971,1086792851),new K(1017036298,365543100),new K(1126000580,2618297676),new K(1288033470,3409855158),new K(1501505948,4234509866),new K(1607167915,987167468),new K(1816402316,1246189591)],f="SHA-384"===n?[new K(3418070365,f[0]),new K(1654270250,f[1]),new K(2438529370,f[2]),new K(355462360,f[3]),new K(1731405415,f[4]),new K(41048885895,f[5]),new K(3675008525,f[6]),new K(1203062813,f[7])]:[new K(i[0],4089235720),new K(i[1],2227873595),new K(i[2],4271175723),new K(i[3],1595750129),new K(i[4],2917565137),new K(i[5],725511199),new K(i[6],4215389547),new K(i[7],327033209)]}for(e[t>>>5]|=128<<24-t%32,e[r]=t,q=e.length,m=0;m<q;m+=y){for(t=f[0],r=f[1],i=f[2],o=f[3],a=f[4],c=f[5],u=f[6],l=f[7],v=0;v<h;v+=1)z[v]=16>v?new K(e[v*g+m],e[v*g+m+1]):F(J(z[v-2]),z[v-7],B(z[v-15]),z[v-16]),d=U(l,H(a),V(a,c,u),$[v],z[v]),p=j(G(t),W(t,r,i)),l=u,u=c,c=a,a=j(o,d),o=i,i=r,r=t,t=j(d,p);f[0]=j(t,f[0]),f[1]=j(r,f[1]),f[2]=j(i,f[2]),f[3]=j(o,f[3]),f[4]=j(a,f[4]),f[5]=j(c,f[5]),f[6]=j(u,f[6]),f[7]=j(l,f[7])}if("SHA-224"===n)e=[f[0],f[1],f[2],f[3],f[4],f[5],f[6]];else if("SHA-256"===n)e=f;else if("SHA-384"===n)e=[f[0].a,f[0].b,f[1].a,f[1].b,f[2].a,f[2].b,f[3].a,f[3].b,f[4].a,f[4].b,f[5].a,f[5].b];else{if("SHA-512"!==n)throw"Unexpected error in SHA-2 implementation";e=[f[0].a,f[0].b,f[1].a,f[1].b,f[2].a,f[2].b,f[3].a,f[3].b,f[4].a,f[4].b,f[5].a,f[5].b,f[6].a,f[6].b,f[7].a,f[7].b]}return e}i(n(25))?void 0!==(r=function(){return a}.call(t,n,t,e))&&(e.exports=r):void 0!==e&&e.exports?e.exports=t=a:t=a}()},function(e,t,n){"use strict";(function(e){function r(e){if(!e.name||e.name.toLowerCase()!==e.name){var t="Invalid conference name (no conference name passed or it contains invalid characters like capital letters)!";throw j.error(t),new Error(t)}this.eventEmitter=new d.a,this.options=e,this.eventManager=new f.a(this),this.participants={},this._init(e),this.componentsVersions=new o.a(this),this.jvbJingleSession=null,this.lastDominantSpeaker=null,this.dtmfManager=null,this.somebodySupportsDTMF=!1,this.authEnabled=!1,this.startAudioMuted=!1,this.startVideoMuted=!1,this.startMutedPolicy={audio:!1,video:!1},this.availableDevices={audio:void 0,video:void 0},this.isMutedByFocus=!1,this.wasStopped=!1,this.connectionQuality=new a.a(this,this.eventEmitter,e),this.avgRtpStatsReporter=new i.a(this,e.config.avgRtpStatsN||15),this.isJvbConnectionInterrupted=!1,this.speakerStatsCollector=new x.a(this),this.deferredStartP2PTask=null;var n=parseInt(e.config.p2p&&e.config.p2p.backToP2PDelay,10);this.backToP2PDelay=isNaN(n)?5:n,j.info("backToP2PDelay: "+this.backToP2PDelay),this.isP2PConnectionInterrupted=!1,this.p2p=!1,this.p2pJingleSession=null}t.a=r;var i=n(103),o=n(116),a=n(100),s=n(0),c=(n.n(s),n(3)),u=n.n(c),l=n(14),d=n.n(l),p=n(26),f=n(81),h=n(5),m=n(86),v=n.n(m),y=n(84),g=n(11),b=n(15),S=n(16),E=n(101),T=n(4),_=n(28),C=n(87),w=n(22),R=n(1),k=n(8),A=(n.n(k),n(6)),P=n(99),I=n(109),O=n.n(I),D=n(17),L=n.n(D),N=n(118),M=n(7),x=(n.n(M),n(107)),j=n.i(s.getLogger)(e);r.prototype.constructor=r,r.prototype._init=function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.connection&&(this.connection=t.connection,this.xmpp=this.connection.xmpp,this.eventManager.setupXMPPListeners()),this.room=this.xmpp.createRoom(this.options.name,this.options.config),this._onIceConnectionInterrupted=this._onIceConnectionInterrupted.bind(this),this.room.addListener(M.CONNECTION_INTERRUPTED,this._onIceConnectionInterrupted),this._onIceConnectionRestored=this._onIceConnectionRestored.bind(this),this.room.addListener(M.CONNECTION_RESTORED,this._onIceConnectionRestored),this._onIceConnectionEstablished=this._onIceConnectionEstablished.bind(this),this.room.addListener(M.CONNECTION_ESTABLISHED,this._onIceConnectionEstablished),this.room.updateDeviceAvailability(w.a.getDeviceAvailability()),this.rtc||(this.rtc=new w.a(this,t),this.eventManager.setupRTCListeners()),this.participantConnectionStatus=new _.b(this.rtc,this,{rtcMuteTimeout:this.options.config._peerConnStatusRtcMuteTimeout,outOfLastNTimeout:this.options.config._peerConnStatusOutOfLastNTimeout}),this.participantConnectionStatus.init(),this.statistics||(this.statistics=new A.a(this.xmpp,{callStatsID:this.options.config.callStatsID,callStatsSecret:this.options.config.callStatsSecret,callStatsConfIDNamespace:this.options.config.callStatsConfIDNamespace||window.location.hostname,callStatsCustomScriptUrl:this.options.config.callStatsCustomScriptUrl,callStatsAliasName:this.myUserId(),roomName:this.options.name})),this.eventManager.setupChatRoomListeners(),this.eventManager.setupStatisticsListeners(),this.options.config.enableTalkWhileMuted&&new P.a(this,function(){return e.eventEmitter.emit(h.TALK_WHILE_MUTED)}),"channelLastN"in t.config&&this.setLastN(t.config.channelLastN),this.jvb121Status=new E.a(this),this.p2pDominantSpeakerDetection=new C.a(this)},r.prototype.join=function(e){this.room&&this.room.join(e)},r.prototype.isJoined=function(){return this.room&&this.room.joined},
r.prototype.isP2PEnabled=function(){return Boolean(this.options.config.p2p&&this.options.config.p2p.enabled)||void 0===this.options.config.p2p},r.prototype.isP2PTestModeEnabled=function(){return Boolean(this.options.config.testing&&this.options.config.testing.p2pTestMode)},r.prototype.leave=function(){var e=this;if(this.participantConnectionStatus&&(this.participantConnectionStatus.dispose(),this.participantConnectionStatus=null),this.avgRtpStatsReporter&&(this.avgRtpStatsReporter.dispose(),this.avgRtpStatsReporter=null),this.getLocalTracks().forEach(function(t){return e.onLocalTrackRemoved(t)}),this.rtc.closeBridgeChannel(),this.statistics&&this.statistics.dispose(),this.jvbJingleSession&&(this.jvbJingleSession.close(),this.jvbJingleSession=null),this.p2pJingleSession&&(this.p2pJingleSession.close(),this.p2pJingleSession=null),this.room){var t=this.room;return t.removeListener(M.CONNECTION_INTERRUPTED,this._onIceConnectionInterrupted),t.removeListener(M.CONNECTION_RESTORED,this._onIceConnectionRestored),t.removeListener(M.CONNECTION_ESTABLISHED,this._onIceConnectionEstablished),this.room=null,t.leave().catch(function(){e.getParticipants().forEach(function(t){return e.onMemberLeft(t.getJid())})})}return Promise.reject(new Error("The conference is has been already left"))},r.prototype.getName=function(){return this.options.name},r.prototype.isAuthEnabled=function(){return this.authEnabled},r.prototype.isLoggedIn=function(){return Boolean(this.authIdentity)},r.prototype.getAuthLogin=function(){return this.authIdentity},r.prototype.isExternalAuthEnabled=function(){return this.room&&this.room.moderator.isExternalAuthEnabled()},r.prototype.getExternalAuthUrl=function(e){var t=this;return new Promise(function(n,r){if(!t.isExternalAuthEnabled())return void r();e?t.room.moderator.getPopupLoginUrl(n,r):t.room.moderator.getLoginUrl(n,r)})},r.prototype.getLocalTracks=function(e){var t=[];return this.rtc&&(t=this.rtc.getLocalTracks(e)),t},r.prototype.getLocalAudioTrack=function(){return this.rtc?this.rtc.getLocalAudioTrack():null},r.prototype.getLocalVideoTrack=function(){return this.rtc?this.rtc.getLocalVideoTrack():null},r.prototype.on=function(e,t){this.eventEmitter&&this.eventEmitter.on(e,t)},r.prototype.off=function(e,t){this.eventEmitter&&this.eventEmitter.removeListener(e,t)},r.prototype.addEventListener=r.prototype.on,r.prototype.removeEventListener=r.prototype.off,r.prototype.addCommandListener=function(e,t){this.room&&this.room.addPresenceListener(e,t)},r.prototype.removeCommandListener=function(e){this.room&&this.room.removePresenceListener(e)},r.prototype.sendTextMessage=function(e){this.room&&this.room.sendMessage(e)},r.prototype.sendCommand=function(e,t){this.room&&(this.room.addToPresence(e,t),this.room.sendPresence())},r.prototype.sendCommandOnce=function(e,t){this.sendCommand(e,t),this.removeCommand(e)},r.prototype.removeCommand=function(e){this.room&&this.room.removeFromPresence(e)},r.prototype.setDisplayName=function(e){this.room&&(this.room.removeFromPresence("nick"),this.room.addToPresence("nick",{attributes:{xmlns:"http://jabber.org/protocol/nick"},value:e}),this.room.sendPresence())},r.prototype.setSubject=function(e){this.room&&this.isModerator()&&this.room.setSubject(e)},r.prototype.getTranscriber=function(){if(void 0===this.transcriber){this.transcriber=new O.a;var e=this.getLocalTracks(T.a),t=!0,n=!1,r=void 0;try{for(var i,o=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(t=(i=o.next()).done);t=!0){var a=i.value;this.transcriber.addTrack(a)}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}var s=this.rtc.getRemoteTracks(T.a),c=!0,u=!1,l=void 0;try{for(var d,p=s["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(c=(d=p.next()).done);c=!0){var f=d.value;this.transcriber.addTrack(f)}}catch(e){u=!0,l=e}finally{try{!c&&p.return&&p.return()}finally{if(u)throw l}}}return this.transcriber},r.prototype.addTrack=function(e){if(e.isVideoTrack()){var t=this.rtc.getLocalVideoTrack();if(t)return e===t?Promise.resolve(e):Promise.reject(new Error("cannot add second video track to the conference"))}return this.replaceTrack(null,e)},r.prototype._fireAudioLevelChangeEvent=function(e,t){var n=this.getActivePeerConnection();t&&n!==t||this.eventEmitter.emit(h.TRACK_AUDIO_LEVEL_CHANGED,this.myUserId(),e)},r.prototype._fireMuteChangeEvent=function(e){this.isMutedByFocus&&e.isAudioTrack()&&!e.isMuted()&&(this.isMutedByFocus=!1,this.room.muteParticipant(this.room.myroomjid,!1)),this.eventEmitter.emit(h.TRACK_MUTE_CHANGED,e)},r.prototype.onLocalTrackRemoved=function(e){e._setConference(null),this.rtc.removeLocalTrack(e),e.removeEventListener(S.TRACK_MUTE_CHANGED,e.muteHandler),e.removeEventListener(S.TRACK_AUDIO_LEVEL_CHANGED,e.audioLevelHandler),e.isVideoTrack()&&e.videoType===L.a.DESKTOP&&this.statistics.sendScreenSharingEvent(!1),this.eventEmitter.emit(h.TRACK_REMOVED,e)},r.prototype.removeTrack=function(e){return this.replaceTrack(e,null)},r.prototype.replaceTrack=function(e,t){var n=this;return e&&e.disposed?Promise.reject(new g.a(b.TRACK_IS_DISPOSED)):t&&t.disposed?Promise.reject(new g.a(b.TRACK_IS_DISPOSED)):this._doReplaceTrack(e,t).then(function(){return e&&n.onLocalTrackRemoved(e),t&&n._setupNewTrack(t),Promise.resolve()},function(e){return Promise.reject(new Error(e))})},r.prototype._doReplaceTrack=function(e,t){var n=[];return this.jvbJingleSession?n.push(this.jvbJingleSession.replaceTrack(e,t)):j.info("_doReplaceTrack - no JVB JingleSession"),this.p2pJingleSession?n.push(this.p2pJingleSession.replaceTrack(e,t)):j.info("_doReplaceTrack - no P2P JingleSession"),Promise.all(n)},r.prototype._setupNewTrack=function(e){if(e.isAudioTrack()||e.isVideoTrack()&&e.videoType!==L.a.DESKTOP){var t=w.a.getCurrentlyAvailableMediaDevices(),n=t.find(function(t){return t.kind===e.getTrack().kind+"input"&&t.label===e.getTrack().label});n&&A.a.sendActiveDeviceListEvent(w.a.getEventDataForActiveDevice(n))}e.isVideoTrack()&&(this.removeCommand("videoType"),this.sendCommand("videoType",{value:e.videoType,attributes:{xmlns:"http://jitsi.org/jitmeet/video"}})),this.rtc.addLocalTrack(e),e.isAudioTrack()?this.room.setAudioMute(e.isMuted()):this.room.setVideoMute(e.isMuted()),e.muteHandler=this._fireMuteChangeEvent.bind(this,e),e.audioLevelHandler=this._fireAudioLevelChangeEvent.bind(this),e.addEventListener(S.TRACK_MUTE_CHANGED,e.muteHandler),e.addEventListener(S.TRACK_AUDIO_LEVEL_CHANGED,e.audioLevelHandler),e._setConference(this),e.isVideoTrack()&&e.videoType===L.a.DESKTOP&&this.statistics.sendScreenSharingEvent(!0),this.eventEmitter.emit(h.TRACK_ADDED,e)},r.prototype._addLocalTrackAsUnmute=function(e){var t=[];return this.jvbJingleSession?t.push(this.jvbJingleSession.addTrackAsUnmute(e)):j.info("Add local MediaStream as unmute - no JVB Jingle session started yet"),this.p2pJingleSession?t.push(this.p2pJingleSession.addTrackAsUnmute(e)):j.info("Add local MediaStream as unmute - no P2P Jingle session started yet"),Promise.all(t)},r.prototype._removeLocalTrackAsMute=function(e){var t=[];return this.jvbJingleSession?t.push(this.jvbJingleSession.removeTrackAsMute(e)):j.info("Remove local MediaStream - no JVB JingleSession started yet"),this.p2pJingleSession?t.push(this.p2pJingleSession.removeTrackAsMute(e)):j.info("Remove local MediaStream - no P2P JingleSession started yet"),Promise.all(t)},r.prototype.getRole=function(){return this.room.role},r.prototype.isModerator=function(){return this.room?this.room.isModerator():null},r.prototype.lock=function(e){var t=this;return this.isModerator()?new Promise(function(n,r){t.room.lockRoom(e||"",function(){return n()},function(e){return r(e)},function(){return r(p.PASSWORD_NOT_SUPPORTED)})}):Promise.reject()},r.prototype.unlock=function(){return this.lock()},r.prototype.selectParticipant=function(e){this.rtc.selectEndpoint(e)},r.prototype.pinParticipant=function(e){this.rtc.pinEndpoint(e)},r.prototype.getLastN=function(){return this.rtc.getLastN()},r.prototype.setLastN=function(e){if(!Number.isInteger(e)&&!Number.parseInt(e,10))throw new Error("Invalid value for lastN: "+e);var t=Number(e);if(t<-1)throw new RangeError("lastN cannot be smaller than -1");if(this.rtc.setLastN(t),this.p2pJingleSession){var n=0!==t;this.p2pJingleSession.setMediaTransferActive(!0,n).catch(function(e){j.error("Failed to adjust video transfer status ("+n+")",e)})}},r.prototype.isInLastN=function(e){return this.rtc.isInLastN(e)},r.prototype.getParticipants=function(){return Object.keys(this.participants).map(function(e){return this.participants[e]},this)},r.prototype.getParticipantCount=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.getParticipants();return e||(t=t.filter(function(e){return!e.isHidden()})),t.length+1},r.prototype.getParticipantById=function(e){return this.participants[e]},r.prototype.kickParticipant=function(e){var t=this.getParticipantById(e);t&&this.room.kick(t.getJid())},r.prototype.muteParticipant=function(e){var t=this.getParticipantById(e);t&&this.room.muteParticipant(t.getJid(),!0)},r.prototype.onMemberJoined=function(e,t,n,r){var i=this,o=Strophe.getResourceFromJid(e);if("focus"!==o&&this.myUserId()!==o){var a=new y.a(e,this,t,r);a._role=n,this.participants[o]=a,this.eventEmitter.emit(h.USER_JOINED,o,a),this.xmpp.caps.getFeatures(e).then(function(e){a._supportsDTMF=e.has("urn:xmpp:jingle:dtmf:0"),i.updateDTMFSupport()},function(t){return j.error("Failed to discover features of "+e,t)}),this._maybeStartOrStopP2P()}},r.prototype.onMemberLeft=function(e){var t=this,n=Strophe.getResourceFromJid(e);if("focus"!==n&&this.myUserId()!==n){var r=this.participants[n];delete this.participants[n],this.rtc.removeRemoteTracks(n).forEach(function(e){return t.eventEmitter.emit(h.TRACK_REMOVED,e)}),r&&this.eventEmitter.emit(h.USER_LEFT,n,r),this._maybeStartOrStopP2P(!0)}},r.prototype.onLocalRoleChanged=function(e){this.eventEmitter.emit(h.USER_ROLE_CHANGED,this.myUserId(),e),this._maybeStartOrStopP2P()},r.prototype.onUserRoleChanged=function(e,t){var n=Strophe.getResourceFromJid(e),r=this.getParticipantById(n);r&&(r._role=t,this.eventEmitter.emit(h.USER_ROLE_CHANGED,n,t))},r.prototype.onDisplayNameChanged=function(e,t){var n=Strophe.getResourceFromJid(e),r=this.getParticipantById(n);r&&r._displayName!==t&&(r._displayName=t,this.eventEmitter.emit(h.DISPLAY_NAME_CHANGED,n,t))},r.prototype.onRemoteTrackAdded=function(e){var t=this;if(e.isP2P&&!this.isP2PActive())return void j.info("Trying to add remote P2P track, when not in P2P - IGNORED");if(!e.isP2P&&this.isP2PActive())return void j.info("Trying to add remote JVB track, when in P2P - IGNORED");var n=e.getParticipantId(),r=this.getParticipantById(n);if(!r)return void j.error("No participant found for id: "+n);r._tracks.push(e),this.transcriber&&this.transcriber.addTrack(e);var i=this.eventEmitter;e.addEventListener(S.TRACK_MUTE_CHANGED,function(){return i.emit(h.TRACK_MUTE_CHANGED,e)}),e.addEventListener(S.TRACK_AUDIO_LEVEL_CHANGED,function(e,r){t.getActivePeerConnection()===r&&i.emit(h.TRACK_AUDIO_LEVEL_CHANGED,n,e)}),i.emit(h.TRACK_ADDED,e)},r.prototype.onCallAccepted=function(e,t){this.p2pJingleSession===e&&(j.info("P2P setAnswer"),this.p2pJingleSession.setAnswer(t))},r.prototype.onTransportInfo=function(e,t){this.p2pJingleSession===e&&(j.info("P2P addIceCandidates"),this.p2pJingleSession.addIceCandidates(t))},r.prototype.onRemoteTrackRemoved=function(e){var t=this;this.getParticipants().forEach(function(n){for(var r=n.getTracks(),i=0;i<r.length;i++)if(r[i]===e){n._tracks.splice(i,1),t.eventEmitter.emit(h.TRACK_REMOVED,e),t.transcriber&&t.transcriber.removeTrack(e);break}},this)},r.prototype.onIncomingCall=function(e,t,n){var r=this;if(e.isP2P)return void("moderator"!==this.room.getMemberRole(e.peerjid)?this._rejectIncomingCallNonModerator(e):R.a.isP2PSupported()?this.isP2PEnabled()||this.isP2PTestModeEnabled()?this.p2pJingleSession?this._rejectIncomingCall(e,{reasonTag:"busy",reasonMsg:"P2P already in progress",errorMsg:'Duplicated P2P "session-initiate"'}):this._acceptP2PIncomingCall(e,t):this._rejectIncomingCall(e,{reasonTag:"decline",reasonMsg:"P2P disabled",errorMsg:"P2P mode disabled in the configuration"}):this._rejectIncomingCall(e,{reasonTag:"unsupported-applications",reasonMsg:"P2P not supported",errorMsg:"This client does not support P2P connections"}));if(!this.room.isFocus(e.peerjid))return void this._rejectIncomingCall(e);this.jvbJingleSession=e,this.room.connectionTimes["session.initiate"]=n,this.wasStopped&&A.a.sendEventToAll("session.restart");var i=null;this.options.config&&this.options.config.deploymentInfo&&void 0!==this.options.config.deploymentInfo.crossRegion&&(i=this.options.config.deploymentInfo.crossRegion),A.a.analytics.sendEvent("session.initiate",{value:n-this.room.connectionTimes["muc.joined"],label:i});try{e.initialize(!1,this.room,this.rtc)}catch(e){u.a.callErrorHandler(e)}this._setBridgeChannel(t,e.peerconnection);try{e.acceptOffer(t,function(){r.isP2PActive()&&r.jvbJingleSession&&r._suspendMediaTransferForJvbConnection()},function(e){u.a.callErrorHandler(e),j.error("Failed to accept incoming Jingle session",e)},this.getLocalTracks()),j.info("Starting CallStats for JVB connection..."),this.statistics.startCallStats(this.jvbJingleSession.peerconnection,"jitsi"),this.statistics.startRemoteStats(this.jvbJingleSession.peerconnection)}catch(e){u.a.callErrorHandler(e),j.error(e)}},r.prototype._setBridgeChannel=function(e,t){var n=null,r=$(e).find(">content>transport>web-socket").first();1===r.length&&(n=r[0].getAttribute("url"));var i=void 0;switch(this.options.config.openBridgeChannel){case"datachannel":case!0:case void 0:i="datachannel";break;case"websocket":i="websocket"}"datachannel"!==i||R.a.supportsDataChannels()||(i="websocket"),"datachannel"===i?this.rtc.initializeBridgeChannel(t,null):"websocket"===i&&n&&this.rtc.initializeBridgeChannel(null,n)},r.prototype._rejectIncomingCallNonModerator=function(e){this._rejectIncomingCall(e,{reasonTag:"security-error",reasonMsg:"Only focus can start new sessions",errorMsg:"Rejecting session-initiate from non-focus andnon-moderator user: "+e.peerjid})},r.prototype._rejectIncomingCall=function(e,t){t&&t.errorMsg&&u.a.callErrorHandler(new Error(t.errorMsg)),e.terminate(null,function(e){j.warn("An error occurred while trying to terminate invalid Jingle session",e)},{reason:t&&t.reasonTag,reasonDescription:t&&t.reasonMsg,sendSessionTerminate:!0})},r.prototype.onCallEnded=function(e,t,n){j.info("Call ended: "+t+" - "+n+" P2P ?"+e.isP2P),e===this.jvbJingleSession?(this.wasStopped=!0,A.a.sendEventToAll("session.terminate"),this.statistics&&(this.statistics.stopRemoteStats(this.jvbJingleSession.peerconnection),j.info("Stopping JVB CallStats"),this.statistics.stopCallStats(this.jvbJingleSession.peerconnection)),this.jvbJingleSession=null,this.rtc.onCallEnded()):e===this.p2pJingleSession?("decline"===t&&"force JVB121"===n?(j.info("In forced JVB 121 mode..."),A.a.analytics.addPermanentProperties({forceJvb121:!0})):"connectivity-error"===t&&"ICE FAILED"===n&&A.a.analytics.addPermanentProperties({p2pFailed:!0}),this._stopP2PSession()):j.error("Received onCallEnded for invalid session",e.sid,e.peerjid,t,n)},r.prototype.onSuspendDetected=function(e){e.isP2P||(this.leave(),this.eventEmitter.emit(h.SUSPEND_DETECTED))},r.prototype.updateDTMFSupport=function(){for(var e=!1,t=this.getParticipants(),n=0;n<t.length;n+=1)if(t[n].supportsDTMF()){e=!0;break}e!==this.somebodySupportsDTMF&&(this.somebodySupportsDTMF=e,this.eventEmitter.emit(h.DTMF_SUPPORT_CHANGED,e))},r.prototype.isDTMFSupported=function(){return this.somebodySupportsDTMF},r.prototype.myUserId=function(){return this.room&&this.room.myroomjid?Strophe.getResourceFromJid(this.room.myroomjid):null},r.prototype.sendTones=function(e,t,n){if(!this.dtmfManager){var r=this.getActivePeerConnection();if(!r)return void j.warn("cannot sendTones: no peer connection");var i=this.getLocalAudioTrack();if(!i)return void j.warn("cannot sendTones: no local audio stream");this.dtmfManager=new v.a(i,r)}this.dtmfManager.sendTones(e,t,n)},r.prototype.isRecordingSupported=function(){return!!this.room&&this.room.isRecordingSupported()},r.prototype.getRecordingState=function(){return this.room?this.room.getRecordingState():void 0},r.prototype.getRecordingURL=function(){return this.room?this.room.getRecordingURL():null},r.prototype.toggleRecording=function(e){var t=this;if(this.room)return this.room.toggleRecording(e,function(e,n){t.eventEmitter.emit(h.RECORDER_STATE_CHANGED,e,n)});this.eventEmitter.emit(h.RECORDER_STATE_CHANGED,"error",new Error("The conference is not created yet!"))},r.prototype.isSIPCallingSupported=function(){return!!this.room&&this.room.isSIPCallingSupported()},r.prototype.dial=function(e){return this.room?this.room.dial(e):new Promise(function(e,t){t(new Error("The conference is not created yet!"))})},r.prototype.hangup=function(){return this.room?this.room.hangup():new Promise(function(e,t){t(new Error("The conference is not created yet!"))})},r.prototype.getPhoneNumber=function(){return this.room?this.room.getPhoneNumber():null},r.prototype.getPhonePin=function(){return this.room?this.room.getPhonePin():null},r.prototype.getActivePeerConnection=function(){return this.isP2PActive()?this.p2pJingleSession.peerconnection:this.jvbJingleSession?this.jvbJingleSession.peerconnection:null},r.prototype.getConnectionState=function(){var e=this.getActivePeerConnection();return e?e.getConnectionState():null},r.prototype.setStartMutedPolicy=function(e){this.isModerator()&&(this.startMutedPolicy=e,this.room.removeFromPresence("startmuted"),this.room.addToPresence("startmuted",{attributes:{audio:e.audio,video:e.video,xmlns:"http://jitsi.org/jitmeet/start-muted"}}),this.room.sendPresence())},r.prototype.getStartMutedPolicy=function(){return this.startMutedPolicy},r.prototype.isStartAudioMuted=function(){return this.startAudioMuted},r.prototype.isStartVideoMuted=function(){return this.startVideoMuted},r.prototype.getLogs=function(){var e=this.xmpp.getJingleLog(),t={};t.time=new Date,t.url=window.location.href,t.ua=navigator.userAgent;var n=this.xmpp.getXmppLog();return n&&(t.xmpp=n),e.metadata=t,e},r.prototype.getConnectionTimes=function(){return this.room.connectionTimes},r.prototype.setLocalParticipantProperty=function(e,t){this.sendCommand("jitsi_participant_"+e,{value:t})},r.prototype.sendFeedback=function(e,t){this.statistics.sendFeedback(e,t)},r.prototype.isCallstatsEnabled=function(){return this.statistics.isCallstatsEnabled()},r.prototype._onTrackAttach=function(e,t){var n=e.isLocal(),r=null,i=e.isP2P,o=i?e.getParticipantId():"jitsi",a=i?this.p2pJingleSession&&this.p2pJingleSession.peerconnection:this.jvbJingleSession&&this.jvbJingleSession.peerconnection;n?a&&(r=a.getLocalSSRC(e)):r=e.getSSRC(),t.id&&r&&a&&this.statistics.associateStreamWithVideoTag(a,r,n,o,e.getUsageLabel(),t.id)},r.prototype.sendApplicationLog=function(e){A.a.sendLog(e)},r.prototype._isFocus=function(e){return this.room?this.room.isFocus(e):null},r.prototype._fireIncompatibleVersionsEvent=function(){this.eventEmitter.emit(h.CONFERENCE_FAILED,p.INCOMPATIBLE_SERVER_VERSIONS)},r.prototype.sendEndpointMessage=function(e,t){this.rtc.sendChannelMessage(e,t)},r.prototype.broadcastEndpointMessage=function(e){this.sendEndpointMessage("",e)},r.prototype.isConnectionInterrupted=function(){return this.isP2PActive()?this.isP2PConnectionInterrupted:this.isJvbConnectionInterrupted},r.prototype._onIceConnectionInterrupted=function(e){e.isP2P?this.isP2PConnectionInterrupted=!0:this.isJvbConnectionInterrupted=!0,e.isP2P===this.isP2PActive()&&this.eventEmitter.emit(h.CONNECTION_INTERRUPTED)},r.prototype._onIceConnectionFailed=function(e){e.isP2P&&(A.a.analytics.addPermanentProperties({p2pFailed:!0}),this.p2pJingleSession&&this.p2pJingleSession.isInitiator&&A.a.sendEventToAll("p2p.failed"),this._stopP2PSession("connectivity-error","ICE FAILED"))},r.prototype._onIceConnectionRestored=function(e){e.isP2P?this.isP2PConnectionInterrupted=!1:this.isJvbConnectionInterrupted=!1,e.isP2P===this.isP2PActive()&&this.eventEmitter.emit(h.CONNECTION_RESTORED)},r.prototype._acceptP2PIncomingCall=function(e,t){this.isP2PConnectionInterrupted=!1,this.p2pJingleSession=e,this.p2pJingleSession.initialize(!1,this.room,this.rtc),j.info("Starting CallStats for P2P connection..."),this.statistics.startCallStats(this.p2pJingleSession.peerconnection,Strophe.getResourceFromJid(this.p2pJingleSession.peerjid));var n=this.getLocalTracks();this.p2pJingleSession.acceptOffer(t,function(){j.debug('Got RESULT for P2P "session-accept"')},function(e){j.error("Failed to accept incoming P2P Jingle session",e)},n)},r.prototype._addRemoteJVBTracks=function(){this._addRemoteTracks("JVB",this.jvbJingleSession.peerconnection.getRemoteTracks())},r.prototype._addRemoteP2PTracks=function(){this._addRemoteTracks("P2P",this.p2pJingleSession.peerconnection.getRemoteTracks())},r.prototype._addRemoteTracks=function(e,t){var n=!0,r=!1,i=void 0;try{for(var o,a=t["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(n=(o=a.next()).done);n=!0){var s=o.value;j.info("Adding remote "+e+" track: "+s),this.rtc.eventEmitter.emit(k.REMOTE_TRACK_ADDED,s)}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}},r.prototype._onIceConnectionEstablished=function(e){null!==this.p2pJingleSession&&(this.p2pEstablishmentDuration=this.p2pJingleSession.establishmentDuration),null!==this.jvbJingleSession&&(this.jvbEstablishmentDuration=this.jvbJingleSession.establishmentDuration);var t=!1,n=this.options.config.forceJVB121Ratio;if(e.isP2P?this.p2pJingleSession!==e?(j.error("CONNECTION_ESTABLISHED - wrong P2P session instance ?!"),t=!0):!e.isInitiator&&"number"==typeof n&&Math.random()<n&&(j.info("Forcing JVB 121 mode (ratio="+n+")..."),A.a.analytics.addPermanentProperties({forceJvb121:!0}),this._stopP2PSession("decline","force JVB121"),t=!0):t=!0,!isNaN(this.p2pEstablishmentDuration)&&!isNaN(this.jvbEstablishmentDuration)){var r=this.p2pEstablishmentDuration-this.jvbEstablishmentDuration;A.a.analytics.sendEvent("ice.establishmentDurationDiff",{value:r})}t||(this._setP2PStatus(!0),this.jvbJingleSession?this._removeRemoteJVBTracks():j.info("Not removing remote JVB tracks - no session yet"),this._addRemoteP2PTracks(),this.jvbJingleSession&&this._suspendMediaTransferForJvbConnection(),j.info("Starting remote stats with p2p connection"),this.statistics.startRemoteStats(this.p2pJingleSession.peerconnection),this.p2pJingleSession.isInitiator&&A.a.sendEventToAll("p2p.established"))},r.prototype._maybeClearDeferredStartP2P=function(){this.deferredStartP2PTask&&(j.info("Cleared deferred start P2P task"),clearTimeout(this.deferredStartP2PTask),this.deferredStartP2PTask=null)},r.prototype._removeRemoteJVBTracks=function(){this._removeRemoteTracks("JVB",this.jvbJingleSession.peerconnection.getRemoteTracks())},r.prototype._removeRemoteP2PTracks=function(){this._removeRemoteTracks("P2P",this.p2pJingleSession.peerconnection.getRemoteTracks())},r.prototype._removeRemoteTracks=function(e,t){var n=!0,r=!1,i=void 0;try{for(var o,a=t["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(n=(o=a.next()).done);n=!0){var s=o.value;j.info("Removing remote "+e+" track: "+s),this.rtc.eventEmitter.emit(k.REMOTE_TRACK_REMOVED,s)}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}},r.prototype._resumeMediaTransferForJvbConnection=function(){j.info("Resuming media transfer over the JVB connection..."),this.jvbJingleSession.setMediaTransferActive(!0,!0).then(function(){j.info("Resumed media transfer over the JVB connection!")},function(e){j.error("Failed to resume media transfer over the JVB connection:",e)})},r.prototype._setP2PStatus=function(e){if(this.p2p===e)return void j.debug("Called _setP2PStatus with the same status: "+e);if(this.p2p=e,e){j.info("Peer to peer connection established!"),A.a.analytics.addPermanentProperties({p2pFailed:!1,forceJvb121:!1});var t=0!==this.rtc.getLastN();this.p2pJingleSession.setMediaTransferActive(!0,t).catch(function(e){j.error("Failed to sync up P2P video transfer status("+t+")",e)})}else j.info("Peer to peer connection closed!");this.jvbJingleSession&&this.statistics.sendConnectionResumeOrHoldEvent(this.jvbJingleSession.peerconnection,!e),this.dtmfManager=null,this.eventEmitter.emit(h.P2P_STATUS,this,this.p2p),this.eventEmitter.emit(this.isConnectionInterrupted()?h.CONNECTION_INTERRUPTED:h.CONNECTION_RESTORED)},r.prototype._startP2PSession=function(e){if(this._maybeClearDeferredStartP2P(),this.p2pJingleSession)return void j.error("P2P session already started!");this.isP2PConnectionInterrupted=!1,this.p2pJingleSession=this.xmpp.connection.jingle.newP2PJingleSession(this.room.myroomjid,e),j.info("Created new P2P JingleSession",this.room.myroomjid,e),this.p2pJingleSession.initialize(!0,this.room,this.rtc),j.info("Starting CallStats for P2P connection..."),this.statistics.startCallStats(this.p2pJingleSession.peerconnection,Strophe.getResourceFromJid(this.p2pJingleSession.peerjid));var t=this.getLocalTracks();this.p2pJingleSession.invite(t)},r.prototype._suspendMediaTransferForJvbConnection=function(){j.info("Suspending media transfer over the JVB connection..."),this.jvbJingleSession.setMediaTransferActive(!1,!1).then(function(){j.info("Suspended media transfer over the JVB connection !")},function(e){j.error("Failed to suspend media transfer over the JVB connection:",e)})},r.prototype._maybeStartOrStopP2P=function(e){if(!R.a.isP2PSupported()||!this.isP2PEnabled()||this.isP2PTestModeEnabled())return void j.info("Auto P2P disabled");var t=this.getParticipants(),n=t.length,r=this.isModerator(),i=1===n;if(j.debug("P2P? isModerator: "+r+", peerCount: "+n+" => "+i),!i&&this.deferredStartP2PTask&&this._maybeClearDeferredStartP2P(),r&&!this.p2pJingleSession&&i){var o=n&&t[0];if(r&&"moderator"===o.getRole()){var a=this.myUserId(),s=o.getId();if(a>s)return void j.debug("Everyone's a moderator - the other peer should start P2P",a,s);if(a===s)return void j.error("The same IDs ? ",a,s)}var c=o.getJid();if(e){if(this.deferredStartP2PTask)return void j.error("Deferred start P2P task's been set already!");j.info("Will start P2P with: "+c+" after "+this.backToP2PDelay+" seconds..."),this.deferredStartP2PTask=setTimeout(this._startP2PSession.bind(this,c),1e3*this.backToP2PDelay)}else j.info("Will start P2P with: "+c),this._startP2PSession(c)}else this.p2pJingleSession&&!i&&(j.info("Will stop P2P with: "+this.p2pJingleSession.peerjid),this.p2pJingleSession.isInitiator&&n>1&&A.a.sendEventToAll("p2p.switch_to_jvb"),this._stopP2PSession())},r.prototype._stopP2PSession=function(e,t){if(!this.p2pJingleSession)return void j.error("No P2P session to be stopped!");var n=this.isP2PActive();n&&(this.jvbJingleSession&&this._resumeMediaTransferForJvbConnection(),this._removeRemoteP2PTracks()),j.info("Stopping remote stats for P2P connection"),this.statistics.stopRemoteStats(this.p2pJingleSession.peerconnection),j.info("Stopping CallStats for P2P connection"),this.statistics.stopCallStats(this.p2pJingleSession.peerconnection),this.p2pJingleSession.terminate(function(){j.info("P2P session terminate RESULT")},function(t){e&&j.error("An error occurred while trying to terminate P2P Jingle session",t)},{reason:e||"success",reasonDescription:t||"Turing off P2P session",sendSessionTerminate:this.room&&this.getParticipantById(Strophe.getResourceFromJid(this.p2pJingleSession.peerjid))}),this.p2pJingleSession=null,this._setP2PStatus(!1),n&&(this.jvbJingleSession?this._addRemoteJVBTracks():j.info("Not adding remote JVB tracks - no session yet"))},r.prototype.isP2PActive=function(){return this.p2p},r.prototype.getP2PConnectionState=function(){return this.isP2PActive()?this.p2pJingleSession.peerconnection.getConnectionState():null},r.prototype.startP2PSession=function(){var e=this.getParticipants();if(1!==e.length)throw new Error("There must be exactly 1 participant to start the P2P session !");var t=e[0].getJid();this._startP2PSession(t)},r.prototype.stopP2PSession=function(){this._stopP2PSession()},r.prototype.getSpeakerStats=function(){return this.speakerStatsCollector.getStats()},r.prototype.setReceiverVideoConstraint=function(e){this.rtc.setReceiverVideoConstraint(e)},r.prototype._getVideoSIPGWHandle=function(){return this.videoSIPGWHandler||(this.videoSIPGWHandler=new N.a(this.room),j.info("Created VideoSIPGW")),this.videoSIPGWHandler},r.prototype.isVideoSIPGWAvailable=function(){return this._getVideoSIPGWHandle().isVideoSIPGWAvailable()},r.prototype.createVideoSIPGWSession=function(e,t){return this.room?this._getVideoSIPGWHandle().createVideoSIPGWSession(e,t):null}}).call(t,"JitsiConference.js")},function(e,t,n){"use strict";(function(e){function r(e){this.conference=e,e.on(l.TRACK_MUTE_CHANGED,function(t){if(t.isLocal()&&e.statistics){var n=t.isP2P?e.p2pJingleSession:e.jvbJingleSession,r=n&&n.peerconnection||null;e.statistics.sendMuteEvent(r,t.isMuted(),t.getType())}}),e.on(l.CONNECTION_INTERRUPTED,h.a.sendEventToAll.bind(h.a,"connection.interrupted")),e.on(l.CONNECTION_RESTORED,h.a.sendEventToAll.bind(h.a,"connection.restored"))}t.a=r;var i=n(54),o=n.n(i),a=n(114),s=n.n(a),c=n(0),u=(n.n(c),n(26)),l=n(5),d=n(4),p=n(8),f=n.n(p),h=n(6),m=n(7),v=n.n(m),y=n.i(c.getLogger)(e);r.prototype.setupChatRoomListeners=function(){var e=this,t=this.conference,n=t.room;this.chatRoomForwarder=new s.a(n,this.conference.eventEmitter),n.addListener(v.a.ICE_RESTARTING,function(e){e.isP2P||t.rtc.closeBridgeChannel()}),n.addListener(v.a.AUDIO_MUTED_BY_FOCUS,function(e){t.rtc.setAudioMute(e).then(function(){t.isMutedByFocus=!0},function(){return y.warn("Error while audio muting due to focus request")})}),this.chatRoomForwarder.forward(v.a.SUBJECT_CHANGED,l.SUBJECT_CHANGED),this.chatRoomForwarder.forward(v.a.MUC_JOINED,l.CONFERENCE_JOINED),n.addListener(v.a.MUC_JOINED,function(){e.conference.isJvbConnectionInterrupted=!1,Object.keys(n.connectionTimes).forEach(function(e){var t=n.connectionTimes[e];h.a.analytics.sendEvent("conference."+e,{value:t})}),Object.keys(n.xmpp.connectionTimes).forEach(function(e){var t=n.xmpp.connectionTimes[e];h.a.analytics.sendEvent("xmpp."+e,{value:t})})}),this.chatRoomForwarder.forward(v.a.ROOM_JOIN_ERROR,l.CONFERENCE_FAILED,u.CONNECTION_ERROR),this.chatRoomForwarder.forward(v.a.ROOM_CONNECT_ERROR,l.CONFERENCE_FAILED,u.CONNECTION_ERROR),this.chatRoomForwarder.forward(v.a.ROOM_CONNECT_NOT_ALLOWED_ERROR,l.CONFERENCE_FAILED,u.NOT_ALLOWED_ERROR),this.chatRoomForwarder.forward(v.a.ROOM_MAX_USERS_ERROR,l.CONFERENCE_FAILED,u.CONFERENCE_MAX_USERS),this.chatRoomForwarder.forward(v.a.PASSWORD_REQUIRED,l.CONFERENCE_FAILED,u.PASSWORD_REQUIRED),this.chatRoomForwarder.forward(v.a.AUTHENTICATION_REQUIRED,l.CONFERENCE_FAILED,u.AUTHENTICATION_REQUIRED),this.chatRoomForwarder.forward(v.a.BRIDGE_DOWN,l.CONFERENCE_FAILED,u.VIDEOBRIDGE_NOT_AVAILABLE),n.addListener(v.a.BRIDGE_DOWN,function(){return h.a.analytics.sendEvent("conference.bridgeDown")}),this.chatRoomForwarder.forward(v.a.RESERVATION_ERROR,l.CONFERENCE_FAILED,u.RESERVATION_ERROR),this.chatRoomForwarder.forward(v.a.GRACEFUL_SHUTDOWN,l.CONFERENCE_FAILED,u.GRACEFUL_SHUTDOWN),n.addListener(v.a.JINGLE_FATAL_ERROR,function(e,n){e.isP2P||t.eventEmitter.emit(l.CONFERENCE_FAILED,u.JINGLE_FATAL_ERROR,n)}),n.addListener(v.a.CONNECTION_ICE_FAILED,function(e){t._onIceConnectionFailed(e)}),this.chatRoomForwarder.forward(v.a.MUC_DESTROYED,l.CONFERENCE_FAILED,u.CONFERENCE_DESTROYED),this.chatRoomForwarder.forward(v.a.CHAT_ERROR_RECEIVED,l.CONFERENCE_ERROR,u.CHAT_ERROR),this.chatRoomForwarder.forward(v.a.FOCUS_DISCONNECTED,l.CONFERENCE_FAILED,u.FOCUS_DISCONNECTED),n.addListener(v.a.FOCUS_LEFT,function(){h.a.analytics.sendEvent("conference.focusLeft"),t.eventEmitter.emit(l.CONFERENCE_FAILED,u.FOCUS_LEFT)});var r=function(e){return h.a.sendEventToAll("conference.error."+e)};n.addListener(v.a.SESSION_ACCEPT_TIMEOUT,function(e){r(e.isP2P?"p2pSessionAcceptTimeout":"sessionAcceptTimeout")}),
this.chatRoomForwarder.forward(v.a.RECORDER_STATE_CHANGED,l.RECORDER_STATE_CHANGED),this.chatRoomForwarder.forward(v.a.VIDEO_SIP_GW_AVAILABILITY_CHANGED,l.VIDEO_SIP_GW_AVAILABILITY_CHANGED),this.chatRoomForwarder.forward(v.a.PHONE_NUMBER_CHANGED,l.PHONE_NUMBER_CHANGED),n.addListener(v.a.CONFERENCE_SETUP_FAILED,function(e,n){e.isP2P||t.eventEmitter.emit(l.CONFERENCE_FAILED,u.SETUP_FAILED,n)}),n.setParticipantPropertyListener(function(e,n){var r=t.getParticipantById(n);r&&r.setProperty(e.tagName.substring("jitsi_participant_".length),e.value)}),this.chatRoomForwarder.forward(v.a.KICKED,l.KICKED),n.addListener(v.a.KICKED,function(){t.room=null,t.leave()}),n.addListener(v.a.SUSPEND_DETECTED,t.onSuspendDetected.bind(t)),this.chatRoomForwarder.forward(v.a.MUC_LOCK_CHANGED,l.LOCK_STATE_CHANGED),n.addListener(v.a.MUC_MEMBER_JOINED,t.onMemberJoined.bind(t)),n.addListener(v.a.MUC_MEMBER_LEFT,t.onMemberLeft.bind(t)),this.chatRoomForwarder.forward(v.a.MUC_LEFT,l.CONFERENCE_LEFT),n.addListener(v.a.DISPLAY_NAME_CHANGED,t.onDisplayNameChanged.bind(t)),n.addListener(v.a.LOCAL_ROLE_CHANGED,function(e){t.onLocalRoleChanged(e),t.statistics&&t.isModerator()&&t.on(l.RECORDER_STATE_CHANGED,function(e,t){var n={id:"recorder_status",status:e};t&&(n.error=t),h.a.sendLog(JSON.stringify(n))})}),n.addListener(v.a.MUC_ROLE_CHANGED,t.onUserRoleChanged.bind(t)),n.addListener(o.a.IDENTITY_UPDATED,function(e,n){t.authEnabled=e,t.authIdentity=n,t.eventEmitter.emit(l.AUTH_STATUS_CHANGED,e,n)}),n.addListener(v.a.MESSAGE_RECEIVED,function(e,n,r,i,o){var a=Strophe.getResourceFromJid(e);t.eventEmitter.emit(l.MESSAGE_RECEIVED,a,r,o)}),n.addListener(v.a.PRESENCE_STATUS,function(e,n){var r=Strophe.getResourceFromJid(e),i=t.getParticipantById(r);i&&i._status!==n&&(i._status=n,t.eventEmitter.emit(l.USER_STATUS_CHANGED,r,n))}),n.addPresenceListener("startmuted",function(e,n){var r=!1;if(t.myUserId()===n&&t.isModerator())r=!0;else{var i=t.getParticipantById(n);i&&i.isModerator()&&(r=!0)}if(r){var o="true"===e.attributes.audio,a="true"===e.attributes.video,s=!1;o!==t.startMutedPolicy.audio&&(t.startMutedPolicy.audio=o,s=!0),a!==t.startMutedPolicy.video&&(t.startMutedPolicy.video=a,s=!0),s&&t.eventEmitter.emit(l.START_MUTED_POLICY_CHANGED,t.startMutedPolicy)}}),n.addPresenceListener("devices",function(e,n){var r=!1,i=!1;e.children.forEach(function(e){"audio"===e.tagName&&(r="true"===e.value),"video"===e.tagName&&(i="true"===e.value)});var o=void 0;if(t.myUserId()===n)o=t.availableDevices;else{var a=t.getParticipantById(n);if(!a)return;o=a._availableDevices}var s=!1;o.audio!==r&&(s=!0,o.audio=r),o.video!==i&&(s=!0,o.video=i),s&&t.eventEmitter.emit(l.AVAILABLE_DEVICES_CHANGED,n,o)}),t.statistics&&(n.addListener(v.a.CONNECTION_ICE_FAILED,function(e){t.statistics.sendIceConnectionFailedEvent(e.peerconnection)}),n.addListener(v.a.ADD_ICE_CANDIDATE_FAILED,function(e,n){t.statistics.sendAddIceCandidateFailed(e,n)}))},r.prototype.setupRTCListeners=function(){var e=this.conference,t=e.rtc;t.addListener(f.a.REMOTE_TRACK_ADDED,e.onRemoteTrackAdded.bind(e)),t.addListener(f.a.REMOTE_TRACK_REMOVED,e.onRemoteTrackRemoved.bind(e)),t.addListener(f.a.DOMINANT_SPEAKER_CHANGED,function(t){e.lastDominantSpeaker!==t&&e.room&&(e.lastDominantSpeaker=t,e.eventEmitter.emit(l.DOMINANT_SPEAKER_CHANGED,t)),e.statistics&&e.myUserId()===t&&e.statistics.sendDominantSpeakerEvent()}),t.addListener(f.a.DATA_CHANNEL_OPEN,function(){var t=window.performance.now();y.log("(TIME) data channel opened ",t),e.room.connectionTimes["data.channel.opened"]=t,h.a.analytics.sendEvent("conference.dataChannel.open",{value:t}),e.eventEmitter.emit(l.DATA_CHANNEL_OPENED)}),t.addListener(f.a.AVAILABLE_DEVICES_CHANGED,function(t){return e.room.updateDeviceAvailability(t)}),t.addListener(f.a.ENDPOINT_MESSAGE_RECEIVED,function(t,n){var r=e.getParticipantById(t);r?e.eventEmitter.emit(l.ENDPOINT_MESSAGE_RECEIVED,r,n):y.warn("Ignored ENDPOINT_MESSAGE_RECEIVED for not existing participant: "+t,n)}),t.addListener(f.a.LOCAL_UFRAG_CHANGED,function(e,t){e.isP2P||h.a.sendLog(JSON.stringify({id:"local_ufrag",value:t}))}),t.addListener(f.a.REMOTE_UFRAG_CHANGED,function(e,t){e.isP2P||h.a.sendLog(JSON.stringify({id:"remote_ufrag",value:t}))}),e.statistics&&(t.addListener(f.a.CREATE_ANSWER_FAILED,function(t,n){e.statistics.sendCreateAnswerFailed(t,n)}),t.addListener(f.a.CREATE_OFFER_FAILED,function(t,n){e.statistics.sendCreateOfferFailed(t,n)}),t.addListener(f.a.SET_LOCAL_DESCRIPTION_FAILED,function(t,n){e.statistics.sendSetLocalDescFailed(t,n)}),t.addListener(f.a.SET_REMOTE_DESCRIPTION_FAILED,function(t,n){e.statistics.sendSetRemoteDescFailed(t,n)}))},r.prototype.setupXMPPListeners=function(){var e=this.conference;e.xmpp.caps.addListener(v.a.PARTCIPANT_FEATURES_CHANGED,function(t){var n=e.getParticipantId(Strophe.getResourceFromJid(t));n&&e.eventEmitter.emit(l.PARTCIPANT_FEATURES_CHANGED,n)}),e.xmpp.addListener(v.a.CALL_INCOMING,e.onIncomingCall.bind(e)),e.xmpp.addListener(v.a.CALL_ACCEPTED,e.onCallAccepted.bind(e)),e.xmpp.addListener(v.a.TRANSPORT_INFO,e.onTransportInfo.bind(e)),e.xmpp.addListener(v.a.CALL_ENDED,e.onCallEnded.bind(e)),e.xmpp.addListener(v.a.START_MUTED_FROM_FOCUS,function(t,n){e.options.config.ignoreStartMuted||(e.startAudioMuted=t,e.startVideoMuted=n,e.getLocalTracks().forEach(function(t){switch(t.getType()){case d.a:e.startAudioMuted&&t.mute();break;case d.b:e.startVideoMuted&&t.mute()}}),e.eventEmitter.emit(l.STARTED_MUTED))})},r.prototype.setupStatisticsListeners=function(){var e=this.conference;e.statistics&&(e.statistics.addAudioLevelListener(function(t,n,r,i){e.rtc.setAudioLevel(t,n,r,i)}),e.statistics.addBeforeDisposedListener(function(){e.eventEmitter.emit(l.BEFORE_STATISTICS_DISPOSED)}),e.statistics.addByteSentStatsListener(function(t,n){e.getLocalTracks(d.a).forEach(function(e){var r=t.getLocalSSRC(e);r&&n.hasOwnProperty(r)&&e._setByteSent(t,n[r])})}))}}).call(t,"JitsiConferenceEventManager.js")},function(e,t,n){"use strict";function r(e,t,n){this.appID=e,this.token=t,this.options=n,this.xmpp=new s.a(n,t),this.addEventListener(o.CONNECTION_FAILED,function(e,t){a.a.sendEventToAll("connection.failed."+e,{label:t})}),this.addEventListener(o.CONNECTION_DISCONNECTED,function(e){e&&a.a.analytics.sendEvent("connection.disconnected."+e),a.a.sendLog(JSON.stringify({id:"connection.disconnected",msg:e}))})}t.a=r;var i=n(80),o=n(27),a=n(6),s=n(135);r.prototype.connect=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.xmpp.connect(e.id,e.password)},r.prototype.attach=function(e){this.xmpp.attach(e)},r.prototype.disconnect=function(){var e;(e=this.xmpp).disconnect.apply(e,arguments)},r.prototype.setToken=function(e){this.token=e},r.prototype.initJitsiConference=function(e,t){return new i.a({name:e,config:t,connection:this})},r.prototype.addEventListener=function(e,t){this.xmpp.addListener(e,t)},r.prototype.removeEventListener=function(e,t){this.xmpp.removeListener(e,t)},r.prototype.getConnectionTimes=function(){return this.xmpp.connectionTimes},r.prototype.addFeature=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.xmpp.caps.addFeature(e,t)},r.prototype.removeFeature=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.xmpp.caps.removeFeature(e,t)}},function(e,t,n){"use strict";function r(e,t){var n=t.find(function(t){return"audiooutput"===t.kind&&t.deviceId===e});n&&p.a.sendActiveDeviceListEvent(c.a.getEventDataForActiveDevice(n))}var i=n(14),o=n.n(i),a=n(44),s=n(4),c=n(22),u=n(1),l=n(8),d=n.n(l),p=n(6),f=new o.a,h={enumerateDevices:function(e){c.a.enumerateDevices(e)},isDeviceListAvailable:function(){return c.a.isDeviceListAvailable()},isDeviceChangeAvailable:function(e){return c.a.isDeviceChangeAvailable(e)},isDevicePermissionGranted:function(e){var t=c.a.getDeviceAvailability();switch(e){case s.b:return!0===t.video;case s.a:return!0===t.audio;default:return!0===t.video&&!0===t.audio}},isMultipleAudioInputSupported:function(){return!u.a.isFirefox()},getAudioOutputDevice:function(){return c.a.getAudioOutputDevice()},setAudioOutputDevice:function(e){var t=c.a.getCurrentlyAvailableMediaDevices();return t&&t.length>0&&r(e,c.a.getCurrentlyAvailableMediaDevices()),c.a.setAudioOutputDevice(e)},addEventListener:function(e,t){f.addListener(e,t)},removeEventListener:function(e,t){f.removeListener(e,t)},emitEvent:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];f.emit.apply(f,[e].concat(n))}};c.a.addListener(d.a.DEVICE_LIST_CHANGED,function(e){return f.emit(a.DEVICE_LIST_CHANGED,e)}),c.a.addListener(d.a.DEVICE_LIST_AVAILABLE,function(e){return r(h.getAudioOutputDevice(),e)}),t.a=h},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(5),o=n(28),a=n(4),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(){function e(t,n,i,a){r(this,e),this._jid=t,this._id=Strophe.getResourceFromJid(t),this._conference=n,this._displayName=i,this._supportsDTMF=!1,this._tracks=[],this._role="none",this._status=null,this._availableDevices={audio:void 0,video:void 0},this._hidden=a,this._connectionStatus=o.a.ACTIVE,this._properties={}}return s(e,[{key:"getConference",value:function(){return this._conference}},{key:"getProperty",value:function(e){return this._properties[e]}},{key:"hasAnyVideoTrackWebRTCMuted",value:function(){return this.getTracks().some(function(e){return e.getType()===a.b&&e.isWebRTCTrackMuted()})}},{key:"_setConnectionStatus",value:function(e){this._connectionStatus=e}},{key:"getConnectionStatus",value:function(){return this._connectionStatus}},{key:"setProperty",value:function(e,t){var n=this._properties[e];t!==n&&(this._properties[e]=t,this._conference.eventEmitter.emit(i.PARTICIPANT_PROPERTY_CHANGED,this,e,n,t))}},{key:"getTracks",value:function(){return this._tracks.slice()}},{key:"getTracksByMediaType",value:function(e){return this.getTracks().filter(function(t){return t.getType()===e})}},{key:"getId",value:function(){return this._id}},{key:"getJid",value:function(){return this._jid}},{key:"getDisplayName",value:function(){return this._displayName}},{key:"getStatus",value:function(){return this._status}},{key:"isModerator",value:function(){return"moderator"===this._role}},{key:"isHidden",value:function(){return this._hidden}},{key:"isAudioMuted",value:function(){return this._isMediaTypeMuted(a.a)}},{key:"_isMediaTypeMuted",value:function(e){return this.getTracks().reduce(function(t,n){return t&&(n.getType()!==e||n.isMuted())},!0)}},{key:"isVideoMuted",value:function(){return this._isMediaTypeMuted(a.b)}},{key:"getRole",value:function(){return this._role}},{key:"supportsDTMF",value:function(){return this._supportsDTMF}},{key:"getFeatures",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5e3;return this._conference.xmpp.caps.getFeatures(this._jid,e)}}]),e}();t.a=c},function(e,t,n){e.exports=n(68).default},function(e,t,n){(function(e){function t(e,t){var n=e.getTrack();if(!n)throw new Error("Failed to initialize DTMFSender: no audio track.");this.dtmfSender=t.peerconnection.createDTMFSender(n),r.debug("Initialized DTMFSender")}var r=n(0).getLogger(e);t.prototype.sendTones=function(e,t,n){this.dtmfSender.insertDTMF(e,t||200,n||200)}}).call(t,"modules/DTMF/JitsiDTMFManager.js")},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(5),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(){function e(t){r(this,e),this.conference=t,t.addEventListener(i.TRACK_AUDIO_LEVEL_CHANGED,this._audioLevel.bind(this)),this.myUserID=this.conference.myUserId()}return o(e,[{key:"_audioLevel",value:function(e,t){!this.conference.isP2PActive()||t<=.6||e===this.myUserID&&this.conference.getLocalAudioTrack().isMuted()||this.conference.eventEmitter.emit(i.DOMINANT_SPEAKER_CHANGED,e)}}]),e}();t.a=a},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(0),o=(n.n(i),n(8)),a=n.n(o),s=n(3),c=n.n(s),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n.i(i.getLogger)(e),d=function(){function e(t,n,i){var o=this;if(r(this,e),!t&&!n)throw new TypeError("At least peerconnection or wsUrl must be given");if(t&&n)throw new TypeError("Just one of peerconnection or wsUrl must be given");if(t?l.debug("constructor() with peerconnection"):l.debug('constructor() with wsUrl:"'+n+'"'),this._channel=null,this._eventEmitter=i,this._mode=null,t)t.ondatachannel=function(e){var t=e.channel;o._handleChannel(t),o._mode="datachannel"};else if(n){var a=new WebSocket(n);this._handleChannel(a),this._mode="websocket"}}return u(e,[{key:"close",value:function(){if(this._channel){try{this._channel.close()}catch(e){}this._channel=null}}},{key:"isOpen",value:function(){return this._channel&&("open"===this._channel.readyState||this._channel.readyState===WebSocket.OPEN)}},{key:"sendMessage",value:function(e,t){this._send({colibriClass:"EndpointMessage",msgPayload:t,to:e})}},{key:"sendSetLastNMessage",value:function(e){var t={colibriClass:"LastNChangedEvent",lastN:e};this._send(t),l.log("Channel lastN set to: "+e)}},{key:"sendPinnedEndpointMessage",value:function(e){l.log("sending pinned changed notification to the bridge for endpoint ",e),this._send({colibriClass:"PinnedEndpointChangedEvent",pinnedEndpoint:e||null})}},{key:"sendSelectedEndpointMessage",value:function(e){l.log("sending selected changed notification to the bridge for endpoint ",e),this._send({colibriClass:"SelectedEndpointChangedEvent",selectedEndpoint:e||null})}},{key:"sendReceiverVideoConstraintMessage",value:function(e){l.log("sending a ReceiverVideoConstraint message with a maxFrameHeight of "+e+" pixels"),this._send({colibriClass:"ReceiverVideoConstraint",maxFrameHeight:e})}},{key:"_handleChannel",value:function(e){var t=this,n=this._eventEmitter;e.onopen=function(){l.info(t._mode+" channel opened"),n.emit(a.a.DATA_CHANNEL_OPEN)},e.onerror=function(e){l.error("Channel error:",e)},e.onmessage=function(e){var t=e.data,r=void 0;try{r=JSON.parse(t)}catch(e){return c.a.callErrorHandler(e),void l.error("Failed to parse channel message as JSON: ",t,e)}var i=r.colibriClass;switch(i){case"DominantSpeakerEndpointChangeEvent":var o=r.dominantSpeakerEndpoint;l.info("Channel new dominant speaker event: ",o),n.emit(a.a.DOMINANT_SPEAKER_CHANGED,o);break;case"EndpointConnectivityStatusChangeEvent":var s=r.endpoint,u="true"===r.active;l.info("Endpoint connection status changed: "+s+" active ? "+u),n.emit(a.a.ENDPOINT_CONN_STATUS_CHANGED,s,u);break;case"EndpointMessage":n.emit(a.a.ENDPOINT_MESSAGE_RECEIVED,r.from,r.msgPayload);break;case"LastNEndpointsChangeEvent":var d=r.lastNEndpoints;l.info("Channel new last-n event: ",d,r),n.emit(a.a.LASTN_ENDPOINT_CHANGED,d,r);break;default:l.debug("Channel JSON-formatted message: ",r),n.emit("rtc.datachannel."+i,r)}},e.onclose=function(){l.info("Channel closed"),t._channel=null},this._channel=e}},{key:"_send",value:function(e){var t=this._channel;if(!this.isOpen())throw new Error("No opened channel");t.send(JSON.stringify(e))}},{key:"mode",get:function(){return this._mode}}]),e}();t.a=d}).call(t,"modules/RTC/BridgeChannel.js")},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(52),s=n.n(a),c=n(0),u=(n.n(c),n(46)),l=n(11),d=n(15),p=n(16),f=n(4),h=n(1),m=n(8),v=n.n(m),y=n(23),g=n(6),b=n(17),S=n.n(b),E=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),T=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},_=n.i(c.getLogger)(e),C=function(e){function t(e){var n=e.deviceId,o=e.facingMode,a=e.mediaType,s=e.resolution,c=e.rtcId,u=e.sourceId,l=e.sourceType,d=e.stream,f=e.track,m=e.videoType;r(this,t);var g=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,null,d,f,function(){return g.emit(p.LOCAL_TRACK_STOPPED)},a,m));return g.rtcId=c,g.sourceId=u,g.sourceType=l,g.resolution=h.a.isFirefox()?null:s,g.deviceId=n,g._prevSetMuted=Promise.resolve(),g._facingMode=o,g._trackEnded=!1,g._bytesSent=null,g._testByteSent=!0,g._realDeviceId=""===g.deviceId?void 0:g.deviceId,g._noDataFromSourceTimeout=null,g._onDeviceListChanged=function(e){g._setRealDeviceIdFromDeviceList(e),void 0!==g.getTrack().readyState||void 0===g._realDeviceId||e.find(function(e){return e.deviceId===g._realDeviceId})||(g._trackEnded=!0)},g.isAudioTrack()&&y.a.isDeviceChangeAvailable("output")&&(g._onAudioOutputDeviceChanged=g.setAudioOutput.bind(g),y.a.addListener(v.a.AUDIO_OUTPUT_DEVICE_CHANGED,g._onAudioOutputDeviceChanged)),y.a.addListener(v.a.DEVICE_LIST_CHANGED,g._onDeviceListChanged),g._initNoDataFromSourceHandlers(),g}return o(t,e),E(t,[{key:"isEnded",value:function(){return"ended"===this.getTrack().readyState||this._trackEnded}},{key:"_initNoDataFromSourceHandlers",value:function(){var e=this;if(this.isVideoTrack()&&this.videoType===S.a.CAMERA){var t=this._onNoDataFromSourceError.bind(this);this._setHandler("track_mute",function(){if(e._checkForCameraIssues()){var n=window.performance.now();e._noDataFromSourceTimeout=setTimeout(t,3e3),e._setHandler("track_unmute",function(){e._clearNoDataFromSourceMuteResources(),g.a.sendEventToAll(e.getType()+".track_unmute",{value:window.performance.now()-n})})}}),this._setHandler("track_ended",t)}}},{key:"_clearNoDataFromSourceMuteResources",value:function(){this._noDataFromSourceTimeout&&(clearTimeout(this._noDataFromSourceTimeout),this._noDataFromSourceTimeout=null),this._setHandler("track_unmute",void 0)}},{key:"_onNoDataFromSourceError",value:function(){this._clearNoDataFromSourceMuteResources(),this._checkForCameraIssues()&&this._fireNoDataFromSourceEvent()}},{key:"_fireNoDataFromSourceEvent",value:function(){this.emit(p.NO_DATA_FROM_SOURCE);var e=this.getType()+".no_data_from_source";g.a.analytics.sendEvent(e);var t={name:e};this.isAudioTrack()&&(t.isReceivingData=this._isReceivingData()),g.a.sendLog(JSON.stringify(t))}},{key:"_setRealDeviceIdFromDeviceList",value:function(e){var t=this.getTrack(),n=e.find(function(e){return e.kind===t.kind+"input"&&e.label===t.label});n&&(this._realDeviceId=n.deviceId)}},{key:"_setStream",value:function(e){T(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setStream",this).call(this,e),e?(this.storedMSID=this.getMSID(),_.debug("Setting new MSID: "+this.storedMSID+" on "+this)):_.debug("Setting 'null' stream on "+this)}},{key:"mute",value:function(){return this._queueSetMuted(!0)}},{key:"unmute",value:function(){return this._queueSetMuted(!1)}},{key:"_queueSetMuted",value:function(e){var t=this._setMuted.bind(this,e);return this._prevSetMuted=this._prevSetMuted.then(t,t),this._prevSetMuted}},{key:"_setMuted",value:function(e){var t=this;if(this.isMuted()===e)return Promise.resolve();var n=Promise.resolve();this.setMutedInProgress=!0;var r=function(){return _.info("Mute "+t+": "+e)};if(this.isAudioTrack()||this.videoType===S.a.DESKTOP||!h.a.doesVideoMuteByStreamRemove())r(),this.track&&(this.track.enabled=!e);else if(e)n=new Promise(function(e,n){r(),t._removeStreamFromConferenceAsMute(function(){t._unregisterHandlers(),t._stopStream(),t._setStream(null),e()},n)});else{r();var i={cameraDeviceId:this.getDeviceId(),devices:[f.b],facingMode:this.getCameraFacingMode()};this.resolution&&(i.resolution=this.resolution),n=y.a.obtainAudioAndVideoPermissions(i).then(function(e){var n=t.getType(),r=e.find(function(e){return e.mediaType===n});if(!r)throw new l.a(d.TRACK_NO_STREAM_FOUND);return t._setStream(r.stream),t.track=r.track,t.videoType!==r.videoType&&(_.warn(t+": video type has changed after unmute!",t.videoType,r.videoType),t.videoType=r.videoType),t.containers=t.containers.map(function(e){return y.a.attachMediaStream(e,t.stream)}),t._addStreamToConferenceAsUnmute()})}return n.then(function(){return t._sendMuteStatus(e)}).then(function(){t.setMutedInProgress=!1},function(e){throw t.setMutedInProgress=!1,e}).then(function(){return t.emit(p.TRACK_MUTE_CHANGED,t)})}},{key:"_addStreamToConferenceAsUnmute",value:function(){var e=this;return this.conference?new Promise(function(t,n){e.conference._addLocalTrackAsUnmute(e).then(t,function(e){return n(new Error(e))})}):Promise.resolve()}},{key:"_removeStreamFromConferenceAsMute",value:function(e,t){if(!this.conference)return void e();this.conference._removeLocalTrackAsMute(this).then(e,function(e){return t(new Error(e))})}},{key:"_sendMuteStatus",value:function(e){var t=this;return this.conference&&this.conference.room?new Promise(function(n){t.conference.room[t.isAudioTrack()?"setAudioMute":"setVideoMute"](e,n)}):Promise.resolve()}},{key:"dispose",value:function(){var e=this,n=Promise.resolve();return this.conference&&(n=this.conference.removeTrack(this)),this.stream&&(this._stopStream(),this.detach()),y.a.removeListener(v.a.DEVICE_LIST_CHANGED,this._onDeviceListChanged),this._onAudioOutputDeviceChanged&&y.a.removeListener(v.a.AUDIO_OUTPUT_DEVICE_CHANGED,this._onAudioOutputDeviceChanged),n.then(function(){return T(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",e).call(e)})}},{key:"isMuted",value:function(){return!(this.stream&&(!this.isVideoTrack()||this.isActive())&&this.track&&this.track.enabled)}},{key:"_setConference",value:function(e){this.conference=e;for(var t=0;t<this.containers.length;t++)this._maybeFireTrackAttached(this.containers[t])}},{key:"isLocal",value:function(){return!0}},{key:"getDeviceId",value:function(){return this._realDeviceId||this.deviceId}},{key:"getParticipantId",value:function(){return this.conference&&this.conference.myUserId()}},{key:"_setByteSent",value:function(e,t){var n=this;this._bytesSent=t;var r=e.getConnectionState();this._testByteSent&&"connected"===r&&(setTimeout(function(){n._bytesSent<=0&&(_.warn(n+" 'bytes sent' <= 0: "+n._bytesSent),n._fireNoDataFromSourceEvent())},3e3),this._testByteSent=!1)}},{key:"getCameraFacingMode",value:function(){if(this.isVideoTrack()&&this.videoType===S.a.CAMERA){var e=void 0;try{e=this.track.getSettings()}catch(e){}return e&&"facingMode"in e?e.facingMode:void 0!==this._facingMode?this._facingMode:s.a.USER}}},{key:"_stopStream",value:function(){this._stopStreamInProgress=!0;try{y.a.stopMediaStream(this.stream)}finally{this._stopStreamInProgress=!1}}},{key:"_switchCamera",value:function(){this.isVideoTrack()&&this.videoType===S.a.CAMERA&&"function"==typeof this.track._switchCamera&&(this.track._switchCamera(),this._facingMode=this._facingMode===s.a.ENVIRONMENT?s.a.USER:s.a.ENVIRONMENT)}},{key:"_checkForCameraIssues",value:function(){return!(!this.isVideoTrack()||this._stopStreamInProgress||this.videoType===S.a.DESKTOP||this._isReceivingData())}},{key:"_isReceivingData",value:function(){return!!this.stream&&this.stream.getTracks().some(function(e){return!("readyState"in e&&"live"!==e.readyState||"muted"in e&&!0===e.muted)})}},{key:"toString",value:function(){return"LocalTrack["+this.rtcId+","+this.getType()+"]"}}]),t}(u.a);t.a=C}).call(t,"modules/RTC/JitsiLocalTrack.js")},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(46),s=n(16),c=n(1),u=n(6),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=n(0).getLogger(e),p=n(8),f=!1,h=!1,m=function(e){function t(e,n,o,a,s,c,u,l,d,p){r(this,t);var f=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,a,s,function(){},c,u));if(f.rtc=e,"number"!=typeof l)throw new TypeError("SSRC "+l+" is not a number");return f.ssrc=l,f.ownerEndpointId=o,f.muted=d,f.isP2P=p,f.hasBeenMuted=d,f.rtc&&f.track&&f._bindMuteHandlers(),f}return o(t,e),l(t,[{key:"_bindMuteHandlers",value:function(){var e=this;this.track.addEventListener?(this.track.addEventListener("mute",function(){return e._onTrackMute()}),this.track.addEventListener("unmute",function(){return e._onTrackUnmute()})):this.track.attachEvent&&(this.track.attachEvent("onmute",function(){return e._onTrackMute()}),this.track.attachEvent("onunmute",function(){return e._onTrackUnmute()}))}},{key:"_onTrackMute",value:function(){d.debug('"onmute" event('+Date.now()+"): ",this.getParticipantId(),this.getType(),this.getSSRC()),this.rtc.eventEmitter.emit(p.REMOTE_TRACK_MUTE,this)}},{key:"_onTrackUnmute",value:function(){d.debug('"onunmute" event('+Date.now()+"): ",this.getParticipantId(),this.getType(),this.getSSRC()),this.rtc.eventEmitter.emit(p.REMOTE_TRACK_UNMUTE,this)}},{key:"setMute",value:function(e){this.muted!==e&&(e&&(this.hasBeenMuted=!0),this.stream&&(this.stream.muted=e),this.muted=e,this.emit(s.TRACK_MUTE_CHANGED,this))}},{key:"isMuted",value:function(){return this.muted}},{key:"getParticipantId",value:function(){return this.ownerEndpointId}},{key:"isLocal",value:function(){return!1}},{key:"getSSRC",value:function(){return this.ssrc}},{key:"_setVideoType",value:function(e){this.videoType!==e&&(this.videoType=e,this.emit(s.TRACK_VIDEOTYPE_CHANGED,e))}},{key:"_playCallback",value:function(){var e=this.isVideoTrack()?"video":"audio",t=window.performance.now();console.log("(TIME) Render "+e+":\t",t),this.conference.getConnectionTimes()[e+".render"]=t;var n=window.connectionTimes["obtainPermissions.start"],r=window.connectionTimes["obtainPermissions.end"],i=isNaN(r)||isNaN(n)?0:r-n,o=t-(this.conference.getConnectionTimes()["session.initiate"]-this.conference.getConnectionTimes()["muc.joined"])-i;this.conference.getConnectionTimes()[e+".ttfm"]=o,console.log("(TIME) TTFM "+e+":\t",o);var a=e+".ttfm";this.hasBeenMuted&&(a+=".muted"),u.a.analytics.sendEvent(a,{value:o})}},{key:"_attachTTFMTracker",value:function(e){if(!(f&&this.isAudioTrack()||h&&this.isVideoTrack()))if(this.isAudioTrack()&&(f=!0),this.isVideoTrack()&&(h=!0),c.a.isTemasysPluginUsed()){var t=n(33);t.addEvent(e,"play",this._playCallback.bind(this))}else e.addEventListener("canplay",this._playCallback.bind(this))}},{key:"toString",value:function(){return"RemoteTrack["+this.ownerEndpointId+", "+this.getType()+", p2p: "+this.isP2P+"]"}}]),t}(a.a);t.a=m}).call(t,"modules/RTC/JitsiRemoteTrack.js")},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(0),o=(n.n(i),n(4)),a=n(24),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=n.i(i.getLogger)(e),u=function(){function e(t){r(this,e),this.tpc=t}return s(e,[{key:"_addMutedLocalVideoTracksToSDP",value:function(e){var t=this.tpc.getLocalTracks(o.b);if(!t.length)return!1;1!==t.length&&c.error(this.tpc+" there is more than 1 video track ! Strange things may happen !",t);var n=e.selectMedia("video");if(!n)return c.error(this.tpc+' unable to hack local video track SDP- no "video" media'),!1;var r=!1,i=!0,a=!1,s=void 0;try{for(var u,l=t["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(i=(u=l.next()).done);i=!0){var d=u.value,p=d.isMuted(),f=d.setMutedInProgress,h=p||f;if(c.debug(this.tpc+" "+d+" muted: "+p+", is mute/unmute in progress: "+f+" => should fake sdp ? : "+h),h){var m=this.tpc.isSimulcastOn()?this.tpc.simulcast.ssrcCache:[this.tpc.sdpConsistency.cachedPrimarySsrc];if(m.length){r=!0,n.direction="sendrecv";var v=m[0],y="injected-"+v,g=!0,b=!1,S=void 0;try{for(var E,T=m["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(g=(E=T.next()).done);g=!0){var _=E.value;n.removeSSRC(_),c.debug(this.tpc+" injecting video SSRC: "+_+" for "+d),n.addSSRCAttribute({id:_,attribute:"cname",value:y}),n.addSSRCAttribute({id:_,attribute:"msid",value:d.storedMSID})}}catch(e){b=!0,S=e}finally{try{!g&&T.return&&T.return()}finally{if(b)throw S}}if(m.length>1){var C={ssrcs:m.join(" "),semantics:"SIM"};n.findGroup(C.semantics,C.ssrcs)||(c.debug(this.tpc+" injecting SIM group for "+d,C),n.addSSRCGroup(C))}this.tpc.options.disableRtx||this.tpc.rtxModifier.modifyRtxSsrcs2(n)}else c.error("No SSRCs stored for: "+d+" in "+this.tpc)}}}catch(e){a=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(a)throw s}}return r}},{key:"maybeMungeLocalSdp",value:function(e){if(e&&e.sdp){var t=new a.a(e.sdp);this._addMutedLocalVideoTracksToSDP(t)&&(e.sdp=t.toRawSDP())}}}]),e}();t.a=u}).call(t,"modules/RTC/LocalSdpMunger.js")},function(e,t,n){"use strict";(function(e){var r=n(1),i=n(0).getLogger(e),o={getVideoElementName:function(){return r.a.isTemasysPluginUsed()?"object":"video"},findVideoElement:function(e){var t=o.getVideoElementName();if(!r.a.isTemasysPluginUsed())return $(e).find(t)[0];var n=$(e).find(" "+t+'>param[value="video"]');return n.length?(n.length>1&&i.warn("Container with more than one video elements: ",e),n.parent()[0]):void 0},isResizeEventSupported:function(){return!r.a.isTemasysPluginUsed()},setVolume:function(e,t){r.a.isIExplorer()||(e.volume=t)},setAutoPlay:function(e,t){r.a.isIExplorer()||(e.autoplay=t)}};t.a=o}).call(t,"modules/RTC/RTCUIHelper.js")},function(e,t,n){"use strict";(function(e){function r(e,t,n){T(["screen"],function(e){return t({stream:e})},n)}function i(e){return"https://chrome.google.com/webstore/detail/"+e.desktopSharingChromeExtId}function o(e,t){try{for(var n=e.split("."),r=t.split("."),i=Math.max(n.length,r.length),o=0;o<i;o++){var a=0,s=0;if(o<n.length&&(a=parseInt(n[o],10)),o<r.length&&(s=parseInt(r[o],10)),isNaN(a)||isNaN(s))return!0;if(a!==s)return a>s}return!1}catch(e){return y.callErrorHandler(e),v.error("Failed to parse extension version",e),!0}}function a(e,t){if("undefined"==typeof chrome||!chrome||!chrome.runtime)return void e(!1,!1);chrome.runtime.sendMessage(t.desktopSharingChromeExtId,{getVersion:!0},function(n){if(!n||!n.version)return v.warn("Extension not installed?: ",chrome.runtime.lastError),void e(!1,!1);var r=n.version
;v.log("Extension version is: "+r);var i=o(t.desktopSharingChromeMinExtVersion,r);e(!i,i)})}function s(e,t,n){chrome.runtime.sendMessage(e.desktopSharingChromeExtId,{getStream:!0,sources:e.desktopSharingChromeSources},function(e){if(!e){var r=chrome.runtime.lastError;return void n(r instanceof Error?r:new f.a(h.CHROME_EXTENSION_GENERIC_ERROR,r))}v.log("Response from extension: ",e),d(e,t,n)})}function c(e){0===$("link[rel=chrome-webstore-item]").length&&$("head").append('<link rel="chrome-webstore-item">'),$("link[rel=chrome-webstore-item]").attr("href",i(e))}function u(e){return c(e),new Promise(function(t){a(function(e,n){g=e,b=n,v.info("Chrome extension installed: "+g+" updateRequired: "+b),t()},e)})}function l(e,t,n){return 0===n?Promise.reject():new Promise(function(r,i){var o=n,s=window.setInterval(function(){a(function(e){e?(window.clearInterval(s),r()):0==--o&&(i(),window.clearInterval(s))},e)},t)})}function d(e,t,n){var r=e.streamId,i=e.streamType,o=e.error;if(r)T(["desktop"],function(e){return t({stream:e,sourceId:r,sourceType:i})},n,{desktopStream:r});else{if(""===r)return void n(new f.a(h.CHROME_EXTENSION_USER_CANCELED));n(new f.a(h.CHROME_EXTENSION_GENERIC_ERROR,o))}}function p(e){if(!e.desktopSharingFirefoxDisabled&&!1!==S&&!0!==S){if(!e.desktopSharingFirefoxExtId)return void(S=!1);var t=document.createElement("img");t.onload=function(){v.log("Detected firefox screen sharing extension."),S=!0},t.onerror=function(){v.log("Detected lack of firefox screen sharing extension."),S=!1};var n="chrome://"+e.desktopSharingFirefoxExtId.replace("@",".")+"/content/"+document.location.hostname+".png";t.setAttribute("src",n)}}var f=n(11),h=n(15),m=n(1),v=n(0).getLogger(e),y=n(3),g=!1,b=!1,S=null,E=!1,T=null,_={intChromeExtPromise:null,obtainStream:null,init:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{disableDesktopSharing:!1,desktopSharingChromeDisabled:!1,desktopSharingChromeExtId:null,desktopSharingFirefoxDisabled:!1,desktopSharingFirefoxExtId:null},t=arguments[1];this.options=e=e||{},T=t,this.obtainStream=this.options.disableDesktopSharing?null:this._createObtainStreamMethod(e),this.obtainStream||v.info("Desktop sharing disabled")},_createObtainStreamMethod:function(e){var t=this;if(m.a.isNWJS())return function(e,t,n){window.JitsiMeetNW.obtainDesktopStream(t,function(e,t){var r=void 0;r=e&&"InvalidStateError"===e.name?new f.a(h.CHROME_EXTENSION_USER_CANCELED):new f.a(e,t,["desktop"]),"function"==typeof n&&n(r)})};if(m.a.isElectron())return this.obtainScreenOnElectron;if(m.a.isTemasysPluginUsed()){var i=n(33).WebRTCPlugin.plugin;return i.HasScreensharingFeature?i.isScreensharingAvailable?(v.info("Using Temasys plugin for desktop sharing"),r):(v.warn("Screensharing not available with Temasys plugin on this site"),null):(v.warn("Screensharing not supported by this plugin version"),null)}return m.a.isChrome()?m.a.getChromeVersion()<34?(v.info("Chrome extension not supported until ver 34"),null):e.desktopSharingChromeDisabled||!1===e.desktopSharingChromeMethod||!e.desktopSharingChromeExtId?null:(v.info("Using Chrome extension for desktop sharing"),this.intChromeExtPromise=u(e).then(function(){t.intChromeExtPromise=null}),this.obtainScreenFromExtension):m.a.isFirefox()?e.desktopSharingFirefoxDisabled?null:"http:"===window.location.protocol?(v.log("Screen sharing is not supported over HTTP. Use of HTTPS is required."),null):(p(e),this.obtainScreenOnFirefox):(v.log("Screen sharing not supported by the current browser: ",m.a.getBrowserType(),m.a.getBrowserName()),null)},isSupported:function(){return null!==this.obtainStream},obtainScreenOnFirefox:function(e,t,n){var i=this,o=!1,a=this.options.desktopSharingFirefoxMaxVersionExtRequired;return(-1===a||a>=0&&m.a.getFirefoxVersion()<=a)&&(o=!0,v.log("Jidesha extension required on firefox version "+m.a.getFirefoxVersion())),o&&!0!==S?(E&&(E=!1,p(this.options)),null===S?(window.setTimeout(function(){null===S&&(S=!1),i.obtainScreenOnFirefox(t,n)},300),void v.log("Waiting for detection of jidesha on firefox to finish.")):(S=null,E=!0,void n(new f.a(h.FIREFOX_EXTENSION_NEEDED)))):void r(e,t,n)},obtainScreenOnElectron:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=arguments[2];window.JitsiMeetScreenObtainer&&window.JitsiMeetScreenObtainer.openDesktopPicker?window.JitsiMeetScreenObtainer.openDesktopPicker({desktopSharingSources:e.desktopSharingSources||this.options.desktopSharingChromeSources},function(e,r){return d({streamId:e,streamType:r},t,n)},function(e){return n(new f.a(h.ELECTRON_DESKTOP_PICKER_ERROR,e))}):n(new f.a(h.ELECTRON_DESKTOP_PICKER_NOT_FOUND))},obtainScreenFromExtension:function(e,t,n){var r=this;if(null!==this.intChromeExtPromise)return void this.intChromeExtPromise.then(function(){r.obtainScreenFromExtension(e,t,n)});var o=this.options,a=o.desktopSharingChromeExtId,c=o.desktopSharingChromeSources,u={desktopSharingChromeExtId:a,desktopSharingChromeSources:e.desktopSharingSources||c};if(g)s(u,t,n);else{b&&alert("Jitsi Desktop Streamer requires update. Changes will take effect after next Chrome restart.");try{chrome.webstore.install(i(this.options),function(i){v.log("Extension installed successfully",i),g=!0,l(r.options,200,10).then(function(){s(u,t,n)}).catch(function(){r.handleExtensionInstallationError(e,t,n)})},this.handleExtensionInstallationError.bind(this,e,t,n))}catch(r){this.handleExtensionInstallationError(e,t,n,r)}}},handleExtensionInstallationError:function(e,t,n,r){var o=i(this.options);if(("Inline installs can not be initiated from pop-up windows."===r||"Chrome Web Store installations can only be started by the top frame."===r||"Installs can only be initiated by one of the Chrome Web Store item's verified sites."===r)&&e.interval>0&&"function"==typeof e.checkAgain&&"function"==typeof e.listener)return e.listener("waitingForExtension",o),void this.checkForChromeExtensionOnInterval(e,t,n,r);var a="Failed to install the extension from "+o;v.log(a,r);var s="Chrome Web Store installations can only be initated by a user gesture."===r?h.CHROME_EXTENSION_USER_GESTURE_REQUIRED:h.CHROME_EXTENSION_INSTALLATION_ERROR;n(new f.a(s,a))},checkForChromeExtensionOnInterval:function(e,t,n){var r=this;if(!1===e.checkAgain())return void n(new f.a(h.CHROME_EXTENSION_INSTALLATION_ERROR));l(this.options,e.interval,1).then(function(){g=!0,e.listener("extensionFound"),r.obtainScreenFromExtension(e,t,n)}).catch(function(){r.checkForChromeExtensionOnInterval(e,t,n)})}};t.a=_}).call(t,"modules/RTC/ScreenObtainer.js")},function(e,t,n){"use strict";(function(e){function r(e,t,r,i,o,a,s){var c=this;this.audioTransferActive=!0,this.videoTransferActive=!0,this.rtc=e,this.id=t,this.isP2P=a,this.remoteTracks=new Map,this.localTracks=new Map,this.localSSRCs=new Map,this.localUfrag=null,this.remoteUfrag=null,this.signalingLayer=r,this._peerVideoTypeChanged=this._peerVideoTypeChanged.bind(this),this.signalingLayer.on(_.a,this._peerVideoTypeChanged),this._peerMutedChanged=this._peerMutedChanged.bind(this),this.signalingLayer.on(_.b,this._peerMutedChanged),this.options=s,this.peerconnection=new h.a.RTCPeerConnectionType(i,o),this.updateLog=[],this.stats={},this.statsinterval=null,this.maxstats=0;var u=n(139).Interop;this.interop=new u;var l=n(142);this.simulcast=new l({numOfLayers:R,explodeRemoteSimulcast:!1}),this.sdpConsistency=new S.a(this.toString()),this.localSdpMunger=new p.a(this),this.eventEmitter=e.eventEmitter,this.rtxModifier=new g.a,this.trace=function(e,t){c.updateLog.push({time:new Date,type:e,value:t||""})},this.onicecandidate=null,this.peerconnection.onicecandidate=function(e){m.a.isTemasysPluginUsed()||c.trace("onicecandidate",JSON.stringify(e.candidate,null," ")),null!==c.onicecandidate&&c.onicecandidate(e)},this.peerconnection.onaddstream=function(e){return c._remoteStreamAdded(e.stream)},this.peerconnection.onremovestream=function(e){return c._remoteStreamRemoved(e.stream)},this.onsignalingstatechange=null,this.peerconnection.onsignalingstatechange=function(e){c.trace("onsignalingstatechange",c.signalingState),null!==c.onsignalingstatechange&&c.onsignalingstatechange(e)},this.oniceconnectionstatechange=null,this.peerconnection.oniceconnectionstatechange=function(e){c.trace("oniceconnectionstatechange",c.iceConnectionState),null!==c.oniceconnectionstatechange&&c.oniceconnectionstatechange(e)},this.onnegotiationneeded=null,this.peerconnection.onnegotiationneeded=function(e){c.trace("onnegotiationneeded"),null!==c.onnegotiationneeded&&c.onnegotiationneeded(e)},this.ondatachannel=null,this.peerconnection.ondatachannel=function(e){c.trace("ondatachannel",e),null!==c.ondatachannel&&c.ondatachannel(e)},!m.a.isFirefox()&&this.maxstats&&(this.statsinterval=window.setInterval(function(){c.peerconnection.getStats(function(e){for(var t=e.result(),n=new Date,r=0;r<t.length;++r)!function(e){t[e].names().forEach(function(r){var i=t[e].id+"-"+r,o=c.stats[i];o||(c.stats[i]=o={startTime:n,endTime:n,values:[],times:[]}),o.values.push(t[e].stat(r)),o.times.push(n.getTime()),o.values.length>c.maxstats&&(o.values.shift(),o.times.shift()),o.endTime=n})}(r)})},1e3)),w.info("Create new "+this)}function i(e){var t=new Map,n=new Map;if("object"!==(void 0===e?"undefined":C(e))||null===e||"string"!=typeof e.sdp)return w.warn("An empty description was passed as an argument."),t;var r=c.a.parse(e.sdp);if(!Array.isArray(r.media))return t;var i=!0,o=!1,a=void 0;try{for(var s,u=r.media["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(i=(s=u.next()).done);i=!0){var l=s.value;if(Array.isArray(l.ssrcs)){if(Array.isArray(l.ssrcGroups)){var d=!0,p=!1,f=void 0;try{for(var h,m=l.ssrcGroups["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(d=(h=m.next()).done);d=!0){var v=h.value;if(void 0!==v.semantics&&void 0!==v.ssrcs){var y=v.ssrcs.split(" ").map(function(e){return parseInt(e,10)}),g=y[0];v.ssrcs=y,n.has(g)||n.set(g,[]),n.get(g).push(v)}}}catch(e){p=!0,f=e}finally{try{!d&&m.return&&m.return()}finally{if(p)throw f}}}var b=!0,S=!1,E=void 0;try{for(var T,_=l.ssrcs["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(b=(T=_.next()).done);b=!0){var R=T.value;if("msid"===R.attribute){var k=R.value,A=t.get(k);A||(A={ssrcs:[],groups:[],msid:k},t.set(k,A));var P=R.id;if(A.ssrcs.push(P),n.has(P)){var I=n.get(P),O=!0,D=!1,L=void 0;try{for(var N,M=I["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(O=(N=M.next()).done);O=!0){var x=N.value;A.groups.push(x)}}catch(e){D=!0,L=e}finally{try{!O&&M.return&&M.return()}finally{if(D)throw L}}}}}}catch(e){S=!0,E=e}finally{try{!b&&_.return&&_.return()}finally{if(S)throw E}}}}}catch(e){o=!0,a=e}finally{try{!i&&u.return&&u.return()}finally{if(o)throw a}}return t}function o(e){return e&&e.groups&&e.groups.length?e.groups[0].ssrcs[0]:e&&e.ssrcs&&e.ssrcs.length?e.ssrcs[0]:null}t.a=r;var a=n(0),s=(n.n(a),n(13)),c=n.n(s),u=n(3),l=(n.n(u),n(90)),d=n(4),p=n(91),f=n(22),h=n(23),m=n(1),v=n(8),y=n.n(v),g=n(123),b=n(51),S=n(125),E=n(24),T=n(12),_=n(53),C="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof e},w=n.i(a.getLogger)(e),R=3,k=["1","2","3"],A=function(e){return void 0===e||null===e?"":"type: "+e.type+"\r\n"+e.sdp};r.prototype.getConnectionState=function(){var e=this.peerconnection.iceConnectionState;return"completed"===e?"connected":e},r.prototype._getDesiredMediaDirection=function(e){var t=!0;return e===d.a?t=this.audioTransferActive:e===d.b&&(t=this.videoTransferActive),t?this.hasAnyTracksOfType(e)?"sendrecv":"recvonly":"inactive"},r.prototype.isSimulcastOn=function(){return!this.options.disableSimulcast&&m.a.supportsSimulcast()&&(!m.a.isFirefox()||this.options.enableFirefoxSimulcast)},r.prototype._peerVideoTypeChanged=function(e,t){if(!e)return void w.error("No endpointID on peerVideoTypeChanged "+this);var n=this.getRemoteTracks(e,d.b);n.length&&n[0]._setVideoType(t)},r.prototype._peerMutedChanged=function(e,t,n){if(!e)return void w.error("On peerMuteChanged - no endpoint ID");var r=this.getRemoteTracks(e,t);r.length&&r[0].setMute(n)},r.prototype.getLocalTracks=function(e){var t=Array.from(this.localTracks.values());return void 0!==e&&(t=t.filter(function(t){return t.getType()===e})),t},r.prototype.hasAnyTracksOfType=function(e){if(!e)throw new Error('"mediaType" is required');return this.getLocalTracks(e).length>0},r.prototype.getRemoteTracks=function(e,t){var n=[],r=e?[e]:this.remoteTracks.keys(),i=!0,o=!1,a=void 0;try{for(var s,c=r["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(i=(s=c.next()).done);i=!0){var u=s.value,l=this.remoteTracks.get(u);if(l){var d=!0,p=!1,f=void 0;try{for(var h,m=l.keys()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(d=(h=m.next()).done);d=!0){var v=h.value;if(!t||t===v){var y=l.get(v);y&&n.push(y)}}}catch(e){p=!0,f=e}finally{try{!d&&m.return&&m.return()}finally{if(p)throw f}}}}}catch(e){o=!0,a=e}finally{try{!i&&c.return&&c.return()}finally{if(o)throw a}}return n},r.prototype.getTrackBySSRC=function(e){if("number"!=typeof e)throw new Error("SSRC "+e+" is not a number");var t=!0,n=!1,r=void 0;try{for(var i,o=this.localTracks.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(t=(i=o.next()).done);t=!0){var a=i.value;if(this.getLocalSSRC(a)===e)return a}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}var s=!0,c=!1,u=void 0;try{for(var l,d=this.getRemoteTracks()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(s=(l=d.next()).done);s=!0){var p=l.value;if(p.getSSRC()===e)return p}}catch(e){c=!0,u=e}finally{try{!s&&d.return&&d.return()}finally{if(c)throw u}}return null},r.prototype._remoteStreamAdded=function(e){var t=this,n=f.a.getStreamID(e);if(!f.a.isUserStreamById(n))return void w.info(this+" ignored remote 'stream added' event for non-user streamid: "+n);(m.a.isChrome()||m.a.isNWJS()||m.a.isElectron()||m.a.isEdge())&&(e.onaddtrack=function(n){t._remoteTrackAdded(e,n.track)},e.onremovetrack=function(n){t._remoteTrackRemoved(e,n.track)});var r=e.getAudioTracks(),i=!0,o=!1,a=void 0;try{for(var s,c=r["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(i=(s=c.next()).done);i=!0){var u=s.value;this._remoteTrackAdded(e,u)}}catch(e){o=!0,a=e}finally{try{!i&&c.return&&c.return()}finally{if(o)throw a}}var l=e.getVideoTracks(),d=!0,p=!1,h=void 0;try{for(var v,y=l["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(d=(v=y.next()).done);d=!0){var g=v.value;this._remoteTrackAdded(e,g)}}catch(e){p=!0,h=e}finally{try{!d&&y.return&&y.return()}finally{if(p)throw h}}},r.prototype._remoteTrackAdded=function(e,t){var n=f.a.getStreamID(e),r=t.kind;if(w.info(this+" remote track added:",n,r),!r)return void u.callErrorHandler(new Error("MediaType undefined for remote track, stream id: "+n));var i=new b.a(this.remoteDescription.sdp),o=i.media.filter(function(e){return e.startsWith("m="+r)});if(!o.length)return void u.callErrorHandler(new Error("No media lines for type "+r+" found in remote SDP for remote track: "+n));var a=T.a.findLines(o[0],"a=ssrc:");if(a=a.filter(function(e){var t=m.a.isTemasysPluginUsed()?"mslabel":"msid";return-1!==e.indexOf(t+":"+n)}),!a.length)return void u.callErrorHandler(new Error("No SSRC lines for streamId "+n+" for remote track, media type: "+r));var s=a[0].substring(7).split(" ")[0],c=Number(s),l=this.signalingLayer.getSSRCOwner(c);if(isNaN(c)||c<0)return void u.callErrorHandler(new Error("Invalid SSRC: "+s+" for remote track, msid: "+n+" media type: "+r));if(!l)return void u.callErrorHandler(new Error("No SSRC owner known for: "+c+" for remote track, msid: "+n+" media type: "+r));w.log(this+" associated ssrc",l,c);var d=this.signalingLayer.getPeerMediaInfo(l,r);if(!d)return void u.callErrorHandler(new Error(this+": no peer media info available for "+l));var p=d.muted,h=d.videoType;this._createRemoteTrack(l,e,t,r,h,c,p)},r.prototype._createRemoteTrack=function(e,t,n,r,i,o,a){var s=new l.a(this.rtc,this.rtc.conference,e,t,n,r,i,o,a,this.isP2P),c=this.remoteTracks.get(e);c||(c=new Map,this.remoteTracks.set(e,c)),c.has(r)&&w.error(this+" overwriting remote track! "+s,e,r),c.set(r,s),this.eventEmitter.emit(y.a.REMOTE_TRACK_ADDED,s)},r.prototype._remoteStreamRemoved=function(e){if(!f.a.isUserStream(e)){var t=f.a.getStreamID(e);return void w.info("Ignored remote 'stream removed' event for non-user stream "+t)}var n=e.getVideoTracks(),r=!0,i=!1,o=void 0;try{for(var a,s=n["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(a=s.next()).done);r=!0){var c=a.value;this._remoteTrackRemoved(e,c)}}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}var u=e.getAudioTracks(),l=!0,d=!1,p=void 0;try{for(var h,m=u["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(l=(h=m.next()).done);l=!0){var v=h.value;this._remoteTrackRemoved(e,v)}}catch(e){d=!0,p=e}finally{try{!l&&m.return&&m.return()}finally{if(d)throw p}}},r.prototype._remoteTrackRemoved=function(e,t){var n=f.a.getStreamID(e),r=t&&f.a.getTrackID(t);return w.info(this+" - remote track removed: "+n+", "+r),n?r?void(this._removeRemoteTrackById(n,r)||w.warn(this+" Removed track not found for msid: "+n+",\n track id: "+r)):void u.callErrorHandler(new Error(this+" remote track removal failed - no track ID")):void u.callErrorHandler(new Error(this+" remote track removal failed - no stream ID"))},r.prototype._getRemoteTrackById=function(e,t){var n=!0,r=!1,i=void 0;try{for(var o,a=this.remoteTracks.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(n=(o=a.next()).done);n=!0){var s=o.value,c=!0,u=!1,l=void 0;try{for(var d,p=s.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(c=(d=p.next()).done);c=!0){var f=d.value;if(f.getStreamId()==e&&f.getTrackId()==t)return f}}catch(e){u=!0,l=e}finally{try{!c&&p.return&&p.return()}finally{if(u)throw l}}}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}},r.prototype.removeRemoteTracks=function(e){var t=[],n=this.remoteTracks.get(e);if(n){var r=n.get(d.a),i=n.get(d.b);r&&t.push(r),i&&t.push(i),this.remoteTracks.delete(e)}return w.debug(this+" removed remote tracks for "+e+" count: "+t.length),t},r.prototype._removeRemoteTrack=function(e){e.dispose();var t=e.getParticipantId(),n=this.remoteTracks.get(t);n?n.delete(e.getType())||w.error("Failed to remove "+e+" - type mapping messed up ?"):w.error("removeRemoteTrack: no remote tracks map for "+t),this.eventEmitter.emit(y.a.REMOTE_TRACK_REMOVED,e)},r.prototype._removeRemoteTrackById=function(e,t){var n=this._getRemoteTrackById(e,t);return n&&this._removeRemoteTrack(n),n};var P=function(e){if("object"!==(void 0===e?"undefined":C(e))||null===e||"string"!=typeof e.sdp)return w.warn("An empty description was passed as an argument."),e;var t=n(13),r=t.parse(e.sdp);void 0!==r&&void 0!==r.media&&Array.isArray(r.media)&&r.media.forEach(function(e){var t=[],n=[];if(void 0!==e.ssrcGroups&&Array.isArray(e.ssrcGroups)&&e.ssrcGroups.forEach(function(e){void 0!==e.semantics&&"FID"===e.semantics&&void 0!==e.ssrcs&&t.push(Number(e.ssrcs.split(" ")[0]))}),Array.isArray(e.ssrcs)){var r=void 0;for(r=0;r<e.ssrcs.length;r++)"object"===C(e.ssrcs[r])&&void 0!==e.ssrcs[r].id&&t.indexOf(e.ssrcs[r].id)>=0&&(n.push(e.ssrcs[r]),delete e.ssrcs[r]);for(r=0;r<e.ssrcs.length;r++)void 0!==e.ssrcs[r]&&n.push(e.ssrcs[r]);e.ssrcs=n}});var i=t.write(r);return new RTCSessionDescription({type:e.type,sdp:i})},I=function(e){if(e&&e.sdp){var t=new E.a(e.sdp),n=t.selectMedia("audio"),r=!1;n&&"sendrecv"!==n.direction&&(n.direction="sendrecv",r=!0);var i=t.selectMedia("video");i&&"sendrecv"!==i.direction&&(i.direction="sendrecv",r=!0),r&&(e.sdp=t.toRawSDP())}};r.prototype.getLocalSSRC=function(e){var t=this._getSSRC(e.rtcId);return t&&t.ssrcs[0]},r.prototype._injectSsrcGroupForUnifiedSimulcast=function(e){var t=c.a.parse(e.sdp),n=t.media.find(function(e){return"video"===e.type});if(n.simulcast_03){var r=[];if(n.ssrcs.forEach(function(e){"msid"===e.attribute&&r.push(e.id)}),n.ssrcGroups=n.ssrcGroups||[],n.ssrcGroups.find(function(e){return"SIM"===e.semantics}))return e;n.ssrcGroups.push({semantics:"SIM",ssrcs:r.join(" ")})}return e.sdp=c.a.write(t),e};var O={signalingState:function(){return this.peerconnection.signalingState},iceConnectionState:function(){return this.peerconnection.iceConnectionState},localDescription:function(){var e=this.peerconnection.localDescription;return this.trace("getLocalDescription::preTransform",A(e)),e&&m.a.usesUnifiedPlan()&&(e=this.interop.toPlanB(e),this.trace("getLocalDescription::postTransform (Plan B)",A(e)),e=this._injectSsrcGroupForUnifiedSimulcast(e),this.trace("getLocalDescription::postTransform (inject ssrc group)",A(e))),m.a.doesVideoMuteByStreamRemove()&&(this.localSdpMunger.maybeMungeLocalSdp(e),w.debug("getLocalDescription::postTransform (munge local SDP)",e)),I(e),e||{}},remoteDescription:function(){var e=this.peerconnection.remoteDescription;return this.trace("getRemoteDescription::preTransform",A(e)),m.a.usesUnifiedPlan()&&(e=this.interop.toPlanB(e),this.trace("getRemoteDescription::postTransform (Plan B)",A(e))),e||{}}};Object.keys(O).forEach(function(e){Object.defineProperty(r.prototype,e,{get:O[e]})}),r.prototype._getSSRC=function(e){return this.localSSRCs.get(e)},r.prototype.addTrack=function(e){var t=e.rtcId;if(w.info("add "+e+" to: "+this),this.localTracks.has(t))return void w.error(e+" is already in "+this);this.localTracks.set(t,e);var n=e.getOriginalStream();if(n?this._addStream(n):(!m.a.doesVideoMuteByStreamRemove()||e.isAudioTrack()||e.isVideoTrack()&&!e.isMuted())&&w.error(this+" no WebRTC stream for: "+e),m.a.doesVideoMuteByStreamRemove()&&e.isVideoTrack()&&e.isMuted()){var r=this.generateNewStreamSSRCInfo(e);this.sdpConsistency.setPrimarySsrc(r.ssrcs[0]);var i=r.groups.find(function(e){return"SIM"===e.semantics});i&&this.simulcast.setSsrcCache(i.ssrcs);var o=r.groups.filter(function(e){return"FID"===e.semantics});if(o){var a=new Map;o.forEach(function(e){var t=e.ssrcs[0],n=e.ssrcs[1];a.set(t,n)}),this.rtxModifier.setSsrcCache(a)}}},r.prototype.addTrackUnmute=function(e){if(!this._assertTrackBelongs("addTrackUnmute",e))return!1;w.info("Adding "+e+" as unmute to "+this);var t=e.getOriginalStream();return t?(this._addStream(t),!0):(w.error("Unable to add "+e+" as unmute to "+this+" - no WebRTC stream"),!1)},r.prototype._addStream=function(e){this.peerconnection.addStream(e)},r.prototype._removeStream=function(e){m.a.isFirefox()?this._handleFirefoxRemoveStream(e):this.peerconnection.removeStream(e)},r.prototype._assertTrackBelongs=function(e,t){var n=this.localTracks.has(t.rtcId);return n||w.error(e+": "+t+" does not belong to "+this),n},r.prototype.removeTrack=function(e){var t=e.getOriginalStream();this.trace("removeStream",e.rtcId,t?t.id:void 0),this._assertTrackBelongs("removeStream",e)&&(this.localTracks.delete(e.rtcId),this.localSSRCs.delete(e.rtcId),t&&(m.a.isFirefox()?this._handleFirefoxRemoveStream(t):this.peerconnection.removeStream(t)))},r.prototype.removeTrackMute=function(e){var t=e.getOriginalStream();return this.trace("removeStreamMute",e.rtcId,t?t.id:null),!!this._assertTrackBelongs("removeStreamMute",e)&&(t?(w.info("Removing "+e+" as mute from "+this),this._removeStream(t),!0):(w.error("removeStreamMute - no WebRTC stream for "+e),!1))},r.prototype._handleFirefoxRemoveStream=function(e){if(e){var t=null,n=null;if(e.getAudioTracks()&&e.getAudioTracks().length?n=e.getAudioTracks()[0]:e.getVideoTracks()&&e.getVideoTracks().length&&(n=e.getVideoTracks()[0]),!n)return void w.error("Cannot remove tracks: no tracks.");this.peerconnection.getSenders().some(function(e){return e.track===n&&(t=e,!0)}),t?this.peerconnection.removeTrack(t):w.log("Cannot remove tracks: no RTPSender.")}},r.prototype.createDataChannel=function(e,t){return this.trace("createDataChannel",e,t),this.peerconnection.createDataChannel(e,t)},r.prototype._ensureSimulcastGroupIsLast=function(e){var t=e.sdp,n=t.indexOf("m=video"),r=t.indexOf("a=ssrc-group:SIM",n),i=t.lastIndexOf("a=ssrc-group");if(-1!==r&&-1!==i&&i!==r){var o=t.indexOf("\r\n",r),a=t.substring(r,o+2);t=t.replace(a,""),i=t.lastIndexOf("a=ssrc-group");var s=t.indexOf("\r\n",i);t=t.slice(0,s)+"\r\n"+a.trim()+t.slice(s),e.sdp=t}},r.prototype._adjustLocalMediaDirection=function(e){var t=new E.a(e.sdp),n=!1,r=t.selectMedia("audio");if(r){var i=this._getDesiredMediaDirection(d.a);r.direction!==i&&(r.direction=i,w.info("Adjusted local audio direction to "+i),n=!0)}else w.warn('No "audio" media found int the local description');var o=t.selectMedia("video");if(o){var a=this._getDesiredMediaDirection(d.b);o.direction!==a&&(o.direction=a,w.info("Adjusted local video direction to "+a),n=!0)}else w.warn('No "video" media found in the local description');n&&(e.sdp=t.toRawSDP())},r.prototype.setLocalDescription=function(e,t,n){var r=this,i=e;this.trace("setLocalDescription::preTransform",A(i)),this._adjustLocalMediaDirection(i),this._ensureSimulcastGroupIsLast(i),m.a.usesUnifiedPlan()&&(i=this.interop.toUnifiedPlan(i),this.trace("setLocalDescription::postTransform (Unified Plan)",A(i))),this.peerconnection.setLocalDescription(i,function(){r.trace("setLocalDescriptionOnSuccess");var e=T.a.getUfrag(i.sdp);e!==r.localUfrag&&(r.localUfrag=e,r.eventEmitter.emit(y.a.LOCAL_UFRAG_CHANGED,r,e)),t()},function(e){r.trace("setLocalDescriptionOnFailure",e),r.eventEmitter.emit(y.a.SET_LOCAL_DESCRIPTION_FAILED,e,r),n(e)})},r.prototype.setAudioTransferActive=function(e){w.debug(this+" audio transfer active: "+e);var t=this.audioTransferActive!==e;return this.audioTransferActive=e,t},r.prototype._insertUnifiedPlanSimulcastReceive=function(e){var t=c.a.parse(e.sdp),n=t.media.find(function(e){return"video"===e.type});return n.rids=[{id:"1",direction:"recv"},{id:"2",direction:"recv"},{id:"3",direction:"recv"}],n.simulcast_03={value:"recv rid="+k.join(";")},e.sdp=c.a.write(t),e},r.prototype.setRemoteDescription=function(e,t,n){var r=this;if(this.trace("setRemoteDescription::preTransform",A(e)),e=this.simulcast.mungeRemoteDescription(e),this.trace("setRemoteDescription::postTransform (simulcast)",A(e)),this.options.preferH264){var i=c.a.parse(e.sdp),o=i.media.find(function(e){return"video"===e.type});T.a.preferVideoCodec(o,"h264"),e.sdp=c.a.write(i)}m.a.usesUnifiedPlan()?(e.sdp=this.rtxModifier.stripRtx(e.sdp),this.trace("setRemoteDescription::postTransform (stripRtx)",A(e)),e=this.interop.toUnifiedPlan(e),this.trace("setRemoteDescription::postTransform (Plan A)",A(e)),this.isSimulcastOn()&&(e=this._insertUnifiedPlanSimulcastReceive(e),this.trace("setRemoteDescription::postTransform (sim receive)",A(e)))):e=P(e),this.peerconnection.setRemoteDescription(e,function(){r.trace("setRemoteDescriptionOnSuccess");var n=T.a.getUfrag(e.sdp);n!==r.remoteUfrag&&(r.remoteUfrag=n,r.eventEmitter.emit(y.a.REMOTE_UFRAG_CHANGED,r,n)),t()},function(e){r.trace("setRemoteDescriptionOnFailure",e),r.eventEmitter.emit(y.a.SET_REMOTE_DESCRIPTION_FAILED,e,r),n(e)})},r.prototype.setVideoTransferActive=function(e){w.debug(this+" video transfer active: "+e);var t=this.videoTransferActive!==e;return this.videoTransferActive=e,t},r.prototype.generateRecvonlySsrc=function(){var e=T.a.generateSsrc();w.info(this+" generated new recvonly SSRC: "+e),this.sdpConsistency.setPrimarySsrc(e)},r.prototype.clearRecvonlySsrc=function(){w.info("Clearing primary video SSRC!"),this.sdpConsistency.clearVideoSsrcCache()},r.prototype.close=function(){this.trace("stop"),this.signalingLayer.off(_.b,this._peerMutedChanged),this.signalingLayer.off(_.a,this._peerVideoTypeChanged);var e=!0,t=!1,n=void 0;try{for(var r,i=this.remoteTracks.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(e=(r=i.next()).done);e=!0){var o=r.value,a=!0,s=!1,c=void 0;try{for(var u,l=o.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(a=(u=l.next()).done);a=!0){var d=u.value;this._removeRemoteTrack(d)}}catch(e){s=!0,c=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw c}}}}catch(e){t=!0,n=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}this.remoteTracks.clear(),this.rtc._removePeerConnection(this)||w.error("RTC._removePeerConnection returned false"),null!==this.statsinterval&&(window.clearInterval(this.statsinterval),this.statsinterval=null),w.info("Closing "+this+"..."),this.peerconnection.close()};var D=function(e,t){m.a.isChrome()&&e&&t&&e.media&&t.media&&e.media.length===t.media.length&&(t.media.forEach(function(n,r){T.a.findLine(e.media[r],"a=setup:actpass",e.session)&&(t.media[r]=n.replace(/a=setup:active/g,"a=setup:passive"))}),t.raw=t.session+t.media.join(""))};r.prototype.createAnswer=function(e,t,n){if(m.a.supportsRtpSender()&&this.isSimulcastOn()){var r=this.peerconnection.getSenders().find(function(e){return"video"===e.track.kind}),i={encodings:[{rid:"1",scaleResolutionDownBy:4},{rid:"2",scaleResolutionDownBy:2},{rid:"3"}]};r.setParameters(i)}this._createOfferOrAnswer(!1,e,t,n)},r.prototype.createOffer=function(e,t,n){this._createOfferOrAnswer(!0,e,t,n)},r.prototype._createOfferOrAnswer=function(e,t,n,r){var o=this,a=e?"Offer":"Answer";this.trace("create"+a,JSON.stringify(r,null," "));var s=function(r){try{if(o.trace("create"+a+"OnSuccess::preTransform",A(r)),m.a.usesUnifiedPlan()&&(r=o.interop.toPlanB(r),o.trace("create"+a+"OnSuccess::postTransform (Plan B)",A(r)),o.isSimulcastOn()&&(r=o._injectSsrcGroupForUnifiedSimulcast(r),o.trace("create"+a+"OnSuccess::postTransform(inject ssrc group)",A(r)))),m.a.isFirefox()||(o.hasAnyTracksOfType(d.b)||o.sdpConsistency.hasPrimarySsrcCached()||o.generateRecvonlySsrc(),r.sdp=o.sdpConsistency.makeVideoPrimarySsrcsConsistent(r.sdp),o.trace("create"+a+"OnSuccess::postTransform (make primary audio/video ssrcs consistent)",A(r))),o.isSimulcastOn()&&(r=o.simulcast.mungeLocalDescription(r),o.trace("create"+a+"OnSuccess::postTransform (simulcast)",A(r))),!o.options.disableRtx&&m.a.supportsRtx()&&(r.sdp=o.rtxModifier.modifyRtxSsrcs(r.sdp),o.trace("create"+a+"OnSuccess::postTransform (rtx modifier)",A(r))),!e){var s=new b.a(o.remoteDescription.sdp),c=new b.a(r.sdp);D(s,c),r.sdp=c.raw}var u=i(r);w.debug("Got local SSRCs MAP: ",u),o._processLocalSSRCsMap(u),t(r)}catch(e){o.trace("create"+a+"OnError",e),o.trace("create"+a+"OnError",A(r)),w.error("create"+a+"OnError",e,A(r)),n(e)}},c=function(t){o.trace("create"+a+"OnFailure",t);var r=e?y.a.CREATE_OFFER_FAILED:y.a.CREATE_ANSWER_FAILED;o.eventEmitter.emit(r,t,o),n(t)};e?this.peerconnection.createOffer(s,c,r):this.peerconnection.createAnswer(s,c,r)},r.prototype._processLocalSSRCsMap=function(e){var t=!0,n=!1,r=void 0;try{for(var i,a=this.localTracks.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(t=(i=a.next()).done);t=!0){var s=i.value,c=s.getMSID();if(e.has(c)){var u=e.get(c);if(!u)return void w.error("No SSRC found for: "+c+" in "+this);var l=this.localSSRCs.get(s.rtcId),d=o(u),p=o(l);d!==p?(null===p?w.info("Storing new local SSRC for "+s+" in "+this,u):w.error("Overwriting SSRC for "+s+" "+c+" in "+this+" with: ",u),this.localSSRCs.set(s.rtcId,u)):w.debug("The local SSRC("+d+") for "+s+" "+c+"is still up to date in "+this)}else w.warn("No local track matched with: "+c+" in "+this)}}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},r.prototype.addIceCandidate=function(e,t,n){this.trace("addIceCandidate",JSON.stringify(e,null," ")),this.peerconnection.addIceCandidate(e,t,n)},r.prototype.getStats=function(e,t){m.a.isFirefox()||m.a.isTemasysPluginUsed()||m.a.isReactNative()?this.peerconnection.getStats(null,e,t||function(){}):this.peerconnection.getStats(e)},r.prototype.generateNewStreamSSRCInfo=function(e){var t=e.rtcId,n=this._getSSRC(t);if(n&&w.error("Will overwrite local SSRCs for track ID: "+t),this.isSimulcastOn()){n={ssrcs:[],groups:[]};for(var r=0;r<R;r++)n.ssrcs.push(T.a.generateSsrc());n.groups.push({
ssrcs:n.ssrcs.slice(),semantics:"SIM"})}else n={ssrcs:[T.a.generateSsrc()],groups:[]};if(!this.options.disableRtx&&m.a.supportsRtx())for(var i=n.ssrcs.length,o=0;o<i;++o){var a=n.ssrcs[o],s=T.a.generateSsrc();n.ssrcs.push(s),n.groups.push({ssrcs:[a,s],semantics:"FID"})}return n.msid=e.storedMSID,this.localSSRCs.set(t,n),n},r.prototype.toString=function(){return"TPC["+this.id+",p2p:"+this.isP2P+"]"}}).call(t,"modules/RTC/TraceablePeerConnection.js")},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=(n.n(a),n(150)),c=n.n(s),u=n(96),l=n(98),d=n(97),p=n(19),f=n.n(p),h=n(12),m=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(("function"==typeof Symbol?Symbol.iterator:"@@iterator")in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=n.i(a.getLogger)(e),g={stable:"stable",haveLocalOffer:"have-local-offer",haveRemoteOffer:"have-remote-offer",closed:"closed"},b={new:"new",gathering:"gathering",complete:"complete"},S="jitsi-ortc-cname-"+f.a.randomInt(1e4,99999),E=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return y.debug("constructor() pcConfig:",e),n._bufferedIceCandidates=[],n._closed=!1,n._dtlsTransport=null,n._iceGatherer=null,n._iceGatheringState=b.new,n._iceTransport=null,n._localCapabilities=null,n._localDescription=null,n._localTrackInfos=new Map,n._mids=new Map,n._remoteDescription=null,n._remoteStreams=new Map,n._remoteTrackInfos=new Map,n._sdpGlobalFields={id:h.a.generateSsrc(),version:0},n._signalingState=g.stable,n._setIceGatherer(e),n._setIceTransport(n._iceGatherer),n._setDtlsTransport(n._iceTransport),n}return o(t,e),v(t,[{key:"addIceCandidate",value:function(e){var t=void 0,n=void 0,r=void 0;if(!e)throw new TypeError("candidate missing");if(0==(arguments.length<=1?0:arguments.length-1))t=!0;else{if(t=!1,n=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2],"function"!=typeof n)throw new TypeError("callback missing");if("function"!=typeof r)throw new TypeError("errback missing")}if(y.debug("addIceCandidate() candidate:",e),t)return this._addIceCandidate(e);this._addIceCandidate(e).then(function(){return n()}).catch(function(e){return r(e)})}},{key:"addStream",value:function(e){y.debug("addStream()"),this._addStream(e)}},{key:"close",value:function(){if(!this._closed){this._closed=!0,y.debug("close()"),this._updateAndEmitSignalingStateChange(g.closed);try{this._iceGatherer.close()}catch(e){y.warn("iceGatherer.close() failed:"+e)}try{this._iceTransport.stop()}catch(e){y.warn("iceTransport.stop() failed:"+e)}try{this._dtlsTransport.stop()}catch(e){y.warn("dtlsTransport.stop() failed:"+e)}var e=!0,t=!1,n=void 0;try{for(var r,i=this._localTrackInfos.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(e=(r=i.next()).done);e=!0){var o=r.value,a=o.rtpSender;try{a.stop()}catch(e){y.warn("rtpSender.stop() failed:"+e)}}}catch(e){t=!0,n=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}this._localTrackInfos.clear();var s=!0,c=!1,u=void 0;try{for(var l,d=this._remoteTrackInfos.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(s=(l=d.next()).done);s=!0){var p=l.value,f=p.rtpReceiver;try{f.stop()}catch(e){y.warn("rtpReceiver.stop() failed:"+e)}}}catch(e){c=!0,u=e}finally{try{!s&&d.return&&d.return()}finally{if(c)throw u}}this._remoteTrackInfos.clear(),this._remoteStreams.clear()}}},{key:"createAnswer",value:function(){var e=void 0,t=void 0,n=void 0,r=void 0;if(arguments.length<=1)e=!0,t=arguments.length<=0?void 0:arguments[0];else{if(e=!1,n=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],t=arguments.length<=2?void 0:arguments[2],"function"!=typeof n)throw new TypeError("callback missing");if("function"!=typeof r)throw new TypeError("errback missing")}if(y.debug("createAnswer() options:",t),e)return this._createAnswer(t);this._createAnswer(t).then(function(e){return n(e)}).catch(function(e){return r(e)})}},{key:"createDataChannel",value:function(){throw y.debug("createDataChannel()"),new Error("createDataChannel() not supported in Edge")}},{key:"createOffer",value:function(){var e=void 0,t=void 0,n=void 0,r=void 0;if(arguments.length<=1)e=!0,t=arguments.length<=0?void 0:arguments[0];else{if(e=!1,n=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],t=arguments.length<=2?void 0:arguments[2],"function"!=typeof n)throw new TypeError("callback missing");if("function"!=typeof r)throw new TypeError("errback missing")}if(y.debug("createOffer() options:",t),e)return this._createOffer(t);this._createOffer(t).then(function(e){return n(e)}).catch(function(e){return r(e)})}},{key:"getLocalStreams",value:function(){return Array.from(this._localTrackInfos.values()).map(function(e){return e.stream}).filter(function(e,t,n){return n.indexOf(e)===t})}},{key:"getRemoteStreams",value:function(){return Array.from(this._remoteStreams.values())}},{key:"getStats",value:function(){var e=void 0,t=void 0,n=void 0,r=void 0;if("function"==typeof(arguments.length<=0?void 0:arguments[0])?(e=!1,n=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1]):"function"==typeof(arguments.length<=1?void 0:arguments[1])?(e=!1,t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(e=!0,t=arguments.length<=0?void 0:arguments[0]),e||r||(r=function(e){y.error("getStats() failed: "+e),y.error(e.stack)}),e)return this._getStats(t);this._getStats(t).then(function(e){return n(e)}).catch(function(e){return r(e)})}},{key:"removeStream",value:function(e){y.debug("removeStream()"),this._removeStream(e)}},{key:"setLocalDescription",value:function(e){var t=void 0,n=void 0,r=void 0;if(!e)throw new TypeError("description missing");if(0==(arguments.length<=1?0:arguments.length-1))t=!0;else{if(t=!1,n=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2],"function"!=typeof n)throw new TypeError("callback missing");if("function"!=typeof r)throw new TypeError("errback missing")}if(y.debug("setLocalDescription() desc:",e),t)return this._setLocalDescription(e);this._setLocalDescription(e).then(function(){return n()}).catch(function(e){return r(e)})}},{key:"setRemoteDescription",value:function(e){var t=void 0,n=void 0,r=void 0;if(!e)throw new TypeError("description missing");if(0==(arguments.length<=1?0:arguments.length-1))t=!0;else{if(t=!1,n=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2],"function"!=typeof n)throw new TypeError("callback missing");if("function"!=typeof r)throw new TypeError("errback missing")}if(y.debug("setRemoteDescription() desc:",e),t)return this._setRemoteDescription(e);this._setRemoteDescription(e).then(function(){return n()}).catch(function(e){return r(e)})}},{key:"_addIceCandidate",value:function(e){return this._closed?Promise.reject(new d.a("RTCPeerConnection closed")):Promise.reject(new Error("addIceCandidate() not supported"))}},{key:"_addStream",value:function(e){if(this._closed)throw new d.a("RTCPeerConnection closed");var t=!0,n=!1,r=void 0;try{for(var i,o=e.getTracks()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(t=(i=o.next()).done);t=!0){var a=i.value;if("ended"!==a.readyState)if(this._localTrackInfos.has(a.id))y.warn("ignoring already handled MediaStreamTrack");else{var s=new RTCRtpSender(a,this._dtlsTransport);this._localTrackInfos.set(a.id,{rtpSender:s,stream:e})}else y.warn("ignoring ended MediaStreamTrack")}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}var c=!0,u=!1,l=void 0;try{for(var p,f=this._localTrackInfos["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(c=(p=f.next()).done);c=!0){var h=m(p.value,2),v=h[0],g=h[1],b=g.rtpSender.track;if("ended"===b.readyState){y.warn("_addStream() an already handled track was stopped, track.id:"+b.id);try{g.rtpSender.stop()}catch(e){y.warn("rtpSender.stop() failed:"+e)}this._localTrackInfos.delete(b.id)}else if(g.stream===e&&!e.getTrackById(v)){y.warn("_addStream() a track in this stream was removed, track.id:"+v);try{g.rtpSender.stop()}catch(e){y.warn("rtpSender.stop() failed:"+e)}this._localTrackInfos.delete(b.id)}}}catch(e){u=!0,l=e}finally{try{!c&&f.return&&f.return()}finally{if(u)throw l}}this._emitNegotiationNeeded()}},{key:"_createAnswer",value:function(e){if(this._closed)return Promise.reject(new d.a("RTCPeerConnection closed"));if(this.signalingState!==g.haveRemoteOffer)return Promise.reject(new d.a('invalid signalingState "'+this.signalingState+'"'));var t=this._createLocalDescription("answer");return Promise.resolve(t)}},{key:"_createLocalDescription",value:function(e){function t(t,o){var u={};switch(u.type=o,o){case"audio":case"video":u.protocol="RTP/SAVPF",u.port=9,u.direction="sendrecv";break;case"application":u.protocol="DTLS/SCTP",u.port=0,u.payloads="0",u.direction="inactive"}u.connection={ip:"127.0.0.1",version:4},u.mid=t,u.iceUfrag=r.usernameFragment,u.icePwd=r.password,u.candidates=[];var d=!0,p=!1,f=void 0;try{for(var m,v=i["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(d=(m=v.next()).done);d=!0){var y=m.value,g={};g.component=1,g.foundation=y.foundation,g.ip=y.ip,g.port=y.port,g.priority=y.priority,g.transport=y.protocol.toLowerCase(),g.type=y.type,"tcp"===g.transport&&(g.tcptype=y.tcpType),u.candidates.push(g)}}catch(e){p=!0,f=e}finally{try{!d&&v.return&&v.return()}finally{if(p)throw f}}if(u.endOfCandidates="end-of-candidates",u.setup="offer"===e?"actpass":"server"===a.role?"active":"passive","audio"===o||"video"===o){u.rtp=[],u.rtcpFb=[],u.fmtp=[];var b=[],E=!0,T=!1,_=void 0;try{for(var C,w=s.codecs["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(E=(C=w.next()).done);E=!0){var R=C.value;if(!R.kind||R.kind===o){b.push(R.preferredPayloadType);var k={codec:R.name,payload:R.preferredPayloadType,rate:R.clockRate};if(R.numChannels>1&&(k.encoding=R.numChannels),u.rtp.push(k),R.parameters){var A={config:"",payload:R.preferredPayloadType},P=!0,I=!1,O=void 0;try{for(var D,L=Object.keys(R.parameters)["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(P=(D=L.next()).done);P=!0){var N=D.value;A.config&&(A.config+=";"),A.config+=N+"="+R.parameters[N]}}catch(e){I=!0,O=e}finally{try{!P&&L.return&&L.return()}finally{if(I)throw O}}A.config&&u.fmtp.push(A)}var M=!0,x=!1,j=void 0;try{for(var F,U=(R.rtcpFeedback||[])["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(M=(F=U.next()).done);M=!0){var B=F.value;u.rtcpFb.push({payload:R.preferredPayloadType,subtype:B.parameter||void 0,type:B.type})}}catch(e){x=!0,j=e}finally{try{!M&&U.return&&U.return()}finally{if(x)throw j}}}}}catch(e){T=!0,_=e}finally{try{!E&&w.return&&w.return()}finally{if(T)throw _}}0===b.length?(u.payloads="9",u.port=0,u.direction="inactive"):u.payloads=b.join(" "),u.ssrcs=[],u.ssrcGroups=[];var J=!0,G=!1,H=void 0;try{for(var V,W=c.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(J=(V=W.next()).done);J=!0){var K=V.value,q=K.rtpSender,z=K.stream.id,$=q.track;if("ended"!==$.readyState&&$.kind===o){K.ssrc||(K.ssrc=h.a.generateSsrc());var X=l&&"video"===$.kind;X&&!K.rtxSsrc&&(K.rtxSsrc=K.ssrc+1),u.ssrcs.push({attribute:"cname",id:K.ssrc,value:S}),u.ssrcs.push({attribute:"msid",id:K.ssrc,value:z+" "+$.id}),u.ssrcs.push({attribute:"mslabel",id:K.ssrc,value:z}),u.ssrcs.push({attribute:"label",id:K.ssrc,value:$.id}),X&&(u.ssrcs.push({attribute:"cname",id:K.rtxSsrc,value:S}),u.ssrcs.push({attribute:"msid",id:K.rtxSsrc,value:z+" "+$.id}),u.ssrcs.push({attribute:"mslabel",id:K.rtxSsrc,value:z}),u.ssrcs.push({attribute:"label",id:K.rtxSsrc,value:$.id}),u.ssrcGroups.push({semantics:"FID",ssrcs:K.ssrc+" "+K.rtxSsrc}))}}}catch(e){G=!0,H=e}finally{try{!J&&W.return&&W.return()}finally{if(G)throw H}}u.ext=[];var Q=!0,Y=!1,Z=void 0;try{for(var ee,te=s.headerExtensions["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(Q=(ee=te.next()).done);Q=!0){var ne=ee.value;ne.kind&&ne.kind!==o||u.ext.push({value:ne.preferredId,uri:ne.uri})}}catch(e){Y=!0,Z=e}finally{try{!Q&&te.return&&te.return()}finally{if(Y)throw Z}}u.rtcpMux="rtcp-mux",u.rtcpRsize="rtcp-rsize"}n.media.push(u)}var n={},r=this._iceGatherer.getLocalParameters(),i=this._iceGatherer.getLocalCandidates(),o=this._dtlsTransport.getLocalParameters(),a=this._dtlsTransport.getRemoteParameters(),s=this._localCapabilities,c=this._localTrackInfos;"offer"===e&&this._sdpGlobalFields.version++,n.version=0,n.origin={address:"127.0.0.1",ipVer:4,netType:"IN",sessionId:this._sdpGlobalFields.id,sessionVersion:this._sdpGlobalFields.version,username:"jitsi-ortc-webrtc-shim"},n.name="-",n.timing={start:0,stop:0},n.msidSemantic={semantic:"WMS",token:"*"},n.groups=[{mids:Array.from(this._mids.keys()).join(" "),type:"BUNDLE"}],n.media=[],n.fingerprint={hash:o.fingerprints[0].value,type:o.fingerprints[0].algorithm};var l=!1,d=!0,p=!1,f=void 0;try{for(var v,g=s.codecs["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(d=(v=g.next()).done);d=!0){var b=v.value;if("video"===b.kind&&"rtx"===b.name){l=!0;break}}}catch(e){p=!0,f=e}finally{try{!d&&g.return&&g.return()}finally{if(p)throw f}}var E=!0,T=!1,_=void 0;try{for(var C,w=this._mids["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(E=(C=w.next()).done);E=!0){var R=m(C.value,2),k=R[0],A=R[1];t.call(this,k,A)}}catch(e){T=!0,_=e}finally{try{!E&&w.return&&w.return()}finally{if(T)throw _}}var P=new u.a({type:e,_sdpObject:n});return y.debug("_createLocalDescription():",P),P}},{key:"_createOffer",value:function(e){return this._closed?Promise.reject(new d.a("RTCPeerConnection closed")):this.signalingState!==g.stable?Promise.reject(new d.a('invalid signalingState "'+this.signalingState+'"')):Promise.reject(new Error("createoOffer() not yet supported"))}},{key:"_emitAddStream",value:function(e){if(!this._closed){y.debug('emitting "addstream"');var t=new c.a.Event("addstream");t.stream=e,this.dispatchEvent(t)}}},{key:"_emitBufferedIceCandidates",value:function(){if(!this._closed){var e=!0,t=!1,n=void 0;try{for(var r,i=this._bufferedIceCandidates["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(e=(r=i.next()).done);e=!0){var o=r.value;if(o){o.sdpMIndex=this._mids.keys().next().value,y.debug('emitting buffered "icecandidate", candidate:',o);var a=new c.a.Event("icecandidate");a.candidate=o,this.dispatchEvent(a)}}}catch(e){t=!0,n=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}this._bufferedIceCandidates=[]}}},{key:"_emitConnectionStateChange",value:function(){if(!this._closed||"closed"===this.connectionState){y.debug('emitting "connectionstatechange", connectionState:',this.connectionState);var e=new c.a.Event("connectionstatechange");this.dispatchEvent(e)}}},{key:"_emitIceCandidate",value:function(e){if(!this._closed){var t=null;if(e){var n=this._mids.keys().next().value,r="candidate:"+e.foundation+" 1 "+e.protocol+" "+e.priority+" "+e.ip+" "+e.port+" typ "+e.type;e.relatedAddress&&(r+=" raddr "+e.relatedAddress),e.relatedPort&&(r+=" rport "+e.relatedPort),"tcp"===e.protocol&&(r+=" tcptype "+e.tcpType),t={candidate:r,component:1,foundation:e.foundation,ip:e.ip,port:e.port,priority:e.priority,protocol:e.protocol,type:e.type,sdpMIndex:n,sdpMLineIndex:0},"tcp"===e.protocol&&(t.tcptype=e.tcpType),e.relatedAddress&&(t.relatedAddress=e.relatedAddress),e.relatedPort&&(t.relatedPort=e.relatedPort)}if(this._localDescription){y.debug('emitting "icecandidate", candidate:',t);var i=new c.a.Event("icecandidate");i.candidate=t,this.dispatchEvent(i)}else y.debug("buffering gathered ICE candidate:",t),this._bufferedIceCandidates.push(t)}}},{key:"_emitIceConnectionStateChange",value:function(){if(!this._closed||"closed"===this.iceConnectionState){y.debug('emitting "iceconnectionstatechange", iceConnectionState:',this.iceConnectionState);var e=new c.a.Event("iceconnectionstatechange");this.dispatchEvent(e)}}},{key:"_emitNegotiationNeeded",value:function(){if(this.signalingState===g.stable){y.debug('emitting "negotiationneeded"');var e=new c.a.Event("negotiationneeded");this.dispatchEvent(e)}}},{key:"_emitRemoveStream",value:function(e){if(!this._closed){y.debug('emitting "removestream"');var t=new c.a.Event("removestream");t.stream=e,this.dispatchEvent(t)}}},{key:"_getParametersForRtpReceiver",value:function(e,t){var n=t.ssrc,r=t.rtxSsrc,i=t.cname,o=this._localCapabilities,a={codecs:[],degradationPreference:"balanced",encodings:[],headerExtensions:[],muxId:"",rtcp:{cname:i,compound:!0,mux:!0,reducedSize:!0}},s=[],c=void 0,u=!0,l=!1,d=void 0;try{for(var p,f=o.codecs["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(u=(p=f.next()).done);u=!0){var h=p.value;if(h.kind===e&&"rtx"!==h.name){c=h.preferredPayloadType,s.push({clockRate:h.clockRate,maxptime:h.maxptime,mimeType:h.mimeType,name:h.name,numChannels:h.numChannels,parameters:h.parameters,payloadType:h.preferredPayloadType,ptime:h.ptime,rtcpFeedback:h.rtcpFeedback});break}}}catch(e){l=!0,d=e}finally{try{!u&&f.return&&f.return()}finally{if(l)throw d}}if(r){var m=!0,v=!1,y=void 0;try{for(var g,b=o.codecs["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(m=(g=b.next()).done);m=!0){var S=g.value;if(S.kind===e&&"rtx"===S.name){s.push({clockRate:S.clockRate,mimeType:S.mimeType,name:"rtx",parameters:S.parameters,payloadType:S.preferredPayloadType,rtcpFeedback:S.rtcpFeedback});break}}}catch(e){v=!0,y=e}finally{try{!m&&b.return&&b.return()}finally{if(v)throw y}}}a.codecs=s;var E={active:!0,codecPayloadType:c,ssrc:n};r&&(E.rtx={ssrc:r}),a.encodings.push(E);var T=!0,_=!1,C=void 0;try{for(var w,R=o.headerExtensions["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(T=(w=R.next()).done);T=!0){var k=w.value;k.kind===e&&a.headerExtensions.push({encrypt:k.preferredEncrypt,id:k.preferredId,uri:k.uri})}}catch(e){_=!0,C=e}finally{try{!T&&R.return&&R.return()}finally{if(_)throw C}}return a}},{key:"_getParametersForRtpSender",value:function(e,t){var n=t.ssrc,r=t.rtxSsrc,i=S,o=this._localCapabilities,a={codecs:[],degradationPreference:"balanced",encodings:[],headerExtensions:[],muxId:"",rtcp:{cname:i,compound:!0,mux:!0,reducedSize:!0}},s=[],c=void 0,u=!0,l=!1,d=void 0;try{for(var p,f=o.codecs["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(u=(p=f.next()).done);u=!0){var h=p.value;if(h.kind===e&&"rtx"!==h.name){c=h.preferredPayloadType,s.push({clockRate:h.clockRate,maxptime:h.maxptime,mimeType:h.mimeType,name:h.name,numChannels:h.numChannels,parameters:h.parameters,payloadType:h.preferredPayloadType,ptime:h.ptime,rtcpFeedback:h.rtcpFeedback});break}}}catch(e){l=!0,d=e}finally{try{!u&&f.return&&f.return()}finally{if(l)throw d}}if(r){var m=!0,v=!1,y=void 0;try{for(var g,b=o.codecs["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(m=(g=b.next()).done);m=!0){var E=g.value;if(E.kind===e&&"rtx"===E.name){s.push({clockRate:E.clockRate,mimeType:E.mimeType,name:"rtx",parameters:E.parameters,payloadType:E.preferredPayloadType,rtcpFeedback:E.rtcpFeedback});break}}}catch(e){v=!0,y=e}finally{try{!m&&b.return&&b.return()}finally{if(v)throw y}}}a.codecs=s;var T={active:!0,codecPayloadType:c,ssrc:n};r&&(T.rtx={ssrc:r}),a.encodings.push(T);var _=!0,C=!1,w=void 0;try{for(var R,k=o.headerExtensions["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(_=(R=k.next()).done);_=!0){var A=R.value;A.kind===e&&a.headerExtensions.push({encrypt:A.preferredEncrypt,id:A.preferredId,uri:A.uri})}}catch(e){C=!0,w=e}finally{try{!_&&k.return&&k.return()}finally{if(C)throw w}}return a}},{key:"_getStats",value:function(e){if(this._closed)return Promise.reject(new d.a("RTCPeerConnection closed"));var t=this._iceGatherer,n=this._iceTransport,r=[],i=[],o=[],a=!0,s=!1,c=void 0;try{for(var u,l=this._localTrackInfos.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(a=(u=l.next()).done);a=!0){var p=u.value,f=p.rtpSender;p.sending&&r.push(f)}}catch(e){s=!0,c=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw c}}var h=!0,m=!1,v=void 0;try{for(var y,g=this._remoteTrackInfos.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(h=(y=g.next()).done);h=!0){var b=y.value,S=b.rtpReceiver;i.push(S)}}catch(e){m=!0,v=e}finally{try{!h&&g.return&&g.return()}finally{if(m)throw v}}t&&o.push(t.getStats().catch(function(){return null})),n&&(o.push(n.getStats().catch(function(){return null})),"function"==typeof n.msGetStats&&o.push(n.msGetStats().catch(function(){return null})));var E=!0,T=!1,_=void 0;try{for(var C,w=r["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(E=(C=w.next()).done);E=!0)!function(){var e=C.value,t="audio"===e.track.kind;o.push(e.getStats().then(function(e){if(!t){var n=!0,r=!1,i=void 0;try{for(var o,a=Object.keys(e)["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(n=(o=a.next()).done);n=!0){var s=o.value,c=e[s];"track"===c.type&&delete c.audioLevel}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}return e}).catch(function(){return null}))}()}catch(e){T=!0,_=e}finally{try{!E&&w.return&&w.return()}finally{if(T)throw _}}var R=!0,k=!1,A=void 0;try{for(var P,I=i["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(R=(P=I.next()).done);R=!0)!function(){var e=P.value,t="audio"===e.track.kind;o.push(e.getStats().then(function(e){if(!t){var n=!0,r=!1,i=void 0;try{for(var o,a=Object.keys(e)["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(n=(o=a.next()).done);n=!0){var s=o.value,c=e[s];"track"===c.type&&delete c.audioLevel}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}return e}).catch(function(){return null}))}()}catch(e){k=!0,A=e}finally{try{!R&&I.return&&I.return()}finally{if(k)throw A}}return Promise.all(o).then(function(e){var t={},n=!0,r=!1,i=void 0;try{for(var o,a=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(n=(o=a.next()).done);n=!0){var s=o.value;if(s){var c=!0,u=!1,l=void 0;try{for(var d,p=Object.keys(s)["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(c=(d=p.next()).done);c=!0){var f=d.value;t[f]=s[f]}}catch(e){u=!0,l=e}finally{try{!c&&p.return&&p.return()}finally{if(u)throw l}}}}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return t})}},{key:"_handleLocalInitialAnswer",value:function(e){y.debug("_handleLocalInitialAnswer(), desc:",e);var t=e.sdpObject;this._localCapabilities=l.a(t),y.debug("local capabilities:",this._localCapabilities)}},{key:"_handleLocalReAnswer",value:function(e){y.debug("_handleLocalReAnswer(), desc:",e);var t=e.sdpObject;this._localCapabilities=l.a(t),y.debug("local capabilities:",this._localCapabilities)}},{key:"_handleRemoteInitialOffer",value:function(e){y.debug("_handleRemoteInitialOffer(), desc:",e);var t=e.sdpObject;this._mids=l.b(t);var n=l.a(t);y.debug("remote capabilities:",n),this._localCapabilities=l.c(n),this._startIceAndDtls(e)}},{key:"_handleRemoteReOffer",value:function(e){y.debug("_handleRemoteReOffer(), desc:",e);var t=e.sdpObject;this._mids=l.b(t);var n=l.a(t);y.debug("remote capabilities:",n),this._localCapabilities=l.c(n)}},{key:"_receiveMedia",value:function(){y.debug("_receiveMedia()");var e=new Set(this._remoteTrackInfos.keys()),t=l.d(this._remoteDescription.sdpObject),n=new Map,r=new Map,i=new Map;y.debug("_receiveMedia() remote track infos:",t);var o=!0,a=!1,s=void 0;try{for(var c,u=t["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(o=(c=u.next()).done);o=!0){var d=m(c.value,2),p=d[0],f=d[1];if(!e.has(p)){y.debug("_receiveMedia() new remote track, ssrc:"+p),this._remoteTrackInfos.set(p,f);var h=f.kind,v=f.rtxSsrc,g=f.streamId,b=f.trackId,S=f.cname,E=!this._remoteStreams.has(g),T=void 0;E?(y.debug("_receiveMedia() new remote stream, id:"+g),T=new MediaStream,T.jitsiRemoteId=g,n.set(g,T),this._remoteStreams.set(g,T)):T=this._remoteStreams.get(g);var _=new RTCRtpReceiver(this._dtlsTransport,h),C=this._getParametersForRtpReceiver(h,{ssrc:p,rtxSsrc:v,cname:S});f.track=_.track,_.onerror=function(e){y.error('rtpReceiver "error" event, event:'),y.error(e)},f.stream=T,f.rtpReceiver=_,y.debug("calling rtpReceiver.receive(), parameters:",C);try{_.receive(C);var w=f.track;w.jitsiRemoteId=b,T.addTrack(w),n.has(g)||r.set(w,T)}catch(e){y.error("rtpReceiver.receive() failed:"+e.message),y.error(e)}}}}catch(e){a=!0,s=e}finally{try{!o&&u.return&&u.return()}finally{if(a)throw s}}var R=!0,k=!1,A=void 0;try{for(var P,I=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(R=(P=I.next()).done);R=!0){var p=P.value;if(!t.has(p)){y.debug("_receiveMedia() remote track removed, ssrc:"+p);var f=this._remoteTrackInfos.get(p),O=f.stream,D=f.track,L=f.rtpReceiver;try{L.stop()}catch(e){y.warn("rtpReceiver.stop() failed:"+e)}i.set(D,O),O.removeTrack(D),this._remoteTrackInfos.delete(p)}}}catch(e){k=!0,A=e}finally{try{!R&&I.return&&I.return()}finally{if(k)throw A}}var N=!0,M=!1,x=void 0;try{for(var j,F=r["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(N=(j=F.next()).done);N=!0){var U=m(j.value,2),B=U[0],J=U[1],G=new Event("addtrack");G.track=B,J.dispatchEvent(G)}}catch(e){M=!0,x=e}finally{try{!N&&F.return&&F.return()}finally{if(M)throw x}}var H=!0,V=!1,W=void 0;try{for(var K,q=i["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(H=(K=q.next()).done);H=!0){var z=m(K.value,2),$=z[0],X=z[1],Q=new Event("removetrack");Q.track=$,X.dispatchEvent(Q)}}catch(e){V=!0,W=e}finally{try{!H&&q.return&&q.return()}finally{if(V)throw W}}var Y=!0,Z=!1,ee=void 0;try{for(var te,ne=n.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(Y=(te=ne.next()).done);Y=!0){var re=te.value;0===re.getTracks().length?(y.warn("ignoring new stream for which no track could be added"),n.delete(re.jitsiRemoteId),this._remoteStreams.delete(re.jitsiRemoteId)):this._emitAddStream(re)}}catch(e){Z=!0,ee=e}finally{try{!Y&&ne.return&&ne.return()}finally{if(Z)throw ee}}var ie=!0,oe=!1,ae=void 0;try{for(var se,ce=this._remoteStreams["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(ie=(se=ce.next()).done);ie=!0){var ue=m(se.value,2),le=ue[0],de=ue[1];de.getTracks().length>0||(this._remoteStreams.delete(le),this._emitRemoveStream(de))}}catch(e){oe=!0,ae=e}finally{try{!ie&&ce.return&&ce.return()}finally{if(oe)throw ae}}}},{key:"_removeStream",value:function(e){if(this._closed)throw new d.a("RTCPeerConnection closed");var t=!0,n=!1,r=void 0;try{for(var i,o=e.getTracks()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(t=(i=o.next()).done);t=!0){var a=i.value;if(this._localTrackInfos.has(a.id)){var s=this._localTrackInfos.get(a.id).rtpSender;try{s.stop()}catch(e){y.warn("rtpSender.stop() failed:"+e)}this._localTrackInfos.delete(a.id)}}}catch(e){n=!0,r=e}finally{try{!t&&o.return&&o.return()}finally{if(n)throw r}}this._emitNegotiationNeeded()}},{key:"_sendMedia",value:function(){y.debug("_sendMedia()");var e=!0,t=!1,n=void 0;try{for(var r,i=this._localTrackInfos.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(e=(r=i.next()).done);e=!0){var o=r.value;if(!o.sending){var a=o.rtpSender,s=o.ssrc,c=o.rtxSsrc,u=a.track,l=u.kind,d=this._getParametersForRtpSender(l,{ssrc:s,rtxSsrc:c});y.debug("calling rtpSender.send(), parameters:",d);try{a.send(d),o.sending=!0}catch(e){y.error("rtpSender.send() failed:"+e.message),y.error(e)}}}}catch(e){t=!0,n=e}finally{try{!e&&i.return&&i.return()}finally{if(t)throw n}}}},{key:"_setDtlsTransport",value:function(e){var t=this,n=new RTCDtlsTransport(e);n.onstatechange=function(){y.debug('dtlsTransport "statechange" event, state:'+n.state),t._emitConnectionStateChange()},n.ondtlsstatechange=function(){y.debug('dtlsTransport "dtlsstatechange" event, state:'+n.state),t._emitConnectionStateChange()},n.onerror=function(e){var n=void 0;e.message?n=e.message:e.error&&(n=e.error.message),y.error('dtlsTransport "error" event, message:'+n),t._emitConnectionStateChange()},this._dtlsTransport=n}},{key:"_setIceGatherer",value:function(e){var t=this,n={gatherPolicy:e.iceTransportPolicy||"all",iceServers:e.iceServers||[]},r=new RTCIceGatherer(n);r.onstatechange=function(){y.debug('iceGatherer "statechange" event, state:'+r.state),t._updateAndEmitIceGatheringStateChange(r.state)},r.onlocalcandidate=function(e){var n=e.candidate,r=e.complete;y.debug('iceGatherer "localcandidate" event, candidate:',n),r||!n||0===Object.keys(n).length?(n=null,t._updateAndEmitIceGatheringStateChange(b.complete),t._emitIceCandidate(null)):t._emitIceCandidate(n)},r.onerror=function(e){var t=e.errorCode,n=e.errorText;y.error('iceGatherer "error" event, errorCode:'+t+", errorText:"+n)};try{r.gather()}catch(e){y.warn("iceGatherer.gather() failed:"+e)}this._iceGatherer=r}},{key:"_setIceTransport",value:function(e){var t=this,n=new RTCIceTransport(e);n.onstatechange=function(){y.debug('iceTransport "statechange" event, state:'+n.state),t._emitIceConnectionStateChange()},n.onicestatechange=function(){y.debug('iceTransport "icestatechange" event, state:'+n.state),"completed"===n.state&&y.debug("nominated candidate pair:",n.getNominatedCandidatePair()),t._emitIceConnectionStateChange()},n.oncandidatepairchange=function(e){y.debug('iceTransport "candidatepairchange" event, pair:'+e.pair)},this._iceTransport=n}},{key:"_setLocalDescription",value:function(e){var t=this;if(this._closed)return Promise.reject(new d.a("RTCPeerConnection closed"));var n=void 0;try{n=new u.a(e)}catch(e){return Promise.reject(new TypeError("invalid RTCSessionDescriptionInit: "+e))}switch(e.type){case"offer":return this.signalingState!==g.stable?Promise.reject(new d.a('invalid signalingState "'+this.signalingState+'"')):Promise.reject(new TypeError('setLocalDescription() with type "offer" not supported'));case"answer":if(this.signalingState!==g.haveRemoteOffer)return Promise.reject(new d.a('invalid signalingState "'+this.signalingState+'"'));var r=Boolean(!this._localDescription);return Promise.resolve().then(function(){return r?t._handleLocalInitialAnswer(n):t._handleLocalReAnswer(n)}).then(function(){y.debug("setLocalDescription() succeed"),t._localDescription=n,t._updateAndEmitSignalingStateChange(g.stable),r&&t._emitBufferedIceCandidates(),t._sendMedia(),t._receiveMedia()}).catch(function(e){throw y.error("setLocalDescription() failed: "+e.message),y.error(e),e});default:return Promise.reject(new TypeError('unsupported description.type "'+e.type+'"'))}}},{key:"_setRemoteDescription",value:function(e){var t=this;if(this._closed)return Promise.reject(new d.a("RTCPeerConnection closed"));var n=void 0;try{n=new u.a(e)}catch(e){return Promise.reject(new TypeError("invalid RTCSessionDescriptionInit: "+e))}switch(e.type){case"offer":if(this.signalingState!==g.stable)return Promise.reject(new d.a('invalid signalingState "'+this.signalingState+'"'));var r=Boolean(!this._remoteDescription);return Promise.resolve().then(function(){return r?t._handleRemoteInitialOffer(n):t._handleRemoteReOffer(n)}).then(function(){y.debug("setRemoteDescription() succeed"),
t._remoteDescription=n,t._updateAndEmitSignalingStateChange(g.haveRemoteOffer)}).catch(function(e){throw y.error("setRemoteDescription() failed: "+e),e});case"answer":return this.signalingState!==g.haveLocalOffer?Promise.reject(new d.a('invalid signalingState "'+this.signalingState+'"')):Promise.reject(new TypeError('setRemoteDescription() with type "answer" not supported'));default:return Promise.reject(new TypeError('unsupported description.type "'+e.type+'"'))}}},{key:"_startIceAndDtls",value:function(e){var t=e.sdpObject,n=l.e(t),r=l.f(t),i=l.g(t);switch(e.type){case"offer":this._iceTransport.start(this._iceGatherer,n,"controlled");break;case"answer":this._iceTransport.start(this._iceGatherer,n,"controlling")}var o=!0,a=!1,s=void 0;try{for(var c,u=r["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(o=(c=u.next()).done);o=!0){var d=c.value;0!==d.port&&9!==d.port&&this._iceTransport.addRemoteCandidate(d)}}catch(e){a=!0,s=e}finally{try{!o&&u.return&&u.return()}finally{if(a)throw s}}switch(this._iceTransport.addRemoteCandidate({}),e.type){case"offer":i.role="server";break;case"answer":i.role="client"}this._dtlsTransport.start(i)}},{key:"_updateAndEmitIceGatheringStateChange",value:function(e){if(!this._closed&&e!==this.iceGatheringState){this._iceGatheringState=e,y.debug('emitting "icegatheringstatechange", iceGatheringState:',this.iceGatheringState);var t=new c.a.Event("icegatheringstatechange");this.dispatchEvent(t)}}},{key:"_updateAndEmitSignalingStateChange",value:function(e){if(e!==this.signalingState){this._signalingState=e,y.debug('emitting "signalingstatechange", signalingState:',this.signalingState);var t=new c.a.Event("signalingstatechange");this.dispatchEvent(t)}}},{key:"connectionState",get:function(){return this._dtlsTransport.state}},{key:"iceConnectionState",get:function(){return this._iceTransport.state}},{key:"iceGatheringState",get:function(){return this._iceGatheringState}},{key:"localDescription",get:function(){return this._localDescription}},{key:"remoteDescription",get:function(){return this._remoteDescription}},{key:"signalingState",get:function(){return this._signalingState}}]),t}(c.a.EventTarget);t.a=E}).call(t,"modules/RTC/ortc/RTCPeerConnection.js")},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(13),o=n.n(i),a="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(){function e(t){switch(r(this,e),this._sdp=null,this._sdpObject=null,this._type=null,t.type){case"offer":case"answer":break;default:throw new TypeError('invalid type "'+t.type+'"')}if(this._type=t.type,"string"==typeof t.sdp){this._sdp=t.sdp;try{this._sdpObject=o.a.parse(t.sdp)}catch(e){throw new Error("invalid sdp: "+e)}}else{if("object"!==a(t._sdpObject))throw new TypeError("invalid sdp or _sdpObject");this._sdpObject=t._sdpObject;try{this._sdp=o.a.write(t._sdpObject)}catch(e){throw new Error("invalid sdp object: "+e)}}}return s(e,[{key:"toJSON",value:function(){return{sdp:this._sdp,type:this._type}}},{key:"sdp",get:function(){return this._sdp},set:function(e){try{this._sdpObject=o.a.parse(e)}catch(e){throw new Error("invalid sdp: "+e)}this._sdp=e}},{key:"sdpObject",get:function(){return this._sdpObject}},{key:"type",get:function(){return this._type}}]),e}();t.a=c},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}n.d(t,"a",function(){return a});var a=function(e){return function(t){function n(t){r(this,n);var o=i(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t));return Object.defineProperty(o,"name",{value:e}),o}return o(n,t),n}(Error)}("InvalidStateError")},function(e,t,n){"use strict";function r(e){var t=new Map,n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e.media["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(a=s.next()).done);r=!0){var c=a.value,u=c.type;if("audio"===u||"video"===u){var l=!0,d=!1,f=void 0;try{for(var h,m=c.rtp["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(l=(h=m.next()).done);l=!0){var v=h.value,y={clockRate:v.rate,kind:u,mimeType:u+"/"+v.codec,name:v.codec,numChannels:v.encoding||1,parameters:{},preferredPayloadType:v.payload,rtcpFeedback:[]};t.set(y.preferredPayloadType,y)}}catch(e){d=!0,f=e}finally{try{!l&&m.return&&m.return()}finally{if(d)throw f}}var g=!0,b=!1,S=void 0;try{for(var E,T=(c.fmtp||[])["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(g=(E=T.next()).done);g=!0){var _=E.value,C=p.a.parseFmtpConfig(_.config),w=t.get(_.payload);w&&(w.parameters=C)}}catch(e){b=!0,S=e}finally{try{!g&&T.return&&T.return()}finally{if(b)throw S}}var R=!0,k=!1,A=void 0;try{for(var P,I=(c.rtcpFb||[])["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(R=(P=I.next()).done);R=!0){var O=P.value,D=t.get(O.payload);D&&D.rtcpFeedback.push({parameter:O.subtype||"",type:O.type})}}catch(e){k=!0,A=e}finally{try{!R&&I.return&&I.return()}finally{if(k)throw A}}var L=!0,N=!1,M=void 0;try{for(var x,j=(c.ext||[])["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(L=(x=j.next()).done);L=!0)!function(){var e=x.value,t=e.value,r=e.uri,i={kind:u,uri:r,preferredId:t};n.find(function(e){return i.kind===e.kind&&i.uri===e.uri})||n.push(i)}()}catch(e){N=!0,M=e}finally{try{!L&&j.return&&j.return()}finally{if(N)throw M}}}}}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return{codecs:Array.from(t.values()),fecMechanisms:[],headerExtensions:n}}function i(e){var t=l(e),n=t.fingerprint||e.fingerprint,r=void 0;switch(t.setup){case"active":r="client";break;case"passive":r="server";break;case"actpass":r="auto"}return{role:r,fingerprints:[{algorithm:n.type,value:n.hash}]}}function o(e){var t=l(e),n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t.candidates["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(a=s.next()).done);r=!0){var c=a.value;if(1===c.component){var u={foundation:c.foundation,ip:c.ip,port:c.port,priority:c.priority,protocol:c.transport.toLowerCase(),type:c.type};n.push(u)}}}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}function a(e){var t=l(e),n=t.iceUfrag,r=t.icePwd;return{icelite:"ice-lite"===e.icelite,password:r,usernameFragment:n}}function s(e){var t=new Map,n=!0,r=!1,i=void 0;try{for(var o,a=e.media["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(n=(o=a.next()).done);n=!0){var s=o.value;t.set(s.mid,s.type)}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return t}function c(e){var t=new Map,n=new Map,r=new Set,i=!0,o=!1,a=void 0;try{for(var s,c=e.media["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(i=(s=c.next()).done);i=!0){var u=s.value,l=u.type;if("audio"===l||"video"===l){var d=!0,p=!1,f=void 0;try{for(var h,m=(u.ssrcGroups||[])["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(d=(h=m.next()).done);d=!0){var v=h.value;if("FID"===v.semantics){var y=v.ssrcs.split(" ").map(function(e){return Number(e)}),g=y[0],b=y[1];n.set(g,b),r.add(b)}}}catch(e){p=!0,f=e}finally{try{!d&&m.return&&m.return()}finally{if(p)throw f}}var S=!0,E=!1,T=void 0;try{for(var _,C=(u.ssrcs||[])["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(S=(_=C.next()).done);S=!0){var w=_.value,R=w.id;if(!r.has(R)){var k=t.get(R);switch(k||(k={kind:l,rtxSsrc:n.get(R),ssrc:R},t.set(R,k)),w.attribute){case"cname":k.cname=w.value;break;case"msid":var A=w.value.split(" "),P=A[0],I=A[1];k.streamId=P,k.trackId=I;break;case"mslabel":var O=w.value;k.streamId=O;break;case"label":var D=w.value;k.trackId=D}}}}catch(e){E=!0,T=e}finally{try{!S&&C.return&&C.return()}finally{if(E)throw T}}}}}catch(e){o=!0,a=e}finally{try{!i&&c.return&&c.return()}finally{if(o)throw a}}return t}function u(e){var t=RTCRtpReceiver.getCapabilities(),n={codecs:[],fecMechanisms:[],headerExtensions:[]},r=new Map,i=!0,o=!1,a=void 0;try{for(var s,c=e.codecs["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(i=(s=c.next()).done);i=!0)!function(){var e=s.value,i=e.name.toLowerCase();if("rtx"===i)return r.set(e.parameters.apt,e.preferredPayloadType),"continue";var o=t.codecs.find(function(t){return t.name.toLowerCase()===i&&t.kind===e.kind&&t.clockRate===e.clockRate});if(!o)return"continue";var a={clockRate:o.clockRate,kind:o.kind,mimeType:o.kind+"/"+o.name,name:o.name,numChannels:o.numChannels||1,parameters:{},preferredPayloadType:e.preferredPayloadType,rtcpFeedback:[]},c=!0,u=!1,l=void 0;try{for(var d,p=Object.keys(e.parameters)["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(c=(d=p.next()).done);c=!0){var f=d.value,h=e.parameters[f],m=!0,v=!1,y=void 0;try{for(var g,b=Object.keys(o.parameters)["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(m=(g=b.next()).done);m=!0){var S=g.value,E=o.parameters[S];if(S===f&&E===h){a.parameters[S]=E;break}}}catch(e){v=!0,y=e}finally{try{!m&&b.return&&b.return()}finally{if(v)throw y}}}}catch(e){u=!0,l=e}finally{try{!c&&p.return&&p.return()}finally{if(u)throw l}}var T=!0,_=!1,C=void 0;try{for(var w,R=e.rtcpFeedback["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(T=(w=R.next()).done);T=!0)!function(){var e=w.value,t=o.rtcpFeedback.find(function(t){return t.type===e.type&&t.parameter===e.parameter});t&&a.rtcpFeedback.push(t)}()}catch(e){_=!0,C=e}finally{try{!T&&R.return&&R.return()}finally{if(_)throw C}}n.codecs.push(a)}()}catch(e){o=!0,a=e}finally{try{!i&&c.return&&c.return()}finally{if(o)throw a}}var u=!0,l=!1,d=void 0;try{for(var p,f=n.codecs["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(u=(p=f.next()).done);u=!0){var h=p.value,m=h.preferredPayloadType;if(r.has(m)){var v={clockRate:h.clockRate,kind:h.kind,mimeType:h.kind+"/rtx",name:"rtx",parameters:{apt:m},preferredPayloadType:r.get(m),rtcpFeedback:[]};n.codecs.push(v)}}}catch(e){l=!0,d=e}finally{try{!u&&f.return&&f.return()}finally{if(l)throw d}}var y=!0,g=!1,b=void 0;try{for(var S,E=e.headerExtensions["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(y=(S=E.next()).done);y=!0)!function(){var e=S.value,r=t.headerExtensions.find(function(t){return t.kind===e.kind&&t.uri===e.uri});if(r){var i={kind:r.kind,preferredEncrypt:Boolean(e.preferredEncrypt),preferredId:e.preferredId,uri:r.uri};n.headerExtensions.push(i)}}()}catch(e){g=!0,b=e}finally{try{!y&&E.return&&E.return()}finally{if(g)throw b}}var T=!0,_=!1,C=void 0;try{for(var w,R=e.fecMechanisms["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(T=(w=R.next()).done);T=!0)!function(){var e=w.value,r=t.fecMechanisms.find(function(t){return t===e});r&&n.fecMechanisms.push(r)}()}catch(e){_=!0,C=e}finally{try{!T&&R.return&&R.return()}finally{if(_)throw C}}return n}function l(e){return e.media.find(function(e){return e.iceUfrag&&0!==e.port})}t.a=r,t.g=i,t.f=o,t.e=a,t.b=s,t.d=c,t.c=u;var d=n(13),p=n.n(d)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(5),o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(){function e(t,n){r(this,e),this._callback=n,this._eventFired=!1,t.statistics.addAudioLevelListener(this._audioLevel.bind(this)),t.on(i.TRACK_MUTE_CHANGED,this._trackMuteChanged.bind(this)),t.on(i.TRACK_ADDED,this._trackAdded.bind(this))}return o(e,[{key:"_audioLevel",value:function(e,t,n,r){r&&this.audioTrack&&!this._eventFired&&this.audioTrack.isMuted()&&n>.6&&(this._eventFired=!0,this._callback())}},{key:"_isLocalAudioTrack",value:function(e){return e.isAudioTrack()&&e.isLocal()}},{key:"_trackAdded",value:function(e){this._isLocalAudioTrack(e)&&(this.audioTrack=e)}},{key:"_trackMuteChanged",value:function(e){this._isLocalAudioTrack(e)&&e.isMuted()&&(this._eventFired=!1)}}]),e}();t.a=a},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n){if(n<5e3)return 1;var r=0,i=Math.min(t.height,t.width);if(e){var a=m.find(function(e){return e.height<=i});if(a)for(i=a.height;i>=180&&"break"!==function(){var e=i;if(!(a=m.find(function(t){return t.height===e})))return"break";r+=a.target}();i/=2);}else{var s=t.width*t.height;r=s<=76800?600:s<=307200?1700:s<=518400?2e3:2500}return Math.min(r,o(Math.max(0,n-1e3)))}function o(e){return e>6e4?Number.MAX_SAFE_INTEGER:v*Math.pow(1.08,e/1e3)}var a=n(32),s=n(5),c=n(0),u=(n.n(c),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),l=n(7),d=n(17),p=n(31),f=n.i(c.getLogger)(e),h="stats",m=[{width:1920,height:1080,layers:3,max:5e3,target:4e3,min:800},{width:1280,height:720,layers:3,max:2500,target:2500,min:600},{width:960,height:540,layers:3,max:900,target:900,min:450},{width:640,height:360,layers:2,max:700,target:500,min:150},{width:480,height:270,layers:2,max:450,target:350,min:150},{width:320,height:180,layers:1,max:200,target:150,min:30}],v=800,y=function(){function e(t,n,i){var o=this;r(this,e),this.eventEmitter=n,this._conference=t,this._localStats={connectionQuality:100,jvbRTT:void 0},this._lastConnectionQualityUpdate=-1,this._remoteStats={},this._timeIceConnected=-1,this._timeVideoUnmuted=-1,i.startBitrate&&i.startBitrate>0&&(v=i.startBitrate),t.on(s.CONNECTION_INTERRUPTED,function(){o._updateLocalConnectionQuality(0),o.eventEmitter.emit(a.LOCAL_STATS_UPDATED,o._localStats),o._broadcastLocalStats()}),t.room.addListener(l.ICE_CONNECTION_STATE_CHANGED,function(e,t){e.isP2P||"connected"!==t||(o._timeIceConnected=window.performance.now())}),t.on(s.ENDPOINT_MESSAGE_RECEIVED,function(e,t){t.type===h&&o._updateRemoteStats(e.getId(),t.values)}),t.statistics.addConnectionStatsListener(this._updateLocalStats.bind(this)),t.on(s.TRACK_MUTE_CHANGED,function(e){e.isVideoTrack()&&(e.isMuted()?o._timeVideoUnmuted=-1:o._maybeUpdateUnmuteTime())}),t.on(s.TRACK_ADDED,function(e){e.isVideoTrack()&&!e.isMuted()&&o._maybeUpdateUnmuteTime()})}return u(e,[{key:"_maybeUpdateUnmuteTime",value:function(){this._timeVideoUnmuted<0&&(this._timeVideoUnmuted=window.performance.now())}},{key:"_calculateConnectionQuality",value:function(e,t,n){var r=p[n],o=100,a=void 0;if(this._localStats.packetLoss&&(a=this._localStats.packetLoss.upload,t&&(a*=.5)),t||!r||e===d.DESKTOP||this._timeIceConnected<0||this._timeVideoUnmuted<0)void 0===a?(f.error("Cannot calculate connection quality, unknown packet loss."),o=100):o=a<=2?100:a<=4?70:a<=6?50:a<=8?30:a<=12?10:0;else{var s=window.performance.now()-Math.max(this._timeVideoUnmuted,this._timeIceConnected),c=this._conference.getActivePeerConnection(),u=Boolean(c&&c.isSimulcastOn()),l=i(u,r,s);l*=.9,o=100*this._localStats.bitrate.upload/l,a&&a>=10&&(o=Math.min(o,30))}if(this._lastConnectionQualityUpdate>0){var h=this._localStats.connectionQuality,m=(window.performance.now()-this._lastConnectionQualityUpdate)/1e3;o=Math.min(o,h+2*m)}return Math.min(100,o)}},{key:"_updateLocalConnectionQuality",value:function(e){this._localStats.connectionQuality=e,this._lastConnectionQualityUpdate=window.performance.now()}},{key:"_broadcastLocalStats",value:function(){var e={bitrate:this._localStats.bitrate,packetLoss:this._localStats.packetLoss,connectionQuality:this._localStats.connectionQuality,jvbRTT:this._localStats.jvbRTT},t=this._conference.getLocalVideoTrack();t&&t.resolution&&(e.resolution=t.resolution);try{this._conference.broadcastEndpointMessage({type:h,values:e})}catch(e){}}},{key:"_updateLocalStats",value:function(e,t){if(!e.isP2P){var n=t.transport&&t.transport.length&&t.transport[0].rtt;this._localStats.jvbRTT=n||void 0}if(e===this._conference.getActivePeerConnection()){var r=void 0,i=!this._conference.isConnectionInterrupted(),o=this._conference.getLocalVideoTrack(),s=o?o.videoType:void 0,c=!o||o.isMuted(),u=o?o.resolution:null;c||this._maybeUpdateUnmuteTime();for(r in t)t.hasOwnProperty(r)&&(this._localStats[r]=t[r]);i&&this._updateLocalConnectionQuality(this._calculateConnectionQuality(s,c,u)),this.eventEmitter.emit(a.LOCAL_STATS_UPDATED,this._localStats),this._broadcastLocalStats()}}},{key:"_updateRemoteStats",value:function(e,t){this._remoteStats[e]={bitrate:t.bitrate,packetLoss:t.packetLoss,connectionQuality:t.connectionQuality,jvbRTT:t.jvbRTT},this.eventEmitter.emit(a.REMOTE_STATS_UPDATED,e,this._remoteStats[e])}},{key:"getStats",value:function(){return this._localStats}}]),e}();t.a=y}).call(t,"modules/connectivity/ConnectionQuality.js")},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(0),o=(n.n(i),n(5)),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n.i(i.getLogger)(e),c=function(){function e(t){var n=this;r(this,e),this._conference=t,this._jvb121=!0,this._conference.addEventListener(o.USER_JOINED,function(){return n.evaluateStatus()}),this._conference.addEventListener(o.USER_LEFT,function(){return n.evaluateStatus()}),this._conference.addEventListener(o.P2P_STATUS,function(){return n.evaluateStatus()})}return a(e,[{key:"evaluateStatus",value:function(){var e=this._jvb121,t=!this._conference.isP2PActive()&&this._conference.getParticipantCount()<=2;e!==t&&(this._jvb121=t,s.debug("JVB121 status "+e+" => "+t),this._conference.eventEmitter.emit(o.JVB121_STATUS,e,t))}}]),e}();t.a=c}).call(t,"modules/event/Jvb121EventGenerator.js")},function(e,t,n){"use strict";function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=function(){function e(){o(this,e)}return a(e,[{key:"sendEvent",value:function(){}}]),e}(),c=function(e){function t(){o(this,t);var e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.eventCache=[],e}return i(t,e),a(t,[{key:"sendEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.eventCache.push({action:e,data:t})}},{key:"drainCachedEvents",value:function(){var e=this.eventCache.slice();return this.eventCache=[],e}}]),t}(s),u=new c,l=function(){function e(){o(this,e),this.analyticsHandlers=new Set,this.permanentProperties=Object.create(null)}return a(e,[{key:"init",value:function(e){this.browserName=e,this.analyticsHandlers.add(u)}},{key:"sendEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=babelHelpers.extends({browserName:this.browserName},this.permanentProperties,t);this.analyticsHandlers.forEach(function(t){return t.sendEvent(e,n)})}},{key:"dispose",value:function(){u.drainCachedEvents(),this.analyticsHandlers.clear()}},{key:"setAnalyticsHandlers",value:function(e){var t=this;this.analyticsHandlers=new Set(e),u.drainCachedEvents().forEach(function(e){return t.sendEvent(e.action,e.data)})}},{key:"addPermanentProperties",value:function(e){this.permanentProperties=babelHelpers.extends(this.permanentProperties,e)}}]),e}();t.a=new l},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(0),o=(n.n(i),n(32)),a=n(5),s=n(4),c=n(1),u=n(6),l=n(17),d=(n.n(l),function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()),p=n.i(i.getLogger)(e),f=function(){function e(t){r(this,e),this.name=t,this.count=0,this.sum=0,this.samples=[]}return d(e,[{key:"addNext",value:function(e){"number"!=typeof e?p.error(this.name+" - invalid value for idx: "+this.count,e):isNaN(e)||(this.sum+=e,this.samples.push(e),this.count+=1)}},{key:"calculate",value:function(){return this.sum/this.count}},{key:"appendReport",value:function(e){e[this.name]={value:this.calculate(),samples:this.samples}}},{key:"reset",value:function(){this.samples=[],this.sum=0,this.count=0}}]),e}(),h=function(){function e(t,n,i){var s=this;r(this,e),this.isP2P=n,this._n=i,this._sampleIdx=0,this._avgRTT=new f("stat_avg_rtt"),this._avgRemoteRTTMap=new Map,this._avgRtpStatsReporter=t,this._avgEnd2EndRTT=void 0,this._onConnectionStats=function(e,t){s.isP2P===e.isP2P&&s._calculateAvgStats(t)};var c=t._conference;c.statistics.addConnectionStatsListener(this._onConnectionStats),this.isP2P||(this._onUserLeft=function(e){return s._avgRemoteRTTMap.delete(e)},c.on(a.USER_LEFT,this._onUserLeft),this._onRemoteStatsUpdated=function(e,t){return s._processRemoteStats(e,t)},c.on(o.REMOTE_STATS_UPDATED,this._onRemoteStatsUpdated))}return d(e,[{key:"_calculateAvgStats",value:function(e){if(!e)return void p.error("No stats");if(c.a.supportsRTTStatistics()&&e.transport&&e.transport.length&&this._avgRTT.addNext(e.transport[0].rtt),this._sampleIdx+=1,this._sampleIdx>=this._n){if(c.a.supportsRTTStatistics()){var t=this._avgRtpStatsReporter._conference,n={p2p:this.isP2P,size:t.getParticipantCount()};if(e.transport&&e.transport.length&&babelHelpers.extends(n,{localCandidateType:e.transport[0].localCandidateType,remoteCandidateType:e.transport[0].remoteCandidateType,transportType:e.transport[0].type}),this._avgRTT.appendReport(n),this.isP2P){var r=this._avgRtpStatsReporter.jvbStatsMonitor._avgEnd2EndRTT;if(!isNaN(r)){var i=this._avgRTT.calculate()-r;n.stat_avg_rtt_diff={value:i}}}else{var o=this._calculateAvgRemoteRTT(),a=this._avgRTT.calculate();this._avgEnd2EndRTT=a+o,isNaN(a)||isNaN(o)||(n.stat_avg_end2endrtt={value:this._avgEnd2EndRTT})}u.a.analytics.sendEvent("avg.rtp.stats",n)}this._resetAvgStats()}}},{key:"_calculateAvgRemoteRTT",value:function(){var e=0,t=0,n=!0,r=!1,i=void 0;try{for(var o,a=this._avgRemoteRTTMap.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(n=(o=a.next()).done);n=!0){var s=o.value,c=s.calculate();isNaN(c)||(t+=c,e+=1,s.reset())}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}return t/e}},{key:"_processRemoteStats",value:function(e,t){var n="number"==typeof t.jvbRTT,r=this._avgRemoteRTTMap.get(e);!r&&n&&(r=new f(e+"_stat_rtt"),this._avgRemoteRTTMap.set(e,r)),n?r.addNext(t.jvbRTT):r&&this._avgRemoteRTTMap.delete(e)}},{key:"_resetAvgStats",value:function(){this._avgRTT.reset(),this._avgRemoteRTTMap&&this._avgRemoteRTTMap.clear(),this._sampleIdx=0}},{key:"dispose",value:function(){var e=this._avgRtpStatsReporter._conference;e.statistics.removeConnectionStatsListener(this._onConnectionStats),this.isP2P||(e.off(o.REMOTE_STATS_UPDATED,this._onRemoteStatsUpdated),e.off(a.USER_LEFT,this._onUserLeft))}}]),e}(),m=function(){function e(t,n){var i=this;if(r(this,e),this._n=n,!(n>0))return void p.info("Avg RTP stats reports are disabled.");p.info("Avg RTP stats will be calculated every "+n+" samples"),this._sampleIdx=0,this._conference=t,this._avgAudioBitrateUp=new f("stat_avg_bitrate_audio_upload"),this._avgAudioBitrateDown=new f("stat_avg_bitrate_audio_download"),this._avgVideoBitrateUp=new f("stat_avg_bitrate_video_upload"),this._avgVideoBitrateDown=new f("stat_avg_bitrate_video_download"),this._avgBandwidthUp=new f("stat_avg_bandwidth_upload"),this._avgBandwidthDown=new f("stat_avg_bandwidth_download"),this._avgPacketLossTotal=new f("stat_avg_packetloss_total"),this._avgPacketLossUp=new f("stat_avg_packetloss_upload"),this._avgPacketLossDown=new f("stat_avg_packetloss_download"),this._avgRemoteFPS=new f("stat_avg_framerate_remote"),this._avgRemoteScreenFPS=new f("stat_avg_framerate_screen_remote"),this._avgLocalFPS=new f("stat_avg_framerate_local"),this._avgLocalScreenFPS=new f("stat_avg_framerate_screen_local"),this._avgRemoteCameraPixels=new f("stat_avg_pixels_remote"),this._avgRemoteScreenPixels=new f("stat_avg_pixels_screen_remote"),this._avgLocalCameraPixels=new f("stat_avg_pixels_local"),this._avgLocalScreenPixels=new f("stat_avg_pixels_screen_local"),this._avgCQ=new f("stat_avg_cq"),this._onLocalStatsUpdated=function(e){return i._calculateAvgStats(e)},t.on(o.LOCAL_STATS_UPDATED,this._onLocalStatsUpdated),this._onP2PStatusChanged=function(){p.debug("Resetting average stats calculation"),i._resetAvgStats(),i.jvbStatsMonitor._resetAvgStats(),i.p2pStatsMonitor._resetAvgStats()},t.on(a.P2P_STATUS,this._onP2PStatusChanged),this._onJvb121StatusChanged=function(e,t){!0===t&&(p.info("Resetting JVB avg RTP stats"),i._resetAvgJvbStats())},t.on(a.JVB121_STATUS,this._onJvb121StatusChanged),this.jvbStatsMonitor=new h(this,!1,n),this.p2pStatsMonitor=new h(this,!0,n)}return d(e,[{key:"_calculateAvgStats",value:function(e){if(!e)return void p.error("No stats");var t=this._conference.isP2PActive(),n=this._conference.getParticipantCount();if(t||!(n<2)){var r=e.bitrate,i=e.bandwidth,o=e.packetLoss,a=e.framerate,s=e.resolution;if(!r)return void p.error('No "bitrate"');if(!i)return void p.error('No "bandwidth"');if(!o)return void p.error('No "packetloss"');if(!a)return void p.error('No "framerate"');if(!s)return void p.error("No resolution");if(this._avgAudioBitrateUp.addNext(r.audio.upload),this._avgAudioBitrateDown.addNext(r.audio.download),this._avgVideoBitrateUp.addNext(r.video.upload),this._avgVideoBitrateDown.addNext(r.video.download),c.a.supportsBandwidthStatistics()&&(this._avgBandwidthUp.addNext(i.upload),this._avgBandwidthDown.addNext(i.download)),this._avgPacketLossUp.addNext(o.upload),this._avgPacketLossDown.addNext(o.download),this._avgPacketLossTotal.addNext(o.total),this._avgCQ.addNext(e.connectionQuality),a&&(this._avgRemoteFPS.addNext(this._calculateAvgVideoFps(a,!1,l.CAMERA)),this._avgRemoteScreenFPS.addNext(this._calculateAvgVideoFps(a,!1,l.DESKTOP)),this._avgLocalFPS.addNext(this._calculateAvgVideoFps(a,!0,l.CAMERA)),this._avgLocalScreenFPS.addNext(this._calculateAvgVideoFps(a,!0,l.DESKTOP))),s&&(this._avgRemoteCameraPixels.addNext(this._calculateAvgVideoPixels(s,!1,l.CAMERA)),this._avgRemoteScreenPixels.addNext(this._calculateAvgVideoPixels(s,!1,l.DESKTOP)),this._avgLocalCameraPixels.addNext(this._calculateAvgVideoPixels(s,!0,l.CAMERA)),this._avgLocalScreenPixels.addNext(this._calculateAvgVideoPixels(s,!0,l.DESKTOP))),this._sampleIdx+=1,this._sampleIdx>=this._n){var d={p2p:t,size:n};e.transport&&e.transport.length&&babelHelpers.extends(d,{localCandidateType:e.transport[0].localCandidateType,remoteCandidateType:e.transport[0].remoteCandidateType,transportType:e.transport[0].type}),this._avgAudioBitrateUp.appendReport(d),this._avgAudioBitrateDown.appendReport(d),this._avgVideoBitrateUp.appendReport(d),this._avgVideoBitrateDown.appendReport(d),c.a.supportsBandwidthStatistics()&&(this._avgBandwidthUp.appendReport(d),this._avgBandwidthDown.appendReport(d)),this._avgPacketLossUp.appendReport(d),this._avgPacketLossDown.appendReport(d),this._avgPacketLossTotal.appendReport(d),this._avgRemoteFPS.appendReport(d),isNaN(this._avgRemoteScreenFPS.calculate())||this._avgRemoteScreenFPS.appendReport(d),this._avgLocalFPS.appendReport(d),isNaN(this._avgLocalScreenFPS.calculate())||this._avgLocalScreenFPS.appendReport(d),this._avgRemoteCameraPixels.appendReport(d),isNaN(this._avgRemoteScreenPixels.calculate())||this._avgRemoteScreenPixels.appendReport(d),this._avgLocalCameraPixels.appendReport(d),isNaN(this._avgLocalScreenPixels.calculate())||this._avgLocalScreenPixels.appendReport(d),this._avgCQ.appendReport(d),u.a.analytics.sendEvent("avg.rtp.stats",d),this._resetAvgStats()}}}},{key:"_calculateAvgVideoPixels",value:function(e,t,n){var r=0,i=0,o=this._conference.myUserId(),a=!0,s=!1,c=void 0;try{for(var u,l=Object.keys(e)["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(a=(u=l.next()).done);a=!0){var d=u.value;if(t?d===o:d!==o){var p=t?null:this._conference.getParticipantById(d),f=e[d];if((t||p)&&f){var h=this._calculatePeerAvgVideoPixels(f,p,n);isNaN(h)||(r+=h,i+=1)}}}}catch(e){s=!0,c=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw c}}return r/i}},{key:"_calculatePeerAvgVideoPixels",value:function(e,t,n){var r=Object.keys(e).map(function(e){return Number(e)}),i=null,o=this._conference.getActivePeerConnection();t?(i=t.getTracksByMediaType(s.b))&&(r=r.filter(function(e){return i.find(function(t){return!t.isMuted()&&t.getSSRC()===e&&t.videoType===n})})):(i=this._conference.getLocalTracks(s.b),r=r.filter(function(e){return i.find(function(t){return!t.isMuted()&&o.getLocalSSRC(t)===e&&t.videoType===n})}));var a=0,c=0,u=!0,l=!1,d=void 0;try{for(var p,f=r["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(u=(p=f.next()).done);u=!0){var h=p.value,m=Number(e[h].height)*Number(e[h].width);!isNaN(m)&&m>0&&(a+=m,c+=1)}}catch(e){l=!0,d=e}finally{try{!u&&f.return&&f.return()}finally{if(l)throw d}}return a/c}},{key:"_calculateAvgVideoFps",value:function(e,t,n){var r=0,i=0,o=this._conference.myUserId(),a=!0,s=!1,c=void 0;try{for(var u,l=Object.keys(e)["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(a=(u=l.next()).done);a=!0){var d=u.value;if(t?d===o:d!==o){var p=t?null:this._conference.getParticipantById(d),f=e[d];if((t||p)&&f){var h=this._calculatePeerAvgVideoFps(f,p,n);isNaN(h)||(r+=h,i+=1)}}}}catch(e){s=!0,c=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw c}}return r/i}},{key:"_calculatePeerAvgVideoFps",value:function(e,t,n){var r=Object.keys(e).map(function(e){return Number(e)}),i=null,o=this._conference.getActivePeerConnection();t?(i=t.getTracksByMediaType(s.b))&&(r=r.filter(function(e){return i.find(function(t){return!t.isMuted()&&t.getSSRC()===e&&t.videoType===n})})):(i=this._conference.getLocalTracks(s.b),r=r.filter(function(e){return i.find(function(t){return!t.isMuted()&&o.getLocalSSRC(t)===e&&t.videoType===n})}));var a=0,c=0,u=!0,l=!1,d=void 0;try{for(var p,f=r["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(u=(p=f.next()).done);u=!0){var h=p.value,m=Number(e[h]);!isNaN(m)&&m>0&&(a+=m,c+=1)}}catch(e){l=!0,d=e}finally{try{!u&&f.return&&f.return()}finally{if(l)throw d}}return a/c}},{key:"_resetAvgJvbStats",value:function(){this._resetAvgStats(),this.jvbStatsMonitor._resetAvgStats()}},{key:"_resetAvgStats",value:function(){this._avgAudioBitrateUp.reset(),this._avgAudioBitrateDown.reset(),
this._avgVideoBitrateUp.reset(),this._avgVideoBitrateDown.reset(),this._avgBandwidthUp.reset(),this._avgBandwidthDown.reset(),this._avgPacketLossUp.reset(),this._avgPacketLossDown.reset(),this._avgPacketLossTotal.reset(),this._avgRemoteFPS.reset(),this._avgRemoteScreenFPS.reset(),this._avgLocalFPS.reset(),this._avgLocalScreenFPS.reset(),this._avgRemoteCameraPixels.reset(),this._avgRemoteScreenPixels.reset(),this._avgLocalCameraPixels.reset(),this._avgLocalScreenPixels.reset(),this._avgCQ.reset(),this._sampleIdx=0}},{key:"dispose",value:function(){this._conference.off(a.P2P_STATUS,this._onP2PStatusChanged),this._conference.off(o.LOCAL_STATS_UPDATED,this._onLocalStatsUpdated),this._conference.off(a.JVB121_STATUS,this._onJvb121StatusChanged),this.jvbStatsMonitor.dispose(),this.p2pStatsMonitor.dispose()}}]),e}();t.a=m}).call(t,"modules/statistics/AvgRTPStatsReporter.js")},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0).getLogger(e),a=n(3),s=n(79),c=n(166),u={createOffer:"createOffer",createAnswer:"createAnswer",setLocalDescription:"setLocalDescription",setRemoteDescription:"setRemoteDescription",addIceCandidate:"addIceCandidate",getUserMedia:"getUserMedia",iceConnectionFailure:"iceConnectionFailure",signalingError:"signalingError",applicationLog:"applicationLog"},l={fabricHold:"fabricHold",fabricResume:"fabricResume",audioMute:"audioMute",audioUnmute:"audioUnmute",videoPause:"videoPause",videoResume:"videoResume",fabricUsageEvent:"fabricUsageEvent",fabricStats:"fabricStats",fabricTerminated:"fabricTerminated",screenShareStart:"screenShareStart",screenShareStop:"screenShareStop",dominantSpeaker:"dominantSpeaker",activeDeviceList:"activeDeviceList"},d="jitsi",p={ERROR:"error",EVENT:"event",MST_WITH_USERID:"mstWithUserID"},f=void 0,h=function(){function e(t,n){if(r(this,e),!e.backend)throw new Error("CallStats backend not intiialized!");this.confID=n.confID,this.tpc=t,this.peerconnection=t.peerconnection,this.remoteUserID=n.remoteUserID||d,this.hasFabric=!1,e.fabrics.add(this),e.initialized&&this._addNewFabric()}return i(e,null,[{key:"_addNewFabricCallback",value:function(t,n){e.backend&&"success"!==t&&o.error("Monitoring status: "+t+" msg: "+n)}},{key:"_initCallback",value:function(t,n){if(o.log("CallStats Status: err="+t+" msg="+n),"success"===t){var r=!1,i=null,a=!0,s=!1,c=void 0;try{for(var u,l=e.fabrics.values()["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(a=(u=l.next()).done);a=!0){var d=u.value;d.hasFabric||(o.debug("addNewFabric - initCallback"),d._addNewFabric()&&(r=!0,i||(i=d)))}}catch(e){s=!0,c=e}finally{try{!a&&l.return&&l.return()}finally{if(s)throw c}}if(r){e.initialized=!0;var f=i.confID,h=i.peerconnection,m=!0,v=!1,y=void 0;try{for(var g,b=e.reportsQueue["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(m=(g=b.next()).done);m=!0){var S=g.value;if(S.type===p.ERROR){var E=S.data;e._reportError(i,E.type,E.error,E.pc||h)}else if(S.type===p.EVENT){var T=S.data;e.backend.sendFabricEvent(S.pc||h,T.event,f,T.eventData)}else if(S.type===p.MST_WITH_USERID){var _=S.data;e.backend.associateMstWithUserID(S.pc||h,_.callStatsId,f,_.ssrc,_.usageLabel,_.containerId)}}}catch(e){v=!0,y=e}finally{try{!m&&b.return&&b.return()}finally{if(v)throw y}}e.reportsQueue.length=0}}}},{key:"_reportError",value:function(t,n,r,i){var a=r;a||(o.warn("No error is passed!"),a=new Error("Unknown error")),e.initialized&&t?e.backend.reportError(i,t.confID,n,a):e.reportsQueue.push({type:p.ERROR,data:{error:a,pc:i,type:n}})}},{key:"_reportEvent",value:function(t,n,r){var i=t&&t.peerconnection,o=t&&t.confID;e.initialized&&t?e.backend.sendFabricEvent(i,n,o,r):e.reportsQueue.push({confID:o,pc:i,type:p.EVENT,data:{event:n,eventData:r}})}},{key:"_traceAndCatchBackendCalls",value:function(e){var t=["associateMstWithUserID","sendFabricEvent","sendUserFeedback"],n=!0,r=!1,i=void 0;try{for(var s,c=t["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(n=(s=c.next()).done);n=!0)!function(){var t=s.value,n=e[t];e[t]=function(){try{for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return n.apply(e,r)}catch(e){a.callErrorHandler(e)}}}()}catch(e){r=!0,i=e}finally{try{!n&&c.return&&c.return()}finally{if(r)throw i}}var l=["associateMstWithUserID","sendFabricEvent","sendUserFeedback"],d=!0,p=!1,f=void 0;try{for(var h,m=l["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(d=(h=m.next()).done);d=!0)!function(){var t=h.value,n=e[t];e[t]=function(){for(var r=arguments.length,i=Array(r),a=0;a<r;a++)i[a]=arguments[a];o.debug(t,i),n.apply(e,i)}}()}catch(e){p=!0,f=e}finally{try{!d&&m.return&&m.return()}finally{if(p)throw f}}var v=e.reportError;e.reportError=function(t,n,r){for(var i=arguments.length,s=Array(i>3?i-3:0),c=3;c<i;c++)s[c-3]=arguments[c];r===u.applicationLog?console&&console.debug("reportError",t,n,r):o.debug.apply(o,["reportError",t,n,r].concat(s));try{v.call.apply(v,[e,t,n,r].concat(s))}catch(e){r===u.applicationLog?console&&console.error("reportError",e):a.callErrorHandler(e)}}}},{key:"initBackend",value:function(t){if(e.backend)throw new Error("CallStats backend has been initialized already!");try{return e.backend=new callstats($,c,s),e._traceAndCatchBackendCalls(e.backend),e.userID={aliasName:t.aliasName,userName:t.userName},e.callStatsID=t.callStatsID,e.callStatsSecret=t.callStatsSecret,e.backend.initialize(e.callStatsID,e.callStatsSecret,e.userID,e._initCallback),!0}catch(t){return a.callErrorHandler(t),e.backend=null,o.error(t),!1}}},{key:"isBackendInitialized",value:function(){return Boolean(e.backend)}},{key:"sendActiveDeviceListEvent",value:function(t,n){e._reportEvent(n,l.activeDeviceList,t)}},{key:"sendApplicationLog",value:function(t,n){try{e._reportError(n,u.applicationLog,t,n&&n.peerconnection)}catch(e){console&&"function"==typeof console.error&&console.error("sendApplicationLog failed",e)}}},{key:"sendFeedback",value:function(t,n,r){e.backend?e.backend.sendUserFeedback(t,{userID:e.userID,overall:n,comment:r}):o.error("Failed to submit feedback to CallStats - no backend")}},{key:"sendGetUserMediaFailed",value:function(t,n){e._reportError(n,u.getUserMedia,t,null)}},{key:"sendMuteEvent",value:function(t,n,r){var i=void 0;i="video"===n?t?l.videoPause:l.videoResume:t?l.audioMute:l.audioUnmute,e._reportEvent(r,i)}},{key:"fabrics",get:function(){return f||(f=new Set),f}}]),i(e,[{key:"_addNewFabric",value:function(){o.info("addNewFabric",this.remoteUserID,this);try{var t=e.backend.addNewFabric(this.peerconnection,this.remoteUserID,e.backend.fabricUsage.multiplex,this.confID,e._addNewFabricCallback);this.hasFabric=!0;var n="success"===t.status;return n||o.error("callstats fabric not initilized",t.message),n}catch(e){return a.callErrorHandler(e),!1}}},{key:"associateStreamWithVideoTag",value:function(t,n,r,i,o){if(e.backend){var a=n?e.userID:r;e.initialized?e.backend.associateMstWithUserID(this.peerconnection,a,this.confID,t,i,o):e.reportsQueue.push({type:p.MST_WITH_USERID,pc:this.peerconnection,data:{callStatsId:a,containerId:o,ssrc:t,usageLabel:i}})}}},{key:"sendDominantSpeakerEvent",value:function(){e._reportEvent(this,l.dominantSpeaker)}},{key:"sendTerminateEvent",value:function(){e.initialized&&e.backend.sendFabricEvent(this.peerconnection,e.backend.fabricEvent.fabricTerminated,this.confID),e.fabrics.delete(this)}},{key:"sendIceConnectionFailedEvent",value:function(){e._reportError(this,u.iceConnectionFailure,null,this.peerconnection)}},{key:"sendCreateOfferFailed",value:function(t){e._reportError(this,u.createOffer,t,this.peerconnection)}},{key:"sendCreateAnswerFailed",value:function(t){e._reportError(this,u.createAnswer,t,this.peerconnection)}},{key:"sendResumeOrHoldEvent",value:function(t){e._reportEvent(this,t?l.fabricResume:l.fabricHold)}},{key:"sendScreenSharingEvent",value:function(t){e._reportEvent(this,t?l.screenShareStart:l.screenShareStop)}},{key:"sendSetLocalDescFailed",value:function(t){e._reportError(this,u.setLocalDescription,t,this.peerconnection)}},{key:"sendSetRemoteDescFailed",value:function(t){e._reportError(this,u.setRemoteDescription,t,this.peerconnection)}},{key:"sendAddIceCandidateFailed",value:function(t){e._reportError(this,u.addIceCandidate,t,this.peerconnection)}}]),e}();t.a=h,h.backend=null,h.reportsQueue=[],h.initialized=!1,h.callStatsID=null,h.callStatsSecret=null,h.userID=null}).call(t,"modules/statistics/CallStats.js")},function(e,t,n){"use strict";(function(e){function r(e,t){return!t||t<=0||!e||e<=0?0:Math.round(e/t*100)}function i(){this.loss={},this.bitrate={download:0,upload:0},this.resolution={},this.framerate=0}function o(){this.bandwidth={},this.bitrate={},this.packetLoss=null,this.transport=[]}function a(e,t,n,r){this._browserType=s.a.getBrowserType();var i=f[this._browserType];if(!i)throw"The browser type '"+this._browserType+"' isn't supported!";this._getStatValue=this._defineGetStatValueMethod(i),this.peerconnection=e,this.baselineAudioLevelsReport=null,this.currentAudioLevelsReport=null,this.currentStatsReport=null,this.previousStatsReport=null,this.audioLevelsIntervalId=null,this.eventEmitter=r,this.conferenceStats=new o,this.audioLevelsIntervalMilis=t,this.statsIntervalId=null,this.statsIntervalMilis=n,this.ssrc2stats=new Map}t.a=a;var s=n(1),c=n(55),u=function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(("function"==typeof Symbol?Symbol.iterator:"@@iterator")in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=n(3),d=n(0).getLogger(e),p=s.a.isChrome()||s.a.isOpera()||s.a.isFirefox()||s.a.isNWJS()||s.a.isElectron()||s.a.isTemasysPluginUsed()||s.a.isEdge(),f={};f[s.a.RTC_BROWSER_FIREFOX]={ssrc:"ssrc",packetsReceived:"packetsReceived",packetsLost:"packetsLost",packetsSent:"packetsSent",bytesReceived:"bytesReceived",bytesSent:"bytesSent",framerateMean:"framerateMean"},f[s.a.RTC_BROWSER_CHROME]={receiveBandwidth:"googAvailableReceiveBandwidth",sendBandwidth:"googAvailableSendBandwidth",remoteAddress:"googRemoteAddress",transportType:"googTransportType",localAddress:"googLocalAddress",activeConnection:"googActiveConnection",ssrc:"ssrc",packetsReceived:"packetsReceived",packetsSent:"packetsSent",packetsLost:"packetsLost",bytesReceived:"bytesReceived",bytesSent:"bytesSent",googFrameHeightReceived:"googFrameHeightReceived",googFrameWidthReceived:"googFrameWidthReceived",googFrameHeightSent:"googFrameHeightSent",googFrameWidthSent:"googFrameWidthSent",googFrameRateReceived:"googFrameRateReceived",googFrameRateSent:"googFrameRateSent",audioInputLevel:"audioInputLevel",audioOutputLevel:"audioOutputLevel",currentRoundTripTime:"googRtt",remoteCandidateType:"googRemoteCandidateType",localCandidateType:"googLocalCandidateType"},f[s.a.RTC_BROWSER_EDGE]={sendBandwidth:"googAvailableSendBandwidth",remoteAddress:"remoteAddress",transportType:"protocol",localAddress:"localAddress",activeConnection:"activeConnection",ssrc:"ssrc",packetsReceived:"packetsReceived",packetsSent:"packetsSent",packetsLost:"packetsLost",bytesReceived:"bytesReceived",bytesSent:"bytesSent",googFrameHeightReceived:"frameHeight",googFrameWidthReceived:"frameWidth",googFrameHeightSent:"frameHeight",googFrameWidthSent:"frameWidth",googFrameRateReceived:"framesPerSecond",googFrameRateSent:"framesPerSecond",audioInputLevel:"audioLevel",audioOutputLevel:"audioLevel",currentRoundTripTime:"roundTripTime"},f[s.a.RTC_BROWSER_OPERA]=f[s.a.RTC_BROWSER_CHROME],f[s.a.RTC_BROWSER_NWJS]=f[s.a.RTC_BROWSER_CHROME],f[s.a.RTC_BROWSER_ELECTRON]=f[s.a.RTC_BROWSER_CHROME],f[s.a.RTC_BROWSER_IEXPLORER]=f[s.a.RTC_BROWSER_CHROME],f[s.a.RTC_BROWSER_SAFARI]=f[s.a.RTC_BROWSER_CHROME],f[s.a.RTC_BROWSER_REACT_NATIVE]=f[s.a.RTC_BROWSER_CHROME],i.prototype.setLoss=function(e){this.loss=e||{}},i.prototype.setResolution=function(e){this.resolution=e||{}},i.prototype.addBitrate=function(e){this.bitrate.download+=e.download,this.bitrate.upload+=e.upload},i.prototype.resetBitrate=function(){this.bitrate.download=0,this.bitrate.upload=0},i.prototype.setFramerate=function(e){this.framerate=e||0},a.prototype.stop=function(){this.audioLevelsIntervalId&&(clearInterval(this.audioLevelsIntervalId),this.audioLevelsIntervalId=null),this.statsIntervalId&&(clearInterval(this.statsIntervalId),this.statsIntervalId=null)},a.prototype.errorCallback=function(e){l.callErrorHandler(e),d.error("Get stats error",e),this.stop()},a.prototype.start=function(e){var t=this;e&&(this.audioLevelsIntervalId=setInterval(function(){t.peerconnection.getStats(function(e){var n=null;n=e&&e.result&&"function"==typeof e.result?e.result():e,t.currentAudioLevelsReport=n,t.processAudioLevelReport(),t.baselineAudioLevelsReport=t.currentAudioLevelsReport},t.errorCallback)},t.audioLevelsIntervalMilis)),p&&(this.statsIntervalId=setInterval(function(){t.peerconnection.getStats(function(e){var n=null;n=e&&e.result&&"function"==typeof e.result?e.result():e,t.currentStatsReport=n;try{t.processStatsReport()}catch(e){l.callErrorHandler(e),d.error("Unsupported key:"+e,e)}t.previousStatsReport=t.currentStatsReport},t.errorCallback)},t.statsIntervalMilis))},a.prototype._defineGetStatValueMethod=function(e){var t=function(t){var n=e[t];if(n)return n;throw"The property '"+t+"' isn't supported!"},n=void 0;switch(this._browserType){case s.a.RTC_BROWSER_CHROME:case s.a.RTC_BROWSER_OPERA:case s.a.RTC_BROWSER_NWJS:case s.a.RTC_BROWSER_ELECTRON:n=function(e,t){return e.stat(t)};break;case s.a.RTC_BROWSER_REACT_NATIVE:n=function(e,t){var n=void 0;return e.values.some(function(e){return!!e.hasOwnProperty(t)&&(n=e[t],!0)}),n};break;case s.a.RTC_BROWSER_EDGE:n=function(e,t){return e[t]};break;default:n=function(e,t){return e[t]}}return function(e,r){return n(e,t(r))}},a.prototype.getNonNegativeStat=function(e,t){var n=this._getStatValue(e,t);return"number"!=typeof n&&(n=Number(n)),isNaN(n)?0:Math.max(0,n)},a.prototype.processStatsReport=function(){var e=this;if(this.previousStatsReport){var t=this._getStatValue,n={};for(var o in this.currentStatsReport)if(this.currentStatsReport.hasOwnProperty(o)){var a=this.currentStatsReport[o];if(a){try{var l=t(a,"receiveBandwidth"),p=t(a,"sendBandwidth");(l||p)&&(this.conferenceStats.bandwidth={download:Math.round(l/1e3),upload:Math.round(p/1e3)})}catch(e){}if("googCandidatePair"===a.type){var f=function(){var n=void 0,r=void 0,i=void 0,o=void 0,s=void 0,c=void 0,u=void 0;try{if(!(n=t(a,"activeConnection")))return"continue";r=t(a,"remoteAddress"),u=t(a,"transportType"),o=t(a,"localAddress"),i=t(a,"localCandidateType"),s=t(a,"remoteCandidateType"),c=e.getNonNegativeStat(a,"currentRoundTripTime")}catch(e){}if(!r||!u||!o||"true"!==n)return"continue";var l=e.conferenceStats.transport;return l.some(function(e){return e.ip===r&&e.type===u&&e.localip===o})||l.push({ip:r,type:u,localip:o,p2p:e.peerconnection.isP2P,localCandidateType:i,remoteCandidateType:s,rtt:c}),"continue"}();if("continue"===f)continue}if("candidatepair"===a.type){if("succeeded"!==a.state)continue;var h=this.currentStatsReport[a.localCandidateId],m=this.currentStatsReport[a.remoteCandidateId];this.conferenceStats.transport.push({ip:m.ipAddress+":"+m.portNumber,type:h.transport,localip:h.ipAddress+":"+h.portNumber,p2p:this.peerconnection.isP2P,localCandidateType:h.candidateType,remoteCandidateType:m.candidateType})}if("transportdiagnostics"===a.msType&&this.conferenceStats.transport.push({ip:a.remoteAddress,type:a.protocol,localip:a.localAddress,p2p:this.peerconnection.isP2P}),("ssrc"===a.type||"outboundrtp"===a.type||"inboundrtp"===a.type||"track"===a.type)&&(!s.a.isEdge()||"inboundrtp"!==a.type&&"outboundrtp"!==a.type)){var v=this.previousStatsReport[o],y=this.getNonNegativeStat(a,"ssrc");if("track"===a.type&&Array.isArray(a.ssrcIds)&&(y=Number(a.ssrcIds[0])),v&&y&&(s.a.isEdge()||!0!==a.isRemote&&!0!==a.remoteSource)){var g=this.ssrc2stats.get(y);g||(g=new i,this.ssrc2stats.set(y,g));var b=!0,S="packetsReceived",E=t(a,S);void 0!==E&&null!==E&&""!==E||(b=!1,S="packetsSent",void 0!==(E=t(a,S))&&null!==E||d.warn("No packetsReceived nor packetsSent stat found")),(!E||E<0)&&(E=0);var T=this.getNonNegativeStat(v,S),_=Math.max(0,E-T),C=this.getNonNegativeStat(a,"packetsLost"),w=this.getNonNegativeStat(v,"packetsLost"),R=Math.max(0,C-w);g.setLoss({packetsTotal:_+R,packetsLost:R,isDownloadStream:b});var k=this.getNonNegativeStat(a,"bytesReceived"),A=this.getNonNegativeStat(v,"bytesReceived"),P=Math.max(0,k-A),I=0,O=t(a,"bytesSent");"number"!=typeof O&&"string"!=typeof O||(O=Number(O),isNaN(O)||(n[y]=O,O>0&&(I=O-t(v,"bytesSent")))),I=Math.max(0,I);var D=a.timestamp-v.timestamp,L=0,N=0;D>0&&(L=Math.round(8*P/D),N=Math.round(8*I/D)),g.addBitrate({download:L,upload:N});var M={height:null,width:null};try{var x=void 0,j=void 0;(x=t(a,"googFrameHeightReceived"))&&(j=t(a,"googFrameWidthReceived"))?(M.height=x,M.width=j):(x=t(a,"googFrameHeightSent"))&&(j=t(a,"googFrameWidthSent"))&&(M.height=x,M.width=j)}catch(e){}var F=void 0;try{F=t(a,"googFrameRateReceived")||t(a,"googFrameRateSent")||0}catch(e){try{F=this.getNonNegativeStat(a,"framerateMean")}catch(e){}}g.setFramerate(Math.round(F||0)),M.height&&M.width?g.setResolution(M):g.setResolution(null)}}}}var U={download:0,upload:0},B={download:0,upload:0},J=0,G=0,H={},V={},W=0,K=0,q=0,z=0,$=!0,X=!1,Q=void 0;try{for(var Y,Z=this.ssrc2stats["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!($=(Y=Z.next()).done);$=!0){var ee=u(Y.value,2),te=ee[0],ne=ee[1],re=ne.loss,ie=re.isDownloadStream?"download":"upload";U[ie]+=re.packetsTotal,B[ie]+=re.packetsLost,J+=ne.bitrate.download,G+=ne.bitrate.upload;var oe=this.peerconnection.getTrackBySSRC(te);if(oe){oe.isAudioTrack()?(W+=ne.bitrate.download,K+=ne.bitrate.upload):(q+=ne.bitrate.download,z+=ne.bitrate.upload);var ae=oe.getParticipantId();if(ae){var se=ne.resolution;if(se.width&&se.height&&-1!==se.width&&-1!==se.height){var ce=H[ae]||{};ce[te]=se,H[ae]=ce}if(0!==ne.framerate){var ue=V[ae]||{};ue[te]=ne.framerate,V[ae]=ue}}else d.error("No participant ID returned by "+oe)}else this.peerconnection.isP2P&&d.error("JitsiTrack not found for SSRC "+te+" in "+this.peerconnection);ne.resetBitrate()}}catch(e){X=!0,Q=e}finally{try{!$&&Z.return&&Z.return()}finally{if(X)throw Q}}this.eventEmitter.emit(c.d,this.peerconnection,n),this.conferenceStats.bitrate={upload:G,download:J},this.conferenceStats.bitrate.audio={upload:K,download:W},this.conferenceStats.bitrate.video={upload:z,download:q},this.conferenceStats.packetLoss={total:r(B.download+B.upload,U.download+U.upload),download:r(B.download,U.download),upload:r(B.upload,U.upload)},this.eventEmitter.emit(c.c,this.peerconnection,{bandwidth:this.conferenceStats.bandwidth,bitrate:this.conferenceStats.bitrate,packetLoss:this.conferenceStats.packetLoss,resolution:H,framerate:V,transport:this.conferenceStats.transport}),this.conferenceStats.transport=[]}},a.prototype.processAudioLevelReport=function(){if(this.baselineAudioLevelsReport){var e=this._getStatValue;for(var t in this.currentAudioLevelsReport)if(this.currentAudioLevelsReport.hasOwnProperty(t)){var n=this.currentAudioLevelsReport[t];if("ssrc"===n.type||"track"===n.type){var r=this.baselineAudioLevelsReport[t],i=this.getNonNegativeStat(n,"ssrc");if(!i&&Array.isArray(n.ssrcIds)&&(i=Number(n.ssrcIds[0])),r)if(i){var o=void 0;try{o=e(n,"audioInputLevel")||e(n,"audioOutputLevel")}catch(e){return d.warn("Audio Levels are not available in the statistics."),void clearInterval(this.audioLevelsIntervalId)}if(o){var a=void 0;a="ssrc"===n.type?!e(n,"packetsReceived"):!n.remoteSource,s.a.isEdge()?o=o<0?Math.pow(10,o/20):0:o/=32767,this.eventEmitter.emit(c.a,this.peerconnection,i,o,a)}}else Date.now()-n.timestamp<3e3&&d.warn("No ssrc: ");else d.warn(i+" not enough data")}}}}}).call(t,"modules/statistics/RTPStatsCollector.js")},function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,r,i){n(this,e),this._userId=t,this.setDisplayName(r),this._isLocalStats=i||!1,this.setIsDominantSpeaker(!1),this.totalDominantSpeakerTime=0,this._dominantSpeakerStart=null,this._hasLeft=!1}return r(e,[{key:"getUserId",value:function(){return this._userId}},{key:"getDisplayName",value:function(){return this.displayName}},{key:"setDisplayName",value:function(e){this.displayName=e}},{key:"isLocalStats",value:function(){return this._isLocalStats}},{key:"isDominantSpeaker",value:function(){return this._isDominantSpeaker}},{key:"setIsDominantSpeaker",value:function(e){if(!this._isDominantSpeaker&&e)this._dominantSpeakerStart=Date.now();else if(this._isDominantSpeaker&&!e){var t=Date.now(),n=t-(this._dominantSpeakerStart||0);this.totalDominantSpeakerTime+=n,this._dominantSpeakerStart=null}this._isDominantSpeaker=e}},{key:"getTotalDominantSpeakerTime",value:function(){var e=this.totalDominantSpeakerTime;return this._isDominantSpeaker&&(e+=Date.now()-this._dominantSpeakerStart),e}},{key:"hasLeft",value:function(){return this._hasLeft}},{key:"markAsHasLeft",value:function(){this._hasLeft=!0,this.setIsDominantSpeaker(!1)}}]),e}();e.exports=i},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(5),o=n(106),a=n.n(o),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(){function e(t){r(this,e),this.stats={users:{},dominantSpeakerId:null};var n=t.myUserId();this.stats.users[n]=new a.a(n,null,!0),t.addEventListener(i.DOMINANT_SPEAKER_CHANGED,this._onDominantSpeaker.bind(this)),t.addEventListener(i.USER_JOINED,this._onUserJoin.bind(this)),t.addEventListener(i.USER_LEFT,this._onUserLeave.bind(this)),t.addEventListener(i.DISPLAY_NAME_CHANGED,this._onDisplayNameChange.bind(this))}return s(e,[{key:"_onDominantSpeaker",value:function(e){var t=this.stats.users[this.stats.dominantSpeakerId],n=this.stats.users[e];t&&t.setIsDominantSpeaker(!1),n&&n.setIsDominantSpeaker(!0),this.stats.dominantSpeakerId=e}},{key:"_onUserJoin",value:function(e,t){var n=this.stats.users[e];n||(n=this.stats.users[e]=new a.a(e,t.getDisplayName()))}},{key:"_onUserLeave",value:function(e){var t=this.stats.users[e];t&&t.markAsHasLeft()}},{key:"_onDisplayNameChange",value:function(e,t){var n=this.stats.users[e];n&&n.setDisplayName(t)}},{key:"getStats",value:function(){return this.stats.users}}]),e}();t.a=c},function(e,t){var n=function(e,t,n,r){this.blob=e,this.name=t,this.startTime=n,this.wordArray=r};e.exports=n},function(e,t,n){function r(){this.audioRecorder=new s,this.transcriptionService=new c,this.counter=null,this.startTime=null,this.transcription=null,this.callback=null,this.results=[],this.state=u,this.lineLength=0}function i(e,t){if(console.log("retrieved an answer from the transcription service. The answer has an array of length: "+t.wordArray.length),t.wordArray.length>0){var n=t.startTime.getUTCMilliseconds()-e.startTime.getUTCMilliseconds();n<0&&(n=0);var r="[";t.wordArray.forEach(function(e){e.begin+=n,e.end+=n,r+=e.word+","}),r+="]",console.log(r),t.wordArray.name=t.name}e.results.push(t.wordArray),e.counter--,console.log("current counter: "+e.counter),e.maybeMerge()}function o(e){for(var t=0;t<e.length;t++)0===e[t].length&&e.splice(t,1);return e.length>0}function a(e,t){if(0===e.length)e.push(t);else{if(e[e.length-1].begin<=t.begin)return void e.push(t);for(var n=0;n<e.length;n++)if(t.begin<e[n].begin)return void e.splice(n,0,t);e.push(t)}}var s=n(48),c=n(111),u="before";r.prototype.start=function(){if(this.state!==u)throw new Error("The transcription can only start when it's in the \""+u+'" state. It\'s currently in the "'+this.state+'" state');this.state="recording",this.audioRecorder.start(),this.startTime=new Date},r.prototype.stop=function(e){var t=this;if("recording"!==this.state)throw new Error('The transcription can only stop when it\'s in the "recording" state. It\'s currently in the "'+this.state+'" state');console.log("stopping recording and sending audio files"),this.audioRecorder.stop();var n=i.bind(null,this);this.audioRecorder.getRecordingResults().forEach(function(e){t.transcriptionService.send(e,n),t.counter++}),this.state="transcribing",this.callback=e},r.prototype.maybeMerge=function(){"transcribing"===this.state&&0===this.counter&&this.merge()},r.prototype.merge=function(){var e=this;console.log("starting merge process!\n The length of the array: "+this.results.length),this.transcription="";var t=this.results,n=[];for(o(t),t.forEach(function(e){return a(n,e)});o(t);)!function(){var n=t[0];t.forEach(function(e){e[0].begin<n[0].begin&&(n=e)});var r=n.shift();for(e.updateTranscription(r,n.name);n.length>0&&"break"!==function(){var i=!1,o=n[0].begin;if(t.forEach(function(e){e[0].begin<o&&(i=!0)}),i)return"break";r=n.shift(),e.updateTranscription(r,null)}(););}();this.state="finished",this.callback&&this.callback(this.transcription)},r.prototype.updateTranscription=function(e,t){void 0!==t&&null!==t&&(this.transcription+="\n"+t+":",this.lineLength=t.length+1),this.lineLength+e.word.length>80&&(this.transcription+="\n ",this.lineLength=4),this.transcription+=" "+e.word,this.lineLength+=e.word.length+1},r.prototype.addTrack=function(e){this.audioRecorder.addTrack(e)},r.prototype.removeTrack=function(e){this.audioRecorder.removeTrack(e)},r.prototype.getTranscription=function(){if("finished"!==this.state)throw new Error('The transcription can only be retrieved when it\'s in the "finished" state. It\'s currently in the "'+this.state+'" state');return this.transcription},r.prototype.getState=function(){return this.state},r.prototype.reset=function(){this.state=u,this.counter=null,this.transcription=null,this.startTime=null,this.callback=null,this.results=[],this.lineLength=0},e.exports=r},function(e,t){var n=function(){throw new Error("TranscriptionService is abstract and cannot becreated")};n.prototype.send=function(e,t){var n=this;this.sendRequest(e.blob,function(r){n.verify(r)?e.wordArray=n.formatResponse(r):(console.log("the retrieved response from the server is not valid!"),e.wordArray=[]),t(e)})},n.prototype.sendRequest=function(e,t){throw new Error("TranscriptionService.sendRequest is abstract")},n.prototype.formatResponse=function(e){throw new Error("TranscriptionService.format is abstract")},n.prototype.verify=function(e){throw new Error("TranscriptionService.verify is abstract")},e.exports=n},function(e,t,n){function r(){var e="config does not contain an url to a Sphinx4 https server";if(void 0===config.sphinxURL)console.log(e);else{var t=config.sphinxURL;if(void 0!==t.includes&&t.includes("https://"))return t;console.log(e)}}var i=n(110),o=n(112),a=n(48),s=function(){this.url=r()};s.prototype=Object.create(i.prototype),s.constructor=s,s.prototype.sendRequest=function(e,t){console.log("sending an audio file to "+this.url),console.log("the audio file being sent: "+e);var n=new XMLHttpRequest;n.onreadystatechange=function(){if(n.readyState===XMLHttpRequest.DONE&&200===n.status)t(n.responseText);else if(n.readyState===XMLHttpRequest.DONE)throw new Error("unable to accept response from sphinx server. status: "+n.status)},n.open("POST",this.url),n.setRequestHeader("Content-Type",a.determineCorrectFileType()),n.send(e),console.log("send "+e)},s.prototype.formatResponse=function(e){var t=JSON.parse(e).objects;t.shift();var n=[];return t.forEach(function(e){return e.filler||n.push(new o(e.word,e.start,e.end))}),n},s.prototype.verify=function(e){if(console.log("response from server:"+e.toString()),"string"!=typeof e)return!1;var t=void 0;try{t=JSON.parse(e)}catch(e){return console.log(e),!1}if(void 0===t.objects)return!1;var n=t.objects;return!(!n[0]||!n[0]["session-id"])},e.exports=s},function(e,t){var n=function(e,t,n){this.word=e,this.begin=t,this.end=n};n.prototype.getWord=function(){return this.word},n.prototype.getBeginTime=function(){return this.begin},n.prototype.getEndTime=function(){return this.end},e.exports=n},function(e,t){var n={getTokenAuthUrl:function(e,t,n){var r=e;return"string"!=typeof r?null:r.replace("{room}",t).replace("{roleUpgrade}",!0===n)}};e.exports=n},function(e,t){function n(e,t){if(!e||!t||"function"!=typeof e.addListener||"function"!=typeof t.emit)throw new Error("Invalid arguments passed to EventEmitterForwarder");this.src=e,this.dest=t}n.prototype.forward=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];t[0]=this.dest,this.src.addListener(r,Function.prototype.bind.apply(this.dest.emit,t))},e.exports=n},function(e,t,n){function r(){return i.randomElement(o)+"-"+i.randomAlphanumStr(3)}
var i=n(19),o=["Aaliyah","Aaron","Abagail","Abbey","Abbie","Abbigail","Abby","Abdiel","Abdul","Abdullah","Abe","Abel","Abelardo","Abigail","Abigale","Abigayle","Abner","Abraham","Ada","Adah","Adalberto","Adaline","Adam","Adan","Addie","Addison","Adela","Adelbert","Adele","Adelia","Adeline","Adell","Adella","Adelle","Aditya","Adolf","Adolfo","Adolph","Adolphus","Adonis","Adrain","Adrian","Adriana","Adrianna","Adriel","Adrien","Adrienne","Afton","Aglae","Agnes","Agustin","Agustina","Ahmad","Ahmed","Aida","Aidan","Aiden","Aileen","Aisha","Aiyana","Akeem","Al","Alaina","Alan","Alana","Alanis","Alanna","Alayna","Alba","Albert","Alberta","Albertha","Alberto","Albin","Albina","Alda","Alden","Alec","Aleen","Alejandra","Alejandrin","Alek","Alena","Alene","Alessandra","Alessandro","Alessia","Aletha","Alex","Alexa","Alexander","Alexandra","Alexandre","Alexandrea","Alexandria","Alexandrine","Alexandro","Alexane","Alexanne","Alexie","Alexis","Alexys","Alexzander","Alf","Alfonso","Alfonzo","Alford","Alfred","Alfreda","Alfredo","Ali","Alia","Alice","Alicia","Alisa","Alisha","Alison","Alivia","Aliya","Aliyah","Aliza","Alize","Allan","Allen","Allene","Allie","Allison","Ally","Alphonso","Alta","Althea","Alva","Alvah","Alvena","Alvera","Alverta","Alvina","Alvis","Alyce","Alycia","Alysa","Alysha","Alyson","Alysson","Amalia","Amanda","Amani","Amara","Amari","Amaya","Amber","Ambrose","Amelia","Amelie","Amely","America","Americo","Amie","Amina","Amir","Amira","Amiya","Amos","Amparo","Amy","Amya","Ana","Anabel","Anabelle","Anahi","Anais","Anastacio","Anastasia","Anderson","Andre","Andreane","Andreanne","Andres","Andrew","Andy","Angel","Angela","Angelica","Angelina","Angeline","Angelita","Angelo","Angie","Angus","Anibal","Anika","Anissa","Anita","Aniya","Aniyah","Anjali","Anna","Annabel","Annabell","Annabelle","Annalise","Annamae","Annamarie","Anne","Annetta","Annette","Annie","Ansel","Ansley","Anthony","Antoinette","Antone","Antonetta","Antonette","Antonia","Antonietta","Antonina","Antonio","Antwan","Antwon","Anya","April","Ara","Araceli","Aracely","Arch","Archibald","Ardella","Arden","Ardith","Arely","Ari","Ariane","Arianna","Aric","Ariel","Arielle","Arjun","Arlene","Arlie","Arlo","Armand","Armando","Armani","Arnaldo","Arne","Arno","Arnold","Arnoldo","Arnulfo","Aron","Art","Arthur","Arturo","Arvel","Arvid","Arvilla","Aryanna","Asa","Asha","Ashlee","Ashleigh","Ashley","Ashly","Ashlynn","Ashton","Ashtyn","Asia","Assunta","Astrid","Athena","Aubree","Aubrey","Audie","Audra","Audreanne","Audrey","August","Augusta","Augustine","Augustus","Aurelia","Aurelie","Aurelio","Aurore","Austen","Austin","Austyn","Autumn","Ava","Avery","Avis","Axel","Ayana","Ayden","Ayla","Aylin","Baby","Bailee","Bailey","Barbara","Barney","Baron","Barrett","Barry","Bart","Bartholome","Barton","Baylee","Beatrice","Beau","Beaulah","Bell","Bella","Belle","Ben","Benedict","Benjamin","Bennett","Bennie","Benny","Benton","Berenice","Bernadette","Bernadine","Bernard","Bernardo","Berneice","Bernhard","Bernice","Bernie","Berniece","Bernita","Berry","Bert","Berta","Bertha","Bertram","Bertrand","Beryl","Bessie","Beth","Bethany","Bethel","Betsy","Bette","Bettie","Betty","Bettye","Beulah","Beverly","Bianka","Bill","Billie","Billy","Birdie","Blair","Blaise","Blake","Blanca","Blanche","Blaze","Bo","Bobbie","Bobby","Bonita","Bonnie","Boris","Boyd","Brad","Braden","Bradford","Bradley","Bradly","Brady","Braeden","Brain","Brandi","Brando","Brandon","Brandt","Brandy","Brandyn","Brannon","Branson","Brant","Braulio","Braxton","Brayan","Breana","Breanna","Breanne","Brenda","Brendan","Brenden","Brendon","Brenna","Brennan","Brennon","Brent","Bret","Brett","Bria","Brian","Briana","Brianne","Brice","Bridget","Bridgette","Bridie","Brielle","Brigitte","Brionna","Brisa","Britney","Brittany","Brock","Broderick","Brody","Brook","Brooke","Brooklyn","Brooks","Brown","Bruce","Bryana","Bryce","Brycen","Bryon","Buck","Bud","Buddy","Buford","Bulah","Burdette","Burley","Burnice","Buster","Cade","Caden","Caesar","Caitlyn","Cale","Caleb","Caleigh","Cali","Calista","Callie","Camden","Cameron","Camila","Camilla","Camille","Camren","Camron","Camryn","Camylle","Candace","Candelario","Candice","Candida","Candido","Cara","Carey","Carissa","Carlee","Carleton","Carley","Carli","Carlie","Carlo","Carlos","Carlotta","Carmel","Carmela","Carmella","Carmelo","Carmen","Carmine","Carol","Carolanne","Carole","Carolina","Caroline","Carolyn","Carolyne","Carrie","Carroll","Carson","Carter","Cary","Casandra","Casey","Casimer","Casimir","Casper","Cassandra","Cassandre","Cassidy","Cassie","Catalina","Caterina","Catharine","Catherine","Cathrine","Cathryn","Cathy","Cayla","Ceasar","Cecelia","Cecil","Cecile","Cecilia","Cedrick","Celestine","Celestino","Celia","Celine","Cesar","Chad","Chadd","Chadrick","Chaim","Chance","Chandler","Chanel","Chanelle","Charity","Charlene","Charles","Charley","Charlie","Charlotte","Chase","Chasity","Chauncey","Chaya","Chaz","Chelsea","Chelsey","Chelsie","Chesley","Chester","Chet","Cheyanne","Cheyenne","Chloe","Chris","Christ","Christa","Christelle","Christian","Christiana","Christina","Christine","Christop","Christophe","Christopher","Christy","Chyna","Ciara","Cicero","Cielo","Cierra","Cindy","Citlalli","Clair","Claire","Clara","Clarabelle","Clare","Clarissa","Clark","Claud","Claude","Claudia","Claudie","Claudine","Clay","Clemens","Clement","Clementina","Clementine","Clemmie","Cleo","Cleora","Cleta","Cletus","Cleve","Cleveland","Clifford","Clifton","Clint","Clinton","Clotilde","Clovis","Cloyd","Clyde","Coby","Cody","Colby","Cole","Coleman","Colin","Colleen","Collin","Colt","Colten","Colton","Columbus","Concepcion","Conner","Connie","Connor","Conor","Conrad","Constance","Constantin","Consuelo","Cooper","Cora","Coralie","Corbin","Cordelia","Cordell","Cordia","Cordie","Corene","Corine","Cornelius","Cornell","Corrine","Cortez","Cortney","Cory","Coty","Courtney","Coy","Craig","Crawford","Creola","Cristal","Cristian","Cristina","Cristobal","Cristopher","Cruz","Crystal","Crystel","Cullen","Curt","Curtis","Cydney","Cynthia","Cyril","Cyrus","Dagmar","Dahlia","Daija","Daisha","Daisy","Dakota","Dale","Dallas","Dallin","Dalton","Damaris","Dameon","Damian","Damien","Damion","Damon","Dan","Dana","Dandre","Dane","D'angelo","Dangelo","Danial","Daniela","Daniella","Danielle","Danika","Dannie","Danny","Dante","Danyka","Daphne","Daphnee","Daphney","Darby","Daren","Darian","Dariana","Darien","Dario","Darion","Darius","Darlene","Daron","Darrel","Darrell","Darren","Darrick","Darrin","Darrion","Darron","Darryl","Darwin","Daryl","Dashawn","Dasia","Dave","David","Davin","Davion","Davon","Davonte","Dawn","Dawson","Dax","Dayana","Dayna","Dayne","Dayton","Dean","Deangelo","Deanna","Deborah","Declan","Dedric","Dedrick","Dee","Deion","Deja","Dejah","Dejon","Dejuan","Delaney","Delbert","Delfina","Delia","Delilah","Dell","Della","Delmer","Delores","Delpha","Delphia","Delphine","Delta","Demarco","Demarcus","Demario","Demetris","Demetrius","Demond","Dena","Denis","Dennis","Deon","Deondre","Deontae","Deonte","Dereck","Derek","Derick","Deron","Derrick","Deshaun","Deshawn","Desiree","Desmond","Dessie","Destany","Destin","Destinee","Destiney","Destini","Destiny","Devan","Devante","Deven","Devin","Devon","Devonte","Devyn","Dewayne","Dewitt","Dexter","Diamond","Diana","Dianna","Diego","Dillan","Dillon","Dimitri","Dina","Dino","Dion","Dixie","Dock","Dolly","Dolores","Domenic","Domenica","Domenick","Domenico","Domingo","Dominic","Dominique","Don","Donald","Donato","Donavon","Donna","Donnell","Donnie","Donny","Dora","Dorcas","Dorian","Doris","Dorothea","Dorothy","Dorris","Dortha","Dorthy","Doug","Douglas","Dovie","Doyle","Drake","Drew","Duane","Dudley","Dulce","Duncan","Durward","Dustin","Dusty","Dwight","Dylan","Earl","Earlene","Earline","Earnest","Earnestine","Easter","Easton","Ebba","Ebony","Ed","Eda","Edd","Eddie","Eden","Edgar","Edgardo","Edison","Edmond","Edmund","Edna","Eduardo","Edward","Edwardo","Edwin","Edwina","Edyth","Edythe","Effie","Efrain","Efren","Eileen","Einar","Eino","Eladio","Elaina","Elbert","Elda","Eldon","Eldora","Eldred","Eldridge","Eleanora","Eleanore","Eleazar","Electa","Elena","Elenor","Elenora","Eleonore","Elfrieda","Eli","Elian","Eliane","Elias","Eliezer","Elijah","Elinor","Elinore","Elisa","Elisabeth","Elise","Eliseo","Elisha","Elissa","Eliza","Elizabeth","Ella","Ellen","Ellie","Elliot","Elliott","Ellis","Ellsworth","Elmer","Elmira","Elmo","Elmore","Elna","Elnora","Elody","Eloisa","Eloise","Elouise","Eloy","Elroy","Elsa","Else","Elsie","Elta","Elton","Elva","Elvera","Elvie","Elvis","Elwin","Elwyn","Elyse","Elyssa","Elza","Emanuel","Emelia","Emelie","Emely","Emerald","Emerson","Emery","Emie","Emil","Emile","Emilia","Emiliano","Emilie","Emilio","Emily","Emma","Emmalee","Emmanuel","Emmanuelle","Emmet","Emmett","Emmie","Emmitt","Emmy","Emory","Ena","Enid","Enoch","Enola","Enos","Enrico","Enrique","Ephraim","Era","Eriberto","Eric","Erica","Erich","Erick","Ericka","Erik","Erika","Erin","Erling","Erna","Ernest","Ernestina","Ernestine","Ernesto","Ernie","Ervin","Erwin","Eryn","Esmeralda","Esperanza","Esta","Esteban","Estefania","Estel","Estell","Estella","Estelle","Estevan","Esther","Estrella","Etha","Ethan","Ethel","Ethelyn","Ethyl","Ettie","Eudora","Eugene","Eugenia","Eula","Eulah","Eulalia","Euna","Eunice","Eusebio","Eva","Evalyn","Evan","Evangeline","Evans","Eve","Eveline","Evelyn","Everardo","Everett","Everette","Evert","Evie","Ewald","Ewell","Ezekiel","Ezequiel","Ezra","Fabian","Fabiola","Fae","Fannie","Fanny","Fatima","Faustino","Fausto","Favian","Fay","Faye","Federico","Felicia","Felicita","Felicity","Felipa","Felipe","Felix","Felton","Fermin","Fern","Fernando","Ferne","Fidel","Filiberto","Filomena","Finn","Fiona","Flavie","Flavio","Fleta","Fletcher","Flo","Florence","Florencio","Florian","Florida","Florine","Flossie","Floy","Floyd","Ford","Forest","Forrest","Foster","Frances","Francesca","Francesco","Francis","Francisca","Francisco","Franco","Frank","Frankie","Franz","Fred","Freda","Freddie","Freddy","Frederic","Frederick","Frederik","Frederique","Fredrick","Fredy","Freeda","Freeman","Freida","Frida","Frieda","Friedrich","Fritz","Furman","Gabe","Gabriel","Gabriella","Gabrielle","Gaetano","Gage","Gail","Gardner","Garett","Garfield","Garland","Garnet","Garnett","Garret","Garrett","Garrick","Garrison","Garry","Garth","Gaston","Gavin","Gay","Gayle","Gaylord","Gene","General","Genesis","Genevieve","Gennaro","Genoveva","Geo","Geoffrey","George","Georgette","Georgiana","Georgianna","Geovanni","Geovanny","Geovany","Gerald","Geraldine","Gerard","Gerardo","Gerda","Gerhard","Germaine","German","Gerry","Gerson","Gertrude","Gia","Gianni","Gideon","Gilbert","Gilberto","Gilda","Giles","Gillian","Gina","Gino","Giovani","Giovanna","Giovanni","Giovanny","Gisselle","Giuseppe","Gladyce","Gladys","Glen","Glenda","Glenna","Glennie","Gloria","Godfrey","Golda","Golden","Gonzalo","Gordon","Grace","Gracie","Graciela","Grady","Graham","Grant","Granville","Grayce","Grayson","Green","Greg","Gregg","Gregoria","Gregorio","Gregory","Greta","Gretchen","Greyson","Griffin","Grover","Guadalupe","Gudrun","Guido","Guillermo","Guiseppe","Gunnar","Gunner","Gus","Gussie","Gust","Gustave","Guy","Gwen","Gwendolyn","Hadley","Hailee","Hailey","Hailie","Hal","Haleigh","Haley","Halie","Halle","Hallie","Hank","Hanna","Hannah","Hans","Hardy","Harley","Harmon","Harmony","Harold","Harrison","Harry","Harvey","Haskell","Hassan","Hassie","Hattie","Haven","Hayden","Haylee","Hayley","Haylie","Hazel","Hazle","Heath","Heather","Heaven","Heber","Hector","Heidi","Helen","Helena","Helene","Helga","Hellen","Helmer","Heloise","Henderson","Henri","Henriette","Henry","Herbert","Herman","Hermann","Hermina","Herminia","Herminio","Hershel","Herta","Hertha","Hester","Hettie","Hilario","Hilbert","Hilda","Hildegard","Hillard","Hillary","Hilma","Hilton","Hipolito","Hiram","Hobart","Holden","Hollie","Hollis","Holly","Hope","Horace","Horacio","Hortense","Hosea","Houston","Howard","Howell","Hoyt","Hubert","Hudson","Hugh","Hulda","Humberto","Hunter","Hyman","Ian","Ibrahim","Icie","Ida","Idell","Idella","Ignacio","Ignatius","Ike","Ila","Ilene","Iliana","Ima","Imani","Imelda","Immanuel","Imogene","Ines","Irma","Irving","Irwin","Isaac","Isabel","Isabell","Isabella","Isabelle","Isac","Isadore","Isai","Isaiah","Isaias","Isidro","Ismael","Isobel","Isom","Israel","Issac","Itzel","Iva","Ivah","Ivory","Ivy","Izabella","Izaiah","Jabari","Jace","Jacey","Jacinthe","Jacinto","Jack","Jackeline","Jackie","Jacklyn","Jackson","Jacky","Jaclyn","Jacquelyn","Jacques","Jacynthe","Jada","Jade","Jaden","Jadon","Jadyn","Jaeden","Jaida","Jaiden","Jailyn","Jaime","Jairo","Jakayla","Jake","Jakob","Jaleel","Jalen","Jalon","Jalyn","Jamaal","Jamal","Jamar","Jamarcus","Jamel","Jameson","Jamey","Jamie","Jamil","Jamir","Jamison","Jammie","Jan","Jana","Janae","Jane","Janelle","Janessa","Janet","Janice","Janick","Janie","Janis","Janiya","Jannie","Jany","Jaquan","Jaquelin","Jaqueline","Jared","Jaren","Jarod","Jaron","Jarred","Jarrell","Jarret","Jarrett","Jarrod","Jarvis","Jasen","Jasmin","Jason","Jasper","Jaunita","Javier","Javon","Javonte","Jay","Jayce","Jaycee","Jayda","Jayde","Jayden","Jaydon","Jaylan","Jaylen","Jaylin","Jaylon","Jayme","Jayne","Jayson","Jazlyn","Jazmin","Jazmyn","Jazmyne","Jean","Jeanette","Jeanie","Jeanne","Jed","Jedediah","Jedidiah","Jeff","Jefferey","Jeffery","Jeffrey","Jeffry","Jena","Jenifer","Jennie","Jennifer","Jennings","Jennyfer","Jensen","Jerad","Jerald","Jeramie","Jeramy","Jerel","Jeremie","Jeremy","Jermain","Jermaine","Jermey","Jerod","Jerome","Jeromy","Jerrell","Jerrod","Jerrold","Jerry","Jess","Jesse","Jessica","Jessie","Jessika","Jessy","Jessyca","Jesus","Jett","Jettie","Jevon","Jewel","Jewell","Jillian","Jimmie","Jimmy","Jo","Joan","Joana","Joanie","Joanne","Joannie","Joanny","Joany","Joaquin","Jocelyn","Jodie","Jody","Joe","Joel","Joelle","Joesph","Joey","Johan","Johann","Johanna","Johathan","John","Johnathan","Johnathon","Johnnie","Johnny","Johnpaul","Johnson","Jolie","Jon","Jonas","Jonatan","Jonathan","Jonathon","Jordan","Jordane","Jordi","Jordon","Jordy","Jordyn","Jorge","Jose","Josefa","Josefina","Joseph","Josephine","Josh","Joshua","Joshuah","Josiah","Josiane","Josianne","Josie","Josue","Jovan","Jovani","Jovanny","Jovany","Joy","Joyce","Juana","Juanita","Judah","Judd","Jude","Judge","Judson","Judy","Jules","Julia","Julian","Juliana","Julianne","Julie","Julien","Juliet","Julio","Julius","June","Junior","Junius","Justen","Justice","Justina","Justine","Juston","Justus","Justyn","Juvenal","Juwan","Kacey","Kaci","Kacie","Kade","Kaden","Kadin","Kaela","Kaelyn","Kaia","Kailee","Kailey","Kailyn","Kaitlin","Kaitlyn","Kale","Kaleb","Kaleigh","Kaley","Kali","Kallie","Kameron","Kamille","Kamren","Kamron","Kamryn","Kane","Kara","Kareem","Karelle","Karen","Kari","Kariane","Karianne","Karina","Karine","Karl","Karlee","Karley","Karli","Karlie","Karolann","Karson","Kasandra","Kasey","Kassandra","Katarina","Katelin","Katelyn","Katelynn","Katharina","Katherine","Katheryn","Kathleen","Kathlyn","Kathryn","Kathryne","Katlyn","Katlynn","Katrina","Katrine","Kattie","Kavon","Kay","Kaya","Kaycee","Kayden","Kayla","Kaylah","Kaylee","Kayleigh","Kayley","Kayli","Kaylie","Kaylin","Keagan","Keanu","Keara","Keaton","Keegan","Keeley","Keely","Keenan","Keira","Keith","Kellen","Kelley","Kelli","Kellie","Kelly","Kelsi","Kelsie","Kelton","Kelvin","Ken","Kendall","Kendra","Kendrick","Kenna","Kennedi","Kennedy","Kenneth","Kennith","Kenny","Kenton","Kenya","Kenyatta","Kenyon","Keon","Keshaun","Keshawn","Keven","Kevin","Kevon","Keyon","Keyshawn","Khalid","Khalil","Kian","Kiana","Kianna","Kiara","Kiarra","Kiel","Kiera","Kieran","Kiley","Kim","Kimberly","King","Kip","Kira","Kirk","Kirsten","Kirstin","Kitty","Kobe","Koby","Kody","Kolby","Kole","Korbin","Korey","Kory","Kraig","Kris","Krista","Kristian","Kristin","Kristina","Kristofer","Kristoffer","Kristopher","Kristy","Krystal","Krystel","Krystina","Kurt","Kurtis","Kyla","Kyle","Kylee","Kyleigh","Kyler","Kylie","Kyra","Lacey","Lacy","Ladarius","Lafayette","Laila","Laisha","Lamar","Lambert","Lamont","Lance","Landen","Lane","Laney","Larissa","Laron","Larry","Larue","Laura","Laurel","Lauren","Laurence","Lauretta","Lauriane","Laurianne","Laurie","Laurine","Laury","Lauryn","Lavada","Lavern","Laverna","Laverne","Lavina","Lavinia","Lavon","Lavonne","Lawrence","Lawson","Layla","Layne","Lazaro","Lea","Leann","Leanna","Leanne","Leatha","Leda","Lee","Leif","Leila","Leilani","Lela","Lelah","Leland","Lelia","Lempi","Lemuel","Lenna","Lennie","Lenny","Lenora","Lenore","Leo","Leola","Leon","Leonard","Leonardo","Leone","Leonel","Leonie","Leonor","Leonora","Leopold","Leopoldo","Leora","Lera","Lesley","Leslie","Lesly","Lessie","Lester","Leta","Letha","Letitia","Levi","Lew","Lewis","Lexi","Lexie","Lexus","Lia","Liam","Liana","Libbie","Libby","Lila","Lilian","Liliana","Liliane","Lilla","Lillian","Lilliana","Lillie","Lilly","Lily","Lilyan","Lina","Lincoln","Linda","Lindsay","Lindsey","Linnea","Linnie","Linwood","Lionel","Lisa","Lisandro","Lisette","Litzy","Liza","Lizeth","Lizzie","Llewellyn","Lloyd","Logan","Lois","Lola","Lolita","Loma","Lon","London","Lonie","Lonnie","Lonny","Lonzo","Lora","Loraine","Loren","Lorena","Lorenz","Lorenza","Lorenzo","Lori","Lorine","Lorna","Lottie","Lou","Louie","Louisa","Lourdes","Louvenia","Lowell","Loy","Loyal","Loyce","Lucas","Luciano","Lucie","Lucienne","Lucile","Lucinda","Lucio","Lucious","Lucius","Lucy","Ludie","Ludwig","Lue","Luella","Luigi","Luis","Luisa","Lukas","Lula","Lulu","Luna","Lupe","Lura","Lurline","Luther","Luz","Lyda","Lydia","Lyla","Lynn","Lyric","Lysanne","Mabel","Mabelle","Mable","Mac","Macey","Maci","Macie","Mack","Mackenzie","Macy","Madaline","Madalyn","Maddison","Madeline","Madelyn","Madelynn","Madge","Madie","Madilyn","Madisen","Madison","Madisyn","Madonna","Madyson","Mae","Maegan","Maeve","Mafalda","Magali","Magdalen","Magdalena","Maggie","Magnolia","Magnus","Maia","Maida","Maiya","Major","Makayla","Makenna","Makenzie","Malachi","Malcolm","Malika","Malinda","Mallie","Mallory","Malvina","Mandy","Manley","Manuel","Manuela","Mara","Marc","Marcel","Marcelina","Marcelino","Marcella","Marcelle","Marcellus","Marcelo","Marcia","Marco","Marcos","Marcus","Margaret","Margarete","Margarett","Margaretta","Margarette","Margarita","Marge","Margie","Margot","Margret","Marguerite","Maria","Mariah","Mariam","Marian","Mariana","Mariane","Marianna","Marianne","Mariano","Maribel","Marie","Mariela","Marielle","Marietta","Marilie","Marilou","Marilyne","Marina","Mario","Marion","Marisa","Marisol","Maritza","Marjolaine","Marjorie","Marjory","Mark","Markus","Marlee","Marlen","Marlene","Marley","Marlin","Marlon","Marques","Marquis","Marquise","Marshall","Marta","Martin","Martina","Martine","Marty","Marvin","Mary","Maryam","Maryjane","Maryse","Mason","Mateo","Mathew","Mathias","Mathilde","Matilda","Matilde","Matt","Matteo","Mattie","Maud","Maude","Maudie","Maureen","Maurice","Mauricio","Maurine","Maverick","Mavis","Max","Maxie","Maxime","Maximilian","Maximillia","Maximillian","Maximo","Maximus","Maxine","Maxwell","May","Maya","Maybell","Maybelle","Maye","Maymie","Maynard","Mayra","Mazie","Mckayla","Mckenna","Mckenzie","Meagan","Meaghan","Meda","Megane","Meggie","Meghan","Mekhi","Melany","Melba","Melisa","Melissa","Mellie","Melody","Melvin","Melvina","Melyna","Melyssa","Mercedes","Meredith","Merl","Merle","Merlin","Merritt","Mertie","Mervin","Meta","Mia","Micaela","Micah","Michael","Michaela","Michale","Micheal","Michel","Michele","Michelle","Miguel","Mikayla","Mike","Mikel","Milan","Miles","Milford","Miller","Millie","Milo","Milton","Mina","Minerva","Minnie","Miracle","Mireille","Mireya","Misael","Missouri","Misty","Mitchel","Mitchell","Mittie","Modesta","Modesto","Mohamed","Mohammad","Mohammed","Moises","Mollie","Molly","Mona","Monica","Monique","Monroe","Monserrat","Monserrate","Montana","Monte","Monty","Morgan","Moriah","Morris","Mortimer","Morton","Mose","Moses","Moshe","Mossie","Mozell","Mozelle","Muhammad","Muriel","Murl","Murphy","Murray","Mustafa","Mya","Myah","Mylene","Myles","Myra","Myriam","Myrl","Myrna","Myron","Myrtice","Myrtie","Myrtis","Myrtle","Nadia","Nakia","Name","Nannie","Naomi","Naomie","Napoleon","Narciso","Nash","Nasir","Nat","Natalia","Natalie","Natasha","Nathan","Nathanael","Nathanial","Nathaniel","Nathen","Nayeli","Neal","Ned","Nedra","Neha","Neil","Nelda","Nella","Nelle","Nellie","Nels","Nelson","Neoma","Nestor","Nettie","Neva","Newell","Newton","Nia","Nicholas","Nicholaus","Nichole","Nick","Nicklaus","Nickolas","Nico","Nicola","Nicolas","Nicole","Nicolette","Nigel","Nikita","Nikki","Nikko","Niko","Nikolas","Nils","Nina","Noah","Noble","Noe","Noel","Noelia","Noemi","Noemie","Noemy","Nola","Nolan","Nona","Nora","Norbert","Norberto","Norene","Norma","Norris","Norval","Norwood","Nova","Novella","Nya","Nyah","Nyasia","Obie","Oceane","Ocie","Octavia","Oda","Odell","Odessa","Odie","Ofelia","Okey","Ola","Olaf","Ole","Olen","Oleta","Olga","Olin","Oliver","Ollie","Oma","Omari","Omer","Ona","Onie","Opal","Ophelia","Ora","Oral","Oran","Oren","Orie","Orin","Orion","Orland","Orlando","Orlo","Orpha","Orrin","Orval","Orville","Osbaldo","Osborne","Oscar","Osvaldo","Oswald","Oswaldo","Otha","Otho","Otilia","Otis","Ottilie","Ottis","Otto","Ova","Owen","Ozella","Pablo","Paige","Palma","Pamela","Pansy","Paolo","Paris","Parker","Pascale","Pasquale","Pat","Patience","Patricia","Patrick","Patsy","Pattie","Paul","Paula","Pauline","Paxton","Payton","Pearl","Pearlie","Pearline","Pedro","Peggie","Penelope","Percival","Percy","Perry","Pete","Peter","Petra","Peyton","Philip","Phoebe","Phyllis","Pierce","Pierre","Pietro","Pink","Pinkie","Piper","Polly","Porter","Precious","Presley","Preston","Price","Prince","Princess","Priscilla","Providenci","Prudence","Queen","Queenie","Quentin","Quincy","Quinn","Quinten","Quinton","Rachael","Rachel","Rachelle","Rae","Raegan","Rafael","Rafaela","Raheem","Rahsaan","Rahul","Raina","Raleigh","Ralph","Ramiro","Ramon","Ramona","Randal","Randall","Randi","Randy","Ransom","Raoul","Raphael","Raphaelle","Raquel","Rashad","Rashawn","Rasheed","Raul","Raven","Ray","Raymond","Raymundo","Reagan","Reanna","Reba","Rebeca","Rebecca","Rebeka","Rebekah","Reece","Reed","Reese","Regan","Reggie","Reginald","Reid","Reilly","Reina","Reinhold","Remington","Rene","Renee","Ressie","Reta","Retha","Retta","Reuben","Reva","Rex","Rey","Reyes","Reymundo","Reyna","Reynold","Rhea","Rhett","Rhianna","Rhiannon","Rhoda","Ricardo","Richard","Richie","Richmond","Rick","Rickey","Rickie","Ricky","Rico","Rigoberto","Riley","Rita","River","Robb","Robbie","Robert","Roberta","Roberto","Robin","Robyn","Rocio","Rocky","Rod","Roderick","Rodger","Rodolfo","Rodrick","Rodrigo","Roel","Rogelio","Roger","Rogers","Rolando","Rollin","Roma","Romaine","Roman","Ron","Ronaldo","Ronny","Roosevelt","Rory","Rosa","Rosalee","Rosalia","Rosalind","Rosalinda","Rosalyn","Rosamond","Rosanna","Rosario","Roscoe","Rose","Rosella","Roselyn","Rosemarie","Rosemary","Rosendo","Rosetta","Rosie","Rosina","Roslyn","Ross","Rossie","Rowan","Rowena","Rowland","Roxane","Roxanne","Roy","Royal","Royce","Rozella","Ruben","Rubie","Ruby","Rubye","Rudolph","Rudy","Rupert","Russ","Russel","Russell","Rusty","Ruth","Ruthe","Ruthie","Ryan","Ryann","Ryder","Rylan","Rylee","Ryleigh","Ryley","Sabina","Sabrina","Sabryna","Sadie","Sadye","Sage","Saige","Sallie","Sally","Salma","Salvador","Salvatore","Sam","Samanta","Samantha","Samara","Samir","Sammie","Sammy","Samson","Sandra","Sandrine","Sandy","Sanford","Santa","Santiago","Santina","Santino","Santos","Sarah","Sarai","Sarina","Sasha","Saul","Savanah","Savanna","Savannah","Savion","Scarlett","Schuyler","Scot","Scottie","Scotty","Seamus","Sean","Sebastian","Sedrick","Selena","Selina","Selmer","Serena","Serenity","Seth","Shad","Shaina","Shakira","Shana","Shane","Shanel","Shanelle","Shania","Shanie","Shaniya","Shanna","Shannon","Shanny","Shanon","Shany","Sharon","Shaun","Shawn","Shawna","Shaylee","Shayna","Shayne","Shea","Sheila","Sheldon","Shemar","Sheridan","Sherman","Sherwood","Shirley","Shyann","Shyanne","Sibyl","Sid","Sidney","Sienna","Sierra","Sigmund","Sigrid","Sigurd","Silas","Sim","Simeon","Simone","Sincere","Sister","Skye","Skyla","Skylar","Sofia","Soledad","Solon","Sonia","Sonny","Sonya","Sophia","Sophie","Spencer","Stacey","Stacy","Stan","Stanford","Stanley","Stanton","Stefan","Stefanie","Stella","Stephan","Stephania","Stephanie","Stephany","Stephen","Stephon","Sterling","Steve","Stevie","Stewart","Stone","Stuart","Summer","Sunny","Susan","Susana","Susanna","Susie","Suzanne","Sven","Syble","Sydnee","Sydney","Sydni","Sydnie","Sylvan","Sylvester","Sylvia","Tabitha","Tad","Talia","Talon","Tamara","Tamia","Tania","Tanner","Tanya","Tara","Taryn","Tate","Tatum","Tatyana","Taurean","Tavares","Taya","Taylor","Teagan","Ted","Telly","Terence","Teresa","Terrance","Terrell","Terrence","Terrill","Terry","Tess","Tessie","Tevin","Thad","Thaddeus","Thalia","Thea","Thelma","Theo","Theodora","Theodore","Theresa","Therese","Theresia","Theron","Thomas","Thora","Thurman","Tia","Tiana","Tianna","Tiara","Tierra","Tiffany","Tillman","Timmothy","Timmy","Timothy","Tina","Tito","Titus","Tobin","Toby","Tod","Tom","Tomas","Tomasa","Tommie","Toney","Toni","Tony","Torey","Torrance","Torrey","Toy","Trace","Tracey","Tracy","Travis","Travon","Tre","Tremaine","Tremayne","Trent","Trenton","Tressa","Tressie","Treva","Trever","Trevion","Trevor","Trey","Trinity","Trisha","Tristian","Tristin","Triston","Troy","Trudie","Trycia","Trystan","Turner","Twila","Tyler","Tyra","Tyree","Tyreek","Tyrel","Tyrell","Tyrese","Tyrique","Tyshawn","Tyson","Ubaldo","Ulices","Ulises","Una","Unique","Urban","Uriah","Uriel","Ursula","Vada","Valentin","Valentina","Valentine","Valerie","Vallie","Van","Vance","Vanessa","Vaughn","Veda","Velda","Vella","Velma","Velva","Vena","Verda","Verdie","Vergie","Verla","Verlie","Vern","Verna","Verner","Vernice","Vernie","Vernon","Verona","Veronica","Vesta","Vicenta","Vicente","Vickie","Vicky","Victor","Victoria","Vida","Vidal","Vilma","Vince","Vincent","Vincenza","Vincenzo","Vinnie","Viola","Violet","Violette","Virgie","Virgil","Virginia","Virginie","Vita","Vito","Viva","Vivian","Viviane","Vivianne","Vivien","Vivienne","Vladimir","Wade","Waino","Waldo","Walker","Wallace","Walter","Walton","Wanda","Ward","Warren","Watson","Wava","Waylon","Wayne","Webster","Weldon","Wellington","Wendell","Wendy","Werner","Westley","Weston","Whitney","Wilber","Wilbert","Wilburn","Wiley","Wilford","Wilfred","Wilfredo","Wilfrid","Wilhelm","Wilhelmine","Will","Willa","Willard","William","Willie","Willis","Willow","Willy","Wilma","Wilmer","Wilson","Wilton","Winfield","Winifred","Winnifred","Winona","Winston","Woodrow","Wyatt","Wyman","Xander","Xavier","Xzavier","Yadira","Yasmeen","Yasmin","Yasmine","Yazmin","Yesenia","Yessenia","Yolanda","Yoshiko","Yvette","Yvonne","Zachariah","Zachary","Zachery","Zack","Zackary","Zackery","Zakary","Zander","Zane","Zaria","Zechariah","Zelda","Zella","Zelma","Zena","Zetta","Zion","Zita","Zoe","Zoey","Zoie","Zoila","Zola","Zora","Zula"];e.exports={generateUsername:r}},function(e,t,n){"use strict";(function(e){function r(e){this.versions={},this.conference=e,this.conference.addCommandListener("versions",this.processPresence.bind(this))}t.a=r;var i=n(6),o=n(0).getLogger(e);r.FOCUS_COMPONENT="focus",r.VIDEOBRIDGE_COMPONENT="videobridge",r.XMPP_SERVER_COMPONENT="xmpp",r.prototype.processPresence=function(e,t,n){var a=this;if("http://jitsi.org/jitmeet"!==e.attributes.xmlns)return void o.warn("Ignored presence versions node - invalid xmlns",e);if(!this.conference._isFocus(n))return void o.warn("Received versions not from the focus user: "+e,n);var s=[];e.children.forEach(function(e){var t=e.attributes.name;if(t!==r.FOCUS_COMPONENT&&t!==r.XMPP_SERVER_COMPONENT&&t!==r.VIDEOBRIDGE_COMPONENT)return void o.warn("Received version for not supported component name: "+t);var n=e.value;a.versions[t]!==n&&(a.versions[t]=n,o.info("Got "+t+" version: "+n),s.push({id:"component_version",component:t,version:n}))}),s.length>0&&i.a.sendLog(JSON.stringify(s))},r.prototype.getComponentVersion=function(e){return this.versions[e]}}).call(t,"modules/version/ComponentsVersions.js")},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=(n.n(a),n(10)),c=n(30),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n.i(a.getLogger)(e),d=function(e){function t(e,n,o){r(this,t);var a=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.sipAddress=e,a.displayName=n,a.chatRoom=o,a.state=void 0,a}return o(t,e),u(t,[{key:"stop",value:function(){if(this.state===c.STATE_OFF||this.state===c.STATE_FAILED)return void l.warn("Video SIP GW session already stopped or failed!");this._sendJibriIQ("stop")}},{key:"start",value:function(){if(this.state===c.STATE_ON||this.state===c.STATE_OFF||this.state===c.STATE_PENDING||this.state===c.STATE_RETRYING)return void l.warn("Video SIP GW session already started!");this._sendJibriIQ("start")}},{key:"setState",value:function(e){if(e!==this.state){var t=this.state;this.state=e,this.eventEmitter.emit(this.sipAddress,{name:"STATE_CHANGED",oldState:t,newState:this.state})}}},{key:"addStateListener",value:function(e){this.addListener("STATE_CHANGED",e)}},{key:"removeStateListener",value:function(e){this.removeListener("STATE_CHANGED",e)}},{key:"_sendJibriIQ",value:function(e){var t=this,n={xmlns:"http://jitsi.org/protocol/jibri",action:e,sipaddress:this.sipAddress};n.displayname=this.displayName;var r=$iq({to:this.chatRoom.focusMucJid,type:"set"}).c("jibri",n).up();l.log("Stop video SIP GW session",r.nodeTree),this.chatRoom.connection.sendIQ(r,function(e){l.log("Result",e);var n=$(e).find("jibri").attr("state");t.setState(n)},function(e){l.log("Failed to start video SIP GW session, error: ",e),t.setState(c.STATE_FAILED)})}}]),t}(s.a);t.a=d}).call(t,"modules/videosipgw/JitsiVideoSIPGWSession.js")},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(0),o=(n.n(i),n(117)),a=n(30),s=n(7),c=n.n(s),u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n.i(i.getLogger)(e),d=function(){function e(t){r(this,e),this.chatRoom=t,this.eventEmitter=t.eventEmitter,l.info("creating VideoSIPGW"),this.sessions={},this.sessionStateChangeListener=this.sessionStateChanged.bind(this),t.addPresenceListener("jibri-sip-status",this.handleJibriSIPStatus.bind(this)),t.addPresenceListener("jibri-sip-call-state",this.handleJibriSIPState.bind(this))}return u(e,[{key:"handleJibriSIPStatus",value:function(e){var t=e.attributes;if(t){l.log("Handle video sip gw status : ",t);var n=t.status;n===this.status||n!==a.STATUS_UNDEFINED&&n!==a.STATUS_AVAILABLE&&n!==a.STATUS_BUSY||(this.status=n,this.eventEmitter.emit(c.a.VIDEO_SIP_GW_AVAILABILITY_CHANGED,this.status))}}},{key:"handleJibriSIPState",value:function(e){var t=e.attributes;if(t){l.log("Handle video sip gw state : ",t);var n=t.state;if(n!==this.state)switch(n){case a.STATE_ON:case a.STATE_OFF:case a.STATE_PENDING:case a.STATE_RETRYING:case a.STATE_FAILED:var r=t.sipaddress;if(!r)return
;var i=this.sessions[r];i?i.setState(n):l.warn("Video SIP GW session not found:",r)}}}},{key:"createVideoSIPGWSession",value:function(e,t){var n=new o.a(e,t,this.chatRoom);return n.addStateListener(this.sessionStateChangeListener),this.sessions[e]&&l.warn("There was already a Video SIP GW session for address",e),this.sessions[e]=n,n}},{key:"isVideoSIPGWAvailable",value:function(){return this.status===a.STATUS_AVAILABLE}},{key:"sessionStateChanged",value:function(e,t){if(t.newState===a.STATE_OFF||t.newState===a.STATE_FAILED){var n=this.sessions[e];if(!n)return void l.error("Missing Video SIP GW session with address:",e);n.removeStateListener(this.sessionStateChangeListener),delete this.sessions[e]}}}]),e}();t.a=d}).call(t,"modules/videosipgw/VideoSIPGW.js")},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){var n=0;return p.some(function(r){return 0!==(n=e[r]>t[r]&&1||e[r]<t[r]&&-1)}),n}var s=n(7),c=n.n(s),u=n(10),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=["category","type","lang","name"],p=["category","type","lang"],f=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"http://jitsi.org/jitsimeet";r(this,t);var o=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(o.node=n,o.disco=e.disco,!o.disco)throw new Error("Missing strophe-plugins (disco and caps plugins are required)!");o.versionToCapabilities=Object.create(null),o.jidToVersion=Object.create(null),o.version="",o.rooms=new Set;var a=e.emuc;return a.addListener(c.a.EMUC_ROOM_ADDED,function(e){return o._addChatRoom(e)}),a.addListener(c.a.EMUC_ROOM_REMOVED,function(e){return o._removeChatRoom(e)}),Object.keys(a.rooms).forEach(function(e){o._addChatRoom(a.rooms[e])}),Strophe.addNamespace("CAPS","http://jabber.org/protocol/caps"),o.disco.addFeature(Strophe.NS.CAPS),e.addHandler(o._handleCaps.bind(o),Strophe.NS.CAPS),o._onMucMemberLeft=o._removeJidToVersionEntry.bind(o),o}return o(t,e),l(t,[{key:"addFeature",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.disco.addFeature(e),this._generateVersion(),t&&this.submit()}},{key:"removeFeature",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.disco.removeFeature(e),this._generateVersion(),t&&this.submit()}},{key:"submit",value:function(){this.rooms.forEach(function(e){return e.sendPresence()})}},{key:"getFeatures",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5e3,r=e in this.jidToVersion?this.jidToVersion[e]:null;if(!(r&&r.version in this.versionToCapabilities)){var i=r?r.node+"#"+r.version:null;return new Promise(function(o,a){return t.disco.info(e,i,function(e){var n=new Set;$(e).find(">query>feature").each(function(e,t){return n.add(t.getAttribute("var"))}),r&&(t.versionToCapabilities[r.version]=n),o(n)},a,n)})}return Promise.resolve(this.versionToCapabilities[r.version])}},{key:"_addChatRoom",value:function(e){this.rooms.add(e),e.addListener(c.a.MUC_MEMBER_LEFT,this._onMucMemberLeft),this._fixChatRoomPresenceMap(e)}},{key:"_removeChatRoom",value:function(e){this.rooms.delete(e),e.removeListener(c.a.MUC_MEMBER_LEFT,this._onMucMemberLeft)}},{key:"_fixChatRoomPresenceMap",value:function(e){e.addToPresence("c",{attributes:{xmlns:Strophe.NS.CAPS,hash:"sha-1",node:this.node,ver:this.version}})}},{key:"_notifyVersionChanged",value:function(){var e=this;this.rooms.forEach(function(t){return e._fixChatRoomPresenceMap(t)}),this.submit()}},{key:"_generateVersion",value:function(){var e=this.disco._identities.sort(a),t=this.disco._features.sort();this.version=b64_sha1(e.reduce(function(e,t){return d.reduce(function(e,n,r){return e+(0===r?"":"/")+t[n]},"")+"<"},"")+t.reduce(function(e,t){return e+t+"<"},"")),this._notifyVersionChanged()}},{key:"_handleCaps",value:function(e){var t=e.getAttribute("from"),n=e.querySelector("c"),r=n.getAttribute("ver"),i=n.getAttribute("node"),o=this.jidToVersion[t];return this.jidToVersion[t]={version:r,node:i},o&&o.version!==r&&this.eventEmitter.emit(c.a.PARTCIPANT_FEATURES_CHANGED,t),!0}},{key:"_removeJidToVersionEntry",value:function(e){e in this.jidToVersion&&delete this.jidToVersion[e]}}]),t}(u.a);t.a=f},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){for(var n=[],r=0;r<e.length;r++)e[r].tagName===t&&n.push(e[r]);return n}var s=n(0),c=(n.n(s),n(3)),u=n.n(c),l=n(10),d=n(4),p=n(127),f=n(128),h=n(7),m=n.n(h),v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=n.i(s.getLogger)(e),g={packet2JSON:function(e,t){var n=this;$(e).children().each(function(){var e=$(this).prop("tagName"),r={tagName:e};r.attributes={},$($(this)[0].attributes).each(function(e,t){r.attributes[t.name]=t.value});var i=Strophe.getText($(this)[0]);i&&(r.value=i),r.children=[],t.push(r),n.packet2JSON($(this),r.children)})},json2packet:function(e,t){for(var n=0;n<e.length;n++){var r=e[n];r&&(t.c(r.tagName,r.attributes),r.value&&t.t(r.value),r.children&&this.json2packet(r.children,t),t.up())}}},b=function(e){function t(e,n,o,a,s){r(this,t);var c=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return c.xmpp=a,c.connection=e,c.roomjid=Strophe.getBareJidFromJid(n),c.myroomjid=n,c.password=o,y.info("Joined MUC as "+c.myroomjid),c.members={},c.presMap={},c.presHandlers={},c.joined=!1,c.role=null,c.focusMucJid=null,c.noBridgeAvailable=!1,c.options=s||{},c.moderator=new p.a(c.roomjid,c.xmpp,c.eventEmitter,{connection:c.xmpp.options,conference:c.options}),c.initPresenceMap(s),c.lastPresences={},c.phoneNumber=null,c.phonePin=null,c.connectionTimes={},c.participantPropertyListener=null,c.locked=!1,c}return o(t,e),v(t,[{key:"initPresenceMap",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.presMap.to=this.myroomjid,this.presMap.xns="http://jabber.org/protocol/muc",this.presMap.nodes=[],this.presMap.nodes.push({tagName:"user-agent",value:navigator.userAgent,attributes:{xmlns:"http://jitsi.org/jitmeet/user-agent"}}),this.addVideoInfoToPresence(!1),e.deploymentInfo&&e.deploymentInfo.userRegion&&this.presMap.nodes.push({tagName:"region",attributes:{id:e.deploymentInfo.userRegion,xmlns:"http://jitsi.org/jitsi-meet"}})}},{key:"updateDeviceAvailability",value:function(e){this.presMap.nodes.push({tagName:"devices",children:[{tagName:"audio",value:e.audio},{tagName:"video",value:e.video}]})}},{key:"join",value:function(e){var t=this;this.password=e,this.moderator.allocateConferenceFocus(function(){return t.sendPresence(!0)})}},{key:"sendPresence",value:function(e){var t=this.presMap.to;if(t&&(this.joined||e)){var n=$pres({to:t});e&&(n.c("x",{xmlns:this.presMap.xns}),this.password&&n.c("password").t(this.password).up(),n.up()),g.json2packet(this.presMap.nodes,n),this.connection.send(n),e&&this.connection.flush()}}},{key:"doLeave",value:function(){y.log("do leave",this.myroomjid);var e=$pres({to:this.myroomjid,type:"unavailable"});this.presMap.length=0,this.connection.flush(),this.connection.send(e),this.connection.flush()}},{key:"discoRoomInfo",value:function(){var e=this,t=$iq({type:"get",to:this.roomjid}).c("query",{xmlns:Strophe.NS.DISCO_INFO});this.connection.sendIQ(t,function(t){var n=1===$(t).find('>query>feature[var="muc_passwordprotected"]').length;n!==e.locked&&(e.eventEmitter.emit(m.a.MUC_LOCK_CHANGED,n),e.locked=n)},function(e){u.a.callErrorHandler(e),y.error("Error getting room info: ",e)})}},{key:"createNonAnonymousRoom",value:function(){var e=$iq({type:"get",to:this.roomjid}).c("query",{xmlns:"http://jabber.org/protocol/muc#owner"}).c("x",{xmlns:"jabber:x:data",type:"submit"}),t=this;this.connection.sendIQ(e,function(e){if(!$(e).find('>query>x[xmlns="jabber:x:data"]>field[var="muc#roomconfig_whois"]').length){var n="non-anonymous rooms not supported";return u.a.callErrorHandler(new Error(n)),void y.error(n)}var r=$iq({to:t.roomjid,type:"set"}).c("query",{xmlns:"http://jabber.org/protocol/muc#owner"});r.c("x",{xmlns:"jabber:x:data",type:"submit"}),r.c("field",{var:"FORM_TYPE"}).c("value").t("http://jabber.org/protocol/muc#roomconfig").up().up(),r.c("field",{var:"muc#roomconfig_whois"}).c("value").t("anyone").up().up(),t.connection.sendIQ(r)},function(e){u.a.callErrorHandler(e),y.error("Error getting room configuration form: ",e)})}},{key:"onPresence",value:function(e){var t=e.getAttribute("from"),n={};n.show=$(e).find(">show").text(),n.status=$(e).find(">status").text();var r=$(e).find('>x[xmlns="http://jabber.org/protocol/muc#user"]>item');n.affiliation=r.attr("affiliation"),n.role=r.attr("role");var i=r.attr("jid");n.jid=i,n.isFocus=i&&0===i.indexOf(this.moderator.getFocusUserJid()+"/"),n.isHiddenDomain=i&&i.indexOf("@")>0&&this.options.hiddenDomain===i.substring(i.indexOf("@")+1,i.indexOf("/")),$(e).find(">x").remove();var o=[];g.packet2JSON(e,o),this.lastPresences[t]=o;for(var a=null,s=0;s<o.length;s++){var c=o[s];switch(c.tagName){case"nick":n.nick=c.value;break;case"userId":n.id=c.value}}if(t===this.myroomjid){var u="owner"===n.affiliation?n.role:"none";if(this.role!==u&&(this.role=u,this.eventEmitter.emit(m.a.LOCAL_ROLE_CHANGED,this.role)),!this.joined){this.joined=!0;var l=this.connectionTimes["muc.joined"]=window.performance.now();y.log("(TIME) MUC joined:\t",l),this.password&&(this.locked=!0),this.eventEmitter.emit(m.a.MUC_JOINED)}}else if(void 0===this.members[t])this.members[t]=n,y.log("entered",t,n),n.isFocus?this._initFocus(t,i):this.eventEmitter.emit(m.a.MUC_MEMBER_JOINED,t,n.nick,n.role,n.isHiddenDomain);else{var d=this.members[t];d.role!==n.role&&(d.role=n.role,this.eventEmitter.emit(m.a.MUC_ROLE_CHANGED,t,n.role)),n.isFocus&&(d.isFocus=!0,this._initFocus(t,i)),n.displayName&&(d.displayName=n.displayName)}for(var p=0;p<o.length;p++){var f=o[p];switch(f.tagName){case"nick":if(!n.isFocus){var h=this.xmpp.options.displayJids?Strophe.getResourceFromJid(t):n.nick;h&&h.length>0&&this.eventEmitter.emit(m.a.DISPLAY_NAME_CHANGED,t,h)}break;case"bridgeNotAvailable":n.isFocus&&!this.noBridgeAvailable&&(this.noBridgeAvailable=!0,this.eventEmitter.emit(m.a.BRIDGE_DOWN));break;case"jibri-recording-status":a=f;break;case"call-control":var v=f.attributes;if(!v)break;this.phoneNumber=v.phone||null,this.phonePin=v.pin||null,this.eventEmitter.emit(m.a.PHONE_NUMBER_CHANGED);break;default:this.processNode(f,t)}}n.status&&this.eventEmitter.emit(m.a.PRESENCE_STATUS,t,n.status),a&&(this.lastJibri=a,this.recording&&this.recording.handleJibriPresence(a))}},{key:"_initFocus",value:function(e,t){this.focusMucJid=e,this.recording||(this.recording=new f.a(this.options.recordingType,this.eventEmitter,this.connection,this.focusMucJid,this.options.jirecon,this.roomjid),this.lastJibri&&this.recording.handleJibriPresence(this.lastJibri)),y.info("Ignore focus: "+e+", real JID: "+t)}},{key:"setParticipantPropertyListener",value:function(e){this.participantPropertyListener=e}},{key:"processNode",value:function(e,t){try{var n=this.presHandlers[e.tagName];e.tagName.startsWith("jitsi_participant_")&&(n=[this.participantPropertyListener]),n&&n.forEach(function(n){n(e,Strophe.getResourceFromJid(t),t)})}catch(t){u.a.callErrorHandler(t),y.error("Error processing:"+e.tagName+" node.",t)}}},{key:"sendMessage",value:function(e,t){var n=$msg({to:this.roomjid,type:"groupchat"});n.c("body",e).up(),t&&n.c("nick",{xmlns:"http://jabber.org/protocol/nick"}).t(t).up().up(),this.connection.send(n),this.eventEmitter.emit(m.a.SENDING_CHAT_MESSAGE,e)}},{key:"setSubject",value:function(e){var t=$msg({to:this.roomjid,type:"groupchat"});t.c("subject",e),this.connection.send(t)}},{key:"onParticipantLeft",value:function(e,t){delete this.lastPresences[e],t||(this.eventEmitter.emit(m.a.MUC_MEMBER_LEFT,e),this.moderator.onMucMemberLeft(e))}},{key:"onPresenceUnavailable",value:function(e,t){var n=this;if($(e).find('>ignore[xmlns="http://jitsi.org/jitmeet/"]').length)return!0;if($(e).find('>x[xmlns="http://jabber.org/protocol/muc#user"]>destroy').length){var r=void 0,i=$(e).find('>x[xmlns="http://jabber.org/protocol/muc#user"]>destroy>reason');return i.length&&(r=i.text()),this.eventEmitter.emit(m.a.MUC_DESTROYED,r),this.connection.emuc.doLeave(this.roomjid),!0}var o=0!==$(e).find('>x[xmlns="http://jabber.org/protocol/muc#user"]>status[code="110"]').length,a=0!==$(e).find('>x[xmlns="http://jabber.org/protocol/muc#user"]>status[code="307"]').length,s=Object.keys(this.members);o?s.length>0&&(s.forEach(function(e){var t=n.members[e];delete n.members[e],n.onParticipantLeft(e,t.isFocus)}),this.connection.emuc.doLeave(this.roomjid),a||this.eventEmitter.emit(m.a.MUC_LEFT)):(delete this.members[t],this.onParticipantLeft(t,!1)),a&&this.myroomjid===t&&this.eventEmitter.emit(m.a.KICKED)}},{key:"onMessage",value:function(e,t){var n=$(e).find('>nick[xmlns="http://jabber.org/protocol/nick"]').text()||Strophe.getResourceFromJid(t),r=$(e).find(">body").text();if("error"===e.getAttribute("type"))return this.eventEmitter.emit(m.a.CHAT_ERROR_RECEIVED,$(e).find(">text").text(),r),!0;var i=$(e).find(">subject");if(i.length){var o=i.text();(o||""===o)&&(this.eventEmitter.emit(m.a.SUBJECT_CHANGED,o),y.log("Subject is changed to "+o))}var a=$(e).find(">delay").attr("stamp");if(!a&&(a=$(e).find('>[xmlns="jabber:x:delay"]').attr("stamp"))){var s=a.match(/(\d{4})(\d{2})(\d{2}T\d{2}:\d{2}:\d{2})/);a=s[1]+"-"+s[2]+"-"+s[3]+"Z"}t===this.roomjid&&$(e).find('>x[xmlns="http://jabber.org/protocol/muc#user"]>status[code="104"]').length&&this.discoRoomInfo(),r&&(y.log("chat",n,r),this.eventEmitter.emit(m.a.MESSAGE_RECEIVED,t,n,r,this.myroomjid,a))}},{key:"onPresenceError",value:function(e,t){if($(e).find('>error[type="auth"]>not-authorized[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]').length)y.log("on password required",t),this.eventEmitter.emit(m.a.PASSWORD_REQUIRED);else if($(e).find('>error[type="cancel"]>not-allowed[xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"]').length){var n=Strophe.getDomainFromJid(e.getAttribute("to"));n===this.xmpp.options.hosts.anonymousdomain?this.eventEmitter.emit(m.a.ROOM_JOIN_ERROR):(y.warn("onPresError ",e),this.eventEmitter.emit(m.a.ROOM_CONNECT_NOT_ALLOWED_ERROR))}else $(e).find(">error>service-unavailable").length?(y.warn("Maximum users limit for the room has been reached",e),this.eventEmitter.emit(m.a.ROOM_MAX_USERS_ERROR)):(y.warn("onPresError ",e),this.eventEmitter.emit(m.a.ROOM_CONNECT_ERROR))}},{key:"kick",value:function(e){var t=$iq({to:this.roomjid,type:"set"}).c("query",{xmlns:"http://jabber.org/protocol/muc#admin"}).c("item",{nick:Strophe.getResourceFromJid(e),role:"none"}).c("reason").t("You have been kicked.").up().up().up();this.connection.sendIQ(t,function(t){return y.log("Kick participant with jid: ",e,t)},function(e){return y.log("Kick participant error: ",e)})}},{key:"lockRoom",value:function(e,t,n,r){var i=this;this.connection.sendIQ($iq({to:this.roomjid,type:"get"}).c("query",{xmlns:"http://jabber.org/protocol/muc#owner"}),function(o){if($(o).find('>query>x[xmlns="jabber:x:data"]>field[var="muc#roomconfig_roomsecret"]').length){var a=$iq({to:i.roomjid,type:"set"}).c("query",{xmlns:"http://jabber.org/protocol/muc#owner"});a.c("x",{xmlns:"jabber:x:data",type:"submit"}),a.c("field",{var:"FORM_TYPE"}).c("value").t("http://jabber.org/protocol/muc#roomconfig").up().up(),a.c("field",{var:"muc#roomconfig_roomsecret"}).c("value").t(e).up().up(),a.c("field",{var:"muc#roomconfig_whois"}).c("value").t("anyone").up().up(),i.connection.sendIQ(a,t,n)}else r()},n)}},{key:"addToPresence",value:function(e,t){t.tagName=e,this.removeFromPresence(e),this.presMap.nodes.push(t)}},{key:"removeFromPresence",value:function(e){var t=this.presMap.nodes.filter(function(t){return e!==t.tagName});this.presMap.nodes=t}},{key:"addPresenceListener",value:function(e,t){if("function"!=typeof t)throw new Error('"handler" is not a function');var n=this.presHandlers[e];n||(this.presHandlers[e]=n=[]),-1===n.indexOf(t)?n.push(t):y.warn("Trying to add the same handler more than once for: "+e)}},{key:"removePresenceListener",value:function(e,t){var n=this.presHandlers[e],r=n?n.indexOf(t):-1;-1!==r?n.splice(r,1):y.warn("Handler for: "+e+" was not registered")}},{key:"isFocus",value:function(e){var t=this.members[e];return t?t.isFocus:null}},{key:"isModerator",value:function(){return"moderator"===this.role}},{key:"getMemberRole",value:function(e){return this.members[e]?this.members[e].role:null}},{key:"setVideoMute",value:function(e,t){this.sendVideoInfoPresence(e),t&&t(e)}},{key:"setAudioMute",value:function(e,t){return this.sendAudioInfoPresence(e,t)}},{key:"addAudioInfoToPresence",value:function(e){this.removeFromPresence("audiomuted"),this.addToPresence("audiomuted",{attributes:{xmlns:"http://jitsi.org/jitmeet/audio"},value:e.toString()})}},{key:"sendAudioInfoPresence",value:function(e,t){this.addAudioInfoToPresence(e),this.connection&&this.sendPresence(),t&&t()}},{key:"addVideoInfoToPresence",value:function(e){this.removeFromPresence("videomuted"),this.addToPresence("videomuted",{attributes:{xmlns:"http://jitsi.org/jitmeet/video"},value:e.toString()})}},{key:"sendVideoInfoPresence",value:function(e){this.addVideoInfoToPresence(e),this.connection&&this.sendPresence()}},{key:"getMediaPresenceInfo",value:function(e,t){var n=this.lastPresences[this.roomjid+"/"+e];if(!n)return null;var r={muted:!1,videoType:void 0},i=null;if(t===d.a)i=a(n,"audiomuted");else{if(t!==d.b)return y.error("Unsupported media type: "+t),null;i=a(n,"videomuted");var o=a(n,"videoType");o.length>0&&(r.videoType=o[0].value)}return r.muted=i.length>0&&"true"===i[0].value,r}},{key:"isRecordingSupported",value:function(){return!!this.recording&&this.recording.isSupported()}},{key:"getRecordingState",value:function(){return this.recording?this.recording.getState():void 0}},{key:"getRecordingURL",value:function(){return this.recording?this.recording.getURL():null}},{key:"toggleRecording",value:function(e,t){return this.recording?this.recording.toggleRecording(e,t):t("error",new Error("The conference is not created yet!"))}},{key:"isSIPCallingSupported",value:function(){return!!this.moderator&&this.moderator.isSipGatewayEnabled()}},{key:"dial",value:function(e){return this.connection.rayo.dial(e,"fromnumber",Strophe.getBareJidFromJid(this.myroomjid),this.password,this.focusMucJid)}},{key:"hangup",value:function(){return this.connection.rayo.hangup()}},{key:"getPhoneNumber",value:function(){return this.phoneNumber}},{key:"getPhonePin",value:function(){return this.phonePin}},{key:"muteParticipant",value:function(e,t){y.info("set mute",t);var n=$iq({to:this.focusMucJid,type:"set"}).c("mute",{xmlns:"http://jitsi.org/jitmeet/audio",jid:e}).t(t.toString()).up();this.connection.sendIQ(n,function(e){return y.log("set mute",e)},function(e){return y.log("set mute error",e)})}},{key:"onMute",value:function(e){if(e.getAttribute("from")!==this.focusMucJid)return y.warn("Ignored mute from non focus peer"),!1;var t=$(e).find("mute");if(t.length){var n="true"===t.text();this.eventEmitter.emit(m.a.AUDIO_MUTED_BY_FOCUS,n)}return!0}},{key:"leave",value:function(){var e=this;return new Promise(function(t,n){function r(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];o.removeListener(m.a.MUC_LEFT,r),clearTimeout(i),e?n(new Error("The timeout for the confirmation about leaving the room expired.")):t()}var i=setTimeout(function(){return r(!0)},5e3),o=e.eventEmitter;o.on(m.a.MUC_LEFT,r),e.doLeave()})}}]),t}(l.a);t.a=b}).call(t,"modules/xmpp/ChatRoom.js")},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(0),o=(n.n(i),n(50)),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n.i(i.getLogger)(e),c=function(){function e(t,n,i,o,a,s){r(this,e),this.sid=t,this.localJid=n,this.peerjid=i,this.connection=o,this.mediaConstraints=a,this.iceConfig=s,this.usedrip=!0,this.dripContainer=[],this.room=null,this.state=null,this.rtc=null}return a(e,[{key:"initialize",value:function(e,t,n){if(null!==this.state){var r="attempt to initiate on session "+this.sid+"\n in state "+this.state;throw s.error(r),new Error(r)}this.room=t,this.rtc=n,this.state=o.b,this.initiator=e?this.localJid:this.peerjid,this.responder=e?this.peerjid:this.localJid,this.doInitialize()}},{key:"doInitialize",value:function(){}},{key:"addIceCandidates",value:function(e){}},{key:"getState",value:function(){return this.state}},{key:"addSources",value:function(e){}},{key:"removeSources",value:function(e){}},{key:"terminate",value:function(e,t,n){}},{key:"acceptOffer",value:function(e,t,n){}}]),e}();t.a=c}).call(t,"modules/xmpp/JingleSession.js")},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(70),s=n.n(a),c=n(0),u=(n.n(c),n(3)),l=n.n(u),d=n(121),p=n(51),f=n(124),h=n(12),m=n(126),v=n(6),y=n(7),g=n.n(y),b=n(50),S=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),E=n.i(c.getLogger)(e),T=function(e){function t(e,n,o,a,c,u,l,d,p){r(this,t);var f=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n,o,a,c,u));return f._iceCheckingStartedTimestamp=null,f._gatheringStartedTimestamp=null,f._localVideoActive=!0,f._remoteVideoActive=!0,f._gatheringReported=!1,f.lasticecandidate=!1,f.closed=!1,f.isInitiator=d,f.isP2P=l,f.signalingLayer=new m.a,f.webrtcIceUdpDisable=Boolean(p.webrtcIceUdpDisable),f.webrtcIceTcpDisable=Boolean(p.webrtcIceTcpDisable),f.failICE=Boolean(p.failICE),f.modificationQueue=s.a.queue(f._processQueueTasks.bind(f),1),f.wasConnected=!1,f.establishmentDuration=void 0,f}return o(t,e),S(t,null,[{key:"parseVideoSenders",value:function(e){var t=e.find('>content[name="video"]');if(t.length){var n=t[0].getAttribute("senders");if("both"===n||"initiator"===n||"responder"===n||"none"===n)return n}return null}}]),S(t,[{key:"_assertNotEnded",value:function(e){return this.state!==b.a||(E.log("The session has ended - cancelling action: "+e),!1)}},{key:"doInitialize",value:function(){var e=this;this.lasticecandidate=!1,this.isreconnect=!1,this.wasstable=!1,this.isP2P?this.peerconnection=this.rtc.createPeerConnection(this.signalingLayer,this.iceConfig,this.isP2P,{disableSimulcast:!0,disableRtx:this.room.options.disableRtx,preferH264:this.room.options.p2p&&this.room.options.p2p.preferH264}):this.peerconnection=this.rtc.createPeerConnection(this.signalingLayer,this.iceConfig,this.isP2P,{disableSimulcast:this.room.options.disableSimulcast||this.room.options.preferH264,disableRtx:this.room.options.disableRtx,preferH264:this.room.options.preferH264,enableFirefoxSimulcast:this.room.options.testing&&this.room.options.testing.enableFirefoxSimulcast}),this.peerconnection.onicecandidate=function(t){if(t){var n=t.candidate,r=window.performance.now();if(n){null===e._gatheringStartedTimestamp&&(e._gatheringStartedTimestamp=r);var i=n.protocol;if("string"==typeof i)if("tcp"===(i=i.toLowerCase())||"ssltcp"===i){if(e.webrtcIceTcpDisable)return}else if("udp"===i&&e.webrtcIceUdpDisable)return}else if(!e._gatheringReported){var o=e.isP2P?"p2p.ice.":"ice.";o+=e.isInitiator?"initiator":"responder",o+=".gatheringDuration",v.a.analytics.sendEvent(o,{value:r-e._gatheringStartedTimestamp}),e._gatheringReported=!0}e.sendIceCandidate(n)}},this.peerconnection.onsignalingstatechange=function(){e.peerconnection&&("stable"===e.peerconnection.signalingState?e.wasstable=!0:"closed"!==e.peerconnection.signalingState&&"closed"!==e.peerconnection.connectionState||e.closed||e.room.eventEmitter.emit(g.a.SUSPEND_DETECTED,e))},this.peerconnection.oniceconnectionstatechange=function(){if(e.peerconnection&&e._assertNotEnded("oniceconnectionstatechange")){var t=window.performance.now();switch(e.isP2P||(e.room.connectionTimes["ice.state."+e.peerconnection.iceConnectionState]=t),E.log("(TIME) ICE "+e.peerconnection.iceConnectionState+" P2P? "+e.isP2P+":\t",t),v.a.analytics.sendEvent((e.isP2P?"p2p.ice.":"ice.")+e.peerconnection.iceConnectionState,{value:t}),e.room.eventEmitter.emit(g.a.ICE_CONNECTION_STATE_CHANGED,e,e.peerconnection.iceConnectionState),e.peerconnection.iceConnectionState){case"checking":e._iceCheckingStartedTimestamp=t;break;case"connected":if("stable"===e.peerconnection.signalingState&&e.isreconnect&&e.room.eventEmitter.emit(g.a.CONNECTION_RESTORED,e),!e.wasConnected&&e.wasstable){var n=e.isP2P?"p2p.ice.":"ice.";n+=e.isInitiator?"initiator.":"responder.",v.a.analytics.sendEvent(n+"checksDuration",{value:t-e._iceCheckingStartedTimestamp});var r=Math.min(e._iceCheckingStartedTimestamp,e._gatheringStartedTimestamp);e.establishmentDuration=t-r,v.a.analytics.sendEvent(n+"establishmentDuration",{value:e.establishmentDuration}),e.wasConnected=!0,e.room.eventEmitter.emit(g.a.CONNECTION_ESTABLISHED,e)}e.isreconnect=!1;break;case"disconnected":if(e.closed)break;e.isreconnect=!0,e.wasstable&&e.room.eventEmitter.emit(g.a.CONNECTION_INTERRUPTED,e);break;case"failed":e.room.eventEmitter.emit(g.a.CONNECTION_ICE_FAILED,e),e.room.eventEmitter.emit(g.a.CONFERENCE_SETUP_FAILED,e,new Error("ICE fail"))}}},this.peerconnection.onnegotiationneeded=function(){e.room.eventEmitter.emit(g.a.PEERCONNECTION_READY,e)},this.signalingLayer.setChatRoom(this.room)}},{key:"sendIceCandidate",value:function(e){var t=this,n=new p.a(this.peerconnection.localDescription.sdp);if(e&&!this.lasticecandidate){var r=h.a.iceparams(n.media[e.sdpMLineIndex],n.session),i=h.a.candidateToJingle(e.candidate);if(!r||!i)return l.a.callErrorHandler(new Error("failed to get ice && jcand")),void E.error("failed to get ice && jcand");r.xmlns="urn:xmpp:jingle:transports:ice-udp:1",this.usedrip?(0===this.dripContainer.length&&setTimeout(function(){0!==t.dripContainer.length&&(t.sendIceCandidates(t.dripContainer),t.dripContainer=[])},20),this.dripContainer.push(e)):this.sendIceCandidates([e])}else E.log("sendIceCandidate: last candidate."),this.lasticecandidate=!0}},{key:"sendIceCandidates",value:function(e){var t=this;if(this._assertNotEnded("sendIceCandidates")){E.log("sendIceCandidates",e);for(var n=$iq({to:this.peerjid,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",action:"transport-info",initiator:this.initiator,sid:this.sid}),r=new p.a(this.peerconnection.localDescription.sdp),i=0;i<r.media.length;i++)!function(i){var o=e.filter(function(e){return e.sdpMLineIndex===i}),a=h.a.parseMLine(r.media[i].split("\r\n")[0]);if(o.length>0){var s=h.a.iceparams(r.media[i],r.session);s.xmlns="urn:xmpp:jingle:transports:ice-udp:1",n.c("content",{creator:t.initiator===t.localJid?"initiator":"responder",name:o[0].sdpMid?o[0].sdpMid:a.media}).c("transport",s);for(var c=0;c<o.length;c++){var u=h.a.candidateToJingle(o[c].candidate);t.failICE&&(u.ip="1.1.1.1"),n.c("candidate",u).up()}var l=h.a.findLine(r.media[i],"a=fingerprint:",r.session);if(l){var d=h.a.parseFingerprint(l);d.required=!0,n.c("fingerprint",{xmlns:"urn:xmpp:jingle:apps:dtls:0"}).t(d.fingerprint),delete d.fingerprint,n.attrs(d),n.up()}n.up(),n.up()}}(i);this.connection.sendIQ(n,null,this.newJingleErrorHandler(n),1e4)}}},{key:"addIceCandidates",value:function(e){var t=this;if("closed"===this.peerconnection.signalingState)return void E.warn("Ignored add ICE candidate when in closed state");var n=[];if(e.find(">content>transport>candidate").each(function(e,t){var r=h.a.candidateFromJingle(t);r=r.replace("\r\n","").replace("a=","");var i=new RTCIceCandidate({sdpMLineIndex:0,sdpMid:"",candidate:r});n.push(i)}),!n.length)return void E.error("No ICE candidates to add ?",e[0]&&e[0].outerHTML);var r=function(e){var r=!0,i=!1,o=void 0;try{for(var a,s=n["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(a=s.next()).done);r=!0){var c=a.value;t.peerconnection.addIceCandidate(c,function(){E.debug("addIceCandidate ok!")},function(e){E.error("addIceCandidate failed!",e)})}}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}e()};E.debug("Queued add ("+n.length+") ICE candidates task..."),this.modificationQueue.push(r)}},{key:"readSsrcInfo",value:function(e){var t=this;$(e).find('>description>source[xmlns="urn:xmpp:jingle:apps:rtp:ssma:0"]').each(function(e,n){var r=Number(n.getAttribute("ssrc"));t.isP2P?t.signalingLayer.setSSRCOwner(r,Strophe.getResourceFromJid(t.peerjid)):$(n).find('>ssrc-info[xmlns="http://jitsi.org/jitmeet"]').each(function(e,n){var i=n.getAttribute("owner");i&&i.length&&(isNaN(r)||r<0?E.warn("Invalid SSRC "+r+" value received for "+i):t.signalingLayer.setSSRCOwner(r,Strophe.getResourceFromJid(i)))})})}},{key:"generateRecvonlySsrc",value:function(){this.peerconnection?this.peerconnection.generateRecvonlySsrc():E.error("Unable to generate recvonly SSRC - no peerconnection")}},{key:"acceptOffer",value:function(e,t,n,r){var i=this;this.setOfferAnswerCycle(e,function(){i.sendSessionAccept(t,n)},n,r)}},{key:"invite",value:function(e){var t=this;if(!this.isInitiator)throw new Error("Trying to invite from the responder session");var n=function(n){var r=!0,i=!1,o=void 0;try{for(var a,s=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(a=s.next()).done);r=!0){var c=a.value;t.peerconnection.addTrack(c)}}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}t.peerconnection.createOffer(function(e){t.peerconnection.setLocalDescription(e,function(){t.sendSessionInitiate(t.peerconnection.localDescription.sdp),n()},function(t){E.error("Failed to set local SDP",t,e),n(t)})},function(e){E.error("Failed to create an offer",e,t.mediaConstraints),n(e)},t.mediaConstraints)};this.modificationQueue.push(n,function(e){e?E.error("invite error",e):E.debug("invite executed - OK")})}},{key:"sendSessionInitiate",value:function(e){var t=$iq({to:this.peerjid,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",
action:"session-initiate",initiator:this.initiator,sid:this.sid});new p.a(e).toJingle(t,this.initiator===this.me?"initiator":"responder"),t=t.tree(),E.info("Session-initiate: ",t),this.connection.sendIQ(t,function(){E.info('Got RESULT for "session-initiate"')},function(e){E.error('"session-initiate" error',e)},1e4)}},{key:"setAnswer",value:function(e){if(!this.isInitiator)throw new Error("Trying to set an answer on the responder session");this.setOfferAnswerCycle(e,function(){E.info("setAnswer - succeeded")},function(e){E.error("setAnswer failed: ",e)})}},{key:"setOfferAnswerCycle",value:function(e,n,r,i){var o=this,a=function(n){if(i){var r=!0,a=!1,s=void 0;try{for(var c,u=i["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(c=u.next()).done);r=!0){var l=c.value;o.peerconnection.addTrack(l)}}catch(e){a=!0,s=e}finally{try{!r&&u.return&&u.return()}finally{if(a)throw s}}}var d=o._processNewJingleOfferIq(e),f=o.peerconnection.localDescription.sdp;o._renegotiate(d.raw).then(function(){if(o.state===b.b&&(o.state=b.c,o.isP2P&&!o._localVideoActive&&o.sendContentModify(o._localVideoActive)),f){var e=new p.a(o.peerconnection.localDescription.sdp);o.notifyMySSRCUpdate(new p.a(f),e)}n()},function(e){E.error("Error renegotiating after setting new remote "+(o.isInitiator?"answer: ":"offer: ")+e,d),t.onJingleFatalError(o,e),n(e)})};this.modificationQueue.push(a,function(e){e?r(e):n()})}},{key:"replaceTransport",value:function(e,t,n){var r=this;this.room.eventEmitter.emit(g.a.ICE_RESTARTING,this);var i=e.clone();e.find(">content[name='data']").remove(),this.setOfferAnswerCycle(e,function(){r.setOfferAnswerCycle(i,function(){var e=new p.a(r.peerconnection.localDescription.sdp);r.sendTransportAccept(e,t,n)},n)},n)}},{key:"sendSessionAccept",value:function(e,t){var n=this,r=new p.a(this.peerconnection.localDescription.sdp),i=$iq({to:this.peerjid,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",action:"session-accept",initiator:this.initiator,responder:this.responder,sid:this.sid});this.webrtcIceTcpDisable&&(r.removeTcpCandidates=!0),this.webrtcIceUdpDisable&&(r.removeUdpCandidates=!0),this.failICE&&(r.failICE=!0),r.toJingle(i,this.initiator===this.localJid?"initiator":"responder",null),i=i.tree(),E.info("Sending session-accept",i),this.connection.sendIQ(i,e,this.newJingleErrorHandler(i,function(e){t(e),n.room.eventEmitter.emit(g.a.SESSION_ACCEPT_TIMEOUT,n)}),1e4)}},{key:"sendContentModify",value:function(e){var t=e?"both":"none",n=$iq({to:this.peerjid,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",action:"content-modify",initiator:this.initiator,sid:this.sid}).c("content",{name:"video",senders:t});E.info("Sending content-modify, video senders: "+t),this.connection.sendIQ(n,null,this.newJingleErrorHandler(n),1e4)}},{key:"sendTransportAccept",value:function(e,t,n){var r=this,i=$iq({to:this.peerjid,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",action:"transport-accept",initiator:this.initiator,sid:this.sid});e.media.forEach(function(t,n){var o=h.a.parseMLine(t.split("\r\n")[0]);i.c("content",{creator:r.initiator===r.localJid?"initiator":"responder",name:o.media}),e.transportToJingle(n,i),i.up()}),i=i.tree(),E.info("Sending transport-accept: ",i),this.connection.sendIQ(i,t,this.newJingleErrorHandler(i,n),1e4)}},{key:"sendTransportReject",value:function(e,t){var n=$iq({to:this.peerjid,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",action:"transport-reject",initiator:this.initiator,sid:this.sid});n=n.tree(),E.info("Sending 'transport-reject",n),this.connection.sendIQ(n,e,this.newJingleErrorHandler(n,t),1e4)}},{key:"terminate",value:function(e,t,n){if(this.state!==b.a){if(!n||Boolean(n.sendSessionTerminate)){var r=$iq({to:this.peerjid,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",action:"session-terminate",initiator:this.initiator,sid:this.sid}).c("reason").c(n&&n.reason||"success");n&&n.reasonDescription&&r.up().c("text").t(n.reasonDescription),r=r.tree(),E.info("Sending session-terminate",r),this.connection.sendIQ(r,e,this.newJingleErrorHandler(r,t),1e4)}else E.info("Skipped sending session-terminate for "+this);this.connection.jingle.terminate(this.sid)}}},{key:"onTerminated",value:function(e,t){this.state=b.a,this.establishmentDuration=void 0,E.info("Session terminated "+this,e,t),this.close()}},{key:"_parseSsrcInfoFromSourceAdd",value:function(e,t){var n=[];return $(e).each(function(e,r){var i=$(r).attr("name"),o="";$(r).find('ssrc-group[xmlns="urn:xmpp:jingle:apps:rtp:ssma:0"]').each(function(){var e=this.getAttribute("semantics"),t=$(this).find(">source").map(function(){return this.getAttribute("ssrc")}).get();t.length&&(o+="a=ssrc-group:"+e+" "+t.join(" ")+"\r\n")}),$(r).find('source[xmlns="urn:xmpp:jingle:apps:rtp:ssma:0"]').each(function(){var e=$(this).attr("ssrc");if(t.containsSSRC(e))return void E.warn("Source-add request for existing SSRC: "+e);$(this).find(">parameter").each(function(){o+="a=ssrc:"+e+" "+$(this).attr("name"),$(this).attr("value")&&$(this).attr("value").length&&(o+=":"+$(this).attr("value")),o+="\r\n"})}),t.media.forEach(function(e,t){h.a.findLine(e,"a=mid:"+i)&&(n[t]||(n[t]=""),n[t]+=o)})}),n}},{key:"addRemoteStream",value:function(e){this._addOrRemoveRemoteStream(!0,e)}},{key:"removeRemoteStream",value:function(e){this._addOrRemoveRemoteStream(!1,e)}},{key:"_addOrRemoveRemoteStream",value:function(e,t){var n=this,r=e?"addRemoteStream":"removeRemoteStream";e&&this.readSsrcInfo(t);var i=function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(i){if(!n.peerconnection.localDescription||!n.peerconnection.localDescription.sdp){var o=r+" - localDescription not ready yet";return E.error(o),void i(o)}E.log("Processing "+r),E.log("ICE connection state: ",n.peerconnection.iceConnectionState);var a=new p.a(n.peerconnection.localDescription.sdp),s=new p.a(n.peerconnection.remoteDescription.sdp),c=e?n._parseSsrcInfoFromSourceAdd(t,s):n._parseSsrcInfoFromSourceRemove(t,s),u=e?n._processRemoteAddSource(c):n._processRemoteRemoveSource(c);n._renegotiate(u.raw).then(function(){var e=new p.a(n.peerconnection.localDescription.sdp);E.log(r+" - OK, SDPs: ",a,e),n.notifyMySSRCUpdate(a,e),i()},function(e){E.error(r+" failed:",e),i(e)})});this.modificationQueue.push(i)}},{key:"_processQueueTasks",value:function(e,t){e(t)}},{key:"_processNewJingleOfferIq",value:function(e){var t=new p.a("");return this.webrtcIceTcpDisable&&(t.removeTcpCandidates=!0),this.webrtcIceUdpDisable&&(t.removeUdpCandidates=!0),this.failICE&&(t.failICE=!0),t.fromJingle(e),this.readSsrcInfo($(e).find(">content")),t}},{key:"_processRemoteRemoveSource",value:function(e){var t=new p.a(this.peerconnection.remoteDescription.sdp);return e.forEach(function(e,n){e=e.split("\r\n"),e.pop(),e.forEach(function(e){t.media[n]=t.media[n].replace(e+"\r\n","")})}),t.raw=t.session+t.media.join(""),t}},{key:"_processRemoteAddSource",value:function(e){var t=new p.a(this.peerconnection.remoteDescription.sdp);return e.forEach(function(e,n){t.media[n]+=e}),t.raw=t.session+t.media.join(""),t}},{key:"_renegotiate",value:function(e){var t=this,n=e||this.peerconnection.remoteDescription.sdp;if(!n)return Promise.reject("Can not renegotiate without remote description,- current state: "+this.state);var r=new RTCSessionDescription({type:this.isInitiator?"answer":"offer",sdp:n});return new Promise(function(e,n){if("closed"===t.peerconnection.signalingState)return void n("Attempted to renegotiate in state closed");t.isInitiator?t._initiatorRenegotiate(r,e,n):t._responderRenegotiate(r,e,n)})}},{key:"_responderRenegotiate",value:function(e,t,n){var r=this;E.debug("Renegotiate: setting remote description"),this.peerconnection.setRemoteDescription(e,function(){E.debug("Renegotiate: creating answer"),r.peerconnection.createAnswer(function(e){E.debug("Renegotiate: setting local description"),r.peerconnection.setLocalDescription(e,function(){t()},function(e){n("setLocalDescription failed: "+e)})},function(e){return n("createAnswer failed: "+e)},r.mediaConstraints)},function(e){return n("setRemoteDescription failed: "+e)})}},{key:"_initiatorRenegotiate",value:function(e,t,n){var r=this;"have-local-offer"===this.peerconnection.signalingState?(E.debug("Renegotiate: setting remote description"),this.peerconnection.setRemoteDescription(e,function(){r._initiatorRenegotiate(e,t,n)},function(e){return n("setRemoteDescription failed: "+e)})):(E.debug("Renegotiate: creating offer"),this.peerconnection.createOffer(function(i){E.debug("Renegotiate: setting local description"),r.peerconnection.setLocalDescription(i,function(){E.debug("Renegotiate: setting remote description"),r.peerconnection.setRemoteDescription(e,function(){t()},function(e){return n("setRemoteDescription failed: "+e)})},function(e){n("setLocalDescription failed: ",e)})},function(e){return n("createOffer failed: "+e)},this.mediaConstraints))}},{key:"replaceTrack",value:function(e,t){var n=this,r=function(r){if("closed"===n.peerconnection.signalingState||"closed"===n.peerconnection.connectionState||n.closed)return void r();var i=n.peerconnection.localDescription.sdp;!e&&t&&t.isVideoTrack()?n.peerconnection.clearRecvonlySsrc():e&&e.isVideoTrack()&&!t&&(n.peerconnection.clearRecvonlySsrc(),n.peerconnection.generateRecvonlySsrc()),e&&n.peerconnection.removeTrack(e),t&&n.peerconnection.addTrack(t),(e||t)&&n.state===b.c?n._renegotiate().then(function(){var e=new p.a(n.peerconnection.localDescription.sdp);n.notifyMySSRCUpdate(new p.a(i),e),r()},r):r()};this.modificationQueue.push(r,function(e){e?E.error("Replace track error:",e):E.info("Replace track done!")})}},{key:"_parseSsrcInfoFromSourceRemove",value:function(e,t){var n=[];return $(e).each(function(e,r){var i=$(r).attr("name"),o="";$(r).find('ssrc-group[xmlns="urn:xmpp:jingle:apps:rtp:ssma:0"]').each(function(){var e=this.getAttribute("semantics"),t=$(this).find(">source").map(function(){return this.getAttribute("ssrc")}).get();t.length&&(o+="a=ssrc-group:"+e+" "+t.join(" ")+"\r\n")});var a=[];$(r).find('source[xmlns="urn:xmpp:jingle:apps:rtp:ssma:0"]').each(function(){var e=$(this).attr("ssrc");a.push(e)}),t.media.forEach(function(e,t){h.a.findLine(e,"a=mid:"+i)&&(n[t]||(n[t]=""),a.forEach(function(r){var i=h.a.findLines(e,"a=ssrc:"+r);i.length&&(n[t]+=i.join("\r\n")+"\r\n")}),n[t]+=o)})}),n}},{key:"_verifyNoSSRCChanged",value:function(e,t){var n=new p.a(this.peerconnection.localDescription.sdp),r=new f.a(t,n),i=r.getNewMedia();if(Object.keys(i).length)return E.error("Some SSRC were added on "+e,i),!1;r=new f.a(n,t);var o=r.getNewMedia();return!Object.keys(o).length||(E.error("Some SSRCs were removed on "+e,o),!1)}},{key:"addTrackAsUnmute",value:function(e){return this._addRemoveTrackAsMuteUnmute(!1,e)}},{key:"removeTrackAsMute",value:function(e){return this._addRemoveTrackAsMuteUnmute(!0,e)}},{key:"_addRemoveTrackAsMuteUnmute",value:function(e,t){var n=this;if(!t)return Promise.reject('invalid "track" argument value');var r=e?"removeTrackMute":"addTrackUnmute",i=function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(i){var o=n.peerconnection;if(!o)return void i("Error: tried "+r+" track with no active peerconnection");var a=o.localDescription.sdp;(e?o.removeTrackMute.bind(o,t):o.addTrackUnmute.bind(o,t))()?a&&o.remoteDescription.sdp?n._renegotiate().then(function(){n._verifyNoSSRCChanged(r,new p.a(a)),i()},i):i():i(r+" failed!")});return new Promise(function(e,t){n.modificationQueue.push(i,function(n){n?t(n):e()})})}},{key:"setMediaTransferActive",value:function(e,t){var n=this;if(!this.peerconnection)return Promise.reject('Can not modify transfer active state, before "initialize" is called');var r=e?"audio active":"audio inactive",i=t?"video active":"video inactive";E.info("Queued make "+i+", "+r+" task...");var o=function(r){var i=n.state===b.c,o=n.peerconnection.setAudioTransferActive(e);n._localVideoActive!==t&&(n._localVideoActive=t,n.isP2P&&i&&n.sendContentModify(t));var a=n.peerconnection.setVideoTransferActive(n._localVideoActive&&n._remoteVideoActive);i&&(o||a)?n._renegotiate().then(r,r):r()};return new Promise(function(e,t){n.modificationQueue.push(o,function(n){n?t(n):e()})})}},{key:"modifyContents",value:function(e){var n=this,r=t.parseVideoSenders(e);if(null===r)return void E.error(this+' - failed to parse video "senders" attribute in"content-modify" action');var i=function(e){n._assertNotEnded("content-modify")&&n._modifyRemoteVideoActive(r)?n._renegotiate().then(e,e):e()};E.debug(this+' queued "content-modify" task(video senders="'+r+'")'),this.modificationQueue.push(i,function(e){e&&E.error('"content-modify" failed',e)})}},{key:"_modifyRemoteVideoActive",value:function(e){var t="both"===e||"initiator"===e&&this.isInitiator||"responder"===e&&!this.isInitiator;return t!==this._remoteVideoActive&&(E.debug(this+" new remote video active: "+t),this._remoteVideoActive=t),this.peerconnection.setVideoTransferActive(this._localVideoActive&&this._remoteVideoActive)}},{key:"notifyMySSRCUpdate",value:function(e,t){if(this.state!==b.c)return void E.warn("Skipping SSRC update in '"+this.state+" ' state.");var n=new f.a(t,e),r=$iq({to:this.peerjid,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",action:"source-remove",initiator:this.initiator,sid:this.sid});n.toJingle(r)?(E.info("Sending source-remove",r.tree()),this.connection.sendIQ(r,null,this.newJingleErrorHandler(r,function(e){l.a.callErrorHandler(new Error("Jingle error: "+JSON.stringify(e)))}),1e4)):E.log("removal not necessary"),n=new f.a(e,t);var i=$iq({to:this.peerjid,type:"set"}).c("jingle",{xmlns:"urn:xmpp:jingle:1",action:"source-add",initiator:this.initiator,sid:this.sid});n.toJingle(i)?(E.info("Sending source-add",i.tree()),this.connection.sendIQ(i,null,this.newJingleErrorHandler(i,function(e){l.a.callErrorHandler(new Error("Jingle error: "+JSON.stringify(e)))}),1e4)):E.log("addition not necessary")}},{key:"newJingleErrorHandler",value:function(e,t){var n=this;return function(r){var i={},o=$(r).find("error");if(o.length){i.code=o.attr("code");var a=$(r).find("error :first");a.length&&(i.reason=a[0].tagName)}r||(i.reason="timeout"),i.source=e,e&&"function"==typeof e.tree&&(i.source=e.tree()),i.source&&i.source.outerHTML&&(i.source=i.source.outerHTML),i.session=n.toString(),t?t(i):n.state===b.a&&"item-not-found"===i.reason?E.debug("Jingle error",i):l.a.callErrorHandler(new Error("Jingle error: "+JSON.stringify(i)))}}},{key:"getIceConnectionState",value:function(){return this.peerconnection.iceConnectionState}},{key:"close",value:function(){this.closed=!0,this.signalingLayer.setChatRoom(null),this.peerconnection&&(this.peerconnection.signalingState&&"closed"!==this.peerconnection.signalingState||this.peerconnection.connectionState&&"closed"!==this.peerconnection.connectionState)&&this.peerconnection.close()}},{key:"toString",value:function(){return"JingleSessionPC[p2p="+this.isP2P+",initiator="+this.isInitiator+",sid="+this.sid+"]"}}],[{key:"onJingleFatalError",value:function(e,t){this.room&&(this.room.eventEmitter.emit(g.a.CONFERENCE_SETUP_FAILED,e,t),this.room.eventEmitter.emit(g.a.JINGLE_FATAL_ERROR,e,t))}}]),t}(d.a);t.a=T}).call(t,"modules/xmpp/JingleSessionPC.js")},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n){u.debug("Updating mline to associate "+n+"rtx ssrc with primary stream, "+t.id);var r=t.id,i=t.msid,o=t.cname,a=e.getRtxSSRC(r);if(a===n)return void u.debug(n+" was already associated with "+r);a&&(u.debug(r+" was previously associated with rtx"+a+", removing all references to it"),e.removeSSRC(a),u.debug("groups before filtering for "+a),u.debug(e.dumpSSRCGroups()),e.removeGroupsWithSSRC(a)),e.addSSRCAttribute({id:n,attribute:"cname",value:o}),e.addSSRCAttribute({id:n,attribute:"msid",value:i}),e.addSSRCGroup({semantics:"FID",ssrcs:r+" "+n})}var o=n(0),a=(n.n(o),n(24)),s=n(12),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n.i(o.getLogger)(e),l=function(){function e(){r(this,e),this.correspondingRtxSsrcs=new Map}return c(e,[{key:"clearSsrcCache",value:function(){this.correspondingRtxSsrcs.clear()}},{key:"setSsrcCache",value:function(e){u.debug("Setting ssrc cache to ",e),this.correspondingRtxSsrcs=e}},{key:"modifyRtxSsrcs",value:function(e){var t=new a.a(e),n=t.selectMedia("video");return n?this.modifyRtxSsrcs2(n)?t.toRawSDP():e:(u.error("No 'video' media found in the sdp: "+e),e)}},{key:"modifyRtxSsrcs2",value:function(e){if("recvonly"===e.direction)return u.debug("RtxModifier doing nothing, video m line is recvonly"),!1;if(e.getSSRCCount()<1)return u.debug("RtxModifier doing nothing, no video ssrcs present"),!1;u.debug("Current ssrc mapping: ",this.correspondingRtxSsrcs);var t=e.getPrimaryVideoSSRCs();u.debug("Parsed primary video ssrcs ",t," making sure all have rtx streams");var n=!0,r=!1,o=void 0;try{for(var a,c=t["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(n=(a=c.next()).done);n=!0){var l=a.value,d=e.getSSRCAttrValue(l,"msid"),p=e.getSSRCAttrValue(l,"cname"),f=this.correspondingRtxSsrcs.get(l);if(f)u.debug("Already have an associated rtx ssrc forvideo ssrc "+l+": "+f);else{u.debug("No previously associated rtx ssrc for video ssrc "+l);var h=e.getRtxSSRC(l);h?(u.debug("Rtx stream "+h+" already existed in the sdp as an rtx stream for "+l),f=h):(f=s.a.generateSsrc(),u.debug("Generated rtx ssrc "+f+" for ssrc "+l)),u.debug("Caching rtx ssrc "+f+" for video ssrc "+l),this.correspondingRtxSsrcs.set(l,f)}i(e,{id:l,cname:p,msid:d},f)}}catch(e){r=!0,o=e}finally{try{!n&&c.return&&c.return()}finally{if(r)throw o}}return!0}},{key:"stripRtx",value:function(e){var t=new a.a(e),r=t.selectMedia("video");if(!r)return u.error("No 'video' media found in the sdp: "+e),e;if("recvonly"===r.direction)return u.debug("RtxModifier doing nothing, video m line is recvonly"),e;if(r.getSSRCCount()<1)return u.debug("RtxModifier doing nothing, no video ssrcs present"),e;if(!r.containsAnySSRCGroups())return u.debug("RtxModifier doing nothing, no video ssrcGroups present"),e;var i=r.findGroups("FID");r.removeGroupsBySemantics("FID");var o=!0,s=!1,c=void 0;try{for(var l,d=i["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(o=(l=d.next()).done);o=!0){var p=l.value,f=n.i(a.b)(p);r.removeSSRC(f)}}catch(e){s=!0,c=e}finally{try{!o&&d.return&&d.return()}finally{if(s)throw c}}return t.toRawSDP()}}]),e}();t.a=l}).call(t,"modules/xmpp/RtxModifier.js")},function(e,t,n){"use strict";function r(e,t){if(!t)return!1;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(e[n]instanceof Array&&t[n]instanceof Array){if(!e[n].equals(t[n]))return!1}else if(e[n]!==t[n])return!1;return!0}function i(e,t){if(this.mySDP=e,this.otherSDP=t,!e)throw new Error('"mySDP" is undefined!');if(!t)throw new Error('"otherSDP" is undefined!')}t.a=i;var o=n(12);i.prototype.getNewMedia=function(){var e=this.mySDP.getMediaSsrcMap(),t=this.otherSDP.getMediaSsrcMap(),n={};return Object.keys(t).forEach(function(i){var o=e[i],a=t[i];if(!o&&a)return void(n[i]=a);Object.keys(a.ssrcs).forEach(function(e){-1===Object.keys(o.ssrcs).indexOf(e)&&(n[i]||(n[i]={mediaindex:a.mediaindex,mid:a.mid,ssrcs:{},ssrcGroups:[]}),n[i].ssrcs[e]=a.ssrcs[e])}),a.ssrcGroups.forEach(function(e){for(var t=!1,s=0;s<o.ssrcGroups.length;s++){var c=o.ssrcGroups[s];if(e.semantics===c.semantics&&r(e.ssrcs,c.ssrcs)){t=!0;break}}t||(n[i]||(n[i]={mediaindex:a.mediaindex,mid:a.mid,ssrcs:{},ssrcGroups:[]}),n[i].ssrcGroups.push(e))})}),n},i.prototype.toJingle=function(e){var t=this.getNewMedia(),n=!1;return Object.keys(t).forEach(function(r){n=!0;var i=t[r];e.c("content",{name:i.mid}),e.c("description",{xmlns:"urn:xmpp:jingle:apps:rtp:1",media:i.mid}),Object.keys(i.ssrcs).forEach(function(t){var n=i.ssrcs[t];e.c("source",{xmlns:"urn:xmpp:jingle:apps:rtp:ssma:0"}),e.attrs({ssrc:n.ssrc}),n.lines.forEach(function(t){var n=t.indexOf(" "),r=t.substr(n+1);if(e.c("parameter"),-1===r.indexOf(":"))e.attrs({name:r});else{var i=r.split(":",2),a=i[0],s=o.a.filterSpecialChars(i[1]);e.attrs({name:a}),e.attrs({value:s})}e.up()}),e.up()}),i.ssrcGroups.forEach(function(t){t.ssrcs.length&&(e.c("ssrc-group",{semantics:t.semantics,xmlns:"urn:xmpp:jingle:apps:rtp:ssma:0"}),t.ssrcs.forEach(function(t){e.c("source",{ssrc:t}).up()}),e.up())}),e.up(),e.up()}),n}},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(0),o=(n.n(i),n(24)),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n.i(i.getLogger)(e),c=function(){function e(t){r(this,e),this.clearVideoSsrcCache(),this.logPrefix=t}return a(e,[{key:"clearVideoSsrcCache",value:function(){this.cachedPrimarySsrc=null,this.injectRecvOnly=!1}},{key:"setPrimarySsrc",value:function(e){if("number"!=typeof e)throw new Error("Primary SSRC must be a number!");this.cachedPrimarySsrc=e}},{key:"hasPrimarySsrcCached",value:function(){return Boolean(this.cachedPrimarySsrc)}},{key:"makeVideoPrimarySsrcsConsistent",value:function(e){var t=new o.a(e),r=t.selectMedia("video");if(!r)return s.error(this.logPrefix+" no 'video' media found in the sdp: "+e),e;if("recvonly"===r.direction)this.cachedPrimarySsrc&&this.injectRecvOnly?r.addSSRCAttribute({id:this.cachedPrimarySsrc,attribute:"cname",value:"recvonly-"+this.cachedPrimarySsrc}):s.info(this.logPrefix+" no SSRC found for the recvonly videostream!");else{var i=r.getPrimaryVideoSsrc();if(!i)return s.info(this.logPrefix+" sdp-consistency couldn't parse new primary ssrc"),e;if(this.cachedPrimarySsrc){s.info(this.logPrefix+" sdp-consistency replacing new ssrc"+i+" with cached "+this.cachedPrimarySsrc),r.replaceSSRC(i,this.cachedPrimarySsrc);var a=!0,c=!1,u=void 0;try{for(var l,d=r.ssrcGroups["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(a=(l=d.next()).done);a=!0){var p=l.value;if("FID"===p.semantics){var f=n.i(o.c)(p),h=n.i(o.b)(p);f===i&&(p.ssrcs=this.cachedPrimarySsrc+" "+h)}}}catch(e){c=!0,u=e}finally{try{!a&&d.return&&d.return()}finally{if(c)throw u}}}else this.cachedPrimarySsrc=i,s.info(this.logPrefix+" sdp-consistency caching primary ssrc"+this.cachedPrimarySsrc);this.injectRecvOnly=!0}return t.toRawSDP()}}]),e}();t.a=c}).call(t,"modules/xmpp/SdpConsistency.js")},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=(n.n(a),n(4)),c=n(53),u=n(136),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=n.i(a.getLogger)(e),p=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.ssrcOwners=new Map,e.chatRoom=null,e}return o(t,e),l(t,[{key:"setChatRoom",value:function(e){var t=this,n=this.chatRoom;this.chatRoom=e,n&&(n.removePresenceListener("audiomuted",this._audioMuteHandler),n.removePresenceListener("videomuted",this._videoMuteHandler),n.removePresenceListener("videoType",this._videoTypeHandler)),e&&(this._audioMuteHandler=function(e,n){t.eventEmitter.emit(c.b,n,s.a,"true"===e.value)},e.addPresenceListener("audiomuted",this._audioMuteHandler),this._videoMuteHandler=function(e,n){t.eventEmitter.emit(c.b,n,s.b,"true"===e.value)},e.addPresenceListener("videomuted",this._videoMuteHandler),this._videoTypeHandler=function(e,n){t.eventEmitter.emit(c.a,n,e.value)},e.addPresenceListener("videoType",this._videoTypeHandler))}},{key:"getPeerMediaInfo",value:function(e,t){if(this.chatRoom)return this.chatRoom.getMediaPresenceInfo(e,t);d.error("Requested peer media info, before room was set")}},{key:"getSSRCOwner",value:function(e){return this.ssrcOwners.get(e)}},{key:"setSSRCOwner",value:function(e,t){if("number"!=typeof e)throw new TypeError("SSRC("+e+") must be a number");this.ssrcOwners.set(e,t)}}]),t}(u.a);t.a=p}).call(t,"modules/xmpp/SignalingLayerImpl.js")},function(e,t,n){"use strict";(function(e){function r(e){var t=1;return function(n){if(n)return void(t=1);var r=Math.pow(2,t-1);return t+=1,r*e}}function i(e,t,n,i){function o(e){if(e.data&&e.data.sessionId){if(e.origin!==window.location.origin)return void s.warn("Ignoring sessionId from different origin: "+e.origin);a.a.setSessionId(e.data.sessionId)}}this.roomName=e,this.xmppService=t,this.getNextTimeout=r(1e3),this.getNextErrorTimeout=r(1e3),this.externalAuthEnabled=!1,this.options=i,this.sipGatewayEnabled=this.options.connection.hosts&&void 0!==this.options.connection.hosts.call_control,this.eventEmitter=n,this.connection=this.xmppService.connection,window.addEventListener?window.addEventListener("message",o,!1):window.attachEvent("onmessage",o)}t.a=i;var o=n(1),a=n(29),s=n(0).getLogger(e),c=n(7),u=n(54),l=n(3);i.prototype.isExternalAuthEnabled=function(){return this.externalAuthEnabled},i.prototype.isSipGatewayEnabled=function(){return this.sipGatewayEnabled},i.prototype.onMucMemberLeft=function(e){s.info("Someone left is it focus ? "+e),"focus"===Strophe.getResourceFromJid(e)&&(s.info("Focus has left the room - leaving conference"),this.eventEmitter.emit(c.FOCUS_LEFT))},i.prototype.setFocusUserJid=function(e){this.focusUserJid||(this.focusUserJid=e,s.info("Focus jid set to: "+this.focusUserJid))},i.prototype.getFocusUserJid=function(){return this.focusUserJid},i.prototype.getFocusComponent=function(){var e=this.options.connection.hosts.focus;return e||(e="focus."+this.options.connection.hosts.domain),e},i.prototype.createConferenceIq=function(){var e=$iq({to:this.getFocusComponent(),type:"set"}),t=a.a.getSessionId(),n=a.a.getMachineId();s.info("Session ID: "+t+" machine UID: "+n),e.c("conference",{xmlns:"http://jitsi.org/protocol/focus",room:this.roomName,"machine-uid":n}),t&&e.attrs({"session-id":t}),void 0!==this.options.connection.enforcedBridge&&e.c("property",{name:"enforcedBridge",value:this.options.connection.enforcedBridge}).up(),void 0!==this.options.connection.hosts&&void 0!==this.options.connection.hosts.call_control&&e.c("property",{name:"call_control",value:this.options.connection.hosts.call_control}).up(),void 0!==this.options.conference.channelLastN&&e.c("property",{name:"channelLastN",value:this.options.conference.channelLastN}).up(),e.c("property",{name:"disableRtx",value:Boolean(this.options.conference.disableRtx)}).up(),e.c("property",{name:"enableLipSync",value:!1!==this.options.connection.enableLipSync}).up(),void 0!==this.options.conference.audioPacketDelay&&e.c("property",{name:"audioPacketDelay",value:this.options.conference.audioPacketDelay}).up(),this.options.conference.startBitrate&&e.c("property",{name:"startBitrate",value:this.options.conference.startBitrate}).up(),this.options.conference.minBitrate&&e.c("property",{name:"minBitrate",value:this.options.conference.minBitrate}).up();var r=void 0;switch(this.options.conference.openBridgeChannel){case"datachannel":case!0:case void 0:r=!0;break;case"websocket":r=!1}return r&&!o.a.supportsDataChannels()&&(r=!1),e.c("property",{name:"openSctp",value:r}).up(),void 0!==this.options.conference.startAudioMuted&&e.c("property",{name:"startAudioMuted",value:this.options.conference.startAudioMuted}).up(),void 0!==this.options.conference.startVideoMuted&&e.c("property",{name:"startVideoMuted",value:this.options.conference.startVideoMuted}).up(),void 0!==this.options.conference.stereo&&e.c("property",{name:"stereo",value:this.options.conference.stereo}).up(),void 0!==this.options.conference.useRoomAsSharedDocumentName&&e.c("property",{name:"useRoomAsSharedDocumentName",value:this.options.conference.useRoomAsSharedDocumentName}).up(),e.up(),e},i.prototype.parseSessionId=function(e){var t=$(e).find("conference").attr("session-id");t&&(s.info("Received sessionId: "+t),a.a.setSessionId(t))},i.prototype.parseConfigOptions=function(e){this.setFocusUserJid($(e).find("conference").attr("focusjid"));var t=$(e).find(">conference>property[name='authentication'][value='true']").length>0;s.info("Authentication enabled: "+t),this.externalAuthEnabled=$(e).find(">conference>property[name='externalAuth'][value='true']").length>0,s.info("External authentication enabled: "+this.externalAuthEnabled),this.externalAuthEnabled||this.parseSessionId(e);var n=$(e).find(">conference").attr("identity");this.eventEmitter.emit(u.IDENTITY_UPDATED,t,n),$(e).find(">conference>property[name='sipGatewayEnabled'][value='true']").length&&(this.sipGatewayEnabled=!0),s.info("Sip gateway enabled: "+this.sipGatewayEnabled)},i.prototype.allocateConferenceFocus=function(e){var t=this;this.setFocusUserJid(this.options.connection.focusUserJid),this.connection.sendIQ(this.createConferenceIq(),function(n){return t._allocateConferenceFocusSuccess(n,e)},function(n){return t._allocateConferenceFocusError(n,e)}),this.connection.flush()},i.prototype._allocateConferenceFocusError=function(e,t){var n=this,r=$(e).find(">error>session-invalid").length;if(r&&(s.info("Session expired! - removing"),a.a.clearSessionId()),$(e).find(">error>graceful-shutdown").length)return void this.eventEmitter.emit(c.GRACEFUL_SHUTDOWN);var i=$(e).find(">error>reservation-error");if(i.length){var o=i.attr("error-code"),u=$(e).find(">error>text"),d=void 0;return u&&(d=u.text()),void this.eventEmitter.emit(c.RESERVATION_ERROR,o,d)}if($(e).find(">error>not-authorized").length)return s.warn("Unauthorized to start the conference",e),Strophe.getDomainFromJid(e.getAttribute("to"))!==this.options.connection.hosts.anonymousdomain&&(this.externalAuthEnabled=!0),void this.eventEmitter.emit(c.AUTHENTICATION_REQUIRED);var p=this.getNextErrorTimeout(),f="Focus error, retry after "+p;l.callErrorHandler(new Error(f)),s.error(f,e);var h=this.getFocusComponent(),m=p/1e3;r||this.eventEmitter.emit(c.FOCUS_DISCONNECTED,h,m),this.getNextTimeout(!0),window.setTimeout(function(){return n.allocateConferenceFocus(t)},p)},i.prototype._allocateConferenceFocusSuccess=function(e,t){var n=this;if(this.parseConfigOptions(e),this.getNextErrorTimeout(!0),"true"===$(e).find("conference").attr("ready"))this.getNextTimeout(!0),t();else{var r=this.getNextTimeout();s.info("Waiting for the focus... "+r),window.setTimeout(function(){return n.allocateConferenceFocus(t)},r)}},i.prototype.authenticate=function(){var e=this;return new Promise(function(t,n){e.connection.sendIQ(e.createConferenceIq(),function(n){e.parseSessionId(n),t()},function(e){var t=$(e).find(">error").attr("code");n(e,t)})})},i.prototype.getLoginUrl=function(e,t){this._getLoginUrl(!1,e,t)},i.prototype._getLoginUrl=function(e,t,n){function r(e,t){l.callErrorHandler(new Error(e)),s.error(e,t),n(t)}var i=$iq({to:this.getFocusComponent(),type:"get"}),o={xmlns:"http://jitsi.org/protocol/focus",room:this.roomName,"machine-uid":a.a.getMachineId()},c="auth url";e&&(o.popup=!0,c="POPUP "+c),i.c("login-url",o),this.connection.sendIQ(i,function(e){var n=$(e).find("login-url").attr("url");n=decodeURIComponent(n),n?(s.info("Got "+c+": "+n),t(n)):r("Failed to get "+c+" from the focus",e)},r.bind(void 0,"Get "+c+" error"))},i.prototype.getPopupLoginUrl=function(e,t){
this._getLoginUrl(!0,e,t)},i.prototype.logout=function(e){var t=$iq({to:this.getFocusComponent(),type:"set"}),n=a.a.getSessionId();if(!n)return void e();t.c("logout",{xmlns:"http://jitsi.org/protocol/focus","session-id":n}),this.connection.sendIQ(t,function(t){var n=$(t).find("logout").attr("logout-url");n&&(n=decodeURIComponent(n)),s.info("Log out OK, url: "+n,t),a.a.clearSessionId(),e(n)},function(e){l.callErrorHandler(new Error("Logout error")),s.error("Logout error",e)})}}).call(t,"modules/xmpp/moderator.js")},function(e,t,n){"use strict";(function(e){function r(e,t,n,i,o,a){this.eventEmitter=t,this.connection=n,this.state=null,this.focusMucJid=i,this.jirecon=o,this.url=null,this.type=e,this._isSupported=!(e===r.types.JIRECON&&!this.jirecon||e!==r.types.JIBRI&&e!==r.types.COLIBRI),this.jireconRid=null,this.roomjid=a}t.a=r;var i=n(0),o=(n.n(i),n.i(i.getLogger)(e)),a=n(7),s=n(45),c=n(3);r.types={COLIBRI:"colibri",JIRECON:"jirecon",JIBRI:"jibri"},r.status={ON:"on",OFF:"off",AVAILABLE:"available",UNAVAILABLE:"unavailable",PENDING:"pending",RETRYING:"retrying",BUSY:"busy",FAILED:"failed"},r.action={START:"start",STOP:"stop"},r.prototype.handleJibriPresence=function(e){var t=e.attributes;if(t){var n=t.status;o.log("Handle jibri presence : ",n),n!==this.state&&("undefined"===n?this.state=r.status.UNAVAILABLE:n===r.status.OFF?this.state&&"undefined"!==this.state&&this.state!==r.status.UNAVAILABLE?this.state=r.status.OFF:this.state=r.status.AVAILABLE:this.state=n,this.eventEmitter.emit(a.RECORDER_STATE_CHANGED,this.state))}},r.prototype.setRecordingJibri=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e===this.state&&n(s.INVALID_STATE);var a=$iq({to:this.focusMucJid,type:"set"}).c("jibri",{xmlns:"http://jitsi.org/protocol/jibri",action:e===r.status.ON?r.action.START:r.action.STOP,streamid:i.streamId}).up();o.log("Set jibri recording: "+e,a.nodeTree),o.log(a.nodeTree),this.connection.sendIQ(a,function(e){o.log("Result",e);var n=$(e).find("jibri");t(n.attr("state"),n.attr("url"))},function(e){o.log("Failed to start recording, error: ",e),n(e)})},r.prototype.setRecordingJirecon=function(e,t,n){e===this.state&&n(new Error("Invalid state!"));var i=$iq({to:this.jirecon,type:"set"}).c("recording",{xmlns:"http://jitsi.org/protocol/jirecon",action:e===r.status.ON?r.action.START:r.action.STOP,mucjid:this.roomjid});e===r.status.OFF&&i.attrs({rid:this.jireconRid}),o.log("Start recording");var a=this;this.connection.sendIQ(i,function(n){a.jireconRid=$(n).find("recording").attr("rid"),o.log("Recording "+(e===r.status.ON?"started":"stopped")+"(jirecon)"+n),a.state=e,e===r.status.OFF&&(a.jireconRid=null),t(e)},function(e){o.log("Failed to start recording, error: ",e),n(e)})},r.prototype.setRecordingColibri=function(e,t,n,r){var i=$iq({to:this.focusMucJid,type:"set"});i.c("conference",{xmlns:"http://jitsi.org/protocol/colibri"}),i.c("recording",{state:e,token:r.token});var a=this;this.connection.sendIQ(i,function(n){o.log('Set recording "',e,'". Result:',n);var r=$(n).find(">conference>recording"),i=r.attr("state");a.state=i,t(i),"pending"===i&&a.connection.addHandler(function(e){var n=$(e).find("recording").attr("state");n&&(a.state=i,t(n))},"http://jitsi.org/protocol/colibri","iq",null,null,null)},function(e){o.warn(e),n(e)})},r.prototype.setRecording=function(){switch(this.type){case r.types.JIRECON:this.setRecordingJirecon.apply(this,arguments);break;case r.types.COLIBRI:this.setRecordingColibri.apply(this,arguments);break;case r.types.JIBRI:this.setRecordingJibri.apply(this,arguments);break;default:var e="Unknown recording type!";c.callErrorHandler(new Error(e)),o.error(e)}},r.prototype.toggleRecording=function(e,t){var n=this.state;if(n===r.status.UNAVAILABLE||n===r.status.FAILED?t(r.status.FAILED,s.RECORDER_UNAVAILABLE):n===r.status.BUSY&&t(r.status.BUSY,s.RECORDER_BUSY),(n===r.status.OFF||n===r.status.AVAILABLE)&&(!e.token&&this.type===r.types.COLIBRI||!e.streamId&&this.type===r.types.JIBRI))return t(r.status.FAILED,s.NO_TOKEN),void o.error("No token passed!");var i=n===r.status.AVAILABLE||n===r.status.OFF?r.status.ON:r.status.OFF,a=this;o.log("Toggle recording (old state, new state): ",n,i),this.setRecording(i,function(e,r){e&&e!==n&&(a.state=e,a.url=r,t(e))},function(e){return t(r.status.FAILED,e)},e)},r.prototype.isSupported=function(){return this._isSupported},r.prototype.getState=function(){return this.state},r.prototype.getURL=function(){return this.url}}).call(t,"modules/xmpp/recording.js")},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=(n.n(a),n(120)),c=n(20),u=n(7),l=n.n(u),d=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},f=n.i(a.getLogger)(e),h=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.xmpp=e,n.rooms={},n}return o(t,e),d(t,[{key:"init",value:function(e){p(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"init",this).call(this,e),this.connection.addHandler(this.onPresence.bind(this),null,"presence",null,null,null,null),this.connection.addHandler(this.onPresenceUnavailable.bind(this),null,"presence","unavailable",null),this.connection.addHandler(this.onPresenceError.bind(this),null,"presence","error",null),this.connection.addHandler(this.onMessage.bind(this),null,"message",null,null),this.connection.addHandler(this.onMute.bind(this),"http://jitsi.org/jitmeet/audio","iq","set",null,null)}},{key:"createRoom",value:function(e,t,n){var r=Strophe.getBareJidFromJid(e);if(this.rooms[r]){var i="You are already in the room!";throw f.error(i),new Error(i)}return this.rooms[r]=new s.a(this.connection,e,t,this.xmpp,n),this.eventEmitter.emit(l.a.EMUC_ROOM_ADDED,this.rooms[r]),this.rooms[r]}},{key:"doLeave",value:function(e){this.eventEmitter.emit(l.a.EMUC_ROOM_REMOVED,this.rooms[e]),delete this.rooms[e]}},{key:"onPresence",value:function(e){var t=e.getAttribute("from");if(e.getAttribute("type"))return!0;var n=this.rooms[Strophe.getBareJidFromJid(t)];return n?($(e).find('>x[xmlns="http://jabber.org/protocol/muc#user"]>status[code="201"]').length&&n.createNonAnonymousRoom(),n.onPresence(e),!0):void 0}},{key:"onPresenceUnavailable",value:function(e){var t=e.getAttribute("from"),n=this.rooms[Strophe.getBareJidFromJid(t)];if(n)return n.onPresenceUnavailable(e,t),!0}},{key:"onPresenceError",value:function(e){var t=e.getAttribute("from"),n=this.rooms[Strophe.getBareJidFromJid(t)];if(n)return n.onPresenceError(e,t),!0}},{key:"onMessage",value:function(e){var t=e.getAttribute("from"),n=this.rooms[Strophe.getBareJidFromJid(t)];if(n)return n.onMessage(e,t),!0}},{key:"onMute",value:function(e){var t=e.getAttribute("from"),n=this.rooms[Strophe.getBareJidFromJid(t)];if(n)return n.onMute(e),!0}}]),t}(c.b);t.a=function(e){Strophe.addConnectionPlugin("emuc",new h(e))}}).call(t,"modules/xmpp/strophe.emuc.js")},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,n){Strophe.addConnectionPlugin("jingle",new S(e,t,n))}t.a=a;var s=n(0),c=(n.n(s),n(122)),u=n(7),l=n.n(u),d=n(3),p=n.n(d),f=n(19),h=n.n(f),m=n(6),v=n(20),y=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),g=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},b=n.i(s.getLogger)(e),S=function(e){function t(e,n,o){r(this,t);var a=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return a.xmpp=e,a.eventEmitter=n,a.sessions={},a.jvbIceConfig={iceServers:[]},a.p2pIceConfig={iceServers:[]},Array.isArray(o)&&(b.info("Configured STUN servers: ",o),a.p2pIceConfig.iceServers=o),a.mediaConstraints={mandatory:{OfferToReceiveAudio:!0,OfferToReceiveVideo:!0}},a}return o(t,e),y(t,[{key:"init",value:function(e){g(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"init",this).call(this,e),this.connection.addHandler(this.onJingle.bind(this),"urn:xmpp:jingle:1","iq","set",null,null)}},{key:"onJingle",value:function(e){var t=$(e).find("jingle").attr("sid"),n=$(e).find("jingle").attr("action"),r=e.getAttribute("from"),i=$iq({type:"result",to:r,id:e.getAttribute("id")});b.log("on jingle "+n+" from "+r,e);var o=this.sessions[t];if("session-initiate"!==n){if(!o)return i.attrs({type:"error"}),i.c("error",{type:"cancel"}).c("item-not-found",{xmlns:"urn:ietf:params:xml:ns:xmpp-stanzas"}).up().c("unknown-session",{xmlns:"urn:xmpp:jingle:errors:1"}),b.warn("invalid session id",e),this.connection.send(i),!0;if(r!==o.peerjid)return b.warn("jid mismatch for session id",t,o.peerjid,e),i.attrs({type:"error"}),i.c("error",{type:"cancel"}).c("item-not-found",{xmlns:"urn:ietf:params:xml:ns:xmpp-stanzas"}).up().c("unknown-session",{xmlns:"urn:xmpp:jingle:errors:1"}),this.connection.send(i),!0}else if(void 0!==o)return i.attrs({type:"error"}),i.c("error",{type:"cancel"}).c("service-unavailable",{xmlns:"urn:ietf:params:xml:ns:xmpp-stanzas"}).up(),b.warn("duplicate session id",t,e),this.connection.send(i),!0;var a=window.performance.now();switch(n){case"session-initiate":b.log("(TIME) received session-initiate:\t",a);var s=$(e).find("jingle>startmuted");if(s&&s.length>0){var u=s.attr("audio"),d=s.attr("video");this.eventEmitter.emit(l.a.START_MUTED_FROM_FOCUS,"true"===u,"true"===d)}var f="focus"!==Strophe.getResourceFromJid(r);b.info("Marking session from "+r+" as "+(f?"":"*not*")+" P2P"),o=new c.a($(e).find("jingle").attr("sid"),$(e).attr("to"),r,this.connection,this.mediaConstraints,f?this.p2pIceConfig:this.jvbIceConfig,f,!1,this.xmpp.options),this.sessions[o.sid]=o,this.eventEmitter.emit(l.a.CALL_INCOMING,o,$(e).find(">jingle"),a),m.a.analytics.sendEvent("xmpp.session-initiate",{value:a});break;case"session-accept":this.eventEmitter.emit(l.a.CALL_ACCEPTED,o,$(e).find(">jingle"));break;case"content-modify":o.modifyContents($(e).find(">jingle"));break;case"transport-info":this.eventEmitter.emit(l.a.TRANSPORT_INFO,o,$(e).find(">jingle"));break;case"session-terminate":b.log("terminating...",o.sid);var h=null,v=null;$(e).find(">jingle>reason").length&&(h=$(e).find(">jingle>reason>:first")[0].tagName,v=$(e).find(">jingle>reason>text").text()),this.terminate(o.sid,h,v),this.eventEmitter.emit(l.a.CALL_ENDED,o,h,v);break;case"transport-replace":b.info("(TIME) Start transport replace",a),m.a.analytics.sendEvent("xmpp.transport-replace.start",{value:a}),o.replaceTransport($(e).find(">jingle"),function(){var e=window.performance.now();b.info("(TIME) Transport replace success!",e),m.a.analytics.sendEvent("xmpp.transport-replace.success",{value:e})},function(e){p.a.callErrorHandler(e),b.error("Transport replace failed",e),o.sendTransportReject()});break;case"addsource":case"source-add":o.addRemoteStream($(e).find(">jingle>content"));break;case"removesource":case"source-remove":o.removeRemoteStream($(e).find(">jingle>content"));break;default:b.warn("jingle action not implemented",n),i.attrs({type:"error"}),i.c("error",{type:"cancel"}).c("bad-request",{xmlns:"urn:ietf:params:xml:ns:xmpp-stanzas"}).up()}return this.connection.send(i),!0}},{key:"newP2PJingleSession",value:function(e,t){var n=new c.a(h.a.randomHexString(12),e,t,this.connection,this.mediaConstraints,this.p2pIceConfig,!0,!0,this.xmpp.options);return this.sessions[n.sid]=n,n}},{key:"terminate",value:function(e,t,n){this.sessions.hasOwnProperty(e)&&("ended"!==this.sessions[e].state&&this.sessions[e].onTerminated(t,n),delete this.sessions[e])}},{key:"getStunAndTurnCredentials",value:function(){var e=this;this.connection.sendIQ($iq({type:"get",to:this.connection.domain}).c("services",{xmlns:"urn:xmpp:extdisco:1"}).c("service",{host:"turn."+this.connection.domain}),function(t){var n=[];$(t).find(">services>service").each(function(e,t){t=$(t);var r={},i=t.attr("type");switch(i){case"stun":r.url="stun:"+t.attr("host"),t.attr("port")&&(r.url+=":"+t.attr("port")),n.push(r);break;case"turn":case"turns":r.url=i+":";var o=t.attr("username");o&&(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)&&parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2],10)<28?r.url+=o+"@":r.username=o),r.url+=t.attr("host");var a=t.attr("port");a&&"3478"!==a&&(r.url+=":"+t.attr("port"));var s=t.attr("transport");s&&"udp"!==s&&(r.url+="?transport="+s),r.credential=t.attr("password")||r.credential,n.push(r)}});var r=e.xmpp.options;r.useStunTurn&&(e.jvbIceConfig.iceServers=n),r.p2p&&r.p2p.useStunTurn&&(e.p2pIceConfig.iceServers=n)},function(e){b.warn("getting turn credentials failed",e),b.warn("is mod_turncredentials or similar installed?")})}},{key:"getLog",value:function(){var e=this,t={};return Object.keys(this.sessions).forEach(function(n){var r=e.sessions[n],i=r.peerconnection;i&&i.updateLog&&(t["jingle_"+n]={updateLog:i.updateLog,stats:i.stats,url:window.location.href})}),t}}]),t}(v.a)}).call(t,"modules/xmpp/strophe.jingle.js")},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(20),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},u=function(e){function t(){r(this,t);var e=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.log=[],e}return o(t,e),s(t,[{key:"init",value:function(e){c(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"init",this).call(this,e),this.connection.rawInput=this.logIncoming.bind(this),this.connection.rawOutput=this.logOutgoing.bind(this)}},{key:"logIncoming",value:function(e){this.log.push([(new Date).getTime(),"incoming",e])}},{key:"logOutgoing",value:function(e){this.log.push([(new Date).getTime(),"outgoing",e])}}]),t}(a.a);t.a=function(){Strophe.addConnectionPlugin("logger",new u)}},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=(n.n(a),n(20)),c=n(3),u=n.n(c),l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},p=n.i(a.getLogger)(e),f=function(e){function t(e){r(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.failedPings=0,n.xmpp=e,n}return o(t,e),l(t,[{key:"init",value:function(e){d(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"init",this).call(this,e),Strophe.addNamespace("PING","urn:xmpp:ping")}},{key:"ping",value:function(e,t,n,r){var i=$iq({type:"get",to:e});i.c("ping",{xmlns:Strophe.NS.PING}),this.connection.sendIQ(i,t,n,r)}},{key:"hasPingSupport",value:function(e,t){this.xmpp.caps.getFeatures(e).then(function(e){return t(e.has("urn:xmpp:ping"))},function(e){var n="Ping feature discovery error";u.a.callErrorHandler(new Error(n+": "+e)),p.error(n,e),t(!1)})}},{key:"startInterval",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e4;if(this.intervalId){var r="Ping task scheduled already";return u.a.callErrorHandler(new Error(r)),void p.error(r)}this.intervalId=window.setInterval(function(){t.ping(e,function(){t.failedPings=0},function(e){t.failedPings+=1;var n="Ping "+(e?"error":"timeout");t.failedPings>=3?(u.a.callErrorHandler(new Error(n)),p.error(n,e)):p.warn(n,e)},15e3)},n),p.info("XMPP pings will be sent every "+n+" ms")}},{key:"stopInterval",value:function(){this.intervalId&&(window.clearInterval(this.intervalId),this.intervalId=null,this.failedPings=0,p.info("Ping interval cleared"))}}]),t}(s.a);t.a=function(e){Strophe.addConnectionPlugin("ping",new f(e))}}).call(t,"modules/xmpp/strophe.ping.js")},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(0),s=(n.n(a),n(20)),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},l=n.i(a.getLogger)(e),d=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),c(t,[{key:"init",value:function(e){u(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"init",this).call(this,e),this.connection.addHandler(this.onRayo.bind(this),"urn:xmpp:rayo:1","iq","set",null,null)}},{key:"onRayo",value:function(e){l.info("Rayo IQ",e)}},{key:"dial",value:function(e,t,n,r,i){var o=this;return new Promise(function(a,s){if(!i)return void s(new Error("Internal error!"));var c=$iq({type:"set",to:i});c.c("dial",{xmlns:"urn:xmpp:rayo:1",to:e,from:t}),c.c("header",{name:"JvbRoomName",value:n}).up(),r&&r.length&&c.c("header",{name:"JvbRoomPassword",value:r}).up(),o.connection.sendIQ(c,function(e){l.info("Dial result ",e);var t=$(e).find("ref").attr("uri");o.callResource=t.substr("xmpp:".length),l.info("Received call resource: "+o.callResource),a()},function(e){l.info("Dial error ",e),s(e)})})}},{key:"hangup",value:function(){var e=this;return new Promise(function(t,n){if(!e.callResource)return n(new Error("No call in progress")),void l.warn("No call in progress");var r=$iq({type:"set",to:e.callResource});r.c("hangup",{xmlns:"urn:xmpp:rayo:1"}),e.connection.sendIQ(r,function(n){l.info("Hangup result ",n),e.callResource=null,t()},function(t){l.info("Hangup error ",t),e.callResource=null,n(new Error("Hangup error "))})})}}]),t}(s.a);t.a=function(){Strophe.addConnectionPlugin("rayo",new d)}}).call(t,"modules/xmpp/strophe.rayo.js")},function(e,t,n){"use strict";(function(e){var r=n(0),i=(n.n(r),n(3)),o=n.n(i),a=n.i(r.getLogger)(e),s=-1,c=/request id \d+.\d+ got 200/,u=/request errored, status: (\d+), number of errors: \d+/;t.a=function(){Strophe.log=function(e,t){switch(a.trace("Strophe",e,t),"string"==typeof t&&-1!==t.indexOf("Request ")&&-1!==t.indexOf("timed out (secondary), restarting")&&(e=Strophe.LogLevel.WARN),e){case Strophe.LogLevel.DEBUG:-1!==s&&c.test(t)&&(a.debug("Reset lastErrorStatus"),s=-1);break;case Strophe.LogLevel.WARN:a.warn("Strophe: "+t);var n=u.exec(t);n&&2===n.length&&(s=parseInt(n[1],10),a.debug("lastErrorStatus set to: "+s));break;case Strophe.LogLevel.ERROR:case Strophe.LogLevel.FATAL:t="Strophe: "+t,o.a.callErrorHandler(new Error(t)),a.error(t)}},Strophe.getLastErrorStatus=function(){return s},Strophe.getStatusString=function(e){switch(e){case Strophe.Status.ERROR:return"ERROR";case Strophe.Status.CONNECTING:return"CONNECTING";case Strophe.Status.CONNFAIL:return"CONNFAIL";case Strophe.Status.AUTHENTICATING:return"AUTHENTICATING";case Strophe.Status.AUTHFAIL:return"AUTHFAIL";case Strophe.Status.CONNECTED:return"CONNECTED";case Strophe.Status.DISCONNECTED:return"DISCONNECTED";case Strophe.Status.DISCONNECTING:return"DISCONNECTING";case Strophe.Status.ATTACHED:return"ATTACHED";default:return"unknown"}}}}).call(t,"modules/xmpp/strophe.util.js")},function(e,t,n){"use strict";(function(e){function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/http-bind";return e&&(t+=(-1===t.indexOf("?")?"?":"&")+"token="+e),new Strophe.Connection(t)}var s=n(0),c=(n.n(s),n(19)),u=n.n(c),l=n(43),d=n(27),p=n(1),f=n(129),h=n(130),m=n(134),v=n(132),y=n(133),g=n(131),b=n(10),S=n(119),E=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),T=n.i(s.getLogger)(e),_=function(e){function t(e,n){r(this,t);var o=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o.connection=null,o.disconnectInProgress=!1,o.connectionTimes={},o.forceMuted=!1,o.options=e,o.connectParams={},o.token=n,o.authenticatedUser=!1,o._initStrophePlugins(o),o.connection=a(n,e.bosh),o.caps=new S.a(o.connection,o.options.clientNode),o.initFeaturesList(),$(window).on("beforeunload unload",o.disconnect.bind(o)),o}return o(t,e),E(t,[{key:"initFeaturesList",value:function(){this.caps.addFeature("urn:xmpp:jingle:1"),this.caps.addFeature("urn:xmpp:jingle:apps:rtp:1"),this.caps.addFeature("urn:xmpp:jingle:transports:ice-udp:1"),this.caps.addFeature("urn:xmpp:jingle:apps:dtls:0"),this.caps.addFeature("urn:xmpp:jingle:transports:dtls-sctp:1"),this.caps.addFeature("urn:xmpp:jingle:apps:rtp:audio"),this.caps.addFeature("urn:xmpp:jingle:apps:rtp:video"),!this.options.disableRtx&&p.a.supportsRtx()&&this.caps.addFeature("urn:ietf:rfc:4588"),this.caps.addFeature("urn:ietf:rfc:5761"),this.caps.addFeature("urn:ietf:rfc:5888"),p.a.isChrome()&&!1!==this.options.enableLipSync&&(T.info("Lip-sync enabled !"),this.caps.addFeature("http://jitsi.org/meet/lipsync")),this.connection.rayo&&this.caps.addFeature("urn:xmpp:rayo:client:1")}},{key:"getConnection",value:function(){return this.connection}},{key:"connectionHandler",value:function(e,t,n){var r=this,i=window.performance.now(),o=Strophe.getStatusString(t).toLowerCase();if(this.connectionTimes[o]=i,T.log("(TIME) Strophe "+o+(n?"["+n+"]":"")+":\t",i),t===Strophe.Status.CONNECTED||t===Strophe.Status.ATTACHED){(this.options.useStunTurn||this.options.p2p&&this.options.p2p.useStunTurn)&&this.connection.jingle.getStunAndTurnCredentials(),T.info("My Jabber ID: "+this.connection.jid);var a=this.connection.domain;this.connection.ping.hasPingSupport(a,function(e){e?r.connection.ping.startInterval(a):T.warn("Ping NOT supported by "+a)}),e&&(this.authenticatedUser=!0),this.connection&&this.connection.connected&&Strophe.getResourceFromJid(this.connection.jid)&&this.eventEmitter.emit(d.CONNECTION_ESTABLISHED,Strophe.getResourceFromJid(this.connection.jid))}else if(t===Strophe.Status.CONNFAIL)"x-strophe-bad-non-anon-jid"===n?this.anonymousConnectionFailed=!0:this.connectionFailed=!0,this.lastErrorMsg=n;else if(t===Strophe.Status.DISCONNECTED){this.connection.ping.stopInterval();var s=this.disconnectInProgress,c=n||this.lastErrorMsg;if(this.disconnectInProgress=!1,this.anonymousConnectionFailed)this.eventEmitter.emit(d.CONNECTION_FAILED,l.PASSWORD_REQUIRED);else if(this.connectionFailed)this.eventEmitter.emit(d.CONNECTION_FAILED,l.OTHER_ERROR,c);else if(s)this.eventEmitter.emit(d.CONNECTION_DISCONNECTED,c);else{T.error("XMPP connection dropped!");var u=Strophe.getLastErrorStatus();u>=500&&u<600?this.eventEmitter.emit(d.CONNECTION_FAILED,l.SERVER_ERROR,c||"server-error"):this.eventEmitter.emit(d.CONNECTION_FAILED,l.CONNECTION_DROPPED_ERROR,c||"connection-dropped-error")}}else t===Strophe.Status.AUTHFAIL&&this.eventEmitter.emit(d.CONNECTION_FAILED,l.PASSWORD_REQUIRED)}},{key:"_connect",value:function(e,t){this.anonymousConnectionFailed=!1,this.connectionFailed=!1,this.lastErrorMsg=void 0,this.connection.connect(e,t,this.connectionHandler.bind(this,t))}},{key:"attach",value:function(e){var t=this.connectionTimes.attaching=window.performance.now();T.log("(TIME) Strophe Attaching\t:"+t),this.connection.attach(e.jid,e.sid,parseInt(e.rid,10)+1,this.connectionHandler.bind(this,e.password))}},{key:"connect",value:function(e,t){if(this.connectParams={jid:e,password:t},!e){var n=this.options.hosts,r=n.anonymousdomain,i=n.domain,o=r||i,a=window,s=a.location;if(r){var c=s&&s.search;(c&&-1!==c.indexOf("login=true")||this.token)&&(o=i)}e=o||s&&s.hostname}return this._connect(e,t)}},{key:"createRoom",value:function(e,t){var n=Strophe.getNodeFromJid(this.connection.jid),r=e+"@"+this.options.hosts.muc+"/",i=t.useNicks&&t.nick?t.nick:null;return i?n=t.nick:this.authenticatedUser||(n=n.substr(0,8)),(this.authenticatedUser||null!==i)&&(n+="-"+u.a.randomHexString(6)),r+=n,this.connection.emuc.createRoom(r,null,t)}},{key:"getJingleLog",value:function(){var e=this.connection.jingle;return e?e.getLog():{}}},{key:"getXmppLog",value:function(){return(this.connection.logger||{}).log||null}},{key:"dial",value:function(){var e;(e=this.connection.rayo).dial.apply(e,arguments)}},{key:"setMute",value:function(e,t){this.connection.moderate.setMute(e,t)}},{key:"eject",value:function(e){this.connection.moderate.eject(e)}},{key:"getSessions",value:function(){return this.connection.jingle.sessions}},{key:"disconnect",value:function(e){if(this.disconnectInProgress||!this.connection||!this.connection.connected)return void this.eventEmitter.emit(d.WRONG_STATE);if(this.disconnectInProgress=!0,this.connection.flush(),null!==e&&void 0!==e){var t=e.type;"beforeunload"!==t&&"unload"!==t||(this.connection.options.sync=!0)}this.connection.disconnect(),!0!==this.connection.options.sync&&this.connection.flush()}},{key:"_initStrophePlugins",value:function(){var e=[{urls:"stun:stun.l.google.com:19302"},{urls:"stun:stun1.l.google.com:19302"},{urls:"stun:stun2.l.google.com:19302"}],t=this.options.p2p&&this.options.p2p.stunServers||e;n.i(f.a)(this),n.i(h.a)(this,this.eventEmitter,t),n.i(m.a)(),n.i(v.a)(this),n.i(y.a)(),n.i(g.a)()}}]),t}(b.a);t.a=_}).call(t,"modules/xmpp/xmpp.js")},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(10),s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(e){function t(){return r(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),s(t,[{key:"getSSRCOwner",value:function(e){throw new Error("not implemented")}},{key:"getPeerMediaInfo",value:function(e,t){throw new Error("not implemented")}}]),t}(a.a);t.a=c},function(e,t){var n={LOCAL_JID:"local"};e.exports=n},function(e,t){e.exports=function e(t){if(!t)return!1;if(this.length!=t.length)return!1;for(var n=0,r=this.length;n<r;n++)if(this[n]instanceof Array&&t[n]instanceof Array){if(!e.apply(this[n],[t[n]]))return!1}else if(this[n]!=t[n])return!1;return!0}},function(e,t,n){t.Interop=n(140)},function(e,t,n){"use strict";function r(){this.cache={mlB2UMap:{},mlU2BMap:{}}}var i="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof e},o=n(141),a=n(138);e.exports=r,r.prototype.candidateToUnifiedPlan=function(e){var t=new RTCIceCandidate(e);return t.sdpMLineIndex=this.cache.mlB2UMap[t.sdpMLineIndex],t},r.prototype.candidateToPlanB=function(e){var t=new RTCIceCandidate(e);if(0===t.sdpMid.indexOf("audio"))t.sdpMid="audio";else{if(0!==t.sdpMid.indexOf("video"))throw new Error("candidate with "+t.sdpMid+" not allowed");t.sdpMid="video"}return t.sdpMLineIndex=this.cache.mlU2BMap[t.sdpMLineIndex],t},r.prototype.getFirstSendingIndexFromAnswer=function(e){if(!this.cache.answer)return null
;var t=o.parse(this.cache.answer);if(t&&t.media&&Array.isArray(t.media))for(var n=0;n<t.media.length;n++)if(t.media[n].type==e&&(!t.media[n].direction||"sendrecv"===t.media[n].direction||"sendonly"===t.media[n].direction))return n;return null},r.prototype.toPlanB=function(e){var t=this;if("object"!==(void 0===e?"undefined":i(e))||null===e||"string"!=typeof e.sdp)return console.warn("An empty description was passed as an argument."),e;var n=o.parse(e.sdp);if(void 0===n.media||!Array.isArray(n.media)||0===n.media.length)return console.warn("The description has no media."),e;if(n.media.length<=3&&n.media.every(function(e){return-1!==["video","audio","data"].indexOf(e.mid)}))return console.warn("This description does not look like Unified Plan."),e;for(var r=e.sdp,a=!1,s=0;s<n.media.length;s++)n.media[s].rtp.forEach(function(e){if("NULL"===e.codec){a=!0;var n=o.parse(t.cache.offer);e.codec=n.media[s].rtp[0].codec}});a&&(r=o.write(n)),this.cache[e.type]=r;var c=n.media;n.media=[];var u={},l=[];c.forEach(function(e){if(("string"!=typeof e.rtcpMux||"rtcp-mux"!==e.rtcpMux)&&"inactive"!==e.direction)throw new Error("Cannot convert to Plan B because m-lines without the rtcp-mux attribute were found.");void 0!==u[e.type]&&"inactive"!==u[e.type].direction||(u[e.type]=e)}),c.forEach(function(e){if("application"===e.type)return n.media.push(e),void l.push(e.mid);"object"===i(e.sources)&&Object.keys(e.sources).forEach(function(t){"object"!==i(u[e.type].sources)&&(u[e.type].sources={}),u[e.type].sources[t]=e.sources[t],void 0!==e.msid&&(u[e.type].sources[t].msid=e.msid)}),void 0!==e.ssrcGroups&&Array.isArray(e.ssrcGroups)&&(void 0!==u[e.type].ssrcGroups&&Array.isArray(u[e.type].ssrcGroups)||(u[e.type].ssrcGroups=[]),u[e.type].ssrcGroups=u[e.type].ssrcGroups.concat(e.ssrcGroups)),u[e.type]===e&&(e.mid=e.type,delete e.bundleOnly,delete e.msid,"inactive"!==e.direction&&l.push(e.type),n.media.push(e))}),n.groups.some(function(e){if("BUNDLE"===e.type)return e.mids=l.join(" "),!0}),n.msidSemantic={semantic:"WMS",token:"*"};var d=o.write(n);return new RTCSessionDescription({type:e.type,sdp:d})},r.prototype.toUnifiedPlan=function(e){var t=this;if("object"!==(void 0===e?"undefined":i(e))||null===e||"string"!=typeof e.sdp)return console.warn("An empty description was passed as an argument."),e;var n=o.parse(e.sdp);if(void 0===n.media||!Array.isArray(n.media)||0===n.media.length)return console.warn("The description has no media."),e;if(n.media.length>3||!n.media.every(function(e){return-1!==["video","audio","data"].indexOf(e.mid)}))return console.warn("This description does not look like Plan B."),e;var r=[];n.media.forEach(function(e){r.push(e.mid)});var s=!1;if(void 0!==n.groups&&Array.isArray(n.groups)&&(s=n.groups.every(function(e){return"BUNDLE"!==e.type||a.apply(e.mids.sort(),[r.sort()])})),!s)throw new Error("Cannot convert to Unified Plan because m-lines that are not bundled were found.");var c;void 0!==this.cache[e.type]&&(c=o.parse(this.cache[e.type]));var u={audio:{},video:{}},l={},d=0,p=0;if(n.media.forEach(function(n){if(("string"!=typeof n.rtcpMux||"rtcp-mux"!==n.rtcpMux)&&"inactive"!==n.direction)throw new Error("Cannot convert to Unified Plan because m-lines without the rtcp-mux attribute were found.");if("application"===n.type)return void(l[n.mid]=n);var r=n.sources,o=n.ssrcGroups,a=n.candidates,s=n.iceUfrag,f=n.icePwd,h=n.fingerprint,m=n.port;delete n.sources,delete n.ssrcGroups,delete n.candidates,delete n.iceUfrag,delete n.icePwd,delete n.fingerprint,delete n.port,delete n.mid;var v={};void 0!==o&&Array.isArray(o)&&o.forEach(function(e){"SIM"!==e.semantics&&void 0!==e.ssrcs&&Array.isArray(e.ssrcs)&&e.ssrcs.forEach(function(t){void 0===v[t]&&(v[t]=[]),v[t].push(e)})});var y={};"object"===(void 0===r?"undefined":i(r))&&Object.keys(r).forEach(function(o){var g;if("offer"===e.type&&!r[o].msid)return void(u[n.type][o]=r[o]);if(void 0!==v[o]&&Array.isArray(v[o])&&v[o].some(function(e){return e.ssrcs.some(function(e){if("object"===i(y[e]))return g=y[e],!0})}),"object"===(void 0===g?"undefined":i(g)))g.sources[o]=r[o],delete r[o].msid;else{if(g=Object.create(n),y[o]=g,void 0!==r[o].msid&&(g.msid=r[o].msid,delete r[o].msid),g.sources={},g.sources[o]=r[o],g.ssrcGroups=v[o],void 0!==c&&void 0!==c.media&&Array.isArray(c.media)&&c.media.forEach(function(e){"object"===i(e.sources)&&Object.keys(e.sources).forEach(function(t){t===o&&(g.mid=e.mid)})}),void 0===g.mid){if("answer"===e.type)throw new Error("An unmapped SSRC was found.");g.mid=[n.type,"-",o].join("")}g.candidates=a,g.iceUfrag=s,g.icePwd=f,g.fingerprint=h,g.port=m,l[g.mid]=g,t.cache.mlU2BMap[p]=d,void 0===t.cache.mlB2UMap[d]&&(t.cache.mlB2UMap[d]=p),p++}}),d++}),n.media=[],r=[],"answer"===e.type)for(var f=0;f<c.media.length;f++){var h=c.media[f];void 0===l[h.mid]&&(delete h.msid,delete h.sources,delete h.ssrcGroups,h.direction&&"sendrecv"!==h.direction?"sendonly"===h.direction&&(h.direction="inactive"):h.direction="recvonly"),n.media.push(h),"string"==typeof h.mid&&r.push(h.mid)}else void 0!==c&&void 0!==c.media&&Array.isArray(c.media)&&c.media.forEach(function(e){r.push(e.mid),void 0!==l[e.mid]?n.media.push(l[e.mid]):(delete e.msid,delete e.sources,delete e.ssrcGroups,e.direction&&"sendrecv"!==e.direction||(e.direction="recvonly"),e.direction&&"sendonly"!==e.direction||(e.direction="inactive"),n.media.push(e))}),Object.keys(l).forEach(function(e){-1===r.indexOf(e)&&(r.push(e),"recvonly"===l[e].direction?n.media.some(function(t){if(("sendrecv"===t.direction||"sendonly"===t.direction)&&t.type===l[e].type)return Object.keys(l[e].sources).forEach(function(n){t.sources[n]=l[e].sources[n]}),!0}):n.media.push(l[e]))});["audio","video"].forEach(function(e){if(n&&n.media&&Array.isArray(n.media)){var r=null;if(Object.keys(u[e]).length>0&&null===(r=t.getFirstSendingIndexFromAnswer(e)))for(var i=0;i<n.media.length;i++)if(n.media[i].type===e){r=i;break}if(r&&n.media.length>r){var o=n.media[r];Object.keys(u[e]).forEach(function(t){o.sources&&o.sources[t]&&console.warn("Replacing an existing SSRC."),o.sources||(o.sources={}),o.sources[t]=u[e][t]})}}}),n.groups.some(function(e){if("BUNDLE"===e.type)return e.mids=r.join(" "),!0}),n.msidSemantic={semantic:"WMS",token:"*"};var m=o.write(n);return this.cache[e.type]=m,new RTCSessionDescription({type:e.type,sdp:m})}},function(e,t,n){var r=n(13);t.write=function(e,t){return void 0!==e&&void 0!==e.media&&Array.isArray(e.media)&&e.media.forEach(function(e){void 0!==e.sources&&0!==Object.keys(e.sources).length&&(e.ssrcs=[],Object.keys(e.sources).forEach(function(t){var n=e.sources[t];Object.keys(n).forEach(function(r){e.ssrcs.push({id:t,attribute:r,value:n[r]})})}),delete e.sources),void 0!==e.ssrcGroups&&Array.isArray(e.ssrcGroups)&&e.ssrcGroups.forEach(function(e){void 0!==e.ssrcs&&Array.isArray(e.ssrcs)&&(e.ssrcs=e.ssrcs.join(" "))})}),void 0!==e&&void 0!==e.groups&&Array.isArray(e.groups)&&e.groups.forEach(function(e){void 0!==e.mids&&Array.isArray(e.mids)&&(e.mids=e.mids.join(" "))}),r.write(e,t)},t.parse=function(e){var t=r.parse(e);return void 0!==t&&void 0!==t.media&&Array.isArray(t.media)&&t.media.forEach(function(e){void 0!==e.ssrcs&&Array.isArray(e.ssrcs)&&(e.sources={},e.ssrcs.forEach(function(t){e.sources[t.id]||(e.sources[t.id]={}),e.sources[t.id][t.attribute]=t.value}),delete e.ssrcs),void 0!==e.ssrcGroups&&Array.isArray(e.ssrcGroups)&&e.ssrcGroups.forEach(function(e){"string"==typeof e.ssrcs&&(e.ssrcs=e.ssrcs.split(" "))})}),void 0!==t&&void 0!==t.groups&&Array.isArray(t.groups)&&t.groups.forEach(function(e){"string"==typeof e.mids&&(e.mids=e.mids.split(" "))}),t}},function(e,t,n){function r(e,t,n){return e.ssrcs.filter(function(e){return e.id===t}).filter(function(e){return e.attribute===n}).map(function(e){return e.value})[0]}function i(e){this.options=e||{},this.options.numOfLayers||(this.options.numOfLayers=v),console.log("SdpSimulcast: using "+this.options.numOfLayers+" layers"),this.ssrcCache=[]}function o(){return Math.floor(4294967295*Math.random())+0}function a(e,t){null!=e&&Array.isArray(e.media)&&e.media.forEach(function(e){"video"===e.type&&t(e)})}function s(e){return e&&null!=e&&e.type&&""!=e.type&&e.sdp&&""!=e.sdp}function c(e){if(e&&Array.isArray(e.ssrcGroups))for(var t=h(e),n=[],r=e.ssrcGroups.length;r--;)if("SIM"===e.ssrcGroups[r].semantics){for(var i=e.ssrcGroups[r].ssrcs.split(" "),o=0;o<i.length;o++){var a=i[o];n.push(a);var s=t[a].msid.split(" ");t[a].msid=[s[0],"/",o," ",s[1],"/",o].join(""),t[a].cname=[t[a].cname,"/",o].join(""),e.ssrcGroups.forEach(function(e){if("SIM"!==e.semantics){var r=e.ssrcs.split(" ");-1!==r.indexOf(a)&&r.forEach(function(e){t[e].msid=t[a].msid,t[e].cname=t[a].cname,e!==a&&n.push(e)})}})}e.ssrcs=m(t,n),e.ssrcGroups.splice(r,1)}}function u(e){if(!e||!Array.isArray(e.ssrcGroups))return void console.info("Halt: There are no SSRC groups in the remote description.");var t=h(e);e.ssrcGroups.forEach(function(n){if("SIM"===n.semantics){console.info("Imploding SIM group: "+n.ssrcs),n.nuke=!0;for(var r=n.ssrcs.split(" "),i=1;i<r.length;i++){var o=r[i];delete t[o],e.ssrcGroups.forEach(function(e){if("SIM"!==e.semantics){var n=e.ssrcs.split(" ");-1!==n.indexOf(o)&&(n.forEach(function(e){delete t[e]}),e.nuke=!0)}})}}}),e.ssrcs=m(t);for(var n=e.ssrcGroups.length;n--;)e.ssrcGroups[n].nuke&&e.ssrcGroups.splice(n,1)}function l(e){if(e&&Array.isArray(e.invalid))for(var t=e.invalid.length;t--;)"x-google-flag:conference"==e.invalid[t].value&&e.invalid.splice(t,1)}function d(e){e&&(Array.isArray(e.invalid)||(e.invalid=[]),e.invalid.some(function(e){return"x-google-flag:conference"===e.value})||e.invalid.push({value:"x-google-flag:conference"}))}var p=n(13),f=n(143),h=f.parseSsrcs,m=f.writeSsrcs,v=3;i.prototype.clearSsrcCache=function(){this.ssrcCache=[]},i.prototype.setSsrcCache=function(e){this.ssrcCache=e},i.prototype._parseSimLayers=function(e){var t=e.ssrcGroups&&e.ssrcGroups.find(function(e){return"SIM"===e.semantics});return t?t.ssrcs.split(" ").map(function(e){return parseInt(e)}):[e.ssrcs[0].id]},i.prototype._buildNewToOldSsrcMap=function(e,t){for(var n={},r=0;r<e.length;++r){var i=e[r],o=t[r]||null;n[i]=o}return n},i.prototype._fillInSourceDataFromCache=function(e){console.log("SdpSimulcast restoring from cache: ",this.ssrcCache);var t=this._parseSimLayers(e);console.log("SdpSimulcast Parsed new sim ssrcs: ",t);var n=r(e,t[0],"msid"),i=r(e,t[0],"cname"),o=this._buildNewToOldSsrcMap(t,this.ssrcCache);console.log("SdpSimulcast built replacement map: ",o);var a=this.ssrcCache.filter(function(e){return-1===Object.values(o).indexOf(e)});return console.log("SdpSimulcast built ssrcs to add: ",a),e.ssrcs.forEach(function(e){o[e.id]&&(e.id=o[e.id])}),a.forEach(function(t){e.ssrcs.push({id:t,attribute:"msid",value:n}),e.ssrcs.push({id:t,attribute:"cname",value:i})}),e.ssrcGroups=e.ssrcGroups||[],e.ssrcGroups.push({semantics:"SIM",ssrcs:this.ssrcCache.join(" ")}),e},i.prototype._generateSourceData=function(e,t){for(var n=r(e,t,"msid"),i=r(e,t,"cname"),a=[],s=0;s<this.options.numOfLayers-1;++s){var c=o();!function(e,t){e.ssrcs.push({id:t,attribute:"cname",value:i}),e.ssrcs.push({id:t,attribute:"msid",value:n})}(e,c),a.push(c)}return e.ssrcGroups=e.ssrcGroups||[],e.ssrcGroups.push({semantics:"SIM",ssrcs:t+" "+a.join(" ")}),e},i.prototype._restoreSimulcast=function(e){var t,n=e.ssrcs&&e.ssrcs.map(function(e){return e.id}).filter(function(e,t,n){return n.indexOf(e)===t}).length||0,r=e.ssrcGroups&&e.ssrcGroups.length||0;if(0===n||n>2)return e;if(2==n&&0===r)return e;if(1===n)t=e.ssrcs[0].id;else{var i=e.ssrcGroups.filter(function(e){return"FID"===e.semantics})[0];if(!i)return e;t=parseInt(i.ssrcs.split(" ")[0])}return console.log("SdpSimulcast: current ssrc cache: ",this.ssrcCache),console.log("SdpSimulcast: parsed primary ssrc "+t),-1!==this.ssrcCache.indexOf(t)?(console.log("SdpSimulcast: Have seen primary ssrc before, filling in data from cache"),e=this._fillInSourceDataFromCache(e)):(console.log("SdpSimulcast: Have not seen primary ssrc before, generating source data"),e=this._generateSourceData(e,t)),this.ssrcCache=this._parseSimLayers(e),e},i.prototype.mungeRemoteDescription=function(e){if(!s(e))return e;var t=p.parse(e.sdp),n=this;return a(t,function(e){n.options.explodeRemoteSimulcast?c(e):u(e),n.ssrcCache.length<1?l(e):d(e)}),new RTCSessionDescription({type:e.type,sdp:p.write(t)})},i.prototype.mungeLocalDescription=function(e){if(!s(e))return e;var t=p.parse(e.sdp),n=this;return a(t,function(e){"recvonly"!=e.direction&&"inactive"!=e.direction&&n._restoreSimulcast(e)}),new RTCSessionDescription({type:e.type,sdp:p.write(t)})},e.exports=i},function(e,t){t.writeSsrcs=function(e,t){var n=[];if(void 0!==e&&0!==Object.keys(e).length){Array.isArray(t)||(t=[]);for(var r=0;r<t.length;r++){var i=t[r],o=e[i];Object.keys(o).forEach(function(e){n.push({id:i,attribute:e,value:o[e]})})}Object.keys(e).forEach(function(r){if(r=parseInt(r),!(t.indexOf(r)>=0)){var i=e[r];Object.keys(i).forEach(function(e){n.push({id:r,attribute:e,value:i[e]})})}})}return n},t.parseSsrcs=function(e){var t={};return void 0!==e.ssrcs&&Array.isArray(e.ssrcs)&&e.ssrcs.forEach(function(e){t[e.id]||(t[e.id]={}),t[e.id][e.attribute]=e.value}),t}},function(e,t,n){var r=function(e){return String(Number(e))===e?Number(e):e},i=function(e){function t(t,n,r,i){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e,t,n,i){if(i&&!n)t[i]=r(e[1]);else for(var o=0;o<n.length;o+=1)null!=e[o+1]&&(t[n[o]]=r(e[o+1]))}),o=function(e,t,n){var r=e.name&&e.names;e.push&&!t[e.push]?t[e.push]=[]:r&&!t[e.name]&&(t[e.name]={});var o=e.push?{}:r?t[e.name]:t;i(n.match(e.reg),o,e.names,e.name),e.push&&t[e.push].push(o)},a=n(57),s=RegExp.prototype.test.bind(/^([a-z])=(.*)/);t.parse=function(e){var t={},n=[],r=t;return e.split(/(\r\n|\r|\n)/).filter(s).forEach(function(e){var t=e[0],i=e.slice(2);"m"===t&&(n.push({rtp:[],fmtp:[]}),r=n[n.length-1]);for(var s=0;s<(a[t]||[]).length;s+=1){var c=a[t][s];if(c.reg.test(i))return o(c,r,i)}}),t.media=n,t};var c=function(e,t){var n=t.split(/=(.+)/,2);return 2===n.length&&(e[n[0]]=r(n[1])),e};t.parseParams=function(e){return e.split(/\;\s?/).reduce(c,{})},t.parseFmtpConfig=t.parseParams,t.parsePayloads=function(e){return e.split(" ").map(Number)},t.parseRemoteCandidates=function(e){for(var t=[],n=e.split(" ").map(r),i=0;i<n.length;i+=3)t.push({component:n[i],ip:n[i+1],port:n[i+2]});return t},t.parseImageAttributes=function(e){return e.split(" ").map(function(e){return e.substring(1,e.length-1).split(",").reduce(c,{})})},t.parseSimulcastStreamList=function(e){return e.split(";").map(function(e){return e.split(",").map(function(e){var t,n=!1;return"~"!==e[0]?t=r(e):(t=r(e.substring(1,e.length)),n=!0),{scid:t,paused:n}})})}},function(e,t,n){var r=n(57),i=/%[sdv%]/g,o=function(e){var t=1,n=arguments,r=n.length;return e.replace(i,function(e){if(t>=r)return e;var i=n[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(i);case"%d":return Number(i);case"%v":return""}})},a=function(e,t,n){var r=t.format instanceof Function?t.format(t.push?n:n[t.name]):t.format,i=[e+"="+r];if(t.names)for(var a=0;a<t.names.length;a+=1){var s=t.names[a];t.name?i.push(n[t.name][s]):i.push(n[t.names[a]])}else i.push(n[t.name]);return o.apply(null,i)},s=["v","o","s","i","u","e","p","c","b","t","r","z","a"],c=["i","c","b","a"];e.exports=function(e,t){t=t||{},null==e.version&&(e.version=0),null==e.name&&(e.name=" "),e.media.forEach(function(e){null==e.payloads&&(e.payloads="")});var n=t.outerOrder||s,i=t.innerOrder||c,o=[];return n.forEach(function(t){r[t].forEach(function(n){n.name in e&&null!=e[n.name]?o.push(a(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach(function(e){o.push(a(t,n,e))})})}),e.media.forEach(function(e){o.push(a("m",r.m[0],e)),i.forEach(function(t){r[t].forEach(function(n){n.name in e&&null!=e[n.name]?o.push(a(t,n,e)):n.push in e&&null!=e[n.push]&&e[n.push].forEach(function(e){o.push(a(t,n,e))})})})}),o.join("\r\n")+"\r\n"}},function(e,t,n){(function(e,t){!function(e,n){"use strict";function r(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var r={callback:e,args:t};return u[c]=r,s(c),c++}function i(e){delete u[e]}function o(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}function a(e){if(l)setTimeout(a,0,e);else{var t=u[e];if(t){l=!0;try{o(t)}finally{i(e),l=!1}}}}if(!e.setImmediate){var s,c=1,u={},l=!1,d=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?function(){s=function(e){t.nextTick(function(){a(e)})}}():function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&a(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),s=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){a(e.data)},s=function(t){e.port2.postMessage(t)}}():d&&"onreadystatechange"in d.createElement("script")?function(){var e=d.documentElement;s=function(t){var n=d.createElement("script");n.onreadystatechange=function(){a(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():function(){s=function(e){setTimeout(a,0,e)}}(),p.setImmediate=r,p.clearImmediate=i}}("undefined"==typeof self?void 0===e?this:e:self)}).call(t,n(2),n(56))},function(e,t,n){function r(e,t){this._id=e,this._clearFn=t}var i=Function.prototype.apply;t.setTimeout=function(){return new r(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new r(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(146),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t){function n(e,t){var n=[];t=t||0;for(var r=t||0;r<e.length;r++)n[r-t]=e[r];return n}e.exports=n},function(e,t,n){(function(e,r){var i,o="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof e};!function(a){function s(e){for(var t,n,r=[],i=0,o=e.length;i<o;)t=e.charCodeAt(i++),t>=55296&&t<=56319&&i<o?(n=e.charCodeAt(i++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--)):r.push(t);return r}function c(e){for(var t,n=e.length,r=-1,i="";++r<n;)t=e[r],t>65535&&(t-=65536,i+=T(t>>>10&1023|55296),t=56320|1023&t),i+=T(t);return i}function u(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function l(e,t){return T(e>>t&63|128)}function d(e){if(0==(4294967168&e))return T(e);var t="";return 0==(4294965248&e)?t=T(e>>6&31|192):0==(4294901760&e)?(u(e),t=T(e>>12&15|224),t+=l(e,6)):0==(4292870144&e)&&(t=T(e>>18&7|240),t+=l(e,12),t+=l(e,6)),t+=T(63&e|128)}function p(e){for(var t,n=s(e),r=n.length,i=-1,o="";++i<r;)t=n[i],o+=d(t);return o}function f(){if(E>=S)throw Error("Invalid byte index");var e=255&b[E];if(E++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function h(){var e,t,n,r,i;if(E>S)throw Error("Invalid byte index");if(E==S)return!1;if(e=255&b[E],E++,0==(128&e))return e;if(192==(224&e)){var t=f();if((i=(31&e)<<6|t)>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&e)){if(t=f(),n=f(),(i=(15&e)<<12|t<<6|n)>=2048)return u(i),i;throw Error("Invalid continuation byte")}if(240==(248&e)&&(t=f(),n=f(),r=f(),(i=(15&e)<<18|t<<12|n<<6|r)>=65536&&i<=1114111))return i;throw Error("Invalid UTF-8 detected")}function m(e){b=s(e),S=b.length,E=0;for(var t,n=[];!1!==(t=h());)n.push(t);return c(n)}var v="object"==o(t)&&t,y="object"==o(e)&&e&&e.exports==v&&e,g="object"==(void 0===r?"undefined":o(r))&&r;g.global!==g&&g.window!==g||(a=g);var b,S,E,T=String.fromCharCode,_={version:"2.0.0",encode:p,decode:m};if("object"==o(n(25))&&n(25))void 0!==(i=function(){return _}.call(t,n,t,e))&&(e.exports=i);else if(v&&!v.nodeType)if(y)y.exports=_;else{var C={},w=C.hasOwnProperty;for(var R in _)w.call(_,R)&&(v[R]=_[R])}else a.utf8=_}(this)}).call(t,n(58)(e),n(2))},function(e,t,n){e.exports={EventTarget:n(152),Event:n(151)}},function(e,t,n){(function(t){e.exports=t.Event}).call(t,n(2))},function(e,t){function n(){this._listeners={}}Object.defineProperties(n.prototype,{listeners:{get:function(){return this._listeners}}}),n.prototype.addEventListener=function(e,t){var n,r,i;if(e&&t){for(n=this._listeners[e],void 0===n&&(this._listeners[e]=n=[]),r=0;i=n[r];r++)if(i===t)return;n.push(t)}},n.prototype.removeEventListener=function(e,t){var n,r,i;if(e&&t&&void 0!==(n=this._listeners[e])){for(r=0;i=n[r];r++)if(i===t){n.splice(r,1);break}0===n.length&&delete this._listeners[e]}},n.prototype.dispatchEvent=function(e){var t,n,r,i,o,a=!1;if(!e||"string"!=typeof e.type)throw new Error("`event` must have a valid `type` property");e._yaeti&&(e.target=this,e.cancelable=!0);try{e.stopImmediatePropagation=function(){a=!0}}catch(e){}if(t=e.type,n=this._listeners[t]||[],"function"==typeof(r=this["on"+t]))try{r.call(this,e)}catch(e){console.error(e)}for(i=0;(o=n[i])&&!a;i++)try{o.call(this,e)}catch(e){console.error(e)}return!e.defaultPrevented},e.exports=n},function(e,t){function n(e,t,n){function i(e,r){if(i.count<=0)throw new Error("after called too many times");--i.count,e?(o=!0,t(e),t=n):0!==i.count||o||t(null,r)}var o=!1;return n=n||r,i.count=e,0===e?t():i}function r(){}e.exports=n},function(e,t){!function(e){"use strict";t.encode=function(t){var n,r=new Uint8Array(t),i=r.length,o="";for(n=0;n<i;n+=3)o+=e[r[n]>>2],o+=e[(3&r[n])<<4|r[n+1]>>4],o+=e[(15&r[n+1])<<2|r[n+2]>>6],o+=e[63&r[n+2]];return i%3==2?o=o.substring(0,o.length-1)+"=":i%3==1&&(o=o.substring(0,o.length-2)+"=="),o},t.decode=function(t){var n,r,i,o,a,s=.75*t.length,c=t.length,u=0;"="===t[t.length-1]&&(s--,"="===t[t.length-2]&&s--);var l=new ArrayBuffer(s),d=new Uint8Array(l);for(n=0;n<c;n+=4)r=e.indexOf(t[n]),i=e.indexOf(t[n+1]),o=e.indexOf(t[n+2]),a=e.indexOf(t[n+3]),d[u++]=r<<2|i>>4,d[u++]=(15&i)<<4|o>>2,d[u++]=(3&o)<<6|63&a;return l}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},function(e,t,n){function r(){return t.colors[l++%t.colors.length]}function i(e){function n(){}function i(){var e=i,n=+new Date,o=n-(u||n);e.diff=o,e.prev=u,e.curr=n,u=n,null==e.useColors&&(e.useColors=t.useColors()),null==e.color&&e.useColors&&(e.color=r());var a=Array.prototype.slice.call(arguments);a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&(a=["%o"].concat(a));var s=0;a[0]=a[0].replace(/%([a-z%])/g,function(n,r){if("%%"===n)return n;s++;var i=t.formatters[r];if("function"==typeof i){var o=a[s];n=i.call(e,o),a.splice(s,1),s--}return n}),"function"==typeof t.formatArgs&&(a=t.formatArgs.apply(e,a)),(i.log||t.log||console.log.bind(console)).apply(e,a)}n.enabled=!1,i.enabled=!0;var o=t.enabled(e)?i:n;return o.namespace=e,o}function o(e){t.save(e);for(var n=(e||"").split(/[\s,]+/),r=n.length,i=0;i<r;i++)n[i]&&(e=n[i].replace(/\*/g,".*?"),"-"===e[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))}function a(){t.enable("")}function s(e){var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}t=e.exports=i,t.coerce=c,t.disable=a,t.enable=o,t.enabled=s,t.humanize=n(164),t.names=[],t.skips=[],t.formatters={};var u,l=0},function(e,t,n){e.exports=n(157)},function(e,t,n){e.exports=n(158),e.exports.parser=n(18)},function(e,t,n){(function(t){function r(e,n){if(!(this instanceof r))return new r(e,n);n=n||{},e&&"object"==typeof e&&(n=e,e=null),e?(e=l(e),n.hostname=e.host,n.secure="https"==e.protocol||"wss"==e.protocol,n.port=e.port,e.query&&(n.query=e.query)):n.host&&(n.hostname=l(n.host).host),this.secure=null!=n.secure?n.secure:t.location&&"https:"==location.protocol,n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||(t.location?location.hostname:"localhost"),this.port=n.port||(t.location&&location.port?location.port:this.secure?443:80),this.query=n.query||{},"string"==typeof this.query&&(this.query=p.decode(this.query)),this.upgrade=!1!==n.upgrade,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=!1!==n.jsonp,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=!1!==n.perMessageDeflate&&(n.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||null,this.key=n.key||null,this.passphrase=n.passphrase||null,this.cert=n.cert||null,this.ca=n.ca||null,this.ciphers=n.ciphers||null,this.rejectUnauthorized=void 0===n.rejectUnauthorized?null:n.rejectUnauthorized;var i="object"==typeof t&&t;i.global===i&&n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),this.open()}function i(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var o=n(61),a=n(36),s=n(9)("engine.io-client:socket"),c=n(41),u=n(18),l=n(63),d=n(165),p=n(38);e.exports=r,r.priorWebsocketSuccess=!1,a(r.prototype),r.protocol=u.protocol,r.Socket=r,r.Transport=n(34),r.transports=n(61),r.parser=n(18),r.prototype.createTransport=function(e){s('creating transport "%s"',e);var t=i(this.query);return t.EIO=u.protocol,t.transport=e,this.id&&(t.sid=this.id),new o[e]({agent:this.agent,hostname:this.hostname,port:this.port,secure:this.secure,path:this.path,query:t,forceJSONP:this.forceJSONP,jsonp:this.jsonp,forceBase64:this.forceBase64,enablesXDR:this.enablesXDR,timestampRequests:this.timestampRequests,timestampParam:this.timestampParam,policyPort:this.policyPort,socket:this,pfx:this.pfx,key:this.key,passphrase:this.passphrase,cert:this.cert,ca:this.ca,ciphers:this.ciphers,rejectUnauthorized:this.rejectUnauthorized,perMessageDeflate:this.perMessageDeflate,extraHeaders:this.extraHeaders})},r.prototype.open=function(){var e;if(this.rememberUpgrade&&r.priorWebsocketSuccess&&-1!=this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout(function(){t.emit("error","No transports available")},0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},r.prototype.setTransport=function(e){s("setting transport %s",e.name);var t=this;this.transport&&(s("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){t.onDrain()}).on("packet",function(e){t.onPacket(e)}).on("error",function(e){t.onError(e)}).on("close",function(){t.onClose("transport close")})},r.prototype.probe=function(e){function t(){if(p.onlyBinaryUpgrades){var t=!this.supportsBinary&&p.transport.supportsBinary;d=d||t}d||(s('probe transport "%s" opened',e),l.send([{type:"ping",data:"probe"}]),l.once("packet",function(t){if(!d)if("pong"==t.type&&"probe"==t.data){if(s('probe transport "%s" pong',e),p.upgrading=!0,p.emit("upgrading",l),!l)return;r.priorWebsocketSuccess="websocket"==l.name,s('pausing current transport "%s"',p.transport.name),p.transport.pause(function(){d||"closed"!=p.readyState&&(s("changing transport and sending upgrade packet"),u(),p.setTransport(l),l.send([{type:"upgrade"}]),p.emit("upgrade",l),l=null,p.upgrading=!1,p.flush())})}else{s('probe transport "%s" failed',e);var n=new Error("probe error");n.transport=l.name,p.emit("upgradeError",n)}}))}function n(){d||(d=!0,u(),l.close(),l=null)}function i(t){var r=new Error("probe error: "+t);r.transport=l.name,n(),s('probe transport "%s" failed because of error: %s',e,t),p.emit("upgradeError",r)}function o(){i("transport closed")}function a(){i("socket closed")}function c(e){l&&e.name!=l.name&&(s('"%s" works - aborting "%s"',e.name,l.name),n())}function u(){l.removeListener("open",t),l.removeListener("error",i),l.removeListener("close",o),p.removeListener("close",a),p.removeListener("upgrading",c)}s('probing transport "%s"',e);var l=this.createTransport(e,{probe:1}),d=!1,p=this;r.priorWebsocketSuccess=!1,l.once("open",t),l.once("error",i),l.once("close",o),this.once("close",a),this.once("upgrading",c),l.open()},r.prototype.onOpen=function(){if(s("socket open"),this.readyState="open",r.priorWebsocketSuccess="websocket"==this.transport.name,this.emit("open"),this.flush(),"open"==this.readyState&&this.upgrade&&this.transport.pause){s("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},r.prototype.onPacket=function(e){if("opening"==this.readyState||"open"==this.readyState)switch(s('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(d(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else s('packet received with socket readyState "%s"',this.readyState)},r.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!=this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},r.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout(function(){"closed"!=t.readyState&&t.onClose("ping timeout")},e||t.pingInterval+t.pingTimeout)},r.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){s("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},r.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})},r.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},r.prototype.flush=function(){"closed"!=this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(s("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},r.prototype.write=r.prototype.send=function(e,t,n){return this.sendPacket("message",e,t,n),this},r.prototype.sendPacket=function(e,t,n,r){if("function"==typeof t&&(r=t,t=void 0),"function"==typeof n&&(r=n,n=null),"closing"!=this.readyState&&"closed"!=this.readyState){n=n||{},n.compress=!1!==n.compress;var i={type:e,data:t,
options:n};this.emit("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}},r.prototype.close=function(){function e(){r.onClose("forced close"),s("socket closing - telling transport to close"),r.transport.close()}function t(){r.removeListener("upgrade",t),r.removeListener("upgradeError",t),e()}function n(){r.once("upgrade",t),r.once("upgradeError",t)}if("opening"==this.readyState||"open"==this.readyState){this.readyState="closing";var r=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?n():e()}):this.upgrading?n():e()}return this},r.prototype.onError=function(e){s("socket error %j",e),r.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},r.prototype.onClose=function(e,t){if("opening"==this.readyState||"open"==this.readyState||"closing"==this.readyState){s('socket close with reason: "%s"',e);var n=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),n.writeBuffer=[],n.prevBufferLen=0}},r.prototype.filterUpgrades=function(e){for(var t=[],n=0,r=e.length;n<r;n++)~c(this.transports,e[n])&&t.push(e[n]);return t}}).call(t,n(2))},function(e,t,n){(function(t){function r(){}function i(e){o.call(this,e),this.query=this.query||{},s||(t.___eio||(t.___eio=[]),s=t.___eio),this.index=s.length;var n=this;s.push(function(e){n.onData(e)}),this.query.j=this.index,t.document&&t.addEventListener&&t.addEventListener("beforeunload",function(){n.script&&(n.script.onerror=r)},!1)}var o=n(62),a=n(21);e.exports=i;var s,c=/\n/g,u=/\\n/g;a(i,o),i.prototype.supportsBinary=!1,i.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),o.prototype.doClose.call(this)},i.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)},100)},i.prototype.doWrite=function(e,t){function n(){r(),t()}function r(){if(i.iframe)try{i.form.removeChild(i.iframe)}catch(e){i.onError("jsonp polling iframe removal error",e)}try{var e='<iframe src="javascript:0" name="'+i.iframeId+'">';o=document.createElement(e)}catch(e){o=document.createElement("iframe"),o.name=i.iframeId,o.src="javascript:0"}o.id=i.iframeId,i.form.appendChild(o),i.iframe=o}var i=this;if(!this.form){var o,a=document.createElement("form"),s=document.createElement("textarea"),l=this.iframeId="eio_iframe_"+this.index;a.className="socketio",a.style.position="absolute",a.style.top="-1000px",a.style.left="-1000px",a.target=l,a.method="POST",a.setAttribute("accept-charset","utf-8"),s.name="d",a.appendChild(s),document.body.appendChild(a),this.form=a,this.area=s}this.form.action=this.uri(),r(),e=e.replace(u,"\\\n"),this.area.value=e.replace(c,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"==i.iframe.readyState&&n()}:this.iframe.onload=n}}).call(t,n(2))},function(e,t,n){(function(t){function r(){}function i(e){if(c.call(this,e),t.location){var n="https:"==location.protocol,r=location.port;r||(r=n?443:80),this.xd=e.hostname!=t.location.hostname||r!=e.port,this.xs=e.secure!=n}else this.extraHeaders=e.extraHeaders}function o(e){this.method=e.method||"GET",this.uri=e.uri,this.xd=!!e.xd,this.xs=!!e.xs,this.async=!1!==e.async,this.data=void 0!=e.data?e.data:null,this.agent=e.agent,this.isBinary=e.isBinary,this.supportsBinary=e.supportsBinary,this.enablesXDR=e.enablesXDR,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.extraHeaders=e.extraHeaders,this.create()}function a(){for(var e in o.requests)o.requests.hasOwnProperty(e)&&o.requests[e].abort()}var s=n(35),c=n(62),u=n(36),l=n(21),d=n(9)("engine.io-client:polling-xhr");e.exports=i,e.exports.Request=o,l(i,c),i.prototype.supportsBinary=!0,i.prototype.request=function(e){return e=e||{},e.uri=this.uri(),e.xd=this.xd,e.xs=this.xs,e.agent=this.agent||!1,e.supportsBinary=this.supportsBinary,e.enablesXDR=this.enablesXDR,e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized,e.extraHeaders=this.extraHeaders,new o(e)},i.prototype.doWrite=function(e,t){var n="string"!=typeof e&&void 0!==e,r=this.request({method:"POST",data:e,isBinary:n}),i=this;r.on("success",t),r.on("error",function(e){i.onError("xhr post error",e)}),this.sendXhr=r},i.prototype.doPoll=function(){d("xhr poll");var e=this.request(),t=this;e.on("data",function(e){t.onData(e)}),e.on("error",function(e){t.onError("xhr poll error",e)}),this.pollXhr=e},u(o.prototype),o.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var n=this.xhr=new s(e),r=this;try{d("xhr open %s: %s",this.method,this.uri),n.open(this.method,this.uri,this.async);try{if(this.extraHeaders){n.setDisableHeaderCheck(!0);for(var i in this.extraHeaders)this.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.extraHeaders[i])}}catch(e){}if(this.supportsBinary&&(n.responseType="arraybuffer"),"POST"==this.method)try{this.isBinary?n.setRequestHeader("Content-type","application/octet-stream"):n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}"withCredentials"in n&&(n.withCredentials=!0),this.hasXDR()?(n.onload=function(){r.onLoad()},n.onerror=function(){r.onError(n.responseText)}):n.onreadystatechange=function(){4==n.readyState&&(200==n.status||1223==n.status?r.onLoad():setTimeout(function(){r.onError(n.status)},0))},d("xhr data %s",this.data),n.send(this.data)}catch(e){return void setTimeout(function(){r.onError(e)},0)}t.document&&(this.index=o.requestsCount++,o.requests[this.index]=this)},o.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},o.prototype.onData=function(e){this.emit("data",e),this.onSuccess()},o.prototype.onError=function(e){this.emit("error",e),this.cleanup(!0)},o.prototype.cleanup=function(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=r:this.xhr.onreadystatechange=r,e)try{this.xhr.abort()}catch(e){}t.document&&delete o.requests[this.index],this.xhr=null}},o.prototype.onLoad=function(){var e;try{var t;try{t=this.xhr.getResponseHeader("Content-Type").split(";")[0]}catch(e){}if("application/octet-stream"===t)e=this.xhr.response;else if(this.supportsBinary)try{e=String.fromCharCode.apply(null,new Uint8Array(this.xhr.response))}catch(t){for(var n=new Uint8Array(this.xhr.response),r=[],i=0,o=n.length;i<o;i++)r.push(n[i]);e=String.fromCharCode.apply(null,r)}else e=this.xhr.responseText}catch(e){this.onError(e)}null!=e&&this.onData(e)},o.prototype.hasXDR=function(){return void 0!==t.XDomainRequest&&!this.xs&&this.enablesXDR},o.prototype.abort=function(){this.cleanup()},t.document&&(o.requestsCount=0,o.requests={},t.attachEvent?t.attachEvent("onunload",a):t.addEventListener&&t.addEventListener("beforeunload",a,!1))}).call(t,n(2))},function(e,t,n){(function(t){function r(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,i.call(this,e)}var i=n(34),o=n(18),a=n(38),s=n(21),c=n(59),u=n(9)("engine.io-client:websocket"),l=t.WebSocket||t.MozWebSocket,d=l;if(!d&&"undefined"==typeof window)try{d=n(170)}catch(e){}e.exports=r,s(r,i),r.prototype.name="websocket",r.prototype.supportsBinary=!0,r.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t={agent:this.agent,perMessageDeflate:this.perMessageDeflate};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(t.headers=this.extraHeaders),this.ws=l?new d(e):new d(e,void 0,t),void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="buffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},r.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},"undefined"!=typeof navigator&&/iPad|iPhone|iPod/i.test(navigator.userAgent)&&(r.prototype.onData=function(e){var t=this;setTimeout(function(){i.prototype.onData.call(t,e)},0)}),r.prototype.write=function(e){function n(){r.emit("flush"),setTimeout(function(){r.writable=!0,r.emit("drain")},0)}var r=this;this.writable=!1;for(var i=e.length,a=0,s=i;a<s;a++)!function(e){o.encodePacket(e,r.supportsBinary,function(o){if(!l){var a={};e.options&&(a.compress=e.options.compress),r.perMessageDeflate&&("string"==typeof o?t.Buffer.byteLength(o):o.length)<r.perMessageDeflate.threshold&&(a.compress=!1)}try{l?r.ws.send(o):r.ws.send(o,a)}catch(e){u("websocket closed before onclose event")}--i||n()})}(e[a])},r.prototype.onClose=function(){i.prototype.onClose.call(this)},r.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},r.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",n="";return this.port&&("wss"==t&&443!=this.port||"ws"==t&&80!=this.port)&&(n=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=c()),this.supportsBinary||(e.b64=1),e=a.encode(e),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e},r.prototype.check=function(){return!(!d||"__initialize"in d&&this.name===r.prototype.name)}}).call(t,n(2))},function(e,t){e.exports=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var r in e)n.call(e,r)&&t.push(r);return t}},function(e,t,n){(function(t){function r(e){function n(e){if(!e)return!1;if(t.Buffer&&t.Buffer.isBuffer(e)||t.ArrayBuffer&&e instanceof ArrayBuffer||t.Blob&&e instanceof Blob||t.File&&e instanceof File)return!0;if(i(e)){for(var r=0;r<e.length;r++)if(n(e[r]))return!0}else if(e&&"object"==typeof e){e.toJSON&&(e=e.toJSON());for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&n(e[o]))return!0}return!1}return n(e)}var i=n(37);e.exports=r}).call(t,n(2))},function(e,t){function n(e){if(e=""+e,!(e.length>1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*u;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function r(e){return e>=u?Math.round(e/u)+"d":e>=c?Math.round(e/c)+"h":e>=s?Math.round(e/s)+"m":e>=a?Math.round(e/a)+"s":e+"ms"}function i(e){return o(e,u,"day")||o(e,c,"hour")||o(e,s,"minute")||o(e,a,"second")||e+" ms"}function o(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var a=1e3,s=60*a,c=60*s,u=24*c,l=365.25*u;e.exports=function(e,t){return t=t||{},"string"==typeof e?n(e):t.long?i(e):r(e)}},function(e,t,n){(function(t){var n=/^[\],:{}\s]*$/,r=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,i=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,o=/(?:^|:|,)(?:\s*\[)+/g,a=/^\s+/,s=/\s+$/;e.exports=function(e){return"string"==typeof e&&e?(e=e.replace(a,"").replace(s,""),t.JSON&&JSON.parse?JSON.parse(e):n.test(e.replace(r,"@").replace(i,"]").replace(o,""))?new Function("return "+e)():void 0):null}}).call(t,n(2))},function(e,t,n){function r(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r=i(e),o=r.source,u=r.id,l=r.path,d=c[u]&&l in c[u].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||d?(s("ignoring socket cache for %s",o),n=a(o,t)):(c[u]||(s("new io instance for %s",o),c[u]=a(o,t)),n=c[u]),n.socket(r.path)}var i=n(167),o=n(39),a=n(64),s=n(9)("socket.io-client");e.exports=t=r;var c=t.managers={};t.protocol=o.protocol,t.connect=r,t.Manager=n(64),t.Socket=n(66)},function(e,t,n){(function(t){function r(e,n){var r=e,n=n||t.location;null==e&&(e=n.protocol+"//"+n.host),"string"==typeof e&&("/"==e.charAt(0)&&(e="/"==e.charAt(1)?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(o("protocol-less url %s",e),e=void 0!==n?n.protocol+"//"+e:"https://"+e),o("parse %s",e),r=i(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var a=-1!==r.host.indexOf(":"),s=a?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+s+":"+r.port,r.href=r.protocol+"://"+s+(n&&n.port==r.port?"":":"+r.port),r}var i=n(63),o=n(9)("socket.io-client:url");e.exports=r}).call(t,n(2))},function(e,t,n){(function(e){var r=n(37),i=n(67);t.deconstructPacket=function(e){function t(e){if(!e)return e;if(i(e)){var o={_placeholder:!0,num:n.length};return n.push(e),o}if(r(e)){for(var a=new Array(e.length),s=0;s<e.length;s++)a[s]=t(e[s]);return a}if("object"==typeof e&&!(e instanceof Date)){var a={};for(var c in e)a[c]=t(e[c]);return a}return e}var n=[],o=e.data,a=e;return a.data=t(o),a.attachments=n.length,{packet:a,buffers:n}},t.reconstructPacket=function(e,t){function n(e){if(e&&e._placeholder)return t[e.num];if(r(e)){for(var i=0;i<e.length;i++)e[i]=n(e[i]);return e}if(e&&"object"==typeof e){for(var o in e)e[o]=n(e[o]);return e}return e}return e.data=n(e.data),e.attachments=void 0,e},t.removeBlobs=function(t,n){function o(t,c,u){if(!t)return t;if(e.Blob&&t instanceof Blob||e.File&&t instanceof File){a++;var l=new FileReader;l.onload=function(){u?u[c]=this.result:s=this.result,--a||n(s)},l.readAsArrayBuffer(t)}else if(r(t))for(var d=0;d<t.length;d++)o(t[d],d,t);else if(t&&"object"==typeof t&&!i(t))for(var p in t)o(t[p],p,t)}var a=0,s=t;o(s),a||n(s)}}).call(t,n(2))},function(e,t){function n(e){if(e)return r(e)}function r(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}e.exports=n,n.prototype.on=n.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[e]=this._callbacks[e]||[]).push(t),this},n.prototype.once=function(e,t){function n(){r.off(e,n),t.apply(this,arguments)}var r=this;return this._callbacks=this._callbacks||{},n.fn=t,this.on(e,n),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1==arguments.length)return delete this._callbacks[e],this;for(var r,i=0;i<n.length;i++)if((r=n[i])===t||r.fn===t){n.splice(i,1);break}return this},n.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),n=this._callbacks[e];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},n.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[e]||[]},n.prototype.hasListeners=function(e){return!!this.listeners(e).length}},function(e,t){}])})},450);
__d(function(e,t,n,r){!function(e,t){"object"==typeof n&&"object"==typeof n.exports?n.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t="length"in e&&e.length,n=K.type(e);return"function"!==n&&!K.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e))}function r(e,t,n){if(K.isFunction(t))return K.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return K.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(se.test(t))return K.filter(t,e,n);t=K.filter(t,e)}return K.grep(e,function(e){return U.call(t,e)>=0!==n})}function i(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function o(e){var t=pe[e]={};return K.each(e.match(fe)||[],function(e,n){t[n]=!0}),t}function s(){J.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1),K.ready()}function a(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=K.expando+a.uid++}function u(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ye,"-$1").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:ve.test(n)?K.parseJSON(n):n)}catch(e){}me.set(e,t,n)}else n=void 0;return n}function l(){return!0}function c(){return!1}function f(){try{return J.activeElement}catch(e){}}function p(e,t){return K.nodeName(e,"table")&&K.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function d(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function h(e){var t=He.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function g(e,t){for(var n=0,r=e.length;n<r;n++)ge.set(e[n],"globalEval",!t||ge.get(t[n],"globalEval"))}function m(e,t){var n,r,i,o,s,a,u,l;if(1===t.nodeType){if(ge.hasData(e)&&(o=ge.access(e),s=ge.set(t,o),l=o.events)){delete s.handle,s.events={};for(i in l)for(n=0,r=l[i].length;n<r;n++)K.event.add(t,i,l[i][n])}me.hasData(e)&&(a=me.access(e),u=K.extend({},a),me.set(t,u))}}function v(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&K.nodeName(e,t)?K.merge([e],n):n}function y(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Te.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function x(t,n){var r,i=K(n.createElement(t)).appendTo(n.body),o=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(i[0]))?r.display:K.css(i[0],"display");return i.detach(),o}function b(e){var t=J,n=Re[e];return n||(n=x(e,t),"none"!==n&&n||(Pe=(Pe||K("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=Pe[0].contentDocument,t.write(),t.close(),n=x(e,t),Pe.detach()),Re[e]=n),n}function w(e,t,n){var r,i,o,s,a=e.style;return n=n||$e(e),n&&(s=n.getPropertyValue(t)||n[t]),n&&(""!==s||K.contains(e.ownerDocument,e)||(s=K.style(e,t)),We.test(s)&&Me.test(t)&&(r=a.width,i=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=r,a.minWidth=i,a.maxWidth=o)),void 0!==s?s+"":s}function T(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function C(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),r=t,i=Ue.length;i--;)if((t=Ue[i]+n)in e)return t;return r}function N(e,t,n){var r=Be.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function k(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,s=0;o<4;o+=2)"margin"===n&&(s+=K.css(e,n+be[o],!0,i)),r?("content"===n&&(s-=K.css(e,"padding"+be[o],!0,i)),"margin"!==n&&(s-=K.css(e,"border"+be[o]+"Width",!0,i))):(s+=K.css(e,"padding"+be[o],!0,i),"padding"!==n&&(s+=K.css(e,"border"+be[o]+"Width",!0,i)));return s}function E(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,o=$e(e),s="border-box"===K.css(e,"boxSizing",!1,o);if(i<=0||null==i){if(i=w(e,t,o),(i<0||null==i)&&(i=e.style[t]),We.test(i))return i;r=s&&(Q.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+k(e,t,n||(s?"border":"content"),r,o)+"px"}function S(e,t){for(var n,r,i,o=[],s=0,a=e.length;s<a;s++)r=e[s],r.style&&(o[s]=ge.get(r,"olddisplay"),n=r.style.display,t?(o[s]||"none"!==n||(r.style.display=""),""===r.style.display&&we(r)&&(o[s]=ge.access(r,"olddisplay",b(r.nodeName)))):(i=we(r),"none"===n&&i||ge.set(r,"olddisplay",i?n:K.css(r,"display"))));for(s=0;s<a;s++)r=e[s],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[s]||"":"none"));return e}function D(e,t,n,r,i){return new D.prototype.init(e,t,n,r,i)}function j(){return setTimeout(function(){Ve=void 0}),Ve=K.now()}function A(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)n=be[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function L(e,t,n){for(var r,i=(Ze[t]||[]).concat(Ze["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function q(e,t,n){var r,i,o,s,a,u,l,c=this,f={},p=e.style,d=e.nodeType&&we(e),h=ge.get(e,"fxshow");n.queue||(a=K._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,u=a.empty.fire,a.empty.fire=function(){a.unqueued||u()}),a.unqueued++,c.always(function(){c.always(function(){a.unqueued--,K.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],l=K.css(e,"display"),"inline"===("none"===l?ge.get(e,"olddisplay")||b(e.nodeName):l)&&"none"===K.css(e,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",c.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],Ge.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(d?"hide":"show")){if("show"!==i||!h||void 0===h[r])continue;d=!0}f[r]=h&&h[r]||K.style(e,r)}else l=void 0;if(K.isEmptyObject(f))"inline"===("none"===l?b(e.nodeName):l)&&(p.display=l);else{h?"hidden"in h&&(d=h.hidden):h=ge.access(e,"fxshow",{}),o&&(h.hidden=!d),d?K(e).show():c.done(function(){K(e).hide()}),c.done(function(){var t;ge.remove(e,"fxshow");for(t in f)K.style(e,t,f[t])});for(r in f)s=L(d?h[r]:0,r,c),r in h||(h[r]=s.start,d&&(s.end=s.start,s.start="width"===r||"height"===r?1:0))}}function H(e,t){var n,r,i,o,s;for(n in e)if(r=K.camelCase(n),i=t[r],o=e[n],K.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=K.cssHooks[r])&&"expand"in s){o=s.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function O(e,t,n){var r,i,o=0,s=Ke.length,a=K.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=Ve||j(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,s=0,u=l.tweens.length;s<u;s++)l.tweens[s].run(o);return a.notifyWith(e,[l,o,n]),o<1&&u?n:(a.resolveWith(e,[l]),!1)},l=a.promise({elem:e,props:K.extend({},t),opts:K.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Ve||j(),duration:n.duration,tweens:[],createTween:function(t,n){var r=K.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?a.resolveWith(e,[l,t]):a.rejectWith(e,[l,t]),this}}),c=l.props;for(H(c,l.opts.specialEasing);o<s;o++)if(r=Ke[o].call(l,e,c,l.opts))return r;return K.map(c,L,l),K.isFunction(l.opts.start)&&l.opts.start.call(e,l),K.fx.timer(K.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function F(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(fe)||[];if(K.isFunction(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function P(e,t,n,r){function i(a){var u;return o[a]=!0,K.each(e[a]||[],function(e,a){var l=a(t,n,r);return"string"!=typeof l||s||o[l]?s?!(u=l):void 0:(t.dataTypes.unshift(l),i(l),!1)}),u}var o={},s=e===gt;return i(t.dataTypes[0])||!o["*"]&&i("*")}function R(e,t){var n,r,i=K.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&K.extend(!0,e,r),e}function M(e,t,n){for(var r,i,o,s,a=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==u[0]&&u.unshift(o),n[o]}function W(e,t,n,r){var i,o,s,a,u,l={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)l[s.toLowerCase()]=e.converters[s];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(s=l[u+" "+o]||l["* "+o]))for(i in l)if(a=i.split(" "),a[1]===o&&(s=l[u+" "+a[0]]||l["* "+a[0]])){!0===s?s=l[i]:!0!==l[i]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}function $(e,t,n,r){var i;if(K.isArray(t))K.each(t,function(t,i){n||bt.test(e)?r(e,i):$(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==K.type(t))r(e,t);else for(i in t)$(e+"["+i+"]",t[i],n,r)}function I(e){return K.isWindow(e)?e:9===e.nodeType&&e.defaultView}var B=[],_=B.slice,z=B.concat,X=B.push,U=B.indexOf,V={},Y=V.toString,G=V.hasOwnProperty,Q={},J=e.document,K=function e(t,n){return new e.fn.init(t,n)},Z=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ee=/^-ms-/,te=/-([\da-z])/gi,ne=function(e,t){return t.toUpperCase()};K.fn=K.prototype={jquery:"2.1.4",constructor:K,selector:"",length:0,toArray:function(){return _.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:_.call(this)},pushStack:function(e){var t=K.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return K.each(this,e,t)},map:function(e){return this.pushStack(K.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(_.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:X,sort:B.sort,splice:B.splice},K.extend=K.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,u=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||K.isFunction(s)||(s={}),a===u&&(s=this,a--);a<u;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],r=e[t],s!==r&&(l&&r&&(K.isPlainObject(r)||(i=K.isArray(r)))?(i?(i=!1,o=n&&K.isArray(n)?n:[]):o=n&&K.isPlainObject(n)?n:{},s[t]=K.extend(l,o,r)):void 0!==r&&(s[t]=r));return s},K.extend({expando:"jQuery"+("2.1.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===K.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!K.isArray(e)&&e-parseFloat(e)+1>=0},isPlainObject:function(e){return"object"===K.type(e)&&!e.nodeType&&!K.isWindow(e)&&!(e.constructor&&!G.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?V[Y.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=K.trim(e))&&(1===e.indexOf("use strict")?(t=J.createElement("script"),t.text=e,J.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(ee,"ms-").replace(te,ne)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,r){var i=0,o=e.length,s=n(e);if(r){if(s)for(;i<o&&!1!==t.apply(e[i],r);i++);else for(i in e)if(!1===t.apply(e[i],r))break}else if(s)for(;i<o&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(Z,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?K.merge(r,"string"==typeof e?[e]:e):X.call(r,e)),r},inArray:function(e,t,n){return null==t?-1:U.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,r){var i,o=0,s=e.length,a=n(e),u=[];if(a)for(;o<s;o++)null!=(i=t(e[o],o,r))&&u.push(i);else for(o in e)null!=(i=t(e[o],o,r))&&u.push(i);return z.apply([],u)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),K.isFunction(e))return r=_.call(arguments,2),i=function(){return e.apply(t||this,r.concat(_.call(arguments)))},i.guid=e.guid=e.guid||K.guid++,i},now:Date.now,support:Q}),K.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){V["[object "+t+"]"]=t.toLowerCase()});var re=function(e){function t(e,t,n,r){var i,o,s,a,l,f,p,d,h,g;if((t?t.ownerDocument||t:M)!==A&&j(t),t=t||A,n=n||[],a=t.nodeType,"string"!=typeof e||!e||1!==a&&9!==a&&11!==a)return n;if(!r&&q){if(11!==a&&(i=me.exec(e)))if(s=i[1]){if(9===a){if(!(o=t.getElementById(s))||!o.parentNode)return n;if(o.id===s)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(s))&&P(t,o)&&o.id===s)return n.push(o),n}else{if(i[2])return Q.apply(n,t.getElementsByTagName(e)),n;if((s=i[3])&&x.getElementsByClassName)return Q.apply(n,t.getElementsByClassName(s)),n}if(x.qsa&&(!H||!H.test(e))){if(d=p=R,h=t,g=1!==a&&e,1===a&&"object"!==t.nodeName.toLowerCase()){for(f=C(e),(p=t.getAttribute("id"))?d=p.replace(ye,"\\$&"):t.setAttribute("id",d),d="[id='"+d+"'] ",l=f.length;l--;)f[l]=d+c(f[l]);h=ve.test(e)&&u(t.parentNode)||t,g=f.join(",")}if(g)try{return Q.apply(n,h.querySelectorAll(g)),n}catch(e){}finally{p||t.removeAttribute("id")}}}return k(e.replace(se,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>b.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[R]=!0,e}function i(e){var t=A.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=e.length;r--;)b.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||X)-(~e.sourceIndex||X);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))})})}function u(e){return e&&void 0!==e.getElementsByTagName&&e}function l(){}function c(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function f(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=$++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,s){var a,u,l=[W,o];if(s){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,s))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if(u=t[R]||(t[R]={}),(a=u[r])&&a[0]===W&&a[1]===o)return l[2]=a[2];if(u[r]=l,l[2]=e(t,n,s))return!0}}}function p(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function d(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function h(e,t,n,r,i){for(var o,s=[],a=0,u=e.length,l=null!=t;a<u;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),l&&t.push(a)));return s}function g(e,t,n,i,o,s){return i&&!i[R]&&(i=g(i)),o&&!o[R]&&(o=g(o,s)),r(function(r,s,a,u){var l,c,f,p=[],g=[],m=s.length,v=r||d(t||"*",a.nodeType?[a]:a,[]),y=!e||!r&&t?v:h(v,p,e,a,u),x=n?o||(r?e:m||i)?[]:s:y;if(n&&n(y,x,a,u),i)for(l=h(x,g),i(l,[],a,u),c=l.length;c--;)(f=l[c])&&(x[g[c]]=!(y[g[c]]=f));if(r){if(o||e){if(o){for(l=[],c=x.length;c--;)(f=x[c])&&l.push(y[c]=f);o(null,x=[],l,u)}for(c=x.length;c--;)(f=x[c])&&(l=o?K(r,f):p[c])>-1&&(r[l]=!(s[l]=f))}}else x=h(x===s?x.splice(m,x.length):x),o?o(null,s,x,u):Q.apply(s,x)})}function m(e){for(var t,n,r,i=e.length,o=b.relative[e[0].type],s=o||b.relative[" "],a=o?1:0,u=f(function(e){return e===t},s,!0),l=f(function(e){return K(t,e)>-1},s,!0),d=[function(e,n,r){var i=!o&&(r||n!==E)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];a<i;a++)if(n=b.relative[e[a].type])d=[f(p(d),n)];else{if(n=b.filter[e[a].type].apply(null,e[a].matches),n[R]){for(r=++a;r<i&&!b.relative[e[r].type];r++);return g(a>1&&p(d),a>1&&c(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(se,"$1"),n,a<r&&m(e.slice(a,r)),r<i&&m(e=e.slice(r)),r<i&&c(e))}d.push(n)}return p(d)}function v(e,n){var i=n.length>0,o=e.length>0,s=function(r,s,a,u,l){var c,f,p,d=0,g="0",m=r&&[],v=[],y=E,x=r||o&&b.find.TAG("*",l),w=W+=null==y?1:Math.random()||.1,T=x.length;for(l&&(E=s!==A&&s);g!==T&&null!=(c=x[g]);g++){if(o&&c){for(f=0;p=e[f++];)if(p(c,s,a)){u.push(c);break}l&&(W=w)}i&&((c=!p&&c)&&d--,r&&m.push(c))}if(d+=g,i&&g!==d){for(f=0;p=n[f++];)p(m,v,s,a);if(r){if(d>0)for(;g--;)m[g]||v[g]||(v[g]=Y.call(u));v=h(v)}Q.apply(u,v),l&&!r&&v.length>0&&d+n.length>1&&t.uniqueSort(u)}return l&&(W=w,E=y),m};return i?r(s):s}var y,x,b,w,T,C,N,k,E,S,D,j,A,L,q,H,O,F,P,R="sizzle"+1*new Date,M=e.document,W=0,$=0,I=n(),B=n(),_=n(),z=function(e,t){return e===t&&(D=!0),0},X=-2147483648,U={}.hasOwnProperty,V=[],Y=V.pop,G=V.push,Q=V.push,J=V.slice,K=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ee="[\\x20\\t\\r\\n\\f]",te="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ne=te.replace("w","w#"),re="\\["+ee+"*("+te+")(?:"+ee+"*([*^$|!~]?=)"+ee+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ne+"))|)"+ee+"*\\]",ie=":("+te+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+re+")*)|.*)\\)|)",oe=new RegExp(ee+"+","g"),se=new RegExp("^"+ee+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ee+"+$","g"),ae=new RegExp("^"+ee+"*,"+ee+"*"),ue=new RegExp("^"+ee+"*([>+~]|"+ee+")"+ee+"*"),le=new RegExp("="+ee+"*([^\\]'\"]*?)"+ee+"*\\]","g"),ce=new RegExp(ie),fe=new RegExp("^"+ne+"$"),pe={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),TAG:new RegExp("^("+te.replace("w","w*")+")"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+ie),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},de=/^(?:input|select|textarea|button)$/i,he=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,me=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,ye=/'|\\/g,xe=new RegExp("\\\\([\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),be=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},we=function(){j()};try{Q.apply(V=J.call(M.childNodes),M.childNodes),V[M.childNodes.length].nodeType}catch(e){Q={apply:V.length?function(e,t){G.apply(e,J.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}x=t.support={},T=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},j=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:M;return r!==A&&9===r.nodeType&&r.documentElement?(A=r,L=r.documentElement,n=r.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",we,!1):n.attachEvent&&n.attachEvent("onunload",we)),q=!T(r),x.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),x.getElementsByTagName=i(function(e){return e.appendChild(r.createComment("")),!e.getElementsByTagName("*").length}),x.getElementsByClassName=ge.test(r.getElementsByClassName),x.getById=i(function(e){return L.appendChild(e).id=R,!r.getElementsByName||!r.getElementsByName(R).length}),x.getById?(b.find.ID=function(e,t){if(void 0!==t.getElementById&&q){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},b.filter.ID=function(e){var t=e.replace(xe,be);return function(e){return e.getAttribute("id")===t}}):(delete b.find.ID,b.filter.ID=function(e){var t=e.replace(xe,be);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),b.find.TAG=x.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):x.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=x.getElementsByClassName&&function(e,t){if(q)return t.getElementsByClassName(e)},O=[],H=[],(x.qsa=ge.test(r.querySelectorAll))&&(i(function(e){L.appendChild(e).innerHTML="<a id='"+R+"'></a><select id='"+R+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&H.push("[*^$]="+ee+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||H.push("\\["+ee+"*(?:value|"+Z+")"),e.querySelectorAll("[id~="+R+"-]").length||H.push("~="),e.querySelectorAll(":checked").length||H.push(":checked"),e.querySelectorAll("a#"+R+"+*").length||H.push(".#.+[+~]")}),i(function(e){var t=r.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&H.push("name"+ee+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||H.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),H.push(",.*:")})),(x.matchesSelector=ge.test(F=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&i(function(e){x.disconnectedMatch=F.call(e,"div"),F.call(e,"[s!='']:x"),O.push("!=",ie)}),H=H.length&&new RegExp(H.join("|")),O=O.length&&new RegExp(O.join("|")),t=ge.test(L.compareDocumentPosition),P=t||ge.test(L.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},z=t?function(e,t){if(e===t)return D=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!x.sortDetached&&t.compareDocumentPosition(e)===n?e===r||e.ownerDocument===M&&P(M,e)?-1:t===r||t.ownerDocument===M&&P(M,t)?1:S?K(S,e)-K(S,t):0:4&n?-1:1)}:function(e,t){if(e===t)return D=!0,0;var n,i=0,o=e.parentNode,a=t.parentNode,u=[e],l=[t];if(!o||!a)return e===r?-1:t===r?1:o?-1:a?1:S?K(S,e)-K(S,t):0;if(o===a)return s(e,t);for(n=e;n=n.parentNode;)u.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;u[i]===l[i];)i++;return i?s(u[i],l[i]):u[i]===M?-1:l[i]===M?1:0},r):A},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==A&&j(e),n=n.replace(le,"='$1']"),x.matchesSelector&&q&&(!O||!O.test(n))&&(!H||!H.test(n)))try{var r=F.call(e,n);if(r||x.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return t(n,A,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==A&&j(e),P(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==A&&j(e);var n=b.attrHandle[t.toLowerCase()],r=n&&U.call(b.attrHandle,t.toLowerCase())?n(e,t,!q):void 0;return void 0!==r?r:x.attributes||!q?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(D=!x.detectDuplicates,S=!x.sortStable&&e.slice(0),e.sort(z),D){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return S=null,e},w=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=w(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=w(t);return n},b=t.selectors={cacheLength:50,createPseudo:r,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(xe,be),e[3]=(e[3]||e[4]||e[5]||"").replace(xe,be),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ce.test(n)&&(t=C(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(xe,be).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=I[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&I(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(oe," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==s?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!u&&!a;if(m){if(o){for(;g;){for(f=t;f=f[g];)if(a?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?m.firstChild:m.lastChild],s&&y){for(c=m[R]||(m[R]={}),l=c[e]||[],d=l[0]===W&&l[1],p=l[0]===W&&l[2],f=d&&m.childNodes[d];f=++d&&f&&f[g]||(p=d=0)||h.pop();)if(1===f.nodeType&&++p&&f===t){c[e]=[W,d,p];break}}else if(y&&(l=(t[R]||(t[R]={}))[e])&&l[0]===W)p=l[1];else for(;(f=++d&&f&&f[g]||(p=d=0)||h.pop())&&((a?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++p||(y&&((f[R]||(f[R]={}))[e]=[W,p]),f!==t)););return(p-=i)===r||p%r==0&&p/r>=0}}},PSEUDO:function(e,n){var i,o=b.pseudos[e]||b.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[R]?o(n):o.length>1?(i=[e,e,"",n],b.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),s=i.length;s--;)r=K(e,i[s]),e[r]=!(t[r]=i[s])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=N(e.replace(se,"$1"));return i[R]?r(function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(xe,be),function(t){return(t.textContent||t.innerText||w(t)).indexOf(e)>-1}}),lang:r(function(e){return fe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(xe,be).toLowerCase(),function(t){var n;do{if(n=q?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===L},focus:function(e){return e===A.activeElement&&(!A.hasFocus||A.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return he.test(e.nodeName)},input:function(e){return de.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:a(function(){return[0]}),last:a(function(e,t){return[t-1]}),eq:a(function(e,t,n){return[n<0?n+t:n]}),even:a(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:a(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:a(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:a(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},b.pseudos.nth=b.pseudos.eq;for(y in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[y]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(y);for(y in{submit:!0,reset:!0})b.pseudos[y]=function(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}(y);return l.prototype=b.filters=b.pseudos,b.setFilters=new l,C=t.tokenize=function(e,n){var r,i,o,s,a,u,l,c=B[e+" "];if(c)return n?0:c.slice(0);for(a=e,u=[],l=b.preFilter;a;){r&&!(i=ae.exec(a))||(i&&(a=a.slice(i[0].length)||a),u.push(o=[])),r=!1,(i=ue.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(se," ")}),a=a.slice(r.length));for(s in b.filter)!(i=pe[s].exec(a))||l[s]&&!(i=l[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?t.error(e):B(e,u).slice(0)},N=t.compile=function(e,t){var n,r=[],i=[],o=_[e+" "];if(!o){for(t||(t=C(e)),n=t.length;n--;)o=m(t[n]),o[R]?r.push(o):i.push(o);o=_(e,v(i,r)),o.selector=e}return o},k=t.select=function(e,t,n,r){var i,o,s,a,l,f="function"==typeof e&&e,p=!r&&C(e=f.selector||e);if(n=n||[],1===p.length){if(o=p[0]=p[0].slice(0),o.length>2&&"ID"===(s=o[0]).type&&x.getById&&9===t.nodeType&&q&&b.relative[o[1].type]){if(!(t=(b.find.ID(s.matches[0].replace(xe,be),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=pe.needsContext.test(e)?0:o.length;i--&&(s=o[i],!b.relative[a=s.type]);)if((l=b.find[a])&&(r=l(s.matches[0].replace(xe,be),ve.test(o[0].type)&&u(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&c(o)))return Q.apply(n,r),n;break}}return(f||N(e,p))(r,t,!q,n,ve.test(e)&&u(t.parentNode)||t),n},x.sortStable=R.split("").sort(z).join("")===R,x.detectDuplicates=!!D,j(),x.sortDetached=i(function(e){return 1&e.compareDocumentPosition(A.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),x.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(Z,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);K.find=re,K.expr=re.selectors,K.expr[":"]=K.expr.pseudos,K.unique=re.uniqueSort,K.text=re.getText,K.isXMLDoc=re.isXML,K.contains=re.contains;var ie=K.expr.match.needsContext,oe=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,se=/^.[^:#\[\.,]*$/;K.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?K.find.matchesSelector(r,e)?[r]:[]:K.find.matches(e,K.grep(t,function(e){return 1===e.nodeType}))},K.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(K(e).filter(function(){for(t=0;t<n;t++)if(K.contains(i[t],this))return!0}))
;for(t=0;t<n;t++)K.find(e,i[t],r);return r=this.pushStack(n>1?K.unique(r):r),r.selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&ie.test(e)?K(e):e||[],!1).length}});var ae,ue=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(K.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ue.exec(e))||!n[1]&&t)return!t||t.jquery?(t||ae).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof K?t[0]:t,K.merge(this,K.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:J,!0)),oe.test(n[1])&&K.isPlainObject(t))for(n in t)K.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return r=J.getElementById(n[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=J,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):K.isFunction(e)?void 0!==ae.ready?ae.ready(e):e(K):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),K.makeArray(e,this))}).prototype=K.fn,ae=K(J);var le=/^(?:parents|prev(?:Until|All))/,ce={children:!0,contents:!0,next:!0,prev:!0};K.extend({dir:function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&K(e).is(n))break;r.push(e)}return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),K.fn.extend({has:function(e){var t=K(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(K.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],s=ie.test(e)||"string"!=typeof e?K(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&K.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?K.unique(o):o)},index:function(e){return e?"string"==typeof e?U.call(K(e),this[0]):U.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(K.unique(K.merge(this.get(),K(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),K.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return K.dir(e,"parentNode")},parentsUntil:function(e,t,n){return K.dir(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return K.dir(e,"nextSibling")},prevAll:function(e){return K.dir(e,"previousSibling")},nextUntil:function(e,t,n){return K.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return K.dir(e,"previousSibling",n)},siblings:function(e){return K.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return K.sibling(e.firstChild)},contents:function(e){return e.contentDocument||K.merge([],e.childNodes)}},function(e,t){K.fn[e]=function(n,r){var i=K.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=K.filter(r,i)),this.length>1&&(ce[e]||K.unique(i),le.test(e)&&i.reverse()),this.pushStack(i)}});var fe=/\S+/g,pe={};K.Callbacks=function(e){e="string"==typeof e?pe[e]||o(e):K.extend({},e);var t,n,r,i,s,a,u=[],l=!e.once&&[],c=function o(c){for(t=e.memory&&c,n=!0,a=i||0,i=0,s=u.length,r=!0;u&&a<s;a++)if(!1===u[a].apply(c[0],c[1])&&e.stopOnFalse){t=!1;break}r=!1,u&&(l?l.length&&o(l.shift()):t?u=[]:f.disable())},f={add:function(){if(u){var n=u.length;!function t(n){K.each(n,function(n,r){var i=K.type(r);"function"===i?e.unique&&f.has(r)||u.push(r):r&&r.length&&"string"!==i&&t(r)})}(arguments),r?s=u.length:t&&(i=n,c(t))}return this},remove:function(){return u&&K.each(arguments,function(e,t){for(var n;(n=K.inArray(t,u,n))>-1;)u.splice(n,1),r&&(n<=s&&s--,n<=a&&a--)}),this},has:function(e){return e?K.inArray(e,u)>-1:!(!u||!u.length)},empty:function(){return u=[],s=0,this},disable:function(){return u=l=t=void 0,this},disabled:function(){return!u},lock:function(){return l=void 0,t||f.disable(),this},locked:function(){return!l},fireWith:function(e,t){return!u||n&&!l||(t=t||[],t=[e,t.slice?t.slice():t],r?l.push(t):c(t)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!n}};return f},K.extend({Deferred:function(e){var t=[["resolve","done",K.Callbacks("once memory"),"resolved"],["reject","fail",K.Callbacks("once memory"),"rejected"],["notify","progress",K.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return K.Deferred(function(n){K.each(t,function(t,o){var s=K.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&&K.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o[0]+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?K.extend(e,r):r}},i={};return r.pipe=r.then,K.each(t,function(e,o){var s=o[2],a=o[3];r[o[1]]=s.add,a&&s.add(function(){n=a},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=s.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=_.call(arguments),s=o.length,a=1!==s||e&&K.isFunction(e.promise)?s:0,u=1===a?e:K.Deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?_.call(arguments):i,r===t?u.notifyWith(n,r):--a||u.resolveWith(n,r)}};if(s>1)for(t=new Array(s),n=new Array(s),r=new Array(s);i<s;i++)o[i]&&K.isFunction(o[i].promise)?o[i].promise().done(l(i,r,o)).fail(u.reject).progress(l(i,n,t)):--a;return a||u.resolveWith(r,o),u.promise()}});var de;K.fn.ready=function(e){return K.ready.promise().done(e),this},K.extend({isReady:!1,readyWait:1,holdReady:function(e){e?K.readyWait++:K.ready(!0)},ready:function(e){(!0===e?--K.readyWait:K.isReady)||(K.isReady=!0,!0!==e&&--K.readyWait>0||(de.resolveWith(J,[K]),K.fn.triggerHandler&&(K(J).triggerHandler("ready"),K(J).off("ready"))))}}),K.ready.promise=function(t){return de||(de=K.Deferred(),"complete"===J.readyState?setTimeout(K.ready):(J.addEventListener("DOMContentLoaded",s,!1),e.addEventListener("load",s,!1))),de.promise(t)},K.ready.promise();var he=K.access=function(e,t,n,r,i,o,s){var a=0,u=e.length,l=null==n;if("object"===K.type(n)){i=!0;for(a in n)K.access(e,t,a,n[a],!0,o,s)}else if(void 0!==r&&(i=!0,K.isFunction(r)||(s=!0),l&&(s?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(K(e),n)})),t))for(;a<u;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:l?t.call(e):u?t(e[0],n):o};K.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},a.uid=1,a.accepts=K.acceptData,a.prototype={key:function(e){if(!a.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=a.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,K.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,i=this.key(e),o=this.cache[i];if("string"==typeof t)o[t]=n;else if(K.isEmptyObject(o))K.extend(this.cache[i],t);else for(r in t)o[r]=t[r];return o},get:function(e,t){var n=this.cache[this.key(e)];return void 0===t?n:n[t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?(r=this.get(e,t),void 0!==r?r:this.get(e,K.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,i,o=this.key(e),s=this.cache[o];if(void 0===t)this.cache[o]={};else{K.isArray(t)?r=t.concat(t.map(K.camelCase)):(i=K.camelCase(t),t in s?r=[t,i]:(r=i,r=r in s?[r]:r.match(fe)||[])),n=r.length;for(;n--;)delete s[r[n]]}},hasData:function(e){return!K.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var ge=new a,me=new a,ve=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ye=/([A-Z])/g;K.extend({hasData:function(e){return me.hasData(e)||ge.hasData(e)},data:function(e,t,n){return me.access(e,t,n)},removeData:function(e,t){me.remove(e,t)},_data:function(e,t,n){return ge.access(e,t,n)},_removeData:function(e,t){ge.remove(e,t)}}),K.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=me.get(o),1===o.nodeType&&!ge.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=K.camelCase(r.slice(5)),u(o,r,i[r])));ge.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){me.set(this,e)}):he(this,function(t){var n,r=K.camelCase(e);if(o&&void 0===t){if(void 0!==(n=me.get(o,e)))return n;if(void 0!==(n=me.get(o,r)))return n;if(void 0!==(n=u(o,r,void 0)))return n}else this.each(function(){var n=me.get(this,r);me.set(this,r,t),-1!==e.indexOf("-")&&void 0!==n&&me.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){me.remove(this,e)})}}),K.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=ge.get(e,t),n&&(!r||K.isArray(n)?r=ge.access(e,t,K.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=K.queue(e,t),r=n.length,i=n.shift(),o=K._queueHooks(e,t),s=function(){K.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,s,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ge.get(e,n)||ge.access(e,n,{empty:K.Callbacks("once memory").add(function(){ge.remove(e,[t+"queue",n])})})}}),K.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?K.queue(this[0],e):void 0===t?this:this.each(function(){var n=K.queue(this,e,t);K._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&K.dequeue(this,e)})},dequeue:function(e){return this.each(function(){K.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=K.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=ge.get(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var xe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,be=["Top","Right","Bottom","Left"],we=function(e,t){return e=t||e,"none"===K.css(e,"display")||!K.contains(e.ownerDocument,e)},Te=/^(?:checkbox|radio)$/i;!function(){var e=J.createDocumentFragment(),t=e.appendChild(J.createElement("div")),n=J.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),Q.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",Q.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();Q.focusinBubbles="onfocusin"in e;var Ce=/^key/,Ne=/^(?:mouse|pointer|contextmenu)|click/,ke=/^(?:focusinfocus|focusoutblur)$/,Ee=/^([^.]*)(?:\.(.+)|)$/;K.event={global:{},add:function(e,t,n,r,i){var o,s,a,u,l,c,f,p,d,h,g,m=ge.get(e);if(m)for(n.handler&&(o=n,n=o.handler,i=o.selector),n.guid||(n.guid=K.guid++),(u=m.events)||(u=m.events={}),(s=m.handle)||(s=m.handle=function(t){return void 0!==K&&K.event.triggered!==t.type?K.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(fe)||[""],l=t.length;l--;)a=Ee.exec(t[l])||[],d=g=a[1],h=(a[2]||"").split(".").sort(),d&&(f=K.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=K.event.special[d]||{},c=K.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&K.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||(p=u[d]=[],p.delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,s)||e.addEventListener&&e.addEventListener(d,s,!1)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),K.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,s,a,u,l,c,f,p,d,h,g,m=ge.hasData(e)&&ge.get(e);if(m&&(u=m.events)){for(t=(t||"").match(fe)||[""],l=t.length;l--;)if(a=Ee.exec(t[l])||[],d=g=a[1],h=(a[2]||"").split(".").sort(),d){for(f=K.event.special[d]||{},d=(r?f.delegateType:f.bindType)||d,p=u[d]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));s&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,m.handle)||K.removeEvent(e,d,m.handle),delete u[d])}else for(d in u)K.event.remove(e,d+t[l],n,r,!0);K.isEmptyObject(u)&&(delete m.handle,ge.remove(e,"events"))}},trigger:function(t,n,r,i){var o,s,a,u,l,c,f,p=[r||J],d=G.call(t,"type")?t.type:t,h=G.call(t,"namespace")?t.namespace.split("."):[];if(s=a=r=r||J,3!==r.nodeType&&8!==r.nodeType&&!ke.test(d+K.event.triggered)&&(d.indexOf(".")>=0&&(h=d.split("."),d=h.shift(),h.sort()),l=d.indexOf(":")<0&&"on"+d,t=t[K.expando]?t:new K.Event(d,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:K.makeArray(n,[t]),f=K.event.special[d]||{},i||!f.trigger||!1!==f.trigger.apply(r,n))){if(!i&&!f.noBubble&&!K.isWindow(r)){for(u=f.delegateType||d,ke.test(u+d)||(s=s.parentNode);s;s=s.parentNode)p.push(s),a=s;a===(r.ownerDocument||J)&&p.push(a.defaultView||a.parentWindow||e)}for(o=0;(s=p[o++])&&!t.isPropagationStopped();)t.type=o>1?u:f.bindType||d,c=(ge.get(s,"events")||{})[t.type]&&ge.get(s,"handle"),c&&c.apply(s,n),(c=l&&s[l])&&c.apply&&K.acceptData(s)&&(t.result=c.apply(s,n),!1===t.result&&t.preventDefault());return t.type=d,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(p.pop(),n)||!K.acceptData(r)||l&&K.isFunction(r[d])&&!K.isWindow(r)&&(a=r[l],a&&(r[l]=null),K.event.triggered=d,r[d](),K.event.triggered=void 0,a&&(r[l]=a)),t.result}},dispatch:function(e){e=K.event.fix(e);var t,n,r,i,o,s=[],a=_.call(arguments),u=(ge.get(this,"events")||{})[e.type]||[],l=K.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(s=K.event.handlers.call(this,e,u),t=0;(i=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(r=((K.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!1===(e.result=r)&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,s=[],a=t.delegateCount,u=e.target;if(a&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!==this;u=u.parentNode||this)if(!0!==u.disabled||"click"!==e.type){for(r=[],n=0;n<a;n++)o=t[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?K(i,this).index(u)>=0:K.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&s.push({elem:u,handlers:r})}return a<t.length&&s.push({elem:this,handlers:t.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||J,r=n.documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[K.expando])return e;var t,n,r,i=e.type,o=e,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=Ne.test(i)?this.mouseHooks:Ce.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new K.Event(o),t=r.length;t--;)n=r[t],e[n]=o[n];return e.target||(e.target=J),3===e.target.nodeType&&(e.target=e.target.parentNode),s.filter?s.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==f()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===f()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&K.nodeName(this,"input"))return this.click(),!1},_default:function(e){return K.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=K.extend(new K.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?K.event.trigger(i,null,t):K.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},K.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},K.Event=function(e,t){if(!(this instanceof K.Event))return new K.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?l:c):this.type=e,t&&K.extend(this,t),this.timeStamp=e&&e.timeStamp||K.now(),this[K.expando]=!0},K.Event.prototype={isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=l,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=l,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=l,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},K.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){K.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||K.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),Q.focusinBubbles||K.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){K.event.simulate(t,e.target,K.event.fix(e),!0)};K.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=ge.access(r,t);i||r.addEventListener(e,n,!0),ge.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=ge.access(r,t)-1;i?ge.access(r,t,i):(r.removeEventListener(e,n,!0),ge.remove(r,t))}}}),K.fn.extend({on:function(e,t,n,r,i){var o,s;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(s in e)this.on(s,t,n,e[s],i);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&("string"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),!1===r)r=c;else if(!r)return this;return 1===i&&(o=r,r=function(e){return K().off(e),o.apply(this,arguments)},r.guid=o.guid||(o.guid=K.guid++)),this.each(function(){K.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,K(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=c),this.each(function(){K.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){K.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return K.event.trigger(e,t,n,!0)}});var Se=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,De=/<([\w:]+)/,je=/<|&#?\w+;/,Ae=/<(?:script|style|link)/i,Le=/checked\s*(?:[^=]|=\s*.checked.)/i,qe=/^$|\/(?:java|ecma)script/i,He=/^true\/(.*)/,Oe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Fe={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Fe.optgroup=Fe.option,Fe.tbody=Fe.tfoot=Fe.colgroup=Fe.caption=Fe.thead,Fe.th=Fe.td,K.extend({clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),u=K.contains(e.ownerDocument,e);if(!(Q.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||K.isXMLDoc(e)))for(s=v(a),o=v(e),r=0,i=o.length;r<i;r++)y(o[r],s[r]);if(t)if(n)for(o=o||v(e),s=s||v(a),r=0,i=o.length;r<i;r++)m(o[r],s[r]);else m(e,a);return s=v(a,"script"),s.length>0&&g(s,!u&&v(e,"script")),a},buildFragment:function(e,t,n,r){for(var i,o,s,a,u,l,c=t.createDocumentFragment(),f=[],p=0,d=e.length;p<d;p++)if((i=e[p])||0===i)if("object"===K.type(i))K.merge(f,i.nodeType?[i]:i);else if(je.test(i)){for(o=o||c.appendChild(t.createElement("div")),s=(De.exec(i)||["",""])[1].toLowerCase(),a=Fe[s]||Fe._default,o.innerHTML=a[1]+i.replace(Se,"<$1></$2>")+a[2],l=a[0];l--;)o=o.lastChild;K.merge(f,o.childNodes),o=c.firstChild,o.textContent=""}else f.push(t.createTextNode(i));for(c.textContent="",p=0;i=f[p++];)if((!r||-1===K.inArray(i,r))&&(u=K.contains(i.ownerDocument,i),o=v(c.appendChild(i),"script"),u&&g(o),n))for(l=0;i=o[l++];)qe.test(i.type||"")&&n.push(i);return c},cleanData:function(e){for(var t,n,r,i,o=K.event.special,s=0;void 0!==(n=e[s]);s++){if(K.acceptData(n)&&(i=n[ge.expando])&&(t=ge.cache[i])){if(t.events)for(r in t.events)o[r]?K.event.remove(n,r):K.removeEvent(n,r,t.handle);ge.cache[i]&&delete ge.cache[i]}delete me.cache[n[me.expando]]}}}),K.fn.extend({text:function(e){return he(this,function(e){return void 0===e?K.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){p(this,e).appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=p(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?K.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||K.cleanData(v(n)),n.parentNode&&(t&&K.contains(n.ownerDocument,n)&&g(v(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(K.cleanData(v(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return K.clone(this,e,t)})},html:function(e){return he(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ae.test(e)&&!Fe[(De.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Se,"<$1></$2>");try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(K.cleanData(v(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,K.cleanData(v(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=z.apply([],e);var n,r,i,o,s,a,u=0,l=this.length,c=this,f=l-1,p=e[0],g=K.isFunction(p);if(g||l>1&&"string"==typeof p&&!Q.checkClone&&Le.test(p))return this.each(function(n){var r=c.eq(n);g&&(e[0]=p.call(this,n,r.html())),r.domManip(e,t)});if(l&&(n=K.buildFragment(e,this[0].ownerDocument,!1,this),r=n.firstChild,1===n.childNodes.length&&(n=r),r)){for(i=K.map(v(n,"script"),d),o=i.length;u<l;u++)s=n,u!==f&&(s=K.clone(s,!0,!0),o&&K.merge(i,v(s,"script"))),t.call(this[u],s,u);if(o)for(a=i[i.length-1].ownerDocument,K.map(i,h),u=0;u<o;u++)s=i[u],qe.test(s.type||"")&&!ge.access(s,"globalEval")&&K.contains(a,s)&&(s.src?K._evalUrl&&K._evalUrl(s.src):K.globalEval(s.textContent.replace(Oe,"")))}return this}}),K.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){K.fn[e]=function(e){for(var n,r=[],i=K(e),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),K(i[s])[t](n),X.apply(r,n.get());return this.pushStack(r)}});var Pe,Re={},Me=/^margin/,We=new RegExp("^("+xe+")(?!px)[a-z%]+$","i"),$e=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)};!function(){function t(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",s.innerHTML="",i.appendChild(o);var t=e.getComputedStyle(s,null);n="1%"!==t.top,r="4px"===t.width,i.removeChild(o)}var n,r,i=J.documentElement,o=J.createElement("div"),s=J.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",Q.clearCloneStyle="content-box"===s.style.backgroundClip,o.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",o.appendChild(s),e.getComputedStyle&&K.extend(Q,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return null==r&&t(),r},reliableMarginRight:function(){var t,n=s.appendChild(J.createElement("div"));return n.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",s.style.width="1px",i.appendChild(o),t=!parseFloat(e.getComputedStyle(n,null).marginRight),i.removeChild(o),s.removeChild(n),t}}))}(),K.swap=function(e,t,n,r){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=s[o];return i};var Ie=/^(none|table(?!-c[ea]).+)/,Be=new RegExp("^("+xe+")(.*)$","i"),_e=new RegExp("^([+-])=("+xe+")","i"),ze={position:"absolute",visibility:"hidden",display:"block"},Xe={letterSpacing:"0",fontWeight:"400"},Ue=["Webkit","O","Moz","ms"];K.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=w(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=K.camelCase(t),u=e.style;if(t=K.cssProps[a]||(K.cssProps[a]=C(u,a)),s=K.cssHooks[t]||K.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:u[t];o=typeof n,"string"===o&&(i=_e.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(K.css(e,t)),o="number"),null!=n&&n===n&&("number"!==o||K.cssNumber[a]||(n+="px"),Q.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(u[t]=n))}},css:function(e,t,n,r){var i,o,s,a=K.camelCase(t);return t=K.cssProps[a]||(K.cssProps[a]=C(e.style,a)),s=K.cssHooks[t]||K.cssHooks[a],s&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=w(e,t,r)),"normal"===i&&t in Xe&&(i=Xe[t]),""===n||n?(o=parseFloat(i),!0===n||K.isNumeric(o)?o||0:i):i}}),K.each(["height","width"],function(e,t){K.cssHooks[t]={get:function(e,n,r){if(n)return Ie.test(K.css(e,"display"))&&0===e.offsetWidth?K.swap(e,ze,function(){return E(e,t,r)}):E(e,t,r)},set:function(e,n,r){var i=r&&$e(e);return N(e,n,r?k(e,t,r,"border-box"===K.css(e,"boxSizing",!1,i),i):0)}}}),K.cssHooks.marginRight=T(Q.reliableMarginRight,function(e,t){if(t)return K.swap(e,{display:"inline-block"},w,[e,"marginRight"])}),K.each({margin:"",padding:"",border:"Width"},function(e,t){K.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+be[r]+t]=o[r]||o[r-2]||o[0];return i}},Me.test(e)||(K.cssHooks[e+t].set=N)}),K.fn.extend({css:function(e,t){return he(this,function(e,t,n){var r,i,o={},s=0;if(K.isArray(t)){for(r=$e(e),i=t.length;s<i;s++)o[t[s]]=K.css(e,t[s],!1,r);return o}return void 0!==n?K.style(e,t,n):K.css(e,t)},e,t,arguments.length>1)},show:function(){return S(this,!0)},hide:function(){return S(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){we(this)?K(this).show():K(this).hide()})}}),K.Tween=D,D.prototype={constructor:D,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(K.cssNumber[n]?"":"px")},cur:function(){var e=D.propHooks[this.prop];return e&&e.get?e.get(this):D.propHooks._default.get(this)},run:function(e){var t,n=D.propHooks[this.prop];return this.options.duration?this.pos=t=K.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):D.propHooks._default.set(this),this}},D.prototype.init.prototype=D.prototype,D.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=K.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){K.fx.step[e.prop]?K.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[K.cssProps[e.prop]]||K.cssHooks[e.prop])?K.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},D.propHooks.scrollTop=D.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},K.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},K.fx=D.prototype.init,K.fx.step={};var Ve,Ye,Ge=/^(?:toggle|show|hide)$/,Qe=new RegExp("^(?:([+-])=|)("+xe+")([a-z%]*)$","i"),Je=/queueHooks$/,Ke=[q],Ze={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Qe.exec(t),o=i&&i[3]||(K.cssNumber[e]?"":"px"),s=(K.cssNumber[e]||"px"!==o&&+r)&&Qe.exec(K.css(n.elem,e)),a=1,u=20;if(s&&s[3]!==o){o=o||s[3],i=i||[],s=+r||1;do{a=a||".5",s/=a,K.style(n.elem,e,s+o)}while(a!==(a=n.cur()/r)&&1!==a&&--u)}return i&&(s=n.start=+s||+r||0,n.unit=o,n.end=i[1]?s+(i[1]+1)*i[2]:+i[2]),n}]};K.Animation=K.extend(O,{tweener:function(e,t){K.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;r<i;r++)n=e[r],Ze[n]=Ze[n]||[],Ze[n].unshift(t)},prefilter:function(e,t){t?Ke.unshift(e):Ke.push(e)}}),K.speed=function(e,t,n){var r=e&&"object"==typeof e?K.extend({},e):{complete:n||!n&&t||K.isFunction(e)&&e,duration:e,easing:n&&t||t&&!K.isFunction(t)&&t};return r.duration=K.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in K.fx.speeds?K.fx.speeds[r.duration]:K.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){K.isFunction(r.old)&&r.old.call(this),r.queue&&K.dequeue(this,r.queue)},r},K.fn.extend({fadeTo:function(e,t,n,r){return this.filter(we).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=K.isEmptyObject(e),o=K.speed(t,n,r),s=function(){var t=O(this,K.extend({},e),o);(i||ge.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=K.timers,s=ge.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&Je.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||K.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=ge.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=K.timers,s=r?r.length:0;for(n.finish=!0,K.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),
K.each(["toggle","show","hide"],function(e,t){var n=K.fn[t];K.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(A(t,!0),e,r,i)}}),K.each({slideDown:A("show"),slideUp:A("hide"),slideToggle:A("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){K.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),K.timers=[],K.fx.tick=function(){var e,t=0,n=K.timers;for(Ve=K.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||K.fx.stop(),Ve=void 0},K.fx.timer=function(e){K.timers.push(e),e()?K.fx.start():K.timers.pop()},K.fx.interval=13,K.fx.start=function(){Ye||(Ye=setInterval(K.fx.tick,K.fx.interval))},K.fx.stop=function(){clearInterval(Ye),Ye=null},K.fx.speeds={slow:600,fast:200,_default:400},K.fn.delay=function(e,t){return e=K.fx?K.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},function(){var e=J.createElement("input"),t=J.createElement("select"),n=t.appendChild(J.createElement("option"));e.type="checkbox",Q.checkOn=""!==e.value,Q.optSelected=n.selected,t.disabled=!0,Q.optDisabled=!n.disabled,e=J.createElement("input"),e.value="t",e.type="radio",Q.radioValue="t"===e.value}();var et,tt=K.expr.attrHandle;K.fn.extend({attr:function(e,t){return he(this,K.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){K.removeAttr(this,e)})}}),K.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?K.prop(e,t,n):(1===o&&K.isXMLDoc(e)||(t=t.toLowerCase(),r=K.attrHooks[t]||(K.expr.match.bool.test(t)?et:void 0)),void 0===n?r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=K.find.attr(e,t),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):void K.removeAttr(e,t))},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(fe);if(o&&1===e.nodeType)for(;n=o[i++];)r=K.propFix[n]||n,K.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!Q.radioValue&&"radio"===t&&K.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),et={set:function(e,t,n){return!1===t?K.removeAttr(e,n):e.setAttribute(n,n),n}},K.each(K.expr.match.bool.source.match(/\w+/g),function(e,t){var n=tt[t]||K.find.attr;tt[t]=function(e,t,r){var i,o;return r||(o=tt[t],tt[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,tt[t]=o),i}});var nt=/^(?:input|select|textarea|button)$/i;K.fn.extend({prop:function(e,t){return he(this,K.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[K.propFix[e]||e]})}}),K.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var r,i,o,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return o=1!==s||!K.isXMLDoc(e),o&&(t=K.propFix[t]||t,i=K.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||nt.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),Q.optSelected||(K.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),K.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){K.propFix[this.toLowerCase()]=this});var rt=/[\t\r\n\f]/g;K.fn.extend({addClass:function(e){var t,n,r,i,o,s,a="string"==typeof e&&e,u=0,l=this.length;if(K.isFunction(e))return this.each(function(t){K(this).addClass(e.call(this,t,this.className))});if(a)for(t=(e||"").match(fe)||[];u<l;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(rt," "):" ")){for(o=0;i=t[o++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");s=K.trim(r),n.className!==s&&(n.className=s)}return this},removeClass:function(e){var t,n,r,i,o,s,a=0===arguments.length||"string"==typeof e&&e,u=0,l=this.length;if(K.isFunction(e))return this.each(function(t){K(this).removeClass(e.call(this,t,this.className))});if(a)for(t=(e||"").match(fe)||[];u<l;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(rt," "):"")){for(o=0;i=t[o++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");s=e?K.trim(r):"",n.className!==s&&(n.className=s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):K.isFunction(e)?this.each(function(n){K(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if("string"===n)for(var t,r=0,i=K(this),o=e.match(fe)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else"undefined"!==n&&"boolean"!==n||(this.className&&ge.set(this,"__className__",this.className),this.className=this.className||!1===e?"":ge.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(rt," ").indexOf(t)>=0)return!0;return!1}});var it=/\r/g;K.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=K.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,K(this).val()):e,null==i?i="":"number"==typeof i?i+="":K.isArray(i)&&(i=K.map(i,function(e){return null==e?"":e+""})),(t=K.valHooks[this.type]||K.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return(t=K.valHooks[i.type]||K.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(it,""):null==n?"":n)}}}),K.extend({valHooks:{option:{get:function(e){var t=K.find.attr(e,"value");return null!=t?t:K.trim(K.text(e))}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,s=o?null:[],a=o?i+1:r.length,u=i<0?a:o?i:0;u<a;u++)if(n=r[u],(n.selected||u===i)&&(Q.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!K.nodeName(n.parentNode,"optgroup"))){if(t=K(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=K.makeArray(t),s=i.length;s--;)r=i[s],(r.selected=K.inArray(r.value,o)>=0)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),K.each(["radio","checkbox"],function(){K.valHooks[this]={set:function(e,t){if(K.isArray(t))return e.checked=K.inArray(K(e).val(),t)>=0}},Q.checkOn||(K.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),K.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){K.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),K.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var ot=K.now(),st=/\?/;K.parseJSON=function(e){return JSON.parse(e+"")},K.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{n=new DOMParser,t=n.parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||K.error("Invalid XML: "+e),t};var at=/#.*$/,ut=/([?&])_=[^&]*/,lt=/^(.*?):[ \t]*([^\r\n]*)$/gm,ct=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,ft=/^(?:GET|HEAD)$/,pt=/^\/\//,dt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ht={},gt={},mt="*/".concat("*"),vt=e.location.href,yt=dt.exec(vt.toLowerCase())||[];K.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:vt,type:"GET",isLocal:ct.test(yt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":mt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":K.parseJSON,"text xml":K.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?R(R(e,K.ajaxSettings),t):R(K.ajaxSettings,e)},ajaxPrefilter:F(ht),ajaxTransport:F(gt),ajax:function(e,t){function n(e,t,n,s){var u,c,v,y,b,T=t;2!==x&&(x=2,a&&clearTimeout(a),r=void 0,o=s||"",w.readyState=e>0?4:0,u=e>=200&&e<300||304===e,n&&(y=M(f,w,n)),y=W(f,y,w,u),u?(f.ifModified&&(b=w.getResponseHeader("Last-Modified"),b&&(K.lastModified[i]=b),(b=w.getResponseHeader("etag"))&&(K.etag[i]=b)),204===e||"HEAD"===f.type?T="nocontent":304===e?T="notmodified":(T=y.state,c=y.data,v=y.error,u=!v)):(v=T,!e&&T||(T="error",e<0&&(e=0))),w.status=e,w.statusText=(t||T)+"",u?h.resolveWith(p,[c,T,w]):h.rejectWith(p,[w,T,v]),w.statusCode(m),m=void 0,l&&d.trigger(u?"ajaxSuccess":"ajaxError",[w,f,u?c:v]),g.fireWith(p,[w,T]),l&&(d.trigger("ajaxComplete",[w,f]),--K.active||K.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,s,a,u,l,c,f=K.ajaxSetup({},t),p=f.context||f,d=f.context&&(p.nodeType||p.jquery)?K(p):K.event,h=K.Deferred(),g=K.Callbacks("once memory"),m=f.statusCode||{},v={},y={},x=0,b="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!s)for(s={};t=lt.exec(o);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=y[n]=y[n]||e,v[e]=t),this},overrideMimeType:function(e){return x||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(x<2)for(t in e)m[t]=[m[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||b;return r&&r.abort(t),n(0,t),this}};if(h.promise(w).complete=g.add,w.success=w.done,w.error=w.fail,f.url=((e||f.url||vt)+"").replace(at,"").replace(pt,yt[1]+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=K.trim(f.dataType||"*").toLowerCase().match(fe)||[""],null==f.crossDomain&&(u=dt.exec(f.url.toLowerCase()),f.crossDomain=!(!u||u[1]===yt[1]&&u[2]===yt[2]&&(u[3]||("http:"===u[1]?"80":"443"))===(yt[3]||("http:"===yt[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=K.param(f.data,f.traditional)),P(ht,f,t,w),2===x)return w;l=K.event&&f.global,l&&0==K.active++&&K.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!ft.test(f.type),i=f.url,f.hasContent||(f.data&&(i=f.url+=(st.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=ut.test(i)?i.replace(ut,"$1_="+ot++):i+(st.test(i)?"&":"?")+"_="+ot++)),f.ifModified&&(K.lastModified[i]&&w.setRequestHeader("If-Modified-Since",K.lastModified[i]),K.etag[i]&&w.setRequestHeader("If-None-Match",K.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&w.setRequestHeader("Content-Type",f.contentType),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+mt+"; q=0.01":""):f.accepts["*"]);for(c in f.headers)w.setRequestHeader(c,f.headers[c]);if(f.beforeSend&&(!1===f.beforeSend.call(p,w,f)||2===x))return w.abort();b="abort";for(c in{success:1,error:1,complete:1})w[c](f[c]);if(r=P(gt,f,t,w)){w.readyState=1,l&&d.trigger("ajaxSend",[w,f]),f.async&&f.timeout>0&&(a=setTimeout(function(){w.abort("timeout")},f.timeout));try{x=1,r.send(v,n)}catch(e){if(!(x<2))throw e;n(-1,e)}}else n(-1,"No Transport");return w},getJSON:function(e,t,n){return K.get(e,t,n,"json")},getScript:function(e,t){return K.get(e,void 0,t,"script")}}),K.each(["get","post"],function(e,t){K[t]=function(e,n,r,i){return K.isFunction(n)&&(i=i||r,r=n,n=void 0),K.ajax({url:e,type:t,dataType:i,data:n,success:r})}}),K._evalUrl=function(e){return K.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},K.fn.extend({wrapAll:function(e){var t;return K.isFunction(e)?this.each(function(t){K(this).wrapAll(e.call(this,t))}):(this[0]&&(t=K(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this)},wrapInner:function(e){return K.isFunction(e)?this.each(function(t){K(this).wrapInner(e.call(this,t))}):this.each(function(){var t=K(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=K.isFunction(e);return this.each(function(n){K(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){K.nodeName(this,"body")||K(this).replaceWith(this.childNodes)}).end()}}),K.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},K.expr.filters.visible=function(e){return!K.expr.filters.hidden(e)};var xt=/%20/g,bt=/\[\]$/,wt=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,Ct=/^(?:input|select|textarea|keygen)/i;K.param=function(e,t){var n,r=[],i=function(e,t){t=K.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=K.ajaxSettings&&K.ajaxSettings.traditional),K.isArray(e)||e.jquery&&!K.isPlainObject(e))K.each(e,function(){i(this.name,this.value)});else for(n in e)$(n,e[n],t,i);return r.join("&").replace(xt,"+")},K.fn.extend({serialize:function(){return K.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=K.prop(this,"elements");return e?K.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!K(this).is(":disabled")&&Ct.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!Te.test(e))}).map(function(e,t){var n=K(this).val();return null==n?null:K.isArray(n)?K.map(n,function(e){return{name:t.name,value:e.replace(wt,"\r\n")}}):{name:t.name,value:n.replace(wt,"\r\n")}}).get()}}),K.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var Nt=0,kt={},Et={0:200,1223:204},St=K.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in kt)kt[e]()}),Q.cors=!!St&&"withCredentials"in St,Q.ajax=St=!!St,K.ajaxTransport(function(e){var t;if(Q.cors||St&&!e.crossDomain)return{send:function(n,r){var i,o=e.xhr(),s=++Nt;if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)o.setRequestHeader(i,n[i]);t=function(e){return function(){t&&(delete kt[s],t=o.onload=o.onerror=null,"abort"===e?o.abort():"error"===e?r(o.status,o.statusText):r(Et[o.status]||o.status,o.statusText,"string"==typeof o.responseText?{text:o.responseText}:void 0,o.getAllResponseHeaders()))}},o.onload=t(),o.onerror=t("error"),t=kt[s]=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),K.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return K.globalEval(e),e}}}),K.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),K.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=K("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),J.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Dt=[],jt=/(=)\?(?=&|$)|\?\?/;K.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Dt.pop()||K.expando+"_"+ot++;return this[e]=!0,e}}),K.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,s,a=!1!==t.jsonp&&(jt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&jt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=K.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(jt,"$1"+i):!1!==t.jsonp&&(t.url+=(st.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||K.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){s=arguments},r.always(function(){e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,Dt.push(i)),s&&K.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),K.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||J;var r=oe.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=K.buildFragment([e],t,i),i&&i.length&&K(i).remove(),K.merge([],r.childNodes))};var At=K.fn.load;K.fn.load=function(e,t,n){if("string"!=typeof e&&At)return At.apply(this,arguments);var r,i,o,s=this,a=e.indexOf(" ");return a>=0&&(r=K.trim(e.slice(a)),e=e.slice(0,a)),K.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&K.ajax({url:e,type:i,dataType:"html",data:t}).done(function(e){o=arguments,s.html(r?K("<div>").append(K.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){s.each(n,o||[e.responseText,t,e])}),this},K.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){K.fn[t]=function(e){return this.on(t,e)}}),K.expr.filters.animated=function(e){return K.grep(K.timers,function(t){return e===t.elem}).length};var Lt=e.document.documentElement;K.offset={setOffset:function(e,t,n){var r,i,o,s,a,u,l,c=K.css(e,"position"),f=K(e),p={};"static"===c&&(e.style.position="relative"),a=f.offset(),o=K.css(e,"top"),u=K.css(e,"left"),l=("absolute"===c||"fixed"===c)&&(o+u).indexOf("auto")>-1,l?(r=f.position(),s=r.top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(u)||0),K.isFunction(t)&&(t=t.call(e,n,a)),null!=t.top&&(p.top=t.top-a.top+s),null!=t.left&&(p.left=t.left-a.left+i),"using"in t?t.using.call(e,p):f.css(p)}},K.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){K.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},o=r&&r.ownerDocument;if(o)return t=o.documentElement,K.contains(t,r)?(void 0!==r.getBoundingClientRect&&(i=r.getBoundingClientRect()),n=I(o),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===K.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),K.nodeName(e[0],"html")||(r=e.offset()),r.top+=K.css(e[0],"borderTopWidth",!0),r.left+=K.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-K.css(n,"marginTop",!0),left:t.left-r.left-K.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Lt;e&&!K.nodeName(e,"html")&&"static"===K.css(e,"position");)e=e.offsetParent;return e||Lt})}}),K.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var r="pageYOffset"===n;K.fn[t]=function(i){return he(this,function(t,i,o){var s=I(t);if(void 0===o)return s?s[n]:t[i];s?s.scrollTo(r?e.pageXOffset:o,r?o:e.pageYOffset):t[i]=o},t,i,arguments.length,null)}}),K.each(["top","left"],function(e,t){K.cssHooks[t]=T(Q.pixelPosition,function(e,n){if(n)return n=w(e,t),We.test(n)?K(e).position()[t]+"px":n})}),K.each({Height:"height",Width:"width"},function(e,t){K.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){K.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===i?"margin":"border");return he(this,function(t,n,r){var i;return K.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?K.css(t,n,s):K.style(t,n,r,s)},t,o?r:void 0,o,null)}})}),K.fn.size=function(){return this.length},K.fn.andSelf=K.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return K});var qt=e.jQuery,Ht=e.$;return K.noConflict=function(t){return e.$===K&&(e.$=Ht),t&&e.jQuery===K&&(e.jQuery=qt),K},void 0===t&&(e.jQuery=e.$=K),K})},451);
__d(function(t,e,n,i){!function(t){if(function(t,e){"function"==typeof define&&define.amd?define("strophe-base64",function(){return e()}):t.Base64=e()}(this,function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";return{encode:function(e){var n,i,s,r,o,a,h,c="",u=0;do{n=e.charCodeAt(u++),i=e.charCodeAt(u++),s=e.charCodeAt(u++),r=n>>2,o=(3&n)<<4|i>>4,a=(15&i)<<2|s>>6,h=63&s,isNaN(i)?(o=(3&n)<<4,a=h=64):isNaN(s)&&(h=64),c=c+t.charAt(r)+t.charAt(o)+t.charAt(a)+t.charAt(h)}while(u<e.length);return c},decode:function(e){var n,i,s,r,o,a,h,c="",u=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{r=t.indexOf(e.charAt(u++)),o=t.indexOf(e.charAt(u++)),a=t.indexOf(e.charAt(u++)),h=t.indexOf(e.charAt(u++)),n=r<<2|o>>4,i=(15&o)<<4|a>>2,s=(3&a)<<6|h,c+=String.fromCharCode(n),64!=a&&(c+=String.fromCharCode(i)),64!=h&&(c+=String.fromCharCode(s))}while(u<e.length);return c}}}),function(t,e){"function"==typeof define&&define.amd?define("strophe-sha1",function(){return e()}):t.SHA1=e()}(this,function(){function t(t,i){t[i>>5]|=128<<24-i%32,t[15+(i+64>>9<<4)]=i;var o,a,h,c,u,l,d,_,f=new Array(80),m=1732584193,p=-271733879,g=-1732584194,S=271733878,b=-1009589776;for(o=0;o<t.length;o+=16){for(c=m,u=p,l=g,d=S,_=b,a=0;a<80;a++)f[a]=a<16?t[o+a]:r(f[a-3]^f[a-8]^f[a-14]^f[a-16],1),h=s(s(r(m,5),e(a,p,g,S)),s(s(b,f[a]),n(a))),b=S,S=g,g=r(p,30),p=m,m=h;m=s(m,c),p=s(p,u),g=s(g,l),S=s(S,d),b=s(b,_)}return[m,p,g,S,b]}function e(t,e,n,i){return t<20?e&n|~e&i:t<40?e^n^i:t<60?e&n|e&i|n&i:e^n^i}function n(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function i(e,n){var i=o(e);i.length>16&&(i=t(i,8*e.length));for(var s=new Array(16),r=new Array(16),a=0;a<16;a++)s[a]=909522486^i[a],r[a]=1549556828^i[a];var h=t(s.concat(o(n)),512+8*n.length);return t(r.concat(h),672)}function s(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function r(t,e){return t<<e|t>>>32-e}function o(t){for(var e=[],n=0;n<8*t.length;n+=8)e[n>>5]|=(255&t.charCodeAt(n/8))<<24-n%32;return e}function a(t){for(var e="",n=0;n<32*t.length;n+=8)e+=String.fromCharCode(t[n>>5]>>>24-n%32&255);return e}function h(t){for(var e,n,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s="",r=0;r<4*t.length;r+=3)for(e=(t[r>>2]>>8*(3-r%4)&255)<<16|(t[r+1>>2]>>8*(3-(r+1)%4)&255)<<8|t[r+2>>2]>>8*(3-(r+2)%4)&255,n=0;n<4;n++)8*r+6*n>32*t.length?s+="=":s+=i.charAt(e>>6*(3-n)&63);return s}return{b64_hmac_sha1:function(t,e){return h(i(t,e))},b64_sha1:function(e){return h(t(o(e),8*e.length))},binb2str:a,core_hmac_sha1:i,str_hmac_sha1:function(t,e){return a(i(t,e))},str_sha1:function(e){return a(t(o(e),8*e.length))}}}),function(t,e){"function"==typeof define&&define.amd?define("strophe-md5",function(){return e()}):t.MD5=e()}(this,function(t){var e=function(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n},n=function(t,e){return t<<e|t>>>32-e},i=function(t){for(var e=[],n=0;n<8*t.length;n+=8)e[n>>5]|=(255&t.charCodeAt(n/8))<<n%32;return e},s=function(t){for(var e="",n=0;n<32*t.length;n+=8)e+=String.fromCharCode(t[n>>5]>>>n%32&255);return e},r=function(t){for(var e="0123456789abcdef",n="",i=0;i<4*t.length;i++)n+=e.charAt(t[i>>2]>>i%4*8+4&15)+e.charAt(t[i>>2]>>i%4*8&15);return n},o=function(t,i,s,r,o,a){return e(n(e(e(i,t),e(r,a)),o),s)},a=function(t,e,n,i,s,r,a){return o(e&n|~e&i,t,e,s,r,a)},h=function(t,e,n,i,s,r,a){return o(e&i|n&~i,t,e,s,r,a)},c=function(t,e,n,i,s,r,a){return o(e^n^i,t,e,s,r,a)},u=function(t,e,n,i,s,r,a){return o(n^(e|~i),t,e,s,r,a)},l=function(t,n){t[n>>5]|=128<<n%32,t[14+(n+64>>>9<<4)]=n;for(var i,s,r,o,l=1732584193,d=-271733879,_=-1732584194,f=271733878,m=0;m<t.length;m+=16)i=l,s=d,r=_,o=f,l=a(l,d,_,f,t[m+0],7,-680876936),f=a(f,l,d,_,t[m+1],12,-389564586),_=a(_,f,l,d,t[m+2],17,606105819),d=a(d,_,f,l,t[m+3],22,-1044525330),l=a(l,d,_,f,t[m+4],7,-176418897),f=a(f,l,d,_,t[m+5],12,1200080426),_=a(_,f,l,d,t[m+6],17,-1473231341),d=a(d,_,f,l,t[m+7],22,-45705983),l=a(l,d,_,f,t[m+8],7,1770035416),f=a(f,l,d,_,t[m+9],12,-1958414417),_=a(_,f,l,d,t[m+10],17,-42063),d=a(d,_,f,l,t[m+11],22,-1990404162),l=a(l,d,_,f,t[m+12],7,1804603682),f=a(f,l,d,_,t[m+13],12,-40341101),_=a(_,f,l,d,t[m+14],17,-1502002290),d=a(d,_,f,l,t[m+15],22,1236535329),l=h(l,d,_,f,t[m+1],5,-165796510),f=h(f,l,d,_,t[m+6],9,-1069501632),_=h(_,f,l,d,t[m+11],14,643717713),d=h(d,_,f,l,t[m+0],20,-373897302),l=h(l,d,_,f,t[m+5],5,-701558691),f=h(f,l,d,_,t[m+10],9,38016083),_=h(_,f,l,d,t[m+15],14,-660478335),d=h(d,_,f,l,t[m+4],20,-405537848),l=h(l,d,_,f,t[m+9],5,568446438),f=h(f,l,d,_,t[m+14],9,-1019803690),_=h(_,f,l,d,t[m+3],14,-187363961),d=h(d,_,f,l,t[m+8],20,1163531501),l=h(l,d,_,f,t[m+13],5,-1444681467),f=h(f,l,d,_,t[m+2],9,-51403784),_=h(_,f,l,d,t[m+7],14,1735328473),d=h(d,_,f,l,t[m+12],20,-1926607734),l=c(l,d,_,f,t[m+5],4,-378558),f=c(f,l,d,_,t[m+8],11,-2022574463),_=c(_,f,l,d,t[m+11],16,1839030562),d=c(d,_,f,l,t[m+14],23,-35309556),l=c(l,d,_,f,t[m+1],4,-1530992060),f=c(f,l,d,_,t[m+4],11,1272893353),_=c(_,f,l,d,t[m+7],16,-155497632),d=c(d,_,f,l,t[m+10],23,-1094730640),l=c(l,d,_,f,t[m+13],4,681279174),f=c(f,l,d,_,t[m+0],11,-358537222),_=c(_,f,l,d,t[m+3],16,-722521979),d=c(d,_,f,l,t[m+6],23,76029189),l=c(l,d,_,f,t[m+9],4,-640364487),f=c(f,l,d,_,t[m+12],11,-421815835),_=c(_,f,l,d,t[m+15],16,530742520),d=c(d,_,f,l,t[m+2],23,-995338651),l=u(l,d,_,f,t[m+0],6,-198630844),f=u(f,l,d,_,t[m+7],10,1126891415),_=u(_,f,l,d,t[m+14],15,-1416354905),d=u(d,_,f,l,t[m+5],21,-57434055),l=u(l,d,_,f,t[m+12],6,1700485571),f=u(f,l,d,_,t[m+3],10,-1894986606),_=u(_,f,l,d,t[m+10],15,-1051523),d=u(d,_,f,l,t[m+1],21,-2054922799),l=u(l,d,_,f,t[m+8],6,1873313359),f=u(f,l,d,_,t[m+15],10,-30611744),_=u(_,f,l,d,t[m+6],15,-1560198380),d=u(d,_,f,l,t[m+13],21,1309151649),l=u(l,d,_,f,t[m+4],6,-145523070),f=u(f,l,d,_,t[m+11],10,-1120210379),_=u(_,f,l,d,t[m+2],15,718787259),d=u(d,_,f,l,t[m+9],21,-343485551),l=e(l,i),d=e(d,s),_=e(_,r),f=e(f,o);return[l,d,_,f]};return{hexdigest:function(t){return r(l(i(t),8*t.length))},hash:function(t){return s(l(i(t),8*t.length))}}}),function(t,e){"function"==typeof define&&define.amd?define("strophe-utils",function(){return e()}):t.stropheUtils=e()}(this,function(){return{utf16to8:function(t){var e,n,i="",s=t.length;for(e=0;e<s;e++)n=t.charCodeAt(e),n>=0&&n<=127?i+=t.charAt(e):n>2047?(i+=String.fromCharCode(224|n>>12&15),i+=String.fromCharCode(128|n>>6&63),i+=String.fromCharCode(128|n>>0&63)):(i+=String.fromCharCode(192|n>>6&31),i+=String.fromCharCode(128|n>>0&63));return i}}}),function(t,e){if("function"!=typeof define||!define.amd)return e();define("strophe-polyfill",[],function(){return e()})}(0,function(){Function.prototype.bind||(Function.prototype.bind=function(t){var e=this,n=Array.prototype.slice,i=Array.prototype.concat,s=n.call(arguments,1);return function(){return e.apply(t||this,i.call(s,n.call(arguments,0)))}}),Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t){var e=this.length,n=Number(arguments[1])||0;for(n=n<0?Math.ceil(n):Math.floor(n),n<0&&(n+=e);n<e;n++)if(n in this&&this[n]===t)return n;return-1})}),function(t,e){if("function"==typeof define&&define.amd)define("strophe-core",["strophe-sha1","strophe-base64","strophe-md5","strophe-utils","strophe-polyfill"],function(){return e.apply(this,arguments)});else{var n=e(t.SHA1,t.Base64,t.MD5,t.stropheUtils);window.Strophe=n.Strophe,window.$build=n.$build,window.$iq=n.$iq,window.$msg=n.$msg,window.$pres=n.$pres,window.SHA1=n.SHA1,window.Base64=n.Base64,window.MD5=n.MD5,window.b64_hmac_sha1=n.SHA1.b64_hmac_sha1,window.b64_sha1=n.SHA1.b64_sha1,window.str_hmac_sha1=n.SHA1.str_hmac_sha1,window.str_sha1=n.SHA1.str_sha1}}(this,function(t,e,n,i){function s(t,e){return new h.Builder(t,e)}function r(t){return new h.Builder("message",t)}function o(t){return new h.Builder("iq",t)}function a(t){return new h.Builder("presence",t)}var h;return h={VERSION:"1.2.4",NS:{HTTPBIND:"http://jabber.org/protocol/httpbind",BOSH:"urn:xmpp:xbosh",CLIENT:"jabber:client",AUTH:"jabber:iq:auth",ROSTER:"jabber:iq:roster",PROFILE:"jabber:iq:profile",DISCO_INFO:"http://jabber.org/protocol/disco#info",DISCO_ITEMS:"http://jabber.org/protocol/disco#items",MUC:"http://jabber.org/protocol/muc",SASL:"urn:ietf:params:xml:ns:xmpp-sasl",STREAM:"http://etherx.jabber.org/streams",FRAMING:"urn:ietf:params:xml:ns:xmpp-framing",BIND:"urn:ietf:params:xml:ns:xmpp-bind",SESSION:"urn:ietf:params:xml:ns:xmpp-session",VERSION:"jabber:iq:version",STANZAS:"urn:ietf:params:xml:ns:xmpp-stanzas",XHTML_IM:"http://jabber.org/protocol/xhtml-im",XHTML:"http://www.w3.org/1999/xhtml"},XHTML:{tags:["a","blockquote","br","cite","em","img","li","ol","p","span","strong","ul","body"],attributes:{a:["href"],blockquote:["style"],br:[],cite:["style"],em:[],img:["src","alt","style","height","width"],li:["style"],ol:["style"],p:["style"],span:["style"],strong:[],ul:["style"],body:[]},css:["background-color","color","font-family","font-size","font-style","font-weight","margin-left","margin-right","text-align","text-decoration"],validTag:function(t){for(var e=0;e<h.XHTML.tags.length;e++)if(t==h.XHTML.tags[e])return!0;return!1},validAttribute:function(t,e){if(void 0!==h.XHTML.attributes[t]&&h.XHTML.attributes[t].length>0)for(var n=0;n<h.XHTML.attributes[t].length;n++)if(e==h.XHTML.attributes[t][n])return!0;return!1},validCSS:function(t){for(var e=0;e<h.XHTML.css.length;e++)if(t==h.XHTML.css[e])return!0;return!1}},Status:{ERROR:0,CONNECTING:1,CONNFAIL:2,AUTHENTICATING:3,AUTHFAIL:4,CONNECTED:5,DISCONNECTED:6,DISCONNECTING:7,ATTACHED:8,REDIRECT:9},LogLevel:{DEBUG:0,INFO:1,WARN:2,ERROR:3,FATAL:4},ElementType:{NORMAL:1,TEXT:3,CDATA:4,FRAGMENT:11},TIMEOUT:1.1,SECONDARY_TIMEOUT:.1,addNamespace:function(t,e){h.NS[t]=e},forEachChild:function(t,e,n){var i,s;for(i=0;i<t.childNodes.length;i++)s=t.childNodes[i],s.nodeType!=h.ElementType.NORMAL||e&&!this.isTagEqual(s,e)||n(s)},isTagEqual:function(t,e){return t.tagName==e},_xmlGenerator:null,_makeGenerator:function(){var t;return void 0===document.implementation.createDocument||document.implementation.createDocument&&document.documentMode&&document.documentMode<10?(t=this._getIEXmlDom(),t.appendChild(t.createElement("strophe"))):t=document.implementation.createDocument("jabber:client","strophe",null),t},xmlGenerator:function(){return h._xmlGenerator||(h._xmlGenerator=h._makeGenerator()),h._xmlGenerator},_getIEXmlDom:function(){for(var t=null,e=["Msxml2.DOMDocument.6.0","Msxml2.DOMDocument.5.0","Msxml2.DOMDocument.4.0","MSXML2.DOMDocument.3.0","MSXML2.DOMDocument","MSXML.DOMDocument","Microsoft.XMLDOM"],n=0;n<e.length&&null===t;n++)try{t=new ActiveXObject(e[n])}catch(e){t=null}return t},xmlElement:function(t){if(!t)return null;var e,n,i,s=h.xmlGenerator().createElement(t);for(e=1;e<arguments.length;e++){var r=arguments[e];if(r)if("string"==typeof r||"number"==typeof r)s.appendChild(h.xmlTextNode(r));else if("object"==typeof r&&"function"==typeof r.sort)for(n=0;n<r.length;n++){var o=r[n];"object"==typeof o&&"function"==typeof o.sort&&void 0!==o[1]&&null!==o[1]&&s.setAttribute(o[0],o[1])}else if("object"==typeof r)for(i in r)r.hasOwnProperty(i)&&void 0!==r[i]&&null!==r[i]&&s.setAttribute(i,r[i])}return s},xmlescape:function(t){return t=t.replace(/\&/g,"&amp;"),t=t.replace(/</g,"&lt;"),t=t.replace(/>/g,"&gt;"),t=t.replace(/'/g,"&apos;"),t=t.replace(/"/g,"&quot;")},xmlunescape:function(t){return t=t.replace(/\&amp;/g,"&"),t=t.replace(/&lt;/g,"<"),t=t.replace(/&gt;/g,">"),t=t.replace(/&apos;/g,"'"),t=t.replace(/&quot;/g,'"')},xmlTextNode:function(t){return h.xmlGenerator().createTextNode(t)},xmlHtmlNode:function(t){var e;if(window.DOMParser){e=(new DOMParser).parseFromString(t,"text/xml")}else e=new ActiveXObject("Microsoft.XMLDOM"),e.async="false",e.loadXML(t);return e},getText:function(t){if(!t)return null;var e="";0===t.childNodes.length&&t.nodeType==h.ElementType.TEXT&&(e+=t.nodeValue);for(var n=0;n<t.childNodes.length;n++)t.childNodes[n].nodeType==h.ElementType.TEXT&&(e+=t.childNodes[n].nodeValue);return h.xmlescape(e)},copyElement:function(t){var e,n;if(t.nodeType==h.ElementType.NORMAL){for(n=h.xmlElement(t.tagName),e=0;e<t.attributes.length;e++)n.setAttribute(t.attributes[e].nodeName,t.attributes[e].value);for(e=0;e<t.childNodes.length;e++)n.appendChild(h.copyElement(t.childNodes[e]))}else t.nodeType==h.ElementType.TEXT&&(n=h.xmlGenerator().createTextNode(t.nodeValue));return n},createHtml:function(t){var e,n,i,s,r,o,a,c,u,l,d;if(t.nodeType==h.ElementType.NORMAL)if(s=t.nodeName.toLowerCase(),h.XHTML.validTag(s))try{for(n=h.xmlElement(s),e=0;e<h.XHTML.attributes[s].length;e++)if(r=h.XHTML.attributes[s][e],void 0!==(o=t.getAttribute(r))&&null!==o&&""!==o&&!1!==o&&0!==o)if("style"==r&&"object"==typeof o&&void 0!==o.cssText&&(o=o.cssText),"style"==r){for(a=[],c=o.split(";"),i=0;i<c.length;i++)u=c[i].split(":"),l=u[0].replace(/^\s*/,"").replace(/\s*$/,"").toLowerCase(),h.XHTML.validCSS(l)&&(d=u[1].replace(/^\s*/,"").replace(/\s*$/,""),a.push(l+": "+d));a.length>0&&(o=a.join("; "),n.setAttribute(r,o))}else n.setAttribute(r,o);for(e=0;e<t.childNodes.length;e++)n.appendChild(h.createHtml(t.childNodes[e]))}catch(t){n=h.xmlTextNode("")}else for(n=h.xmlGenerator().createDocumentFragment(),e=0;e<t.childNodes.length;e++)n.appendChild(h.createHtml(t.childNodes[e]));else if(t.nodeType==h.ElementType.FRAGMENT)for(n=h.xmlGenerator().createDocumentFragment(),e=0;e<t.childNodes.length;e++)n.appendChild(h.createHtml(t.childNodes[e]));else t.nodeType==h.ElementType.TEXT&&(n=h.xmlTextNode(t.nodeValue));return n},escapeNode:function(t){return"string"!=typeof t?t:t.replace(/^\s+|\s+$/g,"").replace(/\\/g,"\\5c").replace(/ /g,"\\20").replace(/\"/g,"\\22").replace(/\&/g,"\\26").replace(/\'/g,"\\27").replace(/\//g,"\\2f").replace(/:/g,"\\3a").replace(/</g,"\\3c").replace(/>/g,"\\3e").replace(/@/g,"\\40")},unescapeNode:function(t){return"string"!=typeof t?t:t.replace(/\\20/g," ").replace(/\\22/g,'"').replace(/\\26/g,"&").replace(/\\27/g,"'").replace(/\\2f/g,"/").replace(/\\3a/g,":").replace(/\\3c/g,"<").replace(/\\3e/g,">").replace(/\\40/g,"@").replace(/\\5c/g,"\\")},getNodeFromJid:function(t){return t.indexOf("@")<0?null:t.split("@")[0]},getDomainFromJid:function(t){var e=h.getBareJidFromJid(t);if(e.indexOf("@")<0)return e;var n=e.split("@");return n.splice(0,1),n.join("@")},getResourceFromJid:function(t){var e=t.split("/");return e.length<2?null:(e.splice(0,1),e.join("/"))},getBareJidFromJid:function(t){return t?t.split("/")[0]:null},log:function(t,e){},debug:function(t){this.log(this.LogLevel.DEBUG,t)},info:function(t){this.log(this.LogLevel.INFO,t)},warn:function(t){this.log(this.LogLevel.WARN,t)},error:function(t){this.log(this.LogLevel.ERROR,t)},fatal:function(t){this.log(this.LogLevel.FATAL,t)},serialize:function(t){var e;if(!t)return null;"function"==typeof t.tree&&(t=t.tree());var n,i,s=t.nodeName;for(t.getAttribute("_realname")&&(s=t.getAttribute("_realname")),e="<"+s,n=0;n<t.attributes.length;n++)"_realname"!=t.attributes[n].nodeName&&(e+=" "+t.attributes[n].nodeName+"='"+t.attributes[n].value.replace(/&/g,"&amp;").replace(/\'/g,"&apos;").replace(/>/g,"&gt;").replace(/</g,"&lt;")+"'");if(t.childNodes.length>0){for(e+=">",n=0;n<t.childNodes.length;n++)switch(i=t.childNodes[n],i.nodeType){case h.ElementType.NORMAL:e+=h.serialize(i);break;case h.ElementType.TEXT:e+=h.xmlescape(i.nodeValue);break;case h.ElementType.CDATA:e+="<![CDATA["+i.nodeValue+"]]>"}e+="</"+s+">"}else e+="/>";return e},_requestId:0,_connectionPlugins:{},addConnectionPlugin:function(t,e){h._connectionPlugins[t]=e}},h.Builder=function(t,e){"presence"!=t&&"message"!=t&&"iq"!=t||(e&&!e.xmlns?e.xmlns=h.NS.CLIENT:e||(e={xmlns:h.NS.CLIENT})),this.nodeTree=h.xmlElement(t,e),this.node=this.nodeTree},h.Builder.prototype={tree:function(){return this.nodeTree},toString:function(){return h.serialize(this.nodeTree)},up:function(){return this.node=this.node.parentNode,this},attrs:function(t){for(var e in t)t.hasOwnProperty(e)&&(void 0===t[e]?this.node.removeAttribute(e):this.node.setAttribute(e,t[e]));return this},c:function(t,e,n){var i=h.xmlElement(t,e,n);return this.node.appendChild(i),"string"!=typeof n&&(this.node=i),this},cnode:function(t){var e,n=h.xmlGenerator();try{e=void 0!==n.importNode}catch(t){e=!1}var i=e?n.importNode(t,!0):h.copyElement(t);return this.node.appendChild(i),this.node=i,this},t:function(t){var e=h.xmlTextNode(t);return this.node.appendChild(e),this},h:function(t){var e=document.createElement("body");e.innerHTML=t;for(var n=h.createHtml(e);n.childNodes.length>0;)this.node.appendChild(n.childNodes[0]);return this}},h.Handler=function(t,e,n,i,s,r,o){this.handler=t,this.ns=e,this.name=n,this.type=i,this.id=s,this.options=o||{matchBare:!1},this.options.matchBare||(this.options.matchBare=!1),this.options.matchBare?this.from=r?h.getBareJidFromJid(r):null:this.from=r,this.user=!0},h.Handler.prototype={isMatch:function(t){var e,n=null;if(n=this.options.matchBare?h.getBareJidFromJid(t.getAttribute("from")):t.getAttribute("from"),e=!1,this.ns){var i=this;h.forEachChild(t,null,function(t){t.getAttribute("xmlns")==i.ns&&(e=!0)}),e=e||t.getAttribute("xmlns")==this.ns}else e=!0;var s=t.getAttribute("type");return!(!e||this.name&&!h.isTagEqual(t,this.name)||this.type&&(Array.isArray(this.type)?-1==this.type.indexOf(s):s!=this.type)||this.id&&t.getAttribute("id")!=this.id||this.from&&n!=this.from)},run:function(t){var e=null;try{e=this.handler(t)}catch(t){throw t.sourceURL?h.fatal("error: "+this.handler+" "+t.sourceURL+":"+t.line+" - "+t.name+": "+t.message):t.fileName?("undefined"!=typeof console&&(console.trace(),console.error(this.handler," - error - ",t,t.message)),h.fatal("error: "+this.handler+" "+t.fileName+":"+t.lineNumber+" - "+t.name+": "+t.message)):h.fatal("error: "+t.message+"\n"+t.stack),t}return e},toString:function(){return"{Handler: "+this.handler+"("+this.name+","+this.id+","+this.ns+")}"}},h.TimedHandler=function(t,e){this.period=t,this.handler=e,this.lastCalled=(new Date).getTime(),this.user=!0},h.TimedHandler.prototype={run:function(){return this.lastCalled=(new Date).getTime(),this.handler()},reset:function(){this.lastCalled=(new Date).getTime()},toString:function(){return"{TimedHandler: "+this.handler+"("+this.period+")}"}},h.Connection=function(t,e){this.service=t,this.options=e||{};var n=this.options.protocol||"";0===t.indexOf("ws:")||0===t.indexOf("wss:")||0===n.indexOf("ws")?this._proto=new h.Websocket(this):this._proto=new h.Bosh(this),this.jid="",this.domain=null,this.features=null,this._sasl_data={},this.do_session=!1,this.do_bind=!1,this.timedHandlers=[],this.handlers=[],this.removeTimeds=[],this.removeHandlers=[],this.addTimeds=[],this.addHandlers=[],this._authentication={},this._idleTimeout=null,this._disconnectTimeout=null,this.authenticated=!1,this.connected=!1,this.disconnecting=!1,this.do_authentication=!0,this.paused=!1,this.restored=!1,this._data=[],this._uniqueId=0,this._sasl_success_handler=null,this._sasl_failure_handler=null,this._sasl_challenge_handler=null,this.maxRetries=5,this._idleTimeout=setTimeout(this._onIdle.bind(this),100);for(var i in h._connectionPlugins)if(h._connectionPlugins.hasOwnProperty(i)){var s=h._connectionPlugins[i],r=function(){};r.prototype=s,this[i]=new r,this[i].init(this)}},h.Connection.prototype={reset:function(){this._proto._reset(),this.do_session=!1,this.do_bind=!1,this.timedHandlers=[],this.handlers=[],this.removeTimeds=[],this.removeHandlers=[],this.addTimeds=[],this.addHandlers=[],this._authentication={},this.authenticated=!1,this.connected=!1,this.disconnecting=!1,this.restored=!1,this._data=[],this._requests=[],this._uniqueId=0},pause:function(){this.paused=!0},resume:function(){this.paused=!1},getUniqueId:function(t){var e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)});return"string"==typeof t||"number"==typeof t?e+":"+t:e+""},connect:function(t,e,n,i,s,r,o){this.jid=t,this.authzid=h.getBareJidFromJid(this.jid),this.authcid=o||h.getNodeFromJid(this.jid),this.pass=e,this.servtype="xmpp",this.connect_callback=n,this.disconnecting=!1,this.connected=!1,this.authenticated=!1,this.restored=!1,this.domain=h.getDomainFromJid(this.jid),this._changeConnectStatus(h.Status.CONNECTING,null),this._proto._connect(i,s,r)},attach:function(t,e,n,i,s,r,o){if(!(this._proto instanceof h.Bosh))throw{name:"StropheSessionError",message:'The "attach" method can only be used with a BOSH connection.'};this._proto._attach(t,e,n,i,s,r,o)},restore:function(t,e,n,i,s){if(!this._sessionCachingSupported())throw{name:"StropheSessionError",message:'The "restore" method can only be used with a BOSH connection.'};this._proto._restore(t,e,n,i,s)},_sessionCachingSupported:function(){if(this._proto instanceof h.Bosh){if(!JSON)return!1;try{window.sessionStorage.setItem("_strophe_","_strophe_"),window.sessionStorage.removeItem("_strophe_")}catch(t){return!1}return!0}return!1},xmlInput:function(t){},xmlOutput:function(t){},rawInput:function(t){},rawOutput:function(t){},nextValidRid:function(t){},send:function(t){if(null!==t){if("function"==typeof t.sort)for(var e=0;e<t.length;e++)this._queueData(t[e]);else"function"==typeof t.tree?this._queueData(t.tree()):this._queueData(t);this._proto._send()}},flush:function(){clearTimeout(this._idleTimeout),this._onIdle()},sendIQ:function(t,e,n,i){var s=null,r=this;"function"==typeof t.tree&&(t=t.tree());var o=t.getAttribute("id");o||(o=this.getUniqueId("sendIQ"),t.setAttribute("id",o));var a=t.getAttribute("to"),c=this.jid,u=this.addHandler(function(t){s&&r.deleteTimedHandler(s);var i=!1,o=t.getAttribute("from");if(o!==a&&(a||o!==h.getBareJidFromJid(c)&&o!==h.getDomainFromJid(c)&&o!==c)||(i=!0),!i)throw{name:"StropheError",message:"Got answer to IQ from wrong jid:"+o+"\nExpected jid: "+a};var u=t.getAttribute("type");if("result"==u)e&&e(t);else{if("error"!=u)throw{name:"StropheError",message:"Got bad IQ type of "+u};n&&n(t)}},null,"iq",["error","result"],o);return i&&(s=this.addTimedHandler(i,function(){return r.deleteHandler(u),n&&n(null),!1})),this.send(t),o},_queueData:function(t){if(null===t||!t.tagName||!t.childNodes)throw{name:"StropheError",message:"Cannot queue non-DOMElement."};this._data.push(t)},_sendRestart:function(){this._data.push("restart"),this._proto._sendRestart(),this._idleTimeout=setTimeout(this._onIdle.bind(this),100)},addTimedHandler:function(t,e){var n=new h.TimedHandler(t,e);return this.addTimeds.push(n),n},deleteTimedHandler:function(t){this.removeTimeds.push(t)},addHandler:function(t,e,n,i,s,r,o){var a=new h.Handler(t,e,n,i,s,r,o);return this.addHandlers.push(a),a},deleteHandler:function(t){this.removeHandlers.push(t);var e=this.addHandlers.indexOf(t);e>=0&&this.addHandlers.splice(e,1)},disconnect:function(t){if(this._changeConnectStatus(h.Status.DISCONNECTING,t),h.info("Disconnect was called because: "+t),this.connected){var e=!1;this.disconnecting=!0,this.authenticated&&(e=a({xmlns:h.NS.CLIENT,type:"unavailable"})),this._disconnectTimeout=this._addSysTimedHandler(3e3,this._onDisconnectTimeout.bind(this)),this._proto._disconnect(e)}else h.info("Disconnect was called before Strophe connected to the server"),this._proto._abortAllRequests()},_changeConnectStatus:function(t,e){for(var n in h._connectionPlugins)if(h._connectionPlugins.hasOwnProperty(n)){var i=this[n];if(i.statusChanged)try{i.statusChanged(t,e)}catch(t){h.error(n+" plugin caused an exception changing status: "+t)}}if(this.connect_callback)try{this.connect_callback(t,e)}catch(t){h.error("User connection callback caused an exception: "+t)}},_doDisconnect:function(t){"number"==typeof this._idleTimeout&&clearTimeout(this._idleTimeout),null!==this._disconnectTimeout&&(this.deleteTimedHandler(this._disconnectTimeout),this._disconnectTimeout=null),h.info("_doDisconnect was called"),this._proto._doDisconnect(),this.authenticated=!1,this.disconnecting=!1,this.restored=!1,this.handlers=[],this.timedHandlers=[],this.removeTimeds=[],this.removeHandlers=[],this.addTimeds=[],this.addHandlers=[],this._changeConnectStatus(h.Status.DISCONNECTED,t),this.connected=!1},_dataRecv:function(t,e){h.info("_dataRecv called");var n=this._proto._reqToData(t);if(null!==n){this.xmlInput!==h.Connection.prototype.xmlInput&&(n.nodeName===this._proto.strip&&n.childNodes.length?this.xmlInput(n.childNodes[0]):this.xmlInput(n)),this.rawInput!==h.Connection.prototype.rawInput&&(e?this.rawInput(e):this.rawInput(h.serialize(n)));for(var i,s;this.removeHandlers.length>0;)s=this.removeHandlers.pop(),(i=this.handlers.indexOf(s))>=0&&this.handlers.splice(i,1);for(;this.addHandlers.length>0;)this.handlers.push(this.addHandlers.pop());if(this.disconnecting&&this._proto._emptyQueue())return void this._doDisconnect();var r,o,a=n.getAttribute("type");if(null!==a&&"terminate"==a){if(this.disconnecting)return;return r=n.getAttribute("condition"),o=n.getElementsByTagName("conflict"),null!==r?("remote-stream-error"==r&&o.length>0&&(r="conflict"),this._changeConnectStatus(h.Status.CONNFAIL,r)):this._changeConnectStatus(h.Status.CONNFAIL,"unknown"),void this._doDisconnect(r)}var c=this;h.forEachChild(n,null,function(t){var e,n;for(n=c.handlers,c.handlers=[],e=0;e<n.length;e++){var i=n[e];try{!i.isMatch(t)||!c.authenticated&&i.user?c.handlers.push(i):i.run(t)&&c.handlers.push(i)}catch(t){h.warn("Removing Strophe handlers due to uncaught exception: "+t.message)}}})}},mechanisms:{},_connect_cb:function(t,e,n){h.info("_connect_cb was called"),this.connected=!0;var i;try{i=this._proto._reqToData(t)}catch(t){if("badformat"!=t)throw t;this._changeConnectStatus(h.Status.CONNFAIL,"bad-format"),this._doDisconnect("bad-format")}if(i){this.xmlInput!==h.Connection.prototype.xmlInput&&(i.nodeName===this._proto.strip&&i.childNodes.length?this.xmlInput(i.childNodes[0]):this.xmlInput(i)),this.rawInput!==h.Connection.prototype.rawInput&&(n?this.rawInput(n):this.rawInput(h.serialize(i)));if(this._proto._connect_cb(i)!==h.Status.CONNFAIL){this._authentication.sasl_scram_sha1=!1,this._authentication.sasl_plain=!1,this._authentication.sasl_digest_md5=!1,this._authentication.sasl_anonymous=!1,this._authentication.legacy_auth=!1;var s;s=i.getElementsByTagNameNS?i.getElementsByTagNameNS(h.NS.STREAM,"features").length>0:i.getElementsByTagName("stream:features").length>0||i.getElementsByTagName("features").length>0;var r,o,a=i.getElementsByTagName("mechanism"),c=[];if(!s)return void this._proto._no_auth_received(e);if(a.length>0)for(r=0;r<a.length;r++)o=h.getText(a[r]),this.mechanisms[o]&&c.push(this.mechanisms[o]);if(this._authentication.legacy_auth=i.getElementsByTagName("auth").length>0,!(this._authentication.legacy_auth||c.length>0))return void this._proto._no_auth_received(e);!1!==this.do_authentication&&this.authenticate(c)}}},authenticate:function(t){var n;for(n=0;n<t.length-1;++n){for(var i=n,r=n+1;r<t.length;++r)t[r].prototype.priority>t[i].prototype.priority&&(i=r);if(i!=n){var a=t[n];t[n]=t[i],t[i]=a}}var c=!1;for(n=0;n<t.length;++n)if(t[n].test(this)){this._sasl_success_handler=this._addSysHandler(this._sasl_success_cb.bind(this),null,"success",null,null),this._sasl_failure_handler=this._addSysHandler(this._sasl_failure_cb.bind(this),null,"failure",null,null),this._sasl_challenge_handler=this._addSysHandler(this._sasl_challenge_cb.bind(this),null,"challenge",null,null),this._sasl_mechanism=new t[n],this._sasl_mechanism.onStart(this);var u=s("auth",{xmlns:h.NS.SASL,mechanism:this._sasl_mechanism.name});if(this._sasl_mechanism.isClientFirst){var l=this._sasl_mechanism.onChallenge(this,null);u.t(e.encode(l))}this.send(u.tree()),c=!0;break}c||(null===h.getNodeFromJid(this.jid)?(this._changeConnectStatus(h.Status.CONNFAIL,"x-strophe-bad-non-anon-jid"),this.disconnect("x-strophe-bad-non-anon-jid")):(this._changeConnectStatus(h.Status.AUTHENTICATING,null),this._addSysHandler(this._auth1_cb.bind(this),null,null,null,"_auth_1"),this.send(o({type:"get",to:this.domain,id:"_auth_1"}).c("query",{xmlns:h.NS.AUTH}).c("username",{}).t(h.getNodeFromJid(this.jid)).tree())))},_sasl_challenge_cb:function(t){var n=e.decode(h.getText(t)),i=this._sasl_mechanism.onChallenge(this,n),r=s("response",{xmlns:h.NS.SASL});return""!==i&&r.t(e.encode(i)),this.send(r.tree()),!0},_auth1_cb:function(t){var e=o({type:"set",id:"_auth_2"}).c("query",{xmlns:h.NS.AUTH}).c("username",{}).t(h.getNodeFromJid(this.jid)).up().c("password").t(this.pass);return h.getResourceFromJid(this.jid)||(this.jid=h.getBareJidFromJid(this.jid)+"/strophe"),e.up().c("resource",{}).t(h.getResourceFromJid(this.jid)),this._addSysHandler(this._auth2_cb.bind(this),null,null,null,"_auth_2"),this.send(e.tree()),!1},_sasl_success_cb:function(t){if(this._sasl_data["server-signature"]){var n,i=e.decode(h.getText(t)),s=/([a-z]+)=([^,]+)(,|$)/,r=i.match(s);if("v"==r[1]&&(n=r[2]),n!=this._sasl_data["server-signature"])return this.deleteHandler(this._sasl_failure_handler),this._sasl_failure_handler=null,this._sasl_challenge_handler&&(this.deleteHandler(this._sasl_challenge_handler),this._sasl_challenge_handler=null),this._sasl_data={},this._sasl_failure_cb(null)}h.info("SASL authentication succeeded."),this._sasl_mechanism&&this._sasl_mechanism.onSuccess(),this.deleteHandler(this._sasl_failure_handler),this._sasl_failure_handler=null,this._sasl_challenge_handler&&(this.deleteHandler(this._sasl_challenge_handler),this._sasl_challenge_handler=null);var o=[],a=function(t,e){for(;t.length;)this.deleteHandler(t.pop());return this._sasl_auth1_cb.bind(this)(e),!1};return o.push(this._addSysHandler(function(t){a.bind(this)(o,t)}.bind(this),null,"stream:features",null,null)),o.push(this._addSysHandler(function(t){a.bind(this)(o,t)}.bind(this),h.NS.STREAM,"features",null,null)),this._sendRestart(),!1},_sasl_auth1_cb:function(t){this.features=t;var e,n;for(e=0;e<t.childNodes.length;e++)n=t.childNodes[e],"bind"==n.nodeName&&(this.do_bind=!0),"session"==n.nodeName&&(this.do_session=!0);if(!this.do_bind)return this._changeConnectStatus(h.Status.AUTHFAIL,null),!1;this._addSysHandler(this._sasl_bind_cb.bind(this),null,null,null,"_bind_auth_2");var i=h.getResourceFromJid(this.jid);return i?this.send(o({type:"set",id:"_bind_auth_2"}).c("bind",{xmlns:h.NS.BIND}).c("resource",{}).t(i).tree()):this.send(o({type:"set",id:"_bind_auth_2"}).c("bind",{xmlns:h.NS.BIND}).tree()),!1},_sasl_bind_cb:function(t){if("error"==t.getAttribute("type")){h.info("SASL binding failed.");var e,n=t.getElementsByTagName("conflict");return n.length>0&&(e="conflict"),this._changeConnectStatus(h.Status.AUTHFAIL,e),!1}var i,s=t.getElementsByTagName("bind");if(!(s.length>0))return h.info("SASL binding failed."),this._changeConnectStatus(h.Status.AUTHFAIL,null),!1;i=s[0].getElementsByTagName("jid"),i.length>0&&(this.jid=h.getText(i[0]),this.do_session?(this._addSysHandler(this._sasl_session_cb.bind(this),null,null,null,"_session_auth_2"),this.send(o({type:"set",id:"_session_auth_2"}).c("session",{xmlns:h.NS.SESSION}).tree())):(this.authenticated=!0,this._changeConnectStatus(h.Status.CONNECTED,null)))},_sasl_session_cb:function(t){if("result"==t.getAttribute("type"))this.authenticated=!0,this._changeConnectStatus(h.Status.CONNECTED,null);else if("error"==t.getAttribute("type"))return h.info("Session creation failed."),this._changeConnectStatus(h.Status.AUTHFAIL,null),!1;return!1},_sasl_failure_cb:function(t){return this._sasl_success_handler&&(this.deleteHandler(this._sasl_success_handler),this._sasl_success_handler=null),this._sasl_challenge_handler&&(this.deleteHandler(this._sasl_challenge_handler),this._sasl_challenge_handler=null),this._sasl_mechanism&&this._sasl_mechanism.onFailure(),this._changeConnectStatus(h.Status.AUTHFAIL,null),!1},_auth2_cb:function(t){return"result"==t.getAttribute("type")?(this.authenticated=!0,this._changeConnectStatus(h.Status.CONNECTED,null)):"error"==t.getAttribute("type")&&(this._changeConnectStatus(h.Status.AUTHFAIL,null),this.disconnect("authentication failed")),!1},_addSysTimedHandler:function(t,e){var n=new h.TimedHandler(t,e)
;return n.user=!1,this.addTimeds.push(n),n},_addSysHandler:function(t,e,n,i,s){var r=new h.Handler(t,e,n,i,s);return r.user=!1,this.addHandlers.push(r),r},_onDisconnectTimeout:function(){return h.info("_onDisconnectTimeout was called"),this._proto._onDisconnectTimeout(),this._doDisconnect(),!1},_onIdle:function(){for(var t,e,n,i;this.addTimeds.length>0;)this.timedHandlers.push(this.addTimeds.pop());for(;this.removeTimeds.length>0;)e=this.removeTimeds.pop(),(t=this.timedHandlers.indexOf(e))>=0&&this.timedHandlers.splice(t,1);var s=(new Date).getTime();for(i=[],t=0;t<this.timedHandlers.length;t++)e=this.timedHandlers[t],!this.authenticated&&e.user||(n=e.lastCalled+e.period,n-s<=0?e.run()&&i.push(e):i.push(e));this.timedHandlers=i,clearTimeout(this._idleTimeout),this._proto._onIdle(),this.connected&&(this._idleTimeout=setTimeout(this._onIdle.bind(this),100))}},h.SASLMechanism=function(t,e,n){this.name=t,this.isClientFirst=e,this.priority=n},h.SASLMechanism.prototype={test:function(t){return!0},onStart:function(t){this._connection=t},onChallenge:function(t,e){throw new Error("You should implement challenge handling!")},onFailure:function(){this._connection=null},onSuccess:function(){this._connection=null}},h.SASLAnonymous=function(){},h.SASLAnonymous.prototype=new h.SASLMechanism("ANONYMOUS",!1,10),h.SASLAnonymous.test=function(t){return null===t.authcid},h.Connection.prototype.mechanisms[h.SASLAnonymous.prototype.name]=h.SASLAnonymous,h.SASLPlain=function(){},h.SASLPlain.prototype=new h.SASLMechanism("PLAIN",!0,20),h.SASLPlain.test=function(t){return null!==t.authcid},h.SASLPlain.prototype.onChallenge=function(t){var e=t.authzid;return e+="\0",e+=t.authcid,e+="\0",e+=t.pass,i.utf16to8(e)},h.Connection.prototype.mechanisms[h.SASLPlain.prototype.name]=h.SASLPlain,h.SASLSHA1=function(){},h.SASLSHA1.prototype=new h.SASLMechanism("SCRAM-SHA-1",!0,40),h.SASLSHA1.test=function(t){return null!==t.authcid},h.SASLSHA1.prototype.onChallenge=function(s,r,o){var a=o||n.hexdigest(1234567890*Math.random()),h="n="+i.utf16to8(s.authcid);return h+=",r=",h+=a,s._sasl_data.cnonce=a,s._sasl_data["client-first-message-bare"]=h,h="n,,"+h,this.onChallenge=function(n,s){for(var r,o,a,h,c,u,l,d,_,f,m,p,g="c=biws,",S=n._sasl_data["client-first-message-bare"]+","+s+",",b=n._sasl_data.cnonce,v=/([a-z]+)=([^,]+)(,|$)/;s.match(v);){var y=s.match(v);switch(s=s.replace(y[0],""),y[1]){case"r":r=y[2];break;case"s":o=y[2];break;case"i":a=y[2]}}if(r.substr(0,b.length)!==b)return n._sasl_data={},n._sasl_failure_cb();for(g+="r="+r,S+=g,o=e.decode(o),o+="\0\0\0\x01",_=i.utf16to8(n.pass),h=u=t.core_hmac_sha1(_,o),l=1;l<a;l++){for(c=t.core_hmac_sha1(_,t.binb2str(u)),d=0;d<5;d++)h[d]^=c[d];u=c}for(h=t.binb2str(h),f=t.core_hmac_sha1(h,"Client Key"),m=t.str_hmac_sha1(h,"Server Key"),p=t.core_hmac_sha1(t.str_sha1(t.binb2str(f)),S),n._sasl_data["server-signature"]=t.b64_hmac_sha1(m,S),d=0;d<5;d++)f[d]^=p[d];return g+=",p="+e.encode(t.binb2str(f))}.bind(this),h},h.Connection.prototype.mechanisms[h.SASLSHA1.prototype.name]=h.SASLSHA1,h.SASLMD5=function(){},h.SASLMD5.prototype=new h.SASLMechanism("DIGEST-MD5",!1,30),h.SASLMD5.test=function(t){return null!==t.authcid},h.SASLMD5.prototype._quote=function(t){return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'},h.SASLMD5.prototype.onChallenge=function(t,e,s){for(var r,o=/([a-z]+)=("[^"]+"|[^,"]+)(?:,|$)/,a=s||n.hexdigest(""+1234567890*Math.random()),h="",c=null,u="";e.match(o);)switch(r=e.match(o),e=e.replace(r[0],""),r[2]=r[2].replace(/^"(.+)"$/,"$1"),r[1]){case"realm":h=r[2];break;case"nonce":u=r[2];break;case"qop":r[2];break;case"host":c=r[2]}var l=t.servtype+"/"+t.domain;null!==c&&(l=l+"/"+c);var d=i.utf16to8(t.authcid+":"+h+":"+this._connection.pass),_=n.hash(d)+":"+u+":"+a,f="AUTHENTICATE:"+l,m="";return m+="charset=utf-8,",m+="username="+this._quote(i.utf16to8(t.authcid))+",",m+="realm="+this._quote(h)+",",m+="nonce="+this._quote(u)+",",m+="nc=00000001,",m+="cnonce="+this._quote(a)+",",m+="digest-uri="+this._quote(l)+",",m+="response="+n.hexdigest(n.hexdigest(_)+":"+u+":00000001:"+a+":auth:"+n.hexdigest(f))+",",m+="qop=auth",this.onChallenge=function(){return""}.bind(this),m},h.Connection.prototype.mechanisms[h.SASLMD5.prototype.name]=h.SASLMD5,{Strophe:h,$build:s,$msg:r,$iq:o,$pres:a,SHA1:t,Base64:e,MD5:n}}),function(t,e){if("function"!=typeof define||!define.amd)return e(Strophe,$build);define("strophe-bosh",["strophe-core"],function(t){return e(t.Strophe,t.$build)})}(0,function(t,e){return t.Request=function(e,n,i,s){this.id=++t._requestId,this.xmlData=e,this.data=t.serialize(e),this.origFunc=n,this.func=n,this.rid=i,this.date=NaN,this.sends=s||0,this.abort=!1,this.dead=null,this.age=function(){return this.date?(new Date-this.date)/1e3:0},this.timeDead=function(){return this.dead?(new Date-this.dead)/1e3:0},this.xhr=this._newXHR()},t.Request.prototype={getResponse:function(){var e=null;if(this.xhr.responseXML&&this.xhr.responseXML.documentElement){if(e=this.xhr.responseXML.documentElement,"parsererror"==e.tagName)throw t.error("invalid response received"),t.error("responseText: "+this.xhr.responseText),t.error("responseXML: "+t.serialize(this.xhr.responseXML)),"parsererror"}else if(this.xhr.responseText)throw t.error("invalid response received"),t.error("responseText: "+this.xhr.responseText),"badformat";return e},_newXHR:function(){var t=null;return window.XMLHttpRequest?(t=new XMLHttpRequest,t.overrideMimeType&&t.overrideMimeType("text/xml; charset=utf-8")):window.ActiveXObject&&(t=new ActiveXObject("Microsoft.XMLHTTP")),t.onreadystatechange=this.func.bind(null,this),t}},t.Bosh=function(t){this._conn=t,this.rid=Math.floor(4294967295*Math.random()),this.sid=null,this.hold=1,this.wait=60,this.window=5,this.errors=0,this._requests=[]},t.Bosh.prototype={strip:null,_buildBody:function(){var n=e("body",{rid:this.rid++,xmlns:t.NS.HTTPBIND});return null!==this.sid&&n.attrs({sid:this.sid}),this._conn.options.keepalive&&this._cacheSession(),n},_reset:function(){this.rid=Math.floor(4294967295*Math.random()),this.sid=null,this.errors=0,window.sessionStorage.removeItem("strophe-bosh-session"),this._conn.nextValidRid(this.rid)},_connect:function(e,n,i){this.wait=e||this.wait,this.hold=n||this.hold,this.errors=0;var s=this._buildBody().attrs({to:this._conn.domain,"xml:lang":"en",wait:this.wait,hold:this.hold,content:"text/xml; charset=utf-8",ver:"1.6","xmpp:version":"1.0","xmlns:xmpp":t.NS.BOSH});i&&s.attrs({route:i});var r=this._conn._connect_cb;this._requests.push(new t.Request(s.tree(),this._onRequestStateChange.bind(this,r.bind(this._conn)),s.tree().getAttribute("rid"))),this._throttledRequestHandler()},_attach:function(e,n,i,s,r,o,a){this._conn.jid=e,this.sid=n,this.rid=i,this._conn.connect_callback=s,this._conn.domain=t.getDomainFromJid(this._conn.jid),this._conn.authenticated=!0,this._conn.connected=!0,this.wait=r||this.wait,this.hold=o||this.hold,this.window=a||this.window,this._conn._changeConnectStatus(t.Status.ATTACHED,null)},_restore:function(e,n,i,s,r){var o=JSON.parse(window.sessionStorage.getItem("strophe-bosh-session"));if(!(void 0!==o&&null!==o&&o.rid&&o.sid&&o.jid)||void 0!==e&&"null"!==e&&t.getBareJidFromJid(o.jid)!=t.getBareJidFromJid(e))throw{name:"StropheSessionError",message:"_restore: no restoreable session."};this._conn.restored=!0,this._attach(o.jid,o.sid,o.rid,n,i,s,r)},_cacheSession:function(){this._conn.authenticated?this._conn.jid&&this.rid&&this.sid&&window.sessionStorage.setItem("strophe-bosh-session",JSON.stringify({jid:this._conn.jid,rid:this.rid,sid:this.sid})):window.sessionStorage.removeItem("strophe-bosh-session")},_connect_cb:function(e){var n,i,s=e.getAttribute("type");if(null!==s&&"terminate"==s)return n=e.getAttribute("condition"),t.error("BOSH-Connection failed: "+n),i=e.getElementsByTagName("conflict"),null!==n?("remote-stream-error"==n&&i.length>0&&(n="conflict"),this._conn._changeConnectStatus(t.Status.CONNFAIL,n)):this._conn._changeConnectStatus(t.Status.CONNFAIL,"unknown"),this._conn._doDisconnect(n),t.Status.CONNFAIL;this.sid||(this.sid=e.getAttribute("sid"));var r=e.getAttribute("requests");r&&(this.window=parseInt(r,10));var o=e.getAttribute("hold");o&&(this.hold=parseInt(o,10));var a=e.getAttribute("wait");a&&(this.wait=parseInt(a,10))},_disconnect:function(t){this._sendTerminate(t)},_doDisconnect:function(){this.sid=null,this.rid=Math.floor(4294967295*Math.random()),window.sessionStorage.removeItem("strophe-bosh-session"),this._conn.nextValidRid(this.rid)},_emptyQueue:function(){return 0===this._requests.length},_hitError:function(e){this.errors++,t.warn("request errored, status: "+e+", number of errors: "+this.errors),this.errors>4&&this._conn._onDisconnectTimeout()},_no_auth_received:function(e){e=e?e.bind(this._conn):this._conn._connect_cb.bind(this._conn);var n=this._buildBody();this._requests.push(new t.Request(n.tree(),this._onRequestStateChange.bind(this,e.bind(this._conn)),n.tree().getAttribute("rid"))),this._throttledRequestHandler()},_onDisconnectTimeout:function(){this._abortAllRequests()},_abortAllRequests:function(){for(var t;this._requests.length>0;)t=this._requests.pop(),t.abort=!0,t.xhr.abort(),t.xhr.onreadystatechange=function(){}},_onIdle:function(){var e=this._conn._data;if(this._conn.authenticated&&0===this._requests.length&&0===e.length&&!this._conn.disconnecting&&(t.info("no requests during idle cycle, sending blank request"),e.push(null)),!this._conn.paused){if(this._requests.length<2&&e.length>0){for(var n=this._buildBody(),i=0;i<e.length;i++)null!==e[i]&&("restart"===e[i]?n.attrs({to:this._conn.domain,"xml:lang":"en","xmpp:restart":"true","xmlns:xmpp":t.NS.BOSH}):n.cnode(e[i]).up());delete this._conn._data,this._conn._data=[],this._requests.push(new t.Request(n.tree(),this._onRequestStateChange.bind(this,this._conn._dataRecv.bind(this._conn)),n.tree().getAttribute("rid"))),this._throttledRequestHandler()}if(this._requests.length>0){var s=this._requests[0].age();null!==this._requests[0].dead&&this._requests[0].timeDead()>Math.floor(t.SECONDARY_TIMEOUT*this.wait)&&this._throttledRequestHandler(),s>Math.floor(t.TIMEOUT*this.wait)&&(t.warn("Request "+this._requests[0].id+" timed out, over "+Math.floor(t.TIMEOUT*this.wait)+" seconds since last activity"),this._throttledRequestHandler())}}},_onRequestStateChange:function(e,n){if(t.debug("request id "+n.id+"."+n.sends+" state changed to "+n.xhr.readyState),n.abort)return void(n.abort=!1);var i;if(4==n.xhr.readyState){i=0;try{i=n.xhr.status}catch(t){}if(void 0===i&&(i=0),this.disconnecting&&i>=400)return void this._hitError(i);var s=this._requests[0]==n,r=this._requests[1]==n;(i>0&&i<500||n.sends>5)&&(this._removeRequest(n),t.debug("request id "+n.id+" should now be removed")),200==i?((r||s&&this._requests.length>0&&this._requests[0].age()>Math.floor(t.SECONDARY_TIMEOUT*this.wait))&&this._restartRequest(0),this._conn.nextValidRid(Number(n.rid)+1),t.debug("request id "+n.id+"."+n.sends+" got 200"),e(n),this.errors=0):(t.error("request id "+n.id+"."+n.sends+" error "+i+" happened"),(0===i||i>=400&&i<600||i>=12e3)&&(this._hitError(i),i>=400&&i<500&&(this._conn._changeConnectStatus(t.Status.DISCONNECTING,null),this._conn._doDisconnect()))),i>0&&i<500||n.sends>5||this._throttledRequestHandler()}},_processRequest:function(e){var n=this,i=this._requests[e],s=-1;try{4==i.xhr.readyState&&(s=i.xhr.status)}catch(n){t.error("caught an error in _requests["+e+"], reqStatus: "+s)}if(void 0===s&&(s=-1),i.sends>this._conn.maxRetries)return void this._conn._onDisconnectTimeout();var r=i.age(),o=!isNaN(r)&&r>Math.floor(t.TIMEOUT*this.wait),a=null!==i.dead&&i.timeDead()>Math.floor(t.SECONDARY_TIMEOUT*this.wait),h=4==i.xhr.readyState&&(s<1||s>=500);if((o||a||h)&&(a&&t.error("Request "+this._requests[e].id+" timed out (secondary), restarting"),i.abort=!0,i.xhr.abort(),i.xhr.onreadystatechange=function(){},this._requests[e]=new t.Request(i.xmlData,i.origFunc,i.rid,i.sends),i=this._requests[e]),0===i.xhr.readyState){t.debug("request id "+i.id+"."+i.sends+" posting");try{i.xhr.open("POST",this._conn.service,!this._conn.options.sync),i.xhr.setRequestHeader("Content-Type","text/xml; charset=utf-8")}catch(e){return t.error("XHR open failed."),this._conn.connected||this._conn._changeConnectStatus(t.Status.CONNFAIL,"bad-service"),void this._conn.disconnect()}var c=function(){if(i.date=new Date,n._conn.options.customHeaders){var t=n._conn.options.customHeaders;for(var e in t)t.hasOwnProperty(e)&&i.xhr.setRequestHeader(e,t[e])}i.xhr.send(i.data)};if(i.sends>1){var u=1e3*Math.min(Math.floor(t.TIMEOUT*this.wait),Math.pow(i.sends,3));setTimeout(c,u)}else c();i.sends++,this._conn.xmlOutput!==t.Connection.prototype.xmlOutput&&(i.xmlData.nodeName===this.strip&&i.xmlData.childNodes.length?this._conn.xmlOutput(i.xmlData.childNodes[0]):this._conn.xmlOutput(i.xmlData)),this._conn.rawOutput!==t.Connection.prototype.rawOutput&&this._conn.rawOutput(i.data)}else t.debug("_processRequest: "+(0===e?"first":"second")+" request has readyState of "+i.xhr.readyState)},_removeRequest:function(e){t.debug("removing request");var n;for(n=this._requests.length-1;n>=0;n--)e==this._requests[n]&&this._requests.splice(n,1);e.xhr.onreadystatechange=function(){},this._throttledRequestHandler()},_restartRequest:function(t){var e=this._requests[t];null===e.dead&&(e.dead=new Date),this._processRequest(t)},_reqToData:function(t){try{return t.getResponse()}catch(t){if("parsererror"!=t)throw t;this._conn.disconnect("strophe-parsererror")}},_sendTerminate:function(e){t.info("_sendTerminate was called");var n=this._buildBody().attrs({type:"terminate"});e&&n.cnode(e.tree());var i=new t.Request(n.tree(),this._onRequestStateChange.bind(this,this._conn._dataRecv.bind(this._conn)),n.tree().getAttribute("rid"));this._requests.push(i),this._throttledRequestHandler()},_send:function(){clearTimeout(this._conn._idleTimeout),this._throttledRequestHandler(),this._conn._idleTimeout=setTimeout(this._conn._onIdle.bind(this._conn),100)},_sendRestart:function(){this._throttledRequestHandler(),clearTimeout(this._conn._idleTimeout)},_throttledRequestHandler:function(){this._requests?t.debug("_throttledRequestHandler called with "+this._requests.length+" requests"):t.debug("_throttledRequestHandler called with undefined requests"),this._requests&&0!==this._requests.length&&(this._requests.length>0&&this._processRequest(0),this._requests.length>1&&Math.abs(this._requests[0].rid-this._requests[1].rid)<this.window&&this._processRequest(1))}},t}),function(t,e){if("function"!=typeof define||!define.amd)return e(Strophe,$build);define("strophe-websocket",["strophe-core"],function(t){return e(t.Strophe,t.$build)})}(0,function(t,e){return t.Websocket=function(t){this._conn=t,this.strip="wrapper";var e=t.service;if(0!==e.indexOf("ws:")&&0!==e.indexOf("wss:")){var n="";"ws"===t.options.protocol&&"https:"!==window.location.protocol?n+="ws":n+="wss",n+="://"+window.location.host,0!==e.indexOf("/")?n+=window.location.pathname+e:n+=e,t.service=n}},t.Websocket.prototype={_buildStream:function(){return e("open",{xmlns:t.NS.FRAMING,to:this._conn.domain,version:"1.0"})},_check_streamerror:function(e,n){var i;if(i=e.getElementsByTagNameNS?e.getElementsByTagNameNS(t.NS.STREAM,"error"):e.getElementsByTagName("stream:error"),0===i.length)return!1;for(var s=i[0],r="",o="",a=0;a<s.childNodes.length;a++){var h=s.childNodes[a];if("urn:ietf:params:xml:ns:xmpp-streams"!==h.getAttribute("xmlns"))break;"text"===h.nodeName?o=h.textContent:r=h.nodeName}var c="WebSocket stream error: ";return c+=r||"unknown",o&&(c+=" - "+r),t.error(c),this._conn._changeConnectStatus(n,r),this._conn._doDisconnect(),!0},_reset:function(){},_connect:function(){this._closeSocket(),this.socket=new WebSocket(this._conn.service,"xmpp"),this.socket.onopen=this._onOpen.bind(this),this.socket.onerror=this._onError.bind(this),this.socket.onclose=this._onClose.bind(this),this.socket.onmessage=this._connect_cb_wrapper.bind(this)},_connect_cb:function(e){if(this._check_streamerror(e,t.Status.CONNFAIL))return t.Status.CONNFAIL},_handleStreamStart:function(e){var n=!1,i=e.getAttribute("xmlns");"string"!=typeof i?n="Missing xmlns in <open />":i!==t.NS.FRAMING&&(n="Wrong xmlns in <open />: "+i);var s=e.getAttribute("version");return"string"!=typeof s?n="Missing version in <open />":"1.0"!==s&&(n="Wrong version in <open />: "+s),!n||(this._conn._changeConnectStatus(t.Status.CONNFAIL,n),this._conn._doDisconnect(),!1)},_connect_cb_wrapper:function(e){if(0===e.data.indexOf("<open ")||0===e.data.indexOf("<?xml")){var n=e.data.replace(/^(<\?.*?\?>\s*)*/,"");if(""===n)return;var i=(new DOMParser).parseFromString(n,"text/xml").documentElement;this._conn.xmlInput(i),this._conn.rawInput(e.data),this._handleStreamStart(i)&&this._connect_cb(i)}else if(0===e.data.indexOf("<close ")){this._conn.rawInput(e.data),this._conn.xmlInput(e);var s=e.getAttribute("see-other-uri");s?(this._conn._changeConnectStatus(t.Status.REDIRECT,"Received see-other-uri, resetting connection"),this._conn.reset(),this._conn.service=s,this._connect()):(this._conn._changeConnectStatus(t.Status.CONNFAIL,"Received closing stream"),this._conn._doDisconnect())}else{var r=this._streamWrap(e.data),o=(new DOMParser).parseFromString(r,"text/xml").documentElement;this.socket.onmessage=this._onMessage.bind(this),this._conn._connect_cb(o,null,e.data)}},_disconnect:function(n){if(this.socket&&this.socket.readyState!==WebSocket.CLOSED){n&&this._conn.send(n);var i=e("close",{xmlns:t.NS.FRAMING});this._conn.xmlOutput(i);var s=t.serialize(i);this._conn.rawOutput(s);try{this.socket.send(s)}catch(e){t.info("Couldn't send <close /> tag.")}}this._conn._doDisconnect()},_doDisconnect:function(){t.info("WebSockets _doDisconnect was called"),this._closeSocket()},_streamWrap:function(t){return"<wrapper>"+t+"</wrapper>"},_closeSocket:function(){if(this.socket)try{this.socket.close()}catch(t){}this.socket=null},_emptyQueue:function(){return!0},_onClose:function(){this._conn.connected&&!this._conn.disconnecting?(t.error("Websocket closed unexcectedly"),this._conn._doDisconnect()):t.info("Websocket closed")},_no_auth_received:function(e){t.error("Server did not send any auth methods"),this._conn._changeConnectStatus(t.Status.CONNFAIL,"Server did not send any auth methods"),e&&(e=e.bind(this._conn))(),this._conn._doDisconnect()},_onDisconnectTimeout:function(){},_abortAllRequests:function(){},_onError:function(e){t.error("Websocket error "+e),this._conn._changeConnectStatus(t.Status.CONNFAIL,"The WebSocket connection could not be established was disconnected."),this._disconnect()},_onIdle:function(){var e=this._conn._data;if(e.length>0&&!this._conn.paused){for(var n=0;n<e.length;n++)if(null!==e[n]){var i,s;i="restart"===e[n]?this._buildStream().tree():e[n],s=t.serialize(i),this._conn.xmlOutput(i),this._conn.rawOutput(s),this.socket.send(s)}this._conn._data=[]}},_onMessage:function(e){var n,i,s='<close xmlns="urn:ietf:params:xml:ns:xmpp-framing" />';if(e.data===s)return this._conn.rawInput(s),this._conn.xmlInput(e),void(this._conn.disconnecting||this._conn._doDisconnect());if(0===e.data.search("<open ")){if(n=(new DOMParser).parseFromString(e.data,"text/xml").documentElement,!this._handleStreamStart(n))return}else i=this._streamWrap(e.data),n=(new DOMParser).parseFromString(i,"text/xml").documentElement;return this._check_streamerror(n,t.Status.ERROR)?void 0:this._conn.disconnecting&&"presence"===n.firstChild.nodeName&&"unavailable"===n.firstChild.getAttribute("type")?(this._conn.xmlInput(n),void this._conn.rawInput(t.serialize(n))):void this._conn._dataRecv(n,e.data)},_onOpen:function(){t.info("Websocket open");var e=this._buildStream();this._conn.xmlOutput(e.tree());var n=t.serialize(e);this._conn.rawOutput(n),this.socket.send(n)},_reqToData:function(t){return t},_send:function(){this._conn.flush()},_sendRestart:function(){clearTimeout(this._conn._idleTimeout),this._conn._onIdle.bind(this._conn)()}},t}),function(t){"function"==typeof define&&define.amd&&define("strophe",["strophe-core","strophe-bosh","strophe-websocket"],function(t){return t})}(),t){if("function"!=typeof define||!define.amd)return t(Strophe,$build,$msg,$iq,$pres);var n=t;e(["strophe"],function(t){n(t.Strophe,t.$build,t.$msg,t.$iq,t.$pres)})}}(function(t,e,n,i,s){window.Strophe=t,window.$build=e,window.$msg=n,window.$iq=i,window.$pres=s})},452);
__d(function(t,e,i,n){!function(t,e){"function"==typeof define&&define.amd?define("strophe.disco",["strophe"],function(t){return e(t.Strophe,t.$build,t.$iq,t.$msg,t.$pres),t}):e(t.Strophe,t.$build,t.$iq,t.$msg,t.$pres)}(this,function(t,e,i,n,s){t.addConnectionPlugin("disco",{_connection:null,_identities:[],_features:[],_items:[],init:function(e){this._connection=e,this._identities=[],this._features=[],this._items=[],e.addHandler(this._onDiscoInfo.bind(this),t.NS.DISCO_INFO,"iq","get",null,null),e.addHandler(this._onDiscoItems.bind(this),t.NS.DISCO_ITEMS,"iq","get",null,null)},addIdentity:function(t,e,i,n){for(var s=0;s<this._identities.length;s++)if(this._identities[s].category==t&&this._identities[s].type==e&&this._identities[s].name==i&&this._identities[s].lang==n)return!1;return this._identities.push({category:t,type:e,name:i,lang:n}),!0},addFeature:function(t){for(var e=0;e<this._features.length;e++)if(this._features[e]==t)return!1;return this._features.push(t),!0},removeFeature:function(t){for(var e=0;e<this._features.length;e++)if(this._features[e]===t)return this._features.splice(e,1),!0;return!1},addItem:function(t,e,i,n){return!(i&&!n)&&(this._items.push({jid:t,name:e,node:i,call_back:n}),!0)},info:function(e,n,s,r,o){var u={xmlns:t.NS.DISCO_INFO};n&&(u.node=n);var d=i({from:this._connection.jid,to:e,type:"get"}).c("query",u);this._connection.sendIQ(d,s,r,o)},items:function(e,n,s,r,o){var u={xmlns:t.NS.DISCO_ITEMS};n&&(u.node=n);var d=i({from:this._connection.jid,to:e,type:"get"}).c("query",u);this._connection.sendIQ(d,s,r,o)},_buildIQResult:function(t,e){var n=t.getAttribute("id"),s=t.getAttribute("from"),r=i({type:"result",id:n});return null!==s&&r.attrs({to:s}),r.c("query",e)},_onDiscoInfo:function(e){var i,n=e.getElementsByTagName("query")[0].getAttribute("node"),s={xmlns:t.NS.DISCO_INFO};n&&(s.node=n);var r=this._buildIQResult(e,s);for(i=0;i<this._identities.length;i++)s={category:this._identities[i].category,type:this._identities[i].type},this._identities[i].name&&(s.name=this._identities[i].name),this._identities[i].lang&&(s["xml:lang"]=this._identities[i].lang),r.c("identity",s).up();for(i=0;i<this._features.length;i++)r.c("feature",{var:this._features[i]}).up();return this._connection.send(r.tree()),!0},_onDiscoItems:function(e){var i,n,s={xmlns:t.NS.DISCO_ITEMS},r=e.getElementsByTagName("query")[0].getAttribute("node");if(r){for(s.node=r,i=[],n=0;n<this._items.length;n++)if(this._items[n].node==r){i=this._items[n].call_back(e);break}}else i=this._items;var o=this._buildIQResult(e,s);for(n=0;n<i.length;n++){var u={jid:i[n].jid};i[n].name&&(u.name=i[n].name),i[n].node&&(u.node=i[n].node),o.c("item",u).up()}return this._connection.send(o.tree()),!0}})})},453);
__d(function(t,e,i,n){Strophe.addConnectionPlugin("caps",{HASH:"sha-1",node:"http://strophe.im/strophejs/",_ver:"",_connection:null,_knownCapabilities:{},_jidVerIndex:{},init:function(t){if(this._connection=t,Strophe.addNamespace("CAPS","http://jabber.org/protocol/caps"),!this._connection.disco)throw"Caps plugin requires the disco plugin to be installed.";this._connection.disco.addFeature(Strophe.NS.CAPS),this._connection.addHandler(this._delegateCapabilities.bind(this),Strophe.NS.CAPS)},generateCapsAttrs:function(){return{xmlns:Strophe.NS.CAPS,hash:this.HASH,node:this.node,ver:this.generateVer()}},generateVer:function(){if(""!==this._ver)return this._ver;for(var t="",e=this._connection.disco._identities.sort(this._sortIdentities),i=e.length,n=this._connection.disco._features.sort(),r=n.length,s=0;s<i;s++){var o=e[s];t+=o.category+"/"+o.type+"/"+o.lang+"/"+o.name+"<"}for(var s=0;s<r;s++)t+=n[s]+"<";return this._ver=b64_sha1(t),this._ver},getCapabilitiesByJid:function(t){return this._jidVerIndex[t]?this._knownCapabilities[this._jidVerIndex[t]]:null},_delegateCapabilities:function(t){var e=t.getAttribute("from"),i=t.querySelector("c"),n=i.getAttribute("ver"),r=i.getAttribute("node");return this._knownCapabilities[n]?(this._jidVerIndex[e]=n,this._jidVerIndex[e]&&!this._jidVerIndex[e]===n||(this._jidVerIndex[e]=n),!0):this._requestCapabilities(e,r,n)},_requestCapabilities:function(t,e,i){if(t!==this._connection.jid){var n=this._connection.disco.info(t,e+"#"+i);this._connection.addHandler(this._handleDiscoInfoReply.bind(this),Strophe.NS.DISCO_INFO,"iq","result",n,t)}return!0},_handleDiscoInfoReply:function(t){var e=t.querySelector("query"),i=e.getAttribute("node").split("#"),n=i[1],r=t.getAttribute("from");if(this._knownCapabilities[n])this._jidVerIndex[r]&&!this._jidVerIndex[r]===n||(this._jidVerIndex[r]=n);else{var s=e.childNodes,o=s.length;this._knownCapabilities[n]=[];for(var a=0;a<o;a++){var i=s[a];this._knownCapabilities[n].push({name:i.nodeName,attributes:i.attributes})}this._jidVerIndex[r]=n}return!1},_sortIdentities:function(t,e){return t.category>e.category?1:t.category<e.category?-1:t.type>e.type?1:t.type<e.type?-1:t.lang>e.lang?1:t.lang<e.lang?-1:0}})},454);
__d(function(I,_,L,S){Object.defineProperty(S,"__esModule",{value:!0});S.LIB_DID_DISPOSE=Symbol("LIB_DID_DISPOSE"),S.LIB_DID_INIT=Symbol("LIB_DID_INIT"),S.LIB_INIT_ERROR=Symbol("LIB_INIT_ERROR"),S.LIB_WILL_DISPOSE=Symbol("LIB_WILL_DISPOSE"),S.LIB_WILL_INIT=Symbol("LIB_WILL_INIT"),S.SET_WEBRTC_READY=Symbol("SET_WEBRTC_READY")},455);
__d(function(_,T,E,R){Object.defineProperty(R,"__esModule",{value:!0});R.WEBRTC_NOT_READY="WEBRTC_NOT_READY",R.WEBRTC_NOT_SUPPORTED="WEBRTC_NOT_SUPPORTED"},456);
__d(function(e,o,n,r){function i(e,o){return u.default.createLocalTracks({cameraDeviceId:o,devices:[e],firefox_fake_device:window.config&&window.config.firefox_fake_device,micDeviceId:o}).then(function(e){return babelHelpers.slicedToArray(e,1)[0]})}function t(e){return e===l.CONNECTION_DROPPED_ERROR||e===l.OTHER_ERROR||e===l.SERVER_ERROR}function c(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"config.js",n=void 0;return n="undefined"==typeof APP?(0,a.loadScript)(new URL(o,e).toString()).then(function(){var e=window,o=e.config;if(window.config=void 0,"object"!=typeof o)throw new Error("window.config is not an object");return o}).catch(function(n){throw console.error("Failed to load "+o+" from "+e,n),n}):Promise.resolve(window.config),n=n.then(function(e){return(0,f.setConfigFromURLParams)(),e})}Object.defineProperty(r,"__esModule",{value:!0}),r.createLocalTrack=i,r.isFatalJitsiConnectionError=t,r.loadConfig=c;var f=o(458),a=o(491),d=o(398),u=babelHelpers.interopRequireDefault(d),l=u.default.errors.connection},457);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(459);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(460);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})});var c=t(461);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}})}),t(466)},458);
__d(function(e,n,t,o){function f(e){return{type:i.SET_CONFIG,config:e}}Object.defineProperty(o,"__esModule",{value:!0}),o.setConfig=f;var i=n(460)},459);
__d(function(e,_,o,d){Object.defineProperty(d,"__esModule",{value:!0});d.SET_CONFIG=Symbol("SET_CONFIG")},460);
__d(function(e,r,t,o){function i(e,r){if(r){var t=e.boshList;if(t&&Array.isArray(t)&&t.length){var o=new l.default(r,"TEXT").getHash("SHA-1","HEX"),i=parseInt(o.substr(-6),16),n=i%t.length;e.bosh=t[n],y.log("Setting config.bosh to "+e.bosh+" (idx="+n+")");var a=e.boshAttemptFirstList;if(a&&Array.isArray(a)&&a.length>0){n=i%a.length;var f=a[n];f===e.bosh?y.log("Not setting config.boshAttemptFirst, address matches."):(e.boshAttemptFirst=f,y.log("Setting config.boshAttemptFirst="+f+" (idx="+n+")"))}}}}function n(e,r,t){y.info("Send config request to "+e+" for room: "+r),$.ajax(e,{contentType:"application/json",data:JSON.stringify({roomName:r}),dataType:"json",method:"POST",error:function(e,r,o){y.error("Get config error: ",e,o),t(!1,"Get config response status: "+r)},success:function(e){var r=window,o=r.config,i=r.interfaceConfig,n=r.loggingConfig;try{a(o,i,n,e),t(!0)}catch(e){y.error("Parse config error: ",e),t(!1,e)}}})}function a(e,r,t,o){for(var i=Object.keys(o),n=Array.isArray(i),a=0,i=n?i:i["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var f;if(n){if(a>=i.length)break;f=i[a++]}else{if(a=i.next(),a.done)break;f=a.value}var s=f,g=void 0;if("config"===s?g=e:"interfaceConfig"===s?g=r:"loggingConfig"===s&&(g=t),g){var l=o[s];u.default.isEmpty(l)||(y.info("Extending "+s+" with: "+JSON.stringify(l)),u.default.merge(g,l))}}}function f(){var e=(0,d.default)(window.location),r=window,t=r.config,o=r.interfaceConfig,i=r.loggingConfig,n={};t&&(n.config={}),o&&(n.interfaceConfig={}),i&&(n.loggingConfig={});for(var f=Object.keys(e),s=Array.isArray(f),g=0,f=s?f:f["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var l;if(s){if(g>=f.length)break;l=f[g++]}else{if(g=f.next(),g.done)break;l=g.value}var c=l,u=n,b=c.split("."),y=b.pop();if(-1===p.indexOf(y)){for(var m=b,v=Array.isArray(m),h=0,m=v?m:m["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var S;if(v){if(h>=m.length)break;S=m[h++]}else{if(h=m.next(),h.done)break;S=h.value}var A=S;u=u[A]=u[A]||{}}u[y]=e[c]}}a(t,o,i,n)}Object.defineProperty(o,"__esModule",{value:!0}),o.parseURLParams=o.getRoomName=void 0;var s=r(462);Object.defineProperty(o,"getRoomName",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(s).default}}),o.chooseBOSHAddress=i,o.obtainConfig=n,o.overrideConfigJSON=a,o.setConfigFromURLParams=f;var g=r(463),l=babelHelpers.interopRequireDefault(g),c=r(464),u=babelHelpers.interopRequireDefault(c),b=r(465),d=babelHelpers.interopRequireDefault(b),p=["analyticsScriptUrls","callStatsCustomScriptUrl"],y=r(426).getLogger(__filename);o.parseURLParams=d.default},461);
__d(function(o,e,n,t){function i(){var o=config.getroomnode,e=window.location.pathname;return o&&"function"==typeof o?o.call(config,e):e.substring(e.lastIndexOf("/")+1).toLowerCase()||void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i},462);
__d(function(n,e,t,r){!function(n){function e(n,e,t){var r=0,a=[0],c="",s=null,c=t||"UTF8";if("UTF8"!==c&&"UTF16"!==c)throw"encoding must be UTF8 or UTF16";if("HEX"===e){if(0!=n.length%2)throw"srcString of HEX type must be in byte increments";s=i(n),r=s.binLen,a=s.value}else if("ASCII"===e||"TEXT"===e)s=o(n,c),r=s.binLen,a=s.value;else{if("B64"!==e)throw"inputFormat must be HEX, TEXT, ASCII, or B64";s=w(n),r=s.binLen,a=s.value}this.getHash=function(n,e,t,o){var i,w=null,c=a.slice(),s=r;if(3===arguments.length?"number"!=typeof t&&(o=t,t=1):2===arguments.length&&(t=1),t!==parseInt(t,10)||1>t)throw"numRounds must a integer >= 1";switch(e){case"HEX":w=u;break;case"B64":w=f;break;default:throw"format must be HEX or B64"}if("SHA-1"===n)for(i=0;i<t;i++)c=x(c,s),s=160;else if("SHA-224"===n)for(i=0;i<t;i++)c=k(c,s,n),s=224;else if("SHA-256"===n)for(i=0;i<t;i++)c=k(c,s,n),s=256;else if("SHA-384"===n)for(i=0;i<t;i++)c=k(c,s,n),s=384;else{if("SHA-512"!==n)throw"Chosen SHA variant is not supported";for(i=0;i<t;i++)c=k(c,s,n),s=512}return w(c,b(o))},this.getHMAC=function(n,e,t,s,l){var h,p,v,H,A=[],d=[];switch(h=null,s){case"HEX":s=u;break;case"B64":s=f;break;default:throw"outputFormat must be HEX or B64"}if("SHA-1"===t)p=64,H=160;else if("SHA-224"===t)p=64,H=224;else if("SHA-256"===t)p=64,H=256;else if("SHA-384"===t)p=128,H=384;else{if("SHA-512"!==t)throw"Chosen SHA variant is not supported";p=128,H=512}if("HEX"===e)h=i(n),v=h.binLen,h=h.value;else if("ASCII"===e||"TEXT"===e)h=o(n,c),v=h.binLen,h=h.value;else{if("B64"!==e)throw"inputFormat must be HEX, TEXT, ASCII, or B64";h=w(n),v=h.binLen,h=h.value}for(n=8*p,e=p/4-1,p<v/8?(h="SHA-1"===t?x(h,v):k(h,v,t),h[e]&=4294967040):p>v/8&&(h[e]&=4294967040),p=0;p<=e;p+=1)A[p]=909522486^h[p],d[p]=1549556828^h[p];return t="SHA-1"===t?x(d.concat(x(A.concat(a),n+r)),n+H):k(d.concat(k(A.concat(a),n+r,t)),n+H,t),s(t,b(l))}}function a(n,e){this.a=n,this.b=e}function o(n,e){var t,r,a=[],o=[],i=0;if("UTF8"===e)for(r=0;r<n.length;r+=1)for(t=n.charCodeAt(r),o=[],2048<t?(o[0]=224|(61440&t)>>>12,o[1]=128|(4032&t)>>>6,o[2]=128|63&t):128<t?(o[0]=192|(1984&t)>>>6,o[1]=128|63&t):o[0]=t,t=0;t<o.length;t+=1)a[i>>>2]|=o[t]<<24-i%4*8,i+=1;else if("UTF16"===e)for(r=0;r<n.length;r+=1)a[i>>>2]|=n.charCodeAt(r)<<16-i%4*8,i+=2;return{value:a,binLen:8*i}}function i(n){var e,t,r=[],a=n.length;if(0!=a%2)throw"String of HEX type must be in byte increments";for(e=0;e<a;e+=2){if(t=parseInt(n.substr(e,2),16),isNaN(t))throw"String of HEX type contains invalid characters";r[e>>>3]|=t<<24-e%8*4}return{value:r,binLen:4*a}}function w(n){var e,t,r,a,o,i=[],w=0;if(-1===n.search(/^[a-zA-Z0-9=+\/]+$/))throw"Invalid character in base-64 string";if(e=n.indexOf("="),n=n.replace(/\=/g,""),-1!==e&&e<n.length)throw"Invalid '=' found in base-64 string";for(t=0;t<n.length;t+=4){for(o=n.substr(t,4),r=a=0;r<o.length;r+=1)e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(o[r]),a|=e<<18-6*r;for(r=0;r<o.length-1;r+=1)i[w>>2]|=(a>>>16-8*r&255)<<24-w%4*8,w+=1}return{value:i,binLen:8*w}}function u(n,e){var t,r,a="",o=4*n.length;for(t=0;t<o;t+=1)r=n[t>>>2]>>>8*(3-t%4),a+="0123456789abcdef".charAt(r>>>4&15)+"0123456789abcdef".charAt(15&r);return e.outputUpper?a.toUpperCase():a}function f(n,e){var t,r,a,o="",i=4*n.length;for(t=0;t<i;t+=3)for(a=(n[t>>>2]>>>8*(3-t%4)&255)<<16|(n[t+1>>>2]>>>8*(3-(t+1)%4)&255)<<8|n[t+2>>>2]>>>8*(3-(t+2)%4)&255,r=0;4>r;r+=1)o=8*t+6*r<=32*n.length?o+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(a>>>6*(3-r)&63):o+e.b64Pad;return o}function b(n){var e={outputUpper:!1,b64Pad:"="};try{n.hasOwnProperty("outputUpper")&&(e.outputUpper=n.outputUpper),n.hasOwnProperty("b64Pad")&&(e.b64Pad=n.b64Pad)}catch(n){}if("boolean"!=typeof e.outputUpper)throw"Invalid outputUpper formatting option";if("string"!=typeof e.b64Pad)throw"Invalid b64Pad formatting option";return e}function c(n,e){return n<<e|n>>>32-e}function s(n,e){return n>>>e|n<<32-e}function l(n,e){var t=null,t=new a(n.a,n.b);return t=32>=e?new a(t.a>>>e|t.b<<32-e&4294967295,t.b>>>e|t.a<<32-e&4294967295):new a(t.b>>>e-32|t.a<<64-e&4294967295,t.a>>>e-32|t.b<<64-e&4294967295)}function h(n,e){return 32>=e?new a(n.a>>>e,n.b>>>e|n.a<<32-e&4294967295):new a(0,n.a>>>e-32)}function p(n,e,t){return n^e^t}function v(n,e,t){return n&e^~n&t}function H(n,e,t){return new a(n.a&e.a^~n.a&t.a,n.b&e.b^~n.b&t.b)}function A(n,e,t){return n&e^n&t^e&t}function d(n,e,t){return new a(n.a&e.a^n.a&t.a^e.a&t.a,n.b&e.b^n.b&t.b^e.b&t.b)}function S(n){return s(n,2)^s(n,13)^s(n,22)}function g(n){var e=l(n,28),t=l(n,34);return n=l(n,39),new a(e.a^t.a^n.a,e.b^t.b^n.b)}function m(n){return s(n,6)^s(n,11)^s(n,25)}function U(n){var e=l(n,14),t=l(n,18);return n=l(n,41),new a(e.a^t.a^n.a,e.b^t.b^n.b)}function E(n){return s(n,7)^s(n,18)^n>>>3}function T(n){var e=l(n,1),t=l(n,8);return n=h(n,7),new a(e.a^t.a^n.a,e.b^t.b^n.b)}function X(n){return s(n,17)^s(n,19)^n>>>10}function I(n){var e=l(n,19),t=l(n,61);return n=h(n,6),new a(e.a^t.a^n.a,e.b^t.b^n.b)}function y(n,e){var t=(65535&n)+(65535&e);return((n>>>16)+(e>>>16)+(t>>>16)&65535)<<16|65535&t}function C(n,e,t,r){var a=(65535&n)+(65535&e)+(65535&t)+(65535&r);return((n>>>16)+(e>>>16)+(t>>>16)+(r>>>16)+(a>>>16)&65535)<<16|65535&a}function F(n,e,t,r,a){var o=(65535&n)+(65535&e)+(65535&t)+(65535&r)+(65535&a);return((n>>>16)+(e>>>16)+(t>>>16)+(r>>>16)+(a>>>16)+(o>>>16)&65535)<<16|65535&o}function L(n,e){var t,r,o;return t=(65535&n.b)+(65535&e.b),r=(n.b>>>16)+(e.b>>>16)+(t>>>16),o=(65535&r)<<16|65535&t,t=(65535&n.a)+(65535&e.a)+(r>>>16),r=(n.a>>>16)+(e.a>>>16)+(t>>>16),new a((65535&r)<<16|65535&t,o)}function P(n,e,t,r){var o,i,w;return o=(65535&n.b)+(65535&e.b)+(65535&t.b)+(65535&r.b),i=(n.b>>>16)+(e.b>>>16)+(t.b>>>16)+(r.b>>>16)+(o>>>16),w=(65535&i)<<16|65535&o,o=(65535&n.a)+(65535&e.a)+(65535&t.a)+(65535&r.a)+(i>>>16),i=(n.a>>>16)+(e.a>>>16)+(t.a>>>16)+(r.a>>>16)+(o>>>16),new a((65535&i)<<16|65535&o,w)}function B(n,e,t,r,o){var i,w,u;return i=(65535&n.b)+(65535&e.b)+(65535&t.b)+(65535&r.b)+(65535&o.b),w=(n.b>>>16)+(e.b>>>16)+(t.b>>>16)+(r.b>>>16)+(o.b>>>16)+(i>>>16),u=(65535&w)<<16|65535&i,i=(65535&n.a)+(65535&e.a)+(65535&t.a)+(65535&r.a)+(65535&o.a)+(w>>>16),w=(n.a>>>16)+(e.a>>>16)+(t.a>>>16)+(r.a>>>16)+(o.a>>>16)+(i>>>16),new a((65535&w)<<16|65535&i,u)}function x(n,e){var t,r,a,o,i,w,u,f,b,s=[],l=v,h=p,H=A,d=c,S=y,g=F,m=[1732584193,4023233417,2562383102,271733878,3285377520];for(n[e>>>5]|=128<<24-e%32,n[15+(e+65>>>9<<4)]=e,b=n.length,u=0;u<b;u+=16){for(t=m[0],r=m[1],a=m[2],o=m[3],i=m[4],f=0;80>f;f+=1)s[f]=16>f?n[f+u]:d(s[f-3]^s[f-8]^s[f-14]^s[f-16],1),w=20>f?g(d(t,5),l(r,a,o),i,1518500249,s[f]):40>f?g(d(t,5),h(r,a,o),i,1859775393,s[f]):60>f?g(d(t,5),H(r,a,o),i,2400959708,s[f]):g(d(t,5),h(r,a,o),i,3395469782,s[f]),i=o,o=a,a=d(r,30),r=t,t=w;m[0]=S(t,m[0]),m[1]=S(r,m[1]),m[2]=S(a,m[2]),m[3]=S(o,m[3]),m[4]=S(i,m[4])}return m}function k(n,e,t){var r,o,i,w,u,f,b,c,s,l,h,p,x,k,O,N,j,z,M,R,Z,q,D,G,J,K,Q=[],V=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];if(l=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],o=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],"SHA-224"===t||"SHA-256"===t)h=64,r=15+(e+65>>>9<<4),k=16,O=1,J=Number,N=y,j=C,z=F,M=E,R=X,Z=S,q=m,G=A,D=v,l="SHA-224"===t?l:o;else{if("SHA-384"!==t&&"SHA-512"!==t)throw"Unexpected error in SHA-2 implementation";h=80,r=31+(e+128>>>10<<5),k=32,O=2,J=a,N=L,j=P,z=B,M=T,R=I,Z=g,q=U,G=d,D=H,V=[new J(V[0],3609767458),new J(V[1],602891725),new J(V[2],3964484399),new J(V[3],2173295548),new J(V[4],4081628472),new J(V[5],3053834265),new J(V[6],2937671579),new J(V[7],3664609560),new J(V[8],2734883394),new J(V[9],1164996542),new J(V[10],1323610764),new J(V[11],3590304994),new J(V[12],4068182383),new J(V[13],991336113),new J(V[14],633803317),new J(V[15],3479774868),new J(V[16],2666613458),new J(V[17],944711139),new J(V[18],2341262773),new J(V[19],2007800933),new J(V[20],1495990901),new J(V[21],1856431235),new J(V[22],3175218132),new J(V[23],2198950837),new J(V[24],3999719339),new J(V[25],766784016),new J(V[26],2566594879),new J(V[27],3203337956),new J(V[28],1034457026),new J(V[29],2466948901),new J(V[30],3758326383),new J(V[31],168717936),new J(V[32],1188179964),new J(V[33],1546045734),new J(V[34],1522805485),new J(V[35],2643833823),new J(V[36],2343527390),new J(V[37],1014477480),new J(V[38],1206759142),new J(V[39],344077627),new J(V[40],1290863460),new J(V[41],3158454273),new J(V[42],3505952657),new J(V[43],106217008),new J(V[44],3606008344),new J(V[45],1432725776),new J(V[46],1467031594),new J(V[47],851169720),new J(V[48],3100823752),new J(V[49],1363258195),new J(V[50],3750685593),new J(V[51],3785050280),new J(V[52],3318307427),new J(V[53],3812723403),new J(V[54],2003034995),new J(V[55],3602036899),new J(V[56],1575990012),new J(V[57],1125592928),new J(V[58],2716904306),new J(V[59],442776044),new J(V[60],593698344),new J(V[61],3733110249),new J(V[62],2999351573),new J(V[63],3815920427),new J(3391569614,3928383900),new J(3515267271,566280711),new J(3940187606,3454069534),new J(4118630271,4000239992),new J(116418474,1914138554),new J(174292421,2731055270),new J(289380356,3203993006),new J(460393269,320620315),new J(685471733,587496836),new J(852142971,1086792851),new J(1017036298,365543100),new J(1126000580,2618297676),new J(1288033470,3409855158),new J(1501505948,4234509866),new J(1607167915,987167468),new J(1816402316,1246189591)],l="SHA-384"===t?[new J(3418070365,l[0]),new J(1654270250,l[1]),new J(2438529370,l[2]),new J(355462360,l[3]),new J(1731405415,l[4]),new J(41048885895,l[5]),new J(3675008525,l[6]),new J(1203062813,l[7])]:[new J(o[0],4089235720),new J(o[1],2227873595),new J(o[2],4271175723),new J(o[3],1595750129),new J(o[4],2917565137),new J(o[5],725511199),new J(o[6],4215389547),new J(o[7],327033209)]}for(n[e>>>5]|=128<<24-e%32,n[r]=e,K=n.length,p=0;p<K;p+=k){for(e=l[0],r=l[1],o=l[2],i=l[3],w=l[4],u=l[5],f=l[6],b=l[7],x=0;x<h;x+=1)Q[x]=16>x?new J(n[x*O+p],n[x*O+p+1]):j(R(Q[x-2]),Q[x-7],M(Q[x-15]),Q[x-16]),c=z(b,q(w),D(w,u,f),V[x],Q[x]),s=N(Z(e),G(e,r,o)),b=f,f=u,u=w,w=N(i,c),i=o,o=r,r=e,e=N(c,s);l[0]=N(e,l[0]),l[1]=N(r,l[1]),l[2]=N(o,l[2]),l[3]=N(i,l[3]),l[4]=N(w,l[4]),l[5]=N(u,l[5]),l[6]=N(f,l[6]),l[7]=N(b,l[7])}if("SHA-224"===t)n=[l[0],l[1],l[2],l[3],l[4],l[5],l[6]];else if("SHA-256"===t)n=l;else if("SHA-384"===t)n=[l[0].a,l[0].b,l[1].a,l[1].b,l[2].a,l[2].b,l[3].a,l[3].b,l[4].a,l[4].b,l[5].a,l[5].b];else{if("SHA-512"!==t)throw"Unexpected error in SHA-2 implementation";n=[l[0].a,l[0].b,l[1].a,l[1].b,l[2].a,l[2].b,l[3].a,l[3].b,l[4].a,l[4].b,l[5].a,l[5].b,l[6].a,l[6].b,l[7].a,l[7].b]}return n}"function"!=typeof define||(define.amd,0)?void 0!==r?void 0!==t&&t.exports?t.exports=r=e:r=e:n.jsSHA=e:define(function(){return e})}(this)},463);
__d(function(n,t,r,e){(function(){function t(n,t){return n.set(t[0],t[1]),n}function u(n,t){return n.add(t),n}function i(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function o(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u<i;){var o=n[u];t(e,o,r(o),n)}return e}function f(n,t){for(var r=-1,e=null==n?0:n.length;++r<e&&!1!==t(n[r],r,n););return n}function c(n,t){for(var r=null==n?0:n.length;r--&&!1!==t(n[r],r,n););return n}function a(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(!t(n[r],r,n))return!1;return!0}function l(n,t){for(var r=-1,e=null==n?0:n.length,u=0,i=[];++r<e;){var o=n[r];t(o,r,n)&&(i[u++]=o)}return i}function s(n,t){return!!(null==n?0:n.length)&&x(n,t,0)>-1}function h(n,t,r){for(var e=-1,u=null==n?0:n.length;++e<u;)if(r(t,n[e]))return!0;return!1}function p(n,t){for(var r=-1,e=null==n?0:n.length,u=Array(e);++r<e;)u[r]=t(n[r],r,n);return u}function _(n,t){for(var r=-1,e=t.length,u=n.length;++r<e;)n[u+r]=t[r];return n}function v(n,t,r,e){var u=-1,i=null==n?0:n.length;for(e&&i&&(r=n[++u]);++u<i;)r=t(r,n[u],u,n);return r}function g(n,t,r,e){var u=null==n?0:n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);return r}function y(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(t(n[r],r,n))return!0;return!1}function d(n){return n.split("")}function b(n){return n.match(Dt)||[]}function w(n,t,r){var e;return r(n,function(n,r,u){if(t(n,r,u))return e=r,!1}),e}function m(n,t,r,e){for(var u=n.length,i=r+(e?1:-1);e?i--:++i<u;)if(t(n[i],i,n))return i;return-1}function x(n,t,r){return t===t?H(n,t,r):m(n,A,r)}function j(n,t,r,e){for(var u=r-1,i=n.length;++u<i;)if(e(n[u],t))return u;return-1}function A(n){return n!==n}function k(n,t){var r=null==n?0:n.length;return r?E(n,t)/r:Cn}function O(n){return function(t){return null==t?rn:t[n]}}function I(n){return function(t){return null==n?rn:n[t]}}function R(n,t,r,e,u){return u(n,function(n,u,i){r=e?(e=!1,n):t(r,n,u,i)}),r}function z(n,t){var r=n.length;for(n.sort(t);r--;)n[r]=n[r].value;return n}function E(n,t){for(var r,e=-1,u=n.length;++e<u;){var i=t(n[e]);i!==rn&&(r=r===rn?i:r+i)}return r}function S(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}function L(n,t){return p(t,function(t){return[t,n[t]]})}function W(n){return function(t){return n(t)}}function C(n,t){return p(t,function(t){return n[t]})}function T(n,t){return n.has(t)}function U(n,t){for(var r=-1,e=n.length;++r<e&&x(t,n[r],0)>-1;);return r}function B(n,t){for(var r=n.length;r--&&x(t,n[r],0)>-1;);return r}function $(n,t){for(var r=n.length,e=0;r--;)n[r]===t&&++e;return e}function D(n){return"\\"+Or[n]}function M(n,t){return null==n?rn:n[t]}function F(n){return yr.test(n)}function N(n){return dr.test(n)}function P(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}function q(n){var t=-1,r=Array(n.size);return n.forEach(function(n,e){r[++t]=[e,n]}),r}function Z(n,t){return function(r){return n(t(r))}}function K(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r];o!==t&&o!==an||(n[r]=an,i[u++]=r)}return i}function V(n){var t=-1,r=Array(n.size);return n.forEach(function(n){r[++t]=n}),r}function G(n){var t=-1,r=Array(n.size);return n.forEach(function(n){r[++t]=[n,n]}),r}function H(n,t,r){for(var e=r-1,u=n.length;++e<u;)if(n[e]===t)return e;return-1}function J(n,t,r){for(var e=r+1;e--;)if(n[e]===t)return e;return e}function Y(n){return F(n)?X(n):Pr(n)}function Q(n){return F(n)?nn(n):d(n)}function X(n){for(var t=vr.lastIndex=0;vr.test(n);)++t;return t}function nn(n){return n.match(vr)||[]}function tn(n){return n.match(gr)||[]}var rn,en=200,un="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",on="Expected a function",fn="__lodash_hash_undefined__",cn=500,an="__lodash_placeholder__",ln=1,sn=2,hn=4,pn=1,_n=2,vn=1,gn=2,yn=4,dn=8,bn=16,wn=32,mn=64,xn=128,jn=256,An=512,kn=30,On="...",In=800,Rn=16,zn=1,En=2,Sn=1/0,Ln=9007199254740991,Wn=1.7976931348623157e308,Cn=NaN,Tn=4294967295,Un=Tn-1,Bn=Tn>>>1,$n=[["ary",xn],["bind",vn],["bindKey",gn],["curry",dn],["curryRight",bn],["flip",An],["partial",wn],["partialRight",mn],["rearg",jn]],Dn="[object Arguments]",Mn="[object Array]",Fn="[object AsyncFunction]",Nn="[object Boolean]",Pn="[object Date]",qn="[object DOMException]",Zn="[object Error]",Kn="[object Function]",Vn="[object GeneratorFunction]",Gn="[object Map]",Hn="[object Number]",Jn="[object Null]",Yn="[object Object]",Qn="[object Proxy]",Xn="[object RegExp]",nt="[object Set]",tt="[object String]",rt="[object Symbol]",et="[object Undefined]",ut="[object WeakMap]",it="[object WeakSet]",ot="[object ArrayBuffer]",ft="[object DataView]",ct="[object Float32Array]",at="[object Float64Array]",lt="[object Int8Array]",st="[object Int16Array]",ht="[object Int32Array]",pt="[object Uint8Array]",_t="[object Uint8ClampedArray]",vt="[object Uint16Array]",gt="[object Uint32Array]",yt=/\b__p \+= '';/g,dt=/\b(__p \+=) '' \+/g,bt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wt=/&(?:amp|lt|gt|quot|#39);/g,mt=/[&<>"']/g,xt=RegExp(wt.source),jt=RegExp(mt.source),At=/<%-([\s\S]+?)%>/g,kt=/<%([\s\S]+?)%>/g,Ot=/<%=([\s\S]+?)%>/g,It=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rt=/^\w*$/,zt=/^\./,Et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,St=/[\\^$.*+?()[\]{}|]/g,Lt=RegExp(St.source),Wt=/^\s+|\s+$/g,Ct=/^\s+/,Tt=/\s+$/,Ut=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Bt=/\{\n\/\* \[wrapped with (.+)\] \*/,$t=/,? & /,Dt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Mt=/\\(\\)?/g,Ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Nt=/\w*$/,Pt=/^[-+]0x[0-9a-f]+$/i,qt=/^0b[01]+$/i,Zt=/^\[object .+?Constructor\]$/,Kt=/^0o[0-7]+$/i,Vt=/^(?:0|[1-9]\d*)$/,Gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ht=/($^)/,Jt=/['\n\r\u2028\u2029\\]/g,Yt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Xt="["+Qt+"]",nr="["+Yt+"]",tr="[a-z\\xdf-\\xf6\\xf8-\\xff]",rr="[^\\ud800-\\udfff"+Qt+"\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",er="\\ud83c[\\udffb-\\udfff]",ur="(?:\\ud83c[\\udde6-\\uddff]){2}",ir="[\\ud800-\\udbff][\\udc00-\\udfff]",or="[A-Z\\xc0-\\xd6\\xd8-\\xde]",fr="(?:"+tr+"|"+rr+")",cr="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",ar="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",ur,ir].join("|")+")[\\ufe0e\\ufe0f]?"+cr+")*",lr="[\\ufe0e\\ufe0f]?"+cr+ar,sr="(?:"+["[\\u2700-\\u27bf]",ur,ir].join("|")+")"+lr,hr="(?:"+["[^\\ud800-\\udfff]"+nr+"?",nr,ur,ir,"[\\ud800-\\udfff]"].join("|")+")",pr=RegExp("['\u2019]","g"),_r=RegExp(nr,"g"),vr=RegExp(er+"(?="+er+")|"+hr+lr,"g"),gr=RegExp([or+"?"+tr+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[Xt,or,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[Xt,or+fr,"$"].join("|")+")",or+"?"+fr+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",or+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?","\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)","\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)","\\d+",sr].join("|"),"g"),yr=RegExp("[\\u200d\\ud800-\\udfff"+Yt+"\\ufe0e\\ufe0f]"),dr=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,br=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],wr=-1,mr={};mr[ct]=mr[at]=mr[lt]=mr[st]=mr[ht]=mr[pt]=mr[_t]=mr[vt]=mr[gt]=!0,mr[Dn]=mr[Mn]=mr[ot]=mr[Nn]=mr[ft]=mr[Pn]=mr[Zn]=mr[Kn]=mr[Gn]=mr[Hn]=mr[Yn]=mr[Xn]=mr[nt]=mr[tt]=mr[ut]=!1;var xr={};xr[Dn]=xr[Mn]=xr[ot]=xr[ft]=xr[Nn]=xr[Pn]=xr[ct]=xr[at]=xr[lt]=xr[st]=xr[ht]=xr[Gn]=xr[Hn]=xr[Yn]=xr[Xn]=xr[nt]=xr[tt]=xr[rt]=xr[pt]=xr[_t]=xr[vt]=xr[gt]=!0,xr[Zn]=xr[Kn]=xr[ut]=!1;var jr={"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"},Ar={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},kr={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Or={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ir=parseFloat,Rr=parseInt,zr="object"==typeof n&&n&&n.Object===Object&&n,Er="object"==typeof self&&self&&self.Object===Object&&self,Sr=zr||Er||Function("return this")(),Lr="object"==typeof e&&e&&!e.nodeType&&e,Wr=Lr&&"object"==typeof r&&r&&!r.nodeType&&r,Cr=Wr&&Wr.exports===Lr,Tr=Cr&&zr.process,Ur=function(){try{return Tr&&Tr.binding&&Tr.binding("util")}catch(n){}}(),Br=Ur&&Ur.isArrayBuffer,$r=Ur&&Ur.isDate,Dr=Ur&&Ur.isMap,Mr=Ur&&Ur.isRegExp,Fr=Ur&&Ur.isSet,Nr=Ur&&Ur.isTypedArray,Pr=O("length"),qr=I(jr),Zr=I(Ar),Kr=I(kr),Vr=function n(r){function e(n){if(oc(n)&&!yh(n)&&!(n instanceof H)){if(n instanceof I)return n;if(yl.call(n,"__wrapped__"))return to(n)}return new I(n)}function d(){}function I(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=rn}function H(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Tn,this.__views__=[]}function X(){var n=new H(this.__wrapped__);return n.__actions__=Bu(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Bu(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Bu(this.__views__),n}function nn(){if(this.__filtered__){var n=new H(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Dt(){var n=this.__wrapped__.value(),t=this.__dir__,r=yh(n),e=t<0,u=r?n.length:0,i=Oi(0,u,this.__views__),o=i.start,f=i.end,c=f-o,a=e?f:o-1,l=this.__iteratees__,s=l.length,h=0,p=Vl(c,this.__takeCount__);if(!r||!e&&u==c&&p==c)return du(n,this.__actions__);var _=[];n:for(;c--&&h<p;){a+=t;for(var v=-1,g=n[a];++v<s;){var y=l[v],d=y.iteratee,b=y.type,w=d(g);if(b==En)g=w;else if(!w){if(b==zn)continue n;break n}}_[h++]=g}return _}function Yt(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function Qt(){this.__data__=es?es(null):{},this.size=0}function Xt(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}function nr(n){var t=this.__data__;if(es){var r=t[n];return r===fn?rn:r}return yl.call(t,n)?t[n]:rn}function tr(n){var t=this.__data__;return es?t[n]!==rn:yl.call(t,n)}function rr(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=es&&t===rn?fn:t,this}function er(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function ur(){this.__data__=[],this.size=0}function ir(n){var t=this.__data__,r=Jr(t,n);return!(r<0)&&(r==t.length-1?t.pop():Sl.call(t,r,1),--this.size,!0)}function or(n){var t=this.__data__,r=Jr(t,n);return r<0?rn:t[r][1]}function fr(n){return Jr(this.__data__,n)>-1}function cr(n,t){var r=this.__data__,e=Jr(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this}function ar(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function lr(){this.size=0,this.__data__={hash:new Yt,map:new(Xl||er),string:new Yt}}function sr(n){var t=xi(this,n).delete(n);return this.size-=t?1:0,t}function hr(n){return xi(this,n).get(n)}function vr(n){return xi(this,n).has(n)}function gr(n,t){var r=xi(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this}function yr(n){var t=-1,r=null==n?0:n.length;for(this.__data__=new ar;++t<r;)this.add(n[t])}function dr(n){return this.__data__.set(n,fn),this}function jr(n){return this.__data__.has(n)}function Ar(n){var t=this.__data__=new er(n);this.size=t.size}function kr(){this.__data__=new er,this.size=0}function Or(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r}function zr(n){return this.__data__.get(n)}function Er(n){return this.__data__.has(n)}function Lr(n,t){var r=this.__data__;if(r instanceof er){var e=r.__data__;if(!Xl||e.length<en-1)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new ar(e)}return r.set(n,t),this.size=r.size,this}function Wr(n,t){var r=yh(n),e=!r&&gh(n),u=!r&&!e&&bh(n),i=!r&&!e&&!u&&Ah(n),o=r||e||u||i,f=o?S(n.length,ll):[],c=f.length;for(var a in n)!t&&!yl.call(n,a)||o&&("length"==a||u&&("offset"==a||"parent"==a)||i&&("buffer"==a||"byteLength"==a||"byteOffset"==a)||Ci(a,c))||f.push(a);return f}function Tr(n){var t=n.length;return t?n[Xe(0,t-1)]:rn}function Ur(n,t){return Yi(Bu(n),re(t,0,n.length))}function Pr(n){return Yi(Bu(n))}function Gr(n,t,r){(r===rn||Kf(n[t],r))&&(r!==rn||t in n)||ne(n,t,r)}function Hr(n,t,r){var e=n[t];yl.call(n,t)&&Kf(e,r)&&(r!==rn||t in n)||ne(n,t,r)}function Jr(n,t){for(var r=n.length;r--;)if(Kf(n[r][0],t))return r;return-1}function Yr(n,t,r,e){return vs(n,function(n,u,i){t(e,n,r(n),i)}),e}function Qr(n,t){return n&&$u(t,Fc(t),n)}function Xr(n,t){return n&&$u(t,Nc(t),n)}function ne(n,t,r){"__proto__"==t&&Tl?Tl(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r}function te(n,t){for(var r=-1,e=t.length,u=el(e),i=null==n;++r<e;)u[r]=i?rn:$c(n,t[r]);return u}function re(n,t,r){return n===n&&(r!==rn&&(n=n<=r?n:r),t!==rn&&(n=n>=t?n:t)),n}function ee(n,t,r,e,u,i){var o,c=t&ln,a=t&sn,l=t&hn;if(r&&(o=u?r(n,e,u,i):r(n)),o!==rn)return o;if(!ic(n))return n;var s=yh(n);if(s){if(o=zi(n),!c)return Bu(n,o)}else{var h=Is(n),p=h==Kn||h==Vn;if(bh(n))return ku(n,c);if(h==Yn||h==Dn||p&&!u){if(o=a||p?{}:Ei(n),!c)return a?Mu(n,Xr(o,n)):Du(n,Qr(o,n))}else{if(!xr[h])return u?n:{};o=Si(n,h,ee,c)}}i||(i=new Ar);var _=i.get(n);if(_)return _;i.set(n,o);var v=l?a?di:yi:a?Nc:Fc,g=s?rn:v(n);return f(g||n,function(e,u){g&&(u=e,e=n[u]),Hr(o,u,ee(e,t,r,u,n,i))}),o}function ue(n){var t=Fc(n);return function(r){return ie(r,n,t)}}function ie(n,t,r){var e=r.length;if(null==n)return!e;for(n=cl(n);e--;){var u=r[e],i=t[u],o=n[u];if(o===rn&&!(u in n)||!i(o))return!1}return!0}function oe(n,t,r){if("function"!=typeof n)throw new sl(on);return Es(function(){n.apply(rn,r)},t)}function fe(n,t,r,e){var u=-1,i=s,o=!0,f=n.length,c=[],a=t.length;if(!f)return c;r&&(t=p(t,W(r))),e?(i=h,o=!1):t.length>=en&&(i=T,o=!1,t=new yr(t));n:for(;++u<f;){var l=n[u],_=null==r?l:r(l);if(l=e||0!==l?l:0,o&&_===_){for(var v=a;v--;)if(t[v]===_)continue n;c.push(l)}else i(t,_,e)||c.push(l)}return c}function ce(n,t){var r=!0;return vs(n,function(n,e,u){return r=!!t(n,e,u)}),r}function ae(n,t,r){for(var e=-1,u=n.length;++e<u;){var i=n[e],o=t(i);if(null!=o&&(f===rn?o===o&&!yc(o):r(o,f)))var f=o,c=i}return c}function le(n,t,r,e){var u=n.length;for(r=jc(r),r<0&&(r=-r>u?0:u+r),e=e===rn||e>u?u:jc(e),e<0&&(e+=u),e=r>e?0:Ac(e);r<e;)n[r++]=t;return n}function se(n,t){var r=[];return vs(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function he(n,t,r,e,u){var i=-1,o=n.length;for(r||(r=Wi),u||(u=[]);++i<o;){var f=n[i];t>0&&r(f)?t>1?he(f,t-1,r,e,u):_(u,f):e||(u[u.length]=f)}return u}function pe(n,t){return n&&ys(n,t,Fc)}function _e(n,t){return n&&ds(n,t,Fc)}function ve(n,t){return l(t,function(t){return rc(n[t])})}function ge(n,t){t=ju(t,n);for(var r=0,e=t.length;null!=n&&r<e;)n=n[Qi(t[r++])];return r&&r==e?n:rn}function ye(n,t,r){var e=t(n);return yh(n)?e:_(e,r(n))}function de(n){return null==n?n===rn?et:Jn:Cl&&Cl in cl(n)?ki(n):Zi(n)}function be(n,t){return n>t}function we(n,t){return null!=n&&yl.call(n,t)}function me(n,t){return null!=n&&t in cl(n)}function xe(n,t,r){return n>=Vl(t,r)&&n<Kl(t,r)}function je(n,t,r){for(var e=r?h:s,u=n[0].length,i=n.length,o=i,f=el(i),c=1/0,a=[];o--;){var l=n[o];o&&t&&(l=p(l,W(t))),c=Vl(l.length,c),f[o]=!r&&(t||u>=120&&l.length>=120)?new yr(o&&l):rn}l=n[0];var _=-1,v=f[0];n:for(;++_<u&&a.length<c;){var g=l[_],y=t?t(g):g;if(g=r||0!==g?g:0,!(v?T(v,y):e(a,y,r))){for(o=i;--o;){var d=f[o];if(!(d?T(d,y):e(n[o],y,r)))continue n}v&&v.push(y),a.push(g)}}return a}function Ae(n,t,r,e){return pe(n,function(n,u,i){t(e,r(n),u,i)}),e}function ke(n,t,r){t=ju(t,n),n=Vi(n,t);var e=null==n?n:n[Qi(mo(t))];return null==e?rn:i(e,n,r)}function Oe(n){return oc(n)&&de(n)==Dn}function Ie(n){return oc(n)&&de(n)==ot}function Re(n){return oc(n)&&de(n)==Pn}function ze(n,t,r,e,u){return n===t||(null==n||null==t||!oc(n)&&!oc(t)?n!==n&&t!==t:Ee(n,t,r,e,ze,u))}function Ee(n,t,r,e,u,i){var o=yh(n),f=yh(t),c=o?Mn:Is(n),a=f?Mn:Is(t);c=c==Dn?Yn:c,a=a==Dn?Yn:a;var l=c==Yn,s=a==Yn,h=c==a;if(h&&bh(n)){if(!bh(t))return!1;o=!0,l=!1}if(h&&!l)return i||(i=new Ar),o||Ah(n)?pi(n,t,r,e,u,i):_i(n,t,c,r,e,u,i);if(!(r&pn)){var p=l&&yl.call(n,"__wrapped__"),_=s&&yl.call(t,"__wrapped__");if(p||_){var v=p?n.value():n,g=_?t.value():t;return i||(i=new Ar),u(v,g,r,e,i)}}return!!h&&(i||(i=new Ar),vi(n,t,r,e,u,i))}function Se(n){return oc(n)&&Is(n)==Gn}function Le(n,t,r,e){var u=r.length,i=u,o=!e;if(null==n)return!i;for(n=cl(n);u--;){var f=r[u];if(o&&f[2]?f[1]!==n[f[0]]:!(f[0]in n))return!1}for(;++u<i;){f=r[u];var c=f[0],a=n[c],l=f[1];if(o&&f[2]){if(a===rn&&!(c in n))return!1}else{var s=new Ar;if(e)var h=e(a,l,c,n,t,s);if(!(h===rn?ze(l,a,pn|_n,e,s):h))return!1}}return!0}function We(n){return!(!ic(n)||Di(n))&&(rc(n)?jl:Zt).test(Xi(n))}function Ce(n){return oc(n)&&de(n)==Xn}function Te(n){return oc(n)&&Is(n)==nt}function Ue(n){return oc(n)&&uc(n.length)&&!!mr[de(n)]}function Be(n){return"function"==typeof n?n:null==n?Sa:"object"==typeof n?yh(n)?Pe(n[0],n[1]):Ne(n):Da(n)}function $e(n){if(!Mi(n))return Zl(n);var t=[];for(var r in cl(n))yl.call(n,r)&&"constructor"!=r&&t.push(r);return t}function De(n){if(!ic(n))return qi(n);var t=Mi(n),r=[];for(var e in n)("constructor"!=e||!t&&yl.call(n,e))&&r.push(e);return r}function Me(n,t){return n<t}function Fe(n,t){var r=-1,e=Vf(n)?el(n.length):[];return vs(n,function(n,u,i){e[++r]=t(n,u,i)}),e}function Ne(n){var t=ji(n);return 1==t.length&&t[0][2]?Ni(t[0][0],t[0][1]):function(r){return r===n||Le(r,n,t)}}function Pe(n,t){return Ui(n)&&Fi(t)?Ni(Qi(n),t):function(r){var e=$c(r,n);return e===rn&&e===t?Mc(r,n):ze(t,e,pn|_n)}}function qe(n,t,r,e,u){n!==t&&ys(t,function(i,o){if(ic(i))u||(u=new Ar),Ze(n,t,o,r,qe,e,u);else{var f=e?e(n[o],i,o+"",n,t,u):rn;f===rn&&(f=i),Gr(n,o,f)}},Nc)}function Ze(n,t,r,e,u,i,o){var f=n[r],c=t[r],a=o.get(c);if(a)return void Gr(n,r,a);var l=i?i(f,c,r+"",n,t,o):rn,s=l===rn;if(s){var h=yh(c),p=!h&&bh(c),_=!h&&!p&&Ah(c);l=c,h||p||_?yh(f)?l=f:Gf(f)?l=Bu(f):p?(s=!1,l=ku(c,!0)):_?(s=!1,l=Lu(c,!0)):l=[]:_c(c)||gh(c)?(l=f,gh(f)?l=Oc(f):(!ic(f)||e&&rc(f))&&(l=Ei(c))):s=!1}s&&(o.set(c,l),u(l,c,e,i,o),o.delete(c)),Gr(n,r,l)}function Ke(n,t){var r=n.length;if(r)return t+=t<0?r:0,Ci(t,r)?n[t]:rn}function Ve(n,t,r){var e=-1;return t=p(t.length?t:[Sa],W(mi())),z(Fe(n,function(n,r,u){return{criteria:p(t,function(t){return t(n)}),index:++e,value:n}}),function(n,t){return Cu(n,t,r)})}function Ge(n,t){return He(n,t,function(t,r){return Mc(n,r)})}function He(n,t,r){for(var e=-1,u=t.length,i={};++e<u;){var o=t[e],f=ge(n,o);r(f,o)&&iu(i,ju(o,n),f)}return i}function Je(n){return function(t){return ge(t,n)}}function Ye(n,t,r,e){var u=e?j:x,i=-1,o=t.length,f=n;for(n===t&&(t=Bu(t)),r&&(f=p(n,W(r)));++i<o;)for(var c=0,a=t[i],l=r?r(a):a;(c=u(f,l,c,e))>-1;)f!==n&&Sl.call(f,c,1),Sl.call(n,c,1);return n}function Qe(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;Ci(u)?Sl.call(n,u,1):vu(n,u)}}return n}function Xe(n,t){return n+Ml(Jl()*(t-n+1))}function nu(n,t,r,e){for(var u=-1,i=Kl(Dl((t-n)/(r||1)),0),o=el(i);i--;)o[e?i:++u]=n,n+=r;return o}function tu(n,t){var r="";if(!n||t<1||t>Ln)return r;do{t%2&&(r+=n),(t=Ml(t/2))&&(n+=n)}while(t);return r}function ru(n,t){return Ss(Ki(n,t,Sa),n+"")}function eu(n){return Tr(na(n))}function uu(n,t){var r=na(n);return Yi(r,re(t,0,r.length))}function iu(n,t,r,e){if(!ic(n))return n;t=ju(t,n);for(var u=-1,i=t.length,o=i-1,f=n;null!=f&&++u<i;){var c=Qi(t[u]),a=r;if(u!=o){var l=f[c];a=e?e(l,c,f):rn,a===rn&&(a=ic(l)?l:Ci(t[u+1])?[]:{})}Hr(f,c,a),f=f[c]}return n}function ou(n){return Yi(na(n))}function fu(n,t,r){var e=-1,u=n.length;t<0&&(t=-t>u?0:u+t),r=r>u?u:r,r<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var i=el(u);++e<u;)i[e]=n[e+t];return i}function cu(n,t){var r;return vs(n,function(n,e,u){return!(r=t(n,e,u))}),!!r}function au(n,t,r){var e=0,u=null==n?e:n.length;if("number"==typeof t&&t===t&&u<=Bn){for(;e<u;){var i=e+u>>>1,o=n[i];null!==o&&!yc(o)&&(r?o<=t:o<t)?e=i+1:u=i}return u}return lu(n,t,Sa,r)}function lu(n,t,r,e){t=r(t);for(var u=0,i=null==n?0:n.length,o=t!==t,f=null===t,c=yc(t),a=t===rn;u<i;){var l=Ml((u+i)/2),s=r(n[l]),h=s!==rn,p=null===s,_=s===s,v=yc(s);if(o)var g=e||_;else g=a?_&&(e||h):f?_&&h&&(e||!p):c?_&&h&&!p&&(e||!v):!p&&!v&&(e?s<=t:s<t);g?u=l+1:i=l}return Vl(i,Un)}function su(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r],f=t?t(o):o;if(!r||!Kf(f,c)){var c=f;i[u++]=0===o?0:o}}return i}function hu(n){return"number"==typeof n?n:yc(n)?Cn:+n}function pu(n){if("string"==typeof n)return n;if(yh(n))return p(n,pu)+"";if(yc(n))return ps?ps.call(n):"";var t=n+"";return"0"==t&&1/n==-Sn?"-0":t}function _u(n,t,r){var e=-1,u=s,i=n.length,o=!0,f=[],c=f;if(r)o=!1,u=h;else if(i>=en){var a=t?null:js(n);if(a)return V(a);o=!1,u=T,c=new yr}else c=t?[]:f;n:for(;++e<i;){var l=n[e],p=t?t(l):l;if(l=r||0!==l?l:0,o&&p===p){for(var _=c.length;_--;)if(c[_]===p)continue n;t&&c.push(p),f.push(l)}else u(c,p,r)||(c!==f&&c.push(p),f.push(l))}return f}function vu(n,t){return t=ju(t,n),null==(n=Vi(n,t))||delete n[Qi(mo(t))]}function gu(n,t,r,e){return iu(n,t,r(ge(n,t)),e)}function yu(n,t,r,e){for(var u=n.length,i=e?u:-1;(e?i--:++i<u)&&t(n[i],i,n););return r?fu(n,e?0:i,e?i+1:u):fu(n,e?i+1:0,e?u:i)}function du(n,t){var r=n;return r instanceof H&&(r=r.value()),v(t,function(n,t){return t.func.apply(t.thisArg,_([n],t.args))},r)}function bu(n,t,r){var e=n.length;if(e<2)return e?_u(n[0]):[];for(var u=-1,i=el(e);++u<e;)for(var o=n[u],f=-1;++f<e;)f!=u&&(i[u]=fe(i[u]||o,n[f],t,r));return _u(he(i,1),t,r)}function wu(n,t,r){for(var e=-1,u=n.length,i=t.length,o={};++e<u;){var f=e<i?t[e]:rn;r(o,n[e],f)}return o}function mu(n){return Gf(n)?n:[]}function xu(n){return"function"==typeof n?n:Sa}function ju(n,t){return yh(n)?n:Ui(n,t)?[n]:Ls(Rc(n))}function Au(n,t,r){var e=n.length;return r=r===rn?e:r,!t&&r>=e?n:fu(n,t,r)}function ku(n,t){if(t)return n.slice();var r=n.length,e=Il?Il(r):new n.constructor(r);return n.copy(e),e}function Ou(n){var t=new n.constructor(n.byteLength);return new Ol(t).set(new Ol(n)),t}function Iu(n,t){var r=t?Ou(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}function Ru(n,r,e){return v(r?e(q(n),ln):q(n),t,new n.constructor)}function zu(n){var t=new n.constructor(n.source,Nt.exec(n));return t.lastIndex=n.lastIndex,t}function Eu(n,t,r){return v(t?r(V(n),ln):V(n),u,new n.constructor)}function Su(n){return hs?cl(hs.call(n)):{}}function Lu(n,t){var r=t?Ou(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function Wu(n,t){if(n!==t){var r=n!==rn,e=null===n,u=n===n,i=yc(n),o=t!==rn,f=null===t,c=t===t,a=yc(t);if(!f&&!a&&!i&&n>t||i&&o&&c&&!f&&!a||e&&o&&c||!r&&c||!u)return 1;if(!e&&!i&&!a&&n<t||a&&r&&u&&!e&&!i||f&&r&&u||!o&&u||!c)return-1}return 0}function Cu(n,t,r){for(var e=-1,u=n.criteria,i=t.criteria,o=u.length,f=r.length;++e<o;){var c=Wu(u[e],i[e]);if(c){if(e>=f)return c;return c*("desc"==r[e]?-1:1)}}return n.index-t.index}function Tu(n,t,r,e){for(var u=-1,i=n.length,o=r.length,f=-1,c=t.length,a=Kl(i-o,0),l=el(c+a),s=!e;++f<c;)l[f]=t[f];for(;++u<o;)(s||u<i)&&(l[r[u]]=n[u]);for(;a--;)l[f++]=n[u++];return l}function Uu(n,t,r,e){for(var u=-1,i=n.length,o=-1,f=r.length,c=-1,a=t.length,l=Kl(i-f,0),s=el(l+a),h=!e;++u<l;)s[u]=n[u];for(var p=u;++c<a;)s[p+c]=t[c];for(;++o<f;)(h||u<i)&&(s[p+r[o]]=n[u++]);return s}function Bu(n,t){var r=-1,e=n.length;for(t||(t=el(e));++r<e;)t[r]=n[r];return t}function $u(n,t,r,e){var u=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var f=t[i],c=e?e(r[f],n[f],f,r,n):rn;c===rn&&(c=n[f]),u?ne(r,f,c):Hr(r,f,c)}return r}function Du(n,t){return $u(n,ks(n),t)}function Mu(n,t){return $u(n,Os(n),t)}function Fu(n,t){return function(r,e){var u=yh(r)?o:Yr,i=t?t():{};return u(r,n,mi(e,2),i)}}function Nu(n){return ru(function(t,r){var e=-1,u=r.length,i=u>1?r[u-1]:rn,o=u>2?r[2]:rn;for(i=n.length>3&&"function"==typeof i?(u--,i):rn,o&&Ti(r[0],r[1],o)&&(i=u<3?rn:i,u=1),t=cl(t);++e<u;){var f=r[e];f&&n(t,f,e,i)}return t})}function Pu(n,t){return function(r,e){if(null==r)return r;if(!Vf(r))return n(r,e);for(var u=r.length,i=t?u:-1,o=cl(r);(t?i--:++i<u)&&!1!==e(o[i],i,o););return r}}function qu(n){return function(t,r,e){for(var u=-1,i=cl(t),o=e(t),f=o.length;f--;){var c=o[n?f:++u];if(!1===r(i[c],c,i))break}return t}}function Zu(n,t,r){function e(){return(this&&this!==Sr&&this instanceof e?i:n).apply(u?r:this,arguments)}var u=t&vn,i=Gu(n);return e}function Ku(n){return function(t){t=Rc(t);var r=F(t)?Q(t):rn,e=r?r[0]:t.charAt(0),u=r?Au(r,1).join(""):t.slice(1);return e[n]()+u}}function Vu(n){return function(t){return v(Oa(oa(t).replace(pr,"")),n,"")}}function Gu(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=_s(n.prototype),e=n.apply(r,t);return ic(e)?e:r}}function Hu(n,t,r){function e(){for(var o=arguments.length,f=el(o),c=o,a=wi(e);c--;)f[c]=arguments[c];var l=o<3&&f[0]!==a&&f[o-1]!==a?[]:K(f,a);return(o-=l.length)<r?oi(n,t,Qu,e.placeholder,rn,f,l,rn,rn,r-o):i(this&&this!==Sr&&this instanceof e?u:n,this,f)}var u=Gu(n);return e}function Ju(n){return function(t,r,e){var u=cl(t);if(!Vf(t)){var i=mi(r,3);t=Fc(t),r=function(n){return i(u[n],n,u)}}var o=n(t,r,e);return o>-1?u[i?t[o]:o]:rn}}function Yu(n){return gi(function(t){var r=t.length,e=r,u=I.prototype.thru;for(n&&t.reverse();e--;){var i=t[e];if("function"!=typeof i)throw new sl(on);if(u&&!o&&"wrapper"==bi(i))var o=new I([],!0)}for(e=o?e:r;++e<r;){i=t[e];var f=bi(i),c="wrapper"==f?As(i):rn;o=c&&$i(c[0])&&c[1]==(xn|dn|wn|jn)&&!c[4].length&&1==c[9]?o[bi(c[0])].apply(o,c[3]):1==i.length&&$i(i)?o[f]():o.thru(i)}return function(){var n=arguments,e=n[0];if(o&&1==n.length&&yh(e))return o.plant(e).value();for(var u=0,i=r?t[u].apply(this,n):e;++u<r;)i=t[u].call(this,i);return i}})}function Qu(n,t,r,e,u,i,o,f,c,a){function l(){for(var y=arguments.length,d=el(y),b=y;b--;)d[b]=arguments[b];if(_)var w=wi(l),m=$(d,w);if(e&&(d=Tu(d,e,u,_)),i&&(d=Uu(d,i,o,_)),y-=m,_&&y<a){var x=K(d,w);return oi(n,t,Qu,l.placeholder,r,d,x,f,c,a-y)}var j=h?r:this,A=p?j[n]:n;return y=d.length,f?d=Gi(d,f):v&&y>1&&d.reverse(),s&&c<y&&(d.length=c),this&&this!==Sr&&this instanceof l&&(A=g||Gu(A)),A.apply(j,d)}var s=t&xn,h=t&vn,p=t&gn,_=t&(dn|bn),v=t&An,g=p?rn:Gu(n);return l}function Xu(n,t){return function(r,e){return Ae(r,n,t(e),{})}}function ni(n,t){return function(r,e){var u;if(r===rn&&e===rn)return t;if(r!==rn&&(u=r),e!==rn){if(u===rn)return e;"string"==typeof r||"string"==typeof e?(r=pu(r),e=pu(e)):(r=hu(r),e=hu(e)),u=n(r,e)}return u}}function ti(n){return gi(function(t){return t=p(t,W(mi())),ru(function(r){var e=this;return n(t,function(n){return i(n,e,r)})})})}function ri(n,t){t=t===rn?" ":pu(t);var r=t.length;if(r<2)return r?tu(t,n):t;var e=tu(t,Dl(n/Y(t)));return F(t)?Au(Q(e),0,n).join(""):e.slice(0,n)}function ei(n,t,r,e){function u(){for(var t=-1,c=arguments.length,a=-1,l=e.length,s=el(l+c),h=this&&this!==Sr&&this instanceof u?f:n;++a<l;)s[a]=e[a];for(;c--;)s[a++]=arguments[++t];return i(h,o?r:this,s)}var o=t&vn,f=Gu(n);return u}function ui(n){return function(t,r,e){return e&&"number"!=typeof e&&Ti(t,r,e)&&(r=e=rn),t=xc(t),r===rn?(r=t,t=0):r=xc(r),e=e===rn?t<r?1:-1:xc(e),nu(t,r,e,n)}}function ii(n){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=kc(t),r=kc(r)),n(t,r)}}function oi(n,t,r,e,u,i,o,f,c,a){var l=t&dn,s=l?o:rn,h=l?rn:o,p=l?i:rn,_=l?rn:i;t|=l?wn:mn,(t&=~(l?mn:wn))&yn||(t&=~(vn|gn));var v=[n,t,u,p,s,_,h,f,c,a],g=r.apply(rn,v);return $i(n)&&zs(g,v),g.placeholder=e,Hi(g,n,t)}function fi(n){var t=fl[n];return function(n,r){if(n=kc(n),r=null==r?0:Vl(jc(r),292)){var e=(Rc(n)+"e").split("e");return e=(Rc(t(e[0]+"e"+(+e[1]+r)))+"e").split("e"),+(e[0]+"e"+(+e[1]-r))}return t(n)}}function ci(n){return function(t){var r=Is(t);return r==Gn?q(t):r==nt?G(t):L(t,n(t))}}function ai(n,t,r,e,u,i,o,f){var c=t&gn;if(!c&&"function"!=typeof n)throw new sl(on);var a=e?e.length:0;if(a||(t&=~(wn|mn),e=u=rn),o=o===rn?o:Kl(jc(o),0),f=f===rn?f:jc(f),a-=u?u.length:0,t&mn){var l=e,s=u;e=u=rn}var h=c?rn:As(n),p=[n,t,r,e,u,l,s,i,o,f];if(h&&Pi(p,h),n=p[0],t=p[1],r=p[2],e=p[3],u=p[4],f=p[9]=p[9]===rn?c?0:n.length:Kl(p[9]-a,0),!f&&t&(dn|bn)&&(t&=~(dn|bn)),t&&t!=vn)_=t==dn||t==bn?Hu(n,t,f):t!=wn&&t!=(vn|wn)||u.length?Qu.apply(rn,p):ei(n,t,r,e);else var _=Zu(n,t,r);return Hi((h?bs:zs)(_,p),n,t)}function li(n,t,r,e){return n===rn||Kf(n,_l[r])&&!yl.call(e,r)?t:n}function si(n,t,r,e,u,i){return ic(n)&&ic(t)&&(i.set(t,n),qe(n,t,rn,si,i),i.delete(t)),n}function hi(n){return _c(n)?rn:n}function pi(n,t,r,e,u,i){var o=r&pn,f=n.length,c=t.length;if(f!=c&&!(o&&c>f))return!1;var a=i.get(n);if(a&&i.get(t))return a==t;var l=-1,s=!0,h=r&_n?new yr:rn;for(i.set(n,t),i.set(t,n);++l<f;){var p=n[l],_=t[l];if(e)var v=o?e(_,p,l,t,n,i):e(p,_,l,n,t,i);if(v!==rn){if(v)continue;s=!1;break}if(h){if(!y(t,function(n,t){
if(!T(h,t)&&(p===n||u(p,n,r,e,i)))return h.push(t)})){s=!1;break}}else if(p!==_&&!u(p,_,r,e,i)){s=!1;break}}return i.delete(n),i.delete(t),s}function _i(n,t,r,e,u,i,o){switch(r){case ft:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case ot:return!(n.byteLength!=t.byteLength||!i(new Ol(n),new Ol(t)));case Nn:case Pn:case Hn:return Kf(+n,+t);case Zn:return n.name==t.name&&n.message==t.message;case Xn:case tt:return n==t+"";case Gn:var f=q;case nt:var c=e&pn;if(f||(f=V),n.size!=t.size&&!c)return!1;var a=o.get(n);if(a)return a==t;e|=_n,o.set(n,t);var l=pi(f(n),f(t),e,u,i,o);return o.delete(n),l;case rt:if(hs)return hs.call(n)==hs.call(t)}return!1}function vi(n,t,r,e,u,i){var o=r&pn,f=yi(n),c=f.length;if(c!=yi(t).length&&!o)return!1;for(var a=c;a--;){var l=f[a];if(!(o?l in t:yl.call(t,l)))return!1}var s=i.get(n);if(s&&i.get(t))return s==t;var h=!0;i.set(n,t),i.set(t,n);for(var p=o;++a<c;){l=f[a];var _=n[l],v=t[l];if(e)var g=o?e(v,_,l,t,n,i):e(_,v,l,n,t,i);if(!(g===rn?_===v||u(_,v,r,e,i):g)){h=!1;break}p||(p="constructor"==l)}if(h&&!p){var y=n.constructor,d=t.constructor;y!=d&&"constructor"in n&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof d&&d instanceof d)&&(h=!1)}return i.delete(n),i.delete(t),h}function gi(n){return Ss(Ki(n,rn,ho),n+"")}function yi(n){return ye(n,Fc,ks)}function di(n){return ye(n,Nc,Os)}function bi(n){for(var t=n.name+"",r=is[t],e=yl.call(is,t)?r.length:0;e--;){var u=r[e],i=u.func;if(null==i||i==n)return u.name}return t}function wi(n){return(yl.call(e,"placeholder")?e:n).placeholder}function mi(){var n=e.iteratee||La;return n=n===La?Be:n,arguments.length?n(arguments[0],arguments[1]):n}function xi(n,t){var r=n.__data__;return Bi(t)?r["string"==typeof t?"string":"hash"]:r.map}function ji(n){for(var t=Fc(n),r=t.length;r--;){var e=t[r],u=n[e];t[r]=[e,u,Fi(u)]}return t}function Ai(n,t){var r=M(n,t);return We(r)?r:rn}function ki(n){var t=yl.call(n,Cl),r=n[Cl];try{n[Cl]=rn;var e=!0}catch(n){}var u=wl.call(n);return e&&(t?n[Cl]=r:delete n[Cl]),u}function Oi(n,t,r){for(var e=-1,u=r.length;++e<u;){var i=r[e],o=i.size;switch(i.type){case"drop":n+=o;break;case"dropRight":t-=o;break;case"take":t=Vl(t,n+o);break;case"takeRight":n=Kl(n,t-o)}}return{start:n,end:t}}function Ii(n){var t=n.match(Bt);return t?t[1].split($t):[]}function Ri(n,t,r){t=ju(t,n);for(var e=-1,u=t.length,i=!1;++e<u;){var o=Qi(t[e]);if(!(i=null!=n&&r(n,o)))break;n=n[o]}return i||++e!=u?i:!!(u=null==n?0:n.length)&&uc(u)&&Ci(o,u)&&(yh(n)||gh(n))}function zi(n){var t=n.length,r=n.constructor(t);return t&&"string"==typeof n[0]&&yl.call(n,"index")&&(r.index=n.index,r.input=n.input),r}function Ei(n){return"function"!=typeof n.constructor||Mi(n)?{}:_s(Rl(n))}function Si(n,t,r,e){var u=n.constructor;switch(t){case ot:return Ou(n);case Nn:case Pn:return new u(+n);case ft:return Iu(n,e);case ct:case at:case lt:case st:case ht:case pt:case _t:case vt:case gt:return Lu(n,e);case Gn:return Ru(n,e,r);case Hn:case tt:return new u(n);case Xn:return zu(n);case nt:return Eu(n,e,r);case rt:return Su(n)}}function Li(n,t){var r=t.length;if(!r)return n;var e=r-1;return t[e]=(r>1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(Ut,"{\n/* [wrapped with "+t+"] */\n")}function Wi(n){return yh(n)||gh(n)||!!(Ll&&n&&n[Ll])}function Ci(n,t){return!!(t=null==t?Ln:t)&&("number"==typeof n||Vt.test(n))&&n>-1&&n%1==0&&n<t}function Ti(n,t,r){if(!ic(r))return!1;var e=typeof t;return!!("number"==e?Vf(r)&&Ci(t,r.length):"string"==e&&t in r)&&Kf(r[t],n)}function Ui(n,t){if(yh(n))return!1;var r=typeof n;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=n&&!yc(n))||(Rt.test(n)||!It.test(n)||null!=t&&n in cl(t))}function Bi(n){var t=typeof n;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==n:null===n}function $i(n){var t=bi(n),r=e[t];if("function"!=typeof r||!(t in H.prototype))return!1;if(n===r)return!0;var u=As(r);return!!u&&n===u[0]}function Di(n){return!!bl&&bl in n}function Mi(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||_l)}function Fi(n){return n===n&&!ic(n)}function Ni(n,t){return function(r){return null!=r&&(r[n]===t&&(t!==rn||n in cl(r)))}}function Pi(n,t){var r=n[1],e=t[1],u=r|e,i=u<(vn|gn|xn),o=e==xn&&r==dn||e==xn&&r==jn&&n[7].length<=t[8]||e==(xn|jn)&&t[7].length<=t[8]&&r==dn;if(!i&&!o)return n;e&vn&&(n[2]=t[2],u|=r&vn?0:yn);var f=t[3];if(f){var c=n[3];n[3]=c?Tu(c,f,t[4]):f,n[4]=c?K(n[3],an):t[4]}return f=t[5],f&&(c=n[5],n[5]=c?Uu(c,f,t[6]):f,n[6]=c?K(n[5],an):t[6]),f=t[7],f&&(n[7]=f),e&xn&&(n[8]=null==n[8]?t[8]:Vl(n[8],t[8])),null==n[9]&&(n[9]=t[9]),n[0]=t[0],n[1]=u,n}function qi(n){var t=[];if(null!=n)for(var r in cl(n))t.push(r);return t}function Zi(n){return wl.call(n)}function Ki(n,t,r){return t=Kl(t===rn?n.length-1:t,0),function(){for(var e=arguments,u=-1,o=Kl(e.length-t,0),f=el(o);++u<o;)f[u]=e[t+u];u=-1;for(var c=el(t+1);++u<t;)c[u]=e[u];return c[t]=r(f),i(n,this,c)}}function Vi(n,t){return t.length<2?n:ge(n,fu(t,0,-1))}function Gi(n,t){for(var r=n.length,e=Vl(t.length,r),u=Bu(n);e--;){var i=t[e];n[e]=Ci(i,r)?u[i]:rn}return n}function Hi(n,t,r){var e=t+"";return Ss(n,Li(e,no(Ii(e),r)))}function Ji(n){var t=0,r=0;return function(){var e=Gl(),u=Rn-(e-r);if(r=e,u>0){if(++t>=In)return arguments[0]}else t=0;return n.apply(rn,arguments)}}function Yi(n,t){var r=-1,e=n.length,u=e-1;for(t=t===rn?e:t;++r<t;){var i=Xe(r,u),o=n[i];n[i]=n[r],n[r]=o}return n.length=t,n}function Qi(n){if("string"==typeof n||yc(n))return n;var t=n+"";return"0"==t&&1/n==-Sn?"-0":t}function Xi(n){if(null!=n){try{return gl.call(n)}catch(n){}try{return n+""}catch(n){}}return""}function no(n,t){return f($n,function(r){var e="_."+r[0];t&r[1]&&!s(n,e)&&n.push(e)}),n.sort()}function to(n){if(n instanceof H)return n.clone();var t=new I(n.__wrapped__,n.__chain__);return t.__actions__=Bu(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}function ro(n,t,r){t=(r?Ti(n,t,r):t===rn)?1:Kl(jc(t),0);var e=null==n?0:n.length;if(!e||t<1)return[];for(var u=0,i=0,o=el(Dl(e/t));u<e;)o[i++]=fu(n,u,u+=t);return o}function eo(n){for(var t=-1,r=null==n?0:n.length,e=0,u=[];++t<r;){var i=n[t];i&&(u[e++]=i)}return u}function uo(){var n=arguments.length;if(!n)return[];for(var t=el(n-1),r=arguments[0],e=n;e--;)t[e-1]=arguments[e];return _(yh(r)?Bu(r):[r],he(t,1))}function io(n,t,r){var e=null==n?0:n.length;return e?(t=r||t===rn?1:jc(t),fu(n,t<0?0:t,e)):[]}function oo(n,t,r){var e=null==n?0:n.length;return e?(t=r||t===rn?1:jc(t),t=e-t,fu(n,0,t<0?0:t)):[]}function fo(n,t){return n&&n.length?yu(n,mi(t,3),!0,!0):[]}function co(n,t){return n&&n.length?yu(n,mi(t,3),!0):[]}function ao(n,t,r,e){var u=null==n?0:n.length;return u?(r&&"number"!=typeof r&&Ti(n,t,r)&&(r=0,e=u),le(n,t,r,e)):[]}function lo(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:jc(r);return u<0&&(u=Kl(e+u,0)),m(n,mi(t,3),u)}function so(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e-1;return r!==rn&&(u=jc(r),u=r<0?Kl(e+u,0):Vl(u,e-1)),m(n,mi(t,3),u,!0)}function ho(n){return(null==n?0:n.length)?he(n,1):[]}function po(n){return(null==n?0:n.length)?he(n,Sn):[]}function _o(n,t){return(null==n?0:n.length)?(t=t===rn?1:jc(t),he(n,t)):[]}function vo(n){for(var t=-1,r=null==n?0:n.length,e={};++t<r;){var u=n[t];e[u[0]]=u[1]}return e}function go(n){return n&&n.length?n[0]:rn}function yo(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:jc(r);return u<0&&(u=Kl(e+u,0)),x(n,t,u)}function bo(n){return(null==n?0:n.length)?fu(n,0,-1):[]}function wo(n,t){return null==n?"":ql.call(n,t)}function mo(n){var t=null==n?0:n.length;return t?n[t-1]:rn}function xo(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=e;return r!==rn&&(u=jc(r),u=u<0?Kl(e+u,0):Vl(u,e-1)),t===t?J(n,t,u):m(n,A,u,!0)}function jo(n,t){return n&&n.length?Ke(n,jc(t)):rn}function Ao(n,t){return n&&n.length&&t&&t.length?Ye(n,t):n}function ko(n,t,r){return n&&n.length&&t&&t.length?Ye(n,t,mi(r,2)):n}function Oo(n,t,r){return n&&n.length&&t&&t.length?Ye(n,t,rn,r):n}function Io(n,t){var r=[];if(!n||!n.length)return r;var e=-1,u=[],i=n.length;for(t=mi(t,3);++e<i;){var o=n[e];t(o,e,n)&&(r.push(o),u.push(e))}return Qe(n,u),r}function Ro(n){return null==n?n:Yl.call(n)}function zo(n,t,r){var e=null==n?0:n.length;return e?(r&&"number"!=typeof r&&Ti(n,t,r)?(t=0,r=e):(t=null==t?0:jc(t),r=r===rn?e:jc(r)),fu(n,t,r)):[]}function Eo(n,t){return au(n,t)}function So(n,t,r){return lu(n,t,mi(r,2))}function Lo(n,t){var r=null==n?0:n.length;if(r){var e=au(n,t);if(e<r&&Kf(n[e],t))return e}return-1}function Wo(n,t){return au(n,t,!0)}function Co(n,t,r){return lu(n,t,mi(r,2),!0)}function To(n,t){if(null==n?0:n.length){var r=au(n,t,!0)-1;if(Kf(n[r],t))return r}return-1}function Uo(n){return n&&n.length?su(n):[]}function Bo(n,t){return n&&n.length?su(n,mi(t,2)):[]}function $o(n){var t=null==n?0:n.length;return t?fu(n,1,t):[]}function Do(n,t,r){return n&&n.length?(t=r||t===rn?1:jc(t),fu(n,0,t<0?0:t)):[]}function Mo(n,t,r){var e=null==n?0:n.length;return e?(t=r||t===rn?1:jc(t),t=e-t,fu(n,t<0?0:t,e)):[]}function Fo(n,t){return n&&n.length?yu(n,mi(t,3),!1,!0):[]}function No(n,t){return n&&n.length?yu(n,mi(t,3)):[]}function Po(n){return n&&n.length?_u(n):[]}function qo(n,t){return n&&n.length?_u(n,mi(t,2)):[]}function Zo(n,t){return t="function"==typeof t?t:rn,n&&n.length?_u(n,rn,t):[]}function Ko(n){if(!n||!n.length)return[];var t=0;return n=l(n,function(n){if(Gf(n))return t=Kl(n.length,t),!0}),S(t,function(t){return p(n,O(t))})}function Vo(n,t){if(!n||!n.length)return[];var r=Ko(n);return null==t?r:p(r,function(n){return i(t,rn,n)})}function Go(n,t){return wu(n||[],t||[],Hr)}function Ho(n,t){return wu(n||[],t||[],iu)}function Jo(n){var t=e(n);return t.__chain__=!0,t}function Yo(n,t){return t(n),n}function Qo(n,t){return t(n)}function Xo(){return Jo(this)}function nf(){return new I(this.value(),this.__chain__)}function tf(){this.__values__===rn&&(this.__values__=mc(this.value()));var n=this.__index__>=this.__values__.length;return{done:n,value:n?rn:this.__values__[this.__index__++]}}function rf(){return this}function ef(n){for(var t,r=this;r instanceof d;){var e=to(r);e.__index__=0,e.__values__=rn,t?u.__wrapped__=e:t=e;var u=e;r=r.__wrapped__}return u.__wrapped__=n,t}function uf(){var n=this.__wrapped__;if(n instanceof H){var t=n;return this.__actions__.length&&(t=new H(this)),t=t.reverse(),t.__actions__.push({func:Qo,args:[Ro],thisArg:rn}),new I(t,this.__chain__)}return this.thru(Ro)}function of(){return du(this.__wrapped__,this.__actions__)}function ff(n,t,r){var e=yh(n)?a:ce;return r&&Ti(n,t,r)&&(t=rn),e(n,mi(t,3))}function cf(n,t){return(yh(n)?l:se)(n,mi(t,3))}function af(n,t){return he(vf(n,t),1)}function lf(n,t){return he(vf(n,t),Sn)}function sf(n,t,r){return r=r===rn?1:jc(r),he(vf(n,t),r)}function hf(n,t){return(yh(n)?f:vs)(n,mi(t,3))}function pf(n,t){return(yh(n)?c:gs)(n,mi(t,3))}function _f(n,t,r,e){n=Vf(n)?n:na(n),r=r&&!e?jc(r):0;var u=n.length;return r<0&&(r=Kl(u+r,0)),gc(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&x(n,t,r)>-1}function vf(n,t){return(yh(n)?p:Fe)(n,mi(t,3))}function gf(n,t,r,e){return null==n?[]:(yh(t)||(t=null==t?[]:[t]),r=e?rn:r,yh(r)||(r=null==r?[]:[r]),Ve(n,t,r))}function yf(n,t,r){var e=yh(n)?v:R,u=arguments.length<3;return e(n,mi(t,4),r,u,vs)}function df(n,t,r){var e=yh(n)?g:R,u=arguments.length<3;return e(n,mi(t,4),r,u,gs)}function bf(n,t){return(yh(n)?l:se)(n,Wf(mi(t,3)))}function wf(n){return(yh(n)?Tr:eu)(n)}function mf(n,t,r){return t=(r?Ti(n,t,r):t===rn)?1:jc(t),(yh(n)?Ur:uu)(n,t)}function xf(n){return(yh(n)?Pr:ou)(n)}function jf(n){if(null==n)return 0;if(Vf(n))return gc(n)?Y(n):n.length;var t=Is(n);return t==Gn||t==nt?n.size:$e(n).length}function Af(n,t,r){var e=yh(n)?y:cu;return r&&Ti(n,t,r)&&(t=rn),e(n,mi(t,3))}function kf(n,t){if("function"!=typeof t)throw new sl(on);return n=jc(n),function(){if(--n<1)return t.apply(this,arguments)}}function Of(n,t,r){return t=r?rn:t,t=n&&null==t?n.length:t,ai(n,xn,rn,rn,rn,rn,t)}function If(n,t){var r;if("function"!=typeof t)throw new sl(on);return n=jc(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=rn),r}}function Rf(n,t,r){t=r?rn:t;var e=ai(n,dn,rn,rn,rn,rn,rn,t);return e.placeholder=Rf.placeholder,e}function zf(n,t,r){t=r?rn:t;var e=ai(n,bn,rn,rn,rn,rn,rn,t);return e.placeholder=zf.placeholder,e}function Ef(n,t,r){function e(t){var r=h,e=p;return h=p=rn,d=t,v=n.apply(e,r)}function u(n){return d=n,g=Es(f,t),b?e(n):v}function i(n){var r=n-y,e=n-d,u=t-r;return w?Vl(u,_-e):u}function o(n){var r=n-y,e=n-d;return y===rn||r>=t||r<0||w&&e>=_}function f(){var n=ih();if(o(n))return c(n);g=Es(f,i(n))}function c(n){return g=rn,m&&h?e(n):(h=p=rn,v)}function a(){g!==rn&&xs(g),d=0,h=y=p=g=rn}function l(){return g===rn?v:c(ih())}function s(){var n=ih(),r=o(n);if(h=arguments,p=this,y=n,r){if(g===rn)return u(y);if(w)return g=Es(f,t),e(y)}return g===rn&&(g=Es(f,t)),v}var h,p,_,v,g,y,d=0,b=!1,w=!1,m=!0;if("function"!=typeof n)throw new sl(on);return t=kc(t)||0,ic(r)&&(b=!!r.leading,w="maxWait"in r,_=w?Kl(kc(r.maxWait)||0,t):_,m="trailing"in r?!!r.trailing:m),s.cancel=a,s.flush=l,s}function Sf(n){return ai(n,An)}function Lf(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new sl(on);var r=function r(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Lf.Cache||ar),r}function Wf(n){if("function"!=typeof n)throw new sl(on);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}function Cf(n){return If(2,n)}function Tf(n,t){if("function"!=typeof n)throw new sl(on);return t=t===rn?t:jc(t),ru(n,t)}function Uf(n,t){if("function"!=typeof n)throw new sl(on);return t=null==t?0:Kl(jc(t),0),ru(function(r){var e=r[t],u=Au(r,0,t);return e&&_(u,e),i(n,this,u)})}function Bf(n,t,r){var e=!0,u=!0;if("function"!=typeof n)throw new sl(on);return ic(r)&&(e="leading"in r?!!r.leading:e,u="trailing"in r?!!r.trailing:u),Ef(n,t,{leading:e,maxWait:t,trailing:u})}function $f(n){return Of(n,1)}function Df(n,t){return sh(xu(t),n)}function Mf(){if(!arguments.length)return[];var n=arguments[0];return yh(n)?n:[n]}function Ff(n){return ee(n,hn)}function Nf(n,t){return t="function"==typeof t?t:rn,ee(n,hn,t)}function Pf(n){return ee(n,ln|hn)}function qf(n,t){return t="function"==typeof t?t:rn,ee(n,ln|hn,t)}function Zf(n,t){return null==t||ie(n,t,Fc(t))}function Kf(n,t){return n===t||n!==n&&t!==t}function Vf(n){return null!=n&&uc(n.length)&&!rc(n)}function Gf(n){return oc(n)&&Vf(n)}function Hf(n){return!0===n||!1===n||oc(n)&&de(n)==Nn}function Jf(n){return oc(n)&&1===n.nodeType&&!_c(n)}function Yf(n){if(null==n)return!0;if(Vf(n)&&(yh(n)||"string"==typeof n||"function"==typeof n.splice||bh(n)||Ah(n)||gh(n)))return!n.length;var t=Is(n);if(t==Gn||t==nt)return!n.size;if(Mi(n))return!$e(n).length;for(var r in n)if(yl.call(n,r))return!1;return!0}function Qf(n,t){return ze(n,t)}function Xf(n,t,r){r="function"==typeof r?r:rn;var e=r?r(n,t):rn;return e===rn?ze(n,t,rn,r):!!e}function nc(n){if(!oc(n))return!1;var t=de(n);return t==Zn||t==qn||"string"==typeof n.message&&"string"==typeof n.name&&!_c(n)}function tc(n){return"number"==typeof n&&Pl(n)}function rc(n){if(!ic(n))return!1;var t=de(n);return t==Kn||t==Vn||t==Fn||t==Qn}function ec(n){return"number"==typeof n&&n==jc(n)}function uc(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=Ln}function ic(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function oc(n){return null!=n&&"object"==typeof n}function fc(n,t){return n===t||Le(n,t,ji(t))}function cc(n,t,r){return r="function"==typeof r?r:rn,Le(n,t,ji(t),r)}function ac(n){return pc(n)&&n!=+n}function lc(n){if(Rs(n))throw new il(un);return We(n)}function sc(n){return null===n}function hc(n){return null==n}function pc(n){return"number"==typeof n||oc(n)&&de(n)==Hn}function _c(n){if(!oc(n)||de(n)!=Yn)return!1;var t=Rl(n);if(null===t)return!0;var r=yl.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&gl.call(r)==ml}function vc(n){return ec(n)&&n>=-Ln&&n<=Ln}function gc(n){return"string"==typeof n||!yh(n)&&oc(n)&&de(n)==tt}function yc(n){return"symbol"==typeof n||oc(n)&&de(n)==rt}function dc(n){return n===rn}function bc(n){return oc(n)&&Is(n)==ut}function wc(n){return oc(n)&&de(n)==it}function mc(n){if(!n)return[];if(Vf(n))return gc(n)?Q(n):Bu(n);if(Wl&&n[Wl])return P(n[Wl]());var t=Is(n);return(t==Gn?q:t==nt?V:na)(n)}function xc(n){if(!n)return 0===n?n:0;if((n=kc(n))===Sn||n===-Sn){return(n<0?-1:1)*Wn}return n===n?n:0}function jc(n){var t=xc(n),r=t%1;return t===t?r?t-r:t:0}function Ac(n){return n?re(jc(n),0,Tn):0}function kc(n){if("number"==typeof n)return n;if(yc(n))return Cn;if(ic(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=ic(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=n.replace(Wt,"");var r=qt.test(n);return r||Kt.test(n)?Rr(n.slice(2),r?2:8):Pt.test(n)?Cn:+n}function Oc(n){return $u(n,Nc(n))}function Ic(n){return n?re(jc(n),-Ln,Ln):0===n?n:0}function Rc(n){return null==n?"":pu(n)}function zc(n,t){var r=_s(n);return null==t?r:Qr(r,t)}function Ec(n,t){return w(n,mi(t,3),pe)}function Sc(n,t){return w(n,mi(t,3),_e)}function Lc(n,t){return null==n?n:ys(n,mi(t,3),Nc)}function Wc(n,t){return null==n?n:ds(n,mi(t,3),Nc)}function Cc(n,t){return n&&pe(n,mi(t,3))}function Tc(n,t){return n&&_e(n,mi(t,3))}function Uc(n){return null==n?[]:ve(n,Fc(n))}function Bc(n){return null==n?[]:ve(n,Nc(n))}function $c(n,t,r){var e=null==n?rn:ge(n,t);return e===rn?r:e}function Dc(n,t){return null!=n&&Ri(n,t,we)}function Mc(n,t){return null!=n&&Ri(n,t,me)}function Fc(n){return Vf(n)?Wr(n):$e(n)}function Nc(n){return Vf(n)?Wr(n,!0):De(n)}function Pc(n,t){var r={};return t=mi(t,3),pe(n,function(n,e,u){ne(r,t(n,e,u),n)}),r}function qc(n,t){var r={};return t=mi(t,3),pe(n,function(n,e,u){ne(r,e,t(n,e,u))}),r}function Zc(n,t){return Kc(n,Wf(mi(t)))}function Kc(n,t){if(null==n)return{};var r=p(di(n),function(n){return[n]});return t=mi(t),He(n,r,function(n,r){return t(n,r[0])})}function Vc(n,t,r){t=ju(t,n);var e=-1,u=t.length;for(u||(u=1,n=rn);++e<u;){var i=null==n?rn:n[Qi(t[e])];i===rn&&(e=u,i=r),n=rc(i)?i.call(n):i}return n}function Gc(n,t,r){return null==n?n:iu(n,t,r)}function Hc(n,t,r,e){return e="function"==typeof e?e:rn,null==n?n:iu(n,t,r,e)}function Jc(n,t,r){var e=yh(n),u=e||bh(n)||Ah(n);if(t=mi(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:ic(n)&&rc(i)?_s(Rl(n)):{}}return(u?f:pe)(n,function(n,e,u){return t(r,n,e,u)}),r}function Yc(n,t){return null==n||vu(n,t)}function Qc(n,t,r){return null==n?n:gu(n,t,xu(r))}function Xc(n,t,r,e){return e="function"==typeof e?e:rn,null==n?n:gu(n,t,xu(r),e)}function na(n){return null==n?[]:C(n,Fc(n))}function ta(n){return null==n?[]:C(n,Nc(n))}function ra(n,t,r){return r===rn&&(r=t,t=rn),r!==rn&&(r=kc(r),r=r===r?r:0),t!==rn&&(t=kc(t),t=t===t?t:0),re(kc(n),t,r)}function ea(n,t,r){return t=xc(t),r===rn?(r=t,t=0):r=xc(r),n=kc(n),xe(n,t,r)}function ua(n,t,r){if(r&&"boolean"!=typeof r&&Ti(n,t,r)&&(t=r=rn),r===rn&&("boolean"==typeof t?(r=t,t=rn):"boolean"==typeof n&&(r=n,n=rn)),n===rn&&t===rn?(n=0,t=1):(n=xc(n),t===rn?(t=n,n=0):t=xc(t)),n>t){var e=n;n=t,t=e}if(r||n%1||t%1){var u=Jl();return Vl(n+u*(t-n+Ir("1e-"+((u+"").length-1))),t)}return Xe(n,t)}function ia(n){return Jh(Rc(n).toLowerCase())}function oa(n){return(n=Rc(n))&&n.replace(Gt,qr).replace(_r,"")}function fa(n,t,r){n=Rc(n),t=pu(t);var e=n.length;r=r===rn?e:re(jc(r),0,e);var u=r;return(r-=t.length)>=0&&n.slice(r,u)==t}function ca(n){return n=Rc(n),n&&jt.test(n)?n.replace(mt,Zr):n}function aa(n){return n=Rc(n),n&&Lt.test(n)?n.replace(St,"\\$&"):n}function la(n,t,r){n=Rc(n),t=jc(t);var e=t?Y(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return ri(Ml(u),r)+n+ri(Dl(u),r)}function sa(n,t,r){n=Rc(n),t=jc(t);var e=t?Y(n):0;return t&&e<t?n+ri(t-e,r):n}function ha(n,t,r){n=Rc(n),t=jc(t);var e=t?Y(n):0;return t&&e<t?ri(t-e,r)+n:n}function pa(n,t,r){return r||null==t?t=0:t&&(t=+t),Hl(Rc(n).replace(Ct,""),t||0)}function _a(n,t,r){return t=(r?Ti(n,t,r):t===rn)?1:jc(t),tu(Rc(n),t)}function va(){var n=arguments,t=Rc(n[0]);return n.length<3?t:t.replace(n[1],n[2])}function ga(n,t,r){return r&&"number"!=typeof r&&Ti(n,t,r)&&(t=r=rn),(r=r===rn?Tn:r>>>0)?(n=Rc(n),n&&("string"==typeof t||null!=t&&!xh(t))&&!(t=pu(t))&&F(n)?Au(Q(n),0,r):n.split(t,r)):[]}function ya(n,t,r){return n=Rc(n),r=null==r?0:re(jc(r),0,n.length),t=pu(t),n.slice(r,r+t.length)==t}function da(n,t,r){var u=e.templateSettings;r&&Ti(n,t,r)&&(t=rn),n=Rc(n),t=zh({},t,u,li);var i,o,f=zh({},t.imports,u.imports,li),c=Fc(f),a=C(f,c),l=0,s=t.interpolate||Ht,h="__p += '",p=al((t.escape||Ht).source+"|"+s.source+"|"+(s===Ot?Ft:Ht).source+"|"+(t.evaluate||Ht).source+"|$","g"),_="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++wr+"]")+"\n";n.replace(p,function(t,r,e,u,f,c){return e||(e=u),h+=n.slice(l,c).replace(Jt,D),r&&(i=!0,h+="' +\n__e("+r+") +\n'"),f&&(o=!0,h+="';\n"+f+";\n__p += '"),e&&(h+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),l=c+t.length,t}),h+="';\n";var v=t.variable;v||(h="with (obj) {\n"+h+"\n}\n"),h=(o?h.replace(yt,""):h).replace(dt,"$1").replace(bt,"$1;"),h="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=Yh(function(){return ol(c,_+"return "+h).apply(rn,a)});if(g.source=h,nc(g))throw g;return g}function ba(n){return Rc(n).toLowerCase()}function wa(n){return Rc(n).toUpperCase()}function ma(n,t,r){if((n=Rc(n))&&(r||t===rn))return n.replace(Wt,"");if(!n||!(t=pu(t)))return n;var e=Q(n),u=Q(t);return Au(e,U(e,u),B(e,u)+1).join("")}function xa(n,t,r){if((n=Rc(n))&&(r||t===rn))return n.replace(Tt,"");if(!n||!(t=pu(t)))return n;var e=Q(n);return Au(e,0,B(e,Q(t))+1).join("")}function ja(n,t,r){if((n=Rc(n))&&(r||t===rn))return n.replace(Ct,"");if(!n||!(t=pu(t)))return n;var e=Q(n);return Au(e,U(e,Q(t))).join("")}function Aa(n,t){var r=kn,e=On;if(ic(t)){var u="separator"in t?t.separator:u;r="length"in t?jc(t.length):r,e="omission"in t?pu(t.omission):e}n=Rc(n);var i=n.length;if(F(n)){var o=Q(n);i=o.length}if(r>=i)return n;var f=r-Y(e);if(f<1)return e;var c=o?Au(o,0,f).join(""):n.slice(0,f);if(u===rn)return c+e;if(o&&(f+=c.length-f),xh(u)){if(n.slice(f).search(u)){var a,l=c;for(u.global||(u=al(u.source,Rc(Nt.exec(u))+"g")),u.lastIndex=0;a=u.exec(l);)var s=a.index;c=c.slice(0,s===rn?f:s)}}else if(n.indexOf(pu(u),f)!=f){var h=c.lastIndexOf(u);h>-1&&(c=c.slice(0,h))}return c+e}function ka(n){return n=Rc(n),n&&xt.test(n)?n.replace(wt,Kr):n}function Oa(n,t,r){return n=Rc(n),t=r?rn:t,t===rn?N(n)?tn(n):b(n):n.match(t)||[]}function Ia(n){var t=null==n?0:n.length,r=mi();return n=t?p(n,function(n){if("function"!=typeof n[1])throw new sl(on);return[r(n[0]),n[1]]}):[],ru(function(r){for(var e=-1;++e<t;){var u=n[e];if(i(u[0],this,r))return i(u[1],this,r)}})}function Ra(n){return ue(ee(n,ln))}function za(n){return function(){return n}}function Ea(n,t){return null==n||n!==n?t:n}function Sa(n){return n}function La(n){return Be("function"==typeof n?n:ee(n,ln))}function Wa(n){return Ne(ee(n,ln))}function Ca(n,t){return Pe(n,ee(t,ln))}function Ta(n,t,r){var e=Fc(t),u=ve(t,e);null!=r||ic(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=ve(t,Fc(t)));var i=!(ic(r)&&"chain"in r&&!r.chain),o=rc(n);return f(u,function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=Bu(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,_([this.value()],arguments))})}),n}function Ua(){return Sr._===this&&(Sr._=xl),this}function Ba(){}function $a(n){return n=jc(n),ru(function(t){return Ke(t,n)})}function Da(n){return Ui(n)?O(Qi(n)):Je(n)}function Ma(n){return function(t){return null==n?rn:ge(n,t)}}function Fa(){return[]}function Na(){return!1}function Pa(){return{}}function qa(){return""}function Za(){return!0}function Ka(n,t){if((n=jc(n))<1||n>Ln)return[];var r=Tn,e=Vl(n,Tn);t=mi(t),n-=Tn;for(var u=S(e,t);++r<n;)t(r);return u}function Va(n){return yh(n)?p(n,Qi):yc(n)?[n]:Bu(Ls(Rc(n)))}function Ga(n){var t=++dl;return Rc(n)+t}function Ha(n){return n&&n.length?ae(n,Sa,be):rn}function Ja(n,t){return n&&n.length?ae(n,mi(t,2),be):rn}function Ya(n){return k(n,Sa)}function Qa(n,t){return k(n,mi(t,2))}function Xa(n){return n&&n.length?ae(n,Sa,Me):rn}function nl(n,t){return n&&n.length?ae(n,mi(t,2),Me):rn}function tl(n){return n&&n.length?E(n,Sa):0}function rl(n,t){return n&&n.length?E(n,mi(t,2)):0}r=null==r?Sr:Vr.defaults(Sr.Object(),r,Vr.pick(Sr,br));var el=r.Array,ul=r.Date,il=r.Error,ol=r.Function,fl=r.Math,cl=r.Object,al=r.RegExp,ll=r.String,sl=r.TypeError,hl=el.prototype,pl=ol.prototype,_l=cl.prototype,vl=r["__core-js_shared__"],gl=pl.toString,yl=_l.hasOwnProperty,dl=0,bl=function(){var n=/[^.]+$/.exec(vl&&vl.keys&&vl.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),wl=_l.toString,ml=gl.call(cl),xl=Sr._,jl=al("^"+gl.call(yl).replace(St,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Al=Cr?r.Buffer:rn,kl=r.Symbol,Ol=r.Uint8Array,Il=Al?Al.allocUnsafe:rn,Rl=Z(cl.getPrototypeOf,cl),zl=cl.create,El=_l.propertyIsEnumerable,Sl=hl.splice,Ll=kl?"function"==typeof kl?kl.isConcatSpreadable:"@@isConcatSpreadable":rn,Wl=kl?"function"==typeof kl?kl.iterator:"@@iterator":rn,Cl=kl?"function"==typeof kl?kl.toStringTag:"@@toStringTag":rn,Tl=function(){try{var n=Ai(cl,"defineProperty");return n({},"",{}),n}catch(n){}}(),Ul=r.clearTimeout!==Sr.clearTimeout&&r.clearTimeout,Bl=ul&&ul.now!==Sr.Date.now&&ul.now,$l=r.setTimeout!==Sr.setTimeout&&r.setTimeout,Dl=fl.ceil,Ml=fl.floor,Fl=cl.getOwnPropertySymbols,Nl=Al?Al.isBuffer:rn,Pl=r.isFinite,ql=hl.join,Zl=Z(cl.keys,cl),Kl=fl.max,Vl=fl.min,Gl=ul.now,Hl=r.parseInt,Jl=fl.random,Yl=hl.reverse,Ql=Ai(r,"DataView"),Xl=Ai(r,"Map"),ns=Ai(r,"Promise"),ts=Ai(r,"Set"),rs=Ai(r,"WeakMap"),es=Ai(cl,"create"),us=rs&&new rs,is={},os=Xi(Ql),fs=Xi(Xl),cs=Xi(ns),as=Xi(ts),ls=Xi(rs),ss=kl?"function"==typeof kl?kl.prototype:"@@prototype":rn,hs=ss?ss.valueOf:rn,ps=ss?ss.toString:rn,_s=function(){function n(){}return function(t){if(!ic(t))return{};if(zl)return zl(t);n.prototype=t;var r=new n;return n.prototype=rn,r}}();e.templateSettings={escape:At,evaluate:kt,interpolate:Ot,variable:"",imports:{_:e}},e.prototype=d.prototype,e.prototype.constructor=e,I.prototype=_s(d.prototype),I.prototype.constructor=I,H.prototype=_s(d.prototype),H.prototype.constructor=H,Yt.prototype.clear=Qt,Yt.prototype.delete=Xt,Yt.prototype.get=nr,Yt.prototype.has=tr,Yt.prototype.set=rr,er.prototype.clear=ur,er.prototype.delete=ir,er.prototype.get=or,er.prototype.has=fr,er.prototype.set=cr,ar.prototype.clear=lr,ar.prototype.delete=sr,ar.prototype.get=hr,ar.prototype.has=vr,ar.prototype.set=gr,yr.prototype.add=yr.prototype.push=dr,yr.prototype.has=jr,Ar.prototype.clear=kr,Ar.prototype.delete=Or,Ar.prototype.get=zr,Ar.prototype.has=Er,Ar.prototype.set=Lr;var vs=Pu(pe),gs=Pu(_e,!0),ys=qu(),ds=qu(!0),bs=us?function(n,t){return us.set(n,t),n}:Sa,ws=Tl?function(n,t){return Tl(n,"toString",{configurable:!0,enumerable:!1,value:za(t),writable:!0})}:Sa,ms=ru,xs=Ul||function(n){return Sr.clearTimeout(n)},js=ts&&1/V(new ts([,-0]))[1]==Sn?function(n){return new ts(n)}:Ba,As=us?function(n){return us.get(n)}:Ba,ks=Fl?function(n){return null==n?[]:(n=cl(n),l(Fl(n),function(t){return El.call(n,t)}))}:Fa,Os=Fl?function(n){for(var t=[];n;)_(t,ks(n)),n=Rl(n);return t}:Fa,Is=de;(Ql&&Is(new Ql(new ArrayBuffer(1)))!=ft||Xl&&Is(new Xl)!=Gn||ns&&"[object Promise]"!=Is(ns.resolve())||ts&&Is(new ts)!=nt||rs&&Is(new rs)!=ut)&&(Is=function(n){var t=de(n),r=t==Yn?n.constructor:rn,e=r?Xi(r):"";if(e)switch(e){case os:return ft;case fs:return Gn;case cs:return"[object Promise]";case as:return nt;case ls:return ut}return t});var Rs=vl?rc:Na,zs=Ji(bs),Es=$l||function(n,t){return Sr.setTimeout(n,t)},Ss=Ji(ws),Ls=function(n){var t=Lf(n,function(n){return r.size===cn&&r.clear(),n}),r=t.cache;return t}(function(n){var t=[];return zt.test(n)&&t.push(""),n.replace(Et,function(n,r,e,u){t.push(e?u.replace(Mt,"$1"):r||n)}),t}),Ws=ru(function(n,t){return Gf(n)?fe(n,he(t,1,Gf,!0)):[]}),Cs=ru(function(n,t){var r=mo(t);return Gf(r)&&(r=rn),Gf(n)?fe(n,he(t,1,Gf,!0),mi(r,2)):[]}),Ts=ru(function(n,t){var r=mo(t);return Gf(r)&&(r=rn),Gf(n)?fe(n,he(t,1,Gf,!0),rn,r):[]}),Us=ru(function(n){var t=p(n,mu);return t.length&&t[0]===n[0]?je(t):[]}),Bs=ru(function(n){var t=mo(n),r=p(n,mu);return t===mo(r)?t=rn:r.pop(),r.length&&r[0]===n[0]?je(r,mi(t,2)):[]}),$s=ru(function(n){var t=mo(n),r=p(n,mu);return t="function"==typeof t?t:rn,t&&r.pop(),r.length&&r[0]===n[0]?je(r,rn,t):[]}),Ds=ru(Ao),Ms=gi(function(n,t){var r=null==n?0:n.length,e=te(n,t);return Qe(n,p(t,function(n){return Ci(n,r)?+n:n}).sort(Wu)),e}),Fs=ru(function(n){return _u(he(n,1,Gf,!0))}),Ns=ru(function(n){var t=mo(n);return Gf(t)&&(t=rn),_u(he(n,1,Gf,!0),mi(t,2))}),Ps=ru(function(n){var t=mo(n);return t="function"==typeof t?t:rn,_u(he(n,1,Gf,!0),rn,t)}),qs=ru(function(n,t){return Gf(n)?fe(n,t):[]}),Zs=ru(function(n){return bu(l(n,Gf))}),Ks=ru(function(n){var t=mo(n);return Gf(t)&&(t=rn),bu(l(n,Gf),mi(t,2))}),Vs=ru(function(n){var t=mo(n);return t="function"==typeof t?t:rn,bu(l(n,Gf),rn,t)}),Gs=ru(Ko),Hs=ru(function(n){var t=n.length,r=t>1?n[t-1]:rn;return r="function"==typeof r?(n.pop(),r):rn,Vo(n,r)}),Js=gi(function(n){var t=n.length,r=t?n[0]:0,e=this.__wrapped__,u=function(t){return te(t,n)};return!(t>1||this.__actions__.length)&&e instanceof H&&Ci(r)?(e=e.slice(r,+r+(t?1:0)),e.__actions__.push({func:Qo,args:[u],thisArg:rn}),new I(e,this.__chain__).thru(function(n){return t&&!n.length&&n.push(rn),n})):this.thru(u)}),Ys=Fu(function(n,t,r){yl.call(n,r)?++n[r]:ne(n,r,1)}),Qs=Ju(lo),Xs=Ju(so),nh=Fu(function(n,t,r){yl.call(n,r)?n[r].push(t):ne(n,r,[t])}),th=ru(function(n,t,r){var e=-1,u="function"==typeof t,o=Vf(n)?el(n.length):[];return vs(n,function(n){o[++e]=u?i(t,n,r):ke(n,t,r)}),o}),rh=Fu(function(n,t,r){ne(n,r,t)}),eh=Fu(function(n,t,r){n[r?0:1].push(t)},function(){return[[],[]]}),uh=ru(function(n,t){if(null==n)return[];var r=t.length;return r>1&&Ti(n,t[0],t[1])?t=[]:r>2&&Ti(t[0],t[1],t[2])&&(t=[t[0]]),Ve(n,he(t,1),[])}),ih=Bl||function(){return Sr.Date.now()},oh=ru(function(n,t,r){var e=vn;if(r.length){var u=K(r,wi(oh));e|=wn}return ai(n,e,t,r,u)}),fh=ru(function(n,t,r){var e=vn|gn;if(r.length){var u=K(r,wi(fh));e|=wn}return ai(t,e,n,r,u)}),ch=ru(function(n,t){return oe(n,1,t)}),ah=ru(function(n,t,r){return oe(n,kc(t)||0,r)});Lf.Cache=ar;var lh=ms(function(n,t){t=1==t.length&&yh(t[0])?p(t[0],W(mi())):p(he(t,1),W(mi()));var r=t.length;return ru(function(e){for(var u=-1,o=Vl(e.length,r);++u<o;)e[u]=t[u].call(this,e[u]);return i(n,this,e)})}),sh=ru(function(n,t){var r=K(t,wi(sh));return ai(n,wn,rn,t,r)}),hh=ru(function(n,t){var r=K(t,wi(hh));return ai(n,mn,rn,t,r)}),ph=gi(function(n,t){return ai(n,jn,rn,rn,rn,t)}),_h=ii(be),vh=ii(function(n,t){return n>=t}),gh=Oe(function(){return arguments}())?Oe:function(n){return oc(n)&&yl.call(n,"callee")&&!El.call(n,"callee")},yh=el.isArray,dh=Br?W(Br):Ie,bh=Nl||Na,wh=$r?W($r):Re,mh=Dr?W(Dr):Se,xh=Mr?W(Mr):Ce,jh=Fr?W(Fr):Te,Ah=Nr?W(Nr):Ue,kh=ii(Me),Oh=ii(function(n,t){return n<=t}),Ih=Nu(function(n,t){if(Mi(t)||Vf(t))return void $u(t,Fc(t),n);for(var r in t)yl.call(t,r)&&Hr(n,r,t[r])}),Rh=Nu(function(n,t){$u(t,Nc(t),n)}),zh=Nu(function(n,t,r,e){$u(t,Nc(t),n,e)}),Eh=Nu(function(n,t,r,e){$u(t,Fc(t),n,e)}),Sh=gi(te),Lh=ru(function(n){return n.push(rn,li),i(zh,rn,n)}),Wh=ru(function(n){return n.push(rn,si),i($h,rn,n)}),Ch=Xu(function(n,t,r){n[t]=r},za(Sa)),Th=Xu(function(n,t,r){yl.call(n,t)?n[t].push(r):n[t]=[r]},mi),Uh=ru(ke),Bh=Nu(function(n,t,r){qe(n,t,r)}),$h=Nu(function(n,t,r,e){qe(n,t,r,e)}),Dh=gi(function(n,t){var r={};if(null==n)return r;var e=!1;t=p(t,function(t){return t=ju(t,n),e||(e=t.length>1),t}),$u(n,di(n),r),e&&(r=ee(r,ln|sn|hn,hi))
;for(var u=t.length;u--;)vu(r,t[u]);return r}),Mh=gi(function(n,t){return null==n?{}:Ge(n,t)}),Fh=ci(Fc),Nh=ci(Nc),Ph=Vu(function(n,t,r){return t=t.toLowerCase(),n+(r?ia(t):t)}),qh=Vu(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),Zh=Vu(function(n,t,r){return n+(r?" ":"")+t.toLowerCase()}),Kh=Ku("toLowerCase"),Vh=Vu(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),Gh=Vu(function(n,t,r){return n+(r?" ":"")+Jh(t)}),Hh=Vu(function(n,t,r){return n+(r?" ":"")+t.toUpperCase()}),Jh=Ku("toUpperCase"),Yh=ru(function(n,t){try{return i(n,rn,t)}catch(n){return nc(n)?n:new il(n)}}),Qh=gi(function(n,t){return f(t,function(t){t=Qi(t),ne(n,t,oh(n[t],n))}),n}),Xh=Yu(),np=Yu(!0),tp=ru(function(n,t){return function(r){return ke(r,n,t)}}),rp=ru(function(n,t){return function(r){return ke(n,r,t)}}),ep=ti(p),up=ti(a),ip=ti(y),op=ui(),fp=ui(!0),cp=ni(function(n,t){return n+t},0),ap=fi("ceil"),lp=ni(function(n,t){return n/t},1),sp=fi("floor"),hp=ni(function(n,t){return n*t},1),pp=fi("round"),_p=ni(function(n,t){return n-t},0);return e.after=kf,e.ary=Of,e.assign=Ih,e.assignIn=Rh,e.assignInWith=zh,e.assignWith=Eh,e.at=Sh,e.before=If,e.bind=oh,e.bindAll=Qh,e.bindKey=fh,e.castArray=Mf,e.chain=Jo,e.chunk=ro,e.compact=eo,e.concat=uo,e.cond=Ia,e.conforms=Ra,e.constant=za,e.countBy=Ys,e.create=zc,e.curry=Rf,e.curryRight=zf,e.debounce=Ef,e.defaults=Lh,e.defaultsDeep=Wh,e.defer=ch,e.delay=ah,e.difference=Ws,e.differenceBy=Cs,e.differenceWith=Ts,e.drop=io,e.dropRight=oo,e.dropRightWhile=fo,e.dropWhile=co,e.fill=ao,e.filter=cf,e.flatMap=af,e.flatMapDeep=lf,e.flatMapDepth=sf,e.flatten=ho,e.flattenDeep=po,e.flattenDepth=_o,e.flip=Sf,e.flow=Xh,e.flowRight=np,e.fromPairs=vo,e.functions=Uc,e.functionsIn=Bc,e.groupBy=nh,e.initial=bo,e.intersection=Us,e.intersectionBy=Bs,e.intersectionWith=$s,e.invert=Ch,e.invertBy=Th,e.invokeMap=th,e.iteratee=La,e.keyBy=rh,e.keys=Fc,e.keysIn=Nc,e.map=vf,e.mapKeys=Pc,e.mapValues=qc,e.matches=Wa,e.matchesProperty=Ca,e.memoize=Lf,e.merge=Bh,e.mergeWith=$h,e.method=tp,e.methodOf=rp,e.mixin=Ta,e.negate=Wf,e.nthArg=$a,e.omit=Dh,e.omitBy=Zc,e.once=Cf,e.orderBy=gf,e.over=ep,e.overArgs=lh,e.overEvery=up,e.overSome=ip,e.partial=sh,e.partialRight=hh,e.partition=eh,e.pick=Mh,e.pickBy=Kc,e.property=Da,e.propertyOf=Ma,e.pull=Ds,e.pullAll=Ao,e.pullAllBy=ko,e.pullAllWith=Oo,e.pullAt=Ms,e.range=op,e.rangeRight=fp,e.rearg=ph,e.reject=bf,e.remove=Io,e.rest=Tf,e.reverse=Ro,e.sampleSize=mf,e.set=Gc,e.setWith=Hc,e.shuffle=xf,e.slice=zo,e.sortBy=uh,e.sortedUniq=Uo,e.sortedUniqBy=Bo,e.split=ga,e.spread=Uf,e.tail=$o,e.take=Do,e.takeRight=Mo,e.takeRightWhile=Fo,e.takeWhile=No,e.tap=Yo,e.throttle=Bf,e.thru=Qo,e.toArray=mc,e.toPairs=Fh,e.toPairsIn=Nh,e.toPath=Va,e.toPlainObject=Oc,e.transform=Jc,e.unary=$f,e.union=Fs,e.unionBy=Ns,e.unionWith=Ps,e.uniq=Po,e.uniqBy=qo,e.uniqWith=Zo,e.unset=Yc,e.unzip=Ko,e.unzipWith=Vo,e.update=Qc,e.updateWith=Xc,e.values=na,e.valuesIn=ta,e.without=qs,e.words=Oa,e.wrap=Df,e.xor=Zs,e.xorBy=Ks,e.xorWith=Vs,e.zip=Gs,e.zipObject=Go,e.zipObjectDeep=Ho,e.zipWith=Hs,e.entries=Fh,e.entriesIn=Nh,e.extend=Rh,e.extendWith=zh,Ta(e,e),e.add=cp,e.attempt=Yh,e.camelCase=Ph,e.capitalize=ia,e.ceil=ap,e.clamp=ra,e.clone=Ff,e.cloneDeep=Pf,e.cloneDeepWith=qf,e.cloneWith=Nf,e.conformsTo=Zf,e.deburr=oa,e.defaultTo=Ea,e.divide=lp,e.endsWith=fa,e.eq=Kf,e.escape=ca,e.escapeRegExp=aa,e.every=ff,e.find=Qs,e.findIndex=lo,e.findKey=Ec,e.findLast=Xs,e.findLastIndex=so,e.findLastKey=Sc,e.floor=sp,e.forEach=hf,e.forEachRight=pf,e.forIn=Lc,e.forInRight=Wc,e.forOwn=Cc,e.forOwnRight=Tc,e.get=$c,e.gt=_h,e.gte=vh,e.has=Dc,e.hasIn=Mc,e.head=go,e.identity=Sa,e.includes=_f,e.indexOf=yo,e.inRange=ea,e.invoke=Uh,e.isArguments=gh,e.isArray=yh,e.isArrayBuffer=dh,e.isArrayLike=Vf,e.isArrayLikeObject=Gf,e.isBoolean=Hf,e.isBuffer=bh,e.isDate=wh,e.isElement=Jf,e.isEmpty=Yf,e.isEqual=Qf,e.isEqualWith=Xf,e.isError=nc,e.isFinite=tc,e.isFunction=rc,e.isInteger=ec,e.isLength=uc,e.isMap=mh,e.isMatch=fc,e.isMatchWith=cc,e.isNaN=ac,e.isNative=lc,e.isNil=hc,e.isNull=sc,e.isNumber=pc,e.isObject=ic,e.isObjectLike=oc,e.isPlainObject=_c,e.isRegExp=xh,e.isSafeInteger=vc,e.isSet=jh,e.isString=gc,e.isSymbol=yc,e.isTypedArray=Ah,e.isUndefined=dc,e.isWeakMap=bc,e.isWeakSet=wc,e.join=wo,e.kebabCase=qh,e.last=mo,e.lastIndexOf=xo,e.lowerCase=Zh,e.lowerFirst=Kh,e.lt=kh,e.lte=Oh,e.max=Ha,e.maxBy=Ja,e.mean=Ya,e.meanBy=Qa,e.min=Xa,e.minBy=nl,e.stubArray=Fa,e.stubFalse=Na,e.stubObject=Pa,e.stubString=qa,e.stubTrue=Za,e.multiply=hp,e.nth=jo,e.noConflict=Ua,e.noop=Ba,e.now=ih,e.pad=la,e.padEnd=sa,e.padStart=ha,e.parseInt=pa,e.random=ua,e.reduce=yf,e.reduceRight=df,e.repeat=_a,e.replace=va,e.result=Vc,e.round=pp,e.runInContext=n,e.sample=wf,e.size=jf,e.snakeCase=Vh,e.some=Af,e.sortedIndex=Eo,e.sortedIndexBy=So,e.sortedIndexOf=Lo,e.sortedLastIndex=Wo,e.sortedLastIndexBy=Co,e.sortedLastIndexOf=To,e.startCase=Gh,e.startsWith=ya,e.subtract=_p,e.sum=tl,e.sumBy=rl,e.template=da,e.times=Ka,e.toFinite=xc,e.toInteger=jc,e.toLength=Ac,e.toLower=ba,e.toNumber=kc,e.toSafeInteger=Ic,e.toString=Rc,e.toUpper=wa,e.trim=ma,e.trimEnd=xa,e.trimStart=ja,e.truncate=Aa,e.unescape=ka,e.uniqueId=Ga,e.upperCase=Hh,e.upperFirst=Jh,e.each=hf,e.eachRight=pf,e.first=go,Ta(e,function(){var n={};return pe(e,function(t,r){yl.call(e.prototype,r)||(n[r]=t)}),n}(),{chain:!1}),e.VERSION="4.17.4",f(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){e[n].placeholder=e}),f(["drop","take"],function(n,t){H.prototype[n]=function(r){r=r===rn?1:Kl(jc(r),0);var e=this.__filtered__&&!t?new H(this):this.clone();return e.__filtered__?e.__takeCount__=Vl(r,e.__takeCount__):e.__views__.push({size:Vl(r,Tn),type:n+(e.__dir__<0?"Right":"")}),e},H.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),f(["filter","map","takeWhile"],function(n,t){var r=t+1,e=r==zn||3==r;H.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:mi(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}}),f(["head","last"],function(n,t){var r="take"+(t?"Right":"");H.prototype[n]=function(){return this[r](1).value()[0]}}),f(["initial","tail"],function(n,t){var r="drop"+(t?"":"Right");H.prototype[n]=function(){return this.__filtered__?new H(this):this[r](1)}}),H.prototype.compact=function(){return this.filter(Sa)},H.prototype.find=function(n){return this.filter(n).head()},H.prototype.findLast=function(n){return this.reverse().find(n)},H.prototype.invokeMap=ru(function(n,t){return"function"==typeof n?new H(this):this.map(function(r){return ke(r,n,t)})}),H.prototype.reject=function(n){return this.filter(Wf(mi(n)))},H.prototype.slice=function(n,t){n=jc(n);var r=this;return r.__filtered__&&(n>0||t<0)?new H(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),t!==rn&&(t=jc(t),r=t<0?r.dropRight(-t):r.take(t-n)),r)},H.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},H.prototype.toArray=function(){return this.take(Tn)},pe(H.prototype,function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),i=e[u?"take"+("last"==t?"Right":""):t],o=u||/^find/.test(t);i&&(e.prototype[t]=function(){var t=this.__wrapped__,f=u?[1]:arguments,c=t instanceof H,a=f[0],l=c||yh(t),s=function(n){var t=i.apply(e,_([n],f));return u&&h?t[0]:t};l&&r&&"function"==typeof a&&1!=a.length&&(c=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,g=c&&!p;if(!o&&l){t=g?t:new H(this);var y=n.apply(t,f);return y.__actions__.push({func:Qo,args:[s],thisArg:rn}),new I(y,h)}return v&&g?n.apply(this,f):(y=this.thru(s),v?u?y.value()[0]:y.value():y)})}),f(["pop","push","shift","sort","splice","unshift"],function(n){var t=hl[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",u=/^(?:pop|shift)$/.test(n);e.prototype[n]=function(){var n=arguments;if(u&&!this.__chain__){var e=this.value();return t.apply(yh(e)?e:[],n)}return this[r](function(r){return t.apply(yh(r)?r:[],n)})}}),pe(H.prototype,function(n,t){var r=e[t];if(r){var u=r.name+"";(is[u]||(is[u]=[])).push({name:t,func:r})}}),is[Qu(rn,gn).name]=[{name:"wrapper",func:rn}],H.prototype.clone=X,H.prototype.reverse=nn,H.prototype.value=Dt,e.prototype.at=Js,e.prototype.chain=Xo,e.prototype.commit=nf,e.prototype.next=tf,e.prototype.plant=ef,e.prototype.reverse=uf,e.prototype.toJSON=e.prototype.valueOf=e.prototype.value=of,e.prototype.first=e.prototype.head,Wl&&(e.prototype[Wl]=rf),e}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Sr._=Vr,define(function(){return Vr})):Wr?((Wr.exports=Vr)._=Vr,Lr._=Vr):Sr._=Vr}).call(this)},464);
__d(function(e,r,n,o){function a(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"hash",o="search"===n?e.search:e.hash,a={};return o&&o.substr(1).split("&").forEach(function(e){var n=e.split("="),o=n[0];if(o){var t=void 0;try{t=n[1],r||(t=JSON.parse(decodeURIComponent(t).replace(/\\&/,"&")))}catch(e){var l="Failed to parse URL parameter value: "+String(t);return console.warn(l,e),void(window.onerror&&window.onerror(l,null,null,null,e))}a[o]=t}}),a}Object.defineProperty(o,"__esModule",{value:!0}),o.default=a},465);
__d(function(e,r,t,a){function n(){return"ReactNative"===navigator.product?c:b}function l(e,r){var t=r.config;t=s(t);var a=p.default.merge({},t,n());return(0,u.equals)(e,a)?e:a}function s(e){var r=e;"object"!=typeof e.p2p&&(r=(0,u.set)(r,"p2p",{}));for(var t=[["backToP2PDelay","backToP2PDelay"],["enableP2P","enabled"],["p2pStunServers","stunServers"]],a=0;a<t.length;a++){var n=t[a],l=babelHelpers.slicedToArray(n,2),s=l[0],i=l[1];if(s in r){var p=r[s];r===e&&(r=babelHelpers.extends({},r)),delete r[s],r.p2p=babelHelpers.extends({},r.p2p,babelHelpers.defineProperty({},i,p))}}return r}var i=r(464),p=babelHelpers.interopRequireDefault(i),u=r(467),o=r(460),b={},c={disableAudioLevels:!0,disableThirdPartyRequests:!0,p2p:{preferH264:!0}};u.ReducerRegistry.register("features/base/config",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n(),r=arguments[1];switch(r.type){case o.SET_CONFIG:return l(e,r);default:return e}})},466);
__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0});var u=r(468);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return u[e]}})});var a=r(469);Object.defineProperty(n,"MiddlewareRegistry",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(a).default}});var i=r(490);Object.defineProperty(n,"ReducerRegistry",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(i).default}})},467);
__d(function(e,r,t,n){function u(e,r){var t=e;for(var n in r)t=l(t,n,r[n]);return t}function i(e,r){return o.default.isEqual(e,r)}function l(e,r,t){return a(e,r,t,!0)}function a(e,r,t,n){if(void 0===t&&Object.prototype.hasOwnProperty.call(e,r)){var u=n?babelHelpers.extends({},e):e;if(delete u[r])return u}if(e[r]!==t){if(n)return babelHelpers.extends({},e,babelHelpers.defineProperty({},r,t));e[r]=t}return e}Object.defineProperty(n,"__esModule",{value:!0}),n.assign=u,n.equals=i,n.set=l;var f=r(464),o=babelHelpers.interopRequireDefault(f)},468);
__d(function(e,l,a,r){Object.defineProperty(r,"__esModule",{value:!0});var t=l(470),n=function(){function e(){babelHelpers.classCallCheck(this,e),this._elements=[]}return babelHelpers.createClass(e,[{key:"applyMiddleware",value:function(){for(var e=arguments.length,l=Array(e),a=0;a<e;a++)l[a]=arguments[a];var r=[].concat(babelHelpers.toConsumableArray(this._elements),l);return t.applyMiddleware.apply(void 0,babelHelpers.toConsumableArray(r))}},{key:"register",value:function(e){this._elements.push(e)}}]),e}();r.default=new n},469);
__d(function(e,t,d,o){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}o.__esModule=!0,o.compose=o.applyMiddleware=o.bindActionCreators=o.combineReducers=o.createStore=void 0;var a=t(471),u=r(a),c=t(485),i=r(c),l=t(487),n=r(l),s=t(488),f=r(s),p=t(489),_=r(p),b=t(486);r(b);o.createStore=u.default,o.combineReducers=i.default,o.bindActionCreators=n.default,o.applyMiddleware=f.default,o.compose=_.default},470);
__d(function(e,t,n,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){function r(){b===w&&(b=w.slice())}function o(){return l}function c(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return r(),b.push(e),function(){if(t){t=!1,r();var n=b.indexOf(e);b.splice(n,1)}}}function f(e){if(!(0,u.default)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(v)throw new Error("Reducers may not dispatch actions.");try{v=!0,l=h(l,e)}finally{v=!1}for(var t=w=b,n=0;n<t.length;n++){(0,t[n])()}return e}function d(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");h=e,f({type:s.INIT})}function p(){var e,t=c;return e={subscribe:function(e){function n(){e.next&&e.next(o())}if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");return n(),{unsubscribe:t(n)}}},e[a.default]=function(){return this},e}var y;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(i)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var h=e,l=t,w=[],b=w,v=!1;return f({type:s.INIT}),y={dispatch:f,subscribe:c,getState:o,replaceReducer:d},y[a.default]=p,y}r.__esModule=!0,r.ActionTypes=void 0,r.default=i;var c=t(472),u=o(c),f=t(482),a=o(f),s=r.ActionTypes={INIT:"@@redux/INIT"}},471);
__d(function(t,r,n,o){function c(t){if(!a(t)||e(t)!=i)return!1;var r=u(t);if(null===r)return!0;var n=s.call(r,"constructor")&&r.constructor;return"function"==typeof n&&n instanceof n&&p.call(n)==b}var e=r(473),u=r(479),a=r(481),i="[object Object]",l=Function.prototype,f=Object.prototype,p=l.toString,s=f.hasOwnProperty,b=p.call(Object);n.exports=c},472);
__d(function(n,t,o,i){function e(n){return null==n?void 0===n?f:d:g&&g in Object(n)?r(n):u(n)}var c=t(474),r=t(477),u=t(478),d="[object Null]",f="[object Undefined]",g=c?"function"==typeof c?c.toStringTag:"@@toStringTag":void 0;o.exports=e},473);
__d(function(o,n,r,t){var _=n(475),a=_.Symbol;r.exports=a},474);
__d(function(e,t,f,s){var c=t(476),n="object"==typeof self&&self&&self.Object===Object&&self,o=c||n||Function("return this")();f.exports=o},475);
__d(function(t,e,c,o){var b="object"==typeof t&&t&&t.Object===Object&&t;c.exports=b},476);
__d(function(t,r,o,n){function a(t){var r=i.call(t,g),o=t[g];try{t[g]=void 0;var n=!0}catch(t){}var a=v.call(t);return n&&(r?t[g]=o:delete t[g]),a}var e=r(474),c=Object.prototype,i=c.hasOwnProperty,v=c.toString,g=e?"function"==typeof e?e.toStringTag:"@@toStringTag":void 0;o.exports=a},477);
__d(function(t,n,o,r){function c(t){return i.call(t)}var e=Object.prototype,i=e.toString;o.exports=c},478);
__d(function(t,e,o,c){var r=e(480),O=r(Object.getPrototypeOf,Object);o.exports=O},479);
__d(function(n,t,r,u){function o(n,t){return function(r){return n(t(r))}}r.exports=o},480);
__d(function(n,t,o,e){function u(n){return null!=n&&"object"==typeof n}o.exports=u},481);
__d(function(n,o,t,_){t.exports=o(483)},482);
__d(function(e,d,n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u,f=d(484),i=function(e){return e&&e.__esModule?e:{default:e}}(f);u="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:void 0!==n?n:Function("return this")();var o=(0,i.default)(u);t.default=o},483);
__d(function(e,b,o,r){"use strict";function t(e){var b,o=e.Symbol;return"function"==typeof o?o.observable?b=o.observable:(b=o("observable"),o.observable=b):b="@@observable",b}Object.defineProperty(r,"__esModule",{value:!0}),r.default=t},484);
__d(function(e,t,n,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function u(e){Object.keys(e).forEach(function(t){var n=e[t];if(void 0===n(void 0,{type:d.ActionTypes.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+d.ActionTypes.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function a(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];"function"==typeof e[i]&&(n[i]=e[i])}var a=Object.keys(n),d=void 0;try{u(n)}catch(e){d=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(d)throw d;for(var r=!1,i={},u=0;u<a.length;u++){var s=a[u],c=n[s],f=e[s],h=c(f,t);if(void 0===h){var l=o(s,t);throw new Error(l)}i[s]=h,r=r||h!==f}return r?i:e}}r.__esModule=!0,r.default=a;var d=t(471),s=t(472),c=(i(s),t(486));i(c)},485);
__d(function(o,e,n,r){"use strict";function t(o){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(o);try{throw new Error(o)}catch(o){}}r.__esModule=!0,r.default=t},486);
__d(function(t,o,e,n){"use strict";function r(t,o){return function(){return o(t.apply(void 0,arguments))}}function i(t,o){if("function"==typeof t)return r(t,o);if("object"!=typeof t||null===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var e=Object.keys(t),n={},i=0;i<e.length;i++){var f=e[i],u=t[f];"function"==typeof u&&(n[f]=r(u,o))}return n}n.__esModule=!0,n.default=i},487);
__d(function(t,r,n,e){"use strict";function a(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(t){return function(n,e,a){var o=t(n,e,a),i=o.dispatch,f=[],d={getState:o.getState,dispatch:function(t){return i(t)}};return f=r.map(function(t){return t(d)}),i=c.default.apply(void 0,f)(o.dispatch),u({},o,{dispatch:i})}}}e.__esModule=!0;var u=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t};e.default=a;var o=r(489),c=function(t){return t&&t.__esModule?t:{default:t}}(o)},488);
__d(function(n,t,r,e){"use strict";function u(){for(var n=arguments.length,t=Array(n),r=0;r<n;r++)t[r]=arguments[r];return 0===t.length?function(n){return n}:1===t.length?t[0]:t.reduce(function(n,t){return function(){return n(t.apply(void 0,arguments))}})}e.__esModule=!0,e.default=u},489);
__d(function(e,n,t,l){Object.defineProperty(l,"__esModule",{value:!0});var s=n(470),r=function(){function e(){babelHelpers.classCallCheck(this,e),this._elements={}}return babelHelpers.createClass(e,[{key:"combineReducers",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,s.combineReducers)(babelHelpers.extends({},this._elements,e))}},{key:"register",value:function(e,n){this._elements[e]=n}}]),e}();l.default=new r},490);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(492);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(493);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})});var c=t(494);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}})})},491);
__d(function(e,t,n,o){function a(e){var t=void 0;return t="function"==typeof(t=window.fetch)?t(e,{method:"GET"}):new Promise(function(t){var n=new XMLHttpRequest;n.responseType="text",n.onreadystatechange=function(){4===n.readyState&&t(n)},n.open("GET",e,!0),n.send()}),t.then(function(e){switch(e.status){case 200:return e.responseText||e.text();default:throw e.statusText}}).then(function(e){eval.call(window,e)})}Object.defineProperty(o,"__esModule",{value:!0}),o.loadScript=a},492);
__d(function(n,r,t,e){function o(n){return d(n,c)}function u(n){return n[f(0,n.length-1)]}function a(){return u(m)}function i(n){return d(n,m)}function f(n,r){return Math.floor(Math.random()*(r-n+1))+n}function d(n,r){for(var t="",e=0;e<n;++e)t+=u(r);return t}Object.defineProperty(e,"__esModule",{value:!0}),e.randomAlphanumString=o,e.randomElement=u,e.randomHexDigit=a,e.randomHexString=i,e.randomInt=f;var c="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",m="0123456789abcdef"},493);
__d(function(t,e,n,r){function a(t){var e=new RegExp("^"+d+"//hipchat\\.com/video/call/","gi"),n=e.exec(t);return n||(e=new RegExp("^"+d+"//enso\\.me/(?:call|meeting)/","gi"),n=e.exec(t)),n&&(t=n[1]+"//enso.hipchat.me/"+t.substring(e.lastIndex)),t}function o(t){var e=new RegExp("^"+d+"+","gi"),n=e.exec(t);if(n){var r=n[n.length-1].toLowerCase();"http:"!==r&&"https:"!==r&&(r="https:"),t=t.substring(e.lastIndex),t.startsWith("//")&&(t=r+t)}return t}function s(t){var e=t.pathname,n=e.lastIndexOf("/");return-1===n?"/":e.substring(0,n+1)}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=[];for(var n in t)try{e.push(n+"="+encodeURIComponent(JSON.stringify(t[n])))}catch(t){console.warn("Error encoding "+n+": "+t)}return e}function h(t){var e={toString:g},n=void 0,r=void 0;if(n=new RegExp("^"+d,"gi"),r=n.exec(t),r&&(e.protocol=r[1].toLowerCase(),t=t.substring(n.lastIndex)),n=new RegExp("^"+u,"gi"),r=n.exec(t)){var a=r[1].substring(2);t=t.substring(n.lastIndex);var o=a.indexOf("@");-1!==o&&(a=a.substring(o+1)),e.host=a;var s=a.lastIndexOf(":");-1!==s&&(e.port=a.substring(s+1),a=a.substring(0,s)),e.hostname=a}n=new RegExp("^"+p,"gi"),r=n.exec(t);var i=void 0;if(r&&(i=r[1],t=t.substring(n.lastIndex)),i?i.startsWith("/")||(i="/"+i):i="/",e.pathname=i,t.startsWith("?")){var h=t.indexOf("#",1);-1===h&&(h=t.length),e.search=t.substring(0,h),t=t.substring(h)}else e.search="";return e.hash=t.startsWith("#")?t:"",e}function c(t){if("string"==typeof t){var e=h(a(o(t)));e.contextRoot=s(e);var n=e.pathname;return e.room=n.substring(n.lastIndexOf("/")+1)||void 0,e}}function g(t){var e=t||this,n=e.hash,r=e.host,a=e.pathname,o=e.protocol,s=e.search,i="";return o&&(i+=o),r&&(i+="//"+r),i+=a||"/",s&&(i+=s),n&&(i+=n),i}function v(t){var e=void 0;switch(typeof t){case"object":t&&(e=t instanceof URL?t.href:f(t));break;case"string":e=String(t)}return e}function f(t){var e=h(o(t.url||""));if(!e.protocol){var n=t.protocol||t.scheme;n&&(n.endsWith(":")||(n+=":"),e.protocol=n)}var r=e.pathname;if(!e.host){var a=t.domain||t.host||t.hostname;if(a){var s=h(a),c=s.host,g=s.hostname,v=s.pathname,f=s.port;c&&(e.host=c,e.hostname=g,e.port=f),"/"===r&&"/"!==v&&(r=v)}}var u=t.roomName||t.room;!u||!e.pathname.endsWith("/")&&e.pathname.endsWith("/"+u)||(r.endsWith("/")||(r+="/"),r+=u),e.pathname=r;var p=t.jwt;if(p){var d=e.search;-1===d.indexOf("?jwt=")&&-1===d.indexOf("&jwt=")&&(d.startsWith("?")||(d="?"+d),1===d.length||(d+="&"),d+="jwt="+p,e.search=d)}for(var l=e.hash,x=["config","interfaceConfig"],m=0;m<x.length;m++){var b=x[m],w=i(t[b+"Overwrite"]||t[b]||t[b+"Override"]);if(w.length){var R=b+"."+w.join("&"+b+".");l.length?R="&"+R:l="#",l+=R}}return e.hash=l,e.toString()||void 0}Object.defineProperty(r,"__esModule",{value:!0}),r.getLocationContextRoot=s,r.parseStandardURIString=h,r.parseURIString=c,r.toURLString=v,r.urlObjectToString=f;var u="(//[^/?#]+)",p="([^?#]*)",d="([a-z][a-z0-9\\.\\+-]*:)"},494);
__d(function(e,i,t,r){function a(e,i,t){var r=i(t),a=t.error;if(a){var n=void 0;switch(a.name){case T.WEBRTC_NOT_READY:n=a.webRTCReadyPromise;break;case T.WEBRTC_NOT_SUPPORTED:n=!1}void 0===n||e.dispatch((0,R.setWebRTCReady)(n))}return r}function n(e,i,t){var r=e.dispatch;(0,e.getState)()["features/base/lib-jitsi-meet"].initialized&&r((0,R.disposeLib)());var a=i(t);return r((0,c.setLoggingConfig)(window.loggingConfig)),r((0,R.initLib)()),a}var s=i(458),c=i(496),o=i(502),d=i(467),R=i(397),u=i(455),T=i(456);d.MiddlewareRegistry.register(function(e){return function(i){return function(t){switch(t.type){case u.LIB_DID_INIT:e.dispatch((0,R.setWebRTCReady)(!0));break;case u.LIB_INIT_ERROR:return a(e,i,t);case o.PARTICIPANT_LEFT:t.participant.local&&e.dispatch((0,R.disposeLib)());break;case s.SET_CONFIG:return n(e,i,t)}return i(t)}}})},495);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(497);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(498);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})}),t(499),t(501)},496);
__d(function(e,n,o,t){function i(e){return{type:_.SET_LOGGING_CONFIG,config:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.setLoggingConfig=i;var _=n(498)},497);
__d(function(G,_,e,O){Object.defineProperty(O,"__esModule",{value:!0});O.SET_LOGGING_CONFIG=Symbol("SET_LOGGING_CONFIG")},498);
__d(function(e,t,o,r){function l(e,t,o){var r=e.getState,l=r()["features/base/logging"].config;return f(i.default,l),"undefined"==typeof APP||f(d.default,l),t(o)}function n(e){"object"!=typeof APP||APP.logCollector||e.disableLogCollector||(APP.logCollector=new i.default.LogCollector(new P.default),i.default.addGlobalTransport(APP.logCollector),d.default.addGlobalLogTransport(APP.logCollector))}function a(e,t,o){var r=e.getState;return f(d.default,r()["features/base/logging"].config),t(o)}function u(e,t,o){var r=e.getState,l=r()["features/base/logging"].config,a=t(o),u=r()["features/base/logging"].config;return l!==u&&(f(i.default,u),f(d.default,u),n(u)),a}function f(e,t){e.setLogLevel(t.defaultLogLevel),Object.keys(t).forEach(function(o){return"defaultLogLevel"===o||e.setLogLevelById(t[o],o)})}var g=t(426),i=babelHelpers.interopRequireDefault(g),c=t(392),s=t(396),d=babelHelpers.interopRequireDefault(s),L=t(467),b=t(500),P=babelHelpers.interopRequireDefault(b),p=t(498);L.MiddlewareRegistry.register(function(e){return function(t){return function(o){switch(o.type){case c.APP_WILL_MOUNT:return l(e,t,o);case s.LIB_WILL_INIT:return a(e,t,o);case p.SET_LOGGING_CONFIG:return u(e,t,o)}return t(o)}}})},499);
__d(function(e,t,o,n){Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(){babelHelpers.classCallCheck(this,e),this.counter=1}return babelHelpers.createClass(e,[{key:"isReady",value:function(){return Boolean(APP.logCollectorStarted&&APP.conference)}},{key:"storeLogs",value:function(e){if(APP.conference.isCallstatsEnabled()){for(var t='{"log'+this.counter+'":"\n',o=0,n=e.length;o<n;o++){var r=e[o];t+="object"==typeof r?"("+r.count+") "+r.text+"\n":r+"\n"}t+='"}',this.counter+=1;try{APP.conference.logJSON(t)}catch(e){console.error("Failed to store the logs: ",t,e)}}}}]),e}();n.default=r},500);
__d(function(e,t,s,n){function r(e,t){var s=babelHelpers.extends({},o.config,t.config);return(0,i.equals)(e.config,s)?e:babelHelpers.extends({},e,{config:s})}var i=t(467),l=t(498),o={config:{defaultLogLevel:"trace","modules/statistics/CallStats.js":"info","modules/xmpp/strophe.util.js":"log"}};i.ReducerRegistry.register("features/base/logging",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments[1];switch(t.type){case l.SET_LOGGING_CONFIG:return r(e,t);default:return e}})},501);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(503);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(504);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})});var c=t(507);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}})});var f=t(505);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return f[e]}})});var a=t(506);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}})}),t(602),t(604)},502);
__d(function(t,n,i,a){function e(t){return{type:g.DOMINANT_SPEAKER_CHANGED,participant:{id:t}}}function r(t){return function(n,i){var a=(0,R.getLocalParticipant)(i);if(a)return n(d(a.id,t))}}function c(t){return{type:g.KICK_PARTICIPANT,id:t}}function p(t){return function(n,i){var a=(0,R.getLocalParticipant)(i);if(a)return n({type:g.PARTICIPANT_ID_CHANGED,newValue:t,oldValue:a.id})}}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f(babelHelpers.extends({},t,{local:!0}))}function u(t){return function(n,i){var a=(0,R.getLocalParticipant)(i);if(a)return n(C(a.id,t))}}function P(t){return{type:g.MUTE_REMOTE_PARTICIPANT,id:t}}function d(t,n){return{type:g.PARTICIPANT_UPDATED,participant:{connectionStatus:n,id:t}}}function l(){return function(t,n){var i=(0,R.getLocalParticipant)(n);if(i)return t(I(i.id))}}function A(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return{type:g.PARTICIPANT_DISPLAY_NAME_CHANGED,id:t,name:n.substr(0,E.MAX_DISPLAY_NAME_LENGTH)}}function f(t){return{type:g.PARTICIPANT_JOINED,participant:t}}function I(t){return{type:g.PARTICIPANT_LEFT,participant:{id:t}}}function T(t,n){return _({id:t,presence:n})}function C(t,n){return _({id:t,role:n})}function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:g.PARTICIPANT_UPDATED,participant:t}}function N(t){return{type:g.PIN_PARTICIPANT,participant:{id:t}}}Object.defineProperty(a,"__esModule",{value:!0}),a.dominantSpeakerChanged=e,a.localParticipantConnectionStatusChanged=r,a.kickParticipant=c,a.localParticipantIdChanged=p,a.localParticipantJoined=o,a.localParticipantRoleChanged=u,a.muteRemoteParticipant=P,a.participantConnectionStatusChanged=d,a.localParticipantLeft=l,a.participantDisplayNameChanged=A,a.participantJoined=f,a.participantLeft=I,a.participantPresenceChanged=T,a.participantRoleChanged=C,a.participantUpdated=_,a.pinParticipant=N;var g=n(504),E=n(505),R=n(506)},503);
__d(function(A,I,T,P){Object.defineProperty(P,"__esModule",{value:!0});P.DOMINANT_SPEAKER_CHANGED=Symbol("DOMINANT_SPEAKER_CHANGED"),P.KICK_PARTICIPANT=Symbol("KICK_PARTICIPANT"),P.MUTE_REMOTE_PARTICIPANT=Symbol("MUTE_REMOTE_PARTICIPANT"),P.PARTICIPANT_DISPLAY_NAME_CHANGED=Symbol("PARTICIPANT_DISPLAY_NAME_CHANGED"),P.PARTICIPANT_ID_CHANGED=Symbol("PARTICIPANT_ID_CHANGED"),P.PARTICIPANT_JOINED=Symbol("PARTICIPANT_JOINED"),P.PARTICIPANT_LEFT=Symbol("PARTICIPANT_LEFT"),P.PARTICIPANT_UPDATED=Symbol("PARTICIPANT_UPDATED"),P.PIN_PARTICIPANT=Symbol("PIN_PARTICIPANT")},504);
__d(function(A,_,T,e){Object.defineProperty(e,"__esModule",{value:!0});e.DEFAULT_AVATAR_RELATIVE_PATH="images/avatar.png",e.LOCAL_PARTICIPANT_DEFAULT_ID="local",e.MAX_DISPLAY_NAME_LENGTH=50,e.PARTICIPANT_ROLE={MODERATOR:"moderator",NONE:"none",PARTICIPANT:"participant"}},505);
__d(function(t,n,r,e){function i(t){if("object"==typeof config&&config.disableThirdPartyRequests)return d.DEFAULT_AVATAR_RELATIVE_PATH;var n=t.avatarID,r=t.avatarURL,e=t.email,i=t.id;if(r)return r;var a=e||n,o=void 0,f=void 0;if(a&&a.indexOf("@")>0)o="https://www.gravatar.com/avatar/",f="?d=wavatar&size=200";else{if(!a&&!(a=i))return;o="object"==typeof interfaceConfig&&interfaceConfig.RANDOM_AVATAR_URL_PREFIX,o?f=interfaceConfig.RANDOM_AVATAR_URL_SUFFIX:(o="https://api.adorable.io/avatars/200/",f=".png")}return o+MD5.hexdigest(a.trim().toLowerCase())+f}function a(t){return c(t).find(function(t){return t.local})}function o(t,n){return c(t).find(function(t){return t.id===n})}function f(t){return c(t).filter(function(t){return!t.isBot}).length}function u(t){return c(t).find(function(t){return t.pinned})}function c(t){return Array.isArray(t)?t:("function"==typeof t?t():t)["features/base/participants"]||[]}Object.defineProperty(e,"__esModule",{value:!0}),e.getAvatarURL=i,e.getLocalParticipant=a,e.getParticipantById=o,e.getParticipantCount=f,e.getPinnedParticipant=u;var d=n(505)},506);
__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0});var a=r(508);Object.defineProperty(n,"Avatar",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(a).default}});var u=r(556);Object.defineProperty(n,"ParticipantView",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(u).default}})},507);
__d(function(e,t,r,o){Object.defineProperty(o,"__esModule",{value:!0});var s=t(34),a=babelHelpers.interopRequireDefault(s),i=t(64),n=t(509),l=t(538),u=t(549),c=t(555),p=function(e){function t(e){babelHelpers.classCallCheck(this,t);var r=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.componentWillReceiveProps(e),r}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"componentWillReceiveProps",value:function(e){var t=this,r=this.props&&this.props.uri,o=e&&e.uri;if(r!==o||!this.state){var s={backgroundColor:this._getBackgroundColor(e),source:c};if(this.state?this.setState(s):this.state=s,o&&!o.startsWith("#")){var a={uri:o};n.ImageCache.get().on(a,function(){t._unmounted||t.setState(function(e,t){return t.uri!==o||e.source&&e.source.uri===o?{}:{source:a}})},!0)}}}},{key:"componentWillUnmount",value:function(){this._unmounted=!0}},{key:"_getBackgroundColor",value:function(e){var t=e.uri;if(!t)return u.ColorPalette.white;var r=0;if("string"==typeof t)for(var o=0;o<t.length;o++)r=t.charCodeAt(o)+((r<<5)-r),r|=0;else r=Math.floor(360*Math.random());return"hsl("+r%360+", 100%, 75%)"}},{key:"render",value:function(){var e=this.props,t=(e.uri,e.style),r=babelHelpers.objectWithoutProperties(e,["uri","style"]),o=this.state,s=o.backgroundColor,u=o.source,p=void 0;u===c&&s&&(p=babelHelpers.extends({},t,{backgroundColor:s,opacity:.1,overflow:"hidden"}));var d=void 0,h=void 0;p?"android"===l.Platform.OS?(d=t,h=p):d=p:d=t;var f=a.default.createElement(n.CachedImage,babelHelpers.extends({},r,{resizeMode:"contain",source:u,style:d}));return h&&(f=a.default.createElement(i.View,{style:h},f)),f}}]),t}(s.Component);p.propTypes={style:a.default.PropTypes.object,uri:a.default.PropTypes.string},o.default=p},508);
__d(function(e,t,a,n){Object.defineProperty(n,"__esModule",{value:!0}),n.CustomCachedImage=n.CachedImage=n.BaseCachedImage=n.ImageCache=void 0;var s=t(34),i=babelHelpers.interopRequireDefault(s),r=t(64),o=t(510),c=babelHelpers.interopRequireDefault(o),l=this&&this.__assign||Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++){t=arguments[a];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},u=t(536),h=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)},p=c.default.fs.dirs.CacheDir+"/react-native-img-cache",f="ios"===r.Platform.OS?"":"file://",d=n.ImageCache=function(){function e(){babelHelpers.classCallCheck(this,e),this.cache={}}return babelHelpers.createClass(e,[{key:"getPath",value:function(e,t){var a=e.substring(e.lastIndexOf("/"));a=-1===a.indexOf("?")?a:a.substring(a.lastIndexOf("."),a.indexOf("?"));var n=-1===a.indexOf(".")?".jpg":a.substring(a.indexOf("."));return!0===t?p+"/"+u(e)+n:p+"/"+h()+h()+"-"+h()+"-"+h()+"-"+h()+"-"+h()+h()+h()+n}},{key:"clear",value:function(){return this.cache={},c.default.fs.unlink(p)}},{key:"on",value:function(e,t,a){var n=e.uri;this.cache[n]?this.cache[n].handlers.push(t):this.cache[n]={source:e,downloading:!1,handlers:[t],immutable:!0===a,path:!0===a?this.getPath(n,a):void 0},this.get(n)}},{key:"dispose",value:function(e,t){var a=this.cache[e];a&&a.handlers.forEach(function(e,n){e===t&&a.handlers.splice(n,1)})}},{key:"bust",value:function(e){var t=this.cache[e];void 0===t||t.immutable||(t.path=void 0,this.get(e))}},{key:"cancel",value:function(e){var t=this.cache[e];t&&t.downloading&&t.task.cancel()}},{key:"download",value:function(e){var t=this,a=e.source,n=a.uri;if(!e.downloading){var s=this.getPath(n,e.immutable);e.downloading=!0;var i=a.method?a.method:"GET";e.task=c.default.config({path:s}).fetch(i,n,a.headers),e.task.then(function(){e.downloading=!1,e.path=s,t.notify(n)}).catch(function(){e.downloading=!1,c.default.fs.unlink(s)})}}},{key:"get",value:function(e){var t=this,a=this.cache[e];a.path?c.default.fs.exists(a.path).then(function(n){n?t.notify(e):t.download(a)}):this.download(a)}},{key:"notify",value:function(e){var t=this;this.cache[e].handlers.forEach(function(a){a(t.cache[e].path)})}}],[{key:"get",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}(),b=n.BaseCachedImage=function(e){function t(){babelHelpers.classCallCheck(this,t);var e=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.handler=function(t){e.setState({path:t})},e.state={path:void 0},e}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"dispose",value:function(){this.uri&&d.get().dispose(this.uri,this.handler)}},{key:"observe",value:function(e,t){e.uri!==this.uri&&(this.dispose(),this.uri=e.uri,d.get().on(e,this.handler,!t))}},{key:"getProps",value:function(){var e=this,t={};return Object.keys(this.props).forEach(function(a){"source"===a&&e.props.source.uri?t.source=e.state.path?{uri:f+e.state.path}:{}:-1===["mutable","component"].indexOf(a)&&(t[a]=e.props[a])}),t}},{key:"checkSource",value:function(e){if(Array.isArray(e))throw new Error("Giving multiple URIs to CachedImage is not yet supported.\n If you want to see this feature supported, please file and issue at\n https://github.com/wcandillon/react-native-img-cache");return e}},{key:"componentWillMount",value:function(){var e=this.props.mutable,t=this.checkSource(this.props.source);t.uri&&this.observe(t,!0===e)}},{key:"componentWillReceiveProps",value:function(e){var t=e.mutable,a=this.checkSource(e.source);a.uri&&this.observe(a,!0===t)}},{key:"componentWillUnmount",value:function(){this.dispose()}}]),t}(s.Component);n.CachedImage=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.getProps();return i.default.createElement(r.Image,l({},e),this.props.children)}}]),t}(b),n.CustomCachedImage=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props.component,t=this.getProps(),a=e;return i.default.createElement(a,l({},t),this.props.children)}}]),t}(b)},509);
__d(function(e,t,a,n){function r(e){return"RNFetchBlob-file://"+e}function o(e){return{fetch:i.bind(e)}}function l(){var e=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],arguments[1]),t=arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};arguments[4];if(!d.default.isFileURI(t))throw"could not fetch file from an invalid URI : "+t;t=d.default.unwrapFileURI(t);var n=null,r=-1,o="",l=null,i=void 0,s=void 0,u=void 0;switch(e.toLowerCase()){case"post":case"put":break;default:n=p.default.stat(t).then(function(e){return r=e.size,p.default.readStream(t,a.encoding||"utf8",Math.floor(a.bufferSize)||409600,Math.floor(a.interval)||100)}).then(function(e){return new Promise(function(t,n){e.open(),l={state:"2",headers:{source:"system-fs"},status:200,respType:"text",rnfbEncode:a.encoding||"utf8"},u(l),e.onData(function(e){i&&i(0,r,e),a.noCache||(o+=e)}),e.onError(function(e){n(e)}),e.onEnd(function(){t(new A(null,l,o))})})})}return n.progress=function(e){return i=e,n},n.stateChange=function(e){return u=e,n},n.uploadProgress=function(e){return s=e,n},n}function i(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];var n=(0,b.default)(),r=this||{},o=void 0,i=void 0,s=void 0,u=void 0,f={},c=[].concat(babelHelpers.toConsumableArray(t)),p=c[0],h=c[1],v=c[2],g=c[3];if(v=w.default.reduce(v,function(e,t,a){return e[a]=t||"",e},{}),d.default.isFileURI(h))return l(r,p,h,v,g);var m=new Promise(function(e,t){var a=Array.isArray(g)?"fetchBlobForm":"fetchBlob";o=q.addListener("RNFetchBlobProgress",function(e){e.taskId===n&&m.onProgress&&m.onProgress(e.written,e.total,e.chunk)}),i=q.addListener("RNFetchBlobProgress-upload",function(e){e.taskId===n&&m.onUploadProgress&&m.onUploadProgress(e.written,e.total)}),s=q.addListener("RNFetchBlobState",function(e){e.taskId===n&&(f=e),m.onStateChange&&m.onStateChange(e)}),o=q.addListener("RNFetchBlobExpire",function(e){e.taskId===n&&m.onExpire&&m.onExpire(e)}),u=q.addListener("RNFetchBlobServerPush",function(e){e.taskId===n&&m.onPartData&&m.onPartData(e.chunk)}),g instanceof H&&g.isRNFetchBlobPolyfill&&(g=g.getRNFetchBlobRef()),(0,x[a])(r,n,p,h,v||{},g,function(a,l,d){o.remove(),i.remove(),s.remove(),u.remove(),delete m.progress,delete m.uploadProgress,delete m.stateChange,delete m.part,delete m.cancel,m.cancel=function(){},a?t(new Error(a,f)):((r.path||r.fileCache||r.addAndroidDownloads||r.key||r.auto&&"blob"===f.respType)&&r.session&&C(r.session).add(d),f.rnfbEncode=l,e(new A(n,f,d)))})});return m.progress=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];var r=250,o=-1,l=function(){};return 2===t.length?(r=t[0].interval||r,o=t[0].count||o,l=t[1]):l=t[0],m.onProgress=l,x.enableProgressReport(n,r,o),m},m.uploadProgress=function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];var r=250,o=-1,l=function(){};return 2===t.length?(r=t[0].interval||r,o=t[0].count||o,l=t[1]):l=t[0],m.onUploadProgress=l,x.enableUploadProgressReport(n,r,o),m},m.part=function(e){return m.onPartData=e,m},m.stateChange=function(e){return m.onStateChange=e,m},m.expire=function(e){return m.onExpire=e,m},m.cancel=function(e){e=e||function(){},o.remove(),i.remove(),s.remove(),x.cancelRequest(n,e)},m.taskId=n,m}Object.defineProperty(n,"__esModule",{value:!0});var s=t(64),u=t(511),d=babelHelpers.interopRequireDefault(u),f=t(512),c=(babelHelpers.interopRequireDefault(f),t(513)),p=babelHelpers.interopRequireDefault(c),h=t(517),b=babelHelpers.interopRequireDefault(h),v=t(519),g=babelHelpers.interopRequireDefault(v),m=t(520),y=babelHelpers.interopRequireDefault(m),R=t(464),w=babelHelpers.interopRequireDefault(R),F=t(532),P=babelHelpers.interopRequireDefault(F),k=t(533),B=babelHelpers.interopRequireDefault(k),N=t(534),S=babelHelpers.interopRequireDefault(N),D=(p.default.RNFetchBlobSession,p.default.readStream),E=(p.default.createFile,p.default.unlink),C=(p.default.exists,p.default.mkdir,p.default.session),I=(p.default.writeStream,p.default.readFile),H=(p.default.ls,p.default.isDir,p.default.mv,p.default.cp,y.default.Blob),q=s.DeviceEventEmitter,x=s.NativeModules.RNFetchBlob;"ios"===s.Platform.OS&&s.AppState.addEventListener("change",function(e){"active"===e&&x.emitExpiredEvent(function(){})}),q.addListener("RNFetchBlobMessage",function(e){if("warn"===e.event)console.warn(e.detail);else{if("error"===e.event)throw e.detail;console.log("RNFetchBlob native message",e.detail)}}),x&&x.fetchBlobForm&&x.fetchBlob||console.warn("react-native-fetch-blob could not find valid native module.","please make sure you have linked native modules using `rnpm link`,","and restart RN packager or manually compile IOS/Android project.");var A=function e(t,a,n){var o=this;babelHelpers.classCallCheck(this,e),this.data=n,this.taskId=t,this.type=a.rnfbEncode,this.respInfo=a,this.info=function(){return o.respInfo},this.array=function(){a.headers["Content-Type"]||a.headers["content-type"];return new Promise(function(e,t){switch(o.type){case"base64":break;case"path":p.default.readFile(o.data,"ascii").then(e)}})},this.blob=function(){var e=y.default.Blob,t=a.headers["Content-Type"]||a.headers["content-type"];return new Promise(function(a,n){switch(o.type){case"base64":e.build(o.data,{type:t+";BASE64"}).then(a);break;case"path":y.default.Blob.build(r(o.data),{type:t}).then(a);break;default:y.default.Blob.build(o.data,{type:"text/plain"}).then(a)}})},this.text=function(){o.data;switch(o.type){case"base64":return g.default.decode(o.data);case"path":return p.default.readFile(o.data,"base64").then(function(e){return Promise.resolve(g.default.decode(e))});default:return o.data}},this.json=function(){switch(o.type){case"base64":return JSON.parse(g.default.decode(o.data));case"path":return p.default.readFile(o.data,"utf8").then(function(e){return Promise.resolve(JSON.parse(e))});default:return JSON.parse(o.data)}},this.base64=function(){switch(o.type){case"base64":return o.data;case"path":return p.default.readFile(o.data,"base64");default:return g.default.encode(o.data)}},this.flush=function(){var e=o.path();if(e&&"path"===o.type)return E(e)},this.path=function(){return"path"===o.type?o.data:null},this.session=function(e){return"path"===o.type?C(e).add(o.data):(console.warn("only file paths can be add into session."),null)},this.readStream=function(e){return"path"===o.type?D(o.data,e):(console.warn("RNFetchblob","this response data does not contains any available stream"),null)},this.readFile=function(e){return"path"===o.type?(e=e||"utf8",I(o.data,e)):(console.warn("RNFetchblob","this response does not contains a readable file"),null)}};n.default={fetch:i,base64:g.default,android:P.default,ios:B.default,config:o,session:C,fs:p.default,wrap:r,polyfill:y.default,JSONStream:S.default}},510);
__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default={isFileURI:function(e){return"string"==typeof e&&/^RNFetchBlob-file\:\/\//.test(e)},isJSONStreamURI:function(e){return"string"==typeof e&&/^JSONStream\:\/\//.test(e)},removeURIScheme:function(e,t){t=t||1;for(var r=e,n=0;n<t;n++)r=String(r).replace(/^[^\:]+\:\/\//,"");return String(r)},unwrapFileURI:function(e){return String(e).replace(/^RNFetchBlob-file\:\/\//,"")}}},511);
__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0});var s=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),t}(Promise);l.default=s},512);
__d(function(e,r,n,t){function i(e){return M.default.getSession(e)?new M.default(e):(M.default.setSession(e,[]),new M.default(e,[]))}function o(e){return"ios"===A.Platform.OS&&/^assets-library\:\/\//.test(e)?e:"bundle-assets://"+e}function u(e,r,n){return n=n||"utf8",new Promise(function(t,i){var o=function(e){e?i(new Error(e)):t()};"ascii"===n.toLowerCase()?Array.isArray(r)?R.createFileASCII(e,r,o):i(new Error("`data` of ASCII file must be an array contains numbers")):R.createFile(e,r,n,o)})}function a(e,r,n){if(!e)throw Error("RNFetchBlob could not open file stream with empty `path`");return r=r||"utf8",n=n||!1,new Promise(function(t,i){R.writeStream(e,r||"base64",n||!1,function(e,n){e?i(new Error(e)):t(new I.default(n,r))})})}function s(e,r,n){var t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;return Promise.resolve(new x.default(e,r,n,t))}function c(e){return new Promise(function(r,n){R.mkdir(e,function(e,t){e?n(new Error(e)):r()})})}function f(e){return R.pathForAppGroup(e)}function l(e,r,n){return"string"!=typeof e?Promise.reject(new Error('Invalid argument "path" ')):R.readFile(e,r)}function w(e,r,n){return n=n||"utf8","string"!=typeof e?Promise.reject('Invalid argument "path" '):"ascii"===n.toLocaleLowerCase()?Array.isArray(r)?R.writeFileArray(e,r,!1):Promise.reject(new Error('Expected "data" is an Array when encoding is "ascii", however got '+typeof r)):"string"!=typeof r?Promise.reject(new Error('Expected "data" is a String when encoding is "utf8" or "base64", however got '+typeof r)):R.writeFile(e,n,r,!1)}function d(e,r,n){return n=n||"utf8","string"!=typeof e?Promise.reject('Invalid argument "path" '):"ascii"===n.toLocaleLowerCase()?Array.isArray(r)?R.writeFileArray(e,r,!0):Promise.reject(new Error('Expected "data" is an Array when encoding is "ascii", however got '+typeof r)):"string"!=typeof r?Promise.reject(new Error('Expected "data" is a String when encoding is "utf8" or "base64", however got '+typeof r)):R.writeFile(e,n,r,!0)}function p(e){return new Promise(function(r,n){R.stat(e,function(e,t){e?n(new Error(e)):(t&&(t.size=parseInt(t.size),t.lastModified=parseInt(t.lastModified)),r(t))})})}function m(e){return new Promise(function(r,n){R.scanFile(e,function(e){e?n(new Error(e)):r()})})}function D(e,r){return new Promise(function(n,t){R.cp(e,r,function(e,r){e?t(new Error(e)):n(r)})})}function h(e,r){return new Promise(function(n,t){R.mv(e,r,function(e,r){e?t(new Error(e)):n(r)})})}function y(e){return new Promise(function(r,n){R.lstat(e,function(e,t){e?n(new Error(e)):r(t)})})}function P(e){return new Promise(function(r,n){R.ls(e,function(e,t){e?n(new Error(e)):r(t)})})}function E(e){return new Promise(function(r,n){R.unlink(e,function(e){e?n(new Error(e)):r()})})}function v(e){return new Promise(function(r,n){try{R.exists(e,function(e){r(e)})}catch(e){n(new Error(e))}})}function b(e,r,n,t){function i(e,r){return e<0?Math.max(0,r+e):e||0===e?e:r}var o=Promise.resolve(),u=0;return(n<0||t<0||!n||!t)&&(o=o.then(function(){return p(e)}).then(function(e){return u=Math.floor(e.size),n=i(n||0,u),t=i(t,u),Promise.resolve()})),o.then(function(){return R.slice(e,r,n,t)})}function g(e){return new Promise(function(r,n){try{R.exists(e,function(e,n){r(n)})}catch(e){n(new Error(e))}})}function F(){return new Promise(function(e,r){R.df(function(n,t){n?r(n):e(t)})})}Object.defineProperty(t,"__esModule",{value:!0});var A=r(64),S=r(514),M=babelHelpers.interopRequireDefault(S),C=r(515),I=babelHelpers.interopRequireDefault(C),j=r(516),x=babelHelpers.interopRequireDefault(j),L=r(518),R=(babelHelpers.interopRequireDefault(L),A.NativeModules.RNFetchBlob),B=(A.DeviceEventEmitter,{DocumentDir:R.DocumentDir,CacheDir:R.CacheDir,PictureDir:R.PictureDir,MusicDir:R.MusicDir,MovieDir:R.MovieDir,DownloadDir:R.DownloadDir,DCIMDir:R.DCIMDir,SDCardDir:R.SDCardDir,SDCardApplicationDir:R.SDCardApplicationDir,MainBundleDir:R.MainBundleDir,LibraryDir:R.LibraryDir});t.default={RNFetchBlobSession:M.default,unlink:E,mkdir:c,session:i,ls:P,readStream:s,mv:h,cp:D,writeStream:a,writeFile:w,appendFile:d,pathForAppGroup:f,readFile:l,exists:v,createFile:u,isDir:g,stat:p,lstat:y,scanFile:m,dirs:B,slice:b,asset:o,df:F}},513);
__d(function(e,n,t,i){Object.defineProperty(i,"__esModule",{value:!0});var s=n(64),a=s.NativeModules.RNFetchBlob,r=(s.DeviceEventEmitter,{}),u=function(){function e(n,t){babelHelpers.classCallCheck(this,e),this.name=n,r[n]||(Array.isArray(t)?r[n]=t:r[n]=[])}return babelHelpers.createClass(e,null,[{key:"getSession",value:function(e){return r[e]}},{key:"setSession",value:function(e,n){r[e]=n}},{key:"removeSession",value:function(e){delete r[e]}}]),babelHelpers.createClass(e,[{key:"add",value:function(e){return r[this.name].push(e),this}},{key:"remove",value:function(e){var n=r[this.name];for(var t in n)if(n[t]===e){r[this.name].splice(t,1);break}return this}},{key:"list",value:function(){return r[this.name]}},{key:"dispose",value:function(){var e=this;return new Promise(function(n,t){a.removeSession(r[e.name],function(i){i?t(i):(delete r[e.name],n())})})}}]),e}();i.default=u},514);
__d(function(e,i,t,n){Object.defineProperty(n,"__esModule",{value:!0});var r=i(64),a=r.NativeModules.RNFetchBlob,c=(r.DeviceEventEmitter,function(){function e(i,t,n){babelHelpers.classCallCheck(this,e),this.id=i,this.encoding=t,this.append=n}return babelHelpers.createClass(e,[{key:"write",value:function(e){var i=this;return new Promise(function(t,n){try{var r="ascii"===i.encoding?"writeArrayChunk":"writeChunk";if("ascii"===i.encoding.toLocaleLowerCase()&&!Array.isArray(e))return void n("ascii input data must be an Array");a[r](i.id,e,function(e){e?n(e):t()})}catch(e){n(e)}})}},{key:"close",value:function(){var e=this;return new Promise(function(i,t){try{a.closeStream(e.id,function(){i()})}catch(e){t(e)}})}}]),e}());n.default=c},515);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var i=t(64),o=t(517),a=babelHelpers.interopRequireDefault(o),s=i.NativeModules.RNFetchBlob,h=i.DeviceEventEmitter,l=function(){function e(t,n,r,i){var o=this;if(babelHelpers.classCallCheck(this,e),this.tick=10,!t)throw Error("RNFetchBlob could not open file stream with empty `path`");this.encoding=n||"utf8",this.bufferSize=r,this.path=t,this.closed=!1,this.tick=i,this._onData=function(){},this._onEnd=function(){},this._onError=function(){},this.streamId="RNFBRS"+(0,a.default)();var s=h.addListener(this.streamId,function(e){var t=e.event,n=e.detail;if(o._onData&&"data"===t)return void o._onData(n);if(o._onEnd&&"end"===t)o._onEnd(n);else{if(!o._onError)throw new Error(n);o._onError(n)}"error"!==t&&"end"!==t||(s.remove(),o.closed=!0)})}return babelHelpers.createClass(e,[{key:"open",value:function(){if(this.closed)throw new Error("Stream closed");s.readStream(this.path,this.encoding,this.bufferSize||10240,this.tick||-1,this.streamId)}},{key:"onData",value:function(e){this._onData=e}},{key:"onError",value:function(e){this._onError=e}},{key:"onEnd",value:function(e){this._onEnd=e}}]),e}();r.default=l},516);
__d(function(t,n,r,e){function o(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o},517);
__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var c=t(64),i=(c.NativeModules.RNFetchBlob,c.DeviceEventEmitter,function e(){babelHelpers.classCallCheck(this,e)});a.default=i},518);
__d(function(e,t,r,o){!function(t){var n="object"==typeof o&&o,a="object"==typeof r&&r&&r.exports==n&&r,c="object"==typeof e&&e;c.global!==c&&c.window!==c||(t=c);var i=function(e){this.message=e};i.prototype=new Error,i.prototype.name="InvalidCharacterError";var h=function(e){throw new i(e)},d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=/[\t\n\f\r ]/g,s=function(e){e=String(e).replace(f,"");var t=e.length;t%4==0&&(e=e.replace(/==?$/,""),t=e.length),(t%4==1||/[^+a-zA-Z0-9\/]/.test(e))&&h("Invalid character: the string to be decoded is not correctly encoded.");for(var r,o,n=0,a="",c=-1;++c<t;)o=d.indexOf(e.charAt(c)),r=n%4?64*r+o:o,n++%4&&(a+=String.fromCharCode(255&r>>(-2*n&6)));return a},A=function(e){e=String(e),/[^\0-\xFF]/.test(e)&&h("The string to be encoded contains characters outside of the Latin1 range.");for(var t,r,o,n,a=e.length%3,c="",i=-1,f=e.length-a;++i<f;)t=e.charCodeAt(i)<<16,r=e.charCodeAt(++i)<<8,o=e.charCodeAt(++i),n=t+r+o,c+=d.charAt(n>>18&63)+d.charAt(n>>12&63)+d.charAt(n>>6&63)+d.charAt(63&n);return 2==a?(t=e.charCodeAt(i)<<8,r=e.charCodeAt(++i),n=t+r,c+=d.charAt(n>>10)+d.charAt(n>>4&63)+d.charAt(n<<2&63)+"="):1==a&&(n=e.charCodeAt(i),c+=d.charAt(n>>2)+d.charAt(n<<4&63)+"=="),c},p={encode:A,decode:s,version:"0.1.0"};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return p});else if(n&&!n.nodeType)if(a)a.exports=p;else for(var l in p)p.hasOwnProperty(l)&&(n[l]=p[l]);else t.base64=p}(this)},519);
__d(function(e,l,t,r){Object.defineProperty(r,"__esModule",{value:!0});var u=l(521),a=babelHelpers.interopRequireDefault(u),i=l(524),f=babelHelpers.interopRequireDefault(i),b=l(525),p=babelHelpers.interopRequireDefault(b),d=l(527),n=babelHelpers.interopRequireDefault(d),o=l(528),s=babelHelpers.interopRequireDefault(o),R=l(529),q=babelHelpers.interopRequireDefault(R),H=l(530),D=babelHelpers.interopRequireDefault(H);r.default={Blob:a.default,File:f.default,XMLHttpRequest:p.default,ProgressEvent:n.default,Event:s.default,FileReader:q.default,Fetch:D.default}},520);
__d(function(e,t,r,l){function n(){return"blob-"+(0,c.default)()}function i(e,t){var r=u.default.writeFile(e,""),l=[],n=0;for(var i in t){var o=t[i];o&&(o.isRNFetchBlobPolyfill?l.push([e,o._ref,"uri"]):"string"==typeof o?l.push([e,o,"utf8"]):Array.isArray(o)&&l.push([e,o,"ascii"]))}for(var a in l)!function(e){r=r.then(function(t){var r=this;return t&&(n+=t),p.verbose("mixed blob write",l[e],t),u.default.appendFile.apply(u.default,babelHelpers.toConsumableArray(r))}.bind(l[e]))}(a);return r.then(function(){return Promise.resolve(n)})}Object.defineProperty(l,"__esModule",{value:!0});var o=t(510),a=babelHelpers.interopRequireDefault(o),s=t(513),u=babelHelpers.interopRequireDefault(s),f=t(517),c=babelHelpers.interopRequireDefault(f),b=t(522),h=babelHelpers.interopRequireDefault(b),d=t(523),v=babelHelpers.interopRequireDefault(d),p=new h.default("Blob"),_=u.default.dirs.DocumentDir+"/RNFetchBlob-blobs/";p.disable();var y=function(e){function t(e,r,l){babelHelpers.classCallCheck(this,t);var o=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));o.isRNFetchBlobPolyfill=!0,o.multipartBoundary=null,o._ref=null,o._blobCreated=!1,o._onCreated=[],o._closed=!1,r=r||{},o.cacheName=n(),o.isRNFetchBlobPolyfill=!0,o.isDerived=l,o.type=r.type||"text/plain",p.verbose("Blob constructor called","mime",o.type,"type",typeof e,"length",e?e.length:0),o._ref=_+o.cacheName;var a=null;if(e||(e=""),e.isRNFetchBlobPolyfill){p.verbose("create Blob cache file from Blob object");o._ref=String(e.getRNFetchBlobRef());var s=o._ref;a=u.default.exists(s).then(function(t){if(t)return u.default.writeFile(s,e,"uri").then(function(e){return Promise.resolve(e)}).catch(function(e){throw"RNFetchBlob Blob file creation error, "+e});throw"could not create Blob from path "+s+", file not exists"})}else if(e instanceof FormData){p.verbose("create Blob cache file from FormData",e);var f="RNFetchBlob-"+o.cacheName+"-"+Date.now();o.multipartBoundary=f;var c=e.getParts(),b=[];if(c){for(var h in c){b.push("\r\n--"+f+"\r\n");var d=c[h];for(var v in d.headers)b.push(v+": "+d.headers[v]+"\r\n");b.push("\r\n"),d.isRNFetchBlobPolyfill?b.push(d):b.push(d.string)}p.verbose("FormData array",b),b.push("\r\n--"+f+"--\r\n"),a=i(o._ref,b)}else a=u.default.writeFile(o._ref,"","utf8")}else if("string"==typeof e&&e.startsWith("RNFetchBlob-file://")){p.verbose("create Blob cache file from file path",e),o._isReference=!0,o._ref=String(e).replace("RNFetchBlob-file://","");var y=o._ref;if(l)return babelHelpers.possibleConstructorReturn(o);a=u.default.stat(y).then(function(e){return Promise.resolve(e.size)})}else if("string"==typeof e){var m="utf8",B=String(o.type);/(application\/octet|\;base64)/i.test(B)?m="base64":e=e.toString(),o.type=String(o.type).replace(/;base64/gi,""),p.verbose("create Blob cache file from string","encode",m),a=u.default.writeFile(o._ref,e,m).then(function(e){return Promise.resolve(e)})}else Array.isArray(e)?(p.verbose("create Blob cache file from mixed array",e),a=i(o._ref,e)):(e=e.toString(),a=u.default.writeFile(o._ref,e,"utf8").then(function(e){return Promise.resolve(e)}));return a&&a.then(function(e){o.size=e,o._invokeOnCreateEvent()}).catch(function(e){p.error("RNFetchBlob could not create Blob : "+o._ref,e)}),o}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"blobPath",get:function(){return this._ref}}],[{key:"clearCache",value:function(){return u.default.unlink(_).then(function(){return u.default.mkdir(_)})}},{key:"build",value:function(e,r){return new Promise(function(l,n){new t(e,r).onCreated(l)})}},{key:"setLog",value:function(e){-1===e?p.disable():p.level(e)}}]),babelHelpers.createClass(t,[{key:"onCreated",value:function(e){return p.verbose("#register blob onCreated",this._blobCreated),this._blobCreated?e(this):this._onCreated.push(e),this}},{key:"markAsDerived",value:function(){this._isDerived=!0}},{key:"getRNFetchBlobRef",value:function(){return this._ref}},{key:"slice",value:function(e,r){var l=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(this._closed)throw"Blob has been released.";p.verbose("slice called",e,r,i);var o=_+n(),s=!1;p.debug("fs.slice new blob will at",o);var f=new t(a.default.wrap(o),{type:i},!0);return u.default.exists(_).then(function(e){return e?Promise.resolve():u.default.mkdir(_)}).then(function(){return u.default.slice(l._ref,o,e,r)}).then(function(e){p.debug("fs.slice done",e),f._invokeOnCreateEvent(),s=!0}).catch(function(e){console.warn("Blob.slice failed:",e),s=!0}),p.debug("slice returning new Blob"),f}},{key:"readBlob",value:function(e){if(this._closed)throw"Blob has been released.";return u.default.readFile(this._ref,e||"utf8")}},{key:"close",value:function(){return this._closed?Promise.reject("Blob has been released."):(this._closed=!0,u.default.unlink(this._ref).catch(function(e){console.warn(e)}))}},{key:"safeClose",value:function(){return this._closed?Promise.reject("Blob has been released."):(this._closed=!0,this._isReference?Promise.resolve():u.default.unlink(this._ref).catch(function(e){console.warn(e)}))}},{key:"_invokeOnCreateEvent",value:function(){p.verbose("invoke create event",this._onCreated),this._blobCreated=!0;var e=this._onCreated;for(var t in e)"function"==typeof e[t]&&e[t](this);delete this._onCreated}},{key:"isDerived",get:function(){return this._isDerived||!1}}]),t}(v.default);l.default=y},521);
__d(function(e,l,n,a){Object.defineProperty(a,"__esModule",{value:!0});var t=function(){function e(l){babelHelpers.classCallCheck(this,e),this._isEnable=!0,this._level=0,this._name=l}return babelHelpers.createClass(e,[{key:"level",value:function(e){this._isEnable=!0,this._level=e}},{key:"enable",value:function(){this._isEnable=!0}},{key:"disable",value:function(){this._isEnable=!1}},{key:"verbose",value:function(){for(var e,l=arguments.length,n=Array(l),a=0;a<l;a++)n[a]=arguments[a];this._isEnable&&this._level>2&&(e=console).log.apply(e,[this._name,"verbose:"].concat(n))}},{key:"debug",value:function(){for(var e,l=arguments.length,n=Array(l),a=0;a<l;a++)n[a]=arguments[a];this._isEnable&&this._level>1&&(e=console).log.apply(e,[this._name,"debug:"].concat(n))}},{key:"info",value:function(){for(var e,l=arguments.length,n=Array(l),a=0;a<l;a++)n[a]=arguments[a];this._isEnable&&this._level>0&&(e=console).log.apply(e,[this._name,"info:"].concat(n))}},{key:"error",value:function(){for(var e,l=arguments.length,n=Array(l),a=0;a<l;a++)n[a]=arguments[a];this._isEnable&&this._level>-1&&(e=console).warn.apply(e,[this._name,"error:"].concat(n))}}]),e}();a.default=t},522);
__d(function(e,t,i,n){Object.defineProperty(n,"__esModule",{value:!0});var s=t(522),r=babelHelpers.interopRequireDefault(s),l=new r.default("EventTarget");l.disable();var a=function(){function e(){babelHelpers.classCallCheck(this,e),l.info("constructor called"),this.listeners={}}return babelHelpers.createClass(e,[{key:"addEventListener",value:function(e,t){l.info("add event listener",e,t),e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)}},{key:"removeEventListener",value:function(e,t){if(l.info("remove event listener",e,t),e in this.listeners){var i=this.listeners[e];for(var n in i)if(t===i[n])return i.splice(n,1),this.removeEventListener(e,t)}}},{key:"dispatchEvent",value:function(e,t){if(l.info("dispatch event",t),e in this.listeners){var i=this.listeners[e];for(var n in i)i[n].call(this,t)}}},{key:"clearEventListeners",value:function(){for(var e in this.listeners)delete this.listeners[e]}}]),e}();n.default=a},523);
__d(function(e,t,l,r){Object.defineProperty(r,"__esModule",{value:!0});var n=t(513),a=(babelHelpers.interopRequireDefault(n),t(521)),u=babelHelpers.interopRequireDefault(a),i=function(e){function t(e,l){babelHelpers.classCallCheck(this,t);var r=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,l));return r.name="",r}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,null,[{key:"build",value:function(e,l,r){return new Promise(function(n,a){new t(l,r).onCreated(function(t){t.name=e,n(t)})})}}]),t}(u.default);r.default=i},524);
__d(function(e,t,s,r){Object.defineProperty(r,"__esModule",{value:!0});var n=t(510),a=babelHelpers.interopRequireDefault(n),o=t(526),i=babelHelpers.interopRequireDefault(o),u=t(522),p=babelHelpers.interopRequireDefault(u),d=t(521),l=babelHelpers.interopRequireDefault(d),_=t(527),h=babelHelpers.interopRequireDefault(_),c=t(511),f=babelHelpers.interopRequireDefault(c),y=new p.default("XMLHttpRequest");y.disable();var b=0,g=function(e){function t(){babelHelpers.classCallCheck(this,t),y.verbose("XMLHttpRequest constructor called");var e=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.upload=new i.default,e._readyState=b,e._uriType="net",e._response="",e._responseText="",e._responseHeaders={},e._responseType="",e._responseURL="",e._responseXML="",e._status=0,e._statusText="",e._timeout=6e4,e._sendFlag=!1,e._uploadStarted=!1,e._increment=!1,e._config={},e._headers={"Content-Type":"text/plain"},e._cleanUp=null,e._headerReceived=function(s){y.debug("header received ",e._task.taskId,s),e.responseURL=e._url,"2"===s.state&&s.taskId===e._task.taskId&&(e._responseHeaders=s.headers,e._statusText=s.status,e._status=Math.floor(s.status),e._dispatchReadStateChange(t.HEADERS_RECEIVED))},e._uploadProgressEvent=function(t,s){e._uploadStarted||(e.upload.dispatchEvent("loadstart"),e._uploadStarted=!0),t>=s&&e.upload.dispatchEvent("load"),e.upload.dispatchEvent("progress",new h.default(!0,t,s))},e._progressEvent=function(s,r,n){y.verbose(e.readyState),e._readyState===t.HEADERS_RECEIVED&&e._dispatchReadStateChange(t.LOADING);var a=!1;r&&r>=0&&(a=!0);var o=new h.default(a,s,r);e._increment&&(e._responseText+=n),e.dispatchEvent("progress",o)},e._onError=function(s){var r=Math.floor(e.status);r>=100&&408!==r||(y.debug("XMLHttpRequest error",s),e._statusText=s,e._status=String(s).match(/\d+/),e._status=e._status?Math.floor(e.status):404,e._dispatchReadStateChange(t.DONE),(s&&String(s.message).match(/(timed\sout|timedout)/)||408==e._status)&&e.dispatchEvent("timeout"),e.dispatchEvent("loadend"),e.dispatchEvent("error",{type:"error",detail:s}),e.clearEventListeners())},e._onDone=function(s){y.debug("XMLHttpRequest done",e._url,s,e),e._statusText=e._status;var r=function(){y.debug("request done state = 4"),e.dispatchEvent("load"),e.dispatchEvent("loadend"),e._dispatchReadStateChange(t.DONE),e.clearEventListeners()};if(s){var n=s.respInfo||{};switch(y.debug(e._url,n,n.respType),e._responseType){case"blob":s.blob().then(function(t){e._responseText=s.text(),e._response=t,r()});break;case"arraybuffer":break;case"json":e._response=s.json(),e._responseText=s.text();break;default:e._responseText=s.text(),e._response=e.responseText,r()}}},e}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"UNSENT",get:function(){return b}},{key:"OPENED",get:function(){return 1}},{key:"HEADERS_RECEIVED",get:function(){return 2}},{key:"LOADING",get:function(){return 3}},{key:"DONE",get:function(){return 4}}],[{key:"setLog",value:function(e){-1===e?y.disable():y.level(e)}},{key:"addBinaryContentType",value:function(e){for(var s in t.binaryContentTypes)if(new RegExp(e,"i").test(t.binaryContentTypes[s]))return;t.binaryContentTypes.push(e)}},{key:"removeBinaryContentType",value:function(e){for(var s in t.binaryContentTypes)if(new RegExp(substr,"i").test(t.binaryContentTypes[s]))return void t.binaryContentTypes.splice(s,1)}},{key:"UNSENT",get:function(){return b}},{key:"OPENED",get:function(){return 1}},{key:"HEADERS_RECEIVED",get:function(){return 2}},{key:"LOADING",get:function(){return 3}},{key:"DONE",get:function(){return 4}}]),babelHelpers.createClass(t,[{key:"open",value:function(e,s,r,n,a){y.verbose("XMLHttpRequest open ",e,s,r,n,a),this._method=e,this._url=s,this._headers={},this._increment=f.default.isJSONStreamURI(this._url),this._url=this._url.replace(/^JSONStream\:\/\//,""),this._dispatchReadStateChange(t.OPENED)}},{key:"send",value:function(e){var s=this;if(this._body=e,this._readyState!==t.OPENED)throw"InvalidStateError : XMLHttpRequest is not opened yet.";var r=Promise.resolve();this._sendFlag=!0,y.verbose("XMLHttpRequest send ",e);var n=this._method,o=this._url,i=this._headers;y.verbose("sending request with args",n,o,i,e),y.verbose(typeof e,e instanceof FormData),e instanceof l.default?(y.debug("sending blob body",e._blobCreated),r=new Promise(function(t,r){e.onCreated(function(r){r.isDerived&&(s._cleanUp=function(){r.close()}),y.debug("body created send request"),e=a.default.wrap(r.getRNFetchBlobRef()),t()})})):"object"==typeof e?(e=JSON.stringify(e),r=Promise.resolve()):(e=e?e.toString():e,r=Promise.resolve()),r.then(function(){y.debug("send request invoke",e);for(var r in i)i[r]=i[r].toString();s._task=a.default.config({auto:!0,timeout:s._timeout,increment:s._increment,binaryContentTypes:t.binaryContentTypes}).fetch(n,o,i,e),s._task.stateChange(s._headerReceived).uploadProgress(s._uploadProgressEvent).progress(s._progressEvent).catch(s._onError).then(s._onDone)})}},{key:"overrideMimeType",value:function(e){y.verbose("XMLHttpRequest overrideMimeType",e),this._headers["Content-Type"]=e}},{key:"setRequestHeader",value:function(e,t){if(y.verbose("XMLHttpRequest set header",e,t),1!==this._readyState||this._sendFlag)throw"InvalidStateError : Calling setRequestHeader in wrong state "+this._readyState;if("string"!=typeof e||/[^\u0000-\u00ff]/.test(e))throw"TypeError : header field name should be a string";var s=[/[\(\)\>\<\@\,\:\\\/\[\]\?\=\}\{\s\ \u007f\;\t\0\v\r]/,/tt/];for(var r in s)if(s[r].test(e)||"string"!=typeof e)throw"SyntaxError : Invalid header field name "+e;this._headers[e]=t}},{key:"abort",value:function(){var e=this;y.verbose("XMLHttpRequest abort "),this._task&&this._task.cancel(function(t){var s={timeStamp:Date.now()};e.onabort&&e.onabort(),t?(s.detail=t,s.type="error",e.dispatchEvent("error",s)):(s.type="abort",e.dispatchEvent("abort",s))})}},{key:"getResponseHeader",value:function(e){return y.verbose("XMLHttpRequest get header",e,this._responseHeaders),this._responseHeaders?this._responseHeaders[e]||this._responseHeaders[e.toLowerCase()]||null:null}},{key:"getAllResponseHeaders",value:function(){if(y.verbose("XMLHttpRequest get all headers",this._responseHeaders),!this._responseHeaders)return"";var e="",t=this.responseHeaders;for(var s in t)e+=s+": "+t[s]+String.fromCharCode(13,10);return e.substr(0,e.length-2)}},{key:"_dispatchReadStateChange",value:function(e){this._readyState=e,"function"==typeof this._onreadystatechange&&this._onreadystatechange()}},{key:"onreadystatechange",set:function(e){y.verbose("XMLHttpRequest set onreadystatechange",e),this._onreadystatechange=e},get:function(){return this._onreadystatechange}},{key:"readyState",get:function(){return y.verbose("get readyState",this._readyState),this._readyState}},{key:"status",get:function(){return y.verbose("get status",this._status),this._status}},{key:"statusText",get:function(){return y.verbose("get statusText",this._statusText),this._statusText}},{key:"response",get:function(){return y.verbose("get response",this._response),this._response}},{key:"responseText",get:function(){return y.verbose("get responseText",this._responseText),this._responseText}},{key:"responseURL",get:function(){return y.verbose("get responseURL",this._responseURL),this._responseURL}},{key:"responseHeaders",get:function(){return y.verbose("get responseHeaders",this._responseHeaders),this._responseHeaders}},{key:"timeout",set:function(e){this._timeout=1e3*e,y.verbose("set timeout",this._timeout)},get:function(){return y.verbose("get timeout",this._timeout),this._timeout}},{key:"responseType",set:function(e){y.verbose("set response type",this._responseType),this._responseType=e},get:function(){return y.verbose("get response type",this._responseType),this._responseType}}],[{key:"isRNFBPolyfill",get:function(){return!0}}]),t}(i.default);g.binaryContentTypes=["image/","video/","audio/"],r.default=g},525);
__d(function(t,e,o,n){Object.defineProperty(n,"__esModule",{value:!0});var r=e(523),s=babelHelpers.interopRequireDefault(r),i=e(522),a=babelHelpers.interopRequireDefault(i),u=new a.default("XMLHttpRequestEventTarget");u.disable();var l=function(t){function e(){babelHelpers.classCallCheck(this,e);var t=babelHelpers.possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t._onabort=function(){},t._onerror=function(){},t._onload=function(){},t._onloadstart=function(){},t._onprogress=function(){},t._ontimeout=function(){},t._onloadend=function(){},u.info("constructor called"),t}return babelHelpers.inherits(e,t),babelHelpers.createClass(e,[{key:"dispatchEvent",value:function(t,o){switch(u.debug("dispatch event",t,o),babelHelpers.get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"dispatchEvent",this).call(this,t,o),t){case"abort":this._onabort(o);break;case"error":this._onerror(o);break;case"load":this._onload(o);break;case"loadstart":this._onloadstart(o);break;case"loadend":this._onloadend(o);break;case"progress":this._onprogress(o);break;case"timeout":this._ontimeout(o)}}},{key:"onabort",set:function(t){u.info("set onabort"),this._onabort=t},get:function(){return this._onabort}},{key:"onerror",set:function(t){u.info("set onerror"),this._onerror=t},get:function(){return this._onerror}},{key:"onload",set:function(t){u.info("set onload",t),this._onload=t},get:function(){return this._onload}},{key:"onloadstart",set:function(t){u.info("set onloadstart"),this._onloadstart=t},get:function(){return this._onloadstart}},{key:"onprogress",set:function(t){u.info("set onprogress"),this._onprogress=t},get:function(){return this._onprogress}},{key:"ontimeout",set:function(t){u.info("set ontimeout"),this._ontimeout=t},get:function(){return this._ontimeout}},{key:"onloadend",set:function(t){u.info("set onloadend"),this._onloadend=t},get:function(){return this._onloadend}}]),e}(s.default);n.default=l},526);
__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var o=t(528),r=babelHelpers.interopRequireDefault(o),n=function(e){function t(e,l,a){babelHelpers.classCallCheck(this,t);var o=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return o._lengthComputable=!1,o._loaded=-1,o._total=-1,o._lengthComputable=e,o._loaded=l,o._total=a,o}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"lengthComputable",get:function(){return this._lengthComputable}},{key:"loaded",get:function(){return this._loaded}},{key:"total",get:function(){return this._total}}]),t}(r.default);a.default=n},527);
__d(function(e,l,a,t){Object.defineProperty(t,"__esModule",{value:!0});var c=function e(){babelHelpers.classCallCheck(this,e)};t.default=c},528);
__d(function(e,t,r,a){Object.defineProperty(a,"__esModule",{value:!0});var l=t(510),n=(babelHelpers.interopRequireDefault(l),t(527)),s=(babelHelpers.interopRequireDefault(n),t(523)),u=babelHelpers.interopRequireDefault(s),o=t(521),i=(babelHelpers.interopRequireDefault(o),t(522)),b=babelHelpers.interopRequireDefault(i),f=t(513),p=(babelHelpers.interopRequireDefault(f),new b.default("FileReader"));p.level(3);var c=function(e){function t(){babelHelpers.classCallCheck(this,t);var e=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e._readState=0,p.verbose("file reader const"),e._result=null,e}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"isRNFBPolyFill",get:function(){return!0}}],[{key:"EMPTY",get:function(){return 0}},{key:"LOADING",get:function(){return 1}},{key:"DONE",get:function(){return 2}}]),babelHelpers.createClass(t,[{key:"abort",value:function(){p.verbose("abort")}},{key:"readAsArrayBuffer",value:function(e){p.verbose("readAsArrayBuffer",e)}},{key:"readAsBinaryString",value:function(e){p.verbose("readAsBinaryString",e)}},{key:"readAsText",value:function(e,t){p.verbose("readAsText",e,t)}},{key:"readAsDataURL",value:function(e){p.verbose("readAsDataURL",e)}},{key:"dispatchEvent",value:function(e,r){p.verbose("dispatch event",e,r),babelHelpers.get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispatchEvent",this).call(this,e,r),"function"==typeof this["on"+e]&&this["on"+e](r)}},{key:"readyState",get:function(){return this._readyState}},{key:"result",get:function(){return this._result}}]),t}(u.default);a.default=c},529);
__d(function(e,t,r,s){function n(e,t){switch(t.rnfbEncode){case"path":return e.readFile("ascii");default:var r=[],s=e.text();for(var n in s)r[n]=s.charCodeAt(n);return Promise.resolve(r)}}function o(e,t){switch(t.rnfbEncode){case"base64":return Promise.resolve(e.text());case"path":return e.text();default:return Promise.resolve(e.text())}}function a(e,t){return v.verbose("readBlob",e,t),e.blob()}function i(e,t){switch(v.verbose("readJSON",e,t),t.rnfbEncode){case"base64":return Promise.resolve(e.json());case"path":return e.json();default:return Promise.resolve(e.json())}}Object.defineProperty(s,"__esModule",{value:!0});var l=t(510),f=babelHelpers.interopRequireDefault(l),u=t(522),b=babelHelpers.interopRequireDefault(u),c=t(513),h=(babelHelpers.interopRequireDefault(c),t(531)),p=(babelHelpers.interopRequireDefault(h),t(521)),d=babelHelpers.interopRequireDefault(p),v=new b.default("FetchPolyfill");v.disable();var y=function e(t){babelHelpers.classCallCheck(this,e),babelHelpers.extends(this,new R(t))};s.default=y;var R=function e(t){babelHelpers.classCallCheck(this,e),this.build=function(){return function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=r.body,n=Promise.resolve(),o=null;r.headers=r.headers||{};var a=r["Content-Type"]||r["content-type"],i=r.headers["Content-Type"]||r.headers["content-type"];r.headers["Content-Type"]=a||i,r.headers["content-type"]=a||i,r.method=r.method||"GET",s&&(s instanceof FormData?(v.verbose("convert FormData to blob body"),n=d.default.build(s).then(function(e){return o=e,r.headers["Content-Type"]="multipart/form-data;boundary="+e.multipartBoundary,Promise.resolve(f.default.wrap(e._ref))})):n=s.isRNFetchBlobPolyfill?Promise.resolve(f.default.wrap(s.blobPath)):"object"!=typeof s&&"application/json"!==r.headers["Content-Type"]?Promise.resolve(JSON.stringify(s)):"string"!=typeof s?Promise.resolve(s.toString()):Promise.resolve(s));var l=void 0,u=void 0,b=void 0,c=n.then(function(s){var n=f.default.config(t).fetch(r.method,e,r.headers,s);return l&&n.progress(l),u&&n.uploadProgress(u),b&&n.cancel(),n.then(function(e){return v.verbose("response",e),null!==o&&o instanceof d.default&&o.close(),Promise.resolve(new m(e))})});return c.progress=function(e){l=e},c.uploadProgress=function(e){u=e},c.cancel=function(){b=!0,task.cancel&&task.cancel()},c}}},m=function(){function e(t){babelHelpers.classCallCheck(this,e);var r=t.info();this.headers=r.headers,this.ok=r.status>=200&&r.status<=299,this.status=r.status,this.type="basic",this.bodyUsed=!1,this.resp=t,this.rnfbRespInfo=r,this.rnfbResp=t}return babelHelpers.createClass(e,[{key:"rawResp",value:function(){return Promise.resolve(this.rnfbResp)}},{key:"arrayBuffer",value:function(){return v.verbose("to arrayBuffer",this.rnfbRespInfo),this.bodyUsed=!0,n(this.rnfbResp,this.rnfbRespInfo)}},{key:"text",value:function(){return v.verbose("to text",this.rnfbResp,this.rnfbRespInfo),this.bodyUsed=!0,o(this.rnfbResp,this.rnfbRespInfo)}},{key:"json",value:function(){return v.verbose("to json",this.rnfbResp,this.rnfbRespInfo),this.bodyUsed=!0,i(this.rnfbResp,this.rnfbRespInfo)}},{key:"blob",value:function(){return v.verbose("to blob",this.rnfbResp,this.rnfbRespInfo),this.bodyUsed=!0,a(this.rnfbResp,this.rnfbRespInfo)}}]),e}()},530);
__d(function(e,n,r,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var n=/\\u([\d\w]{4})/gi;return e=e.replace(n,function(e,n){return String.fromCharCode(parseInt(n,16))}),unescape(e)}},531);
__d(function(t,n,e,o){function d(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text/plain";return"android"===a.Platform.OS?l.actionViewIntent(t,n):Promise.reject("RNFetchBlob.android.actionViewIntent only supports Android.")}function r(t){return"android"===a.Platform.OS?l.getContentIntent(t):Promise.reject("RNFetchBlob.android.getContentIntent only supports Android.")}function i(t){return"android"===a.Platform.OS?l.addCompleteDownload(t):Promise.reject("RNFetchBlob.android.addCompleteDownload only supports Android.")}Object.defineProperty(o,"__esModule",{value:!0});var a=n(64),l=a.NativeModules.RNFetchBlob;o.default={actionViewIntent:d,getContentIntent:r,addCompleteDownload:i}},532);
__d(function(e,o,t,n){function u(e,o){return"ios"===i.Platform.OS?l.previewDocument("file://"+e,o):Promise.reject("RNFetchBlob.openDocument only supports IOS.")}function r(e,o){return"ios"===i.Platform.OS?l.openDocument("file://"+e,o):Promise.reject("RNFetchBlob.previewDocument only supports IOS.")}function c(e){return l.excludeFromBackupKey("file://"+path)}Object.defineProperty(n,"__esModule",{value:!0});var i=o(64),l=i.NativeModules.RNFetchBlob;n.default={openDocument:r,previewDocument:u,excludeFromBackupKey:c}},533);
__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var r=t(535),i=babelHelpers.interopRequireDefault(r),u=t(525),o=babelHelpers.interopRequireDefault(u),n=t(511),s=babelHelpers.interopRequireDefault(n),d=function(e){if(window.location="",window.XMLHttpRequest.isRNFBPolyfill||(window.XMLHttpRequest=o.default,console.warn("Use JSONStream will automatically replace window.XMLHttpRequest with RNFetchBlob.polyfill.XMLHttpRequest. You are seeing this warning because you did not replace it maually.")),"string"==typeof e)e=s.default.isFileURI(e)?{url:"JSONStream://"+e,headers:{noCache:!0}}:"JSONStream://"+e;else if("object"==typeof e){var t=e.headers||{};s.default.isFileURI(e.url)&&(t.noCache=!0),e=babelHelpers.extends(e,{url:"JSONStream://"+e.url,headers:t})}return(0,i.default)(e)};a.default=d},534);
__d(function(n,t,e,r){!function(n,t,i,u,o,f){function c(n,t){return function(){return n.call(this,t.apply(this,arguments))}}function a(n){return function(t){return t[n]}}function s(n,t){return t.apply(f,n)}function l(n){var t=n.length-1,e=i.prototype.slice;if(0==t)return function(){return n.call(this,e.call(arguments))};if(1==t)return function(){return n.call(this,arguments[0],e.call(arguments,1))};var r=i(n.length);return function(){for(var i=0;t>i;i++)r[i]=arguments[i];return r[t]=e.call(arguments,t),n.apply(this,r)}}function d(n){return function(t,e){return n(e,t)}}function h(n,t){return function(e){return n(e)&&t(e)}}function p(){}function v(){return!0}function m(n){return function(){return n}}function b(n,t){return t&&t.constructor===n}function g(n){return n!==f}function w(n,e){return e instanceof t&&O(function(n){return n in e},n)}function y(n,t){return[n,t]}function x(n){return j(n.reduce(d(y),V))}function I(n){return k(function(n,t){return n.unshift(t),n},[],n)}function L(n,t){return t?y(n(Y(t)),L(n,Z(t))):V}function k(n,t,e){return e?n(k(n,t,Z(e)),Y(e)):t}function C(n,t,e){function r(n,e){return n?t(Y(n))?(e(Y(n)),Z(n)):y(Y(n),r(Z(n),e)):V}return r(n,e||p)}function O(n,t){return!t||n(Y(t))&&O(n,Z(t))}function E(n,t){n&&(Y(n).apply(null,t),E(Z(n),t))}function j(n){function t(n,e){return n?t(Z(n),y(Y(n),e)):e}return t(n,V)}function M(n,t){return t&&(n(Y(t))?Y(t):M(n,Z(t)))}function R(n){"use strict";function t(){var n=0;U.length>v&&(e("Max buffer length exceeded: textNode"),n=Math.max(n,U.length)),$.length>v&&(e("Max buffer length exceeded: numberNode"),n=Math.max(n,$.length)),X=v-n+Q}function e(n){U&&(d(U),h(),U=""),c=u(n+"\nLn: "+Y+"\nCol: "+V+"\nChr: "+a),p(W(f,f,c))}function r(){return F==g?(d({}),h(),void(D=!0)):((F!==w||0!==P)&&e("Unexpected end"),U&&(d(U),h(),U=""),void(D=!0))}function i(n){return"\r"==n||"\n"==n||" "==n||"\t"==n}function o(n){if(!c){if(D)return e("Cannot write after close");var r=0;for(a=n[0];a&&(s=a,a=n[r++]);)switch(Q++,"\n"==a?(Y++,V=0):V++,F){case g:if("{"===a)F=y;else if("["===a)F=I;else if(!i(a))return e("Non-whitespace before {[.");continue;case C:case y:if(i(a))continue;if(F===C)G.push(O);else{if("}"===a){d({}),h(),F=G.pop()||w;continue}G.push(x)}if('"'!==a)return e('Malformed object key should start with " ');F=k;continue;case O:case x:if(i(a))continue;if(":"===a)F===x?(G.push(x),U&&(d({}),l(U),U=""),P++):U&&(l(U),U=""),F=w;else if("}"===a)U&&(d(U),h(),U=""),h(),P--,F=G.pop()||w;else{if(","!==a)return e("Bad object");F===x&&G.push(x),U&&(d(U),h(),U=""),F=C}continue;case I:case w:if(i(a))continue;if(F===I){if(d([]),P++,F=w,"]"===a){h(),P--,F=G.pop()||w;continue}G.push(L)}if('"'===a)F=k;else if("{"===a)F=y;else if("["===a)F=I;else if("t"===a)F=E;else if("f"===a)F=R;else if("n"===a)F=H;else if("-"===a)$+=a;else if("0"===a)$+=a,F=_;else{if(-1==="123456789".indexOf(a))return e("Bad value");$+=a,F=_}continue;case L:if(","===a)G.push(L),U&&(d(U),h(),U=""),F=w;else{if("]"!==a){if(i(a))continue;return e("Bad array")}U&&(d(U),h(),U=""),h(),P--,F=G.pop()||w}continue;case k:var u=r-1;n:for(;;){for(;K>0;)if(J+=a,a=n.charAt(r++),4===K?(U+=String.fromCharCode(parseInt(J,16)),K=0,u=r-1):K++,!a)break n;if('"'===a&&!z){F=G.pop()||w,(U+=n.substring(u,r-1))||(d(""),h());break}if(!("\\"!==a||z||(z=!0,U+=n.substring(u,r-1),a=n.charAt(r++))))break;if(z){if(z=!1,"n"===a?U+="\n":"r"===a?U+="\r":"t"===a?U+="\t":"f"===a?U+="\f":"b"===a?U+="\b":"u"===a?(K=1,J=""):U+=a,a=n.charAt(r++),u=r-1,a)continue;break}m.lastIndex=r;var o=m.exec(n);if(!o){r=n.length+1,U+=n.substring(u,r-1);break}if(r=o.index+1,!(a=n.charAt(o.index))){U+=n.substring(u,r-1);break}}continue;case E:if(!a)continue;if("r"!==a)return e("Invalid true started with t"+a);F=j;continue;case j:if(!a)continue;if("u"!==a)return e("Invalid true started with tr"+a);F=M;continue;case M:if(!a)continue;if("e"!==a)return e("Invalid true started with tru"+a);d(!0),h(),F=G.pop()||w;continue;case R:if(!a)continue;if("a"!==a)return e("Invalid false started with f"+a);F=T;continue;case T:if(!a)continue;if("l"!==a)return e("Invalid false started with fa"+a);F=A;continue;case A:if(!a)continue;if("s"!==a)return e("Invalid false started with fal"+a);F=q;continue;case q:if(!a)continue;if("e"!==a)return e("Invalid false started with fals"+a);d(!1),h(),F=G.pop()||w;continue;case H:if(!a)continue;if("u"!==a)return e("Invalid null started with n"+a);F=S;continue;case S:if(!a)continue;if("l"!==a)return e("Invalid null started with nu"+a);F=B;continue;case B:if(!a)continue;if("l"!==a)return e("Invalid null started with nul"+a);d(null),h(),F=G.pop()||w;continue;case N:if("."!==a)return e("Leading zero not followed by .");$+=a,F=_;continue;case _:if(-1!=="0123456789".indexOf(a))$+=a;else if("."===a){if(-1!==$.indexOf("."))return e("Invalid number has two dots");$+=a}else if("e"===a||"E"===a){if(-1!==$.indexOf("e")||-1!==$.indexOf("E"))return e("Invalid number has two exponential");$+=a}else if("+"===a||"-"===a){if("e"!==s&&"E"!==s)return e("Invalid symbol in number");$+=a}else $&&(d(parseFloat($)),h(),$=""),r--,F=G.pop()||w;continue;default:return e("Unknown state: "+F)}Q>=X&&t()}}var c,a,s,l=n(wn).emit,d=n(yn).emit,h=n(xn).emit,p=n(dn).emit,v=65536,m=/[\\"\n]/g,b=0,g=b++,w=b++,y=b++,x=b++,I=b++,L=b++,k=b++,C=b++,O=b++,E=b++,j=b++,M=b++,R=b++,T=b++,A=b++,q=b++,H=b++,S=b++,B=b++,N=b++,_=b,X=v,U="",$="",z=!1,D=!1,F=g,G=[],J=null,K=0,P=0,Q=0,V=0,Y=1;n(mn).on(o),n(bn).on(r)}function T(n,t){"use strict";var e,r={};for(var i in t)n(i).on(function(n){return function(t){e=n(e,t)}}(t[i]),r);n(sn).on(function(n){var t,r=Y(e),i=en(r),u=Z(e);u&&(t=rn(Y(u)),t[i]=n)}),n(ln).on(function(){var n,t=Y(e),r=en(t),i=Z(e);i&&(n=rn(Y(i)),delete n[r])}),n(gn).on(function(){for(var e in t)n(e).un(r)})}function A(n){var t={};return n&&n.split("\r\n").forEach(function(n){var e=n.indexOf(": ");t[n.substring(0,e)]=n.substring(e+2)}),t}function q(n,t){function e(n){return{"http:":80,"https:":443}[n]}function r(t){return t.port||e(t.protocol||n.protocol)}return!!(t.protocol&&t.protocol!=n.protocol||t.host&&t.host!=n.host||t.host&&r(t)!=r(n))}function H(n){var t=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/,e=t.exec(n)||[];return{protocol:e[1]||"",host:e[2]||"",port:e[3]||""}}function S(){return new XMLHttpRequest}function B(t,e,r,i,u,o,c){"use strict";function a(){var n=e.responseText,t=n.substr(d);t&&s(t),d=P(n)}var s=t(mn).emit,l=t(dn).emit,d=0,h=!0;t(gn).on(function(){e.onreadystatechange=null,e.abort()}),"onprogress"in e&&(e.onprogress=a),e.onreadystatechange=function(){function n(){try{h&&t(vn).emit(e.status,A(e.getAllResponseHeaders())),h=!1}catch(n){}}switch(e.readyState){case 2:case 3:return n();case 4:n();2==String(e.status)[0]?(a(),t(bn).emit()):l(W(e.status,e.responseText))}};try{e.open(r,i,!0);for(var p in o)e.setRequestHeader(p,o[p]);q(n.location,H(i))||e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.withCredentials=c,e.send(u)}catch(t){n.setTimeout(J(l,W(f,f,t)),0)}}function N(n,t){return{key:n,node:t}}function _(n){function t(n,t){var e=rn(Y(n));return b(i,e)?u(n,P(e),t):n}function e(n,e){if(!n)return a(e),u(n,un,e);var i=t(n,e),o=Z(i),f=en(Y(i));return r(o,f,e),y(N(f,e),o)}function r(n,t,e){rn(Y(n))[t]=e}function u(n,t,e){n&&r(n,t,e);var i=y(N(t,e),n);return f(i),i}function o(n){return c(n),Z(n)||s(rn(Y(n)))}var f=n(cn).emit,c=n(an).emit,a=n(pn).emit,s=n(hn).emit,l={};return l[yn]=e,l[xn]=o,l[wn]=u,l}function X(n,t,e){function r(n){return function(t){return t.id==n}}var i,u;return{on:function(e,r){var o={listener:e,id:r||e};return t&&t.emit(n,e,o.id),i=y(o,i),u=y(e,u),this},emit:function(){E(u,arguments)},un:function(t){var o;i=C(i,r(t),function(n){o=n}),o&&(u=C(u,function(n){return n==o.listener}),e&&e.emit(n,o.listener,o.id))},listeners:function(){return u},hasListener:function(n){return g(M(n?r(n):v,i))}}}function U(){function n(n){return e[n]=X(n,r,i)}function t(t){return e[t]||n(t)}var e={},r=n("newListener"),i=n("removeListener");return["emit","on","un"].forEach(function(n){t[n]=l(function(e,r){s(r,t(e)[n])})}),t}function W(n,t,e){try{var r=o.parse(t)}catch(n){}return{statusCode:n,body:t,jsonBody:r,thrown:e}}function $(n,t){function e(n,t,e){var r=j(e);n(t,I(Z(L(en,r))),I(L(rn,r)))}function r(t,r,i){var u=n(t).emit;r.on(function(n){var t=i(n);!1!==t&&e(u,rn(t),n)},t),n("removeListener").on(function(e){e==t&&(n(e).listeners()||r.un(t))})}var i={node:n(an),path:n(cn)};n("newListener").on(function(n){var e=/(node|path):(.*)/.exec(n);if(e){var u=i[e[1]];u.hasListener(n)||r(n,u,t(e[2]))}})}function z(n,t){function e(t,e){return n(t).on(i(e),e),h}function r(n,t,e){e=e||t;var r=i(t);return n.on(function(){var t=!1;h.forget=function(){t=!0},s(arguments,r),delete h.forget,t&&n.un(e)},e),h}function i(t){return function(){try{return t.apply(h,arguments)}catch(t){n(dn).emit(W(f,f,t))}}}function u(t,e){return n(t+":"+e)}function o(n){return function(){var t=n.apply(this,arguments);g(t)&&(t==G.drop?w():y(t))}}function c(n,t,e){var i;i="node"==n?o(e):e,r(u(n,t),i,e)}function a(n,t){for(var e in t)c(n,e,t[e])}function d(n,t,e){return Q(t)?c(n,t,e):a(n,t),h}var h,v=/^(node|path):./,b=n(hn),w=n(ln).emit,y=n(sn).emit,x=l(function(t,e){if(h[t])s(e,h[t]);else{var i=n(t),u=e[0];v.test(t)?r(i,u):i.on(u)}return h}),I=function(t,e,r){if("done"==t)b.un(e);else if("node"==t||"path"==t)n.un(t+":"+e,r);else{var i=e;n(t).un(i)}return h};return n(pn).on(function(n){h.root=m(n)}),n(vn).on(function(n,t){h.header=function(n){return n?t[n]:t}}),h={on:x,addListener:x,removeListener:I,emit:n.emit,node:J(d,"node"),path:J(d,"path"),done:J(r,b),start:J(e,vn),fail:n(dn).on,abort:n(gn).emit,header:p,root:p,source:t}}function D(n,t,e,r,i){var u=U();return t&&B(u,S(),n,t,e,r,i),R(u),T(u,_(u)),$(u,on),z(u,t)}function F(n,t,e,r,i,u,f){return i=i?o.parse(o.stringify(i)):{},r?Q(r)||(r=o.stringify(r),i["Content-Type"]=i["Content-Type"]||"application/json"):r=null,n(e||"GET",function(n,t){return!1===t&&(n+=-1==n.indexOf("?")?"?":"&",n+="_="+(new Date).getTime()),n}(t,f),r,i,u||!1)}function G(n){var t=nn("resume","pause","pipe"),e=J(w,t);return n?e(n)||Q(n)?F(D,n):F(D,n.url,n.method,n.body,n.headers,n.withCredentials,n.cached):D()}var J=l(function(n,t){var e=t.length;return l(function(r){for(var i=0;i<r.length;i++)t[e+i]=r[i];return t.length=e+r.length,n.apply(this,t)})}),K=(l(function(n){function t(n,t){return[s(n,t)]}var e=x(n);return l(function(n){return k(t,n,e)[0]})}),l(function(n){return l(function(t){for(var e,r=0;r<P(n);r++)if(e=s(t,n[r]))return e})})),P=a("length"),Q=J(b,String),V=null,Y=a(0),Z=a(1),nn=l(x),tn=function(){var n=function(n){return n.exec.bind(n)},t=l(function(t){return t.unshift(/^/),n(RegExp(t.map(a("source")).join("")))}),e=/(\$?)/,r=/([\w-_]+|\*)/,i=/()/,u=/\["([^"]+)"\]/,o=/\[(\d+|\*)\]/,f=/{([\w ]*?)}/,c=/(?:{([\w ]*?)})?/,s=t(e,r,c),d=t(e,u,c),h=t(e,o,c),p=t(e,i,f),v=t(/\.\./),m=t(/\./),b=t(e,/!/),g=t(/$/);return function(n){return n(K(s,d,h,p),v,m,b,g)}}(),en=a("key"),rn=a("node"),un={},on=tn(function(n,t,e,r,i){function o(n,t){var e=t[C];return h(e&&"*"!=e?function(n){return E(n)==e}:v,n)}function f(n,t){var e=t[O];return e?h(c(J(w,x(e.split(/\W+/))),j),n):n}function a(n,t){return!t[L]?n:h(n,Y)}function s(n){function t(n){return E(n)!=un}return n==v?v:h(t,c(n,Z))}function l(n){if(n==v)return v;var t=d(),e=n,r=s(function(n){return i(n)}),i=K(t,e,r);return i}function d(){return function(n){return E(n)==un}}function p(n){return function(t){var e=n(t);return!0===e?Y(t):e}}function m(n,t,e){return k(function(n,t){return t(n,e)},t,n)}function b(n,t,e,r,i){var u=n(e);if(u){var o=m(t,r,u);return i(e.substr(P(u[0])),o)}}function g(n,t){return J(b,n,t)}function y(n,t){return t}function I(n,t){return M(n,t,n?I:y)}var L=1,C=2,O=3,E=c(en,Y),j=c(rn,Y),M=K(g(n,nn(a,f,o,s)),g(t,nn(l)),g(e,nn()),g(r,nn(a,d)),g(i,nn(p)),function(n){throw u('"'+n+'" could not be tokenised')});return function(n){try{return I(n,v)}catch(t){throw u('Could not compile "'+n+'" because '+t.message)}}}),fn=1,cn=fn++,an=fn++,sn=fn++,ln=fn++,dn="fail",hn=fn++,pn=fn++,vn="start",mn="data",bn="end",gn=fn++,wn=fn++,yn=fn++,xn=fn++;G.drop=function(){return G.drop},"function"==typeof define&&define.amd?define("oboe",[],function(){return G}):"object"==typeof r?e.exports=G:n.oboe=G}(function(){try{return window}catch(n){return self}}(),Object,Array,Error,JSON)},535);
__d(function(e,t,n,o){!function(e,i){"object"==typeof o?n.exports=o=i(t(537)):"function"==typeof define&&define.amd?define(["./core"],i):i(e.CryptoJS)}(this,function(e){return function(){var t=e,n=t.lib,o=n.WordArray,i=n.Hasher,r=t.algo,s=[],a=r.SHA1=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,o=n[0],i=n[1],r=n[2],a=n[3],c=n[4],h=0;h<80;h++){if(h<16)s[h]=0|e[t+h];else{var f=s[h-3]^s[h-8]^s[h-14]^s[h-16];s[h]=f<<1|f>>>31}var _=(o<<5|o>>>27)+c+s[h];_+=h<20?1518500249+(i&r|~i&a):h<40?1859775393+(i^r^a):h<60?(i&r|i&a|r&a)-1894007588:(i^r^a)-899497514,c=a,a=r,r=i<<30|i>>>2,i=o,o=_}n[0]=n[0]+o|0,n[1]=n[1]+i|0,n[2]=n[2]+r|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;return t[o>>>5]|=128<<24-o%32,t[14+(o+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(o+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=i._createHelper(a),t.HmacSHA1=i._createHmacHelper(a)}(),e.SHA1})},536);
__d(function(t,n,i,r){!function(t,n){"object"==typeof r?i.exports=r=n():"function"==typeof define&&define.amd?define([],n):t.CryptoJS=n()}(this,function(){var t=t||function(t,n){var i=Object.create||function(){function t(){}return function(n){var i;return t.prototype=n,i=new t,t.prototype=null,i}}(),r={},e=r.lib={},o=e.Base=function(){return{extend:function(t){var n=i(this);return t&&n.mixIn(t),n.hasOwnProperty("init")&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),s=e.WordArray=o.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=void 0!=n?n:4*t.length},toString:function(t){return(t||c).stringify(this)},concat:function(t){var n=this.words,i=t.words,r=this.sigBytes,e=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<e;o++){var s=i[o>>>2]>>>24-o%4*8&255;n[r+o>>>2]|=s<<24-(r+o)%4*8}else for(var o=0;o<e;o+=4)n[r+o>>>2]=i[o>>>2];return this.sigBytes+=e,this},clamp:function(){var n=this.words,i=this.sigBytes;n[i>>>2]&=4294967295<<32-i%4*8,n.length=t.ceil(i/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(n){for(var i,r=[],e=0;e<n;e+=4){var o=function(n){var n=n,i=987654321,r=4294967295;return function(){i=36969*(65535&i)+(i>>16)&r,n=18e3*(65535&n)+(n>>16)&r;var e=(i<<16)+n&r;return e/=4294967296,(e+=.5)*(t.random()>.5?1:-1)}}(4294967296*(i||t.random()));i=987654071*o(),r.push(4294967296*o()|0)}return new s.init(r,n)}}),a=r.enc={},c=a.Hex={stringify:function(t){for(var n=t.words,i=t.sigBytes,r=[],e=0;e<i;e++){var o=n[e>>>2]>>>24-e%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var n=t.length,i=[],r=0;r<n;r+=2)i[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new s.init(i,n/2)}},u=a.Latin1={stringify:function(t){for(var n=t.words,i=t.sigBytes,r=[],e=0;e<i;e++){var o=n[e>>>2]>>>24-e%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var n=t.length,i=[],r=0;r<n;r++)i[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new s.init(i,n)}},f=a.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},h=e.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=f.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(n){var i=this._data,r=i.words,e=i.sigBytes,o=this.blockSize,a=4*o,c=e/a;c=n?t.ceil(c):t.max((0|c)-this._minBufferSize,0);var u=c*o,f=t.min(4*u,e);if(u){for(var h=0;h<u;h+=o)this._doProcessBlock(r,h);var p=r.splice(0,u);i.sigBytes-=f}return new s.init(p,f)},clone:function(){var t=o.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),p=(e.Hasher=h.extend({cfg:o.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){h.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(n,i){return new t.init(i).finalize(n)}},_createHmacHelper:function(t){return function(n,i){return new p.HMAC.init(t,i).finalize(n)}}}),r.algo={});return r}(Math);return t})},537);
__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0});var u=t(539);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return u[e]}})});var f=t(546);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return f[e]}})});var o=t(547);Object.defineProperty(n,"Platform",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(o).default}});var a=t(548);Object.defineProperty(n,"RouteRegistry",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(a).default}})},538);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(540);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})})},539);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(541);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})})},540);
__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0});var u=r(542);Object.defineProperty(n,"Container",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(u).default}});var a=r(544);Object.defineProperty(n,"Link",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(a).default}});var l=r(545);Object.defineProperty(n,"Text",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(l).default}})},541);
__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0});var o=t(34),i=babelHelpers.interopRequireDefault(o),s=t(64),a=t(538),p=t(543),b=babelHelpers.interopRequireDefault(p),u=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props,r=e.onClick,l=e.touchFeedback,o=void 0===l?r:l,p=e.visible,b=void 0===p||p,u=babelHelpers.objectWithoutProperties(e,["onClick","touchFeedback","visible"]);if(!b){if("android"===a.Platform.OS)return null;u.style=babelHelpers.extends({},u.style,{height:0,width:0})}var n=babelHelpers.get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_render",this).call(this,s.View,u);return b&&(r||o)&&(n=i.default.createElement(o?s.TouchableHighlight:s.TouchableWithoutFeedback,{onPress:r},n)),n}}]),t}(b.default);u.propTypes=b.default.propTypes,l.default=u},542);
__d(function(e,t,l,r){Object.defineProperty(r,"__esModule",{value:!0});var o=t(34),s=babelHelpers.interopRequireDefault(o),p=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"_render",value:function(e,t){var l=t||this.props,r=l.children,o=(l.touchFeedback,l.visible,babelHelpers.objectWithoutProperties(l,["children","touchFeedback","visible"]));return s.default.createElement(e,o,r)}}]),t}(o.Component);p.propTypes={children:s.default.PropTypes.node,onClick:s.default.PropTypes.func,style:s.default.PropTypes.object,touchFeedback:s.default.PropTypes.bool,visible:s.default.PropTypes.bool},r.default=p},543);
__d(function(e,n,t,r){Object.defineProperty(r,"__esModule",{value:!0});var s=n(34),l=babelHelpers.interopRequireDefault(s),o=n(64),i=n(545),p=babelHelpers.interopRequireDefault(i),u=function(e){function n(e){babelHelpers.classCallCheck(this,n);var t=babelHelpers.possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t._onPress=t._onPress.bind(t),t}return babelHelpers.inherits(n,e),babelHelpers.createClass(n,[{key:"render",value:function(){return l.default.createElement(p.default,{onPress:this._onPress,style:this.props.style},this.props.children)}},{key:"_onLinkingOpenURLRejected",value:function(e){var n=this.props.onLinkingOpenURLRejected;n&&n(e)}},{key:"_onPress",value:function(){var e=this;o.Linking.openURL(this.props.url).catch(function(n){return e._onLinkingOpenURLRejected(n)})}}]),n}(s.Component);u.propTypes={children:l.default.PropTypes.node,onLinkingOpenURLRejected:l.default.PropTypes.func,style:l.default.PropTypes.object,url:l.default.PropTypes.string},r.default=u},544);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(64);Object.defineProperty(r,"default",{enumerable:!0,get:function(){return u.Text}})},545);
__d(function(t,e,n,o){function r(t){return function(e){var n=t(e);return e&&e.stopPropagation&&(e.stopPropagation(),e.preventDefault&&e.preventDefault()),n}}Object.defineProperty(o,"__esModule",{value:!0}),o.stopEventPropagation=r},546);
__d(function(e,t,a,d){Object.defineProperty(d,"__esModule",{value:!0});var f=t(64);d.default=f.Platform},547);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=(t(34),function(){function e(){babelHelpers.classCallCheck(this,e),this._elements=[]}return babelHelpers.createClass(e,[{key:"areRoutesEqual",value:function(e,t){if(e===t)return!0;if(!e)return!t;if(!t)return!e;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(function(n){return e[n]===t[n]})}},{key:"getRoutes",value:function(){return this._elements.map(function(e){return babelHelpers.extends({},e)})}},{key:"getRouteByComponent",value:function(e){var t=this._elements.find(function(t){return t.component===e});return t?babelHelpers.extends({},t):null}},{key:"register",value:function(e){if(this._elements.includes(e))throw new Error("Route "+String(e.component)+" is registered already!");this._elements.push(e)}}]),e}());r.default=new u},548);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(550);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(554);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})})},549);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(551);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})})},550);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(552);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(553);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})})},551);
__d(function(e,d,n,o){Object.defineProperty(o,"__esModule",{value:!0});o.BoxModel={margin:10,padding:10}},552);
__d(function(e,t,r,a){Object.defineProperty(a,"__esModule",{value:!0});a.ColorPalette={appBackground:"#111111",black:"#111111",blue:"#17A0DB",buttonUnderlay:"#495258",darkGrey:"#555555",red:"#D00000",white:"white"}},553);
__d(function(e,r,t,o){function i(e){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t={},o=Object.keys(e),i=Array.isArray(o),a=0,o=i?o:o["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var f;if(i){if(a>=o.length)break;f=o[a++]}else{if(a=o.next(),a.done)break;f=a.value}var l=f;t[l]=n(babelHelpers.extends({},e[l],r[l]))}return t}function a(e){return"android"===f.Platform.OS&&(e.borderColor=l.ColorPalette.appBackground,e.borderWidth=1),e}function n(e){for(var r=d,t=Array.isArray(r),o=0,r=t?r:r["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var i;if(t){if(o>=r.length)break;i=r[o++]}else{if(o=r.next(),o.done)break;i=o.value}var a=i,n=e[a],f=typeof n;if("undefined"!==f&&"number"!==f){var l=Number(n);Number.isNaN(l)?delete e[a]:e[a]=l}}return e}Object.defineProperty(o,"__esModule",{value:!0}),o.createStyleSheet=i,o.fixAndroidViewClipping=a;var f=r(538),l=r(550),d=["height","width"]},554);
__d(function(e,a,s,t){s.exports=a(181).registerAsset({__packager_asset:!0,httpServerLocation:"/assets/images",width:200,height:200,scales:[1],hash:"5a63c90ea6d919e65784b239b54639ee",name:"avatar",type:"png"})},555);
__d(function(e,t,a,r){function o(e,t){return Boolean(void 0===e?t:e)}function i(e,t){var a=t.participantId,r=(0,T.getParticipantById)(e["features/base/participants"],a),o=void 0,i=void 0;return r&&(o=(0,T.getAvatarURL)(r),i=r.connectionStatus,o||r.local||(o="#"+r.id),o&&(0,u.prefetch)({uri:o})),{_audioOnly:e["features/base/conference"].audioOnly,_avatar:o,_connectionStatus:i||l.JitsiParticipantConnectionStatus.ACTIVE,_videoTrack:(0,f.getTrackByMediaTypeAndParticipant)(e["features/base/tracks"],c.MEDIA_TYPE.VIDEO,a)}}Object.defineProperty(r,"__esModule",{value:!0});var n=t(34),s=babelHelpers.interopRequireDefault(n),p=t(557),l=t(396),u=t(576),c=t(579),d=t(538),f=t(592),b=t(508),y=babelHelpers.interopRequireDefault(b),T=t(506),_=t(601),v=babelHelpers.interopRequireDefault(_),h=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props,t=e._avatar,a=e._connectionStatus,r=e._videoTrack,i=!this.props._audioOnly&&a===l.JitsiParticipantConnectionStatus.ACTIVE&&(0,c.shouldRenderVideoTrack)(r,!1),n=Boolean(!i&&t);return s.default.createElement(d.Container,{style:babelHelpers.extends({},v.default.participantView,this.props.style)},i&&o(this.props.showVideo,!0)&&s.default.createElement(c.VideoTrack,{videoTrack:r,waitForVideoStarted:!1,zOrder:this.props.zOrder}),n&&o(this.props.showAvatar,!0)&&s.default.createElement(y.default,{style:this.props.avatarStyle,uri:t}))}}]),t}(n.Component);h.propTypes={_audioOnly:s.default.PropTypes.bool,_avatar:s.default.PropTypes.string,_connectionStatus:s.default.PropTypes.string,_videoTrack:s.default.PropTypes.object,avatarStyle:s.default.PropTypes.object,participantId:s.default.PropTypes.string,showAvatar:s.default.PropTypes.bool,showVideo:s.default.PropTypes.bool,style:s.default.PropTypes.object,zOrder:s.default.PropTypes.number},r.default=(0,p.connect)(i)(h)},556);
__d(function(e,d,r,c){"use strict";function t(e){return e&&e.__esModule?e:{default:e}}c.__esModule=!0,c.connect=c.connectAdvanced=c.createProvider=c.Provider=void 0;var n=d(558),o=t(n),a=d(563),u=t(a),i=d(567),v=t(i);c.Provider=o.default,c.createProvider=n.createProvider,c.connectAdvanced=u.default,c.connect=v.default},557);
__d(function(e,t,r,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",r=arguments[1],n=r||t+"Subscription",o=function(e){function r(n,o){i(this,r);var s=u(this,e.call(this,n,o));return s[t]=n.store,s}return s(r,e),r.prototype.getChildContext=function(){var e;return e={},e[t]=this[t],e[n]=null,e},r.prototype.render=function(){return p.Children.only(this.props.children)},r}(p.Component);return o.propTypes={store:f.storeShape.isRequired,children:a.default.element.isRequired},o.childContextTypes=(e={},e[t]=f.storeShape.isRequired,e[n]=f.subscriptionShape,e),o}n.__esModule=!0,n.createProvider=c;var p=t(34),l=t(559),a=o(l),f=t(561),h=t(562);o(h);n.default=c()},558);
__d(function(n,o,t,_){t.exports=o(560)()},559);
__d(function(e,r,t,o){"use strict";var p=r(41),n=r(44),s=r(58);t.exports=function(){function e(e,r,t,o,p,c){c!==s&&n(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function r(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r};return t.checkPropTypes=p,t.PropTypes=t,t}},560);
__d(function(e,u,i,s){"use strict";s.__esModule=!0,s.storeShape=s.subscriptionShape=void 0;var t=u(559),d=function(e){return e&&e.__esModule?e:{default:e}}(t);s.subscriptionShape=d.default.shape({trySubscribe:d.default.func.isRequired,tryUnsubscribe:d.default.func.isRequired,notifyNestedSubs:d.default.func.isRequired,isSubscribed:d.default.func.isRequired}),s.storeShape=d.default.shape({subscribe:d.default.func.isRequired,dispatch:d.default.func.isRequired,getState:d.default.func.isRequired})},561);
__d(function(o,e,n,r){"use strict";function t(o){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(o);try{throw new Error(o)}catch(o){}}r.__esModule=!0,r.default=t},562);
__d(function(t,e,o,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){var o={};for(var n in t)e.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n]);return o}function u(){}function c(t,e){var o={run:function(n){try{var r=t(e.getState(),n);(r!==o.props||o.error)&&(o.shouldComponentUpdate=!0,o.props=r,o.error=null)}catch(t){o.shouldComponentUpdate=!0,o.error=t}}};return o}function d(t){var e,o,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.getDisplayName,d=void 0===r?function(t){return"ConnectAdvanced("+t+")"}:r,l=n.methodName,y=void 0===l?"connectAdvanced":l,v=n.renderCountProp,g=void 0===v?void 0:v,U=n.shouldHandleStateChanges,O=void 0===U||U,x=n.storeKey,P=void 0===x?"store":x,_=n.withRef,W=void 0!==_&&_,D=a(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),I=P+"Subscription",M=w++,j=(e={},e[P]=S.storeShape,e[I]=S.subscriptionShape,e),E=(o={},o[I]=S.subscriptionShape,o);return function(e){(0,b.default)("function"==typeof e,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(e));var o=e.displayName||e.name||"Component",n=d(o),r=h({},D,{getDisplayName:d,methodName:y,renderCountProp:g,shouldHandleStateChanges:O,storeKey:P,withRef:W,displayName:n,wrappedComponentName:o,WrappedComponent:e}),a=function(o){function a(t,e){s(this,a);var r=i(this,o.call(this,t,e));return r.version=M,r.state={},r.renderCount=0,r.store=t[P]||e[P],r.propsMode=Boolean(t[P]),r.setWrappedInstance=r.setWrappedInstance.bind(r),(0,b.default)(r.store,'Could not find "'+P+'" in either the context or props of "'+n+'". Either wrap the root component in a <Provider>, or explicitly pass "'+P+'" as a prop to "'+n+'".'),r.initSelector(),r.initSubscription(),r}return p(a,o),a.prototype.getChildContext=function(){var t,e=this.propsMode?null:this.subscription;return t={},t[I]=e||this.context[I],t},a.prototype.componentDidMount=function(){O&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.prototype.componentWillReceiveProps=function(t){this.selector.run(t)},a.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=u,this.store=null,this.selector.run=u,this.selector.shouldComponentUpdate=!1},a.prototype.getWrappedInstance=function(){return(0,b.default)(W,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+y+"() call."),this.wrappedInstance},a.prototype.setWrappedInstance=function(t){this.wrappedInstance=t},a.prototype.initSelector=function(){var e=t(this.store.dispatch,r);this.selector=c(e,this.store),this.selector.run(this.props)},a.prototype.initSubscription=function(){if(O){var t=(this.propsMode?this.props:this.context)[I];this.subscription=new C.default(this.store,t,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(N)):this.notifyNestedSubs()},a.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.prototype.addExtraProps=function(t){if(!(W||g||this.propsMode&&this.subscription))return t;var e=h({},t);return W&&(e.ref=this.setWrappedInstance),g&&(e[g]=this.renderCount++),this.propsMode&&this.subscription&&(e[I]=this.subscription),e},a.prototype.render=function(){var t=this.selector;if(t.shouldComponentUpdate=!1,t.error)throw t.error;return(0,m.createElement)(e,this.addExtraProps(t.props))},a}(m.Component);return a.WrappedComponent=e,a.displayName=n,a.childContextTypes=E,a.contextTypes=j,a.propTypes=j,(0,f.default)(a,e)}}n.__esModule=!0;var h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t};n.default=d;var l=e(564),f=r(l),y=e(565),b=r(y),m=e(34),v=e(566),C=r(v),S=e(561),w=0,N={}},563);
__d(function(t,e,r,o){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},p={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a=Object.defineProperty,c=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,y=Object.getOwnPropertyDescriptor,i=Object.getPrototypeOf,f=i&&i(Object);r.exports=function t(e,r,o){if("string"!=typeof r){if(f){var l=i(r);l&&l!==f&&t(e,l,o)}var O=c(r);s&&(O=O.concat(s(r)));for(var g=0;g<O.length;++g){var u=O[g];if(!(n[u]||p[u]||o&&o[u])){var b=y(r,u);try{a(e,u,b)}catch(t){}}}return e}return e}},564);
__d(function(e,n,r,i){"use strict";var o=function(e,n,r,i,o,t,a,f){if(!e){var s;if(void 0===n)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[r,i,o,t,a,f],u=0;s=new Error(n.replace(/%s/g,function(){return d[u++]})),s.name="Invariant Violation"}throw s.framesToPop=1,s}};r.exports=o},565);
__d(function(t,n,s,i){"use strict";function e(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function r(){var t=[],n=[];return{clear:function(){n=u,t=u},notify:function(){for(var s=t=n,i=0;i<s.length;i++)s[i]()},get:function(){return n},subscribe:function(s){var i=!0;return n===t&&(n=t.slice()),n.push(s),function(){i&&t!==u&&(i=!1,n===t&&(n=t.slice()),n.splice(n.indexOf(s),1))}}}}i.__esModule=!0;var u=null,o={notify:function(){}},c=function(){function t(n,s,i){e(this,t),this.store=n,this.parentSub=s,this.onStateChange=i,this.unsubscribe=null,this.listeners=o}return t.prototype.addNestedSub=function(t){return this.trySubscribe(),this.listeners.subscribe(t)},t.prototype.notifyNestedSubs=function(){this.listeners.notify()},t.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},t.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=r())},t.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=o)},t}();i.default=c},566);
__d(function(e,r,t,a){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function n(e,r){var t={};for(var a in e)r.indexOf(a)>=0||Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t}function u(e,r,t){for(var a=r.length-1;a>=0;a--){var o=r[a](e);if(o)return o}return function(r,a){throw new Error("Invalid value of type "+typeof e+" for "+t+" argument when connecting component "+a.wrappedComponentName+".")}}function i(e,r){return e===r}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.connectHOC,t=void 0===r?c.default:r,a=e.mapStateToPropsFactories,o=void 0===a?h.default:a,p=e.mapDispatchToPropsFactories,s=void 0===p?P.default:p,d=e.mergePropsFactories,v=void 0===d?E.default:d,g=e.selectorFactory,m=void 0===g?O.default:g;return function(e,r,a){var p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=p.pure,d=void 0===c||c,P=p.areStatesEqual,g=void 0===P?i:P,h=p.areOwnPropsEqual,E=void 0===h?f.default:h,q=p.areStatePropsEqual,O=void 0===q?f.default:q,S=p.areMergedPropsEqual,w=void 0===S?f.default:S,y=n(p,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),M=u(e,o,"mapStateToProps"),T=u(r,s,"mapDispatchToProps"),_=u(a,v,"mergeProps");return t(m,l({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:M,initMapDispatchToProps:T,initMergeProps:_,pure:d,areStatesEqual:g,areOwnPropsEqual:E,areStatePropsEqual:O,areMergedPropsEqual:w},y))}}a.__esModule=!0;var l=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e};a.createConnect=p;var s=r(563),c=o(s),d=r(568),f=o(d),v=r(569),P=o(v),g=r(572),h=o(g),m=r(573),E=o(m),q=r(574),O=o(q);a.default=p()},567);
__d(function(t,e,r,n){"use strict";function u(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!==t&&e!==e}function o(t,e){if(u(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(var o=0;o<r.length;o++)if(!f.call(e,r[o])||!u(t[r[o]],e[r[o]]))return!1;return!0}n.__esModule=!0,n.default=o;var f=Object.prototype.hasOwnProperty},568);
__d(function(o,n,t,p){"use strict";function r(o){return"function"==typeof o?(0,c.wrapMapToPropsFunc)(o,"mapDispatchToProps"):void 0}function s(o){return o?void 0:(0,c.wrapMapToPropsConstant)(function(o){return{dispatch:o}})}function i(o){return o&&"object"==typeof o?(0,c.wrapMapToPropsConstant)(function(n){return(0,a.bindActionCreators)(o,n)}):void 0}p.__esModule=!0,p.whenMapDispatchToPropsIsFunction=r,p.whenMapDispatchToPropsIsMissing=s,p.whenMapDispatchToPropsIsObject=i;var a=n(470),c=n(570);p.default=[r,s,i]},569);
__d(function(n,o,r,e){"use strict";function p(n){return function(o,r){function e(){return p}var p=n(o,r);return e.dependsOnOwnProps=!1,e}}function s(n){return null!==n.dependsOnOwnProps&&void 0!==n.dependsOnOwnProps?Boolean(n.dependsOnOwnProps):1!==n.length}function t(n,o){return function(o,r){var e=(r.displayName,function(n,o){return e.dependsOnOwnProps?e.mapToProps(n,o):e.mapToProps(n)});return e.dependsOnOwnProps=!0,e.mapToProps=function(o,r){e.mapToProps=n,e.dependsOnOwnProps=s(n);var p=e(o,r);return"function"==typeof p&&(e.mapToProps=p,e.dependsOnOwnProps=s(p),p=e(o,r)),p},e}}e.__esModule=!0,e.wrapMapToPropsConstant=p,e.getDependsOnOwnProps=s,e.wrapMapToPropsFunc=t;var u=o(571);!function(n){n&&n.__esModule}(u)},570);
__d(function(e,t,u,n){"use strict";function d(e){return e&&e.__esModule?e:{default:e}}function a(e,t,u){(0,i.default)(e)||(0,r.default)(u+"() in "+t+" must return a plain object. Instead received "+e+".")}n.__esModule=!0,n.default=a;var f=t(472),i=d(f),l=t(562),r=d(l)},571);
__d(function(n,o,t,r){"use strict";function a(n){return"function"==typeof n?(0,p.wrapMapToPropsFunc)(n,"mapStateToProps"):void 0}function e(n){return n?void 0:(0,p.wrapMapToPropsConstant)(function(){return{}})}r.__esModule=!0,r.whenMapStateToPropsIsFunction=a,r.whenMapStateToPropsIsMissing=e;var p=o(570);r.default=[a,e]},572);
__d(function(r,n,e,t){"use strict";function o(r,n,e){return c({},e,r,n)}function u(r){return function(n,e){var t=(e.displayName,e.pure),o=e.areMergedPropsEqual,u=!1,i=void 0;return function(n,e,a){var c=r(n,e,a);return u?t&&o(c,i)||(i=c):(u=!0,i=c),i}}}function i(r){return"function"==typeof r?u(r):void 0}function a(r){return r?void 0:function(){return o}}t.__esModule=!0;var c=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}return r};t.defaultMergeProps=o,t.wrapMergePropsFunc=u,t.whenMergePropsIsFunction=i,t.whenMergePropsIsOmitted=a;var f=n(571);!function(r){r&&r.__esModule}(f);t.default=[i,a]},573);
__d(function(r,n,t,e){"use strict";function o(r,n){var t={};for(var e in r)n.indexOf(e)>=0||Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e]);return t}function i(r,n,t,e){return function(o,i){return t(r(o,i),n(e,i),i)}}function u(r,n,t,e,o){function i(o,i){return l=o,v=i,O=r(l,v),M=n(e,v),S=t(O,M,v),P=!0,S}function u(){return O=r(l,v),n.dependsOnOwnProps&&(M=n(e,v)),S=t(O,M,v)}function a(){return r.dependsOnOwnProps&&(O=r(l,v)),n.dependsOnOwnProps&&(M=n(e,v)),S=t(O,M,v)}function p(){var n=r(l,v),e=!f(n,O);return O=n,e&&(S=t(O,M,v)),S}function s(r,n){var t=!d(n,v),e=!c(r,l);return l=r,v=n,t&&e?u():t?a():e?p():S}var c=o.areStatesEqual,d=o.areOwnPropsEqual,f=o.areStatePropsEqual,P=!1,l=void 0,v=void 0,O=void 0,M=void 0,S=void 0;return function(r,n){return P?s(r,n):i(r,n)}}function a(r,n){var t=n.initMapStateToProps,e=n.initMapDispatchToProps,a=n.initMergeProps,p=o(n,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),s=t(r,p),c=e(r,p),d=a(r,p);return(p.pure?u:i)(s,c,d,r,p)}e.__esModule=!0,e.impureFinalPropsSelectorFactory=i,e.pureFinalPropsSelectorFactory=u,e.default=a;var p=n(575);!function(r){r&&r.__esModule}(p)},574);
__d(function(e,o,r,t){"use strict";function n(e,o,r){if(!e)throw new Error("Unexpected value for "+o+" in "+r+".");"mapStateToProps"!==o&&"mapDispatchToProps"!==o||e.hasOwnProperty("dependsOnOwnProps")||(0,a.default)("The selector for "+o+" of "+r+" did not specify a value for dependsOnOwnProps.")}function p(e,o,r,t){n(e,"mapStateToProps",t),n(o,"mapDispatchToProps",t),n(r,"mergeProps",t)}t.__esModule=!0,t.default=p;var s=o(562),a=function(e){return e&&e.__esModule?e:{default:e}}(s)},575);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(577);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})}),t(578)},576);
__d(function(e,n,t,c){function o(){}function f(e){u.ImageCache.get().on(e,o,!0)}Object.defineProperty(c,"__esModule",{value:!0}),c.prefetch=f;var u=n(509)},577);
__d(function(e,t,a,r){var c=t(509),n=t(392),E=t(394),I=t(502),A=t(467);t(576);A.MiddlewareRegistry.register(function(e){e.getState;return function(e){return function(t){switch(t.type){case n.APP_WILL_MOUNT:case E.CONFERENCE_FAILED:case E.CONFERENCE_LEFT:c.ImageCache.get().clear();break;case I.PARTICIPANT_ID_CHANGED:case I.PARTICIPANT_JOINED:case I.PARTICIPANT_UPDATED:break}return e(t)}}})},578);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(580);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(581);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})});var c=t(583);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}})});var f=t(582);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return f[e]}})});var a=t(598);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return a[e]}})}),t(599),t(600)},579);
__d(function(e,t,u,n){function a(e){return{type:c.SET_AUDIO_AVAILABLE,available:e}}function i(e){return{type:c.SET_AUDIO_MUTED,muted:e}}function r(e){return{type:c.SET_CAMERA_FACING_MODE,cameraFacingMode:e}}function o(e){return{type:c.SET_VIDEO_AVAILABLE,available:e}}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.VIDEO_MUTISM_AUTHORITY.USER;return function(u,n){var a=n()["features/base/media"].video.muted,i=e?a|t:a&~t;return u({type:c.SET_VIDEO_MUTED,muted:i})}}function A(){return function(e,t){return e(i(!t()["features/base/media"].audio.muted))}}function _(){return{type:c.TOGGLE_CAMERA_FACING_MODE}}function E(){return function(e,t){return d(!t()["features/base/media"].video.muted)(e,t)}}Object.defineProperty(n,"__esModule",{value:!0}),n.setAudioAvailable=a,n.setAudioMuted=i,n.setCameraFacingMode=r,n.setVideoAvailable=o,n.setVideoMuted=d,n.toggleAudioMuted=A,n.toggleCameraFacingMode=_,n.toggleVideoMuted=E;var c=t(581),f=t(582)},580);
__d(function(E,_,A,D){Object.defineProperty(D,"__esModule",{value:!0});D.SET_AUDIO_MUTED=Symbol("SET_AUDIO_MUTED"),D.SET_AUDIO_AVAILABLE=Symbol("SET_AUDIO_AVAILABLE"),D.SET_CAMERA_FACING_MODE=Symbol("SET_CAMERA_FACING_MODE"),D.SET_VIDEO_AVAILABLE=Symbol("SET_VIDEO_AVAILABLE"),D.SET_VIDEO_MUTED=Symbol("SET_VIDEO_MUTED"),D.TOGGLE_CAMERA_FACING_MODE=Symbol("TOGGLE_CAMERA_FACING_MODE")},581);
__d(function(E,e,O,_){Object.defineProperty(_,"__esModule",{value:!0});_.CAMERA_FACING_MODE={ENVIRONMENT:"environment",USER:"user"},_.MEDIA_TYPE={AUDIO:"audio",VIDEO:"video"},_.VIDEO_MUTISM_AUTHORITY={AUDIO_ONLY:1,BACKGROUND:2,USER:4},_.VIDEO_TYPE={CAMERA:"camera",DESKTOP:"desktop"}},582);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(584);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})})},583);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(585);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})})},584);
__d(function(e,r,t,u){Object.defineProperty(u,"__esModule",{value:!0});var n=r(586);Object.defineProperty(u,"Audio",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(n).default}});var a=r(588);Object.defineProperty(u,"Video",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(a).default}});var i=r(590);Object.defineProperty(u,"VideoTrack",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(i).default}})},585);
__d(function(e,r,t,l){Object.defineProperty(l,"__esModule",{value:!0});var s=r(587),n=babelHelpers.interopRequireDefault(s),p=function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"render",value:function(){return null}}]),r}(n.default);p.propTypes=n.default.propTypes,l.default=p},586);
__d(function(e,t,r,s){Object.defineProperty(s,"__esModule",{value:!0});var l=t(34),n=babelHelpers.interopRequireDefault(l),a=function(e){function t(e){babelHelpers.classCallCheck(this,t);var r=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r._setRef=r._setRef.bind(r),r}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"pause",value:function(){this._ref&&"function"==typeof this._ref.pause&&this._ref.pause()}},{key:"play",value:function(){this._ref&&"function"==typeof this._ref.play&&this._ref.play()}},{key:"_render",value:function(e,t){var r=t||this.props,s=r.children,l=(r.ref,babelHelpers.objectWithoutProperties(r,["children","ref"]));return n.default.createElement(e,babelHelpers.extends({},l,{ref:this._setRef}),s)}},{key:"_setRef",value:function(e){this._ref=e}}]),t}(l.Component);a.propTypes={src:n.default.PropTypes.string,stream:n.default.PropTypes.object},s.default=a},587);
__d(function(e,r,t,o){Object.defineProperty(o,"__esModule",{value:!0});var l=r(34),p=babelHelpers.interopRequireDefault(l),s=r(431),n=r(589),a=babelHelpers.interopRequireDefault(n),i=function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"componentDidMount",value:function(){var e=this.props.onPlaying;e&&e()}},{key:"render",value:function(){var e=this.props.stream;if(e){var r=e.toURL(),t=a.default.video,o=t&&t.objectFit||"cover";return p.default.createElement(s.RTCView,{mirror:this.props.mirror,objectFit:o,streamURL:r,style:t,zOrder:this.props.zOrder})}return null}}]),r}(l.Component);i.propTypes={mirror:p.default.PropTypes.bool,onPlaying:p.default.PropTypes.func,stream:p.default.PropTypes.object,zOrder:p.default.PropTypes.number},o.default=i},588);
__d(function(e,t,d,l){Object.defineProperty(l,"__esModule",{value:!0});var a=t(64),f={flex:1};l.default=a.StyleSheet.create({video:f})},589);
__d(function(e,t,a,i){Object.defineProperty(i,"__esModule",{value:!0});var n=t(34),o=babelHelpers.interopRequireDefault(n),r=t(64),l=t(557),s=t(591),p=babelHelpers.interopRequireDefault(s),u=t(589),c=babelHelpers.interopRequireDefault(u),_=function(e){function t(e){babelHelpers.classCallCheck(this,t);var a=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a._animation=null,a.state=babelHelpers.extends({},a.state,{fade:new r.Animated.Value(1),flip:new r.Animated.Value(1)}),a}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return o.default.createElement(r.Animated.View,{style:[c.default.video,this._getAnimationStyles()]},babelHelpers.get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this))}},{key:"_animateSetVideoTrack",value:function(e,a){var i=this;this._animation&&(this._animation.stop(),this._animation=null,this.state.fade.setValue(1),this.state.flip.setValue(1));var n=e&&a&&e.local&&a.local?"flip":"fade";return this._animateVideoTrack(n,0).then(function(){return babelHelpers.get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setVideoTrack",i).call(i,a),i._animateVideoTrack(n,1)}).catch(function(){console.log("Animation was stopped")})}},{key:"_animateVideoTrack",value:function(e,t){var a=this;return new Promise(function(i,n){a._animation=r.Animated.timing(a.state[e],{toValue:t}),a._animation.start(function(e){a._animation=null,e.finished?i():n()})})}},{key:"_getAnimationStyles",value:function(){return{opacity:this.state.fade,transform:[{rotateY:this.state.flip.interpolate({inputRange:[0,1],outputRange:["90deg","0deg"]})}]}}},{key:"_setVideoTrack",value:function(e){var a=this.state.videoTrack,i=a?a.jitsiTrack:null,n=e;i===(n?n.jitsiTrack:null)?babelHelpers.get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setVideoTrack",this).call(this,n):this._animateSetVideoTrack(a,n)}}]),t}(p.default);_.propTypes=p.default.propTypes,i.default=(0,l.connect)()(_)},590);
__d(function(e,r,t,i){function o(e){return e||null}Object.defineProperty(i,"__esModule",{value:!0});var a=r(34),d=babelHelpers.interopRequireDefault(a),n=r(592),s=r(598),l=r(584),p=function(e){function r(e){babelHelpers.classCallCheck(this,r);var t=babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t.state={videoTrack:o(e.videoTrack)},t._onVideoPlaying=t._onVideoPlaying.bind(t),t}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"componentWillReceiveProps",value:function(e){var r=this.state.videoTrack,t=o(e.videoTrack);r!==t&&this._setVideoTrack(t)}},{key:"render",value:function(){var e=this.state.videoTrack,r=void 0;this.props.waitForVideoStarted?(0,s.shouldRenderVideoTrack)(e,!0)?r=!0:(0,s.shouldRenderVideoTrack)(e,!1)&&!e.videoStarted&&(r=!0):r=(0,s.shouldRenderVideoTrack)(e,!1);var t=r?e.jitsiTrack.getOriginalStream():null;return d.default.createElement(l.Video,{mirror:e&&e.mirror,onPlaying:this._onVideoPlaying,stream:t,zOrder:this.props.zOrder})}},{key:"_onVideoPlaying",value:function(){var e=this.props.videoTrack;this.props.triggerOnPlayingUpdate&&e&&!e.videoStarted&&this.props.dispatch((0,n.trackVideoStarted)(e.jitsiTrack))}},{key:"_setVideoTrack",value:function(e){this.setState({videoTrack:e})}}]),r}(a.Component);p.defaultProps={triggerOnPlayingUpdate:!0},p.propTypes={dispatch:d.default.PropTypes.func,triggerOnPlayingUpdate:d.default.PropTypes.bool,videoTrack:d.default.PropTypes.object,waitForVideoStarted:d.default.PropTypes.bool,zOrder:d.default.PropTypes.number},i.default=p},591);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(593);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(594);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})});var c=t(595);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}})}),t(596),t(597)},592);
__d(function(e,t,r,n){function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t,r){for(var n=e.devices||[p.MEDIA_TYPE.AUDIO,p.MEDIA_TYPE.VIDEO],i={dispatch:t,getState:r},c=n,a=Array.isArray(c),o=0,c=a?c:c["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var u;if(a){if(o>=c.length)break;u=c[o++]}else{if(o=c.next(),o.done)break;u=o.value}var s=u;(0,C.createLocalTracks)({cameraDeviceId:e.cameraDeviceId,devices:[s],facingMode:e.facingMode||p.CAMERA_FACING_MODE.USER,micDeviceId:e.micDeviceId},!1,i).then(function(e){return t(E(e))})}}}function c(){return function(e,t){return e(v(t()["features/base/tracks"].filter(function(e){return e.local}).map(function(e){return e.jitsiTrack})))}}function a(e,t,r){return function(n,i){return r||(r=i()["features/base/conference"].conference),r.replaceTrack(e,t).then(function(){return(e?n(v([e])):Promise.resolve()).then(function(){if(t){var e=t.isVideoTrack()?p.setVideoMuted:p.setAudioMuted;return n(e(t.isMuted()))}}).then(function(){if(t)return n(T([t]))})})}}function o(e){return function(t,r){e.on(D.JitsiTrackEvents.TRACK_MUTE_CHANGED,function(){return t(u(e))}),e.on(D.JitsiTrackEvents.TRACK_VIDEOTYPE_CHANGED,function(r){return t(d(e,r))});var n=e.isLocal(),i=void 0;if(n){var c=(0,_.getLocalParticipant)(r);c&&(i=c.id)}else i=e.getParticipantId();return t({type:m.TRACK_ADDED,track:{jitsiTrack:e,local:n,mediaType:e.getType(),mirror:l(e),muted:e.isMuted(),participantId:i,videoStarted:!1,videoType:e.videoType}})}}function u(e){return{type:m.TRACK_UPDATED,track:{jitsiTrack:e,muted:e.isMuted()}}}function s(e){return e.removeAllListeners(D.JitsiTrackEvents.TRACK_MUTE_CHANGED),e.removeAllListeners(D.JitsiTrackEvents.TRACK_VIDEOTYPE_CHANGED),{type:m.TRACK_REMOVED,track:{jitsiTrack:e}}}function f(e){return{type:m.TRACK_UPDATED,track:{jitsiTrack:e,videoStarted:!0}}}function d(e,t){return{type:m.TRACK_UPDATED,track:{jitsiTrack:e,videoType:t}}}function T(e){return function(t){return Promise.all(e.map(function(e){return t(o(e))}))}}function v(e){return function(t){return Promise.all(e.map(function(e){return e.dispose().catch(function(e){if(e.name!==D.JitsiTrackErrors.TRACK_IS_DISPOSED)throw e})})).then(Promise.all(e.map(function(e){return t(s(e))})))}}function A(e,t){return e.find(function(e){return e.isLocal()&&e.getType()===t})}function k(e,t){for(var r=[],n=[],i=[p.MEDIA_TYPE.AUDIO,p.MEDIA_TYPE.VIDEO],c=0;c<i.length;c++){var a=i[c],o=A(t,a);if(o){var u=A(e,a);r.push(o),u&&n.push(u)}}return{tracksToAdd:r,tracksToRemove:n}}function l(e){return e&&e.isLocal()&&e.isVideoTrack()&&e.getCameraFacingMode()===p.CAMERA_FACING_MODE.USER}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return function(t,r){var n=r()["features/base/tracks"].map(function(e){return e.jitsiTrack}),i=k(n,e),c=i.tracksToAdd,a=i.tracksToRemove;return t(v(a)).then(function(){return t(T(c))})}}Object.defineProperty(n,"__esModule",{value:!0}),n.createInitialLocalTracks=i,n.destroyLocalTracks=c,n.replaceLocalTrack=a,n.trackAdded=o,n.trackMutedChanged=u,n.trackRemoved=s,n.trackVideoStarted=f,n.trackVideoTypeChanged=d,n._disposeAndRemoveTracks=v;var D=t(396),p=t(579),_=t(502),m=t(594),C=t(595)},593);
__d(function(D,A,_,E){Object.defineProperty(E,"__esModule",{value:!0});E.TRACK_ADDED=Symbol("TRACK_ADDED"),E.TRACK_REMOVED=Symbol("TRACK_REMOVED"),E.TRACK_UPDATED=Symbol("TRACK_UPDATED")},594);
__d(function(e,t,n,r){function i(e,t,n){e||(e={});var r=e,i=r.cameraDeviceId,c=r.micDeviceId;"undefined"!=typeof APP&&(void 0!==i&&null!==i||(i=APP.settings.getCameraDeviceId()),void 0!==c&&null!==c||(c=APP.settings.getMicDeviceId()),n||(n=APP.store));var a=n.getState()["features/base/config"],o=a.firefox_fake_device,u=a.resolution;return T.default.createLocalTracks({cameraDeviceId:i,desktopSharingExtensionExternalInstallation:e.desktopSharingExtensionExternalInstallation,desktopSharingSources:e.desktopSharingSources,devices:e.devices.slice(0),firefox_fake_device:o,micDeviceId:c,resolution:u},t).then(function(e){return"undefined"!=typeof APP&&e.forEach(function(e){return e.on(k.JitsiTrackEvents.NO_DATA_FROM_SOURCE,APP.UI.showTrackNotWorkingDialog.bind(null,e))}),e}).catch(function(t){return v.error("Failed to create local tracks",e.devices,t),Promise.reject(t)})}function c(e){return a(e,g.MEDIA_TYPE.AUDIO)}function a(e,t){return e.find(function(e){return e.local&&e.mediaType===t})}function o(e){return a(e,g.MEDIA_TYPE.VIDEO)}function u(e,t,n){return e.find(function(e){return e.participantId===n&&e.mediaType===t})}function d(e,t){return e.find(function(e){return e.jitsiTrack===t})}function s(e,t){return e.filter(function(e){return e.mediaType===t})}function f(e,t){var n=a(e,t);return!n||n.muted}function l(e,t){if(t=Boolean(t),e.isMuted()===t)return Promise.resolve();var n=t?"mute":"unmute";return e[n]().catch(function(e){console.error("set track "+n+" failed",e)})}Object.defineProperty(r,"__esModule",{value:!0}),r.createLocalTracks=i,r.getLocalAudioTrack=c,r.getLocalTrack=a,r.getLocalVideoTrack=o,r.getTrackByMediaTypeAndParticipant=u,r.getTrackByJitsiTrack=d,r.getTracksByMediaType=s,r.isLocalTrackMuted=f,r.setTrackMuted=l;var k=t(396),T=babelHelpers.interopRequireDefault(k),g=t(579),v=t(426).getLogger(__filename)},595);
__d(function(e,a,t,r){function i(e,a){var t=e.getState;return(0,d.getLocalTrack)(t()["features/base/tracks"],a)}function c(e,a,t){var r=a.muted,c=i(e,t);c&&(0,d.setTrackMuted)(c.jitsiTrack,r)}var o=a(579),s=a(467),A=a(594),d=a(595);s.MiddlewareRegistry.register(function(e){return function(a){return function(t){switch(t.type){case o.SET_AUDIO_MUTED:c(e,t,o.MEDIA_TYPE.AUDIO);break;case o.SET_CAMERA_FACING_MODE:var r=i(e,o.MEDIA_TYPE.VIDEO),s=void 0;r&&(s=r.jitsiTrack)&&s.getCameraFacingMode()!==t.cameraFacingMode&&e.dispatch((0,o.toggleCameraFacingMode)());break;case o.SET_VIDEO_MUTED:c(e,t,o.MEDIA_TYPE.VIDEO);break;case o.TOGGLE_CAMERA_FACING_MODE:var d=i(e,o.MEDIA_TYPE.VIDEO),n=void 0;if(d&&(n=d.jitsiTrack)){n._switchCamera();var E=n.getCameraFacingMode()===o.CAMERA_FACING_MODE.USER;e.dispatch({type:A.TRACK_UPDATED,track:{jitsiTrack:n,mirror:E}})}break;case A.TRACK_ADDED:"undefined"==typeof APP||t.track.local||APP.UI.addRemoteStream(t.track.jitsiTrack);break;case A.TRACK_REMOVED:"undefined"==typeof APP||t.track.local||APP.UI.removeRemoteStream(t.track.jitsiTrack);break;case A.TRACK_UPDATED:if("undefined"!=typeof APP){var P=t.track.jitsiTrack,T=P.isMuted(),u=P.getParticipantId();P.isVideoTrack()?(P.isLocal()?APP.conference.setVideoMuteStatus(T):APP.UI.setVideoMuted(u,T),APP.UI.onPeerVideoTypeChanged(u,P.videoType)):P.isLocal()?APP.conference.setAudioMuteStatus(T):APP.UI.setAudioMuted(u,T)}}return a(t)}}})},596);
__d(function(e,r,t,a){function n(e,r){switch(r.type){case i.PARTICIPANT_ID_CHANGED:if(e.participantId===r.oldValue)return babelHelpers.extends({},e,{participantId:r.newValue});break;case s.TRACK_UPDATED:var t=r.track;if(e.jitsiTrack===t.jitsiTrack)for(var a in t)if(e[a]!==t[a])return babelHelpers.extends({},e,t)}return e}var i=r(502),c=r(467),s=r(594);c.ReducerRegistry.register("features/base/tracks",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments[1];switch(r.type){case i.PARTICIPANT_ID_CHANGED:case s.TRACK_UPDATED:return e.map(function(e){return n(e,r)});case s.TRACK_ADDED:return[].concat(babelHelpers.toConsumableArray(e),[r.track]);case s.TRACK_REMOVED:return e.filter(function(e){return e.jitsiTrack!==r.track.jitsiTrack});default:return e}})},597);
__d(function(e,t,d,r){function o(e,t){return e&&!e.muted&&(!t||e.videoStarted)}function u(e){var t=e.getState;return Boolean(t()["features/base/media"].video.muted&n.VIDEO_MUTISM_AUTHORITY.USER)}Object.defineProperty(r,"__esModule",{value:!0}),r.shouldRenderVideoTrack=o,r.isVideoMutedByUser=u;var n=t(582)},598);
__d(function(t,e,a,r){function i(t,e,a){var r=t.dispatch,i=t.getState,o=i(),n=void 0,d=void 0;if(a.room){var s=(0,u.parseURLParams)(o["features/base/connection"].locationURL);n=s["config.startWithAudioMuted"],d=s["config.startWithVideoMuted"]}var M=o["features/base/config"];return void 0===n&&(n=M.startWithAudioMuted),void 0===d&&(d=M.startWithVideoMuted),n=Boolean(n),d=Boolean(d),r((0,c.setAudioMuted)(n)),r((0,c.setCameraFacingMode)(f.CAMERA_FACING_MODE.USER)),r((0,c.setVideoMuted)(d)),e(a)}function o(t,e){var a=t.getState,r=a()["features/base/media"],i=Boolean(r[e.mediaType].muted);e.muted!==i&&(e.muted=i,(0,s.setTrackMuted)(e.jitsiTrack,i))}var n=e(394),u=e(458),d=e(467),s=e(592),c=e(580),f=e(582);d.MiddlewareRegistry.register(function(t){return function(e){return function(a){switch(a.type){case n.SET_ROOM:return i(t,e,a);case s.TRACK_ADDED:var r=e(a);return a.track.local&&o(t,a.track),r}return e(a)}}})},599);
__d(function(e,a,t,r){function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,a=arguments[1];switch(a.type){case A.SET_AUDIO_AVAILABLE:return babelHelpers.extends({},e,{available:a.available});case A.SET_AUDIO_MUTED:return babelHelpers.extends({},e,{muted:a.muted});default:return e}}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,a=arguments[1];switch(a.type){case A.SET_CAMERA_FACING_MODE:return babelHelpers.extends({},e,{facingMode:a.cameraFacingMode});case A.SET_VIDEO_AVAILABLE:return babelHelpers.extends({},e,{available:a.available});case A.SET_VIDEO_MUTED:return babelHelpers.extends({},e,{muted:a.muted});case A.TOGGLE_CAMERA_FACING_MODE:var t=e.facingMode;return t=t===s.CAMERA_FACING_MODE.USER?s.CAMERA_FACING_MODE.ENVIRONMENT:s.CAMERA_FACING_MODE.USER,babelHelpers.extends({},e,{facingMode:t});default:return e}}var n=a(470),d=a(467),A=a(581),s=a(582),i={available:!0,muted:!1},_={available:!0,facingMode:s.CAMERA_FACING_MODE.USER,muted:0};d.ReducerRegistry.register("features/base/media",(0,n.combineReducers)({audio:E,video:l}))},600);
__d(function(e,t,n,a){Object.defineProperty(a,"__esModule",{value:!0});var i=t(549);a.default=(0,i.createStyleSheet)({participantView:{alignItems:"stretch",flex:1,justifyContent:"center"}})},601);
__d(function(e,t,i,a){var n=t(603),d=babelHelpers.interopRequireDefault(n),o=t(394),r=t(467),P=t(503),c=t(504),u=t(505),A=t(506);r.MiddlewareRegistry.register(function(e){return function(t){return function(i){switch(i.type){case o.CONFERENCE_JOINED:e.dispatch((0,P.localParticipantIdChanged)(i.conference.myUserId()));break;case o.CONFERENCE_LEFT:e.dispatch((0,P.localParticipantIdChanged)(u.LOCAL_PARTICIPANT_DEFAULT_ID));break;case c.KICK_PARTICIPANT:"undefined"!=typeof APP&&APP.UI.emitEvent(d.default.USER_KICKED,i.id);break;case c.MUTE_REMOTE_PARTICIPANT:"undefined"!=typeof APP&&APP.UI.messageHandler.openTwoButtonDialog({titleKey:"dialog.muteParticipantTitle",msgString:'<div data-i18n="dialog.muteParticipantBody"></div>',leftButtonKey:"dialog.muteParticipantButton",dontShowAgain:{id:"dontShowMuteParticipantDialog",textKey:"dialog.doNotShowMessageAgain",checked:!0,buttonValues:[!0]},submitFunction:function(){APP.UI.emitEvent(d.default.REMOTE_AUDIO_MUTED,i.id)}});break;case c.PARTICIPANT_DISPLAY_NAME_CHANGED:if("undefined"!=typeof APP){var a=(0,A.getLocalParticipant)(e.getState());a&&a.id===i.id&&APP.UI.emitEvent(d.default.NICKNAME_CHANGED,i.name)}}return t(i)}}})},602);
__d(function(_,e,E,I){Object.defineProperty(I,"__esModule",{value:!0}),I.default={NICKNAME_CHANGED:"UI.nickname_changed",SELECTED_ENDPOINT:"UI.selected_endpoint",PINNED_ENDPOINT:"UI.pinned_endpoint",MESSAGE_CREATED:"UI.message_created",LANG_CHANGED:"UI.lang_changed",EMAIL_CHANGED:"UI.email_changed",START_MUTED_CHANGED:"UI.start_muted_changed",AUDIO_MUTED:"UI.audio_muted",VIDEO_MUTED:"UI.video_muted",VIDEO_UNMUTING_WHILE_AUDIO_ONLY:"UI.video_unmuting_while_audio_only",ETHERPAD_CLICKED:"UI.etherpad_clicked",SHARED_VIDEO_CLICKED:"UI.start_shared_video",UPDATE_SHARED_VIDEO:"UI.update_shared_video",USER_KICKED:"UI.user_kicked",REMOTE_AUDIO_MUTED:"UI.remote_audio_muted",TOGGLE_FULLSCREEN:"UI.toogle_fullscreen",FULLSCREEN_TOGGLED:"UI.fullscreen_toggled",AUTH_CLICKED:"UI.auth_clicked",TOGGLE_AUDIO_ONLY:"UI.toggle_audioonly",TOGGLE_CHAT:"UI.toggle_chat",TOGGLE_SETTINGS:"UI.toggle_settings",TOGGLE_CONTACT_LIST:"UI.toggle_contact_list",TOGGLE_PROFILE:"UI.toggle_profile",TOGGLE_FILMSTRIP:"UI.toggle_filmstrip",TOGGLED_FILMSTRIP:"UI.toggled_filmstrip",UPDATED_FILMSTRIP_DISPLAY:"UI.updated_filmstrip_display",TOGGLE_SCREENSHARING:"UI.toggle_screensharing",TOGGLED_SHARED_DOCUMENT:"UI.toggled_shared_document",CONTACT_CLICKED:"UI.contact_clicked",HANGUP:"UI.hangup",LOGOUT:"UI.logout",RECORDING_TOGGLED:"UI.recording_toggled",SUBJECT_CHANGED:"UI.subject_changed",VIDEO_DEVICE_CHANGED:"UI.video_device_changed",AUDIO_DEVICE_CHANGED:"UI.audio_device_changed",AUDIO_OUTPUT_DEVICE_CHANGED:"UI.audio_output_device_changed",FOLLOW_ME_ENABLED:"UI.follow_me_enabled",LOCAL_FLIPX_CHANGED:"UI.local_flipx_changed",RESOLUTION_CHANGED:"UI.resolution_changed",EXTERNAL_INSTALLATION_CANCELED:"UI.external_installation_canceled",SIDE_TOOLBAR_CONTAINER_TOGGLED:"UI.side_container_toggled",LOCAL_RAISE_HAND_CHANGED:"UI.local_raise_hand_changed",LARGE_VIDEO_AVATAR_VISIBLE:"UI.large_video_avatar_visible",LARGE_VIDEO_ID_CHANGED:"UI.large_video_id_changed",TOGGLE_ROOM_LOCK:"UI.toggle_room_lock",CONTACT_ADDED:"UI.contact_added",CONTACT_REMOVED:"UI.contact_removed",USER_AVATAR_CHANGED:"UI.user_avatar_changed",DISPLAY_NAME_CHANGED:"UI.display_name_changed",SHOW_CUSTOM_TOOLBAR_BUTTON_POPUP:"UI.show_custom_toolbar_button_popup"}},603);
__d(function(e,a,r,t){function n(e,a){switch(a.type){case I.DOMINANT_SPEAKER_CHANGED:return(0,i.set)(e,"dominantSpeaker",e.id===a.participant.id);case I.PARTICIPANT_ID_CHANGED:if(e.id===a.oldValue)return babelHelpers.extends({},e,{id:a.newValue});break;case I.PARTICIPANT_JOINED:var r=a.participant,t=r.avatarURL,n=r.connectionStatus,d=r.dominantSpeaker,o=r.email,P=r.isBot,T=r.local,l=r.pinned,p=r.role,N=r.avatarID,u=r.id,_=r.name;return!N&&T&&(N=(0,A.randomHexString)(32)),!u&&T&&(u=c.LOCAL_PARTICIPANT_DEFAULT_ID),_||(_=T?"me":"Fellow Jitster"),{avatarID:N,avatarURL:t,connectionStatus:n,dominantSpeaker:d||!1,email:o,id:u,isBot:P,local:T||!1,name:_,pinned:l||!1,role:p||c.PARTICIPANT_ROLE.NONE};case I.PARTICIPANT_UPDATED:var D=a.participant,C=D.local,R=D.id;if(!R&&C&&(R=c.LOCAL_PARTICIPANT_DEFAULT_ID),e.id===R){var E=babelHelpers.extends({},e);for(var f in D)D.hasOwnProperty(f)&&-1===s.indexOf(f)&&(E[f]=D[f]);return E}break;case I.PIN_PARTICIPANT:return(0,i.set)(e,"pinned",e.id===a.participant.id)}return e}var i=a(467),A=a(491),I=a(504),c=a(505),s=["dominantSpeaker","id","local","pinned"];i.ReducerRegistry.register("features/base/participants",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments[1];switch(a.type){case I.PARTICIPANT_JOINED:return[].concat(babelHelpers.toConsumableArray(e),[n(void 0,a)]);case I.PARTICIPANT_LEFT:return e.filter(function(e){return e.id!==a.participant.id});case I.DOMINANT_SPEAKER_CHANGED:case I.PARTICIPANT_ID_CHANGED:case I.PARTICIPANT_UPDATED:case I.PIN_PARTICIPANT:return e.map(function(e){return n(e,a)});default:return e}})},604);
__d(function(e,r,t,i){var n=r(467),a=r(455),s={};n.ReducerRegistry.register("features/base/lib-jitsi-meet",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,r=arguments[1];switch(r.type){case a.LIB_DID_DISPOSE:return s;case a.LIB_DID_INIT:return babelHelpers.extends({},e,{initError:void 0,initialized:!0});case a.LIB_INIT_ERROR:return babelHelpers.extends({},e,{initError:r.error,initialized:!1});case a.SET_WEBRTC_READY:return babelHelpers.extends({},e,{webRTCReady:r.webRTCReady});default:return e}})},605);
__d(function(E,_,S,N){Object.defineProperty(N,"__esModule",{value:!0});N.CONFERENCE_FAILED=Symbol("CONFERENCE_FAILED"),N.CONFERENCE_JOINED=Symbol("CONFERENCE_JOINED"),N.CONFERENCE_LEFT=Symbol("CONFERENCE_LEFT"),N.CONFERENCE_WILL_JOIN=Symbol("CONFERENCE_WILL_JOIN"),N.CONFERENCE_WILL_LEAVE=Symbol("CONFERENCE_WILL_LEAVE"),N.DATA_CHANNEL_OPENED=Symbol("DATA_CHANNEL_OPENED"),N.LOCK_STATE_CHANGED=Symbol("LOCK_STATE_CHANGED"),N.P2P_STATUS_CHANGED=Symbol("P2P_STATUS_CHANGED"),N.SET_AUDIO_ONLY=Symbol("SET_AUDIO_ONLY"),N.SET_LASTN=Symbol("SET_LASTN"),N.SET_PASSWORD=Symbol("SET_PASSWORD"),N.SET_PASSWORD_FAILED=Symbol("SET_PASSWORD_FAILED"),N.SET_RECEIVE_VIDEO_QUALITY=Symbol("SET_RECEIVE_VIDEO_QUALITY"),N.SET_ROOM=Symbol("SET_ROOM")},606);
__d(function(_,A,a,e){Object.defineProperty(e,"__esModule",{value:!0});e.AVATAR_ID_COMMAND="avatar-id",e.AVATAR_URL_COMMAND="avatar-url",e.EMAIL_COMMAND="email",e.JITSI_CONFERENCE_URL_KEY=Symbol("url"),e.VIDEO_QUALITY_LEVELS={HIGH:720,STANDARD:360,LOW:180}},607);
__d(function(r,e,o,a){function n(r,e){for(var o=r.getLocalTracks(),a=[],n=e,t=Array.isArray(n),c=0,n=t?n:n["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var i;if(t){if(c>=n.length)break;i=n[c++]}else{if(c=n.next(),c.done)break;i=c.value}var f=i;-1===o.indexOf(f)&&a.push(r.addTrack(f).catch(function(r){l("Failed to add local track to conference",r)}))}return Promise.all(a)}function t(r){if("Data channels support is disabled!"!==r.message)throw r}function c(r){return"string"==typeof r&&""!==r}function i(r,e){return Promise.all(e.map(function(e){return r.removeTrack(e).catch(function(r){r.name!==f.JitsiTrackErrors.TRACK_IS_DISPOSED&&l("Failed to remove local track from conference",r)})}))}function l(r,e){console.error(r,e)}Object.defineProperty(a,"__esModule",{value:!0}),a._addLocalTracksToConference=n,a._handleParticipantError=t,a.isRoomValid=c,a._removeLocalTracksFromConference=i;var f=e(396)},608);
__d(function(e,t,n,r){function a(e,t,n){var r=t(n);return"undefined"==typeof APP&&e.dispatch((0,D.createConference)()),r}function c(e,t,n){var r=e.dispatch,a=e.getState,c=t(n);return a()["features/base/conference"].audioOnly&&r((0,D.setAudioOnly)(!1)),c}function i(e,t,n){var r=t(n),a=e.getState()["features/base/conference"],c=a.audioOnly,i=a.conference;return c&&0!==i.getLastN()&&e.dispatch((0,D.setLastN)(0)),r}function o(e,t,n){var r=e.getState(),a=r["features/base/conference"].conference,c=r["features/base/participants"],i=n.participant.id,o=(0,T.getParticipantById)(c,i),u=void 0;if("undefined"!=typeof APP){var s=(0,T.getPinnedParticipant)(c),f=n.participant.id?"pinned":"unpinned",d=void 0;d=o&&o.local||!i&&s&&s.local?"local":"remote",A.default.analytics.sendEvent(f+"."+d,{value:a.getParticipantCount()})}if(o)u=!o.local&&!o.isBot;else{var l=(0,T.getLocalParticipant)(c);u=!l||!l.pinned}if(u)try{a.pinParticipant(i)}catch(e){(0,y._handleParticipantError)(e)}return t(n)}function u(e,t,n){var r=e.dispatch,a=e.getState,c=t(n),i=a()["features/base/conference"].audioOnly;return r((0,D.setLastN)(i?0:void 0)),r((0,O.setVideoMuted)(i,O.VIDEO_MUTISM_AUTHORITY.AUDIO_ONLY)),"undefined"!=typeof APP&&APP.UI.emitEvent(v.default.TOGGLE_AUDIO_ONLY,i),c}function s(e,t,n){var r=e.getState()["features/base/conference"].conference;if(r)try{r.setLastN(n.lastN)}catch(e){console.error("Failed to set lastN: "+e)}return t(n)}function f(e,t,n){var r=e.getState()["features/base/conference"],a=r.audioOnly;return r.conference.setReceiverVideoConstraint(n.receiveVideoQuality),a&&e.dispatch((0,D.toggleAudioOnly)()),t(n)}function d(e,t){var n=e.getState()["features/base/conference"],r=n.conference,a=void 0;if(r&&r!==n.leaving){var c=t.track.jitsiTrack;a=t.type===P.TRACK_ADDED?(0,y._addLocalTracksToConference)(r,[c]):(0,y._removeLocalTracksFromConference)(r,[c])}return a||Promise.resolve()}function l(e,t,n){var r=e.getState()["features/base/conference"];return r.conference.setReceiverVideoConstraint(r.receiveVideoQuality),t(n)}function E(e,t,n){var r=n.track;return r&&r.local?d(e,n).then(function(){return t(n)}):t(n)}var p=t(603),v=babelHelpers.interopRequireDefault(p),_=t(610),N=t(396),A=babelHelpers.interopRequireDefault(N),O=t(579),T=t(502),C=t(467),P=t(592),D=t(395),g=t(606),y=t(608);C.MiddlewareRegistry.register(function(e){return function(t){return function(n){switch(n.type){case _.CONNECTION_ESTABLISHED:return a(e,t,n);case g.CONFERENCE_FAILED:case g.CONFERENCE_LEFT:return c(e,t,n);case g.CONFERENCE_JOINED:return i(e,t,n);case g.DATA_CHANNEL_OPENED:return l(e,t,n);case T.PIN_PARTICIPANT:return o(e,t,n);case g.SET_AUDIO_ONLY:return u(e,t,n);case g.SET_LASTN:return s(e,t,n);case g.SET_RECEIVE_VIDEO_QUALITY:return f(e,t,n);case P.TRACK_ADDED:case P.TRACK_REMOVED:return E(e,t,n)}return t(n)}}})},609);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(611);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(612);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})});var c=t(613);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}})}),t(614)},610);
__d(function(n,e,t,o){function i(){return function(n,e){function t(e){L.removeEventListener(v.JitsiConnectionEvents.CONNECTION_DISCONNECTED,t),n(r(L,e))}function o(){E(),n(s(L))}function i(e){E(),console.error("CONNECTION FAILED:",e),n(a(L,e))}function E(){L.removeEventListener(v.JitsiConnectionEvents.CONNECTION_ESTABLISHED,o),L.removeEventListener(v.JitsiConnectionEvents.CONNECTION_FAILED,i)}var N=e(),C=u(N),f=N["features/jwt"],O=f.issuer,d=f.jwt,L=new I.default.JitsiConnection(C.appId,d&&O&&"anonymous"!==O?d:void 0,C);n(c(L)),L.addEventListener(v.JitsiConnectionEvents.CONNECTION_DISCONNECTED,t),L.addEventListener(v.JitsiConnectionEvents.CONNECTION_ESTABLISHED,o),L.addEventListener(v.JitsiConnectionEvents.CONNECTION_FAILED,i),L.connect()}}function r(n,e){return{type:L.CONNECTION_DISCONNECTED,connection:n,message:e}}function c(n){return{type:L.CONNECTION_WILL_CONNECT,connection:n}}function s(n){return{type:L.CONNECTION_ESTABLISHED,connection:n}}function a(n,e,t){return{type:L.CONNECTION_FAILED,connection:n,error:e,message:t}}function u(n){var e=n["features/base/connection"].options,t=f.default.merge({},e,n["features/base/config"]),o=t.bosh;if(o){var i=n["features/base/conference"].room;if(i&&(o+="?room="+i.toLowerCase()),o!==e.bosh&&!(0,d.parseStandardURIString)(o).protocol){var r=(0,d.parseStandardURIString)(e.bosh),c=r.protocol;c&&(o=c+o)}t.bosh=o}return t}function E(){return function(n,e){var t=e(),o=t["features/base/conference"],i=o.conference,r=o.joining,c=i||r,s=void 0;c?(n((0,O.conferenceWillLeave)(c)),s=c.leave()):s=Promise.resolve();var a=t["features/base/connection"],u=a.connecting,E=a.connection,N=E||u;return N&&(s=s.then(function(){return N.disconnect()})),s}}function N(n){return{type:L.SET_LOCATION_URL,locationURL:n}}Object.defineProperty(o,"__esModule",{value:!0}),o.connect=i,o.connectionEstablished=s,o.connectionFailed=a,o.disconnect=E,o.setLocationURL=N;var C=e(464),f=babelHelpers.interopRequireDefault(C),O=e(394),v=e(396),I=babelHelpers.interopRequireDefault(v),d=e(491),L=e(612)},611);
__d(function(N,C,O,E){Object.defineProperty(E,"__esModule",{value:!0});E.CONNECTION_DISCONNECTED=Symbol("CONNECTION_DISCONNECTED"),E.CONNECTION_ESTABLISHED=Symbol("CONNECTION_ESTABLISHED"),E.CONNECTION_FAILED=Symbol("CONNECTION_FAILED"),E.CONNECTION_WILL_CONNECT=Symbol("CONNECTION_WILL_CONNECT"),E.SET_LOCATION_URL=Symbol("SET_LOCATION_URL")},612);
__d(function(e,n,t,r){function h(e){var n="function"==typeof e?e():e,t=n instanceof URL?n:n["features/base/connection"].locationURL,r=void 0;return t&&(r=i(t).href),r}function i(e){var n=e,t=n.hash,r=n.search;if(t&&t.length>1||r&&r.length>1){e=new URL(e.href),e.hash="",e.search="";var h=e,i=h.href;i&&(i.endsWith("#")&&(i=i.substring(0,i.length-1)),i.endsWith("?")&&(i=i.substring(0,i.length-1)),e.href===i||(e=new URL(i)))}return e}Object.defineProperty(r,"__esModule",{value:!0}),r.getInviteURL=h,r.getURLWithoutParams=i},613);
__d(function(n,o,t,c){function e(n,o){var t=o.connection;return n.connection!==t?n:(0,N.assign)(n,{connecting:void 0,connection:void 0})}function i(n,o){var t=o.connection;return(0,N.assign)(n,{connecting:void 0,connection:t})}function r(n,o){var t=o.connection;return n.connection&&n.connection!==t?n:(0,N.assign)(n,{connecting:void 0,connection:void 0})}function a(n,o){var t=o.connection;return(0,N.set)(n,"connecting",t)}function s(n){var o=(0,v.parseURIString)(n.href),t=o.protocol,c=o.hostname;if(!t&&"beta.meet.jit.si"===c){var e=window.location;e&&(t=e.protocol),t||(t="http:")}return t||(t="https:"),{bosh:String(t)+"//"+c+(o.contextRoot||"/")+"http-bind",hosts:{domain:c,muc:"conference."+c}}}function u(n,o){var t=o.locationURL;return(0,N.assign)(n,{locationURL:t,options:t?s(t):void 0})}var N=o(467),v=o(491),g=o(612);N.ReducerRegistry.register("features/base/connection",function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments[1];switch(o.type){case g.CONNECTION_DISCONNECTED:return e(n,o);case g.CONNECTION_ESTABLISHED:return i(n,o);case g.CONNECTION_FAILED:return r(n,o);case g.CONNECTION_WILL_CONNECT:return a(n,o);case g.SET_LOCATION_URL:return u(n,o)}return n})},614);
__d(function(e,r,n,o){function i(e,r){var n=r.conference,o=r.error;if(e.conference&&e.conference!==n)return e;var i=L.JitsiConferenceErrors.PASSWORD_REQUIRED===o?n:void 0;return(0,R.assign)(e,{conference:void 0,joining:void 0,leaving:void 0,locked:i?_.LOCKED_REMOTELY:void 0,password:void 0,passwordRequired:i})}function c(e,r){var n=r.conference,o=n.room.locked?_.LOCKED_REMOTELY:void 0;return(0,R.assign)(e,{conference:n,joining:void 0,leaving:void 0,locked:o,passwordRequired:void 0,receiveVideoQuality:C.VIDEO_QUALITY_LEVELS.HIGH})}function s(e,r){var n=r.conference;return e.conference!==n?e:(0,R.assign)(e,{conference:void 0,joining:void 0,leaving:void 0,locked:void 0,password:void 0,passwordRequired:void 0})}function d(e,r){var n=r.conference;return(0,R.set)(e,"joining",n)}function a(e,r){var n=r.conference;return e.conference!==n?e:(0,R.assign)(e,{joining:void 0,leaving:n,passwordRequired:void 0})}function t(e,r){var n=r.conference,o=r.locked;return e.conference!==n?e:(0,R.assign)(e,{locked:o?e.locked||_.LOCKED_REMOTELY:void 0,password:o?e.password:void 0})}function u(e,r){return(0,R.set)(e,"p2p",r.p2p)}function E(e,r){return(0,R.set)(e,"audioOnly",r.audioOnly)}function v(e,r){var n=r.conference,o=r.method,i=r.password;switch(o){case n.join:if(e.passwordRequired===n)return(0,R.assign)(e,{locked:_.LOCKED_REMOTELY,password:i,passwordRequired:void 0});break;case n.lock:return(0,R.assign)(e,{locked:i?_.LOCKED_LOCALLY:void 0,password:i})}return e}function f(e,r){return(0,R.set)(e,"receiveVideoQuality",r.receiveVideoQuality)}function O(e,r){var n=r.room;return(0,g.isRoomValid)(n)||(n=void 0),(0,R.set)(e,"room",n)}var _=r(616),L=r(396),R=r(467),l=r(606),C=r(607),g=r(608);R.ReducerRegistry.register("features/base/conference",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments[1];switch(r.type){case l.CONFERENCE_FAILED:return i(e,r);case l.CONFERENCE_JOINED:return c(e,r);case l.CONFERENCE_LEFT:return s(e,r);case l.CONFERENCE_WILL_JOIN:return d(e,r);case l.CONFERENCE_WILL_LEAVE:return a(e,r);case l.LOCK_STATE_CHANGED:return t(e,r);case l.P2P_STATUS_CHANGED:return u(e,r);case l.SET_AUDIO_ONLY:return E(e,r);case l.SET_PASSWORD:return v(e,r);case l.SET_RECEIVE_VIDEO_QUALITY:return f(e,r);case l.SET_ROOM:return O(e,r)}return e})},615);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(617);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(666);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})});var c=t(669);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}})}),t(670)},616);
__d(function(e,o,n,r){function c(e){return function(o,n){if(void 0===e){var r=n();e=r["features/base/conference"].conference}e&&o((0,s.openDialog)(f.RoomLockPrompt,{conference:e}))}}function t(e,o){return function(n){var r=o?n((0,u.setPassword)(e,e.lock,o)):Promise.resolve(),c=function(){n((0,s.hideDialog)())};r.then(c,c)}}function i(e){return(0,s.openDialog)(f.PasswordRequiredPrompt,{conference:e})}Object.defineProperty(r,"__esModule",{value:!0}),r.beginRoomLockRequest=c,r.endRoomLockRequest=t,r._showPasswordDialog=i;var u=o(394),s=o(618),f=o(666)},617);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(619);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(620);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})});var c=t(621);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}})}),t(665)},618);
__d(function(e,n,o,t){function i(){return{type:c.HIDE_DIALOG}}function r(e,n){return{type:c.OPEN_DIALOG,component:e,componentProps:n}}function u(e,n){return function(o,t){o(t()["features/base/dialog"].component===e?i():r(e,n))}}Object.defineProperty(t,"__esModule",{value:!0}),t.hideDialog=i,t.openDialog=r,t.toggleDialog=u;var c=n(620)},619);
__d(function(_,e,O,D){Object.defineProperty(D,"__esModule",{value:!0});D.HIDE_DIALOG=Symbol("HIDE_DIALOG"),D.OPEN_DIALOG=Symbol("OPEN_DIALOG")},620);
__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0});var a=r(622);Object.defineProperty(n,"DialogContainer",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(a).default}});var l=r(623);Object.defineProperty(n,"Dialog",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(l).default}});var u=r(664);Object.defineProperty(n,"StatelessDialog",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(u).default}})},621);
__d(function(e,o,t,n){function r(e){return{_component:e["features/base/dialog"].component,_componentProps:e["features/base/dialog"].componentProps}}Object.defineProperty(n,"__esModule",{value:!0}),n.DialogContainer=void 0;var p=o(34),s=babelHelpers.interopRequireDefault(p),l=o(557),a=n.DialogContainer=function(e){function o(){return babelHelpers.classCallCheck(this,o),babelHelpers.possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return babelHelpers.inherits(o,e),babelHelpers.createClass(o,[{key:"render",value:function(){return this.props._component?s.default.createElement(this.props._component,this.props._componentProps):null}}]),o}(p.Component);a.propTypes={_component:s.default.PropTypes.func,_componentProps:s.default.PropTypes.object},n.default=(0,l.connect)(r)(a)},622);
__d(function(e,t,l,r){Object.defineProperty(r,"__esModule",{value:!0});var a=t(34),i=babelHelpers.interopRequireDefault(a),n=t(624),o=babelHelpers.interopRequireDefault(n),s=t(557),u=t(627),b=t(662),p=babelHelpers.interopRequireDefault(b),c=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props,t=e.cancelDisabled,l=e.cancelTitleKey,r=e.bodyKey,a=e.okDisabled,n=e.okTitleKey,s=e.t,u=e.titleKey;return i.default.createElement(o.default,{cancelText:t?void 0:s(l||"dialog.Cancel"),onCancel:this._onCancel,onSubmit:this._onSubmit,placeholder:s(r),submitText:a?void 0:s(n||"dialog.Ok"),title:s(u),visible:!0})}}]),t}(p.default);c.propTypes={bodyKey:i.default.PropTypes.string},r.default=(0,u.translate)((0,s.connect)()(c))},623);
__d(function(e,l,t,u){Object.defineProperty(u,"__esModule",{value:!0});var a=l(625),r=babelHelpers.interopRequireDefault(a);u.default=r.default},624);
__d(function(e,t,l,o){Object.defineProperty(o,"__esModule",{value:!0});var n=t(34),r=babelHelpers.interopRequireDefault(n),a=t(64),u=t(626),s=babelHelpers.interopRequireDefault(u),i=function(e){function t(){var e,l,o,n;babelHelpers.classCallCheck(this,t);for(var u=arguments.length,i=Array(u),p=0;p<u;p++)i[p]=arguments[p];return l=o=babelHelpers.possibleConstructorReturn(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),o.state={value:"",visible:!1},o._onChangeText=function(e){o.setState({value:e}),o.props.onChangeText(e)},o._onSubmitPress=function(){var e=o.state.value;o.props.onSubmit(e)},o._onCancelPress=function(){o.props.onCancel()},o.close=function(){o.setState({visible:!1})},o._renderDialog=function(){var e=o.props,t=e.title,l=e.placeholder,n=e.defaultValue,u=e.cancelText,i=e.submitText,p=e.borderColor,c=e.promptStyle,d=e.titleStyle,y=e.buttonStyle,b=e.buttonTextStyle,f=e.submitButtonStyle,T=e.submitButtonTextStyle,m=e.cancelButtonStyle,S=e.cancelButtonTextStyle,P=e.inputStyle;return r.default.createElement(a.View,{style:s.default.dialog,key:"prompt"},r.default.createElement(a.View,{style:s.default.dialogOverlay}),r.default.createElement(a.View,{style:[s.default.dialogContent,{borderColor:p},c]},r.default.createElement(a.View,{style:[s.default.dialogTitle,{borderColor:p}]},r.default.createElement(a.Text,{style:[s.default.dialogTitleText,d]},t)),r.default.createElement(a.View,{style:s.default.dialogBody},r.default.createElement(a.TextInput,babelHelpers.extends({style:[s.default.dialogInput,P],defaultValue:n,onChangeText:o._onChangeText,placeholder:l,autoFocus:!0,underlineColorAndroid:"white"},o.props.textInputProps))),r.default.createElement(a.View,{style:[s.default.dialogFooter,{borderColor:p}]},r.default.createElement(a.TouchableWithoutFeedback,{onPress:o._onCancelPress},r.default.createElement(a.View,{style:[s.default.dialogAction,y,m]},r.default.createElement(a.Text,{style:[s.default.dialogActionText,b,S]},u))),r.default.createElement(a.TouchableWithoutFeedback,{onPress:o._onSubmitPress},r.default.createElement(a.View,{style:[s.default.dialogAction,y,f]},r.default.createElement(a.Text,{style:[s.default.dialogActionText,b,T]},i))))))},n=l,babelHelpers.possibleConstructorReturn(o,n)}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"componentDidMount",value:function(){this.setState({value:this.props.defaultValue})}},{key:"componentWillReceiveProps",value:function(e){var t=e.visible,l=e.defaultValue;this.setState({visible:t,value:l})}},{key:"render",value:function(){var e=this;return r.default.createElement(a.Modal,{onRequestClose:function(){return e.close()},transparent:!0,visible:this.props.visible},this._renderDialog())}}]),t}(n.Component);i.propTypes={title:n.PropTypes.string.isRequired,visible:n.PropTypes.bool,defaultValue:n.PropTypes.string,placeholder:n.PropTypes.string,onCancel:n.PropTypes.func.isRequired,cancelText:n.PropTypes.string,onSubmit:n.PropTypes.func.isRequired,submitText:n.PropTypes.string,onChangeText:n.PropTypes.func.isRequired,borderColor:n.PropTypes.string,promptStyle:n.PropTypes.object,titleStyle:n.PropTypes.object,buttonStyle:n.PropTypes.object,buttonTextStyle:n.PropTypes.object,submitButtonStyle:n.PropTypes.object,submitButtonTextStyle:n.PropTypes.object,cancelButtonStyle:n.PropTypes.object,cancelButtonTextStyle:n.PropTypes.object,inputStyle:n.PropTypes.object,textInputProps:n.PropTypes.object},i.defaultProps={visible:!1,defaultValue:"",cancelText:"Cancel",submitText:"OK",borderColor:"#ccc",promptStyle:{},titleStyle:{},buttonStyle:{},buttonTextStyle:{},submitButtonStyle:{},submitButtonTextStyle:{},cancelButtonStyle:{},cancelButtonTextStyle:{},inputStyle:{},onChangeText:function(){}},o.default=i},625);
__d(function(o,e,t,i){Object.defineProperty(i,"__esModule",{value:!0});var d=e(64);i.default=d.StyleSheet.create({dialog:{flex:1,alignItems:"center"},dialogOverlay:{backgroundColor:"rgba(0, 0, 0, 0.8)",position:"absolute",top:0,bottom:0,left:0,right:0},dialogContent:{elevation:5,marginTop:150,width:300,backgroundColor:"white",borderRadius:5,borderWidth:1,overflow:"hidden"},dialogTitle:{borderBottomWidth:1,paddingVertical:10,paddingHorizontal:15},dialogTitleText:{fontSize:18,fontWeight:"600"},dialogBody:{paddingHorizontal:10},dialogInput:{height:50,fontSize:18},dialogFooter:{borderTopWidth:1,flexDirection:"row"},dialogAction:{flex:1,padding:15},dialogActionText:{fontSize:18,textAlign:"center",color:"#006dbf"}})},626);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.LANGUAGES=r.DEFAULT_LANGUAGE=r.i18next=void 0;var u=t(628);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var i=t(636);Object.defineProperty(r,"i18next",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(i).default}}),Object.defineProperty(r,"DEFAULT_LANGUAGE",{enumerable:!0,get:function(){return i.DEFAULT_LANGUAGE}}),Object.defineProperty(r,"LANGUAGES",{enumerable:!0,get:function(){return i.LANGUAGES}}),t(661)},627);
__d(function(e,t,n,a){function r(e){return(0,o.translate)(["main","languages"],{wait:!0})(e)}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.default.createElement("span",{dangerouslySetInnerHTML:{__html:e(t,n)}})}Object.defineProperty(a,"__esModule",{value:!0}),a.translate=r,a.translateToHTML=l;var u=t(34),i=babelHelpers.interopRequireDefault(u),o=t(629)},628);
__d(function(e,t,a,r){"use strict";function d(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"__esModule",{value:!0}),r.Trans=r.I18nextProvider=r.Interpolate=r.translate=r.loadNamespaces=void 0;var l=t(630),n=d(l),u=t(632),o=d(u),s=t(633),f=d(s),i=t(634),c=d(i),_=t(635),p=d(_);r.loadNamespaces=p.default,r.translate=n.default,r.Interpolate=o.default,r.I18nextProvider=c.default,r.Trans=f.default},629);
__d(function(n,e,t,i){"use strict";function o(n){return n&&n.__esModule?n:{default:n}}function a(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function r(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function u(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?n:e}function s(n,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}function c(n){return n.displayName||n.name||"Component"}function l(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=e.withRef,i=void 0!==t&&t,o=e.bindI18n,l=void 0===o?"languageChanged loaded":o,y=e.bindStore,g=void 0===y?"added removed":y,I=e.translateFuncName,w=void 0===I?"t":I,C=e.wait,S=void 0!==C&&C;return function(t){var o,y=function(o){function c(t,i){r(this,c);var o=u(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,t,i));return o.i18n=i.i18n||t.i18n||e.i18n,n=n||o.i18n.options.defaultNS,"string"==typeof n&&(n=[n]),!S&&o.i18n.options&&(o.i18n.options.wait||o.i18n.options.react&&o.i18n.options.react.wait)&&(S=!0),o.nsMode=e.nsMode||o.i18n.options&&o.i18n.options.react&&o.i18n.options.react.nsMode||"default",t.initialI18nStore&&(o.i18n.services.resourceStore.data=t.initialI18nStore,S=!1),t.initialLanguage&&o.i18n.changeLanguage(t.initialLanguage),o.i18n.options.isInitialSSR&&(S=!1),o.state={i18nLoadedAt:null,ready:!1},o.onI18nChanged=o.onI18nChanged.bind(o),o.getWrappedInstance=o.getWrappedInstance.bind(o),o}return s(c,o),f(c,[{key:"getChildContext",value:function(){var n;return n={},a(n,w,this[w]),a(n,"i18n",this.i18n),n}},{key:"componentWillMount",value:function(){this[w]=this.i18n.getFixedT(null,"fallback"===this.nsMode?n:n[0])}},{key:"componentDidMount",value:function(){var e=this,t=function(){l&&e.i18n&&e.i18n.on(l,e.onI18nChanged),g&&e.i18n.store&&e.i18n.store.on(g,e.onI18nChanged)};this.mounted=!0,this.i18n.loadNamespaces(n,function(){var n=function(){e.mounted&&!e.state.ready&&e.setState({ready:!0}),S&&e.mounted&&t()};if(e.i18n.isInitialized)n();else{var i=function t(){setTimeout(function(){e.i18n.off("initialized",t)},1e3),n()};e.i18n.on("initialized",i)}}),S||t()}},{key:"componentWillUnmount",value:function(){var n=this;if(this.mounted=!1,this.onI18nChanged){if(l){l.split(" ").forEach(function(e){return n.i18n.off(e,n.onI18nChanged)})}if(g){g.split(" ").forEach(function(e){return n.i18n.store&&n.i18n.store.off(e,n.onI18nChanged)})}}}},{key:"onI18nChanged",value:function(){this.mounted&&this.setState({i18nLoadedAt:new Date})}},{key:"getWrappedInstance",value:function(){return i||console.error("To access the wrapped instance, you need to specify { withRef: true } as the second argument of the translate() call."),this.refs.wrappedInstance}},{key:"render",value:function(){var n,e=this,o=this.state,r=o.i18nLoadedAt,u=o.ready,s=(n={i18nLoadedAt:r},a(n,w,this[w]),a(n,"i18n",this.i18n),n);return i&&(s.ref="wrappedInstance"),!u&&S?null:(this.i18n.options.isInitialSSR&&!m&&(m=!0,setTimeout(function(){delete e.i18n.options.isInitialSSR},100)),h.default.createElement(t,d({},this.props,s)))}}]),c}(p.Component);return y.WrappedComponent=t,y.contextTypes={i18n:v.default.object},y.childContextTypes=(o={},a(o,w,v.default.func.isRequired),a(o,"i18n",v.default.object),o),y.displayName="Translate("+c(t)+")",y.namespaces=n,(0,b.default)(y,t)}}Object.defineProperty(i,"__esModule",{value:!0});var d=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},f=function(){function n(n,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}return function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}}();i.default=l;var p=e(34),h=o(p),y=e(559),v=o(y),g=e(631),b=o(g),m=!1},630);
__d(function(t,e,r,o){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},p={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},s="function"==typeof Object.getOwnPropertySymbols;r.exports=function(t,e,r){if("string"!=typeof e){var o=Object.getOwnPropertyNames(e);s&&(o=o.concat(Object.getOwnPropertySymbols(e)));for(var y=0;y<o.length;++y)if(!(n[o[y]]||p[o[y]]||r&&r[o[y]]))try{t[o[y]]=e[o[y]]}catch(t){}}return t}},631);
__d(function(t,e,n,r){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(r,"__esModule",{value:!0});var p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},l=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=e(34),f=i(u),c=e(559),h=i(c),y=function(t){function e(t,n){o(this,e);var r=s(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.i18n=n.i18n,r.t=n.t,r}return a(e,t),l(e,[{key:"render",value:function(){var t=this,e=this.props.parent||"span",n=this.props.regexp||this.i18n.services.interpolator.regexp,r=this.props,i=r.className,o=r.style,s=this.props.useDangerouslySetInnerHTML||!1,a=this.props.dangerouslySetInnerHTMLPartElement||"span",l=p({},this.props.options,{interpolation:{prefix:"#$?",suffix:"?$#"}}),u=this.t(this.props.i18nKey,l);if(!u||"string"!=typeof u)return f.default.createElement("noscript",null);var c=[],h=function(e,n){if(e.indexOf(t.i18n.options.interpolation.formatSeparator)<0)return void 0===n[e]&&t.i18n.services.logger.warn("interpolator: missed to pass in variable "+e+" for interpolating "+u),n[e];var r=e.split(t.i18n.options.interpolation.formatSeparator),i=r.shift().trim(),o=r.join(t.i18n.options.interpolation.formatSeparator).trim();return void 0===n[i]&&t.i18n.services.logger.warn("interpolator: missed to pass in variable "+i+" for interpolating "+u),t.i18n.options.interpolation.format(n[i],o,t.i18n.language)};u.split(n).reduce(function(e,n,r){var i=void 0;if(r%2==0){if(0===n.length)return e;i=s?f.default.createElement(a,{dangerouslySetInnerHTML:{__html:n}}):n}else i=h(n,t.props);return e.push(i),e},c);var y={};if(this.i18n.options.react&&this.i18n.options.react.exposeNamespace){var d="string"==typeof this.t.ns?this.t.ns:this.t.ns[0];if(this.props.i18nKey&&this.i18n.options.nsSeparator&&this.props.i18nKey.indexOf(this.i18n.options.nsSeparator)>-1){d=this.props.i18nKey.split(this.i18n.options.nsSeparator)[0]}this.t.ns&&(y["data-i18next-options"]=JSON.stringify({ns:d}))}return i&&(y.className=i),o&&(y.style=o),f.default.createElement.apply(this,[e,y].concat(c))}}]),e}(u.Component);y.propTypes={className:h.default.string},y.defaultProps={className:""},y.contextTypes={i18n:h.default.object.isRequired,t:h.default.func.isRequired},r.default=y},632);
__d(function(t,e,n,r){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){return t&&(t.children||t.props&&t.props.children)}function p(t){return t&&t.children?t.children:t.props&&t.props.children}function f(t,e,n){return"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),e.forEach(function(e,n){var r=""+n;if("string"==typeof e)t=""+t+e;else if(a(e))t=t+"<"+r+">"+f("",p(e),n+1)+"</"+r+">";else if(b.default.isValidElement(e))t=t+"<"+r+"></"+r+">";else if("object"===(void 0===e?"undefined":d(e))){var o=y({},e),i=o.format;delete o.format;var s=Object.keys(o);i&&1===s.length?t=t+"<"+r+">{{"+s[0]+", "+i+"}}</"+r+">":1===s.length&&(t=t+"<"+r+">{{"+s[0]+"}}</"+r+">")}}),t}function l(t,e,n){function r(t,e){"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]);var o=e.split(g).reduce(function(t,e,n){return e&&t.push(e),t},[]);return o.reduce(function(e,i,s){var u=!isNaN(i),f=s>0&&!isNaN(o[s-1]);if(f){var l=t[parseInt(o[s-1],10)]||{};b.default.isValidElement(l)&&!a(l)&&(f=!1)}if(f)return e;if(u){var c=t[parseInt(i,10)]||{},h=b.default.isValidElement(c);if("string"==typeof c)e.push(c);else if(a(c)){var v=r(p(c),o[s+1]);e.push(b.default.cloneElement(c,y({},c.props,{key:s}),v))}else if("object"!==(void 0===c?"undefined":d(c))||h)e.push(c);else{var m=n.services.interpolator.interpolate(o[s+1],c,n.language);e.push(m)}}return u||f||e.push(i),e},[])}return r(t,e)}Object.defineProperty(r,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),y=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},d="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof t},h=e(34),b=o(h),v=e(559),m=o(v),g=new RegExp("(?:<([^>]*)>(.*?)<\\/\\1>)","gi"),j=function(t){function e(t,n){i(this,e);var r=s(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.i18n=n.i18n,r.t=n.t,r}return u(e,t),c(e,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var t=this.props,e=t.children,n=t.count,r=t.parent,o=f("",e,0),i=this.props.i18nKey||o,s=this.t(i,{interpolation:{prefix:"#$?",suffix:"?$#"},defaultValue:o,count:n}),u={};if(this.i18n.options.react&&this.i18n.options.react.exposeNamespace){var a="string"==typeof this.t.ns?this.t.ns:this.t.ns[0];if(this.props.i18nKey&&this.i18n.options.nsSeparator&&this.props.i18nKey.indexOf(this.i18n.options.nsSeparator)>-1){a=this.props.i18nKey.split(this.i18n.options.nsSeparator)[0]}this.t.ns&&(u["data-i18next-options"]=JSON.stringify({ns:a}))}return b.default.createElement(r,u,l(e,s,this.i18n))}}]),e}(b.default.Component);r.default=j,j.propTypes={count:m.default.number,parent:m.default.string,i18nKey:m.default.string},j.defaultProps={parent:"div"},j.contextTypes={i18n:m.default.object.isRequired,t:m.default.func.isRequired}},633);
__d(function(e,t,n,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(r,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=t(34),l=t(559),f=function(e){return e&&e.__esModule?e:{default:e}}(l),s=function(e){function t(e,n){i(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.i18n=e.i18n,e.initialI18nStore&&(r.i18n.services.resourceStore.data=e.initialI18nStore,r.i18n.options.isInitialSSR=!0),e.initialLanguage&&r.i18n.changeLanguage(e.initialLanguage),r}return u(t,e),a(t,[{key:"getChildContext",value:function(){return{i18n:this.i18n}}},{key:"componentWillReceiveProps",value:function(e){if(this.props.i18n!==e.i18n)throw new Error("[react-i18next][I18nextProvider]does not support changing the i18n object.")}},{key:"render",value:function(){var e=this.props.children;return c.Children.only(e)}}]),t}(c.Component);s.propTypes={i18n:f.default.object.isRequired,children:f.default.element.isRequired},s.childContextTypes={i18n:f.default.object.isRequired},r.default=s},634);
__d(function(t,o,r,n){"use strict";function e(t,o){for(var r=0,n=t.length;r<n;r++)if("object"===a(t[r])){var e=!0,i=!1,f=void 0;try{for(var y,c=Object.entries(t[r])["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(e=(y=c.next()).done);e=!0){var l=u(y.value,2),p=l[0],m=l[1];o(m,r,p)}}catch(t){i=!0,f=t}finally{try{!e&&c.return&&c.return()}finally{if(i)throw f}}}else o(t[r],r)}function i(t){var o=[];return e(t,function(t){t&&t.namespaces&&t.namespaces.forEach(function(t){-1===o.indexOf(t)&&o.push(t)})}),o}function f(t){var o=t.components,r=t.i18n,n=i(o);return new Promise(function(t){r.loadNamespaces(n,t)})}Object.defineProperty(n,"__esModule",{value:!0});var u=function(){function t(t,o){var r=[],n=!0,e=!1,i=void 0;try{for(var f,u=t["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(n=(f=u.next()).done)&&(r.push(f.value),!o||r.length!==o);n=!0);}catch(t){e=!0,i=t}finally{try{!n&&u.return&&u.return()}finally{if(e)throw i}}return r}return function(o,r){if(Array.isArray(o))return o;if(("function"==typeof Symbol?Symbol.iterator:"@@iterator")in Object(o))return t(o,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof t};n.default=f},635);
__d(function(e,a,l,t){Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_LANGUAGE=t.LANGUAGES=void 0;var u=a(637),i=babelHelpers.interopRequireDefault(u),n=a(653),s=babelHelpers.interopRequireDefault(n),f=a(657),r=babelHelpers.interopRequireDefault(f),p=a(658),d=babelHelpers.interopRequireDefault(p),o=a(659),c=babelHelpers.interopRequireDefault(o),b=t.LANGUAGES=Object.keys(r.default),A=t.DEFAULT_LANGUAGE=b[0],_={app:"undefined"!=typeof interfaceConfig&&interfaceConfig.APP_NAME||"Jitsi Meet",compatibilityAPI:"v1",compatibilityJSON:"v1",fallbackLng:A,fallbackOnEmpty:!0,fallbackOnNull:!0,lngWhitelist:b.slice(),load:"unspecific",ns:{defaultNs:"main",namespaces:["main","languages"]},resGetPath:"lang/__ns__-__lng__.json",useDataAttrOptions:!0};i.default.use(s.default).use(c.default).use({name:"resolveAppName",process:function(e,a){return i.default.t(a,{app:_.app})},type:"postProcessor"}).init(_),i.default.addResourceBundle(A,"main",d.default,!0,!0),i.default.addResourceBundle(A,"languages",r.default,!0,!0),t.default=i.default},636);
__d(function(t,d,e,f){e.exports=d(638).default},637);
__d(function(e,a,d,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.use=t.t=t.setDefaultNamespace=t.on=t.off=t.loadResources=t.loadNamespaces=t.loadLanguages=t.init=t.getFixedT=t.exists=t.dir=t.createInstance=t.cloneInstance=t.changeLanguage=void 0;var u=a(639),l=function(e){return e&&e.__esModule?e:{default:e}}(u);t.default=l.default;t.changeLanguage=l.default.changeLanguage.bind(l.default),t.cloneInstance=l.default.cloneInstance.bind(l.default),t.createInstance=l.default.createInstance.bind(l.default),t.dir=l.default.dir.bind(l.default),t.exists=l.default.exists.bind(l.default),t.getFixedT=l.default.getFixedT.bind(l.default),t.init=l.default.init.bind(l.default),t.loadLanguages=l.default.loadLanguages.bind(l.default),t.loadNamespaces=l.default.loadNamespaces.bind(l.default),t.loadResources=l.default.loadResources.bind(l.default),t.off=l.default.off.bind(l.default),t.on=l.default.on.bind(l.default),t.setDefaultNamespace=l.default.setDefaultNamespace.bind(l.default),t.t=l.default.t.bind(l.default),t.use=l.default.use.bind(l.default)},638);
__d(function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function s(t,e){for(var n=Object.getOwnPropertyNames(e),o=0;o<n.length;o++){var i=n[o],s=Object.getOwnPropertyDescriptor(e,i);s&&s.configurable&&void 0===t[i]&&Object.defineProperty(t,i,s)}return t}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):s(t,e))}function l(){}Object.defineProperty(o,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},p=e(640),h=i(p),f=e(641),g=i(f),d=e(642),y=i(d),v=e(644),m=i(v),b=e(647),O=i(b),w=e(648),C=i(w),P=e(649),x=i(P),D=e(650),R=i(D),j=e(651),S=i(j),k=e(652),E=e(645),I=i(E),A=e(646),L=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(A),N=function(t){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments[1];r(this,e);var i=a(this,t.call(this));if(i.options=(0,k.transformOptions)(n),i.services={},i.logger=h.default,i.modules={external:[]},o&&!i.isInitialized&&!n.isClone){var s;if(!i.options.initImmediate)return s=i.init(n,o),a(i,s);setTimeout(function(){i.init(n,o)},0)}return i}return c(e,t),e.prototype.init=function(t,e){function n(t){return t?"function"==typeof t?new t:t:null}var o=this;if("function"==typeof t&&(e=t,t={}),t||(t={}),"v1"===t.compatibilityAPI?this.options=u({},(0,k.get)(),(0,k.transformOptions)(L.convertAPIOptions(t)),{}):"v1"===t.compatibilityJSON?this.options=u({},(0,k.get)(),(0,k.transformOptions)(L.convertJSONOptions(t)),{}):this.options=u({},(0,k.get)(),this.options,(0,k.transformOptions)(t)),this.format=this.options.interpolation.format,e||(e=l),!this.options.isClone){this.modules.logger?h.default.init(n(this.modules.logger),this.options):h.default.init(null,this.options);var i=new O.default(this.options);this.store=new y.default(this.options.resources,this.options);var s=this.services;s.logger=h.default,s.resourceStore=this.store,s.resourceStore.on("added removed",function(t,e){s.cacheConnector.save()}),s.languageUtils=i,s.pluralResolver=new C.default(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new x.default(this.options),s.backendConnector=new R.default(n(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];o.emit.apply(o,[t].concat(n))}),s.backendConnector.on("loaded",function(t){s.cacheConnector.save()}),s.cacheConnector=new S.default(n(this.modules.cache),s.resourceStore,s,this.options),s.cacheConnector.on("*",function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];o.emit.apply(o,[t].concat(n))}),this.modules.languageDetector&&(s.languageDetector=n(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.translator=new m.default(this.services,this.options),this.translator.on("*",function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];o.emit.apply(o,[t].concat(n))}),this.modules.external.forEach(function(t){t.init&&t.init(o)})}["getResource","addResource","addResources","addResourceBundle","removeResourceBundle","hasResourceBundle","getResourceBundle"].forEach(function(t){o[t]=function(){var e;return(e=o.store)[t].apply(e,arguments)}}),"v1"===this.options.compatibilityAPI&&L.appendBackwardsAPI(this);var r=function(){o.changeLanguage(o.options.lng,function(t,n){o.isInitialized=!0,o.logger.log("initialized",o.options),o.emit("initialized",o.options),e(t,n)})};return this.options.resources||!this.options.initImmediate?r():setTimeout(r,0),this},e.prototype.loadResources=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;if(this.options.resources)e(null);else{if(this.language&&"cimode"===this.language.toLowerCase())return e();var n=[],o=function(e){if(e){t.services.languageUtils.toResolveHierarchy(e).forEach(function(t){n.indexOf(t)<0&&n.push(t)})}};if(this.language)o(this.language);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(t){return o(t)})}this.options.preload&&this.options.preload.forEach(function(t){return o(t)}),this.services.cacheConnector.load(n,this.options.ns,function(){t.services.backendConnector.load(n,t.options.ns,e)})}},e.prototype.reloadResources=function(t,e){t||(t=this.languages),e||(e=this.options.ns),this.services.backendConnector.reload(t,e)},e.prototype.use=function(t){return"backend"===t.type&&(this.modules.backend=t),"cache"===t.type&&(this.modules.cache=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"postProcessor"===t.type&&I.default.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this},e.prototype.changeLanguage=function(t,e){var n=this,o=function(t,o){o&&(n.emit("languageChanged",o),n.logger.log("languageChanged",o)),e&&e(t,function(){return n.t.apply(n,arguments)})},i=function(t){t&&(n.language=t,n.languages=n.services.languageUtils.toResolveHierarchy(t),n.translator.changeLanguage(t),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(t)),n.loadResources(function(e){o(e,t)})};t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(t):i(this.services.languageDetector.detect())},e.prototype.getFixedT=function(t,e){var n=this,o=function t(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=u({},o);return i.lng=i.lng||t.lng,i.lngs=i.lngs||t.lngs,i.ns=i.ns||t.ns,n.t(e,i)};return"string"==typeof t?o.lng=t:o.lngs=t,o.ns=e,o},e.prototype.t=function(){var t;return this.translator&&(t=this.translator).translate.apply(t,arguments)},e.prototype.exists=function(){var t;return this.translator&&(t=this.translator).exists.apply(t,arguments)},e.prototype.setDefaultNamespace=function(t){this.options.defaultNS=t},e.prototype.loadNamespaces=function(t,e){var n=this;if(!this.options.ns)return e&&e();"string"==typeof t&&(t=[t]),t.forEach(function(t){n.options.ns.indexOf(t)<0&&n.options.ns.push(t)}),this.loadResources(e)},e.prototype.loadLanguages=function(t,e){"string"==typeof t&&(t=[t]);var n=this.options.preload||[],o=t.filter(function(t){return n.indexOf(t)<0});if(!o.length)return e();this.options.preload=n.concat(o),this.loadResources(e)},e.prototype.dir=function(t){return t||(t=this.languages&&this.languages.length>0?this.languages[0]:this.language),t?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))>=0?"rtl":"ltr":"rtl"},e.prototype.createInstance=function(){return new e(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments[1])},e.prototype.cloneInstance=function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,i=u({},this.options,n,{isClone:!0}),s=new e(i,o);return["store","services","language"].forEach(function(e){s[e]=t[e]}),s.translator=new m.default(s.services,s.options),s.translator.on("*",function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];s.emit.apply(s,[t].concat(n))}),s.init(i,o),s},e}(g.default);o.default=new N},639);
__d(function(r,t,o,n){"use strict";function e(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function i(r){if(Array.isArray(r)){for(var t=0,o=Array(r.length);t<r.length;t++)o[t]=r[t];return o}return Array.from(r)}Object.defineProperty(n,"__esModule",{value:!0});var u=Object.assign||function(r){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])}return r},a={type:"logger",log:function(r){this.output("log",r)},warn:function(r){this.output("warn",r)},error:function(r){this.output("error",r)},output:function(r,t){var o;console&&console[r]&&(o=console)[r].apply(o,i(t))}},f=function(){function r(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e(this,r),this.init(t,o)}return r.prototype.init=function(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=r||a,this.options=t,this.debug=t.debug},r.prototype.setDebug=function(r){this.debug=r},r.prototype.log=function(){for(var r=arguments.length,t=Array(r),o=0;o<r;o++)t[o]=arguments[o];return this.forward(t,"log","",!0)},r.prototype.warn=function(){for(var r=arguments.length,t=Array(r),o=0;o<r;o++)t[o]=arguments[o];return this.forward(t,"warn","",!0)},r.prototype.error=function(){for(var r=arguments.length,t=Array(r),o=0;o<r;o++)t[o]=arguments[o];return this.forward(t,"error","")},r.prototype.deprecate=function(){for(var r=arguments.length,t=Array(r),o=0;o<r;o++)t[o]=arguments[o];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)},r.prototype.forward=function(r,t,o,n){return n&&!this.debug?null:("string"==typeof r[0]&&(r[0]=""+o+this.prefix+" "+r[0]),this.logger[t](r))},r.prototype.create=function(t){return new r(this.logger,u({prefix:this.prefix+":"+t+":"},this.options))},r}();n.default=new f},640);
__d(function(e,r,o,s){"use strict";function t(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(s,"__esModule",{value:!0});var n=function(){function e(){t(this,e),this.observers={}}return e.prototype.on=function(e,r){var o=this;e.split(" ").forEach(function(e){o.observers[e]=o.observers[e]||[],o.observers[e].push(r)})},e.prototype.off=function(e,r){var o=this;this.observers[e]&&this.observers[e].forEach(function(){if(r){var s=o.observers[e].indexOf(r);s>-1&&o.observers[e].splice(s,1)}else delete o.observers[e]})},e.prototype.emit=function(e){for(var r=arguments.length,o=Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];if(this.observers[e]){[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,o)})}if(this.observers["*"]){[].concat(this.observers["*"]).forEach(function(r){var s;r.apply(r,(s=[e]).concat.apply(s,o))})}},e}();s.default=n},641);
__d(function(t,e,o,n){"use strict";function r(t,e){for(var o=Object.getOwnPropertyNames(e),n=0;n<o.length;n++){var r=o[n],i=Object.getOwnPropertyDescriptor(e,r);i&&i.configurable&&void 0===t[r]&&Object.defineProperty(t,r,i)}return t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):r(t,e))}Object.defineProperty(n,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},c=e(641),p=function(t){return t&&t.__esModule?t:{default:t}}(c),d=e(643),f=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}(d),l=function(t){function e(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};i(this,e);var r=s(this,t.call(this));return r.data=o,r.options=n,r}return a(e,t),e.prototype.addNamespaces=function(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)},e.prototype.removeNamespaces=function(t){var e=this.options.ns.indexOf(t);e>-1&&this.options.ns.splice(e,1)},e.prototype.getResource=function(t,e,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=n.keySeparator||this.options.keySeparator;void 0===r&&(r=".");var i=[t,e];return o&&"string"!=typeof o&&(i=i.concat(o)),o&&"string"==typeof o&&(i=i.concat(r?o.split(r):o)),t.indexOf(".")>-1&&(i=t.split(".")),f.getPath(this.data,i)},e.prototype.addResource=function(t,e,o,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var s=[t,e];o&&(s=s.concat(i?o.split(i):o)),t.indexOf(".")>-1&&(s=t.split("."),n=e,e=s[1]),this.addNamespaces(e),f.setPath(this.data,s,n),r.silent||this.emit("added",t,e,o,n)},e.prototype.addResources=function(t,e,o){for(var n in o)"string"==typeof o[n]&&this.addResource(t,e,n,o[n],{silent:!0});this.emit("added",t,e,o)},e.prototype.addResourceBundle=function(t,e,o,n,r){var i=[t,e];t.indexOf(".")>-1&&(i=t.split("."),n=o,o=e,e=i[1]),this.addNamespaces(e);var s=f.getPath(this.data,i)||{};n?f.deepExtend(s,o,r):s=u({},s,o),f.setPath(this.data,i,s),this.emit("added",t,e,o)},e.prototype.removeResourceBundle=function(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)},e.prototype.hasResourceBundle=function(t,e){return void 0!==this.getResource(t,e)},e.prototype.getResourceBundle=function(t,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?u({},this.getResource(t,e)):this.getResource(t,e)},e.prototype.toJSON=function(){return this.data},e}(p.default);n.default=l},642);
__d(function(n,t,e,r){"use strict";function i(n){return null==n?"":""+n}function o(n,t,e){n.forEach(function(n){t[n]&&(e[n]=t[n])})}function c(n,t,e){function r(n){return n&&n.indexOf("###")>-1?n.replace(/###/g,"."):n}function i(){return!n||"string"==typeof n}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var c=r(o.shift());!n[c]&&e&&(n[c]=new e),n=n[c]}return i()?{}:{obj:n,k:r(o.shift())}}function u(n,t,e){var r=c(n,t,Object);r.obj[r.k]=e}function f(n,t,e,r){var i=c(n,t,Object),o=i.obj,u=i.k;o[u]=o[u]||[],r&&(o[u]=o[u].concat(e)),r||o[u].push(e)}function a(n,t){var e=c(n,t),r=e.obj,i=e.k;if(r)return r[i]}function s(n,t,e){for(var r in t)r in n?"string"==typeof n[r]||n[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?e&&(n[r]=t[r]):s(n[r],t[r],e):n[r]=t[r];return n}function p(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function g(n){return"string"==typeof n?n.replace(/[&<>"'\/]/g,function(n){return l[n]}):n}Object.defineProperty(r,"__esModule",{value:!0}),r.makeString=i,r.copy=o,r.setPath=u,r.pushPath=f,r.getPath=a,r.deepExtend=s,r.regexEscape=p,r.escape=g;var l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"}},643);
__d(function(t,e,o,n){"use strict";function i(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e.default=t,e}function r(t){return t&&t.__esModule?t:{default:t}}function s(t,e){for(var o=Object.getOwnPropertyNames(e),n=0;n<o.length;n++){var i=o[n],r=Object.getOwnPropertyDescriptor(e,i);r&&r.configurable&&void 0===t[i]&&Object.defineProperty(t,i,r)}return t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):s(t,e))}Object.defineProperty(n,"__esModule",{value:!0});var c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},u="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof t},f=e(640),h=r(f),y=e(641),g=r(y),d=e(645),v=r(d),b=e(646),j=i(b),m=e(643),O=i(m),S=function(t){function e(o){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,e);var i=p(this,t.call(this));return O.copy(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector"],o,i),i.options=n,i.logger=h.default.create("translator"),i}return l(e,t),e.prototype.changeLanguage=function(t){t&&(this.language=t)},e.prototype.exists=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};return"v1"===this.options.compatibilityAPI&&(e=j.convertTOptions(e)),void 0!==this.resolve(t,e)},e.prototype.extractFromKey=function(t,e){var o=e.nsSeparator||this.options.nsSeparator;void 0===o&&(o=":");var n=e.keySeparator||this.options.keySeparator||".",i=e.ns||this.options.defaultNS;if(o&&t.indexOf(o)>-1){var r=t.split(o);(o!==n||o===n&&this.options.ns.indexOf(r[0])>-1)&&(i=r.shift()),t=r.join(n)}return"string"==typeof i&&(i=[i]),{key:t,namespaces:i}},e.prototype.translate=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!==(void 0===e?"undefined":u(e))?e=this.options.overloadTranslationOptionHandler(arguments):"v1"===this.options.compatibilityAPI&&(e=j.convertTOptions(e)),void 0===t||null===t||""===t)return"";"number"==typeof t&&(t=String(t)),"string"==typeof t&&(t=[t]);var o=e.keySeparator||this.options.keySeparator||".",n=this.extractFromKey(t[t.length-1],e),i=n.key,r=n.namespaces,s=r[r.length-1],a=e.lng||this.language,p=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(a&&"cimode"===a.toLowerCase()){if(p){return s+(e.nsSeparator||this.options.nsSeparator)+i}return i}var l=this.resolve(t,e),f=Object.prototype.toString.apply(l),h=["[object Number]","[object Function]","[object RegExp]"],y=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays;if(l&&"string"!=typeof l&&h.indexOf(f)<0&&(!y||"[object Array]"!==f)){if(!e.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(i,l,e):"key '"+i+" ("+this.language+")' returned an object instead of string.";if(e.keySeparator||this.options.keySeparator){var g="[object Array]"===f?[]:{};for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(g[d]=this.translate(""+i+o+d,c({},e,{joinArrays:!1,ns:r})));l=g}}else if(y&&"[object Array]"===f)(l=l.join(y))&&(l=this.extendTranslation(l,i,e));else{var v=!1,b=!1;if(this.isValidLookup(l)||void 0===e.defaultValue||(v=!0,l=e.defaultValue),this.isValidLookup(l)||(b=!0,l=i),b||v){this.logger.log("missingKey",a,s,i,l);var m=[],O=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&O&&O[0])for(var S=0;S<O.length;S++)m.push(O[S]);else"all"===this.options.saveMissingTo?m=this.languageUtils.toResolveHierarchy(e.lng||this.language):m.push(e.lng||this.language);this.options.saveMissing&&(this.options.missingKeyHandler?this.options.missingKeyHandler(m,s,i,l):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(m,s,i,l)),this.emit("missingKey",m,s,i,l)}l=this.extendTranslation(l,i,e),b&&l===i&&this.options.appendNamespaceToMissingKey&&(l=s+":"+i),b&&this.options.parseMissingKeyHandler&&(l=this.options.parseMissingKeyHandler(l))}return l},e.prototype.extendTranslation=function(t,e,o){var n=this;o.interpolation&&this.interpolator.init(c({},o,{interpolation:c({},this.options.interpolation,o.interpolation)}));var i=o.replace&&"string"!=typeof o.replace?o.replace:o;this.options.interpolation.defaultVariables&&(i=c({},this.options.interpolation.defaultVariables,i)),t=this.interpolator.interpolate(t,i,o.lng||this.language),!1!==o.nest&&(t=this.interpolator.nest(t,function(){return n.translate.apply(n,arguments)},o)),o.interpolation&&this.interpolator.reset();var r=o.postProcess||this.options.postProcess,s="string"==typeof r?[r]:r;return void 0!==t&&s&&s.length&&!1!==o.applyPostProcessor&&(t=v.default.handle(s,t,e,o,this)),t},e.prototype.resolve=function(t){var e=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=void 0;return"string"==typeof t&&(t=[t]),t.forEach(function(t){if(!e.isValidLookup(n)){var i=e.extractFromKey(t,o),r=i.key,s=i.namespaces;e.options.fallbackNS&&(s=s.concat(e.options.fallbackNS));var a=void 0!==o.count&&"string"!=typeof o.count,p=void 0!==o.context&&"string"==typeof o.context&&""!==o.context,l=o.lngs?o.lngs:e.languageUtils.toResolveHierarchy(o.lng||e.language);s.forEach(function(t){e.isValidLookup(n)||l.forEach(function(i){if(!e.isValidLookup(n)){var s=r,l=[s],c=void 0;a&&(c=e.pluralResolver.getSuffix(i,o.count)),a&&p&&l.push(s+c),p&&l.push(s+=""+e.options.contextSeparator+o.context),a&&l.push(s+=c);for(var u=void 0;u=l.pop();)e.isValidLookup(n)||(n=e.getResource(i,t,u,o))}})})}}),n},e.prototype.isValidLookup=function(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)},e.prototype.getResource=function(t,e,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.resourceStore.getResource(t,e,o,n)},e}(g.default);n.default=S},644);
__d(function(s,o,e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default={processors:{},addPostProcessor:function(s){this.processors[s.name]=s},handle:function(s,o,e,r,c){var t=this;return s.forEach(function(s){t.processors[s]&&(o=t.processors[s].process(o,e,r,c))}),o}}},645);
__d(function(e,n,a,t){"use strict";function r(e){return e.interpolation={unescapeSuffix:"HTML"},e.interpolation.prefix=e.interpolationPrefix||"__",e.interpolation.suffix=e.interpolationSuffix||"__",e.interpolation.escapeValue=e.escapeInterpolation||!1,e.interpolation.nestingPrefix=e.reusePrefix||"$t(",e.interpolation.nestingSuffix=e.reuseSuffix||")",e}function o(e){return e.resStore&&(e.resources=e.resStore),e.ns&&e.ns.defaultNs?(e.defaultNS=e.ns.defaultNs,e.ns=e.ns.namespaces):e.defaultNS=e.ns||"translation",e.fallbackToDefaultNS&&e.defaultNS&&(e.fallbackNS=e.defaultNS),e.saveMissing=e.sendMissing,e.saveMissingTo=e.sendMissingTo||"current",e.returnNull=!e.fallbackOnNull,e.returnEmptyString=!e.fallbackOnEmpty,e.returnObjects=e.returnObjectTrees,e.joinArrays="\n",e.returnedObjectHandler=e.objectTreeKeyHandler,e.parseMissingKeyHandler=e.parseMissingKey,e.appendNamespaceToMissingKey=!0,e.nsSeparator=e.nsseparator||":",e.keySeparator=e.keyseparator||".","sprintf"===e.shortcutFunction&&(e.overloadTranslationOptionHandler=function(e){for(var n=[],a=1;a<e.length;a++)n.push(e[a]);return{postProcess:"sprintf",sprintf:n}}),e.whitelist=e.lngWhitelist,e.preload=e.preload,"current"===e.load&&(e.load="currentOnly"),"unspecific"===e.load&&(e.load="languageOnly"),e.backend=e.backend||{},e.backend.loadPath=e.resGetPath||"locales/__lng__/__ns__.json",e.backend.addPath=e.resPostPath||"locales/add/__lng__/__ns__",e.backend.allowMultiLoading=e.dynamicLoad,e.cache=e.cache||{},e.cache.prefix="res_",e.cache.expirationTime=6048e5,e.cache.enabled=e.useLocalStorage,e=r(e),e.defaultVariables&&(e.interpolation.defaultVariables=e.defaultVariables),e}function s(e){return e=r(e),e.joinArrays="\n",e}function i(e){return(e.interpolationPrefix||e.interpolationSuffix||void 0!==e.escapeInterpolation)&&(e=r(e)),e.nsSeparator=e.nsseparator,e.keySeparator=e.keyseparator,e.returnObjects=e.returnObjectTrees,e}function l(e){e.lng=function(){return u.default.deprecate("i18next.lng() can be replaced by i18next.language for detected language or i18next.languages for languages ordered by translation lookup."),e.services.languageUtils.toResolveHierarchy(e.language)[0]},e.preload=function(n,a){u.default.deprecate("i18next.preload() can be replaced with i18next.loadLanguages()"),e.loadLanguages(n,a)},e.setLng=function(n,a,t){return u.default.deprecate("i18next.setLng() can be replaced with i18next.changeLanguage() or i18next.getFixedT() to get a translation function with fixed language or namespace."),"function"==typeof a&&(t=a,a={}),a||(a={}),!0===a.fixLng&&t?t(null,e.getFixedT(n)):e.changeLanguage(n,t)},e.addPostProcessor=function(n,a){u.default.deprecate("i18next.addPostProcessor() can be replaced by i18next.use({ type: 'postProcessor', name: 'name', process: fc })"),e.use({type:"postProcessor",name:n,process:a})}}Object.defineProperty(t,"__esModule",{value:!0}),t.convertAPIOptions=o,t.convertJSONOptions=s,t.convertTOptions=i,t.appendBackwardsAPI=l;var c=n(640),u=function(e){return e&&e.__esModule?e:{default:e}}(c)},646);
__d(function(t,e,o,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t){return t.charAt(0).toUpperCase()+t.slice(1)}Object.defineProperty(n,"__esModule",{value:!0});var a=e(640),s=function(t){return t&&t.__esModule?t:{default:t}}(a),l=function(){function t(e){i(this,t),this.options=e,this.whitelist=this.options.whitelist||!1,this.logger=s.default.create("languageUtils")}return t.prototype.getScriptPartFromCode=function(t){if(!t||t.indexOf("-")<0)return null;var e=t.split("-");return 2===e.length?null:(e.pop(),this.formatLanguageCode(e.join("-")))},t.prototype.getLanguagePartFromCode=function(t){if(!t||t.indexOf("-")<0)return t;var e=t.split("-");return this.formatLanguageCode(e[0])},t.prototype.formatLanguageCode=function(t){if("string"==typeof t&&t.indexOf("-")>-1){var e=["hans","hant","latn","cyrl","cans","mong","arab"],o=t.split("-");return this.options.lowerCaseLng?o=o.map(function(t){return t.toLowerCase()}):2===o.length?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),e.indexOf(o[1].toLowerCase())>-1&&(o[1]=r(o[1].toLowerCase()))):3===o.length&&(o[0]=o[0].toLowerCase(),2===o[1].length&&(o[1]=o[1].toUpperCase()),"sgn"!==o[0]&&2===o[2].length&&(o[2]=o[2].toUpperCase()),e.indexOf(o[1].toLowerCase())>-1&&(o[1]=r(o[1].toLowerCase())),e.indexOf(o[2].toLowerCase())>-1&&(o[2]=r(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t},t.prototype.isWhitelisted=function(t){return("languageOnly"===this.options.load||this.options.nonExplicitWhitelist)&&(t=this.getLanguagePartFromCode(t)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(t)>-1},t.prototype.getFallbackCodes=function(t,e){if(!t)return[];if("string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];var o=t[e];return o||(o=t[this.getScriptPartFromCode(e)]),o||(o=t[this.formatLanguageCode(e)]),o||(o=t.default),o||[]},t.prototype.toResolveHierarchy=function(t,e){var o=this,n=this.getFallbackCodes(e||this.options.fallbackLng||[],t),i=[],r=function(t){t&&(o.isWhitelisted(t)?i.push(t):o.logger.warn("rejecting non-whitelisted language code: "+t))};return"string"==typeof t&&t.indexOf("-")>-1?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(t))):"string"==typeof t&&r(this.formatLanguageCode(t)),n.forEach(function(t){i.indexOf(t)<0&&r(o.formatLanguageCode(t))}),i},t}();n.default=l},647);
__d(function(n,r,t,u){"use strict";function e(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function o(){var n={};return l.forEach(function(r){r.lngs.forEach(function(t){n[t]={numbers:r.nr,plurals:f[r.fc]}})}),n}Object.defineProperty(u,"__esModule",{value:!0});var s=r(640),i=function(n){return n&&n.__esModule?n:{default:n}}(s),l=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","es_ar","et","eu","fi","fo","fur","fy","gl","gu","ha","he","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt","pt_br","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21}],f={1:function(n){return Number(n>1)},2:function(n){return Number(1!=n)},3:function(n){return 0},4:function(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2)},5:function(n){return Number(0===n?0:1==n?1:2==n?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5)},6:function(n){return Number(1==n?0:n>=2&&n<=4?1:2)},7:function(n){return Number(1==n?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2)},8:function(n){return Number(1==n?0:2==n?1:8!=n&&11!=n?2:3)},9:function(n){return Number(n>=2)},10:function(n){return Number(1==n?0:2==n?1:n<7?2:n<11?3:4)},11:function(n){return Number(1==n||11==n?0:2==n||12==n?1:n>2&&n<20?2:3)},12:function(n){return Number(n%10!=1||n%100==11)},13:function(n){return Number(0!==n)},14:function(n){return Number(1==n?0:2==n?1:3==n?2:3)},15:function(n){return Number(n%10==1&&n%100!=11?0:n%10>=2&&(n%100<10||n%100>=20)?1:2)},16:function(n){return Number(n%10==1&&n%100!=11?0:0!==n?1:2)},17:function(n){return Number(1==n||n%10==1?0:1)},18:function(n){return Number(0==n?0:1==n?1:2)},19:function(n){return Number(1==n?0:0===n||n%100>1&&n%100<11?1:n%100>10&&n%100<20?2:3)},20:function(n){return Number(1==n?0:0===n||n%100>0&&n%100<20?1:2)},21:function(n){return Number(n%100==1?1:n%100==2?2:n%100==3||n%100==4?3:0)}},c=function(){function n(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e(this,n),this.languageUtils=r,this.options=t,this.logger=i.default.create("pluralResolver"),this.rules=o()}return n.prototype.addRule=function(n,r){this.rules[n]=r},n.prototype.getRule=function(n){return this.rules[this.languageUtils.getLanguagePartFromCode(n)]},n.prototype.needsPlural=function(n){var r=this.getRule(n);return r&&r.numbers.length>1},n.prototype.getSuffix=function(n,r){var t=this,u=this.getRule(n);if(u){if(1===u.numbers.length)return"";var e=u.noAbs?u.plurals(r):u.plurals(Math.abs(r)),o=u.numbers[e];this.options.simplifyPluralSuffix&&2===u.numbers.length&&1===u.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var s=function(){return t.options.prepend&&o.toString()?t.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_"+o.toString():s():"v2"===this.options.compatibilityJSON||2===u.numbers.length&&1===u.numbers[0]?s():2===u.numbers.length&&1===u.numbers[0]?s():this.options.prepend&&e.toString()?this.options.prepend+e.toString():e.toString()}return this.logger.warn("no plural rule found for: "+n),""},n}();u.default=c},648);
__d(function(e,t,i,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(r,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},a=t(643),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(a),p=t(640),f=function(e){return e&&e.__esModule?e:{default:e}}(p),c=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.logger=f.default.create("interpolator"),this.init(t,!0)}return e.prototype.init=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};arguments[1]&&(this.options=e,this.format=e.interpolation&&e.interpolation.format||function(e){return e},this.escape=e.interpolation&&e.interpolation.escape||o.escape),e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.prefix=t.prefix?o.regexEscape(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?o.regexEscape(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?o.regexEscape(t.nestingPrefix):t.nestingPrefixEscaped||o.regexEscape("$t("),this.nestingSuffix=t.nestingSuffix?o.regexEscape(t.nestingSuffix):t.nestingSuffixEscaped||o.regexEscape(")"),this.resetRegExp()},e.prototype.reset=function(){this.options&&this.init(this.options)},e.prototype.resetRegExp=function(){var e=this.prefix+"(.+?)"+this.suffix;this.regexp=new RegExp(e,"g");var t=""+this.prefix+this.unescapePrefix+"(.+?)"+this.unescapeSuffix+this.suffix;this.regexpUnescape=new RegExp(t,"g");var i=this.nestingPrefix+"(.+?)"+this.nestingSuffix;this.nestingRegexp=new RegExp(i,"g")},e.prototype.interpolate=function(e,t,i){function r(e){return e.replace(/\$/g,"$$$$")}var n=this,s=void 0,a=void 0,p=function(e){if(e.indexOf(n.formatSeparator)<0)return o.getPath(t,e);var r=e.split(n.formatSeparator),s=r.shift().trim(),a=r.join(n.formatSeparator).trim();return n.format(o.getPath(t,s),a,i)};for(this.resetRegExp();s=this.regexpUnescape.exec(e);)a=p(s[1].trim()),e=e.replace(s[0],a),this.regexpUnescape.lastIndex=0;for(;s=this.regexp.exec(e);)a=p(s[1].trim()),"string"!=typeof a&&(a=o.makeString(a)),a||(this.logger.warn("missed to pass in variable "+s[1]+" for interpolating "+e),a=""),a=r(this.escapeValue?this.escape(a):a),e=e.replace(s[0],a),this.regexp.lastIndex=0;return e},e.prototype.nest=function(e,t){function i(e){if(e.indexOf(",")<0)return e;var t=e.split(",");e=t.shift();var i=t.join(",");i=this.interpolate(i,p),i=i.replace(/'/g,'"');try{p=JSON.parse(i)}catch(t){this.logger.error("failed parsing options string in nesting for key "+e,t)}return e}var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=void 0,a=void 0,p=s({},r);for(p.applyPostProcessor=!1;n=this.nestingRegexp.exec(e);){if((a=t(i.call(this,n[1].trim()),p))&&n[0]===e&&"string"!=typeof a)return a;"string"!=typeof a&&(a=o.makeString(a)),a||(this.logger.warn("missed to resolve "+n[1]+" for nesting "+e),a=""),e=e.replace(n[0],a),this.regexp.lastIndex=0}return e},e}();r.default=c},649);
__d(function(e,t,n,o){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++){var a=n[o],r=Object.getOwnPropertyDescriptor(t,a);r&&r.configurable&&void 0===e[a]&&Object.defineProperty(e,a,r)}return e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):r(e,t))}function u(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}Object.defineProperty(o,"__esModule",{value:!0});var d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},c=function(){function e(e,t){var n=[],o=!0,a=!1,r=void 0;try{for(var i,l=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(o=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);o=!0);}catch(e){a=!0,r=e}finally{try{!o&&l.return&&l.return()}finally{if(a)throw r}}return n}return function(t,n){if(Array.isArray(t))return t;if(("function"==typeof Symbol?Symbol.iterator:"@@iterator")in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=t(643),g=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(f),h=t(640),p=a(h),v=t(641),b=a(v),y=function(e){function t(n,o,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};i(this,t);var s=l(this,e.call(this));return s.backend=n,s.store=o,s.services=a,s.options=r,s.logger=p.default.create("backendConnector"),s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(a,r.backend,r),s}return s(t,e),t.prototype.queueLoad=function(e,t,n){var o=this,a=[],r=[],i=[],l=[];return e.forEach(function(e){var n=!0;t.forEach(function(t){var i=e+"|"+t;o.store.hasResourceBundle(e,t)?o.state[i]=2:o.state[i]<0||(1===o.state[i]?r.indexOf(i)<0&&r.push(i):(o.state[i]=1,n=!1,r.indexOf(i)<0&&r.push(i),a.indexOf(i)<0&&a.push(i),l.indexOf(t)<0&&l.push(t)))}),n||i.push(e)}),(a.length||r.length)&&this.queue.push({pending:r,loaded:{},errors:[],callback:n}),{toLoad:a,pending:r,toLoadLanguages:i,toLoadNamespaces:l}},t.prototype.loaded=function(e,t,n){var o=this,a=e.split("|"),r=c(a,2),i=r[0],l=r[1];t&&this.emit("failedLoading",i,l,t),n&&this.store.addResourceBundle(i,l,n),this.state[e]=t?-1:2,this.queue.forEach(function(n){g.pushPath(n.loaded,[i],l),u(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(o.emit("loaded",n.loaded),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.queue=this.queue.filter(function(e){return!e.done})},t.prototype.read=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=this,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,i=arguments[5];return e.length?this.backend[n](e,t,function(l,s){if(l&&s&&o<5)return void setTimeout(function(){a.read.call(a,e,t,n,o+1,2*r,i)},r);i(l,s)}):i(null,{})},t.prototype.load=function(e,t,n){var o=this;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();var a=d({},this.backend.options,this.options.backend);"string"==typeof e&&(e=this.services.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var r=this.queueLoad(e,t,n);if(!r.toLoad.length)return r.pending.length||n(),null;a.allowMultiLoading&&this.backend.readMulti?this.read(r.toLoadLanguages,r.toLoadNamespaces,"readMulti",null,null,function(e,t){e&&o.logger.warn("loading namespaces "+r.toLoadNamespaces.join(", ")+" for languages "+r.toLoadLanguages.join(", ")+" via multiloading failed",e),!e&&t&&o.logger.log("successfully loaded namespaces "+r.toLoadNamespaces.join(", ")+" for languages "+r.toLoadLanguages.join(", ")+" via multiloading",t),r.toLoad.forEach(function(n){var a=n.split("|"),r=c(a,2),i=r[0],l=r[1],s=g.getPath(t,[i,l]);if(s)o.loaded(n,e,s);else{var u="loading namespace "+l+" for language "+i+" via multiloading failed";o.loaded(n,u),o.logger.error(u)}})}):r.toLoad.forEach(function(e){o.loadOne(e)})},t.prototype.reload=function(e,t){var n=this;this.backend||this.logger.warn("No backend was added via i18next.use. Will not load resources.");var o=d({},this.backend.options,this.options.backend);"string"==typeof e&&(e=this.services.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]),o.allowMultiLoading&&this.backend.readMulti?this.read(e,t,"readMulti",null,null,function(o,a){o&&n.logger.warn("reloading namespaces "+t.join(", ")+" for languages "+e.join(", ")+" via multiloading failed",o),!o&&a&&n.logger.log("successfully reloaded namespaces "+t.join(", ")+" for languages "+e.join(", ")+" via multiloading",a),e.forEach(function(e){t.forEach(function(t){var r=g.getPath(a,[e,t]);if(r)n.loaded(e+"|"+t,o,r);else{var i="reloading namespace "+t+" for language "+e+" via multiloading failed";n.loaded(e+"|"+t,i),n.logger.error(i)}})})}):e.forEach(function(e){t.forEach(function(t){n.loadOne(e+"|"+t,"re")})})},t.prototype.loadOne=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.split("|"),a=c(o,2),r=a[0],i=a[1];this.read(r,i,"read",null,null,function(o,a){o&&t.logger.warn(n+"loading namespace "+i+" for language "+r+" failed",o),!o&&a&&t.logger.log(n+"loaded namespace "+i+" for language "+r,a),t.loaded(e,o,a)})},t.prototype.saveMissing=function(e,t,n,o){this.backend&&this.backend.create&&this.backend.create(e,t,n,o),e&&e[0]&&this.store.addResource(e[0],t,n,o)},t}(b.default);o.default=y},650);
__d(function(e,t,r,o){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function c(e,t){for(var r=Object.getOwnPropertyNames(t),o=0;o<r.length;o++){var n=r[o],c=Object.getOwnPropertyDescriptor(t,n);c&&c.configurable&&void 0===e[n]&&Object.defineProperty(e,n,c)}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):c(e,t))}Object.defineProperty(o,"__esModule",{value:!0});var f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},l=t(640),u=n(l),h=t(641),p=n(h),y=function(e){function t(r,o,n){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};a(this,t);var s=i(this,e.call(this));return s.cache=r,s.store=o,s.services=n,s.options=c,s.logger=u.default.create("cacheConnector"),s.cache&&s.cache.init&&s.cache.init(n,c.cache,c),s}return s(t,e),t.prototype.load=function(e,t,r){var o=this;if(!this.cache)return r&&r();var n=f({},this.cache.options,this.options.cache),c="string"==typeof e?this.services.languageUtils.toResolveHierarchy(e):e;n.enabled?this.cache.load(c,function(e,t){if(e&&o.logger.error("loading languages "+c.join(", ")+" from cache failed",e),t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))for(var a in t[n])if(Object.prototype.hasOwnProperty.call(t[n],a)&&"i18nStamp"!==a){var i=t[n][a];i&&o.store.addResourceBundle(n,a,i)}r&&r()}):r&&r()},t.prototype.save=function(){this.cache&&this.options.cache&&this.options.cache.enabled&&this.cache.save(this.store.data)},t}(p.default);o.default=y},651);
__d(function(e,a,t,n){"use strict";function i(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",saveMissing:!1,saveMissingTo:"fallback",missingKeyHandler:!1,postProcess:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:function(){},parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){return{defaultValue:e[1]}},interpolation:{escapeValue:!0,format:function(e,a,t){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",defaultVariables:void 0}}}function r(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf("cimode")<0&&e.whitelist.push("cimode"),e}Object.defineProperty(n,"__esModule",{value:!0}),n.transformOptions=r,n.get=i},652);
__d(function(t,d,e,f){e.exports=d(654).default},653);
__d(function(t,n,o,a){"use strict";function i(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function e(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:JSON.parse,crossDomain:!1,ajax:f.default}}Object.defineProperty(a,"__esModule",{value:!0});var r=function(){function t(t,n){for(var o=0;o<n.length;o++){var a=n[o];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(n,o,a){return o&&t(n.prototype,o),a&&t(n,a),n}}(),s=n(655),l=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n.default=t,n}(s),u=n(656),f=function(t){return t&&t.__esModule?t:{default:t}}(u),c=function(){function t(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,t),this.init(n,o),this.type="backend"}return r(t,[{key:"init",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.services=t,this.options=l.defaults(n,this.options||{},e())}},{key:"readMulti",value:function(t,n,o){var a=this.options.loadPath;"function"==typeof this.options.loadPath&&(a=this.options.loadPath(t,n));var i=this.services.interpolator.interpolate(a,{lng:t.join("+"),ns:n.join("+")});this.loadUrl(i,o)}},{key:"read",value:function(t,n,o){var a=this.options.loadPath;"function"==typeof this.options.loadPath&&(a=this.options.loadPath([t],[n]));var i=this.services.interpolator.interpolate(a,{lng:t,ns:n});this.loadUrl(i,o)}},{key:"loadUrl",value:function(t,n){var o=this;this.options.ajax(t,this.options,function(a,i){if(i.status>=500&&i.status<600)return n("failed loading "+t,!0);if(i.status>=400&&i.status<500)return n("failed loading "+t,!1);var e=void 0,r=void 0;try{e=o.options.parse(a,t)}catch(n){r="failed parsing "+t+" to json"}if(r)return n(r,!1);n(null,e)})}},{key:"create",value:function(t,n,o,a){var i=this;"string"==typeof t&&(t=[t]);var e={};e[o]=a||"",t.forEach(function(t){var o=i.services.interpolator.interpolate(i.options.addPath,{lng:t,ns:n});i.options.ajax(o,i.options,function(t,n){},e)})}}]),t}();c.type="backend",a.default=c},654);
__d(function(n,e,c,i){"use strict";function r(n){return l.call(o.call(arguments,1),function(e){if(e)for(var c in e)void 0===n[c]&&(n[c]=e[c])}),n}function t(n){return l.call(o.call(arguments,1),function(e){if(e)for(var c in e)n[c]=e[c]}),n}Object.defineProperty(i,"__esModule",{value:!0}),i.defaults=r,i.extend=t;var f=[],l=f.forEach,o=f.slice},655);
__d(function(e,t,o,n){"use strict";function r(e,t){if(t&&"object"===(void 0===t?"undefined":s(t))){var o="",n=encodeURIComponent;for(var r in t)o+="&"+n(r)+"="+n(t[r]);if(!o)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+o.slice(1)}return e}function i(e,t,o,n,i){n&&"object"===(void 0===n?"undefined":s(n))&&(i||(n._t=new Date),n=r("",n).slice(1)),t.queryStringParams&&(e=r(e,t.queryStringParams));try{var u;u=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0"),u.open(n?"POST":"GET",e,1),t.crossDomain||u.setRequestHeader("X-Requested-With","XMLHttpRequest"),u.withCredentials=!!t.withCredentials,n&&u.setRequestHeader("Content-type","application/x-www-form-urlencoded");var a=t.customHeaders;if(a)for(var c in a)u.setRequestHeader(c,a[c]);u.onreadystatechange=function(){u.readyState>3&&o&&o(u.responseText,u)},u.send(n)}catch(e){console&&console.log(e)}}Object.defineProperty(n,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof("function"==typeof Symbol?Symbol.iterator:"@@iterator")?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==("function"==typeof Symbol?Symbol.prototype:"@@prototype")?"symbol":typeof e};n.default=i},656);
__d(function(n,i,a,e){a.exports={en:"English",bg:"Bulgarian",de:"German",es:"Spanish",fr:"French",hy:"Armenian",it:"Italian",oc:"Occitan",pl:"Polish",ptBR:"Portuguese (Brazil)",ru:"Russian",sk:"Slovak",sl:"Slovenian",sv:"Swedish",tr:"Turkish",zhCN:"Chinese (China)",nb:"Norwegian Bokmal",eo:"Esperanto"}},657);
__d(function(e,o,r,t){r.exports={contactlist:"Participants (__pcount__)",addParticipants:"Share the link",roomLocked:"Callers must enter a password",roomUnlocked:"Anyone with the link can join",passwordSetRemotely:"set by another participant",connectionsettings:"Connection Settings",poweredby:"powered by",feedback:"Give us your feedback",inviteUrlDefaultMsg:"Your conference is currently being created...",me:"me",speaker:"Speaker",raisedHand:"Would like to speak",defaultNickname:"ex. Jane Pink",defaultLink:"e.g. __url__",callingName:"__name__",audioOnly:{audioOnly:"Audio only",featureToggleDisabled:"Toggling of __feature__ is disabled while in audio only mode"},userMedia:{"react-nativeGrantPermissions":"Select <b><i>Allow</i></b> when your browser asks for permissions.",chromeGrantPermissions:"Select <b><i>Allow</i></b> when your browser asks for permissions.",androidGrantPermissions:"Select <b><i>Allow</i></b> when your browser asks for permissions.",firefoxGrantPermissions:"Select <b><i>Share Selected Device</i></b> when your browser asks for permissions.",operaGrantPermissions:"Select <b><i>Allow</i></b> when your browser asks for permissions.",iexplorerGrantPermissions:"Select <b><i>OK</i></b> when your browser asks for permissions.",safariGrantPermissions:"Select <b><i>OK</i></b> when your browser asks for permissions.",nwjsGrantPermissions:"Please grant permissions to use your camera and microphone",edgeGrantPermissions:"Select <b><i>Yes</i></b> when your browser asks for permissions."},keyboardShortcuts:{keyboardShortcuts:"Keyboard shortcuts",raiseHand:"Raise or lower your hand",pushToTalk:"Push to talk",toggleScreensharing:"Switch between camera and screen sharing",toggleFilmstrip:"Show or hide the videos",toggleShortcuts:"Show or hide this help menu",focusLocal:"Focus on your video",focusRemote:"Focus on another caller's video",toggleChat:"Open or close the chat",mute:"Mute or unmute your microphone",fullScreen:"Enter or exit full screen",videoMute:"Start or stop your camera",showSpeakerStats:"Show speaker stats"},welcomepage:{disable:"Don't show this page again",feature1:{content:"No downloads required. __app__ works directly within your browser. Simply share your conference URL with others to get started.",title:"Simple to use"},feature2:{content:"Multi-party video conferences work with as little as 128Kbps. Screen-sharing and audio-only conferences are possible with far less.",title:"Low bandwidth"},feature3:{content:"__app__ is licensed under the Apache License. You are free to download, use, modify, and share it as per this license.",title:"Open source"},feature4:{content:"There are no artificial restrictions on the number of users or conference participants. Server power and bandwidth are the only limiting factors.",title:"Unlimited users"},feature5:{content:"It's easy to share your screen with others. __app__ is ideal for on-line presentations, lectures, and tech support sessions.",title:"Screen sharing"},feature6:{content:"Need some privacy? __app__ conference rooms can be secured with a password in order to exclude unwanted guests and prevent interruptions.",title:"Secure rooms"},feature7:{content:"__app__ features Etherpad, a real-time collaborative text editor that's great for meeting minutes, writing articles, and more.",title:"Shared notes"},feature8:{content:"Learn about your users through easy integration with Piwik, Google Analytics, and other usage monitoring and statistics systems.",title:"Usage statistics"},go:"GO",join:"JOIN",privacy:"Privacy",roomname:"Enter room name",roomnamePlaceHolder:"room name",sendFeedback:"Send feedback",terms:"Terms"},startupoverlay:{policyText:" ",title:"__app__ needs to use your microphone and camera."},suspendedoverlay:{title:"Your video call was interrupted because this computer went to sleep.",text:"Press the <i>Rejoin</i> button to reconnect.",rejoinKeyTitle:"Rejoin"},toolbar:{addPeople:"Add people to your call",audioonly:"Enable / Disable audio only mode (saves bandwidth)",mute:"Mute / Unmute",videomute:"Start / Stop camera",authenticate:"Authenticate",lock:"Lock / Unlock room",invite:"Share the link",chat:"Open / Close chat",etherpad:"Open / Close shared document",sharedvideo:"Share a YouTube video",sharescreen:"Start / Stop screen sharing",fullscreen:"View / Exit full screen",sip:"Call SIP number",Settings:"Settings",hangup:"Leave",login:"Login",logout:"Logout",dialpad:"Open / Close dialpad",sharedVideoMutedPopup:"Your shared video has been muted so<br/>that you can talk to the other participants.",micMutedPopup:"Your microphone has been muted so that you<br/>would fully enjoy your shared video.",talkWhileMutedPopup:"Trying to speak? You are muted.",unableToUnmutePopup:"You cannot un-mute while the shared video is on.",cameraDisabled:"Camera is not available",micDisabled:"Microphone is not available",filmstrip:"Show / Hide videos",profile:"Edit your profile",raiseHand:"Raise / Lower your hand"},unsupportedBrowser:{appInstalled:"or if you already have it<br /><strong>then</strong>",appNotInstalled:"You need <strong>__app__</strong> to join a conversation on your mobile",downloadApp:"Download the App",joinConversation:"Join the conversation",startConference:"Start a conference"},bottomtoolbar:{chat:"Open / close chat",filmstrip:"Show / hide videos",contactlist:"View and invite participants"},chat:{nickname:{title:"Enter a nickname in the box below",popover:"Choose a nickname"},messagebox:"Enter text..."},settings:{title:"Settings",update:"Update",name:"Name",startAudioMuted:"Everyone starts muted",startVideoMuted:"Everyone starts hidden",selectCamera:"Camera",selectMic:"Microphone",selectAudioOutput:"Audio output",followMe:"Everyone follows me",noDevice:"None",cameraAndMic:"Camera and microphone",moderator:"MODERATOR",password:"SET PASSWORD",audioVideo:"AUDIO AND VIDEO"},profile:{title:"Profile",setDisplayNameLabel:"Set your display name",setEmailLabel:"Set your gravatar email",setEmailInput:"Enter e-mail"},videothumbnail:{editnickname:"Click to edit your<br/>display name",moderator:"The owner of<br/>this conference",videomute:"Participant has<br/>stopped the camera",mute:"Participant is muted",kick:"Kick out",muted:"Muted",domute:"Mute",flip:"Flip",remoteControl:"Remote control"},connectionindicator:{header:"Connection data",bitrate:"Bitrate:",packetloss:"Packet loss:",resolution:"Resolution:",framerate:"Frame rate:",less:"Show less",more:"Show more",address:"Address:",remoteport_plural:"Remote ports:",localport_plural:"Local ports:",remoteport:"Remote port:",localport:"Local port:",localaddress:"Local address:",localaddress_plural:"Local addresses:",remoteaddress:"Remote address:",remoteaddress_plural:"Remote addresses:",transport:"Transport:",transport_plural:"Transports:",bandwidth:"Estimated bandwidth:",na:"Come back here for connection information once the conference starts",peer_to_peer:" (p2p)",turn:" (turn)"},notify:{disconnected:"disconnected",moderator:"Moderator rights granted!",connected:"connected",somebody:"Somebody",me:"Me",focus:"Conference focus",focusFail:"__component__ not available - retry in __ms__ sec",grantedTo:"Moderator rights granted to __to__!",grantedToUnknown:"Moderator rights granted to $t(notify.somebody)!",muted:"You have started the conversation muted.",mutedTitle:"You're muted!",raisedHand:"Would like to speak."},dialog:{add:"Add",allow:"Allow",kickMessage:"Ouch! You have been kicked out of the meet!",popupError:"Your browser is blocking popup windows from this site. Please enable popups in your browser's security settings and try again.",passwordErrorTitle:"Password Error",passwordError:"This conversation is currently protected by a password. Only the owner of the conference can set a password.",passwordError2:"This conversation isn't currently protected by a password. Only the owner of the conference can set a password.",connectError:"Oops! Something went wrong and we couldn't connect to the conference.",connectErrorWithMsg:"Oops! Something went wrong and we couldn't connect to the conference: __msg__",incorrectPassword:"Password is incorrect",connecting:"Connecting",copy:"Copy",error:"Error",createPassword:"Create password",detectext:"Error when trying to detect desktopsharing extension.",failtoinstall:"Failed to install desktop sharing extension",failedpermissions:"Failed to obtain permissions to use the local microphone and/or camera.",conferenceReloadTitle:"Unfortunately, something went wrong.",conferenceReloadMsg:"We're trying to fix this. Reconnecting in __seconds__ sec...",conferenceDisconnectTitle:"You have been disconnected.",conferenceDisconnectMsg:"You may want to check your network connection. Reconnecting in __seconds__ sec...",rejoinNow:"Rejoin now",maxUsersLimitReached:"The limit for maximum number of participants in the conference has been reached. The conference is full. Please try again later!",lockTitle:"Lock failed",lockMessage:"Failed to lock the conference.",warning:"Warning",passwordNotSupported:"Room passwords are currently not supported.",internalErrorTitle:"Internal error",internalError:"Oups! Something went wrong. The following error occurred: [setRemoteDescription]",unableToSwitch:"Unable to switch video stream.",SLDFailure:"Oops! Something went wrong and we failed to mute! (SLD Failure)",SRDFailure:"Oops! Something went wrong and we failed to stop video! (SRD Failure)",oops:"Oops!",currentPassword:"The current password is",passwordLabel:"Password",defaultError:"There was some kind of error",passwordRequired:"Password required",Ok:"Ok",done:"Done",Remove:"Remove",removePassword:"Remove password",shareVideoTitle:"Share a video",shareVideoLinkError:"Please provide a correct youtube link.",removeSharedVideoTitle:"Remove shared video",removeSharedVideoMsg:"Are you sure you would like to remove your shared video?",alreadySharedVideoMsg:"Another participant is already sharing video. This conference allows only one shared video at a time.",WaitingForHost:"Waiting for the host ...",WaitForHostMsg:"The conference <b>__room__ </b> has not yet started. If you are the host then please authenticate. Otherwise, please wait for the host to arrive.",IamHost:"I am the host",Cancel:"Cancel",Submit:"Submit",retry:"Retry",logoutTitle:"Logout",logoutQuestion:"Are you sure you want to logout and stop the conference?",sessTerminated:"Session Terminated",hungUp:"You hung up",joinAgain:"Join again",Share:"Share",Save:"Save",recording:"Recording",recordingToken:"Enter recording token",passwordCheck:"Are you sure you would like to remove your password?",passwordMsg:"Set a password to lock your room",shareLink:"Share the link to the call",settings1:"Configure your conference",settings2:"Participants join muted",settings3:"Require nicknames<br/><br/>Set a password to lock your room:",yourPassword:"Enter new password",Back:"Back",serviceUnavailable:"Service unavailable",gracefulShutdown:"Our service is currently down for maintenance. Please try again later.",Yes:"Yes",reservationError:"Reservation system error",reservationErrorMsg:"Error code: __code__, message: __msg__",password:"Enter password",userPassword:"user password",token:"token",tokenAuthFailedTitle:"Authentication problem",tokenAuthFailed:"Sorry, you're not allowed to join this call.",displayNameRequired:"Display name is required",enterDisplayName:"Please enter your display name",extensionRequired:"Extension required:",firefoxExtensionPrompt:"You need to install a Firefox extension in order to use screen sharing. Please try again after you <a href='__url__'>get it from here</a>!",feedbackHelp:"Your feedback will help us to improve our video experience.",feedbackQuestion:"Tell us about your call!",thankYou:"Thank you for using __appName__!",sorryFeedback:"We're sorry to hear that. Would you like to tell us more?",liveStreaming:"Live Streaming",streamKey:"Stream name/key",startLiveStreaming:"Start live streaming",stopStreamingWarning:"Are you sure you would like to stop the live streaming?",stopRecordingWarning:"Are you sure you would like to stop the recording?",stopLiveStreaming:"Stop live streaming",stopRecording:"Stop recording",doNotShowWarningAgain:"Don't show this warning again",doNotShowMessageAgain:"Don't show this message again",permissionDenied:"Permission Denied",screenSharingPermissionDeniedError:"You have not granted permission to share your screen.",micErrorPresent:"There was an error connecting to your microphone.",cameraErrorPresent:"There was an error connecting to your camera.",cameraUnsupportedResolutionError:"Your camera does not support required video resolution.",cameraUnknownError:"Cannot use camera for a unknown reason.",cameraPermissionDeniedError:"You have not granted permission to use your camera. You can still join the conference but others won't see you. Use the camera button in the address bar to fix this.",cameraNotFoundError:"Camera was not found.",cameraConstraintFailedError:"Your camera does not satisfy some of the required constraints.",micUnknownError:"Cannot use microphone for a unknown reason.",micPermissionDeniedError:"You have not granted permission to use your microphone. You can still join the conference but others won't hear you. Use the camera button in the address bar to fix this.",micNotFoundError:"Microphone was not found.",micConstraintFailedError:"Your microphone does not satisfy some of the required constraints.",micNotSendingData:"We are unable to access your microphone. Please select another device from the settings menu or try to restart the application.",cameraNotSendingData:"We are unable to access your camera. Please check if another application is using this device, select another device from the settings menu or try to restart the application.",goToStore:"Go to the webstore",externalInstallationTitle:"Extension required",externalInstallationMsg:"You need to install our desktop sharing extension.",inlineInstallationMsg:"You need to install our desktop sharing extension.",inlineInstallExtension:"Install now",muteParticipantTitle:"Mute this participant?",muteParticipantBody:"You won't be able to unmute them, but they can unmute themselves at any time.",muteParticipantButton:"Mute",remoteControlTitle:"Remote desktop control",remoteControlRequestMessage:"Will you allow __user__ to remotely control your desktop?",remoteControlShareScreenWarning:'Note that if you press "Allow" you will share your screen!',remoteControlDeniedMessage:"__user__ rejected your remote control request!",remoteControlAllowedMessage:"__user__ accepted your remote control request!",remoteControlErrorMessage:"An error occurred while trying to request remote control permissions from __user__!",startRemoteControlErrorMessage:"An error occurred while trying to start the remote control session!",remoteControlStopMessage:"The remote control session ended!",close:"Close",shareYourScreen:"Share your screen",yourEntireScreen:"Your entire screen",applicationWindow:"Application window"},email:{sharedKey:["This conference is password-protected. Please use the following pin when joining:","","","__sharedKey__","",""],subject:"Invitation to a __appName__ (__conferenceName__)",body:["Hey there, I%27d like to invite you to a __appName__ conference I%27ve just set up.","","","Please click on the following link in order to join the conference.","","","__roomUrl__","","","__sharedKeyText__"," Note that __appName__ is currently only supported by __supportedBrowsers__, so you need to be using one of these browsers.","","","Talk to you in a sec!"],and:"and"},connection:{ERROR:"Error",CONNECTING:"Connecting",RECONNECTING:"A network problem occurred. Reconnecting...",CONNFAIL:"Connection failed",AUTHENTICATING:"Authenticating",AUTHFAIL:"Authentication failed",CONNECTED:"Connected",DISCONNECTED:"Disconnected",DISCONNECTING:"Disconnecting",ATTACHED:"Attached",FETCH_SESSION_ID:"Obtaining session-id...",GOT_SESSION_ID:"Obtaining session-id... Done",GET_SESSION_ID_ERROR:"Get session-id error: __code__",USER_CONNECTION_INTERRUPTED:"__displayName__ is having connectivity issues...",LOW_BANDWIDTH:"Video for __displayName__ has been turned off to save bandwidth"},recording:{pending:"Recording waiting for a participant to join...",on:"Recording",off:"Recording stopped",failedToStart:"Recording failed to start",buttonTooltip:"Start / Stop recording",error:"Recording failed. Please try again.",unavailable:"The recording service is currently unavailable. Please try again later."},liveStreaming:{pending:"Starting Live Stream...",on:"Live Streaming",off:"Live Streaming Stopped",unavailable:"The live streaming service is currently unavailable. Please try again later.",failedToStart:"Live streaming failed to start",buttonTooltip:"Start / Stop live stream",streamIdRequired:"Please fill in the stream id in order to launch the live streaming.",streamIdHelp:"Where do I find this?",error:"Live streaming failed. Please try again.",busy:"All recorders are currently busy. Please try again later."},speakerStats:{hours:"__count__h",minutes:"__count__m",name:"Name",seconds:"__count__s",speakerStats:"Speaker Stats",speakerTime:"Speaker Time"},deviceSelection:{deviceSettings:"Device settings",noPermission:"Permission not granted",previewUnavailable:"Preview unavailable",selectADevice:"Select a device",testAudio:"Test sound"},invite:{addPassword:"Add password",callNumber:"Call __number__",enterID:"Enter Meeting ID: __conferenceID__ following by # to dial in from a phone",howToDialIn:"To dial in, use one of the following numbers and meeting ID",hidePassword:"Hide password",inviteTo:"Invite people to __conferenceName__",invitedYouTo:"__userName__ has invited you to the __inviteURL__ conference",locked:"This call is locked. New callers must have the link and enter the password to join.",showPassword:"Show password",unlocked:"This call is unlocked. Any new caller with the link may join the call."},videoStatus:{callQuality:"Call Quality",changeVideoTip:"Change your video quality from the left toolbar.",hd:"HD",highDefinition:"High definition",ld:"LD",lowDefinition:"Low definition",p2pEnabled:"Peer to Peer Enabled",p2pVideoQualityDescription:"In peer to peer mode, received call quality can only be toggled between high and audio only. Other settings will not be honored until peer to peer is exited.",recHighDefinitionOnly:"Will prefer high definition.",sd:"SD",standardDefinition:"Standard definition",qualityButtonTip:"Change received video quality"},dialOut:{dial:"Dial",dialOut:"Call a phone number",statusMessage:"is now __status__",enterPhone:"Enter phone number",phoneNotAllowed:"Oh, we don't support that destination yet! Sorry!"},addPeople:{add:"Add",noResults:"No matching search results",searchPlaceholder:"Search for people and rooms to add",title:"Add people to your call",failedToAdd:"Failed to add participants"},inlineDialogFailure:{msg:"We stumbled a bit.",retry:"Try again",support:"Support",supportMsg:"If this keeps happening, reach out to"},deviceError:{cameraPermission:"Error obtaining camera permission",microphonePermission:"Error obtaining microphone permission"},feedback:{average:"Average",bad:"Bad",good:"Good",rateExperience:"Please rate your meeting experience.",veryBad:"Very Bad",veryGood:"Very Good"}}},658);
__d(function(e,t,n,u){Object.defineProperty(u,"__esModule",{value:!0});var o=t(660),r=babelHelpers.interopRequireDefault(o);u.default={cacheUserLanguage:Function.prototype,detect:function(){return r.default},init:Function.prototype,type:"languageDetector"}},659);
__d(function(e,l,a,d){Object.defineProperty(d,"__esModule",{value:!0});var o=l(64),t=o.NativeModules,u=t.RNI18n;d.default=u?u.locale.replace(/_/,"-"):""},660);
__d(function(t,e,n,r){function i(t,e,n){var r=t.getState,i=r()["features/base/config"],u=e(n);return i!==r()["features/base/config"]&&"object"==typeof APP&&APP.translation.init(),u}var u=e(458);e(467).MiddlewareRegistry.register(function(t){return function(e){return function(n){switch(n.type){case u.SET_CONFIG:return i(t,e,n)}return e(n)}}})},661);
__d(function(e,t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var s=t(34),i=babelHelpers.interopRequireDefault(s),l=t(619),r=t(663),p=function(e){function t(e){babelHelpers.classCallCheck(this,t);var n=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onCancel=n._onCancel.bind(n),n._onSubmit=n._onSubmit.bind(n),n}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"_onCancel",value:function(){var e=!0;this.props.onCancel&&(e=this.props.onCancel()),e&&this.props.dispatch((0,l.hideDialog)())}},{key:"_onSubmit",value:function(e){var t=!0;this.props.onSubmit&&(t=this.props.onSubmit(e)),t&&this.props.dispatch((0,l.hideDialog)())}}]),t}(s.Component);p.propTypes=babelHelpers.extends({},r.DIALOG_PROP_TYPES,{dispatch:i.default.PropTypes.func}),o.default=p},662);
__d(function(e,t,l,o){Object.defineProperty(o,"__esModule",{value:!0}),o.DIALOG_PROP_TYPES=void 0;var p=t(34),r=babelHelpers.interopRequireDefault(p);o.DIALOG_PROP_TYPES={cancelDisabled:r.default.PropTypes.bool,cancelTitleKey:r.default.PropTypes.string,okDisabled:r.default.PropTypes.bool,okTitleKey:r.default.PropTypes.string,onCancel:r.default.PropTypes.func,onSubmit:r.default.PropTypes.func,t:r.default.PropTypes.func,titleKey:r.default.PropTypes.string,titleString:r.default.PropTypes.string}},663);
__d(function(n,_,c,d){},664);
__d(function(n,e,o,t){var r=e(467),s=e(620);r.ReducerRegistry.register("features/base/dialog",function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];switch(e.type){case s.HIDE_DIALOG:return(0,r.assign)(n,{component:void 0,componentProps:void 0});case s.OPEN_DIALOG:return(0,r.assign)(n,{component:e.component,componentProps:e.componentProps})}return n})},665);
__d(function(e,r,t,u){Object.defineProperty(u,"__esModule",{value:!0});var n=r(667);Object.defineProperty(u,"RoomLockPrompt",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(n).default}});var o=r(668);Object.defineProperty(u,"PasswordRequiredPrompt",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(o).default}})},666);
__d(function(e,t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var r=t(34),l=babelHelpers.interopRequireDefault(r),a=t(557),i=t(618),s=t(617),u=function(e){function t(e){babelHelpers.classCallCheck(this,t);var n=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onCancel=n._onCancel.bind(n),n._onSubmit=n._onSubmit.bind(n),n}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return l.default.createElement(i.Dialog,{bodyKey:"dialog.passwordLabel",onCancel:this._onCancel,onSubmit:this._onSubmit,titleKey:"toolbar.lock"})}},{key:"_onCancel",value:function(){return this._onSubmit(void 0)}},{key:"_onSubmit",value:function(e){return this.props.dispatch((0,s.endRoomLockRequest)(this.props.conference,e)),!1}}]),t}(r.Component);u.propTypes={conference:l.default.PropTypes.object,dispatch:l.default.PropTypes.func},o.default=(0,a.connect)()(u)},667);
__d(function(e,t,n,o){Object.defineProperty(o,"__esModule",{value:!0});var r=t(34),l=babelHelpers.interopRequireDefault(r),a=t(557),i=t(618),s=t(394),u=function(e){function t(e){babelHelpers.classCallCheck(this,t);var n=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n._onCancel=n._onCancel.bind(n),n._onSubmit=n._onSubmit.bind(n),n}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return l.default.createElement(i.Dialog,{bodyKey:"dialog.passwordLabel",onCancel:this._onCancel,onSubmit:this._onSubmit,titleKey:"dialog.passwordRequired"})}},{key:"_onCancel",value:function(){return this._onSubmit(void 0)}},{key:"_onSubmit",value:function(e){var t=this.props.conference;return this.props.dispatch((0,s.setPassword)(t,t.join,e)),!0}}]),t}(r.Component);u.propTypes={conference:l.default.PropTypes.object,dispatch:l.default.PropTypes.func},o.default=(0,a.connect)()(u)},668);
__d(function(L,O,E,_){Object.defineProperty(_,"__esModule",{value:!0});_.LOCKED_LOCALLY="LOCKED_LOCALLY",_.LOCKED_REMOTELY="LOCKED_REMOTELY"},669);
__d(function(e,r,o,n){function t(e,r,o){if("undefined"!=typeof APP){var n=o.error,t=void 0,i=void 0;n===d.JitsiConferenceErrors.PASSWORD_NOT_SUPPORTED?(l.warn("room passwords not supported"),t="dialog.warning",i="dialog.passwordNotSupported"):(l.warn("setting password failed",n),t="dialog.lockTitle",i="dialog.lockMessage"),APP.UI.messageHandler.showError(t,i)}return r(o)}var i=r(603),a=babelHelpers.interopRequireDefault(i),s=r(394),d=r(396),f=r(467),u=r(617),l=r(426).getLogger(__filename);f.MiddlewareRegistry.register(function(e){return function(r){return function(o){switch(o.type){case s.CONFERENCE_FAILED:var n=o.conference,i=o.error;n&&i===d.JitsiConferenceErrors.PASSWORD_REQUIRED&&("undefined"!=typeof APP&&APP.UI.emitEvent(a.default.TOGGLE_ROOM_LOCK,!0),e.dispatch((0,u._showPasswordDialog)(n)));break;case s.LOCK_STATE_CHANGED:"undefined"!=typeof APP&&APP.UI.emitEvent(a.default.TOGGLE_ROOM_LOCK,o.locked);break;case s.SET_PASSWORD_FAILED:return t(e,r,o)}return r(o)}}})},670);
__d(function(_,P,L,e){Object.defineProperty(e,"__esModule",{value:!0});e.APP_WILL_MOUNT=Symbol("APP_WILL_MOUNT"),e.APP_WILL_UNMOUNT=Symbol("APP_WILL_UNMOUNT")},671);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(673);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})})},672);
__d(function(e,t,n,o){function r(e,t){if(t)console.error(e);else{var n=r.next;"function"==typeof n&&n(e,t)}}Object.defineProperty(o,"__esModule",{value:!0}),o.App=void 0;var l=t(34),i=babelHelpers.interopRequireDefault(l),p=t(64),a=t(538);t(674),t(676),t(681),t(683),t(576),t(686),t(688);var s=t(691);(o.App=function(t){function n(e){babelHelpers.classCallCheck(this,n);var t=babelHelpers.possibleConstructorReturn(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t._onLinkingURL=t._onLinkingURL.bind(t),t._maybeDisableExceptionsManager(),t}return babelHelpers.inherits(n,t),babelHelpers.createClass(n,[{key:"componentWillMount",value:function(){babelHelpers.get(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"componentWillMount",this).call(this),p.Linking.addEventListener("url",this._onLinkingURL)}},{key:"componentWillUnmount",value:function(){p.Linking.removeEventListener("url",this._onLinkingURL),babelHelpers.get(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"componentWillUnmount",this).call(this)}},{key:"_maybeDisableExceptionsManager",value:function(){if("android"===a.Platform.OS){var t=e.ErrorUtils.getGlobalHandler(),n=r;t&&t===n||(n.next=t,e.ErrorUtils.setGlobalHandler(n))}}},{key:"_onLinkingURL",value:function(e){var t=e.url;this._openURL(t)}}]),n}(s.AbstractApp)).propTypes=babelHelpers.extends({},s.AbstractApp.propTypes,{welcomePageEnabled:i.default.PropTypes.bool})},673);
__d(function(n,_,c,d){_(675)},674);
__d(function(e,r,n,t){var o=r(64),c=r(392),a=r(394);r(467).MiddlewareRegistry.register(function(e){var r=e.getState;return function(e){return function(n){var t=o.NativeModules.AudioMode;if(t){var i=void 0;switch(n.type){case c.APP_WILL_MOUNT:case a.CONFERENCE_FAILED:case a.CONFERENCE_LEFT:i=t.DEFAULT;break;case a.CONFERENCE_WILL_JOIN:case a.SET_AUDIO_ONLY:(r()["features/base/conference"].conference||n.conference)&&(i=n.audioOnly?t.AUDIO_CALL:t.VIDEO_CALL)}void 0!==i&&t.setMode(i).catch(function(e){return console.error("Failed to set audio mode "+String(i)+": "+e)})}return e(n)}}})},675);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(677);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(678);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})}),t(679),t(680)},676);
__d(function(e,t,n,u){function r(e){return{type:d._SET_APP_STATE_LISTENER,listener:e}}function _(e){return function(t,n){n()["features/base/conference"].audioOnly||t((0,o.setLastN)(e?0:void 0)),t((0,i.setVideoMuted)(e,i.VIDEO_MUTISM_AUTHORITY.BACKGROUND))}}function a(e){return{type:d.APP_STATE_CHANGED,appState:e}}Object.defineProperty(u,"__esModule",{value:!0}),u._setAppStateListener=r,u._setBackgroundVideoMuted=_,u.appStateChanged=a;var o=t(394),i=t(579),d=t(678)},677);
__d(function(_,E,T,A){Object.defineProperty(A,"__esModule",{value:!0});A._SET_APP_STATE_LISTENER=Symbol("_SET_APP_STATE_LISTENER"),A.APP_STATE_CHANGED=Symbol("APP_STATE_CHANGED")},678);
__d(function(e,t,a,n){function r(e,t){var a=void 0;switch(t){case"active":a=!1;break;case"background":a=!0;break;case"inactive":default:return}e((0,p._setBackgroundVideoMuted)(a))}function i(e,t){e((0,p.appStateChanged)(t))}var c=t(64),s=t(392),d=t(467),p=t(677),u=t(678);d.MiddlewareRegistry.register(function(e){return function(t){return function(a){switch(a.type){case u._SET_APP_STATE_LISTENER:var n=e.getState()["features/background"].appStateListener;n&&c.AppState.removeEventListener("change",n),a.listener&&c.AppState.addEventListener("change",a.listener);break;case u.APP_STATE_CHANGED:r(e.dispatch,a.appState);break;case s.APP_WILL_MOUNT:e.dispatch((0,p._setAppStateListener)(i.bind(void 0,e.dispatch)));break;case s.APP_WILL_UNMOUNT:e.dispatch((0,p._setAppStateListener)(null))}return t(a)}}})},679);
__d(function(e,t,r,a){var n=t(467),s=t(678);n.ReducerRegistry.register("features/background",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case s._SET_APP_STATE_LISTENER:return babelHelpers.extends({},e,{appStateListener:t.listener});case s.APP_STATE_CHANGED:return babelHelpers.extends({},e,{appState:t.appState})}return e})},680);
__d(function(n,_,c,d){_(682)},681);
__d(function(e,t,r,E){function n(e,t,r){var E=e.getState(),n=E["features/app"].app;if(n){var s=n.props.externalAPIScope;s&&a.NativeModules.ExternalAPI.sendEvent(t,r,s)}}var a=t(64),s=t(394),i=t(467),c=t(491);i.MiddlewareRegistry.register(function(e){return function(t){return function(r){var E=t(r);switch(r.type){case s.CONFERENCE_FAILED:case s.CONFERENCE_JOINED:case s.CONFERENCE_LEFT:case s.CONFERENCE_WILL_JOIN:case s.CONFERENCE_WILL_LEAVE:var a=r.conference,i=r.type,o=babelHelpers.objectWithoutProperties(r,["conference","type"]);a&&(o.url=(0,c.toURLString)(a[s.JITSI_CONFERENCE_URL_KEY]));var N=i.toString();N.startsWith("Symbol(")&&N.endsWith(")")&&(N=N.slice(7,-1)),N.startsWith("@@")&&(N=N.slice(2)),n(e,N,o)}return E}}})},682);
__d(function(n,_,c,d){_(684)},683);
__d(function(e,r,n,t){function a(e){return"android"===f.Platform.OS?e?i.Immersive.on():i.Immersive.off():(c.StatusBar.setHidden(e,"slide"),Promise.resolve())}var c=r(64),i=r(685),o=r(676),s=r(394),u=r(618),f=r(538);r(467).MiddlewareRegistry.register(function(e){var r=e.getState;return function(e){return function(n){var t=e(n),c=null;switch(n.type){case o.APP_STATE_CHANGED:case s.CONFERENCE_WILL_JOIN:case u.HIDE_DIALOG:case s.SET_AUDIO_ONLY:var i=n.appState;if(void 0!==i&&"active"!==i)break;var f=r()["features/base/conference"],E=f.audioOnly;c=!(!f.conference&&!n.conference||E);break;case s.CONFERENCE_FAILED:case s.CONFERENCE_LEFT:c=!1}return null!==c&&a(c).catch(function(e){return console.warn("Failed to set full screen mode: "+e)}),t}}})},684);
__d(function(e,r,o,n){function t(){throw new Error("[react-native-immersive] does not support iOS")}Object.defineProperty(n,"__esModule",{value:!0}),n.Immersive=void 0;var i=r(64),m=i.NativeModules.RNImmersive,f="android"===i.Platform.OS?{on:function(){return m.on()},off:function(){return m.off()},setImmersive:function(e){return m.setImmersive(e)}}:{on:t,off:t,setImmersive:t};n.Immersive=f,n.default=f},685);
__d(function(n,_,c,d){_(687)},686);
__d(function(e,n,r,t){function a(e){c.NativeModules.Proximity.setEnabled(Boolean(e))}var c=n(64),E=n(394);n(467).MiddlewareRegistry.register(function(e){var n=e.getState;return function(e){return function(r){var t=e(r);switch(r.type){case E.CONFERENCE_FAILED:case E.CONFERENCE_LEFT:a(!1);break;case E.CONFERENCE_JOINED:case E.SET_AUDIO_ONLY:var c=n()["features/base/conference"],i=c.audioOnly;c.conference&&a(i)}return t}}})},687);
__d(function(n,_,c,d){_(689)},688);
__d(function(e,t,a,n){function r(e){e?u.default.activate():u.default.deactivate()}var i=t(690),u=babelHelpers.interopRequireDefault(i),c=t(394);t(467).MiddlewareRegistry.register(function(e){return function(t){return function(a){switch(a.type){case c.CONFERENCE_JOINED:r(!e.getState()["features/base/conference"].audioOnly);break;case c.CONFERENCE_FAILED:case c.CONFERENCE_LEFT:r(!1);break;case c.SET_AUDIO_ONLY:r(!a.audioOnly)}return t(a)}}})},689);
__d(function(e,t,n,a){Object.defineProperty(a,"__esModule",{value:!0});var l=t(34),i=(babelHelpers.interopRequireDefault(l),t(64)),o=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"componentWillMount",value:function(){t.activate()}},{key:"componentWillUnmount",value:function(){t.deactivate()}},{key:"render",value:function(){return this.props.children||null}}],[{key:"activate",value:function(){i.NativeModules.KCKeepAwake.activate()}},{key:"deactivate",value:function(){i.NativeModules.KCKeepAwake.deactivate()}}]),t}(l.Component);a.default=o},690);
__d(function(e,t,r,o){Object.defineProperty(o,"__esModule",{value:!0}),o.AbstractApp=void 0;var a=t(559),i=babelHelpers.interopRequireDefault(a),n=t(34),s=babelHelpers.interopRequireDefault(n),l=t(629),u=t(557),p=t(470),c=t(692),f=babelHelpers.interopRequireDefault(c),d=t(627),v=t(502),h=t(538),b=t(467),g=t(491),y=t(393);(o.AbstractApp=function(e){function t(e){babelHelpers.classCallCheck(this,t);var r=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.state={route:void 0,store:r._maybeCreateStore(e)},r}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"componentWillMount",value:function(){var e=this._getStore().dispatch;e((0,y.appWillMount)(this));var t=void 0;"object"==typeof APP&&(t={avatarID:APP.settings.getAvatarId(),avatarURL:APP.settings.getAvatarUrl(),email:APP.settings.getEmail(),name:APP.settings.getDisplayName()}),e((0,v.localParticipantJoined)(t)),this._openURL((0,g.toURLString)(this.props.url)||this._getDefaultURL())}},{key:"componentWillReceiveProps",value:function(e){void 0===e.store&&void 0!==this.props.store&&this.setState({store:this._maybeCreateStore(e)});var t=e.url;t=(0,g.toURLString)(t),(0,g.toURLString)(this.props.url)===t&&this.props.timestamp===e.timestamp||this._openURL(t||this._getDefaultURL())}},{key:"componentWillUnmount",value:function(){var e=this._getStore().dispatch;e((0,v.localParticipantLeft)()),e((0,y.appWillUnmount)(this))}},{key:"getWindowLocation",value:function(){}},{key:"render",value:function(){var e=this.state.route;return e?s.default.createElement(l.I18nextProvider,{i18n:d.i18next},s.default.createElement(u.Provider,{store:this._getStore()},this._createElement(e.component))):null}},{key:"_createElement",value:function(e,t){var r=this.props,o=(r.dispatch,r.store,r.defaultURL,r.url,babelHelpers.objectWithoutProperties(r,["dispatch","store","defaultURL","url"]));return s.default.createElement(e,babelHelpers.extends({},o,t))}},{key:"_createStore",value:function(){var e=b.ReducerRegistry.combineReducers(),t=b.MiddlewareRegistry.applyMiddleware(f.default),r=void 0;return"object"==typeof window&&(r=window.devToolsExtension)&&(t=(0,p.compose)(t,r())),(0,p.createStore)(e,t)}},{key:"_getDefaultURL",value:function(){var e=this.getWindowLocation();if(e){var t=e.toString();if(t)return t}return this.props.defaultURL||"https://meet.jit.si"}},{key:"_getStore",value:function(){var e=this.state.store;return void 0===e&&(e=this.props.store),e}},{key:"_maybeCreateStore",value:function(e){var t=e.store;return void 0===t&&(t=this._createStore(),"undefined"!=typeof APP&&(APP.store=t)),t}},{key:"_navigate",value:function(e){var t=this;if(h.RouteRegistry.areRoutesEqual(this.state.route,e))return Promise.resolve();var r={route:e};return e&&this._onRouteEnter(e,r,function(e){t._openURL(e),r=void 0}),new Promise(function(e){r?t.setState(r,e):e()})}},{key:"_onRouteEnter",value:function(e){for(var t=e.onEnter,r=arguments.length,o=Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];"function"==typeof t&&t.apply(void 0,o)}},{key:"_openURL",value:function(e){this._getStore().dispatch((0,y.appNavigate)((0,g.toURLString)(e)))}}]),t}(n.Component)).propTypes={defaultURL:i.default.string,store:i.default.object,timestamp:i.default.any,url:i.default.oneOfType([i.default.object,i.default.string])}},691);
__d(function(t,n,u,r){"use strict";function e(t){return function(n){var u=n.dispatch,r=n.getState;return function(n){return function(e){return"function"==typeof e?e(u,r,t):n(e)}}}}r.__esModule=!0;var i=e();i.withExtraArgument=e,r.default=i},692);
__d(function(e,o,n,t){function r(e){var o="function"==typeof e?e():e,n=o["features/base/conference"].room,t=void 0;if((0,a.isRoomValid)(n))t=f.Conference;else{var r=o["features/app"].app;t=r&&r.props.welcomePageEnabled?c.WelcomePage:null}return u.RouteRegistry.getRouteByComponent(t)}Object.defineProperty(t,"__esModule",{value:!0}),t._getRouteToRender=r;var a=o(394),u=o(538),f=o(694),c=o(979)},693);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(695);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})}),t(977)},694);
__d(function(e,r,n,t){Object.defineProperty(t,"__esModule",{value:!0});var u=r(696);Object.defineProperty(t,"Conference",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(u).default}})},695);
__d(function(e,o,t,l){function n(e){return{_onConnect:function(){e((0,r.connect)())},_onDisconnect:function(){e((0,r.disconnect)())},_setToolboxVisible:function(o){e((0,T.setToolboxVisible)(o))}}}function i(e){return{_toolboxVisible:e["features/toolbox"].visible}}Object.defineProperty(l,"__esModule",{value:!0});var u=o(34),s=babelHelpers.interopRequireDefault(u),c=o(557),r=o(610),a=o(618),b=o(538),p=o(697),_=o(893),f=o(901),T=o(918),m=o(976),d=babelHelpers.interopRequireDefault(m),h=function(e){function o(e){babelHelpers.classCallCheck(this,o);var t=babelHelpers.possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,e));return t._toolboxTimeout=void 0,t._onClick=t._onClick.bind(t),t}return babelHelpers.inherits(o,e),babelHelpers.createClass(o,[{key:"componentDidMount",value:function(){this._setToolboxTimeout(this.props._toolboxVisible)}},{key:"componentWillMount",value:function(){this.props._onConnect()}},{key:"componentWillUnmount",value:function(){this._clearToolboxTimeout(),this.props._onDisconnect()}},{key:"render",value:function(){return s.default.createElement(b.Container,{onClick:this._onClick,style:d.default.conference,touchFeedback:!1},s.default.createElement(_.LargeVideo,null),s.default.createElement(p.Filmstrip,null),s.default.createElement(f.OverlayContainer,null),s.default.createElement(T.Toolbox,null),s.default.createElement(a.DialogContainer,null))}},{key:"_clearToolboxTimeout",value:function(){this._toolboxTimeout&&(clearTimeout(this._toolboxTimeout),this._toolboxTimeout=void 0)}},{key:"_onClick",value:function(){var e=!this.props._toolboxVisible;this.props._setToolboxVisible(e),this._setToolboxTimeout(e)}},{key:"_setToolboxTimeout",value:function(e){this._clearToolboxTimeout(),e&&(this._toolboxTimeout=setTimeout(this._onClick,5e3))}}]),o}(u.Component);h.propTypes={_onConnect:s.default.PropTypes.func,_onDisconnect:s.default.PropTypes.func,_setToolboxVisible:s.default.PropTypes.func,_toolboxVisible:s.default.PropTypes.bool},l.default=(0,c.connect)(i,n)(h)},696);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(698);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(699);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})});var c=t(700);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}})}),t(877),t(892)},697);
__d(function(i,e,t,I){function s(i){return{type:_.SET_FILMSTRIP_REMOTE_VIDEOS_VISIBLITY,remoteVideosVisible:i}}function r(i){return{type:_.SET_FILMSTRIP_VISIBILITY,visible:i}}Object.defineProperty(I,"__esModule",{value:!0}),I.setFilmstripRemoteVideosVisibility=s,I.setFilmstripVisibility=r;var _=e(699)},698);
__d(function(I,S,_,T){Object.defineProperty(T,"__esModule",{value:!0});T.SET_FILMSTRIP_REMOTE_VIDEOS_VISIBLITY=Symbol("SET_FILMSTRIP_REMOTE_VIDEOS_VISIBLITY"),T.SET_FILMSTRIP_VISIBILITY=Symbol("SET_FILMSTRIP_VISIBILITY")},699);
__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0});var u=t(701);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return u[e]}})});var f=t(875);Object.defineProperty(n,"Filmstrip",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(f).default}})},700);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(702);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})})},701);
__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0});var u=t(703);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return u[e]}})});var f=t(865);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return f[e]}})});var o=t(873);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return o[e]}})});var c=t(863);Object.defineProperty(n,"styles",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(c).default}});var a=t(874);Object.keys(a).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(n,e,{enumerable:!0,get:function(){return a[e]}})})},702);
__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0}),l.AudioMutedIndicator=void 0;var n=t(34),a=babelHelpers.interopRequireDefault(n),i=t(704),o=t(863),u=babelHelpers.interopRequireDefault(o);l.AudioMutedIndicator=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return a.default.createElement(i.Icon,{name:"mic-disabled",style:u.default.thumbnailIndicator})}}]),t}(n.Component)},703);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(705);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})})},704);
__d(function(e,o,n,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Icon=void 0;var t=o(706),c=o(862),a=babelHelpers.interopRequireDefault(c);r.Icon=(0,t.createIconSetFromIcoMoon)(a.default)},705);
__d(function(e,t,r,n){function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var u=t(707);Object.defineProperty(n,"createIconSet",{enumerable:!0,get:function(){return o(u).default}});var c=t(860);Object.defineProperty(n,"createIconSetFromFontello",{enumerable:!0,get:function(){return o(c).default}});var a=t(861);Object.defineProperty(n,"createIconSetFromIcoMoon",{enumerable:!0,get:function(){return o(a).default}})},706);
__d(function(e,r,t,o){function n(e){return e&&e.__esModule?e:{default:e}}function a(e){if(Array.isArray(e)){for(var r=0,t=Array(e.length);r<e.length;r++)t[r]=e[r];return t}return Array.from(e)}function i(e,r){var t={};for(var o in e)r.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}function l(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function c(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r}function u(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}function f(e,r,t){function o(){if(!N){if("android"===m.Platform.OS)throw new Error("RNVectorIconsModule not available, did you properly integrate the module? Try running `react-native link react-native-vector-icons` and recompiling.");throw new Error("RNVectorIconsManager not available, did you add the library to your project and link with libRNVectorIcons.a? Try running `react-native link react-native-vector-icons` and recompiling.")}}function n(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I;o();var a=e[r]||"?";"number"==typeof a&&(a=String.fromCharCode(a));var i=(0,m.processColor)(n),l=a+":"+t+":"+i,c=m.PixelRatio.get();return new Promise(function(e,r){var o=_[l];void 0!==o?!o||o instanceof Error?r(o):e({uri:o,scale:c}):N.getImageForFont(h,a,t,i,function(t,o){var n="string"==typeof t?new Error(t):t;_[l]=o||n||!1,!n&&o?e({uri:o,scale:c}):r(n)})})}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t;return"ios"===m.Platform.OS?(o(),e?N.loadFontWithFileName.apply(N,a(e.split("."))):Promise.reject(new Error("Unable to load font, because no file was specified. "))):Promise.resolve()}var h=r;"android"===m.Platform.OS&&t&&(h=t.replace(/\.(otf|ttf)$/,"")),"windows"===m.Platform.OS&&t&&(h="Assets/"+t+"#"+r);var g=b.default.oneOf(Object.keys(e)),O=function(r){function t(){var e,r,o,n;l(this,t);for(var a=arguments.length,i=Array(a),u=0;u<a;u++)i[u]=arguments[u];return r=o=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),o.root=null,o.handleRef=function(e){o.root=e},n=r,c(o,n)}return u(t,r),p(t,[{key:"setNativeProps",value:function(e){this.root&&this.root.setNativeProps(e)}},{key:"render",value:function(){var r=this.props,t=r.name,o=r.size,n=r.color,a=r.style,l=i(r,["name","size","color","style"]),c=t?e[t]||"?":"";"number"==typeof c&&(c=String.fromCharCode(c));var u={fontSize:o,color:n},f={fontFamily:h,fontWeight:"normal",fontStyle:"normal"};return l.style=[u,a,f],l.ref=this.handleRef,v.default.createElement(m.Text,s({},l,{__source:{fileName:d,lineNumber:82}}),c,this.props.children)}}]),t}(y.Component);O.propTypes={name:g,size:b.default.number,color:b.default.string,children:b.default.node,style:b.default.any},O.defaultProps={size:S,allowFontScaling:!1};var _={};return O.Button=(0,w.default)(O),O.TabBarItem=(0,P.default)(g,n),O.TabBarItemIOS=O.TabBarItem,O.ToolbarAndroid=(0,j.default)(g,n),O.getImageSource=n,O.loadFont=f,O}Object.defineProperty(o,"__esModule",{value:!0});var s=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},d="./lib/create-icon-set.js",p=function(){function e(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(r,t,o){return t&&e(r.prototype,t),o&&e(r,o),r}}();o.default=f;var y=r(34),v=n(y),h=r(559),b=n(h),m=r(708),g=r(709),w=n(g),O=r(847),P=n(O),_=r(859),j=n(_),N=m.NativeModules.RNVectorIconsManager||m.NativeModules.RNVectorIconsModule,S=12,I="black"},707);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(64);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})})},708);
__d(function(e,t,r,n){function o(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function c(e){var t,r;return r=t=function(t){function r(){return a(this,r),i(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return u(r,t),d(r,[{key:"render",value:function(){var t=this.props,r=t.style,n=t.iconStyle,o=t.children,a=l(t,["style","iconStyle","children"]),i=(0,m.default)(a,Object.keys(w.Text.propTypes),"style","name","size","color"),u=(0,m.default)(a,Object.keys(w.TouchableHighlight.propTypes)),c=(0,h.default)(a,Object.keys(i),Object.keys(u),"iconStyle","borderRadius","backgroundColor");i.style=n?[k.icon,n]:k.icon;var d=(0,m.default)(this.props,"color"),p=(0,m.default)(this.props,"backgroundColor","borderRadius");return O.default.createElement(w.TouchableHighlight,f({style:[k.touchable,p]},u,{__source:{fileName:s,lineNumber:77}}),O.default.createElement(w.View,f({style:[k.container,p,r]},c,{__source:{fileName:s,lineNumber:81}}),O.default.createElement(e,f({},i,{__source:{fileName:s,lineNumber:82}})),(0,b.default)(o)?O.default.createElement(w.Text,{style:[k.text,d],__source:{fileName:s,lineNumber:84}},o):o))}}]),r}(_.Component),t.propTypes={backgroundColor:j.default.string,borderRadius:j.default.number,color:j.default.string,size:j.default.number,iconStyle:j.default.any,style:j.default.any,children:j.default.node},t.defaultProps={backgroundColor:T,borderRadius:5,color:"white",size:20},r}Object.defineProperty(n,"__esModule",{value:!0});var f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},s="./lib/icon-button.js",d=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();n.default=c;var p=t(710),b=o(p),y=t(712),h=o(y),g=t(840),m=o(g),_=t(34),O=o(_),v=t(559),j=o(v),w=t(708),k=w.StyleSheet.create({container:{flexDirection:"row",justifyContent:"flex-start",alignItems:"center",padding:8},touchable:{overflow:"hidden"},icon:{marginRight:10},text:{fontWeight:"600",backgroundColor:"transparent"}}),T="#007AFF"},709);
__d(function(t,n,r,o){function e(t){return"string"==typeof t||!c(t)&&f(t)&&i(t)==u}var i=n(473),c=n(711),f=n(481),u="[object String]";r.exports=e},710);
__d(function(r,a,i,n){var o=Array.isArray;i.exports=o},711);
__d(function(n,r,t,u){var e=r(713),f=r(714),o=r(814),a=r(815),i=r(758),l=r(828),v=r(829),c=r(791),g=v(function(n,r){var t={};if(null==n)return t;var u=!1;r=e(r,function(r){return r=a(r,n),u||(u=r.length>1),r}),i(n,c(n),t),u&&(t=f(t,7,l));for(var v=r.length;v--;)o(t,r[v]);return t});t.exports=g},712);
__d(function(n,r,t,o){function u(n,r){for(var t=-1,o=null==n?0:n.length,u=Array(o);++t<o;)u[t]=r(n[t],t,n);return u}t.exports=u},713);
__d(function(t,e,r,o){function c(t,e,r,o,_,C){var G,N=e&S,O=e&k,R=e&w;if(r&&(G=_?r(t,o,_,C):r(t)),void 0!==G)return G;if(!I(t))return t;var V=m(t);if(V){if(G=p(t),!N)return f(t,G)}else{var W=s(t),h=W==B||W==D;if(F(t))return u(t,N);if(W==E||W==x||h&&!_){if(G=O||h?{}:g(t),!N)return O?A(t,i(G,t)):y(t,j(G,t))}else{if(!M[W])return _?t:{};G=d(t,W,c,N)}}C||(C=new n);var q=C.get(t);if(q)return q;C.set(t,G);var z=R?O?l:v:O?keysIn:U,H=V?void 0:z(t);return b(H||t,function(o,n){H&&(n=o,o=t[n]),a(G,n,c(o,e,r,n,t,C))}),G}var n=e(715),b=e(753),a=e(754),j=e(757),i=e(776),u=e(780),f=e(781),y=e(782),A=e(786),v=e(789),l=e(791),s=e(792),p=e(797),d=e(798),g=e(812),m=e(711),F=e(764),I=e(733),U=e(759),S=1,k=2,w=4,x="[object Arguments]",B="[object Function]",D="[object GeneratorFunction]",E="[object Object]",M={};M[x]=M["[object Array]"]=M["[object ArrayBuffer]"]=M["[object DataView]"]=M["[object Boolean]"]=M["[object Date]"]=M["[object Float32Array]"]=M["[object Float64Array]"]=M["[object Int8Array]"]=M["[object Int16Array]"]=M["[object Int32Array]"]=M["[object Map]"]=M["[object Number]"]=M[E]=M["[object RegExp]"]=M["[object Set]"]=M["[object String]"]=M["[object Symbol]"]=M["[object Uint8Array]"]=M["[object Uint8ClampedArray]"]=M["[object Uint16Array]"]=M["[object Uint32Array]"]=!0,M["[object Error]"]=M[B]=M["[object WeakMap]"]=!1,r.exports=c},714);
__d(function(t,e,o,p){function r(t){var e=this.__data__=new s(t);this.size=e.size}var s=e(716),a=e(724),i=e(725),_=e(726),n=e(727),y=e(728);r.prototype.clear=a,r.prototype.delete=i,r.prototype.get=_,r.prototype.has=n,r.prototype.set=y,o.exports=r},715);
__d(function(t,e,o,r){function p(t){var e=-1,o=null==t?0:t.length;for(this.clear();++e<o;){var r=t[e];this.set(r[0],r[1])}}var a=e(717),l=e(718),n=e(721),s=e(722),y=e(723);p.prototype.clear=a,p.prototype.delete=l,p.prototype.get=n,p.prototype.has=s,p.prototype.set=y,o.exports=p},716);
__d(function(t,_,i,n){function s(){this.__data__=[],this.size=0}i.exports=s},717);
__d(function(t,r,a,e){function i(t){var r=this.__data__,a=n(r,t);return!(a<0)&&(a==r.length-1?r.pop():p.call(r,a,1),--this.size,!0)}var n=r(719),o=Array.prototype,p=o.splice;a.exports=i},718);
__d(function(r,n,t,e){function f(r,n){for(var t=r.length;t--;)if(o(r[t][0],n))return t;return-1}var o=n(720);t.exports=f},719);
__d(function(n,t,o,r){function u(n,t){return n===t||n!==n&&t!==t}o.exports=u},720);
__d(function(t,_,n,r){function a(t){var _=this.__data__,n=i(_,t);return n<0?void 0:_[n][1]}var i=_(719);n.exports=a},721);
__d(function(t,_,n,r){function a(t){return i(this.__data__,t)>-1}var i=_(719);n.exports=a},722);
__d(function(t,i,s,_){function n(t,i){var s=this.__data__,_=r(s,t);return _<0?(++this.size,s.push([t,i])):s[_][1]=i,this}var r=i(719);s.exports=n},723);
__d(function(t,_,i,n){function s(){this.__data__=new a,this.size=0}var a=_(716);i.exports=s},724);
__d(function(t,e,i,_){function n(t){var e=this.__data__,i=e.delete(t);return this.size=e.size,i}i.exports=n},725);
__d(function(t,_,n,e){function i(t){return this.__data__.get(t)}n.exports=i},726);
__d(function(t,_,n,a){function i(t){return this.__data__.has(t)}n.exports=i},727);
__d(function(t,i,s,_){function e(t,i){var s=this.__data__;if(s instanceof a){var _=s.__data__;if(!n||_.length<r-1)return _.push([t,i]),this.size=++s.size,this;s=this.__data__=new h(_)}return s.set(t,i),this.size=s.size,this}var a=i(716),n=i(729),h=i(738),r=200;s.exports=e},728);
__d(function(a,n,o,p){var r=n(730),t=n(475),_=r(t,"Map");o.exports=_},729);
__d(function(n,r,o,t){function i(n,r){var o=v(n,r);return u(o)?o:void 0}var u=r(731),v=r(737);o.exports=i},730);
__d(function(t,o,r,e){function n(t){return!(!a(t)||p(t))&&(c(t)?y:s).test(u(t))}var c=o(732),p=o(734),a=o(733),u=o(736),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,$=Function.prototype,f=Object.prototype,g=$.toString,l=f.hasOwnProperty,y=RegExp("^"+g.call(l).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");r.exports=n},731);
__d(function(n,t,o,c){function r(n){if(!u(n))return!1;var t=e(n);return t==b||t==j||t==i||t==a}var e=t(473),u=t(733),i="[object AsyncFunction]",b="[object Function]",j="[object GeneratorFunction]",a="[object Proxy]";o.exports=r},732);
__d(function(n,t,o,u){function c(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}o.exports=c},733);
__d(function(n,r,e,t){function c(n){return!!u&&u in n}var o=r(735),u=function(){var n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();e.exports=c},734);
__d(function(_,r,e,o){var s=r(475),a=s["__core-js_shared__"];e.exports=a},735);
__d(function(t,r,n,c){function o(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var u=Function.prototype,e=u.toString;n.exports=o},736);
__d(function(n,o,t,u){function i(n,o){return null==n?void 0:n[o]}t.exports=i},737);
__d(function(t,e,o,r){function p(t){var e=-1,o=null==t?0:t.length;for(this.clear();++e<o;){var r=t[e];this.set(r[0],r[1])}}var a=e(739),l=e(747),n=e(750),s=e(751),y=e(752);p.prototype.clear=a,p.prototype.delete=l,p.prototype.get=n,p.prototype.has=s,p.prototype.set=y,o.exports=p},738);
__d(function(n,t,i,s){function _(){this.size=0,this.__data__={hash:new a,map:new(h||e),string:new a}}var a=t(740),e=t(716),h=t(729);i.exports=_},739);
__d(function(t,e,o,r){function p(t){var e=-1,o=null==t?0:t.length;for(this.clear();++e<o;){var r=t[e];this.set(r[0],r[1])}}var a=e(741),l=e(743),n=e(744),s=e(745),y=e(746);p.prototype.clear=a,p.prototype.delete=l,p.prototype.get=n,p.prototype.has=s,p.prototype.set=y,o.exports=p},740);
__d(function(t,_,i,n){function s(){this.__data__=a?a(null):{},this.size=0}var a=_(742);i.exports=s},741);
__d(function(e,t,c,r){var a=t(730),n=a(Object,"create");c.exports=n},742);
__d(function(t,e,i,s){function _(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}i.exports=_},743);
__d(function(_,r,t,a){function n(_){var r=this.__data__;if(o){var t=r[_];return t===e?void 0:t}return i.call(r,_)?r[_]:void 0}var o=r(742),e="__lodash_hash_undefined__",d=Object.prototype,i=d.hasOwnProperty;t.exports=n},744);
__d(function(t,r,o,a){function n(t){var r=this.__data__;return _?void 0!==r[t]:c.call(r,t)}var _=r(742),e=Object.prototype,c=e.hasOwnProperty;o.exports=n},745);
__d(function(_,i,s,t){function h(_,i){var s=this.__data__;return this.size+=this.has(_)?0:1,s[_]=a&&void 0===i?n:i,this}var a=i(742),n="__lodash_hash_undefined__";s.exports=h},746);
__d(function(t,e,i,n){function r(t){var e=s(this,t).delete(t);return this.size-=e?1:0,e}var s=e(748);i.exports=r},747);
__d(function(t,n,r,a){function _(t,n){var r=t.__data__;return i(n)?r["string"==typeof n?"string":"hash"]:r.map}var i=n(749);r.exports=_},748);
__d(function(n,o,r,t){function _(n){var o=typeof n;return"string"==o||"number"==o||"symbol"==o||"boolean"==o?"__proto__"!==n:null===n}r.exports=_},749);
__d(function(t,n,r,e){function i(t){return o(this,t).get(t)}var o=n(748);r.exports=i},750);
__d(function(n,t,r,i){function o(n){return s(this,n).has(n)}var s=t(748);r.exports=o},751);
__d(function(i,s,t,e){function n(i,s){var t=r(this,i),e=t.size;return t.set(i,s),this.size+=t.size==e?0:1,this}var r=s(748);t.exports=n},752);
__d(function(n,r,t,o){function u(n,r){for(var t=-1,o=null==n?0:n.length;++t<o&&!1!==r(n[t],t,n););return n}t.exports=u},753);
__d(function(o,t,n,r){function a(o,t,n){var r=o[t];p.call(o,t)&&e(r,n)&&(void 0!==n||t in o)||c(o,t,n)}var c=t(755),e=t(720),i=Object.prototype,p=i.hasOwnProperty;n.exports=a},754);
__d(function(e,n,o,r){function _(e,n,o){"__proto__"==n&&a?a(e,n,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[n]=o}var a=n(756);o.exports=_},755);
__d(function(r,t,e,n){var c=t(730),o=function(){try{var r=c(Object,"defineProperty");return r({},"",{}),r}catch(r){}}();e.exports=o},756);
__d(function(n,r,t,o){function u(n,r){return n&&c(r,e(r),n)}var c=r(758),e=r(759);t.exports=u},757);
__d(function(r,n,o,v){function t(r,n,o,v){var t=!o;o||(o={});for(var d=-1,e=n.length;++d<e;){var f=n[d],u=v?v(o[f],r[f],f,o,r):void 0;void 0===u&&(u=r[f]),t?i(o,f,u):a(o,f,u)}return o}var a=n(754),i=n(755);o.exports=t},758);
__d(function(n,r,t,o){function u(n){return f(n)?c(n):e(n)}var c=r(760),e=r(772),f=r(775);t.exports=u},759);
__d(function(t,e,n,r){function f(t,e){var n=h(t),r=!n&&a(t),f=!n&&!r&&p(t),s=!n&&!r&&!f&&l(t),b=n||r||f||s,c=b?o(t.length,String):[],i=c.length;for(var y in t)!e&&!u.call(t,y)||b&&("length"==y||f&&("offset"==y||"parent"==y)||s&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||g(y,i))||c.push(y);return c}var o=e(761),a=e(762),h=e(711),p=e(764),g=e(766),l=e(767),s=Object.prototype,u=s.hasOwnProperty;n.exports=f},760);
__d(function(r,n,o,t){function f(r,n){for(var o=-1,t=Array(r);++o<r;)t[o]=n(o);return t}o.exports=f},761);
__d(function(e,r,t,n){var l=r(763),c=r(481),o=Object.prototype,a=o.hasOwnProperty,p=o.propertyIsEnumerable,u=l(function(){return arguments}())?l:function(e){return c(e)&&a.call(e,"callee")&&!p.call(e,"callee")};t.exports=u},762);
__d(function(n,t,r,e){function o(n){return c(n)&&u(n)==f}var u=t(473),c=t(481),f="[object Arguments]";r.exports=o},763);
__d(function(e,o,f,t){var p=o(475),d=o(765),r="object"==typeof t&&t&&!t.nodeType&&t,i=r&&"object"==typeof f&&f&&!f.nodeType&&f,n=i&&i.exports===r,y=n?p.Buffer:void 0,c=y?y.isBuffer:void 0,s=c||d;f.exports=s},764);
__d(function(n,t,o,r){function u(){return!1}o.exports=u},765);
__d(function(n,t,e,r){function u(n,t){return!!(t=null==t?o:t)&&("number"==typeof n||f.test(n))&&n>-1&&n%1==0&&n<t}var o=9007199254740991,f=/^(?:0|[1-9]\d*)$/;e.exports=u},766);
__d(function(r,a,d,e){var i=a(768),n=a(770),o=a(771),p=o&&o.isTypedArray,s=p?n(p):i;d.exports=s},767);
__d(function(t,e,o,r){function c(t){return a(t)&&j(t.length)&&!!n[b(t)]}var b=e(473),j=e(769),a=e(481),n={};n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,o.exports=c},768);
__d(function(n,r,t,e){function o(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=u}var u=9007199254740991;t.exports=o},769);
__d(function(n,t,r,u){function o(n){return function(t){return n(t)}}r.exports=o},770);
__d(function(e,t,n,o){var c=t(476),i="object"==typeof o&&o&&!o.nodeType&&o,p=i&&"object"==typeof n&&n&&!n.nodeType&&n,r=p&&p.exports===i,d=r&&c.process,y=function(){try{return d&&d.binding&&d.binding("util")}catch(e){}}();n.exports=y},771);
__d(function(r,t,n,o){function c(r){if(!e(r))return u(r);var t=[];for(var n in Object(r))p.call(r,n)&&"constructor"!=n&&t.push(n);return t}var e=t(773),u=t(774),a=Object.prototype,p=a.hasOwnProperty;n.exports=c},772);
__d(function(t,o,r,n){function c(t){var o=t&&t.constructor;return t===("function"==typeof o&&o.prototype||e)}var e=Object.prototype;r.exports=c},773);
__d(function(e,t,c,b){var j=t(480),n=j(Object.keys,Object);c.exports=n},774);
__d(function(n,t,r,u){function e(n){return null!=n&&o(n.length)&&!l(n)}var l=t(732),o=t(769);r.exports=e},775);
__d(function(n,r,t,o){function u(n,r){return n&&c(r,e(r),n)}var c=r(758),e=r(777);t.exports=u},776);
__d(function(n,r,t,o){function u(n){return f(n)?c(n,!0):e(n)}var c=r(760),e=r(778),f=r(775);t.exports=u},777);
__d(function(r,t,n,o){function c(r){if(!e(r))return a(r);var t=u(r),n=[];for(var o in r)("constructor"!=o||!t&&f.call(r,o))&&n.push(o);return n}var e=t(733),u=t(773),a=t(779),p=Object.prototype,f=p.hasOwnProperty;n.exports=c},778);
__d(function(n,r,t,u){function f(n){var r=[];if(null!=n)for(var t in Object(n))r.push(t);return r}t.exports=f},779);
__d(function(e,o,t,n){function r(e,o){if(o)return e.slice();var t=e.length,n=d?d(t):new e.constructor(t);return e.copy(n),n}var c=o(475),f="object"==typeof n&&n&&!n.nodeType&&n,p=f&&"object"==typeof t&&t&&!t.nodeType&&t,i=p&&p.exports===f,u=i?c.Buffer:void 0,d=u?u.allocUnsafe:void 0;t.exports=r},780);
__d(function(r,n,t,o){function e(r,n){var t=-1,o=r.length;for(n||(n=Array(o));++t<o;)n[t]=r[t];return n}t.exports=e},781);
__d(function(n,r,t,o){function u(n,r){return c(n,e(n),r)}var c=r(758),e=r(783);t.exports=u},782);
__d(function(t,e,r,n){var o=e(784),c=e(785),u=Object.prototype,l=u.propertyIsEnumerable,p=Object.getOwnPropertySymbols,b=p?function(t){return null==t?[]:(t=Object(t),o(p(t),function(e){return l.call(t,e)}))}:c;r.exports=b},783);
__d(function(n,r,t,o){function u(n,r){for(var t=-1,o=null==n?0:n.length,u=0,e=[];++t<o;){var f=n[t];r(f,t,n)&&(e[u++]=f)}return e}t.exports=u},784);
__d(function(n,t,o,r){function u(){return[]}o.exports=u},785);
__d(function(n,r,t,o){function u(n,r){return c(n,e(n),r)}var c=r(758),e=r(787);t.exports=u},786);
__d(function(r,t,n,o){var e=t(788),c=t(479),f=t(783),u=t(785),a=Object.getOwnPropertySymbols,b=a?function(r){for(var t=[];r;)e(t,f(r)),r=c(r);return t}:u;n.exports=b},787);
__d(function(n,t,r,e){function o(n,t){for(var r=-1,e=t.length,o=n.length;++r<e;)n[o+r]=t[r];return n}r.exports=o},788);
__d(function(n,r,t,o){function u(n){return c(n,f,e)}var c=r(790),e=r(783),f=r(759);t.exports=u},789);
__d(function(n,r,t,o){function u(n,r,t){var o=r(n);return c(n)?o:a(o,t(n))}var a=r(788),c=r(711);t.exports=u},790);
__d(function(n,r,t,o){function u(n){return c(n,f,e)}var c=r(790),e=r(787),f=r(777);t.exports=u},791);
__d(function(e,t,r,c){var o=t(793),a=t(729),n=t(794),b=t(795),j=t(796),s=t(473),u=t(736),i=u(o),w=u(a),f=u(n),p=u(b),v=u(j),M=s;(o&&"[object DataView]"!=M(new o(new ArrayBuffer(1)))||a&&"[object Map]"!=M(new a)||n&&"[object Promise]"!=M(n.resolve())||b&&"[object Set]"!=M(new b)||j&&"[object WeakMap]"!=M(new j))&&(M=function(e){var t=s(e),r="[object Object]"==t?e.constructor:void 0,c=r?u(r):"";if(c)switch(c){case i:return"[object DataView]";case w:return"[object Map]";case f:return"[object Promise]";case p:return"[object Set]";case v:return"[object WeakMap]"}return t}),r.exports=M},792);
__d(function(a,t,e,i){var n=t(730),o=t(475),r=n(o,"DataView");e.exports=r},793);
__d(function(o,r,e,i){var n=r(730),s=r(475),t=n(s,"Promise");e.exports=t},794);
__d(function(t,e,n,o){var r=e(730),_=e(475),a=r(_,"Set");n.exports=a},795);
__d(function(a,e,n,o){var p=e(730),r=e(475),t=p(r,"WeakMap");n.exports=t},796);
__d(function(t,n,r,e){function o(t){var n=t.length,r=t.constructor(n);return n&&"string"==typeof t[0]&&p.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var i=Object.prototype,p=i.hasOwnProperty;r.exports=o},797);
__d(function(e,t,r,c){function a(e,t,r,c){var a=e.constructor;switch(t){case I:return o(e);case A:case i:return new a(+e);case S:return n(e,c);case d:case g:case v:case x:case B:case D:case F:case _:case h:return y(e,c);case l:return s(e,c,r);case f:case U:return new a(e);case p:return b(e);case w:return j(e,c,r);case m:return u(e)}}var o=t(799),n=t(801),s=t(802),b=t(806),j=t(807),u=t(810),y=t(811),A="[object Boolean]",i="[object Date]",l="[object Map]",f="[object Number]",p="[object RegExp]",w="[object Set]",U="[object String]",m="[object Symbol]",I="[object ArrayBuffer]",S="[object DataView]",d="[object Float32Array]",g="[object Float64Array]",v="[object Int8Array]",x="[object Int16Array]",B="[object Int32Array]",D="[object Uint8Array]",F="[object Uint8ClampedArray]",_="[object Uint16Array]",h="[object Uint32Array]";r.exports=a},798);
__d(function(n,t,e,r){function o(n){var t=new n.constructor(n.byteLength);return new c(t).set(new c(n)),t}var c=t(800);e.exports=o},799);
__d(function(r,n,t,a){var i=n(475),o=i.Uint8Array;t.exports=o},800);
__d(function(t,e,r,f){function n(t,e){var r=e?u(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var u=e(799);r.exports=n},801);
__d(function(n,r,t,o){function c(n,r,t){var o=r?t(a(n),f):a(n);return e(o,u,new n.constructor)}var u=r(803),e=r(804),a=r(805),f=1;t.exports=c},802);
__d(function(n,t,e,o){function r(n,t){return n.set(t[0],t[1]),n}e.exports=r},803);
__d(function(n,r,t,o){function u(n,r,t,o){var u=-1,e=null==n?0:n.length;for(o&&e&&(t=n[++u]);++u<e;)t=r(t,n[u],u,n);return t}t.exports=u},804);
__d(function(n,r,o,t){function c(n){var r=-1,o=Array(n.size);return n.forEach(function(n,t){o[++r]=[t,n]}),o}o.exports=c},805);
__d(function(n,e,r,t){function c(n){var e=new n.constructor(n.source,o.exec(n));return e.lastIndex=n.lastIndex,e}var o=/\w*$/;r.exports=c},806);
__d(function(n,r,t,o){function c(n,r,t){var o=r?t(a(n),f):a(n);return e(o,u,new n.constructor)}var u=r(808),e=r(804),a=r(809),f=1;t.exports=c},807);
__d(function(n,t,d,o){function r(n,t){return n.add(t),n}d.exports=r},808);
__d(function(n,r,o,t){function c(n){var r=-1,o=Array(n.size);return n.forEach(function(n){o[++r]=n}),o}o.exports=c},809);
__d(function(o,t,e,n){function p(o){return f?Object(f.call(o)):{}}var r=t(474),c=r?"function"==typeof r?r.prototype:"@@prototype":void 0,f=c?c.valueOf:void 0;e.exports=p},810);
__d(function(r,t,e,f){function n(r,t){var e=t?u(r.buffer):r.buffer;return new r.constructor(e,r.byteOffset,r.length)}var u=t(799);e.exports=n},811);
__d(function(n,t,o,r){function c(n){return"function"!=typeof n.constructor||e(n)?{}:u(f(n))}var u=t(813),f=t(479),e=t(773);o.exports=c},812);
__d(function(t,r,n,e){var o=r(733),u=Object.create,i=function(){function t(){}return function(r){if(!o(r))return{};if(u)return u(r);t.prototype=r;var n=new t;return t.prototype=void 0,n}}();n.exports=i},813);
__d(function(n,e,t,r){function u(n,e){return e=l(e,n),null==(n=c(n,e))||delete n[d(o(e))]}var l=e(815),o=e(823),c=e(824),d=e(826);t.exports=u},814);
__d(function(n,r,t,o){function u(n,r){return c(n)?n:e(n,r)?[n]:f(i(n))}var c=r(711),e=r(816),f=r(818),i=r(821);t.exports=u},815);
__d(function(n,t,e,r){function o(n,t){if(u(n))return!1;var e=typeof n;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=n&&!l(n))||(f.test(n)||!b.test(n)||null!=t&&n in Object(t))}var u=t(711),l=t(817),b=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,f=/^\w*$/;e.exports=o},816);
__d(function(o,t,n,e){function r(o){return"symbol"==typeof o||c(o)&&b(o)==f}var b=t(473),c=t(481),f="[object Symbol]";n.exports=r},817);
__d(function(e,n,r,t){var u=n(819),c=/^\./,p=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=u(function(e){var n=[];return c.test(e)&&n.push(""),e.replace(p,function(e,r,t,u){n.push(t?u.replace(a,"$1"):r||e)}),n});r.exports=o},818);
__d(function(n,r,c,e){function t(n){var r=u(n,function(n){return c.size===a&&c.clear(),n}),c=r.cache;return r}var u=r(820),a=500;c.exports=t},819);
__d(function(e,n,t,c){function r(e,n){if("function"!=typeof e||null!=n&&"function"!=typeof n)throw new TypeError(o);var t=function t(){var c=arguments,r=n?n.apply(this,c):c[0],a=t.cache;if(a.has(r))return a.get(r);var o=e.apply(this,c);return t.cache=a.set(r,o)||a,o};return t.cache=new(r.Cache||a),t}var a=n(738),o="Expected a function";r.Cache=a,t.exports=r},820);
__d(function(n,r,t,u){function o(n){return null==n?"":c(n)}var c=r(822);t.exports=o},821);
__d(function(t,r,o,n){function i(t){if("string"==typeof t)return t;if(p(t))return f(t,i)+"";if(u(t))return y?y.call(t):"";var r=t+"";return"0"==r&&1/t==-c?"-0":r}var e=r(474),f=r(713),p=r(711),u=r(817),c=1/0,v=e?"function"==typeof e?e.prototype:"@@prototype":void 0,y=v?v.toString:void 0;o.exports=i},822);
__d(function(n,t,o,r){function u(n){var t=null==n?0:n.length;return t?n[t-1]:void 0}o.exports=u},823);
__d(function(n,t,r,e){function o(n,t){return t.length<2?n:u(n,c(t,0,-1))}var u=t(825),c=t(827);r.exports=o},824);
__d(function(n,r,o,t){function u(n,r){r=e(r,n);for(var o=0,t=r.length;null!=n&&o<t;)n=n[f(r[o++])];return o&&o==t?n:void 0}var e=r(815),f=r(826);o.exports=u},825);
__d(function(r,n,t,e){function f(r){if("string"==typeof r||i(r))return r;var n=r+"";return"0"==n&&1/r==-o?"-0":n}var i=n(817),o=1/0;t.exports=f},826);
__d(function(r,n,t,o){function a(r,n,t){var o=-1,a=r.length;n<0&&(n=-n>a?0:a+n),t=t>a?a:t,t<0&&(t+=a),a=n>t?0:t-n>>>0,n>>>=0;for(var e=Array(a);++o<a;)e[o]=r[o+n];return e}t.exports=a},827);
__d(function(n,o,r,t){function i(n){return u(n)?void 0:n}var u=o(472);r.exports=i},828);
__d(function(n,o,r,t){function i(n){return d(c(n,void 0,u),n+"")}var u=o(830),c=o(833),d=o(835);r.exports=i},829);
__d(function(n,t,r,u){function e(n){return(null==n?0:n.length)?l(n,1):[]}var l=t(831);r.exports=e},830);
__d(function(n,r,t,e){function o(n,r,t,e,u){var v=-1,c=n.length;for(t||(t=f),u||(u=[]);++v<c;){var g=n[v];r>0&&t(g)?r>1?o(g,r-1,t,e,u):a(u,g):e||(u[u.length]=g)}return u}var a=r(788),f=r(832);t.exports=o},831);
__d(function(n,o,t,a){function e(n){return c(n)||r(n)||!!(d&&n&&n[d])}var i=o(474),r=o(762),c=o(711),d=i?"function"==typeof i?i.isConcatSpreadable:"@@isConcatSpreadable":void 0;t.exports=e},832);
__d(function(r,n,t,a){function o(r,n,t){return n=f(void 0===n?r.length-1:n,0),function(){for(var a=arguments,o=-1,i=f(a.length-n,0),u=Array(i);++o<i;)u[o]=a[n+o];o=-1;for(var h=Array(n+1);++o<n;)h[o]=a[o];return h[n]=t(u),e(r,this,h)}}var e=n(834),f=Math.max;t.exports=o},833);
__d(function(c,e,r,l){function n(c,e,r){switch(r.length){case 0:return c.call(e);case 1:return c.call(e,r[0]);case 2:return c.call(e,r[0],r[1]);case 3:return c.call(e,r[0],r[1],r[2])}return c.apply(e,r)}r.exports=n},834);
__d(function(n,o,r,t){var _=o(836),a=o(839),c=a(_);r.exports=c},835);
__d(function(e,n,r,t){var u=n(837),a=n(756),i=n(838),o=a?function(e,n){return a(e,"toString",{configurable:!0,enumerable:!1,value:u(n),writable:!0})}:i;r.exports=o},836);
__d(function(n,t,r,u){function o(n){return function(){return n}}r.exports=o},837);
__d(function(n,t,o,r){function u(n){return n}o.exports=u},838);
__d(function(n,r,t,e){function i(n){var r=0,t=0;return function(){var e=a(),i=u-(e-t);if(t=e,i>0){if(++r>=o)return arguments[0]}else r=0;return n.apply(void 0,arguments)}}var o=800,u=16,a=Date.now;t.exports=i},839);
__d(function(n,r,t,u){var o=r(841),c=r(829),e=c(function(n,r){return null==n?{}:o(n,r)});t.exports=e},840);
__d(function(n,r,t,u){function o(n,r){return c(n,r,function(r,t){return e(n,t)})}var c=r(842),e=r(844);t.exports=o},841);
__d(function(r,n,t,o){function a(r,n,t){for(var o=-1,a=n.length,v={};++o<a;){var c=n[o],i=e(r,c);t(i,c)&&f(v,u(c,r),i)}return v}var e=n(825),f=n(843),u=n(815);t.exports=a},842);
__d(function(r,n,i,o){function t(r,n,i,o){if(!a(r))return r;n=f(n,r);for(var t=-1,d=n.length,l=d-1,c=r;null!=c&&++t<d;){var _=e(n[t]),g=i;if(t!=l){var h=c[_];g=o?o(h,_,c):void 0,void 0===g&&(g=a(h)?h:u(n[t+1])?[]:{})}v(c,_,g),c=c[_]}return r}var v=n(754),f=n(815),u=n(766),a=n(733),e=n(826);i.exports=t},843);
__d(function(n,r,t,u){function o(n,r){return null!=n&&e(n,r,c)}var c=r(845),e=r(846);t.exports=o},844);
__d(function(n,t,u,c){function e(n,t){return null!=n&&t in Object(n)}u.exports=e},845);
__d(function(n,r,l,t){function e(n,r,l){r=u(r,n);for(var t=-1,e=r.length,c=!1;++t<e;){var g=v(r[t]);if(!(c=null!=n&&l(n,g)))break;n=n[g]}return c||++t!=e?c:!!(e=null==n?0:n.length)&&i(e)&&o(g,e)&&(f(n)||a(n))}var u=r(815),a=r(762),f=r(711),o=r(766),i=r(769),v=r(826);l.exports=e},846);
__d(function(e,t,n,o){function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t){var n,o;return o=n=function(e){function n(){return i(this,n),c(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return u(n,e),f(n,[{key:"updateIconSources",value:function(e){var n=this;if(e.iconName&&t(e.iconName,e.iconSize,e.iconColor).then(function(e){return n.setState({icon:e})}),e.selectedIconName||e.selectedIconColor){var o=e.selectedIconName||e.iconName,r=e.selectedIconColor||e.iconColor;t(o,e.iconSize,r).then(function(e){return n.setState({selectedIcon:e})})}}},{key:"componentWillMount",value:function(){this.updateIconSources(this.props)}},{key:"componentWillReceiveProps",value:function(e){var t=Object.keys(n.propTypes);(0,d.default)((0,y.default)(e,t),(0,y.default)(this.props,t))||this.updateIconSources(e)}},{key:"render",value:function(){return m.default.createElement(O.TabBarIOS.Item,l({},this.props,this.state,{__source:{fileName:s,lineNumber:56}}))}}]),n}(h.Component),n.propTypes={iconName:e.isRequired,selectedIconName:e,iconSize:_.default.number,iconColor:_.default.string,selectedIconColor:_.default.string},n.defaultProps={iconSize:30},o}Object.defineProperty(o,"__esModule",{value:!0});var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s="./lib/tab-bar-item-ios.js",f=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();o.default=a;var p=t(848),d=r(p),b=t(840),y=r(b),h=t(34),m=r(h),v=t(559),_=r(v),O=t(708)},847);
__d(function(n,r,t,o){function u(n,r){return c(n,r)}var c=r(849);t.exports=u},848);
__d(function(n,u,l,r){function t(n,u,l,r,e){return n===u||(null==n||null==u||!c(n)&&!c(u)?n!==n&&u!==u:o(n,u,l,r,t,e))}var o=u(850),c=u(481);l.exports=t},849);
__d(function(r,e,t,a){function n(r,e,t,a,n,d){var y=f(r),O=f(e),A=y?b:p(r),g=O?b:p(e);A=A==w?j:A,g=g==w?j:g;var h=A==j,m=g==j,x=A==g;if(x&&i(r)){if(!i(e))return!1;y=!0,h=!1}if(x&&!h)return d||(d=new _),y||v(r)?c(r,e,t,a,n,d):o(r,e,A,t,a,n,d);if(!(t&l)){var P=h&&s.call(r,"__wrapped__"),k=m&&s.call(e,"__wrapped__");if(P||k){var q=P?r.value():r,z=k?e.value():e;return d||(d=new _),n(q,z,t,a,d)}}return!!x&&(d||(d=new _),u(r,e,t,a,n,d))}var _=e(715),c=e(851),o=e(857),u=e(858),p=e(792),f=e(711),i=e(764),v=e(767),l=1,w="[object Arguments]",b="[object Array]",j="[object Object]",d=Object.prototype,s=d.hasOwnProperty;t.exports=n},850);
__d(function(e,r,t,i){function n(e,r,t,i,n,d){var l=t&o,s=e.length,c=r.length;if(s!=c&&!(l&&c>s))return!1;var g=d.get(e);if(g&&d.get(r))return g==r;var b=-1,h=!0,k=t&v?new f:void 0;for(d.set(e,r),d.set(r,e);++b<s;){var p=e[b],_=r[b];if(i)var w=l?i(_,p,b,r,e,d):i(p,_,b,e,r,d);if(void 0!==w){if(w)continue;h=!1;break}if(k){if(!a(r,function(e,r){if(!u(k,r)&&(p===e||n(p,e,t,i,d)))return k.push(r)})){h=!1;break}}else if(p!==_&&!n(p,_,t,i,d)){h=!1;break}}return d.delete(e),d.delete(r),h}var f=r(852),a=r(855),u=r(856),o=1,v=2;t.exports=n},851);
__d(function(t,o,p,a){function n(t){var o=-1,p=null==t?0:t.length;for(this.__data__=new r;++o<p;)this.add(t[o])}var r=o(738),d=o(853),e=o(854);n.prototype.add=n.prototype.push=d,n.prototype.has=e,p.exports=n},852);
__d(function(_,t,n,s){function a(_){return this.__data__.set(_,d),this}var d="__lodash_hash_undefined__";n.exports=a},853);
__d(function(t,_,n,a){function i(t){return this.__data__.has(t)}n.exports=i},854);
__d(function(n,r,t,u){function e(n,r){for(var t=-1,u=null==n?0:n.length;++t<u;)if(r(n[t],t,n))return!0;return!1}t.exports=e},855);
__d(function(n,t,o,r){function u(n,t){return n.has(t)}o.exports=u},856);
__d(function(e,t,r,a){function c(e,t,r,a,c,n,S){switch(r){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case L:return!(e.byteLength!=t.byteLength||!n(new o(e),new o(t)));case y:case g:case v:return s(+e,+t);case l:return e.name==t.name&&e.message==t.message;case m:case d:return e==t+"";case p:var z=f;case h:var B=a&i;if(z||(z=u),e.size!=t.size&&!B)return!1;var D=S.get(e);if(D)return D==t;a|=j,S.set(e,t);var E=b(z(e),z(t),a,c,n,S);return S.delete(e),E;case w:if(x)return x.call(e)==x.call(t)}return!1}var n=t(474),o=t(800),s=t(720),b=t(851),f=t(805),u=t(809),i=1,j=2,y="[object Boolean]",g="[object Date]",l="[object Error]",p="[object Map]",v="[object Number]",m="[object RegExp]",h="[object Set]",d="[object String]",w="[object Symbol]",L="[object ArrayBuffer]",O="[object DataView]",S=n?"function"==typeof n?n.prototype:"@@prototype":void 0,x=S?S.valueOf:void 0;r.exports=c},857);
__d(function(r,t,n,e){function o(r,t,n,e,o,i){var u=n&f,s=c(r),v=s.length;if(v!=c(t).length&&!u)return!1;for(var l=v;l--;){var p=s[l];if(!(u?p in t:a.call(t,p)))return!1}var d=i.get(r);if(d&&i.get(t))return d==t;var g=!0;i.set(r,t),i.set(t,r);for(var y=u;++l<v;){p=s[l];var h=r[p],b=t[p];if(e)var O=u?e(b,h,p,t,r,i):e(h,b,p,r,t,i);if(!(void 0===O?h===b||o(h,b,n,e,i):O)){g=!1;break}y||(y="constructor"==p)}if(g&&!y){var _=r.constructor,j=t.constructor;_!=j&&"constructor"in r&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof j&&j instanceof j)&&(g=!1)}return i.delete(r),i.delete(t),g}var c=t(789),f=1,i=Object.prototype,a=i.hasOwnProperty;n.exports=o},858);
__d(function(e,o,t,n){function r(e){return e&&e.__esModule?e:{default:e}}function a(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function i(e,o){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||"object"!=typeof o&&"function"!=typeof o?e:o}function u(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function, not "+typeof o);e.prototype=Object.create(o&&o.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(e,o):e.__proto__=o)}function c(e,o){var t,n;return n=t=function(e){function t(){return a(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return u(t,e),s(t,[{key:"updateIconSources",value:function(e){var t=this,n=e.iconSize,r=e.iconColor||e.titleColor;e.logoName&&o(e.logoName,n,r).then(function(e){return t.setState({logo:e})}),e.navIconName&&o(e.navIconName,n,r).then(function(e){return t.setState({navIcon:e})}),e.overflowIconName&&o(e.overflowIconName,n,r).then(function(e){return t.setState({overflowIcon:e})}),Promise.all((e.actions||[]).map(function(e){return e.iconName?o(e.iconName,e.iconSize||n,e.iconColor||r).then(function(o){return f({},e,{icon:o})}):Promise.resolve(e)})).then(function(e){return t.setState({actions:e})})}},{key:"componentWillMount",value:function(){this.updateIconSources(this.props)}},{key:"componentWillReceiveProps",value:function(e){var o=this,n=Object.keys(t.propTypes);if(!(0,d.default)((0,h.default)(e,n),(0,h.default)(this.props,n))){var r={};e.logoName||(r.logo=void 0),e.navIconName||(r.navIcon=void 0),e.overflowIconName||(r.overflowIcon=void 0),this.state&&Object.keys(r).length?this.setState(r,function(){return o.updateIconSources(e)}):this.updateIconSources(e)}}},{key:"render",value:function(){return b.default.createElement(I.ToolbarAndroid,f({},this.props,this.state,{__source:{fileName:l,lineNumber:94}}))}}]),t}(m.Component),t.propTypes={logoIconName:e,navIconName:e,overflowIconName:e,actions:w.default.arrayOf(w.default.shape({title:w.default.string.isRequired,iconName:e,iconSize:w.default.number,iconColor:w.default.string,show:w.default.oneOf(["always","ifRoom","never"]),showWithText:w.default.bool})),iconSize:w.default.number,iconColor:w.default.string},t.defaultProps={iconSize:24},n}Object.defineProperty(n,"__esModule",{value:!0});var l="./lib/toolbar-android.js",f=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var t=arguments[o];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},s=function(){function e(e,o){for(var t=0;t<o.length;t++){var n=o[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(o,t,n){return t&&e(o.prototype,t),n&&e(o,n),o}}();n.default=c;var p=o(848),d=r(p),v=o(840),h=r(v),m=o(34),b=r(m),y=o(559),w=r(y),I=o(708)},859);
__d(function(e,t,n,u){function f(e,t,n){var u={};e.glyphs.forEach(function(e){u[e.css]=e.code});var f=t||e.name||"fontello";return(0,r.default)(u,f,n||f+".ttf")}Object.defineProperty(u,"__esModule",{value:!0}),u.default=f;var o=t(707),r=function(e){return e&&e.__esModule?e:{default:e}}(o)},860);
__d(function(e,t,r,n){function f(e,t,r){var n={};e.icons.forEach(function(e){n[e.properties.name]=e.properties.code});var f=t||e.preferences.fontPref.metadata.fontFamily;return(0,a.default)(n,f,r||f+".ttf")}Object.defineProperty(n,"__esModule",{value:!0}),n.default=f;var o=t(707),a=function(e){return e&&e.__esModule?e:{default:e}}(o)},861);
__d(function(i,t,e,s){e.exports={IcoMoonType:"selection",icons:[{icon:{paths:["M330.667 554.667c-0.427-14.933 6.4-29.44 17.92-39.253 32 6.827 61.867 20.053 88.747 39.253 0 29.013-23.893 52.907-53.333 52.907s-52.907-23.467-53.333-52.907zM586.667 554.667c26.88-18.773 56.747-32 88.747-38.827 11.52 9.813 18.347 24.32 17.92 38.827 0 29.867-23.893 53.76-53.333 53.76s-53.333-23.893-53.333-53.76v0zM512 384c-118.187-1.707-234.667 27.733-338.347 85.333l-2.987 42.667c0 52.48 12.373 104.107 35.84 151.040 101.12-15.36 203.093-23.040 305.493-23.040s204.373 7.68 305.493 23.040c23.467-46.933 35.84-98.56 35.84-151.040l-2.987-42.667c-103.68-57.6-220.16-87.040-338.347-85.333zM512 85.333c235.641 0 426.667 191.025 426.667 426.667s-191.025 426.667-426.667 426.667c-235.641 0-426.667-191.025-426.667-426.667s191.025-426.667 426.667-426.667z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,grid:24,tags:["ninja"]},attrs:[{}],properties:{order:851,id:121,name:"ninja",prevSize:32,code:59657},setIdx:0,setId:1,iconIdx:0},{icon:{paths:["M282 460c62 120 162 220 282 282l94-94c12-12 30-16 44-10 48 16 100 24 152 24 24 0 42 18 42 42v150c0 24-18 42-42 42-400 0-726-326-726-726 0-24 18-42 42-42h150c24 0 42 18 42 42 0 54 8 104 24 152 4 14 2 32-10 44z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["phone"],defaultCode:57549,grid:24},attrs:[],properties:{ligatures:"call, local_phone, phone",id:120,order:848,prevSize:32,code:57549,name:"phone"},setIdx:0,setId:1,iconIdx:41},{icon:{paths:["M756.704 395.862l267.296-202.213v635.075l-267.296-202.213v191.923c0 12.085-11.296 21.863-25.216 21.863h-706.272c-13.92 0-25.216-9.777-25.216-21.863v-612.25c0-12.085 11.296-21.863 25.216-21.863h706.272c13.92 0 25.216 9.777 25.216 21.863v189.679zM371.338 647.772c47.817 0 86.529-40.232 86.529-89.811v-184.835c0-49.651-38.713-89.883-86.529-89.883-47.788 0-86.515 40.232-86.515 89.883v184.835c0 49.579 38.756 89.811 86.515 89.811v0zM356.754 709.93v32.78h33.718v-33.412c73.858-9.606 131.235-73.73 131.235-151.351v-88.232h-30.636v88.232c0 67.57-53.696 122.534-119.734 122.534-66.024 0-119.691-54.964-119.691-122.534v-88.232h-30.636v88.232c0 79.215 59.674 144.502 135.744 151.969v0.014z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,tags:["Combined Shape"],grid:0},attrs:[{}],properties:{order:109,id:0,name:"mic-camera-combined",prevSize:32,code:59651},setIdx:0,setId:1,iconIdx:1},{icon:{paths:["M42.667 896h170.667v-512h-170.667v512zM981.333 426.667c0-46.933-38.4-85.333-85.333-85.333h-269.227l40.533-194.987 1.28-13.653c0-17.493-7.253-33.707-18.773-45.227l-45.227-44.8-280.747 281.173c-15.787 15.36-25.173 36.693-25.173 60.16v426.667c0 46.933 38.4 85.333 85.333 85.333h384c35.413 0 65.707-21.333 78.507-52.053l128.853-300.8c3.84-9.813 5.973-20.053 5.973-31.147v-81.493l-0.427-0.427 0.427-3.413z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,tags:["ic_thumb_up_black_24px"],grid:0},attrs:[{}],properties:{order:104,id:1,name:"feedback",prevSize:32,code:59677},setIdx:0,setId:1,iconIdx:2},{icon:{paths:["M896 128h-768c-46.933 0-85.333 38.4-85.333 85.333v597.333c0 46.933 38.4 85.333 85.333 85.333h768c46.933 0 85.333-38.4 85.333-85.333v-597.333c0-46.933-38.4-85.333-85.333-85.333zM896 810.667h-768v-128h768v128z"],attrs:[{}],isMulticolor:!1,isMulticolor2:!1,tags:["ic_call_to_action_black_24px"],grid:0},attrs:[{}],properties:{order:103,id:2,name:"toggle-filmstrip",prevSize:32,code:59676},setIdx:0,setId:1,iconIdx:3},{icon:{paths:["M512 820c106 0 200-56 256-138-2-84-172-132-256-132-86 0-254 48-256 132 56 82 150 138 256 138zM512 214c-70 0-128 58-128 128s58 128 128 128 128-58 128-128-58-128-128-128zM512 86c236 0 426 190 426 426s-190 426-426 426-426-190-426-426 190-426 426-426z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["account_circle"],grid:0},attrs:[],properties:{id:3,order:60,ligatures:"account_circle",prevSize:32,code:59649,name:"avatar"},setIdx:0,setId:1,iconIdx:4},{icon:{paths:["M512 384c-68 0-134 10-196 30v132c0 16-10 34-24 40-42 20-80 46-114 78-8 8-18 12-30 12s-22-4-30-12l-106-106c-8-8-12-18-12-30s4-22 12-30c130-124 306-200 500-200s370 76 500 200c8 8 12 18 12 30s-4 22-12 30l-106 106c-8 8-18 12-30 12s-22-4-30-12c-34-32-72-58-114-78-14-6-24-20-24-38v-132c-62-20-128-32-196-32z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["call_end"],grid:0},attrs:[],properties:{id:4,order:849,ligatures:"call_end",prevSize:32,code:59653,name:"hangup"},setIdx:0,setId:1,iconIdx:5},{icon:{paths:["M854 682v-512h-684v598l86-86h598zM854 86c46 0 84 38 84 84v512c0 46-38 86-84 86h-598l-170 170v-768c0-46 38-84 84-84h684z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["chat_bubble_outline"],grid:0},attrs:[],properties:{id:5,order:61,ligatures:"chat_bubble_outline",prevSize:32,code:59654,name:"chat"},setIdx:0,setId:1,iconIdx:6},{icon:{paths:["M726 554h-128v-170h-172v170h-128l214 214zM826 428c110 8 198 100 198 212 0 118-96 214-214 214h-554c-142 0-256-114-256-256 0-132 100-240 228-254 54-102 160-174 284-174 156 0 284 110 314 258z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["cloud_download"],grid:0},attrs:[],properties:{id:6,order:99,ligatures:"cloud_download",prevSize:32,code:59650,name:"download"},setIdx:0,setId:1,iconIdx:7},{icon:{paths:["M884 300l-78 78-160-160 78-78c16-16 44-16 60 0l100 100c16 16 16 44 0 60zM128 736l472-472 160 160-472 472h-160v-160z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["mode_edit"],grid:0},attrs:[],properties:{id:7,order:89,ligatures:"create, edit, mode_edit",prevSize:32,code:59655,name:"edit"},setIdx:0,setId:1,iconIdx:8},{icon:{paths:["M554 384h236l-236-234v234zM682 598v-86h-340v86h340zM682 768v-86h-340v86h340zM598 86l256 256v512c0 46-40 84-86 84h-512c-46 0-86-38-86-84l2-684c0-46 38-84 84-84h342z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["description"],grid:0},attrs:[],properties:{id:8,order:85,ligatures:"description",prevSize:32,code:59656,name:"share-doc"},setIdx:0,setId:1,iconIdx:9},{icon:{paths:["M512 214l284 426h-568zM214 726h596v84h-596v-84z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["eject"],grid:0},attrs:[],properties:{id:10,order:98,ligatures:"eject",prevSize:32,code:59652,name:"kick"},setIdx:0,setId:1,iconIdx:10},{icon:{paths:["M512 342l256 256-60 60-196-196-196 196-60-60z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["expand_less"],grid:0},attrs:[],properties:{id:11,order:106,ligatures:"expand_less",prevSize:32,code:59679,name:"menu-up"},setIdx:0,setId:1,iconIdx:11},{icon:{paths:["M708 366l60 60-256 256-256-256 60-60 196 196z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["expand_more"],grid:0},attrs:[],properties:{id:12,order:107,ligatures:"expand_more",prevSize:32,code:59680,name:"menu-down"},setIdx:0,setId:1,iconIdx:12},{icon:{paths:["M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["fullscreen"],grid:0},attrs:[],properties:{id:13,order:94,ligatures:"fullscreen",prevSize:32,code:59659,name:"full-screen"},setIdx:0,setId:1,iconIdx:13},{icon:{paths:["M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["fullscreen_exit"],grid:0},attrs:[],properties:{id:14,order:92,ligatures:"fullscreen_exit",prevSize:32,code:59660,name:"exit-full-screen"},setIdx:0,setId:1,iconIdx:14},{icon:{paths:["M512 736l-264 160 70-300-232-202 306-26 120-282 120 282 306 26-232 202 70 300z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["star"],grid:0},attrs:[],properties:{id:15,order:101,ligatures:"grade, star",prevSize:32,code:59658,name:"star-full"},setIdx:0,setId:1,iconIdx:15},{icon:{paths:["M768 854v-428h-512v428h512zM768 342c46 0 86 38 86 84v428c0 46-40 84-86 84h-512c-46 0-86-38-86-84v-428c0-46 40-84 86-84h388v-86c0-72-60-132-132-132s-132 60-132 132h-82c0-118 96-214 214-214s214 96 214 214v86h42zM512 726c-46 0-86-40-86-86s40-86 86-86 86 40 86 86-40 86-86 86z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["lock_open"],grid:0},attrs:[],properties:{id:16,order:66,ligatures:"lock_open",prevSize:32,code:59661,name:"security"},setIdx:0,setId:1,iconIdx:16},{icon:{paths:["M768 854v-428h-512v428h512zM380 256v86h264v-86c0-72-60-132-132-132s-132 60-132 132zM768 342c46 0 86 38 86 84v428c0 46-40 84-86 84h-512c-46 0-86-38-86-84v-428c0-46 40-84 86-84h42v-86c0-118 96-214 214-214s214 96 214 214v86h42zM512 726c-46 0-86-40-86-86s40-86 86-86 86 40 86 86-40 86-86 86z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["lock_outline"],grid:0},attrs:[],properties:{id:17,order:65,ligatures:"lock_outline",prevSize:32,code:59662,name:"security-locked"},setIdx:0,setId:1,iconIdx:17},{icon:{paths:["M512 768v-128l170 170-170 172v-128c-188 0-342-154-342-342 0-66 20-130 54-182l62 62c-20 36-30 76-30 120 0 142 114 256 256 256zM512 170c188 0 342 154 342 342 0 66-20 130-54 182l-62-62c20-36 30-76 30-120 0-142-114-256-256-256v128l-170-170 170-172v128z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["sync"],grid:0},attrs:[],properties:{id:18,order:67,ligatures:"loop, sync",prevSize:32,code:59663,name:"reload"},setIdx:0,setId:1,iconIdx:18},{icon:{paths:["M738 470h72c0 146-116 266-256 286v140h-84v-140c-140-20-256-140-256-286h72c0 128 108 216 226 216s226-88 226-216zM512 598c-70 0-128-58-128-128v-256c0-70 58-128 128-128s128 58 128 128v256c0 70-58 128-128 128z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["mic"],grid:0},attrs:[],properties:{id:19,order:68,ligatures:"mic",prevSize:32,code:59664,name:"microphone"},setIdx:0,setId:1,iconIdx:19},{icon:{paths:["M738 470h72c0 146-116 266-256 286v140h-84v-140c-140-20-256-140-256-286h72c0 128 108 216 226 216s226-88 226-216zM460 210v264c0 28 24 50 52 50s50-22 50-50l2-264c0-28-24-52-52-52s-52 24-52 52zM512 598c-70 0-128-58-128-128v-256c0-70 58-128 128-128s128 58 128 128v256c0 70-58 128-128 128z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["mic_none"],grid:0},attrs:[],properties:{id:20,order:69,ligatures:"mic_none",prevSize:32,code:59665,name:"mic-empty"},setIdx:0,setId:1,iconIdx:20},{icon:{paths:["M182 128l714 714-54 54-178-178c-32 20-72 32-110 38v140h-84v-140c-140-20-256-140-256-286h72c0 128 108 216 226 216 34 0 68-8 98-22l-70-70c-8 2-18 4-28 4-70 0-128-58-128-128v-32l-256-256zM640 476l-256-254v-8c0-70 58-128 128-128s128 58 128 128v262zM810 470c0 50-14 98-38 140l-52-54c12-26 18-54 18-86h72z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["mic_off"],grid:0},attrs:[],properties:{id:21,order:70,ligatures:"mic_off",prevSize:32,code:59666,name:"mic-disabled"},setIdx:0,setId:1,iconIdx:21},{icon:{paths:["M982 234v620c0 94-78 170-172 170h-310c-46 0-90-18-122-50l-336-342s54-52 56-52c10-8 22-12 34-12 10 0 18 2 26 6 2 0 184 104 184 104v-508c0-36 28-64 64-64s64 28 64 64v300h42v-406c0-36 28-64 64-64s64 28 64 64v406h42v-364c0-36 28-64 64-64s64 28 64 64v364h44v-236c0-36 28-64 64-64s64 28 64 64z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["pan_tool"],grid:0},attrs:[],properties:{id:22,order:105,ligatures:"pan_tool",prevSize:32,code:59678,name:"raised-hand"},setIdx:0,setId:1,iconIdx:22},{icon:{paths:["M704 278c-46 0-86 38-86 84s40 86 86 86 86-40 86-86-40-84-86-84zM704 512c-82 0-150-68-150-150s68-148 150-148 150 66 150 148-68 150-150 150zM320 278c-46 0-86 38-86 84s40 86 86 86 86-40 86-86-40-84-86-84zM320 512c-82 0-150-68-150-150s68-148 150-148 150 66 150 148-68 150-150 150zM918 746v-52c0-24-110-76-214-76-46 0-90 12-128 24 14 16 22 32 22 52v52h320zM534 746v-52c0-24-110-76-214-76s-214 52-214 76v52h428zM704 554c92 0 278 48 278 140v116h-940v-116c0-92 186-140 278-140 52 0 130 16 192 44 62-28 140-44 192-44z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["people_outline"],grid:0},attrs:[],properties:{id:23,order:100,ligatures:"people_outline",prevSize:32,code:59675,name:"contactList"},setIdx:0,setId:1,iconIdx:23},{icon:{paths:["M640 598c114 0 342 56 342 170v86h-684v-86c0-114 228-170 342-170zM256 426h128v86h-128v128h-86v-128h-128v-86h128v-128h86v128zM640 512c-94 0-170-76-170-170s76-172 170-172 170 78 170 172-76 170-170 170z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["person_add"],grid:0},attrs:[],properties:{id:24,order:87,ligatures:"person_add",prevSize:32,code:59667,name:"link"},setIdx:0,setId:1,iconIdx:24},{icon:{paths:["M512 854c188 0 342-154 342-342s-154-342-342-342-342 154-342 342 154 342 342 342zM512 86c236 0 426 190 426 426s-190 426-426 426-426-190-426-426 190-426 426-426zM426 704v-384l256 192z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["play_circle_outline"],grid:0},attrs:[],properties:{id:25,order:82,ligatures:"play_circle_outline",prevSize:32,code:59668,name:"shared-video"},setIdx:0,setId:1,iconIdx:25},{icon:{paths:["M512 662c82 0 150-68 150-150s-68-150-150-150-150 68-150 150 68 150 150 150zM830 554l90 70c8 6 10 18 4 28l-86 148c-6 10-16 12-26 8l-106-42c-22 16-46 32-72 42l-16 112c-2 10-10 18-20 18h-172c-10 0-18-8-20-18l-16-112c-26-10-50-24-72-42l-106 42c-10 4-20 2-26-8l-86-148c-6-10-4-22 4-28l90-70c-2-14-2-28-2-42s0-28 2-42l-90-70c-8-6-10-18-4-28l86-148c6-10 16-12 26-8l106 42c22-16 46-32 72-42l16-112c2-10 10-18 20-18h172c10 0 18 8 20 18l16 112c26 10 50 24 72 42l106-42c10-4 20-2 26 8l86 148c6 10 4 22-4 28l-90 70c2 14 2 28 2 42s0 28-2 42z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["settings"],grid:0},attrs:[],properties:{id:26,order:81,ligatures:"settings",prevSize:32,code:59669,name:"settings"},setIdx:0,setId:1,iconIdx:26},{icon:{paths:["M512 658l160 96-42-182 142-124-188-16-72-172-72 172-188 16 142 124-42 182zM938 394l-232 202 70 300-264-160-264 160 70-300-232-202 306-26 120-282 120 282z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["star_border"],grid:0},attrs:[],properties:{id:27,order:76,ligatures:"star_border",prevSize:32,code:59670,name:"star"},setIdx:0,setId:1,iconIdx:27},{icon:{paths:["M640 662l150-150-150-150v108h-256v-108l-150 150 150 150v-108h256v108zM854 170c46 0 84 40 84 86v512c0 46-38 86-84 86h-684c-46 0-84-40-84-86v-512c0-46 38-86 84-86h136l78-84h256l78 84h136z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["switch_camera"],grid:0},attrs:[],properties:{id:28,order:108,ligatures:"switch_camera",prevSize:32,code:59681,name:"switch-camera"},setIdx:0,setId:1,iconIdx:28},{icon:{paths:["M896 726v-512h-768v512h768zM896 128c46 0 86 40 86 86l-2 512c0 46-38 84-84 84h-214v86h-340v-86h-214c-46 0-86-38-86-84v-512c0-46 40-86 86-86h768z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["tv"],grid:0},attrs:[],properties:{id:29,order:93,ligatures:"tv",prevSize:32,code:59671,name:"share-desktop"},setIdx:0,setId:1,iconIdx:29},{icon:{paths:["M726 448l170-170v468l-170-170v150c0 24-20 42-44 42h-512c-24 0-42-18-42-42v-428c0-24 18-42 42-42h512c24 0 44 18 44 42v150z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["videocam"],grid:0},attrs:[],properties:{id:30,order:77,ligatures:"videocam",prevSize:32,code:59672,name:"camera"},setIdx:0,setId:1,iconIdx:30},{icon:{paths:["M140 86l756 756-54 54-136-136c-6 4-16 8-24 8h-512c-24 0-42-18-42-42v-428c0-24 18-42 42-42h32l-116-116zM896 278v456l-478-478h264c24 0 44 18 44 42v150z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["videocam_off"],grid:0},attrs:[],properties:{id:31,order:78,ligatures:"videocam_off",prevSize:32,code:59673,name:"camera-disabled"},setIdx:0,setId:1,iconIdx:31},{icon:{paths:["M598 138c172 38 298 192 298 374s-126 336-298 374v-88c124-36 212-150 212-286s-88-250-212-286v-88zM704 512c0 76-42 140-106 172v-344c64 32 106 96 106 172zM128 384h170l214-214v684l-214-214h-170v-256z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["volume_up"],grid:0},attrs:[],properties:{id:32,order:79,ligatures:"volume_up",prevSize:32,code:59674,name:"volume"},setIdx:0,setId:1,iconIdx:32},{icon:{paths:["M-0 724.847h196.337v187.951h-196.337v-187.951z","M271.842 543.628h196.337v369.169h-196.337v-369.169z","M543.656 362.438h196.337v550.36h-196.337v-550.36z","M815.47 181.234v731.564h119.56c-14.589-33.025-23.125-71.503-23.232-111.943 0.132-86.42 38.697-163.851 99.656-216.468l0.348-403.153h-196.332z","M1087.292-0v533.672c28.874-10.572 62.222-16.73 97.009-16.825 35.717 0.129 69.823 6.614 101.322 18.371l-1.999-535.218h-196.332z","M1192.868 584.148c-0.009-0-0.020-0-0.031-0-122.247 0-221.351 98.447-221.372 219.896-0 0.007-0 0.014-0 0.021 0 121.467 99.111 219.935 221.372 219.935 0.011 0 0.021-0 0.032-0 122.248-0.014 221.345-98.477 221.345-219.935 0-0.007-0-0.013-0-0.020-0.021-121.441-99.11-219.883-221.345-219.897zM1194.706 651.393c87.601 0.006 158.614 69.787 158.614 155.866 0 0.006-0 0.012-0 0.019-0.022 86.062-71.026 155.822-158.614 155.828-87.588-0.006-158.593-69.766-158.615-155.826-0-0.007-0-0.014-0-0.020 0-86.079 71.013-155.86 158.613-155.866z","M1286.795 668.318l48.348 52.528-236.375 217.567-48.348-52.528 236.375-217.567z"],width:1414,attrs:[{},{},{},{},{},{},{}],isMulticolor:!1,isMulticolor2:!1,tags:["connection-lost"],grid:0},attrs:[{},{},{},{},{},{},{}],properties:{order:33,id:33,name:"connection-lost",prevSize:32,code:59648},setIdx:0,setId:1,iconIdx:33},{icon:{paths:["M3.881 813.165h220.26v210.835h-220.26v-210.835z","M308.817 609.857h220.27v414.143h-220.27v-414.143z","M613.764 406.588h220.268v617.412h-220.268v-617.412z","M918.685 203.285h220.265v820.715h-220.265v-820.715z","M1223.629 0h220.263v1024h-220.263v-1024z"],width:1444,attrs:[{opacity:1,visibility:!1},{opacity:1,visibility:!1},{opacity:1,visibility:!1},{opacity:1,visibility:!1},{opacity:1,visibility:!1}],isMulticolor:!1,isMulticolor2:!1,tags:["connection-2"],grid:0},attrs:[{opacity:1,visibility:!1},{opacity:1,visibility:!1},{opacity:1,visibility:!1},{opacity:1,visibility:!1},{opacity:1,visibility:!1}],properties:{order:37,id:34,prevSize:32,code:58906,name:"connection",ligatures:""},setIdx:0,setId:1,iconIdx:34},{icon:{paths:["M1123.444 20.985c-23.593-26.481-64.131-28.989-90.74-5.395l-1008.269 893.436c-26.609 23.468-28.991 64.131-5.46 90.676 12.674 14.306 30.308 21.649 48.126 21.649 15.123 0 30.372-5.401 42.544-16.195l130.045-115.22c90.743 81.844 210.569 132.165 342.473 132.101 282.816-0.061 510.913-227.969 511.287-510.972 0.126-109.934-34.682-211.367-93.499-294.72l118.088-104.625c26.483-23.526 28.997-64.129 5.404-90.735zM944.422 510.182c0.128 200.922-161.896 363.201-362.509 362.952-87.56-0.123-167.573-31.151-230.061-82.569l331.277-293.509v73.176c1.071 60.993 32.696 92.18 94.944 93.692 61.997-1.512 93.686-32.763 95.131-93.756v-41.096h-72.227v47.499c0.251 4.642-0.564 10.607-2.511 17.949-1.25 3.261-3.448 6.020-6.525 8.093-3.197 2.572-7.845 3.828-13.868 3.828-10.543-0.31-17.132-4.268-19.827-11.921-1.068-3.512-1.947-6.905-2.508-10.163-0.254-2.887-0.377-5.532-0.377-7.786v-143.511l42.477-37.634c0.215 0.432 0.452 0.851 0.63 1.303 1.947 6.467 2.762 12.799 2.511 19.076v36.772h72.227v-30.121c-0.246-31.245-9.086-54.699-26.363-70.447l40.711-36.069c35.787 56.055 56.803 122.585 56.867 194.244z","M239.795 628.53c-12.613-37.023-19.827-76.557-19.827-117.913-0.19-200.236 161.584-362.009 361.945-362.135 56.853 0 110.313 13.302 158.133 36.398l117.846-104.421c-79.444-50.952-173.758-80.817-275.292-80.948-283.377-0.181-511.354 227.729-511.789 511.675-0.126 79.567 18.636 154.679 51.137 221.882l117.848-104.538z","M388.576 333.98h-97.514v249.057l72.23-64.070v-0.689h0.815l117.72-104.418c0-0.564 0.123-0.94 0.123-1.509 0.753-53.898-30.369-80.069-93.374-78.37zM405.959 398.483c1.942 2.767 3.074 6.469 3.323 11.112 0.312 4.452 0.438 9.6 0.438 15.246 0.251 10.916-0.689 19.83-2.949 26.985-2.952 7.594-10.983 11.357-24.159 11.357h-19.325v-74.043h15.31c7.842 0 13.865 0.683 18.072 2.19 4.397 1.573 7.468 3.953 9.29 7.153z"],width:1140,attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["recDisable"],grid:0},attrs:[],properties:{order:43,id:35,prevSize:32,code:58899,name:"recDisable",ligatures:""},setIdx:0,setId:1,iconIdx:35},{icon:{paths:["M581.278-1.708c284.857 0.19 514.807 230.517 514.427 514.997-0.378 285.047-230.073 514.553-514.869 514.615-284.541 0.062-515.311-230.517-514.933-514.422 0.439-285.936 230.009-515.439 515.375-515.19zM580.579 148.244c-201.764 0.123-364.666 163.032-364.478 364.663 0 202.018 162.524 364.735 364.478 364.984 202.018 0.316 365.174-163.030 365.048-365.423-0.252-201.767-163.156-364.35-365.048-364.224z","M287.698 335.093h98.196c63.442-1.767 94.785 24.518 94.027 78.863 0.254 19.081-2.211 34.882-7.456 47.521-6.005 12.508-18.706 21.988-38.167 28.181v0.819c28.373 6.259 43.031 23.573 43.981 51.946v57.689c0 11.247 0.254 22.813 0.758 34.756 0.819 12.005 3.033 20.979 6.696 27.043h-71.846c-3.727-6.064-6.128-15.038-7.14-27.043-1.012-11.943-1.454-23.509-1.138-34.756v-52.321c0-9.603-2.214-16.553-6.573-20.979-4.675-4.107-12.701-6.19-24.012-6.19h-14.599v141.291h-72.73v-326.82zM360.428 465.139h19.463c13.271 0 21.359-3.794 24.331-11.375 2.276-7.204 3.221-16.304 2.969-27.171 0-5.815-0.126-10.867-0.442-15.418-0.252-4.675-1.392-8.404-3.352-11.247-1.831-3.157-4.926-5.561-9.352-7.14-4.233-1.454-10.299-2.211-18.2-2.211h-15.418v74.564z","M498.372 335.093h162.082v62.687h-89.35v65.587h78.103v62.685h-78.103v73.11h92.822v62.749h-165.557v-326.818z","M682.507 424.001c0.316-31.782 9.416-55.542 27.425-71.407 17.44-15.29 40.185-22.936 68.181-22.936 28.247 0 51.119 7.646 68.623 23 17.82 15.798 26.92 39.623 27.171 71.407v30.333h-72.73v-37.031c0.254-6.192-0.57-12.639-2.527-19.209-1.264-3.157-3.475-5.938-6.573-8.214-3.221-1.515-7.898-2.404-13.964-2.404-10.615 0.316-17.249 3.855-19.967 10.618-2.211 6.573-3.223 13.017-2.907 19.209v161.956c0 2.273 0.126 4.865 0.38 7.772 0.568 3.411 1.454 6.824 2.527 10.233 2.717 7.775 9.352 11.756 19.967 12.007 6.067 0 10.744-1.261 13.964-3.791 3.098-2.15 5.309-4.867 6.573-8.216 1.96-7.33 2.782-13.33 2.527-18.007v-47.837h72.73v41.328c-1.451 61.547-33.364 93.015-95.794 94.469-62.685-1.454-94.53-32.922-95.607-94.343v-148.937z"],width:1142,attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["recEnable"],grid:0},attrs:[],properties:{order:44,id:36,prevSize:32,code:58900,name:"recEnable",ligatures:""},setIdx:0,setId:1,iconIdx:36},{icon:{paths:["M952.495 4.935h-818.689c-72.81 0-132.183 60.63-132.183 135.162v750.719c0 74.473 59.372 135.101 132.183 135.101h818.686c72.936 0 132.314-60.625 132.314-135.101v-750.722c0.003-74.532-59.378-135.159-132.311-135.159zM946.346 884.349h-806.14v-737.822h806.015l0.126 737.822z","M685.753 285.456h216.911v566.758h-216.911v-566.758z","M428.672 413.998h216.911v438.216h-216.911v-438.216z","M172.339 542.54h216.161v309.677h-216.161v-309.677z"],width:1088,attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["presentation"],grid:0},attrs:[],properties:{order:53,id:37,prevSize:32,code:58883,name:"presentation",ligatures:""},setIdx:0,setId:1,iconIdx:37},{icon:{paths:["M512 42c46 0 86 40 86 86s-40 86-86 86-86-40-86-86 40-86 86-86zM512 298c46 0 86 40 86 86s-40 86-86 86-86-40-86-86 40-86 86-86zM768 298c46 0 86 40 86 86s-40 86-86 86-86-40-86-86 40-86 86-86zM768 554c46 0 86 40 86 86s-40 86-86 86-86-40-86-86 40-86 86-86zM512 554c46 0 86 40 86 86s-40 86-86 86-86-40-86-86 40-86 86-86zM768 214c-46 0-86-40-86-86s40-86 86-86 86 40 86 86-40 86-86 86zM256 554c46 0 86 40 86 86s-40 86-86 86-86-40-86-86 40-86 86-86zM256 298c46 0 86 40 86 86s-40 86-86 86-86-40-86-86 40-86 86-86zM256 42c46 0 86 40 86 86s-40 86-86 86-86-40-86-86 40-86 86-86zM512 810c46 0 86 40 86 86s-40 86-86 86-86-40-86-86 40-86 86-86z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["dialpad"],grid:0},attrs:[],properties:{order:115,ligatures:"dialpad",id:38,prevSize:32,code:59685,name:"dialpad"},setIdx:0,setId:1,iconIdx:38},{icon:{paths:["M512 384c70 0 128 58 128 128s-58 128-128 128-128-58-128-128 58-128 128-128zM512 726c118 0 214-96 214-214s-96-214-214-214-214 96-214 214 96 214 214 214zM512 192c214 0 396 132 470 320-74 188-256 320-470 320s-396-132-470-320c74-188 256-320 470-320z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["visibility"],grid:0},attrs:[],properties:{order:114,ligatures:"remove_red_eye, visibility",id:39,prevSize:32,code:59683,name:"visibility"},setIdx:0,setId:1,iconIdx:39},{icon:{paths:["M506 384h6c70 0 128 58 128 128v8zM322 418c-14 28-24 60-24 94 0 118 96 214 214 214 34 0 66-10 94-24l-66-66c-8 2-18 4-28 4-70 0-128-58-128-128 0-10 2-20 4-28zM86 182l54-54 756 756-54 54c-47.968-47.365-96.266-94.401-144-142-58 24-120 36-186 36-214 0-396-132-470-320 34-84 90-156 160-212-39.017-38.983-77.307-78.693-116-118zM512 298c-28 0-54 6-78 16l-92-92c52-20 110-30 170-30 214 0 394 132 468 320-32 80-82 148-146 202l-124-124c10-24 16-50 16-78 0-118-96-214-214-214z"],attrs:[],isMulticolor:!1,isMulticolor2:!1,tags:["visibility_off"],grid:0},attrs:[],properties:{order:113,ligatures:"visibility_off",id:40,prevSize:32,code:59684,name:"visibility-off"},setIdx:0,setId:1,iconIdx:40}],height:1024,metadata:{name:"jitsi"},preferences:{showGlyphs:!0,showQuickUse:!0,showQuickUse2:!0,showSVGs:!0,fontPref:{prefix:"icon-",metadata:{fontFamily:"jitsi",majorVersion:1,minorVersion:0},metrics:{emSize:1024,baseline:0},embed:!1},imagePref:{prefix:"icon-",png:!0,useClassSelector:!0},historySize:100,showCodes:!1,search:"",showLiga:!1}}},862);
__d(function(e,t,a,d){Object.defineProperty(d,"__esModule",{value:!0});var o=t(549),r=t(864),i=babelHelpers.interopRequireDefault(r),n={textShadowColor:o.ColorPalette.black,textShadowOffset:{height:-1,width:0}};d.default=(0,o.createStyleSheet)(i.default,{thumbnailIndicator:n,dominantSpeakerIndicator:{fontSize:12},dominantSpeakerIndicatorBackground:{borderRadius:16,padding:4},moderatorIndicator:n,thumbnail:{height:80,width:80}})},863);
__d(function(o,t,e,r){Object.defineProperty(r,"__esModule",{value:!0});var i=t(538),a=t(549);r.default={avatar:{alignSelf:"center",borderRadius:"android"===i.Platform.OS?100:25,flex:0,height:50,width:50},dominantSpeakerIndicator:{color:a.ColorPalette.white,fontSize:15},dominantSpeakerIndicatorBackground:{backgroundColor:a.ColorPalette.blue,borderRadius:15,left:4,padding:5,position:"absolute",top:4},filmstrip:{alignItems:"flex-end",alignSelf:"stretch",bottom:a.BoxModel.margin,flex:1,flexDirection:"column",left:0,position:"absolute",right:0},filmstripScrollViewContentContainer:{paddingHorizontal:a.BoxModel.padding},moderatorIndicator:{backgroundColor:"transparent",bottom:4,color:a.ColorPalette.white,position:"absolute",right:4},thumbnail:{alignItems:"stretch",backgroundColor:a.ColorPalette.appBackground,borderColor:"#424242",borderRadius:3,borderStyle:"solid",borderWidth:1,flex:1,justifyContent:"center",marginLeft:2,marginRight:2,overflow:"hidden",position:"relative"},thumbnailIndicator:{backgroundColor:"transparent",color:a.ColorPalette.white,paddingLeft:1,paddingRight:1,position:"relative"},thumbnailIndicatorContainer:{alignSelf:"stretch",bottom:4,flex:1,flexDirection:"row",left:4,position:"absolute"},thumbnailPinned:{borderColor:a.ColorPalette.blue,shadowColor:a.ColorPalette.black,shadowOffset:{height:5,width:5},shadowRadius:5}}},864);
__d(function(e,t,r,a){Object.defineProperty(a,"__esModule",{value:!0}),a.DominantSpeakerIndicator=void 0;var n=t(34),l=babelHelpers.interopRequireDefault(n),o=t(64),i=t(866),u=babelHelpers.interopRequireDefault(i),p=t(863),s=babelHelpers.interopRequireDefault(p);a.DominantSpeakerIndicator=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return l.default.createElement(o.View,{style:s.default.dominantSpeakerIndicatorBackground},l.default.createElement(u.default,{name:"bullhorn",style:s.default.dominantSpeakerIndicator}))}}]),t}(n.Component)},865);
__d(function(e,t,a,o){Object.defineProperty(o,"__esModule",{value:!0}),o.getImageSource=o.ToolbarAndroid=o.TabBarItemIOS=o.TabBarItem=o.Button=void 0;var r=t(867),u=babelHelpers.interopRequireDefault(r),b=t(872),l=babelHelpers.interopRequireDefault(b),d=(0,u.default)(l.default,"FontAwesome","FontAwesome.ttf");o.default=d;o.Button=d.Button,o.TabBarItem=d.TabBarItem,o.TabBarItemIOS=d.TabBarItemIOS,o.ToolbarAndroid=d.ToolbarAndroid,o.getImageSource=d.getImageSource},866);
__d(function(e,r,t,o){function a(e,r,t){function o(){if(!m){if("android"===u.Platform.OS)throw new Error("RNVectorIconsModule not available, did you properly integrate the module? Try running `react-native link react-native-vector-icons` and recompiling.");throw new Error("RNVectorIconsManager not available, did you add the library to your project and link with libRNVectorIcons.a? Try running `react-native link react-native-vector-icons` and recompiling.")}}function a(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;o();var n=e[r]||"?";"number"==typeof n&&(n=String.fromCharCode(n));var l=(0,u.processColor)(a),i=n+":"+t+":"+l,s=u.PixelRatio.get();return new Promise(function(e,r){var o=g[i];void 0!==o?!o||o instanceof Error?r(o):e({uri:o,scale:s}):m.getImageForFont(c,n,t,l,function(t,o){var a="string"==typeof t?new Error(t):t;g[i]=o||a||!1,!a&&o?e({uri:o,scale:s}):r(a)})})}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t;return"ios"===u.Platform.OS?(o(),e?m.loadFontWithFileName.apply(m,babelHelpers.toConsumableArray(e.split("."))):Promise.reject(new Error("Unable to load font, because no file was specified. "))):Promise.resolve()}var c=r;"android"===u.Platform.OS&&t&&(c=t.replace(/\.(otf|ttf)$/,"")),"windows"===u.Platform.OS&&t&&(c="Assets/"+t+"#"+r);var d=s.default.oneOf(Object.keys(e)),b=function(r){function t(){var e,r,o,a;babelHelpers.classCallCheck(this,t);for(var n=arguments.length,l=Array(n),i=0;i<n;i++)l[i]=arguments[i];return r=o=babelHelpers.possibleConstructorReturn(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.root=null,o.handleRef=function(e){o.root=e},a=r,babelHelpers.possibleConstructorReturn(o,a)}return babelHelpers.inherits(t,r),babelHelpers.createClass(t,[{key:"setNativeProps",value:function(e){this.root&&this.root.setNativeProps(e)}},{key:"render",value:function(){var r=this.props,t=r.name,o=r.size,a=r.color,n=r.style,i=babelHelpers.objectWithoutProperties(r,["name","size","color","style"]),s=t?e[t]||"?":"";"number"==typeof s&&(s=String.fromCharCode(s));var f={fontSize:o,color:a},d={fontFamily:c,fontWeight:"normal",fontStyle:"normal"};return i.style=[f,n,d],i.ref=this.handleRef,l.default.createElement(u.Text,i,s,this.props.children)}}]),t}(n.Component);b.propTypes={name:d,size:s.default.number,color:s.default.string,children:s.default.node,style:s.default.any},b.defaultProps={size:h,allowFontScaling:!1};var g={};return b.Button=(0,f.default)(b),b.TabBarItem=(0,p.default)(d,a),b.TabBarItemIOS=b.TabBarItem,b.ToolbarAndroid=(0,v.default)(d,a),b.getImageSource=a,b.loadFont=i,b}Object.defineProperty(o,"__esModule",{value:!0}),o.default=a;var n=r(34),l=babelHelpers.interopRequireDefault(n),i=r(559),s=babelHelpers.interopRequireDefault(i),u=r(868),c=r(869),f=babelHelpers.interopRequireDefault(c),d=r(870),p=babelHelpers.interopRequireDefault(d),b=r(871),v=babelHelpers.interopRequireDefault(b),m=u.NativeModules.RNVectorIconsManager||u.NativeModules.RNVectorIconsModule,h=12,y="black"},867);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(64);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})})},868);
__d(function(e,t,r,l){function o(e){var t,r;return r=t=function(t){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return babelHelpers.inherits(r,t),babelHelpers.createClass(r,[{key:"render",value:function(){var t=this.props,r=t.style,l=t.iconStyle,o=t.children,a=babelHelpers.objectWithoutProperties(t,["style","iconStyle","children"]),i=(0,c.default)(a,Object.keys(y.Text.propTypes),"style","name","size","color"),u=(0,c.default)(a,Object.keys(y.TouchableHighlight.propTypes)),b=(0,s.default)(a,Object.keys(i),Object.keys(u),"iconStyle","borderRadius","backgroundColor");i.style=l?[h.icon,l]:h.icon;var p=(0,c.default)(this.props,"color"),f=(0,c.default)(this.props,"backgroundColor","borderRadius");return d.default.createElement(y.TouchableHighlight,babelHelpers.extends({style:[h.touchable,f]},u),d.default.createElement(y.View,babelHelpers.extends({style:[h.container,f,r]},b),d.default.createElement(e,i),(0,n.default)(o)?d.default.createElement(y.Text,{style:[h.text,p]},o):o))}}]),r}(b.Component),t.propTypes={backgroundColor:f.default.string,borderRadius:f.default.number,color:f.default.string,size:f.default.number,iconStyle:f.default.any,style:f.default.any,children:f.default.node},t.defaultProps={backgroundColor:g,borderRadius:5,color:"white",size:20},r}Object.defineProperty(l,"__esModule",{value:!0}),l.default=o;var a=t(710),n=babelHelpers.interopRequireDefault(a),i=t(712),s=babelHelpers.interopRequireDefault(i),u=t(840),c=babelHelpers.interopRequireDefault(u),b=t(34),d=babelHelpers.interopRequireDefault(b),p=t(559),f=babelHelpers.interopRequireDefault(p),y=t(868),h=y.StyleSheet.create({container:{flexDirection:"row",justifyContent:"flex-start",alignItems:"center",padding:8},touchable:{overflow:"hidden"},icon:{marginRight:10},text:{fontWeight:"600",backgroundColor:"transparent"}}),g="#007AFF"},869);
__d(function(e,t,o,n){function r(e,t){var o,n;return n=o=function(e){function o(){return babelHelpers.classCallCheck(this,o),babelHelpers.possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).apply(this,arguments))}return babelHelpers.inherits(o,e),babelHelpers.createClass(o,[{key:"updateIconSources",value:function(e){var o=this;if(e.iconName&&t(e.iconName,e.iconSize,e.iconColor).then(function(e){return o.setState({icon:e})}),e.selectedIconName||e.selectedIconColor){var n=e.selectedIconName||e.iconName,r=e.selectedIconColor||e.iconColor;t(n,e.iconSize,r).then(function(e){return o.setState({selectedIcon:e})})}}},{key:"componentWillMount",value:function(){this.updateIconSources(this.props)}},{key:"componentWillReceiveProps",value:function(e){var t=Object.keys(o.propTypes);(0,i.default)((0,c.default)(e,t),(0,c.default)(this.props,t))||this.updateIconSources(e)}},{key:"render",value:function(){return u.default.createElement(d.TabBarIOS.Item,babelHelpers.extends({},this.props,this.state))}}]),o}(s.Component),o.propTypes={iconName:e.isRequired,selectedIconName:e,iconSize:f.default.number,iconColor:f.default.string,selectedIconColor:f.default.string},o.defaultProps={iconSize:30},n}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var l=t(848),i=babelHelpers.interopRequireDefault(l),a=t(840),c=babelHelpers.interopRequireDefault(a),s=t(34),u=babelHelpers.interopRequireDefault(s),p=t(559),f=babelHelpers.interopRequireDefault(p),d=t(868)},870);
__d(function(e,o,t,n){function r(e,o){var t,n;return n=t=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"updateIconSources",value:function(e){var t=this,n=e.iconSize,r=e.iconColor||e.titleColor;e.logoName&&o(e.logoName,n,r).then(function(e){return t.setState({logo:e})}),e.navIconName&&o(e.navIconName,n,r).then(function(e){return t.setState({navIcon:e})}),e.overflowIconName&&o(e.overflowIconName,n,r).then(function(e){return t.setState({overflowIcon:e})}),Promise.all((e.actions||[]).map(function(e){return e.iconName?o(e.iconName,e.iconSize||n,e.iconColor||r).then(function(o){return babelHelpers.extends({},e,{icon:o})}):Promise.resolve(e)})).then(function(e){return t.setState({actions:e})})}},{key:"componentWillMount",value:function(){this.updateIconSources(this.props)}},{key:"componentWillReceiveProps",value:function(e){var o=this,n=Object.keys(t.propTypes);if(!(0,l.default)((0,u.default)(e,n),(0,u.default)(this.props,n))){var r={};e.logoName||(r.logo=void 0),e.navIconName||(r.navIcon=void 0),e.overflowIconName||(r.overflowIcon=void 0),this.state&&Object.keys(r).length?this.setState(r,function(){return o.updateIconSources(e)}):this.updateIconSources(e)}}},{key:"render",value:function(){return c.default.createElement(d.ToolbarAndroid,babelHelpers.extends({},this.props,this.state))}}]),t}(s.Component),t.propTypes={logoIconName:e,navIconName:e,overflowIconName:e,actions:p.default.arrayOf(p.default.shape({title:p.default.string.isRequired,iconName:e,iconSize:p.default.number,iconColor:p.default.string,show:p.default.oneOf(["always","ifRoom","never"]),showWithText:p.default.bool})),iconSize:p.default.number,iconColor:p.default.string},t.defaultProps={iconSize:24},n}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r;var a=o(848),l=babelHelpers.interopRequireDefault(a),i=o(840),u=babelHelpers.interopRequireDefault(i),s=o(34),c=babelHelpers.interopRequireDefault(s),f=o(559),p=babelHelpers.interopRequireDefault(f),d=o(868)},871);
__d(function(e,r,o,a){o.exports={glass:61440,music:61441,search:61442,"envelope-o":61443,heart:61444,star:61445,"star-o":61446,user:61447,film:61448,"th-large":61449,th:61450,"th-list":61451,check:61452,remove:61453,close:61453,times:61453,"search-plus":61454,"search-minus":61456,"power-off":61457,signal:61458,gear:61459,cog:61459,"trash-o":61460,home:61461,"file-o":61462,"clock-o":61463,road:61464,download:61465,"arrow-circle-o-down":61466,"arrow-circle-o-up":61467,inbox:61468,"play-circle-o":61469,"rotate-right":61470,repeat:61470,refresh:61473,"list-alt":61474,lock:61475,flag:61476,headphones:61477,"volume-off":61478,"volume-down":61479,"volume-up":61480,qrcode:61481,barcode:61482,tag:61483,tags:61484,book:61485,bookmark:61486,print:61487,camera:61488,font:61489,bold:61490,italic:61491,"text-height":61492,"text-width":61493,"align-left":61494,"align-center":61495,"align-right":61496,"align-justify":61497,list:61498,dedent:61499,outdent:61499,indent:61500,"video-camera":61501,photo:61502,image:61502,"picture-o":61502,pencil:61504,"map-marker":61505,adjust:61506,tint:61507,edit:61508,"pencil-square-o":61508,"share-square-o":61509,"check-square-o":61510,arrows:61511,"step-backward":61512,"fast-backward":61513,backward:61514,play:61515,pause:61516,stop:61517,forward:61518,"fast-forward":61520,"step-forward":61521,eject:61522,"chevron-left":61523,"chevron-right":61524,"plus-circle":61525,"minus-circle":61526,"times-circle":61527,"check-circle":61528,"question-circle":61529,"info-circle":61530,crosshairs:61531,"times-circle-o":61532,"check-circle-o":61533,ban:61534,"arrow-left":61536,"arrow-right":61537,"arrow-up":61538,"arrow-down":61539,"mail-forward":61540,share:61540,expand:61541,compress:61542,plus:61543,minus:61544,asterisk:61545,"exclamation-circle":61546,gift:61547,leaf:61548,fire:61549,eye:61550,"eye-slash":61552,warning:61553,"exclamation-triangle":61553,plane:61554,calendar:61555,random:61556,comment:61557,magnet:61558,"chevron-up":61559,"chevron-down":61560,retweet:61561,"shopping-cart":61562,folder:61563,"folder-open":61564,"arrows-v":61565,"arrows-h":61566,"bar-chart-o":61568,"bar-chart":61568,"twitter-square":61569,"facebook-square":61570,"camera-retro":61571,key:61572,gears:61573,cogs:61573,comments:61574,"thumbs-o-up":61575,"thumbs-o-down":61576,"star-half":61577,"heart-o":61578,"sign-out":61579,"linkedin-square":61580,"thumb-tack":61581,"external-link":61582,"sign-in":61584,trophy:61585,"github-square":61586,upload:61587,"lemon-o":61588,phone:61589,"square-o":61590,"bookmark-o":61591,"phone-square":61592,twitter:61593,"facebook-f":61594,facebook:61594,github:61595,unlock:61596,"credit-card":61597,feed:61598,rss:61598,"hdd-o":61600,bullhorn:61601,bell:61683,certificate:61603,"hand-o-right":61604,"hand-o-left":61605,"hand-o-up":61606,"hand-o-down":61607,"arrow-circle-left":61608,"arrow-circle-right":61609,"arrow-circle-up":61610,"arrow-circle-down":61611,globe:61612,wrench:61613,tasks:61614,filter:61616,briefcase:61617,"arrows-alt":61618,group:61632,users:61632,chain:61633,link:61633,cloud:61634,flask:61635,cut:61636,scissors:61636,copy:61637,"files-o":61637,paperclip:61638,save:61639,"floppy-o":61639,square:61640,navicon:61641,reorder:61641,bars:61641,"list-ul":61642,"list-ol":61643,strikethrough:61644,underline:61645,table:61646,magic:61648,truck:61649,pinterest:61650,"pinterest-square":61651,"google-plus-square":61652,"google-plus":61653,money:61654,"caret-down":61655,"caret-up":61656,"caret-left":61657,"caret-right":61658,columns:61659,unsorted:61660,sort:61660,"sort-down":61661,"sort-desc":61661,"sort-up":61662,"sort-asc":61662,envelope:61664,linkedin:61665,"rotate-left":61666,undo:61666,legal:61667,gavel:61667,dashboard:61668,tachometer:61668,"comment-o":61669,"comments-o":61670,flash:61671,bolt:61671,sitemap:61672,umbrella:61673,paste:61674,clipboard:61674,"lightbulb-o":61675,exchange:61676,"cloud-download":61677,"cloud-upload":61678,"user-md":61680,stethoscope:61681,suitcase:61682,"bell-o":61602,coffee:61684,cutlery:61685,"file-text-o":61686,"building-o":61687,"hospital-o":61688,ambulance:61689,medkit:61690,"fighter-jet":61691,beer:61692,"h-square":61693,"plus-square":61694,"angle-double-left":61696,"angle-double-right":61697,"angle-double-up":61698,"angle-double-down":61699,"angle-left":61700,"angle-right":61701,"angle-up":61702,"angle-down":61703,desktop:61704,laptop:61705,tablet:61706,"mobile-phone":61707,mobile:61707,"circle-o":61708,"quote-left":61709,"quote-right":61710,spinner:61712,circle:61713,"mail-reply":61714,reply:61714,"github-alt":61715,"folder-o":61716,"folder-open-o":61717,"smile-o":61720,"frown-o":61721,"meh-o":61722,gamepad:61723,"keyboard-o":61724,"flag-o":61725,"flag-checkered":61726,terminal:61728,code:61729,"mail-reply-all":61730,"reply-all":61730,"star-half-empty":61731,"star-half-full":61731,"star-half-o":61731,"location-arrow":61732,crop:61733,"code-fork":61734,unlink:61735,"chain-broken":61735,question:61736,info:61737,exclamation:61738,superscript:61739,subscript:61740,eraser:61741,"puzzle-piece":61742,microphone:61744,"microphone-slash":61745,shield:61746,"calendar-o":61747,"fire-extinguisher":61748,rocket:61749,maxcdn:61750,"chevron-circle-left":61751,"chevron-circle-right":61752,"chevron-circle-up":61753,"chevron-circle-down":61754,html5:61755,css3:61756,anchor:61757,"unlock-alt":61758,bullseye:61760,"ellipsis-h":61761,"ellipsis-v":61762,"rss-square":61763,"play-circle":61764,ticket:61765,"minus-square":61766,"minus-square-o":61767,"level-up":61768,"level-down":61769,"check-square":61770,"pencil-square":61771,"external-link-square":61772,"share-square":61773,compass:61774,"toggle-down":61776,"caret-square-o-down":61776,"toggle-up":61777,"caret-square-o-up":61777,"toggle-right":61778,"caret-square-o-right":61778,euro:61779,eur:61779,gbp:61780,dollar:61781,usd:61781,rupee:61782,inr:61782,cny:61783,rmb:61783,yen:61783,jpy:61783,ruble:61784,rouble:61784,rub:61784,won:61785,krw:61785,bitcoin:61786,btc:61786,file:61787,"file-text":61788,"sort-alpha-asc":61789,"sort-alpha-desc":61790,"sort-amount-asc":61792,"sort-amount-desc":61793,"sort-numeric-asc":61794,"sort-numeric-desc":61795,"thumbs-up":61796,"thumbs-down":61797,"youtube-square":61798,youtube:61799,xing:61800,"xing-square":61801,"youtube-play":61802,dropbox:61803,"stack-overflow":61804,instagram:61805,flickr:61806,adn:61808,bitbucket:61809,"bitbucket-square":61810,tumblr:61811,"tumblr-square":61812,"long-arrow-down":61813,"long-arrow-up":61814,"long-arrow-left":61815,"long-arrow-right":61816,apple:61817,windows:61818,android:61819,linux:61820,dribbble:61821,skype:61822,foursquare:61824,trello:61825,female:61826,male:61827,gittip:61828,gratipay:61828,"sun-o":61829,"moon-o":61830,archive:61831,bug:61832,vk:61833,weibo:61834,renren:61835,pagelines:61836,"stack-exchange":61837,"arrow-circle-o-right":61838,"arrow-circle-o-left":61840,"toggle-left":61841,"caret-square-o-left":61841,"dot-circle-o":61842,wheelchair:61843,"vimeo-square":61844,"turkish-lira":61845,try:61845,"plus-square-o":61846,"space-shuttle":61847,slack:61848,"envelope-square":61849,wordpress:61850,openid:61851,institution:61852,bank:61852,university:61852,"mortar-board":61853,"graduation-cap":61853,yahoo:61854,google:61856,reddit:61857,"reddit-square":61858,"stumbleupon-circle":61859,stumbleupon:61860,delicious:61861,digg:61862,"pied-piper-pp":61863,"pied-piper-alt":61864,drupal:61865,joomla:61866,language:61867,fax:61868,building:61869,child:61870,paw:61872,spoon:61873,cube:61874,cubes:61875,behance:61876,"behance-square":61877,steam:61878,"steam-square":61879,recycle:61880,automobile:61881,car:61881,cab:61882,taxi:61882,tree:61883,spotify:61884,deviantart:61885,soundcloud:61886,database:61888,"file-pdf-o":61889,"file-word-o":61890,"file-excel-o":61891,"file-powerpoint-o":61892,"file-photo-o":61893,"file-picture-o":61893,"file-image-o":61893,"file-zip-o":61894,"file-archive-o":61894,"file-sound-o":61895,"file-audio-o":61895,"file-movie-o":61896,"file-video-o":61896,"file-code-o":61897,vine:61898,codepen:61899,jsfiddle:61900,"life-bouy":61901,"life-buoy":61901,"life-saver":61901,support:61901,"life-ring":61901,"circle-o-notch":61902,ra:61904,resistance:61904,rebel:61904,ge:61905,empire:61905,"git-square":61906,git:61907,"y-combinator-square":61908,"yc-square":61908,"hacker-news":61908,"tencent-weibo":61909,qq:61910,wechat:61911,weixin:61911,send:61912,"paper-plane":61912,"send-o":61913,"paper-plane-o":61913,history:61914,"circle-thin":61915,header:61916,paragraph:61917,sliders:61918,"share-alt":61920,"share-alt-square":61921,bomb:61922,"soccer-ball-o":61923,"futbol-o":61923,tty:61924,binoculars:61925,plug:61926,slideshare:61927,twitch:61928,yelp:61929,"newspaper-o":61930,wifi:61931,calculator:61932,paypal:61933,"google-wallet":61934,"cc-visa":61936,"cc-mastercard":61937,"cc-discover":61938,"cc-amex":61939,"cc-paypal":61940,"cc-stripe":61941,"bell-slash":61942,"bell-slash-o":61943,trash:61944,copyright:61945,at:61946,eyedropper:61947,"paint-brush":61948,"birthday-cake":61949,"area-chart":61950,"pie-chart":61952,"line-chart":61953,lastfm:61954,"lastfm-square":61955,"toggle-off":61956,"toggle-on":61957,bicycle:61958,bus:61959,ioxhost:61960,angellist:61961,cc:61962,shekel:61963,sheqel:61963,ils:61963,meanpath:61964,buysellads:61965,connectdevelop:61966,dashcube:61968,forumbee:61969,leanpub:61970,sellsy:61971,shirtsinbulk:61972,simplybuilt:61973,skyatlas:61974,"cart-plus":61975,"cart-arrow-down":61976,diamond:61977,ship:61978,"user-secret":61979,motorcycle:61980,"street-view":61981,heartbeat:61982,venus:61985,mars:61986,mercury:61987,intersex:61988,transgender:61988,"transgender-alt":61989,"venus-double":61990,"mars-double":61991,"venus-mars":61992,"mars-stroke":61993,"mars-stroke-v":61994,"mars-stroke-h":61995,neuter:61996,genderless:61997,"facebook-official":62e3,"pinterest-p":62001,whatsapp:62002,server:62003,"user-plus":62004,"user-times":62005,hotel:62006,bed:62006,viacoin:62007,train:62008,subway:62009,medium:62010,yc:62011,"y-combinator":62011,"optin-monster":62012,opencart:62013,expeditedssl:62014,"battery-4":62016,battery:62016,"battery-full":62016,"battery-3":62017,"battery-three-quarters":62017,"battery-2":62018,"battery-half":62018,"battery-1":62019,"battery-quarter":62019,"battery-0":62020,"battery-empty":62020,"mouse-pointer":62021,"i-cursor":62022,"object-group":62023,"object-ungroup":62024,"sticky-note":62025,"sticky-note-o":62026,"cc-jcb":62027,"cc-diners-club":62028,clone:62029,"balance-scale":62030,"hourglass-o":62032,"hourglass-1":62033,"hourglass-start":62033,"hourglass-2":62034,"hourglass-half":62034,"hourglass-3":62035,"hourglass-end":62035,hourglass:62036,"hand-grab-o":62037,"hand-rock-o":62037,"hand-stop-o":62038,"hand-paper-o":62038,"hand-scissors-o":62039,"hand-lizard-o":62040,"hand-spock-o":62041,"hand-pointer-o":62042,"hand-peace-o":62043,trademark:62044,registered:62045,"creative-commons":62046,gg:62048,"gg-circle":62049,tripadvisor:62050,odnoklassniki:62051,"odnoklassniki-square":62052,"get-pocket":62053,"wikipedia-w":62054,safari:62055,chrome:62056,firefox:62057,opera:62058,"internet-explorer":62059,tv:62060,television:62060,contao:62061,"500px":62062,amazon:62064,"calendar-plus-o":62065,"calendar-minus-o":62066,"calendar-times-o":62067,"calendar-check-o":62068,industry:62069,"map-pin":62070,"map-signs":62071,"map-o":62072,map:62073,commenting:62074,"commenting-o":62075,houzz:62076,vimeo:62077,"black-tie":62078,fonticons:62080,"reddit-alien":62081,edge:62082,"credit-card-alt":62083,codiepie:62084,modx:62085,"fort-awesome":62086,usb:62087,"product-hunt":62088,mixcloud:62089,scribd:62090,"pause-circle":62091,"pause-circle-o":62092,"stop-circle":62093,"stop-circle-o":62094,"shopping-bag":62096,"shopping-basket":62097,hashtag:62098,bluetooth:62099,"bluetooth-b":62100,percent:62101,gitlab:62102,wpbeginner:62103,wpforms:62104,envira:62105,"universal-access":62106,"wheelchair-alt":62107,"question-circle-o":62108,blind:62109,"audio-description":62110,"volume-control-phone":62112,braille:62113,"assistive-listening-systems":62114,"asl-interpreting":62115,"american-sign-language-interpreting":62115,deafness:62116,"hard-of-hearing":62116,deaf:62116,glide:62117,"glide-g":62118,signing:62119,"sign-language":62119,"low-vision":62120,viadeo:62121,"viadeo-square":62122,snapchat:62123,"snapchat-ghost":62124,"snapchat-square":62125,"pied-piper":62126,"first-order":62128,yoast:62129,themeisle:62130,"google-plus-circle":62131,"google-plus-official":62131,fa:62132,"font-awesome":62132,"handshake-o":62133,"envelope-open":62134,"envelope-open-o":62135,linode:62136,"address-book":62137,"address-book-o":62138,vcard:62139,"address-card":62139,"vcard-o":62140,"address-card-o":62140,"user-circle":62141,"user-circle-o":62142,"user-o":62144,"id-badge":62145,"drivers-license":62146,"id-card":62146,"drivers-license-o":62147,"id-card-o":62147,quora:62148,"free-code-camp":62149,telegram:62150,"thermometer-4":62151,thermometer:62151,"thermometer-full":62151,"thermometer-3":62152,"thermometer-three-quarters":62152,"thermometer-2":62153,"thermometer-half":62153,"thermometer-1":62154,"thermometer-quarter":62154,"thermometer-0":62155,"thermometer-empty":62155,shower:62156,bathtub:62157,s15:62157,bath:62157,podcast:62158,"window-maximize":62160,"window-minimize":62161,"window-restore":62162,"times-rectangle":62163,"window-close":62163,"times-rectangle-o":62164,"window-close-o":62164,bandcamp:62165,grav:62166,etsy:62167,imdb:62168,ravelry:62169,eercast:62170,microchip:62171,"snowflake-o":62172,superpowers:62173,wpexplorer:62174,meetup:62176}},872);
__d(function(e,r,t,l){Object.defineProperty(l,"__esModule",{value:!0}),l.ModeratorIndicator=void 0;var a=r(34),o=babelHelpers.interopRequireDefault(a),n=r(866),i=babelHelpers.interopRequireDefault(n),s=r(863),u=babelHelpers.interopRequireDefault(s);l.ModeratorIndicator=function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"render",value:function(){return o.default.createElement(i.default,{name:"star",style:u.default.moderatorIndicator})}}]),r}(a.Component)},873);
__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0}),l.VideoMutedIndicator=void 0;var a=t(34),n=babelHelpers.interopRequireDefault(a),o=t(704),i=t(863),u=babelHelpers.interopRequireDefault(i);l.VideoMutedIndicator=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return n.default.createElement(o.Icon,{name:"camera-disabled",style:u.default.thumbnailIndicator})}}]),t}(a.Component)},874);
__d(function(e,t,r,l){function i(e){return{_participants:e["features/base/participants"],_visible:!e["features/toolbox"].visible}}Object.defineProperty(l,"__esModule",{value:!0});var a=t(34),n=babelHelpers.interopRequireDefault(a),o=t(64),s=t(557),p=t(538),u=t(876),c=babelHelpers.interopRequireDefault(u),f=t(701),b=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return n.default.createElement(p.Container,{style:f.styles.filmstrip,visible:this.props._visible},n.default.createElement(o.ScrollView,{contentContainerStyle:f.styles.filmstripScrollViewContentContainer,horizontal:!0,showsHorizontalScrollIndicator:!1,showsVerticalScrollIndicator:!1},this._sort(this.props._participants).map(function(e){return n.default.createElement(c.default,{key:e.id,participant:e})})))}},{key:"_sort",value:function(e){for(var t=[],r=e.length-1;r>=0;--r){var l=e[r];l.local||t.push(l)}for(var i=e.length-1;i>=0;--i){var a=e[i];a.local&&t.push(a)}return t}}]),t}(a.Component);b.propTypes={_participants:n.default.PropTypes.array,_visible:n.default.PropTypes.bool.isRequired},l.default=(0,s.connect)(i)(b)},875);
__d(function(e,t,a,r){function i(e,t){var a=e["features/large-video"],r=e["features/base/tracks"],i=t.participant.id;return{_audioTrack:(0,s.getTrackByMediaTypeAndParticipant)(r,c.MEDIA_TYPE.AUDIO,i),_largeVideo:a,_videoTrack:(0,s.getTrackByMediaTypeAndParticipant)(r,c.MEDIA_TYPE.VIDEO,i)}}Object.defineProperty(r,"__esModule",{value:!0});var n=t(34),l=babelHelpers.interopRequireDefault(n),o=t(557),c=t(579),d=t(502),p=t(538),s=t(592),u=t(701),f=function(e){function t(e){babelHelpers.classCallCheck(this,t);var a=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a._onClick=a._onClick.bind(a),a}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props._audioTrack,t=this.props._largeVideo,a=this.props.participant,r=this.props._videoTrack,i=u.styles.thumbnail;a.pinned&&(i=babelHelpers.extends({},i,u.styles.thumbnailPinned));var n=!e||e.muted,o=!n&&!e.local,s=a.id,f=s!==t.participantId,b=!r||r.muted;return l.default.createElement(p.Container,{onClick:this._onClick,style:i},o&&l.default.createElement(c.Audio,{stream:e.jitsiTrack.getOriginalStream()}),l.default.createElement(d.ParticipantView,{avatarStyle:u.styles.avatar,participantId:s,showAvatar:f,showVideo:f,zOrder:1}),a.role===d.PARTICIPANT_ROLE.MODERATOR&&l.default.createElement(u.ModeratorIndicator,null),a.dominantSpeaker&&l.default.createElement(u.DominantSpeakerIndicator,null),l.default.createElement(p.Container,{style:u.styles.thumbnailIndicatorContainer},n&&l.default.createElement(u.AudioMutedIndicator,null),b&&l.default.createElement(u.VideoMutedIndicator,null)))}},{key:"_onClick",value:function(){var e=this.props,t=e.dispatch,a=e.participant;t((0,d.pinParticipant)(a.pinned?null:a.id))}}]),t}(n.Component);f.propTypes={_audioTrack:l.default.PropTypes.object,_largeVideo:l.default.PropTypes.object,_videoTrack:l.default.PropTypes.object,dispatch:l.default.PropTypes.func,participant:l.default.PropTypes.object},r.default=(0,o.connect)(i)(f)},876);
__d(function(e,t,r,a){var i=t(467),l=t(878),n=t(890),u=babelHelpers.interopRequireDefault(n),I=t(603),f=babelHelpers.interopRequireDefault(I),s=t(699);i.MiddlewareRegistry.register(function(e){var t=e.getState;return function(e){return function(r){switch(r.type){case l.SET_CALL_OVERLAY_VISIBLE:if("undefined"!=typeof APP){var a=Boolean(t()["features/jwt"].callOverlayVisible),i=e(r),n=Boolean(t()["features/jwt"].callOverlayVisible);return a===n||u.default.filmstrip&&u.default.toggleFilmstrip(!n,!1),i}break;case s.SET_FILMSTRIP_REMOTE_VIDEOS_VISIBLITY:case s.SET_FILMSTRIP_VISIBILITY:var I=e(r);return"undefined"==typeof APP||APP.UI.emitEvent(f.default.UPDATED_FILMSTRIP_DISPLAY),I}return e(r)}}})},877);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(879);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(880);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})});var c=t(881);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}})});var f=t(884);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return f[e]}})}),t(885),t(889)},878);
__d(function(e,t,l,i){function n(e){return function(t,l){l()["features/jwt"].callOverlayVisible===e||t({type:a.SET_CALL_OVERLAY_VISIBLE,callOverlayVisible:e})}}function r(e){return{type:a.SET_JWT,jwt:e}}Object.defineProperty(i,"__esModule",{value:!0}),i.setCallOverlayVisible=n,i.setJWT=r;var a=t(880)},879);
__d(function(_,E,L,S){Object.defineProperty(S,"__esModule",{value:!0});S.SET_CALL_OVERLAY_VISIBLE=Symbol("SET_CALL_OVERLAY_VISIBLE"),S.SET_JWT=Symbol("SET_JWT")},880);
__d(function(e,r,t,l){Object.defineProperty(l,"__esModule",{value:!0});var n=r(882);Object.defineProperty(l,"CallOverlay",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(n).default}})},881);
__d(function(e,t,i,a){function n(e){return{_callee:e["features/jwt"].callee}}Object.defineProperty(a,"__esModule",{value:!0});var r=t(34),l=babelHelpers.interopRequireDefault(r),o=t(557),s=t(579),u=t(502),d=t(538),_=t(603),c=babelHelpers.interopRequireDefault(_),f=t(883),g=babelHelpers.interopRequireDefault(f),v=function(e){function t(e){babelHelpers.classCallCheck(this,t);var i=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.state={className:void 0,renderAudio:"object"!=typeof interfaceConfig||!interfaceConfig.DISABLE_RINGING,ringing:!0},i._onLargeVideoAvatarVisible=i._onLargeVideoAvatarVisible.bind(i),i._setAudio=i._setAudio.bind(i),"object"==typeof APP&&APP.UI.addListener(c.default.LARGE_VIDEO_AVATAR_VISIBLE,i._onLargeVideoAvatarVisible),i}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"componentDidMount",value:function(){var e=this;this.state.ringing&&!this._ringingTimeout&&(this._ringingTimeout=setTimeout(function(){e._pauseAudio(),e._ringingTimeout=void 0,e.setState({ringing:!1})},3e4)),this._playAudio()}},{key:"componentWillUnmount",value:function(){this._pauseAudio(),this._ringingTimeout&&(clearTimeout(this._ringingTimeout),this._ringingTimeout=void 0),"object"==typeof APP&&APP.UI.removeListener(c.default.LARGE_VIDEO_AVATAR_VISIBLE,this._onLargeVideoAvatarVisible)}},{key:"render",value:function(){var e=this.state,t=e.className,i=e.ringing,a=this.props._callee,n=a.avatarUrl,r=a.avatar,o=a.name;return l.default.createElement(d.Container,babelHelpers.extends({},this._style("ringing",t),{id:"ringOverlay"}),l.default.createElement(d.Container,this._style("ringing__content"),l.default.createElement(d.Text,this._style("ringing__text"),i?"Calling...":""),l.default.createElement(u.Avatar,babelHelpers.extends({},this._style("ringing__avatar"),{uri:n||r})),l.default.createElement(d.Container,this._style("ringing__caller-info"),l.default.createElement(d.Text,this._style("ringing__text"),o,i?"":" isn't available"))),this._renderAudio())}},{key:"_onLargeVideoAvatarVisible",value:function(e){this.setState({className:e?"solidBG":void 0})}},{key:"_pauseAudio",value:function(){var e=this._audio;e&&e.pause(),this._playAudioInterval&&(clearInterval(this._playAudioInterval),this._playAudioInterval=void 0)}},{key:"_playAudio",value:function(){var e=this;this._audio&&(this._audio.play(),this._playAudioInterval||(this._playAudioInterval=setInterval(function(){return e._playAudio()},5e3)))}},{key:"_renderAudio",value:function(){return this.state.renderAudio&&this.state.ringing?l.default.createElement(s.Audio,{ref:this._setAudio,src:"./sounds/ring.ogg"}):null}},{key:"_setAudio",value:function(e){this._audio=e}},{key:"_style",value:function(){for(var e="",t=void 0,i=arguments.length,a=Array(i),n=0;n<i;n++)a[n]=arguments[n];for(var r=a,l=Array.isArray(r),o=0,r=l?r:r["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();;){var s;if(l){if(o>=r.length)break;s=r[o++]}else{if(o=r.next(),o.done)break;s=o.value}var u=s;u&&(g.default&&u in g.default?t=babelHelpers.extends({},t,g.default[u]):e+=u)}var d={};return e&&(d.className=e),t&&(d.style=t),d}}]),t}(r.Component);v.propTypes={_callee:l.default.PropTypes.object},a.default=(0,o.connect)(n)(v)},882);
__d(function(e,t,n,i){Object.defineProperty(i,"__esModule",{value:!0});var o=t(549);i.default=(0,o.createStyleSheet)({ringing:{alignItems:"center",backgroundColor:o.ColorPalette.black,bottom:0,flex:0,flexDirection:"column",justifyContent:"center",left:0,opacity:.8,position:"absolute",right:0,top:0},ringing__avatar:{borderRadius:50,flex:0,height:100,width:100},"ringing__caller-info":{alignItems:"center",flex:0,flexDirection:"row",justifyContent:"center"},ringing__content:{alignItems:"center",flex:0,flexDirection:"column",justifyContent:"center"},ringing__text:{color:o.ColorPalette.white}})},883);
__d(function(e,r,a,n){function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location;return(0,t.parseURLParams)(e,!0,"search").jwt}Object.defineProperty(n,"__esModule",{value:!0}),n.parseJWTFromURLParams=o;var t=r(458)},884);
__d(function(e,t,a,r){function s(e,t,a){var r=e.dispatch,s=e.getState,c=t(a),n=s(),i=n["features/jwt"],E=void 0;if(i.callee){var l=n["features/base/conference"],u=l.conference,_=l.leaving;if(l.room&&(!u||u!==_))switch(a.type){case o.CONFERENCE_FAILED:case o.CONFERENCE_LEFT:case o.CONFERENCE_WILL_LEAVE:case f.LIB_INIT_ERROR:break;default:E=1===(0,R.getParticipantCount)(n)&&Boolean((0,R.getLocalParticipant)(n)),E&&!1===i.callOverlayVisible&&(E=!1)}}return r((0,N.setCallOverlayVisible)(E)),c}function c(e,t,a){var r=e.dispatch,s=e.getState,c=t(a),n=s()["features/base/connection"].locationURL,i=void 0;return n&&(i=(0,C.parseJWTFromURLParams)(n)),r((0,N.setJWT)(i)),c}function n(e,t,a){var r=a.jwt,c=(a.type,babelHelpers.objectWithoutProperties(a,["jwt","type"]));if(r&&!Object.keys(c).length){var n=e.getState()["features/base/config"].enableUserRolesBasedOnToken;a.isGuest=!n;var i=(0,E.default)(r);if(i){var o=i.context,l=i.iss;a.jwt=r,a.issuer=l,o&&(a.callee=o.callee,a.caller=o.user,a.group=o.group,a.server=o.server)}}return s(e,t,a)}var i=t(886),E=babelHelpers.interopRequireDefault(i),o=t(394),l=t(458),u=t(610),f=t(396),R=t(502),_=t(467),N=t(879),O=t(880),C=t(884);_.MiddlewareRegistry.register(function(e){return function(t){return function(a){switch(a.type){case o.CONFERENCE_FAILED:case o.CONFERENCE_LEFT:case o.CONFERENCE_WILL_LEAVE:case f.LIB_INIT_ERROR:case R.PARTICIPANT_JOINED:case o.SET_ROOM:return s(e,t,a);case l.SET_CONFIG:case u.SET_LOCATION_URL:return c(e,t,a);case O.SET_JWT:return n(e,t,a)}return t(a)}}})},885);
__d(function(e,r,t,n){"use strict";function o(e){this.message=e}var i=r(887);o.prototype=new Error,o.prototype.name="InvalidTokenError",t.exports=function(e,r){if("string"!=typeof e)throw new o("Invalid token specified");r=r||{};var t=!0===r.header?0:1;try{return JSON.parse(i(e.split(".")[t]))}catch(e){throw new o("Invalid token specified: "+e.message)}},t.exports.InvalidTokenError=o},886);
__d(function(e,r,t,a){function n(e){return decodeURIComponent(c(e).replace(/(.)/g,function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t}))}var c=r(888);t.exports=function(e){var r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw"Illegal base64url string!"}try{return n(r)}catch(e){return c(r)}}},887);
__d(function(o,r,e,n){function t(o){this.message=o}function i(o){var r=String(o).replace(/=+$/,"");if(r.length%4==1)throw new t("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,n,i=0,a=0,w="";n=r.charAt(a++);~n&&(e=i%4?64*e+n:n,i++%4)?w+=String.fromCharCode(255&e>>(-2*i&6)):0)n=d.indexOf(n);return w}var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.prototype=new Error,t.prototype.name="InvalidCharacterError",e.exports="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||i},888);
__d(function(e,r,t,l){var s=r(467),i=r(880),a={callOverlayVisible:void 0,isGuest:!0};s.ReducerRegistry.register("features/jwt",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,r=arguments[1];switch(r.type){case i.SET_CALL_OVERLAY_VISIBLE:return(0,s.set)(e,"callOverlayVisible",r.callOverlayVisible);case i.SET_JWT:var t=(r.type,babelHelpers.objectWithoutProperties(r,["type"])),l=babelHelpers.extends({},a,t);return(0,s.equals)(e,l)?e:l}return e})},889);
__d(function(t,i,e,s){Object.defineProperty(s,"__esModule",{value:!0});var n=i(697),r=i(603),a=babelHelpers.interopRequireDefault(r),l=i(891),o=babelHelpers.interopRequireDefault(l),h={init:function(t){this.iconMenuDownClassName="icon-menu-down",this.iconMenuUpClassName="icon-menu-up",this.filmstripContainerClassName="filmstrip",this.filmstrip=$("#remoteVideos"),this.filmstripRemoteVideos=$("#filmstripRemoteVideosContainer"),this.eventEmitter=t,interfaceConfig.filmStripOnly||(this._initFilmstripToolbar(),this.registerListeners())},_initFilmstripToolbar:function(){var t=this._generateToolbarHTML(),i=this.filmstripContainerClassName,e=document.querySelector("."+i);o.default.prependChild(e,t);this.toggleFilmstripIcon=document.querySelector("#toggleFilmstripButton i")},_generateToolbarHTML:function(){var t=document.createElement("div"),i=this.isFilmstripVisible();return t.className="filmstrip__toolbar",t.innerHTML='\n <button id="toggleFilmstripButton">\n <i class="icon-menu-'+(i?"down":"up")+'">\n </i>\n </button>\n ',t},registerListeners:function(){var t=this;$("#toggleFilmstripButton").on("click",function(){return t.eventEmitter.emit(a.default.TOGGLE_FILMSTRIP)}),this._registerToggleFilmstripShortcut()},_registerToggleFilmstripShortcut:function(){var t=this,i=function(){return t.eventEmitter.emit(a.default.TOGGLE_FILMSTRIP)};APP.keyboardshortcut.registerShortcut("F","filmstripPopover",i,"keyboardShortcuts.toggleFilmstrip")},showMenuDownIcon:function(){var t=this.toggleFilmstripIcon;t&&(t.classList.add(this.iconMenuDownClassName),t.classList.remove(this.iconMenuUpClassName))},showMenuUpIcon:function(){var t=this.toggleFilmstripIcon;t&&(t.classList.add(this.iconMenuUpClassName),t.classList.remove(this.iconMenuDownClassName))},toggleFilmstrip:function(t){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("boolean"==typeof t){if(this.isFilmstripVisible()===t)return}else t=this.isFilmstripVisible();i&&JitsiMeetJS.analytics.sendEvent("toolbar.filmstrip.toggled"),this.filmstrip.toggleClass("hidden"),t?this.showMenuUpIcon():this.showMenuDownIcon();var e=this.eventEmitter,s=this.isFilmstripVisible();e&&e.emit(a.default.TOGGLED_FILMSTRIP,this.isFilmstripVisible()),APP.store.dispatch((0,n.setFilmstripVisibility)(s))},isFilmstripVisible:function(){return!this.filmstrip.hasClass("hidden")},setFilmstripOnly:function(){this.filmstrip.addClass("filmstrip__videos-filmstripOnly")},getFilmstripHeight:function(){return this.isFilmstripVisible()&&!interfaceConfig.VERTICAL_FILMSTRIP?$("."+this.filmstripContainerClassName).outerHeight():0},getFilmstripWidth:function(){return this.filmstrip.innerWidth()-parseInt(this.filmstrip.css("paddingLeft"),10)-parseInt(this.filmstrip.css("paddingRight"),10)},calculateThumbnailSize:function(){var t=this.calculateAvailableSize(),i=t.availableWidth,e=t.availableHeight;return this.calculateThumbnailSizeFromAvailable(i,e)},calculateAvailableSize:function(){var t=interfaceConfig.FILM_STRIP_MAX_HEIGHT,i=this.getThumbs(!0),e=i.remoteThumbs.length,s=$("#localVideoContainer"),n=o.default.getAvailableVideoWidth()-this._getFilmstripExtraPanelsWidth()-o.default.parseCssInt(this.filmstrip.css("right"),10)-o.default.parseCssInt(this.filmstrip.css("paddingLeft"),10)-o.default.parseCssInt(this.filmstrip.css("paddingRight"),10)-o.default.parseCssInt(this.filmstrip.css("borderLeftWidth"),10)-o.default.parseCssInt(this.filmstrip.css("borderRightWidth"),10)-5,r=n;if(i.localThumb&&(r=Math.floor(n-(o.default.parseCssInt(s.css("borderLeftWidth"),10)+o.default.parseCssInt(s.css("borderRightWidth"),10)+o.default.parseCssInt(s.css("paddingLeft"),10)+o.default.parseCssInt(s.css("paddingRight"),10)+o.default.parseCssInt(s.css("marginLeft"),10)+o.default.parseCssInt(s.css("marginRight"),10)))),e&&!interfaceConfig.VERTICAL_FILMSTRIP){var a=i.remoteThumbs.eq(0);r=Math.floor(n-e*(o.default.parseCssInt(a.css("borderLeftWidth"),10)+o.default.parseCssInt(a.css("borderRightWidth"),10)+o.default.parseCssInt(a.css("paddingLeft"),10)+o.default.parseCssInt(a.css("paddingRight"),10)+o.default.parseCssInt(a.css("marginLeft"),10)+o.default.parseCssInt(a.css("marginRight"),10)))}var l=Math.min(interfaceConfig.FILM_STRIP_MAX_HEIGHT||120,t);return t=Math.min(l,window.innerHeight-18),{availableWidth:r,availableHeight:t}},_getFilmstripExtraPanelsWidth:function(){var t=this.filmstripContainerClassName,i=0;return $("."+t).children().each(function(){"remoteVideos"!==this.id&&(i+=$(this).outerWidth())}),i},calculateThumbnailSizeFromAvailable:function(t,i){var e=interfaceConfig.VERTICAL_FILMSTRIP?0:this.getThumbs(!0).remoteThumbs.length,s=interfaceConfig.REMOTE_THUMBNAIL_RATIO/interfaceConfig.LOCAL_THUMBNAIL_RATIO,n=Math.min(t/(s*e+1),i*interfaceConfig.LOCAL_THUMBNAIL_RATIO),r=n/interfaceConfig.LOCAL_THUMBNAIL_RATIO,a=n*s,l=void 0;return l=interfaceConfig.VERTICAL_FILMSTRIP?{thumbWidth:a,thumbHeight:r*s}:{thumbWidth:n,thumbHeight:r},{localVideo:l,remoteVideo:{thumbWidth:a,thumbHeight:r}}},resizeThumbnails:function(t,i){var e=this,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return new Promise(function(r){var a=e.getThumbs(!n),l=[];a.localThumb&&l.push(new Promise(function(i){a.localThumb.animate({height:t.thumbHeight,width:t.thumbWidth},e._getAnimateOptions(s,i))})),a.remoteThumbs&&l.push(new Promise(function(t){a.remoteThumbs.animate({height:i.thumbHeight,width:i.thumbWidth},e._getAnimateOptions(s,t))})),l.push(new Promise(function(t){interfaceConfig.VERTICAL_FILMSTRIP?t():e.filmstrip.animate({height:i.thumbHeight+2},e._getAnimateOptions(s,t))})),l.push(new Promise(function(){var t=e.getThumbs(),i=t.localThumb,n=i.height(),a=o.default.getIndicatorFontSize(n);e.filmstrip.find(".indicator").animate({fontSize:a},e._getAnimateOptions(s,r))})),s||r(),Promise.all(l).then(r)})},_getAnimateOptions:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$.noop;return{queue:!1,duration:t?500:0,complete:i}},getThumbs:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i="span";t&&(i+=":visible");var e=$("#localVideoContainer"),s=this.filmstripRemoteVideos.children(i);return e.hasClass("hidden")?{remoteThumbs:s}:{remoteThumbs:s,localThumb:e}}};s.default=h},890);
__d(function(e,t,n,i){Object.defineProperty(i,"__esModule",{value:!0});var c={block:"show",inline:"show-inline","list-item":"show-list-item"},l={SMALL:60,MEDIUM:80},u={SMALL:5,MEDIUM:6,NORMAL:8},o={getAvailableVideoWidth:function(){return window.innerWidth},buttonClick:function(e,t){$("#"+e).toggleClass(t)},getTextWidth:function(e){return e.clientWidth+1},getTextHeight:function(e){return e.clientHeight+1},playSoundNotification:function(e){document.getElementById(e).play()},escapeHtml:function(e){return $("<div/>").text(e).html()},unescapeHtml:function(e){return $("<div />").html(e).text()},imageToGrayScale:function(e){for(var t=e.getContext("2d"),n=t.getImageData(0,0,e.width,e.height),i=n.data,c=0,l=i.length;c<l;c+=4){var u=.3*i[c]+.59*i[c+1]+.11*i[c+2];i[c]=u,i[c+1]=u,i[c+2]=u}t.putImageData(n,0,0)},prependChild:function(e,t){var n=e.childNodes[0];n?e.insertBefore(t,n):e.appendChild(t)},isSettingEnabled:function(e){return-1!==interfaceConfig.SETTINGS_SECTIONS.indexOf(e)},isAuthenticationEnabled:function(){return interfaceConfig.AUTHENTICATION_ENABLE},setVisible:function(e,t){var n=void 0;if(n=e instanceof HTMLElement?e:document.getElementById(e)){t?n.classList.contains("hide")&&n.classList.remove("hide"):n.classList.add("hide");var i=this._getElementDefaultDisplay(n.tagName),l=c[i];t?n.classList.add(l):n.classList.contains(l)&&n.classList.remove(l)}},_getElementDefaultDisplay:function(e){var t=document.createElement(e);document.body.appendChild(t);var n=window.getComputedStyle(t).display;return document.body.removeChild(t),n},setVisibleBySelector:function(e,t){e&&e.length>0&&e.css("visibility",t?"visible":"hidden")},redirect:function(e){window.location.href=e},isFullScreen:function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},exitFullScreen:function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},enterFullScreen:function(){document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.msRequestFullscreen?document.documentElement.msRequestFullscreen():document.documentElement.mozRequestFullScreen?document.documentElement.mozRequestFullScreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)},attrsToString:function(e){return Object.keys(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join(" ")},isVisible:function(e){return null!==e.offsetParent},animateShowElement:function(e,t,n){t?(e.is(":visible")||e.css("display","inline-block"),e.fadeIn(300,function(){e.css({opacity:1})}),n&&n>0&&setTimeout(function(){e.fadeOut(300,function(){e.css({opacity:0})})},n)):e.fadeOut(300,function(){e.css({opacity:0})})},parseCssInt:function(e){return parseInt(e)||0},setLinkHref:function(e,t){t?e.attr("href",t):e.css({"pointer-events":"none",cursor:"default"})},getIndicatorFontSize:function(e){var t=void 0===e?$("#localVideoContainer").height():e,n=l.SMALL,i=l.MEDIUM,c=u.NORMAL;return t<=n?c=u.SMALL:t>n&&t<=i&&(c=u.MEDIUM),c}};i.default=o},891);
__d(function(e,i,s,r){var t=i(467),l=i(699),I={remoteVideosVisible:!1,visible:!0};t.ReducerRegistry.register("features/filmstrip",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I,i=arguments[1];switch(i.type){case l.SET_FILMSTRIP_REMOTE_VIDEOS_VISIBLITY:return babelHelpers.extends({},e,{remoteVideosVisible:i.remoteVideosVisible});case l.SET_FILMSTRIP_VISIBILITY:return babelHelpers.extends({},e,{visible:i.visible})}return e})},892);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(894);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(896);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})}),t(899),t(900)},893);
__d(function(e,t,r,n){function a(){return function(e,t){var r=t(),n=r["features/base/conference"].conference;if(n){var a=r["features/large-video"],i=r["features/base/tracks"],c=a.participantId,o=(0,p.getTrackByMediaTypeAndParticipant)(i,f.MEDIA_TYPE.VIDEO,c);try{n.selectParticipant(o&&o.videoType===f.VIDEO_TYPE.CAMERA?c:null)}catch(e){(0,d._handleParticipantError)(e)}}}}function i(){return function(e,t){var r=t(),n=u(r);n!==r["features/large-video"].participantId&&(e({type:s.SELECT_LARGE_VIDEO_PARTICIPANT,participantId:n}),e(a()))}}function c(e){return{type:s.UPDATE_KNOWN_LARGE_VIDEO_RESOLUTION,resolution:e}}function o(e){for(var t=e.length-1;t>=0;--t){var r=e[t];if(!r.local&&r.mediaType===f.MEDIA_TYPE.VIDEO)return r}return(0,p.getLocalVideoTrack)(e)}function u(e){var t=e["features/base/participants"],r=t.find(function(e){return e.pinned}),n=r?r.id:void 0;if(!n&&(r=t.find(function(e){return e.dominantSpeaker&&!e.local}),r&&(n=r.id),!n)){var a=e["features/base/tracks"],i=o(a);n=i&&i.participantId}return n}Object.defineProperty(n,"__esModule",{value:!0}),n.selectParticipant=a,n.selectParticipantInLargeVideo=i,n.updateKnownLargeVideoResolution=c;var d=t(394),f=t(579),p=t(592),s=t(895)},894);
__d(function(_,E,O,A){Object.defineProperty(A,"__esModule",{value:!0});A.SELECT_LARGE_VIDEO_PARTICIPANT=Symbol("SELECT_LARGE_VIDEO_PARTICIPANT"),A.UPDATE_KNOWN_LARGE_VIDEO_RESOLUTION=Symbol("UPDATE_KNOWN_LARGE_VIDEO_RESOLUTION")},895);
__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0});var u=r(897);Object.defineProperty(n,"LargeVideo",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(u).default}})},896);
__d(function(e,t,r,a){function i(e){return{_participantId:e["features/large-video"].participantId}}Object.defineProperty(a,"__esModule",{value:!0});var l=t(34),n=babelHelpers.interopRequireDefault(l),p=t(557),s=t(502),o=t(898),u=babelHelpers.interopRequireDefault(o),c=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return n.default.createElement(s.ParticipantView,{avatarStyle:u.default.avatar,participantId:this.props._participantId,style:u.default.largeVideo,zOrder:0})}}]),t}(l.Component);c.propTypes={_participantId:n.default.PropTypes.string},a.default=(0,p.connect)(i)(c)},897);
__d(function(e,t,o,a){Object.defineProperty(a,"__esModule",{value:!0});var r=t(549);a.default=(0,r.createStyleSheet)({avatar:{alignSelf:"center",borderRadius:100,flex:0,height:200,width:200},largeVideo:{alignItems:"stretch",backgroundColor:r.ColorPalette.appBackground,bottom:0,flex:1,justifyContent:"center",left:0,position:"absolute",right:0,top:0}})},898);
__d(function(e,a,t,r){var i=a(502),c=a(467),s=a(592),n=a(894);c.MiddlewareRegistry.register(function(e){return function(a){return function(t){var r=a(t);switch(t.type){case i.DOMINANT_SPEAKER_CHANGED:case i.PARTICIPANT_JOINED:case i.PARTICIPANT_LEFT:case i.PIN_PARTICIPANT:case s.TRACK_ADDED:case s.TRACK_REMOVED:e.dispatch((0,n.selectParticipantInLargeVideo)());break;case s.TRACK_UPDATED:if("videoType"in t.track){var c=e.getState(),T=(0,s.getTrackByJitsiTrack)(c["features/base/tracks"],t.track.jitsiTrack),A=c["features/large-video"].participantId;T.participantId===A&&e.dispatch((0,n.selectParticipant)())}}return r}}})},899);
__d(function(e,r,t,a){var n=r(502),i=r(467),s=r(895);i.ReducerRegistry.register("features/large-video",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments[1];switch(r.type){case n.PARTICIPANT_ID_CHANGED:if(e.participantId===r.oldValue)return babelHelpers.extends({},e,{participantId:r.newValue});break;case s.SELECT_LARGE_VIDEO_PARTICIPANT:return babelHelpers.extends({},e,{participantId:r.participantId});case s.UPDATE_KNOWN_LARGE_VIDEO_RESOLUTION:return babelHelpers.extends({},e,{resolution:r.resolution})}return e})},900);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(902);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(905);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})}),t(917)},901);
__d(function(e,n,i,o){function t(e,n){return{type:s.MEDIA_PERMISSION_PROMPT_VISIBILITY_CHANGED,browser:n,isVisible:e}}function r(){return function(e,n){var i=n()["features/base/connection"].locationURL;u.info("Reloading the conference using URL: "+i),window.self===window.top?(0,c.replace)(i):(0,c.reload)()}}function a(){return{type:s.SUSPEND_DETECTED}}Object.defineProperty(o,"__esModule",{value:!0}),o.mediaPermissionPromptVisibilityChanged=t,o._reloadNow=r,o.suspendDetected=a;var c=n(903),s=n(904),u=n(426).getLogger(__filename)},902);
__d(function(e,n,i,o){function r(){var e={};return e.promise=new Promise(function(n,i){e.resolve=n,e.reject=i}),e}function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.leading||!1,r=void 0===i.trailing||i.trailing,t=!1;return function(){for(var i=arguments.length,l=Array(i),a=0;a<i;a++)l[a]=arguments[a];t||(o&&e.apply(void 0,l),setTimeout(function(){t=!1,r&&e.apply(void 0,l)},n),t=!0)}}function l(){return window.JitsiMeetJS||(window.JitsiMeetJS={}),window.JitsiMeetJS.app||(window.JitsiMeetJS.app={}),window.JitsiMeetJS.app}function a(){window.location.reload()}function d(e){window.location.replace(e)}function u(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";w.error(n,e),window.onerror&&window.onerror(n,null,null,null,e)}Object.defineProperty(o,"__esModule",{value:!0}),o.createDeferred=r,o.debounce=t,o.getJitsiMeetGlobalNS=l,o.reload=a,o.replace=d,o.reportError=u;var w=n(426).getLogger(__filename)},903);
__d(function(E,I,_,S){Object.defineProperty(S,"__esModule",{value:!0});S.MEDIA_PERMISSION_PROMPT_VISIBILITY_CHANGED=Symbol("MEDIA_PERMISSION_PROMPT_VISIBILITY_CHANGED"),S.SUSPEND_DETECTED=Symbol("SUSPEND_DETECTED")},904);
__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0});var u=r(906);Object.defineProperty(n,"OverlayContainer",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(u).default}})},905);
__d(function(e,r,l,s){function t(e){var r=e["features/overlay"];return{_browser:r.browser,_callOverlayVisible:Boolean(e["features/jwt"].callOverlayVisible),_connectionEstablished:r.connectionEstablished,_haveToReload:r.haveToReload,_isMediaPermissionPromptVisible:r.isMediaPermissionPromptVisible,_isNetworkFailure:r.isNetworkFailure,_reason:r.reason,_suspendDetected:r.suspendDetected}}Object.defineProperty(s,"__esModule",{value:!0});var o=r(34),i=babelHelpers.interopRequireDefault(o),a=r(557),p=r(878),n=r(907),u=babelHelpers.interopRequireDefault(n),b=r(912),d=babelHelpers.interopRequireDefault(b),f=r(913),c=babelHelpers.interopRequireDefault(f),_=r(914),h=babelHelpers.interopRequireDefault(_),y=r(915),v=babelHelpers.interopRequireDefault(y),P=r(916),m=babelHelpers.interopRequireDefault(P),T=function(e){function r(e){babelHelpers.classCallCheck(this,r);var l=babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return l.state={filmstripOnly:"object"==typeof interfaceConfig&&interfaceConfig.filmStripOnly},l}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"render",value:function(){var e=this.state.filmstripOnly,r=void 0,l=void 0;return this.props._connectionEstablished&&this.props._haveToReload?(r=e?u.default:d.default,l={isNetworkFailure:this.props._isNetworkFailure,reason:this.props._reason}):this.props._suspendDetected?r=e?c.default:h.default:this.props._isMediaPermissionPromptVisible?(r=e?v.default:m.default,l={browser:this.props._browser}):this.props._callOverlayVisible&&(r=p.CallOverlay),r?i.default.createElement(r,l):null}}]),r}(o.Component);T.propTypes={_browser:i.default.PropTypes.string,_callOverlayVisible:i.default.PropTypes.bool,_connectionEstablished:i.default.PropTypes.bool,_haveToReload:i.default.PropTypes.bool,_isMediaPermissionPromptVisible:i.default.PropTypes.bool,_isNetworkFailure:i.default.PropTypes.bool,_reason:i.default.PropTypes.string,_suspendDetected:i.default.PropTypes.bool},s.default=(0,a.connect)(t)(T)},906);
__d(function(e,t,l,r){Object.defineProperty(r,"__esModule",{value:!0});var a=t(34),s=babelHelpers.interopRequireDefault(a),n=t(557),i=t(627),u=t(908),o=babelHelpers.interopRequireDefault(u),c=t(910),p=babelHelpers.interopRequireDefault(c),f=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props.t,t=this.state,l=t.message,r=t.timeLeft,a=t.title;return s.default.createElement(p.default,null,s.default.createElement("div",{className:"inlay-filmstrip-only__container"},s.default.createElement("div",{className:"inlay-filmstrip-only__title"},e(a)),s.default.createElement("div",{className:"inlay-filmstrip-only__text"},e(l,{seconds:r}))),this._renderButton(),this._renderProgressBar())}}]),t}(o.default);r.default=(0,i.translate)((0,n.connect)()(f))},907);
__d(function(e,t,r,o){Object.defineProperty(o,"__esModule",{value:!0});var a=t(34),n=babelHelpers.interopRequireDefault(a),i=t(491),s=t(902),l=t(909),u=babelHelpers.interopRequireDefault(l),c=t(426).getLogger(__filename),d=function(e){function t(e){babelHelpers.classCallCheck(this,t);var r=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),o=10+(0,i.randomInt)(0,20),a=void 0,n=void 0;return r.props.isNetworkFailure?(n="dialog.conferenceDisconnectTitle",a="dialog.conferenceDisconnectMsg"):(n="dialog.conferenceReloadTitle",a="dialog.conferenceReloadMsg"),r.state={message:a,timeLeft:o,timeoutSeconds:o,title:n},r}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"componentDidMount",value:function(){var e=this;APP.conference.logEvent("page.reload",void 0,this.props.reason),c.info("The conference will be reloaded after "+this.state.timeoutSeconds+" seconds."),AJS.progressBars.update("#reloadProgressBar",0),this._interval=setInterval(function(){0===e.state.timeLeft?(e._interval&&(clearInterval(e._interval),e._interval=void 0),e.props.dispatch((0,s._reloadNow)())):e.setState(function(e){return{timeLeft:e.timeLeft-1}})},1e3)}},{key:"componentDidUpdate",value:function(){var e=this.state,t=e.timeLeft,r=e.timeoutSeconds;AJS.progressBars.update("#reloadProgressBar",(r-t)/r)}},{key:"componentWillUnmount",value:function(){this._interval&&(clearInterval(this._interval),this._interval=void 0)}},{key:"_renderButton",value:function(){return this.props.isNetworkFailure?n.default.createElement(u.default,{textKey:"dialog.rejoinNow"}):null}},{key:"_renderProgressBar",value:function(){return n.default.createElement("div",{className:"aui-progress-indicator",id:"reloadProgressBar"},n.default.createElement("span",{className:"aui-progress-indicator-value"}))}}]),t}(a.Component);d.propTypes={dispatch:n.default.PropTypes.func,isNetworkFailure:n.default.PropTypes.bool,reason:n.default.PropTypes.string,t:n.default.PropTypes.func},o.default=d},908);
__d(function(e,t,o,r){function n(e){return{_reloadNow:function(){e((0,p._reloadNow)())}}}Object.defineProperty(r,"__esModule",{value:!0});var l=t(34),s=babelHelpers.interopRequireDefault(l),a=t(557),u=t(627),p=t(902),c=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return s.default.createElement("button",{className:"button-control button-control_overlay button-control_center",onClick:this.props._reloadNow},this.props.t(this.props.textKey))}}]),t}(l.Component);c.propTypes={_reloadNow:s.default.PropTypes.func,t:s.default.PropTypes.func,textKey:s.default.PropTypes.string.isRequired},r.default=(0,u.translate)((0,a.connect)(void 0,n)(c))},909);
__d(function(e,t,a,l){function r(e){return{_avatar:(0,o.getAvatarURL)((0,o.getLocalParticipant)(e)||{})}}Object.defineProperty(l,"__esModule",{value:!0});var n=t(34),i=babelHelpers.interopRequireDefault(n),s=t(557),o=t(502),c=t(911),p=babelHelpers.interopRequireDefault(c),u=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"_renderIcon",value:function(){if(!this.props.icon)return null;var e="inlay-filmstrip-only__icon "+this.props.icon;return i.default.createElement("div",null,i.default.createElement("div",{className:"inlay-filmstrip-only__icon-background"}),i.default.createElement("div",{className:"inlay-filmstrip-only__icon-container"},i.default.createElement("span",{className:e})))}},{key:"render",value:function(){return i.default.createElement(p.default,{isLightOverlay:this.props.isLightOverlay},i.default.createElement("div",{className:"inlay-filmstrip-only"},i.default.createElement("div",{className:"inlay-filmstrip-only__content"},this.props.children),i.default.createElement("div",{className:"inlay-filmstrip-only__avatar-container"},i.default.createElement(o.Avatar,{uri:this.props._avatar}),this._renderIcon())))}}]),t}(n.Component);u.propTypes={_avatar:i.default.PropTypes.string,children:i.default.PropTypes.node.isRequired,icon:i.default.PropTypes.string,isLightOverlay:i.default.PropTypes.bool},l.default=(0,s.connect)(r)(u)},910);
__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0});var i=t(34),a=babelHelpers.interopRequireDefault(i),s=function(e){function t(e){babelHelpers.classCallCheck(this,t);var r=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.state={filmstripOnly:interfaceConfig.filmStripOnly},r}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props.isLightOverlay?"overlay__container-light":"overlay__container",t="overlay__content";return this.state.filmstripOnly&&(e+=" filmstrip-only",t+=" filmstrip-only"),a.default.createElement("div",{className:e,id:"overlay"},a.default.createElement("div",{className:t},this.props.children))}}]),t}(i.Component);s.propTypes={children:a.default.PropTypes.node.isRequired,isLightOverlay:a.default.PropTypes.bool},l.default=s},911);
__d(function(e,t,r,a){Object.defineProperty(a,"__esModule",{value:!0});var l=t(34),s=babelHelpers.interopRequireDefault(l),n=t(557),i=t(627),u=t(908),o=babelHelpers.interopRequireDefault(u),c=t(911),p=babelHelpers.interopRequireDefault(c),b=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props,t=e.isNetworkFailure,r=e.t,a=this.state,l=a.message,n=a.timeLeft,i=a.title;return s.default.createElement(p.default,{isLightOverlay:t},s.default.createElement("div",{className:"inlay"},s.default.createElement("span",{className:"reload_overlay_title"},r(i)),s.default.createElement("span",{className:"reload_overlay_text"},r(l,{seconds:n})),this._renderProgressBar(),this._renderButton()))}}]),t}(o.default);a.default=(0,i.translate)((0,n.connect)()(b))},912);
__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var r=t(34),n=babelHelpers.interopRequireDefault(r),s=t(627),i=t(910),u=babelHelpers.interopRequireDefault(i),o=t(909),p=babelHelpers.interopRequireDefault(o),d=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props.t;return n.default.createElement(u.default,{isLightOverlay:!0},n.default.createElement("div",{className:"inlay-filmstrip-only__container"},n.default.createElement("div",{className:"inlay-filmstrip-only__title"},e("suspendedoverlay.title")),n.default.createElement("div",{className:"inlay-filmstrip-only__text"},(0,s.translateToHTML)(e,"suspendedoverlay.text"))),n.default.createElement(p.default,{textKey:"suspendedoverlay.rejoinKeyTitle"}))}}]),t}(r.Component);d.propTypes={t:n.default.PropTypes.func},a.default=(0,s.translate)(d)},913);
__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var r=t(34),n=babelHelpers.interopRequireDefault(r),s=t(627),i=t(911),u=babelHelpers.interopRequireDefault(i),o=t(909),p=babelHelpers.interopRequireDefault(o),c=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props.t;return n.default.createElement(u.default,null,n.default.createElement("div",{className:"inlay"},n.default.createElement("span",{className:"inlay__icon icon-microphone"}),n.default.createElement("span",{className:"inlay__icon icon-camera"}),n.default.createElement("h3",{className:"inlay__title"},e("suspendedoverlay.title")),n.default.createElement("span",{className:"inlay__text"},(0,s.translateToHTML)(e,"suspendedoverlay.title")),n.default.createElement(p.default,{textKey:"suspendedoverlay.rejoinKeyTitle"})))}}]),t}(r.Component);c.propTypes={t:n.default.PropTypes.func},a.default=(0,s.translate)(c)},914);
__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0});var a=t(34),s=babelHelpers.interopRequireDefault(a),i=t(627),n=t(910),o=babelHelpers.interopRequireDefault(n),p=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props.t,t="userMedia."+this.props.browser+"GrantPermissions";return s.default.createElement(o.default,{icon:"icon-mic-camera-combined",isLightOverlay:!0},s.default.createElement("div",{className:"inlay-filmstrip-only__container"},s.default.createElement("div",{className:"inlay-filmstrip-only__title"},e("startupoverlay.title",{postProcess:"resolveAppName"})),s.default.createElement("div",{className:"inlay-filmstrip-only__text"},(0,i.translateToHTML)(e,t))))}}]),t}(a.Component);p.propTypes={browser:s.default.PropTypes.string,t:s.default.PropTypes.func},l.default=(0,i.translate)(p)},915);
__d(function(e,t,a,l){Object.defineProperty(l,"__esModule",{value:!0});var r=t(34),s=babelHelpers.interopRequireDefault(r),n=t(627),o=t(911),c=babelHelpers.interopRequireDefault(o),i=function(e){function t(e){babelHelpers.classCallCheck(this,t);var a=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={policyLogoSrc:interfaceConfig.POLICY_LOGO},a}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props,t=e.browser,a=e.t;return s.default.createElement(c.default,null,s.default.createElement("div",{className:"inlay"},s.default.createElement("span",{className:"inlay__icon icon-microphone"}),s.default.createElement("span",{className:"inlay__icon icon-camera"}),s.default.createElement("h3",{className:"inlay__title"},a("startupoverlay.title",{postProcess:"resolveAppName"})),s.default.createElement("span",{className:"inlay__text"},(0,n.translateToHTML)(a,"userMedia."+t+"GrantPermissions"))),s.default.createElement("div",{className:"policy overlay__policy"},s.default.createElement("p",{className:"policy__text"},(0,n.translateToHTML)(a,"startupoverlay.policyText")),this._renderPolicyLogo()))}},{key:"_renderPolicyLogo",value:function(){var e=this.state.policyLogoSrc;return e?s.default.createElement("div",{className:"policy__logo"},s.default.createElement("img",{src:e})):null}}]),t}(r.Component);i.propTypes={browser:s.default.PropTypes.string,t:s.default.PropTypes.func},l.default=(0,n.translate)(i)},916);
__d(function(e,r,n,s){function i(e,r){var n=r.error,s=r.message;return n===N.JitsiConferenceErrors.FOCUS_LEFT||n===N.JitsiConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE?(0,_.assign)(e,{haveToReload:!0,isNetworkFailure:!1,reason:s}):e}function o(e){return(0,_.set)(e,"connectionEstablished",!0)}function t(e,r){var n=r.error,s=r.message;return(0,N.isFatalJitsiConnectionError)(n)?(C.error("XMPP connection error: "+s),(0,_.assign)(e,{haveToReload:!0,isNetworkFailure:n===N.JitsiConnectionErrors.CONNECTION_DROPPED_ERROR,reason:"xmpp-conn-dropped: "+s})):e}function a(e,r){return(0,_.assign)(e,{browser:r.browser,isMediaPermissionPromptVisible:r.isVisible})}function E(e){return(0,_.set)(e,"suspendDetected",!0)}var c=r(394),u=r(610),N=r(396),_=r(467),I=r(904),C=r(426).getLogger(__filename);_.ReducerRegistry.register("features/overlay",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments[1];switch(r.type){case c.CONFERENCE_FAILED:return i(e,r);case u.CONNECTION_ESTABLISHED:return o(e);case u.CONNECTION_FAILED:return t(e,r);case I.MEDIA_PERMISSION_PROMPT_VISIBILITY_CHANGED:return a(e,r);case I.SUSPEND_DETECTED:return E(e)}return e})},917);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(919);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(920);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})});var c=t(922);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}})});var f=t(921);Object.keys(f).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return f[e]}})}),t(931),t(932)},918);
__d(function(t,e,n,o){function u(t){return function(e,n){var o=(0,B.getButton)("raisehand",n());o.toggled=t,e(l("raisehand",o))}}function r(){return{type:d.CLEAR_TOOLBOX_TIMEOUT}}function i(t){return{type:d.SET_SUBJECT,subject:t}}function T(t){return{type:d.SET_SUBJECT_SLIDE_IN,subjectSlideIn:t}}function l(t,e){return{type:d.SET_TOOLBAR_BUTTON,button:e,buttonName:t}}function c(t){return{type:d.SET_TOOLBAR_HOVERED,hovered:t}}function O(t){return{type:d.SET_TOOLBOX_ALWAYS_VISIBLE,alwaysVisible:t}}function a(t){return{type:d.SET_TOOLBOX_ENABLED,enabled:t}}function _(t,e){return{type:d.SET_TOOLBOX_TIMEOUT,handler:t,timeoutMS:e}}function s(t){return{type:d.SET_TOOLBOX_TIMEOUT_MS,timeoutMS:t}}function E(t){return{type:d.SET_TOOLBOX_VISIBLE,visible:t}}function S(){return function(t){t(l("etherpad",{hidden:!1}))}}function b(t){return function(e,n){var o=(0,B.getButton)("fullscreen",n());o.toggled=t,e(l("fullscreen",o))}}function f(t){return function(e,n){var o=(0,B.getButton)(t,n());e(l(t,{toggled:!o.toggled}))}}Object.defineProperty(o,"__esModule",{value:!0}),o.changeLocalRaiseHand=u,o.clearToolboxTimeout=r,o.setSubject=i,o.setSubjectSlideIn=T,o.setToolbarButton=l,o.setToolbarHovered=c,o.setToolboxAlwaysVisible=O,o.setToolboxEnabled=a,o.setToolboxTimeout=_,o.setToolboxTimeoutMS=s,o.setToolboxVisible=E,o.showEtherpadButton=S,o.toggleFullScreen=b,o.toggleToolbarButton=f;var d=e(920),B=e(921)},919);
__d(function(T,O,_,E){Object.defineProperty(E,"__esModule",{value:!0});E.CLEAR_TOOLBOX_TIMEOUT=Symbol("CLEAR_TOOLBOX_TIMEOUT"),E.SET_DEFAULT_TOOLBOX_BUTTONS=Symbol("SET_DEFAULT_TOOLBOX_BUTTONS"),E.SET_SUBJECT=Symbol("SET_SUBJECT"),E.SET_SUBJECT_SLIDE_IN=Symbol("SET_SUBJECT_SLIDE_IN"),E.SET_TOOLBAR_BUTTON=Symbol("SET_TOOLBAR_BUTTON"),E.SET_TOOLBAR_HOVERED=Symbol("SET_TOOLBAR_HOVERED"),E.SET_TOOLBOX_ALWAYS_VISIBLE=Symbol("SET_TOOLBOX_ALWAYS_VISIBLE"),E.SET_TOOLBOX_ENABLED=Symbol("SET_TOOLBOX_ENABLED"),E.SET_TOOLBOX_TIMEOUT=Symbol("SET_TOOLBOX_TIMEOUT"),E.SET_TOOLBOX_TIMEOUT_MS=Symbol("SET_TOOLBOX_TIMEOUT"),E.SET_TOOLBOX_VISIBLE=Symbol("SET_TOOLBOX_VISIBLE")},920);
__d(function(t,a,o,e){function r(t){return{dispatch:t,_onHangup:function(){t((0,i.appNavigate)(void 0))}}}function u(t){var a=t["features/base/tracks"],o=t["features/toolbox"].visible;return{_audioMuted:(0,c.isLocalTrackMuted)(a,s.MEDIA_TYPE.AUDIO),_videoMuted:(0,c.isLocalTrackMuted)(a,s.MEDIA_TYPE.VIDEO),_visible:o}}function n(t,a){var o=a["features/toolbox"],e=o.primaryToolbarButtons,r=o.secondaryToolbarButtons;return e.get(t)||r.get(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.abstractMapDispatchToProps=r,e.abstractMapStateToProps=u,e.getButton=n;var i=a(392),s=a(579),c=a(592)},921);
__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0});var u=r(923);Object.defineProperty(n,"ToolbarButton",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(u).default}});var o=r(925);Object.defineProperty(n,"Toolbox",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(o).default}})},922);
__d(function(e,t,r,l){Object.defineProperty(l,"__esModule",{value:!0});var o=t(34),s=babelHelpers.interopRequireDefault(o),p=t(64),n=t(557),i=t(704),a=t(924),u=babelHelpers.interopRequireDefault(a),b=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"_renderButton",value:function(e){var t={};return"disabled"in this.props&&(t.disabled=this.props.disabled),"onClick"in this.props&&(t.onPress=this._onClick),"style"in this.props&&(t.style=this.props.style),"underlayColor"in this.props&&(t.underlayColor=this.props.underlayColor),s.default.createElement(p.TouchableHighlight,t,e)}},{key:"_renderIcon",value:function(){return babelHelpers.get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_renderIcon",this).call(this,i.Icon)}}]),t}(u.default);b.propTypes=babelHelpers.extends({},u.default.propTypes,{disabled:s.default.PropTypes.bool}),l.default=(0,n.connect)()(b)},923);
__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0});var o=r(34),l=babelHelpers.interopRequireDefault(o),p=function(e){function r(e){babelHelpers.classCallCheck(this,r);var t=babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e));return t._onClick=t._onClick.bind(t),t}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"_onClick",value:function(){var e=this.props.onClick;return e&&e.apply(void 0,arguments)}},{key:"render",value:function(){return this._renderButton(this._renderIcon())}},{key:"_renderIcon",value:function(e){var r={};return"iconName"in this.props&&(r.name=this.props.iconName),"iconStyle"in this.props&&(r.style=this.props.iconStyle),l.default.createElement(e,r)}}]),r}(o.Component);p.propTypes={iconName:l.default.PropTypes.string,iconStyle:l.default.PropTypes.object,onClick:l.default.PropTypes.func,style:l.default.PropTypes.oneOfType([l.default.PropTypes.array,l.default.PropTypes.object]),underlayColor:l.default.PropTypes.any},n.default=p},924);
__d(function(e,o,t,l){function n(e){return babelHelpers.extends({},(0,_.abstractMapDispatchToProps)(e),{_onRoomLock:function(){e((0,f.beginRoomLockRequest)())},_onShareRoom:function(){e((0,b.beginShareRoom)())},_onToggleAudioOnly:function(){e((0,s.toggleAudioOnly)())},_onToggleCameraFacingMode:function(){e((0,c.toggleCameraFacingMode)())}})}function a(e){var o=e["features/base/conference"];return babelHelpers.extends({},(0,_.abstractMapStateToProps)(e),{_audioOnly:Boolean(o.audioOnly),_locked:Boolean(o.locked)})}Object.defineProperty(l,"__esModule",{value:!0});var r=o(34),i=babelHelpers.interopRequireDefault(r),u=o(64),d=o(557),s=o(394),c=o(579),p=o(538),y=o(549),f=o(616),b=o(926),_=o(921),g=o(930),m=babelHelpers.interopRequireDefault(g),T=o(923),h=babelHelpers.interopRequireDefault(T),v=function(e){function o(e){babelHelpers.classCallCheck(this,o);var t=babelHelpers.possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,e));return t._onToggleAudio=t._onToggleAudio.bind(t),t._onToggleVideo=t._onToggleVideo.bind(t),t}return babelHelpers.inherits(o,e),babelHelpers.createClass(o,[{key:"render",value:function(){return i.default.createElement(p.Container,{style:m.default.toolbarContainer,visible:this.props._visible},this._renderPrimaryToolbar(),this._renderSecondaryToolbar())}},{key:"_getMuteButtonStyles",value:function(e){var o=void 0,t=void 0,l=void 0;return this.props["_"+e+"Muted"]?(o=this[e+"MutedIcon"],t=m.default.whitePrimaryToolbarButtonIcon,l=m.default.whitePrimaryToolbarButton):(o=this[e+"Icon"],t=m.default.primaryToolbarButtonIcon,l=m.default.primaryToolbarButton),{iconName:o,iconStyle:t,style:l}}},{key:"_onToggleAudio",value:function(){this.props.dispatch((0,c.setAudioMuted)(!this.props._audioMuted))}},{key:"_onToggleVideo",value:function(){this.props.dispatch((0,c.setVideoMuted)(!this.props._videoMuted))}},{key:"_renderPrimaryToolbar",value:function(){var e=this._getMuteButtonStyles(c.MEDIA_TYPE.AUDIO),o=this._getMuteButtonStyles(c.MEDIA_TYPE.VIDEO);return i.default.createElement(u.View,{style:m.default.primaryToolbar},i.default.createElement(h.default,{iconName:e.iconName,iconStyle:e.iconStyle,onClick:this._onToggleAudio,style:e.style}),i.default.createElement(h.default,{iconName:"hangup",iconStyle:m.default.whitePrimaryToolbarButtonIcon,onClick:this.props._onHangup,style:m.default.hangup,underlayColor:y.ColorPalette.buttonUnderlay}),i.default.createElement(h.default,{disabled:this.props._audioOnly,iconName:o.iconName,iconStyle:o.iconStyle,onClick:this._onToggleVideo,style:o.style}))}},{key:"_renderSecondaryToolbar",value:function(){var e=m.default.secondaryToolbarButtonIcon,o=m.default.secondaryToolbarButton,t=this.props,l=t._audioOnly,n=t._videoMuted;return i.default.createElement(u.View,{style:m.default.secondaryToolbar},i.default.createElement(h.default,{disabled:l||n,iconName:"switch-camera",iconStyle:e,onClick:this.props._onToggleCameraFacingMode,style:o,underlayColor:"transparent"}),i.default.createElement(h.default,{iconName:this.props._locked?"security-locked":"security",iconStyle:e,onClick:this.props._onRoomLock,style:o,underlayColor:"transparent"}),i.default.createElement(h.default,{iconName:l?"visibility-off":"visibility",iconStyle:e,onClick:this.props._onToggleAudioOnly,style:o,underlayColor:"transparent"}),i.default.createElement(h.default,{iconName:"link",iconStyle:e,onClick:this.props._onShareRoom,style:o,underlayColor:"transparent"}))}}]),o}(r.Component);v.propTypes={_audioMuted:i.default.PropTypes.bool,_audioOnly:i.default.PropTypes.bool,_locked:i.default.PropTypes.bool,_onHangup:i.default.PropTypes.func,_onRoomLock:i.default.PropTypes.func,_onShareRoom:i.default.PropTypes.func,_onToggleAudioOnly:i.default.PropTypes.func,_onToggleCameraFacingMode:i.default.PropTypes.func,_videoMuted:i.default.PropTypes.bool,_visible:i.default.PropTypes.bool,dispatch:i.default.PropTypes.func},babelHelpers.extends(v.prototype,{audioIcon:"microphone",audioMutedIcon:"mic-disabled",videoIcon:"camera",videoMutedIcon:"camera-disabled"}),l.default=(0,d.connect)(a,n)(v)},925);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(927);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(928);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})}),t(929)},926);
__d(function(e,n,o,r){function t(e){return function(n,o){e||(e=(0,u.getInviteURL)(o)),e&&n({type:_.BEGIN_SHARE_ROOM,roomURL:e})}}function R(e,n){return{type:_.END_SHARE_ROOM,roomURL:e,shared:n}}Object.defineProperty(r,"__esModule",{value:!0}),r.beginShareRoom=t,r.endShareRoom=R;var u=n(610),_=n(928)},927);
__d(function(_,O,E,R){Object.defineProperty(R,"__esModule",{value:!0});R.BEGIN_SHARE_ROOM=Symbol("BEGIN_SHARE_ROOM"),R.END_SHARE_ROOM=Symbol("END_SHARE_ROOM")},928);
__d(function(e,n,t,o){function r(e,n){var t="Click the following link to join the meeting: "+e,o="Jitsi Meet Conference",r=function(t){return n((0,a.endShareRoom)(e,t))};i.Share.share({message:t,title:o},{dialogTitle:o,subject:o}).then(function(e){r(e.action===i.Share.sharedAction)},function(n){console.error("Failed to share conference/room URL "+e+":",n),r(!1)})}var i=n(64),c=n(467),a=n(927),s=n(928);c.MiddlewareRegistry.register(function(e){return function(n){return function(t){switch(t.type){case s.BEGIN_SHARE_ROOM:r(t.roomURL,e.dispatch)}return n(t)}}})},929);
__d(function(e,o,t,r){Object.defineProperty(r,"__esModule",{value:!0});var l=o(549),a={flex:1,position:"absolute"},n={flex:0,justifyContent:"center",opacity:.7},i={alignSelf:"center"},b=babelHelpers.extends({},n,{backgroundColor:l.ColorPalette.white,borderRadius:30,borderWidth:0,flexDirection:"row",height:60,margin:l.BoxModel.margin,width:60}),d=babelHelpers.extends({},i,{color:l.ColorPalette.darkGrey,fontSize:24}),s=babelHelpers.extends({},i,{color:l.ColorPalette.white,fontSize:18});r.default=(0,l.createStyleSheet)({hangup:babelHelpers.extends({},b,{backgroundColor:l.ColorPalette.red}),primaryToolbar:babelHelpers.extends({},a,{bottom:3*l.BoxModel.margin,flexDirection:"row",justifyContent:"center",left:0,right:0}),primaryToolbarButton:b,primaryToolbarButtonIcon:d,secondaryToolbar:babelHelpers.extends({},a,{bottom:0,flexDirection:"column",right:l.BoxModel.margin,top:2*l.BoxModel.margin}),secondaryToolbarButton:babelHelpers.extends({},n,{backgroundColor:l.ColorPalette.darkGrey,borderRadius:20,flexDirection:"column",height:40,margin:l.BoxModel.margin/2,width:40}),secondaryToolbarButtonIcon:s,toolbarContainer:{bottom:0,left:0,position:"absolute",right:0,top:0},whitePrimaryToolbarButton:babelHelpers.extends({},b,{backgroundColor:l.ColorPalette.buttonUnderlay}),whitePrimaryToolbarButtonIcon:babelHelpers.extends({},d,{color:l.ColorPalette.white})})},930);
__d(function(e,t,a,r){function i(e,t,a){var r=e.dispatch,i=e.getState,c=t(a),s=void 0;switch(a.type){case o.SET_AUDIO_AVAILABLE:s=o.MEDIA_TYPE.AUDIO;break;case o.SET_VIDEO_AVAILABLE:s=o.MEDIA_TYPE.VIDEO;break;case E.TRACK_UPDATED:s=a.track.jitsiTrack.isAudioTrack()?o.MEDIA_TYPE.AUDIO:o.MEDIA_TYPE.VIDEO;break;default:throw new Error("Unsupported action "+a)}var u=i()["features/base/media"],T=s===o.MEDIA_TYPE.AUDIO?u.audio:u.video,D=T.available,I=s===o.MEDIA_TYPE.AUDIO?D?"mute":"micDisabled":D?"videomute":"cameraDisabled",n=i()["features/base/tracks"],_=(0,E.isLocalTrackMuted)(n,s);return r((0,A.setToolbarButton)(s===o.MEDIA_TYPE.AUDIO?"microphone":"camera",{enabled:D,i18n:"[content]toolbar."+I,toggled:!D||_})),c}var o=t(579),c=t(467),E=t(592),A=t(919),s=t(920);c.MiddlewareRegistry.register(function(e){return function(t){return function(a){switch(a.type){case s.CLEAR_TOOLBOX_TIMEOUT:var r=e.getState()["features/toolbox"].timeoutID;clearTimeout(r);break;case s.SET_TOOLBOX_TIMEOUT:var c=e.getState()["features/toolbox"].timeoutID,A=a.handler,u=a.timeoutMS;clearTimeout(c);var T=setTimeout(A,u);a.timeoutID=T;break;case o.SET_AUDIO_AVAILABLE:case o.SET_VIDEO_AVAILABLE:return i(e,t,a);case E.TRACK_UPDATED:if(a.track.jitsiTrack.isLocal())return i(e,t,a)}return t(a)}}})},931);
__d(function(e,t,r,s){function n(){var e=5e3;return"undefined"!=typeof interfaceConfig&&interfaceConfig.INITIAL_TOOLBAR_TIMEOUT&&(e=interfaceConfig.INITIAL_TOOLBAR_TIMEOUT),{alwaysVisible:!1,enabled:!0,hovered:!1,primaryToolbarButtons:new Map,secondaryToolbarButtons:new Map,subject:"",subjectSlideIn:!1,timeoutID:null,timeoutMS:e,visible:!1}}function a(e,t){var r=t.button,s=t.buttonName,n=u.default[s];if(!n||!n.isDisplayed())return babelHelpers.extends({},e);var a=e.primaryToolbarButtons,o=e.secondaryToolbarButtons,l=a.get(s),b="primaryToolbarButtons";l||(l=o.get(s),b="secondaryToolbarButtons"),l=babelHelpers.extends({},l,r);var i=e[b].set(s,l);return babelHelpers.extends({},e,babelHelpers.defineProperty({},b,new Map(i)))}var o=t(467),l=t(920),b=t(933),u=babelHelpers.interopRequireDefault(b);o.ReducerRegistry.register("features/toolbox",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n(),t=arguments[1];switch(t.type){case l.CLEAR_TOOLBOX_TIMEOUT:return babelHelpers.extends({},e,{timeoutID:void 0});case l.SET_DEFAULT_TOOLBOX_BUTTONS:var r=t.primaryToolbarButtons,s=t.secondaryToolbarButtons;return babelHelpers.extends({},e,{primaryToolbarButtons:r,secondaryToolbarButtons:s});case l.SET_SUBJECT:return babelHelpers.extends({},e,{subject:t.subject});case l.SET_SUBJECT_SLIDE_IN:return babelHelpers.extends({},e,{subjectSlideIn:t.subjectSlideIn});case l.SET_TOOLBAR_BUTTON:return a(e,t);case l.SET_TOOLBAR_HOVERED:return babelHelpers.extends({},e,{hovered:t.hovered});case l.SET_TOOLBOX_ALWAYS_VISIBLE:return babelHelpers.extends({},e,{alwaysVisible:t.alwaysVisible});case l.SET_TOOLBOX_ENABLED:return babelHelpers.extends({},e,{enabled:t.enabled});case l.SET_TOOLBOX_TIMEOUT:return babelHelpers.extends({},e,{timeoutID:t.timeoutID,timeoutMS:t.timeoutMS});case l.SET_TOOLBOX_TIMEOUT_MS:return babelHelpers.extends({},e,{timeoutMS:t.timeoutMS});case l.SET_TOOLBOX_VISIBLE:return babelHelpers.extends({},e,{visible:t.visible})}return e})},932);
__d(function(t,e,o,n){Object.defineProperty(n,"__esModule",{value:!0});var a=e(34),i=babelHelpers.interopRequireDefault(a),l=e(502),s=e(934),c=e(957),d=e(963),r=e(971),u=e(603),b=babelHelpers.interopRequireDefault(u),p={addtocall:{classNames:["button","icon-add"],enabled:!0,id:"toolbar_button_add",isDisplayed:function(){return!APP.store.getState()["features/jwt"].isGuest},onClick:function(t){JitsiMeetJS.analytics.sendEvent("toolbar.add.clicked"),t((0,d.openAddPeopleDialog)())},tooltipKey:"toolbar.addPeople"},camera:{classNames:["button","icon-camera"],enabled:!0,isDisplayed:function(){return!0},id:"toolbar_button_camera",onClick:function(){var t=!APP.conference.isLocalVideoMuted();t?JitsiMeetJS.analytics.sendEvent("toolbar.video.enabled"):JitsiMeetJS.analytics.sendEvent("toolbar.video.disabled"),APP.UI.emitEvent(b.default.VIDEO_MUTED,t)},popups:[{className:"loginmenu",dataAttr:"audioOnly.featureToggleDisabled",dataInterpolate:{feature:"video mute"},id:"unmuteWhileAudioOnly"}],shortcut:"V",shortcutAttr:"toggleVideoPopover",shortcutFunc:function(){if(APP.conference.isAudioOnly())return void APP.UI.emitEvent(b.default.VIDEO_UNMUTING_WHILE_AUDIO_ONLY);JitsiMeetJS.analytics.sendEvent("shortcut.videomute.toggled"),APP.conference.toggleVideoMuted()},shortcutDescription:"keyboardShortcuts.videoMute",tooltipKey:"toolbar.videomute"},chat:{classNames:["button","icon-chat"],enabled:!0,html:i.default.createElement("span",{className:"badge-round"},i.default.createElement("span",{id:"unreadMessages"})),id:"toolbar_button_chat",onClick:function(){JitsiMeetJS.analytics.sendEvent("toolbar.chat.toggled"),APP.UI.emitEvent(b.default.TOGGLE_CHAT)},shortcut:"C",shortcutAttr:"toggleChatPopover",shortcutFunc:function(){JitsiMeetJS.analytics.sendEvent("shortcut.chat.toggled"),APP.UI.toggleChat()},shortcutDescription:"keyboardShortcuts.toggleChat",sideContainerId:"chat_container",tooltipKey:"toolbar.chat"},contacts:{classNames:["button","icon-contactList"],enabled:!0,html:i.default.createElement("span",{className:"badge-round"},i.default.createElement("span",{id:"numberOfParticipants"},"1")),id:"toolbar_contact_list",onClick:function(){JitsiMeetJS.analytics.sendEvent("toolbar.contacts.toggled"),APP.UI.emitEvent(b.default.TOGGLE_CONTACT_LIST)},sideContainerId:"contacts_container",tooltipKey:"bottomtoolbar.contactlist"},desktop:{classNames:["button","icon-share-desktop"],enabled:!0,id:"toolbar_button_desktopsharing",onClick:function(){APP.conference.isSharingScreen?JitsiMeetJS.analytics.sendEvent("toolbar.screen.disabled"):JitsiMeetJS.analytics.sendEvent("toolbar.screen.enabled"),APP.UI.emitEvent(b.default.TOGGLE_SCREENSHARING)},popups:[{className:"loginmenu",dataAttr:"audioOnly.featureToggleDisabled",dataInterpolate:{feature:"screen sharing"},id:"screenshareWhileAudioOnly"}],shortcut:"D",shortcutAttr:"toggleDesktopSharingPopover",shortcutFunc:function(){JitsiMeetJS.analytics.sendEvent("shortcut.screen.toggled"),APP.conference.toggleScreenSharing()},shortcutDescription:"keyboardShortcuts.toggleScreensharing",tooltipKey:"toolbar.sharescreen"},dialout:{classNames:["button","icon-telephone"],enabled:!0,hidden:!0,id:"toolbar_button_dial_out",onClick:function(t){JitsiMeetJS.analytics.sendEvent("toolbar.sip.clicked"),t((0,c.openDialOutDialog)())},tooltipKey:"dialOut.dialOut"},fodeviceselection:{classNames:["button","icon-settings"],enabled:!0,isDisplayed:function(){return interfaceConfig.filmStripOnly},id:"toolbar_button_fodeviceselection",onClick:function(t){JitsiMeetJS.analytics.sendEvent("toolbar.fodeviceselection.toggled"),t((0,s.openDeviceSelectionDialog)())},sideContainerId:"settings_container",tooltipKey:"toolbar.Settings"},dialpad:{classNames:["button","icon-dialpad"],enabled:!0,hidden:!0,id:"toolbar_button_dialpad",onClick:function(){JitsiMeetJS.analytics.sendEvent("toolbar.sip.dialpad.clicked")},tooltipKey:"toolbar.dialpad"},etherpad:{classNames:["button","icon-share-doc"],enabled:!0,hidden:!0,id:"toolbar_button_etherpad",onClick:function(){JitsiMeetJS.analytics.sendEvent("toolbar.etherpad.clicked"),APP.UI.emitEvent(b.default.ETHERPAD_CLICKED)},tooltipKey:"toolbar.etherpad"},fullscreen:{classNames:["button","icon-full-screen"],enabled:!0,id:"toolbar_button_fullScreen",onClick:function(){JitsiMeetJS.analytics.sendEvent("toolbar.fullscreen.enabled"),APP.UI.emitEvent(b.default.TOGGLE_FULLSCREEN)},shortcut:"S",shortcutAttr:"toggleFullscreenPopover",shortcutDescription:"keyboardShortcuts.fullScreen",shortcutFunc:function(){JitsiMeetJS.analytics.sendEvent("shortcut.fullscreen.toggled"),APP.UI.toggleFullScreen()},tooltipKey:"toolbar.fullscreen"},hangup:{classNames:["button","icon-hangup","button_hangup"],enabled:!0,isDisplayed:function(){return!0},id:"toolbar_button_hangup",onClick:function(){JitsiMeetJS.analytics.sendEvent("toolbar.hangup"),APP.UI.emitEvent(b.default.HANGUP)},tooltipKey:"toolbar.hangup"},invite:{classNames:["button","icon-link"],enabled:!0,id:"toolbar_button_link",onClick:function(t){JitsiMeetJS.analytics.sendEvent("toolbar.invite.clicked"),t((0,d.openInviteDialog)())},tooltipKey:"toolbar.invite"},microphone:{classNames:["button","icon-microphone"],enabled:!0,isDisplayed:function(){return!0},id:"toolbar_button_mute",onClick:function(){var t=APP.UI.getSharedVideoManager();APP.conference.isLocalAudioMuted()?t&&t.isSharedVideoVolumeOn()&&!t.isSharedVideoOwner()?APP.UI.showCustomToolbarPopup("#unableToUnmutePopup",!0,5e3):(JitsiMeetJS.analytics.sendEvent("toolbar.audio.unmuted"),APP.UI.emitEvent(b.default.AUDIO_MUTED,!1,!0)):(JitsiMeetJS.analytics.sendEvent("toolbar.audio.muted"),APP.UI.emitEvent(b.default.AUDIO_MUTED,!0,!0))},popups:[{className:"loginmenu",dataAttr:"toolbar.micMutedPopup",id:"micMutedPopup"},{className:"loginmenu",dataAttr:"toolbar.unableToUnmutePopup",id:"unableToUnmutePopup"},{className:"loginmenu",dataAttr:"toolbar.talkWhileMutedPopup",id:"talkWhileMutedPopup"}],shortcut:"M",shortcutAttr:"mutePopover",shortcutFunc:function(){JitsiMeetJS.analytics.sendEvent("shortcut.audiomute.toggled"),APP.conference.toggleAudioMuted()},shortcutDescription:"keyboardShortcuts.mute",tooltipKey:"toolbar.mute"},profile:{classNames:["button"],enabled:!0,html:i.default.createElement("img",{id:"avatar",src:l.DEFAULT_AVATAR_RELATIVE_PATH}),id:"toolbar_button_profile",onClick:function(){JitsiMeetJS.analytics.sendEvent("toolbar.profile.toggled"),APP.UI.emitEvent(b.default.TOGGLE_PROFILE)},sideContainerId:"profile_container",tooltipKey:"profile.setDisplayNameLabel"},raisehand:{classNames:["button","icon-raised-hand"],enabled:!0,id:"toolbar_button_raisehand",onClick:function(){JitsiMeetJS.analytics.sendEvent("toolbar.raiseHand.clicked"),APP.conference.maybeToggleRaisedHand()},shortcut:"R",shortcutAttr:"raiseHandPopover",shortcutDescription:"keyboardShortcuts.raiseHand",shortcutFunc:function(){JitsiMeetJS.analytics.sendEvent("shortcut.raisehand.clicked"),APP.conference.maybeToggleRaisedHand()},tooltipKey:"toolbar.raiseHand"},recording:{classNames:["button"],enabled:!0,hidden:!0,id:"toolbar_button_record",tooltipKey:"liveStreaming.buttonTooltip"},settings:{classNames:["button","icon-settings"],enabled:!0,id:"toolbar_button_settings",onClick:function(){JitsiMeetJS.analytics.sendEvent("toolbar.settings.toggled"),APP.UI.emitEvent(b.default.TOGGLE_SETTINGS)},sideContainerId:"settings_container",tooltipKey:"toolbar.Settings"},sharedvideo:{classNames:["button","icon-shared-video"],enabled:!0,id:"toolbar_button_sharedvideo",onClick:function(){JitsiMeetJS.analytics.sendEvent("toolbar.sharedvideo.clicked"),APP.UI.emitEvent(b.default.SHARED_VIDEO_CLICKED)},popups:[{className:"loginmenu extendedToolbarPopup",dataAttr:"toolbar.sharedVideoMutedPopup",dataAttrPosition:"w",id:"sharedVideoMutedPopup"}],tooltipKey:"toolbar.sharedvideo"},videoquality:{component:r.VideoQualityButton}};Object.keys(p).forEach(function(t){var e=p[t];e.isDisplayed||(e.isDisplayed=function(){return!interfaceConfig.filmStripOnly})}),n.default=p},933);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(935);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(947);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})});var c=t(948);Object.keys(c).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return c[e]}})}),t(955),t(956)},934);
__d(function(e,i,t,n){function a(){return function(e){e(interfaceConfig.filmStripOnly?o():u())}}function u(){return function(e){return l.default.mediaDevices.isDeviceListAvailable().then(function(i){e((0,c.openDialog)(A.DeviceSelectionDialog,{currentAudioInputId:APP.settings.getMicDeviceId(),currentAudioOutputId:APP.settings.getAudioOutputDeviceId(),currentVideoInputId:APP.settings.getCameraDeviceId(),disableAudioInputChange:!l.default.isMultipleAudioInputSupported(),disableDeviceChange:!i||!l.default.mediaDevices.isDeviceChangeAvailable(),hasAudioPermission:l.default.mediaDevices.isDevicePermissionGranted.bind(null,"audio"),hasVideoPermission:l.default.mediaDevices.isDevicePermissionGranted.bind(null,"video"),hideAudioInputPreview:!l.default.isCollectingLocalStats(),hideAudioOutputSelect:!l.default.mediaDevices.isDeviceChangeAvailable("output")}))})}}function o(){return function(e,i){var t=i()["features/device-selection"].popupDialogData;if(t)return void t.popup.focus();var n="dialog_"+p.API_ID,a=window.location.origin+"/static/deviceSelectionPopup.html#scope="+encodeURIComponent(JSON.stringify(n)),u=window.open(a,"device-selection-popup","toolbar=no,scrollbars=no,resizable=no,width=720,height=458");u.addEventListener("DOMContentLoaded",function(){u.init(D.i18next)});var o=new f.Transport({backend:new f.PostMessageTransportBackend({postisOptions:{scope:n,window:u}})});o.on("request",s.bind(void 0,e,i)),o.on("event",function(i){return"devices-dialog"===i.type&&"close"===i.name&&(u.close(),o.dispose(),e(d()),!0)}),e(d({popup:u,transport:o}))}}function s(e,i,t,n){if("devices"===t.type){switch(t.name){case"isDeviceListAvailable":l.default.mediaDevices.isDeviceListAvailable().then(function(e){return n(e)}).catch(function(e){return n(null,e)});break;case"isDeviceChangeAvailable":n(l.default.mediaDevices.isDeviceChangeAvailable(t.deviceType));break;case"isMultipleAudioInputSupported":n(l.default.isMultipleAudioInputSupported());break;case"getCurrentDevices":n({audioInput:APP.settings.getMicDeviceId(),audioOutput:APP.settings.getAudioOutputDeviceId(),videoInput:APP.settings.getCameraDeviceId()});break;case"getAvailableDevices":n(i()["features/base/devices"]);break;case"setDevice":var a=void 0,u=t.device;switch(u.kind){case"audioinput":a=v.setAudioInputDevice;break;case"audiooutput":a=v.setAudioOutputDevice;break;case"videoinput":a=v.setVideoInputDevice}e(a(u.id)),n(!0);break;default:return!1}return!0}return!1}function d(e){return{type:g.SET_DEVICE_SELECTION_POPUP_DATA,popupDialogData:e}}Object.defineProperty(n,"__esModule",{value:!0}),n.openDeviceSelectionDialog=a;var c=i(618),r=i(396),l=babelHelpers.interopRequireDefault(r),p=i(936),v=i(937),D=i(627),f=i(942),g=i(947),A=i(948)},935);
__d(function(e,i,t,_){Object.defineProperty(_,"__esModule",{value:!0}),_.API_ID=void 0;var a=i(465),l=babelHelpers.interopRequireDefault(a);_.API_ID=(0,l.default)(window.location).jitsi_meet_external_api_id},936);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(938);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(939);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})}),t(940),t(941)},937);
__d(function(e,t,i,u){function n(e){return{type:d.SET_AUDIO_INPUT_DEVICE,deviceId:e}}function I(e){return{type:d.SET_AUDIO_OUTPUT_DEVICE,deviceId:e}}function _(e){return{type:d.SET_VIDEO_INPUT_DEVICE,deviceId:e}}function c(e){return{type:d.UPDATE_DEVICE_LIST,devices:e}}Object.defineProperty(u,"__esModule",{value:!0}),u.setAudioInputDevice=n,u.setAudioOutputDevice=I,u.setVideoInputDevice=_,u.updateDeviceList=c;var d=t(939)},938);
__d(function(E,_,I,T){Object.defineProperty(T,"__esModule",{value:!0});T.SET_AUDIO_INPUT_DEVICE=Symbol("SET_AUDIO_INPUT_DEVICE"),T.SET_AUDIO_OUTPUT_DEVICE=Symbol("SET_AUDIO_OUTPUT_DEVICE"),T.SET_VIDEO_INPUT_DEVICE=Symbol("SET_VIDEO_INPUT_DEVICE"),T.UPDATE_DEVICE_LIST=Symbol("UPDATE_DEVICE_LIST")},939);
__d(function(e,E,t,I){var _=E(603),i=babelHelpers.interopRequireDefault(_),r=E(467),D=E(939);r.MiddlewareRegistry.register(function(e){return function(e){return function(E){switch(E.type){case D.SET_AUDIO_INPUT_DEVICE:APP.UI.emitEvent(i.default.AUDIO_DEVICE_CHANGED,E.deviceId);break;case D.SET_AUDIO_OUTPUT_DEVICE:APP.UI.emitEvent(i.default.AUDIO_OUTPUT_DEVICE_CHANGED,E.deviceId);break;case D.SET_VIDEO_INPUT_DEVICE:APP.UI.emitEvent(i.default.VIDEO_DEVICE_CHANGED,E.deviceId)}return e(E)}}})},940);
__d(function(e,t,u,i){function n(e){return{audioInput:e.filter(function(e){return"audioinput"===e.kind}),audioOutput:e.filter(function(e){return"audiooutput"===e.kind}),videoInput:e.filter(function(e){return"videoinput"===e.kind})}}var r=t(939),d={audioInput:[],audioOutput:[],videoInput:[]};t(467).ReducerRegistry.register("features/base/devices",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d,t=arguments[1];switch(t.type){case r.UPDATE_DEVICE_LIST:var u=n(t.devices);return babelHelpers.extends({},u);case r.SET_AUDIO_INPUT_DEVICE:case r.SET_VIDEO_INPUT_DEVICE:case r.SET_AUDIO_OUTPUT_DEVICE:default:return e}})},941);
__d(function(e,t,a,r){function n(){return c||(c=new u.default({backend:new l.default({enableLegacyFormat:!0,postisOptions:d})})),c}Object.defineProperty(r,"__esModule",{value:!0}),r.Transport=r.PostMessageTransportBackend=void 0,r.getJitsiMeetTransport=n;var s=t(936),o=t(903),i=t(943),l=babelHelpers.interopRequireDefault(i),p=t(945),u=babelHelpers.interopRequireDefault(p);r.PostMessageTransportBackend=l.default,r.Transport=u.default;var d={};"number"==typeof s.API_ID&&(d.scope="jitsi_meet_external_api_"+s.API_ID);var c=void 0;(0,o.getJitsiMeetGlobalNS)().setExternalTransportBackend=function(e){return c.setBackend(e)}},942);
__d(function(e,a,t,i){Object.defineProperty(i,"__esModule",{value:!0});var s=a(944),n=babelHelpers.interopRequireDefault(s),l={window:window.opener||window.parent},o=["avatar-url","display-name","email","toggle-audio","toggle-chat","toggle-contact-list","toggle-film-strip","toggle-share-screen","toggle-video","video-hangup"],c=["display-name-change","incoming-message","outgoing-message","participant-joined","participant-left","video-conference-joined","video-conference-left","video-ready-to-close"],r="message",d=function(){function e(){var a=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.enableLegacyFormat,s=t.postisOptions;babelHelpers.classCallCheck(this,e),this.postis=(0,n.default)(babelHelpers.extends({},l,s)),this._enableLegacyFormat=i,this._enableLegacyFormat&&o.forEach(function(e){return a.postis.listen(e,function(t){return a._legacyMessageReceivedCallback(e,t)})}),this._receiveCallback=function(){},this.postis.listen(r,function(e){return a._receiveCallback(e)})}return babelHelpers.createClass(e,[{key:"_legacyMessageReceivedCallback",value:function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._receiveCallback({data:{name:e,data:a}})}},{key:"_sendLegacyMessage",value:function(e){var a=e.name,t=babelHelpers.objectWithoutProperties(e,["name"]);a&&-1!==c.indexOf(a)&&this.postis.send({method:a,params:t})}},{key:"dispose",value:function(){this.postis.destroy()}},{key:"send",value:function(e){this.postis.send({method:r,params:e}),this._enableLegacyFormat&&this._sendLegacyMessage(e.data||{})}},{key:"setReceiveCallback",value:function(e){this._receiveCallback=e}}]),e}();i.default=d},943);
__d(function(e,t,n,a){function r(e){var t,n=e.scope,a=e.window,r=e.windowForEventListening||window,o={},s=[],i={},d=!1,f=function(e){var t;try{t=JSON.parse(e.data)}catch(e){return}if(t.postis&&t.scope===n){var a=o[t.method];if(a)for(var r=0;r<a.length;r++)a[r].call(null,t.params);else i[t.method]=i[t.method]||[],i[t.method].push(t.params)}};r.addEventListener("message",f,!1);var l={listen:function(e,t){o[e]=o[e]||[],o[e].push(t);var n=i[e];if(n)for(var a=o[e],r=0;r<a.length;r++)for(var s=0;s<n.length;s++)a[r].call(null,n[s]);delete i[e]},send:function(e){var t=e.method;(d||"__ready__"===e.method)&&a&&"function"==typeof a.postMessage?a.postMessage(JSON.stringify({postis:!0,scope:n,method:t,params:e.params}),"*"):s.push(e)},ready:function(e){d?e():setTimeout(function(){l.ready(e)},50)},destroy:function(e){clearInterval(t),d=!1,r&&"function"==typeof r.removeEventListener&&r.removeEventListener("message",f),e&&e()}},c=+new Date+Math.random()+"";return t=setInterval(function(){l.send({method:"__ready__",params:c})},50),l.listen("__ready__",function(e){if(e===c){clearInterval(t),d=!0;for(var n=0;n<s.length;n++)l.send(s[n]);s=[]}else l.send({method:"__ready__",params:e})}),l}n.exports=r},944);
__d(function(e,s,t,n){Object.defineProperty(n,"__esModule",{value:!0});var i=s(946),r=function(){function e(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=s.backend;babelHelpers.classCallCheck(this,e),this._listeners=new Map,this._requestID=0,this._responseHandlers=new Map,this._unprocessedMessages=new Set,this.addListener=this.on,t&&this.setBackend(t)}return babelHelpers.createClass(e,[{key:"_disposeBackend",value:function(){this._backend&&(this._backend.dispose(),this._backend=null)}},{key:"_onMessageReceived",value:function(e){var s=this;if(e.type===i.MESSAGE_TYPE_RESPONSE){var t=this._responseHandlers.get(e.id);t&&(t(e),this._responseHandlers.delete(e.id))}else e.type===i.MESSAGE_TYPE_REQUEST?this.emit("request",e.data,function(t,n){s._backend.send({type:i.MESSAGE_TYPE_RESPONSE,error:n,id:e.id,result:t})}):this.emit("event",e.data)}},{key:"dispose",value:function(){this._responseHandlers.clear(),this._unprocessedMessages.clear(),this.removeAllListeners(),this._disposeBackend()}},{key:"emit",value:function(e){for(var s=arguments.length,t=Array(s>1?s-1:0),n=1;n<s;n++)t[n-1]=arguments[n];var i=this._listeners.get(e),r=!1;return i&&i.size&&i.forEach(function(e){r=e.apply(void 0,t)||r}),r||this._unprocessedMessages.add(t),r}},{key:"on",value:function(e,s){var t=this,n=this._listeners.get(e);return n||(n=new Set,this._listeners.set(e,n)),n.add(s),this._unprocessedMessages.forEach(function(e){s.apply(void 0,babelHelpers.toConsumableArray(e))&&t._unprocessedMessages.delete(e)}),this}},{key:"removeAllListeners",value:function(e){return e?this._listeners.delete(e):this._listeners.clear(),this}},{key:"removeListener",value:function(e,s){var t=this._listeners.get(e);return t&&t.delete(s),this}},{key:"sendEvent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._backend&&this._backend.send({type:i.MESSAGE_TYPE_EVENT,data:e})}},{key:"sendRequest",value:function(e){var s=this;if(!this._backend)return Promise.reject(new Error("No transport backend defined!"));this._requestID++;var t=this._requestID;return new Promise(function(n,r){s._responseHandlers.set(t,function(e){var s=e.error,t=e.result;void 0!==t?n(t):r(void 0!==s?s:new Error("Unexpected response format!"))}),s._backend.send({type:i.MESSAGE_TYPE_REQUEST,data:e,id:t})})}},{key:"setBackend",value:function(e){this._disposeBackend(),this._backend=e,this._backend.setReceiveCallback(this._onMessageReceived.bind(this))}}]),e}();n.default=r},945);
__d(function(E,e,_,S){Object.defineProperty(S,"__esModule",{value:!0});S.MESSAGE_TYPE_EVENT="event",S.MESSAGE_TYPE_REQUEST="request",S.MESSAGE_TYPE_RESPONSE="response"},946);
__d(function(_,E,e,P){Object.defineProperty(P,"__esModule",{value:!0});P.SET_DEVICE_SELECTION_POPUP_DATA=Symbol("SET_DEVICE_SELECTION_POPUP_DATA")},947);
__d(function(e,t,r,n){Object.defineProperty(n,"__esModule",{value:!0});var i=t(949);Object.defineProperty(n,"DeviceSelectionDialog",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(i).default}});var l=t(950);Object.defineProperty(n,"DeviceSelectionDialogBase",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(l).default}})},948);
__d(function(e,t,i,u){function o(e){return{_availableDevices:e["features/base/devices"]}}Object.defineProperty(u,"__esModule",{value:!0});var r=t(34),s=babelHelpers.interopRequireDefault(r),n=t(557),d=t(937),p=t(618),a=t(950),l=babelHelpers.interopRequireDefault(a),c=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){var e=this.props,t=e.currentAudioInputId,i=e.currentAudioOutputId,u=e.currentVideoInputId,o=e.disableAudioInputChange,r=e.disableDeviceChange,n=e.dispatch,a=e.hasAudioPermission,c=e.hasVideoPermission,b=e.hideAudioInputPreview,f=e.hideAudioOutputSelect,h={availableDevices:this.props._availableDevices,closeModal:function(){return n((0,p.hideDialog)())},currentAudioInputId:t,currentAudioOutputId:i,currentVideoInputId:u,disableAudioInputChange:o,disableDeviceChange:r,hasAudioPermission:a,hasVideoPermission:c,hideAudioInputPreview:b,hideAudioOutputSelect:f,setAudioInputDevice:function(e){return n((0,d.setAudioInputDevice)(e)),Promise.resolve()},setAudioOutputDevice:function(e){return n((0,d.setAudioOutputDevice)(e)),Promise.resolve()},setVideoInputDevice:function(e){return n((0,d.setVideoInputDevice)(e)),Promise.resolve()}};return s.default.createElement(l.default,h)}}]),t}(r.Component);c.propTypes={_availableDevices:s.default.PropTypes.object,currentAudioInputId:s.default.PropTypes.string,currentAudioOutputId:s.default.PropTypes.string,currentVideoInputId:s.default.PropTypes.string,disableAudioInputChange:s.default.PropTypes.bool,disableDeviceChange:s.default.PropTypes.bool,dispatch:s.default.PropTypes.func,hasAudioPermission:s.default.PropTypes.func,hasVideoPermission:s.default.PropTypes.func,hideAudioInputPreview:s.default.PropTypes.bool,hideAudioOutputSelect:s.default.PropTypes.bool},u.default=(0,n.connect)(o)(c)},949);
__d(function(e,t,i,s){Object.defineProperty(s,"__esModule",{value:!0});var u=t(34),o=babelHelpers.interopRequireDefault(u),d=t(618),n=t(627),r=t(396),a=t(951),l=babelHelpers.interopRequireDefault(a),p=t(952),c=babelHelpers.interopRequireDefault(p),v=t(953),h=babelHelpers.interopRequireDefault(v),I=t(954),f=babelHelpers.interopRequireDefault(I),A=function(e){function t(e){babelHelpers.classCallCheck(this,t);var i=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),s=i.props.availableDevices;return i.state={previewAudioTrack:null,previewVideoTrack:null,previewVideoTrackError:null,selectedAudioInputId:i.props.currentAudioInputId||"",selectedAudioOutputId:i.props.currentAudioOutputId||"",selectedVideoInputId:i.props.currentVideoInputId||s.videoInput&&s.videoInput[0]&&s.videoInput[0].deviceId||""},i._isClosing=!1,i._setDevicesAndClose=i._setDevicesAndClose.bind(i),i._onCancel=i._onCancel.bind(i),i._onSubmit=i._onSubmit.bind(i),i._updateAudioOutput=i._updateAudioOutput.bind(i),i._updateAudioInput=i._updateAudioInput.bind(i),i._updateVideoInput=i._updateVideoInput.bind(i),i}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"componentDidMount",value:function(){this._updateAudioOutput(this.state.selectedAudioOutputId),this._updateAudioInput(this.state.selectedAudioInputId),this._updateVideoInput(this.state.selectedVideoInputId)}},{key:"componentWillUnmount",value:function(){this._isClosing||this._attemptPreviewTrackCleanup()}},{key:"render",value:function(){return o.default.createElement(d.StatelessDialog,{cancelTitleKey:"dialog.Cancel",disableBlanketClickDismiss:this.props.disableBlanketClickDismiss,okTitleKey:"dialog.Save",onCancel:this._onCancel,onSubmit:this._onSubmit,titleKey:"deviceSelection.deviceSettings"},o.default.createElement("div",{className:"device-selection"},o.default.createElement("div",{className:"device-selection-column column-video"},o.default.createElement("div",{className:"device-selection-video-container"},o.default.createElement(f.default,{error:this.state.previewVideoTrackError,track:this.state.previewVideoTrack})),this._renderAudioInputPreview()),o.default.createElement("div",{className:"device-selection-column column-selectors"},o.default.createElement("div",{className:"device-selectors"},this._renderSelectors()),this._renderAudioOutputPreview())))}},{key:"_attemptPreviewTrackCleanup",value:function(){return Promise.all([this._disposeVideoPreview(),this._disposeAudioPreview()])}},{key:"_disposeAudioPreview",value:function(){return this.state.previewAudioTrack?this.state.previewAudioTrack.dispose():Promise.resolve()}},{key:"_disposeVideoPreview",value:function(){return this.state.previewVideoTrack?this.state.previewVideoTrack.dispose():Promise.resolve()}},{key:"_onCancel",value:function(){if(this._isClosing)return!1;this._isClosing=!0;var e=this._attemptPreviewTrackCleanup();return Promise.all(e).then(this.props.closeModal).catch(this.props.closeModal),!1}},{key:"_onSubmit",value:function(){return!this._isClosing&&(this._isClosing=!0,this._attemptPreviewTrackCleanup().then(this._setDevicesAndClose,this._setDevicesAndClose),!1)}},{key:"_renderAudioInputPreview",value:function(){return this.props.hideAudioInputPreview?null:o.default.createElement(l.default,{track:this.state.previewAudioTrack})}},{key:"_renderAudioOutputPreview",value:function(){return this.props.hideAudioOutputSelect?null:o.default.createElement(c.default,{deviceId:this.state.selectedAudioOutputId})}},{key:"_renderSelector",value:function(e){return o.default.createElement(h.default,e)}},{key:"_renderSelectors",value:function(){var e=this.props.availableDevices,t=[{devices:e.videoInput,hasPermission:this.props.hasVideoPermission(),icon:"icon-camera",isDisabled:this.props.disableDeviceChange,key:"videoInput",label:"settings.selectCamera",onSelect:this._updateVideoInput,selectedDeviceId:this.state.selectedVideoInputId},{devices:e.audioInput,hasPermission:this.props.hasAudioPermission(),icon:"icon-microphone",isDisabled:this.props.disableAudioInputChange||this.props.disableDeviceChange,key:"audioInput",label:"settings.selectMic",onSelect:this._updateAudioInput,selectedDeviceId:this.state.selectedAudioInputId}];return this.props.hideAudioOutputSelect||t.push({devices:e.audioOutput,hasPermission:this.props.hasAudioPermission()||this.props.hasVideoPermission(),icon:"icon-volume",isDisabled:this.props.disableDeviceChange,key:"audioOutput",label:"settings.selectAudioOutput",onSelect:this._updateAudioOutput,selectedDeviceId:this.state.selectedAudioOutputId}),t.map(this._renderSelector)}},{key:"_setDevicesAndClose",value:function(){var e=this.props,t=e.setVideoInputDevice,i=e.setAudioInputDevice,s=e.setAudioOutputDevice,u=e.closeModal,o=[];this.state.selectedVideoInputId!==this.props.currentVideoInputId&&o.push(t(this.state.selectedVideoInputId)),this.state.selectedAudioInputId!==this.props.currentAudioInputId&&o.push(i(this.state.selectedAudioInputId)),this.state.selectedAudioOutputId!==this.props.currentAudioOutputId&&o.push(s(this.state.selectedAudioOutputId)),Promise.all(o).then(u,u)}},{key:"_updateAudioInput",value:function(e){var t=this;this.setState({selectedAudioInputId:e},function(){t._disposeAudioPreview().then(function(){return(0,r.createLocalTrack)("audio",e)}).then(function(e){t.setState({previewAudioTrack:e})}).catch(function(){t.setState({previewAudioTrack:null})})})}},{key:"_updateAudioOutput",value:function(e){this.setState({selectedAudioOutputId:e})}},{key:"_updateVideoInput",value:function(e){var t=this;this.setState({selectedVideoInputId:e},function(){t._disposeVideoPreview().then(function(){return(0,r.createLocalTrack)("video",e)}).then(function(e){t.setState({previewVideoTrack:e,previewVideoTrackError:null})}).catch(function(){t.setState({previewVideoTrack:null,previewVideoTrackError:t.props.t("deviceSelection.previewUnavailable")})})})}}]),t}(u.Component);A.propTypes={availableDevices:o.default.PropTypes.object,closeModal:o.default.PropTypes.func,currentAudioInputId:o.default.PropTypes.string,currentAudioOutputId:o.default.PropTypes.string,currentVideoInputId:o.default.PropTypes.string,disableAudioInputChange:o.default.PropTypes.bool,disableBlanketClickDismiss:o.default.PropTypes.bool,disableDeviceChange:o.default.PropTypes.bool,hasAudioPermission:o.default.PropTypes.func,hasVideoPermission:o.default.PropTypes.func,hideAudioInputPreview:o.default.PropTypes.bool,hideAudioOutputSelect:o.default.PropTypes.bool,setAudioInputDevice:o.default.PropTypes.func,setAudioOutputDevice:o.default.PropTypes.func,setVideoInputDevice:o.default.PropTypes.func,t:o.default.PropTypes.func},s.default=(0,n.translate)(A)},950);
__d(function(e,t,i,o){Object.defineProperty(o,"__esModule",{value:!0});var s=t(34),a=babelHelpers.interopRequireDefault(s),u=t(396),n=function(e){function t(e){babelHelpers.classCallCheck(this,t);var i=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.state={audioLevel:0},i._updateAudioLevel=i._updateAudioLevel.bind(i),i}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"componentDidMount",value:function(){this._listenForAudioUpdates(this.props.track)}},{key:"componentWillReceiveProps",value:function(e){this._listenForAudioUpdates(e.track),this._updateAudioLevel(0)}},{key:"componentWillUnmount",value:function(){this._stopListeningForAudioUpdates()}},{key:"render",value:function(){var e={width:Math.floor(100*this.state.audioLevel)+"%"};return a.default.createElement("div",{className:"audio-input-preview"},a.default.createElement("div",{className:"audio-input-preview-level",style:e}))}},{key:"_listenForAudioUpdates",value:function(e){this._stopListeningForAudioUpdates(),e&&e.on(u.JitsiTrackEvents.TRACK_AUDIO_LEVEL_CHANGED,this._updateAudioLevel)}},{key:"_stopListeningForAudioUpdates",value:function(){this.props.track&&this.props.track.off(u.JitsiTrackEvents.TRACK_AUDIO_LEVEL_CHANGED,this._updateAudioLevel)}},{key:"_updateAudioLevel",value:function(e){this.setState({audioLevel:e})}}]),t}(s.PureComponent);n.propTypes={track:a.default.PropTypes.object},o.default=n},951);
__d(function(e,t,i,n){Object.defineProperty(n,"__esModule",{value:!0});var l=t(34),o=babelHelpers.interopRequireDefault(l),u=t(627),s=function(e){function t(e){babelHelpers.classCallCheck(this,t);var i=babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i._audioElement=null,i._onClick=i._onClick.bind(i),i._setAudioElement=i._setAudioElement.bind(i),i}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"componentDidMount",value:function(){this._setAudioSink()}},{key:"componentDidUpdate",value:function(){this._setAudioSink()}},{key:"render",value:function(){return o.default.createElement("div",{className:"audio-output-preview"},o.default.createElement("a",{onClick:this._onClick},this.props.t("deviceSelection.testAudio")),o.default.createElement("audio",{preload:"auto",ref:this._setAudioElement,src:"sounds/ring.wav"}))}},{key:"_onClick",value:function(){this._audioElement&&this._audioElement.play()}},{key:"_setAudioElement",value:function(e){this._audioElement=e}},{key:"_setAudioSink",value:function(){this._audioElement&&this._audioElement.setSinkId(this.props.deviceId)}}]),t}(l.Component);s.propTypes={deviceId:o.default.PropTypes.string,t:o.default.PropTypes.func},n.default=(0,u.translate)(s)},952);
__d(function(n,_,c,d){},953);
__d(function(e,r,t,a){Object.defineProperty(a,"__esModule",{value:!0});var i=r(34),l=babelHelpers.interopRequireDefault(i),p=r(579),s=function(e){function r(){return babelHelpers.classCallCheck(this,r),babelHelpers.possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return babelHelpers.inherits(r,e),babelHelpers.createClass(r,[{key:"render",value:function(){var e=this.props.error,r=e?"video-preview-has-error":"",t="video-input-preview "+r;return l.default.createElement("div",{className:t},l.default.createElement(p.VideoTrack,{className:"video-input-preview-display flipVideoX",triggerOnPlayingUpdate:!1,videoTrack:{jitsiTrack:this.props.track}}),l.default.createElement("div",{className:"video-input-preview-error"},e||""))}}]),r}(i.Component);s.propTypes={error:l.default.PropTypes.string,track:l.default.PropTypes.object},a.default=s},954);
__d(function(e,t,n,r){var i=t(937);t(467).MiddlewareRegistry.register(function(e){return function(t){return function(n){var r=t(n);if(n.type===i.UPDATE_DEVICE_LIST){var a=e.getState()["features/device-selection"].popupDialogData;a&&a.transport.sendEvent({name:"deviceListChanged"})}return r}}})},955);
__d(function(e,t,a,r){var i=t(467),n=t(947);i.ReducerRegistry.register("features/device-selection",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return t.type===n.SET_DEVICE_SELECTION_POPUP_DATA?babelHelpers.extends({},e,{popupDialogData:t.popupDialogData}):e})},956);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(958);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(960);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})}),t(962)},957);
__d(function(e,n,r,t){function u(){return{type:s.DIAL_OUT_CANCELED}}function o(e){return function(n,r){r()["features/base/conference"].conference.dial(e)}}function i(e){return function(n,r){var t=r()["features/base/config"].dialOutAuthUrl;if(!t){var u={};return u.allow=!0,void n({type:s.PHONE_NUMBER_CHECKED,response:u})}var o=t+"?phone="+e;$.getJSON(o).success(function(e){return n({type:s.PHONE_NUMBER_CHECKED,response:e})}).error(function(e){return n({type:s.DIAL_OUT_SERVICE_FAILED,error:e})})}}function c(){return(0,f.openDialog)(D.DialOutDialog)}function a(){return function(e,n){var r=n()["features/base/config"].dialOutCodesUrl;r&&$.getJSON(r).success(function(n){return e({type:s.DIAL_OUT_CODES_UPDATED,response:n})}).error(function(n){return e({type:s.DIAL_OUT_SERVICE_FAILED,error:n})})}}Object.defineProperty(t,"__esModule",{value:!0}),t.cancel=u,t.dial=o,t.checkDialNumber=i,t.openDialOutDialog=c,t.updateDialOutCodes=a;var f=n(618),s=n(959),D=n(960)},958);
__d(function(_,E,D,A){Object.defineProperty(A,"__esModule",{value:!0});A.PHONE_NUMBER_CHECKED=Symbol("PHONE_NUMBER_CHECKED"),A.DIAL_OUT_CANCELED=Symbol("DIAL_OUT_CANCELED"),A.DIAL_OUT_CODES_UPDATED=Symbol("DIAL_OUT_CODES_UPDATED"),A.DIAL_OUT_SERVICE_FAILED=Symbol("DIAL_OUT_SERVICE_FAILED")},959);
__d(function(e,t,r,u){Object.defineProperty(u,"__esModule",{value:!0});var l=t(961);Object.defineProperty(u,"DialOutDialog",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(l).default}})},960);
__d(function(n,_,c,d){},961);
__d(function(e,r,l,s){var t=r(467),n=r(959),u={dialOutCodes:null,error:null,isDialNumberAllowed:!0};t.ReducerRegistry.register("features/dial-out",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,r=arguments[1];switch(r.type){case n.DIAL_OUT_CANCELED:return babelHelpers.extends({},u,{dialOutCodes:e.dialOutCodes});case n.DIAL_OUT_CODES_UPDATED:return babelHelpers.extends({},e,{error:null,dialOutCodes:r.response});case n.DIAL_OUT_SERVICE_FAILED:return babelHelpers.extends({},e,{error:r.error});case n.PHONE_NUMBER_CHECKED:return babelHelpers.extends({},e,{error:null,isDialNumberAllowed:r.response.allow})}return e})},962);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(964);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})});var o=t(966);Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return o[e]}})}),t(969),t(970)},963);
__d(function(e,n,o,r){function i(){return(0,c.openDialog)(u.InviteDialog)}function t(){return(0,c.openDialog)(u.AddPeopleDialog)}function a(){return function(e,n){var o=n(),r=o["features/base/config"],i=r.dialInConfCodeUrl,t=r.dialInNumbersUrl,a=r.hosts,c=a&&a.muc;if(i&&t&&c){var u=o["features/base/conference"].room,f=i+"?conference="+u+"@"+c;Promise.all([$.getJSON(t),$.getJSON(f)]).then(function(n){var o=babelHelpers.slicedToArray(n,2),r=o[0],i=o[1],t=i.conference,a=i.id,c=i.message;if(!t||!a)return Promise.reject(c);e({type:l.UPDATE_DIAL_IN_NUMBERS_SUCCESS,conferenceID:a,dialInNumbers:r})}).catch(function(n){e({type:l.UPDATE_DIAL_IN_NUMBERS_FAILED,error:n})})}}}Object.defineProperty(r,"__esModule",{value:!0}),r.openInviteDialog=i,r.openAddPeopleDialog=t,r.updateDialInNumbers=a;var c=n(618),l=n(965),u=n(966)},964);
__d(function(_,E,S,A){Object.defineProperty(A,"__esModule",{value:!0});A.UPDATE_DIAL_IN_NUMBERS_FAILED=Symbol("UPDATE_DIAL_IN_NUMBERS_FAILED"),A.UPDATE_DIAL_IN_NUMBERS_SUCCESS=Symbol("UPDATE_DIAL_IN_NUMBERS_SUCCESS")},965);
__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0});var l=r(967);Object.defineProperty(n,"InviteDialog",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(l).default}});var u=r(968);Object.defineProperty(n,"AddPeopleDialog",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(u).default}})},966);
__d(function(n,_,c,d){},967);
__d(function(n,_,c,d){},968);
__d(function(e,r,n,s){var t=r(467),u=r(965),a={numbersEnabled:!0};t.ReducerRegistry.register("features/invite",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,r=arguments[1];switch(r.type){case u.UPDATE_DIAL_IN_NUMBERS_FAILED:return babelHelpers.extends({},e,{error:r.error});case u.UPDATE_DIAL_IN_NUMBERS_SUCCESS:var n=r.dialInNumbers,s=n.numbers,t=n.numbersEnabled;return{conferenceID:r.conferenceID,numbers:s,numbersEnabled:t}}return e})},969);
__d(function(r,e,n,t){var i=e(467),o=e(965),u=e(426).getLogger(__filename);i.MiddlewareRegistry.register(function(r){return function(r){return function(e){var n=r(e);switch(e.type){case o.UPDATE_DIAL_IN_NUMBERS_FAILED:u.error("Error encountered while fetching dial-in numbers:",e.error)}return n}}})},970);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(972);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})})},971);
__d(function(e,t,r,u){Object.defineProperty(u,"__esModule",{value:!0});var l=t(973);Object.defineProperty(u,"VideoQualityButton",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(l).default}});var n=t(974);Object.defineProperty(u,"VideoQualityDialog",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(n).default}});var a=t(975);Object.defineProperty(u,"VideoQualityLabel",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(a).default}})},972);
__d(function(n,_,c,d){},973);
__d(function(n,_,c,d){},974);
__d(function(n,_,c,d){},975);
__d(function(e,l,o,r){Object.defineProperty(r,"__esModule",{value:!0});var t=l(549);r.default=(0,t.createStyleSheet)({conference:(0,t.fixAndroidViewClipping)({alignSelf:"stretch",backgroundColor:t.ColorPalette.appBackground,flex:1})})},976);
__d(function(e,n,t,o){function r(){f(),APP.ConferenceUrl=new u.default(window.location)}function i(e,n){return new Promise(function(t,o){return(0,l.obtainConfig)(e,n,function(e,n){e?t():o(n)})})}function a(){if("undefined"!=typeof APP&&!APP.ConferenceUrl){var e=config.configLocation,n=APP.conference.roomName;e?i(e,n).then(function(){c(),r()}).catch(function(e){APP.UI.messageHandler.openReportDialog(null,"dialog.connectError",e)}):((0,l.chooseBOSHAddress)(config,n),r())}}function c(){var e=window.performance.now();APP.connectionTimes["configuration.fetched"]=e,m.log("(TIME) configuration fetched:\t",e)}function f(){var e=APP.store.getState(),n=e["features/jwt"].caller;if(n){var t=n.avatarUrl,o=n.avatar,r=n.email,i=n.name;APP.settings.setEmail((r||"").trim(),!0),APP.settings.setAvatarUrl((t||o||"").trim()),APP.settings.setDisplayName((i||"").trim(),!0)}}var s=n(978),u=babelHelpers.interopRequireDefault(s),l=n(458),P=n(538),g=n(695),m=n(426).getLogger(__filename);P.RouteRegistry.register({component:g.Conference,onEnter:function(){a()},path:"/:room"})},977);
__d(function(e,o,n,r){Object.defineProperty(r,"__esModule",{value:!0});var t=o(426).getLogger(__filename),f=function e(o){babelHelpers.classCallCheck(this,e),t.info("Stored original conference URL: "+o.href),t.info("Conference URL for invites: "+o.protocol+"//"+o.host+o.pathname)};r.default=f},978);
__d(function(e,t,n,r){Object.defineProperty(r,"__esModule",{value:!0});var u=t(980);Object.keys(u).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return u[e]}})}),t(985)},979);
__d(function(e,r,t,n){Object.defineProperty(n,"__esModule",{value:!0});var u=r(981);Object.defineProperty(n,"WelcomePage",{enumerable:!0,get:function(){return babelHelpers.interopRequireDefault(u).default}})},980);
__d(function(e,t,l,a){Object.defineProperty(a,"__esModule",{value:!0});var r=t(34),o=babelHelpers.interopRequireDefault(r),n=t(64),s=t(557),i=t(627),u=t(538),c=t(549),d=t(982),p=t(984),m=babelHelpers.interopRequireDefault(p),f=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"render",value:function(){return o.default.createElement(n.View,{style:m.default.container},this._renderLocalVideo(),this._renderLocalVideoOverlay())}},{key:"_renderLegalese",value:function(){var e=this.props.t;return o.default.createElement(n.View,{style:m.default.legaleseContainer},o.default.createElement(u.Link,{style:m.default.legaleseItem,url:"https://jitsi.org/meet/terms"},e("welcomepage.terms")),o.default.createElement(u.Link,{style:m.default.legaleseItem,url:"https://jitsi.org/meet/privacy"},e("welcomepage.privacy")),o.default.createElement(u.Link,{style:m.default.legaleseItem,url:"mailto:support@jitsi.org"},e("welcomepage.sendFeedback")))}},{key:"_renderLocalVideoOverlay",value:function(){var e=this.props.t;return o.default.createElement(n.View,{style:m.default.localVideoOverlay},o.default.createElement(n.View,{style:m.default.roomContainer},o.default.createElement(u.Text,{style:m.default.title},e("welcomepage.roomname")),o.default.createElement(n.TextInput,{accessibilityLabel:"Input room name.",autoCapitalize:"none",autoComplete:!1,autoCorrect:!1,autoFocus:!1,onChangeText:this._onRoomChange,placeholder:e("welcomepage.roomnamePlaceHolder"),style:m.default.textInput,underlineColorAndroid:"transparent",value:this.state.room}),o.default.createElement(n.TouchableHighlight,{accessibilityLabel:"Tap to Join.",disabled:this._isJoinDisabled(),onPress:this._onJoin,style:m.default.button,underlayColor:c.ColorPalette.white},o.default.createElement(u.Text,{style:m.default.buttonText},e("welcomepage.join")))),this._renderLegalese())}}]),t}(d.AbstractWelcomePage);f.propTypes=d.AbstractWelcomePage.propTypes,a.default=(0,i.translate)((0,s.connect)(d._mapStateToProps)(f))},981);
__d(function(e,o,t,a){function n(e){var o=e["features/base/conference"],t=e["features/base/tracks"];return{_localVideoTrack:(0,u.getLocalVideoTrack)(t),_room:o.room}}Object.defineProperty(a,"__esModule",{value:!0}),a.AbstractWelcomePage=void 0,a._mapStateToProps=n;var i=o(34),r=babelHelpers.interopRequireDefault(i),s=o(392),l=o(394),m=o(579),u=o(592),c=o(983);(a.AbstractWelcomePage=function(e){function o(e){babelHelpers.classCallCheck(this,o);var t=babelHelpers.possibleConstructorReturn(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,e));return t.state={animateTimeoutId:null,generatedRoomname:"",room:"",roomPlaceholder:"",updateTimeoutId:null},t._animateRoomnameChanging=t._animateRoomnameChanging.bind(t),t._onJoin=t._onJoin.bind(t),t._onRoomChange=t._onRoomChange.bind(t),t._updateRoomname=t._updateRoomname.bind(t),t}return babelHelpers.inherits(o,e),babelHelpers.createClass(o,[{key:"componentWillReceiveProps",value:function(e){this.setState({room:e._room})}},{key:"componentWillUnmount",value:function(){this._clearTimeouts()}},{key:"_animateRoomnameChanging",value:function(e){var o=this,t=null,a=this.state.roomPlaceholder+e.substr(0,1);e.length>1&&(t=setTimeout(function(){o._animateRoomnameChanging(e.substring(1,e.length))},70)),this.setState({animateTimeoutId:t,roomPlaceholder:a})}},{key:"_clearTimeouts",value:function(){clearTimeout(this.state.animateTimeoutId),clearTimeout(this.state.updateTimeoutId)}},{key:"_isJoinDisabled",value:function(){return!(0,l.isRoomValid)(this.state.room)}},{key:"_onJoin",value:function(){var e=this.state.room||this.state.generatedRoomname;e&&this.props.dispatch((0,s.appNavigate)(e))}},{key:"_onRoomChange",value:function(e){this.setState({room:e})}},{key:"_renderLocalVideo",value:function(){return r.default.createElement(m.VideoTrack,{videoTrack:this.props._localVideoTrack})}},{key:"_updateRoomname",value:function(){var e=this,o=(0,c.generateRoomWithoutSeparator)(),t=setTimeout(this._updateRoomname,1e4);this._clearTimeouts(),this.setState({generatedRoomname:o,roomPlaceholder:"",updateTimeoutId:t},function(){return e._animateRoomnameChanging(o)})}}]),o}(i.Component)).propTypes={_localVideoTrack:r.default.PropTypes.object,_room:r.default.PropTypes.string,dispatch:r.default.PropTypes.func}},982);
__d(function(e,l,i,a){function s(){for(var e=(0,o.randomElement)(c);r(e);)for(var l in g){var i=(0,o.randomElement)(g[l]);e=e.replace(l,i)}return e}function r(e){for(var l in g)if(e.indexOf(l)>=0)return!0;return!1}Object.defineProperty(a,"__esModule",{value:!0}),a.generateRoomWithoutSeparator=s;var o=l(491),n=["Aliens","Animals","Antelopes","Ants","Apes","Apples","Baboons","Bacteria","Badgers","Bananas","Bats","Bears","Birds","Bonobos","Brides","Bugs","Bulls","Butterflies","Cheetahs","Cherries","Chicken","Children","Chimps","Clowns","Cows","Creatures","Dinosaurs","Dogs","Dolphins","Donkeys","Dragons","Ducks","Dwarfs","Eagles","Elephants","Elves","Fathers","Fish","Flowers","Frogs","Fruit","Fungi","Galaxies","Geese","Goats","Gorillas","Hedgehogs","Hippos","Horses","Hunters","Insects","Kids","Knights","Lemons","Lemurs","Leopards","LifeForms","Lions","Lizards","Mice","Monkeys","Monsters","Mushrooms","Octopodes","Oranges","Orangutans","Organisms","Pants","Parrots","Penguins","People","Pigeons","Pigs","Pineapples","Plants","Potatoes","Priests","Rats","Reptiles","Reptilians","Rhinos","Seagulls","Sheep","Siblings","Snakes","Spaghetti","Spiders","Squid","Squirrels","Stars","Students","Teachers","Tigers","Tomatoes","Trees","Vampires","Vegetables","Viruses","Vulcans","Weasels","Werewolves","Whales","Witches","Wizards","Wolves","Workers","Worms","Zebras"],t=["Abandon","Adapt","Advertise","Answer","Anticipate","Appreciate","Approach","Argue","Ask","Bite","Blossom","Blush","Breathe","Breed","Bribe","Burn","Calculate","Clean","Code","Communicate","Compute","Confess","Confiscate","Conjugate","Conjure","Consume","Contemplate","Crawl","Dance","Delegate","Devour","Develop","Differ","Discuss","Dissolve","Drink","Eat","Elaborate","Emancipate","Estimate","Expire","Extinguish","Extract","Facilitate","Fall","Feed","Finish","Floss","Fly","Follow","Fragment","Freeze","Gather","Glow","Grow","Hex","Hide","Hug","Hurry","Improve","Intersect","Investigate","Jinx","Joke","Jubilate","Kiss","Laugh","Manage","Meet","Merge","Move","Object","Observe","Offer","Paint","Participate","Party","Perform","Plan","Pursue","Pierce","Play","Postpone","Pray","Proclaim","Question","Read","Reckon","Rejoice","Represent","Resize","Rhyme","Scream","Search","Select","Share","Shoot","Shout","Signal","Sing","Skate","Sleep","Smile","Smoke","Solve","Spell","Steer","Stink","Substitute","Swim","Taste","Teach","Terminate","Think","Type","Unite","Vanish","Worship"],y=["Absently","Accurately","Accusingly","Adorably","AllTheTime","Alone","Always","Amazingly","Angrily","Anxiously","Anywhere","Appallingly","Apparently","Articulately","Astonishingly","Badly","Barely","Beautifully","Blindly","Bravely","Brightly","Briskly","Brutally","Calmly","Carefully","Casually","Cautiously","Cleverly","Constantly","Correctly","Crazily","Curiously","Cynically","Daily","Dangerously","Deliberately","Delicately","Desperately","Discreetly","Eagerly","Easily","Euphoricly","Evenly","Everywhere","Exactly","Expectantly","Extensively","Ferociously","Fiercely","Finely","Flatly","Frequently","Frighteningly","Gently","Gloriously","Grimly","Guiltily","Happily","Hard","Hastily","Heroically","High","Highly","Hourly","Humbly","Hysterically","Immensely","Impartially","Impolitely","Indifferently","Intensely","Jealously","Jovially","Kindly","Lazily","Lightly","Loudly","Lovingly","Loyally","Magnificently","Malevolently","Merrily","Mightily","Miserably","Mysteriously","NOT","Nervously","Nicely","Nowhere","Objectively","Obnoxiously","Obsessively","Obviously","Often","Painfully","Patiently","Playfully","Politely","Poorly","Precisely","Promptly","Quickly","Quietly","Randomly","Rapidly","Rarely","Recklessly","Regularly","Remorsefully","Responsibly","Rudely","Ruthlessly","Sadly","Scornfully","Seamlessly","Seldom","Selfishly","Seriously","Shakily","Sharply","Sideways","Silently","Sleepily","Slightly","Slowly","Slyly","Smoothly","Softly","Solemnly","Steadily","Sternly","Strangely","Strongly","Stunningly","Surely","Tenderly","Thoughtfully","Tightly","Uneasily","Vanishingly","Violently","Warmly","Weakly","Wearily","Weekly","Weirdly","Well","Well","Wickedly","Wildly","Wisely","Wonderfully","Yearly"],u=["Abominable","Accurate","Adorable","All","Alleged","Ancient","Angry","Anxious","Appalling","Apparent","Astonishing","Attractive","Awesome","Baby","Bad","Beautiful","Benign","Big","Bitter","Blind","Blue","Bold","Brave","Bright","Brisk","Calm","Camouflaged","Casual","Cautious","Choppy","Chosen","Clever","Cold","Cool","Crawly","Crazy","Creepy","Cruel","Curious","Cynical","Dangerous","Dark","Delicate","Desperate","Difficult","Discreet","Disguised","Dizzy","Dumb","Eager","Easy","Edgy","Electric","Elegant","Emancipated","Enormous","Euphoric","Evil","Fast","Ferocious","Fierce","Fine","Flawed","Flying","Foolish","Foxy","Freezing","Funny","Furious","Gentle","Glorious","Golden","Good","Green","Green","Guilty","Hairy","Happy","Hard","Hasty","Hazy","Heroic","Hostile","Hot","Humble","Humongous","Humorous","Hysterical","Idealistic","Ignorant","Immense","Impartial","Impolite","Indifferent","Infuriated","Insightful","Intense","Interesting","Intimidated","Intriguing","Jealous","Jolly","Jovial","Jumpy","Kind","Laughing","Lazy","Liquid","Lonely","Longing","Loud","Loving","Loyal","Macabre","Mad","Magical","Magnificent","Malevolent","Medieval","Memorable","Mere","Merry","Mighty","Mischievous","Miserable","Modified","Moody","Most","Mysterious","Mystical","Needy","Nervous","Nice","Objective","Obnoxious","Obsessive","Obvious","Opinionated","Orange","Painful","Passionate","Perfect","Pink","Playful","Poisonous","Polite","Poor","Popular","Powerful","Precise","Preserved","Pretty","Purple","Quick","Quiet","Random","Rapid","Rare","Real","Reassuring","Reckless","Red","Regular","Remorseful","Responsible","Rich","Rude","Ruthless","Sad","Scared","Scary","Scornful","Screaming","Selfish","Serious","Shady","Shaky","Sharp","Shiny","Shy","Simple","Sleepy","Slow","Sly","Small","Smart","Smelly","Smiling","Smooth","Smug","Sober","Soft","Solemn","Square","Square","Steady","Strange","Strong","Stunning","Subjective","Successful","Surly","Sweet","Tactful","Tense","Thoughtful","Tight","Tiny","Tolerant","Uneasy","Unique","Unseen","Warm","Weak","Weird","WellCooked","Wild","Wise","Witty","Wonderful","Worried","Yellow","Young","Zealous"],g={_ADJECTIVE_:u,_ADVERB_:y,_PLURALNOUN_:n,_VERB_:t},c=["_ADJECTIVE__PLURALNOUN__VERB__ADVERB_"]},983);
__d(function(e,o,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n=o(549),l=n.ColorPalette.white;r.default=(0,n.createStyleSheet)({button:{backgroundColor:n.ColorPalette.white,borderColor:n.ColorPalette.white,borderRadius:8,borderWidth:1,height:45,justifyContent:"center",marginBottom:n.BoxModel.margin,marginTop:n.BoxModel.margin},buttonText:{alignSelf:"center",color:"#00ccff",fontSize:18},container:(0,n.fixAndroidViewClipping)({alignSelf:"stretch",backgroundColor:n.ColorPalette.blue,flex:1}),legaleseContainer:{alignItems:"center",flex:0,flexDirection:"row",justifyContent:"center"},legaleseItem:{color:l,fontSize:12,margin:n.BoxModel.margin},localVideoOverlay:{backgroundColor:"transparent",bottom:0,flex:1,flexDirection:"column",left:0,position:"absolute",right:0,top:0},roomContainer:{flex:1,flexDirection:"column",justifyContent:"center",margin:3*n.BoxModel.margin},textInput:{backgroundColor:"transparent",borderColor:n.ColorPalette.white,borderRadius:8,borderWidth:1,color:l,fontSize:23,height:50,padding:4,textAlign:"center"},title:{color:l,fontSize:25,marginBottom:2*n.BoxModel.margin,textAlign:"center"}})},984);
__d(function(e,o,t,n){function a(e,o){if(!("object"!=typeof APP||config.enableWelcomePage&&APP.settings.isWelcomePageEnabled())){o("/"+(0,g.generateRoomWithoutSeparator)())}}var i=o(538),c=o(980),g=o(983);i.RouteRegistry.register({component:c.WelcomePage,onEnter:a,path:"/"})},985);
__d(function(t,e,r,n){function a(t,e,r){var n=e(r),a=window,o=a.history,u=a.location;if(o&&u&&o.length&&"function"==typeof o.replaceState){var c=(0,s.getURLWithoutParams)(u);u!==c&&o.replaceState(o.state,document&&document.title||"",c)}return n}function o(t){var e=t.dispatch,r=t.getState,n=r(),a=n["features/app"],o=a.app,u=a.getRouteToRender,c=u&&u(n);return"ReactNative"===navigator.product&&(void 0===c||null===c?o.props.welcomePageEnabled||e((0,p.destroyLocalTracks)()):n["features/base/tracks"].some(function(t){return t.local})||e((0,p.createInitialLocalTracks)())),o._navigate(c)}function u(t,e,r){return(0,t.getState)()["features/app"].app._navigate(void 0).then(function(){return e(r)})}function c(t,e,r){var n=e(r);return o(t),n}var i=e(394),s=e(610),f=e(467),p=e(592);f.MiddlewareRegistry.register(function(t){return function(e){return function(r){switch(r.type){case s.CONNECTION_ESTABLISHED:return a(t,e,r);case s.SET_LOCATION_URL:return u(t,e,r);case i.SET_ROOM:return c(t,e,r)}return e(r)}}})},986);
__d(function(e,r,t,a){var p=r(394),n=r(610),s=r(467),u=r(671),o=r(693);s.ReducerRegistry.register("features/app",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments[1];switch(r.type){case u.APP_WILL_MOUNT:var t=r.app;if(e.app!==t)return babelHelpers.extends({},e,{app:t});break;case u.APP_WILL_UNMOUNT:if(e.app===r.app)return babelHelpers.extends({},e,{app:void 0});break;case n.SET_LOCATION_URL:return(0,s.set)(e,"getRouteToRender",void 0);case p.SET_ROOM:return(0,s.set)(e,"getRouteToRender",o._getRouteToRender)}return e})},987);
;require(225);
;require(0);