UNPKG

react-orchestra

Version:

A toolbox to build interactive and smart instruments on the web and mobile.

2 lines 592 kB
!function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="/",t(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var n=t.slice(1),r=e[t[0]];return function(e,t,a){r.apply(this,[e,t,a].concat(n))}}(e[t]);break;default:e[t]=e[e[t]]}return e}([function(e,t,n){n(319),e.exports=n(322)},function(e,t,n){"use strict";function r(e,t,n,r,a,i,o,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,i,o,s],l=0;u=new Error(t.replace(/%s/g,function(){return c[l++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}e.exports=r},function(e,t){"use strict";function n(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var a=new Error(n);throw a.name="Invariant Violation",a.framesToPop=1,a}e.exports=n},function(e,t,n){"use strict";var r=n(9),a=r;e.exports=a},function(e,t){"use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function r(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach(function(e){a[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(i){return!1}}var a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=r()?Object.assign:function(e,t){for(var r,o,s=n(e),u=1;u<arguments.length;u++){r=Object(arguments[u]);for(var c in r)a.call(r,c)&&(s[c]=r[c]);if(Object.getOwnPropertySymbols){o=Object.getOwnPropertySymbols(r);for(var l=0;l<o.length;l++)i.call(r,o[l])&&(s[o[l]]=r[o[l]])}}return s}},function(e,t,n){"use strict";function r(e){for(var t;t=e._renderedComponent;)e=t;return e}function a(e,t){var n=r(e);n._hostNode=t,t[m]=n}function i(e){var t=e._hostNode;t&&(delete t[m],e._hostNode=null)}function o(e,t){if(!(e._flags&h.hasCachedChildNodes)){var n=e._renderedChildren,i=t.firstChild;e:for(var o in n)if(n.hasOwnProperty(o)){var s=n[o],u=r(s)._domID;if(0!==u){for(;null!==i;i=i.nextSibling)if(1===i.nodeType&&i.getAttribute(p)===String(u)||8===i.nodeType&&i.nodeValue===" react-text: "+u+" "||8===i.nodeType&&i.nodeValue===" react-empty: "+u+" "){a(s,i);continue e}l("32",u)}}e._flags|=h.hasCachedChildNodes}}function s(e){if(e[m])return e[m];for(var t=[];!e[m];){if(t.push(e),!e.parentNode)return null;e=e.parentNode}for(var n,r;e&&(r=e[m]);e=t.pop())n=r,t.length&&o(r,e);return n}function u(e){var t=s(e);return null!=t&&t._hostNode===e?t:null}function c(e){if(void 0===e._hostNode?l("33"):void 0,e._hostNode)return e._hostNode;for(var t=[];!e._hostNode;)t.push(e),e._hostParent?void 0:l("34"),e=e._hostParent;for(;t.length;e=t.pop())o(e,e._hostNode);return e._hostNode}var l=n(2),f=n(33),d=n(139),p=(n(1),f.ID_ATTRIBUTE_NAME),h=d,m="__reactInternalInstance$"+Math.random().toString(36).slice(2),v={getClosestInstanceFromNode:s,getInstanceFromNode:u,getNodeFromInstance:c,precacheChildNodes:o,precacheNode:a,uncacheNode:i};e.exports=v},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t,n){var r=n(72)("wks"),a=n(50),i=n(18).Symbol,o="function"==typeof i,s=e.exports=function(e){return r[e]||(r[e]=o&&i[e]||(o?i:a)("Symbol."+e))};s.store=r},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){"use strict";var r=null;e.exports={debugTool:r}},function(e,t,n){"use strict";e.exports=n(341)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(195),i=r(a);t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){"use strict";function r(e){return void 0!==e.ref}function a(e){return void 0!==e.key}var i=n(4),o=n(21),s=(n(3),n(152),Object.prototype.hasOwnProperty),u="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,c={key:!0,ref:!0,__self:!0,__source:!0},l=function(e,t,n,r,a,i,o){var s={$$typeof:u,type:e,key:t,ref:n,props:o,_owner:i};return s};l.createElement=function(e,t,n){var i,u={},f=null,d=null,p=null,h=null;if(null!=t){r(t)&&(d=t.ref),a(t)&&(f=""+t.key),p=void 0===t.__self?null:t.__self,h=void 0===t.__source?null:t.__source;for(i in t)s.call(t,i)&&!c.hasOwnProperty(i)&&(u[i]=t[i])}var m=arguments.length-2;if(1===m)u.children=n;else if(m>1){for(var v=Array(m),b=0;b<m;b++)v[b]=arguments[b+2];u.children=v}if(e&&e.defaultProps){var g=e.defaultProps;for(i in g)void 0===u[i]&&(u[i]=g[i])}return l(e,f,d,p,h,o.current,u)},l.createFactory=function(e){var t=l.createElement.bind(null,e);return t.type=e,t},l.cloneAndReplaceKey=function(e,t){var n=l(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},l.cloneElement=function(e,t,n){var u,f=i({},e.props),d=e.key,p=e.ref,h=e._self,m=e._source,v=e._owner;if(null!=t){r(t)&&(p=t.ref,v=o.current),a(t)&&(d=""+t.key);var b;e.type&&e.type.defaultProps&&(b=e.type.defaultProps);for(u in t)s.call(t,u)&&!c.hasOwnProperty(u)&&(void 0===t[u]&&void 0!==b?f[u]=b[u]:f[u]=t[u])}var g=arguments.length-2;if(1===g)f.children=n;else if(g>1){for(var y=Array(g),_=0;_<g;_++)y[_]=arguments[_+2];f.children=y}return l(e.type,d,p,h,m,v,f)},l.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===u},l.REACT_ELEMENT_TYPE=u,e.exports=l},function(e,t,n){"use strict";function r(){M.ReactReconcileTransaction&&C?void 0:l("123")}function a(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=d.getPooled(),this.reconcileTransaction=M.ReactReconcileTransaction.getPooled(!0)}function i(e,t,n,a,i,o){r(),C.batchedUpdates(e,t,n,a,i,o)}function o(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;t!==b.length?l("124",t,b.length):void 0,b.sort(o),g++;for(var n=0;n<t;n++){var r=b[n],a=r._pendingCallbacks;r._pendingCallbacks=null;var i;if(h.logTopLevelRenders){var s=r;r._currentElement.props===r._renderedComponent._currentElement&&(s=r._renderedComponent),i="React update: "+s.getName(),console.time(i)}if(m.performUpdateIfNecessary(r,e.reconcileTransaction,g),i&&console.timeEnd(i),a)for(var u=0;u<a.length;u++)e.callbackQueue.enqueue(a[u],r.getPublicInstance())}}function u(e){return r(),C.isBatchingUpdates?(b.push(e),void(null==e._updateBatchNumber&&(e._updateBatchNumber=g+1))):void C.batchedUpdates(u,e)}function c(e,t){C.isBatchingUpdates?void 0:l("125"),y.enqueue(e,t),_=!0}var l=n(2),f=n(4),d=n(135),p=n(20),h=n(142),m=n(34),v=n(44),b=(n(1),[]),g=0,y=d.getPooled(),_=!1,C=null,T={initialize:function(){this.dirtyComponentsLength=b.length},close:function(){this.dirtyComponentsLength!==b.length?(b.splice(0,this.dirtyComponentsLength),A()):b.length=0}},E={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},w=[T,E];f(a.prototype,v.Mixin,{getTransactionWrappers:function(){return w},destructor:function(){this.dirtyComponentsLength=null,d.release(this.callbackQueue),this.callbackQueue=null,M.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return v.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),p.addPoolingTo(a);var A=function(){for(;b.length||_;){if(b.length){var e=a.getPooled();e.perform(s,null,e),a.release(e)}if(_){_=!1;var t=y;y=d.getPooled(),t.notifyAll(),d.release(t)}}},S={injectReconcileTransaction:function(e){e?void 0:l("126"),M.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e?void 0:l("127"),"function"!=typeof e.batchedUpdates?l("128"):void 0,"boolean"!=typeof e.isBatchingUpdates?l("129"):void 0,C=e}},M={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:u,flushBatchedUpdates:A,injection:S,asap:c};e.exports=M},function(e,t,n){"use strict";var r=n(52),a=r({bubbled:null,captured:null}),i=r({topAbort:null,topAnimationEnd:null,topAnimationIteration:null,topAnimationStart:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topInvalid:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topTransitionEnd:null,topVolumeChange:null,topWaiting:null,topWheel:null}),o={topLevelTypes:i,PropagationPhases:a};e.exports=o},function(e,t,n){"use strict";function r(e,t,n,r){this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n;var a=this.constructor.Interface;for(var i in a)if(a.hasOwnProperty(i)){var s=a[i];s?this[i]=s(n):"target"===i?this.target=r:this[i]=n[i]}var u=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;return u?this.isDefaultPrevented=o.thatReturnsTrue:this.isDefaultPrevented=o.thatReturnsFalse,this.isPropagationStopped=o.thatReturnsFalse,this}var a=n(4),i=n(20),o=n(9),s=(n(3),"function"==typeof Proxy,["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),u={type:null,target:null,currentTarget:o.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};a(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=o.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=o.thatReturnsTrue)},persist:function(){this.isPersistent=o.thatReturnsTrue},isPersistent:o.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;for(var n=0;n<s.length;n++)this[s[n]]=null}}),r.Interface=u,r.augmentClass=function(e,t){var n=this,r=function(){};r.prototype=n.prototype;var o=new r;a(o,e.prototype),e.prototype=o,e.prototype.constructor=e,e.Interface=a({},n.Interface,t),e.augmentClass=n.augmentClass,i.addPoolingTo(e,i.fourArgumentPooler)},i.addPoolingTo(r,i.fourArgumentPooler),e.exports=r},function(e,t,n){var r=n(18),a=n(6),i=n(64),o=n(28),s="prototype",u=function(e,t,n){var c,l,f,d=e&u.F,p=e&u.G,h=e&u.S,m=e&u.P,v=e&u.B,b=e&u.W,g=p?a:a[t]||(a[t]={}),y=g[s],_=p?r:h?r[t]:(r[t]||{})[s];p&&(n=t);for(c in n)l=!d&&_&&void 0!==_[c],l&&c in g||(f=l?_[c]:n[c],g[c]=p&&"function"!=typeof _[c]?n[c]:v&&l?i(f,r):b&&_[c]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[s]=e[s],t}(f):m&&"function"==typeof f?i(Function.call,f):f,m&&((g.virtual||(g.virtual={}))[c]=f,e&u.R&&y&&!y[c]&&o(y,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){"use strict";var n=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};e.exports=n},function(e,t,n){"use strict";var r=n(2),a=(n(1),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},o=function(e,t,n){var r=this;if(r.instancePool.length){var a=r.instancePool.pop();return r.call(a,e,t,n),a}return new r(e,t,n)},s=function(e,t,n,r){var a=this;if(a.instancePool.length){var i=a.instancePool.pop();return a.call(i,e,t,n,r),i}return new a(e,t,n,r)},u=function(e,t,n,r,a){var i=this;if(i.instancePool.length){var o=i.instancePool.pop();return i.call(o,e,t,n,r,a),o}return new i(e,t,n,r,a)},c=function(e){var t=this;e instanceof t?void 0:r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},l=10,f=a,d=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||f,n.poolSize||(n.poolSize=l),n.release=c,n},p={addPoolingTo:d,oneArgumentPooler:a,twoArgumentPooler:i,threeArgumentPooler:o,fourArgumentPooler:s,fiveArgumentPooler:u};e.exports=p},function(e,t){"use strict";var n={current:null};e.exports=n},function(e,t,n){var r=n(29);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(22),a=n(113),i=n(74),o=Object.defineProperty;t.f=n(26)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),a)try{return o(e,t,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(114),a=n(65);e.exports=function(e){return r(a(e))}},function(e,t,n){e.exports=!n(27)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t,n){var r=n(24),a=n(37);e.exports=n(26)?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={}},function(e,t,n){var r=n(119),a=n(66);e.exports=Object.keys||function(e){return r(e,a)}},function(e,t,n){"use strict";function r(e){if(v){var t=e.node,n=e.children;if(n.length)for(var r=0;r<n.length;r++)b(t,n[r],null);else null!=e.html?f(t,e.html):null!=e.text&&p(t,e.text)}}function a(e,t){e.parentNode.replaceChild(t.node,e),r(t)}function i(e,t){v?e.children.push(t):e.node.appendChild(t.node)}function o(e,t){v?e.html=t:f(e.node,t)}function s(e,t){v?e.text=t:p(e.node,t)}function u(){return this.node.nodeName}function c(e){return{node:e,children:[],html:null,text:null,toString:u}}var l=n(84),f=n(57),d=n(98),p=n(159),h=1,m=11,v="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent),b=d(function(e,t,n){t.node.nodeType===m||t.node.nodeType===h&&"object"===t.node.nodeName.toLowerCase()&&(null==t.node.namespaceURI||t.node.namespaceURI===l.html)?(r(t),e.insertBefore(t.node,n)):(e.insertBefore(t.node,n),r(t))});c.insertTreeBefore=b,c.replaceChildWithTree=a,c.queueChild=i,c.queueHTML=o,c.queueText=s,e.exports=c},function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var a=n(2),i=(n(1),{MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(e){var t=i,n=e.Properties||{},o=e.DOMAttributeNamespaces||{},u=e.DOMAttributeNames||{},c=e.DOMPropertyNames||{},l=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var f in n){s.properties.hasOwnProperty(f)?a("48",f):void 0;var d=f.toLowerCase(),p=n[f],h={attributeName:d,attributeNamespace:null,propertyName:f,mutationMethod:null,mustUseProperty:r(p,t.MUST_USE_PROPERTY),hasBooleanValue:r(p,t.HAS_BOOLEAN_VALUE),hasNumericValue:r(p,t.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(p,t.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(p,t.HAS_OVERLOADED_BOOLEAN_VALUE)};if(h.hasBooleanValue+h.hasNumericValue+h.hasOverloadedBooleanValue<=1?void 0:a("50",f),u.hasOwnProperty(f)){var m=u[f];h.attributeName=m}o.hasOwnProperty(f)&&(h.attributeNamespace=o[f]),c.hasOwnProperty(f)&&(h.propertyName=c[f]),l.hasOwnProperty(f)&&(h.mutationMethod=l[f]),s.properties[f]=h}}}),o=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",s={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:o,ATTRIBUTE_NAME_CHAR:o+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){var n=s._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},injection:i};e.exports=s},function(e,t,n){"use strict";function r(){a.attachRefs(this,this._currentElement)}var a=n(369),i=(n(10),n(3),{mountComponent:function(e,t,n,a,i,o){var s=e.mountComponent(t,n,a,i,o);return e._currentElement&&null!=e._currentElement.ref&&t.getReactMountReady().enqueue(r,e),s},getHostNode:function(e){return e.getHostNode()},unmountComponent:function(e,t){a.detachRefs(e,e._currentElement),e.unmountComponent(t)},receiveComponent:function(e,t,n,i){var o=e._currentElement;if(t!==o||i!==e._context){var s=a.shouldUpdateRefs(o,t);s&&a.detachRefs(e,o),e.receiveComponent(t,n,i),s&&e._currentElement&&null!=e._currentElement.ref&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t,n){e._updateBatchNumber===n&&e.performUpdateIfNecessary(t)}});e.exports=i},function(e,t){"use strict";t.__esModule=!0;var n=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];t.default=n,e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function a(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function o(){m&&p&&(m=!1,p.length?h=p.concat(h):v=-1,h.length&&s())}function s(){if(!m){var e=a(o);m=!0;for(var t=h.length;t;){for(p=h,h=[];++v<t;)p&&p[v].run();v=-1,t=h.length}p=null,m=!1,i(e)}}function u(e,t){this.fun=e,this.array=t}function c(){}var l,f,d=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var p,h=[],m=!1,v=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new u(e,t)),1!==h.length||m||a(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(2),a=n(85),i=n(86),o=n(92),s=n(151),u=n(153),c=(n(1),{}),l=null,f=function(e,t){e&&(i.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e))},d=function(e){return f(e,!0)},p=function(e){return f(e,!1)},h=function(e){return"."+e._rootNodeID},m={injection:{injectEventPluginOrder:a.injectEventPluginOrder,injectEventPluginsByName:a.injectEventPluginsByName},putListener:function(e,t,n){"function"!=typeof n?r("94",t,typeof n):void 0;var i=h(e),o=c[t]||(c[t]={});o[i]=n;var s=a.registrationNameModules[t];s&&s.didPutListener&&s.didPutListener(e,t,n)},getListener:function(e,t){var n=c[t],r=h(e);return n&&n[r]},deleteListener:function(e,t){var n=a.registrationNameModules[t];n&&n.willDeleteListener&&n.willDeleteListener(e,t);var r=c[t];if(r){var i=h(e);delete r[i]}},deleteAllListeners:function(e){var t=h(e);for(var n in c)if(c.hasOwnProperty(n)&&c[n][t]){var r=a.registrationNameModules[n];r&&r.willDeleteListener&&r.willDeleteListener(e,n),delete c[n][t]}},extractEvents:function(e,t,n,r){for(var i,o=a.plugins,u=0;u<o.length;u++){var c=o[u];if(c){var l=c.extractEvents(e,t,n,r);l&&(i=s(i,l))}}return i},enqueueEvents:function(e){e&&(l=s(l,e))},processEventQueue:function(e){var t=l;l=null,e?u(t,d):u(t,p),l?r("95"):void 0,o.rethrowCaughtError()},__purge:function(){c={}},__getListenerBank:function(){return c}};e.exports=m},function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return y(e,r)}function a(e,t,n){var a=t?g.bubbled:g.captured,i=r(e,n,a);i&&(n._dispatchListeners=v(n._dispatchListeners,i),n._dispatchInstances=v(n._dispatchInstances,e))}function i(e){e&&e.dispatchConfig.phasedRegistrationNames&&m.traverseTwoPhase(e._targetInst,a,e)}function o(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst,n=t?m.getParentInstance(t):null;m.traverseTwoPhase(n,a,e)}}function s(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,a=y(e,r);a&&(n._dispatchListeners=v(n._dispatchListeners,a),n._dispatchInstances=v(n._dispatchInstances,e))}}function u(e){e&&e.dispatchConfig.registrationName&&s(e._targetInst,null,e)}function c(e){b(e,i)}function l(e){b(e,o)}function f(e,t,n,r){m.traverseEnterLeave(n,r,s,e,t)}function d(e){b(e,u)}var p=n(15),h=n(40),m=n(86),v=n(151),b=n(153),g=(n(3),p.PropagationPhases),y=h.getListener,_={accumulateTwoPhaseDispatches:c,accumulateTwoPhaseDispatchesSkipTarget:l,accumulateDirectDispatches:d,accumulateEnterLeaveDispatches:f};e.exports=_},function(e,t){"use strict";var n={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};e.exports=n},function(e,t,n){"use strict";function r(e,t,n,r){return a.call(this,e,t,n,r)}var a=n(16),i=n(101),o={view:function(e){if(e.view)return e.view;var t=i(e);if(t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};a.augmentClass(r,o),e.exports=r},function(e,t,n){"use strict";var r=n(2),a=(n(1),{reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,a,i,o,s,u){this.isInTransaction()?r("27"):void 0;var c,l;try{this._isInTransaction=!0,c=!0,this.initializeAll(0),l=e.call(t,n,a,i,o,s,u),c=!1}finally{try{if(c)try{this.closeAll(0)}catch(f){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return l},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=i.OBSERVED_ERROR,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===i.OBSERVED_ERROR)try{this.initializeAll(n+1)}catch(a){}}}},closeAll:function(e){this.isInTransaction()?void 0:r("28");for(var t=this.transactionWrappers,n=e;n<t.length;n++){var a,o=t[n],s=this.wrapperInitData[n];try{a=!0,s!==i.OBSERVED_ERROR&&o.close&&o.close.call(this,s),a=!1}finally{if(a)try{this.closeAll(n+1)}catch(u){}}}this.wrapperInitData.length=0}}),i={Mixin:a,OBSERVED_ERROR:{}};e.exports=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=n(108),o=r(i),s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a(this,e),this.payload=o.default.defaultsDeep(t,{name:"A3",noteNumber:-1,gain:1,instrumentName:"acoustic_grand_piano",startTimeInMS:0,durationInMS:100,endTimeInMS:100,fadeDurationInMS:1e3,deltaTime:0,msPerTick:0}),this.payload.id=t.id?t.id:this.payload.instrumentName+"_"+this.payload.name}return e.prototype.setInstrument=function(e){this.payload.instrumentName=e},e.prototype.update=function(e){return this.payload=Object.assign({},this.payload,e),this},e}();t.default=s,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0,t.default=void 0;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=n(190),s=r(o),u=n(191),c=r(u),l=n(189),f=r(l),d=n(188),p=r(d),h=6e7,m=function(){function e(t){a(this,e),this.settings=f.default.defaultsDeep(t,{midiURL:null,parsedMidi:null,BPM:-1}),this.isInitialised=!1}return e.getWriter=function(){return c.default},e.getUniqueFromMidiNotes=function(e){var t=new Set;return e.forEach(function(e){t.add(e.payload.noteName)}),Array.from(t)},e.midiNoteNumberToName=function(e){var t=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],n=Math.floor(e/12)-1,r=e%12;return t[r]+n},e.urlToJSON=function(t){return e.urlToBinaryString(t).then(function(t){return e.binaryStringToJSON(t)})},e.getAllMetadata=function(t,n){var r=t.tracks[0],a=r.reduce(function(e,t,n){var r,a=Object.assign({},e,(r={},r[t.type+"_"+t.subtype]=t,r));return a},{}),i=a.meta_setTempo,o=a.meta_keySignature,s=a.meta_timeSignature,u=a.meta_endOfTrack,c=t.header.ticksPerBeat,l=i.microsecondsPerBeat,f=e.getMillisecondsPerTick(l,c),d=i,h=s,m=o,v=u,b=h.numerator,g=h.denominator,y=h.metronome,_=h.thirtyseconds,C=n.map(function(e){return e.programChange[0].programNumber}),T=C.map(function(e){return Object.keys(p.default).find(function(t){return p.default[t]===e})}),E=e.getBPMData(l,c,h),w=E.BPM,A={tempo:d,keySignature:m,timeSignature:h,timeSignatureNumerator:b,timeSignatureDenominator:g,timeSignatureMetronome:y,timeSignatureThirtyseconds:_,endOfTrack:v,trackCount:n.length,microsecondsPerBeat:l,instrumentNumbers:C,instrumentNames:T,millisecondsPerTick:f,ticksPerBeat:c,BPM:w};return A},e.getAllTracks=function(t){var n=t.tracks.filter(function(e,t){return t>=1}),r=n.map(function(e,t){var n=e.reduce(function(e,t){var n=t.type+"_"+t.subtype,r=Object.assign({},e);return r[n]||(r[n]=[]),r[n].push(t),r},{}),r=n.channel_programChange[0].programNumber,a=Object.keys(p.default).find(function(e){return p.default[e]===r});return{controller:n.channel_controller,programChange:n.channel_programChange,trackname:n.meta_trackName,noteOn:n.channel_noteOn,noteOnValid:n.channel_noteOn.filter(function(e){return e.deltaTime>0}),noteOnInvalid:n.channel_noteOn.filter(function(e){return 0===e.deltaTime}),noteOff:n.channel_noteOff,endOfTrack:n.meta_endOfTrack,noteCount:n.channel_noteOn.filter(function(e){return e.deltaTime>0}).length,instrumentNumber:r,instrumentName:a}}),a=e.getAllMetadata(t,r);return{meta:a,musicTracks:r}},e.getInstrumentNameFromMidiTrack=function(e){var t=e.find(function(e){return"channel"===e.type&&"programChange"===e.subtype}),n=t.programNumber,r=Object.keys(p.default).find(function(e){return p.default[e]===n});return r},e.getInstrumentNumberFromMidiTrack=function(e){var t=e.find(function(e){return"channel"===e.type&&"programChange"===e.subtype}),n=void 0;try{n=t.programNumber}catch(r){n=0,console.warn("COULDN'T FIND INSTRUMENT NUMBER "+n+" defaulting to "+n)}return n},e.binaryStringToJSON=function(e){var t=(0,s.default)(e);return t},e.getNoteOnEvents=function(e){var t=e.filter(function(e){return"channel"===e.type&&"noteOn"===e.subtype}),n=t.filter(function(e){return 0===e.deltaTime}),r=t.filter(function(e){return e.deltaTime>0});return{noteOnEvents:t,validNoteOnEvents:r,invalidNoteOnEvents:n}},e.getNoteOffEvents=function(e){var t=e.filter(function(e){return"channel"===e.type&&"noteOff"===e.subtype}),n=t.filter(function(e){return 0===e.deltaTime}),r=t.filter(function(e){return e.deltaTime>0});return{noteOffEvents:t,validNoteOffEvents:r,invalidNoteOffEvents:n}},e.getTempoFromTrack=function(e){var t=e.find(function(e){return"meta"===e.type&&"setTempo"===e.subtype}),n=t.deltaTime,r=t.microsecondsPerBeat;return{deltaTime:n,microsecondsPerBeat:r}},e.getMetadataFromTrack=function(e){var t,n=void 0,r=void 0,a=void 0,o=void 0;return e.filter(function(e){return"meta"===e.type}).forEach(function(e){switch(e.subtype){case"setTempo":n=e.microsecondsPerBeat;break;case"keySignature":r={key:e.key,scale:e.scale};break;case"timeSignature":a={numerator:e.numerator,denominator:e.denominator,metronome:e.metronome,thirtyseconds:e.thirtyseconds};break;case"endOfTrack":o={};default:return{name:e.subtype,payload:i({},e)}}}),t={microsecondsPerBeat:n,keySignature:r,timeSignature:a,endOfTrack:o},t[event.subtype]=i({},event),t},e.urlToBinaryString=function(e){return Promise.resolve(!0).then(function(){return fetch(e,{method:"GET",headers:{Accept:"audio/mid"}})}).then(function(e){return e.blob()}).then(function(e){return new Promise(function(t){var n=new FileReader;n.onloadend=function(){var e=n.result;t(e)},n.readAsBinaryString(e)})}).catch(function(e){console.warn("ERROR IN URLTOBINARYSTRING, "+JSON.stringify(e))})},e.noteOffEventToNote=function(t,n,r,a){var i=t.noteNumber,o=t.deltaTime,s=e.midiNoteNumberToName(i),u=r,c=o*a,l=u+c;return{noteNumber:i,noteName:s,startTimeInMS:u,durationInMS:c,endTimeInMS:l,noteInstrumentName:n,deltaTime:o,msPerTick:a}},e.getMillisecondsPerTick=function(e,t){var n=e/1e6,r=n/t,a=1e3*r;return a},e.getBPMData=function(e,t,n){var r=n.numerator,a=n.denominator,i=h/e*(a/r);return{BPM:i}},e.bpmToMSPerBeat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4;return h/e*(t/n)},e.prototype.setBPM=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:60;this.millisecondsPerTick=e.getMillisecondsPerTick(e.bpmToMSPerBeat(t,this.timeSignatureNumerator,this.timeSignatureDenominator),this.ticksPerBeat),this.BPM=t},e.prototype.parseMidiOld=function(t){ var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;this.parsedMidi=t,this.ticksPerBeat=t.header.ticksPerBeat;var r=e.getMetadataFromTrack(t.tracks[0]),a=r.microsecondsPerBeat,i=(r.keySignature,r.timeSignature);r.endOfTrack;this.noteOnEvents=e.getNoteOnEvents(t.tracks[1]),this.noteOffEvents=e.getNoteOffEvents(t.tracks[1]),this.millisecondsPerTick=e.getMillisecondsPerTick(a,this.ticksPerBeat);try{this.mainInstrumentNumber=e.getInstrumentNumberFromMidiTrack(t.tracks[1])}catch(o){}try{this.mainInstrumentName=e.getInstrumentNameFromMidiTrack(t.tracks[1])}catch(o){this.mainInstrumentName="acoustic_grand_piano"}this.isInitialised=!0,this.timeSignature=i,this.timeSignatureNumerator=i.numerator,this.timeSignatureDenominator=i.denominator;var s=e.getBPMData(a,this.ticksPerBeat,i),u=s.BPM;return this.BPM=u,n!==-1&&this.setBPM(n),this},e.parseMidi=function(t){return e.urlToJSON(t).then(function(t){var n=e.getAllTracks(t),r=n.meta,a=n.musicTracks;return{meta:r,musicTracks:a}})},e.prototype.init=function(){var t=this;return this.settings.midiURL?e.urlToJSON(this.settings.midiURL).then(function(e){return t.parseMidi(e,t.settings.BPM)}).catch():Promise.resolve(!1)},e}();t.default=m,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(110),i=r(a),o=n(198),s=r(o),u="function"==typeof s.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===u(i.default)?function(e){return"undefined"==typeof e?"undefined":u(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"==typeof e?"undefined":u(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(65);e.exports=function(e){return Object(r(e))}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){"use strict";var r=n(231)(!0);n(115)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var r=n(1),a=function(e){var t,n={};e instanceof Object&&!Array.isArray(e)?void 0:r(!1);for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};e.exports=a},function(e,t){"use strict";var n={onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0},r={getHostProps:function(e,t){if(!t.disabled)return t;var r={};for(var a in t)!n[a]&&t.hasOwnProperty(a)&&(r[a]=t[a]);return r}};e.exports=r},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,v)||(e[v]=h++,d[e[v]]={}),d[e[v]]}var a,i=n(4),o=n(15),s=n(85),u=n(361),c=n(150),l=n(392),f=n(102),d={},p=!1,h=0,m={topAbort:"abort",topAnimationEnd:l("animationend")||"animationend",topAnimationIteration:l("animationiteration")||"animationiteration",topAnimationStart:l("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:l("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},v="_reactListenersID"+String(Math.random()).slice(2),b=i({},u,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(b.handleTopLevel),b.ReactEventListener=e}},setEnabled:function(e){b.ReactEventListener&&b.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!b.ReactEventListener||!b.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,a=r(n),i=s.registrationNameDependencies[e],u=o.topLevelTypes,c=0;c<i.length;c++){var l=i[c];a.hasOwnProperty(l)&&a[l]||(l===u.topWheel?f("wheel")?b.ReactEventListener.trapBubbledEvent(u.topWheel,"wheel",n):f("mousewheel")?b.ReactEventListener.trapBubbledEvent(u.topWheel,"mousewheel",n):b.ReactEventListener.trapBubbledEvent(u.topWheel,"DOMMouseScroll",n):l===u.topScroll?f("scroll",!0)?b.ReactEventListener.trapCapturedEvent(u.topScroll,"scroll",n):b.ReactEventListener.trapBubbledEvent(u.topScroll,"scroll",b.ReactEventListener.WINDOW_HANDLE):l===u.topFocus||l===u.topBlur?(f("focus",!0)?(b.ReactEventListener.trapCapturedEvent(u.topFocus,"focus",n),b.ReactEventListener.trapCapturedEvent(u.topBlur,"blur",n)):f("focusin")&&(b.ReactEventListener.trapBubbledEvent(u.topFocus,"focusin",n),b.ReactEventListener.trapBubbledEvent(u.topBlur,"focusout",n)),a[u.topBlur]=!0,a[u.topFocus]=!0):m.hasOwnProperty(l)&&b.ReactEventListener.trapBubbledEvent(l,m[l],n),a[l]=!0)}},trapBubbledEvent:function(e,t,n){return b.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return b.ReactEventListener.trapCapturedEvent(e,t,n)},supportsEventPageXY:function(){if(!document.createEvent)return!1;var e=document.createEvent("MouseEvent");return null!=e&&"pageX"in e},ensureScrollValueMonitoring:function(){if(void 0===a&&(a=b.supportsEventPageXY()),!a&&!p){var e=c.refreshScrollValues;b.ReactEventListener.monitorScrollValue(e),p=!0}}});e.exports=b},function(e,t,n){"use strict";function r(e,t,n,r){return a.call(this,e,t,n,r)}var a=n(43),i=n(150),o=n(100),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:o,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+i.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+i.currentScrollTop}};a.augmentClass(r,s),e.exports=r},function(e,t){"use strict";function n(e){var t=""+e,n=a.exec(t);if(!n)return t;var r,i="",o=0,s=0;for(o=n.index;o<t.length;o++){switch(t.charCodeAt(o)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#x27;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}s!==o&&(i+=t.substring(s,o)),s=o+1,i+=r}return s!==o?i+t.substring(s,o):i}function r(e){return"boolean"==typeof e||"number"==typeof e?""+e:n(e)}var a=/["'&<>]/;e.exports=r},function(e,t,n){"use strict";var r,a=n(7),i=n(84),o=/^[ \r\n\t\f]/,s=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,u=n(98),c=u(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML="<svg>"+t+"</svg>";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(a.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(c=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),o.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=c},function(e,t,n){e.exports={default:n(202),__esModule:!0}},function(e,t,n){e.exports={default:n(208),__esModule:!0}},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(197),i=r(a),o=n(196),s=r(o),u=n(47),c=r(u);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":(0,c.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(47),i=r(a);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(212);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){e.exports=!0},function(e,t,n){var r=n(22),a=n(228),i=n(66),o=n(71)("IE_PROTO"),s=function(){},u="prototype",c=function(){var e,t=n(112)("iframe"),r=i.length,a="<",o=">";for(t.style.display="none",n(217).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(a+"script"+o+"document.F=Object"+a+"/script"+o),e.close(),c=e.F;r--;)delete c[u][i[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[o]=e):n=c(),void 0===t?n:a(n,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(24).f,a=n(23),i=n(8)("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(72)("keys"),a=n(50);e.exports=function(e){return r[e]||(r[e]=a(e))}},function(e,t,n){var r=n(18),a="__core-js_shared__",i=r[a]||(r[a]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(29);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(18),a=n(6),i=n(67),o=n(76),s=n(24).f;e.exports=function(e){var t=a.Symbol||(a.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},function(e,t,n){t.f=n(8)},function(e,t,n){n(236);for(var r=n(18),a=n(28),i=n(30),o=n(8)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],u=0;u<5;u++){var c=s[u],l=r[c],f=l&&l.prototype;f&&!f[o]&&a(f,o,c),i[c]=i.Array}},function(e,t){"use strict";function n(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function r(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;for(var o=0;o<r.length;o++)if(!a.call(t,r[o])||!n(e[r[o]],t[r[o]]))return!1;return!0}var a=Object.prototype.hasOwnProperty;e.exports=r},function(e,t){function n(e,t,n){return Math.min(Math.max(e,t),n)}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e,t,n){var r=e.nodeType,i=e.data,o=e.collectionLimit,s=e.circularCache,u=e.keyPath,c=e.postprocessValue,l=e.sortObjectKeys,f=[];return(0,_.default)(r,i,l,o,t,n).forEach(function(t){if(t.to)f.push(v.default.createElement(w.default,(0,h.default)({},e,{key:"ItemRange--"+t.from+"-"+t.to,from:t.from,to:t.to,renderChildNodes:a})));else{var n=t.key,r=t.value,i=s.indexOf(r)!==-1,l=v.default.createElement(T.default,(0,h.default)({},e,{postprocessValue:c,collectionLimit:o},{key:"Node--"+n,keyPath:[n].concat(u),value:c(r),circularCache:[].concat(s,[r]),isCircular:i,hideRoot:!1}));l!==!1&&f.push(l)}}),f}t.__esModule=!0,t.default=void 0;var i,o,s=n(60),u=r(s),c=n(62),l=r(c),f=n(61),d=r(f),p=n(12),h=r(p),m=n(11),v=r(m),b=n(129),g=r(b),y=n(314),_=r(y),C=n(130),T=r(C),E=n(308),w=r(E),A=n(131),S=r(A),M=(o=i=function(e){function t(n){(0,u.default)(this,t);var r=(0,l.default)(this,e.call(this,n));r.shouldComponentUpdate=S.default,r.handleClick=function(){return r.setState({expanded:!r.state.expanded})};var a=!(!n.shouldExpandNode||n.isCircular)&&n.shouldExpandNode(n.keyPath,n.data,n.level);return r.state={expanded:a,createdChildNodes:!1},r}return(0,d.default)(t,e),t.prototype.render=function(){var e=this.props,t=e.getItemString,n=e.nodeTypeIndicator,r=e.nodeType,i=e.data,o=e.hideRoot,s=e.createItemString,u=e.styling,c=e.collectionLimit,l=e.keyPath,f=e.labelRenderer,d=e.expandable,p=this.state.expanded,m=p?a((0,h.default)({},this.props,{level:this.props.level+1})):null,b=v.default.createElement("span",u("nestedNodeItemType",p),n),y=t(r,i,b,s(i,c)),_=[l,r,p,d];return o?v.default.createElement("li",u.apply(void 0,["rootNode"].concat(_)),v.default.createElement("ul",u.apply(void 0,["rootNodeChildren"].concat(_)),m)):v.default.createElement("li",u.apply(void 0,["nestedNode"].concat(_)),d&&v.default.createElement(g.default,{styling:u,nodeType:r,expanded:p,onClick:this.handleClick}),v.default.createElement("label",(0,h.default)({},u.apply(void 0,[["label","nestedNodeLabel"]].concat(_)),{onClick:d&&this.handleClick}),f.apply(void 0,_)),v.default.createElement("span",(0,h.default)({},u.apply(void 0,["nestedNodeItemString"].concat(_)),{onClick:d&&this.handleClick}),y),v.default.createElement("ul",u.apply(void 0,["nestedNodeChildren"].concat(_)),m))},t}(v.default.Component),i.propTypes={getItemString:m.PropTypes.func.isRequired,nodeTypeIndicator:m.PropTypes.any,nodeType:m.PropTypes.string.isRequired,data:m.PropTypes.any,hideRoot:m.PropTypes.bool.isRequired,createItemString:m.PropTypes.func.isRequired,styling:m.PropTypes.func.isRequired,collectionLimit:m.PropTypes.number,keyPath:m.PropTypes.arrayOf(m.PropTypes.oneOfType([m.PropTypes.string,m.PropTypes.number])).isRequired,labelRenderer:m.PropTypes.func.isRequired,shouldExpandNode:m.PropTypes.func,level:m.PropTypes.number.isRequired,sortObjectKeys:m.PropTypes.oneOfType([m.PropTypes.func,m.PropTypes.bool]),isCircular:m.PropTypes.bool,expandable:m.PropTypes.bool},i.defaultProps={data:[],circularCache:[],level:0,expandable:!0},o);t.default=M},function(e,t,n){(function(e,r){"use strict";function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function i(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t,n){if(i()<n)throw new RangeError("Invalid typed array length");return e.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(n),t.__proto__=e.prototype):(null===t&&(t=new e(n)),t.length=n),t}function e(t,n,r){if(!(e.TYPED_ARRAY_SUPPORT||this instanceof e))return new e(t,n,r);if("number"==typeof t){if("string"==typeof n)throw new Error("If encoding is specified then the first argument must be a string");return l(this,t)}return s(this,t,n,r)}function s(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?p(e,t,n,r):"string"==typeof t?f(e,t,n):h(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function c(e,t,n,r){return u(t),t<=0?o(e,t):void 0!==n?"string"==typeof r?o(e,t).fill(n,r):o(e,t).fill(n):o(e,t)}function l(t,n){if(u(n),t=o(t,n<0?0:0|m(n)),!e.TYPED_ARRAY_SUPPORT)for(var r=0;r<n;++r)t[r]=0;return t}function f(t,n,r){if("string"==typeof r&&""!==r||(r="utf8"),!e.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var a=0|b(n,r);t=o(t,a);var i=t.write(n,r);return i!==a&&(t=t.slice(0,i)),t}function d(e,t){var n=t.length<0?0:0|m(t.length);e=o(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(t,n,r,a){if(n.byteLength,r<0||n.byteLength<r)throw new RangeError("'offset' is out of bounds");if(n.byteLength<r+(a||0))throw new RangeError("'length' is out of bounds");return n=void 0===r&&void 0===a?new Uint8Array(n):void 0===a?new Uint8Array(n,r):new Uint8Array(n,r,a),e.TYPED_ARRAY_SUPPORT?(t=n,t.__proto__=e.prototype):t=d(t,n),t}function h(t,n){if(e.isBuffer(n)){var r=0|m(n.length);return t=o(t,r),0===t.length?t:(n.copy(t,0,0,r),t)}if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||$(n.length)?o(t,0):d(t,n);if("Buffer"===n.type&&Q(n.data))return d(t,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function m(e){if(e>=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|e}function v(t){return+t!=t&&(t=0),e.all