diff --git a/CHANGELOG.md b/CHANGELOG.md index d9b11ce..03bbfec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## [2.1.0] - 2022-05-20 +### Added +- Support for us region +### Fixed +- npm package + ## [2.0.0] - 2022-05-13 ### Added - Snackbar for recording state diff --git a/README.md b/README.md index 87441af..6f5cc41 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ type="text/javascript" >` - @@ -42,8 +42,8 @@ The script attaches in the window object the global variable **BandyerSDK** from #### Versions -The latest version is: 2.0.0 -[https://cdn.bandyer.com/sdk/js/chat/2.0.0/bandyer-widget.min.js](https://cdn.bandyer.com/sdk/js/chat/2.0.0/bandyer-widget.min.js) +The latest version is: 2.1.0 +[https://cdn.bandyer.com/sdk/js/chat/2.1.0/bandyer-widget.min.js](https://cdn.bandyer.com/sdk/js/chat/2.1.0/bandyer-widget.min.js) > if you're upgrading from v1.x.x you can find the migration guide [here](#migration) @@ -100,7 +100,7 @@ The configuration of a new BandyerSDK instance is made by calling the `BandyerSD | Parameter | Required | Default | Description | |----------------------|:--------:|:----------------------:|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| region | yes | | Region on witch your account belongs. Allowed parameters are `eu` or `in` | +| region | yes | | Region on witch your account belongs. Allowed parameters are `eu`, `in` or `us` | | environment | yes | | Allowed values are: `sandbox` or `production` | | appId | yes | | A valid appId associated to your account | | hidden | no | false | Configure the widget to start in hidden mode (not visible in the HTML) | diff --git a/bandyer-widget.min.js b/bandyer-widget.min.js index 0435a73..9e1cfea 100644 --- a/bandyer-widget.min.js +++ b/bandyer-widget.min.js @@ -1,4 +1,4 @@ -/*! BANDYER WIDGET version: 2.0.0 */ +/*! BANDYER WIDGET version: 2.1.0 */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("BandyerSDK",[],t):"object"==typeof exports?exports.BandyerSDK=t():e.BandyerSDK=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=498)}([function(e,t,n){e.exports=n(500)},function(e,t,n){e.exports=n(520)},function(e,t,n){"use strict";e.exports=n(718)},function(e,t,n){e.exports=n(518)},function(e,t,n){e.exports=n(661)},function(e,t,n){e.exports=n(606)},function(e,t,n){e.exports=n(578)()},function(e,t,n){"use strict";n(0)(t,"__esModule",{value:!0}),t.default=a;var r,o=(r=n(51))&&r.__esModule?r:{default:r};function a(){return t.default=a=o.default||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(u[n]=e[n])}return u};var r=i(n(65)),o=i(n(16)),a=i(n(109));function i(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";n(0)(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(7)),o=n(79),a=i(n(180));function i(e){return e&&e.__esModule?e:{default:e}}var u=function(e,t){return(0,o.withStyles)(e,(0,r.default)({defaultTheme:a.default},t))};t.default=u},function(e,t,n){"use strict";n(0)(t,"__esModule",{value:!0}),t.default=function(){var e,t,n=0,r="";for(;n>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?Z(e)+t:t}function te(){return!0}function ne(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function re(e,t){return ae(e,t,0)}function oe(e,t){return ae(e,t,t)}function ae(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var ie,ue,le,se="function"==typeof l&&s,ce=se||"@@iterator";function fe(e){this.next=e}function de(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function pe(){return{value:void 0,done:!0}}function he(e){return!!ye(e)}function me(e){return e&&"function"==typeof e.next}function ve(e){var t=ye(e);return t&&t.call(e)}function ye(e){var t=e&&(se&&e[se]||e["@@iterator"]);if("function"==typeof t)return t}function _e(e){return e&&"number"==typeof e.length}function ge(e){return null==e?Me():B(e)?e.toSeq():function(e){var t=Ie(e)||"object"===P(e)&&new Se(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function be(e){return null==e?Me().toKeyedSeq():B(e)?U(e)?e.toSeq():e.fromEntrySeq():Ae(e)}function Ee(e){return null==e?Me():B(e)?U(e)?e.entrySeq():e.toIndexedSeq():Ne(e)}function we(e){return(null==e?Me():B(e)?U(e)?e.entrySeq():e:Ne(e)).toSetSeq()}function Ce(e){this._array=e,this.size=e.length}function Se(e){var t=c(e);this._object=e,this._keys=t,this.size=t.length}function Oe(e){this._iterable=e,this.size=e.length||e.size}function Te(e){this._iterator=e,this._iteratorCache=[]}function Re(e){return!(!e||!e["@@__IMMUTABLE_SEQ__@@"])}function Me(){return ie||(ie=new Ce([]))}function Ae(e){var t=f(e)?new Ce(e).fromEntrySeq():me(e)?new Te(e).fromEntrySeq():he(e)?new Oe(e).fromEntrySeq():"object"===P(e)?new Se(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function Ne(e){var t=Ie(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function Ie(e){return _e(e)?new Ce(e):me(e)?new Te(e):he(e)?new Oe(e):void 0}function ke(e,t,n,r){var o=e._cache;if(o){for(var a=o.length-1,i=0;i<=a;i++){var u=o[n?a-i:i];if(!1===t(u[1],r?u[0]:i,e))return i+1}return i}return e.__iterateUncached(t,n)}function De(e,t,n,r){var o=e._cache;if(o){var a=o.length-1,i=0;return new fe((function(){var e=o[n?a-i:i];return i++>a?{value:void 0,done:!0}:de(t,r?e[0]:i-1,e[1])}))}return e.__iteratorUncached(t,n)}function Le(e,t){return t?function e(t,n,r,o){var a,i;return f(n)?t.call(o,r,d(a=Ee(n)).call(a,(function(r,o){return e(t,r,o,n)}))):Pe(n)?t.call(o,r,d(i=be(n)).call(i,(function(r,o){return e(t,r,o,n)}))):n}(t,e,"",{"":e}):xe(e)}function xe(e){var t,n;return f(e)?d(t=Ee(e)).call(t,xe).toList():Pe(e)?d(n=be(e)).call(n,xe).toMap():e}function Pe(e){return e&&(e.constructor===Object||void 0===e.constructor)}function Be(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function Ue(e,t){if(e===t)return!0;if(!B(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||U(e)!==U(t)||F(e)!==F(t)||V(e)!==V(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!j(e);if(V(e)){var r=p(e).call(e);return h(t).call(t,(function(e,t){var o=r.next().value;return o&&Be(o[1],e)&&(n||Be(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var a=e;e=t,t=a}var i=!0,u=t.__iterate((function(t,r){if(n?!e.has(t):o?!Be(t,e.get(r,Y)):!Be(e.get(r,Y),t))return i=!1,!1}));return i&&e.size===u}function Fe(e,t){if(!(this instanceof Fe))return new Fe(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(ue)return ue;ue=this}}function je(e,t){if(!e)throw new Error(t)}function Ve(e,t,n){if(!(this instanceof Ve))return new Ve(e,t,n);if(je(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),tr?{value:void 0,done:!0}:de(e,o,n[t?r-o++:o++])}))},t(Se,be),Se.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},Se.prototype.has=function(e){return this._object.hasOwnProperty(e)},Se.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,a=0;a<=o;a++){var i=r[t?o-a:a];if(!1===e(n[i],i,this))return a+1}return a},Se.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,a=0;return new fe((function(){var i=r[t?o-a:a];return a++>o?{value:void 0,done:!0}:de(e,i,n[i])}))},Se.prototype[H]=!0,t(Oe,Ee),Oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=ve(this._iterable),r=0;if(me(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},Oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=ve(this._iterable);if(!me(n))return new fe(pe);var r=0;return new fe((function(){var t=n.next();return t.done?t:de(e,r++,t.value)}))},t(Te,Ee),Te.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,a=0;a=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return de(e,o,r[o++])}))},t(Fe,Ee),Fe.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Fe.prototype.get=function(e,t){return this.has(e)?this._value:t},Fe.prototype.includes=function(e){return Be(this._value,e)},Fe.prototype.slice=function(e,t){var n=this.size;return ne(e,t,n)?this:new Fe(this._value,oe(t,n)-re(e,n))},Fe.prototype.reverse=function(){return this},Fe.prototype.indexOf=function(e){return Be(this._value,e)?0:-1},Fe.prototype.lastIndexOf=function(e){return Be(this._value,e)?this.size:-1},Fe.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?{value:void 0,done:!0}:de(e,a++,i)}))},Ve.prototype.equals=function(e){return e instanceof Ve?this._start===e._start&&this._end===e._end&&this._step===e._step:Ue(this,e)},t(Ge,n),t(ze,Ge),t(We,Ge),t(He,Ge),Ge.Keyed=ze,Ge.Indexed=We,Ge.Set=He;var Ye="function"==typeof v&&-2===v(4294967295,2)?v:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Ke(e){return e>>>1&1073741824|3221225471&e}function qe(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=P(e);if("number"===t){if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ke(n)}if("string"===t)return e.length>nt?function(e){var t=at[e];return void 0===t&&(t=$e(e),ot===rt&&(ot=0,at={}),ot++,at[e]=t),t}(e):$e(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Ze&&void 0!==(t=Je.get(e)))return t;if(void 0!==(t=e[tt]))return t;if(!Qe){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[tt]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++et,1073741824&et&&(et=0),Ze)Je.set(e,t);else{if(void 0!==Xe&&!1===Xe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Qe)y(e,tt,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[tt]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[tt]=t}}return t}(e);if("function"==typeof e.toString)return $e(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function $e(e){for(var t=0,n=0;n=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},ut.prototype.toString=function(){return this.__toString("Map {","}")},ut.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},ut.prototype.set=function(e,t){return wt(this,e,t)},ut.prototype.setIn=function(e,t){return this.updateIn(e,Y,(function(){return t}))},ut.prototype.remove=function(e){return wt(this,e,Y)},ut.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return Y}))},ut.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},ut.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,o){var a=t===Y,i=n.next();if(i.done){var u=a?r:t,l=o(u);return l===u?t:l}je(a||t&&t.set,"invalid keyPath");var s=i.value,c=a?Y:t.get(s,Y),f=e(c,n,r,o);return f===c?t:f===Y?t.remove(s):(a?Et():t).set(s,f)}(this,Rn(e),t,n);return r===Y?void 0:r},ut.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Et()},ut.prototype.merge=function(){return Tt(this,void 0,arguments)},ut.prototype.mergeWith=function(t){var n=e.call(arguments,1);return Tt(this,t,n)},ut.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Et(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},ut.prototype.mergeDeep=function(){return Tt(this,Rt,arguments)},ut.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Tt(this,Mt(t),n)},ut.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Et(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},ut.prototype.sort=function(e){return Qt(vn(this,e))},ut.prototype.sortBy=function(e,t){return Qt(vn(this,t,e))},ut.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},ut.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new X)},ut.prototype.asImmutable=function(){return this.__ensureOwner()},ut.prototype.wasAltered=function(){return this.__altered},ut.prototype.__iterator=function(e,t){return new yt(this,e,t)},ut.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},ut.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?bt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},ut.isMap=lt;var st,ct="@@__IMMUTABLE_MAP__@@",ft=ut.prototype;function dt(e,t){this.ownerID=e,this.entries=t}function pt(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function ht(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function mt(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function vt(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function yt(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&>(e._root)}function _t(e,t){return de(e,t[0],t[1])}function gt(e,t){return{node:e,index:0,__prev:t}}function bt(e,t,n,r){var o=u(ft);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Et(){return st||(st=bt(0))}function wt(e,t,n){var r,o;if(e._root){var a=$(K),i=$(q);if(r=Ct(e._root,e.__ownerID,0,void 0,t,n,a,i),!i.value)return e;o=e.size+(a.value?n===Y?-1:1:0)}else{if(n===Y)return e;o=1,r=new dt(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?bt(o,r):Et()}function Ct(e,t,n,r,o,a,i,u){return e?e.update(t,n,r,o,a,i,u):a===Y?e:(J(u),J(i),new vt(t,r,[o,a]))}function St(e){return e.constructor===vt||e.constructor===mt}function Ot(e,t,n,r,o){if(e.keyHash===r)return new mt(t,r,[e.entry,o]);var a,i=31&(0===n?e.keyHash:e.keyHash>>>n),u=31&(0===n?r:r>>>n);return new pt(t,1<>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function It(e,t,n,r){var o=r?e:Q(e);return o[t]=n,o}ft[ct]=!0,ft.delete=ft.remove,ft.removeIn=ft.deleteIn,dt.prototype.get=function(e,t,n,r){for(var o=p(this),a=0,i=o.length;a=kt)return function(e,t,n,r){e||(e=new X);for(var o=new vt(e,qe(n),[n,r]),a=0;a>>e)),a=this.bitmap;return 0==(a&o)?r:this.nodes[Nt(a&o-1)].get(e+5,t,n,r)},pt.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=qe(r));var u=31&(0===t?n:n>>>t),l=1<=Dt)return function(e,t,n,r,o){for(var a=0,i=new Array(32),u=0;0!==n;u++,n>>>=1)i[u]=1&n?t[a++]:void 0;return i[r]=o,new ht(e,a+1,i)}(e,d,s,u,h);if(c&&!h&&2===d.length&&St(d[1^f]))return d[1^f];if(c&&h&&1===d.length&&St(h))return h;var m=e&&e===this.ownerID,v=c?h?s:s^l:s|l,y=c?h?It(d,f,h,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),a=0,i=0;i>>e),a=this.nodes[o];return a?a.get(e+5,t,n,r):r},ht.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=qe(r));var u=31&(0===t?n:n>>>t),l=o===Y,s=this.nodes,c=s[u];if(l&&!c)return this;var f=Ct(c,e,t+5,n,r,o,a,i);if(f===c)return this;var d=this.count;if(c){if(!f&&--d0&&r<32?Wt(0,r,5,null,new Ft(n.toArray())):t.withMutations((function(e){e.setSize(r),b(n).call(n,(function(t,n){return e.set(n,t)}))})))}function Pt(e){return!(!e||!e[Bt])}t(xt,We),xt.of=function(){return this(arguments)},xt.prototype.toString=function(){return this.__toString("List [","]")},xt.prototype.get=function(e,t){if((e=ee(this,e))>=0&&e=e.size||t<0)return e.withMutations((function(e){t<0?$t(e,t).set(0,n):$t(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,a=$(q);return t>=Xt(e._capacity)?r=Yt(r,e.__ownerID,0,t,n,a):o=Yt(o,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Wt(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},xt.prototype.remove=function(e){var t;return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():w(t=this).call(t,e,1):this},xt.prototype.insert=function(e,t){var n;return w(n=this).call(n,e,0,t)},xt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Ht()},xt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){$t(n,0,t+e.length);for(var r=0;r>>t&31;if(r>=this.array.length)return new Ft([],e);var o,a=0===r;if(t>0){var i=this.array[r];if((o=i&&i.removeBefore(e,t-5,n))===i&&a)return this}if(a&&!o)return this;var u=Kt(this,e);if(!a)for(var l=0;l>>t&31;if(a>=this.array.length)return this;if(t>0){var i=this.array[a];if((o=i&&i.removeAfter(e,t-5,n))===i&&a===this.array.length-1)return this}var u=Kt(this,e);return w(r=u.array).call(r,a+1),o&&(u.array[a]=o),u};var jt,Vt,Gt={};function zt(e,t){var n=e._origin,r=e._capacity,o=Xt(r),a=e._tail;return i(e._root,e._level,0);function i(e,u,l){return 0===u?function(e,i){var u=i===o?a&&a.array:e&&e.array,l=i>n?0:n-i,s=r-i;return s>32&&(s=32),function(){if(l===s)return Gt;var e=t?--s:l++;return u&&u[e]}}(e,l):function(e,o,a){var u,l=e&&e.array,s=a>n?0:n-a>>o,c=1+(r-a>>o);return c>32&&(c=32),function(){for(;;){if(u){var e=u();if(e!==Gt)return e;u=null}if(s===c)return Gt;var n=t?--c:s++;u=i(l&&l[n],o-5,a+(n<>>n&31,l=e&&u0){var s=e&&e.array[u],c=Yt(s,t,n-5,r,o,a);return c===s?e:((i=Kt(e,t)).array[u]=c,i)}return l&&e.array[u]===o?e:(J(a),i=Kt(e,t),void 0===o&&u===i.array.length-1?i.array.pop():i.array[u]=o,i)}function Kt(e,t){var n;return t&&e&&t===e.ownerID?e:new Ft(e?i(n=e.array).call(n):[],t)}function qt(e,t){if(t>=Xt(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&31],r-=5;return n}}function $t(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new X,o=e._origin,a=e._capacity,i=o+t,u=void 0===n?a:n<0?a+n:o+n;if(i===o&&u===a)return e;if(i>=u)return e.clear();for(var l=e._level,s=e._root,c=0;i+c<0;)s=new Ft(s&&s.array.length?[void 0,s]:[],r),c+=1<<(l+=5);c&&(i+=c,o+=c,u+=c,a+=c);for(var f=Xt(a),d=Xt(u);d>=1<f?new Ft([],r):p;if(p&&d>f&&i5;v-=5){var y=f>>>v&31;m=m.array[y]=Kt(m.array[y],r)}m.array[f>>>5&31]=p}if(u=d)i-=d,u-=d,l=5,s=null,h=h&&h.removeBefore(r,0,i);else if(i>o||d>>l&31;if(_!==d>>>l&31)break;_&&(c+=(1<o&&(s=s.removeBefore(r,l,i-c)),s&&da&&(a=l.size),B(u)||(l=d(l).call(l,(function(e){return Le(e)}))),r.push(l)}return a>e.size&&(e=e.setSize(a)),At(e,t,r)}function Xt(e){return e<32?0:e-1>>>5<<5}function Qt(e){return null==e?tn():Zt(e)?e:tn().withMutations((function(t){var n=r(e);it(n.size),b(n).call(n,(function(e,n){return t.set(n,e)}))}))}function Zt(e){return lt(e)&&V(e)}function en(e,t,n,r){var o=u(Qt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function tn(){return Vt||(Vt=en(Et(),Ht()))}function nn(e,t,n){var r,o,a=e._map,i=e._list,u=a.get(t),l=void 0!==u;if(n===Y){if(!l)return e;var s;i.size>=32&&i.size>=2*a.size?(o=E(i).call(i,(function(e,t){return void 0!==e&&u!==t})),r=d(s=o.toKeyedSeq()).call(s,(function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=a.remove(t),o=u===i.size-1?i.pop():i.set(u,void 0))}else if(l){if(n===i.get(u)[1])return e;r=a,o=i.set(u,[t,n])}else r=a.set(t,i.size),o=i.set(i.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):en(r,o)}function rn(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function on(e){this._iter=e,this.size=e.size}function an(e){this._iter=e,this.size=e.size}function un(e){this._iter=e,this.size=e.size}function ln(e){var t=Sn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=C(e).apply(this);return t.flip=function(){return C(e).call(e)},t},t.has=function(t){return S(e).call(e,t)},t.includes=function(t){return e.has(t)},t.cacheResult=On,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new fe((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function sn(e,t,n){var r=Sn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var a=e.get(r,Y);return a===Y?o:t.call(n,a,r,e)},r.__iterateUncached=function(r,o){var a=this;return e.__iterate((function(e,o,i){return!1!==r(t.call(n,e,o,i),o,a)}),o)},r.__iteratorUncached=function(r,o){var a=e.__iterator(2,o);return new fe((function(){var o=a.next();if(o.done)return o;var i=o.value,u=i[0];return de(r,u,t.call(n,i[1],u,e),o)}))},r}function cn(e,t){var n=Sn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=ln(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return S(e).call(e,t)},n.cacheResult=On,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function fn(e,t,n,r){var o=Sn(e);return r&&(o.has=function(r){var o=e.get(r,Y);return o!==Y&&!!t.call(n,o,r,e)},o.get=function(r,o){var a=e.get(r,Y);return a!==Y&&t.call(n,a,r,e)?a:o}),o.__iterateUncached=function(o,a){var i=this,u=0;return e.__iterate((function(e,a,l){if(t.call(n,e,a,l))return u++,o(e,r?a:u-1,i)}),a),u},o.__iteratorUncached=function(o,a){var i=e.__iterator(2,a),u=0;return new fe((function(){for(;;){var a=i.next();if(a.done)return a;var l=a.value,s=l[0],c=l[1];if(t.call(n,c,s,e))return de(o,r?s:u++,c,a)}}))},o}function dn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=o:n|=0),ne(t,n,o))return e;var a=re(t,o),i=oe(n,o);if(a!=a||i!=i)return dn(e.toSeq().cacheResult(),t,n,r);var u,l=i-a;l==l&&(u=l<0?0:l);var s=Sn(e);return s.size=0===u?u:e.size&&u||void 0,!r&&Re(e)&&u>=0&&(s.get=function(t,n){return(t=ee(this,t))>=0&&tu)return{value:void 0,done:!0};var e=o.next();return r||1===t?e:de(t,l-1,0===t?void 0:e.value[1],e)}))},s}function pn(e,t,n,r){var o=Sn(e);return o.__iterateUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterate(o,a);var u=!0,l=0;return e.__iterate((function(e,a,s){if(!u||!(u=t.call(n,e,a,s)))return l++,o(e,r?a:l-1,i)})),l},o.__iteratorUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterator(o,a);var u=e.__iterator(2,a),l=!0,s=0;return new fe((function(){var e,a,c;do{if((e=u.next()).done)return r||1===o?e:de(o,s++,0===o?void 0:e.value[1],e);var f=e.value;a=f[0],c=f[1],l&&(l=t.call(n,c,a,i))}while(l);return 2===o?e:de(o,a,c,e)}))},o}function hn(e,t){var n,o,a,i=U(e),u=E(n=d(o=O(a=[e]).call(a,t)).call(o,(function(e){return B(e)?i&&(e=r(e)):e=i?Ae(e):Ne(f(e)?e:[e]),e}))).call(n,(function(e){return 0!==e.size}));if(0===u.length)return e;if(1===u.length){var l=u[0];if(l===e||i&&U(l)||F(e)&&F(l))return l}var s=new Ce(u);return i?s=s.toKeyedSeq():F(e)||(s=s.toSetSeq()),(s=s.flatten(!0)).size=T(u).call(u,(function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),s}function mn(e,t,n){var r=Sn(e);return r.__iterateUncached=function(r,o){var a=0,i=!1;return function e(u,l){var s=this;u.__iterate((function(o,u){return(!t||l0}function gn(e,t,r){var o,a=Sn(e);return a.size=d(o=new Ce(r)).call(o,(function(e){return e.size})).min(),a.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},a.__iteratorUncached=function(e,o){var a=d(r).call(r,(function(e){return e=n(e),ve(o?C(e).call(e):e)})),i=0,u=!1;return new fe((function(){var n;return u||(n=d(a).call(a,(function(e){return e.next()})),u=M(n).call(n,(function(e){return e.done}))),u?{value:void 0,done:!0}:de(e,i++,t.apply(null,d(n).call(n,(function(e){return e.value}))))}))},a}function bn(e,t){return Re(e)?t:e.constructor(t)}function En(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function wn(e){return it(e.size),Z(e)}function Cn(e){return U(e)?r:F(e)?o:a}function Sn(e){return u((U(e)?be:F(e)?Ee:we).prototype)}function On(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):ge.prototype.cacheResult.call(this)}function Tn(e,t){return e>t?1:e=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Qn(e,t)},Kn.prototype.pushAll=function(e){var t;if(0===(e=o(e)).size)return this;it(e.size);var n=this.size,r=this._head;return b(t=C(e).call(e)).call(t,(function(e){n++,r={value:e,next:r}})),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):Qn(n,r)},Kn.prototype.pop=function(){var e;return i(e=this).call(e,1)},Kn.prototype.unshift=function(){return this.push.apply(this,arguments)},Kn.prototype.unshiftAll=function(e){return this.pushAll(e)},Kn.prototype.shift=function(){return this.pop.apply(this,arguments)},Kn.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):Zn()},Kn.prototype.slice=function(e,t){if(ne(e,t,this.size))return this;var n=re(e,this.size);if(oe(t,this.size)!==this.size)return i(We.prototype).call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Qn(r,o)},Kn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Qn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Kn.prototype.__iterate=function(e,t){var n;if(t)return C(n=this).call(n).__iterate(e);for(var r=0,o=this._head;o&&!1!==e(o.value,r++,this);)o=o.next;return r},Kn.prototype.__iterator=function(e,t){var n;if(t)return C(n=this).call(n).__iterator(e);var r=0,o=this._head;return new fe((function(){if(o){var t=o.value;return o=o.next,de(e,r++,t)}return{value:void 0,done:!0}}))},Kn.isStack=qn;var $n,Jn="@@__IMMUTABLE_STACK__@@",Xn=Kn.prototype;function Qn(e,t,n,r){var o=u(Xn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Zn(){return $n||($n=Qn(0))}function er(e,t){var n,r,o=function(n){e.prototype[n]=t[n]};return b(n=c(t)).call(n,o),I&&b(r=I(t)).call(r,o),e}Xn[Jn]=!0,Xn.withMutations=ft.withMutations,Xn.asMutable=ft.asMutable,Xn.asImmutable=ft.asImmutable,Xn.wasAltered=ft.wasAltered,n.Iterator=fe,er(n,{toArray:function(){it(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new on(this)},toJS:function(){var e;return d(e=this.toSeq()).call(e,(function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){var e;return d(e=this.toSeq()).call(e,(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new rn(this,!0)},toMap:function(){return ut(this.toKeyedSeq())},toObject:function(){it(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Qt(this.toKeyedSeq())},toOrderedSet:function(){return Vn(U(this)?this.valueSeq():this)},toSet:function(){return Dn(U(this)?this.valueSeq():this)},toSetSeq:function(){return new an(this)},toSeq:function(){return F(this)?this.toIndexedSeq():U(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Kn(U(this)?this.valueSeq():this)},toList:function(){return xt(U(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){var n;return 0===this.size?e+t:e+" "+d(n=this.toSeq()).call(n,this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return bn(this,hn(this,t))},includes:function(e){var t;return M(t=this).call(t,(function(t){return Be(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){it(this.size);var n=!0;return this.__iterate((function(r,o,a){if(!e.call(t,r,o,a))return n=!1,!1})),n},filter:function(e,t){return bn(this,fn(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return it(this.size),this.__iterate(t?N(e).call(e,t):e)},join:function(e){it(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return bn(this,sn(this,e,t))},reduce:function(e,t,n){var r,o;return it(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,a,i){o?(o=!1,r=t):r=e.call(n,r,t,a,i)})),r},reduceRight:function(e,t,n){var r,o=C(r=this.toKeyedSeq()).call(r);return T(o).apply(o,arguments)},reverse:function(){return bn(this,cn(this,!0))},slice:function(e,t){return bn(this,dn(this,e,t,!0))},some:function(e,t){var n;return!h(n=this).call(n,ar(e),t)},sort:function(e){return bn(this,vn(this,e))},values:function(){return this.__iterator(1)},butLast:function(){var e;return i(e=this).call(e,0,-1)},isEmpty:function(){var e;return void 0!==this.size?0===this.size:!M(e=this).call(e,(function(){return!0}))},count:function(e,t){var n;return Z(e?E(n=this.toSeq()).call(n,e,t):this)},countBy:function(e,t){return function(e,t,n){var r=ut().asMutable();return e.__iterate((function(o,a){r.update(t.call(n,o,a,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return Ue(this,e)},entrySeq:function(){var e,t=this;if(t._cache)return new Ce(t._cache);var n=d(e=t.toSeq()).call(e,or).toIndexedSeq();return n.fromEntrySeq=function(){return t.toSeq()},n},filterNot:function(e,t){var n;return E(n=this).call(n,ar(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,o,a){if(e.call(t,n,o,a))return r=[o,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){var r,o;return k(r=C(o=this.toKeyedSeq()).call(o)).call(r,e,t,n)},findLastEntry:function(e,t,n){var r;return C(r=this.toKeyedSeq()).call(r).findEntry(e,t,n)},findLastKey:function(e,t){var n;return C(n=this.toKeyedSeq()).call(n).findKey(e,t)},first:function(){var e;return k(e=this).call(e,te)},flatMap:function(e,t){return bn(this,function(e,t,n){var r,o=Cn(e);return d(r=e.toSeq()).call(r,(function(r,a){return o(t.call(n,r,a,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return bn(this,mn(this,e,!0))},fromEntrySeq:function(){return new un(this)},get:function(e,t){var n;return k(n=this).call(n,(function(t,n){return Be(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=Rn(e);!(n=o.next()).done;){var a=n.value;if((r=r&&r.get?r.get(a,Y):Y)===Y)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=U(e),o=(V(e)?Qt():ut()).asMutable();e.__iterate((function(a,i){o.update(t.call(n,a,i,e),(function(e){return(e=e||[]).push(r?[i,a]:a),e}))}));var a=Cn(e);return d(o).call(o,(function(t){return bn(e,a(t))}))}(this,e,t)},has:function(e){return this.get(e,Y)!==Y},hasIn:function(e){return this.getIn(e,Y)!==Y},isSubset:function(e){var t;return e="function"==typeof S(e)?e:n(e),h(t=this).call(t,(function(t){return S(e).call(e,t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return Be(t,e)}))},keySeq:function(){var e;return d(e=this.toSeq()).call(e,rr).toIndexedSeq()},last:function(){var e;return C(e=this.toSeq()).call(e).first()},lastKeyOf:function(e){var t;return C(t=this.toKeyedSeq()).call(t).keyOf(e)},max:function(e){return yn(this,e)},maxBy:function(e,t){return yn(this,t,e)},min:function(e){return yn(this,e?ir(e):sr)},minBy:function(e,t){return yn(this,t?ir(t):sr,e)},rest:function(){var e;return i(e=this).call(e,1)},skip:function(e){var t;return i(t=this).call(t,Math.max(0,e))},skipLast:function(e){var t,n;return bn(this,C(t=C(n=this.toSeq()).call(n).skip(e)).call(t))},skipWhile:function(e,t){return bn(this,pn(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(ar(e),t)},sortBy:function(e,t){return bn(this,vn(this,t,e))},take:function(e){var t;return i(t=this).call(t,0,Math.max(0,e))},takeLast:function(e){var t,n;return bn(this,C(t=C(n=this.toSeq()).call(n).take(e)).call(t))},takeWhile:function(e,t){return bn(this,function(e,t,n){var r=Sn(e);return r.__iterateUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterate(r,o);var i=0;return e.__iterate((function(e,o,u){return t.call(n,e,o,u)&&++i&&r(e,o,a)})),i},r.__iteratorUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterator(r,o);var i=e.__iterator(2,o),u=!0;return new fe((function(){if(!u)return{value:void 0,done:!0};var e=i.next();if(e.done)return e;var o=e.value,l=o[0],s=o[1];return t.call(n,s,l,a)?2===r?e:de(r,l,s,e):(u=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(ar(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=V(e),n=U(e),r=t?1:0;return function(e,t){return t=Ye(t,3432918353),t=Ye(t<<15|t>>>-15,461845907),t=Ye(t<<13|t>>>-13,5),t=Ye((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Ke((t=Ye(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+cr(qe(e),qe(t))|0}:function(e,t){r=r+cr(qe(e),qe(t))|0}:t?function(e){r=31*r+qe(e)|0}:function(e){r=r+qe(e)|0}),r)}(this))}});var tr=n.prototype;tr[G]=!0,tr[ce]=D(tr),tr.__toJS=tr.toArray,tr.__toStringMapper=ur,tr.inspect=tr.toSource=function(){return this.toString()},tr.chain=L(tr),tr.contains=S(tr),er(r,{flip:function(){return bn(this,ln(this))},mapEntries:function(e,t){var n,r=this,o=0;return bn(this,d(n=this.toSeq()).call(n,(function(n,a){return e.call(t,[a,n],o++,r)})).fromEntrySeq())},mapKeys:function(e,t){var n,r=this;return bn(this,d(n=this.toSeq().flip()).call(n,(function(n,o){return e.call(t,n,o,r)})).flip())}});var nr=r.prototype;function rr(e,t){return t}function or(e,t){return[t,e]}function ar(e){return function(){return!e.apply(this,arguments)}}function ir(e){return function(){return-e.apply(this,arguments)}}function ur(e){return"string"==typeof e?x(e):String(e)}function lr(){return Q(arguments)}function sr(e,t){return et?-1:0}function cr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return nr[z]=!0,nr[ce]=p(tr),nr.__toJS=tr.toObject,nr.__toStringMapper=function(e,t){return x(t)+": "+ur(e)},er(o,{toKeyedSeq:function(){return new rn(this,!1)},filter:function(e,t){return bn(this,fn(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return bn(this,cn(this,!1))},slice:function(e,t){return bn(this,dn(this,e,t,!1))},splice:function(e,t){var n,r,o=arguments.length;if(t=Math.max(0|t,0),0===o||2===o&&!t)return this;e=re(e,e<0?this.count():this.size);var a=i(n=this).call(n,0,e);return bn(this,1===o?a:O(a).call(a,Q(arguments,2),i(r=this).call(r,e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return bn(this,mn(this,e,!1))},get:function(e,t){var n;return(e=ee(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:k(n=this).call(n,(function(t,n){return n===e}),void 0,t)},has:function(e){var t;return(e=ee(this,e))>=0&&(void 0!==this.size?this.size===1/0||e1&&void 0!==arguments[1]?arguments[1]:{},n=t.intlPropName,r=void 0===n?"intl":n,o=t.withRef,a=void 0!==o&&o,i=function(t){function n(e,t){K(this,n);var r=Q(this,(n.__proto__||(0,S.default)(n)).call(this,e,t));return Oe(t),r}return X(n,t),q(n,[{key:"getWrappedInstance",value:function(){return(0,U.default)(a,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this._wrappedInstance}},{key:"render",value:function(){var t=this;return P.default.createElement(e,J({},this.props,$({},r,this.context.intl),{ref:a?function(e){return t._wrappedInstance=e}:null}))}}]),n}(P.Component);return i.displayName="InjectIntl("+Ne(e)+")",i.contextTypes={intl:me},i.WrappedComponent=e,(0,B.default)(i,e)},t.defineMessages=function(e){return e},t.FormattedHTMLMessage=t.FormattedMessage=t.FormattedPlural=t.FormattedNumber=t.FormattedRelative=t.FormattedTime=t.FormattedDate=t.IntlProvider=t.intlShape=void 0;var l=V(n(24)),s=V(n(23)),c=V(n(14)),f=V(n(1)),d=V(n(3)),p=V(n(22)),h=V(n(902)),m=V(n(0)),v=V(n(51)),y=V(n(13)),_=V(n(11)),g=V(n(16)),b=V(n(46)),E=V(n(21)),w=V(n(45)),C=V(n(28)),S=V(n(15)),O=V(n(258)),T=V(n(108)),R=V(n(12)),M=V(n(34)),A=V(n(76)),N=V(n(20)),I=V(n(41)),k=V(n(905)),D=V(n(404)),L=V(n(914)),x=V(n(6)),P=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==G(e)&&"function"!=typeof e)return{default:e};var t=j();if(t&&t.has(e))return t.get(e);var n={},r=i&&u;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?u(e,o):null;a&&(a.get||a.set)?i(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(2)),B=V(n(147)),U=V(n(364)),F=V(n(921));function j(){if("function"!=typeof a)return null;var e=new a;return j=function(){return e},e}function V(e){return e&&e.__esModule?e:{default:e}}function G(e){return(G="function"==typeof r&&"symbol"==typeof o?function(e){return typeof e}:function(e){return e&&"function"==typeof r&&e.constructor===r&&e!==r.prototype?"symbol":typeof e})(e)}var z={locale:"en",pluralRuleFunction:function(e,t){var n,r,o=String(e).split("."),a=!o[1],i=Number(o[0])==e,u=i&&(0,l.default)(n=o[0]).call(n,-1),s=i&&(0,l.default)(r=o[0]).call(r,-2);return t?1==u&&11!=s?"one":2==u&&12!=s?"two":3==u&&13!=s?"few":"other":1==e&&a?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr.",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr.",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}}};function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=(0,s.default)(e)?e:[e];(0,c.default)(t).call(t,(function(e){e&&e.locale&&(D.default.__addLocaleData(e),L.default.__addLocaleData(e))}))}function H(e){var t=e&&e.toLowerCase();return!(!D.default.__localeData__[t]||!L.default.__localeData__[t])}var Y="function"==typeof f.default&&"symbol"===G(d.default)?function(e){return G(e)}:function(e){return e&&"function"==typeof f.default&&e.constructor===f.default&&e!==f.default.prototype?"symbol":G(e)},K=(function(){function e(e){this.value=e}function t(t){var n,r;function o(n,r){try{var i=t[n](r),u=i.value;u instanceof e?p.default.resolve(u.value).then((function(e){o("next",e)}),(function(e){o("throw",e)})):a(i.done?"return":"normal",i.value)}catch(e){a("throw",e)}}function a(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?o(n.key,n.arg):r=null}this._invoke=function(e,t){return new p.default((function(a,i){var u={key:e,arg:t,resolve:a,reject:i,next:null};r?r=r.next=u:(n=r=u,o(e,t))}))},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof f.default&&h.default&&(t.prototype[h.default]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),q=function(){function e(e,t){for(var n=0;n":">","<":"<",'"':""","'":"'"},we=/[&><"']/g;function Ce(e){return(""+e).replace(we,(function(e){return Ee[e]}))}function Se(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,w.default)(t).call(t,(function(t,r){return e.hasOwnProperty(r)?t[r]=e[r]:n.hasOwnProperty(r)&&(t[r]=n[r]),t}),{})}function Oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intl;(0,U.default)(t,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function Te(e,t){var n;if(e===t)return!0;if("object"!==(void 0===e?"undefined":Y(e))||null===e||"object"!==(void 0===t?"undefined":Y(t))||null===t)return!1;var r=(0,E.default)(e),o=(0,E.default)(t);if(r.length!==o.length)return!1;for(var a=(0,C.default)(n=Object.prototype.hasOwnProperty).call(n,t),i=0;i3&&void 0!==arguments[3]?arguments[3]:{},l=i.intl,s=void 0===l?{}:l,c=u.intl,f=void 0===c?{}:c;return!Te(t,r)||!Te(n,o)||!(f===s||Te(Se(f,be),Se(s,be)))}function Me(e,t){return"[React Intl] "+e+(t?"\n"+t:"")}function Ae(e){0}function Ne(e){return e.displayName||e.name||"Component"}function Ie(e){return D.default.prototype._resolveLocale(e)}function ke(e){return D.default.prototype._findPluralRuleFunction(e)}var De=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};K(this,e);var r="ordinal"===n.style,o=ke(Ie(t));this.format=function(e){return o(e,r)}},Le=(0,E.default)(ve),xe=(0,E.default)(ye),Pe=(0,E.default)(_e),Be=(0,E.default)(ge),Ue={second:60,minute:60,hour:24,day:30,month:12};function Fe(e){var t=L.default.thresholds;t.second=e.second,t.minute=e.minute,t.hour=e.hour,t.day=e.day,t.month=e.month,t["second-short"]=e["second-short"],t["minute-short"]=e["minute-short"],t["hour-short"]=e["hour-short"],t["day-short"]=e["day-short"],t["month-short"]=e["month-short"]}function je(e,t,n,r){var o=e&&e[t]&&e[t][n];if(o)return o;r(Me("No "+t+" format named: "+n))}function Ve(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.locale,a=e.formats,i=e.messages,u=e.defaultLocale,l=e.defaultFormats,s=n.id,c=n.defaultMessage;(0,U.default)(s,"[React Intl] An `id` must be provided to format a message.");var f=i&&i[s],d=(0,E.default)(r).length>0;if(!d)return f||c||s;var p=void 0,h=e.onError||Ae;if(f)try{var m=t.getMessageFormat(f,o,a);p=m.format(r)}catch(e){h(Me('Error formatting message: "'+s+'" for locale: "'+o+'"'+(c?", using default message as fallback.":""),e))}else(!c||o&&o.toLowerCase()!==u.toLowerCase())&&h(Me('Missing message: "'+s+'" for locale: "'+o+'"'+(c?", using default message as fallback.":"")));if(!p&&c)try{var v=t.getMessageFormat(c,u,l);p=v.format(r)}catch(e){h(Me('Error formatting the default message for: "'+s+'"',e))}return p||h(Me('Cannot format message: "'+s+'", using message '+(f||c?"source":"id")+" as fallback.")),p||f||c||s}var Ge=(0,O.default)({formatDate:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.locale,a=e.formats,i=e.timeZone,u=r.format,l=e.onError||Ae,s=new Date(n),c=J({},i&&{timeZone:i},u&&je(a,"date",u,l)),f=Se(r,Le,c);try{return t.getDateTimeFormat(o,f).format(s)}catch(e){l(Me("Error formatting date.",e))}return String(s)},formatTime:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.locale,a=e.formats,i=e.timeZone,u=r.format,l=e.onError||Ae,s=new Date(n),c=J({},i&&{timeZone:i},u&&je(a,"time",u,l)),f=Se(r,Le,c);f.hour||f.minute||f.second||(f=J({},f,{hour:"numeric",minute:"numeric"}));try{return t.getDateTimeFormat(o,f).format(s)}catch(e){l(Me("Error formatting time.",e))}return String(s)},formatRelative:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.locale,a=e.formats,i=r.format,u=e.onError||Ae,l=new Date(n),s=new Date(r.now),c=i&&je(a,"relative",i,u),f=Se(r,Pe,c),d=J({},L.default.thresholds);Fe(Ue);try{return t.getRelativeFormat(o,f).format(l,{now:isFinite(s)?s:t.now()})}catch(e){u(Me("Error formatting relative time.",e))}finally{Fe(d)}return String(l)},formatNumber:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.locale,a=e.formats,i=r.format,u=e.onError||Ae,l=i&&je(a,"number",i,u),s=Se(r,xe,l);try{return t.getNumberFormat(o,s).format(n)}catch(e){u(Me("Error formatting number.",e))}return String(n)},formatPlural:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.locale,a=Se(r,Be),i=e.onError||Ae;try{return t.getPluralFormat(o,a).format(n)}catch(e){i(Me("Error formatting plural.",e))}return"other"},formatMessage:Ve,formatHTMLMessage:function(e,t,n){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=(0,w.default)(r=(0,E.default)(o)).call(r,(function(e,t){var n=o[t];return e[t]="string"==typeof n?Ce(n):n,e}),{});return Ve(e,t,n,a)}}),ze=(0,E.default)(pe),We=(0,E.default)(he),He={formats:{},messages:{},timeZone:null,textComponent:"span",defaultLocale:"en",defaultFormats:{},onError:Ae},Ye=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};K(this,t);var r=Q(this,(t.__proto__||(0,S.default)(t)).call(this,e,n));(0,U.default)("undefined"!=typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var o=n.intl,a=void 0;a=isFinite(e.initialNow)?Number(e.initialNow):o?o.now():(0,T.default)();var i=o||{},u=i.formatters,l=void 0===u?{getDateTimeFormat:(0,F.default)(Intl.DateTimeFormat),getNumberFormat:(0,F.default)(Intl.NumberFormat),getMessageFormat:(0,F.default)(D.default),getRelativeFormat:(0,F.default)(L.default),getPluralFormat:(0,F.default)(De)}:u;return r.state=J({},l,{now:function(){return r._didDisplay?(0,T.default)():a}}),r}return X(t,e),q(t,[{key:"getConfig",value:function(){var e=this.context.intl,t=Se(this.props,ze,e);for(var n in He)void 0===t[n]&&(t[n]=He[n]);if(!function(e){for(var t=(e||"").split("-");t.length>0;){if(H(t.join("-")))return!0;t.pop()}return!1}(t.locale)){var r=t,o=r.locale,a=r.defaultLocale,i=r.defaultFormats;(0,r.onError)(Me('Missing locale data for locale: "'+o+'". Using default locale: "'+a+'" as fallback.')),t=J({},t,{locale:a,formats:i,messages:He.messages})}return t}},{key:"getBoundFormatFns",value:function(e,t){return(0,w.default)(We).call(We,(function(n,r){var o;return n[r]=(0,C.default)(o=Ge[r]).call(o,null,e,t),n}),{})}},{key:"getChildContext",value:function(){var e=this.getConfig(),t=this.getBoundFormatFns(e,this.state),n=this.state,r=n.now,o=function(e,t){var n={};for(var r in e)(0,g.default)(t).call(t,r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["now"]);return{intl:J({},e,t,{formatters:o,now:r})}}},{key:"shouldComponentUpdate",value:function(){for(var e,t=arguments.length,n=Array(t),r=0;r1?a-1:0),u=1;u0){var g,b=Math.floor(1099511627776*Math.random()).toString(16),w=(t=0,function(){return"ELEMENT-"+b+"-"+(t+=1)});v="@__"+b+"__@",y={},_={},(0,c.default)(g=(0,E.default)(d)).call(g,(function(e){var t=d[e];if((0,P.isValidElement)(t)){var n=w();y[e]=v+n+v,_[n]=t}else y[e]=t}))}var C,S,O=o({id:l,description:s,defaultMessage:f},y||d),T=void 0;_&&(0,E.default)(_).length>0?T=(0,N.default)(C=(0,I.default)(S=O.split(v)).call(S,(function(e){return!!e}))).call(C,(function(e){return _[e]||e})):T=[O];return"function"==typeof m?m.apply(void 0,Z(T)):P.createElement.apply(void 0,(0,R.default)(e=[h,null]).call(e,Z(T)))}}]),t}(P.Component);t.FormattedMessage=Ze,Ze.displayName="FormattedMessage",Ze.contextTypes={intl:me},Ze.defaultProps={values:{}};var et=function(e){function t(e,n){K(this,t);var r=Q(this,(t.__proto__||(0,S.default)(t)).call(this,e,n));return Oe(n),r}return X(t,e),q(t,[{key:"shouldComponentUpdate",value:function(e){var t,n=(0,A.default)(this.props),r=(0,A.default)(e);if(!Te(r,n))return!0;for(var o=J({},e,{values:n}),a=arguments.length,i=Array(a>1?a-1:0),u=1;u=0&&f.splice(t,1)}function y(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return _(t,e.attrs),m(e,t),t}function _(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function g(e,t){var n,r,o,a;if(t.transform&&e.css){if(!(a="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=a}if(t.singleton){var i=c++;n=s||(s=y(t)),r=w.bind(null,n,i,!1),o=w.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",_(t,e.attrs),m(e,t),t}(t),r=S.bind(null,n,t),o=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=y(t),r=C.bind(null,n),o=function(){v(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=i()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=h(e,t);return p(n,t),function(e){for(var r=[],o=0;o0&&i.length>o&&!i.warned){i.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=i.length,u=l,console&&console.warn&&console.warn(u)}return e}function M(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function A(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=d(M).call(M,r);return o.listener=n,r.wrapFn=o,o}function N(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var i=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw i.context=a,i}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)E(u,this,t);else{var l=u.length,s=k(u,l);for(n=0;n=0;a--)if(n[a]===t||n[a].listener===t){i=n[a].listener,o=a;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},C.prototype.listeners=function(e){return N(this,e,!0)},C.prototype.rawListeners=function(e){return N(this,e,!1)},C.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):I.call(e,t)},C.prototype.listenerCount=I,C.prototype.eventNames=function(){return this._eventsCount>0?g(this._events):[]}},function(e,t,n){(function(e){var r,o,a,i=n(3),u=n(51),l=n(172),s=n(98),c=n(699),f=n(24),d=n(21),p=n(20),h=n(83),m=n(16),v=n(52),y=n(12),_=n(14),g=n(108),b=n(86),E=n(41),w=n(1),C=n(134);function S(){return(S=u||function(e){for(var t=1;t=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function _(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(e).length;default:if(r)return J(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return B(this,t,n);case"latin1":case"binary":return U(this,t,n);case"base64":return N(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function E(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function w(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:C(e,t,n,r,o);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof p(Uint8Array.prototype)?o?p(Uint8Array.prototype).call(e,t,n):k(Uint8Array.prototype).call(e,t,n):C(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function C(e,t,n,r,o){var a,i=1,u=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,u/=2,l/=2,n/=2}function s(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){var c=-1;for(a=n;au&&(n=u-l),a=n;a>=0;a--){for(var f=!0,d=0;do&&(r=o):r=o;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var i=0;i>8,o=n%256,a.push(o),a.push(r);return a}(t,e.length-n),e,n,r)}function N(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(h(e).call(e,t,n))}function I(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:s>223?3:s>191?2:1;if(o+f<=n)switch(f){case 1:s<128&&(c=s);break;case 2:128==(192&(a=e[o+1]))&&(l=(31&s)<<6|63&a)>127&&(c=l);break;case 3:a=e[o+1],i=e[o+2],128==(192&a)&&128==(192&i)&&(l=(15&s)<<12|(63&a)<<6|63&i)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[o+1],i=e[o+2],u=e[o+3],128==(192&a)&&128==(192&i)&&128==(192&u)&&(l=(15&s)<<18|(63&a)<<12|(63&i)<<6|63&u)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=f}return function(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);for(var n="",r=0;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(o>>>=0)-(r>>>=0),i=(n>>>=0)-(t>>>=0),u=Math.min(a,i),l=h(d=this).call(d,r,o),s=h(e).call(e,t,n),f=0;fo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return S(this,e,t,n);case"utf8":case"utf-8":return O(this,e,t,n);case"ascii":return T(this,e,t,n);case"latin1":case"binary":return R(this,e,t,n);case"base64":return M(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:h(Array.prototype).call(this._arr||this,0)}};var P=4096;function B(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function G(e,t,n,r,o,a){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function z(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,a=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function W(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,a=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function H(e,t,n,r,o,a){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Y(e,t,n,r,a){return a||H(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function K(e,t,n,r,a){return a||H(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUInt8=function(e,t){return t||V(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||V(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||V(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||V(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||V(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||V(e,t,this.length);for(var r=this[e],o=1,a=0;++a=(o*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||V(e,t,this.length);for(var r=t,o=1,a=this[e+--r];r>0&&(o*=256);)a+=this[e+--r]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return t||V(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||V(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||V(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||V(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||V(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||V(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||V(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||V(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||V(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||G(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,a=0;for(this[t]=255&e;++a=0&&(a*=256);)this[t+o]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):W(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):W(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);G(this,e,t,n,o-1,-o)}var a=0,i=1,u=0;for(this[t]=255&e;++a>0)-u&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);G(this,e,t,n,o-1,-o)}var a=n-1,i=1,u=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===u&&0!==this[t+a+1]&&(u=1),this[t+a]=(e/i>>0)-u&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):z(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):z(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):W(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||G(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):W(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return Y(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return Y(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return K(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return K(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(a<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function X(e){return r.toByteArray(function(e){if((e=function(e){return x(e)?x(e).call(e):e.replace(/^\s+|\s+$/g,"")}(e).replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Q(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(12))},function(e,t,n){var r=n(65);e.exports=function(e){var t=e.xdomain,n=e.xscheme,o=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||r))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!n&&o)return new XDomainRequest}catch(e){}if(!t)try{var a;return new(self[v(a=["Active"]).call(a,"Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},function(e,t,n){var r=n(4),o=n(3);function a(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.forceNode=e.forceNode,this.isReactNative=e.isReactNative,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}e.exports=a,o(a.prototype),a.prototype.onError=function(e,t){var n=new Error(e);return n.type="TransportError",n.description=t,this.emit("error",n),this},a.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},a.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},a.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},a.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},a.prototype.onData=function(e){var t=r.decodePacket(e,this.socket.binaryType);this.onPacket(t)},a.prototype.onPacket=function(e){this.emit("packet",e)},a.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(e,t,n){function r(e){return(r="function"==typeof l&&"symbol"==X(d)?function(e){return X(e)}:function(e){return e&&"function"==typeof l&&e.constructor===l&&e!==l.prototype?"symbol":X(e)})(e)}var o=n(53),a=n(13),i=n(25),u=n(8)("socket.io-client");e.exports=t=c;var s=t.managers={};function c(e,t){"object"===r(e)&&(t=e,e=void 0),t=t||{};var n,a=o(e),l=a.source,c=a.id,f=a.path,d=s[c]&&f in s[c].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||d?(u("ignoring socket cache for %s",l),n=i(l,t)):(s[c]||(u("new io instance for %s",l),s[c]=i(l,t)),n=s[c]),a.query&&!t.query&&(t.query=a.query),n.socket(a.path,t)}t.protocol=a.protocol,t.connect=c,t.Manager=n(25),t.Socket=n(31)},function(e){e.exports=JSON.parse('{"name":"@bandyer/web-core-av","version":"1.19.0","description":"Bandyer web core av module","main":"build/bundle.min.js","types":"dist/types/index.d.ts","bandyerAttributes":{"libraryName":"Bandyer - Core-AV"},"scripts":{"build":"tsc && webpack --config webpack.build.js","build-docs":"typedoc --options ./typedoc.js ./src","build-erizo":"webpack --config webpack.erizo.js","develop":"webpack-dev-server --config webpack.dev.config.js --progress --colors --mode development --host 0.0.0.0","deploy-docs":"npm run build-docs && node tools/gh-pages-publish","test":"jest --config jestconfig.json","format":"prettier --write \\"src/**/*.ts\\" \\"src/**/*.js\\"","lint":"tslint -p tsconfig.json","prepare":"npm run build","size:check":"cat build/bundle.min.js | gzip -9 | wc -c | awk \'{$1=$1/1024; print $1,\\"kB\\";}\'","preversion":"git add .","major":"npm version major -f -m \\"* Update to version %s\\"","minor":"npm version minor -f -m \\"* Update to version %s\\"","patch":"npm version patch -f -m \\"* Update to version %s\\""},"repository":{"type":"git","url":"https://github.com/Bandyer/Bandyer-Web-Core-AV"},"author":"Bandyer s.r.l","keywords":["WebRTC","Bandyer","audiovideo"],"license":"ISC","dependencies":{"@babel/runtime":"^7.1.5","detectrtc":"^1.3.8","loglevel":"^1.6.1","socket.io-client":"2.2.0","stackblur-canvas":"^2.5.0","uuid":"^3.2.1","wasm-check":"^2.0.2","worker-timers":"^7.0.4"},"devDependencies":{"@babel/cli":"^7.6.4","@babel/core":"^7.6.4","@babel/plugin-proposal-class-properties":"^7.5.5","@babel/plugin-syntax-dynamic-import":"^7.0.0","@babel/plugin-transform-async-to-generator":"^7.1.0","@babel/plugin-transform-object-assign":"^7.0.0","@babel/plugin-transform-typescript":"^7.6.3","@babel/polyfill":"^7.6.0","@babel/preset-env":"^7.6.3","@babel/preset-typescript":"^7.6.0","@babel/runtime-corejs2":"^7.6.3","@types/async":"^2.0.49","@types/jest":"^24.0.18","@types/lodash.camelcase":"^4.3.6","@types/loglevel":"^1.5.3","@types/node":"^12.7.8","@types/socket.io-client":"^1.4.32","babel-loader":"^8.0.2","bandyersdkcommon":"git+https://npm_pull:yMjeBrZeP431BEiMEuyX@git.bandyer.com/Bandyer_Corp/BandyerSDKCommon.git#v1.8.1","jest":"^24.9.0","lodash.camelcase":"^4.3.0","prettier":"^1.14.3","rollup-plugin-commonjs":"^9.3.4","rollup-plugin-json":"^3.1.0","rollup-plugin-license":"^0.7.0","rollup-plugin-node-resolve":"^4.2.4","rollup-plugin-sourcemaps":"^0.4.2","rollup-plugin-typescript2":"^0.17.1","rollup-plugin-uglify":"^6.0.0","source-map-loader":"^0.2.4","ts-jest":"^24.1.0","ts-loader":"^4.4.2","ts-node":"^8.0.2","tslint":"^5.11.0","tslint-config-airbnb":"^5.7.0","tslint-config-prettier":"^1.15.0","tslint-consistent-codestyle":"^1.11.1","tslint-eslint-rules":"^4.1.1","typedoc":"^0.13.0","typescript":"^3.6.3","uglifyjs-webpack-plugin":"^1.2.3","webpack":"^4.41.0","webpack-auto-inject-version":"^1.1.0","webpack-cli":"^3.1.2","webpack-dev-server":"^3.8.1","webpack-merge":"^4.1.4"}}')},function(e,t,n){"use strict";u(t,"__esModule",{value:!0});var r=function(){function e(){}return e.API_KEY_LIVE=10,e.API_KEY_TEST=20,e.RPC_CORE_SDK_QUEUE="RPC_CORE_SDK_QUEUE",e.RPC_CONNECTOR_SDK_QUEUE="RPC_CONNECTOR_SDK_QUEUE",e.DIRECT_QUEUE="DIRECT_QUEUE",e.DIRECT_SDK_CONNECTION_QUEUE="DIRECT_SDK_CONNECTION_QUEUE",e.GENERIC_RPC_ERROR=3e3,e.ROOM_STATUS="roomStatus",e.USER_SOCKET_SYNC="userSocketSync",e.RPC_CONNECTOR_LIST="rpcConnectorList",e.RPC_REQUEST_SUCCESS="rpcRequestSuccess",e.RPC_REQUEST_ERROR="rpcRequestError",e.IPC_WORKER_MESSAGE="IPC_WORKER_MESSAGE",e.IPC_MASTER_MESSAGE="IPC_MASTER_MESSAGE",e.IPC_WORKER_READY="IPC_WORKER_READY",e.IPC_WORKER_ADDED="IPC_WORKER_ADDED",e.SOCKET_SANDBOX_PATH="/sdk/socket",e.SOCKET_SANDBOX_URL="https://sandbox.bandyer.com",e.SOCKET_PRODUCTION_PATH="/sdk/socket",e.SOCKET_PRODUCTION_URL="https://sdk.bandyer.com",e.WEB_PLATFORM="web",e.MOBILE_PLATFORM="mobile",e.IOS_PLATFORM="iOS",e.IPHONE_OS_PLATFORM="iPhone OS",e.ANDROID_PLATFORM="android",e.REQUEST_STATUS_SUCCESS="success",e.REQUEST_STATUS_ERROR="error",e.SDK_WEB_BUILD_NAME="BandyerSdkWebCore",e.SDK_WEB_LOGGER_NAME="BandyerSdkWebCore",e.SDK_STATUS_DISCONNECTED="disconnected",e.SDK_STATUS_CONNECTING="connecting",e.SDK_STATUS_CONNECTED="connected",e.SDK_STATUS_ERROR="error",e.SDK_ROOM_NOT_CONNECTED_ERROR="sdk_room_av_not_connected",e.SDK_GUM_ERROR="sdk_gum_error",e.SDK_GUM_OPTIONS_NOT_VALID="sdk_gum_options_not_valid",e.SDK_GUM_PERMISSION_NOT_ACCEPTED="sdk_gum_permission_not_accepted",e.SDK_GUM_SCREEN_PERMISSION_ERROR="sdk_gum_screen_permission_error",e.SDK_NO_MICROPHONE="sdk_no_microphone",e.SDK_NOT_SUPPORTED_BROWSER="sdk_not_supported_browser",e.SDK_PLUGIN_SITE_NOT_WHITELISTED="sdk_plugin_site_not_whitelisted",e.SDK_OPTIONS_NOT_VALID="sdk_options_not_valid",e.SDK_PUBLISH_NO_STREAM="sdk_publish_no_stream",e.SDK_UNPUBLISH_NO_LOCAL_WEBCAM="sdk_unpublish_no_local_webcam",e.SDK_UNPUBLISH_NO_LOCAL_SCREEN="sdk_unpublish_no_local_screen",e.SDK_SCREENSHARE_EXTENSION_INSTALLED="sdk_screenshare_extension_installed",e.SDK_SCREENSHARE_EXTENSION_NOT_INSTALLED="sdk_screenshare_extension_not_installed",e.SDK_REPLACE_TRACK_NOT_SUPPORTED="sdk_replace_track_not_supported",e.SDK_SOCKET_CONNECTION_DISCONNECTED="socket_status_disconnected",e.SDK_SOCKET_CONNECTION_CONNECTED="socket_status_connected",e.SDK_SOCKET_CONNECTION_CONNECTING="socket_status_connecting",e.SDK_CALL_DIRECTION_INCOMING="call_direction_incoming",e.SDK_CALL_DIRECTION_OUTGOING="call_direction_outgoing",e.SDK_CALL_ACTION_PERFORMED_ANSWER="action_performed_answer",e.SDK_CALL_ACTION_PERFORMED_DECLINE="action_performed_decline",e.SDK_CALL_STATUS_DIALING="call_status_dialing",e.SDK_CALL_STATUS_ANSWERED="call_status_answered",e.SDK_CALL_STATUS_CALLING="call_status_calling",e.SDK_CALL_STATUS_DECLINED="call_status_declined",e.SDK_CALL_STATUS_FAILED="call_status_failed",e.SDK_CALL_STATUS_HANGUP="call_status_hangup",e.SDK_CALL_STATUS_DELETED="call_status_deleted",e.SDK_EVENTS_CALL_INCOMING="incoming_call",e.SDK_EVENTS_CALL_DIAL_ANSWERED="call_dial_answered",e.SDK_EVENTS_CALL_DIAL_DECLINED="call_dial_declined",e.SDK_EVENTS_CALL_DIAL_STOPPED="call_dial_stopped",e.SDK_EVENTS_CALL_DELETED="call_deleted",e.SDK_EVENTS_ROOM_PARTICIPANT_STATUS_CHANGED="room_participant_status_changed",e.SDK_EVENTS_ON_GOING_DELETED="call_ongoing_deleted",e.SDK_EVENTS_SCREENSHARE_STOPPED="call_screenshare_stopped",e.SDK_EVENTS_USER_CONNECTED="user_connected",e.SDK_EVENTS_USER_DISCONNECTED="user_disconnected",e.SDK_EVENTS_MESSAGE_RECEIVED="message_received",e.SDK_EVENTS_MESSAGE_SENT="message_sent",e.SDK_EVENTS_MESSAGE_READ="message_read",e.SDK_EVENTS_TYPING_START="typing_started",e.SDK_EVENTS_TYPING_ENDED="typing_ended",e.SDK_EVENTS_CHAT_LOADED="chat_loaded",e.E_BANDYER_CALL_ROOM_CONNECTED="room-connected",e.E_BANDYER_CALL_ROOM_DISCONNECTED="room-disconnected",e.E_BANDYER_CALL_ROOM_ERROR="room-error",e.E_BANDYER_CALL_STREAM_ADDED="stream-added",e.E_BANDYER_CALL_STREAM_REMOVED="stream-removed",e.E_BANDYER_CALL_STREAM_SUBSCRIBED="stream-subscribed",e.E_BANDYER_CALL_STREAM_FAILED="stream-failed",e.SOCKET_CALL_TOKEN_RECEIVED="tokenReceived",e.SOCKET_CALL_CONNECTED="tokenReceived",e.SOCKET_CALL_DISCONNECTED="socket_call_disconnected",e.ERROR_INVALID_API_KEY="invalid_api_key",e.ERROR_SEQUELIZE="sequelize_error",e.ERROR_RPC_TIMEOUT="server_timeout_error",e.ERROR_SERVER_ERROR="internal_server_error",e.ERROR_MALFORMED_ARGS="malformed_args_error",e.USER_CONNECTION="userConnection",e.USER_CONNECTED="user_connected",e.USER_DISCONNECTED="user_disconnected",e.USER_LEFT="user_left",e.USER_CALLING="calling",e.USER_CALL_IN="callIn",e.USER_CALL_OUT="callOut",e.USER_GET_STATUS="user_status",e.USER_GET_STATUS_LIST="user_status_list",e.USER_GET_SOCKETS_LIST="user_sockets_list",e.USER_ACTIVE_CALLS="userActiveCalls",e.USER_DOES_NOT_EXISTS="user_does_not_exists",e.SOCKET_REMOTE_JOIN_FAILED="socket_remote_join_failed",e.SOCKET_REMOTE_LEFT_FAILED="socket_remote_left_failed",e.SOCKET_AUTH_INVALID_ARGUMENTS="socket_auth_invalid_arguments",e.USER_CONNECTION_SUCCESS=1100,e.USER_DISCONNECTION_SUCCESS=1101,e.USER_CALL_IN_SUCCESS=1102,e.USER_CALL_OUT_SUCCESS=1103,e.USER_GET_STATUS_SUCCESS=1104,e.USER_GET_STATUS_LIST_SUCCESS=1105,e.USER_GET_SOCKETS_LIST_SUCCESS=1106,e.USER_NOT_FOUND=1e3,e.CLIENT_SDK_VERSION_NOT_VALID=1001,e.CLIENT_SDK_VERSION_NOT_SUPPORTED=1002,e.USER_CONNECTION_ERROR=1010,e.USER_CONNECTION_INVALID_INTERFACE=1011,e.USER_CONNECTION_USER_ALREADY_CONNECTED=1012,e.USER_DISCONNECTION_ERROR=1020,e.USER_DISCONNECTION_INVALID_INTERFACE=1021,e.USER_DISCONNECTION_USER_ALREADY_DISCONNECTED=1022,e.USER_CALL_IN_ERROR=1030,e.USER_CALL_OUT_ERROR=1040,e.USER_GET_STATUS_ERROR=1050,e.USER_GET_STATUS_LIST_ERROR=1060,e.USER_GET_SOCKETS_LIST_ERROR=1070,e.USER_GET_SOCKETS_LIST_INVALID_INTERFACE=1070,e.USER_CONNECTION_ALREADY_CONNECTED=1004,e.USER_CALL_USER_NOT_FOUND=1006,e.USER_CALL_IN_USER_NOT_RINGING=1007,e.USER_CALL_IN_USER_ALREADY_CALLING=1008,e.USER_CALL_IN_ROOM_NOT_FOUND=1009,e.USER_CALL_OUT_USER_NOT_CALLING=1011,e.USER_CALL_INVALID_INTERFACE=1014,e.USER_NOT_FOUND_IN_ROOM_DIALING_LIST=1016,e.ROOM="room",e.ROOM_ACTION="roomAction",e.ROOM_CREATE="roomCreate",e.ROOM_GET_ACTIVE_CALL_LIST="getActiveCallList",e.ROOM_DIAL="roomDialing",e.ROOM_FAILED="roomFailed",e.ROOM_DIAL_ANSWER="roomDialAnswer",e.ROOM_DIAL_DECLINE="roomDialDecline",e.ROOM_DIAL_STOP="roomDialStop",e.ROOM_HANGUP="roomHangup",e.ROOM_DIAL_EXPIRY="roomDialExpiry",e.ROOM_SWITCHING_EXPIRY="roomSwitchingExpiry",e.ROOM_DIALING_TIMED_OUT="roomDialingTimedOut",e.ROOM_SWITCHING_USER_TIMED_OUT="roomSwitchingUserTimedOut",e.ROOM_DELETED="roomDeleted",e.ROOM_CREATE_OK="roomCreateOk",e.ROOM_DIAL_OK="roomDialOk",e.ROOM_JOIN_URL="roomJoinUrl",e.ROOM_UPGRADE_VIDEO="roomUpgradeVideo",e.ROOM_TYPE_OTO="one_to_one",e.ROOM_TYPE_MTM="many_to_many",e.ROOM_CREATED="roomCreated",e.ROOM_DIALING="roomDialing",e.ROOM_SWITCHING="roomSwitching",e.ROOM_CALLING="roomCalling",e.ROOM_STOPPED="roomStopped",e.ROOM_CREATE_SUCCESS=2100,e.ROOM_DIAL_ANSWER_SUCCESS=2101,e.ROOM_DIAL_DECLINE_SUCCESS=2102,e.ROOM_DIAL_STOP_SUCCESS=2103,e.ROOM_JOIN_URL_SUCCESS=2104,e.ROOM_UPGRADE_VIDEO_SUCCESS=2105,e.ROOM_HANGUP_SUCCESS=2106,e.ROOM_GET_ACTIVE_CALL_LIST_SUCCESS=2107,e.ROOM_NOT_FOUND=2e3,e.ROOM_STATUS_NOT_VALID=2001,e.ROOM_CREATE_ERROR=2010,e.ROOM_CREATE_INVALID_INTERFACE=2011,e.ROOM_CREATE_NOT_ENOUGH_USERS=2012,e.ROOM_CREATE_INITIATOR_NOT_AVAILABLE=2013,e.ROOM_CREATE_INITIATOR_BUSY=2014,e.ROOM_CREATE_ALL_USER_BUSY=2015,e.ROOM_CREATE_CALL_TYPE_NOT_VALID=2016,e.ROOM_CREATE_NO_USERS_CAN_VIDEO=2017,e.ROOM_CREATE_CREATOR_NO_CAN_VIDEO_PERMISSION=2018,e.ROOM_DIAL_ANSWER_ERROR=2020,e.ROOM_DIAL_ANSWER_INVALID_INTERFACE=2021,e.ROOM_DIAL_ANSWER_CALLEE_NOT_AVAILABLE=2022,e.ROOM_DIAL_ANSWER_CALLEE_NOT_RINGING=2023,e.ROOM_DIAL_ANSWER_NO_ROOM_FOUND=2024,e.ROOM_DIAL_ANSWER_USER_NOT_FOUND_IN_ROOM_DIALING_LIST=2025,e.ROOM_DIAL_DECLINE_ERROR=2030,e.ROOM_DIAL_DECLINE_INVALID_INTERFACE=2031,e.ROOM_DIAL_DECLINE_NO_ROOM_FOUND=2032,e.ROOM_DIAL_DECLINE_CALLEE_NOT_AVAILABLE=2033,e.ROOM_DIAL_DECLINE_CALLEE_NOT_RINGING=2034,e.ROOM_DIAL_DECLINE_USER_NOT_FOUND_IN_ROOM_DIALING_LIST=2035,e.ROOM_DIAL_STOP_ERROR=2040,e.ROOM_DIAL_STOP_INVALID_INTERFACE=2041,e.ROOM_DIAL_STOP_USER_NOT_AVAILABLE=2042,e.ROOM_DIAL_STOP_USER_NOT_RINGING=2043,e.ROOM_DIAL_STOP_NO_ROOM_FOUND=2044,e.ROOM_DIAL_STOP_USER_NOT_THE_INITIATOR=2045,e.ROOM_JOIN_URL_ERROR=2050,e.ROOM_JOIN_URL_INVALID_INTERFACE=2051,e.ROOM_JOIN_URL_USER_NOT_AVAILABLE=2052,e.ROOM_JOIN_URL_USER_BUSY=2053,e.ROOM_JOIN_URL_INVALID_URL=2054,e.ROOM_JOIN_URL_INVALID_TOKEN=2055,e.ROOM_JOIN_URL_ALL_USER_BUSY=2056,e.ROOM_JOIN_URL_USER_NOT_IN_ROOM=2057,e.ROOM_JOIN_URL_USER_ALREADY_IN_ROOM=2058,e.ROOM_UPGRADE_VIDEO_ERROR=2060,e.ROOM_UPGRADE_VIDEO_INVALID_INTERFACE=2061,e.ROOM_UPGRADE_VIDEO_USER_NOT_AVAILABLE=2061,e.ROOM_UPGRADE_VIDEO_USER_NO_VIDEO_PERMISSION=2062,e.ROOM_UPGRADE_VIDEO_ROOM_NOT_FOUND=2063,e.ROOM_UPGRADE_VIDEO_ROOM_NOT_UPGRADEABLE=2064,e.ROOM_HANGUP_ERROR=2070,e.ROOM_HANGUP_INVALID_INTERFACE=2071,e.ROOM_HANGUP_USER_NOT_AVAILABLE=2072,e.ROOM_HANGUP_NO_ROOM_FOUND=2073,e.ROOM_HANGUP_USER_IS_NOT_IN_ROOM=2074,e.ROOM_GET_ACTIVE_CALL_LIST_ERROR=2080,e.ROOM_GET_ACTIVE_CALL_LIST_INVALID_INTERFACE=2081,e.VALID_API_KEY="valid_api_key",e.CALL_ANSWERED="call_answered",e.CALL_DECLINED="call_declined",e.SOCKET_AUTHENTICATE="socket:authenticate",e.SOCKET_AUTHENTICATE_ERROR="socket:authentication_error",e.SOCKET_CLIENT_END_OF_SUPPORT="client:endOfSupport",e.SOCKET_USER_CONNECTED="user:connected",e.SOCKET_USER_DISCONNECTED="user:disconnected",e.SOCKET_USER_CONNECTION_ERROR="user:connection_error",e.SOCKET_USER_GET_USER_OBJECT="user:get_user_object",e.SOCKET_USER_GET_USER_STATUS="user:get_user_status",e.SOCKET_USER_GET_USER_STATUS_LIST="user:get_user_status_list",e.SOCKET_USER_GET_SOCKETS_LIST="user:get_user_sockets_list",e.SOCKET_ROOM_ACTIVE_CALLS="room:active_calls",e.SOCKET_ROOM_ACTIVE_CALLS_LIST="room:get_active_calls_list",e.SOCKET_ROOM_CREATE="room:create",e.SOCKET_ROOM_CREATE_ERROR="room:create_error",e.SOCKET_ROOM_DIAL_ANSWERED="room:dial_answered",e.SOCKET_ROOM_DIAL_DECLINED="room:dial_declined",e.SOCKET_ROOM_DIAL_ANSWER="room:dial_answer",e.SOCKET_ROOM_DIAL_DECLINE="room:dial_decline",e.SOCKET_ROOM_DIAL_INCOMING="room:dial_incoming",e.SOCKET_ROOM_DIAL_ERROR="room:dial_error",e.SOCKET_ROOM_DIAL_ANSWER_ERROR="room:dial_answer_error",e.SOCKET_ROOM_DIAL_STOP="room:dial_stop",e.SOCKET_ROOM_DIAL_STOPPED="room:dial_stopped",e.SOCKET_ROOM_HANGUP="room:hangup",e.SOCKET_ROOM_ENDED="room:ended",e.SOCKET_ROOM_CALL_TOKEN="room:call_token",e.SOCKET_ROOM_PARTECIPANT_STATUS_CHANGED="room:participant_status_changed",e.SOCKET_ROOM_DELETED="room:deleted",e.SOCKET_ROOM_RPC_ERROR="room:server_error",e.SOCKET_GENERIC_RPC_ERROR="socket:internal_server_error",e.SOCKET_ROOM_JOIN_URL="room:join_url",e.SOCKET_ROOM_UPGRADE_VIDEO="room:upgrade_video",e.SOCKET_ROOM_VIEDO_UPGRADED="room:video_upgraded",e.SOCKET_TWILIO_CHAT_AUTHENTICATE="socket:twilio_chat_authenticate",e.SOCKET_TWILIO_CHAT_ADD_USER="socket:twilio_chat_add_user",e.C_INTERNAL_SERVER_ERROR="internal_server_error",e.C_RPC_TIMEOUT="rpc_timeout",e.C_AUTHENTICATION_ERROR="authentication_error",e.C_INVALID_REQUEST="invalid_request",e.C_USER_CONNECTION_SUCCESS=3100,e.C_USER_DISCONNECTION_SUCCESS=3101,e.C_ROOM_CREATE_SUCCESS=3102,e.C_ROOM_DIAL_REQUEST_SUCCESS=3103,e.C_ROOM_DIAL_ANSWER_SUCCESS=3104,e.C_ROOM_DIAL_DECLINE_SUCCESS=3105,e.C_ROOM_JOIN_URL_SUCCESS=3106,e.C_ROOM_UPGRADE_VIDEO_SUCCESS=3107,e.C_REQUEST_TIMED_OUT=3099,e.C_INVALID_REQUEST_ERROR=3098,e.C_INTERNAL_SERVER_CODE_ERROR=3097,e.C_USER_NOT_FOUND=3096,e.C_USER_AUTH_INVALID_ARGUMENTS=3e3,e.C_USER_CONNECTION_ERROR=3001,e.C_USER_AUTH_INVALID_VERSION=3002,e.C_USER_AUTH_VERSION_NOT_SUPPORTED=3003,e.C_USER_AUTH_INVALID_CREDENTIALS=3004,e.C_USER_DISCONNECTION_ERROR=3010,e.C_ROOM_CREATE_INITIATOR_NOT_AVAILABLE=3020,e.C_ROOM_CREATE_INITIATOR_BUSY=3021,e.C_ROOM_CREATE_ALL_USER_BUSY=3022,e.C_ROOM_CREATE_NOT_ENOUGH_USERS=3023,e.C_ROOM_CREATE_USER_NOT_FOUND=3024,e.C_ROOM_CREATE_CALL_TYPE_NOT_VALID=3025,e.C_ROOM_CREATE_NO_USERS_CAN_VIDEO=3026,e.C_ROOM_CREATE_CREATOR_NO_CAN_VIDEO_PERMISSION=3027,e.C_ROOM_CREATE_INTERNAL_ERROR=3029,e.C_DIAL_ANSWER_CALLEE_NOT_AVAILABLE=3030,e.C_DIAL_ANSWER_CALLEE_NOT_RINGING=3031,e.C_DIAL_ANSWER_ROOM_NOT_FOUND=3032,e.C_DIAL_ANSWER_INTERNAL_ERROR=3039,e.C_DIAL_DECLINE_CALLEE_NOT_AVAILABLE=3040,e.C_DIAL_DECLINE_CALLEE_NOT_RINGING=3041,e.C_DIAL_DECLINE_ROOM_NOT_FOUND=3042,e.C_DIAL_DECLINE_INTERNAL_ERROR=3049,e.C_DIAL_STOP_USER_NOT_AVAILABLE=3050,e.C_DIAL_STOP_USER_NOT_RINGING=3051,e.C_DIAL_STOP_ROOM_NOT_FOUND=3052,e.C_DIAL_STOP_USER_NOT_THE_INITIATOR=3053,e.C_DIAL_STOP_INTERNAL_ERROR=3059,e.C_ROOM_JOIN_URL_USER_NOT_AVAILABLE=3060,e.C_ROOM_JOIN_URL_USER_BUSY=3061,e.C_ROOM_JOIN_URL_INVALID_URL=3062,e.C_ROOM_JOIN_URL_INVALID_TOKEN=3063,e.C_ROOM_JOIN_URL_ALL_USER_BUSY=3064,e.C_ROOM_JOIN_URL_USER_NOT_IN_ROOM=3065,e.C_ROOM_JOIN_URL_USER_ALREADY_IN_ROOM=3066,e.C_ROOM_JOIN_URL_INTERNAL_ERROR=3069,e.C_ROOM_UPGRADE_VIDEO_USER_NOT_AVAILABLE=3070,e.C_ROOM_UPGRADE_VIDEO_USER_NO_VIDEO_PERMISSION=3071,e.C_ROOM_UPGRADE_VIDEO_ROOM_NOT_FOUND=3072,e.C_ROOM_UPGRADE_VIDEO_ROOM_NOT_UPGRADEABLE=3073,e.C_ROOM_UPGRADE_VIDEO_INTERNAL_ERROR=3079,e.C_ROOM_HANGUP_USER_NOT_AVAILABLE=3080,e.C_ROOM_HANGUP_ROOM_NOT_FOUND=3081,e.C_ROOM_HANGUP_USER_IS_NOT_IN_ROOM=3082,e.C_ROOM_HANGUP_INTERNAL_ERROR=3089,e.C_ROOM_ACTIVE_CALLS_LIST_INTERNAL_ERROR=3099,e}();t.default=r},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),u(e,"loaded",{enumerable:!0,get:function(){return e.l}}),u(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){},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,o=p(e).call(e,"["),a=p(e).call(e,"]");-1!=o&&-1!=a&&(e=e.substring(0,o)+e.substring(o,a).replace(/:/g,";")+e.substring(a,e.length));for(var i=n.exec(e||""),u={},l=14;l--;)u[r[l]]=i[l]||"";return-1!=o&&-1!=a&&(u.source=t,u.host=u.host.substring(1,u.host.length-1).replace(/;/g,":"),u.authority=u.authority.replace("[","").replace("]","").replace(/;/g,":"),u.ipv6uri=!0),u}},function(e,t){var n={}.toString;e.exports=P||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){(function(t){e.exports=function(e){return n&&t.isBuffer(e)||r&&(e instanceof ArrayBuffer||o(e))};var n="function"==typeof t&&"function"==typeof t.isBuffer,r="function"==typeof ArrayBuffer,o=function(e){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer}}).call(this,n(14).Buffer)},function(e,t,n){function r(e){return(r="function"==typeof l&&"symbol"==X(d)?function(e){return X(e)}:function(e){return e&&"function"==typeof l&&e.constructor===l&&e!==l.prototype?"symbol":X(e)})(e)}var o=n(63),a=n(31),i=n(3),u=n(13),s=n(32),c=n(33),f=n(8)("socket.io-client:manager"),h=n(30),v=n(80),_=Object.prototype.hasOwnProperty;function g(e,t){if(!(this instanceof g))return new g(e,t);e&&"object"===r(e)&&(t=e,e=void 0),(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 v({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=[];var n=t.parser||u;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==t.autoConnect,this.autoConnect&&this.open()}e.exports=g,g.prototype.emitAll=function(){for(var e in this.emit.apply(this,arguments),this.nsps)_.call(this.nsps,e)&&this.nsps[e].emit.apply(this.nsps[e],arguments)},g.prototype.updateSocketIds=function(){for(var e in this.nsps)_.call(this.nsps,e)&&(this.nsps[e].id=this.generateId(e))},g.prototype.generateId=function(e){return("/"===e?"":e+"#")+this.engine.id},i(g.prototype),g.prototype.reconnection=function(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection},g.prototype.reconnectionAttempts=function(e){return arguments.length?(this._reconnectionAttempts=e,this):this._reconnectionAttempts},g.prototype.reconnectionDelay=function(e){return arguments.length?(this._reconnectionDelay=e,this.backoff&&this.backoff.setMin(e),this):this._reconnectionDelay},g.prototype.randomizationFactor=function(e){return arguments.length?(this._randomizationFactor=e,this.backoff&&this.backoff.setJitter(e),this):this._randomizationFactor},g.prototype.reconnectionDelayMax=function(e){return arguments.length?(this._reconnectionDelayMax=e,this.backoff&&this.backoff.setMax(e),this):this._reconnectionDelayMax},g.prototype.timeout=function(e){return arguments.length?(this._timeout=e,this):this._timeout},g.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},g.prototype.open=g.prototype.connect=function(e,t){var n;if(f("readyState %s",this.readyState),~p(n=this.readyState).call(n,"open"))return this;f("opening %s",this.uri),this.engine=o(this.uri,this.opts);var r=this.engine,a=this;this.readyState="opening",this.skipReconnect=!1;var i=s(r,"open",(function(){a.onopen(),e&&e()})),u=s(r,"error",(function(t){if(f("connect_error"),a.cleanup(),a.readyState="closed",a.emitAll("connect_error",t),e){var n=new Error("Connection error");n.data=t,e(n)}else a.maybeReconnectOnOpen()}));if(!1!==this._timeout){var l=this._timeout;f("connect attempt will timeout after %d",l);var c=m((function(){f("connect attempt timed out after %d",l),i.destroy(),r.close(),r.emit("error","timeout"),a.emitAll("connect_timeout",l)}),l);this.subs.push({destroy:function(){clearTimeout(c)}})}return this.subs.push(i),this.subs.push(u),this},g.prototype.onopen=function(){f("open"),this.cleanup(),this.readyState="open",this.emit("open");var e=this.engine;this.subs.push(s(e,"data",c(this,"ondata"))),this.subs.push(s(e,"ping",c(this,"onping"))),this.subs.push(s(e,"pong",c(this,"onpong"))),this.subs.push(s(e,"error",c(this,"onerror"))),this.subs.push(s(e,"close",c(this,"onclose"))),this.subs.push(s(this.decoder,"decoded",c(this,"ondecoded")))},g.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},g.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},g.prototype.ondata=function(e){this.decoder.add(e)},g.prototype.ondecoded=function(e){this.emit("packet",e)},g.prototype.onerror=function(e){f("error",e),this.emitAll("error",e)},g.prototype.socket=function(e,t){var n=this.nsps[e];if(!n){n=new a(this,e,t),this.nsps[e]=n;var r=this;n.on("connecting",o),n.on("connect",(function(){n.id=r.generateId(e)})),this.autoConnect&&o()}function o(){~h(r.connecting,n)||r.connecting.push(n)}return n},g.prototype.destroy=function(e){var t,n=h(this.connecting,e);~n&&y(t=this.connecting).call(t,n,1),this.connecting.length||this.close()},g.prototype.packet=function(e){f("writing packet %j",e);var t=this;e.query&&0===e.type&&(e.nsp+="?"+e.query),t.encoding?t.packetBuffer.push(e):(t.encoding=!0,this.encoder.encode(e,(function(n){for(var r=0;r0&&!this.encoding){var e=this.packetBuffer.shift();this.packet(e)}},g.prototype.cleanup=function(){f("cleanup");for(var e=this.subs.length,t=0;t=this._reconnectionAttempts)f("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var t=this.backoff.duration();f("will wait %dms before reconnect attempt",t),this.reconnecting=!0;var n=m((function(){e.skipReconnect||(f("attempting reconnect"),e.emitAll("reconnect_attempt",e.backoff.attempts),e.emitAll("reconnecting",e.backoff.attempts),e.skipReconnect||e.open((function(t){t?(f("reconnect attempt error"),e.reconnecting=!1,e.reconnect(),e.emitAll("reconnect_error",t.data)):(f("reconnect success"),e.onreconnect())})))}),t);this.subs.push({destroy:function(){clearTimeout(n)}})}},g.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},function(e,t,n){var r=n(15),o=n(66),a=n(76),i=n(77);t.polling=function(e){var t=!1,n=!1,i=!1!==e.jsonp;if("undefined"!=typeof location){var u="https:"===location.protocol,l=location.port;l||(l=u?443:80),t=e.hostname!==location.hostname||l!==e.port,n=e.secure!==u}if(e.xdomain=t,e.xscheme=n,"open"in new r(e)&&!e.forceJSONP)return new o(e);if(!i)throw new Error("JSONP disabled");return new a(e)},t.websocket=i},function(e,t,n){var r=n(16),o=n(9),a=n(4),i=n(10),u=n(29),l=n(11)("engine.io-client:polling");e.exports=c;var s=null!=new(n(15))({xdomain:!1}).responseType;function c(e){var t=e&&e.forceBase64;s&&!t||(this.supportsBinary=!1),r.call(this,e)}i(c,r),c.prototype.name="polling",c.prototype.doOpen=function(){this.poll()},c.prototype.pause=function(e){var t=this;function n(){l("paused"),t.readyState="paused",e()}if(this.readyState="pausing",this.polling||!this.writable){var r=0;this.polling&&(l("we are currently polling - waiting to pause"),r++,this.once("pollComplete",(function(){l("pre-pause polling complete"),--r||n()}))),this.writable||(l("we are currently writing - waiting to pause"),r++,this.once("drain",(function(){l("pre-pause writing complete"),--r||n()})))}else n()},c.prototype.poll=function(){l("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},c.prototype.onData=function(e){var t=this;l("polling got data %s",e),a.decodePayload(e,this.socket.binaryType,(function(e,n,r){if("opening"===t.readyState&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():l('ignoring poll - transport state "%s"',this.readyState))},c.prototype.doClose=function(){var e=this;function t(){l("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(l("transport open - closing"),t()):(l("transport not open - deferring close"),this.once("open",t))},c.prototype.write=function(e){var t=this;this.writable=!1;var n=function(){t.writable=!0,t.emit("drain")};a.encodePayload(e,this.supportsBinary,(function(e){t.doWrite(e,n)}))},c.prototype.uri=function(){var e,t=this.query||{},n=this.secure?"https":"http",r="";return!1!==this.timestampRequests&&(t[this.timestampParam]=u()),this.supportsBinary||t.sid||(t.b64=1),t=o.encode(t),this.port&&("https"===n&&443!==Number(this.port)||"http"===n&&80!==Number(this.port))&&(r=":"+this.port),t.length&&(t="?"+t),n+"://"+(-1!==p(e=this.hostname).call(e,":")?"["+this.hostname+"]":this.hostname)+r+this.path+t}},function(e,t,n){(function(t){function r(e){return(r="function"==typeof l&&"symbol"==X(d)?function(e){return X(e)}:function(e){return e&&"function"==typeof l&&e.constructor===l&&e!==l.prototype?"symbol":X(e)})(e)}var o=n(68),a=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===a.call(Blob),u="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===a.call(File);e.exports=function e(n){if(!n||"object"!==r(n))return!1;if(o(n)){for(var a=0,l=n.length;a0);return t}function s(){var e=l(+new Date);return e!==r?(i=0,r=e):e+"."+l(i++)}for(;u<64;u++)a[o[u]]=u;s.encode=l,s.decode=function(e){var t=0;for(u=0;u0&&void 0!==e.userAlias&&void 0!==e.socketId&&void 0!==e.companyId&&void 0!==e.userInfo&&void 0!==e.platformInfo},t.validateUserDisconnectRequestData=function(e){return void 0!==e.callerInfo&&void 0!==e.context&&void 0!==e.action&&void 0!==e.userId&&void 0!==e.socketId&&void 0!==e.companyId},t.validateUserGetStatusRPCData=function(e){return void 0!==e.socketId&&void 0!==e.companyId&&void 0!==e.userAlias&&void 0!==e.userId},t.validateUserGetStatusRequestData=function(e){return void 0!==e.socketId&&void 0!==e.companyId&&void 0!==e.callerInfo&&void 0!==e.userAlias},t.validateUserGetStatusResponseData=function(e){return void 0!==e.status&&void 0!==e.code&&void 0!==e.socketId&&void 0!==e.userAlias},t.validateUserGetStatusListRPCData=function(e){return void 0!==e.socketId&&void 0!==e.userId&&void 0!==e.userAlias},t.validateUserGetStatusListRequestData=function(e){return void 0!==e.socketId&&void 0!==e.callerInfo&&void 0!==e.userId&&void 0!==e.userAlias},t.validateUserGetStatusListResponseData=function(e){return void 0!==e.code&&void 0!==e.users&&void 0!==e.userId&&void 0!==e.socketId&&void 0!==e.userAlias},t.validateUserGetDevicesListRPCData=function(e){return void 0!==e.socketId&&void 0!==e.userId&&void 0!==e.userAlias},t.validateUserGetSocketsListRPCDataRequestData=function(e){return void 0!==e.socketId&&void 0!==e.callerInfo&&void 0!==e.userId&&void 0!==e.userAlias},t.validateUserGetSocketsListResponseData=function(e){return void 0!==e.code&&void 0!==e.sockets&&void 0!==e.userId&&void 0!==e.socketId&&void 0!==e.userAlias},t.validateUserAuthRequestClient=function(e){return void 0!==e.appId&&void 0!==e.userAlias},t.validateUserCallRequestData=function(e){return void 0!==e.callerInfo&&void 0!==e.context&&void 0!==e.action&&void 0!==e.userId&&void 0!==e.roomRestCreatedAlias}},function(e,t,n){"use strict";u(t,"__esModule",{value:!0}),t.validateRoomStructure=function(e){return void 0!==e.roomRestCreatedAlias&&void 0!==e.companyId&&void 0!==e.companyName&&void 0!==e.creationDate&&void 0!==e.initiator&&void 0!==e.initiatorSocketId&&void 0!==e.status&&void 0!==e.type&&void 0!==e.isVideoUpgraded&&void 0!==e.callType&&void 0!==e.users&&!1!==P(e.users)&&e.users.length>=2&&void 0!==e.usersDialing&&void 0!==e.usersOffline&&void 0!==e.usersSwitching&&void 0!==e.usersAnswered&&void 0!==e.usersDeclined&&void 0!==e.usersTimedOut&&void 0!==e.usersInCall&&void 0!==e.usersJoin&&void 0!==e.roomRestCreated},t.validateRoomCreateRequestClient=function(e){return void 0!==e.callee&&!1!==P(e.callee)&&e.callee.length>0},t.validateRoomCreateRequestData=function(e){return void 0!==e.callerInfo&&void 0!==e.context&&void 0!==e.action&&void 0!==e.initiator&&void 0!==e.socketId&&void 0!==e.users&&!1!==P(e.users)&&e.users.length>0&&void 0!==e.record},t.validateRoomCreateJobData=function(e){return void 0!==e.context&&void 0!==e.action&&void 0!==e.rndCreationID&&void 0!==e.initiator&&void 0!==e.userId&&void 0!==e.socketId&&void 0!==e.users&&!1!==P(e.users)&&e.users.length<=25&&e.users.length>1&&void 0!==e.record&&void 0!==e.callType},t.validateRoomGetActiveCallsListRPCData=function(e){return void 0!==e.socketId&&void 0!==e.userId&&void 0!==e.userAlias},t.validateRoomGetActiveCallsListRequestData=function(e){return void 0!==e.socketId&&void 0!==e.callerInfo&&void 0!==e.userId&&void 0!==e.userAlias},t.validateRoomGetActiveCallsListResponseData=function(e){return void 0!==e.code&&void 0!==e.activeCalls&&void 0!==e.userId&&void 0!==e.socketId&&void 0!==e.userAlias},t.validateRoomDialAnswerRequestClient=function(e){return void 0!==e.roomAlias},t.validateRoomDialAnswerRequestData=function(e){return void 0!==e.callerInfo&&void 0!==e.socketId&&void 0!==e.userAlias&&void 0!==e.userId&&void 0!==e.roomAlias},t.validateRoomDialAnswerJobData=function(e){return void 0!==e.callerInfo&&void 0!==e.context&&void 0!==e.action&&void 0!==e.socketId&&void 0!==e.userAlias&&void 0!==e.roomAlias},t.validateRoomDialDeclineRequestClient=function(e){return void 0!==e.roomAlias},t.validateRoomDialDeclineRequestData=function(e){return void 0!==e.callerInfo&&void 0!==e.socketId&&void 0!==e.userAlias&&void 0!==e.userId&&void 0!==e.roomAlias},t.validateRoomDialDeclineJobData=function(e){return void 0!==e.callerInfo&&void 0!==e.context&&void 0!==e.action&&void 0!==e.socketId&&void 0!==e.userAlias&&void 0!==e.roomAlias},t.validateRoomDialStopRequestClient=function(e){return void 0!==e.roomAlias},t.validateRoomDialStopRequestData=function(e){return void 0!==e.callerInfo&&void 0!==e.socketId&&void 0!==e.userAlias&&void 0!==e.socketId&&void 0!==e.roomAlias},t.validateRoomDialStopJobData=function(e){return void 0!==e.callerInfo&&void 0!==e.context&&void 0!==e.action&&void 0!==e.socketId&&void 0!==e.userAlias&&void 0!==e.userId&&void 0!==e.roomAlias},t.validateRoomHangupRequestClient=function(e){return void 0!==e.roomAlias},t.validateRoomHangupRequestData=function(e){return void 0!==e.callerInfo&&void 0!==e.socketId&&void 0!==e.userAlias&&void 0!==e.userId&&void 0!==e.roomAlias},t.validateRoomHangupJobData=function(e){return void 0!==e.callerInfo&&void 0!==e.context&&void 0!==e.action&&void 0!==e.socketId&&void 0!==e.userAlias&&void 0!==e.userId&&void 0!==e.roomAlias},t.validateRoomJoinUrlRequestClient=function(e){return void 0!==e.url},t.validateRoomJoinUrlRequestData=function(e){return void 0!==e.callerInfo&&void 0!==e.socketId&&void 0!==e.userAlias&&void 0!==e.userId&&void 0!==e.url},t.validateRoomJoinUrlJobData=function(e){return void 0!==e.callerInfo&&void 0!==e.context&&void 0!==e.action&&void 0!==e.socketId&&void 0!==e.userAlias&&void 0!==e.userId&&void 0!==e.url},t.validateRoomUpgradeVideoRequestClient=function(e){return void 0!==e.roomAlias},t.validateRoomUpgradeVideoRequestData=function(e){return void 0!==e.callerInfo&&void 0!==e.socketId&&void 0!==e.userAlias&&void 0!==e.userId&&void 0!==e.roomAlias},t.validateRoomUpgradeVideoJobData=function(e){return void 0!==e.callerInfo&&void 0!==e.context&&void 0!==e.action&&void 0!==e.socketId&&void 0!==e.userAlias&&void 0!==e.userId&&void 0!==e.roomAlias}},function(e,t,n){"use strict";u(t,"__esModule",{value:!0})},function(e,t,n){"use strict";u(t,"__esModule",{value:!0})},function(e,t,n){"use strict";u(t,"__esModule",{value:!0}),t.validateEventInterface=function(e){return void 0!==e.header&&null!==e.header&&function(e){return void 0!==e.apiVersion&&null!==e.apiVersion&&void 0!==e.platform&&null!==e.platform&&function(e){return void 0!==e.type&&void 0!==e.userAgent}(e.platform)}(e.header)},t.validateEventResponse=function(e){return void 0!==e.data&&void 0!==e.status&&void 0!==e.error}},function(e,t,n){"use strict";u(t,"__esModule",{value:!0}),t.validateSocketOptions=function(e){return void 0!==e.path&&void 0!==e.url}},function(e,t,n){"use strict";(function(n,r){var o;function a(e){return(a="function"==typeof l&&"symbol"==X(d)?function(e){return X(e)}:function(e){return e&&"function"==typeof l&&e.constructor===l&&e!==l.prototype?"symbol":X(e)})(e)}!function(){var i,u,l,s,c,d,h="Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45";if("object"===(void 0===n?"undefined":a(n))&&"object"===a(n.versions)&&n.versions.node&&!n.browser){var m=n.versions.node.toString().replace("v","");h="Nodejs/"+m+" (NodeOS) AppleWebKit/"+m+" (KHTML, like Gecko) Nodejs/"+m+" Nodejs/"+m}d=void 0!==r?r:window,"undefined"==typeof window&&("undefined"==typeof window&&void 0!==r&&(r.navigator={userAgent:h,getUserMedia:function(){}},d.window=r),"undefined"==typeof location&&(d.location={protocol:"file:",href:"",hash:""}),"undefined"==typeof screen&&(d.screen={width:0,height:0}));var v=window.navigator;void 0!==v?(void 0!==v.webkitGetUserMedia&&(v.getUserMedia=v.webkitGetUserMedia),void 0!==v.mozGetUserMedia&&(v.getUserMedia=v.mozGetUserMedia)):v={getUserMedia:function(){},userAgent:h};var y=!!/Android|webOS|iPhone|iPad|iPod|BB10|BlackBerry|IEMobile|Opera Mini|Mobile|mobile/i.test(v.userAgent||""),_=!(-1===p(i=v.userAgent).call(i,"Edge")||!v.msSaveOrOpenBlob&&!v.msSaveBlob),E=!!window.opera||p(u=v.userAgent).call(u," OPR/")>=0,w=void 0!==window.InstallTrigger,C=/^((?!chrome|android).)*safari/i.test(v.userAgent),S=!!window.chrome&&!E,O="undefined"!=typeof document&&!!document.documentMode&&!_;function T(e,t){var n=0,r=!1,o=U((function(){e()&&(window.clearInterval(o),t(r)),n++>50&&(window.clearInterval(o),t(r=!0))}),10)}var M,A,N={Android:function(){return v.userAgent.match(/Android/i)},BlackBerry:function(){return v.userAgent.match(/BlackBerry|BB10/i)},iOS:function(){return v.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return v.userAgent.match(/Opera Mini/i)},Windows:function(){return v.userAgent.match(/IEMobile/i)},any:function(){return N.Android()||N.BlackBerry()||N.iOS()||N.Opera()||N.Windows()},getOsName:function(){var e="Unknown OS";return N.Android()&&(e="Android"),N.BlackBerry()&&(e="BlackBerry"),N.iOS()&&(e="iOS"),N.Opera()&&(e="Opera Mini"),N.Windows()&&(e="Windows"),e}},I="Unknown OS",D="Unknown OS Version",L=function(){for(var e,t=v.appVersion,n=v.userAgent,r="-",o=[{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Windows Vista",r:/Windows NT 6.0/},{s:"Windows Server 2003",r:/Windows NT 5.2/},{s:"Windows XP",r:/(Windows NT 5.1|Windows XP)/},{s:"Windows 2000",r:/(Windows NT 5.0|Windows 2000)/},{s:"Windows ME",r:/(Win 9x 4.90|Windows ME)/},{s:"Windows 98",r:/(Windows 98|Win98)/},{s:"Windows 95",r:/(Windows 95|Win95|Windows_95)/},{s:"Windows NT 4.0",r:/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/},{s:"Windows CE",r:/Windows CE/},{s:"Windows 3.11",r:/Win16/},{s:"Android",r:/Android/},{s:"Open BSD",r:/OpenBSD/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:"QNX",r:/QNX/},{s:"UNIX",r:/UNIX/},{s:"BeOS",r:/BeOS/},{s:"OS/2",r:/OS\/2/},{s:"Search Bot",r:/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/}],a=0;e=o[a];a++)if(e.r.test(n)){r=e.s;break}var i="-";switch(/Windows/.test(r)&&(/Windows (.*)/.test(r)&&(i=/Windows (.*)/.exec(r)[1]),r="Windows"),r){case"Mac OS X":/Mac OS X (10[\.\_\d]+)/.test(n)&&(i=/Mac OS X (10[\.\_\d]+)/.exec(n)[1]);break;case"Android":/Android ([\.\_\d]+)/.test(n)&&(i=/Android ([\.\_\d]+)/.exec(n)[1]);break;case"iOS":/OS (\d+)_(\d+)_?(\d+)?/.test(n)&&(i=(i=/OS (\d+)_(\d+)_?(\d+)?/.exec(t))[1]+"."+i[2]+"."+(0|i[3]))}return{osName:r,osVersion:i}}();L&&L.osName&&"-"!=L.osName?(I=L.osName,D=L.osVersion):N.any()&&"Android"==(I=N.getOsName())&&(D=!!(A=(M=(M||v.userAgent).toLowerCase()).match(/android\s([0-9\.]*)/))&&A[1]);var x="object"===(void 0===n?"undefined":a(n))&&"object"===a(n.versions)&&n.versions.node;"Unknown OS"===I&&x&&(I="Nodejs",D=n.versions.node.toString().replace("v",""));var P=!1,B=!1;g(l=["captureStream","mozCaptureStream","webkitCaptureStream"]).call(l,(function(e){"undefined"!=typeof document&&"function"==typeof document.createElement&&(!P&&e in document.createElement("canvas")&&(P=!0),!B&&e in document.createElement("video")&&(B=!0))}));var j=/^(192\.168\.|169\.254\.|10\.|172\.(1[6-9]|2\d|3[01]))/,V=/([0-9]{1,3}(\.[0-9]{1,3}){3})/,G=/[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7}/,z=[],W=[],H=[],Y=[];v.mediaDevices&&v.mediaDevices.enumerateDevices&&(v.enumerateDevices=function(e){var t=v.mediaDevices.enumerateDevices();t&&t.then?v.mediaDevices.enumerateDevices().then(e).catch((function(){e([])})):e([])});var K=!1;("undefined"!=typeof MediaStreamTrack&&"getSources"in MediaStreamTrack||v.mediaDevices&&v.mediaDevices.enumerateDevices)&&(K=!0);var q=!1,$=!1,J=!1,X=!1,Q=!1,Z=window.DetectRTC||{};Z.browser=function(){var e;v.appVersion;var t,n,r,o=v.userAgent,a=v.appName,i=""+F(v.appVersion),u=b(v.appVersion,10);if(C&&!S&&-1!==p(o).call(o,"CriOS")&&(C=!1,S=!0),E){a="Opera";try{u=(i=v.userAgent.split("OPR/")[1].split(" ")[0]).split(".")[0]}catch(t){i="0.0.0.0",u=0}}else O?((n=p(o).call(o,"rv:"))>0?i=o.substring(n+3):(n=p(o).call(o,"MSIE"),i=o.substring(n+5)),a="IE"):S?(n=p(o).call(o,"Chrome"),a="Chrome",i=o.substring(n+7)):C?(n=p(o).call(o,"Safari"),a="Safari",i=o.substring(n+7),-1!==(n=p(o).call(o,"Version"))&&(i=o.substring(n+8)),-1!==p(e=v.userAgent).call(e,"Version/")&&(i=v.userAgent.split("Version/")[1].split(" ")[0])):w?(n=p(o).call(o,"Firefox"),a="Firefox",i=o.substring(n+8)):(t=k(o).call(o," ")+1)<(n=k(o).call(o,"/"))&&(a=o.substring(t,n),i=o.substring(n+1),a.toLowerCase()===a.toUpperCase()&&(a=v.appName));return _&&(a="Edge",i=v.userAgent.split("Edge/")[1]),-1!==(r=i.search(/[; \)]/))&&(i=i.substring(0,r)),u=b(""+i,10),isNaN(u)&&(i=""+F(v.appVersion),u=b(v.appVersion,10)),{fullVersion:i,version:u,name:a,isPrivateBrowsing:!1}}(),function(e){var t;try{if(window.webkitRequestFileSystem)window.webkitRequestFileSystem(window.TEMPORARY,1,(function(){t=!1}),(function(e){t=!0}));else if(window.indexedDB&&/Firefox/.test(window.navigator.userAgent)){var n;try{(n=window.indexedDB.open("test")).onerror=function(){return!0}}catch(e){t=!0}void 0===t&&T((function(){return"done"===n.readyState}),(function(e){e||(t=!n.result)}))}else if(function(e){var t=window.navigator.userAgent.toLowerCase();if(0===p(t).call(t,"msie")&&0===p(t).call(t,"trident"))return!1;var n=/(?:msie|rv:)\s?([\d\.]+)/.exec(t);return!!(n&&b(n[1],10)>=10)}()){t=!1;try{window.indexedDB||(t=!0)}catch(e){t=!0}}else if(window.localStorage&&/Safari/.test(window.navigator.userAgent)){try{window.localStorage.setItem("test",1)}catch(e){t=!0}void 0===t&&(t=!1,window.localStorage.removeItem("test"))}}catch(e){t=!1}T((function(){return void 0!==t}),(function(e){!function(e){Z.browser.isPrivateBrowsing=!!e}(t)}))}(),Z.browser["is"+Z.browser.name]=!0,Z.osName=I,Z.osVersion=D,"object"===(void 0===n?"undefined":a(n))&&"object"===a(n.versions)&&n.versions["node-webkit"];var ee=!1;g(s=["RTCPeerConnection","webkitRTCPeerConnection","mozRTCPeerConnection","RTCIceGatherer"]).call(s,(function(e){ee||e in window&&(ee=!0)})),Z.isWebRTCSupported=ee,Z.isORTCSupported="undefined"!=typeof RTCIceGatherer;var te=!1;(Z.browser.isChrome&&Z.browser.version>=35||Z.browser.isFirefox&&Z.browser.version>=34||Z.browser.isEdge&&Z.browser.version>=17||"Android"===Z.osName&&Z.browser.isChrome)&&(te=!0),/^(https:|chrome-extension:)$/g.test(location.protocol||"")||("undefined"!=typeof document&&"string"==typeof document.domain&&document.domain.search&&-1===document.domain.search(/localhost|127.0./g)&&(Z.browser.isChrome||Z.browser.isEdge||Z.browser.isOpera)||Z.browser.isFirefox)&&(te=!1),Z.isScreenCapturingSupported=te;var ne={isSupported:!1,isCreateMediaStreamSourceSupported:!1};g(c=["AudioContext","webkitAudioContext","mozAudioContext","msAudioContext"]).call(c,(function(e){ne.isSupported||e in window&&(ne.isSupported=!0,window[e]&&"createMediaStreamSource"in window[e].prototype&&(ne.isCreateMediaStreamSourceSupported=!0))})),Z.isAudioContextSupported=ne.isSupported,Z.isCreateMediaStreamSourceSupported=ne.isCreateMediaStreamSourceSupported;var re=!1;Z.browser.isChrome&&Z.browser.version>31&&(re=!0),Z.isRtpDataChannelsSupported=re;var oe=!1;(Z.browser.isFirefox&&Z.browser.version>28||Z.browser.isChrome&&Z.browser.version>25||Z.browser.isOpera&&Z.browser.version>=11)&&(oe=!0),Z.isSctpDataChannelsSupported=oe,Z.isMobileDevice=y;var ae=!1;(v.getUserMedia||v.mediaDevices&&v.mediaDevices.getUserMedia)&&(ae=!0),Z.browser.isChrome&&Z.browser.version>=46&&!/^(https:|chrome-extension:)$/g.test(location.protocol||"")&&"undefined"!=typeof document&&"string"==typeof document.domain&&document.domain.search&&-1===document.domain.search(/localhost|127.0./g)&&(ae="Requires HTTPs"),"Nodejs"===Z.osName&&(ae=!1),Z.isGetUserMediaSupported=ae;var ie,ue,le,se="";screen.width&&(se+=(screen.width?screen.width:"")+" x "+(screen.height?screen.height:"")),Z.displayResolution=se,Z.displayAspectRatio=(ie=screen.width,ue=screen.height,le=function e(t,n){return 0==n?t:e(n,t%n)}(ie,ue),ie/le/(ue/le)).toFixed(2),Z.isCanvasSupportsStreamCapturing=P,Z.isVideoSupportsStreamCapturing=B,"Chrome"==Z.browser.name&&Z.browser.version>=53&&(Z.isCanvasSupportsStreamCapturing||(Z.isCanvasSupportsStreamCapturing="Requires chrome flag: enable-experimental-web-platform-features"),Z.isVideoSupportsStreamCapturing||(Z.isVideoSupportsStreamCapturing="Requires chrome flag: enable-experimental-web-platform-features")),Z.DetectLocalIPAddress=function(e,t){if(Z.isWebRTCSupported){var n=!0,r=!0;!function(e,t){if("undefined"!=typeof document&&"function"==typeof document.getElementById){var n={},r=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection;if(!r){var o=document.getElementById("iframe");if(!o)return;var a=o.contentWindow;r=a.RTCPeerConnection||a.mozRTCPeerConnection||a.webkitRTCPeerConnection}if(r){var i=null;"Chrome"===Z.browser&&Z.browser.version<58&&(i={optional:[{RtpDataChannels:!0}]});var u=new r({iceServers:[{urls:"stun:stun.l.google.com:19302"}]},i);if(t&&(u.addStream?u.addStream(t):u.addTrack&&t.getTracks()[0]&&u.addTrack(t.getTracks()[0],t)),u.onicecandidate=function(e){e.candidate&&e.candidate.candidate?l(e.candidate.candidate):l()},!t)try{u.createDataChannel("sctp",{})}catch(e){}Z.isPromisesSupported?u.createOffer().then((function(e){u.setLocalDescription(e).then(s)})):u.createOffer((function(e){u.setLocalDescription(e,s,(function(){}))}),(function(){}))}}function l(t){if(t){var r=V.exec(t);if(r){var o=r[1];t.match(j),void 0===n[o]&&e(o),n[o]=!0}}else e()}function s(){var e;g(e=u.localDescription.sdp.split("\n")).call(e,(function(e){e&&0===p(e).call(e,"a=candidate:")&&l(e)}))}}((function(t){t?t.match(j)?e("Local: "+t,n=!1,r):t.match(G)?e("Public: "+t,n,r=!1):e("Public: "+t,n,r):e()}),t)}},Z.isWebSocketsSupported="WebSocket"in window&&2===window.WebSocket.CLOSING,Z.isWebSocketsBlocked=!Z.isWebSocketsSupported,"Nodejs"===Z.osName&&(Z.isWebSocketsSupported=!0,Z.isWebSocketsBlocked=!1),Z.checkWebSocketsSupport=function(e){e=e||function(){};try{var t,n=new WebSocket("wss://echo.websocket.org:443/");n.onopen=function(){Z.isWebSocketsBlocked=!1,t=(new Date).getTime(),n.send("ping")},n.onmessage=function(){Z.WebsocketLatency=(new Date).getTime()-t+"ms",e(),n.close(),n=null},n.onerror=function(){Z.isWebSocketsBlocked=!0,e()}}catch(t){Z.isWebSocketsBlocked=!0,e()}},Z.load=function(e){!function(e){var t,n;if(K)if(!v.enumerateDevices&&window.MediaStreamTrack&&window.MediaStreamTrack.getSources&&(v.enumerateDevices=f(t=window.MediaStreamTrack.getSources).call(t,window.MediaStreamTrack)),!v.enumerateDevices&&v.enumerateDevices&&(v.enumerateDevices=f(n=v.enumerateDevices).call(n,v)),v.enumerateDevices){z=[],W=[],H=[],Y=[],q=!1,$=!1,J=!1,X=!1,Q=!1;var r={};v.enumerateDevices((function(t){g(t).call(t,(function(e){var t={};for(var n in e)try{"function"!=typeof e[n]&&(t[n]=e[n])}catch(e){}r[t.deviceId+t.label+t.kind]||("audio"===t.kind&&(t.kind="audioinput"),"video"===t.kind&&(t.kind="videoinput"),t.deviceId||(t.deviceId=t.id),t.id||(t.id=t.deviceId),t.label?("videoinput"!==t.kind||Q||(Q=!0),"audioinput"!==t.kind||X||(X=!0)):(t.isCustomLabel=!0,"videoinput"===t.kind?t.label="Camera "+(Y.length+1):"audioinput"===t.kind?t.label="Microphone "+(W.length+1):"audiooutput"===t.kind?t.label="Speaker "+(H.length+1):t.label="Please invoke getUserMedia once.",void 0!==Z&&Z.browser.isChrome&&Z.browser.version>=46&&!/^(https:|chrome-extension:)$/g.test(location.protocol||"")&&"undefined"!=typeof document&&"string"==typeof document.domain&&document.domain.search&&-1===document.domain.search(/localhost|127.0./g)&&(t.label="HTTPs is required to get label of this "+t.kind+" device.")),"audioinput"===t.kind&&(q=!0,-1===p(W).call(W,t)&&W.push(t)),"audiooutput"===t.kind&&($=!0,-1===p(H).call(H,t)&&H.push(t)),"videoinput"===t.kind&&(J=!0,-1===p(Y).call(Y,t)&&Y.push(t)),z.push(t),r[t.deviceId+t.label+t.kind]=t)})),void 0!==Z&&(Z.MediaDevices=z,Z.hasMicrophone=q,Z.hasSpeakers=$,Z.hasWebcam=J,Z.isWebsiteHasWebcamPermissions=Q,Z.isWebsiteHasMicrophonePermissions=X,Z.audioInputDevices=W,Z.audioOutputDevices=H,Z.videoInputDevices=Y),e&&e()}))}else e&&e();else e&&e()}(e=e||function(){})},Z.MediaDevices=void 0!==z?z:[],Z.hasMicrophone=q,Z.hasSpeakers=$,Z.hasWebcam=J,Z.isWebsiteHasWebcamPermissions=Q,Z.isWebsiteHasMicrophonePermissions=X,Z.audioInputDevices=W,Z.audioOutputDevices=H,Z.videoInputDevices=Y;var ce=!1;"undefined"!=typeof document&&"function"==typeof document.createElement&&"setSinkId"in document.createElement("video")&&(ce=!0),Z.isSetSinkIdSupported=ce;var fe=!1;Z.browser.isFirefox&&"undefined"!=typeof mozRTCPeerConnection?"getSenders"in mozRTCPeerConnection.prototype&&(fe=!0):Z.browser.isChrome&&"undefined"!=typeof webkitRTCPeerConnection&&"getSenders"in webkitRTCPeerConnection.prototype&&(fe=!0),Z.isRTPSenderReplaceTracksSupported=fe;var de=!1;Z.browser.isFirefox&&Z.browser.version>38&&(de=!0),Z.isRemoteStreamProcessingSupported=de;var pe=!1;"undefined"!=typeof MediaStreamTrack&&"applyConstraints"in MediaStreamTrack.prototype&&(pe=!0),Z.isApplyConstraintsSupported=pe;var he=!1;Z.browser.isFirefox&&Z.browser.version>=43&&(he=!0),Z.isMultiMonitorScreenCapturingSupported=he,Z.isPromisesSupported=!!("Promise"in window),Z.version="1.3.9",void 0===Z&&(window.DetectRTC={});var me=window.MediaStream;void 0===me&&"undefined"!=typeof webkitMediaStream&&(me=webkitMediaStream),Z.MediaStream=void 0!==me&&"function"==typeof me&&R(me.prototype),"undefined"!=typeof MediaStreamTrack?Z.MediaStreamTrack=R(MediaStreamTrack.prototype):Z.MediaStreamTrack=!1;var ve=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection;Z.RTCPeerConnection=void 0!==ve&&R(ve.prototype),window.DetectRTC=Z,e.exports=Z,void 0===(o=function(){return Z}.apply(t,[]))||(e.exports=o)}()}).call(this,n(2),n(12))},function(e,t,n){(function(e,r,o,a){var i;function u(e){return(u="function"==typeof l&&"symbol"==X(d)?function(e){return X(e)}:function(e){return e&&"function"==typeof l&&e.constructor===l&&e!==l.prototype?"symbol":X(e)})(e)}var s,c=(s=(s="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||e,function(e){var t,a,i,l,c,d=void 0!==(e=e||{})?e:{};d.ready=new j((function(e,t){l=e,c=t}));var y,_={};for(y in d)d.hasOwnProperty(y)&&(_[y]=d[y]);var b=[],E="./this.program",w=function(e,t){throw t},C=!1,S=!1,O=!1,T=!1;C="object"===("undefined"==typeof window?"undefined":u(window)),S="function"==typeof importScripts,O="object"===(void 0===r?"undefined":u(r))&&"object"===u(r.versions)&&"string"==typeof r.versions.node,T=!C&&!O&&!S;var R,M,A,N,I,D="";O?(D="".concat(S?n(7).dirname(D):o,"/"),R=function(e,t){return N||(N=n(21)),I||(I=n(7)),e=I.normalize(e),N.readFileSync(e,t?null:"utf8")},A=function(e){var t=R(e,!0);return t.buffer||(t=new Uint8Array(t)),W(t.buffer),t},r.argv.length>1&&(E=r.argv[1].replace(/\\/g,"/")),b=h(t=r.argv).call(t,2),r.on("uncaughtException",(function(e){if(!(e instanceof rt))throw e})),r.on("unhandledRejection",ye),w=function(e){r.exit(e)},d.inspect=function(){return"[Emscripten Module object]"}):T?("undefined"!=typeof read&&(R=function(e){return read(e)}),A=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(W("object"===u(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?b=scriptArgs:void 0!==arguments&&(b=arguments),"function"==typeof quit&&(w=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(C||S)&&(S?D=self.location.href:"undefined"!=typeof document&&document.currentScript&&(D=document.currentScript.src),s&&(D=s),D=0!==p(D).call(D,"blob:")?D.substr(0,k(D).call(D,"/")+1):"",R=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},S&&(A=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),M=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)});var L,x,P,B=d.print||f(a=console.log).call(a,console),U=d.printErr||f(i=console.warn).call(i,console);for(y in _)_.hasOwnProperty(y)&&(d[y]=_[y]);_=null,d.arguments&&(b=d.arguments),d.thisProgram&&(E=d.thisProgram),d.quit&&(w=d.quit),d.wasmBinary&&(L=d.wasmBinary),d.noExitRuntime&&(x=d.noExitRuntime),"object"!==("undefined"==typeof WebAssembly?"undefined":u(WebAssembly))&&ye("no native wasm support detected");var F=!1;function W(e,t){e||ye("Assertion failed: ".concat(t))}var H,Y,K,q,$="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function J(e,t,n){for(var r=t+n,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.subarray&&$)return $.decode(e.subarray(t,o));for(var a="";t>10,56320|1023&s)}}else a+=String.fromCharCode((31&i)<<6|u)}else a+=String.fromCharCode(i)}return a}function X(e,t){return e?J(K,e,t):""}function Q(e,t,n){for(var r=0;r>0]=e.charCodeAt(r);n||(Y[t>>0]=0)}function Z(e,t){return e%t>0&&(e+=t-e%t),e}function ee(e){H=e,d.HEAP8=Y=new Int8Array(e),d.HEAP16=new Int16Array(e),d.HEAP32=q=new Int32Array(e),d.HEAPU8=K=new Uint8Array(e),d.HEAPU16=new Uint16Array(e),d.HEAPU32=new Uint32Array(e),d.HEAPF32=new Float32Array(e),d.HEAPF64=new Float64Array(e)}d.INITIAL_MEMORY;var te,ne=[],re=[],oe=[],ae=[];function ie(){if(d.preRun)for("function"==typeof d.preRun&&(d.preRun=[d.preRun]);d.preRun.length;)ce(d.preRun.shift());Me(ne)}function ue(){Me(re)}function le(){Me(oe)}function se(){if(d.postRun)for("function"==typeof d.postRun&&(d.postRun=[d.postRun]);d.postRun.length;)fe(d.postRun.shift());Me(ae)}function ce(e){ne.unshift(e)}function fe(e){ae.unshift(e)}re.push({func:function(){tt()}});var de=0,pe=null,he=null;function me(e){de++,d.monitorRunDependencies&&d.monitorRunDependencies(de)}function ve(e){if(de--,d.monitorRunDependencies&&d.monitorRunDependencies(de),0==de&&(null!==pe&&(clearInterval(pe),pe=null),he)){var t=he;he=null,t()}}function ye(e){d.onAbort&&d.onAbort(e),U(e+=""),F=!0,e="abort(".concat(e,"). Build with -s ASSERTIONS=1 for more info.");var t=new WebAssembly.RuntimeError(e);throw c(t),t}function _e(e,t){return V(String.prototype)?V(e).call(e,t):0===p(e).call(e,t)}d.preloadedImages={},d.preloadedAudios={};var ge="data:application/octet-stream;base64,";function be(e){return _e(e,ge)}var Ee="file://";function we(e){return _e(e,Ee)}var Ce,Se="https://static.bandyer.com/corporate/virtual_backgrounds/libs/web/1.0/wasm/tflite.wasm";function Oe(e){try{if(e==Se&&L)return new Uint8Array(L);if(A)return A(e);throw"both async and sync fetching of the wasm failed"}catch(e){ye(e)}}function Te(){if(!L&&(C||S)){if("function"==typeof fetch&&!we(Se))return fetch(Se,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '".concat(Se,"'");return e.arrayBuffer()})).catch((function(){return Oe(Se)}));if(M)return new j((function(e,t){M(Se,(function(t){e(new Uint8Array(t))}),t)}))}return j.resolve().then((function(){return Oe(Se)}))}function Re(){var e={a:et};function t(e,t){var n=e.exports;d.asm=n,ee((P=d.asm.q).buffer),te=d.asm.D,ve()}function n(e){t(e.instance)}function r(t){return Te().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){U("failed to asynchronously prepare wasm: ".concat(e)),ye(e)}))}if(me(),d.instantiateWasm)try{return d.instantiateWasm(e,t)}catch(e){return U("Module.instantiateWasm callback failed with error: ".concat(e)),!1}return(L||"function"!=typeof WebAssembly.instantiateStreaming||be(Se)||we(Se)||"function"!=typeof fetch?r(n):fetch(Se,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return U("wasm streaming compile failed: ".concat(e)),U("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(c),{}}function Me(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var n=t.func;"number"==typeof n?void 0===t.arg?te.get(n)():te.get(n)(t.arg):n(void 0===t.arg?null:t.arg)}else t(d)}}function Ae(){ye()}Ce=O?function(){var e=r.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};var Ne=!0;function Ie(e){return q[nt()>>2]=e,e}function ke(e,t){var n;if(0===e)n=G();else{if(1!==e&&4!==e||!Ne)return Ie(28),-1;n=Ce()}return q[t>>2]=n/1e3|0,q[t+4>>2]=n%1e3*1e3*1e3|0,0}function De(e,t){ye("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function Le(e,t){ye("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function xe(e,t,n){z(K).call(K,e,t,t+n)}function Pe(){return K.length}function Be(e){try{return P.grow(e-H.byteLength+65535>>>16),ee(P.buffer),1}catch(e){}}function Ue(e){e>>>=0;var t=Pe();if(e>2147483648)return!1;for(var n=1;n<=4;n*=2){var r=t*(1+.2/n);if(r=Math.min(r,e+100663296),Be(Math.min(2147483648,Z(Math.max(16777216,e,r),65536))))return!0}return!1}function Fe(e){for(var t=Ce();Ce()-t0||(ie(),de>0||(d.setStatus?(d.setStatus("Running..."),m((function(){m((function(){d.setStatus("")}),1),t()}),1)):t()))}function at(e,t){t&&x&&0===e||(x||(d.onExit&&d.onExit(e),F=!0),w(e,new rt(e)))}if(he=function e(){Ze||ot(),Ze||(he=e)},d.run=ot,d.preInit)for("function"==typeof d.preInit&&(d.preInit=[d.preInit]);d.preInit.length>0;)d.preInit.pop()();return x=!0,ot(),e.ready});"object"===u(t)&&"object"===u(a)?a.exports=c:void 0===(i=function(){return c}.apply(t,[]))||(a.exports=i)}).call(this,"/index.js",n(2),"/",n(20)(e))},function(e,t,n){(function(e,r,o,a){var i;function u(e){return(u="function"==typeof l&&"symbol"==X(d)?function(e){return X(e)}:function(e){return e&&"function"==typeof l&&e.constructor===l&&e!==l.prototype?"symbol":X(e)})(e)}var s,c=(s=(s="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||e,function(e){var t,a,i,l,c,d=void 0!==(e=e||{})?e:{};d.ready=new j((function(e,t){l=e,c=t}));var y,_={};for(y in d)d.hasOwnProperty(y)&&(_[y]=d[y]);var b=[],E="./this.program",w=function(e,t){throw t},C=!1,S=!1,O=!1,T=!1;C="object"===("undefined"==typeof window?"undefined":u(window)),S="function"==typeof importScripts,O="object"===(void 0===r?"undefined":u(r))&&"object"===u(r.versions)&&"string"==typeof r.versions.node,T=!C&&!O&&!S;var R,M,A,N,I,D="";O?(D="".concat(S?n(7).dirname(D):o,"/"),R=function(e,t){return N||(N=n(21)),I||(I=n(7)),e=I.normalize(e),N.readFileSync(e,t?null:"utf8")},A=function(e){var t=R(e,!0);return t.buffer||(t=new Uint8Array(t)),W(t.buffer),t},r.argv.length>1&&(E=r.argv[1].replace(/\\/g,"/")),b=h(t=r.argv).call(t,2),r.on("uncaughtException",(function(e){if(!(e instanceof rt))throw e})),r.on("unhandledRejection",ye),w=function(e){r.exit(e)},d.inspect=function(){return"[Emscripten Module object]"}):T?("undefined"!=typeof read&&(R=function(e){return read(e)}),A=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(W("object"===u(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?b=scriptArgs:void 0!==arguments&&(b=arguments),"function"==typeof quit&&(w=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(C||S)&&(S?D=self.location.href:"undefined"!=typeof document&&document.currentScript&&(D=document.currentScript.src),s&&(D=s),D=0!==p(D).call(D,"blob:")?D.substr(0,k(D).call(D,"/")+1):"",R=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},S&&(A=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),M=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)});var L,x,P,B=d.print||f(a=console.log).call(a,console),U=d.printErr||f(i=console.warn).call(i,console);for(y in _)_.hasOwnProperty(y)&&(d[y]=_[y]);_=null,d.arguments&&(b=d.arguments),d.thisProgram&&(E=d.thisProgram),d.quit&&(w=d.quit),d.wasmBinary&&(L=d.wasmBinary),d.noExitRuntime&&(x=d.noExitRuntime),"object"!==("undefined"==typeof WebAssembly?"undefined":u(WebAssembly))&&ye("no native wasm support detected");var F=!1;function W(e,t){e||ye("Assertion failed: ".concat(t))}var H,Y,K,q,$="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function J(e,t,n){for(var r=t+n,o=t;e[o]&&!(o>=r);)++o;if(o-t>16&&e.subarray&&$)return $.decode(e.subarray(t,o));for(var a="";t>10,56320|1023&s)}}else a+=String.fromCharCode((31&i)<<6|u)}else a+=String.fromCharCode(i)}return a}function X(e,t){return e?J(K,e,t):""}function Q(e,t,n){for(var r=0;r>0]=e.charCodeAt(r);n||(Y[t>>0]=0)}function Z(e,t){return e%t>0&&(e+=t-e%t),e}function ee(e){H=e,d.HEAP8=Y=new Int8Array(e),d.HEAP16=new Int16Array(e),d.HEAP32=q=new Int32Array(e),d.HEAPU8=K=new Uint8Array(e),d.HEAPU16=new Uint16Array(e),d.HEAPU32=new Uint32Array(e),d.HEAPF32=new Float32Array(e),d.HEAPF64=new Float64Array(e)}d.INITIAL_MEMORY;var te,ne=[],re=[],oe=[],ae=[];function ie(){if(d.preRun)for("function"==typeof d.preRun&&(d.preRun=[d.preRun]);d.preRun.length;)ce(d.preRun.shift());Me(ne)}function ue(){Me(re)}function le(){Me(oe)}function se(){if(d.postRun)for("function"==typeof d.postRun&&(d.postRun=[d.postRun]);d.postRun.length;)fe(d.postRun.shift());Me(ae)}function ce(e){ne.unshift(e)}function fe(e){ae.unshift(e)}re.push({func:function(){tt()}});var de=0,pe=null,he=null;function me(e){de++,d.monitorRunDependencies&&d.monitorRunDependencies(de)}function ve(e){if(de--,d.monitorRunDependencies&&d.monitorRunDependencies(de),0==de&&(null!==pe&&(clearInterval(pe),pe=null),he)){var t=he;he=null,t()}}function ye(e){d.onAbort&&d.onAbort(e),U(e+=""),F=!0,e="abort(".concat(e,"). Build with -s ASSERTIONS=1 for more info.");var t=new WebAssembly.RuntimeError(e);throw c(t),t}function _e(e,t){return V(String.prototype)?V(e).call(e,t):0===p(e).call(e,t)}d.preloadedImages={},d.preloadedAudios={};var ge="data:application/octet-stream;base64,";function be(e){return _e(e,ge)}var Ee="file://";function we(e){return _e(e,Ee)}var Ce,Se="https://static.bandyer.com/corporate/virtual_backgrounds/libs/web/1.0/wasm/tflite-simd.wasm";function Oe(e){try{if(e==Se&&L)return new Uint8Array(L);if(A)return A(e);throw"both async and sync fetching of the wasm failed"}catch(e){ye(e)}}function Te(){if(!L&&(C||S)){if("function"==typeof fetch&&!we(Se))return fetch(Se,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '".concat(Se,"'");return e.arrayBuffer()})).catch((function(){return Oe(Se)}));if(M)return new j((function(e,t){M(Se,(function(t){e(new Uint8Array(t))}),t)}))}return j.resolve().then((function(){return Oe(Se)}))}function Re(){var e={a:et};function t(e,t){var n=e.exports;d.asm=n,ee((P=d.asm.q).buffer),te=d.asm.D,ve()}function n(e){t(e.instance)}function r(t){return Te().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){U("failed to asynchronously prepare wasm: ".concat(e)),ye(e)}))}if(me(),d.instantiateWasm)try{return d.instantiateWasm(e,t)}catch(e){return U("Module.instantiateWasm callback failed with error: ".concat(e)),!1}return(L||"function"!=typeof WebAssembly.instantiateStreaming||be(Se)||we(Se)||"function"!=typeof fetch?r(n):fetch(Se,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return U("wasm streaming compile failed: ".concat(e)),U("falling back to ArrayBuffer instantiation"),r(n)}))}))).catch(c),{}}function Me(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var n=t.func;"number"==typeof n?void 0===t.arg?te.get(n)():te.get(n)(t.arg):n(void 0===t.arg?null:t.arg)}else t(d)}}function Ae(){ye()}Ce=O?function(){var e=r.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};var Ne=!0;function Ie(e){return q[nt()>>2]=e,e}function ke(e,t){var n;if(0===e)n=G();else{if(1!==e&&4!==e||!Ne)return Ie(28),-1;n=Ce()}return q[t>>2]=n/1e3|0,q[t+4>>2]=n%1e3*1e3*1e3|0,0}function De(e,t){ye("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function Le(e,t){ye("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function xe(e,t,n){z(K).call(K,e,t,t+n)}function Pe(){return K.length}function Be(e){try{return P.grow(e-H.byteLength+65535>>>16),ee(P.buffer),1}catch(e){}}function Ue(e){e>>>=0;var t=Pe();if(e>2147483648)return!1;for(var n=1;n<=4;n*=2){var r=t*(1+.2/n);if(r=Math.min(r,e+100663296),Be(Math.min(2147483648,Z(Math.max(16777216,e,r),65536))))return!0}return!1}function Fe(e){for(var t=Ce();Ce()-t0||(ie(),de>0||(d.setStatus?(d.setStatus("Running..."),m((function(){m((function(){d.setStatus("")}),1),t()}),1)):t()))}function at(e,t){t&&x&&0===e||(x||(d.onExit&&d.onExit(e),F=!0),w(e,new rt(e)))}if(he=function e(){Ze||ot(),Ze||(he=e)},d.run=ot,d.preInit)for("function"==typeof d.preInit&&(d.preInit=[d.preInit]);d.preInit.length>0;)d.preInit.pop()();return x=!0,ot(),e.ready});"object"===u(t)&&"object"===u(a)?a.exports=c:void 0===(i=function(){return c}.apply(t,[]))||(a.exports=i)}).call(this,"/index.js",n(2),"/",n(20)(e))},function(e,t,n){"use strict";function r(e){return(r="function"==typeof l&&"symbol"==X(d)?function(e){return X(e)}:function(e){return e&&"function"==typeof l&&e.constructor===l&&e!==l.prototype?"symbol":X(e)})(e)}function o(e){return(o="function"==typeof l&&"symbol"===r(d)?function(e){return r(e)}:function(e){return e&&"function"==typeof l&&e.constructor===l&&e!==l.prototype?"symbol":r(e)})(e)}n.r(t),n.d(t,"BlurStack",(function(){return m})),n.d(t,"canvasRGB",(function(){return p})),n.d(t,"canvasRGBA",(function(){return c})),n.d(t,"image",(function(){return u})),n.d(t,"imageDataRGB",(function(){return h})),n.d(t,"imageDataRGBA",(function(){return f}));var a=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],i=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function u(e,t,n,r,o,a){if("string"==typeof e&&(e=document.getElementById(e)),e&&"naturalWidth"in e){var i=o?"offset":"natural",u=e[i+"Width"],l=e[i+"Height"];if("string"==typeof t&&(t=document.getElementById(t)),t&&"getContext"in t){a||(t.style.width=u+"px",t.style.height=l+"px"),t.width=u,t.height=l;var s=t.getContext("2d");s.clearRect(0,0,u,l),s.drawImage(e,0,0,e.naturalWidth,e.naturalHeight,0,0,u,l),isNaN(n)||n<1||(r?c(t,0,0,u,l,n):p(t,0,0,u,l,n))}}}function s(e,t,n,r,a){if("string"==typeof e&&(e=document.getElementById(e)),!e||"object"!==o(e)||!("getContext"in e))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=e.getContext("2d");try{return i.getImageData(t,n,r,a)}catch(e){throw new Error("unable to access image data: "+e)}}function c(e,t,n,r,o,a){if(!(isNaN(a)||a<1)){a|=0;var i=s(e,t,n,r,o);i=f(i,0,0,r,o,a),e.getContext("2d").putImageData(i,t,n)}}function f(e,t,n,r,o,u){for(var l,s=e.data,c=2*u+1,f=r-1,d=o-1,p=u+1,h=p*(p+1)/2,v=new m,y=v,_=1;_>S;if(s[w+3]=X,0!==X){var Q=255/X;s[w]=(F*C>>S)*Q,s[w+1]=(j*C>>S)*Q,s[w+2]=(V*C>>S)*Q}else s[w]=s[w+1]=s[w+2]=0;F-=x,j-=P,V-=B,G-=U,x-=g.r,P-=g.g,B-=g.b,U-=g.a;var Z=J+u+1;Z=E+(Z>S,se>0?(se=255/se,s[Re]=(he*C>>S)*se,s[Re+1]=(me*C>>S)*se,s[Re+2]=(ve*C>>S)*se):s[Re]=s[Re+1]=s[Re+2]=0,he-=ce,me-=fe,ve-=de,ye-=pe,ce-=g.r,fe-=g.g,de-=g.b,pe-=g.a,Re=ae+((Re=Te+p)>S,s[T+1]=x*C>>S,s[T+2]=P*C>>S,L-=I,x-=k,P-=D,I-=E.r,k-=E.g,D-=E.b,g=O+((g=G+u+1)>S,s[g+1]=X*C>>S,s[g+2]=Q*C>>S,J-=K,X-=q,Q-=$,K-=E.r,q-=E.g,$-=E.b,g=z+((g=ae+p)0&&void 0!==arguments[0]?arguments[0]:1;return m&&o(Uint32Array.of(1836278016,e))},get supportStreaming(){return y(a.instantiateStreaming)},feature:{get bigInt(){return o(g,!0)},get bulk(){return o(b)},get exceptions(){return o(E)},get mutableGlobal(){return o(w)},get multiValue(){return o(C)},get saturateConversions(){return o(S)},get signExtensions(){return o(O)},get tailCall(){return o(T)},get threads(){return o(R)},get simd(){return o(M)},get references(){return o(N)},get typeReflection(){return y(a.Memory.type)},get funcReferences(){return y(a.Function)}}}},function(e,t,n){var r=n(22),o=n(8)("socket.io-client:url");e.exports=function(e,t){var n,a=e;t=t||"undefined"!=typeof location&&location,null==e&&(e=t.protocol+"//"+t.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?t.protocol+e:t.host+e),/^(https?|wss?):\/\//.test(e)||(o("protocol-less url %s",e),e=void 0!==t?t.protocol+"//"+e:"https://"+e),o("parse %s",e),a=r(e)),a.port||(/^(http|ws)$/.test(a.protocol)?a.port="80":/^(http|ws)s$/.test(a.protocol)&&(a.port="443")),a.path=a.path||"/";var i=-1!==p(n=a.host).call(n,":")?"["+a.host+"]":a.host;return a.id=a.protocol+"://"+i+":"+a.port,a.href=a.protocol+"://"+i+(t&&t.port===a.port?"":":"+a.port),a}},function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e,o=r,a=+new Date,i=a-(n||a);o.diff=i,o.prev=n,o.curr=a,n=a;for(var u=new Array(arguments.length),l=0;l0)return function(e){if(!((e=String(e)).length>100)){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=F(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"days":case"day":case"d":return n*i;case"hours":case"hour":case"hrs":case"hr":case"h":return n*a;case"minutes":case"minute":case"mins":case"min":case"m":return n*o;case"seconds":case"second":case"secs":case"sec":case"s":return n*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===s&&!1===isNaN(e))return t.long?u(l=e,i,"day")||u(l,a,"hour")||u(l,o,"minute")||u(l,r,"second")||l+" ms":function(e){return e>=i?Math.round(e/i)+"d":e>=a?Math.round(e/a)+"h":e>=o?Math.round(e/o)+"m":e>=r?Math.round(e/r)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+I(e))}},function(e,t,n){(function(r){function o(e){return(o="function"==typeof l&&"symbol"==X(d)?function(e){return X(e)}:function(e){return e&&"function"==typeof l&&e.constructor===l&&e!==l.prototype?"symbol":X(e)})(e)}function a(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(57)).log=function(){return"object"===("undefined"==typeof console?"undefined":o(console))&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;y(e).call(e,1,0,r,"color: inherit");var o=0,a=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(o++,"%c"===e&&(a=o))})),y(e).call(e,a,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=a,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&b(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return I(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(a())}).call(this,n(2))},function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e,o=r,a=+new Date,i=a-(n||a);o.diff=i,o.prev=n,o.curr=a,n=a;for(var u=new Array(arguments.length),l=0;l0)return function(e){if(!((e=String(e)).length>100)){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=F(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"days":case"day":case"d":return n*i;case"hours":case"hour":case"hrs":case"hr":case"h":return n*a;case"minutes":case"minute":case"mins":case"min":case"m":return n*o;case"seconds":case"second":case"secs":case"sec":case"s":return n*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===s&&!1===isNaN(e))return t.long?u(l=e,i,"day")||u(l,a,"hour")||u(l,o,"minute")||u(l,r,"second")||l+" ms":function(e){return e>=i?Math.round(e/i)+"d":e>=a?Math.round(e/a)+"h":e>=o?Math.round(e/o)+"m":e>=r?Math.round(e/r)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+I(e))}},function(e,t,n){function r(e){return(r="function"==typeof l&&"symbol"==X(d)?function(e){return X(e)}:function(e){return e&&"function"==typeof l&&e.constructor===l&&e!==l.prototype?"symbol":X(e)})(e)}var o=n(23),a=n(24),i=Object.prototype.toString,u="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===i.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===i.call(File);t.deconstructPacket=function(e){var t=[],n=e.data,i=e;return i.data=function e(t,n){if(!t)return t;if(a(t)){var i={_placeholder:!0,num:n.length};return n.push(t),i}if(o(t)){for(var u=new Array(t.length),l=0;l0?i-4:i;for(n=0;n>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===u&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===u&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,a=[],i=0,u=n-o;iu?u:i+16383));return 1===o?(t=e[n-1],a.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],a.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),a.join("")};for(var r=[],o=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,l=i.length;u0)throw new Error("Invalid string. Length must be a multiple of 4");var n=p(e).call(e,"=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var o,a,i=[],u=t;u>18&63]+r[a>>12&63]+r[a>>6&63]+r[63&a]);return i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var a,i,u=8*o-r-1,l=(1<>1,c=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,a=p&(1<<-c)-1,p>>=-c,c+=u;c>0;a=256*a+e[t+f],f+=d,c-=8);for(i=a&(1<<-c)-1,a>>=-c,c+=r;c>0;i=256*i+e[t+f],f+=d,c-=8);if(0===a)a=1-s;else{if(a===l)return i?NaN:1/0*(p?-1:1);i+=Math.pow(2,r),a-=s}return(p?-1:1)*i*Math.pow(2,a-r)},t.write=function(e,t,n,r,o,a){var i,u,l,s=8*a-o-1,c=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),(t+=i+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(i++,l/=2),i+f>=c?(u=0,i=c):i+f>=1?(u=(t*l-1)*Math.pow(2,o),i+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),i=0));o>=8;e[n+p]=255&u,p+=h,u/=256,o-=8);for(i=i<0;e[n+p]=255&i,p+=h,i/=256,s-=8);e[n+p-h]|=128*m}},function(e,t){var n={}.toString;e.exports=P||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){e.exports=n(64),e.exports.parser=n(4)},function(e,t,n){function r(e){return(r="function"==typeof l&&"symbol"==X(d)?function(e){return X(e)}:function(e){return e&&"function"==typeof l&&e.constructor===l&&e!==l.prototype?"symbol":X(e)})(e)}var o=n(26),a=n(3),i=n(11)("engine.io-client:socket"),u=n(30),s=n(4),c=n(22),f=n(9);function h(e,t){if(!(this instanceof h))return new h(e,t);t=t||{},e&&"object"===r(e)&&(t=e,e=null),e?(e=c(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=c(t.host).host),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=t.query||{},"string"==typeof this.query&&(this.query=f.decode(this.query)),this.upgrade=!1!==t.upgrade,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=!1!==t.jsonp,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.timestampRequests,this.transports=t.transports||["polling","websocket"],this.transportOptions=t.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=!1!==t.perMessageDeflate&&(t.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||null,this.key=t.key||null,this.passphrase=t.passphrase||null,this.cert=t.cert||null,this.ca=t.ca||null,this.ciphers=t.ciphers||null,this.rejectUnauthorized=void 0===t.rejectUnauthorized||t.rejectUnauthorized,this.forceNode=!!t.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(t.extraHeaders&&R(t.extraHeaders).length>0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}e.exports=h,h.priorWebsocketSuccess=!1,a(h.prototype),h.protocol=s.protocol,h.Socket=h,h.Transport=n(16),h.transports=n(26),h.parser=n(4),h.prototype.createTransport=function(e){i('creating transport "%s"',e);var t=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(this.query);t.EIO=s.protocol,t.transport=e;var n=this.transportOptions[e]||{};return this.id&&(t.sid=this.id),new o[e]({query:t,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},h.prototype.open=function(){var e,t;if(this.rememberUpgrade&&h.priorWebsocketSuccess&&-1!==p(e=this.transports).call(e,"websocket"))t="websocket";else{if(0===this.transports.length){var n=this;return void m((function(){n.emit("error","No transports available")}),0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},h.prototype.setTransport=function(e){i("setting transport %s",e.name);var t=this;this.transport&&(i("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")}))},h.prototype.probe=function(e){i('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),n=!1,r=this;function o(){if(r.onlyBinaryUpgrades){var o=!this.supportsBinary&&r.transport.supportsBinary;n=n||o}n||(i('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",(function(o){if(!n)if("pong"===o.type&&"probe"===o.data){if(i('probe transport "%s" pong',e),r.upgrading=!0,r.emit("upgrading",t),!t)return;h.priorWebsocketSuccess="websocket"===t.name,i('pausing current transport "%s"',r.transport.name),r.transport.pause((function(){n||"closed"!==r.readyState&&(i("changing transport and sending upgrade packet"),f(),r.setTransport(t),t.send([{type:"upgrade"}]),r.emit("upgrade",t),t=null,r.upgrading=!1,r.flush())}))}else{i('probe transport "%s" failed',e);var a=new Error("probe error");a.transport=t.name,r.emit("upgradeError",a)}})))}function a(){n||(n=!0,f(),t.close(),t=null)}function u(n){var o=new Error("probe error: "+n);o.transport=t.name,a(),i('probe transport "%s" failed because of error: %s',e,n),r.emit("upgradeError",o)}function l(){u("transport closed")}function s(){u("socket closed")}function c(e){t&&e.name!==t.name&&(i('"%s" works - aborting "%s"',e.name,t.name),a())}function f(){t.removeListener("open",o),t.removeListener("error",u),t.removeListener("close",l),r.removeListener("close",s),r.removeListener("upgrading",c)}h.priorWebsocketSuccess=!1,t.once("open",o),t.once("error",u),t.once("close",l),this.once("close",s),this.once("upgrading",c),t.open()},h.prototype.onOpen=function(){if(i("socket open"),this.readyState="open",h.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){i("starting upgrade probes");for(var e=0,t=this.upgrades.length;er&&(n=r),t>=r||t>=n||0===r)return new ArrayBuffer(0);for(var o=new Uint8Array(e),a=new Uint8Array(n-t),i=t,u=0;i=55296&&t<=56319&&o=55296&&e<=57343){if(t)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function l(e,t){return a(e>>t&63|128)}function s(e,t){if(0==(4294967168&e))return a(e);var n="";return 0==(4294965248&e)?n=a(e>>6&31|192):0==(4294901760&e)?(u(e,t)||(e=65533),n=a(e>>12&15|224),n+=l(e,6)):0==(4292870144&e)&&(n=a(e>>18&7|240),n+=l(e,12),n+=l(e,6)),n+a(63&e|128)}function c(){if(o>=r)throw Error("Invalid byte index");var e=255&n[o];if(o++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function f(e){var t,a;if(o>r)throw Error("Invalid byte index");if(o==r)return!1;if(t=255&n[o],o++,0==(128&t))return t;if(192==(224&t)){if((a=(31&t)<<6|c())>=128)return a;throw Error("Invalid continuation byte")}if(224==(240&t)){if((a=(15&t)<<12|c()<<6|c())>=2048)return u(a,e)?a:65533;throw Error("Invalid continuation byte")}if(240==(248&t)&&(a=(7&t)<<18|c()<<12|c()<<6|c())>=65536&&a<=1114111)return a;throw Error("Invalid UTF-8 detected")}e.exports={version:"2.1.2",encode:function(e,t){for(var n=!1!==(t=t||{}).strict,r=i(e),o=r.length,a=-1,u="";++a65535&&(o+=a((t-=65536)>>>10&1023|55296),t=56320|1023&t),o+=a(t);return o}(s)}}},function(e,t){!function(){"use strict";for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r>2],a+=e[(3&r[n])<<4|r[n+1]>>4],a+=e[(15&r[n+1])<<2|r[n+2]>>6],a+=e[63&r[n+2]];return o%3==2?a=a.substring(0,a.length-1)+"=":o%3==1&&(a=a.substring(0,a.length-2)+"=="),a},t.decode=function(e){var t,r,o,a,i,u=.75*e.length,l=e.length,s=0;"="===e[e.length-1]&&(u--,"="===e[e.length-2]&&u--);var c=new ArrayBuffer(u),f=new Uint8Array(c);for(t=0;t>4,f[s++]=(15&o)<<4|a>>2,f[s++]=(3&a)<<6|63&i;return c}}()},function(e,t){var n=void 0!==n?n:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,r=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),o=r&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),a=n&&n.prototype.append&&n.prototype.getBlob;function i(e){return W(e).call(e,(function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer;if(e.byteLength!==t.byteLength){var n=new Uint8Array(e.byteLength);n.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=n.buffer}return t}return e}))}function u(e,t){var r;t=t||{};var o=new n;return g(r=i(e)).call(r,(function(e){o.append(e)})),t.type?o.getBlob(t.type):o.getBlob()}function l(e,t){return new Blob(i(e),t||{})}"undefined"!=typeof Blob&&(u.prototype=Blob.prototype,l.prototype=Blob.prototype),e.exports=r?o?Blob:l:a?u:void 0},function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e,o=r,a=+new Date,i=a-(n||a);o.diff=i,o.prev=n,o.curr=a,n=a;for(var u=new Array(arguments.length),l=0;l0)return function(e){if(!((e=String(e)).length>100)){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=F(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"days":case"day":case"d":return n*i;case"hours":case"hour":case"hrs":case"hr":case"h":return n*a;case"minutes":case"minute":case"mins":case"min":case"m":return n*o;case"seconds":case"second":case"secs":case"sec":case"s":return n*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===s&&!1===isNaN(e))return t.long?u(l=e,i,"day")||u(l,a,"hour")||u(l,o,"minute")||u(l,r,"second")||l+" ms":function(e){return e>=i?Math.round(e/i)+"d":e>=a?Math.round(e/a)+"h":e>=o?Math.round(e/o)+"m":e>=r?Math.round(e/r)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+I(e))}},function(e,t,n){(function(t){var r=n(27),o=n(10);e.exports=c;var a,i=/\n/g,u=/\\n/g;function l(){}function s(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{}}function c(e){if(r.call(this,e),this.query=this.query||{},!a){var t=s();a=t.___eio=t.___eio||[]}this.index=a.length;var n=this;a.push((function(e){n.onData(e)})),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",(function(){n.script&&(n.script.onerror=l)}),!1)}o(c,r),c.prototype.supportsBinary=!1,c.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),r.prototype.doClose.call(this)},c.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)&&m((function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)}),100)},c.prototype.doWrite=function(e,t){var n=this;if(!this.form){var r,o=document.createElement("form"),a=document.createElement("textarea"),l=this.iframeId="eio_iframe_"+this.index;o.className="socketio",o.style.position="absolute",o.style.top="-1000px",o.style.left="-1000px",o.target=l,o.method="POST",o.setAttribute("accept-charset","utf-8"),a.name="d",o.appendChild(a),document.body.appendChild(o),this.form=o,this.area=a}function s(){c(),t()}function c(){if(n.iframe)try{n.form.removeChild(n.iframe)}catch(e){n.onError("jsonp polling iframe removal error",e)}try{var e='