@robotical/martyblocks
Version:
MartyBlocks based on Scratch for Marty the Robot by Robotical
1 lines • 41.5 MB
JavaScript
!function(e){function t(t){for(var o,a,r=t[0],s=t[1],l=t[2],u=0,g=[];u<r.length;u++)a=r[u],Object.prototype.hasOwnProperty.call(i,a)&&i[a]&&g.push(i[a][0]),i[a]=0;for(o in s)Object.prototype.hasOwnProperty.call(s,o)&&(e[o]=s[o]);for(c&&c(t);g.length;)g.shift()();return A.push.apply(A,l||[]),n()}function n(){for(var e,t=0;t<A.length;t++){for(var n=A[t],o=!0,r=1;r<n.length;r++){var s=n[r];0!==i[s]&&(o=!1)}o&&(A.splice(t--,1),e=a(a.s=n[0]))}return e}var o={},i={0:0},A=[];function a(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=o,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)a.d(n,o,function(t){return e[t]}.bind(null,o));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="";var r=window.webpackJsonpGUI=window.webpackJsonpGUI||[],s=r.push.bind(r);r.push=t,r=r.slice();for(var l=0;l<r.length;l++)t(r[l]);var c=s;n()}([function(e,t,n){"use strict";e.exports=n(707)},function(e,t,n){e.exports=n(746)()},function(e,t,n){"use strict";n.d(t,"c",function(){return p}),n.d(t,"f",function(){return H}),n.d(t,"e",function(){return Ae}),n.d(t,"d",function(){return ae}),n.d(t,"b",function(){return pe}),n.d(t,"a",function(){return Be});var o=n(601),i=n.n(o),A=n(164),a=n.n(A),r=n(217),s=n.n(r),l=n(1),c=n.n(l),u=n(0),g=n.n(u),M=n(602),d=n.n(M),E=n(141),D=n.n(E);function N(e){return JSON.stringify(e.map(function(e){return e&&"object"==typeof e?(t=e,Object.keys(t).sort().map(function(e){var n;return(n={})[e]=t[e],n})):e;var t}))}var h=function(e,t){return void 0===t&&(t={}),function(){for(var n,o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var A=N(o),a=A&&t[A];return a||(a=new((n=e).bind.apply(n,[void 0].concat(o))),A&&(t[A]=a)),a}},T={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),o=!n[1],i=Number(n[0])==e,A=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return t?1==A&&11!=a?"one":2==A&&12!=a?"two":3==A&&13!=a?"few":"other":1==e&&o?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr.",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr.",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}}};function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(Array.isArray(e)?e:[e]).forEach(function(e){e&&e.locale&&(a.a.__addLocaleData(e),s.a.__addLocaleData(e))})}function I(e){var t=e&&e.toLowerCase();return!(!a.a.__localeData__[t]||!s.a.__localeData__[t])}var w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m=(function(){function e(e){this.value=e}function t(t){var n,o;function i(n,o){try{var a=t[n](o),r=a.value;r instanceof e?Promise.resolve(r.value).then(function(e){i("next",e)},function(e){i("throw",e)}):A(a.done?"return":"normal",a.value)}catch(e){A("throw",e)}}function A(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?i(n.key,n.arg):o=null}this._invoke=function(e,t){return new Promise(function(A,a){var r={key:e,arg:t,resolve:A,reject:a,next:null};o?o=o.next=r:(n=o=r,i(e,t))})},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),f=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),y=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},C=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},S=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},B=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},L=c.a.bool,k=c.a.number,x=c.a.string,b=c.a.func,z=c.a.object,Q=c.a.oneOf,_=c.a.shape,R=c.a.any,v=c.a.oneOfType,U=Q(["best fit","lookup"]),j=Q(["narrow","short","long"]),Y=Q(["numeric","2-digit"]),F=b.isRequired,P={locale:x,timeZone:x,formats:z,messages:z,textComponent:R,defaultLocale:x,defaultFormats:z,onError:b},G={formatDate:F,formatTime:F,formatRelative:F,formatNumber:F,formatPlural:F,formatMessage:F,formatHTMLMessage:F},H=_(O({},P,G,{formatters:z,now:F})),W=(x.isRequired,v([x,z]),{localeMatcher:U,formatMatcher:Q(["basic","best fit"]),timeZone:x,hour12:L,weekday:j,era:j,year:Y,month:Q(["numeric","2-digit","narrow","short","long"]),day:Y,hour:Y,minute:Y,second:Y,timeZoneName:Q(["short","long"])}),V={localeMatcher:U,style:Q(["decimal","currency","percent"]),currency:x,currencyDisplay:Q(["symbol","code","name"]),useGrouping:L,minimumIntegerDigits:k,minimumFractionDigits:k,maximumFractionDigits:k,minimumSignificantDigits:k,maximumSignificantDigits:k},K={style:Q(["best fit","numeric"]),units:Q(["second","minute","hour","day","month","year","second-short","minute-short","hour-short","day-short","month-short","year-short"])},J={style:Q(["cardinal","ordinal"])},X=Object.keys(P),Z={"&":"&",">":">","<":"<",'"':""","'":"'"},q=/[&><"']/g;function $(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce(function(t,o){return e.hasOwnProperty(o)?t[o]=e[o]:n.hasOwnProperty(o)&&(t[o]=n[o]),t},{})}function ee(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).intl;D()(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function te(e,t){if(e===t)return!0;if("object"!==(void 0===e?"undefined":w(e))||null===e||"object"!==(void 0===t?"undefined":w(t))||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),A=0;A<n.length;A++)if(!i(n[A])||e[n[A]]!==t[n[A]])return!1;return!0}function ne(e,t,n){var o=e.props,i=e.state,A=e.context,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=(void 0===A?{}:A).intl,s=void 0===r?{}:r,l=a.intl,c=void 0===l?{}:l;return!te(t,o)||!te(n,i)||!(c===s||te($(c,X),$(s,X)))}function oe(e,t){return"[React Intl] "+e+(t?"\n"+t:"")}function ie(e){0}function Ae(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.intlPropName,i=void 0===o?"intl":o,A=n.withRef,a=void 0!==A&&A,r=function(t){function n(e,t){m(this,n);var o=S(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return ee(t),o}return C(n,t),f(n,[{key:"getWrappedInstance",value:function(){return D()(a,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this._wrappedInstance}},{key:"render",value:function(){var t=this;return g.a.createElement(e,O({},this.props,y({},i,this.context.intl),{ref:a?function(e){return t._wrappedInstance=e}:null}))}}]),n}(u.Component);return r.displayName="InjectIntl("+(((t=e).displayName||t.name||"Component")+")"),r.contextTypes={intl:H},r.WrappedComponent=e,d()(r,e)}function ae(e){return e}var re=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m(this,e);var o,i="ordinal"===n.style,A=(o=function(e){return a.a.prototype._resolveLocale(e)}(t),a.a.prototype._findPluralRuleFunction(o));this.format=function(e){return A(e,i)}},se=Object.keys(W),le=Object.keys(V),ce=Object.keys(K),ue=Object.keys(J),ge={second:60,minute:60,hour:24,day:30,month:12};function Me(e){var t=s.a.thresholds;t.second=e.second,t.minute=e.minute,t.hour=e.hour,t.day=e.day,t.month=e.month,t["second-short"]=e["second-short"],t["minute-short"]=e["minute-short"],t["hour-short"]=e["hour-short"],t["day-short"]=e["day-short"],t["month-short"]=e["month-short"]}function de(e,t,n,o){var i=e&&e[t]&&e[t][n];if(i)return i;o(oe("No "+t+" format named: "+n))}function Ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,A=e.formats,a=e.messages,r=e.defaultLocale,s=e.defaultFormats,l=n.id,c=n.defaultMessage;D()(l,"[React Intl] An `id` must be provided to format a message.");var u=a&&a[l];if(!(Object.keys(o).length>0))return u||c||l;var g=void 0,M=e.onError||ie;if(u)try{g=t.getMessageFormat(u,i,A).format(o)}catch(e){M(oe('Error formatting message: "'+l+'" for locale: "'+i+'"'+(c?", using default message as fallback.":""),e))}else(!c||i&&i.toLowerCase()!==r.toLowerCase())&&M(oe('Missing message: "'+l+'" for locale: "'+i+'"'+(c?", using default message as fallback.":"")));if(!g&&c)try{g=t.getMessageFormat(c,r,s).format(o)}catch(e){M(oe('Error formatting the default message for: "'+l+'"',e))}return g||M(oe('Cannot format message: "'+l+'", using message '+(u||c?"source":"id")+" as fallback.")),g||u||c||l}var De=Object.freeze({formatDate:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,A=e.formats,a=e.timeZone,r=o.format,s=e.onError||ie,l=new Date(n),c=O({},a&&{timeZone:a},r&&de(A,"date",r,s)),u=$(o,se,c);try{return t.getDateTimeFormat(i,u).format(l)}catch(e){s(oe("Error formatting date.",e))}return String(l)},formatTime:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,A=e.formats,a=e.timeZone,r=o.format,s=e.onError||ie,l=new Date(n),c=O({},a&&{timeZone:a},r&&de(A,"time",r,s)),u=$(o,se,c);u.hour||u.minute||u.second||(u=O({},u,{hour:"numeric",minute:"numeric"}));try{return t.getDateTimeFormat(i,u).format(l)}catch(e){s(oe("Error formatting time.",e))}return String(l)},formatRelative:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,A=e.formats,a=o.format,r=e.onError||ie,l=new Date(n),c=new Date(o.now),u=a&&de(A,"relative",a,r),g=$(o,ce,u),M=O({},s.a.thresholds);Me(ge);try{return t.getRelativeFormat(i,g).format(l,{now:isFinite(c)?c:t.now()})}catch(e){r(oe("Error formatting relative time.",e))}finally{Me(M)}return String(l)},formatNumber:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,A=e.formats,a=o.format,r=e.onError||ie,s=a&&de(A,"number",a,r),l=$(o,le,s);try{return t.getNumberFormat(i,l).format(n)}catch(e){r(oe("Error formatting number.",e))}return String(n)},formatPlural:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,A=$(o,ue),a=e.onError||ie;try{return t.getPluralFormat(i,A).format(n)}catch(e){a(oe("Error formatting plural.",e))}return"other"},formatMessage:Ee,formatHTMLMessage:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Ee(e,t,n,Object.keys(o).reduce(function(e,t){var n=o[t];return e[t]="string"==typeof n?(""+n).replace(q,function(e){return Z[e]}):n,e},{}))}}),Ne=Object.keys(P),he=Object.keys(G),Te={formats:{},messages:{},timeZone:null,textComponent:"span",defaultLocale:"en",defaultFormats:{},onError:ie},pe=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};m(this,t);var o=S(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));D()("undefined"!=typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var i=n.intl,A=void 0;A=isFinite(e.initialNow)?Number(e.initialNow):i?i.now():Date.now();var r=(i||{}).formatters,l=void 0===r?{getDateTimeFormat:h(Intl.DateTimeFormat),getNumberFormat:h(Intl.NumberFormat),getMessageFormat:h(a.a),getRelativeFormat:h(s.a),getPluralFormat:h(re)}:r;return o.state=O({},l,{now:function(){return o._didDisplay?Date.now():A}}),o}return C(t,e),f(t,[{key:"getConfig",value:function(){var e=this.context.intl,t=$(this.props,Ne,e);for(var n in Te)void 0===t[n]&&(t[n]=Te[n]);if(!function(e){for(var t=(e||"").split("-");t.length>0;){if(I(t.join("-")))return!0;t.pop()}return!1}(t.locale)){var o=t,i=o.locale,A=o.defaultLocale,a=o.defaultFormats;(0,o.onError)(oe('Missing locale data for locale: "'+i+'". Using default locale: "'+A+'" as fallback.')),t=O({},t,{locale:A,formats:a,messages:Te.messages})}return t}},{key:"getBoundFormatFns",value:function(e,t){return he.reduce(function(n,o){return n[o]=De[o].bind(null,e,t),n},{})}},{key:"getChildContext",value:function(){var e=this.getConfig(),t=this.getBoundFormatFns(e,this.state),n=this.state,o=n.now,i=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(n,["now"]);return{intl:O({},e,t,{formatters:i,now:o})}}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return ne.apply(void 0,[this].concat(t))}},{key:"componentDidMount",value:function(){this._didDisplay=!0}},{key:"render",value:function(){return u.Children.only(this.props.children)}}]),t}(u.Component);pe.displayName="IntlProvider",pe.contextTypes={intl:H},pe.childContextTypes={intl:H.isRequired};var Ie=function(e){function t(e,n){m(this,t);var o=S(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return ee(n),o}return C(t,e),f(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return ne.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatDate,n=e.textComponent,o=this.props,i=o.value,A=o.children,a=t(i,this.props);return"function"==typeof A?A(a):g.a.createElement(n,null,a)}}]),t}(u.Component);Ie.displayName="FormattedDate",Ie.contextTypes={intl:H};var we=function(e){function t(e,n){m(this,t);var o=S(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return ee(n),o}return C(t,e),f(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return ne.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatTime,n=e.textComponent,o=this.props,i=o.value,A=o.children,a=t(i,this.props);return"function"==typeof A?A(a):g.a.createElement(n,null,a)}}]),t}(u.Component);we.displayName="FormattedTime",we.contextTypes={intl:H};var me=36e5,fe=864e5;var ye=function(e){function t(e,n){m(this,t);var o=S(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));ee(n);var i=isFinite(e.initialNow)?Number(e.initialNow):n.intl.now();return o.state={now:i},o}return C(t,e),f(t,[{key:"scheduleNextUpdate",value:function(e,t){var n=this;clearTimeout(this._timer);var o=e.value,i=e.units,A=e.updateInterval,a=new Date(o).getTime();if(A&&isFinite(a)){var r=a-t.now,s=function(e){switch(e){case"second":return 1e3;case"minute":return 6e4;case"hour":return me;case"day":return fe;default:return 2147483647}}(i||function(e){var t=Math.abs(e);return t<6e4?"second":t<me?"minute":t<fe?"hour":"day"}(r)),l=Math.abs(r%s),c=r<0?Math.max(A,s-l):Math.max(A,l);this._timer=setTimeout(function(){n.setState({now:n.context.intl.now()})},c)}}},{key:"componentDidMount",value:function(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentWillReceiveProps",value:function(e){(function(e,t){if(e===t)return!0;var n=new Date(e).getTime(),o=new Date(t).getTime();return isFinite(n)&&isFinite(o)&&n===o})(e.value,this.props.value)||this.setState({now:this.context.intl.now()})}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return ne.apply(void 0,[this].concat(t))}},{key:"componentWillUpdate",value:function(e,t){this.scheduleNextUpdate(e,t)}},{key:"componentWillUnmount",value:function(){clearTimeout(this._timer)}},{key:"render",value:function(){var e=this.context.intl,t=e.formatRelative,n=e.textComponent,o=this.props,i=o.value,A=o.children,a=t(i,O({},this.props,this.state));return"function"==typeof A?A(a):g.a.createElement(n,null,a)}}]),t}(u.Component);ye.displayName="FormattedRelative",ye.contextTypes={intl:H},ye.defaultProps={updateInterval:1e4};var Oe=function(e){function t(e,n){m(this,t);var o=S(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return ee(n),o}return C(t,e),f(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return ne.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatNumber,n=e.textComponent,o=this.props,i=o.value,A=o.children,a=t(i,this.props);return"function"==typeof A?A(a):g.a.createElement(n,null,a)}}]),t}(u.Component);Oe.displayName="FormattedNumber",Oe.contextTypes={intl:H};var Ce=function(e){function t(e,n){m(this,t);var o=S(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return ee(n),o}return C(t,e),f(t,[{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return ne.apply(void 0,[this].concat(t))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatPlural,n=e.textComponent,o=this.props,i=o.value,A=o.other,a=o.children,r=t(i,this.props),s=this.props[r]||A;return"function"==typeof a?a(s):g.a.createElement(n,null,s)}}]),t}(u.Component);Ce.displayName="FormattedPlural",Ce.contextTypes={intl:H},Ce.defaultProps={style:"cardinal"};var Se=function(e,t){return Ee({},{getMessageFormat:h(a.a)},e,t)},Be=function(e){function t(e,n){m(this,t);var o=S(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.defaultMessage||ee(n),o}return C(t,e),f(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values;if(!te(e.values,t))return!0;for(var n=O({},e,{values:t}),o=arguments.length,i=Array(o>1?o-1:0),A=1;A<o;A++)i[A-1]=arguments[A];return ne.apply(void 0,[this,n].concat(i))}},{key:"render",value:function(){var e,t=this.context.intl||{},n=t.formatMessage,o=void 0===n?Se:n,i=t.textComponent,A=void 0===i?"span":i,a=this.props,r=a.id,s=a.description,l=a.defaultMessage,c=a.values,g=a.tagName,M=void 0===g?A:g,d=a.children,E=void 0,D=void 0,N=void 0;if(c&&Object.keys(c).length>0){var h=Math.floor(1099511627776*Math.random()).toString(16),T=(e=0,function(){return"ELEMENT-"+h+"-"+(e+=1)});E="@__"+h+"__@",D={},N={},Object.keys(c).forEach(function(e){var t=c[e];if(Object(u.isValidElement)(t)){var n=T();D[e]=E+n+E,N[n]=t}else D[e]=t})}var p=o({id:r,description:s,defaultMessage:l},D||c),I=void 0;return I=N&&Object.keys(N).length>0?p.split(E).filter(function(e){return!!e}).map(function(e){return N[e]||e}):[p],"function"==typeof d?d.apply(void 0,B(I)):u.createElement.apply(void 0,[M,null].concat(B(I)))}}]),t}(u.Component);Be.displayName="FormattedMessage",Be.contextTypes={intl:H},Be.defaultProps={values:{}};var Le=function(e){function t(e,n){m(this,t);var o=S(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return ee(n),o}return C(t,e),f(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values;if(!te(e.values,t))return!0;for(var n=O({},e,{values:t}),o=arguments.length,i=Array(o>1?o-1:0),A=1;A<o;A++)i[A-1]=arguments[A];return ne.apply(void 0,[this,n].concat(i))}},{key:"render",value:function(){var e=this.context.intl,t=e.formatHTMLMessage,n=e.textComponent,o=this.props,i=o.id,A=o.description,a=o.defaultMessage,r=o.values,s=o.tagName,l=void 0===s?n:s,c=o.children,u=t({id:i,description:A,defaultMessage:a},r);if("function"==typeof c)return c(u);var M={__html:u};return g.a.createElement(l,{dangerouslySetInnerHTML:M})}}]),t}(u.Component);Le.displayName="FormattedHTMLMessage",Le.contextTypes={intl:H},Le.defaultProps={values:{}},p(T),p(i.a)},function(e,t,n){var o,i,A;(function(a,r){var s=(a=a||n(1164)).window?a.window:a,l=a.document,c=new function(){var e=/^(statics|enumerable|beans|preserve)$/,t=[],n=t.slice,o=Object.create,i=Object.getOwnPropertyDescriptor,A=Object.defineProperty,a=t.forEach||function(e,t){for(var n=0,o=this.length;n<o;n++)e.call(t,this[n],n,this)},s=function(e,t){for(var n in this)this.hasOwnProperty(n)&&e.call(t,this[n],n,this)},l=Object.assign||function(e){for(var t=1,n=arguments.length;t<n;t++){var o=arguments[t];for(var i in o)o.hasOwnProperty(i)&&(e[i]=o[i])}return e},c=function(e,t,n){if(e){var o=i(e,"length");(o&&"number"==typeof o.value?a:s).call(e,t,n=n||e)}return n};function u(t,n,o,a,r){var s={};function l(e,l){"string"==typeof(l=l||(l=i(n,e))&&(l.get?l:l.value))&&"#"===l[0]&&(l=t[l.substring(1)]||l);var c,u="function"==typeof l,M=l,d=r||u&&!l.base?l&&l.get?e in t:t[e]:null;r&&d||(u&&d&&(l.base=d),u&&!1!==a&&(c=e.match(/^([gs]et|is)(([A-Z])(.*))$/))&&(s[c[3].toLowerCase()+c[4]]=c[2]),M&&!u&&M.get&&"function"==typeof M.get&&g.isPlainObject(M)||(M={value:M,writable:!0}),(i(t,e)||{configurable:!0}).configurable&&(M.configurable=!0,M.enumerable=null!=o?o:!c),A(t,e,M))}if(n){for(var c in n)n.hasOwnProperty(c)&&!e.test(c)&&l(c);for(var c in s){var u=s[c],M=t["set"+u],d=t["get"+u]||M&&t["is"+u];!d||!0!==a&&0!==d.length||l(c,{get:d,set:M})}}return t}function g(){for(var e=0,t=arguments.length;e<t;e++){var n=arguments[e];n&&l(this,n)}return this}return u(g,{inject:function(e){if(e){var t=!0===e.statics?e:e.statics,n=e.beans,o=e.preserve;t!==e&&u(this.prototype,e,e.enumerable,n,o),u(this,t,null,n,o)}for(var i=1,A=arguments.length;i<A;i++)this.inject(arguments[i]);return this},extend:function(){for(var e,t,n,i=this,a=0,r=arguments.length;a<r&&(!e||!t);a++)n=arguments[a],e=e||n.initialize,t=t||n.prototype;return e=e||function(){i.apply(this,arguments)},t=e.prototype=t||o(this.prototype),A(t,"constructor",{value:e,writable:!0,configurable:!0}),u(e,this),arguments.length&&this.inject.apply(e,arguments),e.base=i,e}}).inject({enumerable:!1,initialize:g,set:g,inject:function(){for(var e=0,t=arguments.length;e<t;e++){var n=arguments[e];n&&u(this,n,n.enumerable,n.beans,n.preserve)}return this},extend:function(){var e=o(this);return e.inject.apply(e,arguments)},each:function(e,t){return c(this,e,t)},clone:function(){return new this.constructor(this)},statics:{set:l,each:c,create:o,define:A,describe:i,clone:function(e){return l(new e.constructor,e)},isPlainObject:function(e){var t=null!=e&&e.constructor;return t&&(t===Object||t===g||"Object"===t.name)},pick:function(e,t){return e!==r?e:t},slice:function(e,t,o){return n.call(e,t,o)}}})};e.exports=c,c.inject({enumerable:!1,toString:function(){return null!=this._id?(this._class||"Object")+(this._name?" '"+this._name+"'":" @"+this._id):"{ "+c.each(this,function(e,t){if(!/^_/.test(t)){var n=typeof e;this.push(t+": "+("number"===n?E.instance.number(e):"string"===n?"'"+e+"'":e))}},[]).join(", ")+" }"},getClassName:function(){return this._class||""},importJSON:function(e){return c.importJSON(e,this)},exportJSON:function(e){return c.exportJSON(this,e)},toJSON:function(){return c.serialize(this)},set:function(e,t){return e&&c.filter(this,e,t,this._prioritize),this}},{beans:!1,statics:{exports:{},extend:function e(){var t=e.base.apply(this,arguments),n=t.prototype._class;return n&&!c.exports[n]&&(c.exports[n]=t),t},equals:function(e,t){if(e===t)return!0;if(e&&e.equals)return e.equals(t);if(t&&t.equals)return t.equals(e);if(e&&t&&"object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t)){if((n=e.length)!==t.length)return!1;for(;n--;)if(!c.equals(e[n],t[n]))return!1}else{var n,o=Object.keys(e);if((n=o.length)!==Object.keys(t).length)return!1;for(;n--;){var i=o[n];if(!t.hasOwnProperty(i)||!c.equals(e[i],t[i]))return!1}}return!0}return!1},read:function(e,t,n,o){if(this===c){var i=this.peek(e,t);return e.__index++,i}var A=this.prototype,a=A._readIndex,s=t||a&&e.__index||0,l=e.length,u=e[s];if(o=o||l-s,u instanceof this||n&&n.readNull&&null==u&&o<=1)return a&&(e.__index=s+1),u&&n&&n.clone?u.clone():u;if(u=c.create(A),a&&(u.__read=!0),u=u.initialize.apply(u,s>0||s+o<l?c.slice(e,s,s+o):e)||u,a){e.__index=s+u.__read;var g=u.__filtered;g&&(e.__filtered=g,u.__filtered=r),u.__read=r}return u},peek:function(e,t){return e[e.__index=t||e.__index||0]},remain:function(e){return e.length-(e.__index||0)},readList:function(e,t,n,o){for(var i,A=[],a=t||0,r=o?a+o:e.length,s=a;s<r;s++)A.push(Array.isArray(i=e[s])?this.read(i,0,n):this.read(e,s,n,1));return A},readNamed:function(e,t,n,o,i){var A=this.getNamed(e,t),a=A!==r;if(a){var s=e.__filtered;if(!s){var l=this.getSource(e);(s=e.__filtered=c.create(l)).__unfiltered=l}s[t]=r}return this.read(a?[A]:e,n,o,i)},readSupported:function(e,t){var n=this.getSource(e),o=this,i=!1;return n&&Object.keys(n).forEach(function(n){if(n in t){var A=o.readNamed(e,n);A!==r&&(t[n]=A),i=!0}}),i},getSource:function(e){var t=e.__source;if(t===r){var n=1===e.length&&e[0];t=e.__source=n&&c.isPlainObject(n)?n:null}return t},getNamed:function(e,t){var n=this.getSource(e);if(n)return t?n[t]:e.__filtered||n},hasNamed:function(e,t){return!!this.getNamed(e,t)},filter:function(e,t,n,o){var i;function A(o){if(!(n&&o in n||i&&o in i)){var A=t[o];A!==r&&(e[o]=A)}}if(o){for(var a,s={},l=0,c=o.length;l<c;l++)(a=o[l])in t&&(A(a),s[a]=!0);i=s}return Object.keys(t.__unfiltered||t).forEach(A),e},isPlainValue:function(e,t){return c.isPlainObject(e)||Array.isArray(e)||t&&"string"==typeof e},serialize:function(e,t,n,o){t=t||{};var i,A=!o;if(A&&(t.formatter=new E(t.precision),o={length:0,definitions:{},references:{},add:function(e,t){var n="#"+e._id,o=this.references[n];if(!o){this.length++;var i=t.call(e),A=e._class;A&&i[0]!==A&&i.unshift(A),this.definitions[n]=i,o=this.references[n]=[n]}return o}}),e&&e._serialize){i=e._serialize(t,o);var a=e._class;!a||e._compactSerialize||!A&&n||i[0]===a||i.unshift(a)}else if(Array.isArray(e)){i=[];for(var r=0,s=e.length;r<s;r++)i[r]=c.serialize(e[r],t,n,o)}else if(c.isPlainObject(e)){i={};var l=Object.keys(e);for(r=0,s=l.length;r<s;r++){var u=l[r];i[u]=c.serialize(e[u],t,n,o)}}else i="number"==typeof e?t.formatter.number(e,t.precision):e;return A&&o.length>0?[["dictionary",o.definitions],i]:i},deserialize:function(e,t,n,o,i){var A=e,a=!n,r=a&&e&&e.length&&"dictionary"===e[0][0];if(n=n||{},Array.isArray(e)){var s=e[0],l="dictionary"===s;if(1==e.length&&/^#/.test(s))return n.dictionary[s];A=[];for(var u=(s=c.exports[s])?1:0,g=e.length;u<g;u++)A.push(c.deserialize(e[u],t,n,l,r));if(s){var M=A;A=t?t(s,M,a||i):new s(M)}}else if(c.isPlainObject(e))for(var d in A={},o&&(n.dictionary=A),e)A[d]=c.deserialize(e[d],t,n);return r?A[1]:A},exportJSON:function(e,t){var n=c.serialize(e,t);return t&&0==t.asString?n:JSON.stringify(n)},importJSON:function(e,t){return c.deserialize("string"==typeof e?JSON.parse(e):e,function(e,n,o){var i=o&&t&&t.constructor===e,A=i?t:c.create(e.prototype);if(1===n.length&&A instanceof C&&(i||!(A instanceof B))){var a=n[0];c.isPlainObject(a)&&(a.insert=!1,i&&(n=n.concat([{insert:!0}])))}return(i?A.set:e).apply(A,n),i&&(t=null),A})},push:function(e,t){var n=t.length;if(n<4096)e.push.apply(e,t);else{var o=e.length;e.length+=n;for(var i=0;i<n;i++)e[o+i]=t[i]}return e},splice:function(e,t,n,o){var i=t&&t.length,A=n===r;(n=A?e.length:n)>e.length&&(n=e.length);for(var a=0;a<i;a++)t[a]._index=n+a;if(A)return c.push(e,t),[];var s=[n,o];t&&c.push(s,t);for(var l=e.splice.apply(e,s),u=(a=0,l.length);a<u;a++)l[a]._index=r;for(a=n+i,u=e.length;a<u;a++)e[a]._index=a;return l},capitalize:function(e){return e.replace(/\b[a-z]/g,function(e){return e.toUpperCase()})},camelize:function(e){return e.replace(/-(.)/g,function(e,t){return t.toUpperCase()})},hyphenate:function(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}}});var u={on:function(e,t){if("string"!=typeof e)c.each(e,function(e,t){this.on(t,e)},this);else{var n=this._eventTypes,o=n&&n[e],i=this._callbacks=this._callbacks||{};-1===(i=i[e]=i[e]||[]).indexOf(t)&&(i.push(t),o&&o.install&&1===i.length&&o.install.call(this,e))}return this},off:function(e,t){if("string"==typeof e){var n,o=this._eventTypes,i=o&&o[e],A=this._callbacks&&this._callbacks[e];return A&&(!t||-1!==(n=A.indexOf(t))&&1===A.length?(i&&i.uninstall&&i.uninstall.call(this,e),delete this._callbacks[e]):-1!==n&&A.splice(n,1)),this}c.each(e,function(e,t){this.off(t,e)},this)},once:function(e,t){return this.on(e,function n(){t.apply(this,arguments),this.off(e,n)})},emit:function(e,t){var n=this._callbacks&&this._callbacks[e];if(!n)return!1;var o=c.slice(arguments,1),i=t&&t.target&&!t.currentTarget;n=n.slice(),i&&(t.currentTarget=this);for(var A=0,a=n.length;A<a;A++)if(0==n[A].apply(this,o)){t&&t.stop&&t.stop();break}return i&&delete t.currentTarget,!0},responds:function(e){return!(!this._callbacks||!this._callbacks[e])},attach:"#on",detach:"#off",fire:"#emit",_installEvents:function(e){var t=this._eventTypes,n=this._callbacks,o=e?"install":"uninstall";if(t)for(var i in n)if(n[i].length>0){var A=t[i],a=A&&A[o];a&&a.call(this,i)}},statics:{inject:function e(t){var n=t._events;if(n){var o={};c.each(n,function(e,n){var i="string"==typeof e,A=i?e:n,a=c.capitalize(A),r=A.substring(2).toLowerCase();o[r]=i?{}:e,A="_"+A,t["get"+a]=function(){return this[A]},t["set"+a]=function(e){var t=this[A];t&&this.off(r,t),e&&this.on(r,e),this[A]=e}}),t._eventTypes=o}return e.base.apply(this,arguments)}}},g=c.extend({_class:"PaperScope",initialize:function e(){ge=this,this.settings=new c({applyMatrix:!0,insertItems:!0,handleSize:4,hitTolerance:0}),this.project=null,this.projects=[],this.tools=[],this._id=e._id++,e._scopes[this._id]=this;var t=e.prototype;if(!this.support){var n=se.getContext(1,1)||{};t.support={nativeDash:"setLineDash"in n||"mozDash"in n,nativeBlendModes:le.nativeModes},se.release(n)}if(!this.agent){var o=a.navigator.userAgent.toLowerCase(),i=(/(darwin|win|mac|linux|freebsd|sunos)/.exec(o)||[])[0],A="darwin"===i?"mac":i,r=t.agent=t.browser={platform:A};A&&(r[A]=!0),o.replace(/(opera|chrome|safari|webkit|firefox|msie|trident|atom|node|jsdom)\/?\s*([.\d]+)(?:.*version\/([.\d]+))?(?:.*rv\:v?([.\d]+))?/g,function(e,t,n,o,i){if(!r.chrome){var A="opera"===t?o:/^(node|trident)$/.test(t)?i:n;r.version=A,r.versionNumber=parseFloat(A),t={trident:"msie",jsdom:"node"}[t]||t,r.name=t,r[t]=!0}}),r.chrome&&delete r.webkit,r.atom&&delete r.chrome}},version:"0.12.7",getView:function(){var e=this.project;return e&&e._view},getPaper:function(){return this},execute:function(e,t){var n=ge.PaperScript.execute(e,this,t);return q.updateFocus(),n},install:function(e){var t=this;for(var n in c.each(["project","view","tool"],function(n){c.define(e,n,{configurable:!0,get:function(){return t[n]}})}),this)!/^_/.test(n)&&this[n]&&(e[n]=this[n])},setup:function(e){return ge=this,this.project=new O(e),this},createCanvas:function(e,t){return se.getCanvas(e,t)},activate:function(){ge=this},clear:function(){for(var e=this.projects,t=this.tools,n=e.length-1;n>=0;n--)e[n].remove();for(n=t.length-1;n>=0;n--)t[n].remove()},remove:function(){this.clear(),delete g._scopes[this._id]},statics:new function(){function e(e){return e+="Attribute",function(t,n){return t[e](n)||t[e]("data-paper-"+n)}}return{_scopes:{},_id:0,get:function(e){return this._scopes[e]||null},getAttribute:e("get"),hasAttribute:e("has")}}}),M=c.extend(u,{initialize:function(e){this._scope=ge,this._index=this._scope[this._list].push(this)-1,!e&&this._scope[this._reference]||this.activate()},activate:function(){if(!this._scope)return!1;var e=this._scope[this._reference];return e&&e!==this&&e.emit("deactivate"),this._scope[this._reference]=this,this.emit("activate",e),!0},isActive:function(){return this._scope[this._reference]===this},remove:function(){return null!=this._index&&(c.splice(this._scope[this._list],null,this._index,1),this._scope[this._reference]==this&&(this._scope[this._reference]=null),this._scope=null,!0)},getView:function(){return this._scope.getView()}}),d={findItemBoundsCollisions:function(e,t,n){function o(e){for(var t=new Array(e.length),n=0;n<e.length;n++){var o=e[n].getBounds();t[n]=[o.left,o.top,o.right,o.bottom]}return t}var i=o(e),A=t&&t!==e?o(t):i;return this.findBoundsCollisions(i,A,n||0)},findCurveBoundsCollisions:function(e,t,n,o){function i(e){for(var t=Math.min,n=Math.max,o=new Array(e.length),i=0;i<e.length;i++){var A=e[i];o[i]=[t(A[0],A[2],A[4],A[6]),t(A[1],A[3],A[5],A[7]),n(A[0],A[2],A[4],A[6]),n(A[1],A[3],A[5],A[7])]}return o}var A=i(e),a=t&&t!==e?i(t):A;if(o){for(var r=this.findBoundsCollisions(A,a,n||0,!1,!0),s=this.findBoundsCollisions(A,a,n||0,!0,!0),l=[],c=0,u=r.length;c<u;c++)l[c]={hor:r[c],ver:s[c]};return l}return this.findBoundsCollisions(A,a,n||0)},findBoundsCollisions:function(e,t,n,o,i){var A=!t||e===t,a=A?e:e.concat(t),r=e.length,s=a.length;function l(e,t,n){for(var o=0,i=e.length;o<i;){var A=i+o>>>1;a[e[A]][t]<n?o=A+1:i=A}return o-1}for(var c=o?1:0,u=c+2,g=o?0:1,M=g+2,d=new Array(s),E=0;E<s;E++)d[E]=E;d.sort(function(e,t){return a[e][c]-a[t][c]});var D=[],N=new Array(r);for(E=0;E<s;E++){var h=d[E],T=a[h],p=A?h:h-r,I=h<r,w=A||!I,m=I?[]:null;if(D.length){var f=l(D,u,T[c]-n)+1;if(D.splice(0,f),A&&i){m=m.concat(D);for(var y=0;y<D.length;y++){N[S=D[y]].push(p)}}else{var O=T[M],C=T[g];for(y=0;y<D.length;y++){var S=D[y],B=a[S],L=S<r,k=A||S>=r;(i||(I&&k||w&&L)&&O>=B[g]-n&&C<=B[M]+n)&&(I&&k&&m.push(A?S:S-r),w&&L&&N[S].push(p))}}}if(I&&(e===t&&m.push(h),N[h]=m),D.length){var x=l(D,u,T[u]);D.splice(x+1,0,h)}else D.push(h)}for(E=0;E<N.length;E++){var b=N[E];b&&b.sort(function(e,t){return e-t})}return N}},E=c.extend({initialize:function(e){this.precision=c.pick(e,5),this.multiplier=Math.pow(10,this.precision)},number:function(e){return this.precision<16?Math.round(e*this.multiplier)/this.multiplier:e},pair:function(e,t,n){return this.number(e)+(n||",")+this.number(t)},point:function(e,t){return this.number(e.x)+(t||",")+this.number(e.y)},size:function(e,t){return this.number(e.width)+(t||",")+this.number(e.height)},rectangle:function(e,t){return this.point(e,t)+(t||",")+this.size(e,t)}});E.instance=new E;var D=new function(){var e=[[.5773502691896257],[0,.7745966692414834],[.33998104358485626,.8611363115940526],[0,.5384693101056831,.906179845938664],[.2386191860831969,.6612093864662645,.932469514203152],[0,.4058451513773972,.7415311855993945,.9491079123427585],[.1834346424956498,.525532409916329,.7966664774136267,.9602898564975363],[0,.3242534234038089,.6133714327005904,.8360311073266358,.9681602395076261],[.14887433898163122,.4333953941292472,.6794095682990244,.8650633666889845,.9739065285171717],[0,.26954315595234496,.5190961292068118,.7301520055740494,.8870625997680953,.978228658146057],[.1252334085114689,.3678314989981802,.5873179542866175,.7699026741943047,.9041172563704749,.9815606342467192],[0,.2304583159551348,.44849275103644687,.6423493394403402,.8015780907333099,.9175983992229779,.9841830547185881],[.10805494870734367,.31911236892788974,.5152486363581541,.6872929048116855,.827201315069765,.9284348836635735,.9862838086968123],[0,.20119409399743451,.3941513470775634,.5709721726085388,.7244177313601701,.8482065834104272,.937273392400706,.9879925180204854],[.09501250983763744,.2816035507792589,.45801677765722737,.6178762444026438,.755404408355003,.8656312023878318,.9445750230732326,.9894009349916499]],t=[[1],[.8888888888888888,.5555555555555556],[.6521451548625461,.34785484513745385],[.5688888888888889,.47862867049936647,.23692688505618908],[.46791393457269104,.3607615730481386,.17132449237917036],[.4179591836734694,.3818300505051189,.27970539148927664,.1294849661688697],[.362683783378362,.31370664587788727,.22238103445337448,.10122853629037626],[.3302393550012598,.31234707704000286,.26061069640293544,.1806481606948574,.08127438836157441],[.29552422471475287,.26926671930999635,.21908636251598204,.1494513491505806,.06667134430868814],[.2729250867779006,.26280454451024665,.23319376459199048,.18629021092773426,.1255803694649046,.05566856711617366],[.24914704581340277,.2334925365383548,.20316742672306592,.16007832854334622,.10693932599531843,.04717533638651183],[.2325515532308739,.22628318026289723,.2078160475368885,.17814598076194574,.13887351021978725,.09212149983772845,.04048400476531588],[.2152638534631578,.2051984637212956,.18553839747793782,.15720316715819355,.12151857068790319,.08015808715976021,.03511946033175186],[.2025782419255613,.19843148532711158,.1861610000155622,.16626920581699392,.13957067792615432,.10715922046717194,.07036604748810812,.03075324199611727],[.1894506104550685,.18260341504492358,.16915651939500254,.14959598881657674,.12462897125553388,.09515851168249279,.062253523938647894,.027152459411754096]],n=Math.abs,o=Math.sqrt,i=Math.pow,A=Math.log2||function(e){return Math.log(e)*Math.LOG2E},a=1e-12,r=112e-18;function s(e,t,n){return e<t?t:e>n?n:e}function l(e,t,o){function i(e){var t=134217729*e,n=e-t+t;return[n,e-n]}var A=t*t-e*o,a=t*t+e*o;if(3*n(A)<a){var r=i(e),s=i(t),l=i(o),c=t*t,u=e*o;A=c-u+(s[0]*s[0]-c+2*s[0]*s[1]+s[1]*s[1]-(r[0]*l[0]-u+r[0]*l[1]+r[1]*l[0]+r[1]*l[1]))}return A}function c(){var e=Math.max.apply(Math,arguments);return e&&(e<1e-8||e>1e8)?i(2,-Math.round(A(e))):0}return{EPSILON:a,MACHINE_EPSILON:r,CURVETIME_EPSILON:1e-8,GEOMETRIC_EPSILON:1e-7,TRIGONOMETRIC_EPSILON:1e-8,KAPPA:4*(o(2)-1)/3,isZero:function(e){return e>=-1e-12&&e<=a},isMachineZero:function(e){return e>=-112e-18&&e<=r},clamp:s,integrate:function(n,o,i,A){for(var a=e[A-2],r=t[A-2],s=.5*(i-o),l=s+o,c=0,u=A+1>>1,g=1&A?r[c++]*n(l):0;c<u;){var M=s*a[c];g+=r[c++]*(n(l+M)+n(l-M))}return s*g},findRoot:function(e,t,o,i,A,a,r){for(var l=0;l<a;l++){var c=e(o),u=c/t(o),g=o-u;if(n(u)<r){o=g;break}c>0?(A=o,o=g<=i?.5*(i+A):g):(i=o,o=g>=A?.5*(i+A):g)}return s(o,i,A)},solveQuadratic:function(e,t,i,A,u,g){var M,d=1/0;if(n(e)<a){if(n(t)<a)return n(i)<a?-1:0;M=-i/t}else{var E=l(e,t*=-.5,i);if(E&&n(E)<r){var D=c(n(e),n(t),n(i));D&&(E=l(e*=D,t*=D,i*=D))}if(E>=-112e-18){var N=E<0?0:o(E),h=t+(t<0?-N:N);0===h?d=-(M=i/e):(M=h/e,d=i/h)}}var T=0,p=null==u,I=u-a,w=g+a;return isFinite(M)&&(p||M>I&&M<w)&&(A[T++]=p?M:s(M,u,g)),d!==M&&isFinite(d)&&(p||d>I&&d<w)&&(A[T++]=p?d:s(d,u,g)),T},solveCubic:function(e,t,A,l,u,g,M){var d,E,N,h,T,p=c(n(e),n(t),n(A),n(l));function I(n){var o=e*(d=n);h=(o+(E=o+t))*d+(N=E*d+A),T=N*d+l}if(p&&(e*=p,t*=p,A*=p,l*=p),n(e)<a)e=t,E=A,N=l,d=1/0;else if(n(l)<a)E=t,N=A,d=0;else{I(-t/e/3);var w=T/e,m=i(n(w),1/3),f=w<0?-1:1,y=-h/e,O=y>0?1.324717957244746*Math.max(m,o(y)):m,C=d-f*O;if(C!==d){do{I(C),C=0===h?d:d-T/h/(1+r)}while(f*C>f*d);n(e)*d*d>n(l/d)&&(E=((N=-l/d)-A)/d)}}var S=D.solveQuadratic(e,E,N,u,g,M),B=null==g;return isFinite(d)&&(0===S||S>0&&d!==u[0]&&d!==u[1])&&(B||d>g-a&&d<M+a)&&(u[S++]=B?d:s(d,g,M)),S}}},N={_id:1,_pools:{},get:function(e){if(e){var t=this._pools[e];return t||(t=this._pools[e]={_id:1}),t._id++}return this._id++}},h=c.extend({_class:"Point",_readIndex:!0,initialize:function(e,t){var n=typeof e,o=this.__read,i=0;if("number"===n){var A="number"==typeof t;this._set(e,A?t:e),o&&(i=A?2:1)}else if("undefined"===n||null===e)this._set(0,0),o&&(i=null===e?1:0);else{var a="string"===n?e.split(/[\s,]+/)||[]:e;i=1,Array.isArray(a)?this._set(+a[0],+(a.length>1?a[1]:a[0])):"x"in a?this._set(a.x||0,a.y||0):"width"in a?this._set(a.width||0,a.height||0):"angle"in a?(this._set(a.length||0,0),this.setAngle(a.angle||0)):(this._set(0,0),i=0)}return o&&(this.__read=i),this},set:"#initialize",_set:function(e,t){return this.x=e,this.y=t,this},equals:function(e){return this===e||e&&(this.x===e.x&&this.y===e.y||Array.isArray(e)&&this.x===e[0]&&this.y===e[1])||!1},clone:function(){return new h(this.x,this.y)},toString:function(){var e=E.instance;return"{ x: "+e.number(this.x)+", y: "+e.number(this.y)+" }"},_serialize:function(e){var t=e.formatter;return[t.number(this.x),t.number(this.y)]},getLength:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},setLength:function(e){if(this.isZero()){var t=this._angle||0;this._set(Math.cos(t)*e,Math.sin(t)*e)}else{var n=e/this.getLength();D.isZero(n)&&this.getAngle(),this._set(this.x*n,this.y*n)}},getAngle:function(){return 180*this.getAngleInRadians.apply(this,arguments)/Math.PI},setAngle:function(e){this.setAngleInRadians.call(this,e*Math.PI/180)},getAngleInDegrees:"#getAngle",setAngleInDegrees:"#setAngle",getAngleInRadians:function(){if(arguments.length){var e=h.read(arguments),t=this.getLength()*e.getLength();if(D.isZero(t))return NaN;var n=this.dot(e)/t;return Math.acos(n<-1?-1:n>1?1:n)}return this.isZero()?this._angle||0:this._angle=Math.atan2(this.y,this.x)},setAngleInRadians:function(e){if(this._angle=e,!this.isZero()){var t=this.getLength();this._set(Math.cos(e)*t,Math.sin(e)*t)}},getQuadrant:function(){return this.x>=0?this.y>=0?1:4:this.y>=0?2:3}},{beans:!1,getDirectedAngle:function(){var e=h.read(arguments);return 180*Math.atan2(this.cross(e),this.dot(e))/Math.PI},getDistance:function(){var e=arguments,t=h.read(e),n=t.x-this.x,o=t.y-this.y,i=n*n+o*o;return c.read(e)?i:Math.sqrt(i)},normalize:function(e){e===r&&(e=1);var t=this.getLength(),n=0!==t?e/t:0,o=new h(this.x*n,this.y*n);return n>=0&&(o._angle=this._angle),o},rotate:function(e,t){if(0===e)return this.clone();e=e*Math.PI/180;var n=t?this.subtract(t):this,o=Math.sin(e),i=Math.cos(e);return n=new h(n.x*i-n.y*o,n.x*o+n.y*i),t?n.add(t):n},transform:function(e){return e?e._transformPoint(this):this},add:function(){var e=h.read(arguments);return new h(this.x+e.x,this.y+e.y)},subtract:function(){var e=h.read(arguments);return new h(this.x-e.x,this.y-e.y)},multiply:function(){var e=h.read(arguments);return new h(this.x*e.x,this.y*e.y)},divide:function(){var e=h.read(arguments);return new h(this.x/e.x,this.y/e.y)},modulo:function(){var e=h.read(arguments);return new h(this.x%e.x,this.y%e.y)},negate:function(){return new h(-this.x,-this.y)},isInside:function(){return w.read(arguments).contains(this)},isClose:function(){var e=arguments,t=h.read(e),n=c.read(e);return this.getDistance(t)<=n},isCollinear:function(){var e=h.read(arguments);return h.isCollinear(this.x,this.y,e.x,e.y)},isColinear:"#isCollinear",isOrthogonal:function(){var e=h.read(arguments);return h.isOrthogonal(this.x,this.y,e.x,e.y)},isZero:function(){var e=D.isZero;return e(this.x)&&e(this.y)},isNaN:function(){return isNaN(this.x)||isNaN(this.y)},isInQuadrant:function(e){return this.x*(e>1&&e<4?-1:1)>=0&&this.y*(e>2?-1:1)>=0},dot:function(){var e=h.read(arguments);return this.x*e.x+this.y*e.y},cross:function(){var e=h.read(arguments);return this.x*e.y-this.y*e.x},project:function(){var e=h.read(arguments),t=e.isZero()?0:this.dot(e)/e.dot(e);return new h(e.x*t,e.y*t)},statics:{min:function(){var e=arguments,t=h.read(e),n=h.read(e);return new h(Math.min(t.x,n.x),Math.min(t.y,n.y))},max:function(){var e=arguments,t=h.read(e),n=h.read(e);return new h(Math.max(t.x,n.x),Math.max(t.y,n.y))},random:function(){return new h(Math.random(),Math.random())},isCollinear:function(e,t,n,o){return Math.abs(e*o-t*n)<=1e-8*Math.sqrt((e*e+t*t)*(n*n+o*o))},isOrthogonal:function(e,t,n,o){return Math.abs(e*n+t*o)<=1e-8*Math.sqrt((e*e+t*t)*(n*n+o*o))}}},c.each(["round","ceil","floor","abs"],function(e){var t=Math[e];this[e]=function(){return new h(t(this.x),t(this.y))}},{})),T=h.extend({initialize:function(e,t,n,o){this._x=e,this._y=t,this._owner=n,this._setter=o},_set:function(e,t,n){return this._x=e,this._y=t,n||this._owner[this._setter](this),this},getX:function(){return this._x},setX:function(e){this._x=e,this._owner[this._setter](this)},getY:function(){return this._y},setY:function(e){this._y=e,this._owner[this._setter](this)},isSelected:function(){return!!(this._owner._selection&this._getSelection())},setSelected:function(e){this._owner._changeSelection(this._getSelection(),e)},_getSelection:function(){return"setPosition"===this._setter?4:0}}),p=c.extend({_class:"Size",_readIndex:!0,initialize:function(e,t){var n=typeof e,o=this.__read,i=0;if("number"===n){var A="number"==typeof t;this._set(e,A?t:e),o&&(i=A?2:1)}else if("undefined"===n||null===e)this._set(0,0),o&&(i=null===e?1:0);else{var a="string"===n?e.split(/[\s,]+/)||[]:e;i=1,Array.isArray(a)?this._set(+a[0],+(a.length>1?a[1]:a[0])):"width"in a?this._set(a.width||0,a.height||0):"x"in a?this._set(a.x||0,a.y||0):(this._set(0,0),i=0)}return o&&(this.__read=i),this},set:"#initialize",_set:function(e,t){return this.width=e,this.height=t,this},equals:function(e){return e===this||e&&(this.width===e.width&&this.height===e.height||Array.isArray(e)&&this.width===e[0]&&this.height===e[1])||!1},clone:function(){return new p(this.width,this.height)},toString:function(){var e=E.instance;return"{ width: "+e.number(this.width)+", height: "+e.number(this.height)+" }"},_serialize:function(e){var t=e.formatter;return[t.number(this.width),t.number(this.height)]},add:function(){var e=p.read(arguments);return new p(this.width+e.width,this.height+e.height)},subtract:function(){var e=p.read(arguments);return new p(this.width-e.width,this.height-e.height)},multiply:function(){var e=p.read(arguments);return new p(this.width*e.width,this.height*e.height)},divide:function(){var e=p.read(arguments);return new p(this.width/e.width,this.height/e.height)},modulo:function(){var e=p.read(arguments);return new p(this.width%e.width,this.height%e.height)},negate:function(){return new p(-this.width,-this.height)},isZero:function(){var e=D.isZero;return e(this.width)&&e(this.height)},isNaN:function(){return isNaN(this.width)||isNaN(this.height)},statics:{min:function(e,t){return new p(Math.min(e.width,t.width),Math.min(e.height,t.height))},max:function(e,t){return new p(Math.max(e.width,t.width),Math.max(e.height,t.height))},random:function(){return new p(Math.random(),Math.random())}}},c.each(["round","ceil","floor","abs"],function(e){var t=Math[e];this[e]=function(){return new p(t(this.width),t(this.height))}},{})),I=p.extend({initialize:function(e,t,n,o){this._width=e,this._height=t,this._owner=n,this._setter=o},_set:function(e,t,n){return this._width=e,this._height=t,n||this._owner[this._setter](this),this},getWidth:function(){return this._width},setWidth:function(e){this._width=e,this._owner[this._setter](this)},getHeight:function(){return this._height},setHeight:function(e){this._height=e,this._owner[this._setter](this)}}),w=c.extend({_class:"Rectangle",_readIndex:!0,beans:!0,initialize:function(e,t,n,o){var i,A=arguments,a=typeof e;if("number"===a?(this._set(e,t,n,o),i=4):"undefined"===a||null===e?(this._set(0,0,0,0),i=null===e?1:0):1===A.length&&(Array.isArray(e)?(this._set.apply(this,e),i=1):e.x!==r||e.width!==r?(this._set(e.x||0,e.y||0,e.width||0,e.height||0),i=1):e.from===r&&e.to===r&&(this._set(0,0,0,0),c.readSupported(A,this)&&(i=1))),i===r){var s,l,u=h.readNamed(A,"from"),g=c.peek(A),M=u.x,d=u.y;if(g&&g.x!==r||c.hasNamed(A,"to")){var E=h.readNamed(A,"to");s=E.x-M,l=E.y-d,s<0&&(M=E.x,s=-s),l<0&&(d=E.y,l=-l)}else{var D=p.read(A);s=D.width,l=D.height}this._set(M,d,s,l),i=A.__index}var N=A.__filtered;return N&&(this.__filtered=N),this.__read&&(this.__read=i),this},set:"#initialize",_set:function(e,t,n,o){return this.x=e,this.y=t,this.width=n,this.height=o,this},clone:function(){return new w(this.x,this.y,this.width,this.height)},equals:function(e){var