commit fd368092d7f19ed0dcf751501dbaaf4209d74ae1 Author: Travis-CI Date: Thu Apr 14 10:47:21 2016 +0000 CI deploy to gh-pages diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..9fa9ef8 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +sense.devseed.com \ No newline at end of file diff --git a/assets/graphics/collecticons/clock.svg b/assets/graphics/collecticons/clock.svg new file mode 100644 index 0000000..e0a53b2 --- /dev/null +++ b/assets/graphics/collecticons/clock.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/graphics/layout/devseed-logo-symbol.svg b/assets/graphics/layout/devseed-logo-symbol.svg new file mode 100644 index 0000000..e026425 --- /dev/null +++ b/assets/graphics/layout/devseed-logo-symbol.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/graphics/layout/ds-logo-neg.svg b/assets/graphics/layout/ds-logo-neg.svg new file mode 100644 index 0000000..67771a8 --- /dev/null +++ b/assets/graphics/layout/ds-logo-neg.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/graphics/layout/ds-logo-pos.svg b/assets/graphics/layout/ds-logo-pos.svg new file mode 100644 index 0000000..f89b8a8 --- /dev/null +++ b/assets/graphics/layout/ds-logo-pos.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/graphics/meta/apple-touch-icon-114x114.png b/assets/graphics/meta/apple-touch-icon-114x114.png new file mode 100755 index 0000000..56bde37 Binary files /dev/null and b/assets/graphics/meta/apple-touch-icon-114x114.png differ diff --git a/assets/graphics/meta/apple-touch-icon-120x120.png b/assets/graphics/meta/apple-touch-icon-120x120.png new file mode 100755 index 0000000..900c6b2 Binary files /dev/null and b/assets/graphics/meta/apple-touch-icon-120x120.png differ diff --git a/assets/graphics/meta/apple-touch-icon-144x144.png b/assets/graphics/meta/apple-touch-icon-144x144.png new file mode 100755 index 0000000..56b9959 Binary files /dev/null and b/assets/graphics/meta/apple-touch-icon-144x144.png differ diff --git a/assets/graphics/meta/apple-touch-icon-152x152.png b/assets/graphics/meta/apple-touch-icon-152x152.png new file mode 100755 index 0000000..b9cc96e Binary files /dev/null and b/assets/graphics/meta/apple-touch-icon-152x152.png differ diff --git a/assets/graphics/meta/apple-touch-icon-57x57.png b/assets/graphics/meta/apple-touch-icon-57x57.png new file mode 100755 index 0000000..2e05523 Binary files /dev/null and b/assets/graphics/meta/apple-touch-icon-57x57.png differ diff --git a/assets/graphics/meta/apple-touch-icon-72x72.png b/assets/graphics/meta/apple-touch-icon-72x72.png new file mode 100755 index 0000000..22e9671 Binary files /dev/null and b/assets/graphics/meta/apple-touch-icon-72x72.png differ diff --git a/assets/graphics/meta/apple-touch-icon-76x76.png b/assets/graphics/meta/apple-touch-icon-76x76.png new file mode 100755 index 0000000..ce55e80 Binary files /dev/null and b/assets/graphics/meta/apple-touch-icon-76x76.png differ diff --git a/assets/graphics/meta/apple-touch-icon.png b/assets/graphics/meta/apple-touch-icon.png new file mode 100755 index 0000000..2e05523 Binary files /dev/null and b/assets/graphics/meta/apple-touch-icon.png differ diff --git a/assets/graphics/meta/default-meta-image.png b/assets/graphics/meta/default-meta-image.png new file mode 100644 index 0000000..d69c080 Binary files /dev/null and b/assets/graphics/meta/default-meta-image.png differ diff --git a/assets/graphics/meta/favicon.ico b/assets/graphics/meta/favicon.ico new file mode 100755 index 0000000..8e72680 Binary files /dev/null and b/assets/graphics/meta/favicon.ico differ diff --git a/assets/scripts/bundle-ddc4bffa28.js b/assets/scripts/bundle-ddc4bffa28.js new file mode 100644 index 0000000..7561fa0 --- /dev/null +++ b/assets/scripts/bundle-ddc4bffa28.js @@ -0,0 +1 @@ +!function e(t,a,s){function r(i,o){if(!a[i]){if(!t[i]){var l="function"==typeof require&&require;if(!o&&l)return l(i,!0);if(n)return n(i,!0);var u=new Error("Cannot find module '"+i+"'");throw u.code="MODULE_NOT_FOUND",u}var d=a[i]={exports:{}};t[i][0].call(d.exports,function(e){var a=t[i][1][e];return r(a?a:e)},d,d.exports,e,t,a,s)}return a[i].exports}for(var n="function"==typeof require&&require,i=0;i=400)throw new Error("Bad response");return e.json()}).then(function(t){a(i(e,t))},function(e){return console.log("e",e),a(i(null,null,"Data not available"))})}}Object.defineProperty(a,"__esModule",{value:!0}),a.fetchSensorData=o;var l=e("isomorphic-fetch"),u=r(l),d=e("./action-types"),c=s(d),p=e("../config"),f=r(p)},{"../config":"/home/travis/build/developmentseed/sense/app/assets/scripts/config.js","./action-types":"/home/travis/build/developmentseed/sense/app/assets/scripts/actions/action-types.js","isomorphic-fetch":"isomorphic-fetch"}],"/home/travis/build/developmentseed/sense/app/assets/scripts/actions/action-types.js":[function(e,t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});a.REQUEST_SENSOR_DATA_TEMPERATURE="REQUEST_SENSOR_DATA_TEMPERATURE",a.RECEIVE_SENSOR_DATA_TEMPERATURE="RECEIVE_SENSOR_DATA_TEMPERATURE",a.REQUEST_SENSOR_DATA_PRESSURE="REQUEST_SENSOR_DATA_PRESSURE",a.RECEIVE_SENSOR_DATA_PRESSURE="RECEIVE_SENSOR_DATA_PRESSURE",a.REQUEST_SENSOR_DATA_LUMINOSITY="REQUEST_SENSOR_DATA_LUMINOSITY",a.RECEIVE_SENSOR_DATA_LUMINOSITY="RECEIVE_SENSOR_DATA_LUMINOSITY",a.REQUEST_SENSOR_DATA_UV="REQUEST_SENSOR_DATA_UV",a.RECEIVE_SENSOR_DATA_UV="RECEIVE_SENSOR_DATA_UV",a.REQUEST_SENSOR_DATA_HUMIDITY="REQUEST_SENSOR_DATA_HUMIDITY",a.RECEIVE_SENSOR_DATA_HUMIDITY="RECEIVE_SENSOR_DATA_HUMIDITY"},{}],"/home/travis/build/developmentseed/sense/app/assets/scripts/components/charts/chart-line.js":[function(e,t,a){"use strict";function s(e){return e&&e.__esModule?e:{"default":e}}var r=function(){function e(e,t){var a=[],s=!0,r=!1,n=void 0;try{for(var i,o=e[Symbol.iterator]();!(s=(i=o.next()).done)&&(a.push(i.value),!t||a.length!==t);s=!0);}catch(l){r=!0,n=l}finally{try{!s&&o["return"]&&o["return"]()}finally{if(r)throw n}}return a}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=e("react"),i=s(n),o=e("d3"),l=s(o),u=e("lodash"),d=s(u),c=i["default"].createClass({displayName:"LineChart",propTypes:{className:i["default"].PropTypes.string,data:i["default"].PropTypes.array,axisLineVal:i["default"].PropTypes.number,axisLineMax:i["default"].PropTypes.number,axisLineMin:i["default"].PropTypes.number,dataUnitSuffix:i["default"].PropTypes.string},chart:null,onWindowResize:function(){this.chart.checkSize()},componentDidMount:function(){this.onWindowResize=d["default"].debounce(this.onWindowResize,200),window.addEventListener("resize",this.onWindowResize),this.chart=p(),l["default"].select(this.refs.container).call(this.chart.data(this.props.data).axisLineVal(this.props.axisLineVal).axisValueMax(this.props.axisLineMax).axisValueMin(this.props.axisLineMin).dataUnitSuffix(this.props.dataUnitSuffix))},componentWillUnmount:function(){window.removeEventListener("resize",this.onWindowResize),this.chart.destroy()},componentDidUpdate:function(e){console.log("LineChart componentDidUpdate"),this.chart.pauseUpdate(),e.data!==this.props.data&&this.chart.data(this.props.data),e.axisLineVal!==this.props.axisLineVal&&this.chart.axisLineVal(this.props.axisLineVal),e.axisLineMax!==this.props.axisLineMax&&this.chart.axisValueMax(this.props.axisLineMax),e.axisLineMin!==this.props.axisLineMin&&this.chart.axisValueMin(this.props.axisLineMin),e.dataUnitSuffix!==this.props.dataUnitSuffix&&this.chart.dataUnitSuffix(this.props.dataUnitSuffix),this.chart.continueUpdate()},render:function(){return i["default"].createElement("div",{className:this.props.className,ref:"container"})}});t.exports=c;var p=function(e){function t(){p=parseInt(u.style("width"),10)-y.left-y.right,f=parseInt(u.style("height"),10)-y.top-y.bottom}function a(e){u=e;var a={line:function(){var e=R.selectAll(".data-line").data([E]);e.enter().append("path").attr("clip-path","url(#clip)"),e.attr("d",function(e){return m(e)}).attr("class",function(e){return"data-line"}),e.exit().remove()},minMax:function(){var e=S.domain(),t=r(e,2),a=t[0],s=t[1],n=function(e){var t=e.timestep.getTime();return t>=a.getTime()&&t<=s.getTime()},i=(0,d["default"])(E).filter(n).sortBy("value").value();if(i.length){var l=i[0],u=d["default"].last(i),c=R.selectAll(".edges").data([0]).enter().append("g").attr("class","edges");c.append("text").attr("text-anchor","middle").attr("dy","-0.25em").attr("class","edge edge-max"),c.append("text").attr("text-anchor","middle").attr("dy","1em").attr("class","edge edge-min"),R.select(".edge.edge-max").datum(u).attr("x",function(e){return S(e.timestep)}).attr("y",function(e){return T(e.value)}).text(function(e){return e.value+o}),R.select(".edge.edge-min").datum(l).attr("x",function(e){return S(e.timestep)}).attr("y",function(e){return T(e.value)}).text(function(e){return e.value+o})}},xAxis:function(){var e=c.selectAll(".x.axis").data([0]);e.enter().append("g").attr("class","x axis").append("text").attr("class","label").attr("text-anchor","start"),e.attr("transform","translate("+y.left+","+(f+y.top+16)+")").call(D)},yAxis:function(){var e=c.selectAll(".y.axis").data([0]),t=e.enter().append("g").attr("class","y axis");t.append("text").attr("class","label").attr("text-anchor","end"),t.append("line").attr("class","line"),e.select(".label").attr("y",T(s)+y.top).attr("x",p+y.left+y.right).attr("dy","1em").text(s+o),e.select(".line").attr("x1",0).attr("y1",T(s)+y.top).attr("x2",p+y.left+y.right).attr("y2",T(s)+y.top)},days:function(){for(var e=function(e){var t=new Date(e.getTime());return t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0),t},t=e(d["default"].last(E).timestep),a=e(E[0].timestep),s=[a];;)if(a=l["default"].time.day.offset(e(a),1),s.push(a),a.getTime()>=t.getTime())break;var r=R.selectAll(".days").data([0]);r.enter().append("g").attr("class","days");var n=r.selectAll(".day-tick").data(s);n.enter().append("text").attr("text-anchor","middle").attr("class","day-tick"),n.attr("x",function(e){return S(e)}).attr("y",f+y.top).text(function(e){return e.getDate()+" "+_[e.getMonth()]})}};v=function(){c.attr("width",p+y.left+y.right).attr("height",f+y.top+y.bottom),R.attr("width",p).attr("height",f),c.select("#clip rect").attr("x",-y.left).attr("y",-y.top).attr("width",p+y.left).attr("height",f+y.top+y.bottom),S.range([0,p]),T.range([f,0]),x=S(E[0].timestep),b.x(S),a.line(),a.minMax(),a.days(),a.xAxis(),a.yAxis()},h=function(){if(E&&!g){var e=d["default"].last(E).timestep,t=l["default"].time.day.offset(e,-1);S.domain([t,e]),T.domain([n,i]),x=S(E[0].timestep),b.x(S),a.line(),a.minMax(),a.days(),a.xAxis(),a.yAxis()}},c=u.append("svg").attr("class","chart").style("display","block");var R=c.append("g").attr("class","data-canvas").attr("transform","translate("+y.left+","+y.top+")");c.append("defs").append("clipPath").attr("id","clip").append("rect"),c.attr("cursor","move").call(b).on("mousewheel.zoom",null).on("DOMMouseScroll.zoom",null),b.on("zoom",function(){var e=b.translate(),t=r(e,2),s=t[0],n=t[1];s=Math.max(s,0),s=Math.min(s,Math.abs(x)-y.right),s=Math.round(s),b.translate([s,n]),a.line(),a.minMax(),a.days(),a.xAxis()}),t(),v(),h()}var s,n,i,o,u,c,p,f,m,h,v,x,E=null,g=!1,y={top:16,right:32,bottom:32,left:24},_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],S=l["default"].time.scale(),T=l["default"].scale.linear(),b=l["default"].behavior.zoom().scaleExtent([1,1]);m=l["default"].svg.line().x(function(e){return S(e.timestep)}).y(function(e){return T(e.value)});var D=l["default"].svg.axis().scale(S).orient("bottom").tickSize(0).tickFormat(l["default"].time.format("%H:%M"));return a.checkSize=function(){return t(),v(),a},a.destroy=function(){},a.data=function(e){return arguments.length?(E=d["default"].cloneDeep(e),"function"==typeof h&&h(),a):E},a.axisLineVal=function(e){return arguments.length?(s=e,"function"==typeof h&&h(),a):s},a.axisValueMin=function(e){return arguments.length?(n=e,"function"==typeof h&&h(),a):n},a.axisValueMax=function(e){return arguments.length?(i=e,"function"==typeof h&&h(),a):i},a.dataUnitSuffix=function(e){return arguments.length?(o=e,"function"==typeof h&&h(),a):o},a.pauseUpdate=function(){return g=!0,a},a.continueUpdate=function(){return g=!1,"function"==typeof h&&h(),a},a}},{d3:"d3",lodash:"lodash",react:"react"}],"/home/travis/build/developmentseed/sense/app/assets/scripts/components/sensor-widget.js":[function(e,t,a){"use strict";function s(e){return e&&e.__esModule?e:{"default":e}}var r=e("react"),n=s(r),i=e("./charts/chart-line"),o=s(i),l=e("../utils/format"),u=n["default"].createClass({displayName:"SensorWidget",propTypes:{fetching:n["default"].PropTypes.bool,fetched:n["default"].PropTypes.bool,className:n["default"].PropTypes.string,title:n["default"].PropTypes.string,lastReading:n["default"].PropTypes.object,avgs:n["default"].PropTypes.object,plotData:n["default"].PropTypes.array,axisLineVal:n["default"].PropTypes.number,axisLineMax:n["default"].PropTypes.number,axisLineMin:n["default"].PropTypes.number,unit:n["default"].PropTypes.string},render:function(){var e=this.props,t=e.className,a=e.fetching,s=e.fetched,r=e.title,i=e.lastReading,u=e.avgs,d=e.plotData,c=e.axisLineVal,p=e.axisLineMax,f=e.axisLineMin,m=e.unit;return s||a?n["default"].createElement("article",{className:"card "+t},n["default"].createElement("header",{className:"card__header"},n["default"].createElement("div",{className:"card__headline"},n["default"].createElement("h1",{className:"card__title"},r," ",a?"...":null),n["default"].createElement("dl",{className:"stats"},n["default"].createElement("dd",{className:"stats__label"},"Last update"),n["default"].createElement("dt",{className:"stats__date"},null!==i?(0,l.formatDate)(i.timestep):"--"),n["default"].createElement("dd",{className:"stats__label"},"Current temperature"),n["default"].createElement("dt",{className:"stats__value"},null!==i?(0,l.numDisplay)(i.value,1):"--",m)))),n["default"].createElement("div",{className:"card__body"},n["default"].createElement("div",{className:"infographic"},d.length?n["default"].createElement("div",{className:"line-chart-wrapper"},n["default"].createElement(o["default"],{className:"line-chart",axisLineVal:c,axisLineMax:p,axisLineMin:f,dataUnitSuffix:m,data:d})):null,!d.length&&a?n["default"].createElement("p",{className:"card__loading"},"Loading Data..."):null),n["default"].createElement("div",{className:"metrics"},n["default"].createElement("ul",{className:"metrics__list"},n["default"].createElement("li",null,n["default"].createElement("strong",null,null!==u?(0,l.numDisplay)(u.today,1,m):"--")," avg today"),n["default"].createElement("li",null,n["default"].createElement("strong",null,null!==u?(0,l.numDisplay)(u.yesterday,1,m):"--")," avg yesterday"))))):null}});t.exports=u},{"../utils/format":"/home/travis/build/developmentseed/sense/app/assets/scripts/utils/format.js","./charts/chart-line":"/home/travis/build/developmentseed/sense/app/assets/scripts/components/charts/chart-line.js",react:"react"}],"/home/travis/build/developmentseed/sense/app/assets/scripts/config.js":[function(e,t,a){"use strict";var s=e("lodash"),r={local:e("./config/local.js"),production:e("./config/production.js"),staging:e("./config/staging.js")},n=r.local||{};s.defaultsDeep(n,r.production),t.exports=n},{"./config/local.js":"/home/travis/build/developmentseed/sense/app/assets/scripts/config/local.js","./config/production.js":"/home/travis/build/developmentseed/sense/app/assets/scripts/config/production.js","./config/staging.js":"/home/travis/build/developmentseed/sense/app/assets/scripts/config/staging.js",lodash:"lodash"}],"/home/travis/build/developmentseed/sense/app/assets/scripts/config/local.js":[function(e,t,a){"use strict";t.exports={}},{}],"/home/travis/build/developmentseed/sense/app/assets/scripts/config/production.js":[function(e,t,a){"use strict";t.exports={environment:"production",api:"http://opensensemap.org:8000",senseBox:{id:"570629b945fd40c8197462fb","sensorId--uv":"570629b945fd40c8197462fd","sensorId--luminosity":"570629b945fd40c8197462fe","sensorId--pressure":"570629b945fd40c8197462ff","sensorId--humidity":"570629b945fd40c819746300","sensorId--temperature":"570629b945fd40c819746301"}}},{}],"/home/travis/build/developmentseed/sense/app/assets/scripts/config/staging.js":[function(e,t,a){"use strict";t.exports={environment:"staging"}},{}],"/home/travis/build/developmentseed/sense/app/assets/scripts/main.js":[function(e,t,a){"use strict";function s(e){return e&&e.__esModule?e:{"default":e}}e("babel-polyfill");var r=e("react"),n=s(r),i=e("react-dom"),o=e("react-redux"),l=e("react-router"),u=e("history"),d=e("redux"),c=e("redux-thunk"),p=s(c),f=e("react-router-redux"),m=e("./reducers/reducer"),h=s(m),v=e("./views/app"),x=s(v),E=e("./views/home"),g=s(E),y=(0,l.useRouterHistory)(u.createHashHistory)({queryKey:!1}),_=(0,f.syncHistory)(y),S=(0,d.compose)((0,d.applyMiddleware)(_,p["default"]))(d.createStore),T=S(h["default"]);(0,i.render)(n["default"].createElement(o.Provider,{store:T},n["default"].createElement(l.Router,{history:y},n["default"].createElement(l.Route,{path:"*",component:x["default"]},n["default"].createElement(l.IndexRoute,{component:g["default"]})))),document.querySelector("#site-canvas"))},{"./reducers/reducer":"/home/travis/build/developmentseed/sense/app/assets/scripts/reducers/reducer.js","./views/app":"/home/travis/build/developmentseed/sense/app/assets/scripts/views/app.js","./views/home":"/home/travis/build/developmentseed/sense/app/assets/scripts/views/home.js","babel-polyfill":"babel-polyfill",history:"history",react:"react","react-dom":"react-dom","react-redux":"react-redux","react-router":"react-router","react-router-redux":"react-router-redux",redux:"redux","redux-thunk":"redux-thunk"}],"/home/travis/build/developmentseed/sense/app/assets/scripts/reducers/reducer.js":[function(e,t,a){"use strict";function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t["default"]=e,t}function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(a,"__esModule",{value:!0});var n=e("lodash"),i=r(n),o=e("redux"),l=e("react-router-redux"),u=e("../actions/action-types"),d=s(u),c=function(e){return function(){var t=arguments.length<=0||void 0===arguments[0]?{fetching:!1,fetched:!1,data:null}:arguments[0],a=arguments[1],s=e.toUpperCase();switch(a.type){case d["REQUEST_SENSOR_DATA_"+s]:console.log("REQUEST_SENSOR_DATA_"+s),t=i["default"].cloneDeep(t),t.fetching=!0;break;case d["RECEIVE_SENSOR_DATA_"+s]:console.log("RECEIVE_SENSOR_DATA_"+s),t=i["default"].cloneDeep(t),t.data=a.data,t.fetching=!1,t.fetched=!0}return t}},p=c("uv"),f=c("luminosity"),m=c("pressure"),h=c("humidity"),v=c("temperature");a["default"]=(0,o.combineReducers)({routing:l.routeReducer,sensorUv:p,sensorLuminosity:f,sensorPressure:m,sensorHumidity:h,sensorTemperature:v})},{"../actions/action-types":"/home/travis/build/developmentseed/sense/app/assets/scripts/actions/action-types.js",lodash:"lodash","react-router-redux":"react-router-redux",redux:"redux"}],"/home/travis/build/developmentseed/sense/app/assets/scripts/utils/format.js":[function(e,t,a){"use strict";t.exports.numDisplay=function(e){var t=arguments.length<=1||void 0===arguments[1]?2:arguments[1],a=arguments.length<=2||void 0===arguments[2]?"":arguments[2],s=arguments.length<=3||void 0===arguments[3]?"--":arguments[3];if(isNaN(e))return s;var r=e.toString();return r=-1===r.indexOf(".")?r:r.substr(0,r.indexOf(".")+t+1),r+a},t.exports.formatDate=function(e){var t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],a=e.getHours();a=10>a?"0"+a:a;var s=e.getMinutes();return s=10>s?"0"+s:s,t[e.getMonth()]+" "+e.getDate()+", "+a+":"+s},t.exports.round=function(e){var a=arguments.length<=1||void 0===arguments[1]?2:arguments[1];return+t.exports.numDisplay(e,a)}},{}],"/home/travis/build/developmentseed/sense/app/assets/scripts/views/app.js":[function(e,t,a){"use strict";function s(e){return e&&e.__esModule?e:{"default":e}}var r=e("react"),n=s(r),i=n["default"].createClass({displayName:"App",propTypes:{dispatch:n["default"].PropTypes.func,children:n["default"].PropTypes.object},render:function(){return n["default"].createElement("div",null,n["default"].createElement("header",{className:"site-header",role:"banner"},n["default"].createElement("div",{className:"inner"},n["default"].createElement("div",{className:"site-headline"},n["default"].createElement("h1",{className:"site-title"},"Devseed Sense Lisbon")))),n["default"].createElement("main",{className:"site-body",role:"main"},this.props.children),n["default"].createElement("footer",{className:"site-footer",role:"footer"},n["default"].createElement("p",null,"Made with love by ",n["default"].createElement("a",{href:"https://developmentseed.org",title:"Visit Development Seed website"},"Development Seed")," using ",n["default"].createElement("a",{href:"http://opensensemap.org",title:"Visit OpenSenseMap website"},"OpenSenseMap")," data")))}});t.exports=i},{react:"react"}],"/home/travis/build/developmentseed/sense/app/assets/scripts/views/home.js":[function(e,t,a){"use strict";function s(e){return e&&e.__esModule?e:{"default":e}}function r(e){return{sensorUv:e.sensorUv,sensorLuminosity:e.sensorLuminosity,sensorPressure:e.sensorPressure,sensorHumidity:e.sensorHumidity,sensorTemperature:e.sensorTemperature}}function n(e){return{_requestSensorData:function(t,a){return e((0,f.fetchSensorData)(t,a))}}}var i=e("react"),o=s(i),l=e("react-redux"),u=e("lodash"),d=s(u),c=e("../components/sensor-widget"),p=s(c),f=e("../actions/action-creators"),m=e("../utils/format"),h=function(e){var t=new Date(e);return Math.floor(t.getTime()/1e3)},v=o["default"].PropTypes.shape({fetched:o["default"].PropTypes.bool,fetching:o["default"].PropTypes.bool,data:o["default"].PropTypes.array}),x=o["default"].createClass({displayName:"Home",propTypes:{_requestSensorData:o["default"].PropTypes.func,sensorUv:v,sensorLuminosity:v,sensorPressure:v,sensorHumidity:v,sensorTemperature:v},_mTimeThreshold:120,_mGroupSize:6,_fetchInterval:null,_fetchRate:300,prepareData:function(e){var t=null;if(e){t=[],e[0].value=+e[0].value;for(var a=[e[0]],s=1;sthis._mTimeThreshold||a.length===this._mGroupSize){var i={createdAt:d["default"].last(a).createdAt,value:+(0,m.round)(d["default"].meanBy(a,"value"))};t.push(i),a=[]}a.push(e[s])}var o={createdAt:d["default"].last(a).createdAt,value:+(0,m.round)(d["default"].meanBy(a,"value"))};t.push(o)}var l=new Date;l.setHours(0),l.setMinutes(0),l.setSeconds(0),l=Math.floor(l.getTime()/1e3);var u=l-86400,c=[],p=[],f=[];d["default"].forEach(t,function(e){var t=new Date(e.createdAt),a=Math.floor(t.getTime()/1e3);c.push({timestep:t,value:+e.value}),a>=l&&p.push({timestep:t,value:+e.value}),l>a&&a>=u&&f.push({timestep:t,value:+e.value})});var v={today:d["default"].meanBy(p,"value"),yesterday:d["default"].meanBy(f,"value")},x=d["default"].last(c)||null;return{data:c,last:x,avgs:v}},fetchData:function(){var e=(new Date).getTime()-2592e5;e=new Date(e).toISOString(),this.props._requestSensorData("temperature",e),this.props._requestSensorData("humidity",e),this.props._requestSensorData("uv",e),this.props._requestSensorData("luminosity",e),this.props._requestSensorData("pressure",e)},componentDidMount:function(){var e=this;this.fetchData(),this._fetchInterval=setInterval(function(){e.fetchData()},1e3*this._fetchRate)},componentWillUnmount:function(){this._fetchInterval&&clearInterval(this._fetchInterval)},render:function(){var e=this.prepareData(this.props.sensorTemperature.data),t=this.prepareData(this.props.sensorHumidity.data),a=this.prepareData(this.props.sensorUv.data),s=this.prepareData(this.props.sensorLuminosity.data),r=this.prepareData(this.props.sensorPressure.data);return o["default"].createElement("section",{className:"page"},o["default"].createElement("header",{className:"page__header"},o["default"].createElement("div",{className:"inner"},o["default"].createElement("div",{className:"page__headline"},o["default"].createElement("h1",{className:"page__title"},"Sense Dashboard")))),o["default"].createElement("div",{className:"page__body"},o["default"].createElement("section",{className:"page__content"},o["default"].createElement("div",{className:"inner"},o["default"].createElement(p["default"],{className:"card--temp",fetching:this.props.sensorTemperature.fetching,fetched:this.props.sensorTemperature.fetched,title:"Temperature",lastReading:e.last,avgs:e.avgs,plotData:e.data,axisLineMax:35,axisLineVal:20,axisLineMin:4,unit:" ºC"}),o["default"].createElement(p["default"],{className:"card--hum",fetching:this.props.sensorHumidity.fetching,fetched:this.props.sensorHumidity.fetched,title:"Humidity",lastReading:t.last,avgs:t.avgs,plotData:t.data,axisLineMax:100,axisLineVal:50,axisLineMin:10,unit:" %"}),o["default"].createElement(p["default"],{className:"card--uv",fetching:this.props.sensorUv.fetching,fetched:this.props.sensorUv.fetched,title:"Uv light",lastReading:a.last,avgs:a.avgs,plotData:a.data,axisLineMax:5e3,axisLineVal:250,axisLineMin:0,unit:" μW/cm²"}),o["default"].createElement(p["default"],{className:"card--lux",fetching:this.props.sensorLuminosity.fetching,fetched:this.props.sensorLuminosity.fetched,title:"Luminosity",lastReading:s.last,avgs:s.avgs,plotData:s.data,axisLineMax:135e3,axisLineVal:5e4,axisLineMin:0,unit:" lx"}),o["default"].createElement(p["default"],{className:"card--press",fetching:this.props.sensorPressure.fetching,fetched:this.props.sensorPressure.fetched,title:"Air Pressure",lastReading:r.last,avgs:r.avgs,plotData:r.data,axisLineMax:1020,axisLineVal:1010,axisLineMin:1e3,unit:" hPa"})))))}});t.exports=(0,l.connect)(r,n)(x)},{"../actions/action-creators":"/home/travis/build/developmentseed/sense/app/assets/scripts/actions/action-creators.js","../components/sensor-widget":"/home/travis/build/developmentseed/sense/app/assets/scripts/components/sensor-widget.js","../utils/format":"/home/travis/build/developmentseed/sense/app/assets/scripts/utils/format.js",lodash:"lodash",react:"react","react-redux":"react-redux"}]},{},["/home/travis/build/developmentseed/sense/app/assets/scripts/main.js"]); \ No newline at end of file diff --git a/assets/scripts/vendor-df89164be8.js b/assets/scripts/vendor-df89164be8.js new file mode 100644 index 0000000..9bc7fc7 --- /dev/null +++ b/assets/scripts/vendor-df89164be8.js @@ -0,0 +1,19 @@ +require=function t(e,n,r){function o(a,u){if(!n[a]){if(!e[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};e[a][0].call(l.exports,function(t){var n=e[a][1][t];return o(n?n:t)},l,l.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=_.call(o,"catchLoc"),u=_.call(o,"finallyLoc");if(a&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&_.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),d(n),R}},"catch":function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;d(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:v(t),resultName:e,nextLoc:n},R}}}("object"==typeof n?n:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:290}],2:[function(t,e,n){t("../../modules/core.regexp.escape"),e.exports=t("../../modules/_core").RegExp.escape},{"../../modules/_core":22,"../../modules/core.regexp.escape":117}],3:[function(t,e,n){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],4:[function(t,e,n){var r=t("./_cof");e.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},{"./_cof":17}],5:[function(t,e,n){var r=t("./_wks")("unscopables"),o=Array.prototype;void 0==o[r]&&t("./_hide")(o,r,{}),e.exports=function(t){o[r][t]=!0}},{"./_hide":39,"./_wks":114}],6:[function(t,e,n){e.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},{}],7:[function(t,e,n){var r=t("./_is-object");e.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":48}],8:[function(t,e,n){"use strict";var r=t("./_to-object"),o=t("./_to-index"),i=t("./_to-length");e.exports=[].copyWithin||function(t,e){var n=r(this),a=i(n.length),u=o(t,a),s=o(e,a),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?a:o(c,a))-s,a-u),f=1;for(u>s&&s+l>u&&(f=-1,s+=l-1,u+=l-1);l-- >0;)s in n?n[u]=n[s]:delete n[u],u+=f,s+=f;return n}},{"./_to-index":104,"./_to-length":107,"./_to-object":108}],9:[function(t,e,n){"use strict";var r=t("./_to-object"),o=t("./_to-index"),i=t("./_to-length");e.exports=function(t){for(var e=r(this),n=i(e.length),a=arguments.length,u=o(a>1?arguments[1]:void 0,n),s=a>2?arguments[2]:void 0,c=void 0===s?n:o(s,n);c>u;)e[u++]=t;return e}},{"./_to-index":104,"./_to-length":107,"./_to-object":108}],10:[function(t,e,n){var r=t("./_for-of");e.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},{"./_for-of":36}],11:[function(t,e,n){var r=t("./_to-iobject"),o=t("./_to-length"),i=t("./_to-index");e.exports=function(t){return function(e,n,a){var u,s=r(e),c=o(s.length),l=i(a,c);if(t&&n!=n){for(;c>l;)if(u=s[l++],u!=u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}}},{"./_to-index":104,"./_to-iobject":106,"./_to-length":107}],12:[function(t,e,n){var r=t("./_ctx"),o=t("./_iobject"),i=t("./_to-object"),a=t("./_to-length"),u=t("./_array-species-create");e.exports=function(t,e){var n=1==t,s=2==t,c=3==t,l=4==t,f=6==t,p=5==t||f,d=e||u;return function(e,u,h){for(var v,g,y=i(e),_=o(y),m=r(u,h,3),b=a(_.length),x=0,w=n?d(e,b):s?d(e,0):void 0;b>x;x++)if((p||x in _)&&(v=_[x],g=m(v,x,y),t))if(n)w[x]=g;else if(g)switch(t){case 3:return!0;case 5:return v;case 6:return x;case 2:w.push(v)}else if(l)return!1;return f?-1:c||l?l:w}}},{"./_array-species-create":14,"./_ctx":24,"./_iobject":44,"./_to-length":107,"./_to-object":108}],13:[function(t,e,n){var r=t("./_a-function"),o=t("./_to-object"),i=t("./_iobject"),a=t("./_to-length");e.exports=function(t,e,n,u,s){r(e);var c=o(t),l=i(c),f=a(c.length),p=s?f-1:0,d=s?-1:1;if(2>n)for(;;){if(p in l){u=l[p],p+=d;break}if(p+=d,s?0>p:p>=f)throw TypeError("Reduce of empty array with no initial value")}for(;s?p>=0:f>p;p+=d)p in l&&(u=e(u,l[p],p,c));return u}},{"./_a-function":3,"./_iobject":44,"./_to-length":107,"./_to-object":108}],14:[function(t,e,n){var r=t("./_is-object"),o=t("./_is-array"),i=t("./_wks")("species");e.exports=function(t,e){var n;return o(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)||(n=void 0),r(n)&&(n=n[i],null===n&&(n=void 0))),new(void 0===n?Array:n)(e)}},{"./_is-array":46,"./_is-object":48,"./_wks":114}],15:[function(t,e,n){"use strict";var r=t("./_a-function"),o=t("./_is-object"),i=t("./_invoke"),a=[].slice,u={},s=function(t,e,n){if(!(e in u)){for(var r=[],o=0;e>o;o++)r[o]="a["+o+"]";u[e]=Function("F,a","return new F("+r.join(",")+")")}return u[e](t,n)};e.exports=Function.bind||function(t){var e=r(this),n=a.call(arguments,1),u=function(){var r=n.concat(a.call(arguments));return this instanceof u?s(e,r.length,r):i(e,r,t)};return o(e.prototype)&&(u.prototype=e.prototype),u}},{"./_a-function":3,"./_invoke":43,"./_is-object":48}],16:[function(t,e,n){var r=t("./_cof"),o=t("./_wks")("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(n){}};e.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},{"./_cof":17,"./_wks":114}],17:[function(t,e,n){var r={}.toString;e.exports=function(t){return r.call(t).slice(8,-1)}},{}],18:[function(t,e,n){"use strict";var r=t("./_object-dp").f,o=t("./_object-create"),i=(t("./_hide"),t("./_redefine-all")),a=t("./_ctx"),u=t("./_an-instance"),s=t("./_defined"),c=t("./_for-of"),l=t("./_iter-define"),f=t("./_iter-step"),p=t("./_set-species"),d=t("./_descriptors"),h=t("./_meta").fastKey,v=d?"_s":"size",g=function(t,e){var n,r=h(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};e.exports={getConstructor:function(t,e,n,l){var f=t(function(t,r){u(t,f,e,"_i"),t._i=o(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=r&&c(r,n,t[l],t)});return i(f.prototype,{clear:function(){for(var t=this,e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t._f=t._l=void 0,t[v]=0},"delete":function(t){var e=this,n=g(e,t);if(n){var r=n.n,o=n.p;delete e._i[n.i],n.r=!0,o&&(o.n=r),r&&(r.p=o),e._f==n&&(e._f=r),e._l==n&&(e._l=o),e[v]--}return!!n},forEach:function(t){u(this,f,"forEach");for(var e,n=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!g(this,t)}}),d&&r(f.prototype,"size",{get:function(){return s(this[v])}}),f},def:function(t,e,n){var r,o,i=g(t,e);return i?i.v=n:(t._l=i={i:o=h(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[v]++,"F"!==o&&(t._i[o]=i)),t},getEntry:g,setStrong:function(t,e,n){l(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?f(0,n.k):"values"==e?f(0,n.v):f(0,[n.k,n.v]):(t._t=void 0,f(1))},n?"entries":"values",!n,!0),p(e)}}},{"./_an-instance":6,"./_ctx":24,"./_defined":26,"./_descriptors":27,"./_for-of":36,"./_hide":39,"./_iter-define":52,"./_iter-step":54,"./_meta":61,"./_object-create":65,"./_object-dp":66,"./_redefine-all":85,"./_set-species":90}],19:[function(t,e,n){var r=t("./_classof"),o=t("./_array-from-iterable");e.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return o(this)}}},{"./_array-from-iterable":10,"./_classof":16}],20:[function(t,e,n){"use strict";var r=t("./_redefine-all"),o=t("./_meta").getWeak,i=t("./_an-object"),a=t("./_is-object"),u=t("./_an-instance"),s=t("./_for-of"),c=t("./_array-methods"),l=t("./_has"),f=c(5),p=c(6),d=0,h=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},g=function(t,e){return f(t.a,function(t){return t[0]===e})};v.prototype={get:function(t){var e=g(this,t);return e?e[1]:void 0},has:function(t){return!!g(this,t)},set:function(t,e){var n=g(this,t);n?n[1]=e:this.a.push([t,e])},"delete":function(t){var e=p(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},e.exports={getConstructor:function(t,e,n,i){var c=t(function(t,r){u(t,c,e,"_i"),t._i=d++,t._l=void 0,void 0!=r&&s(r,n,t[i],t)});return r(c.prototype,{"delete":function(t){if(!a(t))return!1;var e=o(t);return e===!0?h(this)["delete"](t):e&&l(e,this._i)&&delete e[this._i]},has:function(t){if(!a(t))return!1;var e=o(t);return e===!0?h(this).has(t):e&&l(e,this._i)}}),c},def:function(t,e,n){var r=o(i(e),!0);return r===!0?h(t).set(e,n):r[t._i]=n,t},ufstore:h}},{"./_an-instance":6,"./_an-object":7,"./_array-methods":12,"./_for-of":36,"./_has":38,"./_is-object":48,"./_meta":61,"./_redefine-all":85}],21:[function(t,e,n){"use strict";var r=t("./_global"),o=t("./_export"),i=t("./_redefine"),a=t("./_redefine-all"),u=t("./_meta"),s=t("./_for-of"),c=t("./_an-instance"),l=t("./_is-object"),f=t("./_fails"),p=t("./_iter-detect"),d=t("./_set-to-string-tag"),h=t("./_inherit-if-required");e.exports=function(t,e,n,v,g,y){var _=r[t],m=_,b=g?"set":"add",x=m&&m.prototype,w={},E=function(t){var e=x[t];i(x,t,"delete"==t?function(t){return y&&!l(t)?!1:e.call(this,0===t?0:t)}:"has"==t?function(t){return y&&!l(t)?!1:e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!l(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof m&&(y||x.forEach&&!f(function(){(new m).entries().next()}))){var M=new m,C=M[b](y?{}:-0,1)!=M,R=f(function(){M.has(1)}),j=p(function(t){new m(t)}),O=!y&&f(function(){for(var t=new m,e=5;e--;)t[b](e,e);return!t.has(-0)});j||(m=e(function(e,n){c(e,m,t);var r=h(new _,e,m);return void 0!=n&&s(n,g,r[b],r),r}),m.prototype=x,x.constructor=m),(R||O)&&(E("delete"),E("has"),g&&E("get")),(O||C)&&E(b),y&&x.clear&&delete x.clear}else m=v.getConstructor(e,t,g,b),a(m.prototype,n),u.NEED=!0;return d(m,t),w[t]=m,o(o.G+o.W+o.F*(m!=_),w),y||v.setStrong(m,t,g),m}},{"./_an-instance":6,"./_export":31,"./_fails":33,"./_for-of":36,"./_global":37,"./_inherit-if-required":42,"./_is-object":48,"./_iter-detect":53,"./_meta":61,"./_redefine":86,"./_redefine-all":85,"./_set-to-string-tag":91}],22:[function(t,e,n){var r=e.exports={version:"2.2.2"};"number"==typeof __e&&(__e=r)},{}],23:[function(t,e,n){"use strict";var r=t("./_object-dp"),o=t("./_property-desc");e.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},{"./_object-dp":66,"./_property-desc":84}],24:[function(t,e,n){var r=t("./_a-function");e.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,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},{"./_a-function":3}],25:[function(t,e,n){"use strict";var r=t("./_an-object"),o=t("./_to-primitive"),i="number";e.exports=function(t){if("string"!==t&&t!==i&&"default"!==t)throw TypeError("Incorrect hint");return o(r(this),t!=i)}},{"./_an-object":7,"./_to-primitive":109}],26:[function(t,e,n){e.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},{}],27:[function(t,e,n){e.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":33}],28:[function(t,e,n){var r=t("./_is-object"),o=t("./_global").document,i=r(o)&&r(o.createElement);e.exports=function(t){return i?o.createElement(t):{}}},{"./_global":37,"./_is-object":48}],29:[function(t,e,n){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],30:[function(t,e,n){var r=t("./_object-keys"),o=t("./_object-gops"),i=t("./_object-pie");e.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,u=n(t),s=i.f,c=0;u.length>c;)s.call(t,a=u[c++])&&e.push(a);return e}},{"./_object-gops":72,"./_object-keys":75,"./_object-pie":76}],31:[function(t,e,n){var r=t("./_global"),o=t("./_core"),i=t("./_hide"),a=t("./_redefine"),u=t("./_ctx"),s="prototype",c=function(t,e,n){var l,f,p,d,h=t&c.F,v=t&c.G,g=t&c.S,y=t&c.P,_=t&c.B,m=v?r:g?r[e]||(r[e]={}):(r[e]||{})[s],b=v?o:o[e]||(o[e]={}),x=b[s]||(b[s]={});v&&(n=e);for(l in n)f=!h&&m&&void 0!==m[l],p=(f?m:n)[l],d=_&&f?u(p,r):y&&"function"==typeof p?u(Function.call,p):p,m&&a(m,l,p,t&c.U),b[l]!=p&&i(b,l,d),y&&x[l]!=p&&(x[l]=p)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},{"./_core":22,"./_ctx":24,"./_global":37,"./_hide":39,"./_redefine":86}],32:[function(t,e,n){var r=t("./_wks")("match");e.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(o){}}return!0}},{"./_wks":114}],33:[function(t,e,n){e.exports=function(t){try{return!!t()}catch(e){return!0}}},{}],34:[function(t,e,n){"use strict";var r=t("./_hide"),o=t("./_redefine"),i=t("./_fails"),a=t("./_defined"),u=t("./_wks");e.exports=function(t,e,n){var s=u(t),c=n(a,s,""[t]),l=c[0],f=c[1];i(function(){var e={};return e[s]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,l),r(RegExp.prototype,s,2==e?function(t,e){return f.call(t,this,e)}:function(t){return f.call(t,this)}))}},{"./_defined":26,"./_fails":33,"./_hide":39,"./_redefine":86,"./_wks":114}],35:[function(t,e,n){"use strict";var r=t("./_an-object");e.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},{"./_an-object":7}],36:[function(t,e,n){var r=t("./_ctx"),o=t("./_iter-call"),i=t("./_is-array-iter"),a=t("./_an-object"),u=t("./_to-length"),s=t("./core.get-iterator-method");e.exports=function(t,e,n,c,l){var f,p,d,h=l?function(){return t}:s(t),v=r(n,c,e?2:1),g=0;if("function"!=typeof h)throw TypeError(t+" is not iterable!");if(i(h))for(f=u(t.length);f>g;g++)e?v(a(p=t[g])[0],p[1]):v(t[g]);else for(d=h.call(t);!(p=d.next()).done;)o(d,v,p.value,e)}},{"./_an-object":7,"./_ctx":24,"./_is-array-iter":45,"./_iter-call":50,"./_to-length":107,"./core.get-iterator-method":115}],37:[function(t,e,n){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],38:[function(t,e,n){var r={}.hasOwnProperty;e.exports=function(t,e){return r.call(t,e)}},{}],39:[function(t,e,n){var r=t("./_object-dp"),o=t("./_property-desc");e.exports=t("./_descriptors")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},{"./_descriptors":27,"./_object-dp":66,"./_property-desc":84}],40:[function(t,e,n){e.exports=t("./_global").document&&document.documentElement},{"./_global":37}],41:[function(t,e,n){e.exports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":27,"./_dom-create":28,"./_fails":33}],42:[function(t,e,n){var r=t("./_is-object"),o=t("./_set-proto").set;e.exports=function(t,e,n){var i,a=e.constructor;return a!==n&&"function"==typeof a&&(i=a.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},{"./_is-object":48,"./_set-proto":89}],43:[function(t,e,n){e.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},{}],44:[function(t,e,n){var r=t("./_cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},{"./_cof":17}],45:[function(t,e,n){var r=t("./_iterators"),o=t("./_wks")("iterator"),i=Array.prototype;e.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},{"./_iterators":55,"./_wks":114}],46:[function(t,e,n){var r=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==r(t)}},{"./_cof":17}],47:[function(t,e,n){var r=t("./_is-object"),o=Math.floor;e.exports=function(t){return!r(t)&&isFinite(t)&&o(t)===t}},{"./_is-object":48}],48:[function(t,e,n){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],49:[function(t,e,n){var r=t("./_is-object"),o=t("./_cof"),i=t("./_wks")("match");e.exports=function(t){var e;return r(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},{"./_cof":17,"./_is-object":48,"./_wks":114}],50:[function(t,e,n){var r=t("./_an-object");e.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(i){var a=t["return"];throw void 0!==a&&r(a.call(t)),i}}},{"./_an-object":7}],51:[function(t,e,n){"use strict";var r=t("./_object-create"),o=t("./_property-desc"),i=t("./_set-to-string-tag"),a={};t("./_hide")(a,t("./_wks")("iterator"),function(){return this}),e.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},{"./_hide":39,"./_object-create":65,"./_property-desc":84,"./_set-to-string-tag":91,"./_wks":114}],52:[function(t,e,n){"use strict";var r=t("./_library"),o=t("./_export"),i=t("./_redefine"),a=t("./_hide"),u=t("./_has"),s=t("./_iterators"),c=t("./_iter-create"),l=t("./_set-to-string-tag"),f=t("./_object-gpo"),p=t("./_wks")("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",v="keys",g="values",y=function(){return this};e.exports=function(t,e,n,_,m,b,x){c(n,e,_);var w,E,M,C=function(t){if(!d&&t in S)return S[t];switch(t){case v:return function(){return new n(this,t)};case g:return function(){return new n(this,t)}}return function(){return new n(this,t)}},R=e+" Iterator",j=m==g,O=!1,S=t.prototype,P=S[p]||S[h]||m&&S[m],k=P||C(m),N=m?j?C("entries"):k:void 0,D="Array"==e?S.entries||P:P;if(D&&(M=f(D.call(new t)),M!==Object.prototype&&(l(M,R,!0),r||u(M,p)||a(M,p,y))),j&&P&&P.name!==g&&(O=!0,k=function(){return P.call(this)}),r&&!x||!d&&!O&&S[p]||a(S,p,k),s[e]=k,s[R]=y,m)if(w={values:j?k:C(g),keys:b?k:C(v),entries:N},x)for(E in w)E in S||i(S,E,w[E]);else o(o.P+o.F*(d||O),e,w);return w}},{"./_export":31,"./_has":38,"./_hide":39,"./_iter-create":51,"./_iterators":55,"./_library":57,"./_object-gpo":73,"./_redefine":86,"./_set-to-string-tag":91,"./_wks":114}],53:[function(t,e,n){var r=t("./_wks")("iterator"),o=!1;try{var i=[7][r]();i["return"]=function(){o=!0},Array.from(i,function(){throw 2})}catch(a){}e.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(u){}return n}},{"./_wks":114}],54:[function(t,e,n){e.exports=function(t,e){return{value:e,done:!!t}}},{}],55:[function(t,e,n){e.exports={}},{}],56:[function(t,e,n){var r=t("./_object-keys"),o=t("./_to-iobject");e.exports=function(t,e){for(var n,i=o(t),a=r(i),u=a.length,s=0;u>s;)if(i[n=a[s++]]===e)return n}},{"./_object-keys":75,"./_to-iobject":106}],57:[function(t,e,n){e.exports=!1},{}],58:[function(t,e,n){var r=Math.expm1;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&1e-6>t?t+t*t/2:Math.exp(t)-1}:r},{}],59:[function(t,e,n){e.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&1e-8>t?t-t*t/2:Math.log(1+t)}},{}],60:[function(t,e,n){e.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:0>t?-1:1}},{}],61:[function(t,e,n){var r=t("./_uid")("meta"),o=t("./_is-object"),i=t("./_has"),a=t("./_object-dp").f,u=0,s=Object.isExtensible||function(){return!0},c=!t("./_fails")(function(){return s(Object.preventExtensions({}))}),l=function(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})},f=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!s(t))return"F";if(!e)return"E";l(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!s(t))return!0;if(!e)return!1;l(t)}return t[r].w},d=function(t){return c&&h.NEED&&s(t)&&!i(t,r)&&l(t),t},h=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:p,onFreeze:d}},{"./_fails":33,"./_has":38,"./_is-object":48,"./_object-dp":66,"./_uid":113}],62:[function(t,e,n){var r=t("./es6.map"),o=t("./_export"),i=t("./_shared")("metadata"),a=i.store||(i.store=new(t("./es6.weak-map"))),u=function(t,e,n){var o=a.get(t);if(!o){if(!n)return;a.set(t,o=new r)}var i=o.get(e);if(!i){if(!n)return;o.set(e,i=new r)}return i},s=function(t,e,n){var r=u(e,n,!1);return void 0===r?!1:r.has(t)},c=function(t,e,n){var r=u(e,n,!1);return void 0===r?void 0:r.get(t)},l=function(t,e,n,r){u(n,r,!0).set(t,e)},f=function(t,e){var n=u(t,e,!1),r=[];return n&&n.forEach(function(t,e){r.push(e)}),r},p=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},d=function(t){o(o.S,"Reflect",t)};e.exports={store:a,map:u,has:s,get:c,set:l,keys:f,key:p,exp:d}},{"./_export":31,"./_shared":93,"./es6.map":147,"./es6.weak-map":253}],63:[function(t,e,n){var r,o,i,a=t("./_global"),u=t("./_task").set,s=a.MutationObserver||a.WebKitMutationObserver,c=a.process,l=a.Promise,f="process"==t("./_cof")(c),p=function(){var t,e;for(f&&(t=c.domain)&&t.exit();r;)e=r.fn,e(),r=r.next;o=void 0,t&&t.enter()};if(f)i=function(){c.nextTick(p)};else if(s){var d=!0,h=document.createTextNode("");new s(p).observe(h,{characterData:!0}),i=function(){h.data=d=!d}}else i=l&&l.resolve?function(){l.resolve().then(p)}:function(){u.call(a,p)};e.exports=function(t){var e={fn:t,next:void 0};o&&(o.next=e),r||(r=e,i()),o=e}},{"./_cof":17,"./_global":37,"./_task":103}],64:[function(t,e,n){"use strict";var r=t("./_object-keys"),o=t("./_object-gops"),i=t("./_object-pie"),a=t("./_to-object"),u=t("./_iobject"),s=Object.assign;e.exports=!s||t("./_fails")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r})?function(t,e){for(var n=a(t),s=arguments.length,c=1,l=o.f,f=i.f;s>c;)for(var p,d=u(arguments[c++]),h=l?r(d).concat(l(d)):r(d),v=h.length,g=0;v>g;)f.call(d,p=h[g++])&&(n[p]=d[p]);return n}:s},{"./_fails":33,"./_iobject":44,"./_object-gops":72,"./_object-keys":75,"./_object-pie":76,"./_to-object":108}],65:[function(t,e,n){var r=t("./_an-object"),o=t("./_object-dps"),i=t("./_enum-bug-keys"),a=t("./_shared-key")("IE_PROTO"),u=function(){},s="prototype",c=function(){var e,n=t("./_dom-create")("iframe"),r=i.length,o=">";for(n.style.display="none",t("./_html").appendChild(n),n.src="javascript:",e=n.contentWindow.document,e.open(),e.write(" + + +