mojs-1.0.0-beta2/lib/dist/mo.curve-editor.js

lib/dist/mo.curve-editor.js
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("mojs-curve-editor",[],e):"object"==typeof exports?exports["mojs-curve-editor"]=e():t["mojs-curve-editor"]=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="build/",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=r(i),s=n(5),a=r(s),u=n(43),l=r(u),c=n(44),f=r(c),p=n(48),d=n(49),h=n(71),_=r(h),v=n(189),y=r(v),m=n(118),g=(r(m),n(132)),b=r(g),x=n(216),E=r(x),T=n(217),w=r(T),P=n(138),M=(r(P),n(218)),S=r(M),O=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,l.default)(this,t),this._o=e,this._decalareDefaults(),this._extendDefaults(),this._vars(),this._render(),this._tryToRestore(),this._listenUnload(),this._subscribe()}return(0,f.default)(t,[{key:"_decalareDefaults",value:function(){this._defaults={name:"mojs-curve-editor",isSaveState:!0,isHiddenOnMin:!1,startPath:"M0,100 L100,0",onChange:null}}},{key:"_extendDefaults",value:function(){this._props={};for(var t in this._defaults)this._props[t]=(0,E.default)(this._o[t],this._defaults[t])}},{key:"_vars",value:function(){this.revision="1.7.1",this.store=(0,y.default)(),this._easings=[],this._progressLines=[];var t=this._props.name;t+=t===this._defaults.name?"":"__"+this._defaults.name,this._localStorage=t+"__"+(0,b.default)(t),this.store.dispatch({type:"SET_EDITOR_NAME",data:this._localStorage})}},{key:"_render",value:function(){var t=this,e=document,n=e.readyState;return"complete"===n||"loaded"===n||"interactive"===n?this._renderApp():void e.addEventListener("DOMContentLoaded",function(){t._renderApp()})}},{key:"_renderApp",value:function(){var t=this;this._rootEl=(0,d.render)((0,d.h)(p.Provider,{store:this.store},(0,d.h)(_.default,{progressLines:this._progressLines,options:this._props,ref:function(e){t._el=e}})),document.body)}},{key:"_listenUnload",value:function(){var t=this,e="onpagehide"in window?"pagehide":"beforeunload";window.addEventListener(e,function(){if(t._props.isSaveState){var e=(0,a.default)({},t.store.getState());delete e.points.history,delete e.pointControls.history,e.progressLines.lines=[],localStorage.setItem(t._localStorage,(0,o.default)(e))}else localStorage.removeItem(t._localStorage)})}},{key:"_tryToRestore",value:function(){var t=localStorage.getItem(this._localStorage);t?this.store.dispatch({type:"SET_STATE",data:JSON.parse(t)}):this._drawStartPath()}},{key:"_subscribe",value:function(){this._compilePath(),this.store.subscribe(this._compilePath.bind(this))}},{key:"_compilePath",value:function(){var t=this,e=this.store.getState(),n=e.points.present,r=n.path;this._easing||(this._easing=mojs.easing.path(r)),clearTimeout(this._tm),this._tm=setTimeout(function(){t._prevPath!==r&&(t._prevPath=r,t._easing=mojs.easing.path(r),t._fireOnChange(r))},40)}},{key:"_fireOnChange",value:function(t){var e=this._props.onChange;"function"==typeof e&&e(t);for(var n=0;n<this._easings.length;n++){var r=this._easings[n],i=r.options,o=r.easing,s=i.onChange;"function"==typeof s&&s(o,t),this._updateParent(o)}}},{key:"_updateParent",value:function(t){var e=t._parent;e&&(e.setProgress?this._triggerParent(e):e._o.callbacksContext?this._triggerParent(e._o.callbacksContext.timeline):e.timeline?this._triggerParent(e.timeline):e.tween&&this._triggerParent(e.tween))}},{key:"_triggerParent",value:function(t){var e=.01,n=t.progress,r=n+e<1?n+e:n-e;t.setProgress(r),t.setProgress(n)}},{key:"_updateProgressLine",value:function(t,e,n){var r=n[e],i=this.store.getState();i.resize;r&&(r.style.left=100*t+"%")}},{key:"getEasing",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=function(){var e=t._easings.length;return function(n){t._updateProgressLine(n,e,t._progressLines);var r=t._easings[e].options.transform;return r?r(t._easing(n)):t._easing(n)}}();return this.store.dispatch({type:"ADD_PROGRESS_LINE",data:{}}),this._easings.push({options:e,easing:n}),(0,w.default)(function(){t._fireOnChange(t._prevPath)}),n}},{key:"minimize",value:function(){this.store.dispatch({type:"SET_MINIMIZE",data:!0})}},{key:"maximize",value:function(){this.store.dispatch({type:"SET_MINIMIZE",data:!1})}},{key:"toggleSize",value:function(){var t=this.store.getState(),e=t.controls;return e.isMinimize?this.maximize():this.minimize(),e.isMinimize}},{key:"destroy",value:function(){var t=function(){return null};(0,d.render)((0,d.h)(t,null),document.body,this._rootEl)}},{key:"_getStartPathPoints",value:function(){var t=this._props.startPath,e=[];try{var n=document.createElementNS("http://www.w3.org/2000/svg","path");n.setAttribute("d",t),e=(0,S.default)(n)}catch(t){console.error("Something went wrong while parsing `startPath`",t)}return e}},{key:"_drawStartPath",value:function(){var t=this,e=this._getStartPathPoints();e.length&&(this.store.dispatch({type:"POINTS_REMOVE"}),e.forEach(function(e,n){t.store.dispatch({type:"POINT_ADD",data:{point:e,index:n}})}))}}]),t}();e.default=O,window.MojsCurveEditor=O},function(t,e,n){t.exports={default:n(3),__esModule:!0}},function(t,e,n){var r=n(4),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(6),o=r(i);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){t.exports={default:n(7),__esModule:!0}},function(t,e,n){n(8),t.exports=n(4).Object.assign},function(t,e,n){var r=n(9);r(r.S+r.F,"Object",{assign:n(24)})},function(t,e,n){var r=n(10),i=n(4),o=n(11),s=n(13),a=n(23),u="prototype",l=function(t,e,n){var c,f,p,d=t&l.F,h=t&l.G,_=t&l.S,v=t&l.P,y=t&l.B,m=t&l.W,g=h?i:i[e]||(i[e]={}),b=g[u],x=h?r:_?r[e]:(r[e]||{})[u];h&&(n=e);for(c in n)f=!d&&x&&void 0!==x[c],f&&a(g,c)||(p=f?x[c]:n[c],g[c]=h&&"function"!=typeof x[c]?n[c]:y&&f?o(p,r):m&&x[c]==p?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[u]=t[u],e}(p):v&&"function"==typeof p?o(Function.call,p):p,v&&((g.virtual||(g.virtual={}))[c]=p,t&l.R&&b&&!b[c]&&s(b,c,p)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(12);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(14),i=n(22);t.exports=n(18)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(15),i=n(17),o=n(21),s=Object.defineProperty;e.f=n(18)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(16);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(18)&&!n(19)(function(){return 7!=Object.defineProperty(n(20)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){t.exports=!n(19)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(16),i=n(10).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(16);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";var r=n(18),i=n(25),o=n(40),s=n(41),a=n(42),u=n(28),l=Object.assign;t.exports=!l||n(19)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=r})?function(t,e){for(var n=a(t),l=arguments.length,c=1,f=o.f,p=s.f;l>c;)for(var d,h=u(arguments[c++]),_=f?i(h).concat(f(h)):i(h),v=_.length,y=0;v>y;)d=_[y++],r&&!p.call(h,d)||(n[d]=h[d]);return n}:l},function(t,e,n){var r=n(26),i=n(39);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(23),i=n(27),o=n(31)(!1),s=n(35)("IE_PROTO");t.exports=function(t,e){var n,a=i(t),u=0,l=[];for(n in a)n!=s&&r(a,n)&&l.push(n);for(;e.length>u;)r(a,n=e[u++])&&(~o(l,n)||l.push(n));return l}},function(t,e,n){var r=n(28),i=n(30);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(29);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,n){var r=n(27),i=n(32),o=n(34);t.exports=function(t){return function(e,n,s){var a,u=r(e),l=i(u.length),c=o(s,l);if(t&&n!=n){for(;l>c;)if(a=u[c++],a!=a)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){var r=n(33),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(33),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(36)("keys"),i=n(38);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(4),i=n(10),o="__core-js_shared__",s=i[o]||(i[o]={});(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(37)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!0},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(30);t.exports=function(t){return Object(r(t))}},function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(45),o=r(i);e.default=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),(0,o.default)(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}()},function(t,e,n){t.exports={default:n(46),__esModule:!0}},function(t,e,n){n(47);var r=n(4).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(9);r(r.S+r.F*!n(18),"Object",{defineProperty:n(14).f})},function(t,e,n){!function(e,r){t.exports=r(n(49),n(50))}(this,function(t,e){function n(){}function r(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}function i(){w||(w=!0,r("<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."))}function o(t,e){if(t===e)return!0;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty,o=0;o<n.length;o++)if(!i.call(e,n[o])||t[n[o]]!==e[n[o]])return!1;return!0}function s(t){return function(n){return e.bindActionCreators(t,n)}}function a(t,e){return function(n){return t(e(n))}}function u(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}function l(t){return!!t&&"object"==typeof t}function c(t){if(!l(t)||k.call(t)!=S||u(t))return!1;var e=M(t);if(null===e)return!0;var n=I.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&j.call(n)==N}function f(t){return t&&"object"==typeof t&&"default"in t?t.default:t}function p(t,e){return e={exports:{}},t(e,e.exports),e.exports}function d(){}function h(t){return t.displayName||t.name||"Component"}function _(t,e){try{return t.apply(e)}catch(t){return F.value=t,F}}function v(e,n,i){var a=arguments.length<=3||void 0===arguments[3]?{}:arguments[3],u=Boolean(e),l=e||D,f=void 0;f="function"==typeof n?n:n?s(n):R;var p=i||z,v=a.pure,y=void 0===v||v,m=a.withRef,w=void 0!==m&&m,P=y&&p!==z,M=U++;return function(e){function n(t,e){c(t)||r(e+"() in "+s+" must return a plain object. "+("Instead received "+t+"."))}function i(t,e,r){var i=p(t,e,r);return n(i,"mergeProps"),i}var s="Connect("+h(e)+")",a=function(r){function a(t,e){b(this,a);var n=T(this,r.call(this,t,e));n.version=M,n.store=t.store||e.store,d(n.store,'Could not find "store" in either the context or '+('props of "'+s+'". ')+"Either wrap the root component in a <Provider>, "+('or explicitly pass "store" as a prop to "'+s+'".'));var i=n.store.getState();return n.state={storeState:i},n.clearCache(),n}return E(a,r),a.prototype.shouldComponentUpdate=function(){return!y||this.haveOwnPropsChanged||this.hasStoreStateChanged},a.prototype.computeStateProps=function(t,e){if(!this.finalMapStateToProps)return this.configureFinalMapState(t,e);var r=t.getState(),i=this.doStatePropsDependOnOwnProps?this.finalMapStateToProps(r,e):this.finalMapStateToProps(r);return n(i,"mapStateToProps"),i},a.prototype.configureFinalMapState=function(t,e){var r=l(t.getState(),e),i="function"==typeof r;return this.finalMapStateToProps=i?r:l,this.doStatePropsDependOnOwnProps=1!==this.finalMapStateToProps.length,i?this.computeStateProps(t,e):(n(r,"mapStateToProps"),r)},a.prototype.computeDispatchProps=function(t,e){if(!this.finalMapDispatchToProps)return this.configureFinalMapDispatch(t,e);var r=t.dispatch,i=this.doDispatchPropsDependOnOwnProps?this.finalMapDispatchToProps(r,e):this.finalMapDispatchToProps(r);return n(i,"mapDispatchToProps"),i},a.prototype.configureFinalMapDispatch=function(t,e){var r=f(t.dispatch,e),i="function"==typeof r;return this.finalMapDispatchToProps=i?r:f,this.doDispatchPropsDependOnOwnProps=1!==this.finalMapDispatchToProps.length,i?this.computeDispatchProps(t,e):(n(r,"mapDispatchToProps"),r)},a.prototype.updateStatePropsIfNeeded=function(){var t=this.computeStateProps(this.store,this.props);return(!this.stateProps||!o(t,this.stateProps))&&(this.stateProps=t,!0)},a.prototype.updateDispatchPropsIfNeeded=function(){var t=this.computeDispatchProps(this.store,this.props);return(!this.dispatchProps||!o(t,this.dispatchProps))&&(this.dispatchProps=t,!0)},a.prototype.updateMergedPropsIfNeeded=function(){var t=i(this.stateProps,this.dispatchProps,this.props);return!(this.mergedProps&&P&&o(t,this.mergedProps))&&(this.mergedProps=t,!0)},a.prototype.isSubscribed=function(){return"function"==typeof this.unsubscribe},a.prototype.trySubscribe=function(){u&&!this.unsubscribe&&(this.unsubscribe=this.store.subscribe(this.handleChange.bind(this)),this.handleChange())},a.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},a.prototype.componentDidMount=function(){this.trySubscribe()},a.prototype.componentWillReceiveProps=function(t){y&&o(t,this.props)||(this.haveOwnPropsChanged=!0)},a.prototype.componentWillUnmount=function(){this.tryUnsubscribe(),this.clearCache()},a.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},a.prototype.handleChange=function(){if(this.unsubscribe){var t=this.store.getState(),e=this.state.storeState;if(!y||e!==t){if(y&&!this.doStatePropsDependOnOwnProps){var n=_(this.updateStatePropsIfNeeded,this);if(!n)return;n===F&&(this.statePropsPrecalculationError=F.value),this.haveStatePropsBeenPrecalculated=!0}this.hasStoreStateChanged=!0,this.setState({storeState:t})}}},a.prototype.getWrappedInstance=function(){return d(w,"To access the wrapped instance, you need to specify { withRef: true } as the fourth argument of the connect() call."),this.refs.wrappedInstance},a.prototype.render=function(){var n=this.haveOwnPropsChanged,r=this.hasStoreStateChanged,i=this.haveStatePropsBeenPrecalculated,o=this.statePropsPrecalculationError,s=this.renderedElement;if(this.haveOwnPropsChanged=!1,this.hasStoreStateChanged=!1,this.haveStatePropsBeenPrecalculated=!1,this.statePropsPrecalculationError=null,o)throw o;var a=!0,u=!0;y&&s&&(a=r||n&&this.doStatePropsDependOnOwnProps,u=n&&this.doDispatchPropsDependOnOwnProps);var l=!1,c=!1;i?l=!0:a&&(l=this.updateStatePropsIfNeeded()),u&&(c=this.updateDispatchPropsIfNeeded());var f=!0;return f=!!(l||c||n)&&this.updateMergedPropsIfNeeded(),!f&&s?s:(w?this.renderedElement=t.h(e,x({},this.mergedProps,{ref:"wrappedInstance"})):this.renderedElement=t.h(e,this.mergedProps),this.renderedElement)},a}(t.Component);return a.displayName=s,a.WrappedComponent=e,a.contextTypes={store:g},a.prototype.componentWillUpdate=function(){this.version!==M&&(this.version=M,this.trySubscribe(),this.clearCache())},L(a,e)}}var y={only:function(t){return t&&t[0]||null}};n.isRequired=n;var m={element:n,func:n,shape:function(){return n}},g=m.shape({subscribe:m.func.isRequired,dispatch:m.func.isRequired,getState:m.func.isRequired}),b=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},x=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},E=function(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)},T=function(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},w=!1,P=function(t){function e(n,r){b(this,e);var i=T(this,t.call(this,n,r));return i.store=n.store,i}return E(e,t),e.prototype.getChildContext=function(){return{store:this.store}},e.prototype.render=function(){var t=this.props.children;return y.only(t)},e}(t.Component);P.prototype.componentWillReceiveProps=function(t){var e=this.store,n=t.store;e!==n&&i()},P.childContextTypes={store:g.isRequired};var M=a(Object.getPrototypeOf,Object),S="[object Object]",O=Function.prototype,C=Object.prototype,j=O.toString,I=C.hasOwnProperty,N=j.call(Object),k=C.toString,A=p(function(t){"use strict";var e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},r="function"==typeof Object.getOwnPropertySymbols;t.exports=function(t,i,o){if("string"!=typeof i){var s=Object.getOwnPropertyNames(i);r&&(s=s.concat(Object.getOwnPropertySymbols(i)));for(var a=0;a<s.length;++a)if(!(e[s[a]]||n[s[a]]||o&&o[s[a]]))try{t[s[a]]=i[s[a]]}catch(t){}}return t}}),L=f(A),D=function(t){return{}},R=function(t){return{dispatch:t}},z=function(t,e,n){return x({},n,t,e)},F={value:null},U=0,V={Provider:P,connect:v};return V})},function(t,e,n){!function(t,n){n(e)}(this,function(t){function e(t,e,n){this.nodeName=t,this.attributes=e,this.children=n,this.key=e&&e.key}function n(t,n){var r,i,o,s,a;for(a=arguments.length;a-- >2;)F.push(arguments[a]);for(n&&n.children&&(F.length||F.push(n.children),delete n.children);F.length;)if((o=F.pop())instanceof Array)for(a=o.length;a--;)F.push(o[a]);else null!=o&&o!==!0&&o!==!1&&("number"==typeof o&&(o=String(o)),s="string"==typeof o,s&&i?r[r.length-1]+=o:((r||(r=[])).push(o),i=s));var u=new e(t,n||void 0,r||U);return z.vnode&&z.vnode(u),u}function r(t,e){if(e)for(var n in e)t[n]=e[n];return t}function i(t){return r({},t)}function o(t,e){for(var n=e.split("."),r=0;r<n.length&&t;r++)t=t[n[r]];return t}function s(t){return"function"==typeof t}function a(t){return"string"==typeof t}function u(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}function l(t,e){return n(t.nodeName,r(i(t.attributes),e),arguments.length>2?[].slice.call(arguments,2):t.children)}function c(t,e,n){var r=e.split(".");return function(e){for(var i=e&&e.target||this,s={},u=s,l=a(n)?o(e,n):i.nodeName?i.type.match(/^che|rad/)?i.checked:i.value:e,c=0;c<r.length-1;c++)u=u[r[c]]||(u[r[c]]=!c&&t.state[r[c]]||{});u[r[c]]=l,t.setState(s)}}function f(t){!t._dirty&&(t._dirty=!0)&&1==B.push(t)&&(z.debounceRendering||H)(p)}function p(){var t,e=B;for(B=[];t=e.pop();)t._dirty&&k(t)}function d(t){var e=t&&t.nodeName;return e&&s(e)&&!(e.prototype&&e.prototype.render)}function h(t,e){return t.nodeName(y(t),e||q)}function _(t,e){return a(e)?t instanceof Text:a(e.nodeName)?!t._componentConstructor&&v(t,e.nodeName):s(e.nodeName)?!t._componentConstructor||t._componentConstructor===e.nodeName||d(e):void 0}function v(t,e){return t.normalizedNodeName===e||Y(t.nodeName)===Y(e)}function y(t){var e=i(t.attributes);e.children=t.children;var n=t.nodeName.defaultProps;if(n)for(var r in n)void 0===e[r]&&(e[r]=n[r]);return e}function m(t){var e=t.parentNode;e&&e.removeChild(t)}function g(t,e,n,r,i){if("className"===e&&(e="class"),"class"===e&&r&&"object"==typeof r&&(r=u(r)),"key"===e);else if("class"!==e||i)if("style"===e){if((!r||a(r)||a(n))&&(t.style.cssText=r||""),r&&"object"==typeof r){if(!a(n))for(var o in n)o in r||(t.style[o]="");for(var o in r)t.style[o]="number"!=typeof r[o]||Z[o]?r[o]:r[o]+"px"}}else if("dangerouslySetInnerHTML"===e)r&&(t.innerHTML=r.__html||"");else if("o"==e[0]&&"n"==e[1]){var l=t._listeners||(t._listeners={});e=Y(e.substring(2)),r?l[e]||t.addEventListener(e,x,!!G[e]):l[e]&&t.removeEventListener(e,x,!!G[e]),l[e]=r}else if("list"!==e&&"type"!==e&&!i&&e in t)b(t,e,null==r?"":r),null!=r&&r!==!1||t.removeAttribute(e);else{var c=i&&e.match(/^xlink\:?(.+)/);null==r||r===!1?c?t.removeAttributeNS("http://www.w3.org/1999/xlink",Y(c[1])):t.removeAttribute(e):"object"==typeof r||s(r)||(c?t.setAttributeNS("http://www.w3.org/1999/xlink",Y(c[1]),r):t.setAttribute(e,r))}else t.className=r||""}function b(t,e,n){try{t[e]=n}catch(t){}}function x(t){return this._listeners[t.type](z.event&&z.event(t)||t)}function E(t){if(m(t),t instanceof Element){t._component=t._componentConstructor=null;var e=t.normalizedNodeName||Y(t.nodeName);(J[e]||(J[e]=[])).push(t)}}function T(t,e){var n=Y(t),r=J[n]&&J[n].pop()||(e?document.createElementNS("http://www.w3.org/2000/svg",t):document.createElement(t));return r.normalizedNodeName=n,r}function w(){for(var t;t=K.pop();)z.afterMount&&z.afterMount(t),t.componentDidMount&&t.componentDidMount()}function P(t,e,n,r,i,o){Q++||($=i&&void 0!==i.ownerSVGElement,tt=t&&!(W in t));var s=M(t,e,n,r);return i&&s.parentNode!==i&&i.appendChild(s),--Q||(tt=!1,o||w()),s}function M(t,e,n,r){for(var i=e&&e.attributes&&e.attributes.ref;d(e);)e=h(e,n);if(null==e&&(e=""),a(e))return t&&t instanceof Text&&t.parentNode?t.nodeValue!=e&&(t.nodeValue=e):(t&&O(t),t=document.createTextNode(e)),t;if(s(e.nodeName))return A(t,e,n,r);var o=t,u=String(e.nodeName),l=$,c=e.children;if($="svg"===u||"foreignObject"!==u&&$,t){if(!v(t,u)){for(o=T(u,$);t.firstChild;)o.appendChild(t.firstChild);t.parentNode&&t.parentNode.replaceChild(o,t),O(t)}}else o=T(u,$);var f=o.firstChild,p=o[W];if(!p){o[W]=p={};for(var _=o.attributes,y=_.length;y--;)p[_[y].name]=_[y].value}return!tt&&c&&1===c.length&&"string"==typeof c[0]&&f&&f instanceof Text&&!f.nextSibling?f.nodeValue!=c[0]&&(f.nodeValue=c[0]):(c&&c.length||f)&&S(o,c,n,r,!!p.dangerouslySetInnerHTML),C(o,e.attributes,p),i&&(p.ref=i)(o),$=l,o}function S(t,e,n,r,i){var o,s,a,u,l=t.childNodes,c=[],f={},p=0,d=0,h=l.length,v=0,y=e&&e.length;if(h)for(var g=0;g<h;g++){var b=l[g],x=b[W],E=y?(s=b._component)?s.__key:x?x.key:null:null;null!=E?(p++,f[E]=b):(tt||i||x||b instanceof Text)&&(c[v++]=b)}if(y)for(var g=0;g<y;g++){a=e[g],u=null;var E=a.key;if(null!=E)p&&E in f&&(u=f[E],f[E]=void 0,p--);else if(!u&&d<v)for(o=d;o<v;o++)if(s=c[o],s&&_(s,a)){u=s,c[o]=void 0,o===v-1&&v--,o===d&&d++;break}u=M(u,a,n,r),u&&u!==t&&(g>=h?t.appendChild(u):u!==l[g]&&(u===l[g+1]&&m(l[g]),t.insertBefore(u,l[g]||null)))}if(p)for(var g in f)f[g]&&O(f[g]);for(;d<=v;)u=c[v--],u&&O(u)}function O(t,e){var n=t._component;if(n)L(n,!e);else{t[W]&&t[W].ref&&t[W].ref(null),e||E(t);for(var r;r=t.lastChild;)O(r,e)}}function C(t,e,n){var r;for(r in n)e&&r in e||null==n[r]||g(t,r,n[r],n[r]=void 0,$);if(e)for(r in e)"children"===r||"innerHTML"===r||r in n&&e[r]===("value"===r||"checked"===r?t[r]:n[r])||g(t,r,n[r],n[r]=e[r],$)}function j(t){var e=t.constructor.name,n=et[e];n?n.push(t):et[e]=[t]}function I(t,e,n){var r=new t(e,n),i=et[t.name];if(D.call(r,e,n),i)for(var o=i.length;o--;)if(i[o].constructor===t){r.nextBase=i[o].nextBase,i.splice(o,1);break}return r}function N(t,e,n,r,i){t._disable||(t._disable=!0,(t.__ref=e.ref)&&delete e.ref,(t.__key=e.key)&&delete e.key,!t.base||i?t.componentWillMount&&t.componentWillMount():t.componentWillReceiveProps&&t.componentWillReceiveProps(e,r),r&&r!==t.context&&(t.prevContext||(t.prevContext=t.context),t.context=r),t.prevProps||(t.prevProps=t.props),t.props=e,t._disable=!1,0!==n&&(1!==n&&z.syncComponentUpdates===!1&&t.base?f(t):k(t,1,i)),t.__ref&&t.__ref(t))}function k(t,e,n,o){if(!t._disable){var a,u,l,c,f=t.props,p=t.state,_=t.context,v=t.prevProps||f,m=t.prevState||p,g=t.prevContext||_,b=t.base,x=t.nextBase,E=b||x,T=t._component;if(b&&(t.props=v,t.state=m,t.context=g,2!==e&&t.shouldComponentUpdate&&t.shouldComponentUpdate(f,p,_)===!1?a=!0:t.componentWillUpdate&&t.componentWillUpdate(f,p,_),t.props=f,t.state=p,t.context=_),t.prevProps=t.prevState=t.prevContext=t.nextBase=null,t._dirty=!1,!a){for(t.render&&(u=t.render(f,p,_)),t.getChildContext&&(_=r(i(_),t.getChildContext()));d(u);)u=h(u,_);var M,S,C=u&&u.nodeName;if(s(C)){var j=y(u);l=T,l&&l.constructor===C&&j.key==l.__key?N(l,j,1,_):(M=l,l=I(C,j,_),l.nextBase=l.nextBase||x,l._parentComponent=t,t._component=l,N(l,j,0,_),k(l,1,n,!0)),S=l.base}else c=E,M=T,M&&(c=t._component=null),(E||1===e)&&(c&&(c._component=null),S=P(c,u,_,n||!b,E&&E.parentNode,!0));if(E&&S!==E&&l!==T){var A=E.parentNode;A&&S!==A&&(A.replaceChild(S,E),M||(E._component=null,O(E)))}if(M&&L(M,S!==E),t.base=S,S&&!o){for(var D=t,R=t;R=R._parentComponent;)(D=R).base=S;S._component=D,S._componentConstructor=D.constructor}}!b||n?K.unshift(t):a||(t.componentDidUpdate&&t.componentDidUpdate(v,m,g),z.afterUpdate&&z.afterUpdate(t));var F,U=t._renderCallbacks;if(U)for(;F=U.pop();)F.call(t);Q||o||w()}}function A(t,e,n,r){for(var i=t&&t._component,o=i,s=t,a=i&&t._componentConstructor===e.nodeName,u=a,l=y(e);i&&!u&&(i=i._parentComponent);)u=i.constructor===e.nodeName;return i&&u&&(!r||i._component)?(N(i,l,3,n,r),t=i.base):(o&&!a&&(L(o,!0),t=s=null),i=I(e.nodeName,l,n),t&&!i.nextBase&&(i.nextBase=t,s=null),N(i,l,1,n,r),t=i.base,s&&t!==s&&(s._component=null,O(s))),t}function L(t,e){z.beforeUnmount&&z.beforeUnmount(t);var n=t.base;t._disable=!0,t.componentWillUnmount&&t.componentWillUnmount(),t.base=null;var r=t._component;if(r)L(r,e);else if(n){n[W]&&n[W].ref&&n[W].ref(null),t.nextBase=n,e&&(m(n),j(t));for(var i;i=n.lastChild;)O(i,!e)}t.__ref&&t.__ref(null),t.componentDidUnmount&&t.componentDidUnmount()}function D(t,e){this._dirty=!0,this.context=e,this.props=t,this.state||(this.state={})}function R(t,e,n){return P(n,t,{},!1,e)}var z={},F=[],U=[],V={},Y=function(t){return V[t]||(V[t]=t.toLowerCase())},X="undefined"!=typeof Promise&&Promise.resolve(),H=X?function(t){X.then(t)}:setTimeout,q={},W="undefined"!=typeof Symbol?Symbol.for("preactattr"):"__preactattr_",Z={boxFlex:1,boxFlexGroup:1,columnCount:1,fillOpacity:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,fontWeight:1,lineClamp:1,lineHeight:1,opacity:1,order:1,orphans:1,strokeOpacity:1,widows:1,zIndex:1,zoom:1},G={blur:1,error:1,focus:1,load:1,resize:1,scroll:1},B=[],J={},K=[],Q=0,$=!1,tt=!1,et={};r(D.prototype,{linkState:function(t,e){var n=this._linkedStates||(this._linkedStates={});return n[t+e]||(n[t+e]=c(this,t,e))},setState:function(t,e){var n=this.state;this.prevState||(this.prevState=i(n)),r(n,s(t)?t(n,this.props):t),e&&(this._renderCallbacks=this._renderCallbacks||[]).push(e),f(this)},forceUpdate:function(){k(this,2)},render:function(){}}),t.h=n,t.cloneElement=l,t.Component=D,t.render=R,t.rerender=p,t.options=z})},function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(){}e.__esModule=!0,e.compose=e.applyMiddleware=e.bindActionCreators=e.combineReducers=e.createStore=void 0;var o=n(52),s=r(o),a=n(66),u=r(a),l=n(68),c=r(l),f=n(69),p=r(f),d=n(70),h=r(d),_=n(67),v=r(_);"production"!==t.env.NODE_ENV&&"string"==typeof i.name&&"isCrushed"!==i.name&&(0,v.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=s.default,e.combineReducers=u.default,e.bindActionCreators=c.default,e.applyMiddleware=p.default,e.compose=h.default}).call(e,n(51))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function s(){_&&d&&(_=!1,d.length?h=d.concat(h):v=-1,h.length&&a())}function a(){if(!_){var t=i(s);_=!0;for(var e=h.length;e;){for(d=h,h=[];++v<e;)d&&d[v].run();v=-1,e=h.length}d=null,_=!1,o(t)}}function u(t,e){this.fun=t,this.array=e}function l(){}var c,f,p=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(t){c=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var d,h=[],_=!1,v=-1;p.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];h.push(new u(t,e)),1!==h.length||_||i(a)},u.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=l,p.addListener=l,p.once=l,p.off=l,p.removeListener=l,p.removeAllListeners=l,p.emit=l,p.prependListener=l,p.prependOnceListener=l,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){function r(){y===v&&(y=v.slice())}function o(){return _}function a(t){if("function"!=typeof t)throw new Error("Expected listener to be a function.");var e=!0;return r(),y.push(t),function(){if(e){e=!1,r();var n=y.indexOf(t);y.splice(n,1)}}}function c(t){if(!(0,s.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(m)throw new Error("Reducers may not dispatch actions.");try{m=!0,_=h(_,t)}finally{m=!1}for(var e=v=y,n=0;n<e.length;n++){var r=e[n];r()}return t}function f(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");h=t,c({type:l.INIT})}function p(){var t,e=a;return t={subscribe:function(t){function n(){t.next&&t.next(o())}if("object"!=typeof t)throw new TypeError("Expected the observer to be an object.");n();var r=e(n);return{unsubscribe:r}}},t[u.default]=function(){return this},t}var d;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(i)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var h=t,_=e,v=[],y=v,m=!1;return c({type:l.INIT}),d={dispatch:c,subscribe:a,getState:o,replaceReducer:f},d[u.default]=p,d}e.__esModule=!0,e.ActionTypes=void 0,e.default=i;var o=n(53),s=r(o),a=n(63),u=r(a),l=e.ActionTypes={INIT:"@@redux/INIT"}},function(t,e,n){function r(t){if(!s(t)||i(t)!=a)return!1;var e=o(t);if(null===e)return!0;var n=f.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==p}var i=n(54),o=n(60),s=n(62),a="[object Object]",u=Function.prototype,l=Object.prototype,c=u.toString,f=l.hasOwnProperty,p=c.call(Object);t.exports=r},function(t,e,n){function r(t){return null==t?void 0===t?u:a:l&&l in Object(t)?o(t):s(t)}var i=n(55),o=n(58),s=n(59),a="[object Null]",u="[object Undefined]",l=i?i.toStringTag:void 0;t.exports=r},function(t,e,n){var r=n(56),i=r.Symbol;t.exports=i},function(t,e,n){var r=n(57),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();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){function r(t){var e=s.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[u]=n:delete t[u]),i}var i=n(55),o=Object.prototype,s=o.hasOwnProperty,a=o.toString,u=i?i.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return i.call(t)}var r=Object.prototype,i=r.toString;t.exports=n},function(t,e,n){var r=n(61),i=r(Object.getPrototypeOf,Object);t.exports=i},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e,n){(function(t,r){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o,s=n(65),a=i(s);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof t?t:r;var u=(0,a.default)(o);e.default=u}).call(e,function(){return this}(),n(64)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),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,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var n=e&&e.type,r=n&&'"'+n.toString()+'"'||"an action";return"Given action "+r+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function o(t,e,n,r){var i=Object.keys(e),o=n&&n.type===u.ActionTypes.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(0===i.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,c.default)(t))return"The "+o+' has unexpected type of "'+{}.toString.call(t).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following '+('keys: "'+i.join('", "')+'"');var s=Object.keys(t).filter(function(t){return!e.hasOwnProperty(t)&&!r[t]});return s.forEach(function(t){r[t]=!0}),s.length>0?"Unexpected "+(s.length>1?"keys":"key")+" "+('"'+s.join('", "')+'" found in '+o+". ")+"Expected to find one of the known reducer keys instead: "+('"'+i.join('", "')+'". Unexpected keys will be ignored.'):void 0}function s(t){Object.keys(t).forEach(function(e){var n=t[e],r=n(void 0,{type:u.ActionTypes.INIT});if("undefined"==typeof r)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. If you don't want to set a value for this reducer, you can use null instead of undefined.");var i="@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".");if("undefined"==typeof n(void 0,{type:i}))throw new Error('Reducer "'+e+'" returned undefined when probed with a random type. '+("Don't try to handle "+u.ActionTypes.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function a(e){for(var n=Object.keys(e),r={},a=0;a<n.length;a++){var u=n[a];"production"!==t.env.NODE_ENV&&"undefined"==typeof e[u]&&(0,p.default)('No reducer provided for key "'+u+'"'),"function"==typeof e[u]&&(r[u]=e[u])}var l=Object.keys(r),c=void 0;"production"!==t.env.NODE_ENV&&(c={});var f=void 0;try{s(r)}catch(t){f=t}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1];if(f)throw f;if("production"!==t.env.NODE_ENV){var s=o(e,r,n,c);s&&(0,p.default)(s)}for(var a=!1,u={},d=0;d<l.length;d++){var h=l[d],_=r[h],v=e[h],y=_(v,n);if("undefined"==typeof y){var m=i(h,n);throw new Error(m)}u[h]=y,a=a||y!==v}return a?u:e}}e.__esModule=!0,e.default=a;var u=n(52),l=n(53),c=r(l),f=n(67),p=r(f)}).call(e,n(51))},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){"use strict";function n(t,e){return function(){return e(t.apply(void 0,arguments))}}function r(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 r=Object.keys(t),i={},o=0;o<r.length;o++){var s=r[o],a=t[s];"function"==typeof a&&(i[s]=n(a,e))}return i}e.__esModule=!0,e.default=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(n,r,i){var s=t(n,r,i),u=s.dispatch,l=[],c={getState:s.getState,dispatch:function(t){return u(t)}};return l=e.map(function(t){return t(c)}),u=a.default.apply(void 0,l)(s.dispatch),o({},s,{dispatch:u})}}}e.__esModule=!0;var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.default=i;var s=n(70),a=r(s)},function(t,e){"use strict";function n(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce(function(t,e){return function(){return t(e.apply(void 0,arguments))}})}e.__esModule=!0,e.default=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(72),o=r(i),s=n(43),a=r(s),u=n(44),l=r(u),c=n(77),f=r(c),p=n(110),d=r(p),h=n(49),_=n(118),v=r(_),y=n(119),m=r(y),g=n(120),b=r(g),x=n(121),E=n(122),T=r(E),w=n(164),P=r(w),M=n(180),S=r(M),O=n(184),C=r(O),j=n(147),I=(r(j),n(138)),N=r(I),k=n(185),A=n(186),L=r(A);n(187);var D=function(t){function e(){return(0,a.default)(this,e),(0,f.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,d.default)(e,t),(0,l.default)(e,[{key:"render",value:function(){var t=n(163),e=this.context.store,r=e.getState();this._state=r;var i=this.props,o=i.options,s=r.controls,a=s.isMinimize,u=s.isActive,l=s.isHighlight,c=this._getStyle(r),f=""+t["curve-editor"];return f+=a?" "+t["is-minimized"]:"",f+=u?"":" "+t["is-inactive"],f+=l?" "+t["is-highlighted"]:"",f+=o.isHiddenOnMin?" "+t["is-hidden-on-min"]:"",this._state=r,(0,h.h)("div",{className:f,style:c},(0,h.h)(C.default,null),(0,h.h)(S.default,{state:r}),(0,h.h)(P.default,{state:r}),(0,h.h)(T.default,{state:r,progressLines:i.progressLines,options:o}))}},{key:"_getStyle",value:function(t){var e=this._state.controls,n=(e.isMinimize,e.isActive,v.default.CURVE_SIZE+53),r=v.default.CURVE_SIZE+2*v.default.CURVE_PADDING,i=t.resize,o=i.temp_top,s=i.temp_bottom,a=i.temp_right;i.translate;o+=i.top,s+=i.bottom,a+=i.right;var u="height: "+(r-o+s)+"px",l="width: "+(n+a)+"px",c=i.x+i.tempX,f=i.y+i.tempY,p="transform: translate("+c+"px, "+(f+o)+"px)";return""+mojs.h.prefix.css+p+"; "+p+"; "+l+"; "+u+";"}},{key:"componentDidMount",value:function(){this._resetCounter=0;var t=this.context.store,e=this.base.querySelector("#js-left-panel");this._mc=(0,b.default)(new m.default.Manager(e)),this._mc.add(new m.default.Pan({threshold:0})),this._mc.on("pan",function(e){var n=e.deltaX,r=e.deltaY;t.dispatch({type:"EDITOR_TRANSLATE",data:{x:n,y:r}})}).on("panend",function(e){var n=e.deltaX,r=e.deltaY;t.dispatch({type:"EDITOR_TRANSLATE_END",data:{x:n,y:r}})}),this._addKeyUp(),this._subscribeFocus(),t.subscribe(this.forceUpdate.bind(this))}},{key:"componentWillUnmount",value:function(){this._mc.off("pan"),this._mc.off("panend")}},{key:"_addKeyUp",value:function(){document.addEventListener("keyup",this._onKeyUp.bind(this))}},{key:"_onKeyUp",value:function(t){var e=this.context.store,n=this._state.controls;if(n.isActive&&!n.isMinimize&&t.altKey)switch(t.which){case 90:return e.dispatch(x.ActionCreators.undo());case 88:return e.dispatch(x.ActionCreators.redo());case 68:return e.dispatch({type:"POINT_DELETE"});case 220:return t.shiftKey&&this._tryToReset(e)}}},{key:"_tryToReset",value:function(t){var e=this;++this._resetCounter>2&&(0,k.reset)(t),clearTimeout(this._tm),this._tm=setTimeout(function(){e._resetCounter=0},300)}},{key:"_subscribeFocus",value:function(){var t=this;this._createActivePool();var e=this.context.store;(0,N.default)(this.base,function(n){var r=mojs[v.default.ACTIVE_POOL_NAME];r&&r.resetActive(t),t._state.controls.isActive||e.dispatch({type:"SET_ACTIVE",data:!0})})}},{key:"_getPool",value:function(){return mojs[v.default.ACTIVE_POOL_NAME]||(mojs[v.default.ACTIVE_POOL_NAME]=new L.default),mojs[v.default.ACTIVE_POOL_NAME]}},{key:"_createActivePool",value:function(){var t=this._getPool();t.add(this._setInactive.bind(this)),mojs[v.default.ACTIVE_POOL_NAME]=t}},{key:"_setInactive",value:function(t){var e=this.context.store;t!==this&&e.dispatch({type:"SET_ACTIVE",data:!1})}}]),e}(h.Component);e.default=D},function(t,e,n){t.exports={default:n(73),__esModule:!0}},function(t,e,n){n(74),t.exports=n(4).Object.getPrototypeOf},function(t,e,n){var r=n(42),i=n(75);n(76)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(23),i=n(42),o=n(35)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var r=n(9),i=n(4),o=n(19);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(78),o=r(i);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":(0,o.default)(e))&&"function"!=typeof e?t:e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(79),o=r(i),s=n(97),a=r(s),u="function"==typeof a.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":typeof t};e.default="function"==typeof a.default&&"symbol"===u(o.default)?function(t){return"undefined"==typeof t?"undefined":u(t)}:function(t){return t&&"function"==typeof a.default&&t.constructor===a.default&&t!==a.default.prototype?"symbol":"undefined"==typeof t?"undefined":u(t)}},function(t,e,n){t.exports={default:n(80),__esModule:!0}},function(t,e,n){n(81),n(92),t.exports=n(96).f("iterator")},function(t,e,n){"use strict";var r=n(82)(!0);n(83)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(33),i=n(30);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),u=r(n),l=a.length;return u<0||u>=l?t?"":void 0:(o=a.charCodeAt(u),o<55296||o>56319||u+1===l||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):(o-55296<<10)+(s-56320)+65536)}}},function(t,e,n){"use strict";var r=n(37),i=n(9),o=n(84),s=n(13),a=n(85),u=n(86),l=n(90),c=n(75),f=n(91)("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",h="keys",_="values",v=function(){return this};t.exports=function(t,e,n,y,m,g,b){u(n,e,y);var x,E,T,w=function(t){if(!p&&t in O)return O[t];switch(t){case h:return function(){return new n(this,t)};case _:return function(){return new n(this,t)}}return function(){return new n(this,t)}},P=e+" Iterator",M=m==_,S=!1,O=t.prototype,C=O[f]||O[d]||m&&O[m],j=C||w(m),I=m?M?w("entries"):j:void 0,N="Array"==e?O.entries||C:C;if(N&&(T=c(N.call(new t)),T!==Object.prototype&&T.next&&(l(T,P,!0),r||"function"==typeof T[f]||s(T,f,v))),M&&C&&C.name!==_&&(S=!0,j=function(){return C.call(this)}),r&&!b||!p&&!S&&O[f]||s(O,f,j),a[e]=j,a[P]=v,m)if(x={values:M?j:w(_),keys:g?j:w(h),entries:I},b)for(E in x)E in O||o(O,E,x[E]);else i(i.P+i.F*(p||S),e,x);return x}},function(t,e,n){t.exports=n(13)},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(87),i=n(22),o=n(90),s={};n(13)(s,n(91)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(15),i=n(88),o=n(39),s=n(35)("IE_PROTO"),a=function(){},u="prototype",l=function(){var t,e=n(20)("iframe"),r=o.length,i="<",s=">";for(e.style.display="none",n(89).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+s+"document.F=Object"+i+"/script"+s),t.close(),l=t.F;r--;)delete l[u][o[r]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[u]=r(t),n=new a,a[u]=null,n[s]=t):n=l(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(14),i=n(15),o=n(25);t.exports=n(18)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,u=0;a>u;)r.f(t,n=s[u++],e[n]);return t}},function(t,e,n){var r=n(10).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(14).f,i=n(23),o=n(91)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(36)("wks"),i=n(38),o=n(10).Symbol,s="function"==typeof o,a=t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))};a.store=r},function(t,e,n){n(93);for(var r=n(10),i=n(13),o=n(85),s=n(91)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var l=a[u],c=r[l],f=c&&c.prototype;f&&!f[s]&&i(f,s,l),o[l]=o.Array}},function(t,e,n){"use strict";var r=n(94),i=n(95),o=n(85),s=n(27);t.exports=n(83)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){e.f=n(91)},function(t,e,n){t.exports={default:n(98),__esModule:!0}},function(t,e,n){n(99),n(107),n(108),n(109),t.exports=n(4).Symbol},function(t,e,n){"use strict";var r=n(10),i=n(23),o=n(18),s=n(9),a=n(84),u=n(100).KEY,l=n(19),c=n(36),f=n(90),p=n(38),d=n(91),h=n(96),_=n(101),v=n(102),y=n(103),m=n(15),g=n(16),b=n(42),x=n(27),E=n(21),T=n(22),w=n(87),P=n(104),M=n(106),S=n(40),O=n(14),C=n(25),j=M.f,I=O.f,N=P.f,k=r.Symbol,A=r.JSON,L=A&&A.stringify,D="prototype",R=d("_hidden"),z=d("toPrimitive"),F={}.propertyIsEnumerable,U=c("symbol-registry"),V=c("symbols"),Y=c("op-symbols"),X=Object[D],H="function"==typeof k&&!!S.f,q=r.QObject,W=!q||!q[D]||!q[D].findChild,Z=o&&l(function(){return 7!=w(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=j(X,e);r&&delete X[e],I(t,e,n),r&&t!==X&&I(X,e,r)}:I,G=function(t){var e=V[t]=w(k[D]);return e._k=t,e},B=H&&"symbol"==typeof k.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof k},J=function(t,e,n){return t===X&&J(Y,e,n),m(t),e=E(e,!0),m(n),i(V,e)?(n.enumerable?(i(t,R)&&t[R][e]&&(t[R][e]=!1),n=w(n,{enumerable:T(0,!1)})):(i(t,R)||I(t,R,T(1,{})),t[R][e]=!0),Z(t,e,n)):I(t,e,n)},K=function(t,e){m(t);for(var n,r=v(e=x(e)),i=0,o=r.length;o>i;)J(t,n=r[i++],e[n]);return t},Q=function(t,e){return void 0===e?w(t):K(w(t),e)},$=function(t){var e=F.call(this,t=E(t,!0));return!(this===X&&i(V,t)&&!i(Y,t))&&(!(e||!i(this,t)||!i(V,t)||i(this,R)&&this[R][t])||e)},tt=function(t,e){if(t=x(t),e=E(e,!0),t!==X||!i(V,e)||i(Y,e)){var n=j(t,e);return!n||!i(V,e)||i(t,R)&&t[R][e]||(n.enumerable=!0),n}},et=function(t){for(var e,n=N(x(t)),r=[],o=0;n.length>o;)i(V,e=n[o++])||e==R||e==u||r.push(e);return r},nt=function(t){for(var e,n=t===X,r=N(n?Y:x(t)),o=[],s=0;r.length>s;)!i(V,e=r[s++])||n&&!i(X,e)||o.push(V[e]);return o};H||(k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===X&&e.call(Y,n),i(this,R)&&i(this[R],t)&&(this[R][t]=!1),Z(this,t,T(1,n))};return o&&W&&Z(X,t,{configurable:!0,set:e}),G(t)},a(k[D],"toString",function(){return this._k}),M.f=tt,O.f=J,n(105).f=P.f=et,n(41).f=$,S.f=nt,o&&!n(37)&&a(X,"propertyIsEnumerable",$,!0),h.f=function(t){return G(d(t))}),s(s.G+s.W+s.F*!H,{Symbol:k});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;rt.length>it;)d(rt[it++]);for(var ot=C(d.store),st=0;ot.length>st;)_(ot[st++]);s(s.S+s.F*!H,"Symbol",{for:function(t){return i(U,t+="")?U[t]:U[t]=k(t)},keyFor:function(t){if(!B(t))throw TypeError(t+" is not a symbol!");for(var e in U)if(U[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),s(s.S+s.F*!H,"Object",{create:Q,defineProperty:J,defineProperties:K,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var at=l(function(){S.f(1)});s(s.S+s.F*at,"Object",{getOwnPropertySymbols:function(t){return S.f(b(t))}}),A&&s(s.S+s.F*(!H||l(function(){var t=k();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(g(e)||void 0!==t)&&!B(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!B(e))return e}),r[1]=e,L.apply(A,r)}}),k[D][z]||n(13)(k[D],z,k[D].valueOf),f(k,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){var r=n(38)("meta"),i=n(16),o=n(23),s=n(14).f,a=0,u=Object.isExtensible||function(){return!0},l=!n(19)(function(){return u(Object.preventExtensions({}))}),c=function(t){s(t,r,{value:{i:"O"+ ++a,w:{}}})},f=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";c(t)}return t[r].i},p=function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;c(t)}return t[r].w},d=function(t){return l&&h.NEED&&u(t)&&!o(t,r)&&c(t),t},h=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:p,onFreeze:d}},function(t,e,n){var r=n(10),i=n(4),o=n(37),s=n(96),a=n(14).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e,n){var r=n(25),i=n(40),o=n(41);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var s,a=n(t),u=o.f,l=0;a.length>l;)u.call(t,s=a[l++])&&e.push(s);return e}},function(t,e,n){var r=n(29);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(27),i=n(105).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(t){try{return i(t)}catch(t){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?a(t):i(r(t))}},function(t,e,n){var r=n(26),i=n(39).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(41),i=n(22),o=n(27),s=n(21),a=n(23),u=n(17),l=Object.getOwnPropertyDescriptor;e.f=n(18)?l:function(t,e){if(t=o(t),e=s(e,!0),u)try{return l(t,e)}catch(t){}if(a(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e){},function(t,e,n){n(101)("asyncIterator")},function(t,e,n){n(101)("observable")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(111),o=r(i),s=n(115),a=r(s),u=n(78),l=r(u);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":(0,l.default)(e)));t.prototype=(0,a.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o.default?(0,o.default)(t,e):t.__proto__=e)}},function(t,e,n){t.exports={default:n(112),__esModule:!0}},function(t,e,n){n(113),t.exports=n(4).Object.setPrototypeOf},function(t,e,n){var r=n(9);r(r.S,"Object",{setPrototypeOf:n(114).set})},function(t,e,n){var r=n(16),i=n(15),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(11)(Function.call,n(106).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){t.exports={default:n(116),__esModule:!0}},function(t,e,n){n(117);var r=n(4).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(9);r(r.S,"Object",{create:n(87)})},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=350;e.default={CURVE_SIZE:n,RESIZE_NEGATIVE_OFFSET:150,CURVE_PERCENT:n/100,CURVE_PADDING:10,ACTIVE_POOL_NAME:"_mojsCurveEditorPool"}},function(t,e,n){var r;/*! Hammer.JS - v2.0.7 - 2016-04-22
	 * http://hammerjs.github.io/
	 *
	 * Copyright (c) 2016 Jorik Tangelder;
	 * Licensed under the MIT license */
!function(i,o,s,a){"use strict";function u(t,e,n){return setTimeout(d(t,n),e)}function l(t,e,n){return!!Array.isArray(t)&&(c(t,n[e],n),!0)}function c(t,e,n){var r;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==a)for(r=0;r<t.length;)e.call(n,t[r],r,t),r++;else for(r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function f(t,e,n){var r="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}function p(t,e,n){var r,i=e.prototype;r=t.prototype=Object.create(i),r.constructor=t,r._super=i,n&&_t(r,n)}function d(t,e){return function(){return t.apply(e,arguments)}}function h(t,e){return typeof t==mt?t.apply(e?e[0]||a:a,e):t}function _(t,e){return t===a?e:t}function v(t,e,n){c(b(e),function(e){t.addEventListener(e,n,!1)})}function y(t,e,n){c(b(e),function(e){t.removeEventListener(e,n,!1)})}function m(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function g(t,e){return t.indexOf(e)>-1}function b(t){return t.trim().split(/\s+/g)}function x(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;r<t.length;){if(n&&t[r][n]==e||!n&&t[r]===e)return r;r++}return-1}function E(t){return Array.prototype.slice.call(t,0)}function T(t,e,n){for(var r=[],i=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];x(i,s)<0&&r.push(t[o]),i[o]=s,o++}return n&&(r=e?r.sort(function(t,n){return t[e]>n[e]}):r.sort()),r}function w(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o<vt.length;){if(n=vt[o],r=n?n+i:e,r in t)return r;o++}return a}function P(){return wt++}function M(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||i}function S(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){h(t.options.enable,[t])&&n.handler(e)},this.init()}function O(t){var e,n=t.options.inputClass;return new(e=n?n:St?Y:Ot?q:Mt?Z:V)(t,C)}function C(t,e,n){var r=n.pointers.length,i=n.changedPointers.length,o=e&At&&r-i===0,s=e&(Dt|Rt)&&r-i===0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,j(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function j(t,e){var n=t.session,r=e.pointers,i=r.length;n.firstInput||(n.firstInput=k(e)),i>1&&!n.firstMultiple?n.firstMultiple=k(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,a=s?s.center:o.center,u=e.center=A(r);e.timeStamp=xt(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=z(a,u),e.distance=R(a,u),I(n,e),e.offsetDirection=D(e.deltaX,e.deltaY);var l=L(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=l.x,e.overallVelocityY=l.y,e.overallVelocity=bt(l.x)>bt(l.y)?l.x:l.y,e.scale=s?U(s.pointers,r):1,e.rotation=s?F(s.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,N(n,e);var c=t.element;m(e.srcEvent.target,c)&&(c=e.srcEvent.target),e.target=c}function I(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};e.eventType!==At&&o.eventType!==Dt||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}function N(t,e){var n,r,i,o,s=t.lastInterval||e,u=e.timeStamp-s.timeStamp;if(e.eventType!=Rt&&(u>kt||s.velocity===a)){var l=e.deltaX-s.deltaX,c=e.deltaY-s.deltaY,f=L(u,l,c);r=f.x,i=f.y,n=bt(f.x)>bt(f.y)?f.x:f.y,o=D(l,c),t.lastInterval=e}else n=s.velocity,r=s.velocityX,i=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}function k(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:gt(t.pointers[n].clientX),clientY:gt(t.pointers[n].clientY)},n++;return{timeStamp:xt(),pointers:e,center:A(e),deltaX:t.deltaX,deltaY:t.deltaY}}function A(t){var e=t.length;if(1===e)return{x:gt(t[0].clientX),y:gt(t[0].clientY)};for(var n=0,r=0,i=0;i<e;)n+=t[i].clientX,r+=t[i].clientY,i++;return{x:gt(n/e),y:gt(r/e)}}function L(t,e,n){return{x:e/t||0,y:n/t||0}}function D(t,e){return t===e?zt:bt(t)>=bt(e)?t<0?Ft:Ut:e<0?Vt:Yt}function R(t,e,n){n||(n=Wt);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function z(t,e,n){n||(n=Wt);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}function F(t,e){return z(e[1],e[0],Zt)+z(t[1],t[0],Zt)}function U(t,e){return R(e[0],e[1],Zt)/R(t[0],t[1],Zt)}function V(){this.evEl=Bt,this.evWin=Jt,this.pressed=!1,S.apply(this,arguments)}function Y(){this.evEl=$t,this.evWin=te,S.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function X(){this.evTarget=ne,this.evWin=re,this.started=!1,S.apply(this,arguments)}function H(t,e){var n=E(t.touches),r=E(t.changedTouches);return e&(Dt|Rt)&&(n=T(n.concat(r),"identifier",!0)),[n,r]}function q(){this.evTarget=oe,this.targetIds={},S.apply(this,arguments)}function W(t,e){var n=E(t.touches),r=this.targetIds;if(e&(At|Lt)&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,s=E(t.changedTouches),a=[],u=this.target;if(o=n.filter(function(t){return m(t.target,u)}),e===At)for(i=0;i<o.length;)r[o[i].identifier]=!0,i++;for(i=0;i<s.length;)r[s[i].identifier]&&a.push(s[i]),e&(Dt|Rt)&&delete r[s[i].identifier],i++;return a.length?[T(o.concat(a),"identifier",!0),a]:void 0}function Z(){S.apply(this,arguments);var t=d(this.handler,this);this.touch=new q(this.manager,t),this.mouse=new V(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function G(t,e){t&At?(this.primaryTouch=e.changedPointers[0].identifier,B.call(this,e)):t&(Dt|Rt)&&B.call(this,e)}function B(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var r=this.lastTouches,i=function(){var t=r.indexOf(n);t>-1&&r.splice(t,1)};setTimeout(i,se)}}function J(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(e-i.x),s=Math.abs(n-i.y);if(o<=ae&&s<=ae)return!0}return!1}function K(t,e){this.manager=t,this.set(e)}function Q(t){if(g(t,de))return de;var e=g(t,he),n=g(t,_e);return e&&n?de:e||n?e?he:_e:g(t,pe)?pe:fe}function $(){if(!le)return!1;var t={},e=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){t[n]=!e||i.CSS.supports("touch-action",n)}),t}function tt(t){this.options=_t({},this.defaults,t||{}),this.id=P(),this.manager=null,this.options.enable=_(this.options.enable,!0),this.state=ye,this.simultaneous={},this.requireFail=[]}function et(t){return t&Ee?"cancel":t&be?"end":t&ge?"move":t&me?"start":""}function nt(t){return t==Yt?"down":t==Vt?"up":t==Ft?"left":t==Ut?"right":""}function rt(t,e){var n=e.manager;return n?n.get(t):t}function it(){tt.apply(this,arguments)}function ot(){it.apply(this,arguments),this.pX=null,this.pY=null}function st(){it.apply(this,arguments)}function at(){tt.apply(this,arguments),this._timer=null,this._input=null}function ut(){it.apply(this,arguments)}function lt(){it.apply(this,arguments)}function ct(){tt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function ft(t,e){return e=e||{},e.recognizers=_(e.recognizers,ft.defaults.preset),new pt(t,e)}function pt(t,e){this.options=_t({},ft.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=O(this),this.touchAction=new K(this,this.options.touchAction),dt(this,!0),c(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function dt(t,e){var n=t.element;if(n.style){var r;c(t.options.cssProps,function(i,o){r=w(n.style,o),e?(t.oldCssProps[r]=n.style[r],n.style[r]=i):n.style[r]=t.oldCssProps[r]||""}),e||(t.oldCssProps={})}}function ht(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var _t,vt=["","webkit","Moz","MS","ms","o"],yt=o.createElement("div"),mt="function",gt=Math.round,bt=Math.abs,xt=Date.now;_t="function"!=typeof Object.assign?function(t){if(t===a||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==a&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}:Object.assign;var Et=f(function(t,e,n){for(var r=Object.keys(e),i=0;i<r.length;)(!n||n&&t[r[i]]===a)&&(t[r[i]]=e[r[i]]),i++;return t},"extend","Use `assign`."),Tt=f(function(t,e){return Et(t,e,!0)},"merge","Use `assign`."),wt=1,Pt=/mobile|tablet|ip(ad|hone|od)|android/i,Mt="ontouchstart"in i,St=w(i,"PointerEvent")!==a,Ot=Mt&&Pt.test(navigator.userAgent),Ct="touch",jt="pen",It="mouse",Nt="kinect",kt=25,At=1,Lt=2,Dt=4,Rt=8,zt=1,Ft=2,Ut=4,Vt=8,Yt=16,Xt=Ft|Ut,Ht=Vt|Yt,qt=Xt|Ht,Wt=["x","y"],Zt=["clientX","clientY"];S.prototype={handler:function(){},init:function(){this.evEl&&v(this.element,this.evEl,this.domHandler),this.evTarget&&v(this.target,this.evTarget,this.domHandler),this.evWin&&v(M(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&y(this.element,this.evEl,this.domHandler),this.evTarget&&y(this.target,this.evTarget,this.domHandler),this.evWin&&y(M(this.element),this.evWin,this.domHandler)}};var Gt={mousedown:At,mousemove:Lt,mouseup:Dt},Bt="mousedown",Jt="mousemove mouseup";p(V,S,{handler:function(t){var e=Gt[t.type];e&At&&0===t.button&&(this.pressed=!0),e&Lt&&1!==t.which&&(e=Dt),this.pressed&&(e&Dt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:It,srcEvent:t}))}});var Kt={pointerdown:At,pointermove:Lt,pointerup:Dt,pointercancel:Rt,pointerout:Rt},Qt={2:Ct,3:jt,4:It,5:Nt},$t="pointerdown",te="pointermove pointerup pointercancel";i.MSPointerEvent&&!i.PointerEvent&&($t="MSPointerDown",te="MSPointerMove MSPointerUp MSPointerCancel"),p(Y,S,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=Kt[r],o=Qt[t.pointerType]||t.pointerType,s=o==Ct,a=x(e,t.pointerId,"pointerId");i&At&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):i&(Dt|Rt)&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))}});var ee={touchstart:At,touchmove:Lt,touchend:Dt,touchcancel:Rt},ne="touchstart",re="touchstart touchmove touchend touchcancel";p(X,S,{handler:function(t){var e=ee[t.type];if(e===At&&(this.started=!0),this.started){var n=H.call(this,t,e);e&(Dt|Rt)&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Ct,srcEvent:t})}}});var ie={touchstart:At,touchmove:Lt,touchend:Dt,touchcancel:Rt},oe="touchstart touchmove touchend touchcancel";p(q,S,{handler:function(t){var e=ie[t.type],n=W.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:Ct,srcEvent:t})}});var se=2500,ae=25;p(Z,S,{handler:function(t,e,n){var r=n.pointerType==Ct,i=n.pointerType==It;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)G.call(this,e,n);else if(i&&J.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ue=w(yt.style,"touchAction"),le=ue!==a,ce="compute",fe="auto",pe="manipulation",de="none",he="pan-x",_e="pan-y",ve=$();K.prototype={set:function(t){t==ce&&(t=this.compute()),le&&this.manager.element.style&&ve[t]&&(this.manager.element.style[ue]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return c(this.manager.recognizers,function(e){h(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),Q(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var r=this.actions,i=g(r,de)&&!ve[de],o=g(r,_e)&&!ve[_e],s=g(r,he)&&!ve[he];if(i){var a=1===t.pointers.length,u=t.distance<2,l=t.deltaTime<250;if(a&&u&&l)return}return s&&o?void 0:i||o&&n&Xt||s&&n&Ht?this.preventSrc(e):void 0},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ye=1,me=2,ge=4,be=8,xe=be,Ee=16,Te=32;tt.prototype={defaults:{},set:function(t){return _t(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(l(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=rt(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return l(t,"dropRecognizeWith",this)?this:(t=rt(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(l(t,"requireFailure",this))return this;var e=this.requireFail;return t=rt(t,this),x(e,t)===-1&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(l(t,"dropRequireFailure",this))return this;t=rt(t,this);var e=x(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,r=this.state;r<be&&e(n.options.event+et(r)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),r>=be&&e(n.options.event+et(r))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=Te)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(Te|ye)))return!1;t++}return!0},recognize:function(t){var e=_t({},t);return h(this.options.enable,[this,e])?(this.state&(xe|Ee|Te)&&(this.state=ye),this.state=this.process(e),void(this.state&(me|ge|be|Ee)&&this.tryEmit(e))):(this.reset(),void(this.state=Te))},process:function(t){},getTouchAction:function(){},reset:function(){}},p(it,tt,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,r=e&(me|ge),i=this.attrTest(t);return r&&(n&Rt||!i)?e|Ee:r||i?n&Dt?e|be:e&me?e|ge:me:Te}}),p(ot,it,{defaults:{event:"pan",threshold:10,pointers:1,direction:qt},getTouchAction:function(){var t=this.options.direction,e=[];return t&Xt&&e.push(_e),t&Ht&&e.push(he),e},directionTest:function(t){var e=this.options,n=!0,r=t.distance,i=t.direction,o=t.deltaX,s=t.deltaY;return i&e.direction||(e.direction&Xt?(i=0===o?zt:o<0?Ft:Ut,n=o!=this.pX,r=Math.abs(t.deltaX)):(i=0===s?zt:s<0?Vt:Yt,n=s!=this.pY,r=Math.abs(t.deltaY))),t.direction=i,n&&r>e.threshold&&i&e.direction},attrTest:function(t){return it.prototype.attrTest.call(this,t)&&(this.state&me||!(this.state&me)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=nt(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),p(st,it,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[de]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&me)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),p(at,tt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[fe]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!r||!n||t.eventType&(Dt|Rt)&&!i)this.reset();else if(t.eventType&At)this.reset(),this._timer=u(function(){this.state=xe,this.tryEmit()},e.time,this);else if(t.eventType&Dt)return xe;return Te},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===xe&&(t&&t.eventType&Dt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=xt(),this.manager.emit(this.options.event,this._input)))}}),p(ut,it,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[de]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&me)}}),p(lt,it,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Xt|Ht,pointers:1},getTouchAction:function(){return ot.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(Xt|Ht)?e=t.overallVelocity:n&Xt?e=t.overallVelocityX:n&Ht&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&bt(e)>this.options.velocity&&t.eventType&Dt},emit:function(t){var e=nt(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),p(ct,tt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[pe]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),t.eventType&At&&0===this.count)return this.failTimeout();if(r&&i&&n){if(t.eventType!=Dt)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||R(this.pCenter,t.center)<e.posThreshold;this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t;var a=this.count%e.taps;if(0===a)return this.hasRequireFailures()?(this._timer=u(function(){this.state=xe,this.tryEmit()},e.interval,this),me):xe}return Te},failTimeout:function(){return this._timer=u(function(){this.state=Te},this.options.interval,this),Te},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==xe&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),ft.VERSION="2.0.7",ft.defaults={domEvents:!1,touchAction:ce,enable:!0,inputTarget:null,inputClass:null,preset:[[ut,{enable:!1}],[st,{enable:!1},["rotate"]],[lt,{direction:Xt}],[ot,{direction:Xt},["swipe"]],[ct],[ct,{event:"doubletap",taps:2},["tap"]],[at]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var we=1,Pe=2;pt.prototype={set:function(t){return _t(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?Pe:we},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,r=this.recognizers,i=e.curRecognizer;(!i||i&&i.state&xe)&&(i=e.curRecognizer=null);for(var o=0;o<r.length;)n=r[o],e.stopped===Pe||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&n.state&(me|ge|be)&&(i=e.curRecognizer=n),o++}},get:function(t){if(t instanceof tt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(l(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(l(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=x(e,t);n!==-1&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var n=this.handlers;return c(b(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==a){var n=this.handlers;return c(b(t),function(t){e?n[t]&&n[t].splice(x(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&ht(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](e),r++}},destroy:function(){this.element&&dt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},_t(ft,{INPUT_START:At,INPUT_MOVE:Lt,INPUT_END:Dt,INPUT_CANCEL:Rt,STATE_POSSIBLE:ye,STATE_BEGAN:me,STATE_CHANGED:ge,STATE_ENDED:be,STATE_RECOGNIZED:xe,STATE_CANCELLED:Ee,STATE_FAILED:Te,DIRECTION_NONE:zt,DIRECTION_LEFT:Ft,DIRECTION_RIGHT:Ut,DIRECTION_UP:Vt,DIRECTION_DOWN:Yt,DIRECTION_HORIZONTAL:Xt,DIRECTION_VERTICAL:Ht,DIRECTION_ALL:qt,Manager:pt,Input:S,TouchAction:K,TouchInput:q,MouseInput:V,PointerEventInput:Y,TouchMouseInput:Z,SingleTouchInput:X,Recognizer:tt,AttrRecognizer:it,Tap:ct,Pan:ot,Swipe:lt,Pinch:st,Rotate:ut,Press:at,on:v,off:y,each:c,merge:Tt,extend:Et,assign:_t,inherit:p,bindFn:d,prefixed:w});var Me="undefined"!=typeof i?i:"undefined"!=typeof self?self:{};Me.Hammer=ft,r=function(){return ft}.call(e,n,e,t),!(r!==a&&(t.exports=r))}(window,document,"Hammer")},function(t,e,n){var r,i,o;!function(n){i=[],r=n,o="function"==typeof r?r.apply(e,i):r,!(void 0!==o&&(t.exports=o))}(function(){var t=null;return function e(n,r){function i(t){return t.match(/[^ ]+/g)}function o(e){if("hammer.input"!==e.type){if(e.srcEvent._handled||(e.srcEvent._handled={}),e.srcEvent._handled[e.type])return;e.srcEvent._handled[e.type]=!0}var n=!1;e.stopPropagation=function(){n=!0};var r=e.srcEvent.stopPropagation.bind(e.srcEvent);"function"==typeof r&&(e.srcEvent.stopPropagation=function(){r(),e.stopPropagation()}),e.firstTarget=t;for(var i=t;i&&!n;){var o=i.hammer;if(o)for(var s,a=0;a<o.length;a++)if(s=o[a]._handlers[e.type])for(var u=0;u<s.length&&!n;u++)s[u](e);i=i.parentNode}}var s=r||{preventDefault:!1};if(n.Manager){var a=n,u=function(t,n){var r=Object.create(s);return n&&a.assign(r,n),e(new a(t,r),r)};return a.assign(u,a),u.Manager=function(t,n){var r=Object.create(s);return n&&a.assign(r,n),e(new a.Manager(t,r),r)},u}var l=Object.create(n),c=n.element;return c.hammer||(c.hammer=[]),c.hammer.push(l),n.on("hammer.input",function(e){s.preventDefault!==!0&&s.preventDefault!==e.pointerType||e.preventDefault(),e.isFirst&&(t=e.target)}),l._handlers={},l.on=function(t,e){return i(t).forEach(function(t){var r=l._handlers[t];r||(l._handlers[t]=r=[],n.on(t,o)),r.push(e)}),l},l.off=function(t,e){return i(t).forEach(function(t){var r=l._handlers[t];r&&(r=e?r.filter(function(t){return t!==e}):[],r.length>0?l._handlers[t]=r:(n.off(t,o),delete l._handlers[t]))}),l},l.emit=function(e,r){t=t||r.target,n.emit(e,r)},l.destroy=function(){var t=n.element.hammer,e=t.indexOf(l);e!==-1&&t.splice(e,1),t.length||delete n.element.hammer,l._handlers={},n.destroy()},l}})},function(t,e){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function r(){if(E){for(var t,e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];console.group||n.unshift("%credux-undo","font-style: italic"),(t=console).log.apply(t,n)}}function i(t,e){if(E){var n=["action",t.type];if(console.group){var i;n.unshift("%credux-undo","font-style: italic"),(i=console).groupCollapsed.apply(i,n),console.log("received",{state:e,action:t})}else r.apply(void 0,n)}}function o(){if(E)return console.groupEnd&&console.groupEnd()}function s(t){var e=t.past,n=t.future;return e.length+1+n.length}function a(t,e,i){r("insert",{state:e,history:t,free:i-s(t)});var o=t.past,a=t.present,u=i&&s(t)>=i;return void 0===a?{past:[],present:e,future:[]}:{past:[].concat(n(o.slice(u?1:0)),[a]),present:e,future:[]}}function u(t){r("undo",{history:t});var e=t.past,i=t.present,o=t.future;return e.length<=0?t:{past:e.slice(0,e.length-1),present:e[e.length-1],future:[i].concat(n(o))}}function l(t){r("redo",{history:t});var e=t.past,i=t.present,o=t.future;return o.length<=0?t:{future:o.slice(1,o.length),present:o[0],past:[].concat(n(e),[i])}}function c(t,e){if(0===e)return l(t);var n=t.past,r=t.present,i=t.future;return{future:i.slice(e+1),present:i[e],past:n.concat([r]).concat(i.slice(0,e))}}function f(t,e){if(e===t.past.length-1)return u(t);var n=t.past,r=t.present,i=t.future;return{future:n.slice(e+1).concat([r]).concat(i),present:n[e],past:n.slice(0,e)}}function p(t){return x({},t,{history:t})}function d(t,e){return p(x({},t,e))}function h(t){return{past:[],present:t,future:[]}}function _(t){var e=arguments.length<=1||void 0===arguments[1]?[]:arguments[1];return Array.isArray(t)?t:"string"==typeof t?[t]:e}function v(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];E=e.debug;var n={initialState:e.initialState,initTypes:_(e.initTypes,["@@redux/INIT","@@INIT"]),limit:e.limit,filter:e.filter||function(){return!0},undoType:e.undoType||T.UNDO,redoType:e.redoType||T.REDO,jumpToPastType:e.jumpToPastType||T.JUMP_TO_PAST,jumpToFutureType:e.jumpToFutureType||T.JUMP_TO_FUTURE};return n.history=e.initialHistory||h(n.initialState),0===n.initTypes.length&&console.warn("redux-undo: supply at least one action type in initTypes to ensure initial state"),function(e,_){i(_,e);var v=void 0;switch(_.type){case n.undoType:return v=u(e),r("after undo",v),o(),v?d(e,v):e;case n.redoType:return v=l(e),r("after redo",v),o(),v?d(e,v):e;case n.jumpToPastType:return v=f(e,_.index),r("after jumpToPast",v),o(),v?d(e,v):e;case n.jumpToFutureType:return v=c(e,_.index),r("after jumpToFuture",v),o(),v?d(e,v):e;default:if(v=t(e&&e.present,_),n.initTypes.some(function(t){return t===_.type}))return r("reset history due to init action"),o(),p(x({},e,h(v)));if(n.filter&&"function"==typeof n.filter&&!n.filter(_,v,e&&e.present))return r("filter prevented action, not storing it"),o(),p(x({},e,{present:v}));var y=e&&void 0!==e.present?e:n.history,m=a(y,v,n.limit);return r("after insert",{history:m,free:n.limit-s(m)}),o(),p(x({},e,m))}}}function y(){return function(t,e,n){return e!==n}}function m(t){var e=_(t);return function(t){return e.indexOf(t.type)>=0}}function g(t){return console.error("Deprecation Warning: Please change `ifAction` to `includeAction`"),m(t)}function b(){var t=arguments.length<=0||void 0===arguments[0]?[]:arguments[0],e=_(t);return function(t){return e.indexOf(t.type)<0}}Object.defineProperty(e,"__esModule",{value:!0});var x=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.parseActions=_,e.default=v,e.distinctState=y,e.includeAction=m,e.ifAction=g,e.excludeAction=b;var E=void 0,T=e.ActionTypes={UNDO:"@@redux-undo/UNDO",REDO:"@@redux-undo/REDO",JUMP_TO_FUTURE:"@@redux-undo/JUMP_TO_FUTURE",JUMP_TO_PAST:"@@redux-undo/JUMP_TO_PAST"};e.ActionCreators={undo:function(){return{type:T.UNDO}},redo:function(){return{type:T.REDO}},jumpToFuture:function(t){return{type:T.JUMP_TO_FUTURE,index:t}},jumpToPast:function(t){return{type:T.JUMP_TO_PAST,index:t}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(49),o=n(123),s=r(o),a=n(154),u=r(a),l=n(163),c=function(t){var e=t.state,n=t.progressLines,r=t.options;return(0,i.h)("div",{className:l["curve-editor__right"]},(0,i.h)(s.default,{state:e,options:r,progressLines:n}),(0,i.h)(u.default,{state:e,type:"right",className:l["curve-editor__resize-handle"]}),(0,i.h)(u.default,{state:e,type:"bottom",className:l["curve-editor__resize-handle"]}))};e.default=c},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(72),o=r(i),s=n(43),a=r(s),u=n(44),l=r(u),c=n(77),f=r(c),p=n(110),d=r(p),h=n(49),_=n(124),v=(r(_),n(125)),y=r(v),m=n(131),g=r(m),b=n(133),x=r(b),E=n(137),T=r(E),w=n(147),P=(r(w),n(118)),M=r(P),S=n(119),O=r(S),C=n(120),j=r(C);n(151);var I=n(153),N=function(t){function e(){return(0,a.default)(this,e),(0,f.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,d.default)(e,t),(0,l.default)(e,[{key:"render",value:function(){var t=this.props.state,e=t.points.present.path,n=this._getStyle(t),r=this._renderPoints(t),i=this._renderSegments(t),o=this._renderProgressLines(t),s=this._getCurveHeight();return(0,h.h)("div",{className:this._getClassName(),"data-component":"curve"},(0,h.h)("div",{id:"js-background",className:I.curve__background,style:n.background},(0,h.h)(g.default,{styles:n})),o,(0,h.h)("div",{className:I["curve__svg-wrapper"],style:n.transform},(0,h.h)(x.default,null),(0,h.h)(x.default,{type:"right"}),r,(0,h.h)("svg",{height:M.default.CURVE_SIZE,viewBox:"0 0 100 "+s,preserveAspectRatio:"none",id:"js-svg",class:I.curve__svg},(0,h.h)("path",{d:e,stroke:"#000000","stroke-opacity":"0.35","stroke-width":"4","vector-effect":"non-scaling-stroke",transform:"translate(.75,.75)",fill:"none"}),(0,h.h)("g",{id:"js-segments"}," ",i," "))))}},{key:"_getClassName",value:function(){var t=this.props.state,e=t.controls,n=e.isMinimize?I["is-minimized"]:"";return I.curve+" "+n}},{key:"_getCurveHeight",value:function(){var t=this.props,e=t.state;t.options,e.resize;return e.controls.isMinimize?4.28*M.default.CURVE_SIZE:100}},{key:"_getStyle",value:function(t){var e=t.resize,n=e.temp_top,r=e.temp_bottom,i=e.temp_right,o=e.panTempY,s=M.default.CURVE_SIZE-(n+e.top)+(r+e.bottom);o+=e.panY,n+=e.top-o,i+=e.right;var a=t.controls.isMinimize?-(n/M.default.CURVE_SIZE)*(20/(s/M.default.CURVE_SIZE)):-n,u=(M.default.CURVE_SIZE+Math.max(i,0))/M.default.CURVE_SIZE,l="width: "+M.default.CURVE_SIZE*u+"px;",c="transform: translate(0px, "+a+"px)";return{transform:""+mojs.h.prefix.css+c+"; "+c+";",background:l,height:s,svgTop:n}}},{key:"_renderPoints",value:function(t){for(var e=t.points.present.points,n=[],r=e.length,i=0;i<r;i++)n.push((0,h.h)(T.default,{point:e[i],state:t,index:i,pointsCount:r}));return n}},{key:"_renderSegments",value:function(t){for(var e=t.points.present.segments,n=[],r=0;r<e.length;r++){var i=e[r];n.push((0,h.h)("path",{d:i.segmentString,"data-index":i.index,stroke:"white",fill:"none","stroke-width":"","vector-effect":"non-scaling-stroke",class:I["curve__svg-segment"]}))}return n}},{key:"_renderProgressLines",value:function(t){for(var e=t.progressLines,n=e.lines,r=[],i=n.length-1;i>=0;i--){var o=n[i];r.push((0,h.h)(y.default,o))}return r}},{key:"_updateDomProgressLines",value:function(){var t=this.props.progressLines;t.length=0;for(var e=this.base.querySelectorAll('[data-component="progress-line"]'),n=0;n<e.length;n++)t[n]=e[n]}},{key:"componentDidUpdate",value:function(){this._updateDomProgressLines()}},{key:"componentWillMount",value:function(){this._isFirefox=navigator.userAgent.indexOf("Firefox")>-1}},{key:"componentDidMount",value:function(){var t=this;this._updateDomProgressLines();var e=this.context.store,n=this.base.querySelector("#js-segments");this._mc=(0,j.default)(new O.default.Manager(n)),this._mc.add(new O.default.Tap),this._mc.on("tap",function(n){var r=t.props.state,i=n.srcEvent,o=i.target;if("path"===o.tagName.toLowerCase()){var s=i.offsetX,a=i.offsetY,u=parseInt(o.getAttribute("data-index"))+1;t._isFirefox?(a*=M.default.CURVE_PERCENT,s-=1,a-=1):s/=r.resize.scalerX,t._isFirefox,e.dispatch({type:"POINT_ADD",data:{point:{x:s,y:a},index:u},isRecord:!0}),e.dispatch({type:"POINT_SELECT",data:{index:u,type:"straight"}}),n.stopPropagation()}});this.base.querySelector("#js-svg");this._svgMc=(0,j.default)(new O.default.Manager(this.base)),this._svgMc.add(new O.default.Tap),this._svgMc.add(new O.default.Pan),this._svgMc.on("tap",function(t){e.dispatch({type:"POINT_DESELECT_ALL"})}).on("pan",function(t){e.dispatch({type:"EDITOR_PAN",data:t.deltaY})}).on("panend",function(t){e.dispatch({type:"EDITOR_PAN_END",data:t.deltaY})})}},{key:"componentWillUnmount",value:function(){this._mc.off("tap"),this._svgMc.off("tap"),this._svgMc.off("pan"),this._svgMc.off("panend")}}]),e}(h.Component);e.default=N},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return mojs.h.getRadialPoint({rotate:t,radius:e,center:{x:0,y:0}})}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(72),o=r(i),s=n(43),a=r(s),u=n(44),l=r(u),c=n(77),f=r(c),p=n(110),d=r(p),h=n(49);n(126);var _=n(130),v=function(t){function e(){return(0,a.default)(this,e),(0,f.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,d.default)(e,t),(0,l.default)(e,[{key:"render",value:function(){var t=this.props,e={backgroundColor:t.color
};return(0,h.h)("div",{className:_["progress-line"],style:e,"data-component":"progress-line"})}}]),e}(h.Component);e.default=v},function(t,e,n){var r=n(127);"string"==typeof r&&(r=[[t.id,r,""]]);n(129)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(128)(),e.push([t.id,"._progress-line_1j4pp_3{position:absolute;top:0;bottom:0;width:1px;margin-left:-1.5px}",""])},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e<this.length;e++){var n=this[e];n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1])}return t.join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var s=e[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(t,e,n){function r(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=d[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(l(r.parts[o],e))}else{for(var s=[],o=0;o<r.parts.length;o++)s.push(l(r.parts[o],e));d[r.id]={id:r.id,refs:1,parts:s}}}}function i(t){for(var e=[],n={},r=0;r<t.length;r++){var i=t[r],o=i[0],s=i[1],a=i[2],u=i[3],l={css:s,media:a,sourceMap:u};n[o]?n[o].parts.push(l):e.push(n[o]={id:o,parts:[l]})}return e}function o(t,e){var n=v(),r=g[g.length-1];if("top"===t.insertAt)r?r.nextSibling?n.insertBefore(e,r.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),g.push(e);else{if("bottom"!==t.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(e)}}function s(t){t.parentNode.removeChild(t);var e=g.indexOf(t);e>=0&&g.splice(e,1)}function a(t){var e=document.createElement("style");return e.type="text/css",o(t,e),e}function u(t){var e=document.createElement("link");return e.rel="stylesheet",o(t,e),e}function l(t,e){var n,r,i;if(e.singleton){var o=m++;n=y||(y=a(e)),r=c.bind(null,n,o,!1),i=c.bind(null,n,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(e),r=p.bind(null,n),i=function(){s(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(e),r=f.bind(null,n),i=function(){s(n)});return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}function c(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function f(t,e){var n=e.css,r=e.media;if(r&&t.setAttribute("media",r),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}function p(t,e){var n=e.css,r=e.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=t.href;t.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}var d={},h=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},_=h(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),v=h(function(){return document.head||document.getElementsByTagName("head")[0]}),y=null,m=0,g=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=_()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=i(t);return r(n,e),function(t){for(var o=[],s=0;s<n.length;s++){var a=n[s],u=d[a.id];u.refs--,o.push(u)}if(t){var l=i(t);r(l,e)}for(var s=0;s<o.length;s++){var u=o[s];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete d[u.id]}}}};var b=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}()},function(t,e){t.exports={"progress-line":"_progress-line_1j4pp_3"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(72),o=r(i),s=n(43),a=r(s),u=n(44),l=r(u),c=n(77),f=r(c),p=n(110),d=r(p),h=n(49),_=n(132),v=r(_),y=function(t){function e(){return(0,a.default)(this,e),(0,f.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,d.default)(e,t),(0,l.default)(e,[{key:"componentWillMount",value:function(){this._hash=(0,v.default)(Math.random()+""),this._patternName="rect-paper-"+this._hash}},{key:"render",value:function(){var t=this.props.styles;return(0,h.h)("svg",{preserveAspectRatio:"none",height:t.height+"px",viewBox:"0 0 "+(350+1e-4*Math.random())+" "+t.height},(0,h.h)("pattern",{id:this._patternName,x:"0",y:""+-t.svgTop,height:"350",width:"350",patternUnits:"userSpaceOnUse"},(0,h.h)("g",{id:"Group",transform:"translate(-1.000000, -1.000000)",stroke:"#FFFFFF","stroke-width":"1",fill:"none","vector-effect":"non-scaling-stroke"},(0,h.h)("g",{opacity:"0.25"},(0,h.h)("path",{d:"M333.497821,350.501088 L333.497821,0.501088302"}),(0,h.h)("path",{d:"M315.997821,350.501088 L315.997821,0.501088302"}),(0,h.h)("path",{d:"M298.497821,350.501088 L298.497821,0.501088302"}),(0,h.h)("path",{d:"M280.997821,350.501088 L280.997821,0.501088302"}),(0,h.h)("path",{d:"M245.997821,350.501088 L245.997821,0.501088302"}),(0,h.h)("path",{d:"M228.497821,350.501088 L228.497821,0.501088302"}),(0,h.h)("path",{d:"M210.997821,350.501088 L210.997821,0.501088302"}),(0,h.h)("path",{d:"M193.497821,350.501088 L193.497821,0.501088302"}),(0,h.h)("path",{d:"M159.372821,350.501088 L159.372821,0.501088302"}),(0,h.h)("path",{d:"M141.872821,350.501088 L141.872821,0.501088302"}),(0,h.h)("path",{d:"M124.372821,350.501088 L124.372821,0.501088302"}),(0,h.h)("path",{d:"M106.872821,350.501088 L106.872821,0.501088302"}),(0,h.h)("path",{d:"M71.8728207,350.501088 L71.8728207,0.501088302"}),(0,h.h)("path",{d:"M54.3728207,350.501088 L54.3728207,0.501088302"}),(0,h.h)("path",{d:"M36.8728207,350.501088 L36.8728207,0.501088302"}),(0,h.h)("path",{d:"M19.3728207,350.501088 L19.3728207,0.501088302"}),(0,h.h)("path",{d:"M351.001088,19.0021793 L1.0010883,19.0021793"}),(0,h.h)("path",{d:"M351.001088,36.5021793 L1.0010883,36.5021793"}),(0,h.h)("path",{d:"M351.001088,54.0021793 L1.0010883,54.0021793"}),(0,h.h)("path",{d:"M351.001088,71.5021793 L1.0010883,71.5021793"}),(0,h.h)("path",{d:"M351.001088,106.502179 L1.0010883,106.502179"}),(0,h.h)("path",{d:"M351.001088,124.002179 L1.0010883,124.002179"}),(0,h.h)("path",{d:"M351.001088,141.502179 L1.0010883,141.502179"}),(0,h.h)("path",{d:"M351.001088,159.002179 L1.0010883,159.002179"}),(0,h.h)("path",{d:"M351.001088,193.127179 L1.0010883,193.127179"}),(0,h.h)("path",{d:"M351.001088,210.627179 L1.0010883,210.627179"}),(0,h.h)("path",{d:"M351.001088,228.127179 L1.0010883,228.127179"}),(0,h.h)("path",{d:"M351.001088,245.627179 L1.0010883,245.627179"}),(0,h.h)("path",{d:"M351.001088,280.627179 L1.0010883,280.627179"}),(0,h.h)("path",{d:"M351.001088,298.127179 L1.0010883,298.127179"}),(0,h.h)("path",{d:"M351.001088,315.627179 L1.0010883,315.627179"}),(0,h.h)("path",{d:"M351.001088,333.127179 L1.0010883,333.127179"})),(0,h.h)("g",{opacity:"0.5"},(0,h.h)("path",{d:"M88.0641352,1 L88.0641352,351"}),(0,h.h)("path",{d:"M175.12827,1 L175.12827,351"}),(0,h.h)("path",{d:"M262.192406,1 L262.192406,351"}),(0,h.h)("path",{d:"M350.563591,88.0646793 L0.563591022,88.0646793"}),(0,h.h)("path",{d:"M350.563591,175.564679 L0.563591022,175.564679"}),(0,h.h)("path",{d:"M350.563591,263.064679 L0.563591022,263.064679"})),(0,h.h)("rect",{opacity:"0.75",x:"1",y:"1",width:"350",height:"350"}))),(0,h.h)("rect",{width:"350",height:t.height,fill:"url(#"+this._patternName+")"}))}}]),e}(h.Component);e.default=y},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,n,r,i=0;if(0===t.length)return i;for(e=0,r=t.length;e<r;e++)n=t.charCodeAt(e),i=(i<<5)-i+n,i|=0;return Math.abs(i)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Ruler=void 0;var i=n(72),o=r(i),s=n(43),a=r(s),u=n(44),l=r(u),c=n(77),f=r(c),p=n(110),d=r(p),h=n(49);n(134);var _=n(136),v=e.Ruler=function(t){function e(){return(0,a.default)(this,e),(0,f.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,d.default)(e,t),(0,l.default)(e,[{key:"render",value:function(){var t=""+_.ruler;return"right"===this.props.type&&(t+=" "+_["ruler--right"]),(0,h.h)("div",{className:t,"data-component":"ruler"},(0,h.h)("div",{className:_.ruler__item+" "+_["ruler__item--2"]}," 2  "),(0,h.h)("div",{className:_.ruler__item+" "+_["ruler__item--1"]}," 1  "),(0,h.h)("div",{className:_.ruler__item+" "+_["ruler__item--0"]}," 0  "),(0,h.h)("div",{className:_.ruler__item+" "+_["ruler__item--n1"]}," -1  "),(0,h.h)("div",{className:_.ruler__item+" "+_["ruler__item--n2"]}," -2  "))}}]),e}(h.Component);e.default=v},function(t,e,n){var r=n(135);"string"==typeof r&&(r=[[t.id,r,""]]);n(129)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(128)(),e.push([t.id,"._ruler_qlwtd_4{position:absolute;left:0;top:-1050px;height:2450px;width:18px}._ruler--right_qlwtd_1{left:auto;right:0}._ruler__item_qlwtd_1{position:absolute;color:#9c829a;font-size:8px;font-family:sans-serif;border-radius:50%;left:50%;width:7px;height:14px;text-align:center;line-height:14px;margin-top:3px;margin-left:-3.5px}._ruler__item--0_qlwtd_1{top:1400px}._ruler__item--1_qlwtd_1{top:1050px}._ruler__item--2_qlwtd_1{top:700px}._ruler__item--n1_qlwtd_1{top:1750px}._ruler__item--n2_qlwtd_1{top:2100px}",""])},function(t,e){t.exports={ruler:"_ruler_qlwtd_4","ruler--right":"_ruler--right_qlwtd_1",ruler__item:"_ruler__item_qlwtd_1","ruler__item--0":"_ruler__item--0_qlwtd_1","ruler__item--1":"_ruler__item--1_qlwtd_1","ruler__item--2":"_ruler__item--2_qlwtd_1","ruler__item--n1":"_ruler__item--n1_qlwtd_1","ruler__item--n2":"_ruler__item--n2_qlwtd_1"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(72),o=r(i),s=n(43),a=r(s),u=n(44),l=r(u),c=n(77),f=r(c),p=n(110),d=r(p),h=n(49),_=n(138),v=r(_),y=n(139),m=r(y),g=n(120),b=r(g),x=n(145),E=r(x),T=n(119),w=r(T),P=n(146),M=r(P),S=n(147),O=(r(S),n(118)),C=r(O);n(148);var j=n(150),I=function(t){function e(){return(0,a.default)(this,e),(0,f.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,d.default)(e,t),(0,l.default)(e,[{key:"render",value:function(){var t=this.props,e=t.point,n=t.state,r=e.isSelected?j["is-selected"]:"",i="straight"===e.type?j["is-hide-handles"]:"",o=this._getLittleHandles();return(0,h.h)("div",{className:j.point+" "+r+" "+i,style:this._getStyle(n),"data-component":"point"},(0,h.h)("div",{className:j.point__touch,id:"js-point-touch"}),o)}},{key:"_getStyle",value:function(t){var e=this.props.point,n=t.resize,r=(0,M.default)(e.x+e.tempX,0,100),i=r*n.scalerX,o=e.y+e.tempY,s="transform: translate("+i+"px, "+(o-1)+"px)";return""+mojs.h.prefix.css+s+"; "+s}},{key:"_getLittleHandles",value:function(){var t=this.props,e=t.index,n=t.point,r=t.pointsCount,i=[];return 0!==e&&i.push(this._createHandle(1,n)),e!==r-1&&i.push(this._createHandle(2,n)),i}},{key:"_createHandle",value:function(t,e){return(0,h.h)(m.default,{index:t,state:this.props.state,parentIndex:this.props.index,handle:e["handle"+t],type:e.type})}},{key:"componentDidMount",value:function(){var t=this,e=this.context.store,n=function(e){var n=t.props.state.resize,r=t.props,i=r.point;r.index;if(i.isLockedX)return 0;var o=e.deltaX/n.scalerX;return i.x+o<0?0-i.x:i.x+o>100?100-i.x:(0,E.default)(i.x+o,5,1.5)-i.x},r=function(e){var n=t.props.state.resize,r=t.props,i=r.point,o=(r.index,i.y+e.deltaY),s=o;return o<n.top-n.panY?s=n.top-n.panY:o>C.default.CURVE_SIZE+n.bottom-n.panY&&(s=C.default.CURVE_SIZE+n.bottom-n.panY),(0,E.default)(s,5*C.default.CURVE_PERCENT,2*C.default.CURVE_PERCENT)-i.y},i=this.base.querySelector("#js-point-touch");this._mc=(0,b.default)(new w.default.Manager(i)),this._mc.add(new w.default.Pan({threshold:0})),this._mc.on("pan",function(i){var o=t.props,s=(o.point,o.index);e.dispatch({type:"POINT_TRANSLATE",data:{x:n(i),y:r(i),index:s}}),i.stopPropagation()}).on("panend",function(n){var r=t.props,i=(r.point,r.index);e.dispatch({type:"POINT_TRANSLATE_END",data:i,isRecord:!0}),n.stopPropagation()}).on("tap",function(t){t.stopPropagation()}),(0,v.default)(i,function(n){var r=t.props,i=r.point,o=r.index;e.dispatch({type:"POINT_SELECT",data:{index:o,isDeselect:!n.shiftKey,type:i.type}})})}},{key:"componentWillUnmount",value:function(){this._mc.off("tap"),this._mc.off("pan"),this._mc.off("panend")}}]),e}(h.Component);e.default=I},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){window.navigator.msPointerEnabled?t.addEventListener("MSPointerDown",e):void 0!==window.ontouchstart?(t.addEventListener("touchstart",e),t.addEventListener("mousedown",e)):t.addEventListener("mousedown",e)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=r(i),s=n(72),a=r(s),u=n(43),l=r(u),c=n(44),f=r(c),p=n(77),d=r(p),h=n(110),_=r(h),v=n(49),y=n(124),m=r(y),g=n(140),b=r(g),x=n(118),E=(r(x),n(141)),T=r(E),w=n(120),P=r(w),M=n(119),S=r(M);n(142);var O=n(144),C=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,_.default)(e,t),(0,f.default)(e,[{key:"render",value:function(){return(0,v.h)("div",{className:O["little-handle"],"data-component":"little-handle"},(0,v.h)("div",{class:O["little-handle__point"],style:this._getPointStyle()},(0,v.h)("div",{className:O["little-handle__easy-touch"]})),(0,v.h)("div",{class:O["little-handle__line"],style:this._getLineStyle()}))}},{key:"componentDidMount",value:function(){var t=this,e=this.context.store,n=(0,P.default)(new S.default.Manager(this.base)),r=this.props.handle;n.add(new S.default.Pan({threshold:0})),n.on("panstart",function(e){r=t.props.handle}).on("pan",function(n){var i=t.props,s=i.index,a=i.parentIndex,u=i.state,l=(0,m.default)(r.rotate,r.radius),c=l.y+n.deltaY,f=u.resize,p=l.x+n.deltaX/f.absScalerX,d=(0,b.default)(p,c);if(e.dispatch({type:"HANDLE_TRANSLATE",data:(0,o.default)({index:s,parentIndex:a},d)}),"mirrored"===t.props.type){var h=1===s?2:1;e.dispatch({type:"HANDLE_TRANSLATE",data:{index:h,parentIndex:a,radius:d.radius,rotate:d.rotate-180}})}if("asymmetric"===t.props.type){var _=1===s?2:1;e.dispatch({type:"HANDLE_TRANSLATE",data:{index:_,parentIndex:a,radius:r.radius,rotate:d.rotate-180}})}n.stopPropagation()}).on("panend",function(t){e.dispatch({type:"HANDLE_TRANSLATE_END",isRecord:!0}),T.default.clear(),t.stopPropagation()})}},{key:"_getPointStyle",value:function(){var t=this.props,e=t.handle,n=t.state,r=n.resize,i=(0,m.default)(e.rotate,e.radius),o="transform: translate("+i.x*r.absScalerX+"px, "+i.y+"px) rotate("+e.rotate+"deg)";return""+mojs.h.prefix.css+o+"; "+o}},{key:"_getLineStyle",value:function(){var t=this.props,e=t.handle,n=t.state,r=n.resize,i=(0,m.default)(e.rotate,e.radius),o=(0,b.default)(i.x*r.absScalerX,i.y),s="transform: rotate("+o.rotate+"deg) scaleY("+o.radius+")";return""+mojs.h.prefix.css+s+"; "+s}}]),e}(v.Component);e.default=C},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=Math.sqrt(t*t+e*e),r=Math.atan(e/(t||1))*(180/Math.PI)-90;return t>0&&(r-=180),{radius:n,rotate:r}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(43),o=r(i),s=n(44),a=r(s),u=function(){function t(){(0,o.default)(this,t),this._states=[]}return(0,a.default)(t,[{key:"push",value:function(t){return this}},{key:"clear",value:function(){return this._states=[],this}}]),t}();e.default=new u},function(t,e,n){var r=n(143);"string"==typeof r&&(r=[[t.id,r,""]]);n(129)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(128)(),e.push([t.id,"._little-handle_3dk3h_3{position:absolute;left:50%;top:50%;width:0;height:0}._little-handle__point_3dk3h_1{position:absolute;z-index:1;width:6px;height:6px;left:50%;top:50%;margin-left:-3px;margin-top:-3px;background:#ff512f;box-shadow:1px 1px 0 rgba(0,0,0,.5)}._little-handle__easy-touch_3dk3h_1{position:absolute;z-index:1;width:200%;height:200%;left:50%;top:50%;margin-left:-100%;margin-top:-100%}._little-handle__line_3dk3h_1{position:absolute;width:1px;height:1px;margin-left:-1px;margin-top:-1px;left:50%;top:50%;background:#ff512f;transform-origin:50% 100%}",""])},function(t,e){t.exports={"little-handle":"_little-handle_3dk3h_3","little-handle__point":"_little-handle__point_3dk3h_1","little-handle__easy-touch":"_little-handle__easy-touch_3dk3h_1","little-handle__line":"_little-handle__line_3dk3h_1"}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r=Math.round(t/e)*e;return Math.abs(t-r)<n?r:t}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){return t<e?e:t>n?n:t}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(118),o=r(i),s=o.default.CURVE_SIZE,a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=Math.abs(t%s),r=parseInt(t/s),i=15;return n<i?t=r*s:n>s-i&&(t=(r+1*e)*s),t};e.default=a},function(t,e,n){var r=n(149);"string"==typeof r&&(r=[[t.id,r,""]]);n(129)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(128)(),e.push([t.id,"._point_zvcv8_5{position:absolute;width:10px;height:10px;margin-left:-5px;margin-top:-5px;cursor:move;background:#fff;border-radius:50%;z-index:3;box-shadow:3px 3px 0 rgba(0,0,0,.5)}._point_zvcv8_5 [data-component=little-handle]{display:none}._point__touch_zvcv8_1{position:absolute;left:50%;top:50%;width:20px;height:20px;margin-left:-10px;margin-top:-10px}._point_zvcv8_5._is-selected_zvcv8_31,._point_zvcv8_5:hover{background:#ff512f}._point_zvcv8_5._is-selected_zvcv8_31 [data-component=little-handle]{display:block}._point_zvcv8_5._is-hide-handles_zvcv8_43 [data-component=little-handle]{display:none}",""])},function(t,e){t.exports={point:"_point_zvcv8_5",point__touch:"_point__touch_zvcv8_1","is-selected":"_is-selected_zvcv8_31","is-hide-handles":"_is-hide-handles_zvcv8_43"}},function(t,e,n){var r=n(152);"string"==typeof r&&(r=[[t.id,r,""]]);n(129)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(128)(),e.push([t.id,"._curve_1w89w_5{position:absolute;left:0;top:10px;right:10px;bottom:10px;border-radius:2px;background:rgba(58,8,58,.75);border:1px solid #9c829a;box-shadow:inset 4px 4px 0 rgba(0,0,0,.5);z-index:2;overflow:hidden}._curve__background_1w89w_1{position:absolute;z-index:0;top:0;bottom:0;width:350px;left:0;opacity:.5;border-radius:inherit}._curve__background_1w89w_1 svg{width:100%}._curve__background_1w89w_1 path{vector-effect:non-scaling-stroke}._curve__svg-wrapper_1w89w_1{position:absolute;z-index:1;left:-1px;right:-1px}._curve__svg_1w89w_1{display:block;overflow:visible;width:100%;position:relative;z-index:1}._curve__svg-segment_1w89w_1{stroke:#fff;stroke-width:2px;cursor:crosshair}._curve__svg-segment_1w89w_1:hover{stroke:#ff512f}",""])},function(t,e){t.exports={curve:"_curve_1w89w_5",curve__background:"_curve__background_1w89w_1","curve__svg-wrapper":"_curve__svg-wrapper_1w89w_1",curve__svg:"_curve__svg_1w89w_1","curve__svg-segment":"_curve__svg-segment_1w89w_1"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=r(i),s=n(72),a=r(s),u=n(43),l=r(u),c=n(44),f=r(c),p=n(77),d=r(p),h=n(110),_=r(h),v=n(49),y=n(155),m=r(y),g=n(119),b=r(g),x=n(120),E=r(x),T=n(159),w=r(T),P=n(160);n(161);var M=function(t){function e(){return(0,l.default)(this,e),(0,d.default)(this,(e.__proto__||(0,a.default)(e)).apply(this,arguments))}return(0,_.default)(e,t),(0,f.default)(e,[{key:"render",value:function(){var t=this.props.type,e=""+P["resize-handle"],n=""+P["resize-handle--"+t];return(0,v.h)("div",{className:e+" "+n+" "+this.props.className,"data-type":t,"data-component":"resize-handle"},(0,v.h)(m.default,{shape:"ellipsis"}))}},{key:"componentDidMount",value:function(){var t=this,e=this.props.type,n=this.context.store;this._mc=(0,E.default)(new b.default.Manager(this.base)),this._mc.add(new b.default.Pan({threshold:0})),this._mc.on("pan",function(r){n.dispatch({type:"EDITOR_RESIZE",data:(0,o.default)({},(0,w.default)(r.deltaX,r.deltaY,e,t.props.state))}),r.stopPropagation()}).on("panend",function(r){n.dispatch({type:"EDITOR_RESIZE_END",data:(0,o.default)({},(0,w.default)(r.deltaX,r.deltaY,e,t.props.state))}),r.stopPropagation()})}},{key:"componentWillUnmount",value:function(){this._mc.off("pan"),this._mc.off("panend")}}]),e}(v.Component);e.default=M},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(72),o=r(i),s=n(43),a=r(s),u=n(44),l=r(u),c=n(77),f=r(c),p=n(110),d=r(p),h=n(49),_=n(156);n(157);var v=function(t){function e(){return(0,a.default)(this,e),(0,f.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,d.default)(e,t),(0,l.default)(e,[{key:"render",value:function(){var t=this.props.shape,e='<svg viewBox="0 0 32 32"><use xlink:href="#'+t+'-shape" /></svg>';return(0,h.h)("div",{className:_.icon,"data-component":"icon",dangerouslySetInnerHTML:{__html:e}})}}]),e}(h.Component);e.default=v},function(t,e){t.exports={icon:"_icon_4a8lf_5"}},function(t,e,n){var r=n(158);"string"==typeof r&&(r=[[t.id,r,""]]);n(129)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(128)(),e.push([t.id,'._icon_4a8lf_5{position:relative;width:32px;height:32px;cursor:pointer;fill:#fff;display:block}._icon_4a8lf_5>svg{position:absolute;left:0;top:0;width:100%;height:100%;fill:inherit}._icon_4a8lf_5>svg>use{fill:inherit}._icon_4a8lf_5:after{content:"";position:absolute;left:0;top:0;right:0;bottom:0;z-index:1}',""])},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(147),o=r(i),s=n(118);r(s);e.default=function(t,e,n,r){var i=r.resize;if("right"!==n){var s=i[n]+e,a="top"===n?-1:1;e=(0,o.default)(s,a),e-=i[n];var u=0;s*a<-u&&(e=-i[n]-u)}else i[n]+t<0&&(t=-i[n]);return{x:t,y:e,type:n,resize:i}}},function(t,e){t.exports={"resize-handle":"_resize-handle_5miht_4","resize-handle--right":"_resize-handle--right_5miht_1","resize-handle--bottom":"_resize-handle--bottom_5miht_1"}},function(t,e,n){var r=n(162);"string"==typeof r&&(r=[[t.id,r,""]]);n(129)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(128)(),e.push([t.id,'._resize-handle_5miht_4{background:#3d1b3c;width:32px;height:16px;display:block;cursor:n-resize;overflow:hidden;position:relative;border-top-left-radius:3px;border-top-right-radius:3px;transform-origin:50% 100%;box-shadow:inset 0 0 0 1px #572b51}._resize-handle_5miht_4:after{content:"";position:absolute;left:0;top:0;right:0;bottom:0;z-index:2}._resize-handle_5miht_4 [data-component=icon]{position:absolute;left:0;top:-7px}._resize-handle_5miht_4:hover{opacity:.85}._resize-handle--right_5miht_1{transform:rotate(90deg);cursor:e-resize}._resize-handle--bottom_5miht_1{transform:rotate(180deg);cursor:s-resize}',""])},function(t,e){t.exports={"curve-editor":"_curve-editor_d81sj_3","curve-editor__left":"_curve-editor__left_d81sj_1","curve-editor__right":"_curve-editor__right_d81sj_138","curve-editor__resize-handle":"_curve-editor__resize-handle_d81sj_1","curve-editor__anchor-buttons":"_curve-editor__anchor-buttons_d81sj_133","curve-editor__mojs-logo":"_curve-editor__mojs-logo_d81sj_116","is-inactive":"_is-inactive_d81sj_115","is-minimized":"_is-minimized_d81sj_123","curve__svg-wrapper":"_curve__svg-wrapper_d81sj_142","is-hidden-on-min":"_is-hidden-on-min_d81sj_152"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(49),o=n(155),s=r(o),a=n(165),u=r(a),l=n(170),c=r(l),f=n(171),p=r(f),d=n(172),h=r(d),_=n(176),v=r(_),y=n(163),m=function(t){var e=t.state;return(0,i.h)("div",{className:y["curve-editor__left"],id:"js-left-panel"},(0,i.h)(c.default,{state:e}),(0,i.h)(p.default,{state:e}),(0,i.h)(u.default,{state:e}),(0,i.h)(h.default,null),(0,i.h)(v.default,{state:e,className:y["curve-editor__anchor-buttons"]}),(0,i.h)("a",{className:y["curve-editor__mojs-logo"],href:"https://github.com/mojs/mojs-curve-editor",target:"_blank"},(0,i.h)(s.default,{shape:"mojs-logo"})))};e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(72),o=r(i),s=n(43),a=r(s),u=n(44),l=r(u),c=n(77),f=r(c),p=n(110),d=r(p),h=n(49),_=n(166),v=r(_),y=n(120),m=r(y),g=n(119),b=r(g),x=function(t){function e(){return(0,a.default)(this,e),(0,f.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,d.default)(e,t),(0,l.default)(e,[{key:"render",value:function(){var t=this.props.state;return(0,h.h)("div",{"data-component":"code-button",title:"get code"},(0,h.h)(v.default,{shape:"code",isCheck:t.controls.isCode}))}},{key:"componentDidMount",value:function(){var t=this.context.store;this._mc=(0,m.default)(new b.default.Manager(this.base)),this._mc.add(new b.default.Tap),this._mc.on("tap",function(e){t.dispatch({type:"CODE_TAP"})})}},{key:"componentWillUnmount",value:function(){this._mc.off("tap")}}]),e}(h.Component);e.default=x},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(72),o=r(i),s=n(43),a=r(s),u=n(44),l=r(u),c=n(77),f=r(c),p=n(110),d=r(p),h=n(119),_=r(h),v=n(49),y=n(155),m=r(y);n(167);var g=n(169),b=function(t){function e(){return(0,a.default)(this,e),(0,f.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,d.default)(e,t),(0,l.default)(e,[{key:"render",value:function(){var t=this.props,e=t.isCheck?g["is-checked"]:"";return(0,v.h)("div",{className:g["icon-button"]+" "+e,title:t.title||"","data-component":"icon-button"},(0,v.h)(m.default,{shape:this.props.shape}))}},{key:"componentDidMount",value:function(){var t=this;"function"==typeof this.props.onTap&&(this._mc=new _.default(this.base).on("tap",function(e){t.props.onTap(e,t.props)}))}},{key:"componentWillUnmount",value:function(){"function"==typeof this.props.onTap&&this._mc.off("tap")}}]),e}(v.Component);e.default=b},function(t,e,n){var r=n(168);"string"==typeof r&&(r=[[t.id,r,""]]);n(129)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(128)(),e.push([t.id,"._icon-button_6ysdi_4{position:relative;width:24px;height:24px;display:block;background:#3a0839;border-radius:3px;box-shadow:1px 1px 0 rgba(0,0,0,.15)}._icon-button_6ysdi_4 [data-component=icon]{position:absolute;left:50%;top:50%;width:100%;height:100%;transform:translate(-50%,-50%)}._icon-button_6ysdi_4:hover{box-shadow:none}._icon-button_6ysdi_4:hover [data-component=icon]{transform:translate(-52%,-52%)}._icon-button_6ysdi_4._is-checked_6ysdi_31,._icon-button_6ysdi_4:active{border-radius:3px;box-shadow:inset -1px -1px 0 hsla(0,0%,100%,.25),inset 1px 1px 1px rgba(0,0,0,.4)}._icon-button_6ysdi_4._is-checked_6ysdi_31 [data-component=icon],._icon-button_6ysdi_4:active [data-component=icon]{transform:translate(-54%,-54%) scale(.95)}",""])},function(t,e){t.exports={"icon-button":"_icon-button_6ysdi_4","is-checked":"_is-checked_6ysdi_31"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(72),o=r(i),s=n(43),a=r(s),u=n(44),l=r(u),c=n(77),f=r(c),p=n(110),d=r(p),h=n(49),_=n(166),v=r(_),y=n(120),m=r(y),g=n(119),b=r(g),x=function(t){function e(){return(0,a.default)(this,e),(0,f.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,d.default)(e,t),(0,l.default)(e,[{key:"render",value:function(){this.props.state;return(0,h.h)("div",{"data-component":"minimize-button",title:"minimize"},(0,h.h)(v.default,{shape:"minimize"}))}},{key:"componentDidMount",value:function(){var t=this.context.store;this._mc=(0,m.default)(new b.default.Manager(this.base)),this._mc.add(new b.default.Tap),this._mc.on("tap",function(e){t.dispatch({type:"SET_MINIMIZE",data:!0})})}},{key:"componentWillUnmount",value:function(){this._mc.off("tap")}}]),e}(h.Component);e.default=x},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(72),o=r(i),s=n(43),a=r(s),u=n(44),l=r(u),c=n(77),f=r(c),p=n(110),d=r(p),h=n(49),_=n(166),v=r(_),y=n(120),m=r(y),g=n(119),b=r(g),x=function(t){function e(){return(0,a.default)(this,e),(0,f.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,d.default)(e,t),(0,l.default)(e,[{key:"render",value:function(){this.props.state;return(0,h.h)("div",{"data-component":"maximize-button",title:"maximize"},(0,h.h)(v.default,{shape:"maximize"}))}},{key:"componentDidMount",value:function(){var t=this.context.store;this._mc=(0,m.default)(new b.default.Manager(this.base)),this._mc.add(new b.default.Tap),this._mc.on("tap",function(e){t.dispatch({type:"SET_MINIMIZE",data:!1})})}},{key:"componentWillUnmount",value:function(){this._mc.off("tap")}}]),e}(h.Component);e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(49),i=n(173);n(174),e.default=function(){return(0,r.h)("div",{className:i["icon-divider"],"data-component":"icon-divider"})}},function(t,e){t.exports={"icon-divider":"_icon-divider_ftask_3"}},function(t,e,n){var r=n(175);"string"==typeof r&&(r=[[t.id,r,""]]);n(129)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(128)(),e.push([t.id,"._icon-divider_ftask_3{position:relative;margin:0 auto;width:16px;height:1px;display:block;background:hsla(0,0%,100%,.3);box-shadow:0 1px 0 rgba(0,0,0,.3)}",""])},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(72),o=r(i),s=n(43),a=r(s),u=n(44),l=r(u),c=n(77),f=r(c),p=n(110),d=r(p),h=n(49),_=n(166),v=r(_);n(177);var y=n(179),m=function(t){function e(){return(0,a.default)(this,e),(0,f.default)(this,(e.__proto__||(0,o.default)(e)).apply(this,arguments))}return(0,d.default)(e,t),(0,l.default)(e,[{key:"render",value:function(){var t=this.props,e=t.state,n=e.pointControls.present,r=n.isShow?y["is-show"]:"",i=t.className+" "+y["point-controls"]+" "+r,o=this._addButtons(n);return(0,h.h)("div",{className:i}," ",o," ")}},{key:"_onButtonTap",value:function(t){var e=this;return function(n){var r=e.context.store;r.dispatch({type:"POINT_CHANGE_TYPE",data:t,isRecord:!0})}}},{key:"_addButtons",value:function(t){for(var e=["straight","disconnected","mirrored","asymmetric"],n=[],r=0;r<e.length;r++){var i=e[r];n.push((0,h.h)(v.default,{shape:"point-"+i,title:i,isCheck:t.type===i,onTap:this._onButtonTap(i)}))}return n}}]),e}(h.Component);e.default=m},function(t,e,n){var r=n(178);"string"==typeof r&&(r=[[t.id,r,""]]);n(129)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(128)(),e.push([t.id,'._point-controls_16z63_4{display:none}._point-controls_16z63_4 [data-component=icon-button]:after{content:"";position:absolute;width:3px;height:7.5px;background:#ff512f;border-top-right-radius:2px;border-bottom-right-radius:2px;left:-10px;top:50%;margin-top:-3.75px;display:none}._point-controls_16z63_4 [data-component=icon-button][class*=is-checked]:after,._point-controls_16z63_4._is-show_16z63_7{display:block}',""])},function(t,e){t.exports={"point-controls":"_point-controls_16z63_4","is-show":"_is-show_16z63_7"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t
}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(49),o=n(154),s=r(o);n(181);var a=n(183);e.default=function(t){var e=t.state,n=e.points,r=e.controls,o=r.isCode&&!r.isMinimize,u=o?a["is-open"]:"",l=a["code-panel"]+" "+u;return(0,i.h)("div",{className:l},(0,i.h)("div",{className:a["code-panel__inner"]},(0,i.h)(s.default,{state:e,type:"top"}),(0,i.h)("div",{className:a["code-panel__input-wrap"]},(0,i.h)("input",{className:a["code-panel__input-field"],type:"text",readonly:"readonly",value:n.present.path}))))}},function(t,e,n){var r=n(182);"string"==typeof r&&(r=[[t.id,r,""]]);n(129)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(128)(),e.push([t.id,"._code-panel_r9rmj_3{position:absolute;left:10px;right:10px;bottom:100%;z-index:1;overflow:hidden;padding-top:16px;box-sizing:content-box}._code-panel_r9rmj_3 [data-component=resize-handle]{position:absolute;left:50%;bottom:100%}._code-panel__inner_r9rmj_1{border-radius:6px 6px 0 0;background:#3d1b3c;padding:4px 5px 5px;transform:translateY(100%);transition:all .2s ease-out}._code-panel__input-wrap_r9rmj_1{border-radius:2px;background:#42103f;border:1px solid #9c829a;box-shadow:inset 2px 2px 0 rgba(0,0,0,.5)}._code-panel__input-field_r9rmj_1{display:block;background:transparent;color:#fff;font-size:9px;font-family:Arial,Helvetica,sans-serif;letter-spacing:.45px;font-weight:100;padding:0 .3em 0 .8em;border:none;width:100%;height:21px;white-space:nowrap;text-overflow:ellipsis}._code-panel_r9rmj_3 ::-moz-selection,.code-panel ::-moz-selection{background:#ff512f}._code-panel_r9rmj_3 ::selection{background:#ff512f}._code-panel_r9rmj_3._is-open_r9rmj_61 ._code-panel__inner_r9rmj_1{transform:translateY(0)}",""])},function(t,e){t.exports={"code-panel":"_code-panel_r9rmj_3","code-panel__inner":"_code-panel__inner_r9rmj_1","code-panel__input-wrap":"_code-panel__input-wrap_r9rmj_1","code-panel__input-field":"_code-panel__input-field_r9rmj_1","is-open":"_is-open_r9rmj_61"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(49),i=function(){return(0,r.h)("div",{dangerouslySetInnerHTML:{__html:'<svg height="0" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n      <defs>\n        <g id="ellipsis-shape">\n          <circle cx="11" cy="16" r="1"></circle>\n          <circle cx="16" cy="16" r="1"></circle>\n          <circle cx="21" cy="16" r="1"></circle>\n        </g>\n        <path id="code-shape" d="M8,16.0849648 C8,15.8210793 8.11149069,15.6129393 8.33483405,15.4609065 L12.3390874,12.8419612 C12.3897649,12.8014192 12.4657813,12.7811481 12.5674985,12.7811481 C12.7398023,12.7811481 12.9048664,12.8571645 13.0623289,13.0095592 C13.2194294,13.161954 13.2983417,13.3393255 13.2983417,13.5423979 C13.2983417,13.7353347 13.2219633,13.8826617 13.0692066,13.9840168 L9.85769553,16.0849648 L13.0692066,18.1862747 C13.2219633,18.2677208 13.2983417,18.4146858 13.2983417,18.6278937 C13.2983417,18.830966 13.2197914,19.0061657 13.0623289,19.1531307 C12.9048664,19.3004576 12.7398023,19.3739401 12.5674985,19.3739401 C12.4657813,19.3739401 12.3897649,19.3536691 12.3390874,19.313127 L8.33483405,16.6938198 C8.11149069,16.541425 8,16.3387147 8,16.0849648 L8,16.0849648 Z M14.1399516,20.6875756 C14.1265582,20.6075774 14.1287301,20.5301131 14.1468293,20.4548207 L16.9395263,11.356022 C16.9891179,11.1623612 17.1237755,11.0468887 17.344223,11.0096045 C17.5042194,10.9824558 17.658786,11.0128623 17.8075609,11.1008242 C17.9563358,11.1891479 18.0442976,11.313308 18.0710844,11.4733044 C18.0862876,11.5634381 18.079772,11.6470561 18.0518993,11.7237965 L15.2664419,20.7748134 C15.2085247,20.9800577 15.0593878,21.1031318 14.8193932,21.1440358 C14.6488993,21.1729945 14.4994005,21.1389681 14.3698106,21.0426807 C14.2402208,20.9460313 14.1638424,20.8276629 14.1399516,20.6875756 L14.1399516,20.6875756 Z M18.9528744,19.1527687 C18.7954119,19.0058037 18.7168616,18.830604 18.7168616,18.6275317 C18.7168616,18.4244594 18.7878102,18.2774944 18.9300695,18.1859127 L22.1426665,16.0846028 L18.9300695,13.9836549 C18.7878102,13.8718022 18.7168616,13.7248372 18.7168616,13.5420359 C18.7168616,13.3389636 18.7954119,13.161592 18.9528744,13.0091973 C19.1103369,12.8568025 19.275039,12.7807861 19.4477048,12.7807861 C19.5389245,12.7807861 19.6098731,12.8014192 19.6609126,12.8415992 L23.6651659,15.4605445 C23.8881473,15.6129393 24,15.8210793 24,16.0846028 C24,16.3488502 23.8881473,16.5515606 23.6651659,16.6938198 L19.6609126,19.3127651 C19.6098731,19.3533071 19.5389245,19.3735782 19.4477048,19.3735782 C19.275039,19.3735782 19.1103369,19.3000957 18.9528744,19.1527687 L18.9528744,19.1527687 Z"></path>\n        <g id="point-straight-shape" fill="none">\n          <polyline fill="#8B6E8A" stroke="#FFFFFF" points="7.881 20.568 15.451 12.241 23.892 20.568"/>\n          <ellipse stroke="none" cx="16.8" cy="13.9" rx="2.667" ry="2.667" fill="black" fill-opacity="0.5" />\n          <circle cx="15.333" cy="12" r="2.667" fill="#FFFFFF"/>\n        </g>\n        <g id="point-mirrored-shape" fill="none" fill-rule="evenodd">\n          <path fill="#8B6E8A" stroke="#FFFFFF" d="M7.88144841,21.9012632 C7.88144841,21.9012632 7.59287172,13.5740537 15.4514423,13.5740537 C23.3100129,13.5740537 23.8921228,21.9012632 23.8921228,21.9012632"/>\n          <path stroke="#FF512F" d="M7.13883527,13.3333333 L25.8055013,13.3333333"/>\n          <ellipse stroke="none" cx="16.8" cy="14.9" rx="2.667" ry="2.667" fill="black" fill-opacity="0.5" />\n          <ellipse cx="15.333" cy="13.333" fill="#FFFFFF" rx="2.667" ry="2.667"/>\n          <rect width="2.667" height="2.667" x="24" y="12" fill="#FF512F"/>\n          <rect width="2.667" height="2.667" x="5.333" y="12" fill="#FF512F"/>\n        </g>\n        <g id="point-disconnected-shape" fill="none" fill-rule="evenodd">\n          <path fill="#8B6E8A" stroke="#FFFFFF" d="M7.88144841,20.5679298 C7.88144841,20.5679298 7.59287172,12.2407204 15.4514423,12.2407204 C21.2005207,17.88737 23.8921228,20.5679298 23.8921228,20.5679298"/>\n          <polyline stroke="#FF512F" points="6.133 12 15.228 12 23.933 20.602"/>\n          <ellipse stroke="none" cx="16.8" cy="13.4" rx="2.667" ry="2.667" fill="black" fill-opacity="0.5" />\n          <circle cx="15.333" cy="12" r="2.667" fill="#FFFFFF"/>\n          <rect width="2.667" height="2.667" x="21.886" y="18.552" fill="#FF512F" transform="rotate(45 23.219 19.886)"/>\n          <rect width="2.667" height="2.667" x="5.333" y="10.667" fill="#FF512F"/>\n        </g>\n        <g id="point-asymmetric-shape" fill="none" fill-rule="evenodd" transform="translate(7.667 9.333)">\n          <path fill="#8B6E8A" stroke="#FFFFFF" d="M0.214781742,11.2345965 C0.214781742,11.2345965 -0.373511869,2.90709613 7.78477564,2.90738704 C10.7500003,2.90749277 16.2254562,11.2345965 16.2254562,11.2345965"/>\n          <ellipse stroke="none" cx="9" cy="4.4" rx="2.667" ry="2.667" fill="black" fill-opacity="0.5" />\n          <path stroke="#FF512F" d="M2.52788503,2.66666667 L18.1388346,2.66666667"/>\n          <ellipse cx="7.667" cy="2.667" fill="#FFFFFF" rx="2.667" ry="2.667"/>\n          <rect width="2.667" height="2.667" x="16.333" y="1.333" fill="#FF512F"/>\n          <rect width="2.667" height="2.667" x=".333" y="1.333" fill="#FF512F"/>\n        </g>\n        <path id="mojs-logo-shape" d="M18.4678907,2.67700048 C19.488586,3.25758625 20.2789227,4.18421651 20.87823,5.1973579 C24.0807788,10.501451 27.2777091,15.8113116 30.480258,21.1154047 C31.1320047,22.1612281 31.7706417,23.2647256 31.9354512,24.5162532 C32.188284,26.0619186 31.6919826,27.7363895 30.5589171,28.80336 C29.4501984,29.8857103 27.8807622,30.3182659 26.3806209,30.3048086 C19.4511293,30.3086535 12.5235106,30.3086535 5.59401901,30.3048086 C3.71556494,30.343258 1.69852104,29.5723478 0.683444165,27.8709623 C-0.406546132,26.1099803 -0.0975282643,23.7914822 0.940022637,22.0843293 C4.34296485,16.4130445 7.76650826,10.7532945 11.1825603,5.08969961 C11.9747698,3.74781595 13.1846215,2.60202418 14.6847628,2.18292584 C15.9451812,1.81573418 17.3348251,2.01182606 18.4678907,2.67700048 Z M15.3334668,9.51526849 C15.6146238,9.03779476 16.0791597,9.02250655 16.3785679,9.4929547 L25.2763555,23.4736913 C25.5723919,23.9388414 25.3568433,24.3159201 24.8074398,24.3159202 L7.62314647,24.3159205 C7.06813505,24.3159206 6.84622798,23.9286889 7.12728913,23.4513779 L15.3334668,9.51526849 Z" fill-rule="evenodd"></path>\n        <path id="minimize-shape" d="M9,18.1970803 L14.4501217,18.1970803 L14.4501217,23.6472019 L9,18.1970803 Z M16.8832117,9 L22.3333333,14.4501217 L16.8832117,14.4501217 L16.8832117,9 Z"></path>\n        <path id="maximize-shape" d="M16.1358025,11 L21.6666667,11 L21.6666667,16.5308642 L16.1358025,11 Z M11,16.1358025 L16.5308642,21.6666667 L11,21.6666667 L11,16.1358025 Z"></path>\n      </defs>\n    </svg>'}})};e.default=i},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){t.dispatch({type:"POINTS_REMOVE"}),t.dispatch({type:"POINT_ADD",data:{point:{x:0,y:s.default.CURVE_SIZE,isLockedX:!0},index:0}}),t.dispatch({type:"POINT_ADD",data:{point:{x:100,y:0,isLockedX:!0},index:1}})}Object.defineProperty(e,"__esModule",{value:!0}),e.reset=i;var o=n(118),s=r(o)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(43),o=r(i),s=n(44),a=r(s),u=function(){function t(){(0,o.default)(this,t),this._subscribers=[]}return(0,a.default)(t,[{key:"add",value:function(t){this._subscribers.push(t)}},{key:"resetActive",value:function(t){for(var e=0;e<this._subscribers.length;e++)this._subscribers[e](t)}}]),t}();e.default=u},function(t,e,n){var r=n(188);"string"==typeof r&&(r=[[t.id,r,""]]);n(129)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){e=t.exports=n(128)(),e.push([t.id,'._curve-editor_d81sj_3{position:fixed;left:0;top:0;width:403px;height:378px;border-radius:12px;background:#572b51;z-index:100;box-shadow:0 0 3px 1px rgba(0,0,0,.38)}._curve-editor_d81sj_3 svg,._curve-editor_d81sj_3 svg:not(:root){overflow:visible}._curve-editor_d81sj_3 [data-component=maximize-button]{display:none}._curve-editor_d81sj_3 *{box-sizing:border-box}._curve-editor__left_d81sj_1{position:absolute;width:42px;left:0;top:0;bottom:0;padding:10px;cursor:move}._curve-editor__left_d81sj_1 [data-component=code-button]{margin-top:5px}._curve-editor__left_d81sj_1 [data-component=icon-divider]{margin:10px auto}._curve-editor__right_d81sj_138{position:absolute;left:43px;top:0;right:0;bottom:0}._curve-editor__right_d81sj_138:after{content:"";position:absolute;left:0;top:0;right:0;bottom:0;z-index:2;display:none}._curve-editor__resize-handle_d81sj_1{position:absolute}._curve-editor__resize-handle_d81sj_1[data-type=top]{top:-17px}._curve-editor__resize-handle_d81sj_1[data-type=bottom]{bottom:1px}._curve-editor__resize-handle_d81sj_1[data-type=bottom],._curve-editor__resize-handle_d81sj_1[data-type=top]{left:50%;margin-left:-21px}._curve-editor__resize-handle_d81sj_1[data-type=right]{right:-15px;top:50%;margin-top:-16px}._curve-editor__anchor-buttons_d81sj_133{margin-top:10px}._curve-editor__anchor-buttons_d81sj_133 [data-component=icon-button]{margin-bottom:5px}._curve-editor__mojs-logo_d81sj_116{position:absolute;bottom:17px;left:50%;margin-left:1px;transform:translateX(-50%)}._curve-editor__mojs-logo_d81sj_116 [data-component=icon]{fill:#ff512f;width:12px;height:12px}._curve-editor_d81sj_3._is-inactive_d81sj_115 ._curve-editor__mojs-logo_d81sj_116 [data-component=icon]{fill:#9c829a}._curve-editor_d81sj_3._is-minimized_d81sj_123{width:100px!important;height:45px!important;border-radius:7px}._curve-editor_d81sj_3._is-minimized_d81sj_123 ._curve-editor__anchor-buttons_d81sj_133,._curve-editor_d81sj_3._is-minimized_d81sj_123 ._curve-editor__mojs-logo_d81sj_116,._curve-editor_d81sj_3._is-minimized_d81sj_123 [data-component=code-button],._curve-editor_d81sj_3._is-minimized_d81sj_123 [data-component=icon-divider],._curve-editor_d81sj_3._is-minimized_d81sj_123 [data-component=minimize-button],._curve-editor_d81sj_3._is-minimized_d81sj_123 [data-component=point],._curve-editor_d81sj_3._is-minimized_d81sj_123 [data-component=resize-handle]{display:none}._curve-editor_d81sj_3._is-minimized_d81sj_123 ._curve-editor__right_d81sj_138:after{display:block}._curve-editor_d81sj_3._is-minimized_d81sj_123 ._curve__svg-wrapper_d81sj_142{margin-top:-200px}._curve-editor_d81sj_3._is-minimized_d81sj_123 [data-component=maximize-button]{display:block}._curve-editor_d81sj_3._is-hidden-on-min_d81sj_152._is-minimized_d81sj_123{display:none}',""])},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(50),o=n(190),s=r(o),a=function(){return(0,i.createStore)(s.default)};e.default=a},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=r(i),s=n(50),a=n(121),u=r(a),l=n(191),c=r(l),f=n(193),p=r(f),d=n(212),h=r(d),_=n(213),v=r(_),y=n(214),m=r(y),g=n(215),b=r(g),x={limit:10,filter:function(t,e,n){return t.isRecord},debug:!1},E=(0,b.default)((0,s.combineReducers)({resize:c.default,points:(0,u.default)(p.default,(0,o.default)({},x)),controls:h.default,pointControls:(0,u.default)(v.default,(0,o.default)({},x)),progressLines:m.default}),["SET_STATE"],function(t,e){return e.data});e.default=E},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(192),o=r(i),s=n(5),a=r(s),u=n(118),l=r(u),c=n(141),f=r(c),p={x:20,tempX:0,y:20,tempY:0,top:0,temp_top:0,right:0,temp_right:0,bottom:0,temp_bottom:0,panY:0,panTempY:0,scalerX:l.default.CURVE_PERCENT,absScalerX:1},d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,e=arguments[1];switch(f.default.push(t),e.type){case"EDITOR_RESIZE":var n=e.data,r=n.type,i="top"===r||"bottom"===r?n.y:n.x,s=(0,a.default)({},t,(0,o.default)({},"temp_"+r,i));return"right"===r&&(s.scalerX=(l.default.CURVE_SIZE+Math.max(t.right+i,0))/100,s.absScalerX=s.scalerX/l.default.CURVE_PERCENT),s;case"EDITOR_RESIZE_END":var u,c=e.data,d=c.type,h="top"===d||"bottom"===d?c.y:c.x,_=t[""+e.data.type]+h,v="top"===d?"min":"max",y=(0,a.default)({},t,(u={},(0,o.default)(u,""+e.data.type,Math[v](0,_)),(0,o.default)(u,"temp_"+e.data.type,0),u));return y;case"EDITOR_TRANSLATE":var m=e.data,g=m.x,b=m.y;return(0,a.default)({},t,{tempX:g,tempY:b});case"EDITOR_TRANSLATE_END":var x=e.data,E=x.x,T=x.y;return E+=t.x,T+=t.y,(0,a.default)({},t,{x:E,y:T,tempX:0,tempY:0});case"EDITOR_PAN":var w=e.data;return(0,a.default)({},t,{panTempY:w});case"EDITOR_PAN_END":var P=e.data;return(0,a.default)({},t,{panTempY:0,panY:P+t.panY})}return t};e.default=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(45),o=r(i);e.default=function(t,e,n){return e in t?(0,o.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(194),o=r(i),s=n(5),a=r(s),u=n(204),l=r(u),c=n(118),f=(r(c),n(205)),p=r(f),d=n(207),h=r(d),_=n(210),v=r(_),y=n(211),m=r(y),g=n(141),b=r(g),x={path:"",name:"mojs-curve-editor",segments:[],points:[]},E=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x,e=arguments[1];switch(b.default.push(t),e.type){case"SET_EDITOR_NAME":return(0,a.default)({},t,{name:e.data});case"POINT_TRANSLATE":var n=e.data,r=n.index,i=t.points,s=i[r],u=[].concat((0,o.default)(i));return u[n.index]=(0,a.default)({},s,{tempX:n.x,tempY:n.y}),(0,a.default)({},t,{points:u},(0,h.default)(u));case"POINT_TRANSLATE_END":var c=e.data,f=t.points,d=f[c],_=[].concat((0,o.default)(f));return _[c]=(0,a.default)({},d,{x:d.x+d.tempX,y:d.y+d.tempY,tempX:0,tempY:0}),(0,a.default)({},t,{points:_},(0,h.default)(_));case"POINT_SELECT":var y=e.data,g=y.index,E=y.isDeselect,T=E?(0,v.default)(t):(0,a.default)({},t),w=T.points,P=w[g];return P.isSelected=!0,(0,a.default)({},t,{points:w});case"POINT_ADD":var M=e.data,S=M.index,O=M.point,C=(0,v.default)(t),j=[].concat((0,o.default)(C.points.slice(0,S)),[(0,l.default)((0,a.default)({},O))],(0,o.default)(C.points.slice(S))),I=j.length>1?(0,p.default)(j):j,N=I.length>1?(0,h.default)(I):{};return(0,a.default)({},t,{points:I},N);case"POINT_DELETE":for(var k=t.points,A=(0,m.default)(k),L=[],D=0;D<k.length;D++){var R=k[D];(A.indexOf(D)===-1||R.isLockedX)&&L.push(R)}return(0,a.default)({},t,{points:L},(0,h.default)(L));case"POINT_CHANGE_TYPE":for(var z=t.points,F=e.data,U=(0,m.default)(z),V=[].concat((0,o.default)(z)),D=0;D<U.length;D++){var Y=U[D],X=(0,a.default)({},V[Y],{type:F}),H=Y===V.length-1?1:2,q=1===H?2:1,W="handle"+H,Z="handle"+q,G=(0,a.default)({},X[W]),B=(0,a.default)({},X[Z]);"mirrored"!==F&&"asymmetric"!==F||(B.rotate=G.rotate-180,"mirrored"===F&&(B.radius=G.radius)),V[Y]=X,X[W]=G,X[Z]=B}return(0,a.default)({},t,{points:V},(0,h.default)(V));case"POINT_DESELECT_ALL":return(0,a.default)({},(0,v.default)(t));case"SET_ACTIVE":return e.data?t:(0,a.default)({},(0,v.default)(t));case"HANDLE_TRANSLATE":var J=t.points,K=e.data,Q=[].concat((0,o.default)(J)),$=(0,a.default)({},Q[K.parentIndex]);Q[K.parentIndex]=$;var tt="handle"+K.index,et=(0,a.default)({},$[tt]);return $[tt]=et,et.rotate=K.rotate,et.radius=K.radius,(0,a.default)({},t,{points:Q},(0,h.default)(Q));case"HANDLE_TRANSLATE_END":return t;case"POINTS_REMOVE":return(0,a.default)({},t,{points:[]})}return t};e.default=E},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(195),o=r(i);e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,o.default)(t)}},function(t,e,n){t.exports={default:n(196),__esModule:!0}},function(t,e,n){n(81),n(197),t.exports=n(4).Array.from},function(t,e,n){"use strict";var r=n(11),i=n(9),o=n(42),s=n(198),a=n(199),u=n(32),l=n(200),c=n(201);i(i.S+i.F*!n(203)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,f,p=o(t),d="function"==typeof this?this:Array,h=arguments.length,_=h>1?arguments[1]:void 0,v=void 0!==_,y=0,m=c(p);if(v&&(_=r(_,h>2?arguments[2]:void 0,2)),void 0==m||d==Array&&a(m))for(e=u(p.length),n=new d(e);e>y;y++)l(n,y,v?_(p[y],y):p[y]);else for(f=m.call(p),n=new d;!(i=f.next()).done;y++)l(n,y,v?s(f,_,[i.value,y],!0):i.value);return n.length=y,n}})},function(t,e,n){var r=n(15);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&r(o.call(t)),e}}},function(t,e,n){var r=n(85),i=n(91)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){"use strict";var r=n(14),i=n(22);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){var r=n(202),i=n(91)("iterator"),o=n(85);t.exports=n(4).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,e,n){var r=n(29),i=n(91)("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),i))?n:o?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){var r=n(91)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(t){}return n}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=r(i),s=function(t,e){return null!=t?t:e},a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{index:s(t.index,0),rotate:s(t.rotate,null),radius:s(t.radius,null),isTouched:s(t.isTouched,!1),isSelected:s(t.isSelected,!1)}},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{x:s(t.x,0),y:s(t.y,0),tempX:s(t.tempX,0),tempY:s(t.tempY,0),isTouched:s(t.isTouched,!1),isSelected:s(t.isSelected,!1)}},l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.default)({isLockedX:s(t.isLockedX,!1),isLockedY:s(t.isLockedY,!1),type:s(t.type,"straight")},u(t),{handle1:a(t.handle1||{index:1}),handle2:a(t.handle2||{index:2})})};e.default=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(206),o=r(i);e.default=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n],i=n===t.length-1?t[n-1]:t[n+1],s=n===t.length-1?1:2;e.push((0,o.default)(r,i,s))}return e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=r(i),s=n(118),a=r(s);e.default=function(t,e,n){t=(0,o.default)({},t);var r="handle"+n,i=1===n?2:1,s="handle"+i,u=(0,o.default)({},t[r]),l=(0,o.default)({},t[s]);t.type;if(t[r]=u,t[s]=l,null==u.rotate||null==u.radius){u.radius=50;var c=(e.y-t.y)/a.default.CURVE_PERCENT,f=e.x-t.x,p=Math.atan(c/f)*(180/Math.PI)-90;f>0&&(p-=180),u.rotate=p,l.radius=u.radius,l.rotate=u.rotate-180}return t}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(208),o=r(i);e.default=function(t){for(var e="",n=[],r=0;r<t.length-1;r++){var i=t[r],s=t[r+1],a=(0,o.default)(i,s,r);n.push(a),e+=a.string}return{path:e,segments:n}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(118),o=r(i),s=n(209),a=r(s);e.default=function(t,e,n){if(!e)return 1;var r="",i="",s=t.x+t.tempX,u=t.y+t.tempY,l=e.x+e.tempX,c=e.y+e.tempY,f="M"+s+", "+u/o.default.CURVE_PERCENT+" ";0===n&&(r+=f),i+=f;var p=(0,a.default)(t,2);r+=p,i+=p;var d=(0,a.default)(e,1);r+=d,i+=d;var h=l+", "+c/o.default.CURVE_PERCENT+" ";return r+=h,i+=h,{string:r,segmentString:i,index:n}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(124),o=r(i),s=n(118),a=r(s);e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t.x+t.tempX,r=t.y+t.tempY,i=t["handle"+e],s=2===e?"C":"";if("straight"!==t.type){var u=(0,o.default)(i.rotate,i.radius);return""+s+(n+u.x/a.default.CURVE_PERCENT)+", "+(r+u.y)/a.default.CURVE_PERCENT+" "}return""+s+n+", "+r/a.default.CURVE_PERCENT+" "}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=r(i);e.default=function(t){for(var e=(0,o.default)({},t,{points:[]}),n=t.points,r=0;r<n.length;r++)e.points.push((0,o.default)({},n[r],{isSelected:!1}));return e}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e=[],n=0;n<t.length;n++)t[n].isSelected&&e.push(n);return e}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=r(i),s=n(207),a=(r(s),n(141)),u=r(a),l={isCode:!1,isMinimize:!1,isActive:!1,isHighlight:!1},c=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,e=arguments[1];switch(u.default.push(t),e.type){case"CODE_TAP":return(0,o.default)({},t,{isCode:!t.isCode});case"SET_MINIMIZE":return(0,o.default)({},t,{isMinimize:e.data});case"SET_ACTIVE":return(0,o.default)({},t,{isActive:e.data})}return t};e.default=c},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=r(i),s=n(141),a=r(s),u={isShow:!1,type:"straight"},l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,e=arguments[1];switch(a.default.push(t),e.type){case"POINT_SELECT":var n=e.data.type;return(0,o.default)({},t,{isShow:!e.isDeselect,type:n});case"POINT_CHANGE_TYPE":return(0,o.default)({},t,{type:e.data});case"POINT_DESELECT_ALL":return(0,o.default)({},t,{isShow:!1})}return t};e.default=l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(194),o=r(i),s=n(5),a=r(s),u=n(141),l=r(u),c={selected:0,lines:[]},f=function(t){var e=["#FF512F","#FF00C5","#00FF69","white","#1B8FE6","CYAN","YELLOW"];return e[t.length%e.length]},p=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments[1]),e=t.lines;return{color:f(e),name:"easing"+(e.length+1)}},d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,e=arguments[1];switch(l.default.push(t),e.type){case"ADD_PROGRESS_LINE":var n=(0,a.default)({},t);return n.lines=[].concat((0,o.default)(n.lines),[p(e.data,t)]),n;case"SET_SELECTED_PROGRESS_LINE":var r=e.index;return(0,a.default)({},t,{selected:r})}return t};e.default=d},function(t,e){"use strict";function n(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i="function"==typeof n?n:function(){return n},o="undefined"==typeof r.recycleActionType?"@@redux-recycle/INIT":r.recycleActionType;return function(n,r){return e.indexOf(r.type)===-1?t(n,r):o?t(i(n,r),{type:o}):i(n,r)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return null!=t?t:e}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){setTimeout(t,1)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),n(219);var i=n(220),o=r(i),s=n(228),a=r(s);e.default=function(t){for(var e=[],n=t.getPathData(),r=0;r<n.length;r++){var i=0===r||r===n.length-1,s=n[r],u=s.type,l=s.values;switch(u){case"M":case"L":e=(0,a.default)(l,e,i);break;case"C":e=(0,o.default)(l,e,i)}}return e}},function(t,e){
// @license
SVGPathElement.prototype.getPathData&&SVGPathElement.prototype.setPathData||!function(){var t={Z:"Z",M:"M",L:"L",C:"C",Q:"Q",A:"A",H:"H",V:"V",S:"S",T:"T",z:"Z",m:"m",l:"l",c:"c",q:"q",a:"a",h:"h",v:"v",s:"s",t:"t"},e=function(t){this._string=t,this._currentIndex=0,this._endIndex=this._string.length,this._prevCommand=null,this._skipOptionalSpaces()},n=window.navigator.userAgent.indexOf("MSIE ")!==-1;e.prototype={parseSegment:function(){var e=this._string[this._currentIndex],n=t[e]?t[e]:null;if(null===n){if(null===this._prevCommand)return null;if(n=("+"===e||"-"===e||"."===e||e>="0"&&e<="9")&&"Z"!==this._prevCommand?"M"===this._prevCommand?"L":"m"===this._prevCommand?"l":this._prevCommand:null,null===n)return null}else this._currentIndex+=1;this._prevCommand=n;var r=null,i=n.toUpperCase();return"H"===i||"V"===i?r=[this._parseNumber()]:"M"===i||"L"===i||"T"===i?r=[this._parseNumber(),this._parseNumber()]:"S"===i||"Q"===i?r=[this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber()]:"C"===i?r=[this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber()]:"A"===i?r=[this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseArcFlag(),this._parseArcFlag(),this._parseNumber(),this._parseNumber()]:"Z"===i&&(this._skipOptionalSpaces(),r=[]),null===r||r.indexOf(null)>=0?null:{type:n,values:r}},hasMoreData:function(){return this._currentIndex<this._endIndex},peekSegmentType:function(){var e=this._string[this._currentIndex];return t[e]?t[e]:null},initialCommandIsMoveTo:function(){if(!this.hasMoreData())return!0;var t=this.peekSegmentType();return"M"===t||"m"===t},_isCurrentSpace:function(){var t=this._string[this._currentIndex];return t<=" "&&(" "===t||"\n"===t||"\t"===t||"\r"===t||"\f"===t)},_skipOptionalSpaces:function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex+=1;return this._currentIndex<this._endIndex},_skipOptionalSpacesOrDelimiter:function(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!==this._string[this._currentIndex])&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","===this._string[this._currentIndex]&&(this._currentIndex+=1,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},_parseNumber:function(){var t=0,e=0,n=1,r=0,i=1,o=1,s=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&"+"===this._string[this._currentIndex]?this._currentIndex+=1:this._currentIndex<this._endIndex&&"-"===this._string[this._currentIndex]&&(this._currentIndex+=1,i=-1),this._currentIndex===this._endIndex||(this._string[this._currentIndex]<"0"||this._string[this._currentIndex]>"9")&&"."!==this._string[this._currentIndex])return null;for(var a=this._currentIndex;this._currentIndex<this._endIndex&&this._string[this._currentIndex]>="0"&&this._string[this._currentIndex]<="9";)this._currentIndex+=1;if(this._currentIndex!==a)for(var u=this._currentIndex-1,l=1;u>=a;)e+=l*(this._string[u]-"0"),u-=1,l*=10;if(this._currentIndex<this._endIndex&&"."===this._string[this._currentIndex]){if(this._currentIndex+=1,this._currentIndex>=this._endIndex||this._string[this._currentIndex]<"0"||this._string[this._currentIndex]>"9")return null;for(;this._currentIndex<this._endIndex&&this._string[this._currentIndex]>="0"&&this._string[this._currentIndex]<="9";)n*=10,r+=(this._string.charAt(this._currentIndex)-"0")/n,this._currentIndex+=1}if(this._currentIndex!==s&&this._currentIndex+1<this._endIndex&&("e"===this._string[this._currentIndex]||"E"===this._string[this._currentIndex])&&"x"!==this._string[this._currentIndex+1]&&"m"!==this._string[this._currentIndex+1]){if(this._currentIndex+=1,"+"===this._string[this._currentIndex]?this._currentIndex+=1:"-"===this._string[this._currentIndex]&&(this._currentIndex+=1,o=-1),this._currentIndex>=this._endIndex||this._string[this._currentIndex]<"0"||this._string[this._currentIndex]>"9")return null;for(;this._currentIndex<this._endIndex&&this._string[this._currentIndex]>="0"&&this._string[this._currentIndex]<="9";)t*=10,t+=this._string[this._currentIndex]-"0",this._currentIndex+=1}var c=e+r;return c*=i,t&&(c*=Math.pow(10,o*t)),s===this._currentIndex?null:(this._skipOptionalSpacesOrDelimiter(),c)},_parseArcFlag:function(){if(this._currentIndex>=this._endIndex)return null;var t=null,e=this._string[this._currentIndex];if(this._currentIndex+=1,"0"===e)t=0;else{if("1"!==e)return null;t=1}return this._skipOptionalSpacesOrDelimiter(),t}};var r=function(t){if(!t||0===t.length)return[];var n=new e(t),r=[];if(n.initialCommandIsMoveTo())for(;n.hasMoreData();){var i=n.parseSegment();if(null===i)break;r.push(i)}return r},i=SVGPathElement.prototype.setAttribute,o=SVGPathElement.prototype.removeAttribute,s=window.Symbol?Symbol():"__cachedPathData",a=window.Symbol?Symbol():"__cachedNormalizedPathData",u=function(t,e,n,r,i,o,s,a,l,c){var f,p,d,h,_=function(t){return Math.PI*t/180},v=function(t,e,n){var r=t*Math.cos(n)-e*Math.sin(n),i=t*Math.sin(n)+e*Math.cos(n);return{x:r,y:i}},y=_(s),m=[];if(c)f=c[0],p=c[1],d=c[2],h=c[3];else{var g=v(t,e,-y);t=g.x,e=g.y;var b=v(n,r,-y);n=b.x,r=b.y;var x=(t-n)/2,E=(e-r)/2,T=x*x/(i*i)+E*E/(o*o);T>1&&(T=Math.sqrt(T),i*=T,o*=T);var w;w=a===l?-1:1;var P=i*i,M=o*o,S=P*M-P*E*E-M*x*x,O=P*E*E+M*x*x,C=w*Math.sqrt(Math.abs(S/O));d=C*i*E/o+(t+n)/2,h=C*-o*x/i+(e+r)/2,f=Math.asin(parseFloat(((e-h)/o).toFixed(9))),p=Math.asin(parseFloat(((r-h)/o).toFixed(9))),t<d&&(f=Math.PI-f),n<d&&(p=Math.PI-p),f<0&&(f=2*Math.PI+f),p<0&&(p=2*Math.PI+p),l&&f>p&&(f-=2*Math.PI),!l&&p>f&&(p-=2*Math.PI)}var j=p-f;if(Math.abs(j)>120*Math.PI/180){var I=p,N=n,k=r;p=l&&p>f?f+120*Math.PI/180*1:f+120*Math.PI/180*-1,n=d+i*Math.cos(p),r=h+o*Math.sin(p),m=u(n,r,N,k,i,o,s,0,l,[p,I,d,h])}j=p-f;var A=Math.cos(f),L=Math.sin(f),D=Math.cos(p),R=Math.sin(p),z=Math.tan(j/4),F=4/3*i*z,U=4/3*o*z,V=[t,e],Y=[t+F*L,e-U*A],X=[n+F*R,r-U*D],H=[n,r];if(Y[0]=2*V[0]-Y[0],Y[1]=2*V[1]-Y[1],c)return[Y,X,H].concat(m);m=[Y,X,H].concat(m);for(var q=[],W=0;W<m.length;W+=3){var i=v(m[W][0],m[W][1],y),o=v(m[W+1][0],m[W+1][1],y),Z=v(m[W+2][0],m[W+2][1],y);q.push([i.x,i.y,o.x,o.y,Z.x,Z.y])}return q},l=function(t){return t.map(function(t){return{type:t.type,values:Array.prototype.slice.call(t.values)}})},c=function(t){var e=[],n=null,r=null,i=null,o=null;return t.forEach(function(t){var s=t.type;if("M"===s){var a=t.values[0],u=t.values[1];e.push({type:"M",values:[a,u]}),i=a,o=u,n=a,r=u}else if("m"===s){var a=n+t.values[0],u=r+t.values[1];e.push({type:"M",values:[a,u]}),i=a,o=u,n=a,r=u}else if("L"===s){var a=t.values[0],u=t.values[1];e.push({type:"L",values:[a,u]}),n=a,r=u}else if("l"===s){var a=n+t.values[0],u=r+t.values[1];e.push({type:"L",values:[a,u]}),n=a,r=u}else if("C"===s){var l=t.values[0],c=t.values[1],f=t.values[2],p=t.values[3],a=t.values[4],u=t.values[5];e.push({type:"C",values:[l,c,f,p,a,u]}),n=a,r=u}else if("c"===s){var l=n+t.values[0],c=r+t.values[1],f=n+t.values[2],p=r+t.values[3],a=n+t.values[4],u=r+t.values[5];e.push({type:"C",values:[l,c,f,p,a,u]}),n=a,r=u}else if("Q"===s){var l=t.values[0],c=t.values[1],a=t.values[2],u=t.values[3];e.push({type:"Q",values:[l,c,a,u]}),n=a,r=u}else if("q"===s){var l=n+t.values[0],c=r+t.values[1],a=n+t.values[2],u=r+t.values[3];e.push({type:"Q",values:[l,c,a,u]}),n=a,r=u}else if("A"===s){var a=t.values[5],u=t.values[6];e.push({type:"A",values:[t.values[0],t.values[1],t.values[2],t.values[3],t.values[4],a,u]}),n=a,r=u}else if("a"===s){var a=n+t.values[5],u=r+t.values[6];e.push({type:"A",values:[t.values[0],t.values[1],t.values[2],t.values[3],t.values[4],a,u]}),n=a,r=u}else if("H"===s){var a=t.values[0];e.push({type:"H",values:[a]}),n=a}else if("h"===s){var a=n+t.values[0];e.push({type:"H",values:[a]}),n=a}else if("V"===s){var u=t.values[0];e.push({type:"V",values:[u]}),r=u}else if("v"===s){var u=r+t.values[0];e.push({type:"V",values:[u]}),r=u}else if("S"===s){var f=t.values[0],p=t.values[1],a=t.values[2],u=t.values[3];e.push({type:"S",values:[f,p,a,u]}),n=a,r=u}else if("s"===s){var f=n+t.values[0],p=r+t.values[1],a=n+t.values[2],u=r+t.values[3];e.push({type:"S",values:[f,p,a,u]}),n=a,r=u}else if("T"===s){var a=t.values[0],u=t.values[1];e.push({type:"T",values:[a,u]}),n=a,r=u}else if("t"===s){var a=n+t.values[0],u=r+t.values[1];e.push({type:"T",values:[a,u]}),n=a,r=u}else"Z"!==s&&"z"!==s||(e.push({type:"Z",values:[]}),n=i,r=o)}),e},f=function(t){var e=[],n=null,r=null,i=null,o=null,s=null,a=null,l=null;return t.forEach(function(t){if("M"===t.type){var c=t.values[0],f=t.values[1];e.push({type:"M",values:[c,f]}),a=c,l=f,o=c,s=f}else if("C"===t.type){var p=t.values[0],d=t.values[1],h=t.values[2],_=t.values[3],c=t.values[4],f=t.values[5];e.push({type:"C",values:[p,d,h,_,c,f]}),r=h,i=_,o=c,s=f}else if("L"===t.type){var c=t.values[0],f=t.values[1];e.push({type:"L",values:[c,f]}),o=c,s=f}else if("H"===t.type){var c=t.values[0];e.push({type:"L",values:[c,s]}),o=c}else if("V"===t.type){var f=t.values[0];e.push({type:"L",values:[o,f]}),s=f}else if("S"===t.type){var v,y,h=t.values[0],_=t.values[1],c=t.values[2],f=t.values[3];"C"===n||"S"===n?(v=o+(o-r),y=s+(s-i)):(v=o,y=s),e.push({type:"C",values:[v,y,h,_,c,f]}),r=h,i=_,o=c,s=f}else if("T"===t.type){var p,d,c=t.values[0],f=t.values[1];"Q"===n||"T"===n?(p=o+(o-r),d=s+(s-i)):(p=o,d=s);var v=o+2*(p-o)/3,y=s+2*(d-s)/3,m=c+2*(p-c)/3,g=f+2*(d-f)/3;e.push({type:"C",values:[v,y,m,g,c,f]}),r=p,i=d,o=c,s=f}else if("Q"===t.type){var p=t.values[0],d=t.values[1],c=t.values[2],f=t.values[3],v=o+2*(p-o)/3,y=s+2*(d-s)/3,m=c+2*(p-c)/3,g=f+2*(d-f)/3;e.push({type:"C",values:[v,y,m,g,c,f]}),r=p,i=d,o=c,s=f}else if("A"===t.type){var b=Math.abs(t.values[0]),x=Math.abs(t.values[1]),E=t.values[2],T=t.values[3],w=t.values[4],c=t.values[5],f=t.values[6];if(0===b||0===x)e.push({type:"C",values:[o,s,c,f,c,f]}),o=c,s=f;else if(o!==c||s!==f){var P=u(o,s,c,f,b,x,E,T,w);P.forEach(function(t){e.push({type:"C",values:t})}),o=c,s=f}}else"Z"===t.type&&(e.push(t),o=a,s=l);n=t.type}),e};SVGPathElement.prototype.setAttribute=function(t,e){"d"===t&&(this[s]=null,this[a]=null),i.call(this,t,e)},SVGPathElement.prototype.removeAttribute=function(t,e){"d"===t&&(this[s]=null,this[a]=null),o.call(this,t)},SVGPathElement.prototype.getPathData=function(t){if(t&&t.normalize){if(this[a])return l(this[a]);var e;this[s]?e=l(this[s]):(e=r(this.getAttribute("d")||""),this[s]=l(e));var n=f(c(e));return this[a]=l(n),n}if(this[s])return l(this[s]);var e=r(this.getAttribute("d")||"");return this[s]=l(e),e},SVGPathElement.prototype.setPathData=function(t){if(0===t.length)n?this.setAttribute("d",""):this.removeAttribute("d");else{for(var e="",r=0,i=t.length;r<i;r+=1){var o=t[r];r>0&&(e+=" "),e+=o.type,o.values&&o.values.length>0&&(e+=" "+o.values.join(" "))}this.setAttribute("d",e)}},SVGRectElement.prototype.getPathData=function(t){var e=this.x.baseVal.value,n=this.y.baseVal.value,r=this.width.baseVal.value,i=this.height.baseVal.value,o=this.hasAttribute("rx")?this.rx.baseVal.value:this.ry.baseVal.value,s=this.hasAttribute("ry")?this.ry.baseVal.value:this.rx.baseVal.value;o>r/2&&(o=r/2),s>i/2&&(s=i/2);var a=[{type:"M",values:[e+o,n]},{type:"H",values:[e+r-o]},{type:"A",values:[o,s,0,0,1,e+r,n+s]},{type:"V",values:[n+i-s]},{type:"A",values:[o,s,0,0,1,e+r-o,n+i]},{type:"H",values:[e+o]},{type:"A",values:[o,s,0,0,1,e,n+i-s]},{type:"V",values:[n+s]},{type:"A",values:[o,s,0,0,1,e+o,n]},{type:"Z",values:[]}];return a=a.filter(function(t){return"A"!==t.type||0!==t.values[0]&&0!==t.values[1]}),t&&t.normalize===!0&&(a=f(a)),a},SVGCircleElement.prototype.getPathData=function(t){var e=this.cx.baseVal.value,n=this.cy.baseVal.value,r=this.r.baseVal.value,i=[{type:"M",values:[e+r,n]},{type:"A",values:[r,r,0,0,1,e,n+r]},{type:"A",values:[r,r,0,0,1,e-r,n]},{type:"A",values:[r,r,0,0,1,e,n-r]},{type:"A",values:[r,r,0,0,1,e+r,n]},{type:"Z",values:[]}];return t&&t.normalize===!0&&(i=f(i)),i},SVGEllipseElement.prototype.getPathData=function(t){var e=this.cx.baseVal.value,n=this.cy.baseVal.value,r=this.rx.baseVal.value,i=this.ry.baseVal.value,o=[{type:"M",values:[e+r,n]},{type:"A",values:[r,i,0,0,1,e,n+i]},{type:"A",values:[r,i,0,0,1,e-r,n]},{type:"A",values:[r,i,0,0,1,e,n-i]},{type:"A",values:[r,i,0,0,1,e+r,n]},{type:"Z",values:[]}];return t&&t.normalize===!0&&(o=f(o)),o},SVGLineElement.prototype.getPathData=function(){return[{type:"M",values:[this.x1.baseVal.value,this.y1.baseVal.value]},{type:"L",values:[this.x2.baseVal.value,this.y2.baseVal.value]}]},SVGPolylineElement.prototype.getPathData=function(){for(var t=[],e=0;e<this.points.numberOfItems;e+=1){var n=this.points.getItem(e);t.push({type:0===e?"M":"L",values:[n.x,n.y]})}return t},SVGPolygonElement.prototype.getPathData=function(){for(var t=[],e=0;e<this.points.numberOfItems;e+=1){var n=this.points.getItem(e);t.push({type:0===e?"M":"L",values:[n.x,n.y]})}return t.push({type:"Z",values:[]}),t}}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(194),o=r(i),s=n(221),a=r(s),u=n(140),l=r(u),c=n(118),f=r(c),p=f.default.CURVE_PERCENT;e.default=function(t,e,n){var r=(0,a.default)(t,6),i=r[0],s=r[1],u=r[2],c=r[3],f=r[4],d=r[5],h=e[e.length-1],_=(0,l.default)((i-h.x)*p,s*p-h.y);h.handle2=_;var v={x:f,y:d*p,type:"disconnected",handle1:(0,l.default)((u-f)*p,(c-d)*p),isLockedX:n};return[].concat((0,o.default)(e),[v])}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=n(222),o=r(i),s=n(225),a=r(s);e.default=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,u=(0,a.default)(t);!(r=(s=u.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if((0,o.default)(Object(e)))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,e,n){t.exports={default:n(223),__esModule:!0}},function(t,e,n){n(92),n(81),t.exports=n(224)},function(t,e,n){var r=n(202),i=n(91)("iterator"),o=n(85);t.exports=n(4).isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(r(e))}},function(t,e,n){t.exports={default:n(226),__esModule:!0}},function(t,e,n){n(92),n(81),t.exports=n(227)},function(t,e,n){var r=n(15),i=n(201);t.exports=n(4).getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(194),o=r(i),s=n(221),a=r(s),u=n(118),l=r(u);e.default=function(t,e,n){var r=(0,a.default)(t,2),i=r[0],s=r[1],u={x:i,y:s*l.default.CURVE_PERCENT,isLockedX:n};return[].concat((0,o.default)(e),[u])}}])});

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc