-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbundle.js
More file actions
32 lines (32 loc) · 461 KB
/
bundle.js
File metadata and controls
32 lines (32 loc) · 461 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
webpackJsonp([0],[function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,c){if(o(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,s,c],p=0;u=new Error(t.replace(/%s/g,function(){return l[p++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var o=function(e){};o=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")},e.exports=r},function(e,t,n){"use strict";var r=n(12),o=r,i=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};o=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];i.apply(void 0,[t].concat(r))}},e.exports=o},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}e.exports=r},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,c=r(e),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var l in n)i.call(n,l)&&(c[l]=n[l]);if(o){s=o(n);for(var p=0;p<s.length;p++)a.call(n,s[p])&&(c[s[p]]=n[s[p]])}}return c}},function(e,t,n){"use strict";function r(e,t){return 1===e.nodeType&&e.getAttribute(h)===String(t)||8===e.nodeType&&e.nodeValue===" react-text: "+t+" "||8===e.nodeType&&e.nodeValue===" react-empty: "+t+" "}function o(e){for(var t;t=e._renderedComponent;)e=t;return e}function i(e,t){var n=o(e);n._hostNode=t,t[g]=n}function a(e){var t=e._hostNode;t&&(delete t[g],e._hostNode=null)}function s(e,t){if(!(e._flags&m.hasCachedChildNodes)){var n=e._renderedChildren,a=t.firstChild;e:for(var s in n)if(n.hasOwnProperty(s)){var c=n[s],u=o(c)._domID;if(0!==u){for(;null!==a;a=a.nextSibling)if(r(a,u)){i(c,a);continue e}f(!1,"Unable to find element with ID %s.",u)}}e._flags|=m.hasCachedChildNodes}}function c(e){if(e[g])return e[g];for(var t=[];!e[g];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var n,r;e&&(r=e[g]);e=t.pop())n=r,t.length&&s(r,e);return n}function u(e){var t=c(e);return null!=t&&t._hostNode===e?t:null}function l(e){if(void 0===e._hostNode&&f(!1,"getNodeFromInstance: Invalid argument."),e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent||f(!1,"React DOM tree root should always have a node reference."),e=e._hostParent;for(;t.length;e=t.pop())s(e,e._hostNode);return e._hostNode}var p=(n(2),n(19)),d=n(106),f=n(0),h=p.ID_ATTRIBUTE_NAME,m=d,g="__reactInternalInstance$"+Math.random().toString(36).slice(2),v={getClosestInstanceFromNode:c,getInstanceFromNode:u,getNodeFromInstance:l,precacheChildNodes:s,precacheNode:i,uncacheNode:a};e.exports=v},function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=o},function(e,t){var n=e.exports={version:"2.5.0"};"number"==typeof __e&&(__e=n)},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(76)("wks"),o=n(53),i=n(7).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";function r(e){var t=Function.prototype.toString,n=Object.prototype.hasOwnProperty,r=RegExp("^"+t.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var o=t.call(e);return r.test(o)}catch(e){return!1}}function o(e){var t=u(e);if(t){var n=t.childIDs;l(e),n.forEach(o)}}function i(e,t,n){return"\n in "+(e||"Unknown")+(t?" (at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+")":n?" (created by "+n+")":"")}function a(e){return null==e?"#empty":"string"==typeof e||"number"==typeof e?"#text":"string"==typeof e.type?e.type:e.type.displayName||e.type.name||"Unknown"}function s(e){var t,n=x.getDisplayName(e),r=x.getElement(e),o=x.getOwnerID(e);return o&&(t=x.getDisplayName(o)),v(r,"ReactComponentTreeHook: Missing React element for debugID %s when building stack",e),i(n,r&&r._source,t)}var c,u,l,p,d,f,h,m=(n(28),n(13)),g=n(0),v=n(1),y="function"==typeof Array.from&&"function"==typeof Map&&r(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&r(Map.prototype.keys)&&"function"==typeof Set&&r(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&r(Set.prototype.keys);if(y){var _=new Map,b=new Set;c=function(e,t){_.set(e,t)},u=function(e){return _.get(e)},l=function(e){_.delete(e)},p=function(){return Array.from(_.keys())},d=function(e){b.add(e)},f=function(e){b.delete(e)},h=function(){return Array.from(b.keys())}}else{var C={},E={},T=function(e){return"."+e},w=function(e){return parseInt(e.substr(1),10)};c=function(e,t){var n=T(e);C[n]=t},u=function(e){var t=T(e);return C[t]},l=function(e){var t=T(e);delete C[t]},p=function(){return Object.keys(C).map(w)},d=function(e){var t=T(e);E[t]=!0},f=function(e){var t=T(e);delete E[t]},h=function(){return Object.keys(E).map(w)}}var S=[],x={onSetChildren:function(e,t){var n=u(e);n||g(!1,"Item must have been set"),n.childIDs=t;for(var r=0;r<t.length;r++){var o=t[r],i=u(o);i||g(!1,"Expected hook events to fire for the child before its parent includes it in onSetChildren()."),null==i.childIDs&&"object"==typeof i.element&&null!=i.element&&g(!1,"Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren()."),i.isMounted||g(!1,"Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren()."),null==i.parentID&&(i.parentID=e),i.parentID!==e&&g(!1,"Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).",o,i.parentID,e)}},onBeforeMountComponent:function(e,t,n){c(e,{element:t,parentID:n,text:null,childIDs:[],isMounted:!1,updateCount:0})},onBeforeUpdateComponent:function(e,t){var n=u(e);n&&n.isMounted&&(n.element=t)},onMountComponent:function(e){var t=u(e);t||g(!1,"Item must have been set"),t.isMounted=!0,0===t.parentID&&d(e)},onUpdateComponent:function(e){var t=u(e);t&&t.isMounted&&t.updateCount++},onUnmountComponent:function(e){var t=u(e);if(t){t.isMounted=!1;0===t.parentID&&f(e)}S.push(e)},purgeUnmountedComponents:function(){if(!x._preventPurging){for(var e=0;e<S.length;e++){o(S[e])}S.length=0}},isMounted:function(e){var t=u(e);return!!t&&t.isMounted},getCurrentStackAddendum:function(e){var t="";if(e){var n=a(e),r=e._owner;t+=i(n,e._source,r&&r.getName())}var o=m.current,s=o&&o._debugID;return t+=x.getStackAddendumByID(s)},getStackAddendumByID:function(e){for(var t="";e;)t+=s(e),e=x.getParentID(e);return t},getChildIDs:function(e){var t=u(e);return t?t.childIDs:[]},getDisplayName:function(e){var t=x.getElement(e);return t?a(t):null},getElement:function(e){var t=u(e);return t?t.element:null},getOwnerID:function(e){var t=x.getElement(e);return t&&t._owner?t._owner._debugID:null},getParentID:function(e){var t=u(e);return t?t.parentID:null},getSource:function(e){var t=u(e),n=t?t.element:null;return null!=n?n._source:null},getText:function(e){var t=x.getElement(e);return"string"==typeof t?t:"number"==typeof t?""+t:null},getUpdateCount:function(e){var t=u(e);return t?t.updateCount:0},getRootIDs:h,getRegisteredIDs:p,pushNonStandardWarningStack:function(e,t){if("function"==typeof console.reactStack){var n=[],r=m.current,o=r&&r._debugID;try{for(e&&n.push({name:o?x.getDisplayName(o):null,fileName:t?t.fileName:null,lineNumber:t?t.lineNumber:null});o;){var i=x.getElement(o),a=x.getParentID(o),s=x.getOwnerID(o),c=s?x.getDisplayName(s):null,u=i&&i._source;n.push({name:c,fileName:u?u.fileName:null,lineNumber:u?u.lineNumber:null}),o=a}}catch(e){}console.reactStack(n)}},popNonStandardWarningStack:function(){"function"==typeof console.reactStackEnd&&console.reactStackEnd()}};e.exports=x},function(e,t,n){var r=n(7),o=n(6),i=n(20),a=n(21),s=function(e,t,n){var c,u,l,p=e&s.F,d=e&s.G,f=e&s.S,h=e&s.P,m=e&s.B,g=e&s.W,v=d?o:o[t]||(o[t]={}),y=v.prototype,_=d?r:f?r[t]:(r[t]||{}).prototype;d&&(n=t);for(c in n)(u=!p&&_&&void 0!==_[c])&&c in v||(l=u?_[c]:n[c],v[c]=d&&"function"!=typeof _[c]?n[c]:m&&u?i(l,r):g&&_[c]==l?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((v.virtual||(v.virtual={}))[c]=l,e&s.R&&y&&!y[c]&&a(y,c,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){"use strict";var r=null;r=n(178),e.exports={debugTool:r}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";var r={current:null};e.exports=r},function(e,t,n){"use strict";function r(){I.ReactReconcileTransaction&&C||g(!1,"ReactUpdates: must inject a reconcile transaction class and batching strategy")}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=p.getPooled(),this.reconcileTransaction=I.ReactReconcileTransaction.getPooled(!0)}function i(e,t,n,o,i,a){return r(),C.batchedUpdates(e,t,n,o,i,a)}function a(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==v.length&&g(!1,"Expected flush transaction's stored dirty-components length (%s) to match dirty-components array length (%s).",t,v.length),v.sort(a),y++;for(var n=0;n<t;n++){var r=v[n],o=r._pendingCallbacks;r._pendingCallbacks=null;var i;if(f.logTopLevelRenders){var s=r;r._currentElement.type.isReactTopLevelWrapper&&(s=r._renderedComponent),i="React update: "+s.getName(),console.time(i)}if(h.performUpdateIfNecessary(r,e.reconcileTransaction,y),i&&console.timeEnd(i),o)for(var c=0;c<o.length;c++)e.callbackQueue.enqueue(o[c],r.getPublicInstance())}}function c(e){if(r(),!C.isBatchingUpdates)return void C.batchedUpdates(c,e);v.push(e),null==e._updateBatchNumber&&(e._updateBatchNumber=y+1)}function u(e,t){C.isBatchingUpdates||g(!1,"ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched."),_.enqueue(e,t),b=!0}var l=(n(2),n(3)),p=n(110),d=n(24),f=n(111),h=n(29),m=n(47),g=n(0),v=[],y=0,_=p.getPooled(),b=!1,C=null,E={initialize:function(){this.dirtyComponentsLength=v.length},close:function(){this.dirtyComponentsLength!==v.length?(v.splice(0,this.dirtyComponentsLength),S()):v.length=0}},T={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},w=[E,T];l(o.prototype,m,{getTransactionWrappers:function(){return w},destructor:function(){this.dirtyComponentsLength=null,p.release(this.callbackQueue),this.callbackQueue=null,I.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return m.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),d.addPoolingTo(o);var S=function(){for(;v.length||b;){if(v.length){var e=o.getPooled();e.perform(s,null,e),o.release(e)}if(b){b=!1;var t=_;_=p.getPooled(),t.notifyAll(),p.release(t)}}},x={injectReconcileTransaction:function(e){e||g(!1,"ReactUpdates: must provide a reconcile transaction class"),I.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e||g(!1,"ReactUpdates: must provide a batching strategy"),"function"!=typeof e.batchedUpdates&&g(!1,"ReactUpdates: must provide a batchedUpdates() function"),"boolean"!=typeof e.isBatchingUpdates&&g(!1,"ReactUpdates: must provide an isBatchingUpdates boolean attribute"),C=e}},I={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:c,flushBatchedUpdates:S,injection:x,asap:u};e.exports=I},function(e,t,n){var r=n(22),o=n(134),i=n(78),a=Object.defineProperty;t.f=n(16)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(31)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";function r(e,t,n,r){delete this.nativeEvent,delete this.preventDefault,delete this.stopPropagation,this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n;var o=this.constructor.Interface;for(var i in o)if(o.hasOwnProperty(i)){delete this[i];var a=o[i];a?this[i]=a(n):"target"===i?this.target=r:this[i]=n[i]}var c=null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue;return this.isDefaultPrevented=c?s.thatReturnsTrue:s.thatReturnsFalse,this.isPropagationStopped=s.thatReturnsFalse,this}function o(e,t){function n(e){return o(i?"setting the method":"setting the property","This is effectively a no-op"),e}function r(){return o(i?"accessing the method":"accessing the property",i?"This is a no-op function":"This is set to null"),t}function o(t,n){c(!1,"This synthetic event is reused for performance reasons. If you're seeing this, you're %s `%s` on a released/nullified synthetic event. %s. If you must keep the original synthetic event around, use event.persist(). See https://fb.me/react-event-pooling for more information.",t,e,n)}var i="function"==typeof t;return{configurable:!0,set:n,get:r}}var i=n(3),a=n(24),s=n(12),c=n(1),u=!1,l="function"==typeof Proxy,p=["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"],d={type:null,target:null,currentTarget:s.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};i(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=s.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=s.thatReturnsTrue)},persist:function(){this.isPersistent=s.thatReturnsTrue},isPersistent:s.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)Object.defineProperty(this,t,o(t,e[t]));for(var n=0;n<p.length;n++)this[p[n]]=null;Object.defineProperty(this,"nativeEvent",o("nativeEvent",null)),Object.defineProperty(this,"preventDefault",o("preventDefault",s)),Object.defineProperty(this,"stopPropagation",o("stopPropagation",s))}}),r.Interface=d,l&&(r=new Proxy(r,{construct:function(e,t){return this.apply(e,Object.create(e.prototype),t)},apply:function(e,t,n){return new Proxy(e.apply(t,n),{set:function(e,t,n){return"isPersistent"===t||e.constructor.Interface.hasOwnProperty(t)||-1!==p.indexOf(t)||(c(u||e.isPersistent(),"This synthetic event is reused for performance reasons. If you're seeing this, you're adding a new property in the synthetic event object. The property is never released. See https://fb.me/react-event-pooling for more information."),u=!0),e[t]=n,!0}})}})),r.augmentClass=function(e,t){var n=this,r=function(){};r.prototype=n.prototype;var o=new r;i(o,e.prototype),e.prototype=o,e.prototype.constructor=e,e.Interface=i({},n.Interface,t),e.augmentClass=n.augmentClass,a.addPoolingTo(e,a.fourArgumentPooler)},a.addPoolingTo(r,a.fourArgumentPooler),e.exports=r},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var o=(n(2),n(0)),i={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(e){var t=i,n=e.Properties||{},a=e.DOMAttributeNamespaces||{},c=e.DOMAttributeNames||{},u=e.DOMPropertyNames||{},l=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var p in n){s.properties.hasOwnProperty(p)&&o(!1,"injectDOMPropertyConfig(...): You're trying to inject DOM property '%s' which has already been injected. You may be accidentally injecting the same DOM property config twice, or you may be injecting two configs that have conflicting property names.",p);var d=p.toLowerCase(),f=n[p],h={attributeName:d,attributeNamespace:null,propertyName:p,mutationMethod:null,mustUseProperty:r(f,t.MUST_USE_PROPERTY),hasBooleanValue:r(f,t.HAS_BOOLEAN_VALUE),hasNumericValue:r(f,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(f,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(f,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(h.hasBooleanValue+h.hasNumericValue+h.hasOverloadedBooleanValue<=1||o(!1,"DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s",p),s.getPossibleStandardName[d]=p,c.hasOwnProperty(p)){var m=c[p];h.attributeName=m,s.getPossibleStandardName[m]=p}a.hasOwnProperty(p)&&(h.attributeNamespace=a[p]),u.hasOwnProperty(p)&&(h.propertyName=u[p]),l.hasOwnProperty(p)&&(h.mutationMethod=l[p]),s.properties[p]=h}}},a=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",s={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:a,ATTRIBUTE_NAME_CHAR:a+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:{autofocus:"autoFocus"},_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){if((0,s._isCustomAttributeFunctions[t])(e))return!0}return!1},injection:i};e.exports=s},function(e,t,n){var r=n(36);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(15),o=n(54);e.exports=n(16)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(18);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";function r(e){if(f.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function o(e){if(f.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}function i(e,t){var n=function(){s||(s=!0,p(!1,"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function a(e,t){var n=function(){c||(c=!0,p(!1,"%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://fb.me/react-special-props)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}var s,c,u=n(3),l=n(13),p=n(1),d=n(43),f=Object.prototype.hasOwnProperty,h=n(101),m={key:!0,ref:!0,__self:!0,__source:!0},g=function(e,t,n,r,o,i,a){var s={$$typeof:h,type:e,key:t,ref:n,props:a,_owner:i};return s._store={},d?(Object.defineProperty(s._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(s,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(s,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o})):(s._store.validated=!1,s._self=r,s._source=o),Object.freeze&&(Object.freeze(s.props),Object.freeze(s)),s};g.createElement=function(e,t,n){var s,c={},u=null,p=null,d=null,v=null;if(null!=t){r(t)&&(p=t.ref),o(t)&&(u=""+t.key),d=void 0===t.__self?null:t.__self,v=void 0===t.__source?null:t.__source;for(s in t)f.call(t,s)&&!m.hasOwnProperty(s)&&(c[s]=t[s])}var y=arguments.length-2;if(1===y)c.children=n;else if(y>1){for(var _=Array(y),b=0;b<y;b++)_[b]=arguments[b+2];Object.freeze&&Object.freeze(_),c.children=_}if(e&&e.defaultProps){var C=e.defaultProps;for(s in C)void 0===c[s]&&(c[s]=C[s])}if((u||p)&&(void 0===c.$$typeof||c.$$typeof!==h)){var E="function"==typeof e?e.displayName||e.name||"Unknown":e;u&&i(c,E),p&&a(c,E)}return g(e,u,p,d,v,l.current,c)},g.createFactory=function(e){var t=g.createElement.bind(null,e);return t.type=e,t},g.cloneAndReplaceKey=function(e,t){return g(e.type,t,e.ref,e._self,e._source,e._owner,e.props)},g.cloneElement=function(e,t,n){var i,a=u({},e.props),s=e.key,c=e.ref,p=e._self,d=e._source,h=e._owner;if(null!=t){r(t)&&(c=t.ref,h=l.current),o(t)&&(s=""+t.key);var v;e.type&&e.type.defaultProps&&(v=e.type.defaultProps);for(i in t)f.call(t,i)&&!m.hasOwnProperty(i)&&(void 0===t[i]&&void 0!==v?a[i]=v[i]:a[i]=t[i])}var y=arguments.length-2;if(1===y)a.children=n;else if(y>1){for(var _=Array(y),b=0;b<y;b++)_[b]=arguments[b+2];a.children=_}return g(e.type,s,c,p,d,h,a)},g.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===h},e.exports=g},function(e,t,n){"use strict";var r=(n(2),n(0)),o=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},c=function(e){var t=this;e instanceof t||r(!1,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},u=o,l=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||u,n.poolSize||(n.poolSize=10),n.release=c,n},p={addPoolingTo:l,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:s};e.exports=p},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(137),o=n(74);e.exports=function(e){return r(o(e))}},function(e,t,n){"use strict";var r=n(3),o=n(99),i=n(152),a=n(156),s=n(23),c=n(160),u=n(163),l=n(164),p=n(166),d=s.createElement,f=s.createFactory,h=s.cloneElement,m=n(57),g=n(43),v=n(103),y=!1;d=v.createElement,f=v.createFactory,h=v.cloneElement;var _=r,b=function(e){return e},C=!1,E=!1;_=function(){return m(C,"React.__spread is deprecated and should not be used. Use Object.assign directly or another helper function with similar semantics. You may be seeing this warning due to your compiler. See https://fb.me/react-spread-deprecation for more details."),C=!0,r.apply(null,arguments)},b=function(e){return m(E,"React.createMixin is deprecated and should not be used. In React v16.0, it will be removed. You can use this mixin directly instead. See https://fb.me/createmixin-was-never-implemented for more info."),E=!0,e};var T={Children:{map:i.map,forEach:i.forEach,count:i.count,toArray:i.toArray,only:p},Component:o.Component,PureComponent:o.PureComponent,createElement:d,cloneElement:h,isValidElement:s.isValidElement,PropTypes:c,createClass:l,createFactory:f,createMixin:b,DOM:a,version:u,__spread:_},w=!1;g&&(Object.defineProperty(T,"PropTypes",{get:function(){return m(y,"Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://fb.me/prop-types-docs"),y=!0,c}}),Object.defineProperty(T,"createClass",{get:function(){return m(w,"Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class"),w=!0,l}})),T.DOM={};var S=!1;Object.keys(a).forEach(function(e){T.DOM[e]=function(){return S||(m(!1,"Accessing factories like React.DOM.%s has been deprecated and will be removed in v16.0+. Use the react-dom-factories package instead. Version 1.0 provides a drop-in replacement. For more info, see https://fb.me/react-dom-factories",e),S=!0),a[e].apply(a,arguments)}}),e.exports=T},function(e,t,n){"use strict";function r(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}e.exports=r},function(e,t,n){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=n(176),i=n(11),a=n(1),s={mountComponent:function(e,t,n,o,a,s){0!==e._debugID&&i.debugTool.onBeforeMountComponent(e._debugID,e._currentElement,s);var c=e.mountComponent(t,n,o,a,s);return e._currentElement&&null!=e._currentElement.ref&&t.getReactMountReady().enqueue(r,e),0!==e._debugID&&i.debugTool.onMountComponent(e._debugID),c},getHostNode:function(e){return e.getHostNode()},unmountComponent:function(e,t){0!==e._debugID&&i.debugTool.onBeforeUnmountComponent(e._debugID),o.detachRefs(e,e._currentElement),e.unmountComponent(t),0!==e._debugID&&i.debugTool.onUnmountComponent(e._debugID)},receiveComponent:function(e,t,n,a){var s=e._currentElement;if(t!==s||a!==e._context){0!==e._debugID&&i.debugTool.onBeforeUpdateComponent(e._debugID,t);var c=o.shouldUpdateRefs(s,t);c&&o.detachRefs(e,s),e.receiveComponent(t,n,a),c&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e),0!==e._debugID&&i.debugTool.onUpdateComponent(e._debugID)}},performUpdateIfNecessary:function(e,t,n){if(e._updateBatchNumber!==n)return void a(null==e._updateBatchNumber||e._updateBatchNumber===n+1,"performUpdateIfNecessary: Unexpected batch number (current %s, pending %s)",n,e._updateBatchNumber);0!==e._debugID&&i.debugTool.onBeforeUpdateComponent(e._debugID,e._currentElement),e.performUpdateIfNecessary(t),0!==e._debugID&&i.debugTool.onUpdateComponent(e._debugID)}};e.exports=s},function(e,t,n){"use strict";function r(e){if(h){var t=e.node,n=e.children;if(n.length)for(var r=0;r<n.length;r++)m(t,n[r],null);else null!=e.html?p(t,e.html):null!=e.text&&f(t,e.text)}}function o(e,t){e.parentNode.replaceChild(t.node,e),r(t)}function i(e,t){h?e.children.push(t):e.node.appendChild(t.node)}function a(e,t){h?e.html=t:p(e.node,t)}function s(e,t){h?e.text=t:f(e.node,t)}function c(){return this.node.nodeName}function u(e){return{node:e,children:[],html:null,text:null,toString:c}}var l=n(64),p=n(49),d=n(65),f=n(115),h="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent),m=d(function(e,t,n){11===t.node.nodeType||1===t.node.nodeType&&"object"===t.node.nodeName.toLowerCase()&&(null==t.node.namespaceURI||t.node.namespaceURI===l.html)?(r(t),e.insertBefore(t.node,n)):(e.insertBefore(t.node,n),r(t))});u.insertTreeBefore=m,u.replaceChildWithTree=o,u.queueChild=i,u.queueHTML=a,u.queueText=s,e.exports=u},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return y(e,r)}function o(e,t,n){v(e,"Dispatching inst must not be null");var o=r(e,n,t);o&&(n._dispatchListeners=m(n._dispatchListeners,o),n._dispatchInstances=m(n._dispatchInstances,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&h.traverseTwoPhase(e._targetInst,o,e)}function a(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst,n=t?h.getParentInstance(t):null;h.traverseTwoPhase(n,o,e)}}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=y(e,r);o&&(n._dispatchListeners=m(n._dispatchListeners,o),n._dispatchInstances=m(n._dispatchInstances,e))}}function c(e){e&&e.dispatchConfig.registrationName&&s(e._targetInst,null,e)}function u(e){g(e,i)}function l(e){g(e,a)}function p(e,t,n,r){h.traverseEnterLeave(n,r,s,e,t)}function d(e){g(e,c)}var f=n(33),h=n(58),m=n(107),g=n(108),v=n(1),y=f.getListener,_={accumulateTwoPhaseDispatches:u,accumulateTwoPhaseDispatchesSkipTarget:l,accumulateDirectDispatches:d,accumulateEnterLeaveDispatches:p};e.exports=_},function(e,t,n){"use strict";function r(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}function o(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||!r(t));default:return!1}}var i=(n(2),n(46)),a=n(58),s=n(59),c=n(107),u=n(108),l=n(0),p={},d=null,f=function(e,t){e&&(a.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},h=function(e){return f(e,!0)},m=function(e){return f(e,!1)},g=function(e){return"."+e._rootNodeID},v={injection:{injectEventPluginOrder:i.injectEventPluginOrder,injectEventPluginsByName:i.injectEventPluginsByName},putListener:function(e,t,n){"function"!=typeof n&&l(!1,"Expected %s listener to be a function, instead got type %s",t,typeof n);var r=g(e);(p[t]||(p[t]={}))[r]=n;var o=i.registrationNameModules[t];o&&o.didPutListener&&o.didPutListener(e,t,n)},getListener:function(e,t){var n=p[t];if(o(t,e._currentElement.type,e._currentElement.props))return null;var r=g(e);return n&&n[r]},deleteListener:function(e,t){var n=i.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=p[t];if(r){delete r[g(e)]}},deleteAllListeners:function(e){var t=g(e);for(var n in p)if(p.hasOwnProperty(n)&&p[n][t]){var r=i.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(e,n),delete p[n][t]}},extractEvents:function(e,t,n,r){for(var o,a=i.plugins,s=0;s<a.length;s++){var u=a[s];if(u){var l=u.extractEvents(e,t,n,r);l&&(o=c(o,l))}}return o},enqueueEvents:function(e){e&&(d=c(d,e))},processEventQueue:function(e){var t=d;d=null,e?u(t,h):u(t,m),d&&l(!1,"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."),s.rethrowCaughtError()},__purge:function(){p={}},__getListenerBank:function(){return p}};e.exports=v},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(17),i=n(60),a={view:function(e){if(e.view)return e.view;var t=i(e);if(t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";var r={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};e.exports=r},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(79),i=r(o),a=n(87),s=r(a),c="function"==typeof s.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===c(i.default)?function(e){return void 0===e?"undefined":c(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":void 0===e?"undefined":c(e)}},function(e,t){e.exports={}},function(e,t,n){var r=n(136),o=n(84);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(15).f,o=n(25),i=n(8)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(20),o=n(292),i=n(293),a=n(22),s=n(83),c=n(294),u={},l={},t=e.exports=function(e,t,n,p,d){var f,h,m,g,v=d?function(){return e}:c(e),y=r(n,p,t?2:1),_=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(i(v)){for(f=s(e.length);f>_;_++)if((g=t?y(a(h=e[_])[0],h[1]):y(e[_]))===u||g===l)return g}else for(m=v.call(e);!(h=m.next()).done;)if((g=o(m,y,h.value,t))===u||g===l)return g};t.BREAK=u,t.RETURN=l},function(e,t,n){"use strict";var r=!1;try{Object.defineProperty({},"x",{get:function(){}}),r=!0}catch(e){}e.exports=r},function(e,t,n){"use strict";var r={};Object.freeze(r),e.exports=r},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(p===clearTimeout)return clearTimeout(e);if((p===r||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function a(){m&&f&&(m=!1,f.length?h=f.concat(h):g=-1,h.length&&s())}function s(){if(!m){var e=o(a);m=!0;for(var t=h.length;t;){for(f=h,h=[];++g<t;)f&&f[g].run();g=-1,t=h.length}f=null,m=!1,i(e)}}function c(e,t){this.fun=e,this.array=t}function u(){}var l,p,d=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{p="function"==typeof clearTimeout?clearTimeout:r}catch(e){p=r}}();var f,h=[],m=!1,g=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new c(e,t)),1!==h.length||m||o(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=u,d.addListener=u,d.once=u,d.off=u,d.removeListener=u,d.removeAllListeners=u,d.emit=u,d.prependListener=u,d.prependOnceListener=u,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t,n){"use strict";function r(){if(s)for(var e in c){var t=c[e],n=s.indexOf(e);if(n>-1||a(!1,"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.",e),!u.plugins[n]){t.extractEvents||a(!1,"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.",e),u.plugins[n]=t;var r=t.eventTypes;for(var i in r)o(r[i],t,i)||a(!1,"EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.",i,e)}}}function o(e,t,n){u.eventNameDispatchConfigs.hasOwnProperty(n)&&a(!1,"EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.",n),u.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){u.registrationNameModules[e]&&a(!1,"EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.",e),u.registrationNameModules[e]=t,u.registrationNameDependencies[e]=t.eventTypes[n].dependencies;var r=e.toLowerCase();u.possibleRegistrationNames[r]=e,"onDoubleClick"===e&&(u.possibleRegistrationNames.ondblclick=e)}var a=(n(2),n(0)),s=null,c={},u={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:{},injectEventPluginOrder:function(e){s&&a(!1,"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."),s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];c.hasOwnProperty(n)&&c[n]===o||(c[n]&&a(!1,"EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.",n),c[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return u.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=u.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){s=null;for(var e in c)c.hasOwnProperty(e)&&delete c[e];u.plugins.length=0;var t=u.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=u.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o];var i=u.possibleRegistrationNames;for(var a in i)i.hasOwnProperty(a)&&delete i[a]}};e.exports=u},function(e,t,n){"use strict";var r=(n(2),n(0)),o={},i={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,o,i,a,s,c){this.isInTransaction()&&r(!1,"Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction.");var u,l;try{this._isInTransaction=!0,u=!0,this.initializeAll(0),l=e.call(t,n,o,i,a,s,c),u=!1}finally{try{if(u)try{this.closeAll(0)}catch(e){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return l},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=o,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===o)try{this.initializeAll(n+1)}catch(e){}}}},closeAll:function(e){this.isInTransaction()||r(!1,"Transaction.closeAll(): Cannot close transaction when none are open.");for(var t=this.transactionWrappers,n=e;n<t.length;n++){var i,a=t[n],s=this.wrapperInitData[n];try{i=!0,s!==o&&a.close&&a.close.call(this,s),i=!1}finally{if(i)try{this.closeAll(n+1)}catch(e){}}}this.wrapperInitData.length=0}};e.exports=i},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(34),i=n(114),a=n(62),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:a,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+i.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+i.currentScrollTop}};o.augmentClass(r,s),e.exports=r},function(e,t,n){"use strict";var r,o=n(5),i=n(64),a=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,c=n(65),u=c(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML="<svg>"+t+"</svg>";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(o.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(u=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=u},function(e,t,n){"use strict";function r(e){var t=""+e,n=i.exec(t);if(!n)return t;var r,o="",a=0,s=0;for(a=n.index;a<t.length;a++){switch(t.charCodeAt(a)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}s!==a&&(o+=t.substring(s,a)),s=a+1,o+=r}return s!==a?o+t.substring(s,a):o}function o(e){return"boolean"==typeof e||"number"==typeof e?""+e:r(e)}var i=/["'&<>]/;e.exports=o},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,m)||(e[m]=f++,p[e[m]]={}),p[e[m]]}var o,i=n(3),a=n(46),s=n(202),c=n(114),u=n(203),l=n(61),p={},d=!1,f=0,h={topAbort:"abort",topAnimationEnd:u("animationend")||"animationend",topAnimationIteration:u("animationiteration")||"animationiteration",topAnimationStart:u("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:u("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},m="_reactListenersID"+String(Math.random()).slice(2),g=i({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(g.handleTopLevel),g.ReactEventListener=e}},setEnabled:function(e){g.ReactEventListener&&g.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!g.ReactEventListener||!g.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,o=r(n),i=a.registrationNameDependencies[e],s=0;s<i.length;s++){var c=i[s];o.hasOwnProperty(c)&&o[c]||("topWheel"===c?l("wheel")?g.ReactEventListener.trapBubbledEvent("topWheel","wheel",n):l("mousewheel")?g.ReactEventListener.trapBubbledEvent("topWheel","mousewheel",n):g.ReactEventListener.trapBubbledEvent("topWheel","DOMMouseScroll",n):"topScroll"===c?l("scroll",!0)?g.ReactEventListener.trapCapturedEvent("topScroll","scroll",n):g.ReactEventListener.trapBubbledEvent("topScroll","scroll",g.ReactEventListener.WINDOW_HANDLE):"topFocus"===c||"topBlur"===c?(l("focus",!0)?(g.ReactEventListener.trapCapturedEvent("topFocus","focus",n),g.ReactEventListener.trapCapturedEvent("topBlur","blur",n)):l("focusin")&&(g.ReactEventListener.trapBubbledEvent("topFocus","focusin",n),g.ReactEventListener.trapBubbledEvent("topBlur","focusout",n)),o.topBlur=!0,o.topFocus=!0):h.hasOwnProperty(c)&&g.ReactEventListener.trapBubbledEvent(c,h[c],n),o[c]=!0)}},trapBubbledEvent:function(e,t,n){return g.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return g.ReactEventListener.trapCapturedEvent(e,t,n)},supportsEventPageXY:function(){if(!document.createEvent)return!1;var e=document.createEvent("MouseEvent");return null!=e&&"pageX"in e},ensureScrollValueMonitoring:function(){if(void 0===o&&(o=g.supportsEventPageXY()),!o&&!d){var e=c.refreshScrollValues;g.ReactEventListener.monitorScrollValue(e),d=!0}}});e.exports=g},function(e,t,n){var r=n(74);e.exports=function(e){return Object(r(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=!0},function(e,t,n){var r=n(22),o=n(265),i=n(84),a=n(75)("IE_PROTO"),s=function(){},c=function(){var e,t=n(77)("iframe"),r=i.length;for(t.style.display="none",n(138).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[i[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=c(),void 0===t?n:o(n,t)}},function(e,t,n){"use strict";var r=function(){},o=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!=typeof console&&console.warn(i);try{throw new Error(i)}catch(e){}};r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];o.apply(void 0,[t].concat(r))}},e.exports=r},function(e,t,n){"use strict";function r(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function o(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=_.getNodeFromInstance(r),t?m.invokeGuardedCallbackWithCatch(o,n,e):m.invokeGuardedCallback(o,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(h(e),Array.isArray(n))for(var o=0;o<n.length&&!e.isPropagationStopped();o++)a(e,t,n[o],r[o]);else n&&a(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null}function c(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(h(e),Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r]))return n[r]}else if(t&&t(e,n))return n;return null}function u(e){var t=c(e);return e._dispatchInstances=null,e._dispatchListeners=null,t}function l(e){h(e);var t=e._dispatchListeners,n=e._dispatchInstances;Array.isArray(t)&&g(!1,"executeDirectDispatch(...): Invalid `event`."),e.currentTarget=t?_.getNodeFromInstance(n):null;var r=t?t(e):null;return e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,r}function p(e){return!!e._dispatchListeners}var d,f,h,m=(n(2),n(59)),g=n(0),v=n(1),y={injectComponentTree:function(e){d=e,v(e&&e.getNodeFromInstance&&e.getInstanceFromNode,"EventPluginUtils.injection.injectComponentTree(...): Injected module is missing getNodeFromInstance or getInstanceFromNode.")},injectTreeTraversal:function(e){f=e,v(e&&e.isAncestor&&e.getLowestCommonAncestor,"EventPluginUtils.injection.injectTreeTraversal(...): Injected module is missing isAncestor or getLowestCommonAncestor.")}};h=function(e){var t=e._dispatchListeners,n=e._dispatchInstances,r=Array.isArray(t),o=r?t.length:t?1:0,i=Array.isArray(n),a=i?n.length:n?1:0;v(i===r&&a===o,"EventPluginUtils: Invalid `event`.")};var _={isEndish:r,isMoveish:o,isStartish:i,executeDirectDispatch:l,executeDispatchesInOrder:s,executeDispatchesInOrderStopAtTrue:u,hasDispatches:p,getInstanceFromNode:function(e){return d.getInstanceFromNode(e)},getNodeFromInstance:function(e){return d.getNodeFromInstance(e)},isAncestor:function(e,t){return f.isAncestor(e,t)},getLowestCommonAncestor:function(e,t){return f.getLowestCommonAncestor(e,t)},getParentInstance:function(e){return f.getParentInstance(e)},traverseTwoPhase:function(e,t,n){return f.traverseTwoPhase(e,t,n)},traverseEnterLeave:function(e,t,n,r,o){return f.traverseEnterLeave(e,t,n,r,o)},injection:y};e.exports=_},function(e,t,n){"use strict";function r(e,t,n){try{t(n)}catch(e){null===o&&(o=e)}}var o=null,i={invokeGuardedCallback:r,invokeGuardedCallbackWithCatch:r,rethrowCaughtError:function(){if(o){var e=o;throw o=null,e}}};if("undefined"!=typeof window&&"function"==typeof window.dispatchEvent&&"undefined"!=typeof document&&"function"==typeof document.createEvent){var a=document.createElement("react");i.invokeGuardedCallback=function(e,t,n){var r=t.bind(null,n),o="react-"+e;a.addEventListener(o,r,!1);var i=document.createEvent("Event");i.initEvent(o,!1,!1),a.dispatchEvent(i),a.removeEventListener(o,r,!1)}}e.exports=i},function(e,t,n){"use strict";function r(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}e.exports=r},function(e,t,n){"use strict";/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/
function r(e,t){if(!i.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(5);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=r},function(e,t,n){"use strict";function r(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=i[e];return!!r&&!!n[r]}function o(e){return r}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=o},function(e,t,n){"use strict";function r(e,t){return Array.isArray(t)&&(t=t[1]),t?t.nextSibling:e.firstChild}function o(e,t,n){l.insertTreeBefore(e,t,n)}function i(e,t,n){Array.isArray(t)?s(e,t[0],t[1],n):v(e,t,n)}function a(e,t){if(Array.isArray(t)){var n=t[1];t=t[0],c(e,t,n),e.removeChild(n)}e.removeChild(t)}function s(e,t,n,r){for(var o=t;;){var i=o.nextSibling;if(v(e,o,r),o===n)break;o=i}}function c(e,t,n){for(;;){var r=t.nextSibling;if(r===n)break;e.removeChild(r)}}function u(e,t,n){var r=e.parentNode,o=e.nextSibling;o===t?n&&v(r,document.createTextNode(n),o):n?(g(o,n),c(r,o,t)):c(r,e,t),f.debugTool.onHostOperation({instanceID:d.getInstanceFromNode(e)._debugID,type:"replace text",payload:n})}var l=n(30),p=n(187),d=n(4),f=n(11),h=n(65),m=n(49),g=n(115),v=h(function(e,t,n){e.insertBefore(t,n)}),y=p.dangerouslyReplaceNodeWithMarkup;y=function(e,t,n){if(p.dangerouslyReplaceNodeWithMarkup(e,t),0!==n._debugID)f.debugTool.onHostOperation({instanceID:n._debugID,type:"replace with",payload:t.toString()});else{var r=d.getInstanceFromNode(t.node);0!==r._debugID&&f.debugTool.onHostOperation({instanceID:r._debugID,type:"mount",payload:t.toString()})}};var _={dangerouslyReplaceNodeWithMarkup:y,replaceDelimitedText:u,processUpdates:function(e,t){for(var n=d.getInstanceFromNode(e)._debugID,s=0;s<t.length;s++){var c=t[s];switch(c.type){case"INSERT_MARKUP":o(e,c.content,r(e,c.afterNode)),f.debugTool.onHostOperation({instanceID:n,type:"insert child",payload:{toIndex:c.toIndex,content:c.content.toString()}});break;case"MOVE_EXISTING":i(e,c.fromNode,r(e,c.afterNode)),f.debugTool.onHostOperation({instanceID:n,type:"move child",payload:{fromIndex:c.fromIndex,toIndex:c.toIndex}});break;case"SET_MARKUP":m(e,c.content),f.debugTool.onHostOperation({instanceID:n,type:"replace children",payload:c.content.toString()});break;case"TEXT_CONTENT":g(e,c.content),f.debugTool.onHostOperation({instanceID:n,type:"replace text",payload:c.content.toString()});break;case"REMOVE_NODE":a(e,c.fromNode),f.debugTool.onHostOperation({instanceID:n,type:"remove child",payload:{fromIndex:c.fromIndex}})}}}};e.exports=_},function(e,t,n){"use strict";var r={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};e.exports=r},function(e,t,n){"use strict";var r=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e};e.exports=r},function(e,t,n){"use strict";function r(e){null!=e.checkedLink&&null!=e.valueLink&&p(!1,"Cannot provide a checkedLink and a valueLink. If you want to use checkedLink, you probably don't want to use valueLink and vice versa.")}function o(e){r(e),(null!=e.value||null!=e.onChange)&&p(!1,"Cannot provide a valueLink and a value or onChange event. If you want to use value or onChange, you probably don't want to use valueLink.")}function i(e){r(e),(null!=e.checked||null!=e.onChange)&&p(!1,"Cannot provide a checkedLink and a checked property or onChange event. If you want to use checked or onChange, you probably don't want to use checkedLink")}function a(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}var s=(n(2),n(119)),c=n(104),u=n(27),l=c(u.isValidElement),p=n(0),d=n(1),f={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},h={value:function(e,t,n){return!e[t]||f[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:l.func},m={},g={checkPropTypes:function(e,t,n){for(var r in h){if(h.hasOwnProperty(r))var o=h[r](t,r,e,"prop",null,s);if(o instanceof Error&&!(o.message in m)){m[o.message]=!0;var i=a(n);d(!1,"Failed form propType: %s%s",o.message,i)}}},getValue:function(e){return e.valueLink?(o(e),e.valueLink.value):e.value},getChecked:function(e){return e.checkedLink?(i(e),e.checkedLink.value):e.checked},executeOnChange:function(e,t){return e.valueLink?(o(e),e.valueLink.requestChange(t.target.value)):e.checkedLink?(i(e),e.checkedLink.requestChange(t.target.checked)):e.onChange?e.onChange.call(void 0,t):void 0}};e.exports=g},function(e,t,n){"use strict";var r=(n(2),n(0)),o=!1,i={replaceNodeWithMarkup:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){o&&r(!1,"ReactCompositeComponent: injectEnvironment() can only be called once."),i.replaceNodeWithMarkup=e.replaceNodeWithMarkup,i.processChildrenUpdates=e.processChildrenUpdates,o=!0}}};e.exports=i},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(!i.call(t,n[a])||!r(e[n[a]],t[n[a]]))return!1;return!0}var i=Object.prototype.hasOwnProperty;e.exports=o},function(e,t,n){"use strict";function r(e,t){var n=null===e||!1===e,r=null===t||!1===t;if(n||r)return n===r;var o=typeof e,i=typeof t;return"string"===o||"number"===o?"string"===i||"number"===i:"object"===i&&e.type===t.type&&e.key===t.key}e.exports=r},function(e,t,n){"use strict";function r(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function o(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:r,unescape:o};e.exports=i},function(e,t,n){"use strict";function r(e){u.enqueueUpdate(e)}function o(e){var t=typeof e;if("object"!==t)return t;var n=e.constructor&&e.constructor.name||t,r=Object.keys(e);return r.length>0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(e,t){var n=s.get(e);if(!n){var r=e.constructor;return p(!t,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op. Please check the code for the %s component.",t,t,r&&(r.displayName||r.name)||"ReactClass"),null}return p(null==a.current,"%s(...): Cannot update during an existing state transition (such as within `render` or another component's constructor). Render methods should be a pure function of props and state; constructor side-effects are an anti-pattern, but can be moved to `componentWillMount`.",t),n}var a=(n(2),n(13)),s=n(35),c=n(11),u=n(14),l=n(0),p=n(1),d={isMounted:function(e){var t=a.current;null!==t&&(p(t._warnedAboutRefsInRender,"%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",t.getName()||"A component"),t._warnedAboutRefsInRender=!0);var n=s.get(e);return!!n&&!!n._renderedComponent},enqueueCallback:function(e,t,n){d.validateCallback(t,n);var o=i(e);if(!o)return null;o._pendingCallbacks?o._pendingCallbacks.push(t):o._pendingCallbacks=[t],r(o)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t,n){var o=i(e,"replaceState");o&&(o._pendingStateQueue=[t],o._pendingReplaceState=!0,void 0!==n&&null!==n&&(d.validateCallback(n,"replaceState"),o._pendingCallbacks?o._pendingCallbacks.push(n):o._pendingCallbacks=[n]),r(o))},enqueueSetState:function(e,t){c.debugTool.onSetState(),p(null!=t,"setState(...): You passed an undefined or null state object; instead, use forceUpdate().");var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),r(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&l(!1,"%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,o(e))}};e.exports=d},function(e,t,n){"use strict";var r=n(3),o=n(12),i=n(1),a=o,s=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],c=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],u=c.concat(["button"]),l=["dd","dt","li","option","optgroup","p","rp","rt"],p={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null},d=function(e,t,n){var o=r({},e||p),i={tag:t,instance:n};return-1!==c.indexOf(t)&&(o.aTagInScope=null,o.buttonTagInScope=null,o.nobrTagInScope=null),-1!==u.indexOf(t)&&(o.pTagInButtonScope=null),-1!==s.indexOf(t)&&"address"!==t&&"div"!==t&&"p"!==t&&(o.listItemTagAutoclosing=null,o.dlItemTagAutoclosing=null),o.current=i,"form"===t&&(o.formTag=i),"a"===t&&(o.aTagInScope=i),"button"===t&&(o.buttonTagInScope=i),"nobr"===t&&(o.nobrTagInScope=i),"p"===t&&(o.pTagInButtonScope=i),"li"===t&&(o.listItemTagAutoclosing=i),"dd"!==t&&"dt"!==t||(o.dlItemTagAutoclosing=i),o},f=function(e,t){switch(t){case"select":return"option"===e||"optgroup"===e||"#text"===e;case"optgroup":return"option"===e||"#text"===e;case"option":return"#text"===e;case"tr":return"th"===e||"td"===e||"style"===e||"script"===e||"template"===e;case"tbody":case"thead":case"tfoot":return"tr"===e||"style"===e||"script"===e||"template"===e;case"colgroup":return"col"===e||"template"===e;case"table":return"caption"===e||"colgroup"===e||"tbody"===e||"tfoot"===e||"thead"===e||"style"===e||"script"===e||"template"===e;case"head":return"base"===e||"basefont"===e||"bgsound"===e||"link"===e||"meta"===e||"title"===e||"noscript"===e||"noframes"===e||"style"===e||"script"===e||"template"===e;case"html":return"head"===e||"body"===e;case"#document":return"html"===e}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t;case"rp":case"rt":return-1===l.indexOf(t);case"body":case"caption":case"col":case"colgroup":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return null==t}return!0},h=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},m=function(e){if(!e)return[];var t=[];do{t.push(e)}while(e=e._currentElement._owner);return t.reverse(),t},g={};a=function(e,t,n,r){r=r||p;var o=r.current,a=o&&o.tag;null!=t&&(i(null==e,"validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var s=f(e,a)?null:o,c=s?null:h(e,r),u=s||c;if(u){var l,d=u.tag,v=u.instance,y=n&&n._currentElement._owner,_=v&&v._currentElement._owner,b=m(y),C=m(_),E=Math.min(b.length,C.length),T=-1;for(l=0;l<E&&b[l]===C[l];l++)T=l;var w=b.slice(T+1).map(function(e){return e.getName()||"(unknown)"}),S=C.slice(T+1).map(function(e){return e.getName()||"(unknown)"}),x=[].concat(-1!==T?b[T].getName()||"(unknown)":[],S,d,c?["..."]:[],w,e).join(" > "),I=!!s+"|"+e+"|"+d+"|"+x;if(g[I])return;g[I]=!0;var R=e,O="";if("#text"===e?/\S/.test(t)?R="Text nodes":(R="Whitespace text nodes",O=" Make sure you don't have any extra whitespace between tags on each line of your source code."):R="<"+e+">",s){var N="";"table"===d&&"tr"===e&&(N+=" Add a <tbody> to your code to match the DOM tree generated by the browser."),i(!1,"validateDOMNesting(...): %s cannot appear as a child of <%s>.%s See %s.%s",R,d,O,x,N)}else i(!1,"validateDOMNesting(...): %s cannot appear as a descendant of <%s>. See %s.",R,d,x)}},a.updatedAncestorInfo=d,a.isTagValidInContext=function(e,t){t=t||p;var n=t.current,r=n&&n.tag;return f(e,r)&&!h(e,t)},e.exports=a},function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=r},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(76)("keys"),o=n(53);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(7),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,n){var r=n(18),o=n(7).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(18);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){e.exports={default:n(262),__esModule:!0}},function(e,t,n){"use strict";var r=n(263)(!0);n(82)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){"use strict";var r=n(55),o=n(10),i=n(135),a=n(21),s=n(25),c=n(38),u=n(264),l=n(41),p=n(132),d=n(8)("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,m,g,v,y){u(n,t,m);var _,b,C,E=function(e){if(!f&&e in x)return x[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",w="values"==g,S=!1,x=e.prototype,I=x[d]||x["@@iterator"]||g&&x[g],R=I||E(g),O=g?w?E("entries"):R:void 0,N="Array"==t?x.entries||I:I;if(N&&(C=p(N.call(new e)))!==Object.prototype&&C.next&&(l(C,T,!0),r||s(C,d)||a(C,d,h)),w&&I&&"values"!==I.name&&(S=!0,R=function(){return I.call(this)}),r&&!y||!f&&!S&&x[d]||a(x,d,R),c[t]=R,c[T]=h,g)if(_={values:w?R:E("values"),keys:v?R:E("keys"),entries:O},y)for(b in _)b in x||i(x,b,_[b]);else o(o.P+o.F*(f||S),t,_);return _}},function(e,t,n){var r=n(81),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){n(268);for(var r=n(7),o=n(21),i=n(38),a=n(8)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var u=s[c],l=r[u],p=l&&l.prototype;p&&!p[a]&&o(p,a,u),i[u]=i.Array}},function(e,t,n){t.f=n(8)},function(e,t,n){e.exports={default:n(270),__esModule:!0}},function(e,t,n){var r=n(53)("meta"),o=n(18),i=n(25),a=n(15).f,s=0,c=Object.isExtensible||function(){return!0},u=!n(31)(function(){return c(Object.preventExtensions({}))}),l=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},p=function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[r].i},d=function(e,t){if(!i(e,r)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[r].w},f=function(e){return u&&h.NEED&&c(e)&&!i(e,r)&&l(e),e},h=e.exports={KEY:r,NEED:!1,fastKey:p,getWeak:d,onFreeze:f}},function(e,t,n){var r=n(7),o=n(6),i=n(55),a=n(86),s=n(15).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){},function(e,t,n){e.exports={default:n(285),__esModule:!0}},function(e,t,n){e.exports={default:n(286),__esModule:!0}},function(e,t,n){var r=n(40),o=n(8)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),o))?n:i?r(t):"Object"==(s=r(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){"use strict";function r(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=o(t),this.reject=o(n)}var o=n(36);e.exports.f=function(e){return new r(e)}},function(e,t,n){var r=n(21);e.exports=function(e,t,n){for(var o in t)n&&e[o]?e[o]=t[o]:r(e,o,t[o]);return e}},function(e,t,n){"use strict";e.exports=n(27)},function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=u,this.updater=n||s}function o(e,t,n){this.props=e,this.context=t,this.refs=u,this.updater=n||s}function i(){}var a=(n(28),n(3)),s=n(100),c=n(43),u=n(44),l=n(0),p=n(57);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&l(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};var d={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(var f in d)d.hasOwnProperty(f)&&function(e,t){c&&Object.defineProperty(r.prototype,e,{get:function(){p(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})}(f,d[f]);i.prototype=r.prototype,o.prototype=new i,o.prototype.constructor=o,a(o.prototype,r.prototype),o.prototype.isPureReactComponent=!0,e.exports={Component:r,PureComponent:o}},function(e,t,n){"use strict";function r(e,t){var n=e.constructor;o(!1,"%s(...): Can only update a mounted or mounting component. This usually means you called %s() on an unmounted component. This is a no-op. Please check the code for the %s component.",t,t,n&&(n.displayName||n.name)||"ReactClass")}var o=n(1),i={isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")}};e.exports=i},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=r},function(e,t,n){"use strict";function r(e){var t=e&&(o&&e[o]||e[i]);if("function"==typeof t)return t}var o="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";e.exports=r},function(e,t,n){"use strict";function r(){if(u.current){var e=u.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(e){if(null!==e&&void 0!==e&&void 0!==e.__source){var t=e.__source;return" Check your code at "+t.fileName.replace(/^.*[\\\/]/,"")+":"+t.lineNumber+"."}return""}function i(e){var t=r();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t=" Check the top-level render call using <"+n+">.")}return t}function a(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=v.uniqueKey||(v.uniqueKey={}),r=i(t);if(!n[r]){n[r]=!0;var o="";e&&e._owner&&e._owner!==u.current&&(o=" It was passed a child from "+e._owner.getName()+"."),m(!1,'Each child in an array or iterator should have a unique "key" prop.%s%s See https://fb.me/react-warning-keys for more information.%s',r,o,l.getCurrentStackAddendum(e))}}}function s(e,t){if("object"==typeof e)if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];p.isValidElement(r)&&a(r,t)}else if(p.isValidElement(e))e._store&&(e._store.validated=!0);else if(e){var o=h(e);if(o&&o!==e.entries)for(var i,s=o.call(e);!(i=s.next()).done;)p.isValidElement(i.value)&&a(i.value,t)}}function c(e){var t=e.type;if("function"==typeof t){var n=t.displayName||t.name;t.propTypes&&d(t.propTypes,e.props,"prop",n,e,null),"function"==typeof t.getDefaultProps&&m(t.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var u=n(13),l=n(9),p=n(23),d=n(157),f=n(43),h=n(102),m=n(1),g=n(57),v={},y={createElement:function(e,t,n){var i="string"==typeof e||"function"==typeof e;if(!i&&"function"!=typeof e&&"string"!=typeof e){var a="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(a+=" You likely forgot to export your component from the file it's defined in.");var u=o(t);a+=u||r(),a+=l.getCurrentStackAddendum();var d=null!==t&&void 0!==t&&void 0!==t.__source?t.__source:null;l.pushNonStandardWarningStack(!0,d),m(!1,"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",null==e?e:typeof e,a),l.popNonStandardWarningStack()}var f=p.createElement.apply(this,arguments);if(null==f)return f;if(i)for(var h=2;h<arguments.length;h++)s(arguments[h],e);return c(f),f},createFactory:function(e){var t=y.createElement.bind(null,e);return t.type=e,f&&Object.defineProperty(t,"type",{enumerable:!1,get:function(){return g(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:e}),e}}),t},cloneElement:function(e,t,n){for(var r=p.cloneElement.apply(this,arguments),o=2;o<arguments.length;o++)s(arguments[o],r.type);return c(r),r}};e.exports=y},function(e,t,n){"use strict";var r=n(161);e.exports=function(e){return r(e,!1)}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r={hasCachedChildNodes:1};e.exports=r},function(e,t,n){"use strict";function r(e,t){return null==t&&o(!1,"accumulateInto(...): Accumulated items must not be null or undefined."),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}var o=(n(2),n(0));e.exports=r},function(e,t,n){"use strict";function r(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}e.exports=r},function(e,t,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(5),i=null;e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=(n(2),n(24)),i=n(0),a=function(){function e(t){r(this,e),this._callbacks=null,this._contexts=null,this._arg=t}return e.prototype.enqueue=function(e,t){this._callbacks=this._callbacks||[],this._callbacks.push(e),this._contexts=this._contexts||[],this._contexts.push(t)},e.prototype.notifyAll=function(){var e=this._callbacks,t=this._contexts,n=this._arg;if(e&&t){e.length!==t.length&&i(!1,"Mismatched list of contexts in callback queue"),this._callbacks=null,this._contexts=null;for(var r=0;r<e.length;r++)e[r].call(t[r],n);e.length=0,t.length=0}},e.prototype.checkpoint=function(){return this._callbacks?this._callbacks.length:0},e.prototype.rollback=function(e){this._callbacks&&this._contexts&&(this._callbacks.length=e,this._contexts.length=e)},e.prototype.reset=function(){this._callbacks=null,this._contexts=null},e.prototype.destructor=function(){this.reset()},e}();e.exports=o.addPoolingTo(a)},function(e,t,n){"use strict";var r={logTopLevelRenders:!1};e.exports=r},function(e,t,n){"use strict";function r(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function o(e){return e._wrapperState.valueTracker}function i(e,t){e._wrapperState.valueTracker=t}function a(e){delete e._wrapperState.valueTracker}function s(e){var t;return e&&(t=r(e)?""+e.checked:e.value),t}var c=n(4),u={_getTrackerFromNode:function(e){return o(c.getInstanceFromNode(e))},track:function(e){if(!o(e)){var t=c.getNodeFromInstance(e),n=r(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),u=""+t[n];t.hasOwnProperty(n)||"function"!=typeof s.get||"function"!=typeof s.set||(Object.defineProperty(t,n,{enumerable:s.enumerable,configurable:!0,get:function(){return s.get.call(this)},set:function(e){u=""+e,s.set.call(this,e)}}),i(e,{getValue:function(){return u},setValue:function(e){u=""+e},stopTracking:function(){a(e),delete t[n]}}))}},updateValueIfChanged:function(e){if(!e)return!1;var t=o(e);if(!t)return u.track(e),!0;var n=t.getValue(),r=s(c.getNodeFromInstance(e));return r!==n&&(t.setValue(r),!0)},stopTracking:function(e){var t=o(e);t&&t.stopTracking()}};e.exports=u},function(e,t,n){"use strict";function r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!o[e.type]:"textarea"===t}var o={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=r},function(e,t,n){"use strict";var r={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){r.currentScrollLeft=e.x,r.currentScrollTop=e.y}};e.exports=r},function(e,t,n){"use strict";var r=n(5),o=n(50),i=n(49),a=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){if(3===e.nodeType)return void(e.nodeValue=t);i(e,o(t))})),e.exports=a},function(e,t,n){"use strict";function r(e){try{e.focus()}catch(e){}}e.exports=r},function(e,t,n){"use strict";function r(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var o={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},i=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(e){i.forEach(function(t){o[r(t,e)]=o[e]})});var a={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},s={isUnitlessNumber:o,shorthandPropertyExpansions:a};e.exports=s},function(e,t,n){"use strict";function r(e){return!!d.hasOwnProperty(e)||!p.hasOwnProperty(e)&&(l.test(e)?(d[e]=!0,!0):(p[e]=!0,u(!1,"Invalid attribute name: `%s`",e),!1))}function o(e,t){return null==t||e.hasBooleanValue&&!t||e.hasNumericValue&&isNaN(t)||e.hasPositiveNumericValue&&t<1||e.hasOverloadedBooleanValue&&!1===t}var i=n(19),a=n(4),s=n(11),c=n(201),u=n(1),l=new RegExp("^["+i.ATTRIBUTE_NAME_START_CHAR+"]["+i.ATTRIBUTE_NAME_CHAR+"]*$"),p={},d={},f={createMarkupForID:function(e){return i.ID_ATTRIBUTE_NAME+"="+c(e)},setAttributeForID:function(e,t){e.setAttribute(i.ID_ATTRIBUTE_NAME,t)},createMarkupForRoot:function(){return i.ROOT_ATTRIBUTE_NAME+'=""'},setAttributeForRoot:function(e){e.setAttribute(i.ROOT_ATTRIBUTE_NAME,"")},createMarkupForProperty:function(e,t){var n=i.properties.hasOwnProperty(e)?i.properties[e]:null;if(n){if(o(n,t))return"";var r=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&!0===t?r+'=""':r+"="+c(t)}return i.isCustomAttribute(e)?null==t?"":e+"="+c(t):null},createMarkupForCustomAttribute:function(e,t){return r(e)&&null!=t?e+"="+c(t):""},setValueForProperty:function(e,t,n){var r=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(r){var c=r.mutationMethod;if(c)c(e,n);else{if(o(r,n))return void this.deleteValueForProperty(e,t);if(r.mustUseProperty)e[r.propertyName]=n;else{var u=r.attributeName,l=r.attributeNamespace;l?e.setAttributeNS(l,u,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&!0===n?e.setAttribute(u,""):e.setAttribute(u,""+n)}}}else if(i.isCustomAttribute(t))return void f.setValueForAttribute(e,t,n);var p={};p[t]=n,s.debugTool.onHostOperation({instanceID:a.getInstanceFromNode(e)._debugID,type:"update attribute",payload:p})},setValueForAttribute:function(e,t,n){if(r(t)){null==n?e.removeAttribute(t):e.setAttribute(t,""+n);var o={};o[t]=n,s.debugTool.onHostOperation({instanceID:a.getInstanceFromNode(e)._debugID,type:"update attribute",payload:o})}},deleteValueForAttribute:function(e,t){e.removeAttribute(t),s.debugTool.onHostOperation({instanceID:a.getInstanceFromNode(e)._debugID,type:"remove attribute",payload:t})},deleteValueForProperty:function(e,t){var n=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(n){var r=n.mutationMethod;if(r)r(e,void 0);else if(n.mustUseProperty){var o=n.propertyName;n.hasBooleanValue?e[o]=!1:e[o]=""}else e.removeAttribute(n.attributeName)}else i.isCustomAttribute(t)&&e.removeAttribute(t);s.debugTool.onHostOperation({instanceID:a.getInstanceFromNode(e)._debugID,type:"remove attribute",payload:t})}};e.exports=f},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var e=this._currentElement.props,t=u.getValue(e);null!=t&&a(this,Boolean(e.multiple),t)}}function o(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function i(e,t){var n=e._currentElement._owner;u.checkPropTypes("select",t,n),void 0===t.valueLink||f||(d(!1,"`valueLink` prop on `select` is deprecated; set `value` and `onChange` instead."),f=!0);for(var r=0;r<m.length;r++){var i=m[r];if(null!=t[i]){var a=Array.isArray(t[i]);t.multiple&&!a?d(!1,"The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",i,o(n)):!t.multiple&&a&&d(!1,"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",i,o(n))}}}function a(e,t,n){var r,o,i=l.getNodeFromInstance(e).options;if(t){for(r={},o=0;o<n.length;o++)r[""+n[o]]=!0;for(o=0;o<i.length;o++){var a=r.hasOwnProperty(i[o].value);i[o].selected!==a&&(i[o].selected=a)}}else{for(r=""+n,o=0;o<i.length;o++)if(i[o].value===r)return void(i[o].selected=!0);i.length&&(i[0].selected=!0)}}function s(e){var t=this._currentElement.props,n=u.executeOnChange(t,e);return this._rootNodeID&&(this._wrapperState.pendingUpdate=!0),p.asap(r,this),n}var c=n(3),u=n(66),l=n(4),p=n(14),d=n(1),f=!1,h=!1,m=["value","defaultValue"],g={getHostProps:function(e,t){return c({},t,{onChange:e._wrapperState.onChange,value:void 0})},mountWrapper:function(e,t){i(e,t);var n=u.getValue(t);e._wrapperState={pendingUpdate:!1,initialValue:null!=n?n:t.defaultValue,listeners:null,onChange:s.bind(e),wasMultiple:Boolean(t.multiple)},void 0===t.value||void 0===t.defaultValue||h||(d(!1,"Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://fb.me/react-controlled-components"),h=!0)},getSelectValueContext:function(e){return e._wrapperState.initialValue},postUpdateWrapper:function(e){var t=e._currentElement.props;e._wrapperState.initialValue=void 0;var n=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=Boolean(t.multiple);var r=u.getValue(t);null!=r?(e._wrapperState.pendingUpdate=!1,a(e,Boolean(t.multiple),r)):n!==Boolean(t.multiple)&&(null!=t.defaultValue?a(e,Boolean(t.multiple),t.defaultValue):a(e,Boolean(t.multiple),t.multiple?[]:""))}};e.exports=g},function(e,t,n){"use strict";function r(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""}function o(e){return"function"==typeof e&&void 0!==e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if(null===e||!1===e)n=c.create(i);else if("object"==typeof e){var a=e,s=a.type;if("function"!=typeof s&&"string"!=typeof s){var h="";(void 0===s||"object"==typeof s&&null!==s&&0===Object.keys(s).length)&&(h+=" You likely forgot to export your component from the file it's defined in."),h+=r(a._owner),p(!1,"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",null==s?s:typeof s,h)}"string"==typeof a.type?n=u.createInternalComponent(a):o(a.type)?(n=new a.type(a),n.getHostNode||(n.getHostNode=n.getNativeNode)):n=new f(a)}else"string"==typeof e||"number"==typeof e?n=u.createInstanceForText(e):p(!1,"Encountered invalid React node of type %s",typeof e);return d("function"==typeof n.mountComponent&&"function"==typeof n.receiveComponent&&"function"==typeof n.getHostNode&&"function"==typeof n.unmountComponent,"Only React Components can be mounted."),n._mountIndex=0,n._mountImage=null,n._debugID=t?l():0,Object.preventExtensions&&Object.preventExtensions(n),n}var a=(n(2),n(3)),s=n(209),c=n(123),u=n(124),l=n(212),p=n(0),d=n(1),f=function(e){this.construct(e)};a(f.prototype,s,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";var r=(n(2),n(27)),o=n(0),i={HOST:0,COMPOSITE:1,EMPTY:2,getType:function(e){return null===e||!1===e?i.EMPTY:r.isValidElement(e)?"function"==typeof e.type?i.COMPOSITE:i.HOST:void o(!1,"Unexpected node: %s",e)}};e.exports=i},function(e,t,n){"use strict";var r,o={injectEmptyComponentFactory:function(e){r=e}},i={create:function(e){return r(e)}};i.injection=o,e.exports=i},function(e,t,n){"use strict";function r(e){return s||a(!1,"There is no registered component for the tag %s",e.type),new s(e)}function o(e){return new c(e)}function i(e){return e instanceof c}var a=(n(2),n(0)),s=null,c=null,u={injectGenericComponentClass:function(e){s=e},injectTextComponentClass:function(e){c=e}},l={createInternalComponent:r,createInstanceForText:o,isTextComponent:i,injection:u};e.exports=l},function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?l.escape(e.key):t.toString(36)}function o(e,t,n,i){var m=typeof e;if("undefined"!==m&&"boolean"!==m||(e=null),null===e||"string"===m||"number"===m||"object"===m&&e.$$typeof===s)return n(i,e,""===t?d+r(e,0):t),1;var g,v,y=0,_=""===t?d:t+f;if(Array.isArray(e))for(var b=0;b<e.length;b++)g=e[b],v=_+r(g,b),y+=o(g,v,n,i);else{var C=c(e);if(C){var E,T=C.call(e);if(C!==e.entries)for(var w=0;!(E=T.next()).done;)g=E.value,v=_+r(g,w++),y+=o(g,v,n,i);else{var S="";if(a.current){var x=a.current.getName();x&&(S=" Check the render method of `"+x+"`.")}for(p(h,"Using Maps as children is not yet fully supported. It is an experimental feature that might be removed. Convert it to a sequence / iterable of keyed ReactElements instead.%s",S),h=!0;!(E=T.next()).done;){var I=E.value;I&&(g=I[1],v=_+l.escape(I[0])+f+r(g,0),y+=o(g,v,n,i))}}}else if("object"===m){var R="";if(R=" If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.",e._isReactElement&&(R=" It looks like you're using an element created by a different version of React. Make sure to use only one copy of React."),a.current){var O=a.current.getName();O&&(R+=" Check the render method of `"+O+"`.")}var N=String(e);u(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===N?"object with keys {"+Object.keys(e).join(", ")+"}":N,R)}}return y}function i(e,t,n){return null==e?0:o(e,"",t,n)}var a=(n(2),n(13)),s=n(213),c=n(214),u=n(0),l=n(70),p=n(1),d=".",f=":",h=!1;e.exports=i},function(e,t,n){"use strict";var r=n(12),o={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):(console.error("Attempted to listen to events during the capture phase on a browser that does not support the capture phase. Your application will not receive some events."),{remove:r})},registerDefault:function(){}};e.exports=o},function(e,t,n){"use strict";function r(e){return i(document.documentElement,e)}var o=n(226),i=n(228),a=n(116),s=n(128),c={hasSelectionCapabilities:function(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&"text"===e.type||"textarea"===t||"true"===e.contentEditable)},getSelectionInformation:function(){var e=s();return{focusedElem:e,selectionRange:c.hasSelectionCapabilities(e)?c.getSelection(e):null}},restoreSelection:function(e){var t=s(),n=e.focusedElem,o=e.selectionRange;t!==n&&r(n)&&(c.hasSelectionCapabilities(n)&&c.setSelection(n,o),a(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=o.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;if(void 0===r&&(r=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length);else if(document.selection&&e.nodeName&&"input"===e.nodeName.toLowerCase()){var i=e.createTextRange();i.collapse(!0),i.moveStart("character",n),i.moveEnd("character",r-n),i.select()}else o.setOffsets(e,t)}};e.exports=c},function(e,t,n){"use strict";function r(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=r},function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function o(e){return e?e.nodeType===L?e.documentElement:e.firstChild:null}function i(e){return e.getAttribute&&e.getAttribute(B)||""}function a(e,t,n,r,o){var i;if(T.logTopLevelRenders){var a=e._currentElement.props.child,s=a.type;i="React mount: "+("string"==typeof s?s:s.displayName||s.name),console.time(i)}var c=I.mountComponent(e,n,null,C(e,t),o,0);i&&console.timeEnd(i),e._renderedComponent._topLevelWrapper=e,V._mountImageIntoNode(c,t,e,r,n)}function s(e,t,n,r){var o=O.ReactReconcileTransaction.getPooled(!n&&E.useCreateElement);o.perform(a,null,e,t,o,n,r),O.ReactReconcileTransaction.release(o)}function c(e,t,n){for(S.debugTool.onBeginFlush(),I.unmountComponent(e,n),S.debugTool.onEndFlush(),t.nodeType===L&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)}function u(e){var t=o(e);if(t){var n=b.getInstanceFromNode(t);return!(!n||!n._hostParent)}}function l(e){var t=o(e);return!(!t||!d(t)||b.getInstanceFromNode(t))}function p(e){return!(!e||e.nodeType!==U&&e.nodeType!==L&&e.nodeType!==F)}function d(e){return p(e)&&(e.hasAttribute(j)||e.hasAttribute(B))}function f(e){var t=o(e),n=t&&b.getInstanceFromNode(t);return n&&!n._hostParent?n:null}function h(e){var t=f(e);return t?t._hostContainerInfo._topLevelWrapper:null}var m=(n(2),n(30)),g=n(19),v=n(27),y=n(51),_=n(13),b=n(4),C=n(243),E=n(244),T=n(111),w=n(35),S=n(11),x=n(245),I=n(29),R=n(71),O=n(14),N=n(44),k=n(121),M=n(0),P=n(49),A=n(69),D=n(1),B=g.ID_ATTRIBUTE_NAME,j=g.ROOT_ATTRIBUTE_NAME,U=1,L=9,F=11,W={},H=1,G=function(){this.rootID=H++};G.prototype.isReactComponent={},G.displayName="TopLevelWrapper",G.prototype.render=function(){return this.props.child},G.isReactTopLevelWrapper=!0;var V={TopLevelWrapper:G,_instancesByReactRootID:W,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r,o){return V.scrollMonitor(r,function(){R.enqueueElementInternal(e,t,n),o&&R.enqueueCallbackInternal(e,o)}),e},_renderNewRootComponent:function(e,t,n,r){D(null==_.current,"_renderNewRootComponent(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. Check the render method of %s.",_.current&&_.current.getName()||"ReactCompositeComponent"),p(t)||M(!1,"_registerComponent(...): Target container is not a DOM element."),y.ensureScrollValueMonitoring();var o=k(e,!1);O.batchedUpdates(s,o,t,n,r);var i=o._instance.rootID;return W[i]=o,o},renderSubtreeIntoContainer:function(e,t,n,r){return null!=e&&w.has(e)||M(!1,"parentComponent must be a valid React Component"),V._renderSubtreeIntoContainer(e,t,n,r)},_renderSubtreeIntoContainer:function(e,t,n,r){R.validateCallback(r,"ReactDOM.render"),v.isValidElement(t)||M(!1,"ReactDOM.render(): Invalid component element.%s","string"==typeof t?" Instead of passing a string like 'div', pass React.createElement('div') or <div />.":"function"==typeof t?" Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />.":null!=t&&void 0!==t.props?" This may be caused by unintentionally loading two independent copies of React.":""),D(!n||!n.tagName||"BODY"!==n.tagName.toUpperCase(),"render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.");var a,s=v.createElement(G,{child:t});if(e){var c=w.get(e);a=c._processChildContext(c._context)}else a=N;var l=h(n);if(l){var p=l._currentElement,d=p.props.child;if(A(d,t)){var f=l._renderedComponent.getPublicInstance(),m=r&&function(){r.call(f)};return V._updateRootComponent(l,s,a,n,m),f}V.unmountComponentAtNode(n)}var g=o(n),y=g&&!!i(g),_=u(n);if(D(!_,"render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),!y||g.nextSibling)for(var b=g;b;){if(i(b)){D(!1,"render(): Target node has markup rendered by React, but there are unrelated nodes as well. This is most commonly caused by white-space inserted around server-rendered markup.");break}b=b.nextSibling}var C=y&&!l&&!_,E=V._renderNewRootComponent(s,n,C,a)._renderedComponent.getPublicInstance();return r&&r.call(E),E},render:function(e,t,n){return V._renderSubtreeIntoContainer(null,e,t,n)},unmountComponentAtNode:function(e){D(null==_.current,"unmountComponentAtNode(): Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate. Check the render method of %s.",_.current&&_.current.getName()||"ReactCompositeComponent"),p(e)||M(!1,"unmountComponentAtNode(...): Target container is not a DOM element."),D(!l(e),"unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.");var t=h(e);if(!t){var n=u(e),r=1===e.nodeType&&e.hasAttribute(j);return D(!n,"unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",r?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component."),!1}return delete W[t._instance.rootID],O.batchedUpdates(c,t,e,!1),!0},_mountImageIntoNode:function(e,t,n,i,a){if(p(t)||M(!1,"mountComponentIntoNode(...): Target container is not valid."),i){var s=o(t);if(x.canReuseMarkup(e,s))return void b.precacheNode(n,s);var c=s.getAttribute(x.CHECKSUM_ATTR_NAME);s.removeAttribute(x.CHECKSUM_ATTR_NAME);var u=s.outerHTML;s.setAttribute(x.CHECKSUM_ATTR_NAME,c);var l,d=e;t.nodeType===U?(l=document.createElement("div"),l.innerHTML=e,d=l.innerHTML):(l=document.createElement("iframe"),document.body.appendChild(l),l.contentDocument.write(e),d=l.contentDocument.documentElement.outerHTML,document.body.removeChild(l));var f=r(d,u),h=" (client) "+d.substring(f-20,f+20)+"\n (server) "+u.substring(f-20,f+20);t.nodeType===L&&M(!1,"You're trying to render a component to the document using server rendering but the checksum was invalid. This usually means you rendered a different component type or props on the client from the one on the server, or your render() methods are impure. React cannot handle this case due to cross-browser quirks by rendering at the document root. You should look for environment dependent code in your components and ensure the props are the same client and server side:\n%s",h),D(!1,"React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server:\n%s",h)}if(t.nodeType===L&&M(!1,"You're trying to render a component to the document but you didn't use server rendering. We can't do this without using server rendering due to cross-browser quirks. See ReactDOMServer.renderToString() for server rendering."),a.useCreateElement){for(;t.lastChild;)t.removeChild(t.lastChild);m.insertTreeBefore(t,e,null)}else P(t,e),b.precacheNode(n,t.firstChild);var g=b.getInstanceFromNode(t.firstChild);0!==g._debugID&&S.debugTool.onHostOperation({instanceID:g._debugID,type:"mount",payload:e.toString()})}};e.exports=V},function(e,t,n){"use strict";function r(e){for(var t;(t=e._renderedNodeType)===o.COMPOSITE;)e=e._renderedComponent;return t===o.HOST?e._renderedComponent:t===o.EMPTY?null:void 0}var o=n(122);e.exports=r},function(e,t,n){e.exports={default:n(254),__esModule:!0}},function(e,t,n){var r=n(25),o=n(52),i=n(75)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(10),o=n(6),i=n(31);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){e.exports=!n(16)&&!n(31)(function(){return 7!=Object.defineProperty(n(77)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=n(21)},function(e,t,n){var r=n(25),o=n(26),i=n(266)(!1),a=n(75)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){var r=n(40);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(7).document;e.exports=r&&r.documentElement},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(40);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(136),o=n(84).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(90),o=n(54),i=n(26),a=n(78),s=n(25),c=n(134),u=Object.getOwnPropertyDescriptor;t.f=n(16)?u:function(e,t){if(e=i(e),t=a(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){e.exports={default:n(282),__esModule:!0}},function(e,t,n){var r=n(22),o=n(36),i=n(8)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[i])?t:o(n)}},function(e,t,n){var r,o,i,a=n(20),s=n(295),c=n(138),u=n(77),l=n(7),p=l.process,d=l.setImmediate,f=l.clearImmediate,h=l.MessageChannel,m=l.Dispatch,g=0,v={},y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},_=function(e){y.call(e.data)};d&&f||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},f=function(e){delete v[e]},"process"==n(40)(p)?r=function(e){p.nextTick(a(y,e,1))}:m&&m.now?r=function(e){m.now(a(y,e,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=_,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",_,!1)):r="onreadystatechange"in u("script")?function(e){c.appendChild(u("script")).onreadystatechange=function(){c.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:d,clear:f}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(96);e.exports=function(e,t){var n=r.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(7),o=n(6),i=n(15),a=n(16),s=n(8)("species");e.exports=function(e){var t="function"==typeof o[e]?o[e]:r[e];a&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(18);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(98),i=r(o),a=n(167),s=r(a),c=n(253),u=r(c);s.default.render(i.default.createElement(u.default,null),document.getElementById("app"))},function(e,t,n){"use strict";function r(e){return(""+e).replace(b,"$&/")}function o(e,t){this.func=e,this.context=t,this.count=0}function i(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function a(e,t,n){if(null==e)return e;var r=o.getPooled(t,n);v(e,i,r),o.release(r)}function s(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function c(e,t,n){var o=e.result,i=e.keyPrefix,a=e.func,s=e.context,c=a.call(s,t,e.count++);Array.isArray(c)?u(c,o,n,g.thatReturnsArgument):null!=c&&(m.isValidElement(c)&&(c=m.cloneAndReplaceKey(c,i+(!c.key||t&&t.key===c.key?"":r(c.key)+"/")+n)),o.push(c))}function u(e,t,n,o,i){var a="";null!=n&&(a=r(n)+"/");var u=s.getPooled(t,a,o,i);v(e,c,u),s.release(u)}function l(e,t,n){if(null==e)return e;var r=[];return u(e,r,null,t,n),r}function p(e,t,n){return null}function d(e,t){return v(e,p,null)}function f(e){var t=[];return u(e,t,null,g.thatReturnsArgument),t}var h=n(153),m=n(23),g=n(12),v=n(154),y=h.twoArgumentPooler,_=h.fourArgumentPooler,b=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(o,y),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(s,_);var C={forEach:a,map:l,mapIntoWithKeyPrefixInternal:u,count:d,toArray:f};e.exports=C},function(e,t,n){"use strict";var r=(n(28),n(0)),o=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},c=function(e){var t=this;e instanceof t||r(!1,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},u=o,l=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||u,n.poolSize||(n.poolSize=10),n.release=c,n},p={addPoolingTo:l,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:s};e.exports=p},function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?l.escape(e.key):t.toString(36)}function o(e,t,n,i){var m=typeof e;if("undefined"!==m&&"boolean"!==m||(e=null),null===e||"string"===m||"number"===m||"object"===m&&e.$$typeof===s)return n(i,e,""===t?d+r(e,0):t),1;var g,v,y=0,_=""===t?d:t+f;if(Array.isArray(e))for(var b=0;b<e.length;b++)g=e[b],v=_+r(g,b),y+=o(g,v,n,i);else{var C=c(e);if(C){var E,T=C.call(e);if(C!==e.entries)for(var w=0;!(E=T.next()).done;)g=E.value,v=_+r(g,w++),y+=o(g,v,n,i);else{var S="";if(a.current){var x=a.current.getName();x&&(S=" Check the render method of `"+x+"`.")}for(p(h,"Using Maps as children is not yet fully supported. It is an experimental feature that might be removed. Convert it to a sequence / iterable of keyed ReactElements instead.%s",S),h=!0;!(E=T.next()).done;){var I=E.value;I&&(g=I[1],v=_+l.escape(I[0])+f+r(g,0),y+=o(g,v,n,i))}}}else if("object"===m){var R="";if(R=" If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.",e._isReactElement&&(R=" It looks like you're using an element created by a different version of React. Make sure to use only one copy of React."),a.current){var O=a.current.getName();O&&(R+=" Check the render method of `"+O+"`.")}var N=String(e);u(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===N?"object with keys {"+Object.keys(e).join(", ")+"}":N,R)}}return y}function i(e,t,n){return null==e?0:o(e,"",t,n)}var a=(n(28),n(13)),s=n(101),c=n(102),u=n(0),l=n(155),p=n(1),d=".",f=":",h=!1;e.exports=i},function(e,t,n){"use strict";function r(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function o(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(t,function(e){return n[e]})}var i={escape:r,unescape:o};e.exports=i},function(e,t,n){"use strict";var r=n(23),o=r.createFactory;o=n(103).createFactory;var i={a:o("a"),abbr:o("abbr"),address:o("address"),area:o("area"),article:o("article"),aside:o("aside"),audio:o("audio"),b:o("b"),base:o("base"),bdi:o("bdi"),bdo:o("bdo"),big:o("big"),blockquote:o("blockquote"),body:o("body"),br:o("br"),button:o("button"),canvas:o("canvas"),caption:o("caption"),cite:o("cite"),code:o("code"),col:o("col"),colgroup:o("colgroup"),data:o("data"),datalist:o("datalist"),dd:o("dd"),del:o("del"),details:o("details"),dfn:o("dfn"),dialog:o("dialog"),div:o("div"),dl:o("dl"),dt:o("dt"),em:o("em"),embed:o("embed"),fieldset:o("fieldset"),figcaption:o("figcaption"),figure:o("figure"),footer:o("footer"),form:o("form"),h1:o("h1"),h2:o("h2"),h3:o("h3"),h4:o("h4"),h5:o("h5"),h6:o("h6"),head:o("head"),header:o("header"),hgroup:o("hgroup"),hr:o("hr"),html:o("html"),i:o("i"),iframe:o("iframe"),img:o("img"),input:o("input"),ins:o("ins"),kbd:o("kbd"),keygen:o("keygen"),label:o("label"),legend:o("legend"),li:o("li"),link:o("link"),main:o("main"),map:o("map"),mark:o("mark"),menu:o("menu"),menuitem:o("menuitem"),meta:o("meta"),meter:o("meter"),nav:o("nav"),noscript:o("noscript"),object:o("object"),ol:o("ol"),optgroup:o("optgroup"),option:o("option"),output:o("output"),p:o("p"),param:o("param"),picture:o("picture"),pre:o("pre"),progress:o("progress"),q:o("q"),rp:o("rp"),rt:o("rt"),ruby:o("ruby"),s:o("s"),samp:o("samp"),script:o("script"),section:o("section"),select:o("select"),small:o("small"),source:o("source"),span:o("span"),strong:o("strong"),style:o("style"),sub:o("sub"),summary:o("summary"),sup:o("sup"),table:o("table"),tbody:o("tbody"),td:o("td"),textarea:o("textarea"),tfoot:o("tfoot"),th:o("th"),thead:o("thead"),time:o("time"),title:o("title"),tr:o("tr"),track:o("track"),u:o("u"),ul:o("ul"),var:o("var"),video:o("video"),wbr:o("wbr"),circle:o("circle"),clipPath:o("clipPath"),defs:o("defs"),ellipse:o("ellipse"),g:o("g"),image:o("image"),line:o("line"),linearGradient:o("linearGradient"),mask:o("mask"),path:o("path"),pattern:o("pattern"),polygon:o("polygon"),polyline:o("polyline"),radialGradient:o("radialGradient"),rect:o("rect"),stop:o("stop"),svg:o("svg"),text:o("text"),tspan:o("tspan")};e.exports=i},function(e,t,n){"use strict";(function(t){function r(e,t,r,l,p,d){for(var f in e)if(e.hasOwnProperty(f)){var h;try{"function"!=typeof e[f]&&s(!1,"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",l||"React class",i[r],f),h=e[f](t,f,l,r,null,a)}catch(e){h=e}if(c(!h||h instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",l||"React class",i[r],f,typeof h),h instanceof Error&&!(h.message in u)){u[h.message]=!0;var m="";o||(o=n(9)),null!==d?m=o.getStackAddendumByID(d):null!==p&&(m=o.getCurrentStackAddendum(p)),c(!1,"Failed %s type: %s%s",r,h.message,m)}}}var o,i=(n(28),n(158)),a=n(159),s=n(0),c=n(1);void 0!==t&&Object({NODE_ENV:"prodution"});var u={};e.exports=r}).call(t,n(45))},function(e,t,n){"use strict";var r={};r={prop:"prop",context:"context",childContext:"child context"},e.exports=r},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(23),o=r.isValidElement,i=n(104);e.exports=i(o)},function(e,t,n){"use strict";var r=n(12),o=n(0),i=n(1),a=n(105),s=n(162);e.exports=function(e,t){function n(e){var t=e&&(w&&e[w]||e[S]);if("function"==typeof t)return t}function c(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t}function u(e){this.message=e,this.stack=""}function l(e){function n(n,c,l,p,d,f,h){if(p=p||x,f=f||l,h!==a)if(t)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("undefined"!=typeof console){var m=p+":"+l;!r[m]&&s<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",f,p),r[m]=!0,s++)}return null==c[l]?n?new u(null===c[l]?"The "+d+" `"+f+"` is marked as required in `"+p+"`, but its value is `null`.":"The "+d+" `"+f+"` is marked as required in `"+p+"`, but its value is `undefined`."):null:e(c,l,p,d,f)}var r={},s=0,c=n.bind(null,!1);return c.isRequired=n.bind(null,!0),c}function p(e){function t(t,n,r,o,i,a){var s=t[n];if(b(s)!==e)return new u("Invalid "+o+" `"+i+"` of type `"+C(s)+"` supplied to `"+r+"`, expected `"+e+"`.");return null}return l(t)}function d(e){function t(t,n,r,o,i){if("function"!=typeof e)return new u("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){return new u("Invalid "+o+" `"+i+"` of type `"+b(s)+"` supplied to `"+r+"`, expected an array.")}for(var c=0;c<s.length;c++){var l=e(s,c,r,o,i+"["+c+"]",a);if(l instanceof Error)return l}return null}return l(t)}function f(e){function t(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||x;return new u("Invalid "+o+" `"+i+"` of type `"+T(t[n])+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}return null}return l(t)}function h(e){function t(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(c(a,e[s]))return null;return new u("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")}return Array.isArray(e)?l(t):(i(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull)}function m(e){function t(t,n,r,o,i){if("function"!=typeof e)return new u("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],c=b(s);if("object"!==c)return new u("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var l in s)if(s.hasOwnProperty(l)){var p=e(s,l,r,o,i+"."+l,a);if(p instanceof Error)return p}return null}return l(t)}function g(e){function t(t,n,r,o,i){for(var s=0;s<e.length;s++){if(null==(0,e[s])(t,n,r,o,i,a))return null}return new u("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}if(!Array.isArray(e))return i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var o=e[n];if("function"!=typeof o)return i(!1,"Invalid argument supplid to oneOfType. Expected an array of check functions, but received %s at index %s.",E(o),n),r.thatReturnsNull}return l(t)}function v(e){function t(t,n,r,o,i){var s=t[n],c=b(s);if("object"!==c)return new u("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var l in e){var p=e[l];if(p){var d=p(s,l,r,o,i+"."+l,a);if(d)return d}}return null}return l(t)}function y(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(y);if(null===t||e(t))return!0;var r=n(t);if(!r)return!1;var o,i=r.call(t);if(r!==t.entries){for(;!(o=i.next()).done;)if(!y(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!y(a[1]))return!1}return!0;default:return!1}}function _(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":_(t,e)?"symbol":t}function C(e){if(void 0===e||null===e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function E(e){var t=C(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function T(e){return e.constructor&&e.constructor.name?e.constructor.name:x}var w="function"==typeof Symbol&&Symbol.iterator,S="@@iterator",x="<<anonymous>>",I={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:function(){return l(r.thatReturnsNull)}(),arrayOf:d,element:function(){function t(t,n,r,o,i){var a=t[n];if(!e(a)){return new u("Invalid "+o+" `"+i+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement.")}return null}return l(t)}(),instanceOf:f,node:function(){function e(e,t,n,r,o){return y(e[t])?null:new u("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}return l(e)}(),objectOf:m,oneOf:h,oneOfType:g,shape:v};return u.prototype=Error.prototype,I.checkPropTypes=s,I.PropTypes=I,I}},function(e,t,n){"use strict";function r(e,t,n,r,c){for(var u in e)if(e.hasOwnProperty(u)){var l;try{o("function"==typeof e[u],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",r||"React class",n,u),l=e[u](t,u,r,n,null,a)}catch(e){l=e}if(i(!l||l instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",r||"React class",n,u,typeof l),l instanceof Error&&!(l.message in s)){s[l.message]=!0;var p=c?c():"";i(!1,"Failed %s type: %s%s",n,l.message,null!=p?p:"")}}}var o=n(0),i=n(1),a=n(105),s={};e.exports=r},function(e,t,n){"use strict";e.exports="15.6.1"},function(e,t,n){"use strict";var r=n(99),o=r.Component,i=n(23),a=i.isValidElement,s=n(100),c=n(165);e.exports=c(o,a,s)},function(e,t,n){"use strict";function r(e){return e}function o(e,t,n){function o(e,t,n){for(var r in t)t.hasOwnProperty(r)&&u("function"==typeof t[r],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",e.displayName||"ReactClass",i[n],r)}function p(e,t){var n=C.hasOwnProperty(t)?C[t]:null;S.hasOwnProperty(t)&&c("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&c("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function d(e,n){if(!n){var r=typeof n;return void u("object"===r&&null!==n,"%s: You're attempting to include a mixin that is either null or not an object. Check the mixins included by the component, as well as any mixins they include themselves. Expected object but got %s.",e.displayName||"ReactClass",null===n?null:r)}c("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),c(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var o=e.prototype,i=o.__reactAutoBindPairs;n.hasOwnProperty(l)&&E.mixins(e,n.mixins);for(var a in n)if(n.hasOwnProperty(a)&&a!==l){var s=n[a],d=o.hasOwnProperty(a);if(p(d,a),E.hasOwnProperty(a))E[a](e,s);else{var f=C.hasOwnProperty(a),h="function"==typeof s,v=h&&!f&&!d&&!1!==n.autobind;if(v)i.push(a,s),o[a]=s;else if(d){var y=C[a];c(f&&("DEFINE_MANY_MERGED"===y||"DEFINE_MANY"===y),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",y,a),"DEFINE_MANY_MERGED"===y?o[a]=m(o[a],s):"DEFINE_MANY"===y&&(o[a]=g(o[a],s))}else o[a]=s,"function"==typeof s&&n.displayName&&(o[a].displayName=n.displayName+"_"+a)}}}function f(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in E;c(!o,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in e;c(!i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=r}}}function h(e,t){c(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(c(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function m(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return h(o,n),h(o,r),o}}function g(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function v(e,t){var n=t.bind(e);n.__reactBoundContext=e,n.__reactBoundMethod=t,n.__reactBoundArguments=null;var r=e.constructor.displayName,o=n.bind;return n.bind=function(i){for(var a=arguments.length,s=Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];if(i!==e&&null!==i)u(!1,"bind(): React component methods may only be bound to the component instance. See %s",r);else if(!s.length)return u(!1,"bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See %s",r),n;var l=o.apply(n,arguments);return l.__reactBoundContext=e,l.__reactBoundMethod=t,l.__reactBoundArguments=s,l},n}function y(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=v(e,o)}}function _(e){var t=r(function(e,r,o){u(this instanceof t,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"),this.__reactAutoBindPairs.length&&y(this),this.props=e,this.context=r,this.refs=s,this.updater=o||n,this.state=null;var i=this.getInitialState?this.getInitialState():null;void 0===i&&this.getInitialState._isMockFunction&&(i=null),c("object"==typeof i&&!Array.isArray(i),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=i});t.prototype=new x,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],b.forEach(d.bind(null,t)),d(t,T),d(t,e),d(t,w),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),t.getDefaultProps&&(t.getDefaultProps.isReactClassApproved={}),t.prototype.getInitialState&&(t.prototype.getInitialState.isReactClassApproved={}),c(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),u(!t.prototype.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",e.displayName||"A component"),u(!t.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",e.displayName||"A component");for(var o in C)t.prototype[o]||(t.prototype[o]=null);return t}var b=[],C={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},E={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)d(e,t[n])},childContextTypes:function(e,t){o(e,t,"childContext"),e.childContextTypes=a({},e.childContextTypes,t)},contextTypes:function(e,t){o(e,t,"context"),e.contextTypes=a({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=m(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){o(e,t,"prop"),e.propTypes=a({},e.propTypes,t)},statics:function(e,t){f(e,t)},autobind:function(){}},T={componentDidMount:function(){this.__isMounted=!0}},w={componentWillUnmount:function(){this.__isMounted=!1}},S={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return u(this.__didWarnIsMounted,"%s: isMounted is deprecated. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.",this.constructor&&this.constructor.displayName||this.name||"Component"),this.__didWarnIsMounted=!0,!!this.__isMounted}},x=function(){};return a(x.prototype,e.prototype,S),_}var i,a=n(3),s=n(44),c=n(0),u=n(1),l="mixins";i={prop:"prop",context:"context",childContext:"child context"},e.exports=o},function(e,t,n){"use strict";function r(e){return o.isValidElement(e)||i(!1,"React.Children.only expected to receive a single React element child."),e}var o=(n(28),n(23)),i=n(0);e.exports=r},function(e,t,n){"use strict";e.exports=n(168)},function(e,t,n){"use strict";var r=n(4),o=n(169),i=n(129),a=n(29),s=n(14),c=n(247),u=n(248),l=n(130),p=n(249),d=n(1);o.inject();var f={findDOMNode:u,render:i.render,unmountComponentAtNode:i.unmountComponentAtNode,version:c,unstable_batchedUpdates:s.batchedUpdates,unstable_renderSubtreeIntoContainer:p};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:r.getClosestInstanceFromNode,getNodeFromInstance:function(e){return e._renderedComponent&&(e=l(e)),e?r.getNodeFromInstance(e):null}},Mount:i,Reconciler:a}),n(5).canUseDOM&&window.top===window.self){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&(navigator.userAgent.indexOf("Chrome")>-1&&-1===navigator.userAgent.indexOf("Edge")||navigator.userAgent.indexOf("Firefox")>-1)){var h=-1===window.location.protocol.indexOf("http")&&-1===navigator.userAgent.indexOf("Firefox");console.debug("Download the React DevTools "+(h?"and use an HTTP server (instead of a file: URL) ":"")+"for a better development experience: https://fb.me/react-devtools")}var m=function(){};d(-1!==(m.name||m.toString()).indexOf("testFn"),"It looks like you're using a minified copy of the development build of React. When deploying React apps to production, make sure to use the production build which skips development warnings and is faster. See https://fb.me/react-minification for more details."),d(!(document.documentMode&&document.documentMode<8),'Internet Explorer is running in compatibility mode; please add the following tag to your HTML to prevent this from happening: <meta http-equiv="X-UA-Compatible" content="IE=edge" />');for(var g=[Array.isArray,Array.prototype.every,Array.prototype.forEach,Array.prototype.indexOf,Array.prototype.map,Date.now,Function.prototype.bind,Object.keys,String.prototype.trim],v=0;v<g.length;v++)if(!g[v]){d(!1,"One or more ES5 shims expected by React are not available: https://fb.me/react-warning-polyfills");break}}var y=n(11),_=n(250),b=n(251),C=n(252);y.debugTool.addHook(_),y.debugTool.addHook(b),y.debugTool.addHook(C),e.exports=f},function(e,t,n){"use strict";function r(){T||(T=!0,y.EventEmitter.injectReactEventListener(v),y.EventPluginHub.injectEventPluginOrder(s),y.EventPluginUtils.injectComponentTree(d),y.EventPluginUtils.injectTreeTraversal(h),y.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:E,EnterLeaveEventPlugin:c,ChangeEventPlugin:a,SelectEventPlugin:C,BeforeInputEventPlugin:i}),y.HostComponent.injectGenericComponentClass(p),y.HostComponent.injectTextComponentClass(m),y.DOMProperty.injectDOMPropertyConfig(o),y.DOMProperty.injectDOMPropertyConfig(u),y.DOMProperty.injectDOMPropertyConfig(b),y.EmptyComponent.injectEmptyComponentFactory(function(e){return new f(e)}),y.Updates.injectReconcileTransaction(_),y.Updates.injectBatchingStrategy(g),y.Component.injectEnvironment(l))}var o=n(170),i=n(171),a=n(175),s=n(183),c=n(184),u=n(185),l=n(186),p=n(192),d=n(4),f=n(218),h=n(219),m=n(220),g=n(221),v=n(222),y=n(224),_=n(225),b=n(231),C=n(232),E=n(233),T=!1;e.exports={inject:r}},function(e,t,n){"use strict";var r={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};e.exports=r},function(e,t,n){"use strict";function r(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function o(e){switch(e){case"topCompositionStart":return S.compositionStart;case"topCompositionEnd":return S.compositionEnd;case"topCompositionUpdate":return S.compositionUpdate}}function i(e,t){return"topKeyDown"===e&&t.keyCode===y}function a(e,t){switch(e){case"topKeyUp":return-1!==v.indexOf(t.keyCode);case"topKeyDown":return t.keyCode!==y;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function s(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function c(e,t,n,r){var c,u;if(_?c=o(e):I?a(e,n)&&(c=S.compositionEnd):i(e,n)&&(c=S.compositionStart),!c)return null;E&&(I||c!==S.compositionStart?c===S.compositionEnd&&I&&(u=I.getData()):I=h.getPooled(r));var l=m.getPooled(c,t,n,r);if(u)l.data=u;else{var p=s(n);null!==p&&(l.data=p)}return d.accumulateTwoPhaseDispatches(l),l}function u(e,t){switch(e){case"topCompositionEnd":return s(t);case"topKeyPress":return t.which!==T?null:(x=!0,w);case"topTextInput":var n=t.data;return n===w&&x?null:n;default:return null}}function l(e,t){if(I){if("topCompositionEnd"===e||!_&&a(e,t)){var n=I.getData();return h.release(I),I=null,n}return null}switch(e){case"topPaste":return null;case"topKeyPress":return t.which&&!r(t)?String.fromCharCode(t.which):null;case"topCompositionEnd":return E?null:t.data;default:return null}}function p(e,t,n,r){var o;if(!(o=C?u(e,n):l(e,n)))return null;var i=g.getPooled(S.beforeInput,t,n,r);return i.data=o,d.accumulateTwoPhaseDispatches(i),i}var d=n(32),f=n(5),h=n(172),m=n(173),g=n(174),v=[9,13,27,32],y=229,_=f.canUseDOM&&"CompositionEvent"in window,b=null;f.canUseDOM&&"documentMode"in document&&(b=document.documentMode);var C=f.canUseDOM&&"TextEvent"in window&&!b&&!function(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}(),E=f.canUseDOM&&(!_||b&&b>8&&b<=11),T=32,w=String.fromCharCode(T),S={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},x=!1,I=null,R={eventTypes:S,extractEvents:function(e,t,n,r){return[c(e,t,n,r),p(e,t,n,r)]}};e.exports=R},function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var o=n(3),i=n(24),a=n(109);o(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);var s=t>1?1-t:void 0;return this._fallbackText=o.slice(e,s),this._fallbackText}}),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(17),i={data:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(17),i={data:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=x.getPooled(k.change,e,t,n);return r.type="change",E.accumulateTwoPhaseDispatches(r),r}function o(e){var t=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}function i(e){var t=r(P,e,R(e));S.batchedUpdates(a,t)}function a(e){C.enqueueEvents(e),C.processEventQueue(!1)}function s(e,t){M=e,P=t,M.attachEvent("onchange",i)}function c(){M&&(M.detachEvent("onchange",i),M=null,P=null)}function u(e,t){var n=I.updateValueIfChanged(e),r=!0===t.simulated&&B._allowSimulatedPassThrough;if(n||r)return e}function l(e,t){if("topChange"===e)return t}function p(e,t,n){"topFocus"===e?(c(),s(t,n)):"topBlur"===e&&c()}function d(e,t){M=e,P=t,M.attachEvent("onpropertychange",h)}function f(){M&&(M.detachEvent("onpropertychange",h),M=null,P=null)}function h(e){"value"===e.propertyName&&u(P,e)&&i(e)}function m(e,t,n){"topFocus"===e?(f(),d(t,n)):"topBlur"===e&&f()}function g(e,t,n){if("topSelectionChange"===e||"topKeyUp"===e||"topKeyDown"===e)return u(P,n)}function v(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}function y(e,t,n){if("topClick"===e)return u(t,n)}function _(e,t,n){if("topInput"===e||"topChange"===e)return u(t,n)}function b(e,t){if(null!=e){var n=e._wrapperState||t._wrapperState;if(n&&n.controlled&&"number"===t.type){var r=""+t.value;t.getAttribute("value")!==r&&t.setAttribute("value",r)}}}var C=n(33),E=n(32),T=n(5),w=n(4),S=n(14),x=n(17),I=n(112),R=n(60),O=n(61),N=n(113),k={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},M=null,P=null,A=!1;T.canUseDOM&&(A=O("change")&&(!document.documentMode||document.documentMode>8));var D=!1;T.canUseDOM&&(D=O("input")&&(!("documentMode"in document)||document.documentMode>9));var B={eventTypes:k,_allowSimulatedPassThrough:!0,_isInputEventSupported:D,extractEvents:function(e,t,n,i){var a,s,c=t?w.getNodeFromInstance(t):window;if(o(c)?A?a=l:s=p:N(c)?D?a=_:(a=g,s=m):v(c)&&(a=y),a){var u=a(e,t,n);if(u){return r(u,n,i)}}s&&s(e,c,t),"topBlur"===e&&b(t,c)}};e.exports=B},function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):i.addComponentAsRefTo(t,e,n)}function o(e,t,n){"function"==typeof e?e(null):i.removeComponentAsRefFrom(t,e,n)}var i=n(177),a={};a.attachRefs=function(e,t){if(null!==t&&"object"==typeof t){var n=t.ref;null!=n&&r(n,e,t._owner)}},a.shouldUpdateRefs=function(e,t){var n=null,r=null;null!==e&&"object"==typeof e&&(n=e.ref,r=e._owner);var o=null,i=null;return null!==t&&"object"==typeof t&&(o=t.ref,i=t._owner),n!==o||"string"==typeof o&&i!==r},a.detachRefs=function(e,t){if(null!==t&&"object"==typeof t){var n=t.ref;null!=n&&o(n,e,t._owner)}},e.exports=a},function(e,t,n){"use strict";function r(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)}var o=(n(2),n(0)),i={addComponentAsRefTo:function(e,t,n){r(n)||o(!1,"addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner)."),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){r(n)||o(!1,"removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).");var i=n.getPublicInstance();i&&i.refs[t]===e.getPublicInstance()&&n.detachRef(t)}};e.exports=i},function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s){try{t.call(n,r,o,i,a,s)}catch(t){C(T[e],"Exception thrown by hook while handling %s: %s",e,t+"\n"+t.stack),T[e]=!0}}function o(e,t,n,o,i,a){for(var s=0;s<E.length;s++){var c=E[s],u=c[e];u&&r(e,u,c,t,n,o,i,a)}}function i(){y.purgeUnmountedComponents(),v.clearHistory()}function a(e){return e.reduce(function(e,t){var n=y.getOwnerID(t),r=y.getParentID(t);return e[t]={displayName:y.getDisplayName(t),text:y.getText(t),updateCount:y.getUpdateCount(t),childIDs:y.getChildIDs(t),ownerID:n||r&&y.getOwnerID(r)||0,parentID:r},e},{})}function s(){var e=O,t=R,n=v.getHistory();if(0===I)return O=0,R=[],void i();if(t.length||n.length){var r=y.getRegisteredIDs();S.push({duration:b()-e,measurements:t||[],operations:n||[],treeSnapshot:a(r)})}i(),O=b(),R=[]}function c(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&0===e||e||C(!1,"ReactDebugTool: debugID may not be empty.")}function u(e,t){0!==I&&(P&&!A&&(C(!1,"There is an internal error in the React performance measurement code. Did not expect %s timer to start while %s timer is still in progress for %s instance.",t,P||"no",e===N?"the same":"another"),A=!0),k=b(),M=0,N=e,P=t)}function l(e,t){0!==I&&(P===t||A||(C(!1,"There is an internal error in the React performance measurement code. We did not expect %s timer to stop while %s timer is still in progress for %s instance. Please report this as a bug in React.",t,P||"no",e===N?"the same":"another"),A=!0),w&&R.push({timerType:t,instanceID:e,duration:b()-k-M}),k=0,M=0,N=null,P=null)}function p(){var e={startTime:k,nestedFlushStartTime:b(),debugID:N,timerType:P};x.push(e),k=0,M=0,N=null,P=null}function d(){var e=x.pop(),t=e.startTime,n=e.nestedFlushStartTime,r=e.debugID,o=e.timerType,i=b()-n;k=t,M+=i,N=r,P=o}function f(e){if(!w||!B)return!1;var t=y.getElement(e);return null!=t&&"object"==typeof t&&!("string"==typeof t.type)}function h(e,t){if(f(e)){var n=e+"::"+t;D=b(),performance.mark(n)}}function m(e,t){if(f(e)){var n=e+"::"+t,r=y.getDisplayName(e)||"Unknown";if(b()-D>.1){var o=r+" ["+t+"]";performance.measure(o,n)}performance.clearMarks(n),o&&performance.clearMeasures(o)}}var g=n(179),v=n(180),y=n(9),_=n(5),b=n(181),C=n(1),E=[],T={},w=!1,S=[],x=[],I=0,R=[],O=0,N=null,k=0,M=0,P=null,A=!1,D=0,B="undefined"!=typeof performance&&"function"==typeof performance.mark&&"function"==typeof performance.clearMarks&&"function"==typeof performance.measure&&"function"==typeof performance.clearMeasures,j={addHook:function(e){E.push(e)},removeHook:function(e){for(var t=0;t<E.length;t++)E[t]===e&&(E.splice(t,1),t--)},isProfiling:function(){return w},beginProfiling:function(){w||(w=!0,S.length=0,s(),j.addHook(v))},endProfiling:function(){w&&(w=!1,s(),j.removeHook(v))},getFlushHistory:function(){return S},onBeginFlush:function(){I++,s(),p(),o("onBeginFlush")},onEndFlush:function(){s(),I--,d(),o("onEndFlush")},onBeginLifeCycleTimer:function(e,t){c(e),o("onBeginLifeCycleTimer",e,t),h(e,t),u(e,t)},onEndLifeCycleTimer:function(e,t){c(e),l(e,t),m(e,t),o("onEndLifeCycleTimer",e,t)},onBeginProcessingChildContext:function(){o("onBeginProcessingChildContext")},onEndProcessingChildContext:function(){o("onEndProcessingChildContext")},onHostOperation:function(e){c(e.instanceID),o("onHostOperation",e)},onSetState:function(){o("onSetState")},onSetChildren:function(e,t){c(e),t.forEach(c),o("onSetChildren",e,t)},onBeforeMountComponent:function(e,t,n){c(e),c(n,!0),o("onBeforeMountComponent",e,t,n),h(e,"mount")},onMountComponent:function(e){c(e),m(e,"mount"),o("onMountComponent",e)},onBeforeUpdateComponent:function(e,t){c(e),o("onBeforeUpdateComponent",e,t),h(e,"update")},onUpdateComponent:function(e){c(e),m(e,"update"),o("onUpdateComponent",e)},onBeforeUnmountComponent:function(e){c(e),o("onBeforeUnmountComponent",e),h(e,"unmount")},onUnmountComponent:function(e){c(e),m(e,"unmount"),o("onUnmountComponent",e)},onTestEvent:function(){o("onTestEvent")}};j.addDevtool=j.addHook,j.removeDevtool=j.removeHook,j.addHook(g),j.addHook(y),/[?&]react_perf\b/.test(_.canUseDOM&&window.location.href||"")&&j.beginProfiling(),e.exports=j},function(e,t,n){"use strict";var r=n(1),o=!1,i=function(){r(!o,"setState(...): Cannot call setState() inside getChildContext()")},a={onBeginProcessingChildContext:function(){o=!0},onEndProcessingChildContext:function(){o=!1},onSetState:function(){i()}};e.exports=a},function(e,t,n){"use strict";var r=[],o={onHostOperation:function(e){r.push(e)},clearHistory:function(){o._preventClearing||(r=[])},getHistory:function(){return r}};e.exports=o},function(e,t,n){"use strict";var r,o=n(182);r=o.now?function(){return o.now()}:function(){return Date.now()},e.exports=r},function(e,t,n){"use strict";var r,o=n(5);o.canUseDOM&&(r=window.performance||window.msPerformance||window.webkitPerformance),e.exports=r||{}},function(e,t,n){"use strict";var r=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];e.exports=r},function(e,t,n){"use strict";var r=n(32),o=n(4),i=n(48),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},s={eventTypes:a,extractEvents:function(e,t,n,s){if("topMouseOver"===e&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==e&&"topMouseOver"!==e)return null;var c;if(s.window===s)c=s;else{var u=s.ownerDocument;c=u?u.defaultView||u.parentWindow:window}var l,p;if("topMouseOut"===e){l=t;var d=n.relatedTarget||n.toElement;p=d?o.getClosestInstanceFromNode(d):null}else l=null,p=t;if(l===p)return null;var f=null==l?c:o.getNodeFromInstance(l),h=null==p?c:o.getNodeFromInstance(p),m=i.getPooled(a.mouseLeave,l,n,s);m.type="mouseleave",m.target=f,m.relatedTarget=h;var g=i.getPooled(a.mouseEnter,p,n,s);return g.type="mouseenter",g.target=h,g.relatedTarget=f,r.accumulateEnterLeaveDispatches(m,g,l,p),[m,g]}};e.exports=s},function(e,t,n){"use strict";var r=n(19),o=r.injection.MUST_USE_PROPERTY,i=r.injection.HAS_BOOLEAN_VALUE,a=r.injection.HAS_NUMERIC_VALUE,s=r.injection.HAS_POSITIVE_NUMERIC_VALUE,c=r.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+r.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:i,allowTransparency:0,alt:0,as:0,async:i,autoComplete:0,autoPlay:i,capture:i,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|i,cite:0,classID:0,className:0,cols:s,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:i,coords:0,crossOrigin:0,data:0,dateTime:0,default:i,defer:i,dir:0,disabled:i,download:c,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:i,formTarget:0,frameBorder:0,headers:0,height:0,hidden:i,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:i,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|i,muted:o|i,name:0,nonce:0,noValidate:i,open:i,optimum:0,pattern:0,placeholder:0,playsInline:i,poster:0,preload:0,profile:0,radioGroup:0,readOnly:i,referrerPolicy:0,rel:0,required:i,reversed:i,role:0,rows:s,rowSpan:a,sandbox:0,scope:0,scoped:i,scrolling:0,seamless:i,selected:o|i,shape:0,size:s,sizes:0,span:s,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:a,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:i,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{},DOMMutationMethods:{value:function(e,t){if(null==t)return e.removeAttribute("value");"number"!==e.type||!1===e.hasAttribute("value")?e.setAttribute("value",""+t):e.validity&&!e.validity.badInput&&e.ownerDocument.activeElement!==e&&e.setAttribute("value",""+t)}}};e.exports=u},function(e,t,n){"use strict";var r=n(63),o=n(191),i={processChildrenUpdates:o.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup};e.exports=i},function(e,t,n){"use strict";var r=(n(2),n(30)),o=n(5),i=n(188),a=n(12),s=n(0),c={dangerouslyReplaceNodeWithMarkup:function(e,t){if(o.canUseDOM||s(!1,"dangerouslyReplaceNodeWithMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use ReactDOMServer.renderToString() for server rendering."),t||s(!1,"dangerouslyReplaceNodeWithMarkup(...): Missing markup."),"HTML"===e.nodeName&&s(!1,"dangerouslyReplaceNodeWithMarkup(...): Cannot replace markup of the <html> node. This is because browser quirks make this unreliable and/or slow. If you want to render to the root you must use server rendering. See ReactDOMServer.renderToString()."),"string"==typeof t){var n=i(t,a)[0];e.parentNode.replaceChild(n,e)}else r.replaceChildWithTree(e,t)}};e.exports=c},function(e,t,n){"use strict";function r(e){var t=e.match(l);return t&&t[1].toLowerCase()}function o(e,t){var n=u;u||c(!1,"createNodesFromMarkup dummy not initialized");var o=r(e),i=o&&s(o);if(i){n.innerHTML=i[1]+e+i[2];for(var l=i[0];l--;)n=n.lastChild}else n.innerHTML=e;var p=n.getElementsByTagName("script");p.length&&(t||c(!1,"createNodesFromMarkup(...): Unexpected <script> element rendered."),a(p).forEach(t));for(var d=Array.from(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return d}var i=n(5),a=n(189),s=n(190),c=n(0),u=i.canUseDOM?document.createElement("div"):null,l=/^\s*<(\w+)/;e.exports=o},function(e,t,n){"use strict";function r(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&a(!1,"toArray: Array-like object expected"),"number"!=typeof t&&a(!1,"toArray: Object needs a length property"),0===t||t-1 in e||a(!1,"toArray: Object should have keys for indices"),"function"==typeof e.callee&&a(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}function o(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function i(e){return o(e)?Array.isArray(e)?e.slice():r(e):[e]}var a=n(0);e.exports=i},function(e,t,n){"use strict";function r(e){return a||i(!1,"Markup wrapping node not initialized"),d.hasOwnProperty(e)||(e="*"),s.hasOwnProperty(e)||(a.innerHTML="*"===e?"<link />":"<"+e+"></"+e+">",s[e]=!a.firstChild),s[e]?d[e]:null}var o=n(5),i=n(0),a=o.canUseDOM?document.createElement("div"):null,s={},c=[1,'<select multiple="true">',"</select>"],u=[1,"<table>","</table>"],l=[3,"<table><tbody><tr>","</tr></tbody></table>"],p=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],d={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:c,option:c,caption:u,colgroup:u,tbody:u,tfoot:u,thead:u,td:l,th:l};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(e){d[e]=p,s[e]=!0}),e.exports=r},function(e,t,n){"use strict";var r=n(63),o=n(4),i={dangerouslyProcessChildrenUpdates:function(e,t){var n=o.getNodeFromInstance(e);r.processUpdates(n,t)}};e.exports=i},function(e,t,n){"use strict";function r(e){if(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function o(e){if("object"==typeof e){if(Array.isArray(e))return"["+e.map(o).join(", ")+"]";var t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=/^[a-z$_][\w$_]*$/i.test(n)?n:JSON.stringify(n);t.push(r+": "+o(e[n]))}return"{"+t.join(", ")+"}"}return"string"==typeof e?JSON.stringify(e):"function"==typeof e?"[function object]":String(e)}function i(e,t,n){if(null!=e&&null!=t&&!W(e,t)){var r,i=n._tag,a=n._currentElement._owner;a&&(r=a.getName());var s=r+"|"+i;ee.hasOwnProperty(s)||(ee[s]=!0,V(!1,"`%s` was passed a style object that has previously been mutated. Mutating `style` is deprecated. Consider cloning it beforehand. Check the `render` %s. Previous style: %s. Mutated style: %s.",i,a?"of `"+r+"`":"using <"+i+">",o(e),o(t)))}}function a(e,t){t&&(ie[e._tag]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&L(!1,"%s is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.%s",e._tag,e._currentElement._owner?" Check the render method of "+e._currentElement._owner.getName()+".":""),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&L(!1,"Can only set one of `children` or `props.dangerouslySetInnerHTML`."),"object"==typeof t.dangerouslySetInnerHTML&&$ in t.dangerouslySetInnerHTML||L(!1,"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.")),V(null==t.innerHTML,"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),V(t.suppressContentEditableWarning||!t.contentEditable||null==t.children,"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),V(null==t.onFocusIn&&null==t.onFocusOut,"React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),null!=t.style&&"object"!=typeof t.style&&L(!1,"The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.%s",r(e)))}function s(e,t,n,r){if(!(r instanceof B)){V("onScroll"!==t||F("scroll",!0),"This browser doesn't support the `onScroll` event");var o=e._hostContainerInfo,i=o._node&&o._node.nodeType===Z,a=i?o._node:o._ownerDocument;J(t,a),r.getReactMountReady().enqueue(c,{inst:e,registrationName:t,listener:n})}}function c(){var e=this;S.putListener(e.inst,e.registrationName,e.listener)}function u(){var e=this;N.postMountWrapper(e)}function l(){var e=this;P.postMountWrapper(e)}function p(){var e=this;k.postMountWrapper(e)}function d(){H.track(this)}function f(){var e=this;e._rootNodeID||L(!1,"Must be mounted to trap events");var t=K(e);switch(t||L(!1,"trapBubbledEvent(...): Requires node to be rendered."),e._tag){case"iframe":case"object":e._wrapperState.listeners=[I.trapBubbledEvent("topLoad","load",t)];break;case"video":case"audio":e._wrapperState.listeners=[];for(var n in ne)ne.hasOwnProperty(n)&&e._wrapperState.listeners.push(I.trapBubbledEvent(n,ne[n],t));break;case"source":e._wrapperState.listeners=[I.trapBubbledEvent("topError","error",t)];break;case"img":e._wrapperState.listeners=[I.trapBubbledEvent("topError","error",t),I.trapBubbledEvent("topLoad","load",t)];break;case"form":e._wrapperState.listeners=[I.trapBubbledEvent("topReset","reset",t),I.trapBubbledEvent("topSubmit","submit",t)];break;case"input":case"select":case"textarea":e._wrapperState.listeners=[I.trapBubbledEvent("topInvalid","invalid",t)]}}function h(){M.postUpdateWrapper(this)}function m(e){ce.call(se,e)||(ae.test(e)||L(!1,"Invalid tag: %s",e),se[e]=!0)}function g(e,t){return e.indexOf("-")>=0||null!=t.is}function v(e){var t=e.type;m(t),this._currentElement=e,this._tag=t.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,this._wrapperState=null,this._topLevelWrapper=null,this._flags=0,this._ancestorInfo=null,te.call(this,null)}var y=(n(2),n(3)),_=n(193),b=n(194),C=n(30),E=n(64),T=n(19),w=n(118),S=n(33),x=n(46),I=n(51),R=n(106),O=n(4),N=n(204),k=n(205),M=n(120),P=n(206),A=n(11),D=n(207),B=n(216),j=n(12),U=n(50),L=n(0),F=n(61),W=n(68),H=n(112),G=n(72),V=n(1),q=R,z=S.deleteListener,K=O.getNodeFromInstance,J=I.listenTo,Y=x.registrationNameModules,X={string:!0,number:!0},$="__html",Q={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},Z=11,ee={},te=j;te=function(e){var t=null!=this._contentDebugID,n=this._debugID,r=-n;if(null==e)return t&&A.debugTool.onUnmountComponent(this._contentDebugID),void(this._contentDebugID=null);G(null,String(e),this,this._ancestorInfo),this._contentDebugID=r,t?(A.debugTool.onBeforeUpdateComponent(r,e),A.debugTool.onUpdateComponent(r)):(A.debugTool.onBeforeMountComponent(r,e,n),A.debugTool.onMountComponent(r),A.debugTool.onSetChildren(n,[r]))};var ne={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},re={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},oe={listing:!0,pre:!0,textarea:!0},ie=y({menuitem:!0},re),ae=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,se={},ce={}.hasOwnProperty,ue=1;v.displayName="ReactDOMComponent",v.Mixin={mountComponent:function(e,t,n,r){this._rootNodeID=ue++,this._domID=n._idCounter++,this._hostParent=t,this._hostContainerInfo=n;var o=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(f,this);break;case"input":N.mountWrapper(this,o,t),o=N.getHostProps(this,o),e.getReactMountReady().enqueue(d,this),e.getReactMountReady().enqueue(f,this);break;case"option":k.mountWrapper(this,o,t),o=k.getHostProps(this,o);break;case"select":M.mountWrapper(this,o,t),o=M.getHostProps(this,o),e.getReactMountReady().enqueue(f,this);break;case"textarea":P.mountWrapper(this,o,t),o=P.getHostProps(this,o),e.getReactMountReady().enqueue(d,this),e.getReactMountReady().enqueue(f,this)}a(this,o);var i,s;null!=t?(i=t._namespaceURI,s=t._tag):n._tag&&(i=n._namespaceURI,s=n._tag),(null==i||i===E.svg&&"foreignobject"===s)&&(i=E.html),i===E.html&&("svg"===this._tag?i=E.svg:"math"===this._tag&&(i=E.mathml)),this._namespaceURI=i;var c;null!=t?c=t._ancestorInfo:n._tag&&(c=n._ancestorInfo),c&&G(this._tag,null,this,c),this._ancestorInfo=G.updatedAncestorInfo(c,this._tag,this);var h;if(e.useCreateElement){var m,g=n._ownerDocument;if(i===E.html)if("script"===this._tag){var v=g.createElement("div"),y=this._currentElement.type;v.innerHTML="<"+y+"></"+y+">",m=v.removeChild(v.firstChild)}else m=o.is?g.createElement(this._currentElement.type,o.is):g.createElement(this._currentElement.type);else m=g.createElementNS(i,this._currentElement.type);O.precacheNode(this,m),this._flags|=q.hasCachedChildNodes,this._hostParent||w.setAttributeForRoot(m),this._updateDOMProperties(null,o,e);var b=C(m);this._createInitialChildren(e,o,r,b),h=b}else{var T=this._createOpenTagMarkupAndPutListeners(e,o),S=this._createContentMarkup(e,o,r);h=!S&&re[this._tag]?T+"/>":T+">"+S+"</"+this._currentElement.type+">"}switch(this._tag){case"input":e.getReactMountReady().enqueue(u,this),o.autoFocus&&e.getReactMountReady().enqueue(_.focusDOMComponent,this);break;case"textarea":e.getReactMountReady().enqueue(l,this),o.autoFocus&&e.getReactMountReady().enqueue(_.focusDOMComponent,this);break;case"select":case"button":o.autoFocus&&e.getReactMountReady().enqueue(_.focusDOMComponent,this);break;case"option":e.getReactMountReady().enqueue(p,this)}return h},_createOpenTagMarkupAndPutListeners:function(e,t){var n="<"+this._currentElement.type;for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)if(Y.hasOwnProperty(r))o&&s(this,r,o,e);else{"style"===r&&(o&&(this._previousStyle=o,o=this._previousStyleCopy=y({},t.style)),o=b.createMarkupForStyles(o,this));var i=null;null!=this._tag&&g(this._tag,t)?Q.hasOwnProperty(r)||(i=w.createMarkupForCustomAttribute(r,o)):i=w.createMarkupForProperty(r,o),i&&(n+=" "+i)}}return e.renderToStaticMarkup?n:(this._hostParent||(n+=" "+w.createMarkupForRoot()),n+=" "+w.createMarkupForID(this._domID))},_createContentMarkup:function(e,t,n){var r="",o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=X[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)r=U(i),te.call(this,i);else if(null!=a){var s=this.mountChildren(a,e,n);r=s.join("")}}return oe[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(e,t,n,r){var o=t.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&C.queueHTML(r,o.__html);else{var i=X[typeof t.children]?t.children:null,a=null!=i?null:t.children;if(null!=i)""!==i&&(te.call(this,i),C.queueText(r,i));else if(null!=a)for(var s=this.mountChildren(a,e,n),c=0;c<s.length;c++)C.queueChild(r,s[c])}},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,n,r){var o=t.props,i=this._currentElement.props;switch(this._tag){case"input":o=N.getHostProps(this,o),i=N.getHostProps(this,i);break;case"option":o=k.getHostProps(this,o),i=k.getHostProps(this,i);break;case"select":o=M.getHostProps(this,o),i=M.getHostProps(this,i);break;case"textarea":o=P.getHostProps(this,o),i=P.getHostProps(this,i)}switch(a(this,i),this._updateDOMProperties(o,i,e),this._updateDOMChildren(o,i,e,r),this._tag){case"input":N.updateWrapper(this);break;case"textarea":P.updateWrapper(this);break;case"select":e.getReactMountReady().enqueue(h,this)}},_updateDOMProperties:function(e,t,n){var r,o,a;for(r in e)if(!t.hasOwnProperty(r)&&e.hasOwnProperty(r)&&null!=e[r])if("style"===r){var c=this._previousStyleCopy;for(o in c)c.hasOwnProperty(o)&&(a=a||{},a[o]="");this._previousStyleCopy=null}else Y.hasOwnProperty(r)?e[r]&&z(this,r):g(this._tag,e)?Q.hasOwnProperty(r)||w.deleteValueForAttribute(K(this),r):(T.properties[r]||T.isCustomAttribute(r))&&w.deleteValueForProperty(K(this),r);for(r in t){var u=t[r],l="style"===r?this._previousStyleCopy:null!=e?e[r]:void 0;if(t.hasOwnProperty(r)&&u!==l&&(null!=u||null!=l))if("style"===r)if(u?(i(this._previousStyleCopy,this._previousStyle,this),this._previousStyle=u,u=this._previousStyleCopy=y({},u)):this._previousStyleCopy=null,l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(a=a||{},a[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(a=a||{},a[o]=u[o])}else a=u;else if(Y.hasOwnProperty(r))u?s(this,r,u,n):l&&z(this,r);else if(g(this._tag,t))Q.hasOwnProperty(r)||w.setValueForAttribute(K(this),r,u);else if(T.properties[r]||T.isCustomAttribute(r)){var p=K(this);null!=u?w.setValueForProperty(p,r,u):w.deleteValueForProperty(p,r)}}a&&b.setValueForStyles(K(this),a,this)},_updateDOMChildren:function(e,t,n,r){var o=X[typeof e.children]?e.children:null,i=X[typeof t.children]?t.children:null,a=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,s=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,c=null!=o?null:e.children,u=null!=i?null:t.children,l=null!=o||null!=a,p=null!=i||null!=s;null!=c&&null==u?this.updateChildren(null,n,r):l&&!p&&(this.updateTextContent(""),A.debugTool.onSetChildren(this._debugID,[])),null!=i?o!==i&&(this.updateTextContent(""+i),te.call(this,i)):null!=s?(a!==s&&this.updateMarkup(""+s),A.debugTool.onSetChildren(this._debugID,[])):null!=u&&(te.call(this,null),this.updateChildren(u,n,r))},getHostNode:function(){return K(this)},unmountComponent:function(e){switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":var t=this._wrapperState.listeners;if(t)for(var n=0;n<t.length;n++)t[n].remove();break;case"input":case"textarea":H.stopTracking(this);break;case"html":case"head":case"body":L(!1,"<%s> tried to unmount. Because of cross-browser quirks it is impossible to unmount some top-level components (eg <html>, <head>, and <body>) reliably and efficiently. To fix this, have a single top-level component that never unmounts render these elements.",this._tag)}this.unmountChildren(e),O.uncacheNode(this),S.deleteAllListeners(this),this._rootNodeID=0,this._domID=0,this._wrapperState=null,te.call(this,null)},getPublicInstance:function(){return K(this)}},y(v.prototype,v.Mixin,D.Mixin),e.exports=v},function(e,t,n){"use strict";var r=n(4),o=n(116),i={focusDOMComponent:function(){o(r.getNodeFromInstance(this))}};e.exports=i},function(e,t,n){"use strict";var r=n(117),o=n(5),i=n(11),a=n(195),s=n(197),c=n(198),u=n(200),l=n(1),p=u(function(e){return c(e)}),d=!1,f="cssFloat";if(o.canUseDOM){var h=document.createElement("div").style;try{h.font=""}catch(e){d=!0}void 0===document.documentElement.style.cssFloat&&(f="styleFloat")}var m=/^(?:webkit|moz|o)[A-Z]/,g=/;\s*$/,v={},y={},_=!1,b=function(e,t){v.hasOwnProperty(e)&&v[e]||(v[e]=!0,l(!1,"Unsupported style property %s. Did you mean %s?%s",e,a(e),w(t)))},C=function(e,t){v.hasOwnProperty(e)&&v[e]||(v[e]=!0,l(!1,"Unsupported vendor-prefixed style property %s. Did you mean %s?%s",e,e.charAt(0).toUpperCase()+e.slice(1),w(t)))},E=function(e,t,n){y.hasOwnProperty(t)&&y[t]||(y[t]=!0,l(!1,'Style property values shouldn\'t contain a semicolon.%s Try "%s: %s" instead.',w(n),e,t.replace(g,"")))},T=function(e,t,n){_||(_=!0,l(!1,"`NaN` is an invalid value for the `%s` css style property.%s",e,w(n)))},w=function(e){if(e){var t=e.getName();if(t)return" Check the render method of `"+t+"`."}return""},S=function(e,t,n){var r;n&&(r=n._currentElement._owner),e.indexOf("-")>-1?b(e,r):m.test(e)?C(e,r):g.test(t)&&E(e,t,r),"number"==typeof t&&isNaN(t)&&T(e,0,r)},x={createMarkupForStyles:function(e,t){var n="";for(var r in e)if(e.hasOwnProperty(r)){var o=0===r.indexOf("--"),i=e[r];o||S(r,i,t),null!=i&&(n+=p(r)+":",n+=s(r,i,t,o)+";")}return n||null},setValueForStyles:function(e,t,n){i.debugTool.onHostOperation({instanceID:n._debugID,type:"update styles",payload:t});var o=e.style;for(var a in t)if(t.hasOwnProperty(a)){var c=0===a.indexOf("--");c||S(a,t[a],n);var u=s(a,t[a],n,c);if("float"!==a&&"cssFloat"!==a||(a=f),c)o.setProperty(a,u);else if(u)o[a]=u;else{var l=d&&r.shorthandPropertyExpansions[a];if(l)for(var p in l)o[p]="";else o[a]=""}}}};e.exports=x},function(e,t,n){"use strict";function r(e){return o(e.replace(i,"ms-"))}var o=n(196),i=/^-ms-/;e.exports=r},function(e,t,n){"use strict";function r(e){return e.replace(o,function(e,t){return t.toUpperCase()})}var o=/-(.)/g;e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){if(null==t||"boolean"==typeof t||""===t)return"";var o=isNaN(t);if(r||o||0===t||a.hasOwnProperty(e)&&a[e])return""+t;if("string"==typeof t){if(n&&"0"!==t){var c=n._currentElement._owner,u=c?c.getName():null;u&&!s[u]&&(s[u]={});var l=!1;if(u){var p=s[u];l=p[e],l||(p[e]=!0)}l||i(!1,"a `%s` tag (owner: `%s`) was passed a numeric string value for CSS property `%s` (value: `%s`) which will be treated as a unitless number in a future version of React.",n._currentElement.type,u||"unknown",e,t)}t=t.trim()}return t+"px"}var o=n(117),i=n(1),a=o.isUnitlessNumber,s={};e.exports=r},function(e,t,n){"use strict";function r(e){return o(e).replace(i,"-ms-")}var o=n(199),i=/^ms-/;e.exports=r},function(e,t,n){"use strict";function r(e){return e.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;e.exports=r},function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=r},function(e,t,n){"use strict";function r(e){return'"'+o(e)+'"'}var o=n(50);e.exports=r},function(e,t,n){"use strict";function r(e){o.enqueueEvents(e),o.processEventQueue(!1)}var o=n(33),i={handleTopLevel:function(e,t,n,i){r(o.extractEvents(e,t,n,i))}};e.exports=i},function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function o(e){if(s[e])return s[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in c)return s[e]=t[n];return""}var i=n(5),a={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},c={};i.canUseDOM&&(c=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),e.exports=o},function(e,t,n){"use strict";function r(){this._rootNodeID&&_.updateWrapper(this)}function o(e){return"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}function i(e){var t=this._currentElement.props,n=c.executeOnChange(t,e);l.asap(r,this);var o=t.name;if("radio"===t.type&&null!=o){for(var i=u.getNodeFromInstance(this),a=i;a.parentNode;)a=a.parentNode;for(var s=a.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),d=0;d<s.length;d++){var f=s[d];if(f!==i&&f.form===i.form){var h=u.getInstanceFromNode(f);h||p(!1,"ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported."),l.asap(r,h)}}}return n}var a=(n(2),n(3)),s=n(118),c=n(66),u=n(4),l=n(14),p=n(0),d=n(1),f=!1,h=!1,m=!1,g=!1,v=!1,y=!1,_={getHostProps:function(e,t){var n=c.getValue(t),r=c.getChecked(t);return a({type:void 0,step:void 0,min:void 0,max:void 0},t,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:e._wrapperState.initialValue,checked:null!=r?r:e._wrapperState.initialChecked,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){c.checkPropTypes("input",t,e._currentElement._owner);var n=e._currentElement._owner;void 0===t.valueLink||f||(d(!1,"`valueLink` prop on `input` is deprecated; set `value` and `onChange` instead."),f=!0),void 0===t.checkedLink||h||(d(!1,"`checkedLink` prop on `input` is deprecated; set `value` and `onChange` instead."),h=!0),void 0===t.checked||void 0===t.defaultChecked||g||(d(!1,"%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://fb.me/react-controlled-components",n&&n.getName()||"A component",t.type),g=!0),void 0===t.value||void 0===t.defaultValue||m||(d(!1,"%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://fb.me/react-controlled-components",n&&n.getName()||"A component",t.type),m=!0);var r=t.defaultValue;e._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:null!=t.value?t.value:r,listeners:null,onChange:i.bind(e),controlled:o(t)}},updateWrapper:function(e){var t=e._currentElement.props,n=o(t),r=e._currentElement._owner;e._wrapperState.controlled||!n||y||(d(!1,"%s is changing an uncontrolled input of type %s to be controlled. Input elements should not switch from uncontrolled to controlled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components",r&&r.getName()||"A component",t.type),y=!0),!e._wrapperState.controlled||n||v||(d(!1,"%s is changing a controlled input of type %s to be uncontrolled. Input elements should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://fb.me/react-controlled-components",r&&r.getName()||"A component",t.type),v=!0);var i=t.checked;null!=i&&s.setValueForProperty(u.getNodeFromInstance(e),"checked",i||!1);var a=u.getNodeFromInstance(e),l=c.getValue(t);if(null!=l)if(0===l&&""===a.value)a.value="0";else if("number"===t.type){var p=parseFloat(a.value,10)||0;(l!=p||l==p&&a.value!=l)&&(a.value=""+l)}else a.value!==""+l&&(a.value=""+l);else null==t.value&&null!=t.defaultValue&&a.defaultValue!==""+t.defaultValue&&(a.defaultValue=""+t.defaultValue),null==t.checked&&null!=t.defaultChecked&&(a.defaultChecked=!!t.defaultChecked)},postMountWrapper:function(e){var t=e._currentElement.props,n=u.getNodeFromInstance(e);switch(t.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":n.value="",n.value=n.defaultValue;break;default:n.value=n.value}var r=n.name;""!==r&&(n.name=""),n.defaultChecked=!n.defaultChecked,n.defaultChecked=!n.defaultChecked,""!==r&&(n.name=r)}};e.exports=_},function(e,t,n){"use strict";function r(e){var t="";return i.Children.forEach(e,function(e){null!=e&&("string"==typeof e||"number"==typeof e?t+=e:u||(u=!0,c(!1,"Only strings and numbers are supported as <option> children.")))}),t}var o=n(3),i=n(27),a=n(4),s=n(120),c=n(1),u=!1,l={mountWrapper:function(e,t,n){c(null==t.selected,"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>.");var o=null;if(null!=n){var i=n;"optgroup"===i._tag&&(i=i._hostParent),null!=i&&"select"===i._tag&&(o=s.getSelectValueContext(i))}var a=null;if(null!=o){var u;if(u=null!=t.value?t.value+"":r(t.children),a=!1,Array.isArray(o)){for(var l=0;l<o.length;l++)if(""+o[l]===u){a=!0;break}}else a=""+o===u}e._wrapperState={selected:a}},postMountWrapper:function(e){var t=e._currentElement.props;if(null!=t.value){a.getNodeFromInstance(e).setAttribute("value",t.value)}},getHostProps:function(e,t){var n=o({selected:void 0,children:void 0},t);null!=e._wrapperState.selected&&(n.selected=e._wrapperState.selected);var i=r(t.children);return i&&(n.children=i),n}};e.exports=l},function(e,t,n){"use strict";function r(){this._rootNodeID&&f.updateWrapper(this)}function o(e){var t=this._currentElement.props,n=a.executeOnChange(t,e);return c.asap(r,this),n}var i=(n(2),n(3)),a=n(66),s=n(4),c=n(14),u=n(0),l=n(1),p=!1,d=!1,f={getHostProps:function(e,t){return null!=t.dangerouslySetInnerHTML&&u(!1,"`dangerouslySetInnerHTML` does not make sense on <textarea>."),i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue,onChange:e._wrapperState.onChange})},mountWrapper:function(e,t){a.checkPropTypes("textarea",t,e._currentElement._owner),void 0===t.valueLink||p||(l(!1,"`valueLink` prop on `textarea` is deprecated; set `value` and `onChange` instead."),p=!0),void 0===t.value||void 0===t.defaultValue||d||(l(!1,"Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://fb.me/react-controlled-components"),d=!0);var n=a.getValue(t),r=n;if(null==n){var i=t.defaultValue,s=t.children;null!=s&&(l(!1,"Use the `defaultValue` or `value` props instead of setting children on <textarea>."),null!=i&&u(!1,"If you supply `defaultValue` on a <textarea>, do not pass children."),Array.isArray(s)&&(s.length<=1||u(!1,"<textarea> can only have at most one child."),s=s[0]),i=""+s),null==i&&(i=""),r=i}e._wrapperState={initialValue:""+r,listeners:null,onChange:o.bind(e)}},updateWrapper:function(e){var t=e._currentElement.props,n=s.getNodeFromInstance(e),r=a.getValue(t);if(null!=r){var o=""+r;o!==n.value&&(n.value=o),null==t.defaultValue&&(n.defaultValue=o)}null!=t.defaultValue&&(n.defaultValue=t.defaultValue)},postMountWrapper:function(e){var t=s.getNodeFromInstance(e),n=t.textContent;n===e._wrapperState.initialValue&&(t.value=n)}};e.exports=f},function(e,t,n){"use strict";function r(e,t,n){return{type:"INSERT_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:n,afterNode:t}}function o(e,t,n){return{type:"MOVE_EXISTING",content:null,fromIndex:e._mountIndex,fromNode:h.getHostNode(e),toIndex:n,afterNode:t}}function i(e,t){return{type:"REMOVE_NODE",content:null,fromIndex:e._mountIndex,fromNode:t,toIndex:null,afterNode:null}}function a(e){return{type:"SET_MARKUP",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(e){return{type:"TEXT_CONTENT",content:e,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function c(e,t){return t&&(e=e||[],e.push(t)),e}function u(e,t){l.processChildrenUpdates(e,t)}var l=(n(2),n(67)),p=n(35),d=n(11),f=n(13),h=n(29),m=n(208),g=n(12),v=n(215),y=n(0),_=g,b=function(e){if(!e._debugID){var t;(t=p.get(e))&&(e=t)}return e._debugID};_=function(e){var t=b(this);0!==t&&d.debugTool.onSetChildren(t,e?Object.keys(e).map(function(t){return e[t]._debugID}):[])};var C={Mixin:{_reconcilerInstantiateChildren:function(e,t,n){var r=b(this);if(this._currentElement)try{return f.current=this._currentElement._owner,m.instantiateChildren(e,t,n,r)}finally{f.current=null}return m.instantiateChildren(e,t,n)},_reconcilerUpdateChildren:function(e,t,n,r,o,i){var a,s=0;if(s=b(this),this._currentElement){try{f.current=this._currentElement._owner,a=v(t,s)}finally{f.current=null}return m.updateChildren(e,a,n,r,o,this,this._hostContainerInfo,i,s),a}return a=v(t,s),m.updateChildren(e,a,n,r,o,this,this._hostContainerInfo,i,s),a},mountChildren:function(e,t,n){var r=this._reconcilerInstantiateChildren(e,t,n);this._renderedChildren=r;var o=[],i=0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],c=0;c=b(this);var u=h.mountComponent(s,t,this,this._hostContainerInfo,n,c);s._mountIndex=i++,o.push(u)}return _.call(this,r),o},updateTextContent:function(e){var t=this._renderedChildren;m.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&y(!1,"updateTextContent called on non-empty component.");u(this,[s(e)])},updateMarkup:function(e){var t=this._renderedChildren;m.unmountChildren(t,!1);for(var n in t)t.hasOwnProperty(n)&&y(!1,"updateTextContent called on non-empty component.");u(this,[a(e)])},updateChildren:function(e,t,n){this._updateChildren(e,t,n)},_updateChildren:function(e,t,n){var r=this._renderedChildren,o={},i=[],a=this._reconcilerUpdateChildren(r,e,i,o,t,n);if(a||r){var s,l=null,p=0,d=0,f=0,m=null;for(s in a)if(a.hasOwnProperty(s)){var g=r&&r[s],v=a[s];g===v?(l=c(l,this.moveChild(g,m,p,d)),d=Math.max(g._mountIndex,d),g._mountIndex=p):(g&&(d=Math.max(g._mountIndex,d)),l=c(l,this._mountChildAtIndex(v,i[f],m,p,t,n)),f++),p++,m=h.getHostNode(v)}for(s in o)o.hasOwnProperty(s)&&(l=c(l,this._unmountChild(r[s],o[s])));l&&u(this,l),this._renderedChildren=a,_.call(this,a)}},unmountChildren:function(e){var t=this._renderedChildren;m.unmountChildren(t,e),this._renderedChildren=null},moveChild:function(e,t,n,r){if(e._mountIndex<r)return o(e,t,n)},createChild:function(e,t,n){return r(n,t,e._mountIndex)},removeChild:function(e,t){return i(e,t)},_mountChildAtIndex:function(e,t,n,r,o,i){return e._mountIndex=r,this.createChild(e,n,t)},_unmountChild:function(e,t){var n=this.removeChild(e,t);return e._mountIndex=null,n}}};e.exports=C},function(e,t,n){"use strict";(function(t){function r(e,t,r,i){var c=void 0===e[r];o||(o=n(9)),c||l(!1,"flattenChildren(...): Encountered two children with the same key, `%s`. Child keys must be unique; when two children share a key, only the first child will be used.%s",s.unescape(r),o.getStackAddendumByID(i)),null!=t&&c&&(e[r]=a(t,!0))}var o,i=n(29),a=n(121),s=n(70),c=n(69),u=n(125),l=n(1);void 0!==t&&Object({NODE_ENV:"prodution"});var p={instantiateChildren:function(e,t,n,o){if(null==e)return null;var i={};return u(e,function(e,t,n){return r(e,t,n,o)},i),i},updateChildren:function(e,t,n,r,o,s,u,l,p){if(t||e){var d,f;for(d in t)if(t.hasOwnProperty(d)){f=e&&e[d];var h=f&&f._currentElement,m=t[d];if(null!=f&&c(h,m))i.receiveComponent(f,m,o,l),t[d]=f;else{f&&(r[d]=i.getHostNode(f),i.unmountComponent(f,!1));var g=a(m,!0);t[d]=g;var v=i.mountComponent(g,o,s,u,l,p);n.push(v)}}for(d in e)!e.hasOwnProperty(d)||t&&t.hasOwnProperty(d)||(f=e[d],r[d]=i.getHostNode(f),i.unmountComponent(f,!1))}},unmountChildren:function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];i.unmountComponent(r,t)}}};e.exports=p}).call(t,n(45))},function(e,t,n){"use strict";function r(e){}function o(e,t){E(null===t||!1===t||u.isValidElement(t),"%s(...): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.",e.displayName||e.name||"Component"),E(!e.childContextTypes,"%s(...): childContextTypes cannot be defined on a functional component.",e.displayName||e.name||"Component")}function i(e){return!(!e.prototype||!e.prototype.isReactComponent)}function a(e){return!(!e.prototype||!e.prototype.isPureReactComponent)}function s(e,t,n){if(0===t)return e();h.debugTool.onBeginLifeCycleTimer(t,n);try{return e()}finally{h.debugTool.onEndLifeCycleTimer(t,n)}}var c=(n(2),n(3)),u=n(27),l=n(67),p=n(13),d=n(59),f=n(35),h=n(11),m=n(122),g=n(29),v=n(210),y=n(44),_=n(0),b=n(68),C=n(69),E=n(1),T={ImpureClass:0,PureClass:1,StatelessFunctional:2};r.prototype.render=function(){var e=f.get(this)._currentElement.type,t=e(this.props,this.context,this.updater);return o(e,t),t};var w=1,S={construct:function(e){this._currentElement=e,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1,this._warnedAboutRefsInRender=!1},mountComponent:function(e,t,n,c){var l=this;this._context=c,this._mountOrder=w++,this._hostParent=t,this._hostContainerInfo=n;var p,d=this._currentElement.props,h=this._processContext(c),m=this._currentElement.type,g=e.getUpdateQueue(),v=i(m),b=this._constructComponent(v,d,h,g);v||null!=b&&null!=b.render?a(m)?this._compositeType=T.PureClass:this._compositeType=T.ImpureClass:(p=b,o(m,p),null===b||!1===b||u.isValidElement(b)||_(!1,"%s(...): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.",m.displayName||m.name||"Component"),b=new r(m),this._compositeType=T.StatelessFunctional),null==b.render&&E(!1,"%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",m.displayName||m.name||"Component");var C=b.props!==d,S=m.displayName||m.name||"Component";E(void 0===b.props||!C,"%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",S,S),b.props=d,b.context=h,b.refs=y,b.updater=g,this._instance=b,f.set(b,this),E(!b.getInitialState||b.getInitialState.isReactClassApproved||b.state,"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",this.getName()||"a component"),E(!b.getDefaultProps||b.getDefaultProps.isReactClassApproved,"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",this.getName()||"a component"),E(!b.propTypes,"propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",this.getName()||"a component"),E(!b.contextTypes,"contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",this.getName()||"a component"),E("function"!=typeof b.componentShouldUpdate,"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",this.getName()||"A component"),E("function"!=typeof b.componentDidUnmount,"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",this.getName()||"A component"),E("function"!=typeof b.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",this.getName()||"A component");var x=b.state;void 0===x&&(b.state=x=null),("object"!=typeof x||Array.isArray(x))&&_(!1,"%s.state: must be set to an object or null",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var I;return I=b.unstable_handleError?this.performInitialMountWithErrorHandling(p,t,n,e,c):this.performInitialMount(p,t,n,e,c),b.componentDidMount&&e.getReactMountReady().enqueue(function(){s(function(){return b.componentDidMount()},l._debugID,"componentDidMount")}),I},_constructComponent:function(e,t,n,r){p.current=this;try{return this._constructComponentWithoutOwner(e,t,n,r)}finally{p.current=null}},_constructComponentWithoutOwner:function(e,t,n,r){var o=this._currentElement.type;return e?s(function(){return new o(t,n,r)},this._debugID,"ctor"):s(function(){return o(t,n,r)},this._debugID,"render")},performInitialMountWithErrorHandling:function(e,t,n,r,o){var i,a=r.checkpoint();try{i=this.performInitialMount(e,t,n,r,o)}catch(s){r.rollback(a),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=r.checkpoint(),this._renderedComponent.unmountComponent(!0),r.rollback(a),i=this.performInitialMount(e,t,n,r,o)}return i},performInitialMount:function(e,t,n,r,o){var i=this._instance,a=0;a=this._debugID,i.componentWillMount&&(s(function(){return i.componentWillMount()},a,"componentWillMount"),this._pendingStateQueue&&(i.state=this._processPendingState(i.props,i.context))),void 0===e&&(e=this._renderValidatedComponent());var c=m.getType(e);this._renderedNodeType=c;var u=this._instantiateReactComponent(e,c!==m.EMPTY);this._renderedComponent=u;var l=g.mountComponent(u,r,t,n,this._processChildContext(o),a);if(0!==a){var p=0!==u._debugID?[u._debugID]:[];h.debugTool.onSetChildren(a,p)}return l},getHostNode:function(){return g.getHostNode(this._renderedComponent)},unmountComponent:function(e){if(this._renderedComponent){var t=this._instance;if(t.componentWillUnmount&&!t._calledComponentWillUnmount)if(t._calledComponentWillUnmount=!0,e){var n=this.getName()+".componentWillUnmount()";d.invokeGuardedCallback(n,t.componentWillUnmount.bind(t))}else s(function(){return t.componentWillUnmount()},this._debugID,"componentWillUnmount");this._renderedComponent&&(g.unmountComponent(this._renderedComponent,e),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(t)}},_maskContext:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return y;var r={};for(var o in n)r[o]=e[o];return r},_processContext:function(e){var t=this._maskContext(e),n=this._currentElement.type;return n.contextTypes&&this._checkContextTypes(n.contextTypes,t,"context"),t},_processChildContext:function(e){var t,n=this._currentElement.type,r=this._instance;if(r.getChildContext){h.debugTool.onBeginProcessingChildContext();try{t=r.getChildContext()}finally{h.debugTool.onEndProcessingChildContext()}}if(t){"object"!=typeof n.childContextTypes&&_(!1,"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",this.getName()||"ReactCompositeComponent"),this._checkContextTypes(n.childContextTypes,t,"child context");for(var o in t)o in n.childContextTypes||_(!1,'%s.getChildContext(): key "%s" is not defined in childContextTypes.',this.getName()||"ReactCompositeComponent",o);return c({},e,t)}return e},_checkContextTypes:function(e,t,n){v(e,t,n,this.getName(),null,this._debugID)},receiveComponent:function(e,t,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(t,r,e,o,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement?g.receiveComponent(this,this._pendingElement,e,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(e,t,n,r,o){var i=this._instance;null==i&&_(!1,"Attempted to update component `%s` that has already been unmounted (or failed to mount).",this.getName()||"ReactCompositeComponent");var a,c=!1;this._context===o?a=i.context:(a=this._processContext(o),c=!0);var u=t.props,l=n.props;t!==n&&(c=!0),c&&i.componentWillReceiveProps&&s(function(){return i.componentWillReceiveProps(l,a)},this._debugID,"componentWillReceiveProps");var p=this._processPendingState(l,a),d=!0;this._pendingForceUpdate||(i.shouldComponentUpdate?d=s(function(){return i.shouldComponentUpdate(l,p,a)},this._debugID,"shouldComponentUpdate"):this._compositeType===T.PureClass&&(d=!b(u,l)||!b(i.state,p))),E(void 0!==d,"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",this.getName()||"ReactCompositeComponent"),this._updateBatchNumber=null,d?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,l,p,a,e,o)):(this._currentElement=n,this._context=o,i.props=l,i.state=p,i.context=a)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(o&&1===r.length)return r[0];for(var i=c({},o?r[0]:n.state),a=o?1:0;a<r.length;a++){var s=r[a];c(i,"function"==typeof s?s.call(n,i,e,t):s)}return i},_performComponentUpdate:function(e,t,n,r,o,i){var a,c,u,l=this,p=this._instance,d=Boolean(p.componentDidUpdate);d&&(a=p.props,c=p.state,u=p.context),p.componentWillUpdate&&s(function(){return p.componentWillUpdate(t,n,r)},this._debugID,"componentWillUpdate"),this._currentElement=e,this._context=i,p.props=t,p.state=n,p.context=r,this._updateRenderedComponent(o,i),d&&o.getReactMountReady().enqueue(function(){s(p.componentDidUpdate.bind(p,a,c,u),l._debugID,"componentDidUpdate")})},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,r=n._currentElement,o=this._renderValidatedComponent(),i=0;if(i=this._debugID,C(r,o))g.receiveComponent(n,o,e,this._processChildContext(t));else{var a=g.getHostNode(n);g.unmountComponent(n,!1);var s=m.getType(o);this._renderedNodeType=s;var c=this._instantiateReactComponent(o,s!==m.EMPTY);this._renderedComponent=c;var u=g.mountComponent(c,e,this._hostParent,this._hostContainerInfo,this._processChildContext(t),i);if(0!==i){var l=0!==c._debugID?[c._debugID]:[];h.debugTool.onSetChildren(i,l)}this._replaceNodeWithMarkup(a,u,n)}},_replaceNodeWithMarkup:function(e,t,n){l.replaceNodeWithMarkup(e,t,n)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e,t=this._instance;return e=s(function(){return t.render()},this._debugID,"render"),void 0===e&&t.render._isMockFunction&&(e=null),e},_renderValidatedComponent:function(){var e;p.current=this;try{e=this._renderValidatedComponentWithoutOwnerOrContext()}finally{p.current=null}return null===e||!1===e||u.isValidElement(e)||_(!1,"%s.render(): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.",this.getName()||"ReactCompositeComponent"),e},attachRef:function(e,t){var n=this.getPublicInstance();null==n&&_(!1,"Stateless function components cannot have refs.");var r=t.getPublicInstance(),o=t&&t.getName?t.getName():"a component";E(null!=r||t._compositeType!==T.StatelessFunctional,'Stateless function components cannot be given refs (See ref "%s" in %s created by %s). Attempts to access this ref will fail.',e,o,this.getName()),(n.refs===y?n.refs={}:n.refs)[e]=r},detachRef:function(e){delete this.getPublicInstance().refs[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){var e=this._instance;return this._compositeType===T.StatelessFunctional?null:e},_instantiateReactComponent:null};e.exports=S},function(e,t,n){"use strict";(function(t){function r(e,t,r,l,p,d){for(var f in e)if(e.hasOwnProperty(f)){var h;try{"function"!=typeof e[f]&&s(!1,"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",l||"React class",i[r],f),h=e[f](t,f,l,r,null,a)}catch(e){h=e}if(c(!h||h instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",l||"React class",i[r],f,typeof h),h instanceof Error&&!(h.message in u)){u[h.message]=!0;var m="";o||(o=n(9)),null!==d?m=o.getStackAddendumByID(d):null!==p&&(m=o.getCurrentStackAddendum(p)),c(!1,"Failed %s type: %s%s",r,h.message,m)}}}var o,i=(n(2),n(211)),a=n(119),s=n(0),c=n(1);void 0!==t&&Object({NODE_ENV:"prodution"});var u={};e.exports=r}).call(t,n(45))},function(e,t,n){"use strict";var r={};r={prop:"prop",context:"context",childContext:"child context"},e.exports=r},function(e,t,n){"use strict";function r(){return o++}var o=1;e.exports=r},function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=r},function(e,t,n){"use strict";function r(e){var t=e&&(o&&e[o]||e[i]);if("function"==typeof t)return t}var o="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";e.exports=r},function(e,t,n){"use strict";(function(t){function r(e,t,r,o){if(e&&"object"==typeof e){var s=e,u=void 0===s[r];i||(i=n(9)),u||c(!1,"flattenChildren(...): Encountered two children with the same key, `%s`. Child keys must be unique; when two children share a key, only the first child will be used.%s",a.unescape(r),i.getStackAddendumByID(o)),u&&null!=t&&(s[r]=t)}}function o(e,t){if(null==e)return e;var n={};return s(e,function(e,n,o){return r(e,n,o,t)},n),n}var i,a=n(70),s=n(125),c=n(1);void 0!==t&&Object({NODE_ENV:"prodution"}),e.exports=o}).call(t,n(45))},function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.useCreateElement=!1,this.updateQueue=new c(this)}var o=n(3),i=n(24),a=n(47),s=n(11),c=n(217),u=[];u.push({initialize:s.debugTool.onBeginFlush,close:s.debugTool.onEndFlush});var l={enqueue:function(){}},p={getTransactionWrappers:function(){return u},getReactMountReady:function(){return l},getUpdateQueue:function(){return this.updateQueue},destructor:function(){},checkpoint:function(){},rollback:function(){}};o(r.prototype,a,p),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){var n=e.constructor;a(!1,"%s(...): Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op. Please check the code for the %s component.",t,t,n&&(n.displayName||n.name)||"ReactClass")}var i=n(71),a=n(1),s=function(){function e(t){r(this,e),this.transaction=t}return e.prototype.isMounted=function(e){return!1},e.prototype.enqueueCallback=function(e,t,n){this.transaction.isInTransaction()&&i.enqueueCallback(e,t,n)},e.prototype.enqueueForceUpdate=function(e){this.transaction.isInTransaction()?i.enqueueForceUpdate(e):o(e,"forceUpdate")},e.prototype.enqueueReplaceState=function(e,t){this.transaction.isInTransaction()?i.enqueueReplaceState(e,t):o(e,"replaceState")},e.prototype.enqueueSetState=function(e,t){this.transaction.isInTransaction()?i.enqueueSetState(e,t):o(e,"setState")},e}();e.exports=s},function(e,t,n){"use strict";var r=n(3),o=n(30),i=n(4),a=function(e){this._currentElement=null,this._hostNode=null,this._hostParent=null,this._hostContainerInfo=null,this._domID=0};r(a.prototype,{mountComponent:function(e,t,n,r){var a=n._idCounter++;this._domID=a,this._hostParent=t,this._hostContainerInfo=n;var s=" react-empty: "+this._domID+" ";if(e.useCreateElement){var c=n._ownerDocument,u=c.createComment(s);return i.precacheNode(this,u),o(u)}return e.renderToStaticMarkup?"":"\x3c!--"+s+"--\x3e"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),e.exports=a},function(e,t,n){"use strict";function r(e,t){"_hostNode"in e||c(!1,"getNodeFromInstance: Invalid argument."),"_hostNode"in t||c(!1,"getNodeFromInstance: Invalid argument.");for(var n=0,r=e;r;r=r._hostParent)n++;for(var o=0,i=t;i;i=i._hostParent)o++;for(;n-o>0;)e=e._hostParent,n--;for(;o-n>0;)t=t._hostParent,o--;for(var a=n;a--;){if(e===t)return e;e=e._hostParent,t=t._hostParent}return null}function o(e,t){"_hostNode"in e||c(!1,"isAncestor: Invalid argument."),"_hostNode"in t||c(!1,"isAncestor: Invalid argument.");for(;t;){if(t===e)return!0;t=t._hostParent}return!1}function i(e){return"_hostNode"in e||c(!1,"getParentInstance: Invalid argument."),e._hostParent}function a(e,t,n){for(var r=[];e;)r.push(e),e=e._hostParent;var o;for(o=r.length;o-- >0;)t(r[o],"captured",n);for(o=0;o<r.length;o++)t(r[o],"bubbled",n)}function s(e,t,n,o,i){for(var a=e&&t?r(e,t):null,s=[];e&&e!==a;)s.push(e),e=e._hostParent;for(var c=[];t&&t!==a;)c.push(t),t=t._hostParent;var u;for(u=0;u<s.length;u++)n(s[u],"bubbled",o);for(u=c.length;u-- >0;)n(c[u],"captured",i)}var c=(n(2),n(0));e.exports={isAncestor:o,getLowestCommonAncestor:r,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:s}},function(e,t,n){"use strict";var r=(n(2),n(3)),o=n(63),i=n(30),a=n(4),s=n(50),c=n(0),u=n(72),l=function(e){this._currentElement=e,this._stringText=""+e,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null};r(l.prototype,{mountComponent:function(e,t,n,r){var o;null!=t?o=t._ancestorInfo:null!=n&&(o=n._ancestorInfo),o&&u(null,this._stringText,this,o);var c=n._idCounter++,l=" react-text: "+c+" ";if(this._domID=c,this._hostParent=t,e.useCreateElement){var p=n._ownerDocument,d=p.createComment(l),f=p.createComment(" /react-text "),h=i(p.createDocumentFragment());return i.queueChild(h,i(d)),this._stringText&&i.queueChild(h,i(p.createTextNode(this._stringText))),i.queueChild(h,i(f)),a.precacheNode(this,d),this._closingComment=f,h}var m=s(this._stringText);return e.renderToStaticMarkup?m:"\x3c!--"+l+"--\x3e"+m+"\x3c!-- /react-text --\x3e"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;if(n!==this._stringText){this._stringText=n;var r=this.getHostNode();o.replaceDelimitedText(r[0],r[1],n)}}},getHostNode:function(){var e=this._commentNodes;if(e)return e;if(!this._closingComment)for(var t=a.getNodeFromInstance(this),n=t.nextSibling;;){if(null==n&&c(!1,"Missing closing comment for text component %s",this._domID),8===n.nodeType&&" /react-text "===n.nodeValue){this._closingComment=n;break}n=n.nextSibling}return e=[this._hostNode,this._closingComment],this._commentNodes=e,e},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,a.uncacheNode(this)}}),e.exports=l},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(3),i=n(14),a=n(47),s=n(12),c={initialize:s,close:function(){d.isBatchingUpdates=!1}},u={initialize:s,close:i.flushBatchedUpdates.bind(i)},l=[u,c];o(r.prototype,a,{getTransactionWrappers:function(){return l}});var p=new r,d={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,o,i){var a=d.isBatchingUpdates;return d.isBatchingUpdates=!0,a?e(t,n,r,o,i):p.perform(e,null,t,n,r,o,i)}};e.exports=d},function(e,t,n){"use strict";function r(e){for(;e._hostParent;)e=e._hostParent;var t=p.getNodeFromInstance(e),n=t.parentNode;return p.getClosestInstanceFromNode(n)}function o(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function i(e){var t=f(e.nativeEvent),n=p.getClosestInstanceFromNode(t),o=n;do{e.ancestors.push(o),o=o&&r(o)}while(o);for(var i=0;i<e.ancestors.length;i++)n=e.ancestors[i],m._handleTopLevel(e.topLevelType,n,e.nativeEvent,f(e.nativeEvent))}function a(e){e(h(window))}var s=n(3),c=n(126),u=n(5),l=n(24),p=n(4),d=n(14),f=n(60),h=n(223);s(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),l.addPoolingTo(o,l.twoArgumentPooler);var m={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:u.canUseDOM?window:null,setHandleTopLevel:function(e){m._handleTopLevel=e},setEnabled:function(e){m._enabled=!!e},isEnabled:function(){return m._enabled},trapBubbledEvent:function(e,t,n){return n?c.listen(n,t,m.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){return n?c.capture(n,t,m.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=a.bind(null,e);c.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(m._enabled){var n=o.getPooled(e,t);try{d.batchedUpdates(i,n)}finally{o.release(n)}}}};e.exports=m},function(e,t,n){"use strict";function r(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=r},function(e,t,n){"use strict";var r=n(19),o=n(33),i=n(58),a=n(67),s=n(123),c=n(51),u=n(124),l=n(14),p={Component:a.injection,DOMProperty:r.injection,EmptyComponent:s.injection,EventPluginHub:o.injection,EventPluginUtils:i.injection,EventEmitter:c.injection,HostComponent:u.injection,Updates:l.injection};e.exports=p},function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=i.getPooled(null),this.useCreateElement=e}var o=n(3),i=n(110),a=n(24),s=n(51),c=n(127),u=n(11),l=n(47),p=n(71),d={initialize:c.getSelectionInformation,close:c.restoreSelection},f={initialize:function(){var e=s.isEnabled();return s.setEnabled(!1),e},close:function(e){s.setEnabled(e)}},h={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},m=[d,f,h];m.push({initialize:u.debugTool.onBeginFlush,close:u.debugTool.onEndFlush});var g={getTransactionWrappers:function(){return m},getReactMountReady:function(){return this.reactMountReady},getUpdateQueue:function(){return p},checkpoint:function(){return this.reactMountReady.checkpoint()},rollback:function(e){this.reactMountReady.rollback(e)},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null}};o(r.prototype,l,g),a.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return e===n&&t===r}function o(e){var t=document.selection,n=t.createRange(),r=n.text.length,o=n.duplicate();o.moveToElementText(e),o.setEndPoint("EndToStart",n);var i=o.text.length;return{start:i,end:i+r}}function i(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,s=t.getRangeAt(0);try{s.startContainer.nodeType,s.endContainer.nodeType}catch(e){return null}var c=r(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),u=c?0:s.toString().length,l=s.cloneRange();l.selectNodeContents(e),l.setEnd(s.startContainer,s.startOffset);var p=r(l.startContainer,l.startOffset,l.endContainer,l.endOffset),d=p?0:l.toString().length,f=d+u,h=document.createRange();h.setStart(n,o),h.setEnd(i,a);var m=h.collapsed;return{start:m?f:d,end:m?d:f}}function a(e,t){var n,r,o=document.selection.createRange().duplicate();void 0===t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),o.moveToElementText(e),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[l()].length,o=Math.min(t.start,r),i=void 0===t.end?o:Math.min(t.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var s=u(e,o),c=u(e,i);if(s&&c){var p=document.createRange();p.setStart(s.node,s.offset),n.removeAllRanges(),o>i?(n.addRange(p),n.extend(c.node,c.offset)):(p.setEnd(c.node,c.offset),n.addRange(p))}}}var c=n(5),u=n(227),l=n(109),p=c.canUseDOM&&"selection"in document&&!("getSelection"in window),d={getOffsets:p?o:i,setOffsets:p?a:s};e.exports=d},function(e,t,n){"use strict";function r(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function o(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function i(e,t){for(var n=r(e),i=0,a=0;n;){if(3===n.nodeType){if(a=i+n.textContent.length,i<=t&&a>=t)return{node:n,offset:t-i};i=a}n=r(o(n))}}e.exports=i},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e===t||!o(e)&&(o(t)?r(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}var o=n(229);e.exports=r},function(e,t,n){"use strict";function r(e){return o(e)&&3==e.nodeType}var o=n(230);e.exports=r},function(e,t,n){"use strict";function r(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"==typeof n.Node?e instanceof n.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=r},function(e,t,n){"use strict";var r={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},o={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},i={Properties:{},DOMAttributeNamespaces:{xlinkActuate:r.xlink,xlinkArcrole:r.xlink,xlinkHref:r.xlink,xlinkRole:r.xlink,xlinkShow:r.xlink,xlinkTitle:r.xlink,xlinkType:r.xlink,xmlBase:r.xml,xmlLang:r.xml,xmlSpace:r.xml},DOMAttributeNames:{}};Object.keys(o).forEach(function(e){i.Properties[e]=0,o[e]&&(i.DOMAttributeNames[e]=o[e])}),e.exports=i},function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&c.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(e,t){if(y||null==m||m!==l())return null;var n=r(m);if(!v||!d(v,n)){v=n;var o=u.getPooled(h.select,g,e,t);return o.type="select",o.target=m,i.accumulateTwoPhaseDispatches(o),o}return null}var i=n(32),a=n(5),s=n(4),c=n(127),u=n(17),l=n(128),p=n(113),d=n(68),f=a.canUseDOM&&"documentMode"in document&&document.documentMode<=11,h={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},m=null,g=null,v=null,y=!1,_=!1,b={eventTypes:h,extractEvents:function(e,t,n,r){if(!_)return null;var i=t?s.getNodeFromInstance(t):window;switch(e){case"topFocus":(p(i)||"true"===i.contentEditable)&&(m=i,g=t,v=null);break;case"topBlur":m=null,g=null,v=null;break;case"topMouseDown":y=!0;break;case"topContextMenu":case"topMouseUp":return y=!1,o(n,r);case"topSelectionChange":if(f)break;case"topKeyDown":case"topKeyUp":return o(n,r)}return null},didPutListener:function(e,t,n){"onSelect"===t&&(_=!0)}};e.exports=b},function(e,t,n){"use strict";function r(e){return"."+e._rootNodeID}function o(e){return"button"===e||"input"===e||"select"===e||"textarea"===e}var i=(n(2),n(126)),a=n(32),s=n(4),c=n(234),u=n(235),l=n(17),p=n(236),d=n(237),f=n(48),h=n(239),m=n(240),g=n(241),v=n(34),y=n(242),_=n(12),b=n(73),C=n(0),E={},T={};["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","contextMenu","copy","cut","doubleClick","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","focus","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","progress","rateChange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach(function(e){var t=e[0].toUpperCase()+e.slice(1),n="on"+t,r="top"+t,o={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[r]};E[e]=o,T[r]=o});var w={},S={eventTypes:E,extractEvents:function(e,t,n,r){var o=T[e];if(!o)return null;var i;switch(e){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topVolumeChange":case"topWaiting":i=l;break;case"topKeyPress":if(0===b(n))return null;case"topKeyDown":case"topKeyUp":i=d;break;case"topBlur":case"topFocus":i=p;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":i=f;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":i=h;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":i=m;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":i=c;break;case"topTransitionEnd":i=g;break;case"topScroll":i=v;break;case"topWheel":i=y;break;case"topCopy":case"topCut":case"topPaste":i=u}i||C(!1,"SimpleEventPlugin: Unhandled event type, `%s`.",e);var s=i.getPooled(o,t,n,r);return a.accumulateTwoPhaseDispatches(s),s},didPutListener:function(e,t,n){if("onClick"===t&&!o(e._tag)){var a=r(e),c=s.getNodeFromInstance(e);w[a]||(w[a]=i.listen(c,"click",_))}},willDeleteListener:function(e,t){if("onClick"===t&&!o(e._tag)){var n=r(e);w[n].remove(),delete w[n]}}};e.exports=S},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(17),i={animationName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(17),i={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(34),i={relatedTarget:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(34),i=n(73),a=n(238),s=n(62),c={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(e){return"keypress"===e.type?i(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?i(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};o.augmentClass(r,c),e.exports=r},function(e,t,n){"use strict";function r(e){if(e.key){var t=i[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=o(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var o=n(73),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(48),i={dataTransfer:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(34),i=n(62),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(17),i={propertyName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t,n,r){return o.call(this,e,t,n,r)}var o=n(48),i={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,i),e.exports=r},function(e,t,n){"use strict";function r(e,t){var n={_topLevelWrapper:e,_idCounter:1,_ownerDocument:t?t.nodeType===i?t:t.ownerDocument:null,_node:t,_tag:t?t.nodeName.toLowerCase():null,_namespaceURI:t?t.namespaceURI:null};return n._ancestorInfo=t?o.updatedAncestorInfo(null,n._tag,null):null,n}var o=n(72),i=9;e.exports=r},function(e,t,n){"use strict";var r={useCreateElement:!0,useFiber:!1};e.exports=r},function(e,t,n){"use strict";var r=n(246),o=/\/?>/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return i.test(e)?e:e.replace(o," "+a.CHECKSUM_ATTR_NAME+'="'+t+'"$&')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);return n=n&&parseInt(n,10),r(e)===n}};e.exports=a},function(e,t,n){"use strict";function r(e){for(var t=1,n=0,r=0,i=e.length,a=-4&i;r<a;){for(var s=Math.min(r+4096,a);r<s;r+=4)n+=(t+=e.charCodeAt(r))+(t+=e.charCodeAt(r+1))+(t+=e.charCodeAt(r+2))+(t+=e.charCodeAt(r+3));t%=o,n%=o}for(;r<i;r++)n+=t+=e.charCodeAt(r);return t%=o,n%=o,t|n<<16}var o=65521;e.exports=r},function(e,t,n){"use strict";e.exports="15.6.1"},function(e,t,n){"use strict";function r(e){var t=o.current;if(null!==t&&(u(t._warnedAboutRefsInRender,"%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",t.getName()||"A component"),t._warnedAboutRefsInRender=!0),null==e)return null;if(1===e.nodeType)return e;var n=a.get(e);if(n)return n=s(n),n?i.getNodeFromInstance(n):null;"function"==typeof e.render?c(!1,"findDOMNode was called on an unmounted component."):c(!1,"Element appears to be neither ReactComponent nor DOMNode (keys: %s)",Object.keys(e))}var o=(n(2),n(13)),i=n(4),a=n(35),s=n(130),c=n(0),u=n(1);e.exports=r},function(e,t,n){"use strict";var r=n(129);e.exports=r.renderSubtreeIntoContainer},function(e,t,n){"use strict";function r(e,t){null!=t&&"string"==typeof t.type&&(t.type.indexOf("-")>=0||t.props.is||p(e,t))}var o=n(19),i=n(46),a=n(9),s=n(1),c={children:!0,dangerouslySetInnerHTML:!0,key:!0,ref:!0,autoFocus:!0,defaultValue:!0,valueLink:!0,defaultChecked:!0,checkedLink:!0,innerHTML:!0,suppressContentEditableWarning:!0,onFocusIn:!0,onFocusOut:!0},u={},l=function(e,t,n){if(o.properties.hasOwnProperty(t)||o.isCustomAttribute(t))return!0;if(c.hasOwnProperty(t)&&c[t]||u.hasOwnProperty(t)&&u[t])return!0;if(i.registrationNameModules.hasOwnProperty(t))return!0;u[t]=!0;var r=t.toLowerCase(),l=o.isCustomAttribute(r)?r:o.getPossibleStandardName.hasOwnProperty(r)?o.getPossibleStandardName[r]:null,p=i.possibleRegistrationNames.hasOwnProperty(r)?i.possibleRegistrationNames[r]:null;return null!=l?(s(!1,"Unknown DOM property %s. Did you mean %s?%s",t,l,a.getStackAddendumByID(n)),!0):null!=p&&(s(!1,"Unknown event handler property %s. Did you mean `%s`?%s",t,p,a.getStackAddendumByID(n)),!0)},p=function(e,t){var n=[];for(var r in t.props){l(t.type,r,e)||n.push(r)}var o=n.map(function(e){return"`"+e+"`"}).join(", ");1===n.length?s(!1,"Unknown prop %s on <%s> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop%s",o,t.type,a.getStackAddendumByID(e)):n.length>1&&s(!1,"Unknown props %s on <%s> tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop%s",o,t.type,a.getStackAddendumByID(e))},d={onBeforeMountComponent:function(e,t){r(e,t)},onBeforeUpdateComponent:function(e,t){r(e,t)}};e.exports=d},function(e,t,n){"use strict";function r(e,t){null!=t&&("input"!==t.type&&"textarea"!==t.type&&"select"!==t.type||null==t.props||null!==t.props.value||a||(i(!1,"`value` prop on `%s` should not be null. Consider using the empty string to clear the component or `undefined` for uncontrolled components.%s",t.type,o.getStackAddendumByID(e)),a=!0))}var o=n(9),i=n(1),a=!1,s={onBeforeMountComponent:function(e,t){r(e,t)},onBeforeUpdateComponent:function(e,t){r(e,t)}};e.exports=s},function(e,t,n){"use strict";function r(e,t,n){if(u.hasOwnProperty(t)&&u[t])return!0;if(l.test(t)){var r=t.toLowerCase(),o=a.getPossibleStandardName.hasOwnProperty(r)?a.getPossibleStandardName[r]:null;if(null==o)return u[t]=!0,!1;if(t!==o)return c(!1,"Unknown ARIA attribute %s. Did you mean %s?%s",t,o,s.getStackAddendumByID(n)),u[t]=!0,!0}return!0}function o(e,t){var n=[];for(var o in t.props){r(t.type,o,e)||n.push(o)}var i=n.map(function(e){return"`"+e+"`"}).join(", ");1===n.length?c(!1,"Invalid aria prop %s on <%s> tag. For details, see https://fb.me/invalid-aria-prop%s",i,t.type,s.getStackAddendumByID(e)):n.length>1&&c(!1,"Invalid aria props %s on <%s> tag. For details, see https://fb.me/invalid-aria-prop%s",i,t.type,s.getStackAddendumByID(e))}function i(e,t){null!=t&&"string"==typeof t.type&&(t.type.indexOf("-")>=0||t.props.is||o(e,t))}var a=n(19),s=n(9),c=n(1),u={},l=new RegExp("^(aria)-["+a.ATTRIBUTE_NAME_CHAR+"]*$"),p={onBeforeMountComponent:function(e,t){i(e,t)},onBeforeUpdateComponent:function(e,t){i(e,t)}};e.exports=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(131),i=r(o),a=n(256),s=r(a),c=n(257),u=r(c),l=n(261),p=r(l),d=n(277),f=r(d),h=n(98),m=r(h);n(284),n(288),n(315);var g=function(e){function t(e){(0,s.default)(this,t);var n=(0,p.default)(this,(t.__proto__||(0,i.default)(t)).call(this,e));return n.componentWillMount=function(){var e={};e=new WebIM.connection({isMultiLoginSessions:WebIM.config.isMultiLoginSessions,https:"boolean"==typeof WebIM.config.https?WebIM.config.https:"https:"===location.protocol,url:WebIM.config.xmppURL,isAutoLogin:!0,heartBeatWait:WebIM.config.heartBeatWait,autoReconnectNumMax:WebIM.config.autoReconnectNumMax,autoReconnectInterval:WebIM.config.autoReconnectInterval}),e.listen({onOpened:function(e){console.log("%c [opened] 连接已成功建立","color: green")}}),n.setState({conn:e})},n.componentDidMount=function(){console.log(WebIM.WebRTC);var e=null;WebIM.WebRTC?(e=new WebIM.WebRTC.Call({connection:n.state.conn,mediaStreamConstaints:{audio:!0,video:!0},listener:{onAcceptCall:function(e,t){console.log("onAcceptCall::","from: ",e,"options: ",t)},onGotRemoteStream:function(e,t){console.log("onGotRemoteStream::","stream: ",e,"streamType: ",t),document.getElementById("video").srcObject=e},onGotLocalStream:function(e,t){console.log("onGotLocalStream::","stream:",e,"streamType: ",t),document.getElementById("localVideo").srcObject=e},onRinging:function(e){console.log("onRinging::","caller:",e)},onTermCall:function(e){console.log("onTermCall::"),console.log("reason:",e)},onIceConnectionStateChange:function(e){console.log("onIceConnectionStateChange::","iceState:",e)},onError:function(e){console.log(e)}}}),n.setState({rtcCall:e})):console.warn("不能进行视频通话!您的浏览器不支持webrtc或者协议不是https。")},n.call=function(){n.state.rtcCall.caller=n.state.currentname,n.state.rtcCall.makeVideoCall(n.state.targetname)},n.endCall=function(){n.state.rtcCall.endCall()},n.acceptCall=function(){n.state.rtcCall.acceptCall()},n.audioCall=function(){console.log("Audio Call"),n.state.rtcCall.caller=n.state.currentname,n.state.rtcCall.makeVoiceCall(n.state.targetname)},n.register=function(){var e=n.registerUser.value.trim(),t={username:e,password:"123456",nickname:"anuniquename",appKey:WebIM.config.appkey,success:function(){console.log("regist success!")},error:function(){console.log("regist error")},apiUrl:WebIM.config.apiURL};n.state.conn.signup(t),n.registerUser.value=""},n.logout=function(){n.state.conn.close("logout"),n.state.conn.errorType=WebIM.statusCode.WEBIM_CONNCTION_CLIENT_LOGOUT},n.login=function(){var e=n.currentUser.value.trim(),t=n.targetUser.value.trim();n.setState({currentname:e,targetname:t});var r={apiUrl:WebIM.config.apiURL,user:e,pwd:"123456",appKey:WebIM.config.appkey};n.state.conn.open(r),n.currentUser.value="",n.targetUser.value=""},n.handleTextChange=function(){n.setState({currentname:n.currentUser.value})},n.handleTextChange2=function(){n.setState({targetname:n.targetUser.value})},n.state={currentname:"",targetname:"",conn:{},rtcCall:{}},n}return(0,f.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this;return m.default.createElement("div",{id:"webc"},m.default.createElement("h2",null,"Text Box"),m.default.createElement("p",null,"current user:",m.default.createElement("span",{id:"current"},this.state.currentname)),m.default.createElement("p",null,"target user:",m.default.createElement("span",{id:"target"},this.state.targetname)),m.default.createElement("div",null,m.default.createElement("input",{type:"text",ref:function(t){e.currentUser=t},placeholder:"输入当前用户",id:"currentUser",onChange:this.handleTextChange}),m.default.createElement("button",{id:"login",onClick:this.login},"登录&记录对方"),m.default.createElement("br",null),m.default.createElement("input",{type:"text",ref:function(t){e.targetUser=t},placeholder:"输入目标用户",id:"targetUser",onChange:this.handleTextChange2})),m.default.createElement("h3",null,"Roasters"),m.default.createElement("div",null,m.default.createElement("input",{type:"text",ref:function(t){e.registerUser=t},placeholder:"注册用户姓名"}),m.default.createElement("button",{id:"register",onClick:this.register},"Register"),m.default.createElement("button",{id:"logout",onClick:this.logout},"logout")),m.default.createElement("h3",null,"WebRTC"),m.default.createElement("div",null,m.default.createElement("button",{id:"rtCall",onClick:this.call},"Call"),m.default.createElement("button",{id:"rtAcceptCall",onClick:this.acceptCall},"AcceptCall"),m.default.createElement("button",{id:"rtEndCall",onClick:this.endCall},"EndCall"),m.default.createElement("button",{id:"rtAudioCall",onClick:this.audioCall},"AudioCall"),m.default.createElement("div",null,m.default.createElement("video",{id:"video",style:{border:"1px solid red"},autoPlay:!0}),m.default.createElement("video",{id:"localVideo",style:{border:"1px solid blue"},autoPlay:!0,height:"150"}))))}}]),t}(h.Component);g.defaultProps={},t.default=g},function(e,t,n){n(255),e.exports=n(6).Object.getPrototypeOf},function(e,t,n){var r=n(52),o=n(132);n(133)("getPrototypeOf",function(){return function(e){return o(r(e))}})},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(258),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){e.exports={default:n(259),__esModule:!0}},function(e,t,n){n(260);var r=n(6).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(10);r(r.S+r.F*!n(16),"Object",{defineProperty:n(15).f})},function(e,t,n){"use strict";t.__esModule=!0;var r=n(37),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){n(80),n(85),e.exports=n(86).f("iterator")},function(e,t,n){var r=n(81),o=n(74);e.exports=function(e){return function(t,n){var i,a,s=String(o(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(i=s.charCodeAt(c),i<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):i:e?s.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},function(e,t,n){"use strict";var r=n(56),o=n(54),i=n(41),a={};n(21)(a,n(8)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(15),o=n(22),i=n(39);e.exports=n(16)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),s=a.length,c=0;s>c;)r.f(e,n=a[c++],t[n]);return e}},function(e,t,n){var r=n(26),o=n(83),i=n(267);e.exports=function(e){return function(t,n,a){var s,c=r(t),u=o(c.length),l=i(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(81),o=Math.max,i=Math.min;e.exports=function(e,t){return e=r(e),e<0?o(e+t,0):i(e,t)}},function(e,t,n){"use strict";var r=n(269),o=n(139),i=n(38),a=n(26);e.exports=n(82)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t,n){n(271),n(91),n(275),n(276),e.exports=n(6).Symbol},function(e,t,n){"use strict";var r=n(7),o=n(25),i=n(16),a=n(10),s=n(135),c=n(88).KEY,u=n(31),l=n(76),p=n(41),d=n(53),f=n(8),h=n(86),m=n(89),g=n(272),v=n(273),y=n(141),_=n(22),b=n(26),C=n(78),E=n(54),T=n(56),w=n(274),S=n(143),x=n(15),I=n(39),R=S.f,O=x.f,N=w.f,k=r.Symbol,M=r.JSON,P=M&&M.stringify,A=f("_hidden"),D=f("toPrimitive"),B={}.propertyIsEnumerable,j=l("symbol-registry"),U=l("symbols"),L=l("op-symbols"),F=Object.prototype,W="function"==typeof k,H=r.QObject,G=!H||!H.prototype||!H.prototype.findChild,V=i&&u(function(){return 7!=T(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=R(F,t);r&&delete F[t],O(e,t,n),r&&e!==F&&O(F,t,r)}:O,q=function(e){var t=U[e]=T(k.prototype);return t._k=e,t},z=W&&"symbol"==typeof k.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof k},K=function(e,t,n){return e===F&&K(L,t,n),_(e),t=C(t,!0),_(n),o(U,t)?(n.enumerable?(o(e,A)&&e[A][t]&&(e[A][t]=!1),n=T(n,{enumerable:E(0,!1)})):(o(e,A)||O(e,A,E(1,{})),e[A][t]=!0),V(e,t,n)):O(e,t,n)},J=function(e,t){_(e);for(var n,r=v(t=b(t)),o=0,i=r.length;i>o;)K(e,n=r[o++],t[n]);return e},Y=function(e,t){return void 0===t?T(e):J(T(e),t)},X=function(e){var t=B.call(this,e=C(e,!0));return!(this===F&&o(U,e)&&!o(L,e))&&(!(t||!o(this,e)||!o(U,e)||o(this,A)&&this[A][e])||t)},$=function(e,t){if(e=b(e),t=C(t,!0),e!==F||!o(U,t)||o(L,t)){var n=R(e,t);return!n||!o(U,t)||o(e,A)&&e[A][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=N(b(e)),r=[],i=0;n.length>i;)o(U,t=n[i++])||t==A||t==c||r.push(t);return r},Z=function(e){for(var t,n=e===F,r=N(n?L:b(e)),i=[],a=0;r.length>a;)!o(U,t=r[a++])||n&&!o(F,t)||i.push(U[t]);return i};W||(k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===F&&t.call(L,n),o(this,A)&&o(this[A],e)&&(this[A][e]=!1),V(this,e,E(1,n))};return i&&G&&V(F,e,{configurable:!0,set:t}),q(e)},s(k.prototype,"toString",function(){return this._k}),S.f=$,x.f=K,n(142).f=w.f=Q,n(90).f=X,n(140).f=Z,i&&!n(55)&&s(F,"propertyIsEnumerable",X,!0),h.f=function(e){return q(f(e))}),a(a.G+a.W+a.F*!W,{Symbol:k});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)f(ee[te++]);for(var ne=I(f.store),re=0;ne.length>re;)m(ne[re++]);a(a.S+a.F*!W,"Symbol",{for:function(e){return o(j,e+="")?j[e]:j[e]=k(e)},keyFor:function(e){if(z(e))return g(j,e);throw TypeError(e+" is not a symbol!")},useSetter:function(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!W,"Object",{create:Y,defineProperty:K,defineProperties:J,getOwnPropertyDescriptor:$,getOwnPropertyNames:Q,getOwnPropertySymbols:Z}),M&&a(a.S+a.F*(!W||u(function(){var e=k();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))})),"JSON",{stringify:function(e){if(void 0!==e&&!z(e)){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);return t=r[1],"function"==typeof t&&(n=t),!n&&y(t)||(t=function(e,t){if(n&&(t=n.call(this,e,t)),!z(t))return t}),r[1]=t,P.apply(M,r)}}}),k.prototype[D]||n(21)(k.prototype,D,k.prototype.valueOf),p(k,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(e,t,n){var r=n(39),o=n(26);e.exports=function(e,t){for(var n,i=o(e),a=r(i),s=a.length,c=0;s>c;)if(i[n=a[c++]]===t)return n}},function(e,t,n){var r=n(39),o=n(140),i=n(90);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,s=n(e),c=i.f,u=0;s.length>u;)c.call(e,a=s[u++])&&t.push(a);return t}},function(e,t,n){var r=n(26),o=n(142).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return o(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?s(e):o(r(e))}},function(e,t,n){n(89)("asyncIterator")},function(e,t,n){n(89)("observable")},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(278),i=r(o),a=n(144),s=r(a),c=n(37),u=r(c);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,u.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,n){e.exports={default:n(279),__esModule:!0}},function(e,t,n){n(280),e.exports=n(6).Object.setPrototypeOf},function(e,t,n){var r=n(10);r(r.S,"Object",{setPrototypeOf:n(281).set})},function(e,t,n){var r=n(18),o=n(22),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(20)(Function.call,n(143).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){n(283);var r=n(6).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){var r=n(10);r(r.S,"Object",{create:n(56)})},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _stringify=__webpack_require__(92),_stringify2=_interopRequireDefault(_stringify),_iterator=__webpack_require__(79),_iterator2=_interopRequireDefault(_iterator),_symbol=__webpack_require__(87),_symbol2=_interopRequireDefault(_symbol),_typeof3=__webpack_require__(37),_typeof4=_interopRequireDefault(_typeof3),_create=__webpack_require__(144),_create2=_interopRequireDefault(_create),_keys=__webpack_require__(93),_keys2=_interopRequireDefault(_keys);!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};t.m=e,t.c=n,t.p="./",t(0)}({0:function(e,t,n){e.exports=n(247)},183:function(e,t,n){var r,o;(function(){function n(e){function t(t,n,r,o,i,a){for(;i>=0&&i<a;i+=e){var s=o?o[i]:i;r=n(r,t[s],s,t)}return r}return function(n,r,o,i){r=T(r,i,4);var a=!N(n)&&E.keys(n),s=(a||n).length,c=e>0?0:s-1;return arguments.length<3&&(o=n[a?a[c]:c],c+=e),t(n,r,o,a,c,s)}}function i(e){return function(t,n,r){n=w(n,r);for(var o=O(t),i=e>0?0:o-1;i>=0&&i<o;i+=e)if(n(t[i],i,t))return i;return-1}}function a(e,t,n){return function(r,o,i){var a=0,s=O(r);if("number"==typeof i)e>0?a=i>=0?i:Math.max(i+s,a):s=i>=0?Math.min(i+1,s):i+s+1;else if(n&&i&&s)return i=n(r,o),r[i]===o?i:-1;if(o!==o)return i=t(h.call(r,a,s),E.isNaN),i>=0?i+a:-1;for(i=e>0?a:s-1;i>=0&&i<s;i+=e)if(r[i]===o)return i;return-1}}function s(e,t){var n=D.length,r=e.constructor,o=E.isFunction(r)&&r.prototype||p,i="constructor";for(E.has(e,i)&&!E.contains(t,i)&&t.push(i);n--;)(i=D[n])in e&&e[i]!==o[i]&&!E.contains(t,i)&&t.push(i)}var c=this,u=c._,l=Array.prototype,p=Object.prototype,d=Function.prototype,f=l.push,h=l.slice,m=p.toString,g=p.hasOwnProperty,v=Array.isArray,y=_keys2.default,_=d.bind,b=_create2.default,C=function(){},E=function e(t){return t instanceof e?t:this instanceof e?void(this._wrapped=t):new e(t)};void 0!==e&&e.exports&&(t=e.exports=E),t._=E,E.VERSION="1.8.3";var T=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)}}return function(){return e.apply(t,arguments)}},w=function(e,t,n){return null==e?E.identity:E.isFunction(e)?T(e,t,n):E.isObject(e)?E.matcher(e):E.property(e)};E.iteratee=function(e,t){return w(e,t,1/0)};var S=function(e,t){return function(n){var r=arguments.length;if(r<2||null==n)return n;for(var o=1;o<r;o++)for(var i=arguments[o],a=e(i),s=a.length,c=0;c<s;c++){var u=a[c];t&&void 0!==n[u]||(n[u]=i[u])}return n}},x=function(e){if(!E.isObject(e))return{};if(b)return b(e);C.prototype=e;var t=new C;return C.prototype=null,t},I=function(e){return function(t){return null==t?void 0:t[e]}},R=Math.pow(2,53)-1,O=I("length"),N=function(e){var t=O(e);return"number"==typeof t&&t>=0&&t<=R};E.each=E.forEach=function(e,t,n){t=T(t,n);var r,o;if(N(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else{var i=E.keys(e);for(r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e)}return e},E.map=E.collect=function(e,t,n){t=w(t,n);for(var r=!N(e)&&E.keys(e),o=(r||e).length,i=Array(o),a=0;a<o;a++){var s=r?r[a]:a;i[a]=t(e[s],s,e)}return i},E.reduce=E.foldl=E.inject=n(1),E.reduceRight=E.foldr=n(-1),E.find=E.detect=function(e,t,n){var r;if(void 0!==(r=N(e)?E.findIndex(e,t,n):E.findKey(e,t,n))&&-1!==r)return e[r]},E.filter=E.select=function(e,t,n){var r=[];return t=w(t,n),E.each(e,function(e,n,o){t(e,n,o)&&r.push(e)}),r},E.reject=function(e,t,n){return E.filter(e,E.negate(w(t)),n)},E.every=E.all=function(e,t,n){t=w(t,n);for(var r=!N(e)&&E.keys(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(!t(e[a],a,e))return!1}return!0},E.some=E.any=function(e,t,n){t=w(t,n);for(var r=!N(e)&&E.keys(e),o=(r||e).length,i=0;i<o;i++){var a=r?r[i]:i;if(t(e[a],a,e))return!0}return!1},E.contains=E.includes=E.include=function(e,t,n,r){return N(e)||(e=E.values(e)),("number"!=typeof n||r)&&(n=0),E.indexOf(e,t,n)>=0},E.invoke=function(e,t){var n=h.call(arguments,2),r=E.isFunction(t);return E.map(e,function(e){var o=r?t:e[t];return null==o?o:o.apply(e,n)})},E.pluck=function(e,t){return E.map(e,E.property(t))},E.where=function(e,t){return E.filter(e,E.matcher(t))},E.findWhere=function(e,t){return E.find(e,E.matcher(t))},E.max=function(e,t,n){var r,o,i=-1/0,a=-1/0;if(null==t&&null!=e){e=N(e)?e:E.values(e);for(var s=0,c=e.length;s<c;s++)(r=e[s])>i&&(i=r)}else t=w(t,n),E.each(e,function(e,n,r){((o=t(e,n,r))>a||o===-1/0&&i===-1/0)&&(i=e,a=o)});return i},E.min=function(e,t,n){var r,o,i=1/0,a=1/0;if(null==t&&null!=e){e=N(e)?e:E.values(e);for(var s=0,c=e.length;s<c;s++)(r=e[s])<i&&(i=r)}else t=w(t,n),E.each(e,function(e,n,r){((o=t(e,n,r))<a||o===1/0&&i===1/0)&&(i=e,a=o)});return i},E.shuffle=function(e){for(var t,n=N(e)?e:E.values(e),r=n.length,o=Array(r),i=0;i<r;i++)t=E.random(0,i),t!==i&&(o[i]=o[t]),o[t]=n[i];return o},E.sample=function(e,t,n){return null==t||n?(N(e)||(e=E.values(e)),e[E.random(e.length-1)]):E.shuffle(e).slice(0,Math.max(0,t))},E.sortBy=function(e,t,n){return t=w(t,n),E.pluck(E.map(e,function(e,n,r){return{value:e,index:n,criteria:t(e,n,r)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index}),"value")};var k=function(e){return function(t,n,r){var o={};return n=w(n,r),E.each(t,function(r,i){var a=n(r,i,t);e(o,r,a)}),o}};E.groupBy=k(function(e,t,n){E.has(e,n)?e[n].push(t):e[n]=[t]}),E.indexBy=k(function(e,t,n){e[n]=t}),E.countBy=k(function(e,t,n){E.has(e,n)?e[n]++:e[n]=1}),E.toArray=function(e){return e?E.isArray(e)?h.call(e):N(e)?E.map(e,E.identity):E.values(e):[]},E.size=function(e){return null==e?0:N(e)?e.length:E.keys(e).length},E.partition=function(e,t,n){t=w(t,n);var r=[],o=[];return E.each(e,function(e,n,i){(t(e,n,i)?r:o).push(e)}),[r,o]},E.first=E.head=E.take=function(e,t,n){if(null!=e)return null==t||n?e[0]:E.initial(e,e.length-t)},E.initial=function(e,t,n){return h.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},E.last=function(e,t,n){if(null!=e)return null==t||n?e[e.length-1]:E.rest(e,Math.max(0,e.length-t))},E.rest=E.tail=E.drop=function(e,t,n){return h.call(e,null==t||n?1:t)},E.compact=function(e){return E.filter(e,E.identity)};var M=function e(t,n,r,o){for(var i=[],a=0,s=o||0,c=O(t);s<c;s++){var u=t[s];if(N(u)&&(E.isArray(u)||E.isArguments(u))){n||(u=e(u,n,r));var l=0,p=u.length;for(i.length+=p;l<p;)i[a++]=u[l++]}else r||(i[a++]=u)}return i};E.flatten=function(e,t){return M(e,t,!1)},E.without=function(e){return E.difference(e,h.call(arguments,1))},E.uniq=E.unique=function(e,t,n,r){E.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=w(n,r));for(var o=[],i=[],a=0,s=O(e);a<s;a++){var c=e[a],u=n?n(c,a,e):c;t?(a&&i===u||o.push(c),i=u):n?E.contains(i,u)||(i.push(u),o.push(c)):E.contains(o,c)||o.push(c)}return o},E.union=function(){return E.uniq(M(arguments,!0,!0))},E.intersection=function(e){for(var t=[],n=arguments.length,r=0,o=O(e);r<o;r++){var i=e[r];if(!E.contains(t,i)){for(var a=1;a<n&&E.contains(arguments[a],i);a++);a===n&&t.push(i)}}return t},E.difference=function(e){var t=M(arguments,!0,!0,1);return E.filter(e,function(e){return!E.contains(t,e)})},E.zip=function(){return E.unzip(arguments)},E.unzip=function(e){for(var t=e&&E.max(e,O).length||0,n=Array(t),r=0;r<t;r++)n[r]=E.pluck(e,r);return n},E.object=function(e,t){for(var n={},r=0,o=O(e);r<o;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n},E.findIndex=i(1),E.findLastIndex=i(-1),E.sortedIndex=function(e,t,n,r){n=w(n,r,1);for(var o=n(t),i=0,a=O(e);i<a;){var s=Math.floor((i+a)/2);n(e[s])<o?i=s+1:a=s}return i},E.indexOf=a(1,E.findIndex,E.sortedIndex),E.lastIndexOf=a(-1,E.findLastIndex),E.range=function(e,t,n){null==t&&(t=e||0,e=0),n=n||1;for(var r=Math.max(Math.ceil((t-e)/n),0),o=Array(r),i=0;i<r;i++,e+=n)o[i]=e;return o};var P=function(e,t,n,r,o){if(!(r instanceof t))return e.apply(n,o);var i=x(e.prototype),a=e.apply(i,o);return E.isObject(a)?a:i};E.bind=function(e,t){if(_&&e.bind===_)return _.apply(e,h.call(arguments,1));if(!E.isFunction(e))throw new TypeError("Bind must be called on a function");var n=h.call(arguments,2);return function r(){return P(e,r,t,this,n.concat(h.call(arguments)))}},E.partial=function(e){var t=h.call(arguments,1);return function n(){for(var r=0,o=t.length,i=Array(o),a=0;a<o;a++)i[a]=t[a]===E?arguments[r++]:t[a];for(;r<arguments.length;)i.push(arguments[r++]);return P(e,n,this,this,i)}},E.bindAll=function(e){var t,n,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(t=1;t<r;t++)n=arguments[t],e[n]=E.bind(e[n],e);return e},E.memoize=function(e,t){var n=function n(r){var o=n.cache,i=""+(t?t.apply(this,arguments):r);return E.has(o,i)||(o[i]=e.apply(this,arguments)),o[i]};return n.cache={},n},E.delay=function(e,t){var n=h.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},E.defer=E.partial(E.delay,E,1),E.throttle=function(e,t,n){var r,o,i,a=null,s=0;n||(n={});var c=function(){s=!1===n.leading?0:E.now(),a=null,i=e.apply(r,o),a||(r=o=null)};return function(){var u=E.now();s||!1!==n.leading||(s=u);var l=t-(u-s);return r=this,o=arguments,l<=0||l>t?(a&&(clearTimeout(a),a=null),s=u,i=e.apply(r,o),a||(r=o=null)):a||!1===n.trailing||(a=setTimeout(c,l)),i}},E.debounce=function(e,t,n){var r,o,i,a,s,c=function c(){var u=E.now()-a;u<t&&u>=0?r=setTimeout(c,t-u):(r=null,n||(s=e.apply(i,o),r||(i=o=null)))};return function(){i=this,o=arguments,a=E.now();var u=n&&!r;return r||(r=setTimeout(c,t)),u&&(s=e.apply(i,o),i=o=null),s}},E.wrap=function(e,t){return E.partial(t,e)},E.negate=function(e){return function(){return!e.apply(this,arguments)}},E.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},E.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},E.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},E.once=E.partial(E.before,2);var A=!{toString:null}.propertyIsEnumerable("toString"),D=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];E.keys=function(e){if(!E.isObject(e))return[];if(y)return y(e);var t=[];for(var n in e)E.has(e,n)&&t.push(n);return A&&s(e,t),t},E.allKeys=function(e){if(!E.isObject(e))return[];var t=[];for(var n in e)t.push(n);return A&&s(e,t),t},E.values=function(e){for(var t=E.keys(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=e[t[o]];return r},E.mapObject=function(e,t,n){t=w(t,n);for(var r,o=E.keys(e),i=o.length,a={},s=0;s<i;s++)r=o[s],a[r]=t(e[r],r,e);return a},E.pairs=function(e){for(var t=E.keys(e),n=t.length,r=Array(n),o=0;o<n;o++)r[o]=[t[o],e[t[o]]];return r},E.invert=function(e){for(var t={},n=E.keys(e),r=0,o=n.length;r<o;r++)t[e[n[r]]]=n[r];return t},E.functions=E.methods=function(e){var t=[];for(var n in e)E.isFunction(e[n])&&t.push(n);return t.sort()},E.extend=S(E.allKeys),E.extendOwn=E.assign=S(E.keys),E.findKey=function(e,t,n){t=w(t,n);for(var r,o=E.keys(e),i=0,a=o.length;i<a;i++)if(r=o[i],t(e[r],r,e))return r},E.pick=function(e,t,n){var r,o,i={},a=e;if(null==a)return i;E.isFunction(t)?(o=E.allKeys(a),r=T(t,n)):(o=M(arguments,!1,!1,1),r=function(e,t,n){return t in n},a=Object(a));for(var s=0,c=o.length;s<c;s++){var u=o[s],l=a[u];r(l,u,a)&&(i[u]=l)}return i},E.omit=function(e,t,n){if(E.isFunction(t))t=E.negate(t);else{var r=E.map(M(arguments,!1,!1,1),String);t=function(e,t){return!E.contains(r,t)}}return E.pick(e,t,n)},E.defaults=S(E.allKeys,!0),E.create=function(e,t){var n=x(e);return t&&E.extendOwn(n,t),n},E.clone=function(e){return E.isObject(e)?E.isArray(e)?e.slice():E.extend({},e):e},E.tap=function(e,t){return t(e),e},E.isMatch=function(e,t){var n=E.keys(t),r=n.length;if(null==e)return!r;for(var o=Object(e),i=0;i<r;i++){var a=n[i];if(t[a]!==o[a]||!(a in o))return!1}return!0};var B=function e(t,n,r,o){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return t===n;t instanceof E&&(t=t._wrapped),n instanceof E&&(n=n._wrapped);var i=m.call(t);if(i!==m.call(n))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n}var a="[object Array]"===i;if(!a){if("object"!=(void 0===t?"undefined":(0,_typeof4.default)(t))||"object"!=(void 0===n?"undefined":(0,_typeof4.default)(n)))return!1;var s=t.constructor,c=n.constructor;if(s!==c&&!(E.isFunction(s)&&s instanceof s&&E.isFunction(c)&&c instanceof c)&&"constructor"in t&&"constructor"in n)return!1}r=r||[],o=o||[];for(var u=r.length;u--;)if(r[u]===t)return o[u]===n;if(r.push(t),o.push(n),a){if((u=t.length)!==n.length)return!1;for(;u--;)if(!e(t[u],n[u],r,o))return!1}else{var l,p=E.keys(t);if(u=p.length,E.keys(n).length!==u)return!1;for(;u--;)if(l=p[u],!E.has(n,l)||!e(t[l],n[l],r,o))return!1}return r.pop(),o.pop(),!0};E.isEqual=function(e,t){return B(e,t)},E.isEmpty=function(e){return null==e||(N(e)&&(E.isArray(e)||E.isString(e)||E.isArguments(e))?0===e.length:0===E.keys(e).length)},E.isElement=function(e){return!(!e||1!==e.nodeType)},E.isArray=v||function(e){return"[object Array]"===m.call(e)},E.isObject=function(e){var t=void 0===e?"undefined":(0,_typeof4.default)(e);return"function"===t||"object"===t&&!!e},E.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){E["is"+e]=function(t){return m.call(t)==="[object "+e+"]"}}),E.isArguments(arguments)||(E.isArguments=function(e){return E.has(e,"callee")}),"function"!=typeof/./&&"object"!=("undefined"==typeof Int8Array?"undefined":(0,_typeof4.default)(Int8Array))&&(E.isFunction=function(e){return"function"==typeof e||!1}),E.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},E.isNaN=function(e){return E.isNumber(e)&&e!==+e},E.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===m.call(e)},E.isNull=function(e){return null===e},E.isUndefined=function(e){return void 0===e},E.has=function(e,t){return null!=e&&g.call(e,t)},E.noConflict=function(){return c._=u,this},E.identity=function(e){return e},E.constant=function(e){return function(){return e}},E.noop=function(){},E.property=I,E.propertyOf=function(e){return null==e?function(){}:function(t){return e[t]}},E.matcher=E.matches=function(e){return e=E.extendOwn({},e),function(t){return E.isMatch(t,e)}},E.times=function(e,t,n){var r=Array(Math.max(0,e));t=T(t,n,1);for(var o=0;o<e;o++)r[o]=t(o);return r},E.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},E.now=Date.now||function(){return(new Date).getTime()};var j={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},U=E.invert(j),L=function(e){var t=function(t){return e[t]},n="(?:"+E.keys(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}};E.escape=L(j),E.unescape=L(U),E.result=function(e,t,n){var r=null==e?void 0:e[t];return void 0===r&&(r=n),E.isFunction(r)?r.call(e):r};var F=0;E.uniqueId=function(e){var t=++F+"";return e?e+t:t},E.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var W=/(.)^/,H={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},G=/\\|'|\r|\n|\u2028|\u2029/g,V=function(e){return"\\"+H[e]};E.template=function(e,t,n){!t&&n&&(t=n),t=E.defaults({},t,E.templateSettings);var r=RegExp([(t.escape||W).source,(t.interpolate||W).source,(t.evaluate||W).source].join("|")+"|$","g"),o=0,i="__p+='";e.replace(r,function(t,n,r,a,s){return i+=e.slice(o,s).replace(G,V),o=s+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),t}),i+="';\n",t.variable||(i="with(obj||{}){\n"+i+"}\n"),i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{var a=new Function(t.variable||"obj","_",i)}catch(e){throw e.source=i,e}var s=function(e){return a.call(this,e,E)};return s.source="function("+(t.variable||"obj")+"){\n"+i+"}",s},E.chain=function(e){var t=E(e);return t._chain=!0,t};var q=function(e,t){return e._chain?E(t).chain():t};E.mixin=function(e){E.each(E.functions(e),function(t){var n=E[t]=e[t];E.prototype[t]=function(){var e=[this._wrapped];return f.apply(e,arguments),q(this,n.apply(E,e))}})},E.mixin(E),E.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=l[e];E.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],q(this,n)}}),E.each(["concat","join","slice"],function(e){var t=l[e];E.prototype[e]=function(){return q(this,t.apply(this._wrapped,arguments))}}),E.prototype.value=function(){return this._wrapped},E.prototype.valueOf=E.prototype.toJSON=E.prototype.value,E.prototype.toString=function(){return""+this._wrapped},r=[],void 0!==(o=function(){return E}.apply(t,r))&&(e.exports=o)}).call(this)},206:function(e,t,n){var r="function"==typeof _symbol2.default&&"symbol"===(0,_typeof4.default)(_iterator2.default)?function(e){return void 0===e?"undefined":(0,_typeof4.default)(e)}:function(e){return e&&"function"==typeof _symbol2.default&&e.constructor===_symbol2.default&&e!==_symbol2.default.prototype?"symbol":void 0===e?"undefined":(0,_typeof4.default)(e)};!function(){var e=function(){},o=n(207).code,i=function(){try{return new window.XMLHttpRequest}catch(e){return!1}},a=function(){try{return new window.ActiveXObject("Microsoft.XMLHTTP")}catch(e){return!1}},s=function(t){t=t||!0;var n=i()||a();if("withCredentials"in n)return n;if(!t)return n;if(void 0===window.XDomainRequest)return n;var r=new XDomainRequest;return r.readyState=0,r.status=100,r.onreadystatechange=e,r.onload=function(){r.readyState=4,r.status=200;var e=new ActiveXObject("Microsoft.XMLDOM");e.async="false",e.loadXML(r.responseText),r.responseXML=e,r.response=r.responseText,r.onreadystatechange()},r.ontimeout=r.onerror=function(){r.readyState=4,r.status=500,r.onreadystatechange()},r},c=function(){if("ActiveXObject"in window)try{return new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(e){return 0}else if(navigator.plugins&&navigator.plugins.length>0)return navigator.plugins["Shockwave Flash"];return 0}(),u=s(),l="undefined"!=typeof FormData,p="undefined"!=typeof Blob,d=u.setRequestHeader||!1,f=u.overrideMimeType||!1,h=d&&l,m=h||c,g=d&&(p||f);_keys2.default||(Object.keys=function(){var e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=n.length;return function(i){if("object"!==(void 0===i?"undefined":r(i))&&("function"!=typeof i||null===i))throw new TypeError("Object.keys called on non-object");var a,s,c=[];for(a in i)e.call(i,a)&&c.push(a);if(t)for(s=0;s<o;s++)e.call(i,n[s])&&c.push(n[s]);return c}}());var v={hasFormData:l,hasBlob:p,emptyfn:e,isCanSetRequestHeader:d,hasOverrideMimeType:f,isCanUploadFileAsync:h,isCanUploadFile:m,isCanDownLoadFile:g,isSupportWss:function(){var e=[/MQQBrowser[\/]5([.]\d+)?\sTBS/];if(!window.WebSocket)return!1;for(var t=window.navigator.userAgent,n=0,r=e.length;n<r;n++)if(e[n].test(t))return!1;return!0}(),getIEVersion:function(){var e,t=navigator.userAgent,n={4:8,5:9,6:10,7:11};return(e=t.match(/MSIE (\d+)/i))&&e[1]?+e[1]:(e=t.match(/Trident\/(\d+)/i),e&&e[1]?n[e[1]]||null:null)}(),stringify:function(e){if("undefined"!=typeof JSON&&_stringify2.default)return(0,_stringify2.default)(e);var t="",n=[];return function e(o){var i=!1;"[object Array]"===Object.prototype.toString.call(o)?(n.push("]","["),i=!0):"[object Object]"===Object.prototype.toString.call(o)&&n.push("}","{");for(var a in o)"[object Null]"===Object.prototype.toString.call(o[a])?o[a]="null":"[object Undefined]"===Object.prototype.toString.call(o[a])&&(o[a]="undefined"),o[a]&&"object"===r(o[a])?t+=","+(i?"":'"'+a+'":'+(i?'"':""))+e(o[a]):t+=',"'+(i?"":a+'":"')+o[a]+'"';return""!=t&&(t=t.slice(1)),n.pop()+t+n.pop()}(e)},login:function(t){var t=t||{},n=t.success||e,r=t.error||e,i=t.appKey||"",a=i.split("#");if(2!==a.length)return r({type:o.WEBIM_CONNCTION_APPKEY_NOT_ASSIGN_ERROR}),!1;var s=a[0],c=a[1],u=u||t.https,l=t.user||"",p=t.pwd||"",d=t.apiUrl,f={grant_type:"password",username:l,password:p,timestamp:+new Date},h=v.stringify(f),t={url:d+"/"+s+"/"+c+"/token",dataType:"json",data:h,success:n,error:r};return v.ajax(t)},getFileUrl:function(e){var t={url:"",filename:"",filetype:"",data:""},n="string"==typeof e?document.getElementById(e):e;if(!v.isCanUploadFileAsync||!n)return t;try{if(window.URL.createObjectURL){var r=n.files;if(r.length>0){var o=r.item(0);t.data=o,t.url=window.URL.createObjectURL(o),t.filename=o.name||""}}else{var o=document.getElementById(e).value;t.url=o;var i=o.lastIndexOf("/"),a=o.lastIndexOf("\\"),s=Math.max(i,a);t.filename=s<0?o:o.substring(s+1)}var c=t.filename.lastIndexOf(".");return-1!=c&&(t.filetype=t.filename.substring(c+1).toLowerCase()),t}catch(e){throw e}},getFileSize:function(e){var t=this.getFileLength(e);if(t>1e7)return!1;var n=Math.round(t/1e3);if(n<1e3)t=n+" KB";else if(n>=1e3){var r=n/1e3;if(r<1e3)t=r.toFixed(1)+" MB";else{var o=r/1e3;t=o.toFixed(1)+" GB"}}return t},getFileLength:function(e){var t=0;if(e)if(e.files)e.files.length>0&&(t=e.files[0].size);else if(e.select&&"ActiveXObject"in window){e.select();var n=new ActiveXObject("Scripting.FileSystemObject"),e=n.GetFile(e.value);t=e.Size}return t},hasFlash:c,trim:function(e){return e="string"==typeof e?e:"",e.trim?e.trim():e.replace(/^\s|\s$/g,"")},parseEmoji:function(e){if(void 0===WebIM.Emoji||void 0===WebIM.Emoji.map)return e;var t=WebIM.Emoji;for(var n in t.map)if(t.map.hasOwnProperty(n))for(;e.indexOf(n)>-1;)e=e.replace(n,'<img class="emoji" src="'+t.path+t.map[n]+'" />');return e},parseLink:function(e){var t=/(https?\:\/\/|www\.)([a-zA-Z0-9-]+(\.[a-zA-Z0-9]+)+)(\:[0-9]{2,4})?\/?((\.[:_0-9a-zA-Z-]+)|[:_0-9a-zA-Z-]*\/?)*\??[:_#@*&%0-9a-zA-Z-\/=]*/gm;return e=e.replace(t,function(e){return"<a href='"+(/^https?/gm.test(e)?e:"//"+e)+"' target='_blank'>"+e+"</a>"})},parseJSON:function(e){if(window.JSON&&window.JSON.parse)return window.JSON.parse(e+"");var t,n=null,r=v.trim(e+"");return r&&!v.trim(r.replace(/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g,function(e,r,o,i){return t&&r&&(n=0),0===n?e:(t=o||r,n+=!i-!o,"")}))?Function("return "+r)():Function("Invalid JSON: "+e)()},parseUploadResponse:function(e){return e.indexOf("callback")>-1?e.slice(9,-1):e},parseDownloadResponse:function(e){return e&&e.type&&"application/json"===e.type||0>Object.prototype.toString.call(e).indexOf("Blob")?this.url+"?token=":window.URL.createObjectURL(e)},uploadFile:function(t){var t=t||{};t.onFileUploadProgress=t.onFileUploadProgress||e,t.onFileUploadComplete=t.onFileUploadComplete||e,t.onFileUploadError=t.onFileUploadError||e,t.onFileUploadCanceled=t.onFileUploadCanceled||e;var n=t.accessToken||this.context.accessToken;if(!n)return void t.onFileUploadError({type:o.WEBIM_UPLOADFILE_NO_LOGIN,id:t.id});var r,i,a,s=t.appKey||this.context.appKey||"";if(s&&(a=s.split("#"),r=a[0],i=a[1]),!r&&!i)return void t.onFileUploadError({type:o.WEBIM_UPLOADFILE_ERROR,id:t.id});var c=t.apiUrl,u=c+"/"+r+"/"+i+"/chatfiles";if(!v.isCanUploadFileAsync)return void(v.hasFlash&&"function"==typeof t.flashUpload?t.flashUpload&&t.flashUpload(u,t):t.onFileUploadError({type:o.WEBIM_UPLOADFILE_BROWSER_ERROR,id:t.id}));var l=t.file.data?t.file.data.size:void 0;if(l>10485760)return void t.onFileUploadError({type:o.WEBIM_UPLOADFILE_ERROR,id:t.id});if(l<=0)return void t.onFileUploadError({type:o.WEBIM_UPLOADFILE_ERROR,id:t.id});var p=v.xmlrequest(),d=function(e){t.onFileUploadError({type:o.WEBIM_UPLOADFILE_ERROR,id:t.id,xhr:p})};p.upload&&p.upload.addEventListener("progress",t.onFileUploadProgress,!1),p.addEventListener?(p.addEventListener("abort",t.onFileUploadCanceled,!1),p.addEventListener("load",function(e){try{var n=v.parseJSON(p.responseText);try{t.onFileUploadComplete(n)}catch(e){t.onFileUploadError({type:o.WEBIM_CONNCTION_CALLBACK_INNER_ERROR,data:e})}}catch(e){t.onFileUploadError({type:o.WEBIM_UPLOADFILE_ERROR,data:p.responseText,id:t.id,xhr:p})}},!1),p.addEventListener("error",d,!1)):p.onreadystatechange&&(p.onreadystatechange=function(){if(4===p.readyState)if(200===ajax.status)try{var e=v.parseJSON(p.responseText);t.onFileUploadComplete(e)}catch(e){t.onFileUploadError({type:o.WEBIM_UPLOADFILE_ERROR,data:p.responseText,id:t.id,xhr:p})}else t.onFileUploadError({type:o.WEBIM_UPLOADFILE_ERROR,data:p.responseText,id:t.id,xhr:p});else p.abort(),t.onFileUploadCanceled()}),p.open("POST",u),p.setRequestHeader("restrict-access","true"),p.setRequestHeader("Accept","*/*"),p.setRequestHeader("Authorization","Bearer "+n);var f=new FormData;f.append("file",t.file.data),window.XDomainRequest&&(p.readyState=2),p.send(f)},download:function(t){t.onFileDownloadComplete=t.onFileDownloadComplete||e,t.onFileDownloadError=t.onFileDownloadError||e;var n=t.accessToken||this.context.accessToken;if(!n)return void t.onFileDownloadError({type:o.WEBIM_DOWNLOADFILE_NO_LOGIN,id:t.id});var r=function(e){t.onFileDownloadError({type:o.WEBIM_DOWNLOADFILE_ERROR,id:t.id,xhr:i})};if(!v.isCanDownLoadFile)return void t.onFileDownloadComplete();var i=v.xmlrequest();"addEventListener"in i?(i.addEventListener("load",function(e){t.onFileDownloadComplete(i.response,i)},!1),i.addEventListener("error",r,!1)):"onreadystatechange"in i&&(i.onreadystatechange=function(){4===i.readyState?200===ajax.status?t.onFileDownloadComplete(i.response,i):t.onFileDownloadError({type:o.WEBIM_DOWNLOADFILE_ERROR,id:t.id,xhr:i}):(i.abort(),t.onFileDownloadError({type:o.WEBIM_DOWNLOADFILE_ERROR,id:t.id,xhr:i}))});var a=t.method||"GET",s=t.responseType||"blob",c=t.mimeType||"text/plain; charset=x-user-defined";i.open(a,t.url),"undefined"!=typeof Blob?i.responseType=s:i.overrideMimeType(c);var u={"X-Requested-With":"XMLHttpRequest",Accept:"application/octet-stream","share-secret":t.secret,Authorization:"Bearer "+n},l=t.headers||{};for(var p in l)u[p]=l[p];for(var p in u)u[p]&&i.setRequestHeader(p,u[p]);window.XDomainRequest&&(i.readyState=2),i.send(null)},parseTextMessage:function(e,t){if("string"==typeof e){if("[object Object]"!==Object.prototype.toString.call(t))return{isemoji:!1,body:[{type:"txt",data:e}]};var n=e,r=[],o=/\[[^[\]]{2,3}\]/gm,i=n.match(o);if(!i||i.length<1)return{isemoji:!1,body:[{type:"txt",data:e}]};for(var a=!1,s=0;s<i.length;s++){var c=n.substring(0,n.indexOf(i[s])),u=WebIM.Emoji.map[i[s]];if(c&&r.push({type:"txt",data:c}),u){var l=WebIM.Emoji.map?WebIM.Emoji.path+u:null;l?(a=!0,r.push({type:"emoji",data:l})):r.push({type:"txt",data:i[s]});var p=n.indexOf(i[s])+i[s].length;n=n.substring(p)}else r.push({type:"txt",data:i[s]})}return n&&r.push({type:"txt",data:n}),a?{isemoji:a,body:r}:{isemoji:!1,body:[{type:"txt",data:e}]}}},parseUri:function(){var e=/([^\?|&])\w+=([^&]+)/g,t={};if(window.location.search){var n=window.location.search.match(e);for(var r in n){var o=n[r],i=o.indexOf("="),a=o.substr(0,i),s=o.substr(i+1);t[a]=s}}return t},parseHrefHash:function(){var e=/([^\#|&])\w+=([^&]+)/g,t={};if(window.location.hash){var n=window.location.hash.match(e);for(var r in n){var o=n[r],i=o.indexOf("="),a=o.substr(0,i),s=o.substr(i+1);t[a]=s}}return t},xmlrequest:s,getXmlFirstChild:function(e,t){var n=e.getElementsByTagName(t);return 0==n.length?null:n[0]},ajax:function(t){var n=t.dataType||"text",r=t.success||e,i=t.error||e,a=v.xmlrequest();a.onreadystatechange=function(){if(4===a.readyState){if(200===(a.status||0)){try{switch(n){case"text":return void r(a.responseText);case"json":var e=v.parseJSON(a.responseText);return void r(e,a);case"xml":return void(a.responseXML&&a.responseXML.documentElement?r(a.responseXML.documentElement,a):i({type:o.WEBIM_CONNCTION_AJAX_ERROR,data:a.responseText}))}r(a.response||a.responseText,a)}catch(e){i({type:o.WEBIM_CONNCTION_AJAX_ERROR,data:e})}return}return void i({type:o.WEBIM_CONNCTION_AJAX_ERROR,data:a.responseText})}0===a.readyState&&i({type:o.WEBIM_CONNCTION_AJAX_ERROR,data:a.responseText})},t.responseType&&a.responseType&&(a.responseType=t.responseType),t.mimeType&&v.hasOverrideMimeType&&a.overrideMimeType(t.mimeType);var s=t.type||"POST",c=t.data||null,u="";if("get"===s.toLowerCase()&&c){for(var l in c)c.hasOwnProperty(l)&&(u+=l+"="+c[l]+"&");u=u?u.slice(0,-1):u,t.url+=(t.url.indexOf("?")>0?"&":"?")+(u?u+"&":u)+"_v="+(new Date).getTime(),c=null,u=null}if(a.open(s,t.url,v.isCanSetRequestHeader),v.isCanSetRequestHeader){var p=t.headers||{};for(var d in p)p.hasOwnProperty(d)&&a.setRequestHeader(d,p[d])}return window.XDomainRequest&&(a.readyState=2),a.send(c),a},ts:function(){var e=new Date,t=e.getHours(),n=e.getMinutes(),r=e.getSeconds(),o=e.getMilliseconds();return(t<10?"0"+t:t)+":"+(n<10?"0"+n:n)+":"+(r<10?"0"+r:r)+":"+o+" "},getObjectKey:function(e,t){for(var n in e)if(e[n]==t)return n;return""},sprintf:function(){var e,t,n=arguments,r=n[0]||"";for(e=1,t=n.length;e<t;e++)r=r.replace(/%s/,n[e]);return r},setCookie:function(e,t,n){var r=e+"="+encodeURIComponent(t);"number"==typeof n&&(r+="; max-age: "+60*n*60*24),document.cookie=r},getCookie:function(){var e={},t=document.cookie;if(""===t)return e;for(var n=t.split("; "),r=0;r<n.length;r++){var o=n[r],i=o.indexOf("="),a=o.substring(0,i),s=o.substring(i+1);s=decodeURIComponent(s),e[a]=s}return e}};t.utils=v}()},207:function(e,t){!function(){t.code={WEBIM_CONNCTION_USER_NOT_ASSIGN_ERROR:0,WEBIM_CONNCTION_OPEN_ERROR:1,WEBIM_CONNCTION_AUTH_ERROR:2,WEBIM_CONNCTION_OPEN_USERGRID_ERROR:3,WEBIM_CONNCTION_ATTACH_ERROR:4,WEBIM_CONNCTION_ATTACH_USERGRID_ERROR:5,WEBIM_CONNCTION_REOPEN_ERROR:6,WEBIM_CONNCTION_SERVER_CLOSE_ERROR:7,WEBIM_CONNCTION_SERVER_ERROR:8,WEBIM_CONNCTION_IQ_ERROR:9,WEBIM_CONNCTION_PING_ERROR:10,WEBIM_CONNCTION_NOTIFYVERSION_ERROR:11,WEBIM_CONNCTION_GETROSTER_ERROR:12,WEBIM_CONNCTION_CROSSDOMAIN_ERROR:13,WEBIM_CONNCTION_LISTENING_OUTOF_MAXRETRIES:14,WEBIM_CONNCTION_RECEIVEMSG_CONTENTERROR:15,WEBIM_CONNCTION_DISCONNECTED:16,WEBIM_CONNCTION_AJAX_ERROR:17,WEBIM_CONNCTION_JOINROOM_ERROR:18,WEBIM_CONNCTION_GETROOM_ERROR:19,WEBIM_CONNCTION_GETROOMINFO_ERROR:20,WEBIM_CONNCTION_GETROOMMEMBER_ERROR:21,WEBIM_CONNCTION_GETROOMOCCUPANTS_ERROR:22,WEBIM_CONNCTION_LOAD_CHATROOM_ERROR:23,WEBIM_CONNCTION_NOT_SUPPORT_CHATROOM_ERROR:24,WEBIM_CONNCTION_JOINCHATROOM_ERROR:25,WEBIM_CONNCTION_QUITCHATROOM_ERROR:26,WEBIM_CONNCTION_APPKEY_NOT_ASSIGN_ERROR:27,WEBIM_CONNCTION_TOKEN_NOT_ASSIGN_ERROR:28,WEBIM_CONNCTION_SESSIONID_NOT_ASSIGN_ERROR:29,WEBIM_CONNCTION_RID_NOT_ASSIGN_ERROR:30,WEBIM_CONNCTION_CALLBACK_INNER_ERROR:31,WEBIM_CONNCTION_CLIENT_OFFLINE:32,WEBIM_CONNCTION_CLIENT_LOGOUT:33,WEBIM_CONNCTION_CLIENT_TOO_MUCH_ERROR:34,WEBIM_CONNECTION_ACCEPT_INVITATION_FROM_GROUP:35,WEBIM_CONNECTION_DECLINE_INVITATION_FROM_GROUP:36,WEBIM_CONNECTION_ACCEPT_JOIN_GROUP:37,WEBIM_CONNECTION_DECLINE_JOIN_GROUP:38,WEBIM_CONNECTION_CLOSED:39,WEBIM_UPLOADFILE_BROWSER_ERROR:100,WEBIM_UPLOADFILE_ERROR:101,WEBIM_UPLOADFILE_NO_LOGIN:102,WEBIM_UPLOADFILE_NO_FILE:103,WEBIM_DOWNLOADFILE_ERROR:200,WEBIM_DOWNLOADFILE_NO_LOGIN:201,WEBIM_DOWNLOADFILE_BROWSER_ERROR:202,WEBIM_MESSAGE_REC_TEXT:300,WEBIM_MESSAGE_REC_TEXT_ERROR:301,WEBIM_MESSAGE_REC_EMOTION:302,WEBIM_MESSAGE_REC_PHOTO:303,WEBIM_MESSAGE_REC_AUDIO:304,WEBIM_MESSAGE_REC_AUDIO_FILE:305,WEBIM_MESSAGE_REC_VEDIO:306,WEBIM_MESSAGE_REC_VEDIO_FILE:307,WEBIM_MESSAGE_REC_FILE:308,WEBIM_MESSAGE_SED_TEXT:309,WEBIM_MESSAGE_SED_EMOTION:310,WEBIM_MESSAGE_SED_PHOTO:311,WEBIM_MESSAGE_SED_AUDIO:312,WEBIM_MESSAGE_SED_AUDIO_FILE:313,WEBIM_MESSAGE_SED_VEDIO:314,WEBIM_MESSAGE_SED_VEDIO_FILE:315,WEBIM_MESSAGE_SED_FILE:316,WEBIM_MESSAGE_SED_ERROR:317,STATUS_INIT:400,STATUS_DOLOGIN_USERGRID:401,STATUS_DOLOGIN_IM:402,STATUS_OPENED:403,STATUS_CLOSING:404,STATUS_CLOSED:405,STATUS_ERROR:406}}()},211:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244))}(0,function(e){return e})},212:function(e,t,n){!function(n,r){e.exports=t=r()}(0,function(){var e=e||function(e,t){var n=_create2.default||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},o=r.lib={},i=o.Base=function(){return{extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=o.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i<o;i++){var a=n[i>>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var i=0;i<o;i+=4)t[r+i>>>2]=n[i>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=0;o<t;o+=4){var i=function(t){var t=t,n=987654321,r=4294967295;return function(){n=36969*(65535&n)+(n>>16)&r,t=18e3*(65535&t)+(t>>16)&r;var o=(n<<16)+t&r;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}}(4294967296*(n||e.random()));n=987654071*i(),r.push(4294967296*i()|0)}return new a.init(r,t)}}),s=r.enc={},c=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o++){var i=t[o>>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},p=o.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,i=this.blockSize,s=4*i,c=o/s;c=t?e.ceil(c):e.max((0|c)-this._minBufferSize,0);var u=c*i,l=e.min(4*u,o);if(u){for(var p=0;p<u;p+=i)this._doProcessBlock(r,p);var d=r.splice(0,u);n.sigBytes-=l}return new a.init(d,l)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),d=(o.Hasher=p.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}}),r.algo={});return r}(Math);return e})},213:function(e,t,n){!function(r,o){e.exports=t=o(n(212))}(0,function(e){return function(t){var n=e,r=n.lib,o=r.Base,i=r.WordArray,a=n.x64={};a.Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var o=e[r];n.push(o.high),n.push(o.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=o.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}})}(),e})},214:function(e,t,n){!function(r,o){e.exports=t=o(n(212))}(0,function(e){return function(){if("function"==typeof ArrayBuffer){var t=e,n=t.lib,r=n.WordArray,o=r.init;(r.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,n=[],r=0;r<t;r++)n[r>>>2]|=e[r]<<24-r%4*8;o.call(this,n,t)}else o.apply(this,arguments)}).prototype=r}}(),e.lib.WordArray})},215:function(e,t,n){!function(r,o){e.exports=t=o(n(212))}(0,function(e){return function(){function t(e){return e<<8&4278255360|e>>>8&16711935}var n=e,r=n.lib,o=r.WordArray,i=n.enc;i.Utf16=i.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var i=t[o>>>2]>>>16-o%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>1]|=e.charCodeAt(r)<<16-r%2*16;return o.create(n,2*t)}};i.Utf16LE={stringify:function(e){for(var n=e.words,r=e.sigBytes,o=[],i=0;i<r;i+=2){var a=t(n[i>>>2]>>>16-i%4*8&65535);o.push(String.fromCharCode(a))}return o.join("")},parse:function(e){for(var n=e.length,r=[],i=0;i<n;i++)r[i>>>1]|=t(e.charCodeAt(i)<<16-i%2*16);return o.create(r,2*n)}}}(),e.enc.Utf16})},216:function(e,t,n){!function(r,o){e.exports=t=o(n(212))}(0,function(e){return function(){function t(e,t,n){for(var r=[],i=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,c=n[e.charCodeAt(a)]>>>6-a%4*2;r[i>>>2]|=(s|c)<<24-i%4*8,i++}return o.create(r,i)}var n=e,r=n.lib,o=r.WordArray,i=n.enc;i.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i<n;i+=3)for(var a=t[i>>>2]>>>24-i%4*8&255,s=t[i+1>>>2]>>>24-(i+1)%4*8&255,c=t[i+2>>>2]>>>24-(i+2)%4*8&255,u=a<<16|s<<8|c,l=0;l<4&&i+.75*l<n;l++)o.push(r.charAt(u>>>6*(3-l)&63));var p=r.charAt(64);if(p)for(;o.length%4;)o.push(p);return o.join("")},parse:function(e){var n=e.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i<r.length;i++)o[r.charCodeAt(i)]=i}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(n=s)}return t(e,n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64})},217:function(e,t,n){!function(r,o){e.exports=t=o(n(212))}(0,function(e){return function(t){function n(e,t,n,r,o,i,a){var s=e+(t&n|~t&r)+o+a;return(s<<i|s>>>32-i)+t}function r(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+o+a;return(s<<i|s>>>32-i)+t}function o(e,t,n,r,o,i,a){var s=e+(t^n^r)+o+a;return(s<<i|s>>>32-i)+t}function i(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+o+a;return(s<<i|s>>>32-i)+t}var a=e,s=a.lib,c=s.WordArray,u=s.Hasher,l=a.algo,p=[];!function(){for(var e=0;e<64;e++)p[e]=4294967296*t.abs(t.sin(e+1))|0}();var d=l.MD5=u.extend({_doReset:function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var a=0;a<16;a++){var s=t+a,c=e[s];e[s]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}var u=this._hash.words,l=e[t+0],d=e[t+1],f=e[t+2],h=e[t+3],m=e[t+4],g=e[t+5],v=e[t+6],y=e[t+7],_=e[t+8],b=e[t+9],C=e[t+10],E=e[t+11],T=e[t+12],w=e[t+13],S=e[t+14],x=e[t+15],I=u[0],R=u[1],O=u[2],N=u[3];I=n(I,R,O,N,l,7,p[0]),N=n(N,I,R,O,d,12,p[1]),O=n(O,N,I,R,f,17,p[2]),R=n(R,O,N,I,h,22,p[3]),I=n(I,R,O,N,m,7,p[4]),N=n(N,I,R,O,g,12,p[5]),O=n(O,N,I,R,v,17,p[6]),R=n(R,O,N,I,y,22,p[7]),I=n(I,R,O,N,_,7,p[8]),N=n(N,I,R,O,b,12,p[9]),O=n(O,N,I,R,C,17,p[10]),R=n(R,O,N,I,E,22,p[11]),I=n(I,R,O,N,T,7,p[12]),N=n(N,I,R,O,w,12,p[13]),O=n(O,N,I,R,S,17,p[14]),R=n(R,O,N,I,x,22,p[15]),I=r(I,R,O,N,d,5,p[16]),N=r(N,I,R,O,v,9,p[17]),O=r(O,N,I,R,E,14,p[18]),R=r(R,O,N,I,l,20,p[19]),I=r(I,R,O,N,g,5,p[20]),N=r(N,I,R,O,C,9,p[21]),O=r(O,N,I,R,x,14,p[22]),R=r(R,O,N,I,m,20,p[23]),I=r(I,R,O,N,b,5,p[24]),N=r(N,I,R,O,S,9,p[25]),O=r(O,N,I,R,h,14,p[26]),R=r(R,O,N,I,_,20,p[27]),I=r(I,R,O,N,w,5,p[28]),N=r(N,I,R,O,f,9,p[29]),O=r(O,N,I,R,y,14,p[30]),R=r(R,O,N,I,T,20,p[31]),I=o(I,R,O,N,g,4,p[32]),N=o(N,I,R,O,_,11,p[33]),O=o(O,N,I,R,E,16,p[34]),R=o(R,O,N,I,S,23,p[35]),I=o(I,R,O,N,d,4,p[36]),N=o(N,I,R,O,m,11,p[37]),O=o(O,N,I,R,y,16,p[38]),R=o(R,O,N,I,C,23,p[39]),I=o(I,R,O,N,w,4,p[40]),N=o(N,I,R,O,l,11,p[41]),O=o(O,N,I,R,h,16,p[42]),R=o(R,O,N,I,v,23,p[43]),I=o(I,R,O,N,b,4,p[44]),N=o(N,I,R,O,T,11,p[45]),O=o(O,N,I,R,x,16,p[46]),R=o(R,O,N,I,f,23,p[47]),I=i(I,R,O,N,l,6,p[48]),N=i(N,I,R,O,y,10,p[49]),O=i(O,N,I,R,S,15,p[50]),R=i(R,O,N,I,g,21,p[51]),I=i(I,R,O,N,T,6,p[52]),N=i(N,I,R,O,h,10,p[53]),O=i(O,N,I,R,C,15,p[54]),R=i(R,O,N,I,d,21,p[55]),I=i(I,R,O,N,_,6,p[56]),N=i(N,I,R,O,x,10,p[57]),O=i(O,N,I,R,v,15,p[58]),R=i(R,O,N,I,w,21,p[59]),I=i(I,R,O,N,m,6,p[60]),N=i(N,I,R,O,E,10,p[61]),O=i(O,N,I,R,f,15,p[62]),R=i(R,O,N,I,b,21,p[63]),u[0]=u[0]+I|0,u[1]=u[1]+R|0,u[2]=u[2]+O|0,u[3]=u[3]+N|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var i=t.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=u.clone.call(this);return e._hash=this._hash.clone(),e}});a.MD5=u._createHelper(d),a.HmacMD5=u._createHmacHelper(d)}(Math),e.MD5})},218:function(e,t,n){!function(r,o){e.exports=t=o(n(212))}(0,function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=n.Hasher,i=t.algo,a=[],s=i.SHA1=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],s=n[3],c=n[4],u=0;u<80;u++){if(u<16)a[u]=0|e[t+u];else{var l=a[u-3]^a[u-8]^a[u-14]^a[u-16];a[u]=l<<1|l>>>31}var p=(r<<5|r>>>27)+c+a[u];p+=u<20?1518500249+(o&i|~o&s):u<40?1859775393+(o^i^s):u<60?(o&i|o&s|i&s)-1894007588:(o^i^s)-899497514,c=s,s=i,i=o<<30|o>>>2,o=r,r=p}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA1=o._createHelper(s),t.HmacSHA1=o._createHmacHelper(s)}(),e.SHA1})},219:function(e,t,n){!function(r,o){e.exports=t=o(n(212))}(0,function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.algo,s=[],c=[];!function(){function e(e){return 4294967296*(e-(0|e))|0}for(var n=2,r=0;r<64;)(function(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0})(n)&&(r<8&&(s[r]=e(t.pow(n,.5))),c[r]=e(t.pow(n,1/3)),r++),n++}();var u=[],l=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],l=n[5],p=n[6],d=n[7],f=0;f<64;f++){if(f<16)u[f]=0|e[t+f];else{var h=u[f-15],m=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,g=u[f-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;u[f]=m+u[f-7]+v+u[f-16]}var y=s&l^~s&p,_=r&o^r&i^o&i,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),C=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),E=d+C+y+c[f]+u[f],T=b+_;d=p,p=l,l=s,s=a+E|0,a=i,i=o,o=r,r=E+T|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+p|0,n[7]=n[7]+d|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=t.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=i._createHelper(l),n.HmacSHA256=i._createHmacHelper(l)}(Math),e.SHA256})},220:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(219))}(0,function(e){return function(){var t=e,n=t.lib,r=n.WordArray,o=t.algo,i=o.SHA256,a=o.SHA224=i.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}});t.SHA224=i._createHelper(a),t.HmacSHA224=i._createHmacHelper(a)}(),e.SHA224})},221:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(213))}(0,function(e){return function(){function t(){return a.create.apply(a,arguments)}var n=e,r=n.lib,o=r.Hasher,i=n.x64,a=i.Word,s=i.WordArray,c=n.algo,u=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=t()}();var p=c.SHA512=o.extend({_doReset:function(){this._hash=new s.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],o=n[1],i=n[2],a=n[3],s=n[4],c=n[5],p=n[6],d=n[7],f=r.high,h=r.low,m=o.high,g=o.low,v=i.high,y=i.low,_=a.high,b=a.low,C=s.high,E=s.low,T=c.high,w=c.low,S=p.high,x=p.low,I=d.high,R=d.low,O=f,N=h,k=m,M=g,P=v,A=y,D=_,B=b,j=C,U=E,L=T,F=w,W=S,H=x,G=I,V=R,q=0;q<80;q++){var z=l[q];if(q<16)var K=z.high=0|e[t+2*q],J=z.low=0|e[t+2*q+1];else{var Y=l[q-15],X=Y.high,$=Y.low,Q=(X>>>1|$<<31)^(X>>>8|$<<24)^X>>>7,Z=($>>>1|X<<31)^($>>>8|X<<24)^($>>>7|X<<25),ee=l[q-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,oe=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=l[q-7],ae=ie.high,se=ie.low,ce=l[q-16],ue=ce.high,le=ce.low,J=Z+se,K=Q+ae+(J>>>0<Z>>>0?1:0),J=J+oe,K=K+re+(J>>>0<oe>>>0?1:0),J=J+le,K=K+ue+(J>>>0<le>>>0?1:0);z.high=K,z.low=J}var pe=j&L^~j&W,de=U&F^~U&H,fe=O&k^O&P^k&P,he=N&M^N&A^M&A,me=(O>>>28|N<<4)^(O<<30|N>>>2)^(O<<25|N>>>7),ge=(N>>>28|O<<4)^(N<<30|O>>>2)^(N<<25|O>>>7),ve=(j>>>14|U<<18)^(j>>>18|U<<14)^(j<<23|U>>>9),ye=(U>>>14|j<<18)^(U>>>18|j<<14)^(U<<23|j>>>9),_e=u[q],be=_e.high,Ce=_e.low,Ee=V+ye,Te=G+ve+(Ee>>>0<V>>>0?1:0),Ee=Ee+de,Te=Te+pe+(Ee>>>0<de>>>0?1:0),Ee=Ee+Ce,Te=Te+be+(Ee>>>0<Ce>>>0?1:0),Ee=Ee+J,Te=Te+K+(Ee>>>0<J>>>0?1:0),we=ge+he,Se=me+fe+(we>>>0<ge>>>0?1:0);G=W,V=H,W=L,H=F,L=j,F=U,U=B+Ee|0,j=D+Te+(U>>>0<B>>>0?1:0)|0,D=P,B=A,P=k,A=M,k=O,M=N,N=Ee+we|0,O=Te+Se+(N>>>0<Ee>>>0?1:0)|0}h=r.low=h+N,r.high=f+O+(h>>>0<N>>>0?1:0),g=o.low=g+M,o.high=m+k+(g>>>0<M>>>0?1:0),y=i.low=y+A,i.high=v+P+(y>>>0<A>>>0?1:0),b=a.low=b+B,a.high=_+D+(b>>>0<B>>>0?1:0),E=s.low=E+U,s.high=C+j+(E>>>0<U>>>0?1:0),w=c.low=w+F,c.high=T+L+(w>>>0<F>>>0?1:0),x=p.low=x+H,p.high=S+W+(x>>>0<H>>>0?1:0),R=d.low=R+V,d.high=I+G+(R>>>0<V>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});n.SHA512=o._createHelper(p),n.HmacSHA512=o._createHmacHelper(p)}(),e.SHA512})},222:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(213),n(221))}(0,function(e){return function(){var t=e,n=t.x64,r=n.Word,o=n.WordArray,i=t.algo,a=i.SHA512,s=i.SHA384=a.extend({_doReset:function(){this._hash=new o.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});t.SHA384=a._createHelper(s),t.HmacSHA384=a._createHmacHelper(s)}(),e.SHA384})},223:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(213))}(0,function(e){return function(t){var n=e,r=n.lib,o=r.WordArray,i=r.Hasher,a=n.x64,s=a.Word,c=n.algo,u=[],l=[],p=[];!function(){for(var e=1,t=0,n=0;n<24;n++){u[e+5*t]=(n+1)*(n+2)/2%64;var r=t%5,o=(2*e+3*t)%5;e=r,t=o}for(var e=0;e<5;e++)for(var t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,a=0;a<24;a++){for(var c=0,d=0,f=0;f<7;f++){if(1&i){var h=(1<<f)-1;h<32?d^=1<<h:c^=1<<h-32}128&i?i=i<<1^113:i<<=1}p[a]=s.create(c,d)}}();var d=[];!function(){for(var e=0;e<25;e++)d[e]=s.create()}();var f=c.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,o=0;o<r;o++){var i=e[t+2*o],a=e[t+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var s=n[o];s.high^=a,s.low^=i}for(var c=0;c<24;c++){for(var f=0;f<5;f++){for(var h=0,m=0,g=0;g<5;g++){var s=n[f+5*g];h^=s.high,m^=s.low}var v=d[f];v.high=h,v.low=m}for(var f=0;f<5;f++)for(var y=d[(f+4)%5],_=d[(f+1)%5],b=_.high,C=_.low,h=y.high^(b<<1|C>>>31),m=y.low^(C<<1|b>>>31),g=0;g<5;g++){var s=n[f+5*g];s.high^=h,s.low^=m}for(var E=1;E<25;E++){var s=n[E],T=s.high,w=s.low,S=u[E];if(S<32)var h=T<<S|w>>>32-S,m=w<<S|T>>>32-S;else var h=w<<S-32|T>>>64-S,m=T<<S-32|w>>>64-S;var x=d[l[E]];x.high=h,x.low=m}var I=d[0],R=n[0];I.high=R.high,I.low=R.low;for(var f=0;f<5;f++)for(var g=0;g<5;g++){var E=f+5*g,s=n[E],O=d[E],N=d[(f+1)%5+5*g],k=d[(f+2)%5+5*g];s.high=O.high^~N.high&k.high,s.low=O.low^~N.low&k.low}var s=n[0],M=p[c];s.high^=M.high,s.low^=M.low}},_doFinalize:function(){var e=this._data,n=e.words,r=(this._nDataBytes,8*e.sigBytes),i=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/i)*i>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,c=s/8,u=[],l=0;l<c;l++){var p=a[l],d=p.high,f=p.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),u.push(f),u.push(d)}return new o.init(u,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=i._createHelper(f),n.HmacSHA3=i._createHmacHelper(f)}(Math),e.SHA3})},224:function(e,t,n){!function(r,o){e.exports=t=o(n(212))}(0,function(e){/** @preserve
(c) 2012 by Cédric Mesnil. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
return function(t){function n(e,t,n){return e^t^n}function r(e,t,n){return e&t|~e&n}function o(e,t,n){return(e|~t)^n}function i(e,t,n){return e&n|t&~n}function a(e,t,n){return e^(t|~n)}function s(e,t){return e<<t|e>>>32-t}var c=e,u=c.lib,l=u.WordArray,p=u.Hasher,d=c.algo,f=l.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),h=l.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),m=l.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),g=l.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),v=l.create([0,1518500249,1859775393,2400959708,2840853838]),y=l.create([1352829926,1548603684,1836072691,2053994217,0]),_=d.RIPEMD160=p.extend({_doReset:function(){this._hash=l.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var c=0;c<16;c++){var u=t+c,l=e[u];e[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}var p,d,_,b,C,E,T,w,S,x,I=this._hash.words,R=v.words,O=y.words,N=f.words,k=h.words,M=m.words,P=g.words;E=p=I[0],T=d=I[1],w=_=I[2],S=b=I[3],x=C=I[4];for(var A,c=0;c<80;c+=1)A=p+e[t+N[c]]|0,A+=c<16?n(d,_,b)+R[0]:c<32?r(d,_,b)+R[1]:c<48?o(d,_,b)+R[2]:c<64?i(d,_,b)+R[3]:a(d,_,b)+R[4],A|=0,A=s(A,M[c]),A=A+C|0,p=C,C=b,b=s(_,10),_=d,d=A,A=E+e[t+k[c]]|0,A+=c<16?a(T,w,S)+O[0]:c<32?i(T,w,S)+O[1]:c<48?o(T,w,S)+O[2]:c<64?r(T,w,S)+O[3]:n(T,w,S)+O[4],A|=0,A=s(A,P[c]),A=A+x|0,E=x,x=S,S=s(w,10),w=T,T=A;A=I[1]+_+S|0,I[1]=I[2]+b+x|0,I[2]=I[3]+C+E|0,I[3]=I[4]+p+T|0,I[4]=I[0]+d+w|0,I[0]=A},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var s=i[a];i[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var e=p.clone.call(this);return e._hash=this._hash.clone(),e}});c.RIPEMD160=p._createHelper(_),c.HmacRIPEMD160=p._createHmacHelper(_)}(Math),e.RIPEMD160})},225:function(e,t,n){!function(r,o){e.exports=t=o(n(212))}(0,function(e){!function(){var t=e,n=t.lib,r=n.Base,o=t.enc,i=o.Utf8,a=t.algo;a.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,c=a.words,u=0;u<n;u++)s[u]^=1549556828,c[u]^=909522486;o.sigBytes=a.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}()})},226:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(218),n(225))}(0,function(e){return function(){var t=e,n=t.lib,r=n.Base,o=n.WordArray,i=t.algo,a=i.SHA1,s=i.HMAC,c=i.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=s.create(n.hasher,e),i=o.create(),a=o.create([1]),c=i.words,u=a.words,l=n.keySize,p=n.iterations;c.length<l;){var d=r.update(t).finalize(a);r.reset();for(var f=d.words,h=f.length,m=d,g=1;g<p;g++){m=r.finalize(m),r.reset();for(var v=m.words,y=0;y<h;y++)f[y]^=v[y]}i.concat(d),u[0]++}return i.sigBytes=4*l,i}});t.PBKDF2=function(e,t,n){return c.create(n).compute(e,t)}}(),e.PBKDF2})},227:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(218),n(225))}(0,function(e){return function(){var t=e,n=t.lib,r=n.Base,o=n.WordArray,i=t.algo,a=i.MD5,s=i.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=n.hasher.create(),i=o.create(),a=i.words,s=n.keySize,c=n.iterations;a.length<s;){u&&r.update(u);var u=r.update(e).finalize(t);r.reset();for(var l=1;l<c;l++)u=r.finalize(u),r.reset();i.concat(u)}return i.sigBytes=4*s,i}});t.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}}(),e.EvpKDF})},228:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(227))}(0,function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,o=r.Base,i=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc,c=(s.Utf8,s.Base64),u=n.algo,l=u.EvpKDF,p=r.Cipher=a.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?T:b}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()}),d=(r.StreamCipher=p.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),n.mode={}),f=r.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=d.CBC=function(){function e(e,n,r){var o=this._iv;if(o){var i=o;this._iv=t}else var i=this._prevBlock;for(var a=0;a<r;a++)e[n+a]^=i[a]}var n=f.extend();return n.Encryptor=n.extend({processBlock:function(t,n){var r=this._cipher,o=r.blockSize;e.call(this,t,n,o),r.encryptBlock(t,n),this._prevBlock=t.slice(n,n+o)}}),n.Decryptor=n.extend({processBlock:function(t,n){var r=this._cipher,o=r.blockSize,i=t.slice(n,n+o);r.decryptBlock(t,n),e.call(this,t,n,o),this._prevBlock=i}}),n}(),m=n.pad={},g=m.Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(o);var c=i.create(a,r);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},v=(r.BlockCipher=p.extend({cfg:p.cfg.extend({mode:h,padding:g}),reset:function(){p.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var r=n.createEncryptor;else{var r=n.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==r?this._mode.init(this,t&&t.words):(this._mode=r.call(n,this,t&&t.words),this._mode.__creator=r)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),y=n.format={},_=y.OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;if(n)var r=i.create([1398893684,1701076831]).concat(n).concat(t);else var r=t;return r.toString(c)},parse:function(e){var t=c.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var r=i.create(n.slice(2,4));n.splice(0,4),t.sigBytes-=16}return v.create({ciphertext:t,salt:r})}},b=r.SerializableCipher=o.extend({cfg:o.extend({format:_}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),i=o.finalize(t),a=o.cfg;return v.create({ciphertext:i,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),C=n.kdf={},E=C.OpenSSL={execute:function(e,t,n,r){r||(r=i.random(8));var o=l.create({keySize:t+n}).compute(e,r),a=i.create(o.words.slice(t),4*n);return o.sigBytes=4*t,v.create({key:o,iv:a,salt:r})}},T=r.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:E}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=r.kdf.execute(n,e.keySize,e.ivSize);r.iv=o.iv;var i=b.encrypt.call(this,e,t,o.key,r);return i.mixIn(o),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=o.iv,b.decrypt.call(this,e,t,o.key,r)}})}()})},229:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(228))}(0,function(e){return e.mode.CFB=function(){function t(e,t,n,r){var o=this._iv;if(o){var i=o.slice(0);this._iv=void 0}else var i=this._prevBlock;r.encryptBlock(i,0);for(var a=0;a<n;a++)e[t+a]^=i[a]}var n=e.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize;t.call(this,e,n,o,r),this._prevBlock=e.slice(n,n+o)}}),n.Decryptor=n.extend({processBlock:function(e,n){var r=this._cipher,o=r.blockSize,i=e.slice(n,n+o);t.call(this,e,n,o,r),this._prevBlock=i}}),n}(),e.mode.CFB})},230:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(228))}(0,function(e){return e.mode.CTR=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var a=i.slice(0);n.encryptBlock(a,0),i[r-1]=i[r-1]+1|0;for(var s=0;s<r;s++)e[t+s]^=a[s]}});return t.Decryptor=n,t}(),e.mode.CTR})},231:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(228))}(0,function(e){/** @preserve
* Counter block mode compatible with Dr Brian Gladman fileenc.c
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/
return e.mode.CTRGladman=function(){function t(e){if(255==(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var r=e.lib.BlockCipherMode.extend(),o=r.Encryptor=r.extend({processBlock:function(e,t){var r=this._cipher,o=r.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0),n(a);var s=a.slice(0);r.encryptBlock(s,0);for(var c=0;c<o;c++)e[t+c]^=s[c]}});return r.Decryptor=o,r}(),e.mode.CTRGladman})},232:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(228))}(0,function(e){return e.mode.OFB=function(){var t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(i,0);for(var a=0;a<r;a++)e[t+a]^=i[a]}});return t.Decryptor=n,t}(),e.mode.OFB})},233:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(228))}(0,function(e){return e.mode.ECB=function(){var t=e.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t}(),e.mode.ECB})},234:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(228))}(0,function(e){return e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,o=r-n%r,i=n+o-1;e.clamp(),e.words[i>>>2]|=o<<24-i%4*8,e.sigBytes+=o},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923})},235:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(228))}(0,function(e){return e.pad.Iso10126={pad:function(t,n){var r=4*n,o=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126})},236:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(228))}(0,function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971})},237:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(228))}(0,function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},e.pad.ZeroPadding})},238:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(228))}(0,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})},239:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(228))}(0,function(e){return function(t){var n=e,r=n.lib,o=r.CipherParams,i=n.enc,a=i.Hex,s=n.format;s.Hex={stringify:function(e){return e.ciphertext.toString(a)},parse:function(e){var t=a.parse(e);return o.create({ciphertext:t})}}}(),e.format.Hex})},240:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(216),n(217),n(227),n(228))}(0,function(e){return function(){var t=e,n=t.lib,r=n.BlockCipher,o=t.algo,i=[],a=[],s=[],c=[],u=[],l=[],p=[],d=[],f=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=0,r=0,t=0;t<256;t++){var o=r^r<<1^r<<2^r<<3^r<<4;o=o>>>8^255&o^99,i[n]=o,a[o]=n;var m=e[n],g=e[m],v=e[g],y=257*e[o]^16843008*o;s[n]=y<<24|y>>>8,c[n]=y<<16|y>>>16,u[n]=y<<8|y>>>24,l[n]=y;var y=16843009*v^65537*g^257*m^16843008*n;p[o]=y<<24|y>>>8,d[o]=y<<16|y>>>16,f[o]=y<<8|y>>>24,h[o]=y,n?(n=m^e[e[e[v^m]]],r^=e[e[r]]):n=r=1}}();var m=[0,1,2,4,8,16,32,64,128,27,54],g=o.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=this._nRounds=n+6,o=4*(r+1),a=this._keySchedule=[],s=0;s<o;s++)if(s<n)a[s]=t[s];else{var c=a[s-1];s%n?n>6&&s%n==4&&(c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c]):(c=c<<8|c>>>24,c=i[c>>>24]<<24|i[c>>>16&255]<<16|i[c>>>8&255]<<8|i[255&c],c^=m[s/n|0]<<24),a[s]=a[s-n]^c}for(var u=this._invKeySchedule=[],l=0;l<o;l++){var s=o-l;if(l%4)var c=a[s];else var c=a[s-4];u[l]=l<4||s<=4?c:p[i[c>>>24]]^d[i[c>>>16&255]]^f[i[c>>>8&255]]^h[i[255&c]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,c,u,l,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,p,d,f,h,a);var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,o,i,a,s){for(var c=this._nRounds,u=e[t]^n[0],l=e[t+1]^n[1],p=e[t+2]^n[2],d=e[t+3]^n[3],f=4,h=1;h<c;h++){var m=r[u>>>24]^o[l>>>16&255]^i[p>>>8&255]^a[255&d]^n[f++],g=r[l>>>24]^o[p>>>16&255]^i[d>>>8&255]^a[255&u]^n[f++],v=r[p>>>24]^o[d>>>16&255]^i[u>>>8&255]^a[255&l]^n[f++],y=r[d>>>24]^o[u>>>16&255]^i[l>>>8&255]^a[255&p]^n[f++];u=m,l=g,p=v,d=y}var m=(s[u>>>24]<<24|s[l>>>16&255]<<16|s[p>>>8&255]<<8|s[255&d])^n[f++],g=(s[l>>>24]<<24|s[p>>>16&255]<<16|s[d>>>8&255]<<8|s[255&u])^n[f++],v=(s[p>>>24]<<24|s[d>>>16&255]<<16|s[u>>>8&255]<<8|s[255&l])^n[f++],y=(s[d>>>24]<<24|s[u>>>16&255]<<16|s[l>>>8&255]<<8|s[255&p])^n[f++];e[t]=m,e[t+1]=g,e[t+2]=v,e[t+3]=y},keySize:8});t.AES=r._createHelper(g)}(),e.AES})},241:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(216),n(217),n(227),n(228))}(0,function(e){return function(){function t(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function n(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}var r=e,o=r.lib,i=o.WordArray,a=o.BlockCipher,s=r.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],u=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],p=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=s.DES=a.extend({_doReset:function(){for(var e=this._key,t=e.words,n=[],r=0;r<56;r++){var o=c[r]-1;n[r]=t[o>>>5]>>>31-o%32&1}for(var i=this._subKeys=[],a=0;a<16;a++){for(var s=i[a]=[],p=l[a],r=0;r<24;r++)s[r/6|0]|=n[(u[r]-1+p)%28]<<31-r%6,s[4+(r/6|0)]|=n[28+(u[r+24]-1+p)%28]<<31-r%6;s[0]=s[0]<<1|s[0]>>>31;for(var r=1;r<7;r++)s[r]=s[r]>>>4*(r-1)+3;s[7]=s[7]<<5|s[7]>>>27}for(var d=this._invSubKeys=[],r=0;r<16;r++)d[r]=i[15-r]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,r,o){this._lBlock=e[r],this._rBlock=e[r+1],t.call(this,4,252645135),t.call(this,16,65535),n.call(this,2,858993459),n.call(this,8,16711935),t.call(this,1,1431655765);for(var i=0;i<16;i++){for(var a=o[i],s=this._lBlock,c=this._rBlock,u=0,l=0;l<8;l++)u|=p[l][((c^a[l])&d[l])>>>0];this._lBlock=c,this._rBlock=s^u}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,t.call(this,1,1431655765),n.call(this,8,16711935),n.call(this,2,858993459),t.call(this,16,65535),t.call(this,4,252645135),e[r]=this._lBlock,e[r+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});r.DES=a._createHelper(f);var h=s.TripleDES=a.extend({_doReset:function(){var e=this._key,t=e.words;this._des1=f.createEncryptor(i.create(t.slice(0,2))),this._des2=f.createEncryptor(i.create(t.slice(2,4))),this._des3=f.createEncryptor(i.create(t.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});r.TripleDES=a._createHelper(h)}(),e.TripleDES})},242:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(216),n(217),n(227),n(228))}(0,function(e){return function(){function t(){for(var e=this._S,t=this._i,n=this._j,r=0,o=0;o<4;o++){t=(t+1)%256,n=(n+e[t])%256;var i=e[t];e[t]=e[n],e[n]=i,r|=e[(e[t]+e[n])%256]<<24-8*o}return this._i=t,this._j=n,r}var n=e,r=n.lib,o=r.StreamCipher,i=n.algo,a=i.RC4=o.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],o=0;o<256;o++)r[o]=o;for(var o=0,i=0;o<256;o++){var a=o%n,s=t[a>>>2]>>>24-a%4*8&255;i=(i+r[o]+s)%256;var c=r[o];r[o]=r[i],r[i]=c}this._i=this._j=0},_doProcessBlock:function(e,n){e[n]^=t.call(this)},keySize:8,ivSize:0});n.RC4=o._createHelper(a);var s=i.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)t.call(this)}});n.RC4Drop=o._createHelper(s)}(),e.RC4})},243:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(216),n(217),n(227),n(228))}(0,function(e){return function(){function t(){for(var e=this._X,t=this._C,n=0;n<8;n++)s[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this._b=t[7]>>>0<s[7]>>>0?1:0;for(var n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,i=r>>>16,a=((o*o>>>17)+o*i>>>15)+i*i,u=((4294901760&r)*r|0)+((65535&r)*r|0);c[n]=a^u}e[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,e[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,e[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,e[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,e[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,e[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,e[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,e[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}var n=e,r=n.lib,o=r.StreamCipher,i=n.algo,a=[],s=[],c=[],u=i.Rabbit=o.extend({_doReset:function(){for(var e=this._key.words,n=this.cfg.iv,r=0;r<4;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var o=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var r=0;r<4;r++)t.call(this);for(var r=0;r<8;r++)i[r]^=o[r+4&7];if(n){var a=n.words,s=a[0],c=a[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),p=u>>>16|4294901760&l,d=l<<16|65535&u;i[0]^=u,i[1]^=p,i[2]^=l,i[3]^=d,i[4]^=u,i[5]^=p,i[6]^=l,i[7]^=d;for(var r=0;r<4;r++)t.call(this)}},_doProcessBlock:function(e,n){var r=this._X;t.call(this),a[0]=r[0]^r[5]>>>16^r[3]<<16,a[1]=r[2]^r[7]>>>16^r[5]<<16,a[2]=r[4]^r[1]>>>16^r[7]<<16,a[3]=r[6]^r[3]>>>16^r[1]<<16;for(var o=0;o<4;o++)a[o]=16711935&(a[o]<<8|a[o]>>>24)|4278255360&(a[o]<<24|a[o]>>>8),e[n+o]^=a[o]},blockSize:4,ivSize:2});n.Rabbit=o._createHelper(u)}(),e.Rabbit})},244:function(e,t,n){!function(r,o,i){e.exports=t=o(n(212),n(216),n(217),n(227),n(228))}(0,function(e){return function(){function t(){for(var e=this._X,t=this._C,n=0;n<8;n++)s[n]=t[n];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<s[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<s[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<s[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<s[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<s[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<s[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<s[6]>>>0?1:0)|0,this._b=t[7]>>>0<s[7]>>>0?1:0;for(var n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,i=r>>>16,a=((o*o>>>17)+o*i>>>15)+i*i,u=((4294901760&r)*r|0)+((65535&r)*r|0);c[n]=a^u}e[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,e[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,e[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,e[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,e[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,e[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,e[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,e[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}var n=e,r=n.lib,o=r.StreamCipher,i=n.algo,a=[],s=[],c=[],u=i.RabbitLegacy=o.extend({_doReset:function(){var e=this._key.words,n=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],o=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)t.call(this);for(var i=0;i<8;i++)o[i]^=r[i+4&7];if(n){var a=n.words,s=a[0],c=a[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),p=u>>>16|4294901760&l,d=l<<16|65535&u;o[0]^=u,o[1]^=p,o[2]^=l,o[3]^=d,o[4]^=u,o[5]^=p,o[6]^=l,o[7]^=d;for(var i=0;i<4;i++)t.call(this)}},_doProcessBlock:function(e,n){var r=this._X;t.call(this),a[0]=r[0]^r[5]>>>16^r[3]<<16,a[1]=r[2]^r[7]>>>16^r[5]<<16,a[2]=r[4]^r[1]>>>16^r[7]<<16,a[3]=r[6]^r[3]>>>16^r[1]<<16;for(var o=0;o<4;o++)a[o]=16711935&(a[o]<<8|a[o]>>>24)|4278255360&(a[o]<<24|a[o]>>>8),e[n+o]^=a[o]},blockSize:4,ivSize:2});n.RabbitLegacy=o._createHelper(u)}(),e.RabbitLegacy})},247:function(e,t,n){e.exports=n(248)},248:function _(module,exports,__webpack_require__){function _parsePrivacy(e){var t=[],n=e.getElementsByTagName("item");if(n)for(var r=0;r<n.length;r++){var o=n[r],i=o.getAttribute("value"),a=o.getAttribute("order"),s=o.getAttribute("type");if(i){var c=_parseNameFromJidFn(i);t[c]={type:s,order:a,jid:i,name:c}}}return t}function _parseGroupBlacklist(e){var t={},n=e.getElementsByTagName("item");if(n)for(var r=0;r<n.length;r++){var o=n[r],i=o.getAttribute("jid"),a=o.getAttribute("affiliation"),s=o.getAttribute("nick");if(i){var c=_parseNameFromJidFn(i);t[c]={jid:i,affiliation:a,nick:s,name:c}}}return t}function _setText(e,t){"textContent"in e?e.textContent=t:"text"in e&&(e.text=t)}function logMessage(e){WebIM&&WebIM.config.isDebug&&console.log(WebIM.utils.ts()+"[recv] ",e.data)}var _typeof="function"==typeof _symbol2.default&&"symbol"===(0,_typeof4.default)(_iterator2.default)?function(e){return void 0===e?"undefined":(0,_typeof4.default)(e)}:function(e){return e&&"function"==typeof _symbol2.default&&e.constructor===_symbol2.default&&e!==_symbol2.default.prototype?"symbol":void 0===e?"undefined":(0,_typeof4.default)(e)},_version="1.4.2",_code=__webpack_require__(207).code,_utils=__webpack_require__(206).utils,_msg=__webpack_require__(249),_message=_msg._msg,_msgHash={},Queue=__webpack_require__(250).Queue,CryptoJS=__webpack_require__(211),_=__webpack_require__(183),stropheConn=null;window.URL=window.URL||window.webkitURL||window.mozURL||window.msURL,window.XDomainRequest,Strophe.Request.prototype._newXHR=function(){var e=_utils.xmlrequest(!0);return e.overrideMimeType&&e.overrideMimeType("text/xml"),e.onreadystatechange=this.func.bind(null,this),e},Strophe.Websocket.prototype._closeSocket=function(){if(this.socket){var e=this;setTimeout(function(){try{e.socket.close()}catch(e){}},0)}else this.socket=null},Strophe.Websocket.prototype._onMessage=function(e){logMessage(e);var t=e.data;if(t.indexOf("<jid>")>0){var n=t.indexOf("<jid>"),r=t.indexOf("</jid>"),t=t.substring(n+5,r);stropheConn.setJid(t)}var o,t;if(0===e.data.indexOf("<close ")){o=(new DOMParser).parseFromString(e.data,"text/xml").documentElement;var i=o.getAttribute("see-other-uri");return void(i?(this._conn._changeConnectStatus(Strophe.Status.REDIRECT,"Received see-other-uri, resetting connection"),this._conn.reset(),this._conn.service=i,this._connect()):this._conn._doDisconnect("receive <close> from server"))}if(0===e.data.search("<open ")){if(o=(new DOMParser).parseFromString(e.data,"text/xml").documentElement,!this._handleStreamStart(o))return}else t=this._streamWrap(e.data),o=(new DOMParser).parseFromString(t,"text/xml").documentElement;if(!this._check_streamerror(o,Strophe.Status.ERROR))return this._conn.disconnecting&&"presence"===o.firstChild.nodeName&&"unavailable"===o.firstChild.getAttribute("type")?(this._conn.xmlInput(o),void this._conn.rawInput(Strophe.serialize(o))):void this._conn._dataRecv(o,e.data)};var _listenNetwork=function(e,t){window.addEventListener?(window.addEventListener("online",e),window.addEventListener("offline",t)):window.attachEvent&&(document.body?(document.body.attachEvent("ononline",e),document.body.attachEvent("onoffline",t)):window.attachEvent("load",function(){document.body.attachEvent("ononline",e),document.body.attachEvent("onoffline",t)}))},_parseRoom=function(e){var t=[],n=e.getElementsByTagName("item");if(n)for(var r=0;r<n.length;r++){var o=n[r],i=o.getAttribute("jid"),a=i.split("@")[0],s={jid:i,name:o.getAttribute("name"),roomId:a.split("_")[1]};t.push(s)}return t},_parseRoomOccupants=function(e){var t=[],n=e.getElementsByTagName("item");if(n)for(var r=0;r<n.length;r++){var o=n[r],i={jid:o.getAttribute("jid"),name:o.getAttribute("name")};t.push(i)}return t},_parseResponseMessage=function _parseResponseMessage(msginfo){var parseMsgData={errorMsg:!0,data:[]},msgBodies=msginfo.getElementsByTagName("body");if(msgBodies){for(var i=0;i<msgBodies.length;i++){var msgBody=msgBodies[i],childNodes=msgBody.childNodes;if(childNodes&&childNodes.length>0){var childNode=msgBody.childNodes[0];if(childNode.nodeType==Strophe.ElementType.TEXT){var jsondata=childNode.wholeText||childNode.nodeValue;jsondata=jsondata.replace("\n","<br>");try{var data=eval("("+jsondata+")");parseMsgData.errorMsg=!1,parseMsgData.data=[data]}catch(e){}}}}var delayTags=msginfo.getElementsByTagName("delay");if(delayTags&&delayTags.length>0){var delayTag=delayTags[0],delayMsgTime=delayTag.getAttribute("stamp");delayMsgTime&&(parseMsgData.delayTimeStamp=delayMsgTime)}}else{var childrens=msginfo.childNodes;if(childrens&&childrens.length>0){var child=msginfo.childNodes[0];if(child.nodeType==Strophe.ElementType.TEXT)try{var data=eval("("+child.nodeValue+")");parseMsgData.errorMsg=!1,parseMsgData.data=[data]}catch(e){}}}return parseMsgData},_parseNameFromJidFn=function(e,t){t=t||"";var n=e,r=n.indexOf("_");-1!==r&&(n=n.substring(r+1));var o=n.indexOf("@"+t);return-1!==o&&(n=n.substring(0,o)),n},_parseFriend=function(e,t,n){var r=[],o=e.getElementsByTagName("item");if(o)for(var i=0;i<o.length;i++){var a=o[i],s=a.getAttribute("jid");if(s){var c=a.getAttribute("subscription"),u={subscription:c,jid:s},l=a.getAttribute("ask");l&&(u.ask=l);var p=a.getAttribute("name");if(p)u.name=p;else{var d=_parseNameFromJidFn(s);u.name=d}var f=[];Strophe.forEachChild(a,"group",function(e){f.push(Strophe.getText(e))}),u.groups=f,r.push(u),t&&"from"==c&&!l&&t.subscribe({toJid:s,message:"[resp:true]"}),t&&"to"==c&&t.subscribed({toJid:s})}}return r},_login=function(e,t){var n=e.access_token||"";if(""==n){_utils.stringify(e);return void t.onError({type:_code.WEBIM_CONNCTION_OPEN_USERGRID_ERROR,data:e})}t.context.accessToken=e.access_token,t.context.accessTokenExpires=e.expires_in,stropheConn=t.isOpening()&&t.context.stropheConn?t.context.stropheConn:(t.isOpened()&&t.context.stropheConn,t.getStrophe());var r=function(e,n){_loginCallback(e,n,t)};t.context.stropheConn=stropheConn,t.route?stropheConn.connect(t.context.jid,"$t$"+n,r,t.wait,t.hold,t.route):stropheConn.connect(t.context.jid,"$t$"+n,r,t.wait,t.hold)},_parseMessageType=function(e){var t=e.getElementsByTagName("received"),n=e.getElementsByTagName("invite"),r=e.getElementsByTagName("delivery"),o=e.getElementsByTagName("acked"),i=e.getElementsByTagName("error"),a="normal";if(t&&t.length>0&&"urn:xmpp:receipts"===t[0].namespaceURI)a="received";else if(n&&n.length>0)a="invite";else if(r&&r.length>0)a="delivery";else if(o&&o.length)a="acked";else if(i&&i.length){var s=i[0],c=s.getElementsByTagName("user-muted");c&&c.length&&(a="userMuted")}return a},_handleMessageQueue=function(e){for(var t in _msgHash)_msgHash.hasOwnProperty(t)&&_msgHash[t].send(e)},_loginCallback=function(e,t,n){var r,o;if("conflict"===t&&(r=!0,n.close()),e==Strophe.Status.CONNFAIL)o={type:_code.WEBIM_CONNCTION_SERVER_CLOSE_ERROR,msg:t,reconnect:!0},r&&(o.conflict=!0),n.onError(o);else if(e==Strophe.Status.ATTACHED||e==Strophe.Status.CONNECTED){n.autoReconnectNumTotal=0,n.intervalId=setInterval(function(){n.handelSendQueue()},200);var i=function(e){var t=e.getElementsByTagName("delivery"),r=e.getElementsByTagName("acked");if(t.length)return n.handleDeliveredMessage(e),!0;if(r.length)return n.handleAckedMessage(e),!0;switch(_parseMessageType(e)){case"received":return n.handleReceivedMessage(e),!0;case"invite":return n.handleInviteMessage(e),!0;case"delivery":return n.handleDeliveredMessage(e),!0;case"acked":return n.handleAckedMessage(e),!0;case"userMuted":return n.handleMutedMessage(e),!0;default:return n.handleMessage(e),!0}},a=function(e){return n.handlePresence(e),!0},s=function(e){return n.handlePing(e),!0},c=function(e){return n.handleIqRoster(e),!0},u=function(e){return n.handleIqPrivacy(e),!0},l=function(e){return n.handleIq(e),!0};n.addHandler(i,null,"message",null,null,null),n.addHandler(a,null,"presence",null,null,null),n.addHandler(s,"urn:xmpp:ping","iq","get",null,null),n.addHandler(c,"jabber:iq:roster","iq","set",null,null),n.addHandler(u,"jabber:iq:privacy","iq","set",null,null),n.addHandler(l,null,"iq",null,null,null),n.registerConfrIQHandler&&n.registerConfrIQHandler(),n.context.status=_code.STATUS_OPENED;var p=[_code.WEBIM_MESSAGE_REC_TEXT,_code.WEBIM_MESSAGE_REC_EMOJI];_utils.isCanDownLoadFile&&(p.push(_code.WEBIM_MESSAGE_REC_PHOTO),p.push(_code.WEBIM_MESSAGE_REC_AUDIO_FILE));var d=[_code.WEBIM_MESSAGE_SED_TEXT];_utils.isCanUploadFile&&(d.push(_code.WEBIM_MESSAGE_REC_PHOTO),d.push(_code.WEBIM_MESSAGE_REC_AUDIO_FILE)),n.notifyVersion(),n.retry&&_handleMessageQueue(n),n.heartBeat(),n.isAutoLogin&&n.setPresence();try{if(n.unSendMsgArr.length>0)for(var f in n.unSendMsgArr){var h=n.unSendMsgArr[f];n.sendCommand(h),delete n.unSendMsgArr[f]}}catch(e){console.error(e.message)}n.offLineSendConnecting=!1,n.logOut=!1,n.onOpened({canReceive:p,canSend:d,accessToken:n.context.accessToken})}else if(e==Strophe.Status.DISCONNECTING)n.isOpened()&&(n.stopHeartBeat(),n.context.status=_code.STATUS_CLOSING,o={type:_code.WEBIM_CONNCTION_SERVER_CLOSE_ERROR,msg:t,reconnect:!0},r&&(o.conflict=!0),n.onError(o));else if(e==Strophe.Status.DISCONNECTED){if(n.isOpened()){if(n.autoReconnectNumTotal<n.autoReconnectNumMax)return void n.reconnect();o={type:_code.WEBIM_CONNCTION_DISCONNECTED},n.onError(o)}n.context.status=_code.STATUS_CLOSED,n.clear(),n.onClosed()}else e==Strophe.Status.AUTHFAIL?(o={type:_code.WEBIM_CONNCTION_AUTH_ERROR},r&&(o.conflict=!0),n.onError(o),n.clear()):e==Strophe.Status.ERROR&&(n.context.status=_code.STATUS_ERROR,o={type:_code.WEBIM_CONNCTION_SERVER_ERROR},r&&(o.conflict=!0),n.onError(o));n.context.status_now=e},_getJid=function(e,t){var n=e.toJid||"";if(""===n){var r=t.context.appKey||"",o=r+"_"+e.to+"@"+t.domain;e.resource&&(o=o+"/"+e.resource),n=o}return n},_getJidByName=function(e,t){return _getJid({to:e},t)},_validCheck=function(e,t){if(e=e||{},""==e.user)return t.onError({type:_code.WEBIM_CONNCTION_USER_NOT_ASSIGN_ERROR}),!1;var n=e.user+""||"",r=e.appKey||"",o=r.split("#");if(2!==o.length)return t.onError({type:_code.WEBIM_CONNCTION_APPKEY_NOT_ASSIGN_ERROR}),!1;var i=o[0],a=o[1];if(!i)return t.onError({type:_code.WEBIM_CONNCTION_APPKEY_NOT_ASSIGN_ERROR}),!1;if(!a)return t.onError({type:_code.WEBIM_CONNCTION_APPKEY_NOT_ASSIGN_ERROR}),!1;var s=r+"_"+n.toLowerCase()+"@"+t.domain,c=e.resource||"webim";return t.isMultiLoginSessions&&(c+=n+(new Date).getTime()+Math.floor(1e6*Math.random().toFixed(6))),t.context.jid=s+"/"+c,t.context.userId=n,t.context.appKey=r,t.context.appName=a,t.context.orgName=i,!0},_getXmppUrl=function(e,t){if(/^(ws|http)s?:\/\/?/.test(e))return e;var n={prefix:"http",base:"://"+e,suffix:"/http-bind/"};return t&&_utils.isSupportWss?(n.prefix="wss",n.suffix="/ws/"):t?n.prefix="https":window.WebSocket&&(n.prefix="ws",n.suffix="/ws/"),n.prefix+n.base+n.suffix},connection=function e(t){if(!this instanceof e)return new e(t);var t=t||{};this.isHttpDNS=t.isHttpDNS||!1,this.isMultiLoginSessions=t.isMultiLoginSessions||!1,this.wait=t.wait||30,this.hold=t.hold||1,this.retry=t.retry||!1,this.https=t.https||"https:"===location.protocol,this.url=_getXmppUrl(t.url,this.https),this.route=t.route||null,this.domain=t.domain||"easemob.com",this.inactivity=t.inactivity||30,this.heartBeatWait=t.heartBeatWait||4500,this.maxRetries=t.maxRetries||5,this.isAutoLogin=!1!==t.isAutoLogin,this.pollingTime=t.pollingTime||800,this.stropheConn=!1,this.autoReconnectNumMax=t.autoReconnectNumMax||0,this.autoReconnectNumTotal=0,this.autoReconnectInterval=t.autoReconnectInterval||0,this.context={status:_code.STATUS_INIT},this.sendQueue=new Queue,this.intervalId=null,this.apiUrl=t.apiUrl||"",this.isWindowSDK=t.isWindowSDK||!1,this.encrypt=t.encrypt||{encrypt:{type:"none"}},this.delivery=t.delivery||!1,this.user="",this.orgName="",this.appName="",this.token="",this.unSendMsgArr=[],this.offLineSendConnecting=!1,this.logOut=!1,this.dnsArr=["https://rs.easemob.com","https://rsbak.easemob.com","http://182.92.174.78","http://112.126.66.111"],this.dnsIndex=0,this.dnsTotal=this.dnsArr.length,this.restHosts=null,this.restIndex=0,this.restTotal=0,this.xmppHosts=null,this.xmppIndex=0,this.xmppTotal=0,this.groupOption={}};connection.prototype.testInit=function(e){this.orgName=e.orgName,this.appName=e.appName,this.user=e.user,this.token=e.token},connection.prototype.registerUser=function(e){"https:"!=location.protocol&&this.isHttpDNS?(this.dnsIndex=0,this.getHttpDNS(e,"signup")):this.signup(e)},connection.prototype.handelSendQueue=function(){var e=this.sendQueue.pop();null!==e&&this.sendReceiptsMessage(e)},connection.prototype.listen=function(e){this.onOpened=e.onOpened||_utils.emptyfn,this.onClosed=e.onClosed||_utils.emptyfn,this.onTextMessage=e.onTextMessage||_utils.emptyfn,this.onEmojiMessage=e.onEmojiMessage||_utils.emptyfn,this.onPictureMessage=e.onPictureMessage||_utils.emptyfn,this.onAudioMessage=e.onAudioMessage||_utils.emptyfn,this.onVideoMessage=e.onVideoMessage||_utils.emptyfn,this.onFileMessage=e.onFileMessage||_utils.emptyfn,this.onLocationMessage=e.onLocationMessage||_utils.emptyfn,this.onCmdMessage=e.onCmdMessage||_utils.emptyfn,this.onPresence=e.onPresence||_utils.emptyfn,this.onRoster=e.onRoster||_utils.emptyfn,this.onError=e.onError||_utils.emptyfn,this.onReceivedMessage=e.onReceivedMessage||_utils.emptyfn,this.onInviteMessage=e.onInviteMessage||_utils.emptyfn,this.onDeliverdMessage=e.onDeliveredMessage||_utils.emptyfn,this.onReadMessage=e.onReadMessage||_utils.emptyfn,this.onMutedMessage=e.onMutedMessage||_utils.emptyfn,this.onOffline=e.onOffline||_utils.emptyfn,this.onOnline=e.onOnline||_utils.emptyfn,this.onConfirmPop=e.onConfirmPop||_utils.emptyfn,this.onCreateGroup=e.onCreateGroup||_utils.emptyfn,this.onUpdateMyGroupList=e.onUpdateMyGroupList||_utils.emptyfn,this.onUpdateMyRoster=e.onUpdateMyRoster||_utils.emptyfn,this.onBlacklistUpdate=e.onBlacklistUpdate||_utils.emptyfn,_listenNetwork(this.onOnline,this.onOffline)},connection.prototype.heartBeat=function(e){!0!==e&&(e=!1);var t=this,n=!/^ws|wss/.test(t.url)||/mobile/.test(navigator.userAgent);if(!this.heartBeatID&&(e||n)){var r={toJid:this.domain,type:"normal"};this.heartBeatID=setInterval(function(){_utils.isSupportWss&&t.ping(r)},this.heartBeatWait)}},connection.prototype.stopHeartBeat=function(){"number"==typeof this.heartBeatID&&(this.heartBeatID=clearInterval(this.heartBeatID))},connection.prototype.sendReceiptsMessage=function(e){var t=$msg({from:this.context.jid||"",to:this.domain,id:e.id||""}).c("received",{xmlns:"urn:xmpp:receipts",id:e.id||""});this.sendCommand(t.tree())},connection.prototype.cacheReceiptsMessage=function(e){this.sendQueue.push(e)},connection.prototype.getStrophe=function(){if("https:"!=location.protocol&&this.isHttpDNS){var e="",t=this.xmppHosts[this.xmppIndex],n=_utils.getXmlFirstChild(t,"domain"),r=_utils.getXmlFirstChild(t,"ip");if(r){e=r.textContent;var o=_utils.getXmlFirstChild(t,"port");"80"!=o.textContent&&(e+=":"+o.textContent)}else e=n.textContent;if(""!=e){var i=/(.+\/\/).+(\/.+)/;this.url=this.url.replace(i,"$1"+e+"$2")}}return new Strophe.Connection(this.url,{inactivity:this.inactivity,maxRetries:this.maxRetries,pollingTime:this.pollingTime})},connection.prototype.getHostsByTag=function(e,t){var n=_utils.getXmlFirstChild(e,t);if(!n)return console.log(t+" hosts error"),null;var r=n.getElementsByTagName("hosts");return 0==r.length?(console.log(t+" hosts error2"),null):r[0].getElementsByTagName("host")},connection.prototype.getRestFromHttpDNS=function(e,t){if(this.restIndex>this.restTotal)return void console.log("rest hosts all tried,quit");var n="",r=this.restHosts[this.restIndex],o=_utils.getXmlFirstChild(r,"domain"),i=_utils.getXmlFirstChild(r,"ip");if(i){var a=_utils.getXmlFirstChild(r,"port");n=("https:"===location.protocol?"https:":"http:")+"//"+i.textContent+":"+a.textContent}else n=("https:"===location.protocol?"https:":"http:")+"//"+o.textContent;""!=n&&(this.apiUrl=n,e.apiUrl=n),"login"==t?this.login(e):this.signup(e)},connection.prototype.getHttpDNS=function(e,t){if(this.restHosts)return void this.getRestFromHttpDNS(e,t);var n=this,r=function(r,o){r=(new DOMParser).parseFromString(r,"text/xml").documentElement;var i=n.getHostsByTag(r,"rest");if(!i)return void console.log("rest hosts error3");n.restHosts=i,n.restTotal=i.length;var a=n.getHostsByTag(r,"xmpp");if(!a)return void console.log("xmpp hosts error3");n.xmppHosts=a,n.xmppTotal=a.length,n.getRestFromHttpDNS(e,t)},o=function(r,o,i){console.log("getHttpDNS error",r,i),++n.dnsIndex<n.dnsTotal&&n.getHttpDNS(e,t)},i={url:this.dnsArr[this.dnsIndex]+"/easemob/server.xml",dataType:"text",type:"GET",data:{app_key:encodeURIComponent(e.appKey)},success:r||_utils.emptyfn,error:o||_utils.emptyfn};_utils.ajax(i)},connection.prototype.signup=function(e){var t=this,n=e.orgName||"",r=e.appName||"",o=e.appKey||"",i=e.success||EMPTYFN,a=e.error||EMPTYFN;if(!n&&!r&&o){var s=o.split("#");2===s.length&&(n=s[0],r=s[1])}if(!n&&!r)return void a({type:_code.WEBIM_CONNCTION_APPKEY_NOT_ASSIGN_ERROR});var c=function(n,r,o){if("https:"!=location.protocol&&t.isHttpDNS&&t.restIndex+1<t.restTotal)return t.restIndex++,void t.getRestFromHttpDNS(e,"signup");t.clear(),a(n)},u=e.https||u,l=e.apiUrl,p=l+"/"+n+"/"+r+"/users",d={username:e.username,password:e.password,nickname:e.nickname||""},f=_utils.stringify(d),h={url:p,dataType:"json",data:f,success:i,error:c};_utils.ajax(h)},connection.prototype.open=function(e){var t=e.appKey,n=t.split("#")[0],r=t.split("#")[1];this.orgName=n,this.appName=r,e.accessToken&&(this.token=e.accessToken),e.xmppURL&&(this.url=_getXmppUrl(e.xmppURL,this.https)),"https:"!=location.protocol&&this.isHttpDNS?(this.dnsIndex=0,this.getHttpDNS(e,"login")):this.login(e)},connection.prototype.login=function(e){if(this.user=e.user,_validCheck(e,this)){var t=this;if(!t.isOpened())if(e.accessToken)e.access_token=e.accessToken,t.context.restTokenData=e,_login(e,t);else{var n=e.apiUrl,r=this.context.userId,o=e.pwd||"",i=this.context.appName,a=this.context.orgName,s=function(n,r){t.context.status=_code.STATUS_DOLOGIN_IM,t.context.restTokenData=n,e.success&&e.success(n),t.token=n.access_token,_login(n,t)},c=function(n,r,o){if(e.error&&e.error(),"https:"!=location.protocol&&t.isHttpDNS&&t.restIndex+1<t.restTotal)return t.restIndex++,void t.getRestFromHttpDNS(e,"login");t.clear(),n.error&&n.error_description?t.onError({type:_code.WEBIM_CONNCTION_OPEN_USERGRID_ERROR,data:n,xhr:r}):t.onError({type:_code.WEBIM_CONNCTION_OPEN_ERROR,data:n,xhr:r})};this.context.status=_code.STATUS_DOLOGIN_USERGRID;var u={grant_type:"password",username:r,password:o,timestamp:+new Date},l=_utils.stringify(u),p={url:n+"/"+a+"/"+i+"/token",dataType:"json",data:l,success:s||_utils.emptyfn,error:c||_utils.emptyfn};_utils.ajax(p)}}},connection.prototype.attach=function(e){if(_validCheck(e,this)){e=e||{};var t=e.accessToken||"";if(""==t)return void this.onError({type:_code.WEBIM_CONNCTION_TOKEN_NOT_ASSIGN_ERROR});var n=e.sid||"";if(""===n)return void this.onError({type:_code.WEBIM_CONNCTION_SESSIONID_NOT_ASSIGN_ERROR});var r=e.rid||"";if(""===r)return void this.onError({type:_code.WEBIM_CONNCTION_RID_NOT_ASSIGN_ERROR});stropheConn=this.getStrophe(),this.context.accessToken=t,this.context.stropheConn=stropheConn,this.context.status=_code.STATUS_DOLOGIN_IM;var o=this,i=function(e,t){_loginCallback(e,t,o)},a=this.context.jid,s=this.wait,c=this.hold,u=this.wind||5;stropheConn.attach(a,n,r,i,s,c,u)}},connection.prototype.close=function(e){this.logOut=!0,this.stopHeartBeat(),this.context.status!=_code.STATUS_INIT&&(this.isClosed()||this.isClosing()||(this.context.status=_code.STATUS_CLOSING,this.context.stropheConn.disconnect(e)))},connection.prototype.addHandler=function(e,t,n,r,o,i,a){this.context.stropheConn.addHandler(e,t,n,r,o,i,a)},connection.prototype.notifyVersion=function(e,t){var n=stropheConn.getJid();this.context.jid=n;var r=$iq({from:n||"",to:this.domain,type:"result"}).c("query",{xmlns:"jabber:iq:version"}).c("name").t("easemob").up().c("version").t(_version).up().c("os").t("webim"),e=e||_utils.emptyfn,o=t||this.onError,i=function(e){o({type:_code.WEBIM_CONNCTION_NOTIFYVERSION_ERROR,data:e})};this.context.stropheConn.sendIQ(r.tree(),e,i)},connection.prototype.handlePresence=function(e){if(console.log("Info: ",void 0===e?"undefined":_typeof(e)),!this.isClosed()){var t=e.getAttribute("from")||"",n=e.getAttribute("to")||"",r=e.getAttribute("type")||"",o=e.getAttribute("presence_type")||"",i=_parseNameFromJidFn(t),a=_parseNameFromJidFn(n),s=!1,c=!1,u=!1,l=!1,p={from:i,to:a,fromJid:t,toJid:n,type:r,chatroom:!!e.getElementsByTagName("roomtype").length},d=e.getElementsByTagName("show");if(d&&d.length>0){var f=d[0];p.show=Strophe.getText(f)}var h=e.getElementsByTagName("status");if(h&&h.length>0){var m=h[0];p.status=Strophe.getText(m),p.code=m.getAttribute("code")}var g=e.getElementsByTagName("priority");if(g&&g.length>0){var v=g[0];p.priority=Strophe.getText(v)}var y=e.getElementsByTagName("error");if(y&&y.length>0){var y=y[0];p.error={code:y.getAttribute("code")}}var _=e.getElementsByTagName("destroy");if(_&&_.length>0){var _=_[0];p.destroy=!0;var b=_.getElementsByTagName("reason");b&&b.length>0&&(p.reason=Strophe.getText(b[0]))}var C=e.getElementsByTagName("item");if(C&&C.length>0){var E=C[0],T=E.getAttribute("role"),w=E.getAttribute("jid"),S=E.getAttribute("affiliation");if("none"==T&&w){var x=_parseNameFromJidFn(w),I=E.getElementsByTagName("actor")[0],R=I.getAttribute("nick");p.actor=R,p.kicked=x}"moderator"==T&&"201"==p.code&&"owner"===S&&(p.type="createGroupACK",s=!0)}var O=e.getElementsByTagName("x");if(O&&O.length>0){var N=O[0].getElementsByTagName("apply"),k=O[0].getElementsByTagName("accept"),M=O[0].getElementsByTagName("item"),P=O[0].getElementsByTagName("decline"),A=O[0].getElementsByTagName("add_admin"),D=O[0].getElementsByTagName("remove_admin"),B=O[0].getElementsByTagName("add_mute"),j=O[0].getElementsByTagName("remove_mute");if(N&&N.length>0){l=!0,p.toNick=N[0].getAttribute("toNick"),p.type="joinGroupNotifications";var U=N[0].getAttribute("to"),L=U.split("@")[0].split("_");L=L[L.length-1],p.gid=L}else if(k&&k.length>0)p.type="joinPublicGroupSuccess";else if(M&&M.length>0){var S=M[0].getAttribute("affiliation"),T=M[0].getAttribute("role");if("member"==S||"participant"==T){c=!0,p.mid=p.fromJid.split("/"),p.mid=p.mid[p.mid.length-1],p.type="memberJoinPublicGroupSuccess";var F=e.getElementsByTagName("roomtype");if(F&&F.length>0){var r=F[0].getAttribute("type");"chatroom"==r&&(p.type="memberJoinChatRoomSuccess")}}}else if(P&&P.length){u=!0;var L=P[0].getAttribute("fromNick"),W=_parseNameFromJidFn(P[0].getAttribute("from"));p.type="joinPublicGroupDeclined",p.owner=W,p.gid=L}else if(A&&A.length>0){var L=_parseNameFromJidFn(A[0].getAttribute("mucjid")),W=_parseNameFromJidFn(A[0].getAttribute("from"));p.owner=W,p.gid=L,p.type="addAdmin"}else if(D&&D.length>0){var L=_parseNameFromJidFn(D[0].getAttribute("mucjid")),W=_parseNameFromJidFn(D[0].getAttribute("from"));p.owner=W,p.gid=L,p.type="removeAdmin"}else if(B&&B.length>0){var L=_parseNameFromJidFn(B[0].getAttribute("mucjid")),W=_parseNameFromJidFn(B[0].getAttribute("from"));p.owner=W,p.gid=L,p.type="addMute"}else if(j&&j.length>0){var L=_parseNameFromJidFn(j[0].getAttribute("mucjid")),W=_parseNameFromJidFn(j[0].getAttribute("from"));p.owner=W,p.gid=L,p.type="removeMute"}}if(p.chatroom){p.presence_type=o,p.original_type=p.type;t.slice(t.lastIndexOf("/")+1)===this.context.userId&&(""!==p.type||p.code?"unavailable"!==o&&"unavailable"!==p.type||(p.status?110==p.code?p.type="leaveChatRoom":p.error&&406==p.error.code&&(p.type="reachChatRoomCapacity"):p.type="leaveChatRoom"):p.type="joinChatRoomSuccess")}else if(p.presence_type=o,p.original_type=r,/subscribe/.test(p.type));else if(""!=r||p.status||p.error||s||l||c||u){if("unavailable"===o||"unavailable"===r)if(p.destroy)p.type="deleteGroupChat";else if(307==p.code||321==p.code){var H=e.getAttribute("nick");p.type=H?"removedFromGroup":"leaveGroup"}}else console.log(2222222,e,p,l);this.onPresence(p,e)}},connection.prototype.handlePing=function(e){if(!this.isClosed()){var t=e.getAttribute("id"),n=e.getAttribute("from"),r=e.getAttribute("to"),o=$iq({from:r,to:n,id:t,type:"result"});this.sendCommand(o.tree())}},connection.prototype.handleIq=function(e){return!0},connection.prototype.handleIqPrivacy=function(e){0!=e.getElementsByTagName("list").length&&this.getBlacklist()},connection.prototype.handleIqRoster=function(e){var t=e.getAttribute("id"),n=e.getAttribute("from")||"",r=(_parseNameFromJidFn(n),this.context.jid),o=(this.context.userId,$iq({type:"result",id:t,from:r}));this.sendCommand(o.tree());var i=e.getElementsByTagName("query");if(i&&i.length>0){var a=i[0],s=_parseFriend(a,this,n);this.onRoster(s)}return!0},connection.prototype.handleMessage=function(e){var t=this;if(!this.isClosed()){var n=e.getAttribute("id")||"";this.cacheReceiptsMessage({id:n});var r=_parseResponseMessage(e);if(r.errorMsg)return void this.handlePresence(e);var o=e.getElementsByTagName("error"),i="",a="",s=!1;if(o.length>0){s=!0,i=o[0].getAttribute("code");var c=o[0].getElementsByTagName("text");a=c[0].textContent||c[0].text}var u=r.data;for(var l in u)if(u.hasOwnProperty(l)){var p=u[l];if(p.from&&p.to){var d=(p.from+"").toLowerCase(),f=(p.to+"").toLowerCase(),h=p.ext||{},m="",g=e.getElementsByTagName("roomtype");m=g.length?g[0].getAttribute("type")||"chat":e.getAttribute("type")||"chat";var v=p.bodies;if(v&&0!=v.length){var y=p.bodies[0],_=y.type;try{switch(_){case"txt":var b=y.msg;if("base64"===t.encrypt.type)b=atob(b);else if("aes"===t.encrypt.type){var C=CryptoJS.enc.Utf8.parse(t.encrypt.key),E=CryptoJS.enc.Utf8.parse(t.encrypt.iv),T=t.encrypt.mode.toLowerCase(),w={};"cbc"===T?w={iv:E,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7}:"ebc"===T&&(w={mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7});var S=b,x=CryptoJS.AES.decrypt(S,C,w),I=x.toString(CryptoJS.enc.Utf8);b=I}var R=_utils.parseTextMessage(b,WebIM.Emoji);if(R.isemoji){var p={id:n,type:m,from:d,to:f,delay:r.delayTimeStamp,data:R.body,ext:h};!p.delay&&delete p.delay,p.error=s,p.errorText=a,p.errorCode=i,this.onEmojiMessage(p)}else{var p={id:n,type:m,from:d,to:f,delay:r.delayTimeStamp,data:b,ext:h};!p.delay&&delete p.delay,p.error=s,p.errorText=a,p.errorCode=i,this.onTextMessage(p)}break;case"img":var O=0,N=0;y.size&&(O=y.size.width,N=y.size.height);var p={id:n,type:m,from:d,to:f,url:"https:"!=location.protocol&&t.isHttpDNS?t.apiUrl+y.url.substr(y.url.indexOf("/",9)):y.url,secret:y.secret,filename:y.filename,thumb:y.thumb,thumb_secret:y.thumb_secret,file_length:y.file_length||"",width:O,height:N,filetype:y.filetype||"",accessToken:this.context.accessToken||"",ext:h,delay:r.delayTimeStamp};!p.delay&&delete p.delay,p.error=s,p.errorText=a,p.errorCode=i,this.onPictureMessage(p);break;case"audio":var p={id:n,type:m,from:d,to:f,url:"https:"!=location.protocol&&t.isHttpDNS?t.apiUrl+y.url.substr(y.url.indexOf("/",9)):y.url,secret:y.secret,filename:y.filename,length:y.length||"",file_length:y.file_length||"",filetype:y.filetype||"",accessToken:this.context.accessToken||"",ext:h,delay:r.delayTimeStamp};!p.delay&&delete p.delay,p.error=s,p.errorText=a,p.errorCode=i,this.onAudioMessage(p);break;case"file":var p={id:n,type:m,from:d,to:f,url:"https:"!=location.protocol&&t.isHttpDNS?t.apiUrl+y.url.substr(y.url.indexOf("/",9)):y.url,secret:y.secret,filename:y.filename,file_length:y.file_length,accessToken:this.context.accessToken||"",ext:h,delay:r.delayTimeStamp};!p.delay&&delete p.delay,p.error=s,p.errorText=a,p.errorCode=i,this.onFileMessage(p);break;case"loc":var p={id:n,type:m,from:d,to:f,addr:y.addr,lat:y.lat,lng:y.lng,ext:h,delay:r.delayTimeStamp};!p.delay&&delete p.delay,p.error=s,p.errorText=a,p.errorCode=i,this.onLocationMessage(p);break;case"video":var p={id:n,type:m,from:d,to:f,url:"https:"!=location.protocol&&t.isHttpDNS?t.apiUrl+y.url.substr(y.url.indexOf("/",9)):y.url,secret:y.secret,filename:y.filename,file_length:y.file_length,accessToken:this.context.accessToken||"",ext:h,delay:r.delayTimeStamp};!p.delay&&delete p.delay,p.error=s,p.errorText=a,p.errorCode=i,this.onVideoMessage(p);break;case"cmd":var p={id:n,from:d,to:f,action:y.action,ext:h,delay:r.delayTimeStamp};!p.delay&&delete p.delay,p.error=s,p.errorText=a,p.errorCode=i,this.onCmdMessage(p)}if(t.delivery){var k=t.getUniqueId(),M=p.id,P=new WebIM.message("delivery",k);P.set({id:M,to:p.from}),t.send(P.body)}}catch(e){this.onError({type:_code.WEBIM_CONNCTION_CALLBACK_INNER_ERROR,data:e})}}}}}},connection.prototype.handleDeliveredMessage=function(e){var t=e.id,n=e.getElementsByTagName("body"),r=0;r=isNaN(n[0].innerHTML)?n[1].innerHTML:n[0].innerHTML;var o={mid:r};this.onDeliverdMessage(o),this.sendReceiptsMessage({id:t})},connection.prototype.handleAckedMessage=function(e){var t=e.id,n=e.getElementsByTagName("body"),r=0;r=isNaN(n[0].innerHTML)?n[1].innerHTML:n[0].innerHTML;var o={mid:r};this.onReadMessage(o),this.sendReceiptsMessage({id:t})},connection.prototype.handleReceivedMessage=function(e){try{var t=e.getElementsByTagName("received"),n=t[0].getAttribute("mid"),r=e.getElementsByTagName("body"),o=r[0].innerHTML,i={mid:n,id:o};this.onReceivedMessage(i)}catch(e){this.onError({type:_code.WEBIM_CONNCTION_CALLBACK_INNER_ERROR,data:e})}var o,n,a=e.getElementsByTagName("received");if(a.length>0&&(o=a[0].childNodes&&a[0].childNodes.length>0?a[0].childNodes[0].nodeValue:a[0].innerHTML||a[0].innerText,n=a[0].getAttribute("mid")),_msgHash[o]){try{_msgHash[o].msg.success instanceof Function&&_msgHash[o].msg.success(o,n)}catch(e){this.onError({type:_code.WEBIM_CONNCTION_CALLBACK_INNER_ERROR,data:e})}delete _msgHash[o]}},connection.prototype.handleInviteMessage=function(e){var t=null,n=e.getElementsByTagName("invite"),r=e.getElementsByTagName("reason")[0],o=r.textContent,i=e.getAttribute("id")||"";if(this.sendReceiptsMessage({id:i}),n&&n.length>0){var a=n[0].getAttribute("from");t=_parseNameFromJidFn(a)}var s=e.getElementsByTagName("x"),c=null;if(s&&s.length>0)for(var u=0;u<s.length;u++)if("jabber:x:conference"===s[u].namespaceURI){var l=s[u].getAttribute("jid");c=_parseNameFromJidFn(l)}this.onInviteMessage({type:"invite",from:t,roomid:c,reason:o})},connection.prototype.handleMutedMessage=function(e){var t=e.id;this.onMutedMessage({mid:t})},connection.prototype.sendCommand=function(e,t){this.isOpened()?this.context.stropheConn.send(e):(this.unSendMsgArr.push(e),this.offLineSendConnecting||this.logOut||(this.offLineSendConnecting=!0,this.reconnect()),this.onError({type:_code.WEBIM_CONNCTION_DISCONNECTED,reconnect:!0}))},connection.prototype.getUniqueId=function(e){this.autoIncrement?this.autoIncrement++:this.autoIncrement=1;var t=new Date,n=new Date(2010,1,1),r=t.getTime()-n.getTime(),o=parseFloat(r).toString(16)+this.autoIncrement;return"string"==typeof e||"number"==typeof e?e+"_"+o:"WEBIM_"+o},connection.prototype.send=function(e){var t=this,n=e;if("txt"===n.type)if("base64"===this.encrypt.type)n=_.clone(e),n.msg=btoa(n.msg);else if("aes"===this.encrypt.type){n=_.clone(e);var r=CryptoJS.enc.Utf8.parse(this.encrypt.key),o=CryptoJS.enc.Utf8.parse(this.encrypt.iv),i=this.encrypt.mode.toLowerCase(),a={};"cbc"===i?a={iv:o,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.Pkcs7}:"ebc"===i&&(a={mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7});var s=CryptoJS.AES.encrypt(n.msg,r,a);n.msg=s.toString()}if(this.isWindowSDK)WebIM.doQuery('{"type":"sendMessage","to":"'+n.to+'","message_type":"'+n.type+'","msg":"'+encodeURI(n.msg)+'","chatType":"'+n.chatType+'"}',function(e){},function(e,n){var r={data:{data:"send"},type:_code.WEBIM_MESSAGE_SED_ERROR};t.onError(r)});else if("[object Object]"===Object.prototype.toString.call(n)){var c=this.context.appKey||"",u=c+"_"+n.to+"@"+this.domain;n.group&&(u=c+"_"+n.to+"@conference."+this.domain),n.resource&&(u=u+"/"+n.resource),n.toJid=u,n.id=n.id||this.getUniqueId(),_msgHash[n.id]=new _message(n),_msgHash[n.id].send(this)}else"string"==typeof n&&_msgHash[n]&&_msgHash[n].send(this)},connection.prototype.addRoster=function(e){var t=_getJid(e,this),n=e.name||"",r=e.groups||"",o=$iq({type:"set"});if(o.c("query",{xmlns:"jabber:iq:roster"}),o.c("item",{jid:t,name:n}),r)for(var i=0;i<r.length;i++)o.c("group").t(r[i]).up();var a=e.success||_utils.emptyfn,s=e.error||_utils.emptyfn;this.context.stropheConn.sendIQ(o.tree(),a,s)},connection.prototype.removeRoster=function(e){var t=_getJid(e,this),n=$iq({type:"set"}).c("query",{xmlns:"jabber:iq:roster"}).c("item",{jid:t,subscription:"remove"}),r=e.success||_utils.emptyfn,o=e.error||_utils.emptyfn;this.context.stropheConn.sendIQ(n,r,o)},connection.prototype.getRoster=function(e){var t=$iq({type:"get"}).c("query",{xmlns:"jabber:iq:roster"}),e=e||{},n=e.success||this.onRoster,r=function(e){var t=[],r=e.getElementsByTagName("query");if(r&&r.length>0){var o=r[0];t=_parseFriend(o)}n(t,e)},o=e.error||this.onError,i=function(e){o({type:_code.WEBIM_CONNCTION_GETROSTER_ERROR,data:e})};this.isOpened()?this.context.stropheConn.sendIQ(t.tree(),r,i):o({type:_code.WEBIM_CONNCTION_DISCONNECTED})},connection.prototype.subscribe=function(e){var t=_getJid(e,this),n=$pres({to:t,type:"subscribe"});e.message&&n.c("status").t(e.message).up(),e.nick&&n.c("nick",{xmlns:"http://jabber.org/protocol/nick"}).t(e.nick),this.sendCommand(n.tree())},connection.prototype.subscribed=function(e){var t=_getJid(e,this),n=$pres({to:t,type:"subscribed"});e.message&&n.c("status").t(e.message).up(),this.sendCommand(n.tree())},connection.prototype.unsubscribe=function(e){var t=_getJid(e,this),n=$pres({to:t,type:"unsubscribe"});e.message&&n.c("status").t(e.message),this.sendCommand(n.tree())},connection.prototype.unsubscribed=function(e){var t=_getJid(e,this),n=$pres({to:t,type:"unsubscribed"});e.message&&n.c("status").t(e.message).up(),this.sendCommand(n.tree())},connection.prototype.joinPublicGroup=function(e){var t=this.context.appKey+"_"+e.roomId+"@conference."+this.domain,n=t+"/"+this.context.userId,r=e.success||_utils.emptyfn,o=e.error||_utils.emptyfn,i=function(e){o({type:_code.WEBIM_CONNCTION_JOINROOM_ERROR,data:e})},a=$pres({from:this.context.jid,to:n}).c("x",{xmlns:Strophe.NS.MUC});this.context.stropheConn.sendIQ(a.tree(),r,i)},connection.prototype.listRooms=function(e){var t=$iq({to:e.server||"conference."+this.domain,from:this.context.jid,type:"get"}).c("query",{xmlns:Strophe.NS.DISCO_ITEMS}),n=e.success||_utils.emptyfn,r=e.error||this.onError,o=function(e){var t=[];t=_parseRoom(e);try{n(t)}catch(e){r({type:_code.WEBIM_CONNCTION_GETROOM_ERROR,data:e})}},i=e.error||_utils.emptyfn,a=function(e){i({type:_code.WEBIM_CONNCTION_GETROOM_ERROR,data:e})};this.context.stropheConn.sendIQ(t.tree(),o,a)},connection.prototype.queryRoomMember=function(e){var t=(this.domain,[]),n=$iq({to:this.context.appKey+"_"+e.roomId+"@conference."+this.domain,type:"get"}).c("query",{xmlns:Strophe.NS.MUC+"#admin"}).c("item",{affiliation:"member"}),r=e.success||_utils.emptyfn,o=function(e){var n=e.getElementsByTagName("item");if(n)for(var o=0;o<n.length;o++){var i=n[o],a={jid:i.getAttribute("jid"),affiliation:"member"};t.push(a)}r(t)},i=e.error||_utils.emptyfn,a=function(e){i({type:_code.WEBIM_CONNCTION_GETROOMMEMBER_ERROR,data:e})};this.context.stropheConn.sendIQ(n.tree(),o,a)},connection.prototype.queryRoomInfo=function(e){var t=this.domain,n=$iq({to:this.context.appKey+"_"+e.roomId+"@conference."+t,type:"get"}).c("query",{xmlns:Strophe.NS.DISCO_INFO}),r=e.success||_utils.emptyfn,o=[],i=function(e){var n="",i=e.getElementsByTagName("feature");switch(i&&(n=i[1].getAttribute("var")+"|"+i[3].getAttribute("var")+"|"+i[4].getAttribute("var")),n){case"muc_public|muc_membersonly|muc_notallowinvites":n="PUBLIC_JOIN_APPROVAL";break;case"muc_public|muc_open|muc_notallowinvites":n="PUBLIC_JOIN_OPEN";break;case"muc_hidden|muc_membersonly|muc_allowinvites":n="PRIVATE_MEMBER_INVITE";break;case"muc_hidden|muc_membersonly|muc_notallowinvites":n="PRIVATE_OWNER_INVITE"}var a=e.getElementsByTagName("field"),s={};if(a){for(var c=0;c<a.length;c++){var u=a[c],l=u.getAttribute("var"),p=l.split("_")[1];switch(l){case"muc#roominfo_occupants":case"muc#roominfo_maxusers":case"muc#roominfo_affiliations":case"muc#roominfo_description":s[p]=u.textContent||u.text||"";break;case"muc#roominfo_owner":var d={jid:(u.textContent||u.text)+"@"+t,affiliation:"owner"};o.push(d),s[p]=u.textContent||u.text}}s.name=e.getElementsByTagName("identity")[0].getAttribute("name")}r(n,o,s)},a=e.error||_utils.emptyfn,s=function(e){a({type:_code.WEBIM_CONNCTION_GETROOMINFO_ERROR,data:e})};this.context.stropheConn.sendIQ(n.tree(),i,s)},connection.prototype.queryRoomOccupants=function(e){var t=e.success||_utils.emptyfn,n=function(e){var n=[];n=_parseRoomOccupants(e),t(n)},r=e.error||_utils.emptyfn,o=function(e){r({type:_code.WEBIM_CONNCTION_GETROOMOCCUPANTS_ERROR,data:e})},i={xmlns:Strophe.NS.DISCO_ITEMS},a=$iq({from:this.context.jid,to:this.context.appKey+"_"+e.roomId+"@conference."+this.domain,type:"get"}).c("query",i);this.context.stropheConn.sendIQ(a.tree(),n,o)},connection.prototype.setUserSig=function(e){var t=$pres({xmlns:"jabber:client"});e=e||"",t.c("status").t(e),this.sendCommand(t.tree())},connection.prototype.setPresence=function(e,t){var n=$pres({xmlns:"jabber:client"});e&&(t?(n.c("show").t(e),n.up().c("status").t(t)):n.c("show").t(e)),this.sendCommand(n.tree())},connection.prototype.getPresence=function(){var e=$pres({xmlns:"jabber:client"});this.sendCommand(e.tree())},connection.prototype.ping=function(e){var e=e||{},t=_getJid(e,this),n=$iq({from:this.context.jid||"",to:t,type:"get"}).c("ping",{xmlns:"urn:xmpp:ping"}),r=e.success||_utils.emptyfn,o=e.error||this.onError,i=function(e){o({type:_code.WEBIM_CONNCTION_PING_ERROR,data:e})};this.isOpened()?this.context.stropheConn.sendIQ(n.tree(),r,i):o({type:_code.WEBIM_CONNCTION_DISCONNECTED})},connection.prototype.isOpened=function(){return this.context.status==_code.STATUS_OPENED},connection.prototype.isOpening=function(){var e=this.context.status;return e==_code.STATUS_DOLOGIN_USERGRID||e==_code.STATUS_DOLOGIN_IM},connection.prototype.isClosing=function(){return this.context.status==_code.STATUS_CLOSING},connection.prototype.isClosed=function(){return this.context.status==_code.STATUS_CLOSED},connection.prototype.clear=function(){var e=this.context.appKey;if(this.errorType!=_code.WEBIM_CONNCTION_DISCONNECTED&&this.logOut&&(this.unSendMsgArr=[],this.offLineSendConnecting=!1,this.context={status:_code.STATUS_INIT,appKey:e}),this.intervalId&&clearInterval(this.intervalId),this.restIndex=0,this.xmppIndex=0,this.errorType==_code.WEBIM_CONNCTION_CLIENT_LOGOUT||-1==this.errorType){var t={data:{data:"logout"},type:_code.WEBIM_CONNCTION_CLIENT_LOGOUT};this.onError(t)}},connection.prototype.getChatRooms=function(e){var t=this,n=e.accessToken||this.context.accessToken;if(!_utils.isCanSetRequestHeader)return void t.onError({type:_code.WEBIM_CONNCTION_NOT_SUPPORT_CHATROOM_ERROR});if(n){var r=e.apiUrl,o=this.context.appName,i=this.context.orgName;if(!o||!i)return void t.onError({type:_code.WEBIM_CONNCTION_AUTH_ERROR});var a=function(t,n){"function"==typeof e.success&&e.success(t)},s=function(e,n,r){e.error&&e.error_description&&t.onError({type:_code.WEBIM_CONNCTION_LOAD_CHATROOM_ERROR,msg:e.error_description,data:e,xhr:n})},c={pagenum:parseInt(e.pagenum)||1,pagesize:parseInt(e.pagesize)||20},u={url:r+"/"+i+"/"+o+"/chatrooms",dataType:"json",type:"GET",headers:{Authorization:"Bearer "+n},data:c,success:a||_utils.emptyfn,error:s||_utils.emptyfn};_utils.ajax(u)}else t.onError({type:_code.WEBIM_CONNCTION_TOKEN_NOT_ASSIGN_ERROR})},connection.prototype.joinChatRoom=function(e){var t=this.context.appKey+"_"+e.roomId+"@conference."+this.domain,n=t+"/"+this.context.userId,r=e.success||_utils.emptyfn,o=e.error||_utils.emptyfn,i=function(e){o({type:_code.WEBIM_CONNCTION_JOINCHATROOM_ERROR,data:e})},a=$pres({from:this.context.jid,to:n}).c("x",{xmlns:Strophe.NS.MUC+"#user"}).c("item",{affiliation:"member",role:"participant"}).up().up().c("roomtype",{xmlns:"easemob:x:roomtype",type:"chatroom"});this.context.stropheConn.sendIQ(a.tree(),r,i)},connection.prototype.quitChatRoom=function(e){var t=this.context.appKey+"_"+e.roomId+"@conference."+this.domain,n=t+"/"+this.context.userId,r=e.success||_utils.emptyfn,o=e.error||_utils.emptyfn,i=function(e){o({type:_code.WEBIM_CONNCTION_QUITCHATROOM_ERROR,data:e})},a=$pres({from:this.context.jid,to:n,type:"unavailable"}).c("x",{xmlns:Strophe.NS.MUC+"#user"}).c("item",{affiliation:"none",role:"none"}).up().up().c("roomtype",{xmlns:"easemob:x:roomtype",type:"chatroom"});this.context.stropheConn.sendIQ(a.tree(),r,i)},connection.prototype._onReceiveInviteFromGroup=function(info){info=eval("("+info+")");var self=this,options={title:"Group invitation",msg:info.user+" invites you to join into group:"+info.group_id,agree:function(){WebIM.doQuery('{"type":"acceptInvitationFromGroup","id":"'+info.group_id+'","user":"'+info.user+'"}',function(e){},function(e,t){var n={data:{data:"acceptInvitationFromGroup error:"+t},type:_code.WEBIM_CONNECTION_ACCEPT_INVITATION_FROM_GROUP};self.onError(n)})},reject:function(){WebIM.doQuery('{"type":"declineInvitationFromGroup","id":"'+info.group_id+'","user":"'+info.user+'"}',function(e){},function(e,t){var n={data:{data:"declineInvitationFromGroup error:"+t},type:_code.WEBIM_CONNECTION_DECLINE_INVITATION_FROM_GROUP};self.onError(n)})}};this.onConfirmPop(options)},connection.prototype._onReceiveInviteAcceptionFromGroup=function(info){info=eval("("+info+")");var options={title:"Group invitation response",msg:info.user+" agreed to join into group:"+info.group_id,agree:function(){}};this.onConfirmPop(options)},connection.prototype._onReceiveInviteDeclineFromGroup=function(info){info=eval("("+info+")");var options={title:"Group invitation response",msg:info.user+" rejected to join into group:"+info.group_id,agree:function(){}};this.onConfirmPop(options)},connection.prototype._onAutoAcceptInvitationFromGroup=function(info){info=eval("("+info+")");var options={title:"Group invitation",msg:"You had joined into the group:"+info.group_name+" automatically.Inviter:"+info.user,agree:function(){}};this.onConfirmPop(options)},connection.prototype._onLeaveGroup=function(info){info=eval("("+info+")");var options={title:"Group notification",msg:"You have been out of the group:"+info.group_id+".Reason:"+info.msg,agree:function(){}};this.onConfirmPop(options)},connection.prototype._onReceiveJoinGroupApplication=function(info){info=eval("("+info+")");var self=this,options={title:"Group join application",msg:info.user+" applys to join into group:"+info.group_id,agree:function(){WebIM.doQuery('{"type":"acceptJoinGroupApplication","id":"'+info.group_id+'","user":"'+info.user+'"}',function(e){},function(e,t){var n={data:{data:"acceptJoinGroupApplication error:"+t},type:_code.WEBIM_CONNECTION_ACCEPT_JOIN_GROUP};self.onError(n)})},reject:function(){WebIM.doQuery('{"type":"declineJoinGroupApplication","id":"'+info.group_id+'","user":"'+info.user+'"}',function(e){},function(e,t){var n={data:{data:"declineJoinGroupApplication error:"+t},type:_code.WEBIM_CONNECTION_DECLINE_JOIN_GROUP};self.onError(n)})}};this.onConfirmPop(options)},connection.prototype._onReceiveAcceptionFromGroup=function(info){info=eval("("+info+")");var options={title:"Group notification",msg:"You had joined into the group:"+info.group_name+".",agree:function(){}};this.onConfirmPop(options)},connection.prototype._onReceiveRejectionFromGroup=function(){info=eval("("+info+")");var options={title:"Group notification",msg:"You have been rejected to join into the group:"+info.group_name+".",agree:function(){}};this.onConfirmPop(options)},connection.prototype._onUpdateMyGroupList=function(e){this.onUpdateMyGroupList(e)},connection.prototype._onUpdateMyRoster=function(e){this.onUpdateMyRoster(e)},connection.prototype.reconnect=function(){var e=this;setTimeout(function(){_login(e.context.restTokenData,e)},1e3*(0==this.autoReconnectNumTotal?0:this.autoReconnectInterval)),this.autoReconnectNumTotal++},connection.prototype.closed=function(){var e={data:{data:"Closed error"},type:_code.WEBIM_CONNECTION_CLOSED};this.onError(e)},connection.prototype.getBlacklist=function(e){e=e||{};var t=$iq({type:"get"}),n=e.success||_utils.emptyfn,r=e.error||_utils.emptyfn,o=this;t.c("query",{xmlns:"jabber:iq:privacy"}).c("list",{name:"special"}),this.context.stropheConn.sendIQ(t.tree(),function(e){o.onBlacklistUpdate(_parsePrivacy(e)),n()},function(){o.onBlacklistUpdate([]),r()})},connection.prototype.addToBlackList=function(e){for(var t=$iq({type:"set"}),n=e.list||{},r=e.type||"jid",o=e.success||_utils.emptyfn,i=e.error||_utils.emptyfn,a=t.c("query",{xmlns:"jabber:iq:privacy"}).c("list",{name:"special"}),s=(0,_keys2.default)(n),c=s.length,u=2,l=0;l<c;l++){var p=n[s[l]],r=p.type||"jid",d=p.jid;a=a.c("item",{action:"deny",order:u++,type:r,value:d}).c("message"),l!==c-1&&(a=a.up().up())}this.context.stropheConn.sendIQ(a.tree(),o,i)},connection.prototype.removeFromBlackList=function(e){for(var t=$iq({type:"set"}),n=e.list||{},r=e.success||_utils.emptyfn,o=e.error||_utils.emptyfn,i=t.c("query",{xmlns:"jabber:iq:privacy"}).c("list",{name:"special"}),a=(0,_keys2.default)(n),s=a.length,c=0;c<s;c++){var u=n[a[c]],l=u.type||"jid",p=u.jid,d=u.order;i=i.c("item",{action:"deny",order:d,type:l,value:p}).c("message"),c!==s-1&&(i=i.up().up())}this.context.stropheConn.sendIQ(i.tree(),r,o)},connection.prototype._getGroupJid=function(e){return(this.context.appKey||"")+"_"+e+"@conference."+this.domain},connection.prototype.addToGroupBlackList=function(e){var t=e.success||_utils.emptyfn,n=e.error||_utils.emptyfn,r=_getJid(e,this),o=this._getGroupJid(e.roomId),i=$iq({type:"set",to:o});i.c("query",{xmlns:"http://jabber.org/protocol/muc#admin"}).c("item",{affiliation:"outcast",jid:r}),this.context.stropheConn.sendIQ(i.tree(),t,n)},connection.prototype.getGroupBlacklist=function(e){var t=e.success||_utils.emptyfn,n=e.error||_utils.emptyfn,r=this._getGroupJid(e.roomId),o=$iq({type:"get",to:r});o.c("query",{xmlns:"http://jabber.org/protocol/muc#admin"}).c("item",{affiliation:"outcast"}),this.context.stropheConn.sendIQ(o.tree(),function(e){t(_parseGroupBlacklist(e))},function(){n()})},connection.prototype.removeGroupMemberFromBlacklist=function(e){var t=e.success||_utils.emptyfn,n=e.error||_utils.emptyfn,r=_getJid(e,this),o=this._getGroupJid(e.roomId),i=$iq({type:"set",to:o});i.c("query",{xmlns:"http://jabber.org/protocol/muc#admin"}).c("item",{affiliation:"none",jid:r}),this.context.stropheConn.sendIQ(i.tree(),function(e){t()},function(){n()})},connection.prototype.changeGroupSubject=function(e){var t=e.success||_utils.emptyfn,n=e.error||_utils.emptyfn,r=this._getGroupJid(e.roomId),o=$iq({type:"set",to:r});o.c("query",{xmlns:"http://jabber.org/protocol/muc#owner"}).c("x",{type:"submit",xmlns:"jabber:x:data"}).c("field",{var:"FORM_TYPE"}).c("value").t("http://jabber.org/protocol/muc#roomconfig").up().up().c("field",{var:"muc#roomconfig_roomname"}).c("value").t(e.subject).up().up().c("field",{var:"muc#roomconfig_roomdesc"}).c("value").t(e.description),this.context.stropheConn.sendIQ(o.tree(),function(e){t()},function(){n()})},connection.prototype.destroyGroup=function(e){var t=e.success||_utils.emptyfn,n=e.error||_utils.emptyfn,r=this._getGroupJid(e.roomId),o=$iq({type:"set",to:r});o.c("query",{xmlns:"http://jabber.org/protocol/muc#owner"}).c("destroy").c("reason").t(e.reason||""),this.context.stropheConn.sendIQ(o.tree(),function(e){t()},function(){n()})},connection.prototype.leaveGroupBySelf=function(e){var t=this,n=e.success||_utils.emptyfn,r=e.error||_utils.emptyfn,o=_getJid(e,this),i=this._getGroupJid(e.roomId),a=$iq({type:"set",to:i});a.c("query",{xmlns:"http://jabber.org/protocol/muc#admin"}).c("item",{affiliation:"none",jid:o}),this.context.stropheConn.sendIQ(a.tree(),function(e){n(e);var r=$pres({type:"unavailable",to:i+"/"+t.context.userId});t.sendCommand(r.tree())},function(e){r(e)})},connection.prototype.leaveGroup=function(e){for(var t=e.success||_utils.emptyfn,n=e.error||_utils.emptyfn,r=e.list||[],o=this._getGroupJid(e.roomId),i=$iq({type:"set",to:o}),a=i.c("query",{xmlns:"http://jabber.org/protocol/muc#admin"}),s=(0,_keys2.default)(r),c=s.length,u=0;u<c;u++){var l=r[s[u]],p=_getJidByName(l,this);a=a.c("item",{affiliation:"none",jid:p}).up().c("item",{role:"none",jid:p}).up()}this.context.stropheConn.sendIQ(i.tree(),function(e){t(e)},function(e){n(e)})},connection.prototype.addGroupMembers=function(e){for(var t=e.success||_utils.emptyfn,n=e.error||_utils.emptyfn,r=e.list||[],o=this._getGroupJid(e.roomId),i=$iq({type:"set",to:o}),a=i.c("query",{xmlns:"http://jabber.org/protocol/muc#admin"}),s=r.length,c=0;c<s;c++){var u=r[c],l=_getJidByName(u,this);a=a.c("item",{affiliation:"member",jid:l}).up();var p=$msg({to:o}).c("x",{xmlns:"http://jabber.org/protocol/muc#user"}).c("invite",{to:l}).c("reason").t(e.reason||"");this.sendCommand(p.tree())}this.context.stropheConn.sendIQ(i.tree(),function(e){t(e)},function(e){n(e)})},connection.prototype.acceptInviteFromGroup=function(e){e.success=function(){},this.addGroupMembers(e)},connection.prototype.rejectInviteFromGroup=function(e){},connection.prototype.createGroupAsync=function(e){var t=e.from,n=this,r=this._getGroupJid(t),o=(this.context.userId,this.groupOption),i=e.success||_utils.emptyfn,a=$iq({type:"get",to:r}).c("query",{xmlns:"http://jabber.org/protocol/muc#owner"});n.context.stropheConn.sendIQ(a.tree(),function(e){if("setAttribute"in e){var a=e.getElementsByTagName("x")[0];a.setAttribute("type","submit")}else Strophe.forEachChild(e,"x",function(e){e.setAttribute("type","submit")});Strophe.info("step 5 ----------"),Strophe.forEachChild(a,"field",function(e){var t=e.getAttribute("var"),n=e.getElementsByTagName("value")[0];switch(Strophe.info(t),t){case"muc#roomconfig_maxusers":_setText(n,o.optionsMaxUsers||200);break;case"muc#roomconfig_roomname":_setText(n,o.subject||"");break;case"muc#roomconfig_roomdesc":_setText(n,o.description||"");break;case"muc#roomconfig_publicroom":_setText(n,+o.optionsPublic);break;case"muc#roomconfig_membersonly":_setText(n,+o.optionsMembersOnly);break;case"muc#roomconfig_moderatedroom":_setText(n,+o.optionsModerate);break;case"muc#roomconfig_persistentroom":_setText(n,1);break;case"muc#roomconfig_allowinvites":_setText(n,+o.optionsAllowInvites);break;case"muc#roomconfig_allowvisitornickchange":case"muc#roomconfig_allowvisitorstatus":case"allow_private_messages":_setText(n,0);break;case"allow_private_messages_from_visitors":_setText(n,"nobody")}});var s=$iq({to:r,type:"set"}).c("query",{xmlns:"http://jabber.org/protocol/muc#owner"}).cnode(a);n.context.stropheConn.sendIQ(s.tree(),function(e){n.addGroupMembers({list:o.members,roomId:t}),i(o)},function(e){})},function(e){})},connection.prototype.createGroup=function(e){this.groupOption=e;var t=+new Date,n=this._getGroupJid(t),r=n+"/"+this.context.userId,o=$pres({to:r}).c("x",{xmlns:"http://jabber.org/protocol/muc"}).up().c("create",{xmlns:"http://jabber.org/protocol/muc"}).up();this.sendCommand(o.tree())},connection.prototype.createGroupNew=function(e){e.data.owner=this.user;var t={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups",dataType:"json",type:"POST",data:(0,_stringify2.default)(e.data),headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};t.success=function(t){e.success(t),this.onCreateGroup(t)}.bind(this),t.error=e.error||_utils.emptyfn,WebIM.utils.ajax(t)},connection.prototype.blockGroup=function(e){var t=e.groupId;t="notification_ignore_"+t;var n={entities:[]};n.entities[0]={},n.entities[0][t]=!0;var r={type:"PUT",url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/users/"+this.user,data:(0,_stringify2.default)(n),headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};r.success=e.success||_utils.emptyfn,r.error=e.error||_utils.emptyfn,WebIM.utils.ajax(r)},connection.prototype.joinGroup=function(e){var t={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+e.groupId+"/apply",type:"POST",dataType:"json",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};t.success=e.success||_utils.emptyfn,t.error=e.error||_utils.emptyfn,WebIM.utils.ajax(t)},connection.prototype.listGroups=function(e){var t=[];if(t.limit=e.limit,t.cursor=e.cursor,t.cursor||delete t.cursor,isNaN(e.limit))throw'The parameter "limit" should be a number';var n={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/publicchatgroups",type:"GET",dataType:"json",data:t,headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};n.success=e.success||_utils.emptyfn,n.error=e.error||_utils.emptyfn,WebIM.utils.ajax(n)},connection.prototype.getGroupInfo=function(e){var t={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+e.groupId,type:"GET",dataType:"json",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};t.success=e.success||_utils.emptyfn,t.error=e.error||_utils.emptyfn,WebIM.utils.ajax(t)},connection.prototype.getGroup=function(e){var t={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/users/"+this.user+"/joined_chatgroups",dataType:"json",type:"GET",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};t.success=e.success||_utils.emptyfn,t.error=e.error||_utils.emptyfn,WebIM.utils.ajax(t)},connection.prototype.listGroupMember=function(e){if(isNaN(e.pageNum)||e.pageNum<=0)throw'The parameter "pageNum" should be a positive number';if(isNaN(e.pageSize)||e.pageSize<=0)throw'The parameter "pageSize" should be a positive number';if(null===e.groupId&&void 0===e.groupId)throw'The parameter "groupId" should be added';var t=[],n=e.groupId;t.pagenum=e.pageNum,t.pagesize=e.pageSize;var r={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+n+"/users",dataType:"json",type:"GET",data:t,headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};r.success=e.success||_utils.emptyfn,r.error=e.error||_utils.emptyfn,WebIM.utils.ajax(r)},connection.prototype.mute=function(e){var t=e.groupId,n={usernames:[e.username],mute_duration:e.muteDuration},r={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+t+"/mute",dataType:"json",type:"POST",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"},data:(0,_stringify2.default)(n)};r.success=e.success||_utils.emptyfn,r.error=e.error||_utils.emptyfn,WebIM.utils.ajax(r)},connection.prototype.removeMute=function(e){var t=e.groupId,n=e.username,r={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+t+"/mute/"+n,dataType:"json",type:"DELETE",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};r.success=e.success||_utils.emptyfn,r.error=e.error||_utils.emptyfn,WebIM.utils.ajax(r)},connection.prototype.getGroupAdmin=function(e){var t=e.groupId,n={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+t+"/admin",dataType:"json",type:"GET",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};n.success=e.success||_utils.emptyfn,n.error=e.error||_utils.emptyfn,WebIM.utils.ajax(n)},connection.prototype.getMuted=function(e){var t=e.groupId,n={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+t+"/mute",dataType:"json",type:"GET",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};n.success=e.success||_utils.emptyfn,n.error=e.error||_utils.emptyfn,WebIM.utils.ajax(n)},connection.prototype.setAdmin=function(e){var t=e.groupId,n={newadmin:e.username},r={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+t+"/admin",type:"POST",dataType:"json",data:(0,_stringify2.default)(n),headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};r.success=e.success||_utils.emptyfn,r.error=e.error||_utils.emptyfn,WebIM.utils.ajax(r)},connection.prototype.removeAdmin=function(e){var t=e.groupId,n=e.username,r={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+t+"/admin/"+n,type:"DELETE",dataType:"json",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};r.success=e.success||_utils.emptyfn,r.error=e.error||_utils.emptyfn,WebIM.utils.ajax(r)},connection.prototype.agreeJoinGroup=function(e){var t=e.groupId,n={applicant:e.applicant,verifyResult:!0,reason:"no clue"},r={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+t+"/apply_verify",type:"POST",dataType:"json",data:(0,_stringify2.default)(n),headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};r.success=e.success||_utils.emptyfn,r.error=e.error||_utils.emptyfn,WebIM.utils.ajax(r)},connection.prototype.rejectJoinGroup=function(e){var t=e.groupId,n={applicant:e.applicant,verifyResult:!1,reason:"no clue"},r={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+t+"/apply_verify",type:"POST",dataType:"json",data:(0,_stringify2.default)(n),headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};r.success=e.success||_utils.emptyfn,r.error=e.error||_utils.emptyfn,WebIM.utils.ajax(r)},connection.prototype.groupBlockSingle=function(e){var t=e.groupId,n=e.username,r={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+t+"/blocks/users/"+n,type:"POST",dataType:"json",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};r.success=e.success||_utils.emptyfn,r.error=e.error||_utils.emptyfn,WebIM.utils.ajax(r)},connection.prototype.groupBlockMulti=function(e){var t=e.groupId,n=e.usernames,r={usernames:n},o={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+t+"/blocks/users",data:(0,_stringify2.default)(r),type:"POST",dataType:"json",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};o.success=e.success||_utils.emptyfn,o.error=e.error||_utils.emptyfn,WebIM.utils.ajax(o)},connection.prototype.removeGroupBlockSingle=function(e){var t=e.groupId,n=e.username,r={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+t+"/blocks/users/"+n,type:"DELETE",dataType:"json",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};r.success=e.success||_utils.emptyfn,r.error=e.error||_utils.emptyfn,WebIM.utils.ajax(r)},connection.prototype.removeGroupBlockMulti=function(e){var t=e.groupId,n=e.username.join(","),r={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+t+"/blocks/users/"+n,type:"DELETE",dataType:"json",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};r.success=e.success||_utils.emptyfn,r.error=e.error||_utils.emptyfn,WebIM.utils.ajax(r)},connection.prototype.dissolveGroup=function(e){var t=e.groupId,n={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+t+"?version=v3",type:"DELETE",dataType:"json",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};n.success=e.success||_utils.emptyfn,n.error=e.error||_utils.emptyfn,WebIM.utils.ajax(n)},connection.prototype.getGroupBlacklistNew=function(e){var t=e.groupId,n={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+t+"/blocks/users",type:"GET",dataType:"json",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};n.success=e.success||_utils.emptyfn,n.error=e.error||_utils.emptyfn,WebIM.utils.ajax(n)},connection.prototype.quitGroup=function(e){var t=e.groupId,n={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+t+"/quit",type:"DELETE",dataType:"json",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};n.success=e.success||_utils.emptyfn,n.error=e.error||_utils.emptyfn,WebIM.utils.ajax(n)},connection.prototype.modifyGroup=function(e){var t=e.groupId,n={groupname:e.groupName,description:e.description},r={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+t,type:"PUT",data:(0,_stringify2.default)(n),dataType:"json",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};r.success=e.success||_utils.emptyfn,r.error=e.error||_utils.emptyfn,WebIM.utils.ajax(r)},connection.prototype.removeSingleGroupMember=function(e){var t=e.groupId,n=e.username,r={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+t+"/users/"+n,type:"DELETE",dataType:"json",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};r.success=e.success||_utils.emptyfn,r.error=e.error||_utils.emptyfn,WebIM.utils.ajax(r)},connection.prototype.removeMultiGroupMember=function(e){var t=e.groupId,n=e.users.join(","),r={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+t+"/users/"+n,type:"DELETE",dataType:"json",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};r.success=e.success||_utils.emptyfn,r.error=e.error||_utils.emptyfn,WebIM.utils.ajax(r)},connection.prototype.inviteToGroup=function(e){var t=e.groupId,n=e.users,r={usernames:n},o={url:this.apiUrl+"/"+this.orgName+"/"+this.appName+"/chatgroups/"+t+"/invite",type:"POST",data:(0,_stringify2.default)(r),dataType:"json",headers:{Authorization:"Bearer "+this.token,"Content-Type":"application/json"}};o.success=e.success||_utils.emptyfn,o.error=e.error||_utils.emptyfn,WebIM.utils.ajax(o)};var WebIM=window.WebIM||{};WebIM.connection=connection,WebIM.utils=_utils,WebIM.statusCode=_code,WebIM.message=_msg.message,WebIM.doQuery=function(e,t,n){void 0!==window.cefQuery&&window.cefQuery({request:e,persistent:!1,onSuccess:t,onFailure:n})},WebIM&&WebIM.config.isDebug&&(Strophe.Connection.prototype.rawOutput=function(e){console.log("%c "+WebIM.utils.ts()+"[send] "+e,"background-color: #e2f7da")}),WebIM&&WebIM.config&&WebIM.config.isSandBox&&(WebIM.config.xmppURL=WebIM.config.xmppURL.replace(".easemob.","-sandbox.easemob."),WebIM.config.apiURL=WebIM.config.apiURL.replace(".easemob.","-sdb.easemob.")),module.exports=WebIM},249:function(e,t,n){n(211);!function(){var e=n(206).utils,r=function e(t,n){return!this instanceof e?new e(t):(this._msg={},"function"==typeof e[t]&&(e[t].prototype.setGroup=this.setGroup,this._msg=new e[t](n)),this._msg)};r.prototype.setGroup=function(e){this.body.group=e},r.read=function(e){this.id=e,this.type="read"},r.read.prototype.set=function(e){this.body={ackId:e.id,to:e.to}},r.delivery=function(e){this.id=e,this.type="delivery"},r.delivery.prototype.set=function(e){this.body={bodyId:e.id,to:e.to}},r.txt=function(e){this.id=e,this.type="txt",this.body={}},r.txt.prototype.set=function(e){this.value=e.msg,this.body={id:this.id,to:e.to,msg:this.value,type:this.type,roomType:e.roomType,ext:e.ext||{},success:e.success,fail:e.fail},!e.roomType&&delete this.body.roomType},r.cmd=function(e){this.id=e,this.type="cmd",this.body={}},r.cmd.prototype.set=function(e){this.value="",this.body={to:e.to,action:e.action,msg:this.value,type:this.type,roomType:e.roomType,ext:e.ext||{},success:e.success},!e.roomType&&delete this.body.roomType},r.location=function(e){this.id=e,this.type="loc",this.body={}},r.location.prototype.set=function(e){this.body={to:e.to,type:this.type,roomType:e.roomType,addr:e.addr,lat:e.lat,lng:e.lng,ext:e.ext||{}}},r.img=function(e){this.id=e,this.type="img",this.body={}},r.img.prototype.set=function(t){t.file=t.file||e.getFileUrl(t.fileInputId),this.value=t.file,this.body={id:this.id,file:this.value,apiUrl:t.apiUrl,to:t.to,type:this.type,ext:t.ext||{},roomType:t.roomType,onFileUploadError:t.onFileUploadError,onFileUploadComplete:t.onFileUploadComplete,success:t.success,fail:t.fail,flashUpload:t.flashUpload,width:t.width,height:t.height,body:t.body,uploadError:t.uploadError,uploadComplete:t.uploadComplete},!t.roomType&&delete this.body.roomType},r.audio=function(e){this.id=e,this.type="audio",this.body={}},r.audio.prototype.set=function(t){t.file=t.file||e.getFileUrl(t.fileInputId),this.value=t.file,this.filename=t.filename||this.value.filename,this.body={id:this.id,file:this.value,filename:this.filename,apiUrl:t.apiUrl,to:t.to,type:this.type,ext:t.ext||{},length:t.length||0,roomType:t.roomType,file_length:t.file_length,onFileUploadError:t.onFileUploadError,onFileUploadComplete:t.onFileUploadComplete,success:t.success,fail:t.fail,flashUpload:t.flashUpload,body:t.body},!t.roomType&&delete this.body.roomType},r.file=function(e){this.id=e,this.type="file",this.body={}},r.file.prototype.set=function(t){t.file=t.file||e.getFileUrl(t.fileInputId),this.value=t.file,this.filename=t.filename||this.value.filename,this.body={id:this.id,file:this.value,filename:this.filename,apiUrl:t.apiUrl,to:t.to,type:this.type,ext:t.ext||{},roomType:t.roomType,onFileUploadError:t.onFileUploadError,onFileUploadComplete:t.onFileUploadComplete,success:t.success,fail:t.fail,flashUpload:t.flashUpload,body:t.body},!t.roomType&&delete this.body.roomType},r.video=function(e){},r.video.prototype.set=function(e){};var o=function e(t){if(!this instanceof e)return new e(t,conn);this.msg=t};o.prototype.send=function(t){var n=this,r=function(n){n.ext=n.ext||{},n.ext.weichat=n.ext.weichat||{},n.ext.weichat.originType=n.ext.weichat.originType||"webim";var r,o={from:t.context.userId||"",to:n.to,bodies:[n.body],ext:n.ext||{}},i=e.stringify(o);if(r=$msg({type:n.group||"chat",to:n.toJid,id:n.id,xmlns:"jabber:client"}).c("body").t(i),n.roomType&&r.up().c("roomtype",{xmlns:"easemob:x:roomtype",type:"chatroom"}),n.bodyId){r=$msg({from:t.context.jid||"",to:n.toJid,id:n.id,xmlns:"jabber:client"}).c("body").t(n.bodyId);var a={xmlns:"urn:xmpp:receipts",id:n.bodyId};r.up().c("delivery",a)}if(n.ackId){if(t.context.jid.indexOf(n.toJid)>=0)return;r=$msg({from:t.context.jid||"",to:n.toJid,id:n.id,xmlns:"jabber:client"}).c("body").t(n.ackId);var s={xmlns:"urn:xmpp:receipts",id:n.ackId};r.up().c("acked",s)}setTimeout(function(){"undefined"!=typeof _msgHash&&_msgHash[n.id]&&_msgHash[n.id].msg.fail instanceof Function&&_msgHash[n.id].msg.fail(n.id)},6e4),t.sendCommand(r.tree(),n.id)};if(n.msg.file){if(n.msg.body&&n.msg.body.url)return void r(n.msg);var o=n.msg.onFileUploadComplete,i=function(e){if(e.entities[0]["file-metadata"]){var i=e.entities[0]["file-metadata"]["content-length"];n.msg.filetype=e.entities[0]["file-metadata"]["content-type"],i>204800&&(n.msg.thumbnail=!0)}n.msg.body={type:n.msg.type||"file",url:("https:"!=location.protocol&&t.isHttpDNS?t.apiUrl+e.uri.substr(e.uri.indexOf("/",9)):e.uri)+"/"+e.entities[0].uuid,secret:e.entities[0]["share-secret"],filename:n.msg.file.filename||n.msg.filename,size:{width:n.msg.width||0,height:n.msg.height||0},length:n.msg.length||0,file_length:n.msg.ext.file_length||0,filetype:n.msg.filetype},r(n.msg),o instanceof Function&&o(e,n.msg.id)};n.msg.onFileUploadComplete=i,e.uploadFile.call(t,n.msg)}else n.msg.body={type:"chat"===n.msg.type?"txt":n.msg.type,msg:n.msg.msg},"cmd"===n.msg.type?n.msg.body.action=n.msg.action:"loc"===n.msg.type&&(n.msg.body.addr=n.msg.addr,n.msg.body.lat=n.msg.lat,n.msg.body.lng=n.msg.lng),r(n.msg)},t._msg=o,t.message=r}()},250:function(e,t){!function(){function e(e){this.array=void 0===e?[]:new Array(e)}e.prototype={length:function(){return this.array.length},at:function(e){return this.array[e]},set:function(e,t){this.array[e]=t},push:function(e){return this.array.push(e)},slice:function(e,t){return this.array=this.array.slice(e,t)},concat:function(e){this.array=this.array.concat(e)},remove:function(e,t){t=void 0===t?1:t,this.array.splice(e,t)},join:function(e){return this.array.join(e)},clear:function(){this.array.length=0}};var n=function(){this._array_h=new e};n.prototype={_index:0,push:function(e){this._array_h.push(e)},pop:function(){var e=null;return this._array_h.length()&&(e=this._array_h.at(this._index),2*++this._index>=this._array_h.length()&&(this._array_h.slice(this._index),this._index=0)),e},head:function(){var e=null,t=this._array_h.length();return t&&(e=this._array_h.at(t-1)),e},tail:function(){var e=null;return this._array_h.length()&&(e=this._array_h.at(this._index)),e},length:function(){return this._array_h.length()-this._index},empty:function(){return 0===this._array_h.length()},clear:function(){this._array_h.clear()}},t.Queue=n}()}})},function(e,t,n){var r=n(6),o=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return o.stringify.apply(o,arguments)}},function(e,t,n){n(287),e.exports=n(6).Object.keys},function(e,t,n){var r=n(52),o=n(39);n(133)("keys",function(){return function(e){return o(r(e))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o,i,a,s,s,c=n(289),u=r(c),l=n(300),p=r(l),d=n(92),f=r(d),h=n(93),m=r(h),g=n(37),v=r(g);!function(n){if("object"===(0,v.default)(t)&&void 0!==e)e.exports=n();else{i=[],o=n,void 0!==(a="function"==typeof o?o.apply(t,i):o)&&(e.exports=a)}}(function(){return function e(t,n,r){function o(a,c){if(!n[a]){if(!t[a]){var u="function"==typeof s&&s;if(!c&&u)return s(a,!0);if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var p=n[a]={exports:{}};t[a][0].call(p.exports,function(e){var n=t[a][1][e];return o(n||e)},p,p.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof s&&s,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){var r={};r.generateIdentifier=function(){return Math.random().toString(36).substr(2,10)},r.localCName=r.generateIdentifier(),r.splitLines=function(e){return e.trim().split("\n").map(function(e){return e.trim()})},r.splitSections=function(e){return e.split("\nm=").map(function(e,t){return(t>0?"m="+e:e).trim()+"\r\n"})},r.matchPrefix=function(e,t){return r.splitLines(e).filter(function(e){return 0===e.indexOf(t)})},r.parseCandidate=function(e){var t;t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" ");for(var n={foundation:t[0],component:t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],port:parseInt(t[5],10),type:t[7]},r=8;r<t.length;r+=2)switch(t[r]){case"raddr":n.relatedAddress=t[r+1];break;case"rport":n.relatedPort=parseInt(t[r+1],10);break;case"tcptype":n.tcpType=t[r+1]}return n},r.writeCandidate=function(e){var t=[];t.push(e.foundation),t.push(e.component),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.ip),t.push(e.port);var n=e.type;return t.push("typ"),t.push(n),"host"!==n&&e.relatedAddress&&e.relatedPort&&(t.push("raddr"),t.push(e.relatedAddress),t.push("rport"),t.push(e.relatedPort)),e.tcpType&&"tcp"===e.protocol.toLowerCase()&&(t.push("tcptype"),t.push(e.tcpType)),"candidate:"+t.join(" ")},r.parseRtpMap=function(e){var t=e.substr(9).split(" "),n={payloadType:parseInt(t.shift(),10)};return t=t[0].split("/"),n.name=t[0],n.clockRate=parseInt(t[1],10),n.numChannels=3===t.length?parseInt(t[2],10):1,n},r.writeRtpMap=function(e){var t=e.payloadType;return void 0!==e.preferredPayloadType&&(t=e.preferredPayloadType),"a=rtpmap:"+t+" "+e.name+"/"+e.clockRate+(1!==e.numChannels?"/"+e.numChannels:"")+"\r\n"},r.parseExtmap=function(e){var t=e.substr(9).split(" ");return{id:parseInt(t[0],10),uri:t[1]}},r.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+" "+e.uri+"\r\n"},r.parseFmtp=function(e){for(var t,n={},r=e.substr(e.indexOf(" ")+1).split(";"),o=0;o<r.length;o++)t=r[o].trim().split("="),n[t[0].trim()]=t[1];return n},r.writeFmtp=function(e){var t="",n=e.payloadType;if(void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.parameters&&(0,m.default)(e.parameters).length){var r=[];(0,m.default)(e.parameters).forEach(function(t){r.push(t+"="+e.parameters[t])}),t+="a=fmtp:"+n+" "+r.join(";")+"\r\n"}return t},r.parseRtcpFb=function(e){var t=e.substr(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},r.writeRtcpFb=function(e){var t="",n=e.payloadType;return void 0!==e.preferredPayloadType&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(function(e){t+="a=rtcp-fb:"+n+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"}),t},r.parseSsrcMedia=function(e){var t=e.indexOf(" "),n={ssrc:parseInt(e.substr(7,t-7),10)},r=e.indexOf(":",t);return r>-1?(n.attribute=e.substr(t+1,r-t-1),n.value=e.substr(r+1)):n.attribute=e.substr(t+1),n},r.getDtlsParameters=function(e,t){var n=r.splitLines(e);n=n.concat(r.splitLines(t));var o=n.filter(function(e){return 0===e.indexOf("a=fingerprint:")})[0].substr(14);return{role:"auto",fingerprints:[{algorithm:o.split(" ")[0],value:o.split(" ")[1]}]}},r.writeDtlsParameters=function(e,t){var n="a=setup:"+t+"\r\n";return e.fingerprints.forEach(function(e){n+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"}),n},r.getIceParameters=function(e,t){var n=r.splitLines(e);return n=n.concat(r.splitLines(t)),{usernameFragment:n.filter(function(e){return 0===e.indexOf("a=ice-ufrag:")})[0].substr(12),password:n.filter(function(e){return 0===e.indexOf("a=ice-pwd:")})[0].substr(10)}},r.writeIceParameters=function(e){return"a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n"},r.parseRtpParameters=function(e){for(var t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=r.splitLines(e),o=n[0].split(" "),i=3;i<o.length;i++){var a=o[i],s=r.matchPrefix(e,"a=rtpmap:"+a+" ")[0];if(s){var c=r.parseRtpMap(s),u=r.matchPrefix(e,"a=fmtp:"+a+" ");switch(c.parameters=u.length?r.parseFmtp(u[0]):{},c.rtcpFeedback=r.matchPrefix(e,"a=rtcp-fb:"+a+" ").map(r.parseRtcpFb),t.codecs.push(c),c.name.toUpperCase()){case"RED":case"ULPFEC":t.fecMechanisms.push(c.name.toUpperCase())}}}return r.matchPrefix(e,"a=extmap:").forEach(function(e){t.headerExtensions.push(r.parseExtmap(e))}),t},r.writeRtpDescription=function(e,t){var n="";return n+="m="+e+" ",n+=t.codecs.length>0?"9":"0",n+=" UDP/TLS/RTP/SAVPF ",n+=t.codecs.map(function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType}).join(" ")+"\r\n",n+="c=IN IP4 0.0.0.0\r\n",n+="a=rtcp:9 IN IP4 0.0.0.0\r\n",t.codecs.forEach(function(e){n+=r.writeRtpMap(e),n+=r.writeFmtp(e),n+=r.writeRtcpFb(e)}),n+="a=rtcp-mux\r\n"},r.parseRtpEncodingParameters=function(e){var t,n=[],o=r.parseRtpParameters(e),i=-1!==o.fecMechanisms.indexOf("RED"),a=-1!==o.fecMechanisms.indexOf("ULPFEC"),s=r.matchPrefix(e,"a=ssrc:").map(function(e){return r.parseSsrcMedia(e)}).filter(function(e){return"cname"===e.attribute}),c=s.length>0&&s[0].ssrc,u=r.matchPrefix(e,"a=ssrc-group:FID").map(function(e){var t=e.split(" ");return t.shift(),t.map(function(e){return parseInt(e,10)})});u.length>0&&u[0].length>1&&u[0][0]===c&&(t=u[0][1]),o.codecs.forEach(function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var r={ssrc:c,codecPayloadType:parseInt(e.parameters.apt,10),rtx:{payloadType:e.payloadType,ssrc:t}};n.push(r),i&&(r=JSON.parse((0,f.default)(r)),r.fec={ssrc:t,mechanism:a?"red+ulpfec":"red"},n.push(r))}}),0===n.length&&c&&n.push({ssrc:c});var l=r.matchPrefix(e,"b=");return l.length&&(0===l[0].indexOf("b=TIAS:")?l=parseInt(l[0].substr(7),10):0===l[0].indexOf("b=AS:")&&(l=parseInt(l[0].substr(5),10)),n.forEach(function(e){e.maxBitrate=l})),n},r.writeSessionBoilerplate=function(){return"v=0\r\no=thisisadapterortc 8169639915646943137 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},r.writeMediaSection=function(e,t,n,o){var i=r.writeRtpDescription(e.kind,t);if(i+=r.writeIceParameters(e.iceGatherer.getLocalParameters()),i+=r.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===n?"actpass":"active"),i+="a=mid:"+e.mid+"\r\n",e.rtpSender&&e.rtpReceiver?i+="a=sendrecv\r\n":e.rtpSender?i+="a=sendonly\r\n":e.rtpReceiver?i+="a=recvonly\r\n":i+="a=inactive\r\n",e.rtpSender){var a="msid:"+o.id+" "+e.rtpSender.track.id+"\r\n";i+="a="+a,i+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+a}return i+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+r.localCName+"\r\n"},r.getDirection=function(e,t){for(var n=r.splitLines(e),o=0;o<n.length;o++)switch(n[o]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return n[o].substr(2)}return t?r.getDirection(t):"sendrecv"},t.exports=r},{}],2:[function(e,t,n){!function(){var n=e("./utils").log,r=e("./utils").browserDetails;t.exports.browserDetails=r,t.exports.extractVersion=e("./utils").extractVersion,t.exports.disableLog=e("./utils").disableLog;var o=e("./chrome/chrome_shim")||null,i=e("./edge/edge_shim")||null,a=e("./firefox/firefox_shim")||null,s=e("./safari/safari_shim")||null;switch(r.browser){case"opera":case"chrome":if(!o||!o.shimPeerConnection)return void n("Chrome shim is not included in this adapter release.");n("adapter.js shimming chrome."),t.exports.browserShim=o,o.shimGetUserMedia(),o.shimMediaStream(),o.shimSourceObject(),o.shimPeerConnection(),o.shimOnTrack();break;case"firefox":if(!a||!a.shimPeerConnection)return void n("Firefox shim is not included in this adapter release.");n("adapter.js shimming firefox."),t.exports.browserShim=a,a.shimGetUserMedia(),a.shimSourceObject(),a.shimPeerConnection(),a.shimOnTrack();break;case"edge":if(!i||!i.shimPeerConnection)return void n("MS edge shim is not included in this adapter release.");n("adapter.js shimming edge."),t.exports.browserShim=i,i.shimGetUserMedia(),i.shimPeerConnection();break;case"safari":if(!s)return void n("Safari shim is not included in this adapter release.");n("adapter.js shimming safari."),t.exports.browserShim=s,s.shimGetUserMedia();break;default:n("Unsupported browser!")}}()},{"./chrome/chrome_shim":3,"./edge/edge_shim":5,"./firefox/firefox_shim":7,"./safari/safari_shim":9,"./utils":10}],3:[function(e,t,n){var r=e("../utils.js").log,o=e("../utils.js").browserDetails,i={shimMediaStream:function(){window.MediaStream=window.MediaStream||window.webkitMediaStream},shimOnTrack:function(){"object"!==("undefined"==typeof window?"undefined":(0,v.default)(window))||!window.RTCPeerConnection||"ontrack"in window.RTCPeerConnection.prototype||Object.defineProperty(window.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){var t=this;this._ontrack&&(this.removeEventListener("track",this._ontrack),this.removeEventListener("addstream",this._ontrackpoly)),this.addEventListener("track",this._ontrack=e),this.addEventListener("addstream",this._ontrackpoly=function(e){e.stream.addEventListener("addtrack",function(n){var r=new Event("track");r.track=n.track,r.receiver={track:n.track},r.streams=[e.stream],t.dispatchEvent(r)}),e.stream.getTracks().forEach(function(t){var n=new Event("track");n.track=t,n.receiver={track:t},n.streams=[e.stream],this.dispatchEvent(n)}.bind(this))}.bind(this))}})},shimSourceObject:function(){"object"===("undefined"==typeof window?"undefined":(0,v.default)(window))&&(!window.HTMLMediaElement||"srcObject"in window.HTMLMediaElement.prototype||Object.defineProperty(window.HTMLMediaElement.prototype,"srcObject",{get:function(){return this._srcObject},set:function(e){var t=this;if(this._srcObject=e,this.src&&URL.revokeObjectURL(this.src),!e)return void(this.src="");this.src=URL.createObjectURL(e),e.addEventListener("addtrack",function(){t.src&&URL.revokeObjectURL(t.src),t.src=URL.createObjectURL(e)}),e.addEventListener("removetrack",function(){t.src&&URL.revokeObjectURL(t.src),t.src=URL.createObjectURL(e)})}}))},shimPeerConnection:function(){window.RTCPeerConnection=function(e,t){r("PeerConnection"),e&&e.iceTransportPolicy&&(e.iceTransports=e.iceTransportPolicy);var n=new webkitRTCPeerConnection(e,t),o=n.getStats.bind(n);return n.getStats=function(e,t,n){var r=this,i=arguments;if(arguments.length>0&&"function"==typeof e)return o(e,t);var a=function(e){var t={};return e.result().forEach(function(e){var n={id:e.id,timestamp:e.timestamp,type:e.type};e.names().forEach(function(t){n[t]=e.stat(t)}),t[n.id]=n}),t},s=function(e,t){var n=new p.default((0,m.default)(e).map(function(t){return[t,e[t]]}));return t=t||e,(0,m.default)(t).forEach(function(e){n[e]=t[e]}),n};if(arguments.length>=2){var c=function(e){i[1](s(a(e)))};return o.apply(this,[c,arguments[0]])}return new u.default(function(t,n){1===i.length&&"object"===(void 0===e?"undefined":(0,v.default)(e))?o.apply(r,[function(e){t(s(a(e)))},n]):o.apply(r,[function(e){t(s(a(e),e.result()))},n])}).then(t,n)},n},window.RTCPeerConnection.prototype=webkitRTCPeerConnection.prototype,webkitRTCPeerConnection.generateCertificate&&Object.defineProperty(window.RTCPeerConnection,"generateCertificate",{get:function(){return webkitRTCPeerConnection.generateCertificate}}),["createOffer","createAnswer"].forEach(function(e){var t=webkitRTCPeerConnection.prototype[e];webkitRTCPeerConnection.prototype[e]=function(){var e=this;if(arguments.length<1||1===arguments.length&&"object"===(0,v.default)(arguments[0])){var n=1===arguments.length?arguments[0]:void 0;return new u.default(function(r,o){t.apply(e,[r,o,n])})}return t.apply(this,arguments)}}),o.version<51&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(e){var t=webkitRTCPeerConnection.prototype[e];webkitRTCPeerConnection.prototype[e]=function(){var e=arguments,n=this,r=new u.default(function(r,o){t.apply(n,[e[0],r,o])});return e.length<2?r:r.then(function(){e[1].apply(null,[])},function(t){e.length>=3&&e[2].apply(null,[t])})}}),["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(e){var t=webkitRTCPeerConnection.prototype[e];webkitRTCPeerConnection.prototype[e]=function(){return arguments[0]=new("addIceCandidate"===e?RTCIceCandidate:RTCSessionDescription)(arguments[0]),t.apply(this,arguments)}});var e=RTCPeerConnection.prototype.addIceCandidate;RTCPeerConnection.prototype.addIceCandidate=function(){return null===arguments[0]?(arguments[1]&&arguments[1].apply(null),u.default.resolve()):e.apply(this,arguments)}}};t.exports={shimMediaStream:i.shimMediaStream,shimOnTrack:i.shimOnTrack,shimSourceObject:i.shimSourceObject,shimPeerConnection:i.shimPeerConnection,shimGetUserMedia:e("./getusermedia")}},{"../utils.js":10,"./getusermedia":4}],4:[function(e,t,n){var r=e("../utils.js").log;t.exports=function(){var e=function(e){if("object"!==(void 0===e?"undefined":(0,v.default)(e))||e.mandatory||e.optional)return e;var t={};return(0,m.default)(e).forEach(function(n){if("require"!==n&&"advanced"!==n&&"mediaSource"!==n){var r="object"===(0,v.default)(e[n])?e[n]:{ideal:e[n]};void 0!==r.exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact);var o=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==r.ideal){t.optional=t.optional||[];var i={};"number"==typeof r.ideal?(i[o("min",n)]=r.ideal,t.optional.push(i),i={},i[o("max",n)]=r.ideal,t.optional.push(i)):(i[o("",n)]=r.ideal,t.optional.push(i))}void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[o("",n)]=r.exact):["min","max"].forEach(function(e){void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[o(e,n)]=r[e])})}}),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},t=function(t,n){if(t=JSON.parse((0,f.default)(t)),t&&t.audio&&(t.audio=e(t.audio)),t&&"object"===(0,v.default)(t.video)){var o=t.video.facingMode;if((o=o&&("object"===(void 0===o?"undefined":(0,v.default)(o))?o:{ideal:o}))&&("user"===o.exact||"environment"===o.exact||"user"===o.ideal||"environment"===o.ideal)&&(!navigator.mediaDevices.getSupportedConstraints||!navigator.mediaDevices.getSupportedConstraints().facingMode)&&(delete t.video.facingMode,"environment"===o.exact||"environment"===o.ideal))return navigator.mediaDevices.enumerateDevices().then(function(i){i=i.filter(function(e){return"videoinput"===e.kind});var a=i.find(function(e){return-1!==e.label.toLowerCase().indexOf("back")})||i.length&&i[i.length-1];return a&&(t.video.deviceId=o.exact?{exact:a.deviceId}:{ideal:a.deviceId}),t.video=e(t.video),r("chrome: "+(0,f.default)(t)),n(t)});t.video=e(t.video)}return r("chrome: "+(0,f.default)(t)),n(t)},n=function(e){return{name:{PermissionDeniedError:"NotAllowedError",ConstraintNotSatisfiedError:"OverconstrainedError"}[e.name]||e.name,message:e.message,constraint:e.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}},o=function(e,r,o){t(e,function(e){navigator.webkitGetUserMedia(e,r,function(e){o(n(e))})})};navigator.getUserMedia=o;var i=function(e){return new u.default(function(t,n){navigator.getUserMedia(e,t,n)})};if(navigator.mediaDevices||(navigator.mediaDevices={getUserMedia:i,enumerateDevices:function(){return new u.default(function(e){var t={audio:"audioinput",video:"videoinput"};return MediaStreamTrack.getSources(function(n){e(n.map(function(e){return{label:e.label,kind:t[e.kind],deviceId:e.id,groupId:""}}))})})}}),navigator.mediaDevices.getUserMedia){var a=navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices);navigator.mediaDevices.getUserMedia=function(e){return t(e,function(e){return a(e).then(function(t){if(e.audio&&!t.getAudioTracks().length||e.video&&!t.getVideoTracks().length)throw t.getTracks().forEach(function(e){e.stop()}),new DOMException("","NotFoundError");return t},function(e){return u.default.reject(n(e))})})}}else navigator.mediaDevices.getUserMedia=function(e){return i(e)};void 0===navigator.mediaDevices.addEventListener&&(navigator.mediaDevices.addEventListener=function(){r("Dummy mediaDevices.addEventListener called.")}),void 0===navigator.mediaDevices.removeEventListener&&(navigator.mediaDevices.removeEventListener=function(){r("Dummy mediaDevices.removeEventListener called.")})}},{"../utils.js":10}],5:[function(e,t,n){var r=e("sdp"),o=e("../utils").browserDetails,i={shimPeerConnection:function(){window.RTCIceGatherer&&(window.RTCIceCandidate||(window.RTCIceCandidate=function(e){return e}),window.RTCSessionDescription||(window.RTCSessionDescription=function(e){return e})),window.RTCPeerConnection=function(e){var t=this,n=document.createDocumentFragment();if(["addEventListener","removeEventListener","dispatchEvent"].forEach(function(e){t[e]=n[e].bind(n)}),this.onicecandidate=null,this.onaddstream=null,this.ontrack=null,this.onremovestream=null,this.onsignalingstatechange=null,this.oniceconnectionstatechange=null,this.onnegotiationneeded=null,this.ondatachannel=null,this.localStreams=[],this.remoteStreams=[],this.getLocalStreams=function(){return t.localStreams},this.getRemoteStreams=function(){return t.remoteStreams},this.localDescription=new RTCSessionDescription({type:"",sdp:""}),this.remoteDescription=new RTCSessionDescription({type:"",sdp:""}),this.signalingState="stable",this.iceConnectionState="new",this.iceGatheringState="new",this.iceOptions={gatherPolicy:"all",iceServers:[]},e&&e.iceTransportPolicy)switch(e.iceTransportPolicy){case"all":case"relay":this.iceOptions.gatherPolicy=e.iceTransportPolicy;break;case"none":throw new TypeError('iceTransportPolicy "none" not supported')}if(this.usingBundle=e&&"max-bundle"===e.bundlePolicy,e&&e.iceServers){var r=JSON.parse((0,f.default)(e.iceServers));this.iceOptions.iceServers=r.filter(function(e){if(e&&e.urls){var t=e.urls;return"string"==typeof t&&(t=[t]),!!(t=t.filter(function(e){return 0===e.indexOf("turn:")&&-1!==e.indexOf("transport=udp")&&-1===e.indexOf("turn:[")||0===e.indexOf("stun:")&&o.version>=14393})[0])}return!1})}this._config=e,this.transceivers=[],this._localIceCandidatesBuffer=[]},window.RTCPeerConnection.prototype._emitBufferedCandidates=function(){var e=this,t=r.splitSections(e.localDescription.sdp);this._localIceCandidatesBuffer.forEach(function(n){if(n.candidate&&0!==(0,m.default)(n.candidate).length)-1===n.candidate.candidate.indexOf("typ endOfCandidates")&&(t[n.candidate.sdpMLineIndex+1]+="a="+n.candidate.candidate+"\r\n");else for(var r=1;r<t.length;r++)-1===t[r].indexOf("\r\na=end-of-candidates\r\n")&&(t[r]+="a=end-of-candidates\r\n");if(e.localDescription.sdp=t.join(""),e.dispatchEvent(n),null!==e.onicecandidate&&e.onicecandidate(n),!n.candidate&&"complete"!==e.iceGatheringState){e.transceivers.every(function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state})&&(e.iceGatheringState="complete")}}),this._localIceCandidatesBuffer=[]},window.RTCPeerConnection.prototype.getConfiguration=function(){return this._config},window.RTCPeerConnection.prototype.addStream=function(e){this.localStreams.push(e.clone()),this._maybeFireNegotiationNeeded()},window.RTCPeerConnection.prototype.removeStream=function(e){var t=this.localStreams.indexOf(e);t>-1&&(this.localStreams.splice(t,1),this._maybeFireNegotiationNeeded())},window.RTCPeerConnection.prototype.getSenders=function(){return this.transceivers.filter(function(e){return!!e.rtpSender}).map(function(e){return e.rtpSender})},window.RTCPeerConnection.prototype.getReceivers=function(){return this.transceivers.filter(function(e){return!!e.rtpReceiver}).map(function(e){return e.rtpReceiver})},window.RTCPeerConnection.prototype._getCommonCapabilities=function(e,t){var n={codecs:[],headerExtensions:[],fecMechanisms:[]};return e.codecs.forEach(function(e){for(var r=0;r<t.codecs.length;r++){var o=t.codecs[r];if(e.name.toLowerCase()===o.name.toLowerCase()&&e.clockRate===o.clockRate&&e.numChannels===o.numChannels){n.codecs.push(o),o.rtcpFeedback=o.rtcpFeedback.filter(function(t){for(var n=0;n<e.rtcpFeedback.length;n++)if(e.rtcpFeedback[n].type===t.type&&e.rtcpFeedback[n].parameter===t.parameter)return!0;return!1});break}}}),e.headerExtensions.forEach(function(e){for(var r=0;r<t.headerExtensions.length;r++){var o=t.headerExtensions[r];if(e.uri===o.uri){n.headerExtensions.push(o);break}}}),n},window.RTCPeerConnection.prototype._createIceAndDtlsTransports=function(e,t){var n=this,o=new RTCIceGatherer(n.iceOptions),i=new RTCIceTransport(o);o.onlocalcandidate=function(a){var s=new Event("icecandidate");s.candidate={sdpMid:e,sdpMLineIndex:t};var c=a.candidate,u=!c||0===(0,m.default)(c).length;u?(void 0===o.state&&(o.state="completed"),s.candidate.candidate="candidate:1 1 udp 1 0.0.0.0 9 typ endOfCandidates"):(c.component="RTCP"===i.component?2:1,s.candidate.candidate=r.writeCandidate(c));var l=r.splitSections(n.localDescription.sdp);-1===s.candidate.candidate.indexOf("typ endOfCandidates")?l[s.candidate.sdpMLineIndex+1]+="a="+s.candidate.candidate+"\r\n":l[s.candidate.sdpMLineIndex+1]+="a=end-of-candidates\r\n",n.localDescription.sdp=l.join("");var p=n.transceivers.every(function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state});switch(n.iceGatheringState){case"new":n._localIceCandidatesBuffer.push(s),u&&p&&n._localIceCandidatesBuffer.push(new Event("icecandidate"));break;case"gathering":n._emitBufferedCandidates(),n.dispatchEvent(s),null!==n.onicecandidate&&n.onicecandidate(s),p&&(n.dispatchEvent(new Event("icecandidate")),null!==n.onicecandidate&&n.onicecandidate(new Event("icecandidate")),n.iceGatheringState="complete")}},i.onicestatechange=function(){n._updateConnectionState()};var a=new RTCDtlsTransport(i);return a.ondtlsstatechange=function(){n._updateConnectionState()},a.onerror=function(){a.state="failed",n._updateConnectionState()},{iceGatherer:o,iceTransport:i,dtlsTransport:a}},window.RTCPeerConnection.prototype._transceive=function(e,t,n){var o=this._getCommonCapabilities(e.localCapabilities,e.remoteCapabilities);t&&e.rtpSender&&(o.encodings=e.sendEncodingParameters,o.rtcp={cname:r.localCName},e.recvEncodingParameters.length&&(o.rtcp.ssrc=e.recvEncodingParameters[0].ssrc),e.rtpSender.send(o)),n&&e.rtpReceiver&&("video"===e.kind&&e.recvEncodingParameters&&e.recvEncodingParameters.forEach(function(e){delete e.rtx}),o.encodings=e.recvEncodingParameters,o.rtcp={cname:e.cname},e.sendEncodingParameters.length&&(o.rtcp.ssrc=e.sendEncodingParameters[0].ssrc),e.rtpReceiver.receive(o))},window.RTCPeerConnection.prototype.setLocalDescription=function(e){var t,n,o=this;if("offer"===e.type)this._pendingOffer&&(t=r.splitSections(e.sdp),n=t.shift(),t.forEach(function(e,t){var n=r.parseRtpParameters(e);o._pendingOffer[t].localCapabilities=n}),this.transceivers=this._pendingOffer,delete this._pendingOffer);else if("answer"===e.type){t=r.splitSections(o.remoteDescription.sdp),n=t.shift();var i=r.matchPrefix(n,"a=ice-lite").length>0;t.forEach(function(e,t){var a=o.transceivers[t],s=a.iceGatherer,c=a.iceTransport,u=a.dtlsTransport,l=a.localCapabilities,p=a.remoteCapabilities;if("0"!==e.split("\n",1)[0].split(" ",2)[1]&&!a.isDatachannel){var d=r.getIceParameters(e,n);if(i){var f=r.matchPrefix(e,"a=candidate:").map(function(e){return r.parseCandidate(e)}).filter(function(e){return"1"===e.component});f.length&&c.setRemoteCandidates(f)}var h=r.getDtlsParameters(e,n);i&&(h.role="server"),o.usingBundle&&0!==t||(c.start(s,d,i?"controlling":"controlled"),u.start(h));var m=o._getCommonCapabilities(l,p);o._transceive(a,m.codecs.length>0,!1)}})}switch(this.localDescription={type:e.type,sdp:e.sdp},e.type){case"offer":this._updateSignalingState("have-local-offer");break;case"answer":this._updateSignalingState("stable");break;default:throw new TypeError('unsupported type "'+e.type+'"')}var a=arguments.length>1&&"function"==typeof arguments[1];if(a){var s=arguments[1];window.setTimeout(function(){s(),"new"===o.iceGatheringState&&(o.iceGatheringState="gathering"),o._emitBufferedCandidates()},0)}var c=u.default.resolve();return c.then(function(){a||("new"===o.iceGatheringState&&(o.iceGatheringState="gathering"),window.setTimeout(o._emitBufferedCandidates.bind(o),500))}),c},window.RTCPeerConnection.prototype.setRemoteDescription=function(e){var t=this,n=new MediaStream,o=[],i=r.splitSections(e.sdp),a=i.shift(),s=r.matchPrefix(a,"a=ice-lite").length>0;switch(this.usingBundle=r.matchPrefix(a,"a=group:BUNDLE ").length>0,i.forEach(function(i,c){var u=r.splitLines(i),l=u[0].substr(2).split(" "),p=l[0],d="0"===l[1],f=r.getDirection(i,a),h=r.matchPrefix(i,"a=mid:");if(h=h.length?h[0].substr(6):r.generateIdentifier(),"application"===p&&"DTLS/SCTP"===l[2])return void(t.transceivers[c]={mid:h,isDatachannel:!0});var m,g,v,y,_,b,C,E,T,w,S,x,I=r.parseRtpParameters(i);d||(S=r.getIceParameters(i,a),x=r.getDtlsParameters(i,a),x.role="client"),E=r.parseRtpEncodingParameters(i);var R,O=r.matchPrefix(i,"a=ssrc:").map(function(e){return r.parseSsrcMedia(e)}).filter(function(e){return"cname"===e.attribute})[0];O&&(R=O.value);var N=r.matchPrefix(i,"a=end-of-candidates",a).length>0,k=r.matchPrefix(i,"a=candidate:").map(function(e){return r.parseCandidate(e)}).filter(function(e){return"1"===e.component});if("offer"!==e.type||d)"answer"!==e.type||d||(m=t.transceivers[c],g=m.iceGatherer,v=m.iceTransport,y=m.dtlsTransport,_=m.rtpSender,b=m.rtpReceiver,C=m.sendEncodingParameters,T=m.localCapabilities,t.transceivers[c].recvEncodingParameters=E,t.transceivers[c].remoteCapabilities=I,t.transceivers[c].cname=R,(s||N)&&k.length&&v.setRemoteCandidates(k),t.usingBundle&&0!==c||(v.start(g,S,"controlling"),y.start(x)),t._transceive(m,"sendrecv"===f||"recvonly"===f,"sendrecv"===f||"sendonly"===f),!b||"sendrecv"!==f&&"sendonly"!==f?delete m.rtpReceiver:(w=b.track,o.push([w,b]),n.addTrack(w)));else{var M=t.usingBundle&&c>0?{iceGatherer:t.transceivers[0].iceGatherer,iceTransport:t.transceivers[0].iceTransport,dtlsTransport:t.transceivers[0].dtlsTransport}:t._createIceAndDtlsTransports(h,c);if(N&&M.iceTransport.setRemoteCandidates(k),T=RTCRtpReceiver.getCapabilities(p),T.codecs=T.codecs.filter(function(e){return"rtx"!==e.name}),C=[{ssrc:1001*(2*c+2)}],b=new RTCRtpReceiver(M.dtlsTransport,p),w=b.track,o.push([w,b]),n.addTrack(w),t.localStreams.length>0&&t.localStreams[0].getTracks().length>=c){var P;"audio"===p?P=t.localStreams[0].getAudioTracks()[0]:"video"===p&&(P=t.localStreams[0].getVideoTracks()[0]),P&&(_=new RTCRtpSender(P,M.dtlsTransport))}t.transceivers[c]={iceGatherer:M.iceGatherer,iceTransport:M.iceTransport,dtlsTransport:M.dtlsTransport,localCapabilities:T,remoteCapabilities:I,rtpSender:_,rtpReceiver:b,kind:p,mid:h,cname:R,sendEncodingParameters:C,recvEncodingParameters:E},t._transceive(t.transceivers[c],!1,"sendrecv"===f||"sendonly"===f)}}),this.remoteDescription={type:e.type,sdp:e.sdp},e.type){case"offer":this._updateSignalingState("have-remote-offer");break;case"answer":this._updateSignalingState("stable");break;default:throw new TypeError('unsupported type "'+e.type+'"')}return n.getTracks().length&&(t.remoteStreams.push(n),window.setTimeout(function(){var e=new Event("addstream");e.stream=n,t.dispatchEvent(e),null!==t.onaddstream&&window.setTimeout(function(){t.onaddstream(e)},0),o.forEach(function(r){var o=r[0],i=r[1],a=new Event("track");a.track=o,a.receiver=i,a.streams=[n],t.dispatchEvent(e),null!==t.ontrack&&window.setTimeout(function(){t.ontrack(a)},0)})},0)),arguments.length>1&&"function"==typeof arguments[1]&&window.setTimeout(arguments[1],0),u.default.resolve()},window.RTCPeerConnection.prototype.close=function(){this.transceivers.forEach(function(e){e.iceTransport&&e.iceTransport.stop(),e.dtlsTransport&&e.dtlsTransport.stop(),e.rtpSender&&e.rtpSender.stop(),e.rtpReceiver&&e.rtpReceiver.stop()}),this._updateSignalingState("closed")},window.RTCPeerConnection.prototype._updateSignalingState=function(e){this.signalingState=e;var t=new Event("signalingstatechange");this.dispatchEvent(t),null!==this.onsignalingstatechange&&this.onsignalingstatechange(t)},window.RTCPeerConnection.prototype._maybeFireNegotiationNeeded=function(){var e=new Event("negotiationneeded");this.dispatchEvent(e),null!==this.onnegotiationneeded&&this.onnegotiationneeded(e)},window.RTCPeerConnection.prototype._updateConnectionState=function(){var e,t=this,n={new:0,closed:0,connecting:0,checking:0,connected:0,completed:0,failed:0};if(this.transceivers.forEach(function(e){n[e.iceTransport.state]++,n[e.dtlsTransport.state]++}),n.connected+=n.completed,e="new",n.failed>0?e="failed":n.connecting>0||n.checking>0?e="connecting":n.disconnected>0?e="disconnected":n.new>0?e="new":(n.connected>0||n.completed>0)&&(e="connected"),e!==t.iceConnectionState){t.iceConnectionState=e;var r=new Event("iceconnectionstatechange");this.dispatchEvent(r),null!==this.oniceconnectionstatechange&&this.oniceconnectionstatechange(r)}},window.RTCPeerConnection.prototype.createOffer=function(){var e=this;if(this._pendingOffer)throw new Error("createOffer called while there is a pending offer.");var t;1===arguments.length&&"function"!=typeof arguments[0]?t=arguments[0]:3===arguments.length&&(t=arguments[2]);var n=[],o=0,i=0;if(this.localStreams.length&&(o=this.localStreams[0].getAudioTracks().length,i=this.localStreams[0].getVideoTracks().length),t){if(t.mandatory||t.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==t.offerToReceiveAudio&&(o=t.offerToReceiveAudio),void 0!==t.offerToReceiveVideo&&(i=t.offerToReceiveVideo)}for(this.localStreams.length&&this.localStreams[0].getTracks().forEach(function(e){n.push({kind:e.kind,track:e,wantReceive:"audio"===e.kind?o>0:i>0}),"audio"===e.kind?o--:"video"===e.kind&&i--});o>0||i>0;)o>0&&(n.push({kind:"audio",wantReceive:!0}),o--),i>0&&(n.push({kind:"video",wantReceive:!0}),i--);var a=r.writeSessionBoilerplate(),s=[];n.forEach(function(t,n){var o=t.track,i=t.kind,a=r.generateIdentifier(),c=e.usingBundle&&n>0?{iceGatherer:s[0].iceGatherer,iceTransport:s[0].iceTransport,dtlsTransport:s[0].dtlsTransport}:e._createIceAndDtlsTransports(a,n),u=RTCRtpSender.getCapabilities(i);u.codecs=u.codecs.filter(function(e){return"rtx"!==e.name}),u.codecs.forEach(function(e){"H264"===e.name&&void 0===e.parameters["level-asymmetry-allowed"]&&(e.parameters["level-asymmetry-allowed"]="1")});var l,p,d=[{ssrc:1001*(2*n+1)}];o&&(l=new RTCRtpSender(o,c.dtlsTransport)),t.wantReceive&&(p=new RTCRtpReceiver(c.dtlsTransport,i)),s[n]={iceGatherer:c.iceGatherer,iceTransport:c.iceTransport,dtlsTransport:c.dtlsTransport,localCapabilities:u,remoteCapabilities:null,rtpSender:l,rtpReceiver:p,kind:i,mid:a,sendEncodingParameters:d,recvEncodingParameters:null}}),this.usingBundle&&(a+="a=group:BUNDLE "+s.map(function(e){return e.mid}).join(" ")+"\r\n"),n.forEach(function(t,n){var o=s[n];a+=r.writeMediaSection(o,o.localCapabilities,"offer",e.localStreams[0])}),this._pendingOffer=s;var c=new RTCSessionDescription({type:"offer",sdp:a});return arguments.length&&"function"==typeof arguments[0]&&window.setTimeout(arguments[0],0,c),u.default.resolve(c)},window.RTCPeerConnection.prototype.createAnswer=function(){var e=this,t=r.writeSessionBoilerplate();this.usingBundle&&(t+="a=group:BUNDLE "+this.transceivers.map(function(e){return e.mid}).join(" ")+"\r\n"),this.transceivers.forEach(function(n){if(n.isDatachannel)return void(t+="m=application 0 DTLS/SCTP 5000\r\nc=IN IP4 0.0.0.0\r\na=mid:"+n.mid+"\r\n");var o=e._getCommonCapabilities(n.localCapabilities,n.remoteCapabilities);t+=r.writeMediaSection(n,o,"answer",e.localStreams[0])});var n=new RTCSessionDescription({type:"answer",sdp:t});return arguments.length&&"function"==typeof arguments[0]&&window.setTimeout(arguments[0],0,n),u.default.resolve(n)},window.RTCPeerConnection.prototype.addIceCandidate=function(e){if(null===e)this.transceivers.forEach(function(e){e.iceTransport.addRemoteCandidate({})});else{var t=e.sdpMLineIndex;if(e.sdpMid)for(var n=0;n<this.transceivers.length;n++)if(this.transceivers[n].mid===e.sdpMid){t=n;break}var o=this.transceivers[t];if(o){var i=(0,m.default)(e.candidate).length>0?r.parseCandidate(e.candidate):{};if("tcp"===i.protocol&&(0===i.port||9===i.port))return;if("1"!==i.component)return;"endOfCandidates"===i.type&&(i={}),o.iceTransport.addRemoteCandidate(i);var a=r.splitSections(this.remoteDescription.sdp);a[t+1]+=(i.type?e.candidate.trim():"a=end-of-candidates")+"\r\n",this.remoteDescription.sdp=a.join("")}}return arguments.length>1&&"function"==typeof arguments[1]&&window.setTimeout(arguments[1],0),u.default.resolve()},window.RTCPeerConnection.prototype.getStats=function(){var e=[];this.transceivers.forEach(function(t){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach(function(n){t[n]&&e.push(t[n].getStats())})});var t=arguments.length>1&&"function"==typeof arguments[1]&&arguments[1];return new u.default(function(n){var r=new p.default;u.default.all(e).then(function(e){e.forEach(function(e){(0,m.default)(e).forEach(function(t){r.set(t,e[t]),r[t]=e[t]})}),t&&window.setTimeout(t,0,r),n(r)})})}}};t.exports={shimPeerConnection:i.shimPeerConnection,shimGetUserMedia:e("./getusermedia")}},{"../utils":10,"./getusermedia":6,sdp:1}],6:[function(e,t,n){t.exports=function(){var e=function(e){return{name:{PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:e.message,constraint:e.constraint,toString:function(){return this.name}}},t=navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices);navigator.mediaDevices.getUserMedia=function(n){return t(n).catch(function(t){return u.default.reject(e(t))})}}},{}],7:[function(e,t,n){var r=e("../utils").browserDetails,o={shimOnTrack:function(){"object"!==("undefined"==typeof window?"undefined":(0,v.default)(window))||!window.RTCPeerConnection||"ontrack"in window.RTCPeerConnection.prototype||Object.defineProperty(window.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){this._ontrack&&(this.removeEventListener("track",this._ontrack),this.removeEventListener("addstream",this._ontrackpoly)),this.addEventListener("track",this._ontrack=e),this.addEventListener("addstream",this._ontrackpoly=function(e){e.stream.getTracks().forEach(function(t){var n=new Event("track");n.track=t,n.receiver={track:t},n.streams=[e.stream],this.dispatchEvent(n)}.bind(this))}.bind(this))}})},shimSourceObject:function(){"object"===("undefined"==typeof window?"undefined":(0,v.default)(window))&&(!window.HTMLMediaElement||"srcObject"in window.HTMLMediaElement.prototype||Object.defineProperty(window.HTMLMediaElement.prototype,"srcObject",{get:function(){return this.mozSrcObject},set:function(e){this.mozSrcObject=e}}))},shimPeerConnection:function(){if("object"===("undefined"==typeof window?"undefined":(0,v.default)(window))&&(window.RTCPeerConnection||window.mozRTCPeerConnection)){window.RTCPeerConnection||(window.RTCPeerConnection=function(e,t){if(r.version<38&&e&&e.iceServers){for(var n=[],o=0;o<e.iceServers.length;o++){var i=e.iceServers[o];if(i.hasOwnProperty("urls"))for(var a=0;a<i.urls.length;a++){var s={url:i.urls[a]};0===i.urls[a].indexOf("turn")&&(s.username=i.username,s.credential=i.credential),n.push(s)}else n.push(e.iceServers[o])}e.iceServers=n}return new mozRTCPeerConnection(e,t)},window.RTCPeerConnection.prototype=mozRTCPeerConnection.prototype,mozRTCPeerConnection.generateCertificate&&Object.defineProperty(window.RTCPeerConnection,"generateCertificate",{get:function(){return mozRTCPeerConnection.generateCertificate}}),window.RTCSessionDescription=mozRTCSessionDescription,window.RTCIceCandidate=mozRTCIceCandidate),["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(e){var t=RTCPeerConnection.prototype[e];RTCPeerConnection.prototype[e]=function(){return arguments[0]=new("addIceCandidate"===e?RTCIceCandidate:RTCSessionDescription)(arguments[0]),t.apply(this,arguments)}});var e=RTCPeerConnection.prototype.addIceCandidate;RTCPeerConnection.prototype.addIceCandidate=function(){return null===arguments[0]?(arguments[1]&&arguments[1].apply(null),u.default.resolve()):e.apply(this,arguments)};var t=function(e){var t=new p.default;return(0,m.default)(e).forEach(function(n){t.set(n,e[n]),t[n]=e[n]}),t},n=RTCPeerConnection.prototype.getStats;RTCPeerConnection.prototype.getStats=function(e,r,o){return n.apply(this,[e||null]).then(function(e){return t(e)}).then(r,o)}}}};t.exports={shimOnTrack:o.shimOnTrack,shimSourceObject:o.shimSourceObject,shimPeerConnection:o.shimPeerConnection,shimGetUserMedia:e("./getusermedia")}},{"../utils":10,"./getusermedia":8}],8:[function(e,t,n){var r=e("../utils").log,o=e("../utils").browserDetails;t.exports=function(){var e=function(e){return{name:{SecurityError:"NotAllowedError",PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:{"The operation is insecure.":"The request is not allowed by the user agent or the platform in the current context."}[e.message]||e.message,constraint:e.constraint,toString:function(){return this.name+(this.message&&": ")+this.message}}},t=function(t,n,i){var a=function(e){if("object"!==(void 0===e?"undefined":(0,v.default)(e))||e.require)return e;var t=[];return(0,m.default)(e).forEach(function(n){if("require"!==n&&"advanced"!==n&&"mediaSource"!==n){var r=e[n]="object"===(0,v.default)(e[n])?e[n]:{ideal:e[n]};if(void 0===r.min&&void 0===r.max&&void 0===r.exact||t.push(n),void 0!==r.exact&&("number"==typeof r.exact?r.min=r.max=r.exact:e[n]=r.exact,delete r.exact),void 0!==r.ideal){e.advanced=e.advanced||[];var o={};"number"==typeof r.ideal?o[n]={min:r.ideal,max:r.ideal}:o[n]=r.ideal,e.advanced.push(o),delete r.ideal,(0,m.default)(r).length||delete e[n]}}}),t.length&&(e.require=t),e};return t=JSON.parse((0,f.default)(t)),o.version<38&&(r("spec: "+(0,f.default)(t)),t.audio&&(t.audio=a(t.audio)),t.video&&(t.video=a(t.video)),r("ff37: "+(0,f.default)(t))),navigator.mozGetUserMedia(t,n,function(t){i(e(t))})},n=function(e){return new u.default(function(n,r){t(e,n,r)})};if(navigator.mediaDevices||(navigator.mediaDevices={getUserMedia:n,addEventListener:function(){},removeEventListener:function(){}}),navigator.mediaDevices.enumerateDevices=navigator.mediaDevices.enumerateDevices||function(){return new u.default(function(e){e([{kind:"audioinput",deviceId:"default",label:"",groupId:""},{kind:"videoinput",deviceId:"default",label:"",groupId:""}])})},o.version<41){var i=navigator.mediaDevices.enumerateDevices.bind(navigator.mediaDevices);navigator.mediaDevices.enumerateDevices=function(){return i().then(void 0,function(e){if("NotFoundError"===e.name)return[];throw e})}}if(o.version<49){var a=navigator.mediaDevices.getUserMedia.bind(navigator.mediaDevices);navigator.mediaDevices.getUserMedia=function(t){return a(t).then(function(e){if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach(function(e){e.stop()}),new DOMException("The object can not be found here.","NotFoundError");return e},function(t){return u.default.reject(e(t))})}}navigator.getUserMedia=function(e,n,r){if(o.version<44)return t(e,n,r);console.warn("navigator.getUserMedia has been replaced by navigator.mediaDevices.getUserMedia"),navigator.mediaDevices.getUserMedia(e).then(n,r)}}},{"../utils":10}],9:[function(e,t,n){var r={shimGetUserMedia:function(){navigator.getUserMedia=navigator.webkitGetUserMedia}};t.exports={shimGetUserMedia:r.shimGetUserMedia}},{}],10:[function(e,t,n){var r=!0,o={disableLog:function(e){return"boolean"!=typeof e?new Error("Argument type: "+(void 0===e?"undefined":(0,v.default)(e))+". Please use a boolean."):(r=e,e?"adapter.js logging disabled":"adapter.js logging enabled")},log:function(){if("object"===("undefined"==typeof window?"undefined":(0,v.default)(window))){if(r)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}},extractVersion:function(e,t,n){var r=e.match(t);return r&&r.length>=n&&parseInt(r[n],10)},detectBrowser:function(){var e={};if(e.browser=null,e.version=null,"undefined"==typeof window||!window.navigator)return e.browser="Not a browser.",e;if(navigator.mozGetUserMedia)e.browser="firefox",e.version=this.extractVersion(navigator.userAgent,/Firefox\/([0-9]+)\./,1);else if(navigator.webkitGetUserMedia)if(window.webkitRTCPeerConnection)e.browser="chrome",e.version=this.extractVersion(navigator.userAgent,/Chrom(e|ium)\/([0-9]+)\./,2);else{if(!navigator.userAgent.match(/Version\/(\d+).(\d+)/))return e.browser="Unsupported webkit-based browser with GUM support but no WebRTC support.",e;e.browser="safari",e.version=this.extractVersion(navigator.userAgent,/AppleWebKit\/([0-9]+)\./,1)}else{if(!navigator.mediaDevices||!navigator.userAgent.match(/Edge\/(\d+).(\d+)$/))return e.browser="Not a supported browser.",e;e.browser="edge",e.version=this.extractVersion(navigator.userAgent,/Edge\/(\d+).(\d+)$/,2)}return e}};t.exports={log:o.log,disableLog:o.disableLog,browserDetails:o.detectBrowser(),extractVersion:o.extractVersion}},{}]},{},[2])(2)})},function(e,t,n){e.exports={default:n(290),__esModule:!0}},function(e,t,n){n(91),n(80),n(85),n(291),n(298),n(299),e.exports=n(6).Promise},function(e,t,n){"use strict";var r,o,i,a,s=n(55),c=n(7),u=n(20),l=n(94),p=n(10),d=n(18),f=n(36),h=n(95),m=n(42),g=n(145),v=n(146).set,y=n(296)(),_=n(96),b=n(147),C=n(148),E=c.TypeError,T=c.process,w=c.Promise,S="process"==l(T),x=function(){},I=o=_.f,R=!!function(){try{var e=w.resolve(1),t=(e.constructor={})[n(8)("species")]=function(e){e(x,x)};return(S||"function"==typeof PromiseRejectionEvent)&&e.then(x)instanceof t}catch(e){}}(),O=s?function(e,t){return e===t||e===w&&t===a}:function(e,t){return e===t},N=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},k=function(e,t){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var r=e._v,o=1==e._s,i=0;n.length>i;)!function(t){var n,i,a=o?t.ok:t.fail,s=t.resolve,c=t.reject,u=t.domain;try{a?(o||(2==e._h&&A(e),e._h=1),!0===a?n=r:(u&&u.enter(),n=a(r),u&&u.exit()),n===t.promise?c(E("Promise-chain cycle")):(i=N(n))?i.call(n,s,c):s(n)):c(r)}catch(e){c(e)}}(n[i++]);e._c=[],e._n=!1,t&&!e._h&&M(e)})}},M=function(e){v.call(c,function(){var t,n,r,o=e._v,i=P(e);if(i&&(t=b(function(){S?T.emit("unhandledRejection",o,e):(n=c.onunhandledrejection)?n({promise:e,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)}),e._h=S||P(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},P=function(e){if(1==e._h)return!1;for(var t,n=e._a||e._c,r=0;n.length>r;)if(t=n[r++],t.fail||!P(t.promise))return!1;return!0},A=function(e){v.call(c,function(){var t;S?T.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})})},D=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),k(t,!0))},B=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw E("Promise can't be resolved itself");(t=N(e))?y(function(){var r={_w:n,_d:!1};try{t.call(e,u(B,r,1),u(D,r,1))}catch(e){D.call(r,e)}}):(n._v=e,n._s=1,k(n,!1))}catch(e){D.call({_w:n,_d:!1},e)}}};R||(w=function(e){h(this,w,"Promise","_h"),f(e),r.call(this);try{e(u(B,this,1),u(D,this,1))}catch(e){D.call(this,e)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(97)(w.prototype,{then:function(e,t){var n=I(g(this,w));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=S?T.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&k(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=u(B,e,1),this.reject=u(D,e,1)},_.f=I=function(e){return O(w,e)?new i(e):o(e)}),p(p.G+p.W+p.F*!R,{Promise:w}),n(41)(w,"Promise"),n(149)("Promise"),a=n(6).Promise,p(p.S+p.F*!R,"Promise",{reject:function(e){var t=I(this);return(0,t.reject)(e),t.promise}}),p(p.S+p.F*(s||!R),"Promise",{resolve:function(e){return e instanceof w&&O(e.constructor,this)?e:C(this,e)}}),p(p.S+p.F*!(R&&n(297)(function(e){w.all(e).catch(x)})),"Promise",{all:function(e){var t=this,n=I(t),r=n.resolve,o=n.reject,i=b(function(){var n=[],i=0,a=1;m(e,!1,function(e){var s=i++,c=!1;n.push(void 0),a++,t.resolve(e).then(function(e){c||(c=!0,n[s]=e,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=I(t),r=n.reject,o=b(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(e,t,n){var r=n(22);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(38),o=n(8)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){var r=n(94),o=n(8)("iterator"),i=n(38);e.exports=n(6).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(7),o=n(146).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,c="process"==n(40)(a);e.exports=function(){var e,t,n,u=function(){var r,o;for(c&&(r=a.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(u)};else if(i){var l=!0,p=document.createTextNode("");new i(u).observe(p,{characterData:!0}),n=function(){p.data=l=!l}}else if(s&&s.resolve){var d=s.resolve();n=function(){d.then(u)}}else n=function(){o.call(r,u)};return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},function(e,t,n){var r=n(8)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(10),o=n(6),i=n(7),a=n(145),s=n(148);r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){"use strict";var r=n(10),o=n(96),i=n(147);r(r.S,"Promise",{try:function(e){var t=o.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){e.exports={default:n(301),__esModule:!0}},function(e,t,n){n(91),n(80),n(85),n(302),n(308),n(311),n(313),e.exports=n(6).Map},function(e,t,n){"use strict";var r=n(303),o=n(150);e.exports=n(304)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(o(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(15).f,o=n(56),i=n(97),a=n(20),s=n(95),c=n(42),u=n(82),l=n(139),p=n(149),d=n(16),f=n(88).fastKey,h=n(150),m=d?"_s":"size",g=function(e,t){var n,r=f(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,u){var l=e(function(e,r){s(e,l,t,"_i"),e._t=t,e._i=o(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=r&&c(r,n,e[u],e)});return i(l.prototype,{clear:function(){for(var e=h(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=h(this,t),r=g(n,e);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[m]--}return!!r},forEach:function(e){h(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(h(this,t),e)}}),d&&r(l.prototype,"size",{get:function(){return h(this,t)[m]}}),l},def:function(e,t,n){var r,o,i=g(e,t);return i?i.v=n:(e._l=i={i:o=f(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[m]++,"F"!==o&&(e._i[o]=i)),e},getEntry:g,setStrong:function(e,t,n){u(e,t,function(e,n){this._t=h(e,t),this._k=n,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?l(0,n.k):"values"==t?l(0,n.v):l(0,[n.k,n.v]):(e._t=void 0,l(1))},n?"entries":"values",!n,!0),p(t)}}},function(e,t,n){"use strict";var r=n(7),o=n(10),i=n(88),a=n(31),s=n(21),c=n(97),u=n(42),l=n(95),p=n(18),d=n(41),f=n(15).f,h=n(305)(0),m=n(16);e.exports=function(e,t,n,g,v,y){var _=r[e],b=_,C=v?"set":"add",E=b&&b.prototype,T={};return m&&"function"==typeof b&&(y||E.forEach&&!a(function(){(new b).entries().next()}))?(b=t(function(t,n){l(t,b,e,"_c"),t._c=new _,void 0!=n&&u(n,v,t[C],t)}),h("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(e){var t="add"==e||"set"==e;e in E&&(!y||"clear"!=e)&&s(b.prototype,e,function(n,r){if(l(this,b,e),!t&&y&&!p(n))return"get"==e&&void 0;var o=this._c[e](0===n?0:n,r);return t?this:o})}),y||f(b.prototype,"size",{get:function(){return this._c.size}})):(b=g.getConstructor(t,e,v,C),c(b.prototype,n),i.NEED=!0),d(b,e),T[e]=b,o(o.G+o.W+o.F,T),y||g.setStrong(b,e,v),b}},function(e,t,n){var r=n(20),o=n(137),i=n(52),a=n(83),s=n(306);e.exports=function(e,t){var n=1==e,c=2==e,u=3==e,l=4==e,p=6==e,d=5==e||p,f=t||s;return function(t,s,h){for(var m,g,v=i(t),y=o(v),_=r(s,h,3),b=a(y.length),C=0,E=n?f(t,b):c?f(t,0):void 0;b>C;C++)if((d||C in y)&&(m=y[C],g=_(m,C,v),e))if(n)E[C]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return C;case 2:E.push(m)}else if(l)return!1;return p?-1:u||l?l:E}}},function(e,t,n){var r=n(307);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(18),o=n(141),i=n(8)("species");e.exports=function(e){var t;return o(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var r=n(10);r(r.P+r.R,"Map",{toJSON:n(309)("Map")})},function(e,t,n){var r=n(94),o=n(310);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return o(this)}}},function(e,t,n){var r=n(42);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t,n){n(312)("Map")},function(e,t,n){"use strict";var r=n(10);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){n(314)("Map")},function(e,t,n){"use strict";var r=n(10),o=n(36),i=n(20),a=n(42);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,s,c=arguments[1];return o(this),t=void 0!==c,t&&o(c),void 0==e?new this:(n=[],t?(r=0,s=i(c,arguments[2],2),a(e,!1,function(e){n.push(s(e,r++))})):a(e,!1,n.push,n),new this(n))}})}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=n(93),i=r(o),a=n(131),s=r(a),c=n(92),u=r(c),l=n(79),p=r(l),d=n(37),f=r(d),h=n(87),m=r(h);!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};t.m=e,t.c=n,t.p="./",t(0)}({0:function(e,t,n){e.exports=n(251)},251:function(e,t,n){var r,o;(function(e){var i="function"==typeof m.default&&"symbol"===(0,f.default)(p.default)?function(e){return void 0===e?"undefined":(0,f.default)(e)}:function(e){return e&&"function"==typeof m.default&&e.constructor===m.default&&e!==m.default.prototype?"symbol":void 0===e?"undefined":(0,f.default)(e)},a=n(253),s=n(254);window.WebIM="undefined"!=typeof WebIM?WebIM:{},WebIM.WebRTC=WebIM.WebRTC||{},WebIM.WebRTC.Call=s,WebIM.WebRTC.Util=a,"object"===i(e)&&"object"===i(e.exports)?e.exports=WebIM.WebRTC:(r=[],void 0!==(o=function(){return WebIM.WebRTC}.apply(t,r))&&(e.exports=o)),/Chrome/.test(navigator.userAgent)&&(WebIM.WebRTC.supportPRAnswer=navigator.userAgent.split("Chrome/")[1].split(".")[0]>=50)}).call(t,n(252)(e))},252:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},253:function(e,t){function n(){}var r="function"==typeof m.default&&"symbol"===(0,f.default)(p.default)?function(e){return void 0===e?"undefined":(0,f.default)(e)}:function(e){return e&&"function"==typeof m.default&&e.constructor===m.default&&e!==m.default.prototype?"symbol":void 0===e?"undefined":(0,f.default)(e)};!function(){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");Math.uuid=function(t,n){var r,o=e,i=[];if(n=n||o.length,t)for(r=0;r<t;r++)i[r]=o[0|Math.random()*n];else{var a;for(i[8]=i[13]=i[18]=i[23]="-",i[14]="4",r=0;r<36;r++)i[r]||(a=0|16*Math.random(),i[r]=o[19==r?3&a|8:a])}return i.join("")},Math.uuidFast=function(){for(var t,n=e,r=new Array(36),o=0,i=0;i<36;i++)8==i||13==i||18==i||23==i?r[i]="-":14==i?r[i]="4":(o<=2&&(o=33554432+16777216*Math.random()|0),t=15&o,o>>=4,r[i]=n[19==i?3&t|8:t]);return r.join("")},Math.uuidCompact=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})}}();var o=function(){function e(e,n){var r=[];r.push(e);for(var o in n)r.push(n[o]);t.log.apply(t,r)}var t=this,n={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,FATAL:5},r=["TRACE","DEBUG","INFO","WARN","ERROR","FATAL"];this.log=function(){var e=arguments[0];e=arguments[0]="["+r[e]+"] ";arguments[1];WebIM&&WebIM.config&&WebIM.config.isDebug&&console.log.apply(console,arguments)},this.trace=function(){this.log&&e(n.TRACE,arguments)},this.debug=function(){this.log&&e(n.DEBUG,arguments)},this.info=function(){this.log&&e(n.INFO,arguments)},this.warn=function(){this.log&&e(n.WARN,arguments)},this.error=function(){this.log&&e(n.ERROR,arguments)},this.fatal=function(){this.log&&e(n.FATAL,arguments)}};n.prototype.logger=new o,n.prototype.parseJSON=function(e){return JSON.parse(e)};var i=(n.prototype.stringifyJSON=function(e){return(0,u.default)(e)},{}),a=i.toString,c=i.hasOwnProperty,l=c.toString,d=l.call(Object);n.prototype.isPlainObject=function(e){var t,n;return!(!e||"[object Object]"!==a.call(e))&&(!(t=(0,s.default)(e))||"function"==typeof(n=c.call(t,"constructor")&&t.constructor)&&l.call(n)===d)};n.prototype.isArray=Array.isArray,n.prototype.isEmptyObject=function(e){var t;for(t in e)return!1;return!0},n.prototype.type=function(e){return null==e?e+"":"object"===(void 0===e?"undefined":r(e))||"function"==typeof e?i[a.call(e)]||"object":void 0===e?"undefined":r(e)},n.prototype.extend=function(){var e,t,n,o,i,a,s=this,c=arguments[0]||{},u=1,l=arguments.length,p=!1;for("boolean"==typeof c&&(p=c,c=arguments[u]||{},u++),"object"===(void 0===c?"undefined":r(c))||s.isFunction(c)||(c={}),u===l&&(c=this,u--);u<l;u++)if(null!=(e=arguments[u]))for(t in e)n=c[t],o=e[t],c!==o&&(p&&o&&(s.isPlainObject(o)||(i=s.isArray(o)))?(i?(i=!1,a=n&&s.isArray(n)?n:[]):a=n&&s.isPlainObject(n)?n:{},c[t]=s.extend(p,a,o)):void 0!==o&&(c[t]=o));return c},n.prototype.hasLocalStorage=function(e){return null!=localStorage.getItem(e)&&"{}"!=localStorage.getItem(e)},n.prototype.toggleClass=function(e,t){if(e.hasClass(t))return void e.removeClass(t);e.addClass(t)},n.prototype.setCookie=function(e,t,n){var r=new Date;r.setTime(r.getTime()+60*n*60*1e3),document.cookie=e+"="+escape(t)+";expires="+r.toGMTString()},n.prototype.getCookie=function(e){var t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]*)(;|$)"));return null!=t?unescape(t[2]):null},n.prototype.parseURL=function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),n=window.location.search.substr(1).match(t);return null!=n?unescape(n[2]):null},e.exports=new n},254:function(e,t,n){var r=n(253),o=n(255),i=n(256),a=n(257),s=n(258),c=i.RouteTo,u=i.Api,l=r.logger,p={api:null,caller:"",connection:null,pattern:null,listener:{onAcceptCall:function(e,t){},onRinging:function(e){},onTermCall:function(){},onIceConnectionStateChange:function(e){}},mediaStreamConstaints:{audio:!0,video:!0},init:function(){var e=this;if(void 0===e.connection)throw"Caller need a instance of Easemob.im.Connection";e.api=e.api||new u({imConnection:e.connection,rtcHandler:new o({imConnection:e.connection})}),e.api.onInitC=function(){e._onInitC.apply(e,arguments)},e.api.onIceConnectionStateChange=function(){e.listener.onIceConnectionStateChange.apply(e,arguments)}},makeVideoCall:function(e,t){var n=this,o={};r.extend(o,n.mediaStreamConstaints),n.mediaStreamConstaints.video=!0,this.call(e,o,t)},makeVoiceCall:function(e,t){console.log("ScareCrow");var n=this,o={};r.extend(o,n.mediaStreamConstaints),n.mediaStreamConstaints.video=!1,n.call(e,o,t)},acceptCall:function(){this.pattern.accept()},endCall:function(e){var t=this;t.caller="",t.pattern.termCall()},call:function(e,t,n){var r=this;this.callee=this.api.jid(e);var o=new c({rtKey:"",sid:n,success:function(e){l.debug("iq to server success",e)},fail:function(e){l.debug("iq to server error",e),r.onError(e)}});this.api.reqP2P(o,t.video?1:0,t.audio?1:0,this.api.jid(e),function(e,t){if("0"==t.online)return void r.listener.onError({message:"callee is not online!"});r._onGotServerP2PConfig(e,t),r.pattern.initC(r.mediaStreamConstaints,n)})},_onInitC:function(e,t,n,r,o){var i=this;i.callee=e,i._rtcCfg=t.rtcCfg,i._WebRTCCfg=t.WebRTC,i.sessId=t.sessId,i.rtcId=t.rtcId,i.switchPattern("VIDEO"==t.streamType?"VIDEO":"VOICE"),i.pattern._onInitC(e,t,n,r,o)},_onGotServerP2PConfig:function(e,t){var n=this;0==t.result&&(n._p2pConfig=t,n._rtcCfg=t.rtcCfg,n._rtcCfg2=t.rtcCfg2,n.sessId=t.sessId,n.rtcId="Channel_webIM",n._rtKey=n._rtkey=t.rtKey||t.rtkey,n._rtFlag=n._rtflag=t.rtFlag||t.rtflag,n._WebRTCCfg=t.WebRTC,n.admtok=t.admtok,n.tkt=t.tkt,n.switchPattern(n.mediaStreamConstaints.audio&&n.mediaStreamConstaints.video?"VIDEO":"VOICE"))},switchPattern:function(e){var t=this;!t._WebRTCCfg&&(t.pattern=new s({callee:t.callee,_p2pConfig:t._p2pConfig,_rtcCfg:t._rtcCfg,_rtcCfg2:t._rtcCfg2,_rtKey:t._rtKey||t._rtkey,_rtFlag:t._rtFlag||t._rtflag,_sessId:t.sessId,_rtcId:t.rtcId,webRtc:new a({streamType:e,onGotLocalStream:t.listener.onGotLocalStream,onGotRemoteStream:t.listener.onGotRemoteStream,onError:t.listener.onError}),api:t.api,onAcceptCall:t.listener&&t.listener.onAcceptCall||function(){},onRinging:t.listener&&t.listener.onRinging||function(){},onTermCall:t.listener&&t.listener.onTermCall||function(){},onOtherUserOpenVoice:t.listener&&t.listener.onOtherUserOpenVoice||function(){},onOtherUserOpenVideo:t.listener&&t.listener.onOtherUserOpenVideo||function(){}}))}};e.exports=function(e){r.extend(!0,this,p,e||{}),this.init()}},255:function(e,t,n){var r=n(253),o=r.logger,i=n(256),a=i.RouteTo,s={_apiCallbacks:{},imConnection:null,_connectedSid:"",init:function(){var e=this,t=e.imConnection;t.registerConfrIQHandler=function(){var n=function(t){try{e.handleRtcMessage(t)}catch(e){throw o.error(e.stack||e),e}return!0};t.addHandler(n,"urn:xmpp:media-conference","iq","set"),t.addHandler(n,"urn:xmpp:media-conference","iq","get"),o.warn("Conference iq handler. registered.")}},handleRtcMessage:function(e){var t=this,n=(e.getAttribute("id"),e.getAttribute("from")||"");n.lastIndexOf("/")>=0&&(n=n.substring(0,n.lastIndexOf("/")));var i=e.getElementsByTagName("rtkey")[0].innerHTML,s=e.getElementsByTagName("sid")[0].innerHTML;(t._fromSessionID||(t._fromSessionID={}))[n]=s;var c=e.getElementsByTagName("content"),u=c[0].innerHTML,l=r.parseJSON(u),p=l,d=e.getElementsByTagName("stream_type")[0].innerHTML;""==d&&(d="VOICE"),p.streamType=d,102==p.op&&(t.singalStreamType=d);var f=l.tsxId;if(t.ctx=l.ctx,o.debug("Recv [op = "+p.op+"] [tsxId="+f+"]\r\n json :",e),n.indexOf("@")>=0)if(""==t._connectedSid&&102==p.op)t._connectedSid=s;else if(t._connectedSid!=s){if(o.debug("Error recv [op = "+p.op+"] [tsxId="+f+"]. caused by _connectedSid != fromSessionId :",t._connectedSid,s),102==p.op){var h=new a({to:n,rtKey:i,sid:s,success:function(e){o.debug("iq to server success",e)},fail:function(e){o.debug("iq to server error",e),t.onError(e)}}),m={data:{op:107,sessId:p.sessId,rtcId:p.rtcId,reason:"busy"},reason:"busy"};t.sendRtcMessage(h,m)}return}if(107==p.op){t._connectedSid="",t._fromSessionID={};var g=e.getElementsByTagName("reason");g&&g.length>0&&(p.reason=g[0].innerHTML)}if(p.sdp&&("string"==typeof p.sdp&&(p.sdp=r.parseJSON(p.sdp)),p.sdp.type&&(p.sdp.type=p.sdp.type.toLowerCase())),p.cands){"string"==typeof p.cands&&(p.cands=r.parseJSON(p.cands));for(var v=0;v<p.cands.length;v++)"string"==typeof p.cands[v]&&(p.cands[v]=r.parseJSON(p.cands[v])),p.cands[v].sdpMLineIndex=p.cands[v].mlineindex,p.cands[v].sdpMid=p.cands[v].mid,delete p.cands[v].mlineindex,delete p.cands[v].mid}if(p.rtcCfg&&"string"==typeof p.rtcCfg&&(p.rtcCfg=r.parseJSON(p.rtcCfg)),p.rtcCfg2&&"string"==typeof p.rtcCfg2&&(p.rtcCfg2=r.parseJSON(p.rtcCfg2)),p.WebRTC&&"string"==typeof p.WebRTC&&(p.WebRTC=r.parseJSON(p.WebRTC)),f&&t._apiCallbacks[f])try{t._apiCallbacks[f].callback&&t._apiCallbacks[f].callback(n,p)}catch(e){throw e}finally{delete t._apiCallbacks[f]}else t.onRecvRtcMessage(n,p,i,f,s);return!0},onRecvRtcMessage:function(e,t,n,i,a){o.debug(" form : "+e+" \r\n json :"+r.stringifyJSON(rtcJSON))},convertRtcOptions:function(e){var t=e.data.sdp;if(t){t={type:t.type,sdp:t.sdp},t.type=t.type.toUpperCase(),t=r.stringifyJSON(t),e.data.sdp=t}var n=e.data.cands;if(n){if(r.isArray(n));else{var o=[];o.push(n),n=o}for(var i in n)if(n[i]instanceof RTCIceCandidate){var a={type:"candidate",candidate:n[i].candidate,mlineindex:n[i].sdpMLineIndex,mid:n[i].sdpMid};n[i]=r.stringifyJSON(a)}e.data.cands=n}var s=e.data.rtcCfg;s&&"string"!=typeof s&&(e.data.rtcCfg=r.stringifyJSON(s));var c=e.data.WebRTC;c&&"string"!=typeof c&&(e.data.WebRTC=r.stringifyJSON(c))},sendRtcMessage:function(e,t,n){var i=this,a=i.imConnection,s=e.tsxId||a.getUniqueId(),c=e.to||a.domain,u=e.sid||i._fromSessionID&&i._fromSessionID[c];u=u||a.getUniqueId("CONFR_"),(i._fromSessionID||(i._fromSessionID={}))[c]=u,c.indexOf("@")>=0&&""==i._connectedSid&&102==t.data.op&&(i._connectedSid=u);var l=e.rtKey||e.rtkey;l||(l="");var p=e.rtflag;p||(p=1),t.data||(t.data={}),t.data.tsxId=s,i.ctx&&(t.data.ctx=i.ctx),i.convertRtcOptions(t);var d=t.streamType||i.singalStreamType||"VIDEO";102==t.data.op&&(i.singalStreamType=d);var f=e.id||a.getUniqueId("CONFR_"),h=$iq({id:f,to:c,from:a.context.jid,type:e.type||"get"}).c("query",{xmlns:"urn:xmpp:media-conference"}).c("MediaReqExt").c("rtkey").t(l).up().c("rtflag").t(p).up().c("stream_type").t(d).up().c("sid").t(u).up().c("content").t(r.stringifyJSON(t.data));107==t.data.op&&t.reason&&h.up().c("reason").t(t.reason),o.debug("Send [op = "+t.data.op+"] : \r\n",h.tree()),n&&(i._apiCallbacks[s]={callback:n});var m=function(t){e.success(t)}||function(e){o.debug("send result. op:"+t.data.op+".",e)},g=function(t){e.fail(t)}||function(e){o.debug(e)};a.context.stropheConn.sendIQ(h.tree(),m,g),107==t.data.op&&i._connectedSid&&(e.sid&&i._connectedSid!=e.sid||(i._connectedSid="",i._fromSessionID={}))}},c=function(e){r.extend(!0,this,s,e||{}),this.init()};e.exports=c},256:function(e,t,n){var r="function"==typeof m.default&&"symbol"===(0,f.default)(p.default)?function(e){return void 0===e?"undefined":(0,f.default)(e)}:function(e){return e&&"function"==typeof m.default&&e.constructor===m.default&&e!==m.default.prototype?"symbol":void 0===e?"undefined":(0,f.default)(e)},o=n(253),i=o.logger,a={rtFlag:1,success:function(e){},fail:function(e){}},s=function e(t){if(!(this instanceof e)){var n=function(e){var t=this;o.extend(!0,t,e||{})};return o.extend(!0,n.prototype,a,t||{}),n}var r=this;o.extend(!0,r,a,t||{})};t.RouteTo=s;var c={imConnection:null,rtcHandler:null,events:{0:"onReqP2P",1:"onNewCfr",2:"onDelCfr",3:"onReqTkt",100:"onPing",101:"onPong",102:"onInitC",103:"onReqC",104:"onAcptC",105:"onTcklC",106:"onAnsC",107:"onTermC",300:"onEvEnter",301:"onEvExit",302:"onEvPub",303:"onEvUnpub",304:"onEvMems",204:"onEvClose",400:"onStreamControl",401:"onEvJoin",onServerError:"onServerError"},register:function(e){if("object"===(void 0===e?"undefined":r(e)))for(var t in e)this.bind(t,e[t])},bind:function(e,t){var n,r=this;(n=r.events[e])?r[n]=t:(n=r.events[e]="on_"+e,r[n]=t)},jid:function(e){return/^.+#.+_.+@.+$/g.test(e)?e:this.imConnection.context.appKey+"_"+e+"@"+this.imConnection.domain},reqP2P:function(e,t,n,r,o){i.debug("req p2p ...");var a={data:{op:0,video:t,audio:n,peer:r}};this.rtcHandler.sendRtcMessage(e,a,o)},newCfr:function(e,t,n,r){i.debug("newCfr ...");var o=this,a={data:{op:1}};t&&(a.data.reqTkt=t),n&&(a.data.password=n),o.rtcHandler.sendRtcMessage(e,a,r)},enter:function(e,t,n,r,o,a,s){i.debug("enter ...");var c=this,u={data:{op:200}};t&&(u.data.WebRTCId=t),n&&(u.data.reqMembers=n),r&&(u.data.tkt=r),o&&(u.data.nonce=o),a&&(u.data.digest=a),c.rtcHandler.sendRtcMessage(e,u,s)},ping:function(e,t,n){i.debug("ping ...");var r=this,o={data:{op:100}};t&&(o.data.sessId=t),r.rtcHandler.sendRtcMessage(e,o,n)},streamControl:function(e,t,n,r,o){i.debug("streamControl ...");var a=this,s={data:{op:400}};t&&(s.data.sessId=t),n&&(s.data.rtcId=n),void 0!==r&&null!=r&&(s.data.controlType=r),a.rtcHandler.sendRtcMessage(e,s,o)},reqTkt:function(e,t,n){i.debug("reqTkt ...");var r=this,o={data:{op:3}};t&&(o.data.WebRTCId=t),r.rtcHandler.sendRtcMessage(e,o,n)},initC:function(e,t,n,r,o,a,s,c,u,l,p,d,f){i.debug("initC ...");var h={data:{op:102}};h.streamType=t||"VIDEO",n&&(h.data.WebRTCId=n),r&&(h.data.tkt=r),o&&(h.data.sessId=o),a&&(h.data.rtcId=a),s&&(h.data.pubS=s),c&&(h.data.subS=c),u&&(h.data.sdp=u),l&&(h.data.cands=l),p&&(h.data.rtcCfg=p),d&&(h.data.WebRTC=d),this.rtcHandler.sendRtcMessage(e,h,f)},tcklC:function(e,t,n,r,o,a){i.debug("tcklC ...");var s=this,c={data:{op:105}};t&&(c.data.sessId=t),n&&(c.data.rtcId=n),r&&(c.data.sdp=r),o&&(c.data.cands=o),s.rtcHandler.sendRtcMessage(e,c,a)},ansC:function(e,t,n,r,o,a,s,c){i.debug("ansC ...");var u=this,l={data:{op:106}};t&&(l.data.sessId=t),n&&(l.data.rtcId=n),r&&(l.data.sdp=r),o&&(l.data.cands=o),!1===s&&(l.data.enableVoice=s),!1===c&&(l.data.enableVideo=c),u.rtcHandler.sendRtcMessage(e,l,a)},acptC:function(e,t,n,r,o,a,s,c,u){i.debug("acptC ...");var l=this,p={data:{op:104}};t&&(p.data.sessId=t),n&&(p.data.rtcId=n),r&&(p.data.sdp=r),o&&(p.data.cands=o),a&&(p.data.ans=a),!1===c&&(p.data.enableVoice=c),!1===u&&(p.data.enableVideo=u),l.rtcHandler.sendRtcMessage(e,p,s)},getMems:function(e,t,n,r){i.debug("getMems ...");var o=this,a={data:{op:203}};t&&(a.data.WebRTCId=t),n&&(a.data.sessId=n),o.rtcHandler.sendRtcMessage(e,a,r)},subC:function(e,t,n,r,o){i.debug("subC ...");var a=this,s={data:{op:205}};t&&(s.data.sessId=t),n&&(s.data.rtcId=n),r&&(s.data.subS=r),a.rtcHandler.sendRtcMessage(e,s,o)},usubC:function(e,t,n,r){i.debug("usubC ...");var o=this,a={data:{op:206}};t&&(a.data.sessId=t),n&&(a.data.rtcId=n),o.rtcHandler.sendRtcMessage(e,a,r)},termC:function(e,t,n,r,o){i.debug("termC ...");var a=this,s={data:{op:107}};t&&(s.data.sessId=t),n&&(s.data.rtcId=n),r&&(s.reason=r),a.rtcHandler.sendRtcMessage(e,s,o)},exit:function(e,t,n,r){i.debug("exit ...");var o=this,a={data:{op:201}};t&&(a.data.WebRTCId=t),n&&(a.data.sessId=n),o.rtcHandler.sendRtcMessage(e,a,r)},delCfr:function(e,t,n,r){i.debug("delCfr ...");var o=this,a={data:{op:2}};t&&(a.data.WebRTCId=t),n&&(a.data.admtok=n),o.rtcHandler.sendRtcMessage(e,a,r)}};t.Api=function(e){function t(e,t,r,o,a){if(0!=t.result&&n.onServerError)n.onServerError.call(n,e,t,r,o,a);else{var s;n.events[t.op]&&(s=n[n.events[t.op]])?s.call(n,e,t,r,o,a):i.info("can not handle(recvRtcMessage) the op: "+t.op,t)}}var n=this;o.extend(!0,this,c,e||{}),this.rtcHandler.onRecvRtcMessage=t}},257:function(e,t,n){var r=n(253),o=r.logger,a={bytesPrev:null,timestampPrev:null,sentBytesPrev:null,sentTimestampPrev:null,printStats:function(e){var t=this;e.getStats(null,function(e){t.parseRecvStatistics(e,function(e,t){o.info(new Date,"RECV ",e,t)},function(e,t){o.info(new Date,"SEND ",e,t)})})},stopIntervalPrintStats:function(){var e=this;e._printIntervalId&&window.clearInterval(e._printIntervalId),e._printIntervalId=null},intervalPrintStats:function(e,t){},_intervalPrintStats:function(e,t){var n=this;n._printIntervalId&&window.clearInterval(n._printIntervalId),n._printIntervalId=window.setInterval(function(){n.printStats(e)},1e3*t)},parseRecvStatistics:function(e,t,n){var r,o=this,a=null,s=null;(0,i.default)(e).forEach(function(t){var i=e[t],s=i.timestamp;if("inboundrtp"===i.type&&"audio"===i.mediaType)r=Math.floor(i.bitrateMean/1024);else if("ssrc"===i.type&&i.bytesReceived)if("video"===i.mediaType);else{var c=i.bytesReceived;o.timestampPrev&&(r=8*(c-o.bytesPrev)/(s-o.timestampPrev),r=Math.floor(r)),o.bytesPrev=c,o.timestampPrev=s}if(("candidatepair"===i.type&&i.selected||"googCandidatePair"===i.type&&"true"===i.googActiveConnection)&&(a=i),"outboundrtp"===i.type&&"audio"===i.mediaType)n("audio Bitrate",Math.floor(i.bitrateMean/1024)+" kbps");else if("ssrc"===i.type&&i.bytesSent&&i.googFrameHeightSent){var c=i.bytesSent;if(o.sentTimestampPrev){var u=8*(c-o.sentBytesPrev)/(s-o.sentTimestampPrev);u=Math.floor(u),n("audio Bitrate",u+" kbps"),n("audio Size",i.googFrameWidthSent+"x"+i.googFrameHeightSent)}o.sentBytesPrev=c,o.sentTimestampPrev=s}}),a&&a.remoteCandidateId&&(s=e[a.remoteCandidateId]),s&&s.ipAddress&&s.portNumber&&t("Peer",s.ipAddress+":"+s.portNumber),t("audio Bitrate",r+" kbps")}},s=function(e){r.extend(this,a,e||{})},c=new s,u={headerSection:null,audioSection:null,videoSection:null,_parseHeaderSection:function(e){var t=e.indexOf("m=audio");return t>=0?e.slice(0,t):(t=e.indexOf("m=video"),t>=0?e.slice(0,t):e)},_parseAudioSection:function(e){var t=e.indexOf("m=audio");if(t>=0){var n=e.indexOf("m=video");return e.slice(t,n<0?e.length:n)}},_parseVideoSection:function(e){var t=e.indexOf("m=video");if(t>=0)return e.slice(t)},spiltSection:function(e){var t=this;t.headerSection=t._parseHeaderSection(e),t.audioSection=t._parseAudioSection(e),t.videoSection=t._parseVideoSection(e)},removeSSRC:function(e){for(var t=[],n=e.split(/a=ssrc:[^\n]+/g),r=0;r<n.length;r++)"\n"!=n[r]&&t.push(n[r]);return t.join("\n")},removeField_msid:function(e){for(var t=[],n=e.split(/a=msid:[^\n]+/g),r=0;r<n.length;r++)"\n"!=n[r]&&t.push(n[r]);e=t.join("\n"),t=[],n=e.split(/[\n]+/g);for(var r=0;r<n.length;r++)"\n"!=n[r]&&t.push(n[r]);return t.join("\n")},updateHeaderMsidSemantic:function(e){var t=this,n="a=msid-semantic: WMS "+e,r=t.headerSection.split(/a=msid\-semantic: WMS.*/g),o=[];switch(r.length){case 1:o.push(r[0]);break;case 2:o.push(r[0]),o.push(n),o.push("\n");break;case 3:o.push(r[0]),o.push(n),o.push("\n"),o.push(r[2]),o.push("\n")}return t.headerSection=o.join("")},updateAudioSSRCSection:function(e,t,n,r){var o=this;o.audioSection&&(o.audioSection=o.removeSSRC(o.audioSection)),o.audioSection&&(o.audioSection=o.removeField_msid(o.audioSection)),o.audioSection&&(o.audioSection=o.audioSection+o.ssrcSection(e,t,n,r))},updateVideoSSRCSection:function(e,t,n,r){var o=this;o.videoSection&&(o.videoSection=o.removeSSRC(o.videoSection)),o.videoSection&&(o.videoSection=o.removeField_msid(o.videoSection)),o.videoSection&&(o.videoSection=o.videoSection+o.ssrcSection(e,t,n,r))},getUpdatedSDP:function(){var e=this,t="";return e.headerSection&&(t+=e.headerSection),e.audioSection&&(t+=e.audioSection),e.videoSection&&(t+=e.videoSection),t},parseMsidSemantic:function(e){var t=this,n=/a=msid\-semantic:\s*WMS (\S+)/gi,r=t._parseLine(e,n);return r&&2==r.length&&(t.msidSemantic={line:r[0],WMS:r[1]}),t.msidSemantic},ssrcSection:function(e,t,n,r){return["a=ssrc:"+e+" cname:"+t,"a=ssrc:"+e+" msid:"+n+" "+r,"a=ssrc:"+e+" mslabel:"+n,"a=ssrc:"+e+" label:"+r,""].join("\n")},parseSSRC:function(e){var t=this,n=new RegExp("a=(ssrc):(\\d+) (\\S+):(\\S+)","ig"),r=t._parseLine(e,n);if(r){for(var o={lines:[],updateSSRCSection:t.ssrcSection},i=0;i<r.length;i++){var a=r[i];if(a.indexOf("a=ssrc")>=0)o.lines.push(a);else switch(a){case"ssrc":case"cname":case"msid":case"mslabel":case"label":o[a]=r[++i]}}return o}},_parseLine:function(e,t){for(var n,r=[];null!=(n=t.exec(e));)for(var o=0;o<n.length;o++)r.push(n[o]);if(r.length>0)return r}},l=function(e){r.extend(this,u),this.spiltSection(e)},p={streamType:"VIDEO",mediaStreamConstaints:{audio:!0,video:!0},localStream:null,rtcPeerConnection:null,offerOptions:{offerToReceiveAudio:1,offerToReceiveVideo:1},createMedia:function(e,t){function n(e){o.debug("[WebRTC-API] got local stream"),r.localStream=e;var n=r.localStream.getVideoTracks(),i=r.localStream.getAudioTracks();n.length>0&&o.debug("[WebRTC-API] Using video device: "+n[0].label),i.length>0&&o.debug("[WebRTC-API] Using audio device: "+i[0].label),t?t(r,e,r.streamType):r.onGotStream(e,r.streamType)}var r=this;return e&&"function"==typeof e&&(t=e,e=null),o.debug("[WebRTC-API] begin create media ......"),navigator.mediaDevices.getUserMedia(e||r.mediaStreamConstaints).then(n).then(r.onCreateMedia).catch(function(e){o.debug("[WebRTC-API] getUserMedia() error: ",e),r.onError(e)})},setLocalVideoSrcObject:function(e){this.onGotLocalStream(e,this.streamType),o.debug("[WebRTC-API] you can see yourself !")},createRtcPeerConnection:function(e){o.debug("[WebRTC-API] begin create RtcPeerConnection ......");var t=this;e?(!e.iceServers&&(e.iceServers=[]),e.rtcpMuxPolicy="require",e.bundlePolicy="max-bundle",e.relayOnly&&(e.iceTransportPolicy="relay")):e=null,o.debug("[WebRTC-API] RtcPeerConnection config:",e),t.startTime=window.performance.now();var n=t.rtcPeerConnection=new RTCPeerConnection(e);o.debug("[WebRTC-API] Created local peer connection object",n),n.onicecandidate=function(e){("icecandidate"!=e.type||null!=e.candidate&&!/ tcp /.test(e.candidate.candidate))&&t.onIceCandidate(e)},n.onicestatechange=function(e){t.onIceStateChange(e)},n.oniceconnectionstatechange=function(e){t.onIceStateChange(e),"connected"==e.target.iceConnectionState&&c.intervalPrintStats(n,1),"closed"==e.target.iceConnectionState&&c.stopIntervalPrintStats()},n.onaddstream=function(e){t._onGotRemoteStream(e)}},_uploadLocalStream:function(){this.rtcPeerConnection.addStream(this.localStream),o.debug("[WebRTC-API] Added local stream to RtcPeerConnection")},createOffer:function(e,t){var n=this;return n._uploadLocalStream(),o.debug("[WebRTC-API] createOffer start..."),n.rtcPeerConnection.createOffer(n.offerOptions).then(function(t){n.offerDescription=t,o.debug("[WebRTC-API] Offer "),o.debug("[WebRTC-API] setLocalDescription start"),n.rtcPeerConnection.setLocalDescription(t).then(n.onSetLocalSessionDescriptionSuccess,n.onSetSessionDescriptionError).then(function(){(e||n.onCreateOfferSuccess)(t)})},t||n.onCreateSessionDescriptionError)},createPRAnswer:function(e,t){var n=this;return o.info(" createPRAnswer start"),n.rtcPeerConnection.createAnswer().then(function(t){o.debug("[WebRTC-API] _____________PRAnswer ",t.sdp),t.type="pranswer",t.sdp=t.sdp.replace(/a=recvonly/g,"a=inactive"),n.prAnswerDescription=t,o.debug("[WebRTC-API] inactive PRAnswer ",t.sdp),o.debug("[WebRTC-API] setLocalDescription start"),n.rtcPeerConnection.setLocalDescription(t).then(n.onSetLocalSuccess,n.onSetSessionDescriptionError).then(function(){var r=new l(t.sdp);r.updateHeaderMsidSemantic("MS_0000"),r.updateAudioSSRCSection(1e3,"CHROME0000","MS_0000","LABEL_AUDIO_1000"),r.updateVideoSSRCSection(2e3,"CHROME0000","MS_0000","LABEL_VIDEO_2000"),t.sdp=r.getUpdatedSDP(),o.debug("[WebRTC-API] Send PRAnswer ",t.sdp),(e||n.onCreatePRAnswerSuccess)(t)})},t||n.onCreateSessionDescriptionError)},createAnswer:function(e,t){var n=this;return n._uploadLocalStream(),o.info("[WebRTC-API] createAnswer start"),n.rtcPeerConnection.createAnswer().then(function(t){if(o.debug("[WebRTC-API] _____________________Answer ",t.sdp),t.type="answer",WebIM.WebRTC.supportPRAnswer){var r=new l(t.sdp),i=r.parseMsidSemantic(r.headerSection);"*"==i.WMS&&r.updateHeaderMsidSemantic(i.WMS="MS_0000");var a=r.parseSSRC(r.audioSection),s=r.parseSSRC(r.videoSection);r.updateAudioSSRCSection(1e3,"CHROME0000",i.WMS,a.label||"LABEL_AUDIO_1000"),s&&r.updateVideoSSRCSection(2e3,"CHROME0000",i.WMS,s.label||"LABEL_VIDEO_2000"),t.sdp=r.getUpdatedSDP()}n.answerDescription=t,o.debug("[WebRTC-API] Answer ",t.sdp),o.debug("[WebRTC-API] setLocalDescription start"),n.rtcPeerConnection.setLocalDescription(t).then(n.onSetLocalSuccess,n.onSetSessionDescriptionError).then(function(){if(WebIM.WebRTC.supportPRAnswer){var r=new l(t.sdp);r.updateHeaderMsidSemantic("MS_0000"),r.updateAudioSSRCSection(1e3,"CHROME0000","MS_0000","LABEL_AUDIO_1000"),r.updateVideoSSRCSection(2e3,"CHROME0000","MS_0000","LABEL_VIDEO_2000"),t.sdp=r.getUpdatedSDP()}o.debug("[WebRTC-API] Send Answer ",t.sdp),(e||n.onCreateAnswerSuccess)(t)})},t||n.onCreateSessionDescriptionError)},close:function(){var e=this;try{c.stopIntervalPrintStats(),e.rtcPeerConnection&&e.rtcPeerConnection.close()}catch(e){}e.localStream&&e.localStream.getTracks().forEach(function(e){e.stop()}),e.localStream=null},addIceCandidate:function(e){var t=this;if(t.rtcPeerConnection){o.debug("[WebRTC-API] Add ICE candidate: \n",e);var n=r.isArray(e)?e:[];!r.isArray(e)&&n.push(e);for(var i=0;i<n.length;i++)e=n[i],t.rtcPeerConnection.addIceCandidate(new RTCIceCandidate(e)).then(t.onAddIceCandidateSuccess,t.onAddIceCandidateError)}},setRemoteDescription:function(e){var t=this;return o.debug("[WebRTC-API] setRemoteDescription start. "),e.sdp=e.sdp.replace(/UDP\/TLS\/RTP\/SAVPF/g,"RTP/SAVPF"),o.debug("[WebRTC-API] setRemoteDescription.",e),e=new RTCSessionDescription(e),t.rtcPeerConnection.setRemoteDescription(e).then(t.onSetRemoteSuccess,t.onSetSessionDescriptionError)},iceConnectionState:function(){return this.rtcPeerConnection.iceConnectionState},onCreateMedia:function(){o.debug("[WebRTC-API] media created.")},_onGotRemoteStream:function(e){o.debug("[WebRTC-API] onGotRemoteStream.",e),e.stream.getAudioTracks()[0].enabled=!0,e.stream.getVideoTracks()[0]&&(e.stream.getVideoTracks()[0].enabled="VIDEO"==this.streamType),this.onGotRemoteStream(e.stream,this.streamType),o.debug("[WebRTC-API] received remote stream, you will see the other.")},onGotStream:function(e,t){o.debug("[WebRTC-API] on got a local stream : "+t)},onSetRemoteSuccess:function(){o.info("[WebRTC-API] onSetRemoteSuccess complete")},onSetLocalSuccess:function(){o.info("[WebRTC-API] setLocalDescription complete")},onAddIceCandidateSuccess:function(){o.debug("[WebRTC-API] addIceCandidate success")},onAddIceCandidateError:function(e){o.debug("[WebRTC-API] failed to add ICE Candidate: "+e.toString())},onIceCandidate:function(e){o.debug("[WebRTC-API] onIceCandidate : ICE candidate: \n"+e.candidate)},onIceStateChange:function(e){o.debug("[WebRTC-API] onIceStateChange : ICE state change event: ",e)},onCreateSessionDescriptionError:function(e){o.error("[WebRTC-API] Failed to create session description: "+e.toString())},onCreateOfferSuccess:function(e){o.debug("[WebRTC-API] create offer success")},onCreatePRAnswerSuccess:function(e){o.debug("[WebRTC-API] create answer success")},onCreateAnswerSuccess:function(e){o.debug("[WebRTC-API] create answer success")},onSetSessionDescriptionError:function(e){o.error("[WebRTC-API] onSetSessionDescriptionError : Failed to set session description: "+e.toString())},onSetLocalSessionDescriptionSuccess:function(){o.debug("[WebRTC-API] onSetLocalSessionDescriptionSuccess : setLocalDescription complete")}};e.exports=function(e){r.extend(!0,this,p,e||{})}},258:function(e,t,n){var r=n(253),o=n(256).RouteTo,i=r.logger,a=o({success:function(e){i.debug("iq to server success",e)},fail:function(e){i.debug("iq to server error",e)}}),s={_pingIntervalId:null,_p2pConfig:null,_rtcCfg:null,_rtcCfg2:null,_rtKey:null,_rtFlag:null,webRtc:null,api:null,callee:null,isCaller:!1,accepted:!1,setLocalSDP:!1,setRemoteSDP:!1,hangup:!1,init:function(){var e=this;e.api.onPing=function(){e._onPing.apply(e,arguments)},e.api.onTcklC=function(){e._onTcklC.apply(e,arguments)},e.api.onAcptC=function(){e._onAcptC.apply(e,arguments)},e.api.onAnsC=function(){e._onAnsC.apply(e,arguments)},e.api.onTermC=function(){e._onTermC.apply(e,arguments)},e.api.onEvJoin=function(){e._onEvJoin.apply(e,arguments)},e.api.onStreamControl=function(){e._onStreamControl.apply(e,arguments)},e.webRtc.onIceCandidate=function(){e._onIceCandidate.apply(e,arguments)},e.webRtc.onIceStateChange=function(){e._onIceStateChange.apply(e,arguments)}},_ping:function(){function e(){var e=new a({to:t.callee,rtKey:t._rtKey});t.api.ping(e,t._sessId,function(e,t){i.debug("ping result",t)})}var t=this;t._pingIntervalId=window.setInterval(e,5e4)},_onPing:function(e,t,n,r,o){i.debug("_onPing from",o)},initC:function(e,t){var n=this;n.sid=t,n.isCaller=!0,n.accepted=!1,n.setLocalSDP=!1,n.setRemoteSDP=!1,n.hangup=!1,n.streamType=e.audio&&e.video?"VIDEO":"VOICE",n.createLocalMedia(e)},createLocalMedia:function(e){var t=this;this.webRtc.createMedia(e,function(e,n){e.setLocalVideoSrcObject(n),t.webRtc.createRtcPeerConnection(t._rtcCfg),t.webRtc.createOffer(function(e){t._onGotWebRtcOffer(e)})})},_onGotWebRtcOffer:function(e){var t=this,n=new a({sid:t.sid,to:t.callee,rtKey:t._rtKey});t.api.initC(n,t.streamType,null,null,t._sessId,t._rtcId,null,null,e,null,t._rtcCfg2,null,function(e,t){i.debug("initc result",t)}),t.setLocalSDP=!0,t._ping()},_onAcptC:function(e,t){var n=this;t.ans&&1==t.ans?(i.info("[WebRTC-API] _onAcptC : 104, ans = 1, it is a answer. will onAcceptCall"),n.onAcceptCall(e,t,!1!==t.enableVoice,!1!==t.enableVideo),n._onAnsC(e,t)):WebIM.WebRTC.supportPRAnswer?(i.info("[WebRTC-API] _onAcptC : recv pranswer. "),(t.sdp||t.cands)&&(t.sdp&&n.webRtc.setRemoteDescription(t.sdp),n.setRemoteSDP=!0,n._handRecvCandsOrSend(e,t),n.onAcceptCall(e,t,!1!==t.enableVoice,!1!==t.enableVideo))):(i.info("[WebRTC-API] _onAcptC : not supported pranswer. drop it. will onAcceptCall"),n.setRemoteSDP=!1,n._handRecvCandsOrSend(e,t),n.onAcceptCall(e,t,!1!==t.enableVoice,!1!==t.enableVideo))},_onEvJoin:function(e,t,n,r,o){var a=this;i.debug("_onEvJoin from",o,e),a.onAcceptCall(e,t,!1!==t.enableVoice,!1!==t.enableVideo)},onAcceptCall:function(e,t,n,r){},__onVoiceOrVideo:function(e,t,n){var r=this;!1===t.enableVoice?r.onOtherUserOpenVoice(e,!1):r.onOtherUserOpenVoice(e,!0),!1===t.enableVideo?r.onOtherUserOpenVideo(e,!1):r.onOtherUserOpenVideo(e,!0)},_onStreamControl:function(e,t,n,r,o){var i=this,a=t.controlType;0===a&&i.onOtherUserOpenVoice(e,!1),1===a&&i.onOtherUserOpenVoice(e,!0),2===a&&i.onOtherUserOpenVideo(e,!1),3===a&&i.onOtherUserOpenVideo(e,!0),i.onStreamControl(e,t,n,r,o)},onStreamControl:function(e,t,n,r,o){},onOtherUserOpenVoice:function(e,t){i.debug("from open:",t," voice .",e)},onOtherUserOpenVideo:function(e,t){i.debug("from open:",t," voideo .",e)},_onAnsC:function(e,t){var n=this;i.info("[WebRTC-API] _onAnsC : recv answer. "),n.accepted=!0,t.sdp&&n.webRtc.setRemoteDescription(t.sdp),n.setRemoteSDP=!0,n._handRecvCandsOrSend(e,t),n.__onVoiceOrVideo(e,t)},_onInitC:function(e,t,n,r,o){var a=this;a.isCaller=!1,a.accepted=!1,a.setLocalSDP=!1,a.setRemoteSDP=!1,a.hangup=!1,a.callee=e,a._rtcCfg2=t.rtcCfg,a._rtKey=n,a._tsxId=r,a._fromSid=o,a._rtcId=t.rtcId,a._sessId=t.sessId,a.streamType=t.streamType,a.webRtc.createRtcPeerConnection(a._rtcCfg2),t.sdp&&i.debug(t.sdp.sdp),t.sdp&&a.webRtc.setRemoteDescription(t.sdp).then(function(){a.setRemoteSDP=!0,a._handRecvCandsOrSend(e,t),WebIM.WebRTC.supportPRAnswer?a.webRtc.createPRAnswer(function(e){a._onGotWebRtcPRAnswer(e),setTimeout(function(){i.info("[WebRTC-API] onRinging : after send pranswer. ",a.callee),a.onRinging(a.callee,a.streamType)},500)}):(setTimeout(function(){i.info("[WebRTC-API] onRinging : After iniC, cause by: not supported pranswer. ",a.callee),a.onRinging(a.callee,a.streamType)},500),a._ping())})},_onGotWebRtcPRAnswer:function(e){var t=this,n=new a({to:t.callee,rtKey:t._rtKey});t.api.acptC(n,t._sessId,t._rtcId,e),t.setLocalSDP=!0,t._handRecvCandsOrSend(),t._ping()},onRinging:function(e,t){},accept:function(){function e(){i.info("createAndSendAnswer : ...... "),t.webRtc.createAnswer(function(e){var n=new a({to:t.callee,rtKey:t._rtKey});WebIM.WebRTC.supportPRAnswer?t.api.ansC(n,t._sessId,t._rtcId,e):t.api.acptC(n,t._sessId,t._rtcId,e,null,1),WebIM.WebRTC.supportPRAnswer||(t.setLocalSDP=!0),t._handRecvCandsOrSend(),t.accepted=!0})}var t=this,n={audio:!0};"VIDEO"==t.streamType&&(n.video=!0),t.webRtc.createMedia(n,function(t,n){t.setLocalVideoSrcObject(n),e()})},_handRecvCandsOrSend:function(e,t){var n=this;setTimeout(function(){n._onTcklC(e,t)},50),setTimeout(function(){n._onIceCandidate()},50)},_onTcklC:function(e,t){var n=this;if(n.setRemoteSDP)i.info("[WebRTC-API] recv and add cands."),n._recvCands&&n._recvCands.length>0&&n.webRtc.addIceCandidate(n._recvCands),n._recvCands&&n._recvCands.length>0&&(n._recvCands=[]),t&&t.cands&&n.webRtc.addIceCandidate(t.cands);else if(t&&t.cands&&t.cands.length>0){for(var r=0;r<t.cands.length;r++)(n._recvCands||(n._recvCands=[])).push(t.cands[r]);i.debug("[_onTcklC] temporary memory[recv] ice candidate. util setRemoteSDP = true")}},_onIceStateChange:function(e){var t=this;e&&i.debug("[WebRTC-API] "+t.webRtc.iceConnectionState()+" |||| ice state is "+e.target.iceConnectionState),e&&"closed"==e.target.iceConnectionState&&(t.setLocalSDP=!1,t.setRemoteSDP=!1),t.api.onIceConnectionStateChange(t.webRtc.iceConnectionState())},_onIceCandidate:function(e){var t=this;if(t.setLocalSDP){var n=function(e){i.debug("send ice candidate...");var n=new a({to:t.callee,rtKey:t._rtKey});e&&t.api.tcklC(n,t._sessId,t._rtcId,null,e)};t._cands&&t._cands.length>0&&(n(t._cands),t._cands=[]),e&&e.candidate&&n(e.candidate)}else e&&e.candidate&&(t._cands||(t._cands=[])).push(e.candidate),i.debug("[_onIceCandidate] temporary memory[send] ice candidate. util setLocalSDP = true")},termCall:function(e){var t=this;t._pingIntervalId&&window.clearInterval(t._pingIntervalId);var n,r=new a({to:t.callee,rtKey:t._rtKey});e||!t.isCaller&&!t.accepted&&(n="decline")||(n="success"),t.hangup||t.api.termC(r,t._sessId,t._rtcId,n),t.webRtc.close(),t.hangup=!0,t.setLocalSDP=!1,t.setRemoteSDP=!1,t.onTermCall(e)},_onTermC:function(e,t){i.debug("[_onTermC] options.reason = "+t.reason);var n=this;n.hangup=!0,n.setLocalSDP=!1,n.setRemoteSDP=!1,n.termCall(t.reason)},onTermCall:function(){}};e.exports=function(e){var t=this;r.extend(!0,this,s,e||{}),t.init()}}})}],[151]);