text: !function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="/",e(0)}([function(t,e,n){t.exports=n(97)},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function i(t){if(d===clearTimeout)return clearTimeout(t);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(t);try{return d(t)}catch(e){try{return d.call(null,t)}catch(e){return d.call(this,t)}}}function a(){v&&p&&(v=!1,p.length?f=p.concat(f):g=-1,f.length&&s())}function s(){if(!v){var t=r(a);v=!0;for(var e=f.length;e;){for(p=f,f=[];++g<e;)p&&p[g].run();g=-1,e=f.length}p=null,v=!1,i(t)}}function c(t,e){this.fun=t,this.array=e}function u(){}var l,d,h=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{d="function"==typeof clearTimeout?clearTimeout:o}catch(t){d=o}}();var p,f=[],v=!1,g=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];f.push(new c(t,e)),1!==f.length||v||r(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=u,h.addListener=u,h.once=u,h.off=u,h.removeListener=u,h.removeAllListeners=u,h.emit=u,h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(t,e,n){(function(e){"use strict";function n(t,e,n,r,i,a,s,c){if(o(e),!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,s,c],d=0;u=new Error(e.replace(/%s/g,function(){return l[d++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var o=function(t){};"production"!==e.env.NODE_ENV&&(o=function(t){if(void 0===t)throw new Error("invariant requires an error message argument")}),t.exports=n}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var o=n(10),r=o;"production"!==e.env.NODE_ENV&&!function(){var t=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];var r=0,i="Warning: "+t.replace(/%s/g,function(){return n[r++]});"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(t){}};r=function(e,n){if(void 0===n)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==n.indexOf("Failed Composite propType: ")&&!e){for(var o=arguments.length,r=Array(o>2?o-2:0),i=2;i<o;i++)r[i-2]=arguments[i];t.apply(void 0,[n].concat(r))}}}(),t.exports=r}).call(e,n(1))},function(t,e){"use strict";function n(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,o=0;o<e;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var r=new Error(n);throw r.name="Invariant Violation",r.framesToPop=1,r}t.exports=n},function(t,e){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function o(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var o=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==o.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}var r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=o()?Object.assign:function(t,e){for(var o,a,s=n(t),c=1;c<arguments.length;c++){o=Object(arguments[c]);for(var u in o)r.call(o,u)&&(s[u]=o[u]);if(Object.getOwnPropertySymbols){a=Object.getOwnPropertySymbols(o);for(var l=0;l<a.length;l++)i.call(o,a[l])&&(s[a[l]]=o[a[l]])}}return s}},function(t,e,n){(function(e){"use strict";function o(t){for(var e;e=t._renderedComponent;)t=e;return t}function r(t,e){var n=o(t);n._hostNode=e,e[g]=n}function i(t){var e=t._hostNode;e&&(delete e[g],t._hostNode=null)}function a(t,n){if(!(t._flags&v.hasCachedChildNodes)){var i=t._renderedChildren,a=n.firstChild;t:for(var s in i)if(i.hasOwnProperty(s)){var c=i[s],u=o(c)._domID;if(0!==u){for(;null!==a;a=a.nextSibling)if(1===a.nodeType&&a.getAttribute(f)===String(u)||8===a.nodeType&&a.nodeValue===" react-text: "+u+" "||8===a.nodeType&&a.nodeValue===" react-empty: "+u+" "){r(c,a);continue t}"production"!==e.env.NODE_ENV?p(!1,"Unable to find element with ID %s.",u):l("32",u)}}t._flags|=v.hasCachedChildNodes}}function s(t){if(t[g])return t[g];for(var e=[];!t[g];){if(e.push(t),!t.parentNode)return null;t=t.parentNode}for(var n,o;t&&(o=t[g]);t=e.pop())n=o,e.length&&a(o,t);return n}function c(t){var e=s(t);return null!=e&&e._hostNode===t?e:null}function u(t){if(void 0===t._hostNode?"production"!==e.env.NODE_ENV?p(!1,"getNodeFromInstance: Invalid argument."):l("33"):void 0,t._hostNode)return t._hostNode;for(var n=[];!t._hostNode;)n.push(t),t._hostParent?void 0:"production"!==e.env.NODE_ENV?p(!1,"React DOM tree root should always have a node reference."):l("34"),t=t._hostParent;for(;n.length;t=n.pop())a(t,t._hostNode);return t._hostNode}var l=n(4),d=n(15),h=n(62),p=n(2),f=d.ID_ATTRIBUTE_NAME,v=h,g="__reactInternalInstance$"+Math.random().toString(36).slice(2),m={getClosestInstanceFromNode:s,getInstanceFromNode:c,getNodeFromInstance:u,precacheChildNodes:a,precacheNode:r,uncacheNode:i};t.exports=m}).call(e,n(1))},function(t,e){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};t.exports=o},function(t,e,n){(function(e){"use strict";function o(t){var e=Function.prototype.toString,n=Object.prototype.hasOwnProperty,o=RegExp("^"+e.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var r=e.call(t);return o.test(r)}catch(t){return!1}}function r(t){var e=u(t);if(e){var n=e.childIDs;l(t),n.forEach(r)}}function i(t,e,n){return"\n    in "+(t||"Unknown")+(e?" (at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+")":n?" (created by "+n+")":"")}function a(t){return null==t?"#empty":"string"==typeof t||"number"==typeof t?"#text":"string"==typeof t.type?t.type:t.type.displayName||t.type.name||"Unknown"}function s(t){var n,o=D.getDisplayName(t),r=D.getElement(t),a=D.getOwnerID(t);return a&&(n=D.getDisplayName(a)),"production"!==e.env.NODE_ENV?y(r,"ReactComponentTreeHook: Missing React element for debugID %s when building stack",t):void 0,i(o,r&&r._source,n)}var c,u,l,d,h,p,f,v=n(19),g=n(12),m=n(2),y=n(3),_="function"==typeof Array.from&&"function"==typeof Map&&o(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&o(Map.prototype.keys)&&"function"==typeof Set&&o(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&o(Set.prototype.keys);if(_){var b=new Map,E=new Set;c=function(t,e){b.set(t,e)},u=function(t){return b.get(t)},l=function(t){b.delete(t)},d=function(){return Array.from(b.keys())},h=function(t){E.add(t)},p=function(t){E.delete(t)},f=function(){return Array.from(E.keys())}}else{var C={},N={},w=function(t){return"."+t},x=function(t){return parseInt(t.substr(1),10)};c=function(t,e){var n=w(t);C[n]=e},u=function(t){var e=w(t);return C[e]},l=function(t){var e=w(t);delete C[e]},d=function(){return Object.keys(C).map(x)},h=function(t){var e=w(t);N[e]=!0},p=function(t){var e=w(t);delete N[e]},f=function(){return Object.keys(N).map(x)}}var S=[],D={onSetChildren:function(t,n){var o=u(t);o?void 0:"production"!==e.env.NODE_ENV?m(!1,"Item must have been set"):v("144"),o.childIDs=n;for(var r=0;r<n.length;r++){var i=n[r],a=u(i);a?void 0:"production"!==e.env.NODE_ENV?m(!1,"Expected hook events to fire for the child before its parent includes it in onSetChildren()."):v("140"),null==a.childIDs&&"object"==typeof a.element&&null!=a.element?"production"!==e.env.NODE_ENV?m(!1,"Expected onSetChildren() to fire for a container child before its parent includes it in onSetChildren()."):v("141"):void 0,a.isMounted?void 0:"production"!==e.env.NODE_ENV?m(!1,"Expected onMountComponent() to fire for the child before its parent includes it in onSetChildren()."):v("71"),null==a.parentID&&(a.parentID=t),a.parentID!==t?"production"!==e.env.NODE_ENV?m(!1,"Expected onBeforeMountComponent() parent and onSetChildren() to be consistent (%s has parents %s and %s).",i,a.parentID,t):v("142",i,a.parentID,t):void 0}},onBeforeMountComponent:function(t,e,n){var o={element:e,parentID:n,text:null,childIDs:[],isMounted:!1,updateCount:0};c(t,o)},onBeforeUpdateComponent:function(t,e){var n=u(t);n&&n.isMounted&&(n.element=e)},onMountComponent:function(t){var n=u(t);n?void 0:"production"!==e.env.NODE_ENV?m(!1,"Item must have been set"):v("144"),n.isMounted=!0;var o=0===n.parentID;o&&h(t)},onUpdateComponent:function(t){var e=u(t);e&&e.isMounted&&e.updateCount++},onUnmountComponent:function(t){var e=u(t);if(e){e.isMounted=!1;var n=0===e.parentID;n&&p(t)}S.push(t)},purgeUnmountedComponents:function(){if(!D._preventPurging){for(var t=0;t<S.length;t++){var e=S[t];r(e)}S.length=0}},isMounted:function(t){var e=u(t);return!!e&&e.isMounted},getCurrentStackAddendum:function(t){var e="";if(t){var n=a(t),o=t._owner;e+=i(n,t._source,o&&o.getName())}var r=g.current,s=r&&r._debugID;return e+=D.getStackAddendumByID(s)},getStackAddendumByID:function(t){for(var e="";t;)e+=s(t),t=D.getParentID(t);return e},getChildIDs:function(t){var e=u(t);return e?e.childIDs:[]},getDisplayName:function(t){var e=D.getElement(t);return e?a(e):null},getElement:function(t){var e=u(t);return e?e.element:null},getOwnerID:function(t){var e=D.getElement(t);return e&&e._owner?e._owner._debugID:null},getParentID:function(t){var e=u(t);return e?e.parentID:null},getSource:function(t){var e=u(t),n=e?e.element:null,o=null!=n?n._source:null;return o},getText:function(t){var e=D.getElement(t);return"string"==typeof e?e:"number"==typeof e?""+e:null},getUpdateCount:function(t){var e=u(t);return e?e.updateCount:0},getRootIDs:f,getRegisteredIDs:d};t.exports=D}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var o=null;if("production"!==e.env.NODE_ENV){var r=n(145);o=r}t.exports={debugTool:o}}).call(e,n(1))},function(t,e){"use strict";function n(t){return function(){return t}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,n){(function(e){"use strict";function o(){O.ReactReconcileTransaction&&C?void 0:"production"!==e.env.NODE_ENV?m(!1,"ReactUpdates: must inject a reconcile transaction class and batching strategy"):l("123")}function r(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=h.getPooled(),this.reconcileTransaction=O.ReactReconcileTransaction.getPooled(!0)}function i(t,e,n,r,i,a){return o(),C.batchedUpdates(t,e,n,r,i,a)}function a(t,e){return t._mountOrder-e._mountOrder}function s(t){var n=t.dirtyComponentsLength;n!==y.length?"production"!==e.env.NODE_ENV?m(!1,"Expected flush transaction's stored dirty-components length (%s) to match dirty-components array length (%s).",n,y.length):l("124",n,y.length):void 0,y.sort(a),_++;for(var o=0;o<n;o++){var r=y[o],i=r._pendingCallbacks;r._pendingCallbacks=null;var s;if(f.logTopLevelRenders){var c=r;r._currentElement.type.isReactTopLevelWrapper&&(c=r._renderedComponent),s="React update: "+c.getName(),console.time(s)}if(v.performUpdateIfNecessary(r,t.reconcileTransaction,_),s&&console.timeEnd(s),i)for(var u=0;u<i.length;u++)t.callbackQueue.enqueue(i[u],r.getPublicInstance())}}function c(t){return o(),C.isBatchingUpdates?(y.push(t),void(null==t._updateBatchNumber&&(t._updateBatchNumber=_+1))):void C.batchedUpdates(c,t)}function u(t,n){C.isBatchingUpdates?void 0:"production"!==e.env.NODE_ENV?m(!1,"ReactUpdates.asap: Can't enqueue an asap callback in a context whereupdates are not being batched."):l("125"),b.enqueue(t,n),E=!0}var l=n(4),d=n(5),h=n(60),p=n(16),f=n(65),v=n(22),g=n(30),m=n(2),y=[],_=0,b=h.getPooled(),E=!1,C=null,N={initialize:function(){this.dirtyComponentsLength=y.length},close:function(){this.dirtyComponentsLength!==y.length?(y.splice(0,this.dirtyComponentsLength),S()):y.length=0}},w={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},x=[N,w];d(r.prototype,g,{getTransactionWrappers:function(){return x},destructor:function(){this.dirtyComponentsLength=null,h.release(this.callbackQueue),this.callbackQueue=null,O.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(t,e,n){return g.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,t,e,n)}}),p.addPoolingTo(r);var S=function(){for(;y.length||E;){if(y.length){var t=r.getPooled();t.perform(s,null,t),r.release(t)}if(E){E=!1;var e=b;b=h.getPooled(),e.notifyAll(),h.release(e)}}},D={injectReconcileTransaction:function(t){t?void 0:"production"!==e.env.NODE_ENV?m(!1,"ReactUpdates: must provide a reconcile transaction class"):l("126"),O.ReactReconcileTransaction=t},injectBatchingStrategy:function(t){t?void 0:"production"!==e.env.NODE_ENV?m(!1,"ReactUpdates: must provide a batching strategy"):l("127"),"function"!=typeof t.batchedUpdates?"production"!==e.env.NODE_ENV?m(!1,"ReactUpdates: must provide a batchedUpdates() function"):l("128"):void 0,"boolean"!=typeof t.isBatchingUpdates?"production"!==e.env.NODE_ENV?m(!1,"ReactUpdates: must provide an isBatchingUpdates boolean attribute"):l("129"):void 0,C=t}},O={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:c,flushBatchedUpdates:S,injection:D,asap:u};t.exports=O}).call(e,n(1))},function(t,e){"use strict";var n={current:null};t.exports=n},function(t,e,n){(function(e){"use strict";function o(t,n,o,r){"production"!==e.env.NODE_ENV&&(delete this.nativeEvent,delete this.preventDefault,delete this.stopPropagation),this.dispatchConfig=t,this._targetInst=n,this.nativeEvent=o;var i=this.constructor.Interface;for(var a in i)if(i.hasOwnProperty(a)){"production"!==e.env.NODE_ENV&&delete this[a];var c=i[a];c?this[a]=c(o):"target"===a?this.target=r:this[a]=o[a]}var u=null!=o.defaultPrevented?o.defaultPrevented:o.returnValue===!1;return u?this.isDefaultPrevented=s.thatReturnsTrue:this.isDefaultPrevented=s.thatReturnsFalse,this.isPropagationStopped=s.thatReturnsFalse,this}function r(t,n){function o(t){var e=a?"setting the method":"setting the property";return i(e,"This is effectively a no-op"),t}function r(){var t=a?"accessing the method":"accessing the property",e=a?"This is a no-op function":"This is set to null";return i(t,e),n}function i(n,o){var r=!1;"production"!==e.env.NODE_ENV?c(r,"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.",n,t,o):void 0}var a="function"==typeof n;return{configurable:!0,set:o,get:r}}var i=n(5),a=n(16),s=n(10),c=n(3),u=!1,l="function"==typeof Proxy,d=["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"],h={type:null,target:null,currentTarget:s.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};i(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=s.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=s.thatReturnsTrue)},persist:function(){this.isPersistent=s.thatReturnsTrue},isPersistent:s.thatReturnsFalse,destructor:function(){var t=this.constructor.Interface;for(var n in t)"production"!==e.env.NODE_ENV?Object.defineProperty(this,n,r(n,t[n])):this[n]=null;for(var o=0;o<d.length;o++)this[d[o]]=null;"production"!==e.env.NODE_ENV&&(Object.defineProperty(this,"nativeEvent",r("nativeEvent",null)),Object.defineProperty(this,"preventDefault",r("preventDefault",s)),Object.defineProperty(this,"stopPropagation",r("stopPropagation",s)))}}),o.Interface=h,"production"!==e.env.NODE_ENV&&l&&(o=new Proxy(o,{construct:function(t,e){return this.apply(t,Object.create(t.prototype),e)},apply:function(t,n,o){return new Proxy(t.apply(n,o),{set:function(t,n,o){return"isPersistent"===n||t.constructor.Interface.hasOwnProperty(n)||d.indexOf(n)!==-1||("production"!==e.env.NODE_ENV?c(u||t.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."):void 0,u=!0),t[n]=o,!0}})}})),o.augmentClass=function(t,e){var n=this,o=function(){};o.prototype=n.prototype;var r=new o;i(r,t.prototype),t.prototype=r,t.prototype.constructor=t,t.Interface=i({},n.Interface,e),t.augmentClass=n.augmentClass,a.addPoolingTo(t,a.fourArgumentPooler)},a.addPoolingTo(o,a.fourArgumentPooler),t.exports=o}).call(e,n(1))},function(t,e,n){"use strict";t.exports=n(17)},function(t,e,n){(function(e){"use strict";function o(t,e){return(t&e)===e}var r=n(4),i=n(2),a={MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(t){var n=a,s=t.Properties||{},u=t.DOMAttributeNamespaces||{},l=t.DOMAttributeNames||{},d=t.DOMPropertyNames||{},h=t.DOMMutationMethods||{};t.isCustomAttribute&&c._isCustomAttributeFunctions.push(t.isCustomAttribute);for(var p in s){c.properties.hasOwnProperty(p)?"production"!==e.env.NODE_ENV?i(!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):r("48",p):void 0;var f=p.toLowerCase(),v=s[p],g={attributeName:f,attributeNamespace:null,propertyName:p,mutationMethod:null,mustUseProperty:o(v,n.MUST_USE_PROPERTY),hasBooleanValue:o(v,n.HAS_BOOLEAN_VALUE),hasNumericValue:o(v,n.HAS_NUMERIC_VALUE),hasPositiveNumericValue:o(v,n.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:o(v,n.HAS_OVERLOADED_BOOLEAN_VALUE)};if(g.hasBooleanValue+g.hasNumericValue+g.hasOverloadedBooleanValue<=1?void 0:"production"!==e.env.NODE_ENV?i(!1,"DOMProperty: Value can be one of boolean, overloaded boolean, or numeric value, but not a combination: %s",p):r("50",p),"production"!==e.env.NODE_ENV&&(c.getPossibleStandardName[f]=p),l.hasOwnProperty(p)){var m=l[p];g.attributeName=m,"production"!==e.env.NODE_ENV&&(c.getPossibleStandardName[m]=p)}u.hasOwnProperty(p)&&(g.attributeNamespace=u[p]),d.hasOwnProperty(p)&&(g.propertyName=d[p]),h.hasOwnProperty(p)&&(g.mutationMethod=h[p]),c.properties[p]=g}}},s=":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",c={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:s,ATTRIBUTE_NAME_CHAR:s+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:"production"!==e.env.NODE_ENV?{autofocus:"autoFocus"}:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(t){for(var e=0;e<c._isCustomAttributeFunctions.length;e++){var n=c._isCustomAttributeFunctions[e];if(n(t))return!0}return!1},injection:a};t.exports=c}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var o=n(4),r=n(2),i=function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)},a=function(t,e){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,t,e),o}return new n(t,e)},s=function(t,e,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,t,e,n),r}return new o(t,e,n)},c=function(t,e,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,t,e,n,o),i}return new r(t,e,n,o)},u=function(t,e,n,o,r){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,t,e,n,o,r),a}return new i(t,e,n,o,r)},l=function(t){var n=this;t instanceof n?void 0:"production"!==e.env.NODE_ENV?r(!1,"Trying to release an instance into a pool of a different type."):o("25"),t.destructor(),n.instancePool.length<n.poolSize&&n.instancePool.push(t)},d=10,h=i,p=function(t,e){var n=t;return n.instancePool=[],n.getPooled=e||h,n.poolSize||(n.poolSize=d),n.release=l,n},f={addPoolingTo:p,oneArgumentPooler:i,twoArgumentPooler:a,threeArgumentPooler:s,fourArgumentPooler:c,fiveArgumentPooler:u};t.exports=f}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var o=n(5),r=n(208),i=n(50),a=n(212),s=n(209),c=n(210),u=n(18),l=n(211),d=n(213),h=n(215),p=n(3),f=u.createElement,v=u.createFactory,g=u.cloneElement;if("production"!==e.env.NODE_ENV){var m=n(86);f=m.createElement,v=m.createFactory,g=m.cloneElement}var y=o;if("production"!==e.env.NODE_ENV){var _=!1;y=function(){return"production"!==e.env.NODE_ENV?p(_,"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."):void 0,_=!0,o.apply(null,arguments)}}var b={Children:{map:r.map,forEach:r.forEach,count:r.count,toArray:r.toArray,only:h},Component:i,PureComponent:a,createElement:f,cloneElement:g,isValidElement:u.isValidElement,PropTypes:l,createClass:s.createClass,createFactory:v,createMixin:function(t){return t},DOM:c,version:d,__spread:y};t.exports=b}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t){if("production"!==e.env.NODE_ENV&&p.call(t,"ref")){var n=Object.getOwnPropertyDescriptor(t,"ref").get;if(n&&n.isReactWarning)return!1}return void 0!==t.ref}function r(t){if("production"!==e.env.NODE_ENV&&p.call(t,"key")){var n=Object.getOwnPropertyDescriptor(t,"key").get;if(n&&n.isReactWarning)return!1}return void 0!==t.key}function i(t,n){var o=function(){s||(s=!0,"production"!==e.env.NODE_ENV?d(!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)",n):void 0)};o.isReactWarning=!0,Object.defineProperty(t,"key",{get:o,configurable:!0})}function a(t,n){var o=function(){c||(c=!0,"production"!==e.env.NODE_ENV?d(!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)",n):void 0)};o.isReactWarning=!0,Object.defineProperty(t,"ref",{get:o,configurable:!0})}var s,c,u=n(5),l=n(12),d=n(3),h=n(53),p=Object.prototype.hasOwnProperty,f=n(85),v={key:!0,ref:!0,__self:!0,__source:!0},g=function(t,n,o,r,i,a,s){var c={$$typeof:f,type:t,key:n,ref:o,props:s,_owner:a};return"production"!==e.env.NODE_ENV&&(c._store={},h?(Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:r}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i})):(c._store.validated=!1,c._self=r,c._source=i),Object.freeze&&(Object.freeze(c.props),Object.freeze(c))),c};g.createElement=function(t,n,s){var c,u={},d=null,h=null,m=null,y=null;if(null!=n){o(n)&&(h=n.ref),r(n)&&(d=""+n.key),m=void 0===n.__self?null:n.__self,y=void 0===n.__source?null:n.__source;for(c in n)p.call(n,c)&&!v.hasOwnProperty(c)&&(u[c]=n[c])}var _=arguments.length-2;if(1===_)u.children=s;else if(_>1){for(var b=Array(_),E=0;E<_;E++)b[E]=arguments[E+2];"production"!==e.env.NODE_ENV&&Object.freeze&&Object.freeze(b),u.children=b}if(t&&t.defaultProps){var C=t.defaultProps;for(c in C)void 0===u[c]&&(u[c]=C[c])}if("production"!==e.env.NODE_ENV&&(d||h)&&("undefined"==typeof u.$$typeof||u.$$typeof!==f)){var N="function"==typeof t?t.displayName||t.name||"Unknown":t;d&&i(u,N),h&&a(u,N)}return g(t,d,h,m,y,l.current,u)},g.createFactory=function(t){var e=g.createElement.bind(null,t);return e.type=t,e},g.cloneAndReplaceKey=function(t,e){var n=g(t.type,e,t.ref,t._self,t._source,t._owner,t.props);return n},g.cloneElement=function(t,e,n){var i,a=u({},t.props),s=t.key,c=t.ref,d=t._self,h=t._source,f=t._owner;if(null!=e){o(e)&&(c=e.ref,f=l.current),r(e)&&(s=""+e.key);var m;t.type&&t.type.defaultProps&&(m=t.type.defaultProps);for(i in e)p.call(e,i)&&!v.hasOwnProperty(i)&&(void 0===e[i]&&void 0!==m?a[i]=m[i]:a[i]=e[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(t.type,s,c,d,h,f,a)},g.isValidElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===f},t.exports=g}).call(e,n(1))},function(t,e){"use strict";function n(t){for(var e=arguments.length-1,n="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,o=0;o<e;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var r=new Error(n);throw r.name="Invariant Violation",r.framesToPop=1,r}t.exports=n},function(t,e,n){"use strict";function o(t){if(g){var e=t.node,n=t.children;if(n.length)for(var o=0;o<n.length;o++)m(e,n[o],null);else null!=t.html?d(e,t.html):null!=t.text&&p(e,t.text)}}function r(t,e){t.parentNode.replaceChild(e.node,t),o(e)}function i(t,e){g?t.children.push(e):t.node.appendChild(e.node)}function a(t,e){g?t.html=e:d(t.node,e)}function s(t,e){g?t.text=e:p(t.node,e)}function c(){return this.node.nodeName}function u(t){return{node:t,children:[],html:null,text:null,toString:c}}var l=n(36),d=n(32),h=n(43),p=n(79),f=1,v=11,g="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent),m=h(function(t,e,n){e.node.nodeType===v||e.node.nodeType===f&&"object"===e.node.nodeName.toLowerCase()&&(null==e.node.namespaceURI||e.node.namespaceURI===l.html)?(o(e),t.insertBefore(e.node,n)):(t.insertBefore(e.node,n),o(e))});u.insertTreeBefore=m,u.replaceChildWithTree=r,u.queueChild=i,u.queueHTML=a,u.queueText=s,t.exports=u},function(t,e){"use strict";var n={remove:function(t){t._reactInternalInstance=void 0},get:function(t){return t._reactInternalInstance},has:function(t){return void 0!==t._reactInternalInstance},set:function(t,e){t._reactInternalInstance=e}};t.exports=n},function(t,e,n){(function(e){"use strict";function o(){r.attachRefs(this,this._currentElement)}var r=n(158),i=n(9),a=n(3),s={mountComponent:function(t,n,r,a,s,c){"production"!==e.env.NODE_ENV&&0!==t._debugID&&i.debugTool.onBeforeMountComponent(t._debugID,t._currentElement,c);var u=t.mountComponent(n,r,a,s,c);return t._currentElement&&null!=t._currentElement.ref&&n.getReactMountReady().enqueue(o,t),"production"!==e.env.NODE_ENV&&0!==t._debugID&&i.debugTool.onMountComponent(t._debugID),u},getHostNode:function(t){return t.getHostNode()},unmountComponent:function(t,n){"production"!==e.env.NODE_ENV&&0!==t._debugID&&i.debugTool.onBeforeUnmountComponent(t._debugID),r.detachRefs(t,t._currentElement),t.unmountComponent(n),"production"!==e.env.NODE_ENV&&0!==t._debugID&&i.debugTool.onUnmountComponent(t._debugID)},receiveComponent:function(t,n,a,s){var c=t._currentElement;if(n!==c||s!==t._context){"production"!==e.env.NODE_ENV&&0!==t._debugID&&i.debugTool.onBeforeUpdateComponent(t._debugID,n);var u=r.shouldUpdateRefs(c,n);u&&r.detachRefs(t,c),t.receiveComponent(n,a,s),u&&t._currentElement&&null!=t._currentElement.ref&&a.getReactMountReady().enqueue(o,t),"production"!==e.env.NODE_ENV&&0!==t._debugID&&i.debugTool.onUpdateComponent(t._debugID)}},performUpdateIfNecessary:function(t,n,o){return t._updateBatchNumber!==o?void("production"!==e.env.NODE_ENV?a(null==t._updateBatchNumber||t._updateBatchNumber===o+1,"performUpdateIfNecessary: Unexpected batch number (current %s, pending %s)",o,t._updateBatchNumber):void 0):("production"!==e.env.NODE_ENV&&0!==t._debugID&&i.debugTool.onBeforeUpdateComponent(t._debugID,t._currentElement),t.performUpdateIfNecessary(n),void("production"!==e.env.NODE_ENV&&0!==t._debugID&&i.debugTool.onUpdateComponent(t._debugID)))}};t.exports=s}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var n={};"production"!==e.env.NODE_ENV&&Object.freeze(n),t.exports=n}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t){return"button"===t||"input"===t||"select"===t||"textarea"===t}function r(t,e,n){switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!n.disabled||!o(e));default:return!1}}var i=n(4),a=n(27),s=n(37),c=n(41),u=n(73),l=n(74),d=n(2),h={},p=null,f=function(t,e){t&&(s.executeDispatchesInOrder(t,e),t.isPersistent()||t.constructor.release(t))},v=function(t){return f(t,!0)},g=function(t){return f(t,!1)},m=function(t){return"."+t._rootNodeID},y={injection:{injectEventPluginOrder:a.injectEventPluginOrder,injectEventPluginsByName:a.injectEventPluginsByName},putListener:function(t,n,o){"function"!=typeof o?"production"!==e.env.NODE_ENV?d(!1,"Expected %s listener to be a function, instead got type %s",n,typeof o):i("94",n,typeof o):void 0;var r=m(t),s=h[n]||(h[n]={});s[r]=o;var c=a.registrationNameModules[n];c&&c.didPutListener&&c.didPutListener(t,n,o)},getListener:function(t,e){var n=h[e];if(r(e,t._currentElement.type,t._currentElement.props))return null;var o=m(t);return n&&n[o]},deleteListener:function(t,e){var n=a.registrationNameModules[e];n&&n.willDeleteListener&&n.willDeleteListener(t,e);var o=h[e];if(o){var r=m(t);delete o[r]}},deleteAllListeners:function(t){var e=m(t);for(var n in h)if(h.hasOwnProperty(n)&&h[n][e]){var o=a.registrationNameModules[n];o&&o.willDeleteListener&&o.willDeleteListener(t,n),delete h[n][e]}},extractEvents:function(t,e,n,o){for(var r,i=a.plugins,s=0;s<i.length;s++){var c=i[s];if(c){var l=c.extractEvents(t,e,n,o);l&&(r=u(r,l))}}return r},enqueueEvents:function(t){t&&(p=u(p,t))},processEventQueue:function(t){var n=p;p=null,t?l(n,v):l(n,g),p?"production"!==e.env.NODE_ENV?d(!1,"processEventQueue(): Additional events were enqueued while processing an event queue. Support for this has not yet been implemented."):i("95"):void 0,c.rethrowCaughtError()},__purge:function(){h={}},__getListenerBank:function(){return h}};t.exports=y}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t,e,n){var o=e.dispatchConfig.phasedRegistrationNames[n];
  return y(t,o)}function r(t,n,r){"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?m(t,"Dispatching inst must not be null"):void 0);var i=o(t,r,n);i&&(r._dispatchListeners=v(r._dispatchListeners,i),r._dispatchInstances=v(r._dispatchInstances,t))}function i(t){t&&t.dispatchConfig.phasedRegistrationNames&&f.traverseTwoPhase(t._targetInst,r,t)}function a(t){if(t&&t.dispatchConfig.phasedRegistrationNames){var e=t._targetInst,n=e?f.getParentInstance(e):null;f.traverseTwoPhase(n,r,t)}}function s(t,e,n){if(n&&n.dispatchConfig.registrationName){var o=n.dispatchConfig.registrationName,r=y(t,o);r&&(n._dispatchListeners=v(n._dispatchListeners,r),n._dispatchInstances=v(n._dispatchInstances,t))}}function c(t){t&&t.dispatchConfig.registrationName&&s(t._targetInst,null,t)}function u(t){g(t,i)}function l(t){g(t,a)}function d(t,e,n,o){f.traverseEnterLeave(n,o,s,t,e)}function h(t){g(t,c)}var p=n(24),f=n(37),v=n(73),g=n(74),m=n(3),y=p.getListener,_={accumulateTwoPhaseDispatches:u,accumulateTwoPhaseDispatchesSkipTarget:l,accumulateDirectDispatches:h,accumulateEnterLeaveDispatches:d};t.exports=_}).call(e,n(1))},function(t,e,n){"use strict";function o(t,e,n,o){return r.call(this,t,e,n,o)}var r=n(13),i=n(46),a={view:function(t){if(t.view)return t.view;var e=i(t);if(e.window===e)return e;var n=e.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(t){return t.detail||0}};r.augmentClass(o,a),t.exports=o},function(t,e,n){(function(e){"use strict";function o(){if(c)for(var t in u){var n=u[t],o=c.indexOf(t);if(o>-1?void 0:"production"!==e.env.NODE_ENV?s(!1,"EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `%s`.",t):a("96",t),!l.plugins[o]){n.extractEvents?void 0:"production"!==e.env.NODE_ENV?s(!1,"EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `%s` does not.",t):a("97",t),l.plugins[o]=n;var i=n.eventTypes;for(var d in i)r(i[d],n,d)?void 0:"production"!==e.env.NODE_ENV?s(!1,"EventPluginRegistry: Failed to publish event `%s` for plugin `%s`.",d,t):a("98",d,t)}}}function r(t,n,o){l.eventNameDispatchConfigs.hasOwnProperty(o)?"production"!==e.env.NODE_ENV?s(!1,"EventPluginHub: More than one plugin attempted to publish the same event name, `%s`.",o):a("99",o):void 0,l.eventNameDispatchConfigs[o]=t;var r=t.phasedRegistrationNames;if(r){for(var c in r)if(r.hasOwnProperty(c)){var u=r[c];i(u,n,o)}return!0}return!!t.registrationName&&(i(t.registrationName,n,o),!0)}function i(t,n,o){if(l.registrationNameModules[t]?"production"!==e.env.NODE_ENV?s(!1,"EventPluginHub: More than one plugin attempted to publish the same registration name, `%s`.",t):a("100",t):void 0,l.registrationNameModules[t]=n,l.registrationNameDependencies[t]=n.eventTypes[o].dependencies,"production"!==e.env.NODE_ENV){var r=t.toLowerCase();l.possibleRegistrationNames[r]=t,"onDoubleClick"===t&&(l.possibleRegistrationNames.ondblclick=t)}}var a=n(4),s=n(2),c=null,u={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:"production"!==e.env.NODE_ENV?{}:null,injectEventPluginOrder:function(t){c?"production"!==e.env.NODE_ENV?s(!1,"EventPluginRegistry: Cannot inject event plugin ordering more than once. You are likely trying to load more than one copy of React."):a("101"):void 0,c=Array.prototype.slice.call(t),o()},injectEventPluginsByName:function(t){var n=!1;for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];u.hasOwnProperty(r)&&u[r]===i||(u[r]?"production"!==e.env.NODE_ENV?s(!1,"EventPluginRegistry: Cannot inject two different event plugins using the same name, `%s`.",r):a("102",r):void 0,u[r]=i,n=!0)}n&&o()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return l.registrationNameModules[e.registrationName]||null;if(void 0!==e.phasedRegistrationNames){var n=e.phasedRegistrationNames;for(var o in n)if(n.hasOwnProperty(o)){var r=l.registrationNameModules[n[o]];if(r)return r}}return null},_resetEventPlugins:function(){c=null;for(var t in u)u.hasOwnProperty(t)&&delete u[t];l.plugins.length=0;var n=l.eventNameDispatchConfigs;for(var o in n)n.hasOwnProperty(o)&&delete n[o];var r=l.registrationNameModules;for(var i in r)r.hasOwnProperty(i)&&delete r[i];if("production"!==e.env.NODE_ENV){var a=l.possibleRegistrationNames;for(var s in a)a.hasOwnProperty(s)&&delete a[s]}}};t.exports=l}).call(e,n(1))},function(t,e,n){"use strict";function o(t){return Object.prototype.hasOwnProperty.call(t,v)||(t[v]=p++,d[t[v]]={}),d[t[v]]}var r,i=n(5),a=n(27),s=n(149),c=n(72),u=n(184),l=n(47),d={},h=!1,p=0,f={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"},v="_reactListenersID"+String(Math.random()).slice(2),g=i({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(t){t.setHandleTopLevel(g.handleTopLevel),g.ReactEventListener=t}},setEnabled:function(t){g.ReactEventListener&&g.ReactEventListener.setEnabled(t)},isEnabled:function(){return!(!g.ReactEventListener||!g.ReactEventListener.isEnabled())},listenTo:function(t,e){for(var n=e,r=o(n),i=a.registrationNameDependencies[t],s=0;s<i.length;s++){var c=i[s];r.hasOwnProperty(c)&&r[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)),r.topBlur=!0,r.topFocus=!0):f.hasOwnProperty(c)&&g.ReactEventListener.trapBubbledEvent(c,f[c],n),r[c]=!0)}},trapBubbledEvent:function(t,e,n){return g.ReactEventListener.trapBubbledEvent(t,e,n)},trapCapturedEvent:function(t,e,n){return g.ReactEventListener.trapCapturedEvent(t,e,n)},supportsEventPageXY:function(){if(!document.createEvent)return!1;var t=document.createEvent("MouseEvent");return null!=t&&"pageX"in t},ensureScrollValueMonitoring:function(){if(void 0===r&&(r=g.supportsEventPageXY()),!r&&!h){var t=c.refreshScrollValues;g.ReactEventListener.monitorScrollValue(t),h=!0}}});t.exports=g},function(t,e,n){"use strict";function o(t,e,n,o){return r.call(this,t,e,n,o)}var r=n(26),i=n(72),a=n(45),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:a,button:function(t){var e=t.button;return"which"in t?e:2===e?2:4===e?1:0},buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},pageX:function(t){return"pageX"in t?t.pageX:t.clientX+i.currentScrollLeft},pageY:function(t){return"pageY"in t?t.pageY:t.clientY+i.currentScrollTop}};r.augmentClass(o,s),t.exports=o},function(t,e,n){(function(e){"use strict";var o=n(4),r=n(2),i={},a={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(t,n,i,a,s,c,u,l){this.isInTransaction()?"production"!==e.env.NODE_ENV?r(!1,"Transaction.perform(...): Cannot initialize a transaction when there is already an outstanding transaction."):o("27"):void 0;var d,h;try{this._isInTransaction=!0,d=!0,this.initializeAll(0),h=t.call(n,i,a,s,c,u,l),d=!1}finally{try{if(d)try{this.closeAll(0)}catch(t){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return h},initializeAll:function(t){for(var e=this.transactionWrappers,n=t;n<e.length;n++){var o=e[n];try{this.wrapperInitData[n]=i,this.wrapperInitData[n]=o.initialize?o.initialize.call(this):null}finally{if(this.wrapperInitData[n]===i)try{this.initializeAll(n+1)}catch(t){}}}},closeAll:function(t){this.isInTransaction()?void 0:"production"!==e.env.NODE_ENV?r(!1,"Transaction.closeAll(): Cannot close transaction when none are open."):o("28");for(var n=this.transactionWrappers,a=t;a<n.length;a++){var s,c=n[a],u=this.wrapperInitData[a];try{s=!0,u!==i&&c.close&&c.close.call(this,u),s=!1}finally{if(s)try{this.closeAll(a+1)}catch(t){}}}this.wrapperInitData.length=0}};t.exports=a}).call(e,n(1))},function(t,e){"use strict";function n(t){var e=""+t,n=r.exec(e);if(!n)return e;var o,i="",a=0,s=0;for(a=n.index;a<e.length;a++){switch(e.charCodeAt(a)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#x27;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}s!==a&&(i+=e.substring(s,a)),s=a+1,i+=o}return s!==a?i+e.substring(s,a):i}function o(t){return"boolean"==typeof t||"number"==typeof t?""+t:n(t)}var r=/["'&<>]/;t.exports=o},function(t,e,n){"use strict";var o,r=n(7),i=n(36),a=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,c=n(43),u=c(function(t,e){if(t.namespaceURI!==i.svg||"innerHTML"in t)t.innerHTML=e;else{o=o||document.createElement("div"),o.innerHTML="<svg>"+e+"</svg>";for(var n=o.firstChild;n.firstChild;)t.appendChild(n.firstChild)}});if(r.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(u=function(t,e){if(t.parentNode&&t.parentNode.replaceChild(t,t),a.test(e)||"<"===e[0]&&s.test(e)){t.innerHTML=String.fromCharCode(65279)+e;var n=t.firstChild;1===n.data.length?t.removeChild(n):n.deleteData(0,1)}else t.innerHTML=e}),l=null}t.exports=u},function(t,e){"use strict";function n(t,e){return t===e?0!==t||0!==e||1/t===1/e:t!==t&&e!==e}function o(t,e){if(n(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var o=Object.keys(t),i=Object.keys(e);if(o.length!==i.length)return!1;for(var a=0;a<o.length;a++)if(!r.call(e,o[a])||!n(t[o[a]],e[o[a]]))return!1;return!0}var r=Object.prototype.hasOwnProperty;t.exports=o},function(t,e,n){"use strict";t.exports=n(130)},function(t,e,n){(function(e){"use strict";function o(t,e){return Array.isArray(e)&&(e=e[1]),e?e.nextSibling:t.firstChild}function r(t,e,n){l.insertTreeBefore(t,e,n)}function i(t,e,n){Array.isArray(e)?s(t,e[0],e[1],n):m(t,e,n)}function a(t,e){if(Array.isArray(e)){var n=e[1];e=e[0],c(t,e,n),t.removeChild(n)}t.removeChild(e)}function s(t,e,n,o){for(var r=e;;){var i=r.nextSibling;if(m(t,r,o),r===n)break;r=i}}function c(t,e,n){for(;;){var o=e.nextSibling;if(o===n)break;t.removeChild(o)}}function u(t,n,o){var r=t.parentNode,i=t.nextSibling;i===n?o&&m(r,document.createTextNode(o),i):o?(g(i,o),c(r,i,n)):c(r,t,n),"production"!==e.env.NODE_ENV&&p.debugTool.onHostOperation({instanceID:h.getInstanceFromNode(t)._debugID,type:"replace text",payload:o})}var l=n(20),d=n(122),h=n(6),p=n(9),f=n(43),v=n(32),g=n(79),m=f(function(t,e,n){t.insertBefore(e,n)}),y=d.dangerouslyReplaceNodeWithMarkup;"production"!==e.env.NODE_ENV&&(y=function(t,e,n){if(d.dangerouslyReplaceNodeWithMarkup(t,e),0!==n._debugID)p.debugTool.onHostOperation({instanceID:n._debugID,type:"replace with",payload:e.toString()});else{var o=h.getInstanceFromNode(e.node);0!==o._debugID&&p.debugTool.onHostOperation({instanceID:o._debugID,type:"mount",payload:e.toString()})}});var _={dangerouslyReplaceNodeWithMarkup:y,replaceDelimitedText:u,processUpdates:function(t,n){if("production"!==e.env.NODE_ENV)var s=h.getInstanceFromNode(t)._debugID;for(var c=0;c<n.length;c++){var u=n[c];switch(u.type){case"INSERT_MARKUP":r(t,u.content,o(t,u.afterNode)),"production"!==e.env.NODE_ENV&&p.debugTool.onHostOperation({instanceID:s,type:"insert child",payload:{toIndex:u.toIndex,content:u.content.toString()}});break;case"MOVE_EXISTING":i(t,u.fromNode,o(t,u.afterNode)),"production"!==e.env.NODE_ENV&&p.debugTool.onHostOperation({instanceID:s,type:"move child",payload:{fromIndex:u.fromIndex,toIndex:u.toIndex}});break;case"SET_MARKUP":v(t,u.content),"production"!==e.env.NODE_ENV&&p.debugTool.onHostOperation({instanceID:s,type:"replace children",payload:u.content.toString()});break;case"TEXT_CONTENT":g(t,u.content),"production"!==e.env.NODE_ENV&&p.debugTool.onHostOperation({instanceID:s,type:"replace text",payload:u.content.toString()});break;case"REMOVE_NODE":a(t,u.fromNode),"production"!==e.env.NODE_ENV&&p.debugTool.onHostOperation({instanceID:s,type:"remove child",payload:{fromIndex:u.fromIndex}})}}}};t.exports=_}).call(e,n(1))},function(t,e){"use strict";var n={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};t.exports=n},function(t,e,n){(function(e){"use strict";function o(t){return"topMouseUp"===t||"topTouchEnd"===t||"topTouchCancel"===t}function r(t){return"topMouseMove"===t||"topTouchMove"===t}function i(t){return"topMouseDown"===t||"topTouchStart"===t}function a(t,e,n,o){var r=t.type||"unknown-event";t.currentTarget=b.getNodeFromInstance(o),e?g.invokeGuardedCallbackWithCatch(r,n,t):g.invokeGuardedCallback(r,n,t),t.currentTarget=null}function s(t,n){var o=t._dispatchListeners,r=t._dispatchInstances;if("production"!==e.env.NODE_ENV&&f(t),Array.isArray(o))for(var i=0;i<o.length&&!t.isPropagationStopped();i++)a(t,n,o[i],r[i]);else o&&a(t,n,o,r);t._dispatchListeners=null,t._dispatchInstances=null}function c(t){var n=t._dispatchListeners,o=t._dispatchInstances;if("production"!==e.env.NODE_ENV&&f(t),Array.isArray(n)){for(var r=0;r<n.length&&!t.isPropagationStopped();r++)if(n[r](t,o[r]))return o[r]}else if(n&&n(t,o))return o;return null}function u(t){var e=c(t);return t._dispatchInstances=null,t._dispatchListeners=null,e}function l(t){"production"!==e.env.NODE_ENV&&f(t);var n=t._dispatchListeners,o=t._dispatchInstances;Array.isArray(n)?"production"!==e.env.NODE_ENV?m(!1,"executeDirectDispatch(...): Invalid `event`."):v("103"):void 0,t.currentTarget=n?b.getNodeFromInstance(o):null;var r=n?n(t):null;return t.currentTarget=null,t._dispatchListeners=null,t._dispatchInstances=null,r}function d(t){return!!t._dispatchListeners}var h,p,f,v=n(4),g=n(41),m=n(2),y=n(3),_={injectComponentTree:function(t){h=t,"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?y(t&&t.getNodeFromInstance&&t.getInstanceFromNode,"EventPluginUtils.injection.injectComponentTree(...): Injected module is missing getNodeFromInstance or getInstanceFromNode."):void 0)},injectTreeTraversal:function(t){p=t,"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?y(t&&t.isAncestor&&t.getLowestCommonAncestor,"EventPluginUtils.injection.injectTreeTraversal(...): Injected module is missing isAncestor or getLowestCommonAncestor."):void 0)}};"production"!==e.env.NODE_ENV&&(f=function(t){var n=t._dispatchListeners,o=t._dispatchInstances,r=Array.isArray(n),i=r?n.length:n?1:0,a=Array.isArray(o),s=a?o.length:o?1:0;"production"!==e.env.NODE_ENV?y(a===r&&s===i,"EventPluginUtils: Invalid `event`."):void 0});var b={isEndish:o,isMoveish:r,isStartish:i,executeDirectDispatch:l,executeDispatchesInOrder:s,executeDispatchesInOrderStopAtTrue:u,hasDispatches:d,getInstanceFromNode:function(t){return h.getInstanceFromNode(t)},getNodeFromInstance:function(t){return h.getNodeFromInstance(t)},isAncestor:function(t,e){return p.isAncestor(t,e)},getLowestCommonAncestor:function(t,e){return p.getLowestCommonAncestor(t,e)},getParentInstance:function(t){return p.getParentInstance(t)},traverseTwoPhase:function(t,e,n){return p.traverseTwoPhase(t,e,n)},traverseEnterLeave:function(t,e,n,o,r){return p.traverseEnterLeave(t,e,n,o,r)},injection:_};t.exports=b}).call(e,n(1))},function(t,e){"use strict";function n(t){var e=/[=:]/g,n={"=":"=0",":":"=2"},o=(""+t).replace(e,function(t){return n[t]});return"$"+o}function o(t){var e=/(=0|=2)/g,n={"=0":"=","=2":":"},o="."===t[0]&&"$"===t[1]?t.substring(2):t.substring(1);return(""+o).replace(e,function(t){return n[t]})}var r={escape:n,unescape:o};t.exports=r},function(t,e,n){(function(e){"use strict";function o(t){null!=t.checkedLink&&null!=t.valueLink?"production"!==e.env.NODE_ENV?l(!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."):s("87"):void 0}function r(t){o(t),null!=t.value||null!=t.onChange?"production"!==e.env.NODE_ENV?l(!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."):s("88"):void 0}function i(t){o(t),null!=t.checked||null!=t.onChange?"production"!==e.env.NODE_ENV?l(!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"):s("89"):void 0}function a(t){if(t){var e=t.getName();if(e)return" Check the render method of `"+e+"`."}return""}var s=n(4),c=n(17),u=n(71),l=n(2),d=n(3),h={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},p={value:function(t,e,n){return!t[e]||h[t.type]||t.onChange||t.readOnly||t.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(t,e,n){return!t[e]||t.onChange||t.readOnly||t.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:c.PropTypes.func},f={},v={checkPropTypes:function(t,n,o){for(var r in p){if(p.hasOwnProperty(r))var i=p[r](n,r,t,"prop",null,u);if(i instanceof Error&&!(i.message in f)){f[i.message]=!0;var s=a(o);"production"!==e.env.NODE_ENV?d(!1,"Failed form propType: %s%s",i.message,s):void 0}}},getValue:function(t){return t.valueLink?(r(t),t.valueLink.value):t.value},getChecked:function(t){return t.checkedLink?(i(t),t.checkedLink.value):t.checked},executeOnChange:function(t,e){return t.valueLink?(r(t),t.valueLink.requestChange(e.target.value)):t.checkedLink?(i(t),t.checkedLink.requestChange(e.target.checked)):t.onChange?t.onChange.call(void 0,e):void 0}};t.exports=v}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var o=n(4),r=n(2),i=!1,a={replaceNodeWithMarkup:null,processChildrenUpdates:null,injection:{injectEnvironment:function(t){i?"production"!==e.env.NODE_ENV?r(!1,"ReactCompositeComponent: injectEnvironment() can only be called once."):o("104"):void 0,a.replaceNodeWithMarkup=t.replaceNodeWithMarkup,a.processChildrenUpdates=t.processChildrenUpdates,i=!0}}};t.exports=a}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function n(t,e,n){try{e(n)}catch(t){null===o&&(o=t)}}var o=null,r={invokeGuardedCallback:n,invokeGuardedCallbackWithCatch:n,rethrowCaughtError:function(){if(o){var t=o;throw o=null,t}}};if("production"!==e.env.NODE_ENV&&"undefined"!=typeof window&&"function"==typeof window.dispatchEvent&&"undefined"!=typeof document&&"function"==typeof document.createEvent){var i=document.createElement("react");r.invokeGuardedCallback=function(t,e,n){var o=e.bind(null,n),r="react-"+t;i.addEventListener(r,o,!1);var a=document.createEvent("Event");a.initEvent(r,!1,!1),i.dispatchEvent(a),i.removeEventListener(r,o,!1)}}t.exports=r}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t){l.enqueueUpdate(t)}function r(t){var e=typeof t;if("object"!==e)return e;var n=t.constructor&&t.constructor.name||e,o=Object.keys(t);return o.length>0&&o.length<20?n+" (keys: "+o.join(", ")+")":n}function i(t,n){var o=c.get(t);if(!o){if("production"!==e.env.NODE_ENV){var r=t.constructor;"production"!==e.env.NODE_ENV?h(!n,"%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.",n,n,r&&(r.displayName||r.name)||"ReactClass"):void 0}return null}return"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?h(null==s.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`.",n):void 0),o}var a=n(4),s=n(12),c=n(21),u=n(9),l=n(11),d=n(2),h=n(3),p={isMounted:function(t){if("production"!==e.env.NODE_ENV){var n=s.current;null!==n&&("production"!==e.env.NODE_ENV?h(n._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.",n.getName()||"A component"):void 0,n._warnedAboutRefsInRender=!0)}var o=c.get(t);return!!o&&!!o._renderedComponent},enqueueCallback:function(t,e,n){p.validateCallback(e,n);var r=i(t);return r?(r._pendingCallbacks?r._pendingCallbacks.push(e):r._pendingCallbacks=[e],void o(r)):null},enqueueCallbackInternal:function(t,e){t._pendingCallbacks?t._pendingCallbacks.push(e):t._pendingCallbacks=[e],o(t)},enqueueForceUpdate:function(t){var e=i(t,"forceUpdate");e&&(e._pendingForceUpdate=!0,o(e))},enqueueReplaceState:function(t,e){var n=i(t,"replaceState");n&&(n._pendingStateQueue=[e],n._pendingReplaceState=!0,o(n))},enqueueSetState:function(t,n){"production"!==e.env.NODE_ENV&&(u.debugTool.onSetState(),"production"!==e.env.NODE_ENV?h(null!=n,"setState(...): You passed an undefined or null state object; instead, use forceUpdate()."):void 0);var r=i(t,"setState");if(r){var a=r._pendingStateQueue||(r._pendingStateQueue=[]);a.push(n),o(r)}},enqueueElementInternal:function(t,e,n){t._pendingElement=e,t._context=n,o(t)},validateCallback:function(t,n){t&&"function"!=typeof t?"production"!==e.env.NODE_ENV?d(!1,"%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",n,r(t)):a("122",n,r(t)):void 0}};t.exports=p}).call(e,n(1))},function(t,e){"use strict";var n=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,o,r){MSApp.execUnsafeLocalFunction(function(){return t(e,n,o,r)})}:t};t.exports=n},function(t,e){"use strict";function n(t){var e,n=t.keyCode;return"charCode"in t?(e=t.charCode,0===e&&13===n&&(e=13)):e=n,e>=32||13===e?e:0}t.exports=n},function(t,e){"use strict";function n(t){var e=this,n=e.nativeEvent;if(n.getModifierState)return n.getModifierState(t);var o=r[t];return!!o&&!!n[o]}function o(t){return n}var r={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=o},function(t,e){"use strict";function n(t){var e=t.target||t.srcElement||window;return e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}t.exports=n},function(t,e,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 o(t,e){if(!i.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,o=n in document;if(!o){var a=document.createElement("div");a.setAttribute(n,"return;"),o="function"==typeof a[n]}return!o&&r&&"wheel"===t&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}var r,i=n(7);i.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=o},function(t,e){"use strict";function n(t,e){var n=null===t||t===!1,o=null===e||e===!1;if(n||o)return n===o;var r=typeof t,i=typeof e;return"string"===r||"number"===r?"string"===i||"number"===i:"object"===i&&t.type===e.type&&t.key===e.key}t.exports=n},function(t,e,n){(function(e){"use strict";var o=n(5),r=n(10),i=n(3),a=r;if("production"!==e.env.NODE_ENV){var 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"],d={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null},h=function(t,e,n){var r=o({},t||d),i={tag:e,instance:n};return c.indexOf(e)!==-1&&(r.aTagInScope=null,r.buttonTagInScope=null,r.nobrTagInScope=null),u.indexOf(e)!==-1&&(r.pTagInButtonScope=null),s.indexOf(e)!==-1&&"address"!==e&&"div"!==e&&"p"!==e&&(r.listItemTagAutoclosing=null,r.dlItemTagAutoclosing=null),r.current=i,"form"===e&&(r.formTag=i),"a"===e&&(r.aTagInScope=i),"button"===e&&(r.buttonTagInScope=i),"nobr"===e&&(r.nobrTagInScope=i),"p"===e&&(r.pTagInButtonScope=i),"li"===e&&(r.listItemTagAutoclosing=i),"dd"!==e&&"dt"!==e||(r.dlItemTagAutoclosing=i),r},p=function(t,e){switch(e){case"select":return"option"===t||"optgroup"===t||"#text"===t;case"optgroup":return"option"===t||"#text"===t;case"option":return"#text"===t;case"tr":return"th"===t||"td"===t||"style"===t||"script"===t||"template"===t;case"tbody":case"thead":case"tfoot":return"tr"===t||"style"===t||"script"===t||"template"===t;case"colgroup":return"col"===t||"template"===t;case"table":return"caption"===t||"colgroup"===t||"tbody"===t||"tfoot"===t||"thead"===t||"style"===t||"script"===t||"template"===t;case"head":return"base"===t||"basefont"===t||"bgsound"===t||"link"===t||"meta"===t||"title"===t||"noscript"===t||"noframes"===t||"style"===t||"script"===t||"template"===t;case"html":return"head"===t||"body"===t;case"#document":return"html"===t}switch(t){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==e&&"h2"!==e&&"h3"!==e&&"h4"!==e&&"h5"!==e&&"h6"!==e;case"rp":case"rt":return l.indexOf(e)===-1;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==e}return!0},f=function(t,e){switch(t){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 e.pTagInButtonScope;case"form":return e.formTag||e.pTagInButtonScope;case"li":return e.listItemTagAutoclosing;case"dd":case"dt":return e.dlItemTagAutoclosing;case"button":return e.buttonTagInScope;case"a":return e.aTagInScope;case"nobr":return e.nobrTagInScope}return null},v=function(t){if(!t)return[];var e=[];do e.push(t);while(t=t._currentElement._owner);return e.reverse(),e},g={};a=function(t,n,o,r){r=r||d;var a=r.current,s=a&&a.tag;null!=n&&("production"!==e.env.NODE_ENV?i(null==t,"validateDOMNesting: when childText is passed, childTag should be null"):void 0,t="#text");var c=p(t,s)?null:a,u=c?null:f(t,r),l=c||u;if(l){var h,m=l.tag,y=l.instance,_=o&&o._currentElement._owner,b=y&&y._currentElement._owner,E=v(_),C=v(b),N=Math.min(E.length,C.length),w=-1;for(h=0;h<N&&E[h]===C[h];h++)w=h;var x="(unknown)",S=E.slice(w+1).map(function(t){return t.getName()||x}),D=C.slice(w+1).map(function(t){return t.getName()||x}),O=[].concat(w!==-1?E[w].getName()||x:[],D,m,u?["..."]:[],S,t).join(" > "),T=!!c+"|"+t+"|"+m+"|"+O;if(g[T])return;g[T]=!0;var P=t,k="";if("#text"===t?/\S/.test(n)?P="Text nodes":(P="Whitespace text nodes",k=" Make sure you don't have any extra whitespace between tags on each line of your source code."):P="<"+t+">",c){var I="";"table"===m&&"tr"===t&&(I+=" Add a <tbody> to your code to match the DOM tree generated by the browser."),"production"!==e.env.NODE_ENV?i(!1,"validateDOMNesting(...): %s cannot appear as a child of <%s>.%s See %s.%s",P,m,k,O,I):void 0}else"production"!==e.env.NODE_ENV?i(!1,"validateDOMNesting(...): %s cannot appear as a descendant of <%s>. See %s.",P,m,O):void 0}},a.updatedAncestorInfo=h,a.isTagValidInContext=function(t,e){e=e||d;var n=e.current,o=n&&n.tag;return p(t,o)&&!f(t,e)}}t.exports=a}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t,e,n){this.props=t,this.context=e,this.refs=s,this.updater=n||i}var r=n(19),i=n(51),a=n(53),s=n(23),c=n(2),u=n(3);if(o.prototype.isReactComponent={},o.prototype.setState=function(t,n){"object"!=typeof t&&"function"!=typeof t&&null!=t?"production"!==e.env.NODE_ENV?c(!1,"setState(...): takes an object of state variables to update or a function which returns an object of state variables."):r("85"):void 0,this.updater.enqueueSetState(this,t),n&&this.updater.enqueueCallback(this,n,"setState")},o.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this),t&&this.updater.enqueueCallback(this,t,"forceUpdate")},"production"!==e.env.NODE_ENV){var l={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)."]},d=function(t,n){a&&Object.defineProperty(o.prototype,t,{get:function(){"production"!==e.env.NODE_ENV?u(!1,"%s(...) is deprecated in plain JavaScript React classes. %s",n[0],n[1]):void 0}})};for(var h in l)l.hasOwnProperty(h)&&d(h,l[h])}t.exports=o}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t,n){if("production"!==e.env.NODE_ENV){var o=t.constructor;"production"!==e.env.NODE_ENV?r(!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.",n,n,o&&(o.displayName||o.name)||"ReactClass"):void 0}}var r=n(3),i={isMounted:function(t){return!1},enqueueCallback:function(t,e){},enqueueForceUpdate:function(t){o(t,"forceUpdate")},enqueueReplaceState:function(t,e){o(t,"replaceState")},enqueueSetState:function(t,e){o(t,"setState")}};t.exports=i}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var n={};"production"!==e.env.NODE_ENV&&(n={prop:"prop",context:"context",childContext:"child context"}),t.exports=n}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var n=!1;if("production"!==e.env.NODE_ENV)try{Object.defineProperty({},"x",{get:function(){}}),n=!0}catch(t){}t.exports=n}).call(e,n(1))},function(t,e){"use strict";function n(t){var e=t&&(o&&t[o]||t[r]);if("function"==typeof e)return e}var o="function"==typeof Symbol&&Symbol.iterator,r="@@iterator";t.exports=n},function(t,e,n){(function(t){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(){}e.__esModule=!0,e.compose=e.applyMiddleware=e.bindActionCreators=e.combineReducers=e.createStore=void 0;var i=n(89),a=o(i),s=n(219),c=o(s),u=n(218),l=o(u),d=n(217),h=o(d),p=n(88),f=o(p),v=n(90),g=o(v);"production"!==t.env.NODE_ENV&&"string"==typeof r.name&&"isCrushed"!==r.name&&(0,g.default)("You are currently using minified code outside of NODE_ENV === 'production'. This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) to ensure you have the correct code for your production build."),e.createStore=a.default,e.combineReducers=c.default,e.bindActionCreators=l.default,e.applyMiddleware=h.default,e.compose=f.default}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var o=n(10),r={listen:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}}):t.attachEvent?(t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}):void 0},capture:function(t,n,r){return t.addEventListener?(t.addEventListener(n,r,!0),{remove:function(){t.removeEventListener(n,r,!0)}}):("production"!==e.env.NODE_ENV&&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:o})},registerDefault:function(){}};t.exports=r}).call(e,n(1))},function(t,e){"use strict";function n(t){try{t.focus()}catch(t){}}t.exports=n},function(t,e){"use strict";function n(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(t){return document.body}}t.exports=n},function(t,e){"use strict";function n(t,e){return t+e.charAt(0).toUpperCase()+e.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,gridColumn:!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},r=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(t){r.forEach(function(e){o[n(e,t)]=o[t]})});var i={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}},a={isUnitlessNumber:o,shorthandPropertyExpansions:i};t.exports=a},function(t,e,n){(function(e){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=n(4),i=n(16),a=n(2),s=function(){function t(e){o(this,t),this._callbacks=null,this._contexts=null,this._arg=e}return t.prototype.enqueue=function(t,e){this._callbacks=this._callbacks||[],this._callbacks.push(t),this._contexts=this._contexts||[],this._contexts.push(e)},t.prototype.notifyAll=function(){var t=this._callbacks,n=this._contexts,o=this._arg;if(t&&n){t.length!==n.length?"production"!==e.env.NODE_ENV?a(!1,"Mismatched list of contexts in callback queue"):r("24"):void 0,this._callbacks=null,this._contexts=null;for(var i=0;i<t.length;i++)t[i].call(n[i],o);t.length=0,n.length=0}},t.prototype.checkpoint=function(){return this._callbacks?this._callbacks.length:0},t.prototype.rollback=function(t){this._callbacks&&this._contexts&&(this._callbacks.length=t,this._contexts.length=t)},t.prototype.reset=function(){this._callbacks=null,this._contexts=null},t.prototype.destructor=function(){this.reset()},t}();t.exports=i.addPoolingTo(s)}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t){return!!h.hasOwnProperty(t)||!d.hasOwnProperty(t)&&(l.test(t)?(h[t]=!0,!0):(d[t]=!0,"production"!==e.env.NODE_ENV?u(!1,"Invalid attribute name: `%s`",t):void 0,!1))}function r(t,e){return null==e||t.hasBooleanValue&&!e||t.hasNumericValue&&isNaN(e)||t.hasPositiveNumericValue&&e<1||t.hasOverloadedBooleanValue&&e===!1}var i=n(15),a=n(6),s=n(9),c=n(185),u=n(3),l=new RegExp("^["+i.ATTRIBUTE_NAME_START_CHAR+"]["+i.ATTRIBUTE_NAME_CHAR+"]*$"),d={},h={},p={createMarkupForID:function(t){return i.ID_ATTRIBUTE_NAME+"="+c(t)},setAttributeForID:function(t,e){t.setAttribute(i.ID_ATTRIBUTE_NAME,e)},createMarkupForRoot:function(){return i.ROOT_ATTRIBUTE_NAME+'=""'},setAttributeForRoot:function(t){t.setAttribute(i.ROOT_ATTRIBUTE_NAME,"")},createMarkupForProperty:function(t,e){var n=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(n){if(r(n,e))return"";var o=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&e===!0?o+'=""':o+"="+c(e)}return i.isCustomAttribute(t)?null==e?"":t+"="+c(e):null},createMarkupForCustomAttribute:function(t,e){return o(t)&&null!=e?t+"="+c(e):""},setValueForProperty:function(t,n,o){var c=i.properties.hasOwnProperty(n)?i.properties[n]:null;if(c){var u=c.mutationMethod;if(u)u(t,o);else{if(r(c,o))return void this.deleteValueForProperty(t,n);if(c.mustUseProperty)t[c.propertyName]=o;else{var l=c.attributeName,d=c.attributeNamespace;d?t.setAttributeNS(d,l,""+o):c.hasBooleanValue||c.hasOverloadedBooleanValue&&o===!0?t.setAttribute(l,""):t.setAttribute(l,""+o)}}}else if(i.isCustomAttribute(n))return void p.setValueForAttribute(t,n,o);if("production"!==e.env.NODE_ENV){var h={};h[n]=o,s.debugTool.onHostOperation({instanceID:a.getInstanceFromNode(t)._debugID,type:"update attribute",payload:h})}},setValueForAttribute:function(t,n,r){if(o(n)&&(null==r?t.removeAttribute(n):t.setAttribute(n,""+r),"production"!==e.env.NODE_ENV)){var i={};i[n]=r,s.debugTool.onHostOperation({instanceID:a.getInstanceFromNode(t)._debugID,type:"update attribute",payload:i})}},deleteValueForAttribute:function(t,n){t.removeAttribute(n),"production"!==e.env.NODE_ENV&&s.debugTool.onHostOperation({instanceID:a.getInstanceFromNode(t)._debugID,type:"remove attribute",payload:n})},deleteValueForProperty:function(t,n){var o=i.properties.hasOwnProperty(n)?i.properties[n]:null;if(o){var r=o.mutationMethod;if(r)r(t,void 0);else if(o.mustUseProperty){var c=o.propertyName;o.hasBooleanValue?t[c]=!1:t[c]=""}else t.removeAttribute(o.attributeName)}else i.isCustomAttribute(n)&&t.removeAttribute(n);"production"!==e.env.NODE_ENV&&s.debugTool.onHostOperation({instanceID:a.getInstanceFromNode(t)._debugID,type:"remove attribute",payload:n})}};t.exports=p}).call(e,n(1))},function(t,e){"use strict";var n={hasCachedChildNodes:1};t.exports=n},function(t,e,n){(function(e){"use strict";function o(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var t=this._currentElement.props,e=u.getValue(t);null!=e&&a(this,Boolean(t.multiple),e)}}function r(t){if(t){var e=t.getName();if(e)return" Check the render method of `"+e+"`."}return""}function i(t,n){var o=t._currentElement._owner;u.checkPropTypes("select",n,o),void 0===n.valueLink||p||("production"!==e.env.NODE_ENV?h(!1,"`valueLink` prop on `select` is deprecated; set `value` and `onChange` instead."):void 0,p=!0);for(var i=0;i<v.length;i++){var a=v[i];if(null!=n[a]){var s=Array.isArray(n[a]);n.multiple&&!s?"production"!==e.env.NODE_ENV?h(!1,"The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,r(o)):void 0:!n.multiple&&s&&("production"!==e.env.NODE_ENV?h(!1,"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,r(o)):void 0)}}}function a(t,e,n){var o,r,i=l.getNodeFromInstance(t).options;if(e){for(o={},r=0;r<n.length;r++)o[""+n[r]]=!0;for(r=0;r<i.length;r++){var a=o.hasOwnProperty(i[r].value);i[r].selected!==a&&(i[r].selected=a)}}else{for(o=""+n,r=0;r<i.length;r++)if(i[r].value===o)return void(i[r].selected=!0);i.length&&(i[0].selected=!0)}}function s(t){var e=this._currentElement.props,n=u.executeOnChange(e,t);return this._rootNodeID&&(this._wrapperState.pendingUpdate=!0),d.asap(o,this),n}var c=n(5),u=n(39),l=n(6),d=n(11),h=n(3),p=!1,f=!1,v=["value","defaultValue"],g={getHostProps:function(t,e){return c({},e,{onChange:t._wrapperState.onChange,value:void 0})},mountWrapper:function(t,n){"production"!==e.env.NODE_ENV&&i(t,n);var o=u.getValue(n);t._wrapperState={pendingUpdate:!1,initialValue:null!=o?o:n.defaultValue,listeners:null,onChange:s.bind(t),wasMultiple:Boolean(n.multiple)},void 0===n.value||void 0===n.defaultValue||f||("production"!==e.env.NODE_ENV?h(!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"):void 0,f=!0)},getSelectValueContext:function(t){return t._wrapperState.initialValue},postUpdateWrapper:function(t){var e=t._currentElement.props;t._wrapperState.initialValue=void 0;var n=t._wrapperState.wasMultiple;t._wrapperState.wasMultiple=Boolean(e.multiple);var o=u.getValue(e);null!=o?(t._wrapperState.pendingUpdate=!1,a(t,Boolean(e.multiple),o)):n!==Boolean(e.multiple)&&(null!=e.defaultValue?a(t,Boolean(e.multiple),e.defaultValue):a(t,Boolean(e.multiple),e.multiple?[]:""))}};t.exports=g}).call(e,n(1))},function(t,e){"use strict";var n,o={injectEmptyComponentFactory:function(t){n=t}},r={create:function(t){return n(t)}};r.injection=o,t.exports=r},function(t,e){"use strict";var n={logTopLevelRenders:!1};t.exports=n},function(t,e,n){(function(e){"use strict";function o(t){return u?void 0:"production"!==e.env.NODE_ENV?c(!1,"There is no registered component for the tag %s",t.type):a("111",t.type),new u(t)}function r(t){return new d(t)}function i(t){return t instanceof d}var a=n(4),s=n(5),c=n(2),u=null,l={},d=null,h={injectGenericComponentClass:function(t){u=t},injectTextComponentClass:function(t){d=t},injectComponentClasses:function(t){s(l,t)}},p={createInternalComponent:o,createInstanceForText:r,isTextComponent:i,injection:h};t.exports=p}).call(e,n(1))},function(t,e,n){"use strict";function o(t){return i(document.documentElement,t)}var r=n(140),i=n(102),a=n(57),s=n(58),c={hasSelectionCapabilities:function(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&"text"===t.type||"textarea"===e||"true"===t.contentEditable)},getSelectionInformation:function(){var t=s();return{focusedElem:t,selectionRange:c.hasSelectionCapabilities(t)?c.getSelection(t):null}},restoreSelection:function(t){var e=s(),n=t.focusedElem,r=t.selectionRange;e!==n&&o(n)&&(c.hasSelectionCapabilities(n)&&c.setSelection(n,r),a(n))},getSelection:function(t){var e;if("selectionStart"in t)e={start:t.selectionStart,end:t.selectionEnd};else if(document.selection&&t.nodeName&&"input"===t.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElement()===t&&(e={start:-n.moveStart("character",-t.value.length),end:-n.moveEnd("character",-t.value.length)})}else e=r.getOffsets(t);return e||{start:0,end:0}},setSelection:function(t,e){var n=e.start,o=e.end;if(void 0===o&&(o=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(o,t.value.length);else if(document.selection&&t.nodeName&&"input"===t.nodeName.toLowerCase()){var i=t.createTextRange();i.collapse(!0),i.moveStart("character",n),i.moveEnd("character",o-n),i.select()}else r.setOffsets(t,e)}};t.exports=c},function(t,e,n){(function(e){"use strict";function o(t,e){for(var n=Math.min(t.length,e.length),o=0;o<n;o++)if(t.charAt(o)!==e.charAt(o))return o;return t.length===e.length?-1:n}function r(t){return t?t.nodeType===U?t.documentElement:t.firstChild:null}function i(t){return t.getAttribute&&t.getAttribute(F)||""}function a(t,e,n,o,r){var i;if(w.logTopLevelRenders){var a=t._currentElement.props.child,s=a.type;i="React mount: "+("string"==typeof s?s:s.displayName||s.name),console.time(i)}var c=O.mountComponent(t,n,null,C(t,e),r,0);i&&console.timeEnd(i),t._renderedComponent._topLevelWrapper=t,W._mountImageIntoNode(c,e,t,o,n)}function s(t,e,n,o){var r=P.ReactReconcileTransaction.getPooled(!n&&N.useCreateElement);r.perform(a,null,t,e,r,n,o),P.ReactReconcileTransaction.release(r)}function c(t,n,o){for("production"!==e.env.NODE_ENV&&S.debugTool.onBeginFlush(),O.unmountComponent(t,o),"production"!==e.env.NODE_ENV&&S.debugTool.onEndFlush(),n.nodeType===U&&(n=n.documentElement);n.lastChild;)n.removeChild(n.lastChild)}function u(t){var e=r(t);if(e){var n=E.getInstanceFromNode(e);return!(!n||!n._hostParent)}}function l(t){var e=r(t);return!(!e||!h(e)||E.getInstanceFromNode(e))}function d(t){return!(!t||t.nodeType!==L&&t.nodeType!==U&&t.nodeType!==j)}function h(t){return d(t)&&(t.hasAttribute(V)||t.hasAttribute(F))}function p(t){var e=r(t),n=e&&E.getInstanceFromNode(e);return n&&!n._hostParent?n:null}function f(t){var e=p(t);return e?e._hostContainerInfo._topLevelWrapper:null}var v=n(4),g=n(20),m=n(15),y=n(17),_=n(28),b=n(12),E=n(6),C=n(132),N=n(134),w=n(65),x=n(21),S=n(9),D=n(154),O=n(22),T=n(42),P=n(11),k=n(23),I=n(77),M=n(2),R=n(32),A=n(48),K=n(3),F=m.ID_ATTRIBUTE_NAME,V=m.ROOT_ATTRIBUTE_NAME,L=1,U=9,j=11,B={},G=1,H=function(){this.rootID=G++};H.prototype.isReactComponent={},"production"!==e.env.NODE_ENV&&(H.displayName="TopLevelWrapper"),H.prototype.render=function(){return this.props.child},H.isReactTopLevelWrapper=!0;var W={TopLevelWrapper:H,_instancesByReactRootID:B,scrollMonitor:function(t,e){e()},_updateRootComponent:function(t,e,n,o,r){return W.scrollMonitor(o,function(){T.enqueueElementInternal(t,e,n),r&&T.enqueueCallbackInternal(t,r)}),t},_renderNewRootComponent:function(t,n,o,r){"production"!==e.env.NODE_ENV?K(null==b.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.",b.current&&b.current.getName()||"ReactCompositeComponent"):void 0,d(n)?void 0:"production"!==e.env.NODE_ENV?M(!1,"_registerComponent(...): Target container is not a DOM element."):v("37"),_.ensureScrollValueMonitoring();var i=I(t,!1);P.batchedUpdates(s,i,n,o,r);var a=i._instance.rootID;return B[a]=i,i},renderSubtreeIntoContainer:function(t,n,o,r){return null!=t&&x.has(t)?void 0:"production"!==e.env.NODE_ENV?M(!1,"parentComponent must be a valid React Component"):v("38"),W._renderSubtreeIntoContainer(t,n,o,r)},_renderSubtreeIntoContainer:function(t,n,o,a){T.validateCallback(a,"ReactDOM.render"),y.isValidElement(n)?void 0:"production"!==e.env.NODE_ENV?M(!1,"ReactDOM.render(): Invalid component element.%s","string"==typeof n?" Instead of passing a string like 'div', pass React.createElement('div') or <div />.":"function"==typeof n?" Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />.":null!=n&&void 0!==n.props?" This may be caused by unintentionally loading two independent copies of React.":""):v("39","string"==typeof n?" Instead of passing a string like 'div', pass React.createElement('div') or <div />.":"function"==typeof n?" Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />.":null!=n&&void 0!==n.props?" This may be caused by unintentionally loading two independent copies of React.":""),"production"!==e.env.NODE_ENV?K(!o||!o.tagName||"BODY"!==o.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."):void 0;var s,c=y.createElement(H,{child:n});if(t){var l=x.get(t);s=l._processChildContext(l._context)}else s=k;var d=f(o);if(d){var h=d._currentElement,p=h.props.child;if(A(p,n)){var g=d._renderedComponent.getPublicInstance(),m=a&&function(){a.call(g)};return W._updateRootComponent(d,c,s,o,m),g}W.unmountComponentAtNode(o)}var _=r(o),b=_&&!!i(_),E=u(o);if("production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?K(!E,"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."):void 0,!b||_.nextSibling))for(var C=_;C;){if(i(C)){"production"!==e.env.NODE_ENV?K(!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."):void 0;break}C=C.nextSibling}var N=b&&!d&&!E,w=W._renderNewRootComponent(c,o,N,s)._renderedComponent.getPublicInstance();return a&&a.call(w),w},render:function(t,e,n){return W._renderSubtreeIntoContainer(null,t,e,n)},unmountComponentAtNode:function(t){"production"!==e.env.NODE_ENV?K(null==b.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.",b.current&&b.current.getName()||"ReactCompositeComponent"):void 0,d(t)?void 0:"production"!==e.env.NODE_ENV?M(!1,"unmountComponentAtNode(...): Target container is not a DOM element."):v("40"),"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?K(!l(t),"unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React."):void 0);var n=f(t);if(!n){var o=u(t),r=1===t.nodeType&&t.hasAttribute(V);return"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?K(!o,"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."):void 0),!1}return delete B[n._instance.rootID],P.batchedUpdates(c,n,t,!1),!0},_mountImageIntoNode:function(t,n,i,a,s){if(d(n)?void 0:"production"!==e.env.NODE_ENV?M(!1,"mountComponentIntoNode(...): Target container is not valid."):v("41"),a){var c=r(n);if(D.canReuseMarkup(t,c))return void E.precacheNode(i,c);var u=c.getAttribute(D.CHECKSUM_ATTR_NAME);c.removeAttribute(D.CHECKSUM_ATTR_NAME);var l=c.outerHTML;c.setAttribute(D.CHECKSUM_ATTR_NAME,u);var h=t;if("production"!==e.env.NODE_ENV){var p;n.nodeType===L?(p=document.createElement("div"),p.innerHTML=t,h=p.innerHTML):(p=document.createElement("iframe"),document.body.appendChild(p),p.contentDocument.write(t),h=p.contentDocument.documentElement.outerHTML,document.body.removeChild(p))}var f=o(h,l),m=" (client) "+h.substring(f-20,f+20)+"\n (server) "+l.substring(f-20,f+20);n.nodeType===U?"production"!==e.env.NODE_ENV?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",m):v("42",m):void 0,"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?K(!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",m):void 0)}if(n.nodeType===U?"production"!==e.env.NODE_ENV?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."):v("43"):void 0,s.useCreateElement){for(;n.lastChild;)n.removeChild(n.lastChild);g.insertTreeBefore(n,t,null)}else R(n,t),E.precacheNode(i,n.firstChild);if("production"!==e.env.NODE_ENV){var y=E.getInstanceFromNode(n.firstChild);0!==y._debugID&&S.debugTool.onHostOperation({instanceID:y._debugID,type:"mount",payload:t.toString()})}}};t.exports=W}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t,e,n){return{type:"INSERT_MARKUP",content:t,fromIndex:null,fromNode:null,toIndex:n,afterNode:e}}function r(t,e,n){return{type:"MOVE_EXISTING",content:null,fromIndex:t._mountIndex,fromNode:v.getHostNode(t),toIndex:n,afterNode:e}}function i(t,e){return{type:"REMOVE_NODE",content:null,fromIndex:t._mountIndex,fromNode:e,toIndex:null,afterNode:null}}function a(t){return{type:"SET_MARKUP",content:t,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function s(t){return{type:"TEXT_CONTENT",content:t,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function c(t,e){return e&&(t=t||[],t.push(e)),t}function u(t,e){d.processChildrenUpdates(t,e)}var l=n(4),d=n(40),h=n(21),p=n(9),f=n(12),v=n(22),g=n(127),m=n(10),y=n(179),_=n(2),b=m;if("production"!==e.env.NODE_ENV){var E=function(t){if(!t._debugID){var e;(e=h.get(t))&&(t=e)}return t._debugID};b=function(t){var e=E(this);0!==e&&p.debugTool.onSetChildren(e,t?Object.keys(t).map(function(e){return t[e]._debugID}):[])}}var C={Mixin:{_reconcilerInstantiateChildren:function(t,n,o){if("production"!==e.env.NODE_ENV){var r=E(this);if(this._currentElement)try{return f.current=this._currentElement._owner,g.instantiateChildren(t,n,o,r)}finally{f.current=null}}return g.instantiateChildren(t,n,o)},_reconcilerUpdateChildren:function(t,n,o,r,i,a){var s,c=0;if("production"!==e.env.NODE_ENV&&(c=E(this),this._currentElement)){try{f.current=this._currentElement._owner,s=y(n,c)}finally{f.current=null}return g.updateChildren(t,s,o,r,i,this,this._hostContainerInfo,a,c),s}return s=y(n,c),g.updateChildren(t,s,o,r,i,this,this._hostContainerInfo,a,c),s},mountChildren:function(t,n,o){var r=this._reconcilerInstantiateChildren(t,n,o);this._renderedChildren=r;var i=[],a=0;for(var s in r)if(r.hasOwnProperty(s)){var c=r[s],u=0;"production"!==e.env.NODE_ENV&&(u=E(this));var l=v.mountComponent(c,n,this,this._hostContainerInfo,o,u);c._mountIndex=a++,i.push(l)}return"production"!==e.env.NODE_ENV&&b.call(this,r),i},updateTextContent:function(t){var n=this._renderedChildren;g.unmountChildren(n,!1);for(var o in n)n.hasOwnProperty(o)&&("production"!==e.env.NODE_ENV?_(!1,"updateTextContent called on non-empty component."):l("118"));var r=[s(t)];u(this,r)},updateMarkup:function(t){var n=this._renderedChildren;g.unmountChildren(n,!1);for(var o in n)n.hasOwnProperty(o)&&("production"!==e.env.NODE_ENV?_(!1,"updateTextContent called on non-empty component."):l("118"));var r=[a(t)];u(this,r)},updateChildren:function(t,e,n){this._updateChildren(t,e,n)},_updateChildren:function(t,n,o){var r=this._renderedChildren,i={},a=[],s=this._reconcilerUpdateChildren(r,t,a,i,n,o);if(s||r){var l,d=null,h=0,p=0,f=0,g=null;for(l in s)if(s.hasOwnProperty(l)){var m=r&&r[l],y=s[l];m===y?(d=c(d,this.moveChild(m,g,h,p)),
  p=Math.max(m._mountIndex,p),m._mountIndex=h):(m&&(p=Math.max(m._mountIndex,p)),d=c(d,this._mountChildAtIndex(y,a[f],g,h,n,o)),f++),h++,g=v.getHostNode(y)}for(l in i)i.hasOwnProperty(l)&&(d=c(d,this._unmountChild(r[l],i[l])));d&&u(this,d),this._renderedChildren=s,"production"!==e.env.NODE_ENV&&b.call(this,s)}},unmountChildren:function(t){var e=this._renderedChildren;g.unmountChildren(e,t),this._renderedChildren=null},moveChild:function(t,e,n,o){if(t._mountIndex<o)return r(t,e,n)},createChild:function(t,e,n){return o(n,e,t._mountIndex)},removeChild:function(t,e){return i(t,e)},_mountChildAtIndex:function(t,e,n,o,r,i){return t._mountIndex=o,this.createChild(t,n,e)},_unmountChild:function(t,e){var n=this.removeChild(t,e);return t._mountIndex=null,n}}};t.exports=C}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var o=n(4),r=n(17),i=n(2),a={HOST:0,COMPOSITE:1,EMPTY:2,getType:function(t){return null===t||t===!1?a.EMPTY:r.isValidElement(t)?"function"==typeof t.type?a.COMPOSITE:a.HOST:void("production"!==e.env.NODE_ENV?i(!1,"Unexpected node: %s",t):o("26",t))}};t.exports=a}).call(e,n(1))},function(t,e){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=n},function(t,e){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(t){n.currentScrollLeft=t.x,n.currentScrollTop=t.y}};t.exports=n},function(t,e,n){(function(e){"use strict";function o(t,n){return null==n?"production"!==e.env.NODE_ENV?i(!1,"accumulateInto(...): Accumulated items must not be null or undefined."):r("30"):void 0,null==t?n:Array.isArray(t)?Array.isArray(n)?(t.push.apply(t,n),t):(t.push(n),t):Array.isArray(n)?[t].concat(n):[t,n]}var r=n(4),i=n(2);t.exports=o}).call(e,n(1))},function(t,e){"use strict";function n(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}t.exports=n},function(t,e,n){"use strict";function o(t){for(var e;(e=t._renderedNodeType)===r.COMPOSITE;)t=t._renderedComponent;return e===r.HOST?t._renderedComponent:e===r.EMPTY?null:void 0}var r=n(70);t.exports=o},function(t,e,n){"use strict";function o(){return!i&&r.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var r=n(7),i=null;t.exports=o},function(t,e,n){(function(e){"use strict";function o(t){if(t){var e=t.getName();if(e)return" Check the render method of `"+e+"`."}return""}function r(t){return"function"==typeof t&&"undefined"!=typeof t.prototype&&"function"==typeof t.prototype.mountComponent&&"function"==typeof t.prototype.receiveComponent}function i(t,n){var s;if(null===t||t===!1)s=u.create(i);else if("object"==typeof t){var c=t;!c||"function"!=typeof c.type&&"string"!=typeof c.type?"production"!==e.env.NODE_ENV?h(!1,"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",null==c.type?c.type:typeof c.type,o(c._owner)):a("130",null==c.type?c.type:typeof c.type,o(c._owner)):void 0,"string"==typeof c.type?s=l.createInternalComponent(c):r(c.type)?(s=new c.type(c),s.getHostNode||(s.getHostNode=s.getNativeNode)):s=new f(c)}else"string"==typeof t||"number"==typeof t?s=l.createInstanceForText(t):"production"!==e.env.NODE_ENV?h(!1,"Encountered invalid React node of type %s",typeof t):a("131",typeof t);return"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?p("function"==typeof s.mountComponent&&"function"==typeof s.receiveComponent&&"function"==typeof s.getHostNode&&"function"==typeof s.unmountComponent,"Only React Components can be mounted."):void 0),s._mountIndex=0,s._mountImage=null,"production"!==e.env.NODE_ENV&&(s._debugID=n?d():0),"production"!==e.env.NODE_ENV&&Object.preventExtensions&&Object.preventExtensions(s),s}var a=n(4),s=n(5),c=n(129),u=n(64),l=n(66),d=n(182),h=n(2),p=n(3),f=function(t){this.construct(t)};s(f.prototype,c,{_instantiateReactComponent:i}),t.exports=i}).call(e,n(1))},function(t,e){"use strict";function n(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!o[t.type]:"textarea"===e}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};t.exports=n},function(t,e,n){"use strict";var o=n(7),r=n(31),i=n(32),a=function(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e};o.canUseDOM&&("textContent"in document.documentElement||(a=function(t,e){return 3===t.nodeType?void(t.nodeValue=e):void i(t,r(e))})),t.exports=a},function(t,e,n){(function(e){"use strict";function o(t,e){return t&&"object"==typeof t&&null!=t.key?d.escape(t.key):e.toString(36)}function r(t,n,i,g){var m=typeof t;if("undefined"!==m&&"boolean"!==m||(t=null),null===t||"string"===m||"number"===m||"object"===m&&t.$$typeof===c)return i(g,t,""===n?p+o(t,0):n),1;var y,_,b=0,E=""===n?p:n+f;if(Array.isArray(t))for(var C=0;C<t.length;C++)y=t[C],_=E+o(y,C),b+=r(y,_,i,g);else{var N=u(t);if(N){var w,x=N.call(t);if(N!==t.entries)for(var S=0;!(w=x.next()).done;)y=w.value,_=E+o(y,S++),b+=r(y,_,i,g);else{if("production"!==e.env.NODE_ENV){var D="";if(s.current){var O=s.current.getName();O&&(D=" Check the render method of `"+O+"`.")}"production"!==e.env.NODE_ENV?h(v,"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",D):void 0,v=!0}for(;!(w=x.next()).done;){var T=w.value;T&&(y=T[1],_=E+d.escape(T[0])+f+o(y,0),b+=r(y,_,i,g))}}}else if("object"===m){var P="";if("production"!==e.env.NODE_ENV&&(P=" 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.",t._isReactElement&&(P=" It looks like you're using an element created by a different version of React. Make sure to use only one copy of React."),s.current)){var k=s.current.getName();k&&(P+=" Check the render method of `"+k+"`.")}var I=String(t);"production"!==e.env.NODE_ENV?l(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===I?"object with keys {"+Object.keys(t).join(", ")+"}":I,P):a("31","[object Object]"===I?"object with keys {"+Object.keys(t).join(", ")+"}":I,P)}}return b}function i(t,e,n){return null==t?0:r(t,"",e,n)}var a=n(4),s=n(12),c=n(148),u=n(181),l=n(2),d=n(38),h=n(3),p=".",f=":",v=!1;t.exports=i}).call(e,n(1))},function(t,e,n){function o(t){var e=function(t){this.node=null,this.subscriptions=null,this.listeners=null,this._mountImage=null,this._renderedChildren=null,this._mostRecentlyPlacedChild=null,this._initialProps=t.props,this._currentElement=t};e.displayName=t;for(var n=1,o=arguments.length;n<o;n++)u(e.prototype,arguments[n]);return e}var r=n(116),i=n(17),a=n(21),s=n(69),c=n(11),u=n(188),l=n(187),d=r.Container.prototype.add;r.Container.prototype.add=function(t){t.parentNode=this,d.apply(this,arguments)},r.Container.prototype.replaceChild=function(t,e){var n=e.index,o=e.parent;e.destroy(),e.parentNode=null,o.add(t),t.index!==n&&t.setZIndex(n),o.getLayer().batchDraw()};var h=u({},s.Mixin,{moveChild:function(t,e,n,o){var r=t._mountImage.node;if(r.index!==n){r.setZIndex(n);var i=r.getLayer();i&&i.batchDraw()}},createChild:function(t,e,n){t._mountImage=n;var o=n.node;o.moveTo(this.node),o.parentNode=this.node,t._mountIndex!==o.index&&o.setZIndex(t._mountIndex),this._mostRecentlyPlacedChild=o;var r=o.getLayer();r&&r.batchDraw()},removeChild:function(t,e){var n=t._mountImage.node.getLayer();t._mountImage.node.destroy(),t._mountImage.node.parentNode=null,n&&n.batchDraw(),t._mountImage=null},updateChildrenAtRoot:function(t,e){this.updateChildren(t,e,l)},mountAndInjectChildrenAtRoot:function(t,e){this.mountAndInjectChildren(t,e,l)},updateChildren:function(t,e,n){this._mostRecentlyPlacedChild=null,this._updateChildren(t,e,n)},mountAndInjectChildren:function(t,e,n){var o=this.mountChildren(t,e,n),i=0;for(var a in this._renderedChildren)if(this._renderedChildren.hasOwnProperty(a)){var s=this._renderedChildren[a];s._mountImage=o[i];var c=o[i].node;if(!c instanceof r.Node){var u="Looks like one of child element is not Konva.Node.react-konva do not support in for now.";console.error(u,this);continue}c.parent!==this.node&&c.moveTo(this.node),i++}},mountAndAddChildren:function(){console.log("mountAndAddChildren")}}),p={children:!0,ref:!0,key:!0},f={construct:function(t){this._currentElement=t},receiveComponent:function(t,e,n){var o=t.props,r=this._currentElement.props||this._initialProps;this.applyNodeProps(r,o),this.updateChildren(o.children,e,n),this._currentElement=t},getPublicInstance:function(){return this.node},putEventListener:function(t,e){},handleEvent:function(t){},getNativeNode:function(){return this.node},applyNodeProps:function(t,e){var n={},o=!1;for(var r in t)if(!p[r]){var i="on"===r.slice(0,2),a=t[r]!==e[r];if(i&&a){var s=r.substr(2).toLowerCase();"content"===s.substr(0,7)&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),this.node.off(s,t[r])}var c=!e.hasOwnProperty(r);c&&this.node.setAttr(r,void 0)}for(var r in e)if(!p[r]){var i="on"===r.slice(0,2),u=t[r]!==e[r];if(i&&u){var s=r.substr(2).toLowerCase();"content"===s.substr(0,7)&&(s="content"+s.substr(7,1).toUpperCase()+s.substr(8)),this.node.on(s,e[r])}i||e[r]===t[r]&&e[r]===this.node.getAttr(r)||(o=!0,n[r]=e[r])}if(o){this.node.setAttrs(n);var l=this.node.getLayer()||this.node.getStage();l&&l.batchDraw();var d,h;for(h in n)if(d=n[h],d instanceof Image&&!d.complete){var f=this.node;d.addEventListener("load",function(){var t=f.getLayer();t&&t.batchDraw()})}}},unmountComponent:function(){},mountComponentIntoNode:function(t,e){throw new Error("You cannot render an ART component standalone. You need to wrap it in a Stage.")}},v=i.createClass({propTypes:{width:i.PropTypes.oneOfType([i.PropTypes.number,i.PropTypes.string]),height:i.PropTypes.oneOfType([i.PropTypes.number,i.PropTypes.string])},displayName:"Stage",mixins:[h],componentDidMount:function(){this.node=new r.Stage({container:this.domNode,width:this.props.width,height:this.props.height}),this.applyNodeProps(l,this.props),this._debugID=this._reactInternalInstance._debugID;var t=c.ReactReconcileTransaction.getPooled();t.perform(this.mountAndInjectChildren,this,this.props.children,t,a.get(this)._context),c.ReactReconcileTransaction.release(t),this.node.draw()},getStage:function(){return this.node},componentDidUpdate:function(t){this.node;this.applyNodeProps(t,this.props);var e=c.ReactReconcileTransaction.getPooled();e.perform(this.updateChildren,this,this.props.children,e,a.get(this)._context),c.ReactReconcileTransaction.release(e)},componentWillUnmount:function(){this.unmountChildren(),this.node.destroy(),this.node.parentNode=null},applyNodeProps:f.applyNodeProps,render:function(){var t=this.props;return i.createElement("div",{ref:function(t){return this.domNode=t}.bind(this),className:t.className,role:t.role,style:t.style,tabIndex:t.tabIndex,title:t.title})}}),g={mountComponent:function(t,e,n,o){this.node=new r[this.constructor.displayName],e.node.add(this.node);var i=this._initialProps;return this.applyNodeProps(l,i),this.mountAndInjectChildren(i.children,t,o),{children:[],node:this.node,html:null,text:null}},unmountComponent:function(){this.unmountChildren()}},m={construct:function(t){this._currentElement=t,this._oldPath=null},mountComponent:function(t,e,n,o){return this.node=new r[this.constructor.displayName],e&&e.node.add(this.node),this.applyNodeProps(l,this._initialProps),{children:[],node:this.node,html:null,text:null}},receiveComponent:function(t,e,n){var o=t.props,r=this._currentElement.props||this._initialProps;this.applyNodeProps(r,o),this._currentElement=t}},y=o("Group",f,h,g),_=o("Layer",f,h,g),b=o("FastLayer",f,h,g),E=o("Label",f,h,g),C={Stage:v,Group:y,Layer:_,FastLayer:b,Label:E},N=["Rect","Circle","Ellipse","Wedge","Line","Sprite","Image","Text","TextPath","Star","Ring","Arc","Tag","Path","RegularPolygon","Arrow","Shape"];N.forEach(function(t){C[t]=o(t,f,m)}),t.exports=C},function(t,e,n){"use strict";e.__esModule=!0;var o=n(14);e.default=o.PropTypes.shape({subscribe:o.PropTypes.func.isRequired,dispatch:o.PropTypes.func.isRequired,getState:o.PropTypes.func.isRequired})},function(t,e){"use strict";function n(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}e.__esModule=!0,e.default=n},function(t,e,n){var o=n(203),r=o.Symbol;t.exports=r},function(t,e){"use strict";var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=n},function(t,e,n){(function(e){"use strict";function o(){if(c.current){var t=c.current.getName();if(t)return" Check the render method of `"+t+"`."}return""}function r(t){var e=o();if(!e){var n="string"==typeof t?t:t.displayName||t.name;n&&(e=" Check the top-level render call using <"+n+">.")}return e}function i(t,n){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;var o=v.uniqueKey||(v.uniqueKey={}),i=r(n);if(!o[i]){o[i]=!0;var a="";t&&t._owner&&t._owner!==c.current&&(a=" It was passed a child from "+t._owner.getName()+"."),"production"!==e.env.NODE_ENV?f(!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',i,a,u.getCurrentStackAddendum(t)):void 0}}}function a(t,e){if("object"==typeof t)if(Array.isArray(t))for(var n=0;n<t.length;n++){var o=t[n];l.isValidElement(o)&&i(o,e)}else if(l.isValidElement(t))t._store&&(t._store.validated=!0);else if(t){var r=p(t);if(r&&r!==t.entries)for(var a,s=r.call(t);!(a=s.next()).done;)l.isValidElement(a.value)&&i(a.value,e)}}function s(t){var n=t.type;if("function"==typeof n){var o=n.displayName||n.name;n.propTypes&&d(n.propTypes,t.props,"prop",o,t,null),"function"==typeof n.getDefaultProps&&("production"!==e.env.NODE_ENV?f(n.getDefaultProps.isReactClassApproved,"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."):void 0)}}var c=n(12),u=n(8),l=n(18),d=n(214),h=n(53),p=n(54),f=n(3),v={},g={createElement:function(t,n,r){var i="string"==typeof t||"function"==typeof t;i||("production"!==e.env.NODE_ENV?f(!1,"React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components).%s",o()):void 0);var c=l.createElement.apply(this,arguments);if(null==c)return c;if(i)for(var u=2;u<arguments.length;u++)a(arguments[u],t);return s(c),c},createFactory:function(t){var n=g.createElement.bind(null,t);return n.type=t,"production"!==e.env.NODE_ENV&&h&&Object.defineProperty(n,"type",{enumerable:!1,get:function(){return"production"!==e.env.NODE_ENV?f(!1,"Factory.type is deprecated. Access the class directly before passing it to createFactory."):void 0,Object.defineProperty(this,"type",{value:t}),t}}),n},cloneElement:function(t,e,n){for(var o=l.cloneElement.apply(this,arguments),r=2;r<arguments.length;r++)a(arguments[r],o.type);return s(o),o}};t.exports=g}).call(e,n(1))},function(t,e){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=n},function(t,e){"use strict";function n(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];if(0===e.length)return function(t){return t};if(1===e.length)return e[0];var o=e[e.length-1],r=e.slice(0,-1);return function(){return r.reduceRight(function(t,e){return e(t)},o.apply(void 0,arguments))}}e.__esModule=!0,e.default=n},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n){function o(){m===g&&(m=g.slice())}function i(){return v}function s(t){if("function"!=typeof t)throw new Error("Expected listener to be a function.");var e=!0;return o(),m.push(t),function(){if(e){e=!1,o();var n=m.indexOf(t);m.splice(n,1)}}}function l(t){if(!(0,a.default)(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"==typeof t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(y)throw new Error("Reducers may not dispatch actions.");try{y=!0,v=f(v,t)}finally{y=!1}for(var e=g=m,n=0;n<e.length;n++)e[n]();return t}function d(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");f=t,l({type:u.INIT})}function h(){var t,e=s;return t={subscribe:function(t){function n(){t.next&&t.next(i())}if("object"!=typeof t)throw new TypeError("Expected the observer to be an object.");n();var o=e(n);return{unsubscribe:o}}},t[c.default]=function(){return this},t}var p;if("function"==typeof e&&"undefined"==typeof n&&(n=e,e=void 0),"undefined"!=typeof n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(r)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var f=t,v=e,g=[],m=g,y=!1;return l({type:u.INIT}),p={dispatch:l,subscribe:s,getState:i,replaceReducer:d},p[c.default]=h,p}e.__esModule=!0,e.ActionTypes=void 0,e.default=r;var i=n(92),a=o(i),s=n(228),c=o(s),u=e.ActionTypes={INIT:"@@redux/INIT"}},function(t,e){"use strict";function n(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}e.__esModule=!0,e.default=n},function(t,e,n){var o=n(226),r=o.Symbol;t.exports=r},function(t,e,n){function o(t){if(!a(t)||r(t)!=s)return!1;var e=i(t);if(null===e)return!0;var n=d.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==h}var r=n(220),i=n(222),a=n(227),s="[object Object]",c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,h=l.call(Object);t.exports=o},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},c=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),u=n(14),l=o(u),d=n(34),h=(o(d),n(81)),p=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},f=20,v=function(t){function e(){var t;r(this,e);for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];var c=i(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(o)));return c.toggleAnimation=function(t){t?c.state.anim.stop():c.state.anim.start()},c.toggleAnimationCircle=function(t){t?c.state.anim.stop():c.state.anim.start()},c.move=function(t){var e=c.refs.circle,n={n:[c.state.x,c.state.y,c.state.VelocityX,c.state.VelocityY]};n.n[0]>=1110-f&&(n.n[2]=-n.n[2]),n.n[0]<=f&&(n.n[2]=-n.n[2]),n.n[1]>=500-f&&(n.n[3]=-n.n[3]),n.n[1]<=f&&(n.n[3]=-n.n[3]),console.log(f),c.props.layer.getIntersection({x:n.n[0]-f-3,y:n.n[1]})&&(n.n[2]=-n.n[2],n.n[3]=-n.n[3]),c.props.layer.getIntersection({x:n.n[0]+f+3,y:n.n[1]})&&(n.n[2]=-n.n[2],n.n[3]=-n.n[3]),c.props.layer.getIntersection({x:n.n[0],y:n.n[1]+f+3})&&(n.n[2]=-n.n[2],n.n[3]=-n.n[3]),c.props.layer.getIntersection({x:n.n[0],y:n.n[1]-f-3})&&(n.n[2]=-n.n[2],n.n[3]=-n.n[3]),n.n[0]=n.n[0]+n.n[2],n.n[1]=n.n[1]+n.n[3],e.setX(n.n[0]),e.setY(n.n[1]),c.setState({x:n.n[0],y:n.n[1],VelocityX:n.n[2],VelocityY:n.n[3]})},c.handleToggleAnimationCircle=function(){c.setState(s({},c.state,{isRunningCircle:!c.state.isRunningCircle})),c.toggleAnimationCircle(c.state.isRunningCircle)},c.state={color:Konva.Util.getRandomColor(),x:p(50,1e3),y:p(50,470),VelocityX:p(2,3),VelocityY:p(2,3),isRunningCircle:c.props.isRunning},c}return a(e,t),c(e,[{key:"componentDidMount",value:function(){var t=this;this.refs.circle;console.log("djhasvcvh"),this.setState(s({},this.state,{anim:new Konva.Animation(function(e){t.move(t.props.innerKey)},this.props.layer)}))}},{key:"componentWillReceiveProps",value:function(t){this.props.isRunning!==t.isRunning&&this.toggleAnimation(t.isRunning)}},{key:"render",value:function(){return l.default.createElement(h.Circle,{ref:"circle",x:this.state.x,y:this.state.y,radius:f,fill:this.state.color,shadowBlur:10,onClick:this.handleToggleAnimationCircle,stroke:"black",strokeWidth:4})}}]),e}(u.Component);e.default=v,v.propTypes={innerKey:u.PropTypes.number.isRequired,isRunning:u.PropTypes.bool.isRequired}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),c=n(14),u=o(c),l=n(34),d=(o(l),n(81)),h=o(d),p=n(93),f=o(p),v=(h.default.Surface,h.default.Image,h.default.Text,1110),g=500,m=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"render",value:function(){for(var t=[],e=0;e<this.props.value;e++){var n=e;t.push(u.default.createElement(f.default,{key:e,innerKey:n,value:this.props.value,width:v,height:g,layer:this.refs.layer,isRunning:this.props.isRunning}))}return u.default.createElement("div",{className:"img"},u.default.createElement(d.Stage,{width:v,height:g},u.default.createElement(d.Layer,{ref:"layer"},t)))}}]),e}(c.Component);e.default=m,m.propTypes={value:c.PropTypes.number.isRequired,isRunning:c.PropTypes.bool.isRequired}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),c=n(14),u=o(c),l=n(190),d=o(l),h=function(t){function e(){return r(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"render",value:function(){return u.default.createElement("div",null,u.default.createElement(d.default,{onChange:this.props.handleChange,value:this.props.value,orientation:"horizontal",min:1,max:12,step:1}),u.default.createElement("div",null,"Value: ",this.props.value))}}]),e}(c.Component);e.default=h},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},c=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),u=n(14),l=o(u),d=n(95),h=o(d),p=n(94),f=o(p),v=function(t){function e(t,n){r(this,e);var o=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o.handleChange=function(t){o.setState(s({},o.state,{value:t}))},o.handleToggleAnimation=function(){o.setState(s({},o.state,{isRunning:!o.state.isRunning}))},o.state={isRunning:!0,value:3},o}return a(e,t),c(e,[{key:"render",value:function(){var t=this.state.isRunning?"Start":"Stop";return l.default.createElement("div",null,l.default.createElement("h4",null,"Welcome!"),l.default.createElement("button",{onClick:this.handleToggleAnimation},t),l.default.createElement(h.default,{handleChange:this.handleChange,value:this.state.value}),l.default.createElement(f.default,{value:this.state.value,isRunning:this.state.isRunning}),l.default.createElement("h3",null,"Try to catch circle and stop it!"))}}]),e}(u.Component);e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}var r=n(14),i=o(r),a=n(34),s=o(a),c=n(194),u=n(55),l=n(96),d=o(l),h=n(98),p=o(h),f=(0,u.applyMiddleware)()(u.createStore);s.default.render(i.default.createElement(c.Provider,{store:f(p.default)},i.default.createElement(d.default,null)),document.querySelector(".container"))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(55),r=(0,o.combineReducers)({state:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t}});e.default=r},function(t,e,n){var o,r;/*!
  	  Copyright (c) 2016 Jed Watson.
  	  Licensed under the MIT License (MIT), see
  	  http://jedwatson.github.io/classnames
  	*/
  !function(){"use strict";function n(){for(var t=[],e=0;e<arguments.length;e++){var o=arguments[e];if(o){var r=typeof o;if("string"===r||"number"===r)t.push(o);else if(Array.isArray(o))t.push(n.apply(null,o));else if("object"===r)for(var a in o)i.call(o,a)&&o[a]&&t.push(a)}}return t.join(" ")}var i={}.hasOwnProperty;"undefined"!=typeof t&&t.exports?t.exports=n:(o=[],r=function(){return n}.apply(e,o),!(void 0!==r&&(t.exports=r)))}()},function(t,e){"use strict";function n(t){return t.replace(o,function(t,e){return e.toUpperCase()})}var o=/-(.)/g;t.exports=n},function(t,e,n){"use strict";function o(t){return r(t.replace(i,"ms-"))}var r=n(100),i=/^-ms-/;t.exports=o},function(t,e,n){"use strict";function o(t,e){return!(!t||!e)&&(t===e||!r(t)&&(r(e)?o(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var r=n(110);t.exports=o},function(t,e,n){(function(e){"use strict";function o(t){var n=t.length;if(Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t?"production"!==e.env.NODE_ENV?a(!1,"toArray: Array-like object expected"):a(!1):void 0,"number"!=typeof n?"production"!==e.env.NODE_ENV?a(!1,"toArray: Object needs a length property"):a(!1):void 0,0===n||n-1 in t?void 0:"production"!==e.env.NODE_ENV?a(!1,"toArray: Object should have keys for indices"):a(!1),"function"==typeof t.callee?"production"!==e.env.NODE_ENV?a(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):a(!1):void 0,t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var o=Array(n),r=0;r<n;r++)o[r]=t[r];return o}function r(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}function i(t){return r(t)?Array.isArray(t)?t.slice():o(t):[t]}var a=n(2);t.exports=i}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t){var e=t.match(l);return e&&e[1].toLowerCase()}function r(t,n){var r=u;u?void 0:"production"!==e.env.NODE_ENV?c(!1,"createNodesFromMarkup dummy not initialized"):c(!1);var i=o(t),l=i&&s(i);if(l){r.innerHTML=l[1]+t+l[2];for(var d=l[0];d--;)r=r.lastChild}else r.innerHTML=t;var h=r.getElementsByTagName("script");h.length&&(n?void 0:"production"!==e.env.NODE_ENV?c(!1,"createNodesFromMarkup(...): Unexpected <script> element rendered."):c(!1),a(h).forEach(n));for(var p=Array.from(r.childNodes);r.lastChild;)r.removeChild(r.lastChild);return p}var i=n(7),a=n(103),s=n(105),c=n(2),u=i.canUseDOM?document.createElement("div"):null,l=/^\s*<(\w+)/;t.exports=r}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t){return a?void 0:"production"!==e.env.NODE_ENV?i(!1,"Markup wrapping node not initialized"):i(!1),h.hasOwnProperty(t)||(t="*"),s.hasOwnProperty(t)||("*"===t?a.innerHTML="<link />":a.innerHTML="<"+t+"></"+t+">",s[t]=!a.firstChild),s[t]?h[t]:null}var r=n(7),i=n(2),a=r.canUseDOM?document.createElement("div"):null,s={},c=[1,'<select multiple="true">',"</select>"],u=[1,"<table>","</table>"],l=[3,"<table><tbody><tr>","</tr></tbody></table>"],d=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],h={"*":[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},p=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];p.forEach(function(t){h[t]=d,s[t]=!0}),t.exports=o}).call(e,n(1))},function(t,e){"use strict";function n(t){return t===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}t.exports=n},function(t,e){"use strict";function n(t){return t.replace(o,"-$1").toLowerCase()}var o=/([A-Z])/g;t.exports=n},function(t,e,n){"use strict";function o(t){return r(t).replace(i,"-ms-")}var r=n(107),i=/^ms-/;t.exports=o},function(t,e){"use strict";function n(t){return!(!t||!("function"==typeof Node?t instanceof Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=n},function(t,e,n){"use strict";function o(t){return r(t)&&3==t.nodeType}var r=n(109);t.exports=o},function(t,e){"use strict";function n(t){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=t.call(this,n)),e[n]}}t.exports=n},function(t,e,n){"use strict";var o,r=n(7);r.canUseDOM&&(o=window.performance||window.msPerformance||window.webkitPerformance),t.exports=o||{}},function(t,e,n){"use strict";var o,r=n(112);o=r.now?function(){return r.now()}:function(){return Date.now()},t.exports=o},function(t,e){"use strict";var n={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},r="function"==typeof Object.getOwnPropertySymbols;t.exports=function(t,e,i){if("string"!=typeof e){var a=Object.getOwnPropertyNames(e);r&&(a=a.concat(Object.getOwnPropertySymbols(e)));for(var s=0;s<a.length;++s)if(!(n[a[s]]||o[a[s]]||i&&i[a[s]]))try{t[a[s]]=e[a[s]]}catch(t){}}return t}},function(t,e,n){(function(e){"use strict";var n=function(t,n,o,r,i,a,s,c){if("production"!==e.env.NODE_ENV&&void 0===n)throw new Error("invariant requires an error message argument");if(!t){var u;if(void 0===n)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[o,r,i,a,s,c],d=0;u=new Error(n.replace(/%s/g,function(){return l[d++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};t.exports=n}).call(e,n(1))},function(t,e,n){(function(o){/*
  	 * Konva JavaScript Framework v1.2.2
  	 * http://konvajs.github.io/
  	 * Licensed under the MIT or GPL Version 2 licenses.
  	 * Date: Tue Sep 20 2016
  	 *
  	 * Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
  	 * Modified work Copyright (C) 2014 - 2015 by Anton Lavrenov (Konva)
  	 *
  	 * @license
  	 * Permission is hereby granted, free of charge, to any person obtaining a copy
  	 * of this software and associated documentation files (the "Software"), to deal
  	 * in the Software without restriction, including without limitation the rights
  	 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  	 * copies of the Software, and to permit persons to whom the Software is
  	 * furnished to do so, subject to the following conditions:
  	 *
  	 * The above copyright notice and this permission notice shall be included in
  	 * all copies or substantial portions of the Software.
  	 *
  	 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  	 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  	 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  	 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  	 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  	 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  	 * THE SOFTWARE.
  	 */
  !function(e){"use strict";var o=Math.PI/180,r={version:"1.2.2",stages:[],idCounter:0,ids:{},names:{},shapes:{},listenClickTap:!1,inDblClickWindow:!1,enableTrace:!1,traceArrMax:100,dblClickWindow:400,pixelRatio:void 0,dragDistance:0,angleDeg:!0,showWarnings:!0,Filters:{},isDragging:function(){var t=r.DD;return!!t&&t.isDragging},isDragReady:function(){var t=r.DD;return!!t&&!!t.node},_addId:function(t,e){void 0!==e&&(this.ids[e]=t)},_removeId:function(t){void 0!==t&&delete this.ids[t]},_addName:function(t,e){e&&(this.names[e]||(this.names[e]=[]),this.names[e].push(t))},_removeName:function(t,e){if(t){var n=this.names[t];if(n){for(var o=0;o<n.length;o++){var r=n[o];r._id===e&&n.splice(o,1)}0===n.length&&delete this.names[t]}}},getAngle:function(t){return this.angleDeg?t*o:t},_detectIE:function(t){var e=t.indexOf("msie ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);var n=t.indexOf("trident/");if(n>0){var o=t.indexOf("rv:");return parseInt(t.substring(o+3,t.indexOf(".",o)),10)}var r=t.indexOf("edge/");return r>0&&parseInt(t.substring(r+5,t.indexOf(".",r)),10)},_parseUA:function(t){var e=t.toLowerCase(),n=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],o=!!t.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i),i=!!t.match(/IEMobile/i);return{browser:n[1]||"",version:n[2]||"0",isIE:r._detectIE(e),mobile:o,ieMobile:i}},UA:void 0},i="undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof WorkerGlobalScope?self:{};if(r.UA=r._parseUA(i.navigator&&i.navigator.userAgent||""),i.Konva&&console.error("Konva instance is already exist in current eviroment. Please use only one instance."),i.Konva=r,r.global=i,i.window&&i.window.document)r.document=i.window.document,r.window=i.window;else{var a=n(232),s=n(233).jsdom;r.window=s("<!DOCTYPE html><html><head></head><body></body></html>").defaultView,r.document=r.window.document,r.window.Image=a.Image,r._nodeCanvas=a}return void(t.exports=r)}("undefined"!=typeof window?window:o),function(){"use strict";Konva.Collection=function(){var t=[].slice.call(arguments),e=t.length,n=0;for(this.length=e;n<e;n++)this[n]=t[n];return this},Konva.Collection.prototype=[],Konva.Collection.prototype.each=function(t){for(var e=0;e<this.length;e++)t(this[e],e)},Konva.Collection.prototype.toArray=function(){var t,e=[],n=this.length;for(t=0;t<n;t++)e.push(this[t]);return e},Konva.Collection.toCollection=function(t){var e,n=new Konva.Collection,o=t.length;for(e=0;e<o;e++)n.push(t[e]);return n},Konva.Collection._mapMethod=function(t){Konva.Collection.prototype[t]=function(){var e,n=this.length,o=[].slice.call(arguments);for(e=0;e<n;e++)this[e][t].apply(this[e],o);return this}},Konva.Collection.mapMethods=function(t){var e=t.prototype;for(var n in e)Konva.Collection._mapMethod(n)},Konva.Transform=function(t){this.m=t&&t.slice()||[1,0,0,1,0,0]},Konva.Transform.prototype={copy:function(){return new Konva.Transform(this.m)},point:function(t){var e=this.m;return{x:e[0]*t.x+e[2]*t.y+e[4],y:e[1]*t.x+e[3]*t.y+e[5]}},translate:function(t,e){return this.m[4]+=this.m[0]*t+this.m[2]*e,this.m[5]+=this.m[1]*t+this.m[3]*e,this},scale:function(t,e){return this.m[0]*=t,this.m[1]*=t,this.m[2]*=e,this.m[3]*=e,this},rotate:function(t){var e=Math.cos(t),n=Math.sin(t),o=this.m[0]*e+this.m[2]*n,r=this.m[1]*e+this.m[3]*n,i=this.m[0]*-n+this.m[2]*e,a=this.m[1]*-n+this.m[3]*e;return this.m[0]=o,this.m[1]=r,this.m[2]=i,this.m[3]=a,this},getTranslation:function(){return{x:this.m[4],y:this.m[5]}},skew:function(t,e){var n=this.m[0]+this.m[2]*e,o=this.m[1]+this.m[3]*e,r=this.m[2]+this.m[0]*t,i=this.m[3]+this.m[1]*t;return this.m[0]=n,this.m[1]=o,this.m[2]=r,this.m[3]=i,this},multiply:function(t){var e=this.m[0]*t.m[0]+this.m[2]*t.m[1],n=this.m[1]*t.m[0]+this.m[3]*t.m[1],o=this.m[0]*t.m[2]+this.m[2]*t.m[3],r=this.m[1]*t.m[2]+this.m[3]*t.m[3],i=this.m[0]*t.m[4]+this.m[2]*t.m[5]+this.m[4],a=this.m[1]*t.m[4]+this.m[3]*t.m[5]+this.m[5];return this.m[0]=e,this.m[1]=n,this.m[2]=o,this.m[3]=r,this.m[4]=i,this.m[5]=a,this},invert:function(){var t=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),e=this.m[3]*t,n=-this.m[1]*t,o=-this.m[2]*t,r=this.m[0]*t,i=t*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),a=t*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=e,this.m[1]=n,this.m[2]=o,this.m[3]=r,this.m[4]=i,this.m[5]=a,this},getMatrix:function(){return this.m},setAbsolutePosition:function(t,e){var n=this.m[0],o=this.m[1],r=this.m[2],i=this.m[3],a=this.m[4],s=this.m[5],c=(n*(e-s)-o*(t-a))/(n*i-o*r),u=(t-a-r*c)/n;return this.translate(u,c)}};var t="2d",n="[object Array]",o="[object Number]",r="[object String]",i=Math.PI/180,a=180/Math.PI,s="#",c="",u="0",l="Konva warning: ",d="Konva error: ",h="rgb(",p={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},f=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;Konva.Util={_isElement:function(t){return!(!t||1!=t.nodeType)},_isFunction:function(t){return!!(t&&t.constructor&&t.call&&t.apply)},_isObject:function(t){return!!t&&t.constructor===Object},_isArray:function(t){return Object.prototype.toString.call(t)===n},_isNumber:function(t){return Object.prototype.toString.call(t)===o},_isString:function(t){return Object.prototype.toString.call(t)===r},_throttle:function(t,e,n){var o,r,i,a=null,s=0,c=n||{},u=function(){s=c.leading===!1?0:(new Date).getTime(),a=null,i=t.apply(o,r),o=r=null};return function(){var n=(new Date).getTime();s||c.leading!==!1||(s=n);var l=e-(n-s);return o=this,r=arguments,l<=0?(clearTimeout(a),a=null,s=n,i=t.apply(o,r),o=r=null):a||c.trailing===!1||(a=setTimeout(u,l)),i}},_hasMethods:function(t){var e,n=[];for(e in t)t.hasOwnProperty(e)&&this._isFunction(t[e])&&n.push(e);return n.length>0},isValidSelector:function(t){if("string"!=typeof t)return!1;var e=t[0];return"#"===e||"."===e||e===e.toUpperCase()},createCanvasElement:function(){var t=Konva.document.createElement("canvas");try{t.style=t.style||{}}catch(t){}return t},isBrowser:function(){return"object"!=typeof e},_isInDocument:function(t){for(;t=t.parentNode;)if(t==Konva.document)return!0;return!1},_simplifyArray:function(t){var e,n,o=[],r=t.length,i=Konva.Util;for(e=0;e<r;e++)n=t[e],i._isNumber(n)?n=Math.round(1e3*n)/1e3:i._isString(n)||(n=n.toString()),o.push(n);return o},_getImage:function(e,n){var o,r;if(e)if(this._isElement(e))n(e);else if(this._isString(e))o=new Konva.window.Image,o.onload=function(){n(o)},o.src=e;else if(e.data){r=Konva.Util.createCanvasElement(),r.width=e.width,r.height=e.height;var i=r.getContext(t);i.putImageData(e,0,0),this._getImage(r.toDataURL(),n)}else n(null);else n(null)},_getRGBAString:function(t){var e=t.red||0,n=t.green||0,o=t.blue||0,r=t.alpha||1;return["rgba(",e,",",n,",",o,",",r,")"].join(c)},_rgbToHex:function(t,e,n){return((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1)},_hexToRgb:function(t){t=t.replace(s,c);var e=parseInt(t,16);return{r:e>>16&255,g:e>>8&255,b:255&e}},getRandomColor:function(){for(var t=(16777215*Math.random()<<0).toString(16);t.length<6;)t=u+t;return s+t},get:function(t,e){return void 0===t?e:t},getRGB:function(t){var e;return t in p?(e=p[t],{r:e[0],g:e[1],b:e[2]}):t[0]===s?this._hexToRgb(t.substring(1)):t.substr(0,4)===h?(e=f.exec(t.replace(/ /g,"")),{r:parseInt(e[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10)}):{r:0,g:0,b:0}},colorToRGBA:function(t){return t=t||"black",Konva.Util._namedColorToRBA(t)||Konva.Util._hex3ColorToRGBA(t)||Konva.Util._hex6ColorToRGBA(t)||Konva.Util._rgbColorToRGBA(t)||Konva.Util._rgbaColorToRGBA(t)},_namedColorToRBA:function(t){var e=p[t.toLowerCase()];return e?{r:e[0],g:e[1],b:e[2],a:1}:null},_rgbColorToRGBA:function(t){if(0===t.indexOf("rgb(")){t=t.match(/rgb\(([^)]+)\)/)[1];var e=t.split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:1}}},_rgbaColorToRGBA:function(t){if(0===t.indexOf("rgba(")){t=t.match(/rgba\(([^)]+)\)/)[1];var e=t.split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:e[3]}}},_hex6ColorToRGBA:function(t){if("#"===t[0]&&7===t.length)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:1}},_hex3ColorToRGBA:function(t){if("#"===t[0]&&4===t.length)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:1}},_merge:function(t,e){var n=this._clone(e);for(var o in t)this._isObject(t[o])?n[o]=this._merge(t[o],n[o]):n[o]=t[o];return n},cloneObject:function(t){var e={};for(var n in t)this._isObject(t[n])?e[n]=this.cloneObject(t[n]):this._isArray(t[n])?e[n]=this.cloneArray(t[n]):e[n]=t[n];return e},cloneArray:function(t){return t.slice(0)},_degToRad:function(t){return t*i},_radToDeg:function(t){return t*a},_capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},throw:function(t){throw new Error(d+t)},error:function(t){console.error(d+t)},warn:function(t){Konva.global.console&&console.warn&&Konva.showWarnings&&console.warn(l+t)},extend:function(t,e){function n(){this.constructor=t}n.prototype=e.prototype;var o=t.prototype;t.prototype=new n;for(var r in o)o.hasOwnProperty(r)&&(t.prototype[r]=o[r]);t.__super__=e.prototype,t.super=e},addMethods:function(t,e){var n;for(n in e)t.prototype[n]=e[n]},_getControlPoints:function(t,e,n,o,r,i,a){var s=Math.sqrt(Math.pow(n-t,2)+Math.pow(o-e,2)),c=Math.sqrt(Math.pow(r-n,2)+Math.pow(i-o,2)),u=a*s/(s+c),l=a*c/(s+c),d=n-u*(r-t),h=o-u*(i-e),p=n+l*(r-t),f=o+l*(i-e);return[d,h,p,f]},_expandPoints:function(t,e){var n,o,r=t.length,i=[];for(n=2;n<r-2;n+=2)o=Konva.Util._getControlPoints(t[n-2],t[n-1],t[n],t[n+1],t[n+2],t[n+3],e),i.push(o[0]),i.push(o[1]),i.push(t[n]),i.push(t[n+1]),i.push(o[2]),i.push(o[3]);return i},_removeLastLetter:function(t){return t.substring(0,t.length-1)},each:function(t,e){for(var n in t)e(n,t[n])},_getProjectionToSegment:function(t,e,n,o,r,i){var a,s,c,u=(t-n)*(t-n)+(e-o)*(e-o);if(0==u)a=t,s=e,c=(r-n)*(r-n)+(i-o)*(i-o);else{var l=((r-t)*(n-t)+(i-e)*(o-e))/u;l<0?(a=t,s=e,c=(t-r)*(t-r)+(e-i)*(e-i)):l>1?(a=n,s=o,c=(n-r)*(n-r)+(o-i)*(o-i)):(a=t+l*(n-t),s=e+l*(o-e),c=(a-r)*(a-r)+(s-i)*(s-i))}return[a,s,c]},_getProjectionToLine:function(t,e,n){var o=Konva.Util.cloneObject(t),r=Number.MAX_VALUE;return e.forEach(function(i,a){if(n||a!==e.length-1){var s=e[(a+1)%e.length],c=Konva.Util._getProjectionToSegment(i.x,i.y,s.x,s.y,t.x,t.y),u=c[0],l=c[1],d=c[2];d<r&&(o.x=u,o.y=l,r=d)}}),o},_prepareArrayForTween:function(t,e,n){var o,r=[],i=[];if(t.length>e.length){var a=e;e=t,t=a}for(o=0;o<t.length;o+=2)r.push({x:t[o],y:t[o+1]});for(o=0;o<e.length;o+=2)i.push({x:e[o],y:e[o+1]});var s=[];return i.forEach(function(t){var e=Konva.Util._getProjectionToLine(t,r,n);s.push(e.x),s.push(e.y)}),s},_prepareToStringify:function(t){var e;t.visitedByCircularReferenceRemoval=!0;for(var n in t)if(t.hasOwnProperty(n)&&t[n]&&"object"==typeof t[n])if(e=Object.getOwnPropertyDescriptor(t,n),t[n].visitedByCircularReferenceRemoval||Konva.Util._isElement(t[n])){if(!e.configurable)return null;delete t[n]}else if(null===Konva.Util._prepareToStringify(t[n])){if(!e.configurable)return null;delete t[n]}return delete t.visitedByCircularReferenceRemoval,t}}}(),function(){"use strict";var t=Konva.Util.createCanvasElement(),e=t.getContext("2d"),n=function(){var t=Konva.window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/n}();Konva.Canvas=function(t){this.init(t)},Konva.Canvas.prototype={init:function(t){var e=t||{},o=e.pixelRatio||Konva.pixelRatio||n;this.pixelRatio=o,this._canvas=Konva.Util.createCanvasElement(),this._canvas.style.padding=0,this._canvas.style.margin=0,this._canvas.style.border=0,this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top=0,this._canvas.style.left=0},getContext:function(){return this.context},getPixelRatio:function(){return this.pixelRatio},setPixelRatio:function(t){var e=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/e,this.getHeight()/e)},setWidth:function(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";var e=this.pixelRatio,n=this.getContext()._context;n.scale(e,e)},setHeight:function(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";var e=this.pixelRatio,n=this.getContext()._context;n.scale(e,e)},getWidth:function(){return this.width},getHeight:function(){return this.height},setSize:function(t,e){this.setWidth(t),this.setHeight(e)},toDataURL:function(t,e){try{return this._canvas.toDataURL(t,e)}catch(t){try{return this._canvas.toDataURL()}catch(t){return Konva.Util.warn("Unable to get data URL. "+t.message),""}}}},Konva.SceneCanvas=function(t){var e=t||{},n=e.width||0,o=e.height||0;Konva.Canvas.call(this,e),this.context=new Konva.SceneContext(this),this.setSize(n,o)},Konva.Util.extend(Konva.SceneCanvas,Konva.Canvas),Konva.HitCanvas=function(t){var e=t||{},n=e.width||0,o=e.height||0;Konva.Canvas.call(this,e),this.context=new Konva.HitContext(this),this.setSize(n,o),this.hitCanvas=!0},Konva.Util.extend(Konva.HitCanvas,Konva.Canvas)}(),function(){"use strict";var t=",",e="(",n=")",o="([",r="])",i=";",a="()",s="=",c=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],u=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","lineCap","lineJoin","lineWidth","miterLimit","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation"];Konva.Context=function(t){this.init(t)},Konva.Context.prototype={init:function(t){this.canvas=t,this._context=t._canvas.getContext("2d"),Konva.enableTrace&&(this.traceArr=[],this._enableTrace())},fillShape:function(t){t.getFillEnabled()&&this._fill(t)},strokeShape:function(t){t.getStrokeEnabled()&&this._stroke(t)},fillStrokeShape:function(t){var e=t.getFillEnabled();e&&this._fill(t),t.getStrokeEnabled()&&this._stroke(t)},getTrace:function(c){var u,l,d,h,p=this.traceArr,f=p.length,v="";for(u=0;u<f;u++)l=p[u],d=l.method,d?(h=l.args,v+=d,v+=c?a:Konva.Util._isArray(h[0])?o+h.join(t)+r:e+h.join(t)+n):(v+=l.property,c||(v+=s+l.val)),v+=i;return v},clearTrace:function(){this.traceArr=[]},_trace:function(t){var e,n=this.traceArr;n.push(t),e=n.length,e>=Konva.traceArrMax&&n.shift()},reset:function(){var t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)},getCanvas:function(){return this.canvas},clear:function(t){var e=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,e.getWidth()/e.pixelRatio,e.getHeight()/e.pixelRatio)},_applyLineCap:function(t){var e=t.getLineCap();e&&this.setAttr("lineCap",e)},_applyOpacity:function(t){var e=t.getAbsoluteOpacity();1!==e&&this.setAttr("globalAlpha",e)},_applyLineJoin:function(t){var e=t.getLineJoin();e&&this.setAttr("lineJoin",e)},setAttr:function(t,e){this._context[t]=e},arc:function(){var t=arguments;this._context.arc(t[0],t[1],t[2],t[3],t[4],t[5])},beginPath:function(){this._context.beginPath()},bezierCurveTo:function(){var t=arguments;this._context.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5])},clearRect:function(){var t=arguments;this._context.clearRect(t[0],t[1],t[2],t[3])},clip:function(){this._context.clip()},closePath:function(){this._context.closePath()},createImageData:function(){var t=arguments;return 2===t.length?this._context.createImageData(t[0],t[1]):1===t.length?this._context.createImageData(t[0]):void 0},createLinearGradient:function(){var t=arguments;return this._context.createLinearGradient(t[0],t[1],t[2],t[3])},createPattern:function(){var t=arguments;return this._context.createPattern(t[0],t[1])},createRadialGradient:function(){var t=arguments;return this._context.createRadialGradient(t[0],t[1],t[2],t[3],t[4],t[5])},drawImage:function(){var t=arguments,e=this._context;3===t.length?e.drawImage(t[0],t[1],t[2]):5===t.length?e.drawImage(t[0],t[1],t[2],t[3],t[4]):9===t.length&&e.drawImage(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},isPointInPath:function(t,e){return this._context.isPointInPath(t,e)},fill:function(){this._context.fill()},fillRect:function(t,e,n,o){this._context.fillRect(t,e,n,o)},strokeRect:function(t,e,n,o){this._context.strokeRect(t,e,n,o)},fillText:function(){var t=arguments;this._context.fillText(t[0],t[1],t[2])},measureText:function(t){return this._context.measureText(t)},getImageData:function(){var t=arguments;return this._context.getImageData(t[0],t[1],t[2],t[3])},lineTo:function(){var t=arguments;this._context.lineTo(t[0],t[1])},moveTo:function(){var t=arguments;this._context.moveTo(t[0],t[1])},rect:function(){var t=arguments;this._context.rect(t[0],t[1],t[2],t[3])},putImageData:function(){var t=arguments;this._context.putImageData(t[0],t[1],t[2])},quadraticCurveTo:function(){var t=arguments;this._context.quadraticCurveTo(t[0],t[1],t[2],t[3])},restore:function(){this._context.restore()},rotate:function(){var t=arguments;this._context.rotate(t[0])},save:function(){this._context.save()},scale:function(){var t=arguments;this._context.scale(t[0],t[1])},setLineDash:function(){var t=arguments,e=this._context;this._context.setLineDash?e.setLineDash(t[0]):"mozDash"in e?e.mozDash=t[0]:"webkitLineDash"in e&&(e.webkitLineDash=t[0])},getLineDash:function(){return this._context.getLineDash()},setTransform:function(){var t=arguments;this._context.setTransform(t[0],t[1],t[2],t[3],t[4],t[5])},stroke:function(){this._context.stroke()},strokeText:function(){var t=arguments;this._context.strokeText(t[0],t[1],t[2])},transform:function(){var t=arguments;this._context.transform(t[0],t[1],t[2],t[3],t[4],t[5])},translate:function(){var t=arguments;this._context.translate(t[0],t[1])},_enableTrace:function(){var t,e,n=this,o=c.length,r=Konva.Util._simplifyArray,i=this.setAttr,a=function(t){var o,i=n[t];n[t]=function(){return e=r(Array.prototype.slice.call(arguments,0)),o=i.apply(n,arguments),n._trace({method:t,args:e}),o}};for(t=0;t<o;t++)a(c[t]);n.setAttr=function(){i.apply(n,arguments),n._trace({property:arguments[0],val:arguments[1]})}}},u.forEach(function(t){Object.defineProperty(Konva.Context.prototype,t,{get:function(){return this._context[t]},set:function(e){this._context[t]=e}})}),Konva.SceneContext=function(t){Konva.Context.call(this,t)},Konva.SceneContext.prototype={_fillColor:function(t){var e=t.fill();this.setAttr("fillStyle",e),t._fillFunc(this)},_fillPattern:function(t){var e=t.getFillPatternX(),n=t.getFillPatternY(),o=t.getFillPatternScale(),r=Konva.getAngle(t.getFillPatternRotation()),i=t.getFillPatternOffset();(e||n)&&this.translate(e||0,n||0),r&&this.rotate(r),o&&this.scale(o.x,o.y),i&&this.translate(-1*i.x,-1*i.y),this.setAttr("fillStyle",this.createPattern(t.getFillPatternImage(),t.getFillPatternRepeat()||"repeat")),this.fill()},_fillLinearGradient:function(t){var e=t.getFillLinearGradientStartPoint(),n=t.getFillLinearGradientEndPoint(),o=t.getFillLinearGradientColorStops(),r=this.createLinearGradient(e.x,e.y,n.x,n.y);if(o){for(var i=0;i<o.length;i+=2)r.addColorStop(o[i],o[i+1]);this.setAttr("fillStyle",r),t._fillFunc(this)}},_fillRadialGradient:function(t){for(var e=t.getFillRadialGradientStartPoint(),n=t.getFillRadialGradientEndPoint(),o=t.getFillRadialGradientStartRadius(),r=t.getFillRadialGradientEndRadius(),i=t.getFillRadialGradientColorStops(),a=this.createRadialGradient(e.x,e.y,o,n.x,n.y,r),s=0;s<i.length;s+=2)a.addColorStop(i[s],i[s+1]);this.setAttr("fillStyle",a),this.fill()},_fill:function(t){var e=t.fill(),n=t.getFillPatternImage(),o=t.getFillLinearGradientColorStops(),r=t.getFillRadialGradientColorStops(),i=t.getFillPriority();e&&"color"===i?this._fillColor(t):n&&"pattern"===i?this._fillPattern(t):o&&"linear-gradient"===i?this._fillLinearGradient(t):r&&"radial-gradient"===i?this._fillRadialGradient(t):e?this._fillColor(t):n?this._fillPattern(t):o?this._fillLinearGradient(t):r&&this._fillRadialGradient(t)},_stroke:function(t){var e=t.dash(),n=t.getStrokeScaleEnabled()||t instanceof Konva.Text;t.hasStroke()&&(n||(this.save(),this.setTransform(1,0,0,1,0,0)),this._applyLineCap(t),e&&t.dashEnabled()&&this.setLineDash(e),this.setAttr("lineWidth",t.strokeWidth()),this.setAttr("strokeStyle",t.stroke()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)"),t._strokeFunc(this),n||this.restore())},_applyShadow:function(t){var e=Konva.Util,n=e.get(t.getShadowRGBA(),"black"),o=e.get(t.getShadowBlur(),5),r=e.get(t.getShadowOffset(),{x:0,y:0}),i=t.getAbsoluteScale(),a=i.x,s=i.y;this.setAttr("shadowColor",n),this.setAttr("shadowBlur",o),this.setAttr("shadowOffsetX",r.x*a),this.setAttr("shadowOffsetY",r.y*s)}},Konva.Util.extend(Konva.SceneContext,Konva.Context),Konva.HitContext=function(t){Konva.Context.call(this,t)},Konva.HitContext.prototype={_fill:function(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()},_stroke:function(t){if(t.hasStroke()&&t.strokeHitEnabled()){var e=t.getStrokeScaleEnabled()||t instanceof Konva.Text;e||(this.save(),this.setTransform(1,0,0,1,0,0)),this._applyLineCap(t),this.setAttr("lineWidth",t.strokeWidth()),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),e||this.restore()}}},Konva.Util.extend(Konva.HitContext,Konva.Context)}(),function(){"use strict";var t="get",e="set";Konva.Factory={addGetterSetter:function(t,e,n,o,r){this.addGetter(t,e,n),this.addSetter(t,e,o,r),this.addOverloadedGetterSetter(t,e)},addGetter:function(e,n,o){var r=t+Konva.Util._capitalize(n);e.prototype[r]=function(){var t=this.attrs[n];return void 0===t?o:t}},addSetter:function(t,n,o,r){var i=e+Konva.Util._capitalize(n);t.prototype[i]=function(t){return o&&(t=o.call(this,t)),this._setAttr(n,t),r&&r.call(this),this}},addComponentsGetterSetter:function(n,o,r,i,a){var s,c,u=r.length,l=Konva.Util._capitalize,d=t+l(o),h=e+l(o);n.prototype[d]=function(){var t={};for(s=0;s<u;s++)c=r[s],t[c]=this.getAttr(o+l(c));return t},n.prototype[h]=function(t){var e,n=this.attrs[o];i&&(t=i.call(this,t));for(e in t)t.hasOwnProperty(e)&&this._setAttr(o+l(e),t[e]);return this._fireChangeEvent(o,n,t),a&&a.call(this),this},this.addOverloadedGetterSetter(n,o)},addOverloadedGetterSetter:function(n,o){var r=Konva.Util._capitalize(o),i=e+r,a=t+r;n.prototype[o]=function(){return arguments.length?(this[i](arguments[0]),this):this[a]()}},addDeprecatedGetterSetter:function(e,n,o,r){var i=t+Konva.Util._capitalize(n),a=n+" property is deprecated and will be removed soon. Look at Konva change log for more information.";e.prototype[i]=function(){Konva.Util.error(a);var t=this.attrs[n];return void 0===t?o:t},this.addSetter(e,n,r,function(){Konva.Util.error(a)}),this.addOverloadedGetterSetter(e,n)},backCompat:function(t,e){Konva.Util.each(e,function(e,n){var o=t.prototype[n];t.prototype[e]=function(){o.apply(this,arguments),Konva.Util.error(e+" method is deprecated and will be removed soon. Use "+n+" instead")}})},afterSetFilter:function(){this._filterUpToDate=!1}},Konva.Validators={RGBComponent:function(t){return t>255?255:t<0?0:Math.round(t)},alphaComponent:function(t){return t>1?1:t<1e-4?1e-4:t}}}(),function(t){"use strict";var e="absoluteOpacity",n="absoluteTransform",o="absoluteScale",r="Change",i="children",a=".",s="",c="get",u="id",l="konva",d="listening",h="mouseenter",p="mouseleave",f="name",v="set",g="Shape",m=" ",y="stage",_="transform",b="Stage",E="visible",C=["id"],N=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(m),w=["scaleXChange.konva","scaleYChange.konva"].join(m);t.Node=function(t){this._init(t)},t.Util.addMethods(t.Node,{_init:function(r){var i=this;this._id=t.idCounter++,this.eventListeners={},this.attrs={},this._cache={},this._filterUpToDate=!1,this.setAttrs(r),this.on(N,function(){this._clearCache(_),i._clearSelfAndDescendantCache(n)}),this.on(w,function(){i._clearSelfAndDescendantCache(o)}),this.on("visibleChange.konva",function(){i._clearSelfAndDescendantCache(E)}),this.on("listeningChange.konva",function(){i._clearSelfAndDescendantCache(d)}),this.on("opacityChange.konva",function(){i._clearSelfAndDescendantCache(e)})},_clearCache:function(t){t?delete this._cache[t]:this._cache={}},_getCache:function(t,e){var n=this._cache[t];return void 0===n&&(this._cache[t]=e.call(this)),this._cache[t]},_clearSelfAndDescendantCache:function(t){this._clearCache(t),this.children&&this.getChildren().each(function(e){e._clearSelfAndDescendantCache(t)})},clearCache:function(){return delete this._cache.canvas,this._filterUpToDate=!1,this},cache:function(e){var n=e||{},o=this.getClientRect(!0),r=n.width||o.width,i=n.height||o.height,a=n.x||o.x,s=n.y||o.y,c=n.offset||0,u=n.drawBorder||!1;if(!r||!i)throw new Error("Width or height of caching configuration equals 0.");r+=2*c,i+=2*c,a-=c,s-=c;var l=new t.SceneCanvas({width:r,height:i}),d=new t.SceneCanvas({width:r,height:i}),h=new t.HitCanvas({pixelRatio:1,width:r,height:i}),p=l.getContext(),f=h.getContext();return h.isCache=!0,this.clearCache(),p.save(),f.save(),p.translate(-a,-s),f.translate(-a,-s),this.drawScene(l,this,!0),this.drawHit(h,this,!0),p.restore(),f.restore(),u&&(p.save(),p.beginPath(),p.rect(0,0,r,i),p.closePath(),p.setAttr("strokeStyle","red"),p.setAttr("lineWidth",5),p.stroke(),p.restore()),this._cache.canvas={scene:l,filter:d,hit:h,x:a,y:s},this},getClientRect:function(){throw new Error('abstract "getClientRect" method call')},_transformedRect:function(t){var e,n,o,r,i=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],a=this.getTransform();return i.forEach(function(t){var i=a.point(t);void 0===e&&(e=o=i.x,n=r=i.y),e=Math.min(e,i.x),n=Math.min(n,i.y),o=Math.max(o,i.x),r=Math.max(r,i.y)}),{x:e,y:n,width:o-e,height:r-n}},_drawCachedSceneCanvas:function(t){t.save(),t._applyOpacity(this),t.translate(this._cache.canvas.x,this._cache.canvas.y);var e=this._getCachedSceneCanvas(),n=e.pixelRatio;t.drawImage(e._canvas,0,0,e.width/n,e.height/n),t.restore()},_drawCachedHitCanvas:function(t){var e=this._cache.canvas,n=e.hit;t.save(),t.translate(this._cache.canvas.x,this._cache.canvas.y),t.drawImage(n._canvas,0,0),t.restore()},_getCachedSceneCanvas:function(){var e,n,o,r,i=this.filters(),a=this._cache.canvas,s=a.scene,c=a.filter,u=c.getContext();if(i){if(!this._filterUpToDate){var l=s.pixelRatio;try{for(e=i.length,u.clear(),u.drawImage(s._canvas,0,0,s.getWidth()/l,s.getHeight()/l),n=u.getImageData(0,0,c.getWidth(),c.getHeight()),o=0;o<e;o++)r=i[o],"function"==typeof r?(r.call(this,n),u.putImageData(n,0,0)):t.Util.error("Filter should be type of function, but got "+typeof r+" insted. Please check correct filters")}catch(e){t.Util.error("Unable to apply filter. "+e.message)}this._filterUpToDate=!0}return c}return s},on:function(t,e){if(3===arguments.length)return this._delegate.apply(this,arguments);var n,o,r,i,c,u=t.split(m),l=u.length;for(n=0;n<l;n++)o=u[n],r=o.split(a),i=r[0],c=r[1]||s,this.eventListeners[i]||(this.eventListeners[i]=[]),this.eventListeners[i].push({name:c,handler:e});return this},off:function(t){var e,n,o,r,i,s,c=(t||"").split(m),u=c.length;if(!t)for(n in this.eventListeners)this._off(n);for(e=0;e<u;e++)if(o=c[e],r=o.split(a),i=r[0],s=r[1],i)this.eventListeners[i]&&this._off(i,s);else for(n in this.eventListeners)this._off(n,s);return this},dispatchEvent:function(t){var e={target:this,type:t.type,evt:t};return this.fire(t.type,e),this},addEventListener:function(t,e){return this.on(t,function(t){e.call(this,t.evt)}),this},removeEventListener:function(t){return this.off(t),this},_delegate:function(e,n,o){var r=this;this.on(e,function(e){for(var i=e.target.findAncestors(n,!0,r),a=0;a<i.length;a++)e=t.Util.cloneObject(e),e.currentTarget=i[a],o.call(i[a],e)})},remove:function(){var t=this.getParent();return t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),delete this.parent),this._clearSelfAndDescendantCache(y),this._clearSelfAndDescendantCache(n),this._clearSelfAndDescendantCache(E),this._clearSelfAndDescendantCache(d),this._clearSelfAndDescendantCache(e),this},destroy:function(){return t._removeId(this.getId()),t._removeName(this.getName(),this._id),this.remove(),this},getAttr:function(e){var n=c+t.Util._capitalize(e);return t.Util._isFunction(this[n])?this[n]():this.attrs[e]},getAncestors:function(){for(var e=this.getParent(),n=new t.Collection;e;)n.push(e),
  e=e.getParent();return n},getAttrs:function(){return this.attrs||{}},setAttrs:function(e){var n,o;if(!e)return this;for(n in e)n!==i&&(o=v+t.Util._capitalize(n),t.Util._isFunction(this[o])?this[o](e[n]):this._setAttr(n,e[n]));return this},isListening:function(){return this._getCache(d,this._isListening)},_isListening:function(){var t=this.getListening(),e=this.getParent();return"inherit"===t?!e||e.isListening():t},isVisible:function(){return this._getCache(E,this._isVisible)},_isVisible:function(){var t=this.getVisible(),e=this.getParent();return"inherit"===t?!e||e.isVisible():t},shouldDrawHit:function(t){var e=this.getLayer();return t&&t.isCache||e&&e.hitGraphEnabled()&&this.isListening()&&this.isVisible()},show:function(){return this.setVisible(!0),this},hide:function(){return this.setVisible(!1),this},getZIndex:function(){return this.index||0},getAbsoluteZIndex:function(){function t(c){for(e=[],n=c.length,o=0;o<n;o++)r=c[o],s++,r.nodeType!==g&&(e=e.concat(r.getChildren().toArray())),r._id===a._id&&(o=n);e.length>0&&e[0].getDepth()<=i&&t(e)}var e,n,o,r,i=this.getDepth(),a=this,s=0;return a.nodeType!==b&&t(a.getStage().getChildren()),s},getDepth:function(){for(var t=0,e=this.parent;e;)t++,e=e.parent;return t},setPosition:function(t){return this.setX(t.x),this.setY(t.y),this},getPosition:function(){return{x:this.getX(),y:this.getY()}},getAbsolutePosition:function(e){var n=this.getAbsoluteTransform(e).getMatrix(),o=new t.Transform,r=this.offset();return o.m=n.slice(),o.translate(r.x,r.y),o.getTranslation()},setAbsolutePosition:function(t){var e,n=this._clearTransform();return this.attrs.x=n.x,this.attrs.y=n.y,delete n.x,delete n.y,e=this.getAbsoluteTransform(),e.invert(),e.translate(t.x,t.y),t={x:this.attrs.x+e.getTranslation().x,y:this.attrs.y+e.getTranslation().y},this.setPosition({x:t.x,y:t.y}),this._setTransform(n),this},_setTransform:function(t){var e;for(e in t)this.attrs[e]=t[e];this._clearCache(_),this._clearSelfAndDescendantCache(n)},_clearTransform:function(){var t={x:this.getX(),y:this.getY(),rotation:this.getRotation(),scaleX:this.getScaleX(),scaleY:this.getScaleY(),offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),skewX:this.getSkewX(),skewY:this.getSkewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,this._clearCache(_),this._clearSelfAndDescendantCache(n),t},move:function(t){var e=t.x,n=t.y,o=this.getX(),r=this.getY();return void 0!==e&&(o+=e),void 0!==n&&(r+=n),this.setPosition({x:o,y:r}),this},_eachAncestorReverse:function(t,e){var n,o,r=[],i=this.getParent();if(e&&e._id===this._id)return t(this),!0;for(r.unshift(this);i&&(!e||i._id!==e._id);)r.unshift(i),i=i.parent;for(n=r.length,o=0;o<n;o++)t(r[o])},rotate:function(t){return this.setRotation(this.getRotation()+t),this},moveToTop:function(){if(!this.parent)return t.Util.warn("Node has no parent. moveToTop function is ignored."),!1;var e=this.index;return this.parent.children.splice(e,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0},moveUp:function(){if(!this.parent)return t.Util.warn("Node has no parent. moveUp function is ignored."),!1;var e=this.index,n=this.parent.getChildren().length;return e<n-1&&(this.parent.children.splice(e,1),this.parent.children.splice(e+1,0,this),this.parent._setChildrenIndices(),!0)},moveDown:function(){if(!this.parent)return t.Util.warn("Node has no parent. moveDown function is ignored."),!1;var e=this.index;return e>0&&(this.parent.children.splice(e,1),this.parent.children.splice(e-1,0,this),this.parent._setChildrenIndices(),!0)},moveToBottom:function(){if(!this.parent)return t.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var e=this.index;return e>0&&(this.parent.children.splice(e,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0)},setZIndex:function(e){if(!this.parent)return t.Util.warn("Node has no parent. zIndex parameter is ignored."),!1;var n=this.index;return this.parent.children.splice(n,1),this.parent.children.splice(e,0,this),this.parent._setChildrenIndices(),this},getAbsoluteOpacity:function(){return this._getCache(e,this._getAbsoluteOpacity)},_getAbsoluteOpacity:function(){var t=this.getOpacity();return this.getParent()&&(t*=this.getParent().getAbsoluteOpacity()),t},moveTo:function(t){return this.getParent()!==t&&(this.remove(),t.add(this)),this},toObject:function(){var e,n,o,r,i={},a=this.getAttrs();i.attrs={};for(e in a)n=a[e],o=this[e],delete a[e],r=o?o.call(this):null,a[e]=n,r!==n&&(i.attrs[e]=n);return i.className=this.getClassName(),t.Util._prepareToStringify(i)},toJSON:function(){return JSON.stringify(this.toObject())},getParent:function(){return this.parent},findAncestors:function(t,e,n){var o=[];e&&this._isMatch(t)&&o.push(this);for(var r=this.parent;r;){if(r===n)return o;r._isMatch(t)&&o.push(r),r=r.parent}return o},findAncestor:function(t,e,n){return this.findAncestors(t,e,n)[0]},_isMatch:function(e){if(!e)return!1;var n,o,r=e.replace(/ /g,"").split(","),i=r.length;for(n=0;n<i;n++)if(o=r[n],t.Util.isValidSelector(o)||(t.Util.warn('Selector "'+o+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),t.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),t.Util.warn("Konva is awesome, right?")),"#"===o.charAt(0)){if(this.id()===o.slice(1))return!0}else if("."===o.charAt(0)){if(this.hasName(o.slice(1)))return!0}else if(0!==this._get(o).length)return!0;return!1},getLayer:function(){var t=this.getParent();return t?t.getLayer():null},getStage:function(){return this._getCache(y,this._getStage)},_getStage:function(){var t=this.getParent();return t?t.getStage():void 0},fire:function(t,e,n){return e=e||{},e.target=e.target||this,n?this._fireAndBubble(t,e):this._fire(t,e),this},getAbsoluteTransform:function(t){return t?this._getAbsoluteTransform(t):this._getCache(n,this._getAbsoluteTransform)},_getAbsoluteTransform:function(e){var n,o,r=new t.Transform;return this._eachAncestorReverse(function(t){n=t.transformsEnabled(),o=t.getTransform(),"all"===n?r.multiply(o):"position"===n&&r.translate(t.x(),t.y())},e),r},getAbsoluteScale:function(t){return t?this._getAbsoluteTransform(t):this._getCache(o,this._getAbsoluteScale)},_getAbsoluteScale:function(t){var e=1,n=1;return this._eachAncestorReverse(function(t){e*=t.scaleX(),n*=t.scaleY()},t),{x:e,y:n}},getTransform:function(){return this._getCache(_,this._getTransform)},_getTransform:function(){var e=new t.Transform,n=this.getX(),o=this.getY(),r=t.getAngle(this.getRotation()),i=this.getScaleX(),a=this.getScaleY(),s=this.getSkewX(),c=this.getSkewY(),u=this.getOffsetX(),l=this.getOffsetY();return 0===n&&0===o||e.translate(n,o),0!==r&&e.rotate(r),0===s&&0===c||e.skew(s,c),1===i&&1===a||e.scale(i,a),0===u&&0===l||e.translate(-1*u,-1*l),e},clone:function(e){var n,o,r,i,a,s=t.Util.cloneObject(this.attrs);for(var c in C){var u=C[c];delete s[u]}for(n in e)s[n]=e[n];var d=new this.constructor(s);for(n in this.eventListeners)for(o=this.eventListeners[n],r=o.length,i=0;i<r;i++)a=o[i],a.name.indexOf(l)<0&&(d.eventListeners[n]||(d.eventListeners[n]=[]),d.eventListeners[n].push(a));return d},toDataURL:function(e){e=e||{};var n=e.mimeType||null,o=e.quality||null,r=this.getStage(),i=e.x||0,a=e.y||0,s=e.pixelRatio||1,c=new t.SceneCanvas({width:e.width||this.getWidth()||(r?r.getWidth():0),height:e.height||this.getHeight()||(r?r.getHeight():0),pixelRatio:s}),u=c.getContext();return u.save(),(i||a)&&u.translate(-1*i,-1*a),this.drawScene(c),u.restore(),c.toDataURL(n,o)},toImage:function(e){if(!e||!e.callback)throw"callback required for toImage method config argument";t.Util._getImage(this.toDataURL(e),function(t){e.callback(t)})},setSize:function(t){return this.setWidth(t.width),this.setHeight(t.height),this},getSize:function(){return{width:this.getWidth(),height:this.getHeight()}},getWidth:function(){return this.attrs.width||0},getHeight:function(){return this.attrs.height||0},getClassName:function(){return this.className||this.nodeType},getType:function(){return this.nodeType},getDragDistance:function(){return void 0!==this.attrs.dragDistance?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():t.dragDistance},_get:function(t){return this.className===t||this.nodeType===t?[this]:[]},_off:function(t,e){var n,o,r=this.eventListeners[t];for(n=0;n<r.length;n++)if(o=r[n].name,!("konva"===o&&"konva"!==e||e&&o!==e)){if(r.splice(n,1),0===r.length){delete this.eventListeners[t];break}n--}},_fireChangeEvent:function(t,e,n){this._fire(t+r,{oldVal:e,newVal:n})},setId:function(e){var n=this.getId();return t._removeId(n),t._addId(this,e),this._setAttr(u,e),this},setName:function(e){var n,o,r=(this.getName()||"").split(/\s/g),i=(e||"").split(/\s/g);for(o=0;o<r.length;o++)n=r[o],i.indexOf(n)===-1&&n&&t._removeName(n,this._id);for(o=0;o<i.length;o++)n=i[o],r.indexOf(n)===-1&&n&&t._addName(this,n);return this._setAttr(f,e),this},addName:function(t){if(!this.hasName(t)){var e=this.name(),n=e?e+" "+t:t;this.setName(n)}return this},hasName:function(t){var e=(this.name()||"").split(/\s/g);return e.indexOf(t)!==-1},removeName:function(t){var e=(this.name()||"").split(/\s/g),n=e.indexOf(t);return n!==-1&&(e.splice(n,1),this.setName(e.join(" "))),this},setAttr:function(e,n){var o=v+t.Util._capitalize(e),r=this[o];return t.Util._isFunction(r)?r.call(this,n):this._setAttr(e,n),this},_setAttr:function(t,e){var n;n=this.attrs[t],n!==e&&(void 0===e||null===e?delete this.attrs[t]:this.attrs[t]=e,this._fireChangeEvent(t,n,e))},_setComponentAttr:function(t,e,n){var o;void 0!==n&&(o=this.attrs[t],o||(this.attrs[t]=this.getAttr(t)),this.attrs[t][e]=n,this._fireChangeEvent(t,o,n))},_fireAndBubble:function(t,e,n){var o=!0;if(e&&this.nodeType===g&&(e.target=this),t===h&&n&&(this._id===n._id||this.isAncestorOf&&this.isAncestorOf(n))?o=!1:t===p&&n&&(this._id===n._id||this.isAncestorOf&&this.isAncestorOf(n))&&(o=!1),o){this._fire(t,e);var r=(t===h||t===p)&&n&&n.isAncestorOf&&n.isAncestorOf(this)&&!n.isAncestorOf(this.parent);(e&&!e.cancelBubble||!e)&&this.parent&&this.parent.isListening()&&!r&&(n&&n.parent?this._fireAndBubble.call(this.parent,t,e,n.parent):this._fireAndBubble.call(this.parent,t,e))}},_fire:function(t,e){var n,o=this.eventListeners[t];if(e=e||{},e.currentTarget=this,e.type=t,o)for(n=0;n<o.length;n++)o[n].handler.call(this,e)},draw:function(){return this.drawScene(),this.drawHit(),this}}),t.Node.create=function(e,n){return t.Util._isString(e)&&(e=JSON.parse(e)),this._createNode(e,n)},t.Node._createNode=function(e,n){var o,r,i,a=t.Node.prototype.getClassName.call(e),s=e.children;if(n&&(e.attrs.container=n),o=new t[a](e.attrs),s)for(r=s.length,i=0;i<r;i++)o.add(this._createNode(s[i]));return o},t.Factory.addOverloadedGetterSetter(t.Node,"position"),t.Factory.addGetterSetter(t.Node,"x",0),t.Factory.addGetterSetter(t.Node,"y",0),t.Factory.addGetterSetter(t.Node,"opacity",1),t.Factory.addGetter(t.Node,"name"),t.Factory.addOverloadedGetterSetter(t.Node,"name"),t.Factory.addGetter(t.Node,"id"),t.Factory.addOverloadedGetterSetter(t.Node,"id"),t.Factory.addGetterSetter(t.Node,"rotation",0),t.Factory.addComponentsGetterSetter(t.Node,"scale",["x","y"]),t.Factory.addGetterSetter(t.Node,"scaleX",1),t.Factory.addGetterSetter(t.Node,"scaleY",1),t.Factory.addComponentsGetterSetter(t.Node,"skew",["x","y"]),t.Factory.addGetterSetter(t.Node,"skewX",0),t.Factory.addGetterSetter(t.Node,"skewY",0),t.Factory.addComponentsGetterSetter(t.Node,"offset",["x","y"]),t.Factory.addGetterSetter(t.Node,"offsetX",0),t.Factory.addGetterSetter(t.Node,"offsetY",0),t.Factory.addSetter(t.Node,"dragDistance"),t.Factory.addOverloadedGetterSetter(t.Node,"dragDistance"),t.Factory.addSetter(t.Node,"width",0),t.Factory.addOverloadedGetterSetter(t.Node,"width"),t.Factory.addSetter(t.Node,"height",0),t.Factory.addOverloadedGetterSetter(t.Node,"height"),t.Factory.addGetterSetter(t.Node,"listening","inherit"),t.Factory.addGetterSetter(t.Node,"preventDefault",!0),t.Factory.addGetterSetter(t.Node,"filters",void 0,function(t){return this._filterUpToDate=!1,t}),t.Factory.addGetterSetter(t.Node,"visible","inherit"),t.Factory.addGetterSetter(t.Node,"transformsEnabled","all"),t.Factory.addOverloadedGetterSetter(t.Node,"size"),t.Factory.backCompat(t.Node,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"}),t.Collection.mapMethods(t.Node)}(Konva),function(){"use strict";Konva.Filters.Grayscale=function(t){var e,n,o=t.data,r=o.length;for(e=0;e<r;e+=4)n=.34*o[e]+.5*o[e+1]+.16*o[e+2],o[e]=n,o[e+1]=n,o[e+2]=n}}(),function(){"use strict";Konva.Filters.Brighten=function(t){var e,n=255*this.brightness(),o=t.data,r=o.length;for(e=0;e<r;e+=4)o[e]+=n,o[e+1]+=n,o[e+2]+=n},Konva.Factory.addGetterSetter(Konva.Node,"brightness",0,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.Invert=function(t){var e,n=t.data,o=n.length;for(e=0;e<o;e+=4)n[e]=255-n[e],n[e+1]=255-n[e+1],n[e+2]=255-n[e+2]}}(),function(){"use strict";function t(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}function e(e,r){var i,a,s,c,u,l,d,h,p,f,v,g,m,y,_,b,E,C,N,w,x,S,D,O,T=e.data,P=e.width,k=e.height,I=r+r+1,M=P-1,R=k-1,A=r+1,K=A*(A+1)/2,F=new t,V=null,L=F,U=null,j=null,B=n[r],G=o[r];for(s=1;s<I;s++)L=L.next=new t,s===A&&(V=L);for(L.next=F,d=l=0,a=0;a<k;a++){for(b=E=C=N=h=p=f=v=0,g=A*(w=T[l]),m=A*(x=T[l+1]),y=A*(S=T[l+2]),_=A*(D=T[l+3]),h+=K*w,p+=K*x,f+=K*S,v+=K*D,L=F,s=0;s<A;s++)L.r=w,L.g=x,L.b=S,L.a=D,L=L.next;for(s=1;s<A;s++)c=l+((M<s?M:s)<<2),h+=(L.r=w=T[c])*(O=A-s),p+=(L.g=x=T[c+1])*O,f+=(L.b=S=T[c+2])*O,v+=(L.a=D=T[c+3])*O,b+=w,E+=x,C+=S,N+=D,L=L.next;for(U=F,j=V,i=0;i<P;i++)T[l+3]=D=v*B>>G,0!==D?(D=255/D,T[l]=(h*B>>G)*D,T[l+1]=(p*B>>G)*D,T[l+2]=(f*B>>G)*D):T[l]=T[l+1]=T[l+2]=0,h-=g,p-=m,f-=y,v-=_,g-=U.r,m-=U.g,y-=U.b,_-=U.a,c=d+((c=i+r+1)<M?c:M)<<2,b+=U.r=T[c],E+=U.g=T[c+1],C+=U.b=T[c+2],N+=U.a=T[c+3],h+=b,p+=E,f+=C,v+=N,U=U.next,g+=w=j.r,m+=x=j.g,y+=S=j.b,_+=D=j.a,b-=w,E-=x,C-=S,N-=D,j=j.next,l+=4;d+=P}for(i=0;i<P;i++){for(E=C=N=b=p=f=v=h=0,l=i<<2,g=A*(w=T[l]),m=A*(x=T[l+1]),y=A*(S=T[l+2]),_=A*(D=T[l+3]),h+=K*w,p+=K*x,f+=K*S,v+=K*D,L=F,s=0;s<A;s++)L.r=w,L.g=x,L.b=S,L.a=D,L=L.next;for(u=P,s=1;s<=r;s++)l=u+i<<2,h+=(L.r=w=T[l])*(O=A-s),p+=(L.g=x=T[l+1])*O,f+=(L.b=S=T[l+2])*O,v+=(L.a=D=T[l+3])*O,b+=w,E+=x,C+=S,N+=D,L=L.next,s<R&&(u+=P);for(l=i,U=F,j=V,a=0;a<k;a++)c=l<<2,T[c+3]=D=v*B>>G,D>0?(D=255/D,T[c]=(h*B>>G)*D,T[c+1]=(p*B>>G)*D,T[c+2]=(f*B>>G)*D):T[c]=T[c+1]=T[c+2]=0,h-=g,p-=m,f-=y,v-=_,g-=U.r,m-=U.g,y-=U.b,_-=U.a,c=i+((c=a+A)<R?c:R)*P<<2,h+=b+=U.r=T[c],p+=E+=U.g=T[c+1],f+=C+=U.b=T[c+2],v+=N+=U.a=T[c+3],U=U.next,g+=w=j.r,m+=x=j.g,y+=S=j.b,_+=D=j.a,b-=w,E-=x,C-=S,N-=D,j=j.next,l+=P}}var n=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],o=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];Konva.Filters.Blur=function(t){var n=Math.round(this.blurRadius());n>0&&e(t,n)},Konva.Factory.addGetterSetter(Konva.Node,"blurRadius",0,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";function t(t,e,n){var o=4*(n*t.width+e),r=[];return r.push(t.data[o++],t.data[o++],t.data[o++],t.data[o++]),r}function e(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2))}function n(t){for(var e=[0,0,0],n=0;n<t.length;n++)e[0]+=t[n][0],e[1]+=t[n][1],e[2]+=t[n][2];return e[0]/=t.length,e[1]/=t.length,e[2]/=t.length,e}function o(o,r){var i=t(o,0,0),a=t(o,o.width-1,0),s=t(o,0,o.height-1),c=t(o,o.width-1,o.height-1),u=r||10;if(e(i,a)<u&&e(a,c)<u&&e(c,s)<u&&e(s,i)<u){for(var l=n([a,i,c,s]),d=[],h=0;h<o.width*o.height;h++){var p=e(l,[o.data[4*h],o.data[4*h+1],o.data[4*h+2]]);d[h]=p<u?0:255}return d}}function r(t,e){for(var n=0;n<t.width*t.height;n++)t.data[4*n+3]=e[n]}function i(t,e,n){for(var o=[1,1,1,1,0,1,1,1,1],r=Math.round(Math.sqrt(o.length)),i=Math.floor(r/2),a=[],s=0;s<n;s++)for(var c=0;c<e;c++){for(var u=s*e+c,l=0,d=0;d<r;d++)for(var h=0;h<r;h++){var p=s+d-i,f=c+h-i;if(p>=0&&p<n&&f>=0&&f<e){var v=p*e+f,g=o[d*r+h];l+=t[v]*g}}a[u]=2040===l?255:0}return a}function a(t,e,n){for(var o=[1,1,1,1,1,1,1,1,1],r=Math.round(Math.sqrt(o.length)),i=Math.floor(r/2),a=[],s=0;s<n;s++)for(var c=0;c<e;c++){for(var u=s*e+c,l=0,d=0;d<r;d++)for(var h=0;h<r;h++){var p=s+d-i,f=c+h-i;if(p>=0&&p<n&&f>=0&&f<e){var v=p*e+f,g=o[d*r+h];l+=t[v]*g}}a[u]=l>=1020?255:0}return a}function s(t,e,n){for(var o=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9],r=Math.round(Math.sqrt(o.length)),i=Math.floor(r/2),a=[],s=0;s<n;s++)for(var c=0;c<e;c++){for(var u=s*e+c,l=0,d=0;d<r;d++)for(var h=0;h<r;h++){var p=s+d-i,f=c+h-i;if(p>=0&&p<n&&f>=0&&f<e){var v=p*e+f,g=o[d*r+h];l+=t[v]*g}}a[u]=l}return a}Konva.Filters.Mask=function(t){var e=this.threshold(),n=o(t,e);return n&&(n=i(n,t.width,t.height),n=a(n,t.width,t.height),n=s(n,t.width,t.height),r(t,n)),t},Konva.Factory.addGetterSetter(Konva.Node,"threshold",0,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.RGB=function(t){var e,n,o=t.data,r=o.length,i=this.red(),a=this.green(),s=this.blue();for(e=0;e<r;e+=4)n=(.34*o[e]+.5*o[e+1]+.16*o[e+2])/255,o[e]=n*i,o[e+1]=n*a,o[e+2]=n*s,o[e+3]=o[e+3]},Konva.Factory.addGetterSetter(Konva.Node,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),Konva.Factory.addGetterSetter(Konva.Node,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),Konva.Factory.addGetterSetter(Konva.Node,"blue",0,Konva.Validators.RGBComponent,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.RGBA=function(t){var e,n,o=t.data,r=o.length,i=this.red(),a=this.green(),s=this.blue(),c=this.alpha();for(e=0;e<r;e+=4)n=1-c,o[e]=i*c+o[e]*n,o[e+1]=a*c+o[e+1]*n,o[e+2]=s*c+o[e+2]*n},Konva.Factory.addGetterSetter(Konva.Node,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),Konva.Factory.addGetterSetter(Konva.Node,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),Konva.Factory.addGetterSetter(Konva.Node,"blue",0,Konva.Validators.RGBComponent,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"alpha",1,function(t){return this._filterUpToDate=!1,t>1?1:t<0?0:t})}(),function(){"use strict";Konva.Filters.HSV=function(t){var e,n,o,r,i,a=t.data,s=a.length,c=Math.pow(2,this.value()),u=Math.pow(2,this.saturation()),l=Math.abs(this.hue()+360)%360,d=c*u*Math.cos(l*Math.PI/180),h=c*u*Math.sin(l*Math.PI/180),p=.299*c+.701*d+.167*h,f=.587*c-.587*d+.33*h,v=.114*c-.114*d-.497*h,g=.299*c-.299*d-.328*h,m=.587*c+.413*d+.035*h,y=.114*c-.114*d+.293*h,_=.299*c-.3*d+1.25*h,b=.587*c-.586*d-1.05*h,E=.114*c+.886*d-.2*h;for(e=0;e<s;e+=4)n=a[e+0],o=a[e+1],r=a[e+2],i=a[e+3],a[e+0]=p*n+f*o+v*r,a[e+1]=g*n+m*o+y*r,a[e+2]=_*n+b*o+E*r,a[e+3]=i},Konva.Factory.addGetterSetter(Konva.Node,"hue",0,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"saturation",0,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"value",0,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Factory.addGetterSetter(Konva.Node,"hue",0,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"saturation",0,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"luminance",0,null,Konva.Factory.afterSetFilter),Konva.Filters.HSL=function(t){var e,n,o,r,i,a=t.data,s=a.length,c=1,u=Math.pow(2,this.saturation()),l=Math.abs(this.hue()+360)%360,d=127*this.luminance(),h=c*u*Math.cos(l*Math.PI/180),p=c*u*Math.sin(l*Math.PI/180),f=.299*c+.701*h+.167*p,v=.587*c-.587*h+.33*p,g=.114*c-.114*h-.497*p,m=.299*c-.299*h-.328*p,y=.587*c+.413*h+.035*p,_=.114*c-.114*h+.293*p,b=.299*c-.3*h+1.25*p,E=.587*c-.586*h-1.05*p,C=.114*c+.886*h-.2*p;for(e=0;e<s;e+=4)n=a[e+0],o=a[e+1],r=a[e+2],i=a[e+3],a[e+0]=f*n+v*o+g*r+d,a[e+1]=m*n+y*o+_*r+d,a[e+2]=b*n+E*o+C*r+d,a[e+3]=i}}(),function(){"use strict";Konva.Filters.Emboss=function(t){var e=10*this.embossStrength(),n=255*this.embossWhiteLevel(),o=this.embossDirection(),r=this.embossBlend(),i=0,a=0,s=t.data,c=t.width,u=t.height,l=4*c,d=u;switch(o){case"top-left":i=-1,a=-1;break;case"top":i=-1,a=0;break;case"top-right":i=-1,a=1;break;case"right":i=0,a=1;break;case"bottom-right":i=1,a=1;break;case"bottom":i=1,a=0;break;case"bottom-left":i=1,a=-1;break;case"left":i=0,a=-1;break;default:Konva.Util.error("Unknwo emboss direction: "+o)}do{var h=(d-1)*l,p=i;d+p<1&&(p=0),d+p>u&&(p=0);var f=(d-1+p)*c*4,v=c;do{var g=h+4*(v-1),m=a;v+m<1&&(m=0),v+m>c&&(m=0);var y=f+4*(v-1+m),_=s[g]-s[y],b=s[g+1]-s[y+1],E=s[g+2]-s[y+2],C=_,N=C>0?C:-C,w=b>0?b:-b,x=E>0?E:-E;if(w>N&&(C=b),x>N&&(C=E),C*=e,r){var S=s[g]+C,D=s[g+1]+C,O=s[g+2]+C;s[g]=S>255?255:S<0?0:S,s[g+1]=D>255?255:D<0?0:D,s[g+2]=O>255?255:O<0?0:O}else{var T=n-C;T<0?T=0:T>255&&(T=255),s[g]=s[g+1]=s[g+2]=T}}while(--v)}while(--d)},Konva.Factory.addGetterSetter(Konva.Node,"embossStrength",.5,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"embossWhiteLevel",.5,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"embossDirection","top-left",null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"embossBlend",!1,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";function t(t,e,n,o,r){var i,a=n-e,s=r-o;return 0===a?o+s/2:0===s?o:(i=(t-e)/a,i=s*i+o)}Konva.Filters.Enhance=function(e){var n,o,r,i,a=e.data,s=a.length,c=a[0],u=c,l=a[1],d=l,h=a[2],p=h,f=this.enhance();if(0!==f){for(i=0;i<s;i+=4)n=a[i+0],n<c?c=n:n>u&&(u=n),o=a[i+1],o<l?l=o:o>d&&(d=o),r=a[i+2],r<h?h=r:r>p&&(p=r);u===c&&(u=255,c=0),d===l&&(d=255,l=0),p===h&&(p=255,h=0);var v,g,m,y,_,b,E,C,N;for(f>0?(g=u+f*(255-u),m=c-f*(c-0),_=d+f*(255-d),b=l-f*(l-0),C=p+f*(255-p),N=h-f*(h-0)):(v=.5*(u+c),g=u+f*(u-v),m=c+f*(c-v),y=.5*(d+l),_=d+f*(d-y),b=l+f*(l-y),E=.5*(p+h),C=p+f*(p-E),N=h+f*(h-E)),i=0;i<s;i+=4)a[i+0]=t(a[i+0],c,u,m,g),a[i+1]=t(a[i+1],l,d,b,_),a[i+2]=t(a[i+2],h,p,N,C)}},Konva.Factory.addGetterSetter(Konva.Node,"enhance",0,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.Posterize=function(t){var e,n=Math.round(254*this.levels())+1,o=t.data,r=o.length,i=255/n;for(e=0;e<r;e+=1)o[e]=Math.floor(o[e]/i)*i},Konva.Factory.addGetterSetter(Konva.Node,"levels",.5,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.Noise=function(t){var e,n=255*this.noise(),o=t.data,r=o.length,i=n/2;for(e=0;e<r;e+=4)o[e+0]+=i-2*i*Math.random(),o[e+1]+=i-2*i*Math.random(),o[e+2]+=i-2*i*Math.random()},Konva.Factory.addGetterSetter(Konva.Node,"noise",.2,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.Pixelate=function(t){var e,n,o,r,i,a,s,c,u,l,d,h,p,f,v=Math.ceil(this.pixelSize()),g=t.width,m=t.height,y=Math.ceil(g/v),_=Math.ceil(m/v);if(t=t.data,v<=0)return void Konva.Util.error("pixelSize value can not be <= 0");for(h=0;h<y;h+=1)for(p=0;p<_;p+=1){for(r=0,i=0,a=0,s=0,c=h*v,u=c+v,l=p*v,d=l+v,f=0,e=c;e<u;e+=1)if(!(e>=g))for(n=l;n<d;n+=1)n>=m||(o=4*(g*n+e),r+=t[o+0],i+=t[o+1],a+=t[o+2],s+=t[o+3],f+=1);for(r/=f,i/=f,a/=f,e=c;e<u;e+=1)if(!(e>=g))for(n=l;n<d;n+=1)n>=m||(o=4*(g*n+e),t[o+0]=r,t[o+1]=i,t[o+2]=a,t[o+3]=s)}},Konva.Factory.addGetterSetter(Konva.Node,"pixelSize",8,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.Threshold=function(t){var e,n=255*this.threshold(),o=t.data,r=o.length;for(e=0;e<r;e+=1)o[e]=o[e]<n?0:255},Konva.Factory.addGetterSetter(Konva.Node,"threshold",.5,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";/**
  	     * Sepia Filter
  	     * Based on: Pixastic Lib - Sepia filter - v0.1.0
  	     * Copyright (c) 2008 Jacob Seidelin, jseidelin@nihilogic.dk, http://blog.nihilogic.dk/
  	     * @function
  	     * @name Sepia
  	     * @memberof Konva.Filters
  	     * @param {Object} imageData
  	     * @author Jacob Seidelin <jseidelin@nihilogic.dk>
  	     * @license MPL v1.1 [http://www.pixastic.com/lib/license.txt]
  	     * @example
  	     * node.cache();
  	     * node.filters([Konva.Filters.Sepia]);
  	     */
  Konva.Filters.Sepia=function(t){var e,n,o,r,i,a,s,c,u,l=t.data,d=t.width,h=t.height,p=4*d;do{e=(h-1)*p,n=d;do o=e+4*(n-1),r=l[o],i=l[o+1],a=l[o+2],s=.393*r+.769*i+.189*a,c=.349*r+.686*i+.168*a,u=.272*r+.534*i+.131*a,l[o]=s>255?255:s,l[o+1]=c>255?255:c,l[o+2]=u>255?255:u,l[o+3]=l[o+3];while(--n)}while(--h)}}(),function(){"use strict";Konva.Filters.Solarize=function(t){var e=t.data,n=t.width,o=t.height,r=4*n,i=o;do{var a=(i-1)*r,s=n;do{var c=a+4*(s-1),u=e[c],l=e[c+1],d=e[c+2];u>127&&(u=255-u),l>127&&(l=255-l),d>127&&(d=255-d),e[c]=u,e[c+1]=l,e[c+2]=d}while(--s)}while(--i)}}(),function(){"use strict";var t=function(t,e,n){var o,r,i,a,s=t.data,c=e.data,u=t.width,l=t.height,d=n.polarCenterX||u/2,h=n.polarCenterY||l/2,p=0,f=0,v=0,g=0,m=Math.sqrt(d*d+h*h);r=u-d,i=l-h,a=Math.sqrt(r*r+i*i),m=a>m?a:m;var y,_,b,E,C=l,N=u,w=360/N*Math.PI/180;for(_=0;_<N;_+=1)for(b=Math.sin(_*w),E=Math.cos(_*w),y=0;y<C;y+=1)r=Math.floor(d+m*y/C*E),i=Math.floor(h+m*y/C*b),o=4*(i*u+r),p=s[o+0],f=s[o+1],v=s[o+2],g=s[o+3],o=4*(_+y*u),c[o+0]=p,c[o+1]=f,c[o+2]=v,c[o+3]=g},e=function(t,e,n){var o,r,i,a,s,c,u=t.data,l=e.data,d=t.width,h=t.height,p=n.polarCenterX||d/2,f=n.polarCenterY||h/2,v=0,g=0,m=0,y=0,_=Math.sqrt(p*p+f*f);r=d-p,i=h-f,c=Math.sqrt(r*r+i*i),_=c>_?c:_;var b,E,C,N,w=h,x=d,S=n.polarRotation||0;for(r=0;r<d;r+=1)for(i=0;i<h;i+=1)a=r-p,s=i-f,b=Math.sqrt(a*a+s*s)*w/_,E=(180*Math.atan2(s,a)/Math.PI+360+S)%360,E=E*x/360,C=Math.floor(E),N=Math.floor(b),o=4*(N*d+C),v=u[o+0],g=u[o+1],m=u[o+2],y=u[o+3],o=4*(i*d+r),l[o+0]=v,l[o+1]=g,l[o+2]=m,l[o+3]=y},n=Konva.Util.createCanvasElement();Konva.Filters.Kaleidoscope=function(o){var r,i,a,s,c,u,l,d,h,p,f=o.width,v=o.height,g=Math.round(this.kaleidoscopePower()),m=Math.round(this.kaleidoscopeAngle()),y=Math.floor(f*(m%360)/360);if(!(g<1)){n.width=f,n.height=v;var _=n.getContext("2d").getImageData(0,0,f,v);t(o,_,{polarCenterX:f/2,polarCenterY:v/2});for(var b=f/Math.pow(2,g);b<=8;)b*=2,g-=1;b=Math.ceil(b);var E=b,C=0,N=E,w=1;for(y+b>f&&(C=E,N=0,w=-1),i=0;i<v;i+=1)for(r=C;r!==N;r+=w)a=Math.round(r+y)%f,h=4*(f*i+a),c=_.data[h+0],u=_.data[h+1],l=_.data[h+2],d=_.data[h+3],p=4*(f*i+r),_.data[p+0]=c,_.data[p+1]=u,_.data[p+2]=l,_.data[p+3]=d;for(i=0;i<v;i+=1)for(E=Math.floor(b),s=0;s<g;s+=1){for(r=0;r<E+1;r+=1)h=4*(f*i+r),c=_.data[h+0],u=_.data[h+1],l=_.data[h+2],d=_.data[h+3],p=4*(f*i+2*E-r-1),_.data[p+0]=c,_.data[p+1]=u,_.data[p+2]=l,_.data[p+3]=d;E*=2}e(_,o,{polarRotation:0})}},Konva.Factory.addGetterSetter(Konva.Node,"kaleidoscopePower",2,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"kaleidoscopeAngle",0,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Container=function(t){this.__init(t)},Konva.Util.addMethods(Konva.Container,{__init:function(t){this.children=new Konva.Collection,Konva.Node.call(this,t)},getChildren:function(t){if(!t)return this.children;var e=new Konva.Collection;return this.children.each(function(n){t(n)&&e.push(n)}),e},hasChildren:function(){return this.getChildren().length>0},removeChildren:function(){for(var t,e=Konva.Collection.toCollection(this.children),n=0;n<e.length;n++)t=e[n],delete t.parent,t.index=0,t.remove();return e=null,this.children=new Konva.Collection,this},destroyChildren:function(){for(var t,e=Konva.Collection.toCollection(this.children),n=0;n<e.length;n++)t=e[n],delete t.parent,t.index=0,t.destroy();return e=null,this.children=new Konva.Collection,this},add:function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}if(t.getParent())return t.moveTo(this),this;var n=this.children;return this._validateAdd(t),t.index=n.length,t.parent=this,n.push(t),this._fire("add",{child:t}),Konva.DD&&t.isDragging()&&Konva.DD.anim.setLayers(t.getLayer()),this},destroy:function(){return this.hasChildren()&&this.destroyChildren(),Konva.Node.prototype.destroy.call(this),this},find:function(t){var e,n,o,r,i,a,s,c=[],u=t.replace(/ /g,"").split(","),l=u.length;for(e=0;e<l;e++)if(o=u[e],Konva.Util.isValidSelector(o)||(Konva.Util.warn('Selector "'+o+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),Konva.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),Konva.Util.warn("Konva is awesome, right?")),"#"===o.charAt(0))i=this._getNodeById(o.slice(1)),i&&c.push(i);else if("."===o.charAt(0))r=this._getNodesByName(o.slice(1)),c=c.concat(r);else for(a=this.getChildren(),s=a.length,n=0;n<s;n++)c=c.concat(a[n]._get(o));return Konva.Collection.toCollection(c)},findOne:function(t){return this.find(t)[0]},_getNodeById:function(t){var e=Konva.ids[t];return void 0!==e&&this.isAncestorOf(e)?e:null},_getNodesByName:function(t){var e=Konva.names[t]||[];return this._getDescendants(e)},_get:function(t){for(var e=Konva.Node.prototype._get.call(this,t),n=this.getChildren(),o=n.length,r=0;r<o;r++)e=e.concat(n[r]._get(t));return e},toObject:function(){var t=Konva.Node.prototype.toObject.call(this);t.children=[];for(var e=this.getChildren(),n=e.length,o=0;o<n;o++){var r=e[o];t.children.push(r.toObject())}return t},_getDescendants:function(t){for(var e=[],n=t.length,o=0;o<n;o++){var r=t[o];this.isAncestorOf(r)&&e.push(r)}return e},isAncestorOf:function(t){for(var e=t.getParent();e;){if(e._id===this._id)return!0;e=e.getParent()}return!1},clone:function(t){var e=Konva.Node.prototype.clone.call(this,t);return this.getChildren().each(function(t){e.add(t.clone())}),e},getAllIntersections:function(t){var e=[];return this.find("Shape").each(function(n){n.isVisible()&&n.intersects(t)&&e.push(n)}),e},_setChildrenIndices:function(){this.children.each(function(t,e){t.index=e})},drawScene:function(t,e,n){var o=this.getLayer(),r=t||o&&o.getCanvas(),i=r&&r.getContext(),a=this._cache.canvas,s=a&&a.scene;return this.isVisible()&&(!n&&s?(i.save(),o._applyTransform(this,i,e),this._drawCachedSceneCanvas(i),i.restore()):this._drawChildren(r,"drawScene",e,!1,n)),this},drawHit:function(t,e,n){var o=this.getLayer(),r=t||o&&o.hitCanvas,i=r&&r.getContext(),a=this._cache.canvas,s=a&&a.hit;return this.shouldDrawHit(r)&&(o&&o.clearHitCache(),!n&&s?(i.save(),o._applyTransform(this,i,e),this._drawCachedHitCanvas(i),i.restore()):this._drawChildren(r,"drawHit",e)),this},_drawChildren:function(t,e,n,o,r){var i,a,s=this.getLayer(),c=t&&t.getContext(),u=this.getClipWidth(),l=this.getClipHeight(),d=this.getClipFunc(),h=u&&l||d;h&&s&&(c.save(),s._applyTransform(this,c),c.beginPath(),d?d.call(this,c,this):(i=this.getClipX(),a=this.getClipY(),c.rect(i,a,u,l)),c.clip(),c.reset()),this.children.each(function(i){i[e](t,n,o,r)}),h&&c.restore()},shouldDrawHit:function(t){var e=this.getLayer(),n=Konva.DD,o=n&&Konva.isDragging()&&Konva.DD.anim.getLayers().indexOf(e)!==-1;return t&&t.isCache||e&&e.hitGraphEnabled()&&this.isVisible()&&!o},getClientRect:function(t){var e,n,o,r,i={x:0,y:0,width:0,height:0};return this.children.each(function(t){var i=t.getClientRect();void 0===e?(e=i.x,n=i.y,o=i.x+i.width,r=i.y+i.height):(e=Math.min(e,i.x),n=Math.min(n,i.y),o=Math.max(o,i.x+i.width),r=Math.max(r,i.y+i.height))}),0!==this.children.length&&(i={x:e,y:n,width:o-e,height:r-n}),t?i:this._transformedRect(i)}}),Konva.Util.extend(Konva.Container,Konva.Node),Konva.Container.prototype.get=Konva.Container.prototype.find,Konva.Factory.addComponentsGetterSetter(Konva.Container,"clip",["x","y","width","height"]),Konva.Factory.addGetterSetter(Konva.Container,"clipX"),Konva.Factory.addGetterSetter(Konva.Container,"clipY"),Konva.Factory.addGetterSetter(Konva.Container,"clipWidth"),Konva.Factory.addGetterSetter(Konva.Container,"clipHeight"),Konva.Factory.addGetterSetter(Konva.Container,"clipFunc"),Konva.Collection.mapMethods(Konva.Container)}(),function(t){"use strict";function e(t){t.fill()}function n(t){t.stroke()}function o(t){t.fill()}function r(t){t.stroke()}function i(){this._clearCache(s)}function a(){this._clearCache(c)}var s="hasShadow",c="shadowRGBA";t.Shape=function(t){this.__init(t)},t.Util.addMethods(t.Shape,{__init:function(s){this.nodeType="Shape",this._fillFunc=e,this._strokeFunc=n,this._fillFuncHit=o,this._strokeFuncHit=r;for(var c,u=t.shapes;;)if(c=t.Util.getRandomColor(),c&&!(c in u))break;this.colorKey=c,u[c]=this,t.Node.call(this,s),this.on("shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",i),this.on("shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",a)},hasChildren:function(){return!1},getChildren:function(){return[]},getContext:function(){return this.getLayer().getContext()},getCanvas:function(){return this.getLayer().getCanvas()},hasShadow:function(){return this._getCache(s,this._hasShadow)},_hasShadow:function(){return this.getShadowEnabled()&&0!==this.getShadowOpacity()&&!!(this.getShadowColor()||this.getShadowBlur()||this.getShadowOffsetX()||this.getShadowOffsetY())},getShadowRGBA:function(){return this._getCache(c,this._getShadowRGBA)},_getShadowRGBA:function(){if(this.hasShadow()){var e=t.Util.colorToRGBA(this.shadowColor());return"rgba("+e.r+","+e.g+","+e.b+","+e.a*(this.getShadowOpacity()||1)+")"}},hasFill:function(){return!!(this.getFill()||this.getFillPatternImage()||this.getFillLinearGradientColorStops()||this.getFillRadialGradientColorStops())},hasStroke:function(){return this.strokeEnabled()&&!!this.stroke()},intersects:function(t){var e,n=this.getStage(),o=n.bufferHitCanvas;return o.getContext().clear(),this.drawScene(o),e=o.context.getImageData(Math.round(t.x),Math.round(t.y),1,1).data,e[3]>0},destroy:function(){return t.Node.prototype.destroy.call(this),delete t.shapes[this.colorKey],this},_useBufferCanvas:function(t){return!t&&this.perfectDrawEnabled()&&1!==this.getAbsoluteOpacity()&&this.hasFill()&&this.hasStroke()&&this.getStage()||this.perfectDrawEnabled()&&this.hasShadow()&&1!==this.getAbsoluteOpacity()&&this.hasFill()&&this.hasStroke()&&this.getStage()},getSelfRect:function(){var t=this.getSize();return{x:this._centroid?Math.round(-t.width/2):0,y:this._centroid?Math.round(-t.height/2):0,width:t.width,height:t.height}},getClientRect:function(t){var e=this.getSelfRect(),n=this.hasStroke()&&this.strokeWidth()||0,o=e.width+n,r=e.height+n,i=this.hasShadow()?this.shadowOffsetX():0,a=this.hasShadow()?this.shadowOffsetY():0,s=o+Math.abs(i),c=r+Math.abs(a),u=this.hasShadow()&&this.shadowBlur()||0,l=s+2*u,d=c+2*u,h=0;Math.round(n/2)!==n/2&&(h=1);var p={width:l+h,height:d+h,x:-Math.round(n/2+u)+Math.min(i,0)+e.x,y:-Math.round(n/2+u)+Math.min(a,0)+e.y};return t?p:this._transformedRect(p)},drawScene:function(t,e,n,o){var r,i,a,s=this.getLayer(),c=t||s.getCanvas(),u=c.getContext(),l=this._cache.canvas,d=this.sceneFunc(),h=this.hasShadow(),p=this.hasStroke();if(!this.isVisible())return this;if(l)return u.save(),s._applyTransform(this,u,e),this._drawCachedSceneCanvas(u),u.restore(),this;if(!d)return this;if(u.save(),this._useBufferCanvas(n)&&!o){if(r=this.getStage(),i=r.bufferCanvas,a=i.getContext(),a.clear(),a.save(),a._applyLineJoin(this),!n)if(s)s._applyTransform(this,a,e);else{var f=this.getAbsoluteTransform(e).getMatrix();u.transform(f[0],f[1],f[2],f[3],f[4],f[5])}d.call(this,a),a.restore();var v=i.pixelRatio;h&&!c.hitCanvas?(u.save(),u._applyShadow(this),u._applyOpacity(this),u.drawImage(i._canvas,0,0,i.width/v,i.height/v),u.restore()):(u._applyOpacity(this),u.drawImage(i._canvas,0,0,i.width/v,i.height/v))}else{if(u._applyLineJoin(this),!n)if(s)s._applyTransform(this,u,e);else{var g=this.getAbsoluteTransform(e).getMatrix();u.transform(g[0],g[1],g[2],g[3],g[4],g[5])}h&&p&&!c.hitCanvas?(u.save(),n||u._applyOpacity(this),u._applyShadow(this),d.call(this,u),u.restore(),this.hasFill()&&this.getShadowForStrokeEnabled()&&d.call(this,u)):h&&!c.hitCanvas?(u.save(),n||u._applyOpacity(this),u._applyShadow(this),d.call(this,u),u.restore()):(n||u._applyOpacity(this),d.call(this,u))}return u.restore(),this},drawHit:function(t,e,n){var o=this.getLayer(),r=t||o.hitCanvas,i=r.getContext(),a=this.hitFunc()||this.sceneFunc(),s=this._cache.canvas,c=s&&s.hit;if(!this.shouldDrawHit(r))return this;if(o&&o.clearHitCache(),c)return i.save(),o._applyTransform(this,i,e),this._drawCachedHitCanvas(i),i.restore(),this;if(!a)return this;if(i.save(),i._applyLineJoin(this),!n)if(o)o._applyTransform(this,i,e);else{var u=this.getAbsoluteTransform(e).getMatrix();i.transform(u[0],u[1],u[2],u[3],u[4],u[5])}return a.call(this,i),i.restore(),this},drawHitFromCache:function(e){var n,o,r,i,a,s,c=e||0,u=this._cache.canvas,l=this._getCachedSceneCanvas(),d=u.hit,h=d.getContext(),p=d.getWidth(),f=d.getHeight();h.clear(),h.drawImage(l._canvas,0,0,p,f);try{for(n=h.getImageData(0,0,p,f),o=n.data,r=o.length,i=t.Util._hexToRgb(this.colorKey),a=0;a<r;a+=4)s=o[a+3],s>c?(o[a]=i.r,o[a+1]=i.g,o[a+2]=i.b,o[a+3]=255):o[a+3]=0;h.putImageData(n,0,0)}catch(e){t.Util.error("Unable to draw hit graph from cached scene canvas. "+e.message)}return this}}),t.Util.extend(t.Shape,t.Node),t.Factory.addGetterSetter(t.Shape,"stroke"),t.Factory.addDeprecatedGetterSetter(t.Shape,"strokeRed",0,t.Validators.RGBComponent),t.Factory.addDeprecatedGetterSetter(t.Shape,"strokeGreen",0,t.Validators.RGBComponent),t.Factory.addDeprecatedGetterSetter(t.Shape,"strokeBlue",0,t.Validators.RGBComponent),t.Factory.addDeprecatedGetterSetter(t.Shape,"strokeAlpha",1,t.Validators.alphaComponent),t.Factory.addGetterSetter(t.Shape,"strokeWidth",2),t.Factory.addGetterSetter(t.Shape,"strokeHitEnabled",!0),t.Factory.addGetterSetter(t.Shape,"perfectDrawEnabled",!0),t.Factory.addGetterSetter(t.Shape,"shadowForStrokeEnabled",!0),t.Factory.addGetterSetter(t.Shape,"lineJoin"),t.Factory.addGetterSetter(t.Shape,"lineCap"),t.Factory.addGetterSetter(t.Shape,"sceneFunc"),t.Factory.addGetterSetter(t.Shape,"hitFunc"),t.Factory.addGetterSetter(t.Shape,"dash"),t.Factory.addGetterSetter(t.Shape,"shadowColor"),t.Factory.addDeprecatedGetterSetter(t.Shape,"shadowRed",0,t.Validators.RGBComponent),t.Factory.addDeprecatedGetterSetter(t.Shape,"shadowGreen",0,t.Validators.RGBComponent),t.Factory.addDeprecatedGetterSetter(t.Shape,"shadowBlue",0,t.Validators.RGBComponent),t.Factory.addDeprecatedGetterSetter(t.Shape,"shadowAlpha",1,t.Validators.alphaComponent),t.Factory.addGetterSetter(t.Shape,"shadowBlur"),t.Factory.addGetterSetter(t.Shape,"shadowOpacity"),t.Factory.addComponentsGetterSetter(t.Shape,"shadowOffset",["x","y"]),t.Factory.addGetterSetter(t.Shape,"shadowOffsetX",0),t.Factory.addGetterSetter(t.Shape,"shadowOffsetY",0),t.Factory.addGetterSetter(t.Shape,"fillPatternImage"),t.Factory.addGetterSetter(t.Shape,"fill"),t.Factory.addDeprecatedGetterSetter(t.Shape,"fillRed",0,t.Validators.RGBComponent),t.Factory.addDeprecatedGetterSetter(t.Shape,"fillGreen",0,t.Validators.RGBComponent),t.Factory.addDeprecatedGetterSetter(t.Shape,"fillBlue",0,t.Validators.RGBComponent),t.Factory.addDeprecatedGetterSetter(t.Shape,"fillAlpha",1,t.Validators.alphaComponent),t.Factory.addGetterSetter(t.Shape,"fillPatternX",0),t.Factory.addGetterSetter(t.Shape,"fillPatternY",0),t.Factory.addGetterSetter(t.Shape,"fillLinearGradientColorStops"),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientStartRadius",0),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientEndRadius",0),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientColorStops"),t.Factory.addGetterSetter(t.Shape,"fillPatternRepeat","repeat"),t.Factory.addGetterSetter(t.Shape,"fillEnabled",!0),t.Factory.addGetterSetter(t.Shape,"strokeEnabled",!0),t.Factory.addGetterSetter(t.Shape,"shadowEnabled",!0),t.Factory.addGetterSetter(t.Shape,"dashEnabled",!0),t.Factory.addGetterSetter(t.Shape,"strokeScaleEnabled",!0),t.Factory.addGetterSetter(t.Shape,"fillPriority","color"),t.Factory.addComponentsGetterSetter(t.Shape,"fillPatternOffset",["x","y"]),t.Factory.addGetterSetter(t.Shape,"fillPatternOffsetX",0),t.Factory.addGetterSetter(t.Shape,"fillPatternOffsetY",0),t.Factory.addComponentsGetterSetter(t.Shape,"fillPatternScale",["x","y"]),t.Factory.addGetterSetter(t.Shape,"fillPatternScaleX",1),t.Factory.addGetterSetter(t.Shape,"fillPatternScaleY",1),t.Factory.addComponentsGetterSetter(t.Shape,"fillLinearGradientStartPoint",["x","y"]),t.Factory.addGetterSetter(t.Shape,"fillLinearGradientStartPointX",0),t.Factory.addGetterSetter(t.Shape,"fillLinearGradientStartPointY",0),t.Factory.addComponentsGetterSetter(t.Shape,"fillLinearGradientEndPoint",["x","y"]),t.Factory.addGetterSetter(t.Shape,"fillLinearGradientEndPointX",0),t.Factory.addGetterSetter(t.Shape,"fillLinearGradientEndPointY",0),t.Factory.addComponentsGetterSetter(t.Shape,"fillRadialGradientStartPoint",["x","y"]),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientStartPointX",0),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientStartPointY",0),t.Factory.addComponentsGetterSetter(t.Shape,"fillRadialGradientEndPoint",["x","y"]),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientEndPointX",0),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientEndPointY",0),t.Factory.addGetterSetter(t.Shape,"fillPatternRotation",0),t.Factory.backCompat(t.Shape,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"}),t.Collection.mapMethods(t.Shape)}(Konva),function(){"use strict";function t(t,e){t.content.addEventListener(e,function(n){t[V+e](n)},!1)}var e="Stage",n="string",o="px",r="mouseout",i="mouseleave",a="mouseover",s="mouseenter",c="mousemove",u="mousedown",l="mouseup",d="click",h="dblclick",p="touchstart",f="touchend",v="tap",g="dbltap",m="touchmove",y="DOMMouseScroll",_="mousewheel",b="wheel",E="contentMouseout",C="contentMouseover",N="contentMousemove",w="contentMousedown",x="contentMouseup",S="contentClick",D="contentDblclick",O="contentTouchstart",T="contentTouchend",P="contentDbltap",k="contentTap",I="contentTouchmove",M="contentWheel",R="div",A="relative",K="konvajs-content",F=" ",V="_",L="container",U="",j=[u,c,l,r,p,m,f,a,y,_,b],B=j.length;Konva.Stage=function(t){this.___init(t)},Konva.Util.addMethods(Konva.Stage,{___init:function(t){this.nodeType=e,Konva.Container.call(this,t),this._id=Konva.idCounter++,this._buildDOM(),this._bindContentEvents(),this._enableNestedTransforms=!1,Konva.stages.push(this)},_validateAdd:function(t){"Layer"!==t.getType()&&Konva.Util.throw("You may only add layers to the stage.")},setContainer:function(t){if(typeof t===n){if("."===t.charAt(0)){var e=t.slice(1);t=Konva.document.getElementsByClassName(e)[0]}else{var o;o="#"!==t.charAt(0)?t:t.slice(1),t=Konva.document.getElementById(o)}if(!t)throw"Can not find container in document with id "+o}return this._setAttr(L,t),this},shouldDrawHit:function(){return!0},draw:function(){return Konva.Node.prototype.draw.call(this),this},setHeight:function(t){return Konva.Node.prototype.setHeight.call(this,t),this._resizeDOM(),this},setWidth:function(t){return Konva.Node.prototype.setWidth.call(this,t),this._resizeDOM(),this},clear:function(){var t,e=this.children,n=e.length;for(t=0;t<n;t++)e[t].clear();return this},clone:function(t){return t||(t={}),t.container=Konva.document.createElement(R),Konva.Container.prototype.clone.call(this,t)},destroy:function(){var t=this.content;Konva.Container.prototype.destroy.call(this),t&&Konva.Util._isInDocument(t)&&this.getContainer().removeChild(t);var e=Konva.stages.indexOf(this);return e>-1&&Konva.stages.splice(e,1),this},getPointerPosition:function(){return this.pointerPos},getStage:function(){return this},getContent:function(){return this.content},toDataURL:function(t){t=t||{};var e=t.mimeType||null,n=t.quality||null,o=t.x||0,r=t.y||0,i=new Konva.SceneCanvas({width:t.width||this.getWidth(),height:t.height||this.getHeight(),pixelRatio:t.pixelRatio}),a=i.getContext()._context,s=this.children;(o||r)&&a.translate(-1*o,-1*r),s.each(function(t){var e=t.getCanvas().getWidth(),n=t.getCanvas().getHeight(),o=t.getCanvas().getPixelRatio();a.drawImage(t.getCanvas()._canvas,0,0,e/o,n/o)});var c=i.toDataURL(e,n);return t.callback&&t.callback(c),c},toImage:function(t){var e=t.callback;t.callback=function(t){Konva.Util._getImage(t,function(t){e(t)})},this.toDataURL(t)},getIntersection:function(t,e){var n,o,r=this.getChildren(),i=r.length,a=i-1;for(n=a;n>=0;n--)if(o=r[n].getIntersection(t,e))return o;return null},_resizeDOM:function(){if(this.content){var t,e,n=this.getWidth(),r=this.getHeight(),i=this.getChildren(),a=i.length;for(this.content.style.width=n+o,this.content.style.height=r+o,this.bufferCanvas.setSize(n,r),this.bufferHitCanvas.setSize(n,r),t=0;t<a;t++)e=i[t],e.setSize(n,r),e.draw()}},add:function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return Konva.Container.prototype.add.call(this,t),t._setCanvasSize(this.width(),this.height()),t.draw(),this.content.appendChild(t.canvas._canvas),this},getParent:function(){return null},getLayer:function(){return null},getLayers:function(){return this.getChildren()},_bindContentEvents:function(){for(var e=0;e<B;e++)t(this,j[e])},_mouseover:function(t){Konva.UA.mobile||(this._setPointerPosition(t),this._fire(C,{evt:t}))},_mouseout:function(t){if(!Konva.UA.mobile){this._setPointerPosition(t);var e=this.targetShape;e&&!Konva.isDragging()&&(e._fireAndBubble(r,{evt:t}),e._fireAndBubble(i,{evt:t}),this.targetShape=null),this.pointerPos=void 0,this._fire(E,{evt:t})}},_mousemove:function(t){if(Konva.UA.ieMobile)return this._touchmove(t);if(("undefined"!=typeof t.movementX||"undefined"!=typeof t.movementY)&&0===t.movementY&&0===t.movementX)return null;if(Konva.UA.mobile)return null;this._setPointerPosition(t);var e;Konva.isDragging()||(e=this.getIntersection(this.getPointerPosition()),e&&e.isListening()?Konva.isDragging()||this.targetShape&&this.targetShape._id===e._id?e._fireAndBubble(c,{evt:t}):(this.targetShape&&(this.targetShape._fireAndBubble(r,{evt:t},e),this.targetShape._fireAndBubble(i,{evt:t},e)),e._fireAndBubble(a,{evt:t},this.targetShape),e._fireAndBubble(s,{evt:t},this.targetShape),this.targetShape=e):this.targetShape&&!Konva.isDragging()&&(this.targetShape._fireAndBubble(r,{evt:t}),this.targetShape._fireAndBubble(i,{evt:t}),this.targetShape=null),this._fire(N,{evt:t})),t.preventDefault&&t.preventDefault()},_mousedown:function(t){if(Konva.UA.ieMobile)return this._touchstart(t);if(!Konva.UA.mobile){this._setPointerPosition(t);var e=this.getIntersection(this.getPointerPosition());Konva.listenClickTap=!0,e&&e.isListening()&&(this.clickStartShape=e,e._fireAndBubble(u,{evt:t})),this._fire(w,{evt:t})}t.preventDefault&&t.preventDefault()},_mouseup:function(t){if(Konva.UA.ieMobile)return this._touchend(t);if(!Konva.UA.mobile){this._setPointerPosition(t);var e=this.getIntersection(this.getPointerPosition()),n=this.clickStartShape,o=!1,r=Konva.DD;Konva.inDblClickWindow?(o=!0,Konva.inDblClickWindow=!1):r&&r.justDragged?r&&(r.justDragged=!1):Konva.inDblClickWindow=!0,setTimeout(function(){Konva.inDblClickWindow=!1},Konva.dblClickWindow),e&&e.isListening()&&(e._fireAndBubble(l,{evt:t}),Konva.listenClickTap&&n&&n._id===e._id&&(e._fireAndBubble(d,{evt:t}),o&&e._fireAndBubble(h,{evt:t}))),this._fire(x,{evt:t}),Konva.listenClickTap&&(this._fire(S,{evt:t}),o&&this._fire(D,{evt:t})),Konva.listenClickTap=!1}t.preventDefault&&t.preventDefault()},_touchstart:function(t){this._setPointerPosition(t);var e=this.getIntersection(this.getPointerPosition());Konva.listenClickTap=!0,e&&e.isListening()&&(this.tapStartShape=e,e._fireAndBubble(p,{evt:t}),e.isListening()&&e.preventDefault()&&t.preventDefault&&t.preventDefault()),this._fire(O,{evt:t})},_touchend:function(t){this._setPointerPosition(t);var e=this.getIntersection(this.getPointerPosition()),n=!1;Konva.inDblClickWindow?(n=!0,Konva.inDblClickWindow=!1):Konva.inDblClickWindow=!0,setTimeout(function(){Konva.inDblClickWindow=!1},Konva.dblClickWindow),e&&e.isListening()&&(e._fireAndBubble(f,{evt:t}),Konva.listenClickTap&&this.tapStartShape&&e._id===this.tapStartShape._id&&(e._fireAndBubble(v,{evt:t}),n&&e._fireAndBubble(g,{evt:t})),e.isListening()&&e.preventDefault()&&t.preventDefault&&t.preventDefault()),this._fire(T,{evt:t}),Konva.listenClickTap&&(this._fire(k,{evt:t}),n&&this._fire(P,{evt:t})),Konva.listenClickTap=!1},_touchmove:function(t){this._setPointerPosition(t);var e,n=Konva.DD;Konva.isDragging()||(e=this.getIntersection(this.getPointerPosition()),e&&e.isListening()&&(e._fireAndBubble(m,{evt:t}),e.isListening()&&e.preventDefault()&&t.preventDefault&&t.preventDefault()),this._fire(I,{evt:t})),n&&Konva.isDragging()&&Konva.DD.node.preventDefault()&&t.preventDefault()},_DOMMouseScroll:function(t){this._mousewheel(t)},_mousewheel:function(t){this._setPointerPosition(t);var e=this.getIntersection(this.getPointerPosition());e&&e.isListening()&&e._fireAndBubble(b,{evt:t}),this._fire(M,{evt:t})},_wheel:function(t){this._mousewheel(t)},_setPointerPosition:function(t){var e=this._getContentPosition(),n=null,o=null;if(t=t?t:window.event,void 0!==t.touches){if(t.touches.length>0){var r=t.touches[0];n=r.clientX-e.left,o=r.clientY-e.top}}else n=t.clientX-e.left,o=t.clientY-e.top;null!==n&&null!==o&&(this.pointerPos={x:n,y:o})},_getContentPosition:function(){var t=this.content.getBoundingClientRect?this.content.getBoundingClientRect():{top:0,left:0};return{top:t.top,left:t.left}},_buildDOM:function(){var t=this.getContainer();if(!t){if(Konva.Util.isBrowser())throw"Stage has no container. A container is required.";t=Konva.document.createElement(R)}t.innerHTML=U,this.content=Konva.document.createElement(R),this.content.style.position=A,this.content.className=K,this.content.setAttribute("role","presentation"),t.appendChild(this.content),this.bufferCanvas=new Konva.SceneCanvas,this.bufferHitCanvas=new Konva.HitCanvas({pixelRatio:1}),this._resizeDOM()},_onContent:function(t,e){var n,o,r=t.split(F),i=r.length;for(n=0;n<i;n++)o=r[n],this.content.addEventListener(o,e,!1)},cache:function(){Konva.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes.")},clearCache:function(){}}),Konva.Util.extend(Konva.Stage,Konva.Container),Konva.Factory.addGetter(Konva.Stage,"container"),Konva.Factory.addOverloadedGetterSetter(Konva.Stage,"container")}(),function(){"use strict";Konva.BaseLayer=function(t){this.___init(t)},Konva.Util.addMethods(Konva.BaseLayer,{___init:function(t){this.nodeType="Layer",Konva.Container.call(this,t)},createPNGStream:function(){return this.canvas._canvas.createPNGStream()},getCanvas:function(){return this.canvas},getHitCanvas:function(){return this.hitCanvas},getContext:function(){return this.getCanvas().getContext()},clear:function(t){return this.getContext().clear(t),this},clearHitCache:function(){this._hitImageData=void 0},setZIndex:function(t){Konva.Node.prototype.setZIndex.call(this,t);var e=this.getStage();return e&&(e.content.removeChild(this.getCanvas()._canvas),t<e.getChildren().length-1?e.content.insertBefore(this.getCanvas()._canvas,e.getChildren()[t+1].getCanvas()._canvas):e.content.appendChild(this.getCanvas()._canvas)),this},moveToTop:function(){Konva.Node.prototype.moveToTop.call(this);var t=this.getStage();return t&&(t.content.removeChild(this.getCanvas()._canvas),t.content.appendChild(this.getCanvas()._canvas)),this},moveUp:function(){var t=Konva.Node.prototype.moveUp.call(this);if(!t)return this;var e=this.getStage();return e?(e.content.removeChild(this.getCanvas()._canvas),this.index<e.getChildren().length-1?e.content.insertBefore(this.getCanvas()._canvas,e.getChildren()[this.index+1].getCanvas()._canvas):e.content.appendChild(this.getCanvas()._canvas),this):this},moveDown:function(){if(Konva.Node.prototype.moveDown.call(this)){var t=this.getStage();if(t){var e=t.getChildren();t.content.removeChild(this.getCanvas()._canvas),t.content.insertBefore(this.getCanvas()._canvas,e[this.index+1].getCanvas()._canvas)}}return this},moveToBottom:function(){if(Konva.Node.prototype.moveToBottom.call(this)){var t=this.getStage();if(t){var e=t.getChildren();t.content.removeChild(this.getCanvas()._canvas),t.content.insertBefore(this.getCanvas()._canvas,e[1].getCanvas()._canvas)}}return this},getLayer:function(){return this},remove:function(){var t=this.getCanvas()._canvas;return Konva.Node.prototype.remove.call(this),t&&t.parentNode&&Konva.Util._isInDocument(t)&&t.parentNode.removeChild(t),this},getStage:function(){return this.parent},setSize:function(t,e){return this.canvas.setSize(t,e),this},getWidth:function(){if(this.parent)return this.parent.getWidth()},setWidth:function(){Konva.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')},getHeight:function(){if(this.parent)return this.parent.getHeight()},setHeight:function(){Konva.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')},_applyTransform:function(t,e,n){var o=t.getAbsoluteTransform(n).getMatrix();e.transform(o[0],o[1],o[2],o[3],o[4],o[5])}}),Konva.Util.extend(Konva.BaseLayer,Konva.Container),Konva.Factory.addGetterSetter(Konva.BaseLayer,"clearBeforeDraw",!0),Konva.Collection.mapMethods(Konva.BaseLayer)}(),function(){"use strict";var t="#",e="beforeDraw",n="draw",o=[{x:0,y:0},{x:-1,y:0},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:1,y:0},{x:1,y:1},{x:0,y:1},{x:-1,y:1}],r=o.length;Konva.Layer=function(t){this.____init(t)},Konva.Util.addMethods(Konva.Layer,{____init:function(t){this.nodeType="Layer",this.canvas=new Konva.SceneCanvas,this.hitCanvas=new Konva.HitCanvas({pixelRatio:1}),Konva.BaseLayer.call(this,t)},_setCanvasSize:function(t,e){this.canvas.setSize(t,e),this.hitCanvas.setSize(t,e)},_validateAdd:function(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&Konva.Util.throw("You may only add groups and shapes to a layer.")},getIntersection:function(t,e){var n,i,a,s;if(!this.hitGraphEnabled()||!this.isVisible())return null;for(var c=1,u=!1;;){for(i=0;i<r;i++){if(a=o[i],n=this._getIntersection({x:t.x+a.x*c,y:t.y+a.y*c}),s=n.shape,s&&e)return s.findAncestor(e,!0);if(s)return s;if(u=!!n.antialiased,!n.antialiased)break}if(!u)return null;c+=1}},_getImageData:function(t,e){var n=this.hitCanvas.width||1,o=this.hitCanvas.height||1,r=Math.round(e)*n+Math.round(t);return this._hitImageData||(this._hitImageData=this.hitCanvas.context.getImageData(0,0,n,o)),[this._hitImageData.data[4*r+0],this._hitImageData.data[4*r+1],this._hitImageData.data[4*r+2],this._hitImageData.data[4*r+3]]},_getIntersection:function(e){var n,o,r=this.hitCanvas.pixelRatio,i=this.hitCanvas.context.getImageData(Math.round(e.x*r),Math.round(e.y*r),1,1).data,a=i[3];return 255===a?(n=Konva.Util._rgbToHex(i[0],i[1],i[2]),o=Konva.shapes[t+n],o?{shape:o}:{antialiased:!0}):a>0?{antialiased:!0}:{}},drawScene:function(t,o){var r=this.getLayer(),i=t||r&&r.getCanvas();return this._fire(e,{node:this}),this.getClearBeforeDraw()&&i.getContext().clear(),Konva.Container.prototype.drawScene.call(this,i,o),this._fire(n,{node:this}),this},drawHit:function(t,e){var n=this.getLayer(),o=t||n&&n.hitCanvas;return n&&n.getClearBeforeDraw()&&n.getHitCanvas().getContext().clear(),Konva.Container.prototype.drawHit.call(this,o,e),this.imageData=null,this},clear:function(t){return Konva.BaseLayer.prototype.clear.call(this,t),this.getHitCanvas().getContext().clear(t),this.imageData=null,this},setVisible:function(t){return Konva.Node.prototype.setVisible.call(this,t),t?(this.getCanvas()._canvas.style.display="block",this.hitCanvas._canvas.style.display="block"):(this.getCanvas()._canvas.style.display="none",this.hitCanvas._canvas.style.display="none"),this},enableHitGraph:function(){return this.setHitGraphEnabled(!0),this},disableHitGraph:function(){return this.setHitGraphEnabled(!1),this},setSize:function(t,e){return Konva.BaseLayer.prototype.setSize.call(this,t,e),this.hitCanvas.setSize(t,e),this}}),Konva.Util.extend(Konva.Layer,Konva.BaseLayer),Konva.Factory.addGetterSetter(Konva.Layer,"hitGraphEnabled",!0),Konva.Collection.mapMethods(Konva.Layer)}(),function(){"use strict";Konva.FastLayer=function(t){this.____init(t)},Konva.Util.addMethods(Konva.FastLayer,{____init:function(t){this.nodeType="Layer",
  this.canvas=new Konva.SceneCanvas,Konva.BaseLayer.call(this,t)},_validateAdd:function(t){var e=t.getType();"Shape"!==e&&Konva.Util.throw("You may only add shapes to a fast layer.")},_setCanvasSize:function(t,e){this.canvas.setSize(t,e)},hitGraphEnabled:function(){return!1},getIntersection:function(){return null},drawScene:function(t){var e=this.getLayer(),n=t||e&&e.getCanvas();return this.getClearBeforeDraw()&&n.getContext().clear(),Konva.Container.prototype.drawScene.call(this,n),this},draw:function(){return this.drawScene(),this},setVisible:function(t){return Konva.Node.prototype.setVisible.call(this,t),t?this.getCanvas()._canvas.style.display="block":this.getCanvas()._canvas.style.display="none",this}}),Konva.Util.extend(Konva.FastLayer,Konva.BaseLayer),Konva.Collection.mapMethods(Konva.FastLayer)}(),function(){"use strict";Konva.Group=function(t){this.___init(t)},Konva.Util.addMethods(Konva.Group,{___init:function(t){this.nodeType="Group",Konva.Container.call(this,t)},_validateAdd:function(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&Konva.Util.throw("You may only add groups and shapes to groups.")}}),Konva.Util.extend(Konva.Group,Konva.Container),Konva.Collection.mapMethods(Konva.Group)}(),function(t){"use strict";function e(t){setTimeout(t,1e3/60)}function n(){return r.apply(t.global,arguments)}var o=function(){return t.global.performance&&t.global.performance.now?function(){return t.global.performance.now()}:function(){return(new Date).getTime()}}(),r=function(){return t.global.requestAnimationFrame||t.global.webkitRequestAnimationFrame||t.global.mozRequestAnimationFrame||t.global.oRequestAnimationFrame||t.global.msRequestAnimationFrame||e}();t.Animation=function(e,n){var r=t.Animation;this.func=e,this.setLayers(n),this.id=r.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:o()}},t.Animation.prototype={setLayers:function(t){var e=[];return e=t?t.length>0?t:[t]:[],this.layers=e,this},getLayers:function(){return this.layers},addLayer:function(t){var e,n=this.layers,o=n.length;for(e=0;e<o;e++)if(n[e]._id===t._id)return!1;return this.layers.push(t),!0},isRunning:function(){var e,n=t.Animation,o=n.animations,r=o.length;for(e=0;e<r;e++)if(o[e].id===this.id)return!0;return!1},start:function(){var e=t.Animation;return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=o(),e._addAnimation(this),this},stop:function(){return t.Animation._removeAnimation(this),this},_updateFrameObject:function(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}},t.Animation.animations=[],t.Animation.animIdCounter=0,t.Animation.animRunning=!1,t.Animation._addAnimation=function(t){this.animations.push(t),this._handleAnimation()},t.Animation._removeAnimation=function(t){var e,n=t.id,o=this.animations,r=o.length;for(e=0;e<r;e++)if(o[e].id===n){this.animations.splice(e,1);break}},t.Animation._runFrames=function(){var t,e,n,r,i,a,s,c,u,l={},d=this.animations;for(r=0;r<d.length;r++)if(t=d[r],e=t.layers,n=t.func,t._updateFrameObject(o()),a=e.length,u=!n||n.call(t,t.frame)!==!1)for(i=0;i<a;i++)s=e[i],void 0!==s._id&&(l[s._id]=s);for(c in l)l.hasOwnProperty(c)&&l[c].draw()},t.Animation._animationLoop=function(){var e=t.Animation;e.animations.length?(e._runFrames(),n(e._animationLoop)):e.animRunning=!1},t.Animation._handleAnimation=function(){this.animRunning||(this.animRunning=!0,n(this._animationLoop))},t.BaseLayer.prototype.batchDraw=function(){var e=this,n=t.Animation;return this.batchAnim||(this.batchAnim=new n(function(){e.batchAnim.stop()},this)),this.lastBatchDrawTime=o(),this.batchAnim.isRunning()||this.batchAnim.start(),this},t.Stage.prototype.batchDraw=function(){return this.getChildren().each(function(t){t.batchDraw()}),this}}(Konva),function(){"use strict";var t={node:1,duration:1,easing:1,onFinish:1,yoyo:1},e=1,n=2,o=3,r=0,i=["fill","stroke","shadowColor"],a=function(t,e,n,o,r,i,a){this.prop=t,this.propFunc=e,this.begin=o,this._pos=o,this.duration=i,this._change=0,this.prevPos=0,this.yoyo=a,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=n,this._change=r-this.begin,this.pause()};a.prototype={fire:function(t){var e=this[t];e&&e()},setTime:function(t){t>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():t<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=t,this.update())},getTime:function(){return this._time},setPosition:function(t){this.prevPos=this._pos,this.propFunc(t),this._pos=t},getPosition:function(t){return void 0===t&&(t=this._time),this.func(t,this.begin,this._change,this.duration)},play:function(){this.state=n,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")},reverse:function(){this.state=o,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")},seek:function(t){this.pause(),this._time=t,this.update(),this.fire("onSeek")},reset:function(){this.pause(),this._time=0,this.update(),this.fire("onReset")},finish:function(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")},update:function(){this.setPosition(this.getPosition(this._time))},onEnterFrame:function(){var t=this.getTimer()-this._startTime;this.state===n?this.setTime(t):this.state===o&&this.setTime(this.duration-t)},pause:function(){this.state=e,this.fire("onPause")},getTimer:function(){return(new Date).getTime()}},Konva.Tween=function(e){var n,o,i=this,s=e.node,c=s._id,u=e.easing||Konva.Easings.Linear,l=!!e.yoyo;n="undefined"==typeof e.duration?1:0===e.duration?.001:e.duration,this.node=s,this._id=r++;var d=s.getLayer()||(s instanceof Konva.Stage?s.getLayers():null);d||Konva.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new Konva.Animation(function(){i.tween.onEnterFrame()},d),this.tween=new a(o,function(t){i._tweenFunc(t)},u,0,1,1e3*n,l),this._addListeners(),Konva.Tween.attrs[c]||(Konva.Tween.attrs[c]={}),Konva.Tween.attrs[c][this._id]||(Konva.Tween.attrs[c][this._id]={}),Konva.Tween.tweens[c]||(Konva.Tween.tweens[c]={});for(o in e)void 0===t[o]&&this._addAttr(o,e[o]);this.reset(),this.onFinish=e.onFinish,this.onReset=e.onReset},Konva.Tween.attrs={},Konva.Tween.tweens={},Konva.Tween.prototype={_addAttr:function(t,e){var n,o,r,a,s,c,u,l=this.node,d=l._id;if(r=Konva.Tween.tweens[d][t],r&&delete Konva.Tween.attrs[d][r][t],n=l.getAttr(t),Konva.Util._isArray(e))for(o=[],s=Math.max(e.length,n.length),"points"===t&&e.length!==n.length&&(e.length>n.length?(u=n,n=Konva.Util._prepareArrayForTween(n,e,l.closed())):(c=e,e=Konva.Util._prepareArrayForTween(e,n,l.closed()))),a=0;a<s;a++)o.push(e[a]-n[a]);else if(i.indexOf(t)!==-1){n=Konva.Util.colorToRGBA(n);var h=Konva.Util.colorToRGBA(e);o={r:h.r-n.r,g:h.g-n.g,b:h.b-n.b,a:h.a-n.a}}else o=e-n;Konva.Tween.attrs[d][this._id][t]={start:n,diff:o,end:e,trueEnd:c,trueStart:u},Konva.Tween.tweens[d][t]=this._id},_tweenFunc:function(t){var e,n,o,r,a,s,c,u,l=this.node,d=Konva.Tween.attrs[l._id][this._id];for(e in d){if(n=d[e],o=n.start,r=n.diff,u=n.end,Konva.Util._isArray(o))for(a=[],c=Math.max(o.length,u.length),s=0;s<c;s++)a.push((o[s]||0)+r[s]*t);else a=i.indexOf(e)!==-1?"rgba("+Math.round(o.r+r.r*t)+","+Math.round(o.g+r.g*t)+","+Math.round(o.b+r.b*t)+","+(o.a+r.a*t)+")":o+r*t;l.setAttr(e,a)}},_addListeners:function(){var t=this;this.tween.onPlay=function(){t.anim.start()},this.tween.onReverse=function(){t.anim.start()},this.tween.onPause=function(){t.anim.stop()},this.tween.onFinish=function(){var e=t.node,n=Konva.Tween.attrs[e._id][t._id];n.points&&n.points.trueEnd&&e.points(n.points.trueEnd),t.onFinish&&t.onFinish.call(t)},this.tween.onReset=function(){var e=t.node,n=Konva.Tween.attrs[e._id][t._id];n.points&&n.points.trueStart&&e.points(n.points.trueStart),t.onReset&&t.onReset()}},play:function(){return this.tween.play(),this},reverse:function(){return this.tween.reverse(),this},reset:function(){return this.tween.reset(),this},seek:function(t){return this.tween.seek(1e3*t),this},pause:function(){return this.tween.pause(),this},finish:function(){return this.tween.finish(),this},destroy:function(){var t,e=this.node._id,n=this._id,o=Konva.Tween.tweens[e];this.pause();for(t in o)delete Konva.Tween.tweens[e][t];delete Konva.Tween.attrs[e][n]}},Konva.Node.prototype.to=function(t){var e=t.onFinish;t.node=this,t.onFinish=function(){this.destroy(),e&&e()};var n=new Konva.Tween(t);n.play()},Konva.Easings={BackEaseIn:function(t,e,n,o){var r=1.70158;return n*(t/=o)*t*((r+1)*t-r)+e},BackEaseOut:function(t,e,n,o){var r=1.70158;return n*((t=t/o-1)*t*((r+1)*t+r)+1)+e},BackEaseInOut:function(t,e,n,o){var r=1.70158;return(t/=o/2)<1?n/2*(t*t*(((r*=1.525)+1)*t-r))+e:n/2*((t-=2)*t*(((r*=1.525)+1)*t+r)+2)+e},ElasticEaseIn:function(t,e,n,o,r,i){var a=0;return 0===t?e:1===(t/=o)?e+n:(i||(i=.3*o),!r||r<Math.abs(n)?(r=n,a=i/4):a=i/(2*Math.PI)*Math.asin(n/r),-(r*Math.pow(2,10*(t-=1))*Math.sin((t*o-a)*(2*Math.PI)/i))+e)},ElasticEaseOut:function(t,e,n,o,r,i){var a=0;return 0===t?e:1===(t/=o)?e+n:(i||(i=.3*o),!r||r<Math.abs(n)?(r=n,a=i/4):a=i/(2*Math.PI)*Math.asin(n/r),r*Math.pow(2,-10*t)*Math.sin((t*o-a)*(2*Math.PI)/i)+n+e)},ElasticEaseInOut:function(t,e,n,o,r,i){var a=0;return 0===t?e:2===(t/=o/2)?e+n:(i||(i=o*(.3*1.5)),!r||r<Math.abs(n)?(r=n,a=i/4):a=i/(2*Math.PI)*Math.asin(n/r),t<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t*o-a)*(2*Math.PI)/i))+e:r*Math.pow(2,-10*(t-=1))*Math.sin((t*o-a)*(2*Math.PI)/i)*.5+n+e)},BounceEaseOut:function(t,e,n,o){return(t/=o)<1/2.75?n*(7.5625*t*t)+e:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+e:n*(7.5625*(t-=2.625/2.75)*t+.984375)+e},BounceEaseIn:function(t,e,n,o){return n-Konva.Easings.BounceEaseOut(o-t,0,n,o)+e},BounceEaseInOut:function(t,e,n,o){return t<o/2?.5*Konva.Easings.BounceEaseIn(2*t,0,n,o)+e:.5*Konva.Easings.BounceEaseOut(2*t-o,0,n,o)+.5*n+e},EaseIn:function(t,e,n,o){return n*(t/=o)*t+e},EaseOut:function(t,e,n,o){return-n*(t/=o)*(t-2)+e},EaseInOut:function(t,e,n,o){return(t/=o/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},StrongEaseIn:function(t,e,n,o){return n*(t/=o)*t*t*t*t+e},StrongEaseOut:function(t,e,n,o){return n*((t=t/o-1)*t*t*t*t+1)+e},StrongEaseInOut:function(t,e,n,o){return(t/=o/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e},Linear:function(t,e,n,o){return n*t/o+e}}}(),function(){"use strict";Konva.DD={anim:new Konva.Animation(function(){var t=this.dirty;return this.dirty=!1,t}),isDragging:!1,justDragged:!1,offset:{x:0,y:0},node:null,_drag:function(t){var e=Konva.DD,n=e.node;if(n){if(!e.isDragging){var o=n.getStage().getPointerPosition(),r=n.dragDistance(),i=Math.max(Math.abs(o.x-e.startPointerPos.x),Math.abs(o.y-e.startPointerPos.y));if(i<r)return}n.getStage()._setPointerPosition(t),n._setDragPosition(t),e.isDragging||(e.isDragging=!0,n.fire("dragstart",{type:"dragstart",target:n,evt:t},!0)),n.fire("dragmove",{type:"dragmove",target:n,evt:t},!0)}},_endDragBefore:function(t){var e,n=Konva.DD,o=n.node;o&&(e=o.getLayer(),n.anim.stop(),n.isDragging&&(n.isDragging=!1,n.justDragged=!0,Konva.listenClickTap=!1,t&&(t.dragEndNode=o)),delete n.node,(o.getLayer()||e||o instanceof Konva.Stage)&&(e||o).draw())},_endDragAfter:function(t){t=t||{};var e=t.dragEndNode;t&&e&&e.fire("dragend",{type:"dragend",target:e,evt:t},!0)}},Konva.Node.prototype.startDrag=function(){var t=Konva.DD,e=this.getStage(),n=this.getLayer(),o=e.getPointerPosition(),r=this.getAbsolutePosition();o&&(t.node&&t.node.stopDrag(),t.node=this,t.startPointerPos=o,t.offset.x=o.x-r.x,t.offset.y=o.y-r.y,t.anim.setLayers(n||this.getLayers()),t.anim.start(),this._setDragPosition())},Konva.Node.prototype._setDragPosition=function(t){var e=Konva.DD,n=this.getStage().getPointerPosition(),o=this.getDragBoundFunc();if(n){var r={x:n.x-e.offset.x,y:n.y-e.offset.y};void 0!==o&&(r=o.call(this,r,t)),this.setAbsolutePosition(r),this._lastPos&&this._lastPos.x===r.x&&this._lastPos.y===r.y||(e.anim.dirty=!0),this._lastPos=r}},Konva.Node.prototype.stopDrag=function(){var t=Konva.DD,e={};t._endDragBefore(e),t._endDragAfter(e)},Konva.Node.prototype.setDraggable=function(t){this._setAttr("draggable",t),this._dragChange()};var t=Konva.Node.prototype.destroy;Konva.Node.prototype.destroy=function(){var e=Konva.DD;e.node&&e.node._id===this._id&&this.stopDrag(),t.call(this)},Konva.Node.prototype.isDragging=function(){var t=Konva.DD;return!(!t.node||t.node._id!==this._id||!t.isDragging)},Konva.Node.prototype._listenDrag=function(){var t=this;this._dragCleanup(),"Stage"===this.getClassName()?this.on("contentMousedown.konva contentTouchstart.konva",function(e){Konva.DD.node||t.startDrag(e)}):this.on("mousedown.konva touchstart.konva",function(e){1!==e.evt.button&&2!==e.evt.button&&(Konva.DD.node||t.startDrag(e))})},Konva.Node.prototype._dragChange=function(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var t=this.getStage(),e=Konva.DD;t&&e.node&&e.node._id===this._id&&e.node.stopDrag()}},Konva.Node.prototype._dragCleanup=function(){"Stage"===this.getClassName()?(this.off("contentMousedown.konva"),this.off("contentTouchstart.konva")):(this.off("mousedown.konva"),this.off("touchstart.konva"))},Konva.Factory.addGetterSetter(Konva.Node,"dragBoundFunc"),Konva.Factory.addGetter(Konva.Node,"draggable",!1),Konva.Factory.addOverloadedGetterSetter(Konva.Node,"draggable");var e=Konva.document.documentElement;e.addEventListener("mouseup",Konva.DD._endDragBefore,!0),e.addEventListener("touchend",Konva.DD._endDragBefore,!0),e.addEventListener("mousemove",Konva.DD._drag),e.addEventListener("touchmove",Konva.DD._drag),e.addEventListener("mouseup",Konva.DD._endDragAfter,!1),e.addEventListener("touchend",Konva.DD._endDragAfter,!1)}(),function(){"use strict";Konva.Rect=function(t){this.___init(t)},Konva.Rect.prototype={___init:function(t){Konva.Shape.call(this,t),this.className="Rect",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var e=this.getCornerRadius(),n=this.getWidth(),o=this.getHeight();t.beginPath(),e?(e=Math.min(e,n/2,o/2),t.moveTo(e,0),t.lineTo(n-e,0),t.arc(n-e,e,e,3*Math.PI/2,0,!1),t.lineTo(n,o-e),t.arc(n-e,o-e,e,0,Math.PI/2,!1),t.lineTo(e,o),t.arc(e,o-e,e,Math.PI/2,Math.PI,!1),t.lineTo(0,e),t.arc(e,e,e,Math.PI,3*Math.PI/2,!1)):t.rect(0,0,n,o),t.closePath(),t.fillStrokeShape(this)}},Konva.Util.extend(Konva.Rect,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Rect,"cornerRadius",0),Konva.Collection.mapMethods(Konva.Rect)}(),function(){"use strict";var t=2*Math.PI-1e-4,e="Circle";Konva.Circle=function(t){this.___init(t)},Konva.Circle.prototype={_centroid:!0,___init:function(t){Konva.Shape.call(this,t),this.className=e,this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){e.beginPath(),e.arc(0,0,this.getRadius(),0,t,!1),e.closePath(),e.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadius()},getHeight:function(){return 2*this.getRadius()},setWidth:function(t){Konva.Node.prototype.setWidth.call(this,t),this.radius()!==t/2&&this.setRadius(t/2)},setHeight:function(t){Konva.Node.prototype.setHeight.call(this,t),this.radius()!==t/2&&this.setRadius(t/2)}},Konva.Util.extend(Konva.Circle,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Circle,"radius",0),Konva.Factory.addOverloadedGetterSetter(Konva.Circle,"radius"),Konva.Collection.mapMethods(Konva.Circle)}(),function(){"use strict";var t=2*Math.PI-1e-4,e="Ellipse";Konva.Ellipse=function(t){this.___init(t)},Konva.Ellipse.prototype={_centroid:!0,___init:function(t){Konva.Shape.call(this,t),this.className=e,this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){var n=this.getRadiusX(),o=this.getRadiusY();e.beginPath(),e.save(),n!==o&&e.scale(1,o/n),e.arc(0,0,n,0,t,!1),e.restore(),e.closePath(),e.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadiusX()},getHeight:function(){return 2*this.getRadiusY()},setWidth:function(t){Konva.Node.prototype.setWidth.call(this,t),this.setRadius({x:t/2})},setHeight:function(t){Konva.Node.prototype.setHeight.call(this,t),this.setRadius({y:t/2})}},Konva.Util.extend(Konva.Ellipse,Konva.Shape),Konva.Factory.addComponentsGetterSetter(Konva.Ellipse,"radius",["x","y"]),Konva.Factory.addGetterSetter(Konva.Ellipse,"radiusX",0),Konva.Factory.addGetterSetter(Konva.Ellipse,"radiusY",0),Konva.Collection.mapMethods(Konva.Ellipse)}(),function(){"use strict";var t=2*Math.PI-1e-4;Konva.Ring=function(t){this.___init(t)},Konva.Ring.prototype={_centroid:!0,___init:function(t){Konva.Shape.call(this,t),this.className="Ring",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){e.beginPath(),e.arc(0,0,this.getInnerRadius(),0,t,!1),e.moveTo(this.getOuterRadius(),0),e.arc(0,0,this.getOuterRadius(),t,0,!0),e.closePath(),e.fillStrokeShape(this)},getWidth:function(){return 2*this.getOuterRadius()},getHeight:function(){return 2*this.getOuterRadius()},setWidth:function(t){Konva.Node.prototype.setWidth.call(this,t),this.outerRadius()!==t/2&&this.setOuterRadius(t/2)},setHeight:function(t){Konva.Node.prototype.setHeight.call(this,t),this.outerRadius()!==t/2&&this.setOuterRadius(t/2)},setOuterRadius:function(t){this._setAttr("outerRadius",t),this.setWidth(2*t),this.setHeight(2*t)}},Konva.Util.extend(Konva.Ring,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Ring,"innerRadius",0),Konva.Factory.addGetter(Konva.Ring,"outerRadius",0),Konva.Factory.addOverloadedGetterSetter(Konva.Ring,"outerRadius"),Konva.Collection.mapMethods(Konva.Ring)}(),function(){"use strict";Konva.Wedge=function(t){this.___init(t)},Konva.Wedge.prototype={_centroid:!0,___init:function(t){Konva.Shape.call(this,t),this.className="Wedge",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){t.beginPath(),t.arc(0,0,this.getRadius(),0,Konva.getAngle(this.getAngle()),this.getClockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadius()},getHeight:function(){return 2*this.getRadius()},setWidth:function(t){Konva.Node.prototype.setWidth.call(this,t),this.radius()!==t/2&&this.setRadius(t/2)},setHeight:function(t){Konva.Node.prototype.setHeight.call(this,t),this.radius()!==t/2&&this.setRadius(t/2)}},Konva.Util.extend(Konva.Wedge,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Wedge,"radius",0),Konva.Factory.addGetterSetter(Konva.Wedge,"angle",0),Konva.Factory.addGetterSetter(Konva.Wedge,"clockwise",!1),Konva.Factory.backCompat(Konva.Wedge,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"}),Konva.Collection.mapMethods(Konva.Wedge)}(),function(){"use strict";Konva.Arc=function(t){this.___init(t)},Konva.Arc.prototype={_centroid:!0,___init:function(t){Konva.Shape.call(this,t),this.className="Arc",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var e=Konva.getAngle(this.angle()),n=this.clockwise();t.beginPath(),t.arc(0,0,this.getOuterRadius(),0,e,n),t.arc(0,0,this.getInnerRadius(),e,0,!n),t.closePath(),t.fillStrokeShape(this)},getWidth:function(){return 2*this.getOuterRadius()},getHeight:function(){return 2*this.getOuterRadius()},setWidth:function(t){Konva.Node.prototype.setWidth.call(this,t),this.getOuterRadius()!==t/2&&this.setOuterRadius(t/2)},setHeight:function(t){Konva.Node.prototype.setHeight.call(this,t),this.getOuterRadius()!==t/2&&this.setOuterRadius(t/2)}},Konva.Util.extend(Konva.Arc,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Arc,"innerRadius",0),Konva.Factory.addGetterSetter(Konva.Arc,"outerRadius",0),Konva.Factory.addGetterSetter(Konva.Arc,"angle",0),Konva.Factory.addGetterSetter(Konva.Arc,"clockwise",!1),Konva.Collection.mapMethods(Konva.Arc)}(),function(){"use strict";var t="Image";Konva.Image=function(t){this.___init(t)},Konva.Image.prototype={___init:function(e){Konva.Shape.call(this,e),this.className=t,this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_useBufferCanvas:function(){return(this.hasShadow()||1!==this.getAbsoluteOpacity())&&this.hasStroke()&&this.getStage()},_sceneFunc:function(t){var e,n,o,r=this.getWidth(),i=this.getHeight(),a=this.getImage();a&&(e=this.getCropWidth(),n=this.getCropHeight(),o=e&&n?[a,this.getCropX(),this.getCropY(),e,n,0,0,r,i]:[a,0,0,r,i]),(this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,r,i),t.closePath(),t.fillStrokeShape(this)),a&&t.drawImage.apply(t,o)},_hitFunc:function(t){var e=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)},getWidth:function(){var t=this.getImage();return this.attrs.width||(t?t.width:0)},getHeight:function(){var t=this.getImage();return this.attrs.height||(t?t.height:0)}},Konva.Util.extend(Konva.Image,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Image,"image"),Konva.Factory.addComponentsGetterSetter(Konva.Image,"crop",["x","y","width","height"]),Konva.Factory.addGetterSetter(Konva.Image,"cropX",0),Konva.Factory.addGetterSetter(Konva.Image,"cropY",0),Konva.Factory.addGetterSetter(Konva.Image,"cropWidth",0),Konva.Factory.addGetterSetter(Konva.Image,"cropHeight",0),Konva.Collection.mapMethods(Konva.Image),Konva.Image.fromURL=function(t,e){var n=new Image;n.onload=function(){var t=new Konva.Image({image:n});e(t)},n.src=t}}(),function(){"use strict";function t(t){t.fillText(this.partialText,0,0)}function e(t){t.strokeText(this.partialText,0,0)}var n="auto",o="center",r="Change.konva",i="2d",a="-",s="",c="left",u="text",l="Text",d="middle",h="normal",p="px ",f=" ",v="right",g="word",m="char",y="none",_=["fontFamily","fontSize","fontStyle","fontVariant","padding","align","lineHeight","text","width","height","wrap"],b=_.length,E=Konva.Util.createCanvasElement().getContext(i);Konva.Text=function(t){this.___init(t)},Konva.Text.prototype={___init:function(n){n=n||{},n.fillLinearGradientColorStops||n.fillRadialGradientColorStops||(n.fill=n.fill||"black"),Konva.Shape.call(this,n),this._fillFunc=t,this._strokeFunc=e,this.className=l;for(var o=0;o<b;o++)this.on(_[o]+r,this._setTextData);this._setTextData(),this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_sceneFunc:function(t){var e,n=this.getPadding(),r=this.getTextHeight(),i=this.getLineHeight()*r,a=this.textArr,s=a.length,u=this.getWidth();for(t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",d),t.setAttr("textAlign",c),t.save(),n?(t.translate(n,0),t.translate(0,n+r/2)):t.translate(0,r/2),e=0;e<s;e++){var l=a[e],h=l.text,p=l.width;t.save(),this.getAlign()===v?t.translate(u-p-2*n,0):this.getAlign()===o&&t.translate((u-p-2*n)/2,0),this.partialText=h,t.fillStrokeShape(this),t.restore(),t.translate(0,i)}t.restore()},_hitFunc:function(t){var e=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)},setText:function(t){var e=Konva.Util._isString(t)?t:(t||"").toString();return this._setAttr(u,e),this},getWidth:function(){var t=this.attrs.width===n||void 0===this.attrs.width;return t?this.getTextWidth()+2*this.getPadding():this.attrs.width},getHeight:function(){var t=this.attrs.height===n||void 0===this.attrs.height;return t?this.getTextHeight()*this.textArr.length*this.getLineHeight()+2*this.getPadding():this.attrs.height},getTextWidth:function(){return this.textWidth},getTextHeight:function(){return this.textHeight},_getTextSize:function(t){var e,n=E,o=this.getFontSize();return n.save(),n.font=this._getContextFont(),e=n.measureText(t),n.restore(),{width:e.width,height:parseInt(o,10)}},_getContextFont:function(){return Konva.UA.isIE?this.getFontStyle()+f+this.getFontSize()+p+this.getFontFamily():this.getFontStyle()+f+this.getFontVariant()+f+this.getFontSize()+p+this.getFontFamily()},_addTextLine:function(t,e){return this.textArr.push({text:t,width:e})},_getTextWidth:function(t){return E.measureText(t).width},_setTextData:function(){var t=this.getText().split("\n"),e=+this.getFontSize(),o=0,r=this.getLineHeight()*e,i=this.attrs.width,s=this.attrs.height,c=i!==n,u=s!==n,l=this.getPadding(),d=i-2*l,h=s-2*l,p=0,v=this.getWrap(),g=v!==y,_=v!==m&&g;this.textArr=[],E.save(),E.font=this._getContextFont();for(var b=0,C=t.length;b<C;++b){var N=t[b],w=this._getTextWidth(N);if(c&&w>d)for(;N.length>0;){for(var x=0,S=N.length,D="",O=0;x<S;){var T=x+S>>>1,P=N.slice(0,T+1),k=this._getTextWidth(P);k<=d?(x=T+1,D=P,O=k):S=T}if(!D)break;if(_){var I=Math.max(D.lastIndexOf(f),D.lastIndexOf(a))+1;I>0&&(x=I,D=D.slice(0,x),O=this._getTextWidth(D))}if(this._addTextLine(D,O),o=Math.max(o,O),p+=r,!g||u&&p+r>h)break;if(N=N.slice(x),N.length>0&&(w=this._getTextWidth(N),w<=d)){this._addTextLine(N,w),p+=r,o=Math.max(o,w);break}}else this._addTextLine(N,w),p+=r,o=Math.max(o,w);if(u&&p+r>h)break}E.restore(),this.textHeight=e,this.textWidth=o}},Konva.Util.extend(Konva.Text,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Text,"fontFamily","Arial"),Konva.Factory.addGetterSetter(Konva.Text,"fontSize",12),Konva.Factory.addGetterSetter(Konva.Text,"fontStyle",h),Konva.Factory.addGetterSetter(Konva.Text,"fontVariant",h),Konva.Factory.addGetterSetter(Konva.Text,"padding",0),Konva.Factory.addGetterSetter(Konva.Text,"align",c),Konva.Factory.addGetterSetter(Konva.Text,"lineHeight",1),Konva.Factory.addGetterSetter(Konva.Text,"wrap",g),Konva.Factory.addGetter(Konva.Text,"text",s),Konva.Factory.addOverloadedGetterSetter(Konva.Text,"text"),Konva.Collection.mapMethods(Konva.Text)}(),function(){"use strict";Konva.Line=function(t){this.___init(t)},Konva.Line.prototype={___init:function(t){Konva.Shape.call(this,t),this.className="Line",this.on("pointsChange.konva tensionChange.konva closedChange.konva",function(){this._clearCache("tensionPoints")}),this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var e,n,o,r=this.getPoints(),i=r.length,a=this.getTension(),s=this.getClosed();if(i){if(t.beginPath(),t.moveTo(r[0],r[1]),0!==a&&i>4){for(e=this.getTensionPoints(),n=e.length,o=s?0:4,s||t.quadraticCurveTo(e[0],e[1],e[2],e[3]);o<n-2;)t.bezierCurveTo(e[o++],e[o++],e[o++],e[o++],e[o++],e[o++]);s||t.quadraticCurveTo(e[n-2],e[n-1],r[i-2],r[i-1])}else for(o=2;o<i;o+=2)t.lineTo(r[o],r[o+1]);s?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}},getTensionPoints:function(){return this._getCache("tensionPoints",this._getTensionPoints)},_getTensionPoints:function(){return this.getClosed()?this._getTensionPointsClosed():Konva.Util._expandPoints(this.getPoints(),this.getTension())},_getTensionPointsClosed:function(){var t=this.getPoints(),e=t.length,n=this.getTension(),o=Konva.Util,r=o._getControlPoints(t[e-2],t[e-1],t[0],t[1],t[2],t[3],n),i=o._getControlPoints(t[e-4],t[e-3],t[e-2],t[e-1],t[0],t[1],n),a=Konva.Util._expandPoints(t,n),s=[r[2],r[3]].concat(a).concat([i[0],i[1],t[e-2],t[e-1],i[2],i[3],r[0],r[1],t[0],t[1]]);return s},getWidth:function(){return this.getSelfRect().width},getHeight:function(){return this.getSelfRect().height},getSelfRect:function(){var t;t=0!==this.getTension()?this._getTensionPoints():this.getPoints();for(var e,n,o=t[0],r=t[0],i=t[1],a=t[1],s=0;s<t.length/2;s++)e=t[2*s],n=t[2*s+1],o=Math.min(o,e),r=Math.max(r,e),i=Math.min(i,n),a=Math.max(a,n);return{x:Math.round(o),y:Math.round(i),width:Math.round(r-o),height:Math.round(a-i)}}},Konva.Util.extend(Konva.Line,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Line,"closed",!1),Konva.Factory.addGetterSetter(Konva.Line,"tension",0),Konva.Factory.addGetterSetter(Konva.Line,"points",[]),Konva.Collection.mapMethods(Konva.Line)}(),function(){"use strict";Konva.Sprite=function(t){this.___init(t)},Konva.Sprite.prototype={___init:function(t){Konva.Shape.call(this,t),this.className="Sprite",this._updated=!0;var e=this;this.anim=new Konva.Animation(function(){var t=e._updated;return e._updated=!1,t}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())}),this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_sceneFunc:function(t){var e=this.getAnimation(),n=this.frameIndex(),o=4*n,r=this.getAnimations()[e],i=this.frameOffsets(),a=r[o+0],s=r[o+1],c=r[o+2],u=r[o+3],l=this.getImage();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,c,u),t.closePath(),t.fillStrokeShape(this)),l)if(i){var d=i[e],h=2*n;t.drawImage(l,a,s,c,u,d[h+0],d[h+1],c,u)}else t.drawImage(l,a,s,c,u,0,0,c,u)},_hitFunc:function(t){var e=this.getAnimation(),n=this.frameIndex(),o=4*n,r=this.getAnimations()[e],i=this.frameOffsets(),a=r[o+2],s=r[o+3];if(t.beginPath(),i){var c=i[e],u=2*n;t.rect(c[u+0],c[u+1],a,s)}else t.rect(0,0,a,s);t.closePath(),t.fillShape(this)},_useBufferCanvas:function(){return(this.hasShadow()||1!==this.getAbsoluteOpacity())&&this.hasStroke()},_setInterval:function(){var t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.getFrameRate())},start:function(){var t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()},stop:function(){this.anim.stop(),clearInterval(this.interval)},isRunning:function(){return this.anim.isRunning()},_updateIndex:function(){var t=this.frameIndex(),e=this.getAnimation(),n=this.getAnimations(),o=n[e],r=o.length/4;t<r-1?this.frameIndex(t+1):this.frameIndex(0)}},Konva.Util.extend(Konva.Sprite,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Sprite,"animation"),Konva.Factory.addGetterSetter(Konva.Sprite,"animations"),Konva.Factory.addGetterSetter(Konva.Sprite,"frameOffsets"),Konva.Factory.addGetterSetter(Konva.Sprite,"image"),Konva.Factory.addGetterSetter(Konva.Sprite,"frameIndex",0),Konva.Factory.addGetterSetter(Konva.Sprite,"frameRate",17),Konva.Factory.backCompat(Konva.Sprite,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"}),Konva.Collection.mapMethods(Konva.Sprite)}(),function(){"use strict";Konva.Path=function(t){this.___init(t)},Konva.Path.prototype={___init:function(t){this.dataArray=[];var e=this;Konva.Shape.call(this,t),this.className="Path",this.dataArray=Konva.Path.parsePathData(this.getData()),this.on("dataChange.konva",function(){e.dataArray=Konva.Path.parsePathData(this.getData())}),this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var e=this.dataArray;t.beginPath();for(var n=0;n<e.length;n++){var o=e[n].command,r=e[n].points;switch(o){case"L":t.lineTo(r[0],r[1]);break;case"M":t.moveTo(r[0],r[1]);break;case"C":t.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case"Q":t.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case"A":var i=r[0],a=r[1],s=r[2],c=r[3],u=r[4],l=r[5],d=r[6],h=r[7],p=s>c?s:c,f=s>c?1:s/c,v=s>c?c/s:1;t.translate(i,a),t.rotate(d),t.scale(f,v),t.arc(0,0,p,u,u+l,1-h),t.scale(1/f,1/v),t.rotate(-d),t.translate(-i,-a);break;case"z":t.closePath()}}t.fillStrokeShape(this)},getSelfRect:function(){var t=[];this.dataArray.forEach(function(e){t=t.concat(e.points)});for(var e,n,o=t[0],r=t[0],i=t[1],a=t[1],s=0;s<t.length/2;s++)e=t[2*s],n=t[2*s+1],o=Math.min(o,e),r=Math.max(r,e),i=Math.min(i,n),a=Math.max(a,n);return{x:Math.round(o),y:Math.round(i),width:Math.round(r-o),height:Math.round(a-i)}}},Konva.Util.extend(Konva.Path,Konva.Shape),Konva.Path.getLineLength=function(t,e,n,o){return Math.sqrt((n-t)*(n-t)+(o-e)*(o-e))},Konva.Path.getPointOnLine=function(t,e,n,o,r,i,a){void 0===i&&(i=e),void 0===a&&(a=n);var s=(r-n)/(o-e+1e-8),c=Math.sqrt(t*t/(1+s*s));o<e&&(c*=-1);var u,l=s*c;if(o===e)u={x:i,y:a+l};else if((a-n)/(i-e+1e-8)===s)u={x:i+c,y:a+l};else{var d,h,p=this.getLineLength(e,n,o,r);if(p<1e-8)return;var f=(i-e)*(o-e)+(a-n)*(r-n);f/=p*p,d=e+f*(o-e),h=n+f*(r-n);var v=this.getLineLength(i,a,d,h),g=Math.sqrt(t*t-v*v);c=Math.sqrt(g*g/(1+s*s)),o<e&&(c*=-1),l=s*c,u={x:d+c,y:h+l}}return u},Konva.Path.getPointOnCubicBezier=function(t,e,n,o,r,i,a,s,c){function u(t){return t*t*t}function l(t){return 3*t*t*(1-t)}function d(t){return 3*t*(1-t)*(1-t)}function h(t){return(1-t)*(1-t)*(1-t)}var p=s*u(t)+i*l(t)+o*d(t)+e*h(t),f=c*u(t)+a*l(t)+r*d(t)+n*h(t);return{x:p,y:f}},Konva.Path.getPointOnQuadraticBezier=function(t,e,n,o,r,i,a){function s(t){return t*t}function c(t){return 2*t*(1-t)}function u(t){return(1-t)*(1-t)}var l=i*s(t)+o*c(t)+e*u(t),d=a*s(t)+r*c(t)+n*u(t);return{x:l,y:d}},Konva.Path.getPointOnEllipticalArc=function(t,e,n,o,r,i){var a=Math.cos(i),s=Math.sin(i),c={x:n*Math.cos(r),y:o*Math.sin(r)
  };return{x:t+(c.x*a-c.y*s),y:e+(c.x*s+c.y*a)}},Konva.Path.parsePathData=function(t){if(!t)return[];var e=t,n=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];e=e.replace(new RegExp(" ","g"),",");for(var o=0;o<n.length;o++)e=e.replace(new RegExp(n[o],"g"),"|"+n[o]);var r=e.split("|"),i=[],a=0,s=0;for(o=1;o<r.length;o++){var c=r[o],u=c.charAt(0);c=c.slice(1),c=c.replace(new RegExp(",-","g"),"-"),c=c.replace(new RegExp("-","g"),",-"),c=c.replace(new RegExp("e,-","g"),"e-");var l=c.split(",");l.length>0&&""===l[0]&&l.shift();for(var d=0;d<l.length;d++)l[d]=parseFloat(l[d]);for(;l.length>0&&!isNaN(l[0]);){var h,p,f,v,g,m,y,_,b,E,C=null,N=[],w=a,x=s;switch(u){case"l":a+=l.shift(),s+=l.shift(),C="L",N.push(a,s);break;case"L":a=l.shift(),s=l.shift(),N.push(a,s);break;case"m":var S=l.shift(),D=l.shift();if(a+=S,s+=D,C="M",i.length>2&&"z"===i[i.length-1].command)for(var O=i.length-2;O>=0;O--)if("M"===i[O].command){a=i[O].points[0]+S,s=i[O].points[1]+D;break}N.push(a,s),u="l";break;case"M":a=l.shift(),s=l.shift(),C="M",N.push(a,s),u="L";break;case"h":a+=l.shift(),C="L",N.push(a,s);break;case"H":a=l.shift(),C="L",N.push(a,s);break;case"v":s+=l.shift(),C="L",N.push(a,s);break;case"V":s=l.shift(),C="L",N.push(a,s);break;case"C":N.push(l.shift(),l.shift(),l.shift(),l.shift()),a=l.shift(),s=l.shift(),N.push(a,s);break;case"c":N.push(a+l.shift(),s+l.shift(),a+l.shift(),s+l.shift()),a+=l.shift(),s+=l.shift(),C="C",N.push(a,s);break;case"S":p=a,f=s,h=i[i.length-1],"C"===h.command&&(p=a+(a-h.points[2]),f=s+(s-h.points[3])),N.push(p,f,l.shift(),l.shift()),a=l.shift(),s=l.shift(),C="C",N.push(a,s);break;case"s":p=a,f=s,h=i[i.length-1],"C"===h.command&&(p=a+(a-h.points[2]),f=s+(s-h.points[3])),N.push(p,f,a+l.shift(),s+l.shift()),a+=l.shift(),s+=l.shift(),C="C",N.push(a,s);break;case"Q":N.push(l.shift(),l.shift()),a=l.shift(),s=l.shift(),N.push(a,s);break;case"q":N.push(a+l.shift(),s+l.shift()),a+=l.shift(),s+=l.shift(),C="Q",N.push(a,s);break;case"T":p=a,f=s,h=i[i.length-1],"Q"===h.command&&(p=a+(a-h.points[0]),f=s+(s-h.points[1])),a=l.shift(),s=l.shift(),C="Q",N.push(p,f,a,s);break;case"t":p=a,f=s,h=i[i.length-1],"Q"===h.command&&(p=a+(a-h.points[0]),f=s+(s-h.points[1])),a+=l.shift(),s+=l.shift(),C="Q",N.push(p,f,a,s);break;case"A":v=l.shift(),g=l.shift(),m=l.shift(),y=l.shift(),_=l.shift(),b=a,E=s,a=l.shift(),s=l.shift(),C="A",N=this.convertEndpointToCenterParameterization(b,E,a,s,y,_,v,g,m);break;case"a":v=l.shift(),g=l.shift(),m=l.shift(),y=l.shift(),_=l.shift(),b=a,E=s,a+=l.shift(),s+=l.shift(),C="A",N=this.convertEndpointToCenterParameterization(b,E,a,s,y,_,v,g,m)}i.push({command:C||u,points:N,start:{x:w,y:x},pathLength:this.calcLength(w,x,C||u,N)})}"z"!==u&&"Z"!==u||i.push({command:"z",points:[],start:void 0,pathLength:0})}return i},Konva.Path.calcLength=function(t,e,n,o){var r,i,a,s,c=Konva.Path;switch(n){case"L":return c.getLineLength(t,e,o[0],o[1]);case"C":for(r=0,i=c.getPointOnCubicBezier(0,t,e,o[0],o[1],o[2],o[3],o[4],o[5]),s=.01;s<=1;s+=.01)a=c.getPointOnCubicBezier(s,t,e,o[0],o[1],o[2],o[3],o[4],o[5]),r+=c.getLineLength(i.x,i.y,a.x,a.y),i=a;return r;case"Q":for(r=0,i=c.getPointOnQuadraticBezier(0,t,e,o[0],o[1],o[2],o[3]),s=.01;s<=1;s+=.01)a=c.getPointOnQuadraticBezier(s,t,e,o[0],o[1],o[2],o[3]),r+=c.getLineLength(i.x,i.y,a.x,a.y),i=a;return r;case"A":r=0;var u=o[4],l=o[5],d=o[4]+l,h=Math.PI/180;if(Math.abs(u-d)<h&&(h=Math.abs(u-d)),i=c.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],u,0),l<0)for(s=u-h;s>d;s-=h)a=c.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],s,0),r+=c.getLineLength(i.x,i.y,a.x,a.y),i=a;else for(s=u+h;s<d;s+=h)a=c.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],s,0),r+=c.getLineLength(i.x,i.y,a.x,a.y),i=a;return a=c.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],d,0),r+=c.getLineLength(i.x,i.y,a.x,a.y)}return 0},Konva.Path.convertEndpointToCenterParameterization=function(t,e,n,o,r,i,a,s,c){var u=c*(Math.PI/180),l=Math.cos(u)*(t-n)/2+Math.sin(u)*(e-o)/2,d=-1*Math.sin(u)*(t-n)/2+Math.cos(u)*(e-o)/2,h=l*l/(a*a)+d*d/(s*s);h>1&&(a*=Math.sqrt(h),s*=Math.sqrt(h));var p=Math.sqrt((a*a*(s*s)-a*a*(d*d)-s*s*(l*l))/(a*a*(d*d)+s*s*(l*l)));r===i&&(p*=-1),isNaN(p)&&(p=0);var f=p*a*d/s,v=p*-s*l/a,g=(t+n)/2+Math.cos(u)*f-Math.sin(u)*v,m=(e+o)/2+Math.sin(u)*f+Math.cos(u)*v,y=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},_=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(y(t)*y(e))},b=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(_(t,e))},E=b([1,0],[(l-f)/a,(d-v)/s]),C=[(l-f)/a,(d-v)/s],N=[(-1*l-f)/a,(-1*d-v)/s],w=b(C,N);return _(C,N)<=-1&&(w=Math.PI),_(C,N)>=1&&(w=0),0===i&&w>0&&(w-=2*Math.PI),1===i&&w<0&&(w+=2*Math.PI),[g,m,a,s,E,w,u,i]},Konva.Factory.addGetterSetter(Konva.Path,"data"),Konva.Collection.mapMethods(Konva.Path)}(),function(){"use strict";function t(t){t.fillText(this.partialText,0,0)}function e(t){t.strokeText(this.partialText,0,0)}var n="",o="normal";Konva.TextPath=function(t){this.___init(t)},Konva.TextPath.prototype={___init:function(n){var o=this;this.dummyCanvas=Konva.Util.createCanvasElement(),this.dataArray=[],Konva.Shape.call(this,n),this._fillFunc=t,this._strokeFunc=e,this._fillFuncHit=t,this._strokeFuncHit=e,this.className="TextPath",this.dataArray=Konva.Path.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){o.dataArray=Konva.Path.parsePathData(this.attrs.data),o._setTextData()}),this.on("textChange.konva letterSpacingChange.konva",o._setTextData),o._setTextData(),this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_sceneFunc:function(t){t.setAttr("font",this._getContextFont()),t.setAttr(this.getTextBaseline(),"middle"),t.setAttr("textAlign","left"),t.save();for(var e=this.glyphInfo,n=0;n<e.length;n++){t.save();var o=e[n].p0;t.translate(o.x,o.y),t.rotate(e[n].rotation),this.partialText=e[n].text,t.fillStrokeShape(this),t.restore()}t.restore()},_hitFunc:function(t){t.beginPath();var e=this.glyphInfo;if(e.length>=1){var n=e[0].p0;t.moveTo(n.x,n.y)}for(var o=0;o<e.length;o++){var r=e[o].p1;t.lineTo(r.x,r.y)}t.setAttr("lineWidth",this.getFontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()},getTextWidth:function(){return this.textWidth},getTextHeight:function(){return this.textHeight},setText:function(t){Konva.Text.prototype.setText.call(this,t)},_getTextSize:function(t){var e=this.dummyCanvas,n=e.getContext("2d");n.save(),n.font=this._getContextFont();var o=n.measureText(t);return n.restore(),{width:o.width,height:parseInt(this.attrs.fontSize,10)}},_setTextData:function(){var t=this,e=this._getTextSize(this.attrs.text),n=this.getLetterSpacing();this.textWidth=e.width,this.textHeight=e.height,this.glyphInfo=[];for(var o,r,i,a=this.getText().split(""),s=-1,c=0,u=function(){c=0;for(var e=t.dataArray,n=s+1;n<e.length;n++){if(e[n].pathLength>0)return s=n,e[n];"M"===e[n].command&&(o={x:e[n].points[0],y:e[n].points[1]})}return{}},l=function(e){var a=t._getTextSize(e).width+n,s=0,l=0;for(r=void 0;Math.abs(a-s)/a>.01&&l<25;){l++;for(var d=s;void 0===i;)i=u(),i&&d+i.pathLength<a&&(d+=i.pathLength,i=void 0);if(i==={}||void 0===o)return;var h=!1;switch(i.command){case"L":Konva.Path.getLineLength(o.x,o.y,i.points[0],i.points[1])>a?r=Konva.Path.getPointOnLine(a,o.x,o.y,i.points[0],i.points[1],o.x,o.y):i=void 0;break;case"A":var p=i.points[4],f=i.points[5],v=i.points[4]+f;0===c?c=p+1e-8:a>s?c+=Math.PI/180*f/Math.abs(f):c-=Math.PI/360*f/Math.abs(f),(f<0&&c<v||f>=0&&c>v)&&(c=v,h=!0),r=Konva.Path.getPointOnEllipticalArc(i.points[0],i.points[1],i.points[2],i.points[3],c,i.points[6]);break;case"C":0===c?c=a>i.pathLength?1e-8:a/i.pathLength:a>s?c+=(a-s)/i.pathLength:c-=(s-a)/i.pathLength,c>1&&(c=1,h=!0),r=Konva.Path.getPointOnCubicBezier(c,i.start.x,i.start.y,i.points[0],i.points[1],i.points[2],i.points[3],i.points[4],i.points[5]);break;case"Q":0===c?c=a/i.pathLength:a>s?c+=(a-s)/i.pathLength:c-=(s-a)/i.pathLength,c>1&&(c=1,h=!0),r=Konva.Path.getPointOnQuadraticBezier(c,i.start.x,i.start.y,i.points[0],i.points[1],i.points[2],i.points[3])}void 0!==r&&(s=Konva.Path.getLineLength(o.x,o.y,r.x,r.y)),h&&(h=!1,i=void 0)}},d=0;d<a.length&&(l(a[d]),void 0!==o&&void 0!==r);d++){var h=Konva.Path.getLineLength(o.x,o.y,r.x,r.y),p=0,f=Konva.Path.getPointOnLine(p+h/2,o.x,o.y,r.x,r.y),v=Math.atan2(r.y-o.y,r.x-o.x);this.glyphInfo.push({transposeX:f.x,transposeY:f.y,text:a[d],rotation:v,p0:o,p1:r}),o=r}},getSelfRect:function(){var t=[],e=this.fontSize();this.glyphInfo.forEach(function(e){t.push(e.p0.x),t.push(e.p0.y),t.push(e.p1.x),t.push(e.p1.y)});for(var n,o,r=t[0],i=t[0],a=t[0],s=t[0],c=0;c<t.length/2;c++)n=t[2*c],o=t[2*c+1],r=Math.min(r,n),i=Math.max(i,n),a=Math.min(a,o),s=Math.max(s,o);return{x:Math.round(r)-e,y:Math.round(a)-e,width:Math.round(i-r)+2*e,height:Math.round(s-a)+2*e}}},Konva.TextPath.prototype._getContextFont=Konva.Text.prototype._getContextFont,Konva.Util.extend(Konva.TextPath,Konva.Shape),Konva.Factory.addGetterSetter(Konva.TextPath,"fontFamily","Arial"),Konva.Factory.addGetterSetter(Konva.TextPath,"fontSize",12),Konva.Factory.addGetterSetter(Konva.TextPath,"fontStyle",o),Konva.Factory.addGetterSetter(Konva.TextPath,"letterSpacing",0),Konva.Factory.addGetterSetter(Konva.TextPath,"textBaseline","middle"),Konva.Factory.addGetterSetter(Konva.TextPath,"fontVariant",o),Konva.Factory.addGetter(Konva.TextPath,"text",n),Konva.Collection.mapMethods(Konva.TextPath)}(),function(){"use strict";Konva.RegularPolygon=function(t){this.___init(t)},Konva.RegularPolygon.prototype={_centroid:!0,___init:function(t){Konva.Shape.call(this,t),this.className="RegularPolygon",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var e,n,o,r=this.attrs.sides,i=this.attrs.radius;for(t.beginPath(),t.moveTo(0,0-i),e=1;e<r;e++)n=i*Math.sin(2*e*Math.PI/r),o=-1*i*Math.cos(2*e*Math.PI/r),t.lineTo(n,o);t.closePath(),t.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadius()},getHeight:function(){return 2*this.getRadius()},setWidth:function(t){Konva.Node.prototype.setWidth.call(this,t),this.radius()!==t/2&&this.setRadius(t/2)},setHeight:function(t){Konva.Node.prototype.setHeight.call(this,t),this.radius()!==t/2&&this.setRadius(t/2)}},Konva.Util.extend(Konva.RegularPolygon,Konva.Shape),Konva.Factory.addGetterSetter(Konva.RegularPolygon,"radius",0),Konva.Factory.addGetterSetter(Konva.RegularPolygon,"sides",0),Konva.Collection.mapMethods(Konva.RegularPolygon)}(),function(){"use strict";Konva.Star=function(t){this.___init(t)},Konva.Star.prototype={_centroid:!0,___init:function(t){Konva.Shape.call(this,t),this.className="Star",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var e=this.innerRadius(),n=this.outerRadius(),o=this.numPoints();t.beginPath(),t.moveTo(0,0-n);for(var r=1;r<2*o;r++){var i=r%2===0?n:e,a=i*Math.sin(r*Math.PI/o),s=-1*i*Math.cos(r*Math.PI/o);t.lineTo(a,s)}t.closePath(),t.fillStrokeShape(this)},getWidth:function(){return 2*this.getOuterRadius()},getHeight:function(){return 2*this.getOuterRadius()},setWidth:function(t){Konva.Node.prototype.setWidth.call(this,t),this.outerRadius()!==t/2&&this.setOuterRadius(t/2)},setHeight:function(t){Konva.Node.prototype.setHeight.call(this,t),this.outerRadius()!==t/2&&this.setOuterRadius(t/2)}},Konva.Util.extend(Konva.Star,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Star,"numPoints",5),Konva.Factory.addGetterSetter(Konva.Star,"innerRadius",0),Konva.Factory.addGetterSetter(Konva.Star,"outerRadius",0),Konva.Collection.mapMethods(Konva.Star)}(),function(){"use strict";var t=["fontFamily","fontSize","fontStyle","padding","lineHeight","text"],e="Change.konva",n="none",o="up",r="right",i="down",a="left",s="Label",c=t.length;Konva.Label=function(t){this.____init(t)},Konva.Label.prototype={____init:function(t){var e=this;Konva.Group.call(this,t),this.className=s,this.on("add.konva",function(t){e._addListeners(t.child),e._sync()})},getText:function(){return this.find("Text")[0]},getTag:function(){return this.find("Tag")[0]},_addListeners:function(n){var o,r=this,i=function(){r._sync()};for(o=0;o<c;o++)n.on(t[o]+e,i)},getWidth:function(){return this.getText().getWidth()},getHeight:function(){return this.getText().getHeight()},_sync:function(){var t,e,n,s,c,u,l,d=this.getText(),h=this.getTag();if(d&&h){switch(t=d.getWidth(),e=d.getHeight(),n=h.getPointerDirection(),s=h.getPointerWidth(),l=h.getPointerHeight(),c=0,u=0,n){case o:c=t/2,u=-1*l;break;case r:c=t+s,u=e/2;break;case i:c=t/2,u=e+l;break;case a:c=-1*s,u=e/2}h.setAttrs({x:-1*c,y:-1*u,width:t,height:e}),d.setAttrs({x:-1*c,y:-1*u})}}},Konva.Util.extend(Konva.Label,Konva.Group),Konva.Collection.mapMethods(Konva.Label),Konva.Tag=function(t){this.___init(t)},Konva.Tag.prototype={___init:function(t){Konva.Shape.call(this,t),this.className="Tag",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var e=this.getWidth(),n=this.getHeight(),s=this.getPointerDirection(),c=this.getPointerWidth(),u=this.getPointerHeight(),l=Math.min(this.getCornerRadius(),e/2,n/2);t.beginPath(),l?t.moveTo(l,0):t.moveTo(0,0),s===o&&(t.lineTo((e-c)/2,0),t.lineTo(e/2,-1*u),t.lineTo((e+c)/2,0)),l?(t.lineTo(e-l,0),t.arc(e-l,l,l,3*Math.PI/2,0,!1)):t.lineTo(e,0),s===r&&(t.lineTo(e,(n-u)/2),t.lineTo(e+c,n/2),t.lineTo(e,(n+u)/2)),l?(t.lineTo(e,n-l),t.arc(e-l,n-l,l,0,Math.PI/2,!1)):t.lineTo(e,n),s===i&&(t.lineTo((e+c)/2,n),t.lineTo(e/2,n+u),t.lineTo((e-c)/2,n)),l?(t.lineTo(l,n),t.arc(l,n-l,l,Math.PI/2,Math.PI,!1)):t.lineTo(0,n),s===a&&(t.lineTo(0,(n+u)/2),t.lineTo(-1*c,n/2),t.lineTo(0,(n-u)/2)),l&&(t.lineTo(0,l),t.arc(l,l,l,Math.PI,3*Math.PI/2,!1)),t.closePath(),t.fillStrokeShape(this)},getSelfRect:function(){var t=0,e=0,n=this.getPointerWidth(),s=this.getPointerHeight(),c=this.pointerDirection(),u=this.getWidth(),l=this.getHeight();return c===o?(e-=s,l+=s):c===i?l+=s:c===a?(t-=1.5*n,u+=n):c===r&&(u+=1.5*n),{x:t,y:e,width:u,height:l}}},Konva.Util.extend(Konva.Tag,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Tag,"pointerDirection",n),Konva.Factory.addGetterSetter(Konva.Tag,"pointerWidth",0),Konva.Factory.addGetterSetter(Konva.Tag,"pointerHeight",0),Konva.Factory.addGetterSetter(Konva.Tag,"cornerRadius",0),Konva.Collection.mapMethods(Konva.Tag)}(),function(){"use strict";Konva.Arrow=function(t){this.____init(t)},Konva.Arrow.prototype={____init:function(t){Konva.Line.call(this,t),this.className="Arrow"},_sceneFunc:function(t){Konva.Line.prototype._sceneFunc.apply(this,arguments);var e=2*Math.PI,n=this.points(),o=n.length,r=n[o-2]-n[o-4],i=n[o-1]-n[o-3],a=(Math.atan2(i,r)+e)%e,s=this.pointerLength(),c=this.pointerWidth();t.save(),t.beginPath(),t.translate(n[o-2],n[o-1]),t.rotate(a),t.moveTo(0,0),t.lineTo(-s,c/2),t.lineTo(-s,-c/2),t.closePath(),t.restore(),this.pointerAtBeginning()&&(t.save(),t.translate(n[0],n[1]),r=n[2]-n[0],i=n[3]-n[1],t.rotate((Math.atan2(-i,-r)+e)%e),t.moveTo(0,0),t.lineTo(-s,c/2),t.lineTo(-s,-c/2),t.closePath(),t.restore()),t.fillStrokeShape(this)}},Konva.Util.extend(Konva.Arrow,Konva.Line),Konva.Factory.addGetterSetter(Konva.Arrow,"pointerLength",10),Konva.Factory.addGetterSetter(Konva.Arrow,"pointerWidth",10),Konva.Factory.addGetterSetter(Konva.Arrow,"pointerAtBeginning",!1),Konva.Collection.mapMethods(Konva.Arrow)}()}).call(e,function(){return this}())},function(t,e){"use strict";var n={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:{}};t.exports=n},function(t,e,n){"use strict";var o=n(6),r=n(57),i={focusDOMComponent:function(){r(o.getNodeFromInstance(this))}};t.exports=i},function(t,e,n){"use strict";function o(){var t=window.opera;return"object"==typeof t&&"function"==typeof t.version&&parseInt(t.version(),10)<=12}function r(t){return(t.ctrlKey||t.altKey||t.metaKey)&&!(t.ctrlKey&&t.altKey)}function i(t){switch(t){case"topCompositionStart":return S.compositionStart;case"topCompositionEnd":return S.compositionEnd;case"topCompositionUpdate":return S.compositionUpdate}}function a(t,e){return"topKeyDown"===t&&e.keyCode===_}function s(t,e){switch(t){case"topKeyUp":return y.indexOf(e.keyCode)!==-1;case"topKeyDown":return e.keyCode!==_;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function c(t){var e=t.detail;return"object"==typeof e&&"data"in e?e.data:null}function u(t,e,n,o){var r,u;if(b?r=i(t):O?s(t,n)&&(r=S.compositionEnd):a(t,n)&&(r=S.compositionStart),!r)return null;N&&(O||r!==S.compositionStart?r===S.compositionEnd&&O&&(u=O.getData()):O=v.getPooled(o));var l=g.getPooled(r,e,n,o);if(u)l.data=u;else{var d=c(n);null!==d&&(l.data=d)}return p.accumulateTwoPhaseDispatches(l),l}function l(t,e){switch(t){case"topCompositionEnd":return c(e);case"topKeyPress":var n=e.which;return n!==w?null:(D=!0,x);case"topTextInput":var o=e.data;return o===x&&D?null:o;default:return null}}function d(t,e){if(O){if("topCompositionEnd"===t||!b&&s(t,e)){var n=O.getData();return v.release(O),O=null,n}return null}switch(t){case"topPaste":return null;case"topKeyPress":return e.which&&!r(e)?String.fromCharCode(e.which):null;case"topCompositionEnd":return N?null:e.data;default:return null}}function h(t,e,n,o){var r;if(r=C?l(t,n):d(t,n),!r)return null;var i=m.getPooled(S.beforeInput,e,n,o);return i.data=r,p.accumulateTwoPhaseDispatches(i),i}var p=n(25),f=n(7),v=n(125),g=n(167),m=n(170),y=[9,13,27,32],_=229,b=f.canUseDOM&&"CompositionEvent"in window,E=null;f.canUseDOM&&"documentMode"in document&&(E=document.documentMode);var C=f.canUseDOM&&"TextEvent"in window&&!E&&!o(),N=f.canUseDOM&&(!b||E&&E>8&&E<=11),w=32,x=String.fromCharCode(w),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"]}},D=!1,O=null,T={eventTypes:S,extractEvents:function(t,e,n,o){return[u(t,e,n,o),h(t,e,n,o)]}};t.exports=T},function(t,e,n){(function(e){"use strict";var o=n(59),r=n(7),i=n(9),a=n(101),s=n(177),c=n(108),u=n(111),l=n(3),d=u(function(t){return c(t)}),h=!1,p="cssFloat";if(r.canUseDOM){var f=document.createElement("div").style;try{f.font=""}catch(t){h=!0}void 0===document.documentElement.style.cssFloat&&(p="styleFloat")}if("production"!==e.env.NODE_ENV)var v=/^(?:webkit|moz|o)[A-Z]/,g=/;\s*$/,m={},y={},_=!1,b=function(t,n){m.hasOwnProperty(t)&&m[t]||(m[t]=!0,"production"!==e.env.NODE_ENV?l(!1,"Unsupported style property %s. Did you mean %s?%s",t,a(t),w(n)):void 0)},E=function(t,n){m.hasOwnProperty(t)&&m[t]||(m[t]=!0,"production"!==e.env.NODE_ENV?l(!1,"Unsupported vendor-prefixed style property %s. Did you mean %s?%s",t,t.charAt(0).toUpperCase()+t.slice(1),w(n)):void 0)},C=function(t,n,o){y.hasOwnProperty(n)&&y[n]||(y[n]=!0,"production"!==e.env.NODE_ENV?l(!1,'Style property values shouldn\'t contain a semicolon.%s Try "%s: %s" instead.',w(o),t,n.replace(g,"")):void 0)},N=function(t,n,o){_||(_=!0,"production"!==e.env.NODE_ENV?l(!1,"`NaN` is an invalid value for the `%s` css style property.%s",t,w(o)):void 0)},w=function(t){if(t){var e=t.getName();if(e)return" Check the render method of `"+e+"`."}return""},x=function(t,e,n){var o;n&&(o=n._currentElement._owner),t.indexOf("-")>-1?b(t,o):v.test(t)?E(t,o):g.test(e)&&C(t,e,o),"number"==typeof e&&isNaN(e)&&N(t,e,o)};var S={createMarkupForStyles:function(t,n){var o="";for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];"production"!==e.env.NODE_ENV&&x(r,i,n),null!=i&&(o+=d(r)+":",o+=s(r,i,n)+";")}return o||null},setValueForStyles:function(t,n,r){"production"!==e.env.NODE_ENV&&i.debugTool.onHostOperation({instanceID:r._debugID,type:"update styles",payload:n});var a=t.style;for(var c in n)if(n.hasOwnProperty(c)){"production"!==e.env.NODE_ENV&&x(c,n[c],r);var u=s(c,n[c],r);if("float"!==c&&"cssFloat"!==c||(c=p),u)a[c]=u;else{var l=h&&o.shorthandPropertyExpansions[c];if(l)for(var d in l)a[d]="";else a[c]=""}}}};t.exports=S}).call(e,n(1))},function(t,e,n){"use strict";function o(t){var e=t.nodeName&&t.nodeName.toLowerCase();return"select"===e||"input"===e&&"file"===t.type}function r(t){var e=N.getPooled(D.change,T,t,w(t));_.accumulateTwoPhaseDispatches(e),C.batchedUpdates(i,e)}function i(t){y.enqueueEvents(t),y.processEventQueue(!1)}function a(t,e){O=t,T=e,O.attachEvent("onchange",r)}function s(){O&&(O.detachEvent("onchange",r),O=null,T=null)}function c(t,e){if("topChange"===t)return e}function u(t,e,n){"topFocus"===t?(s(),a(e,n)):"topBlur"===t&&s()}function l(t,e){O=t,T=e,P=t.value,k=Object.getOwnPropertyDescriptor(t.constructor.prototype,"value"),Object.defineProperty(O,"value",R),O.attachEvent?O.attachEvent("onpropertychange",h):O.addEventListener("propertychange",h,!1)}function d(){O&&(delete O.value,O.detachEvent?O.detachEvent("onpropertychange",h):O.removeEventListener("propertychange",h,!1),O=null,T=null,P=null,k=null)}function h(t){if("value"===t.propertyName){var e=t.srcElement.value;e!==P&&(P=e,r(t))}}function p(t,e){if("topInput"===t)return e}function f(t,e,n){"topFocus"===t?(d(),l(e,n)):"topBlur"===t&&d()}function v(t,e){if(("topSelectionChange"===t||"topKeyUp"===t||"topKeyDown"===t)&&O&&O.value!==P)return P=O.value,T}function g(t){return t.nodeName&&"input"===t.nodeName.toLowerCase()&&("checkbox"===t.type||"radio"===t.type)}function m(t,e){if("topClick"===t)return e}var y=n(24),_=n(25),b=n(7),E=n(6),C=n(11),N=n(13),w=n(46),x=n(47),S=n(78),D={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},O=null,T=null,P=null,k=null,I=!1;b.canUseDOM&&(I=x("change")&&(!document.documentMode||document.documentMode>8));var M=!1;b.canUseDOM&&(M=x("input")&&(!document.documentMode||document.documentMode>11));var R={get:function(){return k.get.call(this)},set:function(t){P=""+t,k.set.call(this,t)}},A={eventTypes:D,extractEvents:function(t,e,n,r){var i,a,s=e?E.getNodeFromInstance(e):window;if(o(s)?I?i=c:a=u:S(s)?M?i=p:(i=v,a=f):g(s)&&(i=m),i){var l=i(t,e);if(l){var d=N.getPooled(D.change,l,n,r);return d.type="change",_.accumulateTwoPhaseDispatches(d),d}}a&&a(t,s,e)}};t.exports=A},function(t,e,n){(function(e){"use strict";var o=n(4),r=n(20),i=n(7),a=n(104),s=n(10),c=n(2),u={dangerouslyReplaceNodeWithMarkup:function(t,n){if(i.canUseDOM?void 0:"production"!==e.env.NODE_ENV?c(!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."):o("56"),n?void 0:"production"!==e.env.NODE_ENV?c(!1,"dangerouslyReplaceNodeWithMarkup(...): Missing markup."):o("57"),"HTML"===t.nodeName?"production"!==e.env.NODE_ENV?c(!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()."):o("58"):void 0,"string"==typeof n){var u=a(n,s)[0];t.parentNode.replaceChild(u,t)}else r.replaceChildWithTree(t,n)}};t.exports=u}).call(e,n(1))},function(t,e){"use strict";var n=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];t.exports=n},function(t,e,n){"use strict";var o=n(25),r=n(6),i=n(29),a={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},s={eventTypes:a,extractEvents:function(t,e,n,s){if("topMouseOver"===t&&(n.relatedTarget||n.fromElement))return null;if("topMouseOut"!==t&&"topMouseOver"!==t)return null;var c;if(s.window===s)c=s;else{var u=s.ownerDocument;c=u?u.defaultView||u.parentWindow:window}var l,d;if("topMouseOut"===t){l=e;var h=n.relatedTarget||n.toElement;d=h?r.getClosestInstanceFromNode(h):null}else l=null,d=e;if(l===d)return null;var p=null==l?c:r.getNodeFromInstance(l),f=null==d?c:r.getNodeFromInstance(d),v=i.getPooled(a.mouseLeave,l,n,s);v.type="mouseleave",v.target=p,v.relatedTarget=f;var g=i.getPooled(a.mouseEnter,d,n,s);return g.type="mouseenter",g.target=f,g.relatedTarget=p,o.accumulateEnterLeaveDispatches(v,g,l,d),[v,g]}};t.exports=s},function(t,e,n){"use strict";function o(t){this._root=t,this._startText=this.getText(),this._fallbackText=null}var r=n(5),i=n(16),a=n(76);r(o.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 t,e,n=this._startText,o=n.length,r=this.getText(),i=r.length;for(t=0;t<o&&n[t]===r[t];t++);var a=o-t;for(e=1;e<=a&&n[o-e]===r[i-e];e++);var s=e>1?1-e:void 0;return this._fallbackText=r.slice(t,s),this._fallbackText}}),i.addPoolingTo(o),t.exports=o},function(t,e,n){"use strict";var o=n(15),r=o.injection.MUST_USE_PROPERTY,i=o.injection.HAS_BOOLEAN_VALUE,a=o.injection.HAS_NUMERIC_VALUE,s=o.injection.HAS_POSITIVE_NUMERIC_VALUE,c=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE,u={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+o.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:r|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:r|i,muted:r|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:r|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:{}};t.exports=u},function(t,e,n){(function(e){"use strict";function o(t,o,i,c){var u=void 0===t[i];"production"!==e.env.NODE_ENV&&(r||(r=n(8)),u||("production"!==e.env.NODE_ENV?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(i),r.getStackAddendumByID(c)):void 0)),null!=o&&u&&(t[i]=a(o,!0))}var r,i=n(22),a=n(77),s=n(38),c=n(48),u=n(80),l=n(3);"undefined"!=typeof e&&e.env&&"test"===e.env.NODE_ENV&&(r=n(8));var d={instantiateChildren:function(t,n,r,i){if(null==t)return null;var a={};return"production"!==e.env.NODE_ENV?u(t,function(t,e,n){return o(t,e,n,i)},a):u(t,o,a),a},updateChildren:function(t,e,n,o,r,s,u,l,d){if(e||t){var h,p;for(h in e)if(e.hasOwnProperty(h)){p=t&&t[h];var f=p&&p._currentElement,v=e[h];if(null!=p&&c(f,v))i.receiveComponent(p,v,r,l),e[h]=p;else{p&&(o[h]=i.getHostNode(p),i.unmountComponent(p,!1));var g=a(v,!0);e[h]=g;var m=i.mountComponent(g,r,s,u,l,d);n.push(m)}}for(h in t)!t.hasOwnProperty(h)||e&&e.hasOwnProperty(h)||(p=t[h],o[h]=i.getHostNode(p),i.unmountComponent(p,!1))}},unmountChildren:function(t,e){for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];i.unmountComponent(o,e)}}};t.exports=d}).call(e,n(1))},function(t,e,n){"use strict";var o=n(35),r=n(135),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup};t.exports=i},function(t,e,n){(function(e){"use strict";function o(t){}function r(t,n){"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?N(null===n||n===!1||l.isValidElement(n),"%s(...): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.",t.displayName||t.name||"Component"):void 0,"production"!==e.env.NODE_ENV?N(!t.childContextTypes,"%s(...): childContextTypes cannot be defined on a functional component.",t.displayName||t.name||"Component"):void 0)}function i(t){return!(!t.prototype||!t.prototype.isReactComponent)}function a(t){return!(!t.prototype||!t.prototype.isPureReactComponent)}function s(t,e,n){if(0===e)return t();v.debugTool.onBeginLifeCycleTimer(e,n);try{return t()}finally{v.debugTool.onEndLifeCycleTimer(e,n)}}var c=n(4),u=n(5),l=n(17),d=n(40),h=n(12),p=n(41),f=n(21),v=n(9),g=n(70),m=n(22);if("production"!==e.env.NODE_ENV)var y=n(176);var _=n(23),b=n(2),E=n(33),C=n(48),N=n(3),w={ImpureClass:0,PureClass:1,StatelessFunctional:2};o.prototype.render=function(){var t=f.get(this)._currentElement.type,e=t(this.props,this.context,this.updater);return r(t,e),e};var x=1,S={construct:function(t){this._currentElement=t,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1,"production"!==e.env.NODE_ENV&&(this._warnedAboutRefsInRender=!1)},mountComponent:function(t,n,u,d){var h=this;this._context=d,this._mountOrder=x++,this._hostParent=n,this._hostContainerInfo=u;var p,v=this._currentElement.props,g=this._processContext(d),m=this._currentElement.type,y=t.getUpdateQueue(),E=i(m),C=this._constructComponent(E,v,g,y);if(E||null!=C&&null!=C.render?a(m)?this._compositeType=w.PureClass:this._compositeType=w.ImpureClass:(p=C,r(m,p),null===C||C===!1||l.isValidElement(C)?void 0:"production"!==e.env.NODE_ENV?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"):c("105",m.displayName||m.name||"Component"),C=new o(m),this._compositeType=w.StatelessFunctional),"production"!==e.env.NODE_ENV){null==C.render&&("production"!==e.env.NODE_ENV?N(!1,"%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",m.displayName||m.name||"Component"):void 0);
  var S=C.props!==v,D=m.displayName||m.name||"Component";"production"!==e.env.NODE_ENV?N(void 0===C.props||!S,"%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",D,D):void 0}C.props=v,C.context=g,C.refs=_,C.updater=y,this._instance=C,f.set(C,this),"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?N(!C.getInitialState||C.getInitialState.isReactClassApproved,"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"):void 0,"production"!==e.env.NODE_ENV?N(!C.getDefaultProps||C.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"):void 0,"production"!==e.env.NODE_ENV?N(!C.propTypes,"propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",this.getName()||"a component"):void 0,"production"!==e.env.NODE_ENV?N(!C.contextTypes,"contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",this.getName()||"a component"):void 0,"production"!==e.env.NODE_ENV?N("function"!=typeof C.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"):void 0,"production"!==e.env.NODE_ENV?N("function"!=typeof C.componentDidUnmount,"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",this.getName()||"A component"):void 0,"production"!==e.env.NODE_ENV?N("function"!=typeof C.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",this.getName()||"A component"):void 0);var O=C.state;void 0===O&&(C.state=O=null),"object"!=typeof O||Array.isArray(O)?"production"!==e.env.NODE_ENV?b(!1,"%s.state: must be set to an object or null",this.getName()||"ReactCompositeComponent"):c("106",this.getName()||"ReactCompositeComponent"):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var T;return T=C.unstable_handleError?this.performInitialMountWithErrorHandling(p,n,u,t,d):this.performInitialMount(p,n,u,t,d),C.componentDidMount&&("production"!==e.env.NODE_ENV?t.getReactMountReady().enqueue(function(){s(function(){return C.componentDidMount()},h._debugID,"componentDidMount")}):t.getReactMountReady().enqueue(C.componentDidMount,C)),T},_constructComponent:function(t,n,o,r){if("production"===e.env.NODE_ENV)return this._constructComponentWithoutOwner(t,n,o,r);h.current=this;try{return this._constructComponentWithoutOwner(t,n,o,r)}finally{h.current=null}},_constructComponentWithoutOwner:function(t,n,o,r){var i=this._currentElement.type;return t?"production"!==e.env.NODE_ENV?s(function(){return new i(n,o,r)},this._debugID,"ctor"):new i(n,o,r):"production"!==e.env.NODE_ENV?s(function(){return i(n,o,r)},this._debugID,"render"):i(n,o,r)},performInitialMountWithErrorHandling:function(t,e,n,o,r){var i,a=o.checkpoint();try{i=this.performInitialMount(t,e,n,o,r)}catch(s){o.rollback(a),this._instance.unstable_handleError(s),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),a=o.checkpoint(),this._renderedComponent.unmountComponent(!0),o.rollback(a),i=this.performInitialMount(t,e,n,o,r)}return i},performInitialMount:function(t,n,o,r,i){var a=this._instance,c=0;"production"!==e.env.NODE_ENV&&(c=this._debugID),a.componentWillMount&&("production"!==e.env.NODE_ENV?s(function(){return a.componentWillMount()},c,"componentWillMount"):a.componentWillMount(),this._pendingStateQueue&&(a.state=this._processPendingState(a.props,a.context))),void 0===t&&(t=this._renderValidatedComponent());var u=g.getType(t);this._renderedNodeType=u;var l=this._instantiateReactComponent(t,u!==g.EMPTY);this._renderedComponent=l;var d=m.mountComponent(l,r,n,o,this._processChildContext(i),c);if("production"!==e.env.NODE_ENV&&0!==c){var h=0!==l._debugID?[l._debugID]:[];v.debugTool.onSetChildren(c,h)}return d},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(t){if(this._renderedComponent){var n=this._instance;if(n.componentWillUnmount&&!n._calledComponentWillUnmount)if(n._calledComponentWillUnmount=!0,t){var o=this.getName()+".componentWillUnmount()";p.invokeGuardedCallback(o,n.componentWillUnmount.bind(n))}else"production"!==e.env.NODE_ENV?s(function(){return n.componentWillUnmount()},this._debugID,"componentWillUnmount"):n.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,t),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,f.remove(n)}},_maskContext:function(t){var e=this._currentElement.type,n=e.contextTypes;if(!n)return _;var o={};for(var r in n)o[r]=t[r];return o},_processContext:function(t){var n=this._maskContext(t);if("production"!==e.env.NODE_ENV){var o=this._currentElement.type;o.contextTypes&&this._checkContextTypes(o.contextTypes,n,"context")}return n},_processChildContext:function(t){var n,o=this._currentElement.type,r=this._instance;if(r.getChildContext)if("production"!==e.env.NODE_ENV){v.debugTool.onBeginProcessingChildContext();try{n=r.getChildContext()}finally{v.debugTool.onEndProcessingChildContext()}}else n=r.getChildContext();if(n){"object"!=typeof o.childContextTypes?"production"!==e.env.NODE_ENV?b(!1,"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",this.getName()||"ReactCompositeComponent"):c("107",this.getName()||"ReactCompositeComponent"):void 0,"production"!==e.env.NODE_ENV&&this._checkContextTypes(o.childContextTypes,n,"childContext");for(var i in n)i in o.childContextTypes?void 0:"production"!==e.env.NODE_ENV?b(!1,'%s.getChildContext(): key "%s" is not defined in childContextTypes.',this.getName()||"ReactCompositeComponent",i):c("108",this.getName()||"ReactCompositeComponent",i);return u({},t,n)}return t},_checkContextTypes:function(t,n,o){"production"!==e.env.NODE_ENV&&y(t,n,o,this.getName(),null,this._debugID)},receiveComponent:function(t,e,n){var o=this._currentElement,r=this._context;this._pendingElement=null,this.updateComponent(e,o,t,r,n)},performUpdateIfNecessary:function(t){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,t,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(t,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(t,n,o,r,i){var a=this._instance;null==a?"production"!==e.env.NODE_ENV?b(!1,"Attempted to update component `%s` that has already been unmounted (or failed to mount).",this.getName()||"ReactCompositeComponent"):c("136",this.getName()||"ReactCompositeComponent"):void 0;var u,l=!1;this._context===i?u=a.context:(u=this._processContext(i),l=!0);var d=n.props,h=o.props;n!==o&&(l=!0),l&&a.componentWillReceiveProps&&("production"!==e.env.NODE_ENV?s(function(){return a.componentWillReceiveProps(h,u)},this._debugID,"componentWillReceiveProps"):a.componentWillReceiveProps(h,u));var p=this._processPendingState(h,u),f=!0;this._pendingForceUpdate||(a.shouldComponentUpdate?f="production"!==e.env.NODE_ENV?s(function(){return a.shouldComponentUpdate(h,p,u)},this._debugID,"shouldComponentUpdate"):a.shouldComponentUpdate(h,p,u):this._compositeType===w.PureClass&&(f=!E(d,h)||!E(a.state,p))),"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?N(void 0!==f,"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",this.getName()||"ReactCompositeComponent"):void 0),this._updateBatchNumber=null,f?(this._pendingForceUpdate=!1,this._performComponentUpdate(o,h,p,u,t,i)):(this._currentElement=o,this._context=i,a.props=h,a.state=p,a.context=u)},_processPendingState:function(t,e){var n=this._instance,o=this._pendingStateQueue,r=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!o)return n.state;if(r&&1===o.length)return o[0];for(var i=u({},r?o[0]:n.state),a=r?1:0;a<o.length;a++){var s=o[a];u(i,"function"==typeof s?s.call(n,i,t,e):s)}return i},_performComponentUpdate:function(t,n,o,r,i,a){var c,u,l,d=this,h=this._instance,p=Boolean(h.componentDidUpdate);p&&(c=h.props,u=h.state,l=h.context),h.componentWillUpdate&&("production"!==e.env.NODE_ENV?s(function(){return h.componentWillUpdate(n,o,r)},this._debugID,"componentWillUpdate"):h.componentWillUpdate(n,o,r)),this._currentElement=t,this._context=a,h.props=n,h.state=o,h.context=r,this._updateRenderedComponent(i,a),p&&("production"!==e.env.NODE_ENV?i.getReactMountReady().enqueue(function(){s(h.componentDidUpdate.bind(h,c,u,l),d._debugID,"componentDidUpdate")}):i.getReactMountReady().enqueue(h.componentDidUpdate.bind(h,c,u,l),h))},_updateRenderedComponent:function(t,n){var o=this._renderedComponent,r=o._currentElement,i=this._renderValidatedComponent(),a=0;if("production"!==e.env.NODE_ENV&&(a=this._debugID),C(r,i))m.receiveComponent(o,i,t,this._processChildContext(n));else{var s=m.getHostNode(o);m.unmountComponent(o,!1);var c=g.getType(i);this._renderedNodeType=c;var u=this._instantiateReactComponent(i,c!==g.EMPTY);this._renderedComponent=u;var l=m.mountComponent(u,t,this._hostParent,this._hostContainerInfo,this._processChildContext(n),a);if("production"!==e.env.NODE_ENV&&0!==a){var d=0!==u._debugID?[u._debugID]:[];v.debugTool.onSetChildren(a,d)}this._replaceNodeWithMarkup(s,l,o)}},_replaceNodeWithMarkup:function(t,e,n){d.replaceNodeWithMarkup(t,e,n)},_renderValidatedComponentWithoutOwnerOrContext:function(){var t,n=this._instance;return t="production"!==e.env.NODE_ENV?s(function(){return n.render()},this._debugID,"render"):n.render(),"production"!==e.env.NODE_ENV&&void 0===t&&n.render._isMockFunction&&(t=null),t},_renderValidatedComponent:function(){var t;if("production"!==e.env.NODE_ENV||this._compositeType!==w.StatelessFunctional){h.current=this;try{t=this._renderValidatedComponentWithoutOwnerOrContext()}finally{h.current=null}}else t=this._renderValidatedComponentWithoutOwnerOrContext();return null===t||t===!1||l.isValidElement(t)?void 0:"production"!==e.env.NODE_ENV?b(!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"):c("109",this.getName()||"ReactCompositeComponent"),t},attachRef:function(t,n){var o=this.getPublicInstance();null==o?"production"!==e.env.NODE_ENV?b(!1,"Stateless function components cannot have refs."):c("110"):void 0;var r=n.getPublicInstance();if("production"!==e.env.NODE_ENV){var i=n&&n.getName?n.getName():"a component";"production"!==e.env.NODE_ENV?N(null!=r||n._compositeType!==w.StatelessFunctional,'Stateless function components cannot be given refs (See ref "%s" in %s created by %s). Attempts to access this ref will fail.',t,i,this.getName()):void 0}var a=o.refs===_?o.refs={}:o.refs;a[t]=r},detachRef:function(t){var e=this.getPublicInstance().refs;delete e[t]},getName:function(){var t=this._currentElement.type,e=this._instance&&this._instance.constructor;return t.displayName||e&&e.displayName||t.name||e&&e.name||null},getPublicInstance:function(){var t=this._instance;return this._compositeType===w.StatelessFunctional?null:t},_instantiateReactComponent:null};t.exports=S}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var o=n(6),r=n(147),i=n(68),a=n(22),s=n(11),c=n(161),u=n(178),l=n(75),d=n(186),h=n(3);r.inject();var p={findDOMNode:u,render:i.render,unmountComponentAtNode:i.unmountComponentAtNode,version:c,unstable_batchedUpdates:s.batchedUpdates,unstable_renderSubtreeIntoContainer:d};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:o.getClosestInstanceFromNode,getNodeFromInstance:function(t){return t._renderedComponent&&(t=l(t)),t?o.getNodeFromInstance(t):null}},Mount:i,Reconciler:a}),"production"!==e.env.NODE_ENV){var f=n(7);if(f.canUseDOM&&window.top===window.self){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var v=window.location.protocol.indexOf("http")===-1&&navigator.userAgent.indexOf("Firefox")===-1;console.debug("Download the React DevTools "+(v?"and use an HTTP server (instead of a file: URL) ":"")+"for a better development experience: https://fb.me/react-devtools")}var g=function(){};"production"!==e.env.NODE_ENV?h((g.name||g.toString()).indexOf("testFn")!==-1,"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."):void 0;var m=document.documentMode&&document.documentMode<8;"production"!==e.env.NODE_ENV?h(!m,'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" />'):void 0;for(var y=[Array.isArray,Array.prototype.every,Array.prototype.forEach,Array.prototype.indexOf,Array.prototype.map,Date.now,Function.prototype.bind,Object.keys,String.prototype.trim],_=0;_<y.length;_++)if(!y[_]){"production"!==e.env.NODE_ENV?h(!1,"One or more ES5 shims expected by React are not available: https://fb.me/react-warning-polyfills"):void 0;break}}}if("production"!==e.env.NODE_ENV){var b=n(9),E=n(144),C=n(138),N=n(137);b.debugTool.addHook(E),b.debugTool.addHook(C),b.debugTool.addHook(N)}t.exports=p}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t){if(t){var e=t._currentElement._owner||null;if(e){var n=e.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}function r(t){if("object"==typeof t){if(Array.isArray(t))return"["+t.map(r).join(", ")+"]";var e=[];for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var o=/^[a-z$_][\w$_]*$/i.test(n)?n:JSON.stringify(n);e.push(o+": "+r(t[n]))}return"{"+e.join(", ")+"}"}return"string"==typeof t?JSON.stringify(t):"function"==typeof t?"[function object]":String(t)}function i(t,n,o){if(null!=t&&null!=n&&!j(t,n)){var i,a=o._tag,s=o._currentElement._owner;s&&(i=s.getName());var c=i+"|"+a;tt.hasOwnProperty(c)||(tt[c]=!0,"production"!==e.env.NODE_ENV?G(!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.",a,s?"of `"+i+"`":"using <"+a+">",r(t),r(n)):void 0)}}function a(t,n){n&&(it[t._tag]&&(null!=n.children||null!=n.dangerouslySetInnerHTML?"production"!==e.env.NODE_ENV?L(!1,"%s is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.%s",t._tag,t._currentElement._owner?" Check the render method of "+t._currentElement._owner.getName()+".":""):m("137",t._tag,t._currentElement._owner?" Check the render method of "+t._currentElement._owner.getName()+".":""):void 0),null!=n.dangerouslySetInnerHTML&&(null!=n.children?"production"!==e.env.NODE_ENV?L(!1,"Can only set one of `children` or `props.dangerouslySetInnerHTML`."):m("60"):void 0,"object"==typeof n.dangerouslySetInnerHTML&&$ in n.dangerouslySetInnerHTML?void 0:"production"!==e.env.NODE_ENV?L(!1,"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information."):m("61")),"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?G(null==n.innerHTML,"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."):void 0,"production"!==e.env.NODE_ENV?G(n.suppressContentEditableWarning||!n.contentEditable||null==n.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."):void 0,"production"!==e.env.NODE_ENV?G(null==n.onFocusIn&&null==n.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."):void 0),null!=n.style&&"object"!=typeof n.style?"production"!==e.env.NODE_ENV?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",o(t)):m("62",o(t)):void 0)}function s(t,n,o,r){if(!(r instanceof K)){"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?G("onScroll"!==n||U("scroll",!0),"This browser doesn't support the `onScroll` event"):void 0);var i=t._hostContainerInfo,a=i._node&&i._node.nodeType===Z,s=a?i._node:i._ownerDocument;z(n,s),r.getReactMountReady().enqueue(c,{inst:t,registrationName:n,listener:o})}}function c(){var t=this;x.putListener(t.inst,t.registrationName,t.listener)}function u(){var t=this;P.postMountWrapper(t)}function l(){var t=this;M.postMountWrapper(t)}function d(){var t=this;k.postMountWrapper(t)}function h(){var t=this;t._rootNodeID?void 0:"production"!==e.env.NODE_ENV?L(!1,"Must be mounted to trap events"):m("63");var n=q(t);switch(n?void 0:"production"!==e.env.NODE_ENV?L(!1,"trapBubbledEvent(...): Requires node to be rendered."):m("64"),t._tag){case"iframe":case"object":t._wrapperState.listeners=[D.trapBubbledEvent("topLoad","load",n)];break;case"video":case"audio":t._wrapperState.listeners=[];for(var o in nt)nt.hasOwnProperty(o)&&t._wrapperState.listeners.push(D.trapBubbledEvent(o,nt[o],n));break;case"source":t._wrapperState.listeners=[D.trapBubbledEvent("topError","error",n)];break;case"img":t._wrapperState.listeners=[D.trapBubbledEvent("topError","error",n),D.trapBubbledEvent("topLoad","load",n)];break;case"form":t._wrapperState.listeners=[D.trapBubbledEvent("topReset","reset",n),D.trapBubbledEvent("topSubmit","submit",n)];break;case"input":case"select":case"textarea":t._wrapperState.listeners=[D.trapBubbledEvent("topInvalid","invalid",n)]}}function p(){I.postUpdateWrapper(this)}function f(t){ct.call(st,t)||(at.test(t)?void 0:"production"!==e.env.NODE_ENV?L(!1,"Invalid tag: %s",t):m("65",t),st[t]=!0)}function v(t,e){return t.indexOf("-")>=0||null!=e.is}function g(t){var n=t.type;f(n),this._currentElement=t,this._tag=n.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,"production"!==e.env.NODE_ENV&&(this._ancestorInfo=null,et.call(this,null))}var m=n(4),y=n(5),_=n(118),b=n(120),E=n(20),C=n(36),N=n(15),w=n(61),x=n(24),S=n(27),D=n(28),O=n(62),T=n(6),P=n(136),k=n(139),I=n(63),M=n(142),R=n(9),A=n(69),K=n(159),F=n(10),V=n(31),L=n(2),U=n(47),j=n(33),B=n(49),G=n(3),H=O,W=x.deleteListener,q=T.getNodeFromInstance,z=D.listenTo,Y=S.registrationNameModules,X={string:!0,number:!0},Q="style",$="__html",J={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},Z=11,tt={},et=F;"production"!==e.env.NODE_ENV&&(et=function(t){var e=null!=this._contentDebugID,n=this._debugID,o=-n;return null==t?(e&&R.debugTool.onUnmountComponent(this._contentDebugID),void(this._contentDebugID=null)):(B(null,String(t),this,this._ancestorInfo),this._contentDebugID=o,void(e?(R.debugTool.onBeforeUpdateComponent(o,t),R.debugTool.onUpdateComponent(o)):(R.debugTool.onBeforeMountComponent(o,t,n),R.debugTool.onMountComponent(o),R.debugTool.onSetChildren(n,[o]))))});var nt={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"},ot={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},rt={listing:!0,pre:!0,textarea:!0},it=y({menuitem:!0},ot),at=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,st={},ct={}.hasOwnProperty,ut=1;g.displayName="ReactDOMComponent",g.Mixin={mountComponent:function(t,n,o,r){this._rootNodeID=ut++,this._domID=o._idCounter++,this._hostParent=n,this._hostContainerInfo=o;var i=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},t.getReactMountReady().enqueue(h,this);break;case"input":P.mountWrapper(this,i,n),i=P.getHostProps(this,i),t.getReactMountReady().enqueue(h,this);break;case"option":k.mountWrapper(this,i,n),i=k.getHostProps(this,i);break;case"select":I.mountWrapper(this,i,n),i=I.getHostProps(this,i),t.getReactMountReady().enqueue(h,this);break;case"textarea":M.mountWrapper(this,i,n),i=M.getHostProps(this,i),t.getReactMountReady().enqueue(h,this)}a(this,i);var s,c;if(null!=n?(s=n._namespaceURI,c=n._tag):o._tag&&(s=o._namespaceURI,c=o._tag),(null==s||s===C.svg&&"foreignobject"===c)&&(s=C.html),s===C.html&&("svg"===this._tag?s=C.svg:"math"===this._tag&&(s=C.mathml)),this._namespaceURI=s,"production"!==e.env.NODE_ENV){var p;null!=n?p=n._ancestorInfo:o._tag&&(p=o._ancestorInfo),p&&B(this._tag,null,this,p),this._ancestorInfo=B.updatedAncestorInfo(p,this._tag,this)}var f;if(t.useCreateElement){var v,g=o._ownerDocument;if(s===C.html)if("script"===this._tag){var m=g.createElement("div"),y=this._currentElement.type;m.innerHTML="<"+y+"></"+y+">",v=m.removeChild(m.firstChild)}else v=i.is?g.createElement(this._currentElement.type,i.is):g.createElement(this._currentElement.type);else v=g.createElementNS(s,this._currentElement.type);T.precacheNode(this,v),this._flags|=H.hasCachedChildNodes,this._hostParent||w.setAttributeForRoot(v),this._updateDOMProperties(null,i,t);var b=E(v);this._createInitialChildren(t,i,r,b),f=b}else{var N=this._createOpenTagMarkupAndPutListeners(t,i),x=this._createContentMarkup(t,i,r);f=!x&&ot[this._tag]?N+"/>":N+">"+x+"</"+this._currentElement.type+">"}switch(this._tag){case"input":t.getReactMountReady().enqueue(u,this),i.autoFocus&&t.getReactMountReady().enqueue(_.focusDOMComponent,this);break;case"textarea":t.getReactMountReady().enqueue(l,this),i.autoFocus&&t.getReactMountReady().enqueue(_.focusDOMComponent,this);break;case"select":i.autoFocus&&t.getReactMountReady().enqueue(_.focusDOMComponent,this);break;case"button":i.autoFocus&&t.getReactMountReady().enqueue(_.focusDOMComponent,this);break;case"option":t.getReactMountReady().enqueue(d,this)}return f},_createOpenTagMarkupAndPutListeners:function(t,n){var o="<"+this._currentElement.type;for(var r in n)if(n.hasOwnProperty(r)){var i=n[r];if(null!=i)if(Y.hasOwnProperty(r))i&&s(this,r,i,t);else{r===Q&&(i&&("production"!==e.env.NODE_ENV&&(this._previousStyle=i),i=this._previousStyleCopy=y({},n.style)),i=b.createMarkupForStyles(i,this));var a=null;null!=this._tag&&v(this._tag,n)?J.hasOwnProperty(r)||(a=w.createMarkupForCustomAttribute(r,i)):a=w.createMarkupForProperty(r,i),a&&(o+=" "+a)}}return t.renderToStaticMarkup?o:(this._hostParent||(o+=" "+w.createMarkupForRoot()),o+=" "+w.createMarkupForID(this._domID))},_createContentMarkup:function(t,n,o){var r="",i=n.dangerouslySetInnerHTML;if(null!=i)null!=i.__html&&(r=i.__html);else{var a=X[typeof n.children]?n.children:null,s=null!=a?null:n.children;if(null!=a)r=V(a),"production"!==e.env.NODE_ENV&&et.call(this,a);else if(null!=s){var c=this.mountChildren(s,t,o);r=c.join("")}}return rt[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(t,n,o,r){var i=n.dangerouslySetInnerHTML;if(null!=i)null!=i.__html&&E.queueHTML(r,i.__html);else{var a=X[typeof n.children]?n.children:null,s=null!=a?null:n.children;if(null!=a)"production"!==e.env.NODE_ENV&&et.call(this,a),E.queueText(r,a);else if(null!=s)for(var c=this.mountChildren(s,t,o),u=0;u<c.length;u++)E.queueChild(r,c[u])}},receiveComponent:function(t,e,n){var o=this._currentElement;this._currentElement=t,this.updateComponent(e,o,t,n)},updateComponent:function(t,e,n,o){var r=e.props,i=this._currentElement.props;switch(this._tag){case"input":r=P.getHostProps(this,r),i=P.getHostProps(this,i);break;case"option":r=k.getHostProps(this,r),i=k.getHostProps(this,i);break;case"select":r=I.getHostProps(this,r),i=I.getHostProps(this,i);break;case"textarea":r=M.getHostProps(this,r),i=M.getHostProps(this,i)}switch(a(this,i),this._updateDOMProperties(r,i,t),this._updateDOMChildren(r,i,t,o),this._tag){case"input":P.updateWrapper(this);break;case"textarea":M.updateWrapper(this);break;case"select":t.getReactMountReady().enqueue(p,this)}},_updateDOMProperties:function(t,n,o){var r,a,c;for(r in t)if(!n.hasOwnProperty(r)&&t.hasOwnProperty(r)&&null!=t[r])if(r===Q){var u=this._previousStyleCopy;for(a in u)u.hasOwnProperty(a)&&(c=c||{},c[a]="");this._previousStyleCopy=null}else Y.hasOwnProperty(r)?t[r]&&W(this,r):v(this._tag,t)?J.hasOwnProperty(r)||w.deleteValueForAttribute(q(this),r):(N.properties[r]||N.isCustomAttribute(r))&&w.deleteValueForProperty(q(this),r);for(r in n){var l=n[r],d=r===Q?this._previousStyleCopy:null!=t?t[r]:void 0;if(n.hasOwnProperty(r)&&l!==d&&(null!=l||null!=d))if(r===Q)if(l?("production"!==e.env.NODE_ENV&&(i(this._previousStyleCopy,this._previousStyle,this),this._previousStyle=l),l=this._previousStyleCopy=y({},l)):this._previousStyleCopy=null,d){for(a in d)!d.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(c=c||{},c[a]="");for(a in l)l.hasOwnProperty(a)&&d[a]!==l[a]&&(c=c||{},c[a]=l[a])}else c=l;else if(Y.hasOwnProperty(r))l?s(this,r,l,o):d&&W(this,r);else if(v(this._tag,n))J.hasOwnProperty(r)||w.setValueForAttribute(q(this),r,l);else if(N.properties[r]||N.isCustomAttribute(r)){var h=q(this);null!=l?w.setValueForProperty(h,r,l):w.deleteValueForProperty(h,r)}}c&&b.setValueForStyles(q(this),c,this)},_updateDOMChildren:function(t,n,o,r){var i=X[typeof t.children]?t.children:null,a=X[typeof n.children]?n.children:null,s=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,c=n.dangerouslySetInnerHTML&&n.dangerouslySetInnerHTML.__html,u=null!=i?null:t.children,l=null!=a?null:n.children,d=null!=i||null!=s,h=null!=a||null!=c;null!=u&&null==l?this.updateChildren(null,o,r):d&&!h&&(this.updateTextContent(""),"production"!==e.env.NODE_ENV&&R.debugTool.onSetChildren(this._debugID,[])),null!=a?i!==a&&(this.updateTextContent(""+a),"production"!==e.env.NODE_ENV&&et.call(this,a)):null!=c?(s!==c&&this.updateMarkup(""+c),"production"!==e.env.NODE_ENV&&R.debugTool.onSetChildren(this._debugID,[])):null!=l&&("production"!==e.env.NODE_ENV&&et.call(this,null),this.updateChildren(l,o,r))},getHostNode:function(){return q(this)},unmountComponent:function(t){switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":var n=this._wrapperState.listeners;if(n)for(var o=0;o<n.length;o++)n[o].remove();break;case"html":case"head":case"body":"production"!==e.env.NODE_ENV?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):m("66",this._tag)}this.unmountChildren(t),T.uncacheNode(this),x.deleteAllListeners(this),this._rootNodeID=0,this._domID=0,this._wrapperState=null,"production"!==e.env.NODE_ENV&&et.call(this,null)},getPublicInstance:function(){return q(this)}},y(g.prototype,g.Mixin,A.Mixin),t.exports=g}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t,n){var o={_topLevelWrapper:t,_idCounter:1,_ownerDocument:n?n.nodeType===i?n:n.ownerDocument:null,_node:n,_tag:n?n.nodeName.toLowerCase():null,_namespaceURI:n?n.namespaceURI:null};return"production"!==e.env.NODE_ENV&&(o._ancestorInfo=n?r.updatedAncestorInfo(null,o._tag,null):null),o}var r=n(49),i=9;t.exports=o}).call(e,n(1))},function(t,e,n){"use strict";var o=n(5),r=n(20),i=n(6),a=function(t){this._currentElement=null,this._hostNode=null,this._hostParent=null,this._hostContainerInfo=null,this._domID=0};o(a.prototype,{mountComponent:function(t,e,n,o){var a=n._idCounter++;this._domID=a,this._hostParent=e,this._hostContainerInfo=n;var s=" react-empty: "+this._domID+" ";if(t.useCreateElement){var c=n._ownerDocument,u=c.createComment(s);return i.precacheNode(this,u),r(u)}return t.renderToStaticMarkup?"":"<!--"+s+"-->"},receiveComponent:function(){},getHostNode:function(){return i.getNodeFromInstance(this)},unmountComponent:function(){i.uncacheNode(this)}}),t.exports=a},function(t,e){"use strict";var n={useCreateElement:!0,useFiber:!1};t.exports=n},function(t,e,n){"use strict";var o=n(35),r=n(6),i={dangerouslyProcessChildrenUpdates:function(t,e){var n=r.getNodeFromInstance(t);o.processUpdates(n,e)}};t.exports=i},function(t,e,n){(function(e){"use strict";function o(){this._rootNodeID&&b.updateWrapper(this)}function r(t){var e="checkbox"===t.type||"radio"===t.type;return e?null!=t.checked:null!=t.value}function i(t){var n=this._currentElement.props,r=u.executeOnChange(n,t);d.asap(o,this);var i=n.name;if("radio"===n.type&&null!=i){for(var s=l.getNodeFromInstance(this),c=s;c.parentNode;)c=c.parentNode;for(var p=c.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),f=0;f<p.length;f++){var v=p[f];if(v!==s&&v.form===s.form){var g=l.getInstanceFromNode(v);g?void 0:"production"!==e.env.NODE_ENV?h(!1,"ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported."):a("90"),d.asap(o,g)}}}return r}var a=n(4),s=n(5),c=n(61),u=n(39),l=n(6),d=n(11),h=n(2),p=n(3),f=!1,v=!1,g=!1,m=!1,y=!1,_=!1,b={getHostProps:function(t,e){var n=u.getValue(e),o=u.getChecked(e),r=s({type:void 0,step:void 0,min:void 0,max:void 0},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:t._wrapperState.initialValue,checked:null!=o?o:t._wrapperState.initialChecked,onChange:t._wrapperState.onChange});return r},mountWrapper:function(t,n){if("production"!==e.env.NODE_ENV){u.checkPropTypes("input",n,t._currentElement._owner);var o=t._currentElement._owner;void 0===n.valueLink||f||("production"!==e.env.NODE_ENV?p(!1,"`valueLink` prop on `input` is deprecated; set `value` and `onChange` instead."):void 0,f=!0),void 0===n.checkedLink||v||("production"!==e.env.NODE_ENV?p(!1,"`checkedLink` prop on `input` is deprecated; set `value` and `onChange` instead."):void 0,v=!0),void 0===n.checked||void 0===n.defaultChecked||m||("production"!==e.env.NODE_ENV?p(!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",o&&o.getName()||"A component",n.type):void 0,m=!0),void 0===n.value||void 0===n.defaultValue||g||("production"!==e.env.NODE_ENV?p(!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",o&&o.getName()||"A component",n.type):void 0,
  g=!0)}var a=n.defaultValue;t._wrapperState={initialChecked:null!=n.checked?n.checked:n.defaultChecked,initialValue:null!=n.value?n.value:a,listeners:null,onChange:i.bind(t)},"production"!==e.env.NODE_ENV&&(t._wrapperState.controlled=r(n))},updateWrapper:function(t){var n=t._currentElement.props;if("production"!==e.env.NODE_ENV){var o=r(n),i=t._currentElement._owner;t._wrapperState.controlled||!o||_||("production"!==e.env.NODE_ENV?p(!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",i&&i.getName()||"A component",n.type):void 0,_=!0),!t._wrapperState.controlled||o||y||("production"!==e.env.NODE_ENV?p(!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",i&&i.getName()||"A component",n.type):void 0,y=!0)}var a=n.checked;null!=a&&c.setValueForProperty(l.getNodeFromInstance(t),"checked",a||!1);var s=l.getNodeFromInstance(t),d=u.getValue(n);if(null!=d){var h=""+d;h!==s.value&&(s.value=h)}else null==n.value&&null!=n.defaultValue&&(s.defaultValue=""+n.defaultValue),null==n.checked&&null!=n.defaultChecked&&(s.defaultChecked=!!n.defaultChecked)},postMountWrapper:function(t){var e=t._currentElement.props,n=l.getNodeFromInstance(t);switch(e.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 o=n.name;""!==o&&(n.name=""),n.defaultChecked=!n.defaultChecked,n.defaultChecked=!n.defaultChecked,""!==o&&(n.name=o)}};t.exports=b}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t,n,o){if(u.hasOwnProperty(n)&&u[n])return!0;if(l.test(n)){var r=n.toLowerCase(),i=a.getPossibleStandardName.hasOwnProperty(r)?a.getPossibleStandardName[r]:null;if(null==i)return u[n]=!0,!1;if(n!==i)return"production"!==e.env.NODE_ENV?c(!1,"Unknown ARIA attribute %s. Did you mean %s?%s",n,i,s.getStackAddendumByID(o)):void 0,u[n]=!0,!0}return!0}function r(t,n){var r=[];for(var i in n.props){var a=o(n.type,i,t);a||r.push(i)}var u=r.map(function(t){return"`"+t+"`"}).join(", ");1===r.length?"production"!==e.env.NODE_ENV?c(!1,"Invalid aria prop %s on <%s> tag. For details, see https://fb.me/invalid-aria-prop%s",u,n.type,s.getStackAddendumByID(t)):void 0:r.length>1&&("production"!==e.env.NODE_ENV?c(!1,"Invalid aria props %s on <%s> tag. For details, see https://fb.me/invalid-aria-prop%s",u,n.type,s.getStackAddendumByID(t)):void 0)}function i(t,e){null!=e&&"string"==typeof e.type&&(e.type.indexOf("-")>=0||e.props.is||r(t,e))}var a=n(15),s=n(8),c=n(3),u={},l=new RegExp("^(aria)-["+a.ATTRIBUTE_NAME_CHAR+"]*$"),d={onBeforeMountComponent:function(t,n){"production"!==e.env.NODE_ENV&&i(t,n)},onBeforeUpdateComponent:function(t,n){"production"!==e.env.NODE_ENV&&i(t,n)}};t.exports=d}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t,n){null!=n&&("input"!==n.type&&"textarea"!==n.type&&"select"!==n.type||null==n.props||null!==n.props.value||a||("production"!==e.env.NODE_ENV?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",n.type,r.getStackAddendumByID(t)):void 0,a=!0))}var r=n(8),i=n(3),a=!1,s={onBeforeMountComponent:function(t,e){o(t,e)},onBeforeUpdateComponent:function(t,e){o(t,e)}};t.exports=s}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t){var n="";return i.Children.forEach(t,function(t){null!=t&&("string"==typeof t||"number"==typeof t?n+=t:u||(u=!0,"production"!==e.env.NODE_ENV?c(!1,"Only strings and numbers are supported as <option> children."):void 0))}),n}var r=n(5),i=n(17),a=n(6),s=n(63),c=n(3),u=!1,l={mountWrapper:function(t,n,r){"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?c(null==n.selected,"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."):void 0);var i=null;if(null!=r){var a=r;"optgroup"===a._tag&&(a=a._hostParent),null!=a&&"select"===a._tag&&(i=s.getSelectValueContext(a))}var u=null;if(null!=i){var l;if(l=null!=n.value?n.value+"":o(n.children),u=!1,Array.isArray(i)){for(var d=0;d<i.length;d++)if(""+i[d]===l){u=!0;break}}else u=""+i===l}t._wrapperState={selected:u}},postMountWrapper:function(t){var e=t._currentElement.props;if(null!=e.value){var n=a.getNodeFromInstance(t);n.setAttribute("value",e.value)}},getHostProps:function(t,e){var n=r({selected:void 0,children:void 0},e);null!=t._wrapperState.selected&&(n.selected=t._wrapperState.selected);var i=o(e.children);return i&&(n.children=i),n}};t.exports=l}).call(e,n(1))},function(t,e,n){"use strict";function o(t,e,n,o){return t===n&&e===o}function r(t){var e=document.selection,n=e.createRange(),o=n.text.length,r=n.duplicate();r.moveToElementText(t),r.setEndPoint("EndToStart",n);var i=r.text.length,a=i+o;return{start:i,end:a}}function i(t){var e=window.getSelection&&window.getSelection();if(!e||0===e.rangeCount)return null;var n=e.anchorNode,r=e.anchorOffset,i=e.focusNode,a=e.focusOffset,s=e.getRangeAt(0);try{s.startContainer.nodeType,s.endContainer.nodeType}catch(t){return null}var c=o(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset),u=c?0:s.toString().length,l=s.cloneRange();l.selectNodeContents(t),l.setEnd(s.startContainer,s.startOffset);var d=o(l.startContainer,l.startOffset,l.endContainer,l.endOffset),h=d?0:l.toString().length,p=h+u,f=document.createRange();f.setStart(n,r),f.setEnd(i,a);var v=f.collapsed;return{start:v?p:h,end:v?h:p}}function a(t,e){var n,o,r=document.selection.createRange().duplicate();void 0===e.end?(n=e.start,o=n):e.start>e.end?(n=e.end,o=e.start):(n=e.start,o=e.end),r.moveToElementText(t),r.moveStart("character",n),r.setEndPoint("EndToStart",r),r.moveEnd("character",o-n),r.select()}function s(t,e){if(window.getSelection){var n=window.getSelection(),o=t[l()].length,r=Math.min(e.start,o),i=void 0===e.end?r:Math.min(e.end,o);if(!n.extend&&r>i){var a=i;i=r,r=a}var s=u(t,r),c=u(t,i);if(s&&c){var d=document.createRange();d.setStart(s.node,s.offset),n.removeAllRanges(),r>i?(n.addRange(d),n.extend(c.node,c.offset)):(d.setEnd(c.node,c.offset),n.addRange(d))}}}var c=n(7),u=n(183),l=n(76),d=c.canUseDOM&&"selection"in document&&!("getSelection"in window),h={getOffsets:d?r:i,setOffsets:d?a:s};t.exports=h},function(t,e,n){(function(e){"use strict";var o=n(4),r=n(5),i=n(35),a=n(20),s=n(6),c=n(31),u=n(2),l=n(49),d=function(t){this._currentElement=t,this._stringText=""+t,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null};r(d.prototype,{mountComponent:function(t,n,o,r){if("production"!==e.env.NODE_ENV){var i;null!=n?i=n._ancestorInfo:null!=o&&(i=o._ancestorInfo),i&&l(null,this._stringText,this,i)}var u=o._idCounter++,d=" react-text: "+u+" ",h=" /react-text ";if(this._domID=u,this._hostParent=n,t.useCreateElement){var p=o._ownerDocument,f=p.createComment(d),v=p.createComment(h),g=a(p.createDocumentFragment());return a.queueChild(g,a(f)),this._stringText&&a.queueChild(g,a(p.createTextNode(this._stringText))),a.queueChild(g,a(v)),s.precacheNode(this,f),this._closingComment=v,g}var m=c(this._stringText);return t.renderToStaticMarkup?m:"<!--"+d+"-->"+m+"<!--"+h+"-->"},receiveComponent:function(t,e){if(t!==this._currentElement){this._currentElement=t;var n=""+t;if(n!==this._stringText){this._stringText=n;var o=this.getHostNode();i.replaceDelimitedText(o[0],o[1],n)}}},getHostNode:function(){var t=this._commentNodes;if(t)return t;if(!this._closingComment)for(var n=s.getNodeFromInstance(this),r=n.nextSibling;;){if(null==r?"production"!==e.env.NODE_ENV?u(!1,"Missing closing comment for text component %s",this._domID):o("67",this._domID):void 0,8===r.nodeType&&" /react-text "===r.nodeValue){this._closingComment=r;break}r=r.nextSibling}return t=[this._hostNode,this._closingComment],this._commentNodes=t,t},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,s.uncacheNode(this)}}),t.exports=d}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(){this._rootNodeID&&f.updateWrapper(this)}function r(t){var e=this._currentElement.props,n=s.executeOnChange(e,t);return u.asap(o,this),n}var i=n(4),a=n(5),s=n(39),c=n(6),u=n(11),l=n(2),d=n(3),h=!1,p=!1,f={getHostProps:function(t,n){null!=n.dangerouslySetInnerHTML?"production"!==e.env.NODE_ENV?l(!1,"`dangerouslySetInnerHTML` does not make sense on <textarea>."):i("91"):void 0;var o=a({},n,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue,onChange:t._wrapperState.onChange});return o},mountWrapper:function(t,n){"production"!==e.env.NODE_ENV&&(s.checkPropTypes("textarea",n,t._currentElement._owner),void 0===n.valueLink||h||("production"!==e.env.NODE_ENV?d(!1,"`valueLink` prop on `textarea` is deprecated; set `value` and `onChange` instead."):void 0,h=!0),void 0===n.value||void 0===n.defaultValue||p||("production"!==e.env.NODE_ENV?d(!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"):void 0,p=!0));var o=s.getValue(n),a=o;if(null==o){var c=n.defaultValue,u=n.children;null!=u&&("production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?d(!1,"Use the `defaultValue` or `value` props instead of setting children on <textarea>."):void 0),null!=c?"production"!==e.env.NODE_ENV?l(!1,"If you supply `defaultValue` on a <textarea>, do not pass children."):i("92"):void 0,Array.isArray(u)&&(u.length<=1?void 0:"production"!==e.env.NODE_ENV?l(!1,"<textarea> can only have at most one child."):i("93"),u=u[0]),c=""+u),null==c&&(c=""),a=c}t._wrapperState={initialValue:""+a,listeners:null,onChange:r.bind(t)}},updateWrapper:function(t){var e=t._currentElement.props,n=c.getNodeFromInstance(t),o=s.getValue(e);if(null!=o){var r=""+o;r!==n.value&&(n.value=r),null==e.defaultValue&&(n.defaultValue=r)}null!=e.defaultValue&&(n.defaultValue=e.defaultValue)},postMountWrapper:function(t){var e=c.getNodeFromInstance(t);e.value=e.textContent}};t.exports=f}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t,n){"_hostNode"in t?void 0:"production"!==e.env.NODE_ENV?u(!1,"getNodeFromInstance: Invalid argument."):c("33"),"_hostNode"in n?void 0:"production"!==e.env.NODE_ENV?u(!1,"getNodeFromInstance: Invalid argument."):c("33");for(var o=0,r=t;r;r=r._hostParent)o++;for(var i=0,a=n;a;a=a._hostParent)i++;for(;o-i>0;)t=t._hostParent,o--;for(;i-o>0;)n=n._hostParent,i--;for(var s=o;s--;){if(t===n)return t;t=t._hostParent,n=n._hostParent}return null}function r(t,n){"_hostNode"in t?void 0:"production"!==e.env.NODE_ENV?u(!1,"isAncestor: Invalid argument."):c("35"),"_hostNode"in n?void 0:"production"!==e.env.NODE_ENV?u(!1,"isAncestor: Invalid argument."):c("35");for(;n;){if(n===t)return!0;n=n._hostParent}return!1}function i(t){return"_hostNode"in t?void 0:"production"!==e.env.NODE_ENV?u(!1,"getParentInstance: Invalid argument."):c("36"),t._hostParent}function a(t,e,n){for(var o=[];t;)o.push(t),t=t._hostParent;var r;for(r=o.length;r-- >0;)e(o[r],"captured",n);for(r=0;r<o.length;r++)e(o[r],"bubbled",n)}function s(t,e,n,r,i){for(var a=t&&e?o(t,e):null,s=[];t&&t!==a;)s.push(t),t=t._hostParent;for(var c=[];e&&e!==a;)c.push(e),e=e._hostParent;var u;for(u=0;u<s.length;u++)n(s[u],"bubbled",r);for(u=c.length;u-- >0;)n(c[u],"captured",i)}var c=n(4),u=n(2);t.exports={isAncestor:r,getLowestCommonAncestor:o,getParentInstance:i,traverseTwoPhase:a,traverseEnterLeave:s}}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t,e){null!=e&&"string"==typeof e.type&&(e.type.indexOf("-")>=0||e.props.is||d(t,e))}var r=n(15),i=n(27),a=n(8),s=n(3);if("production"!==e.env.NODE_ENV)var 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(t,n,o){if(r.properties.hasOwnProperty(n)||r.isCustomAttribute(n))return!0;if(c.hasOwnProperty(n)&&c[n]||u.hasOwnProperty(n)&&u[n])return!0;if(i.registrationNameModules.hasOwnProperty(n))return!0;u[n]=!0;var l=n.toLowerCase(),d=r.isCustomAttribute(l)?l:r.getPossibleStandardName.hasOwnProperty(l)?r.getPossibleStandardName[l]:null,h=i.possibleRegistrationNames.hasOwnProperty(l)?i.possibleRegistrationNames[l]:null;return null!=d?("production"!==e.env.NODE_ENV?s(!1,"Unknown DOM property %s. Did you mean %s?%s",n,d,a.getStackAddendumByID(o)):void 0,!0):null!=h&&("production"!==e.env.NODE_ENV?s(!1,"Unknown event handler property %s. Did you mean `%s`?%s",n,h,a.getStackAddendumByID(o)):void 0,!0)};var d=function(t,n){var o=[];for(var r in n.props){var i=l(n.type,r,t);i||o.push(r)}var c=o.map(function(t){return"`"+t+"`"}).join(", ");1===o.length?"production"!==e.env.NODE_ENV?s(!1,"Unknown prop %s on <%s> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop%s",c,n.type,a.getStackAddendumByID(t)):void 0:o.length>1&&("production"!==e.env.NODE_ENV?s(!1,"Unknown props %s on <%s> tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop%s",c,n.type,a.getStackAddendumByID(t)):void 0)},h={onBeforeMountComponent:function(t,e){o(t,e)},onBeforeUpdateComponent:function(t,e){o(t,e)}};t.exports=h}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t,n,o,r,i,a,s,c){try{n.call(o,r,i,a,s,c)}catch(n){"production"!==e.env.NODE_ENV?E(N[t],"Exception thrown by hook while handling %s: %s",t,n+"\n"+n.stack):void 0,N[t]=!0}}function r(t,e,n,r,i,a){for(var s=0;s<C.length;s++){var c=C[s],u=c[t];u&&o(t,u,c,e,n,r,i,a)}}function i(){y.purgeUnmountedComponents(),m.clearHistory()}function a(t){return t.reduce(function(t,e){var n=y.getOwnerID(e),o=y.getParentID(e);return t[e]={displayName:y.getDisplayName(e),text:y.getText(e),updateCount:y.getUpdateCount(e),childIDs:y.getChildIDs(e),ownerID:n||o&&y.getOwnerID(o)||0,parentID:o},t},{})}function s(){var t=T,e=O,n=m.getHistory();if(0===D)return T=0,O=[],void i();if(e.length||n.length){var o=y.getRegisteredIDs();x.push({duration:b()-t,measurements:e||[],operations:n||[],treeSnapshot:a(o)})}i(),T=b(),O=[]}function c(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n&&0===t||t||("production"!==e.env.NODE_ENV?E(!1,"ReactDebugTool: debugID may not be empty."):void 0)}function u(t,n){0!==D&&(M&&!R&&("production"!==e.env.NODE_ENV?E(!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.",n,M||"no",t===P?"the same":"another"):void 0,R=!0),k=b(),I=0,P=t,M=n)}function l(t,n){0!==D&&(M===n||R||("production"!==e.env.NODE_ENV?E(!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.",n,M||"no",t===P?"the same":"another"):void 0,R=!0),w&&O.push({timerType:n,instanceID:t,duration:b()-k-I}),k=0,I=0,P=null,M=null)}function d(){var t={startTime:k,nestedFlushStartTime:b(),debugID:P,timerType:M};S.push(t),k=0,I=0,P=null,M=null}function h(){var t=S.pop(),e=t.startTime,n=t.nestedFlushStartTime,o=t.debugID,r=t.timerType,i=b()-n;k=e,I+=i,P=o,M=r}function p(t){if(!w||!K)return!1;var e=y.getElement(t);if(null==e||"object"!=typeof e)return!1;var n="string"==typeof e.type;return!n}function f(t,e){if(p(t)){var n=t+"::"+e;A=b(),performance.mark(n)}}function v(t,e){if(p(t)){var n=t+"::"+e,o=y.getDisplayName(t)||"Unknown",r=b();if(r-A>.1){var i=o+" ["+e+"]";performance.measure(i,n)}performance.clearMarks(n),performance.clearMeasures(i)}}var g=n(153),m=n(151),y=n(8),_=n(7),b=n(113),E=n(3),C=[],N={},w=!1,x=[],S=[],D=0,O=[],T=0,P=null,k=0,I=0,M=null,R=!1,A=0,K="undefined"!=typeof performance&&"function"==typeof performance.mark&&"function"==typeof performance.clearMarks&&"function"==typeof performance.measure&&"function"==typeof performance.clearMeasures,F={addHook:function(t){C.push(t)},removeHook:function(t){for(var e=0;e<C.length;e++)C[e]===t&&(C.splice(e,1),e--)},isProfiling:function(){return w},beginProfiling:function(){w||(w=!0,x.length=0,s(),F.addHook(m))},endProfiling:function(){w&&(w=!1,s(),F.removeHook(m))},getFlushHistory:function(){return x},onBeginFlush:function(){D++,s(),d(),r("onBeginFlush")},onEndFlush:function(){s(),D--,h(),r("onEndFlush")},onBeginLifeCycleTimer:function(t,e){c(t),r("onBeginLifeCycleTimer",t,e),f(t,e),u(t,e)},onEndLifeCycleTimer:function(t,e){c(t),l(t,e),v(t,e),r("onEndLifeCycleTimer",t,e)},onBeginProcessingChildContext:function(){r("onBeginProcessingChildContext")},onEndProcessingChildContext:function(){r("onEndProcessingChildContext")},onHostOperation:function(t){c(t.instanceID),r("onHostOperation",t)},onSetState:function(){r("onSetState")},onSetChildren:function(t,e){c(t),e.forEach(c),r("onSetChildren",t,e)},onBeforeMountComponent:function(t,e,n){c(t),c(n,!0),r("onBeforeMountComponent",t,e,n),f(t,"mount")},onMountComponent:function(t){c(t),v(t,"mount"),r("onMountComponent",t)},onBeforeUpdateComponent:function(t,e){c(t),r("onBeforeUpdateComponent",t,e),f(t,"update")},onUpdateComponent:function(t){c(t),v(t,"update"),r("onUpdateComponent",t)},onBeforeUnmountComponent:function(t){c(t),r("onBeforeUnmountComponent",t),f(t,"unmount")},onUnmountComponent:function(t){c(t),v(t,"unmount"),r("onUnmountComponent",t)},onTestEvent:function(){r("onTestEvent")}};F.addDevtool=F.addHook,F.removeDevtool=F.removeHook,F.addHook(g),F.addHook(y);var V=_.canUseDOM&&window.location.href||"";/[?&]react_perf\b/.test(V)&&F.beginProfiling(),t.exports=F}).call(e,n(1))},function(t,e,n){"use strict";function o(){this.reinitializeTransaction()}var r=n(5),i=n(11),a=n(30),s=n(10),c={initialize:s,close:function(){h.isBatchingUpdates=!1}},u={initialize:s,close:i.flushBatchedUpdates.bind(i)},l=[u,c];r(o.prototype,a,{getTransactionWrappers:function(){return l}});var d=new o,h={isBatchingUpdates:!1,batchedUpdates:function(t,e,n,o,r,i){var a=h.isBatchingUpdates;return h.isBatchingUpdates=!0,a?t(e,n,o,r,i):d.perform(t,null,e,n,o,r,i)}};t.exports=h},function(t,e,n){"use strict";function o(){N||(N=!0,y.EventEmitter.injectReactEventListener(m),y.EventPluginHub.injectEventPluginOrder(s),y.EventPluginUtils.injectComponentTree(h),y.EventPluginUtils.injectTreeTraversal(f),y.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:C,EnterLeaveEventPlugin:c,ChangeEventPlugin:a,SelectEventPlugin:E,BeforeInputEventPlugin:i}),y.HostComponent.injectGenericComponentClass(d),y.HostComponent.injectTextComponentClass(v),y.DOMProperty.injectDOMPropertyConfig(r),y.DOMProperty.injectDOMPropertyConfig(u),y.DOMProperty.injectDOMPropertyConfig(b),y.EmptyComponent.injectEmptyComponentFactory(function(t){return new p(t)}),y.Updates.injectReconcileTransaction(_),y.Updates.injectBatchingStrategy(g),y.Component.injectEnvironment(l))}var r=n(117),i=n(119),a=n(121),s=n(123),c=n(124),u=n(126),l=n(128),d=n(131),h=n(6),p=n(133),f=n(143),v=n(141),g=n(146),m=n(150),y=n(152),_=n(157),b=n(162),E=n(163),C=n(164),N=!1;t.exports={inject:o}},function(t,e){"use strict";var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=n},function(t,e,n){"use strict";function o(t){r.enqueueEvents(t),r.processEventQueue(!1)}var r=n(24),i={handleTopLevel:function(t,e,n,i){var a=r.extractEvents(t,e,n,i);o(a)}};t.exports=i},function(t,e,n){"use strict";function o(t){for(;t._hostParent;)t=t._hostParent;var e=d.getNodeFromInstance(t),n=e.parentNode;return d.getClosestInstanceFromNode(n)}function r(t,e){this.topLevelType=t,this.nativeEvent=e,this.ancestors=[]}function i(t){var e=p(t.nativeEvent),n=d.getClosestInstanceFromNode(e),r=n;do t.ancestors.push(r),r=r&&o(r);while(r);for(var i=0;i<t.ancestors.length;i++)n=t.ancestors[i],v._handleTopLevel(t.topLevelType,n,t.nativeEvent,p(t.nativeEvent))}function a(t){var e=f(window);t(e)}var s=n(5),c=n(56),u=n(7),l=n(16),d=n(6),h=n(11),p=n(46),f=n(106);s(r.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),l.addPoolingTo(r,l.twoArgumentPooler);var v={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:u.canUseDOM?window:null,setHandleTopLevel:function(t){v._handleTopLevel=t},setEnabled:function(t){v._enabled=!!t},isEnabled:function(){return v._enabled},trapBubbledEvent:function(t,e,n){return n?c.listen(n,e,v.dispatchEvent.bind(null,t)):null},trapCapturedEvent:function(t,e,n){return n?c.capture(n,e,v.dispatchEvent.bind(null,t)):null},monitorScrollValue:function(t){var e=a.bind(null,t);c.listen(window,"scroll",e)},dispatchEvent:function(t,e){if(v._enabled){var n=r.getPooled(t,e);try{h.batchedUpdates(i,n)}finally{r.release(n)}}}};t.exports=v},function(t,e){"use strict";var n=[],o={onHostOperation:function(t){n.push(t)},clearHistory:function(){o._preventClearing||(n=[])},getHistory:function(){return n}};t.exports=o},function(t,e,n){"use strict";var o=n(15),r=n(24),i=n(37),a=n(40),s=n(64),c=n(28),u=n(66),l=n(11),d={Component:a.injection,DOMProperty:o.injection,EmptyComponent:s.injection,EventPluginHub:r.injection,EventPluginUtils:i.injection,EventEmitter:c.injection,HostComponent:u.injection,Updates:l.injection};t.exports=d},function(t,e,n){(function(e){"use strict";var o=n(3);if("production"!==e.env.NODE_ENV)var r=!1,i=function(){"production"!==e.env.NODE_ENV?o(!r,"setState(...): Cannot call setState() inside getChildContext()"):void 0};var a={onBeginProcessingChildContext:function(){r=!0},onEndProcessingChildContext:function(){r=!1},onSetState:function(){i()}};t.exports=a}).call(e,n(1))},function(t,e,n){"use strict";var o=n(175),r=/\/?>/,i=/^<\!\-\-/,a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(t){var e=o(t);return i.test(t)?t:t.replace(r," "+a.CHECKSUM_ATTR_NAME+'="'+e+'"$&')},canReuseMarkup:function(t,e){var n=e.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var r=o(t);return r===n}};t.exports=a},function(t,e,n){(function(e){"use strict";function o(t){return!(!t||"function"!=typeof t.attachRef||"function"!=typeof t.detachRef)}var r=n(4),i=n(2),a={addComponentAsRefTo:function(t,n,a){o(a)?void 0:"production"!==e.env.NODE_ENV?i(!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)."):r("119"),a.attachRef(n,t)},removeComponentAsRefFrom:function(t,n,a){o(a)?void 0:"production"!==e.env.NODE_ENV?i(!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)."):r("120");var s=a.getPublicInstance();s&&s.refs[n]===t.getPublicInstance()&&a.detachRef(n)}};t.exports=a}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var n={};"production"!==e.env.NODE_ENV&&(n={prop:"prop",context:"context",childContext:"child context"}),t.exports=n}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=i.getPooled(null),this.useCreateElement=t}var r=n(5),i=n(60),a=n(16),s=n(28),c=n(67),u=n(9),l=n(30),d=n(42),h={initialize:c.getSelectionInformation,close:c.restoreSelection},p={initialize:function(){var t=s.isEnabled();return s.setEnabled(!1),t},close:function(t){s.setEnabled(t)}},f={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},v=[h,p,f];"production"!==e.env.NODE_ENV&&v.push({initialize:u.debugTool.onBeginFlush,close:u.debugTool.onEndFlush});var g={getTransactionWrappers:function(){return v},getReactMountReady:function(){return this.reactMountReady},getUpdateQueue:function(){return d},checkpoint:function(){return this.reactMountReady.checkpoint()},rollback:function(t){this.reactMountReady.rollback(t)},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null}};r(o.prototype,l,g),a.addPoolingTo(o),t.exports=o}).call(e,n(1))},function(t,e,n){"use strict";function o(t,e,n){"function"==typeof t?t(e.getPublicInstance()):i.addComponentAsRefTo(e,t,n)}function r(t,e,n){"function"==typeof t?t(null):i.removeComponentAsRefFrom(e,t,n)}var i=n(155),a={};a.attachRefs=function(t,e){if(null!==e&&"object"==typeof e){var n=e.ref;null!=n&&o(n,t,e._owner)}},a.shouldUpdateRefs=function(t,e){var n=null,o=null;null!==t&&"object"==typeof t&&(n=t.ref,o=t._owner);var r=null,i=null;return null!==e&&"object"==typeof e&&(r=e.ref,i=e._owner),n!==r||"string"==typeof r&&i!==o},a.detachRefs=function(t,e){if(null!==e&&"object"==typeof e){var n=e.ref;null!=n&&r(n,t,e._owner)}},t.exports=a},function(t,e,n){(function(e){"use strict";function o(t){this.reinitializeTransaction(),this.renderToStaticMarkup=t,this.useCreateElement=!1,this.updateQueue=new c(this)}var r=n(5),i=n(16),a=n(30),s=n(9),c=n(160),u=[];"production"!==e.env.NODE_ENV&&u.push({initialize:s.debugTool.onBeginFlush,close:s.debugTool.onEndFlush});var l={enqueue:function(){}},d={getTransactionWrappers:function(){return u},getReactMountReady:function(){return l},getUpdateQueue:function(){return this.updateQueue},destructor:function(){},checkpoint:function(){},rollback:function(){}};r(o.prototype,a,d),i.addPoolingTo(o),t.exports=o}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,n){if("production"!==e.env.NODE_ENV){var o=t.constructor;"production"!==e.env.NODE_ENV?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.",n,n,o&&(o.displayName||o.name)||"ReactClass"):void 0}}var i=n(42),a=n(3),s=function(){function t(e){o(this,t),this.transaction=e}return t.prototype.isMounted=function(t){return!1},t.prototype.enqueueCallback=function(t,e,n){this.transaction.isInTransaction()&&i.enqueueCallback(t,e,n)},t.prototype.enqueueForceUpdate=function(t){this.transaction.isInTransaction()?i.enqueueForceUpdate(t):r(t,"forceUpdate")},t.prototype.enqueueReplaceState=function(t,e){this.transaction.isInTransaction()?i.enqueueReplaceState(t,e):r(t,"replaceState")},t.prototype.enqueueSetState=function(t,e){this.transaction.isInTransaction()?i.enqueueSetState(t,e):r(t,"setState")},t}();t.exports=s}).call(e,n(1))},function(t,e){"use strict";t.exports="15.4.1"},function(t,e){"use strict";var n={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"},r={Properties:{},DOMAttributeNamespaces:{xlinkActuate:n.xlink,xlinkArcrole:n.xlink,xlinkHref:n.xlink,xlinkRole:n.xlink,xlinkShow:n.xlink,xlinkTitle:n.xlink,xlinkType:n.xlink,xmlBase:n.xml,xmlLang:n.xml,xmlSpace:n.xml},DOMAttributeNames:{}};Object.keys(o).forEach(function(t){r.Properties[t]=0,o[t]&&(r.DOMAttributeNames[t]=o[t])}),t.exports=r},function(t,e,n){"use strict";function o(t){if("selectionStart"in t&&c.hasSelectionCapabilities(t))return{start:t.selectionStart,end:t.selectionEnd};if(window.getSelection){var e=window.getSelection();return{anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function r(t,e){if(y||null==v||v!==l())return null;var n=o(v);if(!m||!h(m,n)){m=n;var r=u.getPooled(f.select,g,t,e);return r.type="select",r.target=v,i.accumulateTwoPhaseDispatches(r),r}return null}var i=n(25),a=n(7),s=n(6),c=n(67),u=n(13),l=n(58),d=n(78),h=n(33),p=a.canUseDOM&&"documentMode"in document&&document.documentMode<=11,f={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},v=null,g=null,m=null,y=!1,_=!1,b={eventTypes:f,extractEvents:function(t,e,n,o){if(!_)return null;var i=e?s.getNodeFromInstance(e):window;switch(t){case"topFocus":(d(i)||"true"===i.contentEditable)&&(v=i,g=e,m=null);break;case"topBlur":v=null,g=null,m=null;break;case"topMouseDown":y=!0;break;case"topContextMenu":case"topMouseUp":return y=!1,r(n,o);case"topSelectionChange":if(p)break;case"topKeyDown":case"topKeyUp":return r(n,o)}return null},didPutListener:function(t,e,n){"onSelect"===e&&(_=!0)}};t.exports=b},function(t,e,n){(function(e){"use strict";function o(t){return"."+t._rootNodeID}function r(t){return"button"===t||"input"===t||"select"===t||"textarea"===t}var i=n(4),a=n(56),s=n(25),c=n(6),u=n(165),l=n(166),d=n(13),h=n(169),p=n(171),f=n(29),v=n(168),g=n(172),m=n(173),y=n(26),_=n(174),b=n(10),E=n(44),C=n(2),N={},w={};["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(t){var e=t[0].toUpperCase()+t.slice(1),n="on"+e,o="top"+e,r={phasedRegistrationNames:{bubbled:n,captured:n+"Capture"},dependencies:[o]};N[t]=r,w[o]=r});var x={},S={eventTypes:N,extractEvents:function(t,n,o,r){var a=w[t];if(!a)return null;var c;switch(t){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":c=d;break;case"topKeyPress":if(0===E(o))return null;case"topKeyDown":case"topKeyUp":c=p;break;case"topBlur":case"topFocus":c=h;break;case"topClick":if(2===o.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":c=f;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":c=v;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":c=g;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":c=u;break;case"topTransitionEnd":c=m;break;case"topScroll":c=y;break;case"topWheel":c=_;break;case"topCopy":case"topCut":case"topPaste":c=l}c?void 0:"production"!==e.env.NODE_ENV?C(!1,"SimpleEventPlugin: Unhandled event type, `%s`.",t):i("86",t);var b=c.getPooled(a,n,o,r);return s.accumulateTwoPhaseDispatches(b),b},didPutListener:function(t,e,n){if("onClick"===e&&!r(t._tag)){var i=o(t),s=c.getNodeFromInstance(t);x[i]||(x[i]=a.listen(s,"click",b))}},willDeleteListener:function(t,e){if("onClick"===e&&!r(t._tag)){var n=o(t);x[n].remove(),delete x[n]}}};t.exports=S}).call(e,n(1))},function(t,e,n){"use strict";function o(t,e,n,o){return r.call(this,t,e,n,o)}var r=n(13),i={animationName:null,elapsedTime:null,pseudoElement:null};r.augmentClass(o,i),t.exports=o},function(t,e,n){"use strict";function o(t,e,n,o){return r.call(this,t,e,n,o)}var r=n(13),i={clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}};r.augmentClass(o,i),t.exports=o},function(t,e,n){"use strict";function o(t,e,n,o){return r.call(this,t,e,n,o)}var r=n(13),i={data:null};r.augmentClass(o,i),t.exports=o},function(t,e,n){"use strict";function o(t,e,n,o){return r.call(this,t,e,n,o)}var r=n(29),i={dataTransfer:null};r.augmentClass(o,i),t.exports=o},function(t,e,n){"use strict";function o(t,e,n,o){return r.call(this,t,e,n,o)}var r=n(26),i={relatedTarget:null};r.augmentClass(o,i),t.exports=o},function(t,e,n){"use strict";function o(t,e,n,o){return r.call(this,t,e,n,o)}var r=n(13),i={data:null};r.augmentClass(o,i),t.exports=o},function(t,e,n){"use strict";function o(t,e,n,o){return r.call(this,t,e,n,o)}var r=n(26),i=n(44),a=n(180),s=n(45),c={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(t){return"keypress"===t.type?i(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?i(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}};r.augmentClass(o,c),t.exports=o},function(t,e,n){"use strict";function o(t,e,n,o){return r.call(this,t,e,n,o)}var r=n(26),i=n(45),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};r.augmentClass(o,a),t.exports=o},function(t,e,n){"use strict";function o(t,e,n,o){return r.call(this,t,e,n,o)}var r=n(13),i={propertyName:null,elapsedTime:null,pseudoElement:null};r.augmentClass(o,i),t.exports=o},function(t,e,n){"use strict";function o(t,e,n,o){return r.call(this,t,e,n,o)}var r=n(29),i={deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null};r.augmentClass(o,i),t.exports=o},function(t,e){"use strict";function n(t){for(var e=1,n=0,r=0,i=t.length,a=i&-4;r<a;){for(var s=Math.min(r+4096,a);r<s;r+=4)n+=(e+=t.charCodeAt(r))+(e+=t.charCodeAt(r+1))+(e+=t.charCodeAt(r+2))+(e+=t.charCodeAt(r+3));e%=o,n%=o}for(;r<i;r++)n+=e+=t.charCodeAt(r);return e%=o,n%=o,e|n<<16}var o=65521;t.exports=n},function(t,e,n){(function(e){"use strict";function o(t,o,d,h,p,f){for(var v in t)if(t.hasOwnProperty(v)){var g;try{"function"!=typeof t[v]?"production"!==e.env.NODE_ENV?c(!1,"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",h||"React class",a[d],v):i("84",h||"React class",a[d],v):void 0,g=t[v](o,v,h,d,null,s)}catch(t){g=t}if("production"!==e.env.NODE_ENV?u(!g||g 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).",h||"React class",a[d],v,typeof g):void 0,g instanceof Error&&!(g.message in l)){l[g.message]=!0;var m="";"production"!==e.env.NODE_ENV&&(r||(r=n(8)),null!==f?m=r.getStackAddendumByID(f):null!==p&&(m=r.getCurrentStackAddendum(p))),"production"!==e.env.NODE_ENV?u(!1,"Failed %s type: %s%s",d,g.message,m):void 0}}}var r,i=n(4),a=n(156),s=n(71),c=n(2),u=n(3);"undefined"!=typeof e&&e.env&&"test"===e.env.NODE_ENV&&(r=n(8));var l={};t.exports=o}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t,n,o){var r=null==n||"boolean"==typeof n||""===n;if(r)return"";var c=isNaN(n);if(c||0===n||a.hasOwnProperty(t)&&a[t])return""+n;if("string"==typeof n){if("production"!==e.env.NODE_ENV&&o&&"0"!==n){var u=o._currentElement._owner,l=u?u.getName():null;l&&!s[l]&&(s[l]={});var d=!1;if(l){var h=s[l];d=h[t],d||(h[t]=!0)}d||("production"!==e.env.NODE_ENV?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.",o._currentElement.type,l||"unknown",t,n):void 0)}n=n.trim()}return n+"px"}var r=n(59),i=n(3),a=r.isUnitlessNumber,s={};t.exports=o}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t){if("production"!==e.env.NODE_ENV){var n=i.current;null!==n&&("production"!==e.env.NODE_ENV?l(n._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.",n.getName()||"A component"):void 0,n._warnedAboutRefsInRender=!0)}if(null==t)return null;if(1===t.nodeType)return t;var o=s.get(t);return o?(o=c(o),o?a.getNodeFromInstance(o):null):void("function"==typeof t.render?"production"!==e.env.NODE_ENV?u(!1,"findDOMNode was called on an unmounted component."):r("44"):"production"!==e.env.NODE_ENV?u(!1,"Element appears to be neither ReactComponent nor DOMNode (keys: %s)",Object.keys(t)):r("45",Object.keys(t)))}var r=n(4),i=n(12),a=n(6),s=n(21),c=n(75),u=n(2),l=n(3);t.exports=o}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t,o,r,s){if(t&&"object"==typeof t){var u=t,l=void 0===u[r];"production"!==e.env.NODE_ENV&&(i||(i=n(8)),l||("production"!==e.env.NODE_ENV?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(s)):void 0)),l&&null!=o&&(u[r]=o)}}function r(t,n){if(null==t)return t;var r={};return"production"!==e.env.NODE_ENV?s(t,function(t,e,r){return o(t,e,r,n)},r):s(t,o,r),r}var i,a=n(38),s=n(80),c=n(3);"undefined"!=typeof e&&e.env&&"test"===e.env.NODE_ENV&&(i=n(8)),t.exports=r}).call(e,n(1))},function(t,e,n){"use strict";function o(t){if(t.key){var e=i[t.key]||t.key;if("Unidentified"!==e)return e}if("keypress"===t.type){var n=r(t);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===t.type||"keyup"===t.type?a[t.keyCode]||"Unidentified":""}var r=n(44),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"};t.exports=o},function(t,e){"use strict";function n(t){var e=t&&(o&&t[o]||t[r]);if("function"==typeof e)return e}var o="function"==typeof Symbol&&Symbol.iterator,r="@@iterator";t.exports=n},function(t,e){"use strict";function n(){return o++}var o=1;t.exports=n},function(t,e){"use strict";function n(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function o(t){for(;t;){if(t.nextSibling)return t.nextSibling;t=t.parentNode}}function r(t,e){for(var r=n(t),i=0,a=0;r;){if(3===r.nodeType){if(a=i+r.textContent.length,i<=e&&a>=e)return{node:r,offset:e-i};i=a}r=n(o(r))}}t.exports=r},function(t,e,n){"use strict";function o(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n["ms"+t]="MS"+e,n["O"+t]="o"+e.toLowerCase(),n}function r(t){if(s[t])return s[t];if(!a[t])return t;var e=a[t];for(var n in e)if(e.hasOwnProperty(n)&&n in c)return s[t]=e[n];return""}var i=n(7),a={animationend:o("Animation","AnimationEnd"),animationiteration:o("Animation","AnimationIteration"),animationstart:o("Animation","AnimationStart"),transitionend:o("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),t.exports=r},function(t,e,n){"use strict";function o(t){return'"'+r(t)+'"'}var r=n(31);t.exports=o},function(t,e,n){"use strict";var o=n(68);t.exports=o.renderSubtreeIntoContainer},function(t,e,n){(function(e){"use strict";var n={};"production"!==e.env.NODE_ENV&&Object.freeze(n),t.exports=n}).call(e,n(1))},function(t,e){"use strict";function n(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function o(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var o=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==o.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}var r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;t.exports=o()?Object.assign:function(t,e){for(var o,a,s=n(t),c=1;c<arguments.length;c++){o=Object(arguments[c]);for(var u in o)r.call(o,u)&&(s[u]=o[u]);if(Object.getOwnPropertySymbols){a=Object.getOwnPropertySymbols(o);for(var l=0;l<a.length;l++)i.call(o,a[l])&&(s[a[l]]=o[a[l]])}}return s}},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var c=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),u=n(99),l=o(u),d=n(14),h=o(d),p=n(191),f={orientation:{horizontal:{dimension:"width",direction:"left",coordinate:"x"},vertical:{dimension:"height",direction:"top",coordinate:"y"}}},v=function(t){function e(t,n){i(this,e);var o=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return o.handleNoop=function(t){t.stopPropagation(),t.preventDefault()},o.handleUpdate=function(){var t=o.props.orientation,e=(0,p.capitalize)(f.orientation[t].dimension),n=o.slider["offset"+e],r=o.handle["offset"+e];o.setState({limit:n-r,grab:r/2})},o.handleStart=function(){document.addEventListener("mousemove",o.handleDrag),document.addEventListener("mouseup",o.handleEnd)},o.handleDrag=function(t){o.handleNoop(t);var e=o.props.onChange;if(e){var n=o.position(t);e&&e(n)}},o.handleEnd=function(){document.removeEventListener("mousemove",o.handleDrag),document.removeEventListener("mouseup",o.handleEnd)},o.getPositionFromValue=function(t){var e=o.state.limit,n=o.props,r=n.min,i=n.max,a=i-r,s=t-r,c=s/a,u=Math.round(c*e);return u},o.getValueFromPosition=function(t){var e=null,n=o.state.limit,r=o.props,i=r.orientation,a=r.min,s=r.max,c=r.step,u=(0,p.clamp)(t,0,n)/(n||1),l=c*Math.round(u*(s-a)/c);return e="horizontal"===i?l+a:s-l,e>=s&&(e=s),e<=a&&(e=a),e},o.position=function(t){var e=o.state.grab,n=o.props.orientation,r=o.slider,i=f.orientation[n].coordinate,a=f.orientation[n].direction,s="client"+(0,p.capitalize)(i),c=t.touches?t.touches[0][s]:t[s],u=r.getBoundingClientRect()[a],l=c-u-e,d=o.getValueFromPosition(l);return d},o.coordinates=function(t){var e=null,n=o.state,r=n.limit,i=n.grab,a=o.props.orientation,s=o.getValueFromPosition(t),c=o.getPositionFromValue(s),u="horizontal"===a?c+i:c;return e="horizontal"===a?u:r-u,{fill:e,handle:c}},o.state={limit:0,grab:0},o}return s(e,t),c(e,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.handleUpdate),this.handleUpdate()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleUpdate)}},{key:"render",value:function(){var t=this,e=this.props,n=e.value,o=e.orientation,i=e.className,a=f.orientation[o].dimension,s=f.orientation[o].direction,c=this.getPositionFromValue(n),u=this.coordinates(c),d=r({},a,u.fill+"px"),p=r({},s,u.handle+"px");return h.default.createElement("div",{ref:function(e){t.slider=e},className:(0,l.default)("rangeslider","rangeslider-"+o,i),onMouseDown:this.handleDrag,onTouchStart:this.handleDrag,onTouchEnd:this.handleNoop},h.default.createElement("div",{className:"rangeslider__fill",style:d}),h.default.createElement("div",{ref:function(e){t.handle=e},className:"rangeslider__handle",onMouseDown:this.handleStart,onTouchEnd:this.handleNoop,onTouchMove:this.handleDrag,style:p}))}}]),e}(d.Component);v.propTypes={min:d.PropTypes.number,max:d.PropTypes.number,step:d.PropTypes.number,value:d.PropTypes.number,orientation:d.PropTypes.string,onChange:d.PropTypes.func,className:d.PropTypes.string},v.defaultProps={min:0,max:100,step:1,value:0,orientation:"horizontal"},e.default=v},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(189),i=o(r);e.default=i.default},function(t,e){"use strict";function n(t){return t.charAt(0).toUpperCase()+t.substr(1)}function o(t,e,n){return Math.min(Math.max(t,e),n)}Object.defineProperty(e,"__esModule",{value:!0}),e.capitalize=n,e.clamp=o},function(t,e,n){(function(t){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(){p||(p=!0,(0,h.default)("<Provider> does not support changing `store` on the fly. It is most likely that you see this error because you updated to Redux 2.x and React Redux 2.x which no longer hot reload reducers automatically. See https://github.com/reactjs/react-redux/releases/tag/v2.0.0 for the migration instructions."))}e.__esModule=!0,e.default=void 0;var c=n(14),u=n(82),l=o(u),d=n(83),h=o(d),p=!1,f=function(t){function e(n,o){r(this,e);var a=i(this,t.call(this,n,o));return a.store=n.store,a}return a(e,t),e.prototype.getChildContext=function(){return{store:this.store}},e.prototype.render=function(){return c.Children.only(this.props.children)},e}(c.Component);e.default=f,"production"!==t.env.NODE_ENV&&(f.prototype.componentWillReceiveProps=function(t){var e=this.store,n=t.store;e!==n&&s()}),f.propTypes={store:l.default.isRequired,children:c.PropTypes.element.isRequired},f.childContextTypes={store:l.default.isRequired}}).call(e,n(1))},function(t,e,n){(function(t){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){return t.displayName||t.name||"Component"}function c(t,e){try{return t.apply(e)}catch(t){return T.value=t,T}}function u(e,n,o){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},h=Boolean(e),f=e||S,g=void 0;g="function"==typeof n?n:n?(0,m.default)(n):D;var y=o||O,b=u.pure,C=void 0===b||b,w=u.withRef,k=void 0!==w&&w,I=C&&y!==O,M=P++;return function(e){function n(t,e){(0,E.default)(t)||(0,_.default)(e+"() in "+u+" must return a plain object. "+("Instead received "+t+"."))}function o(e,o,r){var i=y(e,o,r);return"production"!==t.env.NODE_ENV&&n(i,"mergeProps"),i}var u="Connect("+s(e)+")",m=function(s){function p(t,e){r(this,p);var n=i(this,s.call(this,t,e));n.version=M,n.store=t.store||e.store,(0,x.default)(n.store,'Could not find "store" in either the context or '+('props of "'+u+'". ')+"Either wrap the root component in a <Provider>, "+('or explicitly pass "store" as a prop to "'+u+'".'));var o=n.store.getState();return n.state={storeState:o},n.clearCache(),n}return a(p,s),p.prototype.shouldComponentUpdate=function(){return!C||this.haveOwnPropsChanged||this.hasStoreStateChanged},p.prototype.computeStateProps=function(e,o){if(!this.finalMapStateToProps)return this.configureFinalMapState(e,o);var r=e.getState(),i=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(r,o):this.finalMapStateToProps(r);return"production"!==t.env.NODE_ENV&&n(i,"mapStateToProps"),i},p.prototype.configureFinalMapState=function(e,o){var r=f(e.getState(),o),i="function"==typeof r;return this.finalMapStateToProps=i?r:f,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,i?this.computeStateProps(e,o):("production"!==t.env.NODE_ENV&&n(r,"mapStateToProps"),r)},p.prototype.computeDispatchProps=function(e,o){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(e,o);var r=e.dispatch,i=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(r,o):this.finalMapDispatchToProps(r);return"production"!==t.env.NODE_ENV&&n(i,"mapDispatchToProps"),i},p.prototype.configureFinalMapDispatch=function(e,o){var r=g(e.dispatch,o),i="function"==typeof r;return this.finalMapDispatchToProps=i?r:g,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,i?this.computeDispatchProps(e,o):("production"!==t.env.NODE_ENV&&n(r,"mapDispatchToProps"),r)},p.prototype.updateStatePropsIfNeeded=function(){var t=this.computeStateProps(this.store,this.props);return(!this.stateProps||!(0,v.default)(t,this.stateProps))&&(this.stateProps=t,!0)},p.prototype.updateDispatchPropsIfNeeded=function(){var t=this.computeDispatchProps(this.store,this.props);return(!this.dispatchProps||!(0,v.default)(t,this.dispatchProps))&&(this.dispatchProps=t,!0)},p.prototype.updateMergedPropsIfNeeded=function(){var t=o(this.stateProps,this.dispatchProps,this.props);return!(this.mergedProps&&I&&(0,v.default)(t,this.mergedProps))&&(this.mergedProps=t,!0)},p.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},p.prototype.trySubscribe=function(){h&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},p.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},p.prototype.componentDidMount=function(){this.trySubscribe()},p.prototype.componentWillReceiveProps=function(t){C&&(0,v.default)(t,this.props)||(this.haveOwnPropsChanged=!0)},p.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},p.prototype.clearCache=function(){this.dispatchProps=null,this.stateProps=null,this.mergedProps=null,this.haveOwnPropsChanged=!0,this.hasStoreStateChanged=!0,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,this.renderedElement=null,this.finalMapDispatchToProps=null,this.finalMapStateToProps=null},p.prototype.handleChange=function(){if(this.unsubscribe){var t=this.store.getState(),e=this.state.storeState;if(!C||e!==t){if(C&&!this.doStatePropsDependOnOwnProps){var n=c(this.updateStatePropsIfNeeded,this);if(!n)return;n===T&&(this.statePropsPrecalculationError=T.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:t})}}},p.prototype.getWrappedInstance=function(){return(0,x.default)(k,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},p.prototype.render=function(){var t=this.haveOwnPropsChanged,n=this.hasStoreStateChanged,o=this.haveStatePropsBeenPrecalculated,r=this.statePropsPrecalculationError,i=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,r)throw r;var a=!0,s=!0;C&&i&&(a=n||t&&this.doStatePropsDependOnOwnProps,s=t&&this.doDispatchPropsDependOnOwnProps);var c=!1,u=!1;o?c=!0:a&&(c=this.updateStatePropsIfNeeded()),s&&(u=this.updateDispatchPropsIfNeeded());var h=!0;return h=!!(c||u||t)&&this.updateMergedPropsIfNeeded(),!h&&i?i:(k?this.renderedElement=(0,d.createElement)(e,l({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=(0,d.createElement)(e,this.mergedProps),this.renderedElement)},p}(d.Component);return m.displayName=u,m.WrappedComponent=e,m.contextTypes={store:p.default},m.propTypes={store:p.default},"production"!==t.env.NODE_ENV&&(m.prototype.componentWillUpdate=function(){this.version!==M&&(this.version=M,this.trySubscribe(),this.clearCache())}),(0,N.default)(m,e)}}e.__esModule=!0;var l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};e.default=u;var d=n(14),h=n(82),p=o(h),f=n(195),v=o(f),g=n(196),m=o(g),y=n(83),_=o(y),b=n(205),E=o(b),C=n(114),N=o(C),w=n(115),x=o(w),S=function(t){return{}},D=function(t){return{dispatch:t}},O=function(t,e,n){return l({},n,t,e)},T={value:null},P=0}).call(e,n(1))},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0,e.connect=e.Provider=void 0;var r=n(192),i=o(r),a=n(193),s=o(a);e.Provider=i.default,e.connect=s.default},function(t,e){"use strict";function n(t,e){if(t===e)return!0;var n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(var r=Object.prototype.hasOwnProperty,i=0;i<n.length;i++)if(!r.call(e,n[i])||t[n[i]]!==e[n[i]])return!1;return!0}e.__esModule=!0,e.default=n},function(t,e,n){"use strict";function o(t){return function(e){return(0,r.bindActionCreators)(t,e)}}e.__esModule=!0,e.default=o;var r=n(55)},function(t,e,n){function o(t){return null==t?void 0===t?c:s:u&&u in Object(t)?i(t):a(t)}var r=n(84),i=n(200),a=n(201),s="[object Null]",c="[object Undefined]",u=r?r.toStringTag:void 0;t.exports=o},function(t,e){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,function(){return this}())},function(t,e,n){var o=n(202),r=o(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){function o(t){var e=a.call(t,c),n=t[c];try{t[c]=void 0;var o=!0}catch(t){}var r=s.call(t);return o&&(e?t[c]=n:delete t[c]),r}var r=n(84),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,c=r?r.toStringTag:void 0;t.exports=o},function(t,e){function n(t){return r.call(t)}var o=Object.prototype,r=o.toString;t.exports=n},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e,n){var o=n(198),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();t.exports=i},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e,n){function o(t){if(!a(t)||r(t)!=s)return!1;var e=i(t);if(null===e)return!0;var n=d.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==h}var r=n(197),i=n(199),a=n(204),s="[object Object]",c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,h=l.call(Object);t.exports=o},function(t,e){"use strict";function n(t){var e=/[=:]/g,n={"=":"=0",":":"=2"},o=(""+t).replace(e,function(t){return n[t]});return"$"+o}function o(t){var e=/(=0|=2)/g,n={"=0":"=","=2":":"},o="."===t[0]&&"$"===t[1]?t.substring(2):t.substring(1);return(""+o).replace(e,function(t){return n[t]})}var r={escape:n,unescape:o};t.exports=r},function(t,e,n){(function(e){"use strict";var o=n(19),r=n(2),i=function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)},a=function(t,e){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,t,e),o}return new n(t,e)},s=function(t,e,n){var o=this;if(o.instancePool.length){var r=o.instancePool.pop();return o.call(r,t,e,n),r}return new o(t,e,n)},c=function(t,e,n,o){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,t,e,n,o),i}return new r(t,e,n,o)},u=function(t,e,n,o,r){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,t,e,n,o,r),a}return new i(t,e,n,o,r)},l=function(t){var n=this;t instanceof n?void 0:"production"!==e.env.NODE_ENV?r(!1,"Trying to release an instance into a pool of a different type."):o("25"),t.destructor(),n.instancePool.length<n.poolSize&&n.instancePool.push(t)},d=10,h=i,p=function(t,e){var n=t;return n.instancePool=[],n.getPooled=e||h,n.poolSize||(n.poolSize=d),n.release=l,n},f={addPoolingTo:p,oneArgumentPooler:i,twoArgumentPooler:a,threeArgumentPooler:s,fourArgumentPooler:c,fiveArgumentPooler:u};t.exports=f}).call(e,n(1))},function(t,e,n){"use strict";function o(t){return(""+t).replace(b,"$&/")}function r(t,e){this.func=t,this.context=e,this.count=0}function i(t,e,n){var o=t.func,r=t.context;o.call(r,e,t.count++)}function a(t,e,n){if(null==t)return t;var o=r.getPooled(e,n);m(t,i,o),r.release(o)}function s(t,e,n,o){this.result=t,this.keyPrefix=e,this.func=n,this.context=o,this.count=0}function c(t,e,n){var r=t.result,i=t.keyPrefix,a=t.func,s=t.context,c=a.call(s,e,t.count++);Array.isArray(c)?u(c,r,n,g.thatReturnsArgument):null!=c&&(v.isValidElement(c)&&(c=v.cloneAndReplaceKey(c,i+(!c.key||e&&e.key===c.key?"":o(c.key)+"/")+n)),r.push(c))}function u(t,e,n,r,i){var a="";null!=n&&(a=o(n)+"/");var u=s.getPooled(e,a,r,i);m(t,c,u),s.release(u)}function l(t,e,n){if(null==t)return t;var o=[];return u(t,o,null,e,n),o}function d(t,e,n){return null}function h(t,e){return m(t,d,null)}function p(t){var e=[];return u(t,e,null,g.thatReturnsArgument),e}var f=n(207),v=n(18),g=n(10),m=n(216),y=f.twoArgumentPooler,_=f.fourArgumentPooler,b=/\/+/g;r.prototype.destructor=function(){
  this.func=null,this.context=null,this.count=0},f.addPoolingTo(r,y),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},f.addPoolingTo(s,_);var E={forEach:a,map:l,mapIntoWithKeyPrefixInternal:u,count:h,toArray:p};t.exports=E},function(t,e,n){(function(e){"use strict";function o(t){return t}function r(t,n,o){for(var r in n)n.hasOwnProperty(r)&&("production"!==e.env.NODE_ENV?E("function"==typeof n[r],"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",t.displayName||"ReactClass",m[o],r):void 0)}function i(t,n){var o=w.hasOwnProperty(n)?w[n]:null;S.hasOwnProperty(n)&&("OVERRIDE_BASE"!==o?"production"!==e.env.NODE_ENV?b(!1,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",n):p("73",n):void 0),t&&("DEFINE_MANY"!==o&&"DEFINE_MANY_MERGED"!==o?"production"!==e.env.NODE_ENV?b(!1,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n):p("74",n):void 0)}function a(t,n){if(n){"function"==typeof n?"production"!==e.env.NODE_ENV?b(!1,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."):p("75"):void 0,g.isValidElement(n)?"production"!==e.env.NODE_ENV?b(!1,"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object."):p("76"):void 0;var o=t.prototype,r=o.__reactAutoBindPairs;n.hasOwnProperty(C)&&x.mixins(t,n.mixins);for(var a in n)if(n.hasOwnProperty(a)&&a!==C){var s=n[a],c=o.hasOwnProperty(a);if(i(c,a),x.hasOwnProperty(a))x[a](t,s);else{var d=w.hasOwnProperty(a),h="function"==typeof s,f=h&&!d&&!c&&n.autobind!==!1;if(f)r.push(a,s),o[a]=s;else if(c){var v=w[a];!d||"DEFINE_MANY_MERGED"!==v&&"DEFINE_MANY"!==v?"production"!==e.env.NODE_ENV?b(!1,"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",v,a):p("77",v,a):void 0,"DEFINE_MANY_MERGED"===v?o[a]=u(o[a],s):"DEFINE_MANY"===v&&(o[a]=l(o[a],s))}else o[a]=s,"production"!==e.env.NODE_ENV&&"function"==typeof s&&n.displayName&&(o[a].displayName=n.displayName+"_"+a)}}}else if("production"!==e.env.NODE_ENV){var m=typeof n,y="object"===m&&null!==n;"production"!==e.env.NODE_ENV?E(y,"%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.",t.displayName||"ReactClass",null===n?null:m):void 0}}function s(t,n){if(n)for(var o in n){var r=n[o];if(n.hasOwnProperty(o)){var i=o in x;i?"production"!==e.env.NODE_ENV?b(!1,'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.',o):p("78",o):void 0;var a=o in t;a?"production"!==e.env.NODE_ENV?b(!1,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",o):p("79",o):void 0,t[o]=r}}}function c(t,n){t&&n&&"object"==typeof t&&"object"==typeof n?void 0:"production"!==e.env.NODE_ENV?b(!1,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."):p("80");for(var o in n)n.hasOwnProperty(o)&&(void 0!==t[o]?"production"!==e.env.NODE_ENV?b(!1,"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.",o):p("81",o):void 0,t[o]=n[o]);return t}function u(t,e){return function(){var n=t.apply(this,arguments),o=e.apply(this,arguments);if(null==n)return o;if(null==o)return n;var r={};return c(r,n),c(r,o),r}}function l(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function d(t,n){var o=n.bind(t);if("production"!==e.env.NODE_ENV){o.__reactBoundContext=t,o.__reactBoundMethod=n,o.__reactBoundArguments=null;var r=t.constructor.displayName,i=o.bind;o.bind=function(a){for(var s=arguments.length,c=Array(s>1?s-1:0),u=1;u<s;u++)c[u-1]=arguments[u];if(a!==t&&null!==a)"production"!==e.env.NODE_ENV?E(!1,"bind(): React component methods may only be bound to the component instance. See %s",r):void 0;else if(!c.length)return"production"!==e.env.NODE_ENV?E(!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):void 0,o;var l=i.apply(o,arguments);return l.__reactBoundContext=t,l.__reactBoundMethod=n,l.__reactBoundArguments=c,l}}return o}function h(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var o=e[n],r=e[n+1];t[o]=d(t,r)}}var p=n(19),f=n(5),v=n(50),g=n(18),m=n(52),y=n(51),_=n(23),b=n(2),E=n(3),C="mixins",N=[],w={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"},x={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)a(t,e[n])},childContextTypes:function(t,n){"production"!==e.env.NODE_ENV&&r(t,n,"childContext"),t.childContextTypes=f({},t.childContextTypes,n)},contextTypes:function(t,n){"production"!==e.env.NODE_ENV&&r(t,n,"context"),t.contextTypes=f({},t.contextTypes,n)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=u(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,n){"production"!==e.env.NODE_ENV&&r(t,n,"prop"),t.propTypes=f({},t.propTypes,n)},statics:function(t,e){s(t,e)},autobind:function(){}},S={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t),e&&this.updater.enqueueCallback(this,e,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},D=function(){};f(D.prototype,v.prototype,S);var O={createClass:function(t){var n=o(function(t,o,r){"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?E(this instanceof n,"Something is calling a React component directly. Use a factory or JSX instead. See: https://fb.me/react-legacyfactory"):void 0),this.__reactAutoBindPairs.length&&h(this),this.props=t,this.context=o,this.refs=_,this.updater=r||y,this.state=null;var i=this.getInitialState?this.getInitialState():null;"production"!==e.env.NODE_ENV&&void 0===i&&this.getInitialState._isMockFunction&&(i=null),"object"!=typeof i||Array.isArray(i)?"production"!==e.env.NODE_ENV?b(!1,"%s.getInitialState(): must return an object or null",n.displayName||"ReactCompositeComponent"):p("82",n.displayName||"ReactCompositeComponent"):void 0,this.state=i});n.prototype=new D,n.prototype.constructor=n,n.prototype.__reactAutoBindPairs=[],N.forEach(a.bind(null,n)),a(n,t),n.getDefaultProps&&(n.defaultProps=n.getDefaultProps()),"production"!==e.env.NODE_ENV&&(n.getDefaultProps&&(n.getDefaultProps.isReactClassApproved={}),n.prototype.getInitialState&&(n.prototype.getInitialState.isReactClassApproved={})),n.prototype.render?void 0:"production"!==e.env.NODE_ENV?b(!1,"createClass(...): Class specification must implement a `render` method."):p("83"),"production"!==e.env.NODE_ENV&&("production"!==e.env.NODE_ENV?E(!n.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.",t.displayName||"A component"):void 0,"production"!==e.env.NODE_ENV?E(!n.prototype.componentWillRecieveProps,"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",t.displayName||"A component"):void 0);for(var r in w)n.prototype[r]||(n.prototype[r]=null);return n},injection:{injectMixin:function(t){N.push(t)}}};t.exports=O}).call(e,n(1))},function(t,e,n){(function(e){"use strict";var o=n(18),r=o.createFactory;if("production"!==e.env.NODE_ENV){var i=n(86);r=i.createFactory}var a={a:r("a"),abbr:r("abbr"),address:r("address"),area:r("area"),article:r("article"),aside:r("aside"),audio:r("audio"),b:r("b"),base:r("base"),bdi:r("bdi"),bdo:r("bdo"),big:r("big"),blockquote:r("blockquote"),body:r("body"),br:r("br"),button:r("button"),canvas:r("canvas"),caption:r("caption"),cite:r("cite"),code:r("code"),col:r("col"),colgroup:r("colgroup"),data:r("data"),datalist:r("datalist"),dd:r("dd"),del:r("del"),details:r("details"),dfn:r("dfn"),dialog:r("dialog"),div:r("div"),dl:r("dl"),dt:r("dt"),em:r("em"),embed:r("embed"),fieldset:r("fieldset"),figcaption:r("figcaption"),figure:r("figure"),footer:r("footer"),form:r("form"),h1:r("h1"),h2:r("h2"),h3:r("h3"),h4:r("h4"),h5:r("h5"),h6:r("h6"),head:r("head"),header:r("header"),hgroup:r("hgroup"),hr:r("hr"),html:r("html"),i:r("i"),iframe:r("iframe"),img:r("img"),input:r("input"),ins:r("ins"),kbd:r("kbd"),keygen:r("keygen"),label:r("label"),legend:r("legend"),li:r("li"),link:r("link"),main:r("main"),map:r("map"),mark:r("mark"),menu:r("menu"),menuitem:r("menuitem"),meta:r("meta"),meter:r("meter"),nav:r("nav"),noscript:r("noscript"),object:r("object"),ol:r("ol"),optgroup:r("optgroup"),option:r("option"),output:r("output"),p:r("p"),param:r("param"),picture:r("picture"),pre:r("pre"),progress:r("progress"),q:r("q"),rp:r("rp"),rt:r("rt"),ruby:r("ruby"),s:r("s"),samp:r("samp"),script:r("script"),section:r("section"),select:r("select"),small:r("small"),source:r("source"),span:r("span"),strong:r("strong"),style:r("style"),sub:r("sub"),summary:r("summary"),sup:r("sup"),table:r("table"),tbody:r("tbody"),td:r("td"),textarea:r("textarea"),tfoot:r("tfoot"),th:r("th"),thead:r("thead"),time:r("time"),title:r("title"),tr:r("tr"),track:r("track"),u:r("u"),ul:r("ul"),var:r("var"),video:r("video"),wbr:r("wbr"),circle:r("circle"),clipPath:r("clipPath"),defs:r("defs"),ellipse:r("ellipse"),g:r("g"),image:r("image"),line:r("line"),linearGradient:r("linearGradient"),mask:r("mask"),path:r("path"),pattern:r("pattern"),polygon:r("polygon"),polyline:r("polyline"),radialGradient:r("radialGradient"),rect:r("rect"),stop:r("stop"),svg:r("svg"),text:r("text"),tspan:r("tspan")};t.exports=a}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function r(t){this.message=t,this.stack=""}function i(t){function n(n,i,a,s,c,u,l){if(s=s||D,u=u||a,"production"!==e.env.NODE_ENV&&l!==N&&"undefined"!=typeof console){var d=s+":"+a;o[d]||("production"!==e.env.NODE_ENV?S(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will not work in production with the next major version. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",u,s):void 0,o[d]=!0)}if(null==i[a]){var h=C[c];return n?new r(null===i[a]?"The "+h+" `"+u+"` is marked as required "+("in `"+s+"`, but its value is `null`."):"The "+h+" `"+u+"` is marked as required in "+("`"+s+"`, but its value is `undefined`.")):null}return t(i,a,s,c,u)}if("production"!==e.env.NODE_ENV)var o={};var i=n.bind(null,!1);return i.isRequired=n.bind(null,!0),i}function a(t){function e(e,n,o,i,a,s){var c=e[n],u=y(c);if(u!==t){var l=C[i],d=_(c);return new r("Invalid "+l+" `"+a+"` of type "+("`"+d+"` supplied to `"+o+"`, expected ")+("`"+t+"`."))}return null}return i(e)}function s(){return i(w.thatReturns(null))}function c(t){function e(e,n,o,i,a){if("function"!=typeof t)return new r("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var s=e[n];if(!Array.isArray(s)){var c=C[i],u=y(s);return new r("Invalid "+c+" `"+a+"` of type "+("`"+u+"` supplied to `"+o+"`, expected an array."))}for(var l=0;l<s.length;l++){var d=t(s,l,o,i,a+"["+l+"]",N);if(d instanceof Error)return d}return null}return i(e)}function u(){function t(t,e,n,o,i){var a=t[e];if(!E.isValidElement(a)){var s=C[o],c=y(a);return new r("Invalid "+s+" `"+i+"` of type "+("`"+c+"` supplied to `"+n+"`, expected a single ReactElement."))}return null}return i(t)}function l(t){function e(e,n,o,i,a){if(!(e[n]instanceof t)){var s=C[i],c=t.name||D,u=b(e[n]);return new r("Invalid "+s+" `"+a+"` of type "+("`"+u+"` supplied to `"+o+"`, expected ")+("instance of `"+c+"`."))}return null}return i(e)}function d(t){function n(e,n,i,a,s){for(var c=e[n],u=0;u<t.length;u++)if(o(c,t[u]))return null;var l=C[a],d=JSON.stringify(t);return new r("Invalid "+l+" `"+s+"` of value `"+c+"` "+("supplied to `"+i+"`, expected one of "+d+"."))}return Array.isArray(t)?i(n):("production"!==e.env.NODE_ENV?S(!1,"Invalid argument supplied to oneOf, expected an instance of array."):void 0,w.thatReturnsNull)}function h(t){function e(e,n,o,i,a){if("function"!=typeof t)return new r("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var s=e[n],c=y(s);if("object"!==c){var u=C[i];return new r("Invalid "+u+" `"+a+"` of type "+("`"+c+"` supplied to `"+o+"`, expected an object."))}for(var l in s)if(s.hasOwnProperty(l)){var d=t(s,l,o,i,a+"."+l,N);if(d instanceof Error)return d}return null}return i(e)}function p(t){function n(e,n,o,i,a){for(var s=0;s<t.length;s++){var c=t[s];if(null==c(e,n,o,i,a,N))return null}var u=C[i];return new r("Invalid "+u+" `"+a+"` supplied to "+("`"+o+"`."))}return Array.isArray(t)?i(n):("production"!==e.env.NODE_ENV?S(!1,"Invalid argument supplied to oneOfType, expected an instance of array."):void 0,w.thatReturnsNull)}function f(){function t(t,e,n,o,i){if(!g(t[e])){var a=C[o];return new r("Invalid "+a+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return i(t)}function v(t){function e(e,n,o,i,a){var s=e[n],c=y(s);if("object"!==c){var u=C[i];return new r("Invalid "+u+" `"+a+"` of type `"+c+"` "+("supplied to `"+o+"`, expected `object`."))}for(var l in t){var d=t[l];if(d){var h=d(s,l,o,i,a+"."+l,N);if(h)return h}}return null}return i(e)}function g(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(g);if(null===t||E.isValidElement(t))return!0;var e=x(t);if(!e)return!1;var n,o=e.call(t);if(e!==t.entries){for(;!(n=o.next()).done;)if(!g(n.value))return!1}else for(;!(n=o.next()).done;){var r=n.value;if(r&&!g(r[1]))return!1}return!0;default:return!1}}function m(t,e){return"symbol"===t||("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}function y(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":m(e,t)?"symbol":e}function _(t){var e=y(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function b(t){return t.constructor&&t.constructor.name?t.constructor.name:D}var E=n(18),C=n(52),N=n(87),w=n(10),x=n(54),S=n(3),D="<<anonymous>>",O={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:s(),arrayOf:c,element:u(),instanceOf:l,node:f(),objectOf:h,oneOf:d,oneOfType:p,shape:v};r.prototype=Error.prototype,t.exports=O}).call(e,n(1))},function(t,e,n){"use strict";function o(t,e,n){this.props=t,this.context=e,this.refs=c,this.updater=n||s}function r(){}var i=n(5),a=n(50),s=n(51),c=n(23);r.prototype=a.prototype,o.prototype=new r,o.prototype.constructor=o,i(o.prototype,a.prototype),o.prototype.isPureReactComponent=!0,t.exports=o},function(t,e){"use strict";t.exports="15.4.1"},function(t,e,n){(function(e){"use strict";function o(t,o,d,h,p,f){for(var v in t)if(t.hasOwnProperty(v)){var g;try{"function"!=typeof t[v]?"production"!==e.env.NODE_ENV?c(!1,"%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.",h||"React class",a[d],v):i("84",h||"React class",a[d],v):void 0,g=t[v](o,v,h,d,null,s)}catch(t){g=t}if("production"!==e.env.NODE_ENV?u(!g||g 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).",h||"React class",a[d],v,typeof g):void 0,g instanceof Error&&!(g.message in l)){l[g.message]=!0;var m="";"production"!==e.env.NODE_ENV&&(r||(r=n(8)),null!==f?m=r.getStackAddendumByID(f):null!==p&&(m=r.getCurrentStackAddendum(p))),"production"!==e.env.NODE_ENV?u(!1,"Failed %s type: %s%s",d,g.message,m):void 0}}}var r,i=n(19),a=n(52),s=n(87),c=n(2),u=n(3);"undefined"!=typeof e&&e.env&&"test"===e.env.NODE_ENV&&(r=n(8));var l={};t.exports=o}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t){return i.isValidElement(t)?void 0:"production"!==e.env.NODE_ENV?a(!1,"React.Children.only expected to receive a single React element child."):r("143"),t}var r=n(19),i=n(18),a=n(2);t.exports=o}).call(e,n(1))},function(t,e,n){(function(e){"use strict";function o(t,e){return t&&"object"==typeof t&&null!=t.key?d.escape(t.key):e.toString(36)}function r(t,n,i,g){var m=typeof t;if("undefined"!==m&&"boolean"!==m||(t=null),null===t||"string"===m||"number"===m||"object"===m&&t.$$typeof===c)return i(g,t,""===n?p+o(t,0):n),1;var y,_,b=0,E=""===n?p:n+f;if(Array.isArray(t))for(var C=0;C<t.length;C++)y=t[C],_=E+o(y,C),b+=r(y,_,i,g);else{var N=u(t);if(N){var w,x=N.call(t);if(N!==t.entries)for(var S=0;!(w=x.next()).done;)y=w.value,_=E+o(y,S++),b+=r(y,_,i,g);else{if("production"!==e.env.NODE_ENV){var D="";if(s.current){var O=s.current.getName();O&&(D=" Check the render method of `"+O+"`.")}"production"!==e.env.NODE_ENV?h(v,"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",D):void 0,v=!0}for(;!(w=x.next()).done;){var T=w.value;T&&(y=T[1],_=E+d.escape(T[0])+f+o(y,0),b+=r(y,_,i,g))}}}else if("object"===m){var P="";if("production"!==e.env.NODE_ENV&&(P=" 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.",t._isReactElement&&(P=" It looks like you're using an element created by a different version of React. Make sure to use only one copy of React."),s.current)){var k=s.current.getName();k&&(P+=" Check the render method of `"+k+"`.")}var I=String(t);"production"!==e.env.NODE_ENV?l(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===I?"object with keys {"+Object.keys(t).join(", ")+"}":I,P):a("31","[object Object]"===I?"object with keys {"+Object.keys(t).join(", ")+"}":I,P)}}return b}function i(t,e,n){return null==t?0:r(t,"",e,n)}var a=n(19),s=n(12),c=n(85),u=n(54),l=n(2),d=n(206),h=n(3),p=".",f=":",v=!1;t.exports=i}).call(e,n(1))},function(t,e,n){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(n,o,r){var a=t(n,o,r),c=a.dispatch,u=[],l={getState:a.getState,dispatch:function(t){return c(t)}};return u=e.map(function(t){return t(l)}),c=s.default.apply(void 0,u)(a.dispatch),i({},a,{dispatch:c})}}}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};e.default=r;var a=n(88),s=o(a)},function(t,e){"use strict";function n(t,e){return function(){return e(t.apply(void 0,arguments))}}function o(t,e){if("function"==typeof t)return n(t,e);if("object"!=typeof t||null===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var o=Object.keys(t),r={},i=0;i<o.length;i++){var a=o[i],s=t[a];"function"==typeof s&&(r[a]=n(s,e))}return r}e.__esModule=!0,e.default=o},function(t,e,n){(function(t){"use strict";function o(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var n=e&&e.type,o=n&&'"'+n.toString()+'"'||"an action";return"Given action "+o+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state.'}function i(t,e,n,o){var r=Object.keys(e),i=n&&n.type===c.ActionTypes.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(0===r.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!(0,l.default)(t))return"The "+i+' has unexpected type of "'+{}.toString.call(t).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+r.join('", "')+'"');var a=Object.keys(t).filter(function(t){return!e.hasOwnProperty(t)&&!o[t]});return a.forEach(function(t){o[t]=!0}),a.length>0?"Unexpected "+(a.length>1?"keys":"key")+" "+('"'+a.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+r.join('", "')+'". Unexpected keys will be ignored.'):void 0}function a(t){Object.keys(t).forEach(function(e){var n=t[e],o=n(void 0,{type:c.ActionTypes.INIT});if("undefined"==typeof o)throw new Error('Reducer "'+e+'" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined.');var r="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:r}))throw new Error('Reducer "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle "+c.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined.")})}function s(e){for(var n=Object.keys(e),o={},s=0;s<n.length;s++){var c=n[s];"production"!==t.env.NODE_ENV&&"undefined"==typeof e[c]&&(0,h.default)('No reducer provided for key "'+c+'"'),"function"==typeof e[c]&&(o[c]=e[c])}var u=Object.keys(o);if("production"!==t.env.NODE_ENV)var l={};var d;try{a(o)}catch(t){d=t}return function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=arguments[1];if(d)throw d;if("production"!==t.env.NODE_ENV){var a=i(e,o,n,l);a&&(0,h.default)(a)}for(var s=!1,c={},p=0;p<u.length;p++){var f=u[p],v=o[f],g=e[f],m=v(g,n);if("undefined"==typeof m){var y=r(f,n);throw new Error(y)}c[f]=m,s=s||m!==g}return s?c:e}}e.__esModule=!0,e.default=s;var c=n(89),u=n(92),l=o(u),d=n(90),h=o(d)}).call(e,n(1))},function(t,e,n){function o(t){return null==t?void 0===t?c:s:u&&u in Object(t)?i(t):a(t)}var r=n(91),i=n(223),a=n(224),s="[object Null]",c="[object Undefined]",u=r?r.toStringTag:void 0;t.exports=o},function(t,e){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,function(){return this}())},function(t,e,n){var o=n(225),r=o(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){function o(t){var e=a.call(t,c),n=t[c];try{t[c]=void 0;var o=!0}catch(t){}var r=s.call(t);return o&&(e?t[c]=n:delete t[c]),r}var r=n(91),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,c=r?r.toStringTag:void 0;t.exports=o},function(t,e){function n(t){return r.call(t)}var o=Object.prototype,r=o.toString;t.exports=n},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e,n){var o=n(221),r="object"==typeof self&&self&&self.Object===Object&&self,i=o||r||Function("return this")();t.exports=i},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e,n){t.exports=n(229)},function(t,e,n){(function(t,o){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i,a=n(230),s=r(a);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof t?t:o;var c=(0,s.default)(i);e.default=c}).call(e,function(){return this}(),n(231)(t))},function(t,e){"use strict";function n(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){},function(t,e){}]);